Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jgraph/drawio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benson <david@draw.io>2022-01-20 14:33:49 +0300
committerDavid Benson <david@draw.io>2022-01-20 14:33:49 +0300
commit06ae914bdf74db008d7706c4a19a75d041d65de7 (patch)
treecda6c86f8d55953303a0b0de9765d9bebda6fef7
parentbbf17d5f5a1d73cb6c955b579cd3691fc55ebae7 (diff)
16.4.3 releasev16.4.3
-rw-r--r--ChangeLog17
-rw-r--r--VERSION2
-rw-r--r--etc/notionExtension/manifest.json2
-rw-r--r--etc/notionExtension/popup.js50
-rw-r--r--src/main/webapp/js/app.min.js964
-rw-r--r--src/main/webapp/js/diagramly/Dialogs.js9
-rw-r--r--src/main/webapp/js/diagramly/DropboxClient.js4
-rw-r--r--src/main/webapp/js/diagramly/Editor.js5
-rw-r--r--src/main/webapp/js/diagramly/EditorUi.js145
-rw-r--r--src/main/webapp/js/diagramly/Init.js2
-rw-r--r--src/main/webapp/js/diagramly/Minimal.js4
-rw-r--r--src/main/webapp/js/grapheditor/Graph.js6
-rw-r--r--src/main/webapp/js/viewer-static.min.js1498
-rw-r--r--src/main/webapp/js/viewer.min.js1498
-rw-r--r--src/main/webapp/mxgraph/mxClient.js18
-rw-r--r--src/main/webapp/package.json2
-rw-r--r--src/main/webapp/service-worker.js2
-rw-r--r--src/main/webapp/service-worker.js.map2
-rw-r--r--src/main/webapp/yarn.lock302
19 files changed, 2293 insertions, 2239 deletions
diff --git a/ChangeLog b/ChangeLog
index 3b20a5a9..9a27dde6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+20-JAN-2022: 16.4.3
+
+- [jira cloud] Adds refresh button to diagram search page
+- Fixes duplicate flipEdge function
+- Adds unknownStyle option for CSV import
+- Uses new app path in Dropbox
+
+19-JAN-2022: 16.4.2
+
+- Fixes NPE on destroyParentHighlight
+
+19-JAN-2022: 16.4.1
+
+- Fixes NPE in CropImageDialog
+- Expands format window on large screens in sketch
+- Fixes parent highlight after change of parent
+
19-JAN-2022: 16.4.0
- Adds helper function for tree layouts
diff --git a/VERSION b/VERSION
index b21be527..11701a59 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-16.4.0 \ No newline at end of file
+16.4.3 \ No newline at end of file
diff --git a/etc/notionExtension/manifest.json b/etc/notionExtension/manifest.json
index a63844cf..59896420 100644
--- a/etc/notionExtension/manifest.json
+++ b/etc/notionExtension/manifest.json
@@ -1,6 +1,6 @@
{
"name": "draw.io for Notion",
- "version": "1.0.7",
+ "version": "1.0.8",
"description": "Insert draw.io diagrams in Notion pages and edit them",
"permissions": [
"storage",
diff --git a/etc/notionExtension/popup.js b/etc/notionExtension/popup.js
index b7f5c3bb..2ca16949 100644
--- a/etc/notionExtension/popup.js
+++ b/etc/notionExtension/popup.js
@@ -2,38 +2,62 @@
{
var svg = '<?xml version="1.0" encoding="UTF-8"?>\n' +
'<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n' +
- '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="16px" height="16px" viewBox="-0.5 -0.5 16 16" content="&lt;mxfile host=&quot;app.diagrams.net&quot; modified=&quot;2021-10-22T10:07:56.551Z&quot; agent=&quot;5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36&quot; etag=&quot;0jxz5d0kbRKOqK62l998&quot; version=&quot;15.5.6&quot;&gt;&lt;diagram id=&quot;QB-tHsTPjBIoVIsD2LTZ&quot; name=&quot;Page-1&quot;&gt;ddHBEoIgEADQr+GuMGWezerSyUNnRjZhBl0GabS+Ph0wZaoTy9tl2QHCinY8W27kFQVoQhMxEnYklKa7LJmWWZ5BkjxIY5XwtoFKvWApDPpQAvpgnhyidsrEWGPXQe0i49biEJfdUYsIDG8gGmOGquYavspuSjjp9UCz1S+gGrncnO5zn2n5Uhwa95ILHDbESsIKi+h81I4F6Pn14nc5/cl+BrPQuR8HpmDtPW2iL2LlGw==&lt;/diagram&gt;&lt;/mxfile&gt;" style="background-color: rgb(255, 255, 255);"><defs><style type="text/css">@import url(https://fonts.googleapis.com/css?family=Architects+Daughter);&#xa;</style></defs><g/></svg>';
+ '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="16px" height="16px" viewBox="-0.5 -0.5 16 16" ' +
+ 'content="&lt;mxfile host=&quot;app.diagrams.net&quot; modified=&quot;2021-10-22T10:07:56.551Z&quot; agent=&quot;5.0 (Macintosh; Intel Mac OS X 10_15_7) ' +
+ 'AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36&quot; etag=&quot;0jxz5d0kbRKOqK62l998&quot; version=&quot;15.5.6&quot;&gt;&lt;diagram ' +
+ 'id=&quot;QB-tHsTPjBIoVIsD2LTZ&quot; name=&quot;Page-1&quot;&gt;ddHBEoIgEADQr+GuMGWezerSyUNnRjZhBl0GabS+Ph0wZaoTy9tl2QHCinY8W27kFQVoQhMxEnYklKa7LJmWWZ5BkjxIY5XwtoFK' +
+ 'vWApDPpQAvpgnhyidsrEWGPXQe0i49biEJfdUYsIDG8gGmOGquYavspuSjjp9UCz1S+gGrncnO5zn2n5Uhwa95ILHDbESsIKi+h81I4F6Pn14nc5/cl+BrPQuR8HpmDtPW2iL2LlGw==&lt;/diagram&gt;&lt;/mxfile&gt;" ' +
+ 'style="background-color: rgb(255, 255, 255);"><defs><style type="text/css">@import url(https://fonts.googleapis.com/css?family=Architects+Daughter);&#xa;</style></defs><g/></svg>';
var port = chrome.runtime.connect({name: 'popup'});
var button = document.getElementById('insertDiagram');
- var prev = button.innerHTML;
+ var prev = null;
+ function done(message)
+ {
+ if (prev != null)
+ {
+ button.removeAttribute('disabled');
+ button.innerHTML = prev;
+ prev = null;
+
+ if (message != null)
+ {
+ alert(message);
+ }
+ }
+ };
+
button.onclick = function()
{
- button.setAttribute('disabled', 'disabled');
+ prev = button.innerHTML;
button.innerHTML = 'Please wait...';
+ button.setAttribute('disabled', 'disabled');
port.postMessage({msg: 'insertDiagram', filename: 'Diagram.drawio.svg', data: svg});
+
+ // Handles timeout
+ window.setTimeout(function()
+ {
+ done('Failed to insert. Please reinstall and try again.');
+ }, 8000);
};
port.onMessage.addListener(function(msg)
{
try
{
- switch(msg.msg)
+ if (msg != null)
{
- case 'insertDiagram':
- window.setTimeout(function()
+ switch(msg.msg)
{
- button.removeAttribute('disabled');
- button.innerHTML = prev;
- }, 1500);
- break;
+ case 'insertDiagram':
+ window.setTimeout(done, 1500);
+ break;
+ }
}
}
catch (e)
{
- button.removeAttribute('disabled');
- button.innerHTML = prev;
- alert(e.message);
+ done(e.message);
}
});
diff --git a/src/main/webapp/js/app.min.js b/src/main/webapp/js/app.min.js
index 763f204a..580011d6 100644
--- a/src/main/webapp/js/app.min.js
+++ b/src/main/webapp/js/app.min.js
@@ -219,7 +219,7 @@ var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456
"");l<a.length;)d=this._keyStr.indexOf(a.charAt(l++)),e=this._keyStr.indexOf(a.charAt(l++)),g=this._keyStr.indexOf(a.charAt(l++)),k=this._keyStr.indexOf(a.charAt(l++)),d=d<<2|e>>4,e=(e&15)<<4|g>>2,f=(g&3)<<6|k,c+=String.fromCharCode(d),64!=g&&(c+=String.fromCharCode(e)),64!=k&&(c+=String.fromCharCode(f));b||(c=Base64._utf8_decode(c));return c},_utf8_encode:function(a){a=a.replace(/\r\n/g,"\n");for(var b="",c=0;c<a.length;c++){var d=a.charCodeAt(c);128>d?b+=String.fromCharCode(d):(127<d&&2048>d?b+=
String.fromCharCode(d>>6|192):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128)),b+=String.fromCharCode(d&63|128))}return b},_utf8_decode:function(a){var b="",c=0,d;for(c1=c2=0;c<a.length;)d=a.charCodeAt(c),128>d?(b+=String.fromCharCode(d),c++):191<d&&224>d?(c2=a.charCodeAt(c+1),b+=String.fromCharCode((d&31)<<6|c2&63),c+=2):(c2=a.charCodeAt(c+1),c3=a.charCodeAt(c+2),b+=String.fromCharCode((d&15)<<12|(c2&63)<<6|c3&63),c+=3);return b}};window.urlParams=window.urlParams||{};window.isLocalStorage=window.isLocalStorage||!1;window.mxLoadSettings=window.mxLoadSettings||"1"!=urlParams.configure;window.isSvgBrowser=!0;window.DRAWIO_BASE_URL=window.DRAWIO_BASE_URL||(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)?window.location.protocol+"//"+window.location.hostname:"https://app.diagrams.net");window.DRAWIO_LIGHTBOX_URL=window.DRAWIO_LIGHTBOX_URL||"https://viewer.diagrams.net";
window.EXPORT_URL=window.EXPORT_URL||"https://convert.diagrams.net/node/export";window.PLANT_URL=window.PLANT_URL||"https://plant-aws.diagrams.net";window.DRAW_MATH_URL=window.DRAW_MATH_URL||window.DRAWIO_BASE_URL+"/math";window.VSD_CONVERT_URL=window.VSD_CONVERT_URL||"https://convert.diagrams.net/VsdConverter/api/converter";window.EMF_CONVERT_URL=window.EMF_CONVERT_URL||"https://convert.diagrams.net/emf2png/convertEMF";window.REALTIME_URL=window.REALTIME_URL||"cache";
-window.DRAWIO_GITLAB_URL=window.DRAWIO_GITLAB_URL||"https://gitlab.com";window.DRAWIO_GITLAB_ID=window.DRAWIO_GITLAB_ID||"2b14debc5feeb18ba65358d863ec870e4cc9294b28c3c941cb3014eb4af9a9b4";window.DRAWIO_GITHUB_URL=window.DRAWIO_GITHUB_URL||"https://github.com";window.DRAWIO_GITHUB_API_URL=window.DRAWIO_GITHUB_API_URL||"https://api.github.com";window.DRAWIO_GITHUB_ID=window.DRAWIO_GITHUB_ID||"Iv1.98d62f0431e40543";window.DRAWIO_DROPBOX_ID=window.DRAWIO_DROPBOX_ID||"libwls2fa9szdji";
+window.DRAWIO_GITLAB_URL=window.DRAWIO_GITLAB_URL||"https://gitlab.com";window.DRAWIO_GITLAB_ID=window.DRAWIO_GITLAB_ID||"2b14debc5feeb18ba65358d863ec870e4cc9294b28c3c941cb3014eb4af9a9b4";window.DRAWIO_GITHUB_URL=window.DRAWIO_GITHUB_URL||"https://github.com";window.DRAWIO_GITHUB_API_URL=window.DRAWIO_GITHUB_API_URL||"https://api.github.com";window.DRAWIO_GITHUB_ID=window.DRAWIO_GITHUB_ID||"Iv1.98d62f0431e40543";window.DRAWIO_DROPBOX_ID=window.DRAWIO_DROPBOX_ID||"jg02tc0onwmhlgm";
window.SAVE_URL=window.SAVE_URL||"save";window.OPEN_URL=window.OPEN_URL||"import";window.PROXY_URL=window.PROXY_URL||"proxy";window.DRAWIO_VIEWER_URL=window.DRAWIO_VIEWER_URL||null;window.NOTIFICATIONS_URL=window.NOTIFICATIONS_URL||"https://www.draw.io/notifications";window.SHAPES_PATH=window.SHAPES_PATH||"shapes";window.GRAPH_IMAGE_PATH=window.GRAPH_IMAGE_PATH||"img";
window.ICONSEARCH_PATH=window.ICONSEARCH_PATH||((null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE")||urlParams.dev)&&"file:"!=window.location.protocol?"iconSearch":window.DRAWIO_BASE_URL+"/iconSearch");window.TEMPLATE_PATH=window.TEMPLATE_PATH||"templates";window.NEW_DIAGRAM_CATS_PATH=window.NEW_DIAGRAM_CATS_PATH||"newDiagramCats";window.PLUGINS_BASE_PATH=window.PLUGINS_BASE_PATH||"";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";
window.RESOURCE_BASE=window.RESOURCE_BASE||RESOURCES_PATH+"/dia";window.DRAWIO_CONFIG=window.DRAWIO_CONFIG||null;window.mxLoadResources=window.mxLoadResources||!1;
@@ -235,7 +235,7 @@ a),DRAWIO_GITLAB_URL=a);a=urlParams["gitlab-id"];null!=a&&(DRAWIO_GITLAB_ID=a);w
if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==urlParams.local||"1"==urlParams.lockdown)urlParams.picker="0",urlParams.gapi="0",urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0";
"se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1");
"embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);window.urlParams=window.urlParams||{};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";
-window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"mxgraph";window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"16.4.0",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),
+window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"mxgraph";window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"16.4.3",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),
IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:/Apple Computer, Inc/.test(navigator.vendor),
IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2<navigator.maxTouchPoints,IS_WEBVIEW:/((iPhone|iPod|iPad).*AppleWebKit(?!.*Version)|; wv)/i.test(navigator.userAgent),IS_GC:/Google Inc/.test(navigator.vendor),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:"undefined"!==typeof InstallTrigger,IS_MT:0<=navigator.userAgent.indexOf("Firefox/")&&0>navigator.userAgent.indexOf("Firefox/1.")&&
0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:"MICROSOFT INTERNET EXPLORER"!=navigator.appName.toUpperCase(),NO_FO:!document.createElementNS||"[object SVGForeignObjectElement]"!==
@@ -1851,19 +1851,20 @@ n.x,n.y);this.sizers[5].setCursor(f[mxUtils.mod(6+g,f.length)]);n.x=d;n.y=c;n=mx
this.state.width&&2<=this.state.height?this.moveSizerTo(this.sizers[0],d+this.state.absoluteOffset.x,e+this.state.absoluteOffset.y):this.moveSizerTo(this.sizers[0],this.state.x,this.state.y)}}null!=this.rotationShape&&(g=mxUtils.toRadians(null!=this.currentAlpha?this.currentAlpha:this.state.style[mxConstants.STYLE_ROTATION]||"0"),k=Math.cos(g),l=Math.sin(g),m=new mxPoint(this.state.getCenterX(),this.state.getCenterY()),n=mxUtils.getRotatedPoint(this.getRotationHandlePosition(),k,l,m),null!=this.rotationShape.node&&
(this.moveSizerTo(this.rotationShape,n.x,n.y),this.rotationShape.node.style.visibility=this.state.view.graph.isEditing()||!this.handlesVisible?"hidden":""));null!=this.selectionBorder&&(this.selectionBorder.rotation=Number(this.state.style[mxConstants.STYLE_ROTATION]||"0"));if(null!=this.edgeHandlers)for(c=0;c<this.edgeHandlers.length;c++)this.edgeHandlers[c].redraw()};mxVertexHandler.prototype.isCustomHandleVisible=function(a){return!this.graph.isEditing()&&1==this.state.view.graph.getSelectionCount()};
mxVertexHandler.prototype.getRotationHandlePosition=function(){return new mxPoint(this.bounds.x+this.bounds.width/2,this.bounds.y+this.rotationHandleVSpacing)};mxVertexHandler.prototype.isParentHighlightVisible=function(){return!this.graph.isCellSelected(this.graph.model.getParent(this.state.cell))};
-mxVertexHandler.prototype.updateParentHighlight=function(){if(!this.isDestroyed()){var a=this.isParentHighlightVisible(),b=this.graph.model.getParent(this.state.cell),c=this.graph.view.getState(b);null!=this.parentHighlight?this.graph.model.isVertex(b)&&a?(a=this.parentHighlight.bounds,null==c||a.x==c.x&&a.y==c.y&&a.width==c.width&&a.height==c.height||(this.parentHighlight.bounds=mxRectangle.fromRectangle(c),this.parentHighlight.redraw())):(null!=c&&c.parentHighlight==this.parentHighlight&&(c.parentHighlight=
-null),this.parentHighlight.destroy(),this.parentHighlight=null):this.parentHighlightEnabled&&a&&this.graph.model.isVertex(b)&&null!=c&&null==c.parentHighlight&&(this.parentHighlight=this.createParentHighlightShape(c),this.parentHighlight.dialect=mxConstants.DIALECT_SVG,this.parentHighlight.pointerEvents=!1,this.parentHighlight.rotation=Number(c.style[mxConstants.STYLE_ROTATION]||"0"),this.parentHighlight.init(this.graph.getView().getOverlayPane()),this.parentHighlight.redraw(),c.parentHighlight=this.parentHighlight)}};
+mxVertexHandler.prototype.destroyParentHighlight=function(){null!=this.parentHighlight.state&&(delete this.parentHighlight.state.parentHighlight,delete this.parentHighlight.state);this.parentHighlight.destroy();this.parentHighlight=null};
+mxVertexHandler.prototype.updateParentHighlight=function(){if(!this.isDestroyed()){var a=this.isParentHighlightVisible(),b=this.graph.model.getParent(this.state.cell),c=this.graph.view.getState(b);null!=this.parentHighlight?this.graph.model.isVertex(b)&&a?(a=this.parentHighlight.bounds,null==c||a.x==c.x&&a.y==c.y&&a.width==c.width&&a.height==c.height||(this.parentHighlight.bounds=mxRectangle.fromRectangle(c),this.parentHighlight.redraw())):this.destroyParentHighlight():this.parentHighlightEnabled&&
+a&&this.graph.model.isVertex(b)&&null!=c&&null==c.parentHighlight&&(this.parentHighlight=this.createParentHighlightShape(c),this.parentHighlight.dialect=mxConstants.DIALECT_SVG,this.parentHighlight.pointerEvents=!1,this.parentHighlight.rotation=Number(c.style[mxConstants.STYLE_ROTATION]||"0"),this.parentHighlight.init(this.graph.getView().getOverlayPane()),this.parentHighlight.redraw(),c.parentHighlight=this.parentHighlight,this.parentHighlight.state=c)}};
mxVertexHandler.prototype.drawPreview=function(){null!=this.preview&&(this.preview.bounds=this.bounds,this.preview.node.parentNode==this.graph.container&&(this.preview.bounds.width=Math.max(0,this.preview.bounds.width-1),this.preview.bounds.height=Math.max(0,this.preview.bounds.height-1)),this.preview.rotation=Number(this.state.style[mxConstants.STYLE_ROTATION]||"0"),this.preview.redraw());this.selectionBorder.bounds=this.getSelectionBorderBounds();this.selectionBorder.redraw();this.updateParentHighlight()};
mxVertexHandler.prototype.getSelectionBorderBounds=function(){return this.bounds};mxVertexHandler.prototype.isDestroyed=function(){return null==this.selectionBorder};
-mxVertexHandler.prototype.destroy=function(){null!=this.escapeHandler&&(this.state.view.graph.removeListener(this.escapeHandler),this.escapeHandler=null);null!=this.preview&&(this.preview.destroy(),this.preview=null);if(null!=this.parentHighlight){var a=this.graph.model.getParent(this.state.cell),a=this.graph.view.getState(a);null!=a&&a.parentHighlight==this.parentHighlight&&(a.parentHighlight=null);this.parentHighlight.destroy();this.parentHighlight=null}null!=this.ghostPreview&&(this.ghostPreview.destroy(),
-this.ghostPreview=null);null!=this.selectionBorder&&(this.selectionBorder.destroy(),this.selectionBorder=null);this.labelShape=null;this.removeHint();if(null!=this.sizers){for(a=0;a<this.sizers.length;a++)this.sizers[a].destroy();this.sizers=null}if(null!=this.customHandles){for(a=0;a<this.customHandles.length;a++)this.customHandles[a].destroy();this.customHandles=null}};
+mxVertexHandler.prototype.destroy=function(){null!=this.escapeHandler&&(this.state.view.graph.removeListener(this.escapeHandler),this.escapeHandler=null);null!=this.preview&&(this.preview.destroy(),this.preview=null);null!=this.ghostPreview&&(this.ghostPreview.destroy(),this.ghostPreview=null);null!=this.selectionBorder&&(this.selectionBorder.destroy(),this.selectionBorder=null);null!=this.parentHighlight&&this.destroyParentHighlight();this.labelShape=null;this.removeHint();if(null!=this.sizers){for(var a=
+0;a<this.sizers.length;a++)this.sizers[a].destroy();this.sizers=null}if(null!=this.customHandles){for(a=0;a<this.customHandles.length;a++)this.customHandles[a].destroy();this.customHandles=null}};
function mxEdgeHandler(a){null!=a&&null!=a.shape&&(this.state=a,this.init(),this.escapeHandler=mxUtils.bind(this,function(b,c){var d=null!=this.index;this.reset();d&&this.graph.cellRenderer.redraw(this.state,!1,a.view.isRendering())}),this.state.view.graph.addListener(mxEvent.ESCAPE,this.escapeHandler))}mxEdgeHandler.prototype.graph=null;mxEdgeHandler.prototype.state=null;mxEdgeHandler.prototype.marker=null;mxEdgeHandler.prototype.constraintHandler=null;mxEdgeHandler.prototype.error=null;
mxEdgeHandler.prototype.shape=null;mxEdgeHandler.prototype.bends=null;mxEdgeHandler.prototype.labelShape=null;mxEdgeHandler.prototype.cloneEnabled=!0;mxEdgeHandler.prototype.addEnabled=!1;mxEdgeHandler.prototype.removeEnabled=!1;mxEdgeHandler.prototype.dblClickRemoveEnabled=!1;mxEdgeHandler.prototype.mergeRemoveEnabled=!1;mxEdgeHandler.prototype.straightRemoveEnabled=!1;mxEdgeHandler.prototype.virtualBendsEnabled=!1;mxEdgeHandler.prototype.virtualBendOpacity=20;
mxEdgeHandler.prototype.parentHighlightEnabled=!1;mxEdgeHandler.prototype.preferHtml=!1;mxEdgeHandler.prototype.allowHandleBoundsCheck=!0;mxEdgeHandler.prototype.snapToTerminals=!1;mxEdgeHandler.prototype.handleImage=null;mxEdgeHandler.prototype.tolerance=0;mxEdgeHandler.prototype.outlineConnect=!1;mxEdgeHandler.prototype.manageLabelHandle=!1;
mxEdgeHandler.prototype.init=function(){this.graph=this.state.view.graph;this.marker=this.createMarker();this.constraintHandler=new mxConstraintHandler(this.graph);this.points=[];this.abspoints=this.getSelectionPoints(this.state);this.shape=this.createSelectionShape(this.abspoints);this.shape.dialect=this.graph.dialect!=mxConstants.DIALECT_SVG?mxConstants.DIALECT_MIXEDHTML:mxConstants.DIALECT_SVG;this.shape.init(this.graph.getView().getOverlayPane());this.shape.svgStrokeTolerance=0;this.shape.pointerEvents=
!1;mxEvent.redirectMouseEvents(this.shape.node,this.graph,this.state);this.graph.isCellMovable(this.state.cell)&&this.shape.setCursor(mxConstants.CURSOR_MOVABLE_EDGE);this.preferHtml=null!=this.state.text&&this.state.text.node.parentNode==this.graph.container;if(!this.preferHtml){var a=this.state.getVisibleTerminalState(!0);null!=a&&(this.preferHtml=null!=a.text&&a.text.node.parentNode==this.graph.container);this.preferHtml||(a=this.state.getVisibleTerminalState(!1),null!=a&&(this.preferHtml=null!=
a.text&&a.text.node.parentNode==this.graph.container))}this.graph.isCellEditable(this.state.cell)&&(this.graph.getSelectionCount()<mxGraphHandler.prototype.maxCells||0>=mxGraphHandler.prototype.maxCells)&&(this.bends=this.createBends(),this.isVirtualBendsEnabled()&&(this.virtualBends=this.createVirtualBends()));this.label=new mxPoint(this.state.absoluteOffset.x,this.state.absoluteOffset.y);this.labelShape=this.createLabelHandleShape();this.initBend(this.labelShape);this.graph.isCellEditable(this.state.cell)&&
-(this.labelShape.setCursor(mxConstants.CURSOR_LABEL_HANDLE),this.customHandles=this.createCustomHandles());this.updateParentHighlight();this.redraw()};mxEdgeHandler.prototype.isParentHighlightVisible=mxVertexHandler.prototype.isParentHighlightVisible;mxEdgeHandler.prototype.updateParentHighlight=mxVertexHandler.prototype.updateParentHighlight;mxEdgeHandler.prototype.createCustomHandles=function(){return null};
+(this.labelShape.setCursor(mxConstants.CURSOR_LABEL_HANDLE),this.customHandles=this.createCustomHandles());this.updateParentHighlight();this.redraw()};mxEdgeHandler.prototype.isParentHighlightVisible=mxVertexHandler.prototype.isParentHighlightVisible;mxEdgeHandler.prototype.destroyParentHighlight=mxVertexHandler.prototype.destroyParentHighlight;mxEdgeHandler.prototype.updateParentHighlight=mxVertexHandler.prototype.updateParentHighlight;mxEdgeHandler.prototype.createCustomHandles=function(){return null};
mxEdgeHandler.prototype.isVirtualBendsEnabled=function(a){return this.virtualBendsEnabled&&(null==this.state.style[mxConstants.STYLE_EDGE]||this.state.style[mxConstants.STYLE_EDGE]==mxConstants.NONE||1==this.state.style[mxConstants.STYLE_NOEDGESTYLE])&&"arrow"!=mxUtils.getValue(this.state.style,mxConstants.STYLE_SHAPE,null)};mxEdgeHandler.prototype.isCellEnabled=function(a){return!0};mxEdgeHandler.prototype.isAddPointEvent=function(a){return mxEvent.isShiftDown(a)};
mxEdgeHandler.prototype.isRemovePointEvent=function(a){return mxEvent.isShiftDown(a)};mxEdgeHandler.prototype.getSelectionPoints=function(a){return a.absolutePoints};mxEdgeHandler.prototype.createParentHighlightShape=function(a){a=new mxRectangleShape(mxRectangle.fromRectangle(a),null,this.getSelectionColor());a.strokewidth=this.getSelectionStrokeWidth();a.isDashed=this.isSelectionDashed();return a};
mxEdgeHandler.prototype.createSelectionShape=function(a){a=new this.state.shape.constructor;a.outline=!0;a.apply(this.state);a.isDashed=this.isSelectionDashed();a.stroke=this.getSelectionColor();a.isShadow=!1;return a};mxEdgeHandler.prototype.getSelectionColor=function(){return this.graph.isCellEditable(this.state.cell)?mxConstants.EDGE_SELECTION_COLOR:mxConstants.LOCKED_HANDLE_FILLCOLOR};mxEdgeHandler.prototype.getSelectionStrokeWidth=function(){return mxConstants.EDGE_SELECTION_STROKEWIDTH};
@@ -1934,9 +1935,8 @@ mxEdgeHandler.prototype.drawPreview=function(){try{if(this.isLabel){var a=this.l
this.shape.stroke=this.getSelectionColor(),this.shape.strokewidth=this.getSelectionStrokeWidth()/this.shape.scale/this.shape.scale,this.shape.isShadow=!1,this.shape.redraw());this.updateParentHighlight()}catch(c){}};
mxEdgeHandler.prototype.refresh=function(){null!=this.state&&(this.abspoints=this.getSelectionPoints(this.state),this.points=[],null!=this.bends&&(this.destroyBends(this.bends),this.bends=this.createBends()),null!=this.virtualBends&&(this.destroyBends(this.virtualBends),this.virtualBends=this.createVirtualBends()),null!=this.customHandles&&(this.destroyBends(this.customHandles),this.customHandles=this.createCustomHandles()),null!=this.labelShape&&null!=this.labelShape.node&&null!=this.labelShape.node.parentNode&&
this.labelShape.node.parentNode.appendChild(this.labelShape.node))};mxEdgeHandler.prototype.isDestroyed=function(){return null==this.shape};mxEdgeHandler.prototype.destroyBends=function(a){if(null!=a)for(var b=0;b<a.length;b++)null!=a[b]&&a[b].destroy()};
-mxEdgeHandler.prototype.destroy=function(){null!=this.escapeHandler&&(this.state.view.graph.removeListener(this.escapeHandler),this.escapeHandler=null);null!=this.marker&&(this.marker.destroy(),this.marker=null);null!=this.shape&&(this.shape.destroy(),this.shape=null);if(null!=this.parentHighlight){var a=this.graph.model.getParent(this.state.cell),a=this.graph.view.getState(a);null!=a&&a.parentHighlight==this.parentHighlight&&(a.parentHighlight=null);this.parentHighlight.destroy();this.parentHighlight=
-null}null!=this.labelShape&&(this.labelShape.destroy(),this.labelShape=null);null!=this.constraintHandler&&(this.constraintHandler.destroy(),this.constraintHandler=null);this.destroyBends(this.virtualBends);this.virtualBends=null;this.destroyBends(this.customHandles);this.customHandles=null;this.destroyBends(this.bends);this.bends=null;this.removeHint()};function mxElbowEdgeHandler(a){mxEdgeHandler.call(this,a)}mxUtils.extend(mxElbowEdgeHandler,mxEdgeHandler);
-mxElbowEdgeHandler.prototype.flipEnabled=!0;mxElbowEdgeHandler.prototype.doubleClickOrientationResource="none"!=mxClient.language?"doubleClickOrientation":"";
+mxEdgeHandler.prototype.destroy=function(){null!=this.escapeHandler&&(this.state.view.graph.removeListener(this.escapeHandler),this.escapeHandler=null);null!=this.marker&&(this.marker.destroy(),this.marker=null);null!=this.shape&&(this.shape.destroy(),this.shape=null);null!=this.labelShape&&(this.labelShape.destroy(),this.labelShape=null);null!=this.constraintHandler&&(this.constraintHandler.destroy(),this.constraintHandler=null);null!=this.parentHighlight&&this.destroyParentHighlight();this.destroyBends(this.virtualBends);
+this.virtualBends=null;this.destroyBends(this.customHandles);this.customHandles=null;this.destroyBends(this.bends);this.bends=null;this.removeHint()};function mxElbowEdgeHandler(a){mxEdgeHandler.call(this,a)}mxUtils.extend(mxElbowEdgeHandler,mxEdgeHandler);mxElbowEdgeHandler.prototype.flipEnabled=!0;mxElbowEdgeHandler.prototype.doubleClickOrientationResource="none"!=mxClient.language?"doubleClickOrientation":"";
mxElbowEdgeHandler.prototype.createBends=function(){var a=[],b=this.createHandleShape(0);this.initBend(b);b.setCursor(mxConstants.CURSOR_TERMINAL_HANDLE);a.push(b);a.push(this.createVirtualBend(mxUtils.bind(this,function(a){!mxEvent.isConsumed(a)&&this.flipEnabled&&(this.graph.flipEdge(this.state.cell,a),mxEvent.consume(a))})));this.points.push(new mxPoint(0,0));b=this.createHandleShape(2,null,!0);this.initBend(b);b.setCursor(mxConstants.CURSOR_TERMINAL_HANDLE);a.push(b);return a};
mxElbowEdgeHandler.prototype.createVirtualBend=function(a){var b=this.createHandleShape();this.initBend(b,a);b.setCursor(this.getCursorForBend());this.graph.isCellBendable(this.state.cell)||(b.node.style.display="none");return b};
mxElbowEdgeHandler.prototype.getCursorForBend=function(){return this.state.style[mxConstants.STYLE_EDGE]==mxEdgeStyle.TopToBottom||this.state.style[mxConstants.STYLE_EDGE]==mxConstants.EDGESTYLE_TOPTOBOTTOM||(this.state.style[mxConstants.STYLE_EDGE]==mxEdgeStyle.ElbowConnector||this.state.style[mxConstants.STYLE_EDGE]==mxConstants.EDGESTYLE_ELBOW)&&this.state.style[mxConstants.STYLE_ELBOW]==mxConstants.ELBOW_VERTICAL?"row-resize":"col-resize"};
@@ -2878,40 +2878,40 @@ null==e.setAttributeNS||b.ownerDocument!=document&&null==document.documentMode?(
d.appendChild(c);e.appendChild(f);d.appendChild(e);b.appendChild(d)}};Graph.prototype.updateSvgLinks=function(a,b,d){a=a.getElementsByTagName("a");for(var c=0;c<a.length;c++)if(null==a[c].getAttribute("target")){var e=a[c].getAttribute("href");null==e&&(e=a[c].getAttribute("xlink:href"));null!=e&&(null!=b&&/^https?:\/\//.test(e)?a[c].setAttribute("target",b):d&&this.isCustomLink(e)&&a[c].setAttribute("href","javascript:void(0);"))}};Graph.prototype.createSvgCanvas=function(a){a=new mxSvgCanvas2D(a);
a.pointerEvents=!0;return a};Graph.prototype.getSelectedElement=function(){var a=null;if(window.getSelection){var b=window.getSelection();b.getRangeAt&&b.rangeCount&&(a=b.getRangeAt(0).commonAncestorContainer)}else document.selection&&(a=document.selection.createRange().parentElement());return a};Graph.prototype.getSelectedEditingElement=function(){for(var a=this.getSelectedElement();null!=a&&a.nodeType!=mxConstants.NODETYPE_ELEMENT;)a=a.parentNode;null!=a&&a==this.cellEditor.textarea&&1==this.cellEditor.textarea.children.length&&
this.cellEditor.textarea.firstChild.nodeType==mxConstants.NODETYPE_ELEMENT&&(a=this.cellEditor.textarea.firstChild);return a};Graph.prototype.getParentByName=function(a,b,d){for(;null!=a&&a.nodeName!=b;){if(a==d)return null;a=a.parentNode}return a};Graph.prototype.getParentByNames=function(a,b,d){for(;null!=a&&!(0<=mxUtils.indexOf(b,a.nodeName));){if(a==d)return null;a=a.parentNode}return a};Graph.prototype.selectNode=function(a){var b=null;if(window.getSelection){if(b=window.getSelection(),b.getRangeAt&&
-b.rangeCount){var d=document.createRange();d.selectNode(a);b.removeAllRanges();b.addRange(d)}}else(b=document.selection)&&"Control"!=b.type&&(a=b.createRange(),a.collapse(!0),d=b.createRange(),d.setEndPoint("StartToStart",a),d.select())};Graph.prototype.flipEdge=function(a,b,d){var c=this.getCellGeometry(a);if(null!=c){c=c.clone();if(null!=c.points)for(var e=0;e<c.points.length;e++)b?c.points[e].x=d+(d-c.points[e].x):c.points[e].y=d+(d-c.points[e].y);e=function(a){null!=a&&(b?a.x=d+(d-a.x):a.y=d+
-(d-a.y))};e(c.getTerminalPoint(!0));e(c.getTerminalPoint(!1));this.model.setGeometry(a,c)}};Graph.prototype.flipChildren=function(a,b,d){this.model.beginUpdate();try{for(var c=this.model.getChildCount(a),e=0;e<c;e++){var f=this.model.getChildAt(a,e);if(this.model.isEdge(f))this.flipEdge(f,b,d);else{var g=this.getCellGeometry(f);null!=g&&(g=g.clone(),b?g.x=d+(d-g.x-g.width):g.y=d+(d-g.y-g.height),this.model.setGeometry(f,g))}}}finally{this.model.endUpdate()}};Graph.prototype.flipCells=function(a,b){this.model.beginUpdate();
-try{a=this.model.getTopmostCells(a);for(var d=[],c=0;c<a.length;c++)if(this.model.isEdge(a[c])){var e=this.view.getState(a[c]);null!=e&&this.flipEdge(a[c],b,(b?e.getCenterX():e.getCenterY())/this.view.scale-(b?e.origin.x:e.origin.y)-(b?this.view.translate.x:this.view.translate.y))}else{var f=this.getCellGeometry(a[c]);null!=f&&this.flipChildren(a[c],b,b?f.getCenterX()-f.x:f.getCenterY()-f.y);d.push(a[c])}this.toggleCellStyles(b?mxConstants.STYLE_FLIPH:mxConstants.STYLE_FLIPV,!1,d)}finally{this.model.endUpdate()}};
-Graph.prototype.deleteCells=function(a,b){var d=null;if(null!=a&&0<a.length){this.model.beginUpdate();try{for(var c=0;c<a.length;c++){var e=this.model.getParent(a[c]);if(this.isTable(e)){var f=this.getCellGeometry(a[c]),g=this.getCellGeometry(e);null!=f&&null!=g&&(g=g.clone(),g.height-=f.height,this.model.setGeometry(e,g))}}var h=this.selectParentAfterDelete?this.model.getParents(a):null;this.removeCells(a,b)}finally{this.model.endUpdate()}if(null!=h)for(d=[],c=0;c<h.length;c++)this.model.contains(h[c])&&
-(this.model.isVertex(h[c])||this.model.isEdge(h[c]))&&d.push(h[c])}return d};Graph.prototype.insertTableColumn=function(a,b){var d=this.getModel();d.beginUpdate();try{var c=a,e=0;if(this.isTableCell(a))var f=d.getParent(a),c=d.getParent(f),e=mxUtils.indexOf(d.getChildCells(f,!0),a);else this.isTableRow(a)?c=d.getParent(a):a=d.getChildCells(c,!0)[0],b||(e=d.getChildCells(a,!0).length-1);for(var g=d.getChildCells(c,!0),h=Graph.minTableColumnWidth,f=0;f<g.length;f++){var k=d.getChildCells(g[f],!0)[e],
-l=d.cloneCell(k,!1),m=this.getCellGeometry(l);l.value=null;l.style=mxUtils.setStyle(mxUtils.setStyle(l.style,"rowspan",null),"colspan",null);if(null!=m){null!=m.alternateBounds&&(m.width=m.alternateBounds.width,m.height=m.alternateBounds.height,m.alternateBounds=null);var h=m.width,n=this.getCellGeometry(g[f]);null!=n&&(m.height=n.height)}d.add(g[f],l,e+(b?0:1))}var p=this.getCellGeometry(c);null!=p&&(p=p.clone(),p.width+=h,d.setGeometry(c,p))}finally{d.endUpdate()}};Graph.prototype.deleteLane=function(a){var b=
-this.getModel();b.beginUpdate();try{var d=null,d="stackLayout"==this.getCurrentCellStyle(a).childLayout?a:b.getParent(a),c=b.getChildCells(d,!0);0==c.length?b.remove(d):(d==a&&(a=c[c.length-1]),b.remove(a))}finally{b.endUpdate()}};Graph.prototype.insertLane=function(a,b){var d=this.getModel();d.beginUpdate();try{var c=null,e=a;if("stackLayout"==this.getCurrentCellStyle(e).childLayout)var c=e,f=d.getChildCells(c,!0),e=f[b?0:f.length-1];else c=d.getParent(e);var g=c.getIndex(e),e=d.cloneCell(e,!1);
-e.value=null;d.add(c,e,g+(b?0:1))}finally{d.endUpdate()}};Graph.prototype.insertTableRow=function(a,b){var d=this.getModel();d.beginUpdate();try{var c=a,e=a;if(this.isTableCell(a))e=d.getParent(a),c=d.getParent(e);else if(this.isTableRow(a))c=d.getParent(a);else var f=d.getChildCells(c,!0),e=f[b?0:f.length-1];var g=d.getChildCells(e,!0),h=c.getIndex(e),e=d.cloneCell(e,!1);e.value=null;var k=this.getCellGeometry(e);if(null!=k){for(f=0;f<g.length;f++){a=d.cloneCell(g[f],!1);a.value=null;a.style=mxUtils.setStyle(mxUtils.setStyle(a.style,
-"rowspan",null),"colspan",null);var l=this.getCellGeometry(a);null!=l&&(null!=l.alternateBounds&&(l.width=l.alternateBounds.width,l.height=l.alternateBounds.height,l.alternateBounds=null),l.height=k.height);e.insert(a)}d.add(c,e,h+(b?0:1));var m=this.getCellGeometry(c);null!=m&&(m=m.clone(),m.height+=k.height,d.setGeometry(c,m))}}finally{d.endUpdate()}};Graph.prototype.deleteTableColumn=function(a){var b=this.getModel();b.beginUpdate();try{var d=a,c=a;this.isTableCell(a)&&(c=b.getParent(a));this.isTableRow(c)&&
-(d=b.getParent(c));var e=b.getChildCells(d,!0);if(0==e.length)b.remove(d);else{this.isTableRow(c)||(c=e[0]);var f=b.getChildCells(c,!0);if(1>=f.length)b.remove(d);else{var g=f.length-1;this.isTableCell(a)&&(g=mxUtils.indexOf(f,a));for(c=a=0;c<e.length;c++){var h=b.getChildCells(e[c],!0)[g];b.remove(h);var k=this.getCellGeometry(h);null!=k&&(a=Math.max(a,k.width))}var l=this.getCellGeometry(d);null!=l&&(l=l.clone(),l.width-=a,b.setGeometry(d,l))}}}finally{b.endUpdate()}};Graph.prototype.deleteTableRow=
-function(a){var b=this.getModel();b.beginUpdate();try{var d=a,c=a;this.isTableCell(a)&&(a=c=b.getParent(a));this.isTableRow(a)&&(d=b.getParent(c));var e=b.getChildCells(d,!0);if(1>=e.length)b.remove(d);else{this.isTableRow(c)||(c=e[e.length-1]);b.remove(c);a=0;var f=this.getCellGeometry(c);null!=f&&(a=f.height);var g=this.getCellGeometry(d);null!=g&&(g=g.clone(),g.height-=a,b.setGeometry(d,g))}}finally{b.endUpdate()}};Graph.prototype.insertRow=function(a,b){for(var d=a.tBodies[0],c=d.rows[0].cells,
-e=0,f=0;f<c.length;f++)var g=c[f].getAttribute("colspan"),e=e+(null!=g?parseInt(g):1);d=d.insertRow(b);for(f=0;f<e;f++)mxUtils.br(d.insertCell(-1));return d.cells[0]};Graph.prototype.deleteRow=function(a,b){a.tBodies[0].deleteRow(b)};Graph.prototype.insertColumn=function(a,b){var d=a.tHead;if(null!=d)for(var c=0;c<d.rows.length;c++){var e=document.createElement("th");d.rows[c].appendChild(e);mxUtils.br(e)}d=a.tBodies[0];for(c=0;c<d.rows.length;c++)e=d.rows[c].insertCell(b),mxUtils.br(e);return d.rows[0].cells[0<=
-b?b:d.rows[0].cells.length-1]};Graph.prototype.deleteColumn=function(a,b){if(0<=b)for(var d=a.tBodies[0].rows,c=0;c<d.length;c++)d[c].cells.length>b&&d[c].deleteCell(b)};Graph.prototype.pasteHtmlAtCaret=function(a){var b;if(window.getSelection){if(b=window.getSelection(),b.getRangeAt&&b.rangeCount){b=b.getRangeAt(0);b.deleteContents();var d=document.createElement("div");d.innerHTML=a;a=document.createDocumentFragment();for(var c;c=d.firstChild;)lastNode=a.appendChild(c);b.insertNode(a)}}else(b=document.selection)&&
-"Control"!=b.type&&b.createRange().pasteHTML(a)};Graph.prototype.createLinkForHint=function(a,b){function d(a,b){a.length>b&&(a=a.substring(0,Math.round(b/2))+"..."+a.substring(a.length-Math.round(b/4)));return a}a=null!=a?a:"javascript:void(0);";if(null==b||0==b.length)b=this.isCustomLink(a)?this.getLinkTitle(a):a;var c=document.createElement("a");c.setAttribute("rel",this.linkRelation);c.setAttribute("href",this.getAbsoluteUrl(a));c.setAttribute("title",d(this.isCustomLink(a)?this.getLinkTitle(a):
-a,80));null!=this.linkTarget&&c.setAttribute("target",this.linkTarget);mxUtils.write(c,d(b,40));this.isCustomLink(a)&&mxEvent.addListener(c,"click",mxUtils.bind(this,function(b){this.customLinkClicked(a);mxEvent.consume(b)}));return c};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};this.addListener(mxEvent.START_EDITING,function(a,b){this.popupMenuHandler.hideMenu()});var a=this.updateMouseEvent;this.updateMouseEvent=
-function(b){b=a.apply(this,arguments);if(mxEvent.isTouchEvent(b.getEvent())&&null==b.getState()){var d=this.getCellAt(b.graphX,b.graphY);null!=d&&this.isSwimlane(d)&&this.hitsSwimlaneContent(d,b.graphX,b.graphY)||(b.state=this.view.getState(d),null!=b.state&&null!=b.state.shape&&(this.container.style.cursor=b.state.shape.node.style.cursor))}null==b.getState()&&this.isEnabled()&&(this.container.style.cursor="default");return b};var b=!1,d=!1,c=!1,e=this.fireMouseEvent;this.fireMouseEvent=function(a,
-f,g){a==mxEvent.MOUSE_DOWN&&(f=this.updateMouseEvent(f),b=this.isCellSelected(f.getCell()),d=this.isSelectionEmpty(),c=this.popupMenuHandler.isMenuShowing());e.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(a,e){var f=mxEvent.isMouseEvent(e.getEvent());this.popupMenuHandler.popupTrigger=!this.isEditing()&&this.isEnabled()&&(null==e.getState()||!e.isSource(e.getState().control))&&(this.popupMenuHandler.popupTrigger||!c&&!f&&(d&&null==e.getCell()&&this.isSelectionEmpty()||
-b&&this.isCellSelected(e.getCell())));f=!b||f?null:mxUtils.bind(this,function(a){window.setTimeout(mxUtils.bind(this,function(){if(!this.isEditing()){var b=mxUtils.getScrollOrigin();this.popupMenuHandler.popup(e.getX()+b.x+1,e.getY()+b.y+1,a,e.getEvent())}}),500)});mxPopupMenuHandler.prototype.mouseUp.apply(this.popupMenuHandler,[a,e,f])})};mxCellEditor.prototype.isContentEditing=function(){var a=this.graph.view.getState(this.editingCell);return null!=a&&1==a.style.html};mxCellEditor.prototype.isTableSelected=
-function(){return null!=this.graph.getParentByName(this.graph.getSelectedElement(),"TABLE",this.textarea)};mxCellEditor.prototype.isTextSelected=function(){var a="";window.getSelection?a=window.getSelection():document.getSelection?a=document.getSelection():document.selection&&(a=document.selection.createRange().text);return""!=a};mxCellEditor.prototype.insertTab=function(a){var b=this.textarea.ownerDocument.defaultView.getSelection(),d=b.getRangeAt(0),c="\t";if(null!=a)for(c="";0<a;)c+=" ",a--;a=
-document.createElement("span");a.style.whiteSpace="pre";a.appendChild(document.createTextNode(c));d.insertNode(a);d.setStartAfter(a);d.setEndAfter(a);b.removeAllRanges();b.addRange(d)};mxCellEditor.prototype.alignText=function(a,b){var d=null!=b&&mxEvent.isShiftDown(b);if(d||null!=window.getSelection&&null!=window.getSelection().containsNode){var c=!0;this.graph.processElements(this.textarea,function(a){d||window.getSelection().containsNode(a,!0)?(a.removeAttribute("align"),a.style.textAlign=null):
-c=!1});c&&this.graph.cellEditor.setAlign(a)}document.execCommand("justify"+a.toLowerCase(),!1,null)};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var a=window.getSelection();if(a.getRangeAt&&a.rangeCount){for(var b=[],d=0,c=a.rangeCount;d<c;++d)b.push(a.getRangeAt(d));return b}}else if(document.selection&&document.selection.createRange)return document.selection.createRange();return null};mxCellEditor.prototype.restoreSelection=function(a){try{if(a)if(window.getSelection){sel=
-window.getSelection();sel.removeAllRanges();for(var b=0,d=a.length;b<d;++b)sel.addRange(a[b])}else document.selection&&a.select&&a.select()}catch(X){}};var r=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=function(a){null!=a.text&&(a.text.replaceLinefeeds="0"!=mxUtils.getValue(a.style,"nl2Br","1"));r.apply(this,arguments)};var u=mxConstraintHandler.prototype.update;mxConstraintHandler.prototype.update=function(a,b){this.isKeepFocusEvent(a)||!mxEvent.isAltDown(a.getEvent())?
-u.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=function(a){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var t=mxCellEditor.prototype.startEditing;mxCellEditor.prototype.startEditing=function(a,b){a=this.graph.getStartEditingCell(a,b);t.apply(this,arguments);var d=this.graph.view.getState(a);this.textarea.className=null!=d&&1==d.style.html?"mxCellEditor geContentEditable":"mxCellEditor mxPlainTextEditor";
-this.codeViewMode=!1;this.switchSelectionState=null;this.graph.setSelectionCell(a);var d=this.graph.getModel().getParent(a),c=this.graph.getCellGeometry(a);if(this.graph.getModel().isEdge(d)&&null!=c&&c.relative||this.graph.getModel().isEdge(a))this.textarea.style.outline=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_FF&&mxClient.IS_WIN?"gray dotted 1px":""};var w=mxCellEditor.prototype.installListeners;mxCellEditor.prototype.installListeners=function(a){function b(a,d){d.originalNode=a;a=a.firstChild;
-for(var c=d.firstChild;null!=a&&null!=c;)b(a,c),a=a.nextSibling,c=c.nextSibling;return d}function d(a,b){if(null!=a)if(b.originalNode!=a)c(a);else for(a=a.firstChild,b=b.firstChild;null!=a;){var e=a.nextSibling;null==b?c(a):(d(a,b),b=b.nextSibling);a=e}}function c(a){for(var b=a.firstChild;null!=b;){var d=b.nextSibling;c(b);b=d}1==a.nodeType&&("BR"===a.nodeName||null!=a.firstChild)||3==a.nodeType&&0!=mxUtils.trim(mxUtils.getTextContent(a)).length?(3==a.nodeType&&mxUtils.setTextContent(a,mxUtils.getTextContent(a).replace(/\n|\r/g,
-"")),1==a.nodeType&&(a.removeAttribute("style"),a.removeAttribute("class"),a.removeAttribute("width"),a.removeAttribute("cellpadding"),a.removeAttribute("cellspacing"),a.removeAttribute("border"))):a.parentNode.removeChild(a)}w.apply(this,arguments);7!==document.documentMode&&8!==document.documentMode&&mxEvent.addListener(this.textarea,"paste",mxUtils.bind(this,function(a){var c=b(this.textarea,this.textarea.cloneNode(!0));window.setTimeout(mxUtils.bind(this,function(){null!=this.textarea&&(0<=this.textarea.innerHTML.indexOf("<o:OfficeDocumentSettings>")||
-0<=this.textarea.innerHTML.indexOf("\x3c!--[if !mso]>")?d(this.textarea,c):Graph.removePasteFormatting(this.textarea))}),0)}))};mxCellEditor.prototype.toggleViewMode=function(){var a=this.graph.view.getState(this.editingCell);if(null!=a){var b=null!=a&&"0"!=mxUtils.getValue(a.style,"nl2Br","1"),d=this.saveSelection();if(this.codeViewMode){k=mxUtils.extractTextWithWhitespace(this.textarea.childNodes);0<k.length&&"\n"==k.charAt(k.length-1)&&(k=k.substring(0,k.length-1));k=this.graph.sanitizeHtml(b?
-k.replace(/\n/g,"<br/>"):k,!0);this.textarea.className="mxCellEditor geContentEditable";var c=mxUtils.getValue(a.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE),b=mxUtils.getValue(a.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY),e=mxUtils.getValue(a.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),f=(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,g=(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&
-mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,h=[];(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&h.push("underline");(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&h.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(c*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(c)+
-"px";this.textarea.style.textDecoration=h.join(" ");this.textarea.style.fontWeight=f?"bold":"normal";this.textarea.style.fontStyle=g?"italic":"";this.textarea.style.fontFamily=b;this.textarea.style.textAlign=e;this.textarea.style.padding="0px";this.textarea.innerHTML!=k&&(this.textarea.innerHTML=k,0==this.textarea.innerHTML.length&&(this.textarea.innerHTML=this.getEmptyLabelText(),this.clearOnChange=0<this.textarea.innerHTML.length));this.codeViewMode=!1}else{this.clearOnChange&&this.textarea.innerHTML==
-this.getEmptyLabelText()&&(this.clearOnChange=!1,this.textarea.innerHTML="");var k=mxUtils.htmlEntities(this.textarea.innerHTML);8!=document.documentMode&&(k=mxUtils.replaceTrailingNewlines(k,"<div><br></div>"));k=this.graph.sanitizeHtml(b?k.replace(/\n/g,"").replace(/&lt;br\s*.?&gt;/g,"<br>"):k,!0);this.textarea.className="mxCellEditor mxPlainTextEditor";var c=mxConstants.DEFAULT_FONTSIZE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(c*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;
-this.textarea.style.fontSize=Math.round(c)+"px";this.textarea.style.textDecoration="";this.textarea.style.fontWeight="normal";this.textarea.style.fontStyle="";this.textarea.style.fontFamily=mxConstants.DEFAULT_FONTFAMILY;this.textarea.style.textAlign="left";this.textarea.style.width="";this.textarea.style.padding="2px";this.textarea.innerHTML!=k&&(this.textarea.innerHTML=k);this.codeViewMode=!0}this.textarea.focus();null!=this.switchSelectionState&&this.restoreSelection(this.switchSelectionState);
-this.switchSelectionState=d;this.resize()}};var x=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(a,b){if(null!=this.textarea)if(a=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=a){var d=a.view.scale;this.bounds=mxRectangle.fromRectangle(a);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*d;this.bounds.height=60*d;var c=null!=a.text?a.text.margin:null;null==c&&(c=mxUtils.getAlignmentAsPoint(mxUtils.getValue(a.style,mxConstants.STYLE_ALIGN,
-mxConstants.ALIGN_CENTER),mxUtils.getValue(a.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));this.bounds.x+=c.x*this.bounds.width;this.bounds.y+=c.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/d)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/d)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight<this.textarea.offsetHeight&&(this.textarea.style.height=Math.round(this.bounds.height/d)+(this.textarea.offsetHeight-
+b.rangeCount){var d=document.createRange();d.selectNode(a);b.removeAllRanges();b.addRange(d)}}else(b=document.selection)&&"Control"!=b.type&&(a=b.createRange(),a.collapse(!0),d=b.createRange(),d.setEndPoint("StartToStart",a),d.select())};Graph.prototype.flipEdgePoints=function(a,b,d){var c=this.getCellGeometry(a);if(null!=c){c=c.clone();if(null!=c.points)for(var e=0;e<c.points.length;e++)b?c.points[e].x=d+(d-c.points[e].x):c.points[e].y=d+(d-c.points[e].y);e=function(a){null!=a&&(b?a.x=d+(d-a.x):
+a.y=d+(d-a.y))};e(c.getTerminalPoint(!0));e(c.getTerminalPoint(!1));this.model.setGeometry(a,c)}};Graph.prototype.flipChildren=function(a,b,d){this.model.beginUpdate();try{for(var c=this.model.getChildCount(a),e=0;e<c;e++){var f=this.model.getChildAt(a,e);if(this.model.isEdge(f))this.flipEdgePoints(f,b,d);else{var g=this.getCellGeometry(f);null!=g&&(g=g.clone(),b?g.x=d+(d-g.x-g.width):g.y=d+(d-g.y-g.height),this.model.setGeometry(f,g))}}}finally{this.model.endUpdate()}};Graph.prototype.flipCells=
+function(a,b){this.model.beginUpdate();try{a=this.model.getTopmostCells(a);for(var d=[],c=0;c<a.length;c++)if(this.model.isEdge(a[c])){var e=this.view.getState(a[c]);null!=e&&this.flipEdgePoints(a[c],b,(b?e.getCenterX():e.getCenterY())/this.view.scale-(b?e.origin.x:e.origin.y)-(b?this.view.translate.x:this.view.translate.y))}else{var f=this.getCellGeometry(a[c]);null!=f&&this.flipChildren(a[c],b,b?f.getCenterX()-f.x:f.getCenterY()-f.y);d.push(a[c])}this.toggleCellStyles(b?mxConstants.STYLE_FLIPH:
+mxConstants.STYLE_FLIPV,!1,d)}finally{this.model.endUpdate()}};Graph.prototype.deleteCells=function(a,b){var d=null;if(null!=a&&0<a.length){this.model.beginUpdate();try{for(var c=0;c<a.length;c++){var e=this.model.getParent(a[c]);if(this.isTable(e)){var f=this.getCellGeometry(a[c]),g=this.getCellGeometry(e);null!=f&&null!=g&&(g=g.clone(),g.height-=f.height,this.model.setGeometry(e,g))}}var h=this.selectParentAfterDelete?this.model.getParents(a):null;this.removeCells(a,b)}finally{this.model.endUpdate()}if(null!=
+h)for(d=[],c=0;c<h.length;c++)this.model.contains(h[c])&&(this.model.isVertex(h[c])||this.model.isEdge(h[c]))&&d.push(h[c])}return d};Graph.prototype.insertTableColumn=function(a,b){var d=this.getModel();d.beginUpdate();try{var c=a,e=0;if(this.isTableCell(a))var f=d.getParent(a),c=d.getParent(f),e=mxUtils.indexOf(d.getChildCells(f,!0),a);else this.isTableRow(a)?c=d.getParent(a):a=d.getChildCells(c,!0)[0],b||(e=d.getChildCells(a,!0).length-1);for(var g=d.getChildCells(c,!0),h=Graph.minTableColumnWidth,
+f=0;f<g.length;f++){var k=d.getChildCells(g[f],!0)[e],l=d.cloneCell(k,!1),m=this.getCellGeometry(l);l.value=null;l.style=mxUtils.setStyle(mxUtils.setStyle(l.style,"rowspan",null),"colspan",null);if(null!=m){null!=m.alternateBounds&&(m.width=m.alternateBounds.width,m.height=m.alternateBounds.height,m.alternateBounds=null);var h=m.width,n=this.getCellGeometry(g[f]);null!=n&&(m.height=n.height)}d.add(g[f],l,e+(b?0:1))}var p=this.getCellGeometry(c);null!=p&&(p=p.clone(),p.width+=h,d.setGeometry(c,p))}finally{d.endUpdate()}};
+Graph.prototype.deleteLane=function(a){var b=this.getModel();b.beginUpdate();try{var d=null,d="stackLayout"==this.getCurrentCellStyle(a).childLayout?a:b.getParent(a),c=b.getChildCells(d,!0);0==c.length?b.remove(d):(d==a&&(a=c[c.length-1]),b.remove(a))}finally{b.endUpdate()}};Graph.prototype.insertLane=function(a,b){var d=this.getModel();d.beginUpdate();try{var c=null,e=a;if("stackLayout"==this.getCurrentCellStyle(e).childLayout)var c=e,f=d.getChildCells(c,!0),e=f[b?0:f.length-1];else c=d.getParent(e);
+var g=c.getIndex(e),e=d.cloneCell(e,!1);e.value=null;d.add(c,e,g+(b?0:1))}finally{d.endUpdate()}};Graph.prototype.insertTableRow=function(a,b){var d=this.getModel();d.beginUpdate();try{var c=a,e=a;if(this.isTableCell(a))e=d.getParent(a),c=d.getParent(e);else if(this.isTableRow(a))c=d.getParent(a);else var f=d.getChildCells(c,!0),e=f[b?0:f.length-1];var g=d.getChildCells(e,!0),h=c.getIndex(e),e=d.cloneCell(e,!1);e.value=null;var k=this.getCellGeometry(e);if(null!=k){for(f=0;f<g.length;f++){a=d.cloneCell(g[f],
+!1);a.value=null;a.style=mxUtils.setStyle(mxUtils.setStyle(a.style,"rowspan",null),"colspan",null);var l=this.getCellGeometry(a);null!=l&&(null!=l.alternateBounds&&(l.width=l.alternateBounds.width,l.height=l.alternateBounds.height,l.alternateBounds=null),l.height=k.height);e.insert(a)}d.add(c,e,h+(b?0:1));var m=this.getCellGeometry(c);null!=m&&(m=m.clone(),m.height+=k.height,d.setGeometry(c,m))}}finally{d.endUpdate()}};Graph.prototype.deleteTableColumn=function(a){var b=this.getModel();b.beginUpdate();
+try{var d=a,c=a;this.isTableCell(a)&&(c=b.getParent(a));this.isTableRow(c)&&(d=b.getParent(c));var e=b.getChildCells(d,!0);if(0==e.length)b.remove(d);else{this.isTableRow(c)||(c=e[0]);var f=b.getChildCells(c,!0);if(1>=f.length)b.remove(d);else{var g=f.length-1;this.isTableCell(a)&&(g=mxUtils.indexOf(f,a));for(c=a=0;c<e.length;c++){var h=b.getChildCells(e[c],!0)[g];b.remove(h);var k=this.getCellGeometry(h);null!=k&&(a=Math.max(a,k.width))}var l=this.getCellGeometry(d);null!=l&&(l=l.clone(),l.width-=
+a,b.setGeometry(d,l))}}}finally{b.endUpdate()}};Graph.prototype.deleteTableRow=function(a){var b=this.getModel();b.beginUpdate();try{var d=a,c=a;this.isTableCell(a)&&(a=c=b.getParent(a));this.isTableRow(a)&&(d=b.getParent(c));var e=b.getChildCells(d,!0);if(1>=e.length)b.remove(d);else{this.isTableRow(c)||(c=e[e.length-1]);b.remove(c);a=0;var f=this.getCellGeometry(c);null!=f&&(a=f.height);var g=this.getCellGeometry(d);null!=g&&(g=g.clone(),g.height-=a,b.setGeometry(d,g))}}finally{b.endUpdate()}};
+Graph.prototype.insertRow=function(a,b){for(var d=a.tBodies[0],c=d.rows[0].cells,e=0,f=0;f<c.length;f++)var g=c[f].getAttribute("colspan"),e=e+(null!=g?parseInt(g):1);d=d.insertRow(b);for(f=0;f<e;f++)mxUtils.br(d.insertCell(-1));return d.cells[0]};Graph.prototype.deleteRow=function(a,b){a.tBodies[0].deleteRow(b)};Graph.prototype.insertColumn=function(a,b){var d=a.tHead;if(null!=d)for(var c=0;c<d.rows.length;c++){var e=document.createElement("th");d.rows[c].appendChild(e);mxUtils.br(e)}d=a.tBodies[0];
+for(c=0;c<d.rows.length;c++)e=d.rows[c].insertCell(b),mxUtils.br(e);return d.rows[0].cells[0<=b?b:d.rows[0].cells.length-1]};Graph.prototype.deleteColumn=function(a,b){if(0<=b)for(var d=a.tBodies[0].rows,c=0;c<d.length;c++)d[c].cells.length>b&&d[c].deleteCell(b)};Graph.prototype.pasteHtmlAtCaret=function(a){var b;if(window.getSelection){if(b=window.getSelection(),b.getRangeAt&&b.rangeCount){b=b.getRangeAt(0);b.deleteContents();var d=document.createElement("div");d.innerHTML=a;a=document.createDocumentFragment();
+for(var c;c=d.firstChild;)lastNode=a.appendChild(c);b.insertNode(a)}}else(b=document.selection)&&"Control"!=b.type&&b.createRange().pasteHTML(a)};Graph.prototype.createLinkForHint=function(a,b){function d(a,b){a.length>b&&(a=a.substring(0,Math.round(b/2))+"..."+a.substring(a.length-Math.round(b/4)));return a}a=null!=a?a:"javascript:void(0);";if(null==b||0==b.length)b=this.isCustomLink(a)?this.getLinkTitle(a):a;var c=document.createElement("a");c.setAttribute("rel",this.linkRelation);c.setAttribute("href",
+this.getAbsoluteUrl(a));c.setAttribute("title",d(this.isCustomLink(a)?this.getLinkTitle(a):a,80));null!=this.linkTarget&&c.setAttribute("target",this.linkTarget);mxUtils.write(c,d(b,40));this.isCustomLink(a)&&mxEvent.addListener(c,"click",mxUtils.bind(this,function(b){this.customLinkClicked(a);mxEvent.consume(b)}));return c};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};this.addListener(mxEvent.START_EDITING,
+function(a,b){this.popupMenuHandler.hideMenu()});var a=this.updateMouseEvent;this.updateMouseEvent=function(b){b=a.apply(this,arguments);if(mxEvent.isTouchEvent(b.getEvent())&&null==b.getState()){var d=this.getCellAt(b.graphX,b.graphY);null!=d&&this.isSwimlane(d)&&this.hitsSwimlaneContent(d,b.graphX,b.graphY)||(b.state=this.view.getState(d),null!=b.state&&null!=b.state.shape&&(this.container.style.cursor=b.state.shape.node.style.cursor))}null==b.getState()&&this.isEnabled()&&(this.container.style.cursor=
+"default");return b};var b=!1,d=!1,c=!1,e=this.fireMouseEvent;this.fireMouseEvent=function(a,f,g){a==mxEvent.MOUSE_DOWN&&(f=this.updateMouseEvent(f),b=this.isCellSelected(f.getCell()),d=this.isSelectionEmpty(),c=this.popupMenuHandler.isMenuShowing());e.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(a,e){var f=mxEvent.isMouseEvent(e.getEvent());this.popupMenuHandler.popupTrigger=!this.isEditing()&&this.isEnabled()&&(null==e.getState()||!e.isSource(e.getState().control))&&
+(this.popupMenuHandler.popupTrigger||!c&&!f&&(d&&null==e.getCell()&&this.isSelectionEmpty()||b&&this.isCellSelected(e.getCell())));f=!b||f?null:mxUtils.bind(this,function(a){window.setTimeout(mxUtils.bind(this,function(){if(!this.isEditing()){var b=mxUtils.getScrollOrigin();this.popupMenuHandler.popup(e.getX()+b.x+1,e.getY()+b.y+1,a,e.getEvent())}}),500)});mxPopupMenuHandler.prototype.mouseUp.apply(this.popupMenuHandler,[a,e,f])})};mxCellEditor.prototype.isContentEditing=function(){var a=this.graph.view.getState(this.editingCell);
+return null!=a&&1==a.style.html};mxCellEditor.prototype.isTableSelected=function(){return null!=this.graph.getParentByName(this.graph.getSelectedElement(),"TABLE",this.textarea)};mxCellEditor.prototype.isTextSelected=function(){var a="";window.getSelection?a=window.getSelection():document.getSelection?a=document.getSelection():document.selection&&(a=document.selection.createRange().text);return""!=a};mxCellEditor.prototype.insertTab=function(a){var b=this.textarea.ownerDocument.defaultView.getSelection(),
+d=b.getRangeAt(0),c="\t";if(null!=a)for(c="";0<a;)c+=" ",a--;a=document.createElement("span");a.style.whiteSpace="pre";a.appendChild(document.createTextNode(c));d.insertNode(a);d.setStartAfter(a);d.setEndAfter(a);b.removeAllRanges();b.addRange(d)};mxCellEditor.prototype.alignText=function(a,b){var d=null!=b&&mxEvent.isShiftDown(b);if(d||null!=window.getSelection&&null!=window.getSelection().containsNode){var c=!0;this.graph.processElements(this.textarea,function(a){d||window.getSelection().containsNode(a,
+!0)?(a.removeAttribute("align"),a.style.textAlign=null):c=!1});c&&this.graph.cellEditor.setAlign(a)}document.execCommand("justify"+a.toLowerCase(),!1,null)};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var a=window.getSelection();if(a.getRangeAt&&a.rangeCount){for(var b=[],d=0,c=a.rangeCount;d<c;++d)b.push(a.getRangeAt(d));return b}}else if(document.selection&&document.selection.createRange)return document.selection.createRange();return null};mxCellEditor.prototype.restoreSelection=
+function(a){try{if(a)if(window.getSelection){sel=window.getSelection();sel.removeAllRanges();for(var b=0,d=a.length;b<d;++b)sel.addRange(a[b])}else document.selection&&a.select&&a.select()}catch(X){}};var r=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=function(a){null!=a.text&&(a.text.replaceLinefeeds="0"!=mxUtils.getValue(a.style,"nl2Br","1"));r.apply(this,arguments)};var u=mxConstraintHandler.prototype.update;mxConstraintHandler.prototype.update=function(a,b){this.isKeepFocusEvent(a)||
+!mxEvent.isAltDown(a.getEvent())?u.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=function(a){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var t=mxCellEditor.prototype.startEditing;mxCellEditor.prototype.startEditing=function(a,b){a=this.graph.getStartEditingCell(a,b);t.apply(this,arguments);var d=this.graph.view.getState(a);this.textarea.className=null!=d&&1==d.style.html?"mxCellEditor geContentEditable":
+"mxCellEditor mxPlainTextEditor";this.codeViewMode=!1;this.switchSelectionState=null;this.graph.setSelectionCell(a);var d=this.graph.getModel().getParent(a),c=this.graph.getCellGeometry(a);if(this.graph.getModel().isEdge(d)&&null!=c&&c.relative||this.graph.getModel().isEdge(a))this.textarea.style.outline=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_FF&&mxClient.IS_WIN?"gray dotted 1px":""};var w=mxCellEditor.prototype.installListeners;mxCellEditor.prototype.installListeners=function(a){function b(a,
+d){d.originalNode=a;a=a.firstChild;for(var c=d.firstChild;null!=a&&null!=c;)b(a,c),a=a.nextSibling,c=c.nextSibling;return d}function d(a,b){if(null!=a)if(b.originalNode!=a)c(a);else for(a=a.firstChild,b=b.firstChild;null!=a;){var e=a.nextSibling;null==b?c(a):(d(a,b),b=b.nextSibling);a=e}}function c(a){for(var b=a.firstChild;null!=b;){var d=b.nextSibling;c(b);b=d}1==a.nodeType&&("BR"===a.nodeName||null!=a.firstChild)||3==a.nodeType&&0!=mxUtils.trim(mxUtils.getTextContent(a)).length?(3==a.nodeType&&
+mxUtils.setTextContent(a,mxUtils.getTextContent(a).replace(/\n|\r/g,"")),1==a.nodeType&&(a.removeAttribute("style"),a.removeAttribute("class"),a.removeAttribute("width"),a.removeAttribute("cellpadding"),a.removeAttribute("cellspacing"),a.removeAttribute("border"))):a.parentNode.removeChild(a)}w.apply(this,arguments);7!==document.documentMode&&8!==document.documentMode&&mxEvent.addListener(this.textarea,"paste",mxUtils.bind(this,function(a){var c=b(this.textarea,this.textarea.cloneNode(!0));window.setTimeout(mxUtils.bind(this,
+function(){null!=this.textarea&&(0<=this.textarea.innerHTML.indexOf("<o:OfficeDocumentSettings>")||0<=this.textarea.innerHTML.indexOf("\x3c!--[if !mso]>")?d(this.textarea,c):Graph.removePasteFormatting(this.textarea))}),0)}))};mxCellEditor.prototype.toggleViewMode=function(){var a=this.graph.view.getState(this.editingCell);if(null!=a){var b=null!=a&&"0"!=mxUtils.getValue(a.style,"nl2Br","1"),d=this.saveSelection();if(this.codeViewMode){k=mxUtils.extractTextWithWhitespace(this.textarea.childNodes);
+0<k.length&&"\n"==k.charAt(k.length-1)&&(k=k.substring(0,k.length-1));k=this.graph.sanitizeHtml(b?k.replace(/\n/g,"<br/>"):k,!0);this.textarea.className="mxCellEditor geContentEditable";var c=mxUtils.getValue(a.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE),b=mxUtils.getValue(a.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY),e=mxUtils.getValue(a.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),f=(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==
+mxConstants.FONT_BOLD,g=(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,h=[];(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&h.push("underline");(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&h.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(c*mxConstants.LINE_HEIGHT)+
+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(c)+"px";this.textarea.style.textDecoration=h.join(" ");this.textarea.style.fontWeight=f?"bold":"normal";this.textarea.style.fontStyle=g?"italic":"";this.textarea.style.fontFamily=b;this.textarea.style.textAlign=e;this.textarea.style.padding="0px";this.textarea.innerHTML!=k&&(this.textarea.innerHTML=k,0==this.textarea.innerHTML.length&&(this.textarea.innerHTML=this.getEmptyLabelText(),this.clearOnChange=0<this.textarea.innerHTML.length));
+this.codeViewMode=!1}else{this.clearOnChange&&this.textarea.innerHTML==this.getEmptyLabelText()&&(this.clearOnChange=!1,this.textarea.innerHTML="");var k=mxUtils.htmlEntities(this.textarea.innerHTML);8!=document.documentMode&&(k=mxUtils.replaceTrailingNewlines(k,"<div><br></div>"));k=this.graph.sanitizeHtml(b?k.replace(/\n/g,"").replace(/&lt;br\s*.?&gt;/g,"<br>"):k,!0);this.textarea.className="mxCellEditor mxPlainTextEditor";var c=mxConstants.DEFAULT_FONTSIZE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?
+Math.round(c*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(c)+"px";this.textarea.style.textDecoration="";this.textarea.style.fontWeight="normal";this.textarea.style.fontStyle="";this.textarea.style.fontFamily=mxConstants.DEFAULT_FONTFAMILY;this.textarea.style.textAlign="left";this.textarea.style.width="";this.textarea.style.padding="2px";this.textarea.innerHTML!=k&&(this.textarea.innerHTML=k);this.codeViewMode=!0}this.textarea.focus();null!=this.switchSelectionState&&
+this.restoreSelection(this.switchSelectionState);this.switchSelectionState=d;this.resize()}};var x=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(a,b){if(null!=this.textarea)if(a=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=a){var d=a.view.scale;this.bounds=mxRectangle.fromRectangle(a);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*d;this.bounds.height=60*d;var c=null!=a.text?a.text.margin:null;null==c&&(c=mxUtils.getAlignmentAsPoint(mxUtils.getValue(a.style,
+mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),mxUtils.getValue(a.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));this.bounds.x+=c.x*this.bounds.width;this.bounds.y+=c.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/d)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/d)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight<this.textarea.offsetHeight&&(this.textarea.style.height=Math.round(this.bounds.height/d)+(this.textarea.offsetHeight-
this.textarea.clientHeight)+"px",this.bounds.height=parseInt(this.textarea.style.height)*d);this.textarea.clientWidth<this.textarea.offsetWidth&&(this.textarea.style.width=Math.round(this.bounds.width/d)+(this.textarea.offsetWidth-this.textarea.clientWidth)+"px",this.bounds.width=parseInt(this.textarea.style.width)*d);this.textarea.style.left=Math.round(this.bounds.x)+"px";this.textarea.style.top=Math.round(this.bounds.y)+"px";mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+d+","+
d+")")}else this.textarea.style.height="",this.textarea.style.overflow="",x.apply(this,arguments)};mxCellEditorGetInitialValue=mxCellEditor.prototype.getInitialValue;mxCellEditor.prototype.getInitialValue=function(a,b){if("0"==mxUtils.getValue(a.style,"html","0"))return mxCellEditorGetInitialValue.apply(this,arguments);var d=this.graph.getEditingValue(a.cell,b);"1"==mxUtils.getValue(a.style,"nl2Br","1")&&(d=d.replace(/\n/g,"<br/>"));return d=this.graph.sanitizeHtml(d,!0)};mxCellEditorGetCurrentValue=
mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=function(a){if("0"==mxUtils.getValue(a.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);var b=this.graph.sanitizeHtml(this.textarea.innerHTML,!0);return b="1"==mxUtils.getValue(a.style,"nl2Br","1")?b.replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>"):b.replace(/\r\n/g,"").replace(/\n/g,"")};var y=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(a){this.codeViewMode&&this.toggleViewMode();
@@ -10171,7 +10171,7 @@ e.length){var t=mxUtils.button("",function(){try{var c="https://www.facebook.com
f=document.createElement("img"),f.setAttribute("src",Editor.mailImage),f.setAttribute("width","18"),f.setAttribute("height","18"),f.setAttribute("border","0"),f.style.marginBottom="5px",Editor.isDarkMode()&&(f.style.filter="invert(100%)"),t.appendChild(f),t.style.verticalAlign="bottom",t.style.paddingTop="4px",t.style.minWidth="46px",t.className="geBtn",k.appendChild(t));f=mxUtils.button(mxResources.get("close"),function(){b.hideDialog()});k.appendChild(f);t=mxUtils.button(mxResources.get("copy"),
function(){p.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?p.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");b.alert(mxResources.get("copiedToClipboard"))});5E5>e.length?mxClient.IS_SF||null!=document.documentMode?f.className="geBtn gePrimaryBtn":(k.appendChild(t),t.className="geBtn gePrimaryBtn",f.className="geBtn"):(k.appendChild(q),f.className="geBtn",q.className="geBtn gePrimaryBtn");c.appendChild(k);this.container=c};
EmbedDialog.showPreviewOption=!0;
-var GoogleSitesDialog=function(b,e){function d(){var b=null!=D&&null!=D.getTitle()?D.getTitle():this.defaultFilename;if(C.checked&&""!=t.value){var c="https://www.draw.io/gadget.xml?type=4&diagram="+encodeURIComponent(mxUtils.htmlEntities(t.value));null!=b&&(c+="&title="+encodeURIComponent(b));0<E.length&&(c+="&s="+E);""!=v.value&&"0"!=v.value&&(c+="&border="+v.value);""!=q.value&&(c+="&height="+q.value);c+="&pan="+(u.checked?"1":"0");c+="&zoom="+(x.checked?"1":"0");c+="&fit="+(y.checked?"1":"0");
+var GoogleSitesDialog=function(b,e){function d(){var b=null!=D&&null!=D.getTitle()?D.getTitle():this.defaultFilename;if(C.checked&&""!=t.value){var c="https://www.draw.io/gadget.xml?type=4&diagram="+encodeURIComponent(mxUtils.htmlEntities(t.value));null!=b&&(c+="&title="+encodeURIComponent(b));0<G.length&&(c+="&s="+G);""!=v.value&&"0"!=v.value&&(c+="&border="+v.value);""!=q.value&&(c+="&height="+q.value);c+="&pan="+(u.checked?"1":"0");c+="&zoom="+(x.checked?"1":"0");c+="&fit="+(y.checked?"1":"0");
c+="&resize="+(B.checked?"1":"0");c+="&x0="+Number(p.value);c+="&y0="+l;g.mathEnabled&&(c+="&math=1");z.checked?c+="&edit=_blank":A.checked&&(c+="&edit="+encodeURIComponent(mxUtils.htmlEntities(window.location.href)));m.value=c}else D.constructor==DriveFile||D.constructor==DropboxFile?(c="https://www.draw.io/gadget.xml?embed=0&diagram=",""!=t.value?c+=encodeURIComponent(mxUtils.htmlEntities(t.value))+"&type=3":(c+=D.getHash().substring(1),c=D.constructor==DropboxFile?c+"&type=2":c+"&type=1"),null!=
b&&(c+="&title="+encodeURIComponent(b)),""!=q.value&&(b=parseInt(q.value)+parseInt(p.value),c+="&height="+b),m.value=c):m.value=""}var c=document.createElement("div"),g=b.editor.graph,k=g.getGraphBounds(),n=g.view.scale,f=Math.floor(k.x/n-g.view.translate.x),l=Math.floor(k.y/n-g.view.translate.y);mxUtils.write(c,mxResources.get("googleGadget")+":");mxUtils.br(c);var m=document.createElement("input");m.setAttribute("type","text");m.style.marginBottom="8px";m.style.marginTop="2px";m.style.width="410px";
c.appendChild(m);mxUtils.br(c);this.init=function(){m.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?m.select():document.execCommand("selectAll",!1,null)};mxUtils.write(c,mxResources.get("top")+":");var p=document.createElement("input");p.setAttribute("type","text");p.setAttribute("size","4");p.style.marginRight="16px";p.style.marginLeft="4px";p.value=f;c.appendChild(p);mxUtils.write(c,mxResources.get("height")+":");var q=document.createElement("input");q.setAttribute("type","text");
@@ -10179,7 +10179,7 @@ q.setAttribute("size","4");q.style.marginLeft="4px";q.value=Math.ceil(k.height/n
mxUtils.br(c);mxUtils.write(c,mxResources.get("borderWidth")+":");var v=document.createElement("input");v.setAttribute("type","text");v.setAttribute("size","3");v.style.marginBottom="8px";v.style.marginLeft="4px";v.value="0";c.appendChild(v);mxUtils.br(c);var u=document.createElement("input");u.setAttribute("type","checkbox");u.setAttribute("checked","checked");u.defaultChecked=!0;u.style.marginLeft="16px";c.appendChild(u);mxUtils.write(c,mxResources.get("pan")+" ");var x=document.createElement("input");
x.setAttribute("type","checkbox");x.setAttribute("checked","checked");x.defaultChecked=!0;x.style.marginLeft="8px";c.appendChild(x);mxUtils.write(c,mxResources.get("zoom")+" ");var A=document.createElement("input");A.setAttribute("type","checkbox");A.style.marginLeft="8px";A.setAttribute("title",window.location.href);c.appendChild(A);mxUtils.write(c,mxResources.get("edit")+" ");var z=document.createElement("input");z.setAttribute("type","checkbox");z.style.marginLeft="8px";c.appendChild(z);mxUtils.write(c,
mxResources.get("asNew")+" ");mxUtils.br(c);var B=document.createElement("input");B.setAttribute("type","checkbox");B.setAttribute("checked","checked");B.defaultChecked=!0;B.style.marginLeft="16px";c.appendChild(B);mxUtils.write(c,mxResources.get("resize")+" ");var y=document.createElement("input");y.setAttribute("type","checkbox");y.style.marginLeft="8px";c.appendChild(y);mxUtils.write(c,mxResources.get("fit")+" ");var C=document.createElement("input");C.setAttribute("type","checkbox");C.style.marginLeft=
-"8px";c.appendChild(C);mxUtils.write(c,mxResources.get("embed")+" ");var E=b.getBasenames().join(";"),D=b.getCurrentFile();mxEvent.addListener(u,"change",d);mxEvent.addListener(x,"change",d);mxEvent.addListener(B,"change",d);mxEvent.addListener(y,"change",d);mxEvent.addListener(A,"change",d);mxEvent.addListener(z,"change",d);mxEvent.addListener(C,"change",d);mxEvent.addListener(q,"change",d);mxEvent.addListener(p,"change",d);mxEvent.addListener(v,"change",d);mxEvent.addListener(t,"change",d);d();
+"8px";c.appendChild(C);mxUtils.write(c,mxResources.get("embed")+" ");var G=b.getBasenames().join(";"),D=b.getCurrentFile();mxEvent.addListener(u,"change",d);mxEvent.addListener(x,"change",d);mxEvent.addListener(B,"change",d);mxEvent.addListener(y,"change",d);mxEvent.addListener(A,"change",d);mxEvent.addListener(z,"change",d);mxEvent.addListener(C,"change",d);mxEvent.addListener(q,"change",d);mxEvent.addListener(p,"change",d);mxEvent.addListener(v,"change",d);mxEvent.addListener(t,"change",d);d();
mxEvent.addListener(m,"click",function(){m.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?m.select():document.execCommand("selectAll",!1,null)});k=document.createElement("div");k.style.paddingTop="12px";k.style.textAlign="right";n=mxUtils.button(mxResources.get("close"),function(){b.hideDialog()});n.className="geBtn gePrimaryBtn";k.appendChild(n);c.appendChild(k);this.container=c},CreateGraphDialog=function(b,e,d){var c=document.createElement("div");c.style.textAlign="right";this.init=
function(){var e=document.createElement("div");e.style.position="relative";e.style.border="1px solid gray";e.style.width="100%";e.style.height="360px";e.style.overflow="hidden";e.style.marginBottom="16px";mxEvent.disableContextMenu(e);c.appendChild(e);var k=new Graph(e);k.setCellsCloneable(!0);k.setPanning(!0);k.setAllowDanglingEdges(!1);k.connectionHandler.select=!1;k.view.setTranslate(20,20);k.border=20;k.panningHandler.useLeftButtonForPanning=!0;var n="curved=1;";k.cellRenderer.installCellOverlayListeners=
function(b,c,f){mxCellRenderer.prototype.installCellOverlayListeners.apply(this,arguments);mxEvent.addListener(f.node,mxClient.IS_POINTER?"pointerdown":"mousedown",function(f){c.fireEvent(new mxEventObject("pointerdown","event",f,"state",b))});!mxClient.IS_POINTER&&mxClient.IS_TOUCH&&mxEvent.addListener(f.node,"touchstart",function(f){c.fireEvent(new mxEventObject("pointerdown","event",f,"state",b))})};k.getAllConnectionConstraints=function(){return null};k.connectionHandler.marker.highlight.keepOnTop=
@@ -10213,7 +10213,7 @@ new mxGeometry(0,0,30,30),"shape=partialRectangle;overflow=hidden;connectable=0;
Math.max(f.geometry.width,v.width+30)));f.insert(x,u?0:null);f.geometry.height+=30}0<p.length&&(m=b.editor.graph,k=mxEvent.isAltDown(d)?k:m.getCenterInsertPoint(m.getBoundingBoxFromGeometry(p,!0)),m.setSelectionCells(m.importCells(p,k.x,k.y)),m.scrollCellToVisible(m.getSelectionCell()))}else if("list"==f){if(0<e.length){m=b.editor.graph;x=null;p=[];for(n=f=0;n<e.length;n++)";"!=e[n].charAt(0)&&(0==e[n].length?x=null:null==x?(x=new mxCell(e[n],new mxGeometry(f,0,160,30),"swimlane;fontStyle=1;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"),
x.vertex=!0,p.push(x),v=m.getPreferredSizeForCell(x),null!=v&&x.geometry.width<v.width+10&&(x.geometry.width=v.width+10),f+=x.geometry.width+40):"--"==e[n]?(v=new mxCell("",new mxGeometry(0,0,40,8),"line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;"),v.vertex=!0,x.geometry.height+=v.geometry.height,x.insert(v)):0<e[n].length&&(q=new mxCell(e[n],new mxGeometry(0,0,60,26),"text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),
q.vertex=!0,v=m.getPreferredSizeForCell(q),null!=v&&q.geometry.width<v.width&&(q.geometry.width=v.width),x.geometry.width=Math.max(x.geometry.width,q.geometry.width),x.geometry.height+=q.geometry.height,x.insert(q)));if(0<p.length){k=mxEvent.isAltDown(d)?k:m.getCenterInsertPoint(m.getBoundingBoxFromGeometry(p,!0));m.getModel().beginUpdate();try{p=m.importCells(p,k.x,k.y);v=[];for(n=0;n<p.length;n++)v.push(p[n]),v=v.concat(p[n].children);m.fireEvent(new mxEventObject("cellsInserted","cells",v))}finally{m.getModel().endUpdate()}m.setSelectionCells(p);
-m.scrollCellToVisible(m.getSelectionCell())}}}else{for(var x=function(b){var c=K[b];null==c&&(c=new mxCell(b,new mxGeometry(0,0,80,30),"whiteSpace=wrap;html=1;"),c.vertex=!0,K[b]=c,p.push(c));return c},K={},p=[],n=0;n<e.length;n++)if(";"!=e[n].charAt(0)){var P=e[n].split("->");2<=P.length&&(u=x(P[0]),H=x(P[P.length-1]),P=new mxCell(2<P.length?P[1]:"",new mxGeometry),P.edge=!0,u.insertEdge(P,!0),H.insertEdge(P,!1),p.push(P))}if(0<p.length){e=document.createElement("div");e.style.visibility="hidden";
+m.scrollCellToVisible(m.getSelectionCell())}}}else{for(var x=function(b){var c=I[b];null==c&&(c=new mxCell(b,new mxGeometry(0,0,80,30),"whiteSpace=wrap;html=1;"),c.vertex=!0,I[b]=c,p.push(c));return c},I={},p=[],n=0;n<e.length;n++)if(";"!=e[n].charAt(0)){var S=e[n].split("->");2<=S.length&&(u=x(S[0]),H=x(S[S.length-1]),S=new mxCell(2<S.length?S[1]:"",new mxGeometry),S.edge=!0,u.insertEdge(S,!0),H.insertEdge(S,!1),p.push(S))}if(0<p.length){e=document.createElement("div");e.style.visibility="hidden";
document.body.appendChild(e);m=new Graph(e);m.getModel().beginUpdate();try{p=m.importCells(p);for(n=0;n<p.length;n++)m.getModel().isVertex(p[n])&&(v=m.getPreferredSizeForCell(p[n]),p[n].geometry.width=Math.max(p[n].geometry.width,v.width),p[n].geometry.height=Math.max(p[n].geometry.height,v.height));n=!0;"horizontalFlow"==f||"verticalFlow"==f?((new mxHierarchicalLayout(m,"horizontalFlow"==f?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH)).execute(m.getDefaultParent(),p),n=!1):"circle"==f?
(new mxCircleLayout(m)).execute(m.getDefaultParent()):(q=new mxFastOrganicLayout(m),q.disableEdgeStyle=!1,q.forceConstant=180,q.execute(m.getDefaultParent()));n&&(t=new mxParallelEdgeLayout(m),t.spacing=30,t.execute(m.getDefaultParent()))}finally{m.getModel().endUpdate()}m.clearCellOverlays();v=[];b.editor.graph.getModel().beginUpdate();try{p=m.getModel().getChildren(m.getDefaultParent()),k=mxEvent.isAltDown(d)?k:b.editor.graph.getCenterInsertPoint(m.getBoundingBoxFromGeometry(p,!0)),v=b.editor.graph.importCells(p,
k.x,k.y),b.editor.graph.fireEvent(new mxEventObject("cellsInserted","cells",v))}finally{b.editor.graph.getModel().endUpdate()}b.editor.graph.setSelectionCells(v);b.editor.graph.scrollCellToVisible(b.editor.graph.getSelectionCell());m.destroy();e.parentNode.removeChild(e)}}}function g(){return"list"==f.value?"Person\n-name: String\n-birthDate: Date\n--\n+getName(): String\n+setName(String): void\n+isBirthday(): boolean\n\nAddress\n-street: String\n-city: String\n-state: String":"mermaid"==f.value?
@@ -10225,58 +10225,58 @@ p.setAttribute("value","horizontalFlow");mxUtils.write(p,mxResources.get("horizo
"selected");m=document.createElement("option");m.setAttribute("value","plantUmlPng");mxUtils.write(m,mxResources.get("plantUml")+" ("+mxResources.get("formatPng")+")");p=document.createElement("option");p.setAttribute("value","plantUmlTxt");mxUtils.write(p,mxResources.get("plantUml")+" ("+mxResources.get("text")+")");EditorUi.enablePlantUml&&Graph.fileSupport&&!b.isOffline()&&"plantUml"==d&&(f.appendChild(l),f.appendChild(m),f.appendChild(p));var t=g();n.value=t;e.appendChild(n);this.init=function(){n.focus()};
Graph.fileSupport&&(n.addEventListener("dragover",function(b){b.stopPropagation();b.preventDefault()},!1),n.addEventListener("drop",function(b){b.stopPropagation();b.preventDefault();if(0<b.dataTransfer.files.length){b=b.dataTransfer.files[0];var c=new FileReader;c.onload=function(b){n.value=b.target.result};c.readAsText(b)}},!1));e.appendChild(f);mxEvent.addListener(f,"change",function(){var b=g();if(0==n.value.length||n.value==t)t=b,n.value=t});b.isOffline()||"mermaid"!=d&&"plantUml"!=d||(l=mxUtils.button(mxResources.get("help"),
function(){b.openLink("mermaid"==d?"https://mermaid-js.github.io/mermaid/#/":"https://plantuml.com/")}),l.className="geBtn",e.appendChild(l));l=mxUtils.button(mxResources.get("close"),function(){n.value==t?b.hideDialog():b.confirm(mxResources.get("areYouSure"),function(){b.hideDialog()})});l.className="geBtn";b.editor.cancelFirst&&e.appendChild(l);m=mxUtils.button(mxResources.get("insert"),function(e){b.hideDialog();c(n.value,f.value,e)});e.appendChild(m);m.className="geBtn gePrimaryBtn";b.editor.cancelFirst||
-e.appendChild(l);this.container=e},NewDialog=function(b,e,d,c,g,k,n,f,l,m,p,q,t,v,u,x,A,z){function B(b){null!=b&&(sa=X=b?135:140);b=!0;if(null!=la)for(;K<la.length&&(b||0!=mxUtils.mod(K,30));){var c=la[K++],c=E(c.url,c.libs,c.title,c.tooltip?c.tooltip:c.title,c.select,c.imgUrl,c.info,c.onClick,c.preview,c.noImg,c.clibs);b&&c.click();b=!1}}function y(){if(ra&&null!=v)d||b.hideDialog(),v(ra,qa,H.value);else if(c)d||b.hideDialog(),c(V,H.value,ea,pa);else{var f=H.value;null!=f&&0<f.length&&b.pickFolder(b.mode,
-function(c){b.createFile(f,V,null!=pa&&0<pa.length?pa:null,null,function(){b.hideDialog()},null,c,null,null!=aa&&0<aa.length?aa:null)},b.mode!=App.MODE_GOOGLE||null==b.stateArg||null==b.stateArg.folderId)}}function C(b,c,e,d,m,p,g){null!=oa&&(oa.style.backgroundColor="transparent",oa.style.border="1px solid transparent");N.removeAttribute("disabled");V=c;pa=e;aa=p;oa=b;ra=d;ea=g;qa=m;oa.style.backgroundColor=f;oa.style.border=l}function E(c,f,e,d,l,m,p,g,k,q,t){function n(c,f){if(null==x){var e=c,
+e.appendChild(l);this.container=e},NewDialog=function(b,e,d,c,g,k,n,f,l,m,p,q,t,v,u,x,A,z){function B(b){null!=b&&(pa=ra=b?135:140);b=!0;if(null!=ma)for(;I<ma.length&&(b||0!=mxUtils.mod(I,30));){var c=ma[I++],c=G(c.url,c.libs,c.title,c.tooltip?c.tooltip:c.title,c.select,c.imgUrl,c.info,c.onClick,c.preview,c.noImg,c.clibs);b&&c.click();b=!1}}function y(){if(sa&&null!=v)d||b.hideDialog(),v(sa,ka,H.value);else if(c)d||b.hideDialog(),c(N,H.value,la,oa);else{var f=H.value;null!=f&&0<f.length&&b.pickFolder(b.mode,
+function(c){b.createFile(f,N,null!=oa&&0<oa.length?oa:null,null,function(){b.hideDialog()},null,c,null,null!=ea&&0<ea.length?ea:null)},b.mode!=App.MODE_GOOGLE||null==b.stateArg||null==b.stateArg.folderId)}}function C(b,c,e,d,m,p,g){null!=ha&&(ha.style.backgroundColor="transparent",ha.style.border="1px solid transparent");P.removeAttribute("disabled");N=c;oa=e;ea=p;ha=b;sa=d;la=g;ka=m;ha.style.backgroundColor=f;ha.style.border=l}function G(c,f,e,d,l,m,p,g,k,q,t){function n(c,f){if(null==x){var e=c,
e=/^https?:\/\//.test(e)&&!b.editor.isCorsEnabledForUrl(e)?PROXY_URL+"?url="+encodeURIComponent(e):TEMPLATE_PATH+"/"+e;mxUtils.get(e,mxUtils.bind(this,function(b){200<=b.getStatus()&&299>=b.getStatus()&&(x=b.getText());f(x)}))}else f(x)}function L(f,d,l){if(null!=f&&mxUtils.isAncestorNode(document.body,u)){f=mxUtils.parseXml(f);f=Editor.parseDiagramNode(f.documentElement);var m=new mxCodec(f.ownerDocument),g=new mxGraphModel;m.decode(f,g);f=g.root.getChildAt(0).children;b.sidebar.createTooltip(u,
-f,Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-80,1E3),Math.min((window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-80,800),null!=e?mxResources.get(e,null,e):null,!0,new mxPoint(d,l),!0,function(){S=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display;C(u,null,null,c,p,t)},!0,!1)}}function v(f,e){if(null==c||A||b.sidebar.currentElt==u)b.sidebar.hideTooltip();else if(b.sidebar.hideTooltip(),null!=D){var d=
+f,Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-80,1E3),Math.min((window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-80,800),null!=e?mxResources.get(e,null,e):null,!0,new mxPoint(d,l),!0,function(){T=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display;C(u,null,null,c,p,t)},!0,!1)}}function v(f,e){if(null==c||A||b.sidebar.currentElt==u)b.sidebar.hideTooltip();else if(b.sidebar.hideTooltip(),null!=D){var d=
'<mxfile><diagram id="d" name="n">'+Graph.compress('<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="2" value="" style="shape=image;image='+D.src+';imageAspect=1;" parent="1" vertex="1"><mxGeometry width="'+D.naturalWidth+'" height="'+D.naturalHeight+'" as="geometry" /></mxCell></root></mxGraphModel>')+"</diagram></mxfile>";L(d,mxEvent.getClientX(f),mxEvent.getClientY(f))}else b.sidebar.currentElt=u,A=!0,n(c,function(c){A&&b.sidebar.currentElt==u&&L(c,mxEvent.getClientX(f),
-mxEvent.getClientY(f));A=!1})}var u=document.createElement("div");u.className="geTemplate";u.style.position="relative";u.style.height=sa+"px";u.style.width=X+"px";var x=null;Editor.isDarkMode()&&(u.style.filter="invert(100%)");null!=e?u.setAttribute("title",mxResources.get(e,null,e)):null!=d&&0<d.length&&u.setAttribute("title",d);var A=!1,D=null;if(null!=m){u.style.display="inline-flex";u.style.justifyContent="center";u.style.alignItems="center";l=document.createElement("img");l.setAttribute("src",
-m);l.setAttribute("alt",d);l.style.maxWidth=sa+"px";l.style.maxHeight=X+"px";var D=l,F=m.replace(".drawio.xml","").replace(".drawio","").replace(".xml","");u.appendChild(l);l.onerror=function(){this.src!=F?this.src=F:(this.src=Editor.errorImage,this.onerror=null)};mxEvent.addGestureListeners(u,mxUtils.bind(this,function(b){C(u,null,null,c,p,t)}),null,null);mxEvent.addListener(u,"dblclick",function(b){y();mxEvent.consume(b)})}else if(!q&&null!=c&&0<c.length){var O=function(b){N.setAttribute("disabled",
-"disabled");u.style.backgroundColor="transparent";u.style.border="1px solid transparent";P.spin(Q);n(c,function(c){P.stop();null!=c&&(C(u,c,f,null,null,t,R),b&&y())})};l=k||TEMPLATE_PATH+"/"+c.substring(0,c.length-4)+".png";u.style.backgroundImage="url("+l+")";u.style.backgroundPosition="center center";u.style.backgroundRepeat="no-repeat";if(null!=e){d=document.createElement("table");d.setAttribute("width","100%");d.setAttribute("height","100%");d.style.background=Editor.isDarkMode()?"transparent":
-"rgba(255,255,255,0.85)";d.style.lineHeight="1.3em";d.style.border="inherit";m=document.createElement("tbody");k=document.createElement("tr");q=document.createElement("td");q.setAttribute("align","center");q.setAttribute("valign","middle");var G=document.createElement("span");G.style.display="inline-block";G.style.padding="4px 8px 4px 8px";G.style.userSelect="none";G.style.borderRadius="3px";G.style.background="rgba(255,255,255,0.85)";G.style.overflow="hidden";G.style.textOverflow="ellipsis";G.style.maxWidth=
-sa-34+"px";mxUtils.write(G,mxResources.get(e,null,e));q.appendChild(G);k.appendChild(q);m.appendChild(k);d.appendChild(m);u.appendChild(d)}mxEvent.addGestureListeners(u,mxUtils.bind(this,function(b){O()}),null,null);mxEvent.addListener(u,"dblclick",function(b){O(!0);mxEvent.consume(b)})}else d=document.createElement("table"),d.setAttribute("width","100%"),d.setAttribute("height","100%"),d.style.lineHeight="1.3em",m=document.createElement("tbody"),k=document.createElement("tr"),q=document.createElement("td"),
-q.setAttribute("align","center"),q.setAttribute("valign","middle"),G=document.createElement("span"),G.style.display="inline-block",G.style.padding="4px 8px 4px 8px",G.style.userSelect="none",G.style.borderRadius="3px",G.style.background="#ffffff",G.style.overflow="hidden",G.style.textOverflow="ellipsis",G.style.maxWidth=sa-34+"px",mxUtils.write(G,mxResources.get(e,null,e)),q.appendChild(G),k.appendChild(q),m.appendChild(k),d.appendChild(m),u.appendChild(d),l&&C(u),mxEvent.addGestureListeners(u,mxUtils.bind(this,
+mxEvent.getClientY(f));A=!1})}var u=document.createElement("div");u.className="geTemplate";u.style.position="relative";u.style.height=pa+"px";u.style.width=ra+"px";var x=null;Editor.isDarkMode()&&(u.style.filter="invert(100%)");null!=e?u.setAttribute("title",mxResources.get(e,null,e)):null!=d&&0<d.length&&u.setAttribute("title",d);var A=!1,D=null;if(null!=m){u.style.display="inline-flex";u.style.justifyContent="center";u.style.alignItems="center";l=document.createElement("img");l.setAttribute("src",
+m);l.setAttribute("alt",d);l.style.maxWidth=pa+"px";l.style.maxHeight=ra+"px";var D=l,E=m.replace(".drawio.xml","").replace(".drawio","").replace(".xml","");u.appendChild(l);l.onerror=function(){this.src!=E?this.src=E:(this.src=Editor.errorImage,this.onerror=null)};mxEvent.addGestureListeners(u,mxUtils.bind(this,function(b){C(u,null,null,c,p,t)}),null,null);mxEvent.addListener(u,"dblclick",function(b){y();mxEvent.consume(b)})}else if(!q&&null!=c&&0<c.length){var Q=function(b){P.setAttribute("disabled",
+"disabled");u.style.backgroundColor="transparent";u.style.border="1px solid transparent";S.spin(V);n(c,function(c){S.stop();null!=c&&(C(u,c,f,null,null,t,R),b&&y())})};l=k||TEMPLATE_PATH+"/"+c.substring(0,c.length-4)+".png";u.style.backgroundImage="url("+l+")";u.style.backgroundPosition="center center";u.style.backgroundRepeat="no-repeat";if(null!=e){d=document.createElement("table");d.setAttribute("width","100%");d.setAttribute("height","100%");d.style.background=Editor.isDarkMode()?"transparent":
+"rgba(255,255,255,0.85)";d.style.lineHeight="1.3em";d.style.border="inherit";m=document.createElement("tbody");k=document.createElement("tr");q=document.createElement("td");q.setAttribute("align","center");q.setAttribute("valign","middle");var F=document.createElement("span");F.style.display="inline-block";F.style.padding="4px 8px 4px 8px";F.style.userSelect="none";F.style.borderRadius="3px";F.style.background="rgba(255,255,255,0.85)";F.style.overflow="hidden";F.style.textOverflow="ellipsis";F.style.maxWidth=
+pa-34+"px";mxUtils.write(F,mxResources.get(e,null,e));q.appendChild(F);k.appendChild(q);m.appendChild(k);d.appendChild(m);u.appendChild(d)}mxEvent.addGestureListeners(u,mxUtils.bind(this,function(b){Q()}),null,null);mxEvent.addListener(u,"dblclick",function(b){Q(!0);mxEvent.consume(b)})}else d=document.createElement("table"),d.setAttribute("width","100%"),d.setAttribute("height","100%"),d.style.lineHeight="1.3em",m=document.createElement("tbody"),k=document.createElement("tr"),q=document.createElement("td"),
+q.setAttribute("align","center"),q.setAttribute("valign","middle"),F=document.createElement("span"),F.style.display="inline-block",F.style.padding="4px 8px 4px 8px",F.style.userSelect="none",F.style.borderRadius="3px",F.style.background="#ffffff",F.style.overflow="hidden",F.style.textOverflow="ellipsis",F.style.maxWidth=pa-34+"px",mxUtils.write(F,mxResources.get(e,null,e)),q.appendChild(F),k.appendChild(q),m.appendChild(k),d.appendChild(m),u.appendChild(d),l&&C(u),mxEvent.addGestureListeners(u,mxUtils.bind(this,
function(b){C(u,null,null,c,p)}),null,null),null!=g?mxEvent.addListener(u,"click",g):(mxEvent.addListener(u,"click",function(b){C(u,null,null,c,p)}),mxEvent.addListener(u,"dblclick",function(b){y();mxEvent.consume(b)}));if(null!=c){var H=document.createElement("img");H.setAttribute("src",Sidebar.prototype.searchImage);H.setAttribute("title",mxResources.get("preview"));H.className="geActiveButton";H.style.position="absolute";H.style.cursor="default";H.style.padding="8px";H.style.right="0px";H.style.top=
-"0px";u.appendChild(H);var S=!1;mxEvent.addGestureListeners(H,mxUtils.bind(this,function(c){S=b.sidebar.currentElt==u}),null,null);mxEvent.addListener(H,"click",mxUtils.bind(this,function(b){S||v(b,H);mxEvent.consume(b)}))}Q.appendChild(u);return u}function D(){function b(b,c){var f=mxResources.get(b);null==f&&(f=b.substring(0,1).toUpperCase()+b.substring(1));18<f.length&&(f=f.substring(0,18)+"&hellip;");return f+" ("+c.length+")"}function c(b,c,f){mxEvent.addListener(c,"click",function(){ia!=c&&
-(ia.style.backgroundColor="",ia=c,ia.style.backgroundColor=n,Q.scrollTop=0,Q.innerHTML="",K=0,la=f?fa[b][f]:ca[b],Y=null,B(!1))})}ua&&(ua=!1,mxEvent.addListener(Q,"scroll",function(b){Q.scrollTop+Q.clientHeight>=Q.scrollHeight&&(B(),mxEvent.consume(b))}));if(0<ja){var f=document.createElement("div");f.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;";mxUtils.write(f,mxResources.get("custom"));ga.appendChild(f);for(var e in ha){var d=document.createElement("div"),
-l=e,f=ha[e];18<l.length&&(l=l.substring(0,18)+"&hellip;");d.style.cssText="display:block;cursor:pointer;padding:6px;white-space:nowrap;margin-bottom:-1px;overflow:hidden;text-overflow:ellipsis;user-select:none;";d.setAttribute("title",l+" ("+f.length+")");mxUtils.write(d,d.getAttribute("title"));null!=m&&(d.style.padding=m);ga.appendChild(d);(function(b,c){mxEvent.addListener(d,"click",function(){ia!=c&&(ia.style.backgroundColor="",ia=c,ia.style.backgroundColor=n,Q.scrollTop=0,Q.innerHTML="",K=0,
-la=ha[b],Y=null,B(!1))})})(e,d)}f=document.createElement("div");f.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;";mxUtils.write(f,"draw.io");ga.appendChild(f)}for(e in ca){var l=fa[e],p=d=document.createElement(l?"ul":"div"),f=ca[e],g=b(e,f);if(null!=l){var k=document.createElement("li"),q=document.createElement("div");q.className="geTempTreeCaret";q.setAttribute("title",g);mxUtils.write(q,g);p=q;k.appendChild(q);g=document.createElement("ul");g.className=
+"0px";u.appendChild(H);var T=!1;mxEvent.addGestureListeners(H,mxUtils.bind(this,function(c){T=b.sidebar.currentElt==u}),null,null);mxEvent.addListener(H,"click",mxUtils.bind(this,function(b){T||v(b,H);mxEvent.consume(b)}))}V.appendChild(u);return u}function D(){function b(b,c){var f=mxResources.get(b);null==f&&(f=b.substring(0,1).toUpperCase()+b.substring(1));18<f.length&&(f=f.substring(0,18)+"&hellip;");return f+" ("+c.length+")"}function c(b,c,f){mxEvent.addListener(c,"click",function(){ja!=c&&
+(ja.style.backgroundColor="",ja=c,ja.style.backgroundColor=n,V.scrollTop=0,V.innerHTML="",I=0,ma=f?na[b][f]:U[b],W=null,B(!1))})}ta&&(ta=!1,mxEvent.addListener(V,"scroll",function(b){V.scrollTop+V.clientHeight>=V.scrollHeight&&(B(),mxEvent.consume(b))}));if(0<ba){var f=document.createElement("div");f.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;";mxUtils.write(f,mxResources.get("custom"));ca.appendChild(f);for(var e in ga){var d=document.createElement("div"),
+l=e,f=ga[e];18<l.length&&(l=l.substring(0,18)+"&hellip;");d.style.cssText="display:block;cursor:pointer;padding:6px;white-space:nowrap;margin-bottom:-1px;overflow:hidden;text-overflow:ellipsis;user-select:none;";d.setAttribute("title",l+" ("+f.length+")");mxUtils.write(d,d.getAttribute("title"));null!=m&&(d.style.padding=m);ca.appendChild(d);(function(b,c){mxEvent.addListener(d,"click",function(){ja!=c&&(ja.style.backgroundColor="",ja=c,ja.style.backgroundColor=n,V.scrollTop=0,V.innerHTML="",I=0,
+ma=ga[b],W=null,B(!1))})})(e,d)}f=document.createElement("div");f.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;";mxUtils.write(f,"draw.io");ca.appendChild(f)}for(e in U){var l=na[e],p=d=document.createElement(l?"ul":"div"),f=U[e],g=b(e,f);if(null!=l){var k=document.createElement("li"),q=document.createElement("div");q.className="geTempTreeCaret";q.setAttribute("title",g);mxUtils.write(q,g);p=q;k.appendChild(q);g=document.createElement("ul");g.className=
"geTempTreeNested";g.style.visibility="hidden";for(var t in l){var L=document.createElement("li"),y=b(t,l[t]);L.setAttribute("title",y);mxUtils.write(L,y);c(e,L,t);g.appendChild(L)}k.appendChild(g);d.className="geTempTree";d.appendChild(k);(function(b,c){mxEvent.addListener(c,"click",function(){b.style.visibility="visible";b.classList.toggle("geTempTreeActive");b.classList.toggle("geTempTreeNested")&&setTimeout(function(){b.style.visibility="hidden"},550);c.classList.toggle("geTempTreeCaret-down")})})(g,
-q)}else d.style.cssText="display:block;cursor:pointer;padding:6px;white-space:nowrap;margin-bottom:-1px;overflow:hidden;text-overflow:ellipsis;user-select:none;transition: all 0.5s;",d.setAttribute("title",g),mxUtils.write(d,g);null!=m&&(d.style.padding=m);ga.appendChild(d);null==ia&&0<f.length&&(ia=d,ia.style.backgroundColor=n,la=f);c(e,p)}B(!1)}var F=500>(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth);d=null!=d?d:!0;g=null!=g?g:!1;n=null!=n?n:"#ebf2f9";f=null!=
-f?f:Editor.isDarkMode()?"#a2a2a2":"#e6eff8";l=null!=l?l:Editor.isDarkMode()?"1px dashed #00a8ff":"1px solid #ccd9ea";p=null!=p?p:EditorUi.templateFile;var G=document.createElement("div");G.style.userSelect="none";G.style.height="100%";var I=document.createElement("div");I.style.whiteSpace="nowrap";I.style.height="46px";d&&G.appendChild(I);var J=document.createElement("img");J.setAttribute("border","0");J.setAttribute("align","absmiddle");J.style.width="40px";J.style.height="40px";J.style.marginRight=
-"10px";J.style.paddingBottom="4px";J.src=b.mode==App.MODE_GOOGLE?IMAGE_PATH+"/google-drive-logo.svg":b.mode==App.MODE_DROPBOX?IMAGE_PATH+"/dropbox-logo.svg":b.mode==App.MODE_ONEDRIVE?IMAGE_PATH+"/onedrive-logo.svg":b.mode==App.MODE_GITHUB?IMAGE_PATH+"/github-logo.svg":b.mode==App.MODE_GITLAB?IMAGE_PATH+"/gitlab-logo.svg":b.mode==App.MODE_NOTION?IMAGE_PATH+"/notion-logo.svg":b.mode==App.MODE_TRELLO?IMAGE_PATH+"/trello-logo.svg":b.mode==App.MODE_BROWSER?IMAGE_PATH+"/osa_database.png":IMAGE_PATH+"/osa_drive-harddisk.png";
-e||F||!d||I.appendChild(J);d&&mxUtils.write(I,(F?mxResources.get("name"):null==b.mode||b.mode==App.MODE_GOOGLE||b.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"))+":");J=".drawio";b.mode==App.MODE_GOOGLE&&null!=b.drive?J=b.drive.extension:b.mode==App.MODE_DROPBOX&&null!=b.dropbox?J=b.dropbox.extension:b.mode==App.MODE_ONEDRIVE&&null!=b.oneDrive?J=b.oneDrive.extension:b.mode==App.MODE_GITHUB&&null!=b.gitHub?J=b.gitHub.extension:b.mode==App.MODE_GITLAB&&null!=b.gitLab?
-J=b.gitLab.extension:b.mode==App.MODE_NOTION&&null!=b.notion?J=b.notion.extension:b.mode==App.MODE_TRELLO&&null!=b.trello&&(J=b.trello.extension);var H=document.createElement("input");H.setAttribute("value",b.defaultFilename+J);H.style.marginLeft="10px";H.style.width=e||F?"144px":"244px";this.init=function(){d&&(H.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?H.select():document.execCommand("selectAll",!1,null));null!=Q.parentNode&&null!=Q.parentNode.parentNode&&mxEvent.addGestureListeners(Q.parentNode.parentNode,
-mxUtils.bind(this,function(c){b.sidebar.hideTooltip()}),null,null)};d&&(I.appendChild(H),z?H.style.width=e||F?"350px":"450px":(null!=b.editor.diagramFileTypes&&(z=FilenameDialog.createFileTypes(b,H,b.editor.diagramFileTypes),z.style.marginLeft="6px",z.style.width=e||F?"80px":"180px",I.appendChild(z)),null!=b.editor.fileExtensions&&(F=FilenameDialog.createTypeHint(b,H,b.editor.fileExtensions),F.style.marginTop="12px",I.appendChild(F))));var I=!1,K=0,P=new Spinner({lines:12,length:10,width:5,radius:10,
-rotate:0,color:"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9}),N=mxUtils.button(x||mxResources.get("create"),function(){N.setAttribute("disabled","disabled");y();N.removeAttribute("disabled")});N.className="geBtn gePrimaryBtn";if(q||t){var M=[],Y=null,W=null,L=null,O=function(b){N.setAttribute("disabled","disabled");for(var c=0;c<M.length;c++)M[c].className=c==b?"geBtn gePrimaryBtn":"geBtn"},I=!0;x=document.createElement("div");x.style.whiteSpace="nowrap";x.style.height="30px";
-G.appendChild(x);F=mxUtils.button(mxResources.get("Templates",null,"Templates"),function(){ga.style.display="";T.style.display="";Q.style.left="160px";O(0);Q.scrollTop=0;Q.innerHTML="";K=0;Y!=la&&(la=Y,ca=W,ja=L,ga.innerHTML="",D(),Y=null)});M.push(F);x.appendChild(F);var S=function(b){ga.style.display="none";T.style.display="none";Q.style.left="30px";O(b?-1:1);null==Y&&(Y=la);Q.scrollTop=0;Q.innerHTML="";P.spin(Q);var c=function(b,c,f){K=0;P.stop();la=b;f=f||{};var e=0,d;for(d in f)e+=f[d].length;
-if(c)Q.innerHTML=c;else if(0==b.length&&0==e)Q.innerHTML=mxUtils.htmlEntities(mxResources.get("noDiagrams",null,"No Diagrams Found"));else if(Q.innerHTML="",0<e){ga.style.display="";Q.style.left="160px";ga.innerHTML="";ja=0;ca={"draw.io":b};for(d in f)ca[d]=f[d];D()}else B(!0)};b?t(da.value,c):q(c)};q&&(F=mxUtils.button(mxResources.get("Recent",null,"Recent"),function(){S()}),x.appendChild(F),M.push(F));if(t){F=document.createElement("span");F.style.marginLeft="10px";F.innerHTML=mxUtils.htmlEntities(mxResources.get("search")+
-":");x.appendChild(F);var da=document.createElement("input");da.style.marginRight="10px";da.style.marginLeft="10px";da.style.width="220px";mxEvent.addListener(da,"keypress",function(b){13==b.keyCode&&S(!0)});x.appendChild(da);F=mxUtils.button(mxResources.get("search"),function(){S(!0)});F.className="geBtn";x.appendChild(F)}O(0)}var pa=null,aa=null,V=null,oa=null,ra=null,ea=null,qa=null,Q=document.createElement("div");Q.style.border="1px solid #d3d3d3";Q.style.position="absolute";Q.style.left="160px";
-Q.style.right="34px";x=(d?72:40)+(I?30:0);Q.style.top=x+"px";Q.style.bottom="68px";Q.style.margin="6px 0 0 -1px";Q.style.padding="6px";Q.style.overflow="auto";var T=document.createElement("div");T.style.cssText="position:absolute;left:30px;width:128px;top:"+x+"px;height:22px;margin-top: 6px;white-space: nowrap";var Z=document.createElement("input");Z.style.cssText="width:105px;height:16px;border:1px solid #d3d3d3;padding: 3px 20px 3px 3px;font-size: 12px";Z.setAttribute("placeholder",mxResources.get("search"));
-Z.setAttribute("type","text");T.appendChild(Z);var U=document.createElement("img"),ma="undefined"!=typeof Sidebar?Sidebar.prototype.searchImage:IMAGE_PATH+"/search.png";U.setAttribute("src",ma);U.setAttribute("title",mxResources.get("search"));U.style.position="relative";U.style.left="-18px";U.style.top="1px";U.style.background="url('"+b.editor.transparentImage+"')";T.appendChild(U);mxEvent.addListener(U,"click",function(){U.getAttribute("src")==Dialog.prototype.closeImage&&(U.setAttribute("src",
-ma),U.setAttribute("title",mxResources.get("search")),Z.value="",null!=na&&(na.click(),na=null));Z.focus()});mxEvent.addListener(Z,"keydown",mxUtils.bind(this,function(b){if(13==b.keyCode){var c=Z.value;if(""==c)null!=na&&(na.click(),na=null);else{if(null==NewDialog.tagsList[p]){var f={},d;for(d in ca)for(var e=ca[d],l=0;l<e.length;l++){var m=e[l];if(null!=m.tags)for(var g=m.tags.toLowerCase().split(";"),k=0;k<g.length;k++)null==f[g[k]]&&(f[g[k]]=[]),f[g[k]].push(m)}NewDialog.tagsList[p]=f}var q=
-c.toLowerCase().split(" "),f=NewDialog.tagsList[p];if(0<ja&&null==f.__tagsList__){for(d in ha)for(e=ha[d],l=0;l<e.length;l++)for(m=e[l],g=m.title.split(" "),g.push(d),k=0;k<g.length;k++){var t=g[k].toLowerCase();null==f[t]&&(f[t]=[]);f[t].push(m)}f.__tagsList__=!0}d=[];e={};for(l=g=0;l<q.length;l++)if(0<q[l].length){var t=f[q[l]],n={};d=[];if(null!=t)for(k=0;k<t.length;k++)m=t[k],0==g==(null==e[m.url])&&(n[m.url]=!0,d.push(m));e=n;g++}Q.scrollTop=0;Q.innerHTML="";K=0;f=document.createElement("div");
-f.style.cssText="border: 1px solid #D3D3D3; padding: 6px; background: #F5F5F5;";mxUtils.write(f,mxResources.get(0==d.length?"noResultsFor":"resultsFor",[c]));Q.appendChild(f);null!=ia&&null==na&&(ia.style.backgroundColor="",na=ia,ia=f);la=d;Y=null;B(!1)}mxEvent.consume(b)}}));mxEvent.addListener(Z,"keyup",mxUtils.bind(this,function(b){""==Z.value?(U.setAttribute("src",ma),U.setAttribute("title",mxResources.get("search"))):(U.setAttribute("src",Dialog.prototype.closeImage),U.setAttribute("title",mxResources.get("reset")))}));
-x+=23;var ga=document.createElement("div");ga.style.cssText="position:absolute;left:30px;width:128px;top:"+x+"px;bottom:68px;margin-top:6px;overflow:auto;border:1px solid #d3d3d3;";mxEvent.addListener(Q,"scroll",function(){b.sidebar.hideTooltip()});var sa=140,X=140,ca={},fa={},ha={},ja=0,ua=!0,ia=null,na=null;ca.basic=[{title:"blankDiagram",select:!0}];var la=ca.basic;if(!e){var ka=function(){mxUtils.get(R,function(b){if(!ba){ba=!0;b=b.getXml().documentElement.firstChild;for(var c={};null!=b;){if("undefined"!==
-typeof b.getAttribute)if("clibs"==b.nodeName){for(var f=b.getAttribute("name"),d=b.getElementsByTagName("add"),e=[],l=0;l<d.length;l++)e.push(encodeURIComponent(mxUtils.getTextContent(d[l])));null!=f&&0<e.length&&(c[f]=e.join(";"))}else if(e=b.getAttribute("url"),null!=e){d=b.getAttribute("section");f=b.getAttribute("subsection");if(null==d&&(l=e.indexOf("/"),d=e.substring(0,l),null==f)){var m=e.indexOf("/",l+1);-1<m&&(f=e.substring(l+1,m))}l=ca[d];null==l&&(l=[],ca[d]=l);e=b.getAttribute("clibs");
-null!=c[e]&&(e=c[e]);e={url:b.getAttribute("url"),libs:b.getAttribute("libs"),title:b.getAttribute("title"),tooltip:b.getAttribute("name")||b.getAttribute("url"),preview:b.getAttribute("preview"),clibs:e,tags:b.getAttribute("tags")};l.push(e);null!=f&&(l=fa[d],null==l&&(l={},fa[d]=l),d=l[f],null==d&&(d=[],l[f]=d),d.push(e))}b=b.nextSibling}P.stop();D()}})};G.appendChild(T);G.appendChild(ga);G.appendChild(Q);var ba=!1,R=p;/^https?:\/\//.test(R)&&!b.editor.isCorsEnabledForUrl(R)&&(R=PROXY_URL+"?url="+
-encodeURIComponent(R));P.spin(Q);null!=A?A(function(b,c){ha=b;L=ja=c;ka()},ka):ka();W=ca}mxEvent.addListener(H,"keypress",function(c){b.dialog.container.firstChild==G&&13==c.keyCode&&y()});A=document.createElement("div");A.style.marginTop=e?"4px":"16px";A.style.textAlign="right";A.style.position="absolute";A.style.left="40px";A.style.bottom="24px";A.style.right="40px";e||b.isOffline()||!d||null!=c||g||(x=mxUtils.button(mxResources.get("help"),function(){b.openLink("https://support.draw.io/display/DO/Creating+and+Opening+Files")}),
-x.className="geBtn",A.appendChild(x));x=mxUtils.button(mxResources.get("cancel"),function(){null!=k&&k();b.hideDialog(!0)});x.className="geBtn";!b.editor.cancelFirst||g&&null==k||A.appendChild(x);e||"1"==urlParams.embed||g||mxClient.IS_ANDROID||mxClient.IS_IOS||"1"==urlParams.noDevice||(e=mxUtils.button(mxResources.get("fromTemplateUrl"),function(){var c=new FilenameDialog(b,"",mxResources.get("create"),function(c){null!=c&&0<c.length&&(c=b.getUrl(window.location.pathname+"?mode="+b.mode+"&title="+
-encodeURIComponent(H.value)+"&create="+encodeURIComponent(c)),null==b.getCurrentFile()?window.location.href=c:window.openWindow(c))},mxResources.get("url"));b.showDialog(c.container,300,80,!0,!0);c.init()}),e.className="geBtn",A.appendChild(e));Graph.fileSupport&&u&&(u=mxUtils.button(mxResources.get("import"),function(){if(null==b.newDlgFileInputElt){var c=document.createElement("input");c.setAttribute("multiple","multiple");c.setAttribute("type","file");mxEvent.addListener(c,"change",function(f){b.openFiles(c.files,
-!0);c.value=""});c.style.display="none";document.body.appendChild(c);b.newDlgFileInputElt=c}b.newDlgFileInputElt.click()}),u.className="geBtn",A.appendChild(u));A.appendChild(N);b.editor.cancelFirst||null!=c||g&&null==k||A.appendChild(x);G.appendChild(A);this.container=G};NewDialog.tagsList={};
-var CreateDialog=function(b,e,d,c,g,k,n,f,l,m,p,q,t,v,u,x,A){function z(c,f,d,l){function m(){mxEvent.addListener(p,"click",function(){var c=d;if(n){var f=C.value,l=f.lastIndexOf(".");if(0>e.lastIndexOf(".")&&0>l){var c=null!=c?c:G.value,m="";c==App.MODE_GOOGLE?m=b.drive.extension:c==App.MODE_GITHUB?m=b.gitHub.extension:c==App.MODE_GITLAB?m=b.gitLab.extension:c==App.MODE_NOTION?m=b.notion.extension:c==App.MODE_TRELLO?m=b.trello.extension:c==App.MODE_DROPBOX?m=b.dropbox.extension:c==App.MODE_ONEDRIVE?
+q)}else d.style.cssText="display:block;cursor:pointer;padding:6px;white-space:nowrap;margin-bottom:-1px;overflow:hidden;text-overflow:ellipsis;user-select:none;transition: all 0.5s;",d.setAttribute("title",g),mxUtils.write(d,g);null!=m&&(d.style.padding=m);ca.appendChild(d);null==ja&&0<f.length&&(ja=d,ja.style.backgroundColor=n,ma=f);c(e,p)}B(!1)}var E=500>(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth);d=null!=d?d:!0;g=null!=g?g:!1;n=null!=n?n:"#ebf2f9";f=null!=
+f?f:Editor.isDarkMode()?"#a2a2a2":"#e6eff8";l=null!=l?l:Editor.isDarkMode()?"1px dashed #00a8ff":"1px solid #ccd9ea";p=null!=p?p:EditorUi.templateFile;var F=document.createElement("div");F.style.userSelect="none";F.style.height="100%";var J=document.createElement("div");J.style.whiteSpace="nowrap";J.style.height="46px";d&&F.appendChild(J);var K=document.createElement("img");K.setAttribute("border","0");K.setAttribute("align","absmiddle");K.style.width="40px";K.style.height="40px";K.style.marginRight=
+"10px";K.style.paddingBottom="4px";K.src=b.mode==App.MODE_GOOGLE?IMAGE_PATH+"/google-drive-logo.svg":b.mode==App.MODE_DROPBOX?IMAGE_PATH+"/dropbox-logo.svg":b.mode==App.MODE_ONEDRIVE?IMAGE_PATH+"/onedrive-logo.svg":b.mode==App.MODE_GITHUB?IMAGE_PATH+"/github-logo.svg":b.mode==App.MODE_GITLAB?IMAGE_PATH+"/gitlab-logo.svg":b.mode==App.MODE_NOTION?IMAGE_PATH+"/notion-logo.svg":b.mode==App.MODE_TRELLO?IMAGE_PATH+"/trello-logo.svg":b.mode==App.MODE_BROWSER?IMAGE_PATH+"/osa_database.png":IMAGE_PATH+"/osa_drive-harddisk.png";
+e||E||!d||J.appendChild(K);d&&mxUtils.write(J,(E?mxResources.get("name"):null==b.mode||b.mode==App.MODE_GOOGLE||b.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"))+":");K=".drawio";b.mode==App.MODE_GOOGLE&&null!=b.drive?K=b.drive.extension:b.mode==App.MODE_DROPBOX&&null!=b.dropbox?K=b.dropbox.extension:b.mode==App.MODE_ONEDRIVE&&null!=b.oneDrive?K=b.oneDrive.extension:b.mode==App.MODE_GITHUB&&null!=b.gitHub?K=b.gitHub.extension:b.mode==App.MODE_GITLAB&&null!=b.gitLab?
+K=b.gitLab.extension:b.mode==App.MODE_NOTION&&null!=b.notion?K=b.notion.extension:b.mode==App.MODE_TRELLO&&null!=b.trello&&(K=b.trello.extension);var H=document.createElement("input");H.setAttribute("value",b.defaultFilename+K);H.style.marginLeft="10px";H.style.width=e||E?"144px":"244px";this.init=function(){d&&(H.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?H.select():document.execCommand("selectAll",!1,null));null!=V.parentNode&&null!=V.parentNode.parentNode&&mxEvent.addGestureListeners(V.parentNode.parentNode,
+mxUtils.bind(this,function(c){b.sidebar.hideTooltip()}),null,null)};d&&(J.appendChild(H),z?H.style.width=e||E?"350px":"450px":(null!=b.editor.diagramFileTypes&&(z=FilenameDialog.createFileTypes(b,H,b.editor.diagramFileTypes),z.style.marginLeft="6px",z.style.width=e||E?"80px":"180px",J.appendChild(z)),null!=b.editor.fileExtensions&&(E=FilenameDialog.createTypeHint(b,H,b.editor.fileExtensions),E.style.marginTop="12px",J.appendChild(E))));var J=!1,I=0,S=new Spinner({lines:12,length:10,width:5,radius:10,
+rotate:0,color:"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9}),P=mxUtils.button(x||mxResources.get("create"),function(){P.setAttribute("disabled","disabled");y();P.removeAttribute("disabled")});P.className="geBtn gePrimaryBtn";if(q||t){var M=[],W=null,X=null,L=null,Q=function(b){P.setAttribute("disabled","disabled");for(var c=0;c<M.length;c++)M[c].className=c==b?"geBtn gePrimaryBtn":"geBtn"},J=!0;x=document.createElement("div");x.style.whiteSpace="nowrap";x.style.height="30px";
+F.appendChild(x);E=mxUtils.button(mxResources.get("Templates",null,"Templates"),function(){ca.style.display="";Z.style.display="";V.style.left="160px";Q(0);V.scrollTop=0;V.innerHTML="";I=0;W!=ma&&(ma=W,U=X,ba=L,ca.innerHTML="",D(),W=null)});M.push(E);x.appendChild(E);var T=function(b){ca.style.display="none";Z.style.display="none";V.style.left="30px";Q(b?-1:1);null==W&&(W=ma);V.scrollTop=0;V.innerHTML="";S.spin(V);var c=function(b,c,f){I=0;S.stop();ma=b;f=f||{};var e=0,d;for(d in f)e+=f[d].length;
+if(c)V.innerHTML=c;else if(0==b.length&&0==e)V.innerHTML=mxUtils.htmlEntities(mxResources.get("noDiagrams",null,"No Diagrams Found"));else if(V.innerHTML="",0<e){ca.style.display="";V.style.left="160px";ca.innerHTML="";ba=0;U={"draw.io":b};for(d in f)U[d]=f[d];D()}else B(!0)};b?t(da.value,c):q(c)};q&&(E=mxUtils.button(mxResources.get("Recent",null,"Recent"),function(){T()}),x.appendChild(E),M.push(E));if(t){E=document.createElement("span");E.style.marginLeft="10px";E.innerHTML=mxUtils.htmlEntities(mxResources.get("search")+
+":");x.appendChild(E);var da=document.createElement("input");da.style.marginRight="10px";da.style.marginLeft="10px";da.style.width="220px";mxEvent.addListener(da,"keypress",function(b){13==b.keyCode&&T(!0)});x.appendChild(da);E=mxUtils.button(mxResources.get("search"),function(){T(!0)});E.className="geBtn";x.appendChild(E)}Q(0)}var oa=null,ea=null,N=null,ha=null,sa=null,la=null,ka=null,V=document.createElement("div");V.style.border="1px solid #d3d3d3";V.style.position="absolute";V.style.left="160px";
+V.style.right="34px";x=(d?72:40)+(J?30:0);V.style.top=x+"px";V.style.bottom="68px";V.style.margin="6px 0 0 -1px";V.style.padding="6px";V.style.overflow="auto";var Z=document.createElement("div");Z.style.cssText="position:absolute;left:30px;width:128px;top:"+x+"px;height:22px;margin-top: 6px;white-space: nowrap";var O=document.createElement("input");O.style.cssText="width:105px;height:16px;border:1px solid #d3d3d3;padding: 3px 20px 3px 3px;font-size: 12px";O.setAttribute("placeholder",mxResources.get("search"));
+O.setAttribute("type","text");Z.appendChild(O);var fa=document.createElement("img"),Y="undefined"!=typeof Sidebar?Sidebar.prototype.searchImage:IMAGE_PATH+"/search.png";fa.setAttribute("src",Y);fa.setAttribute("title",mxResources.get("search"));fa.style.position="relative";fa.style.left="-18px";fa.style.top="1px";fa.style.background="url('"+b.editor.transparentImage+"')";Z.appendChild(fa);mxEvent.addListener(fa,"click",function(){fa.getAttribute("src")==Dialog.prototype.closeImage&&(fa.setAttribute("src",
+Y),fa.setAttribute("title",mxResources.get("search")),O.value="",null!=qa&&(qa.click(),qa=null));O.focus()});mxEvent.addListener(O,"keydown",mxUtils.bind(this,function(b){if(13==b.keyCode){var c=O.value;if(""==c)null!=qa&&(qa.click(),qa=null);else{if(null==NewDialog.tagsList[p]){var f={},d;for(d in U)for(var e=U[d],l=0;l<e.length;l++){var m=e[l];if(null!=m.tags)for(var g=m.tags.toLowerCase().split(";"),k=0;k<g.length;k++)null==f[g[k]]&&(f[g[k]]=[]),f[g[k]].push(m)}NewDialog.tagsList[p]=f}var q=c.toLowerCase().split(" "),
+f=NewDialog.tagsList[p];if(0<ba&&null==f.__tagsList__){for(d in ga)for(e=ga[d],l=0;l<e.length;l++)for(m=e[l],g=m.title.split(" "),g.push(d),k=0;k<g.length;k++){var t=g[k].toLowerCase();null==f[t]&&(f[t]=[]);f[t].push(m)}f.__tagsList__=!0}d=[];e={};for(l=g=0;l<q.length;l++)if(0<q[l].length){var t=f[q[l]],n={};d=[];if(null!=t)for(k=0;k<t.length;k++)m=t[k],0==g==(null==e[m.url])&&(n[m.url]=!0,d.push(m));e=n;g++}V.scrollTop=0;V.innerHTML="";I=0;f=document.createElement("div");f.style.cssText="border: 1px solid #D3D3D3; padding: 6px; background: #F5F5F5;";
+mxUtils.write(f,mxResources.get(0==d.length?"noResultsFor":"resultsFor",[c]));V.appendChild(f);null!=ja&&null==qa&&(ja.style.backgroundColor="",qa=ja,ja=f);ma=d;W=null;B(!1)}mxEvent.consume(b)}}));mxEvent.addListener(O,"keyup",mxUtils.bind(this,function(b){""==O.value?(fa.setAttribute("src",Y),fa.setAttribute("title",mxResources.get("search"))):(fa.setAttribute("src",Dialog.prototype.closeImage),fa.setAttribute("title",mxResources.get("reset")))}));x+=23;var ca=document.createElement("div");ca.style.cssText=
+"position:absolute;left:30px;width:128px;top:"+x+"px;bottom:68px;margin-top:6px;overflow:auto;border:1px solid #d3d3d3;";mxEvent.addListener(V,"scroll",function(){b.sidebar.hideTooltip()});var pa=140,ra=140,U={},na={},ga={},ba=0,ta=!0,ja=null,qa=null;U.basic=[{title:"blankDiagram",select:!0}];var ma=U.basic;if(!e){var ia=function(){mxUtils.get(R,function(b){if(!aa){aa=!0;b=b.getXml().documentElement.firstChild;for(var c={};null!=b;){if("undefined"!==typeof b.getAttribute)if("clibs"==b.nodeName){for(var f=
+b.getAttribute("name"),d=b.getElementsByTagName("add"),e=[],l=0;l<d.length;l++)e.push(encodeURIComponent(mxUtils.getTextContent(d[l])));null!=f&&0<e.length&&(c[f]=e.join(";"))}else if(e=b.getAttribute("url"),null!=e){d=b.getAttribute("section");f=b.getAttribute("subsection");if(null==d&&(l=e.indexOf("/"),d=e.substring(0,l),null==f)){var m=e.indexOf("/",l+1);-1<m&&(f=e.substring(l+1,m))}l=U[d];null==l&&(l=[],U[d]=l);e=b.getAttribute("clibs");null!=c[e]&&(e=c[e]);e={url:b.getAttribute("url"),libs:b.getAttribute("libs"),
+title:b.getAttribute("title"),tooltip:b.getAttribute("name")||b.getAttribute("url"),preview:b.getAttribute("preview"),clibs:e,tags:b.getAttribute("tags")};l.push(e);null!=f&&(l=na[d],null==l&&(l={},na[d]=l),d=l[f],null==d&&(d=[],l[f]=d),d.push(e))}b=b.nextSibling}S.stop();D()}})};F.appendChild(Z);F.appendChild(ca);F.appendChild(V);var aa=!1,R=p;/^https?:\/\//.test(R)&&!b.editor.isCorsEnabledForUrl(R)&&(R=PROXY_URL+"?url="+encodeURIComponent(R));S.spin(V);null!=A?A(function(b,c){ga=b;L=ba=c;ia()},
+ia):ia();X=U}mxEvent.addListener(H,"keypress",function(c){b.dialog.container.firstChild==F&&13==c.keyCode&&y()});A=document.createElement("div");A.style.marginTop=e?"4px":"16px";A.style.textAlign="right";A.style.position="absolute";A.style.left="40px";A.style.bottom="24px";A.style.right="40px";e||b.isOffline()||!d||null!=c||g||(x=mxUtils.button(mxResources.get("help"),function(){b.openLink("https://support.draw.io/display/DO/Creating+and+Opening+Files")}),x.className="geBtn",A.appendChild(x));x=mxUtils.button(mxResources.get("cancel"),
+function(){null!=k&&k();b.hideDialog(!0)});x.className="geBtn";!b.editor.cancelFirst||g&&null==k||A.appendChild(x);e||"1"==urlParams.embed||g||mxClient.IS_ANDROID||mxClient.IS_IOS||"1"==urlParams.noDevice||(e=mxUtils.button(mxResources.get("fromTemplateUrl"),function(){var c=new FilenameDialog(b,"",mxResources.get("create"),function(c){null!=c&&0<c.length&&(c=b.getUrl(window.location.pathname+"?mode="+b.mode+"&title="+encodeURIComponent(H.value)+"&create="+encodeURIComponent(c)),null==b.getCurrentFile()?
+window.location.href=c:window.openWindow(c))},mxResources.get("url"));b.showDialog(c.container,300,80,!0,!0);c.init()}),e.className="geBtn",A.appendChild(e));Graph.fileSupport&&u&&(u=mxUtils.button(mxResources.get("import"),function(){if(null==b.newDlgFileInputElt){var c=document.createElement("input");c.setAttribute("multiple","multiple");c.setAttribute("type","file");mxEvent.addListener(c,"change",function(f){b.openFiles(c.files,!0);c.value=""});c.style.display="none";document.body.appendChild(c);
+b.newDlgFileInputElt=c}b.newDlgFileInputElt.click()}),u.className="geBtn",A.appendChild(u));A.appendChild(P);b.editor.cancelFirst||null!=c||g&&null==k||A.appendChild(x);F.appendChild(A);this.container=F};NewDialog.tagsList={};
+var CreateDialog=function(b,e,d,c,g,k,n,f,l,m,p,q,t,v,u,x,A){function z(c,f,d,l){function m(){mxEvent.addListener(p,"click",function(){var c=d;if(n){var f=C.value,l=f.lastIndexOf(".");if(0>e.lastIndexOf(".")&&0>l){var c=null!=c?c:F.value,m="";c==App.MODE_GOOGLE?m=b.drive.extension:c==App.MODE_GITHUB?m=b.gitHub.extension:c==App.MODE_GITLAB?m=b.gitLab.extension:c==App.MODE_NOTION?m=b.notion.extension:c==App.MODE_TRELLO?m=b.trello.extension:c==App.MODE_DROPBOX?m=b.dropbox.extension:c==App.MODE_ONEDRIVE?
m=b.oneDrive.extension:c==App.MODE_DEVICE&&(m=".drawio");0<=l&&(f=f.substring(0,l));C.value=f+m}}B(d)})}var p=document.createElement("a");p.style.overflow="hidden";var g=document.createElement("img");g.src=c;g.setAttribute("border","0");g.setAttribute("align","absmiddle");g.style.width="60px";g.style.height="60px";g.style.paddingBottom="6px";p.style.display="inline-block";p.className="geBaseButton";p.style.position="relative";p.style.margin="4px";p.style.padding="8px 8px 10px 8px";p.style.whiteSpace=
"nowrap";p.appendChild(g);p.style.color="gray";p.style.fontSize="11px";var k=document.createElement("div");p.appendChild(k);mxUtils.write(k,f);if(null!=l&&null==b[l]){g.style.visibility="hidden";mxUtils.setOpacity(k,10);var t=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});t.spin(p);var L=window.setTimeout(function(){null==b[l]&&(t.stop(),p.style.display="none")},3E4);b.addListener("clientLoaded",mxUtils.bind(this,
-function(){null!=b[l]&&(window.clearTimeout(L),mxUtils.setOpacity(k,100),g.style.visibility="",t.stop(),m())}))}else m();D.appendChild(p);++F==q&&(mxUtils.br(D),F=0)}function B(c){var f=C.value;if(null==c||null!=f&&0<f.length)A&&b.hideDialog(),d(f,c,C)}p="1"==urlParams.noDevice?!1:p;n=null!=n?n:!0;f=null!=f?f:!0;q=null!=q?q:4;A=null!=A?A:!0;k=document.createElement("div");k.style.whiteSpace="nowrap";null==c&&b.addLanguageMenu(k);var y=document.createElement("h2");mxUtils.write(y,g||mxResources.get("create"));
+function(){null!=b[l]&&(window.clearTimeout(L),mxUtils.setOpacity(k,100),g.style.visibility="",t.stop(),m())}))}else m();D.appendChild(p);++E==q&&(mxUtils.br(D),E=0)}function B(c){var f=C.value;if(null==c||null!=f&&0<f.length)A&&b.hideDialog(),d(f,c,C)}p="1"==urlParams.noDevice?!1:p;n=null!=n?n:!0;f=null!=f?f:!0;q=null!=q?q:4;A=null!=A?A:!0;k=document.createElement("div");k.style.whiteSpace="nowrap";null==c&&b.addLanguageMenu(k);var y=document.createElement("h2");mxUtils.write(y,g||mxResources.get("create"));
y.style.marginTop="0px";y.style.marginBottom="24px";k.appendChild(y);mxUtils.write(k,mxResources.get("filename")+":");var C=document.createElement("input");C.setAttribute("value",e);C.style.width="200px";C.style.marginLeft="10px";C.style.marginBottom="20px";C.style.maxWidth="70%";this.init=function(){C.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?C.select():document.execCommand("selectAll",!1,null)};k.appendChild(C);null!=x&&(null!=b.editor.diagramFileTypes&&(g=FilenameDialog.createFileTypes(b,
-C,b.editor.diagramFileTypes),g.style.marginLeft="6px",g.style.width="90px",k.appendChild(g)),k.appendChild(FilenameDialog.createTypeHint(b,C,x)));x=null;if("1"!=urlParams.noDevice&&null!=t&&null!=v&&"image/"==v.substring(0,6)&&("image/svg"!=v.substring(0,9)||mxClient.IS_SVG)){C.style.width="160px";g=document.createElement("img");var E=u?t:btoa(unescape(encodeURIComponent(t)));g.setAttribute("src","data:"+v+";base64,"+E);g.style.position="absolute";g.style.top="70px";g.style.right="100px";g.style.maxWidth=
-"120px";g.style.maxHeight="80px";mxUtils.setPrefixedStyle(g.style,"transform","translate(50%,-50%)");k.appendChild(g);mxClient.IS_FF||null==navigator.clipboard||"image/png"!=v||(x=mxUtils.button(mxResources.get("copy"),function(c){c=b.base64ToBlob(E,"image/png");c=new ClipboardItem({"image/png":c,"text/html":new Blob(['<img src="data:'+v+";base64,"+E+'">'],{type:"text/html"})});navigator.clipboard.write([c]).then(mxUtils.bind(this,function(){b.alert(mxResources.get("copiedToClipboard"))}))["catch"](mxUtils.bind(this,
-function(c){b.handleError(c)}))}),x.style.marginTop="6px",x.className="geBtn");l&&Editor.popupsAllowed&&(g.style.cursor="pointer",mxEvent.addGestureListeners(g,null,null,function(b){mxEvent.isPopupTrigger(b)||B("_blank")}))}mxUtils.br(k);var D=document.createElement("div");D.style.textAlign="center";var F=0;D.style.marginTop="6px";k.appendChild(D);var G=document.createElement("select");G.style.marginLeft="10px";b.isOfflineApp()||b.isOffline()||("function"===typeof window.DriveClient&&(t=document.createElement("option"),
-t.setAttribute("value",App.MODE_GOOGLE),mxUtils.write(t,mxResources.get("googleDrive")),G.appendChild(t),z(IMAGE_PATH+"/google-drive-logo.svg",mxResources.get("googleDrive"),App.MODE_GOOGLE,"drive")),"function"===typeof window.OneDriveClient&&(t=document.createElement("option"),t.setAttribute("value",App.MODE_ONEDRIVE),mxUtils.write(t,mxResources.get("oneDrive")),G.appendChild(t),b.mode==App.MODE_ONEDRIVE&&t.setAttribute("selected","selected"),z(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"),
-App.MODE_ONEDRIVE,"oneDrive")),"function"===typeof window.DropboxClient&&(t=document.createElement("option"),t.setAttribute("value",App.MODE_DROPBOX),mxUtils.write(t,mxResources.get("dropbox")),G.appendChild(t),b.mode==App.MODE_DROPBOX&&t.setAttribute("selected","selected"),z(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),App.MODE_DROPBOX,"dropbox")),null!=b.gitHub&&(t=document.createElement("option"),t.setAttribute("value",App.MODE_GITHUB),mxUtils.write(t,mxResources.get("github")),G.appendChild(t),
-z(IMAGE_PATH+"/github-logo.svg",mxResources.get("github"),App.MODE_GITHUB,"gitHub")),null!=b.gitLab&&(t=document.createElement("option"),t.setAttribute("value",App.MODE_GITLAB),mxUtils.write(t,mxResources.get("gitlab")),G.appendChild(t),z(IMAGE_PATH+"/gitlab-logo.svg",mxResources.get("gitlab"),App.MODE_GITLAB,"gitLab")),null!=b.notion&&(t=document.createElement("option"),t.setAttribute("value",App.MODE_NOTION),mxUtils.write(t,mxResources.get("notion")),G.appendChild(t),z(IMAGE_PATH+"/notion-logo.svg",
-mxResources.get("notion"),App.MODE_NOTION,"notion")),"function"===typeof window.TrelloClient&&(t=document.createElement("option"),t.setAttribute("value",App.MODE_TRELLO),mxUtils.write(t,mxResources.get("trello")),G.appendChild(t),z(IMAGE_PATH+"/trello-logo.svg",mxResources.get("trello"),App.MODE_TRELLO,"trello")));if(!Editor.useLocalStorage||"device"==urlParams.storage||null!=b.getCurrentFile()&&"1"!=urlParams.noDevice)t=document.createElement("option"),t.setAttribute("value",App.MODE_DEVICE),mxUtils.write(t,
-mxResources.get("device")),G.appendChild(t),b.mode!=App.MODE_DEVICE&&f||t.setAttribute("selected","selected"),p&&z(IMAGE_PATH+"/osa_drive-harddisk.png",mxResources.get("device"),App.MODE_DEVICE);f&&isLocalStorage&&"0"!=urlParams.browser&&(f=document.createElement("option"),f.setAttribute("value",App.MODE_BROWSER),mxUtils.write(f,mxResources.get("browser")),G.appendChild(f),b.mode==App.MODE_BROWSER&&f.setAttribute("selected","selected"),z(IMAGE_PATH+"/osa_database.png",mxResources.get("browser"),App.MODE_BROWSER));
+C,b.editor.diagramFileTypes),g.style.marginLeft="6px",g.style.width="90px",k.appendChild(g)),k.appendChild(FilenameDialog.createTypeHint(b,C,x)));x=null;if("1"!=urlParams.noDevice&&null!=t&&null!=v&&"image/"==v.substring(0,6)&&("image/svg"!=v.substring(0,9)||mxClient.IS_SVG)){C.style.width="160px";g=document.createElement("img");var G=u?t:btoa(unescape(encodeURIComponent(t)));g.setAttribute("src","data:"+v+";base64,"+G);g.style.position="absolute";g.style.top="70px";g.style.right="100px";g.style.maxWidth=
+"120px";g.style.maxHeight="80px";mxUtils.setPrefixedStyle(g.style,"transform","translate(50%,-50%)");k.appendChild(g);mxClient.IS_FF||null==navigator.clipboard||"image/png"!=v||(x=mxUtils.button(mxResources.get("copy"),function(c){c=b.base64ToBlob(G,"image/png");c=new ClipboardItem({"image/png":c,"text/html":new Blob(['<img src="data:'+v+";base64,"+G+'">'],{type:"text/html"})});navigator.clipboard.write([c]).then(mxUtils.bind(this,function(){b.alert(mxResources.get("copiedToClipboard"))}))["catch"](mxUtils.bind(this,
+function(c){b.handleError(c)}))}),x.style.marginTop="6px",x.className="geBtn");l&&Editor.popupsAllowed&&(g.style.cursor="pointer",mxEvent.addGestureListeners(g,null,null,function(b){mxEvent.isPopupTrigger(b)||B("_blank")}))}mxUtils.br(k);var D=document.createElement("div");D.style.textAlign="center";var E=0;D.style.marginTop="6px";k.appendChild(D);var F=document.createElement("select");F.style.marginLeft="10px";b.isOfflineApp()||b.isOffline()||("function"===typeof window.DriveClient&&(t=document.createElement("option"),
+t.setAttribute("value",App.MODE_GOOGLE),mxUtils.write(t,mxResources.get("googleDrive")),F.appendChild(t),z(IMAGE_PATH+"/google-drive-logo.svg",mxResources.get("googleDrive"),App.MODE_GOOGLE,"drive")),"function"===typeof window.OneDriveClient&&(t=document.createElement("option"),t.setAttribute("value",App.MODE_ONEDRIVE),mxUtils.write(t,mxResources.get("oneDrive")),F.appendChild(t),b.mode==App.MODE_ONEDRIVE&&t.setAttribute("selected","selected"),z(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"),
+App.MODE_ONEDRIVE,"oneDrive")),"function"===typeof window.DropboxClient&&(t=document.createElement("option"),t.setAttribute("value",App.MODE_DROPBOX),mxUtils.write(t,mxResources.get("dropbox")),F.appendChild(t),b.mode==App.MODE_DROPBOX&&t.setAttribute("selected","selected"),z(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),App.MODE_DROPBOX,"dropbox")),null!=b.gitHub&&(t=document.createElement("option"),t.setAttribute("value",App.MODE_GITHUB),mxUtils.write(t,mxResources.get("github")),F.appendChild(t),
+z(IMAGE_PATH+"/github-logo.svg",mxResources.get("github"),App.MODE_GITHUB,"gitHub")),null!=b.gitLab&&(t=document.createElement("option"),t.setAttribute("value",App.MODE_GITLAB),mxUtils.write(t,mxResources.get("gitlab")),F.appendChild(t),z(IMAGE_PATH+"/gitlab-logo.svg",mxResources.get("gitlab"),App.MODE_GITLAB,"gitLab")),null!=b.notion&&(t=document.createElement("option"),t.setAttribute("value",App.MODE_NOTION),mxUtils.write(t,mxResources.get("notion")),F.appendChild(t),z(IMAGE_PATH+"/notion-logo.svg",
+mxResources.get("notion"),App.MODE_NOTION,"notion")),"function"===typeof window.TrelloClient&&(t=document.createElement("option"),t.setAttribute("value",App.MODE_TRELLO),mxUtils.write(t,mxResources.get("trello")),F.appendChild(t),z(IMAGE_PATH+"/trello-logo.svg",mxResources.get("trello"),App.MODE_TRELLO,"trello")));if(!Editor.useLocalStorage||"device"==urlParams.storage||null!=b.getCurrentFile()&&"1"!=urlParams.noDevice)t=document.createElement("option"),t.setAttribute("value",App.MODE_DEVICE),mxUtils.write(t,
+mxResources.get("device")),F.appendChild(t),b.mode!=App.MODE_DEVICE&&f||t.setAttribute("selected","selected"),p&&z(IMAGE_PATH+"/osa_drive-harddisk.png",mxResources.get("device"),App.MODE_DEVICE);f&&isLocalStorage&&"0"!=urlParams.browser&&(f=document.createElement("option"),f.setAttribute("value",App.MODE_BROWSER),mxUtils.write(f,mxResources.get("browser")),F.appendChild(f),b.mode==App.MODE_BROWSER&&f.setAttribute("selected","selected"),z(IMAGE_PATH+"/osa_database.png",mxResources.get("browser"),App.MODE_BROWSER));
f=document.createElement("div");f.style.marginTop="26px";f.style.textAlign="center";null!=m&&(p=mxUtils.button(mxResources.get("help"),function(){b.openLink(m)}),p.className="geBtn",f.appendChild(p));p=mxUtils.button(mxResources.get(null!=c?"close":"cancel"),function(){null!=c?c():(b.fileLoaded(null),b.hideDialog(),window.close(),window.location.href=b.getUrl())});p.className="geBtn";b.editor.cancelFirst&&null==c&&f.appendChild(p);null==c&&(t=mxUtils.button(mxResources.get("decideLater"),function(){B(null)}),
t.className="geBtn",f.appendChild(t));l&&Editor.popupsAllowed&&(l=mxUtils.button(mxResources.get("openInNewWindow"),function(){B("_blank")}),l.className="geBtn",f.appendChild(l));CreateDialog.showDownloadButton&&(l=mxUtils.button(mxResources.get("download"),function(){B("download")}),l.className="geBtn",f.appendChild(l),null!=x&&(l.style.marginTop="6px",f.style.marginTop="6px"));null!=x&&(mxUtils.br(f),f.appendChild(x));b.editor.cancelFirst&&null==c||f.appendChild(p);mxEvent.addListener(C,"keypress",
function(c){13==c.keyCode?B(App.MODE_DEVICE):27==c.keyCode&&(b.fileLoaded(null),b.hideDialog(),window.close())});k.appendChild(f);this.container=k};CreateDialog.showDownloadButton="1"!=urlParams.noDevice;
@@ -10315,57 +10315,57 @@ g.appendChild(p);d=document.createElement("div");d.style.marginTop="26px";d.styl
var RevisionDialog=function(b,e,d){var c=document.createElement("div"),g=document.createElement("h3");g.style.marginTop="0px";mxUtils.write(g,mxResources.get("revisionHistory"));c.appendChild(g);g=document.createElement("div");g.style.position="absolute";g.style.overflow="auto";g.style.width="170px";g.style.height="378px";c.appendChild(g);var k=document.createElement("div");k.style.position="absolute";k.style.border="1px solid lightGray";k.style.left="199px";k.style.width="470px";k.style.height="376px";
k.style.overflow="hidden";var n=document.createElement("div");n.style.cssText="position:absolute;left:0;right:0;top:0;bottom:20px;text-align:center;transform:translate(0,50%);pointer-events:none;";k.appendChild(n);mxEvent.disableContextMenu(k);c.appendChild(k);var f=new Graph(k);f.setTooltips(!1);f.setEnabled(!1);f.setPanning(!0);f.panningHandler.ignoreCell=!0;f.panningHandler.useLeftButtonForPanning=!0;f.minFitScale=null;f.maxFitScale=null;f.centerZoom=!0;var l=0,m=null,p=0,q=f.getGlobalVariable;
f.getGlobalVariable=function(b){return"page"==b&&null!=m&&null!=m[p]?m[p].getAttribute("name"):"pagenumber"==b?p+1:"pagecount"==b?null!=m?m.length:1:q.apply(this,arguments)};f.getLinkForCell=function(){return null};Editor.MathJaxRender&&f.addListener(mxEvent.SIZE,mxUtils.bind(this,function(c,d){b.editor.graph.mathEnabled&&Editor.MathJaxRender(f.container)}));for(var t={lines:11,length:15,width:6,radius:10,corners:1,rotate:0,direction:1,color:Editor.isDarkMode()?"#c0c0c0":"#000",speed:1.4,trail:60,
-shadow:!1,hwaccel:!1,className:"spinner",zIndex:2E9,top:"50%",left:"50%"},v=new Spinner(t),u=b.getCurrentFile(),x=b.getXmlFileData(!0,!1,!0).getElementsByTagName("diagram"),A={},t=0;t<x.length;t++)A[x[t].getAttribute("id")]=x[t];var z=null,B=null,y=null,C=null,E=mxUtils.button("",function(){null!=y&&f.zoomIn()});E.className="geSprite geSprite-zoomin";E.setAttribute("title",mxResources.get("zoomIn"));E.style.outline="none";E.style.border="none";E.style.margin="2px";E.setAttribute("disabled","disabled");
-mxUtils.setOpacity(E,20);var D=mxUtils.button("",function(){null!=y&&f.zoomOut()});D.className="geSprite geSprite-zoomout";D.setAttribute("title",mxResources.get("zoomOut"));D.style.outline="none";D.style.border="none";D.style.margin="2px";D.setAttribute("disabled","disabled");mxUtils.setOpacity(D,20);var F=mxUtils.button("",function(){null!=y&&(f.maxFitScale=8,f.fit(8),f.center())});F.className="geSprite geSprite-fit";F.setAttribute("title",mxResources.get("fit"));F.style.outline="none";F.style.border=
-"none";F.style.margin="2px";F.setAttribute("disabled","disabled");mxUtils.setOpacity(F,20);var G=mxUtils.button("",function(){null!=y&&(f.zoomActual(),f.center())});G.className="geSprite geSprite-actualsize";G.setAttribute("title",mxResources.get("actualSize"));G.style.outline="none";G.style.border="none";G.style.margin="2px";G.setAttribute("disabled","disabled");mxUtils.setOpacity(G,20);var I=mxUtils.button("",function(){});I.className="geSprite geSprite-middle";I.setAttribute("title",mxResources.get("compare"));
-I.style.outline="none";I.style.border="none";I.style.margin="2px";mxUtils.setOpacity(I,60);var J=k.cloneNode(!1);J.style.pointerEvent="none";k.parentNode.appendChild(J);var H=new Graph(J);H.setTooltips(!1);H.setEnabled(!1);H.setPanning(!0);H.panningHandler.ignoreCell=!0;H.panningHandler.useLeftButtonForPanning=!0;H.minFitScale=null;H.maxFitScale=null;H.centerZoom=!0;mxEvent.addGestureListeners(I,function(b){b=A[m[l].getAttribute("id")];mxUtils.setOpacity(I,20);n.innerHTML="";null==b?mxUtils.write(n,
-mxResources.get("pageNotFound")):(K.style.display="none",k.style.display="none",J.style.display="",J.style.backgroundColor=k.style.backgroundColor,b=Editor.parseDiagramNode(b),(new mxCodec(b.ownerDocument)).decode(b,H.getModel()),H.view.scaleAndTranslate(f.view.scale,f.view.translate.x,f.view.translate.y))},null,function(){mxUtils.setOpacity(I,60);n.innerHTML="";"none"==k.style.display&&(K.style.display="",k.style.display="",J.style.display="none")});var K=document.createElement("div");K.style.position=
-"absolute";K.style.textAlign="right";K.style.color="gray";K.style.marginTop="10px";K.style.backgroundColor="transparent";K.style.top="440px";K.style.right="32px";K.style.maxWidth="380px";K.style.cursor="default";var P=mxUtils.button(mxResources.get("download"),function(){if(null!=y){var c=mxUtils.getXml(y.documentElement),f=b.getBaseFilename()+".drawio";b.isLocalFileSave()?b.saveLocalFile(c,f,"text/xml"):(c="undefined"===typeof pako?"&xml="+encodeURIComponent(c):"&data="+encodeURIComponent(Graph.compress(c)),
-(new mxXmlRequest(SAVE_URL,"filename="+encodeURIComponent(f)+"&format=xml"+c)).simulate(document,"_blank"))}});P.className="geBtn";P.setAttribute("disabled","disabled");var N=mxUtils.button(mxResources.get("restore"),function(c){null!=y&&null!=C&&(mxEvent.isShiftDown(c)?null!=y&&(c=b.getPagesForNode(y.documentElement),c=b.diffPages(b.pages,c),c=new TextareaDialog(b,mxResources.get("compare"),JSON.stringify(c,null,2),function(c){if(0<c.length)try{b.confirm(mxResources.get("areYouSure"),function(){u.patch([JSON.parse(c)],
-null,!0);b.hideDialog();b.hideDialog()})}catch(ea){b.handleError(ea)}},null,null,null,null,null,!0,null,mxResources.get("merge")),b.showDialog(c.container,620,460,!0,!0),c.init()):b.confirm(mxResources.get("areYouSure"),function(){null!=d?d(C):b.spinner.spin(document.body,mxResources.get("restoring"))&&u.save(!0,function(c){b.spinner.stop();b.replaceFileData(C);b.hideDialog()},function(c){b.spinner.stop();b.editor.setStatus("");b.handleError(c,null!=c?mxResources.get("errorSavingFile"):null)})}))});
-N.className="geBtn";N.setAttribute("disabled","disabled");N.setAttribute("title","Shift+Click for Diff");var M=document.createElement("select");M.setAttribute("disabled","disabled");M.style.maxWidth="80px";M.style.position="relative";M.style.top="-2px";M.style.verticalAlign="bottom";M.style.marginRight="6px";M.style.display="none";var Y=null;mxEvent.addListener(M,"change",function(b){null!=Y&&(Y(b),mxEvent.consume(b))});var W=mxUtils.button(mxResources.get("edit"),function(){null!=y&&(window.openFile=
-new OpenFile(function(){window.openFile=null}),window.openFile.setData(mxUtils.getXml(y.documentElement)),b.openLink(b.getUrl(),null,!0))});W.className="geBtn";W.setAttribute("disabled","disabled");null!=d&&(W.style.display="none");var L=mxUtils.button(mxResources.get("show"),function(){null!=B&&b.openLink(B.getUrl(M.selectedIndex))});L.className="geBtn gePrimaryBtn";L.setAttribute("disabled","disabled");null!=d&&(L.style.display="none",N.className="geBtn gePrimaryBtn");x=document.createElement("div");
-x.style.position="absolute";x.style.top="482px";x.style.width="640px";x.style.textAlign="right";var O=document.createElement("div");O.className="geToolbarContainer";O.style.backgroundColor="transparent";O.style.padding="2px";O.style.border="none";O.style.left="199px";O.style.top="442px";var S=null;if(null!=e&&0<e.length){k.style.cursor="move";var da=document.createElement("table");da.style.border="1px solid lightGray";da.style.borderCollapse="collapse";da.style.borderSpacing="0px";da.style.width=
-"100%";var pa=document.createElement("tbody"),aa=(new Date).toDateString();null!=b.currentPage&&null!=b.pages&&(l=mxUtils.indexOf(b.pages,b.currentPage));for(t=e.length-1;0<=t;t--){var V=function(c){var d=new Date(c.modifiedDate),g=null;if(0<=d.getTime()){var q=function(e){v.stop();n.innerHTML="";var q=mxUtils.parseXml(e),t=b.editor.extractGraphModel(q.documentElement,!0);if(null!=t){var x=function(b){null!=b&&(b=A(Editor.parseDiagramNode(b)));return b},A=function(b){var c=b.getAttribute("background");
+shadow:!1,hwaccel:!1,className:"spinner",zIndex:2E9,top:"50%",left:"50%"},v=new Spinner(t),u=b.getCurrentFile(),x=b.getXmlFileData(!0,!1,!0).getElementsByTagName("diagram"),A={},t=0;t<x.length;t++)A[x[t].getAttribute("id")]=x[t];var z=null,B=null,y=null,C=null,G=mxUtils.button("",function(){null!=y&&f.zoomIn()});G.className="geSprite geSprite-zoomin";G.setAttribute("title",mxResources.get("zoomIn"));G.style.outline="none";G.style.border="none";G.style.margin="2px";G.setAttribute("disabled","disabled");
+mxUtils.setOpacity(G,20);var D=mxUtils.button("",function(){null!=y&&f.zoomOut()});D.className="geSprite geSprite-zoomout";D.setAttribute("title",mxResources.get("zoomOut"));D.style.outline="none";D.style.border="none";D.style.margin="2px";D.setAttribute("disabled","disabled");mxUtils.setOpacity(D,20);var E=mxUtils.button("",function(){null!=y&&(f.maxFitScale=8,f.fit(8),f.center())});E.className="geSprite geSprite-fit";E.setAttribute("title",mxResources.get("fit"));E.style.outline="none";E.style.border=
+"none";E.style.margin="2px";E.setAttribute("disabled","disabled");mxUtils.setOpacity(E,20);var F=mxUtils.button("",function(){null!=y&&(f.zoomActual(),f.center())});F.className="geSprite geSprite-actualsize";F.setAttribute("title",mxResources.get("actualSize"));F.style.outline="none";F.style.border="none";F.style.margin="2px";F.setAttribute("disabled","disabled");mxUtils.setOpacity(F,20);var J=mxUtils.button("",function(){});J.className="geSprite geSprite-middle";J.setAttribute("title",mxResources.get("compare"));
+J.style.outline="none";J.style.border="none";J.style.margin="2px";mxUtils.setOpacity(J,60);var K=k.cloneNode(!1);K.style.pointerEvent="none";k.parentNode.appendChild(K);var H=new Graph(K);H.setTooltips(!1);H.setEnabled(!1);H.setPanning(!0);H.panningHandler.ignoreCell=!0;H.panningHandler.useLeftButtonForPanning=!0;H.minFitScale=null;H.maxFitScale=null;H.centerZoom=!0;mxEvent.addGestureListeners(J,function(b){b=A[m[l].getAttribute("id")];mxUtils.setOpacity(J,20);n.innerHTML="";null==b?mxUtils.write(n,
+mxResources.get("pageNotFound")):(I.style.display="none",k.style.display="none",K.style.display="",K.style.backgroundColor=k.style.backgroundColor,b=Editor.parseDiagramNode(b),(new mxCodec(b.ownerDocument)).decode(b,H.getModel()),H.view.scaleAndTranslate(f.view.scale,f.view.translate.x,f.view.translate.y))},null,function(){mxUtils.setOpacity(J,60);n.innerHTML="";"none"==k.style.display&&(I.style.display="",k.style.display="",K.style.display="none")});var I=document.createElement("div");I.style.position=
+"absolute";I.style.textAlign="right";I.style.color="gray";I.style.marginTop="10px";I.style.backgroundColor="transparent";I.style.top="440px";I.style.right="32px";I.style.maxWidth="380px";I.style.cursor="default";var S=mxUtils.button(mxResources.get("download"),function(){if(null!=y){var c=mxUtils.getXml(y.documentElement),f=b.getBaseFilename()+".drawio";b.isLocalFileSave()?b.saveLocalFile(c,f,"text/xml"):(c="undefined"===typeof pako?"&xml="+encodeURIComponent(c):"&data="+encodeURIComponent(Graph.compress(c)),
+(new mxXmlRequest(SAVE_URL,"filename="+encodeURIComponent(f)+"&format=xml"+c)).simulate(document,"_blank"))}});S.className="geBtn";S.setAttribute("disabled","disabled");var P=mxUtils.button(mxResources.get("restore"),function(c){null!=y&&null!=C&&(mxEvent.isShiftDown(c)?null!=y&&(c=b.getPagesForNode(y.documentElement),c=b.diffPages(b.pages,c),c=new TextareaDialog(b,mxResources.get("compare"),JSON.stringify(c,null,2),function(c){if(0<c.length)try{b.confirm(mxResources.get("areYouSure"),function(){u.patch([JSON.parse(c)],
+null,!0);b.hideDialog();b.hideDialog()})}catch(la){b.handleError(la)}},null,null,null,null,null,!0,null,mxResources.get("merge")),b.showDialog(c.container,620,460,!0,!0),c.init()):b.confirm(mxResources.get("areYouSure"),function(){null!=d?d(C):b.spinner.spin(document.body,mxResources.get("restoring"))&&u.save(!0,function(c){b.spinner.stop();b.replaceFileData(C);b.hideDialog()},function(c){b.spinner.stop();b.editor.setStatus("");b.handleError(c,null!=c?mxResources.get("errorSavingFile"):null)})}))});
+P.className="geBtn";P.setAttribute("disabled","disabled");P.setAttribute("title","Shift+Click for Diff");var M=document.createElement("select");M.setAttribute("disabled","disabled");M.style.maxWidth="80px";M.style.position="relative";M.style.top="-2px";M.style.verticalAlign="bottom";M.style.marginRight="6px";M.style.display="none";var W=null;mxEvent.addListener(M,"change",function(b){null!=W&&(W(b),mxEvent.consume(b))});var X=mxUtils.button(mxResources.get("edit"),function(){null!=y&&(window.openFile=
+new OpenFile(function(){window.openFile=null}),window.openFile.setData(mxUtils.getXml(y.documentElement)),b.openLink(b.getUrl(),null,!0))});X.className="geBtn";X.setAttribute("disabled","disabled");null!=d&&(X.style.display="none");var L=mxUtils.button(mxResources.get("show"),function(){null!=B&&b.openLink(B.getUrl(M.selectedIndex))});L.className="geBtn gePrimaryBtn";L.setAttribute("disabled","disabled");null!=d&&(L.style.display="none",P.className="geBtn gePrimaryBtn");x=document.createElement("div");
+x.style.position="absolute";x.style.top="482px";x.style.width="640px";x.style.textAlign="right";var Q=document.createElement("div");Q.className="geToolbarContainer";Q.style.backgroundColor="transparent";Q.style.padding="2px";Q.style.border="none";Q.style.left="199px";Q.style.top="442px";var T=null;if(null!=e&&0<e.length){k.style.cursor="move";var da=document.createElement("table");da.style.border="1px solid lightGray";da.style.borderCollapse="collapse";da.style.borderSpacing="0px";da.style.width=
+"100%";var oa=document.createElement("tbody"),ea=(new Date).toDateString();null!=b.currentPage&&null!=b.pages&&(l=mxUtils.indexOf(b.pages,b.currentPage));for(t=e.length-1;0<=t;t--){var N=function(c){var d=new Date(c.modifiedDate),g=null;if(0<=d.getTime()){var q=function(e){v.stop();n.innerHTML="";var q=mxUtils.parseXml(e),t=b.editor.extractGraphModel(q.documentElement,!0);if(null!=t){var x=function(b){null!=b&&(b=A(Editor.parseDiagramNode(b)));return b},A=function(b){var c=b.getAttribute("background");
if(null==c||""==c||c==mxConstants.NONE)c=f.defaultPageBackgroundColor;k.style.backgroundColor=c;(new mxCodec(b.ownerDocument)).decode(b,f.getModel());f.maxFitScale=1;f.fit(8);f.center();return b};M.style.display="none";M.innerHTML="";y=q;C=e;m=parseSelectFunction=null;p=0;if("mxfile"==t.nodeName){q=t.getElementsByTagName("diagram");m=[];for(e=0;e<q.length;e++)m.push(q[e]);p=Math.min(l,m.length-1);0<m.length&&x(m[p]);if(1<m.length)for(M.removeAttribute("disabled"),M.style.display="",e=0;e<m.length;e++)q=
-document.createElement("option"),mxUtils.write(q,m[e].getAttribute("name")||mxResources.get("pageWithNumber",[e+1])),q.setAttribute("value",e),e==p&&q.setAttribute("selected","selected"),M.appendChild(q);Y=function(){try{var c=parseInt(M.value);p=l=c;x(m[c])}catch(X){M.value=l,b.handleError(X)}}}else A(t);e=c.lastModifyingUserName;null!=e&&20<e.length&&(e=e.substring(0,20)+"...");K.innerHTML="";mxUtils.write(K,(null!=e?e+" ":"")+d.toLocaleDateString()+" "+d.toLocaleTimeString());K.setAttribute("title",
-g.getAttribute("title"));E.removeAttribute("disabled");D.removeAttribute("disabled");F.removeAttribute("disabled");G.removeAttribute("disabled");I.removeAttribute("disabled");null!=u&&u.isRestricted()||(b.editor.graph.isEnabled()&&N.removeAttribute("disabled"),P.removeAttribute("disabled"),L.removeAttribute("disabled"),W.removeAttribute("disabled"));mxUtils.setOpacity(E,60);mxUtils.setOpacity(D,60);mxUtils.setOpacity(F,60);mxUtils.setOpacity(G,60);mxUtils.setOpacity(I,60)}else M.style.display="none",
-M.innerHTML="",K.innerHTML="",mxUtils.write(K,mxResources.get("errorLoadingFile")),mxUtils.write(n,mxResources.get("errorLoadingFile"))},g=document.createElement("tr");g.style.borderBottom="1px solid lightGray";g.style.fontSize="12px";g.style.cursor="pointer";var t=document.createElement("td");t.style.padding="6px";t.style.whiteSpace="nowrap";c==e[e.length-1]?mxUtils.write(t,mxResources.get("current")):d.toDateString()===aa?mxUtils.write(t,d.toLocaleTimeString()):mxUtils.write(t,d.toLocaleDateString()+
-" "+d.toLocaleTimeString());g.appendChild(t);g.setAttribute("title",d.toLocaleDateString()+" "+d.toLocaleTimeString()+(null!=c.fileSize?" "+b.formatFileSize(parseInt(c.fileSize)):"")+(null!=c.lastModifyingUserName?" "+c.lastModifyingUserName:""));mxEvent.addListener(g,"click",function(b){B!=c&&(v.stop(),null!=z&&(z.style.backgroundColor=""),B=c,z=g,z.style.backgroundColor=Editor.isDarkMode()?"#000000":"#ebf2f9",C=y=null,K.removeAttribute("title"),K.innerHTML=mxUtils.htmlEntities(mxResources.get("loading")+
-"..."),k.style.backgroundColor=f.defaultPageBackgroundColor,n.innerHTML="",f.getModel().clear(),N.setAttribute("disabled","disabled"),P.setAttribute("disabled","disabled"),E.setAttribute("disabled","disabled"),D.setAttribute("disabled","disabled"),G.setAttribute("disabled","disabled"),F.setAttribute("disabled","disabled"),I.setAttribute("disabled","disabled"),W.setAttribute("disabled","disabled"),L.setAttribute("disabled","disabled"),M.setAttribute("disabled","disabled"),mxUtils.setOpacity(E,20),
-mxUtils.setOpacity(D,20),mxUtils.setOpacity(F,20),mxUtils.setOpacity(G,20),mxUtils.setOpacity(I,20),v.spin(k),c.getXml(function(b){if(B==c)try{q(b)}catch(U){K.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+": "+U.message)}},function(b){v.stop();M.style.display="none";M.innerHTML="";K.innerHTML="";mxUtils.write(K,mxResources.get("errorLoadingFile"));mxUtils.write(n,mxResources.get("errorLoadingFile"))}),mxEvent.consume(b))});mxEvent.addListener(g,"dblclick",function(b){L.click();window.getSelection?
-window.getSelection().removeAllRanges():document.selection&&document.selection.empty();mxEvent.consume(b)},!1);pa.appendChild(g)}return g}(e[t]);null!=V&&t==e.length-1&&(S=V)}da.appendChild(pa);g.appendChild(da)}else null==u||null==b.drive&&u.constructor==window.DriveFile||null==b.dropbox&&u.constructor==window.DropboxFile?(k.style.display="none",O.style.display="none",mxUtils.write(g,mxResources.get("notAvailable"))):(k.style.display="none",O.style.display="none",mxUtils.write(g,mxResources.get("noRevisions")));
-this.init=function(){null!=S&&S.click()};g=mxUtils.button(mxResources.get("close"),function(){b.hideDialog()});g.className="geBtn";O.appendChild(M);O.appendChild(E);O.appendChild(D);O.appendChild(G);O.appendChild(F);O.appendChild(I);b.editor.cancelFirst?(x.appendChild(g),x.appendChild(P),x.appendChild(W),x.appendChild(N),x.appendChild(L)):(x.appendChild(P),x.appendChild(W),x.appendChild(N),x.appendChild(L),x.appendChild(g));c.appendChild(x);c.appendChild(O);c.appendChild(K);this.container=c},DraftDialog=
+document.createElement("option"),mxUtils.write(q,m[e].getAttribute("name")||mxResources.get("pageWithNumber",[e+1])),q.setAttribute("value",e),e==p&&q.setAttribute("selected","selected"),M.appendChild(q);W=function(){try{var c=parseInt(M.value);p=l=c;x(m[c])}catch(ra){M.value=l,b.handleError(ra)}}}else A(t);e=c.lastModifyingUserName;null!=e&&20<e.length&&(e=e.substring(0,20)+"...");I.innerHTML="";mxUtils.write(I,(null!=e?e+" ":"")+d.toLocaleDateString()+" "+d.toLocaleTimeString());I.setAttribute("title",
+g.getAttribute("title"));G.removeAttribute("disabled");D.removeAttribute("disabled");E.removeAttribute("disabled");F.removeAttribute("disabled");J.removeAttribute("disabled");null!=u&&u.isRestricted()||(b.editor.graph.isEnabled()&&P.removeAttribute("disabled"),S.removeAttribute("disabled"),L.removeAttribute("disabled"),X.removeAttribute("disabled"));mxUtils.setOpacity(G,60);mxUtils.setOpacity(D,60);mxUtils.setOpacity(E,60);mxUtils.setOpacity(F,60);mxUtils.setOpacity(J,60)}else M.style.display="none",
+M.innerHTML="",I.innerHTML="",mxUtils.write(I,mxResources.get("errorLoadingFile")),mxUtils.write(n,mxResources.get("errorLoadingFile"))},g=document.createElement("tr");g.style.borderBottom="1px solid lightGray";g.style.fontSize="12px";g.style.cursor="pointer";var t=document.createElement("td");t.style.padding="6px";t.style.whiteSpace="nowrap";c==e[e.length-1]?mxUtils.write(t,mxResources.get("current")):d.toDateString()===ea?mxUtils.write(t,d.toLocaleTimeString()):mxUtils.write(t,d.toLocaleDateString()+
+" "+d.toLocaleTimeString());g.appendChild(t);g.setAttribute("title",d.toLocaleDateString()+" "+d.toLocaleTimeString()+(null!=c.fileSize?" "+b.formatFileSize(parseInt(c.fileSize)):"")+(null!=c.lastModifyingUserName?" "+c.lastModifyingUserName:""));mxEvent.addListener(g,"click",function(b){B!=c&&(v.stop(),null!=z&&(z.style.backgroundColor=""),B=c,z=g,z.style.backgroundColor=Editor.isDarkMode()?"#000000":"#ebf2f9",C=y=null,I.removeAttribute("title"),I.innerHTML=mxUtils.htmlEntities(mxResources.get("loading")+
+"..."),k.style.backgroundColor=f.defaultPageBackgroundColor,n.innerHTML="",f.getModel().clear(),P.setAttribute("disabled","disabled"),S.setAttribute("disabled","disabled"),G.setAttribute("disabled","disabled"),D.setAttribute("disabled","disabled"),F.setAttribute("disabled","disabled"),E.setAttribute("disabled","disabled"),J.setAttribute("disabled","disabled"),X.setAttribute("disabled","disabled"),L.setAttribute("disabled","disabled"),M.setAttribute("disabled","disabled"),mxUtils.setOpacity(G,20),
+mxUtils.setOpacity(D,20),mxUtils.setOpacity(E,20),mxUtils.setOpacity(F,20),mxUtils.setOpacity(J,20),v.spin(k),c.getXml(function(b){if(B==c)try{q(b)}catch(fa){I.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+": "+fa.message)}},function(b){v.stop();M.style.display="none";M.innerHTML="";I.innerHTML="";mxUtils.write(I,mxResources.get("errorLoadingFile"));mxUtils.write(n,mxResources.get("errorLoadingFile"))}),mxEvent.consume(b))});mxEvent.addListener(g,"dblclick",function(b){L.click();window.getSelection?
+window.getSelection().removeAllRanges():document.selection&&document.selection.empty();mxEvent.consume(b)},!1);oa.appendChild(g)}return g}(e[t]);null!=N&&t==e.length-1&&(T=N)}da.appendChild(oa);g.appendChild(da)}else null==u||null==b.drive&&u.constructor==window.DriveFile||null==b.dropbox&&u.constructor==window.DropboxFile?(k.style.display="none",Q.style.display="none",mxUtils.write(g,mxResources.get("notAvailable"))):(k.style.display="none",Q.style.display="none",mxUtils.write(g,mxResources.get("noRevisions")));
+this.init=function(){null!=T&&T.click()};g=mxUtils.button(mxResources.get("close"),function(){b.hideDialog()});g.className="geBtn";Q.appendChild(M);Q.appendChild(G);Q.appendChild(D);Q.appendChild(F);Q.appendChild(E);Q.appendChild(J);b.editor.cancelFirst?(x.appendChild(g),x.appendChild(S),x.appendChild(X),x.appendChild(P),x.appendChild(L)):(x.appendChild(S),x.appendChild(X),x.appendChild(P),x.appendChild(L),x.appendChild(g));c.appendChild(x);c.appendChild(Q);c.appendChild(I);this.container=c},DraftDialog=
function(b,e,d,c,g,k,n,f,l){var m=document.createElement("div"),p=document.createElement("div");p.style.marginTop="0px";p.style.whiteSpace="nowrap";p.style.overflow="auto";p.style.lineHeight="normal";mxUtils.write(p,e);m.appendChild(p);var q=document.createElement("select"),t=mxUtils.bind(this,function(){B=mxUtils.parseXml(l[q.value].data);y=b.editor.extractGraphModel(B.documentElement,!0);C=0;this.init()});if(null!=l){q.style.marginLeft="4px";for(e=0;e<l.length;e++){var v=document.createElement("option");
v.setAttribute("value",e);var u=new Date(l[e].created),x=new Date(l[e].modified);mxUtils.write(v,u.toLocaleDateString()+" "+u.toLocaleTimeString()+" - "+(u.toDateString(),x.toDateString(),x.toLocaleDateString())+" "+x.toLocaleTimeString());q.appendChild(v)}p.appendChild(q);mxEvent.addListener(q,"change",t)}null==d&&(d=l[0].data);var A=document.createElement("div");A.style.position="absolute";A.style.border="1px solid lightGray";A.style.marginTop="10px";A.style.left="40px";A.style.right="40px";A.style.top=
-"46px";A.style.bottom="74px";A.style.overflow="hidden";mxEvent.disableContextMenu(A);m.appendChild(A);var z=new Graph(A);z.setEnabled(!1);z.setPanning(!0);z.panningHandler.ignoreCell=!0;z.panningHandler.useLeftButtonForPanning=!0;z.minFitScale=null;z.maxFitScale=null;z.centerZoom=!0;var B=mxUtils.parseXml(d),y=b.editor.extractGraphModel(B.documentElement,!0),C=0,E=null,D=z.getGlobalVariable;z.getGlobalVariable=function(b){return"page"==b&&null!=E&&null!=E[C]?E[C].getAttribute("name"):"pagenumber"==
-b?C+1:"pagecount"==b?null!=E?E.length:1:D.apply(this,arguments)};z.getLinkForCell=function(){return null};d=mxUtils.button("",function(){z.zoomIn()});d.className="geSprite geSprite-zoomin";d.setAttribute("title",mxResources.get("zoomIn"));d.style.outline="none";d.style.border="none";d.style.margin="2px";mxUtils.setOpacity(d,60);p=mxUtils.button("",function(){z.zoomOut()});p.className="geSprite geSprite-zoomout";p.setAttribute("title",mxResources.get("zoomOut"));p.style.outline="none";p.style.border=
+"46px";A.style.bottom="74px";A.style.overflow="hidden";mxEvent.disableContextMenu(A);m.appendChild(A);var z=new Graph(A);z.setEnabled(!1);z.setPanning(!0);z.panningHandler.ignoreCell=!0;z.panningHandler.useLeftButtonForPanning=!0;z.minFitScale=null;z.maxFitScale=null;z.centerZoom=!0;var B=mxUtils.parseXml(d),y=b.editor.extractGraphModel(B.documentElement,!0),C=0,G=null,D=z.getGlobalVariable;z.getGlobalVariable=function(b){return"page"==b&&null!=G&&null!=G[C]?G[C].getAttribute("name"):"pagenumber"==
+b?C+1:"pagecount"==b?null!=G?G.length:1:D.apply(this,arguments)};z.getLinkForCell=function(){return null};d=mxUtils.button("",function(){z.zoomIn()});d.className="geSprite geSprite-zoomin";d.setAttribute("title",mxResources.get("zoomIn"));d.style.outline="none";d.style.border="none";d.style.margin="2px";mxUtils.setOpacity(d,60);p=mxUtils.button("",function(){z.zoomOut()});p.className="geSprite geSprite-zoomout";p.setAttribute("title",mxResources.get("zoomOut"));p.style.outline="none";p.style.border=
"none";p.style.margin="2px";mxUtils.setOpacity(p,60);e=mxUtils.button("",function(){z.maxFitScale=8;z.fit(8);z.center()});e.className="geSprite geSprite-fit";e.setAttribute("title",mxResources.get("fit"));e.style.outline="none";e.style.border="none";e.style.margin="2px";mxUtils.setOpacity(e,60);v=mxUtils.button("",function(){z.zoomActual();z.center()});v.className="geSprite geSprite-actualsize";v.setAttribute("title",mxResources.get("actualSize"));v.style.outline="none";v.style.border="none";v.style.margin=
-"2px";mxUtils.setOpacity(v,60);n=mxUtils.button(n||mxResources.get("discard"),function(){g.apply(this,[q.value,mxUtils.bind(this,function(){null!=q.parentNode&&(q.options[q.selectedIndex].parentNode.removeChild(q.options[q.selectedIndex]),0<q.options.length?(q.value=q.options[0].value,t()):b.hideDialog(!0))})])});n.className="geBtn";var F=document.createElement("select");F.style.maxWidth="80px";F.style.position="relative";F.style.top="-2px";F.style.verticalAlign="bottom";F.style.marginRight="6px";
-F.style.display="none";k=mxUtils.button(k||mxResources.get("edit"),function(){c.apply(this,[q.value])});k.className="geBtn gePrimaryBtn";u=document.createElement("div");u.style.position="absolute";u.style.bottom="30px";u.style.right="40px";u.style.textAlign="right";x=document.createElement("div");x.className="geToolbarContainer";x.style.cssText="box-shadow:none !important;background-color:transparent;padding:2px;border-style:none !important;bottom:30px;";this.init=function(){function b(b){if(null!=
-b){var c=b.getAttribute("background");if(null==c||""==c||c==mxConstants.NONE)c=Editor.isDarkMode()?"transparent":"#ffffff";A.style.backgroundColor=c;(new mxCodec(b.ownerDocument)).decode(b,z.getModel());z.maxFitScale=1;z.fit(8);z.center()}return b}function c(c){null!=c&&(c=b(Editor.parseDiagramNode(c)));return c}mxEvent.addListener(F,"change",function(b){C=parseInt(F.value);c(E[C]);mxEvent.consume(b)});if("mxfile"==y.nodeName){var f=y.getElementsByTagName("diagram");E=[];for(var d=0;d<f.length;d++)E.push(f[d]);
-0<E.length&&c(E[C]);F.innerHTML="";if(1<E.length)for(F.style.display="",d=0;d<E.length;d++)f=document.createElement("option"),mxUtils.write(f,E[d].getAttribute("name")||mxResources.get("pageWithNumber",[d+1])),f.setAttribute("value",d),d==C&&f.setAttribute("selected","selected"),F.appendChild(f);else F.style.display="none"}else b(y)};x.appendChild(F);x.appendChild(d);x.appendChild(p);x.appendChild(v);x.appendChild(e);d=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});d.className=
+"2px";mxUtils.setOpacity(v,60);n=mxUtils.button(n||mxResources.get("discard"),function(){g.apply(this,[q.value,mxUtils.bind(this,function(){null!=q.parentNode&&(q.options[q.selectedIndex].parentNode.removeChild(q.options[q.selectedIndex]),0<q.options.length?(q.value=q.options[0].value,t()):b.hideDialog(!0))})])});n.className="geBtn";var E=document.createElement("select");E.style.maxWidth="80px";E.style.position="relative";E.style.top="-2px";E.style.verticalAlign="bottom";E.style.marginRight="6px";
+E.style.display="none";k=mxUtils.button(k||mxResources.get("edit"),function(){c.apply(this,[q.value])});k.className="geBtn gePrimaryBtn";u=document.createElement("div");u.style.position="absolute";u.style.bottom="30px";u.style.right="40px";u.style.textAlign="right";x=document.createElement("div");x.className="geToolbarContainer";x.style.cssText="box-shadow:none !important;background-color:transparent;padding:2px;border-style:none !important;bottom:30px;";this.init=function(){function b(b){if(null!=
+b){var c=b.getAttribute("background");if(null==c||""==c||c==mxConstants.NONE)c=Editor.isDarkMode()?"transparent":"#ffffff";A.style.backgroundColor=c;(new mxCodec(b.ownerDocument)).decode(b,z.getModel());z.maxFitScale=1;z.fit(8);z.center()}return b}function c(c){null!=c&&(c=b(Editor.parseDiagramNode(c)));return c}mxEvent.addListener(E,"change",function(b){C=parseInt(E.value);c(G[C]);mxEvent.consume(b)});if("mxfile"==y.nodeName){var f=y.getElementsByTagName("diagram");G=[];for(var d=0;d<f.length;d++)G.push(f[d]);
+0<G.length&&c(G[C]);E.innerHTML="";if(1<G.length)for(E.style.display="",d=0;d<G.length;d++)f=document.createElement("option"),mxUtils.write(f,G[d].getAttribute("name")||mxResources.get("pageWithNumber",[d+1])),f.setAttribute("value",d),d==C&&f.setAttribute("selected","selected"),E.appendChild(f);else E.style.display="none"}else b(y)};x.appendChild(E);x.appendChild(d);x.appendChild(p);x.appendChild(v);x.appendChild(e);d=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});d.className=
"geBtn";f=null!=f?mxUtils.button(mxResources.get("ignore"),f):null;null!=f&&(f.className="geBtn");b.editor.cancelFirst?(u.appendChild(d),null!=f&&u.appendChild(f),u.appendChild(n),u.appendChild(k)):(u.appendChild(k),u.appendChild(n),null!=f&&u.appendChild(f),u.appendChild(d));m.appendChild(u);m.appendChild(x);this.container=m},FindWindow=function(b,e,d,c,g,k){function n(b,c,f,d){if("object"===typeof c.value&&null!=c.value.attributes){c=c.value.attributes;for(var e=0;e<c.length;e++)if("label"!=c[e].nodeName){var l=
-mxUtils.trim(c[e].nodeValue.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();if(null==b&&(d&&0<=l.indexOf(f)||!d&&l.substring(0,f.length)===f)||null!=b&&b.test(l))return!0}}return!1}function f(){v&&E.value?(P.removeAttribute("disabled"),N.removeAttribute("disabled")):(P.setAttribute("disabled","disabled"),N.setAttribute("disabled","disabled"));E.value&&C.value?M.removeAttribute("disabled"):M.setAttribute("disabled","disabled")}function l(c,d,e){H.innerHTML="";var m=p.model.getDescendants(p.model.getRoot()),
-g=C.value.toLowerCase(),L=D.checked?new RegExp(g):null,y=null;x=null;q!=g&&(q=g,t=null,u=!1);var O=null==t;if(0<g.length){if(u){u=!1;for(var z,K=0;K<b.pages.length;K++)if(b.currentPage==b.pages[K]){z=K;break}c=(z+1)%b.pages.length;t=null;do u=!1,m=b.pages[c],p=b.createTemporaryGraph(p.getStylesheet()),b.updatePageRoot(m),p.model.setRoot(m.root),c=(c+1)%b.pages.length;while(!l(!0,d,e)&&c!=z);t&&(t=null,e?b.editor.graph.model.execute(new SelectPage(b,m)):b.selectPage(m));u=!1;p=b.editor.graph;return l(!0,
-d,e)}for(K=0;K<m.length;K++){z=p.view.getState(m[K]);d&&null!=L&&(O=O||z==t);if(null!=z&&null!=z.cell.value&&(O||null==y)&&(p.model.isVertex(z.cell)||p.model.isEdge(z.cell))){null!=z.style&&"1"==z.style.html?(G.innerHTML=p.sanitizeHtml(p.getLabel(z.cell)),label=mxUtils.extractTextWithWhitespace([G])):label=p.getLabel(z.cell);label=mxUtils.trim(label.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();var J=0;d&&k&&null!=L&&z==t&&(label=label.substr(A),J=A);var I=""==E.value,B=I;if(null==L&&(B&&
-0<=label.indexOf(g)||!B&&label.substring(0,g.length)===g||I&&n(L,z.cell,g,B))||null!=L&&(L.test(label)||I&&n(L,z.cell,g,B)))if(k&&(null!=L?(I=label.match(L),x=I[0].toLowerCase(),A=J+I.index+x.length):(x=g,A=x.length)),O){y=z;break}else null==y&&(y=z)}O=O||z==t}}if(null!=y){if(K==m.length&&F.checked)return t=null,u=!0,l(!0,d,e);t=y;p.scrollCellToVisible(t.cell);p.isEnabled()&&!p.isCellLocked(t.cell)?e||p.getSelectionCell()==t.cell&&1==p.getSelectionCount()||p.setSelectionCell(t.cell):p.highlightCell(t.cell)}else{if(!c&&
-F.checked)return u=!0,l(!0,d,e);p.isEnabled()&&!e&&p.clearSelection()}v=null!=y;k&&!c&&f();return 0==g.length||null!=y}var m=b.actions.get("findReplace"),p=b.editor.graph,q=null,t=null,v=!1,u=!1,x=null,A=0,z=1,B=document.createElement("div");B.style.userSelect="none";B.style.overflow="hidden";B.style.padding="10px";B.style.height="100%";var y=k?"260px":"200px",C=document.createElement("input");C.setAttribute("placeholder",mxResources.get("find"));C.setAttribute("type","text");C.style.marginTop="4px";
-C.style.marginBottom="6px";C.style.width=y;C.style.fontSize="12px";C.style.borderRadius="4px";C.style.padding="6px";B.appendChild(C);mxUtils.br(B);var E;k&&(E=document.createElement("input"),E.setAttribute("placeholder",mxResources.get("replaceWith")),E.setAttribute("type","text"),E.style.marginTop="4px",E.style.marginBottom="6px",E.style.width=y,E.style.fontSize="12px",E.style.borderRadius="4px",E.style.padding="6px",B.appendChild(E),mxUtils.br(B),mxEvent.addListener(E,"input",f));var D=document.createElement("input");
-D.setAttribute("id","geFindWinRegExChck");D.setAttribute("type","checkbox");D.style.marginRight="4px";B.appendChild(D);y=document.createElement("label");y.setAttribute("for","geFindWinRegExChck");B.appendChild(y);mxUtils.write(y,mxResources.get("regularExpression"));B.appendChild(y);y=b.menus.createHelpLink("https://www.diagrams.net/doc/faq/find-shapes");y.style.position="relative";y.style.marginLeft="6px";y.style.top="-1px";B.appendChild(y);mxUtils.br(B);var F=document.createElement("input");F.setAttribute("id",
-"geFindWinAllPagesChck");F.setAttribute("type","checkbox");F.style.marginRight="4px";B.appendChild(F);y=document.createElement("label");y.setAttribute("for","geFindWinAllPagesChck");B.appendChild(y);mxUtils.write(y,mxResources.get("allPages"));B.appendChild(y);var G=document.createElement("div");mxUtils.br(B);y=document.createElement("div");y.style.left="0px";y.style.right="0px";y.style.marginTop="6px";y.style.padding="0 6px 0 6px";y.style.textAlign="center";B.appendChild(y);var I=mxUtils.button(mxResources.get("reset"),
-function(){H.innerHTML="";C.value="";C.style.backgroundColor="";k&&(E.value="",f());q=t=null;u=!1;C.focus()});I.setAttribute("title",mxResources.get("reset"));I.style["float"]="none";I.style.width="120px";I.style.marginTop="6px";I.style.marginLeft="8px";I.style.overflow="hidden";I.style.textOverflow="ellipsis";I.className="geBtn";k||y.appendChild(I);var J=mxUtils.button(mxResources.get("find"),function(){try{C.style.backgroundColor=l()?"":Editor.isDarkMode()?"#ff0000":"#ffcfcf"}catch(W){b.handleError(W)}});
-J.setAttribute("title",mxResources.get("find")+" (Enter)");J.style["float"]="none";J.style.width="120px";J.style.marginTop="6px";J.style.marginLeft="8px";J.style.overflow="hidden";J.style.textOverflow="ellipsis";J.className="geBtn gePrimaryBtn";y.appendChild(J);var H=document.createElement("div");H.style.marginTop="10px";if(k){var K=function(b,c,f,d,e){if(null==e||"1"!=e.html)return d=b.toLowerCase().indexOf(c,d),0>d?b:b.substr(0,d)+f+b.substr(d+c.length);var l=b;c=mxUtils.htmlEntities(c);e=[];var m=
--1;for(b=b.replace(/<br>/ig,"\n");-1<(m=b.indexOf("<",m+1));)e.push(m);m=b.match(/<[^>]*>/g);b=b.replace(/<[^>]*>/g,"");d=b.toLowerCase().indexOf(c,d);if(0>d)return l;l=d+c.length;f=mxUtils.htmlEntities(f);b=b.substr(0,d)+f+b.substr(l);for(var g=0,p=0;p<e.length;p++){if(e[p]-g<d)b=b.substr(0,e[p])+m[p]+b.substr(e[p]);else{var k=e[p]-g<l?d+g:e[p]+(f.length-c.length);b=b.substr(0,k)+m[p]+b.substr(k)}g+=m[p].length}return b.replace(/\n/g,"<br>")},P=mxUtils.button(mxResources.get("replFind"),function(){try{if(null!=
-x&&null!=t&&E.value){var c=t.cell,f=p.getLabel(c);p.isCellEditable(c)&&p.model.setValue(c,K(f,x,E.value,A-x.length,p.getCurrentCellStyle(c)));C.style.backgroundColor=l(!1,!0)?"":Editor.isDarkMode()?"#ff0000":"#ffcfcf"}}catch(O){b.handleError(O)}});P.setAttribute("title",mxResources.get("replFind"));P.style["float"]="none";P.style.width="120px";P.style.marginTop="6px";P.style.marginLeft="8px";P.style.overflow="hidden";P.style.textOverflow="ellipsis";P.className="geBtn gePrimaryBtn";P.setAttribute("disabled",
-"disabled");y.appendChild(P);mxUtils.br(y);var N=mxUtils.button(mxResources.get("replace"),function(){try{if(null!=x&&null!=t&&E.value){var c=t.cell,f=p.getLabel(c);p.model.setValue(c,K(f,x,E.value,A-x.length,p.getCurrentCellStyle(c)));P.setAttribute("disabled","disabled");N.setAttribute("disabled","disabled")}}catch(O){b.handleError(O)}});N.setAttribute("title",mxResources.get("replace"));N.style["float"]="none";N.style.width="120px";N.style.marginTop="6px";N.style.marginLeft="8px";N.style.overflow=
-"hidden";N.style.textOverflow="ellipsis";N.className="geBtn gePrimaryBtn";N.setAttribute("disabled","disabled");y.appendChild(N);var M=mxUtils.button(mxResources.get("replaceAll"),function(){H.innerHTML="";if(E.value){var c=b.currentPage,f=b.editor.graph.getSelectionCells();b.editor.graph.rendering=!1;p.getModel().beginUpdate();try{for(var d=0,e={};l(!1,!0,!0)&&100>d;){var m=t.cell,g=p.getLabel(m),k=e[m.id];if(k&&k.replAllMrk==z&&k.replAllPos>=A)break;e[m.id]={replAllMrk:z,replAllPos:A};p.isCellEditable(m)&&
-(p.model.setValue(m,K(g,x,E.value,A-x.length,p.getCurrentCellStyle(m))),d++)}c!=b.currentPage&&b.editor.graph.model.execute(new SelectPage(b,c));mxUtils.write(H,mxResources.get("matchesRepl",[d]))}catch(V){b.handleError(V)}finally{p.getModel().endUpdate(),b.editor.graph.setSelectionCells(f),b.editor.graph.rendering=!0}z++}});M.setAttribute("title",mxResources.get("replaceAll"));M.style["float"]="none";M.style.width="120px";M.style.marginTop="6px";M.style.marginLeft="8px";M.style.overflow="hidden";
-M.style.textOverflow="ellipsis";M.className="geBtn gePrimaryBtn";M.setAttribute("disabled","disabled");y.appendChild(M);mxUtils.br(y);y.appendChild(I);I=mxUtils.button(mxResources.get("close"),mxUtils.bind(this,function(){this.window.setVisible(!1)}));I.setAttribute("title",mxResources.get("close"));I.style["float"]="none";I.style.width="120px";I.style.marginTop="6px";I.style.marginLeft="8px";I.style.overflow="hidden";I.style.textOverflow="ellipsis";I.className="geBtn";y.appendChild(I);mxUtils.br(y);
-y.appendChild(H)}else I.style.width="90px",J.style.width="90px";mxEvent.addListener(C,"keyup",function(b){if(91==b.keyCode||93==b.keyCode||17==b.keyCode)mxEvent.consume(b);else if(27==b.keyCode)m.funct();else if(q!=C.value.toLowerCase()||13==b.keyCode)try{C.style.backgroundColor=l()?"":Editor.isDarkMode()?"#ff0000":"#ffcfcf"}catch(L){C.style.backgroundColor=Editor.isDarkMode()?"#ff0000":"#ffcfcf"}});mxEvent.addListener(B,"keydown",function(c){70==c.keyCode&&b.keyHandler.isControlDown(c)&&!mxEvent.isShiftDown(c)&&
+mxUtils.trim(c[e].nodeValue.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();if(null==b&&(d&&0<=l.indexOf(f)||!d&&l.substring(0,f.length)===f)||null!=b&&b.test(l))return!0}}return!1}function f(){v&&G.value?(S.removeAttribute("disabled"),P.removeAttribute("disabled")):(S.setAttribute("disabled","disabled"),P.setAttribute("disabled","disabled"));G.value&&C.value?M.removeAttribute("disabled"):M.setAttribute("disabled","disabled")}function l(c,d,e){H.innerHTML="";var m=p.model.getDescendants(p.model.getRoot()),
+g=C.value.toLowerCase(),L=D.checked?new RegExp(g):null,y=null;x=null;q!=g&&(q=g,t=null,u=!1);var Q=null==t;if(0<g.length){if(u){u=!1;for(var z,I=0;I<b.pages.length;I++)if(b.currentPage==b.pages[I]){z=I;break}c=(z+1)%b.pages.length;t=null;do u=!1,m=b.pages[c],p=b.createTemporaryGraph(p.getStylesheet()),b.updatePageRoot(m),p.model.setRoot(m.root),c=(c+1)%b.pages.length;while(!l(!0,d,e)&&c!=z);t&&(t=null,e?b.editor.graph.model.execute(new SelectPage(b,m)):b.selectPage(m));u=!1;p=b.editor.graph;return l(!0,
+d,e)}for(I=0;I<m.length;I++){z=p.view.getState(m[I]);d&&null!=L&&(Q=Q||z==t);if(null!=z&&null!=z.cell.value&&(Q||null==y)&&(p.model.isVertex(z.cell)||p.model.isEdge(z.cell))){null!=z.style&&"1"==z.style.html?(F.innerHTML=p.sanitizeHtml(p.getLabel(z.cell)),label=mxUtils.extractTextWithWhitespace([F])):label=p.getLabel(z.cell);label=mxUtils.trim(label.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();var J=0;d&&k&&null!=L&&z==t&&(label=label.substr(A),J=A);var K=""==G.value,B=K;if(null==L&&(B&&
+0<=label.indexOf(g)||!B&&label.substring(0,g.length)===g||K&&n(L,z.cell,g,B))||null!=L&&(L.test(label)||K&&n(L,z.cell,g,B)))if(k&&(null!=L?(K=label.match(L),x=K[0].toLowerCase(),A=J+K.index+x.length):(x=g,A=x.length)),Q){y=z;break}else null==y&&(y=z)}Q=Q||z==t}}if(null!=y){if(I==m.length&&E.checked)return t=null,u=!0,l(!0,d,e);t=y;p.scrollCellToVisible(t.cell);p.isEnabled()&&!p.isCellLocked(t.cell)?e||p.getSelectionCell()==t.cell&&1==p.getSelectionCount()||p.setSelectionCell(t.cell):p.highlightCell(t.cell)}else{if(!c&&
+E.checked)return u=!0,l(!0,d,e);p.isEnabled()&&!e&&p.clearSelection()}v=null!=y;k&&!c&&f();return 0==g.length||null!=y}var m=b.actions.get("findReplace"),p=b.editor.graph,q=null,t=null,v=!1,u=!1,x=null,A=0,z=1,B=document.createElement("div");B.style.userSelect="none";B.style.overflow="hidden";B.style.padding="10px";B.style.height="100%";var y=k?"260px":"200px",C=document.createElement("input");C.setAttribute("placeholder",mxResources.get("find"));C.setAttribute("type","text");C.style.marginTop="4px";
+C.style.marginBottom="6px";C.style.width=y;C.style.fontSize="12px";C.style.borderRadius="4px";C.style.padding="6px";B.appendChild(C);mxUtils.br(B);var G;k&&(G=document.createElement("input"),G.setAttribute("placeholder",mxResources.get("replaceWith")),G.setAttribute("type","text"),G.style.marginTop="4px",G.style.marginBottom="6px",G.style.width=y,G.style.fontSize="12px",G.style.borderRadius="4px",G.style.padding="6px",B.appendChild(G),mxUtils.br(B),mxEvent.addListener(G,"input",f));var D=document.createElement("input");
+D.setAttribute("id","geFindWinRegExChck");D.setAttribute("type","checkbox");D.style.marginRight="4px";B.appendChild(D);y=document.createElement("label");y.setAttribute("for","geFindWinRegExChck");B.appendChild(y);mxUtils.write(y,mxResources.get("regularExpression"));B.appendChild(y);y=b.menus.createHelpLink("https://www.diagrams.net/doc/faq/find-shapes");y.style.position="relative";y.style.marginLeft="6px";y.style.top="-1px";B.appendChild(y);mxUtils.br(B);var E=document.createElement("input");E.setAttribute("id",
+"geFindWinAllPagesChck");E.setAttribute("type","checkbox");E.style.marginRight="4px";B.appendChild(E);y=document.createElement("label");y.setAttribute("for","geFindWinAllPagesChck");B.appendChild(y);mxUtils.write(y,mxResources.get("allPages"));B.appendChild(y);var F=document.createElement("div");mxUtils.br(B);y=document.createElement("div");y.style.left="0px";y.style.right="0px";y.style.marginTop="6px";y.style.padding="0 6px 0 6px";y.style.textAlign="center";B.appendChild(y);var J=mxUtils.button(mxResources.get("reset"),
+function(){H.innerHTML="";C.value="";C.style.backgroundColor="";k&&(G.value="",f());q=t=null;u=!1;C.focus()});J.setAttribute("title",mxResources.get("reset"));J.style["float"]="none";J.style.width="120px";J.style.marginTop="6px";J.style.marginLeft="8px";J.style.overflow="hidden";J.style.textOverflow="ellipsis";J.className="geBtn";k||y.appendChild(J);var K=mxUtils.button(mxResources.get("find"),function(){try{C.style.backgroundColor=l()?"":Editor.isDarkMode()?"#ff0000":"#ffcfcf"}catch(X){b.handleError(X)}});
+K.setAttribute("title",mxResources.get("find")+" (Enter)");K.style["float"]="none";K.style.width="120px";K.style.marginTop="6px";K.style.marginLeft="8px";K.style.overflow="hidden";K.style.textOverflow="ellipsis";K.className="geBtn gePrimaryBtn";y.appendChild(K);var H=document.createElement("div");H.style.marginTop="10px";if(k){var I=function(b,c,f,d,e){if(null==e||"1"!=e.html)return d=b.toLowerCase().indexOf(c,d),0>d?b:b.substr(0,d)+f+b.substr(d+c.length);var l=b;c=mxUtils.htmlEntities(c);e=[];var m=
+-1;for(b=b.replace(/<br>/ig,"\n");-1<(m=b.indexOf("<",m+1));)e.push(m);m=b.match(/<[^>]*>/g);b=b.replace(/<[^>]*>/g,"");d=b.toLowerCase().indexOf(c,d);if(0>d)return l;l=d+c.length;f=mxUtils.htmlEntities(f);b=b.substr(0,d)+f+b.substr(l);for(var g=0,p=0;p<e.length;p++){if(e[p]-g<d)b=b.substr(0,e[p])+m[p]+b.substr(e[p]);else{var k=e[p]-g<l?d+g:e[p]+(f.length-c.length);b=b.substr(0,k)+m[p]+b.substr(k)}g+=m[p].length}return b.replace(/\n/g,"<br>")},S=mxUtils.button(mxResources.get("replFind"),function(){try{if(null!=
+x&&null!=t&&G.value){var c=t.cell,f=p.getLabel(c);p.isCellEditable(c)&&p.model.setValue(c,I(f,x,G.value,A-x.length,p.getCurrentCellStyle(c)));C.style.backgroundColor=l(!1,!0)?"":Editor.isDarkMode()?"#ff0000":"#ffcfcf"}}catch(Q){b.handleError(Q)}});S.setAttribute("title",mxResources.get("replFind"));S.style["float"]="none";S.style.width="120px";S.style.marginTop="6px";S.style.marginLeft="8px";S.style.overflow="hidden";S.style.textOverflow="ellipsis";S.className="geBtn gePrimaryBtn";S.setAttribute("disabled",
+"disabled");y.appendChild(S);mxUtils.br(y);var P=mxUtils.button(mxResources.get("replace"),function(){try{if(null!=x&&null!=t&&G.value){var c=t.cell,f=p.getLabel(c);p.model.setValue(c,I(f,x,G.value,A-x.length,p.getCurrentCellStyle(c)));S.setAttribute("disabled","disabled");P.setAttribute("disabled","disabled")}}catch(Q){b.handleError(Q)}});P.setAttribute("title",mxResources.get("replace"));P.style["float"]="none";P.style.width="120px";P.style.marginTop="6px";P.style.marginLeft="8px";P.style.overflow=
+"hidden";P.style.textOverflow="ellipsis";P.className="geBtn gePrimaryBtn";P.setAttribute("disabled","disabled");y.appendChild(P);var M=mxUtils.button(mxResources.get("replaceAll"),function(){H.innerHTML="";if(G.value){var c=b.currentPage,f=b.editor.graph.getSelectionCells();b.editor.graph.rendering=!1;p.getModel().beginUpdate();try{for(var d=0,e={};l(!1,!0,!0)&&100>d;){var m=t.cell,g=p.getLabel(m),k=e[m.id];if(k&&k.replAllMrk==z&&k.replAllPos>=A)break;e[m.id]={replAllMrk:z,replAllPos:A};p.isCellEditable(m)&&
+(p.model.setValue(m,I(g,x,G.value,A-x.length,p.getCurrentCellStyle(m))),d++)}c!=b.currentPage&&b.editor.graph.model.execute(new SelectPage(b,c));mxUtils.write(H,mxResources.get("matchesRepl",[d]))}catch(N){b.handleError(N)}finally{p.getModel().endUpdate(),b.editor.graph.setSelectionCells(f),b.editor.graph.rendering=!0}z++}});M.setAttribute("title",mxResources.get("replaceAll"));M.style["float"]="none";M.style.width="120px";M.style.marginTop="6px";M.style.marginLeft="8px";M.style.overflow="hidden";
+M.style.textOverflow="ellipsis";M.className="geBtn gePrimaryBtn";M.setAttribute("disabled","disabled");y.appendChild(M);mxUtils.br(y);y.appendChild(J);J=mxUtils.button(mxResources.get("close"),mxUtils.bind(this,function(){this.window.setVisible(!1)}));J.setAttribute("title",mxResources.get("close"));J.style["float"]="none";J.style.width="120px";J.style.marginTop="6px";J.style.marginLeft="8px";J.style.overflow="hidden";J.style.textOverflow="ellipsis";J.className="geBtn";y.appendChild(J);mxUtils.br(y);
+y.appendChild(H)}else J.style.width="90px",K.style.width="90px";mxEvent.addListener(C,"keyup",function(b){if(91==b.keyCode||93==b.keyCode||17==b.keyCode)mxEvent.consume(b);else if(27==b.keyCode)m.funct();else if(q!=C.value.toLowerCase()||13==b.keyCode)try{C.style.backgroundColor=l()?"":Editor.isDarkMode()?"#ff0000":"#ffcfcf"}catch(L){C.style.backgroundColor=Editor.isDarkMode()?"#ff0000":"#ffcfcf"}});mxEvent.addListener(B,"keydown",function(c){70==c.keyCode&&b.keyHandler.isControlDown(c)&&!mxEvent.isShiftDown(c)&&
(m.funct(),mxEvent.consume(c))});this.window=new mxWindow(mxResources.get("find")+(k?"/"+mxResources.get("replace"):""),B,e,d,c,g,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!1);this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit();this.window.isVisible()?(C.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?C.select():document.execCommand("selectAll",!1,null),null!=b.pages&&1<b.pages.length?
-F.removeAttribute("disabled"):(F.checked=!1,F.setAttribute("disabled","disabled"))):p.container.focus()}));this.window.setLocation=function(b,c){var f=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;b=Math.max(0,Math.min(b,(window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth)-this.table.clientWidth));c=Math.max(0,Math.min(c,f-this.table.clientHeight-("1"==urlParams.sketch?3:48)));this.getX()==b&&this.getY()==c||mxWindow.prototype.setLocation.apply(this,
-arguments)};var Y=mxUtils.bind(this,function(){var b=this.window.getX(),c=this.window.getY();this.window.setLocation(b,c)});mxEvent.addListener(window,"resize",Y);this.destroy=function(){mxEvent.removeListener(window,"resize",Y);this.window.destroy()}},FreehandWindow=function(b,e,d,c,g){var k=b.editor.graph;b=document.createElement("div");b.style.textAlign="center";b.style.userSelect="none";b.style.overflow="hidden";b.style.height="100%";var n=mxUtils.button(mxResources.get("startDrawing"),function(){k.freehand.isDrawing()?
+E.removeAttribute("disabled"):(E.checked=!1,E.setAttribute("disabled","disabled"))):p.container.focus()}));this.window.setLocation=function(b,c){var f=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;b=Math.max(0,Math.min(b,(window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth)-this.table.clientWidth));c=Math.max(0,Math.min(c,f-this.table.clientHeight-("1"==urlParams.sketch?3:48)));this.getX()==b&&this.getY()==c||mxWindow.prototype.setLocation.apply(this,
+arguments)};var W=mxUtils.bind(this,function(){var b=this.window.getX(),c=this.window.getY();this.window.setLocation(b,c)});mxEvent.addListener(window,"resize",W);this.destroy=function(){mxEvent.removeListener(window,"resize",W);this.window.destroy()}},FreehandWindow=function(b,e,d,c,g){var k=b.editor.graph;b=document.createElement("div");b.style.textAlign="center";b.style.userSelect="none";b.style.overflow="hidden";b.style.height="100%";var n=mxUtils.button(mxResources.get("startDrawing"),function(){k.freehand.isDrawing()?
k.freehand.stopDrawing():k.freehand.startDrawing()});n.setAttribute("title",mxResources.get("startDrawing"));n.style.marginTop="10px";n.style.width="90%";n.style.boxSizing="border-box";n.style.overflow="hidden";n.style.textOverflow="ellipsis";n.style.textAlign="center";n.className="geBtn gePrimaryBtn";b.appendChild(n);this.window=new mxWindow(mxResources.get("freehand"),b,e,d,c,g,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!1);this.window.setClosable(!0);
k.addListener("freehandStateChanged",mxUtils.bind(this,function(){n.innerHTML="";mxUtils.write(n,mxResources.get(k.freehand.isDrawing()?"stopDrawing":"startDrawing"));n.setAttribute("title",mxResources.get(k.freehand.isDrawing()?"stopDrawing":"startDrawing"));n.className="geBtn"+(k.freehand.isDrawing()?"":" gePrimaryBtn")}));this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit()}));this.window.addListener("hide",mxUtils.bind(this,function(){k.freehand.isDrawing()&&k.freehand.stopDrawing()}));
this.window.setLocation=function(b,c){var f=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;b=Math.max(0,Math.min(b,(window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth)-this.table.clientWidth));c=Math.max(0,Math.min(c,f-this.table.clientHeight-("1"==urlParams.sketch?3:48)));this.getX()==b&&this.getY()==c||mxWindow.prototype.setLocation.apply(this,arguments)};var f=mxUtils.bind(this,function(){var b=this.window.getX(),c=this.window.getY();
@@ -10387,7 +10387,7 @@ u=document.createElement("div");u.style.position="relative";u.style.left="0px";u
mxUtils.write(k," "+mxResources.get("rememberThisSetting")),A.style.position="relative",A.style.top="1px",A.checked=!0,A.defaultChecked=!0,mxEvent.addListener(k,"click",function(b){mxEvent.getSource(b)!=A&&(A.checked=!A.checked,mxEvent.consume(b))}),d.appendChild(k);k=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});k.className="geBtn";l=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();for(var c=[],f=0;f<v.length;f++){var d=v[f].apply(this,arguments);null!=d&&
c.push(d)}"1"==urlParams.sketch&&b.isSettingsEnabled()&&(f=mxUtils.indexOf(c,".scratchpad"),null!=b.scratchpad!=(0<=f&&0<c.splice(f,1).length)&&b.toggleScratchpad(),f=mxUtils.indexOf(c,"search"),mxSettings.settings.search=0<=f&&0<c.splice(f,1).length,b.sidebar.showPalette("search",mxSettings.settings.search),A.checked&&mxSettings.save());b.sidebar.showEntries(c.join(";"),A.checked,!0);b.setSidebarTitles(x.checked,A.checked)});l.className="geBtn gePrimaryBtn"}else{var z=document.createElement("table"),
k=document.createElement("tbody");c.style.height="100%";c.style.overflow="auto";l=document.createElement("tr");z.style.width="100%";e=document.createElement("td");var g=document.createElement("td"),n=document.createElement("td"),B=mxUtils.bind(this,function(c,f,d){var e=document.createElement("input");e.type="checkbox";z.appendChild(e);e.checked=b.sidebar.isEntryVisible(d);var l=document.createElement("span");mxUtils.write(l,f);f=document.createElement("div");f.style.display="block";f.appendChild(e);
-f.appendChild(l);mxEvent.addListener(l,"click",function(b){e.checked=!e.checked;mxEvent.consume(b)});c.appendChild(f);return function(){return e.checked?d:null}});l.appendChild(e);l.appendChild(g);l.appendChild(n);k.appendChild(l);z.appendChild(k);for(var v=[],y=0,k=0;k<d.length;k++)for(l=0;l<d[k].entries.length;l++)y++;for(var C=[e,g,n],E=0,k=0;k<d.length;k++)(function(b){for(var c=0;c<b.entries.length;c++){var f=b.entries[c];v.push(B(C[Math.floor(E/(y/3))],f.title,f.id));E++}})(d[k]);c.appendChild(z);
+f.appendChild(l);mxEvent.addListener(l,"click",function(b){e.checked=!e.checked;mxEvent.consume(b)});c.appendChild(f);return function(){return e.checked?d:null}});l.appendChild(e);l.appendChild(g);l.appendChild(n);k.appendChild(l);z.appendChild(k);for(var v=[],y=0,k=0;k<d.length;k++)for(l=0;l<d[k].entries.length;l++)y++;for(var C=[e,g,n],G=0,k=0;k<d.length;k++)(function(b){for(var c=0;c<b.entries.length;c++){var f=b.entries[c];v.push(B(C[Math.floor(G/(y/3))],f.title,f.id));G++}})(d[k]);c.appendChild(z);
d=document.createElement("div");d.style.marginTop="18px";d.style.textAlign="center";A=document.createElement("input");isLocalStorage&&(A.setAttribute("type","checkbox"),A.checked=!0,A.defaultChecked=!0,d.appendChild(A),k=document.createElement("span"),mxUtils.write(k," "+mxResources.get("rememberThisSetting")),d.appendChild(k),mxEvent.addListener(k,"click",function(b){A.checked=!A.checked;mxEvent.consume(b)}));c.appendChild(d);k=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});
k.className="geBtn";l=mxUtils.button(mxResources.get("apply"),function(){for(var c=["search"],f=0;f<v.length;f++){var d=v[f].apply(this,arguments);null!=d&&c.push(d)}b.sidebar.showEntries(0<c.length?c.join(";"):"",A.checked);b.hideDialog()});l.className="geBtn gePrimaryBtn";d=document.createElement("div");d.style.marginTop="26px";d.style.textAlign="right"}b.editor.cancelFirst?(d.appendChild(k),d.appendChild(l)):(d.appendChild(l),d.appendChild(k));c.appendChild(d);this.container=c},PluginsDialog=function(b,
e,d){function c(){f=!0;if(0==n.length)k.innerHTML=mxUtils.htmlEntities(mxResources.get("noPlugins"));else{k.innerHTML="";for(var e=0;e<n.length;e++){var l=document.createElement("span");l.style.whiteSpace="nowrap";var m=document.createElement("span");m.className="geSprite geSprite-delete";m.style.position="relative";m.style.cursor="pointer";m.style.top="5px";m.style.marginRight="4px";m.style.display="inline-block";l.appendChild(m);mxUtils.write(l,n[e]);k.appendChild(l);mxUtils.br(k);mxEvent.addListener(m,
@@ -10395,47 +10395,47 @@ e,d){function c(){f=!0;if(0==n.length)k.innerHTML=mxUtils.htmlEntities(mxResourc
d.style.marginTop="6px";mxUtils.write(d,mxResources.get("builtinPlugins")+": ");f.appendChild(d);var e=document.createElement("select");e.style.width="150px";for(d=0;d<App.publicPlugin.length;d++){var l=document.createElement("option");mxUtils.write(l,App.publicPlugin[d]);l.value=App.publicPlugin[d];e.appendChild(l)}f.appendChild(e);mxUtils.br(f);mxUtils.br(f);d=mxUtils.button(mxResources.get("custom")+"...",function(){var f=new FilenameDialog(b,"",mxResources.get("add"),function(f){b.hideDialog();
if(null!=f&&0<f.length){f=f.split(";");for(var d=0;d<f.length;d++){var e=f[d],l=App.pluginRegistry[e];null!=l&&(e=l);0<e.length&&0>mxUtils.indexOf(n,e)&&n.push(e)}c()}},mxResources.get("enterValue")+" ("+mxResources.get("url")+")");b.showDialog(f.container,300,80,!0,!0);f.init()});d.className="geBtn";f=new CustomDialog(b,f,mxUtils.bind(this,function(){var b=App.pluginRegistry[e.value];0>mxUtils.indexOf(n,b)&&(n.push(b),c())}),null,null,null,d);b.showDialog(f.container,300,100,!0,!0)});l.className=
"geBtn";var m=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});m.className="geBtn";var p=mxUtils.button(mxResources.get("apply"),function(){f?(mxSettings.setPlugins(n),mxSettings.save(),b.hideDialog(),b.alert(mxResources.get("restartForChangeRequired"))):b.hideDialog()});p.className="geBtn gePrimaryBtn";var q=document.createElement("div");q.style.marginTop="14px";q.style.textAlign="right";var t=mxUtils.button(mxResources.get("help"),function(){b.openLink("https://www.diagrams.net/doc/faq/plugins")});
-t.className="geBtn";b.isOffline()&&!mxClient.IS_CHROMEAPP&&(t.style.display="none");q.appendChild(t);b.editor.cancelFirst?(q.appendChild(m),q.appendChild(l),q.appendChild(p)):(q.appendChild(l),q.appendChild(p),q.appendChild(m));g.appendChild(q);this.container=g},CropImageDialog=function(b,e,d,c){function g(){var b=A.checked,c=z.checked,f=q.geometry,d=l.width,e=l.height,m=(300-d)/2,g=(300-e)/2,p;f.x<m?(f.width-=m-f.x,f.x=m):f.x+f.width>m+d&&(f.width=m+d-f.x,f.x=Math.min(f.x,m+d));f.y<g?(f.height-=
-g-f.y,f.y=g):f.y+f.height>g+e&&(f.height=g+e-f.y,f.y=Math.min(f.y,g+e));p=(f.x-m)/d*100;d=100-(f.x+f.width-m)/d*100;m=(f.y-g)/e*100;f=100-(f.y+f.height-g)/e*100;return"inset("+mxUtils.format(m)+"% "+mxUtils.format(d)+"% "+mxUtils.format(f)+"% "+mxUtils.format(p)+"%"+(b?" round "+t+"%":c?" round 50%":"")+")"}function k(b){!0!==b&&(p.model.setGeometry(q,v.clone()),t=5,y.value=t);p.model.setStyle(q,u+g());p.selectAll();B.style.visibility=A.checked?"visible":"hidden"}var n=document.createElement("div"),
-f=document.createElement("div");f.style.height="300px";f.style.width="300px";f.style.display="inline-flex";f.style.justifyContent="center";f.style.alignItems="center";f.style.position="absolute";var l=document.createElement("img");l.onload=function(){function b(){p.model.setStyle(q,u+g())}p=new Graph(m);p.autoExtend=!1;p.autoScroll=!1;p.setGridEnabled(!1);p.setEnabled(!0);p.setPanning(!1);p.setConnectable(!1);p.getRubberband().setEnabled(!1);p.graphHandler.allowLivePreview=!1;var c=p.createVertexHandler;
-p.createVertexHandler=function(){var b=c.apply(this,arguments);b.livePreview=!1;return b};q=new mxCell("",v.clone(),"");if(null!=d)try{if("inset"==d.substring(0,5)){var f=q.geometry,e=l.width,k=l.height,n=(300-e)/2,C=(300-k)/2,E=d.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),N=parseFloat(E[0]),M=parseFloat(E[1]),Y=parseFloat(E[2]),W=parseFloat(E[3]);isFinite(N)&&isFinite(M)&&isFinite(Y)&&isFinite(W)?(f.x=W/100*e+n,f.y=N/100*k+C,f.width=(100-M)/100*e+n-f.x,f.height=(100-Y)/100*k+C-f.y,"round"==E[4]?"50%"==
-E[5]?z.setAttribute("checked","checked"):(t=parseInt(E[5]),y.value=t,A.setAttribute("checked","checked"),B.style.visibility="visible"):x.setAttribute("checked","checked")):d=null}else d=null}catch(da){}q.style=u+(d?d:g());q.vertex=!0;p.addCell(q,null,null,null,null);p.selectAll();p.addListener(mxEvent.CELLS_MOVED,b);p.addListener(mxEvent.CELLS_RESIZED,b);var L=p.graphHandler.mouseUp,O=p.graphHandler.mouseDown;p.graphHandler.mouseUp=function(){L.apply(this,arguments);m.style.backgroundColor="#fff9"};
-p.graphHandler.mouseDown=function(){O.apply(this,arguments);m.style.backgroundColor=""};p.dblClick=function(){};var S=p.getSelectionModel().changeSelection;p.getSelectionModel().changeSelection=function(){S.call(this,[q],[q])}};l.onerror=function(){l.onload=null;l.src=Editor.errorImage};l.setAttribute("src",e);l.style.maxWidth="300px";l.style.maxHeight="300px";f.appendChild(l);n.appendChild(f);var m=document.createElement("div");m.style.width="300px";m.style.height="300px";m.style.overflow="hidden";
-m.style.backgroundColor="#fff9";n.appendChild(m);var p,q,t=5,v=new mxGeometry(100,100,100,100),u="shape=image;fillColor=none;rotatable=0;cloneable=0;deletable=0;image="+e.replace(";base64","")+";clipPath=",x=document.createElement("input");x.setAttribute("type","radio");x.setAttribute("id","croppingRect");x.setAttribute("name","croppingShape");x.setAttribute("checked","checked");x.style.margin="5px";n.appendChild(x);e=document.createElement("label");e.setAttribute("for","croppingRect");mxUtils.write(e,
-mxResources.get("rectangle"));n.appendChild(e);var A=document.createElement("input");A.setAttribute("type","radio");A.setAttribute("id","croppingRounded");A.setAttribute("name","croppingShape");A.style.margin="5px";n.appendChild(A);e=document.createElement("label");e.setAttribute("for","croppingRounded");mxUtils.write(e,mxResources.get("rounded"));n.appendChild(e);var z=document.createElement("input");z.setAttribute("type","radio");z.setAttribute("id","croppingEllipse");z.setAttribute("name","croppingShape");
-z.style.margin="5px";n.appendChild(z);e=document.createElement("label");e.setAttribute("for","croppingEllipse");mxUtils.write(e,mxResources.get("ellipse"));n.appendChild(e);mxEvent.addListener(x,"change",k);mxEvent.addListener(A,"change",k);mxEvent.addListener(z,"change",k);var B=document.createElement("div");B.style.textAlign="center";B.style.visibility="hidden";var y=document.createElement("input");y.setAttribute("type","range");y.setAttribute("min","1");y.setAttribute("max","49");y.setAttribute("value",
-t);y.setAttribute("title",mxResources.get("arcSize"));B.appendChild(y);n.appendChild(B);mxEvent.addListener(y,"change",function(){t=this.value;k(!0)});e=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});e.className="geBtn";f=mxUtils.button(mxResources.get("apply"),function(){c(g(),q.geometry.width,q.geometry.height);b.hideDialog()});f.className="geBtn gePrimaryBtn";var C=mxUtils.button(mxResources.get("reset"),function(){c(null,l.width,l.height);b.hideDialog()});C.className="geBtn";
-var E=document.createElement("div");E.style.marginTop="10px";E.style.textAlign="right";b.editor.cancelFirst?(E.appendChild(e),E.appendChild(C),E.appendChild(f)):(E.appendChild(C),E.appendChild(f),E.appendChild(e));n.appendChild(E);this.container=n},EditGeometryDialog=function(b,e){var d=b.editor.graph,c=1==e.length?d.getCellGeometry(e[0]):null,g=document.createElement("div"),k=document.createElement("table"),n=document.createElement("tbody"),f=document.createElement("tr"),l=document.createElement("td"),
-m=document.createElement("td");k.style.paddingLeft="6px";mxUtils.write(l,mxResources.get("relative")+":");var p=document.createElement("input");p.setAttribute("type","checkbox");null!=c&&c.relative&&(p.setAttribute("checked","checked"),p.defaultChecked=!0);this.init=function(){p.focus()};m.appendChild(p);f.appendChild(l);f.appendChild(m);n.appendChild(f);f=document.createElement("tr");l=document.createElement("td");m=document.createElement("td");mxUtils.write(l,mxResources.get("left")+":");var q=
-document.createElement("input");q.setAttribute("type","text");q.style.width="100px";q.value=null!=c?c.x:"";m.appendChild(q);f.appendChild(l);f.appendChild(m);n.appendChild(f);f=document.createElement("tr");l=document.createElement("td");m=document.createElement("td");mxUtils.write(l,mxResources.get("top")+":");var t=document.createElement("input");t.setAttribute("type","text");t.style.width="100px";t.value=null!=c?c.y:"";m.appendChild(t);f.appendChild(l);f.appendChild(m);n.appendChild(f);f=document.createElement("tr");
-l=document.createElement("td");m=document.createElement("td");mxUtils.write(l,mxResources.get("dx")+":");var v=document.createElement("input");v.setAttribute("type","text");v.style.width="100px";v.value=null!=c&&null!=c.offset?c.offset.x:"";m.appendChild(v);f.appendChild(l);f.appendChild(m);n.appendChild(f);f=document.createElement("tr");l=document.createElement("td");m=document.createElement("td");mxUtils.write(l,mxResources.get("dy")+":");var u=document.createElement("input");u.setAttribute("type",
-"text");u.style.width="100px";u.value=null!=c&&null!=c.offset?c.offset.y:"";m.appendChild(u);f.appendChild(l);f.appendChild(m);n.appendChild(f);f=document.createElement("tr");l=document.createElement("td");m=document.createElement("td");mxUtils.write(l,mxResources.get("width")+":");var x=document.createElement("input");x.setAttribute("type","text");x.style.width="100px";x.value=null!=c?c.width:"";m.appendChild(x);f.appendChild(l);f.appendChild(m);n.appendChild(f);f=document.createElement("tr");l=
-document.createElement("td");m=document.createElement("td");mxUtils.write(l,mxResources.get("height")+":");var A=document.createElement("input");A.setAttribute("type","text");A.style.width="100px";A.value=null!=c?c.height:"";m.appendChild(A);f.appendChild(l);f.appendChild(m);n.appendChild(f);f=document.createElement("tr");l=document.createElement("td");m=document.createElement("td");mxUtils.write(l,mxResources.get("rotation")+":");var z=document.createElement("input");z.setAttribute("type","text");
-z.style.width="100px";z.value=1==e.length?mxUtils.getValue(d.getCellStyle(e[0]),mxConstants.STYLE_ROTATION,0):"";m.appendChild(z);f.appendChild(l);f.appendChild(m);n.appendChild(f);k.appendChild(n);g.appendChild(k);c=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});c.className="geBtn";var B=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();d.getModel().beginUpdate();try{for(var c=0;c<e.length;c++){var f=d.getCellGeometry(e[c]);null!=f&&(f=f.clone(),d.isCellMovable(e[c])&&
-(f.relative=p.checked,0<mxUtils.trim(q.value).length&&(f.x=Number(q.value)),0<mxUtils.trim(t.value).length&&(f.y=Number(t.value)),0<mxUtils.trim(v.value).length&&(null==f.offset&&(f.offset=new mxPoint),f.offset.x=Number(v.value)),0<mxUtils.trim(u.value).length&&(null==f.offset&&(f.offset=new mxPoint),f.offset.y=Number(u.value))),d.isCellResizable(e[c])&&(0<mxUtils.trim(x.value).length&&(f.width=Number(x.value)),0<mxUtils.trim(A.value).length&&(f.height=Number(A.value))),d.getModel().setGeometry(e[c],
-f));0<mxUtils.trim(z.value).length&&d.setCellStyles(mxConstants.STYLE_ROTATION,Number(z.value),[e[c]])}}finally{d.getModel().endUpdate()}});B.className="geBtn gePrimaryBtn";mxEvent.addListener(g,"keypress",function(b){13==b.keyCode&&B.click()});k=document.createElement("div");k.style.marginTop="20px";k.style.textAlign="right";b.editor.cancelFirst?(k.appendChild(c),k.appendChild(B)):(k.appendChild(B),k.appendChild(c));g.appendChild(k);this.container=g},LibraryDialog=function(b,e,d,c,g,k){function n(b){for(b=
-document.elementFromPoint(b.clientX,b.clientY);null!=b&&b.parentNode!=v;)b=b.parentNode;var c=null;if(null!=b)for(var f=v.firstChild,c=0;null!=f&&f!=b;)f=f.nextSibling,c++;return c}function f(c,d,e,l,m,g,k,q,t){try{if(b.spinner.stop(),null==d||"image/"==d.substring(0,6))if(null==c&&null!=k||null==x[c]){var D=function(){E.innerHTML="";E.style.cursor="pointer";E.style.whiteSpace="nowrap";E.style.textOverflow="ellipsis";mxUtils.write(E,null!=K.title&&0<K.title.length?K.title:mxResources.get("untitled"));
-E.style.color=null==K.title||0==K.title.length?"#d0d0d0":""};v.style.backgroundImage="";u.style.display="none";var F=m,L=g;if(m>b.maxImageSize||g>b.maxImageSize){var O=Math.min(1,Math.min(b.maxImageSize/Math.max(1,m)),b.maxImageSize/Math.max(1,g));m*=O;g*=O}F>L?(L=Math.round(100*L/F),F=100):(F=Math.round(100*F/L),L=100);var S=document.createElement("div");S.setAttribute("draggable","true");S.style.display="inline-block";S.style.position="relative";S.style.padding="0 12px";S.style.cursor="move";mxUtils.setPrefixedStyle(S.style,
-"transition","transform .1s ease-in-out");if(null!=c){var H=document.createElement("img");H.setAttribute("src",y.convert(c));H.style.width=F+"px";H.style.height=L+"px";H.style.margin="10px";H.style.paddingBottom=Math.floor((100-L)/2)+"px";H.style.paddingLeft=Math.floor((100-F)/2)+"px";S.appendChild(H)}else if(null!=k){var G=b.stringToCells(Graph.decompress(k.xml));0<G.length&&(b.sidebar.createThumb(G,100,100,S,null,!0,!1),S.firstChild.style.display="inline-block",S.firstChild.style.cursor="")}var z=
-document.createElement("img");z.setAttribute("src",Editor.closeBlackImage);z.setAttribute("border","0");z.setAttribute("title",mxResources.get("delete"));z.setAttribute("align","top");z.style.paddingTop="4px";z.style.position="absolute";z.style.marginLeft="-12px";z.style.zIndex="1";z.style.cursor="pointer";mxEvent.addListener(z,"dragstart",function(b){mxEvent.consume(b)});(function(b,c,f){mxEvent.addListener(z,"click",function(d){x[c]=null;for(var e=0;e<p.length;e++)if(null!=p[e].data&&p[e].data==
-c||null!=p[e].xml&&null!=f&&p[e].xml==f.xml){p.splice(e,1);break}S.parentNode.removeChild(b);0==p.length&&(v.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",u.style.display="");mxEvent.consume(d)});mxEvent.addListener(z,"dblclick",function(b){mxEvent.consume(b)})})(S,c,k);S.appendChild(z);S.style.marginBottom="30px";var E=document.createElement("div");E.style.position="absolute";E.style.boxSizing="border-box";E.style.bottom="-18px";E.style.left="10px";E.style.right="10px";E.style.backgroundColor=
-Editor.isDarkMode()?Editor.darkColor:"#ffffff";E.style.overflow="hidden";E.style.textAlign="center";var K=null;null!=c?(K={data:c,w:m,h:g,title:t},null!=q&&(K.aspect=q),x[c]=H,p.push(K)):null!=k&&(k.aspect="fixed",p.push(k),K=k);mxEvent.addListener(E,"keydown",function(b){13==b.keyCode&&null!=B&&(B(),B=null,mxEvent.consume(b))});D();S.appendChild(E);mxEvent.addListener(E,"mousedown",function(b){"true"!=E.getAttribute("contentEditable")&&mxEvent.consume(b)});G=function(c){if(mxClient.IS_IOS||mxClient.IS_FF||
-!(null==document.documentMode||9<document.documentMode)){var f=new FilenameDialog(b,K.title||"",mxResources.get("ok"),function(b){null!=b&&(K.title=b,D())},mxResources.get("enterValue"));b.showDialog(f.container,300,80,!0,!0);f.init();mxEvent.consume(c)}else if("true"!=E.getAttribute("contentEditable")){null!=B&&(B(),B=null);if(null==K.title||0==K.title.length)E.innerHTML="";E.style.textOverflow="";E.style.whiteSpace="";E.style.cursor="text";E.style.color="";E.setAttribute("contentEditable","true");
-mxUtils.setPrefixedStyle(E.style,"user-select","text");E.focus();document.execCommand("selectAll",!1,null);B=function(){E.removeAttribute("contentEditable");E.style.cursor="pointer";K.title=E.innerHTML;D()};mxEvent.consume(c)}};mxEvent.addListener(E,"click",G);mxEvent.addListener(S,"dblclick",G);v.appendChild(S);mxEvent.addListener(S,"dragstart",function(b){null==c&&null!=k&&(z.style.visibility="hidden",E.style.visibility="hidden");mxClient.IS_FF&&null!=k.xml&&b.dataTransfer.setData("Text",k.xml);
-A=n(b);mxClient.IS_GC&&(S.style.opacity="0.9");window.setTimeout(function(){mxUtils.setPrefixedStyle(S.style,"transform","scale(0.5,0.5)");mxUtils.setOpacity(S,30);z.style.visibility="";E.style.visibility=""},0)});mxEvent.addListener(S,"dragend",function(b){"hidden"==z.style.visibility&&(z.style.visibility="",E.style.visibility="");A=null;mxUtils.setOpacity(S,100);mxUtils.setPrefixedStyle(S.style,"transform",null)})}else C||(C=!0,b.handleError({message:mxResources.get("fileExists")}));else{m=!1;try{if(F=
-mxUtils.parseXml(c),"mxlibrary"==F.documentElement.nodeName){L=JSON.parse(mxUtils.getTextContent(F.documentElement));if(null!=L&&0<L.length)for(var J=0;J<L.length;J++)null!=L[J].xml?f(null,null,0,0,0,0,L[J]):f(L[J].data,null,0,0,L[J].w,L[J].h,null,"fixed",L[J].title);m=!0}else if("mxfile"==F.documentElement.nodeName){for(var I=F.documentElement.getElementsByTagName("diagram"),J=0;J<I.length;J++){var L=mxUtils.getTextContent(I[J]),G=b.stringToCells(Graph.decompress(L)),M=b.editor.graph.getBoundingBoxFromGeometry(G);
-f(null,null,0,0,0,0,{xml:L,w:M.width,h:M.height})}m=!0}}catch(Q){}m||(b.spinner.stop(),b.handleError({message:mxResources.get("errorLoadingFile")}))}}catch(Q){}return null}function l(b){b.dataTransfer.dropEffect=null!=A?"move":"copy";b.stopPropagation();b.preventDefault()}function m(c){c.stopPropagation();c.preventDefault();C=!1;z=n(c);if(null!=A)null!=z&&z<v.children.length?(p.splice(z>A?z-1:z,0,p.splice(A,1)[0]),v.insertBefore(v.children[A],v.children[z])):(p.push(p.splice(A,1)[0]),v.appendChild(v.children[A]));
-else if(0<c.dataTransfer.files.length)b.importFiles(c.dataTransfer.files,0,0,b.maxImageSize,E(c));else if(0<=mxUtils.indexOf(c.dataTransfer.types,"text/uri-list")){var d=decodeURIComponent(c.dataTransfer.getData("text/uri-list"));(/(\.jpg)($|\?)/i.test(d)||/(\.png)($|\?)/i.test(d)||/(\.gif)($|\?)/i.test(d)||/(\.svg)($|\?)/i.test(d))&&b.loadImage(d,function(b){f(d,null,0,0,b.width,b.height);v.scrollTop=v.scrollHeight})}c.stopPropagation();c.preventDefault()}var p=[];d=document.createElement("div");
+t.className="geBtn";b.isOffline()&&!mxClient.IS_CHROMEAPP&&(t.style.display="none");q.appendChild(t);b.editor.cancelFirst?(q.appendChild(m),q.appendChild(l),q.appendChild(p)):(q.appendChild(l),q.appendChild(p),q.appendChild(m));g.appendChild(q);this.container=g},CropImageDialog=function(b,e,d,c){function g(){var b=A.checked,c=z.checked,f=v.geometry,d=l.width,e=l.height,m=(300-d)/2,g=(300-e)/2,p;f.x<m?(f.width-=m-f.x,f.x=m):f.x+f.width>m+d&&(f.width=m+d-f.x,f.x=Math.min(f.x,m+d));f.y<g?(f.height-=
+g-f.y,f.y=g):f.y+f.height>g+e&&(f.height=g+e-f.y,f.y=Math.min(f.y,g+e));p=(f.x-m)/d*100;d=100-(f.x+f.width-m)/d*100;m=(f.y-g)/e*100;f=100-(f.y+f.height-g)/e*100;return"inset("+mxUtils.format(m)+"% "+mxUtils.format(d)+"% "+mxUtils.format(f)+"% "+mxUtils.format(p)+"%"+(b?" round "+t+"%":c?" round 50%":"")+")"}function k(b){null!=p&&(!0!==b&&(p.model.setGeometry(v,q.clone()),t=5,y.value=t),p.model.setStyle(v,u+g()),p.selectAll(),B.style.visibility=A.checked?"visible":"hidden")}var n=document.createElement("div"),
+f=document.createElement("div");f.style.height="300px";f.style.width="300px";f.style.display="inline-flex";f.style.justifyContent="center";f.style.alignItems="center";f.style.position="absolute";var l=document.createElement("img");l.onload=function(){function b(){p.model.setStyle(v,u+g())}p=new Graph(m);p.autoExtend=!1;p.autoScroll=!1;p.setGridEnabled(!1);p.setEnabled(!0);p.setPanning(!1);p.setConnectable(!1);p.getRubberband().setEnabled(!1);p.graphHandler.allowLivePreview=!1;var c=p.createVertexHandler;
+p.createVertexHandler=function(){var b=c.apply(this,arguments);b.livePreview=!1;return b};if(null!=d)try{if("inset"==d.substring(0,5)){var f=v.geometry,e=l.width,k=l.height,q=(300-e)/2,n=(300-k)/2,C=d.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),G=parseFloat(C[0]),M=parseFloat(C[1]),W=parseFloat(C[2]),X=parseFloat(C[3]);isFinite(G)&&isFinite(M)&&isFinite(W)&&isFinite(X)?(f.x=X/100*e+q,f.y=G/100*k+n,f.width=(100-M)/100*e+q-f.x,f.height=(100-W)/100*k+n-f.y,"round"==C[4]?"50%"==C[5]?z.setAttribute("checked",
+"checked"):(t=parseInt(C[5]),y.value=t,A.setAttribute("checked","checked"),B.style.visibility="visible"):x.setAttribute("checked","checked")):d=null}else d=null}catch(da){}v.style=u+(d?d:g());v.vertex=!0;p.addCell(v,null,null,null,null);p.selectAll();p.addListener(mxEvent.CELLS_MOVED,b);p.addListener(mxEvent.CELLS_RESIZED,b);var L=p.graphHandler.mouseUp,Q=p.graphHandler.mouseDown;p.graphHandler.mouseUp=function(){L.apply(this,arguments);m.style.backgroundColor="#fff9"};p.graphHandler.mouseDown=function(){Q.apply(this,
+arguments);m.style.backgroundColor=""};p.dblClick=function(){};var T=p.getSelectionModel().changeSelection;p.getSelectionModel().changeSelection=function(){T.call(this,[v],[v])}};l.onerror=function(){l.onload=null;l.src=Editor.errorImage};l.setAttribute("src",e);l.style.maxWidth="300px";l.style.maxHeight="300px";f.appendChild(l);n.appendChild(f);var m=document.createElement("div");m.style.width="300px";m.style.height="300px";m.style.overflow="hidden";m.style.backgroundColor="#fff9";n.appendChild(m);
+var p=null,q=new mxGeometry(100,100,100,100),t=5,v=new mxCell("",q.clone(),""),u="shape=image;fillColor=none;rotatable=0;cloneable=0;deletable=0;image="+e.replace(";base64","")+";clipPath=",x=document.createElement("input");x.setAttribute("type","radio");x.setAttribute("id","croppingRect");x.setAttribute("name","croppingShape");x.setAttribute("checked","checked");x.style.margin="5px";n.appendChild(x);e=document.createElement("label");e.setAttribute("for","croppingRect");mxUtils.write(e,mxResources.get("rectangle"));
+n.appendChild(e);var A=document.createElement("input");A.setAttribute("type","radio");A.setAttribute("id","croppingRounded");A.setAttribute("name","croppingShape");A.style.margin="5px";n.appendChild(A);e=document.createElement("label");e.setAttribute("for","croppingRounded");mxUtils.write(e,mxResources.get("rounded"));n.appendChild(e);var z=document.createElement("input");z.setAttribute("type","radio");z.setAttribute("id","croppingEllipse");z.setAttribute("name","croppingShape");z.style.margin="5px";
+n.appendChild(z);e=document.createElement("label");e.setAttribute("for","croppingEllipse");mxUtils.write(e,mxResources.get("ellipse"));n.appendChild(e);mxEvent.addListener(x,"change",k);mxEvent.addListener(A,"change",k);mxEvent.addListener(z,"change",k);var B=document.createElement("div");B.style.textAlign="center";B.style.visibility="hidden";var y=document.createElement("input");y.setAttribute("type","range");y.setAttribute("min","1");y.setAttribute("max","49");y.setAttribute("value",t);y.setAttribute("title",
+mxResources.get("arcSize"));B.appendChild(y);n.appendChild(B);mxEvent.addListener(y,"change",function(){t=this.value;k(!0)});e=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});e.className="geBtn";f=mxUtils.button(mxResources.get("apply"),function(){c(g(),v.geometry.width,v.geometry.height);b.hideDialog()});f.className="geBtn gePrimaryBtn";var C=mxUtils.button(mxResources.get("reset"),function(){c(null,l.width,l.height);b.hideDialog()});C.className="geBtn";var G=document.createElement("div");
+G.style.marginTop="10px";G.style.textAlign="right";b.editor.cancelFirst?(G.appendChild(e),G.appendChild(C),G.appendChild(f)):(G.appendChild(C),G.appendChild(f),G.appendChild(e));n.appendChild(G);this.container=n},EditGeometryDialog=function(b,e){var d=b.editor.graph,c=1==e.length?d.getCellGeometry(e[0]):null,g=document.createElement("div"),k=document.createElement("table"),n=document.createElement("tbody"),f=document.createElement("tr"),l=document.createElement("td"),m=document.createElement("td");
+k.style.paddingLeft="6px";mxUtils.write(l,mxResources.get("relative")+":");var p=document.createElement("input");p.setAttribute("type","checkbox");null!=c&&c.relative&&(p.setAttribute("checked","checked"),p.defaultChecked=!0);this.init=function(){p.focus()};m.appendChild(p);f.appendChild(l);f.appendChild(m);n.appendChild(f);f=document.createElement("tr");l=document.createElement("td");m=document.createElement("td");mxUtils.write(l,mxResources.get("left")+":");var q=document.createElement("input");
+q.setAttribute("type","text");q.style.width="100px";q.value=null!=c?c.x:"";m.appendChild(q);f.appendChild(l);f.appendChild(m);n.appendChild(f);f=document.createElement("tr");l=document.createElement("td");m=document.createElement("td");mxUtils.write(l,mxResources.get("top")+":");var t=document.createElement("input");t.setAttribute("type","text");t.style.width="100px";t.value=null!=c?c.y:"";m.appendChild(t);f.appendChild(l);f.appendChild(m);n.appendChild(f);f=document.createElement("tr");l=document.createElement("td");
+m=document.createElement("td");mxUtils.write(l,mxResources.get("dx")+":");var v=document.createElement("input");v.setAttribute("type","text");v.style.width="100px";v.value=null!=c&&null!=c.offset?c.offset.x:"";m.appendChild(v);f.appendChild(l);f.appendChild(m);n.appendChild(f);f=document.createElement("tr");l=document.createElement("td");m=document.createElement("td");mxUtils.write(l,mxResources.get("dy")+":");var u=document.createElement("input");u.setAttribute("type","text");u.style.width="100px";
+u.value=null!=c&&null!=c.offset?c.offset.y:"";m.appendChild(u);f.appendChild(l);f.appendChild(m);n.appendChild(f);f=document.createElement("tr");l=document.createElement("td");m=document.createElement("td");mxUtils.write(l,mxResources.get("width")+":");var x=document.createElement("input");x.setAttribute("type","text");x.style.width="100px";x.value=null!=c?c.width:"";m.appendChild(x);f.appendChild(l);f.appendChild(m);n.appendChild(f);f=document.createElement("tr");l=document.createElement("td");m=
+document.createElement("td");mxUtils.write(l,mxResources.get("height")+":");var A=document.createElement("input");A.setAttribute("type","text");A.style.width="100px";A.value=null!=c?c.height:"";m.appendChild(A);f.appendChild(l);f.appendChild(m);n.appendChild(f);f=document.createElement("tr");l=document.createElement("td");m=document.createElement("td");mxUtils.write(l,mxResources.get("rotation")+":");var z=document.createElement("input");z.setAttribute("type","text");z.style.width="100px";z.value=
+1==e.length?mxUtils.getValue(d.getCellStyle(e[0]),mxConstants.STYLE_ROTATION,0):"";m.appendChild(z);f.appendChild(l);f.appendChild(m);n.appendChild(f);k.appendChild(n);g.appendChild(k);c=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});c.className="geBtn";var B=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();d.getModel().beginUpdate();try{for(var c=0;c<e.length;c++){var f=d.getCellGeometry(e[c]);null!=f&&(f=f.clone(),d.isCellMovable(e[c])&&(f.relative=p.checked,
+0<mxUtils.trim(q.value).length&&(f.x=Number(q.value)),0<mxUtils.trim(t.value).length&&(f.y=Number(t.value)),0<mxUtils.trim(v.value).length&&(null==f.offset&&(f.offset=new mxPoint),f.offset.x=Number(v.value)),0<mxUtils.trim(u.value).length&&(null==f.offset&&(f.offset=new mxPoint),f.offset.y=Number(u.value))),d.isCellResizable(e[c])&&(0<mxUtils.trim(x.value).length&&(f.width=Number(x.value)),0<mxUtils.trim(A.value).length&&(f.height=Number(A.value))),d.getModel().setGeometry(e[c],f));0<mxUtils.trim(z.value).length&&
+d.setCellStyles(mxConstants.STYLE_ROTATION,Number(z.value),[e[c]])}}finally{d.getModel().endUpdate()}});B.className="geBtn gePrimaryBtn";mxEvent.addListener(g,"keypress",function(b){13==b.keyCode&&B.click()});k=document.createElement("div");k.style.marginTop="20px";k.style.textAlign="right";b.editor.cancelFirst?(k.appendChild(c),k.appendChild(B)):(k.appendChild(B),k.appendChild(c));g.appendChild(k);this.container=g},LibraryDialog=function(b,e,d,c,g,k){function n(b){for(b=document.elementFromPoint(b.clientX,
+b.clientY);null!=b&&b.parentNode!=v;)b=b.parentNode;var c=null;if(null!=b)for(var f=v.firstChild,c=0;null!=f&&f!=b;)f=f.nextSibling,c++;return c}function f(c,d,e,l,m,g,k,q,t){try{if(b.spinner.stop(),null==d||"image/"==d.substring(0,6))if(null==c&&null!=k||null==x[c]){var D=function(){N.innerHTML="";N.style.cursor="pointer";N.style.whiteSpace="nowrap";N.style.textOverflow="ellipsis";mxUtils.write(N,null!=I.title&&0<I.title.length?I.title:mxResources.get("untitled"));N.style.color=null==I.title||0==
+I.title.length?"#d0d0d0":""};v.style.backgroundImage="";u.style.display="none";var E=m,L=g;if(m>b.maxImageSize||g>b.maxImageSize){var Q=Math.min(1,Math.min(b.maxImageSize/Math.max(1,m)),b.maxImageSize/Math.max(1,g));m*=Q;g*=Q}E>L?(L=Math.round(100*L/E),E=100):(E=Math.round(100*E/L),L=100);var T=document.createElement("div");T.setAttribute("draggable","true");T.style.display="inline-block";T.style.position="relative";T.style.padding="0 12px";T.style.cursor="move";mxUtils.setPrefixedStyle(T.style,"transition",
+"transform .1s ease-in-out");if(null!=c){var H=document.createElement("img");H.setAttribute("src",y.convert(c));H.style.width=E+"px";H.style.height=L+"px";H.style.margin="10px";H.style.paddingBottom=Math.floor((100-L)/2)+"px";H.style.paddingLeft=Math.floor((100-E)/2)+"px";T.appendChild(H)}else if(null!=k){var z=b.stringToCells(Graph.decompress(k.xml));0<z.length&&(b.sidebar.createThumb(z,100,100,T,null,!0,!1),T.firstChild.style.display="inline-block",T.firstChild.style.cursor="")}var F=document.createElement("img");
+F.setAttribute("src",Editor.closeBlackImage);F.setAttribute("border","0");F.setAttribute("title",mxResources.get("delete"));F.setAttribute("align","top");F.style.paddingTop="4px";F.style.position="absolute";F.style.marginLeft="-12px";F.style.zIndex="1";F.style.cursor="pointer";mxEvent.addListener(F,"dragstart",function(b){mxEvent.consume(b)});(function(b,c,f){mxEvent.addListener(F,"click",function(d){x[c]=null;for(var e=0;e<p.length;e++)if(null!=p[e].data&&p[e].data==c||null!=p[e].xml&&null!=f&&p[e].xml==
+f.xml){p.splice(e,1);break}T.parentNode.removeChild(b);0==p.length&&(v.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",u.style.display="");mxEvent.consume(d)});mxEvent.addListener(F,"dblclick",function(b){mxEvent.consume(b)})})(T,c,k);T.appendChild(F);T.style.marginBottom="30px";var N=document.createElement("div");N.style.position="absolute";N.style.boxSizing="border-box";N.style.bottom="-18px";N.style.left="10px";N.style.right="10px";N.style.backgroundColor=Editor.isDarkMode()?Editor.darkColor:
+"#ffffff";N.style.overflow="hidden";N.style.textAlign="center";var I=null;null!=c?(I={data:c,w:m,h:g,title:t},null!=q&&(I.aspect=q),x[c]=H,p.push(I)):null!=k&&(k.aspect="fixed",p.push(k),I=k);mxEvent.addListener(N,"keydown",function(b){13==b.keyCode&&null!=B&&(B(),B=null,mxEvent.consume(b))});D();T.appendChild(N);mxEvent.addListener(N,"mousedown",function(b){"true"!=N.getAttribute("contentEditable")&&mxEvent.consume(b)});z=function(c){if(mxClient.IS_IOS||mxClient.IS_FF||!(null==document.documentMode||
+9<document.documentMode)){var f=new FilenameDialog(b,I.title||"",mxResources.get("ok"),function(b){null!=b&&(I.title=b,D())},mxResources.get("enterValue"));b.showDialog(f.container,300,80,!0,!0);f.init();mxEvent.consume(c)}else if("true"!=N.getAttribute("contentEditable")){null!=B&&(B(),B=null);if(null==I.title||0==I.title.length)N.innerHTML="";N.style.textOverflow="";N.style.whiteSpace="";N.style.cursor="text";N.style.color="";N.setAttribute("contentEditable","true");mxUtils.setPrefixedStyle(N.style,
+"user-select","text");N.focus();document.execCommand("selectAll",!1,null);B=function(){N.removeAttribute("contentEditable");N.style.cursor="pointer";I.title=N.innerHTML;D()};mxEvent.consume(c)}};mxEvent.addListener(N,"click",z);mxEvent.addListener(T,"dblclick",z);v.appendChild(T);mxEvent.addListener(T,"dragstart",function(b){null==c&&null!=k&&(F.style.visibility="hidden",N.style.visibility="hidden");mxClient.IS_FF&&null!=k.xml&&b.dataTransfer.setData("Text",k.xml);A=n(b);mxClient.IS_GC&&(T.style.opacity=
+"0.9");window.setTimeout(function(){mxUtils.setPrefixedStyle(T.style,"transform","scale(0.5,0.5)");mxUtils.setOpacity(T,30);F.style.visibility="";N.style.visibility=""},0)});mxEvent.addListener(T,"dragend",function(b){"hidden"==F.style.visibility&&(F.style.visibility="",N.style.visibility="");A=null;mxUtils.setOpacity(T,100);mxUtils.setPrefixedStyle(T.style,"transform",null)})}else C||(C=!0,b.handleError({message:mxResources.get("fileExists")}));else{m=!1;try{if(E=mxUtils.parseXml(c),"mxlibrary"==
+E.documentElement.nodeName){L=JSON.parse(mxUtils.getTextContent(E.documentElement));if(null!=L&&0<L.length)for(var G=0;G<L.length;G++)null!=L[G].xml?f(null,null,0,0,0,0,L[G]):f(L[G].data,null,0,0,L[G].w,L[G].h,null,"fixed",L[G].title);m=!0}else if("mxfile"==E.documentElement.nodeName){for(var K=E.documentElement.getElementsByTagName("diagram"),G=0;G<K.length;G++){var L=mxUtils.getTextContent(K[G]),z=b.stringToCells(Graph.decompress(L)),J=b.editor.graph.getBoundingBoxFromGeometry(z);f(null,null,0,
+0,0,0,{xml:L,w:J.width,h:J.height})}m=!0}}catch(V){}m||(b.spinner.stop(),b.handleError({message:mxResources.get("errorLoadingFile")}))}}catch(V){}return null}function l(b){b.dataTransfer.dropEffect=null!=A?"move":"copy";b.stopPropagation();b.preventDefault()}function m(c){c.stopPropagation();c.preventDefault();C=!1;z=n(c);if(null!=A)null!=z&&z<v.children.length?(p.splice(z>A?z-1:z,0,p.splice(A,1)[0]),v.insertBefore(v.children[A],v.children[z])):(p.push(p.splice(A,1)[0]),v.appendChild(v.children[A]));
+else if(0<c.dataTransfer.files.length)b.importFiles(c.dataTransfer.files,0,0,b.maxImageSize,G(c));else if(0<=mxUtils.indexOf(c.dataTransfer.types,"text/uri-list")){var d=decodeURIComponent(c.dataTransfer.getData("text/uri-list"));(/(\.jpg)($|\?)/i.test(d)||/(\.png)($|\?)/i.test(d)||/(\.gif)($|\?)/i.test(d)||/(\.svg)($|\?)/i.test(d))&&b.loadImage(d,function(b){f(d,null,0,0,b.width,b.height);v.scrollTop=v.scrollHeight})}c.stopPropagation();c.preventDefault()}var p=[];d=document.createElement("div");
d.style.height="100%";var q=document.createElement("div");q.style.whiteSpace="nowrap";q.style.height="40px";d.appendChild(q);mxUtils.write(q,mxResources.get("filename")+":");null==e&&(e=b.defaultLibraryName+".xml");var t=document.createElement("input");t.setAttribute("value",e);t.style.marginRight="20px";t.style.marginLeft="10px";t.style.width="500px";null==g||g.isRenamable()||t.setAttribute("disabled","true");this.init=function(){if(null==g||g.isRenamable())t.focus(),mxClient.IS_GC||mxClient.IS_FF||
5<=document.documentMode?t.select():document.execCommand("selectAll",!1,null)};q.appendChild(t);var v=document.createElement("div");v.style.borderWidth="1px 0px 1px 0px";v.style.borderColor="#d3d3d3";v.style.borderStyle="solid";v.style.marginTop="6px";v.style.overflow="auto";v.style.height="340px";v.style.backgroundPosition="center center";v.style.backgroundRepeat="no-repeat";0==p.length&&Graph.fileSupport&&(v.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')");var u=document.createElement("div");
u.style.position="absolute";u.style.width="640px";u.style.top="260px";u.style.textAlign="center";u.style.fontSize="22px";u.style.color="#a0c3ff";mxUtils.write(u,mxResources.get("dragImagesHere"));d.appendChild(u);var x={},A=null,z=null,B=null;e=function(b){"true"!=mxEvent.getSource(b).getAttribute("contentEditable")&&null!=B&&(B(),B=null,mxEvent.consume(b))};mxEvent.addListener(v,"mousedown",e);mxEvent.addListener(v,"pointerdown",e);mxEvent.addListener(v,"touchstart",e);var y=new mxUrlConverter,C=
-!1;if(null!=c)for(e=0;e<c.length;e++)q=c[e],f(q.data,null,0,0,q.w,q.h,q,q.aspect,q.title);mxEvent.addListener(v,"dragleave",function(b){u.style.cursor="";for(var c=mxEvent.getSource(b);null!=c;){if(c==v||c==u){b.stopPropagation();b.preventDefault();break}c=c.parentNode}});var E=function(c){return function(d,e,l,m,g,p,k,q,t){null!=t&&(/(\.v(dx|sdx?))($|\?)/i.test(t.name)||/(\.vs(x|sx?))($|\?)/i.test(t.name))?b.importVisio(t,mxUtils.bind(this,function(b){f(b,e,l,m,g,p,k,"fixed",mxEvent.isAltDown(c)?
+!1;if(null!=c)for(e=0;e<c.length;e++)q=c[e],f(q.data,null,0,0,q.w,q.h,q,q.aspect,q.title);mxEvent.addListener(v,"dragleave",function(b){u.style.cursor="";for(var c=mxEvent.getSource(b);null!=c;){if(c==v||c==u){b.stopPropagation();b.preventDefault();break}c=c.parentNode}});var G=function(c){return function(d,e,l,m,g,p,k,q,t){null!=t&&(/(\.v(dx|sdx?))($|\?)/i.test(t.name)||/(\.vs(x|sx?))($|\?)/i.test(t.name))?b.importVisio(t,mxUtils.bind(this,function(b){f(b,e,l,m,g,p,k,"fixed",mxEvent.isAltDown(c)?
null:k.substring(0,k.lastIndexOf(".")).replace(/_/g," "))})):null!=t&&!b.isOffline()&&(new XMLHttpRequest).upload&&b.isRemoteFileFormat(d,t.name)?b.parseFile(t,mxUtils.bind(this,function(d){4==d.readyState&&(b.spinner.stop(),200<=d.status&&299>=d.status&&(f(d.responseText,e,l,m,g,p,k,"fixed",mxEvent.isAltDown(c)?null:k.substring(0,k.lastIndexOf(".")).replace(/_/g," ")),v.scrollTop=v.scrollHeight))})):(f(d,e,l,m,g,p,k,"fixed",mxEvent.isAltDown(c)?null:k.substring(0,k.lastIndexOf(".")).replace(/_/g,
" ")),v.scrollTop=v.scrollHeight)}};mxEvent.addListener(v,"dragover",l);mxEvent.addListener(v,"drop",m);mxEvent.addListener(u,"dragover",l);mxEvent.addListener(u,"drop",m);d.appendChild(v);c=document.createElement("div");c.style.textAlign="right";c.style.marginTop="20px";e=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});e.setAttribute("id","btnCancel");e.className="geBtn";b.editor.cancelFirst&&c.appendChild(e);"draw.io"!=b.getServiceName()||null==g||g.constructor!=DriveLibrary&&
g.constructor!=GitHubLibrary||(q=mxUtils.button(mxResources.get("link"),function(){b.spinner.spin(document.body,mxResources.get("loading"))&&g.getPublicUrl(function(c){b.spinner.stop();if(null!=c){var f=b.getSearch("create title mode url drive splash state clibs ui".split(" ")),f=f+((0==f.length?"?":"&")+"splash=0&clibs=U"+encodeURIComponent(c));c=new EmbedDialog(b,window.location.protocol+"//"+window.location.host+"/"+f,null,null,null,null,"Check out the library I made using @drawio");b.showDialog(c.container,
450,240,!0);c.init()}else g.constructor==DriveLibrary?b.showError(mxResources.get("error"),mxResources.get("diagramIsNotPublic"),mxResources.get("share"),mxUtils.bind(this,function(){b.drive.showPermissions(g.getId())}),null,mxResources.get("ok"),mxUtils.bind(this,function(){})):b.handleError({message:mxResources.get("diagramIsNotPublic")})})}),q.className="geBtn",c.appendChild(q));q=mxUtils.button(mxResources.get("export"),function(){var c=b.createLibraryDataFromImages(p),f=t.value;/(\.xml)$/i.test(f)||
(f+=".xml");b.isLocalFileSave()?b.saveLocalFile(c,f,"text/xml",null,null,!0,null,"xml"):(new mxXmlRequest(SAVE_URL,"filename="+encodeURIComponent(f)+"&format=xml&xml="+encodeURIComponent(c))).simulate(document,"_blank")});q.setAttribute("id","btnDownload");q.className="geBtn";c.appendChild(q);if(Graph.fileSupport){if(null==b.libDlgFileInputElt){var D=document.createElement("input");D.setAttribute("multiple","multiple");D.setAttribute("type","file");mxEvent.addListener(D,"change",function(c){C=!1;
-b.importFiles(D.files,0,0,b.maxImageSize,function(b,f,d,e,l,m,g,p,k){null!=D.files&&(E(c)(b,f,d,e,l,m,g,p,k),D.type="",D.type="file",D.value="")});v.scrollTop=v.scrollHeight});D.style.display="none";document.body.appendChild(D);b.libDlgFileInputElt=D}q=mxUtils.button(mxResources.get("import"),function(){null!=B&&(B(),B=null);b.libDlgFileInputElt.click()});q.setAttribute("id","btnAddImage");q.className="geBtn";c.appendChild(q)}q=mxUtils.button(mxResources.get("addImages"),function(){null!=B&&(B(),
+b.importFiles(D.files,0,0,b.maxImageSize,function(b,f,d,e,l,m,g,p,k){null!=D.files&&(G(c)(b,f,d,e,l,m,g,p,k),D.type="",D.type="file",D.value="")});v.scrollTop=v.scrollHeight});D.style.display="none";document.body.appendChild(D);b.libDlgFileInputElt=D}q=mxUtils.button(mxResources.get("import"),function(){null!=B&&(B(),B=null);b.libDlgFileInputElt.click()});q.setAttribute("id","btnAddImage");q.className="geBtn";c.appendChild(q)}q=mxUtils.button(mxResources.get("addImages"),function(){null!=B&&(B(),
B=null);b.showImageDialog(mxResources.get("addImageUrl"),"",function(b,c,d){C=!1;if(null!=b){if("data:image/"==b.substring(0,11)){var e=b.indexOf(",");0<e&&(b=b.substring(0,e)+";base64,"+b.substring(e+1))}f(b,null,0,0,c,d);v.scrollTop=v.scrollHeight}})});q.setAttribute("id","btnAddImageUrl");q.className="geBtn";c.appendChild(q);this.saveBtnClickHandler=function(c,f,d,e){b.saveLibrary(c,f,d,e)};q=mxUtils.button(mxResources.get("save"),mxUtils.bind(this,function(){null!=B&&(B(),B=null);this.saveBtnClickHandler(t.value,
p,g,k)}));q.setAttribute("id","btnSave");q.className="geBtn gePrimaryBtn";c.appendChild(q);b.editor.cancelFirst||c.appendChild(e);d.appendChild(c);this.container=d},EditShapeDialog=function(b,e,d,c,g){c=null!=c?c:300;g=null!=g?g:120;var k,n,f=document.createElement("table"),l=document.createElement("tbody");f.style.cellPadding="4px";k=document.createElement("tr");n=document.createElement("td");n.setAttribute("colspan","2");n.style.fontSize="10pt";mxUtils.write(n,d);k.appendChild(n);l.appendChild(k);
k=document.createElement("tr");n=document.createElement("td");var m=document.createElement("textarea");m.style.outline="none";m.style.resize="none";m.style.width=c-200+"px";m.style.height=g+"px";this.textarea=m;this.init=function(){m.focus();m.scrollTop=0};n.appendChild(m);k.appendChild(n);n=document.createElement("td");d=document.createElement("div");d.style.position="relative";d.style.border="1px solid gray";d.style.top="6px";d.style.width="200px";d.style.height=g+4+"px";d.style.overflow="hidden";
@@ -10445,44 +10445,44 @@ l=l.documentElement.getElementsByTagName("parsererror");if(null!=l&&0<l.length)b
(c.setSelectionCell(f),c.scrollCellToVisible(f))}};d=mxUtils.button(mxResources.get("preview"),function(){v(p,q,!1)});d.className="geBtn";n.appendChild(d);d=mxUtils.button(mxResources.get("apply"),function(){v(b.editor.graph,e,!0)});d.className="geBtn gePrimaryBtn";n.appendChild(d);b.editor.cancelFirst||n.appendChild(g);k.appendChild(n);l.appendChild(k);f.appendChild(l);this.container=f},CustomDialog=function(b,e,d,c,g,k,n,f,l,m,p){var q=document.createElement("div");q.appendChild(e);var t=document.createElement("div");
t.style.marginTop="30px";t.style.textAlign="center";null!=n&&t.appendChild(n);b.isOffline()||null==k||(e=mxUtils.button(mxResources.get("help"),function(){b.openLink(k)}),e.className="geBtn",t.appendChild(e));l=mxUtils.button(l||mxResources.get("cancel"),function(){b.hideDialog();null!=c&&c()});l.className="geBtn";f&&(l.style.display="none");b.editor.cancelFirst&&t.appendChild(l);g=mxUtils.button(g||mxResources.get("ok"),mxUtils.bind(this,function(){m||b.hideDialog(null,null,this.container);if(null!=
d){var c=d();if("string"===typeof c){b.showError(mxResources.get("error"),c);return}}m&&b.hideDialog(null,null,this.container)}));t.appendChild(g);g.className="geBtn gePrimaryBtn";b.editor.cancelFirst||t.appendChild(l);if(null!=p)for(f=0;f<p.length;f++)(function(b,c,f){b=mxUtils.button(b,function(b){c(b)});null!=f&&b.setAttribute("title",f);b.className="geBtn";t.appendChild(b)})(p[f][0],p[f][1],p[f][2]);q.appendChild(t);this.cancelBtn=l;this.okButton=g;this.container=q},TemplatesDialog=function(b,
-e,d,c,g,k,n,f,l,m,p,q,t,v,u){function x(b){ua.innerHTML=mxUtils.htmlEntities(b);ua.style.display="block";setTimeout(function(){ua.style.display="none"},4E3)}function A(){null!=L&&(L.style.fontWeight="normal",L.style.textDecoration="none",O=L,L=null)}function z(b,c,f,d,e,l,m){if(-1<b.className.indexOf("geTempDlgRadioBtnActive"))return!1;b.className+=" geTempDlgRadioBtnActive";M.querySelector(".geTempDlgRadioBtn[data-id="+d+"]").className="geTempDlgRadioBtn "+(m?"geTempDlgRadioBtnLarge":"geTempDlgRadioBtnSmall");
+e,d,c,g,k,n,f,l,m,p,q,t,v,u){function x(b){ta.innerHTML=mxUtils.htmlEntities(b);ta.style.display="block";setTimeout(function(){ta.style.display="none"},4E3)}function A(){null!=L&&(L.style.fontWeight="normal",L.style.textDecoration="none",Q=L,L=null)}function z(b,c,f,d,e,l,m){if(-1<b.className.indexOf("geTempDlgRadioBtnActive"))return!1;b.className+=" geTempDlgRadioBtnActive";M.querySelector(".geTempDlgRadioBtn[data-id="+d+"]").className="geTempDlgRadioBtn "+(m?"geTempDlgRadioBtnLarge":"geTempDlgRadioBtnSmall");
M.querySelector("."+c).src="/images/"+f+"-sel.svg";M.querySelector("."+e).src="/images/"+l+".svg";return!0}function B(c,f,d,e){function m(c,f){if(null==p){var d=c,d=/^https?:\/\//.test(d)&&!b.editor.isCorsEnabledForUrl(d)?PROXY_URL+"?url="+encodeURIComponent(d):TEMPLATE_PATH+"/"+d;mxUtils.get(d,mxUtils.bind(this,function(b){200<=b.getStatus()&&299>=b.getStatus()&&(p=b.getText());f(p)}))}else f(p)}function g(d,e,l){if(null!=d&&mxUtils.isAncestorNode(document.body,f)&&(d=mxUtils.parseXml(d),d=Editor.extractGraphModel(d.documentElement,
!0),null!=d)){"mxfile"==d.nodeName&&(d=Editor.parseDiagramNode(d.getElementsByTagName("diagram")[0]));var m=new mxCodec(d.ownerDocument),g=new mxGraphModel;m.decode(d,g);d=g.root.getChildAt(0).children||[];b.sidebar.createTooltip(f,d,Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-80,1E3),Math.min((window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-80,800),null!=c.title?mxResources.get(c.title,null,c.title):null,!0,
-new mxPoint(e,l),!0,null,!0);var p=document.createElement("div");p.className="geTempDlgDialogMask";M.appendChild(p);var k=b.sidebar.hideTooltip;b.sidebar.hideTooltip=function(){p&&(M.removeChild(p),p=null,k.apply(this,arguments),b.sidebar.hideTooltip=k)};mxEvent.addListener(p,"click",function(){b.sidebar.hideTooltip()})}}var p=null;if(na||b.sidebar.currentElt==f)b.sidebar.hideTooltip();else{var k=function(c){na&&b.sidebar.currentElt==f&&g(c,mxEvent.getClientX(e),mxEvent.getClientY(e));na=!1;d.src=
-"/images/icon-search.svg"};b.sidebar.hideTooltip();b.sidebar.currentElt=f;na=!0;d.src="/images/aui-wait.gif";c.isExt?l(c,k,function(){x(mxResources.get("cantLoadPrev"));na=!1;d.src="/images/icon-search.svg"}):m(c.url,k)}}function y(b,c,f){if(null!=S){for(var d=S.className.split(" "),e=0;e<d.length;e++)if(-1<d[e].indexOf("Active")){d.splice(e,1);break}S.className=d.join(" ")}null!=b?(S=b,S.className+=" "+c,da=f,fa.className="geTempDlgCreateBtn"):(da=S=null,fa.className="geTempDlgCreateBtn geTempDlgBtnDisabled")}
-function C(c,f){if(null!=da){var d=function(c){t.isExternal?l(t,function(b){g(b,c)},p):t.url?mxUtils.get(TEMPLATE_PATH+"/"+t.url,mxUtils.bind(this,function(b){200<=b.getStatus()&&299>=b.getStatus()?g(b.getText(),c):p()})):g(b.emptyDiagramXml,c)},g=function(c,d){u||b.hideDialog(!0);e(c,d,t,f)},p=function(){x(mxResources.get("cannotLoad"));k()},k=function(){da=t;fa.className="geTempDlgCreateBtn";f&&(ha.className="geTempDlgOpenBtn")},t=da;da=null;"boolean"!==typeof f&&(f=t.isExternal&&q);if(1==c)m(t.url,
-t);else if(f)ha.className="geTempDlgOpenBtn geTempDlgBtnDisabled geTempDlgBtnBusy",d();else{fa.className="geTempDlgCreateBtn geTempDlgBtnDisabled geTempDlgBtnBusy";var n=null==b.mode||b.mode==App.MODE_GOOGLE||b.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"),n=new FilenameDialog(b,b.defaultFilename+".drawio",mxResources.get("ok"),d,n,function(b){var c=null!=b&&0<b.length;return c&&u?(d(b),!1):c},null,null,null,k,v?null:[]);b.showDialog(n.container,350,80,!0,!0);n.init()}}}
-function E(b){fa.innerHTML=mxUtils.htmlEntities(mxResources.get(Q||b?"create":"copy"));b=b?"none":"";q&&(ha.style.display=b);for(var c=M.querySelectorAll(".geTempDlgLinkToDiagram"),f=0;f<c.length;f++)c[f].style.display=b}function D(c,f,d,e,l){l||(Z.innerHTML="",y(),oa=c,ra=e);var m=null;if(d){m=document.createElement("table");m.className="geTempDlgDiagramsListGrid";var g=document.createElement("tr"),p=document.createElement("th");p.style.width="50%";p.innerHTML=mxUtils.htmlEntities(mxResources.get("diagram"));
-g.appendChild(p);p=document.createElement("th");p.style.width="25%";p.innerHTML=mxUtils.htmlEntities(mxResources.get("changedBy"));g.appendChild(p);p=document.createElement("th");p.style.width="25%";p.innerHTML=mxUtils.htmlEntities(mxResources.get("lastModifiedOn"));g.appendChild(p);m.appendChild(g);Z.appendChild(m)}for(g=0;g<c.length;g++){c[g].isExternal=!f;var k=c[g].url,q=(p=mxUtils.htmlEntities(f?mxResources.get(c[g].title,null,c[g].title):c[g].title))||c[g].url,t=c[g].imgUrl,n=mxUtils.htmlEntities(c[g].changedBy||
+new mxPoint(e,l),!0,null,!0);var p=document.createElement("div");p.className="geTempDlgDialogMask";M.appendChild(p);var k=b.sidebar.hideTooltip;b.sidebar.hideTooltip=function(){p&&(M.removeChild(p),p=null,k.apply(this,arguments),b.sidebar.hideTooltip=k)};mxEvent.addListener(p,"click",function(){b.sidebar.hideTooltip()})}}var p=null;if(qa||b.sidebar.currentElt==f)b.sidebar.hideTooltip();else{var k=function(c){qa&&b.sidebar.currentElt==f&&g(c,mxEvent.getClientX(e),mxEvent.getClientY(e));qa=!1;d.src=
+"/images/icon-search.svg"};b.sidebar.hideTooltip();b.sidebar.currentElt=f;qa=!0;d.src="/images/aui-wait.gif";c.isExt?l(c,k,function(){x(mxResources.get("cantLoadPrev"));qa=!1;d.src="/images/icon-search.svg"}):m(c.url,k)}}function y(b,c,f){if(null!=T){for(var d=T.className.split(" "),e=0;e<d.length;e++)if(-1<d[e].indexOf("Active")){d.splice(e,1);break}T.className=d.join(" ")}null!=b?(T=b,T.className+=" "+c,da=f,na.className="geTempDlgCreateBtn"):(da=T=null,na.className="geTempDlgCreateBtn geTempDlgBtnDisabled")}
+function C(c,f){if(null!=da){var d=function(c){t.isExternal?l(t,function(b){g(b,c)},p):t.url?mxUtils.get(TEMPLATE_PATH+"/"+t.url,mxUtils.bind(this,function(b){200<=b.getStatus()&&299>=b.getStatus()?g(b.getText(),c):p()})):g(b.emptyDiagramXml,c)},g=function(c,d){u||b.hideDialog(!0);e(c,d,t,f)},p=function(){x(mxResources.get("cannotLoad"));k()},k=function(){da=t;na.className="geTempDlgCreateBtn";f&&(ga.className="geTempDlgOpenBtn")},t=da;da=null;"boolean"!==typeof f&&(f=t.isExternal&&q);if(1==c)m(t.url,
+t);else if(f)ga.className="geTempDlgOpenBtn geTempDlgBtnDisabled geTempDlgBtnBusy",d();else{na.className="geTempDlgCreateBtn geTempDlgBtnDisabled geTempDlgBtnBusy";var n=null==b.mode||b.mode==App.MODE_GOOGLE||b.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"),n=new FilenameDialog(b,b.defaultFilename+".drawio",mxResources.get("ok"),d,n,function(b){var c=null!=b&&0<b.length;return c&&u?(d(b),!1):c},null,null,null,k,v?null:[]);b.showDialog(n.container,350,80,!0,!0);n.init()}}}
+function G(b){na.innerHTML=mxUtils.htmlEntities(mxResources.get(V||b?"create":"copy"));b=b?"none":"";q&&(ga.style.display=b);for(var c=M.querySelectorAll(".geTempDlgLinkToDiagram"),f=0;f<c.length;f++)c[f].style.display=b}function D(c,f,d,e,l){l||(O.innerHTML="",y(),ha=c,sa=e);var m=null;if(d){m=document.createElement("table");m.className="geTempDlgDiagramsListGrid";var g=document.createElement("tr"),p=document.createElement("th");p.style.width="50%";p.innerHTML=mxUtils.htmlEntities(mxResources.get("diagram"));
+g.appendChild(p);p=document.createElement("th");p.style.width="25%";p.innerHTML=mxUtils.htmlEntities(mxResources.get("changedBy"));g.appendChild(p);p=document.createElement("th");p.style.width="25%";p.innerHTML=mxUtils.htmlEntities(mxResources.get("lastModifiedOn"));g.appendChild(p);m.appendChild(g);O.appendChild(m)}for(g=0;g<c.length;g++){c[g].isExternal=!f;var k=c[g].url,q=(p=mxUtils.htmlEntities(f?mxResources.get(c[g].title,null,c[g].title):c[g].title))||c[g].url,t=c[g].imgUrl,n=mxUtils.htmlEntities(c[g].changedBy||
""),L="";c[g].lastModifiedOn&&(L=b.timeSince(new Date(c[g].lastModifiedOn)),null==L&&(L=mxResources.get("lessThanAMinute")),L=mxUtils.htmlEntities(mxResources.get("timeAgo",[L],"{1} ago")));t||(t=TEMPLATE_PATH+"/"+k.substring(0,k.length-4)+".png");k=d?50:15;null!=p&&p.length>k&&(p=p.substring(0,k)+"&hellip;");if(d){var v=document.createElement("tr"),t=document.createElement("td"),u=document.createElement("img");u.src="/images/icon-search.svg";u.className="geTempDlgDiagramListPreviewBtn";u.setAttribute("title",
-mxResources.get("preview"));l||t.appendChild(u);q=document.createElement("span");q.className="geTempDlgDiagramTitle";q.innerHTML=p;t.appendChild(q);v.appendChild(t);t=document.createElement("td");t.innerHTML=n;v.appendChild(t);t=document.createElement("td");t.innerHTML=L;v.appendChild(t);m.appendChild(v);null==S&&(E(f),y(v,"geTempDlgDiagramsListGridActive",c[g]));(function(b,c,d){mxEvent.addListener(v,"click",function(){S!=c&&(E(f),y(c,"geTempDlgDiagramsListGridActive",b))});mxEvent.addListener(v,
-"dblclick",C);mxEvent.addListener(u,"click",function(f){B(b,c,d,f)})})(c[g],v,u)}else{var x=document.createElement("div");x.className="geTempDlgDiagramTile";x.setAttribute("title",q);null==S&&(E(f),y(x,"geTempDlgDiagramTileActive",c[g]));n=document.createElement("div");n.className="geTempDlgDiagramTileImg geTempDlgDiagramTileImgLoading";var A=document.createElement("img");A.style.display="none";(function(b,c,f){A.onload=function(){c.className="geTempDlgDiagramTileImg";b.style.display=""};A.onerror=
+mxResources.get("preview"));l||t.appendChild(u);q=document.createElement("span");q.className="geTempDlgDiagramTitle";q.innerHTML=p;t.appendChild(q);v.appendChild(t);t=document.createElement("td");t.innerHTML=n;v.appendChild(t);t=document.createElement("td");t.innerHTML=L;v.appendChild(t);m.appendChild(v);null==T&&(G(f),y(v,"geTempDlgDiagramsListGridActive",c[g]));(function(b,c,d){mxEvent.addListener(v,"click",function(){T!=c&&(G(f),y(c,"geTempDlgDiagramsListGridActive",b))});mxEvent.addListener(v,
+"dblclick",C);mxEvent.addListener(u,"click",function(f){B(b,c,d,f)})})(c[g],v,u)}else{var x=document.createElement("div");x.className="geTempDlgDiagramTile";x.setAttribute("title",q);null==T&&(G(f),y(x,"geTempDlgDiagramTileActive",c[g]));n=document.createElement("div");n.className="geTempDlgDiagramTileImg geTempDlgDiagramTileImgLoading";var A=document.createElement("img");A.style.display="none";(function(b,c,f){A.onload=function(){c.className="geTempDlgDiagramTileImg";b.style.display=""};A.onerror=
function(){this.src!=f?this.src=f:c.className="geTempDlgDiagramTileImg geTempDlgDiagramTileImgError"}})(A,n,t?t.replace(".drawio.xml","").replace(".drawio","").replace(".xml",""):"");A.src=t;n.appendChild(A);x.appendChild(n);n=document.createElement("div");n.className="geTempDlgDiagramTileLbl";n.innerHTML=null!=p?p:"";x.appendChild(n);u=document.createElement("img");u.src="/images/icon-search.svg";u.className="geTempDlgDiagramPreviewBtn";u.setAttribute("title",mxResources.get("preview"));l||x.appendChild(u);
-(function(b,c,d){mxEvent.addListener(x,"click",function(){S!=c&&(E(f),y(c,"geTempDlgDiagramTileActive",b))});mxEvent.addListener(x,"dblclick",C);mxEvent.addListener(u,"click",function(f){B(b,c,d,f)})})(c[g],x,u);Z.appendChild(x)}}for(var O in e)c=e[O],0<c.length&&(l=document.createElement("div"),l.className="geTempDlgImportCat",l.innerHTML=mxResources.get(O,null,O),Z.appendChild(l),D(c,f,d,null,!0))}function F(b,c){ca.innerHTML="";y();for(var f=Math.floor(ca.offsetWidth/150)-1,d=!c&&b.length>f?f:
-b.length,e=0;e<d;e++){var l=b[e];l.isCategory=!0;var m=document.createElement("div"),g=mxResources.get(l.title);null==g&&(g=l.title.substring(0,1).toUpperCase()+l.title.substring(1));m.className="geTempDlgNewDiagramCatItem";m.setAttribute("title",g);g=mxUtils.htmlEntities(g);15<g.length&&(g=g.substring(0,15)+"&hellip;");null==S&&(E(!0),y(m,"geTempDlgNewDiagramCatItemActive",l));var p=document.createElement("div");p.className="geTempDlgNewDiagramCatItemImg";var k=document.createElement("img");k.src=
-NEW_DIAGRAM_CATS_PATH+"/"+l.img;p.appendChild(k);m.appendChild(p);p=document.createElement("div");p.className="geTempDlgNewDiagramCatItemLbl";p.innerHTML=g;m.appendChild(p);ca.appendChild(m);(function(b,c){mxEvent.addListener(m,"click",function(){S!=c&&(E(!0),y(c,"geTempDlgNewDiagramCatItemActive",b))});mxEvent.addListener(m,"dblclick",C)})(l,m)}m=document.createElement("div");m.className="geTempDlgNewDiagramCatItem";g=mxResources.get("showAllTemps");m.setAttribute("title",g);p=document.createElement("div");
-p.className="geTempDlgNewDiagramCatItemImg";p.innerHTML="...";p.style.fontSize="32px";m.appendChild(p);p=document.createElement("div");p.className="geTempDlgNewDiagramCatItemLbl";p.innerHTML=g;m.appendChild(p);ca.appendChild(m);mxEvent.addListener(m,"click",function(){function b(){var f=c.querySelector(".geTemplateDrawioCatLink");null!=f?f.click():setTimeout(b,200)}Q=!0;var c=M.querySelector(".geTemplatesList");c.style.display="block";ga.style.width="";ja.style.display="";ja.value="";ea=null;b()});
-T.style.display=b.length<=f?"none":""}function G(b,c,f){function d(b,c){var f=mxResources.get(b);null==f&&(f=b.substring(0,1).toUpperCase()+b.substring(1));var d=f+" ("+c.length+")",e=f=mxUtils.htmlEntities(f);15<f.length&&(f=f.substring(0,15)+"&hellip;");return{lbl:f+" ("+c.length+")",fullLbl:d,lblOnly:e}}function e(f,d,e,l,m){mxEvent.addListener(e,"click",function(){L!=e&&(null!=L?(L.style.fontWeight="normal",L.style.textDecoration="none"):(X.style.display="none",sa.style.minHeight="100%"),L=e,
-L.style.fontWeight="bold",L.style.textDecoration="underline",ga.scrollTop=0,Y&&(W=!0),U.innerHTML=d,ma.style.display="none",D(m?c[f]:l?R[f][l]:b[f],m?!1:!0))})}var l=M.querySelector(".geTemplatesList");if(0<f){f=document.createElement("div");f.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;margin-top: 10px;";mxUtils.write(f,mxResources.get("custom"));l.appendChild(f);for(var m in c){f=document.createElement("div");var g=c[m],g=d(m,g);f.className="geTemplateCatLink";
-f.setAttribute("title",g.fullLbl);f.innerHTML=g.lbl;l.appendChild(f);e(m,g.lblOnly,f,null,!0)}f=document.createElement("div");f.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;margin-top: 10px;";mxUtils.write(f,"draw.io");l.appendChild(f)}for(m in b){var p=R[m],k=f=document.createElement(p?"ul":"div"),g=b[m],g=d(m,g);if(null!=p){var q=document.createElement("li"),t=document.createElement("div");t.className="geTempTreeCaret geTemplateCatLink geTemplateDrawioCatLink";
-t.style.padding="0";t.setAttribute("title",g.fullLbl);t.innerHTML=g.lbl;k=t;q.appendChild(t);var n=document.createElement("ul");n.className="geTempTreeNested";n.style.visibility="hidden";for(var v in p){var y=document.createElement("li"),u=d(v,p[v]);y.setAttribute("title",u.fullLbl);y.innerHTML=u.lbl;y.className="geTemplateCatLink";y.style.padding="0";y.style.margin="0";e(m,u.lblOnly,y,v);n.appendChild(y)}q.appendChild(n);f.className="geTempTree";f.appendChild(q);(function(b,c){mxEvent.addListener(c,
-"click",function(){for(var f=b.querySelectorAll("li"),d=0;d<f.length;d++)f[d].style.margin="";b.style.visibility="visible";b.classList.toggle("geTempTreeActive");b.classList.toggle("geTempTreeNested")&&setTimeout(function(){for(var c=0;c<f.length;c++)f[c].style.margin="0";b.style.visibility="hidden"},250);c.classList.toggle("geTempTreeCaret-down")})})(n,t)}else f.className="geTemplateCatLink geTemplateDrawioCatLink",f.setAttribute("title",g.fullLbl),f.innerHTML=g.lbl;l.appendChild(f);e(m,g.lblOnly,
-k)}}function I(){mxUtils.get(c,function(b){if(!la){la=!0;b=b.getXml().documentElement.firstChild;for(var c={};null!=b;){if("undefined"!==typeof b.getAttribute)if("clibs"==b.nodeName){for(var f=b.getAttribute("name"),d=b.getElementsByTagName("add"),e=[],l=0;l<d.length;l++)e.push(encodeURIComponent(mxUtils.getTextContent(d[l])));null!=f&&0<e.length&&(c[f]=e.join(";"))}else if(e=b.getAttribute("url"),null!=e){d=b.getAttribute("section");f=b.getAttribute("subsection");if(null==d&&(l=e.indexOf("/"),d=
-e.substring(0,l),null==f)){var m=e.indexOf("/",l+1);-1<m&&(f=e.substring(l+1,m))}l=ba[d];null==l&&(wa++,l=[],ba[d]=l);e=b.getAttribute("clibs");null!=c[e]&&(e=c[e]);e={url:b.getAttribute("url"),libs:b.getAttribute("libs"),title:b.getAttribute("title")||b.getAttribute("name"),preview:b.getAttribute("preview"),clibs:e,tags:b.getAttribute("tags")};l.push(e);null!=f&&(l=R[d],null==l&&(l={},R[d]=l),d=l[f],null==d&&(d=[],l[f]=d),d.push(e))}b=b.nextSibling}G(ba,ya,xa)}})}function J(b){n&&(ga.scrollTop=0,
-Z.innerHTML="",ia.spin(Z),W=!1,Y=!0,U.innerHTML=mxUtils.htmlEntities(mxResources.get("recentDiag")),ea=null,n(ta,function(){x(mxResources.get("cannotLoad"));ta([])},b?null:k))}function H(b){if(""==b)null!=O&&(O.click(),O=null);else{if(null==TemplatesDialog.tagsList[c]){var f={},d;for(d in ba)for(var e=ba[d],l=0;l<e.length;l++){var m=e[l];if(null!=m.tags)for(var g=m.tags.toLowerCase().split(";"),p=0;p<g.length;p++)null==f[g[p]]&&(f[g[p]]=[]),f[g[p]].push(m)}TemplatesDialog.tagsList[c]=f}var k=b.toLowerCase().split(" "),
-f=TemplatesDialog.tagsList[c];if(0<xa&&null==f.__tagsList__){for(d in ya)for(e=ya[d],l=0;l<e.length;l++)for(m=e[l],g=m.title.split(" "),g.push(d),p=0;p<g.length;p++){var q=g[p].toLowerCase();null==f[q]&&(f[q]=[]);f[q].push(m)}f.__tagsList__=!0}d=[];e={};for(l=g=0;l<k.length;l++)if(0<k[l].length){var q=f[k[l]],t={};d=[];if(null!=q)for(p=0;p<q.length;p++)m=q[p],0==g==(null==e[m.url])&&(t[m.url]=!0,d.push(m));e=t;g++}0==d.length?U.innerHTML=mxResources.get("noResultsFor",[b]):D(d,!0)}}function K(b){if(ea!=
-b||aa!=qa)A(),ga.scrollTop=0,Z.innerHTML="",U.innerHTML=mxUtils.htmlEntities(mxResources.get("searchResults"))+' "'+mxUtils.htmlEntities(b)+'"',za=null,Q?H(b):f&&(b?(ia.spin(Z),W=!1,Y=!0,f(b,ta,function(){x(mxResources.get("searchFailed"));ta([])},aa?null:k)):J(aa)),ea=b,qa=aa}function P(b){null!=za&&clearTimeout(za);13==b.keyCode?K(ja.value):za=setTimeout(function(){K(ja.value)},1E3)}var N='<div class="geTempDlgHeader"><img src="/images/draw.io-logo.svg" class="geTempDlgHeaderLogo"><input type="search" class="geTempDlgSearchBox" '+
+(function(b,c,d){mxEvent.addListener(x,"click",function(){T!=c&&(G(f),y(c,"geTempDlgDiagramTileActive",b))});mxEvent.addListener(x,"dblclick",C);mxEvent.addListener(u,"click",function(f){B(b,c,d,f)})})(c[g],x,u);O.appendChild(x)}}for(var Q in e)c=e[Q],0<c.length&&(l=document.createElement("div"),l.className="geTempDlgImportCat",l.innerHTML=mxResources.get(Q,null,Q),O.appendChild(l),D(c,f,d,null,!0))}function E(b,c){U.innerHTML="";y();for(var f=Math.floor(U.offsetWidth/150)-1,d=!c&&b.length>f?f:b.length,
+e=0;e<d;e++){var l=b[e];l.isCategory=!0;var m=document.createElement("div"),g=mxResources.get(l.title);null==g&&(g=l.title.substring(0,1).toUpperCase()+l.title.substring(1));m.className="geTempDlgNewDiagramCatItem";m.setAttribute("title",g);g=mxUtils.htmlEntities(g);15<g.length&&(g=g.substring(0,15)+"&hellip;");null==T&&(G(!0),y(m,"geTempDlgNewDiagramCatItemActive",l));var p=document.createElement("div");p.className="geTempDlgNewDiagramCatItemImg";var k=document.createElement("img");k.src=NEW_DIAGRAM_CATS_PATH+
+"/"+l.img;p.appendChild(k);m.appendChild(p);p=document.createElement("div");p.className="geTempDlgNewDiagramCatItemLbl";p.innerHTML=g;m.appendChild(p);U.appendChild(m);(function(b,c){mxEvent.addListener(m,"click",function(){T!=c&&(G(!0),y(c,"geTempDlgNewDiagramCatItemActive",b))});mxEvent.addListener(m,"dblclick",C)})(l,m)}m=document.createElement("div");m.className="geTempDlgNewDiagramCatItem";g=mxResources.get("showAllTemps");m.setAttribute("title",g);p=document.createElement("div");p.className=
+"geTempDlgNewDiagramCatItemImg";p.innerHTML="...";p.style.fontSize="32px";m.appendChild(p);p=document.createElement("div");p.className="geTempDlgNewDiagramCatItemLbl";p.innerHTML=g;m.appendChild(p);U.appendChild(m);mxEvent.addListener(m,"click",function(){function b(){var f=c.querySelector(".geTemplateDrawioCatLink");null!=f?f.click():setTimeout(b,200)}V=!0;var c=M.querySelector(".geTemplatesList");c.style.display="block";ca.style.width="";ba.style.display="";ba.value="";la=null;b()});Z.style.display=
+b.length<=f?"none":""}function F(b,c,f){function d(b,c){var f=mxResources.get(b);null==f&&(f=b.substring(0,1).toUpperCase()+b.substring(1));var d=f+" ("+c.length+")",e=f=mxUtils.htmlEntities(f);15<f.length&&(f=f.substring(0,15)+"&hellip;");return{lbl:f+" ("+c.length+")",fullLbl:d,lblOnly:e}}function e(f,d,e,l,m){mxEvent.addListener(e,"click",function(){L!=e&&(null!=L?(L.style.fontWeight="normal",L.style.textDecoration="none"):(ra.style.display="none",pa.style.minHeight="100%"),L=e,L.style.fontWeight=
+"bold",L.style.textDecoration="underline",ca.scrollTop=0,W&&(X=!0),fa.innerHTML=d,Y.style.display="none",D(m?c[f]:l?R[f][l]:b[f],m?!1:!0))})}var l=M.querySelector(".geTemplatesList");if(0<f){f=document.createElement("div");f.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;margin-top: 10px;";mxUtils.write(f,mxResources.get("custom"));l.appendChild(f);for(var m in c){f=document.createElement("div");var g=c[m],g=d(m,g);f.className="geTemplateCatLink";f.setAttribute("title",
+g.fullLbl);f.innerHTML=g.lbl;l.appendChild(f);e(m,g.lblOnly,f,null,!0)}f=document.createElement("div");f.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;margin-top: 10px;";mxUtils.write(f,"draw.io");l.appendChild(f)}for(m in b){var p=R[m],k=f=document.createElement(p?"ul":"div"),g=b[m],g=d(m,g);if(null!=p){var q=document.createElement("li"),t=document.createElement("div");t.className="geTempTreeCaret geTemplateCatLink geTemplateDrawioCatLink";t.style.padding=
+"0";t.setAttribute("title",g.fullLbl);t.innerHTML=g.lbl;k=t;q.appendChild(t);var n=document.createElement("ul");n.className="geTempTreeNested";n.style.visibility="hidden";for(var v in p){var y=document.createElement("li"),u=d(v,p[v]);y.setAttribute("title",u.fullLbl);y.innerHTML=u.lbl;y.className="geTemplateCatLink";y.style.padding="0";y.style.margin="0";e(m,u.lblOnly,y,v);n.appendChild(y)}q.appendChild(n);f.className="geTempTree";f.appendChild(q);(function(b,c){mxEvent.addListener(c,"click",function(){for(var f=
+b.querySelectorAll("li"),d=0;d<f.length;d++)f[d].style.margin="";b.style.visibility="visible";b.classList.toggle("geTempTreeActive");b.classList.toggle("geTempTreeNested")&&setTimeout(function(){for(var c=0;c<f.length;c++)f[c].style.margin="0";b.style.visibility="hidden"},250);c.classList.toggle("geTempTreeCaret-down")})})(n,t)}else f.className="geTemplateCatLink geTemplateDrawioCatLink",f.setAttribute("title",g.fullLbl),f.innerHTML=g.lbl;l.appendChild(f);e(m,g.lblOnly,k)}}function J(){mxUtils.get(c,
+function(b){if(!ma){ma=!0;b=b.getXml().documentElement.firstChild;for(var c={};null!=b;){if("undefined"!==typeof b.getAttribute)if("clibs"==b.nodeName){for(var f=b.getAttribute("name"),d=b.getElementsByTagName("add"),e=[],l=0;l<d.length;l++)e.push(encodeURIComponent(mxUtils.getTextContent(d[l])));null!=f&&0<e.length&&(c[f]=e.join(";"))}else if(e=b.getAttribute("url"),null!=e){d=b.getAttribute("section");f=b.getAttribute("subsection");if(null==d&&(l=e.indexOf("/"),d=e.substring(0,l),null==f)){var m=
+e.indexOf("/",l+1);-1<m&&(f=e.substring(l+1,m))}l=aa[d];null==l&&(ua++,l=[],aa[d]=l);e=b.getAttribute("clibs");null!=c[e]&&(e=c[e]);e={url:b.getAttribute("url"),libs:b.getAttribute("libs"),title:b.getAttribute("title")||b.getAttribute("name"),preview:b.getAttribute("preview"),clibs:e,tags:b.getAttribute("tags")};l.push(e);null!=f&&(l=R[d],null==l&&(l={},R[d]=l),d=l[f],null==d&&(d=[],l[f]=d),d.push(e))}b=b.nextSibling}F(aa,za,va)}})}function K(b){n&&(ca.scrollTop=0,O.innerHTML="",ja.spin(O),X=!1,W=
+!0,fa.innerHTML=mxUtils.htmlEntities(mxResources.get("recentDiag")),la=null,n(xa,function(){x(mxResources.get("cannotLoad"));xa([])},b?null:k))}function H(b){if(""==b)null!=Q&&(Q.click(),Q=null);else{if(null==TemplatesDialog.tagsList[c]){var f={},d;for(d in aa)for(var e=aa[d],l=0;l<e.length;l++){var m=e[l];if(null!=m.tags)for(var g=m.tags.toLowerCase().split(";"),p=0;p<g.length;p++)null==f[g[p]]&&(f[g[p]]=[]),f[g[p]].push(m)}TemplatesDialog.tagsList[c]=f}var k=b.toLowerCase().split(" "),f=TemplatesDialog.tagsList[c];
+if(0<va&&null==f.__tagsList__){for(d in za)for(e=za[d],l=0;l<e.length;l++)for(m=e[l],g=m.title.split(" "),g.push(d),p=0;p<g.length;p++){var q=g[p].toLowerCase();null==f[q]&&(f[q]=[]);f[q].push(m)}f.__tagsList__=!0}d=[];e={};for(l=g=0;l<k.length;l++)if(0<k[l].length){var q=f[k[l]],t={};d=[];if(null!=q)for(p=0;p<q.length;p++)m=q[p],0==g==(null==e[m.url])&&(t[m.url]=!0,d.push(m));e=t;g++}0==d.length?fa.innerHTML=mxResources.get("noResultsFor",[b]):D(d,!0)}}function I(b){if(la!=b||ea!=ka)A(),ca.scrollTop=
+0,O.innerHTML="",fa.innerHTML=mxUtils.htmlEntities(mxResources.get("searchResults"))+' "'+mxUtils.htmlEntities(b)+'"',wa=null,V?H(b):f&&(b?(ja.spin(O),X=!1,W=!0,f(b,xa,function(){x(mxResources.get("searchFailed"));xa([])},ea?null:k)):K(ea)),la=b,ka=ea}function S(b){null!=wa&&clearTimeout(wa);13==b.keyCode?I(ba.value):wa=setTimeout(function(){I(ba.value)},1E3)}var P='<div class="geTempDlgHeader"><img src="/images/draw.io-logo.svg" class="geTempDlgHeaderLogo"><input type="search" class="geTempDlgSearchBox" '+
(f?"":'style="display: none"')+' placeholder="'+mxResources.get("search")+'"></div><div class="geTemplatesList" style="display: none"><div class="geTempDlgBack">&lt; '+mxResources.get("back")+'</div><div class="geTempDlgHLine"></div><div class="geTemplatesLbl">'+mxResources.get("templates")+'</div></div><div class="geTempDlgContent" style="width: 100%"><div class="geTempDlgNewDiagramCat"><div class="geTempDlgNewDiagramCatLbl">'+mxResources.get("newDiagram")+'</div><div class="geTempDlgNewDiagramCatList"></div><div class="geTempDlgNewDiagramCatFooter"><div class="geTempDlgShowAllBtn">'+
mxResources.get("showMore")+'</div></div></div><div class="geTempDlgDiagramsList"><div class="geTempDlgDiagramsListHeader"><div class="geTempDlgDiagramsListTitle"></div><div class="geTempDlgDiagramsListBtns"><div class="geTempDlgRadioBtn geTempDlgRadioBtnLarge" data-id="myDiagramsBtn"><img src="/images/my-diagrams.svg" class="geTempDlgMyDiagramsBtnImg"> <span>'+mxResources.get("myDiagrams")+'</span></div><div class="geTempDlgRadioBtn geTempDlgRadioBtnLarge geTempDlgRadioBtnActive" data-id="allDiagramsBtn"><img src="/images/all-diagrams-sel.svg" class="geTempDlgAllDiagramsBtnImg"> <span>'+
mxResources.get("allDiagrams")+'</span></div><div class="geTempDlgSpacer"> </div><div class="geTempDlgRadioBtn geTempDlgRadioBtnSmall geTempDlgRadioBtnActive" data-id="tilesBtn"><img src="/images/tiles-sel.svg" class="geTempDlgTilesBtnImg"></div><div class="geTempDlgRadioBtn geTempDlgRadioBtnSmall" data-id="listBtn"><img src="/images/list.svg" class="geTempDlgListBtnImg"></div></div></div><div class="geTempDlgDiagramsTiles"></div></div></div><br style="clear:both;"/><div class="geTempDlgFooter"><div class="geTempDlgErrMsg"></div>'+
-(t?'<span class="geTempDlgLinkToDiagram geTempDlgLinkToDiagramHint">'+mxResources.get("linkToDiagramHint")+'</span><button class="geTempDlgLinkToDiagram geTempDlgLinkToDiagramBtn">'+mxResources.get("linkToDiagram")+"</button>":"")+(q?'<div class="geTempDlgOpenBtn">'+mxResources.get("open")+"</div>":"")+'<div class="geTempDlgCreateBtn">'+mxResources.get("create")+'</div><div class="geTempDlgCancelBtn">'+mxResources.get("cancel")+"</div></div>",M=document.createElement("div");M.innerHTML=N;M.className=
-"geTemplateDlg";this.container=M;c=null!=c?c:TEMPLATE_PATH+"/index.xml";g=null!=g?g:NEW_DIAGRAM_CATS_PATH+"/index.xml";var Y=!1,W=!1,L=null,O=null,S=null,da=null,pa=!1,aa=!0,V=!1,oa=[],ra=null,ea,qa,Q=!1,T=M.querySelector(".geTempDlgShowAllBtn"),Z=M.querySelector(".geTempDlgDiagramsTiles"),U=M.querySelector(".geTempDlgDiagramsListTitle"),ma=M.querySelector(".geTempDlgDiagramsListBtns"),ga=M.querySelector(".geTempDlgContent"),sa=M.querySelector(".geTempDlgDiagramsList"),X=M.querySelector(".geTempDlgNewDiagramCat"),
-ca=M.querySelector(".geTempDlgNewDiagramCatList"),fa=M.querySelector(".geTempDlgCreateBtn"),ha=M.querySelector(".geTempDlgOpenBtn"),ja=M.querySelector(".geTempDlgSearchBox"),ua=M.querySelector(".geTempDlgErrMsg"),ia=new Spinner({lines:12,length:10,width:5,radius:10,rotate:0,color:"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"50px",zIndex:2E9});mxEvent.addListener(M.querySelector(".geTempDlgBack"),"click",function(){A();Q=!1;M.querySelector(".geTemplatesList").style.display="none";ga.style.width=
-"100%";X.style.display="";sa.style.minHeight="calc(100% - 280px)";ja.style.display=f?"":"none";ja.value="";ea=null;J(aa)});mxEvent.addListener(M.querySelector(".geTempDlgRadioBtn[data-id=allDiagramsBtn]"),"click",function(){z(this,"geTempDlgAllDiagramsBtnImg","all-diagrams","myDiagramsBtn","geTempDlgMyDiagramsBtnImg","my-diagrams",!0)&&(aa=!0,null==ea?J(aa):K(ea))});mxEvent.addListener(M.querySelector(".geTempDlgRadioBtn[data-id=myDiagramsBtn]"),"click",function(){z(this,"geTempDlgMyDiagramsBtnImg",
-"my-diagrams","allDiagramsBtn","geTempDlgAllDiagramsBtnImg","all-diagrams",!0)&&(aa=!1,null==ea?J(aa):K(ea))});mxEvent.addListener(M.querySelector(".geTempDlgRadioBtn[data-id=listBtn]"),"click",function(){z(this,"geTempDlgListBtnImg","list","tilesBtn","geTempDlgTilesBtnImg","tiles",!1)&&(V=!0,D(oa,!1,V,ra))});mxEvent.addListener(M.querySelector(".geTempDlgRadioBtn[data-id=tilesBtn]"),"click",function(){z(this,"geTempDlgTilesBtnImg","tiles","listBtn","geTempDlgListBtnImg","list",!1)&&(V=!1,D(oa,!1,
-V,ra))});var na=!1;mxEvent.addListener(T,"click",function(){pa?(X.style.height="280px",ca.style.height="190px",T.innerHTML=mxUtils.htmlEntities(mxResources.get("showMore")),F(va)):(X.style.height="440px",ca.style.height="355px",T.innerHTML=mxUtils.htmlEntities(mxResources.get("showLess")),F(va,!0));pa=!pa});var la=!1,ka=!1,ba={},R={},ya={},va=[],wa=1,xa=0;null!=p?p(function(b,c){ya=b;xa=c;I()},I):I();mxUtils.get(g,function(b){if(!ka){ka=!0;for(b=b.getXml().documentElement.firstChild;null!=b;)"undefined"!==
-typeof b.getAttribute&&null!=b.getAttribute("title")&&va.push({img:b.getAttribute("img"),libs:b.getAttribute("libs"),clibs:b.getAttribute("clibs"),title:b.getAttribute("title")}),b=b.nextSibling;F(va)}});var ta=function(b,c,f){ma.style.display="";ia.stop();Y=!1;if(W)W=!1;else if(c)Z.innerHTML=c;else{f=f||{};c=0;for(var d in f)c+=f[d].length;0==b.length&&0==c?Z.innerHTML=mxUtils.htmlEntities(mxResources.get("noDiagrams")):D(b,!1,V,0==c?null:f)}};J(aa);var za=null;mxEvent.addListener(ja,"keyup",P);
-mxEvent.addListener(ja,"search",P);mxEvent.addListener(ja,"input",P);mxEvent.addListener(fa,"click",function(b){C(!1,!1)});q&&mxEvent.addListener(ha,"click",function(b){C(!1,!0)});t&&mxEvent.addListener(M.querySelector(".geTempDlgLinkToDiagramBtn"),"click",function(b){C(!0)});mxEvent.addListener(M.querySelector(".geTempDlgCancelBtn"),"click",function(){null!=d&&d();u||b.hideDialog(!0)})};TemplatesDialog.tagsList={};
+(t?'<span class="geTempDlgLinkToDiagram geTempDlgLinkToDiagramHint">'+mxResources.get("linkToDiagramHint")+'</span><button class="geTempDlgLinkToDiagram geTempDlgLinkToDiagramBtn">'+mxResources.get("linkToDiagram")+"</button>":"")+(q?'<div class="geTempDlgOpenBtn">'+mxResources.get("open")+"</div>":"")+'<div class="geTempDlgCreateBtn">'+mxResources.get("create")+'</div><div class="geTempDlgCancelBtn">'+mxResources.get("cancel")+"</div></div>",M=document.createElement("div");M.innerHTML=P;M.className=
+"geTemplateDlg";this.container=M;c=null!=c?c:TEMPLATE_PATH+"/index.xml";g=null!=g?g:NEW_DIAGRAM_CATS_PATH+"/index.xml";var W=!1,X=!1,L=null,Q=null,T=null,da=null,oa=!1,ea=!0,N=!1,ha=[],sa=null,la,ka,V=!1,Z=M.querySelector(".geTempDlgShowAllBtn"),O=M.querySelector(".geTempDlgDiagramsTiles"),fa=M.querySelector(".geTempDlgDiagramsListTitle"),Y=M.querySelector(".geTempDlgDiagramsListBtns"),ca=M.querySelector(".geTempDlgContent"),pa=M.querySelector(".geTempDlgDiagramsList"),ra=M.querySelector(".geTempDlgNewDiagramCat"),
+U=M.querySelector(".geTempDlgNewDiagramCatList"),na=M.querySelector(".geTempDlgCreateBtn"),ga=M.querySelector(".geTempDlgOpenBtn"),ba=M.querySelector(".geTempDlgSearchBox"),ta=M.querySelector(".geTempDlgErrMsg"),ja=new Spinner({lines:12,length:10,width:5,radius:10,rotate:0,color:"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"50px",zIndex:2E9});mxEvent.addListener(M.querySelector(".geTempDlgBack"),"click",function(){A();V=!1;M.querySelector(".geTemplatesList").style.display="none";ca.style.width=
+"100%";ra.style.display="";pa.style.minHeight="calc(100% - 280px)";ba.style.display=f?"":"none";ba.value="";la=null;K(ea)});mxEvent.addListener(M.querySelector(".geTempDlgRadioBtn[data-id=allDiagramsBtn]"),"click",function(){z(this,"geTempDlgAllDiagramsBtnImg","all-diagrams","myDiagramsBtn","geTempDlgMyDiagramsBtnImg","my-diagrams",!0)&&(ea=!0,null==la?K(ea):I(la))});mxEvent.addListener(M.querySelector(".geTempDlgRadioBtn[data-id=myDiagramsBtn]"),"click",function(){z(this,"geTempDlgMyDiagramsBtnImg",
+"my-diagrams","allDiagramsBtn","geTempDlgAllDiagramsBtnImg","all-diagrams",!0)&&(ea=!1,null==la?K(ea):I(la))});mxEvent.addListener(M.querySelector(".geTempDlgRadioBtn[data-id=listBtn]"),"click",function(){z(this,"geTempDlgListBtnImg","list","tilesBtn","geTempDlgTilesBtnImg","tiles",!1)&&(N=!0,D(ha,!1,N,sa))});mxEvent.addListener(M.querySelector(".geTempDlgRadioBtn[data-id=tilesBtn]"),"click",function(){z(this,"geTempDlgTilesBtnImg","tiles","listBtn","geTempDlgListBtnImg","list",!1)&&(N=!1,D(ha,!1,
+N,sa))});var qa=!1;mxEvent.addListener(Z,"click",function(){oa?(ra.style.height="280px",U.style.height="190px",Z.innerHTML=mxUtils.htmlEntities(mxResources.get("showMore")),E(ya)):(ra.style.height="440px",U.style.height="355px",Z.innerHTML=mxUtils.htmlEntities(mxResources.get("showLess")),E(ya,!0));oa=!oa});var ma=!1,ia=!1,aa={},R={},za={},ya=[],ua=1,va=0;null!=p?p(function(b,c){za=b;va=c;J()},J):J();mxUtils.get(g,function(b){if(!ia){ia=!0;for(b=b.getXml().documentElement.firstChild;null!=b;)"undefined"!==
+typeof b.getAttribute&&null!=b.getAttribute("title")&&ya.push({img:b.getAttribute("img"),libs:b.getAttribute("libs"),clibs:b.getAttribute("clibs"),title:b.getAttribute("title")}),b=b.nextSibling;E(ya)}});var xa=function(b,c,f){Y.style.display="";ja.stop();W=!1;if(X)X=!1;else if(c)O.innerHTML=c;else{f=f||{};c=0;for(var d in f)c+=f[d].length;0==b.length&&0==c?O.innerHTML=mxUtils.htmlEntities(mxResources.get("noDiagrams")):D(b,!1,N,0==c?null:f)}};K(ea);var wa=null;mxEvent.addListener(ba,"keyup",S);mxEvent.addListener(ba,
+"search",S);mxEvent.addListener(ba,"input",S);mxEvent.addListener(na,"click",function(b){C(!1,!1)});q&&mxEvent.addListener(ga,"click",function(b){C(!1,!0)});t&&mxEvent.addListener(M.querySelector(".geTempDlgLinkToDiagramBtn"),"click",function(b){C(!0)});mxEvent.addListener(M.querySelector(".geTempDlgCancelBtn"),"click",function(){null!=d&&d();u||b.hideDialog(!0)})};TemplatesDialog.tagsList={};
var BtnDialog=function(b,e,d,c){var g=document.createElement("div");g.style.textAlign="center";var k=document.createElement("p");k.style.fontSize="16pt";k.style.padding="0px";k.style.margin="0px";k.style.color="gray";mxUtils.write(k,mxResources.get("done"));var n="Unknown",f=document.createElement("img");f.setAttribute("border","0");f.setAttribute("align","absmiddle");f.style.marginRight="10px";e==b.drive?(n=mxResources.get("googleDrive"),f.src=IMAGE_PATH+"/google-drive-logo-white.svg"):e==b.dropbox?
(n=mxResources.get("dropbox"),f.src=IMAGE_PATH+"/dropbox-logo-white.svg"):e==b.oneDrive?(n=mxResources.get("oneDrive"),f.src=IMAGE_PATH+"/onedrive-logo-white.svg"):e==b.gitHub?(n=mxResources.get("github"),f.src=IMAGE_PATH+"/github-logo-white.svg"):e==b.gitLab?(n=mxResources.get("gitlab"),f.src=IMAGE_PATH+"/gitlab-logo.svg"):e==b.notion?(n=mxResources.get("notion"),f.src=IMAGE_PATH+"/notion-logo.svg"):e==b.trello&&(n=mxResources.get("trello"),f.src=IMAGE_PATH+"/trello-logo-white.svg");b=document.createElement("p");
mxUtils.write(b,mxResources.get("authorizedIn",[n],"You are now authorized in {1}"));d=mxUtils.button(d,c);d.insertBefore(f,d.firstChild);d.style.marginTop="6px";d.className="geBigButton";d.style.fontSize="18px";d.style.padding="14px";g.appendChild(k);g.appendChild(b);g.appendChild(d);this.container=g},FontDialog=function(b,e,d,c,g){function k(b){this.style.border="";13==b.keyCode&&B.click()}var n,f,l,m=document.createElement("table"),p=document.createElement("tbody");m.style.marginTop="8px";n=document.createElement("tr");
@@ -10559,7 +10559,7 @@ type:"bool",defVal:!1,isVisible:function(b,c){return 1==b.vertices.length&&0==b.
dispName:"Expand",type:"bool",defVal:!0},{name:"part",dispName:"Part",type:"bool",defVal:!1,isVisible:function(b,c){var f=c.editorUi.editor.graph.model;return 0<b.vertices.length?f.isVertex(f.getParent(b.vertices[0])):!1}},{name:"editable",dispName:"Editable",type:"bool",defVal:!0},{name:"metaEdit",dispName:"Edit Dialog",type:"bool",defVal:!1},{name:"backgroundOutline",dispName:"Background Outline",type:"bool",defVal:!1},{name:"movable",dispName:"Movable",type:"bool",defVal:!0},{name:"movableLabel",
dispName:"Movable Label",type:"bool",defVal:!1,isVisible:function(b,c){var f=0<b.vertices.length?c.editorUi.editor.graph.getCellGeometry(b.vertices[0]):null;return null!=f&&!f.relative}},{name:"resizable",dispName:"Resizable",type:"bool",defVal:!0},{name:"resizeWidth",dispName:"Resize Width",type:"bool",defVal:!1},{name:"resizeHeight",dispName:"Resize Height",type:"bool",defVal:!1},{name:"rotatable",dispName:"Rotatable",type:"bool",defVal:!0},{name:"cloneable",dispName:"Cloneable",type:"bool",defVal:!0},
{name:"deletable",dispName:"Deletable",type:"bool",defVal:!0},{name:"treeFolding",dispName:"Tree Folding",type:"bool",defVal:!1},{name:"treeMoving",dispName:"Tree Moving",type:"bool",defVal:!1},{name:"pointerEvents",dispName:"Pointer Events",type:"bool",defVal:!0,isVisible:function(b,c){var f=mxUtils.getValue(b.style,mxConstants.STYLE_FILLCOLOR,null);return c.editorUi.editor.graph.isSwimlane(b.vertices[0])||null==f||f==mxConstants.NONE||0==mxUtils.getValue(b.style,mxConstants.STYLE_FILL_OPACITY,100)||
-0==mxUtils.getValue(b.style,mxConstants.STYLE_OPACITY,100)||null!=b.style.pointerEvents}},{name:"moveCells",dispName:"Move Cells on Fold",type:"bool",defVal:!1,isVisible:function(b,c){return 0<b.vertices.length&&c.editorUi.editor.graph.isContainer(b.vertices[0])}}].concat(Editor.commonProperties);Editor.defaultCsvValue='##\n## Example CSV import. Use ## for comments and # for configuration. Paste CSV below.\n## The following names are reserved and should not be used (or ignored):\n## id, tooltip, placeholder(s), link and label (see below)\n##\n#\n## Node label with placeholders and HTML.\n## Default is \'%name_of_first_column%\'.\n#\n# label: %name%<br><i style="color:gray;">%position%</i><br><a href="mailto:%email%">Email</a>\n#\n## Node style (placeholders are replaced once).\n## Default is the current style for nodes.\n#\n# style: label;image=%image%;whiteSpace=wrap;html=1;rounded=1;fillColor=%fill%;strokeColor=%stroke%;\n#\n## Parent style for nodes with child nodes (placeholders are replaced once).\n#\n# parentstyle: swimlane;whiteSpace=wrap;html=1;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeLast=0;collapsible=1;\n#\n## Optional column name that contains a reference to a named style in styles.\n## Default is the current style for nodes.\n#\n# stylename: -\n#\n## JSON for named styles of the form {"name": "style", "name": "style"} where style is a cell style with\n## placeholders that are replaced once.\n#\n# styles: -\n#\n## JSON for variables in styles of the form {"name": "value", "name": "value"} where name is a string\n## that will replace a placeholder in a style.\n#\n# vars: -\n#\n## Optional column name that contains a reference to a named label in labels.\n## Default is the current label.\n#\n# labelname: -\n#\n## JSON for named labels of the form {"name": "label", "name": "label"} where label is a cell label with\n## placeholders.\n#\n# labels: -\n#\n## Uses the given column name as the identity for cells (updates existing cells).\n## Default is no identity (empty value or -).\n#\n# identity: -\n#\n## Uses the given column name as the parent reference for cells. Default is no parent (empty or -).\n## The identity above is used for resolving the reference so it must be specified.\n#\n# parent: -\n#\n## Adds a prefix to the identity of cells to make sure they do not collide with existing cells (whose\n## IDs are numbers from 0..n, sometimes with a GUID prefix in the context of realtime collaboration).\n## Default is csvimport-.\n#\n# namespace: csvimport-\n#\n## Connections between rows ("from": source colum, "to": target column).\n## Label, style and invert are optional. Defaults are \'\', current style and false.\n## If placeholders are used in the style, they are replaced with data from the source.\n## An optional placeholders can be set to target to use data from the target instead.\n## In addition to label, an optional fromlabel and tolabel can be used to name the column\n## that contains the text for the label in the edges source or target (invert ignored).\n## In addition to those, an optional source and targetlabel can be used to specify a label\n## that contains placeholders referencing the respective columns in the source or target row.\n## The label is created in the form fromlabel + sourcelabel + label + tolabel + targetlabel.\n## Additional labels can be added by using an optional labels array with entries of the\n## form {"label": string, "x": number, "y": number, "dx": number, "dy": number} where\n## x is from -1 to 1 along the edge, y is orthogonal, and dx/dy are offsets in pixels.\n## An optional placeholders with the string value "source" or "target" can be specified\n## to replace placeholders in the additional label with data from the source or target.\n## The target column may contain a comma-separated list of values.\n## Multiple connect entries are allowed.\n#\n# connect: {"from": "manager", "to": "name", "invert": true, "label": "manages", \\\n# "style": "curved=1;endArrow=blockThin;endFill=1;fontSize=11;"}\n# connect: {"from": "refs", "to": "id", "style": "curved=1;fontSize=11;"}\n#\n## Node x-coordinate. Possible value is a column name. Default is empty. Layouts will\n## override this value.\n#\n# left: \n#\n## Node y-coordinate. Possible value is a column name. Default is empty. Layouts will\n## override this value.\n#\n# top: \n#\n## Node width. Possible value is a number (in px), auto or an @ sign followed by a column\n## name that contains the value for the width. Default is auto.\n#\n# width: auto\n#\n## Node height. Possible value is a number (in px), auto or an @ sign followed by a column\n## name that contains the value for the height. Default is auto.\n#\n# height: auto\n#\n## Padding for autosize. Default is 0.\n#\n# padding: -12\n#\n## Comma-separated list of ignored columns for metadata. (These can be\n## used for connections and styles but will not be added as metadata.)\n#\n# ignore: id,image,fill,stroke,refs,manager\n#\n## Column to be renamed to link attribute (used as link).\n#\n# link: url\n#\n## Spacing between nodes. Default is 40.\n#\n# nodespacing: 40\n#\n## Spacing between levels of hierarchical layouts. Default is 100.\n#\n# levelspacing: 100\n#\n## Spacing between parallel edges. Default is 40. Use 0 to disable.\n#\n# edgespacing: 40\n#\n## Name or JSON of layout. Possible values are auto, none, verticaltree, horizontaltree,\n## verticalflow, horizontalflow, organic, circle or a JSON string as used in Layout, Apply.\n## Default is auto.\n#\n# layout: auto\n#\n## ---- CSV below this line. First line are column names. ----\nname,position,id,location,manager,email,fill,stroke,refs,url,image\nTessa Miller,CFO,emi,Office 1,,me@example.com,#dae8fc,#6c8ebf,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-3-128.png\nEdward Morrison,Brand Manager,emo,Office 2,Tessa Miller,me@example.com,#d5e8d4,#82b366,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-10-3-128.png\nAlison Donovan,System Admin,rdo,Office 3,Tessa Miller,me@example.com,#d5e8d4,#82b366,"emo,tva",https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-2-128.png\nEvan Valet,HR Director,tva,Office 4,Tessa Miller,me@example.com,#d5e8d4,#82b366,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-9-2-128.png\n';
+0==mxUtils.getValue(b.style,mxConstants.STYLE_OPACITY,100)||null!=b.style.pointerEvents}},{name:"moveCells",dispName:"Move Cells on Fold",type:"bool",defVal:!1,isVisible:function(b,c){return 0<b.vertices.length&&c.editorUi.editor.graph.isContainer(b.vertices[0])}}].concat(Editor.commonProperties);Editor.defaultCsvValue='##\n## Example CSV import. Use ## for comments and # for configuration. Paste CSV below.\n## The following names are reserved and should not be used (or ignored):\n## id, tooltip, placeholder(s), link and label (see below)\n##\n#\n## Node label with placeholders and HTML.\n## Default is \'%name_of_first_column%\'.\n#\n# label: %name%<br><i style="color:gray;">%position%</i><br><a href="mailto:%email%">Email</a>\n#\n## Node style (placeholders are replaced once).\n## Default is the current style for nodes.\n#\n# style: label;image=%image%;whiteSpace=wrap;html=1;rounded=1;fillColor=%fill%;strokeColor=%stroke%;\n#\n## Parent style for nodes with child nodes (placeholders are replaced once).\n#\n# parentstyle: swimlane;whiteSpace=wrap;html=1;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeLast=0;collapsible=1;\n#\n## Style to be used for objects not in the CSV. If this is - then such objects are ignored,\n## else they are created using this as their style, eg. whiteSpace=wrap;html=1;\n#\n# unknownStyle: -\n#\n## Optional column name that contains a reference to a named style in styles.\n## Default is the current style for nodes.\n#\n# stylename: -\n#\n## JSON for named styles of the form {"name": "style", "name": "style"} where style is a cell style with\n## placeholders that are replaced once.\n#\n# styles: -\n#\n## JSON for variables in styles of the form {"name": "value", "name": "value"} where name is a string\n## that will replace a placeholder in a style.\n#\n# vars: -\n#\n## Optional column name that contains a reference to a named label in labels.\n## Default is the current label.\n#\n# labelname: -\n#\n## JSON for named labels of the form {"name": "label", "name": "label"} where label is a cell label with\n## placeholders.\n#\n# labels: -\n#\n## Uses the given column name as the identity for cells (updates existing cells).\n## Default is no identity (empty value or -).\n#\n# identity: -\n#\n## Uses the given column name as the parent reference for cells. Default is no parent (empty or -).\n## The identity above is used for resolving the reference so it must be specified.\n#\n# parent: -\n#\n## Adds a prefix to the identity of cells to make sure they do not collide with existing cells (whose\n## IDs are numbers from 0..n, sometimes with a GUID prefix in the context of realtime collaboration).\n## Default is csvimport-.\n#\n# namespace: csvimport-\n#\n## Connections between rows ("from": source colum, "to": target column).\n## Label, style and invert are optional. Defaults are \'\', current style and false.\n## If placeholders are used in the style, they are replaced with data from the source.\n## An optional placeholders can be set to target to use data from the target instead.\n## In addition to label, an optional fromlabel and tolabel can be used to name the column\n## that contains the text for the label in the edges source or target (invert ignored).\n## In addition to those, an optional source and targetlabel can be used to specify a label\n## that contains placeholders referencing the respective columns in the source or target row.\n## The label is created in the form fromlabel + sourcelabel + label + tolabel + targetlabel.\n## Additional labels can be added by using an optional labels array with entries of the\n## form {"label": string, "x": number, "y": number, "dx": number, "dy": number} where\n## x is from -1 to 1 along the edge, y is orthogonal, and dx/dy are offsets in pixels.\n## An optional placeholders with the string value "source" or "target" can be specified\n## to replace placeholders in the additional label with data from the source or target.\n## The target column may contain a comma-separated list of values.\n## Multiple connect entries are allowed.\n#\n# connect: {"from": "manager", "to": "name", "invert": true, "label": "manages", \\\n# "style": "curved=1;endArrow=blockThin;endFill=1;fontSize=11;"}\n# connect: {"from": "refs", "to": "id", "style": "curved=1;fontSize=11;"}\n#\n## Node x-coordinate. Possible value is a column name. Default is empty. Layouts will\n## override this value.\n#\n# left: \n#\n## Node y-coordinate. Possible value is a column name. Default is empty. Layouts will\n## override this value.\n#\n# top: \n#\n## Node width. Possible value is a number (in px), auto or an @ sign followed by a column\n## name that contains the value for the width. Default is auto.\n#\n# width: auto\n#\n## Node height. Possible value is a number (in px), auto or an @ sign followed by a column\n## name that contains the value for the height. Default is auto.\n#\n# height: auto\n#\n## Padding for autosize. Default is 0.\n#\n# padding: -12\n#\n## Comma-separated list of ignored columns for metadata. (These can be\n## used for connections and styles but will not be added as metadata.)\n#\n# ignore: id,image,fill,stroke,refs,manager\n#\n## Column to be renamed to link attribute (used as link).\n#\n# link: url\n#\n## Spacing between nodes. Default is 40.\n#\n# nodespacing: 40\n#\n## Spacing between levels of hierarchical layouts. Default is 100.\n#\n# levelspacing: 100\n#\n## Spacing between parallel edges. Default is 40. Use 0 to disable.\n#\n# edgespacing: 40\n#\n## Name or JSON of layout. Possible values are auto, none, verticaltree, horizontaltree,\n## verticalflow, horizontalflow, organic, circle or a JSON string as used in Layout, Apply.\n## Default is auto.\n#\n# layout: auto\n#\n## ---- CSV below this line. First line are column names. ----\nname,position,id,location,manager,email,fill,stroke,refs,url,image\nTessa Miller,CFO,emi,Office 1,,me@example.com,#dae8fc,#6c8ebf,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-3-128.png\nEdward Morrison,Brand Manager,emo,Office 2,Tessa Miller,me@example.com,#d5e8d4,#82b366,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-10-3-128.png\nAlison Donovan,System Admin,rdo,Office 3,Tessa Miller,me@example.com,#d5e8d4,#82b366,"emo,tva",https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-2-128.png\nEvan Valet,HR Director,tva,Office 4,Tessa Miller,me@example.com,#d5e8d4,#82b366,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-9-2-128.png\n';
Editor.createRoughCanvas=function(b){var c=rough.canvas({getContext:function(){return b}});c.draw=function(c){var f=c.sets||[];c=c.options||this.getDefaultOptions();for(var d=0;d<f.length;d++){var e=f[d];switch(e.type){case "path":null!=c.stroke&&this._drawToContext(b,e,c);break;case "fillPath":this._drawToContext(b,e,c);break;case "fillSketch":this.fillSketch(b,e,c)}}};c.fillSketch=function(c,f,d){var e=b.state.strokeColor,l=b.state.strokeWidth,m=b.state.strokeAlpha,g=b.state.dashed,p=d.fillWeight;
0>p&&(p=d.strokeWidth/2);b.setStrokeAlpha(b.state.fillAlpha);b.setStrokeColor(d.fill||"");b.setStrokeWidth(p);b.setDashed(!1);this._drawToContext(c,f,d);b.setDashed(g);b.setStrokeWidth(l);b.setStrokeColor(e);b.setStrokeAlpha(m)};c._drawToContext=function(b,c,f){b.begin();for(var d=0;d<c.ops.length;d++){var e=c.ops[d],l=e.data;switch(e.op){case "move":b.moveTo(l[0],l[1]);break;case "bcurveTo":b.curveTo(l[0],l[1],l[2],l[3],l[4],l[5]);break;case "lineTo":b.lineTo(l[0],l[1])}}b.end();"fillPath"===c.type&&
f.filled?b.fill():b.stroke()};return c};(function(){function b(c,f,d){this.canvas=c;this.rc=f;this.shape=d;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,b.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,b.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,b.prototype.rect);this.originalRoundrect=this.canvas.roundrect;this.canvas.roundrect=
@@ -10573,7 +10573,7 @@ b.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,
b,this.lastY=c)};b.prototype.moveTo=function(b,c){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,b,c),this.lastX=b,this.lastY=c,this.firstX=b,this.firstY=c)};b.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,arguments):this.addOp(this.closeOp)};b.prototype.quadTo=function(b,c,f,d){this.passThrough?this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,b,c,f,d),this.lastX=f,this.lastY=d)};b.prototype.curveTo=
function(b,c,f,d,e,l){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,b,c,f,d,e,l),this.lastX=e,this.lastY=l)};b.prototype.arcTo=function(b,c,f,d,e,l,m){if(this.passThrough)this.originalArcTo.apply(this.canvas,arguments);else{var g=mxUtils.arcToCurves(this.lastX,this.lastY,b,c,f,d,e,l,m);if(null!=g)for(var p=0;p<g.length;p+=6)this.curveTo(g[p],g[p+1],g[p+2],g[p+3],g[p+4],g[p+5]);this.lastX=l;this.lastY=m}};b.prototype.rect=function(b,c,f,d){this.passThrough?
this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(b,c,f,d,this.getStyle(!0,!0)))};b.prototype.ellipse=function(b,c,f,d){this.passThrough?this.originalEllipse.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(b+f/2,c+d/2,f,d,this.getStyle(!0,!0)))};b.prototype.roundrect=function(b,c,f,d,e,l){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(b+e,c),this.lineTo(b+f-e,c),
-this.quadTo(b+f,c,b+f,c+l),this.lineTo(b+f,c+d-l),this.quadTo(b+f,c+d,b+f-e,c+d),this.lineTo(b+e,c+d),this.quadTo(b,c+d,b,c+d-l),this.lineTo(b,c+l),this.quadTo(b,c,b+e,c))};b.prototype.drawPath=function(b){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),b)}catch(oa){}this.passThrough=!1}else if(null!=this.nextShape){for(var c in b)this.nextShape.options[c]=b[c];null==b.stroke&&delete this.nextShape.options.stroke;b.filled||delete this.nextShape.options.fill;this.passThrough=
+this.quadTo(b+f,c,b+f,c+l),this.lineTo(b+f,c+d-l),this.quadTo(b+f,c+d,b+f-e,c+d),this.lineTo(b+e,c+d),this.quadTo(b,c+d,b,c+d-l),this.lineTo(b,c+l),this.quadTo(b,c,b+e,c))};b.prototype.drawPath=function(b){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),b)}catch(ha){}this.passThrough=!1}else if(null!=this.nextShape){for(var c in b)this.nextShape.options[c]=b[c];null==b.stroke&&delete this.nextShape.options.stroke;b.filled||delete this.nextShape.options.fill;this.passThrough=
!0;this.rc.draw(this.nextShape);this.passThrough=!1}};b.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!1))};b.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};b.prototype.fillAndStroke=function(){this.passThrough?this.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};b.prototype.destroy=function(){this.canvas.lineTo=
this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=this.originalArcTo;this.canvas.close=this.originalClose;this.canvas.fill=this.originalFill;this.canvas.stroke=this.originalStroke;this.canvas.fillAndStroke=this.originalFillAndStroke;this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=
this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(c){return new b(c,Editor.createRoughCanvas(c),this)};var c=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=function(b){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?c.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(b):this.createRoughCanvas(b)};var f=mxImageShape.prototype.paintVertexShape;
@@ -10601,7 +10601,7 @@ null!=c.parentNode){var f=document.createElement("style");f.setAttribute("type",
null!=urlParams.edit?decodeURIComponent(urlParams.edit):null;Editor.prototype.crossOriginImages=!mxClient.IS_IE;var b=Editor.prototype.setGraphXml;Editor.prototype.setGraphXml=function(c){c=null!=c&&"mxlibrary"!=c.nodeName?this.extractGraphModel(c):null;if(null!=c){var f=c.getElementsByTagName("parsererror");if(null!=f&&0<f.length){var f=f[0],d=f.getElementsByTagName("div");null!=d&&0<d.length&&(f=d[0]);throw{message:mxUtils.getTextContent(f)};}if("mxGraphModel"==c.nodeName){f=c.getAttribute("style")||
"default-style2";if("1"==urlParams.embed||null!=f&&""!=f)f!=this.graph.currentStyle&&(d=null!=this.graph.themes?this.graph.themes[f]:mxUtils.load(STYLE_PATH+"/"+f+".xml").getDocumentElement(),null!=d&&(e=new mxCodec(d.ownerDocument),e.decode(d,this.graph.getStylesheet())));else if(d=null!=this.graph.themes?this.graph.themes["default-old"]:mxUtils.load(STYLE_PATH+"/default-old.xml").getDocumentElement(),null!=d){var e=new mxCodec(d.ownerDocument);e.decode(d,this.graph.getStylesheet())}this.graph.currentStyle=
f;this.graph.mathEnabled="1"==urlParams.math||"1"==c.getAttribute("math");f=c.getAttribute("backgroundImage");null!=f?this.graph.setBackgroundImage(this.graph.parseBackgroundImage(f)):this.graph.setBackgroundImage(null);mxClient.NO_FO=this.graph.mathEnabled&&!this.useForeignObjectForMath?!0:this.originalNoForeignObject;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();this.graph.setShadowVisible("1"==c.getAttribute("shadow"),
-!1);if(f=c.getAttribute("extFonts"))try{for(f=f.split("|").map(function(b){b=b.split("^");return{name:b[0],url:b[1]}}),d=0;d<f.length;d++)this.graph.addExtFont(f[d].name,f[d].url)}catch(pa){console.log("ExtFonts format error: "+pa.message)}else null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(this.graph.extFonts=[])}b.apply(this,arguments)}else throw{message:mxResources.get("notADiagramFile")||"Invalid data",toString:function(){return this.message}};};var e=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=
+!1);if(f=c.getAttribute("extFonts"))try{for(f=f.split("|").map(function(b){b=b.split("^");return{name:b[0],url:b[1]}}),d=0;d<f.length;d++)this.graph.addExtFont(f[d].name,f[d].url)}catch(oa){console.log("ExtFonts format error: "+oa.message)}else null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(this.graph.extFonts=[])}b.apply(this,arguments)}else throw{message:mxResources.get("notADiagramFile")||"Invalid data",toString:function(){return this.message}};};var e=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=
function(b,c){b=null!=b?b:!0;var f=e.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&f.setAttribute("style",this.graph.currentStyle);var d=this.graph.getBackgroundImageObject(this.graph.backgroundImage,c);null!=d&&f.setAttribute("backgroundImage",JSON.stringify(d));f.setAttribute("math",this.graph.mathEnabled?"1":"0");f.setAttribute("shadow",this.graph.shadowVisible?"1":"0");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(d=this.graph.extFonts.map(function(b){return b.name+
"^"+b.url}),f.setAttribute("extFonts",d.join("|")));return f};Editor.prototype.isDataSvg=function(b){try{var c=mxUtils.parseXml(b).documentElement.getAttribute("content");if(null!=c&&(null!=c&&"<"!=c.charAt(0)&&"%"!=c.charAt(0)&&(c=unescape(window.atob?atob(c):Base64.decode(cont,c))),null!=c&&"%"==c.charAt(0)&&(c=decodeURIComponent(c)),null!=c&&0<c.length)){var f=mxUtils.parseXml(c).documentElement;return"mxfile"==f.nodeName||"mxGraphModel"==f.nodeName}}catch(da){}return!1};Editor.prototype.extractGraphModel=
function(b,c,f){return Editor.extractGraphModel.apply(this,arguments)};var d=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.graph.view.x0=null;this.graph.view.y0=null;mxClient.NO_FO=this.graph.mathEnabled&&!this.useForeignObjectForMath?!0:this.originalNoForeignObject;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();d.apply(this,arguments)};
@@ -10609,17 +10609,17 @@ var c=Editor.prototype.updateGraphComponents;Editor.prototype.updateGraphCompone
Editor.initMath=function(b,c){if("undefined"===typeof window.MathJax){b=(null!=b?b:DRAW_MATH_URL+"/MathJax.js")+"?config=TeX-MML-AM_"+("html"==urlParams["math-output"]?"HTMLorMML":"SVG")+"-full";Editor.mathJaxQueue=[];Editor.doMathJaxRender=function(b){window.setTimeout(function(){"hidden"!=b.style.visibility&&MathJax.Hub.Queue(["Typeset",MathJax.Hub,b])},0)};var f=null!=urlParams["math-font"]?decodeURIComponent(urlParams["math-font"]):"TeX";c=null!=c?c:{"HTML-CSS":{availableFonts:[f],imageFont:null},
SVG:{font:f,useFontCache:!1},tex2jax:{ignoreClass:"mxCellEditor"},asciimath2jax:{ignoreClass:"mxCellEditor"}};window.MathJax={skipStartupTypeset:!0,showMathMenu:!1,messageStyle:"none",AuthorInit:function(){MathJax.Hub.Config(c);MathJax.Hub.Register.StartupHook("Begin",function(){for(var b=0;b<Editor.mathJaxQueue.length;b++)Editor.doMathJaxRender(Editor.mathJaxQueue[b])})}};Editor.MathJaxRender=function(b){"undefined"!==typeof MathJax&&"undefined"!==typeof MathJax.Hub?Editor.doMathJaxRender(b):Editor.mathJaxQueue.push(b)};
Editor.MathJaxClear=function(){Editor.mathJaxQueue=[]};var d=Editor.prototype.init;Editor.prototype.init=function(){d.apply(this,arguments);this.graph.addListener(mxEvent.SIZE,mxUtils.bind(this,function(b,c){null!=this.graph.container&&this.graph.mathEnabled&&!this.graph.blockMathRender&&Editor.MathJaxRender(this.graph.container)}))};f=document.getElementsByTagName("script");if(null!=f&&0<f.length){var e=document.createElement("script");e.setAttribute("type","text/javascript");e.setAttribute("src",
-b);f[0].parentNode.appendChild(e)}try{if(mxClient.IS_GC||mxClient.IS_SF){var l=document.createElement("style");l.type="text/css";l.innerHTML=Editor.mathJaxWebkitCss;document.getElementsByTagName("head")[0].appendChild(l)}}catch(V){}}};Editor.prototype.csvToArray=function(b){if(!/^\s*(?:'[^'\\]*(?:\\[\S\s][^'\\]*)*'|"[^"\\]*(?:\\[\S\s][^"\\]*)*"|[^,'"\s\\]*(?:\s+[^,'"\s\\]+)*)\s*(?:,\s*(?:'[^'\\]*(?:\\[\S\s][^'\\]*)*'|"[^"\\]*(?:\\[\S\s][^"\\]*)*"|[^,'"\s\\]*(?:\s+[^,'"\s\\]+)*)\s*)*$/.test(b))return null;
+b);f[0].parentNode.appendChild(e)}try{if(mxClient.IS_GC||mxClient.IS_SF){var l=document.createElement("style");l.type="text/css";l.innerHTML=Editor.mathJaxWebkitCss;document.getElementsByTagName("head")[0].appendChild(l)}}catch(N){}}};Editor.prototype.csvToArray=function(b){if(!/^\s*(?:'[^'\\]*(?:\\[\S\s][^'\\]*)*'|"[^"\\]*(?:\\[\S\s][^"\\]*)*"|[^,'"\s\\]*(?:\s+[^,'"\s\\]+)*)\s*(?:,\s*(?:'[^'\\]*(?:\\[\S\s][^'\\]*)*'|"[^"\\]*(?:\\[\S\s][^"\\]*)*"|[^,'"\s\\]*(?:\s+[^,'"\s\\]+)*)\s*)*$/.test(b))return null;
var c=[];b.replace(/(?!\s*$)\s*(?:'([^'\\]*(?:\\[\S\s][^'\\]*)*)'|"([^"\\]*(?:\\[\S\s][^"\\]*)*)"|([^,'"\s\\]*(?:\s+[^,'"\s\\]+)*))\s*(?:,|$)/g,function(b,f,d,e){void 0!==f?c.push(f.replace(/\\'/g,"'")):void 0!==d?c.push(d.replace(/\\"/g,'"')):void 0!==e&&c.push(e);return""});/,\s*$/.test(b)&&c.push("");return c};Editor.prototype.isCorsEnabledForUrl=function(b){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||b.substring(0,window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&
null==this.corsRegExp&&(this.corsRegExp=new RegExp(decodeURIComponent(urlParams.cors)));return null!=this.corsRegExp&&this.corsRegExp.test(b)||"https://raw.githubusercontent.com/"===b.substring(0,34)||"https://fonts.googleapis.com/"===b.substring(0,29)||"https://fonts.gstatic.com/"===b.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var b=new mxUrlConverter;b.updateBaseUrl();var c=b.convert,f=this;b.convert=function(d){if(null!=d){var e="http://"==d.substring(0,7)||"https://"==
d.substring(0,8);e&&!navigator.onLine?d=Editor.svgBrokenImage.src:!e||d.substring(0,b.baseUrl.length)==b.baseUrl||f.crossOriginImages&&f.isCorsEnabledForUrl(d)?"chrome-extension://"==d.substring(0,19)||mxClient.IS_CHROMEAPP||(d=c.apply(this,arguments)):d=PROXY_URL+"?url="+encodeURIComponent(d)}return d};return b};Editor.createSvgDataUri=function(b){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(b)))};Editor.prototype.convertImageToDataUri=function(b,c){try{var f=!0,d=window.setTimeout(mxUtils.bind(this,
function(){f=!1;c(Editor.svgBrokenImage.src)}),this.timeout);if(/(\.svg)$/i.test(b))mxUtils.get(b,mxUtils.bind(this,function(b){window.clearTimeout(d);f&&c(Editor.createSvgDataUri(b.getText()))}),function(){window.clearTimeout(d);f&&c(Editor.svgBrokenImage.src)});else{var e=new Image;this.crossOriginImages&&(e.crossOrigin="anonymous");e.onload=function(){window.clearTimeout(d);if(f)try{var b=document.createElement("canvas"),l=b.getContext("2d");b.height=e.height;b.width=e.width;l.drawImage(e,0,0);
-c(b.toDataURL())}catch(oa){c(Editor.svgBrokenImage.src)}};e.onerror=function(){window.clearTimeout(d);f&&c(Editor.svgBrokenImage.src)};e.src=b}}catch(aa){c(Editor.svgBrokenImage.src)}};Editor.prototype.convertImages=function(b,c,f,d){null==d&&(d=this.createImageUrlConverter());var e=0,l=f||{};f=mxUtils.bind(this,function(f,m){for(var g=b.getElementsByTagName(f),p=0;p<g.length;p++)mxUtils.bind(this,function(f){try{if(null!=f){var g=d.convert(f.getAttribute(m));if(null!=g&&"data:"!=g.substring(0,5)){var p=
-l[g];null==p?(e++,this.convertImageToDataUri(g,function(d){null!=d&&(l[g]=d,f.setAttribute(m,d));e--;0==e&&c(b)})):f.setAttribute(m,p)}else null!=g&&f.setAttribute(m,g)}}catch(Z){}})(g[p])});f("image","xlink:href");f("img","src");0==e&&c(b)};Editor.base64Encode=function(b){for(var c="",f=0,d=b.length,e,l,m;f<d;){e=b.charCodeAt(f++)&255;if(f==d){c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e>>2);c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((e&
+c(b.toDataURL())}catch(ha){c(Editor.svgBrokenImage.src)}};e.onerror=function(){window.clearTimeout(d);f&&c(Editor.svgBrokenImage.src)};e.src=b}}catch(ea){c(Editor.svgBrokenImage.src)}};Editor.prototype.convertImages=function(b,c,f,d){null==d&&(d=this.createImageUrlConverter());var e=0,l=f||{};f=mxUtils.bind(this,function(f,m){for(var g=b.getElementsByTagName(f),p=0;p<g.length;p++)mxUtils.bind(this,function(f){try{if(null!=f){var g=d.convert(f.getAttribute(m));if(null!=g&&"data:"!=g.substring(0,5)){var p=
+l[g];null==p?(e++,this.convertImageToDataUri(g,function(d){null!=d&&(l[g]=d,f.setAttribute(m,d));e--;0==e&&c(b)})):f.setAttribute(m,p)}else null!=g&&f.setAttribute(m,g)}}catch(O){}})(g[p])});f("image","xlink:href");f("img","src");0==e&&c(b)};Editor.base64Encode=function(b){for(var c="",f=0,d=b.length,e,l,m;f<d;){e=b.charCodeAt(f++)&255;if(f==d){c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e>>2);c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((e&
3)<<4);c+="==";break}l=b.charCodeAt(f++);if(f==d){c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e>>2);c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((e&3)<<4|(l&240)>>4);c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((l&15)<<2);c+="=";break}m=b.charCodeAt(f++);c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e>>2);c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((e&
3)<<4|(l&240)>>4);c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((l&15)<<2|(m&192)>>6);c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(m&63)}return c};Editor.prototype.loadUrl=function(b,c,f,d,e,l,m,g){try{var p=!m&&(d||/(\.png)($|\?)/i.test(b)||/(\.jpe?g)($|\?)/i.test(b)||/(\.gif)($|\?)/i.test(b)||/(\.pdf)($|\?)/i.test(b));e=null!=e?e:!0;var k=mxUtils.bind(this,function(){mxUtils.get(b,mxUtils.bind(this,function(b){if(200<=b.getStatus()&&
299>=b.getStatus()){if(null!=c){var d=b.getText();if(p){if((9==document.documentMode||10==document.documentMode)&&"undefined"!==typeof window.mxUtilsBinaryToArray){b=mxUtilsBinaryToArray(b.request.responseBody).toArray();for(var d=Array(b.length),e=0;e<b.length;e++)d[e]=String.fromCharCode(b[e]);d=d.join("")}l=null!=l?l:"data:image/png;base64,";d=l+Editor.base64Encode(d)}c(d)}}else null!=f&&(0==b.getStatus()?f({message:mxResources.get("accessDenied")},b):f({message:mxResources.get("error")+" "+b.getStatus()},
-b))}),function(b){null!=f&&f({message:mxResources.get("error")+" "+b.getStatus()})},p,this.timeout,function(){e&&null!=f&&f({code:App.ERROR_TIMEOUT,retry:k})},g)});k()}catch(qa){null!=f&&f(qa)}};Editor.prototype.absoluteCssFonts=function(b){var c=null;if(null!=b){var f=b.split("url(");if(0<f.length){c=[f[0]];b=window.location.pathname;var d=null!=b?b.lastIndexOf("/"):-1;0<=d&&(b=b.substring(0,d+1));var d=document.getElementsByTagName("base"),e=null;null!=d&&0<d.length&&(e=d[0].getAttribute("href"));
+b))}),function(b){null!=f&&f({message:mxResources.get("error")+" "+b.getStatus()})},p,this.timeout,function(){e&&null!=f&&f({code:App.ERROR_TIMEOUT,retry:k})},g)});k()}catch(ka){null!=f&&f(ka)}};Editor.prototype.absoluteCssFonts=function(b){var c=null;if(null!=b){var f=b.split("url(");if(0<f.length){c=[f[0]];b=window.location.pathname;var d=null!=b?b.lastIndexOf("/"):-1;0<=d&&(b=b.substring(0,d+1));var d=document.getElementsByTagName("base"),e=null;null!=d&&0<d.length&&(e=d[0].getAttribute("href"));
for(var l=1;l<f.length;l++)if(d=f[l].indexOf(")"),0<d){var m=Editor.trimCssUrl(f[l].substring(0,d));this.graph.isRelativeUrl(m)&&(m=null!=e?e+m:window.location.protocol+"//"+window.location.hostname+("/"==m.charAt(0)?"":b)+m);c.push('url("'+m+'"'+f[l].substring(d))}else c.push(f[l])}else c=[b]}return null!=c?c.join(""):null};Editor.prototype.mapFontUrl=function(b,c,f){/^https?:\/\//.test(c)&&!this.isCorsEnabledForUrl(c)&&(c=PROXY_URL+"?url="+encodeURIComponent(c));f(b,c)};Editor.prototype.embedCssFonts=
function(b,c){var f=b.split("url("),d=0;null==this.cachedFonts&&(this.cachedFonts={});var e=mxUtils.bind(this,function(){if(0==d){for(var b=[f[0]],e=1;e<f.length;e++){var l=f[e].indexOf(")");b.push('url("');b.push(this.cachedFonts[Editor.trimCssUrl(f[e].substring(0,l))]);b.push('"'+f[e].substring(l))}c(b.join(""))}});if(0<f.length){for(var l=1;l<f.length;l++){var m=f[l].indexOf(")"),g=null,p=f[l].indexOf("format(",m);0<p&&(g=Editor.trimCssUrl(f[l].substring(p+7,f[l].indexOf(")",p))));mxUtils.bind(this,
function(b){if(null==this.cachedFonts[b]){this.cachedFonts[b]=b;d++;var c="application/x-font-ttf";if("svg"==g||/(\.svg)($|\?)/i.test(b))c="image/svg+xml";else if("otf"==g||"embedded-opentype"==g||/(\.otf)($|\?)/i.test(b))c="application/x-font-opentype";else if("woff"==g||/(\.woff)($|\?)/i.test(b))c="application/font-woff";else if("woff2"==g||/(\.woff2)($|\?)/i.test(b))c="application/font-woff2";else if("eot"==g||/(\.eot)($|\?)/i.test(b))c="application/vnd.ms-fontobject";else if("sfnt"==g||/(\.sfnt)($|\?)/i.test(b))c=
@@ -10629,9 +10629,9 @@ Editor.prototype.createGoogleFontCache=function(){var b={},c;for(c in Graph.font
0<d.indexOf("MathJax")&&b[0].appendChild(c[f].cloneNode(!0))}};Editor.prototype.addFontCss=function(b,c){c=null!=c?c:this.absoluteCssFonts(this.fontCss);if(null!=c){var f=b.getElementsByTagName("defs"),d=b.ownerDocument;0==f.length?(f=null!=d.createElementNS?d.createElementNS(mxConstants.NS_SVG,"defs"):d.createElement("defs"),null!=b.firstChild?b.insertBefore(f,b.firstChild):b.appendChild(f)):f=f[0];d=null!=d.createElementNS?d.createElementNS(mxConstants.NS_SVG,"style"):d.createElement("style");d.setAttribute("type",
"text/css");mxUtils.setTextContent(d,c);f.appendChild(d)}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(b,c,f){var d=mxClient.IS_FF?8192:16384;return Math.min(f,Math.min(d/b,d/c))};Editor.prototype.exportToCanvas=function(b,c,f,d,e,l,m,g,p,k,q,t,n,v,y,u,x,A){try{l=null!=l?l:!0;m=null!=m?m:!0;t=null!=t?t:this.graph;n=null!=n?n:0;var C=p?null:t.background;C==mxConstants.NONE&&(C=null);null==C&&(C=d);null==
C&&0==p&&(C=u?this.graph.defaultPageBackgroundColor:"#ffffff");this.convertImages(t.getSvg(null,null,n,v,null,m,null,null,null,k,null,u,x,A),mxUtils.bind(this,function(f){try{var d=new Image;d.onload=mxUtils.bind(this,function(){try{var m=function(){mxClient.IS_SF?window.setTimeout(function(){v.drawImage(d,0,0);b(p,f)},0):(v.drawImage(d,0,0),b(p,f))},p=document.createElement("canvas"),k=parseInt(f.getAttribute("width")),q=parseInt(f.getAttribute("height"));g=null!=g?g:1;null!=c&&(g=l?Math.min(1,Math.min(3*
-c/(4*q),c/k)):c/k);g=this.getMaxCanvasScale(k,q,g);k=Math.ceil(g*k);q=Math.ceil(g*q);p.setAttribute("width",k);p.setAttribute("height",q);var v=p.getContext("2d");null!=C&&(v.beginPath(),v.rect(0,0,k,q),v.fillStyle=C,v.fill());1!=g&&v.scale(g,g);if(y){var u=t.view,x=u.scale;u.scale=1;var A=btoa(unescape(encodeURIComponent(u.createSvgGrid(u.gridColor))));u.scale=x;var A="data:image/svg+xml;base64,"+A,D=t.gridSize*u.gridSteps*g,L=t.getGraphBounds(),F=u.translate.x*x,H=u.translate.y*x,z=F+(L.x-F)/x-
-n,G=H+(L.y-H)/x-n,E=new Image;E.onload=function(){try{for(var b=-Math.round(D-mxUtils.mod((F-z)*g,D)),c=-Math.round(D-mxUtils.mod((H-G)*g,D));b<k;b+=D)for(var f=c;f<q;f+=D)v.drawImage(E,b/g,f/g);m()}catch(Da){null!=e&&e(Da)}};E.onerror=function(b){null!=e&&e(b)};E.src=A}else m()}catch(Ba){null!=e&&e(Ba)}});d.onerror=function(b){null!=e&&e(b)};k&&this.graph.addSvgShadow(f);this.graph.mathEnabled&&this.addMathCss(f);var m=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(f,
-this.resolvedFontCss),d.src=Editor.createSvgDataUri(mxUtils.getXml(f))}catch(ja){null!=e&&e(ja)}});this.embedExtFonts(mxUtils.bind(this,function(b){try{null!=b&&this.addFontCss(f,b),this.loadFonts(m)}catch(ua){null!=e&&e(ua)}}))}catch(ja){null!=e&&e(ja)}}),f,q)}catch(ca){null!=e&&e(ca)}};Editor.crcTable=[];for(var g=0;256>g;g++)for(var k=g,n=0;8>n;n++)k=1==(k&1)?3988292384^k>>>1:k>>>1,Editor.crcTable[g]=k;Editor.updateCRC=function(b,c,f,d){for(var e=0;e<d;e++)b=Editor.crcTable[(b^c.charCodeAt(f+e))&
+c/(4*q),c/k)):c/k);g=this.getMaxCanvasScale(k,q,g);k=Math.ceil(g*k);q=Math.ceil(g*q);p.setAttribute("width",k);p.setAttribute("height",q);var v=p.getContext("2d");null!=C&&(v.beginPath(),v.rect(0,0,k,q),v.fillStyle=C,v.fill());1!=g&&v.scale(g,g);if(y){var u=t.view,x=u.scale;u.scale=1;var A=btoa(unescape(encodeURIComponent(u.createSvgGrid(u.gridColor))));u.scale=x;var A="data:image/svg+xml;base64,"+A,D=t.gridSize*u.gridSteps*g,L=t.getGraphBounds(),E=u.translate.x*x,H=u.translate.y*x,z=E+(L.x-E)/x-
+n,F=H+(L.y-H)/x-n,I=new Image;I.onload=function(){try{for(var b=-Math.round(D-mxUtils.mod((E-z)*g,D)),c=-Math.round(D-mxUtils.mod((H-F)*g,D));b<k;b+=D)for(var f=c;f<q;f+=D)v.drawImage(I,b/g,f/g);m()}catch(Ea){null!=e&&e(Ea)}};I.onerror=function(b){null!=e&&e(b)};I.src=A}else m()}catch(Aa){null!=e&&e(Aa)}});d.onerror=function(b){null!=e&&e(b)};k&&this.graph.addSvgShadow(f);this.graph.mathEnabled&&this.addMathCss(f);var m=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(f,
+this.resolvedFontCss),d.src=Editor.createSvgDataUri(mxUtils.getXml(f))}catch(ba){null!=e&&e(ba)}});this.embedExtFonts(mxUtils.bind(this,function(b){try{null!=b&&this.addFontCss(f,b),this.loadFonts(m)}catch(ta){null!=e&&e(ta)}}))}catch(ba){null!=e&&e(ba)}}),f,q)}catch(U){null!=e&&e(U)}};Editor.crcTable=[];for(var g=0;256>g;g++)for(var k=g,n=0;8>n;n++)k=1==(k&1)?3988292384^k>>>1:k>>>1,Editor.crcTable[g]=k;Editor.updateCRC=function(b,c,f,d){for(var e=0;e<d;e++)b=Editor.crcTable[(b^c.charCodeAt(f+e))&
255]^b>>>8;return b};Editor.crc32=function(b){for(var c=-1,f=0;f<b.length;f++)c=c>>>8^Editor.crcTable[(c^b.charCodeAt(f))&255];return(c^-1)>>>0};Editor.writeGraphModelToPng=function(b,c,f,d,e){function l(b,c){var f=p;p+=c;return b.substring(f,p)}function m(b){b=l(b,4);return b.charCodeAt(3)+(b.charCodeAt(2)<<8)+(b.charCodeAt(1)<<16)+(b.charCodeAt(0)<<24)}function g(b){return String.fromCharCode(b>>24&255,b>>16&255,b>>8&255,b&255)}b=b.substring(b.indexOf(",")+1);b=window.atob?atob(b):Base64.decode(b,
!0);var p=0;if(l(b,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=e&&e();else if(l(b,4),"IHDR"!=l(b,4))null!=e&&e();else{l(b,17);e=b.substring(0,p);do{var k=m(b);if("IDAT"==l(b,4)){e=b.substring(0,p-8);"pHYs"==c&&"dpi"==f?(f=Math.round(d/.0254),f=g(f)+g(f)+String.fromCharCode(1)):f=f+String.fromCharCode(0)+("zTXt"==c?String.fromCharCode(0):"")+d;d=4294967295;d=Editor.updateCRC(d,c,0,4);d=Editor.updateCRC(d,f,0,f.length);e+=g(f.length)+c+f+g(d^4294967295);e+=b.substring(p-
8,b.length);break}e+=b.substring(p-8,p-4+k);l(b,k);l(b,4)}while(k);return"data:image/png;base64,"+(window.btoa?btoa(e):Base64.encode(e,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.diagrams.net/doc/faq/save-file-formats";var f=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(b,c){f.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var l=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){l.apply(this,
@@ -10664,7 +10664,7 @@ stroke:"#3700CC",font:"#ffffff"},{fill:"#d80073",stroke:"#A50040",font:"#ffffff"
font:"#ffffff"}],[{fill:"",stroke:""},{fill:mxConstants.NONE,stroke:""},{fill:"#fad7ac",stroke:"#b46504"},{fill:"#fad9d5",stroke:"#ae4132"},{fill:"#b0e3e6",stroke:"#0e8088"},{fill:"#b1ddf0",stroke:"#10739e"},{fill:"#d0cee2",stroke:"#56517e"},{fill:"#bac8d3",stroke:"#23445d"}],[{fill:"",stroke:""},{fill:"#f5f5f5",stroke:"#666666",gradient:"#b3b3b3"},{fill:"#dae8fc",stroke:"#6c8ebf",gradient:"#7ea6e0"},{fill:"#d5e8d4",stroke:"#82b366",gradient:"#97d077"},{fill:"#ffcd28",stroke:"#d79b00",gradient:"#ffa500"},
{fill:"#fff2cc",stroke:"#d6b656",gradient:"#ffd966"},{fill:"#f8cecc",stroke:"#b85450",gradient:"#ea6b66"},{fill:"#e6d0de",stroke:"#996185",gradient:"#d5739d"}],[{fill:"",stroke:""},{fill:"#eeeeee",stroke:"#36393d"},{fill:"#f9f7ed",stroke:"#36393d"},{fill:"#ffcc99",stroke:"#36393d"},{fill:"#cce5ff",stroke:"#36393d"},{fill:"#ffff88",stroke:"#36393d"},{fill:"#cdeb8b",stroke:"#36393d"},{fill:"#ffcccc",stroke:"#36393d"}]];StyleFormatPanel.prototype.customColorSchemes=null;StyleFormatPanel.prototype.findCommonProperties=
function(b,c,f){if(null!=c){var d=function(b){if(null!=b)if(f)for(var d=0;d<b.length;d++)c[b[d].name]=b[d];else for(var e in c){for(var l=!1,d=0;d<b.length;d++)if(b[d].name==e&&b[d].type==c[e].type){l=!0;break}l||delete c[e]}},e=this.editorUi.editor.graph.view.getState(b);null!=e&&null!=e.shape&&(e.shape.commonCustomPropAdded||(e.shape.commonCustomPropAdded=!0,e.shape.customProperties=e.shape.customProperties||[],e.cell.vertex?Array.prototype.push.apply(e.shape.customProperties,Editor.commonVertexProperties):
-Array.prototype.push.apply(e.shape.customProperties,Editor.commonEdgeProperties)),d(e.shape.customProperties));b=b.getAttribute("customProperties");if(null!=b)try{d(JSON.parse(b))}catch(aa){}}};var v=StyleFormatPanel.prototype.init;StyleFormatPanel.prototype.init=function(){var b=this.editorUi.getSelectionState();"image"!=b.style.shape&&!b.containsLabel&&0<b.cells.length&&this.container.appendChild(this.addStyles(this.createPanel()));v.apply(this,arguments);if(Editor.enableCustomProperties){for(var c=
+Array.prototype.push.apply(e.shape.customProperties,Editor.commonEdgeProperties)),d(e.shape.customProperties));b=b.getAttribute("customProperties");if(null!=b)try{d(JSON.parse(b))}catch(ea){}}};var v=StyleFormatPanel.prototype.init;StyleFormatPanel.prototype.init=function(){var b=this.editorUi.getSelectionState();"image"!=b.style.shape&&!b.containsLabel&&0<b.cells.length&&this.container.appendChild(this.addStyles(this.createPanel()));v.apply(this,arguments);if(Editor.enableCustomProperties){for(var c=
{},f=b.vertices,d=b.edges,e=0;e<f.length;e++)this.findCommonProperties(f[e],c,0==e);for(e=0;e<d.length;e++)this.findCommonProperties(d[e],c,0==f.length&&0==e);null!=Object.getOwnPropertyNames&&0<Object.getOwnPropertyNames(c).length&&this.container.appendChild(this.addProperties(this.createPanel(),c,b))}};var u=StyleFormatPanel.prototype.addStyleOps;StyleFormatPanel.prototype.addStyleOps=function(b){this.addActions(b,["copyStyle","pasteStyle"]);return u.apply(this,arguments)};EditorUi.prototype.propertiesCollapsed=
!0;StyleFormatPanel.prototype.addProperties=function(b,c,f){function d(b,c,f,d){t.getModel().beginUpdate();try{var e=[],l=[];if(null!=f.index){for(var m=[],g=f.parentRow.nextSibling;g&&g.getAttribute("data-pName")==b;)m.push(g.getAttribute("data-pValue")),g=g.nextSibling;f.index<m.length?null!=d?m.splice(d,1):m[f.index]=c:m.push(c);null!=f.size&&m.length>f.size&&(m=m.slice(0,f.size));c=m.join(",");null!=f.countProperty&&(t.setCellStyles(f.countProperty,m.length,t.getSelectionCells()),e.push(f.countProperty),
l.push(m.length))}t.setCellStyles(b,c,t.getSelectionCells());e.push(b);l.push(c);if(null!=f.dependentProps)for(b=0;b<f.dependentProps.length;b++){var p=f.dependentPropsDefVal[b],k=f.dependentPropsVals[b];if(k.length>c)k=k.slice(0,c);else for(var n=k.length;n<c;n++)k.push(p);k=k.join(",");t.setCellStyles(f.dependentProps[b],k,t.getSelectionCells());e.push(f.dependentProps[b]);l.push(k)}if("function"==typeof f.onChange)f.onChange(t,c);q.editorUi.fireEvent(new mxEventObject("styleChanged","keys",e,"values",
@@ -10678,10 +10678,10 @@ A[n],v.val==f){mxUtils.write(x,mxResources.get(v.dispName,null,v.dispName));brea
"string"!=u?0:b;k.allowAuto&&(null!=b.trim&&"auto"==b.trim().toLowerCase()?(b="auto",u="string"):(b=parseFloat(b),b=isNaN(b)?0:b));null!=k.min&&b<k.min?b=k.min:null!=k.max&&b>k.max&&(b=k.max);b=encodeURIComponent(("int"==u?parseInt(b):b)+"");d(c,b,k)}var m=document.createElement("input");e(x,m,!0);m.value=decodeURIComponent(f);m.className="gePropEditor";"int"!=u&&"float"!=u||k.allowAuto||(m.type="number",m.step="int"==u?"1":"any",null!=k.min&&(m.min=parseFloat(k.min)),null!=k.max&&(m.max=parseFloat(k.max)));
b.appendChild(m);mxEvent.addListener(m,"keypress",function(b){13==b.keyCode&&l()});m.focus();mxEvent.addListener(m,"blur",function(){l()})})));k.isDeletable&&(n=mxUtils.button("-",mxUtils.bind(q,function(b){d(c,"",k,k.index);mxEvent.consume(b)})),n.style.height="16px",n.style.width="25px",n.style["float"]="right",n.className="geColorBtn",x.appendChild(n));y.appendChild(x);return y}var q=this,t=this.editorUi.editor.graph,n=[];b.style.position="relative";b.style.padding="0";var v=document.createElement("table");
v.className="geProperties";v.style.whiteSpace="nowrap";v.style.width="100%";var u=document.createElement("tr");u.className="gePropHeader";var y=document.createElement("th");y.className="gePropHeaderCell";var x=document.createElement("img");x.src=Sidebar.prototype.expandedImage;x.style.verticalAlign="middle";y.appendChild(x);mxUtils.write(y,mxResources.get("property"));u.style.cursor="pointer";var A=function(){var c=v.querySelectorAll(".gePropNonHeaderRow"),f;if(q.editorUi.propertiesCollapsed){x.src=
-Sidebar.prototype.collapsedImage;f="none";for(var d=b.childNodes.length-1;0<=d;d--)try{var e=b.childNodes[d],l=e.nodeName.toUpperCase();"INPUT"!=l&&"SELECT"!=l||b.removeChild(e)}catch(va){}}else x.src=Sidebar.prototype.expandedImage,f="";for(d=0;d<c.length;d++)c[d].style.display=f};mxEvent.addListener(u,"click",function(){q.editorUi.propertiesCollapsed=!q.editorUi.propertiesCollapsed;A()});u.appendChild(y);y=document.createElement("th");y.className="gePropHeaderCell";y.innerHTML=mxResources.get("value");
-u.appendChild(y);v.appendChild(u);var C=!1,D=!1,u=null;1==f.vertices.length&&0==f.edges.length?u=f.vertices[0].id:0==f.vertices.length&&1==f.edges.length&&(u=f.edges[0].id);null!=u&&v.appendChild(k("id",mxUtils.htmlEntities(u),{dispName:"ID",type:"readOnly"},!0,!1));for(var F in c)if(u=c[F],"function"!=typeof u.isVisible||u.isVisible(f,this)){var H=null!=f.style[F]?mxUtils.htmlEntities(f.style[F]+""):null!=u.getDefaultValue?u.getDefaultValue(f,this):u.defVal;if("separator"==u.type)D=!D;else{if("staticArr"==
-u.type)u.size=parseInt(f.style[u.sizeProperty]||c[u.sizeProperty].defVal)||0;else if(null!=u.dependentProps){for(var z=u.dependentProps,G=[],L=[],y=0;y<z.length;y++){var E=f.style[z[y]];L.push(c[z[y]].subDefVal);G.push(null!=E?E.split(","):[])}u.dependentPropsDefVal=L;u.dependentPropsVals=G}v.appendChild(k(F,H,u,C,D));C=!C}}for(y=0;y<n.length;y++)for(u=n[y],c=u.parentRow,f=0;f<u.values.length;f++)F=k(u.name,u.values[f],{type:u.type,parentRow:u.parentRow,isDeletable:u.isDeletable,index:f,defVal:u.defVal,
-countProperty:u.countProperty,size:u.size},0==f%2,u.flipBkg),c.parentNode.insertBefore(F,c.nextSibling),c=F;b.appendChild(v);A();return b};StyleFormatPanel.prototype.addStyles=function(b){function c(b){mxEvent.addListener(b,"mouseenter",function(){b.style.opacity="1"});mxEvent.addListener(b,"mouseleave",function(){b.style.opacity="0.5"})}var f=this.editorUi,d=f.editor.graph,e=document.createElement("div");e.style.whiteSpace="nowrap";e.style.paddingLeft="24px";e.style.paddingRight="20px";b.style.paddingLeft=
+Sidebar.prototype.collapsedImage;f="none";for(var d=b.childNodes.length-1;0<=d;d--)try{var e=b.childNodes[d],l=e.nodeName.toUpperCase();"INPUT"!=l&&"SELECT"!=l||b.removeChild(e)}catch(ya){}}else x.src=Sidebar.prototype.expandedImage,f="";for(d=0;d<c.length;d++)c[d].style.display=f};mxEvent.addListener(u,"click",function(){q.editorUi.propertiesCollapsed=!q.editorUi.propertiesCollapsed;A()});u.appendChild(y);y=document.createElement("th");y.className="gePropHeaderCell";y.innerHTML=mxResources.get("value");
+u.appendChild(y);v.appendChild(u);var C=!1,D=!1,u=null;1==f.vertices.length&&0==f.edges.length?u=f.vertices[0].id:0==f.vertices.length&&1==f.edges.length&&(u=f.edges[0].id);null!=u&&v.appendChild(k("id",mxUtils.htmlEntities(u),{dispName:"ID",type:"readOnly"},!0,!1));for(var E in c)if(u=c[E],"function"!=typeof u.isVisible||u.isVisible(f,this)){var H=null!=f.style[E]?mxUtils.htmlEntities(f.style[E]+""):null!=u.getDefaultValue?u.getDefaultValue(f,this):u.defVal;if("separator"==u.type)D=!D;else{if("staticArr"==
+u.type)u.size=parseInt(f.style[u.sizeProperty]||c[u.sizeProperty].defVal)||0;else if(null!=u.dependentProps){for(var z=u.dependentProps,F=[],L=[],y=0;y<z.length;y++){var I=f.style[z[y]];L.push(c[z[y]].subDefVal);F.push(null!=I?I.split(","):[])}u.dependentPropsDefVal=L;u.dependentPropsVals=F}v.appendChild(k(E,H,u,C,D));C=!C}}for(y=0;y<n.length;y++)for(u=n[y],c=u.parentRow,f=0;f<u.values.length;f++)E=k(u.name,u.values[f],{type:u.type,parentRow:u.parentRow,isDeletable:u.isDeletable,index:f,defVal:u.defVal,
+countProperty:u.countProperty,size:u.size},0==f%2,u.flipBkg),c.parentNode.insertBefore(E,c.nextSibling),c=E;b.appendChild(v);A();return b};StyleFormatPanel.prototype.addStyles=function(b){function c(b){mxEvent.addListener(b,"mouseenter",function(){b.style.opacity="1"});mxEvent.addListener(b,"mouseleave",function(){b.style.opacity="0.5"})}var f=this.editorUi,d=f.editor.graph,e=document.createElement("div");e.style.whiteSpace="nowrap";e.style.paddingLeft="24px";e.style.paddingRight="20px";b.style.paddingLeft=
"16px";b.style.paddingBottom="6px";b.style.position="relative";b.appendChild(e);var l="plain-gray plain-blue plain-green plain-turquoise plain-orange plain-yellow plain-red plain-pink plain-purple gray blue green turquoise orange yellow red pink purple".split(" "),m=document.createElement("div");m.style.whiteSpace="nowrap";m.style.position="relative";m.style.textAlign="center";m.style.width="210px";for(var g=[],p=0;p<this.defaultColorSchemes.length;p++){var k=document.createElement("div");k.style.display=
"inline-block";k.style.width="6px";k.style.height="6px";k.style.marginLeft="4px";k.style.marginRight="3px";k.style.borderRadius="3px";k.style.cursor="pointer";k.style.background="transparent";k.style.border="1px solid #b5b6b7";mxUtils.bind(this,function(b){mxEvent.addListener(k,"click",mxUtils.bind(this,function(){q(b)}))})(p);g.push(k);m.appendChild(k)}var q=mxUtils.bind(this,function(b){null!=g[b]&&(null!=this.format.currentScheme&&null!=g[this.format.currentScheme]&&(g[this.format.currentScheme].style.background=
"transparent"),this.format.currentScheme=b,t(this.defaultColorSchemes[this.format.currentScheme]),g[this.format.currentScheme].style.background="#84d7ff")}),t=mxUtils.bind(this,function(b){var c=mxUtils.bind(this,function(b){var c=mxUtils.button("",mxUtils.bind(this,function(c){d.getModel().beginUpdate();try{for(var e=f.getSelectionState().cells,m=0;m<e.length;m++){for(var g=d.getModel().getStyle(e[m]),p=0;p<l.length;p++)g=mxUtils.removeStylename(g,l[p]);var k=d.getModel().isVertex(e[m])?d.defaultVertexStyle:
@@ -10715,18 +10715,18 @@ q.style.overflow="hidden";q.style.whiteSpace="nowrap";q.style.textOverflow="elli
mxResources.get("reset"));q.className="geBtn";q.style.margin="0 4px 0 0";var t=mxUtils.button(mxResources.get("add"),function(){null!=f&&f(g,function(b){g=b;n()})});t.setAttribute("title",mxResources.get("add"));t.className="geBtn";t.style.margin="0";m.addListener(mxEvent.ROOT,function(){g=m.hiddenTags.slice()});var n=mxUtils.bind(this,function(c,f){if(b()){for(var d=m.getAllTags(),e=0;e<d.length;e++)0>mxUtils.indexOf(g,d[e])&&g.push(d[e]);g.sort();m.isSelectionEmpty()?l(g):l(g,m.getCommonTagsForCells(m.getSelectionCells()))}});
m.selectionModel.addListener(mxEvent.CHANGE,n);m.model.addListener(mxEvent.CHANGE,n);m.addListener(mxEvent.REFRESH,n);var v=document.createElement("div");v.style.boxSizing="border-box";v.style.whiteSpace="nowrap";v.style.position="absolute";v.style.overflow="hidden";v.style.bottom="0px";v.style.height="42px";v.style.right="10px";v.style.left="10px";m.isEnabled()&&(v.appendChild(q),v.appendChild(t),p.appendChild(v));return{div:p,refresh:n}};Graph.prototype.getCustomFonts=function(){var b=this.extFonts,
b=null!=b?b.slice():[],c;for(c in Graph.customFontElements){var f=Graph.customFontElements[c];b.push({name:f.name,url:f.url})}return b};Graph.prototype.setFont=function(b,c){Graph.addFont(b,c);document.execCommand("fontname",!1,b);if(null!=c){var f=this.cellEditor.textarea.getElementsByTagName("font");c=Graph.getFontUrl(b,c);for(var d=0;d<f.length;d++)f[d].getAttribute("face")==b&&f[d].getAttribute("data-font-src")!=c&&f[d].setAttribute("data-font-src",c)}};var y=Graph.prototype.isFastZoomEnabled;
-Graph.prototype.isFastZoomEnabled=function(){return y.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=function(){this.globalVars=Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=null!=this.globalVars?mxUtils.clone(this.globalVars):{};var b=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=b)for(var c in b)this.globalVars[c]=b[c]}catch(S){null!=window.console&&console.log("Error in vars URL parameter: "+S)}};Graph.prototype.getExportVariables=
+Graph.prototype.isFastZoomEnabled=function(){return y.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=function(){this.globalVars=Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=null!=this.globalVars?mxUtils.clone(this.globalVars):{};var b=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=b)for(var c in b)this.globalVars[c]=b[c]}catch(T){null!=window.console&&console.log("Error in vars URL parameter: "+T)}};Graph.prototype.getExportVariables=
function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var C=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(b){var c=C.apply(this,arguments);null==c&&null!=this.globalVars&&(c=this.globalVars[b]);return c};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var b=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(b.ownerDocument)).decode(b)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};
-var E=Graph.prototype.getSvg;Graph.prototype.getSvg=function(b,c,f,d,e,l,m,g,p,k,q,t,n,v){var u=null,y=null,x=null;t||null==this.themes||"darkTheme"!=this.defaultThemeName||(u=this.stylesheet,y=this.shapeForegroundColor,x=this.shapeBackgroundColor,this.shapeForegroundColor="darkTheme"==this.defaultThemeName?"#000000":Editor.lightColor,this.shapeBackgroundColor="darkTheme"==this.defaultThemeName?"#ffffff":Editor.darkColor,this.stylesheet=this.getDefaultStylesheet(),this.refresh());var A=E.apply(this,
-arguments),C=this.getCustomFonts();if(q&&0<C.length){var D=A.ownerDocument,F=null!=D.createElementNS?D.createElementNS(mxConstants.NS_SVG,"style"):D.createElement("style");null!=D.setAttributeNS?F.setAttributeNS("type","text/css"):F.setAttribute("type","text/css");for(var H="",z="",G=0;G<C.length;G++){var K=C[G].name,L=C[G].url;Graph.isCssFontUrl(L)?H+="@import url("+L+");\n":z+='@font-face {\nfont-family: "'+K+'";\nsrc: url("'+L+'");\n}\n'}F.appendChild(D.createTextNode(H+z));A.getElementsByTagName("defs")[0].appendChild(F)}null!=
+var G=Graph.prototype.getSvg;Graph.prototype.getSvg=function(b,c,f,d,e,l,m,g,p,k,q,t,n,v){var u=null,y=null,x=null;t||null==this.themes||"darkTheme"!=this.defaultThemeName||(u=this.stylesheet,y=this.shapeForegroundColor,x=this.shapeBackgroundColor,this.shapeForegroundColor="darkTheme"==this.defaultThemeName?"#000000":Editor.lightColor,this.shapeBackgroundColor="darkTheme"==this.defaultThemeName?"#ffffff":Editor.darkColor,this.stylesheet=this.getDefaultStylesheet(),this.refresh());var A=G.apply(this,
+arguments),C=this.getCustomFonts();if(q&&0<C.length){var D=A.ownerDocument,E=null!=D.createElementNS?D.createElementNS(mxConstants.NS_SVG,"style"):D.createElement("style");null!=D.setAttributeNS?E.setAttributeNS("type","text/css"):E.setAttribute("type","text/css");for(var H="",z="",F=0;F<C.length;F++){var I=C[F].name,L=C[F].url;Graph.isCssFontUrl(L)?H+="@import url("+L+");\n":z+='@font-face {\nfont-family: "'+I+'";\nsrc: url("'+L+'");\n}\n'}E.appendChild(D.createTextNode(H+z));A.getElementsByTagName("defs")[0].appendChild(E)}null!=
u&&(this.shapeBackgroundColor=x,this.shapeForegroundColor=y,this.stylesheet=u,this.refresh());return A};var D=Graph.prototype.createSvgImageExport;Graph.prototype.createSvgImageExport=function(){var b=D.apply(this,arguments);if(this.mathEnabled){var c=b.drawText;b.drawText=function(b,f){if(null!=b.text&&null!=b.text.value&&b.text.checkBounds()&&(mxUtils.isNode(b.text.value)||b.text.dialect==mxConstants.DIALECT_STRICTHTML)){var d=b.text.getContentNode();if(null!=d){d=d.cloneNode(!0);if(d.getElementsByTagNameNS)for(var e=
-d.getElementsByTagNameNS("http://www.w3.org/1998/Math/MathML","math");0<e.length;)e[0].parentNode.removeChild(e[0]);null!=d.innerHTML&&(e=b.text.value,b.text.value=d.innerHTML,c.apply(this,arguments),b.text.value=e)}}else c.apply(this,arguments)}}return b};var F=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(b){F.apply(this,arguments);null!=b.secondLabel&&(b.secondLabel.destroy(),b.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(b){return[b.shape,
-b.text,b.secondLabel,b.control]};var G=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){G.apply(this,arguments);this.enumerationState=0};var I=mxGraphView.prototype.stateValidated;mxGraphView.prototype.stateValidated=function(b){null!=b.shape&&this.redrawEnumerationState(b);return I.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(b){b=decodeURIComponent(mxUtils.getValue(b.style,"enumerateValue",""));""==b&&(b=++this.enumerationState);
+d.getElementsByTagNameNS("http://www.w3.org/1998/Math/MathML","math");0<e.length;)e[0].parentNode.removeChild(e[0]);null!=d.innerHTML&&(e=b.text.value,b.text.value=d.innerHTML,c.apply(this,arguments),b.text.value=e)}}else c.apply(this,arguments)}}return b};var E=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(b){E.apply(this,arguments);null!=b.secondLabel&&(b.secondLabel.destroy(),b.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(b){return[b.shape,
+b.text,b.secondLabel,b.control]};var F=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){F.apply(this,arguments);this.enumerationState=0};var J=mxGraphView.prototype.stateValidated;mxGraphView.prototype.stateValidated=function(b){null!=b.shape&&this.redrawEnumerationState(b);return J.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(b){b=decodeURIComponent(mxUtils.getValue(b.style,"enumerateValue",""));""==b&&(b=++this.enumerationState);
return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(b)+"</div>"};mxGraphView.prototype.redrawEnumerationState=function(b){var c="1"==mxUtils.getValue(b.style,"enumerate",0);c&&null==b.secondLabel?(b.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),b.secondLabel.size=12,b.secondLabel.state=b,b.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(b,b.secondLabel)):
-c||null==b.secondLabel||(b.secondLabel.destroy(),b.secondLabel=null);c=b.secondLabel;if(null!=c){var f=b.view.scale,d=this.createEnumerationValue(b);b=this.graph.model.isVertex(b.cell)?new mxRectangle(b.x+b.width-4*f,b.y+4*f,0,0):mxRectangle.fromPoint(b.view.getPoint(b));c.bounds.equals(b)&&c.value==d&&c.scale==f||(c.bounds=b,c.value=d,c.scale=f,c.redraw())}};var J=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){J.apply(this,arguments);if(mxClient.IS_GC&&
+c||null==b.secondLabel||(b.secondLabel.destroy(),b.secondLabel=null);c=b.secondLabel;if(null!=c){var f=b.view.scale,d=this.createEnumerationValue(b);b=this.graph.model.isVertex(b.cell)?new mxRectangle(b.x+b.width-4*f,b.y+4*f,0,0):mxRectangle.fromPoint(b.view.getPoint(b));c.bounds.equals(b)&&c.value==d&&c.scale==f||(c.bounds=b,c.value=d,c.scale=f,c.redraw())}};var K=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){K.apply(this,arguments);if(mxClient.IS_GC&&
null!=this.getDrawPane()){var b=this.getDrawPane().parentNode;!this.graph.mathEnabled||mxClient.NO_FO||null!=this.webKitForceRepaintNode&&null!=this.webKitForceRepaintNode.parentNode||"svg"!=this.graph.container.firstChild.nodeName?null==this.webKitForceRepaintNode||this.graph.mathEnabled&&("svg"==this.graph.container.firstChild.nodeName||this.graph.container.firstChild==this.webKitForceRepaintNode)||(null!=this.webKitForceRepaintNode.parentNode&&this.webKitForceRepaintNode.parentNode.removeChild(this.webKitForceRepaintNode),
this.webKitForceRepaintNode=null):(this.webKitForceRepaintNode=document.createElement("div"),this.webKitForceRepaintNode.style.cssText="position:absolute;",b.ownerSVGElement.parentNode.insertBefore(this.webKitForceRepaintNode,b.ownerSVGElement))}};var H=Graph.prototype.refresh;Graph.prototype.refresh=function(){H.apply(this,arguments);this.refreshBackgroundImage()};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),
-this.view.validateBackgroundImage())};var K=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){K.apply(this,arguments);this.currentStyle="default-style2"};Graph.prototype.handleCustomLink=function(b){"data:action/json,"==b.substring(0,17)&&(b=JSON.parse(b.substring(17)),null!=b.actions&&this.executeCustomActions(b.actions))};Graph.prototype.executeCustomActions=function(b,c){if(this.executingCustomActions)this.stoppingCustomActions=!0,null!=this.pendingWaitThread&&window.clearTimeout(this.pendingWaitThread),
+this.view.validateBackgroundImage())};var I=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){I.apply(this,arguments);this.currentStyle="default-style2"};Graph.prototype.handleCustomLink=function(b){"data:action/json,"==b.substring(0,17)&&(b=JSON.parse(b.substring(17)),null!=b.actions&&this.executeCustomActions(b.actions))};Graph.prototype.executeCustomActions=function(b,c){if(this.executingCustomActions)this.stoppingCustomActions=!0,null!=this.pendingWaitThread&&window.clearTimeout(this.pendingWaitThread),
null!=this.pendingExecuteNextAction&&this.pendingExecuteNextAction(),this.fireEvent(new mxEventObject("stopExecutingCustomActions"));else{this.executingCustomActions=!0;var f=!1,d=0,e=0,l=mxUtils.bind(this,function(){f||(f=!0,this.model.beginUpdate())}),m=mxUtils.bind(this,function(){f&&(f=!1,this.model.endUpdate())}),g=mxUtils.bind(this,function(){0<d&&d--;0==d&&p()}),p=mxUtils.bind(this,function(){if(e<b.length){var f=this.stoppingCustomActions,k=b[e++],q=[];if(null!=k.open)if(m(),this.isCustomLink(k.open)){if(!this.customLinkClicked(k.open))return}else this.openLink(k.open);
null==k.wait||f||(this.pendingExecuteNextAction=mxUtils.bind(this,function(){this.pendingWaitThread=this.pendingExecuteNextAction=null;g()}),d++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,""!=k.wait?parseInt(k.wait):1E3),m());null!=k.opacity&&null!=k.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(k.opacity,!0)),k.opacity.value);null!=k.fadeIn&&(d++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(k.fadeIn,!0)),0,1,g,f?0:
k.fadeIn.delay));null!=k.fadeOut&&(d++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(k.fadeOut,!0)),1,0,g,f?0:k.fadeOut.delay));null!=k.wipeIn&&(q=q.concat(this.createWipeAnimations(this.getCellsForAction(k.wipeIn,!0),!0)));null!=k.wipeOut&&(q=q.concat(this.createWipeAnimations(this.getCellsForAction(k.wipeOut,!0),!1)));null!=k.toggle&&(l(),this.toggleCells(this.getCellsForAction(k.toggle,!0)));if(null!=k.show){l();var t=this.getCellsForAction(k.show,!0);Graph.setOpacityForNodes(this.getNodesForCells(t),
@@ -10735,8 +10735,8 @@ this.isEnabled()&&(t=this.getCellsForAction(k.select),this.setSelectionCells(t))
v=0;v<n.length;v++)0>mxUtils.indexOf(k.tags.visible,n[v])&&0>mxUtils.indexOf(t,n[v])&&t.push(n[v]);this.hiddenTags=t;this.refresh()}0<q.length&&(d++,this.executeAnimations(q,g,f?1:k.steps,f?0:k.delay));0==d?p():m()}else this.stoppingCustomActions=this.executingCustomActions=!1,m(),null!=c&&c()});p()}};Graph.prototype.doUpdateCustomLinksForCell=function(b,c){var f=this.getLinkForCell(c);null!=f&&"data:action/json,"==f.substring(0,17)&&this.setLinkForCell(c,this.updateCustomLink(b,f));if(this.isHtmlLabel(c)){var d=
document.createElement("div");d.innerHTML=this.sanitizeHtml(this.getLabel(c));for(var e=d.getElementsByTagName("a"),l=!1,m=0;m<e.length;m++)f=e[m].getAttribute("href"),null!=f&&"data:action/json,"==f.substring(0,17)&&(e[m].setAttribute("href",this.updateCustomLink(b,f)),l=!0);l&&this.labelChanged(c,d.innerHTML)}};Graph.prototype.updateCustomLink=function(b,c){if("data:action/json,"==c.substring(0,17))try{var f=JSON.parse(c.substring(17));null!=f.actions&&(this.updateCustomLinkActions(b,f.actions),
c="data:action/json,"+JSON.stringify(f))}catch(da){}return c};Graph.prototype.updateCustomLinkActions=function(b,c){for(var f=0;f<c.length;f++){var d=c[f],e;for(e in d)this.updateCustomLinkAction(b,d[e],"cells"),this.updateCustomLinkAction(b,d[e],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(b,c,f){if(null!=c&&null!=c[f]){for(var d=[],e=0;e<c[f].length;e++)if("*"==c[f][e])d.push(c[f][e]);else{var l=b[c[f][e]];null!=l?""!=l&&d.push(l):d.push(c[f][e])}c[f]=d}};Graph.prototype.getCellsForAction=
-function(b,c){var f=this.getCellsById(b.cells).concat(this.getCellsForTags(b.tags,null,c));if(null!=b.excludeCells){for(var d=[],e=0;e<f.length;e++)0>b.excludeCells.indexOf(f[e].id)&&d.push(f[e]);f=d}return f};Graph.prototype.getCellsById=function(b){var c=[];if(null!=b)for(var f=0;f<b.length;f++)if("*"==b[f])var d=this.model.getRoot(),c=c.concat(this.model.filterDescendants(function(b){return b!=d},d));else{var e=this.model.getCell(b[f]);null!=e&&c.push(e)}return c};var P=Graph.prototype.isCellVisible;
-Graph.prototype.isCellVisible=function(b){return P.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(b))};Graph.prototype.isAllTagsHidden=function(b){if(null==b||0==b.length||0==this.hiddenTags.length)return!1;b=b.split(" ");if(b.length>this.hiddenTags.length)return!1;for(var c=0;c<b.length;c++)if(0>mxUtils.indexOf(this.hiddenTags,b[c]))return!1;return!0};Graph.prototype.getCellsForTags=function(b,c,f,d){var e=[];if(null!=b){c=null!=c?c:this.model.getDescendants(this.model.getRoot());
+function(b,c){var f=this.getCellsById(b.cells).concat(this.getCellsForTags(b.tags,null,c));if(null!=b.excludeCells){for(var d=[],e=0;e<f.length;e++)0>b.excludeCells.indexOf(f[e].id)&&d.push(f[e]);f=d}return f};Graph.prototype.getCellsById=function(b){var c=[];if(null!=b)for(var f=0;f<b.length;f++)if("*"==b[f])var d=this.model.getRoot(),c=c.concat(this.model.filterDescendants(function(b){return b!=d},d));else{var e=this.model.getCell(b[f]);null!=e&&c.push(e)}return c};var S=Graph.prototype.isCellVisible;
+Graph.prototype.isCellVisible=function(b){return S.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(b))};Graph.prototype.isAllTagsHidden=function(b){if(null==b||0==b.length||0==this.hiddenTags.length)return!1;b=b.split(" ");if(b.length>this.hiddenTags.length)return!1;for(var c=0;c<b.length;c++)if(0>mxUtils.indexOf(this.hiddenTags,b[c]))return!1;return!0};Graph.prototype.getCellsForTags=function(b,c,f,d){var e=[];if(null!=b){c=null!=c?c:this.model.getDescendants(this.model.getRoot());
for(var l=0,m={},g=0;g<b.length;g++)0<b[g].length&&(m[b[g]]=!0,l++);for(g=0;g<c.length;g++)if(f&&this.model.getParent(c[g])==this.model.root||this.model.isVertex(c[g])||this.model.isEdge(c[g])){var k=this.getTagsForCell(c[g]),p=!1;if(0<k.length&&(k=k.split(" "),k.length>=b.length)){for(var q=p=0;q<k.length&&p<l;q++)null!=m[k[q]]&&p++;p=p==l}p&&(1!=d||this.isCellVisible(c[g]))&&e.push(c[g])}}return e};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};
Graph.prototype.getCommonTagsForCells=function(b){for(var c=null,f=[],d=0;d<b.length;d++){var e=this.getTagsForCell(b[d]),f=[];if(0<e.length){for(var e=e.split(" "),l={},m=0;m<e.length;m++)if(null==c||null!=c[e[m]])l[e[m]]=!0,f.push(e[m]);c=l}else return[]}return f};Graph.prototype.getTagsForCells=function(b){for(var c=[],f={},d=0;d<b.length;d++){var e=this.getTagsForCell(b[d]);if(0<e.length)for(var e=e.split(" "),l=0;l<e.length;l++)null==f[e[l]]&&(f[e[l]]=!0,c.push(e[l]))}return c};Graph.prototype.getTagsForCell=
function(b){return this.getAttributeForCell(b,"tags","")};Graph.prototype.addTagsForCells=function(b,c){if(0<b.length&&0<c.length){this.model.beginUpdate();try{for(var f=0;f<b.length;f++){for(var d=this.getTagsForCell(b[f]),e=d.split(" "),l=!1,m=0;m<c.length;m++){var g=mxUtils.trim(c[m]);""!=g&&0>mxUtils.indexOf(e,g)&&(d=0<d.length?d+" "+g:g,l=!0)}l&&this.setAttributeForCell(b[f],"tags",d)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(b,c){if(0<b.length&&0<c.length){this.model.beginUpdate();
@@ -10758,32 +10758,32 @@ STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[S
STENCIL_PATH+"/floorplan.xml"];mxStencilRegistry.libraries.bootstrap=[SHAPES_PATH+"/mxBootstrap.js",SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bootstrap.xml"];mxStencilRegistry.libraries.gmdl=[SHAPES_PATH+"/mxGmdl.js",STENCIL_PATH+"/gmdl.xml"];mxStencilRegistry.libraries.gcp2=[SHAPES_PATH+"/mxGCP2.js",STENCIL_PATH+"/gcp2.xml"];mxStencilRegistry.libraries.ibm=[SHAPES_PATH+"/mxIBM.js",STENCIL_PATH+"/ibm.xml"];mxStencilRegistry.libraries.cabinets=[SHAPES_PATH+"/mxCabinets.js",STENCIL_PATH+"/cabinets.xml"];
mxStencilRegistry.libraries.archimate=[SHAPES_PATH+"/mxArchiMate.js"];mxStencilRegistry.libraries.archimate3=[SHAPES_PATH+"/mxArchiMate3.js"];mxStencilRegistry.libraries.sysml=[SHAPES_PATH+"/mxSysML.js"];mxStencilRegistry.libraries.eip=[SHAPES_PATH+"/mxEip.js",STENCIL_PATH+"/eip.xml"];mxStencilRegistry.libraries.networks=[SHAPES_PATH+"/mxNetworks.js",STENCIL_PATH+"/networks.xml"];mxStencilRegistry.libraries.aws3d=[SHAPES_PATH+"/mxAWS3D.js",STENCIL_PATH+"/aws3d.xml"];mxStencilRegistry.libraries.aws4=
[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.aws4b=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.uml25=[SHAPES_PATH+"/mxUML25.js"];mxStencilRegistry.libraries.veeam=[STENCIL_PATH+"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam.xml"];mxStencilRegistry.libraries.veeam2=[STENCIL_PATH+"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam2.xml"];mxStencilRegistry.libraries.pid2inst=[SHAPES_PATH+
-"/pid2/mxPidInstruments.js"];mxStencilRegistry.libraries.pid2misc=[SHAPES_PATH+"/pid2/mxPidMisc.js",STENCIL_PATH+"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxMarker.getPackageForType=function(b){var c=null;null!=b&&0<b.length&&("ER"==b.substring(0,2)?c="mxgraph.er":"sysML"==b.substring(0,5)&&(c="mxgraph.sysml"));return c};var N=mxMarker.createMarker;mxMarker.createMarker=
-function(b,c,f,d,e,l,m,g,k,p){if(null!=f&&null==mxMarker.markers[f]){var q=this.getPackageForType(f);null!=q&&mxStencilRegistry.getStencil(q)}return N.apply(this,arguments)};PrintDialog.prototype.create=function(b,c){function f(){v.value=Math.max(1,Math.min(g,Math.max(parseInt(v.value),parseInt(n.value))));n.value=Math.max(1,Math.min(g,Math.min(parseInt(v.value),parseInt(n.value))))}function d(c){function f(c,f,l){var m=c.useCssTransforms,g=c.currentTranslate,p=c.currentScale,k=c.view.translate,q=
-c.view.scale;c.useCssTransforms&&(c.useCssTransforms=!1,c.currentTranslate=new mxPoint(0,0),c.currentScale=1,c.view.translate=new mxPoint(0,0),c.view.scale=1);var t=c.getGraphBounds(),n=0,v=0,u=B.get(),y=1/c.pageScale,C=A.checked;if(C)var y=parseInt(I.value),D=parseInt(M.value),y=Math.min(u.height*D/(t.height/c.view.scale),u.width*y/(t.width/c.view.scale));else y=parseInt(x.value)/(100*c.pageScale),isNaN(y)&&(d=1/c.pageScale,x.value="100 %");u=mxRectangle.fromRectangle(u);u.width=Math.ceil(u.width*
-d);u.height=Math.ceil(u.height*d);y*=d;!C&&c.pageVisible?(t=c.getPageLayout(),n-=t.x*u.width,v-=t.y*u.height):C=!0;if(null==f){f=PrintDialog.createPrintPreview(c,y,u,0,n,v,C);f.pageSelector=!1;f.mathEnabled=!1;n=b.getCurrentFile();null!=n&&(f.title=n.getTitle());var F=f.writeHead;f.writeHead=function(f){F.apply(this,arguments);if(mxClient.IS_GC||mxClient.IS_SF)f.writeln('<style type="text/css">'),f.writeln(Editor.mathJaxWebkitCss),f.writeln("</style>");mxClient.IS_GC&&(f.writeln('<style type="text/css">'),
+"/pid2/mxPidInstruments.js"];mxStencilRegistry.libraries.pid2misc=[SHAPES_PATH+"/pid2/mxPidMisc.js",STENCIL_PATH+"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxMarker.getPackageForType=function(b){var c=null;null!=b&&0<b.length&&("ER"==b.substring(0,2)?c="mxgraph.er":"sysML"==b.substring(0,5)&&(c="mxgraph.sysml"));return c};var P=mxMarker.createMarker;mxMarker.createMarker=
+function(b,c,f,d,e,l,m,g,k,p){if(null!=f&&null==mxMarker.markers[f]){var q=this.getPackageForType(f);null!=q&&mxStencilRegistry.getStencil(q)}return P.apply(this,arguments)};PrintDialog.prototype.create=function(b,c){function f(){v.value=Math.max(1,Math.min(g,Math.max(parseInt(v.value),parseInt(n.value))));n.value=Math.max(1,Math.min(g,Math.min(parseInt(v.value),parseInt(n.value))))}function d(c){function f(c,f,l){var m=c.useCssTransforms,g=c.currentTranslate,p=c.currentScale,k=c.view.translate,q=
+c.view.scale;c.useCssTransforms&&(c.useCssTransforms=!1,c.currentTranslate=new mxPoint(0,0),c.currentScale=1,c.view.translate=new mxPoint(0,0),c.view.scale=1);var t=c.getGraphBounds(),n=0,v=0,u=M.get(),y=1/c.pageScale,C=A.checked;if(C)var y=parseInt(J.value),D=parseInt(B.value),y=Math.min(u.height*D/(t.height/c.view.scale),u.width*y/(t.width/c.view.scale));else y=parseInt(x.value)/(100*c.pageScale),isNaN(y)&&(d=1/c.pageScale,x.value="100 %");u=mxRectangle.fromRectangle(u);u.width=Math.ceil(u.width*
+d);u.height=Math.ceil(u.height*d);y*=d;!C&&c.pageVisible?(t=c.getPageLayout(),n-=t.x*u.width,v-=t.y*u.height):C=!0;if(null==f){f=PrintDialog.createPrintPreview(c,y,u,0,n,v,C);f.pageSelector=!1;f.mathEnabled=!1;n=b.getCurrentFile();null!=n&&(f.title=n.getTitle());var E=f.writeHead;f.writeHead=function(f){E.apply(this,arguments);if(mxClient.IS_GC||mxClient.IS_SF)f.writeln('<style type="text/css">'),f.writeln(Editor.mathJaxWebkitCss),f.writeln("</style>");mxClient.IS_GC&&(f.writeln('<style type="text/css">'),
f.writeln("@media print {"),f.writeln("span.MathJax_SVG svg { shape-rendering: crispEdges; }"),f.writeln("}"),f.writeln("</style>"));null!=b.editor.fontCss&&(f.writeln('<style type="text/css">'),f.writeln(b.editor.fontCss),f.writeln("</style>"));for(var d=c.getCustomFonts(),e=0;e<d.length;e++){var l=d[e].name,m=d[e].url;Graph.isCssFontUrl(m)?f.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(m)+'" charset="UTF-8" type="text/css">'):(f.writeln('<style type="text/css">'),f.writeln('@font-face {\nfont-family: "'+
mxUtils.htmlEntities(l)+'";\nsrc: url("'+mxUtils.htmlEntities(m)+'");\n}'),f.writeln("</style>"))}};if("undefined"!==typeof MathJax){var H=f.renderPage;f.renderPage=function(c,f,d,e,l,m){var g=mxClient.NO_FO;mxClient.NO_FO=this.graph.mathEnabled&&!b.editor.useForeignObjectForMath?!0:b.editor.originalNoForeignObject;var p=H.apply(this,arguments);mxClient.NO_FO=g;this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:p.className="geDisableMathJax";return p}}n=null;v=e.enableFlowAnimation;e.enableFlowAnimation=
!1;null!=e.themes&&"darkTheme"==e.defaultThemeName&&(n=e.stylesheet,e.stylesheet=e.getDefaultStylesheet(),e.refresh());f.open(null,null,l,!0);e.enableFlowAnimation=v;null!=n&&(e.stylesheet=n,e.refresh())}else{u=c.background;if(null==u||""==u||u==mxConstants.NONE)u="#ffffff";f.backgroundColor=u;f.autoOrigin=C;f.appendGraph(c,y,n,v,l,!0);l=c.getCustomFonts();if(null!=f.wnd)for(n=0;n<l.length;n++)v=l[n].name,C=l[n].url,Graph.isCssFontUrl(C)?f.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(C)+
-'" charset="UTF-8" type="text/css">'):(f.wnd.document.writeln('<style type="text/css">'),f.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(v)+'";\nsrc: url("'+mxUtils.htmlEntities(C)+'");\n}'),f.wnd.document.writeln("</style>"))}m&&(c.useCssTransforms=m,c.currentTranslate=g,c.currentScale=p,c.view.translate=k,c.view.scale=q);return f}var d=parseInt(N.value)/100;isNaN(d)&&(d=1,N.value="100 %");var d=.75*d,l=null;null!=e.themes&&"darkTheme"==e.defaultThemeName&&(l=e.stylesheet,
-e.stylesheet=e.getDefaultStylesheet(),e.refresh());var m=n.value,g=v.value,p=!q.checked,t=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(b,q.checked,m,g,A.checked,I.value,M.value,parseInt(x.value)/100,parseInt(N.value)/100,B.get());else{p&&(p=m==k&&g==k);if(!p&&null!=b.pages&&b.pages.length){var u=0,p=b.pages.length-1;q.checked||(u=parseInt(m)-1,p=parseInt(g)-1);for(var y=u;y<=p;y++){var C=b.pages[y],m=C==b.currentPage?e:null;if(null==m){var m=b.createTemporaryGraph(e.stylesheet),g=!0,u=
-!1,D=null,F=null;null==C.viewState&&null==C.root&&b.updatePageRoot(C);null!=C.viewState&&(g=C.viewState.pageVisible,u=C.viewState.mathEnabled,D=C.viewState.background,F=C.viewState.backgroundImage,m.extFonts=C.viewState.extFonts);m.background=D;m.backgroundImage=null!=F?new mxImage(F.src,F.width,F.height):null;m.pageVisible=g;m.mathEnabled=u;var H=m.getGlobalVariable;m.getGlobalVariable=function(c){return"page"==c?C.getName():"pagenumber"==c?y+1:"pagecount"==c?null!=b.pages?b.pages.length:1:H.apply(this,
+'" charset="UTF-8" type="text/css">'):(f.wnd.document.writeln('<style type="text/css">'),f.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(v)+'";\nsrc: url("'+mxUtils.htmlEntities(C)+'");\n}'),f.wnd.document.writeln("</style>"))}m&&(c.useCssTransforms=m,c.currentTranslate=g,c.currentScale=p,c.view.translate=k,c.view.scale=q);return f}var d=parseInt(P.value)/100;isNaN(d)&&(d=1,P.value="100 %");var d=.75*d,l=null;null!=e.themes&&"darkTheme"==e.defaultThemeName&&(l=e.stylesheet,
+e.stylesheet=e.getDefaultStylesheet(),e.refresh());var m=n.value,g=v.value,p=!q.checked,t=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(b,q.checked,m,g,A.checked,J.value,B.value,parseInt(x.value)/100,parseInt(P.value)/100,M.get());else{p&&(p=m==k&&g==k);if(!p&&null!=b.pages&&b.pages.length){var u=0,p=b.pages.length-1;q.checked||(u=parseInt(m)-1,p=parseInt(g)-1);for(var y=u;y<=p;y++){var C=b.pages[y],m=C==b.currentPage?e:null;if(null==m){var m=b.createTemporaryGraph(e.stylesheet),g=!0,u=
+!1,D=null,E=null;null==C.viewState&&null==C.root&&b.updatePageRoot(C);null!=C.viewState&&(g=C.viewState.pageVisible,u=C.viewState.mathEnabled,D=C.viewState.background,E=C.viewState.backgroundImage,m.extFonts=C.viewState.extFonts);m.background=D;m.backgroundImage=null!=E?new mxImage(E.src,E.width,E.height):null;m.pageVisible=g;m.mathEnabled=u;var H=m.getGlobalVariable;m.getGlobalVariable=function(c){return"page"==c?C.getName():"pagenumber"==c?y+1:"pagecount"==c?null!=b.pages?b.pages.length:1:H.apply(this,
arguments)};document.body.appendChild(m.container);b.updatePageRoot(C);m.model.setRoot(C.root)}t=f(m,t,y!=p);m!=e&&m.container.parentNode.removeChild(m.container)}}else t=f(e);null==t?b.handleError({message:mxResources.get("errorUpdatingPreview")}):(t.mathEnabled&&(p=t.wnd.document,c&&(t.wnd.IMMEDIATE_PRINT=!0),p.writeln('<script type="text/javascript" src="'+DRAWIO_BASE_URL+'/js/math-print.js">\x3c/script>')),t.closeDocument(),!t.mathEnabled&&c&&PrintDialog.printPreview(t));null!=l&&(e.stylesheet=
l,e.refresh())}}var e=b.editor.graph,l=document.createElement("div"),m=document.createElement("h3");m.style.width="100%";m.style.textAlign="center";m.style.marginTop="0px";mxUtils.write(m,c||mxResources.get("print"));l.appendChild(m);var g=1,k=1,p=document.createElement("div");p.style.cssText="border-bottom:1px solid lightGray;padding-bottom:12px;margin-bottom:12px;";var q=document.createElement("input");q.style.cssText="margin-right:8px;margin-bottom:8px;";q.setAttribute("value","all");q.setAttribute("type",
"radio");q.setAttribute("name","pages-printdialog");p.appendChild(q);m=document.createElement("span");mxUtils.write(m,mxResources.get("printAllPages"));p.appendChild(m);mxUtils.br(p);var t=q.cloneNode(!0);q.setAttribute("checked","checked");t.setAttribute("value","range");p.appendChild(t);m=document.createElement("span");mxUtils.write(m,mxResources.get("pages")+":");p.appendChild(m);var n=document.createElement("input");n.style.cssText="margin:0 8px 0 8px;";n.setAttribute("value","1");n.setAttribute("type",
"number");n.setAttribute("min","1");n.style.width="50px";p.appendChild(n);m=document.createElement("span");mxUtils.write(m,mxResources.get("to"));p.appendChild(m);var v=n.cloneNode(!0);p.appendChild(v);mxEvent.addListener(n,"focus",function(){t.checked=!0});mxEvent.addListener(v,"focus",function(){t.checked=!0});mxEvent.addListener(n,"change",f);mxEvent.addListener(v,"change",f);if(null!=b.pages&&(g=b.pages.length,null!=b.currentPage))for(m=0;m<b.pages.length;m++)if(b.currentPage==b.pages[m]){k=m+
1;n.value=k;v.value=k;break}n.setAttribute("max",g);v.setAttribute("max",g);b.isPagesEnabled()?1<g&&(l.appendChild(p),t.checked=!0):t.checked=!0;var u=document.createElement("div");u.style.marginBottom="10px";var y=document.createElement("input");y.style.marginRight="8px";y.setAttribute("value","adjust");y.setAttribute("type","radio");y.setAttribute("name","printZoom");u.appendChild(y);m=document.createElement("span");mxUtils.write(m,mxResources.get("adjustTo"));u.appendChild(m);var x=document.createElement("input");
x.style.cssText="margin:0 8px 0 8px;";x.setAttribute("value","100 %");x.style.width="50px";u.appendChild(x);mxEvent.addListener(x,"focus",function(){y.checked=!0});l.appendChild(u);var p=p.cloneNode(!1),A=y.cloneNode(!0);A.setAttribute("value","fit");y.setAttribute("checked","checked");m=document.createElement("div");m.style.cssText="display:inline-block;height:100%;vertical-align:top;padding-top:2px;";m.appendChild(A);p.appendChild(m);u=document.createElement("table");u.style.display="inline-block";
-var C=document.createElement("tbody"),D=document.createElement("tr"),F=D.cloneNode(!0),H=document.createElement("td"),z=H.cloneNode(!0),G=H.cloneNode(!0),E=H.cloneNode(!0),K=H.cloneNode(!0),J=H.cloneNode(!0);H.style.textAlign="right";E.style.textAlign="right";mxUtils.write(H,mxResources.get("fitTo"));var I=document.createElement("input");I.style.cssText="margin:0 8px 0 8px;";I.setAttribute("value","1");I.setAttribute("min","1");I.setAttribute("type","number");I.style.width="40px";z.appendChild(I);
-m=document.createElement("span");mxUtils.write(m,mxResources.get("fitToSheetsAcross"));G.appendChild(m);mxUtils.write(E,mxResources.get("fitToBy"));var M=I.cloneNode(!0);K.appendChild(M);mxEvent.addListener(I,"focus",function(){A.checked=!0});mxEvent.addListener(M,"focus",function(){A.checked=!0});m=document.createElement("span");mxUtils.write(m,mxResources.get("fitToSheetsDown"));J.appendChild(m);D.appendChild(H);D.appendChild(z);D.appendChild(G);F.appendChild(E);F.appendChild(K);F.appendChild(J);
-C.appendChild(D);C.appendChild(F);u.appendChild(C);p.appendChild(u);l.appendChild(p);p=document.createElement("div");m=document.createElement("div");m.style.fontWeight="bold";m.style.marginBottom="12px";mxUtils.write(m,mxResources.get("paperSize"));p.appendChild(m);m=document.createElement("div");m.style.marginBottom="12px";var B=PageSetupDialog.addPageFormatPanel(m,"printdialog",b.editor.graph.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT);p.appendChild(m);m=document.createElement("span");mxUtils.write(m,
-mxResources.get("pageScale"));p.appendChild(m);var N=document.createElement("input");N.style.cssText="margin:0 8px 0 8px;";N.setAttribute("value","100 %");N.style.width="60px";p.appendChild(N);l.appendChild(p);m=document.createElement("div");m.style.cssText="text-align:right;margin:48px 0 0 0;";p=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});p.className="geBtn";b.editor.cancelFirst&&m.appendChild(p);b.isOffline()||(u=mxUtils.button(mxResources.get("help"),function(){e.openLink("https://www.diagrams.net/doc/faq/print-diagram")}),
+var C=document.createElement("tbody"),D=document.createElement("tr"),E=D.cloneNode(!0),H=document.createElement("td"),z=H.cloneNode(!0),F=H.cloneNode(!0),I=H.cloneNode(!0),G=H.cloneNode(!0),K=H.cloneNode(!0);H.style.textAlign="right";I.style.textAlign="right";mxUtils.write(H,mxResources.get("fitTo"));var J=document.createElement("input");J.style.cssText="margin:0 8px 0 8px;";J.setAttribute("value","1");J.setAttribute("min","1");J.setAttribute("type","number");J.style.width="40px";z.appendChild(J);
+m=document.createElement("span");mxUtils.write(m,mxResources.get("fitToSheetsAcross"));F.appendChild(m);mxUtils.write(I,mxResources.get("fitToBy"));var B=J.cloneNode(!0);G.appendChild(B);mxEvent.addListener(J,"focus",function(){A.checked=!0});mxEvent.addListener(B,"focus",function(){A.checked=!0});m=document.createElement("span");mxUtils.write(m,mxResources.get("fitToSheetsDown"));K.appendChild(m);D.appendChild(H);D.appendChild(z);D.appendChild(F);E.appendChild(I);E.appendChild(G);E.appendChild(K);
+C.appendChild(D);C.appendChild(E);u.appendChild(C);p.appendChild(u);l.appendChild(p);p=document.createElement("div");m=document.createElement("div");m.style.fontWeight="bold";m.style.marginBottom="12px";mxUtils.write(m,mxResources.get("paperSize"));p.appendChild(m);m=document.createElement("div");m.style.marginBottom="12px";var M=PageSetupDialog.addPageFormatPanel(m,"printdialog",b.editor.graph.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT);p.appendChild(m);m=document.createElement("span");mxUtils.write(m,
+mxResources.get("pageScale"));p.appendChild(m);var P=document.createElement("input");P.style.cssText="margin:0 8px 0 8px;";P.setAttribute("value","100 %");P.style.width="60px";p.appendChild(P);l.appendChild(p);m=document.createElement("div");m.style.cssText="text-align:right;margin:48px 0 0 0;";p=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});p.className="geBtn";b.editor.cancelFirst&&m.appendChild(p);b.isOffline()||(u=mxUtils.button(mxResources.get("help"),function(){e.openLink("https://www.diagrams.net/doc/faq/print-diagram")}),
u.className="geBtn",m.appendChild(u));PrintDialog.previewEnabled&&(u=mxUtils.button(mxResources.get("preview"),function(){b.hideDialog();d(!1)}),u.className="geBtn",m.appendChild(u));u=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){b.hideDialog();d(!0)});u.className="geBtn gePrimaryBtn";m.appendChild(u);b.editor.cancelFirst||m.appendChild(p);l.appendChild(m);this.container=l};var M=ChangePageSetup.prototype.execute;ChangePageSetup.prototype.execute=function(){null==
this.page&&(this.page=this.ui.currentPage);if(this.page!=this.ui.currentPage){if(null!=this.page.viewState){this.ignoreColor||(this.page.viewState.background=this.color);if(!this.ignoreImage){var b=this.image;null!=b&&null!=b.src&&Graph.isPageLink(b.src)&&(b={originalSrc:b.src});this.page.viewState.backgroundImage=b}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.shadowVisible&&(this.page.viewState.shadowVisible=
-this.shadowVisible)}}else M.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.prototype.useCanvasForExport=!1;try{var Y=document.createElement("canvas"),W=new Image;W.onload=function(){try{Y.getContext("2d").drawImage(W,
-0,0);var b=Y.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=b&&6<b.length}catch(O){}};W.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(L){}})();
+this.shadowVisible)}}else M.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.prototype.useCanvasForExport=!1;try{var W=document.createElement("canvas"),X=new Image;X.onload=function(){try{W.getContext("2d").drawImage(X,
+0,0);var b=W.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=b&&6<b.length}catch(Q){}};X.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(L){}})();
(function(){var b=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);b.beforeDecode=function(b,d,c){c.ui=b.ui;return d};b.afterDecode=function(b,d,c){c.previousColor=c.color;c.previousImage=c.image;c.previousFormat=c.format;null!=c.foldingEnabled&&(c.foldingEnabled=!c.foldingEnabled);null!=c.mathEnabled&&(c.mathEnabled=!c.mathEnabled);null!=c.shadowVisible&&(c.shadowVisible=!c.shadowVisible);return c};mxCodecRegistry.register(b)})();
-(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(b,d,c){c.ui=b.ui;return d};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="16.4.0";EditorUi.compactUi="atlas"!=uiTheme;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;EditorUi.lastErrorMessage=
+(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(b,d,c){c.ui=b.ui;return d};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="16.4.3";EditorUi.compactUi="atlas"!=uiTheme;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;EditorUi.lastErrorMessage=
null;EditorUi.ignoredAnonymizedChars="\n\t`~!@#$%^&*()_+{}|:\"<>?-=[];'./,\n\t";EditorUi.templateFile=TEMPLATE_PATH+"/index.xml";EditorUi.cacheUrl="1"==urlParams.dev?"/cache":window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.enablePlantUml=EditorUi.enableLogging;EditorUi.isElectronApp=null!=window&&null!=window.process&&null!=window.process.versions&&null!=window.process.versions.electron;EditorUi.nativeFileSupport=
!mxClient.IS_OP&&!EditorUi.isElectronApp&&"1"!=urlParams.extAuth&&"showSaveFilePicker"in window&&"showOpenFilePicker"in window;EditorUi.enableDrafts=!mxClient.IS_CHROMEAPP&&isLocalStorage&&"0"!=urlParams.drafts;EditorUi.scratchpadHelpLink="https://www.diagrams.net/doc/faq/scratchpad";EditorUi.defaultMermaidConfig={theme:"neutral",arrowMarkerAbsolute:!1,flowchart:{htmlLabels:!1},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,
messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d"}};EditorUi.logError=function(b,c,d,e,g,k,n){k=null!=k?k:0<=b.indexOf("NetworkError")||0<=b.indexOf("SecurityError")||0<=b.indexOf("NS_ERROR_FAILURE")||0<=b.indexOf("out of memory")?"CONFIG":"SEVERE";if(EditorUi.enableLogging&&
@@ -10833,18 +10833,18 @@ null==b.getName()&&b.setName(mxResources.get("pageWithNumber",[d+1])),this.pages
[1])),this.pages=[this.currentPage]);this.editor.setGraphXml(b);null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root);if(null!=urlParams["layer-ids"])try{var e=urlParams["layer-ids"].split(" ");b={};for(d=0;d<e.length;d++)b[e[d]]=!0;for(var g=this.editor.graph.getModel(),k=g.getChildren(g.root),d=0;d<k.length;d++){var n=k[d];g.setVisible(n,b[n.id]||!1)}}catch(x){}};EditorUi.prototype.getBaseFilename=function(b){var c=this.getCurrentFile(),c=null!=c&&null!=c.getTitle()?c.getTitle():
this.defaultFilename;if(/(\.xml)$/i.test(c)||/(\.html)$/i.test(c)||/(\.svg)$/i.test(c)||/(\.png)$/i.test(c))c=c.substring(0,c.lastIndexOf("."));/(\.drawio)$/i.test(c)&&(c=c.substring(0,c.lastIndexOf(".")));!b&&null!=this.pages&&1<this.pages.length&&null!=this.currentPage&&null!=this.currentPage.node.getAttribute("name")&&0<this.currentPage.getName().length&&(c=c+"-"+this.currentPage.getName());return c};EditorUi.prototype.downloadFile=function(b,c,d,e,g,k,n,u,x,A,z,B){try{e=null!=e?e:this.editor.graph.isSelectionEmpty();
var f=this.getBaseFilename("remoteSvg"==b?!1:!g),l=f+("xml"==b||"pdf"==b&&z?".drawio":"")+"."+b;if("xml"==b){var m=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,e,g,null,null,null,c);this.saveData(l,b,m,"text/xml")}else if("html"==b)m=this.getHtml2(this.getFileData(!0),this.editor.graph,f),this.saveData(l,b,m,"text/html");else if("svg"!=b&&"xmlsvg"!=b||!this.spinner.spin(document.body,mxResources.get("export"))){var p,t;if("xmlpng"==b)l=f+".png";else if("jpeg"==b)l=f+".jpg";else if("remoteSvg"==
-b){l=f+".svg";b="svg";var q=parseInt(x);"string"===typeof u&&0<u.indexOf("%")&&(u=parseInt(u)/100);if(0<q){var v=this.editor.graph,J=v.getGraphBounds();p=Math.ceil(J.width*u/v.view.scale+2*q);t=Math.ceil(J.height*u/v.view.scale+2*q)}}this.saveRequest(l,b,mxUtils.bind(this,function(c,f){try{var d=this.editor.graph.pageVisible;null!=k&&(this.editor.graph.pageVisible=k);var l=this.createDownloadRequest(c,b,e,f,n,g,u,x,A,z,B,p,t);this.editor.graph.pageVisible=d;return l}catch(O){this.handleError(O)}}))}else{var H=
-null,K=mxUtils.bind(this,function(b){b.length<=MAX_REQUEST_SIZE?this.saveData(l,"svg",b,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(H)}))});if("svg"==b){var P=this.editor.graph.background;if(n||P==mxConstants.NONE)P=null;var N=this.editor.graph.getSvg(P,null,null,null,null,e);d&&this.editor.graph.addSvgShadow(N);this.editor.convertImages(N,mxUtils.bind(this,mxUtils.bind(this,function(b){this.spinner.stop();
-K(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(b))})))}else l=f+".svg",H=this.getFileData(!1,!0,null,mxUtils.bind(this,function(b){this.spinner.stop();K(b)}),e)}}catch(M){this.handleError(M)}};EditorUi.prototype.createDownloadRequest=function(b,c,d,e,g,k,n,u,x,A,z,B,y){var f=this.editor.graph,l=f.getGraphBounds();d=this.getFileData(!0,null,null,null,d,0==k?!1:"xmlpng"!=c,null,null,null,!1,"pdf"==c);var m="",p="";if(l.width*l.height>MAX_AREA||d.length>MAX_REQUEST_SIZE)throw{message:mxResources.get("drawingTooLarge")};
+b){l=f+".svg";b="svg";var q=parseInt(x);"string"===typeof u&&0<u.indexOf("%")&&(u=parseInt(u)/100);if(0<q){var v=this.editor.graph,K=v.getGraphBounds();p=Math.ceil(K.width*u/v.view.scale+2*q);t=Math.ceil(K.height*u/v.view.scale+2*q)}}this.saveRequest(l,b,mxUtils.bind(this,function(c,f){try{var d=this.editor.graph.pageVisible;null!=k&&(this.editor.graph.pageVisible=k);var l=this.createDownloadRequest(c,b,e,f,n,g,u,x,A,z,B,p,t);this.editor.graph.pageVisible=d;return l}catch(Q){this.handleError(Q)}}))}else{var H=
+null,I=mxUtils.bind(this,function(b){b.length<=MAX_REQUEST_SIZE?this.saveData(l,"svg",b,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(H)}))});if("svg"==b){var S=this.editor.graph.background;if(n||S==mxConstants.NONE)S=null;var P=this.editor.graph.getSvg(S,null,null,null,null,e);d&&this.editor.graph.addSvgShadow(P);this.editor.convertImages(P,mxUtils.bind(this,mxUtils.bind(this,function(b){this.spinner.stop();
+I(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(b))})))}else l=f+".svg",H=this.getFileData(!1,!0,null,mxUtils.bind(this,function(b){this.spinner.stop();I(b)}),e)}}catch(M){this.handleError(M)}};EditorUi.prototype.createDownloadRequest=function(b,c,d,e,g,k,n,u,x,A,z,B,y){var f=this.editor.graph,l=f.getGraphBounds();d=this.getFileData(!0,null,null,null,d,0==k?!1:"xmlpng"!=c,null,null,null,!1,"pdf"==c);var m="",p="";if(l.width*l.height>MAX_AREA||d.length>MAX_REQUEST_SIZE)throw{message:mxResources.get("drawingTooLarge")};
A=A?"1":"0";"pdf"==c&&(null!=z?p="&from="+z.from+"&to="+z.to:0==k&&(p="&allPages=1"));"xmlpng"==c&&(A="1",c="png");if(("xmlpng"==c||"svg"==c)&&null!=this.pages&&null!=this.currentPage)for(k=0;k<this.pages.length;k++)if(this.pages[k]==this.currentPage){m="&from="+k;break}k=f.background;"png"!=c&&"pdf"!=c&&"svg"!=c||!g?g||null!=k&&k!=mxConstants.NONE||(k="#ffffff"):k=mxConstants.NONE;g={globalVars:f.getExportVariables()};x&&(g.grid={size:f.gridSize,steps:f.view.gridSteps,color:f.view.gridColor});Graph.translateDiagram&&
(g.diagramLanguage=Graph.diagramLanguage);return new mxXmlRequest(EXPORT_URL,"format="+c+m+p+"&bg="+(null!=k?k:mxConstants.NONE)+"&base64="+e+"&embedXml="+A+"&xml="+encodeURIComponent(d)+(null!=b?"&filename="+encodeURIComponent(b):"")+"&extras="+encodeURIComponent(JSON.stringify(g))+(null!=n?"&scale="+n:"")+(null!=u?"&border="+u:"")+(B&&isFinite(B)?"&w="+B:"")+(y&&isFinite(y)?"&h="+y:""))};EditorUi.prototype.setMode=function(b,c){this.mode=b};EditorUi.prototype.loadDescriptor=function(b,c,d){var f=
window.location.hash,e=mxUtils.bind(this,function(d){var e=null!=b.data?b.data:"";null!=d&&0<d.length&&(0<e.length&&(e+="\n"),e+=d);d=new LocalFile(this,"csv"!=b.format&&0<e.length?e:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);d.getHash=function(){return f};this.fileLoaded(d);"csv"==b.format&&this.importCsv(e,mxUtils.bind(this,function(b){this.editor.undoManager.clear();this.editor.setModified(!1);this.editor.setStatus("")}));if(null!=b.update){var l=
null!=b.interval?parseInt(b.interval):6E4,m=null,g=mxUtils.bind(this,function(){var c=this.currentPage;mxUtils.post(b.update,"xml="+encodeURIComponent(mxUtils.getXml(this.editor.getGraphXml())),mxUtils.bind(this,function(b){c===this.currentPage&&(200<=b.getStatus()&&300>=b.getStatus()?(this.updateDiagram(b.getText()),k()):this.handleError({message:mxResources.get("error")+" "+b.getStatus()}))}),mxUtils.bind(this,function(b){this.handleError(b)}))}),k=mxUtils.bind(this,function(){window.clearTimeout(m);
m=window.setTimeout(g,l)});this.editor.addListener("pageSelected",mxUtils.bind(this,function(){k();g()}));k();g()}null!=c&&c()});null!=b.url&&0<b.url.length?this.editor.loadUrl(b.url,mxUtils.bind(this,function(b){e(b)}),mxUtils.bind(this,function(b){null!=d&&d(b)})):e("")};EditorUi.prototype.updateDiagram=function(b){function c(b){var c=new mxCellOverlay(b.image||e.warningImage,b.tooltip,b.align,b.valign,b.offset);c.addListener(mxEvent.CLICK,function(c,f){d.alert(b.tooltip)});return c}var f=null,
d=this;if(null!=b&&0<b.length&&(f=mxUtils.parseXml(b),b=null!=f?f.documentElement:null,null!=b&&"updates"==b.nodeName)){var e=this.editor.graph,g=e.getModel();g.beginUpdate();var k=null;try{for(b=b.firstChild;null!=b;){if("update"==b.nodeName){var n=g.getCell(b.getAttribute("id"));if(null!=n){try{var x=b.getAttribute("value");if(null!=x){var A=mxUtils.parseXml(x).documentElement;if(null!=A)if("1"==A.getAttribute("replace-value"))g.setValue(n,A);else for(var z=A.attributes,B=0;B<z.length;B++)e.setAttributeForCell(n,
-z[B].nodeName,0<z[B].nodeValue.length?z[B].nodeValue:null)}}catch(J){null!=window.console&&console.log("Error in value for "+n.id+": "+J)}try{var y=b.getAttribute("style");null!=y&&e.model.setStyle(n,y)}catch(J){null!=window.console&&console.log("Error in style for "+n.id+": "+J)}try{var C=b.getAttribute("icon");if(null!=C){var E=0<C.length?JSON.parse(C):null;null!=E&&E.append||e.removeCellOverlays(n);null!=E&&e.addCellOverlay(n,c(E))}}catch(J){null!=window.console&&console.log("Error in icon for "+
-n.id+": "+J)}try{var D=b.getAttribute("geometry");if(null!=D){var D=JSON.parse(D),F=e.getCellGeometry(n);if(null!=F){F=F.clone();for(key in D){var G=parseFloat(D[key]);"dx"==key?F.x+=G:"dy"==key?F.y+=G:"dw"==key?F.width+=G:"dh"==key?F.height+=G:F[key]=parseFloat(D[key])}e.model.setGeometry(n,F)}}}catch(J){null!=window.console&&console.log("Error in icon for "+n.id+": "+J)}}}else if("model"==b.nodeName){for(var I=b.firstChild;null!=I&&I.nodeType!=mxConstants.NODETYPE_ELEMENT;)I=I.nextSibling;null!=
-I&&(new mxCodec(b.firstChild)).decode(I,g)}else if("view"==b.nodeName){if(b.hasAttribute("scale")&&(e.view.scale=parseFloat(b.getAttribute("scale"))),b.hasAttribute("dx")||b.hasAttribute("dy"))e.view.translate=new mxPoint(parseFloat(b.getAttribute("dx")||0),parseFloat(b.getAttribute("dy")||0))}else"fit"==b.nodeName&&(k=b.hasAttribute("max-scale")?parseFloat(b.getAttribute("max-scale")):1);b=b.nextSibling}}finally{g.endUpdate()}null!=k&&this.chromelessResize&&this.chromelessResize(!0,k)}return f};
+z[B].nodeName,0<z[B].nodeValue.length?z[B].nodeValue:null)}}catch(K){null!=window.console&&console.log("Error in value for "+n.id+": "+K)}try{var y=b.getAttribute("style");null!=y&&e.model.setStyle(n,y)}catch(K){null!=window.console&&console.log("Error in style for "+n.id+": "+K)}try{var C=b.getAttribute("icon");if(null!=C){var G=0<C.length?JSON.parse(C):null;null!=G&&G.append||e.removeCellOverlays(n);null!=G&&e.addCellOverlay(n,c(G))}}catch(K){null!=window.console&&console.log("Error in icon for "+
+n.id+": "+K)}try{var D=b.getAttribute("geometry");if(null!=D){var D=JSON.parse(D),E=e.getCellGeometry(n);if(null!=E){E=E.clone();for(key in D){var F=parseFloat(D[key]);"dx"==key?E.x+=F:"dy"==key?E.y+=F:"dw"==key?E.width+=F:"dh"==key?E.height+=F:E[key]=parseFloat(D[key])}e.model.setGeometry(n,E)}}}catch(K){null!=window.console&&console.log("Error in icon for "+n.id+": "+K)}}}else if("model"==b.nodeName){for(var J=b.firstChild;null!=J&&J.nodeType!=mxConstants.NODETYPE_ELEMENT;)J=J.nextSibling;null!=
+J&&(new mxCodec(b.firstChild)).decode(J,g)}else if("view"==b.nodeName){if(b.hasAttribute("scale")&&(e.view.scale=parseFloat(b.getAttribute("scale"))),b.hasAttribute("dx")||b.hasAttribute("dy"))e.view.translate=new mxPoint(parseFloat(b.getAttribute("dx")||0),parseFloat(b.getAttribute("dy")||0))}else"fit"==b.nodeName&&(k=b.hasAttribute("max-scale")?parseFloat(b.getAttribute("max-scale")):1);b=b.nextSibling}}finally{g.endUpdate()}null!=k&&this.chromelessResize&&this.chromelessResize(!0,k)}return f};
EditorUi.prototype.getCopyFilename=function(b,c){var f=null!=b&&null!=b.getTitle()?b.getTitle():this.defaultFilename,d="",e=f.lastIndexOf(".");0<=e&&(d=f.substring(e),f=f.substring(0,e));if(c)var l=new Date,e=l.getFullYear(),g=l.getMonth()+1,k=l.getDate(),n=l.getHours(),A=l.getMinutes(),l=l.getSeconds(),f=f+(" "+(e+"-"+g+"-"+k+"-"+n+"-"+A+"-"+l));return f=mxResources.get("copyOf",[f])+d};EditorUi.prototype.fileLoaded=function(b,c){var f=this.getCurrentFile();this.fileEditable=this.fileLoadedError=
null;this.setCurrentFile(null);var d=!1;this.hideDialog();null!=f&&(EditorUi.debug("File.closed",[f]),f.removeListener(this.descriptorChangedListener),f.close());this.editor.graph.model.clear();this.editor.undoManager.clear();var e=mxUtils.bind(this,function(){this.setGraphEnabled(!1);this.setCurrentFile(null);null!=f&&this.updateDocumentTitle();this.editor.graph.model.clear();this.editor.undoManager.clear();this.setBackgroundImage(null);!c&&null!=window.location.hash&&0<window.location.hash.length&&
(window.location.hash="");null!=this.fname&&(this.fnameWrapper.style.display="none",this.fname.innerHTML="",this.fname.setAttribute("title",mxResources.get("rename")));this.editor.setStatus("");this.updateUi();c||this.showSplash()});if(null!=b)try{mxClient.IS_SF&&"min"==uiTheme&&(this.diagramContainer.style.visibility="");this.openingFile=!0;this.setCurrentFile(b);b.addListener("descriptorChanged",this.descriptorChangedListener);b.addListener("contentChanged",this.descriptorChangedListener);b.open();
@@ -10862,18 +10862,18 @@ mxUtils.parseXml(b.getData());if("mxlibrary"==f.documentElement.nodeName){var d=
b);var f=this.sidebar.palettes[b.getHash()],f=null!=f?f[f.length-1].nextSibling:null;this.removeLibrarySidebar(b.getHash());var l=null,m=mxUtils.bind(this,function(c,f){0==c.length&&b.isEditable()?(null==l&&(l=document.createElement("div"),l.className="geDropTarget",mxUtils.write(l,mxResources.get("dragElementsHere"))),f.appendChild(l)):this.addLibraryEntries(c,f)});null!=this.sidebar&&null!=c&&this.sidebar.addEntries(c);null==d&&(d=b.getTitle(),null!=d&&/(\.xml)$/i.test(d)&&(d=d.substring(0,d.lastIndexOf("."))));
var g=this.sidebar.addPalette(b.getHash(),d,null!=e?e:!0,mxUtils.bind(this,function(b){m(c,b)}));this.repositionLibrary(f);var k=g.parentNode.previousSibling;e=k.getAttribute("title");null!=e&&0<e.length&&".scratchpad"!=b.title&&k.setAttribute("title",this.getLibraryStorageHint(b)+"\n"+e);var p=document.createElement("div");p.style.position="absolute";p.style.right="0px";p.style.top="0px";p.style.padding="8px";p.style.backgroundColor="inherit";k.style.position="relative";var n=document.createElement("img");
n.setAttribute("src",Editor.crossImage);n.setAttribute("title",mxResources.get("close"));n.setAttribute("valign","absmiddle");n.setAttribute("border","0");n.style.position="relative";n.style.top="2px";n.style.width="14px";n.style.cursor="pointer";n.style.margin="0 3px";Editor.isDarkMode()&&(n.style.filter="invert(100%)");var B=null;if(".scratchpad"!=b.title||this.closableScratchpad)p.appendChild(n),mxEvent.addListener(n,"click",mxUtils.bind(this,function(c){if(!mxEvent.isConsumed(c)){var f=mxUtils.bind(this,
-function(){this.closeLibrary(b)});null!=B?this.confirm(mxResources.get("allChangesLost"),null,f,mxResources.get("cancel"),mxResources.get("discardChanges")):f();mxEvent.consume(c)}}));if(b.isEditable()){var y=this.editor.graph,C=null,E=mxUtils.bind(this,function(f){this.showLibraryDialog(b.getTitle(),g,c,b,b.getMode());mxEvent.consume(f)}),D=mxUtils.bind(this,function(f){b.setModified(!0);b.isAutosave()?(null!=C&&null!=C.parentNode&&C.parentNode.removeChild(C),C=n.cloneNode(!1),C.setAttribute("src",
+function(){this.closeLibrary(b)});null!=B?this.confirm(mxResources.get("allChangesLost"),null,f,mxResources.get("cancel"),mxResources.get("discardChanges")):f();mxEvent.consume(c)}}));if(b.isEditable()){var y=this.editor.graph,C=null,G=mxUtils.bind(this,function(f){this.showLibraryDialog(b.getTitle(),g,c,b,b.getMode());mxEvent.consume(f)}),D=mxUtils.bind(this,function(f){b.setModified(!0);b.isAutosave()?(null!=C&&null!=C.parentNode&&C.parentNode.removeChild(C),C=n.cloneNode(!1),C.setAttribute("src",
Editor.spinImage),C.setAttribute("title",mxResources.get("saving")),C.style.cursor="default",C.style.marginRight="2px",C.style.marginTop="-2px",p.insertBefore(C,p.firstChild),k.style.paddingRight=18*p.childNodes.length+"px",this.saveLibrary(b.getTitle(),c,b,b.getMode(),!0,!0,function(){null!=C&&null!=C.parentNode&&(C.parentNode.removeChild(C),k.style.paddingRight=18*p.childNodes.length+"px")})):null==B&&(B=n.cloneNode(!1),B.setAttribute("src",Editor.saveImage),B.setAttribute("title",mxResources.get("save")),
-p.insertBefore(B,p.firstChild),mxEvent.addListener(B,"click",mxUtils.bind(this,function(f){this.saveLibrary(b.getTitle(),c,b,b.getMode(),b.constructor==LocalLibrary,!0,function(){null==B||b.isModified()||(k.style.paddingRight=18*p.childNodes.length+"px",B.parentNode.removeChild(B),B=null)});mxEvent.consume(f)})),k.style.paddingRight=18*p.childNodes.length+"px")}),F=mxUtils.bind(this,function(b,f,d,e){b=y.cloneCells(mxUtils.sortCells(y.model.getTopmostCells(b)));for(var m=0;m<b.length;m++){var k=y.getCellGeometry(b[m]);
-null!=k&&k.translate(-f.x,-f.y)}g.appendChild(this.sidebar.createVertexTemplateFromCells(b,f.width,f.height,e||"",!0,null,!1));b={xml:Graph.compress(mxUtils.getXml(this.editor.graph.encodeCells(b))),w:f.width,h:f.height};null!=e&&(b.title=e);c.push(b);D(d);null!=l&&null!=l.parentNode&&0<c.length&&(l.parentNode.removeChild(l),l=null)}),G=mxUtils.bind(this,function(b){if(y.isSelectionEmpty())y.getRubberband().isActive()?(y.getRubberband().execute(b),y.getRubberband().reset()):this.showError(mxResources.get("error"),
-mxResources.get("nothingIsSelected"),mxResources.get("ok"));else{var c=y.getSelectionCells(),f=y.view.getBounds(c),d=y.view.scale;f.x/=d;f.y/=d;f.width/=d;f.height/=d;f.x-=y.view.translate.x;f.y-=y.view.translate.y;F(c,f)}mxEvent.consume(b)});mxEvent.addGestureListeners(g,function(){},mxUtils.bind(this,function(b){y.isMouseDown&&null!=y.panningManager&&null!=y.graphHandler.first&&(y.graphHandler.suspend(),null!=y.graphHandler.hint&&(y.graphHandler.hint.style.visibility="hidden"),g.style.backgroundColor=
-"#f1f3f4",g.style.cursor="copy",y.panningManager.stop(),y.autoScroll=!1,mxEvent.consume(b))}),mxUtils.bind(this,function(b){y.isMouseDown&&null!=y.panningManager&&null!=y.graphHandler&&(g.style.backgroundColor="",g.style.cursor="default",this.sidebar.showTooltips=!0,y.panningManager.stop(),y.graphHandler.reset(),y.isMouseDown=!1,y.autoScroll=!0,G(b),mxEvent.consume(b))}));mxEvent.addListener(g,"mouseleave",mxUtils.bind(this,function(b){y.isMouseDown&&null!=y.graphHandler.first&&(y.graphHandler.resume(),
+p.insertBefore(B,p.firstChild),mxEvent.addListener(B,"click",mxUtils.bind(this,function(f){this.saveLibrary(b.getTitle(),c,b,b.getMode(),b.constructor==LocalLibrary,!0,function(){null==B||b.isModified()||(k.style.paddingRight=18*p.childNodes.length+"px",B.parentNode.removeChild(B),B=null)});mxEvent.consume(f)})),k.style.paddingRight=18*p.childNodes.length+"px")}),E=mxUtils.bind(this,function(b,f,d,e){b=y.cloneCells(mxUtils.sortCells(y.model.getTopmostCells(b)));for(var m=0;m<b.length;m++){var k=y.getCellGeometry(b[m]);
+null!=k&&k.translate(-f.x,-f.y)}g.appendChild(this.sidebar.createVertexTemplateFromCells(b,f.width,f.height,e||"",!0,null,!1));b={xml:Graph.compress(mxUtils.getXml(this.editor.graph.encodeCells(b))),w:f.width,h:f.height};null!=e&&(b.title=e);c.push(b);D(d);null!=l&&null!=l.parentNode&&0<c.length&&(l.parentNode.removeChild(l),l=null)}),F=mxUtils.bind(this,function(b){if(y.isSelectionEmpty())y.getRubberband().isActive()?(y.getRubberband().execute(b),y.getRubberband().reset()):this.showError(mxResources.get("error"),
+mxResources.get("nothingIsSelected"),mxResources.get("ok"));else{var c=y.getSelectionCells(),f=y.view.getBounds(c),d=y.view.scale;f.x/=d;f.y/=d;f.width/=d;f.height/=d;f.x-=y.view.translate.x;f.y-=y.view.translate.y;E(c,f)}mxEvent.consume(b)});mxEvent.addGestureListeners(g,function(){},mxUtils.bind(this,function(b){y.isMouseDown&&null!=y.panningManager&&null!=y.graphHandler.first&&(y.graphHandler.suspend(),null!=y.graphHandler.hint&&(y.graphHandler.hint.style.visibility="hidden"),g.style.backgroundColor=
+"#f1f3f4",g.style.cursor="copy",y.panningManager.stop(),y.autoScroll=!1,mxEvent.consume(b))}),mxUtils.bind(this,function(b){y.isMouseDown&&null!=y.panningManager&&null!=y.graphHandler&&(g.style.backgroundColor="",g.style.cursor="default",this.sidebar.showTooltips=!0,y.panningManager.stop(),y.graphHandler.reset(),y.isMouseDown=!1,y.autoScroll=!0,F(b),mxEvent.consume(b))}));mxEvent.addListener(g,"mouseleave",mxUtils.bind(this,function(b){y.isMouseDown&&null!=y.graphHandler.first&&(y.graphHandler.resume(),
null!=y.graphHandler.hint&&(y.graphHandler.hint.style.visibility="visible"),g.style.backgroundColor="",g.style.cursor="",y.autoScroll=!0)}));Graph.fileSupport&&(mxEvent.addListener(g,"dragover",mxUtils.bind(this,function(b){g.style.backgroundColor="#f1f3f4";b.dataTransfer.dropEffect="copy";g.style.cursor="copy";this.sidebar.hideTooltip();b.stopPropagation();b.preventDefault()})),mxEvent.addListener(g,"drop",mxUtils.bind(this,function(b){g.style.cursor="";g.style.backgroundColor="";0<b.dataTransfer.files.length&&
-this.importFiles(b.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(f,d,e,k,p,n,q,t,v){if(null!=f&&"image/"==d.substring(0,6))f="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(f),f=[new mxCell("",new mxGeometry(0,0,p,n),f)],f[0].vertex=!0,F(f,new mxRectangle(0,0,p,n),b,mxEvent.isAltDown(b)?null:q.substring(0,q.lastIndexOf(".")).replace(/_/g," ")),null!=l&&null!=l.parentNode&&0<c.length&&(l.parentNode.removeChild(l),
-l=null);else{var y=!1,u=mxUtils.bind(this,function(f,d){if(null!=f&&"application/pdf"==d){var e=Editor.extractGraphModelFromPdf(f);null!=e&&0<e.length&&(f=e)}if(null!=f)if(e=mxUtils.parseXml(f),"mxlibrary"==e.documentElement.nodeName)try{var k=JSON.parse(mxUtils.getTextContent(e.documentElement));m(k,g);c=c.concat(k);D(b);this.spinner.stop();y=!0}catch(qa){}else if("mxfile"==e.documentElement.nodeName)try{for(var p=e.documentElement.getElementsByTagName("diagram"),k=0;k<p.length;k++){var n=this.stringToCells(Editor.getDiagramNodeXml(p[k])),
-q=this.editor.graph.getBoundingBoxFromGeometry(n);F(n,new mxRectangle(0,0,q.width,q.height),b)}y=!0}catch(qa){null!=window.console&&console.log("error in drop handler:",qa)}y||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));null!=l&&null!=l.parentNode&&0<c.length&&(l.parentNode.removeChild(l),l=null)});null!=v&&null!=q&&(/(\.v(dx|sdx?))($|\?)/i.test(q)||/(\.vs(x|sx?))($|\?)/i.test(q))?this.importVisio(v,function(b){u(b,"text/xml")},null,q):!this.isOffline()&&
-(new XMLHttpRequest).upload&&this.isRemoteFileFormat(f,q)&&null!=v?this.parseFile(v,mxUtils.bind(this,function(b){4==b.readyState&&(this.spinner.stop(),200<=b.status&&299>=b.status?u(b.responseText,"text/xml"):this.handleError({message:mxResources.get(413==b.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):u(f,d)}}));b.stopPropagation();b.preventDefault()})),mxEvent.addListener(g,"dragleave",function(b){g.style.cursor="";g.style.backgroundColor="";b.stopPropagation();
-b.preventDefault()}));n=n.cloneNode(!1);n.setAttribute("src",Editor.editImage);n.setAttribute("title",mxResources.get("edit"));p.insertBefore(n,p.firstChild);mxEvent.addListener(n,"click",E);mxEvent.addListener(g,"dblclick",function(b){mxEvent.getSource(b)==g&&E(b)});e=n.cloneNode(!1);e.setAttribute("src",Editor.plusImage);e.setAttribute("title",mxResources.get("add"));p.insertBefore(e,p.firstChild);mxEvent.addListener(e,"click",G);this.isOffline()||".scratchpad"!=b.title||null==EditorUi.scratchpadHelpLink||
+this.importFiles(b.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(f,d,e,k,p,n,t,q,v){if(null!=f&&"image/"==d.substring(0,6))f="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(f),f=[new mxCell("",new mxGeometry(0,0,p,n),f)],f[0].vertex=!0,E(f,new mxRectangle(0,0,p,n),b,mxEvent.isAltDown(b)?null:t.substring(0,t.lastIndexOf(".")).replace(/_/g," ")),null!=l&&null!=l.parentNode&&0<c.length&&(l.parentNode.removeChild(l),
+l=null);else{var y=!1,u=mxUtils.bind(this,function(f,d){if(null!=f&&"application/pdf"==d){var e=Editor.extractGraphModelFromPdf(f);null!=e&&0<e.length&&(f=e)}if(null!=f)if(e=mxUtils.parseXml(f),"mxlibrary"==e.documentElement.nodeName)try{var k=JSON.parse(mxUtils.getTextContent(e.documentElement));m(k,g);c=c.concat(k);D(b);this.spinner.stop();y=!0}catch(ka){}else if("mxfile"==e.documentElement.nodeName)try{for(var p=e.documentElement.getElementsByTagName("diagram"),k=0;k<p.length;k++){var n=this.stringToCells(Editor.getDiagramNodeXml(p[k])),
+t=this.editor.graph.getBoundingBoxFromGeometry(n);E(n,new mxRectangle(0,0,t.width,t.height),b)}y=!0}catch(ka){null!=window.console&&console.log("error in drop handler:",ka)}y||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));null!=l&&null!=l.parentNode&&0<c.length&&(l.parentNode.removeChild(l),l=null)});null!=v&&null!=t&&(/(\.v(dx|sdx?))($|\?)/i.test(t)||/(\.vs(x|sx?))($|\?)/i.test(t))?this.importVisio(v,function(b){u(b,"text/xml")},null,t):!this.isOffline()&&
+(new XMLHttpRequest).upload&&this.isRemoteFileFormat(f,t)&&null!=v?this.parseFile(v,mxUtils.bind(this,function(b){4==b.readyState&&(this.spinner.stop(),200<=b.status&&299>=b.status?u(b.responseText,"text/xml"):this.handleError({message:mxResources.get(413==b.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):u(f,d)}}));b.stopPropagation();b.preventDefault()})),mxEvent.addListener(g,"dragleave",function(b){g.style.cursor="";g.style.backgroundColor="";b.stopPropagation();
+b.preventDefault()}));n=n.cloneNode(!1);n.setAttribute("src",Editor.editImage);n.setAttribute("title",mxResources.get("edit"));p.insertBefore(n,p.firstChild);mxEvent.addListener(n,"click",G);mxEvent.addListener(g,"dblclick",function(b){mxEvent.getSource(b)==g&&G(b)});e=n.cloneNode(!1);e.setAttribute("src",Editor.plusImage);e.setAttribute("title",mxResources.get("add"));p.insertBefore(e,p.firstChild);mxEvent.addListener(e,"click",F);this.isOffline()||".scratchpad"!=b.title||null==EditorUi.scratchpadHelpLink||
(e=document.createElement("span"),e.setAttribute("title",mxResources.get("help")),e.style.cssText="color:#a3a3a3;text-decoration:none;margin-right:2px;cursor:pointer;",mxUtils.write(e,"?"),mxEvent.addGestureListeners(e,mxUtils.bind(this,function(b){this.openLink(EditorUi.scratchpadHelpLink);mxEvent.consume(b)})),p.insertBefore(e,p.firstChild))}k.appendChild(p);k.style.paddingRight=18*p.childNodes.length+"px"}};EditorUi.prototype.addLibraryEntries=function(b,c){for(var f=0;f<b.length;f++){var d=b[f],
e=d.data;if(null!=e){var e=this.convertDataUri(e),l="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==d.aspect&&(l+="aspect=fixed;");c.appendChild(this.sidebar.createVertexTemplate(l+"image="+e,d.w,d.h,"",d.title||"",!1,null,!0))}else null!=d.xml&&(e=this.stringToCells(Graph.decompress(d.xml)),0<e.length&&c.appendChild(this.sidebar.createVertexTemplateFromCells(e,d.w,d.h,d.title||"",!0,null,!0)))}};EditorUi.prototype.getResource=function(b){return null!=b?b[mxLanguage]||
b.main:null};EditorUi.prototype.footerHeight=0;"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64);EditorUi.initTheme=function(){"atlas"==uiTheme?(mxClient.link("stylesheet",STYLE_PATH+"/atlas.css"),"undefined"!==typeof Toolbar&&(Toolbar.prototype.unselectedBackground="linear-gradient(rgb(255, 255, 255) 0px, rgb(242, 242, 242) 100%)",Toolbar.prototype.selectedBackground="rgb(242, 242, 242)"),Editor.prototype.initialTopSpacing=3,EditorUi.prototype.menubarHeight=
@@ -10885,12 +10885,12 @@ new mxRectangle(60,30,30,30))};EditorUi.initTheme();EditorUi.prototype.showImage
c.refresh()}));return c};EditorUi.prototype.createSidebarFooterContainer=function(){var b=this.createDiv("geSidebarContainer geSidebarFooter");b.style.position="absolute";b.style.overflow="hidden";var c=document.createElement("a");c.className="geTitle";c.style.color="#DF6C0C";c.style.fontWeight="bold";c.style.height="100%";c.style.paddingTop="9px";c.innerHTML="<span>+</span>";var d=c.getElementsByTagName("span")[0];d.style.fontSize="18px";d.style.marginRight="5px";mxUtils.write(c,mxResources.get("moreShapes")+
"...");mxEvent.addListener(c,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(b){b.preventDefault()}));mxEvent.addListener(c,"click",mxUtils.bind(this,function(b){this.actions.get("shapes").funct();mxEvent.consume(b)}));b.appendChild(c);return b};EditorUi.prototype.handleError=function(b,c,d,e,g,k,n){var f=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},l=null!=b&&null!=b.error?b.error:b;if(null!=b&&null!=b.stack&&null!=b.message)try{n?null!=
window.console&&console.error("EditorUi.handleError:",b):EditorUi.logError("Caught: "+(""==b.message&&null!=b.name)?b.name:b.message,b.filename,b.lineNumber,b.columnNumber,b,"INFO")}catch(C){}if(null!=l||null!=c){n=mxUtils.htmlEntities(mxResources.get("unknownError"));var m=mxResources.get("ok"),p=null;c=null!=c?c:mxResources.get("error");if(null!=l){null!=l.retry&&(m=mxResources.get("cancel"),p=function(){f();l.retry()});if(404==l.code||404==l.status||403==l.code){n=403==l.code?null!=l.message?mxUtils.htmlEntities(l.message):
-mxUtils.htmlEntities(mxResources.get("accessDenied")):null!=g?g:mxUtils.htmlEntities(mxResources.get("fileNotFoundOrDenied")+(null!=this.drive&&null!=this.drive.user?" ("+this.drive.user.displayName+", "+this.drive.user.email+")":""));var q=null!=g?null:null!=k?k:window.location.hash;if(null!=q&&("#G"==q.substring(0,2)||"#Uhttps%3A%2F%2Fdrive.google.com%2Fuc%3Fid%3D"==q.substring(0,45))&&(null!=b&&null!=b.error&&(null!=b.error.errors&&0<b.error.errors.length&&"fileAccess"==b.error.errors[0].reason||
-null!=b.error.data&&0<b.error.data.length&&"fileAccess"==b.error.data[0].reason)||404==l.code||404==l.status)){q="#U"==q.substring(0,2)?q.substring(45,q.lastIndexOf("%26ex")):q.substring(2);this.showError(c,n,mxResources.get("openInNewWindow"),mxUtils.bind(this,function(){this.editor.graph.openLink("https://drive.google.com/open?id="+q);this.handleError(b,c,d,e,g)}),p,mxResources.get("changeUser"),mxUtils.bind(this,function(){function b(){e.innerHTML="";for(var b=0;b<c.length;b++){var f=document.createElement("option");
+mxUtils.htmlEntities(mxResources.get("accessDenied")):null!=g?g:mxUtils.htmlEntities(mxResources.get("fileNotFoundOrDenied")+(null!=this.drive&&null!=this.drive.user?" ("+this.drive.user.displayName+", "+this.drive.user.email+")":""));var t=null!=g?null:null!=k?k:window.location.hash;if(null!=t&&("#G"==t.substring(0,2)||"#Uhttps%3A%2F%2Fdrive.google.com%2Fuc%3Fid%3D"==t.substring(0,45))&&(null!=b&&null!=b.error&&(null!=b.error.errors&&0<b.error.errors.length&&"fileAccess"==b.error.errors[0].reason||
+null!=b.error.data&&0<b.error.data.length&&"fileAccess"==b.error.data[0].reason)||404==l.code||404==l.status)){t="#U"==t.substring(0,2)?t.substring(45,t.lastIndexOf("%26ex")):t.substring(2);this.showError(c,n,mxResources.get("openInNewWindow"),mxUtils.bind(this,function(){this.editor.graph.openLink("https://drive.google.com/open?id="+t);this.handleError(b,c,d,e,g)}),p,mxResources.get("changeUser"),mxUtils.bind(this,function(){function b(){e.innerHTML="";for(var b=0;b<c.length;b++){var f=document.createElement("option");
mxUtils.write(f,c[b].displayName);f.value=b;e.appendChild(f);f=document.createElement("option");f.innerHTML="&nbsp;&nbsp;&nbsp;";mxUtils.write(f,"<"+c[b].email+">");f.setAttribute("disabled","disabled");e.appendChild(f)}f=document.createElement("option");mxUtils.write(f,mxResources.get("addAccount"));f.value=c.length;e.appendChild(f)}var c=this.drive.getUsersList(),f=document.createElement("div"),d=document.createElement("span");d.style.marginTop="6px";mxUtils.write(d,mxResources.get("changeUser")+
": ");f.appendChild(d);var e=document.createElement("select");e.style.width="200px";b();mxEvent.addListener(e,"change",mxUtils.bind(this,function(){var f=e.value,d=c.length!=f;d&&this.drive.setUser(c[f]);this.drive.authorize(d,mxUtils.bind(this,function(){d||(c=this.drive.getUsersList(),b())}),mxUtils.bind(this,function(b){this.handleError(b)}),!0)}));f.appendChild(e);f=new CustomDialog(this,f,mxUtils.bind(this,function(){this.loadFile(window.location.hash.substr(1),!0)}));this.showDialog(f.container,
300,100,!0,!0)}),mxResources.get("cancel"),mxUtils.bind(this,function(){this.hideDialog();null!=d&&d()}),480,150);return}}null!=l.message?n=""==l.message&&null!=l.name?mxUtils.htmlEntities(l.name):mxUtils.htmlEntities(l.message):null!=l.response&&null!=l.response.error?n=mxUtils.htmlEntities(l.response.error):"undefined"!==typeof window.App&&(l.code==App.ERROR_TIMEOUT?n=mxUtils.htmlEntities(mxResources.get("timeout")):l.code==App.ERROR_BUSY?n=mxUtils.htmlEntities(mxResources.get("busy")):"string"===
-typeof l&&0<l.length&&(n=mxUtils.htmlEntities(l)))}var t=k=null;null!=l&&null!=l.helpLink?(k=mxResources.get("help"),t=mxUtils.bind(this,function(){return this.editor.graph.openLink(l.helpLink)})):null!=l&&null!=l.ownerEmail&&(k=mxResources.get("contactOwner"),n+=mxUtils.htmlEntities(" ("+k+": "+l.ownerEmail+")"),t=mxUtils.bind(this,function(){return this.openLink("mailto:"+mxUtils.htmlEntities(l.ownerEmail))}));this.showError(c,n,m,d,p,null,null,k,t,null,null,null,e?d:null)}else null!=d&&d()};EditorUi.prototype.alert=
+typeof l&&0<l.length&&(n=mxUtils.htmlEntities(l)))}var q=k=null;null!=l&&null!=l.helpLink?(k=mxResources.get("help"),q=mxUtils.bind(this,function(){return this.editor.graph.openLink(l.helpLink)})):null!=l&&null!=l.ownerEmail&&(k=mxResources.get("contactOwner"),n+=mxUtils.htmlEntities(" ("+k+": "+l.ownerEmail+")"),q=mxUtils.bind(this,function(){return this.openLink("mailto:"+mxUtils.htmlEntities(l.ownerEmail))}));this.showError(c,n,m,d,p,null,null,k,q,null,null,null,e?d:null)}else null!=d&&d()};EditorUi.prototype.alert=
function(b,c,d){b=new ErrorDialog(this,null,b,mxResources.get("ok"),c);this.showDialog(b.container,d||340,100,!0,!1);b.init()};EditorUi.prototype.confirm=function(b,c,d,e,g,k){var f=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},l=Math.min(200,28*Math.ceil(b.length/50));b=new ConfirmDialog(this,b,function(){f();null!=c&&c()},function(){f();null!=d&&d()},e,g,null,null,null,null,l);this.showDialog(b.container,340,46+l,!0,k);b.init()};EditorUi.prototype.showBanner=function(b,
c,d,e){var f=!1;if(!(this.bannerShowing||this["hideBanner"+b]||isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings["close"+b])){var l=document.createElement("div");l.style.cssText="position:absolute;bottom:10px;left:50%;max-width:90%;padding:18px 34px 12px 20px;font-size:16px;font-weight:bold;white-space:nowrap;cursor:pointer;z-index:"+mxPopupMenu.prototype.zIndex+";";mxUtils.setPrefixedStyle(l.style,"box-shadow","1px 1px 2px 0px #ddd");mxUtils.setPrefixedStyle(l.style,"transform",
"translate(-50%,120%)");mxUtils.setPrefixedStyle(l.style,"transition","all 1s ease");l.className="geBtn gePrimaryBtn";f=document.createElement("img");f.setAttribute("src",IMAGE_PATH+"/logo.png");f.setAttribute("border","0");f.setAttribute("align","absmiddle");f.style.cssText="margin-top:-4px;margin-left:8px;margin-right:12px;width:26px;height:26px;";l.appendChild(f);f=document.createElement("img");f.setAttribute("src",Dialog.prototype.closeImage);f.setAttribute("title",mxResources.get(e?"doNotShowAgain":
@@ -10904,7 +10904,7 @@ d):new Blob([b],{type:d}),navigator.msSaveOrOpenBlob(b,c);else if(mxClient.IS_IE
"undefined"!==typeof f.download;if(mxClient.IS_GC&&null!=navigator.userAgent){var l=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);k=65==(l?parseInt(l[2],10):!1)?!1:k}if(k||this.isOffline()){f.href=URL.createObjectURL(e?this.base64ToBlob(b,d):new Blob([b],{type:d}));k?f.download=c:f.setAttribute("target","_blank");document.body.appendChild(f);try{window.setTimeout(function(){URL.revokeObjectURL(f.href)},2E4),f.click(),f.parentNode.removeChild(f)}catch(x){}}else this.createEchoRequest(b,c,d,
e,g).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(b,c,d,e,g,k){b="xml="+encodeURIComponent(b);return new mxXmlRequest(SAVE_URL,b+(null!=d?"&mime="+d:"")+(null!=g?"&format="+g:"")+(null!=k?"&base64="+k:"")+(null!=c?"&filename="+encodeURIComponent(c):"")+(e?"&binary=1":""))};EditorUi.prototype.base64ToBlob=function(b,c){c=c||"";for(var f=atob(b),d=f.length,e=Math.ceil(d/1024),l=Array(e),g=0;g<e;++g){for(var k=1024*g,n=Math.min(k+1024,d),A=Array(n-k),z=0;k<n;++z,++k)A[z]=
f[k].charCodeAt(0);l[g]=new Uint8Array(A)}return new Blob(l,{type:c})};EditorUi.prototype.saveLocalFile=function(b,c,d,e,g,k,n,u){k=null!=k?k:!1;n=null!=n?n:"vsdx"!=g&&(!mxClient.IS_IOS||!navigator.standalone);g=this.getServiceCount(k);isLocalStorage&&g++;var f=4>=g?2:6<g?4:3;c=new CreateDialog(this,c,mxUtils.bind(this,function(c,f){try{if("_blank"==f)if(null!=d&&"image/"==d.substring(0,6))this.openInNewWindow(b,d,e);else if(null!=d&&"text/html"==d.substring(0,9)){var l=new EmbedDialog(this,b);this.showDialog(l.container,
-450,240,!0,!0);l.init()}else{var m=window.open("about:blank");null==m?mxUtils.popup(b,!0):(m.document.write("<pre>"+mxUtils.htmlEntities(b,!1)+"</pre>"),m.document.close())}else f==App.MODE_DEVICE||"download"==f?this.doSaveLocalFile(b,c,d,e,null,u):null!=c&&0<c.length&&this.pickFolder(f,mxUtils.bind(this,function(l){try{this.exportFile(b,c,d,e,f,l)}catch(E){this.handleError(E)}}))}catch(C){this.handleError(C)}}),mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),
+450,240,!0,!0);l.init()}else{var m=window.open("about:blank");null==m?mxUtils.popup(b,!0):(m.document.write("<pre>"+mxUtils.htmlEntities(b,!1)+"</pre>"),m.document.close())}else f==App.MODE_DEVICE||"download"==f?this.doSaveLocalFile(b,c,d,e,null,u):null!=c&&0<c.length&&this.pickFolder(f,mxUtils.bind(this,function(l){try{this.exportFile(b,c,d,e,f,l)}catch(G){this.handleError(G)}}))}catch(C){this.handleError(C)}}),mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),
!1,k,n,null,1<g,f,b,d,e);k=this.isServices(g)?g>f?390:280:160;this.showDialog(c.container,420,k,!0,!0);c.init()};EditorUi.prototype.openInNewWindow=function(b,c,d){var f=window.open("about:blank");null==f||null==f.document?mxUtils.popup(b,!0):("image/svg+xml"!=c||mxClient.IS_SVG?"image/svg+xml"==c?f.document.write("<html>"+b+"</html>"):(b=d?b:btoa(unescape(encodeURIComponent(b))),f.document.write('<html><img style="max-width:100%;" src="data:'+c+";base64,"+b+'"/></html>')):f.document.write("<html><pre>"+
mxUtils.htmlEntities(b,!1)+"</pre></html>"),f.document.close())};var c=EditorUi.prototype.addChromelessToolbarItems;EditorUi.prototype.isChromelessImageExportEnabled=function(){return"draw.io"!=this.getServiceName()||/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)};EditorUi.prototype.addChromelessToolbarItems=function(b){if(null!=urlParams.tags){this.tagsDialog=this.tagsComponent=null;var f=b(mxUtils.bind(this,function(b){null==this.tagsComponent&&
(this.tagsComponent=this.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return null!=this.tagsDialog}),!0),this.tagsComponent.div.getElementsByTagName("div")[0].style.position="",mxUtils.setPrefixedStyle(this.tagsComponent.div.style,"borderRadius","5px"),this.tagsComponent.div.className="geScrollable",this.tagsComponent.div.style.maxHeight="160px",this.tagsComponent.div.style.maxWidth="120px",this.tagsComponent.div.style.padding="4px",this.tagsComponent.div.style.overflow="auto",this.tagsComponent.div.style.height=
@@ -10921,8 +10921,8 @@ Editor.cameraImage,mxResources.get("export"))}};EditorUi.prototype.saveData=func
f||null!=b&&0<b.length){var l=d("_blank"==f?null:b,f==App.MODE_DEVICE||"download"==f||null==f||"_blank"==f?"0":"1");null!=l&&(f==App.MODE_DEVICE||"download"==f||"_blank"==f?l.simulate(document,"_blank"):this.pickFolder(f,mxUtils.bind(this,function(d){k=null!=k?k:"pdf"==c?"application/pdf":"image/"+c;if(null!=e)try{this.exportFile(e,b,k,!0,f,d)}catch(C){this.handleError(C)}else this.spinner.spin(document.body,mxResources.get("saving"))&&l.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=
l.getStatus()&&299>=l.getStatus())try{this.exportFile(l.getText(),b,k,!0,f,d)}catch(C){this.handleError(C)}else this.handleError({message:mxResources.get("errorSavingFile")})}),function(b){this.spinner.stop();this.handleError(b)})})))}}),mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,n,null,1<f,l,e,k,g);f=this.isServices(f)?4<f?390:280:160;this.showDialog(b.container,420,f,!0,!0);b.init()};EditorUi.prototype.isServices=function(b){return 1!=
b};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(b,c,d,e,g,k){};EditorUi.prototype.pickFolder=function(b,c,d){c(null)};EditorUi.prototype.exportSvg=function(b,c,d,e,g,k,n,u,x,A,z,B,y,C){if(this.spinner.spin(document.body,mxResources.get("export")))try{var f=this.editor.graph.isSelectionEmpty();d=null!=d?d:f;var l=c?null:this.editor.graph.background;l==mxConstants.NONE&&(l=null);null==l&&0==c&&(l=z?this.editor.graph.defaultPageBackgroundColor:
-"#ffffff");var m=this.editor.graph.getSvg(l,b,n,u,null,d,null,null,"blank"==A?"_blank":"self"==A?"_top":null,null,!0,z,B);e&&this.editor.graph.addSvgShadow(m);var p=this.getBaseFilename()+(g?".drawio":"")+".svg";C=null!=C?C:mxUtils.bind(this,function(b){this.isLocalFileSave()||b.length<=MAX_REQUEST_SIZE?this.saveData(p,"svg",b,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(b)}))});var q=mxUtils.bind(this,
-function(b){this.spinner.stop();g&&b.setAttribute("content",this.getFileData(!0,null,null,null,d,x,null,null,null,!1));C(Graph.xmlDeclaration+"\n"+(g?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(b))});this.editor.graph.mathEnabled&&this.editor.addMathCss(m);var t=mxUtils.bind(this,function(b){k?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(b,q,this.thumbImageCache)):q(b)});y?this.embedFonts(m,t):(this.editor.addFontCss(m),t(m))}catch(H){this.handleError(H)}};
+"#ffffff");var m=this.editor.graph.getSvg(l,b,n,u,null,d,null,null,"blank"==A?"_blank":"self"==A?"_top":null,null,!0,z,B);e&&this.editor.graph.addSvgShadow(m);var p=this.getBaseFilename()+(g?".drawio":"")+".svg";C=null!=C?C:mxUtils.bind(this,function(b){this.isLocalFileSave()||b.length<=MAX_REQUEST_SIZE?this.saveData(p,"svg",b,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(b)}))});var t=mxUtils.bind(this,
+function(b){this.spinner.stop();g&&b.setAttribute("content",this.getFileData(!0,null,null,null,d,x,null,null,null,!1));C(Graph.xmlDeclaration+"\n"+(g?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(b))});this.editor.graph.mathEnabled&&this.editor.addMathCss(m);var q=mxUtils.bind(this,function(b){k?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(b,t,this.thumbImageCache)):t(b)});y?this.embedFonts(m,q):(this.editor.addFontCss(m),q(m))}catch(H){this.handleError(H)}};
EditorUi.prototype.addRadiobox=function(b,c,d,e,g,k,n){return this.addCheckbox(b,d,e,g,k,n,!0,c)};EditorUi.prototype.addCheckbox=function(b,c,d,e,g,k,n,u){k=null!=k?k:!0;var f=document.createElement("input");f.style.marginRight="8px";f.style.marginTop="16px";f.setAttribute("type",n?"radio":"checkbox");n="geCheckbox-"+Editor.guid();f.id=n;null!=u&&f.setAttribute("name",u);d&&(f.setAttribute("checked","checked"),f.defaultChecked=!0);e&&f.setAttribute("disabled","disabled");k&&(b.appendChild(f),d=document.createElement("label"),
mxUtils.write(d,c),d.setAttribute("for",n),b.appendChild(d),g||mxUtils.br(b));return f};EditorUi.prototype.addEditButton=function(b,c){var f=this.addCheckbox(b,mxResources.get("edit")+":",!0,null,!0);f.style.marginLeft="24px";var d=this.getCurrentFile(),e="";null!=d&&d.getMode()!=App.MODE_DEVICE&&d.getMode()!=App.MODE_BROWSER&&(e=window.location.href);var l=document.createElement("select");l.style.maxWidth="200px";l.style.width="auto";l.style.marginLeft="8px";l.style.marginRight="10px";l.className=
"geBtn";d=document.createElement("option");d.setAttribute("value","blank");mxUtils.write(d,mxResources.get("makeCopy"));l.appendChild(d);d=document.createElement("option");d.setAttribute("value","custom");mxUtils.write(d,mxResources.get("custom")+"...");l.appendChild(d);b.appendChild(l);mxEvent.addListener(l,"change",mxUtils.bind(this,function(){if("custom"==l.value){var b=new FilenameDialog(this,e,mxResources.get("ok"),function(b){null!=b?e=b:l.value="blank"},mxResources.get("url"),null,null,null,
@@ -10938,31 +10938,31 @@ this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxU
"/embed2.js?")+b:"1"==urlParams.dev?"https://test.draw.io/js/viewer-static.min.js":window.DRAWIO_VIEWER_URL?window.DRAWIO_VIEWER_URL:EditorUi.lightboxHost+"/js/viewer-static.min.js")+'">\x3c/script>')};EditorUi.prototype.showHtmlDialog=function(b,c,d,e){var f=document.createElement("div");f.style.whiteSpace="nowrap";var l=document.createElement("h3");mxUtils.write(l,mxResources.get("html"));l.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";f.appendChild(l);var g=document.createElement("div");
g.style.cssText="border-bottom:1px solid lightGray;padding-bottom:8px;margin-bottom:12px;";var m=document.createElement("input");m.style.cssText="margin-right:8px;margin-top:8px;margin-bottom:8px;";m.setAttribute("value","url");m.setAttribute("type","radio");m.setAttribute("name","type-embedhtmldialog");l=m.cloneNode(!0);l.setAttribute("value","copy");g.appendChild(l);var k=document.createElement("span");mxUtils.write(k,mxResources.get("includeCopyOfMyDiagram"));g.appendChild(k);mxUtils.br(g);g.appendChild(m);
k=document.createElement("span");mxUtils.write(k,mxResources.get("publicDiagramUrl"));g.appendChild(k);var p=this.getCurrentFile();null==d&&null!=p&&p.constructor==window.DriveFile&&(k=document.createElement("a"),k.style.paddingLeft="12px",k.style.color="gray",k.style.cursor="pointer",mxUtils.write(k,mxResources.get("share")),g.appendChild(k),mxEvent.addListener(k,"click",mxUtils.bind(this,function(){this.hideDialog();this.drive.showPermissions(p.getId())})));l.setAttribute("checked","checked");null==
-d&&m.setAttribute("disabled","disabled");f.appendChild(g);var n=this.addLinkSection(f),B=this.addCheckbox(f,mxResources.get("zoom"),!0,null,!0);mxUtils.write(f,":");var y=document.createElement("input");y.setAttribute("type","text");y.style.marginRight="16px";y.style.width="60px";y.style.marginLeft="4px";y.style.marginRight="12px";y.value="100%";f.appendChild(y);var C=this.addCheckbox(f,mxResources.get("fit"),!0),g=null!=this.pages&&1<this.pages.length,E=E=this.addCheckbox(f,mxResources.get("allPages"),
-g,!g),D=this.addCheckbox(f,mxResources.get("layers"),!0),F=this.addCheckbox(f,mxResources.get("tags"),!0),G=this.addCheckbox(f,mxResources.get("lightbox"),!0),I=this.addEditButton(f,G),J=I.getEditInput();J.style.marginBottom="16px";mxEvent.addListener(G,"change",function(){G.checked?J.removeAttribute("disabled"):J.setAttribute("disabled","disabled");J.checked&&G.checked?I.getEditSelect().removeAttribute("disabled"):I.getEditSelect().setAttribute("disabled","disabled")});b=new CustomDialog(this,f,
-mxUtils.bind(this,function(){e(m.checked?d:null,B.checked,y.value,n.getTarget(),n.getColor(),C.checked,E.checked,D.checked,F.checked,G.checked,I.getLink())}),null,b,c);this.showDialog(b.container,340,430,!0,!0);l.focus()};EditorUi.prototype.showPublishLinkDialog=function(b,c,d,e,g,k,n,u){var f=document.createElement("div");f.style.whiteSpace="nowrap";var l=document.createElement("h3");mxUtils.write(l,b||mxResources.get("link"));l.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";
+d&&m.setAttribute("disabled","disabled");f.appendChild(g);var n=this.addLinkSection(f),B=this.addCheckbox(f,mxResources.get("zoom"),!0,null,!0);mxUtils.write(f,":");var y=document.createElement("input");y.setAttribute("type","text");y.style.marginRight="16px";y.style.width="60px";y.style.marginLeft="4px";y.style.marginRight="12px";y.value="100%";f.appendChild(y);var C=this.addCheckbox(f,mxResources.get("fit"),!0),g=null!=this.pages&&1<this.pages.length,G=G=this.addCheckbox(f,mxResources.get("allPages"),
+g,!g),D=this.addCheckbox(f,mxResources.get("layers"),!0),E=this.addCheckbox(f,mxResources.get("tags"),!0),F=this.addCheckbox(f,mxResources.get("lightbox"),!0),J=this.addEditButton(f,F),K=J.getEditInput();K.style.marginBottom="16px";mxEvent.addListener(F,"change",function(){F.checked?K.removeAttribute("disabled"):K.setAttribute("disabled","disabled");K.checked&&F.checked?J.getEditSelect().removeAttribute("disabled"):J.getEditSelect().setAttribute("disabled","disabled")});b=new CustomDialog(this,f,
+mxUtils.bind(this,function(){e(m.checked?d:null,B.checked,y.value,n.getTarget(),n.getColor(),C.checked,G.checked,D.checked,E.checked,F.checked,J.getLink())}),null,b,c);this.showDialog(b.container,340,430,!0,!0);l.focus()};EditorUi.prototype.showPublishLinkDialog=function(b,c,d,e,g,k,n,u){var f=document.createElement("div");f.style.whiteSpace="nowrap";var l=document.createElement("h3");mxUtils.write(l,b||mxResources.get("link"));l.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";
f.appendChild(l);var m=this.getCurrentFile();b=0;if(null==m||m.constructor!=window.DriveFile||c)n=null!=n?n:"https://www.diagrams.net/doc/faq/publish-diagram-as-link";else{b=80;n=null!=n?n:"https://www.diagrams.net/doc/faq/google-drive-publicly-publish-diagram";l=document.createElement("div");l.style.cssText="border-bottom:1px solid lightGray;padding-bottom:14px;padding-top:6px;margin-bottom:14px;text-align:center;";var p=document.createElement("div");p.style.whiteSpace="normal";mxUtils.write(p,mxResources.get("linkAccountRequired"));
l.appendChild(p);p=mxUtils.button(mxResources.get("share"),mxUtils.bind(this,function(){this.drive.showPermissions(m.getId())}));p.style.marginTop="12px";p.className="geBtn";l.appendChild(p);f.appendChild(l);p=document.createElement("a");p.style.paddingLeft="12px";p.style.color="gray";p.style.fontSize="11px";p.style.cursor="pointer";mxUtils.write(p,mxResources.get("check"));l.appendChild(p);mxEvent.addListener(p,"click",mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"))&&
-this.getPublicUrl(this.getCurrentFile(),mxUtils.bind(this,function(b){this.spinner.stop();b=new ErrorDialog(this,null,mxResources.get(null!=b?"diagramIsPublic":"diagramIsNotPublic"),mxResources.get("ok"));this.showDialog(b.container,300,80,!0,!1);b.init()}))}))}var q=null,t=null;if(null!=d||null!=e)b+=30,mxUtils.write(f,mxResources.get("width")+":"),q=document.createElement("input"),q.setAttribute("type","text"),q.style.marginRight="16px",q.style.width="50px",q.style.marginLeft="6px",q.style.marginRight=
-"16px",q.style.marginBottom="10px",q.value="100%",f.appendChild(q),mxUtils.write(f,mxResources.get("height")+":"),t=document.createElement("input"),t.setAttribute("type","text"),t.style.width="50px",t.style.marginLeft="6px",t.style.marginBottom="10px",t.value=e+"px",f.appendChild(t),mxUtils.br(f);var v=this.addLinkSection(f,k);d=null!=this.pages&&1<this.pages.length;var D=null;if(null==m||m.constructor!=window.DriveFile||c)D=this.addCheckbox(f,mxResources.get("allPages"),d,!d);var F=this.addCheckbox(f,
-mxResources.get("lightbox"),!0,null,null,!k),G=this.addEditButton(f,F),I=G.getEditInput();k&&(I.style.marginLeft=F.style.marginLeft,F.style.display="none",b-=20);var J=this.addCheckbox(f,mxResources.get("layers"),!0);J.style.marginLeft=I.style.marginLeft;J.style.marginTop="8px";var H=this.addCheckbox(f,mxResources.get("tags"),!0);H.style.marginLeft=I.style.marginLeft;H.style.marginBottom="16px";H.style.marginTop="16px";mxEvent.addListener(F,"change",function(){F.checked?(J.removeAttribute("disabled"),
-I.removeAttribute("disabled")):(J.setAttribute("disabled","disabled"),I.setAttribute("disabled","disabled"));I.checked&&F.checked?G.getEditSelect().removeAttribute("disabled"):G.getEditSelect().setAttribute("disabled","disabled")});c=new CustomDialog(this,f,mxUtils.bind(this,function(){g(v.getTarget(),v.getColor(),null==D?!0:D.checked,F.checked,G.getLink(),J.checked,null!=q?q.value:null,null!=t?t.value:null,H.checked)}),null,mxResources.get("create"),n,u);this.showDialog(c.container,340,300+b,!0,
-!0);null!=q?(q.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?q.select():document.execCommand("selectAll",!1,null)):v.focus()};EditorUi.prototype.showRemoteExportDialog=function(b,c,d,e,g){var f=document.createElement("div");f.style.whiteSpace="nowrap";var l=document.createElement("h3");mxUtils.write(l,mxResources.get("image"));l.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:"+(g?"10":"4")+"px";f.appendChild(l);if(g){mxUtils.write(f,mxResources.get("zoom")+
+this.getPublicUrl(this.getCurrentFile(),mxUtils.bind(this,function(b){this.spinner.stop();b=new ErrorDialog(this,null,mxResources.get(null!=b?"diagramIsPublic":"diagramIsNotPublic"),mxResources.get("ok"));this.showDialog(b.container,300,80,!0,!1);b.init()}))}))}var t=null,q=null;if(null!=d||null!=e)b+=30,mxUtils.write(f,mxResources.get("width")+":"),t=document.createElement("input"),t.setAttribute("type","text"),t.style.marginRight="16px",t.style.width="50px",t.style.marginLeft="6px",t.style.marginRight=
+"16px",t.style.marginBottom="10px",t.value="100%",f.appendChild(t),mxUtils.write(f,mxResources.get("height")+":"),q=document.createElement("input"),q.setAttribute("type","text"),q.style.width="50px",q.style.marginLeft="6px",q.style.marginBottom="10px",q.value=e+"px",f.appendChild(q),mxUtils.br(f);var v=this.addLinkSection(f,k);d=null!=this.pages&&1<this.pages.length;var D=null;if(null==m||m.constructor!=window.DriveFile||c)D=this.addCheckbox(f,mxResources.get("allPages"),d,!d);var E=this.addCheckbox(f,
+mxResources.get("lightbox"),!0,null,null,!k),F=this.addEditButton(f,E),J=F.getEditInput();k&&(J.style.marginLeft=E.style.marginLeft,E.style.display="none",b-=20);var K=this.addCheckbox(f,mxResources.get("layers"),!0);K.style.marginLeft=J.style.marginLeft;K.style.marginTop="8px";var H=this.addCheckbox(f,mxResources.get("tags"),!0);H.style.marginLeft=J.style.marginLeft;H.style.marginBottom="16px";H.style.marginTop="16px";mxEvent.addListener(E,"change",function(){E.checked?(K.removeAttribute("disabled"),
+J.removeAttribute("disabled")):(K.setAttribute("disabled","disabled"),J.setAttribute("disabled","disabled"));J.checked&&E.checked?F.getEditSelect().removeAttribute("disabled"):F.getEditSelect().setAttribute("disabled","disabled")});c=new CustomDialog(this,f,mxUtils.bind(this,function(){g(v.getTarget(),v.getColor(),null==D?!0:D.checked,E.checked,F.getLink(),K.checked,null!=t?t.value:null,null!=q?q.value:null,H.checked)}),null,mxResources.get("create"),n,u);this.showDialog(c.container,340,300+b,!0,
+!0);null!=t?(t.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?t.select():document.execCommand("selectAll",!1,null)):v.focus()};EditorUi.prototype.showRemoteExportDialog=function(b,c,d,e,g){var f=document.createElement("div");f.style.whiteSpace="nowrap";var l=document.createElement("h3");mxUtils.write(l,mxResources.get("image"));l.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:"+(g?"10":"4")+"px";f.appendChild(l);if(g){mxUtils.write(f,mxResources.get("zoom")+
":");var m=document.createElement("input");m.setAttribute("type","text");m.style.marginRight="16px";m.style.width="60px";m.style.marginLeft="4px";m.style.marginRight="12px";m.value=this.lastExportZoom||"100%";f.appendChild(m);mxUtils.write(f,mxResources.get("borderWidth")+":");var k=document.createElement("input");k.setAttribute("type","text");k.style.marginRight="16px";k.style.width="60px";k.style.marginLeft="4px";k.value=this.lastExportBorder||"0";f.appendChild(k);mxUtils.br(f)}var p=this.addCheckbox(f,
mxResources.get("selectionOnly"),!1,this.editor.graph.isSelectionEmpty()),n=e?null:this.addCheckbox(f,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram),l=this.editor.graph,q=e?null:this.addCheckbox(f,mxResources.get("transparentBackground"),l.background==mxConstants.NONE||null==l.background);null!=q&&(q.style.marginBottom="16px");b=new CustomDialog(this,f,mxUtils.bind(this,function(){var b=parseInt(m.value)/100||1,c=parseInt(k.value)||0;d(!p.checked,null!=n?n.checked:!1,null!=
-q?q.checked:!1,b,c)}),null,b,c);this.showDialog(b.container,300,(g?25:0)+(e?125:210),!0,!0)};EditorUi.prototype.showExportDialog=function(b,c,d,e,g,k,n,u,x){n=null!=n?n:Editor.defaultIncludeDiagram;var f=document.createElement("div");f.style.whiteSpace="nowrap";var l=this.editor.graph,m="jpeg"==u?220:300,p=document.createElement("h3");mxUtils.write(p,b);p.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";f.appendChild(p);mxUtils.write(f,mxResources.get("zoom")+":");var q=
-document.createElement("input");q.setAttribute("type","text");q.style.marginRight="16px";q.style.width="60px";q.style.marginLeft="4px";q.style.marginRight="12px";q.value=this.lastExportZoom||"100%";f.appendChild(q);mxUtils.write(f,mxResources.get("borderWidth")+":");var t=document.createElement("input");t.setAttribute("type","text");t.style.marginRight="16px";t.style.width="60px";t.style.marginLeft="4px";t.value=this.lastExportBorder||"0";f.appendChild(t);mxUtils.br(f);var v=this.addCheckbox(f,mxResources.get("selectionOnly"),
-!1,l.isSelectionEmpty()),F=document.createElement("input");F.style.marginTop="16px";F.style.marginRight="8px";F.style.marginLeft="24px";F.setAttribute("disabled","disabled");F.setAttribute("type","checkbox");var G=document.createElement("select");G.style.marginTop="16px";G.style.marginLeft="8px";b=["selectionOnly","diagram","page"];for(var I={},p=0;p<b.length;p++)if(!l.isSelectionEmpty()||"selectionOnly"!=b[p]){var J=document.createElement("option");mxUtils.write(J,mxResources.get(b[p]));J.setAttribute("value",
-b[p]);G.appendChild(J);I[b[p]]=J}x?(mxUtils.write(f,mxResources.get("size")+":"),f.appendChild(G),mxUtils.br(f),m+=26,mxEvent.addListener(G,"change",function(){"selectionOnly"==G.value&&(v.checked=!0)})):k&&(f.appendChild(F),mxUtils.write(f,mxResources.get("crop")),mxUtils.br(f),m+=30,mxEvent.addListener(v,"change",function(){v.checked?F.removeAttribute("disabled"):F.setAttribute("disabled","disabled")}));l.isSelectionEmpty()?x&&(v.style.display="none",v.nextSibling.style.display="none",v.nextSibling.nextSibling.style.display=
-"none",m-=30):(G.value="diagram",F.setAttribute("checked","checked"),F.defaultChecked=!0,mxEvent.addListener(v,"change",function(){G.value=v.checked?"selectionOnly":"diagram"}));var H=this.addCheckbox(f,mxResources.get("transparentBackground"),!1,null,null,"jpeg"!=u),K=null;Editor.isDarkMode()&&(K=this.addCheckbox(f,mxResources.get("dark"),!0),m+=26);var P=this.addCheckbox(f,mxResources.get("shadow"),l.shadowVisible),N=null;if("png"==u||"jpeg"==u)N=this.addCheckbox(f,mxResources.get("grid"),!1,this.isOffline()||
-!this.canvasSupported,!1,!0),m+=30;var M=this.addCheckbox(f,mxResources.get("includeCopyOfMyDiagram"),n,null,null,"jpeg"!=u);M.style.marginBottom="16px";var Y=document.createElement("input");Y.style.marginBottom="16px";Y.style.marginRight="8px";Y.setAttribute("type","checkbox");!this.isOffline()&&this.canvasSupported||Y.setAttribute("disabled","disabled");var W=document.createElement("select");W.style.maxWidth="260px";W.style.marginLeft="8px";W.style.marginRight="10px";W.style.marginBottom="16px";
-W.className="geBtn";k=document.createElement("option");k.setAttribute("value","none");mxUtils.write(k,mxResources.get("noChange"));W.appendChild(k);k=document.createElement("option");k.setAttribute("value","embedFonts");mxUtils.write(k,mxResources.get("embedFonts"));W.appendChild(k);k=document.createElement("option");k.setAttribute("value","lblToSvg");mxUtils.write(k,mxResources.get("lblToSvg"));W.appendChild(k);this.isOffline()&&k.setAttribute("disabled","disabled");mxEvent.addListener(W,"change",
-mxUtils.bind(this,function(){"lblToSvg"==W.value?(Y.checked=!0,Y.setAttribute("disabled","disabled"),I.page.style.display="none","page"==G.value&&(G.value="diagram"),P.checked=!1,P.setAttribute("disabled","disabled"),O.style.display="inline-block",L.style.display="none"):"disabled"==Y.getAttribute("disabled")&&(Y.checked=!1,Y.removeAttribute("disabled"),P.removeAttribute("disabled"),I.page.style.display="",O.style.display="none",L.style.display="")}));c&&(f.appendChild(Y),mxUtils.write(f,mxResources.get("embedImages")),
-mxUtils.br(f),mxUtils.write(f,mxResources.get("txtSettings")+":"),f.appendChild(W),mxUtils.br(f),m+=60);var L=document.createElement("select");L.style.maxWidth="260px";L.style.marginLeft="8px";L.style.marginRight="10px";L.className="geBtn";c=document.createElement("option");c.setAttribute("value","auto");mxUtils.write(c,mxResources.get("automatic"));L.appendChild(c);c=document.createElement("option");c.setAttribute("value","blank");mxUtils.write(c,mxResources.get("openInNewWindow"));L.appendChild(c);
-c=document.createElement("option");c.setAttribute("value","self");mxUtils.write(c,mxResources.get("openInThisWindow"));L.appendChild(c);var O=document.createElement("div");mxUtils.write(O,mxResources.get("LinksLost"));O.style.margin="7px";O.style.display="none";"svg"==u&&(mxUtils.write(f,mxResources.get("links")+":"),f.appendChild(L),f.appendChild(O),mxUtils.br(f),mxUtils.br(f),m+=50);d=new CustomDialog(this,f,mxUtils.bind(this,function(){this.lastExportBorder=t.value;this.lastExportZoom=q.value;
-g(q.value,H.checked,!v.checked,P.checked,M.checked,Y.checked,t.value,F.checked,!1,L.value,null!=N?N.checked:null,null!=K?K.checked:null,G.value,"embedFonts"==W.value,"lblToSvg"==W.value)}),null,d,e);this.showDialog(d.container,340,m,!0,!0,null,null,null,null,!0);q.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?q.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(b,c,d,e,g){var f=document.createElement("div");f.style.whiteSpace="nowrap";
-var l=this.editor.graph;if(null!=c){var m=document.createElement("h3");mxUtils.write(m,c);m.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";f.appendChild(m)}var k=this.addCheckbox(f,mxResources.get("fit"),!0),p=this.addCheckbox(f,mxResources.get("shadow"),l.shadowVisible&&e,!e),n=this.addCheckbox(f,d),q=this.addCheckbox(f,mxResources.get("lightbox"),!0),y=this.addEditButton(f,q),C=y.getEditInput(),E=1<l.model.getChildCount(l.model.getRoot()),D=this.addCheckbox(f,mxResources.get("layers"),
-E,!E);D.style.marginLeft=C.style.marginLeft;D.style.marginBottom="12px";D.style.marginTop="8px";mxEvent.addListener(q,"change",function(){q.checked?(E&&D.removeAttribute("disabled"),C.removeAttribute("disabled")):(D.setAttribute("disabled","disabled"),C.setAttribute("disabled","disabled"));C.checked&&q.checked?y.getEditSelect().removeAttribute("disabled"):y.getEditSelect().setAttribute("disabled","disabled")});c=new CustomDialog(this,f,mxUtils.bind(this,function(){b(k.checked,p.checked,n.checked,
+q?q.checked:!1,b,c)}),null,b,c);this.showDialog(b.container,300,(g?25:0)+(e?125:210),!0,!0)};EditorUi.prototype.showExportDialog=function(b,c,d,e,g,k,n,u,x){n=null!=n?n:Editor.defaultIncludeDiagram;var f=document.createElement("div");f.style.whiteSpace="nowrap";var l=this.editor.graph,m="jpeg"==u?220:300,p=document.createElement("h3");mxUtils.write(p,b);p.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";f.appendChild(p);mxUtils.write(f,mxResources.get("zoom")+":");var t=
+document.createElement("input");t.setAttribute("type","text");t.style.marginRight="16px";t.style.width="60px";t.style.marginLeft="4px";t.style.marginRight="12px";t.value=this.lastExportZoom||"100%";f.appendChild(t);mxUtils.write(f,mxResources.get("borderWidth")+":");var q=document.createElement("input");q.setAttribute("type","text");q.style.marginRight="16px";q.style.width="60px";q.style.marginLeft="4px";q.value=this.lastExportBorder||"0";f.appendChild(q);mxUtils.br(f);var v=this.addCheckbox(f,mxResources.get("selectionOnly"),
+!1,l.isSelectionEmpty()),E=document.createElement("input");E.style.marginTop="16px";E.style.marginRight="8px";E.style.marginLeft="24px";E.setAttribute("disabled","disabled");E.setAttribute("type","checkbox");var F=document.createElement("select");F.style.marginTop="16px";F.style.marginLeft="8px";b=["selectionOnly","diagram","page"];for(var J={},p=0;p<b.length;p++)if(!l.isSelectionEmpty()||"selectionOnly"!=b[p]){var K=document.createElement("option");mxUtils.write(K,mxResources.get(b[p]));K.setAttribute("value",
+b[p]);F.appendChild(K);J[b[p]]=K}x?(mxUtils.write(f,mxResources.get("size")+":"),f.appendChild(F),mxUtils.br(f),m+=26,mxEvent.addListener(F,"change",function(){"selectionOnly"==F.value&&(v.checked=!0)})):k&&(f.appendChild(E),mxUtils.write(f,mxResources.get("crop")),mxUtils.br(f),m+=30,mxEvent.addListener(v,"change",function(){v.checked?E.removeAttribute("disabled"):E.setAttribute("disabled","disabled")}));l.isSelectionEmpty()?x&&(v.style.display="none",v.nextSibling.style.display="none",v.nextSibling.nextSibling.style.display=
+"none",m-=30):(F.value="diagram",E.setAttribute("checked","checked"),E.defaultChecked=!0,mxEvent.addListener(v,"change",function(){F.value=v.checked?"selectionOnly":"diagram"}));var H=this.addCheckbox(f,mxResources.get("transparentBackground"),!1,null,null,"jpeg"!=u),I=null;Editor.isDarkMode()&&(I=this.addCheckbox(f,mxResources.get("dark"),!0),m+=26);var S=this.addCheckbox(f,mxResources.get("shadow"),l.shadowVisible),P=null;if("png"==u||"jpeg"==u)P=this.addCheckbox(f,mxResources.get("grid"),!1,this.isOffline()||
+!this.canvasSupported,!1,!0),m+=30;var M=this.addCheckbox(f,mxResources.get("includeCopyOfMyDiagram"),n,null,null,"jpeg"!=u);M.style.marginBottom="16px";var W=document.createElement("input");W.style.marginBottom="16px";W.style.marginRight="8px";W.setAttribute("type","checkbox");!this.isOffline()&&this.canvasSupported||W.setAttribute("disabled","disabled");var X=document.createElement("select");X.style.maxWidth="260px";X.style.marginLeft="8px";X.style.marginRight="10px";X.style.marginBottom="16px";
+X.className="geBtn";k=document.createElement("option");k.setAttribute("value","none");mxUtils.write(k,mxResources.get("noChange"));X.appendChild(k);k=document.createElement("option");k.setAttribute("value","embedFonts");mxUtils.write(k,mxResources.get("embedFonts"));X.appendChild(k);k=document.createElement("option");k.setAttribute("value","lblToSvg");mxUtils.write(k,mxResources.get("lblToSvg"));X.appendChild(k);this.isOffline()&&k.setAttribute("disabled","disabled");mxEvent.addListener(X,"change",
+mxUtils.bind(this,function(){"lblToSvg"==X.value?(W.checked=!0,W.setAttribute("disabled","disabled"),J.page.style.display="none","page"==F.value&&(F.value="diagram"),S.checked=!1,S.setAttribute("disabled","disabled"),Q.style.display="inline-block",L.style.display="none"):"disabled"==W.getAttribute("disabled")&&(W.checked=!1,W.removeAttribute("disabled"),S.removeAttribute("disabled"),J.page.style.display="",Q.style.display="none",L.style.display="")}));c&&(f.appendChild(W),mxUtils.write(f,mxResources.get("embedImages")),
+mxUtils.br(f),mxUtils.write(f,mxResources.get("txtSettings")+":"),f.appendChild(X),mxUtils.br(f),m+=60);var L=document.createElement("select");L.style.maxWidth="260px";L.style.marginLeft="8px";L.style.marginRight="10px";L.className="geBtn";c=document.createElement("option");c.setAttribute("value","auto");mxUtils.write(c,mxResources.get("automatic"));L.appendChild(c);c=document.createElement("option");c.setAttribute("value","blank");mxUtils.write(c,mxResources.get("openInNewWindow"));L.appendChild(c);
+c=document.createElement("option");c.setAttribute("value","self");mxUtils.write(c,mxResources.get("openInThisWindow"));L.appendChild(c);var Q=document.createElement("div");mxUtils.write(Q,mxResources.get("LinksLost"));Q.style.margin="7px";Q.style.display="none";"svg"==u&&(mxUtils.write(f,mxResources.get("links")+":"),f.appendChild(L),f.appendChild(Q),mxUtils.br(f),mxUtils.br(f),m+=50);d=new CustomDialog(this,f,mxUtils.bind(this,function(){this.lastExportBorder=q.value;this.lastExportZoom=t.value;
+g(t.value,H.checked,!v.checked,S.checked,M.checked,W.checked,q.value,E.checked,!1,L.value,null!=P?P.checked:null,null!=I?I.checked:null,F.value,"embedFonts"==X.value,"lblToSvg"==X.value)}),null,d,e);this.showDialog(d.container,340,m,!0,!0,null,null,null,null,!0);t.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?t.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(b,c,d,e,g){var f=document.createElement("div");f.style.whiteSpace="nowrap";
+var l=this.editor.graph;if(null!=c){var m=document.createElement("h3");mxUtils.write(m,c);m.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";f.appendChild(m)}var k=this.addCheckbox(f,mxResources.get("fit"),!0),p=this.addCheckbox(f,mxResources.get("shadow"),l.shadowVisible&&e,!e),n=this.addCheckbox(f,d),q=this.addCheckbox(f,mxResources.get("lightbox"),!0),y=this.addEditButton(f,q),C=y.getEditInput(),G=1<l.model.getChildCount(l.model.getRoot()),D=this.addCheckbox(f,mxResources.get("layers"),
+G,!G);D.style.marginLeft=C.style.marginLeft;D.style.marginBottom="12px";D.style.marginTop="8px";mxEvent.addListener(q,"change",function(){q.checked?(G&&D.removeAttribute("disabled"),C.removeAttribute("disabled")):(D.setAttribute("disabled","disabled"),C.setAttribute("disabled","disabled"));C.checked&&q.checked?y.getEditSelect().removeAttribute("disabled"):y.getEditSelect().setAttribute("disabled","disabled")});c=new CustomDialog(this,f,mxUtils.bind(this,function(){b(k.checked,p.checked,n.checked,
q.checked,y.getLink(),D.checked)}),null,mxResources.get("embed"),g);this.showDialog(c.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=function(b,c,d,e,g,k,n,u){function f(c){var f=" ",p="";e&&(f=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+
EditorUi.lightboxHost+"/?client=1"+(null!=m?"&page="+m:"")+(g?"&edit=_blank":"")+(k?"&layers=1":"")+"');}})(this);\"",p+="cursor:pointer;");b&&(p+="max-width:100%;");var q="";d&&(q=' width="'+Math.round(l.width)+'" height="'+Math.round(l.height)+'"');n('<img src="'+c+'"'+q+(""!=p?' style="'+p+'"':"")+f+"/>")}var l=this.editor.graph.getGraphBounds(),m=this.getSelectedPageIndex();if(this.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(b){var c=e?this.getFileData(!0):null;b=
this.createImageDataUri(b,c,"png");f(b)}),null,null,null,mxUtils.bind(this,function(b){u({message:mxResources.get("unknownError")})}),null,!0,d?2:1,null,c,null,null,Editor.defaultBorder);else if(c=this.getFileData(!0),l.width*l.height<=MAX_AREA&&c.length<=MAX_REQUEST_SIZE){var p="";d&&(p="&w="+Math.round(2*l.width)+"&h="+Math.round(2*l.height));var q=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(e?"1":"0")+p+"&xml="+encodeURIComponent(c));q.send(mxUtils.bind(this,function(){200<=q.getStatus()&&
@@ -10978,16 +10978,16 @@ arguments)};document.body.appendChild(f.container);f.model.setRoot(p.root)}this.
c(b)}),null,null,e,null,f.shadowVisible,null,f,g,null,null,null,"diagram",null)}catch(z){null!=c&&c(z)}};EditorUi.prototype.getEmbeddedSvg=function(b,c,d,e,g,k,n,u,x,A,z,B,y){u=null!=u?u:!0;z=null!=z?z:0;n=null!=x?x:c.background;n==mxConstants.NONE&&(n=null);k=c.getSvg(n,A,z,null,null,k,null,null,null,c.shadowVisible||B,null,y,"diagram");(c.shadowVisible||B)&&c.addSvgShadow(k,null,null,0==z);null!=b&&k.setAttribute("content",b);null!=d&&k.setAttribute("resource",d);var f=mxUtils.bind(this,function(b){b=
(e?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(b);null!=g&&g(b);return b});c.mathEnabled&&this.editor.addMathCss(k);if(null!=g)this.embedFonts(k,mxUtils.bind(this,function(b){u?this.editor.convertImages(b,mxUtils.bind(this,function(b){f(b)})):f(b)}));else return f(k)};EditorUi.prototype.embedFonts=function(b,c){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&&this.editor.addFontCss(b,this.editor.resolvedFontCss),
this.editor.embedExtFonts(mxUtils.bind(this,function(f){try{null!=f&&this.editor.addFontCss(b,f),c(b)}catch(p){c(b)}}))}catch(m){c(b)}}))};EditorUi.prototype.exportImage=function(b,c,d,e,g,k,n,u,x,A,z,B,y){x=null!=x?x:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"))){var f=this.editor.graph.isSelectionEmpty();d=null!=d?d:f;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,function(b){this.spinner.stop();try{this.saveCanvas(b,
-g?this.getFileData(!0,null,null,null,d,u):null,x,null==this.pages||0==this.pages.length,z)}catch(D){this.handleError(D)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(b){this.spinner.stop();this.handleError(b)}),null,d,b||1,c,e,null,null,k,n,A,B,y)}catch(E){this.spinner.stop(),this.handleError(E)}}};EditorUi.prototype.isCorsEnabledForUrl=function(b){return this.editor.isCorsEnabledForUrl(b)};EditorUi.prototype.importXml=function(b,c,d,e,g,k,n){c=null!=c?c:0;d=null!=d?d:0;var f=[];try{var l=
+g?this.getFileData(!0,null,null,null,d,u):null,x,null==this.pages||0==this.pages.length,z)}catch(D){this.handleError(D)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(b){this.spinner.stop();this.handleError(b)}),null,d,b||1,c,e,null,null,k,n,A,B,y)}catch(G){this.spinner.stop(),this.handleError(G)}}};EditorUi.prototype.isCorsEnabledForUrl=function(b){return this.editor.isCorsEnabledForUrl(b)};EditorUi.prototype.importXml=function(b,c,d,e,g,k,n){c=null!=c?c:0;d=null!=d?d:0;var f=[];try{var l=
this.editor.graph;if(null!=b&&0<b.length){l.model.beginUpdate();try{var m=mxUtils.parseXml(b);b={};var p=this.editor.extractGraphModel(m.documentElement,null!=this.pages);if(null!=p&&"mxfile"==p.nodeName&&null!=this.pages){var q=p.getElementsByTagName("diagram");if(1==q.length&&!k){if(p=Editor.parseDiagramNode(q[0]),null!=this.currentPage&&(b[q[0].getAttribute("id")]=this.currentPage.getId(),null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",
-[1]))){var t=q[0].getAttribute("name");null!=t&&""!=t&&this.editor.graph.model.execute(new RenamePage(this,this.currentPage,t))}}else if(0<q.length){k=[];var v=0;null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&(b[q[0].getAttribute("id")]=this.pages[0].getId(),p=Editor.parseDiagramNode(q[0]),e=!1,v=1);for(;v<q.length;v++){var E=q[v].getAttribute("id");q[v].removeAttribute("id");var D=this.updatePageRoot(new DiagramPage(q[v]));b[E]=q[v].getAttribute("id");var F=this.pages.length;null==
-D.getName()&&D.setName(mxResources.get("pageWithNumber",[F+1]));l.model.execute(new ChangePage(this,D,D,F,!0));k.push(D)}this.updatePageLinks(b,k)}}if(null!=p&&"mxGraphModel"===p.nodeName){f=l.importGraphModel(p,c,d,e);if(null!=f)for(v=0;v<f.length;v++)this.updatePageLinksForCell(b,f[v]);var G=l.parseBackgroundImage(p.getAttribute("backgroundImage"));if(null!=G&&null!=G.originalSrc){this.updateBackgroundPageLink(b,G);var I=new ChangePageSetup(this,null,G);I.ignoreColor=!0;l.model.execute(I)}}n&&this.insertHandler(f,
-null,null,l.defaultVertexStyle,l.defaultEdgeStyle,!1,!0)}finally{l.model.endUpdate()}}}catch(J){if(g)throw J;this.handleError(J)}return f};EditorUi.prototype.updatePageLinks=function(b,c){for(var f=0;f<c.length;f++)this.updatePageLinksForCell(b,c[f].root),null!=c[f].viewState&&this.updateBackgroundPageLink(b,c[f].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(b,c){try{if(null!=c&&Graph.isPageLink(c.originalSrc)){var f=b[c.originalSrc.substring(c.originalSrc.indexOf(",")+
+[1]))){var t=q[0].getAttribute("name");null!=t&&""!=t&&this.editor.graph.model.execute(new RenamePage(this,this.currentPage,t))}}else if(0<q.length){k=[];var v=0;null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&(b[q[0].getAttribute("id")]=this.pages[0].getId(),p=Editor.parseDiagramNode(q[0]),e=!1,v=1);for(;v<q.length;v++){var G=q[v].getAttribute("id");q[v].removeAttribute("id");var D=this.updatePageRoot(new DiagramPage(q[v]));b[G]=q[v].getAttribute("id");var E=this.pages.length;null==
+D.getName()&&D.setName(mxResources.get("pageWithNumber",[E+1]));l.model.execute(new ChangePage(this,D,D,E,!0));k.push(D)}this.updatePageLinks(b,k)}}if(null!=p&&"mxGraphModel"===p.nodeName){f=l.importGraphModel(p,c,d,e);if(null!=f)for(v=0;v<f.length;v++)this.updatePageLinksForCell(b,f[v]);var F=l.parseBackgroundImage(p.getAttribute("backgroundImage"));if(null!=F&&null!=F.originalSrc){this.updateBackgroundPageLink(b,F);var J=new ChangePageSetup(this,null,F);J.ignoreColor=!0;l.model.execute(J)}}n&&this.insertHandler(f,
+null,null,l.defaultVertexStyle,l.defaultEdgeStyle,!1,!0)}finally{l.model.endUpdate()}}}catch(K){if(g)throw K;this.handleError(K)}return f};EditorUi.prototype.updatePageLinks=function(b,c){for(var f=0;f<c.length;f++)this.updatePageLinksForCell(b,c[f].root),null!=c[f].viewState&&this.updateBackgroundPageLink(b,c[f].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(b,c){try{if(null!=c&&Graph.isPageLink(c.originalSrc)){var f=b[c.originalSrc.substring(c.originalSrc.indexOf(",")+
1)];null!=f&&(c.originalSrc="data:page/id,"+f)}}catch(p){}};EditorUi.prototype.updatePageLinksForCell=function(b,c){var f=document.createElement("div"),d=this.editor.graph,e=d.getLinkForCell(c);null!=e&&d.setLinkForCell(c,this.updatePageLink(b,e));if(d.isHtmlLabel(c)){f.innerHTML=d.sanitizeHtml(d.getLabel(c));for(var l=f.getElementsByTagName("a"),g=!1,k=0;k<l.length;k++)e=l[k].getAttribute("href"),null!=e&&(l[k].setAttribute("href",this.updatePageLink(b,e)),g=!0);g&&d.labelChanged(c,f.innerHTML)}for(k=
0;k<d.model.getChildCount(c);k++)this.updatePageLinksForCell(b,d.model.getChildAt(c,k))};EditorUi.prototype.updatePageLink=function(b,c){if(Graph.isPageLink(c)){var f=b[c.substring(c.indexOf(",")+1)];c=null!=f?"data:page/id,"+f:null}else if("data:action/json,"==c.substring(0,17))try{var d=JSON.parse(c.substring(17));if(null!=d.actions){for(var e=0;e<d.actions.length;e++){var l=d.actions[e];if(null!=l.open&&Graph.isPageLink(l.open)){var g=l.open.substring(l.open.indexOf(",")+1),f=b[g];null!=f?l.open=
"data:page/id,"+f:null==this.getPageById(g)&&delete l.open}}c="data:action/json,"+JSON.stringify(d)}}catch(u){}return c};EditorUi.prototype.isRemoteVisioFormat=function(b){return/(\.v(sd|dx))($|\?)/i.test(b)||/(\.vs(s|x))($|\?)/i.test(b)};EditorUi.prototype.importVisio=function(b,c,d,e,g){e=null!=e?e:b.name;d=null!=d?d:mxUtils.bind(this,function(b){this.handleError(b)});var f=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(this.doImportVisio){var f=this.isRemoteVisioFormat(e);try{var l=
"UNKNOWN-VISIO",k=e.lastIndexOf(".");if(0<=k&&k<e.length)l=e.substring(k+1).toUpperCase();else{var m=e.lastIndexOf("/");0<=m&&m<e.length&&(e=e.substring(m+1))}EditorUi.logEvent({category:l+"-MS-IMPORT-FILE",action:"filename_"+e,label:f?"remote":"local"})}catch(B){}if(f)if(null==VSD_CONVERT_URL||this.isOffline())d({message:"conf"==this.getServiceName()?mxResources.get("vsdNoConfig"):mxResources.get("serviceUnavailableOrBlocked")});else{f=new FormData;f.append("file1",b,e);var p=new XMLHttpRequest;
-p.open("POST",VSD_CONVERT_URL+(/(\.vss|\.vsx)$/.test(e)?"?stencil=1":""));p.responseType="blob";this.addRemoteServiceSecurityCheck(p);null!=g&&p.setRequestHeader("x-convert-custom",g);p.onreadystatechange=mxUtils.bind(this,function(){if(4==p.readyState)if(200<=p.status&&299>=p.status)try{var b=p.response;if("text/xml"==b.type){var f=new FileReader;f.onload=mxUtils.bind(this,function(b){try{c(b.target.result)}catch(E){d({message:mxResources.get("errorLoadingFile")})}});f.readAsText(b)}else this.doImportVisio(b,
+p.open("POST",VSD_CONVERT_URL+(/(\.vss|\.vsx)$/.test(e)?"?stencil=1":""));p.responseType="blob";this.addRemoteServiceSecurityCheck(p);null!=g&&p.setRequestHeader("x-convert-custom",g);p.onreadystatechange=mxUtils.bind(this,function(){if(4==p.readyState)if(200<=p.status&&299>=p.status)try{var b=p.response;if("text/xml"==b.type){var f=new FileReader;f.onload=mxUtils.bind(this,function(b){try{c(b.target.result)}catch(G){d({message:mxResources.get("errorLoadingFile")})}});f.readAsText(b)}else this.doImportVisio(b,
c,d,e)}catch(C){d(C)}else try{""==p.responseType||"text"==p.responseType?d({message:p.responseText}):(f=new FileReader,f.onload=function(){d({message:JSON.parse(f.result).Message})},f.readAsText(p.response))}catch(C){d({})}});p.send(f)}else try{this.doImportVisio(b,c,d,e)}catch(B){d(B)}}else this.spinner.stop(),this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?f():(this.loadingExtensions=!0,mxscript("js/extensions.min.js",
f))};EditorUi.prototype.importGraphML=function(b,c,d){d=null!=d?d:mxUtils.bind(this,function(b){this.handleError(b)});var f=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(this.doImportGraphML)try{this.doImportGraphML(b,c,d)}catch(q){d(q)}else this.spinner.stop(),this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportGraphML||this.loadingExtensions||this.isOffline(!0)?f():(this.loadingExtensions=!0,mxscript("js/extensions.min.js",f))};EditorUi.prototype.exportVisio=
function(b){var c=mxUtils.bind(this,function(){this.loadingExtensions=!1;if("undefined"!==typeof VsdxExport)try{(new VsdxExport(this)).exportCurrentDiagrams(b)||this.handleError({message:mxResources.get("unknownError")})}catch(m){this.handleError(m)}else this.spinner.stop(),this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof VsdxExport||this.loadingExtensions||this.isOffline(!0)?c():(this.loadingExtensions=!0,mxscript("js/extensions.min.js",c))};EditorUi.prototype.convertLucidChart=
@@ -10997,7 +10997,7 @@ function(){mxscript("js/orgchart/mxOrgChartLayout.js",f)})})})}):mxscript("js/ex
b.replace(/ xmlns:\S*="http:\/\/www.w3.org\/XML\/1998\/namespace"/g,"").replace(/ (NS xml|\S*):space="preserve"/g,' xml:space="preserve"');var c=mxUtils.parseXml(b).getElementsByTagName("svg");if(0<c.length){var l=parseFloat(c[0].getAttribute("width")),g=parseFloat(c[0].getAttribute("height"));if(isNaN(l)||isNaN(g))try{var k=c[0].getAttribute("viewBox").split(/\s+/),l=parseFloat(k[2]),g=parseFloat(k[3])}catch(B){l=l||100,g=g||100}d(f.convertDataUri(Editor.createSvgDataUri(b)),l,g)}else e({message:mxResources.get("invalidInput")})}catch(B){e(B)}})}catch(v){e(v)}};
"undefined"!==typeof mermaid||this.loadingMermaid||this.isOffline(!0)?l():(this.loadingMermaid=!0,"1"==urlParams.dev?mxscript("js/mermaid/mermaid.min.js",l):mxscript("js/extensions.min.js",l))};EditorUi.prototype.generatePlantUmlImage=function(b,c,d,e){function f(b,c,f){c1=b>>2;c2=(b&3)<<4|c>>4;c3=(c&15)<<2|f>>6;c4=f&63;r="";r+=l(c1&63);r+=l(c2&63);r+=l(c3&63);return r+=l(c4&63)}function l(b){if(10>b)return String.fromCharCode(48+b);b-=10;if(26>b)return String.fromCharCode(65+b);b-=26;if(26>b)return String.fromCharCode(97+
b);b-=26;return 0==b?"-":1==b?"_":"?"}var g=new XMLHttpRequest;g.open("GET",("txt"==c?PLANT_URL+"/txt/":"png"==c?PLANT_URL+"/png/":PLANT_URL+"/svg/")+function(b){r="";for(i=0;i<b.length;i+=3)r=i+2==b.length?r+f(b.charCodeAt(i),b.charCodeAt(i+1),0):i+1==b.length?r+f(b.charCodeAt(i),0,0):r+f(b.charCodeAt(i),b.charCodeAt(i+1),b.charCodeAt(i+2));return r}(Graph.arrayBufferToString(pako.deflateRaw(b))),!0);"txt"!=c&&(g.responseType="blob");g.onload=function(b){if(200<=this.status&&300>this.status)if("txt"==
-c)d(this.response);else{var f=new FileReader;f.readAsDataURL(this.response);f.onloadend=function(b){var c=new Image;c.onload=function(){try{var b=c.width,l=c.height;if(0==b&&0==l){var g=f.result,k=g.indexOf(","),m=decodeURIComponent(escape(atob(g.substring(k+1)))),p=mxUtils.parseXml(m).getElementsByTagName("svg");0<p.length&&(b=parseFloat(p[0].getAttribute("width")),l=parseFloat(p[0].getAttribute("height")))}d(f.result,b,l)}catch(G){e(G)}};c.src=f.result};f.onerror=function(b){e(b)}}else e(b)};g.onerror=
+c)d(this.response);else{var f=new FileReader;f.readAsDataURL(this.response);f.onloadend=function(b){var c=new Image;c.onload=function(){try{var b=c.width,l=c.height;if(0==b&&0==l){var g=f.result,k=g.indexOf(","),m=decodeURIComponent(escape(atob(g.substring(k+1)))),p=mxUtils.parseXml(m).getElementsByTagName("svg");0<p.length&&(b=parseFloat(p[0].getAttribute("width")),l=parseFloat(p[0].getAttribute("height")))}d(f.result,b,l)}catch(F){e(F)}};c.src=f.result};f.onerror=function(b){e(b)}}else e(b)};g.onerror=
function(b){e(b)};g.send()};EditorUi.prototype.insertAsPreText=function(b,c,d){var f=this.editor.graph,e=null;f.getModel().beginUpdate();try{e=f.insertVertex(null,null,"<pre>"+b+"</pre>",c,d,1,1,"text;html=1;align=left;verticalAlign=top;"),f.updateCellSize(e,!0)}finally{f.getModel().endUpdate()}return e};EditorUi.prototype.insertTextAt=function(b,c,d,e,g,k,n,u){k=null!=k?k:!0;n=null!=n?n:!0;if(null!=b)if(Graph.fileSupport&&!this.isOffline()&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(b))this.parseFileData(b.replace(/\s+/g,
" "),mxUtils.bind(this,function(b){4==b.readyState&&200<=b.status&&299>=b.status&&this.editor.graph.setSelectionCells(this.insertTextAt(b.responseText,c,d,!0))}));else if("data:"==b.substring(0,5)||!this.isOffline()&&(g||/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(b))){var f=this.editor.graph;if("data:application/pdf;base64,"==b.substring(0,28)){var l=Editor.extractGraphModelFromPdf(b);if(null!=l&&0<l.length)return this.importXml(l,c,d,k,!0,u)}if(Editor.isPngDataUrl(b)&&(l=Editor.extractGraphModelFromPng(b),
null!=l&&0<l.length))return this.importXml(l,c,d,k,!0,u);if("data:image/svg+xml;"==b.substring(0,19))try{l=null;"data:image/svg+xml;base64,"==b.substring(0,26)?(l=b.substring(b.indexOf(",")+1),l=window.atob&&!mxClient.IS_SF?atob(l):Base64.decode(l,!0)):l=decodeURIComponent(b.substring(b.indexOf(",")+1));var m=this.importXml(l,c,d,k,!0,u);if(0<m.length)return m}catch(y){}this.loadImage(b,mxUtils.bind(this,function(e){if("data:"==b.substring(0,5))this.resizeImage(e,b,mxUtils.bind(this,function(b,e,
@@ -11015,25 +11015,25 @@ null!=b&&"<mxlibrary"==b.substring(0,10)?this.loadLibrary(new LocalLibrary(this,
e=c.snap(e)),l=[c.insertVertex(null,null,"",d,e,g,k,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+b+";")])):/(\.*<graphml )/.test(b)?(f=!0,this.importGraphML(b,m)):null!=x&&null!=n&&(/(\.v(dx|sdx?))($|\?)/i.test(n)||/(\.vs(x|sx?))($|\?)/i.test(n))?(f=!0,this.importVisio(x,m)):!this.isOffline()&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(b,n)?(f=!0,g=mxUtils.bind(this,function(b){4==b.readyState&&(200<=b.status&&
299>=b.status?m(b.responseText):null!=u&&u(null))}),null!=b?this.parseFileData(b,g,n):this.parseFile(x,g,n)):0==b.indexOf("PK")&&null!=x?(f=!0,this.importZipFile(x,m,mxUtils.bind(this,function(){l=this.insertTextAt(this.validateFileData(b),d,e,!0,null,A);u(l)}))):/(\.v(sd|dx))($|\?)/i.test(n)||/(\.vs(s|x))($|\?)/i.test(n)||(l=this.insertTextAt(this.validateFileData(b),d,e,!0,null,A,null,null!=B?mxEvent.isControlDown(B):null));f||null==u||u(l);return l};EditorUi.prototype.importFiles=function(b,c,
d,e,g,k,n,u,x,A,z,B,y){e=null!=e?e:this.maxImageSize;A=null!=A?A:this.maxImageBytes;var f=null!=c&&null!=d,l=!0;c=null!=c?c:0;d=null!=d?d:0;var m=!1;if(!mxClient.IS_CHROMEAPP&&null!=b)for(var p=z||this.resampleThreshold,q=0;q<b.length;q++)if("image/"==b[q].type.substring(0,6)&&b[q].size>p){m=!0;break}var t=mxUtils.bind(this,function(){var m=this.editor.graph,p=m.gridSize;g=null!=g?g:mxUtils.bind(this,function(b,c,d,e,g,l,k,m,p){try{return null!=b&&"<mxlibrary"==b.substring(0,10)?(this.spinner.stop(),
-this.loadLibrary(new LocalLibrary(this,b,k)),null):this.importFile(b,c,d,e,g,l,k,m,p,f,B,y)}catch(ra){return this.handleError(ra),null}});k=null!=k?k:mxUtils.bind(this,function(b){m.setSelectionCells(b)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var q=b.length,t=q,v=[],D=mxUtils.bind(this,function(b,c){v[b]=c;if(0==--t){this.spinner.stop();if(null!=u)u(v);else{var d=[];m.getModel().beginUpdate();try{for(var f=0;f<v.length;f++){var e=v[f]();null!=e&&(d=d.concat(e))}}finally{m.getModel().endUpdate()}}k(d)}}),
-C=0;C<q;C++)mxUtils.bind(this,function(f){var k=b[f];if(null!=k){var q=new FileReader;q.onload=mxUtils.bind(this,function(b){if(null==n||n(k))if("image/"==k.type.substring(0,6))if("image/svg"==k.type.substring(0,9)){var q=Graph.clipSvgDataUri(b.target.result),t=q.indexOf(","),y=decodeURIComponent(escape(atob(q.substring(t+1)))),v=mxUtils.parseXml(y),y=v.getElementsByTagName("svg");if(0<y.length){var y=y[0],u=B?null:y.getAttribute("content");null!=u&&"<"!=u.charAt(0)&&"%"!=u.charAt(0)&&(u=unescape(window.atob?
-atob(u):Base64.decode(u,!0)));null!=u&&"%"==u.charAt(0)&&(u=decodeURIComponent(u));null==u||"<mxfile "!==u.substring(0,8)&&"<mxGraphModel "!==u.substring(0,14)?D(f,mxUtils.bind(this,function(){try{if(q.substring(0,t+1),null!=v){var b=v.getElementsByTagName("svg");if(0<b.length){var l=b[0],n=l.getAttribute("width"),y=l.getAttribute("height"),n=null!=n&&"%"!=n.charAt(n.length-1)?parseFloat(n):NaN,y=null!=y&&"%"!=y.charAt(y.length-1)?parseFloat(y):NaN,u=l.getAttribute("viewBox");if(null==u||0==u.length)l.setAttribute("viewBox",
-"0 0 "+n+" "+y);else if(isNaN(n)||isNaN(y)){var D=u.split(" ");3<D.length&&(n=parseFloat(D[2]),y=parseFloat(D[3]))}q=Editor.createSvgDataUri(mxUtils.getXml(l));var C=Math.min(1,Math.min(e/Math.max(1,n)),e/Math.max(1,y)),x=g(q,k.type,c+f*p,d+f*p,Math.max(1,Math.round(n*C)),Math.max(1,Math.round(y*C)),k.name);if(isNaN(n)||isNaN(y)){var A=new Image;A.onload=mxUtils.bind(this,function(){n=Math.max(1,A.width);y=Math.max(1,A.height);x[0].geometry.width=n;x[0].geometry.height=y;l.setAttribute("viewBox",
-"0 0 "+n+" "+y);q=Editor.createSvgDataUri(mxUtils.getXml(l));var b=q.indexOf(";");0<b&&(q=q.substring(0,b)+q.substring(q.indexOf(",",b+1)));m.setCellStyles("image",q,[x[0]])});A.src=Editor.createSvgDataUri(mxUtils.getXml(l))}return x}}}catch(ca){}return null})):D(f,mxUtils.bind(this,function(){return g(u,"text/xml",c+f*p,d+f*p,0,0,k.name)}))}else D(f,mxUtils.bind(this,function(){return null}))}else{y=!1;if("image/png"==k.type){var C=B?null:this.extractGraphModelFromPng(b.target.result);if(null!=C&&
-0<C.length){var x=new Image;x.src=b.target.result;D(f,mxUtils.bind(this,function(){return g(C,"text/xml",c+f*p,d+f*p,x.width,x.height,k.name)}));y=!0}}y||(mxClient.IS_CHROMEAPP?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("dragAndDropNotSupported"),mxResources.get("cancel"),mxUtils.bind(this,function(){}),null,mxResources.get("ok"),mxUtils.bind(this,function(){this.actions.get("import").funct()}))):this.loadImage(b.target.result,mxUtils.bind(this,function(m){this.resizeImage(m,
-b.target.result,mxUtils.bind(this,function(b,m,n){D(f,mxUtils.bind(this,function(){if(null!=b&&b.length<A){var q=l&&this.isResampleImageSize(k.size,z)?Math.min(1,Math.min(e/m,e/n)):1;return g(b,k.type,c+f*p,d+f*p,Math.round(m*q),Math.round(n*q),k.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),l,e,z,k.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else q=b.target.result,g(q,k.type,c+f*p,d+f*p,240,160,k.name,
-function(b){D(f,function(){return b})},k)});/(\.v(dx|sdx?))($|\?)/i.test(k.name)||/(\.vs(x|sx?))($|\?)/i.test(k.name)?g(null,k.type,c+f*p,d+f*p,240,160,k.name,function(b){D(f,function(){return b})},k):"image"==k.type.substring(0,5)||"application/pdf"==k.type?q.readAsDataURL(k):q.readAsText(k)}})(C)});if(m){m=[];for(q=0;q<b.length;q++)m.push(b[q]);b=m;this.confirmImageResize(function(b){l=b;t()},x)}else t()};EditorUi.prototype.confirmImageResize=function(b,c){c=null!=c?c:!1;var d=null!=this.spinner&&
+this.loadLibrary(new LocalLibrary(this,b,k)),null):this.importFile(b,c,d,e,g,l,k,m,p,f,B,y)}catch(sa){return this.handleError(sa),null}});k=null!=k?k:mxUtils.bind(this,function(b){m.setSelectionCells(b)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var q=b.length,t=q,v=[],C=mxUtils.bind(this,function(b,c){v[b]=c;if(0==--t){this.spinner.stop();if(null!=u)u(v);else{var d=[];m.getModel().beginUpdate();try{for(var f=0;f<v.length;f++){var e=v[f]();null!=e&&(d=d.concat(e))}}finally{m.getModel().endUpdate()}}k(d)}}),
+D=0;D<q;D++)mxUtils.bind(this,function(f){var k=b[f];if(null!=k){var q=new FileReader;q.onload=mxUtils.bind(this,function(b){if(null==n||n(k))if("image/"==k.type.substring(0,6))if("image/svg"==k.type.substring(0,9)){var q=Graph.clipSvgDataUri(b.target.result),t=q.indexOf(","),y=decodeURIComponent(escape(atob(q.substring(t+1)))),v=mxUtils.parseXml(y),y=v.getElementsByTagName("svg");if(0<y.length){var y=y[0],u=B?null:y.getAttribute("content");null!=u&&"<"!=u.charAt(0)&&"%"!=u.charAt(0)&&(u=unescape(window.atob?
+atob(u):Base64.decode(u,!0)));null!=u&&"%"==u.charAt(0)&&(u=decodeURIComponent(u));null==u||"<mxfile "!==u.substring(0,8)&&"<mxGraphModel "!==u.substring(0,14)?C(f,mxUtils.bind(this,function(){try{if(q.substring(0,t+1),null!=v){var b=v.getElementsByTagName("svg");if(0<b.length){var l=b[0],n=l.getAttribute("width"),y=l.getAttribute("height"),n=null!=n&&"%"!=n.charAt(n.length-1)?parseFloat(n):NaN,y=null!=y&&"%"!=y.charAt(y.length-1)?parseFloat(y):NaN,u=l.getAttribute("viewBox");if(null==u||0==u.length)l.setAttribute("viewBox",
+"0 0 "+n+" "+y);else if(isNaN(n)||isNaN(y)){var C=u.split(" ");3<C.length&&(n=parseFloat(C[2]),y=parseFloat(C[3]))}q=Editor.createSvgDataUri(mxUtils.getXml(l));var D=Math.min(1,Math.min(e/Math.max(1,n)),e/Math.max(1,y)),x=g(q,k.type,c+f*p,d+f*p,Math.max(1,Math.round(n*D)),Math.max(1,Math.round(y*D)),k.name);if(isNaN(n)||isNaN(y)){var A=new Image;A.onload=mxUtils.bind(this,function(){n=Math.max(1,A.width);y=Math.max(1,A.height);x[0].geometry.width=n;x[0].geometry.height=y;l.setAttribute("viewBox",
+"0 0 "+n+" "+y);q=Editor.createSvgDataUri(mxUtils.getXml(l));var b=q.indexOf(";");0<b&&(q=q.substring(0,b)+q.substring(q.indexOf(",",b+1)));m.setCellStyles("image",q,[x[0]])});A.src=Editor.createSvgDataUri(mxUtils.getXml(l))}return x}}}catch(U){}return null})):C(f,mxUtils.bind(this,function(){return g(u,"text/xml",c+f*p,d+f*p,0,0,k.name)}))}else C(f,mxUtils.bind(this,function(){return null}))}else{y=!1;if("image/png"==k.type){var D=B?null:this.extractGraphModelFromPng(b.target.result);if(null!=D&&
+0<D.length){var x=new Image;x.src=b.target.result;C(f,mxUtils.bind(this,function(){return g(D,"text/xml",c+f*p,d+f*p,x.width,x.height,k.name)}));y=!0}}y||(mxClient.IS_CHROMEAPP?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("dragAndDropNotSupported"),mxResources.get("cancel"),mxUtils.bind(this,function(){}),null,mxResources.get("ok"),mxUtils.bind(this,function(){this.actions.get("import").funct()}))):this.loadImage(b.target.result,mxUtils.bind(this,function(m){this.resizeImage(m,
+b.target.result,mxUtils.bind(this,function(b,m,n){C(f,mxUtils.bind(this,function(){if(null!=b&&b.length<A){var q=l&&this.isResampleImageSize(k.size,z)?Math.min(1,Math.min(e/m,e/n)):1;return g(b,k.type,c+f*p,d+f*p,Math.round(m*q),Math.round(n*q),k.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),l,e,z,k.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else q=b.target.result,g(q,k.type,c+f*p,d+f*p,240,160,k.name,
+function(b){C(f,function(){return b})},k)});/(\.v(dx|sdx?))($|\?)/i.test(k.name)||/(\.vs(x|sx?))($|\?)/i.test(k.name)?g(null,k.type,c+f*p,d+f*p,240,160,k.name,function(b){C(f,function(){return b})},k):"image"==k.type.substring(0,5)||"application/pdf"==k.type?q.readAsDataURL(k):q.readAsText(k)}})(D)});if(m){m=[];for(q=0;q<b.length;q++)m.push(b[q]);b=m;this.confirmImageResize(function(b){l=b;t()},x)}else t()};EditorUi.prototype.confirmImageResize=function(b,c){c=null!=c?c:!1;var d=null!=this.spinner&&
null!=this.spinner.pause?this.spinner.pause():function(){},f=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,e=function(f,e){if(f||c)mxSettings.setResizeImages(f?e:null),mxSettings.save();d();b(e)};null==f||c?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(b){e(b,!0)},function(b){e(b,!1)},mxResources.get("resize"),mxResources.get("actualSize"),'<img style="margin-top:8px;" src="'+Editor.loResImage+'"/>','<img style="margin-top:8px;" src="'+
Editor.hiResImage+'"/>',isLocalStorage||mxClient.IS_CHROMEAPP)).container,340,isLocalStorage||mxClient.IS_CHROMEAPP?220:200,!0,!0):e(!1,f)};EditorUi.prototype.parseFile=function(b,c,d){d=null!=d?d:b.name;var f=new FileReader;f.onload=mxUtils.bind(this,function(){this.parseFileData(f.result,c,d)});f.readAsText(b)};EditorUi.prototype.parseFileData=function(b,c,d){var f=new XMLHttpRequest;f.open("POST",OPEN_URL);f.setRequestHeader("Content-Type","application/x-www-form-urlencoded");f.onreadystatechange=
function(){c(f)};f.send("format=xml&filename="+encodeURIComponent(d)+"&data="+encodeURIComponent(b));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(q){}};EditorUi.prototype.isResampleImageSize=function(b,c){c=null!=c?c:this.resampleThreshold;return b>c};EditorUi.prototype.resizeImage=function(b,c,d,e,g,k,n){g=null!=g?g:this.maxImageSize;var f=Math.max(1,b.width),l=Math.max(1,b.height);if(e&&this.isResampleImageSize(null!=n?n:c.length,k))try{var m=Math.max(f/
-g,l/g);if(1<m){var p=Math.round(f/m),q=Math.round(l/m),t=document.createElement("canvas");t.width=p;t.height=q;t.getContext("2d").drawImage(b,0,0,p,q);var v=t.toDataURL();if(v.length<c.length){var E=document.createElement("canvas");E.width=p;E.height=q;var D=E.toDataURL();v!==D&&(c=v,f=p,l=q)}}}catch(F){}d(c,f,l)};EditorUi.prototype.extractGraphModelFromPng=function(b){return Editor.extractGraphModelFromPng(b)};EditorUi.prototype.loadImage=function(b,c,d){try{var f=new Image;f.onload=function(){f.width=
+g,l/g);if(1<m){var p=Math.round(f/m),q=Math.round(l/m),t=document.createElement("canvas");t.width=p;t.height=q;t.getContext("2d").drawImage(b,0,0,p,q);var v=t.toDataURL();if(v.length<c.length){var G=document.createElement("canvas");G.width=p;G.height=q;var D=G.toDataURL();v!==D&&(c=v,f=p,l=q)}}}catch(E){}d(c,f,l)};EditorUi.prototype.extractGraphModelFromPng=function(b){return Editor.extractGraphModelFromPng(b)};EditorUi.prototype.loadImage=function(b,c,d){try{var f=new Image;f.onload=function(){f.width=
0<f.width?f.width:120;f.height=0<f.height?f.height:120;c(f)};null!=d&&(f.onerror=d);f.src=b}catch(q){if(null!=d)d(q);else throw q;}};EditorUi.prototype.getDefaultSketchMode=function(){var b="ac.draw.io"==window.location.host?"1":"0";return"0"!=(null!=urlParams.rough?urlParams.rough:b)};var g=EditorUi.prototype.init;EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=mxStencilRegistry.allowEval&&!this.isOfflineApp();this.isSettingsEnabled()&&("1"==urlParams.sketch&&this.doSetSketchMode(null!=
mxSettings.settings.sketchMode&&null==urlParams.rough?mxSettings.settings.sketchMode:this.getDefaultSketchMode()),null!=mxSettings.settings.sidebarTitles&&(Sidebar.prototype.sidebarTitles=mxSettings.settings.sidebarTitles),this.formatWidth=mxSettings.getFormatWidth());var b=this,c=this.editor.graph;Editor.isDarkMode()&&(c.view.defaultGridColor=mxGraphView.prototype.defaultDarkGridColor);Graph.touchStyle&&(c.panningHandler.isPanningTrigger=function(b){var d=b.getEvent();return null==b.getState()&&
!mxEvent.isMouseEvent(d)&&!c.freehand.isDrawing()||mxEvent.isPopupTrigger(d)&&(null==b.getState()||mxEvent.isControlDown(d)||mxEvent.isShiftDown(d))});c.cellEditor.editPlantUmlData=function(d,f,e){var g=JSON.parse(e);f=new TextareaDialog(b,mxResources.get("plantUml")+":",g.data,function(f){null!=f&&b.spinner.spin(document.body,mxResources.get("inserting"))&&b.generatePlantUmlImage(f,g.format,function(e,l,k){b.spinner.stop();c.getModel().beginUpdate();try{if("txt"==g.format)c.labelChanged(d,"<pre>"+
e+"</pre>"),c.updateCellSize(d,!0);else{c.setCellStyles("image",b.convertDataUri(e),[d]);var m=c.model.getGeometry(d);null!=m&&(m=m.clone(),m.width=l,m.height=k,c.cellsResized([d],[m],!1))}c.setAttributeForCell(d,"plantUmlData",JSON.stringify({data:f,format:g.format}))}finally{c.getModel().endUpdate()}},function(c){b.handleError(c)})},null,null,400,220);b.showDialog(f.container,420,300,!0,!0);f.init()};c.cellEditor.editMermaidData=function(d,f,e){var g=JSON.parse(e);f=new TextareaDialog(b,mxResources.get("mermaid")+
":",g.data,function(f){null!=f&&b.spinner.spin(document.body,mxResources.get("inserting"))&&b.generateMermaidImage(f,g.config,function(e,l,k){b.spinner.stop();c.getModel().beginUpdate();try{c.setCellStyles("image",e,[d]);var m=c.model.getGeometry(d);null!=m&&(m=m.clone(),m.width=Math.max(m.width,l),m.height=Math.max(m.height,k),c.cellsResized([d],[m],!1));c.setAttributeForCell(d,"mermaidData",JSON.stringify({data:f,config:g.config},null,2))}finally{c.getModel().endUpdate()}},function(c){b.handleError(c)})},
null,null,400,220);b.showDialog(f.container,420,300,!0,!0);f.init()};var d=c.cellEditor.startEditing;c.cellEditor.startEditing=function(f,e){try{var g=this.graph.getAttributeForCell(f,"plantUmlData");if(null!=g)this.editPlantUmlData(f,e,g);else if(g=this.graph.getAttributeForCell(f,"mermaidData"),null!=g)this.editMermaidData(f,e,g);else{var l=c.getCellStyle(f);"1"==mxUtils.getValue(l,"metaEdit","0")?b.showDataDialog(f):d.apply(this,arguments)}}catch(H){b.handleError(H)}};c.getLinkTitle=function(c){return b.getLinkTitle(c)};
-c.customLinkClicked=function(c){var d=!1;try{b.handleCustomLink(c),d=!0}catch(I){b.handleError(I)}return d};var e=c.parseBackgroundImage;c.parseBackgroundImage=function(b){var c=e.apply(this,arguments);null!=c&&null!=c.src&&Graph.isPageLink(c.src)&&(c={originalSrc:c.src});return c};var k=c.setBackgroundImage;c.setBackgroundImage=function(c){null!=c&&null!=c.originalSrc&&(c=b.createImageForPageLink(c.originalSrc,b.currentPage,this));k.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,
+c.customLinkClicked=function(c){var d=!1;try{b.handleCustomLink(c),d=!0}catch(J){b.handleError(J)}return d};var e=c.parseBackgroundImage;c.parseBackgroundImage=function(b){var c=e.apply(this,arguments);null!=c&&null!=c.src&&Graph.isPageLink(c.src)&&(c={originalSrc:c.src});return c};var k=c.setBackgroundImage;c.setBackgroundImage=function(c){null!=c&&null!=c.originalSrc&&(c=b.createImageForPageLink(c.originalSrc,b.currentPage,this));k.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,
function(){c.refreshBackgroundImage()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(){c.refreshBackgroundImage()}));this.editor.addListener("pagesPatched",mxUtils.bind(this,function(b,d){var f=null!=c.backgroundImage?c.backgroundImage.originalSrc:null;if(null!=f){var e=f.indexOf(",");if(0<e)for(var f=f.substring(e+1),e=d.getProperty("patches"),g=0;g<e.length;g++)if(null!=e[g][EditorUi.DIFF_UPDATE]&&null!=e[g][EditorUi.DIFF_UPDATE][f]){c.refreshBackgroundImage();break}}}));var n=
c.getBackgroundImageObject;c.getBackgroundImageObject=function(c,d){var f=n.apply(this,arguments);if(null!=f&&null!=f.originalSrc)if(!d)f={src:f.originalSrc};else if(d&&null!=this.themes&&"darkTheme"==this.defaultThemeName){var e=this.stylesheet,g=this.shapeForegroundColor,l=this.shapeBackgroundColor;this.stylesheet=this.getDefaultStylesheet();this.shapeBackgroundColor="#ffffff";this.shapeForegroundColor="#000000";f=b.createImageForPageLink(f.originalSrc);this.shapeBackgroundColor=l;this.shapeForegroundColor=
g;this.stylesheet=e}return f};var v=this.clearDefaultStyle;this.clearDefaultStyle=function(){v.apply(this,arguments)};this.isOffline()||"undefined"===typeof window.EditDataDialog||(EditDataDialog.placeholderHelpLink="https://www.diagrams.net/doc/faq/predefined-placeholders");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var u=b.editor.getEditBlankUrl;this.editor.getEditBlankUrl=
@@ -11048,7 +11048,7 @@ mxEvent.isControlDown(b));else if(0<=mxUtils.indexOf(b.dataTransfer.types,"text/
mxUtils.indexOf(b.dataTransfer.types,"text/html")?document.execCommand("insertHTML",!1,b.dataTransfer.getData("text/html")):0<=mxUtils.indexOf(b.dataTransfer.types,"text/plain")&&document.execCommand("insertHTML",!1,b.dataTransfer.getData("text/plain"));b.stopPropagation();b.preventDefault()})))}));this.isSettingsEnabled()&&(C=this.editor.graph.view,C.setUnit(mxSettings.getUnit()),C.addListener("unitChanged",function(b,c){mxSettings.setUnit(c.getProperty("unit"));mxSettings.save()}),this.ruler=!this.canvasSupported||
9==document.documentMode||"1"!=urlParams.ruler&&!mxSettings.isRulerOn()||this.editor.isChromelessView()&&!this.editor.editable?null:new mxDualRuler(this,C.unit),this.refresh());if("1"==urlParams.styledev){C=document.getElementById("geFooter");null!=C&&(this.styleInput=document.createElement("input"),this.styleInput.setAttribute("type","text"),this.styleInput.style.position="absolute",this.styleInput.style.top="14px",this.styleInput.style.left="2px",this.styleInput.style.width="98%",this.styleInput.style.visibility=
"hidden",this.styleInput.style.opacity="0.9",mxEvent.addListener(this.styleInput,"change",mxUtils.bind(this,function(){this.editor.graph.getModel().setStyle(this.editor.graph.getSelectionCell(),this.styleInput.value)})),C.appendChild(this.styleInput),this.editor.graph.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(b,c){if(0<this.editor.graph.getSelectionCount()){var d=this.editor.graph.getSelectionCell(),d=this.editor.graph.getModel().getStyle(d);this.styleInput.value=d||
-"";this.styleInput.style.visibility="visible"}else this.styleInput.style.visibility="hidden"})));var E=this.isSelectionAllowed;this.isSelectionAllowed=function(b){return mxEvent.getSource(b)==this.styleInput?!0:E.apply(this,arguments)}}C=document.getElementById("geInfo");null!=C&&C.parentNode.removeChild(C);if(Graph.fileSupport&&(!this.editor.chromeless||this.editor.editable)){var D=null;mxEvent.addListener(c.container,"dragleave",function(b){c.isEnabled()&&(null!=D&&(D.parentNode.removeChild(D),
+"";this.styleInput.style.visibility="visible"}else this.styleInput.style.visibility="hidden"})));var G=this.isSelectionAllowed;this.isSelectionAllowed=function(b){return mxEvent.getSource(b)==this.styleInput?!0:G.apply(this,arguments)}}C=document.getElementById("geInfo");null!=C&&C.parentNode.removeChild(C);if(Graph.fileSupport&&(!this.editor.chromeless||this.editor.editable)){var D=null;mxEvent.addListener(c.container,"dragleave",function(b){c.isEnabled()&&(null!=D&&(D.parentNode.removeChild(D),
D=null),b.stopPropagation(),b.preventDefault())});mxEvent.addListener(c.container,"dragover",mxUtils.bind(this,function(b){null==D&&(!mxClient.IS_IE||10<document.documentMode)&&(D=this.highlightElement(c.container));null!=this.sidebar&&this.sidebar.hideTooltip();b.stopPropagation();b.preventDefault()}));mxEvent.addListener(c.container,"drop",mxUtils.bind(this,function(b){null!=D&&(D.parentNode.removeChild(D),D=null);if(c.isEnabled()){var d=mxUtils.convertPoint(c.container,mxEvent.getClientX(b),mxEvent.getClientY(b)),
f=c.view.translate,e=c.view.scale,g=d.x/e-f.x,l=d.y/e-f.y;if(0<b.dataTransfer.files.length)mxEvent.isShiftDown(b)?this.openFiles(b.dataTransfer.files,!0):(mxEvent.isAltDown(b)&&(l=g=null),this.importFiles(b.dataTransfer.files,g,l,this.maxImageSize,null,null,null,null,mxEvent.isControlDown(b),null,null,mxEvent.isShiftDown(b),b));else{mxEvent.isAltDown(b)&&(l=g=0);var k=0<=mxUtils.indexOf(b.dataTransfer.types,"text/uri-list")?b.dataTransfer.getData("text/uri-list"):null,d=this.extractGraphModelFromEvent(b,
null!=this.pages);if(null!=d)c.setSelectionCells(this.importXml(d,g,l,!0));else if(0<=mxUtils.indexOf(b.dataTransfer.types,"text/html")){var m=b.dataTransfer.getData("text/html"),d=document.createElement("div");d.innerHTML=c.sanitizeHtml(m);var n=null,f=d.getElementsByTagName("img");null!=f&&1==f.length?(m=f[0].getAttribute("src"),null==m&&(m=f[0].getAttribute("srcset")),/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(m)||(n=!0)):(f=d.getElementsByTagName("a"),null!=f&&1==f.length?m=f[0].getAttribute("href"):
@@ -11104,68 +11104,68 @@ this.editor.modified=null!=f?f:!1;this.updateUi();window.self!==window.top&&wind
function(b){var c=this.editor.graph;return{event:b,pageVisible:c.pageVisible,translate:c.view.translate,bounds:c.getGraphBounds(),currentPage:this.getSelectedPageIndex(),scale:c.view.scale,page:c.view.getBackgroundPageBounds()}};EditorUi.prototype.sendEmbeddedSvgExport=function(b){var c=this.editor.graph;c.isEditing()&&c.stopEditing(!c.isInvokesStopCellEditing());var d=window.opener||window.parent;if(this.editor.modified){var f=c.background;if(null==f||f==mxConstants.NONE)f=this.embedExportBackground;
this.getEmbeddedSvg(this.getFileData(!0,null,null,null,null,null,null,null,null,!1),c,null,!0,mxUtils.bind(this,function(c){d.postMessage(JSON.stringify({event:"export",point:this.embedExitPoint,exit:null!=b?!b:!0,data:Editor.createSvgDataUri(c)}),"*")}),null,null,!0,f,1,this.embedExportBorder)}else b||d.postMessage(JSON.stringify({event:"exit",point:this.embedExitPoint}),"*");b||(this.diagramContainer.removeAttribute("data-bounds"),Editor.inlineFullscreen=!1,c.model.clear(),this.editor.undoManager.clear(),
this.setBackgroundImage(null),this.editor.modified=!1,this.fireEvent(new mxEventObject("editInlineStop")))};EditorUi.prototype.installMessageHandler=function(b){var c=null,d=!1,f=!1,e=null,g=mxUtils.bind(this,function(b,c){this.editor.modified&&"0"!=urlParams.modified?null!=urlParams.modified&&this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(urlParams.modified))):this.editor.setStatus("")});this.editor.graph.model.addListener(mxEvent.CHANGE,g);mxEvent.addListener(window,"message",mxUtils.bind(this,
-function(g){if(g.source==(window.opener||window.parent)){var l=g.data,m=null,n=mxUtils.bind(this,function(b){if(null!=b&&"function"===typeof b.charAt&&"<"!=b.charAt(0))try{Editor.isPngDataUrl(b)?b=Editor.extractGraphModelFromPng(b):"data:image/svg+xml;base64,"==b.substring(0,26)?b=atob(b.substring(26)):"data:image/svg+xml;utf8,"==b.substring(0,24)&&(b=b.substring(24)),null!=b&&("%"==b.charAt(0)?b=decodeURIComponent(b):"<"!=b.charAt(0)&&(b=Graph.decompress(b)))}catch(oa){}return b});if("json"==urlParams.proto){var p=
-!1;try{l=JSON.parse(l)}catch(V){l=null}try{if(null==l)return;if("dialog"==l.action){this.showError(null!=l.titleKey?mxResources.get(l.titleKey):l.title,null!=l.messageKey?mxResources.get(l.messageKey):l.message,null!=l.buttonKey?mxResources.get(l.buttonKey):l.button);null!=l.modified&&(this.editor.modified=l.modified);return}if("layout"==l.action){this.executeLayoutList(l.layouts);return}if("prompt"==l.action){this.spinner.stop();var q=new FilenameDialog(this,l.defaultValue||"",null!=l.okKey?mxResources.get(l.okKey):
+function(g){if(g.source==(window.opener||window.parent)){var l=g.data,m=null,n=mxUtils.bind(this,function(b){if(null!=b&&"function"===typeof b.charAt&&"<"!=b.charAt(0))try{Editor.isPngDataUrl(b)?b=Editor.extractGraphModelFromPng(b):"data:image/svg+xml;base64,"==b.substring(0,26)?b=atob(b.substring(26)):"data:image/svg+xml;utf8,"==b.substring(0,24)&&(b=b.substring(24)),null!=b&&("%"==b.charAt(0)?b=decodeURIComponent(b):"<"!=b.charAt(0)&&(b=Graph.decompress(b)))}catch(ha){}return b});if("json"==urlParams.proto){var p=
+!1;try{l=JSON.parse(l)}catch(N){l=null}try{if(null==l)return;if("dialog"==l.action){this.showError(null!=l.titleKey?mxResources.get(l.titleKey):l.title,null!=l.messageKey?mxResources.get(l.messageKey):l.message,null!=l.buttonKey?mxResources.get(l.buttonKey):l.button);null!=l.modified&&(this.editor.modified=l.modified);return}if("layout"==l.action){this.executeLayoutList(l.layouts);return}if("prompt"==l.action){this.spinner.stop();var q=new FilenameDialog(this,l.defaultValue||"",null!=l.okKey?mxResources.get(l.okKey):
l.ok,function(b){null!=b?k.postMessage(JSON.stringify({event:"prompt",value:b,message:l}),"*"):k.postMessage(JSON.stringify({event:"prompt-cancel",message:l}),"*")},null!=l.titleKey?mxResources.get(l.titleKey):l.title);this.showDialog(q.container,300,80,!0,!1);q.init();return}if("draft"==l.action){var t=n(l.xml);this.spinner.stop();q=new DraftDialog(this,mxResources.get("draftFound",[l.name||this.defaultFilename]),t,mxUtils.bind(this,function(){this.hideDialog();k.postMessage(JSON.stringify({event:"draft",
result:"edit",message:l}),"*")}),mxUtils.bind(this,function(){this.hideDialog();k.postMessage(JSON.stringify({event:"draft",result:"discard",message:l}),"*")}),l.editKey?mxResources.get(l.editKey):null,l.discardKey?mxResources.get(l.discardKey):null,l.ignore?mxUtils.bind(this,function(){this.hideDialog();k.postMessage(JSON.stringify({event:"draft",result:"ignore",message:l}),"*")}):null);this.showDialog(q.container,640,480,!0,!1,mxUtils.bind(this,function(b){b&&this.actions.get("exit").funct()}));
-try{q.init()}catch(V){k.postMessage(JSON.stringify({event:"draft",error:V.toString(),message:l}),"*")}return}if("template"==l.action){this.spinner.stop();var u=1==l.enableRecent,v=1==l.enableSearch,x=1==l.enableCustomTemp;if("1"==urlParams.newTempDlg&&!l.templatesOnly&&null!=l.callback){var I=this.getCurrentUser(),J=new TemplatesDialog(this,function(b,c,d){b=b||this.emptyDiagramXml;k.postMessage(JSON.stringify({event:"template",xml:b,blank:b==this.emptyDiagramXml,name:c,tempUrl:d.url,libs:d.libs,
-builtIn:null!=d.info&&null!=d.info.custContentId,message:l}),"*")},mxUtils.bind(this,function(){this.actions.get("exit").funct()}),null,null,null!=I?I.id:null,u?mxUtils.bind(this,function(b,c,d){this.remoteInvoke("getRecentDiagrams",[d],null,b,c)}):null,v?mxUtils.bind(this,function(b,c,d,f){this.remoteInvoke("searchDiagrams",[b,f],null,c,d)}):null,mxUtils.bind(this,function(b,c,d){this.remoteInvoke("getFileContent",[b.url],null,c,d)}),null,x?mxUtils.bind(this,function(b){this.remoteInvoke("getCustomTemplates",
-null,null,b,function(){b({},0)})}):null,!1,!1,!0,!0);this.showDialog(J.container,window.innerWidth,window.innerHeight,!0,!1,null,!1,!0);return}q=new NewDialog(this,!1,l.templatesOnly?!1:null!=l.callback,mxUtils.bind(this,function(c,d,f,e){c=c||this.emptyDiagramXml;null!=l.callback?k.postMessage(JSON.stringify({event:"template",xml:c,blank:c==this.emptyDiagramXml,name:d,tempUrl:f,libs:e,builtIn:!0,message:l}),"*"):(b(c,g,c!=this.emptyDiagramXml,l.toSketch),this.editor.modified||this.editor.setStatus(""))}),
+try{q.init()}catch(N){k.postMessage(JSON.stringify({event:"draft",error:N.toString(),message:l}),"*")}return}if("template"==l.action){this.spinner.stop();var u=1==l.enableRecent,v=1==l.enableSearch,x=1==l.enableCustomTemp;if("1"==urlParams.newTempDlg&&!l.templatesOnly&&null!=l.callback){var J=this.getCurrentUser(),K=new TemplatesDialog(this,function(b,c,d){b=b||this.emptyDiagramXml;k.postMessage(JSON.stringify({event:"template",xml:b,blank:b==this.emptyDiagramXml,name:c,tempUrl:d.url,libs:d.libs,
+builtIn:null!=d.info&&null!=d.info.custContentId,message:l}),"*")},mxUtils.bind(this,function(){this.actions.get("exit").funct()}),null,null,null!=J?J.id:null,u?mxUtils.bind(this,function(b,c,d){this.remoteInvoke("getRecentDiagrams",[d],null,b,c)}):null,v?mxUtils.bind(this,function(b,c,d,f){this.remoteInvoke("searchDiagrams",[b,f],null,c,d)}):null,mxUtils.bind(this,function(b,c,d){this.remoteInvoke("getFileContent",[b.url],null,c,d)}),null,x?mxUtils.bind(this,function(b){this.remoteInvoke("getCustomTemplates",
+null,null,b,function(){b({},0)})}):null,!1,!1,!0,!0);this.showDialog(K.container,window.innerWidth,window.innerHeight,!0,!1,null,!1,!0);return}q=new NewDialog(this,!1,l.templatesOnly?!1:null!=l.callback,mxUtils.bind(this,function(c,d,f,e){c=c||this.emptyDiagramXml;null!=l.callback?k.postMessage(JSON.stringify({event:"template",xml:c,blank:c==this.emptyDiagramXml,name:d,tempUrl:f,libs:e,builtIn:!0,message:l}),"*"):(b(c,g,c!=this.emptyDiagramXml,l.toSketch),this.editor.modified||this.editor.setStatus(""))}),
null,null,null,null,null,null,null,u?mxUtils.bind(this,function(b){this.remoteInvoke("getRecentDiagrams",[null],null,b,function(){b(null,"Network Error!")})}):null,v?mxUtils.bind(this,function(b,c){this.remoteInvoke("searchDiagrams",[b,null],null,c,function(){c(null,"Network Error!")})}):null,mxUtils.bind(this,function(b,c,d){k.postMessage(JSON.stringify({event:"template",docUrl:b,info:c,name:d}),"*")}),null,null,x?mxUtils.bind(this,function(b){this.remoteInvoke("getCustomTemplates",null,null,b,function(){b({},
0)})}):null,1==l.withoutType);this.showDialog(q.container,620,460,!0,!1,mxUtils.bind(this,function(b){this.sidebar.hideTooltip();b&&this.actions.get("exit").funct()}));q.init();return}if("textContent"==l.action){var H=this.getDiagramTextContent();k.postMessage(JSON.stringify({event:"textContent",data:H,message:l}),"*");return}if("status"==l.action){null!=l.messageKey?this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(l.messageKey))):null!=l.message&&this.editor.setStatus(mxUtils.htmlEntities(l.message));
-null!=l.modified&&(this.editor.modified=l.modified);return}if("spinner"==l.action){var K=null!=l.messageKey?mxResources.get(l.messageKey):l.message;null==l.show||l.show?this.spinner.spin(document.body,K):this.spinner.stop();return}if("exit"==l.action){this.actions.get("exit").funct();return}if("viewport"==l.action){null!=l.viewport&&(this.embedViewport=l.viewport);return}if("snapshot"==l.action){this.sendEmbeddedSvgExport(!0);return}if("export"==l.action){if("png"==l.format||"xmlpng"==l.format){if(null==
-l.spin&&null==l.spinKey||this.spinner.spin(document.body,null!=l.spinKey?mxResources.get(l.spinKey):l.spin)){var P=null!=l.xml?l.xml:this.getFileData(!0);this.editor.graph.setEnabled(!1);var N=this.editor.graph,M=mxUtils.bind(this,function(b){this.editor.graph.setEnabled(!0);this.spinner.stop();var c=this.createLoadMessage("export");c.format=l.format;c.message=l;c.data=b;c.xml=P;k.postMessage(JSON.stringify(c),"*")}),Y=mxUtils.bind(this,function(b){null==b&&(b=Editor.blankImage);"xmlpng"==l.format&&
-(b=Editor.writeGraphModelToPng(b,"tEXt","mxfile",encodeURIComponent(P)));N!=this.editor.graph&&N.container.parentNode.removeChild(N.container);M(b)}),W=l.pageId||(null!=this.pages?l.currentPage?this.currentPage.getId():this.pages[0].getId():null);if(this.isExportToCanvas()){var L=mxUtils.bind(this,function(){if(null!=this.pages&&this.currentPage.getId()!=W){var b=N.getGlobalVariable;N=this.createTemporaryGraph(N.getStylesheet());for(var c,d=0;d<this.pages.length;d++)if(this.pages[d].getId()==W){c=
-this.updatePageRoot(this.pages[d]);break}null==c&&(c=this.currentPage);N.getGlobalVariable=function(d){return"page"==d?c.getName():"pagenumber"==d?1:b.apply(this,arguments)};document.body.appendChild(N.container);N.model.setRoot(c.root)}if(null!=l.layerIds){for(var f=N.model,e=f.getChildCells(f.getRoot()),g={},d=0;d<l.layerIds.length;d++)g[l.layerIds[d]]=!0;for(d=0;d<e.length;d++)f.setVisible(e[d],g[e[d].id]||!1)}this.editor.exportToCanvas(mxUtils.bind(this,function(b){Y(b.toDataURL("image/png"))}),
-l.width,null,l.background,mxUtils.bind(this,function(){Y(null)}),null,null,l.scale,l.transparent,l.shadow,null,N,l.border,null,l.grid,l.keepTheme)});null!=l.xml&&0<l.xml.length?(d=!0,this.setFileData(P),d=!1,this.editor.graph.mathEnabled?window.setTimeout(function(){window.MathJax.Hub.Queue(L)},0):L()):L()}else(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==l.format?"1":"0")+(null!=W?"&pageId="+W:"")+(null!=l.layerIds&&0<l.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:l.layerIds})):
-"")+(null!=l.scale?"&scale="+l.scale:"")+"&base64=1&xml="+encodeURIComponent(P))).send(mxUtils.bind(this,function(b){200<=b.getStatus()&&299>=b.getStatus()?M("data:image/png;base64,"+b.getText()):Y(null)}),mxUtils.bind(this,function(){Y(null)}))}}else L=mxUtils.bind(this,function(){var b=this.createLoadMessage("export");b.message=l;if("html2"==l.format||"html"==l.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length)){var c=this.getXmlFileData();b.xml=mxUtils.getXml(c);b.data=this.getFileData(null,
+null!=l.modified&&(this.editor.modified=l.modified);return}if("spinner"==l.action){var I=null!=l.messageKey?mxResources.get(l.messageKey):l.message;null==l.show||l.show?this.spinner.spin(document.body,I):this.spinner.stop();return}if("exit"==l.action){this.actions.get("exit").funct();return}if("viewport"==l.action){null!=l.viewport&&(this.embedViewport=l.viewport);return}if("snapshot"==l.action){this.sendEmbeddedSvgExport(!0);return}if("export"==l.action){if("png"==l.format||"xmlpng"==l.format){if(null==
+l.spin&&null==l.spinKey||this.spinner.spin(document.body,null!=l.spinKey?mxResources.get(l.spinKey):l.spin)){var S=null!=l.xml?l.xml:this.getFileData(!0);this.editor.graph.setEnabled(!1);var P=this.editor.graph,M=mxUtils.bind(this,function(b){this.editor.graph.setEnabled(!0);this.spinner.stop();var c=this.createLoadMessage("export");c.format=l.format;c.message=l;c.data=b;c.xml=S;k.postMessage(JSON.stringify(c),"*")}),W=mxUtils.bind(this,function(b){null==b&&(b=Editor.blankImage);"xmlpng"==l.format&&
+(b=Editor.writeGraphModelToPng(b,"tEXt","mxfile",encodeURIComponent(S)));P!=this.editor.graph&&P.container.parentNode.removeChild(P.container);M(b)}),X=l.pageId||(null!=this.pages?l.currentPage?this.currentPage.getId():this.pages[0].getId():null);if(this.isExportToCanvas()){var L=mxUtils.bind(this,function(){if(null!=this.pages&&this.currentPage.getId()!=X){var b=P.getGlobalVariable;P=this.createTemporaryGraph(P.getStylesheet());for(var c,d=0;d<this.pages.length;d++)if(this.pages[d].getId()==X){c=
+this.updatePageRoot(this.pages[d]);break}null==c&&(c=this.currentPage);P.getGlobalVariable=function(d){return"page"==d?c.getName():"pagenumber"==d?1:b.apply(this,arguments)};document.body.appendChild(P.container);P.model.setRoot(c.root)}if(null!=l.layerIds){for(var f=P.model,e=f.getChildCells(f.getRoot()),g={},d=0;d<l.layerIds.length;d++)g[l.layerIds[d]]=!0;for(d=0;d<e.length;d++)f.setVisible(e[d],g[e[d].id]||!1)}this.editor.exportToCanvas(mxUtils.bind(this,function(b){W(b.toDataURL("image/png"))}),
+l.width,null,l.background,mxUtils.bind(this,function(){W(null)}),null,null,l.scale,l.transparent,l.shadow,null,P,l.border,null,l.grid,l.keepTheme)});null!=l.xml&&0<l.xml.length?(d=!0,this.setFileData(S),d=!1,this.editor.graph.mathEnabled?window.setTimeout(function(){window.MathJax.Hub.Queue(L)},0):L()):L()}else(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==l.format?"1":"0")+(null!=X?"&pageId="+X:"")+(null!=l.layerIds&&0<l.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:l.layerIds})):
+"")+(null!=l.scale?"&scale="+l.scale:"")+"&base64=1&xml="+encodeURIComponent(S))).send(mxUtils.bind(this,function(b){200<=b.getStatus()&&299>=b.getStatus()?M("data:image/png;base64,"+b.getText()):W(null)}),mxUtils.bind(this,function(){W(null)}))}}else L=mxUtils.bind(this,function(){var b=this.createLoadMessage("export");b.message=l;if("html2"==l.format||"html"==l.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length)){var c=this.getXmlFileData();b.xml=mxUtils.getXml(c);b.data=this.getFileData(null,
null,!0,null,null,null,c);b.format=l.format}else if("html"==l.format)c=this.editor.getGraphXml(),b.data=this.getHtml(c,this.editor.graph),b.xml=mxUtils.getXml(c),b.format=l.format;else{mxSvgCanvas2D.prototype.foAltText=null;c=null!=l.background?l.background:this.editor.graph.background;c==mxConstants.NONE&&(c=null);b.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!1);b.format="svg";var d=mxUtils.bind(this,function(c){this.editor.graph.setEnabled(!0);this.spinner.stop();b.data=Editor.createSvgDataUri(c);
k.postMessage(JSON.stringify(b),"*")});if("xmlsvg"==l.format)(null==l.spin&&null==l.spinKey||this.spinner.spin(document.body,null!=l.spinKey?mxResources.get(l.spinKey):l.spin))&&this.getEmbeddedSvg(b.xml,this.editor.graph,null,!0,d,null,null,l.embedImages,c,l.scale,l.border,l.shadow,l.keepTheme);else if(null==l.spin&&null==l.spinKey||this.spinner.spin(document.body,null!=l.spinKey?mxResources.get(l.spinKey):l.spin))this.editor.graph.setEnabled(!1),c=this.editor.graph.getSvg(c,l.scale,l.border,null,
null,null,null,null,null,this.editor.graph.shadowVisible||l.shadow,null,l.keepTheme),(this.editor.graph.shadowVisible||l.shadow)&&this.editor.graph.addSvgShadow(c),this.embedFonts(c,mxUtils.bind(this,function(b){l.embedImages||null==l.embedImages?this.editor.convertImages(b,mxUtils.bind(this,function(b){d(mxUtils.getXml(b))})):d(mxUtils.getXml(b))}));return}k.postMessage(JSON.stringify(b),"*")}),null!=l.xml&&0<l.xml.length?(d=!0,this.setFileData(l.xml),d=!1,this.editor.graph.mathEnabled?window.setTimeout(function(){window.MathJax.Hub.Queue(L)},
-0):L()):L();return}if("load"==l.action){p=l.toSketch;f=1==l.autosave;this.hideDialog();null!=l.modified&&null==urlParams.modified&&(urlParams.modified=l.modified);null!=l.saveAndExit&&null==urlParams.saveAndExit&&(urlParams.saveAndExit=l.saveAndExit);null!=l.noSaveBtn&&null==urlParams.noSaveBtn&&(urlParams.noSaveBtn=l.noSaveBtn);if(null!=l.rough){var O=Editor.sketchMode;this.doSetSketchMode(l.rough);O!=Editor.sketchMode&&this.fireEvent(new mxEventObject("sketchModeChanged"))}null!=l.dark&&(O=Editor.darkMode,
-this.doSetDarkMode(l.dark),O!=Editor.darkMode&&this.fireEvent(new mxEventObject("darkModeChanged")));null!=l.border&&(this.embedExportBorder=l.border);null!=l.background&&(this.embedExportBackground=l.background);null!=l.viewport&&(this.embedViewport=l.viewport);this.embedExitPoint=null;if(null!=l.rect){var S=this.embedExportBorder;this.diagramContainer.style.border="2px solid #295fcc";this.diagramContainer.style.top=l.rect.top+"px";this.diagramContainer.style.left=l.rect.left+"px";this.diagramContainer.style.height=
-l.rect.height+"px";this.diagramContainer.style.width=l.rect.width+"px";this.diagramContainer.style.bottom="";this.diagramContainer.style.right="";m=mxUtils.bind(this,function(){var b=this.editor.graph,c=b.maxFitScale;b.maxFitScale=l.maxFitScale;b.fit(2*S);b.maxFitScale=c;b.container.scrollTop-=2*S;b.container.scrollLeft-=2*S;this.fireEvent(new mxEventObject("editInlineStart","data",[l]))})}null!=l.noExitBtn&&null==urlParams.noExitBtn&&(urlParams.noExitBtn=l.noExitBtn);null!=l.title&&null!=this.buttonContainer&&
-(t=document.createElement("span"),mxUtils.write(t,l.title),null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode.removeChild(this.embedFilenameSpan),this.buttonContainer.appendChild(t),this.embedFilenameSpan=t);try{l.libs&&this.sidebar.showEntries(l.libs)}catch(V){}l=null!=l.xmlpng?this.extractGraphModelFromPng(l.xmlpng):null!=l.descriptor?l.descriptor:l.xml}else{if("merge"==l.action){var da=this.getCurrentFile();null!=da&&(t=n(l.xml),null!=t&&""!=t&&da.mergeFile(new LocalFile(this,t),function(){k.postMessage(JSON.stringify({event:"merge",
-message:l}),"*")},function(b){k.postMessage(JSON.stringify({event:"merge",message:l,error:b}),"*")}))}else"remoteInvokeReady"==l.action?this.handleRemoteInvokeReady(k):"remoteInvoke"==l.action?this.handleRemoteInvoke(l,g.origin):"remoteInvokeResponse"==l.action?this.handleRemoteInvokeResponse(l):k.postMessage(JSON.stringify({error:"unknownMessage",data:JSON.stringify(l)}),"*");return}}catch(V){this.handleError(V)}}var pa=mxUtils.bind(this,function(){return"0"!=urlParams.pages||null!=this.pages&&1<
-this.pages.length?this.getFileData(!0):mxUtils.getXml(this.editor.getGraphXml())}),aa=mxUtils.bind(this,function(g,l){d=!0;try{b(g,l,null,p)}catch(ea){this.handleError(ea)}d=!1;null!=urlParams.modified&&this.editor.setStatus("");e=pa();f&&null==c&&(c=mxUtils.bind(this,function(b,c){var f=pa();if(f!=e&&!d){var g=this.createLoadMessage("autosave");g.xml=f;(window.opener||window.parent).postMessage(JSON.stringify(g),"*")}e=f}),this.editor.graph.model.addListener(mxEvent.CHANGE,c),this.editor.graph.addListener("gridSizeChanged",
+0):L()):L();return}if("load"==l.action){p=l.toSketch;f=1==l.autosave;this.hideDialog();null!=l.modified&&null==urlParams.modified&&(urlParams.modified=l.modified);null!=l.saveAndExit&&null==urlParams.saveAndExit&&(urlParams.saveAndExit=l.saveAndExit);null!=l.noSaveBtn&&null==urlParams.noSaveBtn&&(urlParams.noSaveBtn=l.noSaveBtn);if(null!=l.rough){var Q=Editor.sketchMode;this.doSetSketchMode(l.rough);Q!=Editor.sketchMode&&this.fireEvent(new mxEventObject("sketchModeChanged"))}null!=l.dark&&(Q=Editor.darkMode,
+this.doSetDarkMode(l.dark),Q!=Editor.darkMode&&this.fireEvent(new mxEventObject("darkModeChanged")));null!=l.border&&(this.embedExportBorder=l.border);null!=l.background&&(this.embedExportBackground=l.background);null!=l.viewport&&(this.embedViewport=l.viewport);this.embedExitPoint=null;if(null!=l.rect){var T=this.embedExportBorder;this.diagramContainer.style.border="2px solid #295fcc";this.diagramContainer.style.top=l.rect.top+"px";this.diagramContainer.style.left=l.rect.left+"px";this.diagramContainer.style.height=
+l.rect.height+"px";this.diagramContainer.style.width=l.rect.width+"px";this.diagramContainer.style.bottom="";this.diagramContainer.style.right="";m=mxUtils.bind(this,function(){var b=this.editor.graph,c=b.maxFitScale;b.maxFitScale=l.maxFitScale;b.fit(2*T);b.maxFitScale=c;b.container.scrollTop-=2*T;b.container.scrollLeft-=2*T;this.fireEvent(new mxEventObject("editInlineStart","data",[l]))})}null!=l.noExitBtn&&null==urlParams.noExitBtn&&(urlParams.noExitBtn=l.noExitBtn);null!=l.title&&null!=this.buttonContainer&&
+(t=document.createElement("span"),mxUtils.write(t,l.title),null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode.removeChild(this.embedFilenameSpan),this.buttonContainer.appendChild(t),this.embedFilenameSpan=t);try{l.libs&&this.sidebar.showEntries(l.libs)}catch(N){}l=null!=l.xmlpng?this.extractGraphModelFromPng(l.xmlpng):null!=l.descriptor?l.descriptor:l.xml}else{if("merge"==l.action){var da=this.getCurrentFile();null!=da&&(t=n(l.xml),null!=t&&""!=t&&da.mergeFile(new LocalFile(this,t),function(){k.postMessage(JSON.stringify({event:"merge",
+message:l}),"*")},function(b){k.postMessage(JSON.stringify({event:"merge",message:l,error:b}),"*")}))}else"remoteInvokeReady"==l.action?this.handleRemoteInvokeReady(k):"remoteInvoke"==l.action?this.handleRemoteInvoke(l,g.origin):"remoteInvokeResponse"==l.action?this.handleRemoteInvokeResponse(l):k.postMessage(JSON.stringify({error:"unknownMessage",data:JSON.stringify(l)}),"*");return}}catch(N){this.handleError(N)}}var oa=mxUtils.bind(this,function(){return"0"!=urlParams.pages||null!=this.pages&&1<
+this.pages.length?this.getFileData(!0):mxUtils.getXml(this.editor.getGraphXml())}),ea=mxUtils.bind(this,function(g,l){d=!0;try{b(g,l,null,p)}catch(la){this.handleError(la)}d=!1;null!=urlParams.modified&&this.editor.setStatus("");e=oa();f&&null==c&&(c=mxUtils.bind(this,function(b,c){var f=oa();if(f!=e&&!d){var g=this.createLoadMessage("autosave");g.xml=f;(window.opener||window.parent).postMessage(JSON.stringify(g),"*")}e=f}),this.editor.graph.model.addListener(mxEvent.CHANGE,c),this.editor.graph.addListener("gridSizeChanged",
c),this.editor.graph.addListener("shadowVisibleChanged",c),this.addListener("pageFormatChanged",c),this.addListener("pageScaleChanged",c),this.addListener("backgroundColorChanged",c),this.addListener("backgroundImageChanged",c),this.addListener("foldingEnabledChanged",c),this.addListener("mathEnabledChanged",c),this.addListener("gridEnabledChanged",c),this.addListener("guidesEnabledChanged",c),this.addListener("pageViewChanged",c));if("1"==urlParams.returnbounds||"json"==urlParams.proto){var n=this.createLoadMessage("load");
-n.xml=g;k.postMessage(JSON.stringify(n),"*")}null!=m&&m()});null!=l&&"function"===typeof l.substring&&"data:application/vnd.visio;base64,"==l.substring(0,34)?(n="0M8R4KGxGuE"==l.substring(34,45)?"raw.vsd":"raw.vsdx",this.importVisio(this.base64ToBlob(l.substring(l.indexOf(",")+1)),function(b){aa(b,g)},mxUtils.bind(this,function(b){this.handleError(b)}),n)):null!=l&&"function"===typeof l.substring&&!this.isOffline()&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(l,"")?this.parseFileData(l,mxUtils.bind(this,
-function(b){4==b.readyState&&200<=b.status&&299>=b.status&&"<mxGraphModel"==b.responseText.substring(0,13)&&aa(b.responseText,g)}),""):null!=l&&"function"===typeof l.substring&&this.isLucidChartData(l)?this.convertLucidChart(l,mxUtils.bind(this,function(b){aa(b)}),mxUtils.bind(this,function(b){this.handleError(b)})):null==l||"object"!==typeof l||null==l.format||null==l.data&&null==l.url?(l=n(l),aa(l,g)):this.loadDescriptor(l,mxUtils.bind(this,function(b){aa(pa(),g)}),mxUtils.bind(this,function(b){this.handleError(b,
+n.xml=g;k.postMessage(JSON.stringify(n),"*")}null!=m&&m()});null!=l&&"function"===typeof l.substring&&"data:application/vnd.visio;base64,"==l.substring(0,34)?(n="0M8R4KGxGuE"==l.substring(34,45)?"raw.vsd":"raw.vsdx",this.importVisio(this.base64ToBlob(l.substring(l.indexOf(",")+1)),function(b){ea(b,g)},mxUtils.bind(this,function(b){this.handleError(b)}),n)):null!=l&&"function"===typeof l.substring&&!this.isOffline()&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(l,"")?this.parseFileData(l,mxUtils.bind(this,
+function(b){4==b.readyState&&200<=b.status&&299>=b.status&&"<mxGraphModel"==b.responseText.substring(0,13)&&ea(b.responseText,g)}),""):null!=l&&"function"===typeof l.substring&&this.isLucidChartData(l)?this.convertLucidChart(l,mxUtils.bind(this,function(b){ea(b)}),mxUtils.bind(this,function(b){this.handleError(b)})):null==l||"object"!==typeof l||null==l.format||null==l.data&&null==l.url?(l=n(l),ea(l,g)):this.loadDescriptor(l,mxUtils.bind(this,function(b){ea(oa(),g)}),mxUtils.bind(this,function(b){this.handleError(b,
mxResources.get("errorLoadingFile"))}))}}));var k=window.opener||window.parent,g="json"==urlParams.proto?JSON.stringify({event:"init"}):urlParams.ready||"ready";k.postMessage(g,"*");if("json"==urlParams.proto){var n=this.editor.graph.openLink;this.editor.graph.openLink=function(b,c,d){n.apply(this,arguments);k.postMessage(JSON.stringify({event:"openLink",href:b,target:c,allowOpener:d}),"*")}}};EditorUi.prototype.addEmbedButtons=function(){if(null!=this.menubar&&"1"!=urlParams.embedInline){var b=document.createElement("div");
b.style.display="inline-block";b.style.position="absolute";b.style.paddingTop="atlas"==uiTheme||"1"==urlParams.atlas?"2px":"0px";b.style.paddingLeft="8px";b.style.paddingBottom="2px";var c=document.createElement("button");c.className="geBigButton";var d=c;if("1"==urlParams.noSaveBtn){if("0"!=urlParams.saveAndExit){var e="1"==urlParams.publishClose?mxResources.get("publish"):mxResources.get("saveAndExit");mxUtils.write(c,e);c.setAttribute("title",e);mxEvent.addListener(c,"click",mxUtils.bind(this,
function(){this.actions.get("saveAndExit").funct()}));b.appendChild(c)}}else mxUtils.write(c,mxResources.get("save")),c.setAttribute("title",mxResources.get("save")+" ("+Editor.ctrlKey+"+S)"),mxEvent.addListener(c,"click",mxUtils.bind(this,function(){this.actions.get("save").funct()})),b.appendChild(c),"1"==urlParams.saveAndExit&&(c=document.createElement("a"),mxUtils.write(c,mxResources.get("saveAndExit")),c.setAttribute("title",mxResources.get("saveAndExit")),c.className="geBigButton geBigStandardButton",
c.style.marginLeft="6px",mxEvent.addListener(c,"click",mxUtils.bind(this,function(){this.actions.get("saveAndExit").funct()})),b.appendChild(c),d=c);"1"!=urlParams.noExitBtn&&(c=document.createElement("a"),d="1"==urlParams.publishClose?mxResources.get("close"):mxResources.get("exit"),mxUtils.write(c,d),c.setAttribute("title",d),c.className="geBigButton geBigStandardButton",c.style.marginLeft="6px",mxEvent.addListener(c,"click",mxUtils.bind(this,function(){this.actions.get("exit").funct()})),b.appendChild(c),
d=c);d.style.marginRight="20px";this.toolbar.container.appendChild(b);this.toolbar.staticElements.push(b);b.style.right="atlas"==uiTheme||"1"==urlParams.atlas?"42px":"52px"}};EditorUi.prototype.showImportCsvDialog=function(){null==this.importCsvDialog&&(this.importCsvDialog=new TextareaDialog(this,mxResources.get("csv")+":",Editor.defaultCsvValue,mxUtils.bind(this,function(b){this.importCsv(b)}),null,null,620,430,null,!0,!0,mxResources.get("import"),this.isOffline()?null:"https://drawio-app.com/import-from-csv-to-drawio/"));
this.showDialog(this.importCsvDialog.container,640,520,!0,!0,null,null,null,null,!0);this.importCsvDialog.init()};EditorUi.prototype.executeLayoutList=function(b,c){for(var d=this.editor.graph,f=d.getSelectionCells(),e=0;e<b.length;e++){var g=new window[b[e].layout](d);if(null!=b[e].config)for(var k in b[e].config)g[k]=b[e].config[k];this.executeLayout(function(){g.execute(d.getDefaultParent(),0==f.length?null:f)},e==b.length-1,c)}};EditorUi.prototype.importCsv=function(b,c){try{var d=b.split("\n"),
-f=[],e=[],g=[],k={};if(0<d.length){for(var l={},n=this.editor.graph,A=null,z=null,B=null,y=null,C=null,E=null,D="whiteSpace=wrap;html=1;",F=null,G=null,I="",J="auto",H="auto",K=null,P=null,N=40,M=40,Y=100,W=0,L=function(){null!=c?c(ba):(n.setSelectionCells(ba),n.scrollCellToVisible(n.getSelectionCell()))},O=n.getFreeInsertPoint(),S=O.x,da=O.y,O=da,pa=null,aa="auto",G=null,V=[],oa=null,ra=null,ea=0;ea<d.length&&"#"==d[ea].charAt(0);){b=d[ea];for(ea++;ea<d.length&&"\\"==b.charAt(b.length-1)&&"#"==d[ea].charAt(0);)b=
-b.substring(0,b.length-1)+mxUtils.trim(d[ea].substring(1)),ea++;if("#"!=b.charAt(1)){var qa=b.indexOf(":");if(0<qa){var Q=mxUtils.trim(b.substring(1,qa)),T=mxUtils.trim(b.substring(qa+1));"label"==Q?pa=n.sanitizeHtml(T):"labelname"==Q&&0<T.length&&"-"!=T?C=T:"labels"==Q&&0<T.length&&"-"!=T?E=JSON.parse(T):"style"==Q?z=T:"parentstyle"==Q?D=T:"stylename"==Q&&0<T.length&&"-"!=T?y=T:"styles"==Q&&0<T.length&&"-"!=T?B=JSON.parse(T):"vars"==Q&&0<T.length&&"-"!=T?A=JSON.parse(T):"identity"==Q&&0<T.length&&
-"-"!=T?F=T:"parent"==Q&&0<T.length&&"-"!=T?G=T:"namespace"==Q&&0<T.length&&"-"!=T?I=T:"width"==Q?J=T:"height"==Q?H=T:"left"==Q&&0<T.length?K=T:"top"==Q&&0<T.length?P=T:"ignore"==Q?ra=T.split(","):"connect"==Q?V.push(JSON.parse(T)):"link"==Q?oa=T:"padding"==Q?W=parseFloat(T):"edgespacing"==Q?N=parseFloat(T):"nodespacing"==Q?M=parseFloat(T):"levelspacing"==Q?Y=parseFloat(T):"layout"==Q&&(aa=T)}}}if(null==d[ea])throw Error(mxResources.get("invalidOrMissingFile"));for(var Z=this.editor.csvToArray(d[ea]),
-Q=qa=null,T=[],U=0;U<Z.length;U++)F==Z[U]&&(qa=U),G==Z[U]&&(Q=U),T.push(mxUtils.trim(Z[U]).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,""));null==pa&&(pa="%"+T[0]+"%");if(null!=V)for(var ma=0;ma<V.length;ma++)null==l[V[ma].to]&&(l[V[ma].to]={});F=[];for(U=ea+1;U<d.length;U++){var ga=this.editor.csvToArray(d[U]);if(null==ga){var sa=40<d[U].length?d[U].substring(0,40)+"...":d[U];throw Error(sa+" ("+U+"):\n"+mxResources.get("containsValidationErrors"));}0<ga.length&&F.push(ga)}n.model.beginUpdate();
-try{for(U=0;U<F.length;U++){var ga=F[U],X=null,ca=null!=qa?I+ga[qa]:null;null!=ca&&(X=n.model.getCell(ca));var d=null!=X,fa=new mxCell(pa,new mxGeometry(S,O,0,0),z||"whiteSpace=wrap;html=1;");fa.vertex=!0;fa.id=ca;for(var ha=0;ha<ga.length;ha++)n.setAttributeForCell(fa,T[ha],ga[ha]);if(null!=C&&null!=E){var ja=E[fa.getAttribute(C)];null!=ja&&n.labelChanged(fa,ja)}if(null!=y&&null!=B){var ua=B[fa.getAttribute(y)];null!=ua&&(fa.style=ua)}n.setAttributeForCell(fa,"placeholders","1");fa.style=n.replacePlaceholders(fa,
-fa.style,A);d?(0>mxUtils.indexOf(g,X)&&g.push(X),n.fireEvent(new mxEventObject("cellsInserted","cells",[X]))):n.fireEvent(new mxEventObject("cellsInserted","cells",[fa]));X=fa;if(!d)for(ma=0;ma<V.length;ma++)l[V[ma].to][X.getAttribute(V[ma].to)]=X;null!=oa&&"link"!=oa&&(n.setLinkForCell(X,X.getAttribute(oa)),n.setAttributeForCell(X,oa,null));var ia=this.editor.graph.getPreferredSizeForCell(X),G=null!=Q?n.model.getCell(I+ga[Q]):null;if(X.vertex){sa=null!=G?0:S;ea=null!=G?0:da;null!=K&&null!=X.getAttribute(K)&&
-(X.geometry.x=sa+parseFloat(X.getAttribute(K)));null!=P&&null!=X.getAttribute(P)&&(X.geometry.y=ea+parseFloat(X.getAttribute(P)));var na="@"==J.charAt(0)?X.getAttribute(J.substring(1)):null;X.geometry.width=null!=na&&"auto"!=na?parseFloat(X.getAttribute(J.substring(1))):"auto"==J||"auto"==na?ia.width+W:parseFloat(J);var la="@"==H.charAt(0)?X.getAttribute(H.substring(1)):null;X.geometry.height=null!=la&&"auto"!=la?parseFloat(la):"auto"==H||"auto"==la?ia.height+W:parseFloat(H);O+=X.geometry.height+
-M}d?(null==k[ca]&&(k[ca]=[]),k[ca].push(X)):(f.push(X),null!=G?(G.style=n.replacePlaceholders(G,D,A),n.addCell(X,G),e.push(G)):g.push(n.addCell(X)))}for(U=0;U<e.length;U++)na="@"==J.charAt(0)?e[U].getAttribute(J.substring(1)):null,la="@"==H.charAt(0)?e[U].getAttribute(H.substring(1)):null,"auto"!=J&&"auto"!=na||"auto"!=H&&"auto"!=la||n.updateGroupBounds([e[U]],W,!0);for(var ka=g.slice(),ba=g.slice(),ma=0;ma<V.length;ma++)for(var R=V[ma],U=0;U<f.length;U++){var X=f[U],ya=mxUtils.bind(this,function(b,
-c,d){var f=c.getAttribute(d.from);if(null!=f&&""!=f)for(var f=f.split(","),e=0;e<f.length;e++){var k=l[d.to][f[e]];if(null==k){k=new mxCell(f[e],new mxGeometry(S,da,0,0),z||"whiteSpace=wrap;html=1;");k.style=n.replacePlaceholders(c,k.style,A);var m=this.editor.graph.getPreferredSizeForCell(k);k.geometry.width=m.width+W;k.geometry.height=m.height+W;l[d.to][f[e]]=k;k.vertex=!0;k.id=f[e];g.push(n.addCell(k))}m=d.label;null!=d.fromlabel&&(m=(c.getAttribute(d.fromlabel)||"")+(m||""));null!=d.sourcelabel&&
-(m=n.replacePlaceholders(c,d.sourcelabel,A)+(m||""));null!=d.tolabel&&(m=(m||"")+(k.getAttribute(d.tolabel)||""));null!=d.targetlabel&&(m=(m||"")+n.replacePlaceholders(k,d.targetlabel,A));var p="target"==d.placeholders==!d.invert?k:b,p=null!=d.style?n.replacePlaceholders(p,d.style,A):n.createCurrentEdgeStyle(),m=n.insertEdge(null,null,m||"",d.invert?k:b,d.invert?b:k,p);if(null!=d.labels)for(p=0;p<d.labels.length;p++){var q=d.labels[p],t=new mxCell(q.label||p,new mxGeometry(null!=q.x?q.x:0,null!=q.y?
-q.y:0,0,0),"resizable=0;html=1;");t.vertex=!0;t.connectable=!1;t.geometry.relative=!0;null!=q.placeholders&&(t.value=n.replacePlaceholders("target"==q.placeholders==!d.invert?k:b,t.value,A));if(null!=q.dx||null!=q.dy)t.geometry.offset=new mxPoint(null!=q.dx?q.dx:0,null!=q.dy?q.dy:0);m.insert(t)}ba.push(m);mxUtils.remove(d.invert?b:k,ka)}});ya(X,X,R);if(null!=k[X.id])for(ha=0;ha<k[X.id].length;ha++)ya(X,k[X.id][ha],R)}if(null!=ra)for(U=0;U<f.length;U++)for(X=f[U],ha=0;ha<ra.length;ha++)n.setAttributeForCell(X,
-mxUtils.trim(ra[ha]),null);if(0<g.length){var va=new mxParallelEdgeLayout(n);va.spacing=N;va.checkOverlap=!0;var wa=function(){0<va.spacing&&va.execute(n.getDefaultParent());for(var b=0;b<g.length;b++){var c=n.getCellGeometry(g[b]);c.x=Math.round(n.snap(c.x));c.y=Math.round(n.snap(c.y));"auto"==J&&(c.width=Math.round(n.snap(c.width)));"auto"==H&&(c.height=Math.round(n.snap(c.height)))}};if("["==aa.charAt(0)){var xa=L;n.view.validate();this.executeLayoutList(JSON.parse(aa),function(){wa();xa()});L=
-null}else if("circle"==aa){var ta=new mxCircleLayout(n);ta.disableEdgeStyle=!1;ta.resetEdges=!1;var za=ta.isVertexIgnored;ta.isVertexIgnored=function(b){return za.apply(this,arguments)||0>mxUtils.indexOf(g,b)};this.executeLayout(function(){ta.execute(n.getDefaultParent());wa()},!0,L);L=null}else if("horizontaltree"==aa||"verticaltree"==aa||"auto"==aa&&ba.length==2*g.length-1&&1==ka.length){n.view.validate();var Aa=new mxCompactTreeLayout(n,"horizontaltree"==aa);Aa.levelDistance=M;Aa.edgeRouting=!1;
-Aa.resetEdges=!1;this.executeLayout(function(){Aa.execute(n.getDefaultParent(),0<ka.length?ka[0]:null)},!0,L);L=null}else if("horizontalflow"==aa||"verticalflow"==aa||"auto"==aa&&1==ka.length){n.view.validate();var Ba=new mxHierarchicalLayout(n,"horizontalflow"==aa?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);Ba.intraCellSpacing=M;Ba.parallelEdgeSpacing=N;Ba.interRankCellSpacing=Y;Ba.disableEdgeStyle=!1;this.executeLayout(function(){Ba.execute(n.getDefaultParent(),ba);n.moveCells(ba,S,
-da)},!0,L);L=null}else if("organic"==aa||"auto"==aa&&ba.length>g.length){n.view.validate();var Ca=new mxFastOrganicLayout(n);Ca.forceConstant=3*M;Ca.disableEdgeStyle=!1;Ca.resetEdges=!1;var Ea=Ca.isVertexIgnored;Ca.isVertexIgnored=function(b){return Ea.apply(this,arguments)||0>mxUtils.indexOf(g,b)};this.executeLayout(function(){Ca.execute(n.getDefaultParent());wa()},!0,L);L=null}}this.hideDialog()}finally{n.model.endUpdate()}null!=L&&L()}}catch(Da){this.handleError(Da)}};EditorUi.prototype.getSearch=
-function(b){var c="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=b&&0<window.location.search.length){var d="?",f;for(f in urlParams)0>mxUtils.indexOf(b,f)&&null!=urlParams[f]&&(c+=d+f+"="+urlParams[f],d="&")}else c=window.location.search;return c};EditorUi.prototype.getUrl=function(b){b=null!=b?b:window.location.pathname;var c=0<b.indexOf("?")?1:0;if("1"==urlParams.offline)b+=window.location.search;else{var d="tmp libs clibs state fileId code share notitle data url embed client create title splash".split(" "),
-f;for(f in urlParams)0>mxUtils.indexOf(d,f)&&(b=0==c?b+"?":b+"&",null!=urlParams[f]&&(b+=f+"="+urlParams[f],c++))}return b};EditorUi.prototype.showLinkDialog=function(b,c,d,e,g){b=new LinkDialog(this,b,c,d,!0,e,g);this.showDialog(b.container,560,130,!0,!0);b.init()};EditorUi.prototype.getServiceCount=function(b){var c=1;null==this.drive&&"function"!==typeof window.DriveClient||c++;null==this.dropbox&&"function"!==typeof window.DropboxClient||c++;null==this.oneDrive&&"function"!==typeof window.OneDriveClient||
-c++;null!=this.gitHub&&c++;null!=this.gitLab&&c++;null!=this.notion&&c++;b&&isLocalStorage&&"1"==urlParams.browser&&c++;return c};EditorUi.prototype.updateUi=function(){this.updateButtonContainer();this.updateActionStates();var b=this.getCurrentFile(),c=null!=b||"1"==urlParams.embed&&this.editor.graph.isEnabled();this.menus.get("viewPanels").setEnabled(c);this.menus.get("viewZoom").setEnabled(c);var d=("1"!=urlParams.embed||!this.editor.graph.isEnabled())&&(null==b||b.isRestricted());this.actions.get("makeCopy").setEnabled(!d);
-this.actions.get("print").setEnabled(!d);this.menus.get("exportAs").setEnabled(!d);this.menus.get("embed").setEnabled(!d);d="1"!=urlParams.embed||this.editor.graph.isEnabled();this.menus.get("extras").setEnabled(d);Editor.enableCustomLibraries&&(this.menus.get("openLibraryFrom").setEnabled(d),this.menus.get("newLibrary").setEnabled(d));b="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=b&&b.isEditable();this.actions.get("image").setEnabled(c);this.actions.get("zoomIn").setEnabled(c);this.actions.get("zoomOut").setEnabled(c);
-this.actions.get("resetView").setEnabled(c);this.actions.get("undo").setEnabled(this.canUndo()&&b);this.actions.get("redo").setEnabled(this.canRedo()&&b);this.menus.get("edit").setEnabled(c);this.menus.get("view").setEnabled(c);this.menus.get("importFrom").setEnabled(b);this.menus.get("arrange").setEnabled(b);null!=this.toolbar&&(null!=this.toolbar.edgeShapeMenu&&this.toolbar.edgeShapeMenu.setEnabled(b),null!=this.toolbar.edgeStyleMenu&&this.toolbar.edgeStyleMenu.setEnabled(b));this.updateUserElement()};
-EditorUi.prototype.updateButtonContainer=function(){};EditorUi.prototype.updateUserElement=function(){};EditorUi.prototype.scheduleSanityCheck=function(){};EditorUi.prototype.stopSanityCheck=function(){};EditorUi.prototype.isDiagramActive=function(){var b=this.getCurrentFile();return null!=b&&b.isEditable()||"1"==urlParams.embed&&this.editor.graph.isEnabled()};var k=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){k.apply(this,arguments);var b=this.editor.graph,
-c=this.getCurrentFile(),d=this.getSelectionState(),e=this.isDiagramActive();this.actions.get("pageSetup").setEnabled(e);this.actions.get("autosave").setEnabled(null!=c&&c.isEditable()&&c.isAutosaveOptional());this.actions.get("guides").setEnabled(e);this.actions.get("editData").setEnabled(b.isEnabled());this.actions.get("shadowVisible").setEnabled(e);this.actions.get("connectionArrows").setEnabled(e);this.actions.get("connectionPoints").setEnabled(e);this.actions.get("copyStyle").setEnabled(e&&!b.isSelectionEmpty());
-this.actions.get("pasteStyle").setEnabled(e&&0<d.cells.length);this.actions.get("editGeometry").setEnabled(0<d.vertices.length);this.actions.get("createShape").setEnabled(e);this.actions.get("createRevision").setEnabled(e);this.actions.get("moveToFolder").setEnabled(null!=c);this.actions.get("makeCopy").setEnabled(null!=c&&!c.isRestricted());this.actions.get("editDiagram").setEnabled(e&&(null==c||!c.isRestricted()));this.actions.get("publishLink").setEnabled(null!=c&&!c.isRestricted());this.actions.get("tags").setEnabled("hidden"!=
-this.diagramContainer.style.visibility);this.actions.get("layers").setEnabled("hidden"!=this.diagramContainer.style.visibility);this.actions.get("outline").setEnabled("hidden"!=this.diagramContainer.style.visibility);this.actions.get("rename").setEnabled(null!=c&&c.isRenamable()||"1"==urlParams.embed);this.actions.get("close").setEnabled(null!=c);this.menus.get("publish").setEnabled(null!=c&&!c.isRestricted());c=this.actions.get("findReplace");c.setEnabled("hidden"!=this.diagramContainer.style.visibility);
-c.label=mxResources.get("find")+(b.isEnabled()?"/"+mxResources.get("replace"):"")+"...";b=b.view.getState(b.getSelectionCell());this.actions.get("editShape").setEnabled(e&&null!=b&&null!=b.shape&&null!=b.shape.stencil)};var n=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);n.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=
-!1,ExportDialog.exportFile=function(b,c,d,e,g,k,n,u){var f=b.editor.graph;if("xml"==d)b.hideDialog(),b.saveData(c,"xml",mxUtils.getXml(b.editor.getGraphXml()),"text/xml");else if("svg"==d)b.hideDialog(),b.saveData(c,"svg",mxUtils.getXml(f.getSvg(e,g,k)),"image/svg+xml");else{var l=b.getFileData(!0,null,null,null,null,!0),m=f.getGraphBounds(),p=Math.floor(m.width*g/f.view.scale),q=Math.floor(m.height*g/f.view.scale);if(l.length<=MAX_REQUEST_SIZE&&p*q<MAX_AREA)if(b.hideDialog(),"png"!=d&&"jpg"!=d&&
-"jpeg"!=d||!b.isExportToCanvas()){var t={globalVars:f.getExportVariables()};u&&(t.grid={size:f.gridSize,steps:f.view.gridSteps,color:f.view.gridColor});b.saveRequest(c,d,function(b,c){return new mxXmlRequest(EXPORT_URL,"format="+d+"&base64="+(c||"0")+(null!=b?"&filename="+encodeURIComponent(b):"")+"&extras="+encodeURIComponent(JSON.stringify(t))+(0<n?"&dpi="+n:"")+"&bg="+(null!=e?e:"none")+"&w="+p+"&h="+q+"&border="+k+"&xml="+encodeURIComponent(l))})}else"png"==d?b.exportImage(g,null==e||"none"==
-e,!0,!1,!1,k,!0,!1,null,u,n):b.exportImage(g,!1,!0,!1,!1,k,!0,!1,"jpeg",u);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);var b=this.editor.graph,c="";if(null!=this.pages)for(var d=0;d<this.pages.length;d++){var e=b;this.currentPage!=this.pages[d]&&(e=this.createTemporaryGraph(b.getStylesheet()),this.updatePageRoot(this.pages[d]),e.model.setRoot(this.pages[d].root));c+=this.pages[d].getName()+" "+e.getIndexableText()+
-" "}else c=b.getIndexableText();this.editor.graph.setEnabled(!0);return c};EditorUi.prototype.showRemotelyStoredLibrary=function(b){var c={},d=document.createElement("div");d.style.whiteSpace="nowrap";var e=document.createElement("h3");mxUtils.write(e,mxUtils.htmlEntities(b));e.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";d.appendChild(e);var f=document.createElement("div");f.style.cssText="border:1px solid lightGray;overflow: auto;height:300px";f.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+
+f=[],e=[],g=[],k={};if(0<d.length){for(var l={},n=this.editor.graph,A=null,z=null,B=null,y=null,C=null,G=null,D=null,E="whiteSpace=wrap;html=1;",F=null,J=null,K="",H="auto",I="auto",S=null,P=null,M=40,W=40,X=100,L=0,Q=function(){null!=c?c(R):(n.setSelectionCells(R),n.scrollCellToVisible(n.getSelectionCell()))},T=n.getFreeInsertPoint(),da=T.x,oa=T.y,T=oa,ea=null,N="auto",J=null,ha=[],sa=null,la=null,ka=0;ka<d.length&&"#"==d[ka].charAt(0);){b=d[ka];for(ka++;ka<d.length&&"\\"==b.charAt(b.length-1)&&
+"#"==d[ka].charAt(0);)b=b.substring(0,b.length-1)+mxUtils.trim(d[ka].substring(1)),ka++;if("#"!=b.charAt(1)){var V=b.indexOf(":");if(0<V){var Z=mxUtils.trim(b.substring(1,V)),O=mxUtils.trim(b.substring(V+1));"label"==Z?ea=n.sanitizeHtml(O):"labelname"==Z&&0<O.length&&"-"!=O?C=O:"labels"==Z&&0<O.length&&"-"!=O?D=JSON.parse(O):"style"==Z?z=O:"parentstyle"==Z?E=O:"unknownStyle"==Z&&"-"!=O?G=O:"stylename"==Z&&0<O.length&&"-"!=O?y=O:"styles"==Z&&0<O.length&&"-"!=O?B=JSON.parse(O):"vars"==Z&&0<O.length&&
+"-"!=O?A=JSON.parse(O):"identity"==Z&&0<O.length&&"-"!=O?F=O:"parent"==Z&&0<O.length&&"-"!=O?J=O:"namespace"==Z&&0<O.length&&"-"!=O?K=O:"width"==Z?H=O:"height"==Z?I=O:"left"==Z&&0<O.length?S=O:"top"==Z&&0<O.length?P=O:"ignore"==Z?la=O.split(","):"connect"==Z?ha.push(JSON.parse(O)):"link"==Z?sa=O:"padding"==Z?L=parseFloat(O):"edgespacing"==Z?M=parseFloat(O):"nodespacing"==Z?W=parseFloat(O):"levelspacing"==Z?X=parseFloat(O):"layout"==Z&&(N=O)}}}if(null==d[ka])throw Error(mxResources.get("invalidOrMissingFile"));
+for(var fa=this.editor.csvToArray(d[ka]),Z=V=null,O=[],Y=0;Y<fa.length;Y++)F==fa[Y]&&(V=Y),J==fa[Y]&&(Z=Y),O.push(mxUtils.trim(fa[Y]).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,""));null==ea&&(ea="%"+O[0]+"%");if(null!=ha)for(var ca=0;ca<ha.length;ca++)null==l[ha[ca].to]&&(l[ha[ca].to]={});F=[];for(Y=ka+1;Y<d.length;Y++){var pa=this.editor.csvToArray(d[Y]);if(null==pa){var ra=40<d[Y].length?d[Y].substring(0,40)+"...":d[Y];throw Error(ra+" ("+Y+"):\n"+mxResources.get("containsValidationErrors"));
+}0<pa.length&&F.push(pa)}n.model.beginUpdate();try{for(Y=0;Y<F.length;Y++){var pa=F[Y],U=null,na=null!=V?K+pa[V]:null;null!=na&&(U=n.model.getCell(na));var d=null!=U,ga=new mxCell(ea,new mxGeometry(da,T,0,0),z||"whiteSpace=wrap;html=1;");ga.vertex=!0;ga.id=na;for(var ba=0;ba<pa.length;ba++)n.setAttributeForCell(ga,O[ba],pa[ba]);if(null!=C&&null!=D){var ta=D[ga.getAttribute(C)];null!=ta&&n.labelChanged(ga,ta)}if(null!=y&&null!=B){var ja=B[ga.getAttribute(y)];null!=ja&&(ga.style=ja)}n.setAttributeForCell(ga,
+"placeholders","1");ga.style=n.replacePlaceholders(ga,ga.style,A);d?(0>mxUtils.indexOf(g,U)&&g.push(U),n.fireEvent(new mxEventObject("cellsInserted","cells",[U]))):n.fireEvent(new mxEventObject("cellsInserted","cells",[ga]));U=ga;if(!d)for(ca=0;ca<ha.length;ca++)l[ha[ca].to][U.getAttribute(ha[ca].to)]=U;null!=sa&&"link"!=sa&&(n.setLinkForCell(U,U.getAttribute(sa)),n.setAttributeForCell(U,sa,null));var qa=this.editor.graph.getPreferredSizeForCell(U),J=null!=Z?n.model.getCell(K+pa[Z]):null;if(U.vertex){ra=
+null!=J?0:da;ka=null!=J?0:oa;null!=S&&null!=U.getAttribute(S)&&(U.geometry.x=ra+parseFloat(U.getAttribute(S)));null!=P&&null!=U.getAttribute(P)&&(U.geometry.y=ka+parseFloat(U.getAttribute(P)));var ma="@"==H.charAt(0)?U.getAttribute(H.substring(1)):null;U.geometry.width=null!=ma&&"auto"!=ma?parseFloat(U.getAttribute(H.substring(1))):"auto"==H||"auto"==ma?qa.width+L:parseFloat(H);var ia="@"==I.charAt(0)?U.getAttribute(I.substring(1)):null;U.geometry.height=null!=ia&&"auto"!=ia?parseFloat(ia):"auto"==
+I||"auto"==ia?qa.height+L:parseFloat(I);T+=U.geometry.height+W}d?(null==k[na]&&(k[na]=[]),k[na].push(U)):(f.push(U),null!=J?(J.style=n.replacePlaceholders(J,E,A),n.addCell(U,J),e.push(J)):g.push(n.addCell(U)))}for(Y=0;Y<e.length;Y++)ma="@"==H.charAt(0)?e[Y].getAttribute(H.substring(1)):null,ia="@"==I.charAt(0)?e[Y].getAttribute(I.substring(1)):null,"auto"!=H&&"auto"!=ma||"auto"!=I&&"auto"!=ia||n.updateGroupBounds([e[Y]],L,!0);for(var aa=g.slice(),R=g.slice(),ca=0;ca<ha.length;ca++)for(var za=ha[ca],
+Y=0;Y<f.length;Y++){var U=f[Y],ya=mxUtils.bind(this,function(b,c,d){var f=c.getAttribute(d.from);if(null!=f&&""!=f)for(var f=f.split(","),e=0;e<f.length;e++){var k=l[d.to][f[e]];if(null==k&&null!=G){k=new mxCell(f[e],new mxGeometry(da,oa,0,0),G);k.style=n.replacePlaceholders(c,k.style,A);var m=this.editor.graph.getPreferredSizeForCell(k);k.geometry.width=m.width+L;k.geometry.height=m.height+L;l[d.to][f[e]]=k;k.vertex=!0;k.id=f[e];g.push(n.addCell(k))}if(null!=k){m=d.label;null!=d.fromlabel&&(m=(c.getAttribute(d.fromlabel)||
+"")+(m||""));null!=d.sourcelabel&&(m=n.replacePlaceholders(c,d.sourcelabel,A)+(m||""));null!=d.tolabel&&(m=(m||"")+(k.getAttribute(d.tolabel)||""));null!=d.targetlabel&&(m=(m||"")+n.replacePlaceholders(k,d.targetlabel,A));var p="target"==d.placeholders==!d.invert?k:b,p=null!=d.style?n.replacePlaceholders(p,d.style,A):n.createCurrentEdgeStyle(),m=n.insertEdge(null,null,m||"",d.invert?k:b,d.invert?b:k,p);if(null!=d.labels)for(p=0;p<d.labels.length;p++){var q=d.labels[p],t=new mxCell(q.label||p,new mxGeometry(null!=
+q.x?q.x:0,null!=q.y?q.y:0,0,0),"resizable=0;html=1;");t.vertex=!0;t.connectable=!1;t.geometry.relative=!0;null!=q.placeholders&&(t.value=n.replacePlaceholders("target"==q.placeholders==!d.invert?k:b,t.value,A));if(null!=q.dx||null!=q.dy)t.geometry.offset=new mxPoint(null!=q.dx?q.dx:0,null!=q.dy?q.dy:0);m.insert(t)}R.push(m);mxUtils.remove(d.invert?b:k,aa)}}});ya(U,U,za);if(null!=k[U.id])for(ba=0;ba<k[U.id].length;ba++)ya(U,k[U.id][ba],za)}if(null!=la)for(Y=0;Y<f.length;Y++)for(U=f[Y],ba=0;ba<la.length;ba++)n.setAttributeForCell(U,
+mxUtils.trim(la[ba]),null);if(0<g.length){var ua=new mxParallelEdgeLayout(n);ua.spacing=M;ua.checkOverlap=!0;var va=function(){0<ua.spacing&&ua.execute(n.getDefaultParent());for(var b=0;b<g.length;b++){var c=n.getCellGeometry(g[b]);c.x=Math.round(n.snap(c.x));c.y=Math.round(n.snap(c.y));"auto"==H&&(c.width=Math.round(n.snap(c.width)));"auto"==I&&(c.height=Math.round(n.snap(c.height)))}};if("["==N.charAt(0)){var xa=Q;n.view.validate();this.executeLayoutList(JSON.parse(N),function(){va();xa()});Q=null}else if("circle"==
+N){var wa=new mxCircleLayout(n);wa.disableEdgeStyle=!1;wa.resetEdges=!1;var Da=wa.isVertexIgnored;wa.isVertexIgnored=function(b){return Da.apply(this,arguments)||0>mxUtils.indexOf(g,b)};this.executeLayout(function(){wa.execute(n.getDefaultParent());va()},!0,Q);Q=null}else if("horizontaltree"==N||"verticaltree"==N||"auto"==N&&R.length==2*g.length-1&&1==aa.length){n.view.validate();var Aa=new mxCompactTreeLayout(n,"horizontaltree"==N);Aa.levelDistance=W;Aa.edgeRouting=!1;Aa.resetEdges=!1;this.executeLayout(function(){Aa.execute(n.getDefaultParent(),
+0<aa.length?aa[0]:null)},!0,Q);Q=null}else if("horizontalflow"==N||"verticalflow"==N||"auto"==N&&1==aa.length){n.view.validate();var Ca=new mxHierarchicalLayout(n,"horizontalflow"==N?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);Ca.intraCellSpacing=W;Ca.parallelEdgeSpacing=M;Ca.interRankCellSpacing=X;Ca.disableEdgeStyle=!1;this.executeLayout(function(){Ca.execute(n.getDefaultParent(),R);n.moveCells(R,da,oa)},!0,Q);Q=null}else if("organic"==N||"auto"==N&&R.length>g.length){n.view.validate();
+var Ba=new mxFastOrganicLayout(n);Ba.forceConstant=3*W;Ba.disableEdgeStyle=!1;Ba.resetEdges=!1;var Ea=Ba.isVertexIgnored;Ba.isVertexIgnored=function(b){return Ea.apply(this,arguments)||0>mxUtils.indexOf(g,b)};this.executeLayout(function(){Ba.execute(n.getDefaultParent());va()},!0,Q);Q=null}}this.hideDialog()}finally{n.model.endUpdate()}null!=Q&&Q()}}catch(Fa){this.handleError(Fa)}};EditorUi.prototype.getSearch=function(b){var c="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=b&&0<window.location.search.length){var d=
+"?",f;for(f in urlParams)0>mxUtils.indexOf(b,f)&&null!=urlParams[f]&&(c+=d+f+"="+urlParams[f],d="&")}else c=window.location.search;return c};EditorUi.prototype.getUrl=function(b){b=null!=b?b:window.location.pathname;var c=0<b.indexOf("?")?1:0;if("1"==urlParams.offline)b+=window.location.search;else{var d="tmp libs clibs state fileId code share notitle data url embed client create title splash".split(" "),f;for(f in urlParams)0>mxUtils.indexOf(d,f)&&(b=0==c?b+"?":b+"&",null!=urlParams[f]&&(b+=f+"="+
+urlParams[f],c++))}return b};EditorUi.prototype.showLinkDialog=function(b,c,d,e,g){b=new LinkDialog(this,b,c,d,!0,e,g);this.showDialog(b.container,560,130,!0,!0);b.init()};EditorUi.prototype.getServiceCount=function(b){var c=1;null==this.drive&&"function"!==typeof window.DriveClient||c++;null==this.dropbox&&"function"!==typeof window.DropboxClient||c++;null==this.oneDrive&&"function"!==typeof window.OneDriveClient||c++;null!=this.gitHub&&c++;null!=this.gitLab&&c++;null!=this.notion&&c++;b&&isLocalStorage&&
+"1"==urlParams.browser&&c++;return c};EditorUi.prototype.updateUi=function(){this.updateButtonContainer();this.updateActionStates();var b=this.getCurrentFile(),c=null!=b||"1"==urlParams.embed&&this.editor.graph.isEnabled();this.menus.get("viewPanels").setEnabled(c);this.menus.get("viewZoom").setEnabled(c);var d=("1"!=urlParams.embed||!this.editor.graph.isEnabled())&&(null==b||b.isRestricted());this.actions.get("makeCopy").setEnabled(!d);this.actions.get("print").setEnabled(!d);this.menus.get("exportAs").setEnabled(!d);
+this.menus.get("embed").setEnabled(!d);d="1"!=urlParams.embed||this.editor.graph.isEnabled();this.menus.get("extras").setEnabled(d);Editor.enableCustomLibraries&&(this.menus.get("openLibraryFrom").setEnabled(d),this.menus.get("newLibrary").setEnabled(d));b="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=b&&b.isEditable();this.actions.get("image").setEnabled(c);this.actions.get("zoomIn").setEnabled(c);this.actions.get("zoomOut").setEnabled(c);this.actions.get("resetView").setEnabled(c);
+this.actions.get("undo").setEnabled(this.canUndo()&&b);this.actions.get("redo").setEnabled(this.canRedo()&&b);this.menus.get("edit").setEnabled(c);this.menus.get("view").setEnabled(c);this.menus.get("importFrom").setEnabled(b);this.menus.get("arrange").setEnabled(b);null!=this.toolbar&&(null!=this.toolbar.edgeShapeMenu&&this.toolbar.edgeShapeMenu.setEnabled(b),null!=this.toolbar.edgeStyleMenu&&this.toolbar.edgeStyleMenu.setEnabled(b));this.updateUserElement()};EditorUi.prototype.updateButtonContainer=
+function(){};EditorUi.prototype.updateUserElement=function(){};EditorUi.prototype.scheduleSanityCheck=function(){};EditorUi.prototype.stopSanityCheck=function(){};EditorUi.prototype.isDiagramActive=function(){var b=this.getCurrentFile();return null!=b&&b.isEditable()||"1"==urlParams.embed&&this.editor.graph.isEnabled()};var k=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){k.apply(this,arguments);var b=this.editor.graph,c=this.getCurrentFile(),d=this.getSelectionState(),
+e=this.isDiagramActive();this.actions.get("pageSetup").setEnabled(e);this.actions.get("autosave").setEnabled(null!=c&&c.isEditable()&&c.isAutosaveOptional());this.actions.get("guides").setEnabled(e);this.actions.get("editData").setEnabled(b.isEnabled());this.actions.get("shadowVisible").setEnabled(e);this.actions.get("connectionArrows").setEnabled(e);this.actions.get("connectionPoints").setEnabled(e);this.actions.get("copyStyle").setEnabled(e&&!b.isSelectionEmpty());this.actions.get("pasteStyle").setEnabled(e&&
+0<d.cells.length);this.actions.get("editGeometry").setEnabled(0<d.vertices.length);this.actions.get("createShape").setEnabled(e);this.actions.get("createRevision").setEnabled(e);this.actions.get("moveToFolder").setEnabled(null!=c);this.actions.get("makeCopy").setEnabled(null!=c&&!c.isRestricted());this.actions.get("editDiagram").setEnabled(e&&(null==c||!c.isRestricted()));this.actions.get("publishLink").setEnabled(null!=c&&!c.isRestricted());this.actions.get("tags").setEnabled("hidden"!=this.diagramContainer.style.visibility);
+this.actions.get("layers").setEnabled("hidden"!=this.diagramContainer.style.visibility);this.actions.get("outline").setEnabled("hidden"!=this.diagramContainer.style.visibility);this.actions.get("rename").setEnabled(null!=c&&c.isRenamable()||"1"==urlParams.embed);this.actions.get("close").setEnabled(null!=c);this.menus.get("publish").setEnabled(null!=c&&!c.isRestricted());c=this.actions.get("findReplace");c.setEnabled("hidden"!=this.diagramContainer.style.visibility);c.label=mxResources.get("find")+
+(b.isEnabled()?"/"+mxResources.get("replace"):"")+"...";b=b.view.getState(b.getSelectionCell());this.actions.get("editShape").setEnabled(e&&null!=b&&null!=b.shape&&null!=b.shape.stencil)};var n=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);n.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=
+function(b,c,d,e,g,k,n,u){var f=b.editor.graph;if("xml"==d)b.hideDialog(),b.saveData(c,"xml",mxUtils.getXml(b.editor.getGraphXml()),"text/xml");else if("svg"==d)b.hideDialog(),b.saveData(c,"svg",mxUtils.getXml(f.getSvg(e,g,k)),"image/svg+xml");else{var l=b.getFileData(!0,null,null,null,null,!0),m=f.getGraphBounds(),p=Math.floor(m.width*g/f.view.scale),q=Math.floor(m.height*g/f.view.scale);if(l.length<=MAX_REQUEST_SIZE&&p*q<MAX_AREA)if(b.hideDialog(),"png"!=d&&"jpg"!=d&&"jpeg"!=d||!b.isExportToCanvas()){var t=
+{globalVars:f.getExportVariables()};u&&(t.grid={size:f.gridSize,steps:f.view.gridSteps,color:f.view.gridColor});b.saveRequest(c,d,function(b,c){return new mxXmlRequest(EXPORT_URL,"format="+d+"&base64="+(c||"0")+(null!=b?"&filename="+encodeURIComponent(b):"")+"&extras="+encodeURIComponent(JSON.stringify(t))+(0<n?"&dpi="+n:"")+"&bg="+(null!=e?e:"none")+"&w="+p+"&h="+q+"&border="+k+"&xml="+encodeURIComponent(l))})}else"png"==d?b.exportImage(g,null==e||"none"==e,!0,!1,!1,k,!0,!1,null,u,n):b.exportImage(g,
+!1,!0,!1,!1,k,!0,!1,"jpeg",u);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);var b=this.editor.graph,c="";if(null!=this.pages)for(var d=0;d<this.pages.length;d++){var e=b;this.currentPage!=this.pages[d]&&(e=this.createTemporaryGraph(b.getStylesheet()),this.updatePageRoot(this.pages[d]),e.model.setRoot(this.pages[d].root));c+=this.pages[d].getName()+" "+e.getIndexableText()+" "}else c=b.getIndexableText();
+this.editor.graph.setEnabled(!0);return c};EditorUi.prototype.showRemotelyStoredLibrary=function(b){var c={},d=document.createElement("div");d.style.whiteSpace="nowrap";var e=document.createElement("h3");mxUtils.write(e,mxUtils.htmlEntities(b));e.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";d.appendChild(e);var f=document.createElement("div");f.style.cssText="border:1px solid lightGray;overflow: auto;height:300px";f.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+
IMAGE_PATH+'/spin.gif"></div>';var g={};try{var k=mxSettings.getCustomLibraries();for(b=0;b<k.length;b++){var n=k[b];if("R"==n.substring(0,1)){var x=JSON.parse(decodeURIComponent(n.substring(1)));g[x[0]]={id:x[0],title:x[1],downloadUrl:x[2]}}}}catch(A){}this.remoteInvoke("getCustomLibraries",null,null,function(b){f.innerHTML="";if(0==b.length)f.innerHTML='<div style="text-align:center;padding-top:20px;color:gray;">'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+"</div>";else for(var d=0;d<
b.length;d++){var e=b[d];g[e.id]&&(c[e.id]=e);var k=this.addCheckbox(f,e.title,g[e.id]);(function(b,d){mxEvent.addListener(d,"change",function(){this.checked?c[b.id]=b:delete c[b.id]})})(e,k)}},mxUtils.bind(this,function(b){f.innerHTML="";var c=document.createElement("div");c.style.padding="8px";c.style.textAlign="center";mxUtils.write(c,mxResources.get("error")+": ");mxUtils.write(c,null!=b&&null!=b.message?b.message:mxResources.get("unknownError"));f.appendChild(c)}));d.appendChild(f);d=new CustomDialog(this,
d,mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"));var b=0,d;for(d in c)null==g[d]&&(b++,mxUtils.bind(this,function(c){this.remoteInvoke("getFileContent",[c.downloadUrl],null,mxUtils.bind(this,function(d){b--;0==b&&this.spinner.stop();try{this.loadLibrary(new RemoteLibrary(this,d,c))}catch(C){this.handleError(C,mxResources.get("errorLoadingFile"))}}),mxUtils.bind(this,function(){b--;0==b&&this.spinner.stop();this.handleError(null,mxResources.get("errorLoadingFile"))}))})(c[d]));
@@ -11177,8 +11177,8 @@ this.remoteInvokableFns[e];if(null!=f&&"function"===typeof this[e]){if(f.allowed
e+" is not found.")}catch(A){d(null,"Invalid Call: An error occurred, "+A.message)}};EditorUi.prototype.openDatabase=function(b,c){if(null==this.database){var d=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB;if(null!=d)try{var e=d.open("database",2);e.onupgradeneeded=function(b){try{var d=e.result;1>b.oldVersion&&d.createObjectStore("objects",{keyPath:"key"});2>b.oldVersion&&(d.createObjectStore("files",{keyPath:"title"}),d.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=
isLocalStorage)}catch(v){null!=c&&c(v)}};e.onsuccess=mxUtils.bind(this,function(c){var d=e.result;this.database=d;EditorUi.migrateStorageFiles&&(StorageFile.migrate(d),EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(b){if(!b||"1"==urlParams.forceMigration){var c=document.createElement("iframe");c.style.display="none";c.setAttribute("src","https://www.draw.io?embed=1&proto=json&forceMigration="+
urlParams.forceMigration);document.body.appendChild(c);var d=!0,e=!1,f,g=0,k=mxUtils.bind(this,function(){e=!0;this.setDatabaseItem(".drawioMigrated3",!0);c.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),l=mxUtils.bind(this,function(){g++;m()}),m=mxUtils.bind(this,function(){try{if(g>=f.length)k();else{var b=f[g];StorageFile.getFileContent(this,b,mxUtils.bind(this,function(d){null==d||".scratchpad"==b&&d==this.emptyLibraryXml?c.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",
-funtionName:"getLocalStorageFile",functionArgs:[b]}),"*"):l()}),l)}}catch(G){console.log(G)}}),n=mxUtils.bind(this,function(b){try{this.setDatabaseItem(null,[{title:b.title,size:b.data.length,lastModified:Date.now(),type:b.isLib?"L":"F"},{title:b.title,data:b.data}],l,l,["filesInfo","files"])}catch(G){console.log(G)}});b=mxUtils.bind(this,function(b){try{if(b.source==c.contentWindow){var g={};try{g=JSON.parse(b.data)}catch(I){}"init"==g.event?(c.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),
-"*"),c.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFileNames"}),"*")):"remoteInvokeResponse"!=g.event||e||(d?null!=g.resp&&0<g.resp.length&&null!=g.resp[0]?(f=g.resp[0],d=!1,m()):k():null!=g.resp&&0<g.resp.length&&null!=g.resp[0]?n(g.resp[0]):l())}}catch(I){console.log(I)}});window.addEventListener("message",b)}})));b(d);d.onversionchange=function(){d.close()}});e.onerror=c;e.onblocked=function(){}}catch(q){null!=c&&c(q)}else null!=c&&c()}else b(this.database)};
+funtionName:"getLocalStorageFile",functionArgs:[b]}),"*"):l()}),l)}}catch(F){console.log(F)}}),n=mxUtils.bind(this,function(b){try{this.setDatabaseItem(null,[{title:b.title,size:b.data.length,lastModified:Date.now(),type:b.isLib?"L":"F"},{title:b.title,data:b.data}],l,l,["filesInfo","files"])}catch(F){console.log(F)}});b=mxUtils.bind(this,function(b){try{if(b.source==c.contentWindow){var g={};try{g=JSON.parse(b.data)}catch(J){}"init"==g.event?(c.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),
+"*"),c.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFileNames"}),"*")):"remoteInvokeResponse"!=g.event||e||(d?null!=g.resp&&0<g.resp.length&&null!=g.resp[0]?(f=g.resp[0],d=!1,m()):k():null!=g.resp&&0<g.resp.length&&null!=g.resp[0]?n(g.resp[0]):l())}}catch(J){console.log(J)}});window.addEventListener("message",b)}})));b(d);d.onversionchange=function(){d.close()}});e.onerror=c;e.onblocked=function(){}}catch(q){null!=c&&c(q)}else null!=c&&c()}else b(this.database)};
EditorUi.prototype.setDatabaseItem=function(b,c,d,e,g){this.openDatabase(mxUtils.bind(this,function(f){try{g=g||"objects";Array.isArray(g)||(g=[g],b=[b],c=[c]);var k=f.transaction(g,"readwrite");k.oncomplete=d;k.onerror=e;for(f=0;f<g.length;f++)k.objectStore(g[f]).put(null!=b&&null!=b[f]?{key:b[f],data:c[f]}:c[f])}catch(u){null!=e&&e(u)}}),e)};EditorUi.prototype.removeDatabaseItem=function(b,c,d,e){this.openDatabase(mxUtils.bind(this,function(f){e=e||"objects";Array.isArray(e)||(e=[e],b=[b]);f=f.transaction(e,
"readwrite");f.oncomplete=c;f.onerror=d;for(var g=0;g<e.length;g++)f.objectStore(e[g])["delete"](b[g])}),d)};EditorUi.prototype.getDatabaseItem=function(b,c,d,e){this.openDatabase(mxUtils.bind(this,function(f){try{e=e||"objects";var g=f.transaction([e],"readonly").objectStore(e).get(b);g.onsuccess=function(){c(g.result)};g.onerror=d}catch(v){null!=d&&d(v)}}),d)};EditorUi.prototype.getDatabaseItems=function(b,c,d){this.openDatabase(mxUtils.bind(this,function(e){try{d=d||"objects";var f=e.transaction([d],
"readonly").objectStore(d).openCursor(IDBKeyRange.lowerBound(0)),g=[];f.onsuccess=function(c){null==c.target.result?b(g):(g.push(c.target.result.value),c.target.result["continue"]())};f.onerror=c}catch(v){null!=c&&c(v)}}),c)};EditorUi.prototype.getDatabaseItemKeys=function(b,c,d){this.openDatabase(mxUtils.bind(this,function(e){try{d=d||"objects";var f=e.transaction([d],"readonly").objectStore(d).getAllKeys();f.onsuccess=function(){b(f.result)};f.onerror=c}catch(t){null!=c&&c(t)}}),c)};EditorUi.prototype.commentsSupported=
@@ -11186,7 +11186,7 @@ function(){var b=this.getCurrentFile();return null!=b?b.commentsSupported():!1};
null!=e?e.addComment(b,c,d):c(Date.now())};EditorUi.prototype.canReplyToReplies=function(){var b=this.getCurrentFile();return null!=b?b.canReplyToReplies():!0};EditorUi.prototype.canComment=function(){var b=this.getCurrentFile();return null!=b?b.canComment():!0};EditorUi.prototype.newComment=function(b,c){var d=this.getCurrentFile();return null!=d?d.newComment(b,c):new DrawioComment(this,null,b,Date.now(),Date.now(),!1,c)};EditorUi.prototype.isRevisionHistorySupported=function(){var b=this.getCurrentFile();
return null!=b&&b.isRevisionHistorySupported()};EditorUi.prototype.getRevisions=function(b,c){var d=this.getCurrentFile();null!=d&&d.getRevisions?d.getRevisions(b,c):c({message:mxResources.get("unknownError")})};EditorUi.prototype.isRevisionHistoryEnabled=function(){var b=this.getCurrentFile();return null!=b&&(b.constructor==DriveFile&&b.isEditable()||b.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.addRemoteServiceSecurityCheck=function(b){b.setRequestHeader("Content-Language",
"da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(b,c,d,e,g,k,n,u){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(b,c,d,e,g,k,n,u)};EditorUi.prototype.loadFonts=function(b){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(b)};EditorUi.prototype.createSvgDataUri=function(b){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(b)};EditorUi.prototype.embedCssFonts=function(b,c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");
-return this.editor.embedCssFonts(b,c)};EditorUi.prototype.embedExtFonts=function(b){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(b)};EditorUi.prototype.exportToCanvas=function(b,c,d,e,g,k,n,u,x,A,z,B,y,C,E,D){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(b,c,d,e,g,k,n,u,x,A,z,B,y,C,E,D)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");
+return this.editor.embedCssFonts(b,c)};EditorUi.prototype.embedExtFonts=function(b){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(b)};EditorUi.prototype.exportToCanvas=function(b,c,d,e,g,k,n,u,x,A,z,B,y,C,G,D){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(b,c,d,e,g,k,n,u,x,A,z,B,y,C,G,D)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");
return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(b,c,d,e){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");return this.editor.convertImages(b,c,d,e)};EditorUi.prototype.convertImageToDataUri=function(b,c){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(b,c)};EditorUi.prototype.base64Encode=function(b){EditorUi.logEvent("SHOULD NOT BE CALLED: base64Encode");return Editor.base64Encode(b)};EditorUi.prototype.updateCRC=
function(b,c,d,e){EditorUi.logEvent("SHOULD NOT BE CALLED: updateCRC");return Editor.updateCRC(b,c,d,e)};EditorUi.prototype.crc32=function(b){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");return Editor.crc32(b)};EditorUi.prototype.writeGraphModelToPng=function(b,c,d,e,g){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");return Editor.writeGraphModelToPng(b,c,d,e,g)};EditorUi.prototype.getLocalStorageFileNames=function(){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=
urlParams.forceMigration)return null;for(var b=[],c=0;c<localStorage.length;c++){var d=localStorage.key(c),e=localStorage.getItem(d);if(0<d.length&&(".scratchpad"==d||"."!=d.charAt(0))&&0<e.length){var g="<mxfile "===e.substring(0,8)||"<?xml"===e.substring(0,5)||"\x3c!--[if IE]>"===e.substring(0,12),e="<mxlibrary>"===e.substring(0,11);(g||e)&&b.push(d)}}return b};EditorUi.prototype.getLocalStorageFile=function(b){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;
@@ -11195,24 +11195,24 @@ var CommentsWindow=function(b,e,d,c,g,k){function n(){for(var b=B.getElementsByT
"geCommentEditTxtArea";l.style.minHeight=g.offsetHeight+"px";l.value=b.content;c.insertBefore(l,g);var m=document.createElement("div");m.className="geCommentEditBtns";var p=mxUtils.button(mxResources.get("cancel"),function(){e?(c.parentNode.removeChild(c),n()):f();x=null});p.className="geCommentEditBtn";m.appendChild(p);var q=mxUtils.button(mxResources.get("save"),function(){g.innerHTML="";b.content=l.value;mxUtils.write(g,b.content);f();d(b);x=null});mxEvent.addListener(l,"keydown",mxUtils.bind(this,
function(b){mxEvent.isConsumed(b)||((mxEvent.isControlDown(b)||mxClient.IS_MAC&&mxEvent.isMetaDown(b))&&13==b.keyCode?(q.click(),mxEvent.consume(b)):27==b.keyCode&&(p.click(),mxEvent.consume(b)))}));q.focus();q.className="geCommentEditBtn gePrimaryBtn";m.appendChild(q);c.insertBefore(m,g);k.style.display="none";g.style.display="none";l.focus()}function l(c,d){d.innerHTML="";var e=new Date(c.modifiedDate),f=b.timeSince(e);null==f&&(f=mxResources.get("lessThanAMinute"));mxUtils.write(d,mxResources.get("timeAgo",
[f],"{1} ago"));d.setAttribute("title",e.toLocaleDateString()+" "+e.toLocaleTimeString())}function m(b){var c=document.createElement("img");c.className="geCommentBusyImg";c.src=IMAGE_PATH+"/spin.gif";b.appendChild(c);b.busyImg=c}function p(b){b.style.border="1px solid red";b.removeChild(b.busyImg)}function q(b){b.style.border="";b.removeChild(b.busyImg)}function t(c,d,e,g,k){function C(b,d,e){var f=document.createElement("li");f.className="geCommentAction";var g=document.createElement("a");g.className=
-"geCommentActionLnk";mxUtils.write(g,b);f.appendChild(g);mxEvent.addListener(g,"click",function(b){d(b,c);b.preventDefault();mxEvent.consume(b)});A.appendChild(f);e&&(f.style.display="none")}function H(){function b(c){d.push(e);if(null!=c.replies)for(var f=0;f<c.replies.length;f++)e=e.nextSibling,b(c.replies[f])}var d=[],e=G;b(c);return{pdiv:e,replies:d}}function F(d,e,k,l,n){function y(){m(C);c.addReply(D,function(b){D.id=b;c.replies.push(D);q(C);k&&k()},function(c){u();p(C);b.handleError(c,null,
-null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},l,n)}function u(){f(D,C,function(b){y()},!0)}var v=H().pdiv,D=b.newComment(d,b.getCurrentUser());D.pCommentId=c.id;null==c.replies&&(c.replies=[]);var C=t(D,c.replies,v,g+1);e?u():y()}if(k||!c.isResolved){y.style.display="none";var G=document.createElement("div");G.className="geCommentContainer";G.setAttribute("data-commentId",c.id);G.style.marginLeft=20*g+5+"px";c.isResolved&&!Editor.isDarkMode()&&(G.style.backgroundColor="ghostWhite");
-var E=document.createElement("div");E.className="geCommentHeader";var K=document.createElement("img");K.className="geCommentUserImg";K.src=c.user.pictureUrl||Editor.userImage;E.appendChild(K);K=document.createElement("div");K.className="geCommentHeaderTxt";E.appendChild(K);var z=document.createElement("div");z.className="geCommentUsername";mxUtils.write(z,c.user.displayName||"");K.appendChild(z);z=document.createElement("div");z.className="geCommentDate";z.setAttribute("data-commentId",c.id);l(c,
-z);K.appendChild(z);G.appendChild(E);E=document.createElement("div");E.className="geCommentTxt";mxUtils.write(E,c.content||"");G.appendChild(E);c.isLocked&&(G.style.opacity="0.5");E=document.createElement("div");E.className="geCommentActions";var A=document.createElement("ul");A.className="geCommentActionsList";E.appendChild(A);v||c.isLocked||0!=g&&!u||C(mxResources.get("reply"),function(){F("",!0)},c.isResolved);K=b.getCurrentUser();null==K||K.id!=c.user.id||v||c.isLocked||(C(mxResources.get("edit"),
-function(){function d(){f(c,G,function(){m(G);c.editComment(c.content,function(){q(G)},function(c){p(G);d();b.handleError(c,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})}d()},c.isResolved),C(mxResources.get("delete"),function(){b.confirm(mxResources.get("areYouSure"),function(){m(G);c.deleteComment(function(b){if(!0===b){b=G.querySelector(".geCommentTxt");b.innerHTML="";mxUtils.write(b,mxResources.get("msgDeleted"));var e=G.querySelectorAll(".geCommentAction");for(b=
-0;b<e.length;b++)e[b].parentNode.removeChild(e[b]);q(G);G.style.opacity="0.5"}else{e=H(c).replies;for(b=0;b<e.length;b++)B.removeChild(e[b]);for(b=0;b<d.length;b++)if(d[b]==c){d.splice(b,1);break}y.style.display=0==B.getElementsByTagName("div").length?"block":"none"}},function(c){p(G);b.handleError(c,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},c.isResolved));v||c.isLocked||0!=g||C(c.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(b){function d(){var d=
-b.target;d.innerHTML="";c.isResolved=!c.isResolved;mxUtils.write(d,c.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var e=c.isResolved?"none":"",f=H(c).replies,g=Editor.isDarkMode()?"transparent":c.isResolved?"ghostWhite":"white",k=0;k<f.length;k++){f[k].style.backgroundColor=g;for(var l=f[k].querySelectorAll(".geCommentAction"),m=0;m<l.length;m++)l[m]!=d.parentNode&&(l[m].style.display=e);D||(f[k].style.display="none")}n()}c.isResolved?F(mxResources.get("reOpened")+": ",!0,
-d,!1,!0):F(mxResources.get("markedAsResolved"),!1,d,!0)});G.appendChild(E);null!=e?B.insertBefore(G,e.nextSibling):B.appendChild(G);for(e=0;null!=c.replies&&e<c.replies.length;e++)E=c.replies[e],E.isResolved=c.isResolved,t(E,c.replies,null,g+1,k);null!=x&&(x.comment.id==c.id?(k=c.content,c.content=x.comment.content,f(c,G,x.saveCallback,x.deleteOnCancel),c.content=k):null==x.comment.id&&x.comment.pCommentId==c.id&&(B.appendChild(x.div),f(x.comment,x.div,x.saveCallback,x.deleteOnCancel)));return G}}
+"geCommentActionLnk";mxUtils.write(g,b);f.appendChild(g);mxEvent.addListener(g,"click",function(b){d(b,c);b.preventDefault();mxEvent.consume(b)});A.appendChild(f);e&&(f.style.display="none")}function H(){function b(c){d.push(e);if(null!=c.replies)for(var f=0;f<c.replies.length;f++)e=e.nextSibling,b(c.replies[f])}var d=[],e=F;b(c);return{pdiv:e,replies:d}}function E(d,e,k,l,n){function y(){m(C);c.addReply(D,function(b){D.id=b;c.replies.push(D);q(C);k&&k()},function(c){u();p(C);b.handleError(c,null,
+null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},l,n)}function u(){f(D,C,function(b){y()},!0)}var v=H().pdiv,D=b.newComment(d,b.getCurrentUser());D.pCommentId=c.id;null==c.replies&&(c.replies=[]);var C=t(D,c.replies,v,g+1);e?u():y()}if(k||!c.isResolved){y.style.display="none";var F=document.createElement("div");F.className="geCommentContainer";F.setAttribute("data-commentId",c.id);F.style.marginLeft=20*g+5+"px";c.isResolved&&!Editor.isDarkMode()&&(F.style.backgroundColor="ghostWhite");
+var I=document.createElement("div");I.className="geCommentHeader";var z=document.createElement("img");z.className="geCommentUserImg";z.src=c.user.pictureUrl||Editor.userImage;I.appendChild(z);z=document.createElement("div");z.className="geCommentHeaderTxt";I.appendChild(z);var G=document.createElement("div");G.className="geCommentUsername";mxUtils.write(G,c.user.displayName||"");z.appendChild(G);G=document.createElement("div");G.className="geCommentDate";G.setAttribute("data-commentId",c.id);l(c,
+G);z.appendChild(G);F.appendChild(I);I=document.createElement("div");I.className="geCommentTxt";mxUtils.write(I,c.content||"");F.appendChild(I);c.isLocked&&(F.style.opacity="0.5");I=document.createElement("div");I.className="geCommentActions";var A=document.createElement("ul");A.className="geCommentActionsList";I.appendChild(A);v||c.isLocked||0!=g&&!u||C(mxResources.get("reply"),function(){E("",!0)},c.isResolved);z=b.getCurrentUser();null==z||z.id!=c.user.id||v||c.isLocked||(C(mxResources.get("edit"),
+function(){function d(){f(c,F,function(){m(F);c.editComment(c.content,function(){q(F)},function(c){p(F);d();b.handleError(c,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})}d()},c.isResolved),C(mxResources.get("delete"),function(){b.confirm(mxResources.get("areYouSure"),function(){m(F);c.deleteComment(function(b){if(!0===b){b=F.querySelector(".geCommentTxt");b.innerHTML="";mxUtils.write(b,mxResources.get("msgDeleted"));var e=F.querySelectorAll(".geCommentAction");for(b=
+0;b<e.length;b++)e[b].parentNode.removeChild(e[b]);q(F);F.style.opacity="0.5"}else{e=H(c).replies;for(b=0;b<e.length;b++)B.removeChild(e[b]);for(b=0;b<d.length;b++)if(d[b]==c){d.splice(b,1);break}y.style.display=0==B.getElementsByTagName("div").length?"block":"none"}},function(c){p(F);b.handleError(c,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},c.isResolved));v||c.isLocked||0!=g||C(c.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(b){function d(){var d=
+b.target;d.innerHTML="";c.isResolved=!c.isResolved;mxUtils.write(d,c.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var e=c.isResolved?"none":"",f=H(c).replies,g=Editor.isDarkMode()?"transparent":c.isResolved?"ghostWhite":"white",k=0;k<f.length;k++){f[k].style.backgroundColor=g;for(var l=f[k].querySelectorAll(".geCommentAction"),m=0;m<l.length;m++)l[m]!=d.parentNode&&(l[m].style.display=e);D||(f[k].style.display="none")}n()}c.isResolved?E(mxResources.get("reOpened")+": ",!0,
+d,!1,!0):E(mxResources.get("markedAsResolved"),!1,d,!0)});F.appendChild(I);null!=e?B.insertBefore(F,e.nextSibling):B.appendChild(F);for(e=0;null!=c.replies&&e<c.replies.length;e++)I=c.replies[e],I.isResolved=c.isResolved,t(I,c.replies,null,g+1,k);null!=x&&(x.comment.id==c.id?(k=c.content,c.content=x.comment.content,f(c,F,x.saveCallback,x.deleteOnCancel),c.content=k):null==x.comment.id&&x.comment.pCommentId==c.id&&(B.appendChild(x.div),f(x.comment,x.div,x.saveCallback,x.deleteOnCancel)));return F}}
var v=!b.canComment(),u=b.canReplyToReplies(),x=null,A=document.createElement("div");A.className="geCommentsWin";A.style.background=Editor.isDarkMode()?Dialog.backdropColor:"whiteSmoke";var z=EditorUi.compactUi?"26px":"30px",B=document.createElement("div");B.className="geCommentsList";B.style.backgroundColor=Editor.isDarkMode()?Dialog.backdropColor:"whiteSmoke";B.style.bottom=parseInt(z)+7+"px";A.appendChild(B);var y=document.createElement("span");y.style.cssText="display:none;padding-top:10px;text-align:center;";
-mxUtils.write(y,mxResources.get("noCommentsFound"));var C=document.createElement("div");C.className="geToolbarContainer geCommentsToolbar";C.style.height=z;C.style.padding=EditorUi.compactUi?"4px 0px 3px 0px":"1px";C.style.backgroundColor=Editor.isDarkMode()?Dialog.backdropColor:"whiteSmoke";z=document.createElement("a");z.className="geButton";if(!v){var E=z.cloneNode();E.innerHTML='<div class="geSprite geSprite-plus" style="display:inline-block;"></div>';E.setAttribute("title",mxResources.get("create")+
-"...");mxEvent.addListener(E,"click",function(c){function d(){f(e,g,function(c){m(g);b.addComment(c,function(b){c.id=b;F.push(c);q(g)},function(c){p(g);d();b.handleError(c,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})},!0)}var e=b.newComment("",b.getCurrentUser()),g=t(e,F,null,0);d();c.preventDefault();mxEvent.consume(c)});C.appendChild(E)}E=z.cloneNode();E.innerHTML='<img src="'+IMAGE_PATH+'/check.png" style="width: 16px; padding: 2px;">';E.setAttribute("title",mxResources.get("showResolved"));
-var D=!1;Editor.isDarkMode()&&(E.style.filter="invert(100%)");mxEvent.addListener(E,"click",function(b){this.className=(D=!D)?"geButton geCheckedBtn":"geButton";G();b.preventDefault();mxEvent.consume(b)});C.appendChild(E);b.commentsRefreshNeeded()&&(E=z.cloneNode(),E.innerHTML='<img src="'+IMAGE_PATH+'/update16.png" style="width: 16px; padding: 2px;">',E.setAttribute("title",mxResources.get("refresh")),Editor.isDarkMode()&&(E.style.filter="invert(100%)"),mxEvent.addListener(E,"click",function(b){G();
-b.preventDefault();mxEvent.consume(b)}),C.appendChild(E));b.commentsSaveNeeded()&&(z=z.cloneNode(),z.innerHTML='<img src="'+IMAGE_PATH+'/save.png" style="width: 20px; padding: 2px;">',z.setAttribute("title",mxResources.get("save")),Editor.isDarkMode()&&(z.style.filter="invert(100%)"),mxEvent.addListener(z,"click",function(b){k();b.preventDefault();mxEvent.consume(b)}),C.appendChild(z));A.appendChild(C);var F=[],G=mxUtils.bind(this,function(){this.hasError=!1;if(null!=x)try{x.div=x.div.cloneNode(!0);
-var c=x.div.querySelector(".geCommentEditTxtArea"),d=x.div.querySelector(".geCommentEditBtns");x.comment.content=c.value;c.parentNode.removeChild(c);d.parentNode.removeChild(d)}catch(K){b.handleError(K)}B.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH+'/spin.gif" valign="middle"> '+mxUtils.htmlEntities(mxResources.get("loading"))+"...</div>";u=b.canReplyToReplies();b.commentsSupported()?b.getComments(function(b){function c(b){if(null!=b){b.sort(function(b,c){return new Date(b.modifiedDate)-
-new Date(c.modifiedDate)});for(var d=0;d<b.length;d++)c(b[d].replies)}}b.sort(function(b,c){return new Date(b.modifiedDate)-new Date(c.modifiedDate)});B.innerHTML="";B.appendChild(y);y.style.display="block";F=b;for(b=0;b<F.length;b++)c(F[b].replies),t(F[b],F,null,0,D);null!=x&&null==x.comment.id&&null==x.comment.pCommentId&&(B.appendChild(x.div),f(x.comment,x.div,x.saveCallback,x.deleteOnCancel))},mxUtils.bind(this,function(b){B.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(b&&b.message?
-": "+b.message:""));this.hasError=!0})):B.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))});G();this.refreshComments=G;C=mxUtils.bind(this,function(){function b(c){var e=d[c.id];if(null!=e)for(l(c,e),e=0;null!=c.replies&&e<c.replies.length;e++)b(c.replies[e])}if(this.window.isVisible()){for(var c=B.querySelectorAll(".geCommentDate"),d={},e=0;e<c.length;e++){var f=c[e];d[f.getAttribute("data-commentId")]=f}for(e=0;e<F.length;e++)b(F[e])}});setInterval(C,6E4);this.refreshCommentsTime=C;this.window=
+mxUtils.write(y,mxResources.get("noCommentsFound"));var C=document.createElement("div");C.className="geToolbarContainer geCommentsToolbar";C.style.height=z;C.style.padding=EditorUi.compactUi?"4px 0px 3px 0px":"1px";C.style.backgroundColor=Editor.isDarkMode()?Dialog.backdropColor:"whiteSmoke";z=document.createElement("a");z.className="geButton";if(!v){var G=z.cloneNode();G.innerHTML='<div class="geSprite geSprite-plus" style="display:inline-block;"></div>';G.setAttribute("title",mxResources.get("create")+
+"...");mxEvent.addListener(G,"click",function(c){function d(){f(e,g,function(c){m(g);b.addComment(c,function(b){c.id=b;E.push(c);q(g)},function(c){p(g);d();b.handleError(c,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})},!0)}var e=b.newComment("",b.getCurrentUser()),g=t(e,E,null,0);d();c.preventDefault();mxEvent.consume(c)});C.appendChild(G)}G=z.cloneNode();G.innerHTML='<img src="'+IMAGE_PATH+'/check.png" style="width: 16px; padding: 2px;">';G.setAttribute("title",mxResources.get("showResolved"));
+var D=!1;Editor.isDarkMode()&&(G.style.filter="invert(100%)");mxEvent.addListener(G,"click",function(b){this.className=(D=!D)?"geButton geCheckedBtn":"geButton";F();b.preventDefault();mxEvent.consume(b)});C.appendChild(G);b.commentsRefreshNeeded()&&(G=z.cloneNode(),G.innerHTML='<img src="'+IMAGE_PATH+'/update16.png" style="width: 16px; padding: 2px;">',G.setAttribute("title",mxResources.get("refresh")),Editor.isDarkMode()&&(G.style.filter="invert(100%)"),mxEvent.addListener(G,"click",function(b){F();
+b.preventDefault();mxEvent.consume(b)}),C.appendChild(G));b.commentsSaveNeeded()&&(z=z.cloneNode(),z.innerHTML='<img src="'+IMAGE_PATH+'/save.png" style="width: 20px; padding: 2px;">',z.setAttribute("title",mxResources.get("save")),Editor.isDarkMode()&&(z.style.filter="invert(100%)"),mxEvent.addListener(z,"click",function(b){k();b.preventDefault();mxEvent.consume(b)}),C.appendChild(z));A.appendChild(C);var E=[],F=mxUtils.bind(this,function(){this.hasError=!1;if(null!=x)try{x.div=x.div.cloneNode(!0);
+var c=x.div.querySelector(".geCommentEditTxtArea"),d=x.div.querySelector(".geCommentEditBtns");x.comment.content=c.value;c.parentNode.removeChild(c);d.parentNode.removeChild(d)}catch(I){b.handleError(I)}B.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH+'/spin.gif" valign="middle"> '+mxUtils.htmlEntities(mxResources.get("loading"))+"...</div>";u=b.canReplyToReplies();b.commentsSupported()?b.getComments(function(b){function c(b){if(null!=b){b.sort(function(b,c){return new Date(b.modifiedDate)-
+new Date(c.modifiedDate)});for(var d=0;d<b.length;d++)c(b[d].replies)}}b.sort(function(b,c){return new Date(b.modifiedDate)-new Date(c.modifiedDate)});B.innerHTML="";B.appendChild(y);y.style.display="block";E=b;for(b=0;b<E.length;b++)c(E[b].replies),t(E[b],E,null,0,D);null!=x&&null==x.comment.id&&null==x.comment.pCommentId&&(B.appendChild(x.div),f(x.comment,x.div,x.saveCallback,x.deleteOnCancel))},mxUtils.bind(this,function(b){B.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(b&&b.message?
+": "+b.message:""));this.hasError=!0})):B.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))});F();this.refreshComments=F;C=mxUtils.bind(this,function(){function b(c){var e=d[c.id];if(null!=e)for(l(c,e),e=0;null!=c.replies&&e<c.replies.length;e++)b(c.replies[e])}if(this.window.isVisible()){for(var c=B.querySelectorAll(".geCommentDate"),d={},e=0;e<c.length;e++){var f=c[e];d[f.getAttribute("data-commentId")]=f}for(e=0;e<E.length;e++)b(E[e])}});setInterval(C,6E4);this.refreshCommentsTime=C;this.window=
new mxWindow(mxResources.get("comments"),A,e,d,c,g,!0,!0);this.window.minimumSize=new mxRectangle(0,0,300,200);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));this.window.setLocation=function(b,c){var d=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;b=Math.max(0,Math.min(b,(window.innerWidth||
-document.body.clientWidth||document.documentElement.clientWidth)-this.table.clientWidth));c=Math.max(0,Math.min(c,d-this.table.clientHeight-48));this.getX()==b&&this.getY()==c||mxWindow.prototype.setLocation.apply(this,arguments)};var I=mxUtils.bind(this,function(){var b=this.window.getX(),c=this.window.getY();this.window.setLocation(b,c)});mxEvent.addListener(window,"resize",I);this.destroy=function(){mxEvent.removeListener(window,"resize",I);this.window.destroy()}},ConfirmDialog=function(b,e,d,
+document.body.clientWidth||document.documentElement.clientWidth)-this.table.clientWidth));c=Math.max(0,Math.min(c,d-this.table.clientHeight-48));this.getX()==b&&this.getY()==c||mxWindow.prototype.setLocation.apply(this,arguments)};var J=mxUtils.bind(this,function(){var b=this.window.getX(),c=this.window.getY();this.window.setLocation(b,c)});mxEvent.addListener(window,"resize",J);this.destroy=function(){mxEvent.removeListener(window,"resize",J);this.window.destroy()}},ConfirmDialog=function(b,e,d,
c,g,k,n,f,l,m,p){var q=document.createElement("div");q.style.textAlign="center";p=null!=p?p:44;var t=document.createElement("div");t.style.padding="6px";t.style.overflow="auto";t.style.maxHeight=p+"px";t.style.lineHeight="1.2em";mxUtils.write(t,e);q.appendChild(t);null!=m&&(t=document.createElement("div"),t.style.padding="6px 0 6px 0",e=document.createElement("img"),e.setAttribute("src",m),t.appendChild(e),q.appendChild(t));m=document.createElement("div");m.style.textAlign="center";m.style.whiteSpace=
"nowrap";var v=document.createElement("input");v.setAttribute("type","checkbox");k=mxUtils.button(k||mxResources.get("cancel"),function(){b.hideDialog();null!=c&&c(v.checked)});k.className="geBtn";null!=f&&(k.innerHTML=f+"<br>"+k.innerHTML,k.style.paddingBottom="8px",k.style.paddingTop="8px",k.style.height="auto",k.style.width="40%");b.editor.cancelFirst&&m.appendChild(k);var u=mxUtils.button(g||mxResources.get("ok"),function(){b.hideDialog();null!=d&&d(v.checked)});m.appendChild(u);null!=n?(u.innerHTML=
n+"<br>"+u.innerHTML+"<br>",u.style.paddingBottom="8px",u.style.paddingTop="8px",u.style.height="auto",u.className="geBtn",u.style.width="40%"):u.className="geBtn gePrimaryBtn";b.editor.cancelFirst||m.appendChild(k);q.appendChild(m);l?(m.style.marginTop="10px",t=document.createElement("p"),t.style.marginTop="20px",t.style.marginBottom="0px",t.appendChild(v),g=document.createElement("span"),mxUtils.write(g," "+mxResources.get("rememberThisSetting")),t.appendChild(g),q.appendChild(t),mxEvent.addListener(g,
@@ -11386,20 +11386,20 @@ else if(d.mimeType==this.libraryMimeType||n)d.mimeType!=this.libraryMimeType||n?
f=!0:b=m}catch(z){f=!0}}}else/\.pdf$/i.test(d.title)?(l=Editor.extractGraphModelFromPdf(b),null!=l&&0<l.length&&(f=!0,b=l)):"data:image/png;base64,PG14ZmlsZS"==b.substring(0,32)&&(m=b.substring(22),b=window.atob&&!mxClient.IS_SF?atob(m):Base64.decode(m));Graph.fileSupport&&(new XMLHttpRequest).upload&&this.ui.isRemoteFileFormat(b,g)?this.ui.parseFileData(b,mxUtils.bind(this,function(b){try{4==b.readyState&&(200<=b.status&&299>=b.status?c(new LocalFile(this.ui,b.responseText,d.title+this.extension,
!0)):null!=e&&e({message:mxResources.get("errorLoadingFile")}))}catch(B){if(null!=e)e(B);else throw B;}}),d.title):c(f?new LocalFile(this.ui,b,d.title,!0):new DriveFile(this.ui,b,d))}}catch(z){if(null!=e)e(z);else throw z;}}),mxUtils.bind(this,function(b,c){if(m<this.maxRetries&&null!=c&&403==c.getStatus())m++,window.setTimeout(p,2*m*this.coolOff*(1+.1*(Math.random()-.5)));else if(null!=e)e(b);else throw b;}),null!=d.mimeType&&"image/"==d.mimeType.substring(0,6)&&"image/svg"!=d.mimeType.substring(0,
9)||/\.png$/i.test(d.title)||/\.jpe?g$/i.test(d.title)||/\.pdf$/i.test(d.title),null,null,null,f)});p()}}catch(q){if(null!=e)e(q);else throw q;}};DriveClient.prototype.saveFile=function(b,c,e,k,n,f,l,m,p){try{var d=0;b.saveLevel=1;var g=mxUtils.bind(this,function(c){if(null!=k)k(c);else throw c;try{if(!b.isConflict(c)){var d="sl_"+b.saveLevel+"-error_"+(b.getErrorMessage(c)||"unknown");null!=c&&null!=c.error&&null!=c.error.code&&(d+="-code_"+c.error.code);EditorUi.logEvent({category:"ERROR-SAVE-FILE-"+
-b.getHash()+"-rev_"+b.desc.headRevisionId+"-mod_"+b.desc.modifiedDate+"-size_"+b.getSize()+"-mime_"+b.desc.mimeType+(this.ui.editor.autosave?"":"-nosave")+(b.isAutosave()?"":"-noauto")+(b.changeListenerEnabled?"":"-nolisten")+(b.inConflictState?"-conflict":"")+(b.invalidChecksum?"-invalid":""),action:d,label:(null!=this.user?"user_"+this.user.id:"nouser")+(null!=b.sync?"-client_"+b.sync.clientId:"-nosync")})}}catch(I){}}),v=mxUtils.bind(this,function(b){g(b);try{EditorUi.logError(b.message,null,null,
-b)}catch(G){}});if(b.isEditable()&&null!=b.desc){var u=(new Date).getTime(),x=b.desc.etag,A=b.desc.modifiedDate,z=b.desc.headRevisionId,B=this.ui.useCanvasForExport&&/(\.png)$/i.test(b.getTitle());f=null!=f?f:!1;var y=null,C=!1,E={mimeType:b.desc.mimeType,title:b.getTitle()};if(this.isGoogleRealtimeMimeType(E.mimeType))E.mimeType=this.xmlMimeType,y=b.desc,C=c=!0;else if("application/octet-stream"==E.mimeType||"1"==urlParams["override-mime"]&&E.mimeType!=this.xmlMimeType)E.mimeType=this.xmlMimeType;
-var D=mxUtils.bind(this,function(k,n,q){try{b.saveLevel=3;b.constructor==DriveFile&&(null==m&&(m=[]),null==b.getChannelId()&&m.push({key:"channel",value:Editor.guid(32)}),null==b.getChannelKey()&&m.push({key:"key",value:Editor.guid(32)}),m.push({key:"secret",value:null!=p?p:Editor.guid(32)}));q||(null!=k||f||(k=this.placeholderThumbnail,n=this.placeholderMimeType),null!=k&&null!=n&&(E.thumbnail={image:k,mimeType:n}));var t=b.getData(),D=mxUtils.bind(this,function(d){try{if(b.saveDelay=(new Date).getTime()-
+b.getHash()+"-rev_"+b.desc.headRevisionId+"-mod_"+b.desc.modifiedDate+"-size_"+b.getSize()+"-mime_"+b.desc.mimeType+(this.ui.editor.autosave?"":"-nosave")+(b.isAutosave()?"":"-noauto")+(b.changeListenerEnabled?"":"-nolisten")+(b.inConflictState?"-conflict":"")+(b.invalidChecksum?"-invalid":""),action:d,label:(null!=this.user?"user_"+this.user.id:"nouser")+(null!=b.sync?"-client_"+b.sync.clientId:"-nosync")})}}catch(J){}}),v=mxUtils.bind(this,function(b){g(b);try{EditorUi.logError(b.message,null,null,
+b)}catch(F){}});if(b.isEditable()&&null!=b.desc){var u=(new Date).getTime(),x=b.desc.etag,A=b.desc.modifiedDate,z=b.desc.headRevisionId,B=this.ui.useCanvasForExport&&/(\.png)$/i.test(b.getTitle());f=null!=f?f:!1;var y=null,C=!1,G={mimeType:b.desc.mimeType,title:b.getTitle()};if(this.isGoogleRealtimeMimeType(G.mimeType))G.mimeType=this.xmlMimeType,y=b.desc,C=c=!0;else if("application/octet-stream"==G.mimeType||"1"==urlParams["override-mime"]&&G.mimeType!=this.xmlMimeType)G.mimeType=this.xmlMimeType;
+var D=mxUtils.bind(this,function(k,n,q){try{b.saveLevel=3;b.constructor==DriveFile&&(null==m&&(m=[]),null==b.getChannelId()&&m.push({key:"channel",value:Editor.guid(32)}),null==b.getChannelKey()&&m.push({key:"key",value:Editor.guid(32)}),m.push({key:"secret",value:null!=p?p:Editor.guid(32)}));q||(null!=k||f||(k=this.placeholderThumbnail,n=this.placeholderMimeType),null!=k&&null!=n&&(G.thumbnail={image:k,mimeType:n}));var t=b.getData(),D=mxUtils.bind(this,function(d){try{if(b.saveDelay=(new Date).getTime()-
u,b.saveLevel=11,null==d)g({message:mxResources.get("errorSavingFile")+": Empty response"});else{var f=(new Date(d.modifiedDate)).getTime()-(new Date(A)).getTime();if(0>=f||x==d.etag||c&&z==d.headRevisionId){b.saveLevel=12;var k=[];0>=f&&k.push("invalid modified time");x==d.etag&&k.push("stale etag");c&&z==d.headRevisionId&&k.push("stale revision");var l=k.join(", ");g({message:mxResources.get("errorSavingFile")+": "+l},d);try{EditorUi.logError("Critical: Error saving to Google Drive "+b.desc.id,
null,"from-"+z+"."+A+"-"+this.ui.hashValue(x)+"-to-"+d.headRevisionId+"."+d.modifiedDate+"-"+this.ui.hashValue(d.etag)+(0<l.length?"-errors-"+l:""),"user-"+(null!=this.user?this.user.id:"nouser")+(null!=b.sync?"-client_"+b.sync.clientId:"-nosync"))}catch(L){}}else if(b.saveLevel=null,e(d,t),null!=y){this.executeRequest({url:"/files/"+y.id+"/revisions/"+y.headRevisionId+"?supportsAllDrives=true"},mxUtils.bind(this,mxUtils.bind(this,function(b){b.pinned=!0;this.executeRequest({url:"/files/"+y.id+"/revisions/"+
-y.headRevisionId,method:"PUT",params:b})})));try{EditorUi.logEvent({category:b.convertedFrom+"-CONVERT-FILE-"+b.getHash(),action:"from_"+y.id+"."+y.headRevisionId+"-to_"+b.desc.id+"."+b.desc.headRevisionId,label:null!=this.user?"user_"+this.user.id:"nouser"+(null!=b.sync?"-client_"+b.sync.clientId:"nosync")})}catch(L){}}}}catch(L){v(L)}}),F=mxUtils.bind(this,function(e,f){b.saveLevel=4;try{null!=m&&(E.properties=m);var n=l||b.constructor!=DriveFile||"manual"!=DrawioFile.SYNC&&"auto"!=DrawioFile.SYNC?
-null:b.getCurrentEtag(),p=mxUtils.bind(this,function(k){b.saveLevel=5;try{var l=b.desc.mimeType!=this.xmlMimeType&&b.desc.mimeType!=this.mimeType&&b.desc.mimeType!=this.libraryMimeType,m=!0,p=null;try{p=window.setTimeout(mxUtils.bind(this,function(){m=!1;g({code:App.ERROR_TIMEOUT})}),5*this.ui.timeout)}catch(V){}this.executeRequest(this.createUploadRequest(b.getId(),E,e,c||k||l,f,k?null:n,C),mxUtils.bind(this,function(b){window.clearTimeout(p);m&&D(b)}),mxUtils.bind(this,function(c){window.clearTimeout(p);
+y.headRevisionId,method:"PUT",params:b})})));try{EditorUi.logEvent({category:b.convertedFrom+"-CONVERT-FILE-"+b.getHash(),action:"from_"+y.id+"."+y.headRevisionId+"-to_"+b.desc.id+"."+b.desc.headRevisionId,label:null!=this.user?"user_"+this.user.id:"nouser"+(null!=b.sync?"-client_"+b.sync.clientId:"nosync")})}catch(L){}}}}catch(L){v(L)}}),E=mxUtils.bind(this,function(e,f){b.saveLevel=4;try{null!=m&&(G.properties=m);var n=l||b.constructor!=DriveFile||"manual"!=DrawioFile.SYNC&&"auto"!=DrawioFile.SYNC?
+null:b.getCurrentEtag(),p=mxUtils.bind(this,function(k){b.saveLevel=5;try{var l=b.desc.mimeType!=this.xmlMimeType&&b.desc.mimeType!=this.mimeType&&b.desc.mimeType!=this.libraryMimeType,m=!0,p=null;try{p=window.setTimeout(mxUtils.bind(this,function(){m=!1;g({code:App.ERROR_TIMEOUT})}),5*this.ui.timeout)}catch(N){}this.executeRequest(this.createUploadRequest(b.getId(),G,e,c||k||l,f,k?null:n,C),mxUtils.bind(this,function(b){window.clearTimeout(p);m&&D(b)}),mxUtils.bind(this,function(c){window.clearTimeout(p);
if(m){b.saveLevel=6;try{b.isConflict(c)?this.executeRequest({url:"/files/"+b.getId()+"?supportsAllDrives=true&fields="+this.catchupFields},mxUtils.bind(this,function(e){b.saveLevel=7;try{if(null!=e&&e.etag==n)if(d<this.staleEtagMaxRetries){d++;var f=2*d*this.coolOff*(1+.1*(Math.random()-.5));window.setTimeout(q,f);"1"==urlParams.test&&EditorUi.debug("DriveClient: Stale Etag Detected","retry",d,"delay",f)}else{q(!0);try{EditorUi.logEvent({category:"STALE-ETAG-SAVE-FILE-"+b.getHash(),action:"rev_"+
-b.desc.headRevisionId+"-mod_"+b.desc.modifiedDate+"-size_"+b.getSize()+"-mime_"+b.desc.mimeType+(this.ui.editor.autosave?"":"-nosave")+(b.isAutosave()?"":"-noauto")+(b.changeListenerEnabled?"":"-nolisten")+(b.inConflictState?"-conflict":"")+(b.invalidChecksum?"-invalid":""),label:(null!=this.user?"user_"+this.user.id:"nouser")+(null!=b.sync?"-client_"+b.sync.clientId:"-nosync")})}catch(ea){}}else"1"==urlParams.test&&e.headRevisionId==z&&EditorUi.debug("DriveClient: Remote Etag Changed","local",n,
-"remote",e.etag,"rev",b.desc.headRevisionId,"response",[e],"file",[b]),g(c,e)}catch(ea){v(ea)}}),mxUtils.bind(this,function(){g(c)})):g(c)}catch(oa){v(oa)}}}))}catch(V){v(V)}}),q=mxUtils.bind(this,function(c){b.saveLevel=9;if(c||null==n)p(c);else{var d=!0,e=null;try{e=window.setTimeout(mxUtils.bind(this,function(){d=!1;g({code:App.ERROR_TIMEOUT})}),3*this.ui.timeout)}catch(aa){}this.executeRequest({url:"/files/"+b.getId()+"?supportsAllDrives=true&fields="+this.catchupFields},mxUtils.bind(this,function(f){window.clearTimeout(e);
-if(d){b.saveLevel=10;try{null!=f&&f.headRevisionId==z?("1"==urlParams.test&&n!=f.etag&&EditorUi.debug("DriveClient: Preflight Etag Update","from",n,"to",f.etag,"rev",b.desc.headRevisionId,"response",[f],"file",[b]),n=f.etag,p(c)):g({error:{code:412}},f)}catch(V){v(V)}}}),mxUtils.bind(this,function(c){window.clearTimeout(e);d&&(b.saveLevel=11,g(c))}))}});if(B&&null==k){b.saveLevel=8;var y=new Image;y.onload=mxUtils.bind(this,function(){try{var b=this.thumbnailWidth/y.width,c=document.createElement("canvas");
-c.width=this.thumbnailWidth;c.height=Math.floor(y.height*b);c.getContext("2d").drawImage(y,0,0,c.width,c.height);var d=c.toDataURL(),d=d.substring(d.indexOf(",")+1).replace(/\+/g,"-").replace(/\//g,"_");E.thumbnail={image:d,mimeType:"image/png"};q(!1)}catch(aa){try{q(!1)}catch(V){v(V)}}});y.src="data:image/png;base64,"+e}else q(!1)}catch(S){v(S)}});if(B){var G=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(b){F(b,!0)}),g,this.ui.getCurrentFile()!=
-b?t:null,G.scale,G.border)}else F(t,!1)}catch(N){v(N)}});try{b.saveLevel=2,(f||B||b.constructor==DriveLibrary||!this.enableThumbnails||"0"==urlParams.thumb||null!=E.mimeType&&"application/vnd.jgraph.mxfile"!=E.mimeType.substring(0,29)||!this.ui.getThumbnail(this.thumbnailWidth,mxUtils.bind(this,function(b){try{var c=null;try{null!=b&&(c=b.toDataURL("image/png")),null!=c&&(c=c.length>this.maxThumbnailSize?null:c.substring(c.indexOf(",")+1).replace(/\+/g,"-").replace(/\//g,"_"))}catch(I){c=null}D(c,
-"image/png")}catch(I){v(I)}})))&&D(null,null,b.constructor!=DriveLibrary)}catch(F){v(F)}}else this.ui.editor.graph.reset(),g({message:mxResources.get("readOnly")})}catch(F){v(F)}};DriveClient.prototype.insertFile=function(b,c,e,k,n,f,l){f=null!=f?f:this.xmlMimeType;b={mimeType:f,title:b};null!=e&&(b.parents=[{kind:"drive#fileLink",id:e}]);this.executeRequest(this.createUploadRequest(null,b,c,!1,l),mxUtils.bind(this,function(b){f==this.libraryMimeType?k(new DriveLibrary(this.ui,c,b)):0==b?null!=n&&
+b.desc.headRevisionId+"-mod_"+b.desc.modifiedDate+"-size_"+b.getSize()+"-mime_"+b.desc.mimeType+(this.ui.editor.autosave?"":"-nosave")+(b.isAutosave()?"":"-noauto")+(b.changeListenerEnabled?"":"-nolisten")+(b.inConflictState?"-conflict":"")+(b.invalidChecksum?"-invalid":""),label:(null!=this.user?"user_"+this.user.id:"nouser")+(null!=b.sync?"-client_"+b.sync.clientId:"-nosync")})}catch(la){}}else"1"==urlParams.test&&e.headRevisionId==z&&EditorUi.debug("DriveClient: Remote Etag Changed","local",n,
+"remote",e.etag,"rev",b.desc.headRevisionId,"response",[e],"file",[b]),g(c,e)}catch(la){v(la)}}),mxUtils.bind(this,function(){g(c)})):g(c)}catch(ha){v(ha)}}}))}catch(N){v(N)}}),q=mxUtils.bind(this,function(c){b.saveLevel=9;if(c||null==n)p(c);else{var d=!0,e=null;try{e=window.setTimeout(mxUtils.bind(this,function(){d=!1;g({code:App.ERROR_TIMEOUT})}),3*this.ui.timeout)}catch(ea){}this.executeRequest({url:"/files/"+b.getId()+"?supportsAllDrives=true&fields="+this.catchupFields},mxUtils.bind(this,function(f){window.clearTimeout(e);
+if(d){b.saveLevel=10;try{null!=f&&f.headRevisionId==z?("1"==urlParams.test&&n!=f.etag&&EditorUi.debug("DriveClient: Preflight Etag Update","from",n,"to",f.etag,"rev",b.desc.headRevisionId,"response",[f],"file",[b]),n=f.etag,p(c)):g({error:{code:412}},f)}catch(N){v(N)}}}),mxUtils.bind(this,function(c){window.clearTimeout(e);d&&(b.saveLevel=11,g(c))}))}});if(B&&null==k){b.saveLevel=8;var t=new Image;t.onload=mxUtils.bind(this,function(){try{var b=this.thumbnailWidth/t.width,c=document.createElement("canvas");
+c.width=this.thumbnailWidth;c.height=Math.floor(t.height*b);c.getContext("2d").drawImage(t,0,0,c.width,c.height);var d=c.toDataURL(),d=d.substring(d.indexOf(",")+1).replace(/\+/g,"-").replace(/\//g,"_");G.thumbnail={image:d,mimeType:"image/png"};q(!1)}catch(ea){try{q(!1)}catch(N){v(N)}}});t.src="data:image/png;base64,"+e}else q(!1)}catch(T){v(T)}});if(B){var F=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(b){E(b,!0)}),g,this.ui.getCurrentFile()!=
+b?t:null,F.scale,F.border)}else E(t,!1)}catch(P){v(P)}});try{b.saveLevel=2,(f||B||b.constructor==DriveLibrary||!this.enableThumbnails||"0"==urlParams.thumb||null!=G.mimeType&&"application/vnd.jgraph.mxfile"!=G.mimeType.substring(0,29)||!this.ui.getThumbnail(this.thumbnailWidth,mxUtils.bind(this,function(b){try{var c=null;try{null!=b&&(c=b.toDataURL("image/png")),null!=c&&(c=c.length>this.maxThumbnailSize?null:c.substring(c.indexOf(",")+1).replace(/\+/g,"-").replace(/\//g,"_"))}catch(J){c=null}D(c,
+"image/png")}catch(J){v(J)}})))&&D(null,null,b.constructor!=DriveLibrary)}catch(E){v(E)}}else this.ui.editor.graph.reset(),g({message:mxResources.get("readOnly")})}catch(E){v(E)}};DriveClient.prototype.insertFile=function(b,c,e,k,n,f,l){f=null!=f?f:this.xmlMimeType;b={mimeType:f,title:b};null!=e&&(b.parents=[{kind:"drive#fileLink",id:e}]);this.executeRequest(this.createUploadRequest(null,b,c,!1,l),mxUtils.bind(this,function(b){f==this.libraryMimeType?k(new DriveLibrary(this.ui,c,b)):0==b?null!=n&&
n({message:mxResources.get("errorSavingFile")}):k(new DriveFile(this.ui,c,b))}),n)};DriveClient.prototype.createUploadRequest=function(b,c,e,k,n,f,l){n=null!=n?n:!1;var d={"Content-Type":'multipart/mixed; boundary="-------314159265358979323846"'};null!=f&&(d["If-Match"]=f);b={fullUrl:"https://content.googleapis.com/upload/drive/v2/files"+(null!=b?"/"+b:"")+"?uploadType=multipart&supportsAllDrives=true&enforceSingleParent=true&fields="+this.allFields,method:null!=b?"PUT":"POST",headers:d,params:"\r\n---------314159265358979323846\r\nContent-Type: application/json\r\n\r\n"+
JSON.stringify(c)+"\r\n---------314159265358979323846\r\nContent-Type: application/octect-stream\r\nContent-Transfer-Encoding: base64\r\n\r\n"+(null!=e?n?e:!window.btoa||mxClient.IS_IE||mxClient.IS_IE11?Base64.encode(e):Graph.base64EncodeUnicode(e):"")+"\r\n---------314159265358979323846--"};k||(b.fullUrl+="&newRevision=false");l&&(b.fullUrl+="&pinned=true");return b};DriveClient.prototype.createLinkPicker=function(){var d=e.linkPicker;if(null==d||e.linkPickerToken!=b){e.linkPickerToken=b;var d=(new google.picker.DocsView(google.picker.ViewId.FOLDERS)).setParent("root").setIncludeFolders(!0).setSelectFolderEnabled(!0),
c=(new google.picker.DocsView).setIncludeFolders(!0).setSelectFolderEnabled(!0),g=(new google.picker.DocsView).setIncludeFolders(!0).setEnableDrives(!0).setSelectFolderEnabled(!0),d=(new google.picker.PickerBuilder).setAppId(this.appId).setLocale(mxLanguage).setOAuthToken(e.linkPickerToken).enableFeature(google.picker.Feature.SUPPORT_DRIVES).addView(d).addView(c).addView(g).addView(google.picker.ViewId.RECENTLY_PICKED)}return d};DriveClient.prototype.pickFile=function(d,c,g){this.filePickerCallback=
@@ -11425,28 +11425,28 @@ b.rev+"&chrome=0&nav=1&layers=1&edit=_blank"+(null!=c?"&page="+c:""))+window.loc
DropboxFile.prototype.doSave=function(b,e,d,c,g,k){var n=this.stat.name;this.stat.name=b;DrawioFile.prototype.save.apply(this,[null,mxUtils.bind(this,function(){this.stat.name=n;this.saveFile(b,e,d,c,g,k)}),c,g,k])};
DropboxFile.prototype.saveFile=function(b,e,d,c){this.isEditable()?this.savingFile?null!=c&&c({code:App.ERROR_BUSY}):(e=mxUtils.bind(this,function(e){if(e)try{this.savingFileTime=new Date;this.setShadowModified(!1);this.savingFile=!0;var g=mxUtils.bind(this,function(e){var f=this.stat.path_display.lastIndexOf("/"),f=1<f?this.stat.path_display.substring(1,f+1):null;this.ui.dropbox.saveFile(b,e,mxUtils.bind(this,function(b){this.setModified(this.getShadowModified());this.savingFile=!1;this.stat=b;this.contentChanged();
null!=d&&d()}),mxUtils.bind(this,function(b){this.savingFile=!1;null!=c&&c(b)}),f)});if(this.ui.useCanvasForExport&&/(\.png)$/i.test(this.getTitle())){var n=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(b){g(this.ui.base64ToBlob(b,"image/png"))}),c,this.ui.getCurrentFile()!=this?this.getData():null,n.scale,n.border)}else g(this.getData())}catch(f){if(this.savingFile=!1,null!=c)c(f);else throw f;}else null!=c&&c()}),this.getTitle()==b?e(!0):this.ui.dropbox.checkExists(b,
-e)):null!=d&&d()};DropboxFile.prototype.rename=function(b,e,d){this.ui.dropbox.renameFile(this,b,mxUtils.bind(this,function(c){this.hasSameExtension(b,this.getTitle())?(this.stat=c,this.descriptorChanged(),null!=e&&e()):(this.stat=c,this.descriptorChanged(),this.save(!0,e,d))}),d)};DropboxLibrary=function(b,e,d){DropboxFile.call(this,b,e,d)};mxUtils.extend(DropboxLibrary,DropboxFile);DropboxLibrary.prototype.isAutosave=function(){return!0};DropboxLibrary.prototype.doSave=function(b,e,d){this.saveFile(b,!1,e,d)};DropboxLibrary.prototype.open=function(){};(function(){var b=null;window.DropboxClient=function(b){DrawioClient.call(this,b,"dbauth");this.client=new Dropbox({clientId:this.clientId})};mxUtils.extend(DropboxClient,DrawioClient);DropboxClient.prototype.appPath="/drawio/";DropboxClient.prototype.extension=".drawio";DropboxClient.prototype.writingFile=!1;DropboxClient.prototype.maxRetries=4;DropboxClient.prototype.clientId=window.DRAWIO_DROPBOX_ID;DropboxClient.prototype.redirectUri=window.location.protocol+"//"+window.location.host+"/dropbox";
-DropboxClient.prototype.logout=function(){this.ui.editor.loadUrl(this.redirectUri+"?doLogout=1&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.hostname));this.clearPersistentToken();this.setUser(null);b=null;this.client.authTokenRevoke().then(mxUtils.bind(this,function(){this.client.setAccessToken(null)}))};DropboxClient.prototype.updateUser=function(e,d,c){var g=!0,k=window.setTimeout(mxUtils.bind(this,function(){g=!1;d({code:App.ERROR_TIMEOUT})}),this.ui.timeout),n=this.client.usersGetCurrentAccount();
-n.then(mxUtils.bind(this,function(b){window.clearTimeout(k);g&&(this.setUser(new DrawioUser(b.account_id,b.email,b.name.display_name)),e())}));n["catch"](mxUtils.bind(this,function(f){window.clearTimeout(k);g&&(null==f||401!==f.status||c?d({message:mxResources.get("accessDenied")}):(this.setUser(null),this.client.setAccessToken(null),b=null,this.authenticate(mxUtils.bind(this,function(){this.updateUser(e,d,!0)}),d)))}))};DropboxClient.prototype.authenticate=function(b,d){(new mxXmlRequest(this.redirectUri+
-"?getState=1",null,"GET")).send(mxUtils.bind(this,function(c){200<=c.getStatus()&&299>=c.getStatus()?this.authenticateStep2(c.getText(),b,d):null!=d&&d(c)}),d)};DropboxClient.prototype.authenticateStep2=function(e,d,c){if(null==window.onDropboxCallback){var g=mxUtils.bind(this,function(){var k=!0;null!=this.getPersistentToken(!0)?(new mxXmlRequest(this.redirectUri+"?state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.hostname+"&token="+e),null,"GET")).send(mxUtils.bind(this,
-function(e){200<=e.getStatus()&&299>=e.getStatus()?(b=JSON.parse(e.getText()).access_token,this.client.setAccessToken(b),this.setUser(null),d()):(this.clearPersistentToken(),this.setUser(null),b=null,this.client.setAccessToken(null),401==e.getStatus()?g():c({message:mxResources.get("accessDenied"),retry:g}))}),c):this.ui.showAuthDialog(this,!0,mxUtils.bind(this,function(n,f){null!=window.open("https://www.dropbox.com/oauth2/authorize?client_id="+this.clientId+(n?"&token_access_type=offline":"")+"&redirect_uri="+
-encodeURIComponent(this.redirectUri)+"&response_type=code&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.hostname+"&token="+e),"dbauth")?window.onDropboxCallback=mxUtils.bind(this,function(e,m){if(k){window.onDropboxCallback=null;k=!1;try{null==e?c({message:mxResources.get("accessDenied"),retry:g}):(null!=f&&f(),b=e.access_token,this.client.setAccessToken(b),this.setUser(null),n&&this.setPersistentToken("remembered"),d())}catch(p){c(p)}finally{null!=m&&m.close()}}else null!=
-m&&m.close()}):c({message:mxResources.get("serviceUnavailableOrBlocked"),retry:g})}),mxUtils.bind(this,function(){k&&(window.onDropboxCallback=null,k=!1,c({message:mxResources.get("accessDenied"),retry:g}))}))});g()}else c({code:App.ERROR_BUSY})};DropboxClient.prototype.executePromise=function(e,d,c){var g=mxUtils.bind(this,function(n){var f=!0,l=window.setTimeout(mxUtils.bind(this,function(){f=!1;c({code:App.ERROR_TIMEOUT,retry:k})}),this.ui.timeout),m=e();m.then(mxUtils.bind(this,function(b){window.clearTimeout(l);
-f&&null!=d&&d(b)}));m["catch"](mxUtils.bind(this,function(d){window.clearTimeout(l);f&&(null==d||500!=d.status&&400!=d.status&&401!=d.status?c({message:mxResources.get("error")+" "+d.status}):(this.setUser(null),this.client.setAccessToken(null),b=null,n?c({message:mxResources.get("accessDenied"),retry:mxUtils.bind(this,function(){this.authenticate(function(){k(!0)},c)})}):this.authenticate(function(){g(!0)},c)))}))}),k=mxUtils.bind(this,function(b){null==this.user?this.updateUser(function(){k(!0)},
-c,b):g(b)});null==b?this.authenticate(function(){k(!0)},c):k(!1)};DropboxClient.prototype.getLibrary=function(b,d,c){this.getFile(b,d,c,!0)};DropboxClient.prototype.getFile=function(e,d,c,g){g=null!=g?g:!1;var k=/\.png$/i.test(e);if(/^https:\/\//i.test(e)||/\.v(dx|sdx?)$/i.test(e)||/\.gliffy$/i.test(e)||/\.pdf$/i.test(e)||!this.ui.useCanvasForExport&&k){var n=mxUtils.bind(this,function(){var b=e.split("/");this.ui.convertFile(e,0<b.length?b[b.length-1]:e,null,this.extension,d,c)});null!=b?n():this.authenticate(n,
-c)}else n={path:"/"+e},null!=urlParams.rev&&(n.rev=urlParams.rev),this.readFile(n,mxUtils.bind(this,function(b,c){var f=null;if(0<(k?b.lastIndexOf(","):-1)){var l=this.ui.extractGraphModelFromPng(b);null!=l&&0<l.length?b=l:f=new LocalFile(this,b,e,!0)}d(null!=f?f:g?new DropboxLibrary(this.ui,b,c):new DropboxFile(this.ui,b,c))}),c,k)};DropboxClient.prototype.readFile=function(e,d,c,g){var k=mxUtils.bind(this,function(f){var l=!0,m=window.setTimeout(mxUtils.bind(this,function(){l=!1;c({code:App.ERROR_TIMEOUT})}),
-this.ui.timeout),p=this.client.filesGetMetadata({path:"/"+e.path.substring(1),include_deleted:!1});p.then(mxUtils.bind(this,function(b){}));p["catch"](function(b){window.clearTimeout(m);l&&null!=b&&409==b.status&&(l=!1,c({message:mxResources.get("fileNotFound")}))});p=this.client.filesDownload(e);p.then(mxUtils.bind(this,function(b){window.clearTimeout(m);if(l){l=!1;try{var e=new FileReader;e.onload=mxUtils.bind(this,function(c){d(e.result,b)});g?e.readAsDataURL(b.fileBlob):e.readAsText(b.fileBlob)}catch(v){c(v)}}}));
-p["catch"](mxUtils.bind(this,function(d){window.clearTimeout(m);l&&(l=!1,null==d||500!=d.status&&400!=d.status&&401!=d.status?c({message:mxResources.get("error")+" "+d.status}):(this.client.setAccessToken(null),this.setUser(null),b=null,f?c({message:mxResources.get("accessDenied"),retry:mxUtils.bind(this,function(){this.authenticate(function(){n(!0)},c)})}):this.authenticate(function(){k(!0)},c)))}))}),n=mxUtils.bind(this,function(b){null==this.user?this.updateUser(function(){n(!0)},c,b):k(b)});null==
-b?this.authenticate(function(){n(!0)},c):n(!1)};DropboxClient.prototype.checkExists=function(b,d,c){var e=mxUtils.bind(this,function(){return this.client.filesGetMetadata({path:"/"+b.toLowerCase(),include_deleted:!1})});this.executePromise(e,mxUtils.bind(this,function(e){c?d(!1,!0,e):this.ui.confirm(mxResources.get("replaceIt",[b]),function(){d(!0,!0,e)},function(){d(!1,!0,e)})}),function(b){d(!0,!1)})};DropboxClient.prototype.renameFile=function(b,d,c,g){if(/[\\\/:\?\*"\|]/.test(d))g({message:mxResources.get("dropboxCharsNotAllowed")});
-else{if(null!=b&&null!=d){var e=b.stat.path_display.substring(1),n=e.lastIndexOf("/");0<n&&(d=e.substring(0,n+1)+d)}null!=b&&null!=d&&b.stat.path_lower.substring(1)!==d.toLowerCase()?this.checkExists(d,mxUtils.bind(this,function(e,k,m){e?(e=mxUtils.bind(this,function(e){e=mxUtils.bind(this,function(){return this.client.filesMove({from_path:b.stat.path_display,to_path:"/"+d,autorename:!1})});this.executePromise(e,c,g)}),k&&m.path_lower.substring(1)!==d.toLowerCase()?(k=mxUtils.bind(this,function(){return this.client.filesDelete({path:"/"+
-d.toLowerCase()})}),this.executePromise(k,e,g)):e()):g()})):g({message:mxResources.get("invalidName")})}};DropboxClient.prototype.insertLibrary=function(b,d,c,g){this.insertFile(b,d,c,g,!0)};DropboxClient.prototype.insertFile=function(b,d,c,g,k){k=null!=k?k:!1;this.checkExists(b,mxUtils.bind(this,function(e){e?this.saveFile(b,d,mxUtils.bind(this,function(b){k?c(new DropboxLibrary(this.ui,d,b)):c(new DropboxFile(this.ui,d,b))}),g):g()}))};DropboxClient.prototype.saveFile=function(b,d,c,g,k){if(/[\\\/:\?\*"\|]/.test(b))g({message:mxResources.get("dropboxCharsNotAllowed")});
-else if(15E7<=d.length)g({message:mxResources.get("drawingTooLarge")+" ("+this.ui.formatFileSize(d.length)+" / 150 MB)"});else{k=null!=k?k:"";var e=mxUtils.bind(this,function(){return this.client.filesUpload({path:"/"+k+b,mode:{".tag":"overwrite"},mute:!0,contents:new Blob([d],{type:"text/plain"})})});this.executePromise(e,c,g)}};DropboxClient.prototype.pickLibrary=function(b){Dropbox.choose({linkType:"direct",cancel:mxUtils.bind(this,function(){}),success:mxUtils.bind(this,function(d){if(this.ui.spinner.spin(document.body,
-mxResources.get("loading"))){var c=mxUtils.bind(this,function(b){this.ui.spinner.stop();this.ui.handleError(b)}),e=d[0].link.indexOf(this.appPath);if(0<e){var k=decodeURIComponent(d[0].link.substring(e+this.appPath.length-1));this.readFile({path:k},mxUtils.bind(this,function(e,f){if(null!=f&&f.id==d[0].id)try{this.ui.spinner.stop(),b(k.substring(1),new DropboxLibrary(this.ui,e,f))}catch(l){this.ui.handleError(l)}else this.createLibrary(d[0],b,c)}),c)}else this.createLibrary(d[0],b,c)}})})};DropboxClient.prototype.createLibrary=
-function(b,d,c){this.ui.confirm(mxResources.get("note")+": "+mxResources.get("fileWillBeSavedInAppFolder",[b.name]),mxUtils.bind(this,function(){this.ui.editor.loadUrl(b.link,mxUtils.bind(this,function(e){this.insertFile(b.name,e,mxUtils.bind(this,function(b){try{this.ui.spinner.stop(),d(b.getHash().substring(1),b)}catch(n){c(n)}}),c,!0)}),c)}),mxUtils.bind(this,function(){this.ui.spinner.stop()}))};DropboxClient.prototype.pickFile=function(b,d){null!=Dropbox.choose?(b=null!=b?b:mxUtils.bind(this,
-function(b,d){this.ui.loadFile(null!=b?"D"+encodeURIComponent(b):d.getHash(),null,d)}),Dropbox.choose({linkType:"direct",cancel:mxUtils.bind(this,function(){}),success:mxUtils.bind(this,function(c){if(this.ui.spinner.spin(document.body,mxResources.get("loading")))if(d)this.ui.spinner.stop(),b(c[0].link);else{var e=mxUtils.bind(this,function(b){this.ui.spinner.stop();this.ui.handleError(b)}),k=mxUtils.bind(this,function(c,d){this.ui.spinner.stop();b(c,d)}),n=/\.png$/i.test(c[0].name);if(/\.vsdx$/i.test(c[0].name)||
-/\.gliffy$/i.test(c[0].name)||!this.ui.useCanvasForExport&&n)k(c[0].link);else{var f=c[0].link.indexOf(this.appPath);if(0<f){var l=decodeURIComponent(c[0].link.substring(f+this.appPath.length-1));this.readFile({path:l},mxUtils.bind(this,function(d,f){if(null!=f&&f.id==c[0].id){var g=n?d.lastIndexOf(","):-1;this.ui.spinner.stop();var m=null;0<g&&(g=this.ui.extractGraphModelFromPng(d),null!=g&&0<g.length?d=g:m=new LocalFile(this,d,l,!0));b(l.substring(1),null!=m?m:new DropboxFile(this.ui,d,f))}else this.createFile(c[0],
-k,e)}),e,n)}else this.createFile(c[0],k,e)}}})})):this.ui.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})};DropboxClient.prototype.createFile=function(b,d,c){var e=/(\.png)$/i.test(b.name);this.ui.editor.loadUrl(b.link,mxUtils.bind(this,function(g){null!=g&&0<g.length?this.ui.confirm(mxResources.get("note")+": "+mxResources.get("fileWillBeSavedInAppFolder",[b.name]),mxUtils.bind(this,function(){var k=e?g.lastIndexOf(","):-1;0<k&&(k=this.ui.extractGraphModelFromPng(g.substring(k+
-1)),null!=k&&0<k.length&&(g=k));this.insertFile(b.name,g,mxUtils.bind(this,function(c){d(b.name,c)}),c)}),mxUtils.bind(this,function(){this.ui.spinner.stop()})):(this.ui.spinner.stop(),c({message:mxResources.get("errorLoadingFile")}))}),c,e)}})();OneDriveFile=function(b,e,d){DrawioFile.call(this,b,e);this.meta=d};mxUtils.extend(OneDriveFile,DrawioFile);OneDriveFile.prototype.autosaveDelay=300;
+e)):null!=d&&d()};DropboxFile.prototype.rename=function(b,e,d){this.ui.dropbox.renameFile(this,b,mxUtils.bind(this,function(c){this.hasSameExtension(b,this.getTitle())?(this.stat=c,this.descriptorChanged(),null!=e&&e()):(this.stat=c,this.descriptorChanged(),this.save(!0,e,d))}),d)};DropboxLibrary=function(b,e,d){DropboxFile.call(this,b,e,d)};mxUtils.extend(DropboxLibrary,DropboxFile);DropboxLibrary.prototype.isAutosave=function(){return!0};DropboxLibrary.prototype.doSave=function(b,e,d){this.saveFile(b,!1,e,d)};DropboxLibrary.prototype.open=function(){};(function(){var b=null;window.DropboxClient=function(b){DrawioClient.call(this,b,"dbauth");this.client=new Dropbox({clientId:this.clientId})};mxUtils.extend(DropboxClient,DrawioClient);DropboxClient.prototype.appPath="/drawio-diagrams/";DropboxClient.prototype.extension=".drawio";DropboxClient.prototype.writingFile=!1;DropboxClient.prototype.maxRetries=4;DropboxClient.prototype.clientId=window.DRAWIO_DROPBOX_ID;DropboxClient.prototype.redirectUri=window.location.protocol+"//"+window.location.host+
+"/dropbox";DropboxClient.prototype.logout=function(){this.ui.editor.loadUrl(this.redirectUri+"?doLogout=1&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.hostname));this.clearPersistentToken();this.setUser(null);b=null;this.client.authTokenRevoke().then(mxUtils.bind(this,function(){this.client.setAccessToken(null)}))};DropboxClient.prototype.updateUser=function(e,d,c){var g=!0,k=window.setTimeout(mxUtils.bind(this,function(){g=!1;d({code:App.ERROR_TIMEOUT})}),this.ui.timeout),
+n=this.client.usersGetCurrentAccount();n.then(mxUtils.bind(this,function(b){window.clearTimeout(k);g&&(this.setUser(new DrawioUser(b.account_id,b.email,b.name.display_name)),e())}));n["catch"](mxUtils.bind(this,function(f){window.clearTimeout(k);g&&(null==f||401!==f.status||c?d({message:mxResources.get("accessDenied")}):(this.setUser(null),this.client.setAccessToken(null),b=null,this.authenticate(mxUtils.bind(this,function(){this.updateUser(e,d,!0)}),d)))}))};DropboxClient.prototype.authenticate=
+function(b,d){(new mxXmlRequest(this.redirectUri+"?getState=1",null,"GET")).send(mxUtils.bind(this,function(c){200<=c.getStatus()&&299>=c.getStatus()?this.authenticateStep2(c.getText(),b,d):null!=d&&d(c)}),d)};DropboxClient.prototype.authenticateStep2=function(e,d,c){if(null==window.onDropboxCallback){var g=mxUtils.bind(this,function(){var k=!0;null!=this.getPersistentToken(!0)?(new mxXmlRequest(this.redirectUri+"?state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.hostname+
+"&token="+e),null,"GET")).send(mxUtils.bind(this,function(e){200<=e.getStatus()&&299>=e.getStatus()?(b=JSON.parse(e.getText()).access_token,this.client.setAccessToken(b),this.setUser(null),d()):(this.clearPersistentToken(),this.setUser(null),b=null,this.client.setAccessToken(null),401==e.getStatus()?g():c({message:mxResources.get("accessDenied"),retry:g}))}),c):this.ui.showAuthDialog(this,!0,mxUtils.bind(this,function(n,f){null!=window.open("https://www.dropbox.com/oauth2/authorize?client_id="+this.clientId+
+(n?"&token_access_type=offline":"")+"&redirect_uri="+encodeURIComponent(this.redirectUri)+"&response_type=code&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.hostname+"&token="+e),"dbauth")?window.onDropboxCallback=mxUtils.bind(this,function(e,m){if(k){window.onDropboxCallback=null;k=!1;try{null==e?c({message:mxResources.get("accessDenied"),retry:g}):(null!=f&&f(),b=e.access_token,this.client.setAccessToken(b),this.setUser(null),n&&this.setPersistentToken("remembered"),
+d())}catch(p){c(p)}finally{null!=m&&m.close()}}else null!=m&&m.close()}):c({message:mxResources.get("serviceUnavailableOrBlocked"),retry:g})}),mxUtils.bind(this,function(){k&&(window.onDropboxCallback=null,k=!1,c({message:mxResources.get("accessDenied"),retry:g}))}))});g()}else c({code:App.ERROR_BUSY})};DropboxClient.prototype.executePromise=function(e,d,c){var g=mxUtils.bind(this,function(n){var f=!0,l=window.setTimeout(mxUtils.bind(this,function(){f=!1;c({code:App.ERROR_TIMEOUT,retry:k})}),this.ui.timeout),
+m=e();m.then(mxUtils.bind(this,function(b){window.clearTimeout(l);f&&null!=d&&d(b)}));m["catch"](mxUtils.bind(this,function(d){window.clearTimeout(l);f&&(null==d||500!=d.status&&400!=d.status&&401!=d.status?c({message:mxResources.get("error")+" "+d.status}):(this.setUser(null),this.client.setAccessToken(null),b=null,n?c({message:mxResources.get("accessDenied"),retry:mxUtils.bind(this,function(){this.authenticate(function(){k(!0)},c)})}):this.authenticate(function(){g(!0)},c)))}))}),k=mxUtils.bind(this,
+function(b){null==this.user?this.updateUser(function(){k(!0)},c,b):g(b)});null==b?this.authenticate(function(){k(!0)},c):k(!1)};DropboxClient.prototype.getLibrary=function(b,d,c){this.getFile(b,d,c,!0)};DropboxClient.prototype.getFile=function(e,d,c,g){g=null!=g?g:!1;var k=/\.png$/i.test(e);if(/^https:\/\//i.test(e)||/\.v(dx|sdx?)$/i.test(e)||/\.gliffy$/i.test(e)||/\.pdf$/i.test(e)||!this.ui.useCanvasForExport&&k){var n=mxUtils.bind(this,function(){var b=e.split("/");this.ui.convertFile(e,0<b.length?
+b[b.length-1]:e,null,this.extension,d,c)});null!=b?n():this.authenticate(n,c)}else n={path:"/"+e},null!=urlParams.rev&&(n.rev=urlParams.rev),this.readFile(n,mxUtils.bind(this,function(b,c){var f=null;if(0<(k?b.lastIndexOf(","):-1)){var l=this.ui.extractGraphModelFromPng(b);null!=l&&0<l.length?b=l:f=new LocalFile(this,b,e,!0)}d(null!=f?f:g?new DropboxLibrary(this.ui,b,c):new DropboxFile(this.ui,b,c))}),c,k)};DropboxClient.prototype.readFile=function(e,d,c,g){var k=mxUtils.bind(this,function(f){var l=
+!0,m=window.setTimeout(mxUtils.bind(this,function(){l=!1;c({code:App.ERROR_TIMEOUT})}),this.ui.timeout),p=this.client.filesGetMetadata({path:"/"+e.path.substring(1),include_deleted:!1});p.then(mxUtils.bind(this,function(b){}));p["catch"](function(b){window.clearTimeout(m);l&&null!=b&&409==b.status&&(l=!1,c({message:mxResources.get("fileNotFound")}))});p=this.client.filesDownload(e);p.then(mxUtils.bind(this,function(b){window.clearTimeout(m);if(l){l=!1;try{var e=new FileReader;e.onload=mxUtils.bind(this,
+function(c){d(e.result,b)});g?e.readAsDataURL(b.fileBlob):e.readAsText(b.fileBlob)}catch(v){c(v)}}}));p["catch"](mxUtils.bind(this,function(d){window.clearTimeout(m);l&&(l=!1,null==d||500!=d.status&&400!=d.status&&401!=d.status?c({message:mxResources.get("error")+" "+d.status}):(this.client.setAccessToken(null),this.setUser(null),b=null,f?c({message:mxResources.get("accessDenied"),retry:mxUtils.bind(this,function(){this.authenticate(function(){n(!0)},c)})}):this.authenticate(function(){k(!0)},c)))}))}),
+n=mxUtils.bind(this,function(b){null==this.user?this.updateUser(function(){n(!0)},c,b):k(b)});null==b?this.authenticate(function(){n(!0)},c):n(!1)};DropboxClient.prototype.checkExists=function(b,d,c){var e=mxUtils.bind(this,function(){return this.client.filesGetMetadata({path:"/"+b.toLowerCase(),include_deleted:!1})});this.executePromise(e,mxUtils.bind(this,function(e){c?d(!1,!0,e):this.ui.confirm(mxResources.get("replaceIt",[b]),function(){d(!0,!0,e)},function(){d(!1,!0,e)})}),function(b){d(!0,!1)})};
+DropboxClient.prototype.renameFile=function(b,d,c,g){if(/[\\\/:\?\*"\|]/.test(d))g({message:mxResources.get("dropboxCharsNotAllowed")});else{if(null!=b&&null!=d){var e=b.stat.path_display.substring(1),n=e.lastIndexOf("/");0<n&&(d=e.substring(0,n+1)+d)}null!=b&&null!=d&&b.stat.path_lower.substring(1)!==d.toLowerCase()?this.checkExists(d,mxUtils.bind(this,function(e,k,m){e?(e=mxUtils.bind(this,function(e){e=mxUtils.bind(this,function(){return this.client.filesMove({from_path:b.stat.path_display,to_path:"/"+
+d,autorename:!1})});this.executePromise(e,c,g)}),k&&m.path_lower.substring(1)!==d.toLowerCase()?(k=mxUtils.bind(this,function(){return this.client.filesDelete({path:"/"+d.toLowerCase()})}),this.executePromise(k,e,g)):e()):g()})):g({message:mxResources.get("invalidName")})}};DropboxClient.prototype.insertLibrary=function(b,d,c,g){this.insertFile(b,d,c,g,!0)};DropboxClient.prototype.insertFile=function(b,d,c,g,k){k=null!=k?k:!1;this.checkExists(b,mxUtils.bind(this,function(e){e?this.saveFile(b,d,mxUtils.bind(this,
+function(b){k?c(new DropboxLibrary(this.ui,d,b)):c(new DropboxFile(this.ui,d,b))}),g):g()}))};DropboxClient.prototype.saveFile=function(b,d,c,g,k){if(/[\\\/:\?\*"\|]/.test(b))g({message:mxResources.get("dropboxCharsNotAllowed")});else if(15E7<=d.length)g({message:mxResources.get("drawingTooLarge")+" ("+this.ui.formatFileSize(d.length)+" / 150 MB)"});else{k=null!=k?k:"";var e=mxUtils.bind(this,function(){return this.client.filesUpload({path:"/"+k+b,mode:{".tag":"overwrite"},mute:!0,contents:new Blob([d],
+{type:"text/plain"})})});this.executePromise(e,c,g)}};DropboxClient.prototype.pickLibrary=function(b){Dropbox.choose({linkType:"direct",cancel:mxUtils.bind(this,function(){}),success:mxUtils.bind(this,function(d){if(this.ui.spinner.spin(document.body,mxResources.get("loading"))){var c=mxUtils.bind(this,function(b){this.ui.spinner.stop();this.ui.handleError(b)}),e=d[0].link.indexOf(this.appPath);if(0<e){var k=decodeURIComponent(d[0].link.substring(e+this.appPath.length-1));this.readFile({path:k},mxUtils.bind(this,
+function(e,f){if(null!=f&&f.id==d[0].id)try{this.ui.spinner.stop(),b(k.substring(1),new DropboxLibrary(this.ui,e,f))}catch(l){this.ui.handleError(l)}else this.createLibrary(d[0],b,c)}),c)}else this.createLibrary(d[0],b,c)}})})};DropboxClient.prototype.createLibrary=function(b,d,c){this.ui.confirm(mxResources.get("note")+": "+mxResources.get("fileWillBeSavedInAppFolder",[b.name]),mxUtils.bind(this,function(){this.ui.editor.loadUrl(b.link,mxUtils.bind(this,function(e){this.insertFile(b.name,e,mxUtils.bind(this,
+function(b){try{this.ui.spinner.stop(),d(b.getHash().substring(1),b)}catch(n){c(n)}}),c,!0)}),c)}),mxUtils.bind(this,function(){this.ui.spinner.stop()}))};DropboxClient.prototype.pickFile=function(b,d){null!=Dropbox.choose?(b=null!=b?b:mxUtils.bind(this,function(b,d){this.ui.loadFile(null!=b?"D"+encodeURIComponent(b):d.getHash(),null,d)}),Dropbox.choose({linkType:"direct",cancel:mxUtils.bind(this,function(){}),success:mxUtils.bind(this,function(c){if(this.ui.spinner.spin(document.body,mxResources.get("loading")))if(d)this.ui.spinner.stop(),
+b(c[0].link);else{var e=mxUtils.bind(this,function(b){this.ui.spinner.stop();this.ui.handleError(b)}),k=mxUtils.bind(this,function(c,d){this.ui.spinner.stop();b(c,d)}),n=/\.png$/i.test(c[0].name);if(/\.vsdx$/i.test(c[0].name)||/\.gliffy$/i.test(c[0].name)||!this.ui.useCanvasForExport&&n)k(c[0].link);else{var f=c[0].link.indexOf(this.appPath);if(0<f){var l=decodeURIComponent(c[0].link.substring(f+this.appPath.length-1));this.readFile({path:l},mxUtils.bind(this,function(d,f){if(null!=f&&f.id==c[0].id){var g=
+n?d.lastIndexOf(","):-1;this.ui.spinner.stop();var m=null;0<g&&(g=this.ui.extractGraphModelFromPng(d),null!=g&&0<g.length?d=g:m=new LocalFile(this,d,l,!0));b(l.substring(1),null!=m?m:new DropboxFile(this.ui,d,f))}else this.createFile(c[0],k,e)}),e,n)}else this.createFile(c[0],k,e)}}})})):this.ui.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})};DropboxClient.prototype.createFile=function(b,d,c){var e=/(\.png)$/i.test(b.name);this.ui.editor.loadUrl(b.link,mxUtils.bind(this,function(g){null!=
+g&&0<g.length?this.ui.confirm(mxResources.get("note")+": "+mxResources.get("fileWillBeSavedInAppFolder",[b.name]),mxUtils.bind(this,function(){var k=e?g.lastIndexOf(","):-1;0<k&&(k=this.ui.extractGraphModelFromPng(g.substring(k+1)),null!=k&&0<k.length&&(g=k));this.insertFile(b.name,g,mxUtils.bind(this,function(c){d(b.name,c)}),c)}),mxUtils.bind(this,function(){this.ui.spinner.stop()})):(this.ui.spinner.stop(),c({message:mxResources.get("errorLoadingFile")}))}),c,e)}})();OneDriveFile=function(b,e,d){DrawioFile.call(this,b,e);this.meta=d};mxUtils.extend(OneDriveFile,DrawioFile);OneDriveFile.prototype.autosaveDelay=300;
OneDriveFile.prototype.share=function(){var b=this.meta.webUrl,b=b.substring(0,b.lastIndexOf("/"));if(null!=this.meta.parentReference)try{if("personal"==this.meta.parentReference.driveType)b="https://onedrive.live.com/?cid="+encodeURIComponent(this.meta.parentReference.driveId)+"&id="+encodeURIComponent(this.meta.id);else if("documentLibrary"==this.meta.parentReference.driveType)var e=this.meta.parentReference.path,e=e.substring(e.indexOf("/root:")+6),d=this.meta.webUrl,b=d.substring(0,d.length-e.length-
this.meta.name.length-(0<e.length?1:0)),d=d.substring(d.indexOf("/",8)),b=b+"/Forms/AllItems.aspx?id="+d+"&parent="+d.substring(0,d.lastIndexOf("/"));else if("business"==this.meta.parentReference.driveType)var b=this.meta["@microsoft.graph.downloadUrl"],c=b.indexOf("/_layouts/15/download.aspx?"),e=d=this.meta.webUrl,d=d.substring(8),d=d.substring(d.indexOf("/")),e=e.substring(0,e.lastIndexOf("/")),e=e.substring(e.indexOf("/",8)),b=b.substring(0,c)+"/_layouts/15/onedrive.aspx?id="+d+"&parent="+e}catch(g){}this.ui.editor.graph.openLink(b)};
OneDriveFile.prototype.getId=function(){return this.getIdOf(this.meta)};OneDriveFile.prototype.getParentId=function(){return this.getIdOf(this.meta,!0)};OneDriveFile.prototype.getIdOf=function(b,e){return(null!=b.parentReference&&null!=b.parentReference.driveId?b.parentReference.driveId+"/":"")+(null!=e?b.parentReference.id:b.id)};OneDriveFile.prototype.getChannelId=function(){return"W-"+DrawioFile.prototype.getChannelId.apply(this,arguments)};OneDriveFile.prototype.getHash=function(){return"W"+encodeURIComponent(this.getId())};
@@ -11620,25 +11620,25 @@ var n=m.results,q=0;if(null==n||0==n.length)mxUtils.write(f,mxResources.get("noD
f.appendChild(n)})(n[y],y,t),q++}m.has_more?(g=m.next_cursor,0==q?k():(f.appendChild(v),u=function(){f.scrollTop>=f.scrollHeight-f.offsetHeight&&k()},mxEvent.addListener(f,"scroll",u))):0==q&&""==f.innerHTML&&mxUtils.write(f,mxResources.get("noDBs"))}),t)});A()};NotionClient.prototype.logout=function(){this.executeRequest("/removeToken",null,"GET",function(){},function(){});this.setUser(null);b=null}})();DrawioComment=function(b,e,d,c,g,k,n){this.file=b;this.id=e;this.content=d;this.modifiedDate=c;this.createdDate=g;this.isResolved=k;this.user=n;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,e,d,c,g){e()};DrawioComment.prototype.editComment=function(b,e,d){e()};DrawioComment.prototype.deleteComment=function(b,e){b()};DriveComment=function(b,e,d,c,g,k,n,f){DrawioComment.call(this,b,e,d,c,g,k,n);this.pCommentId=f};mxUtils.extend(DriveComment,DrawioComment);DriveComment.prototype.addReply=function(b,e,d,c,g){b={content:b.content};c?b.verb="resolve":g&&(b.verb="reopen");this.file.ui.drive.executeRequest({url:"/files/"+this.file.getId()+"/comments/"+this.id+"/replies",params:b,method:"POST"},mxUtils.bind(this,function(b){e(b.replyId)}),d)};
DriveComment.prototype.editComment=function(b,e,d){this.content=b;b={content:b};this.file.ui.drive.executeRequest(this.pCommentId?{url:"/files/"+this.file.getId()+"/comments/"+this.pCommentId+"/replies/"+this.id,params:b,method:"PATCH"}:{url:"/files/"+this.file.getId()+"/comments/"+this.id,params:b,method:"PATCH"},e,d)};
DriveComment.prototype.deleteComment=function(b,e){this.file.ui.drive.executeRequest(this.pCommentId?{url:"/files/"+this.file.getId()+"/comments/"+this.pCommentId+"/replies/"+this.id,method:"DELETE"}:{url:"/files/"+this.file.getId()+"/comments/"+this.id,method:"DELETE"},b,e)};function mxODPicker(b,e,d,c,g,k,n,f,l,m,p,q,t){function v(b,c){c=c||document;return c.querySelector(b)}function u(b,d,e){if(null==b["@microsoft.graph.downloadUrl"])if(null==b.parentReference)e();else{c(b.id,b.parentReference.driveId,function(b){u(b,d,e)},e);return}var f=new XMLHttpRequest;f.open("GET",b["@microsoft.graph.downloadUrl"]);var g=b.file?"image/png"==b.file.mimeType:!1;f.onreadystatechange=function(){if(4==this.readyState){if(200<=this.status&&299>=this.status)try{var b=f.responseText;
-g&&(b="data:image/png;base64,"+Editor.base64Encode(b),b=Editor.extractGraphModelFromPng(b));var c=mxUtils.parseXml(b),k="mxlibrary"==c.documentElement.nodeName?c.documentElement:Editor.extractGraphModel(c.documentElement);if(null!=k){d(k.ownerDocument);return}}catch(T){}e()}};g&&f.overrideMimeType&&f.overrideMimeType("text/plain; charset=x-user-defined");f.send()}function x(){q&&null!=J?I.exportToCanvas(function(b){b=EditorUi.prototype.createImageDataUri(b,null,"png");n(H,b);k(H)},400,null,null,function(b){console.log(b)},
-600,null,null,null,null,null,J):(n(H,void 0),k(H))}function A(b){function c(b){O.style.background="transparent";O.innerHTML="";var c=document.createElement("div");c.className="odPreviewStatus";mxUtils.write(c,b);O.appendChild(c);G.stop()}if(null!=O)if(O.style.background="transparent",O.innerHTML="",null==b||b.folder||/\.drawiolib$/.test(b.name))c(mxResources.get("noPreview"));else try{null!=b.remoteItem&&(b=b.remoteItem),Y=b,G.spin(O),u(b,function(d){G.stop();if(Y==b)if("mxlibrary"==d.documentElement.nodeName)c(mxResources.get("noPreview"));
-else{var e=d.getElementsByTagName("diagram");J=AspectDialog.prototype.createViewer(O,0==e.length?d.documentElement:e[0],null,"transparent")}},function(){H=null;c(mxResources.get("notADiagramFile"))})}catch(V){H=null,c(mxResources.get("notADiagramFile"))}}function z(){var b=v(".odFilesBreadcrumb");if(null!=b){b.innerHTML="";for(var c=0;c<N.length-1;c++){var d=document.createElement("span");d.className="odBCFolder";d.innerHTML=mxUtils.htmlEntities(N[c].name||mxResources.get("home"));b.appendChild(d);
-(function(b,c){d.addEventListener("click",function(){e(null);N=N.slice(0,c);y(b.driveId,b.folderId,b.siteId,b.name)})})(N[c],c);var f=document.createElement("span");f.innerHTML=" &gt; ";b.appendChild(f)}null!=N[N.length-1]&&(c=document.createElement("span"),c.innerHTML=mxUtils.htmlEntities(1==N.length?mxResources.get("officeSelDiag"):N[N.length-1].name||mxResources.get("home")),b.appendChild(c))}}function B(){if(null!=H&&!P)if("sharepoint"==K)y("site",null,H.id,H.displayName);else if("site"==K)y("subsite",
-null,H.id,H.name);else{var b=H.folder;H=H.remoteItem?H.remoteItem:H;var c=(H.parentReference?H.parentReference.driveId:null)||K,d=H.id;b?y(c,d,null,H.name):x()}}function y(b,c,k,m,n){function p(c){G.stop();var d=document.createElement("table");d.className="odFileListGrid";for(var f=null,g=0,k=0;null!=c&&k<c.length;k++){var m=c[k];if(1!=y||!m.webUrl||0<m.webUrl.indexOf("sharepoint.com/sites/")||0>m.webUrl.indexOf("sharepoint.com/")){var n=m.displayName||m.name,p=mxUtils.htmlEntities(m.description||
+g&&(b="data:image/png;base64,"+Editor.base64Encode(b),b=Editor.extractGraphModelFromPng(b));var c=mxUtils.parseXml(b),k="mxlibrary"==c.documentElement.nodeName?c.documentElement:Editor.extractGraphModel(c.documentElement);if(null!=k){d(k.ownerDocument);return}}catch(Z){}e()}};g&&f.overrideMimeType&&f.overrideMimeType("text/plain; charset=x-user-defined");f.send()}function x(){q&&null!=K?J.exportToCanvas(function(b){b=EditorUi.prototype.createImageDataUri(b,null,"png");n(H,b);k(H)},400,null,null,function(b){console.log(b)},
+600,null,null,null,null,null,K):(n(H,void 0),k(H))}function A(b){function c(b){Q.style.background="transparent";Q.innerHTML="";var c=document.createElement("div");c.className="odPreviewStatus";mxUtils.write(c,b);Q.appendChild(c);F.stop()}if(null!=Q)if(Q.style.background="transparent",Q.innerHTML="",null==b||b.folder||/\.drawiolib$/.test(b.name))c(mxResources.get("noPreview"));else try{null!=b.remoteItem&&(b=b.remoteItem),W=b,F.spin(Q),u(b,function(d){F.stop();if(W==b)if("mxlibrary"==d.documentElement.nodeName)c(mxResources.get("noPreview"));
+else{var e=d.getElementsByTagName("diagram");K=AspectDialog.prototype.createViewer(Q,0==e.length?d.documentElement:e[0],null,"transparent")}},function(){H=null;c(mxResources.get("notADiagramFile"))})}catch(N){H=null,c(mxResources.get("notADiagramFile"))}}function z(){var b=v(".odFilesBreadcrumb");if(null!=b){b.innerHTML="";for(var c=0;c<P.length-1;c++){var d=document.createElement("span");d.className="odBCFolder";d.innerHTML=mxUtils.htmlEntities(P[c].name||mxResources.get("home"));b.appendChild(d);
+(function(b,c){d.addEventListener("click",function(){e(null);P=P.slice(0,c);y(b.driveId,b.folderId,b.siteId,b.name)})})(P[c],c);var f=document.createElement("span");f.innerHTML=" &gt; ";b.appendChild(f)}null!=P[P.length-1]&&(c=document.createElement("span"),c.innerHTML=mxUtils.htmlEntities(1==P.length?mxResources.get("officeSelDiag"):P[P.length-1].name||mxResources.get("home")),b.appendChild(c))}}function B(){if(null!=H&&!S)if("sharepoint"==I)y("site",null,H.id,H.displayName);else if("site"==I)y("subsite",
+null,H.id,H.name);else{var b=H.folder;H=H.remoteItem?H.remoteItem:H;var c=(H.parentReference?H.parentReference.driveId:null)||I,d=H.id;b?y(c,d,null,H.name):x()}}function y(b,c,k,m,n){function p(c){F.stop();var d=document.createElement("table");d.className="odFileListGrid";for(var f=null,g=0,k=0;null!=c&&k<c.length;k++){var m=c[k];if(1!=y||!m.webUrl||0<m.webUrl.indexOf("sharepoint.com/sites/")||0>m.webUrl.indexOf("sharepoint.com/")){var n=m.displayName||m.name,p=mxUtils.htmlEntities(m.description||
n);y&&(m.folder=!0);var q=null!=m.folder;if(!l||q){var t=document.createElement("tr");t.className=g++%2?"odOddRow":"odEvenRow";var D=document.createElement("td");D.style.width="36px";var v=document.createElement("img");v.src="/images/"+(q?"folder.png":"file.png");v.className="odFileImg";D.appendChild(v);t.appendChild(D);D=document.createElement("td");q=document.createElement("div");q.className="odFileTitle";q.innerHTML=mxUtils.htmlEntities(n);q.setAttribute("title",p);D.appendChild(q);t.appendChild(D);
-d.appendChild(t);null==f&&(f=t,f.className+=" odRowSelected",H=m,K=b,e(H));(function(c,d){t.addEventListener("dblclick",B);t.addEventListener("click",function(){f!=d&&(f.className=f.className.replace("odRowSelected",""),f=d,f.className+=" odRowSelected",H=c,K=b,e(H))})})(m,t)}}}0==g?(c=document.createElement("div"),c.className="odEmptyFolder",c.innerHTML=mxUtils.htmlEntities(mxResources.get("folderEmpty",null,"Folder is empty!")),u.appendChild(c)):u.appendChild(d);z();P=!1}if(!P){v(".odCatsList").style.display=
-"block";v(".odFilesSec").style.display="block";null!=O&&(O.innerHTML="",O.style.top="50%");var q=P=!0,y=0;M=arguments;var t=setTimeout(function(){P=q=!1;G.stop();f(mxResources.get("timeout"))},2E4),u=v(".odFilesList");u.innerHTML="";G.spin(u);var D;switch(b){case "recent":N=[{name:mxResources.get("recent",null,"Recent"),driveId:b}];D=g()||{};var C=[],x;for(x in D)C.push(D[x]);clearTimeout(t);p(C);return;case "shared":D="/me/drive/sharedWithMe";N=[{name:mxResources.get("sharedWithMe",null,"Shared With Me"),
-driveId:b}];break;case "sharepoint":D="/sites?search=";N=[{name:mxResources.get("sharepointSites",null,"Sharepoint Sites"),driveId:b}];y=1;break;case "site":N.push({name:m,driveId:b,folderId:c,siteId:k});D="/sites/"+k+"/drives";y=2;break;case "subsite":N.push({name:m,driveId:b,folderId:c,siteId:k});D="/drives/"+k+(c?"/items/"+c:"/root")+"/children";break;case "search":b=K;N=[{driveId:b,name:mxResources.get("back",null,"Back")}];n=encodeURIComponent(n.replace(/\'/g,"\\'"));D=b?"/drives/"+b+"/root/search(q='"+
-n+"')":"/me/drive/root/search(q='"+n+"')";break;default:null==c?N=[{driveId:b}]:N.push({name:m,driveId:b,folderId:c}),D=(b?"/drives/"+b:"/me/drive")+(c?"/items/"+c:"/root")+"/children"}y||(D+=(0<D.indexOf("?")?"&":"?")+"select=id,name,description,parentReference,file,createdBy,lastModifiedBy,lastModifiedDateTime,size,folder,remoteItem,@microsoft.graph.downloadUrl");d(D,function(b){if(q){clearTimeout(t);b=b.value||[];for(var c=y?b:[],d=0;!y&&d<b.length;d++){var e=b[d],f=e.file?e.file.mimeType:null;
-(e.folder||"text/html"==f||"text/xml"==f||"application/xml"==f||"image/png"==f||/\.svg$/.test(e.name)||/\.html$/.test(e.name)||/\.xml$/.test(e.name)||/\.png$/.test(e.name)||/\.drawio$/.test(e.name)||/\.drawiolib$/.test(e.name))&&c.push(e)}p(c)}},function(b){if(q){clearTimeout(t);var c=null;try{c=JSON.parse(b.responseText).error.message}catch(ca){}f(mxResources.get("errorFetchingFolder",null,"Error fetching folder items")+(null!=c?" ("+c+")":""));P=!1;G.stop()}})}}function C(b){S.className=S.className.replace("odCatSelected",
-"");S=b;S.className+=" odCatSelected"}function E(b){P||(da=null,y("search",null,null,null,b))}var D="";null==e&&(e=A,D='<div style="text-align: center;" class="odPreview"></div>');null==g&&(g=function(){var b=null;try{b=JSON.parse(localStorage.getItem("mxODPickerRecentList"))}catch(aa){}return b});null==k&&(k=function(b){if(null!=b){var c=g()||{};delete b["@microsoft.graph.downloadUrl"];c[b.id]=b;localStorage.setItem("mxODPickerRecentList",JSON.stringify(c))}});var D='<div class="odCatsList"><div class="odCatsListLbl">OneDrive</div><div id="odFiles" class="odCatListTitle odCatSelected">'+
+d.appendChild(t);null==f&&(f=t,f.className+=" odRowSelected",H=m,I=b,e(H));(function(c,d){t.addEventListener("dblclick",B);t.addEventListener("click",function(){f!=d&&(f.className=f.className.replace("odRowSelected",""),f=d,f.className+=" odRowSelected",H=c,I=b,e(H))})})(m,t)}}}0==g?(c=document.createElement("div"),c.className="odEmptyFolder",c.innerHTML=mxUtils.htmlEntities(mxResources.get("folderEmpty",null,"Folder is empty!")),u.appendChild(c)):u.appendChild(d);z();S=!1}if(!S){v(".odCatsList").style.display=
+"block";v(".odFilesSec").style.display="block";null!=Q&&(Q.innerHTML="",Q.style.top="50%");var q=S=!0,y=0;M=arguments;var t=setTimeout(function(){S=q=!1;F.stop();f(mxResources.get("timeout"))},2E4),u=v(".odFilesList");u.innerHTML="";F.spin(u);var D;switch(b){case "recent":P=[{name:mxResources.get("recent",null,"Recent"),driveId:b}];D=g()||{};var C=[],x;for(x in D)C.push(D[x]);clearTimeout(t);p(C);return;case "shared":D="/me/drive/sharedWithMe";P=[{name:mxResources.get("sharedWithMe",null,"Shared With Me"),
+driveId:b}];break;case "sharepoint":D="/sites?search=";P=[{name:mxResources.get("sharepointSites",null,"Sharepoint Sites"),driveId:b}];y=1;break;case "site":P.push({name:m,driveId:b,folderId:c,siteId:k});D="/sites/"+k+"/drives";y=2;break;case "subsite":P.push({name:m,driveId:b,folderId:c,siteId:k});D="/drives/"+k+(c?"/items/"+c:"/root")+"/children";break;case "search":b=I;P=[{driveId:b,name:mxResources.get("back",null,"Back")}];n=encodeURIComponent(n.replace(/\'/g,"\\'"));D=b?"/drives/"+b+"/root/search(q='"+
+n+"')":"/me/drive/root/search(q='"+n+"')";break;default:null==c?P=[{driveId:b}]:P.push({name:m,driveId:b,folderId:c}),D=(b?"/drives/"+b:"/me/drive")+(c?"/items/"+c:"/root")+"/children"}y||(D+=(0<D.indexOf("?")?"&":"?")+"select=id,name,description,parentReference,file,createdBy,lastModifiedBy,lastModifiedDateTime,size,folder,remoteItem,@microsoft.graph.downloadUrl");d(D,function(b){if(q){clearTimeout(t);b=b.value||[];for(var c=y?b:[],d=0;!y&&d<b.length;d++){var e=b[d],f=e.file?e.file.mimeType:null;
+(e.folder||"text/html"==f||"text/xml"==f||"application/xml"==f||"image/png"==f||/\.svg$/.test(e.name)||/\.html$/.test(e.name)||/\.xml$/.test(e.name)||/\.png$/.test(e.name)||/\.drawio$/.test(e.name)||/\.drawiolib$/.test(e.name))&&c.push(e)}p(c)}},function(b){if(q){clearTimeout(t);var c=null;try{c=JSON.parse(b.responseText).error.message}catch(U){}f(mxResources.get("errorFetchingFolder",null,"Error fetching folder items")+(null!=c?" ("+c+")":""));S=!1;F.stop()}})}}function C(b){T.className=T.className.replace("odCatSelected",
+"");T=b;T.className+=" odCatSelected"}function G(b){S||(da=null,y("search",null,null,null,b))}var D="";null==e&&(e=A,D='<div style="text-align: center;" class="odPreview"></div>');null==g&&(g=function(){var b=null;try{b=JSON.parse(localStorage.getItem("mxODPickerRecentList"))}catch(ea){}return b});null==k&&(k=function(b){if(null!=b){var c=g()||{};delete b["@microsoft.graph.downloadUrl"];c[b.id]=b;localStorage.setItem("mxODPickerRecentList",JSON.stringify(c))}});var D='<div class="odCatsList"><div class="odCatsListLbl">OneDrive</div><div id="odFiles" class="odCatListTitle odCatSelected">'+
mxUtils.htmlEntities(mxResources.get("files"))+'</div><div id="odRecent" class="odCatListTitle">'+mxUtils.htmlEntities(mxResources.get("recent"))+'</div><div id="odShared" class="odCatListTitle">'+mxUtils.htmlEntities(mxResources.get("shared"))+'</div><div id="odSharepoint" class="odCatListTitle">'+mxUtils.htmlEntities(mxResources.get("sharepoint"))+'</div></div><div class="odFilesSec"><div class="searchBar" style="display:none"><input type="search" id="odSearchBox" placeholder="'+mxUtils.htmlEntities(mxResources.get("search"))+
'"></div><div class="odFilesBreadcrumb"></div><div id="refreshOD" class="odRefreshButton"><img src="/images/update32.png" width="16" height="16" title="'+mxUtils.htmlEntities(mxResources.get("refresh"))+'Refresh" border="0"/></div><div class="odFilesList"></div></div>'+D+(m?'<div id="odBackBtn" class="odLinkBtn">&lt; '+mxUtils.htmlEntities(mxResources.get("back"))+"</div>":"")+(p?'<button id="odSubmitBtn" class="odSubmitBtn">'+mxUtils.htmlEntities(mxResources.get(l?"save":"open"))+"</button>":""),
-F=null!=window.Editor&&null!=Editor.isDarkMode&&Editor.isDarkMode(),F=".odCatsList {\tbox-sizing: border-box;\tposition:absolute;\ttop:0px;\tbottom:50%;\twidth:30%;\tborder: 1px solid #CCCCCC;\tborder-bottom:none;\tdisplay: inline-block;\toverflow-x: hidden;\toverflow-y: auto;}.odCatsListLbl {\theight: 17px;\tcolor: #6D6D6D;\tfont-size: 14px;\tfont-weight: bold;\tline-height: 17px;\tmargin: 10px 0 3px 5px;}.odFilesSec {\tbox-sizing: border-box;\tposition:absolute;\tleft:30%;\ttop:0px;\tbottom:50%;\twidth: 70%;\tborder: 1px solid #CCCCCC;\tborder-left:none;\tborder-bottom:none;\tdisplay: inline-block;\toverflow: hidden;}.odFilesBreadcrumb {\tbox-sizing: border-box;\tposition:absolute;\tmin-height: 32px;\tleft:0px;\tright:20px;\ttext-overflow:ellipsis;\toverflow:hidden;\tfont-size: 13px;\tcolor: #6D6D6D;\tpadding: 5px;}.odRefreshButton {\tbox-sizing: border-box;\tposition:absolute;\tright:0px;\ttop:0px;\tpadding: 4px;\tmargin: 1px;\theight:24px;\tcursor:default;}.odRefreshButton>img {\topacity:0.5;}.odRefreshButton:hover {\tbackground-color:#ddd;\tborder-radius:50%;}.odRefreshButton:active {\topacity:0.7;}.odFilesList {\tbox-sizing: border-box;\tposition:absolute;\ttop:32px;\tbottom:0px;\twidth: 100%;\toverflow-x: hidden;\toverflow-y: auto;}.odFileImg {\twidth: 24px;\tpadding-left: 5px;\tpadding-right: 5px;}.odFileTitle {\tcursor: default;\tfont-weight: normal;\tcolor: #666666 !important;\twidth: calc(100% - 20px);\twhite-space: nowrap;\toverflow: hidden;\ttext-overflow: ellipsis;}.odFileListGrid {\twidth: 100%;\twhite-space: nowrap;\tfont-size: 13px; box-sizing: border-box; border-spacing: 0;}.odOddRow {"+
-(F?"":"\tbackground-color: #eeeeee;")+"}.odEvenRow {"+(F?"":"\tbackground-color: #FFFFFF;")+"}.odRowSelected {\tbackground-color: #cadfff;}.odCatListTitle {\tbox-sizing: border-box;\theight: 17px;\tcursor: default;\tcolor: #666666;\tfont-size: 14px;\tline-height: 17px;\tmargin: 5px 0 5px 0px; padding-left: 10px;}.odCatSelected {\tfont-weight: bold;\tbackground-color: #cadfff;}.odEmptyFolder {\theight: 17px;\tcolor: #6D6D6D;\tfont-size: 14px;\tfont-weight: bold;\tline-height: 17px;\tmargin: 10px 0 3px 5px;\twidth: 100%; text-align: center;}.odBCFolder {\tcursor: pointer;\tcolor: #0432ff;}.odPreviewStatus {\tposition:absolute;\ttext-align:center;\twidth:100%;\ttop:50%;\ttransform: translateY(-50%);\tfont-size:13px;\topacity:0.5;}.odPreview { position:absolute;\t overflow:hidden;\t border: 1px solid #CCCCCC; bottom:0px; top: 50%; left:0px; right:0px;}.odLinkBtn { position: absolute;\tfont-size: 12px;\tcursor: pointer;\tcolor: #6D6D6D;\tleft: 5px;\tbottom: 3px;}.odSubmitBtn { position: absolute;\tcolor: #333;\tright: 5px;\tbottom: 5px;}",
-G=new Spinner({left:"50%",lines:12,length:8,width:3,radius:5,rotate:0,color:"#000",speed:1,trail:60,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2E9}),I=new Editor,J=null,H=null,K=null,P=!1,N=[],M=null,Y=null;this.getSelectedItem=function(){null!=H&&k(H);return H};if(null==v("#mxODPickerCss")){var W=document.head||document.getElementsByTagName("head")[0],L=document.createElement("style");W.appendChild(L);L.type="text/css";L.id="mxODPickerCss";L.appendChild(document.createTextNode(F))}b.innerHTML=
-D;var O=v(".odPreview"),S=v("#odFiles");b=function(b,c){c=c||document;return c.querySelectorAll(b)}(".odCatListTitle");for(D=0;D<b.length;D++)b[D].addEventListener("click",function(){H=Y=null;if(!P)switch(C(this),this.id){case "odFiles":y();break;case "odRecent":y("recent");break;case "odShared":y("shared");break;case "odSharepoint":y("sharepoint")}});var da=null;v("#odSearchBox").addEventListener("keyup",function(b){var c=this;null!=da&&clearTimeout(da);13==b.keyCode?E(c.value):da=setTimeout(function(){E(c.value)},
-500)});v("#refreshOD").addEventListener("click",function(){null!=M&&(e(null),y.apply(this,M))});m&&v("#odBackBtn").addEventListener("click",m);p&&v("#odSubmitBtn").addEventListener("click",x);null!=t?(m=t.pop(),"sharepoint"==t[0].driveId&&C(v("#odSharepoint")),N=t,y(m.driveId,m.folderId,m.siteId,m.name)):y()};App=function(b,e,d){EditorUi.call(this,b,e,null!=d?d:"1"==urlParams.lightbox||"min"==uiTheme&&"0"!=urlParams.chrome);mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||(window.onunload=mxUtils.bind(this,function(){var b=this.getCurrentFile();if(null!=b&&b.isModified()){var d={category:"DISCARD-FILE-"+b.getHash(),action:(b.savingFile?"saving":"")+(b.savingFile&&null!=b.savingFileTime?"_"+Math.round((Date.now()-b.savingFileTime.getTime())/1E3):"")+(null!=b.saveLevel?"-sl_"+b.saveLevel:"")+"-age_"+(null!=
+E=null!=window.Editor&&null!=Editor.isDarkMode&&Editor.isDarkMode(),E=".odCatsList {\tbox-sizing: border-box;\tposition:absolute;\ttop:0px;\tbottom:50%;\twidth:30%;\tborder: 1px solid #CCCCCC;\tborder-bottom:none;\tdisplay: inline-block;\toverflow-x: hidden;\toverflow-y: auto;}.odCatsListLbl {\theight: 17px;\tcolor: #6D6D6D;\tfont-size: 14px;\tfont-weight: bold;\tline-height: 17px;\tmargin: 10px 0 3px 5px;}.odFilesSec {\tbox-sizing: border-box;\tposition:absolute;\tleft:30%;\ttop:0px;\tbottom:50%;\twidth: 70%;\tborder: 1px solid #CCCCCC;\tborder-left:none;\tborder-bottom:none;\tdisplay: inline-block;\toverflow: hidden;}.odFilesBreadcrumb {\tbox-sizing: border-box;\tposition:absolute;\tmin-height: 32px;\tleft:0px;\tright:20px;\ttext-overflow:ellipsis;\toverflow:hidden;\tfont-size: 13px;\tcolor: #6D6D6D;\tpadding: 5px;}.odRefreshButton {\tbox-sizing: border-box;\tposition:absolute;\tright:0px;\ttop:0px;\tpadding: 4px;\tmargin: 1px;\theight:24px;\tcursor:default;}.odRefreshButton>img {\topacity:0.5;}.odRefreshButton:hover {\tbackground-color:#ddd;\tborder-radius:50%;}.odRefreshButton:active {\topacity:0.7;}.odFilesList {\tbox-sizing: border-box;\tposition:absolute;\ttop:32px;\tbottom:0px;\twidth: 100%;\toverflow-x: hidden;\toverflow-y: auto;}.odFileImg {\twidth: 24px;\tpadding-left: 5px;\tpadding-right: 5px;}.odFileTitle {\tcursor: default;\tfont-weight: normal;\tcolor: #666666 !important;\twidth: calc(100% - 20px);\twhite-space: nowrap;\toverflow: hidden;\ttext-overflow: ellipsis;}.odFileListGrid {\twidth: 100%;\twhite-space: nowrap;\tfont-size: 13px; box-sizing: border-box; border-spacing: 0;}.odOddRow {"+
+(E?"":"\tbackground-color: #eeeeee;")+"}.odEvenRow {"+(E?"":"\tbackground-color: #FFFFFF;")+"}.odRowSelected {\tbackground-color: #cadfff;}.odCatListTitle {\tbox-sizing: border-box;\theight: 17px;\tcursor: default;\tcolor: #666666;\tfont-size: 14px;\tline-height: 17px;\tmargin: 5px 0 5px 0px; padding-left: 10px;}.odCatSelected {\tfont-weight: bold;\tbackground-color: #cadfff;}.odEmptyFolder {\theight: 17px;\tcolor: #6D6D6D;\tfont-size: 14px;\tfont-weight: bold;\tline-height: 17px;\tmargin: 10px 0 3px 5px;\twidth: 100%; text-align: center;}.odBCFolder {\tcursor: pointer;\tcolor: #0432ff;}.odPreviewStatus {\tposition:absolute;\ttext-align:center;\twidth:100%;\ttop:50%;\ttransform: translateY(-50%);\tfont-size:13px;\topacity:0.5;}.odPreview { position:absolute;\t overflow:hidden;\t border: 1px solid #CCCCCC; bottom:0px; top: 50%; left:0px; right:0px;}.odLinkBtn { position: absolute;\tfont-size: 12px;\tcursor: pointer;\tcolor: #6D6D6D;\tleft: 5px;\tbottom: 3px;}.odSubmitBtn { position: absolute;\tcolor: #333;\tright: 5px;\tbottom: 5px;}",
+F=new Spinner({left:"50%",lines:12,length:8,width:3,radius:5,rotate:0,color:"#000",speed:1,trail:60,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2E9}),J=new Editor,K=null,H=null,I=null,S=!1,P=[],M=null,W=null;this.getSelectedItem=function(){null!=H&&k(H);return H};if(null==v("#mxODPickerCss")){var X=document.head||document.getElementsByTagName("head")[0],L=document.createElement("style");X.appendChild(L);L.type="text/css";L.id="mxODPickerCss";L.appendChild(document.createTextNode(E))}b.innerHTML=
+D;var Q=v(".odPreview"),T=v("#odFiles");b=function(b,c){c=c||document;return c.querySelectorAll(b)}(".odCatListTitle");for(D=0;D<b.length;D++)b[D].addEventListener("click",function(){H=W=null;if(!S)switch(C(this),this.id){case "odFiles":y();break;case "odRecent":y("recent");break;case "odShared":y("shared");break;case "odSharepoint":y("sharepoint")}});var da=null;v("#odSearchBox").addEventListener("keyup",function(b){var c=this;null!=da&&clearTimeout(da);13==b.keyCode?G(c.value):da=setTimeout(function(){G(c.value)},
+500)});v("#refreshOD").addEventListener("click",function(){null!=M&&(e(null),y.apply(this,M))});m&&v("#odBackBtn").addEventListener("click",m);p&&v("#odSubmitBtn").addEventListener("click",x);null!=t?(m=t.pop(),"sharepoint"==t[0].driveId&&C(v("#odSharepoint")),P=t,y(m.driveId,m.folderId,m.siteId,m.name)):y()};App=function(b,e,d){EditorUi.call(this,b,e,null!=d?d:"1"==urlParams.lightbox||"min"==uiTheme&&"0"!=urlParams.chrome);mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||(window.onunload=mxUtils.bind(this,function(){var b=this.getCurrentFile();if(null!=b&&b.isModified()){var d={category:"DISCARD-FILE-"+b.getHash(),action:(b.savingFile?"saving":"")+(b.savingFile&&null!=b.savingFileTime?"_"+Math.round((Date.now()-b.savingFileTime.getTime())/1E3):"")+(null!=b.saveLevel?"-sl_"+b.saveLevel:"")+"-age_"+(null!=
b.ageStart?Math.round((Date.now()-b.ageStart.getTime())/1E3):"x")+(this.editor.autosave?"":"-nosave")+(b.isAutosave()?"":"-noauto")+"-open_"+(null!=b.opened?Math.round((Date.now()-b.opened.getTime())/1E3):"x")+"-save_"+(null!=b.lastSaved?Math.round((Date.now()-b.lastSaved.getTime())/1E3):"x")+"-change_"+(null!=b.lastChanged?Math.round((Date.now()-b.lastChanged.getTime())/1E3):"x")+"-alive_"+Math.round((Date.now()-App.startTime.getTime())/1E3),label:null!=b.sync?"client_"+b.sync.clientId:"nosync"};
b.constructor==DriveFile&&null!=b.desc&&null!=this.drive&&(d.label+=(null!=this.drive.user?"-user_"+this.drive.user.id:"-nouser")+"-rev_"+b.desc.headRevisionId+"-mod_"+b.desc.modifiedDate+"-size_"+b.getSize()+"-mime_"+b.desc.mimeType);EditorUi.logEvent(d)}}));this.editor.addListener("autosaveChanged",mxUtils.bind(this,function(){var b=this.getCurrentFile();null!=b&&EditorUi.logEvent({category:(this.editor.autosave?"ON":"OFF")+"-AUTOSAVE-FILE-"+b.getHash(),action:"changed",label:"autosave_"+(this.editor.autosave?
"on":"off")})}));mxClient.IS_SVG?mxGraph.prototype.warningImage.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAE7SURBVHjaYvz//z8DJQAggBjwGXDuHMP/tWuD/uPTCxBAOA0AaQRK/f/+XeJ/cbHlf1wGAAQQTgPu3QNLgfHSpZo4DQAIIKwGwGyH4e/fFbG6AiQJEEAs2Ew2NFzH8OOHBMO6dT/A/KCg7wxGRh+wuhQggDBcALMdFIAcHBxgDGJjcwVIIUAAYbhAUXEdVos4OO4DXcGBIQ4QQCguQPY7sgtgAYruCpAgQACx4LJdU1OCwctLEcyWlLwPJF+AXQE0EMUBAAEEdwF6yMOiD4RRY0QT7gqQAEAAseDzu6XldYYPH9DD4joQa8L5AAEENgWb7SBcXa0JDQMBrK4AcQACiAlfyOMCEFdAnAYQQEz4FLa0XGf4/v0H0IIPONUABBAjyBmMjIwMS5cK/L927QORbtBkaG29DtYLEGAAH6f7oq3Zc+kAAAAASUVORK5CYII=":
@@ -11722,10 +11722,10 @@ App.prototype.onBeforeUnload=function(){if("1"==urlParams.embed&&this.editor.mod
App.prototype.updateDocumentTitle=function(){if(!this.editor.graph.isLightboxView()){var b=this.editor.appName,e=this.getCurrentFile();this.isOfflineApp()&&(b+=" app");null!=e&&(b=(null!=e.getTitle()?e.getTitle():this.defaultFilename)+" - "+b);document.title!=b&&(document.title=b,b=this.editor.graph,b.invalidateDescendantsWithPlaceholders(b.model.getRoot()),b.view.validate())}};
App.prototype.getThumbnail=function(b,e){var d=!1;try{var c=!0,g=window.setTimeout(mxUtils.bind(this,function(){c=!1;e(null)}),this.timeout),k=mxUtils.bind(this,function(b){window.clearTimeout(g);c&&e(b)});null==this.thumbImageCache&&(this.thumbImageCache={});var n=this.editor.graph,f=n.backgroundImage,l=null!=n.themes&&"darkTheme"==n.defaultThemeName;if(null!=this.pages&&(l||this.currentPage!=this.pages[0])){var m=n.getGlobalVariable,n=this.createTemporaryGraph(n.getStylesheet());n.setBackgroundImage=
this.editor.graph.setBackgroundImage;var p=this.pages[0];this.currentPage==p?n.setBackgroundImage(f):null!=p.viewState&&null!=p.viewState&&(f=p.viewState.backgroundImage,n.setBackgroundImage(f));n.getGlobalVariable=function(b){return"page"==b?p.getName():"pagenumber"==b?1:m.apply(this,arguments)};n.getGlobalVariable=m;document.body.appendChild(n.container);n.model.setRoot(p.root)}if(mxClient.IS_CHROMEAPP||this.useCanvasForExport)this.editor.exportToCanvas(mxUtils.bind(this,function(b){try{n!=this.editor.graph&&
-null!=n.container.parentNode&&n.container.parentNode.removeChild(n.container)}catch(I){b=null}k(b)}),b,this.thumbImageCache,"#ffffff",function(){k()},null,null,null,null,null,null,n,null,null,null,null,"diagram",null),d=!0;else if(this.canvasSupported&&null!=this.getCurrentFile()){var q=document.createElement("canvas"),t=n.getGraphBounds(),v=n.view.translate,u=n.view.scale;null!=f&&(t=mxRectangle.fromRectangle(t),t.add(new mxRectangle((v.x+f.x)*u,(v.y+f.y)*u,f.width*u,f.height*u)));var x=b/t.width,
-x=Math.min(1,Math.min(3*b/(4*t.height),x)),A=Math.floor(t.x),z=Math.floor(t.y);q.setAttribute("width",Math.ceil(x*(t.width+4)));q.setAttribute("height",Math.ceil(x*(t.height+4)));var B=q.getContext("2d");B.scale(x,x);B.translate(-A,-z);var y=n.background;if(null==y||""==y||y==mxConstants.NONE)y="#ffffff";B.save();B.fillStyle=y;B.fillRect(A,z,Math.ceil(t.width+4),Math.ceil(t.height+4));B.restore();if(null!=f){var C=new Image;C.src=f.src;B.drawImage(C,f.x*x,f.y*x,f.width*x,f.height*x)}var E=new mxJsCanvas(q),
-D=new mxAsyncCanvas(this.thumbImageCache);E.images=this.thumbImageCache.images;var F=new mxImageExport;F.drawShape=function(b,c){b.shape instanceof mxShape&&b.shape.checkBounds()&&(c.save(),c.translate(.5,.5),b.shape.paint(c),c.translate(-.5,-.5),c.restore())};F.drawText=function(b,c){};F.drawState(n.getView().getState(n.model.root),D);D.finish(mxUtils.bind(this,function(){try{F.drawState(n.getView().getState(n.model.root),E),n!=this.editor.graph&&null!=n.container.parentNode&&n.container.parentNode.removeChild(n.container)}catch(G){q=
-null}k(q)}));d=!0}}catch(G){d=!1,null!=n&&n!=this.editor.graph&&null!=n.container.parentNode&&n.container.parentNode.removeChild(n.container)}d||window.clearTimeout(g);return d};App.prototype.createBackground=function(){var b=this.createDiv("background");b.style.position="absolute";b.style.background="white";b.style.left="0px";b.style.top="0px";b.style.bottom="0px";b.style.right="0px";mxUtils.setOpacity(b,100);return b};
+null!=n.container.parentNode&&n.container.parentNode.removeChild(n.container)}catch(J){b=null}k(b)}),b,this.thumbImageCache,"#ffffff",function(){k()},null,null,null,null,null,null,n,null,null,null,null,"diagram",null),d=!0;else if(this.canvasSupported&&null!=this.getCurrentFile()){var q=document.createElement("canvas"),t=n.getGraphBounds(),v=n.view.translate,u=n.view.scale;null!=f&&(t=mxRectangle.fromRectangle(t),t.add(new mxRectangle((v.x+f.x)*u,(v.y+f.y)*u,f.width*u,f.height*u)));var x=b/t.width,
+x=Math.min(1,Math.min(3*b/(4*t.height),x)),A=Math.floor(t.x),z=Math.floor(t.y);q.setAttribute("width",Math.ceil(x*(t.width+4)));q.setAttribute("height",Math.ceil(x*(t.height+4)));var B=q.getContext("2d");B.scale(x,x);B.translate(-A,-z);var y=n.background;if(null==y||""==y||y==mxConstants.NONE)y="#ffffff";B.save();B.fillStyle=y;B.fillRect(A,z,Math.ceil(t.width+4),Math.ceil(t.height+4));B.restore();if(null!=f){var C=new Image;C.src=f.src;B.drawImage(C,f.x*x,f.y*x,f.width*x,f.height*x)}var G=new mxJsCanvas(q),
+D=new mxAsyncCanvas(this.thumbImageCache);G.images=this.thumbImageCache.images;var E=new mxImageExport;E.drawShape=function(b,c){b.shape instanceof mxShape&&b.shape.checkBounds()&&(c.save(),c.translate(.5,.5),b.shape.paint(c),c.translate(-.5,-.5),c.restore())};E.drawText=function(b,c){};E.drawState(n.getView().getState(n.model.root),D);D.finish(mxUtils.bind(this,function(){try{E.drawState(n.getView().getState(n.model.root),G),n!=this.editor.graph&&null!=n.container.parentNode&&n.container.parentNode.removeChild(n.container)}catch(F){q=
+null}k(q)}));d=!0}}catch(F){d=!1,null!=n&&n!=this.editor.graph&&null!=n.container.parentNode&&n.container.parentNode.removeChild(n.container)}d||window.clearTimeout(g);return d};App.prototype.createBackground=function(){var b=this.createDiv("background");b.style.position="absolute";b.style.background="white";b.style.left="0px";b.style.top="0px";b.style.bottom="0px";b.style.right="0px";mxUtils.setOpacity(b,100);return b};
(function(){var b=EditorUi.prototype.setMode;App.prototype.setMode=function(e,d){b.apply(this,arguments);null!=this.mode&&(Editor.useLocalStorage=this.mode==App.MODE_BROWSER);if(null!=this.appIcon){var c=this.getCurrentFile();e=null!=c?c.getMode():e;e==App.MODE_GOOGLE?(this.appIcon.setAttribute("title",mxResources.get("openIt",[mxResources.get("googleDrive")])),this.appIcon.style.cursor="pointer"):e==App.MODE_DROPBOX?(this.appIcon.setAttribute("title",mxResources.get("openIt",[mxResources.get("dropbox")])),
this.appIcon.style.cursor="pointer"):e==App.MODE_ONEDRIVE?(this.appIcon.setAttribute("title",mxResources.get("openIt",[mxResources.get("oneDrive")])),this.appIcon.style.cursor="pointer"):(this.appIcon.removeAttribute("title"),this.appIcon.style.cursor=e==App.MODE_DEVICE?"pointer":"default")}if(d)try{if(isLocalStorage)localStorage.setItem(".mode",e);else if("undefined"!=typeof Storage){var g=new Date;g.setYear(g.getFullYear()+1);document.cookie="MODE="+e+"; expires="+g.toUTCString()}}catch(k){}}})();
App.prototype.appIconClicked=function(b){if(mxEvent.isAltDown(b))this.showSplash(!0);else{var e=this.getCurrentFile(),d=null!=e?e.getMode():null;d==App.MODE_GOOGLE?null!=e&&null!=e.desc&&null!=e.desc.parents&&0<e.desc.parents.length&&!mxEvent.isShiftDown(b)?this.openLink("https://drive.google.com/drive/folders/"+e.desc.parents[0].id):null!=e&&null!=e.getId()?this.openLink("https://drive.google.com/open?id="+e.getId()):this.openLink("https://drive.google.com/?authuser=0"):d==App.MODE_ONEDRIVE?null!=
@@ -11935,9 +11935,9 @@ function(){c.fireEvent(new mxEventObject("tags"))}),this.tagsWindow.window.setVi
function(){var b=g.isEnabled()?"findReplaceWindow":"findWindow";return null!=this[b]&&this[b].window.isVisible()}));c.actions.put("exportVsdx",new Action(mxResources.get("formatVsdx")+" (beta)...",function(){var b=null==c.pages||1>=c.pages.length;if(b)c.exportVisio();else{var d=document.createElement("div");d.style.whiteSpace="nowrap";var e=document.createElement("h3");mxUtils.write(e,mxResources.get("formatVsdx"));e.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";d.appendChild(e);
var f=c.addCheckbox(d,mxResources.get("allPages"),!b,b);f.style.marginBottom="16px";b=new CustomDialog(c,d,mxUtils.bind(this,function(){c.exportVisio(!f.checked)}),null,mxResources.get("export"));c.showDialog(b.container,300,130,!0,!0)}}));isLocalStorage&&null!=localStorage&&"1"!=urlParams.embed&&c.actions.addAction("configuration...",function(){var b=document.createElement("input");b.setAttribute("type","checkbox");b.style.marginRight="4px";b.checked=mxSettings.getShowStartScreen();b.defaultChecked=
b.checked;if(c.isSettingsEnabled()&&"1"==urlParams.sketch){var d=document.createElement("span");d.style["float"]="right";d.style.cursor="pointer";d.style.userSelect="none";d.style.marginTop="-4px";d.appendChild(b);mxUtils.write(d,mxResources.get("showStartScreen"));mxEvent.addListener(d,"click",function(c){mxEvent.getSource(c)!=b&&(b.checked=!b.checked)});header=d}var e=localStorage.getItem(Editor.configurationKey),d=[[mxResources.get("reset"),function(b,d){c.confirm(mxResources.get("areYouSure"),
-function(){try{mxEvent.isShiftDown(b)?(localStorage.removeItem(Editor.settingsKey),localStorage.removeItem(".drawio-config")):(localStorage.removeItem(Editor.configurationKey),c.hideDialog(),c.alert(mxResources.get("restartForChangeRequired")))}catch(I){c.handleError(I)}})},"Shift+Click to Reset Settings"]],f=c.actions.get("plugins");null!=f&&d.push([mxResources.get("plugins"),f.funct]);EditorUi.isElectronApp||d.push([mxResources.get("share"),function(b,d){if(0<d.value.length)try{var e=JSON.parse(d.value),
-f=window.location.protocol+"//"+window.location.host+"/"+c.getSearch()+"#_CONFIG_"+Graph.compress(JSON.stringify(e)),g=new EmbedDialog(c,f);c.showDialog(g.container,450,240,!0);g.init()}catch(K){c.handleError(K)}else c.handleError({message:mxResources.get("invalidInput")})}]);d=new TextareaDialog(c,mxResources.get("configuration")+":",null!=e?JSON.stringify(JSON.parse(e),null,2):"",function(d){if(null!=d)try{null!=b.parentNode&&(mxSettings.setShowStartScreen(b.checked),mxSettings.save());if(d==e){if(0<
-d.length){var f=JSON.parse(d);localStorage.setItem(Editor.configurationKey,JSON.stringify(f))}else localStorage.removeItem(Editor.configurationKey);c.alert(mxResources.get("restartForChangeRequired"))}c.hideDialog()}catch(I){c.handleError(I)}},null,null,null,null,null,!0,null,null,"https://www.diagrams.net/doc/faq/configure-diagram-editor",d,b.parentNode);c.showDialog(d.container,620,460,!0,!1);d.init()});if(mxClient.IS_CHROMEAPP||isLocalStorage){this.put("language",new Menu(mxUtils.bind(this,function(b,
+function(){try{mxEvent.isShiftDown(b)?(localStorage.removeItem(Editor.settingsKey),localStorage.removeItem(".drawio-config")):(localStorage.removeItem(Editor.configurationKey),c.hideDialog(),c.alert(mxResources.get("restartForChangeRequired")))}catch(J){c.handleError(J)}})},"Shift+Click to Reset Settings"]],f=c.actions.get("plugins");null!=f&&d.push([mxResources.get("plugins"),f.funct]);EditorUi.isElectronApp||d.push([mxResources.get("share"),function(b,d){if(0<d.value.length)try{var e=JSON.parse(d.value),
+f=window.location.protocol+"//"+window.location.host+"/"+c.getSearch()+"#_CONFIG_"+Graph.compress(JSON.stringify(e)),g=new EmbedDialog(c,f);c.showDialog(g.container,450,240,!0);g.init()}catch(I){c.handleError(I)}else c.handleError({message:mxResources.get("invalidInput")})}]);d=new TextareaDialog(c,mxResources.get("configuration")+":",null!=e?JSON.stringify(JSON.parse(e),null,2):"",function(d){if(null!=d)try{null!=b.parentNode&&(mxSettings.setShowStartScreen(b.checked),mxSettings.save());if(d==e){if(0<
+d.length){var f=JSON.parse(d);localStorage.setItem(Editor.configurationKey,JSON.stringify(f))}else localStorage.removeItem(Editor.configurationKey);c.alert(mxResources.get("restartForChangeRequired"))}c.hideDialog()}catch(J){c.handleError(J)}},null,null,null,null,null,!0,null,null,"https://www.diagrams.net/doc/faq/configure-diagram-editor",d,b.parentNode);c.showDialog(d.container,620,460,!0,!1);d.init()});if(mxClient.IS_CHROMEAPP||isLocalStorage){this.put("language",new Menu(mxUtils.bind(this,function(b,
d){var e=mxUtils.bind(this,function(e){var f=""==e?mxResources.get("automatic"):mxLanguageMap[e],g=null;""!=f&&(g=b.addItem(f,null,mxUtils.bind(this,function(){mxSettings.setLanguage(e);mxSettings.save();mxClient.language=e;mxResources.loadDefaultBundle=!1;mxResources.add(RESOURCE_BASE);c.alert(mxResources.get("restartForChangeRequired"))}),d),(e==mxLanguage||""==e&&null==mxLanguage)&&b.addCheckmark(g,Editor.checkmarkImage));return g});e("");b.addSeparator(d);for(var f in mxLanguageMap)e(f)})));var v=
Menus.prototype.createMenubar;Menus.prototype.createMenubar=function(b){var c=v.apply(this,arguments);if(null!=c&&"1"!=urlParams.noLangIcon){var d=this.get("language");if(null!=d){d=c.addMenu("",d.funct);d.setAttribute("title",mxResources.get("language"));d.style.width="16px";d.style.paddingTop="2px";d.style.paddingLeft="4px";d.style.zIndex="1";d.style.position="absolute";d.style.display="block";d.style.cursor="pointer";d.style.right="17px";"atlas"==uiTheme?(d.style.top="6px",d.style.right="15px"):
d.style.top="min"==uiTheme?"2px":"0px";var e=document.createElement("div");e.style.backgroundImage="url("+Editor.globeImage+")";e.style.backgroundPosition="center center";e.style.backgroundRepeat="no-repeat";e.style.backgroundSize="19px 19px";e.style.position="absolute";e.style.height="19px";e.style.width="19px";e.style.marginTop="2px";e.style.zIndex="1";d.appendChild(e);mxUtils.setOpacity(d,40);"1"==urlParams.winCtrls&&(d.style.right="95px",d.style.width="19px",d.style.height="19px",d.style.webkitAppRegion=
@@ -11946,8 +11946,8 @@ b.length)try{var d=JSON.parse(b);c.executeLayoutList(d);c.customLayoutConfig=d}c
k():c.spinner.spin(document.body,mxResources.get("loading"))&&(c.loadingOrgChart=!0,"1"==urlParams.dev?mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",function(){mxscript("js/orgchart/mxOrgChartLayout.js",k)})})}):mxscript("js/extensions.min.js",k))}var d=null,e=20,f=20,g=!0,k=function(){c.loadingOrgChart=!1;c.spinner.stop();if("undefined"!==typeof mxOrgChartLayout&&null!=d&&g){var b=c.editor.graph,
k=new mxOrgChartLayout(b,d,e,f),l=b.getDefaultParent();1<b.model.getChildCount(b.getSelectionCell())&&(l=b.getSelectionCell());k.execute(l);g=!1}},l=document.createElement("div"),m=document.createElement("div");m.style.marginTop="6px";m.style.display="inline-block";m.style.width="140px";mxUtils.write(m,mxResources.get("orgChartType")+": ");l.appendChild(m);var n=document.createElement("select");n.style.width="200px";n.style.boxSizing="border-box";for(var m=[mxResources.get("linear"),mxResources.get("hanger2"),
mxResources.get("hanger4"),mxResources.get("fishbone1"),mxResources.get("fishbone2"),mxResources.get("1ColumnLeft"),mxResources.get("1ColumnRight"),mxResources.get("smart")],p=0;p<m.length;p++){var q=document.createElement("option");mxUtils.write(q,m[p]);q.value=p;2==p&&q.setAttribute("selected","selected");n.appendChild(q)}mxEvent.addListener(n,"change",function(){d=n.value});l.appendChild(n);m=document.createElement("div");m.style.marginTop="6px";m.style.display="inline-block";m.style.width="140px";
-mxUtils.write(m,mxResources.get("parentChildSpacing")+": ");l.appendChild(m);var y=document.createElement("input");y.type="number";y.value=e;y.style.width="200px";y.style.boxSizing="border-box";l.appendChild(y);mxEvent.addListener(y,"change",function(){e=y.value});m=document.createElement("div");m.style.marginTop="6px";m.style.display="inline-block";m.style.width="140px";mxUtils.write(m,mxResources.get("siblingSpacing")+": ");l.appendChild(m);var t=document.createElement("input");t.type="number";
-t.value=f;t.style.width="200px";t.style.boxSizing="border-box";l.appendChild(t);mxEvent.addListener(t,"change",function(){f=t.value});l=new CustomDialog(c,l,function(){null==d&&(d=2);b()});c.showDialog(l.container,355,140,!0,!0)},d,null,k());b.addSeparator(d);b.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){var b=new mxParallelEdgeLayout(g);b.checkOverlap=!0;b.spacing=20;c.executeLayout(function(){b.execute(g.getDefaultParent(),g.isSelectionEmpty()?null:g.getSelectionCells())},
+mxUtils.write(m,mxResources.get("parentChildSpacing")+": ");l.appendChild(m);var t=document.createElement("input");t.type="number";t.value=e;t.style.width="200px";t.style.boxSizing="border-box";l.appendChild(t);mxEvent.addListener(t,"change",function(){e=t.value});m=document.createElement("div");m.style.marginTop="6px";m.style.display="inline-block";m.style.width="140px";mxUtils.write(m,mxResources.get("siblingSpacing")+": ");l.appendChild(m);var y=document.createElement("input");y.type="number";
+y.value=f;y.style.width="200px";y.style.boxSizing="border-box";l.appendChild(y);mxEvent.addListener(y,"change",function(){f=y.value});l=new CustomDialog(c,l,function(){null==d&&(d=2);b()});c.showDialog(l.container,355,140,!0,!0)},d,null,k());b.addSeparator(d);b.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){var b=new mxParallelEdgeLayout(g);b.checkOverlap=!0;b.spacing=20;c.executeLayout(function(){b.execute(g.getDefaultParent(),g.isSelectionEmpty()?null:g.getSelectionCells())},
!1)}),d);b.addSeparator(d);c.menus.addMenuItem(b,"runLayout",d,null,null,mxResources.get("apply")+"...")};this.put("help",new Menu(mxUtils.bind(this,function(b,d){if(!mxClient.IS_CHROMEAPP&&c.isOffline())this.addMenuItems(b,["about"],d);else{var e=b.addItem("Search:",null,null,d,null,null,!1);e.style.backgroundColor=Editor.isDarkMode()?"#505759":"whiteSmoke";e.style.cursor="default";var f=document.createElement("input");f.setAttribute("type","text");f.setAttribute("size","25");f.style.marginLeft=
"8px";mxEvent.addListener(f,"keydown",mxUtils.bind(this,function(b){var c=mxUtils.trim(f.value);13==b.keyCode&&0<c.length?(this.editorUi.openLink("https://www.diagrams.net/search?src="+(EditorUi.isElectronApp?"DESKTOP":encodeURIComponent(location.host))+"&search="+encodeURIComponent(c)),f.value="",EditorUi.logEvent({category:"SEARCH-HELP",action:"search",label:c}),window.setTimeout(mxUtils.bind(this,function(){this.editorUi.hideCurrentMenu()}),0)):27==b.keyCode&&(f.value="")}));e.firstChild.nextSibling.appendChild(f);
mxEvent.addGestureListeners(f,function(b){document.activeElement!=f&&f.focus();mxEvent.consume(b)},function(b){mxEvent.consume(b)},function(b){mxEvent.consume(b)});window.setTimeout(function(){f.focus()},0);EditorUi.isElectronApp?(c.actions.addAction("website...",function(){c.openLink("https://www.diagrams.net")}),c.actions.addAction("check4Updates",function(){c.checkForUpdates()}),this.addMenuItems(b,"- keyboardShortcuts quickStart website support -".split(" "),d),"1"!=urlParams.disableUpdate&&this.addMenuItems(b,
@@ -11956,8 +11956,8 @@ mxResources.parse("showBoundingBox=Show bounding box");mxResources.parse("create
mxUtils.bind(this,function(){if(!g.isSelectionEmpty()){var b=g.cloneCells(g.getSelectionCells()),d=g.getBoundingBoxFromGeometry(b),b=g.moveCells(b,-d.x,-d.y);c.showTextDialog("Create Sidebar Entry","this.addDataEntry('tag1 tag2', "+d.width+", "+d.height+", 'The Title', '"+Graph.compress(mxUtils.getXml(g.encodeCells(b)))+"'),")}}));c.actions.addAction("showBoundingBox",mxUtils.bind(this,function(){var b=g.getGraphBounds(),c=g.view.translate,d=g.view.scale;g.insertVertex(g.getDefaultParent(),null,"",
b.x/d-c.x,b.y/d-c.y,b.width/d,b.height/d,"fillColor=none;strokeColor=red;")}));c.actions.addAction("testCheckFile",mxUtils.bind(this,function(){var b=null!=c.pages&&null!=c.getCurrentFile()?c.getCurrentFile().getAnonymizedXmlForPages(c.pages):"",b=new TextareaDialog(c,"Paste Data:",b,function(b){if(0<b.length)try{var d=function(b){function c(b){if(null==p[b]){if(p[b]=!0,null!=f[b]){for(;0<f[b].length;){var e=f[b].pop();c(e)}delete f[b]}}else mxLog.debug(d+": Visited: "+b)}var d=b.parentNode.id,e=
b.childNodes;b={};for(var f={},g=null,k={},l=0;l<e.length;l++){var m=e[l];if(null!=m.id&&0<m.id.length)if(null==b[m.id]){b[m.id]=m.id;var n=m.getAttribute("parent");null==n?null!=g?mxLog.debug(d+": Multiple roots: "+m.id):g=m.id:(null==f[n]&&(f[n]=[]),f[n].push(m.id))}else k[m.id]=m.id}0<Object.keys(k).length?(e=d+": "+Object.keys(k).length+" Duplicates: "+Object.keys(k).join(", "),mxLog.debug(e+" (see console)")):mxLog.debug(d+": Checked");var p={};null==g?mxLog.debug(d+": No root"):(c(g),Object.keys(p).length!=
-Object.keys(b).length&&(mxLog.debug(d+": Invalid tree: (see console)"),console.log(d+": Invalid tree",f)))};"<"!=b.charAt(0)&&(b=Graph.decompress(b),mxLog.debug("See console for uncompressed XML"),console.log("xml",b));var e=mxUtils.parseXml(b),f=c.getPagesForNode(e.documentElement,"mxGraphModel");if(null!=f&&0<f.length)try{var g=c.getHashValueForPages(f);mxLog.debug("Checksum: ",g)}catch(J){mxLog.debug("Error: ",J.message)}else mxLog.debug("No pages found for checksum");var k=e.getElementsByTagName("root");
-for(b=0;b<k.length;b++)d(k[b]);mxLog.show()}catch(J){c.handleError(J),null!=window.console&&console.error(J)}});c.showDialog(b.container,620,460,!0,!0);b.init()}));var x=null;c.actions.addAction("testDiff",mxUtils.bind(this,function(){if(null!=c.pages){var b=new TextareaDialog(c,"Diff/Sync:","",function(b){var d=c.getCurrentFile();if(0<b.length&&null!=d)try{var e=JSON.parse(b);d.patch([e],null,!0);c.hideDialog()}catch(F){c.handleError(F)}},null,"Close",null,null,null,!0,null,"Patch",null,[["Snapshot",
+Object.keys(b).length&&(mxLog.debug(d+": Invalid tree: (see console)"),console.log(d+": Invalid tree",f)))};"<"!=b.charAt(0)&&(b=Graph.decompress(b),mxLog.debug("See console for uncompressed XML"),console.log("xml",b));var e=mxUtils.parseXml(b),f=c.getPagesForNode(e.documentElement,"mxGraphModel");if(null!=f&&0<f.length)try{var g=c.getHashValueForPages(f);mxLog.debug("Checksum: ",g)}catch(K){mxLog.debug("Error: ",K.message)}else mxLog.debug("No pages found for checksum");var k=e.getElementsByTagName("root");
+for(b=0;b<k.length;b++)d(k[b]);mxLog.show()}catch(K){c.handleError(K),null!=window.console&&console.error(K)}});c.showDialog(b.container,620,460,!0,!0);b.init()}));var x=null;c.actions.addAction("testDiff",mxUtils.bind(this,function(){if(null!=c.pages){var b=new TextareaDialog(c,"Diff/Sync:","",function(b){var d=c.getCurrentFile();if(0<b.length&&null!=d)try{var e=JSON.parse(b);d.patch([e],null,!0);c.hideDialog()}catch(E){c.handleError(E)}},null,"Close",null,null,null,!0,null,"Patch",null,[["Snapshot",
function(d,e){x=c.getPagesForNode(mxUtils.parseXml(c.getFileData(!0)).documentElement);b.textarea.value="Snapshot updated "+(new Date).toLocaleString()}],["Diff",function(d,e){try{b.textarea.value=JSON.stringify(c.diffPages(x,c.pages),null,2)}catch(D){c.handleError(D)}}]]);null==x?(x=c.getPagesForNode(mxUtils.parseXml(c.getFileData(!0)).documentElement),b.textarea.value="Snapshot created "+(new Date).toLocaleString()):b.textarea.value=JSON.stringify(c.diffPages(x,c.pages),null,2);c.showDialog(b.container,
620,460,!0,!0);b.init()}else c.alert("No pages")}));c.actions.addAction("testInspect",mxUtils.bind(this,function(){console.log(c,g.getModel())}));c.actions.addAction("testXmlImageExport",mxUtils.bind(this,function(){var b=new mxImageExport,c=g.getGraphBounds(),d=g.view.scale,e=mxUtils.createXmlDocument(),f=e.createElement("output");e.appendChild(f);e=new mxXmlCanvas2D(f);e.translate(Math.floor((1-c.x)/d),Math.floor((1-c.y)/d));e.scale(1/d);var k=0,l=e.save;e.save=function(){k++;l.apply(this,arguments)};
var m=e.restore;e.restore=function(){k--;m.apply(this,arguments)};var n=b.drawShape;b.drawShape=function(b){mxLog.debug("entering shape",b,k);n.apply(this,arguments);mxLog.debug("leaving shape",b,k)};b.drawState(g.getView().getState(g.model.root),e);mxLog.show();mxLog.debug(mxUtils.getXml(f));mxLog.debug("stateCounter",k)}));c.actions.addAction("testShowConsole",function(){mxLog.isVisible()?mxLog.window.fit():mxLog.show();mxLog.window.div.style.zIndex=mxPopupMenu.prototype.zIndex-2});this.put("testDevelop",
@@ -12015,7 +12015,7 @@ d);null!=c.gitLab&&b.addItem(mxResources.get("gitlab")+"...",null,function(){c.s
null,function(){},d,null,!1);null!=c.dropbox?b.addItem(mxResources.get("dropbox")+"...",null,function(){c.pickLibrary(App.MODE_DROPBOX)},d):f&&"function"===typeof window.DropboxClient&&b.addItem(mxResources.get("dropbox")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);b.addSeparator(d);null!=c.gitHub&&b.addItem(mxResources.get("github")+"...",null,function(){c.pickLibrary(App.MODE_GITHUB)},d);null!=c.gitLab&&b.addItem(mxResources.get("gitlab")+"...",null,function(){c.pickLibrary(App.MODE_GITLAB)},
d);null!=c.notion&&(b.addSeparator(d),b.addItem(mxResources.get("notion")+"...",null,function(){c.pickLibrary(App.MODE_NOTION)},d));null!=c.trello?b.addItem(mxResources.get("trello")+"...",null,function(){c.pickLibrary(App.MODE_TRELLO)},d):m&&"function"===typeof window.TrelloClient&&b.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+"...)",null,function(){},d,null,!1);b.addSeparator(d);isLocalStorage&&"0"!=urlParams.browser&&b.addItem(mxResources.get("browser")+"...",null,function(){c.pickLibrary(App.MODE_BROWSER)},
d);"1"!=urlParams.noDevice&&b.addItem(mxResources.get("device")+"...",null,function(){c.pickLibrary(App.MODE_DEVICE)},d);c.isOffline()||(b.addSeparator(d),b.addItem(mxResources.get("url")+"...",null,function(){var b=new FilenameDialog(c,"",mxResources.get("open"),function(b){if(null!=b&&0<b.length&&c.spinner.spin(document.body,mxResources.get("loading"))){var d=b;c.editor.isCorsEnabledForUrl(b)||(d=PROXY_URL+"?url="+encodeURIComponent(b));mxUtils.get(d,function(d){if(200<=d.getStatus()&&299>=d.getStatus()){c.spinner.stop();
-try{c.loadLibrary(new UrlLibrary(this,d.getText(),b))}catch(I){c.handleError(I,mxResources.get("errorLoadingFile"))}}else c.spinner.stop(),c.handleError(null,mxResources.get("errorLoadingFile"))},function(){c.spinner.stop();c.handleError(null,mxResources.get("errorLoadingFile"))})}},mxResources.get("url"));c.showDialog(b.container,300,80,!0,!0);b.init()},d));"1"==urlParams.confLib&&(b.addSeparator(d),b.addItem(mxResources.get("confluenceCloud")+"...",null,function(){c.showRemotelyStoredLibrary(mxResources.get("libraries"))},
+try{c.loadLibrary(new UrlLibrary(this,d.getText(),b))}catch(J){c.handleError(J,mxResources.get("errorLoadingFile"))}}else c.spinner.stop(),c.handleError(null,mxResources.get("errorLoadingFile"))},function(){c.spinner.stop();c.handleError(null,mxResources.get("errorLoadingFile"))})}},mxResources.get("url"));c.showDialog(b.container,300,80,!0,!0);b.init()},d));"1"==urlParams.confLib&&(b.addSeparator(d),b.addItem(mxResources.get("confluenceCloud")+"...",null,function(){c.showRemotelyStoredLibrary(mxResources.get("libraries"))},
d))})));this.put("edit",new Menu(mxUtils.bind(this,function(b,c){this.addMenuItems(b,"undo redo - cut copy copyAsImage paste delete - duplicate - findReplace - editData editTooltip - editStyle editGeometry - edit - editLink openLink - selectVertices selectEdges selectAll selectNone - lockUnlock".split(" "))})));p=c.actions.addAction("comments",mxUtils.bind(this,function(){if(null==this.commentsWindow)this.commentsWindow=new CommentsWindow(c,document.body.offsetWidth-380,120,300,350),this.commentsWindow.window.addListener("show",
function(){c.fireEvent(new mxEventObject("comments"))}),this.commentsWindow.window.addListener("hide",function(){c.fireEvent(new mxEventObject("comments"))}),this.commentsWindow.window.setVisible(!0),c.fireEvent(new mxEventObject("comments"));else{var b=!this.commentsWindow.window.isVisible();this.commentsWindow.window.setVisible(b);this.commentsWindow.refreshCommentsTime();b&&this.commentsWindow.hasError&&this.commentsWindow.refreshComments()}}));p.setToggleAction(!0);p.setSelectedCallback(mxUtils.bind(this,
function(){return null!=this.commentsWindow&&this.commentsWindow.window.isVisible()}));c.editor.addListener("fileLoaded",mxUtils.bind(this,function(){null!=this.commentsWindow&&(this.commentsWindow.destroy(),this.commentsWindow=null)}));var p=this.get("viewPanels"),z=p.funct;p.funct=function(b,d){z.apply(this,arguments);c.menus.addMenuItems(b,["tags"],d);c.commentsSupported()&&c.menus.addMenuItems(b,["comments"],d)};this.put("view",new Menu(mxUtils.bind(this,function(b,d){this.addMenuItems(b,(null!=
@@ -12120,7 +12120,7 @@ b.geometry.height+10:-g[1].geometry.height-10)*n;var q=u.getOutgoingTreeEdges(u.
p.height,x.y+x.height)-Math.max(p.y,x.y))/n))}}t?l=0:e=0;for(v=0;v<q.length;v++)if(D=u.model.getTerminal(q[v],!1),k==f(D)&&(x=u.view.getState(D),D!=b&&null!=x&&(t&&c!=x.getCenterX()<m.getCenterX()||!t&&c!=x.getCenterY()<m.getCenterY()))){var y=[];u.traverse(x.cell,!0,function(b,c){var d=null!=c&&u.isTreeEdge(c);d&&y.push(c);(null==c||d)&&y.push(b);return null==c||d});u.moveCells(y,(c?1:-1)*e,(c?1:-1)*l)}}}return u.addCells(g,d)}finally{u.model.endUpdate()}}function m(b){u.model.beginUpdate();try{var c=
f(b),d=u.getIncomingTreeEdges(b),e=u.cloneCells([d[0],b]);u.model.setTerminal(d[0],e[1],!1);u.model.setTerminal(e[0],e[1],!0);u.model.setTerminal(e[0],b,!1);var g=u.model.getParent(b),k=g.geometry,l=[];u.view.currentRoot!=g&&(e[1].geometry.x-=k.x,e[1].geometry.y-=k.y);u.traverse(b,!0,function(b,c){var d=null!=c&&u.isTreeEdge(c);d&&l.push(c);(null==c||d)&&l.push(b);return null==c||d});var m=b.geometry.width+40,n=b.geometry.height+40;c==mxConstants.DIRECTION_SOUTH?m=0:c==mxConstants.DIRECTION_NORTH?
(m=0,n=-n):c==mxConstants.DIRECTION_WEST?(m=-m,n=0):c==mxConstants.DIRECTION_EAST&&(n=0);u.moveCells(l,m,n);return u.addCells(e,g)}finally{u.model.endUpdate()}}function p(b,c){u.model.beginUpdate();try{var d=u.model.getParent(b),e=u.getIncomingTreeEdges(b),g=f(b);0==e.length&&(e=[u.createEdge(d,null,"",null,null,u.createCurrentEdgeStyle())],g=c);var k=u.cloneCells([e[0],b]);u.model.setTerminal(k[0],b,!0);if(null==u.model.getTerminal(k[0],!1)){u.model.setTerminal(k[0],k[1],!1);var l=u.getCellStyle(k[1]).newEdgeStyle;
-if(null!=l)try{var m=JSON.parse(l),n;for(n in m)u.setCellStyles(n,m[n],[k[0]]),"edgeStyle"==n&&"elbowEdgeStyle"==m[n]&&u.setCellStyles("elbow",g==mxConstants.DIRECTION_SOUTH||g==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",[k[0]])}catch(ra){}}var e=u.getOutgoingTreeEdges(b),p=d.geometry,l=[];u.view.currentRoot==d&&(p=new mxRectangle);for(m=0;m<e.length;m++){var q=u.model.getTerminal(e[m],!1);null!=q&&l.push(q)}var t=u.view.getBounds(l),v=u.view.translate,D=u.view.scale;g==mxConstants.DIRECTION_SOUTH?
+if(null!=l)try{var m=JSON.parse(l),n;for(n in m)u.setCellStyles(n,m[n],[k[0]]),"edgeStyle"==n&&"elbowEdgeStyle"==m[n]&&u.setCellStyles("elbow",g==mxConstants.DIRECTION_SOUTH||g==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",[k[0]])}catch(sa){}}var e=u.getOutgoingTreeEdges(b),p=d.geometry,l=[];u.view.currentRoot==d&&(p=new mxRectangle);for(m=0;m<e.length;m++){var q=u.model.getTerminal(e[m],!1);null!=q&&l.push(q)}var t=u.view.getBounds(l),v=u.view.translate,D=u.view.scale;g==mxConstants.DIRECTION_SOUTH?
(k[1].geometry.x=null==t?b.geometry.x+(b.geometry.width-k[1].geometry.width)/2:(t.x+t.width)/D-v.x-p.x+10,k[1].geometry.y+=k[1].geometry.height-p.y+40):g==mxConstants.DIRECTION_NORTH?(k[1].geometry.x=null==t?b.geometry.x+(b.geometry.width-k[1].geometry.width)/2:(t.x+t.width)/D-v.x+-p.x+10,k[1].geometry.y-=k[1].geometry.height+p.y+40):(k[1].geometry.x=g==mxConstants.DIRECTION_WEST?k[1].geometry.x-(k[1].geometry.width+p.x+40):k[1].geometry.x+(k[1].geometry.width-p.x+40),k[1].geometry.y=null==t?b.geometry.y+
(b.geometry.height-k[1].geometry.height)/2:(t.y+t.height)/D-v.y+-p.y+10);return u.addCells(k,d)}finally{u.model.endUpdate()}}function q(b,c,d){b=u.getOutgoingTreeEdges(b);d=u.view.getState(d);var e=[];if(null!=d&&null!=b){for(var f=0;f<b.length;f++){var g=u.view.getState(u.model.getTerminal(b[f],!1));null!=g&&(!c&&Math.min(g.x+g.width,d.x+d.width)>=Math.max(g.x,d.x)||c&&Math.min(g.y+g.height,d.y+d.height)>=Math.max(g.y,d.y))&&e.push(g)}e.sort(function(b,d){return c?b.x+b.width-d.x-d.width:b.y+b.height-
d.y-d.height})}return e}function t(b,c){var d=f(b),e=c==mxConstants.DIRECTION_EAST||c==mxConstants.DIRECTION_WEST;(d==mxConstants.DIRECTION_EAST||d==mxConstants.DIRECTION_WEST)==e&&d!=c?v.actions.get("selectParent").funct():d==c?(e=u.getOutgoingTreeEdges(b),null!=e&&0<e.length&&u.setSelectionCell(u.model.getTerminal(e[0],!1))):(d=u.getIncomingTreeEdges(b),null!=d&&0<d.length&&(e=q(u.model.getTerminal(d[0],!0),e,b),d=u.view.getState(b),null!=d&&(d=mxUtils.indexOf(e,d),0<=d&&(d+=c==mxConstants.DIRECTION_NORTH||
@@ -12133,13 +12133,13 @@ f;return z.apply(this,arguments)};v.hoverIcons.getStateAt=function(c,d,e){return
u.getIncomingTreeEdges(l[f]),k=u.getIncomingTreeEdges(c[f]);if(0==m.length&&0<k.length){var n=this.cloneCell(k[0]);this.addEdge(n,u.getDefaultParent(),this.model.getTerminal(k[0],!0),l[f])}}}finally{this.model.endUpdate()}return l};var y=u.moveCells;u.moveCells=function(c,d,e,f,g,k,l){var m=null;this.model.beginUpdate();try{var n=g,p=this.getCurrentCellStyle(g);if(null!=c&&b(g)&&"1"==mxUtils.getValue(p,"treeFolding","0")){for(var q=0;q<c.length;q++)if(b(c[q])||u.model.isEdge(c[q])&&null==u.model.getTerminal(c[q],
!0)){g=u.model.getParent(c[q]);break}if(null!=n&&g!=n&&null!=this.view.getState(c[0])){var t=u.getIncomingTreeEdges(c[0]);if(0<t.length){var v=u.view.getState(u.model.getTerminal(t[0],!0));if(null!=v){var D=u.view.getState(n);null!=D&&(d=(D.getCenterX()-v.getCenterX())/u.view.scale,e=(D.getCenterY()-v.getCenterY())/u.view.scale)}}}}m=y.apply(this,arguments);if(null!=m&&null!=c&&m.length==c.length)for(q=0;q<m.length;q++)if(this.model.isEdge(m[q]))b(n)&&0>mxUtils.indexOf(m,this.model.getTerminal(m[q],
!0))&&this.model.setTerminal(m[q],n,!0);else if(b(c[q])&&(t=u.getIncomingTreeEdges(c[q]),0<t.length))if(!f)b(n)&&0>mxUtils.indexOf(c,this.model.getTerminal(t[0],!0))&&this.model.setTerminal(t[0],n,!0);else if(0==u.getIncomingTreeEdges(m[q]).length){p=n;if(null==p||p==u.model.getParent(c[q]))p=u.model.getTerminal(t[0],!0);f=this.cloneCell(t[0]);this.addEdge(f,u.getDefaultParent(),p,m[q])}}finally{this.model.endUpdate()}return m};if(null!=v.sidebar){var C=v.sidebar.dropAndConnect;v.sidebar.dropAndConnect=
-function(c,d,e,f){var g=u.model,k=null;g.beginUpdate();try{if(k=C.apply(this,arguments),b(c))for(var l=0;l<k.length;l++)if(g.isEdge(k[l])&&null==g.getTerminal(k[l],!0)){g.setTerminal(k[l],c,!0);var m=u.getCellGeometry(k[l]);m.points=null;null!=m.getTerminalPoint(!0)&&m.setTerminalPoint(null,!0)}}finally{g.endUpdate()}return k}}var E={88:v.actions.get("selectChildren"),84:v.actions.get("selectSubtree"),80:v.actions.get("selectParent"),83:v.actions.get("selectSiblings")},D=v.onKeyDown;v.onKeyDown=function(c){try{if(u.isEnabled()&&
+function(c,d,e,f){var g=u.model,k=null;g.beginUpdate();try{if(k=C.apply(this,arguments),b(c))for(var l=0;l<k.length;l++)if(g.isEdge(k[l])&&null==g.getTerminal(k[l],!0)){g.setTerminal(k[l],c,!0);var m=u.getCellGeometry(k[l]);m.points=null;null!=m.getTerminalPoint(!0)&&m.setTerminalPoint(null,!0)}}finally{g.endUpdate()}return k}}var G={88:v.actions.get("selectChildren"),84:v.actions.get("selectSubtree"),80:v.actions.get("selectParent"),83:v.actions.get("selectSiblings")},D=v.onKeyDown;v.onKeyDown=function(c){try{if(u.isEnabled()&&
!u.isEditing()&&b(u.getSelectionCell())&&1==u.getSelectionCount()){var d=null;0<u.getIncomingTreeEdges(u.getSelectionCell()).length&&(9==c.which?d=mxEvent.isShiftDown(c)?m(u.getSelectionCell()):p(u.getSelectionCell()):13==c.which&&(d=l(u.getSelectionCell(),!mxEvent.isShiftDown(c))));if(null!=d&&0<d.length)1==d.length&&u.model.isEdge(d[0])?u.setSelectionCell(u.model.getTerminal(d[0],!1)):u.setSelectionCell(d[d.length-1]),null!=v.hoverIcons&&v.hoverIcons.update(u.view.getState(u.getSelectionCell())),
-u.startEditingAtCell(u.getSelectionCell()),mxEvent.consume(c);else if(mxEvent.isAltDown(c)&&mxEvent.isShiftDown(c)){var e=E[c.keyCode];null!=e&&(e.funct(c),mxEvent.consume(c))}else 37==c.keyCode?(t(u.getSelectionCell(),mxConstants.DIRECTION_WEST),mxEvent.consume(c)):38==c.keyCode?(t(u.getSelectionCell(),mxConstants.DIRECTION_NORTH),mxEvent.consume(c)):39==c.keyCode?(t(u.getSelectionCell(),mxConstants.DIRECTION_EAST),mxEvent.consume(c)):40==c.keyCode&&(t(u.getSelectionCell(),mxConstants.DIRECTION_SOUTH),
-mxEvent.consume(c))}}catch(M){v.handleError(M)}mxEvent.isConsumed(c)||D.apply(this,arguments)};var F=u.connectVertex;u.connectVertex=function(c,d,e,g,k,n,q){var t=u.getIncomingTreeEdges(c);if(b(c)){var v=f(c),D=v==mxConstants.DIRECTION_EAST||v==mxConstants.DIRECTION_WEST,x=d==mxConstants.DIRECTION_EAST||d==mxConstants.DIRECTION_WEST;return v==d||0==t.length?p(c,d):D==x?m(c):l(c,d!=mxConstants.DIRECTION_NORTH&&d!=mxConstants.DIRECTION_WEST)}return F.apply(this,arguments)};u.getSubtree=function(c){var e=
-[c];!d(c)&&!b(c)||n(c)||u.traverse(c,!0,function(b,c){var d=null!=c&&u.isTreeEdge(c);d&&0>mxUtils.indexOf(e,c)&&e.push(c);(null==c||d)&&0>mxUtils.indexOf(e,b)&&e.push(b);return null==c||d});return e};var G=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){G.apply(this,arguments);(d(this.state.cell)||b(this.state.cell))&&!n(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&(this.moveHandle=mxUtils.createImage(Editor.moveImage),this.moveHandle.setAttribute("title",
+u.startEditingAtCell(u.getSelectionCell()),mxEvent.consume(c);else if(mxEvent.isAltDown(c)&&mxEvent.isShiftDown(c)){var e=G[c.keyCode];null!=e&&(e.funct(c),mxEvent.consume(c))}else 37==c.keyCode?(t(u.getSelectionCell(),mxConstants.DIRECTION_WEST),mxEvent.consume(c)):38==c.keyCode?(t(u.getSelectionCell(),mxConstants.DIRECTION_NORTH),mxEvent.consume(c)):39==c.keyCode?(t(u.getSelectionCell(),mxConstants.DIRECTION_EAST),mxEvent.consume(c)):40==c.keyCode&&(t(u.getSelectionCell(),mxConstants.DIRECTION_SOUTH),
+mxEvent.consume(c))}}catch(M){v.handleError(M)}mxEvent.isConsumed(c)||D.apply(this,arguments)};var E=u.connectVertex;u.connectVertex=function(c,d,e,g,k,n,q){var t=u.getIncomingTreeEdges(c);if(b(c)){var v=f(c),D=v==mxConstants.DIRECTION_EAST||v==mxConstants.DIRECTION_WEST,x=d==mxConstants.DIRECTION_EAST||d==mxConstants.DIRECTION_WEST;return v==d||0==t.length?p(c,d):D==x?m(c):l(c,d!=mxConstants.DIRECTION_NORTH&&d!=mxConstants.DIRECTION_WEST)}return E.apply(this,arguments)};u.getSubtree=function(c){var e=
+[c];!d(c)&&!b(c)||n(c)||u.traverse(c,!0,function(b,c){var d=null!=c&&u.isTreeEdge(c);d&&0>mxUtils.indexOf(e,c)&&e.push(c);(null==c||d)&&0>mxUtils.indexOf(e,b)&&e.push(b);return null==c||d});return e};var F=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){F.apply(this,arguments);(d(this.state.cell)||b(this.state.cell))&&!n(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&(this.moveHandle=mxUtils.createImage(Editor.moveImage),this.moveHandle.setAttribute("title",
"Move Subtree"),this.moveHandle.style.position="absolute",this.moveHandle.style.cursor="pointer",this.moveHandle.style.width="24px",this.moveHandle.style.height="24px",this.graph.container.appendChild(this.moveHandle),mxEvent.addGestureListeners(this.moveHandle,mxUtils.bind(this,function(b){this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(b),mxEvent.getClientY(b),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=mxEvent.isMouseEvent(b);
-this.graph.isMouseDown=!0;v.hoverIcons.reset();mxEvent.consume(b)})))};var I=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){I.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.left=this.state.x+this.state.width+(40>this.state.width?10:0)+2+"px",this.moveHandle.style.top=this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var J=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(b){J.apply(this,
+this.graph.isMouseDown=!0;v.hoverIcons.reset();mxEvent.consume(b)})))};var J=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){J.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.left=this.state.x+this.state.width+(40>this.state.width?10:0)+2+"px",this.moveHandle.style.top=this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var K=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(b){K.apply(this,
arguments);null!=this.moveHandle&&(this.moveHandle.style.display=b?"":"none")};var H=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(b,c){H.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)}};if("undefined"!==typeof Sidebar){var d=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var b=d.apply(this,arguments),e=this.graph;return b.concat([this.addEntry("tree container",
function(){var b=new mxCell("Tree Container",new mxGeometry(0,0,400,320),"swimlane;startSize=20;horizontal=1;containerType=tree;");b.vertex=!0;var c=new mxCell("Parent",new mxGeometry(140,60,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');c.vertex=!0;var d=new mxCell("Child",new mxGeometry(140,140,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');
d.vertex=!0;var e=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;startArrow=none;endArrow=none;rounded=0;");e.geometry.relative=!0;e.edge=!0;c.insertEdge(e,!0);d.insertEdge(e,!1);b.insert(e);b.insert(c);b.insert(d);return sb.createVertexTemplateFromCells([b],b.geometry.width,b.geometry.height,b.value)}),this.addEntry("tree mindmap mindmaps central idea branch topic",function(){var b=new mxCell("Mindmap",new mxGeometry(0,0,420,126),"swimlane;startSize=20;horizontal=1;containerType=tree;");
@@ -12222,71 +12222,71 @@ d),b.addSeparator(d),c.mode!=App.MODE_ATLAS&&this.addMenuItems(b,["fullscreen"],
e){"1"==urlParams.sketch?(c.insertTemplateEnabled&&!c.isOffline()&&c.menus.addMenuItems(b,["insertTemplate"],e),c.menus.addMenuItems(b,["insertImage","insertLink","-"],e),c.menus.addSubmenu("insertLayout",b,e,mxResources.get("layout")),c.menus.addSubmenu("insertAdvanced",b,e,mxResources.get("advanced"))):(d.apply(this,arguments),c.menus.addSubmenu("table",b,e))}})();var n="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),p=function(b,d,e,f){b.addItem(e,
null,mxUtils.bind(this,function(){var b=new CreateGraphDialog(c,e,f);c.showDialog(b.container,620,420,!0,!1);b.init()}),d)};this.put("insertLayout",new Menu(mxUtils.bind(this,function(b,c){for(var d=0;d<n.length;d++)"-"==n[d]?b.addSeparator(c):p(b,c,mxResources.get(n[d])+"...",n[d])})))};EditorUi.prototype.installFormatToolbar=function(b){var c=this.editor.graph,d=document.createElement("div");d.style.cssText="position:absolute;top:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;white-space:nowrap;background-color:#fff;transform:translate(-50%, 0);left:50%;";
c.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(e,f){0<c.getSelectionCount()?(b.appendChild(d),d.innerHTML="Selected: "+c.getSelectionCount()):null!=d.parentNode&&d.parentNode.removeChild(d)}))};var C=!1;EditorUi.prototype.initFormatWindow=function(){if(!C&&null!=this.formatWindow){C=!0;this.formatWindow.window.setClosable(!1);var b=this.formatWindow.window.toggleMinimized;this.formatWindow.window.toggleMinimized=function(){b.apply(this,arguments);this.minimized?(this.div.style.width=
-"90px",this.table.style.width="90px",this.div.style.left=parseInt(this.div.style.left)+150+"px"):(this.div.style.width="240px",this.table.style.width="240px",this.div.style.left=Math.max(0,parseInt(this.div.style.left)-150)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(b){mxEvent.getSource(b)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var E=EditorUi.prototype.init;EditorUi.prototype.init=function(){function e(b,
+"90px",this.table.style.width="90px",this.div.style.left=parseInt(this.div.style.left)+150+"px"):(this.div.style.width="240px",this.table.style.width="240px",this.div.style.left=Math.max(0,parseInt(this.div.style.left)-150)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(b){mxEvent.getSource(b)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var G=EditorUi.prototype.init;EditorUi.prototype.init=function(){function e(b,
c,d){var e=m.menus.get(b),f=t.addMenu(mxResources.get(b),mxUtils.bind(this,function(){e.funct.apply(this,arguments)}),q);f.className="1"==urlParams.sketch?"geToolbarButton":"geMenuItem";f.style.display="inline-block";f.style.boxSizing="border-box";f.style.top="6px";f.style.marginRight="6px";f.style.height="30px";f.style.paddingTop="6px";f.style.paddingBottom="6px";f.style.cursor="pointer";f.setAttribute("title",mxResources.get(b));m.menus.menuCreated(e,f,"geMenuItem");null!=d?(f.style.backgroundImage=
"url("+d+")",f.style.backgroundPosition="center center",f.style.backgroundRepeat="no-repeat",f.style.backgroundSize="24px 24px",f.style.width="34px",f.innerHTML=""):c||(f.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+")",f.style.backgroundPosition="right 6px center",f.style.backgroundRepeat="no-repeat",f.style.paddingRight="22px");return f}function f(b,c,d,e,f,g){var k=document.createElement("a");k.className="1"==urlParams.sketch?"geToolbarButton":"geMenuItem";k.style.display="inline-block";
k.style.boxSizing="border-box";k.style.height="30px";k.style.padding="6px";k.style.position="relative";k.style.verticalAlign="top";k.style.top="0px";"1"==urlParams.sketch&&(k.style.borderStyle="none",k.style.boxShadow="none",k.style.padding="6px",k.style.margin="0px");null!=m.statusContainer?p.insertBefore(k,m.statusContainer):p.appendChild(k);null!=g?(k.style.backgroundImage="url("+g+")",k.style.backgroundPosition="center center",k.style.backgroundRepeat="no-repeat",k.style.backgroundSize="24px 24px",
k.style.width="34px"):mxUtils.write(k,b);mxEvent.addListener(k,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(b){b.preventDefault()}));mxEvent.addListener(k,"click",function(b){"disabled"!=k.getAttribute("disabled")&&c(b);mxEvent.consume(b)});null==d&&(k.style.marginRight="4px");null!=e&&k.setAttribute("title",e);null!=f&&(b=function(){f.isEnabled()?(k.removeAttribute("disabled"),k.style.cursor="pointer"):(k.setAttribute("disabled","disabled"),k.style.cursor="default")},
f.addListener("stateChanged",b),n.addListener("enabledChanged",b),b());return k}function g(b,c,d){d=document.createElement("div");d.className="geMenuItem";d.style.display="inline-block";d.style.verticalAlign="top";d.style.marginRight="6px";d.style.padding="0 4px 0 4px";d.style.height="30px";d.style.position="relative";d.style.top="0px";"1"==urlParams.sketch&&(d.style.boxShadow="none");for(var e=0;e<b.length;e++)null!=b[e]&&("1"==urlParams.sketch&&(b[e].style.padding="10px 8px",b[e].style.width="30px"),
-b[e].style.margin="0px",b[e].style.boxShadow="none",d.appendChild(b[e]));null!=c&&mxUtils.setOpacity(d,c);null!=m.statusContainer&&"1"!=urlParams.sketch?p.insertBefore(d,m.statusContainer):p.appendChild(d);return d}function k(){if("1"==urlParams.sketch)"1"!=urlParams.embedInline&&(V.style.left=58>B.offsetTop-B.offsetHeight/2?"70px":"10px");else{for(var b=p.firstChild;null!=b;){var d=b.nextSibling;"geMenuItem"!=b.className&&"geItem"!=b.className||b.parentNode.removeChild(b);b=d}q=p.firstChild;c=window.innerWidth||
+b[e].style.margin="0px",b[e].style.boxShadow="none",d.appendChild(b[e]));null!=c&&mxUtils.setOpacity(d,c);null!=m.statusContainer&&"1"!=urlParams.sketch?p.insertBefore(d,m.statusContainer):p.appendChild(d);return d}function k(){if("1"==urlParams.sketch)"1"!=urlParams.embedInline&&(N.style.left=58>B.offsetTop-B.offsetHeight/2?"70px":"10px");else{for(var b=p.firstChild;null!=b;){var d=b.nextSibling;"geMenuItem"!=b.className&&"geItem"!=b.className||b.parentNode.removeChild(b);b=d}q=p.firstChild;c=window.innerWidth||
document.documentElement.clientWidth||document.body.clientWidth;var b=1E3>c||"1"==urlParams.sketch,k=null;b||(k=e("diagram"));d=b?e("diagram",null,Editor.drawLogoImage):null;null!=d&&(k=d);g([k,f(mxResources.get("shapes"),m.actions.get("toggleShapes").funct,null,mxResources.get("shapes"),m.actions.get("image"),b?Editor.shapesImage:null),f(mxResources.get("format"),m.actions.get("toggleFormat").funct,null,mxResources.get("format")+" ("+m.actions.get("formatPanel").shortcut+")",m.actions.get("image"),
-b?Editor.formatImage:null)],b?60:null);d=e("insert",!0,b?A:null);g([d,f(mxResources.get("delete"),m.actions.get("delete").funct,null,mxResources.get("delete"),m.actions.get("delete"),b?Editor.trashImage:null)],b?60:null);411<=c&&(g([ja,ua],60),520<=c&&g([ya,640<=c?f("",sa.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +)",sa,Editor.zoomInImage):null,640<=c?f("",X.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",X,Editor.zoomOutImage):null],60))}null!=k&&(mxEvent.disableContextMenu(k),
-mxEvent.addGestureListeners(k,mxUtils.bind(this,function(b){(mxEvent.isShiftDown(b)||mxEvent.isAltDown(b)||mxEvent.isMetaDown(b)||mxEvent.isControlDown(b)||mxEvent.isPopupTrigger(b))&&m.appIconClicked(b)}),null,null));d=m.menus.get("language");null!=d&&!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&600<=c&&"1"!=urlParams.sketch?(null==wa&&(d=t.addMenu("",d.funct),d.setAttribute("title",mxResources.get("language")),d.className="geToolbarButton",d.style.backgroundImage="url("+Editor.globeImage+")",
-d.style.backgroundPosition="center center",d.style.backgroundRepeat="no-repeat",d.style.backgroundSize="24px 24px",d.style.position="absolute",d.style.height="24px",d.style.width="24px",d.style.zIndex="1",d.style.right="8px",d.style.cursor="pointer",d.style.top="1"==urlParams.embed?"12px":"11px",p.appendChild(d),wa=d),m.buttonContainer.style.paddingRight="34px"):(m.buttonContainer.style.paddingRight="4px",null!=wa&&(wa.parentNode.removeChild(wa),wa=null))}E.apply(this,arguments);"1"!=urlParams.embedInline&&
+b?Editor.formatImage:null)],b?60:null);d=e("insert",!0,b?A:null);g([d,f(mxResources.get("delete"),m.actions.get("delete").funct,null,mxResources.get("delete"),m.actions.get("delete"),b?Editor.trashImage:null)],b?60:null);411<=c&&(g([ba,ta],60),520<=c&&g([za,640<=c?f("",pa.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +)",pa,Editor.zoomInImage):null,640<=c?f("",ra.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",ra,Editor.zoomOutImage):null],60))}null!=k&&(mxEvent.disableContextMenu(k),
+mxEvent.addGestureListeners(k,mxUtils.bind(this,function(b){(mxEvent.isShiftDown(b)||mxEvent.isAltDown(b)||mxEvent.isMetaDown(b)||mxEvent.isControlDown(b)||mxEvent.isPopupTrigger(b))&&m.appIconClicked(b)}),null,null));d=m.menus.get("language");null!=d&&!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&600<=c&&"1"!=urlParams.sketch?(null==ua&&(d=t.addMenu("",d.funct),d.setAttribute("title",mxResources.get("language")),d.className="geToolbarButton",d.style.backgroundImage="url("+Editor.globeImage+")",
+d.style.backgroundPosition="center center",d.style.backgroundRepeat="no-repeat",d.style.backgroundSize="24px 24px",d.style.position="absolute",d.style.height="24px",d.style.width="24px",d.style.zIndex="1",d.style.right="8px",d.style.cursor="pointer",d.style.top="1"==urlParams.embed?"12px":"11px",p.appendChild(d),ua=d),m.buttonContainer.style.paddingRight="34px"):(m.buttonContainer.style.paddingRight="4px",null!=ua&&(ua.parentNode.removeChild(ua),ua=null))}G.apply(this,arguments);"1"!=urlParams.embedInline&&
this.doSetDarkMode(null!=urlParams.dark?1==urlParams.dark&&!mxClient.IS_IE&&!mxClient.IS_IE11:null!=mxSettings.settings.darkMode?mxSettings.settings.darkMode:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches);var l=document.createElement("div");l.style.cssText="position:absolute;left:0px;right:0px;top:0px;overflow-y:auto;overflow-x:hidden;";l.style.bottom="1"!=urlParams.embed||"1"==urlParams.libraries?"63px":"32px";this.sidebar=this.createSidebar(l);"1"==urlParams.sketch&&
null!=this.sidebar&&this.isSettingsEnabled()&&(this.editor.chromeless&&!this.editor.editable||!(mxSettings.settings.isNew||8>=parseInt(mxSettings.settings.version||0))||(this.toggleScratchpad(),mxSettings.save()),this.sidebar.showPalette("search",mxSettings.settings.search));if("1"!=urlParams.sketch&&1E3<=c||null!=urlParams.clibs||null!=urlParams.libs||null!=urlParams["search-shapes"])d(this,!0),null!=this.sidebar&&null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes&&(this.sidebar.searchShapes(urlParams["search-shapes"]),
this.sidebar.showEntries("search"));var m=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==m.embedViewport)mxUtils.fit(this.div);else{var b=parseInt(this.div.offsetLeft),c=parseInt(this.div.offsetWidth);this.div.style.left=Math.max(m.embedViewport.x,Math.min(b,m.embedViewport.x+m.embedViewport.width-c))+"px";b=parseInt(this.div.offsetTop);c=parseInt(this.div.offsetHeight);this.div.style.top=Math.max(m.embedViewport.y,Math.min(b,m.embedViewport.y+m.embedViewport.height-c))+
-"px"}};this.keyHandler.bindAction(75,!0,"toggleShapes",!0);EditorUi.windowed&&("1"==urlParams.sketch||1E3<=c)&&"1"!=urlParams.embedInline&&(b(this,!0),"1"==urlParams.sketch&&(this.initFormatWindow(),null!=this.formatWindow&&this.formatWindow.window.toggleMinimized()));var m=this,n=m.editor.graph;m.toolbar=this.createToolbar(m.createDiv("geToolbar"));m.defaultLibraryName=mxResources.get("untitledLibrary");var p=document.createElement("div");p.className="geMenubarContainer";var q=null,t=new Menubar(m,
+"px"}};this.keyHandler.bindAction(75,!0,"toggleShapes",!0);EditorUi.windowed&&("1"==urlParams.sketch||1E3<=c)&&"1"!=urlParams.embedInline&&(b(this,!0),"1"==urlParams.sketch&&(this.initFormatWindow(),null!=this.formatWindow&&1200>c&&this.formatWindow.window.toggleMinimized()));var m=this,n=m.editor.graph;m.toolbar=this.createToolbar(m.createDiv("geToolbar"));m.defaultLibraryName=mxResources.get("untitledLibrary");var p=document.createElement("div");p.className="geMenubarContainer";var q=null,t=new Menubar(m,
p);m.statusContainer=m.createStatusContainer();m.statusContainer.style.position="relative";m.statusContainer.style.maxWidth="";m.statusContainer.style.marginTop="7px";m.statusContainer.style.marginLeft="6px";m.statusContainer.style.color="gray";m.statusContainer.style.cursor="default";var u=m.hideCurrentMenu;m.hideCurrentMenu=function(){u.apply(this,arguments);this.editor.graph.popupMenuHandler.hideMenu()};var v=m.descriptorChanged;m.descriptorChanged=function(){v.apply(this,arguments);var b=m.getCurrentFile();
if(null!=b&&null!=b.getTitle()){var c=b.getMode();"google"==c?c="googleDrive":"github"==c?c="gitHub":"gitlab"==c?c="gitLab":"onedrive"==c&&(c="oneDrive");c=mxResources.get(c);p.setAttribute("title",b.getTitle()+(null!=c?" ("+c+")":""))}else p.removeAttribute("title")};m.setStatusText(m.editor.getStatus());p.appendChild(m.statusContainer);m.buttonContainer=document.createElement("div");m.buttonContainer.style.cssText="position:absolute;right:0px;padding-right:34px;top:10px;white-space:nowrap;padding-top:2px;background-color:inherit;";
p.appendChild(m.buttonContainer);m.menubarContainer=m.buttonContainer;m.tabContainer=document.createElement("div");m.tabContainer.className="geTabContainer";m.tabContainer.style.cssText="position:absolute;left:0px;right:0px;bottom:0px;height:30px;white-space:nowrap;margin-bottom:-2px;visibility:hidden;";var l=m.diagramContainer.parentNode,x=document.createElement("div");x.style.cssText="position:absolute;top:0px;left:0px;right:0px;bottom:0px;overflow:hidden;";m.diagramContainer.style.top="1"==urlParams.sketch?
"0px":"47px";if("1"==urlParams.winCtrls&&"1"==urlParams.sketch){x.style.top="20px";m.titlebar=document.createElement("div");m.titlebar.style.cssText="position:absolute;top:0px;left:0px;right:0px;height:20px;overflow:hidden;box-shadow: 0px 0px 2px #c0c0c0;";var y=document.createElement("div");y.style.cssText="max-width: calc(100% - 100px);text-overflow: ellipsis;user-select:none;height:20px;margin: 2px 10px;font-size: 12px;white-space: nowrap;overflow: hidden;";m.titlebar.appendChild(y);l.appendChild(m.titlebar)}var z=
-m.menus.get("viewZoom"),A="1"!=urlParams.sketch?Editor.plusImage:Editor.shapesImage,C="1"==urlParams.sketch?document.createElement("div"):null,B="1"==urlParams.sketch?document.createElement("div"):null,V="1"==urlParams.sketch?document.createElement("div"):null,y=mxUtils.bind(this,function(){null!=this.sidebar&&this.sidebar.refresh();n.refresh();n.view.validateBackground()});m.addListener("darkModeChanged",y);m.addListener("sketchModeChanged",y);var oa=mxUtils.bind(this,function(){if(Editor.inlineFullscreen)V.style.left=
-"10px",V.style.top="10px",B.style.left="10px",B.style.top="60px",C.style.top="10px",C.style.right="12px",C.style.left="",m.diagramContainer.setAttribute("data-bounds",m.diagramContainer.style.top+" "+m.diagramContainer.style.left+" "+m.diagramContainer.style.width+" "+m.diagramContainer.style.height),m.diagramContainer.style.top="0px",m.diagramContainer.style.left="0px",m.diagramContainer.style.bottom="0px",m.diagramContainer.style.right="0px",m.diagramContainer.style.width="",m.diagramContainer.style.height=
+m.menus.get("viewZoom"),A="1"!=urlParams.sketch?Editor.plusImage:Editor.shapesImage,C="1"==urlParams.sketch?document.createElement("div"):null,B="1"==urlParams.sketch?document.createElement("div"):null,N="1"==urlParams.sketch?document.createElement("div"):null,y=mxUtils.bind(this,function(){null!=this.sidebar&&this.sidebar.refresh();n.refresh();n.view.validateBackground()});m.addListener("darkModeChanged",y);m.addListener("sketchModeChanged",y);var ha=mxUtils.bind(this,function(){if(Editor.inlineFullscreen)N.style.left=
+"10px",N.style.top="10px",B.style.left="10px",B.style.top="60px",C.style.top="10px",C.style.right="12px",C.style.left="",m.diagramContainer.setAttribute("data-bounds",m.diagramContainer.style.top+" "+m.diagramContainer.style.left+" "+m.diagramContainer.style.width+" "+m.diagramContainer.style.height),m.diagramContainer.style.top="0px",m.diagramContainer.style.left="0px",m.diagramContainer.style.bottom="0px",m.diagramContainer.style.right="0px",m.diagramContainer.style.width="",m.diagramContainer.style.height=
"";else{var b=m.diagramContainer.getAttribute("data-bounds");if(null!=b){m.diagramContainer.style.background="transparent";m.diagramContainer.removeAttribute("data-bounds");var c=n.getGraphBounds(),b=b.split(" ");m.diagramContainer.style.top=b[0];m.diagramContainer.style.left=b[1];m.diagramContainer.style.width=c.width+50+"px";m.diagramContainer.style.height=c.height+46+"px";m.diagramContainer.style.bottom="";m.diagramContainer.style.right="";(window.opener||window.parent).postMessage(JSON.stringify({event:"resize",
-rect:m.diagramContainer.getBoundingClientRect()}),"*");m.refresh()}V.style.left=m.diagramContainer.offsetLeft+"px";V.style.top=m.diagramContainer.offsetTop-V.offsetHeight-4+"px";B.style.display="";B.style.left=m.diagramContainer.offsetLeft-B.offsetWidth-4+"px";B.style.top=m.diagramContainer.offsetTop+"px";C.style.left=m.diagramContainer.offsetLeft+m.diagramContainer.offsetWidth-C.offsetWidth+"px";C.style.top=V.style.top;C.style.right="";m.bottomResizer.style.left=m.diagramContainer.offsetLeft+(m.diagramContainer.offsetWidth-
+rect:m.diagramContainer.getBoundingClientRect()}),"*");m.refresh()}N.style.left=m.diagramContainer.offsetLeft+"px";N.style.top=m.diagramContainer.offsetTop-N.offsetHeight-4+"px";B.style.display="";B.style.left=m.diagramContainer.offsetLeft-B.offsetWidth-4+"px";B.style.top=m.diagramContainer.offsetTop+"px";C.style.left=m.diagramContainer.offsetLeft+m.diagramContainer.offsetWidth-C.offsetWidth+"px";C.style.top=N.style.top;C.style.right="";m.bottomResizer.style.left=m.diagramContainer.offsetLeft+(m.diagramContainer.offsetWidth-
m.bottomResizer.offsetWidth)/2+"px";m.bottomResizer.style.top=m.diagramContainer.offsetTop+m.diagramContainer.offsetHeight-m.bottomResizer.offsetHeight/2-1+"px";m.rightResizer.style.left=m.diagramContainer.offsetLeft+m.diagramContainer.offsetWidth-m.rightResizer.offsetWidth/2-1+"px";m.rightResizer.style.top=m.diagramContainer.offsetTop+(m.diagramContainer.offsetHeight-m.bottomResizer.offsetHeight)/2+"px"}m.bottomResizer.style.visibility=Editor.inlineFullscreen?"hidden":"";m.rightResizer.style.visibility=
-m.bottomResizer.style.visibility;p.style.display="none";V.style.visibility="";C.style.visibility=""}),ra=mxUtils.bind(this,function(){ia.style.backgroundImage="url("+(Editor.inlineFullscreen?Editor.fullscreenExitImage:Editor.fullscreenImage)+")";this.diagramContainer.style.background=Editor.inlineFullscreen?Editor.isDarkMode()?Editor.darkColor:"#ffffff":"transparent";oa()}),y=mxUtils.bind(this,function(){ra();b(m,!0);m.initFormatWindow();var c=this.diagramContainer.getBoundingClientRect();this.formatWindow.window.setLocation(c.x+
-c.width+4,c.y)});m.addListener("inlineFullscreenChanged",ra);m.addListener("editInlineStart",y);"1"==urlParams.embedInline&&m.addListener("darkModeChanged",y);m.addListener("editInlineStop",mxUtils.bind(this,function(b){m.diagramContainer.style.width="10px";m.diagramContainer.style.height="10px";m.diagramContainer.style.border="";m.bottomResizer.style.visibility="hidden";m.rightResizer.style.visibility="hidden";V.style.visibility="hidden";C.style.visibility="hidden";B.style.display="none"}));if(null!=
-m.hoverIcons){var ea=m.hoverIcons.update;m.hoverIcons.update=function(){n.freehand.isDrawing()||ea.apply(this,arguments)}}if(null!=n.freehand){var qa=n.freehand.createStyle;n.freehand.createStyle=function(b){return qa.apply(this,arguments)+"sketch=0;"}}if("1"==urlParams.sketch){B.className="geToolbarContainer";C.className="geToolbarContainer";V.className="geToolbarContainer";p.className="geToolbarContainer";m.picker=B;var Q=!1;mxEvent.addListener(p,"mouseenter",function(){m.statusContainer.style.display=
-"inline-block"});mxEvent.addListener(p,"mouseleave",function(){Q||(m.statusContainer.style.display="none")});var T=mxUtils.bind(this,function(b){null!=m.notificationBtn&&(null!=b?m.notificationBtn.setAttribute("title",b):m.notificationBtn.removeAttribute("title"))});"1"!=urlParams.embed?(p.style.visibility=14>p.clientWidth?"hidden":"",m.editor.addListener("statusChanged",mxUtils.bind(this,function(){m.setStatusText(m.editor.getStatus());if(0==m.statusContainer.children.length||1==m.statusContainer.children.length&&
-"function"===typeof m.statusContainer.firstChild.getAttribute&&null==m.statusContainer.firstChild.getAttribute("class")){var b=null!=m.statusContainer.firstChild&&"function"===typeof m.statusContainer.firstChild.getAttribute?m.statusContainer.firstChild.getAttribute("title"):m.editor.getStatus();T(b);var c=m.getCurrentFile(),c=null!=c?c.savingStatusKey:DrawioFile.prototype.savingStatusKey;b==mxResources.get(c)+"..."?(m.statusContainer.innerHTML='<img title="'+mxUtils.htmlEntities(mxResources.get(c))+
-'..."src="'+Editor.tailSpin+'">',m.statusContainer.style.display="inline-block",Q=!0):6<m.buttonContainer.clientWidth&&(m.statusContainer.style.display="none",Q=!1)}else m.statusContainer.style.display="inline-block",T(null),Q=!0;p.style.visibility=12<p.clientWidth?"":"hidden"}))):m.editor.addListener("statusChanged",mxUtils.bind(this,function(){p.style.visibility=16<p.clientWidth?"":"hidden"}));R=e("diagram",null,Editor.menuImage);R.style.boxShadow="none";R.style.padding="6px";R.style.margin="0px";
-V.appendChild(R);mxEvent.disableContextMenu(R);mxEvent.addGestureListeners(R,mxUtils.bind(this,function(b){(mxEvent.isShiftDown(b)||mxEvent.isAltDown(b)||mxEvent.isMetaDown(b)||mxEvent.isControlDown(b)||mxEvent.isPopupTrigger(b))&&this.appIconClicked(b)}),null,null);m.statusContainer.style.position="";m.statusContainer.style.display="none";m.statusContainer.style.margin="0px";m.statusContainer.style.padding="6px 0px";m.statusContainer.style.maxWidth=Math.min(c-240,280)+"px";m.statusContainer.style.display=
-"inline-block";m.statusContainer.style.textOverflow="ellipsis";m.buttonContainer.style.position="";m.buttonContainer.style.paddingRight="0px";m.buttonContainer.style.display="inline-block";var Z=document.createElement("a");Z.style.padding="0px";Z.style.boxShadow="none";Z.className="geMenuItem";Z.style.display="inline-block";Z.style.width="40px";Z.style.height="12px";Z.style.marginBottom="-2px";Z.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+")";Z.style.backgroundPosition="top center";
-Z.style.backgroundRepeat="no-repeat";Z.setAttribute("title","Minimize");var U=!1,ma=mxUtils.bind(this,function(){B.innerHTML="";if(!U){var b=function(b,d,e){b=f("",b.funct,null,d,b,e);b.style.width="40px";b.style.opacity="0.7";return c(b,null,"pointer")},c=function(b,c,d){null!=c&&b.setAttribute("title",c);b.style.cursor=null!=d?d:"default";b.style.margin="2px 0px";B.appendChild(b);mxUtils.br(B);return b};c(m.sidebar.createVertexTemplate("text;strokeColor=none;fillColor=none;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;",
+m.bottomResizer.style.visibility;p.style.display="none";N.style.visibility="";C.style.visibility=""}),sa=mxUtils.bind(this,function(){ja.style.backgroundImage="url("+(Editor.inlineFullscreen?Editor.fullscreenExitImage:Editor.fullscreenImage)+")";this.diagramContainer.style.background=Editor.inlineFullscreen?Editor.isDarkMode()?Editor.darkColor:"#ffffff":"transparent";ha()}),y=mxUtils.bind(this,function(){sa();b(m,!0);m.initFormatWindow();var c=this.diagramContainer.getBoundingClientRect();this.formatWindow.window.setLocation(c.x+
+c.width+4,c.y)});m.addListener("inlineFullscreenChanged",sa);m.addListener("editInlineStart",y);"1"==urlParams.embedInline&&m.addListener("darkModeChanged",y);m.addListener("editInlineStop",mxUtils.bind(this,function(b){m.diagramContainer.style.width="10px";m.diagramContainer.style.height="10px";m.diagramContainer.style.border="";m.bottomResizer.style.visibility="hidden";m.rightResizer.style.visibility="hidden";N.style.visibility="hidden";C.style.visibility="hidden";B.style.display="none"}));if(null!=
+m.hoverIcons){var la=m.hoverIcons.update;m.hoverIcons.update=function(){n.freehand.isDrawing()||la.apply(this,arguments)}}if(null!=n.freehand){var ka=n.freehand.createStyle;n.freehand.createStyle=function(b){return ka.apply(this,arguments)+"sketch=0;"}}if("1"==urlParams.sketch){B.className="geToolbarContainer";C.className="geToolbarContainer";N.className="geToolbarContainer";p.className="geToolbarContainer";m.picker=B;var V=!1;mxEvent.addListener(p,"mouseenter",function(){m.statusContainer.style.display=
+"inline-block"});mxEvent.addListener(p,"mouseleave",function(){V||(m.statusContainer.style.display="none")});var Z=mxUtils.bind(this,function(b){null!=m.notificationBtn&&(null!=b?m.notificationBtn.setAttribute("title",b):m.notificationBtn.removeAttribute("title"))});"1"!=urlParams.embed?(p.style.visibility=14>p.clientWidth?"hidden":"",m.editor.addListener("statusChanged",mxUtils.bind(this,function(){m.setStatusText(m.editor.getStatus());if(0==m.statusContainer.children.length||1==m.statusContainer.children.length&&
+"function"===typeof m.statusContainer.firstChild.getAttribute&&null==m.statusContainer.firstChild.getAttribute("class")){var b=null!=m.statusContainer.firstChild&&"function"===typeof m.statusContainer.firstChild.getAttribute?m.statusContainer.firstChild.getAttribute("title"):m.editor.getStatus();Z(b);var c=m.getCurrentFile(),c=null!=c?c.savingStatusKey:DrawioFile.prototype.savingStatusKey;b==mxResources.get(c)+"..."?(m.statusContainer.innerHTML='<img title="'+mxUtils.htmlEntities(mxResources.get(c))+
+'..."src="'+Editor.tailSpin+'">',m.statusContainer.style.display="inline-block",V=!0):6<m.buttonContainer.clientWidth&&(m.statusContainer.style.display="none",V=!1)}else m.statusContainer.style.display="inline-block",Z(null),V=!0;p.style.visibility=12<p.clientWidth?"":"hidden"}))):m.editor.addListener("statusChanged",mxUtils.bind(this,function(){p.style.visibility=16<p.clientWidth?"":"hidden"}));R=e("diagram",null,Editor.menuImage);R.style.boxShadow="none";R.style.padding="6px";R.style.margin="0px";
+N.appendChild(R);mxEvent.disableContextMenu(R);mxEvent.addGestureListeners(R,mxUtils.bind(this,function(b){(mxEvent.isShiftDown(b)||mxEvent.isAltDown(b)||mxEvent.isMetaDown(b)||mxEvent.isControlDown(b)||mxEvent.isPopupTrigger(b))&&this.appIconClicked(b)}),null,null);m.statusContainer.style.position="";m.statusContainer.style.display="none";m.statusContainer.style.margin="0px";m.statusContainer.style.padding="6px 0px";m.statusContainer.style.maxWidth=Math.min(c-240,280)+"px";m.statusContainer.style.display=
+"inline-block";m.statusContainer.style.textOverflow="ellipsis";m.buttonContainer.style.position="";m.buttonContainer.style.paddingRight="0px";m.buttonContainer.style.display="inline-block";var O=document.createElement("a");O.style.padding="0px";O.style.boxShadow="none";O.className="geMenuItem";O.style.display="inline-block";O.style.width="40px";O.style.height="12px";O.style.marginBottom="-2px";O.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+")";O.style.backgroundPosition="top center";
+O.style.backgroundRepeat="no-repeat";O.setAttribute("title","Minimize");var fa=!1,Y=mxUtils.bind(this,function(){B.innerHTML="";if(!fa){var b=function(b,d,e){b=f("",b.funct,null,d,b,e);b.style.width="40px";b.style.opacity="0.7";return c(b,null,"pointer")},c=function(b,c,d){null!=c&&b.setAttribute("title",c);b.style.cursor=null!=d?d:"default";b.style.margin="2px 0px";B.appendChild(b);mxUtils.br(B);return b};c(m.sidebar.createVertexTemplate("text;strokeColor=none;fillColor=none;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;",
60,30,"Text",mxResources.get("text"),!0,!1,null,!0,!0),mxResources.get("text")+" ("+Editor.ctrlKey+"+Shift+X)");c(m.sidebar.createVertexTemplate("shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;fontColor=#000000;darkOpacity=0.05;fillColor=#FFF9B2;strokeColor=none;fillStyle=solid;direction=west;gradientDirection=north;gradientColor=#FFF2A1;shadow=1;size=20;pointerEvents=1;",140,160,"",mxResources.get("note"),!0,!1,null,!0),mxResources.get("note"));c(m.sidebar.createVertexTemplate("rounded=0;whiteSpace=wrap;html=1;",
160,80,"",mxResources.get("rectangle"),!0,!1,null,!0),mxResources.get("rectangle")+" ("+Editor.ctrlKey+"+K)");c(m.sidebar.createVertexTemplate("ellipse;whiteSpace=wrap;html=1;",160,100,"",mxResources.get("ellipse"),!0,!1,null,!0),mxResources.get("ellipse"));(function(){var b=new mxCell("",new mxGeometry(0,0,n.defaultEdgeLength,0),"edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;");b.geometry.setTerminalPoint(new mxPoint(0,0),!0);b.geometry.setTerminalPoint(new mxPoint(b.geometry.width,0),!1);
b.geometry.points=[];b.geometry.relative=!0;b.edge=!0;c(m.sidebar.createEdgeTemplateFromCells([b],b.geometry.width,b.geometry.height,mxResources.get("line"),!0,null,!0,!1),mxResources.get("line"));b=b.clone();b.style="edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;shape=flexArrow;rounded=1;startSize=8;endSize=8;";b.geometry.width=n.defaultEdgeLength+20;b.geometry.setTerminalPoint(new mxPoint(0,20),!0);b.geometry.setTerminalPoint(new mxPoint(b.geometry.width,20),!1);b=c(m.sidebar.createEdgeTemplateFromCells([b],
b.geometry.width,40,mxResources.get("arrow"),!0,null,!0,!1),mxResources.get("arrow"));b.style.borderBottom="1px solid "+(Editor.isDarkMode()?"#505050":"lightgray");b.style.paddingBottom="14px";b.style.marginBottom="14px"})();b(m.actions.get("insertFreehand"),mxResources.get("freehand"),Editor.freehandImage);var d=m.actions.get("toggleShapes");b(d,mxResources.get("shapes")+" ("+d.shortcut+")",A);R=e("table",null,Editor.calendarImage);R.style.boxShadow="none";R.style.opacity="0.7";R.style.padding="6px";
-R.style.margin="0px";R.style.width="37px";c(R,null,"pointer");R=e("insert",null,Editor.plusImage);R.style.boxShadow="none";R.style.opacity="0.7";R.style.padding="6px";R.style.margin="0px";R.style.width="37px";c(R,null,"pointer")}"1"!=urlParams.embedInline&&B.appendChild(Z)});mxEvent.addListener(Z,"click",mxUtils.bind(this,function(){U?(mxUtils.setPrefixedStyle(B.style,"transform","translate(0, -50%)"),B.style.padding="8px 6px 4px",B.style.top="50%",B.style.bottom="",B.style.height="",Z.style.backgroundImage=
-"url("+mxWindow.prototype.normalizeImage+")",Z.style.width="40px",Z.style.height="12px",Z.setAttribute("title","Minimize"),U=!1,ma()):(B.innerHTML="",B.appendChild(Z),mxUtils.setPrefixedStyle(B.style,"transform","translate(0, 0)"),B.style.top="",B.style.bottom="12px",B.style.padding="0px",B.style.height="24px",Z.style.height="24px",Z.style.backgroundImage="url("+Editor.plusImage+")",Z.setAttribute("title",mxResources.get("insert")),Z.style.width="24px",U=!0)}));ma();m.addListener("darkModeChanged",
-ma);m.addListener("sketchModeChanged",ma)}else m.editor.addListener("statusChanged",mxUtils.bind(this,function(){m.setStatusText(m.editor.getStatus())}));if(null!=z){var ga=function(b){n.popupMenuHandler.hideMenu();mxEvent.isAltDown(b)||mxEvent.isShiftDown(b)?m.actions.get("customZoom").funct():m.actions.get("smartFit").funct()},sa=m.actions.get("zoomIn"),X=m.actions.get("zoomOut"),ca=m.actions.get("resetView"),y=m.actions.get("fullscreen"),fa=m.actions.get("undo"),ha=m.actions.get("redo"),ja=f("",
-fa.funct,null,mxResources.get("undo")+" ("+fa.shortcut+")",fa,Editor.undoImage),ua=f("",ha.funct,null,mxResources.get("redo")+" ("+ha.shortcut+")",ha,Editor.redoImage),ia=f("",y.funct,null,mxResources.get("fullscreen"),y,Editor.fullscreenImage);if(null!=C){z=function(){ba.style.display=null!=m.pages&&("0"!=urlParams.pages||1<m.pages.length||Editor.pagesVisible)?"inline-block":"none"};ca=function(){ba.innerHTML="";null!=m.currentPage&&mxUtils.write(ba,m.currentPage.getName())};ia.parentNode.removeChild(ia);
-var na=m.actions.get("delete"),la=f("",na.funct,null,mxResources.get("delete"),na,Editor.trashImage);la.style.opacity="0.1";V.appendChild(la);na.addListener("stateChanged",function(){la.style.opacity=na.enabled?"":"0.1"});var ka=function(){ja.style.display=0<m.editor.undoManager.history.length||n.isEditing()?"inline-block":"none";ua.style.display=ja.style.display;ja.style.opacity=fa.enabled?"":"0.1";ua.style.opacity=ha.enabled?"":"0.1"};V.appendChild(ja);V.appendChild(ua);fa.addListener("stateChanged",
-ka);ha.addListener("stateChanged",ka);ka();null!=urlParams.layers&&(ka=m.actions.get("layers"),ka=f("",ka.funct,null,mxResources.get("layers"),ka,Editor.layersImage),ka.style.opacity="0.4",C.appendChild(ka));null!=urlParams.tags&&(ka=m.actions.get("tags"),ka=f("",ka.funct,null,mxResources.get("tags"),ka,Editor.tagsImage),ka.style.opacity="0.4",C.appendChild(ka));var ba=this.createPageMenuTab(!1,!0);ba.style.display="none";ba.style.position="";ba.style.marginLeft="";ba.style.top="";ba.style.left="";
-ba.style.height="100%";ba.style.lineHeight="";ba.style.borderStyle="none";ba.style.padding="3px 0";ba.style.margin="0px";ba.style.background="";ba.style.border="";ba.style.boxShadow="none";ba.style.verticalAlign="top";ba.style.width="auto";ba.style.maxWidth="160px";ba.style.position="relative";ba.style.padding="6px";ba.style.textOverflow="ellipsis";ba.style.opacity="0.8";m.editor.addListener("pageSelected",ca);m.editor.addListener("pageRenamed",ca);m.editor.addListener("fileLoaded",ca);ca();null!=
-m.currentPage&&(mxUtils.write(R,m.currentPage.getName()),console.log("initial page not emptry"));C.appendChild(ba);m.addListener("fileDescriptorChanged",z);m.addListener("pagesVisibleChanged",z);z();z=f("",X.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -/Alt+Mousewheel)",X,Editor.zoomOutImage);C.appendChild(z);var R=document.createElement("div");R.innerHTML="100%";R.setAttribute("title",mxResources.get("fitWindow")+"/"+mxResources.get("resetView")+" (Enter)");R.style.display="inline-block";
-R.style.cursor="pointer";R.style.textAlign="center";R.style.whiteSpace="nowrap";R.style.paddingRight="10px";R.style.textDecoration="none";R.style.verticalAlign="top";R.style.padding="6px 0";R.style.fontSize="14px";R.style.width="40px";R.style.opacity="0.4";C.appendChild(R);mxEvent.addListener(R,"click",ga);ga=f("",sa.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +/Alt+Mousewheel)",sa,Editor.zoomInImage);C.appendChild(ga);y.visible&&(C.appendChild(ia),mxEvent.addListener(document,"fullscreenchange",
-function(){ia.style.backgroundImage="url("+(null!=document.fullscreenElement?Editor.fullscreenExitImage:Editor.fullscreenImage)+")"}));"1"==urlParams.embedInline&&(y=m.actions.get("exit"),C.appendChild(f("",y.funct,null,mxResources.get("exit"),y,Editor.closeImage)));m.tabContainer.style.visibility="hidden";p.style.cssText="position:absolute;right:14px;top:10px;height:30px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px 0px 6px 6px;border-bottom:1px solid lightgray;text-align:right;white-space:nowrap;overflow:hidden;user-select:none;";
-V.style.cssText="position:absolute;left:10px;top:10px;height:30px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;border-bottom:1px solid lightgray;text-align:right;white-space:nowrap;overflow:hidden;user-select:none;";C.style.cssText="position:absolute;right:14px;bottom:14px;height:28px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:8px;white-space:nowrap;user-select:none;";x.appendChild(V);x.appendChild(C);B.style.cssText="position:absolute;left:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:8px 6px 4px 6px;white-space:nowrap;transform:translate(0, -50%);top:50%;user-select:none;";
-x.appendChild(B);window.setTimeout(function(){mxUtils.setPrefixedStyle(B.style,"transition","transform .3s ease-out")},0);"1"==urlParams["format-toolbar"]&&this.installFormatToolbar(x)}else{var ya=f("",ga,!0,mxResources.get("fit")+" ("+Editor.ctrlKey+"+H)",ca,Editor.zoomFitImage);p.style.cssText="position:absolute;left:0px;right:0px;top:0px;height:30px;padding:8px;text-align:left;white-space:nowrap;";this.tabContainer.style.right="70px";R=t.addMenu("100%",z.funct);R.setAttribute("title",mxResources.get("zoom")+
+R.style.margin="0px";R.style.width="37px";c(R,null,"pointer");R=e("insert",null,Editor.plusImage);R.style.boxShadow="none";R.style.opacity="0.7";R.style.padding="6px";R.style.margin="0px";R.style.width="37px";c(R,null,"pointer")}"1"!=urlParams.embedInline&&B.appendChild(O)});mxEvent.addListener(O,"click",mxUtils.bind(this,function(){fa?(mxUtils.setPrefixedStyle(B.style,"transform","translate(0, -50%)"),B.style.padding="8px 6px 4px",B.style.top="50%",B.style.bottom="",B.style.height="",O.style.backgroundImage=
+"url("+mxWindow.prototype.normalizeImage+")",O.style.width="40px",O.style.height="12px",O.setAttribute("title","Minimize"),fa=!1,Y()):(B.innerHTML="",B.appendChild(O),mxUtils.setPrefixedStyle(B.style,"transform","translate(0, 0)"),B.style.top="",B.style.bottom="12px",B.style.padding="0px",B.style.height="24px",O.style.height="24px",O.style.backgroundImage="url("+Editor.plusImage+")",O.setAttribute("title",mxResources.get("insert")),O.style.width="24px",fa=!0)}));Y();m.addListener("darkModeChanged",
+Y);m.addListener("sketchModeChanged",Y)}else m.editor.addListener("statusChanged",mxUtils.bind(this,function(){m.setStatusText(m.editor.getStatus())}));if(null!=z){var ca=function(b){n.popupMenuHandler.hideMenu();mxEvent.isAltDown(b)||mxEvent.isShiftDown(b)?m.actions.get("customZoom").funct():m.actions.get("smartFit").funct()},pa=m.actions.get("zoomIn"),ra=m.actions.get("zoomOut"),U=m.actions.get("resetView"),y=m.actions.get("fullscreen"),na=m.actions.get("undo"),ga=m.actions.get("redo"),ba=f("",
+na.funct,null,mxResources.get("undo")+" ("+na.shortcut+")",na,Editor.undoImage),ta=f("",ga.funct,null,mxResources.get("redo")+" ("+ga.shortcut+")",ga,Editor.redoImage),ja=f("",y.funct,null,mxResources.get("fullscreen"),y,Editor.fullscreenImage);if(null!=C){z=function(){aa.style.display=null!=m.pages&&("0"!=urlParams.pages||1<m.pages.length||Editor.pagesVisible)?"inline-block":"none"};U=function(){aa.innerHTML="";null!=m.currentPage&&mxUtils.write(aa,m.currentPage.getName())};ja.parentNode.removeChild(ja);
+var qa=m.actions.get("delete"),ma=f("",qa.funct,null,mxResources.get("delete"),qa,Editor.trashImage);ma.style.opacity="0.1";N.appendChild(ma);qa.addListener("stateChanged",function(){ma.style.opacity=qa.enabled?"":"0.1"});var ia=function(){ba.style.display=0<m.editor.undoManager.history.length||n.isEditing()?"inline-block":"none";ta.style.display=ba.style.display;ba.style.opacity=na.enabled?"":"0.1";ta.style.opacity=ga.enabled?"":"0.1"};N.appendChild(ba);N.appendChild(ta);na.addListener("stateChanged",
+ia);ga.addListener("stateChanged",ia);ia();null!=urlParams.layers&&(ia=m.actions.get("layers"),ia=f("",ia.funct,null,mxResources.get("layers"),ia,Editor.layersImage),ia.style.opacity="0.4",C.appendChild(ia));null!=urlParams.tags&&(ia=m.actions.get("tags"),ia=f("",ia.funct,null,mxResources.get("tags"),ia,Editor.tagsImage),ia.style.opacity="0.4",C.appendChild(ia));var aa=this.createPageMenuTab(!1,!0);aa.style.display="none";aa.style.position="";aa.style.marginLeft="";aa.style.top="";aa.style.left="";
+aa.style.height="100%";aa.style.lineHeight="";aa.style.borderStyle="none";aa.style.padding="3px 0";aa.style.margin="0px";aa.style.background="";aa.style.border="";aa.style.boxShadow="none";aa.style.verticalAlign="top";aa.style.width="auto";aa.style.maxWidth="160px";aa.style.position="relative";aa.style.padding="6px";aa.style.textOverflow="ellipsis";aa.style.opacity="0.8";m.editor.addListener("pageSelected",U);m.editor.addListener("pageRenamed",U);m.editor.addListener("fileLoaded",U);U();null!=m.currentPage&&
+(mxUtils.write(R,m.currentPage.getName()),console.log("initial page not emptry"));C.appendChild(aa);m.addListener("fileDescriptorChanged",z);m.addListener("pagesVisibleChanged",z);z();z=f("",ra.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -/Alt+Mousewheel)",ra,Editor.zoomOutImage);C.appendChild(z);var R=document.createElement("div");R.innerHTML="100%";R.setAttribute("title",mxResources.get("fitWindow")+"/"+mxResources.get("resetView")+" (Enter)");R.style.display="inline-block";R.style.cursor=
+"pointer";R.style.textAlign="center";R.style.whiteSpace="nowrap";R.style.paddingRight="10px";R.style.textDecoration="none";R.style.verticalAlign="top";R.style.padding="6px 0";R.style.fontSize="14px";R.style.width="40px";R.style.opacity="0.4";C.appendChild(R);mxEvent.addListener(R,"click",ca);ca=f("",pa.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +/Alt+Mousewheel)",pa,Editor.zoomInImage);C.appendChild(ca);y.visible&&(C.appendChild(ja),mxEvent.addListener(document,"fullscreenchange",function(){ja.style.backgroundImage=
+"url("+(null!=document.fullscreenElement?Editor.fullscreenExitImage:Editor.fullscreenImage)+")"}));"1"==urlParams.embedInline&&(y=m.actions.get("exit"),C.appendChild(f("",y.funct,null,mxResources.get("exit"),y,Editor.closeImage)));m.tabContainer.style.visibility="hidden";p.style.cssText="position:absolute;right:14px;top:10px;height:30px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px 0px 6px 6px;border-bottom:1px solid lightgray;text-align:right;white-space:nowrap;overflow:hidden;user-select:none;";
+N.style.cssText="position:absolute;left:10px;top:10px;height:30px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;border-bottom:1px solid lightgray;text-align:right;white-space:nowrap;overflow:hidden;user-select:none;";C.style.cssText="position:absolute;right:14px;bottom:14px;height:28px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:8px;white-space:nowrap;user-select:none;";x.appendChild(N);x.appendChild(C);B.style.cssText="position:absolute;left:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:8px 6px 4px 6px;white-space:nowrap;transform:translate(0, -50%);top:50%;user-select:none;";
+x.appendChild(B);window.setTimeout(function(){mxUtils.setPrefixedStyle(B.style,"transition","transform .3s ease-out")},0);"1"==urlParams["format-toolbar"]&&this.installFormatToolbar(x)}else{var za=f("",ca,!0,mxResources.get("fit")+" ("+Editor.ctrlKey+"+H)",U,Editor.zoomFitImage);p.style.cssText="position:absolute;left:0px;right:0px;top:0px;height:30px;padding:8px;text-align:left;white-space:nowrap;";this.tabContainer.style.right="70px";R=t.addMenu("100%",z.funct);R.setAttribute("title",mxResources.get("zoom")+
" (Alt+Mousewheel)");R.style.whiteSpace="nowrap";R.style.paddingRight="10px";R.style.textDecoration="none";R.style.textDecoration="none";R.style.overflow="hidden";R.style.visibility="hidden";R.style.textAlign="center";R.style.cursor="pointer";R.style.height=parseInt(m.tabContainerHeight)-1+"px";R.style.lineHeight=parseInt(m.tabContainerHeight)+1+"px";R.style.position="absolute";R.style.display="block";R.style.fontSize="12px";R.style.width="59px";R.style.right="0px";R.style.bottom="0px";R.style.backgroundImage=
-"url("+mxWindow.prototype.minimizeImage+")";R.style.backgroundPosition="right 6px center";R.style.backgroundRepeat="no-repeat";x.appendChild(R)}(function(b){var c=mxUtils.bind(this,function(){b.innerHTML="";mxUtils.write(b,Math.round(100*m.editor.graph.view.scale)+"%")});m.editor.graph.view.addListener(mxEvent.EVENT_SCALE,c);m.editor.addListener("resetGraphView",c);m.editor.addListener("pageSelected",c)})(R);var va=m.setGraphEnabled;m.setGraphEnabled=function(){va.apply(this,arguments);null!=this.tabContainer&&
-(R.style.visibility=this.tabContainer.style.visibility,this.diagramContainer.style.bottom="hidden"!=this.tabContainer.style.visibility&&null==C?this.tabContainerHeight+"px":"0px")}}x.appendChild(p);x.appendChild(m.diagramContainer);l.appendChild(x);m.updateTabContainer();!EditorUi.windowed&&("1"==urlParams.sketch||1E3<=c)&&"1"!=urlParams.embedInline&&b(this,!0);null==C&&x.appendChild(m.tabContainer);var wa=null;k();mxEvent.addListener(window,"resize",function(){k();null!=m.sidebarWindow&&m.sidebarWindow.window.fit();
+"url("+mxWindow.prototype.minimizeImage+")";R.style.backgroundPosition="right 6px center";R.style.backgroundRepeat="no-repeat";x.appendChild(R)}(function(b){var c=mxUtils.bind(this,function(){b.innerHTML="";mxUtils.write(b,Math.round(100*m.editor.graph.view.scale)+"%")});m.editor.graph.view.addListener(mxEvent.EVENT_SCALE,c);m.editor.addListener("resetGraphView",c);m.editor.addListener("pageSelected",c)})(R);var ya=m.setGraphEnabled;m.setGraphEnabled=function(){ya.apply(this,arguments);null!=this.tabContainer&&
+(R.style.visibility=this.tabContainer.style.visibility,this.diagramContainer.style.bottom="hidden"!=this.tabContainer.style.visibility&&null==C?this.tabContainerHeight+"px":"0px")}}x.appendChild(p);x.appendChild(m.diagramContainer);l.appendChild(x);m.updateTabContainer();!EditorUi.windowed&&("1"==urlParams.sketch||1E3<=c)&&"1"!=urlParams.embedInline&&b(this,!0);null==C&&x.appendChild(m.tabContainer);var ua=null;k();mxEvent.addListener(window,"resize",function(){k();null!=m.sidebarWindow&&m.sidebarWindow.window.fit();
null!=m.formatWindow&&m.formatWindow.window.fit();null!=m.actions.outlineWindow&&m.actions.outlineWindow.window.fit();null!=m.actions.layersWindow&&m.actions.layersWindow.window.fit();null!=m.menus.tagsWindow&&m.menus.tagsWindow.window.fit();null!=m.menus.findWindow&&m.menus.findWindow.window.fit();null!=m.menus.findReplaceWindow&&m.menus.findReplaceWindow.window.fit()});if("1"==urlParams.embedInline){document.body.style.cursor="text";B.style.transform="";mxEvent.addGestureListeners(m.diagramContainer.parentNode,
-function(b){mxEvent.getSource(b)==m.diagramContainer.parentNode&&(m.embedExitPoint=new mxPoint(mxEvent.getClientX(b),mxEvent.getClientY(b)),m.sendEmbeddedSvgExport())});l=document.createElement("div");l.style.position="absolute";l.style.width="10px";l.style.height="10px";l.style.borderRadius="5px";l.style.border="1px solid gray";l.style.background="#ffffff";l.style.cursor="row-resize";m.diagramContainer.parentNode.appendChild(l);m.bottomResizer=l;var xa=null,ta=null,za=null,Aa=null;mxEvent.addGestureListeners(l,
-function(b){Aa=parseInt(m.diagramContainer.style.height);ta=mxEvent.getClientY(b);n.popupMenuHandler.hideMenu();mxEvent.consume(b)});l=l.cloneNode(!1);l.style.cursor="col-resize";m.diagramContainer.parentNode.appendChild(l);m.rightResizer=l;mxEvent.addGestureListeners(l,function(b){za=parseInt(m.diagramContainer.style.width);xa=mxEvent.getClientX(b);n.popupMenuHandler.hideMenu();mxEvent.consume(b)});mxEvent.addGestureListeners(document.body,null,function(b){var c=!1;null!=xa&&(m.diagramContainer.style.width=
-Math.max(20,za+mxEvent.getClientX(b)-xa)+"px",c=!0);null!=ta&&(m.diagramContainer.style.height=Math.max(20,Aa+mxEvent.getClientY(b)-ta)+"px",c=!0);c&&((window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:Editor.inlineFullscreen,rect:m.diagramContainer.getBoundingClientRect()}),"*"),oa(),m.refresh())},function(b){null==xa&&null==ta||mxEvent.consume(b);ta=xa=null});this.diagramContainer.style.borderRadius="4px";document.body.style.backgroundColor="transparent";m.bottomResizer.style.visibility=
-"hidden";m.rightResizer.style.visibility="hidden";V.style.visibility="hidden";C.style.visibility="hidden";B.style.display="none"}"1"==urlParams.prefetchFonts&&m.editor.loadFonts()}}};(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var e=EditorUi.initTheme;EditorUi.initTheme=function(){e.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();(function(){var b=mxGuide.prototype.move;mxGuide.prototype.move=function(c,d,e,n){var f=d.y,g=d.x,k=!1,p=!1;if(null!=this.states&&null!=c&&null!=d){var q=this,t=new mxCellState,v=this.graph.getView().scale,u=Math.max(2,this.getGuideTolerance()/2);t.x=c.x+g;t.y=c.y+f;t.width=c.width;t.height=c.height;for(var x=[],A=[],z=0;z<this.states.length;z++){var B=this.states[z];B instanceof mxCellState&&(n||!this.graph.isCellSelected(B.cell))&&((t.x>=B.x&&t.x<=B.x+B.width||B.x>=t.x&&B.x<=t.x+t.width)&&(t.y>
-B.y+B.height+4||t.y+t.height+4<B.y)?x.push(B):(t.y>=B.y&&t.y<=B.y+B.height||B.y>=t.y&&B.y<=t.y+t.height)&&(t.x>B.x+B.width+4||t.x+t.width+4<B.x)&&A.push(B))}var y=0,C=0,E=B=0,D=0,F=0,G=0,I=0,J=5*v;if(1<x.length){x.push(t);x.sort(function(b,c){return b.y-c.y});var H=!1,z=t==x[0],v=t==x[x.length-1];if(!z&&!v)for(z=1;z<x.length-1;z++)if(t==x[z]){v=x[z-1];z=x[z+1];B=C=E=(z.y-v.y-v.height-t.height)/2;break}for(z=0;z<x.length-1;z++){var v=x[z],K=x[z+1],P=t==v||t==K,K=K.y-v.y-v.height,H=H|t==v;if(0==C&&
-0==y)C=K,y=1;else if(Math.abs(C-K)<=(P||1==z&&H?u:0))y+=1;else if(1<y&&H){x=x.slice(0,z+1);break}else if(3<=x.length-z&&!H)y=0,B=C=0!=E?E:0,x.splice(0,0==z?1:z),z=-1;else break;0!=B||P||(C=B=K)}3==x.length&&x[1]==t&&(B=0)}if(1<A.length){A.push(t);A.sort(function(b,c){return b.x-c.x});H=!1;z=t==A[0];v=t==A[A.length-1];if(!z&&!v)for(z=1;z<A.length-1;z++)if(t==A[z]){v=A[z-1];z=A[z+1];G=F=I=(z.x-v.x-v.width-t.width)/2;break}for(z=0;z<A.length-1;z++){v=A[z];K=A[z+1];P=t==v||t==K;K=K.x-v.x-v.width;H|=t==
-v;if(0==F&&0==D)F=K,D=1;else if(Math.abs(F-K)<=(P||1==z&&H?u:0))D+=1;else if(1<D&&H){A=A.slice(0,z+1);break}else if(3<=A.length-z&&!H)D=0,G=F=0!=I?I:0,A.splice(0,0==z?1:z),z=-1;else break;0!=G||P||(F=G=K)}3==A.length&&A[1]==t&&(G=0)}u=function(b,c,d,e){var f=[],g;e?(e=J,g=0):(e=0,g=J);f.push(new mxPoint(b.x-e,b.y-g));f.push(new mxPoint(b.x+e,b.y+g));f.push(b);f.push(c);f.push(new mxPoint(c.x-e,c.y-g));f.push(new mxPoint(c.x+e,c.y+g));if(null!=d)return d.points=f,d;b=new mxPolyline(f,mxConstants.GUIDE_COLOR,
-mxConstants.GUIDE_STROKEWIDTH);b.dialect=mxConstants.DIALECT_SVG;b.pointerEvents=!1;b.init(q.graph.getView().getOverlayPane());return b};F=function(b,c){if(b&&null!=q.guidesArrHor)for(var d=0;d<q.guidesArrHor.length;d++)q.guidesArrHor[d].node.style.visibility="hidden";if(c&&null!=q.guidesArrVer)for(d=0;d<q.guidesArrVer.length;d++)q.guidesArrVer[d].node.style.visibility="hidden"};if(1<D&&D==A.length-1){D=[];I=q.guidesArrHor;k=[];g=0;z=A[0]==t?1:0;H=A[z].y+A[z].height;if(0<G)for(z=0;z<A.length-1;z++)v=
-A[z],K=A[z+1],t==v?(g=K.x-v.width-G,k.push(new mxPoint(g+v.width+J,H)),k.push(new mxPoint(K.x-J,H))):t==K?(k.push(new mxPoint(v.x+v.width+J,H)),g=v.x+v.width+G,k.push(new mxPoint(g-J,H))):(k.push(new mxPoint(v.x+v.width+J,H)),k.push(new mxPoint(K.x-J,H)));else v=A[0],z=A[2],g=v.x+v.width+(z.x-v.x-v.width-t.width)/2,k.push(new mxPoint(v.x+v.width+J,H)),k.push(new mxPoint(g-J,H)),k.push(new mxPoint(g+t.width+J,H)),k.push(new mxPoint(z.x-J,H));for(z=0;z<k.length;z+=2)A=k[z],G=k[z+1],A=u(A,G,null!=I?
-I[z/2]:null),A.node.style.visibility="visible",A.redraw(),D.push(A);for(z=k.length/2;null!=I&&z<I.length;z++)I[z].destroy();q.guidesArrHor=D;g-=c.x;k=!0}else F(!0);if(1<y&&y==x.length-1){D=[];I=q.guidesArrVer;p=[];f=0;z=x[0]==t?1:0;y=x[z].x+x[z].width;if(0<B)for(z=0;z<x.length-1;z++)v=x[z],K=x[z+1],t==v?(f=K.y-v.height-B,p.push(new mxPoint(y,f+v.height+J)),p.push(new mxPoint(y,K.y-J))):t==K?(p.push(new mxPoint(y,v.y+v.height+J)),f=v.y+v.height+B,p.push(new mxPoint(y,f-J))):(p.push(new mxPoint(y,v.y+
-v.height+J)),p.push(new mxPoint(y,K.y-J)));else v=x[0],z=x[2],f=v.y+v.height+(z.y-v.y-v.height-t.height)/2,p.push(new mxPoint(y,v.y+v.height+J)),p.push(new mxPoint(y,f-J)),p.push(new mxPoint(y,f+t.height+J)),p.push(new mxPoint(y,z.y-J));for(z=0;z<p.length;z+=2)A=p[z],G=p[z+1],A=u(A,G,null!=I?I[z/2]:null,!0),A.node.style.visibility="visible",A.redraw(),D.push(A);for(z=p.length/2;null!=I&&z<I.length;z++)I[z].destroy();q.guidesArrVer=D;f-=c.y;p=!0}else F(!1,!0)}if(k||p)return t=new mxPoint(g,f),x=b.call(this,
-c,t,e,n),k&&!p?t.y=x.y:p&&!k&&(t.x=x.x),x.y!=t.y&&null!=this.guideY&&null!=this.guideY.node&&(this.guideY.node.style.visibility="hidden"),x.x!=t.x&&null!=this.guideX&&null!=this.guideX.node&&(this.guideX.node.style.visibility="hidden"),t;F(!0,!0);return b.apply(this,arguments)};var e=mxGuide.prototype.setVisible;mxGuide.prototype.setVisible=function(b){e.call(this,b);var c=this.guidesArrVer,d=this.guidesArrHor;if(null!=c)for(var n=0;n<c.length;n++)c[n].node.style.visibility=b?"visible":"hidden";if(null!=
+function(b){mxEvent.getSource(b)==m.diagramContainer.parentNode&&(m.embedExitPoint=new mxPoint(mxEvent.getClientX(b),mxEvent.getClientY(b)),m.sendEmbeddedSvgExport())});l=document.createElement("div");l.style.position="absolute";l.style.width="10px";l.style.height="10px";l.style.borderRadius="5px";l.style.border="1px solid gray";l.style.background="#ffffff";l.style.cursor="row-resize";m.diagramContainer.parentNode.appendChild(l);m.bottomResizer=l;var va=null,xa=null,wa=null,Da=null;mxEvent.addGestureListeners(l,
+function(b){Da=parseInt(m.diagramContainer.style.height);xa=mxEvent.getClientY(b);n.popupMenuHandler.hideMenu();mxEvent.consume(b)});l=l.cloneNode(!1);l.style.cursor="col-resize";m.diagramContainer.parentNode.appendChild(l);m.rightResizer=l;mxEvent.addGestureListeners(l,function(b){wa=parseInt(m.diagramContainer.style.width);va=mxEvent.getClientX(b);n.popupMenuHandler.hideMenu();mxEvent.consume(b)});mxEvent.addGestureListeners(document.body,null,function(b){var c=!1;null!=va&&(m.diagramContainer.style.width=
+Math.max(20,wa+mxEvent.getClientX(b)-va)+"px",c=!0);null!=xa&&(m.diagramContainer.style.height=Math.max(20,Da+mxEvent.getClientY(b)-xa)+"px",c=!0);c&&((window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:Editor.inlineFullscreen,rect:m.diagramContainer.getBoundingClientRect()}),"*"),ha(),m.refresh())},function(b){null==va&&null==xa||mxEvent.consume(b);xa=va=null});this.diagramContainer.style.borderRadius="4px";document.body.style.backgroundColor="transparent";m.bottomResizer.style.visibility=
+"hidden";m.rightResizer.style.visibility="hidden";N.style.visibility="hidden";C.style.visibility="hidden";B.style.display="none"}"1"==urlParams.prefetchFonts&&m.editor.loadFonts()}}};(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var e=EditorUi.initTheme;EditorUi.initTheme=function(){e.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();(function(){var b=mxGuide.prototype.move;mxGuide.prototype.move=function(c,d,e,n){var f=d.y,g=d.x,k=!1,p=!1;if(null!=this.states&&null!=c&&null!=d){var q=this,t=new mxCellState,v=this.graph.getView().scale,u=Math.max(2,this.getGuideTolerance()/2);t.x=c.x+g;t.y=c.y+f;t.width=c.width;t.height=c.height;for(var x=[],A=[],z=0;z<this.states.length;z++){var B=this.states[z];B instanceof mxCellState&&(n||!this.graph.isCellSelected(B.cell))&&((t.x>=B.x&&t.x<=B.x+B.width||B.x>=t.x&&B.x<=t.x+t.width)&&(t.y>
+B.y+B.height+4||t.y+t.height+4<B.y)?x.push(B):(t.y>=B.y&&t.y<=B.y+B.height||B.y>=t.y&&B.y<=t.y+t.height)&&(t.x>B.x+B.width+4||t.x+t.width+4<B.x)&&A.push(B))}var y=0,C=0,G=B=0,D=0,E=0,F=0,J=0,K=5*v;if(1<x.length){x.push(t);x.sort(function(b,c){return b.y-c.y});var H=!1,z=t==x[0],v=t==x[x.length-1];if(!z&&!v)for(z=1;z<x.length-1;z++)if(t==x[z]){v=x[z-1];z=x[z+1];B=C=G=(z.y-v.y-v.height-t.height)/2;break}for(z=0;z<x.length-1;z++){var v=x[z],I=x[z+1],S=t==v||t==I,I=I.y-v.y-v.height,H=H|t==v;if(0==C&&
+0==y)C=I,y=1;else if(Math.abs(C-I)<=(S||1==z&&H?u:0))y+=1;else if(1<y&&H){x=x.slice(0,z+1);break}else if(3<=x.length-z&&!H)y=0,B=C=0!=G?G:0,x.splice(0,0==z?1:z),z=-1;else break;0!=B||S||(C=B=I)}3==x.length&&x[1]==t&&(B=0)}if(1<A.length){A.push(t);A.sort(function(b,c){return b.x-c.x});H=!1;z=t==A[0];v=t==A[A.length-1];if(!z&&!v)for(z=1;z<A.length-1;z++)if(t==A[z]){v=A[z-1];z=A[z+1];F=E=J=(z.x-v.x-v.width-t.width)/2;break}for(z=0;z<A.length-1;z++){v=A[z];I=A[z+1];S=t==v||t==I;I=I.x-v.x-v.width;H|=t==
+v;if(0==E&&0==D)E=I,D=1;else if(Math.abs(E-I)<=(S||1==z&&H?u:0))D+=1;else if(1<D&&H){A=A.slice(0,z+1);break}else if(3<=A.length-z&&!H)D=0,F=E=0!=J?J:0,A.splice(0,0==z?1:z),z=-1;else break;0!=F||S||(E=F=I)}3==A.length&&A[1]==t&&(F=0)}u=function(b,c,d,e){var f=[],g;e?(e=K,g=0):(e=0,g=K);f.push(new mxPoint(b.x-e,b.y-g));f.push(new mxPoint(b.x+e,b.y+g));f.push(b);f.push(c);f.push(new mxPoint(c.x-e,c.y-g));f.push(new mxPoint(c.x+e,c.y+g));if(null!=d)return d.points=f,d;b=new mxPolyline(f,mxConstants.GUIDE_COLOR,
+mxConstants.GUIDE_STROKEWIDTH);b.dialect=mxConstants.DIALECT_SVG;b.pointerEvents=!1;b.init(q.graph.getView().getOverlayPane());return b};E=function(b,c){if(b&&null!=q.guidesArrHor)for(var d=0;d<q.guidesArrHor.length;d++)q.guidesArrHor[d].node.style.visibility="hidden";if(c&&null!=q.guidesArrVer)for(d=0;d<q.guidesArrVer.length;d++)q.guidesArrVer[d].node.style.visibility="hidden"};if(1<D&&D==A.length-1){D=[];J=q.guidesArrHor;k=[];g=0;z=A[0]==t?1:0;H=A[z].y+A[z].height;if(0<F)for(z=0;z<A.length-1;z++)v=
+A[z],I=A[z+1],t==v?(g=I.x-v.width-F,k.push(new mxPoint(g+v.width+K,H)),k.push(new mxPoint(I.x-K,H))):t==I?(k.push(new mxPoint(v.x+v.width+K,H)),g=v.x+v.width+F,k.push(new mxPoint(g-K,H))):(k.push(new mxPoint(v.x+v.width+K,H)),k.push(new mxPoint(I.x-K,H)));else v=A[0],z=A[2],g=v.x+v.width+(z.x-v.x-v.width-t.width)/2,k.push(new mxPoint(v.x+v.width+K,H)),k.push(new mxPoint(g-K,H)),k.push(new mxPoint(g+t.width+K,H)),k.push(new mxPoint(z.x-K,H));for(z=0;z<k.length;z+=2)A=k[z],F=k[z+1],A=u(A,F,null!=J?
+J[z/2]:null),A.node.style.visibility="visible",A.redraw(),D.push(A);for(z=k.length/2;null!=J&&z<J.length;z++)J[z].destroy();q.guidesArrHor=D;g-=c.x;k=!0}else E(!0);if(1<y&&y==x.length-1){D=[];J=q.guidesArrVer;p=[];f=0;z=x[0]==t?1:0;y=x[z].x+x[z].width;if(0<B)for(z=0;z<x.length-1;z++)v=x[z],I=x[z+1],t==v?(f=I.y-v.height-B,p.push(new mxPoint(y,f+v.height+K)),p.push(new mxPoint(y,I.y-K))):t==I?(p.push(new mxPoint(y,v.y+v.height+K)),f=v.y+v.height+B,p.push(new mxPoint(y,f-K))):(p.push(new mxPoint(y,v.y+
+v.height+K)),p.push(new mxPoint(y,I.y-K)));else v=x[0],z=x[2],f=v.y+v.height+(z.y-v.y-v.height-t.height)/2,p.push(new mxPoint(y,v.y+v.height+K)),p.push(new mxPoint(y,f-K)),p.push(new mxPoint(y,f+t.height+K)),p.push(new mxPoint(y,z.y-K));for(z=0;z<p.length;z+=2)A=p[z],F=p[z+1],A=u(A,F,null!=J?J[z/2]:null,!0),A.node.style.visibility="visible",A.redraw(),D.push(A);for(z=p.length/2;null!=J&&z<J.length;z++)J[z].destroy();q.guidesArrVer=D;f-=c.y;p=!0}else E(!1,!0)}if(k||p)return t=new mxPoint(g,f),x=b.call(this,
+c,t,e,n),k&&!p?t.y=x.y:p&&!k&&(t.x=x.x),x.y!=t.y&&null!=this.guideY&&null!=this.guideY.node&&(this.guideY.node.style.visibility="hidden"),x.x!=t.x&&null!=this.guideX&&null!=this.guideX.node&&(this.guideX.node.style.visibility="hidden"),t;E(!0,!0);return b.apply(this,arguments)};var e=mxGuide.prototype.setVisible;mxGuide.prototype.setVisible=function(b){e.call(this,b);var c=this.guidesArrVer,d=this.guidesArrHor;if(null!=c)for(var n=0;n<c.length;n++)c[n].node.style.visibility=b?"visible":"hidden";if(null!=
d)for(n=0;n<d.length;n++)d[n].node.style.visibility=b?"visible":"hidden"};var d=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){d.call(this);var b=this.guidesArrVer,e=this.guidesArrHor;if(null!=b){for(var k=0;k<b.length;k++)b[k].destroy();this.guidesArrVer=null}if(null!=e){for(k=0;k<e.length;k++)e[k].destroy();this.guidesArrHor=null}}})();function mxRuler(b,e,d,c){function g(){var c=b.diagramContainer;q.style.top=c.offsetTop-l+"px";q.style.left=c.offsetLeft-l+"px";q.style.width=(d?0:c.offsetWidth)+l+"px";q.style.height=(d?c.offsetHeight:0)+l+"px"}function k(b,c,d){if(null!=n)return b;var e;return function(){var f=this,g=arguments,k=d&&!e;clearTimeout(e);e=setTimeout(function(){e=null;d||b.apply(f,g)},c);k&&b.apply(f,g)}}var n=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,
f=window.cancelAnimationFrame||window.mozCancelAnimationFrame,l=this.RULER_THICKNESS,m=this;this.unit=e;var p=Editor.isDarkMode()?{bkgClr:"#202020",outBkgClr:Editor.darkColor,cornerClr:Editor.darkColor,strokeClr:"#505759",fontClr:"#BBBBBB",guideClr:"#0088cf"}:{bkgClr:"#ffffff",outBkgClr:"#e8e9ed",cornerClr:"#fbfbfb",strokeClr:"#dadce0",fontClr:"#BBBBBB",guideClr:"#0000BB"},q=document.createElement("div");q.style.position="absolute";this.updateStyle=mxUtils.bind(this,function(){p=Editor.isDarkMode()?
{bkgClr:"#202020",outBkgClr:Editor.darkColor,cornerClr:Editor.darkColor,strokeClr:"#505759",fontClr:"#BBBBBB",guideClr:"#0088cf"}:{bkgClr:"#ffffff",outBkgClr:"#e8e9ed",cornerClr:"#fbfbfb",strokeClr:"#dadce0",fontClr:"#BBBBBB",guideClr:"#0000BB"};q.style.background=p.bkgClr;q.style[d?"borderRight":"borderBottom"]="0.5px solid "+p.strokeClr;q.style.borderLeft="0.5px solid "+p.strokeClr});this.updateStyle();document.body.appendChild(q);mxEvent.disableContextMenu(q);this.editorUiRefresh=b.refresh;b.refresh=
@@ -12296,8 +12296,8 @@ g.x*u.pageFormat.width);var k,n,q;switch(m.unit){case mxConstants.POINTS:k=q=10;
2:1));k=null;c=f?Math.min(e+(d?c.height:c.width),d?t.height:t.width):d?t.height:t.width;if(f)if(v.fillStyle=p.outBkgClr,d){var A=e-l;0<A&&v.fillRect(0,l,l,A);c<t.height&&v.fillRect(0,c,l,t.height)}else A=e-l,0<A&&v.fillRect(l,0,A,l),c<t.width&&v.fillRect(c,0,t.width,l);v.fillStyle=p.fontClr;for(f=f?e:e%(z*b);f<=c;f+=z*b)if(A=Math.round((f-e)/b/z),!(f<l||A==k)){k=A;var B=null;0==A%q&&(B=m.formatText(g+A*z)+"");d?x(l-n[Math.abs(A)%q],f,l,f,B):x(f,l-n[Math.abs(A)%q],f,l,B)}v.lineWidth=1;x(d?0:l,d?l:
0,l,l);v.fillStyle=p.cornerClr;v.fillRect(0,0,l,l)},z=-1,B=function(){null!=n?(null!=f&&f(z),z=n(A)):A()};this.drawRuler=B;this.sizeListener=e=k(function(){var b=u.container;d?(b=b.offsetHeight+l,t.height!=b&&(t.height=b,q.style.height=b+"px",B())):(b=b.offsetWidth+l,t.width!=b&&(t.width=b,q.style.width=b+"px",B()))},10);this.pageListener=function(){B()};this.scrollListener=c=k(function(){var b=d?u.container.scrollTop:u.container.scrollLeft;m.lastScroll!=b&&(m.lastScroll=b,B())},10);this.unitListener=
function(b,c){m.setUnit(c.getProperty("unit"))};u.addListener(mxEvent.SIZE,e);u.container.addEventListener("scroll",c);u.view.addListener("unitChanged",this.unitListener);b.addListener("pageViewChanged",this.pageListener);b.addListener("pageScaleChanged",this.pageListener);b.addListener("pageFormatChanged",this.pageListener);this.setStyle=function(b){p=b;q.style.background=p.bkgClr;A()};this.origGuideMove=mxGuide.prototype.move;mxGuide.prototype.move=function(b,c,e,f){var g;if(d&&4<b.height||!d&&
-4<b.width){if(null!=m.guidePart)try{v.putImageData(m.guidePart.imgData1,m.guidePart.x1,m.guidePart.y1),v.putImageData(m.guidePart.imgData2,m.guidePart.x2,m.guidePart.y2),v.putImageData(m.guidePart.imgData3,m.guidePart.x3,m.guidePart.y3)}catch(W){}g=m.origGuideMove.apply(this,arguments);try{var k,n,q,t,u,y,z,A,B;v.lineWidth=.5;v.strokeStyle=p.guideClr;v.setLineDash([2]);d?(n=b.y+g.y+l-this.graph.container.scrollTop,k=0,u=n+b.height/2,t=l/2,A=n+b.height,z=0,q=v.getImageData(k,n-1,l,3),x(k,n,l,n),n--,
-y=v.getImageData(t,u-1,l,3),x(t,u,l,u),u--,B=v.getImageData(z,A-1,l,3),x(z,A,l,A),A--):(n=0,k=b.x+g.x+l-this.graph.container.scrollLeft,u=l/2,t=k+b.width/2,A=0,z=k+b.width,q=v.getImageData(k-1,n,3,l),x(k,n,k,l),k--,y=v.getImageData(t-1,u,3,l),x(t,u,t,l),t--,B=v.getImageData(z-1,A,3,l),x(z,A,z,l),z--);if(null==m.guidePart||m.guidePart.x1!=k||m.guidePart.y1!=n)m.guidePart={imgData1:q,x1:k,y1:n,imgData2:y,x2:t,y2:u,imgData3:B,x3:z,y3:A}}catch(W){}}else g=m.origGuideMove.apply(this,arguments);return g};
+4<b.width){if(null!=m.guidePart)try{v.putImageData(m.guidePart.imgData1,m.guidePart.x1,m.guidePart.y1),v.putImageData(m.guidePart.imgData2,m.guidePart.x2,m.guidePart.y2),v.putImageData(m.guidePart.imgData3,m.guidePart.x3,m.guidePart.y3)}catch(X){}g=m.origGuideMove.apply(this,arguments);try{var k,n,q,t,u,y,z,A,B;v.lineWidth=.5;v.strokeStyle=p.guideClr;v.setLineDash([2]);d?(n=b.y+g.y+l-this.graph.container.scrollTop,k=0,u=n+b.height/2,t=l/2,A=n+b.height,z=0,q=v.getImageData(k,n-1,l,3),x(k,n,l,n),n--,
+y=v.getImageData(t,u-1,l,3),x(t,u,l,u),u--,B=v.getImageData(z,A-1,l,3),x(z,A,l,A),A--):(n=0,k=b.x+g.x+l-this.graph.container.scrollLeft,u=l/2,t=k+b.width/2,A=0,z=k+b.width,q=v.getImageData(k-1,n,3,l),x(k,n,k,l),k--,y=v.getImageData(t-1,u,3,l),x(t,u,t,l),t--,B=v.getImageData(z-1,A,3,l),x(z,A,z,l),z--);if(null==m.guidePart||m.guidePart.x1!=k||m.guidePart.y1!=n)m.guidePart={imgData1:q,x1:k,y1:n,imgData2:y,x2:t,y2:u,imgData3:B,x3:z,y3:A}}catch(X){}}else g=m.origGuideMove.apply(this,arguments);return g};
this.origGuideDestroy=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){var b=m.origGuideDestroy.apply(this,arguments);if(null!=m.guidePart)try{v.putImageData(m.guidePart.imgData1,m.guidePart.x1,m.guidePart.y1),v.putImageData(m.guidePart.imgData2,m.guidePart.x2,m.guidePart.y2),v.putImageData(m.guidePart.imgData3,m.guidePart.x3,m.guidePart.y3),m.guidePart=null}catch(C){}return b}}mxRuler.prototype.RULER_THICKNESS=14;mxRuler.prototype.unit=mxConstants.POINTS;
mxRuler.prototype.setUnit=function(b){this.unit=b;this.drawRuler()};mxRuler.prototype.formatText=function(b){switch(this.unit){case mxConstants.POINTS:return Math.round(b);case mxConstants.MILLIMETERS:return(b/mxConstants.PIXELS_PER_MM).toFixed(1);case mxConstants.METERS:return(b/(1E3*mxConstants.PIXELS_PER_MM)).toFixed(4);case mxConstants.INCHES:return(b/mxConstants.PIXELS_PER_INCH).toFixed(2)}};
mxRuler.prototype.destroy=function(){this.ui.refresh=this.editorUiRefresh;mxGuide.prototype.move=this.origGuideMove;mxGuide.prototype.destroy=this.origGuideDestroy;this.graph.removeListener(this.sizeListener);this.graph.container.removeEventListener("scroll",this.scrollListener);this.graph.view.removeListener("unitChanged",this.unitListener);this.ui.removeListener("pageViewChanged",this.pageListener);this.ui.removeListener("pageScaleChanged",this.pageListener);this.ui.removeListener("pageFormatChanged",
@@ -12312,6 +12312,6 @@ x=0,p=0;p<n.length;p++){var y=n[p];if(null==y){var y=!1,x=n[x],z=n[p-1];!l&&m&&(
Graph.compress(v)+")");v=b.view.scale;x=b.view.translate;d=new mxCell("",new mxGeometry(e/v-x.x,k/v-x.y,d/v,f/v),p);d.vertex=1;b.model.beginUpdate();try{d=b.addCell(d),b.fireEvent(new mxEventObject("cellsInserted","cells",[d])),b.fireEvent(new mxEventObject("freehandInserted","cell",d))}finally{b.model.endUpdate()}b.setSelectionCells([d])}}for(p=0;p<g.length;p++)g[p].parentNode.removeChild(g[p]);c=null;g=[];n=[]}A(!1)};b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(b,c){var d=c.getProperty("eventName"),
e=c.getProperty("event");d==mxEvent.MOUSE_MOVE&&u&&(null!=e.sourceState&&e.sourceState.setCursor("crosshair"),e.consume())}));var B=new mxCell;B.edge=!0;b.addMouseListener({mouseDown:mxUtils.bind(this,function(d,g){if(b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())){var l=g.getEvent();if(u&&!mxEvent.isPopupTrigger(l)&&!mxEvent.isMultiTouchEvent(l)){var m=b.getCurrentCellStyle(B),p=parseFloat(b.currentVertexStyle[mxConstants.STYLE_STROKEWIDTH]||1),p=Math.max(1,p*b.view.scale),m=mxUtils.getValue(b.currentVertexStyle,
mxConstants.STYLE_STROKECOLOR,mxUtils.getValue(m,mxConstants.STYLE_STROKECOLOR,"#000"));"default"==m&&(m=b.shapeForegroundColor);c=document.createElementNS("http://www.w3.org/2000/svg","path");c.setAttribute("fill","none");c.setAttribute("stroke",m);c.setAttribute("stroke-width",p);"1"==b.currentVertexStyle[mxConstants.STYLE_DASHED]&&(m=b.currentVertexStyle[mxConstants.STYLE_DASH_PATTERN]||"3 3",m=m.split(" ").map(function(b){return parseFloat(b)*p}).join(" "),c.setAttribute("stroke-dasharray",m));
-v=[];l=y(l);C(l);k="M"+l.x+" "+l.y;n.push(l);f=[];c.setAttribute("d",k);e.appendChild(c);g.consume()}}}),mouseMove:mxUtils.bind(this,function(d,e){if(c&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())){var g=e.getEvent(),g=y(g);C(g);var l=E(0);if(l){k+=" L"+l.x+" "+l.y;n.push(l);var m="";f=[];for(var p=2;p<v.length;p+=2)l=E(p),m+=" L"+l.x+" "+l.y,f.push(l);c.setAttribute("d",k+m)}q&&(l=b.view.translate,b.scrollRectToVisible((new mxRectangle(g.x-l.x,g.y-l.y)).grow(20)));e.consume()}}),mouseUp:mxUtils.bind(this,
-function(d,e){c&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())&&(z(e.getEvent()),e.consume())})});var y=function(c){return mxUtils.convertPoint(b.container,mxEvent.getClientX(c),mxEvent.getClientY(c))},C=function(b){for(v.push(b);v.length>d;)v.shift()},E=function(b){var c=v.length;if(1===c%2||c>=d){var e=0,f=0,g,k=0;for(g=b;g<c;g++)k++,b=v[g],e+=b.x,f+=b.y;return{x:e/k,y:f/k}}return null}}}mxFreehand.prototype.NO_SMOOTHING=1;mxFreehand.prototype.MILD_SMOOTHING=4;
+v=[];l=y(l);C(l);k="M"+l.x+" "+l.y;n.push(l);f=[];c.setAttribute("d",k);e.appendChild(c);g.consume()}}}),mouseMove:mxUtils.bind(this,function(d,e){if(c&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())){var g=e.getEvent(),g=y(g);C(g);var l=G(0);if(l){k+=" L"+l.x+" "+l.y;n.push(l);var m="";f=[];for(var p=2;p<v.length;p+=2)l=G(p),m+=" L"+l.x+" "+l.y,f.push(l);c.setAttribute("d",k+m)}q&&(l=b.view.translate,b.scrollRectToVisible((new mxRectangle(g.x-l.x,g.y-l.y)).grow(20)));e.consume()}}),mouseUp:mxUtils.bind(this,
+function(d,e){c&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())&&(z(e.getEvent()),e.consume())})});var y=function(c){return mxUtils.convertPoint(b.container,mxEvent.getClientX(c),mxEvent.getClientY(c))},C=function(b){for(v.push(b);v.length>d;)v.shift()},G=function(b){var c=v.length;if(1===c%2||c>=d){var e=0,f=0,g,k=0;for(g=b;g<c;g++)k++,b=v[g],e+=b.x,f+=b.y;return{x:e/k,y:f/k}}return null}}}mxFreehand.prototype.NO_SMOOTHING=1;mxFreehand.prototype.MILD_SMOOTHING=4;
mxFreehand.prototype.NORMAL_SMOOTHING=8;mxFreehand.prototype.VERY_SMOOTH_SMOOTHING=12;mxFreehand.prototype.SUPER_SMOOTH_SMOOTHING=16;mxFreehand.prototype.HYPER_SMOOTH_SMOOTHING=20;
diff --git a/src/main/webapp/js/diagramly/Dialogs.js b/src/main/webapp/js/diagramly/Dialogs.js
index 06e85422..82e1c65a 100644
--- a/src/main/webapp/js/diagramly/Dialogs.js
+++ b/src/main/webapp/js/diagramly/Dialogs.js
@@ -8664,8 +8664,9 @@ var CropImageDialog = function(editorUi, image, clipPath, fn)
croppingDiv.style.backgroundColor = '#fff9';
div.appendChild(croppingDiv);
- var cropGraph, cropCell, arcSizeVal = 5, initGeo = new mxGeometry(100, 100, 100, 100)
- , commonStyle = 'shape=image;fillColor=none;rotatable=0;cloneable=0;deletable=0;image=' +
+ var cropGraph = null, initGeo = new mxGeometry(100, 100, 100, 100),
+ arcSizeVal = 5, cropCell = new mxCell('', initGeo.clone(), ''),
+ commonStyle = 'shape=image;fillColor=none;rotatable=0;cloneable=0;deletable=0;image=' +
image.replace(';base64', '') + ';clipPath=';
function init()
@@ -8689,8 +8690,6 @@ var CropImageDialog = function(editorUi, image, clipPath, fn)
return handler;
}
- cropCell = new mxCell('', initGeo.clone(), '');
-
if (clipPath != null)
{
//Find position and size of cropCell
@@ -8876,6 +8875,8 @@ var CropImageDialog = function(editorUi, image, clipPath, fn)
function typeChanged(noGeoReset)
{
+ if (cropGraph == null) return; //Image is not loaded yet. Graph had to wait for the image to load to be on-top
+
if (noGeoReset !== true)
{
cropGraph.model.setGeometry(cropCell, initGeo.clone());
diff --git a/src/main/webapp/js/diagramly/DropboxClient.js b/src/main/webapp/js/diagramly/DropboxClient.js
index 2d24fe10..d0ef0b27 100644
--- a/src/main/webapp/js/diagramly/DropboxClient.js
+++ b/src/main/webapp/js/diagramly/DropboxClient.js
@@ -22,7 +22,7 @@ mxUtils.extend(DropboxClient, DrawioClient);
* FIXME: How to find name of app folder for current user. The Apps part of the
* name is internationalized so this hardcoded check does not work everywhere.
*/
-DropboxClient.prototype.appPath = '/drawio/';
+DropboxClient.prototype.appPath = '/drawio-diagrams/';
/**
* Executes the first step for connecting to Google Drive.
@@ -912,7 +912,7 @@ DropboxClient.prototype.pickFile = function(fn, readOnly)
else
{
var tmp = files[0].link.indexOf(this.appPath);
-
+
if (tmp > 0)
{
// Checks if file is in app folder by loading file from there and comparing the ID
diff --git a/src/main/webapp/js/diagramly/Editor.js b/src/main/webapp/js/diagramly/Editor.js
index 6022a2c5..279425f4 100644
--- a/src/main/webapp/js/diagramly/Editor.js
+++ b/src/main/webapp/js/diagramly/Editor.js
@@ -590,6 +590,11 @@
'#\n' +
'# parentstyle: swimlane;whiteSpace=wrap;html=1;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeLast=0;collapsible=1;\n' +
'#\n' +
+ '## Style to be used for objects not in the CSV. If this is - then such objects are ignored,\n' +
+ '## else they are created using this as their style, eg. whiteSpace=wrap;html=1;\n' +
+ '#\n' +
+ '# unknownStyle: -\n' +
+ '#\n' +
'## Optional column name that contains a reference to a named style in styles.\n' +
'## Default is the current style for nodes.\n' +
'#\n' +
diff --git a/src/main/webapp/js/diagramly/EditorUi.js b/src/main/webapp/js/diagramly/EditorUi.js
index 1b580e60..cee02f8f 100644
--- a/src/main/webapp/js/diagramly/EditorUi.js
+++ b/src/main/webapp/js/diagramly/EditorUi.js
@@ -13065,6 +13065,7 @@
var styles = null;
var stylename = null;
var labelname = null;
+ var unknownStyle = null;
var labels = null;
var parentstyle = 'whiteSpace=wrap;html=1;';
var identity = null;
@@ -13162,6 +13163,10 @@
{
parentstyle = value;
}
+ else if (key == 'unknownStyle' && value != '-')
+ {
+ unknownStyle = value;
+ }
else if (key == 'stylename' && value.length > 0 && value != '-')
{
stylename = value;
@@ -13489,89 +13494,91 @@
{
var ref = lookups[edge.to][refs[j]];
- if (ref == null)
+ if (ref == null && unknownStyle != null)
{
- ref = new mxCell(refs[j], new mxGeometry(x0, y0,
- 0, 0), style || 'whiteSpace=wrap;html=1;');
+ ref = new mxCell(refs[j], new mxGeometry(x0, y0, 0, 0), unknownStyle);
ref.style = graph.replacePlaceholders(dataCell, ref.style, vars);
- var size = this.editor.graph.getPreferredSizeForCell(ref);
- ref.geometry.width = size.width + padding;
- ref.geometry.height = size.height + padding;
+ var refSize = this.editor.graph.getPreferredSizeForCell(ref);
+ ref.geometry.width = refSize.width + padding;
+ ref.geometry.height = refSize.height + padding;
lookups[edge.to][refs[j]] = ref;
ref.vertex = true;
ref.id = refs[j];
cells.push(graph.addCell(ref));
}
-
- var label = edge.label;
-
- if (edge.fromlabel != null)
- {
- label = (dataCell.getAttribute(edge.fromlabel) || '') + (label || '');
- }
-
- if (edge.sourcelabel != null)
- {
- label = graph.replacePlaceholders(dataCell,
- edge.sourcelabel, vars) + (label || '');
- }
-
- if (edge.tolabel != null)
- {
- label = (label || '') + (ref.getAttribute(edge.tolabel) || '');
- }
-
- if (edge.targetlabel != null)
- {
- label = (label || '') + graph.replacePlaceholders(
- ref, edge.targetlabel, vars);
- }
-
- var placeholders = ((edge.placeholders == 'target') ==
- !edge.invert) ? ref : realCell;
- var edgeStyle = (edge.style != null) ?
- graph.replacePlaceholders(placeholders, edge.style, vars) :
- graph.createCurrentEdgeStyle();
- var edgeCell = graph.insertEdge(null, null, label || '', (edge.invert) ?
- ref : realCell, (edge.invert) ? realCell : ref, edgeStyle);
-
- // Adds additional edge labels
- if (edge.labels != null)
+ if (ref != null)
{
- for (var k = 0; k < edge.labels.length; k++)
+ var label = edge.label;
+
+ if (edge.fromlabel != null)
{
- var def = edge.labels[k];
- var elx = (def.x != null) ? def.x : 0;
- var ely = (def.y != null) ? def.y : 0;
- var st = 'resizable=0;html=1;';
- var el = new mxCell(def.label || k,
- new mxGeometry(elx, ely, 0, 0), st);
- el.vertex = true;
- el.connectable = false;
- el.geometry.relative = true;
-
- if (def.placeholders != null)
- {
- el.value = graph.replacePlaceholders(
- ((def.placeholders == 'target') ==
- !edge.invert) ? ref : realCell,
- el.value, vars)
- }
-
- if (def.dx != null || def.dy != null)
+ label = (dataCell.getAttribute(edge.fromlabel) || '') + (label || '');
+ }
+
+ if (edge.sourcelabel != null)
+ {
+ label = graph.replacePlaceholders(dataCell,
+ edge.sourcelabel, vars) + (label || '');
+ }
+
+ if (edge.tolabel != null)
+ {
+ label = (label || '') + (ref.getAttribute(edge.tolabel) || '');
+ }
+
+ if (edge.targetlabel != null)
+ {
+ label = (label || '') + graph.replacePlaceholders(
+ ref, edge.targetlabel, vars);
+ }
+
+ var placeholders = ((edge.placeholders == 'target') ==
+ !edge.invert) ? ref : realCell;
+ var edgeStyle = (edge.style != null) ?
+ graph.replacePlaceholders(placeholders, edge.style, vars) :
+ graph.createCurrentEdgeStyle();
+
+ var edgeCell = graph.insertEdge(null, null, label || '', (edge.invert) ?
+ ref : realCell, (edge.invert) ? realCell : ref, edgeStyle);
+
+ // Adds additional edge labels
+ if (edge.labels != null)
+ {
+ for (var k = 0; k < edge.labels.length; k++)
{
- el.geometry.offset = new mxPoint(
- (def.dx != null) ? def.dx : 0,
- (def.dy != null) ? def.dy : 0);
+ var def = edge.labels[k];
+ var elx = (def.x != null) ? def.x : 0;
+ var ely = (def.y != null) ? def.y : 0;
+ var st = 'resizable=0;html=1;';
+ var el = new mxCell(def.label || k,
+ new mxGeometry(elx, ely, 0, 0), st);
+ el.vertex = true;
+ el.connectable = false;
+ el.geometry.relative = true;
+
+ if (def.placeholders != null)
+ {
+ el.value = graph.replacePlaceholders(
+ ((def.placeholders == 'target') ==
+ !edge.invert) ? ref : realCell,
+ el.value, vars)
+ }
+
+ if (def.dx != null || def.dy != null)
+ {
+ el.geometry.offset = new mxPoint(
+ (def.dx != null) ? def.dx : 0,
+ (def.dy != null) ? def.dy : 0);
+ }
+
+ edgeCell.insert(el);
}
-
- edgeCell.insert(el);
}
+
+ select.push(edgeCell);
+ mxUtils.remove((edge.invert) ? realCell : ref, roots);
}
-
- select.push(edgeCell);
- mxUtils.remove((edge.invert) ? realCell : ref, roots);
}
}
});
diff --git a/src/main/webapp/js/diagramly/Init.js b/src/main/webapp/js/diagramly/Init.js
index d70901d8..7621e947 100644
--- a/src/main/webapp/js/diagramly/Init.js
+++ b/src/main/webapp/js/diagramly/Init.js
@@ -30,7 +30,7 @@ window.DRAWIO_GITLAB_ID = window.DRAWIO_GITLAB_ID || '2b14debc5feeb18ba65358d863
window.DRAWIO_GITHUB_URL = window.DRAWIO_GITHUB_URL || 'https://github.com';
window.DRAWIO_GITHUB_API_URL = window.DRAWIO_GITHUB_API_URL || 'https://api.github.com';
window.DRAWIO_GITHUB_ID = window.DRAWIO_GITHUB_ID || 'Iv1.98d62f0431e40543';
-window.DRAWIO_DROPBOX_ID = window.DRAWIO_DROPBOX_ID || 'libwls2fa9szdji';
+window.DRAWIO_DROPBOX_ID = window.DRAWIO_DROPBOX_ID || 'jg02tc0onwmhlgm';
window.SAVE_URL = window.SAVE_URL || 'save';
window.OPEN_URL = window.OPEN_URL || 'import';
window.PROXY_URL = window.PROXY_URL || 'proxy';
diff --git a/src/main/webapp/js/diagramly/Minimal.js b/src/main/webapp/js/diagramly/Minimal.js
index b3240342..7d40c92f 100644
--- a/src/main/webapp/js/diagramly/Minimal.js
+++ b/src/main/webapp/js/diagramly/Minimal.js
@@ -1714,8 +1714,8 @@ EditorUi.initMinimalTheme = function()
if (urlParams['sketch'] == '1')
{
this.initFormatWindow();
-
- if (this.formatWindow != null)
+
+ if (this.formatWindow != null && iw < 1200)
{
this.formatWindow.window.toggleMinimized();
}
diff --git a/src/main/webapp/js/grapheditor/Graph.js b/src/main/webapp/js/grapheditor/Graph.js
index 2e50741a..46ebfe88 100644
--- a/src/main/webapp/js/grapheditor/Graph.js
+++ b/src/main/webapp/js/grapheditor/Graph.js
@@ -10482,7 +10482,7 @@ if (typeof mxVertexHandler !== 'undefined')
/**
* Flips the given cells horizontally or vertically.
*/
- Graph.prototype.flipEdge = function(cell, horizontal, c)
+ Graph.prototype.flipEdgePoints = function(cell, horizontal, c)
{
var geo = this.getCellGeometry(cell);
@@ -10543,7 +10543,7 @@ if (typeof mxVertexHandler !== 'undefined')
if (this.model.isEdge(child))
{
- this.flipEdge(child, horizontal, c);
+ this.flipEdgePoints(child, horizontal, c);
}
else
{
@@ -10592,7 +10592,7 @@ if (typeof mxVertexHandler !== 'undefined')
if (state != null)
{
- this.flipEdge(cells[i], horizontal, ((horizontal ? state.getCenterX() :
+ this.flipEdgePoints(cells[i], horizontal, ((horizontal ? state.getCenterX() :
state.getCenterY()) / this.view.scale) - ((horizontal) ?
state.origin.x : state.origin.y) - ((horizontal) ?
this.view.translate.x : this.view.translate.y));
diff --git a/src/main/webapp/js/viewer-static.min.js b/src/main/webapp/js/viewer-static.min.js
index 5cd4ab47..bbf57011 100644
--- a/src/main/webapp/js/viewer-static.min.js
+++ b/src/main/webapp/js/viewer-static.min.js
@@ -186,7 +186,7 @@ var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456
"");l<a.length;)d=this._keyStr.indexOf(a.charAt(l++)),e=this._keyStr.indexOf(a.charAt(l++)),g=this._keyStr.indexOf(a.charAt(l++)),k=this._keyStr.indexOf(a.charAt(l++)),d=d<<2|e>>4,e=(e&15)<<4|g>>2,f=(g&3)<<6|k,c+=String.fromCharCode(d),64!=g&&(c+=String.fromCharCode(e)),64!=k&&(c+=String.fromCharCode(f));b||(c=Base64._utf8_decode(c));return c},_utf8_encode:function(a){a=a.replace(/\r\n/g,"\n");for(var b="",c=0;c<a.length;c++){var d=a.charCodeAt(c);128>d?b+=String.fromCharCode(d):(127<d&&2048>d?b+=
String.fromCharCode(d>>6|192):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128)),b+=String.fromCharCode(d&63|128))}return b},_utf8_decode:function(a){var b="",c=0,d;for(c1=c2=0;c<a.length;)d=a.charCodeAt(c),128>d?(b+=String.fromCharCode(d),c++):191<d&&224>d?(c2=a.charCodeAt(c+1),b+=String.fromCharCode((d&31)<<6|c2&63),c+=2):(c2=a.charCodeAt(c+1),c3=a.charCodeAt(c+2),b+=String.fromCharCode((d&15)<<12|(c2&63)<<6|c3&63),c+=3);return b}};window.urlParams=window.urlParams||{};window.isLocalStorage=window.isLocalStorage||!1;window.mxLoadSettings=window.mxLoadSettings||"1"!=urlParams.configure;window.isSvgBrowser=!0;window.DRAWIO_BASE_URL=window.DRAWIO_BASE_URL||(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)?window.location.protocol+"//"+window.location.hostname:"https://app.diagrams.net");window.DRAWIO_LIGHTBOX_URL=window.DRAWIO_LIGHTBOX_URL||"https://viewer.diagrams.net";
window.EXPORT_URL=window.EXPORT_URL||"https://convert.diagrams.net/node/export";window.PLANT_URL=window.PLANT_URL||"https://plant-aws.diagrams.net";window.DRAW_MATH_URL=window.DRAW_MATH_URL||window.DRAWIO_BASE_URL+"/math";window.VSD_CONVERT_URL=window.VSD_CONVERT_URL||"https://convert.diagrams.net/VsdConverter/api/converter";window.EMF_CONVERT_URL=window.EMF_CONVERT_URL||"https://convert.diagrams.net/emf2png/convertEMF";window.REALTIME_URL=window.REALTIME_URL||"cache";
-window.DRAWIO_GITLAB_URL=window.DRAWIO_GITLAB_URL||"https://gitlab.com";window.DRAWIO_GITLAB_ID=window.DRAWIO_GITLAB_ID||"2b14debc5feeb18ba65358d863ec870e4cc9294b28c3c941cb3014eb4af9a9b4";window.DRAWIO_GITHUB_URL=window.DRAWIO_GITHUB_URL||"https://github.com";window.DRAWIO_GITHUB_API_URL=window.DRAWIO_GITHUB_API_URL||"https://api.github.com";window.DRAWIO_GITHUB_ID=window.DRAWIO_GITHUB_ID||"Iv1.98d62f0431e40543";window.DRAWIO_DROPBOX_ID=window.DRAWIO_DROPBOX_ID||"libwls2fa9szdji";
+window.DRAWIO_GITLAB_URL=window.DRAWIO_GITLAB_URL||"https://gitlab.com";window.DRAWIO_GITLAB_ID=window.DRAWIO_GITLAB_ID||"2b14debc5feeb18ba65358d863ec870e4cc9294b28c3c941cb3014eb4af9a9b4";window.DRAWIO_GITHUB_URL=window.DRAWIO_GITHUB_URL||"https://github.com";window.DRAWIO_GITHUB_API_URL=window.DRAWIO_GITHUB_API_URL||"https://api.github.com";window.DRAWIO_GITHUB_ID=window.DRAWIO_GITHUB_ID||"Iv1.98d62f0431e40543";window.DRAWIO_DROPBOX_ID=window.DRAWIO_DROPBOX_ID||"jg02tc0onwmhlgm";
window.SAVE_URL=window.SAVE_URL||"save";window.OPEN_URL=window.OPEN_URL||"import";window.PROXY_URL=window.PROXY_URL||"proxy";window.DRAWIO_VIEWER_URL=window.DRAWIO_VIEWER_URL||null;window.NOTIFICATIONS_URL=window.NOTIFICATIONS_URL||"https://www.draw.io/notifications";window.SHAPES_PATH=window.SHAPES_PATH||"shapes";window.GRAPH_IMAGE_PATH=window.GRAPH_IMAGE_PATH||"img";
window.ICONSEARCH_PATH=window.ICONSEARCH_PATH||((null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE")||urlParams.dev)&&"file:"!=window.location.protocol?"iconSearch":window.DRAWIO_BASE_URL+"/iconSearch");window.TEMPLATE_PATH=window.TEMPLATE_PATH||"templates";window.NEW_DIAGRAM_CATS_PATH=window.NEW_DIAGRAM_CATS_PATH||"newDiagramCats";window.PLUGINS_BASE_PATH=window.PLUGINS_BASE_PATH||"";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";
window.RESOURCE_BASE=window.RESOURCE_BASE||RESOURCES_PATH+"/dia";window.DRAWIO_CONFIG=window.DRAWIO_CONFIG||null;window.mxLoadResources=window.mxLoadResources||!1;
@@ -202,7 +202,7 @@ a),DRAWIO_GITLAB_URL=a);a=urlParams["gitlab-id"];null!=a&&(DRAWIO_GITLAB_ID=a);w
if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==urlParams.local||"1"==urlParams.lockdown)urlParams.picker="0",urlParams.gapi="0",urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0";
"se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1");
"embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);window.urlParams=window.urlParams||{};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";
-window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"mxgraph";window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"16.4.0",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),
+window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"mxgraph";window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"16.4.3",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),
IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:/Apple Computer, Inc/.test(navigator.vendor),
IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2<navigator.maxTouchPoints,IS_WEBVIEW:/((iPhone|iPod|iPad).*AppleWebKit(?!.*Version)|; wv)/i.test(navigator.userAgent),IS_GC:/Google Inc/.test(navigator.vendor),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:"undefined"!==typeof InstallTrigger,IS_MT:0<=navigator.userAgent.indexOf("Firefox/")&&0>navigator.userAgent.indexOf("Firefox/1.")&&
0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:"MICROSOFT INTERNET EXPLORER"!=navigator.appName.toUpperCase(),NO_FO:!document.createElementNS||"[object SVGForeignObjectElement]"!==
@@ -1818,19 +1818,20 @@ n.x,n.y);this.sizers[5].setCursor(f[mxUtils.mod(6+g,f.length)]);n.x=d;n.y=c;n=mx
this.state.width&&2<=this.state.height?this.moveSizerTo(this.sizers[0],d+this.state.absoluteOffset.x,e+this.state.absoluteOffset.y):this.moveSizerTo(this.sizers[0],this.state.x,this.state.y)}}null!=this.rotationShape&&(g=mxUtils.toRadians(null!=this.currentAlpha?this.currentAlpha:this.state.style[mxConstants.STYLE_ROTATION]||"0"),k=Math.cos(g),l=Math.sin(g),m=new mxPoint(this.state.getCenterX(),this.state.getCenterY()),n=mxUtils.getRotatedPoint(this.getRotationHandlePosition(),k,l,m),null!=this.rotationShape.node&&
(this.moveSizerTo(this.rotationShape,n.x,n.y),this.rotationShape.node.style.visibility=this.state.view.graph.isEditing()||!this.handlesVisible?"hidden":""));null!=this.selectionBorder&&(this.selectionBorder.rotation=Number(this.state.style[mxConstants.STYLE_ROTATION]||"0"));if(null!=this.edgeHandlers)for(c=0;c<this.edgeHandlers.length;c++)this.edgeHandlers[c].redraw()};mxVertexHandler.prototype.isCustomHandleVisible=function(a){return!this.graph.isEditing()&&1==this.state.view.graph.getSelectionCount()};
mxVertexHandler.prototype.getRotationHandlePosition=function(){return new mxPoint(this.bounds.x+this.bounds.width/2,this.bounds.y+this.rotationHandleVSpacing)};mxVertexHandler.prototype.isParentHighlightVisible=function(){return!this.graph.isCellSelected(this.graph.model.getParent(this.state.cell))};
-mxVertexHandler.prototype.updateParentHighlight=function(){if(!this.isDestroyed()){var a=this.isParentHighlightVisible(),b=this.graph.model.getParent(this.state.cell),c=this.graph.view.getState(b);null!=this.parentHighlight?this.graph.model.isVertex(b)&&a?(a=this.parentHighlight.bounds,null==c||a.x==c.x&&a.y==c.y&&a.width==c.width&&a.height==c.height||(this.parentHighlight.bounds=mxRectangle.fromRectangle(c),this.parentHighlight.redraw())):(null!=c&&c.parentHighlight==this.parentHighlight&&(c.parentHighlight=
-null),this.parentHighlight.destroy(),this.parentHighlight=null):this.parentHighlightEnabled&&a&&this.graph.model.isVertex(b)&&null!=c&&null==c.parentHighlight&&(this.parentHighlight=this.createParentHighlightShape(c),this.parentHighlight.dialect=mxConstants.DIALECT_SVG,this.parentHighlight.pointerEvents=!1,this.parentHighlight.rotation=Number(c.style[mxConstants.STYLE_ROTATION]||"0"),this.parentHighlight.init(this.graph.getView().getOverlayPane()),this.parentHighlight.redraw(),c.parentHighlight=this.parentHighlight)}};
+mxVertexHandler.prototype.destroyParentHighlight=function(){null!=this.parentHighlight.state&&(delete this.parentHighlight.state.parentHighlight,delete this.parentHighlight.state);this.parentHighlight.destroy();this.parentHighlight=null};
+mxVertexHandler.prototype.updateParentHighlight=function(){if(!this.isDestroyed()){var a=this.isParentHighlightVisible(),b=this.graph.model.getParent(this.state.cell),c=this.graph.view.getState(b);null!=this.parentHighlight?this.graph.model.isVertex(b)&&a?(a=this.parentHighlight.bounds,null==c||a.x==c.x&&a.y==c.y&&a.width==c.width&&a.height==c.height||(this.parentHighlight.bounds=mxRectangle.fromRectangle(c),this.parentHighlight.redraw())):this.destroyParentHighlight():this.parentHighlightEnabled&&
+a&&this.graph.model.isVertex(b)&&null!=c&&null==c.parentHighlight&&(this.parentHighlight=this.createParentHighlightShape(c),this.parentHighlight.dialect=mxConstants.DIALECT_SVG,this.parentHighlight.pointerEvents=!1,this.parentHighlight.rotation=Number(c.style[mxConstants.STYLE_ROTATION]||"0"),this.parentHighlight.init(this.graph.getView().getOverlayPane()),this.parentHighlight.redraw(),c.parentHighlight=this.parentHighlight,this.parentHighlight.state=c)}};
mxVertexHandler.prototype.drawPreview=function(){null!=this.preview&&(this.preview.bounds=this.bounds,this.preview.node.parentNode==this.graph.container&&(this.preview.bounds.width=Math.max(0,this.preview.bounds.width-1),this.preview.bounds.height=Math.max(0,this.preview.bounds.height-1)),this.preview.rotation=Number(this.state.style[mxConstants.STYLE_ROTATION]||"0"),this.preview.redraw());this.selectionBorder.bounds=this.getSelectionBorderBounds();this.selectionBorder.redraw();this.updateParentHighlight()};
mxVertexHandler.prototype.getSelectionBorderBounds=function(){return this.bounds};mxVertexHandler.prototype.isDestroyed=function(){return null==this.selectionBorder};
-mxVertexHandler.prototype.destroy=function(){null!=this.escapeHandler&&(this.state.view.graph.removeListener(this.escapeHandler),this.escapeHandler=null);null!=this.preview&&(this.preview.destroy(),this.preview=null);if(null!=this.parentHighlight){var a=this.graph.model.getParent(this.state.cell),a=this.graph.view.getState(a);null!=a&&a.parentHighlight==this.parentHighlight&&(a.parentHighlight=null);this.parentHighlight.destroy();this.parentHighlight=null}null!=this.ghostPreview&&(this.ghostPreview.destroy(),
-this.ghostPreview=null);null!=this.selectionBorder&&(this.selectionBorder.destroy(),this.selectionBorder=null);this.labelShape=null;this.removeHint();if(null!=this.sizers){for(a=0;a<this.sizers.length;a++)this.sizers[a].destroy();this.sizers=null}if(null!=this.customHandles){for(a=0;a<this.customHandles.length;a++)this.customHandles[a].destroy();this.customHandles=null}};
+mxVertexHandler.prototype.destroy=function(){null!=this.escapeHandler&&(this.state.view.graph.removeListener(this.escapeHandler),this.escapeHandler=null);null!=this.preview&&(this.preview.destroy(),this.preview=null);null!=this.ghostPreview&&(this.ghostPreview.destroy(),this.ghostPreview=null);null!=this.selectionBorder&&(this.selectionBorder.destroy(),this.selectionBorder=null);null!=this.parentHighlight&&this.destroyParentHighlight();this.labelShape=null;this.removeHint();if(null!=this.sizers){for(var a=
+0;a<this.sizers.length;a++)this.sizers[a].destroy();this.sizers=null}if(null!=this.customHandles){for(a=0;a<this.customHandles.length;a++)this.customHandles[a].destroy();this.customHandles=null}};
function mxEdgeHandler(a){null!=a&&null!=a.shape&&(this.state=a,this.init(),this.escapeHandler=mxUtils.bind(this,function(b,c){var d=null!=this.index;this.reset();d&&this.graph.cellRenderer.redraw(this.state,!1,a.view.isRendering())}),this.state.view.graph.addListener(mxEvent.ESCAPE,this.escapeHandler))}mxEdgeHandler.prototype.graph=null;mxEdgeHandler.prototype.state=null;mxEdgeHandler.prototype.marker=null;mxEdgeHandler.prototype.constraintHandler=null;mxEdgeHandler.prototype.error=null;
mxEdgeHandler.prototype.shape=null;mxEdgeHandler.prototype.bends=null;mxEdgeHandler.prototype.labelShape=null;mxEdgeHandler.prototype.cloneEnabled=!0;mxEdgeHandler.prototype.addEnabled=!1;mxEdgeHandler.prototype.removeEnabled=!1;mxEdgeHandler.prototype.dblClickRemoveEnabled=!1;mxEdgeHandler.prototype.mergeRemoveEnabled=!1;mxEdgeHandler.prototype.straightRemoveEnabled=!1;mxEdgeHandler.prototype.virtualBendsEnabled=!1;mxEdgeHandler.prototype.virtualBendOpacity=20;
mxEdgeHandler.prototype.parentHighlightEnabled=!1;mxEdgeHandler.prototype.preferHtml=!1;mxEdgeHandler.prototype.allowHandleBoundsCheck=!0;mxEdgeHandler.prototype.snapToTerminals=!1;mxEdgeHandler.prototype.handleImage=null;mxEdgeHandler.prototype.tolerance=0;mxEdgeHandler.prototype.outlineConnect=!1;mxEdgeHandler.prototype.manageLabelHandle=!1;
mxEdgeHandler.prototype.init=function(){this.graph=this.state.view.graph;this.marker=this.createMarker();this.constraintHandler=new mxConstraintHandler(this.graph);this.points=[];this.abspoints=this.getSelectionPoints(this.state);this.shape=this.createSelectionShape(this.abspoints);this.shape.dialect=this.graph.dialect!=mxConstants.DIALECT_SVG?mxConstants.DIALECT_MIXEDHTML:mxConstants.DIALECT_SVG;this.shape.init(this.graph.getView().getOverlayPane());this.shape.svgStrokeTolerance=0;this.shape.pointerEvents=
!1;mxEvent.redirectMouseEvents(this.shape.node,this.graph,this.state);this.graph.isCellMovable(this.state.cell)&&this.shape.setCursor(mxConstants.CURSOR_MOVABLE_EDGE);this.preferHtml=null!=this.state.text&&this.state.text.node.parentNode==this.graph.container;if(!this.preferHtml){var a=this.state.getVisibleTerminalState(!0);null!=a&&(this.preferHtml=null!=a.text&&a.text.node.parentNode==this.graph.container);this.preferHtml||(a=this.state.getVisibleTerminalState(!1),null!=a&&(this.preferHtml=null!=
a.text&&a.text.node.parentNode==this.graph.container))}this.graph.isCellEditable(this.state.cell)&&(this.graph.getSelectionCount()<mxGraphHandler.prototype.maxCells||0>=mxGraphHandler.prototype.maxCells)&&(this.bends=this.createBends(),this.isVirtualBendsEnabled()&&(this.virtualBends=this.createVirtualBends()));this.label=new mxPoint(this.state.absoluteOffset.x,this.state.absoluteOffset.y);this.labelShape=this.createLabelHandleShape();this.initBend(this.labelShape);this.graph.isCellEditable(this.state.cell)&&
-(this.labelShape.setCursor(mxConstants.CURSOR_LABEL_HANDLE),this.customHandles=this.createCustomHandles());this.updateParentHighlight();this.redraw()};mxEdgeHandler.prototype.isParentHighlightVisible=mxVertexHandler.prototype.isParentHighlightVisible;mxEdgeHandler.prototype.updateParentHighlight=mxVertexHandler.prototype.updateParentHighlight;mxEdgeHandler.prototype.createCustomHandles=function(){return null};
+(this.labelShape.setCursor(mxConstants.CURSOR_LABEL_HANDLE),this.customHandles=this.createCustomHandles());this.updateParentHighlight();this.redraw()};mxEdgeHandler.prototype.isParentHighlightVisible=mxVertexHandler.prototype.isParentHighlightVisible;mxEdgeHandler.prototype.destroyParentHighlight=mxVertexHandler.prototype.destroyParentHighlight;mxEdgeHandler.prototype.updateParentHighlight=mxVertexHandler.prototype.updateParentHighlight;mxEdgeHandler.prototype.createCustomHandles=function(){return null};
mxEdgeHandler.prototype.isVirtualBendsEnabled=function(a){return this.virtualBendsEnabled&&(null==this.state.style[mxConstants.STYLE_EDGE]||this.state.style[mxConstants.STYLE_EDGE]==mxConstants.NONE||1==this.state.style[mxConstants.STYLE_NOEDGESTYLE])&&"arrow"!=mxUtils.getValue(this.state.style,mxConstants.STYLE_SHAPE,null)};mxEdgeHandler.prototype.isCellEnabled=function(a){return!0};mxEdgeHandler.prototype.isAddPointEvent=function(a){return mxEvent.isShiftDown(a)};
mxEdgeHandler.prototype.isRemovePointEvent=function(a){return mxEvent.isShiftDown(a)};mxEdgeHandler.prototype.getSelectionPoints=function(a){return a.absolutePoints};mxEdgeHandler.prototype.createParentHighlightShape=function(a){a=new mxRectangleShape(mxRectangle.fromRectangle(a),null,this.getSelectionColor());a.strokewidth=this.getSelectionStrokeWidth();a.isDashed=this.isSelectionDashed();return a};
mxEdgeHandler.prototype.createSelectionShape=function(a){a=new this.state.shape.constructor;a.outline=!0;a.apply(this.state);a.isDashed=this.isSelectionDashed();a.stroke=this.getSelectionColor();a.isShadow=!1;return a};mxEdgeHandler.prototype.getSelectionColor=function(){return this.graph.isCellEditable(this.state.cell)?mxConstants.EDGE_SELECTION_COLOR:mxConstants.LOCKED_HANDLE_FILLCOLOR};mxEdgeHandler.prototype.getSelectionStrokeWidth=function(){return mxConstants.EDGE_SELECTION_STROKEWIDTH};
@@ -1901,9 +1902,8 @@ mxEdgeHandler.prototype.drawPreview=function(){try{if(this.isLabel){var a=this.l
this.shape.stroke=this.getSelectionColor(),this.shape.strokewidth=this.getSelectionStrokeWidth()/this.shape.scale/this.shape.scale,this.shape.isShadow=!1,this.shape.redraw());this.updateParentHighlight()}catch(c){}};
mxEdgeHandler.prototype.refresh=function(){null!=this.state&&(this.abspoints=this.getSelectionPoints(this.state),this.points=[],null!=this.bends&&(this.destroyBends(this.bends),this.bends=this.createBends()),null!=this.virtualBends&&(this.destroyBends(this.virtualBends),this.virtualBends=this.createVirtualBends()),null!=this.customHandles&&(this.destroyBends(this.customHandles),this.customHandles=this.createCustomHandles()),null!=this.labelShape&&null!=this.labelShape.node&&null!=this.labelShape.node.parentNode&&
this.labelShape.node.parentNode.appendChild(this.labelShape.node))};mxEdgeHandler.prototype.isDestroyed=function(){return null==this.shape};mxEdgeHandler.prototype.destroyBends=function(a){if(null!=a)for(var b=0;b<a.length;b++)null!=a[b]&&a[b].destroy()};
-mxEdgeHandler.prototype.destroy=function(){null!=this.escapeHandler&&(this.state.view.graph.removeListener(this.escapeHandler),this.escapeHandler=null);null!=this.marker&&(this.marker.destroy(),this.marker=null);null!=this.shape&&(this.shape.destroy(),this.shape=null);if(null!=this.parentHighlight){var a=this.graph.model.getParent(this.state.cell),a=this.graph.view.getState(a);null!=a&&a.parentHighlight==this.parentHighlight&&(a.parentHighlight=null);this.parentHighlight.destroy();this.parentHighlight=
-null}null!=this.labelShape&&(this.labelShape.destroy(),this.labelShape=null);null!=this.constraintHandler&&(this.constraintHandler.destroy(),this.constraintHandler=null);this.destroyBends(this.virtualBends);this.virtualBends=null;this.destroyBends(this.customHandles);this.customHandles=null;this.destroyBends(this.bends);this.bends=null;this.removeHint()};function mxElbowEdgeHandler(a){mxEdgeHandler.call(this,a)}mxUtils.extend(mxElbowEdgeHandler,mxEdgeHandler);
-mxElbowEdgeHandler.prototype.flipEnabled=!0;mxElbowEdgeHandler.prototype.doubleClickOrientationResource="none"!=mxClient.language?"doubleClickOrientation":"";
+mxEdgeHandler.prototype.destroy=function(){null!=this.escapeHandler&&(this.state.view.graph.removeListener(this.escapeHandler),this.escapeHandler=null);null!=this.marker&&(this.marker.destroy(),this.marker=null);null!=this.shape&&(this.shape.destroy(),this.shape=null);null!=this.labelShape&&(this.labelShape.destroy(),this.labelShape=null);null!=this.constraintHandler&&(this.constraintHandler.destroy(),this.constraintHandler=null);null!=this.parentHighlight&&this.destroyParentHighlight();this.destroyBends(this.virtualBends);
+this.virtualBends=null;this.destroyBends(this.customHandles);this.customHandles=null;this.destroyBends(this.bends);this.bends=null;this.removeHint()};function mxElbowEdgeHandler(a){mxEdgeHandler.call(this,a)}mxUtils.extend(mxElbowEdgeHandler,mxEdgeHandler);mxElbowEdgeHandler.prototype.flipEnabled=!0;mxElbowEdgeHandler.prototype.doubleClickOrientationResource="none"!=mxClient.language?"doubleClickOrientation":"";
mxElbowEdgeHandler.prototype.createBends=function(){var a=[],b=this.createHandleShape(0);this.initBend(b);b.setCursor(mxConstants.CURSOR_TERMINAL_HANDLE);a.push(b);a.push(this.createVirtualBend(mxUtils.bind(this,function(a){!mxEvent.isConsumed(a)&&this.flipEnabled&&(this.graph.flipEdge(this.state.cell,a),mxEvent.consume(a))})));this.points.push(new mxPoint(0,0));b=this.createHandleShape(2,null,!0);this.initBend(b);b.setCursor(mxConstants.CURSOR_TERMINAL_HANDLE);a.push(b);return a};
mxElbowEdgeHandler.prototype.createVirtualBend=function(a){var b=this.createHandleShape();this.initBend(b,a);b.setCursor(this.getCursorForBend());this.graph.isCellBendable(this.state.cell)||(b.node.style.display="none");return b};
mxElbowEdgeHandler.prototype.getCursorForBend=function(){return this.state.style[mxConstants.STYLE_EDGE]==mxEdgeStyle.TopToBottom||this.state.style[mxConstants.STYLE_EDGE]==mxConstants.EDGESTYLE_TOPTOBOTTOM||(this.state.style[mxConstants.STYLE_EDGE]==mxEdgeStyle.ElbowConnector||this.state.style[mxConstants.STYLE_EDGE]==mxConstants.EDGESTYLE_ELBOW)&&this.state.style[mxConstants.STYLE_ELBOW]==mxConstants.ELBOW_VERTICAL?"row-resize":"col-resize"};
@@ -2078,53 +2078,53 @@ Editor.prototype.setFilename=function(b){this.filename=b};
Editor.prototype.createUndoManager=function(){var b=this.graph,c=new mxUndoManager;this.undoListener=function(b,e){c.undoableEditHappened(e.getProperty("edit"))};var e=mxUtils.bind(this,function(b,c){this.undoListener.apply(this,arguments)});b.getModel().addListener(mxEvent.UNDO,e);b.getView().addListener(mxEvent.UNDO,e);e=function(c,e){var f=b.getSelectionCellsForChanges(e.getProperty("edit").changes,function(b){return!(b instanceof mxChildChange)});if(0<f.length){b.getModel();for(var n=[],d=0;d<
f.length;d++)null!=b.view.getState(f[d])&&n.push(f[d]);b.setSelectionCells(n)}};c.addListener(mxEvent.UNDO,e);c.addListener(mxEvent.REDO,e);return c};Editor.prototype.initStencilRegistry=function(){};Editor.prototype.destroy=function(){null!=this.graph&&(this.graph.destroy(),this.graph=null)};OpenFile=function(b){this.consumer=this.producer=null;this.done=b;this.args=null};OpenFile.prototype.setConsumer=function(b){this.consumer=b;this.execute()};
OpenFile.prototype.setData=function(){this.args=arguments;this.execute()};OpenFile.prototype.error=function(b){this.cancel(!0);mxUtils.alert(b)};OpenFile.prototype.execute=function(){null!=this.consumer&&null!=this.args&&(this.cancel(!1),this.consumer.apply(this,this.args))};OpenFile.prototype.cancel=function(b){null!=this.done&&this.done(null!=b?b:!0)};
-function Dialog(b,c,e,f,n,l,q,d,k,g,p){var m=k?57:0,v=e,u=f,t=k?0:64,z=Editor.inlineFullscreen||null==b.embedViewport?mxUtils.getDocumentSize():mxUtils.clone(b.embedViewport);null==b.embedViewport&&null!=window.innerHeight&&(z.height=window.innerHeight);var y=z.height,F=Math.max(1,Math.round((z.width-e-t)/2)),D=Math.max(1,Math.round((y-f-b.footerHeight)/3));c.style.maxHeight="100%";e=null!=document.body?Math.min(e,document.body.scrollWidth-t):e;f=Math.min(f,y-t);0<b.dialogs.length&&(this.zIndex+=
-2*b.dialogs.length);null==this.bg&&(this.bg=b.createDiv("background"),this.bg.style.position="absolute",this.bg.style.background=Dialog.backdropColor,this.bg.style.height=y+"px",this.bg.style.right="0px",this.bg.style.zIndex=this.zIndex-2,mxUtils.setOpacity(this.bg,this.bgOpacity));z=mxUtils.getDocumentScrollOrigin(document);this.bg.style.left=z.x+"px";this.bg.style.top=z.y+"px";F+=z.x;D+=z.y;Editor.inlineFullscreen||null==b.embedViewport||(this.bg.style.height=mxUtils.getDocumentSize().height+"px",
-D+=b.embedViewport.y,F+=b.embedViewport.x);n&&document.body.appendChild(this.bg);var E=b.createDiv(k?"geTransDialog":"geDialog");n=this.getPosition(F,D,e,f);F=n.x;D=n.y;E.style.width=e+"px";E.style.height=f+"px";E.style.left=F+"px";E.style.top=D+"px";E.style.zIndex=this.zIndex;E.appendChild(c);document.body.appendChild(E);!d&&c.clientHeight>E.clientHeight-t&&(c.style.overflowY="auto");c.style.overflowX="hidden";if(l&&(l=document.createElement("img"),l.setAttribute("src",Dialog.prototype.closeImage),
-l.setAttribute("title",mxResources.get("close")),l.className="geDialogClose",l.style.top=D+14+"px",l.style.left=F+e+38-m+"px",l.style.zIndex=this.zIndex,mxEvent.addListener(l,"click",mxUtils.bind(this,function(){b.hideDialog(!0)})),document.body.appendChild(l),this.dialogImg=l,!p)){var H=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(b){H=!0}),null,mxUtils.bind(this,function(d){H&&(b.hideDialog(!0),H=!1)}))}this.resizeListener=mxUtils.bind(this,function(){if(null!=g){var k=g();
-null!=k&&(v=e=k.w,u=f=k.h)}k=mxUtils.getDocumentSize();y=k.height;this.bg.style.height=y+"px";Editor.inlineFullscreen||null==b.embedViewport||(this.bg.style.height=mxUtils.getDocumentSize().height+"px");F=Math.max(1,Math.round((k.width-e-t)/2));D=Math.max(1,Math.round((y-f-b.footerHeight)/3));e=null!=document.body?Math.min(v,document.body.scrollWidth-t):v;f=Math.min(u,y-t);k=this.getPosition(F,D,e,f);F=k.x;D=k.y;E.style.left=F+"px";E.style.top=D+"px";E.style.width=e+"px";E.style.height=f+"px";!d&&
-c.clientHeight>E.clientHeight-t&&(c.style.overflowY="auto");null!=this.dialogImg&&(this.dialogImg.style.top=D+14+"px",this.dialogImg.style.left=F+e+38-m+"px")});mxEvent.addListener(window,"resize",this.resizeListener);this.onDialogClose=q;this.container=E;b.editor.fireEvent(new mxEventObject("showDialog"))}Dialog.backdropColor="white";Dialog.prototype.zIndex=mxPopupMenu.prototype.zIndex-2;
+function Dialog(b,c,e,f,n,l,q,d,k,g,p){var m=k?57:0,u=e,v=f,t=k?0:64,z=Editor.inlineFullscreen||null==b.embedViewport?mxUtils.getDocumentSize():mxUtils.clone(b.embedViewport);null==b.embedViewport&&null!=window.innerHeight&&(z.height=window.innerHeight);var y=z.height,I=Math.max(1,Math.round((z.width-e-t)/2)),D=Math.max(1,Math.round((y-f-b.footerHeight)/3));c.style.maxHeight="100%";e=null!=document.body?Math.min(e,document.body.scrollWidth-t):e;f=Math.min(f,y-t);0<b.dialogs.length&&(this.zIndex+=
+2*b.dialogs.length);null==this.bg&&(this.bg=b.createDiv("background"),this.bg.style.position="absolute",this.bg.style.background=Dialog.backdropColor,this.bg.style.height=y+"px",this.bg.style.right="0px",this.bg.style.zIndex=this.zIndex-2,mxUtils.setOpacity(this.bg,this.bgOpacity));z=mxUtils.getDocumentScrollOrigin(document);this.bg.style.left=z.x+"px";this.bg.style.top=z.y+"px";I+=z.x;D+=z.y;Editor.inlineFullscreen||null==b.embedViewport||(this.bg.style.height=mxUtils.getDocumentSize().height+"px",
+D+=b.embedViewport.y,I+=b.embedViewport.x);n&&document.body.appendChild(this.bg);var F=b.createDiv(k?"geTransDialog":"geDialog");n=this.getPosition(I,D,e,f);I=n.x;D=n.y;F.style.width=e+"px";F.style.height=f+"px";F.style.left=I+"px";F.style.top=D+"px";F.style.zIndex=this.zIndex;F.appendChild(c);document.body.appendChild(F);!d&&c.clientHeight>F.clientHeight-t&&(c.style.overflowY="auto");c.style.overflowX="hidden";if(l&&(l=document.createElement("img"),l.setAttribute("src",Dialog.prototype.closeImage),
+l.setAttribute("title",mxResources.get("close")),l.className="geDialogClose",l.style.top=D+14+"px",l.style.left=I+e+38-m+"px",l.style.zIndex=this.zIndex,mxEvent.addListener(l,"click",mxUtils.bind(this,function(){b.hideDialog(!0)})),document.body.appendChild(l),this.dialogImg=l,!p)){var E=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(b){E=!0}),null,mxUtils.bind(this,function(d){E&&(b.hideDialog(!0),E=!1)}))}this.resizeListener=mxUtils.bind(this,function(){if(null!=g){var k=g();
+null!=k&&(u=e=k.w,v=f=k.h)}k=mxUtils.getDocumentSize();y=k.height;this.bg.style.height=y+"px";Editor.inlineFullscreen||null==b.embedViewport||(this.bg.style.height=mxUtils.getDocumentSize().height+"px");I=Math.max(1,Math.round((k.width-e-t)/2));D=Math.max(1,Math.round((y-f-b.footerHeight)/3));e=null!=document.body?Math.min(u,document.body.scrollWidth-t):u;f=Math.min(v,y-t);k=this.getPosition(I,D,e,f);I=k.x;D=k.y;F.style.left=I+"px";F.style.top=D+"px";F.style.width=e+"px";F.style.height=f+"px";!d&&
+c.clientHeight>F.clientHeight-t&&(c.style.overflowY="auto");null!=this.dialogImg&&(this.dialogImg.style.top=D+14+"px",this.dialogImg.style.left=I+e+38-m+"px")});mxEvent.addListener(window,"resize",this.resizeListener);this.onDialogClose=q;this.container=F;b.editor.fireEvent(new mxEventObject("showDialog"))}Dialog.backdropColor="white";Dialog.prototype.zIndex=mxPopupMenu.prototype.zIndex-2;
Dialog.prototype.noColorImage=mxClient.IS_SVG?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkEzRDlBMUUwODYxMTExRTFCMzA4RDdDMjJBMEMxRDM3IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkEzRDlBMUUxODYxMTExRTFCMzA4RDdDMjJBMEMxRDM3Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QTNEOUExREU4NjExMTFFMUIzMDhEN0MyMkEwQzFEMzciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QTNEOUExREY4NjExMTFFMUIzMDhEN0MyMkEwQzFEMzciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5xh3fmAAAABlBMVEX////MzMw46qqDAAAAGElEQVR42mJggAJGKGAYIIGBth8KAAIMAEUQAIElnLuQAAAAAElFTkSuQmCC":IMAGE_PATH+
"/nocolor.png";Dialog.prototype.closeImage=mxClient.IS_SVG?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJAQMAAADaX5RTAAAABlBMVEV7mr3///+wksspAAAAAnRSTlP/AOW3MEoAAAAdSURBVAgdY9jXwCDDwNDRwHCwgeExmASygSL7GgB12QiqNHZZIwAAAABJRU5ErkJggg==":IMAGE_PATH+"/close.png";
Dialog.prototype.clearImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhDQAKAIABAMDAwP///yH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjAgNjEuMTM0Nzc3LCAyMDEwLzAyLzEyLTE3OjMyOjAwICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IFdpbmRvd3MiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OUIzOEM1NzI4NjEyMTFFMUEzMkNDMUE3NjZERDE2QjIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OUIzOEM1NzM4NjEyMTFFMUEzMkNDMUE3NjZERDE2QjIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo5QjM4QzU3MDg2MTIxMUUxQTMyQ0MxQTc2NkREMTZCMiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo5QjM4QzU3MTg2MTIxMUUxQTMyQ0MxQTc2NkREMTZCMiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAEAAAEALAAAAAANAAoAAAIXTGCJebD9jEOTqRlttXdrB32PJ2ncyRQAOw==":IMAGE_PATH+
"/clear.gif";Dialog.prototype.bgOpacity=80;Dialog.prototype.getPosition=function(b,c){return new mxPoint(b,c)};Dialog.prototype.close=function(b,c){if(null!=this.onDialogClose){if(0==this.onDialogClose(b,c))return!1;this.onDialogClose=null}null!=this.dialogImg&&(this.dialogImg.parentNode.removeChild(this.dialogImg),this.dialogImg=null);null!=this.bg&&null!=this.bg.parentNode&&this.bg.parentNode.removeChild(this.bg);mxEvent.removeListener(window,"resize",this.resizeListener);this.container.parentNode.removeChild(this.container)};
-var ErrorDialog=function(b,c,e,f,n,l,q,d,k,g,p){k=null!=k?k:!0;var m=document.createElement("div");m.style.textAlign="center";if(null!=c){var v=document.createElement("div");v.style.padding="0px";v.style.margin="0px";v.style.fontSize="18px";v.style.paddingBottom="16px";v.style.marginBottom="10px";v.style.borderBottom="1px solid #c0c0c0";v.style.color="gray";v.style.whiteSpace="nowrap";v.style.textOverflow="ellipsis";v.style.overflow="hidden";mxUtils.write(v,c);v.setAttribute("title",c);m.appendChild(v)}c=
-document.createElement("div");c.style.lineHeight="1.2em";c.style.padding="6px";c.innerHTML=e;m.appendChild(c);e=document.createElement("div");e.style.marginTop="12px";e.style.textAlign="center";null!=l&&(c=mxUtils.button(mxResources.get("tryAgain"),function(){b.hideDialog();l()}),c.className="geBtn",e.appendChild(c),e.style.textAlign="center");null!=g&&(g=mxUtils.button(g,function(){null!=p&&p()}),g.className="geBtn",e.appendChild(g));var u=mxUtils.button(f,function(){k&&b.hideDialog();null!=n&&n()});
-u.className="geBtn";e.appendChild(u);null!=q&&(f=mxUtils.button(q,function(){k&&b.hideDialog();null!=d&&d()}),f.className="geBtn gePrimaryBtn",e.appendChild(f));this.init=function(){u.focus()};m.appendChild(e);this.container=m},PrintDialog=function(b,c){this.create(b,c)};
-PrintDialog.prototype.create=function(b){function c(b){var c=d.checked||g.checked,k=parseInt(m.value)/100;isNaN(k)&&(k=1,m.value="100%");var k=.75*k,f=e.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,l=1/e.pageScale;if(c){var v=d.checked?1:parseInt(p.value);isNaN(v)||(l=mxUtils.getScaleForPageCount(v,e,f))}e.getGraphBounds();var u=v=0,f=mxRectangle.fromRectangle(f);f.width=Math.ceil(f.width*k);f.height=Math.ceil(f.height*k);l*=k;!c&&e.pageVisible?(k=e.getPageLayout(),v-=k.x*f.width,u-=k.y*f.height):
-c=!0;c=PrintDialog.createPrintPreview(e,l,f,0,v,u,c);c.open();b&&PrintDialog.printPreview(c)}var e=b.editor.graph,f,n,l=document.createElement("table");l.style.width="100%";l.style.height="100%";var q=document.createElement("tbody");f=document.createElement("tr");var d=document.createElement("input");d.setAttribute("type","checkbox");n=document.createElement("td");n.setAttribute("colspan","2");n.style.fontSize="10pt";n.appendChild(d);var k=document.createElement("span");mxUtils.write(k," "+mxResources.get("fitPage"));
+var ErrorDialog=function(b,c,e,f,n,l,q,d,k,g,p){k=null!=k?k:!0;var m=document.createElement("div");m.style.textAlign="center";if(null!=c){var u=document.createElement("div");u.style.padding="0px";u.style.margin="0px";u.style.fontSize="18px";u.style.paddingBottom="16px";u.style.marginBottom="10px";u.style.borderBottom="1px solid #c0c0c0";u.style.color="gray";u.style.whiteSpace="nowrap";u.style.textOverflow="ellipsis";u.style.overflow="hidden";mxUtils.write(u,c);u.setAttribute("title",c);m.appendChild(u)}c=
+document.createElement("div");c.style.lineHeight="1.2em";c.style.padding="6px";c.innerHTML=e;m.appendChild(c);e=document.createElement("div");e.style.marginTop="12px";e.style.textAlign="center";null!=l&&(c=mxUtils.button(mxResources.get("tryAgain"),function(){b.hideDialog();l()}),c.className="geBtn",e.appendChild(c),e.style.textAlign="center");null!=g&&(g=mxUtils.button(g,function(){null!=p&&p()}),g.className="geBtn",e.appendChild(g));var v=mxUtils.button(f,function(){k&&b.hideDialog();null!=n&&n()});
+v.className="geBtn";e.appendChild(v);null!=q&&(f=mxUtils.button(q,function(){k&&b.hideDialog();null!=d&&d()}),f.className="geBtn gePrimaryBtn",e.appendChild(f));this.init=function(){v.focus()};m.appendChild(e);this.container=m},PrintDialog=function(b,c){this.create(b,c)};
+PrintDialog.prototype.create=function(b){function c(b){var c=d.checked||g.checked,k=parseInt(m.value)/100;isNaN(k)&&(k=1,m.value="100%");var k=.75*k,f=e.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,l=1/e.pageScale;if(c){var u=d.checked?1:parseInt(p.value);isNaN(u)||(l=mxUtils.getScaleForPageCount(u,e,f))}e.getGraphBounds();var v=u=0,f=mxRectangle.fromRectangle(f);f.width=Math.ceil(f.width*k);f.height=Math.ceil(f.height*k);l*=k;!c&&e.pageVisible?(k=e.getPageLayout(),u-=k.x*f.width,v-=k.y*f.height):
+c=!0;c=PrintDialog.createPrintPreview(e,l,f,0,u,v,c);c.open();b&&PrintDialog.printPreview(c)}var e=b.editor.graph,f,n,l=document.createElement("table");l.style.width="100%";l.style.height="100%";var q=document.createElement("tbody");f=document.createElement("tr");var d=document.createElement("input");d.setAttribute("type","checkbox");n=document.createElement("td");n.setAttribute("colspan","2");n.style.fontSize="10pt";n.appendChild(d);var k=document.createElement("span");mxUtils.write(k," "+mxResources.get("fitPage"));
n.appendChild(k);mxEvent.addListener(k,"click",function(b){d.checked=!d.checked;g.checked=!d.checked;mxEvent.consume(b)});mxEvent.addListener(d,"change",function(){g.checked=!d.checked});f.appendChild(n);q.appendChild(f);f=f.cloneNode(!1);var g=document.createElement("input");g.setAttribute("type","checkbox");n=document.createElement("td");n.style.fontSize="10pt";n.appendChild(g);k=document.createElement("span");mxUtils.write(k," "+mxResources.get("posterPrint")+":");n.appendChild(k);mxEvent.addListener(k,
"click",function(b){g.checked=!g.checked;d.checked=!g.checked;mxEvent.consume(b)});f.appendChild(n);var p=document.createElement("input");p.setAttribute("value","1");p.setAttribute("type","number");p.setAttribute("min","1");p.setAttribute("size","4");p.setAttribute("disabled","disabled");p.style.width="50px";n=document.createElement("td");n.style.fontSize="10pt";n.appendChild(p);mxUtils.write(n," "+mxResources.get("pages")+" (max)");f.appendChild(n);q.appendChild(f);mxEvent.addListener(g,"change",
function(){g.checked?p.removeAttribute("disabled"):p.setAttribute("disabled","disabled");d.checked=!g.checked});f=f.cloneNode(!1);n=document.createElement("td");mxUtils.write(n,mxResources.get("pageScale")+":");f.appendChild(n);n=document.createElement("td");var m=document.createElement("input");m.setAttribute("value","100 %");m.setAttribute("size","5");m.style.width="50px";n.appendChild(m);f.appendChild(n);q.appendChild(f);f=document.createElement("tr");n=document.createElement("td");n.colSpan=2;
-n.style.paddingTop="20px";n.setAttribute("align","right");k=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});k.className="geBtn";b.editor.cancelFirst&&n.appendChild(k);if(PrintDialog.previewEnabled){var v=mxUtils.button(mxResources.get("preview"),function(){b.hideDialog();c(!1)});v.className="geBtn";n.appendChild(v)}v=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){b.hideDialog();c(!0)});v.className="geBtn gePrimaryBtn";n.appendChild(v);b.editor.cancelFirst||
+n.style.paddingTop="20px";n.setAttribute("align","right");k=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});k.className="geBtn";b.editor.cancelFirst&&n.appendChild(k);if(PrintDialog.previewEnabled){var u=mxUtils.button(mxResources.get("preview"),function(){b.hideDialog();c(!1)});u.className="geBtn";n.appendChild(u)}u=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){b.hideDialog();c(!0)});u.className="geBtn gePrimaryBtn";n.appendChild(u);b.editor.cancelFirst||
n.appendChild(k);f.appendChild(n);q.appendChild(f);l.appendChild(q);this.container=l};PrintDialog.printPreview=function(b){try{if(null!=b.wnd){var c=function(){b.wnd.focus();b.wnd.print();b.wnd.close()};mxClient.IS_GC?window.setTimeout(c,500):c()}}catch(e){}};
PrintDialog.createPrintPreview=function(b,c,e,f,n,l,q){c=new mxPrintPreview(b,c,e,f,n,l);c.title=mxResources.get("preview");c.printBackgroundImage=!0;c.autoOrigin=q;b=b.background;if(null==b||""==b||b==mxConstants.NONE)b="#ffffff";c.backgroundColor=b;var d=c.writeHead;c.writeHead=function(b){d.apply(this,arguments);b.writeln('<style type="text/css">');b.writeln("@media screen {");b.writeln(" body > div { padding:30px;box-sizing:content-box; }");b.writeln("}");b.writeln("</style>")};return c};
PrintDialog.previewEnabled=!0;
-var PageSetupDialog=function(b){function c(){null==p||p==mxConstants.NONE?(g.style.backgroundColor="",g.style.backgroundImage="url('"+Dialog.prototype.noColorImage+"')"):(g.style.backgroundColor=p,g.style.backgroundImage="")}function e(){var d=t;null!=d&&Graph.isPageLink(d.src)&&(d=b.createImageForPageLink(d.src,null));null!=d&&null!=d.src?(u.setAttribute("src",d.src),u.style.display=""):(u.removeAttribute("src"),u.style.display="none")}var f=b.editor.graph,n,l,q=document.createElement("table");q.style.width=
+var PageSetupDialog=function(b){function c(){null==p||p==mxConstants.NONE?(g.style.backgroundColor="",g.style.backgroundImage="url('"+Dialog.prototype.noColorImage+"')"):(g.style.backgroundColor=p,g.style.backgroundImage="")}function e(){var d=t;null!=d&&Graph.isPageLink(d.src)&&(d=b.createImageForPageLink(d.src,null));null!=d&&null!=d.src?(v.setAttribute("src",d.src),v.style.display=""):(v.removeAttribute("src"),v.style.display="none")}var f=b.editor.graph,n,l,q=document.createElement("table");q.style.width=
"100%";q.style.height="100%";var d=document.createElement("tbody");n=document.createElement("tr");l=document.createElement("td");l.style.verticalAlign="top";l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("paperSize")+":");n.appendChild(l);l=document.createElement("td");l.style.verticalAlign="top";l.style.fontSize="10pt";var k=PageSetupDialog.addPageFormatPanel(l,"pagesetupdialog",f.pageFormat);n.appendChild(l);d.appendChild(n);n=document.createElement("tr");l=document.createElement("td");
mxUtils.write(l,mxResources.get("background")+":");n.appendChild(l);l=document.createElement("td");l.style.whiteSpace="nowrap";document.createElement("input").setAttribute("type","text");var g=document.createElement("button");g.style.width="22px";g.style.height="22px";g.style.cursor="pointer";g.style.marginRight="20px";g.style.backgroundPosition="center center";g.style.backgroundRepeat="no-repeat";mxClient.IS_FF&&(g.style.position="relative",g.style.top="-6px");var p=f.background;c();mxEvent.addListener(g,
"click",function(d){b.pickColor(p||"none",function(b){p=b;c()});mxEvent.consume(d)});l.appendChild(g);mxUtils.write(l,mxResources.get("gridSize")+":");var m=document.createElement("input");m.setAttribute("type","number");m.setAttribute("min","0");m.style.width="40px";m.style.marginLeft="6px";m.value=f.getGridSize();l.appendChild(m);mxEvent.addListener(m,"change",function(){var b=parseInt(m.value);m.value=Math.max(1,isNaN(b)?f.getGridSize():b)});n.appendChild(l);d.appendChild(n);n=document.createElement("tr");
-l=document.createElement("td");mxUtils.write(l,mxResources.get("image")+":");n.appendChild(l);l=document.createElement("td");var v=document.createElement("button");v.className="geBtn";v.style.margin="0px";mxUtils.write(v,mxResources.get("change")+"...");var u=document.createElement("img");u.setAttribute("valign","middle");u.style.verticalAlign="middle";u.style.border="1px solid lightGray";u.style.borderRadius="4px";u.style.marginRight="14px";u.style.maxWidth="100px";u.style.cursor="pointer";u.style.height=
-"60px";u.style.padding="4px";var t=f.backgroundImage,z=function(d){b.showBackgroundImageDialog(function(b,d){d||(t=b,e())},t);mxEvent.consume(d)};mxEvent.addListener(v,"click",z);mxEvent.addListener(u,"click",z);e();l.appendChild(u);l.appendChild(v);n.appendChild(l);d.appendChild(n);n=document.createElement("tr");l=document.createElement("td");l.colSpan=2;l.style.paddingTop="16px";l.setAttribute("align","right");v=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});v.className="geBtn";
-b.editor.cancelFirst&&l.appendChild(v);z=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();var d=parseInt(m.value);isNaN(d)||f.gridSize===d||f.setGridSize(d);d=new ChangePageSetup(b,p,t,k.get());d.ignoreColor=f.background==p;d.ignoreImage=(null!=f.backgroundImage?f.backgroundImage.src:null)===(null!=t?t.src:null);f.pageFormat.width==d.previousFormat.width&&f.pageFormat.height==d.previousFormat.height&&d.ignoreColor&&d.ignoreImage||f.model.execute(d)});z.className="geBtn gePrimaryBtn";
-l.appendChild(z);b.editor.cancelFirst||l.appendChild(v);n.appendChild(l);d.appendChild(n);q.appendChild(d);this.container=q};
-PageSetupDialog.addPageFormatPanel=function(b,c,e,f){function n(b,c,g){if(g||m!=document.activeElement&&v!=document.activeElement){b=!1;for(c=0;c<t.length;c++)g=t[c],D?"custom"==g.key&&(d.value=g.key,D=!1):null!=g.format&&("a4"==g.key?826==e.width?(e=mxRectangle.fromRectangle(e),e.width=827):826==e.height&&(e=mxRectangle.fromRectangle(e),e.height=827):"a5"==g.key&&(584==e.width?(e=mxRectangle.fromRectangle(e),e.width=583):584==e.height&&(e=mxRectangle.fromRectangle(e),e.height=583)),e.width==g.format.width&&
-e.height==g.format.height?(d.value=g.key,l.setAttribute("checked","checked"),l.defaultChecked=!0,l.checked=!0,q.removeAttribute("checked"),q.defaultChecked=!1,q.checked=!1,b=!0):e.width==g.format.height&&e.height==g.format.width&&(d.value=g.key,l.removeAttribute("checked"),l.defaultChecked=!1,l.checked=!1,q.setAttribute("checked","checked"),q.defaultChecked=!0,b=q.checked=!0));b?(k.style.display="",p.style.display="none"):(m.value=e.width/100,v.value=e.height/100,l.setAttribute("checked","checked"),
+l=document.createElement("td");mxUtils.write(l,mxResources.get("image")+":");n.appendChild(l);l=document.createElement("td");var u=document.createElement("button");u.className="geBtn";u.style.margin="0px";mxUtils.write(u,mxResources.get("change")+"...");var v=document.createElement("img");v.setAttribute("valign","middle");v.style.verticalAlign="middle";v.style.border="1px solid lightGray";v.style.borderRadius="4px";v.style.marginRight="14px";v.style.maxWidth="100px";v.style.cursor="pointer";v.style.height=
+"60px";v.style.padding="4px";var t=f.backgroundImage,z=function(d){b.showBackgroundImageDialog(function(b,d){d||(t=b,e())},t);mxEvent.consume(d)};mxEvent.addListener(u,"click",z);mxEvent.addListener(v,"click",z);e();l.appendChild(v);l.appendChild(u);n.appendChild(l);d.appendChild(n);n=document.createElement("tr");l=document.createElement("td");l.colSpan=2;l.style.paddingTop="16px";l.setAttribute("align","right");u=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});u.className="geBtn";
+b.editor.cancelFirst&&l.appendChild(u);z=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();var d=parseInt(m.value);isNaN(d)||f.gridSize===d||f.setGridSize(d);d=new ChangePageSetup(b,p,t,k.get());d.ignoreColor=f.background==p;d.ignoreImage=(null!=f.backgroundImage?f.backgroundImage.src:null)===(null!=t?t.src:null);f.pageFormat.width==d.previousFormat.width&&f.pageFormat.height==d.previousFormat.height&&d.ignoreColor&&d.ignoreImage||f.model.execute(d)});z.className="geBtn gePrimaryBtn";
+l.appendChild(z);b.editor.cancelFirst||l.appendChild(u);n.appendChild(l);d.appendChild(n);q.appendChild(d);this.container=q};
+PageSetupDialog.addPageFormatPanel=function(b,c,e,f){function n(b,c,g){if(g||m!=document.activeElement&&u!=document.activeElement){b=!1;for(c=0;c<t.length;c++)g=t[c],D?"custom"==g.key&&(d.value=g.key,D=!1):null!=g.format&&("a4"==g.key?826==e.width?(e=mxRectangle.fromRectangle(e),e.width=827):826==e.height&&(e=mxRectangle.fromRectangle(e),e.height=827):"a5"==g.key&&(584==e.width?(e=mxRectangle.fromRectangle(e),e.width=583):584==e.height&&(e=mxRectangle.fromRectangle(e),e.height=583)),e.width==g.format.width&&
+e.height==g.format.height?(d.value=g.key,l.setAttribute("checked","checked"),l.defaultChecked=!0,l.checked=!0,q.removeAttribute("checked"),q.defaultChecked=!1,q.checked=!1,b=!0):e.width==g.format.height&&e.height==g.format.width&&(d.value=g.key,l.removeAttribute("checked"),l.defaultChecked=!1,l.checked=!1,q.setAttribute("checked","checked"),q.defaultChecked=!0,b=q.checked=!0));b?(k.style.display="",p.style.display="none"):(m.value=e.width/100,u.value=e.height/100,l.setAttribute("checked","checked"),
d.value="custom",k.style.display="none",p.style.display="")}}c="format-"+c;var l=document.createElement("input");l.setAttribute("name",c);l.setAttribute("type","radio");l.setAttribute("value","portrait");var q=document.createElement("input");q.setAttribute("name",c);q.setAttribute("type","radio");q.setAttribute("value","landscape");var d=document.createElement("select");d.style.marginBottom="8px";d.style.borderRadius="4px";d.style.border="1px solid rgb(160, 160, 160)";d.style.width="206px";var k=
document.createElement("div");k.style.marginLeft="4px";k.style.width="210px";k.style.height="24px";l.style.marginRight="6px";k.appendChild(l);c=document.createElement("span");c.style.maxWidth="100px";mxUtils.write(c,mxResources.get("portrait"));k.appendChild(c);q.style.marginLeft="10px";q.style.marginRight="6px";k.appendChild(q);var g=document.createElement("span");g.style.width="100px";mxUtils.write(g,mxResources.get("landscape"));k.appendChild(g);var p=document.createElement("div");p.style.marginLeft=
-"4px";p.style.width="210px";p.style.height="24px";var m=document.createElement("input");m.setAttribute("size","7");m.style.textAlign="right";p.appendChild(m);mxUtils.write(p," in x ");var v=document.createElement("input");v.setAttribute("size","7");v.style.textAlign="right";p.appendChild(v);mxUtils.write(p," in");k.style.display="none";p.style.display="none";for(var u={},t=PageSetupDialog.getFormats(),z=0;z<t.length;z++){var y=t[z];u[y.key]=y;var F=document.createElement("option");F.setAttribute("value",
-y.key);mxUtils.write(F,y.title);d.appendChild(F)}var D=!1;n();b.appendChild(d);mxUtils.br(b);b.appendChild(k);b.appendChild(p);var E=e,H=function(b,c){var g=u[d.value];null!=g.format?(m.value=g.format.width/100,v.value=g.format.height/100,p.style.display="none",k.style.display=""):(k.style.display="none",p.style.display="");g=parseFloat(m.value);if(isNaN(g)||0>=g)m.value=e.width/100;g=parseFloat(v.value);if(isNaN(g)||0>=g)v.value=e.height/100;g=new mxRectangle(0,0,Math.floor(100*parseFloat(m.value)),
-Math.floor(100*parseFloat(v.value)));"custom"!=d.value&&q.checked&&(g=new mxRectangle(0,0,g.height,g.width));c&&D||g.width==E.width&&g.height==E.height||(E=g,null!=f&&f(E))};mxEvent.addListener(c,"click",function(b){l.checked=!0;H(b);mxEvent.consume(b)});mxEvent.addListener(g,"click",function(b){q.checked=!0;H(b);mxEvent.consume(b)});mxEvent.addListener(m,"blur",H);mxEvent.addListener(m,"click",H);mxEvent.addListener(v,"blur",H);mxEvent.addListener(v,"click",H);mxEvent.addListener(q,"change",H);mxEvent.addListener(l,
-"change",H);mxEvent.addListener(d,"change",function(b){D="custom"==d.value;H(b,!0)});H();return{set:function(b){e=b;n(null,null,!0)},get:function(){return E},widthInput:m,heightInput:v}};
+"4px";p.style.width="210px";p.style.height="24px";var m=document.createElement("input");m.setAttribute("size","7");m.style.textAlign="right";p.appendChild(m);mxUtils.write(p," in x ");var u=document.createElement("input");u.setAttribute("size","7");u.style.textAlign="right";p.appendChild(u);mxUtils.write(p," in");k.style.display="none";p.style.display="none";for(var v={},t=PageSetupDialog.getFormats(),z=0;z<t.length;z++){var y=t[z];v[y.key]=y;var I=document.createElement("option");I.setAttribute("value",
+y.key);mxUtils.write(I,y.title);d.appendChild(I)}var D=!1;n();b.appendChild(d);mxUtils.br(b);b.appendChild(k);b.appendChild(p);var F=e,E=function(b,c){var g=v[d.value];null!=g.format?(m.value=g.format.width/100,u.value=g.format.height/100,p.style.display="none",k.style.display=""):(k.style.display="none",p.style.display="");g=parseFloat(m.value);if(isNaN(g)||0>=g)m.value=e.width/100;g=parseFloat(u.value);if(isNaN(g)||0>=g)u.value=e.height/100;g=new mxRectangle(0,0,Math.floor(100*parseFloat(m.value)),
+Math.floor(100*parseFloat(u.value)));"custom"!=d.value&&q.checked&&(g=new mxRectangle(0,0,g.height,g.width));c&&D||g.width==F.width&&g.height==F.height||(F=g,null!=f&&f(F))};mxEvent.addListener(c,"click",function(b){l.checked=!0;E(b);mxEvent.consume(b)});mxEvent.addListener(g,"click",function(b){q.checked=!0;E(b);mxEvent.consume(b)});mxEvent.addListener(m,"blur",E);mxEvent.addListener(m,"click",E);mxEvent.addListener(u,"blur",E);mxEvent.addListener(u,"click",E);mxEvent.addListener(q,"change",E);mxEvent.addListener(l,
+"change",E);mxEvent.addListener(d,"change",function(b){D="custom"==d.value;E(b,!0)});E();return{set:function(b){e=b;n(null,null,!0)},get:function(){return F},widthInput:m,heightInput:u}};
PageSetupDialog.getFormats=function(){return[{key:"letter",title:'US-Letter (8,5" x 11")',format:mxConstants.PAGE_FORMAT_LETTER_PORTRAIT},{key:"legal",title:'US-Legal (8,5" x 14")',format:new mxRectangle(0,0,850,1400)},{key:"tabloid",title:'US-Tabloid (11" x 17")',format:new mxRectangle(0,0,1100,1700)},{key:"executive",title:'US-Executive (7" x 10")',format:new mxRectangle(0,0,700,1E3)},{key:"a0",title:"A0 (841 mm x 1189 mm)",format:new mxRectangle(0,0,3300,4681)},{key:"a1",title:"A1 (594 mm x 841 mm)",
format:new mxRectangle(0,0,2339,3300)},{key:"a2",title:"A2 (420 mm x 594 mm)",format:new mxRectangle(0,0,1654,2336)},{key:"a3",title:"A3 (297 mm x 420 mm)",format:new mxRectangle(0,0,1169,1654)},{key:"a4",title:"A4 (210 mm x 297 mm)",format:mxConstants.PAGE_FORMAT_A4_PORTRAIT},{key:"a5",title:"A5 (148 mm x 210 mm)",format:new mxRectangle(0,0,583,827)},{key:"a6",title:"A6 (105 mm x 148 mm)",format:new mxRectangle(0,0,413,583)},{key:"a7",title:"A7 (74 mm x 105 mm)",format:new mxRectangle(0,0,291,413)},
{key:"b4",title:"B4 (250 mm x 353 mm)",format:new mxRectangle(0,0,980,1390)},{key:"b5",title:"B5 (176 mm x 250 mm)",format:new mxRectangle(0,0,690,980)},{key:"16-9",title:"16:9 (1600 x 900)",format:new mxRectangle(0,0,900,1600)},{key:"16-10",title:"16:10 (1920 x 1200)",format:new mxRectangle(0,0,1200,1920)},{key:"4-3",title:"4:3 (1600 x 1200)",format:new mxRectangle(0,0,1200,1600)},{key:"custom",title:mxResources.get("custom"),format:null}]};
-var FilenameDialog=function(b,c,e,f,n,l,q,d,k,g,p,m){k=null!=k?k:!0;var v,u,t=document.createElement("table"),z=document.createElement("tbody");t.style.position="absolute";t.style.top="30px";t.style.left="20px";v=document.createElement("tr");u=document.createElement("td");u.style.textOverflow="ellipsis";u.style.textAlign="right";u.style.maxWidth="100px";u.style.fontSize="10pt";u.style.width="84px";mxUtils.write(u,(n||mxResources.get("filename"))+":");v.appendChild(u);var y=document.createElement("input");
-y.setAttribute("value",c||"");y.style.marginLeft="4px";y.style.width=null!=m?m+"px":"180px";var F=mxUtils.button(e,function(){if(null==l||l(y.value))k&&b.hideDialog(),f(y.value)});F.className="geBtn gePrimaryBtn";this.init=function(){if(null!=n||null==q)if(y.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?y.select():document.execCommand("selectAll",!1,null),Graph.fileSupport){var b=t.parentNode;if(null!=b){var d=null;mxEvent.addListener(b,"dragleave",function(b){null!=d&&(d.style.backgroundColor=
-"",d=null);b.stopPropagation();b.preventDefault()});mxEvent.addListener(b,"dragover",mxUtils.bind(this,function(b){null==d&&(!mxClient.IS_IE||10<document.documentMode)&&(d=y,d.style.backgroundColor="#ebf2f9");b.stopPropagation();b.preventDefault()}));mxEvent.addListener(b,"drop",mxUtils.bind(this,function(b){null!=d&&(d.style.backgroundColor="",d=null);0<=mxUtils.indexOf(b.dataTransfer.types,"text/uri-list")&&(y.value=decodeURIComponent(b.dataTransfer.getData("text/uri-list")),F.click());b.stopPropagation();
-b.preventDefault()}))}}};u=document.createElement("td");u.style.whiteSpace="nowrap";u.appendChild(y);v.appendChild(u);if(null!=n||null==q)z.appendChild(v),null!=p&&(u.appendChild(FilenameDialog.createTypeHint(b,y,p)),null!=b.editor.diagramFileTypes&&(v=document.createElement("tr"),u=document.createElement("td"),u.style.textOverflow="ellipsis",u.style.textAlign="right",u.style.maxWidth="100px",u.style.fontSize="10pt",u.style.width="84px",mxUtils.write(u,mxResources.get("type")+":"),v.appendChild(u),
-u=document.createElement("td"),u.style.whiteSpace="nowrap",v.appendChild(u),c=FilenameDialog.createFileTypes(b,y,b.editor.diagramFileTypes),c.style.marginLeft="4px",c.style.width="198px",u.appendChild(c),y.style.width=null!=m?m-40+"px":"190px",v.appendChild(u),z.appendChild(v)));null!=q&&(v=document.createElement("tr"),u=document.createElement("td"),u.colSpan=2,u.appendChild(q),v.appendChild(u),z.appendChild(v));v=document.createElement("tr");u=document.createElement("td");u.colSpan=2;u.style.paddingTop=
-null!=p?"12px":"20px";u.style.whiteSpace="nowrap";u.setAttribute("align","right");p=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();null!=g&&g()});p.className="geBtn";b.editor.cancelFirst&&u.appendChild(p);null!=d&&(m=mxUtils.button(mxResources.get("help"),function(){b.editor.graph.openLink(d)}),m.className="geBtn",u.appendChild(m));mxEvent.addListener(y,"keypress",function(b){13==b.keyCode&&F.click()});u.appendChild(F);b.editor.cancelFirst||u.appendChild(p);v.appendChild(u);z.appendChild(v);
+var FilenameDialog=function(b,c,e,f,n,l,q,d,k,g,p,m){k=null!=k?k:!0;var u,v,t=document.createElement("table"),z=document.createElement("tbody");t.style.position="absolute";t.style.top="30px";t.style.left="20px";u=document.createElement("tr");v=document.createElement("td");v.style.textOverflow="ellipsis";v.style.textAlign="right";v.style.maxWidth="100px";v.style.fontSize="10pt";v.style.width="84px";mxUtils.write(v,(n||mxResources.get("filename"))+":");u.appendChild(v);var y=document.createElement("input");
+y.setAttribute("value",c||"");y.style.marginLeft="4px";y.style.width=null!=m?m+"px":"180px";var I=mxUtils.button(e,function(){if(null==l||l(y.value))k&&b.hideDialog(),f(y.value)});I.className="geBtn gePrimaryBtn";this.init=function(){if(null!=n||null==q)if(y.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?y.select():document.execCommand("selectAll",!1,null),Graph.fileSupport){var b=t.parentNode;if(null!=b){var d=null;mxEvent.addListener(b,"dragleave",function(b){null!=d&&(d.style.backgroundColor=
+"",d=null);b.stopPropagation();b.preventDefault()});mxEvent.addListener(b,"dragover",mxUtils.bind(this,function(b){null==d&&(!mxClient.IS_IE||10<document.documentMode)&&(d=y,d.style.backgroundColor="#ebf2f9");b.stopPropagation();b.preventDefault()}));mxEvent.addListener(b,"drop",mxUtils.bind(this,function(b){null!=d&&(d.style.backgroundColor="",d=null);0<=mxUtils.indexOf(b.dataTransfer.types,"text/uri-list")&&(y.value=decodeURIComponent(b.dataTransfer.getData("text/uri-list")),I.click());b.stopPropagation();
+b.preventDefault()}))}}};v=document.createElement("td");v.style.whiteSpace="nowrap";v.appendChild(y);u.appendChild(v);if(null!=n||null==q)z.appendChild(u),null!=p&&(v.appendChild(FilenameDialog.createTypeHint(b,y,p)),null!=b.editor.diagramFileTypes&&(u=document.createElement("tr"),v=document.createElement("td"),v.style.textOverflow="ellipsis",v.style.textAlign="right",v.style.maxWidth="100px",v.style.fontSize="10pt",v.style.width="84px",mxUtils.write(v,mxResources.get("type")+":"),u.appendChild(v),
+v=document.createElement("td"),v.style.whiteSpace="nowrap",u.appendChild(v),c=FilenameDialog.createFileTypes(b,y,b.editor.diagramFileTypes),c.style.marginLeft="4px",c.style.width="198px",v.appendChild(c),y.style.width=null!=m?m-40+"px":"190px",u.appendChild(v),z.appendChild(u)));null!=q&&(u=document.createElement("tr"),v=document.createElement("td"),v.colSpan=2,v.appendChild(q),u.appendChild(v),z.appendChild(u));u=document.createElement("tr");v=document.createElement("td");v.colSpan=2;v.style.paddingTop=
+null!=p?"12px":"20px";v.style.whiteSpace="nowrap";v.setAttribute("align","right");p=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();null!=g&&g()});p.className="geBtn";b.editor.cancelFirst&&v.appendChild(p);null!=d&&(m=mxUtils.button(mxResources.get("help"),function(){b.editor.graph.openLink(d)}),m.className="geBtn",v.appendChild(m));mxEvent.addListener(y,"keypress",function(b){13==b.keyCode&&I.click()});v.appendChild(I);b.editor.cancelFirst||v.appendChild(p);u.appendChild(v);z.appendChild(u);
t.appendChild(z);this.container=t};FilenameDialog.filenameHelpLink=null;
FilenameDialog.createTypeHint=function(b,c,e){var f=document.createElement("img");f.style.backgroundPosition="center bottom";f.style.backgroundRepeat="no-repeat";f.style.margin="2px 0 0 4px";f.style.verticalAlign="top";f.style.cursor="pointer";f.style.height="16px";f.style.width="16px";mxUtils.setOpacity(f,70);var n=function(){f.setAttribute("src",Editor.helpImage);f.setAttribute("title",mxResources.get("help"));for(var b=0;b<e.length;b++)if(0<e[b].ext.length&&c.value.toLowerCase().substring(c.value.length-
e[b].ext.length-1)=="."+e[b].ext){f.setAttribute("title",mxResources.get(e[b].title));break}};mxEvent.addListener(c,"keyup",n);mxEvent.addListener(c,"change",n);mxEvent.addListener(f,"click",function(c){var e=f.getAttribute("title");f.getAttribute("src")==Editor.helpImage?b.editor.graph.openLink(FilenameDialog.filenameHelpLink):""!=e&&b.showError(null,e,mxResources.get("help"),function(){b.editor.graph.openLink(FilenameDialog.filenameHelpLink)},null,mxResources.get("ok"),null,null,null,340,90);mxEvent.consume(c)});
@@ -2139,8 +2139,8 @@ mxGraphView.prototype.validateBackgroundStyles=function(){var b=this.graph,d=nul
b.defaultPageBorderColor,b.container.className="geDiagramContainer geDiagramBackdrop",c.style.backgroundImage="none",c.style.backgroundColor=""):(b.container.className="geDiagramContainer",c.style.backgroundPosition=e,c.style.backgroundColor=d,c.style.backgroundImage=g)};mxGraphView.prototype.createSvgGrid=function(b){for(var d=this.graph.gridSize*this.scale;d<this.minGridSize;)d*=2;for(var c=this.gridSteps*d,g=[],e=1;e<this.gridSteps;e++){var f=e*d;g.push("M 0 "+f+" L "+c+" "+f+" M "+f+" 0 L "+f+
" "+c)}return'<svg width="'+c+'" height="'+c+'" xmlns="'+mxConstants.NS_SVG+'"><defs><pattern id="grid" width="'+c+'" height="'+c+'" patternUnits="userSpaceOnUse"><path d="'+g.join(" ")+'" fill="none" stroke="'+b+'" opacity="0.2" stroke-width="1"/><path d="M '+c+" 0 L 0 0 0 "+c+'" fill="none" stroke="'+b+'" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(#grid)"/></svg>'};var b=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(c,d){b.apply(this,arguments);
if(null!=this.shiftPreview1){var k=this.view.canvas;null!=k.ownerSVGElement&&(k=k.ownerSVGElement);var g=this.gridSize*this.view.scale*this.view.gridSteps,g=-Math.round(g-mxUtils.mod(this.view.translate.x*this.view.scale+c,g))+"px "+-Math.round(g-mxUtils.mod(this.view.translate.y*this.view.scale+d,g))+"px";k.style.backgroundPosition=g}};mxGraph.prototype.updatePageBreaks=function(b,d,c){var g=this.view.scale,k=this.view.translate,e=this.pageFormat,f=g*this.pageScale,l=this.view.getBackgroundPageBounds();
-d=l.width;c=l.height;var t=new mxRectangle(g*k.x,g*k.y,e.width*f,e.height*f),n=(b=b&&Math.min(t.width,t.height)>this.minPageBreakDist)?Math.ceil(c/t.height)-1:0,q=b?Math.ceil(d/t.width)-1:0,F=l.x+d,D=l.y+c;null==this.horizontalPageBreaks&&0<n&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<q&&(this.verticalPageBreaks=[]);b=mxUtils.bind(this,function(b){if(null!=b){for(var d=b==this.horizontalPageBreaks?n:q,c=0;c<=d;c++){var g=b==this.horizontalPageBreaks?[new mxPoint(Math.round(l.x),
-Math.round(l.y+(c+1)*t.height)),new mxPoint(Math.round(F),Math.round(l.y+(c+1)*t.height))]:[new mxPoint(Math.round(l.x+(c+1)*t.width),Math.round(l.y)),new mxPoint(Math.round(l.x+(c+1)*t.width),Math.round(D))];null!=b[c]?(b[c].points=g,b[c].redraw()):(g=new mxPolyline(g,this.pageBreakColor),g.dialect=this.dialect,g.isDashed=this.pageBreakDashed,g.pointerEvents=!1,g.init(this.view.backgroundPane),g.redraw(),b[c]=g)}for(c=d;c<b.length;c++)b[c].destroy();b.splice(d,b.length-d)}});b(this.horizontalPageBreaks);
+d=l.width;c=l.height;var t=new mxRectangle(g*k.x,g*k.y,e.width*f,e.height*f),n=(b=b&&Math.min(t.width,t.height)>this.minPageBreakDist)?Math.ceil(c/t.height)-1:0,q=b?Math.ceil(d/t.width)-1:0,I=l.x+d,D=l.y+c;null==this.horizontalPageBreaks&&0<n&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<q&&(this.verticalPageBreaks=[]);b=mxUtils.bind(this,function(b){if(null!=b){for(var d=b==this.horizontalPageBreaks?n:q,c=0;c<=d;c++){var g=b==this.horizontalPageBreaks?[new mxPoint(Math.round(l.x),
+Math.round(l.y+(c+1)*t.height)),new mxPoint(Math.round(I),Math.round(l.y+(c+1)*t.height))]:[new mxPoint(Math.round(l.x+(c+1)*t.width),Math.round(l.y)),new mxPoint(Math.round(l.x+(c+1)*t.width),Math.round(D))];null!=b[c]?(b[c].points=g,b[c].redraw()):(g=new mxPolyline(g,this.pageBreakColor),g.dialect=this.dialect,g.isDashed=this.pageBreakDashed,g.pointerEvents=!1,g.init(this.view.backgroundPane),g.redraw(),b[c]=g)}for(c=d;c<b.length;c++)b[c].destroy();b.splice(d,b.length-d)}});b(this.horizontalPageBreaks);
b(this.verticalPageBreaks)};var c=mxGraphHandler.prototype.shouldRemoveCellsFromParent;mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(b,d,k){for(var g=0;g<d.length;g++){if(this.graph.isTableCell(d[g])||this.graph.isTableRow(d[g]))return!1;if(this.graph.getModel().isVertex(d[g])){var e=this.graph.getCellGeometry(d[g]);if(null!=e&&e.relative)return!1}}return c.apply(this,arguments)};var e=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var b=
e.apply(this,arguments);b.intersects=mxUtils.bind(this,function(d,c){return this.isConnecting()?!0:mxCellMarker.prototype.intersects.apply(b,arguments)});return b};mxGraphView.prototype.createBackgroundPageShape=function(b){return new mxRectangleShape(b,"#ffffff",this.graph.defaultPageBorderColor)};mxGraphView.prototype.getBackgroundPageBounds=function(){var b=this.getGraphBounds(),d=0<b.width?b.x/this.scale-this.translate.x:0,c=0<b.height?b.y/this.scale-this.translate.y:0,g=this.graph.pageFormat,
e=this.graph.pageScale,f=g.width*e,g=g.height*e,e=Math.floor(Math.min(0,d)/f),l=Math.floor(Math.min(0,c)/g);return new mxRectangle(this.scale*(this.translate.x+e*f),this.scale*(this.translate.y+l*g),this.scale*(Math.ceil(Math.max(1,d+b.width/this.scale)/f)-e)*f,this.scale*(Math.ceil(Math.max(1,c+b.height/this.scale)/g)-l)*g)};var f=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(b,d){f.apply(this,arguments);this.dialect==mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape||
@@ -2150,22 +2150,22 @@ this.graph.isCellSelected(b)&&!this.graph.isToggleEvent(c.getEvent())||this.grap
"data:image/gif;base64,R0lGODlhCQAJAIAAAP///zMzMyH5BAEAAAAALAAAAAAJAAkAAAIPhI8WebHsHopSOVgb26AAADs=":(new Image).src=mxPopupMenu.prototype.submenuImage;mxClient.IS_SVG||null==mxConnectionHandler.prototype.connectImage||((new Image).src=mxConnectionHandler.prototype.connectImage.src);this.selectionStateListener=mxUtils.bind(this,function(b,d){this.clearSelectionState()});f.getSelectionModel().addListener(mxEvent.CHANGE,this.selectionStateListener);f.getModel().addListener(mxEvent.CHANGE,this.selectionStateListener);
f.addListener(mxEvent.EDITING_STARTED,this.selectionStateListener);f.addListener(mxEvent.EDITING_STOPPED,this.selectionStateListener);f.getView().addListener("unitChanged",this.selectionStateListener);this.editor.chromeless&&!this.editor.editable&&(this.footerHeight=0,f.isEnabled=function(){return!1},f.panningHandler.isForcePanningEvent=function(b){return!mxEvent.isPopupTrigger(b.getEvent())});this.actions=new Actions(this);this.menus=this.createMenus();if(!f.standalone){var l="rounded shadow glass dashed dashPattern labelBackgroundColor labelBorderColor comic sketch fillWeight hachureGap hachureAngle jiggle disableMultiStroke disableMultiStrokeFill fillStyle curveFitting simplification sketchStyle pointerEvents".split(" "),
q="shape edgeStyle curved rounded elbow jumpStyle jumpSize comic sketch fillWeight hachureGap hachureAngle jiggle disableMultiStroke disableMultiStrokeFill fillStyle curveFitting simplification sketchStyle".split(" "),d="curved sourcePerimeterSpacing targetPerimeterSpacing startArrow startFill startSize endArrow endFill endSize".split(" ");this.setDefaultStyle=function(b){try{var d=f.getCellStyle(b,!1),c=[],g=[],k;for(k in d)c.push(d[k]),g.push(k);f.getModel().isEdge(b)?f.currentEdgeStyle={}:f.currentVertexStyle=
-{};this.fireEvent(new mxEventObject("styleChanged","keys",g,"values",c,"cells",[b]))}catch(X){this.handleError(X)}};this.clearDefaultStyle=function(){f.currentEdgeStyle=mxUtils.clone(f.defaultEdgeStyle);f.currentVertexStyle=mxUtils.clone(f.defaultVertexStyle);this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",[]))};var k=["fontFamily","fontSource","fontSize","fontColor"];for(c=0;c<k.length;c++)0>mxUtils.indexOf(l,k[c])&&l.push(k[c]);var g="edgeStyle startArrow startFill startSize endArrow endFill endSize".split(" "),
+{};this.fireEvent(new mxEventObject("styleChanged","keys",g,"values",c,"cells",[b]))}catch(ba){this.handleError(ba)}};this.clearDefaultStyle=function(){f.currentEdgeStyle=mxUtils.clone(f.defaultEdgeStyle);f.currentVertexStyle=mxUtils.clone(f.defaultVertexStyle);this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",[]))};var k=["fontFamily","fontSource","fontSize","fontColor"];for(c=0;c<k.length;c++)0>mxUtils.indexOf(l,k[c])&&l.push(k[c]);var g="edgeStyle startArrow startFill startSize endArrow endFill endSize".split(" "),
p=[["startArrow","startFill","endArrow","endFill"],["startSize","endSize"],["sourcePerimeterSpacing","targetPerimeterSpacing"],["strokeColor","strokeWidth"],["fillColor","gradientColor","gradientDirection"],["opacity"],["html"]];for(c=0;c<p.length;c++)for(e=0;e<p[c].length;e++)l.push(p[c][e]);for(c=0;c<q.length;c++)0>mxUtils.indexOf(l,q[c])&&l.push(q[c]);var m=function(b,c,g,k,e,m,x){k=null!=k?k:f.currentVertexStyle;e=null!=e?e:f.currentEdgeStyle;m=null!=m?m:!0;g=null!=g?g:f.getModel();if(x){x=[];
-for(var v=0;v<b.length;v++)x=x.concat(g.getDescendants(b[v]));b=x}g.beginUpdate();try{for(v=0;v<b.length;v++){var t=b[v],u;if(c)u=["fontSize","fontFamily","fontColor"];else{var n=g.getStyle(t),y=null!=n?n.split(";"):[];u=l.slice();for(var q=0;q<y.length;q++){var z=y[q],P=z.indexOf("=");if(0<=P){var A=z.substring(0,P),ga=mxUtils.indexOf(u,A);0<=ga&&u.splice(ga,1);for(x=0;x<p.length;x++){var W=p[x];if(0<=mxUtils.indexOf(W,A))for(var K=0;K<W.length;K++){var F=mxUtils.indexOf(u,W[K]);0<=F&&u.splice(F,
-1)}}}}}var H=g.isEdge(t);x=H?e:k;for(var G=g.getStyle(t),q=0;q<u.length;q++){var A=u[q],T=x[A];null!=T&&"edgeStyle"!=A&&("shape"!=A||H)&&(!H||m||0>mxUtils.indexOf(d,A))&&(G=mxUtils.setStyle(G,A,T))}Editor.simpleLabels&&(G=mxUtils.setStyle(mxUtils.setStyle(G,"html",null),"whiteSpace",null));g.setStyle(t,G)}}finally{g.endUpdate()}return b};f.addListener("cellsInserted",function(b,d){m(d.getProperty("cells"),null,null,null,null,!0,!0)});f.addListener("textInserted",function(b,d){m(d.getProperty("cells"),
-!0)});this.insertHandler=m;this.createDivs();this.createUi();this.refresh();var v=mxUtils.bind(this,function(b){null==b&&(b=window.event);return f.isEditing()||null!=b&&this.isSelectionAllowed(b)});this.container==document.body&&(this.menubarContainer.onselectstart=v,this.menubarContainer.onmousedown=v,this.toolbarContainer.onselectstart=v,this.toolbarContainer.onmousedown=v,this.diagramContainer.onselectstart=v,this.diagramContainer.onmousedown=v,this.sidebarContainer.onselectstart=v,this.sidebarContainer.onmousedown=
-v,this.formatContainer.onselectstart=v,this.formatContainer.onmousedown=v,this.footerContainer.onselectstart=v,this.footerContainer.onmousedown=v,null!=this.tabContainer&&(this.tabContainer.onselectstart=v));!this.editor.chromeless||this.editor.editable?(c=function(b){if(null!=b){var d=mxEvent.getSource(b);if("A"==d.nodeName)for(;null!=d;){if("geHint"==d.className)return!0;d=d.parentNode}}return v(b)},mxClient.IS_IE&&("undefined"===typeof document.documentMode||9>document.documentMode)?mxEvent.addListener(this.diagramContainer,
-"contextmenu",c):this.diagramContainer.oncontextmenu=c):f.panningHandler.usePopupTrigger=!1;f.init(this.diagramContainer);mxClient.IS_SVG&&null!=f.view.getDrawPane()&&(c=f.view.getDrawPane().ownerSVGElement,null!=c&&(c.style.position="absolute"));this.hoverIcons=this.createHoverIcons();if(null!=f.graphHandler){var u=f.graphHandler.start;f.graphHandler.start=function(){null!=I.hoverIcons&&I.hoverIcons.reset();u.apply(this,arguments)}}mxEvent.addListener(this.diagramContainer,"mousemove",mxUtils.bind(this,
+for(var u=0;u<b.length;u++)x=x.concat(g.getDescendants(b[u]));b=x}g.beginUpdate();try{for(u=0;u<b.length;u++){var t=b[u],v;if(c)v=["fontSize","fontFamily","fontColor"];else{var n=g.getStyle(t),y=null!=n?n.split(";"):[];v=l.slice();for(var q=0;q<y.length;q++){var z=y[q],P=z.indexOf("=");if(0<=P){var B=z.substring(0,P),ga=mxUtils.indexOf(v,B);0<=ga&&v.splice(ga,1);for(x=0;x<p.length;x++){var W=p[x];if(0<=mxUtils.indexOf(W,B))for(var M=0;M<W.length;M++){var I=mxUtils.indexOf(v,W[M]);0<=I&&v.splice(I,
+1)}}}}}var E=g.isEdge(t);x=E?e:k;for(var G=g.getStyle(t),q=0;q<v.length;q++){var B=v[q],V=x[B];null!=V&&"edgeStyle"!=B&&("shape"!=B||E)&&(!E||m||0>mxUtils.indexOf(d,B))&&(G=mxUtils.setStyle(G,B,V))}Editor.simpleLabels&&(G=mxUtils.setStyle(mxUtils.setStyle(G,"html",null),"whiteSpace",null));g.setStyle(t,G)}}finally{g.endUpdate()}return b};f.addListener("cellsInserted",function(b,d){m(d.getProperty("cells"),null,null,null,null,!0,!0)});f.addListener("textInserted",function(b,d){m(d.getProperty("cells"),
+!0)});this.insertHandler=m;this.createDivs();this.createUi();this.refresh();var u=mxUtils.bind(this,function(b){null==b&&(b=window.event);return f.isEditing()||null!=b&&this.isSelectionAllowed(b)});this.container==document.body&&(this.menubarContainer.onselectstart=u,this.menubarContainer.onmousedown=u,this.toolbarContainer.onselectstart=u,this.toolbarContainer.onmousedown=u,this.diagramContainer.onselectstart=u,this.diagramContainer.onmousedown=u,this.sidebarContainer.onselectstart=u,this.sidebarContainer.onmousedown=
+u,this.formatContainer.onselectstart=u,this.formatContainer.onmousedown=u,this.footerContainer.onselectstart=u,this.footerContainer.onmousedown=u,null!=this.tabContainer&&(this.tabContainer.onselectstart=u));!this.editor.chromeless||this.editor.editable?(c=function(b){if(null!=b){var d=mxEvent.getSource(b);if("A"==d.nodeName)for(;null!=d;){if("geHint"==d.className)return!0;d=d.parentNode}}return u(b)},mxClient.IS_IE&&("undefined"===typeof document.documentMode||9>document.documentMode)?mxEvent.addListener(this.diagramContainer,
+"contextmenu",c):this.diagramContainer.oncontextmenu=c):f.panningHandler.usePopupTrigger=!1;f.init(this.diagramContainer);mxClient.IS_SVG&&null!=f.view.getDrawPane()&&(c=f.view.getDrawPane().ownerSVGElement,null!=c&&(c.style.position="absolute"));this.hoverIcons=this.createHoverIcons();if(null!=f.graphHandler){var v=f.graphHandler.start;f.graphHandler.start=function(){null!=H.hoverIcons&&H.hoverIcons.reset();v.apply(this,arguments)}}mxEvent.addListener(this.diagramContainer,"mousemove",mxUtils.bind(this,
function(b){var d=mxUtils.getOffset(this.diagramContainer);0<mxEvent.getClientX(b)-d.x-this.diagramContainer.clientWidth||0<mxEvent.getClientY(b)-d.y-this.diagramContainer.clientHeight?this.diagramContainer.setAttribute("title",mxResources.get("panTooltip")):this.diagramContainer.removeAttribute("title")}));var t=!1,z=this.hoverIcons.isResetEvent;this.hoverIcons.isResetEvent=function(b,d){return t||z.apply(this,arguments)};this.keydownHandler=mxUtils.bind(this,function(b){32!=b.which||f.isEditing()?
mxEvent.isConsumed(b)||27!=b.keyCode||this.hideDialog(null,!0):(t=!0,this.hoverIcons.reset(),f.container.style.cursor="move",f.isEditing()||mxEvent.getSource(b)!=f.container||mxEvent.consume(b))});mxEvent.addListener(document,"keydown",this.keydownHandler);this.keyupHandler=mxUtils.bind(this,function(b){f.container.style.cursor="";t=!1});mxEvent.addListener(document,"keyup",this.keyupHandler);var y=f.panningHandler.isForcePanningEvent;f.panningHandler.isForcePanningEvent=function(b){return y.apply(this,
-arguments)||t||mxEvent.isMouseEvent(b.getEvent())&&(this.usePopupTrigger||!mxEvent.isPopupTrigger(b.getEvent()))&&(!mxEvent.isControlDown(b.getEvent())&&mxEvent.isRightMouseButton(b.getEvent())||mxEvent.isMiddleMouseButton(b.getEvent()))};var F=f.cellEditor.isStopEditingEvent;f.cellEditor.isStopEditingEvent=function(b){return F.apply(this,arguments)||13==b.keyCode&&(!mxClient.IS_SF&&mxEvent.isControlDown(b)||mxClient.IS_MAC&&mxEvent.isMetaDown(b)||mxClient.IS_SF&&mxEvent.isShiftDown(b))};var D=f.isZoomWheelEvent;
-f.isZoomWheelEvent=function(){return t||D.apply(this,arguments)};var E=!1,H=null,N=null,A=null,G=mxUtils.bind(this,function(){if(null!=this.toolbar&&E!=f.cellEditor.isContentEditing()){for(var b=this.toolbar.container.firstChild,d=[];null!=b;){var c=b.nextSibling;0>mxUtils.indexOf(this.toolbar.staticElements,b)&&(b.parentNode.removeChild(b),d.push(b));b=c}b=this.toolbar.fontMenu;c=this.toolbar.sizeMenu;if(null==A)this.toolbar.createTextToolbar();else{for(var g=0;g<A.length;g++)this.toolbar.container.appendChild(A[g]);
-this.toolbar.fontMenu=H;this.toolbar.sizeMenu=N}E=f.cellEditor.isContentEditing();H=b;N=c;A=d}}),I=this,L=f.cellEditor.startEditing;f.cellEditor.startEditing=function(){L.apply(this,arguments);G();if(f.cellEditor.isContentEditing()){var b=!1,d=function(){b||(b=!0,window.setTimeout(function(){var d=f.getSelectedEditingElement();null!=d&&(d=mxUtils.getCurrentStyle(d),null!=d&&null!=I.toolbar&&(I.toolbar.setFontName(Graph.stripQuotes(d.fontFamily)),I.toolbar.setFontSize(parseInt(d.fontSize))));b=!1},
-0))};mxEvent.addListener(f.cellEditor.textarea,"input",d);mxEvent.addListener(f.cellEditor.textarea,"touchend",d);mxEvent.addListener(f.cellEditor.textarea,"mouseup",d);mxEvent.addListener(f.cellEditor.textarea,"keyup",d);d()}};var M=f.cellEditor.stopEditing;f.cellEditor.stopEditing=function(b,d){try{M.apply(this,arguments),G()}catch(W){I.handleError(W)}};f.container.setAttribute("tabindex","0");f.container.style.cursor="default";if(window.self===window.top&&null!=f.container.parentNode)try{f.container.focus()}catch(P){}var K=
-f.fireMouseEvent;f.fireMouseEvent=function(b,d,c){b==mxEvent.MOUSE_DOWN&&this.container.focus();K.apply(this,arguments)};f.popupMenuHandler.autoExpand=!0;null!=this.menus&&(f.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(b,d,c){this.menus.createPopupMenu(b,d,c)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(b){f.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(b);this.getKeyHandler=function(){return keyHandler};f.connectionHandler.addListener(mxEvent.CONNECT,
-function(b,d){var c=[d.getProperty("cell")];d.getProperty("terminalInserted")&&(c.push(d.getProperty("terminal")),window.setTimeout(function(){null!=I.hoverIcons&&I.hoverIcons.update(f.view.getState(c[c.length-1]))},0));m(c)});this.addListener("styleChanged",mxUtils.bind(this,function(b,d){var c=d.getProperty("cells"),e=!1,p=!1;if(0<c.length)for(var m=0;m<c.length&&(e=f.getModel().isVertex(c[m])||e,!(p=f.getModel().isEdge(c[m])||p)||!e);m++);else p=e=!0;for(var c=d.getProperty("keys"),x=d.getProperty("values"),
-m=0;m<c.length;m++){var v=0<=mxUtils.indexOf(k,c[m]);if("strokeColor"!=c[m]||null!=x[m]&&"none"!=x[m])if(0<=mxUtils.indexOf(q,c[m]))p||0<=mxUtils.indexOf(g,c[m])?null==x[m]?delete f.currentEdgeStyle[c[m]]:f.currentEdgeStyle[c[m]]=x[m]:e&&0<=mxUtils.indexOf(l,c[m])&&(null==x[m]?delete f.currentVertexStyle[c[m]]:f.currentVertexStyle[c[m]]=x[m]);else if(0<=mxUtils.indexOf(l,c[m])){if(e||v)null==x[m]?delete f.currentVertexStyle[c[m]]:f.currentVertexStyle[c[m]]=x[m];if(p||v||0<=mxUtils.indexOf(g,c[m]))null==
+arguments)||t||mxEvent.isMouseEvent(b.getEvent())&&(this.usePopupTrigger||!mxEvent.isPopupTrigger(b.getEvent()))&&(!mxEvent.isControlDown(b.getEvent())&&mxEvent.isRightMouseButton(b.getEvent())||mxEvent.isMiddleMouseButton(b.getEvent()))};var I=f.cellEditor.isStopEditingEvent;f.cellEditor.isStopEditingEvent=function(b){return I.apply(this,arguments)||13==b.keyCode&&(!mxClient.IS_SF&&mxEvent.isControlDown(b)||mxClient.IS_MAC&&mxEvent.isMetaDown(b)||mxClient.IS_SF&&mxEvent.isShiftDown(b))};var D=f.isZoomWheelEvent;
+f.isZoomWheelEvent=function(){return t||D.apply(this,arguments)};var F=!1,E=null,O=null,B=null,G=mxUtils.bind(this,function(){if(null!=this.toolbar&&F!=f.cellEditor.isContentEditing()){for(var b=this.toolbar.container.firstChild,d=[];null!=b;){var c=b.nextSibling;0>mxUtils.indexOf(this.toolbar.staticElements,b)&&(b.parentNode.removeChild(b),d.push(b));b=c}b=this.toolbar.fontMenu;c=this.toolbar.sizeMenu;if(null==B)this.toolbar.createTextToolbar();else{for(var g=0;g<B.length;g++)this.toolbar.container.appendChild(B[g]);
+this.toolbar.fontMenu=E;this.toolbar.sizeMenu=O}F=f.cellEditor.isContentEditing();E=b;O=c;B=d}}),H=this,L=f.cellEditor.startEditing;f.cellEditor.startEditing=function(){L.apply(this,arguments);G();if(f.cellEditor.isContentEditing()){var b=!1,d=function(){b||(b=!0,window.setTimeout(function(){var d=f.getSelectedEditingElement();null!=d&&(d=mxUtils.getCurrentStyle(d),null!=d&&null!=H.toolbar&&(H.toolbar.setFontName(Graph.stripQuotes(d.fontFamily)),H.toolbar.setFontSize(parseInt(d.fontSize))));b=!1},
+0))};mxEvent.addListener(f.cellEditor.textarea,"input",d);mxEvent.addListener(f.cellEditor.textarea,"touchend",d);mxEvent.addListener(f.cellEditor.textarea,"mouseup",d);mxEvent.addListener(f.cellEditor.textarea,"keyup",d);d()}};var N=f.cellEditor.stopEditing;f.cellEditor.stopEditing=function(b,d){try{N.apply(this,arguments),G()}catch(W){H.handleError(W)}};f.container.setAttribute("tabindex","0");f.container.style.cursor="default";if(window.self===window.top&&null!=f.container.parentNode)try{f.container.focus()}catch(P){}var M=
+f.fireMouseEvent;f.fireMouseEvent=function(b,d,c){b==mxEvent.MOUSE_DOWN&&this.container.focus();M.apply(this,arguments)};f.popupMenuHandler.autoExpand=!0;null!=this.menus&&(f.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(b,d,c){this.menus.createPopupMenu(b,d,c)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(b){f.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(b);this.getKeyHandler=function(){return keyHandler};f.connectionHandler.addListener(mxEvent.CONNECT,
+function(b,d){var c=[d.getProperty("cell")];d.getProperty("terminalInserted")&&(c.push(d.getProperty("terminal")),window.setTimeout(function(){null!=H.hoverIcons&&H.hoverIcons.update(f.view.getState(c[c.length-1]))},0));m(c)});this.addListener("styleChanged",mxUtils.bind(this,function(b,d){var c=d.getProperty("cells"),e=!1,p=!1;if(0<c.length)for(var m=0;m<c.length&&(e=f.getModel().isVertex(c[m])||e,!(p=f.getModel().isEdge(c[m])||p)||!e);m++);else p=e=!0;for(var c=d.getProperty("keys"),x=d.getProperty("values"),
+m=0;m<c.length;m++){var u=0<=mxUtils.indexOf(k,c[m]);if("strokeColor"!=c[m]||null!=x[m]&&"none"!=x[m])if(0<=mxUtils.indexOf(q,c[m]))p||0<=mxUtils.indexOf(g,c[m])?null==x[m]?delete f.currentEdgeStyle[c[m]]:f.currentEdgeStyle[c[m]]=x[m]:e&&0<=mxUtils.indexOf(l,c[m])&&(null==x[m]?delete f.currentVertexStyle[c[m]]:f.currentVertexStyle[c[m]]=x[m]);else if(0<=mxUtils.indexOf(l,c[m])){if(e||u)null==x[m]?delete f.currentVertexStyle[c[m]]:f.currentVertexStyle[c[m]]=x[m];if(p||u||0<=mxUtils.indexOf(g,c[m]))null==
x[m]?delete f.currentEdgeStyle[c[m]]:f.currentEdgeStyle[c[m]]=x[m]}}null!=this.toolbar&&(this.toolbar.setFontName(f.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(f.currentVertexStyle.fontSize||Menus.prototype.defaultFontSize),null!=this.toolbar.edgeStyleMenu&&(this.toolbar.edgeStyleMenu.getElementsByTagName("div")[0].className="orthogonalEdgeStyle"==f.currentEdgeStyle.edgeStyle&&"1"==f.currentEdgeStyle.curved?"geSprite geSprite-curved":"straight"==f.currentEdgeStyle.edgeStyle||
"none"==f.currentEdgeStyle.edgeStyle||null==f.currentEdgeStyle.edgeStyle?"geSprite geSprite-straight":"entityRelationEdgeStyle"==f.currentEdgeStyle.edgeStyle?"geSprite geSprite-entity":"elbowEdgeStyle"==f.currentEdgeStyle.edgeStyle?"geSprite geSprite-"+("vertical"==f.currentEdgeStyle.elbow?"verticalelbow":"horizontalelbow"):"isometricEdgeStyle"==f.currentEdgeStyle.edgeStyle?"geSprite geSprite-"+("vertical"==f.currentEdgeStyle.elbow?"verticalisometric":"horizontalisometric"):"geSprite geSprite-orthogonal"),
null!=this.toolbar.edgeShapeMenu&&(this.toolbar.edgeShapeMenu.getElementsByTagName("div")[0].className="link"==f.currentEdgeStyle.shape?"geSprite geSprite-linkedge":"flexArrow"==f.currentEdgeStyle.shape?"geSprite geSprite-arrow":"arrow"==f.currentEdgeStyle.shape?"geSprite geSprite-simplearrow":"geSprite geSprite-connection"),null!=this.toolbar.lineStartMenu&&(this.toolbar.lineStartMenu.getElementsByTagName("div")[0].className=this.getCssClassForMarker("start",f.currentEdgeStyle.shape,f.currentEdgeStyle[mxConstants.STYLE_STARTARROW],
@@ -2182,8 +2182,8 @@ EditorUi.prototype.init=function(){var b=this.editor.graph;if(!b.standalone){"0"
arguments);e.updateActionStates()};b.editLink=e.actions.get("editLink").funct;this.updateActionStates();this.initClipboard();this.initCanvas();null!=this.format&&this.format.init()}};EditorUi.prototype.clearSelectionState=function(){this.selectionState=null};EditorUi.prototype.getSelectionState=function(){null==this.selectionState&&(this.selectionState=this.createSelectionState());return this.selectionState};
EditorUi.prototype.createSelectionState=function(){for(var b=this.editor.graph,c=b.getSelectionCells(),e=this.initSelectionState(),f=!0,n=0;n<c.length;n++){var l=b.getCurrentCellStyle(c[n]);"0"!=mxUtils.getValue(l,mxConstants.STYLE_EDITABLE,"1")&&(this.updateSelectionStateForCell(e,c[n],c,f),f=!1)}this.updateSelectionStateForTableCells(e);return e};
EditorUi.prototype.initSelectionState=function(){return{vertices:[],edges:[],cells:[],x:null,y:null,width:null,height:null,style:{},containsImage:!1,containsLabel:!1,fill:!0,glass:!0,rounded:!0,autoSize:!1,image:!0,shadow:!0,lineJumps:!0,resizable:!0,table:!1,cell:!1,row:!1,movable:!0,rotatable:!0,stroke:!0,swimlane:!1,unlocked:this.editor.graph.isEnabled(),connections:!1}};
-EditorUi.prototype.updateSelectionStateForTableCells=function(b){if(1<b.cells.length&&b.cell){for(var c=mxUtils.sortCells(b.cells),e=this.editor.graph.model,f=e.getParent(c[0]),n=e.getParent(f),l=f.getIndex(c[0]),q=n.getIndex(f),d=null,k=1,g=1,p=0,m=q<n.getChildCount()-1?e.getChildAt(e.getChildAt(n,q+1),l):null;p<c.length-1;){var v=c[++p];null==m||m!=v||null!=d&&k!=d||(d=k,k=0,g++,f=e.getParent(m),m=q+g<n.getChildCount()?e.getChildAt(e.getChildAt(n,q+g),l):null);var u=this.editor.graph.view.getState(v);
-if(v==e.getChildAt(f,l+k)&&null!=u&&1==mxUtils.getValue(u.style,"colspan",1)&&1==mxUtils.getValue(u.style,"rowspan",1))k++;else break}p==g*k-1&&(b.mergeCell=c[0],b.colspan=k,b.rowspan=g)}};
+EditorUi.prototype.updateSelectionStateForTableCells=function(b){if(1<b.cells.length&&b.cell){for(var c=mxUtils.sortCells(b.cells),e=this.editor.graph.model,f=e.getParent(c[0]),n=e.getParent(f),l=f.getIndex(c[0]),q=n.getIndex(f),d=null,k=1,g=1,p=0,m=q<n.getChildCount()-1?e.getChildAt(e.getChildAt(n,q+1),l):null;p<c.length-1;){var u=c[++p];null==m||m!=u||null!=d&&k!=d||(d=k,k=0,g++,f=e.getParent(m),m=q+g<n.getChildCount()?e.getChildAt(e.getChildAt(n,q+g),l):null);var v=this.editor.graph.view.getState(u);
+if(u==e.getChildAt(f,l+k)&&null!=v&&1==mxUtils.getValue(v.style,"colspan",1)&&1==mxUtils.getValue(v.style,"rowspan",1))k++;else break}p==g*k-1&&(b.mergeCell=c[0],b.colspan=k,b.rowspan=g)}};
EditorUi.prototype.updateSelectionStateForCell=function(b,c,e,f){e=this.editor.graph;b.cells.push(c);if(e.getModel().isVertex(c)){b.connections=0<e.model.getEdgeCount(c);b.unlocked=b.unlocked&&!e.isCellLocked(c);b.resizable=b.resizable&&e.isCellResizable(c);b.rotatable=b.rotatable&&e.isCellRotatable(c);b.movable=b.movable&&e.isCellMovable(c)&&!e.isTableRow(c)&&!e.isTableCell(c);b.swimlane=b.swimlane||e.isSwimlane(c);b.table=b.table||e.isTable(c);b.cell=b.cell||e.isTableCell(c);b.row=b.row||e.isTableRow(c);
b.vertices.push(c);var n=e.getCellGeometry(c);if(null!=n&&(0<n.width?null==b.width?b.width=n.width:b.width!=n.width&&(b.width=""):b.containsLabel=!0,0<n.height?null==b.height?b.height=n.height:b.height!=n.height&&(b.height=""):b.containsLabel=!0,!n.relative||null!=n.offset)){var l=n.relative?n.offset.x:n.x,n=n.relative?n.offset.y:n.y;null==b.x?b.x=l:b.x!=l&&(b.x="");null==b.y?b.y=n:b.y!=n&&(b.y="")}}else e.getModel().isEdge(c)&&(b.edges.push(c),b.connections=!0,b.resizable=!1,b.rotatable=!1,b.movable=
!1);c=e.view.getState(c);null!=c&&(b.autoSize=b.autoSize||e.isAutoSizeState(c),b.glass=b.glass&&e.isGlassState(c),b.rounded=b.rounded&&e.isRoundedState(c),b.lineJumps=b.lineJumps&&e.isLineJumpState(c),b.image=b.image&&e.isImageState(c),b.shadow=b.shadow&&e.isShadowState(c),b.fill=b.fill&&e.isFillState(c),b.stroke=b.stroke&&e.isStrokeState(c),l=mxUtils.getValue(c.style,mxConstants.STYLE_SHAPE,null),b.containsImage=b.containsImage||"image"==l,e.mergeStyle(c.style,b.style,f))};
@@ -2218,8 +2218,8 @@ null;c.cellEditor.isContentEditing()?document.execCommand("paste",!1,null):f=e.a
EditorUi.prototype.lazyZoomDelay=20;EditorUi.prototype.wheelZoomDelay=400;EditorUi.prototype.buttonZoomDelay=600;
EditorUi.prototype.initCanvas=function(){var b=this.editor.graph;b.timerAutoScroll=!0;b.getPagePadding=function(){return new mxPoint(Math.max(0,Math.round((b.container.offsetWidth-34)/b.view.scale)),Math.max(0,Math.round((b.container.offsetHeight-34)/b.view.scale)))};b.view.getBackgroundPageBounds=function(){var b=this.graph.getPageLayout(),d=this.graph.getPageSize();return new mxRectangle(this.scale*(this.translate.x+b.x*d.width),this.scale*(this.translate.y+b.y*d.height),this.scale*b.width*d.width,
this.scale*b.height*d.height)};b.getPreferredPageSize=function(b,d,c){b=this.getPageLayout();d=this.getPageSize();return new mxRectangle(0,0,b.width*d.width,b.height*d.height)};var c=null,e=this;if(this.editor.isChromelessView()){this.chromelessResize=c=mxUtils.bind(this,function(d,c,g,k){if(null!=b.container&&!b.isViewer()){g=null!=g?g:0;k=null!=k?k:0;var e=b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds(),f=mxUtils.hasScrollbars(b.container),m=b.view.translate,p=b.view.scale,l=mxRectangle.fromRectangle(e);
-l.x=l.x/p-m.x;l.y=l.y/p-m.y;l.width/=p;l.height/=p;var m=b.container.scrollTop,v=b.container.scrollLeft,n=8<=document.documentMode?20:14;if(8==document.documentMode||9==document.documentMode)n+=3;var t=b.container.offsetWidth-n,n=b.container.offsetHeight-n;d=d?Math.max(.3,Math.min(c||1,t/l.width)):p;c=(t-d*l.width)/2/d;var u=0==this.lightboxVerticalDivider?0:(n-d*l.height)/this.lightboxVerticalDivider/d;f&&(c=Math.max(c,0),u=Math.max(u,0));if(f||e.width<t||e.height<n)b.view.scaleAndTranslate(d,Math.floor(c-
-l.x),Math.floor(u-l.y)),b.container.scrollTop=m*d/p,b.container.scrollLeft=v*d/p;else if(0!=g||0!=k)e=b.view.translate,b.view.setTranslate(Math.floor(e.x+g/p),Math.floor(e.y+k/p))}});this.chromelessWindowResize=mxUtils.bind(this,function(){this.chromelessResize(!1)});var f=mxUtils.bind(this,function(){this.chromelessWindowResize(!1)});mxEvent.addListener(window,"resize",f);this.destroyFunctions.push(function(){mxEvent.removeListener(window,"resize",f)});this.editor.addListener("resetGraphView",mxUtils.bind(this,
+l.x=l.x/p-m.x;l.y=l.y/p-m.y;l.width/=p;l.height/=p;var m=b.container.scrollTop,u=b.container.scrollLeft,n=8<=document.documentMode?20:14;if(8==document.documentMode||9==document.documentMode)n+=3;var t=b.container.offsetWidth-n,n=b.container.offsetHeight-n;d=d?Math.max(.3,Math.min(c||1,t/l.width)):p;c=(t-d*l.width)/2/d;var v=0==this.lightboxVerticalDivider?0:(n-d*l.height)/this.lightboxVerticalDivider/d;f&&(c=Math.max(c,0),v=Math.max(v,0));if(f||e.width<t||e.height<n)b.view.scaleAndTranslate(d,Math.floor(c-
+l.x),Math.floor(v-l.y)),b.container.scrollTop=m*d/p,b.container.scrollLeft=u*d/p;else if(0!=g||0!=k)e=b.view.translate,b.view.setTranslate(Math.floor(e.x+g/p),Math.floor(e.y+k/p))}});this.chromelessWindowResize=mxUtils.bind(this,function(){this.chromelessResize(!1)});var f=mxUtils.bind(this,function(){this.chromelessWindowResize(!1)});mxEvent.addListener(window,"resize",f);this.destroyFunctions.push(function(){mxEvent.removeListener(window,"resize",f)});this.editor.addListener("resetGraphView",mxUtils.bind(this,
function(){this.chromelessResize(!0)}));this.actions.get("zoomIn").funct=mxUtils.bind(this,function(d){b.zoomIn();this.chromelessResize(!1)});this.actions.get("zoomOut").funct=mxUtils.bind(this,function(d){b.zoomOut();this.chromelessResize(!1)});if("0"!=urlParams.toolbar){var n=JSON.parse(decodeURIComponent(urlParams["toolbar-config"]||"{}"));this.chromelessToolbar=document.createElement("div");this.chromelessToolbar.style.position="fixed";this.chromelessToolbar.style.overflow="hidden";this.chromelessToolbar.style.boxSizing=
"border-box";this.chromelessToolbar.style.whiteSpace="nowrap";this.chromelessToolbar.style.padding="10px 10px 8px 10px";this.chromelessToolbar.style.left=b.isViewer()?"0":"50%";mxClient.IS_IE||mxClient.IS_IE11?(this.chromelessToolbar.style.backgroundColor="#ffffff",this.chromelessToolbar.style.border="3px solid black"):this.chromelessToolbar.style.backgroundColor="#000000";mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"borderRadius","16px");mxUtils.setPrefixedStyle(this.chromelessToolbar.style,
"transition","opacity 600ms ease-in-out");var l=mxUtils.bind(this,function(){var d=mxUtils.getCurrentStyle(b.container);b.isViewer()?this.chromelessToolbar.style.top="0":this.chromelessToolbar.style.bottom=(null!=d?parseInt(d["margin-bottom"]||0):0)+(null!=this.tabContainer?20+parseInt(this.tabContainer.style.height):20)+"px"});this.editor.addListener("resetGraphView",l);l();var q=0,l=mxUtils.bind(this,function(b,d,c){q++;var g=document.createElement("span");g.style.paddingLeft="8px";g.style.paddingRight=
@@ -2227,27 +2227,27 @@ function(){this.chromelessResize(!0)}));this.actions.get("zoomIn").funct=mxUtils
function(b){this.actions.get("previousPage").funct();mxEvent.consume(b)}),Editor.previousImage,mxResources.get("previousPage")),k=document.createElement("div");k.style.fontFamily=Editor.defaultHtmlFont;k.style.display="inline-block";k.style.verticalAlign="top";k.style.fontWeight="bold";k.style.marginTop="8px";k.style.fontSize="14px";k.style.color=mxClient.IS_IE||mxClient.IS_IE11?"#000000":"#ffffff";this.chromelessToolbar.appendChild(k);var g=l(mxUtils.bind(this,function(b){this.actions.get("nextPage").funct();
mxEvent.consume(b)}),Editor.nextImage,mxResources.get("nextPage")),p=mxUtils.bind(this,function(){null!=this.pages&&1<this.pages.length&&null!=this.currentPage&&(k.innerHTML="",mxUtils.write(k,mxUtils.indexOf(this.pages,this.currentPage)+1+" / "+this.pages.length))});d.style.paddingLeft="0px";d.style.paddingRight="4px";g.style.paddingLeft="4px";g.style.paddingRight="0px";var m=mxUtils.bind(this,function(){null!=this.pages&&1<this.pages.length&&null!=this.currentPage?(g.style.display="",d.style.display=
"",k.style.display="inline-block"):(g.style.display="none",d.style.display="none",k.style.display="none");p()});this.editor.addListener("resetGraphView",m);this.editor.addListener("pageSelected",p)}l(mxUtils.bind(this,function(b){this.actions.get("zoomOut").funct();mxEvent.consume(b)}),Editor.zoomOutImage,mxResources.get("zoomOut")+" (Alt+Mousewheel)");l(mxUtils.bind(this,function(b){this.actions.get("zoomIn").funct();mxEvent.consume(b)}),Editor.zoomInImage,mxResources.get("zoomIn")+" (Alt+Mousewheel)");
-l(mxUtils.bind(this,function(d){b.isLightboxView()?(1==b.view.scale?this.lightboxFit():b.zoomTo(1),this.chromelessResize(!1)):this.chromelessResize(!0);mxEvent.consume(d)}),Editor.zoomFitImage,mxResources.get("fit"));var v=null,u=null,t=mxUtils.bind(this,function(b){null!=v&&(window.clearTimeout(v),v=null);null!=u&&(window.clearTimeout(u),u=null);v=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(this.chromelessToolbar,0);v=null;u=window.setTimeout(mxUtils.bind(this,function(){this.chromelessToolbar.style.display=
-"none";u=null}),600)}),b||200)}),z=mxUtils.bind(this,function(b){null!=v&&(window.clearTimeout(v),v=null);null!=u&&(window.clearTimeout(u),u=null);this.chromelessToolbar.style.display="";mxUtils.setOpacity(this.chromelessToolbar,b||30)});if("1"==urlParams.layers){this.layersDialog=null;var y=l(mxUtils.bind(this,function(d){if(null!=this.layersDialog)this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null;else{this.layersDialog=b.createLayersDialog(null,!0);mxEvent.addListener(this.layersDialog,
+l(mxUtils.bind(this,function(d){b.isLightboxView()?(1==b.view.scale?this.lightboxFit():b.zoomTo(1),this.chromelessResize(!1)):this.chromelessResize(!0);mxEvent.consume(d)}),Editor.zoomFitImage,mxResources.get("fit"));var u=null,v=null,t=mxUtils.bind(this,function(b){null!=u&&(window.clearTimeout(u),u=null);null!=v&&(window.clearTimeout(v),v=null);u=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(this.chromelessToolbar,0);u=null;v=window.setTimeout(mxUtils.bind(this,function(){this.chromelessToolbar.style.display=
+"none";v=null}),600)}),b||200)}),z=mxUtils.bind(this,function(b){null!=u&&(window.clearTimeout(u),u=null);null!=v&&(window.clearTimeout(v),v=null);this.chromelessToolbar.style.display="";mxUtils.setOpacity(this.chromelessToolbar,b||30)});if("1"==urlParams.layers){this.layersDialog=null;var y=l(mxUtils.bind(this,function(d){if(null!=this.layersDialog)this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null;else{this.layersDialog=b.createLayersDialog(null,!0);mxEvent.addListener(this.layersDialog,
"mouseleave",mxUtils.bind(this,function(){this.layersDialog.parentNode.removeChild(this.layersDialog);this.layersDialog=null}));var c=y.getBoundingClientRect();mxUtils.setPrefixedStyle(this.layersDialog.style,"borderRadius","5px");this.layersDialog.style.position="fixed";this.layersDialog.style.fontFamily=Editor.defaultHtmlFont;this.layersDialog.style.width="160px";this.layersDialog.style.padding="4px 2px 4px 2px";this.layersDialog.style.left=c.left+"px";this.layersDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+
this.chromelessToolbar.offsetHeight+4+"px";mxClient.IS_IE||mxClient.IS_IE11?(this.layersDialog.style.backgroundColor="#ffffff",this.layersDialog.style.border="2px solid black",this.layersDialog.style.color="#000000"):(this.layersDialog.style.backgroundColor="#000000",this.layersDialog.style.color="#ffffff",mxUtils.setOpacity(this.layersDialog,80));c=mxUtils.getCurrentStyle(this.editor.graph.container);this.layersDialog.style.zIndex=c.zIndex;document.body.appendChild(this.layersDialog);this.editor.fireEvent(new mxEventObject("layersDialogShown"))}mxEvent.consume(d)}),
-Editor.layersImage,mxResources.get("layers")),F=b.getModel();F.addListener(mxEvent.CHANGE,function(){y.style.display=1<F.getChildCount(F.root)?"":"none"})}("1"!=urlParams.openInSameWin||navigator.standalone)&&this.addChromelessToolbarItems(l);null==this.editor.editButtonLink&&null==this.editor.editButtonFunc||l(mxUtils.bind(this,function(d){null!=this.editor.editButtonFunc?this.editor.editButtonFunc():"_blank"==this.editor.editButtonLink?this.editor.editAsNew(this.getEditBlankXml()):b.openLink(this.editor.editButtonLink,
+Editor.layersImage,mxResources.get("layers")),I=b.getModel();I.addListener(mxEvent.CHANGE,function(){y.style.display=1<I.getChildCount(I.root)?"":"none"})}("1"!=urlParams.openInSameWin||navigator.standalone)&&this.addChromelessToolbarItems(l);null==this.editor.editButtonLink&&null==this.editor.editButtonFunc||l(mxUtils.bind(this,function(d){null!=this.editor.editButtonFunc?this.editor.editButtonFunc():"_blank"==this.editor.editButtonLink?this.editor.editAsNew(this.getEditBlankXml()):b.openLink(this.editor.editButtonLink,
"editWindow");mxEvent.consume(d)}),Editor.editImage,mxResources.get("edit"));if(null!=this.lightboxToolbarActions)for(m=0;m<this.lightboxToolbarActions.length;m++){var D=this.lightboxToolbarActions[m];D.elem=l(D.fn,D.icon,D.tooltip)}null!=n.refreshBtn&&l(mxUtils.bind(this,function(b){n.refreshBtn.url?window.location.href=n.refreshBtn.url:window.location.reload();mxEvent.consume(b)}),Editor.refreshImage,mxResources.get("refresh",null,"Refresh"));null!=n.fullscreenBtn&&window.self!==window.top&&l(mxUtils.bind(this,
function(d){n.fullscreenBtn.url?b.openLink(n.fullscreenBtn.url):b.openLink(window.location.href);mxEvent.consume(d)}),Editor.fullscreenImage,mxResources.get("openInNewWindow",null,"Open in New Window"));(n.closeBtn&&window.self===window.top||b.lightbox&&("1"==urlParams.close||this.container!=document.body))&&l(mxUtils.bind(this,function(b){"1"==urlParams.close||n.closeBtn?window.close():(this.destroy(),mxEvent.consume(b))}),Editor.closeImage,mxResources.get("close")+" (Escape)");this.chromelessToolbar.style.display=
"none";b.isViewer()||mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transform","translate(-50%,0)");b.container.appendChild(this.chromelessToolbar);mxEvent.addListener(b.container,mxClient.IS_POINTER?"pointermove":"mousemove",mxUtils.bind(this,function(b){mxEvent.isTouchEvent(b)||(mxEvent.isShiftDown(b)||z(30),t())}));mxEvent.addListener(this.chromelessToolbar,mxClient.IS_POINTER?"pointermove":"mousemove",function(b){mxEvent.consume(b)});mxEvent.addListener(this.chromelessToolbar,"mouseenter",
-mxUtils.bind(this,function(d){b.tooltipHandler.resetTimer();b.tooltipHandler.hideTooltip();mxEvent.isShiftDown(d)?t():z(100)}));mxEvent.addListener(this.chromelessToolbar,"mousemove",mxUtils.bind(this,function(b){mxEvent.isShiftDown(b)?t():z(100);mxEvent.consume(b)}));mxEvent.addListener(this.chromelessToolbar,"mouseleave",mxUtils.bind(this,function(b){mxEvent.isTouchEvent(b)||z(30)}));var E=b.getTolerance();b.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(d,c){this.startX=
-c.getGraphX();this.startY=c.getGraphY();this.scrollLeft=b.container.scrollLeft;this.scrollTop=b.container.scrollTop},mouseMove:function(b,d){},mouseUp:function(d,c){mxEvent.isTouchEvent(c.getEvent())&&Math.abs(this.scrollLeft-b.container.scrollLeft)<E&&Math.abs(this.scrollTop-b.container.scrollTop)<E&&Math.abs(this.startX-c.getGraphX())<E&&Math.abs(this.startY-c.getGraphY())<E&&(0<parseFloat(e.chromelessToolbar.style.opacity||0)?t():z(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var H=
-b.view.validate;b.view.validate=function(){if(null!=this.graph.container&&mxUtils.hasScrollbars(this.graph.container)){var b=this.graph.getPagePadding(),d=this.graph.getPageSize();this.translate.x=b.x-(this.x0||0)*d.width;this.translate.y=b.y-(this.y0||0)*d.height}H.apply(this,arguments)};if(!b.isViewer()){var N=b.sizeDidChange;b.sizeDidChange=function(){if(null!=this.container&&mxUtils.hasScrollbars(this.container)){var d=this.getPageLayout(),c=this.getPagePadding(),g=this.getPageSize(),k=Math.ceil(2*
-c.x+d.width*g.width),e=Math.ceil(2*c.y+d.height*g.height),f=b.minimumGraphSize;if(null==f||f.width!=k||f.height!=e)b.minimumGraphSize=new mxRectangle(0,0,k,e);k=c.x-d.x*g.width;c=c.y-d.y*g.height;this.autoTranslate||this.view.translate.x==k&&this.view.translate.y==c?N.apply(this,arguments):(this.autoTranslate=!0,this.view.x0=d.x,this.view.y0=d.y,d=b.view.translate.x,g=b.view.translate.y,b.view.setTranslate(k,c),b.container.scrollLeft+=Math.round((k-d)*b.view.scale),b.container.scrollTop+=Math.round((c-
-g)*b.view.scale),this.autoTranslate=!1)}else this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",this.getGraphBounds()))}}}var A=b.view.getBackgroundPane(),G=b.view.getDrawPane();b.cumulativeZoomFactor=1;var I=null,L=null,M=null,K=null,P=null,T=function(d){null!=I&&window.clearTimeout(I);window.setTimeout(function(){if(!b.isMouseDown||K)I=window.setTimeout(mxUtils.bind(this,function(){b.isFastZoomEnabled()&&(null!=b.view.backgroundPageShape&&null!=b.view.backgroundPageShape.node&&(mxUtils.setPrefixedStyle(b.view.backgroundPageShape.node.style,
-"transform-origin",null),mxUtils.setPrefixedStyle(b.view.backgroundPageShape.node.style,"transform",null)),G.style.transformOrigin="",A.style.transformOrigin="",mxClient.IS_SF?(G.style.transform="scale(1)",A.style.transform="scale(1)",window.setTimeout(function(){G.style.transform="";A.style.transform=""},0)):(G.style.transform="",A.style.transform=""),b.view.getDecoratorPane().style.opacity="",b.view.getOverlayPane().style.opacity="");var d=new mxPoint(b.container.scrollLeft,b.container.scrollTop),
-g=mxUtils.getOffset(b.container),k=b.view.scale,f=0,m=0;null!=L&&(f=b.container.offsetWidth/2-L.x+g.x,m=b.container.offsetHeight/2-L.y+g.y);b.zoom(b.cumulativeZoomFactor,null,20);b.view.scale!=k&&(null!=M&&(f+=d.x-M.x,m+=d.y-M.y),null!=c&&e.chromelessResize(!1,null,f*(b.cumulativeZoomFactor-1),m*(b.cumulativeZoomFactor-1)),!mxUtils.hasScrollbars(b.container)||0==f&&0==m||(b.container.scrollLeft-=f*(b.cumulativeZoomFactor-1),b.container.scrollTop-=m*(b.cumulativeZoomFactor-1)));null!=P&&G.setAttribute("filter",
-P);b.cumulativeZoomFactor=1;P=K=L=M=I=null}),null!=d?d:b.isFastZoomEnabled()?e.wheelZoomDelay:e.lazyZoomDelay)},0)};b.lazyZoom=function(d,c,g,k){k=null!=k?k:this.zoomFactor;(c=c||!b.scrollbars)&&(L=new mxPoint(b.container.offsetLeft+b.container.clientWidth/2,b.container.offsetTop+b.container.clientHeight/2));d?.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=(this.view.scale+.05)/this.view.scale:(this.cumulativeZoomFactor*=k,this.cumulativeZoomFactor=Math.round(this.view.scale*
+mxUtils.bind(this,function(d){b.tooltipHandler.resetTimer();b.tooltipHandler.hideTooltip();mxEvent.isShiftDown(d)?t():z(100)}));mxEvent.addListener(this.chromelessToolbar,"mousemove",mxUtils.bind(this,function(b){mxEvent.isShiftDown(b)?t():z(100);mxEvent.consume(b)}));mxEvent.addListener(this.chromelessToolbar,"mouseleave",mxUtils.bind(this,function(b){mxEvent.isTouchEvent(b)||z(30)}));var F=b.getTolerance();b.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(d,c){this.startX=
+c.getGraphX();this.startY=c.getGraphY();this.scrollLeft=b.container.scrollLeft;this.scrollTop=b.container.scrollTop},mouseMove:function(b,d){},mouseUp:function(d,c){mxEvent.isTouchEvent(c.getEvent())&&Math.abs(this.scrollLeft-b.container.scrollLeft)<F&&Math.abs(this.scrollTop-b.container.scrollTop)<F&&Math.abs(this.startX-c.getGraphX())<F&&Math.abs(this.startY-c.getGraphY())<F&&(0<parseFloat(e.chromelessToolbar.style.opacity||0)?t():z(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var E=
+b.view.validate;b.view.validate=function(){if(null!=this.graph.container&&mxUtils.hasScrollbars(this.graph.container)){var b=this.graph.getPagePadding(),d=this.graph.getPageSize();this.translate.x=b.x-(this.x0||0)*d.width;this.translate.y=b.y-(this.y0||0)*d.height}E.apply(this,arguments)};if(!b.isViewer()){var O=b.sizeDidChange;b.sizeDidChange=function(){if(null!=this.container&&mxUtils.hasScrollbars(this.container)){var d=this.getPageLayout(),c=this.getPagePadding(),g=this.getPageSize(),k=Math.ceil(2*
+c.x+d.width*g.width),e=Math.ceil(2*c.y+d.height*g.height),f=b.minimumGraphSize;if(null==f||f.width!=k||f.height!=e)b.minimumGraphSize=new mxRectangle(0,0,k,e);k=c.x-d.x*g.width;c=c.y-d.y*g.height;this.autoTranslate||this.view.translate.x==k&&this.view.translate.y==c?O.apply(this,arguments):(this.autoTranslate=!0,this.view.x0=d.x,this.view.y0=d.y,d=b.view.translate.x,g=b.view.translate.y,b.view.setTranslate(k,c),b.container.scrollLeft+=Math.round((k-d)*b.view.scale),b.container.scrollTop+=Math.round((c-
+g)*b.view.scale),this.autoTranslate=!1)}else this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",this.getGraphBounds()))}}}var B=b.view.getBackgroundPane(),G=b.view.getDrawPane();b.cumulativeZoomFactor=1;var H=null,L=null,N=null,M=null,P=null,V=function(d){null!=H&&window.clearTimeout(H);window.setTimeout(function(){if(!b.isMouseDown||M)H=window.setTimeout(mxUtils.bind(this,function(){b.isFastZoomEnabled()&&(null!=b.view.backgroundPageShape&&null!=b.view.backgroundPageShape.node&&(mxUtils.setPrefixedStyle(b.view.backgroundPageShape.node.style,
+"transform-origin",null),mxUtils.setPrefixedStyle(b.view.backgroundPageShape.node.style,"transform",null)),G.style.transformOrigin="",B.style.transformOrigin="",mxClient.IS_SF?(G.style.transform="scale(1)",B.style.transform="scale(1)",window.setTimeout(function(){G.style.transform="";B.style.transform=""},0)):(G.style.transform="",B.style.transform=""),b.view.getDecoratorPane().style.opacity="",b.view.getOverlayPane().style.opacity="");var d=new mxPoint(b.container.scrollLeft,b.container.scrollTop),
+g=mxUtils.getOffset(b.container),k=b.view.scale,f=0,m=0;null!=L&&(f=b.container.offsetWidth/2-L.x+g.x,m=b.container.offsetHeight/2-L.y+g.y);b.zoom(b.cumulativeZoomFactor,null,20);b.view.scale!=k&&(null!=N&&(f+=d.x-N.x,m+=d.y-N.y),null!=c&&e.chromelessResize(!1,null,f*(b.cumulativeZoomFactor-1),m*(b.cumulativeZoomFactor-1)),!mxUtils.hasScrollbars(b.container)||0==f&&0==m||(b.container.scrollLeft-=f*(b.cumulativeZoomFactor-1),b.container.scrollTop-=m*(b.cumulativeZoomFactor-1)));null!=P&&G.setAttribute("filter",
+P);b.cumulativeZoomFactor=1;P=M=L=N=H=null}),null!=d?d:b.isFastZoomEnabled()?e.wheelZoomDelay:e.lazyZoomDelay)},0)};b.lazyZoom=function(d,c,g,k){k=null!=k?k:this.zoomFactor;(c=c||!b.scrollbars)&&(L=new mxPoint(b.container.offsetLeft+b.container.clientWidth/2,b.container.offsetTop+b.container.clientHeight/2));d?.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=(this.view.scale+.05)/this.view.scale:(this.cumulativeZoomFactor*=k,this.cumulativeZoomFactor=Math.round(this.view.scale*
this.cumulativeZoomFactor*100)/100/this.view.scale):.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=(this.view.scale-.05)/this.view.scale:(this.cumulativeZoomFactor/=k,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100/this.view.scale);this.cumulativeZoomFactor=Math.max(.05,Math.min(this.view.scale*this.cumulativeZoomFactor,160))/this.view.scale;b.isFastZoomEnabled()&&(null==P&&""!=G.getAttribute("filter")&&(P=G.getAttribute("filter"),
-G.removeAttribute("filter")),M=new mxPoint(b.container.scrollLeft,b.container.scrollTop),d=c||null==L?b.container.scrollLeft+b.container.clientWidth/2:L.x+b.container.scrollLeft-b.container.offsetLeft,k=c||null==L?b.container.scrollTop+b.container.clientHeight/2:L.y+b.container.scrollTop-b.container.offsetTop,G.style.transformOrigin=d+"px "+k+"px",G.style.transform="scale("+this.cumulativeZoomFactor+")",A.style.transformOrigin=d+"px "+k+"px",A.style.transform="scale("+this.cumulativeZoomFactor+")",
+G.removeAttribute("filter")),N=new mxPoint(b.container.scrollLeft,b.container.scrollTop),d=c||null==L?b.container.scrollLeft+b.container.clientWidth/2:L.x+b.container.scrollLeft-b.container.offsetLeft,k=c||null==L?b.container.scrollTop+b.container.clientHeight/2:L.y+b.container.scrollTop-b.container.offsetTop,G.style.transformOrigin=d+"px "+k+"px",G.style.transform="scale("+this.cumulativeZoomFactor+")",B.style.transformOrigin=d+"px "+k+"px",B.style.transform="scale("+this.cumulativeZoomFactor+")",
null!=b.view.backgroundPageShape&&null!=b.view.backgroundPageShape.node&&(d=b.view.backgroundPageShape.node,mxUtils.setPrefixedStyle(d.style,"transform-origin",(c||null==L?b.container.clientWidth/2+b.container.scrollLeft-d.offsetLeft+"px":L.x+b.container.scrollLeft-d.offsetLeft-b.container.offsetLeft+"px")+" "+(c||null==L?b.container.clientHeight/2+b.container.scrollTop-d.offsetTop+"px":L.y+b.container.scrollTop-d.offsetTop-b.container.offsetTop+"px")),mxUtils.setPrefixedStyle(d.style,"transform",
-"scale("+this.cumulativeZoomFactor+")")),b.view.getDecoratorPane().style.opacity="0",b.view.getOverlayPane().style.opacity="0",null!=e.hoverIcons&&e.hoverIcons.reset());T(g)};mxEvent.addGestureListeners(b.container,function(b){null!=I&&window.clearTimeout(I)},null,function(d){1!=b.cumulativeZoomFactor&&T(0)});mxEvent.addListener(b.container,"scroll",function(d){null==I||b.isMouseDown||1==b.cumulativeZoomFactor||T(0)});mxEvent.addMouseWheelListener(mxUtils.bind(this,function(d,c,g,k,e){b.fireEvent(new mxEventObject("wheel"));
-if(null==this.dialogs||0==this.dialogs.length)if(!b.scrollbars&&!g&&b.isScrollWheelEvent(d))g=b.view.getTranslate(),k=40/b.view.scale,mxEvent.isShiftDown(d)?b.view.setTranslate(g.x+(c?-k:k),g.y):b.view.setTranslate(g.x,g.y+(c?k:-k));else if(g||b.isZoomWheelEvent(d))for(var f=mxEvent.getSource(d);null!=f;){if(f==b.container)return b.tooltipHandler.hideTooltip(),L=null!=k&&null!=e?new mxPoint(k,e):new mxPoint(mxEvent.getClientX(d),mxEvent.getClientY(d)),K=g,g=b.zoomFactor,null!=d.deltaY&&40>Math.abs(d.deltaY)&&
+"scale("+this.cumulativeZoomFactor+")")),b.view.getDecoratorPane().style.opacity="0",b.view.getOverlayPane().style.opacity="0",null!=e.hoverIcons&&e.hoverIcons.reset());V(g)};mxEvent.addGestureListeners(b.container,function(b){null!=H&&window.clearTimeout(H)},null,function(d){1!=b.cumulativeZoomFactor&&V(0)});mxEvent.addListener(b.container,"scroll",function(d){null==H||b.isMouseDown||1==b.cumulativeZoomFactor||V(0)});mxEvent.addMouseWheelListener(mxUtils.bind(this,function(d,c,g,k,e){b.fireEvent(new mxEventObject("wheel"));
+if(null==this.dialogs||0==this.dialogs.length)if(!b.scrollbars&&!g&&b.isScrollWheelEvent(d))g=b.view.getTranslate(),k=40/b.view.scale,mxEvent.isShiftDown(d)?b.view.setTranslate(g.x+(c?-k:k),g.y):b.view.setTranslate(g.x,g.y+(c?k:-k));else if(g||b.isZoomWheelEvent(d))for(var f=mxEvent.getSource(d);null!=f;){if(f==b.container)return b.tooltipHandler.hideTooltip(),L=null!=k&&null!=e?new mxPoint(k,e):new mxPoint(mxEvent.getClientX(d),mxEvent.getClientY(d)),M=g,g=b.zoomFactor,null!=d.deltaY&&40>Math.abs(d.deltaY)&&
Math.round(d.deltaY)!=d.deltaY&&(g=1+Math.abs(d.deltaY)/20*(g-1)),b.lazyZoom(c,null,null,g),mxEvent.consume(d),!1;f=f.parentNode}}),b.container);b.panningHandler.zoomGraph=function(d){b.cumulativeZoomFactor=d.scale;b.lazyZoom(0<d.scale,!0);mxEvent.consume(d)}};EditorUi.prototype.addChromelessToolbarItems=function(b){b(mxUtils.bind(this,function(b){this.actions.get("print").funct();mxEvent.consume(b)}),Editor.printImage,mxResources.get("print"))};
EditorUi.prototype.isPagesEnabled=function(){return this.editor.editable||"1"!=urlParams["hide-pages"]};EditorUi.prototype.createTemporaryGraph=function(b){return Graph.createOffscreenGraph(b)};EditorUi.prototype.addChromelessClickHandler=function(){var b=urlParams.highlight;null!=b&&0<b.length&&(b="#"+b);this.editor.graph.addClickHandler(b)};
EditorUi.prototype.toggleFormatPanel=function(b){b=null!=b?b:0==this.formatWidth;null!=this.format&&(this.formatWidth=b?240:0,this.formatContainer.style.display=b?"":"none",this.refresh(),this.format.refresh(),this.fireEvent(new mxEventObject("formatWidthChanged")))};
@@ -2296,7 +2296,7 @@ EditorUi.prototype.createFooter=function(){return this.createDiv("geFooter")};Ed
EditorUi.prototype.addSplitHandler=function(b,c,e,f){function n(b){if(null!=q){var m=new mxPoint(mxEvent.getClientX(b),mxEvent.getClientY(b));f(Math.max(0,d+(c?m.x-q.x:q.y-m.y)-e));mxEvent.consume(b);d!=p()&&(k=!0,g=null)}}function l(b){n(b);q=d=null}var q=null,d=null,k=!0,g=null;mxClient.IS_POINTER&&(b.style.touchAction="none");var p=mxUtils.bind(this,function(){var d=parseInt(c?b.style.left:b.style.bottom);c||(d=d+e-this.footerHeight);return d});mxEvent.addGestureListeners(b,function(b){q=new mxPoint(mxEvent.getClientX(b),
mxEvent.getClientY(b));d=p();k=!1;mxEvent.consume(b)});mxEvent.addListener(b,"click",mxUtils.bind(this,function(b){if(!k&&this.hsplitClickEnabled){var d=null!=g?g-e:0;g=p();f(d);mxEvent.consume(b)}}));mxEvent.addGestureListeners(document,null,n,l);this.destroyFunctions.push(function(){mxEvent.removeGestureListeners(document,null,n,l)})};
EditorUi.prototype.handleError=function(b,c,e,f,n){b=null!=b&&null!=b.error?b.error:b;if(null!=b||null!=c){n=mxUtils.htmlEntities(mxResources.get("unknownError"));var l=mxResources.get("ok");c=null!=c?c:mxResources.get("error");null!=b&&null!=b.message&&(n=mxUtils.htmlEntities(b.message));this.showError(c,n,l,e,null,null,null,null,null,null,null,null,f?e:null)}else null!=e&&e()};
-EditorUi.prototype.showError=function(b,c,e,f,n,l,q,d,k,g,p,m,v){b=new ErrorDialog(this,b,c,e||mxResources.get("ok"),f,n,l,q,m,d,k);c=Math.ceil(null!=c?c.length/50:1);this.showDialog(b.container,g||340,p||100+20*c,!0,!1,v);b.init()};EditorUi.prototype.showDialog=function(b,c,e,f,n,l,q,d,k,g){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,b,c,e,f,n,l,q,d,k,g);this.dialogs.push(this.dialog)};
+EditorUi.prototype.showError=function(b,c,e,f,n,l,q,d,k,g,p,m,u){b=new ErrorDialog(this,b,c,e||mxResources.get("ok"),f,n,l,q,m,d,k);c=Math.ceil(null!=c?c.length/50:1);this.showDialog(b.container,g||340,p||100+20*c,!0,!1,u);b.init()};EditorUi.prototype.showDialog=function(b,c,e,f,n,l,q,d,k,g){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,b,c,e,f,n,l,q,d,k,g);this.dialogs.push(this.dialog)};
EditorUi.prototype.hideDialog=function(b,c,e){null!=this.dialogs&&0<this.dialogs.length&&(null==e||e==this.dialog.container.firstChild)&&(e=this.dialogs.pop(),0==e.close(b,c)?this.dialogs.push(e):(this.dialog=0<this.dialogs.length?this.dialogs[this.dialogs.length-1]:null,this.editor.fireEvent(new mxEventObject("hideDialog")),null==this.dialog&&"hidden"!=this.editor.graph.container.style.visibility&&window.setTimeout(mxUtils.bind(this,function(){this.editor.graph.isEditing()&&null!=this.editor.graph.cellEditor.textarea?
this.editor.graph.cellEditor.textarea.focus():(mxUtils.clearSelection(),this.editor.graph.container.focus())}),0)))};EditorUi.prototype.ctrlEnter=function(){var b=this.editor.graph;if(b.isEnabled())try{for(var c=b.getSelectionCells(),e=new mxDictionary,f=[],n=0;n<c.length;n++){var l=b.isTableCell(c[n])?b.model.getParent(c[n]):c[n];null==l||e.get(l)||(e.put(l,!0),f.push(l))}b.setSelectionCells(b.duplicateCells(f,!1))}catch(q){this.handleError(q)}};
EditorUi.prototype.pickColor=function(b,c){var e=this.editor.graph,f=e.cellEditor.saveSelection(),n=230+17*(Math.ceil(ColorDialog.prototype.presetColors.length/12)+Math.ceil(ColorDialog.prototype.defaultColors.length/12)),l=new ColorDialog(this,mxUtils.rgba2hex(b)||"none",function(b){e.cellEditor.restoreSelection(f);c(b)},function(){e.cellEditor.restoreSelection(f)});this.showDialog(l.container,230,n,!0,!1);l.init()};
@@ -2343,33 +2343,33 @@ mxGraphView.prototype.setUnit=function(b){this.unit!=b&&(this.unit=b,this.fireEv
mxImageShape.prototype.getImageDataUri=function(){var b=this.image;if("data:image/svg+xml;base64,"==b.substring(0,26)&&null!=this.style&&"1"==mxUtils.getValue(this.style,"clipSvg","0")){if(null==this.clippedSvg||this.clippedImage!=b)this.clippedSvg=Graph.clipSvgDataUri(b,!0),this.clippedImage=b;b=this.clippedSvg}return b};
Graph=function(b,c,e,f,n,l){mxGraph.call(this,b,c,e,f);this.themes=n||this.defaultThemes;this.currentEdgeStyle=mxUtils.clone(this.defaultEdgeStyle);this.currentVertexStyle=mxUtils.clone(this.defaultVertexStyle);this.standalone=null!=l?l:!1;b=this.baseUrl;c=b.indexOf("//");this.domainPathUrl=this.domainUrl="";0<c&&(c=b.indexOf("/",c+2),0<c&&(this.domainUrl=b.substring(0,c)),c=b.lastIndexOf("/"),0<c&&(this.domainPathUrl=b.substring(0,c+1)));this.isHtmlLabel=function(b){b=this.getCurrentCellStyle(b);
return null!=b?"1"==b.html||"wrap"==b[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.edgeMode){var q=null,d=null,k=null,g=null,p=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(b,c){if("mouseDown"==c.getProperty("eventName")&&this.isEnabled()){var e=c.getProperty("event"),f=e.getState(),l=this.view.scale;if(!mxEvent.isAltDown(e.getEvent())&&null!=f)if(this.model.isEdge(f.cell))if(q=new mxPoint(e.getGraphX(),e.getGraphY()),p=this.isCellSelected(f.cell),k=f,d=e,null!=f.text&&null!=
-f.text.boundingBox&&mxUtils.contains(f.text.boundingBox,e.getGraphX(),e.getGraphY()))g=mxEvent.LABEL_HANDLE;else{var m=this.selectionCellsHandler.getHandler(f.cell);null!=m&&null!=m.bends&&0<m.bends.length&&(g=m.getHandleForEvent(e))}else if(!this.panningHandler.isActive()&&!mxEvent.isControlDown(e.getEvent())&&(m=this.selectionCellsHandler.getHandler(f.cell),null==m||null==m.getHandleForEvent(e))){var x=new mxRectangle(e.getGraphX()-1,e.getGraphY()-1),v=mxEvent.isTouchEvent(e.getEvent())?mxShape.prototype.svgStrokeTolerance-
-1:(mxShape.prototype.svgStrokeTolerance+2)/2,m=v+2;x.grow(v);if(this.isTableCell(f.cell)&&!this.isCellSelected(f.cell)&&!(mxUtils.contains(f,e.getGraphX()-m,e.getGraphY()-m)&&mxUtils.contains(f,e.getGraphX()-m,e.getGraphY()+m)&&mxUtils.contains(f,e.getGraphX()+m,e.getGraphY()+m)&&mxUtils.contains(f,e.getGraphX()+m,e.getGraphY()-m))){var n=this.model.getParent(f.cell),m=this.model.getParent(n);if(!this.isCellSelected(m)){var v=v*l,t=2*v;if(this.model.getChildAt(m,0)!=n&&mxUtils.intersects(x,new mxRectangle(f.x,
-f.y-v,f.width,t))||this.model.getChildAt(n,0)!=f.cell&&mxUtils.intersects(x,new mxRectangle(f.x-v,f.y,t,f.height))||mxUtils.intersects(x,new mxRectangle(f.x,f.y+f.height-v,f.width,t))||mxUtils.intersects(x,new mxRectangle(f.x+f.width-v,f.y,t,f.height)))n=this.selectionCellsHandler.isHandled(m),this.selectCellForEvent(m,e.getEvent()),m=this.selectionCellsHandler.getHandler(m),null!=m&&(v=m.getHandleForEvent(e),null!=v&&(m.start(e.getGraphX(),e.getGraphY(),v),m.blockDelayedSelection=!n,e.consume()))}}for(;!e.isConsumed()&&
-null!=f&&(this.isTableCell(f.cell)||this.isTableRow(f.cell)||this.isTable(f.cell));)this.isSwimlane(f.cell)&&(m=this.getActualStartSize(f.cell),(0<m.x||0<m.width)&&mxUtils.intersects(x,new mxRectangle(f.x+(m.x-m.width-1)*l+(0==m.x?f.width:0),f.y,1,f.height))||(0<m.y||0<m.height)&&mxUtils.intersects(x,new mxRectangle(f.x,f.y+(m.y-m.height-1)*l+(0==m.y?f.height:0),f.width,1)))&&(this.selectCellForEvent(f.cell,e.getEvent()),m=this.selectionCellsHandler.getHandler(f.cell),null!=m&&(v=mxEvent.CUSTOM_HANDLE-
-m.customHandles.length+1,m.start(e.getGraphX(),e.getGraphY(),v),e.consume())),f=this.view.getState(this.model.getParent(f.cell))}}}));this.addMouseListener({mouseDown:function(b,d){},mouseMove:mxUtils.bind(this,function(b,c){var e=this.selectionCellsHandler.handlers.map,f;for(f in e)if(null!=e[f].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(c.getEvent())){var l=this.tolerance;if(null!=q&&null!=k&&null!=d){if(e=k,Math.abs(q.x-c.getGraphX())>l||Math.abs(q.y-
+f.text.boundingBox&&mxUtils.contains(f.text.boundingBox,e.getGraphX(),e.getGraphY()))g=mxEvent.LABEL_HANDLE;else{var m=this.selectionCellsHandler.getHandler(f.cell);null!=m&&null!=m.bends&&0<m.bends.length&&(g=m.getHandleForEvent(e))}else if(!this.panningHandler.isActive()&&!mxEvent.isControlDown(e.getEvent())&&(m=this.selectionCellsHandler.getHandler(f.cell),null==m||null==m.getHandleForEvent(e))){var x=new mxRectangle(e.getGraphX()-1,e.getGraphY()-1),u=mxEvent.isTouchEvent(e.getEvent())?mxShape.prototype.svgStrokeTolerance-
+1:(mxShape.prototype.svgStrokeTolerance+2)/2,m=u+2;x.grow(u);if(this.isTableCell(f.cell)&&!this.isCellSelected(f.cell)&&!(mxUtils.contains(f,e.getGraphX()-m,e.getGraphY()-m)&&mxUtils.contains(f,e.getGraphX()-m,e.getGraphY()+m)&&mxUtils.contains(f,e.getGraphX()+m,e.getGraphY()+m)&&mxUtils.contains(f,e.getGraphX()+m,e.getGraphY()-m))){var n=this.model.getParent(f.cell),m=this.model.getParent(n);if(!this.isCellSelected(m)){var u=u*l,t=2*u;if(this.model.getChildAt(m,0)!=n&&mxUtils.intersects(x,new mxRectangle(f.x,
+f.y-u,f.width,t))||this.model.getChildAt(n,0)!=f.cell&&mxUtils.intersects(x,new mxRectangle(f.x-u,f.y,t,f.height))||mxUtils.intersects(x,new mxRectangle(f.x,f.y+f.height-u,f.width,t))||mxUtils.intersects(x,new mxRectangle(f.x+f.width-u,f.y,t,f.height)))n=this.selectionCellsHandler.isHandled(m),this.selectCellForEvent(m,e.getEvent()),m=this.selectionCellsHandler.getHandler(m),null!=m&&(u=m.getHandleForEvent(e),null!=u&&(m.start(e.getGraphX(),e.getGraphY(),u),m.blockDelayedSelection=!n,e.consume()))}}for(;!e.isConsumed()&&
+null!=f&&(this.isTableCell(f.cell)||this.isTableRow(f.cell)||this.isTable(f.cell));)this.isSwimlane(f.cell)&&(m=this.getActualStartSize(f.cell),(0<m.x||0<m.width)&&mxUtils.intersects(x,new mxRectangle(f.x+(m.x-m.width-1)*l+(0==m.x?f.width:0),f.y,1,f.height))||(0<m.y||0<m.height)&&mxUtils.intersects(x,new mxRectangle(f.x,f.y+(m.y-m.height-1)*l+(0==m.y?f.height:0),f.width,1)))&&(this.selectCellForEvent(f.cell,e.getEvent()),m=this.selectionCellsHandler.getHandler(f.cell),null!=m&&(u=mxEvent.CUSTOM_HANDLE-
+m.customHandles.length+1,m.start(e.getGraphX(),e.getGraphY(),u),e.consume())),f=this.view.getState(this.model.getParent(f.cell))}}}));this.addMouseListener({mouseDown:function(b,d){},mouseMove:mxUtils.bind(this,function(b,c){var e=this.selectionCellsHandler.handlers.map,f;for(f in e)if(null!=e[f].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(c.getEvent())){var l=this.tolerance;if(null!=q&&null!=k&&null!=d){if(e=k,Math.abs(q.x-c.getGraphX())>l||Math.abs(q.y-
c.getGraphY())>l){var m=this.selectionCellsHandler.getHandler(e.cell);null==m&&this.model.isEdge(e.cell)&&(m=this.createHandler(e));if(null!=m&&null!=m.bends&&0<m.bends.length){f=m.getHandleForEvent(d);var x=this.view.getEdgeStyle(e),l=x==mxEdgeStyle.EntityRelation;p||g!=mxEvent.LABEL_HANDLE||(f=g);if(l&&0!=f&&f!=m.bends.length-1&&f!=mxEvent.LABEL_HANDLE)!l||null==e.visibleSourceState&&null==e.visibleTargetState||(this.graphHandler.reset(),c.consume());else if(f==mxEvent.LABEL_HANDLE||0==f||null!=
e.visibleSourceState||f==m.bends.length-1||null!=e.visibleTargetState)l||f==mxEvent.LABEL_HANDLE||(l=e.absolutePoints,null!=l&&(null==x&&null==f||x==mxEdgeStyle.OrthConnector)&&(f=g,null==f&&(f=new mxRectangle(q.x,q.y),f.grow(mxEdgeHandler.prototype.handleImage.width/2),mxUtils.contains(f,l[0].x,l[0].y)?f=0:mxUtils.contains(f,l[l.length-1].x,l[l.length-1].y)?f=m.bends.length-1:null!=x&&(2==l.length||3==l.length&&(0==Math.round(l[0].x-l[1].x)&&0==Math.round(l[1].x-l[2].x)||0==Math.round(l[0].y-l[1].y)&&
0==Math.round(l[1].y-l[2].y)))?f=2:(f=mxUtils.findNearestSegment(e,q.x,q.y),f=null==x?mxEvent.VIRTUAL_HANDLE-f:f+1))),null==f&&(f=mxEvent.VIRTUAL_HANDLE)),m.start(c.getGraphX(),c.getGraphX(),f),c.consume(),this.graphHandler.reset()}null!=m&&(this.selectionCellsHandler.isHandlerActive(m)?this.isCellSelected(e.cell)||(this.selectionCellsHandler.handlers.put(e.cell,m),this.selectCellForEvent(e.cell,c.getEvent())):this.isCellSelected(e.cell)||m.destroy());p=!1;q=d=k=g=null}}else if(e=c.getState(),null!=
e&&this.isCellEditable(e.cell)){m=null;if(this.model.isEdge(e.cell)){if(f=new mxRectangle(c.getGraphX(),c.getGraphY()),f.grow(mxEdgeHandler.prototype.handleImage.width/2),l=e.absolutePoints,null!=l)if(null!=e.text&&null!=e.text.boundingBox&&mxUtils.contains(e.text.boundingBox,c.getGraphX(),c.getGraphY()))m="move";else if(mxUtils.contains(f,l[0].x,l[0].y)||mxUtils.contains(f,l[l.length-1].x,l[l.length-1].y))m="pointer";else if(null!=e.visibleSourceState||null!=e.visibleTargetState)f=this.view.getEdgeStyle(e),
m="crosshair",f!=mxEdgeStyle.EntityRelation&&this.isOrthogonal(e)&&(f=mxUtils.findNearestSegment(e,c.getGraphX(),c.getGraphY()),f<l.length-1&&0<=f&&(m=0==Math.round(l[f].x-l[f+1].x)?"col-resize":"row-resize"))}else if(!mxEvent.isControlDown(c.getEvent())){l=mxShape.prototype.svgStrokeTolerance/2;f=new mxRectangle(c.getGraphX(),c.getGraphY());f.grow(l);if(this.isTableCell(e.cell)&&(l=this.model.getParent(e.cell),x=this.model.getParent(l),!this.isCellSelected(x)))if(mxUtils.intersects(f,new mxRectangle(e.x,
-e.y-2,e.width,4))&&this.model.getChildAt(x,0)!=l||mxUtils.intersects(f,new mxRectangle(e.x,e.y+e.height-2,e.width,4)))m="row-resize";else if(mxUtils.intersects(f,new mxRectangle(e.x-2,e.y,4,e.height))&&this.model.getChildAt(l,0)!=e.cell||mxUtils.intersects(f,new mxRectangle(e.x+e.width-2,e.y,4,e.height)))m="col-resize";for(l=e;null==m&&null!=l&&(this.isTableCell(l.cell)||this.isTableRow(l.cell)||this.isTable(l.cell));){if(this.isSwimlane(l.cell)){var x=this.getActualStartSize(l.cell),v=this.view.scale;
-(0<x.x||0<x.width)&&mxUtils.intersects(f,new mxRectangle(l.x+(x.x-x.width-1)*v+(0==x.x?l.width*v:0),l.y,1,l.height))?m="col-resize":(0<x.y||0<x.height)&&mxUtils.intersects(f,new mxRectangle(l.x,l.y+(x.y-x.height-1)*v+(0==x.y?l.height:0),l.width,1))&&(m="row-resize")}l=this.view.getState(this.model.getParent(l.cell))}}null!=m&&e.setCursor(m)}}}),mouseUp:mxUtils.bind(this,function(b,c){g=q=d=k=null})})}this.cellRenderer.minSvgStrokeWidth=.1;this.cellRenderer.getLabelValue=function(b){var d=mxCellRenderer.prototype.getLabelValue.apply(this,
+e.y-2,e.width,4))&&this.model.getChildAt(x,0)!=l||mxUtils.intersects(f,new mxRectangle(e.x,e.y+e.height-2,e.width,4)))m="row-resize";else if(mxUtils.intersects(f,new mxRectangle(e.x-2,e.y,4,e.height))&&this.model.getChildAt(l,0)!=e.cell||mxUtils.intersects(f,new mxRectangle(e.x+e.width-2,e.y,4,e.height)))m="col-resize";for(l=e;null==m&&null!=l&&(this.isTableCell(l.cell)||this.isTableRow(l.cell)||this.isTable(l.cell));){if(this.isSwimlane(l.cell)){var x=this.getActualStartSize(l.cell),u=this.view.scale;
+(0<x.x||0<x.width)&&mxUtils.intersects(f,new mxRectangle(l.x+(x.x-x.width-1)*u+(0==x.x?l.width*u:0),l.y,1,l.height))?m="col-resize":(0<x.y||0<x.height)&&mxUtils.intersects(f,new mxRectangle(l.x,l.y+(x.y-x.height-1)*u+(0==x.y?l.height:0),l.width,1))&&(m="row-resize")}l=this.view.getState(this.model.getParent(l.cell))}}null!=m&&e.setCursor(m)}}}),mouseUp:mxUtils.bind(this,function(b,c){g=q=d=k=null})})}this.cellRenderer.minSvgStrokeWidth=.1;this.cellRenderer.getLabelValue=function(b){var d=mxCellRenderer.prototype.getLabelValue.apply(this,
arguments);b.view.graph.isHtmlLabel(b.cell)&&(d=1!=b.style.html?mxUtils.htmlEntities(d,!1):b.view.graph.sanitizeHtml(d));return d};if("undefined"!==typeof mxVertexHandler){this.setConnectable(!0);this.setDropEnabled(!0);this.setPanning(!0);this.setTooltips(!0);this.setAllowLoops(!0);this.allowAutoPanning=!0;this.constrainChildren=this.resetEdgesOnConnect=!1;this.constrainRelativeChildren=!0;this.graphHandler.scrollOnMove=!1;this.graphHandler.scaleGrid=!0;this.connectionHandler.setCreateTarget(!1);
this.connectionHandler.insertBeforeSource=!0;this.connectionHandler.isValidSource=function(b,d){return!1};this.alternateEdgeStyle="vertical";null==f&&this.loadStylesheet();var m=this.graphHandler.getGuideStates;this.graphHandler.getGuideStates=function(){var b=m.apply(this,arguments);if(this.graph.pageVisible){for(var d=[],c=this.graph.pageFormat,g=this.graph.pageScale,k=c.width*g,c=c.height*g,g=this.graph.view.translate,e=this.graph.view.scale,f=this.graph.getPageLayout(),l=0;l<f.width;l++)d.push(new mxRectangle(((f.x+
l)*k+g.x)*e,(f.y*c+g.y)*e,k*e,c*e));for(l=1;l<f.height;l++)d.push(new mxRectangle((f.x*k+g.x)*e,((f.y+l)*c+g.y)*e,k*e,c*e));b=d.concat(b)}return b};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(b,d){return null==b.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.graphHandler.createPreviewShape=function(b){this.previewColor="#000000"==this.graph.background?"#ffffff":mxGraphHandler.prototype.previewColor;return mxGraphHandler.prototype.createPreviewShape.apply(this,
-arguments)};var v=this.graphHandler.getCells;this.graphHandler.getCells=function(b){for(var d=v.apply(this,arguments),c=new mxDictionary,g=[],k=0;k<d.length;k++){var e=this.graph.isTableCell(b)&&this.graph.isTableCell(d[k])&&this.graph.isCellSelected(d[k])?this.graph.model.getParent(d[k]):this.graph.isTableRow(b)&&this.graph.isTableRow(d[k])&&this.graph.isCellSelected(d[k])?d[k]:this.graph.getCompositeParent(d[k]);null==e||c.get(e)||(c.put(e,!0),g.push(e))}return g};var u=this.graphHandler.start;
-this.graphHandler.start=function(b,d,c,g){var k=!1;this.graph.isTableCell(b)&&(this.graph.isCellSelected(b)?k=!0:b=this.graph.model.getParent(b));k||this.graph.isTableRow(b)&&this.graph.isCellSelected(b)||(b=this.graph.getCompositeParent(b));u.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(b,d){d=this.graph.getCompositeParent(d);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};var t=new mxRubberband(this);this.getRubberband=function(){return t};
-var z=(new Date).getTime(),y=0,F=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var b=this.currentState;F.apply(this,arguments);b!=this.currentState?(z=(new Date).getTime(),y=0):y=(new Date).getTime()-z};var D=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(b){return null!=this.currentState&&b.getState()==this.currentState&&2E3<y||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect",
-"1"))&&D.apply(this,arguments)};var E=this.isToggleEvent;this.isToggleEvent=function(b){return E.apply(this,arguments)||!mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(b)};var H=t.isForceRubberbandEvent;t.isForceRubberbandEvent=function(b){return H.apply(this,arguments)||mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(b.getEvent())||mxUtils.hasScrollbars(this.graph.container)&&mxClient.IS_FF&&mxClient.IS_WIN&&null==b.getState()&&mxEvent.isTouchEvent(b.getEvent())};var N=null;this.panningHandler.addListener(mxEvent.PAN_START,
-mxUtils.bind(this,function(){this.isEnabled()&&(N=this.container.style.cursor,this.container.style.cursor="move")}));this.panningHandler.addListener(mxEvent.PAN_END,mxUtils.bind(this,function(){this.isEnabled()&&(this.container.style.cursor=N)}));this.popupMenuHandler.autoExpand=!0;this.popupMenuHandler.isSelectOnPopup=function(b){return mxEvent.isMouseEvent(b.getEvent())};var A=this.click;this.click=function(b){var d=null==b.state&&null!=b.sourceState&&this.isCellLocked(b.sourceState.cell);if(this.isEnabled()&&
-!d||b.isConsumed())return A.apply(this,arguments);var c=d?b.sourceState.cell:b.getCell();null!=c&&(c=this.getClickableLinkForCell(c),null!=c&&(this.isCustomLink(c)?this.customLinkClicked(c):this.openLink(c)));this.isEnabled()&&d&&this.clearSelection()};this.tooltipHandler.getStateForEvent=function(b){return b.sourceState};var G=this.tooltipHandler.show;this.tooltipHandler.show=function(){G.apply(this,arguments);if(null!=this.div)for(var b=this.div.getElementsByTagName("a"),d=0;d<b.length;d++)null!=
-b[d].getAttribute("href")&&null==b[d].getAttribute("target")&&b[d].setAttribute("target","_blank")};this.tooltipHandler.getStateForEvent=function(b){return b.sourceState};this.getCursorForMouseEvent=function(b){var d=null==b.state&&null!=b.sourceState&&this.isCellLocked(b.sourceState.cell);return this.getCursorForCell(d?b.sourceState.cell:b.getCell())};var I=this.getCursorForCell;this.getCursorForCell=function(b){if(!this.isEnabled()||this.isCellLocked(b)){if(null!=this.getClickableLinkForCell(b))return"pointer";
-if(this.isCellLocked(b))return"default"}return I.apply(this,arguments)};this.selectRegion=function(b,d){var c=mxEvent.isAltDown(d)?b:null,c=this.getCells(b.x,b.y,b.width,b.height,null,null,c,function(b){return"1"==mxUtils.getValue(b.style,"locked","0")},!0);if(this.isToggleEvent(d))for(var g=0;g<c.length;g++)this.selectCellForEvent(c[g],d);else this.selectCellsForEvent(c,d);return c};var L=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=function(b,d,c){return this.graph.isCellSelected(b)?
-!1:L.apply(this,arguments)};this.isCellLocked=function(b){for(;null!=b;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(b),"locked","0"))return!0;b=this.model.getParent(b)}return!1};var M=null;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(b,d){if("mouseDown"==d.getProperty("eventName")){var c=d.getProperty("event").getState();M=null==c||this.isSelectionEmpty()||this.isCellSelected(c.cell)?null:this.getSelectionCells()}}));this.addListener(mxEvent.TAP_AND_HOLD,mxUtils.bind(this,
-function(b,d){if(!mxEvent.isMultiTouchEvent(d)){var c=d.getProperty("event"),g=d.getProperty("cell");null==g?(c=mxUtils.convertPoint(this.container,mxEvent.getClientX(c),mxEvent.getClientY(c)),t.start(c.x,c.y)):null!=M?this.addSelectionCells(M):1<this.getSelectionCount()&&this.isCellSelected(g)&&this.removeSelectionCell(g);M=null;d.consume()}}));this.connectionHandler.selectCells=function(b,d){this.graph.setSelectionCell(d||b)};this.connectionHandler.constraintHandler.isStateIgnored=function(b,d){var c=
-b.view.graph;return d&&(c.isCellSelected(b.cell)||c.isTableRow(b.cell)&&c.selectionCellsHandler.isHandled(c.model.getParent(b.cell)))};this.selectionModel.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var b=this.connectionHandler.constraintHandler;null!=b.currentFocus&&b.isStateIgnored(b.currentFocus,!0)&&(b.currentFocus=null,b.constraints=null,b.destroyIcons());b.destroyFocusHighlight()}));Graph.touchStyle&&this.initTouch();var K=this.updateMouseEvent;this.updateMouseEvent=function(b){b=
-K.apply(this,arguments);null!=b.state&&this.isCellLocked(b.getCell())&&(b.state=null);return b}}this.currentTranslate=new mxPoint(0,0)};Graph.touchStyle=mxClient.IS_TOUCH||mxClient.IS_FF&&mxClient.IS_WIN||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints||null==window.urlParams||"1"==urlParams.touch;Graph.fileSupport=null!=window.File&&null!=window.FileReader&&null!=window.FileList&&(null==window.urlParams||"0"!=urlParams.filesupport);Graph.translateDiagram="1"==urlParams["translate-diagram"];
+arguments)};var u=this.graphHandler.getCells;this.graphHandler.getCells=function(b){for(var d=u.apply(this,arguments),c=new mxDictionary,g=[],k=0;k<d.length;k++){var e=this.graph.isTableCell(b)&&this.graph.isTableCell(d[k])&&this.graph.isCellSelected(d[k])?this.graph.model.getParent(d[k]):this.graph.isTableRow(b)&&this.graph.isTableRow(d[k])&&this.graph.isCellSelected(d[k])?d[k]:this.graph.getCompositeParent(d[k]);null==e||c.get(e)||(c.put(e,!0),g.push(e))}return g};var v=this.graphHandler.start;
+this.graphHandler.start=function(b,d,c,g){var k=!1;this.graph.isTableCell(b)&&(this.graph.isCellSelected(b)?k=!0:b=this.graph.model.getParent(b));k||this.graph.isTableRow(b)&&this.graph.isCellSelected(b)||(b=this.graph.getCompositeParent(b));v.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(b,d){d=this.graph.getCompositeParent(d);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};var t=new mxRubberband(this);this.getRubberband=function(){return t};
+var z=(new Date).getTime(),y=0,I=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var b=this.currentState;I.apply(this,arguments);b!=this.currentState?(z=(new Date).getTime(),y=0):y=(new Date).getTime()-z};var D=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(b){return null!=this.currentState&&b.getState()==this.currentState&&2E3<y||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect",
+"1"))&&D.apply(this,arguments)};var F=this.isToggleEvent;this.isToggleEvent=function(b){return F.apply(this,arguments)||!mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(b)};var E=t.isForceRubberbandEvent;t.isForceRubberbandEvent=function(b){return E.apply(this,arguments)||mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(b.getEvent())||mxUtils.hasScrollbars(this.graph.container)&&mxClient.IS_FF&&mxClient.IS_WIN&&null==b.getState()&&mxEvent.isTouchEvent(b.getEvent())};var O=null;this.panningHandler.addListener(mxEvent.PAN_START,
+mxUtils.bind(this,function(){this.isEnabled()&&(O=this.container.style.cursor,this.container.style.cursor="move")}));this.panningHandler.addListener(mxEvent.PAN_END,mxUtils.bind(this,function(){this.isEnabled()&&(this.container.style.cursor=O)}));this.popupMenuHandler.autoExpand=!0;this.popupMenuHandler.isSelectOnPopup=function(b){return mxEvent.isMouseEvent(b.getEvent())};var B=this.click;this.click=function(b){var d=null==b.state&&null!=b.sourceState&&this.isCellLocked(b.sourceState.cell);if(this.isEnabled()&&
+!d||b.isConsumed())return B.apply(this,arguments);var c=d?b.sourceState.cell:b.getCell();null!=c&&(c=this.getClickableLinkForCell(c),null!=c&&(this.isCustomLink(c)?this.customLinkClicked(c):this.openLink(c)));this.isEnabled()&&d&&this.clearSelection()};this.tooltipHandler.getStateForEvent=function(b){return b.sourceState};var G=this.tooltipHandler.show;this.tooltipHandler.show=function(){G.apply(this,arguments);if(null!=this.div)for(var b=this.div.getElementsByTagName("a"),d=0;d<b.length;d++)null!=
+b[d].getAttribute("href")&&null==b[d].getAttribute("target")&&b[d].setAttribute("target","_blank")};this.tooltipHandler.getStateForEvent=function(b){return b.sourceState};this.getCursorForMouseEvent=function(b){var d=null==b.state&&null!=b.sourceState&&this.isCellLocked(b.sourceState.cell);return this.getCursorForCell(d?b.sourceState.cell:b.getCell())};var H=this.getCursorForCell;this.getCursorForCell=function(b){if(!this.isEnabled()||this.isCellLocked(b)){if(null!=this.getClickableLinkForCell(b))return"pointer";
+if(this.isCellLocked(b))return"default"}return H.apply(this,arguments)};this.selectRegion=function(b,d){var c=mxEvent.isAltDown(d)?b:null,c=this.getCells(b.x,b.y,b.width,b.height,null,null,c,function(b){return"1"==mxUtils.getValue(b.style,"locked","0")},!0);if(this.isToggleEvent(d))for(var g=0;g<c.length;g++)this.selectCellForEvent(c[g],d);else this.selectCellsForEvent(c,d);return c};var L=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=function(b,d,c){return this.graph.isCellSelected(b)?
+!1:L.apply(this,arguments)};this.isCellLocked=function(b){for(;null!=b;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(b),"locked","0"))return!0;b=this.model.getParent(b)}return!1};var N=null;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(b,d){if("mouseDown"==d.getProperty("eventName")){var c=d.getProperty("event").getState();N=null==c||this.isSelectionEmpty()||this.isCellSelected(c.cell)?null:this.getSelectionCells()}}));this.addListener(mxEvent.TAP_AND_HOLD,mxUtils.bind(this,
+function(b,d){if(!mxEvent.isMultiTouchEvent(d)){var c=d.getProperty("event"),g=d.getProperty("cell");null==g?(c=mxUtils.convertPoint(this.container,mxEvent.getClientX(c),mxEvent.getClientY(c)),t.start(c.x,c.y)):null!=N?this.addSelectionCells(N):1<this.getSelectionCount()&&this.isCellSelected(g)&&this.removeSelectionCell(g);N=null;d.consume()}}));this.connectionHandler.selectCells=function(b,d){this.graph.setSelectionCell(d||b)};this.connectionHandler.constraintHandler.isStateIgnored=function(b,d){var c=
+b.view.graph;return d&&(c.isCellSelected(b.cell)||c.isTableRow(b.cell)&&c.selectionCellsHandler.isHandled(c.model.getParent(b.cell)))};this.selectionModel.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var b=this.connectionHandler.constraintHandler;null!=b.currentFocus&&b.isStateIgnored(b.currentFocus,!0)&&(b.currentFocus=null,b.constraints=null,b.destroyIcons());b.destroyFocusHighlight()}));Graph.touchStyle&&this.initTouch();var M=this.updateMouseEvent;this.updateMouseEvent=function(b){b=
+M.apply(this,arguments);null!=b.state&&this.isCellLocked(b.getCell())&&(b.state=null);return b}}this.currentTranslate=new mxPoint(0,0)};Graph.touchStyle=mxClient.IS_TOUCH||mxClient.IS_FF&&mxClient.IS_WIN||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints||null==window.urlParams||"1"==urlParams.touch;Graph.fileSupport=null!=window.File&&null!=window.FileReader&&null!=window.FileList&&(null==window.urlParams||"0"!=urlParams.filesupport);Graph.translateDiagram="1"==urlParams["translate-diagram"];
Graph.diagramLanguage=null!=urlParams["diagram-language"]?urlParams["diagram-language"]:mxClient.language;Graph.lineJumpsEnabled=!0;Graph.defaultJumpSize=6;Graph.zoomWheel=!1;Graph.minTableColumnWidth=20;Graph.minTableRowHeight=20;Graph.foreignObjectWarningText="Text is not SVG - cannot display";Graph.foreignObjectWarningLink="https://www.diagrams.net/doc/faq/svg-export-text-problems";Graph.xmlDeclaration='<?xml version="1.0" encoding="UTF-8"?>';Graph.svgDoctype='<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">';
Graph.svgFileComment="\x3c!-- Do not edit this file with editors other than diagrams.net --\x3e";Graph.pasteStyles="rounded shadow dashed dashPattern fontFamily fontSource fontSize fontColor fontStyle align verticalAlign strokeColor strokeWidth fillColor gradientColor swimlaneFillColor textOpacity gradientDirection glass labelBackgroundColor labelBorderColor opacity spacing spacingTop spacingLeft spacingBottom spacingRight endFill endArrow endSize targetPerimeterSpacing startFill startArrow startSize sourcePerimeterSpacing arcSize comic sketch fillWeight hachureGap hachureAngle jiggle disableMultiStroke disableMultiStrokeFill fillStyle curveFitting simplification comicStyle".split(" ");
Graph.createOffscreenGraph=function(b){var c=new Graph(document.createElement("div"));c.stylesheet.styles=mxUtils.clone(b.styles);c.resetViewOnRootChange=!1;c.setConnectable(!1);c.gridEnabled=!1;c.autoScroll=!1;c.setTooltips(!1);c.setEnabled(!1);c.container.style.visibility="hidden";c.container.style.position="absolute";c.container.style.overflow="hidden";c.container.style.height="1px";c.container.style.width="1px";return c};
@@ -2436,8 +2436,8 @@ Graph.prototype.setGridSize=function(b){this.gridSize=b;this.fireEvent(new mxEve
Graph.prototype.getGlobalVariable=function(b){var c=null;"date"==b?c=(new Date).toLocaleDateString():"time"==b?c=(new Date).toLocaleTimeString():"timestamp"==b?c=(new Date).toLocaleString():"date{"==b.substring(0,5)&&(b=b.substring(5,b.length-1),c=this.formatDate(new Date,b));return c};
Graph.prototype.formatDate=function(b,c,e){null==this.dateFormatCache&&(this.dateFormatCache={i18n:{dayNames:"Sun Mon Tue Wed Thu Fri Sat Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),monthNames:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec January February March April May June July August September October November December".split(" ")},masks:{"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",
shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"}});var f=this.dateFormatCache,n=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,l=/[^-+\dA-Z]/g,q=function(b,d){b=String(b);for(d=d||2;b.length<d;)b="0"+b;return b};1!=arguments.length||"[object String]"!=Object.prototype.toString.call(b)||
-/\d/.test(b)||(c=b,b=void 0);b=b?new Date(b):new Date;if(isNaN(b))throw SyntaxError("invalid date");c=String(f.masks[c]||c||f.masks["default"]);"UTC:"==c.slice(0,4)&&(c=c.slice(4),e=!0);var d=e?"getUTC":"get",k=b[d+"Date"](),g=b[d+"Day"](),p=b[d+"Month"](),m=b[d+"FullYear"](),v=b[d+"Hours"](),u=b[d+"Minutes"](),t=b[d+"Seconds"](),d=b[d+"Milliseconds"](),z=e?0:b.getTimezoneOffset(),y={d:k,dd:q(k),ddd:f.i18n.dayNames[g],dddd:f.i18n.dayNames[g+7],m:p+1,mm:q(p+1),mmm:f.i18n.monthNames[p],mmmm:f.i18n.monthNames[p+
-12],yy:String(m).slice(2),yyyy:m,h:v%12||12,hh:q(v%12||12),H:v,HH:q(v),M:u,MM:q(u),s:t,ss:q(t),l:q(d,3),L:q(99<d?Math.round(d/10):d),t:12>v?"a":"p",tt:12>v?"am":"pm",T:12>v?"A":"P",TT:12>v?"AM":"PM",Z:e?"UTC":(String(b).match(n)||[""]).pop().replace(l,""),o:(0<z?"-":"+")+q(100*Math.floor(Math.abs(z)/60)+Math.abs(z)%60,4),S:["th","st","nd","rd"][3<k%10?0:(10!=k%100-k%10)*k%10]};return c.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(b){return b in y?y[b]:b.slice(1,
+/\d/.test(b)||(c=b,b=void 0);b=b?new Date(b):new Date;if(isNaN(b))throw SyntaxError("invalid date");c=String(f.masks[c]||c||f.masks["default"]);"UTC:"==c.slice(0,4)&&(c=c.slice(4),e=!0);var d=e?"getUTC":"get",k=b[d+"Date"](),g=b[d+"Day"](),p=b[d+"Month"](),m=b[d+"FullYear"](),u=b[d+"Hours"](),v=b[d+"Minutes"](),t=b[d+"Seconds"](),d=b[d+"Milliseconds"](),z=e?0:b.getTimezoneOffset(),y={d:k,dd:q(k),ddd:f.i18n.dayNames[g],dddd:f.i18n.dayNames[g+7],m:p+1,mm:q(p+1),mmm:f.i18n.monthNames[p],mmmm:f.i18n.monthNames[p+
+12],yy:String(m).slice(2),yyyy:m,h:u%12||12,hh:q(u%12||12),H:u,HH:q(u),M:v,MM:q(v),s:t,ss:q(t),l:q(d,3),L:q(99<d?Math.round(d/10):d),t:12>u?"a":"p",tt:12>u?"am":"pm",T:12>u?"A":"P",TT:12>u?"AM":"PM",Z:e?"UTC":(String(b).match(n)||[""]).pop().replace(l,""),o:(0<z?"-":"+")+q(100*Math.floor(Math.abs(z)/60)+Math.abs(z)%60,4),S:["th","st","nd","rd"][3<k%10?0:(10!=k%100-k%10)*k%10]};return c.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(b){return b in y?y[b]:b.slice(1,
b.length-1)})};Graph.prototype.getLayerForCells=function(b){var c=null;if(0<b.length){for(c=b[0];!this.model.isLayer(c);)c=this.model.getParent(c);for(var e=1;e<b.length;e++)if(!this.model.isAncestor(c,b[e])){c=null;break}}return c};
Graph.prototype.createLayersDialog=function(b,c){var e=document.createElement("div");e.style.position="absolute";for(var f=this.getModel(),n=f.getChildCount(f.root),l=0;l<n;l++)mxUtils.bind(this,function(l){function d(){f.isVisible(l)?(p.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(g,75)):(p.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(g,25))}var k=this.convertValueToString(l)||mxResources.get("background")||"Background",g=document.createElement("div");g.style.overflow=
"hidden";g.style.textOverflow="ellipsis";g.style.padding="2px";g.style.whiteSpace="nowrap";g.style.cursor="pointer";g.setAttribute("title",mxResources.get(f.isVisible(l)?"hideIt":"show",[k]));var p=document.createElement("img");p.setAttribute("draggable","false");p.setAttribute("align","absmiddle");p.setAttribute("border","0");p.style.position="relative";p.style.width="16px";p.style.padding="0px 6px 0 4px";c&&(p.style.filter="invert(100%)",p.style.top="-2px");g.appendChild(p);mxUtils.write(g,k);e.appendChild(g);
@@ -2451,12 +2451,12 @@ Graph.prototype.snapCellsToGrid=function(b,c){this.getModel().beginUpdate();try{
n)}}}finally{this.getModel().endUpdate()}};Graph.prototype.selectCellsForConnectVertex=function(b,c,e){2==b.length&&this.model.isVertex(b[1])?(this.setSelectionCell(b[1]),this.scrollCellToVisible(b[1]),null!=e&&(mxEvent.isTouchEvent(c)?e.update(e.getState(this.view.getState(b[1]))):e.reset())):this.setSelectionCells(b)};
Graph.prototype.isCloneConnectSource=function(b){var c=null;null!=this.layoutManager&&(c=this.layoutManager.getLayout(this.model.getParent(b)));return this.isTableRow(b)||this.isTableCell(b)||null!=c&&c.constructor==mxStackLayout};
Graph.prototype.connectVertex=function(b,c,e,f,n,l,q,d){l=l?l:!1;if(b.geometry.relative&&this.model.isEdge(b.parent))return[];for(;b.geometry.relative&&this.model.isVertex(b.parent);)b=b.parent;var k=this.isCloneConnectSource(b),g=k?b:this.getCompositeParent(b),p=b.geometry.relative&&null!=b.parent.geometry?new mxPoint(b.parent.geometry.width*b.geometry.x,b.parent.geometry.height*b.geometry.y):new mxPoint(g.geometry.x,g.geometry.y);c==mxConstants.DIRECTION_NORTH?(p.x+=g.geometry.width/2,p.y-=e):c==
-mxConstants.DIRECTION_SOUTH?(p.x+=g.geometry.width/2,p.y+=g.geometry.height+e):(p.x=c==mxConstants.DIRECTION_WEST?p.x-e:p.x+(g.geometry.width+e),p.y+=g.geometry.height/2);var m=this.view.getState(this.model.getParent(b));e=this.view.scale;var v=this.view.translate,g=v.x*e,v=v.y*e;null!=m&&this.model.isVertex(m.cell)&&(g=m.x,v=m.y);this.model.isVertex(b.parent)&&b.geometry.relative&&(p.x+=b.parent.geometry.x,p.y+=b.parent.geometry.y);l=l?null:(new mxRectangle(g+p.x*e,v+p.y*e)).grow(40*e);l=null!=l?
-this.getCells(0,0,0,0,null,null,l,null,!0):null;var m=this.view.getState(b),u=null,t=null;if(null!=l){l=l.reverse();for(var z=0;z<l.length;z++)if(!this.isCellLocked(l[z])&&!this.model.isEdge(l[z])&&l[z]!=b)if(!this.model.isAncestor(b,l[z])&&this.isContainer(l[z])&&(null==u||l[z]==this.model.getParent(b)))u=l[z];else if(null==t&&this.isCellConnectable(l[z])&&!this.model.isAncestor(l[z],b)&&!this.isSwimlane(l[z])){var y=this.view.getState(l[z]);null==m||null==y||mxUtils.intersects(m,y)||(t=l[z])}}var F=
-!mxEvent.isShiftDown(f)||mxEvent.isControlDown(f)||n;F&&("1"!=urlParams.sketch||n)&&(c==mxConstants.DIRECTION_NORTH?p.y-=b.geometry.height/2:c==mxConstants.DIRECTION_SOUTH?p.y+=b.geometry.height/2:p.x=c==mxConstants.DIRECTION_WEST?p.x-b.geometry.width/2:p.x+b.geometry.width/2);var D=[],E=t,t=u;n=mxUtils.bind(this,function(g){if(null==q||null!=g||null==t&&k){this.model.beginUpdate();try{if(null==E&&F){var e=this.getAbsoluteParent(null!=g?g:b),e=k?b:this.getCompositeParent(e);E=null!=g?g:this.duplicateCells([e],
-!1)[0];null!=g&&this.addCells([E],this.model.getParent(b),null,null,null,!0);var l=this.getCellGeometry(E);null!=l&&(null!=g&&"1"==urlParams.sketch&&(c==mxConstants.DIRECTION_NORTH?p.y-=l.height/2:c==mxConstants.DIRECTION_SOUTH?p.y+=l.height/2:p.x=c==mxConstants.DIRECTION_WEST?p.x-l.width/2:p.x+l.width/2),l.x=p.x-l.width/2,l.y=p.y-l.height/2);null!=u?(this.addCells([E],u,null,null,null,!0),t=null):F&&!k&&this.addCells([E],this.getDefaultParent(),null,null,null,!0)}var m=mxEvent.isControlDown(f)&&
-mxEvent.isShiftDown(f)&&F||null==t&&k?null:this.insertEdge(this.model.getParent(b),null,"",b,E,this.createCurrentEdgeStyle());if(null!=m&&this.connectionHandler.insertBeforeSource){var v=null;for(g=b;null!=g.parent&&null!=g.geometry&&g.geometry.relative&&g.parent!=m.parent;)g=this.model.getParent(g);null!=g&&null!=g.parent&&g.parent==m.parent&&(v=g.parent.getIndex(g),this.model.add(g.parent,m,v))}null==t&&null!=E&&null!=b.parent&&k&&c==mxConstants.DIRECTION_WEST&&(v=b.parent.getIndex(b),this.model.add(b.parent,
-E,v));null!=m&&D.push(m);null==t&&null!=E&&D.push(E);null==E&&null!=m&&m.geometry.setTerminalPoint(p,!1);null!=m&&this.fireEvent(new mxEventObject("cellsInserted","cells",[m]))}finally{this.model.endUpdate()}}if(null!=d)d(D);else return D});if(null==q||null!=E||!F||null==t&&k)return n(E);q(g+p.x*e,v+p.y*e,n)};
+mxConstants.DIRECTION_SOUTH?(p.x+=g.geometry.width/2,p.y+=g.geometry.height+e):(p.x=c==mxConstants.DIRECTION_WEST?p.x-e:p.x+(g.geometry.width+e),p.y+=g.geometry.height/2);var m=this.view.getState(this.model.getParent(b));e=this.view.scale;var u=this.view.translate,g=u.x*e,u=u.y*e;null!=m&&this.model.isVertex(m.cell)&&(g=m.x,u=m.y);this.model.isVertex(b.parent)&&b.geometry.relative&&(p.x+=b.parent.geometry.x,p.y+=b.parent.geometry.y);l=l?null:(new mxRectangle(g+p.x*e,u+p.y*e)).grow(40*e);l=null!=l?
+this.getCells(0,0,0,0,null,null,l,null,!0):null;var m=this.view.getState(b),v=null,t=null;if(null!=l){l=l.reverse();for(var z=0;z<l.length;z++)if(!this.isCellLocked(l[z])&&!this.model.isEdge(l[z])&&l[z]!=b)if(!this.model.isAncestor(b,l[z])&&this.isContainer(l[z])&&(null==v||l[z]==this.model.getParent(b)))v=l[z];else if(null==t&&this.isCellConnectable(l[z])&&!this.model.isAncestor(l[z],b)&&!this.isSwimlane(l[z])){var y=this.view.getState(l[z]);null==m||null==y||mxUtils.intersects(m,y)||(t=l[z])}}var I=
+!mxEvent.isShiftDown(f)||mxEvent.isControlDown(f)||n;I&&("1"!=urlParams.sketch||n)&&(c==mxConstants.DIRECTION_NORTH?p.y-=b.geometry.height/2:c==mxConstants.DIRECTION_SOUTH?p.y+=b.geometry.height/2:p.x=c==mxConstants.DIRECTION_WEST?p.x-b.geometry.width/2:p.x+b.geometry.width/2);var D=[],F=t,t=v;n=mxUtils.bind(this,function(g){if(null==q||null!=g||null==t&&k){this.model.beginUpdate();try{if(null==F&&I){var e=this.getAbsoluteParent(null!=g?g:b),e=k?b:this.getCompositeParent(e);F=null!=g?g:this.duplicateCells([e],
+!1)[0];null!=g&&this.addCells([F],this.model.getParent(b),null,null,null,!0);var l=this.getCellGeometry(F);null!=l&&(null!=g&&"1"==urlParams.sketch&&(c==mxConstants.DIRECTION_NORTH?p.y-=l.height/2:c==mxConstants.DIRECTION_SOUTH?p.y+=l.height/2:p.x=c==mxConstants.DIRECTION_WEST?p.x-l.width/2:p.x+l.width/2),l.x=p.x-l.width/2,l.y=p.y-l.height/2);null!=v?(this.addCells([F],v,null,null,null,!0),t=null):I&&!k&&this.addCells([F],this.getDefaultParent(),null,null,null,!0)}var m=mxEvent.isControlDown(f)&&
+mxEvent.isShiftDown(f)&&I||null==t&&k?null:this.insertEdge(this.model.getParent(b),null,"",b,F,this.createCurrentEdgeStyle());if(null!=m&&this.connectionHandler.insertBeforeSource){var u=null;for(g=b;null!=g.parent&&null!=g.geometry&&g.geometry.relative&&g.parent!=m.parent;)g=this.model.getParent(g);null!=g&&null!=g.parent&&g.parent==m.parent&&(u=g.parent.getIndex(g),this.model.add(g.parent,m,u))}null==t&&null!=F&&null!=b.parent&&k&&c==mxConstants.DIRECTION_WEST&&(u=b.parent.getIndex(b),this.model.add(b.parent,
+F,u));null!=m&&D.push(m);null==t&&null!=F&&D.push(F);null==F&&null!=m&&m.geometry.setTerminalPoint(p,!1);null!=m&&this.fireEvent(new mxEventObject("cellsInserted","cells",[m]))}finally{this.model.endUpdate()}}if(null!=d)d(D);else return D});if(null==q||null!=F||!I||null==t&&k)return n(F);q(g+p.x*e,u+p.y*e,n)};
Graph.prototype.getIndexableText=function(){var b=document.createElement("div"),c=[],e,f;for(f in this.model.cells)if(e=this.model.cells[f],this.model.isVertex(e)||this.model.isEdge(e))this.isHtmlLabel(e)?(b.innerHTML=this.sanitizeHtml(this.getLabel(e)),e=mxUtils.extractTextWithWhitespace([b])):e=this.getLabel(e),e=mxUtils.trim(e.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")),0<e.length&&c.push(e);return c.join(" ")};
Graph.prototype.convertValueToString=function(b){var c=this.model.getValue(b);if(null!=c&&"object"==typeof c){var e=null;if(this.isReplacePlaceholders(b)&&null!=b.getAttribute("placeholder"))for(var c=b.getAttribute("placeholder"),f=b;null==e&&null!=f;)null!=f.value&&"object"==typeof f.value&&(e=f.hasAttribute(c)?null!=f.getAttribute(c)?f.getAttribute(c):"":null),f=this.model.getParent(f);else e=null,Graph.translateDiagram&&null!=Graph.diagramLanguage&&(e=c.getAttribute("label_"+Graph.diagramLanguage)),
null==e&&(e=c.getAttribute("label")||"");return e||""}return mxGraph.prototype.convertValueToString.apply(this,arguments)};Graph.prototype.getLinksForState=function(b){return null!=b&&null!=b.text&&null!=b.text.node?b.text.node.getElementsByTagName("a"):null};Graph.prototype.getLinkForCell=function(b){return null!=b.value&&"object"==typeof b.value?(b=b.value.getAttribute("link"),null!=b&&"javascript:"===b.toLowerCase().substring(0,11)&&(b=b.substring(11)),b):null};
@@ -2520,34 +2520,34 @@ Graph.prototype.setTableValues=function(b,c,e){for(var f=this.model.getChildCell
Graph.prototype.createCrossFunctionalSwimlane=function(b,c,e,f,n,l,q,d,k){e=null!=e?e:120;f=null!=f?f:120;q=null!=q?q:"shape=tableRow;horizontal=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;bottom=0;right=0;dropTarget=0;fontStyle=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;startSize=40;collapsible=0;recursiveResize=0;expand=0;";d=null!=d?d:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;connectable=0;fillColor=none;startSize=40;collapsible=0;recursiveResize=0;expand=0;";
k=null!=k?k:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;connectable=0;fillColor=none;startSize=0;collapsible=0;recursiveResize=0;expand=0;";n=this.createVertex(null,null,null!=n?n:"",0,0,c*e,b*f,null!=l?l:"shape=table;childLayout=tableLayout;"+(null==n?"startSize=0;fillColor=none;":"startSize=40;")+"collapsible=0;recursiveResize=0;expand=0;");l=mxUtils.getValue(this.getCellStyle(n),mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE);n.geometry.width+=l;n.geometry.height+=l;q=this.createVertex(null,
null,"",0,l,c*e+l,f,q);n.insert(this.createParent(q,this.createVertex(null,null,"",l,0,e,f,d),c,e,0));return 1<b?(q.geometry.y=f+l,this.createParent(n,this.createParent(q,this.createVertex(null,null,"",l,0,e,f,k),c,e,0),b-1,0,f)):n};
-Graph.prototype.visitTableCells=function(b,c){for(var e=null,f=this.model.getChildCells(b,!0),n=this.getActualStartSize(b,!0),l=0;l<f.length;l++){for(var q=this.getActualStartSize(f[l],!0),d=this.model.getChildCells(f[l],!0),k=this.getCellStyle(f[l],!0),g=null,p=[],m=0;m<d.length;m++){var v=this.getCellGeometry(d[m]),u={cell:d[m],rospan:1,colspan:1,row:l,col:m,geo:v},v=null!=v.alternateBounds?v.alternateBounds:v;u.point=new mxPoint(v.width+(null!=g?g.point.x:n.x+q.x),v.height+(null!=e&&null!=e[0]?
-e[0].point.y:n.y+q.y));u.actual=u;null!=e&&null!=e[m]&&1<e[m].rowspan?(u.rowspan=e[m].rowspan-1,u.colspan=e[m].colspan,u.actual=e[m].actual):null!=g&&1<g.colspan?(u.rowspan=g.rowspan,u.colspan=g.colspan-1,u.actual=g.actual):(g=this.getCurrentCellStyle(d[m],!0),null!=g&&(u.rowspan=parseInt(g.rowspan||1),u.colspan=parseInt(g.colspan||1)));g=1==mxUtils.getValue(k,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(k,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;c(u,d.length,f.length,
-n.x+(g?q.x:0),n.y+(g?q.y:0));p.push(u);g=u}e=p}};Graph.prototype.getTableLines=function(b,c,e){var f=[],n=[];(c||e)&&this.visitTableCells(b,mxUtils.bind(this,function(b,q,d,k,g){c&&b.row<d-1&&(null==f[b.row]&&(f[b.row]=[new mxPoint(k,b.point.y)]),1<b.rowspan&&f[b.row].push(null),f[b.row].push(b.point));e&&b.col<q-1&&(null==n[b.col]&&(n[b.col]=[new mxPoint(b.point.x,g)]),1<b.colspan&&n[b.col].push(null),n[b.col].push(b.point))}));return f.concat(n)};
+Graph.prototype.visitTableCells=function(b,c){for(var e=null,f=this.model.getChildCells(b,!0),n=this.getActualStartSize(b,!0),l=0;l<f.length;l++){for(var q=this.getActualStartSize(f[l],!0),d=this.model.getChildCells(f[l],!0),k=this.getCellStyle(f[l],!0),g=null,p=[],m=0;m<d.length;m++){var u=this.getCellGeometry(d[m]),v={cell:d[m],rospan:1,colspan:1,row:l,col:m,geo:u},u=null!=u.alternateBounds?u.alternateBounds:u;v.point=new mxPoint(u.width+(null!=g?g.point.x:n.x+q.x),u.height+(null!=e&&null!=e[0]?
+e[0].point.y:n.y+q.y));v.actual=v;null!=e&&null!=e[m]&&1<e[m].rowspan?(v.rowspan=e[m].rowspan-1,v.colspan=e[m].colspan,v.actual=e[m].actual):null!=g&&1<g.colspan?(v.rowspan=g.rowspan,v.colspan=g.colspan-1,v.actual=g.actual):(g=this.getCurrentCellStyle(d[m],!0),null!=g&&(v.rowspan=parseInt(g.rowspan||1),v.colspan=parseInt(g.colspan||1)));g=1==mxUtils.getValue(k,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(k,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;c(v,d.length,f.length,
+n.x+(g?q.x:0),n.y+(g?q.y:0));p.push(v);g=v}e=p}};Graph.prototype.getTableLines=function(b,c,e){var f=[],n=[];(c||e)&&this.visitTableCells(b,mxUtils.bind(this,function(b,q,d,k,g){c&&b.row<d-1&&(null==f[b.row]&&(f[b.row]=[new mxPoint(k,b.point.y)]),1<b.rowspan&&f[b.row].push(null),f[b.row].push(b.point));e&&b.col<q-1&&(null==n[b.col]&&(n[b.col]=[new mxPoint(b.point.x,g)]),1<b.colspan&&n[b.col].push(null),n[b.col].push(b.point))}));return f.concat(n)};
Graph.prototype.isTableCell=function(b){return this.model.isVertex(b)&&this.isTableRow(this.model.getParent(b))};Graph.prototype.isTableRow=function(b){return this.model.isVertex(b)&&this.isTable(this.model.getParent(b))};Graph.prototype.isTable=function(b){b=this.getCellStyle(b);return null!=b&&"tableLayout"==b.childLayout};Graph.prototype.isStack=function(b){b=this.getCellStyle(b);return null!=b&&"stackLayout"==b.childLayout};
Graph.prototype.isStackChild=function(b){return this.model.isVertex(b)&&this.isStack(this.model.getParent(b))};
Graph.prototype.setTableRowHeight=function(b,c,e){e=null!=e?e:!0;var f=this.getModel();f.beginUpdate();try{var n=this.getCellGeometry(b);if(null!=n){n=n.clone();n.height+=c;f.setGeometry(b,n);var l=f.getParent(b),q=f.getChildCells(l,!0);if(!e){var d=mxUtils.indexOf(q,b);if(d<q.length-1){var k=q[d+1],g=this.getCellGeometry(k);null!=g&&(g=g.clone(),g.y+=c,g.height-=c,f.setGeometry(k,g))}}var p=this.getCellGeometry(l);null!=p&&(e||(e=b==q[q.length-1]),e&&(p=p.clone(),p.height+=c,f.setGeometry(l,p)))}}finally{f.endUpdate()}};
Graph.prototype.setTableColumnWidth=function(b,c,e){e=null!=e?e:!1;var f=this.getModel(),n=f.getParent(b),l=f.getParent(n),q=f.getChildCells(n,!0);b=mxUtils.indexOf(q,b);var d=b==q.length-1;f.beginUpdate();try{for(var k=f.getChildCells(l,!0),g=0;g<k.length;g++){var n=k[g],q=f.getChildCells(n,!0),p=q[b],m=this.getCellGeometry(p);null!=m&&(m=m.clone(),m.width+=c,null!=m.alternateBounds&&(m.alternateBounds.width+=c),f.setGeometry(p,m));b<q.length-1&&(p=q[b+1],m=this.getCellGeometry(p),null!=m&&(m=m.clone(),
-m.x+=c,e||(m.width-=c,null!=m.alternateBounds&&(m.alternateBounds.width-=c)),f.setGeometry(p,m)))}if(d||e){var v=this.getCellGeometry(l);null!=v&&(v=v.clone(),v.width+=c,f.setGeometry(l,v))}null!=this.layoutManager&&this.layoutManager.executeLayout(l)}finally{f.endUpdate()}};function TableLayout(b){mxGraphLayout.call(this,b)}TableLayout.prototype=new mxStackLayout;TableLayout.prototype.constructor=TableLayout;TableLayout.prototype.isHorizontal=function(){return!1};
+m.x+=c,e||(m.width-=c,null!=m.alternateBounds&&(m.alternateBounds.width-=c)),f.setGeometry(p,m)))}if(d||e){var u=this.getCellGeometry(l);null!=u&&(u=u.clone(),u.width+=c,f.setGeometry(l,u))}null!=this.layoutManager&&this.layoutManager.executeLayout(l)}finally{f.endUpdate()}};function TableLayout(b){mxGraphLayout.call(this,b)}TableLayout.prototype=new mxStackLayout;TableLayout.prototype.constructor=TableLayout;TableLayout.prototype.isHorizontal=function(){return!1};
TableLayout.prototype.isVertexIgnored=function(b){return!this.graph.getModel().isVertex(b)||!this.graph.isCellVisible(b)};TableLayout.prototype.getSize=function(b,c){for(var e=0,f=0;f<b.length;f++)if(!this.isVertexIgnored(b[f])){var n=this.graph.getCellGeometry(b[f]);null!=n&&(e+=c?n.width:n.height)}return e};
TableLayout.prototype.getRowLayout=function(b,c){for(var e=this.graph.model.getChildCells(b,!0),f=this.graph.getActualStartSize(b,!0),n=this.getSize(e,!0),l=c-f.x-f.width,q=[],f=f.x,d=0;d<e.length;d++){var k=this.graph.getCellGeometry(e[d]);null!=k&&(f+=(null!=k.alternateBounds?k.alternateBounds.width:k.width)*l/n,q.push(Math.round(f)))}return q};
TableLayout.prototype.layoutRow=function(b,c,e,f){var n=this.graph.getModel(),l=n.getChildCells(b,!0);b=this.graph.getActualStartSize(b,!0);var q=b.x,d=0;null!=c&&(c=c.slice(),c.splice(0,0,b.x));for(var k=0;k<l.length;k++){var g=this.graph.getCellGeometry(l[k]);null!=g&&(g=g.clone(),g.y=b.y,g.height=e-b.y-b.height,null!=c?(g.x=c[k],g.width=c[k+1]-g.x,k==l.length-1&&k<c.length-2&&(g.width=f-g.x-b.x-b.width)):(g.x=q,q+=g.width,k==l.length-1?g.width=f-b.x-b.width-d:d+=g.width),g.alternateBounds=new mxRectangle(0,
0,g.width,g.height),n.setGeometry(l[k],g))}return d};
-TableLayout.prototype.execute=function(b){if(null!=b){var c=this.graph.getActualStartSize(b,!0),e=this.graph.getCellGeometry(b),f=this.graph.getCellStyle(b),n="1"==mxUtils.getValue(f,"resizeLastRow","0"),l="1"==mxUtils.getValue(f,"resizeLast","0"),f="1"==mxUtils.getValue(f,"fixedRows","0"),q=this.graph.getModel(),d=0;q.beginUpdate();try{for(var k=e.height-c.y-c.height,g=e.width-c.x-c.width,p=q.getChildCells(b,!0),m=0;m<p.length;m++)q.setVisible(p[m],!0);var v=this.getSize(p,!1);if(0<k&&0<g&&0<p.length&&
-0<v){if(n){var u=this.graph.getCellGeometry(p[p.length-1]);null!=u&&(u=u.clone(),u.height=k-v+u.height,q.setGeometry(p[p.length-1],u))}for(var t=l?null:this.getRowLayout(p[0],g),z=[],y=c.y,m=0;m<p.length;m++)u=this.graph.getCellGeometry(p[m]),null!=u&&(u=u.clone(),u.x=c.x,u.width=g,u.y=Math.round(y),y=n||f?y+u.height:y+u.height/v*k,u.height=Math.round(y)-u.y,q.setGeometry(p[m],u)),d=Math.max(d,this.layoutRow(p[m],t,u.height,g,z));f&&k<v&&(e=e.clone(),e.height=y+c.height,q.setGeometry(b,e));l&&g<d+
+TableLayout.prototype.execute=function(b){if(null!=b){var c=this.graph.getActualStartSize(b,!0),e=this.graph.getCellGeometry(b),f=this.graph.getCellStyle(b),n="1"==mxUtils.getValue(f,"resizeLastRow","0"),l="1"==mxUtils.getValue(f,"resizeLast","0"),f="1"==mxUtils.getValue(f,"fixedRows","0"),q=this.graph.getModel(),d=0;q.beginUpdate();try{for(var k=e.height-c.y-c.height,g=e.width-c.x-c.width,p=q.getChildCells(b,!0),m=0;m<p.length;m++)q.setVisible(p[m],!0);var u=this.getSize(p,!1);if(0<k&&0<g&&0<p.length&&
+0<u){if(n){var v=this.graph.getCellGeometry(p[p.length-1]);null!=v&&(v=v.clone(),v.height=k-u+v.height,q.setGeometry(p[p.length-1],v))}for(var t=l?null:this.getRowLayout(p[0],g),z=[],y=c.y,m=0;m<p.length;m++)v=this.graph.getCellGeometry(p[m]),null!=v&&(v=v.clone(),v.x=c.x,v.width=g,v.y=Math.round(y),y=n||f?y+v.height:y+v.height/u*k,v.height=Math.round(y)-v.y,q.setGeometry(p[m],v)),d=Math.max(d,this.layoutRow(p[m],t,v.height,g,z));f&&k<u&&(e=e.clone(),e.height=y+c.height,q.setGeometry(b,e));l&&g<d+
Graph.minTableColumnWidth&&(e=e.clone(),e.width=d+c.width+c.x+Graph.minTableColumnWidth,q.setGeometry(b,e));this.graph.visitTableCells(b,mxUtils.bind(this,function(b){q.setVisible(b.cell,b.actual.cell==b.cell);if(b.actual.cell!=b.cell){if(b.actual.row==b.row){var d=null!=b.geo.alternateBounds?b.geo.alternateBounds:b.geo;b.actual.geo.width+=d.width}b.actual.col==b.col&&(d=null!=b.geo.alternateBounds?b.geo.alternateBounds:b.geo,b.actual.geo.height+=d.height)}}))}else for(m=0;m<p.length;m++)q.setVisible(p[m],
!1)}finally{q.endUpdate()}}};
(function(){var b=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){b.apply(this,arguments);this.validEdges=[]};var c=mxGraphView.prototype.validateCellState;mxGraphView.prototype.validateCellState=function(b,d){d=null!=d?d:!0;var g=this.getState(b);null!=g&&d&&this.graph.model.isEdge(g.cell)&&null!=g.style&&1!=g.style[mxConstants.STYLE_CURVED]&&!g.invalid&&this.updateLineJumps(g)&&this.graph.cellRenderer.redraw(g,!1,this.isRendering());g=c.apply(this,
arguments);null!=g&&d&&this.graph.model.isEdge(g.cell)&&null!=g.style&&1!=g.style[mxConstants.STYLE_CURVED]&&this.validEdges.push(g);return g};var e=mxShape.prototype.paint;mxShape.prototype.paint=function(){e.apply(this,arguments);if(null!=this.state&&null!=this.node&&this.state.view.graph.enableFlowAnimation&&this.state.view.graph.model.isEdge(this.state.cell)&&"1"==mxUtils.getValue(this.state.style,"flowAnimation","0")){var b=this.node.getElementsByTagName("path");if(1<b.length){"1"!=mxUtils.getValue(this.state.style,
mxConstants.STYLE_DASHED,"0")&&b[1].setAttribute("stroke-dasharray",8*this.state.view.scale);var d=this.state.view.graph.getFlowAnimationStyle();null!=d&&b[1].setAttribute("class",d.getAttribute("id"))}}};var f=mxCellRenderer.prototype.isShapeInvalid;mxCellRenderer.prototype.isShapeInvalid=function(b,d){return f.apply(this,arguments)||null!=b.routedPoints&&null!=d.routedPoints&&!mxUtils.equalPoints(d.routedPoints,b.routedPoints)};var n=mxGraphView.prototype.updateCellState;mxGraphView.prototype.updateCellState=
function(b){n.apply(this,arguments);this.graph.model.isEdge(b.cell)&&1!=b.style[mxConstants.STYLE_CURVED]&&this.updateLineJumps(b)};mxGraphView.prototype.updateLineJumps=function(b){var d=b.absolutePoints;if(Graph.lineJumpsEnabled){var c=null!=b.routedPoints,g=null;if(null!=d&&null!=this.validEdges&&"none"!==mxUtils.getValue(b.style,"jumpStyle","none")){for(var e=function(d,c,e){var k=new mxPoint(c,e);k.type=d;g.push(k);k=null!=b.routedPoints?b.routedPoints[g.length-1]:null;return null==k||k.type!=
-d||k.x!=c||k.y!=e},k=.5*this.scale,c=!1,g=[],f=0;f<d.length-1;f++){for(var l=d[f+1],p=d[f],n=[],q=d[f+2];f<d.length-2&&mxUtils.ptSegDistSq(p.x,p.y,q.x,q.y,l.x,l.y)<1*this.scale*this.scale;)l=q,f++,q=d[f+2];for(var c=e(0,p.x,p.y)||c,N=0;N<this.validEdges.length;N++){var A=this.validEdges[N],G=A.absolutePoints;if(null!=G&&mxUtils.intersects(b,A)&&"1"!=A.style.noJump)for(A=0;A<G.length-1;A++){for(var I=G[A+1],L=G[A],q=G[A+2];A<G.length-2&&mxUtils.ptSegDistSq(L.x,L.y,q.x,q.y,I.x,I.y)<1*this.scale*this.scale;)I=
-q,A++,q=G[A+2];q=mxUtils.intersection(p.x,p.y,l.x,l.y,L.x,L.y,I.x,I.y);if(null!=q&&(Math.abs(q.x-p.x)>k||Math.abs(q.y-p.y)>k)&&(Math.abs(q.x-l.x)>k||Math.abs(q.y-l.y)>k)&&(Math.abs(q.x-L.x)>k||Math.abs(q.y-L.y)>k)&&(Math.abs(q.x-I.x)>k||Math.abs(q.y-I.y)>k)){I=q.x-p.x;L=q.y-p.y;q={distSq:I*I+L*L,x:q.x,y:q.y};for(I=0;I<n.length;I++)if(n[I].distSq>q.distSq){n.splice(I,0,q);q=null;break}null==q||0!=n.length&&n[n.length-1].x===q.x&&n[n.length-1].y===q.y||n.push(q)}}}for(A=0;A<n.length;A++)c=e(1,n[A].x,
-n[A].y)||c}q=d[d.length-1];c=e(0,q.x,q.y)||c}b.routedPoints=g;return c}return!1};var l=mxConnector.prototype.paintLine;mxConnector.prototype.paintLine=function(b,d,c){this.routedPoints=null!=this.state?this.state.routedPoints:null;if(this.outline||null==this.state||null==this.style||null==this.state.routedPoints||0==this.state.routedPoints.length)l.apply(this,arguments);else{var g=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,e=(parseInt(mxUtils.getValue(this.style,
-"jumpSize",Graph.defaultJumpSize))-2)/2+this.strokewidth,k=mxUtils.getValue(this.style,"jumpStyle","none"),f=!0,m=null,p=null,v=[],n=null;b.begin();for(var q=0;q<this.state.routedPoints.length;q++){var A=this.state.routedPoints[q],G=new mxPoint(A.x/this.scale,A.y/this.scale);0==q?G=d[0]:q==this.state.routedPoints.length-1&&(G=d[d.length-1]);var I=!1;if(null!=m&&1==A.type){var L=this.state.routedPoints[q+1],A=L.x/this.scale-G.x,L=L.y/this.scale-G.y,A=A*A+L*L;null==n&&(n=new mxPoint(G.x-m.x,G.y-m.y),
-p=Math.sqrt(n.x*n.x+n.y*n.y),0<p?(n.x=n.x*e/p,n.y=n.y*e/p):n=null);A>e*e&&0<p&&(A=m.x-G.x,L=m.y-G.y,A=A*A+L*L,A>e*e&&(I=new mxPoint(G.x-n.x,G.y-n.y),A=new mxPoint(G.x+n.x,G.y+n.y),v.push(I),this.addPoints(b,v,c,g,!1,null,f),v=0>Math.round(n.x)||0==Math.round(n.x)&&0>=Math.round(n.y)?1:-1,f=!1,"sharp"==k?(b.lineTo(I.x-n.y*v,I.y+n.x*v),b.lineTo(A.x-n.y*v,A.y+n.x*v),b.lineTo(A.x,A.y)):"line"==k?(b.moveTo(I.x+n.y*v,I.y-n.x*v),b.lineTo(I.x-n.y*v,I.y+n.x*v),b.moveTo(A.x-n.y*v,A.y+n.x*v),b.lineTo(A.x+n.y*
-v,A.y-n.x*v),b.moveTo(A.x,A.y)):"arc"==k?(v*=1.3,b.curveTo(I.x-n.y*v,I.y+n.x*v,A.x-n.y*v,A.y+n.x*v,A.x,A.y)):(b.moveTo(A.x,A.y),f=!0),v=[A],I=!0))}else n=null;I||(v.push(G),m=G)}this.addPoints(b,v,c,g,!1,null,f);b.stroke()}};var q=mxGraphView.prototype.getFixedTerminalPoint;mxGraphView.prototype.getFixedTerminalPoint=function(b,d,c,g){return null!=d&&"centerPerimeter"==d.style[mxConstants.STYLE_PERIMETER]?new mxPoint(d.getCenterX(),d.getCenterY()):q.apply(this,arguments)};var d=mxGraphView.prototype.updateFloatingTerminalPoint;
-mxGraphView.prototype.updateFloatingTerminalPoint=function(b,c,g,e){if(null==c||null==b||"1"!=c.style.snapToPoint&&"1"!=b.style.snapToPoint)d.apply(this,arguments);else{c=this.getTerminalPort(b,c,e);var k=this.getNextPoint(b,g,e),f=this.graph.isOrthogonal(b),l=mxUtils.toRadians(Number(c.style[mxConstants.STYLE_ROTATION]||"0")),m=new mxPoint(c.getCenterX(),c.getCenterY());if(0!=l)var p=Math.cos(-l),v=Math.sin(-l),k=mxUtils.getRotatedPoint(k,p,v,m);p=parseFloat(b.style[mxConstants.STYLE_PERIMETER_SPACING]||
-0);p+=parseFloat(b.style[e?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);k=this.getPerimeterPoint(c,k,0==l&&f,p);0!=l&&(p=Math.cos(l),v=Math.sin(l),k=mxUtils.getRotatedPoint(k,p,v,m));b.setAbsoluteTerminalPoint(this.snapToAnchorPoint(b,c,g,e,k),e)}};mxGraphView.prototype.snapToAnchorPoint=function(b,d,c,g,e){if(null!=d&&null!=b){b=this.graph.getAllConnectionConstraints(d);g=c=null;if(null!=b)for(var k=0;k<b.length;k++){var f=this.graph.getConnectionPoint(d,
+d||k.x!=c||k.y!=e},k=.5*this.scale,c=!1,g=[],f=0;f<d.length-1;f++){for(var l=d[f+1],p=d[f],n=[],q=d[f+2];f<d.length-2&&mxUtils.ptSegDistSq(p.x,p.y,q.x,q.y,l.x,l.y)<1*this.scale*this.scale;)l=q,f++,q=d[f+2];for(var c=e(0,p.x,p.y)||c,O=0;O<this.validEdges.length;O++){var B=this.validEdges[O],G=B.absolutePoints;if(null!=G&&mxUtils.intersects(b,B)&&"1"!=B.style.noJump)for(B=0;B<G.length-1;B++){for(var H=G[B+1],L=G[B],q=G[B+2];B<G.length-2&&mxUtils.ptSegDistSq(L.x,L.y,q.x,q.y,H.x,H.y)<1*this.scale*this.scale;)H=
+q,B++,q=G[B+2];q=mxUtils.intersection(p.x,p.y,l.x,l.y,L.x,L.y,H.x,H.y);if(null!=q&&(Math.abs(q.x-p.x)>k||Math.abs(q.y-p.y)>k)&&(Math.abs(q.x-l.x)>k||Math.abs(q.y-l.y)>k)&&(Math.abs(q.x-L.x)>k||Math.abs(q.y-L.y)>k)&&(Math.abs(q.x-H.x)>k||Math.abs(q.y-H.y)>k)){H=q.x-p.x;L=q.y-p.y;q={distSq:H*H+L*L,x:q.x,y:q.y};for(H=0;H<n.length;H++)if(n[H].distSq>q.distSq){n.splice(H,0,q);q=null;break}null==q||0!=n.length&&n[n.length-1].x===q.x&&n[n.length-1].y===q.y||n.push(q)}}}for(B=0;B<n.length;B++)c=e(1,n[B].x,
+n[B].y)||c}q=d[d.length-1];c=e(0,q.x,q.y)||c}b.routedPoints=g;return c}return!1};var l=mxConnector.prototype.paintLine;mxConnector.prototype.paintLine=function(b,d,c){this.routedPoints=null!=this.state?this.state.routedPoints:null;if(this.outline||null==this.state||null==this.style||null==this.state.routedPoints||0==this.state.routedPoints.length)l.apply(this,arguments);else{var g=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,e=(parseInt(mxUtils.getValue(this.style,
+"jumpSize",Graph.defaultJumpSize))-2)/2+this.strokewidth,k=mxUtils.getValue(this.style,"jumpStyle","none"),f=!0,m=null,p=null,u=[],n=null;b.begin();for(var q=0;q<this.state.routedPoints.length;q++){var B=this.state.routedPoints[q],G=new mxPoint(B.x/this.scale,B.y/this.scale);0==q?G=d[0]:q==this.state.routedPoints.length-1&&(G=d[d.length-1]);var H=!1;if(null!=m&&1==B.type){var L=this.state.routedPoints[q+1],B=L.x/this.scale-G.x,L=L.y/this.scale-G.y,B=B*B+L*L;null==n&&(n=new mxPoint(G.x-m.x,G.y-m.y),
+p=Math.sqrt(n.x*n.x+n.y*n.y),0<p?(n.x=n.x*e/p,n.y=n.y*e/p):n=null);B>e*e&&0<p&&(B=m.x-G.x,L=m.y-G.y,B=B*B+L*L,B>e*e&&(H=new mxPoint(G.x-n.x,G.y-n.y),B=new mxPoint(G.x+n.x,G.y+n.y),u.push(H),this.addPoints(b,u,c,g,!1,null,f),u=0>Math.round(n.x)||0==Math.round(n.x)&&0>=Math.round(n.y)?1:-1,f=!1,"sharp"==k?(b.lineTo(H.x-n.y*u,H.y+n.x*u),b.lineTo(B.x-n.y*u,B.y+n.x*u),b.lineTo(B.x,B.y)):"line"==k?(b.moveTo(H.x+n.y*u,H.y-n.x*u),b.lineTo(H.x-n.y*u,H.y+n.x*u),b.moveTo(B.x-n.y*u,B.y+n.x*u),b.lineTo(B.x+n.y*
+u,B.y-n.x*u),b.moveTo(B.x,B.y)):"arc"==k?(u*=1.3,b.curveTo(H.x-n.y*u,H.y+n.x*u,B.x-n.y*u,B.y+n.x*u,B.x,B.y)):(b.moveTo(B.x,B.y),f=!0),u=[B],H=!0))}else n=null;H||(u.push(G),m=G)}this.addPoints(b,u,c,g,!1,null,f);b.stroke()}};var q=mxGraphView.prototype.getFixedTerminalPoint;mxGraphView.prototype.getFixedTerminalPoint=function(b,d,c,g){return null!=d&&"centerPerimeter"==d.style[mxConstants.STYLE_PERIMETER]?new mxPoint(d.getCenterX(),d.getCenterY()):q.apply(this,arguments)};var d=mxGraphView.prototype.updateFloatingTerminalPoint;
+mxGraphView.prototype.updateFloatingTerminalPoint=function(b,c,g,e){if(null==c||null==b||"1"!=c.style.snapToPoint&&"1"!=b.style.snapToPoint)d.apply(this,arguments);else{c=this.getTerminalPort(b,c,e);var k=this.getNextPoint(b,g,e),f=this.graph.isOrthogonal(b),l=mxUtils.toRadians(Number(c.style[mxConstants.STYLE_ROTATION]||"0")),m=new mxPoint(c.getCenterX(),c.getCenterY());if(0!=l)var p=Math.cos(-l),u=Math.sin(-l),k=mxUtils.getRotatedPoint(k,p,u,m);p=parseFloat(b.style[mxConstants.STYLE_PERIMETER_SPACING]||
+0);p+=parseFloat(b.style[e?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);k=this.getPerimeterPoint(c,k,0==l&&f,p);0!=l&&(p=Math.cos(l),u=Math.sin(l),k=mxUtils.getRotatedPoint(k,p,u,m));b.setAbsoluteTerminalPoint(this.snapToAnchorPoint(b,c,g,e,k),e)}};mxGraphView.prototype.snapToAnchorPoint=function(b,d,c,g,e){if(null!=d&&null!=b){b=this.graph.getAllConnectionConstraints(d);g=c=null;if(null!=b)for(var k=0;k<b.length;k++){var f=this.graph.getConnectionPoint(d,
b[k]);if(null!=f){var l=(f.x-e.x)*(f.x-e.x)+(f.y-e.y)*(f.y-e.y);if(null==g||l<g)c=f,g=l}}null!=c&&(e=c)}return e};var k=mxStencil.prototype.evaluateTextAttribute;mxStencil.prototype.evaluateTextAttribute=function(b,d,c){var g=k.apply(this,arguments);"1"==b.getAttribute("placeholders")&&null!=c.state&&(g=c.state.view.graph.replacePlaceholders(c.state.cell,g));return g};var g=mxCellRenderer.prototype.createShape;mxCellRenderer.prototype.createShape=function(b){if(null!=b.style&&"undefined"!==typeof pako){var d=
mxUtils.getValue(b.style,mxConstants.STYLE_SHAPE,null);if(null!=d&&"string"===typeof d&&"stencil("==d.substring(0,8))try{var c=d.substring(8,d.length-1),e=mxUtils.parseXml(Graph.decompress(c));return new mxShape(new mxStencil(e.documentElement))}catch(t){null!=window.console&&console.log("Error in shape: "+t)}}return g.apply(this,arguments)}})();mxStencilRegistry.libraries={};mxStencilRegistry.dynamicLoading=!0;mxStencilRegistry.allowEval=!0;mxStencilRegistry.packages=[];
mxStencilRegistry.filesLoaded={};
@@ -2572,32 +2572,32 @@ l.slice();this.model.beginUpdate();try{if(1!=l.length||this.isCellLocked(this.ge
var x=this.getBoundingBoxFromGeometry(b,!0);null!=x&&this.moveCells(b,d-x.x,c-x.y)}}finally{this.model.endUpdate()}}return b};Graph.prototype.encodeCells=function(b){for(var d={},c=this.cloneCells(b,null,d),g=new mxDictionary,e=0;e<b.length;e++)g.put(b[e],!0);for(var k=new mxCodec,f=new mxGraphModel,l=f.getChildAt(f.getRoot(),0),e=0;e<c.length;e++){f.add(l,c[e]);var m=this.view.getState(b[e]);if(null!=m){var p=this.getCellGeometry(c[e]);null!=p&&p.relative&&!this.model.isEdge(b[e])&&null==g.get(this.model.getParent(b[e]))&&
(p.offset=null,p.relative=!1,p.x=m.x/m.view.scale-m.view.translate.x,p.y=m.y/m.view.scale-m.view.translate.y)}}this.updateCustomLinks(this.createCellMapping(d,this.createCellLookup(b)),c);return k.encode(f)};Graph.prototype.isSwimlane=function(b,d){var c=null;null==b||this.model.isEdge(b)||this.model.getParent(b)==this.model.getRoot()||(c=this.getCurrentCellStyle(b,d)[mxConstants.STYLE_SHAPE]);return c==mxConstants.SHAPE_SWIMLANE||"table"==c||"tableRow"==c};var d=Graph.prototype.isExtendParent;Graph.prototype.isExtendParent=
function(b){var c=this.model.getParent(b);if(null!=c){var g=this.getCurrentCellStyle(c);if(null!=g.expand)return"0"!=g.expand}return d.apply(this,arguments)&&(null==c||!this.isTable(c))};var k=Graph.prototype.splitEdge;Graph.prototype.splitEdge=function(b,d,c,g,e,f,l,m){null==m&&(m=this.model.getParent(b),this.isTable(m)||this.isTableRow(m))&&(m=this.getCellAt(f,l,null,!0,!1));c=null;this.model.beginUpdate();try{c=k.apply(this,[b,d,c,g,e,f,l,m]);this.model.setValue(c,"");var p=this.getChildCells(c,
-!0);for(d=0;d<p.length;d++){var x=this.getCellGeometry(p[d]);null!=x&&x.relative&&0<x.x&&this.model.remove(p[d])}var v=this.getChildCells(b,!0);for(d=0;d<v.length;d++)x=this.getCellGeometry(v[d]),null!=x&&x.relative&&0>=x.x&&this.model.remove(v[d]);this.setCellStyles(mxConstants.STYLE_TARGET_PERIMETER_SPACING,null,[c]);this.setCellStyles(mxConstants.STYLE_ENDARROW,mxConstants.NONE,[c]);this.setCellStyles(mxConstants.STYLE_SOURCE_PERIMETER_SPACING,null,[b]);this.setCellStyles(mxConstants.STYLE_STARTARROW,
-mxConstants.NONE,[b]);var n=this.model.getTerminal(c,!1);if(null!=n){var ba=this.getCurrentCellStyle(n);null!=ba&&"1"==ba.snapToPoint&&(this.setCellStyles(mxConstants.STYLE_EXIT_X,null,[b]),this.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[b]),this.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[c]),this.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[c]))}}finally{this.model.endUpdate()}return c};var g=Graph.prototype.selectCell;Graph.prototype.selectCell=function(b,d,c){if(d||c)g.apply(this,arguments);
+!0);for(d=0;d<p.length;d++){var x=this.getCellGeometry(p[d]);null!=x&&x.relative&&0<x.x&&this.model.remove(p[d])}var u=this.getChildCells(b,!0);for(d=0;d<u.length;d++)x=this.getCellGeometry(u[d]),null!=x&&x.relative&&0>=x.x&&this.model.remove(u[d]);this.setCellStyles(mxConstants.STYLE_TARGET_PERIMETER_SPACING,null,[c]);this.setCellStyles(mxConstants.STYLE_ENDARROW,mxConstants.NONE,[c]);this.setCellStyles(mxConstants.STYLE_SOURCE_PERIMETER_SPACING,null,[b]);this.setCellStyles(mxConstants.STYLE_STARTARROW,
+mxConstants.NONE,[b]);var n=this.model.getTerminal(c,!1);if(null!=n){var Z=this.getCurrentCellStyle(n);null!=Z&&"1"==Z.snapToPoint&&(this.setCellStyles(mxConstants.STYLE_EXIT_X,null,[b]),this.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[b]),this.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[c]),this.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[c]))}}finally{this.model.endUpdate()}return c};var g=Graph.prototype.selectCell;Graph.prototype.selectCell=function(b,d,c){if(d||c)g.apply(this,arguments);
else{var e=this.getSelectionCell(),k=null,f=[],l=mxUtils.bind(this,function(d){if(null!=this.view.getState(d)&&(this.model.isVertex(d)||this.model.isEdge(d)))if(f.push(d),d==e)k=f.length-1;else if(b&&null==e&&0<f.length||null!=k&&b&&f.length>k||!b&&0<k)return;for(var c=0;c<this.model.getChildCount(d);c++)l(this.model.getChildAt(d,c))});l(this.model.root);0<f.length&&(k=null!=k?mxUtils.mod(k+(b?1:-1),f.length):0,this.setSelectionCell(f[k]))}};Graph.prototype.swapUmlLifelines=function(b,d){var c=!1;
if(null!=d&&1==b.length){var g=this.view.getState(d),e=this.view.getState(b[0]);if(null!=g&&null!=e&&"umlLifeline"==g.style.shape&&"umlLifeline"==e.style.shape&&(e=this.getCellGeometry(d),g=this.getCellGeometry(b[0]),null!=e&&null!=g)){c=e.clone();e=g.clone();e.x=c.x;e.y=c.y;c.x=g.x;c.y=g.y;this.model.beginUpdate();try{this.model.setGeometry(d,c),this.model.setGeometry(b[0],e)}finally{this.model.endUpdate()}c=!0}}return c};var p=Graph.prototype.moveCells;Graph.prototype.moveCells=function(b,d,c,g,
-e,k,f){if(!g&&this.swapUmlLifelines(b,e))return b;f=null!=f?f:{};if(this.isTable(e)){for(var l=[],m=0;m<b.length;m++)this.isTable(b[m])?l=l.concat(this.model.getChildCells(b[m],!0).reverse()):l.push(b[m]);b=l}this.model.beginUpdate();try{l=[];for(m=0;m<b.length;m++)if(null!=e&&this.isTableRow(b[m])){var x=this.model.getParent(b[m]),v=this.getCellGeometry(b[m]);this.isTable(x)&&l.push(x);if(null!=x&&null!=v&&this.isTable(x)&&this.isTable(e)&&(g||x!=e)){if(!g){var n=this.getCellGeometry(x);null!=n&&
-(n=n.clone(),n.height-=v.height,this.model.setGeometry(x,n))}n=this.getCellGeometry(e);null!=n&&(n=n.clone(),n.height+=v.height,this.model.setGeometry(e,n));var t=this.model.getChildCells(e,!0);if(0<t.length){b[m]=g?this.cloneCell(b[m]):b[m];var ba=this.model.getChildCells(b[m],!0),u=this.model.getChildCells(t[0],!0),y=u.length-ba.length;if(0<y)for(var C=0;C<y;C++){var z=this.cloneCell(ba[ba.length-1]);null!=z&&(z.value="",this.model.add(b[m],z))}else if(0>y)for(C=0;C>y;C--)this.model.remove(ba[ba.length+
-C-1]);ba=this.model.getChildCells(b[m],!0);for(C=0;C<u.length;C++){var J=this.getCellGeometry(u[C]),na=this.getCellGeometry(ba[C]);null!=J&&null!=na&&(na=na.clone(),na.width=J.width,this.model.setGeometry(ba[C],na))}}}}for(var q=p.apply(this,arguments),m=0;m<l.length;m++)!g&&this.model.contains(l[m])&&0==this.model.getChildCount(l[m])&&this.model.remove(l[m]);g&&this.updateCustomLinks(this.createCellMapping(f,this.createCellLookup(b)),q)}finally{this.model.endUpdate()}return q};var m=Graph.prototype.removeCells;
+e,k,f){if(!g&&this.swapUmlLifelines(b,e))return b;f=null!=f?f:{};if(this.isTable(e)){for(var l=[],m=0;m<b.length;m++)this.isTable(b[m])?l=l.concat(this.model.getChildCells(b[m],!0).reverse()):l.push(b[m]);b=l}this.model.beginUpdate();try{l=[];for(m=0;m<b.length;m++)if(null!=e&&this.isTableRow(b[m])){var x=this.model.getParent(b[m]),u=this.getCellGeometry(b[m]);this.isTable(x)&&l.push(x);if(null!=x&&null!=u&&this.isTable(x)&&this.isTable(e)&&(g||x!=e)){if(!g){var n=this.getCellGeometry(x);null!=n&&
+(n=n.clone(),n.height-=u.height,this.model.setGeometry(x,n))}n=this.getCellGeometry(e);null!=n&&(n=n.clone(),n.height+=u.height,this.model.setGeometry(e,n));var Z=this.model.getChildCells(e,!0);if(0<Z.length){b[m]=g?this.cloneCell(b[m]):b[m];var t=this.model.getChildCells(b[m],!0),v=this.model.getChildCells(Z[0],!0),y=v.length-t.length;if(0<y)for(var C=0;C<y;C++){var z=this.cloneCell(t[t.length-1]);null!=z&&(z.value="",this.model.add(b[m],z))}else if(0>y)for(C=0;C>y;C--)this.model.remove(t[t.length+
+C-1]);t=this.model.getChildCells(b[m],!0);for(C=0;C<v.length;C++){var J=this.getCellGeometry(v[C]),la=this.getCellGeometry(t[C]);null!=J&&null!=la&&(la=la.clone(),la.width=J.width,this.model.setGeometry(t[C],la))}}}}for(var q=p.apply(this,arguments),m=0;m<l.length;m++)!g&&this.model.contains(l[m])&&0==this.model.getChildCount(l[m])&&this.model.remove(l[m]);g&&this.updateCustomLinks(this.createCellMapping(f,this.createCellLookup(b)),q)}finally{this.model.endUpdate()}return q};var m=Graph.prototype.removeCells;
Graph.prototype.removeCells=function(b,d){var c=[];this.model.beginUpdate();try{for(var g=0;g<b.length;g++)if(this.isTableCell(b[g])){var e=this.model.getParent(b[g]),k=this.model.getParent(e);1==this.model.getChildCount(e)&&1==this.model.getChildCount(k)?0>mxUtils.indexOf(b,k)&&0>mxUtils.indexOf(c,k)&&c.push(k):this.labelChanged(b[g],"")}else{if(this.isTableRow(b[g])&&(k=this.model.getParent(b[g]),0>mxUtils.indexOf(b,k)&&0>mxUtils.indexOf(c,k))){for(var f=this.model.getChildCells(k,!0),l=0,p=0;p<
f.length;p++)0<=mxUtils.indexOf(b,f[p])&&l++;l==f.length&&c.push(k)}c.push(b[g])}c=m.apply(this,[c,d])}finally{this.model.endUpdate()}return c};Graph.prototype.updateCustomLinks=function(b,d,c){c=null!=c?c:new Graph;for(var g=0;g<d.length;g++)null!=d[g]&&c.updateCustomLinksForCell(b,d[g],c)};Graph.prototype.updateCustomLinksForCell=function(b,d){this.doUpdateCustomLinksForCell(b,d);for(var c=this.model.getChildCount(d),g=0;g<c;g++)this.updateCustomLinksForCell(b,this.model.getChildAt(d,g))};Graph.prototype.doUpdateCustomLinksForCell=
-function(b,d){};Graph.prototype.getAllConnectionConstraints=function(b,d){if(null!=b){var c=mxUtils.getValue(b.style,"points",null);if(null!=c){var g=[];try{for(var e=JSON.parse(c),c=0;c<e.length;c++){var k=e[c];g.push(new mxConnectionConstraint(new mxPoint(k[0],k[1]),2<k.length?"0"!=k[2]:!0,null,3<k.length?k[3]:0,4<k.length?k[4]:0))}}catch(Z){}return g}if(null!=b.shape&&null!=b.shape.bounds){k=b.shape.direction;e=b.shape.bounds;c=b.shape.scale;g=e.width/c;e=e.height/c;if(k==mxConstants.DIRECTION_NORTH||
+function(b,d){};Graph.prototype.getAllConnectionConstraints=function(b,d){if(null!=b){var c=mxUtils.getValue(b.style,"points",null);if(null!=c){var g=[];try{for(var e=JSON.parse(c),c=0;c<e.length;c++){var k=e[c];g.push(new mxConnectionConstraint(new mxPoint(k[0],k[1]),2<k.length?"0"!=k[2]:!0,null,3<k.length?k[3]:0,4<k.length?k[4]:0))}}catch(aa){}return g}if(null!=b.shape&&null!=b.shape.bounds){k=b.shape.direction;e=b.shape.bounds;c=b.shape.scale;g=e.width/c;e=e.height/c;if(k==mxConstants.DIRECTION_NORTH||
k==mxConstants.DIRECTION_SOUTH)k=g,g=e,e=k;c=b.shape.getConstraints(b.style,g,e);if(null!=c)return c;if(null!=b.shape.stencil&&null!=b.shape.stencil.constraints)return b.shape.stencil.constraints;if(null!=b.shape.constraints)return b.shape.constraints}}return null};Graph.prototype.flipEdge=function(b){if(null!=b){var d=this.getCurrentCellStyle(b),d=mxUtils.getValue(d,mxConstants.STYLE_ELBOW,mxConstants.ELBOW_HORIZONTAL)==mxConstants.ELBOW_HORIZONTAL?mxConstants.ELBOW_VERTICAL:mxConstants.ELBOW_HORIZONTAL;
this.setCellStyles(mxConstants.STYLE_ELBOW,d,[b])}};Graph.prototype.isValidRoot=function(b){for(var d=this.model.getChildCount(b),c=0,g=0;g<d;g++){var e=this.model.getChildAt(b,g);this.model.isVertex(e)&&(e=this.getCellGeometry(e),null==e||e.relative||c++)}return 0<c||this.isContainer(b)};Graph.prototype.isValidDropTarget=function(b,d,c){for(var g=this.getCurrentCellStyle(b),e=!0,k=!0,f=0;f<d.length&&k;f++)e=e&&this.isTable(d[f]),k=k&&this.isTableRow(d[f]);return("1"!=mxUtils.getValue(g,"part","0")||
this.isContainer(b))&&"0"!=mxUtils.getValue(g,"dropTarget","1")&&(mxGraph.prototype.isValidDropTarget.apply(this,arguments)||this.isContainer(b))&&!this.isTableRow(b)&&(!this.isTable(b)||k||e)&&!this.isCellLocked(b)};Graph.prototype.createGroupCell=function(){var b=mxGraph.prototype.createGroupCell.apply(this,arguments);b.setStyle("group");return b};Graph.prototype.isExtendParentsOnAdd=function(b){var d=mxGraph.prototype.isExtendParentsOnAdd.apply(this,arguments);if(d&&null!=b&&null!=this.layoutManager){var c=
this.model.getParent(b);null!=c&&(c=this.layoutManager.getLayout(c),null!=c&&c.constructor==mxStackLayout&&(d=!1))}return d};Graph.prototype.getPreferredSizeForCell=function(b){var d=mxGraph.prototype.getPreferredSizeForCell.apply(this,arguments);null!=d&&(d.width+=10,d.height+=4,this.gridEnabled&&(d.width=this.snap(d.width),d.height=this.snap(d.height)));return d};Graph.prototype.turnShapes=function(b,d){var c=this.getModel(),g=[];c.beginUpdate();try{for(var e=0;e<b.length;e++){var k=b[e];if(c.isEdge(k)){var f=
-c.getTerminal(k,!0),l=c.getTerminal(k,!1);c.setTerminal(k,l,!0);c.setTerminal(k,f,!1);var m=c.getGeometry(k);if(null!=m){m=m.clone();null!=m.points&&m.points.reverse();var p=m.getTerminalPoint(!0),x=m.getTerminalPoint(!1);m.setTerminalPoint(p,!1);m.setTerminalPoint(x,!0);c.setGeometry(k,m);var v=this.view.getState(k),n=this.view.getState(f),t=this.view.getState(l);if(null!=v){var u=null!=n?this.getConnectionConstraint(v,n,!0):null,ba=null!=t?this.getConnectionConstraint(v,t,!1):null;this.setConnectionConstraint(k,
-f,!0,ba);this.setConnectionConstraint(k,l,!1,u);var y=mxUtils.getValue(v.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING);this.setCellStyles(mxConstants.STYLE_SOURCE_PERIMETER_SPACING,mxUtils.getValue(v.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING),[k]);this.setCellStyles(mxConstants.STYLE_TARGET_PERIMETER_SPACING,y,[k])}g.push(k)}}else if(c.isVertex(k)&&(m=this.getCellGeometry(k),null!=m)){if(!(this.isTable(k)||this.isTableRow(k)||this.isTableCell(k)||this.isSwimlane(k))){m=m.clone();m.x+=m.width/
+c.getTerminal(k,!0),l=c.getTerminal(k,!1);c.setTerminal(k,l,!0);c.setTerminal(k,f,!1);var m=c.getGeometry(k);if(null!=m){m=m.clone();null!=m.points&&m.points.reverse();var p=m.getTerminalPoint(!0),x=m.getTerminalPoint(!1);m.setTerminalPoint(p,!1);m.setTerminalPoint(x,!0);c.setGeometry(k,m);var u=this.view.getState(k),n=this.view.getState(f),t=this.view.getState(l);if(null!=u){var v=null!=n?this.getConnectionConstraint(u,n,!0):null,Z=null!=t?this.getConnectionConstraint(u,t,!1):null;this.setConnectionConstraint(k,
+f,!0,Z);this.setConnectionConstraint(k,l,!1,v);var y=mxUtils.getValue(u.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING);this.setCellStyles(mxConstants.STYLE_SOURCE_PERIMETER_SPACING,mxUtils.getValue(u.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING),[k]);this.setCellStyles(mxConstants.STYLE_TARGET_PERIMETER_SPACING,y,[k])}g.push(k)}}else if(c.isVertex(k)&&(m=this.getCellGeometry(k),null!=m)){if(!(this.isTable(k)||this.isTableRow(k)||this.isTableCell(k)||this.isSwimlane(k))){m=m.clone();m.x+=m.width/
2-m.height/2;m.y+=m.height/2-m.width/2;var C=m.width;m.width=m.height;m.height=C;c.setGeometry(k,m)}var z=this.view.getState(k);if(null!=z){var J=[mxConstants.DIRECTION_EAST,mxConstants.DIRECTION_SOUTH,mxConstants.DIRECTION_WEST,mxConstants.DIRECTION_NORTH],q=mxUtils.getValue(z.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST);this.setCellStyles(mxConstants.STYLE_DIRECTION,J[mxUtils.mod(mxUtils.indexOf(J,q)+(d?-1:1),J.length)],[k])}g.push(k)}}}finally{c.endUpdate()}return g};Graph.prototype.stencilHasPlaceholders=
-function(b){if(null!=b&&null!=b.fgNode)for(b=b.fgNode.firstChild;null!=b;){if("text"==b.nodeName&&"1"==b.getAttribute("placeholders"))return!0;b=b.nextSibling}return!1};var v=Graph.prototype.processChange;Graph.prototype.processChange=function(b){if(b instanceof mxGeometryChange&&(this.isTableCell(b.cell)||this.isTableRow(b.cell))&&(null==b.previous&&null!=b.geometry||null!=b.previous&&!b.previous.equals(b.geometry))){var d=b.cell;this.isTableCell(d)&&(d=this.model.getParent(d));this.isTableRow(d)&&
-(d=this.model.getParent(d));var c=this.view.getState(d);null!=c&&null!=c.shape&&(this.view.invalidate(d),c.shape.bounds=null)}v.apply(this,arguments);b instanceof mxValueChange&&null!=b.cell&&null!=b.cell.value&&"object"==typeof b.cell.value&&this.invalidateDescendantsWithPlaceholders(b.cell)};Graph.prototype.invalidateDescendantsWithPlaceholders=function(b){b=this.model.getDescendants(b);if(0<b.length)for(var d=0;d<b.length;d++){var c=this.view.getState(b[d]);null!=c&&null!=c.shape&&null!=c.shape.stencil&&
+function(b){if(null!=b&&null!=b.fgNode)for(b=b.fgNode.firstChild;null!=b;){if("text"==b.nodeName&&"1"==b.getAttribute("placeholders"))return!0;b=b.nextSibling}return!1};var u=Graph.prototype.processChange;Graph.prototype.processChange=function(b){if(b instanceof mxGeometryChange&&(this.isTableCell(b.cell)||this.isTableRow(b.cell))&&(null==b.previous&&null!=b.geometry||null!=b.previous&&!b.previous.equals(b.geometry))){var d=b.cell;this.isTableCell(d)&&(d=this.model.getParent(d));this.isTableRow(d)&&
+(d=this.model.getParent(d));var c=this.view.getState(d);null!=c&&null!=c.shape&&(this.view.invalidate(d),c.shape.bounds=null)}u.apply(this,arguments);b instanceof mxValueChange&&null!=b.cell&&null!=b.cell.value&&"object"==typeof b.cell.value&&this.invalidateDescendantsWithPlaceholders(b.cell)};Graph.prototype.invalidateDescendantsWithPlaceholders=function(b){b=this.model.getDescendants(b);if(0<b.length)for(var d=0;d<b.length;d++){var c=this.view.getState(b[d]);null!=c&&null!=c.shape&&null!=c.shape.stencil&&
this.stencilHasPlaceholders(c.shape.stencil)?this.removeStateForCell(b[d]):this.isReplacePlaceholders(b[d])&&this.view.invalidate(b[d],!1,!1)}};Graph.prototype.replaceElement=function(b,d){for(var c=b.ownerDocument.createElement(null!=d?d:"span"),g=Array.prototype.slice.call(b.attributes);attr=g.pop();)c.setAttribute(attr.nodeName,attr.nodeValue);c.innerHTML=b.innerHTML;b.parentNode.replaceChild(c,b)};Graph.prototype.processElements=function(b,d){if(null!=b)for(var c=b.getElementsByTagName("*"),g=
0;g<c.length;g++)d(c[g])};Graph.prototype.updateLabelElements=function(b,d,c){b=null!=b?b:this.getSelectionCells();for(var g=document.createElement("div"),e=0;e<b.length;e++)if(this.isHtmlLabel(b[e])){var k=this.convertValueToString(b[e]);if(null!=k&&0<k.length){g.innerHTML=k;for(var f=g.getElementsByTagName(null!=c?c:"*"),l=0;l<f.length;l++)d(f[l]);g.innerHTML!=k&&this.cellLabelChanged(b[e],g.innerHTML)}}};Graph.prototype.cellLabelChanged=function(b,d,c){d=Graph.zapGremlins(d);this.model.beginUpdate();
try{if(null!=b.value&&"object"==typeof b.value){if(this.isReplacePlaceholders(b)&&null!=b.getAttribute("placeholder"))for(var g=b.getAttribute("placeholder"),e=b;null!=e;){if(e==this.model.getRoot()||null!=e.value&&"object"==typeof e.value&&e.hasAttribute(g)){this.setAttributeForCell(e,g,d);break}e=this.model.getParent(e)}var k=b.value.cloneNode(!0);Graph.translateDiagram&&null!=Graph.diagramLanguage&&k.hasAttribute("label_"+Graph.diagramLanguage)?k.setAttribute("label_"+Graph.diagramLanguage,d):
k.setAttribute("label",d);d=k}mxGraph.prototype.cellLabelChanged.apply(this,arguments)}finally{this.model.endUpdate()}};Graph.prototype.cellsRemoved=function(b){if(null!=b){for(var d=new mxDictionary,c=0;c<b.length;c++)d.put(b[c],!0);for(var g=[],c=0;c<b.length;c++){var e=this.model.getParent(b[c]);null==e||d.get(e)||(d.put(e,!0),g.push(e))}for(c=0;c<g.length;c++)if(e=this.view.getState(g[c]),null!=e&&(this.model.isEdge(e.cell)||this.model.isVertex(e.cell))&&this.isCellDeletable(e.cell)&&this.isTransparentState(e)){for(var k=
!0,f=0;f<this.model.getChildCount(e.cell)&&k;f++)d.get(this.model.getChildAt(e.cell,f))||(k=!1);k&&b.push(e.cell)}}mxGraph.prototype.cellsRemoved.apply(this,arguments)};Graph.prototype.removeCellsAfterUngroup=function(b){for(var d=[],c=0;c<b.length;c++)this.isCellDeletable(b[c])&&this.isTransparentState(this.view.getState(b[c]))&&d.push(b[c]);b=d;mxGraph.prototype.removeCellsAfterUngroup.apply(this,arguments)};Graph.prototype.setLinkForCell=function(b,d){this.setAttributeForCell(b,"link",d)};Graph.prototype.setTooltipForCell=
function(b,d){var c="tooltip";Graph.translateDiagram&&null!=Graph.diagramLanguage&&mxUtils.isNode(b.value)&&b.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(c="tooltip_"+Graph.diagramLanguage);this.setAttributeForCell(b,c,d)};Graph.prototype.getAttributeForCell=function(b,d,c){b=null!=b.value&&"object"===typeof b.value?b.value.getAttribute(d):null;return null!=b?b:c};Graph.prototype.setAttributeForCell=function(b,d,c){var g;null!=b.value&&"object"==typeof b.value?g=b.value.cloneNode(!0):(g=
-mxUtils.createXmlDocument().createElement("UserObject"),g.setAttribute("label",b.value||""));null!=c?g.setAttribute(d,c):g.removeAttribute(d);this.model.setValue(b,g)};var u=Graph.prototype.getDropTarget;Graph.prototype.getDropTarget=function(b,d,c,g){this.getModel();if(mxEvent.isAltDown(d))return null;for(var e=0;e<b.length;e++){var k=this.model.getParent(b[e]);if(this.model.isEdge(k)&&0>mxUtils.indexOf(b,k))return null}for(var k=u.apply(this,arguments),f=!0,e=0;e<b.length&&f;e++)f=f&&this.isTableRow(b[e]);
+mxUtils.createXmlDocument().createElement("UserObject"),g.setAttribute("label",b.value||""));null!=c?g.setAttribute(d,c):g.removeAttribute(d);this.model.setValue(b,g)};var v=Graph.prototype.getDropTarget;Graph.prototype.getDropTarget=function(b,d,c,g){this.getModel();if(mxEvent.isAltDown(d))return null;for(var e=0;e<b.length;e++){var k=this.model.getParent(b[e]);if(this.model.isEdge(k)&&0>mxUtils.indexOf(b,k))return null}for(var k=v.apply(this,arguments),f=!0,e=0;e<b.length&&f;e++)f=f&&this.isTableRow(b[e]);
f&&(this.isTableCell(k)&&(k=this.model.getParent(k)),this.isTableRow(k)&&(k=this.model.getParent(k)),this.isTable(k)||(k=null));return k};Graph.prototype.click=function(b){mxGraph.prototype.click.call(this,b);this.firstClickState=b.getState();this.firstClickSource=b.getSource()};Graph.prototype.dblClick=function(b,d){this.isEnabled()&&(d=this.insertTextForEvent(b,d),mxGraph.prototype.dblClick.call(this,b,d))};Graph.prototype.insertTextForEvent=function(b,d){var c=mxUtils.convertPoint(this.container,
mxEvent.getClientX(b),mxEvent.getClientY(b));if(null!=b&&!this.model.isVertex(d)){var g=this.model.isEdge(d)?this.view.getState(d):null,e=mxEvent.getSource(b);this.firstClickState!=g||this.firstClickSource!=e||null!=g&&null!=g.text&&null!=g.text.node&&null!=g.text.boundingBox&&(mxUtils.contains(g.text.boundingBox,c.x,c.y)||mxUtils.isAncestorNode(g.text.node,mxEvent.getSource(b)))||(null!=g||this.isCellLocked(this.getDefaultParent()))&&(null==g||this.isCellLocked(g.cell))||!(null!=g||mxClient.IS_SVG&&
e==this.view.getCanvas().ownerSVGElement)||(null==g&&(g=this.view.getState(this.getCellAt(c.x,c.y))),d=this.addText(c.x,c.y,g))}return d};Graph.prototype.getInsertPoint=function(){var b=this.getGridSize(),d=this.container.scrollLeft/this.view.scale-this.view.translate.x,c=this.container.scrollTop/this.view.scale-this.view.translate.y;if(this.pageVisible)var g=this.getPageLayout(),e=this.getPageSize(),d=Math.max(d,g.x*e.width),c=Math.max(c,g.y*e.height);return new mxPoint(this.snap(d+b),this.snap(c+
@@ -2612,88 +2612,88 @@ c&&"a"!=c.nodeName.toLowerCase();)c=c.parentNode;null!=c?this.clear():(null!=f.t
f.container.scrollLeft)<k&&Math.abs(this.scrollTop-f.container.scrollTop)<k&&(null==g.sourceState||!g.isSource(g.sourceState.control))&&((mxEvent.isLeftMouseButton(l)||mxEvent.isMiddleMouseButton(l))&&!mxEvent.isPopupTrigger(l)||mxEvent.isTouchEvent(l))&&(null!=this.currentLink?(e=f.isBlankLink(this.currentLink),"data:"!==this.currentLink.substring(0,5)&&e||null==d||d(l,this.currentLink),mxEvent.isConsumed(l)||(l=null!=this.currentTarget?this.currentTarget:mxEvent.isMiddleMouseButton(l)?"_blank":
e?f.linkTarget:"_top",f.openLink(this.currentLink,l),g.consume())):null!=c&&!g.isConsumed()&&Math.abs(this.scrollLeft-f.container.scrollLeft)<k&&Math.abs(this.scrollTop-f.container.scrollTop)<k&&Math.abs(this.startX-g.getGraphX())<k&&Math.abs(this.startY-g.getGraphY())<k&&c(g.getEvent()));this.clear()},activate:function(b){this.currentLink=f.getAbsoluteUrl(f.getLinkForCell(b.cell));null!=this.currentLink&&(this.currentTarget=f.getLinkTargetForCell(b.cell),f.container.style.cursor="pointer",null!=
this.highlight&&this.highlight.highlight(b))},clear:function(){null!=f.container&&(f.container.style.cursor=e);this.currentLink=this.currentState=this.currentTarget=null;null!=this.highlight&&this.highlight.hide();null!=f.tooltipHandler&&f.tooltipHandler.hide()}};f.click=function(b){};f.addMouseListener(l);mxEvent.addListener(document,"mouseleave",function(b){l.clear()})};Graph.prototype.duplicateCells=function(b,d){b=null!=b?b:this.getSelectionCells();d=null!=d?d:!0;for(var c=0;c<b.length;c++)this.isTableCell(b[c])&&
-(b[c]=this.model.getParent(b[c]));b=this.model.getTopmostCells(b);var g=this.getModel(),e=this.gridSize,k=[];g.beginUpdate();try{for(var f={},l=this.createCellLookup(b),m=this.cloneCells(b,!1,f,!0),c=0;c<b.length;c++){var p=g.getParent(b[c]);if(null!=p){var x=this.moveCells([m[c]],e,e,!1)[0];k.push(x);if(d)g.add(p,m[c]);else{var v=p.getIndex(b[c]);g.add(p,m[c],v+1)}if(this.isTable(p)){var n=this.getCellGeometry(m[c]),t=this.getCellGeometry(p);null!=n&&null!=t&&(t=t.clone(),t.height+=n.height,g.setGeometry(p,
+(b[c]=this.model.getParent(b[c]));b=this.model.getTopmostCells(b);var g=this.getModel(),e=this.gridSize,k=[];g.beginUpdate();try{for(var f={},l=this.createCellLookup(b),m=this.cloneCells(b,!1,f,!0),c=0;c<b.length;c++){var p=g.getParent(b[c]);if(null!=p){var x=this.moveCells([m[c]],e,e,!1)[0];k.push(x);if(d)g.add(p,m[c]);else{var u=p.getIndex(b[c]);g.add(p,m[c],u+1)}if(this.isTable(p)){var n=this.getCellGeometry(m[c]),t=this.getCellGeometry(p);null!=n&&null!=t&&(t=t.clone(),t.height+=n.height,g.setGeometry(p,
t))}}else k.push(m[c])}this.updateCustomLinks(this.createCellMapping(f,l),m,this);this.fireEvent(new mxEventObject(mxEvent.CELLS_ADDED,"cells",m))}finally{g.endUpdate()}return k};Graph.prototype.insertImage=function(b,d,c){if(null!=b&&null!=this.cellEditor.textarea){for(var g=this.cellEditor.textarea.getElementsByTagName("img"),e=[],k=0;k<g.length;k++)e.push(g[k]);document.execCommand("insertimage",!1,b);b=this.cellEditor.textarea.getElementsByTagName("img");if(b.length==e.length+1)for(k=b.length-
1;0<=k;k--)if(0==k||b[k]!=e[k-1]){b[k].setAttribute("width",d);b[k].setAttribute("height",c);break}}};Graph.prototype.insertLink=function(b){if(null!=this.cellEditor.textarea)if(0==b.length)document.execCommand("unlink",!1);else if(mxClient.IS_FF){for(var d=this.cellEditor.textarea.getElementsByTagName("a"),c=[],g=0;g<d.length;g++)c.push(d[g]);document.execCommand("createlink",!1,mxUtils.trim(b));d=this.cellEditor.textarea.getElementsByTagName("a");if(d.length==c.length+1)for(g=d.length-1;0<=g;g--)if(d[g]!=
c[g-1]){for(d=d[g].getElementsByTagName("a");0<d.length;){for(c=d[0].parentNode;null!=d[0].firstChild;)c.insertBefore(d[0].firstChild,d[0]);c.removeChild(d[0])}break}}else document.execCommand("createlink",!1,mxUtils.trim(b))};Graph.prototype.isCellResizable=function(b){var d=mxGraph.prototype.isCellResizable.apply(this,arguments),c=this.getCurrentCellStyle(b);return!this.isTableCell(b)&&!this.isTableRow(b)&&(d||"0"!=mxUtils.getValue(c,mxConstants.STYLE_RESIZABLE,"1")&&"wrap"==c[mxConstants.STYLE_WHITE_SPACE])};
Graph.prototype.distributeCells=function(b,d){null==d&&(d=this.getSelectionCells());if(null!=d&&1<d.length){for(var c=[],g=null,e=null,k=0;k<d.length;k++)if(this.getModel().isVertex(d[k])){var f=this.view.getState(d[k]);if(null!=f){var l=b?f.getCenterX():f.getCenterY(),g=null!=g?Math.max(g,l):l,e=null!=e?Math.min(e,l):l;c.push(f)}}if(2<c.length){c.sort(function(d,c){return b?d.x-c.x:d.y-c.y});f=this.view.translate;l=this.view.scale;e=e/l-(b?f.x:f.y);g=g/l-(b?f.x:f.y);this.getModel().beginUpdate();
try{for(var m=(g-e)/(c.length-1),g=e,k=1;k<c.length-1;k++){var p=this.view.getState(this.model.getParent(c[k].cell)),x=this.getCellGeometry(c[k].cell),g=g+m;null!=x&&null!=p&&(x=x.clone(),b?x.x=Math.round(g-x.width/2)-p.origin.x:x.y=Math.round(g-x.height/2)-p.origin.y,this.getModel().setGeometry(c[k].cell,x))}}finally{this.getModel().endUpdate()}}}return d};Graph.prototype.isCloneEvent=function(b){return mxClient.IS_MAC&&mxEvent.isMetaDown(b)||mxEvent.isControlDown(b)};Graph.prototype.createSvgImageExport=
-function(){var b=new mxImageExport;b.getLinkForCellState=mxUtils.bind(this,function(b,d){return this.getLinkForCell(b.cell)});return b};Graph.prototype.parseBackgroundImage=function(b){var d=null;null!=b&&0<b.length&&(b=JSON.parse(b),d=new mxImage(b.src,b.width,b.height));return d};Graph.prototype.getBackgroundImageObject=function(b){return b};Graph.prototype.getSvg=function(b,d,c,g,e,k,f,l,m,p,x,v,n,t){var u=null;if(null!=t)for(u=new mxDictionary,x=0;x<t.length;x++)u.put(t[x],!0);if(t=this.useCssTransforms)this.useCssTransforms=
-!1,this.view.revalidate(),this.sizeDidChange();try{d=null!=d?d:1;c=null!=c?c:0;e=null!=e?e:!0;k=null!=k?k:!0;f=null!=f?f:!0;p=null!=p?p:!1;var y="page"==n?this.view.getBackgroundPageBounds():k&&null==u||g||"diagram"==n?this.getGraphBounds():this.getBoundingBox(this.getSelectionCells()),C=this.view.scale;"diagram"==n&&null!=this.backgroundImage&&(y=mxRectangle.fromRectangle(y),y.add(new mxRectangle((this.view.translate.x+this.backgroundImage.x)*C,(this.view.translate.y+this.backgroundImage.y)*C,this.backgroundImage.width*
+function(){var b=new mxImageExport;b.getLinkForCellState=mxUtils.bind(this,function(b,d){return this.getLinkForCell(b.cell)});return b};Graph.prototype.parseBackgroundImage=function(b){var d=null;null!=b&&0<b.length&&(b=JSON.parse(b),d=new mxImage(b.src,b.width,b.height));return d};Graph.prototype.getBackgroundImageObject=function(b){return b};Graph.prototype.getSvg=function(b,d,c,g,e,k,f,l,m,p,x,u,n,t){var v=null;if(null!=t)for(v=new mxDictionary,x=0;x<t.length;x++)v.put(t[x],!0);if(t=this.useCssTransforms)this.useCssTransforms=
+!1,this.view.revalidate(),this.sizeDidChange();try{d=null!=d?d:1;c=null!=c?c:0;e=null!=e?e:!0;k=null!=k?k:!0;f=null!=f?f:!0;p=null!=p?p:!1;var y="page"==n?this.view.getBackgroundPageBounds():k&&null==v||g||"diagram"==n?this.getGraphBounds():this.getBoundingBox(this.getSelectionCells()),C=this.view.scale;"diagram"==n&&null!=this.backgroundImage&&(y=mxRectangle.fromRectangle(y),y.add(new mxRectangle((this.view.translate.x+this.backgroundImage.x)*C,(this.view.translate.y+this.backgroundImage.y)*C,this.backgroundImage.width*
C,this.backgroundImage.height*C)));if(null==y)throw Error(mxResources.get("drawingEmpty"));var z=mxUtils.createXmlDocument(),J=null!=z.createElementNS?z.createElementNS(mxConstants.NS_SVG,"svg"):z.createElement("svg");null!=b&&(null!=J.style?J.style.backgroundColor=b:J.setAttribute("style","background-color:"+b));null==z.createElementNS?(J.setAttribute("xmlns",mxConstants.NS_SVG),J.setAttribute("xmlns:xlink",mxConstants.NS_XLINK)):J.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",mxConstants.NS_XLINK);
-b=d/C;var q=Math.max(1,Math.ceil(y.width*b)+2*c)+(p&&0==c?5:0),ba=Math.max(1,Math.ceil(y.height*b)+2*c)+(p&&0==c?5:0);J.setAttribute("version","1.1");J.setAttribute("width",q+"px");J.setAttribute("height",ba+"px");J.setAttribute("viewBox",(e?"-0.5 -0.5":"0 0")+" "+q+" "+ba);z.appendChild(J);var da=null!=z.createElementNS?z.createElementNS(mxConstants.NS_SVG,"g"):z.createElement("g");J.appendChild(da);var A=this.createSvgCanvas(da);A.foOffset=e?-.5:0;A.textOffset=e?-.5:0;A.imageOffset=e?-.5:0;A.translate(Math.floor(c/
-d-y.x/C),Math.floor(c/d-y.y/C));var K=document.createElement("div"),ca=A.getAlternateText;A.getAlternateText=function(b,d,c,g,e,k,f,l,m,p,x,v,n){if(null!=k&&0<this.state.fontSize)try{mxUtils.isNode(k)?k=k.innerText:(K.innerHTML=k,k=mxUtils.extractTextWithWhitespace(K.childNodes));for(var t=Math.ceil(2*g/this.state.fontSize),u=[],B=0,wa=0;(0==t||B<t)&&wa<k.length;){var Ta=k.charCodeAt(wa);if(10==Ta||13==Ta){if(0<B)break}else u.push(k.charAt(wa)),255>Ta&&B++;wa++}u.length<k.length&&1<k.length-u.length&&
-(k=mxUtils.trim(u.join(""))+"...");return k}catch(Ja){return ca.apply(this,arguments)}else return ca.apply(this,arguments)};var V=this.backgroundImage;if(null!=V){d=C/d;var aa=this.view.translate,na=new mxRectangle((V.x+aa.x)*d,(V.y+aa.y)*d,V.width*d,V.height*d);mxUtils.intersects(y,na)&&A.image(V.x+aa.x,V.y+aa.y,V.width,V.height,V.src,!0)}A.scale(b);A.textEnabled=f;l=null!=l?l:this.createSvgImageExport();var G=l.drawCellState,P=l.getLinkForCellState;l.getLinkForCellState=function(b,d){var c=P.apply(this,
-arguments);return null==c||b.view.graph.isCustomLink(c)?null:c};l.getLinkTargetForCellState=function(b,d){return b.view.graph.getLinkTargetForCell(b.cell)};l.drawCellState=function(b,d){for(var c=b.view.graph,g=null!=u?u.get(b.cell):c.isCellSelected(b.cell),e=c.model.getParent(b.cell);!(k&&null==u||g)&&null!=e;)g=null!=u?u.get(e):c.isCellSelected(e),e=c.model.getParent(e);(k&&null==u||g)&&G.apply(this,arguments)};l.drawState(this.getView().getState(this.model.root),A);this.updateSvgLinks(J,m,!0);
-this.addForeignObjectWarning(A,J);return J}finally{t&&(this.useCssTransforms=!0,this.view.revalidate(),this.sizeDidChange())}};Graph.prototype.addForeignObjectWarning=function(b,d){if("0"!=urlParams["svg-warning"]&&0<d.getElementsByTagName("foreignObject").length){var c=b.createElement("switch"),g=b.createElement("g");g.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility");var e=b.createElement("a");e.setAttribute("transform","translate(0,-5)");null==e.setAttributeNS||
+b=d/C;var q=Math.max(1,Math.ceil(y.width*b)+2*c)+(p&&0==c?5:0),Z=Math.max(1,Math.ceil(y.height*b)+2*c)+(p&&0==c?5:0);J.setAttribute("version","1.1");J.setAttribute("width",q+"px");J.setAttribute("height",Z+"px");J.setAttribute("viewBox",(e?"-0.5 -0.5":"0 0")+" "+q+" "+Z);z.appendChild(J);var K=null!=z.createElementNS?z.createElementNS(mxConstants.NS_SVG,"g"):z.createElement("g");J.appendChild(K);var B=this.createSvgCanvas(K);B.foOffset=e?-.5:0;B.textOffset=e?-.5:0;B.imageOffset=e?-.5:0;B.translate(Math.floor(c/
+d-y.x/C),Math.floor(c/d-y.y/C));var M=document.createElement("div"),ca=B.getAlternateText;B.getAlternateText=function(b,d,c,g,e,k,f,l,m,p,x,u,n){if(null!=k&&0<this.state.fontSize)try{mxUtils.isNode(k)?k=k.innerText:(M.innerHTML=k,k=mxUtils.extractTextWithWhitespace(M.childNodes));for(var t=Math.ceil(2*g/this.state.fontSize),v=[],A=0,va=0;(0==t||A<t)&&va<k.length;){var Ua=k.charCodeAt(va);if(10==Ua||13==Ua){if(0<A)break}else v.push(k.charAt(va)),255>Ua&&A++;va++}v.length<k.length&&1<k.length-v.length&&
+(k=mxUtils.trim(v.join(""))+"...");return k}catch(Ja){return ca.apply(this,arguments)}else return ca.apply(this,arguments)};var X=this.backgroundImage;if(null!=X){d=C/d;var ka=this.view.translate,la=new mxRectangle((X.x+ka.x)*d,(X.y+ka.y)*d,X.width*d,X.height*d);mxUtils.intersects(y,la)&&B.image(X.x+ka.x,X.y+ka.y,X.width,X.height,X.src,!0)}B.scale(b);B.textEnabled=f;l=null!=l?l:this.createSvgImageExport();var G=l.drawCellState,P=l.getLinkForCellState;l.getLinkForCellState=function(b,d){var c=P.apply(this,
+arguments);return null==c||b.view.graph.isCustomLink(c)?null:c};l.getLinkTargetForCellState=function(b,d){return b.view.graph.getLinkTargetForCell(b.cell)};l.drawCellState=function(b,d){for(var c=b.view.graph,g=null!=v?v.get(b.cell):c.isCellSelected(b.cell),e=c.model.getParent(b.cell);!(k&&null==v||g)&&null!=e;)g=null!=v?v.get(e):c.isCellSelected(e),e=c.model.getParent(e);(k&&null==v||g)&&G.apply(this,arguments)};l.drawState(this.getView().getState(this.model.root),B);this.updateSvgLinks(J,m,!0);
+this.addForeignObjectWarning(B,J);return J}finally{t&&(this.useCssTransforms=!0,this.view.revalidate(),this.sizeDidChange())}};Graph.prototype.addForeignObjectWarning=function(b,d){if("0"!=urlParams["svg-warning"]&&0<d.getElementsByTagName("foreignObject").length){var c=b.createElement("switch"),g=b.createElement("g");g.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility");var e=b.createElement("a");e.setAttribute("transform","translate(0,-5)");null==e.setAttributeNS||
d.ownerDocument!=document&&null==document.documentMode?(e.setAttribute("xlink:href",Graph.foreignObjectWarningLink),e.setAttribute("target","_blank")):(e.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",Graph.foreignObjectWarningLink),e.setAttributeNS(mxConstants.NS_XLINK,"target","_blank"));var k=b.createElement("text");k.setAttribute("text-anchor","middle");k.setAttribute("font-size","10px");k.setAttribute("x","50%");k.setAttribute("y","100%");mxUtils.write(k,Graph.foreignObjectWarningText);c.appendChild(g);
e.appendChild(k);c.appendChild(e);d.appendChild(c)}};Graph.prototype.updateSvgLinks=function(b,d,c){b=b.getElementsByTagName("a");for(var g=0;g<b.length;g++)if(null==b[g].getAttribute("target")){var e=b[g].getAttribute("href");null==e&&(e=b[g].getAttribute("xlink:href"));null!=e&&(null!=d&&/^https?:\/\//.test(e)?b[g].setAttribute("target",d):c&&this.isCustomLink(e)&&b[g].setAttribute("href","javascript:void(0);"))}};Graph.prototype.createSvgCanvas=function(b){b=new mxSvgCanvas2D(b);b.pointerEvents=
!0;return b};Graph.prototype.getSelectedElement=function(){var b=null;if(window.getSelection){var d=window.getSelection();d.getRangeAt&&d.rangeCount&&(b=d.getRangeAt(0).commonAncestorContainer)}else document.selection&&(b=document.selection.createRange().parentElement());return b};Graph.prototype.getSelectedEditingElement=function(){for(var b=this.getSelectedElement();null!=b&&b.nodeType!=mxConstants.NODETYPE_ELEMENT;)b=b.parentNode;null!=b&&b==this.cellEditor.textarea&&1==this.cellEditor.textarea.children.length&&
this.cellEditor.textarea.firstChild.nodeType==mxConstants.NODETYPE_ELEMENT&&(b=this.cellEditor.textarea.firstChild);return b};Graph.prototype.getParentByName=function(b,d,c){for(;null!=b&&b.nodeName!=d;){if(b==c)return null;b=b.parentNode}return b};Graph.prototype.getParentByNames=function(b,d,c){for(;null!=b&&!(0<=mxUtils.indexOf(d,b.nodeName));){if(b==c)return null;b=b.parentNode}return b};Graph.prototype.selectNode=function(b){var d=null;if(window.getSelection){if(d=window.getSelection(),d.getRangeAt&&
-d.rangeCount){var c=document.createRange();c.selectNode(b);d.removeAllRanges();d.addRange(c)}}else(d=document.selection)&&"Control"!=d.type&&(b=d.createRange(),b.collapse(!0),c=d.createRange(),c.setEndPoint("StartToStart",b),c.select())};Graph.prototype.flipEdge=function(b,d,c){var g=this.getCellGeometry(b);if(null!=g){g=g.clone();if(null!=g.points)for(var e=0;e<g.points.length;e++)d?g.points[e].x=c+(c-g.points[e].x):g.points[e].y=c+(c-g.points[e].y);e=function(b){null!=b&&(d?b.x=c+(c-b.x):b.y=c+
-(c-b.y))};e(g.getTerminalPoint(!0));e(g.getTerminalPoint(!1));this.model.setGeometry(b,g)}};Graph.prototype.flipChildren=function(b,d,c){this.model.beginUpdate();try{for(var g=this.model.getChildCount(b),e=0;e<g;e++){var k=this.model.getChildAt(b,e);if(this.model.isEdge(k))this.flipEdge(k,d,c);else{var f=this.getCellGeometry(k);null!=f&&(f=f.clone(),d?f.x=c+(c-f.x-f.width):f.y=c+(c-f.y-f.height),this.model.setGeometry(k,f))}}}finally{this.model.endUpdate()}};Graph.prototype.flipCells=function(b,d){this.model.beginUpdate();
-try{b=this.model.getTopmostCells(b);for(var c=[],g=0;g<b.length;g++)if(this.model.isEdge(b[g])){var e=this.view.getState(b[g]);null!=e&&this.flipEdge(b[g],d,(d?e.getCenterX():e.getCenterY())/this.view.scale-(d?e.origin.x:e.origin.y)-(d?this.view.translate.x:this.view.translate.y))}else{var k=this.getCellGeometry(b[g]);null!=k&&this.flipChildren(b[g],d,d?k.getCenterX()-k.x:k.getCenterY()-k.y);c.push(b[g])}this.toggleCellStyles(d?mxConstants.STYLE_FLIPH:mxConstants.STYLE_FLIPV,!1,c)}finally{this.model.endUpdate()}};
-Graph.prototype.deleteCells=function(b,d){var c=null;if(null!=b&&0<b.length){this.model.beginUpdate();try{for(var g=0;g<b.length;g++){var e=this.model.getParent(b[g]);if(this.isTable(e)){var k=this.getCellGeometry(b[g]),f=this.getCellGeometry(e);null!=k&&null!=f&&(f=f.clone(),f.height-=k.height,this.model.setGeometry(e,f))}}var l=this.selectParentAfterDelete?this.model.getParents(b):null;this.removeCells(b,d)}finally{this.model.endUpdate()}if(null!=l)for(c=[],g=0;g<l.length;g++)this.model.contains(l[g])&&
-(this.model.isVertex(l[g])||this.model.isEdge(l[g]))&&c.push(l[g])}return c};Graph.prototype.insertTableColumn=function(b,d){var c=this.getModel();c.beginUpdate();try{var g=b,e=0;if(this.isTableCell(b))var k=c.getParent(b),g=c.getParent(k),e=mxUtils.indexOf(c.getChildCells(k,!0),b);else this.isTableRow(b)?g=c.getParent(b):b=c.getChildCells(g,!0)[0],d||(e=c.getChildCells(b,!0).length-1);for(var f=c.getChildCells(g,!0),l=Graph.minTableColumnWidth,k=0;k<f.length;k++){var m=c.getChildCells(f[k],!0)[e],
-p=c.cloneCell(m,!1),x=this.getCellGeometry(p);p.value=null;p.style=mxUtils.setStyle(mxUtils.setStyle(p.style,"rowspan",null),"colspan",null);if(null!=x){null!=x.alternateBounds&&(x.width=x.alternateBounds.width,x.height=x.alternateBounds.height,x.alternateBounds=null);var l=x.width,v=this.getCellGeometry(f[k]);null!=v&&(x.height=v.height)}c.add(f[k],p,e+(d?0:1))}var n=this.getCellGeometry(g);null!=n&&(n=n.clone(),n.width+=l,c.setGeometry(g,n))}finally{c.endUpdate()}};Graph.prototype.deleteLane=function(b){var d=
-this.getModel();d.beginUpdate();try{var c=null,c="stackLayout"==this.getCurrentCellStyle(b).childLayout?b:d.getParent(b),g=d.getChildCells(c,!0);0==g.length?d.remove(c):(c==b&&(b=g[g.length-1]),d.remove(b))}finally{d.endUpdate()}};Graph.prototype.insertLane=function(b,d){var c=this.getModel();c.beginUpdate();try{var g=null,e=b;if("stackLayout"==this.getCurrentCellStyle(e).childLayout)var g=e,k=c.getChildCells(g,!0),e=k[d?0:k.length-1];else g=c.getParent(e);var f=g.getIndex(e),e=c.cloneCell(e,!1);
-e.value=null;c.add(g,e,f+(d?0:1))}finally{c.endUpdate()}};Graph.prototype.insertTableRow=function(b,d){var c=this.getModel();c.beginUpdate();try{var g=b,e=b;if(this.isTableCell(b))e=c.getParent(b),g=c.getParent(e);else if(this.isTableRow(b))g=c.getParent(b);else var k=c.getChildCells(g,!0),e=k[d?0:k.length-1];var f=c.getChildCells(e,!0),l=g.getIndex(e),e=c.cloneCell(e,!1);e.value=null;var m=this.getCellGeometry(e);if(null!=m){for(k=0;k<f.length;k++){b=c.cloneCell(f[k],!1);b.value=null;b.style=mxUtils.setStyle(mxUtils.setStyle(b.style,
-"rowspan",null),"colspan",null);var p=this.getCellGeometry(b);null!=p&&(null!=p.alternateBounds&&(p.width=p.alternateBounds.width,p.height=p.alternateBounds.height,p.alternateBounds=null),p.height=m.height);e.insert(b)}c.add(g,e,l+(d?0:1));var x=this.getCellGeometry(g);null!=x&&(x=x.clone(),x.height+=m.height,c.setGeometry(g,x))}}finally{c.endUpdate()}};Graph.prototype.deleteTableColumn=function(b){var d=this.getModel();d.beginUpdate();try{var c=b,g=b;this.isTableCell(b)&&(g=d.getParent(b));this.isTableRow(g)&&
-(c=d.getParent(g));var e=d.getChildCells(c,!0);if(0==e.length)d.remove(c);else{this.isTableRow(g)||(g=e[0]);var k=d.getChildCells(g,!0);if(1>=k.length)d.remove(c);else{var f=k.length-1;this.isTableCell(b)&&(f=mxUtils.indexOf(k,b));for(g=b=0;g<e.length;g++){var l=d.getChildCells(e[g],!0)[f];d.remove(l);var m=this.getCellGeometry(l);null!=m&&(b=Math.max(b,m.width))}var p=this.getCellGeometry(c);null!=p&&(p=p.clone(),p.width-=b,d.setGeometry(c,p))}}}finally{d.endUpdate()}};Graph.prototype.deleteTableRow=
-function(b){var d=this.getModel();d.beginUpdate();try{var c=b,g=b;this.isTableCell(b)&&(b=g=d.getParent(b));this.isTableRow(b)&&(c=d.getParent(g));var e=d.getChildCells(c,!0);if(1>=e.length)d.remove(c);else{this.isTableRow(g)||(g=e[e.length-1]);d.remove(g);b=0;var k=this.getCellGeometry(g);null!=k&&(b=k.height);var f=this.getCellGeometry(c);null!=f&&(f=f.clone(),f.height-=b,d.setGeometry(c,f))}}finally{d.endUpdate()}};Graph.prototype.insertRow=function(b,d){for(var c=b.tBodies[0],g=c.rows[0].cells,
-e=0,k=0;k<g.length;k++)var f=g[k].getAttribute("colspan"),e=e+(null!=f?parseInt(f):1);c=c.insertRow(d);for(k=0;k<e;k++)mxUtils.br(c.insertCell(-1));return c.cells[0]};Graph.prototype.deleteRow=function(b,d){b.tBodies[0].deleteRow(d)};Graph.prototype.insertColumn=function(b,d){var c=b.tHead;if(null!=c)for(var g=0;g<c.rows.length;g++){var e=document.createElement("th");c.rows[g].appendChild(e);mxUtils.br(e)}c=b.tBodies[0];for(g=0;g<c.rows.length;g++)e=c.rows[g].insertCell(d),mxUtils.br(e);return c.rows[0].cells[0<=
-d?d:c.rows[0].cells.length-1]};Graph.prototype.deleteColumn=function(b,d){if(0<=d)for(var c=b.tBodies[0].rows,g=0;g<c.length;g++)c[g].cells.length>d&&c[g].deleteCell(d)};Graph.prototype.pasteHtmlAtCaret=function(b){var d;if(window.getSelection){if(d=window.getSelection(),d.getRangeAt&&d.rangeCount){d=d.getRangeAt(0);d.deleteContents();var c=document.createElement("div");c.innerHTML=b;b=document.createDocumentFragment();for(var g;g=c.firstChild;)lastNode=b.appendChild(g);d.insertNode(b)}}else(d=document.selection)&&
-"Control"!=d.type&&d.createRange().pasteHTML(b)};Graph.prototype.createLinkForHint=function(b,d){function c(b,d){b.length>d&&(b=b.substring(0,Math.round(d/2))+"..."+b.substring(b.length-Math.round(d/4)));return b}b=null!=b?b:"javascript:void(0);";if(null==d||0==d.length)d=this.isCustomLink(b)?this.getLinkTitle(b):b;var g=document.createElement("a");g.setAttribute("rel",this.linkRelation);g.setAttribute("href",this.getAbsoluteUrl(b));g.setAttribute("title",c(this.isCustomLink(b)?this.getLinkTitle(b):
-b,80));null!=this.linkTarget&&g.setAttribute("target",this.linkTarget);mxUtils.write(g,c(d,40));this.isCustomLink(b)&&mxEvent.addListener(g,"click",mxUtils.bind(this,function(d){this.customLinkClicked(b);mxEvent.consume(d)}));return g};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};this.addListener(mxEvent.START_EDITING,function(b,d){this.popupMenuHandler.hideMenu()});var b=this.updateMouseEvent;this.updateMouseEvent=
-function(d){d=b.apply(this,arguments);if(mxEvent.isTouchEvent(d.getEvent())&&null==d.getState()){var c=this.getCellAt(d.graphX,d.graphY);null!=c&&this.isSwimlane(c)&&this.hitsSwimlaneContent(c,d.graphX,d.graphY)||(d.state=this.view.getState(c),null!=d.state&&null!=d.state.shape&&(this.container.style.cursor=d.state.shape.node.style.cursor))}null==d.getState()&&this.isEnabled()&&(this.container.style.cursor="default");return d};var d=!1,c=!1,g=!1,e=this.fireMouseEvent;this.fireMouseEvent=function(b,
-k,f){b==mxEvent.MOUSE_DOWN&&(k=this.updateMouseEvent(k),d=this.isCellSelected(k.getCell()),c=this.isSelectionEmpty(),g=this.popupMenuHandler.isMenuShowing());e.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(b,e){var k=mxEvent.isMouseEvent(e.getEvent());this.popupMenuHandler.popupTrigger=!this.isEditing()&&this.isEnabled()&&(null==e.getState()||!e.isSource(e.getState().control))&&(this.popupMenuHandler.popupTrigger||!g&&!k&&(c&&null==e.getCell()&&this.isSelectionEmpty()||
-d&&this.isCellSelected(e.getCell())));k=!d||k?null:mxUtils.bind(this,function(b){window.setTimeout(mxUtils.bind(this,function(){if(!this.isEditing()){var d=mxUtils.getScrollOrigin();this.popupMenuHandler.popup(e.getX()+d.x+1,e.getY()+d.y+1,b,e.getEvent())}}),500)});mxPopupMenuHandler.prototype.mouseUp.apply(this.popupMenuHandler,[b,e,k])})};mxCellEditor.prototype.isContentEditing=function(){var b=this.graph.view.getState(this.editingCell);return null!=b&&1==b.style.html};mxCellEditor.prototype.isTableSelected=
-function(){return null!=this.graph.getParentByName(this.graph.getSelectedElement(),"TABLE",this.textarea)};mxCellEditor.prototype.isTextSelected=function(){var b="";window.getSelection?b=window.getSelection():document.getSelection?b=document.getSelection():document.selection&&(b=document.selection.createRange().text);return""!=b};mxCellEditor.prototype.insertTab=function(b){var d=this.textarea.ownerDocument.defaultView.getSelection(),c=d.getRangeAt(0),g="\t";if(null!=b)for(g="";0<b;)g+=" ",b--;b=
-document.createElement("span");b.style.whiteSpace="pre";b.appendChild(document.createTextNode(g));c.insertNode(b);c.setStartAfter(b);c.setEndAfter(b);d.removeAllRanges();d.addRange(c)};mxCellEditor.prototype.alignText=function(b,d){var c=null!=d&&mxEvent.isShiftDown(d);if(c||null!=window.getSelection&&null!=window.getSelection().containsNode){var g=!0;this.graph.processElements(this.textarea,function(b){c||window.getSelection().containsNode(b,!0)?(b.removeAttribute("align"),b.style.textAlign=null):
-g=!1});g&&this.graph.cellEditor.setAlign(b)}document.execCommand("justify"+b.toLowerCase(),!1,null)};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var b=window.getSelection();if(b.getRangeAt&&b.rangeCount){for(var d=[],c=0,g=b.rangeCount;c<g;++c)d.push(b.getRangeAt(c));return d}}else if(document.selection&&document.selection.createRange)return document.selection.createRange();return null};mxCellEditor.prototype.restoreSelection=function(b){try{if(b)if(window.getSelection){sel=
-window.getSelection();sel.removeAllRanges();for(var d=0,c=b.length;d<c;++d)sel.addRange(b[d])}else document.selection&&b.select&&b.select()}catch(xa){}};var t=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=function(b){null!=b.text&&(b.text.replaceLinefeeds="0"!=mxUtils.getValue(b.style,"nl2Br","1"));t.apply(this,arguments)};var z=mxConstraintHandler.prototype.update;mxConstraintHandler.prototype.update=function(b,d){this.isKeepFocusEvent(b)||!mxEvent.isAltDown(b.getEvent())?
-z.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=function(b){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var y=mxCellEditor.prototype.startEditing;mxCellEditor.prototype.startEditing=function(b,d){b=this.graph.getStartEditingCell(b,d);y.apply(this,arguments);var c=this.graph.view.getState(b);this.textarea.className=null!=c&&1==c.style.html?"mxCellEditor geContentEditable":"mxCellEditor mxPlainTextEditor";
-this.codeViewMode=!1;this.switchSelectionState=null;this.graph.setSelectionCell(b);var c=this.graph.getModel().getParent(b),g=this.graph.getCellGeometry(b);if(this.graph.getModel().isEdge(c)&&null!=g&&g.relative||this.graph.getModel().isEdge(b))this.textarea.style.outline=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_FF&&mxClient.IS_WIN?"gray dotted 1px":""};var F=mxCellEditor.prototype.installListeners;mxCellEditor.prototype.installListeners=function(b){function d(b,c){c.originalNode=b;b=b.firstChild;
-for(var g=c.firstChild;null!=b&&null!=g;)d(b,g),b=b.nextSibling,g=g.nextSibling;return c}function c(b,d){if(null!=b)if(d.originalNode!=b)g(b);else for(b=b.firstChild,d=d.firstChild;null!=b;){var e=b.nextSibling;null==d?g(b):(c(b,d),d=d.nextSibling);b=e}}function g(b){for(var d=b.firstChild;null!=d;){var c=d.nextSibling;g(d);d=c}1==b.nodeType&&("BR"===b.nodeName||null!=b.firstChild)||3==b.nodeType&&0!=mxUtils.trim(mxUtils.getTextContent(b)).length?(3==b.nodeType&&mxUtils.setTextContent(b,mxUtils.getTextContent(b).replace(/\n|\r/g,
-"")),1==b.nodeType&&(b.removeAttribute("style"),b.removeAttribute("class"),b.removeAttribute("width"),b.removeAttribute("cellpadding"),b.removeAttribute("cellspacing"),b.removeAttribute("border"))):b.parentNode.removeChild(b)}F.apply(this,arguments);7!==document.documentMode&&8!==document.documentMode&&mxEvent.addListener(this.textarea,"paste",mxUtils.bind(this,function(b){var g=d(this.textarea,this.textarea.cloneNode(!0));window.setTimeout(mxUtils.bind(this,function(){null!=this.textarea&&(0<=this.textarea.innerHTML.indexOf("<o:OfficeDocumentSettings>")||
-0<=this.textarea.innerHTML.indexOf("\x3c!--[if !mso]>")?c(this.textarea,g):Graph.removePasteFormatting(this.textarea))}),0)}))};mxCellEditor.prototype.toggleViewMode=function(){var b=this.graph.view.getState(this.editingCell);if(null!=b){var d=null!=b&&"0"!=mxUtils.getValue(b.style,"nl2Br","1"),c=this.saveSelection();if(this.codeViewMode){m=mxUtils.extractTextWithWhitespace(this.textarea.childNodes);0<m.length&&"\n"==m.charAt(m.length-1)&&(m=m.substring(0,m.length-1));m=this.graph.sanitizeHtml(d?
-m.replace(/\n/g,"<br/>"):m,!0);this.textarea.className="mxCellEditor geContentEditable";var g=mxUtils.getValue(b.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE),d=mxUtils.getValue(b.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY),e=mxUtils.getValue(b.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),k=(mxUtils.getValue(b.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,f=(mxUtils.getValue(b.style,mxConstants.STYLE_FONTSTYLE,0)&
-mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,l=[];(mxUtils.getValue(b.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&l.push("underline");(mxUtils.getValue(b.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&l.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(g*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(g)+
-"px";this.textarea.style.textDecoration=l.join(" ");this.textarea.style.fontWeight=k?"bold":"normal";this.textarea.style.fontStyle=f?"italic":"";this.textarea.style.fontFamily=d;this.textarea.style.textAlign=e;this.textarea.style.padding="0px";this.textarea.innerHTML!=m&&(this.textarea.innerHTML=m,0==this.textarea.innerHTML.length&&(this.textarea.innerHTML=this.getEmptyLabelText(),this.clearOnChange=0<this.textarea.innerHTML.length));this.codeViewMode=!1}else{this.clearOnChange&&this.textarea.innerHTML==
-this.getEmptyLabelText()&&(this.clearOnChange=!1,this.textarea.innerHTML="");var m=mxUtils.htmlEntities(this.textarea.innerHTML);8!=document.documentMode&&(m=mxUtils.replaceTrailingNewlines(m,"<div><br></div>"));m=this.graph.sanitizeHtml(d?m.replace(/\n/g,"").replace(/&lt;br\s*.?&gt;/g,"<br>"):m,!0);this.textarea.className="mxCellEditor mxPlainTextEditor";var g=mxConstants.DEFAULT_FONTSIZE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(g*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;
-this.textarea.style.fontSize=Math.round(g)+"px";this.textarea.style.textDecoration="";this.textarea.style.fontWeight="normal";this.textarea.style.fontStyle="";this.textarea.style.fontFamily=mxConstants.DEFAULT_FONTFAMILY;this.textarea.style.textAlign="left";this.textarea.style.width="";this.textarea.style.padding="2px";this.textarea.innerHTML!=m&&(this.textarea.innerHTML=m);this.codeViewMode=!0}this.textarea.focus();null!=this.switchSelectionState&&this.restoreSelection(this.switchSelectionState);
-this.switchSelectionState=c;this.resize()}};var D=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(b,d){if(null!=this.textarea)if(b=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=b){var c=b.view.scale;this.bounds=mxRectangle.fromRectangle(b);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*c;this.bounds.height=60*c;var g=null!=b.text?b.text.margin:null;null==g&&(g=mxUtils.getAlignmentAsPoint(mxUtils.getValue(b.style,mxConstants.STYLE_ALIGN,
-mxConstants.ALIGN_CENTER),mxUtils.getValue(b.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));this.bounds.x+=g.x*this.bounds.width;this.bounds.y+=g.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/c)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/c)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight<this.textarea.offsetHeight&&(this.textarea.style.height=Math.round(this.bounds.height/c)+(this.textarea.offsetHeight-
+d.rangeCount){var c=document.createRange();c.selectNode(b);d.removeAllRanges();d.addRange(c)}}else(d=document.selection)&&"Control"!=d.type&&(b=d.createRange(),b.collapse(!0),c=d.createRange(),c.setEndPoint("StartToStart",b),c.select())};Graph.prototype.flipEdgePoints=function(b,d,c){var g=this.getCellGeometry(b);if(null!=g){g=g.clone();if(null!=g.points)for(var e=0;e<g.points.length;e++)d?g.points[e].x=c+(c-g.points[e].x):g.points[e].y=c+(c-g.points[e].y);e=function(b){null!=b&&(d?b.x=c+(c-b.x):
+b.y=c+(c-b.y))};e(g.getTerminalPoint(!0));e(g.getTerminalPoint(!1));this.model.setGeometry(b,g)}};Graph.prototype.flipChildren=function(b,d,c){this.model.beginUpdate();try{for(var g=this.model.getChildCount(b),e=0;e<g;e++){var k=this.model.getChildAt(b,e);if(this.model.isEdge(k))this.flipEdgePoints(k,d,c);else{var f=this.getCellGeometry(k);null!=f&&(f=f.clone(),d?f.x=c+(c-f.x-f.width):f.y=c+(c-f.y-f.height),this.model.setGeometry(k,f))}}}finally{this.model.endUpdate()}};Graph.prototype.flipCells=
+function(b,d){this.model.beginUpdate();try{b=this.model.getTopmostCells(b);for(var c=[],g=0;g<b.length;g++)if(this.model.isEdge(b[g])){var e=this.view.getState(b[g]);null!=e&&this.flipEdgePoints(b[g],d,(d?e.getCenterX():e.getCenterY())/this.view.scale-(d?e.origin.x:e.origin.y)-(d?this.view.translate.x:this.view.translate.y))}else{var k=this.getCellGeometry(b[g]);null!=k&&this.flipChildren(b[g],d,d?k.getCenterX()-k.x:k.getCenterY()-k.y);c.push(b[g])}this.toggleCellStyles(d?mxConstants.STYLE_FLIPH:
+mxConstants.STYLE_FLIPV,!1,c)}finally{this.model.endUpdate()}};Graph.prototype.deleteCells=function(b,d){var c=null;if(null!=b&&0<b.length){this.model.beginUpdate();try{for(var g=0;g<b.length;g++){var e=this.model.getParent(b[g]);if(this.isTable(e)){var k=this.getCellGeometry(b[g]),f=this.getCellGeometry(e);null!=k&&null!=f&&(f=f.clone(),f.height-=k.height,this.model.setGeometry(e,f))}}var l=this.selectParentAfterDelete?this.model.getParents(b):null;this.removeCells(b,d)}finally{this.model.endUpdate()}if(null!=
+l)for(c=[],g=0;g<l.length;g++)this.model.contains(l[g])&&(this.model.isVertex(l[g])||this.model.isEdge(l[g]))&&c.push(l[g])}return c};Graph.prototype.insertTableColumn=function(b,d){var c=this.getModel();c.beginUpdate();try{var g=b,e=0;if(this.isTableCell(b))var k=c.getParent(b),g=c.getParent(k),e=mxUtils.indexOf(c.getChildCells(k,!0),b);else this.isTableRow(b)?g=c.getParent(b):b=c.getChildCells(g,!0)[0],d||(e=c.getChildCells(b,!0).length-1);for(var f=c.getChildCells(g,!0),l=Graph.minTableColumnWidth,
+k=0;k<f.length;k++){var m=c.getChildCells(f[k],!0)[e],p=c.cloneCell(m,!1),x=this.getCellGeometry(p);p.value=null;p.style=mxUtils.setStyle(mxUtils.setStyle(p.style,"rowspan",null),"colspan",null);if(null!=x){null!=x.alternateBounds&&(x.width=x.alternateBounds.width,x.height=x.alternateBounds.height,x.alternateBounds=null);var l=x.width,u=this.getCellGeometry(f[k]);null!=u&&(x.height=u.height)}c.add(f[k],p,e+(d?0:1))}var n=this.getCellGeometry(g);null!=n&&(n=n.clone(),n.width+=l,c.setGeometry(g,n))}finally{c.endUpdate()}};
+Graph.prototype.deleteLane=function(b){var d=this.getModel();d.beginUpdate();try{var c=null,c="stackLayout"==this.getCurrentCellStyle(b).childLayout?b:d.getParent(b),g=d.getChildCells(c,!0);0==g.length?d.remove(c):(c==b&&(b=g[g.length-1]),d.remove(b))}finally{d.endUpdate()}};Graph.prototype.insertLane=function(b,d){var c=this.getModel();c.beginUpdate();try{var g=null,e=b;if("stackLayout"==this.getCurrentCellStyle(e).childLayout)var g=e,k=c.getChildCells(g,!0),e=k[d?0:k.length-1];else g=c.getParent(e);
+var f=g.getIndex(e),e=c.cloneCell(e,!1);e.value=null;c.add(g,e,f+(d?0:1))}finally{c.endUpdate()}};Graph.prototype.insertTableRow=function(b,d){var c=this.getModel();c.beginUpdate();try{var g=b,e=b;if(this.isTableCell(b))e=c.getParent(b),g=c.getParent(e);else if(this.isTableRow(b))g=c.getParent(b);else var k=c.getChildCells(g,!0),e=k[d?0:k.length-1];var f=c.getChildCells(e,!0),l=g.getIndex(e),e=c.cloneCell(e,!1);e.value=null;var m=this.getCellGeometry(e);if(null!=m){for(k=0;k<f.length;k++){b=c.cloneCell(f[k],
+!1);b.value=null;b.style=mxUtils.setStyle(mxUtils.setStyle(b.style,"rowspan",null),"colspan",null);var p=this.getCellGeometry(b);null!=p&&(null!=p.alternateBounds&&(p.width=p.alternateBounds.width,p.height=p.alternateBounds.height,p.alternateBounds=null),p.height=m.height);e.insert(b)}c.add(g,e,l+(d?0:1));var x=this.getCellGeometry(g);null!=x&&(x=x.clone(),x.height+=m.height,c.setGeometry(g,x))}}finally{c.endUpdate()}};Graph.prototype.deleteTableColumn=function(b){var d=this.getModel();d.beginUpdate();
+try{var c=b,g=b;this.isTableCell(b)&&(g=d.getParent(b));this.isTableRow(g)&&(c=d.getParent(g));var e=d.getChildCells(c,!0);if(0==e.length)d.remove(c);else{this.isTableRow(g)||(g=e[0]);var k=d.getChildCells(g,!0);if(1>=k.length)d.remove(c);else{var f=k.length-1;this.isTableCell(b)&&(f=mxUtils.indexOf(k,b));for(g=b=0;g<e.length;g++){var l=d.getChildCells(e[g],!0)[f];d.remove(l);var m=this.getCellGeometry(l);null!=m&&(b=Math.max(b,m.width))}var p=this.getCellGeometry(c);null!=p&&(p=p.clone(),p.width-=
+b,d.setGeometry(c,p))}}}finally{d.endUpdate()}};Graph.prototype.deleteTableRow=function(b){var d=this.getModel();d.beginUpdate();try{var c=b,g=b;this.isTableCell(b)&&(b=g=d.getParent(b));this.isTableRow(b)&&(c=d.getParent(g));var e=d.getChildCells(c,!0);if(1>=e.length)d.remove(c);else{this.isTableRow(g)||(g=e[e.length-1]);d.remove(g);b=0;var k=this.getCellGeometry(g);null!=k&&(b=k.height);var f=this.getCellGeometry(c);null!=f&&(f=f.clone(),f.height-=b,d.setGeometry(c,f))}}finally{d.endUpdate()}};
+Graph.prototype.insertRow=function(b,d){for(var c=b.tBodies[0],g=c.rows[0].cells,e=0,k=0;k<g.length;k++)var f=g[k].getAttribute("colspan"),e=e+(null!=f?parseInt(f):1);c=c.insertRow(d);for(k=0;k<e;k++)mxUtils.br(c.insertCell(-1));return c.cells[0]};Graph.prototype.deleteRow=function(b,d){b.tBodies[0].deleteRow(d)};Graph.prototype.insertColumn=function(b,d){var c=b.tHead;if(null!=c)for(var g=0;g<c.rows.length;g++){var e=document.createElement("th");c.rows[g].appendChild(e);mxUtils.br(e)}c=b.tBodies[0];
+for(g=0;g<c.rows.length;g++)e=c.rows[g].insertCell(d),mxUtils.br(e);return c.rows[0].cells[0<=d?d:c.rows[0].cells.length-1]};Graph.prototype.deleteColumn=function(b,d){if(0<=d)for(var c=b.tBodies[0].rows,g=0;g<c.length;g++)c[g].cells.length>d&&c[g].deleteCell(d)};Graph.prototype.pasteHtmlAtCaret=function(b){var d;if(window.getSelection){if(d=window.getSelection(),d.getRangeAt&&d.rangeCount){d=d.getRangeAt(0);d.deleteContents();var c=document.createElement("div");c.innerHTML=b;b=document.createDocumentFragment();
+for(var g;g=c.firstChild;)lastNode=b.appendChild(g);d.insertNode(b)}}else(d=document.selection)&&"Control"!=d.type&&d.createRange().pasteHTML(b)};Graph.prototype.createLinkForHint=function(b,d){function c(b,d){b.length>d&&(b=b.substring(0,Math.round(d/2))+"..."+b.substring(b.length-Math.round(d/4)));return b}b=null!=b?b:"javascript:void(0);";if(null==d||0==d.length)d=this.isCustomLink(b)?this.getLinkTitle(b):b;var g=document.createElement("a");g.setAttribute("rel",this.linkRelation);g.setAttribute("href",
+this.getAbsoluteUrl(b));g.setAttribute("title",c(this.isCustomLink(b)?this.getLinkTitle(b):b,80));null!=this.linkTarget&&g.setAttribute("target",this.linkTarget);mxUtils.write(g,c(d,40));this.isCustomLink(b)&&mxEvent.addListener(g,"click",mxUtils.bind(this,function(d){this.customLinkClicked(b);mxEvent.consume(d)}));return g};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};this.addListener(mxEvent.START_EDITING,
+function(b,d){this.popupMenuHandler.hideMenu()});var b=this.updateMouseEvent;this.updateMouseEvent=function(d){d=b.apply(this,arguments);if(mxEvent.isTouchEvent(d.getEvent())&&null==d.getState()){var c=this.getCellAt(d.graphX,d.graphY);null!=c&&this.isSwimlane(c)&&this.hitsSwimlaneContent(c,d.graphX,d.graphY)||(d.state=this.view.getState(c),null!=d.state&&null!=d.state.shape&&(this.container.style.cursor=d.state.shape.node.style.cursor))}null==d.getState()&&this.isEnabled()&&(this.container.style.cursor=
+"default");return d};var d=!1,c=!1,g=!1,e=this.fireMouseEvent;this.fireMouseEvent=function(b,k,f){b==mxEvent.MOUSE_DOWN&&(k=this.updateMouseEvent(k),d=this.isCellSelected(k.getCell()),c=this.isSelectionEmpty(),g=this.popupMenuHandler.isMenuShowing());e.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(b,e){var k=mxEvent.isMouseEvent(e.getEvent());this.popupMenuHandler.popupTrigger=!this.isEditing()&&this.isEnabled()&&(null==e.getState()||!e.isSource(e.getState().control))&&
+(this.popupMenuHandler.popupTrigger||!g&&!k&&(c&&null==e.getCell()&&this.isSelectionEmpty()||d&&this.isCellSelected(e.getCell())));k=!d||k?null:mxUtils.bind(this,function(b){window.setTimeout(mxUtils.bind(this,function(){if(!this.isEditing()){var d=mxUtils.getScrollOrigin();this.popupMenuHandler.popup(e.getX()+d.x+1,e.getY()+d.y+1,b,e.getEvent())}}),500)});mxPopupMenuHandler.prototype.mouseUp.apply(this.popupMenuHandler,[b,e,k])})};mxCellEditor.prototype.isContentEditing=function(){var b=this.graph.view.getState(this.editingCell);
+return null!=b&&1==b.style.html};mxCellEditor.prototype.isTableSelected=function(){return null!=this.graph.getParentByName(this.graph.getSelectedElement(),"TABLE",this.textarea)};mxCellEditor.prototype.isTextSelected=function(){var b="";window.getSelection?b=window.getSelection():document.getSelection?b=document.getSelection():document.selection&&(b=document.selection.createRange().text);return""!=b};mxCellEditor.prototype.insertTab=function(b){var d=this.textarea.ownerDocument.defaultView.getSelection(),
+c=d.getRangeAt(0),g="\t";if(null!=b)for(g="";0<b;)g+=" ",b--;b=document.createElement("span");b.style.whiteSpace="pre";b.appendChild(document.createTextNode(g));c.insertNode(b);c.setStartAfter(b);c.setEndAfter(b);d.removeAllRanges();d.addRange(c)};mxCellEditor.prototype.alignText=function(b,d){var c=null!=d&&mxEvent.isShiftDown(d);if(c||null!=window.getSelection&&null!=window.getSelection().containsNode){var g=!0;this.graph.processElements(this.textarea,function(b){c||window.getSelection().containsNode(b,
+!0)?(b.removeAttribute("align"),b.style.textAlign=null):g=!1});g&&this.graph.cellEditor.setAlign(b)}document.execCommand("justify"+b.toLowerCase(),!1,null)};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var b=window.getSelection();if(b.getRangeAt&&b.rangeCount){for(var d=[],c=0,g=b.rangeCount;c<g;++c)d.push(b.getRangeAt(c));return d}}else if(document.selection&&document.selection.createRange)return document.selection.createRange();return null};mxCellEditor.prototype.restoreSelection=
+function(b){try{if(b)if(window.getSelection){sel=window.getSelection();sel.removeAllRanges();for(var d=0,c=b.length;d<c;++d)sel.addRange(b[d])}else document.selection&&b.select&&b.select()}catch(za){}};var t=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=function(b){null!=b.text&&(b.text.replaceLinefeeds="0"!=mxUtils.getValue(b.style,"nl2Br","1"));t.apply(this,arguments)};var z=mxConstraintHandler.prototype.update;mxConstraintHandler.prototype.update=function(b,
+d){this.isKeepFocusEvent(b)||!mxEvent.isAltDown(b.getEvent())?z.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=function(b){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var y=mxCellEditor.prototype.startEditing;mxCellEditor.prototype.startEditing=function(b,d){b=this.graph.getStartEditingCell(b,d);y.apply(this,arguments);var c=this.graph.view.getState(b);this.textarea.className=null!=c&&1==c.style.html?
+"mxCellEditor geContentEditable":"mxCellEditor mxPlainTextEditor";this.codeViewMode=!1;this.switchSelectionState=null;this.graph.setSelectionCell(b);var c=this.graph.getModel().getParent(b),g=this.graph.getCellGeometry(b);if(this.graph.getModel().isEdge(c)&&null!=g&&g.relative||this.graph.getModel().isEdge(b))this.textarea.style.outline=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_FF&&mxClient.IS_WIN?"gray dotted 1px":""};var I=mxCellEditor.prototype.installListeners;mxCellEditor.prototype.installListeners=
+function(b){function d(b,c){c.originalNode=b;b=b.firstChild;for(var g=c.firstChild;null!=b&&null!=g;)d(b,g),b=b.nextSibling,g=g.nextSibling;return c}function c(b,d){if(null!=b)if(d.originalNode!=b)g(b);else for(b=b.firstChild,d=d.firstChild;null!=b;){var e=b.nextSibling;null==d?g(b):(c(b,d),d=d.nextSibling);b=e}}function g(b){for(var d=b.firstChild;null!=d;){var c=d.nextSibling;g(d);d=c}1==b.nodeType&&("BR"===b.nodeName||null!=b.firstChild)||3==b.nodeType&&0!=mxUtils.trim(mxUtils.getTextContent(b)).length?
+(3==b.nodeType&&mxUtils.setTextContent(b,mxUtils.getTextContent(b).replace(/\n|\r/g,"")),1==b.nodeType&&(b.removeAttribute("style"),b.removeAttribute("class"),b.removeAttribute("width"),b.removeAttribute("cellpadding"),b.removeAttribute("cellspacing"),b.removeAttribute("border"))):b.parentNode.removeChild(b)}I.apply(this,arguments);7!==document.documentMode&&8!==document.documentMode&&mxEvent.addListener(this.textarea,"paste",mxUtils.bind(this,function(b){var g=d(this.textarea,this.textarea.cloneNode(!0));
+window.setTimeout(mxUtils.bind(this,function(){null!=this.textarea&&(0<=this.textarea.innerHTML.indexOf("<o:OfficeDocumentSettings>")||0<=this.textarea.innerHTML.indexOf("\x3c!--[if !mso]>")?c(this.textarea,g):Graph.removePasteFormatting(this.textarea))}),0)}))};mxCellEditor.prototype.toggleViewMode=function(){var b=this.graph.view.getState(this.editingCell);if(null!=b){var d=null!=b&&"0"!=mxUtils.getValue(b.style,"nl2Br","1"),c=this.saveSelection();if(this.codeViewMode){m=mxUtils.extractTextWithWhitespace(this.textarea.childNodes);
+0<m.length&&"\n"==m.charAt(m.length-1)&&(m=m.substring(0,m.length-1));m=this.graph.sanitizeHtml(d?m.replace(/\n/g,"<br/>"):m,!0);this.textarea.className="mxCellEditor geContentEditable";var g=mxUtils.getValue(b.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE),d=mxUtils.getValue(b.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY),e=mxUtils.getValue(b.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),k=(mxUtils.getValue(b.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==
+mxConstants.FONT_BOLD,f=(mxUtils.getValue(b.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,l=[];(mxUtils.getValue(b.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&l.push("underline");(mxUtils.getValue(b.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&l.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(g*mxConstants.LINE_HEIGHT)+
+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(g)+"px";this.textarea.style.textDecoration=l.join(" ");this.textarea.style.fontWeight=k?"bold":"normal";this.textarea.style.fontStyle=f?"italic":"";this.textarea.style.fontFamily=d;this.textarea.style.textAlign=e;this.textarea.style.padding="0px";this.textarea.innerHTML!=m&&(this.textarea.innerHTML=m,0==this.textarea.innerHTML.length&&(this.textarea.innerHTML=this.getEmptyLabelText(),this.clearOnChange=0<this.textarea.innerHTML.length));
+this.codeViewMode=!1}else{this.clearOnChange&&this.textarea.innerHTML==this.getEmptyLabelText()&&(this.clearOnChange=!1,this.textarea.innerHTML="");var m=mxUtils.htmlEntities(this.textarea.innerHTML);8!=document.documentMode&&(m=mxUtils.replaceTrailingNewlines(m,"<div><br></div>"));m=this.graph.sanitizeHtml(d?m.replace(/\n/g,"").replace(/&lt;br\s*.?&gt;/g,"<br>"):m,!0);this.textarea.className="mxCellEditor mxPlainTextEditor";var g=mxConstants.DEFAULT_FONTSIZE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?
+Math.round(g*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(g)+"px";this.textarea.style.textDecoration="";this.textarea.style.fontWeight="normal";this.textarea.style.fontStyle="";this.textarea.style.fontFamily=mxConstants.DEFAULT_FONTFAMILY;this.textarea.style.textAlign="left";this.textarea.style.width="";this.textarea.style.padding="2px";this.textarea.innerHTML!=m&&(this.textarea.innerHTML=m);this.codeViewMode=!0}this.textarea.focus();null!=this.switchSelectionState&&
+this.restoreSelection(this.switchSelectionState);this.switchSelectionState=c;this.resize()}};var D=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(b,d){if(null!=this.textarea)if(b=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=b){var c=b.view.scale;this.bounds=mxRectangle.fromRectangle(b);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*c;this.bounds.height=60*c;var g=null!=b.text?b.text.margin:null;null==g&&(g=mxUtils.getAlignmentAsPoint(mxUtils.getValue(b.style,
+mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),mxUtils.getValue(b.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));this.bounds.x+=g.x*this.bounds.width;this.bounds.y+=g.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/c)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/c)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight<this.textarea.offsetHeight&&(this.textarea.style.height=Math.round(this.bounds.height/c)+(this.textarea.offsetHeight-
this.textarea.clientHeight)+"px",this.bounds.height=parseInt(this.textarea.style.height)*c);this.textarea.clientWidth<this.textarea.offsetWidth&&(this.textarea.style.width=Math.round(this.bounds.width/c)+(this.textarea.offsetWidth-this.textarea.clientWidth)+"px",this.bounds.width=parseInt(this.textarea.style.width)*c);this.textarea.style.left=Math.round(this.bounds.x)+"px";this.textarea.style.top=Math.round(this.bounds.y)+"px";mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+c+","+
c+")")}else this.textarea.style.height="",this.textarea.style.overflow="",D.apply(this,arguments)};mxCellEditorGetInitialValue=mxCellEditor.prototype.getInitialValue;mxCellEditor.prototype.getInitialValue=function(b,d){if("0"==mxUtils.getValue(b.style,"html","0"))return mxCellEditorGetInitialValue.apply(this,arguments);var c=this.graph.getEditingValue(b.cell,d);"1"==mxUtils.getValue(b.style,"nl2Br","1")&&(c=c.replace(/\n/g,"<br/>"));return c=this.graph.sanitizeHtml(c,!0)};mxCellEditorGetCurrentValue=
-mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=function(b){if("0"==mxUtils.getValue(b.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);var d=this.graph.sanitizeHtml(this.textarea.innerHTML,!0);return d="1"==mxUtils.getValue(b.style,"nl2Br","1")?d.replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>"):d.replace(/\r\n/g,"").replace(/\n/g,"")};var E=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(b){this.codeViewMode&&this.toggleViewMode();
-E.apply(this,arguments);this.focusContainer()};mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(ba){}};var H=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(b,d){this.graph.getModel().beginUpdate();try{H.apply(this,arguments),""==d&&this.graph.isCellDeletable(b.cell)&&0==this.graph.model.getChildCount(b.cell)&&this.graph.isTransparentState(b)&&this.graph.removeCells([b.cell],!1)}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor=
+mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=function(b){if("0"==mxUtils.getValue(b.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);var d=this.graph.sanitizeHtml(this.textarea.innerHTML,!0);return d="1"==mxUtils.getValue(b.style,"nl2Br","1")?d.replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>"):d.replace(/\r\n/g,"").replace(/\n/g,"")};var F=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(b){this.codeViewMode&&this.toggleViewMode();
+F.apply(this,arguments);this.focusContainer()};mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(Z){}};var E=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(b,d){this.graph.getModel().beginUpdate();try{E.apply(this,arguments),""==d&&this.graph.isCellDeletable(b.cell)&&0==this.graph.model.getChildCount(b.cell)&&this.graph.isTransparentState(b)&&this.graph.removeCells([b.cell],!1)}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor=
function(b){var d=mxUtils.getValue(b.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null);null!=d&&d!=mxConstants.NONE||!(null!=b.cell.geometry&&0<b.cell.geometry.width)||0==mxUtils.getValue(b.style,mxConstants.STYLE_ROTATION,0)&&0!=mxUtils.getValue(b.style,mxConstants.STYLE_HORIZONTAL,1)||(d=mxUtils.getValue(b.style,mxConstants.STYLE_FILLCOLOR,null));d==mxConstants.NONE&&(d=null);return d};mxCellEditor.prototype.getBorderColor=function(b){var d=mxUtils.getValue(b.style,mxConstants.STYLE_LABEL_BORDERCOLOR,
null);null!=d&&d!=mxConstants.NONE||!(null!=b.cell.geometry&&0<b.cell.geometry.width)||0==mxUtils.getValue(b.style,mxConstants.STYLE_ROTATION,0)&&0!=mxUtils.getValue(b.style,mxConstants.STYLE_HORIZONTAL,1)||(d=mxUtils.getValue(b.style,mxConstants.STYLE_STROKECOLOR,null));d==mxConstants.NONE&&(d=null);return d};mxCellEditor.prototype.getMinimumSize=function(b){var d=this.graph.getView().scale;return new mxRectangle(0,0,null==b.text?30:b.text.size*d+20,30)};mxGraphHandlerIsValidDropTarget=mxGraphHandler.prototype.isValidDropTarget;
mxGraphHandler.prototype.isValidDropTarget=function(b,d){return mxGraphHandlerIsValidDropTarget.apply(this,arguments)&&!mxEvent.isAltDown(d.getEvent)};mxGraphView.prototype.formatUnitText=function(b){return b?c(b,this.unit):b};mxGraphHandler.prototype.updateHint=function(d){if(null!=this.pBounds&&(null!=this.shape||this.livePreviewActive)){null==this.hint&&(this.hint=b(),this.graph.container.appendChild(this.hint));var g=this.graph.view.translate,e=this.graph.view.scale;d=this.roundLength((this.bounds.x+
-this.currentDx)/e-g.x);g=this.roundLength((this.bounds.y+this.currentDy)/e-g.y);e=this.graph.view.unit;this.hint.innerHTML=c(d,e)+", "+c(g,e);this.hint.style.left=this.pBounds.x+this.currentDx+Math.round((this.pBounds.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=this.pBounds.y+this.currentDy+this.pBounds.height+Editor.hintOffset+"px"}};mxGraphHandler.prototype.removeHint=function(){null!=this.hint&&(this.hint.parentNode.removeChild(this.hint),this.hint=null)};var N=mxStackLayout.prototype.resizeCell;
-mxStackLayout.prototype.resizeCell=function(b,d){N.apply(this,arguments);var c=this.graph.getCellStyle(b);if(null==c.childLayout){var g=this.graph.model.getParent(b),e=null!=g?this.graph.getCellGeometry(g):null;if(null!=e&&(c=this.graph.getCellStyle(g),"stackLayout"==c.childLayout)){var k=parseFloat(mxUtils.getValue(c,"stackBorder",mxStackLayout.prototype.border)),c="1"==mxUtils.getValue(c,"horizontalStack","1"),f=this.graph.getActualStartSize(g),e=e.clone();c?e.height=d.height+f.y+f.height+2*k:e.width=
-d.width+f.x+f.width+2*k;this.graph.model.setGeometry(g,e)}}};var A=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){function b(b){c.get(b)||(c.put(b,!0),e.push(b))}for(var d=A.apply(this,arguments),c=new mxDictionary,g=this.graph.model,e=[],k=0;k<d.length;k++){var f=d[k];this.graph.isTableCell(f)?b(g.getParent(g.getParent(f))):this.graph.isTableRow(f)&&b(g.getParent(f));b(f)}return e};var G=mxVertexHandler.prototype.createParentHighlightShape;
-mxVertexHandler.prototype.createParentHighlightShape=function(b){var d=G.apply(this,arguments);d.stroke="#C0C0C0";d.strokewidth=1;return d};var I=mxEdgeHandler.prototype.createParentHighlightShape;mxEdgeHandler.prototype.createParentHighlightShape=function(b){var d=I.apply(this,arguments);d.stroke="#C0C0C0";d.strokewidth=1;return d};mxVertexHandler.prototype.rotationHandleVSpacing=-12;mxVertexHandler.prototype.getRotationHandlePosition=function(){var b=this.getHandlePadding();return new mxPoint(this.bounds.x+
+this.currentDx)/e-g.x);g=this.roundLength((this.bounds.y+this.currentDy)/e-g.y);e=this.graph.view.unit;this.hint.innerHTML=c(d,e)+", "+c(g,e);this.hint.style.left=this.pBounds.x+this.currentDx+Math.round((this.pBounds.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=this.pBounds.y+this.currentDy+this.pBounds.height+Editor.hintOffset+"px"}};mxGraphHandler.prototype.removeHint=function(){null!=this.hint&&(this.hint.parentNode.removeChild(this.hint),this.hint=null)};var O=mxStackLayout.prototype.resizeCell;
+mxStackLayout.prototype.resizeCell=function(b,d){O.apply(this,arguments);var c=this.graph.getCellStyle(b);if(null==c.childLayout){var g=this.graph.model.getParent(b),e=null!=g?this.graph.getCellGeometry(g):null;if(null!=e&&(c=this.graph.getCellStyle(g),"stackLayout"==c.childLayout)){var k=parseFloat(mxUtils.getValue(c,"stackBorder",mxStackLayout.prototype.border)),c="1"==mxUtils.getValue(c,"horizontalStack","1"),f=this.graph.getActualStartSize(g),e=e.clone();c?e.height=d.height+f.y+f.height+2*k:e.width=
+d.width+f.x+f.width+2*k;this.graph.model.setGeometry(g,e)}}};var B=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){function b(b){c.get(b)||(c.put(b,!0),e.push(b))}for(var d=B.apply(this,arguments),c=new mxDictionary,g=this.graph.model,e=[],k=0;k<d.length;k++){var f=d[k];this.graph.isTableCell(f)?b(g.getParent(g.getParent(f))):this.graph.isTableRow(f)&&b(g.getParent(f));b(f)}return e};var G=mxVertexHandler.prototype.createParentHighlightShape;
+mxVertexHandler.prototype.createParentHighlightShape=function(b){var d=G.apply(this,arguments);d.stroke="#C0C0C0";d.strokewidth=1;return d};var H=mxEdgeHandler.prototype.createParentHighlightShape;mxEdgeHandler.prototype.createParentHighlightShape=function(b){var d=H.apply(this,arguments);d.stroke="#C0C0C0";d.strokewidth=1;return d};mxVertexHandler.prototype.rotationHandleVSpacing=-12;mxVertexHandler.prototype.getRotationHandlePosition=function(){var b=this.getHandlePadding();return new mxPoint(this.bounds.x+
this.bounds.width-this.rotationHandleVSpacing+b.x/2,this.bounds.y+this.rotationHandleVSpacing-b.y/2)};mxVertexHandler.prototype.isRecursiveResize=function(b,d){return this.graph.isRecursiveVertexResize(b)&&!mxEvent.isControlDown(d.getEvent())};mxVertexHandler.prototype.isCenteredEvent=function(b,d){return!(!this.graph.isSwimlane(b.cell)&&0<this.graph.model.getChildCount(b.cell)&&!this.graph.isCellCollapsed(b.cell)&&"1"==mxUtils.getValue(b.style,"recursiveResize","1")&&null==mxUtils.getValue(b.style,
"childLayout",null))&&mxEvent.isControlDown(d.getEvent())||mxEvent.isMetaDown(d.getEvent())};var L=mxVertexHandler.prototype.isRotationHandleVisible;mxVertexHandler.prototype.isRotationHandleVisible=function(){return L.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTable(this.state.cell)};mxVertexHandler.prototype.getSizerBounds=function(){return this.graph.isTableCell(this.state.cell)?this.graph.view.getState(this.graph.model.getParent(this.graph.model.getParent(this.state.cell))):
-this.bounds};var M=mxVertexHandler.prototype.isParentHighlightVisible;mxVertexHandler.prototype.isParentHighlightVisible=function(){return M.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)};var K=mxVertexHandler.prototype.isCustomHandleVisible;mxVertexHandler.prototype.isCustomHandleVisible=function(b){return b.tableHandle||K.apply(this,arguments)&&(!this.graph.isTable(this.state.cell)||this.graph.isCellSelected(this.state.cell))};mxVertexHandler.prototype.getSelectionBorderInset=
-function(){var b=0;this.graph.isTableRow(this.state.cell)?b=1:this.graph.isTableCell(this.state.cell)&&(b=2);return b};var P=mxVertexHandler.prototype.getSelectionBorderBounds;mxVertexHandler.prototype.getSelectionBorderBounds=function(){return P.apply(this,arguments).grow(-this.getSelectionBorderInset())};var T=null,W=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){null==T&&(T=mxCellRenderer.defaultShapes.tableLine);var b=W.apply(this,arguments);
-if(this.graph.isTable(this.state.cell)){var d=function(b,d,c){for(var g=[],e=0;e<b.length;e++){var f=b[e];g.push(null==f?null:new mxPoint((m+f.x+d)*k,(p+f.y+c)*k))}return g},c=this,g=this.graph,e=g.model,k=g.view.scale,f=this.state,l=this.selectionBorder,m=this.state.origin.x+g.view.translate.x,p=this.state.origin.y+g.view.translate.y;null==b&&(b=[]);var x=g.view.getCellStates(e.getChildCells(this.state.cell,!0));if(0<x.length){for(var v=e.getChildCells(x[0].cell,!0),n=g.getTableLines(this.state.cell,
-!1,!0),t=g.getTableLines(this.state.cell,!0,!1),e=0;e<x.length;e++)mxUtils.bind(this,function(e){var m=x[e],p=e<x.length-1?x[e+1]:null,p=null!=p?g.getCellGeometry(p.cell):null,v=null!=p&&null!=p.alternateBounds?p.alternateBounds:p,p=null!=t[e]?new T(t[e],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!1);p.isDashed=l.isDashed;p.svgStrokeTolerance++;m=new mxHandle(m,"row-resize",null,p);m.tableHandle=!0;var n=0;m.shape.node.parentNode.insertBefore(m.shape.node,m.shape.node.parentNode.firstChild);
-m.redraw=function(){if(null!=this.shape){this.shape.stroke=0==n?mxConstants.NONE:l.stroke;if(this.shape.constructor==T)this.shape.line=d(t[e],0,n),this.shape.updateBoundsFromLine();else{var b=g.getActualStartSize(f.cell,!0);this.shape.bounds.height=1;this.shape.bounds.y=this.state.y+this.state.height+n*k;this.shape.bounds.x=f.x+(e==x.length-1?0:b.x*k);this.shape.bounds.width=f.width-(e==x.length-1?0:b.width+b.x+k)}this.shape.redraw()}};var u=!1;m.setPosition=function(b,d,c){n=Math.max(Graph.minTableRowHeight-
-b.height,d.y-b.y-b.height);u=mxEvent.isShiftDown(c.getEvent());null!=v&&u&&(n=Math.min(n,v.height-Graph.minTableRowHeight))};m.execute=function(b){if(0!=n)g.setTableRowHeight(this.state.cell,n,!u);else if(!c.blockDelayedSelection){var d=g.getCellAt(b.getGraphX(),b.getGraphY())||f.cell;g.graphHandler.selectCellForEvent(d,b)}n=0};m.reset=function(){n=0};b.push(m)})(e);for(e=0;e<v.length;e++)mxUtils.bind(this,function(e){var m=g.view.getState(v[e]),p=g.getCellGeometry(v[e]),x=null!=p.alternateBounds?
-p.alternateBounds:p;null==m&&(m=new mxCellState(g.view,v[e],g.getCellStyle(v[e])),m.x=f.x+p.x*k,m.y=f.y+p.y*k,m.width=x.width*k,m.height=x.height*k,m.updateCachedBounds());var p=e<v.length-1?v[e+1]:null,p=null!=p?g.getCellGeometry(p):null,t=null!=p&&null!=p.alternateBounds?p.alternateBounds:p,p=null!=n[e]?new T(n[e],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!0);p.isDashed=l.isDashed;p.svgStrokeTolerance++;m=new mxHandle(m,"col-resize",null,p);m.tableHandle=!0;var u=0;m.shape.node.parentNode.insertBefore(m.shape.node,
-m.shape.node.parentNode.firstChild);m.redraw=function(){if(null!=this.shape){this.shape.stroke=0==u?mxConstants.NONE:l.stroke;if(this.shape.constructor==T)this.shape.line=d(n[e],u,0),this.shape.updateBoundsFromLine();else{var b=g.getActualStartSize(f.cell,!0);this.shape.bounds.width=1;this.shape.bounds.x=this.state.x+(x.width+u)*k;this.shape.bounds.y=f.y+(e==v.length-1?0:b.y*k);this.shape.bounds.height=f.height-(e==v.length-1?0:(b.height+b.y)*k)}this.shape.redraw()}};var y=!1;m.setPosition=function(b,
-d,c){u=Math.max(Graph.minTableColumnWidth-x.width,d.x-b.x-x.width);y=mxEvent.isShiftDown(c.getEvent());null==t||y||(u=Math.min(u,t.width-Graph.minTableColumnWidth))};m.execute=function(b){if(0!=u)g.setTableColumnWidth(this.state.cell,u,y);else if(!c.blockDelayedSelection){var d=g.getCellAt(b.getGraphX(),b.getGraphY())||f.cell;g.graphHandler.selectCellForEvent(d,b)}u=0};m.positionChanged=function(){};m.reset=function(){u=0};b.push(m)})(e)}}return null!=b?b.reverse():null};var ga=mxVertexHandler.prototype.setHandlesVisible;
+this.bounds};var N=mxVertexHandler.prototype.isParentHighlightVisible;mxVertexHandler.prototype.isParentHighlightVisible=function(){return N.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)};var M=mxVertexHandler.prototype.isCustomHandleVisible;mxVertexHandler.prototype.isCustomHandleVisible=function(b){return b.tableHandle||M.apply(this,arguments)&&(!this.graph.isTable(this.state.cell)||this.graph.isCellSelected(this.state.cell))};mxVertexHandler.prototype.getSelectionBorderInset=
+function(){var b=0;this.graph.isTableRow(this.state.cell)?b=1:this.graph.isTableCell(this.state.cell)&&(b=2);return b};var P=mxVertexHandler.prototype.getSelectionBorderBounds;mxVertexHandler.prototype.getSelectionBorderBounds=function(){return P.apply(this,arguments).grow(-this.getSelectionBorderInset())};var V=null,W=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){null==V&&(V=mxCellRenderer.defaultShapes.tableLine);var b=W.apply(this,arguments);
+if(this.graph.isTable(this.state.cell)){var d=function(b,d,c){for(var g=[],e=0;e<b.length;e++){var f=b[e];g.push(null==f?null:new mxPoint((m+f.x+d)*k,(p+f.y+c)*k))}return g},c=this,g=this.graph,e=g.model,k=g.view.scale,f=this.state,l=this.selectionBorder,m=this.state.origin.x+g.view.translate.x,p=this.state.origin.y+g.view.translate.y;null==b&&(b=[]);var x=g.view.getCellStates(e.getChildCells(this.state.cell,!0));if(0<x.length){for(var u=e.getChildCells(x[0].cell,!0),n=g.getTableLines(this.state.cell,
+!1,!0),t=g.getTableLines(this.state.cell,!0,!1),e=0;e<x.length;e++)mxUtils.bind(this,function(e){var m=x[e],p=e<x.length-1?x[e+1]:null,p=null!=p?g.getCellGeometry(p.cell):null,u=null!=p&&null!=p.alternateBounds?p.alternateBounds:p,p=null!=t[e]?new V(t[e],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!1);p.isDashed=l.isDashed;p.svgStrokeTolerance++;m=new mxHandle(m,"row-resize",null,p);m.tableHandle=!0;var n=0;m.shape.node.parentNode.insertBefore(m.shape.node,m.shape.node.parentNode.firstChild);
+m.redraw=function(){if(null!=this.shape){this.shape.stroke=0==n?mxConstants.NONE:l.stroke;if(this.shape.constructor==V)this.shape.line=d(t[e],0,n),this.shape.updateBoundsFromLine();else{var b=g.getActualStartSize(f.cell,!0);this.shape.bounds.height=1;this.shape.bounds.y=this.state.y+this.state.height+n*k;this.shape.bounds.x=f.x+(e==x.length-1?0:b.x*k);this.shape.bounds.width=f.width-(e==x.length-1?0:b.width+b.x+k)}this.shape.redraw()}};var v=!1;m.setPosition=function(b,d,c){n=Math.max(Graph.minTableRowHeight-
+b.height,d.y-b.y-b.height);v=mxEvent.isShiftDown(c.getEvent());null!=u&&v&&(n=Math.min(n,u.height-Graph.minTableRowHeight))};m.execute=function(b){if(0!=n)g.setTableRowHeight(this.state.cell,n,!v);else if(!c.blockDelayedSelection){var d=g.getCellAt(b.getGraphX(),b.getGraphY())||f.cell;g.graphHandler.selectCellForEvent(d,b)}n=0};m.reset=function(){n=0};b.push(m)})(e);for(e=0;e<u.length;e++)mxUtils.bind(this,function(e){var m=g.view.getState(u[e]),p=g.getCellGeometry(u[e]),x=null!=p.alternateBounds?
+p.alternateBounds:p;null==m&&(m=new mxCellState(g.view,u[e],g.getCellStyle(u[e])),m.x=f.x+p.x*k,m.y=f.y+p.y*k,m.width=x.width*k,m.height=x.height*k,m.updateCachedBounds());var p=e<u.length-1?u[e+1]:null,p=null!=p?g.getCellGeometry(p):null,t=null!=p&&null!=p.alternateBounds?p.alternateBounds:p,p=null!=n[e]?new V(n[e],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!0);p.isDashed=l.isDashed;p.svgStrokeTolerance++;m=new mxHandle(m,"col-resize",null,p);m.tableHandle=!0;var v=0;m.shape.node.parentNode.insertBefore(m.shape.node,
+m.shape.node.parentNode.firstChild);m.redraw=function(){if(null!=this.shape){this.shape.stroke=0==v?mxConstants.NONE:l.stroke;if(this.shape.constructor==V)this.shape.line=d(n[e],v,0),this.shape.updateBoundsFromLine();else{var b=g.getActualStartSize(f.cell,!0);this.shape.bounds.width=1;this.shape.bounds.x=this.state.x+(x.width+v)*k;this.shape.bounds.y=f.y+(e==u.length-1?0:b.y*k);this.shape.bounds.height=f.height-(e==u.length-1?0:(b.height+b.y)*k)}this.shape.redraw()}};var y=!1;m.setPosition=function(b,
+d,c){v=Math.max(Graph.minTableColumnWidth-x.width,d.x-b.x-x.width);y=mxEvent.isShiftDown(c.getEvent());null==t||y||(v=Math.min(v,t.width-Graph.minTableColumnWidth))};m.execute=function(b){if(0!=v)g.setTableColumnWidth(this.state.cell,v,y);else if(!c.blockDelayedSelection){var d=g.getCellAt(b.getGraphX(),b.getGraphY())||f.cell;g.graphHandler.selectCellForEvent(d,b)}v=0};m.positionChanged=function(){};m.reset=function(){v=0};b.push(m)})(e)}}return null!=b?b.reverse():null};var ga=mxVertexHandler.prototype.setHandlesVisible;
mxVertexHandler.prototype.setHandlesVisible=function(b){ga.apply(this,arguments);if(null!=this.moveHandles)for(var d=0;d<this.moveHandles.length;d++)this.moveHandles[d].style.visibility=b?"":"hidden";if(null!=this.cornerHandles)for(d=0;d<this.cornerHandles.length;d++)this.cornerHandles[d].node.style.visibility=b?"":"hidden"};mxVertexHandler.prototype.refreshMoveHandles=function(){var b=this.graph.model;if(null!=this.moveHandles){for(var d=0;d<this.moveHandles.length;d++)this.moveHandles[d].parentNode.removeChild(this.moveHandles[d]);
this.moveHandles=null}this.moveHandles=[];for(d=0;d<b.getChildCount(this.state.cell);d++)mxUtils.bind(this,function(d){if(null!=d&&b.isVertex(d.cell)){var c=mxUtils.createImage(Editor.rowMoveImage);c.style.position="absolute";c.style.cursor="pointer";c.style.width="7px";c.style.height="4px";c.style.padding="4px 2px 4px 2px";c.rowState=d;mxEvent.addGestureListeners(c,mxUtils.bind(this,function(b){this.graph.popupMenuHandler.hideMenu();this.graph.stopEditing(!1);!this.graph.isToggleEvent(b)&&this.graph.isCellSelected(d.cell)||
this.graph.selectCellForEvent(d.cell,b);mxEvent.isPopupTrigger(b)||(this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(b),mxEvent.getClientY(b),this.graph.getSelectionCells()),this.graph.graphHandler.cellWasClicked=!0,this.graph.isMouseTrigger=mxEvent.isMouseEvent(b),this.graph.isMouseDown=!0);mxEvent.consume(b)}),null,mxUtils.bind(this,function(b){mxEvent.isPopupTrigger(b)&&(this.graph.popupMenuHandler.popup(mxEvent.getClientX(b),mxEvent.getClientY(b),d.cell,b),mxEvent.consume(b))}));
-this.moveHandles.push(c);this.graph.container.appendChild(c)}})(this.graph.view.getState(b.getChildAt(this.state.cell,d)))};mxVertexHandler.prototype.refresh=function(){if(null!=this.customHandles){for(var b=0;b<this.customHandles.length;b++)this.customHandles[b].destroy();this.customHandles=this.createCustomHandles()}this.graph.isTable(this.state.cell)&&this.refreshMoveHandles()};var ja=mxVertexHandler.prototype.getHandlePadding;mxVertexHandler.prototype.getHandlePadding=function(){var b=new mxPoint(0,
+this.moveHandles.push(c);this.graph.container.appendChild(c)}})(this.graph.view.getState(b.getChildAt(this.state.cell,d)))};mxVertexHandler.prototype.refresh=function(){if(null!=this.customHandles){for(var b=0;b<this.customHandles.length;b++)this.customHandles[b].destroy();this.customHandles=this.createCustomHandles()}this.graph.isTable(this.state.cell)&&this.refreshMoveHandles()};var ea=mxVertexHandler.prototype.getHandlePadding;mxVertexHandler.prototype.getHandlePadding=function(){var b=new mxPoint(0,
0),d=this.tolerance,c=this.state.style.shape;null==mxCellRenderer.defaultShapes[c]&&mxStencilRegistry.getStencil(c);c=this.graph.isTable(this.state.cell)||this.graph.cellEditor.getEditingCell()==this.state.cell;if(!c&&null!=this.customHandles)for(var g=0;g<this.customHandles.length;g++)if(null!=this.customHandles[g].shape&&null!=this.customHandles[g].shape.bounds){var e=this.customHandles[g].shape.bounds,k=e.getCenterX(),f=e.getCenterY();if(Math.abs(this.state.x-k)<e.width/2||Math.abs(this.state.y-
-f)<e.height/2||Math.abs(this.state.x+this.state.width-k)<e.width/2||Math.abs(this.state.y+this.state.height-f)<e.height/2){c=!0;break}}c&&null!=this.sizers&&0<this.sizers.length&&null!=this.sizers[0]?(d/=2,this.graph.isTable(this.state.cell)&&(d+=7),b.x=this.sizers[0].bounds.width+d,b.y=this.sizers[0].bounds.height+d):b=ja.apply(this,arguments);return b};mxVertexHandler.prototype.updateHint=function(d){if(this.index!=mxEvent.LABEL_HANDLE){null==this.hint&&(this.hint=b(),this.state.view.graph.container.appendChild(this.hint));
+f)<e.height/2||Math.abs(this.state.x+this.state.width-k)<e.width/2||Math.abs(this.state.y+this.state.height-f)<e.height/2){c=!0;break}}c&&null!=this.sizers&&0<this.sizers.length&&null!=this.sizers[0]?(d/=2,this.graph.isTable(this.state.cell)&&(d+=7),b.x=this.sizers[0].bounds.width+d,b.y=this.sizers[0].bounds.height+d):b=ea.apply(this,arguments);return b};mxVertexHandler.prototype.updateHint=function(d){if(this.index!=mxEvent.LABEL_HANDLE){null==this.hint&&(this.hint=b(),this.state.view.graph.container.appendChild(this.hint));
if(this.index==mxEvent.ROTATION_HANDLE)this.hint.innerHTML=this.currentAlpha+"&deg;";else{d=this.state.view.scale;var g=this.state.view.unit;this.hint.innerHTML=c(this.roundLength(this.bounds.width/d),g)+" x "+c(this.roundLength(this.bounds.height/d),g)}d=mxUtils.getBoundingBox(this.bounds,null!=this.currentAlpha?this.currentAlpha:this.state.style[mxConstants.STYLE_ROTATION]||"0");null==d&&(d=this.bounds);this.hint.style.left=d.x+Math.round((d.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=
-d.y+d.height+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")}};mxVertexHandler.prototype.removeHint=function(){mxGraphHandler.prototype.removeHint.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.display="")};var X=mxEdgeHandler.prototype.mouseMove;mxEdgeHandler.prototype.mouseMove=function(b,d){X.apply(this,arguments);null!=this.linkHint&&"none"!=this.linkHint.style.display&&null!=this.graph.graphHandler&&null!=this.graph.graphHandler.first&&(this.linkHint.style.display=
+d.y+d.height+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")}};mxVertexHandler.prototype.removeHint=function(){mxGraphHandler.prototype.removeHint.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.display="")};var ba=mxEdgeHandler.prototype.mouseMove;mxEdgeHandler.prototype.mouseMove=function(b,d){ba.apply(this,arguments);null!=this.linkHint&&"none"!=this.linkHint.style.display&&null!=this.graph.graphHandler&&null!=this.graph.graphHandler.first&&(this.linkHint.style.display=
"none")};var x=mxEdgeHandler.prototype.mouseUp;mxEdgeHandler.prototype.mouseUp=function(b,d){x.apply(this,arguments);null!=this.linkHint&&"none"==this.linkHint.style.display&&(this.linkHint.style.display="")};mxEdgeHandler.prototype.updateHint=function(d,g){null==this.hint&&(this.hint=b(),this.state.view.graph.container.appendChild(this.hint));var e=this.graph.view.translate,k=this.graph.view.scale,f=this.roundLength(g.x/k-e.x),e=this.roundLength(g.y/k-e.y),k=this.graph.view.unit;this.hint.innerHTML=
c(f,k)+", "+c(e,k);this.hint.style.visibility="visible";if(this.isSource||this.isTarget)null!=this.constraintHandler.currentConstraint&&null!=this.constraintHandler.currentFocus?(f=this.constraintHandler.currentConstraint.point,this.hint.innerHTML="["+Math.round(100*f.x)+"%, "+Math.round(100*f.y)+"%]"):this.marker.hasValidState()&&(this.hint.style.visibility="hidden");this.hint.style.left=Math.round(d.getGraphX()-this.hint.clientWidth/2)+"px";this.hint.style.top=Math.max(d.getGraphY(),g.y)+Editor.hintOffset+
"px";null!=this.linkHint&&(this.linkHint.style.display="none")};Graph.prototype.expandedImage=Graph.createSvgImage(9,9,'<defs><linearGradient id="grad1" x1="50%" y1="0%" x2="50%" y2="100%"><stop offset="30%" style="stop-color:#f0f0f0;" /><stop offset="100%" style="stop-color:#AFB0B6;" /></linearGradient></defs><rect x="0" y="0" width="9" height="9" stroke="#8A94A5" fill="url(#grad1)" stroke-width="2"/><path d="M 2 4.5 L 7 4.5 z" stroke="#000"/>');Graph.prototype.collapsedImage=Graph.createSvgImage(9,
@@ -2714,177 +2714,177 @@ this.graph.view.getState(l[c]),p=this.graph.getCellGeometry(l[c]);null!=m&&null!
var g=d.getX()+c.x,c=d.getY()+c.y,e=this.first.x-g,k=this.first.y-c,f=this.graph.tolerance;if(null!=this.div||Math.abs(e)>f||Math.abs(k)>f)null==this.div&&(this.div=this.createShape()),mxUtils.clearSelection(),this.update(g,c),this.isSpaceEvent(d)?(g=this.x+this.width,c=this.y+this.height,e=this.graph.view.scale,mxEvent.isAltDown(d.getEvent())||(this.width=this.graph.snap(this.width/e)*e,this.height=this.graph.snap(this.height/e)*e,this.graph.isGridEnabled()||(this.width<this.graph.tolerance&&(this.width=
0),this.height<this.graph.tolerance&&(this.height=0)),this.x<this.first.x&&(this.x=g-this.width),this.y<this.first.y&&(this.y=c-this.height)),this.div.style.borderStyle="dashed",this.div.style.backgroundColor="white",this.div.style.left=this.x+"px",this.div.style.top=this.y+"px",this.div.style.width=Math.max(0,this.width)+"px",this.div.style.height=this.graph.container.clientHeight+"px",this.div.style.borderWidth=0>=this.width?"0px 1px 0px 0px":"0px 1px 0px 1px",null==this.secondDiv&&(this.secondDiv=
this.div.cloneNode(!0),this.div.parentNode.appendChild(this.secondDiv)),this.secondDiv.style.left=this.x+"px",this.secondDiv.style.top=this.y+"px",this.secondDiv.style.width=this.graph.container.clientWidth+"px",this.secondDiv.style.height=Math.max(0,this.height)+"px",this.secondDiv.style.borderWidth=0>=this.height?"1px 0px 0px 0px":"1px 0px 1px 0px"):(this.div.style.backgroundColor="",this.div.style.borderWidth="",this.div.style.borderStyle="",null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),
-this.secondDiv=null)),d.consume()}};var J=mxRubberband.prototype.reset;mxRubberband.prototype.reset=function(){null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);J.apply(this,arguments)};var V=(new Date).getTime(),ca=0,aa=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(b,d,c,g){aa.apply(this,arguments);c!=this.currentTerminalState?(V=(new Date).getTime(),ca=0):ca=(new Date).getTime()-V;this.currentTerminalState=
-c};var da=mxEdgeHandler.prototype.isOutlineConnectEvent;mxEdgeHandler.prototype.isOutlineConnectEvent=function(b){return null!=this.currentTerminalState&&b.getState()==this.currentTerminalState&&2E3<ca||(null==this.currentTerminalState||"0"!=mxUtils.getValue(this.currentTerminalState.style,"outlineConnect","1"))&&da.apply(this,arguments)};mxEdgeHandler.prototype.createHandleShape=function(b,d,c){d=null!=b&&0==b;var g=this.state.getVisibleTerminalState(d);b=null!=b&&(0==b||b>=this.state.absolutePoints.length-
+this.secondDiv=null)),d.consume()}};var J=mxRubberband.prototype.reset;mxRubberband.prototype.reset=function(){null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);J.apply(this,arguments)};var X=(new Date).getTime(),ca=0,ka=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(b,d,c,g){ka.apply(this,arguments);c!=this.currentTerminalState?(X=(new Date).getTime(),ca=0):ca=(new Date).getTime()-X;this.currentTerminalState=
+c};var K=mxEdgeHandler.prototype.isOutlineConnectEvent;mxEdgeHandler.prototype.isOutlineConnectEvent=function(b){return null!=this.currentTerminalState&&b.getState()==this.currentTerminalState&&2E3<ca||(null==this.currentTerminalState||"0"!=mxUtils.getValue(this.currentTerminalState.style,"outlineConnect","1"))&&K.apply(this,arguments)};mxEdgeHandler.prototype.createHandleShape=function(b,d,c){d=null!=b&&0==b;var g=this.state.getVisibleTerminalState(d);b=null!=b&&(0==b||b>=this.state.absolutePoints.length-
1||this.constructor==mxElbowEdgeHandler&&2==b)?this.graph.getConnectionConstraint(this.state,g,d):null;c=null!=(null!=b?this.graph.getConnectionPoint(this.state.getVisibleTerminalState(d),b):null)?c?this.endFixedHandleImage:this.fixedHandleImage:null!=b&&null!=g?c?this.endTerminalHandleImage:this.terminalHandleImage:c?this.endHandleImage:this.handleImage;if(null!=c)return c=new mxImageShape(new mxRectangle(0,0,c.width,c.height),c.src),c.preserveImageAspect=!1,c;c=mxConstants.HANDLE_SIZE;this.preferHtml&&
---c;return new mxRectangleShape(new mxRectangle(0,0,c,c),mxConstants.HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR)};var ta=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(b,d,c){this.handleImage=d==mxEvent.ROTATION_HANDLE?HoverIcons.prototype.rotationHandle:d==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:this.handleImage;return ta.apply(this,arguments)};var ua=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox=function(b){if(null!=
-b&&1==b.length){var d=this.graph.getModel(),c=d.getParent(b[0]),g=this.graph.getCellGeometry(b[0]);if(d.isEdge(c)&&null!=g&&g.relative&&(d=this.graph.view.getState(b[0]),null!=d&&2>d.width&&2>d.height&&null!=d.text&&null!=d.text.boundingBox))return mxRectangle.fromRectangle(d.text.boundingBox)}return ua.apply(this,arguments)};var ha=mxGraphHandler.prototype.getGuideStates;mxGraphHandler.prototype.getGuideStates=function(){for(var b=ha.apply(this,arguments),d=[],c=0;c<b.length;c++)"1"!=mxUtils.getValue(b[c].style,
-"part","0")&&d.push(b[c]);return d};var oa=mxVertexHandler.prototype.getSelectionBounds;mxVertexHandler.prototype.getSelectionBounds=function(b){var d=this.graph.getModel(),c=d.getParent(b.cell),g=this.graph.getCellGeometry(b.cell);return d.isEdge(c)&&null!=g&&g.relative&&2>b.width&&2>b.height&&null!=b.text&&null!=b.text.boundingBox?(d=b.text.unrotatedBoundingBox||b.text.boundingBox,new mxRectangle(Math.round(d.x),Math.round(d.y),Math.round(d.width),Math.round(d.height))):oa.apply(this,arguments)};
-var Y=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(b,d){var c=this.graph.getModel(),g=c.getParent(this.state.cell),e=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(d)==mxEvent.ROTATION_HANDLE||!c.isEdge(g)||null==e||!e.relative||null==this.state||2<=this.state.width||2<=this.state.height)&&Y.apply(this,arguments)};mxVertexHandler.prototype.rotateClick=function(){var b=mxUtils.getValue(this.state.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),
-d=mxUtils.getValue(this.state.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);this.state.view.graph.model.isVertex(this.state.cell)&&b==mxConstants.NONE&&d==mxConstants.NONE?(b=mxUtils.mod(mxUtils.getValue(this.state.style,mxConstants.STYLE_ROTATION,0)+90,360),this.state.view.graph.setCellStyles(mxConstants.STYLE_ROTATION,b,[this.state.cell])):this.state.view.graph.turnShapes([this.state.cell])};var Q=mxVertexHandler.prototype.mouseMove;mxVertexHandler.prototype.mouseMove=function(b,d){Q.apply(this,
-arguments);null!=this.graph.graphHandler.first&&(null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display="none"),null!=this.linkHint&&"none"!=this.linkHint.style.display&&(this.linkHint.style.display="none"))};var ea=mxVertexHandler.prototype.mouseUp;mxVertexHandler.prototype.mouseUp=function(b,d){ea.apply(this,arguments);null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display=1==this.graph.getSelectionCount()?"":"none");
-null!=this.linkHint&&"none"==this.linkHint.style.display&&(this.linkHint.style.display="");this.blockDelayedSelection=null};var S=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){S.apply(this,arguments);var b=!1;null!=this.rotationShape&&this.rotationShape.node.setAttribute("title",mxResources.get("rotateTooltip"));if(this.graph.isTable(this.state.cell))this.refreshMoveHandles();else if(1==this.graph.getSelectionCount()&&(this.graph.isTableCell(this.state.cell)||this.graph.isTableRow(this.state.cell))){this.cornerHandles=
+--c;return new mxRectangleShape(new mxRectangle(0,0,c,c),mxConstants.HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR)};var na=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(b,d,c){this.handleImage=d==mxEvent.ROTATION_HANDLE?HoverIcons.prototype.rotationHandle:d==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:this.handleImage;return na.apply(this,arguments)};var qa=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox=function(b){if(null!=
+b&&1==b.length){var d=this.graph.getModel(),c=d.getParent(b[0]),g=this.graph.getCellGeometry(b[0]);if(d.isEdge(c)&&null!=g&&g.relative&&(d=this.graph.view.getState(b[0]),null!=d&&2>d.width&&2>d.height&&null!=d.text&&null!=d.text.boundingBox))return mxRectangle.fromRectangle(d.text.boundingBox)}return qa.apply(this,arguments)};var pa=mxGraphHandler.prototype.getGuideStates;mxGraphHandler.prototype.getGuideStates=function(){for(var b=pa.apply(this,arguments),d=[],c=0;c<b.length;c++)"1"!=mxUtils.getValue(b[c].style,
+"part","0")&&d.push(b[c]);return d};var ha=mxVertexHandler.prototype.getSelectionBounds;mxVertexHandler.prototype.getSelectionBounds=function(b){var d=this.graph.getModel(),c=d.getParent(b.cell),g=this.graph.getCellGeometry(b.cell);return d.isEdge(c)&&null!=g&&g.relative&&2>b.width&&2>b.height&&null!=b.text&&null!=b.text.boundingBox?(d=b.text.unrotatedBoundingBox||b.text.boundingBox,new mxRectangle(Math.round(d.x),Math.round(d.y),Math.round(d.width),Math.round(d.height))):ha.apply(this,arguments)};
+var sa=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(b,d){var c=this.graph.getModel(),g=c.getParent(this.state.cell),e=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(d)==mxEvent.ROTATION_HANDLE||!c.isEdge(g)||null==e||!e.relative||null==this.state||2<=this.state.width||2<=this.state.height)&&sa.apply(this,arguments)};mxVertexHandler.prototype.rotateClick=function(){var b=mxUtils.getValue(this.state.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),
+d=mxUtils.getValue(this.state.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);this.state.view.graph.model.isVertex(this.state.cell)&&b==mxConstants.NONE&&d==mxConstants.NONE?(b=mxUtils.mod(mxUtils.getValue(this.state.style,mxConstants.STYLE_ROTATION,0)+90,360),this.state.view.graph.setCellStyles(mxConstants.STYLE_ROTATION,b,[this.state.cell])):this.state.view.graph.turnShapes([this.state.cell])};var Y=mxVertexHandler.prototype.mouseMove;mxVertexHandler.prototype.mouseMove=function(b,d){Y.apply(this,
+arguments);null!=this.graph.graphHandler.first&&(null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display="none"),null!=this.linkHint&&"none"!=this.linkHint.style.display&&(this.linkHint.style.display="none"))};var Q=mxVertexHandler.prototype.mouseUp;mxVertexHandler.prototype.mouseUp=function(b,d){Q.apply(this,arguments);null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display=1==this.graph.getSelectionCount()?"":"none");
+null!=this.linkHint&&"none"==this.linkHint.style.display&&(this.linkHint.style.display="");this.blockDelayedSelection=null};var ta=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){ta.apply(this,arguments);var b=!1;null!=this.rotationShape&&this.rotationShape.node.setAttribute("title",mxResources.get("rotateTooltip"));if(this.graph.isTable(this.state.cell))this.refreshMoveHandles();else if(1==this.graph.getSelectionCount()&&(this.graph.isTableCell(this.state.cell)||this.graph.isTableRow(this.state.cell))){this.cornerHandles=
[];for(var d=0;4>d;d++){var c=new mxRectangleShape(new mxRectangle(0,0,6,6),"#ffffff",mxConstants.HANDLE_STROKECOLOR);c.dialect=mxConstants.DIALECT_SVG;c.init(this.graph.view.getOverlayPane());this.cornerHandles.push(c)}}var g=mxUtils.bind(this,function(){null!=this.specialHandle&&(this.specialHandle.node.style.display=this.graph.isEnabled()&&this.graph.getSelectionCount()<this.graph.graphHandler.maxCells?"":"none");this.redrawHandles()});this.changeHandler=mxUtils.bind(this,function(b,d){this.updateLinkHint(this.graph.getLinkForCell(this.state.cell),
this.graph.getLinksForState(this.state));g()});this.graph.getSelectionModel().addListener(mxEvent.CHANGE,this.changeHandler);this.graph.getModel().addListener(mxEvent.CHANGE,this.changeHandler);this.editingHandler=mxUtils.bind(this,function(b,d){this.redrawHandles()});this.graph.addListener(mxEvent.EDITING_STOPPED,this.editingHandler);d=this.graph.getLinkForCell(this.state.cell);c=this.graph.getLinksForState(this.state);this.updateLinkHint(d,c);if(null!=d||null!=c&&0<c.length)b=!0;b&&this.redrawHandles()};
mxVertexHandler.prototype.updateLinkHint=function(d,c){try{if(null==d&&(null==c||0==c.length)||1<this.graph.getSelectionCount())null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);else if(null!=d||null!=c&&0<c.length){null==this.linkHint&&(this.linkHint=b(),this.linkHint.style.padding="6px 8px 6px 8px",this.linkHint.style.opacity="1",this.linkHint.style.filter="",this.graph.container.appendChild(this.linkHint),mxEvent.addListener(this.linkHint,"mouseenter",
mxUtils.bind(this,function(){this.graph.tooltipHandler.hide()})));this.linkHint.innerHTML="";if(null!=d&&(this.linkHint.appendChild(this.graph.createLinkForHint(d)),this.graph.isEnabled()&&"function"===typeof this.graph.editLink)){var g=document.createElement("img");g.setAttribute("src",Editor.editImage);g.setAttribute("title",mxResources.get("editLink"));g.setAttribute("width","11");g.setAttribute("height","11");g.style.marginLeft="10px";g.style.marginBottom="-1px";g.style.cursor="pointer";this.linkHint.appendChild(g);
mxEvent.addListener(g,"click",mxUtils.bind(this,function(b){this.graph.setSelectionCell(this.state.cell);this.graph.editLink();mxEvent.consume(b)}));this.linkHint.appendChildGraph.createRemoveIcon(mxResources.get("removeIt",[mxResources.get("link")]),mxUtils.bind(this,function(b){this.graph.setLinkForCell(this.state.cell,null);mxEvent.consume(b)}))}if(null!=c)for(g=0;g<c.length;g++){var e=document.createElement("div");e.style.marginTop=null!=d||0<g?"6px":"0px";e.appendChild(this.graph.createLinkForHint(c[g].getAttribute("href"),
-mxUtils.getTextContent(c[g])));this.linkHint.appendChild(e)}}}catch(sa){}};mxEdgeHandler.prototype.updateLinkHint=mxVertexHandler.prototype.updateLinkHint;var ma=mxEdgeHandler.prototype.init;mxEdgeHandler.prototype.init=function(){ma.apply(this,arguments);this.constraintHandler.isEnabled=mxUtils.bind(this,function(){return this.state.view.graph.connectionHandler.isEnabled()});var b=mxUtils.bind(this,function(){null!=this.linkHint&&(this.linkHint.style.display=1==this.graph.getSelectionCount()?"":
-"none");null!=this.labelShape&&(this.labelShape.node.style.display=this.graph.isEnabled()&&this.graph.getSelectionCount()<this.graph.graphHandler.maxCells?"":"none")});this.changeHandler=mxUtils.bind(this,function(d,c){this.updateLinkHint(this.graph.getLinkForCell(this.state.cell),this.graph.getLinksForState(this.state));b();this.redrawHandles()});this.graph.getSelectionModel().addListener(mxEvent.CHANGE,this.changeHandler);this.graph.getModel().addListener(mxEvent.CHANGE,this.changeHandler);var d=
-this.graph.getLinkForCell(this.state.cell),c=this.graph.getLinksForState(this.state);if(null!=d||null!=c&&0<c.length)this.updateLinkHint(d,c),this.redrawHandles()};var pa=mxConnectionHandler.prototype.init;mxConnectionHandler.prototype.init=function(){pa.apply(this,arguments);this.constraintHandler.isEnabled=mxUtils.bind(this,function(){return this.graph.connectionHandler.isEnabled()})};var ra=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){if(null!=this.moveHandles)for(var b=
-0;b<this.moveHandles.length;b++)this.moveHandles[b].style.left=this.moveHandles[b].rowState.x+this.moveHandles[b].rowState.width-5+"px",this.moveHandles[b].style.top=this.moveHandles[b].rowState.y+this.moveHandles[b].rowState.height/2-6+"px";if(null!=this.cornerHandles){var b=this.getSelectionBorderInset(),d=this.cornerHandles,c=d[0].bounds.height/2;d[0].bounds.x=this.state.x-d[0].bounds.width/2+b;d[0].bounds.y=this.state.y-c+b;d[0].redraw();d[1].bounds.x=d[0].bounds.x+this.state.width-2*b;d[1].bounds.y=
-d[0].bounds.y;d[1].redraw();d[2].bounds.x=d[0].bounds.x;d[2].bounds.y=this.state.y+this.state.height-2*b;d[2].redraw();d[3].bounds.x=d[1].bounds.x;d[3].bounds.y=d[2].bounds.y;d[3].redraw();for(b=0;b<this.cornerHandles.length;b++)this.cornerHandles[b].node.style.display=1==this.graph.getSelectionCount()?"":"none"}null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display=null!=this.moveHandles||1!=this.graph.getSelectionCount()||null!=this.index&&this.index!=mxEvent.ROTATION_HANDLE?
-"none":"");ra.apply(this);null!=this.state&&null!=this.linkHint&&(b=new mxPoint(this.state.getCenterX(),this.state.getCenterY()),d=new mxRectangle(this.state.x,this.state.y-22,this.state.width+24,this.state.height+22),c=mxUtils.getBoundingBox(d,this.state.style[mxConstants.STYLE_ROTATION]||"0",b),b=null!=c?mxUtils.getBoundingBox(this.state,this.state.style[mxConstants.STYLE_ROTATION]||"0"):this.state,d=null!=this.state.text?this.state.text.boundingBox:null,null==c&&(c=this.state),c=c.y+c.height,null!=
-d&&(c=Math.max(c,d.y+d.height)),this.linkHint.style.left=Math.max(0,Math.round(b.x+(b.width-this.linkHint.clientWidth)/2))+"px",this.linkHint.style.top=Math.round(c+this.verticalOffset/2+Editor.hintOffset)+"px")};var R=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(){R.apply(this,arguments);if(null!=this.moveHandles){for(var b=0;b<this.moveHandles.length;b++)null!=this.moveHandles[b]&&null!=this.moveHandles[b].parentNode&&this.moveHandles[b].parentNode.removeChild(this.moveHandles[b]);
-this.moveHandles=null}if(null!=this.cornerHandles){for(b=0;b<this.cornerHandles.length;b++)null!=this.cornerHandles[b]&&null!=this.cornerHandles[b].node&&null!=this.cornerHandles[b].node.parentNode&&this.cornerHandles[b].node.parentNode.removeChild(this.cornerHandles[b].node);this.cornerHandles=null}null!=this.linkHint&&(null!=this.linkHint.parentNode&&this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getSelectionModel().removeListener(this.changeHandler),
-this.graph.getModel().removeListener(this.changeHandler),this.changeHandler=null);null!=this.editingHandler&&(this.graph.removeListener(this.editingHandler),this.editingHandler=null)};var qa=mxEdgeHandler.prototype.redrawHandles;mxEdgeHandler.prototype.redrawHandles=function(){if(null!=this.marker&&(qa.apply(this),null!=this.state&&null!=this.linkHint)){var b=this.state;null!=this.state.text&&null!=this.state.text.bounds&&(b=new mxRectangle(b.x,b.y,b.width,b.height),b.add(this.state.text.bounds));
-this.linkHint.style.left=Math.max(0,Math.round(b.x+(b.width-this.linkHint.clientWidth)/2))+"px";this.linkHint.style.top=Math.round(b.y+b.height+Editor.hintOffset)+"px"}};var ia=mxEdgeHandler.prototype.reset;mxEdgeHandler.prototype.reset=function(){ia.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility="")};var fa=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){fa.apply(this,arguments);null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),
-this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();(function(){function b(b,d,c){mxShape.call(this);this.line=b;this.stroke=d;this.strokewidth=null!=c?c:1;this.updateBoundsFromLine()}function c(){mxSwimlane.call(this)}function e(){mxSwimlane.call(this)}function f(){mxCylinder.call(this)}function n(){mxCylinder.call(this)}function l(){mxActor.call(this)}function q(){mxCylinder.call(this)}function d(){mxCylinder.call(this)}function k(){mxCylinder.call(this)}function g(){mxCylinder.call(this)}function p(){mxShape.call(this)}function m(){mxShape.call(this)}
-function v(b,d,c,g){mxShape.call(this);this.bounds=b;this.fill=d;this.stroke=c;this.strokewidth=null!=g?g:1}function u(){mxActor.call(this)}function t(){mxCylinder.call(this)}function z(){mxCylinder.call(this)}function y(){mxActor.call(this)}function F(){mxActor.call(this)}function D(){mxActor.call(this)}function E(){mxActor.call(this)}function H(){mxActor.call(this)}function N(){mxActor.call(this)}function A(){mxActor.call(this)}function G(b,d){this.canvas=b;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");
+mxUtils.getTextContent(c[g])));this.linkHint.appendChild(e)}}}catch(ua){}};mxEdgeHandler.prototype.updateLinkHint=mxVertexHandler.prototype.updateLinkHint;var T=mxEdgeHandler.prototype.init;mxEdgeHandler.prototype.init=function(){T.apply(this,arguments);this.constraintHandler.isEnabled=mxUtils.bind(this,function(){return this.state.view.graph.connectionHandler.isEnabled()});var b=mxUtils.bind(this,function(){null!=this.linkHint&&(this.linkHint.style.display=1==this.graph.getSelectionCount()?"":"none");
+null!=this.labelShape&&(this.labelShape.node.style.display=this.graph.isEnabled()&&this.graph.getSelectionCount()<this.graph.graphHandler.maxCells?"":"none")});this.changeHandler=mxUtils.bind(this,function(d,c){this.updateLinkHint(this.graph.getLinkForCell(this.state.cell),this.graph.getLinksForState(this.state));b();this.redrawHandles()});this.graph.getSelectionModel().addListener(mxEvent.CHANGE,this.changeHandler);this.graph.getModel().addListener(mxEvent.CHANGE,this.changeHandler);var d=this.graph.getLinkForCell(this.state.cell),
+c=this.graph.getLinksForState(this.state);if(null!=d||null!=c&&0<c.length)this.updateLinkHint(d,c),this.redrawHandles()};var ja=mxConnectionHandler.prototype.init;mxConnectionHandler.prototype.init=function(){ja.apply(this,arguments);this.constraintHandler.isEnabled=mxUtils.bind(this,function(){return this.graph.connectionHandler.isEnabled()})};var ma=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){if(null!=this.moveHandles)for(var b=0;b<this.moveHandles.length;b++)this.moveHandles[b].style.left=
+this.moveHandles[b].rowState.x+this.moveHandles[b].rowState.width-5+"px",this.moveHandles[b].style.top=this.moveHandles[b].rowState.y+this.moveHandles[b].rowState.height/2-6+"px";if(null!=this.cornerHandles){var b=this.getSelectionBorderInset(),d=this.cornerHandles,c=d[0].bounds.height/2;d[0].bounds.x=this.state.x-d[0].bounds.width/2+b;d[0].bounds.y=this.state.y-c+b;d[0].redraw();d[1].bounds.x=d[0].bounds.x+this.state.width-2*b;d[1].bounds.y=d[0].bounds.y;d[1].redraw();d[2].bounds.x=d[0].bounds.x;
+d[2].bounds.y=this.state.y+this.state.height-2*b;d[2].redraw();d[3].bounds.x=d[1].bounds.x;d[3].bounds.y=d[2].bounds.y;d[3].redraw();for(b=0;b<this.cornerHandles.length;b++)this.cornerHandles[b].node.style.display=1==this.graph.getSelectionCount()?"":"none"}null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display=null!=this.moveHandles||1!=this.graph.getSelectionCount()||null!=this.index&&this.index!=mxEvent.ROTATION_HANDLE?"none":"");ma.apply(this);null!=this.state&&
+null!=this.linkHint&&(b=new mxPoint(this.state.getCenterX(),this.state.getCenterY()),d=new mxRectangle(this.state.x,this.state.y-22,this.state.width+24,this.state.height+22),c=mxUtils.getBoundingBox(d,this.state.style[mxConstants.STYLE_ROTATION]||"0",b),b=null!=c?mxUtils.getBoundingBox(this.state,this.state.style[mxConstants.STYLE_ROTATION]||"0"):this.state,d=null!=this.state.text?this.state.text.boundingBox:null,null==c&&(c=this.state),c=c.y+c.height,null!=d&&(c=Math.max(c,d.y+d.height)),this.linkHint.style.left=
+Math.max(0,Math.round(b.x+(b.width-this.linkHint.clientWidth)/2))+"px",this.linkHint.style.top=Math.round(c+this.verticalOffset/2+Editor.hintOffset)+"px")};var ra=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(){ra.apply(this,arguments);if(null!=this.moveHandles){for(var b=0;b<this.moveHandles.length;b++)null!=this.moveHandles[b]&&null!=this.moveHandles[b].parentNode&&this.moveHandles[b].parentNode.removeChild(this.moveHandles[b]);this.moveHandles=null}if(null!=this.cornerHandles){for(b=
+0;b<this.cornerHandles.length;b++)null!=this.cornerHandles[b]&&null!=this.cornerHandles[b].node&&null!=this.cornerHandles[b].node.parentNode&&this.cornerHandles[b].node.parentNode.removeChild(this.cornerHandles[b].node);this.cornerHandles=null}null!=this.linkHint&&(null!=this.linkHint.parentNode&&this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getSelectionModel().removeListener(this.changeHandler),this.graph.getModel().removeListener(this.changeHandler),
+this.changeHandler=null);null!=this.editingHandler&&(this.graph.removeListener(this.editingHandler),this.editingHandler=null)};var S=mxEdgeHandler.prototype.redrawHandles;mxEdgeHandler.prototype.redrawHandles=function(){if(null!=this.marker&&(S.apply(this),null!=this.state&&null!=this.linkHint)){var b=this.state;null!=this.state.text&&null!=this.state.text.bounds&&(b=new mxRectangle(b.x,b.y,b.width,b.height),b.add(this.state.text.bounds));this.linkHint.style.left=Math.max(0,Math.round(b.x+(b.width-
+this.linkHint.clientWidth)/2))+"px";this.linkHint.style.top=Math.round(b.y+b.height+Editor.hintOffset)+"px"}};var oa=mxEdgeHandler.prototype.reset;mxEdgeHandler.prototype.reset=function(){oa.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility="")};var da=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){da.apply(this,arguments);null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),
+this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();(function(){function b(b,d,c){mxShape.call(this);this.line=b;this.stroke=d;this.strokewidth=null!=c?c:1;this.updateBoundsFromLine()}function c(){mxSwimlane.call(this)}function e(){mxSwimlane.call(this)}function f(){mxCylinder.call(this)}function n(){mxCylinder.call(this)}function l(){mxActor.call(this)}function q(){mxCylinder.call(this)}function d(){mxCylinder.call(this)}function k(){mxCylinder.call(this)}function g(){mxCylinder.call(this)}function p(){mxShape.call(this)}function m(){mxShape.call(this)}
+function u(b,d,c,g){mxShape.call(this);this.bounds=b;this.fill=d;this.stroke=c;this.strokewidth=null!=g?g:1}function v(){mxActor.call(this)}function t(){mxCylinder.call(this)}function z(){mxCylinder.call(this)}function y(){mxActor.call(this)}function I(){mxActor.call(this)}function D(){mxActor.call(this)}function F(){mxActor.call(this)}function E(){mxActor.call(this)}function O(){mxActor.call(this)}function B(){mxActor.call(this)}function G(b,d){this.canvas=b;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");
this.defaultVariation=d;this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,G.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,G.prototype.moveTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,G.prototype.close);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,G.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=mxUtils.bind(this,G.prototype.curveTo);
-this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,G.prototype.arcTo)}function I(){mxRectangleShape.call(this)}function L(){mxRectangleShape.call(this)}function M(){mxActor.call(this)}function K(){mxActor.call(this)}function P(){mxActor.call(this)}function T(){mxRectangleShape.call(this)}function W(){mxRectangleShape.call(this)}function ga(){mxCylinder.call(this)}function ja(){mxShape.call(this)}function X(){mxShape.call(this)}function x(){mxEllipse.call(this)}function C(){mxShape.call(this)}
-function J(){mxShape.call(this)}function V(){mxRectangleShape.call(this)}function ca(){mxShape.call(this)}function aa(){mxShape.call(this)}function da(){mxShape.call(this)}function ta(){mxShape.call(this)}function ua(){mxShape.call(this)}function ha(){mxCylinder.call(this)}function oa(){mxCylinder.call(this)}function Y(){mxRectangleShape.call(this)}function Q(){mxDoubleEllipse.call(this)}function ea(){mxDoubleEllipse.call(this)}function S(){mxArrowConnector.call(this);this.spacing=0}function ma(){mxArrowConnector.call(this);
-this.spacing=0}function pa(){mxActor.call(this)}function ra(){mxRectangleShape.call(this)}function R(){mxActor.call(this)}function qa(){mxActor.call(this)}function ia(){mxActor.call(this)}function fa(){mxActor.call(this)}function ba(){mxActor.call(this)}function na(){mxActor.call(this)}function Aa(){mxActor.call(this)}function xa(){mxActor.call(this)}function sa(){mxActor.call(this)}function ka(){mxActor.call(this)}function Z(){mxEllipse.call(this)}function O(){mxEllipse.call(this)}function Ga(){mxEllipse.call(this)}
-function Da(){mxRhombus.call(this)}function ya(){mxEllipse.call(this)}function Ea(){mxEllipse.call(this)}function va(){mxEllipse.call(this)}function Ha(){mxEllipse.call(this)}function Ca(){mxActor.call(this)}function za(){mxActor.call(this)}function Ba(){mxActor.call(this)}function U(b,d,c,g){mxShape.call(this);this.bounds=b;this.fill=d;this.stroke=c;this.strokewidth=null!=g?g:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=!0;this.indent=2;this.rectOutline="single"}function Fa(){mxConnector.call(this)}
-function Ua(b,d,c,g,e,k,f,l,m,p){f+=m;var B=g.clone();g.x-=e*(2*f+m);g.y-=k*(2*f+m);e*=f+m;k*=f+m;return function(){b.ellipse(B.x-e-f,B.y-k-f,2*f,2*f);p?b.fillAndStroke():b.stroke()}}mxUtils.extend(b,mxShape);b.prototype.updateBoundsFromLine=function(){var b=null;if(null!=this.line)for(var d=0;d<this.line.length;d++){var c=this.line[d];null!=c&&(c=new mxRectangle(c.x,c.y,this.strokewidth,this.strokewidth),null==b?b=c:b.add(c))}this.bounds=null!=b?b:new mxRectangle};b.prototype.paintVertexShape=function(b,
-d,c,g,e){this.paintTableLine(b,this.line,0,0)};b.prototype.paintTableLine=function(b,d,c,g){if(null!=d){var B=null;b.begin();for(var e=0;e<d.length;e++){var k=d[e];null!=k&&(null==B?b.moveTo(k.x+c,k.y+g):null!=B&&b.lineTo(k.x+c,k.y+g));B=k}b.end();b.stroke()}};b.prototype.intersectsRectangle=function(b){var d=!1;if(mxShape.prototype.intersectsRectangle.apply(this,arguments)&&null!=this.line)for(var c=null,g=0;g<this.line.length&&!d;g++){var B=this.line[g];null!=B&&null!=c&&(d=mxUtils.rectangleIntersectsSegment(b,
-c,B));c=B}return d};mxCellRenderer.registerShape("tableLine",b);mxUtils.extend(c,mxSwimlane);c.prototype.getLabelBounds=function(b){return 0==this.getTitleSize()?mxShape.prototype.getLabelBounds.apply(this,arguments):mxSwimlane.prototype.getLabelBounds.apply(this,arguments)};c.prototype.paintVertexShape=function(b,d,c,g,e){var B=null!=this.state?this.state.view.graph.isCellCollapsed(this.state.cell):!1,k=this.isHorizontal(),f=this.getTitleSize();0==f||this.outline?va.prototype.paintVertexShape.apply(this,
-arguments):(mxSwimlane.prototype.paintVertexShape.apply(this,arguments),b.translate(-d,-c));B||this.outline||!(k&&f<e||!k&&f<g)||this.paintForeground(b,d,c,g,e)};c.prototype.paintForeground=function(b,d,c,g,e){if(null!=this.state){var B=this.flipH,k=this.flipV;if(this.direction==mxConstants.DIRECTION_NORTH||this.direction==mxConstants.DIRECTION_SOUTH)var f=B,B=k,k=f;b.rotate(-this.getShapeRotation(),B,k,d+g/2,c+e/2);s=this.scale;d=this.bounds.x/s;c=this.bounds.y/s;g=this.bounds.width/s;e=this.bounds.height/
+this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,G.prototype.arcTo)}function H(){mxRectangleShape.call(this)}function L(){mxRectangleShape.call(this)}function N(){mxActor.call(this)}function M(){mxActor.call(this)}function P(){mxActor.call(this)}function V(){mxRectangleShape.call(this)}function W(){mxRectangleShape.call(this)}function ga(){mxCylinder.call(this)}function ea(){mxShape.call(this)}function ba(){mxShape.call(this)}function x(){mxEllipse.call(this)}function C(){mxShape.call(this)}
+function J(){mxShape.call(this)}function X(){mxRectangleShape.call(this)}function ca(){mxShape.call(this)}function ka(){mxShape.call(this)}function K(){mxShape.call(this)}function na(){mxShape.call(this)}function qa(){mxShape.call(this)}function pa(){mxCylinder.call(this)}function ha(){mxCylinder.call(this)}function sa(){mxRectangleShape.call(this)}function Y(){mxDoubleEllipse.call(this)}function Q(){mxDoubleEllipse.call(this)}function ta(){mxArrowConnector.call(this);this.spacing=0}function T(){mxArrowConnector.call(this);
+this.spacing=0}function ja(){mxActor.call(this)}function ma(){mxRectangleShape.call(this)}function ra(){mxActor.call(this)}function S(){mxActor.call(this)}function oa(){mxActor.call(this)}function da(){mxActor.call(this)}function Z(){mxActor.call(this)}function la(){mxActor.call(this)}function ya(){mxActor.call(this)}function za(){mxActor.call(this)}function ua(){mxActor.call(this)}function fa(){mxActor.call(this)}function aa(){mxEllipse.call(this)}function R(){mxEllipse.call(this)}function Fa(){mxEllipse.call(this)}
+function Ga(){mxRhombus.call(this)}function wa(){mxEllipse.call(this)}function Aa(){mxEllipse.call(this)}function xa(){mxEllipse.call(this)}function Ba(){mxEllipse.call(this)}function Ha(){mxActor.call(this)}function Ca(){mxActor.call(this)}function Da(){mxActor.call(this)}function U(b,d,c,g){mxShape.call(this);this.bounds=b;this.fill=d;this.stroke=c;this.strokewidth=null!=g?g:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=!0;this.indent=2;this.rectOutline="single"}function Ea(){mxConnector.call(this)}
+function Na(b,d,c,g,e,k,f,l,m,p){f+=m;var A=g.clone();g.x-=e*(2*f+m);g.y-=k*(2*f+m);e*=f+m;k*=f+m;return function(){b.ellipse(A.x-e-f,A.y-k-f,2*f,2*f);p?b.fillAndStroke():b.stroke()}}mxUtils.extend(b,mxShape);b.prototype.updateBoundsFromLine=function(){var b=null;if(null!=this.line)for(var d=0;d<this.line.length;d++){var c=this.line[d];null!=c&&(c=new mxRectangle(c.x,c.y,this.strokewidth,this.strokewidth),null==b?b=c:b.add(c))}this.bounds=null!=b?b:new mxRectangle};b.prototype.paintVertexShape=function(b,
+d,c,g,e){this.paintTableLine(b,this.line,0,0)};b.prototype.paintTableLine=function(b,d,c,g){if(null!=d){var A=null;b.begin();for(var e=0;e<d.length;e++){var k=d[e];null!=k&&(null==A?b.moveTo(k.x+c,k.y+g):null!=A&&b.lineTo(k.x+c,k.y+g));A=k}b.end();b.stroke()}};b.prototype.intersectsRectangle=function(b){var d=!1;if(mxShape.prototype.intersectsRectangle.apply(this,arguments)&&null!=this.line)for(var c=null,g=0;g<this.line.length&&!d;g++){var A=this.line[g];null!=A&&null!=c&&(d=mxUtils.rectangleIntersectsSegment(b,
+c,A));c=A}return d};mxCellRenderer.registerShape("tableLine",b);mxUtils.extend(c,mxSwimlane);c.prototype.getLabelBounds=function(b){return 0==this.getTitleSize()?mxShape.prototype.getLabelBounds.apply(this,arguments):mxSwimlane.prototype.getLabelBounds.apply(this,arguments)};c.prototype.paintVertexShape=function(b,d,c,g,e){var A=null!=this.state?this.state.view.graph.isCellCollapsed(this.state.cell):!1,k=this.isHorizontal(),f=this.getTitleSize();0==f||this.outline?xa.prototype.paintVertexShape.apply(this,
+arguments):(mxSwimlane.prototype.paintVertexShape.apply(this,arguments),b.translate(-d,-c));A||this.outline||!(k&&f<e||!k&&f<g)||this.paintForeground(b,d,c,g,e)};c.prototype.paintForeground=function(b,d,c,g,e){if(null!=this.state){var A=this.flipH,k=this.flipV;if(this.direction==mxConstants.DIRECTION_NORTH||this.direction==mxConstants.DIRECTION_SOUTH)var f=A,A=k,k=f;b.rotate(-this.getShapeRotation(),A,k,d+g/2,c+e/2);s=this.scale;d=this.bounds.x/s;c=this.bounds.y/s;g=this.bounds.width/s;e=this.bounds.height/
s;this.paintTableForeground(b,d,c,g,e)}};c.prototype.paintTableForeground=function(d,c,g,e,k){e=this.state.view.graph.getTableLines(this.state.cell,"0"!=mxUtils.getValue(this.state.style,"rowLines","1"),"0"!=mxUtils.getValue(this.state.style,"columnLines","1"));for(k=0;k<e.length;k++)b.prototype.paintTableLine(d,e[k],c,g)};c.prototype.configurePointerEvents=function(b){0==this.getTitleSize()?b.pointerEvents=!1:mxSwimlane.prototype.configurePointerEvents.apply(this,arguments)};mxCellRenderer.registerShape("table",
-c);mxUtils.extend(e,c);e.prototype.paintForeground=function(){};mxCellRenderer.registerShape("tableRow",e);mxUtils.extend(f,mxCylinder);f.prototype.size=20;f.prototype.darkOpacity=0;f.prototype.darkOpacity2=0;f.prototype.paintVertexShape=function(b,d,c,g,e){var B=Math.max(0,Math.min(g,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),k=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity)))),f=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,
-"darkOpacity2",this.darkOpacity2))));b.translate(d,c);b.begin();b.moveTo(0,0);b.lineTo(g-B,0);b.lineTo(g,B);b.lineTo(g,e);b.lineTo(B,e);b.lineTo(0,e-B);b.lineTo(0,0);b.close();b.end();b.fillAndStroke();this.outline||(b.setShadow(!1),0!=k&&(b.setFillAlpha(Math.abs(k)),b.setFillColor(0>k?"#FFFFFF":"#000000"),b.begin(),b.moveTo(0,0),b.lineTo(g-B,0),b.lineTo(g,B),b.lineTo(B,B),b.close(),b.fill()),0!=f&&(b.setFillAlpha(Math.abs(f)),b.setFillColor(0>f?"#FFFFFF":"#000000"),b.begin(),b.moveTo(0,0),b.lineTo(B,
-B),b.lineTo(B,e),b.lineTo(0,e-B),b.close(),b.fill()),b.begin(),b.moveTo(B,e),b.lineTo(B,B),b.lineTo(0,0),b.moveTo(B,B),b.lineTo(g,B),b.end(),b.stroke())};f.prototype.getLabelMargins=function(b){return mxUtils.getValue(this.style,"boundedLbl",!1)?(b=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(b,b,0,0)):null};mxCellRenderer.registerShape("cube",f);var Ra=Math.tan(mxUtils.toRadians(30)),Ka=(.5-Ra)/2;mxCellRenderer.registerShape("isoRectangle",l);mxUtils.extend(n,
-mxCylinder);n.prototype.size=6;n.prototype.paintVertexShape=function(b,d,c,g,e){b.setFillColor(this.stroke);var B=Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size))-2)+2*this.strokewidth;b.ellipse(d+.5*(g-B),c+.5*(e-B),B,B);b.fill();b.setFillColor(mxConstants.NONE);b.rect(d,c,g,e);b.fill()};mxCellRenderer.registerShape("waypoint",n);mxUtils.extend(l,mxActor);l.prototype.size=20;l.prototype.redrawPath=function(b,d,c,g,e){d=Math.min(g,e/Ra);b.translate((g-d)/2,(e-d)/2+d/4);b.moveTo(0,
-.25*d);b.lineTo(.5*d,d*Ka);b.lineTo(d,.25*d);b.lineTo(.5*d,(.5-Ka)*d);b.lineTo(0,.25*d);b.close();b.end()};mxCellRenderer.registerShape("isoRectangle",l);mxUtils.extend(q,mxCylinder);q.prototype.size=20;q.prototype.redrawPath=function(b,d,c,g,e,k){d=Math.min(g,e/(.5+Ra));k?(b.moveTo(0,.25*d),b.lineTo(.5*d,(.5-Ka)*d),b.lineTo(d,.25*d),b.moveTo(.5*d,(.5-Ka)*d),b.lineTo(.5*d,(1-Ka)*d)):(b.translate((g-d)/2,(e-d)/2),b.moveTo(0,.25*d),b.lineTo(.5*d,d*Ka),b.lineTo(d,.25*d),b.lineTo(d,.75*d),b.lineTo(.5*
+c);mxUtils.extend(e,c);e.prototype.paintForeground=function(){};mxCellRenderer.registerShape("tableRow",e);mxUtils.extend(f,mxCylinder);f.prototype.size=20;f.prototype.darkOpacity=0;f.prototype.darkOpacity2=0;f.prototype.paintVertexShape=function(b,d,c,g,e){var A=Math.max(0,Math.min(g,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),k=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity)))),f=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,
+"darkOpacity2",this.darkOpacity2))));b.translate(d,c);b.begin();b.moveTo(0,0);b.lineTo(g-A,0);b.lineTo(g,A);b.lineTo(g,e);b.lineTo(A,e);b.lineTo(0,e-A);b.lineTo(0,0);b.close();b.end();b.fillAndStroke();this.outline||(b.setShadow(!1),0!=k&&(b.setFillAlpha(Math.abs(k)),b.setFillColor(0>k?"#FFFFFF":"#000000"),b.begin(),b.moveTo(0,0),b.lineTo(g-A,0),b.lineTo(g,A),b.lineTo(A,A),b.close(),b.fill()),0!=f&&(b.setFillAlpha(Math.abs(f)),b.setFillColor(0>f?"#FFFFFF":"#000000"),b.begin(),b.moveTo(0,0),b.lineTo(A,
+A),b.lineTo(A,e),b.lineTo(0,e-A),b.close(),b.fill()),b.begin(),b.moveTo(A,e),b.lineTo(A,A),b.lineTo(0,0),b.moveTo(A,A),b.lineTo(g,A),b.end(),b.stroke())};f.prototype.getLabelMargins=function(b){return mxUtils.getValue(this.style,"boundedLbl",!1)?(b=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(b,b,0,0)):null};mxCellRenderer.registerShape("cube",f);var Sa=Math.tan(mxUtils.toRadians(30)),Ka=(.5-Sa)/2;mxCellRenderer.registerShape("isoRectangle",l);mxUtils.extend(n,
+mxCylinder);n.prototype.size=6;n.prototype.paintVertexShape=function(b,d,c,g,e){b.setFillColor(this.stroke);var A=Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size))-2)+2*this.strokewidth;b.ellipse(d+.5*(g-A),c+.5*(e-A),A,A);b.fill();b.setFillColor(mxConstants.NONE);b.rect(d,c,g,e);b.fill()};mxCellRenderer.registerShape("waypoint",n);mxUtils.extend(l,mxActor);l.prototype.size=20;l.prototype.redrawPath=function(b,d,c,g,e){d=Math.min(g,e/Sa);b.translate((g-d)/2,(e-d)/2+d/4);b.moveTo(0,
+.25*d);b.lineTo(.5*d,d*Ka);b.lineTo(d,.25*d);b.lineTo(.5*d,(.5-Ka)*d);b.lineTo(0,.25*d);b.close();b.end()};mxCellRenderer.registerShape("isoRectangle",l);mxUtils.extend(q,mxCylinder);q.prototype.size=20;q.prototype.redrawPath=function(b,d,c,g,e,k){d=Math.min(g,e/(.5+Sa));k?(b.moveTo(0,.25*d),b.lineTo(.5*d,(.5-Ka)*d),b.lineTo(d,.25*d),b.moveTo(.5*d,(.5-Ka)*d),b.lineTo(.5*d,(1-Ka)*d)):(b.translate((g-d)/2,(e-d)/2),b.moveTo(0,.25*d),b.lineTo(.5*d,d*Ka),b.lineTo(d,.25*d),b.lineTo(d,.75*d),b.lineTo(.5*
d,(1-Ka)*d),b.lineTo(0,.75*d),b.close());b.end()};mxCellRenderer.registerShape("isoCube",q);mxUtils.extend(d,mxCylinder);d.prototype.redrawPath=function(b,d,c,g,e,k){d=Math.min(e/2,Math.round(e/8)+this.strokewidth-1);if(k&&null!=this.fill||!k&&null==this.fill)b.moveTo(0,d),b.curveTo(0,2*d,g,2*d,g,d),k||(b.stroke(),b.begin()),b.translate(0,d/2),b.moveTo(0,d),b.curveTo(0,2*d,g,2*d,g,d),k||(b.stroke(),b.begin()),b.translate(0,d/2),b.moveTo(0,d),b.curveTo(0,2*d,g,2*d,g,d),k||(b.stroke(),b.begin()),b.translate(0,
--d);k||(b.moveTo(0,d),b.curveTo(0,-d/3,g,-d/3,g,d),b.lineTo(g,e-d),b.curveTo(g,e+d/3,0,e+d/3,0,e-d),b.close())};d.prototype.getLabelMargins=function(b){return new mxRectangle(0,2.5*Math.min(b.height/2,Math.round(b.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",d);mxUtils.extend(k,mxCylinder);k.prototype.size=30;k.prototype.darkOpacity=0;k.prototype.paintVertexShape=function(b,d,c,g,e){var B=Math.max(0,Math.min(g,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",
-this.size))))),k=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));b.translate(d,c);b.begin();b.moveTo(0,0);b.lineTo(g-B,0);b.lineTo(g,B);b.lineTo(g,e);b.lineTo(0,e);b.lineTo(0,0);b.close();b.end();b.fillAndStroke();this.outline||(b.setShadow(!1),0!=k&&(b.setFillAlpha(Math.abs(k)),b.setFillColor(0>k?"#FFFFFF":"#000000"),b.begin(),b.moveTo(g-B,0),b.lineTo(g-B,B),b.lineTo(g,B),b.close(),b.fill()),b.begin(),b.moveTo(g-B,0),b.lineTo(g-B,B),b.lineTo(g,B),
-b.end(),b.stroke())};mxCellRenderer.registerShape("note",k);mxUtils.extend(g,k);mxCellRenderer.registerShape("note2",g);g.prototype.getLabelMargins=function(b){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var d=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(b.height*this.scale,d*this.scale),0,0)}return null};mxUtils.extend(p,mxShape);p.prototype.isoAngle=15;p.prototype.paintVertexShape=function(b,d,c,g,e){var B=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,
-"isoAngle",this.isoAngle))))*Math.PI/200,B=Math.min(g*Math.tan(B),.5*e);b.translate(d,c);b.begin();b.moveTo(.5*g,0);b.lineTo(g,B);b.lineTo(g,e-B);b.lineTo(.5*g,e);b.lineTo(0,e-B);b.lineTo(0,B);b.close();b.fillAndStroke();b.setShadow(!1);b.begin();b.moveTo(0,B);b.lineTo(.5*g,2*B);b.lineTo(g,B);b.moveTo(.5*g,2*B);b.lineTo(.5*g,e);b.stroke()};mxCellRenderer.registerShape("isoCube2",p);mxUtils.extend(m,mxShape);m.prototype.size=15;m.prototype.paintVertexShape=function(b,d,c,g,e){var B=Math.max(0,Math.min(.5*
-e,parseFloat(mxUtils.getValue(this.style,"size",this.size))));b.translate(d,c);0==B?(b.rect(0,0,g,e),b.fillAndStroke()):(b.begin(),b.moveTo(0,B),b.arcTo(.5*g,B,0,0,1,.5*g,0),b.arcTo(.5*g,B,0,0,1,g,B),b.lineTo(g,e-B),b.arcTo(.5*g,B,0,0,1,.5*g,e),b.arcTo(.5*g,B,0,0,1,0,e-B),b.close(),b.fillAndStroke(),b.setShadow(!1),b.begin(),b.moveTo(g,B),b.arcTo(.5*g,B,0,0,1,.5*g,2*B),b.arcTo(.5*g,B,0,0,1,0,B),b.stroke())};mxCellRenderer.registerShape("cylinder2",m);mxUtils.extend(v,mxCylinder);v.prototype.size=
-15;v.prototype.paintVertexShape=function(b,d,c,g,e){var B=Math.max(0,Math.min(.5*e,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),k=mxUtils.getValue(this.style,"lid",!0);b.translate(d,c);0==B?(b.rect(0,0,g,e),b.fillAndStroke()):(b.begin(),k?(b.moveTo(0,B),b.arcTo(.5*g,B,0,0,1,.5*g,0),b.arcTo(.5*g,B,0,0,1,g,B)):(b.moveTo(0,0),b.arcTo(.5*g,B,0,0,0,.5*g,B),b.arcTo(.5*g,B,0,0,0,g,0)),b.lineTo(g,e-B),b.arcTo(.5*g,B,0,0,1,.5*g,e),b.arcTo(.5*g,B,0,0,1,0,e-B),b.close(),b.fillAndStroke(),b.setShadow(!1),
-k&&(b.begin(),b.moveTo(g,B),b.arcTo(.5*g,B,0,0,1,.5*g,2*B),b.arcTo(.5*g,B,0,0,1,0,B),b.stroke()))};mxCellRenderer.registerShape("cylinder3",v);mxUtils.extend(u,mxActor);u.prototype.redrawPath=function(b,d,c,g,e){b.moveTo(0,0);b.quadTo(g/2,.5*e,g,0);b.quadTo(.5*g,e/2,g,e);b.quadTo(g/2,.5*e,0,e);b.quadTo(.5*g,e/2,0,0);b.end()};mxCellRenderer.registerShape("switch",u);mxUtils.extend(t,mxCylinder);t.prototype.tabWidth=60;t.prototype.tabHeight=20;t.prototype.tabPosition="right";t.prototype.arcSize=.1;
-t.prototype.paintVertexShape=function(b,d,c,g,e){b.translate(d,c);d=Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth))));c=Math.max(0,Math.min(e,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));var B=mxUtils.getValue(this.style,"tabPosition",this.tabPosition),k=mxUtils.getValue(this.style,"rounded",!1),f=mxUtils.getValue(this.style,"absoluteArcSize",!1),l=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));f||(l*=Math.min(g,e));
-l=Math.min(l,.5*g,.5*(e-c));d=Math.max(d,l);d=Math.min(g-l,d);k||(l=0);b.begin();"left"==B?(b.moveTo(Math.max(l,0),c),b.lineTo(Math.max(l,0),0),b.lineTo(d,0),b.lineTo(d,c)):(b.moveTo(g-d,c),b.lineTo(g-d,0),b.lineTo(g-Math.max(l,0),0),b.lineTo(g-Math.max(l,0),c));k?(b.moveTo(0,l+c),b.arcTo(l,l,0,0,1,l,c),b.lineTo(g-l,c),b.arcTo(l,l,0,0,1,g,l+c),b.lineTo(g,e-l),b.arcTo(l,l,0,0,1,g-l,e),b.lineTo(l,e),b.arcTo(l,l,0,0,1,0,e-l)):(b.moveTo(0,c),b.lineTo(g,c),b.lineTo(g,e),b.lineTo(0,e));b.close();b.fillAndStroke();
+-d);k||(b.moveTo(0,d),b.curveTo(0,-d/3,g,-d/3,g,d),b.lineTo(g,e-d),b.curveTo(g,e+d/3,0,e+d/3,0,e-d),b.close())};d.prototype.getLabelMargins=function(b){return new mxRectangle(0,2.5*Math.min(b.height/2,Math.round(b.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",d);mxUtils.extend(k,mxCylinder);k.prototype.size=30;k.prototype.darkOpacity=0;k.prototype.paintVertexShape=function(b,d,c,g,e){var A=Math.max(0,Math.min(g,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",
+this.size))))),k=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));b.translate(d,c);b.begin();b.moveTo(0,0);b.lineTo(g-A,0);b.lineTo(g,A);b.lineTo(g,e);b.lineTo(0,e);b.lineTo(0,0);b.close();b.end();b.fillAndStroke();this.outline||(b.setShadow(!1),0!=k&&(b.setFillAlpha(Math.abs(k)),b.setFillColor(0>k?"#FFFFFF":"#000000"),b.begin(),b.moveTo(g-A,0),b.lineTo(g-A,A),b.lineTo(g,A),b.close(),b.fill()),b.begin(),b.moveTo(g-A,0),b.lineTo(g-A,A),b.lineTo(g,A),
+b.end(),b.stroke())};mxCellRenderer.registerShape("note",k);mxUtils.extend(g,k);mxCellRenderer.registerShape("note2",g);g.prototype.getLabelMargins=function(b){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var d=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(b.height*this.scale,d*this.scale),0,0)}return null};mxUtils.extend(p,mxShape);p.prototype.isoAngle=15;p.prototype.paintVertexShape=function(b,d,c,g,e){var A=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,
+"isoAngle",this.isoAngle))))*Math.PI/200,A=Math.min(g*Math.tan(A),.5*e);b.translate(d,c);b.begin();b.moveTo(.5*g,0);b.lineTo(g,A);b.lineTo(g,e-A);b.lineTo(.5*g,e);b.lineTo(0,e-A);b.lineTo(0,A);b.close();b.fillAndStroke();b.setShadow(!1);b.begin();b.moveTo(0,A);b.lineTo(.5*g,2*A);b.lineTo(g,A);b.moveTo(.5*g,2*A);b.lineTo(.5*g,e);b.stroke()};mxCellRenderer.registerShape("isoCube2",p);mxUtils.extend(m,mxShape);m.prototype.size=15;m.prototype.paintVertexShape=function(b,d,c,g,e){var A=Math.max(0,Math.min(.5*
+e,parseFloat(mxUtils.getValue(this.style,"size",this.size))));b.translate(d,c);0==A?(b.rect(0,0,g,e),b.fillAndStroke()):(b.begin(),b.moveTo(0,A),b.arcTo(.5*g,A,0,0,1,.5*g,0),b.arcTo(.5*g,A,0,0,1,g,A),b.lineTo(g,e-A),b.arcTo(.5*g,A,0,0,1,.5*g,e),b.arcTo(.5*g,A,0,0,1,0,e-A),b.close(),b.fillAndStroke(),b.setShadow(!1),b.begin(),b.moveTo(g,A),b.arcTo(.5*g,A,0,0,1,.5*g,2*A),b.arcTo(.5*g,A,0,0,1,0,A),b.stroke())};mxCellRenderer.registerShape("cylinder2",m);mxUtils.extend(u,mxCylinder);u.prototype.size=
+15;u.prototype.paintVertexShape=function(b,d,c,g,e){var A=Math.max(0,Math.min(.5*e,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),k=mxUtils.getValue(this.style,"lid",!0);b.translate(d,c);0==A?(b.rect(0,0,g,e),b.fillAndStroke()):(b.begin(),k?(b.moveTo(0,A),b.arcTo(.5*g,A,0,0,1,.5*g,0),b.arcTo(.5*g,A,0,0,1,g,A)):(b.moveTo(0,0),b.arcTo(.5*g,A,0,0,0,.5*g,A),b.arcTo(.5*g,A,0,0,0,g,0)),b.lineTo(g,e-A),b.arcTo(.5*g,A,0,0,1,.5*g,e),b.arcTo(.5*g,A,0,0,1,0,e-A),b.close(),b.fillAndStroke(),b.setShadow(!1),
+k&&(b.begin(),b.moveTo(g,A),b.arcTo(.5*g,A,0,0,1,.5*g,2*A),b.arcTo(.5*g,A,0,0,1,0,A),b.stroke()))};mxCellRenderer.registerShape("cylinder3",u);mxUtils.extend(v,mxActor);v.prototype.redrawPath=function(b,d,c,g,e){b.moveTo(0,0);b.quadTo(g/2,.5*e,g,0);b.quadTo(.5*g,e/2,g,e);b.quadTo(g/2,.5*e,0,e);b.quadTo(.5*g,e/2,0,0);b.end()};mxCellRenderer.registerShape("switch",v);mxUtils.extend(t,mxCylinder);t.prototype.tabWidth=60;t.prototype.tabHeight=20;t.prototype.tabPosition="right";t.prototype.arcSize=.1;
+t.prototype.paintVertexShape=function(b,d,c,g,e){b.translate(d,c);d=Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth))));c=Math.max(0,Math.min(e,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));var A=mxUtils.getValue(this.style,"tabPosition",this.tabPosition),k=mxUtils.getValue(this.style,"rounded",!1),f=mxUtils.getValue(this.style,"absoluteArcSize",!1),l=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));f||(l*=Math.min(g,e));
+l=Math.min(l,.5*g,.5*(e-c));d=Math.max(d,l);d=Math.min(g-l,d);k||(l=0);b.begin();"left"==A?(b.moveTo(Math.max(l,0),c),b.lineTo(Math.max(l,0),0),b.lineTo(d,0),b.lineTo(d,c)):(b.moveTo(g-d,c),b.lineTo(g-d,0),b.lineTo(g-Math.max(l,0),0),b.lineTo(g-Math.max(l,0),c));k?(b.moveTo(0,l+c),b.arcTo(l,l,0,0,1,l,c),b.lineTo(g-l,c),b.arcTo(l,l,0,0,1,g,l+c),b.lineTo(g,e-l),b.arcTo(l,l,0,0,1,g-l,e),b.lineTo(l,e),b.arcTo(l,l,0,0,1,0,e-l)):(b.moveTo(0,c),b.lineTo(g,c),b.lineTo(g,e),b.lineTo(0,e));b.close();b.fillAndStroke();
b.setShadow(!1);"triangle"==mxUtils.getValue(this.style,"folderSymbol",null)&&(b.begin(),b.moveTo(g-30,c+20),b.lineTo(g-20,c+10),b.lineTo(g-10,c+20),b.close(),b.stroke())};mxCellRenderer.registerShape("folder",t);t.prototype.getLabelMargins=function(b){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var d=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var c=mxUtils.getValue(this.style,"tabWidth",15)*this.scale,d=mxUtils.getValue(this.style,
"tabHeight",15)*this.scale,g=mxUtils.getValue(this.style,"rounded",!1),e=mxUtils.getValue(this.style,"absoluteArcSize",!1),k=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));e||(k*=Math.min(b.width,b.height));k=Math.min(k,.5*b.width,.5*(b.height-d));g||(k=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(k,0,Math.min(b.width,b.width-c),Math.min(b.height,b.height-d)):new mxRectangle(Math.min(b.width,b.width-c),0,k,Math.min(b.height,b.height-
-d))}return new mxRectangle(0,Math.min(b.height,d),0,0)}return null};mxUtils.extend(z,mxCylinder);z.prototype.arcSize=.1;z.prototype.paintVertexShape=function(b,d,c,g,e){b.translate(d,c);var k=mxUtils.getValue(this.style,"rounded",!1),B=mxUtils.getValue(this.style,"absoluteArcSize",!1);d=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));c=mxUtils.getValue(this.style,"umlStateConnection",null);B||(d*=Math.min(g,e));d=Math.min(d,.5*g,.5*e);k||(d=0);k=0;null!=c&&(k=10);b.begin();b.moveTo(k,
+d))}return new mxRectangle(0,Math.min(b.height,d),0,0)}return null};mxUtils.extend(z,mxCylinder);z.prototype.arcSize=.1;z.prototype.paintVertexShape=function(b,d,c,g,e){b.translate(d,c);var k=mxUtils.getValue(this.style,"rounded",!1),A=mxUtils.getValue(this.style,"absoluteArcSize",!1);d=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));c=mxUtils.getValue(this.style,"umlStateConnection",null);A||(d*=Math.min(g,e));d=Math.min(d,.5*g,.5*e);k||(d=0);k=0;null!=c&&(k=10);b.begin();b.moveTo(k,
d);b.arcTo(d,d,0,0,1,k+d,0);b.lineTo(g-d,0);b.arcTo(d,d,0,0,1,g,d);b.lineTo(g,e-d);b.arcTo(d,d,0,0,1,g-d,e);b.lineTo(k+d,e);b.arcTo(d,d,0,0,1,k,e-d);b.close();b.fillAndStroke();b.setShadow(!1);"collapseState"==mxUtils.getValue(this.style,"umlStateSymbol",null)&&(b.roundrect(g-40,e-20,10,10,3,3),b.stroke(),b.roundrect(g-20,e-20,10,10,3,3),b.stroke(),b.begin(),b.moveTo(g-30,e-15),b.lineTo(g-20,e-15),b.stroke());"connPointRefEntry"==c?(b.ellipse(0,.5*e-10,20,20),b.fillAndStroke()):"connPointRefExit"==
c&&(b.ellipse(0,.5*e-10,20,20),b.fillAndStroke(),b.begin(),b.moveTo(5,.5*e-5),b.lineTo(15,.5*e+5),b.moveTo(15,.5*e-5),b.lineTo(5,.5*e+5),b.stroke())};z.prototype.getLabelMargins=function(b){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=mxUtils.getValue(this.style,"umlStateConnection",null)?new mxRectangle(10*this.scale,0,0,0):null};mxCellRenderer.registerShape("umlState",z);mxUtils.extend(y,mxActor);y.prototype.size=30;y.prototype.isRoundable=function(){return!0};y.prototype.redrawPath=
-function(b,d,c,g,e){d=Math.max(0,Math.min(g,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(d,0),new mxPoint(g,0),new mxPoint(g,e),new mxPoint(0,e),new mxPoint(0,d)],this.isRounded,c,!0);b.end()};mxCellRenderer.registerShape("card",y);mxUtils.extend(F,mxActor);F.prototype.size=.4;F.prototype.redrawPath=function(b,d,c,g,e){d=e*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,
-"size",this.size))));b.moveTo(0,d/2);b.quadTo(g/4,1.4*d,g/2,d/2);b.quadTo(3*g/4,d*(1-1.4),g,d/2);b.lineTo(g,e-d/2);b.quadTo(3*g/4,e-1.4*d,g/2,e-d/2);b.quadTo(g/4,e-d*(1-1.4),0,e-d/2);b.lineTo(0,d/2);b.close();b.end()};F.prototype.getLabelBounds=function(b){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var d=mxUtils.getValue(this.style,"size",this.size),c=b.width,g=b.height;if(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)return d*=
-g,new mxRectangle(b.x,b.y+d,c,g-2*d);d*=c;return new mxRectangle(b.x+d,b.y,c-2*d,g)}return b};mxCellRenderer.registerShape("tape",F);mxUtils.extend(D,mxActor);D.prototype.size=.3;D.prototype.getLabelMargins=function(b){return mxUtils.getValue(this.style,"boundedLbl",!1)?new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*b.height):null};D.prototype.redrawPath=function(b,d,c,g,e){d=e*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));b.moveTo(0,
+function(b,d,c,g,e){d=Math.max(0,Math.min(g,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(d,0),new mxPoint(g,0),new mxPoint(g,e),new mxPoint(0,e),new mxPoint(0,d)],this.isRounded,c,!0);b.end()};mxCellRenderer.registerShape("card",y);mxUtils.extend(I,mxActor);I.prototype.size=.4;I.prototype.redrawPath=function(b,d,c,g,e){d=e*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,
+"size",this.size))));b.moveTo(0,d/2);b.quadTo(g/4,1.4*d,g/2,d/2);b.quadTo(3*g/4,d*(1-1.4),g,d/2);b.lineTo(g,e-d/2);b.quadTo(3*g/4,e-1.4*d,g/2,e-d/2);b.quadTo(g/4,e-d*(1-1.4),0,e-d/2);b.lineTo(0,d/2);b.close();b.end()};I.prototype.getLabelBounds=function(b){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var d=mxUtils.getValue(this.style,"size",this.size),c=b.width,g=b.height;if(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)return d*=
+g,new mxRectangle(b.x,b.y+d,c,g-2*d);d*=c;return new mxRectangle(b.x+d,b.y,c-2*d,g)}return b};mxCellRenderer.registerShape("tape",I);mxUtils.extend(D,mxActor);D.prototype.size=.3;D.prototype.getLabelMargins=function(b){return mxUtils.getValue(this.style,"boundedLbl",!1)?new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*b.height):null};D.prototype.redrawPath=function(b,d,c,g,e){d=e*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));b.moveTo(0,
0);b.lineTo(g,0);b.lineTo(g,e-d/2);b.quadTo(3*g/4,e-1.4*d,g/2,e-d/2);b.quadTo(g/4,e-d*(1-1.4),0,e-d/2);b.lineTo(0,d/2);b.close();b.end()};mxCellRenderer.registerShape("document",D);var bb=mxCylinder.prototype.getCylinderSize;mxCylinder.prototype.getCylinderSize=function(b,d,c,g){var e=mxUtils.getValue(this.style,"size");return null!=e?g*Math.max(0,Math.min(1,e)):bb.apply(this,arguments)};mxCylinder.prototype.getLabelMargins=function(b){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var d=2*mxUtils.getValue(this.style,
-"size",.15);return new mxRectangle(0,Math.min(this.maxHeight*this.scale,b.height*d),0,0)}return null};v.prototype.getLabelMargins=function(b){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var d=mxUtils.getValue(this.style,"size",15);mxUtils.getValue(this.style,"lid",!0)||(d/=2);return new mxRectangle(0,Math.min(b.height*this.scale,2*d*this.scale),0,Math.max(0,.3*d*this.scale))}return null};t.prototype.getLabelMargins=function(b){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var d=mxUtils.getValue(this.style,
+"size",.15);return new mxRectangle(0,Math.min(this.maxHeight*this.scale,b.height*d),0,0)}return null};u.prototype.getLabelMargins=function(b){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var d=mxUtils.getValue(this.style,"size",15);mxUtils.getValue(this.style,"lid",!0)||(d/=2);return new mxRectangle(0,Math.min(b.height*this.scale,2*d*this.scale),0,Math.max(0,.3*d*this.scale))}return null};t.prototype.getLabelMargins=function(b){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var d=mxUtils.getValue(this.style,
"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var c=mxUtils.getValue(this.style,"tabWidth",15)*this.scale,d=mxUtils.getValue(this.style,"tabHeight",15)*this.scale,g=mxUtils.getValue(this.style,"rounded",!1),e=mxUtils.getValue(this.style,"absoluteArcSize",!1),k=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));e||(k*=Math.min(b.width,b.height));k=Math.min(k,.5*b.width,.5*(b.height-d));g||(k=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?
new mxRectangle(k,0,Math.min(b.width,b.width-c),Math.min(b.height,b.height-d)):new mxRectangle(Math.min(b.width,b.width-c),0,k,Math.min(b.height,b.height-d))}return new mxRectangle(0,Math.min(b.height,d),0,0)}return null};z.prototype.getLabelMargins=function(b){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=mxUtils.getValue(this.style,"umlStateConnection",null)?new mxRectangle(10*this.scale,0,0,0):null};g.prototype.getLabelMargins=function(b){if(mxUtils.getValue(this.style,"boundedLbl",
-!1)){var d=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(b.height*this.scale,d*this.scale),0,Math.max(0,d*this.scale))}return null};mxUtils.extend(E,mxActor);E.prototype.size=.2;E.prototype.fixedSize=20;E.prototype.isRoundable=function(){return!0};E.prototype.redrawPath=function(b,d,c,g,e){d="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,
-"size",this.size))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,e),new mxPoint(d,0),new mxPoint(g,0),new mxPoint(g-d,e)],this.isRounded,c,!0);b.end()};mxCellRenderer.registerShape("parallelogram",E);mxUtils.extend(H,mxActor);H.prototype.size=.2;H.prototype.fixedSize=20;H.prototype.isRoundable=function(){return!0};H.prototype.redrawPath=function(b,d,c,g,e){d="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*
-g,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):g*Math.max(0,Math.min(.5,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,e),new mxPoint(d,0),new mxPoint(g-d,0),new mxPoint(g,e)],this.isRounded,c,!0)};mxCellRenderer.registerShape("trapezoid",H);mxUtils.extend(N,mxActor);N.prototype.size=.5;N.prototype.redrawPath=function(b,d,c,g,e){b.setFillColor(null);
-d=g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(g,0),new mxPoint(d,0),new mxPoint(d,e/2),new mxPoint(0,e/2),new mxPoint(d,e/2),new mxPoint(d,e),new mxPoint(g,e)],this.isRounded,c,!1);b.end()};mxCellRenderer.registerShape("curlyBracket",N);mxUtils.extend(A,mxActor);A.prototype.redrawPath=function(b,d,c,g,e){b.setStrokeWidth(1);b.setFillColor(this.stroke);
-d=g/5;b.rect(0,0,d,e);b.fillAndStroke();b.rect(2*d,0,d,e);b.fillAndStroke();b.rect(4*d,0,d,e);b.fillAndStroke()};mxCellRenderer.registerShape("parallelMarker",A);G.prototype.moveTo=function(b,d){this.originalMoveTo.apply(this.canvas,arguments);this.lastX=b;this.lastY=d;this.firstX=b;this.firstY=d};G.prototype.close=function(){null!=this.firstX&&null!=this.firstY&&(this.lineTo(this.firstX,this.firstY),this.originalClose.apply(this.canvas,arguments));this.originalClose.apply(this.canvas,arguments)};
+!1)){var d=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(b.height*this.scale,d*this.scale),0,Math.max(0,d*this.scale))}return null};mxUtils.extend(F,mxActor);F.prototype.size=.2;F.prototype.fixedSize=20;F.prototype.isRoundable=function(){return!0};F.prototype.redrawPath=function(b,d,c,g,e){d="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,
+"size",this.size))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,e),new mxPoint(d,0),new mxPoint(g,0),new mxPoint(g-d,e)],this.isRounded,c,!0);b.end()};mxCellRenderer.registerShape("parallelogram",F);mxUtils.extend(E,mxActor);E.prototype.size=.2;E.prototype.fixedSize=20;E.prototype.isRoundable=function(){return!0};E.prototype.redrawPath=function(b,d,c,g,e){d="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*
+g,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):g*Math.max(0,Math.min(.5,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,e),new mxPoint(d,0),new mxPoint(g-d,0),new mxPoint(g,e)],this.isRounded,c,!0)};mxCellRenderer.registerShape("trapezoid",E);mxUtils.extend(O,mxActor);O.prototype.size=.5;O.prototype.redrawPath=function(b,d,c,g,e){b.setFillColor(null);
+d=g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(g,0),new mxPoint(d,0),new mxPoint(d,e/2),new mxPoint(0,e/2),new mxPoint(d,e/2),new mxPoint(d,e),new mxPoint(g,e)],this.isRounded,c,!1);b.end()};mxCellRenderer.registerShape("curlyBracket",O);mxUtils.extend(B,mxActor);B.prototype.redrawPath=function(b,d,c,g,e){b.setStrokeWidth(1);b.setFillColor(this.stroke);
+d=g/5;b.rect(0,0,d,e);b.fillAndStroke();b.rect(2*d,0,d,e);b.fillAndStroke();b.rect(4*d,0,d,e);b.fillAndStroke()};mxCellRenderer.registerShape("parallelMarker",B);G.prototype.moveTo=function(b,d){this.originalMoveTo.apply(this.canvas,arguments);this.lastX=b;this.lastY=d;this.firstX=b;this.firstY=d};G.prototype.close=function(){null!=this.firstX&&null!=this.firstY&&(this.lineTo(this.firstX,this.firstY),this.originalClose.apply(this.canvas,arguments));this.originalClose.apply(this.canvas,arguments)};
G.prototype.quadTo=function(b,d,c,g){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=g};G.prototype.curveTo=function(b,d,c,g,e,k){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=e;this.lastY=k};G.prototype.arcTo=function(b,d,c,g,e,k,f){this.originalArcTo.apply(this.canvas,arguments);this.lastX=k;this.lastY=f};G.prototype.lineTo=function(b,d){if(null!=this.lastX&&null!=this.lastY){var c=function(b){return"number"===typeof b?b?0>b?-1:1:b===b?0:NaN:NaN},g=Math.abs(b-
-this.lastX),e=Math.abs(d-this.lastY),k=Math.sqrt(g*g+e*e);if(2>k){this.originalLineTo.apply(this.canvas,arguments);this.lastX=b;this.lastY=d;return}var B=Math.round(k/10),f=this.defaultVariation;5>B&&(B=5,f/=3);for(var l=c(b-this.lastX)*g/B,c=c(d-this.lastY)*e/B,g=g/k,e=e/k,k=0;k<B;k++){var m=(Math.random()-.5)*f;this.originalLineTo.call(this.canvas,l*k+this.lastX-m*e,c*k+this.lastY-m*g)}this.originalLineTo.call(this.canvas,b,d)}else this.originalLineTo.apply(this.canvas,arguments);this.lastX=b;this.lastY=
+this.lastX),e=Math.abs(d-this.lastY),k=Math.sqrt(g*g+e*e);if(2>k){this.originalLineTo.apply(this.canvas,arguments);this.lastX=b;this.lastY=d;return}var A=Math.round(k/10),f=this.defaultVariation;5>A&&(A=5,f/=3);for(var l=c(b-this.lastX)*g/A,c=c(d-this.lastY)*e/A,g=g/k,e=e/k,k=0;k<A;k++){var m=(Math.random()-.5)*f;this.originalLineTo.call(this.canvas,l*k+this.lastX-m*e,c*k+this.lastY-m*g)}this.originalLineTo.call(this.canvas,b,d)}else this.originalLineTo.apply(this.canvas,arguments);this.lastX=b;this.lastY=
d};G.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=this.originalArcTo};mxShape.prototype.defaultJiggle=1.5;var cb=mxShape.prototype.beforePaint;mxShape.prototype.beforePaint=function(b){cb.apply(this,arguments);null==b.handJiggle&&(b.handJiggle=this.createHandJiggle(b))};var db=mxShape.prototype.afterPaint;
mxShape.prototype.afterPaint=function(b){db.apply(this,arguments);null!=b.handJiggle&&(b.handJiggle.destroy(),delete b.handJiggle)};mxShape.prototype.createComicCanvas=function(b){return new G(b,mxUtils.getValue(this.style,"jiggle",this.defaultJiggle))};mxShape.prototype.createHandJiggle=function(b){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"comic","0")?null:this.createComicCanvas(b)};mxRhombus.prototype.defaultJiggle=2;var gb=mxRectangleShape.prototype.isHtmlAllowed;
mxRectangleShape.prototype.isHtmlAllowed=function(){return!this.outline&&(null==this.style||"0"==mxUtils.getValue(this.style,"comic","0")&&"0"==mxUtils.getValue(this.style,"sketch","1"==urlParams.rough?"1":"0"))&&gb.apply(this,arguments)};var hb=mxRectangleShape.prototype.paintBackground;mxRectangleShape.prototype.paintBackground=function(b,d,c,g,e){if(null==b.handJiggle||b.handJiggle.constructor!=G)hb.apply(this,arguments);else{var k=!0;null!=this.style&&(k="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,
"1"));if(k||null!=this.fill&&this.fill!=mxConstants.NONE||null!=this.stroke&&this.stroke!=mxConstants.NONE)k||null!=this.fill&&this.fill!=mxConstants.NONE||(b.pointerEvents=!1),b.begin(),this.isRounded?("1"==mxUtils.getValue(this.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?k=Math.min(g/2,Math.min(e/2,mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2)):(k=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,k=Math.min(g*
-k,e*k)),b.moveTo(d+k,c),b.lineTo(d+g-k,c),b.quadTo(d+g,c,d+g,c+k),b.lineTo(d+g,c+e-k),b.quadTo(d+g,c+e,d+g-k,c+e),b.lineTo(d+k,c+e),b.quadTo(d,c+e,d,c+e-k),b.lineTo(d,c+k),b.quadTo(d,c,d+k,c)):(b.moveTo(d,c),b.lineTo(d+g,c),b.lineTo(d+g,c+e),b.lineTo(d,c+e),b.lineTo(d,c)),b.close(),b.end(),b.fillAndStroke()}};mxUtils.extend(I,mxRectangleShape);I.prototype.size=.1;I.prototype.fixedSize=!1;I.prototype.isHtmlAllowed=function(){return!1};I.prototype.getLabelBounds=function(b){if(mxUtils.getValue(this.state.style,
+k,e*k)),b.moveTo(d+k,c),b.lineTo(d+g-k,c),b.quadTo(d+g,c,d+g,c+k),b.lineTo(d+g,c+e-k),b.quadTo(d+g,c+e,d+g-k,c+e),b.lineTo(d+k,c+e),b.quadTo(d,c+e,d,c+e-k),b.lineTo(d,c+k),b.quadTo(d,c,d+k,c)):(b.moveTo(d,c),b.lineTo(d+g,c),b.lineTo(d+g,c+e),b.lineTo(d,c+e),b.lineTo(d,c)),b.close(),b.end(),b.fillAndStroke()}};mxUtils.extend(H,mxRectangleShape);H.prototype.size=.1;H.prototype.fixedSize=!1;H.prototype.isHtmlAllowed=function(){return!1};H.prototype.getLabelBounds=function(b){if(mxUtils.getValue(this.state.style,
mxConstants.STYLE_HORIZONTAL,!0)==(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)){var d=b.width,c=b.height;b=new mxRectangle(b.x,b.y,d,c);var g=d*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));if(this.isRounded)var e=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,g=Math.max(g,Math.min(d*e,c*e));b.x+=Math.round(g);b.width-=Math.round(2*g)}return b};
-I.prototype.paintForeground=function(b,d,c,g,e){var k=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),B=parseFloat(mxUtils.getValue(this.style,"size",this.size)),B=k?Math.max(0,Math.min(g,B)):g*Math.max(0,Math.min(1,B));this.isRounded&&(k=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,B=Math.max(B,Math.min(g*k,e*k)));B=Math.round(B);b.begin();b.moveTo(d+B,c);b.lineTo(d+B,c+e);b.moveTo(d+g-B,c);b.lineTo(d+g-B,c+e);b.end();b.stroke();mxRectangleShape.prototype.paintForeground.apply(this,
-arguments)};mxCellRenderer.registerShape("process",I);mxCellRenderer.registerShape("process2",I);mxUtils.extend(L,mxRectangleShape);L.prototype.paintBackground=function(b,d,c,g,e){b.setFillColor(mxConstants.NONE);b.rect(d,c,g,e);b.fill()};L.prototype.paintForeground=function(b,d,c,g,e){};mxCellRenderer.registerShape("transparent",L);mxUtils.extend(M,mxHexagon);M.prototype.size=30;M.prototype.position=.5;M.prototype.position2=.5;M.prototype.base=20;M.prototype.getLabelMargins=function(){return new mxRectangle(0,
-0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale)};M.prototype.isRoundable=function(){return!0};M.prototype.redrawPath=function(b,d,c,g,e){d=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;c=Math.max(0,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size))));var k=g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position",this.position)))),B=g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",
-this.position2)))),f=Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(b,[new mxPoint(0,0),new mxPoint(g,0),new mxPoint(g,e-c),new mxPoint(Math.min(g,k+f),e-c),new mxPoint(B,e),new mxPoint(Math.max(0,k),e-c),new mxPoint(0,e-c)],this.isRounded,d,!0,[4])};mxCellRenderer.registerShape("callout",M);mxUtils.extend(K,mxActor);K.prototype.size=.2;K.prototype.fixedSize=20;K.prototype.isRoundable=function(){return!0};K.prototype.redrawPath=function(b,d,c,g,e){d=
-"0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,0),new mxPoint(g-d,0),new mxPoint(g,e/2),new mxPoint(g-d,e),new mxPoint(0,e),new mxPoint(d,e/2)],this.isRounded,c,!0);b.end()};mxCellRenderer.registerShape("step",K);
+H.prototype.paintForeground=function(b,d,c,g,e){var k=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),A=parseFloat(mxUtils.getValue(this.style,"size",this.size)),A=k?Math.max(0,Math.min(g,A)):g*Math.max(0,Math.min(1,A));this.isRounded&&(k=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,A=Math.max(A,Math.min(g*k,e*k)));A=Math.round(A);b.begin();b.moveTo(d+A,c);b.lineTo(d+A,c+e);b.moveTo(d+g-A,c);b.lineTo(d+g-A,c+e);b.end();b.stroke();mxRectangleShape.prototype.paintForeground.apply(this,
+arguments)};mxCellRenderer.registerShape("process",H);mxCellRenderer.registerShape("process2",H);mxUtils.extend(L,mxRectangleShape);L.prototype.paintBackground=function(b,d,c,g,e){b.setFillColor(mxConstants.NONE);b.rect(d,c,g,e);b.fill()};L.prototype.paintForeground=function(b,d,c,g,e){};mxCellRenderer.registerShape("transparent",L);mxUtils.extend(N,mxHexagon);N.prototype.size=30;N.prototype.position=.5;N.prototype.position2=.5;N.prototype.base=20;N.prototype.getLabelMargins=function(){return new mxRectangle(0,
+0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale)};N.prototype.isRoundable=function(){return!0};N.prototype.redrawPath=function(b,d,c,g,e){d=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;c=Math.max(0,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size))));var k=g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position",this.position)))),A=g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",
+this.position2)))),f=Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(b,[new mxPoint(0,0),new mxPoint(g,0),new mxPoint(g,e-c),new mxPoint(Math.min(g,k+f),e-c),new mxPoint(A,e),new mxPoint(Math.max(0,k),e-c),new mxPoint(0,e-c)],this.isRounded,d,!0,[4])};mxCellRenderer.registerShape("callout",N);mxUtils.extend(M,mxActor);M.prototype.size=.2;M.prototype.fixedSize=20;M.prototype.isRoundable=function(){return!0};M.prototype.redrawPath=function(b,d,c,g,e){d=
+"0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,0),new mxPoint(g-d,0),new mxPoint(g,e/2),new mxPoint(g-d,e),new mxPoint(0,e),new mxPoint(d,e/2)],this.isRounded,c,!0);b.end()};mxCellRenderer.registerShape("step",M);
mxUtils.extend(P,mxHexagon);P.prototype.size=.25;P.prototype.fixedSize=20;P.prototype.isRoundable=function(){return!0};P.prototype.redrawPath=function(b,d,c,g,e){d="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*g,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(d,
-0),new mxPoint(g-d,0),new mxPoint(g,.5*e),new mxPoint(g-d,e),new mxPoint(d,e),new mxPoint(0,.5*e)],this.isRounded,c,!0)};mxCellRenderer.registerShape("hexagon",P);mxUtils.extend(T,mxRectangleShape);T.prototype.isHtmlAllowed=function(){return!1};T.prototype.paintForeground=function(b,d,c,g,e){var k=Math.min(g/5,e/5)+1;b.begin();b.moveTo(d+g/2,c+k);b.lineTo(d+g/2,c+e-k);b.moveTo(d+k,c+e/2);b.lineTo(d+g-k,c+e/2);b.end();b.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("plus",
-T);var $a=mxRhombus.prototype.paintVertexShape;mxRhombus.prototype.getLabelBounds=function(b){if(1==this.style["double"]){var d=(2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(b.x+d,b.y+d,b.width-2*d,b.height-2*d)}return b};mxRhombus.prototype.paintVertexShape=function(b,d,c,g,e){$a.apply(this,arguments);if(!this.outline&&1==this.style["double"]){var k=2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||
+0),new mxPoint(g-d,0),new mxPoint(g,.5*e),new mxPoint(g-d,e),new mxPoint(d,e),new mxPoint(0,.5*e)],this.isRounded,c,!0)};mxCellRenderer.registerShape("hexagon",P);mxUtils.extend(V,mxRectangleShape);V.prototype.isHtmlAllowed=function(){return!1};V.prototype.paintForeground=function(b,d,c,g,e){var k=Math.min(g/5,e/5)+1;b.begin();b.moveTo(d+g/2,c+k);b.lineTo(d+g/2,c+e-k);b.moveTo(d+k,c+e/2);b.lineTo(d+g-k,c+e/2);b.end();b.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("plus",
+V);var $a=mxRhombus.prototype.paintVertexShape;mxRhombus.prototype.getLabelBounds=function(b){if(1==this.style["double"]){var d=(2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(b.x+d,b.y+d,b.width-2*d,b.height-2*d)}return b};mxRhombus.prototype.paintVertexShape=function(b,d,c,g,e){$a.apply(this,arguments);if(!this.outline&&1==this.style["double"]){var k=2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||
0);d+=k;c+=k;g-=2*k;e-=2*k;0<g&&0<e&&(b.setShadow(!1),$a.apply(this,[b,d,c,g,e]))}};mxUtils.extend(W,mxRectangleShape);W.prototype.isHtmlAllowed=function(){return!1};W.prototype.getLabelBounds=function(b){if(1==this.style["double"]){var d=(Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(b.x+d,b.y+d,b.width-2*d,b.height-2*d)}return b};W.prototype.paintForeground=function(b,d,c,g,e){if(null!=this.style){if(!this.outline&&1==this.style["double"]){var k=
-Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);d+=k;c+=k;g-=2*k;e-=2*k;0<g&&0<e&&mxRectangleShape.prototype.paintBackground.apply(this,arguments)}b.setDashed(!1);var k=0,B;do{B=mxCellRenderer.defaultShapes[this.style["symbol"+k]];if(null!=B){var f=this.style["symbol"+k+"Align"],l=this.style["symbol"+k+"VerticalAlign"],m=this.style["symbol"+k+"Width"],p=this.style["symbol"+k+"Height"],x=this.style["symbol"+k+"Spacing"]||0,v=this.style["symbol"+k+"VSpacing"]||x,wa=
-this.style["symbol"+k+"ArcSpacing"];null!=wa&&(wa*=this.getArcSize(g+this.strokewidth,e+this.strokewidth),x+=wa,v+=wa);var wa=d,Ja=c,wa=f==mxConstants.ALIGN_CENTER?wa+(g-m)/2:f==mxConstants.ALIGN_RIGHT?wa+(g-m-x):wa+x,Ja=l==mxConstants.ALIGN_MIDDLE?Ja+(e-p)/2:l==mxConstants.ALIGN_BOTTOM?Ja+(e-p-v):Ja+v;b.save();f=new B;f.style=this.style;B.prototype.paintVertexShape.call(f,b,wa,Ja,m,p);b.restore()}k++}while(null!=B)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("ext",
-W);mxUtils.extend(ga,mxCylinder);ga.prototype.redrawPath=function(b,d,c,g,e,k){k?(b.moveTo(0,0),b.lineTo(g/2,e/2),b.lineTo(g,0),b.end()):(b.moveTo(0,0),b.lineTo(g,0),b.lineTo(g,e),b.lineTo(0,e),b.close())};mxCellRenderer.registerShape("message",ga);mxUtils.extend(ja,mxShape);ja.prototype.paintBackground=function(b,d,c,g,e){b.translate(d,c);b.ellipse(g/4,0,g/2,e/4);b.fillAndStroke();b.begin();b.moveTo(g/2,e/4);b.lineTo(g/2,2*e/3);b.moveTo(g/2,e/3);b.lineTo(0,e/3);b.moveTo(g/2,e/3);b.lineTo(g,e/3);
-b.moveTo(g/2,2*e/3);b.lineTo(0,e);b.moveTo(g/2,2*e/3);b.lineTo(g,e);b.end();b.stroke()};mxCellRenderer.registerShape("umlActor",ja);mxUtils.extend(X,mxShape);X.prototype.getLabelMargins=function(b){return new mxRectangle(b.width/6,0,0,0)};X.prototype.paintBackground=function(b,d,c,g,e){b.translate(d,c);b.begin();b.moveTo(0,e/4);b.lineTo(0,3*e/4);b.end();b.stroke();b.begin();b.moveTo(0,e/2);b.lineTo(g/6,e/2);b.end();b.stroke();b.ellipse(g/6,0,5*g/6,e);b.fillAndStroke()};mxCellRenderer.registerShape("umlBoundary",
-X);mxUtils.extend(x,mxEllipse);x.prototype.paintVertexShape=function(b,d,c,g,e){mxEllipse.prototype.paintVertexShape.apply(this,arguments);b.begin();b.moveTo(d+g/8,c+e);b.lineTo(d+7*g/8,c+e);b.end();b.stroke()};mxCellRenderer.registerShape("umlEntity",x);mxUtils.extend(C,mxShape);C.prototype.paintVertexShape=function(b,d,c,g,e){b.translate(d,c);b.begin();b.moveTo(g,0);b.lineTo(0,e);b.moveTo(0,0);b.lineTo(g,e);b.end();b.stroke()};mxCellRenderer.registerShape("umlDestroy",C);mxUtils.extend(J,mxShape);
-J.prototype.getLabelBounds=function(b){return new mxRectangle(b.x,b.y+b.height/8,b.width,7*b.height/8)};J.prototype.paintBackground=function(b,d,c,g,e){b.translate(d,c);b.begin();b.moveTo(3*g/8,e/8*1.1);b.lineTo(5*g/8,0);b.end();b.stroke();b.ellipse(0,e/8,g,7*e/8);b.fillAndStroke()};J.prototype.paintForeground=function(b,d,c,g,e){b.begin();b.moveTo(3*g/8,e/8*1.1);b.lineTo(5*g/8,e/4);b.end();b.stroke()};mxCellRenderer.registerShape("umlControl",J);mxUtils.extend(V,mxRectangleShape);V.prototype.size=
-40;V.prototype.isHtmlAllowed=function(){return!1};V.prototype.getLabelBounds=function(b){var d=Math.max(0,Math.min(b.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale));return new mxRectangle(b.x,b.y,b.width,d)};V.prototype.paintBackground=function(b,d,c,g,e){var k=Math.max(0,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),f=mxUtils.getValue(this.style,"participant");null==f||null==this.state?mxRectangleShape.prototype.paintBackground.call(this,b,d,
-c,g,k):(f=this.state.view.graph.cellRenderer.getShape(f),null!=f&&f!=V&&(f=new f,f.apply(this.state),b.save(),f.paintVertexShape(b,d,c,g,k),b.restore()));k<e&&(b.setDashed("1"==mxUtils.getValue(this.style,"lifelineDashed","1")),b.begin(),b.moveTo(d+g/2,c+k),b.lineTo(d+g/2,c+e),b.end(),b.stroke())};V.prototype.paintForeground=function(b,d,c,g,e){var k=Math.max(0,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size))));mxRectangleShape.prototype.paintForeground.call(this,b,d,c,g,Math.min(e,
-k))};mxCellRenderer.registerShape("umlLifeline",V);mxUtils.extend(ca,mxShape);ca.prototype.width=60;ca.prototype.height=30;ca.prototype.corner=10;ca.prototype.getLabelMargins=function(b){return new mxRectangle(0,0,b.width-parseFloat(mxUtils.getValue(this.style,"width",this.width)*this.scale),b.height-parseFloat(mxUtils.getValue(this.style,"height",this.height)*this.scale))};ca.prototype.paintBackground=function(b,d,c,g,e){var k=this.corner,f=Math.min(g,Math.max(k,parseFloat(mxUtils.getValue(this.style,
-"width",this.width)))),B=Math.min(e,Math.max(1.5*k,parseFloat(mxUtils.getValue(this.style,"height",this.height)))),l=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);l!=mxConstants.NONE&&(b.setFillColor(l),b.rect(d,c,g,e),b.fill());null!=this.fill&&this.fill!=mxConstants.NONE&&this.gradient&&this.gradient!=mxConstants.NONE?(this.getGradientBounds(b,d,c,g,e),b.setGradient(this.fill,this.gradient,d,c,g,e,this.gradientDirection)):b.setFillColor(this.fill);b.begin();
-b.moveTo(d,c);b.lineTo(d+f,c);b.lineTo(d+f,c+Math.max(0,B-1.5*k));b.lineTo(d+Math.max(0,f-k),c+B);b.lineTo(d,c+B);b.close();b.fillAndStroke();b.begin();b.moveTo(d+f,c);b.lineTo(d+g,c);b.lineTo(d+g,c+e);b.lineTo(d,c+e);b.lineTo(d,c+B);b.stroke()};mxCellRenderer.registerShape("umlFrame",ca);mxPerimeter.CenterPerimeter=function(b,d,c,g){return new mxPoint(b.getCenterX(),b.getCenterY())};mxStyleRegistry.putValue("centerPerimeter",mxPerimeter.CenterPerimeter);mxPerimeter.LifelinePerimeter=function(b,d,
-c,g){g=V.prototype.size;null!=d&&(g=mxUtils.getValue(d.style,"size",g)*d.view.scale);d=parseFloat(d.style[mxConstants.STYLE_STROKEWIDTH]||1)*d.view.scale/2-1;c.x<b.getCenterX()&&(d=-1*(d+1));return new mxPoint(b.getCenterX()+d,Math.min(b.y+b.height,Math.max(b.y+g,c.y)))};mxStyleRegistry.putValue("lifelinePerimeter",mxPerimeter.LifelinePerimeter);mxPerimeter.OrthogonalPerimeter=function(b,d,c,g){g=!0;return mxPerimeter.RectanglePerimeter.apply(this,arguments)};mxStyleRegistry.putValue("orthogonalPerimeter",
+Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);d+=k;c+=k;g-=2*k;e-=2*k;0<g&&0<e&&mxRectangleShape.prototype.paintBackground.apply(this,arguments)}b.setDashed(!1);var k=0,A;do{A=mxCellRenderer.defaultShapes[this.style["symbol"+k]];if(null!=A){var f=this.style["symbol"+k+"Align"],l=this.style["symbol"+k+"VerticalAlign"],m=this.style["symbol"+k+"Width"],p=this.style["symbol"+k+"Height"],x=this.style["symbol"+k+"Spacing"]||0,u=this.style["symbol"+k+"VSpacing"]||x,va=
+this.style["symbol"+k+"ArcSpacing"];null!=va&&(va*=this.getArcSize(g+this.strokewidth,e+this.strokewidth),x+=va,u+=va);var va=d,Ja=c,va=f==mxConstants.ALIGN_CENTER?va+(g-m)/2:f==mxConstants.ALIGN_RIGHT?va+(g-m-x):va+x,Ja=l==mxConstants.ALIGN_MIDDLE?Ja+(e-p)/2:l==mxConstants.ALIGN_BOTTOM?Ja+(e-p-u):Ja+u;b.save();f=new A;f.style=this.style;A.prototype.paintVertexShape.call(f,b,va,Ja,m,p);b.restore()}k++}while(null!=A)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("ext",
+W);mxUtils.extend(ga,mxCylinder);ga.prototype.redrawPath=function(b,d,c,g,e,k){k?(b.moveTo(0,0),b.lineTo(g/2,e/2),b.lineTo(g,0),b.end()):(b.moveTo(0,0),b.lineTo(g,0),b.lineTo(g,e),b.lineTo(0,e),b.close())};mxCellRenderer.registerShape("message",ga);mxUtils.extend(ea,mxShape);ea.prototype.paintBackground=function(b,d,c,g,e){b.translate(d,c);b.ellipse(g/4,0,g/2,e/4);b.fillAndStroke();b.begin();b.moveTo(g/2,e/4);b.lineTo(g/2,2*e/3);b.moveTo(g/2,e/3);b.lineTo(0,e/3);b.moveTo(g/2,e/3);b.lineTo(g,e/3);
+b.moveTo(g/2,2*e/3);b.lineTo(0,e);b.moveTo(g/2,2*e/3);b.lineTo(g,e);b.end();b.stroke()};mxCellRenderer.registerShape("umlActor",ea);mxUtils.extend(ba,mxShape);ba.prototype.getLabelMargins=function(b){return new mxRectangle(b.width/6,0,0,0)};ba.prototype.paintBackground=function(b,d,c,g,e){b.translate(d,c);b.begin();b.moveTo(0,e/4);b.lineTo(0,3*e/4);b.end();b.stroke();b.begin();b.moveTo(0,e/2);b.lineTo(g/6,e/2);b.end();b.stroke();b.ellipse(g/6,0,5*g/6,e);b.fillAndStroke()};mxCellRenderer.registerShape("umlBoundary",
+ba);mxUtils.extend(x,mxEllipse);x.prototype.paintVertexShape=function(b,d,c,g,e){mxEllipse.prototype.paintVertexShape.apply(this,arguments);b.begin();b.moveTo(d+g/8,c+e);b.lineTo(d+7*g/8,c+e);b.end();b.stroke()};mxCellRenderer.registerShape("umlEntity",x);mxUtils.extend(C,mxShape);C.prototype.paintVertexShape=function(b,d,c,g,e){b.translate(d,c);b.begin();b.moveTo(g,0);b.lineTo(0,e);b.moveTo(0,0);b.lineTo(g,e);b.end();b.stroke()};mxCellRenderer.registerShape("umlDestroy",C);mxUtils.extend(J,mxShape);
+J.prototype.getLabelBounds=function(b){return new mxRectangle(b.x,b.y+b.height/8,b.width,7*b.height/8)};J.prototype.paintBackground=function(b,d,c,g,e){b.translate(d,c);b.begin();b.moveTo(3*g/8,e/8*1.1);b.lineTo(5*g/8,0);b.end();b.stroke();b.ellipse(0,e/8,g,7*e/8);b.fillAndStroke()};J.prototype.paintForeground=function(b,d,c,g,e){b.begin();b.moveTo(3*g/8,e/8*1.1);b.lineTo(5*g/8,e/4);b.end();b.stroke()};mxCellRenderer.registerShape("umlControl",J);mxUtils.extend(X,mxRectangleShape);X.prototype.size=
+40;X.prototype.isHtmlAllowed=function(){return!1};X.prototype.getLabelBounds=function(b){var d=Math.max(0,Math.min(b.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale));return new mxRectangle(b.x,b.y,b.width,d)};X.prototype.paintBackground=function(b,d,c,g,e){var k=Math.max(0,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),f=mxUtils.getValue(this.style,"participant");null==f||null==this.state?mxRectangleShape.prototype.paintBackground.call(this,b,d,
+c,g,k):(f=this.state.view.graph.cellRenderer.getShape(f),null!=f&&f!=X&&(f=new f,f.apply(this.state),b.save(),f.paintVertexShape(b,d,c,g,k),b.restore()));k<e&&(b.setDashed("1"==mxUtils.getValue(this.style,"lifelineDashed","1")),b.begin(),b.moveTo(d+g/2,c+k),b.lineTo(d+g/2,c+e),b.end(),b.stroke())};X.prototype.paintForeground=function(b,d,c,g,e){var k=Math.max(0,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size))));mxRectangleShape.prototype.paintForeground.call(this,b,d,c,g,Math.min(e,
+k))};mxCellRenderer.registerShape("umlLifeline",X);mxUtils.extend(ca,mxShape);ca.prototype.width=60;ca.prototype.height=30;ca.prototype.corner=10;ca.prototype.getLabelMargins=function(b){return new mxRectangle(0,0,b.width-parseFloat(mxUtils.getValue(this.style,"width",this.width)*this.scale),b.height-parseFloat(mxUtils.getValue(this.style,"height",this.height)*this.scale))};ca.prototype.paintBackground=function(b,d,c,g,e){var k=this.corner,f=Math.min(g,Math.max(k,parseFloat(mxUtils.getValue(this.style,
+"width",this.width)))),A=Math.min(e,Math.max(1.5*k,parseFloat(mxUtils.getValue(this.style,"height",this.height)))),l=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);l!=mxConstants.NONE&&(b.setFillColor(l),b.rect(d,c,g,e),b.fill());null!=this.fill&&this.fill!=mxConstants.NONE&&this.gradient&&this.gradient!=mxConstants.NONE?(this.getGradientBounds(b,d,c,g,e),b.setGradient(this.fill,this.gradient,d,c,g,e,this.gradientDirection)):b.setFillColor(this.fill);b.begin();
+b.moveTo(d,c);b.lineTo(d+f,c);b.lineTo(d+f,c+Math.max(0,A-1.5*k));b.lineTo(d+Math.max(0,f-k),c+A);b.lineTo(d,c+A);b.close();b.fillAndStroke();b.begin();b.moveTo(d+f,c);b.lineTo(d+g,c);b.lineTo(d+g,c+e);b.lineTo(d,c+e);b.lineTo(d,c+A);b.stroke()};mxCellRenderer.registerShape("umlFrame",ca);mxPerimeter.CenterPerimeter=function(b,d,c,g){return new mxPoint(b.getCenterX(),b.getCenterY())};mxStyleRegistry.putValue("centerPerimeter",mxPerimeter.CenterPerimeter);mxPerimeter.LifelinePerimeter=function(b,d,
+c,g){g=X.prototype.size;null!=d&&(g=mxUtils.getValue(d.style,"size",g)*d.view.scale);d=parseFloat(d.style[mxConstants.STYLE_STROKEWIDTH]||1)*d.view.scale/2-1;c.x<b.getCenterX()&&(d=-1*(d+1));return new mxPoint(b.getCenterX()+d,Math.min(b.y+b.height,Math.max(b.y+g,c.y)))};mxStyleRegistry.putValue("lifelinePerimeter",mxPerimeter.LifelinePerimeter);mxPerimeter.OrthogonalPerimeter=function(b,d,c,g){g=!0;return mxPerimeter.RectanglePerimeter.apply(this,arguments)};mxStyleRegistry.putValue("orthogonalPerimeter",
mxPerimeter.OrthogonalPerimeter);mxPerimeter.BackbonePerimeter=function(b,d,c,g){g=parseFloat(d.style[mxConstants.STYLE_STROKEWIDTH]||1)*d.view.scale/2-1;null!=d.style.backboneSize&&(g+=parseFloat(d.style.backboneSize)*d.view.scale/2-1);if("south"==d.style[mxConstants.STYLE_DIRECTION]||"north"==d.style[mxConstants.STYLE_DIRECTION])return c.x<b.getCenterX()&&(g=-1*(g+1)),new mxPoint(b.getCenterX()+g,Math.min(b.y+b.height,Math.max(b.y,c.y)));c.y<b.getCenterY()&&(g=-1*(g+1));return new mxPoint(Math.min(b.x+
-b.width,Math.max(b.x,c.x)),b.getCenterY()+g)};mxStyleRegistry.putValue("backbonePerimeter",mxPerimeter.BackbonePerimeter);mxPerimeter.CalloutPerimeter=function(b,d,c,g){return mxPerimeter.RectanglePerimeter(mxUtils.getDirectedBounds(b,new mxRectangle(0,0,0,Math.max(0,Math.min(b.height,parseFloat(mxUtils.getValue(d.style,"size",M.prototype.size))*d.view.scale))),d.style),d,c,g)};mxStyleRegistry.putValue("calloutPerimeter",mxPerimeter.CalloutPerimeter);mxPerimeter.ParallelogramPerimeter=function(b,
-d,c,g){var e="0"!=mxUtils.getValue(d.style,"fixedSize","0"),k=e?E.prototype.fixedSize:E.prototype.size;null!=d&&(k=mxUtils.getValue(d.style,"size",k));e&&(k*=d.view.scale);var f=b.x,B=b.y,l=b.width,m=b.height;d=null!=d?mxUtils.getValue(d.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;d==mxConstants.DIRECTION_NORTH||d==mxConstants.DIRECTION_SOUTH?(e=e?Math.max(0,Math.min(m,k)):m*Math.max(0,Math.min(1,k)),B=[new mxPoint(f,B),new mxPoint(f+l,B+e),new mxPoint(f+
-l,B+m),new mxPoint(f,B+m-e),new mxPoint(f,B)]):(e=e?Math.max(0,Math.min(.5*l,k)):l*Math.max(0,Math.min(1,k)),B=[new mxPoint(f+e,B),new mxPoint(f+l,B),new mxPoint(f+l-e,B+m),new mxPoint(f,B+m),new mxPoint(f+e,B)]);m=b.getCenterX();b=b.getCenterY();b=new mxPoint(m,b);g&&(c.x<f||c.x>f+l?b.y=c.y:b.x=c.x);return mxUtils.getPerimeterPoint(B,b,c)};mxStyleRegistry.putValue("parallelogramPerimeter",mxPerimeter.ParallelogramPerimeter);mxPerimeter.TrapezoidPerimeter=function(b,d,c,g){var e="0"!=mxUtils.getValue(d.style,
-"fixedSize","0"),k=e?H.prototype.fixedSize:H.prototype.size;null!=d&&(k=mxUtils.getValue(d.style,"size",k));e&&(k*=d.view.scale);var f=b.x,B=b.y,l=b.width,m=b.height;d=null!=d?mxUtils.getValue(d.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;d==mxConstants.DIRECTION_EAST?(e=e?Math.max(0,Math.min(.5*l,k)):l*Math.max(0,Math.min(1,k)),B=[new mxPoint(f+e,B),new mxPoint(f+l-e,B),new mxPoint(f+l,B+m),new mxPoint(f,B+m),new mxPoint(f+e,B)]):d==mxConstants.DIRECTION_WEST?
-(e=e?Math.max(0,Math.min(l,k)):l*Math.max(0,Math.min(1,k)),B=[new mxPoint(f,B),new mxPoint(f+l,B),new mxPoint(f+l-e,B+m),new mxPoint(f+e,B+m),new mxPoint(f,B)]):d==mxConstants.DIRECTION_NORTH?(e=e?Math.max(0,Math.min(m,k)):m*Math.max(0,Math.min(1,k)),B=[new mxPoint(f,B+e),new mxPoint(f+l,B),new mxPoint(f+l,B+m),new mxPoint(f,B+m-e),new mxPoint(f,B+e)]):(e=e?Math.max(0,Math.min(m,k)):m*Math.max(0,Math.min(1,k)),B=[new mxPoint(f,B),new mxPoint(f+l,B+e),new mxPoint(f+l,B+m-e),new mxPoint(f,B+m),new mxPoint(f,
-B)]);m=b.getCenterX();b=b.getCenterY();b=new mxPoint(m,b);g&&(c.x<f||c.x>f+l?b.y=c.y:b.x=c.x);return mxUtils.getPerimeterPoint(B,b,c)};mxStyleRegistry.putValue("trapezoidPerimeter",mxPerimeter.TrapezoidPerimeter);mxPerimeter.StepPerimeter=function(b,d,c,g){var e="0"!=mxUtils.getValue(d.style,"fixedSize","0"),k=e?K.prototype.fixedSize:K.prototype.size;null!=d&&(k=mxUtils.getValue(d.style,"size",k));e&&(k*=d.view.scale);var f=b.x,B=b.y,l=b.width,m=b.height,p=b.getCenterX();b=b.getCenterY();d=null!=
-d?mxUtils.getValue(d.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;d==mxConstants.DIRECTION_EAST?(e=e?Math.max(0,Math.min(l,k)):l*Math.max(0,Math.min(1,k)),B=[new mxPoint(f,B),new mxPoint(f+l-e,B),new mxPoint(f+l,b),new mxPoint(f+l-e,B+m),new mxPoint(f,B+m),new mxPoint(f+e,b),new mxPoint(f,B)]):d==mxConstants.DIRECTION_WEST?(e=e?Math.max(0,Math.min(l,k)):l*Math.max(0,Math.min(1,k)),B=[new mxPoint(f+e,B),new mxPoint(f+l,B),new mxPoint(f+l-e,b),new mxPoint(f+
-l,B+m),new mxPoint(f+e,B+m),new mxPoint(f,b),new mxPoint(f+e,B)]):d==mxConstants.DIRECTION_NORTH?(e=e?Math.max(0,Math.min(m,k)):m*Math.max(0,Math.min(1,k)),B=[new mxPoint(f,B+e),new mxPoint(p,B),new mxPoint(f+l,B+e),new mxPoint(f+l,B+m),new mxPoint(p,B+m-e),new mxPoint(f,B+m),new mxPoint(f,B+e)]):(e=e?Math.max(0,Math.min(m,k)):m*Math.max(0,Math.min(1,k)),B=[new mxPoint(f,B),new mxPoint(p,B+e),new mxPoint(f+l,B),new mxPoint(f+l,B+m-e),new mxPoint(p,B+m),new mxPoint(f,B+m-e),new mxPoint(f,B)]);p=new mxPoint(p,
-b);g&&(c.x<f||c.x>f+l?p.y=c.y:p.x=c.x);return mxUtils.getPerimeterPoint(B,p,c)};mxStyleRegistry.putValue("stepPerimeter",mxPerimeter.StepPerimeter);mxPerimeter.HexagonPerimeter2=function(b,d,c,g){var e="0"!=mxUtils.getValue(d.style,"fixedSize","0"),k=e?P.prototype.fixedSize:P.prototype.size;null!=d&&(k=mxUtils.getValue(d.style,"size",k));e&&(k*=d.view.scale);var f=b.x,B=b.y,l=b.width,m=b.height,p=b.getCenterX();b=b.getCenterY();d=null!=d?mxUtils.getValue(d.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):
-mxConstants.DIRECTION_EAST;d==mxConstants.DIRECTION_NORTH||d==mxConstants.DIRECTION_SOUTH?(e=e?Math.max(0,Math.min(m,k)):m*Math.max(0,Math.min(1,k)),B=[new mxPoint(p,B),new mxPoint(f+l,B+e),new mxPoint(f+l,B+m-e),new mxPoint(p,B+m),new mxPoint(f,B+m-e),new mxPoint(f,B+e),new mxPoint(p,B)]):(e=e?Math.max(0,Math.min(l,k)):l*Math.max(0,Math.min(1,k)),B=[new mxPoint(f+e,B),new mxPoint(f+l-e,B),new mxPoint(f+l,b),new mxPoint(f+l-e,B+m),new mxPoint(f+e,B+m),new mxPoint(f,b),new mxPoint(f+e,B)]);p=new mxPoint(p,
-b);g&&(c.x<f||c.x>f+l?p.y=c.y:p.x=c.x);return mxUtils.getPerimeterPoint(B,p,c)};mxStyleRegistry.putValue("hexagonPerimeter2",mxPerimeter.HexagonPerimeter2);mxUtils.extend(aa,mxShape);aa.prototype.size=10;aa.prototype.paintBackground=function(b,d,c,g,e){var k=parseFloat(mxUtils.getValue(this.style,"size",this.size));b.translate(d,c);b.ellipse((g-k)/2,0,k,k);b.fillAndStroke();b.begin();b.moveTo(g/2,k);b.lineTo(g/2,e);b.end();b.stroke()};mxCellRenderer.registerShape("lollipop",aa);mxUtils.extend(da,
-mxShape);da.prototype.size=10;da.prototype.inset=2;da.prototype.paintBackground=function(b,d,c,g,e){var k=parseFloat(mxUtils.getValue(this.style,"size",this.size)),f=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;b.translate(d,c);b.begin();b.moveTo(g/2,k+f);b.lineTo(g/2,e);b.end();b.stroke();b.begin();b.moveTo((g-k)/2-f,k/2);b.quadTo((g-k)/2-f,k+f,g/2,k+f);b.quadTo((g+k)/2+f,k+f,(g+k)/2+f,k/2);b.end();b.stroke()};mxCellRenderer.registerShape("requires",da);mxUtils.extend(ta,
-mxShape);ta.prototype.paintBackground=function(b,d,c,g,e){b.translate(d,c);b.begin();b.moveTo(0,0);b.quadTo(g,0,g,e/2);b.quadTo(g,e,0,e);b.end();b.stroke()};mxCellRenderer.registerShape("requiredInterface",ta);mxUtils.extend(ua,mxShape);ua.prototype.inset=2;ua.prototype.paintBackground=function(b,d,c,g,e){var k=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;b.translate(d,c);b.ellipse(0,k,g-2*k,e-2*k);b.fillAndStroke();b.begin();b.moveTo(g/2,0);b.quadTo(g,0,g,e/2);b.quadTo(g,
-e,g/2,e);b.end();b.stroke()};mxCellRenderer.registerShape("providedRequiredInterface",ua);mxUtils.extend(ha,mxCylinder);ha.prototype.jettyWidth=20;ha.prototype.jettyHeight=10;ha.prototype.redrawPath=function(b,d,c,g,e,k){var f=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));d=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));c=f/2;var f=c+f/2,B=Math.min(d,e-d),l=Math.min(B+2*d,e-d);k?(b.moveTo(c,B),b.lineTo(f,B),b.lineTo(f,B+d),b.lineTo(c,B+d),b.moveTo(c,
-l),b.lineTo(f,l),b.lineTo(f,l+d),b.lineTo(c,l+d)):(b.moveTo(c,0),b.lineTo(g,0),b.lineTo(g,e),b.lineTo(c,e),b.lineTo(c,l+d),b.lineTo(0,l+d),b.lineTo(0,l),b.lineTo(c,l),b.lineTo(c,B+d),b.lineTo(0,B+d),b.lineTo(0,B),b.lineTo(c,B),b.close());b.end()};mxCellRenderer.registerShape("module",ha);mxUtils.extend(oa,mxCylinder);oa.prototype.jettyWidth=32;oa.prototype.jettyHeight=12;oa.prototype.redrawPath=function(b,d,c,g,e,k){var f=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));d=parseFloat(mxUtils.getValue(this.style,
-"jettyHeight",this.jettyHeight));c=f/2;var f=c+f/2,B=.3*e-d/2,l=.7*e-d/2;k?(b.moveTo(c,B),b.lineTo(f,B),b.lineTo(f,B+d),b.lineTo(c,B+d),b.moveTo(c,l),b.lineTo(f,l),b.lineTo(f,l+d),b.lineTo(c,l+d)):(b.moveTo(c,0),b.lineTo(g,0),b.lineTo(g,e),b.lineTo(c,e),b.lineTo(c,l+d),b.lineTo(0,l+d),b.lineTo(0,l),b.lineTo(c,l),b.lineTo(c,B+d),b.lineTo(0,B+d),b.lineTo(0,B),b.lineTo(c,B),b.close());b.end()};mxCellRenderer.registerShape("component",oa);mxUtils.extend(Y,mxRectangleShape);Y.prototype.paintForeground=
-function(b,d,c,g,e){var k=g/2,f=e/2,B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;b.begin();this.addPoints(b,[new mxPoint(d+k,c),new mxPoint(d+g,c+f),new mxPoint(d+k,c+e),new mxPoint(d,c+f)],this.isRounded,B,!0);b.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",Y);mxUtils.extend(Q,mxDoubleEllipse);Q.prototype.outerStroke=!0;Q.prototype.paintVertexShape=function(b,d,c,g,e){var k=Math.min(4,
-Math.min(g/5,e/5));0<g&&0<e&&(b.ellipse(d+k,c+k,g-2*k,e-2*k),b.fillAndStroke());b.setShadow(!1);this.outerStroke&&(b.ellipse(d,c,g,e),b.stroke())};mxCellRenderer.registerShape("endState",Q);mxUtils.extend(ea,Q);ea.prototype.outerStroke=!1;mxCellRenderer.registerShape("startState",ea);mxUtils.extend(S,mxArrowConnector);S.prototype.defaultWidth=4;S.prototype.isOpenEnded=function(){return!0};S.prototype.getEdgeWidth=function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,
-this.strokewidth-1)};S.prototype.isArrowRounded=function(){return this.isRounded};mxCellRenderer.registerShape("link",S);mxUtils.extend(ma,mxArrowConnector);ma.prototype.defaultWidth=10;ma.prototype.defaultArrowWidth=20;ma.prototype.getStartArrowWidth=function(){return this.getEdgeWidth()+mxUtils.getNumber(this.style,"startWidth",this.defaultArrowWidth)};ma.prototype.getEndArrowWidth=function(){return this.getEdgeWidth()+mxUtils.getNumber(this.style,"endWidth",this.defaultArrowWidth)};ma.prototype.getEdgeWidth=
-function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,this.strokewidth-1)};mxCellRenderer.registerShape("flexArrow",ma);mxUtils.extend(pa,mxActor);pa.prototype.size=30;pa.prototype.isRoundable=function(){return!0};pa.prototype.redrawPath=function(b,d,c,g,e){d=Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size)));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,e),new mxPoint(0,d),new mxPoint(g,
-0),new mxPoint(g,e)],this.isRounded,c,!0);b.end()};mxCellRenderer.registerShape("manualInput",pa);mxUtils.extend(ra,mxRectangleShape);ra.prototype.dx=20;ra.prototype.dy=20;ra.prototype.isHtmlAllowed=function(){return!1};ra.prototype.paintForeground=function(b,d,c,g,e){mxRectangleShape.prototype.paintForeground.apply(this,arguments);var k=0;if(this.isRounded)var f=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,k=Math.max(k,Math.min(g*f,e*f));f=
-Math.max(k,Math.min(g,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));k=Math.max(k,Math.min(e,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));b.begin();b.moveTo(d,c+k);b.lineTo(d+g,c+k);b.end();b.stroke();b.begin();b.moveTo(d+f,c);b.lineTo(d+f,c+e);b.end();b.stroke()};mxCellRenderer.registerShape("internalStorage",ra);mxUtils.extend(R,mxActor);R.prototype.dx=20;R.prototype.dy=20;R.prototype.redrawPath=function(b,d,c,g,e){d=Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,
-"dx",this.dx))));c=Math.max(0,Math.min(e,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var k=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,0),new mxPoint(g,0),new mxPoint(g,c),new mxPoint(d,c),new mxPoint(d,e),new mxPoint(0,e)],this.isRounded,k,!0);b.end()};mxCellRenderer.registerShape("corner",R);mxUtils.extend(qa,mxActor);qa.prototype.redrawPath=function(b,d,c,
-g,e){b.moveTo(0,0);b.lineTo(0,e);b.end();b.moveTo(g,0);b.lineTo(g,e);b.end();b.moveTo(0,e/2);b.lineTo(g,e/2);b.end()};mxCellRenderer.registerShape("crossbar",qa);mxUtils.extend(ia,mxActor);ia.prototype.dx=20;ia.prototype.dy=20;ia.prototype.redrawPath=function(b,d,c,g,e){d=Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));c=Math.max(0,Math.min(e,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var k=mxUtils.getValue(this.style,
-mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,0),new mxPoint(g,0),new mxPoint(g,c),new mxPoint((g+d)/2,c),new mxPoint((g+d)/2,e),new mxPoint((g-d)/2,e),new mxPoint((g-d)/2,c),new mxPoint(0,c)],this.isRounded,k,!0);b.end()};mxCellRenderer.registerShape("tee",ia);mxUtils.extend(fa,mxActor);fa.prototype.arrowWidth=.3;fa.prototype.arrowSize=.2;fa.prototype.redrawPath=function(b,d,c,g,e){var k=e*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",
-this.arrowWidth))));d=g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",this.arrowSize))));c=(e-k)/2;var k=c+k,f=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,c),new mxPoint(g-d,c),new mxPoint(g-d,0),new mxPoint(g,e/2),new mxPoint(g-d,e),new mxPoint(g-d,k),new mxPoint(0,k)],this.isRounded,f,!0);b.end()};mxCellRenderer.registerShape("singleArrow",fa);mxUtils.extend(ba,mxActor);ba.prototype.redrawPath=function(b,
-d,c,g,e){var k=e*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",fa.prototype.arrowWidth))));d=g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",fa.prototype.arrowSize))));c=(e-k)/2;var k=c+k,f=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,e/2),new mxPoint(d,0),new mxPoint(d,c),new mxPoint(g-d,c),new mxPoint(g-d,0),new mxPoint(g,e/2),new mxPoint(g-d,e),new mxPoint(g-d,k),new mxPoint(d,
-k),new mxPoint(d,e)],this.isRounded,f,!0);b.end()};mxCellRenderer.registerShape("doubleArrow",ba);mxUtils.extend(na,mxActor);na.prototype.size=.1;na.prototype.fixedSize=20;na.prototype.redrawPath=function(b,d,c,g,e){d="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));b.moveTo(d,0);b.lineTo(g,0);b.quadTo(g-2*d,e/2,g,e);b.lineTo(d,
-e);b.quadTo(d-2*d,e/2,d,0);b.close();b.end()};mxCellRenderer.registerShape("dataStorage",na);mxUtils.extend(Aa,mxActor);Aa.prototype.redrawPath=function(b,d,c,g,e){b.moveTo(0,0);b.quadTo(g,0,g,e/2);b.quadTo(g,e,0,e);b.close();b.end()};mxCellRenderer.registerShape("or",Aa);mxUtils.extend(xa,mxActor);xa.prototype.redrawPath=function(b,d,c,g,e){b.moveTo(0,0);b.quadTo(g,0,g,e/2);b.quadTo(g,e,0,e);b.quadTo(g/2,e/2,0,0);b.close();b.end()};mxCellRenderer.registerShape("xor",xa);mxUtils.extend(sa,mxActor);
-sa.prototype.size=20;sa.prototype.isRoundable=function(){return!0};sa.prototype.redrawPath=function(b,d,c,g,e){d=Math.min(g/2,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(d,0),new mxPoint(g-d,0),new mxPoint(g,.8*d),new mxPoint(g,e),new mxPoint(0,e),new mxPoint(0,.8*d)],this.isRounded,c,!0);b.end()};mxCellRenderer.registerShape("loopLimit",sa);mxUtils.extend(ka,
-mxActor);ka.prototype.size=.375;ka.prototype.isRoundable=function(){return!0};ka.prototype.redrawPath=function(b,d,c,g,e){d=e*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,0),new mxPoint(g,0),new mxPoint(g,e-d),new mxPoint(g/2,e),new mxPoint(0,e-d)],this.isRounded,c,!0);b.end()};mxCellRenderer.registerShape("offPageConnector",ka);mxUtils.extend(Z,
-mxEllipse);Z.prototype.paintVertexShape=function(b,d,c,g,e){mxEllipse.prototype.paintVertexShape.apply(this,arguments);b.begin();b.moveTo(d+g/2,c+e);b.lineTo(d+g,c+e);b.end();b.stroke()};mxCellRenderer.registerShape("tapeData",Z);mxUtils.extend(O,mxEllipse);O.prototype.paintVertexShape=function(b,d,c,g,e){mxEllipse.prototype.paintVertexShape.apply(this,arguments);b.setShadow(!1);b.begin();b.moveTo(d,c+e/2);b.lineTo(d+g,c+e/2);b.end();b.stroke();b.begin();b.moveTo(d+g/2,c);b.lineTo(d+g/2,c+e);b.end();
-b.stroke()};mxCellRenderer.registerShape("orEllipse",O);mxUtils.extend(Ga,mxEllipse);Ga.prototype.paintVertexShape=function(b,d,c,g,e){mxEllipse.prototype.paintVertexShape.apply(this,arguments);b.setShadow(!1);b.begin();b.moveTo(d+.145*g,c+.145*e);b.lineTo(d+.855*g,c+.855*e);b.end();b.stroke();b.begin();b.moveTo(d+.855*g,c+.145*e);b.lineTo(d+.145*g,c+.855*e);b.end();b.stroke()};mxCellRenderer.registerShape("sumEllipse",Ga);mxUtils.extend(Da,mxRhombus);Da.prototype.paintVertexShape=function(b,d,c,
-g,e){mxRhombus.prototype.paintVertexShape.apply(this,arguments);b.setShadow(!1);b.begin();b.moveTo(d,c+e/2);b.lineTo(d+g,c+e/2);b.end();b.stroke()};mxCellRenderer.registerShape("sortShape",Da);mxUtils.extend(ya,mxEllipse);ya.prototype.paintVertexShape=function(b,d,c,g,e){b.begin();b.moveTo(d,c);b.lineTo(d+g,c);b.lineTo(d+g/2,c+e/2);b.close();b.fillAndStroke();b.begin();b.moveTo(d,c+e);b.lineTo(d+g,c+e);b.lineTo(d+g/2,c+e/2);b.close();b.fillAndStroke()};mxCellRenderer.registerShape("collate",ya);mxUtils.extend(Ea,
-mxEllipse);Ea.prototype.paintVertexShape=function(b,d,c,g,e){var k=b.state.strokeWidth/2,f=10+2*k,l=c+e-f/2;b.begin();b.moveTo(d,c);b.lineTo(d,c+e);b.moveTo(d+k,l);b.lineTo(d+k+f,l-f/2);b.moveTo(d+k,l);b.lineTo(d+k+f,l+f/2);b.moveTo(d+k,l);b.lineTo(d+g-k,l);b.moveTo(d+g,c);b.lineTo(d+g,c+e);b.moveTo(d+g-k,l);b.lineTo(d+g-f-k,l-f/2);b.moveTo(d+g-k,l);b.lineTo(d+g-f-k,l+f/2);b.end();b.stroke()};mxCellRenderer.registerShape("dimension",Ea);mxUtils.extend(va,mxEllipse);va.prototype.drawHidden=!0;va.prototype.paintVertexShape=
-function(b,d,c,g,e){this.outline||b.setStrokeColor(null);if(null!=this.style){var k=b.pointerEvents,f=null!=this.fill&&this.fill!=mxConstants.NONE;"1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||f||(b.pointerEvents=!1);var l="1"==mxUtils.getValue(this.style,"top","1"),m="1"==mxUtils.getValue(this.style,"left","1"),B="1"==mxUtils.getValue(this.style,"right","1"),p="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||f||this.outline||l||B||p||m?(b.rect(d,c,g,e),b.fill(),
-b.pointerEvents=k,b.setStrokeColor(this.stroke),b.setLineCap("square"),b.begin(),b.moveTo(d,c),this.outline||l?b.lineTo(d+g,c):b.moveTo(d+g,c),this.outline||B?b.lineTo(d+g,c+e):b.moveTo(d+g,c+e),this.outline||p?b.lineTo(d,c+e):b.moveTo(d,c+e),(this.outline||m)&&b.lineTo(d,c),b.end(),b.stroke(),b.setLineCap("flat")):b.setStrokeColor(this.stroke)}};mxCellRenderer.registerShape("partialRectangle",va);mxUtils.extend(Ha,mxEllipse);Ha.prototype.paintVertexShape=function(b,d,c,g,e){mxEllipse.prototype.paintVertexShape.apply(this,
-arguments);b.setShadow(!1);b.begin();"vertical"==mxUtils.getValue(this.style,"line")?(b.moveTo(d+g/2,c),b.lineTo(d+g/2,c+e)):(b.moveTo(d,c+e/2),b.lineTo(d+g,c+e/2));b.end();b.stroke()};mxCellRenderer.registerShape("lineEllipse",Ha);mxUtils.extend(Ca,mxActor);Ca.prototype.redrawPath=function(b,d,c,g,e){d=Math.min(g,e/2);b.moveTo(0,0);b.lineTo(g-d,0);b.quadTo(g,0,g,e/2);b.quadTo(g,e,g-d,e);b.lineTo(0,e);b.close();b.end()};mxCellRenderer.registerShape("delay",Ca);mxUtils.extend(za,mxActor);za.prototype.size=
-.2;za.prototype.redrawPath=function(b,d,c,g,e){d=Math.min(e,g);var k=Math.max(0,Math.min(d,d*parseFloat(mxUtils.getValue(this.style,"size",this.size))));d=(e-k)/2;c=d+k;var f=(g-k)/2,k=f+k;b.moveTo(0,d);b.lineTo(f,d);b.lineTo(f,0);b.lineTo(k,0);b.lineTo(k,d);b.lineTo(g,d);b.lineTo(g,c);b.lineTo(k,c);b.lineTo(k,e);b.lineTo(f,e);b.lineTo(f,c);b.lineTo(0,c);b.close();b.end()};mxCellRenderer.registerShape("cross",za);mxUtils.extend(Ba,mxActor);Ba.prototype.size=.25;Ba.prototype.redrawPath=function(b,
-d,c,g,e){d=Math.min(g,e/2);c=Math.min(g-d,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*g);b.moveTo(0,e/2);b.lineTo(c,0);b.lineTo(g-d,0);b.quadTo(g,0,g,e/2);b.quadTo(g,e,g-d,e);b.lineTo(c,e);b.close();b.end()};mxCellRenderer.registerShape("display",Ba);mxUtils.extend(U,mxActor);U.prototype.cst={RECT2:"mxgraph.basic.rect"};U.prototype.customProperties=[{name:"rectStyle",dispName:"Style",type:"enum",defVal:"square",enumList:[{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},
+b.width,Math.max(b.x,c.x)),b.getCenterY()+g)};mxStyleRegistry.putValue("backbonePerimeter",mxPerimeter.BackbonePerimeter);mxPerimeter.CalloutPerimeter=function(b,d,c,g){return mxPerimeter.RectanglePerimeter(mxUtils.getDirectedBounds(b,new mxRectangle(0,0,0,Math.max(0,Math.min(b.height,parseFloat(mxUtils.getValue(d.style,"size",N.prototype.size))*d.view.scale))),d.style),d,c,g)};mxStyleRegistry.putValue("calloutPerimeter",mxPerimeter.CalloutPerimeter);mxPerimeter.ParallelogramPerimeter=function(b,
+d,c,g){var e="0"!=mxUtils.getValue(d.style,"fixedSize","0"),k=e?F.prototype.fixedSize:F.prototype.size;null!=d&&(k=mxUtils.getValue(d.style,"size",k));e&&(k*=d.view.scale);var f=b.x,A=b.y,l=b.width,m=b.height;d=null!=d?mxUtils.getValue(d.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;d==mxConstants.DIRECTION_NORTH||d==mxConstants.DIRECTION_SOUTH?(e=e?Math.max(0,Math.min(m,k)):m*Math.max(0,Math.min(1,k)),A=[new mxPoint(f,A),new mxPoint(f+l,A+e),new mxPoint(f+
+l,A+m),new mxPoint(f,A+m-e),new mxPoint(f,A)]):(e=e?Math.max(0,Math.min(.5*l,k)):l*Math.max(0,Math.min(1,k)),A=[new mxPoint(f+e,A),new mxPoint(f+l,A),new mxPoint(f+l-e,A+m),new mxPoint(f,A+m),new mxPoint(f+e,A)]);m=b.getCenterX();b=b.getCenterY();b=new mxPoint(m,b);g&&(c.x<f||c.x>f+l?b.y=c.y:b.x=c.x);return mxUtils.getPerimeterPoint(A,b,c)};mxStyleRegistry.putValue("parallelogramPerimeter",mxPerimeter.ParallelogramPerimeter);mxPerimeter.TrapezoidPerimeter=function(b,d,c,g){var e="0"!=mxUtils.getValue(d.style,
+"fixedSize","0"),k=e?E.prototype.fixedSize:E.prototype.size;null!=d&&(k=mxUtils.getValue(d.style,"size",k));e&&(k*=d.view.scale);var f=b.x,A=b.y,l=b.width,m=b.height;d=null!=d?mxUtils.getValue(d.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;d==mxConstants.DIRECTION_EAST?(e=e?Math.max(0,Math.min(.5*l,k)):l*Math.max(0,Math.min(1,k)),A=[new mxPoint(f+e,A),new mxPoint(f+l-e,A),new mxPoint(f+l,A+m),new mxPoint(f,A+m),new mxPoint(f+e,A)]):d==mxConstants.DIRECTION_WEST?
+(e=e?Math.max(0,Math.min(l,k)):l*Math.max(0,Math.min(1,k)),A=[new mxPoint(f,A),new mxPoint(f+l,A),new mxPoint(f+l-e,A+m),new mxPoint(f+e,A+m),new mxPoint(f,A)]):d==mxConstants.DIRECTION_NORTH?(e=e?Math.max(0,Math.min(m,k)):m*Math.max(0,Math.min(1,k)),A=[new mxPoint(f,A+e),new mxPoint(f+l,A),new mxPoint(f+l,A+m),new mxPoint(f,A+m-e),new mxPoint(f,A+e)]):(e=e?Math.max(0,Math.min(m,k)):m*Math.max(0,Math.min(1,k)),A=[new mxPoint(f,A),new mxPoint(f+l,A+e),new mxPoint(f+l,A+m-e),new mxPoint(f,A+m),new mxPoint(f,
+A)]);m=b.getCenterX();b=b.getCenterY();b=new mxPoint(m,b);g&&(c.x<f||c.x>f+l?b.y=c.y:b.x=c.x);return mxUtils.getPerimeterPoint(A,b,c)};mxStyleRegistry.putValue("trapezoidPerimeter",mxPerimeter.TrapezoidPerimeter);mxPerimeter.StepPerimeter=function(b,d,c,g){var e="0"!=mxUtils.getValue(d.style,"fixedSize","0"),k=e?M.prototype.fixedSize:M.prototype.size;null!=d&&(k=mxUtils.getValue(d.style,"size",k));e&&(k*=d.view.scale);var f=b.x,A=b.y,l=b.width,m=b.height,p=b.getCenterX();b=b.getCenterY();d=null!=
+d?mxUtils.getValue(d.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;d==mxConstants.DIRECTION_EAST?(e=e?Math.max(0,Math.min(l,k)):l*Math.max(0,Math.min(1,k)),A=[new mxPoint(f,A),new mxPoint(f+l-e,A),new mxPoint(f+l,b),new mxPoint(f+l-e,A+m),new mxPoint(f,A+m),new mxPoint(f+e,b),new mxPoint(f,A)]):d==mxConstants.DIRECTION_WEST?(e=e?Math.max(0,Math.min(l,k)):l*Math.max(0,Math.min(1,k)),A=[new mxPoint(f+e,A),new mxPoint(f+l,A),new mxPoint(f+l-e,b),new mxPoint(f+
+l,A+m),new mxPoint(f+e,A+m),new mxPoint(f,b),new mxPoint(f+e,A)]):d==mxConstants.DIRECTION_NORTH?(e=e?Math.max(0,Math.min(m,k)):m*Math.max(0,Math.min(1,k)),A=[new mxPoint(f,A+e),new mxPoint(p,A),new mxPoint(f+l,A+e),new mxPoint(f+l,A+m),new mxPoint(p,A+m-e),new mxPoint(f,A+m),new mxPoint(f,A+e)]):(e=e?Math.max(0,Math.min(m,k)):m*Math.max(0,Math.min(1,k)),A=[new mxPoint(f,A),new mxPoint(p,A+e),new mxPoint(f+l,A),new mxPoint(f+l,A+m-e),new mxPoint(p,A+m),new mxPoint(f,A+m-e),new mxPoint(f,A)]);p=new mxPoint(p,
+b);g&&(c.x<f||c.x>f+l?p.y=c.y:p.x=c.x);return mxUtils.getPerimeterPoint(A,p,c)};mxStyleRegistry.putValue("stepPerimeter",mxPerimeter.StepPerimeter);mxPerimeter.HexagonPerimeter2=function(b,d,c,g){var e="0"!=mxUtils.getValue(d.style,"fixedSize","0"),k=e?P.prototype.fixedSize:P.prototype.size;null!=d&&(k=mxUtils.getValue(d.style,"size",k));e&&(k*=d.view.scale);var f=b.x,A=b.y,l=b.width,m=b.height,p=b.getCenterX();b=b.getCenterY();d=null!=d?mxUtils.getValue(d.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):
+mxConstants.DIRECTION_EAST;d==mxConstants.DIRECTION_NORTH||d==mxConstants.DIRECTION_SOUTH?(e=e?Math.max(0,Math.min(m,k)):m*Math.max(0,Math.min(1,k)),A=[new mxPoint(p,A),new mxPoint(f+l,A+e),new mxPoint(f+l,A+m-e),new mxPoint(p,A+m),new mxPoint(f,A+m-e),new mxPoint(f,A+e),new mxPoint(p,A)]):(e=e?Math.max(0,Math.min(l,k)):l*Math.max(0,Math.min(1,k)),A=[new mxPoint(f+e,A),new mxPoint(f+l-e,A),new mxPoint(f+l,b),new mxPoint(f+l-e,A+m),new mxPoint(f+e,A+m),new mxPoint(f,b),new mxPoint(f+e,A)]);p=new mxPoint(p,
+b);g&&(c.x<f||c.x>f+l?p.y=c.y:p.x=c.x);return mxUtils.getPerimeterPoint(A,p,c)};mxStyleRegistry.putValue("hexagonPerimeter2",mxPerimeter.HexagonPerimeter2);mxUtils.extend(ka,mxShape);ka.prototype.size=10;ka.prototype.paintBackground=function(b,d,c,g,e){var k=parseFloat(mxUtils.getValue(this.style,"size",this.size));b.translate(d,c);b.ellipse((g-k)/2,0,k,k);b.fillAndStroke();b.begin();b.moveTo(g/2,k);b.lineTo(g/2,e);b.end();b.stroke()};mxCellRenderer.registerShape("lollipop",ka);mxUtils.extend(K,mxShape);
+K.prototype.size=10;K.prototype.inset=2;K.prototype.paintBackground=function(b,d,c,g,e){var k=parseFloat(mxUtils.getValue(this.style,"size",this.size)),f=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;b.translate(d,c);b.begin();b.moveTo(g/2,k+f);b.lineTo(g/2,e);b.end();b.stroke();b.begin();b.moveTo((g-k)/2-f,k/2);b.quadTo((g-k)/2-f,k+f,g/2,k+f);b.quadTo((g+k)/2+f,k+f,(g+k)/2+f,k/2);b.end();b.stroke()};mxCellRenderer.registerShape("requires",K);mxUtils.extend(na,mxShape);
+na.prototype.paintBackground=function(b,d,c,g,e){b.translate(d,c);b.begin();b.moveTo(0,0);b.quadTo(g,0,g,e/2);b.quadTo(g,e,0,e);b.end();b.stroke()};mxCellRenderer.registerShape("requiredInterface",na);mxUtils.extend(qa,mxShape);qa.prototype.inset=2;qa.prototype.paintBackground=function(b,d,c,g,e){var k=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;b.translate(d,c);b.ellipse(0,k,g-2*k,e-2*k);b.fillAndStroke();b.begin();b.moveTo(g/2,0);b.quadTo(g,0,g,e/2);b.quadTo(g,e,
+g/2,e);b.end();b.stroke()};mxCellRenderer.registerShape("providedRequiredInterface",qa);mxUtils.extend(pa,mxCylinder);pa.prototype.jettyWidth=20;pa.prototype.jettyHeight=10;pa.prototype.redrawPath=function(b,d,c,g,e,k){var f=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));d=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));c=f/2;var f=c+f/2,A=Math.min(d,e-d),l=Math.min(A+2*d,e-d);k?(b.moveTo(c,A),b.lineTo(f,A),b.lineTo(f,A+d),b.lineTo(c,A+d),b.moveTo(c,
+l),b.lineTo(f,l),b.lineTo(f,l+d),b.lineTo(c,l+d)):(b.moveTo(c,0),b.lineTo(g,0),b.lineTo(g,e),b.lineTo(c,e),b.lineTo(c,l+d),b.lineTo(0,l+d),b.lineTo(0,l),b.lineTo(c,l),b.lineTo(c,A+d),b.lineTo(0,A+d),b.lineTo(0,A),b.lineTo(c,A),b.close());b.end()};mxCellRenderer.registerShape("module",pa);mxUtils.extend(ha,mxCylinder);ha.prototype.jettyWidth=32;ha.prototype.jettyHeight=12;ha.prototype.redrawPath=function(b,d,c,g,e,k){var f=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));d=parseFloat(mxUtils.getValue(this.style,
+"jettyHeight",this.jettyHeight));c=f/2;var f=c+f/2,A=.3*e-d/2,l=.7*e-d/2;k?(b.moveTo(c,A),b.lineTo(f,A),b.lineTo(f,A+d),b.lineTo(c,A+d),b.moveTo(c,l),b.lineTo(f,l),b.lineTo(f,l+d),b.lineTo(c,l+d)):(b.moveTo(c,0),b.lineTo(g,0),b.lineTo(g,e),b.lineTo(c,e),b.lineTo(c,l+d),b.lineTo(0,l+d),b.lineTo(0,l),b.lineTo(c,l),b.lineTo(c,A+d),b.lineTo(0,A+d),b.lineTo(0,A),b.lineTo(c,A),b.close());b.end()};mxCellRenderer.registerShape("component",ha);mxUtils.extend(sa,mxRectangleShape);sa.prototype.paintForeground=
+function(b,d,c,g,e){var k=g/2,f=e/2,A=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;b.begin();this.addPoints(b,[new mxPoint(d+k,c),new mxPoint(d+g,c+f),new mxPoint(d+k,c+e),new mxPoint(d,c+f)],this.isRounded,A,!0);b.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",sa);mxUtils.extend(Y,mxDoubleEllipse);Y.prototype.outerStroke=!0;Y.prototype.paintVertexShape=function(b,d,c,g,e){var k=Math.min(4,
+Math.min(g/5,e/5));0<g&&0<e&&(b.ellipse(d+k,c+k,g-2*k,e-2*k),b.fillAndStroke());b.setShadow(!1);this.outerStroke&&(b.ellipse(d,c,g,e),b.stroke())};mxCellRenderer.registerShape("endState",Y);mxUtils.extend(Q,Y);Q.prototype.outerStroke=!1;mxCellRenderer.registerShape("startState",Q);mxUtils.extend(ta,mxArrowConnector);ta.prototype.defaultWidth=4;ta.prototype.isOpenEnded=function(){return!0};ta.prototype.getEdgeWidth=function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,
+this.strokewidth-1)};ta.prototype.isArrowRounded=function(){return this.isRounded};mxCellRenderer.registerShape("link",ta);mxUtils.extend(T,mxArrowConnector);T.prototype.defaultWidth=10;T.prototype.defaultArrowWidth=20;T.prototype.getStartArrowWidth=function(){return this.getEdgeWidth()+mxUtils.getNumber(this.style,"startWidth",this.defaultArrowWidth)};T.prototype.getEndArrowWidth=function(){return this.getEdgeWidth()+mxUtils.getNumber(this.style,"endWidth",this.defaultArrowWidth)};T.prototype.getEdgeWidth=
+function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,this.strokewidth-1)};mxCellRenderer.registerShape("flexArrow",T);mxUtils.extend(ja,mxActor);ja.prototype.size=30;ja.prototype.isRoundable=function(){return!0};ja.prototype.redrawPath=function(b,d,c,g,e){d=Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size)));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,e),new mxPoint(0,d),new mxPoint(g,
+0),new mxPoint(g,e)],this.isRounded,c,!0);b.end()};mxCellRenderer.registerShape("manualInput",ja);mxUtils.extend(ma,mxRectangleShape);ma.prototype.dx=20;ma.prototype.dy=20;ma.prototype.isHtmlAllowed=function(){return!1};ma.prototype.paintForeground=function(b,d,c,g,e){mxRectangleShape.prototype.paintForeground.apply(this,arguments);var k=0;if(this.isRounded)var f=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,k=Math.max(k,Math.min(g*f,e*f));f=
+Math.max(k,Math.min(g,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));k=Math.max(k,Math.min(e,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));b.begin();b.moveTo(d,c+k);b.lineTo(d+g,c+k);b.end();b.stroke();b.begin();b.moveTo(d+f,c);b.lineTo(d+f,c+e);b.end();b.stroke()};mxCellRenderer.registerShape("internalStorage",ma);mxUtils.extend(ra,mxActor);ra.prototype.dx=20;ra.prototype.dy=20;ra.prototype.redrawPath=function(b,d,c,g,e){d=Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,
+"dx",this.dx))));c=Math.max(0,Math.min(e,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var k=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,0),new mxPoint(g,0),new mxPoint(g,c),new mxPoint(d,c),new mxPoint(d,e),new mxPoint(0,e)],this.isRounded,k,!0);b.end()};mxCellRenderer.registerShape("corner",ra);mxUtils.extend(S,mxActor);S.prototype.redrawPath=function(b,d,c,g,
+e){b.moveTo(0,0);b.lineTo(0,e);b.end();b.moveTo(g,0);b.lineTo(g,e);b.end();b.moveTo(0,e/2);b.lineTo(g,e/2);b.end()};mxCellRenderer.registerShape("crossbar",S);mxUtils.extend(oa,mxActor);oa.prototype.dx=20;oa.prototype.dy=20;oa.prototype.redrawPath=function(b,d,c,g,e){d=Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));c=Math.max(0,Math.min(e,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var k=mxUtils.getValue(this.style,
+mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,0),new mxPoint(g,0),new mxPoint(g,c),new mxPoint((g+d)/2,c),new mxPoint((g+d)/2,e),new mxPoint((g-d)/2,e),new mxPoint((g-d)/2,c),new mxPoint(0,c)],this.isRounded,k,!0);b.end()};mxCellRenderer.registerShape("tee",oa);mxUtils.extend(da,mxActor);da.prototype.arrowWidth=.3;da.prototype.arrowSize=.2;da.prototype.redrawPath=function(b,d,c,g,e){var k=e*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",
+this.arrowWidth))));d=g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",this.arrowSize))));c=(e-k)/2;var k=c+k,f=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,c),new mxPoint(g-d,c),new mxPoint(g-d,0),new mxPoint(g,e/2),new mxPoint(g-d,e),new mxPoint(g-d,k),new mxPoint(0,k)],this.isRounded,f,!0);b.end()};mxCellRenderer.registerShape("singleArrow",da);mxUtils.extend(Z,mxActor);Z.prototype.redrawPath=function(b,
+d,c,g,e){var k=e*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",da.prototype.arrowWidth))));d=g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",da.prototype.arrowSize))));c=(e-k)/2;var k=c+k,f=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,e/2),new mxPoint(d,0),new mxPoint(d,c),new mxPoint(g-d,c),new mxPoint(g-d,0),new mxPoint(g,e/2),new mxPoint(g-d,e),new mxPoint(g-d,k),new mxPoint(d,
+k),new mxPoint(d,e)],this.isRounded,f,!0);b.end()};mxCellRenderer.registerShape("doubleArrow",Z);mxUtils.extend(la,mxActor);la.prototype.size=.1;la.prototype.fixedSize=20;la.prototype.redrawPath=function(b,d,c,g,e){d="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));b.moveTo(d,0);b.lineTo(g,0);b.quadTo(g-2*d,e/2,g,e);b.lineTo(d,
+e);b.quadTo(d-2*d,e/2,d,0);b.close();b.end()};mxCellRenderer.registerShape("dataStorage",la);mxUtils.extend(ya,mxActor);ya.prototype.redrawPath=function(b,d,c,g,e){b.moveTo(0,0);b.quadTo(g,0,g,e/2);b.quadTo(g,e,0,e);b.close();b.end()};mxCellRenderer.registerShape("or",ya);mxUtils.extend(za,mxActor);za.prototype.redrawPath=function(b,d,c,g,e){b.moveTo(0,0);b.quadTo(g,0,g,e/2);b.quadTo(g,e,0,e);b.quadTo(g/2,e/2,0,0);b.close();b.end()};mxCellRenderer.registerShape("xor",za);mxUtils.extend(ua,mxActor);
+ua.prototype.size=20;ua.prototype.isRoundable=function(){return!0};ua.prototype.redrawPath=function(b,d,c,g,e){d=Math.min(g/2,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(d,0),new mxPoint(g-d,0),new mxPoint(g,.8*d),new mxPoint(g,e),new mxPoint(0,e),new mxPoint(0,.8*d)],this.isRounded,c,!0);b.end()};mxCellRenderer.registerShape("loopLimit",ua);mxUtils.extend(fa,
+mxActor);fa.prototype.size=.375;fa.prototype.isRoundable=function(){return!0};fa.prototype.redrawPath=function(b,d,c,g,e){d=e*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,0),new mxPoint(g,0),new mxPoint(g,e-d),new mxPoint(g/2,e),new mxPoint(0,e-d)],this.isRounded,c,!0);b.end()};mxCellRenderer.registerShape("offPageConnector",fa);mxUtils.extend(aa,
+mxEllipse);aa.prototype.paintVertexShape=function(b,d,c,g,e){mxEllipse.prototype.paintVertexShape.apply(this,arguments);b.begin();b.moveTo(d+g/2,c+e);b.lineTo(d+g,c+e);b.end();b.stroke()};mxCellRenderer.registerShape("tapeData",aa);mxUtils.extend(R,mxEllipse);R.prototype.paintVertexShape=function(b,d,c,g,e){mxEllipse.prototype.paintVertexShape.apply(this,arguments);b.setShadow(!1);b.begin();b.moveTo(d,c+e/2);b.lineTo(d+g,c+e/2);b.end();b.stroke();b.begin();b.moveTo(d+g/2,c);b.lineTo(d+g/2,c+e);b.end();
+b.stroke()};mxCellRenderer.registerShape("orEllipse",R);mxUtils.extend(Fa,mxEllipse);Fa.prototype.paintVertexShape=function(b,d,c,g,e){mxEllipse.prototype.paintVertexShape.apply(this,arguments);b.setShadow(!1);b.begin();b.moveTo(d+.145*g,c+.145*e);b.lineTo(d+.855*g,c+.855*e);b.end();b.stroke();b.begin();b.moveTo(d+.855*g,c+.145*e);b.lineTo(d+.145*g,c+.855*e);b.end();b.stroke()};mxCellRenderer.registerShape("sumEllipse",Fa);mxUtils.extend(Ga,mxRhombus);Ga.prototype.paintVertexShape=function(b,d,c,
+g,e){mxRhombus.prototype.paintVertexShape.apply(this,arguments);b.setShadow(!1);b.begin();b.moveTo(d,c+e/2);b.lineTo(d+g,c+e/2);b.end();b.stroke()};mxCellRenderer.registerShape("sortShape",Ga);mxUtils.extend(wa,mxEllipse);wa.prototype.paintVertexShape=function(b,d,c,g,e){b.begin();b.moveTo(d,c);b.lineTo(d+g,c);b.lineTo(d+g/2,c+e/2);b.close();b.fillAndStroke();b.begin();b.moveTo(d,c+e);b.lineTo(d+g,c+e);b.lineTo(d+g/2,c+e/2);b.close();b.fillAndStroke()};mxCellRenderer.registerShape("collate",wa);mxUtils.extend(Aa,
+mxEllipse);Aa.prototype.paintVertexShape=function(b,d,c,g,e){var k=b.state.strokeWidth/2,f=10+2*k,l=c+e-f/2;b.begin();b.moveTo(d,c);b.lineTo(d,c+e);b.moveTo(d+k,l);b.lineTo(d+k+f,l-f/2);b.moveTo(d+k,l);b.lineTo(d+k+f,l+f/2);b.moveTo(d+k,l);b.lineTo(d+g-k,l);b.moveTo(d+g,c);b.lineTo(d+g,c+e);b.moveTo(d+g-k,l);b.lineTo(d+g-f-k,l-f/2);b.moveTo(d+g-k,l);b.lineTo(d+g-f-k,l+f/2);b.end();b.stroke()};mxCellRenderer.registerShape("dimension",Aa);mxUtils.extend(xa,mxEllipse);xa.prototype.drawHidden=!0;xa.prototype.paintVertexShape=
+function(b,d,c,g,e){this.outline||b.setStrokeColor(null);if(null!=this.style){var k=b.pointerEvents,f=null!=this.fill&&this.fill!=mxConstants.NONE;"1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||f||(b.pointerEvents=!1);var l="1"==mxUtils.getValue(this.style,"top","1"),m="1"==mxUtils.getValue(this.style,"left","1"),A="1"==mxUtils.getValue(this.style,"right","1"),p="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||f||this.outline||l||A||p||m?(b.rect(d,c,g,e),b.fill(),
+b.pointerEvents=k,b.setStrokeColor(this.stroke),b.setLineCap("square"),b.begin(),b.moveTo(d,c),this.outline||l?b.lineTo(d+g,c):b.moveTo(d+g,c),this.outline||A?b.lineTo(d+g,c+e):b.moveTo(d+g,c+e),this.outline||p?b.lineTo(d,c+e):b.moveTo(d,c+e),(this.outline||m)&&b.lineTo(d,c),b.end(),b.stroke(),b.setLineCap("flat")):b.setStrokeColor(this.stroke)}};mxCellRenderer.registerShape("partialRectangle",xa);mxUtils.extend(Ba,mxEllipse);Ba.prototype.paintVertexShape=function(b,d,c,g,e){mxEllipse.prototype.paintVertexShape.apply(this,
+arguments);b.setShadow(!1);b.begin();"vertical"==mxUtils.getValue(this.style,"line")?(b.moveTo(d+g/2,c),b.lineTo(d+g/2,c+e)):(b.moveTo(d,c+e/2),b.lineTo(d+g,c+e/2));b.end();b.stroke()};mxCellRenderer.registerShape("lineEllipse",Ba);mxUtils.extend(Ha,mxActor);Ha.prototype.redrawPath=function(b,d,c,g,e){d=Math.min(g,e/2);b.moveTo(0,0);b.lineTo(g-d,0);b.quadTo(g,0,g,e/2);b.quadTo(g,e,g-d,e);b.lineTo(0,e);b.close();b.end()};mxCellRenderer.registerShape("delay",Ha);mxUtils.extend(Ca,mxActor);Ca.prototype.size=
+.2;Ca.prototype.redrawPath=function(b,d,c,g,e){d=Math.min(e,g);var k=Math.max(0,Math.min(d,d*parseFloat(mxUtils.getValue(this.style,"size",this.size))));d=(e-k)/2;c=d+k;var f=(g-k)/2,k=f+k;b.moveTo(0,d);b.lineTo(f,d);b.lineTo(f,0);b.lineTo(k,0);b.lineTo(k,d);b.lineTo(g,d);b.lineTo(g,c);b.lineTo(k,c);b.lineTo(k,e);b.lineTo(f,e);b.lineTo(f,c);b.lineTo(0,c);b.close();b.end()};mxCellRenderer.registerShape("cross",Ca);mxUtils.extend(Da,mxActor);Da.prototype.size=.25;Da.prototype.redrawPath=function(b,
+d,c,g,e){d=Math.min(g,e/2);c=Math.min(g-d,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*g);b.moveTo(0,e/2);b.lineTo(c,0);b.lineTo(g-d,0);b.quadTo(g,0,g,e/2);b.quadTo(g,e,g-d,e);b.lineTo(c,e);b.close();b.end()};mxCellRenderer.registerShape("display",Da);mxUtils.extend(U,mxActor);U.prototype.cst={RECT2:"mxgraph.basic.rect"};U.prototype.customProperties=[{name:"rectStyle",dispName:"Style",type:"enum",defVal:"square",enumList:[{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},
{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]},{name:"size",dispName:"Corner Size",type:"float",defVal:10},{name:"absoluteCornerSize",dispName:"Abs. Corner Size",type:"bool",defVal:!0},{name:"indent",dispName:"Indent",type:"float",defVal:2},{name:"rectOutline",dispName:"Outline",type:"enum",defVal:"single",enumList:[{val:"single",dispName:"Single"},{val:"double",dispName:"Double"},{val:"frame",dispName:"Frame"}]},{name:"fillColor2",dispName:"Inside Fill Color",
type:"color",defVal:"none"},{name:"gradientColor2",dispName:"Inside Gradient Color",type:"color",defVal:"none"},{name:"gradientDirection2",dispName:"Inside Gradient Direction",type:"enum",defVal:"south",enumList:[{val:"south",dispName:"South"},{val:"west",dispName:"West"},{val:"north",dispName:"North"},{val:"east",dispName:"East"}]},{name:"top",dispName:"Top Line",type:"bool",defVal:!0},{name:"right",dispName:"Right",type:"bool",defVal:!0},{name:"bottom",dispName:"Bottom Line",type:"bool",defVal:!0},
{name:"left",dispName:"Left ",type:"bool",defVal:!0},{name:"topLeftStyle",dispName:"Top Left Style",type:"enum",defVal:"default",enumList:[{val:"default",dispName:"Default"},{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]},{name:"topRightStyle",dispName:"Top Right Style",type:"enum",defVal:"default",enumList:[{val:"default",dispName:"Default"},{val:"square",dispName:"Square"},{val:"rounded",
dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]},{name:"bottomRightStyle",dispName:"Bottom Right Style",type:"enum",defVal:"default",enumList:[{val:"default",dispName:"Default"},{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]},{name:"bottomLeftStyle",dispName:"Bottom Left Style",type:"enum",defVal:"default",enumList:[{val:"default",
dispName:"Default"},{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]}];U.prototype.paintVertexShape=function(b,d,c,g,e){b.translate(d,c);this.strictDrawShape(b,0,0,g,e)};U.prototype.strictDrawShape=function(b,d,c,g,e,k){var f=k&&k.rectStyle?k.rectStyle:mxUtils.getValue(this.style,"rectStyle",this.rectStyle),l=k&&k.absoluteCornerSize?k.absoluteCornerSize:mxUtils.getValue(this.style,"absoluteCornerSize",
-this.absoluteCornerSize),m=k&&k.size?k.size:Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),p=k&&k.rectOutline?k.rectOutline:mxUtils.getValue(this.style,"rectOutline",this.rectOutline),x=k&&k.indent?k.indent:Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"indent",this.indent)))),v=k&&k.dashed?k.dashed:mxUtils.getValue(this.style,"dashed",!1),B=k&&k.dashPattern?k.dashPattern:mxUtils.getValue(this.style,"dashPattern",null),n=k&&k.relIndent?k.relIndent:
-Math.max(0,Math.min(50,x)),t=k&&k.top?k.top:mxUtils.getValue(this.style,"top",!0),u=k&&k.right?k.right:mxUtils.getValue(this.style,"right",!0),y=k&&k.bottom?k.bottom:mxUtils.getValue(this.style,"bottom",!0),C=k&&k.left?k.left:mxUtils.getValue(this.style,"left",!0),z=k&&k.topLeftStyle?k.topLeftStyle:mxUtils.getValue(this.style,"topLeftStyle","default"),J=k&&k.topRightStyle?k.topRightStyle:mxUtils.getValue(this.style,"topRightStyle","default"),q=k&&k.bottomRightStyle?k.bottomRightStyle:mxUtils.getValue(this.style,
-"bottomRightStyle","default"),A=k&&k.bottomLeftStyle?k.bottomLeftStyle:mxUtils.getValue(this.style,"bottomLeftStyle","default"),da=k&&k.fillColor?k.fillColor:mxUtils.getValue(this.style,"fillColor","#ffffff");k&&k.strokeColor||mxUtils.getValue(this.style,"strokeColor","#000000");var K=k&&k.strokeWidth?k.strokeWidth:mxUtils.getValue(this.style,"strokeWidth","1"),V=k&&k.fillColor2?k.fillColor2:mxUtils.getValue(this.style,"fillColor2","none"),ca=k&&k.gradientColor2?k.gradientColor2:mxUtils.getValue(this.style,
-"gradientColor2","none"),aa=k&&k.gradientDirection2?k.gradientDirection2:mxUtils.getValue(this.style,"gradientDirection2","south"),Ja=k&&k.opacity?k.opacity:mxUtils.getValue(this.style,"opacity","100"),wa=Math.max(0,Math.min(50,m));k=U.prototype;b.setDashed(v);B&&""!=B&&b.setDashPattern(B);b.setStrokeWidth(K);m=Math.min(.5*e,.5*g,m);l||(m=wa*Math.min(g,e)/100);m=Math.min(m,.5*Math.min(g,e));l||(x=Math.min(n*Math.min(g,e)/100));x=Math.min(x,.5*Math.min(g,e)-m);(t||u||y||C)&&"frame"!=p&&(b.begin(),
-t?k.moveNW(b,d,c,g,e,f,z,m,C):b.moveTo(0,0),t&&k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),u&&k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),y&&k.paintSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),C&&k.paintSW(b,d,c,g,e,f,A,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),b.close(),b.fill(),b.setShadow(!1),b.setFillColor(V),v=l=Ja,"none"==V&&(l=0),"none"==ca&&(v=0),b.setGradient(V,ca,0,0,g,e,aa,l,v),b.begin(),t?k.moveNWInner(b,d,c,g,e,f,z,m,x,t,C):b.moveTo(x,0),k.paintLeftInner(b,
-d,c,g,e,f,A,m,x,y,C),C&&y&&k.paintSWInner(b,d,c,g,e,f,A,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y),y&&u&&k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u),u&&t&&k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),t&&C&&k.paintNWInner(b,d,c,g,e,f,z,m,x),b.fill(),"none"==da&&(b.begin(),k.paintFolds(b,d,c,g,e,f,z,J,q,A,m,t,u,y,C),b.stroke()));t||u||y||!C?t||u||!y||C?!t&&!u&&y&&C?"frame"!=p?(b.begin(),k.moveSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,
-g,e,f,A,m,C),k.paintSW(b,d,c,g,e,f,A,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),"double"==p&&(k.moveNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C),k.paintSWInner(b,d,c,g,e,f,A,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y)),b.stroke()):(b.begin(),k.moveSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),k.paintSW(b,d,c,g,e,f,A,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.lineNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C),k.paintSWInner(b,d,c,g,e,f,A,m,x,y),k.paintBottomInner(b,
-d,c,g,e,f,q,m,x,u,y),b.close(),b.fillAndStroke()):t||!u||y||C?!t&&u&&!y&&C?"frame"!=p?(b.begin(),k.moveSW(b,d,c,g,e,f,z,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),"double"==p&&(k.moveNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C)),b.stroke(),b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),"double"==p&&(k.moveSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u)),b.stroke()):(b.begin(),k.moveSW(b,d,c,g,e,f,z,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),
-k.lineNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C),b.close(),b.fillAndStroke(),b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.lineSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u),b.close(),b.fillAndStroke()):!t&&u&&y&&!C?"frame"!=p?(b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),"double"==p&&(k.moveSWInner(b,d,c,g,e,f,A,m,x,C),k.paintBottomInner(b,
-d,c,g,e,f,q,m,x,u,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u)),b.stroke()):(b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),k.lineSWInner(b,d,c,g,e,f,A,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u),b.close(),b.fillAndStroke()):!t&&u&&y&&C?"frame"!=p?(b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,
-c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),k.paintSW(b,d,c,g,e,f,A,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),"double"==p&&(k.moveNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C),k.paintSWInner(b,d,c,g,e,f,A,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u)),b.stroke()):(b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,
-d,c,g,e,f,A,m,C),k.paintSW(b,d,c,g,e,f,A,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.lineNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C),k.paintSWInner(b,d,c,g,e,f,A,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u),b.close(),b.fillAndStroke()):!t||u||y||C?t&&!u&&!y&&C?"frame"!=p?(b.begin(),k.moveSW(b,d,c,g,e,f,A,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),
-"double"==p&&(k.moveNEInner(b,d,c,g,e,f,J,m,x,u),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C)),b.stroke()):(b.begin(),k.moveSW(b,d,c,g,e,f,A,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),k.lineNEInner(b,d,c,g,e,f,J,m,x,u),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C),b.close(),b.fillAndStroke()):t&&!u&&y&&!C?"frame"!=
-p?(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),"double"==p&&(k.moveNEInner(b,d,c,g,e,f,J,m,x,u),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t)),b.stroke(),b.begin(),k.moveSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),"double"==p&&(k.moveSWInner(b,d,c,g,e,f,A,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y)),b.stroke()):(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),k.lineNEInner(b,d,c,g,e,f,J,m,x,u),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),b.close(),b.fillAndStroke(),
-b.begin(),k.moveSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),k.lineSWInner(b,d,c,g,e,f,A,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y),b.close(),b.fillAndStroke()):t&&!u&&y&&C?"frame"!=p?(b.begin(),k.moveSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),k.paintSW(b,d,c,g,e,f,A,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),"double"==p&&(k.moveNEInner(b,d,c,g,e,f,J,m,x,u),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,
-e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C),k.paintSWInner(b,d,c,g,e,f,A,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y)),b.stroke()):(b.begin(),k.moveSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),k.paintSW(b,d,c,g,e,f,A,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),k.lineNEInner(b,d,c,g,e,f,J,m,x,u),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C),k.paintSWInner(b,d,c,
-g,e,f,A,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y),b.close(),b.fillAndStroke()):t&&u&&!y&&!C?"frame"!=p?(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),"double"==p&&(k.moveSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t)),b.stroke()):(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),k.paintNE(b,d,c,
-g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.lineSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),b.close(),b.fillAndStroke()):t&&u&&!y&&C?"frame"!=p?(b.begin(),k.moveSW(b,d,c,g,e,f,A,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),"double"==p&&(k.moveSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,
-d,c,g,e,f,J,m,x,t,u),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C)),b.stroke()):(b.begin(),k.moveSW(b,d,c,g,e,f,A,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.lineSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,
-c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C),b.close(),b.fillAndStroke()):t&&u&&y&&!C?"frame"!=p?(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),"double"==p&&(k.moveSWInner(b,d,c,g,e,f,A,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u),
-k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t)),b.stroke()):(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),k.lineSWInner(b,d,c,g,e,f,A,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),
-b.close(),b.fillAndStroke()):t&&u&&y&&C&&("frame"!=p?(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),k.paintSW(b,d,c,g,e,f,A,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),b.close(),"double"==p&&(k.moveSWInner(b,d,c,g,e,f,A,m,x,C),k.paintSWInner(b,d,c,g,e,f,A,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y),k.paintSEInner(b,d,c,g,e,f,q,m,
-x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C),b.close()),b.stroke()):(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),k.paintSW(b,d,c,g,e,f,A,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),b.close(),
-k.moveSWInner(b,d,c,g,e,f,A,m,x,C),k.paintSWInner(b,d,c,g,e,f,A,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C),b.close(),b.fillAndStroke())):"frame"!=p?(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),"double"==p&&(k.moveNEInner(b,d,c,g,e,f,J,m,x,u),k.paintTopInner(b,
-d,c,g,e,f,z,m,x,C,t)),b.stroke()):(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),k.lineNEInner(b,d,c,g,e,f,J,m,x,u),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),b.close(),b.fillAndStroke()):"frame"!=p?(b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),"double"==p&&(k.moveSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u)),b.stroke()):(b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.lineSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,
-d,c,g,e,f,J,m,x,t,u),b.close(),b.fillAndStroke()):"frame"!=p?(b.begin(),k.moveSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),"double"==p&&(k.moveSWInner(b,d,c,g,e,f,A,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y)),b.stroke()):(b.begin(),k.moveSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),k.lineSWInner(b,d,c,g,e,f,A,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y),b.close(),b.fillAndStroke()):"frame"!=p?(b.begin(),k.moveSW(b,d,c,g,e,f,z,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),"double"==
-p&&(k.moveNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C)),b.stroke()):(b.begin(),k.moveSW(b,d,c,g,e,f,z,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.lineNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C),b.close(),b.fillAndStroke());b.begin();k.paintFolds(b,d,c,g,e,f,z,J,q,A,m,t,u,y,C);b.stroke()};U.prototype.moveNW=function(b,d,c,g,e,k,f,m,l){"square"==f||"default"==f&&"square"==k||!l?b.moveTo(0,0):b.moveTo(0,m)};U.prototype.moveNE=function(b,d,c,g,e,k,f,m,l){"square"==
+this.absoluteCornerSize),m=k&&k.size?k.size:Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),p=k&&k.rectOutline?k.rectOutline:mxUtils.getValue(this.style,"rectOutline",this.rectOutline),x=k&&k.indent?k.indent:Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"indent",this.indent)))),u=k&&k.dashed?k.dashed:mxUtils.getValue(this.style,"dashed",!1),A=k&&k.dashPattern?k.dashPattern:mxUtils.getValue(this.style,"dashPattern",null),n=k&&k.relIndent?k.relIndent:
+Math.max(0,Math.min(50,x)),t=k&&k.top?k.top:mxUtils.getValue(this.style,"top",!0),v=k&&k.right?k.right:mxUtils.getValue(this.style,"right",!0),y=k&&k.bottom?k.bottom:mxUtils.getValue(this.style,"bottom",!0),C=k&&k.left?k.left:mxUtils.getValue(this.style,"left",!0),z=k&&k.topLeftStyle?k.topLeftStyle:mxUtils.getValue(this.style,"topLeftStyle","default"),J=k&&k.topRightStyle?k.topRightStyle:mxUtils.getValue(this.style,"topRightStyle","default"),q=k&&k.bottomRightStyle?k.bottomRightStyle:mxUtils.getValue(this.style,
+"bottomRightStyle","default"),K=k&&k.bottomLeftStyle?k.bottomLeftStyle:mxUtils.getValue(this.style,"bottomLeftStyle","default"),B=k&&k.fillColor?k.fillColor:mxUtils.getValue(this.style,"fillColor","#ffffff");k&&k.strokeColor||mxUtils.getValue(this.style,"strokeColor","#000000");var M=k&&k.strokeWidth?k.strokeWidth:mxUtils.getValue(this.style,"strokeWidth","1"),X=k&&k.fillColor2?k.fillColor2:mxUtils.getValue(this.style,"fillColor2","none"),ca=k&&k.gradientColor2?k.gradientColor2:mxUtils.getValue(this.style,
+"gradientColor2","none"),Ja=k&&k.gradientDirection2?k.gradientDirection2:mxUtils.getValue(this.style,"gradientDirection2","south"),va=k&&k.opacity?k.opacity:mxUtils.getValue(this.style,"opacity","100"),ka=Math.max(0,Math.min(50,m));k=U.prototype;b.setDashed(u);A&&""!=A&&b.setDashPattern(A);b.setStrokeWidth(M);m=Math.min(.5*e,.5*g,m);l||(m=ka*Math.min(g,e)/100);m=Math.min(m,.5*Math.min(g,e));l||(x=Math.min(n*Math.min(g,e)/100));x=Math.min(x,.5*Math.min(g,e)-m);(t||v||y||C)&&"frame"!=p&&(b.begin(),
+t?k.moveNW(b,d,c,g,e,f,z,m,C):b.moveTo(0,0),t&&k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),v&&k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),y&&k.paintSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),C&&k.paintSW(b,d,c,g,e,f,K,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),b.close(),b.fill(),b.setShadow(!1),b.setFillColor(X),u=l=va,"none"==X&&(l=0),"none"==ca&&(u=0),b.setGradient(X,ca,0,0,g,e,Ja,l,u),b.begin(),t?k.moveNWInner(b,d,c,g,e,f,z,m,x,t,C):b.moveTo(x,0),k.paintLeftInner(b,
+d,c,g,e,f,K,m,x,y,C),C&&y&&k.paintSWInner(b,d,c,g,e,f,K,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y),y&&v&&k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v),v&&t&&k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),t&&C&&k.paintNWInner(b,d,c,g,e,f,z,m,x),b.fill(),"none"==B&&(b.begin(),k.paintFolds(b,d,c,g,e,f,z,J,q,K,m,t,v,y,C),b.stroke()));t||v||y||!C?t||v||!y||C?!t&&!v&&y&&C?"frame"!=p?(b.begin(),k.moveSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,
+e,f,K,m,C),k.paintSW(b,d,c,g,e,f,K,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),"double"==p&&(k.moveNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C),k.paintSWInner(b,d,c,g,e,f,K,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y)),b.stroke()):(b.begin(),k.moveSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),k.paintSW(b,d,c,g,e,f,K,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.lineNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C),k.paintSWInner(b,d,c,g,e,f,K,m,x,y),k.paintBottomInner(b,
+d,c,g,e,f,q,m,x,v,y),b.close(),b.fillAndStroke()):t||!v||y||C?!t&&v&&!y&&C?"frame"!=p?(b.begin(),k.moveSW(b,d,c,g,e,f,z,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),"double"==p&&(k.moveNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C)),b.stroke(),b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),"double"==p&&(k.moveSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v)),b.stroke()):(b.begin(),k.moveSW(b,d,c,g,e,f,z,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),
+k.lineNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C),b.close(),b.fillAndStroke(),b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.lineSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v),b.close(),b.fillAndStroke()):!t&&v&&y&&!C?"frame"!=p?(b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),"double"==p&&(k.moveSWInner(b,d,c,g,e,f,K,m,x,C),k.paintBottomInner(b,
+d,c,g,e,f,q,m,x,v,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v)),b.stroke()):(b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),k.lineSWInner(b,d,c,g,e,f,K,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v),b.close(),b.fillAndStroke()):!t&&v&&y&&C?"frame"!=p?(b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,
+c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),k.paintSW(b,d,c,g,e,f,K,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),"double"==p&&(k.moveNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C),k.paintSWInner(b,d,c,g,e,f,K,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v)),b.stroke()):(b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,
+d,c,g,e,f,K,m,C),k.paintSW(b,d,c,g,e,f,K,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.lineNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C),k.paintSWInner(b,d,c,g,e,f,K,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v),b.close(),b.fillAndStroke()):!t||v||y||C?t&&!v&&!y&&C?"frame"!=p?(b.begin(),k.moveSW(b,d,c,g,e,f,K,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),
+"double"==p&&(k.moveNEInner(b,d,c,g,e,f,J,m,x,v),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C)),b.stroke()):(b.begin(),k.moveSW(b,d,c,g,e,f,K,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),k.lineNEInner(b,d,c,g,e,f,J,m,x,v),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C),b.close(),b.fillAndStroke()):t&&!v&&y&&!C?"frame"!=
+p?(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),"double"==p&&(k.moveNEInner(b,d,c,g,e,f,J,m,x,v),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t)),b.stroke(),b.begin(),k.moveSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),"double"==p&&(k.moveSWInner(b,d,c,g,e,f,K,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y)),b.stroke()):(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),k.lineNEInner(b,d,c,g,e,f,J,m,x,v),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),b.close(),b.fillAndStroke(),
+b.begin(),k.moveSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),k.lineSWInner(b,d,c,g,e,f,K,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y),b.close(),b.fillAndStroke()):t&&!v&&y&&C?"frame"!=p?(b.begin(),k.moveSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),k.paintSW(b,d,c,g,e,f,K,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),"double"==p&&(k.moveNEInner(b,d,c,g,e,f,J,m,x,v),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,
+e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C),k.paintSWInner(b,d,c,g,e,f,K,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y)),b.stroke()):(b.begin(),k.moveSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),k.paintSW(b,d,c,g,e,f,K,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),k.lineNEInner(b,d,c,g,e,f,J,m,x,v),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C),k.paintSWInner(b,d,c,
+g,e,f,K,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y),b.close(),b.fillAndStroke()):t&&v&&!y&&!C?"frame"!=p?(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),"double"==p&&(k.moveSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t)),b.stroke()):(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),k.paintNE(b,d,c,
+g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.lineSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),b.close(),b.fillAndStroke()):t&&v&&!y&&C?"frame"!=p?(b.begin(),k.moveSW(b,d,c,g,e,f,K,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),"double"==p&&(k.moveSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,
+d,c,g,e,f,J,m,x,t,v),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C)),b.stroke()):(b.begin(),k.moveSW(b,d,c,g,e,f,K,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.lineSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,
+c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C),b.close(),b.fillAndStroke()):t&&v&&y&&!C?"frame"!=p?(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),"double"==p&&(k.moveSWInner(b,d,c,g,e,f,K,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v),
+k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t)),b.stroke()):(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),k.lineSWInner(b,d,c,g,e,f,K,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),
+b.close(),b.fillAndStroke()):t&&v&&y&&C&&("frame"!=p?(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),k.paintSW(b,d,c,g,e,f,K,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),b.close(),"double"==p&&(k.moveSWInner(b,d,c,g,e,f,K,m,x,C),k.paintSWInner(b,d,c,g,e,f,K,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y),k.paintSEInner(b,d,c,g,e,f,q,m,
+x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C),b.close()),b.stroke()):(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),k.paintSW(b,d,c,g,e,f,K,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),b.close(),
+k.moveSWInner(b,d,c,g,e,f,K,m,x,C),k.paintSWInner(b,d,c,g,e,f,K,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C),b.close(),b.fillAndStroke())):"frame"!=p?(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),"double"==p&&(k.moveNEInner(b,d,c,g,e,f,J,m,x,v),k.paintTopInner(b,
+d,c,g,e,f,z,m,x,C,t)),b.stroke()):(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),k.lineNEInner(b,d,c,g,e,f,J,m,x,v),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),b.close(),b.fillAndStroke()):"frame"!=p?(b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),"double"==p&&(k.moveSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v)),b.stroke()):(b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.lineSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,
+d,c,g,e,f,J,m,x,t,v),b.close(),b.fillAndStroke()):"frame"!=p?(b.begin(),k.moveSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),"double"==p&&(k.moveSWInner(b,d,c,g,e,f,K,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y)),b.stroke()):(b.begin(),k.moveSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),k.lineSWInner(b,d,c,g,e,f,K,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y),b.close(),b.fillAndStroke()):"frame"!=p?(b.begin(),k.moveSW(b,d,c,g,e,f,z,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),"double"==
+p&&(k.moveNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C)),b.stroke()):(b.begin(),k.moveSW(b,d,c,g,e,f,z,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.lineNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C),b.close(),b.fillAndStroke());b.begin();k.paintFolds(b,d,c,g,e,f,z,J,q,K,m,t,v,y,C);b.stroke()};U.prototype.moveNW=function(b,d,c,g,e,k,f,m,l){"square"==f||"default"==f&&"square"==k||!l?b.moveTo(0,0):b.moveTo(0,m)};U.prototype.moveNE=function(b,d,c,g,e,k,f,m,l){"square"==
f||"default"==f&&"square"==k||!l?b.moveTo(g,0):b.moveTo(g-m,0)};U.prototype.moveSE=function(b,d,c,g,e,k,f,m,l){"square"==f||"default"==f&&"square"==k||!l?b.moveTo(g,e):b.moveTo(g,e-m)};U.prototype.moveSW=function(b,d,c,g,e,k,f,m,l){"square"==f||"default"==f&&"square"==k||!l?b.moveTo(0,e):b.moveTo(m,e)};U.prototype.paintNW=function(b,d,c,g,e,k,f,m,l){if(l)if("rounded"==f||"default"==f&&"rounded"==k||"invRound"==f||"default"==f&&"invRound"==k){d=0;if("rounded"==f||"default"==f&&"rounded"==k)d=1;b.arcTo(m,
m,0,0,d,m,0)}else("snip"==f||"default"==f&&"snip"==k||"fold"==f||"default"==f&&"fold"==k)&&b.lineTo(m,0);else b.lineTo(0,0)};U.prototype.paintTop=function(b,d,c,g,e,k,f,m,l){"square"==f||"default"==f&&"square"==k||!l?b.lineTo(g,0):b.lineTo(g-m,0)};U.prototype.paintNE=function(b,d,c,g,e,k,f,m,l){if(l)if("rounded"==f||"default"==f&&"rounded"==k||"invRound"==f||"default"==f&&"invRound"==k){d=0;if("rounded"==f||"default"==f&&"rounded"==k)d=1;b.arcTo(m,m,0,0,d,g,m)}else("snip"==f||"default"==f&&"snip"==
k||"fold"==f||"default"==f&&"fold"==k)&&b.lineTo(g,m);else b.lineTo(g,0)};U.prototype.paintRight=function(b,d,c,g,e,k,f,m,l){"square"==f||"default"==f&&"square"==k||!l?b.lineTo(g,e):b.lineTo(g,e-m)};U.prototype.paintLeft=function(b,d,c,g,e,k,f,m,l){"square"==f||"default"==f&&"square"==k||!l?b.lineTo(0,0):b.lineTo(0,m)};U.prototype.paintSE=function(b,d,c,g,e,k,f,m,l){if(l)if("rounded"==f||"default"==f&&"rounded"==k||"invRound"==f||"default"==f&&"invRound"==k){d=0;if("rounded"==f||"default"==f&&"rounded"==
@@ -2900,22 +2900,22 @@ function(b,d,c,g,e,k,f,m,l,p){p?"square"==f||"default"==f&&"square"==k?b.moveTo(
l,e-m-.5*l):("invRound"==f||"default"==f&&"invRound"==k||"fold"==f||"default"==f&&"fold"==k)&&b.lineTo(g-l,e-m-l):b.lineTo(g-l,e)};U.prototype.moveNEInner=function(b,d,c,g,e,k,f,m,l,p){p?"square"==f||"default"==f&&"square"==k||p?b.moveTo(g-l,l):"rounded"==f||"default"==f&&"rounded"==k||"snip"==f||"default"==f&&"snip"==k?b.moveTo(g-l,m+.5*l):("invRound"==f||"default"==f&&"invRound"==k||"fold"==f||"default"==f&&"fold"==k)&&b.moveTo(g-l,m+l):b.moveTo(g,l)};U.prototype.lineNEInner=function(b,d,c,g,e,
k,f,m,l,p){p?"square"==f||"default"==f&&"square"==k||p?b.lineTo(g-l,l):"rounded"==f||"default"==f&&"rounded"==k||"snip"==f||"default"==f&&"snip"==k?b.lineTo(g-l,m+.5*l):("invRound"==f||"default"==f&&"invRound"==k||"fold"==f||"default"==f&&"fold"==k)&&b.lineTo(g-l,m+l):b.lineTo(g,l)};U.prototype.moveNWInner=function(b,d,c,g,e,k,f,m,l,p,x){p||x?!p&&x?b.moveTo(l,0):p&&!x?b.moveTo(0,l):"square"==f||"default"==f&&"square"==k?b.moveTo(l,l):"rounded"==f||"default"==f&&"rounded"==k||"snip"==f||"default"==
f&&"snip"==k?b.moveTo(l,m+.5*l):("invRound"==f||"default"==f&&"invRound"==k||"fold"==f||"default"==f&&"fold"==k)&&b.moveTo(l,m+l):b.moveTo(0,0)};U.prototype.lineNWInner=function(b,d,c,g,e,k,f,m,l,p,x){p||x?!p&&x?b.lineTo(l,0):p&&!x?b.lineTo(0,l):"square"==f||"default"==f&&"square"==k?b.lineTo(l,l):"rounded"==f||"default"==f&&"rounded"==k||"snip"==f||"default"==f&&"snip"==k?b.lineTo(l,m+.5*l):("invRound"==f||"default"==f&&"invRound"==k||"fold"==f||"default"==f&&"fold"==k)&&b.lineTo(l,m+l):b.lineTo(0,
-0)};U.prototype.paintFolds=function(b,d,c,g,e,k,f,m,l,p,x,v,t,n,u){if("fold"==k||"fold"==f||"fold"==m||"fold"==l||"fold"==p)("fold"==f||"default"==f&&"fold"==k)&&v&&u&&(b.moveTo(0,x),b.lineTo(x,x),b.lineTo(x,0)),("fold"==m||"default"==m&&"fold"==k)&&v&&t&&(b.moveTo(g-x,0),b.lineTo(g-x,x),b.lineTo(g,x)),("fold"==l||"default"==l&&"fold"==k)&&n&&t&&(b.moveTo(g-x,e),b.lineTo(g-x,e-x),b.lineTo(g,e-x)),("fold"==p||"default"==p&&"fold"==k)&&n&&u&&(b.moveTo(0,e-x),b.lineTo(x,e-x),b.lineTo(x,e))};mxCellRenderer.registerShape(U.prototype.cst.RECT2,
-U);U.prototype.constraints=null;mxUtils.extend(Fa,mxConnector);Fa.prototype.origPaintEdgeShape=Fa.prototype.paintEdgeShape;Fa.prototype.paintEdgeShape=function(b,d,c){for(var g=[],e=0;e<d.length;e++)g.push(mxUtils.clone(d[e]));var e=b.state.dashed,k=b.state.fixDash;Fa.prototype.origPaintEdgeShape.apply(this,[b,g,c]);3<=b.state.strokeWidth&&(g=mxUtils.getValue(this.style,"fillColor",null),null!=g&&(b.setStrokeColor(g),b.setStrokeWidth(b.state.strokeWidth-2),b.setDashed(e,k),Fa.prototype.origPaintEdgeShape.apply(this,
-[b,d,c])))};mxCellRenderer.registerShape("filledEdge",Fa);"undefined"!==typeof StyleFormatPanel&&function(){var b=StyleFormatPanel.prototype.getCustomColors;StyleFormatPanel.prototype.getCustomColors=function(){var d=this.editorUi.getSelectionState(),c=b.apply(this,arguments);"umlFrame"==d.style.shape&&c.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return c}}();mxMarker.addMarker("dash",function(b,d,c,g,e,k,f,m,l,p){var x=e*(f+l+1),v=k*(f+l+1);return function(){b.begin();
-b.moveTo(g.x-x/2-v/2,g.y-v/2+x/2);b.lineTo(g.x+v/2-3*x/2,g.y-3*v/2-x/2);b.stroke()}});mxMarker.addMarker("box",function(b,d,c,g,e,k,f,m,l,p){var x=e*(f+l+1),v=k*(f+l+1),t=g.x+x/2,n=g.y+v/2;g.x-=x;g.y-=v;return function(){b.begin();b.moveTo(t-x/2-v/2,n-v/2+x/2);b.lineTo(t-x/2+v/2,n-v/2-x/2);b.lineTo(t+v/2-3*x/2,n-3*v/2-x/2);b.lineTo(t-v/2-3*x/2,n-3*v/2+x/2);b.close();p?b.fillAndStroke():b.stroke()}});mxMarker.addMarker("cross",function(b,d,c,g,e,k,f,m,l,p){var x=e*(f+l+1),v=k*(f+l+1);return function(){b.begin();
-b.moveTo(g.x-x/2-v/2,g.y-v/2+x/2);b.lineTo(g.x+v/2-3*x/2,g.y-3*v/2-x/2);b.moveTo(g.x-x/2+v/2,g.y-v/2-x/2);b.lineTo(g.x-v/2-3*x/2,g.y-3*v/2+x/2);b.stroke()}});mxMarker.addMarker("circle",Ua);mxMarker.addMarker("circlePlus",function(b,d,c,g,e,k,f,m,l,p){var x=g.clone(),v=Ua.apply(this,arguments),t=e*(f+2*l),n=k*(f+2*l);return function(){v.apply(this,arguments);b.begin();b.moveTo(x.x-e*l,x.y-k*l);b.lineTo(x.x-2*t+e*l,x.y-2*n+k*l);b.moveTo(x.x-t-n+k*l,x.y-n+t-e*l);b.lineTo(x.x+n-t-k*l,x.y-n-t+e*l);b.stroke()}});
-mxMarker.addMarker("halfCircle",function(b,d,c,g,e,k,f,m,l,p){var x=e*(f+l+1),v=k*(f+l+1),t=g.clone();g.x-=x;g.y-=v;return function(){b.begin();b.moveTo(t.x-v,t.y+x);b.quadTo(g.x-v,g.y+x,g.x,g.y);b.quadTo(g.x+v,g.y-x,t.x+v,t.y-x);b.stroke()}});mxMarker.addMarker("async",function(b,d,c,g,e,k,f,m,l,p){d=e*l*1.118;c=k*l*1.118;e*=f+l;k*=f+l;var x=g.clone();x.x-=d;x.y-=c;g.x+=1*-e-d;g.y+=1*-k-c;return function(){b.begin();b.moveTo(x.x,x.y);m?b.lineTo(x.x-e-k/2,x.y-k+e/2):b.lineTo(x.x+k/2-e,x.y-k-e/2);
-b.lineTo(x.x-e,x.y-k);b.close();p?b.fillAndStroke():b.stroke()}});mxMarker.addMarker("openAsync",function(b){b=null!=b?b:2;return function(d,c,g,e,k,f,m,l,p,x){k*=m+p;f*=m+p;var v=e.clone();return function(){d.begin();d.moveTo(v.x,v.y);l?d.lineTo(v.x-k-f/b,v.y-f+k/b):d.lineTo(v.x+f/b-k,v.y-f-k/b);d.stroke()}}}(2));if("undefined"!==typeof mxVertexHandler){var ab=function(b,d,c){return Ma(b,["width"],d,function(d,g,e,k,f){f=b.shape.getEdgeWidth()*b.view.scale+c;return new mxPoint(k.x+g*d/4+e*f/2,k.y+
-e*d/4-g*f/2)},function(d,g,e,k,f,m){d=Math.sqrt(mxUtils.ptSegDistSq(k.x,k.y,f.x,f.y,m.x,m.y));b.style.width=Math.round(2*d)/b.view.scale-c})},Ma=function(b,d,c,g,e){return la(b,d,function(d){var e=b.absolutePoints,k=e.length-1;d=b.view.translate;var f=b.view.scale,m=c?e[0]:e[k],e=c?e[1]:e[k-1],k=e.x-m.x,l=e.y-m.y,p=Math.sqrt(k*k+l*l),m=g.call(this,p,k/p,l/p,m,e);return new mxPoint(m.x/f-d.x,m.y/f-d.y)},function(d,g,k){var f=b.absolutePoints,m=f.length-1;d=b.view.translate;var l=b.view.scale,p=c?f[0]:
-f[m],f=c?f[1]:f[m-1],m=f.x-p.x,x=f.y-p.y,v=Math.sqrt(m*m+x*x);g.x=(g.x+d.x)*l;g.y=(g.y+d.y)*l;e.call(this,v,m/v,x/v,p,f,g,k)})},Va=function(b){return function(d){return[la(d,["arrowWidth","arrowSize"],function(d){var c=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"arrowWidth",fa.prototype.arrowWidth))),g=Math.max(0,Math.min(b,mxUtils.getValue(this.state.style,"arrowSize",fa.prototype.arrowSize)));return new mxPoint(d.x+(1-g)*d.width,d.y+(1-c)*d.height/2)},function(d,c){this.state.style.arrowWidth=
-Math.max(0,Math.min(1,Math.abs(d.y+d.height/2-c.y)/d.height*2));this.state.style.arrowSize=Math.max(0,Math.min(b,(d.x+d.width-c.x)/d.width))})]}},Wa=function(b){return function(d){return[la(d,["size"],function(d){var c=Math.max(0,Math.min(.5*d.height,parseFloat(mxUtils.getValue(this.state.style,"size",b))));return new mxPoint(d.x,d.y+c)},function(b,d){this.state.style.size=Math.max(0,d.y-b.y)},!0)]}},Sa=function(b,d,c){return function(g){var e=[la(g,["size"],function(c){var g=Math.max(0,Math.min(c.width,
-Math.min(c.height,parseFloat(mxUtils.getValue(this.state.style,"size",d)))))*b;return new mxPoint(c.x+g,c.y+g)},function(d,c){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(d.width,c.x-d.x),Math.min(d.height,c.y-d.y)))/b)},!1)];c&&mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&e.push(Ia(g));return e}},Na=function(b,d,c,g,e){c=null!=c?c:.5;return function(k){var f=[la(k,["size"],function(d){var c=null!=e?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,g=parseFloat(mxUtils.getValue(this.state.style,
-"size",c?e:b));return new mxPoint(d.x+Math.max(0,Math.min(.5*d.width,g*(c?1:d.width))),d.getCenterY())},function(b,d,g){b=null!=e&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?d.x-b.x:Math.max(0,Math.min(c,(d.x-b.x)/b.width));this.state.style.size=b},!1,g)];d&&mxUtils.getValue(k.style,mxConstants.STYLE_ROUNDED,!1)&&f.push(Ia(k));return f}},Xa=function(b,d,c){b=null!=b?b:.5;return function(g){var e=[la(g,["size"],function(g){var e=null!=c?"0"!=mxUtils.getValue(this.state.style,"fixedSize",
+0)};U.prototype.paintFolds=function(b,d,c,g,e,k,f,m,l,p,x,u,t,n,v){if("fold"==k||"fold"==f||"fold"==m||"fold"==l||"fold"==p)("fold"==f||"default"==f&&"fold"==k)&&u&&v&&(b.moveTo(0,x),b.lineTo(x,x),b.lineTo(x,0)),("fold"==m||"default"==m&&"fold"==k)&&u&&t&&(b.moveTo(g-x,0),b.lineTo(g-x,x),b.lineTo(g,x)),("fold"==l||"default"==l&&"fold"==k)&&n&&t&&(b.moveTo(g-x,e),b.lineTo(g-x,e-x),b.lineTo(g,e-x)),("fold"==p||"default"==p&&"fold"==k)&&n&&v&&(b.moveTo(0,e-x),b.lineTo(x,e-x),b.lineTo(x,e))};mxCellRenderer.registerShape(U.prototype.cst.RECT2,
+U);U.prototype.constraints=null;mxUtils.extend(Ea,mxConnector);Ea.prototype.origPaintEdgeShape=Ea.prototype.paintEdgeShape;Ea.prototype.paintEdgeShape=function(b,d,c){for(var g=[],e=0;e<d.length;e++)g.push(mxUtils.clone(d[e]));var e=b.state.dashed,k=b.state.fixDash;Ea.prototype.origPaintEdgeShape.apply(this,[b,g,c]);3<=b.state.strokeWidth&&(g=mxUtils.getValue(this.style,"fillColor",null),null!=g&&(b.setStrokeColor(g),b.setStrokeWidth(b.state.strokeWidth-2),b.setDashed(e,k),Ea.prototype.origPaintEdgeShape.apply(this,
+[b,d,c])))};mxCellRenderer.registerShape("filledEdge",Ea);"undefined"!==typeof StyleFormatPanel&&function(){var b=StyleFormatPanel.prototype.getCustomColors;StyleFormatPanel.prototype.getCustomColors=function(){var d=this.editorUi.getSelectionState(),c=b.apply(this,arguments);"umlFrame"==d.style.shape&&c.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return c}}();mxMarker.addMarker("dash",function(b,d,c,g,e,k,f,m,l,p){var x=e*(f+l+1),u=k*(f+l+1);return function(){b.begin();
+b.moveTo(g.x-x/2-u/2,g.y-u/2+x/2);b.lineTo(g.x+u/2-3*x/2,g.y-3*u/2-x/2);b.stroke()}});mxMarker.addMarker("box",function(b,d,c,g,e,k,f,m,l,p){var x=e*(f+l+1),u=k*(f+l+1),t=g.x+x/2,n=g.y+u/2;g.x-=x;g.y-=u;return function(){b.begin();b.moveTo(t-x/2-u/2,n-u/2+x/2);b.lineTo(t-x/2+u/2,n-u/2-x/2);b.lineTo(t+u/2-3*x/2,n-3*u/2-x/2);b.lineTo(t-u/2-3*x/2,n-3*u/2+x/2);b.close();p?b.fillAndStroke():b.stroke()}});mxMarker.addMarker("cross",function(b,d,c,g,e,k,f,m,l,p){var x=e*(f+l+1),u=k*(f+l+1);return function(){b.begin();
+b.moveTo(g.x-x/2-u/2,g.y-u/2+x/2);b.lineTo(g.x+u/2-3*x/2,g.y-3*u/2-x/2);b.moveTo(g.x-x/2+u/2,g.y-u/2-x/2);b.lineTo(g.x-u/2-3*x/2,g.y-3*u/2+x/2);b.stroke()}});mxMarker.addMarker("circle",Na);mxMarker.addMarker("circlePlus",function(b,d,c,g,e,k,f,m,l,p){var x=g.clone(),u=Na.apply(this,arguments),t=e*(f+2*l),n=k*(f+2*l);return function(){u.apply(this,arguments);b.begin();b.moveTo(x.x-e*l,x.y-k*l);b.lineTo(x.x-2*t+e*l,x.y-2*n+k*l);b.moveTo(x.x-t-n+k*l,x.y-n+t-e*l);b.lineTo(x.x+n-t-k*l,x.y-n-t+e*l);b.stroke()}});
+mxMarker.addMarker("halfCircle",function(b,d,c,g,e,k,f,m,l,p){var x=e*(f+l+1),u=k*(f+l+1),t=g.clone();g.x-=x;g.y-=u;return function(){b.begin();b.moveTo(t.x-u,t.y+x);b.quadTo(g.x-u,g.y+x,g.x,g.y);b.quadTo(g.x+u,g.y-x,t.x+u,t.y-x);b.stroke()}});mxMarker.addMarker("async",function(b,d,c,g,e,k,f,m,l,p){d=e*l*1.118;c=k*l*1.118;e*=f+l;k*=f+l;var x=g.clone();x.x-=d;x.y-=c;g.x+=1*-e-d;g.y+=1*-k-c;return function(){b.begin();b.moveTo(x.x,x.y);m?b.lineTo(x.x-e-k/2,x.y-k+e/2):b.lineTo(x.x+k/2-e,x.y-k-e/2);
+b.lineTo(x.x-e,x.y-k);b.close();p?b.fillAndStroke():b.stroke()}});mxMarker.addMarker("openAsync",function(b){b=null!=b?b:2;return function(d,c,g,e,k,f,m,l,p,x){k*=m+p;f*=m+p;var u=e.clone();return function(){d.begin();d.moveTo(u.x,u.y);l?d.lineTo(u.x-k-f/b,u.y-f+k/b):d.lineTo(u.x+f/b-k,u.y-f-k/b);d.stroke()}}}(2));if("undefined"!==typeof mxVertexHandler){var ab=function(b,d,c){return Ma(b,["width"],d,function(d,g,e,k,f){f=b.shape.getEdgeWidth()*b.view.scale+c;return new mxPoint(k.x+g*d/4+e*f/2,k.y+
+e*d/4-g*f/2)},function(d,g,e,k,f,m){d=Math.sqrt(mxUtils.ptSegDistSq(k.x,k.y,f.x,f.y,m.x,m.y));b.style.width=Math.round(2*d)/b.view.scale-c})},Ma=function(b,d,c,g,e){return ia(b,d,function(d){var e=b.absolutePoints,k=e.length-1;d=b.view.translate;var f=b.view.scale,m=c?e[0]:e[k],e=c?e[1]:e[k-1],k=e.x-m.x,l=e.y-m.y,p=Math.sqrt(k*k+l*l),m=g.call(this,p,k/p,l/p,m,e);return new mxPoint(m.x/f-d.x,m.y/f-d.y)},function(d,g,k){var f=b.absolutePoints,m=f.length-1;d=b.view.translate;var l=b.view.scale,p=c?f[0]:
+f[m],f=c?f[1]:f[m-1],m=f.x-p.x,x=f.y-p.y,u=Math.sqrt(m*m+x*x);g.x=(g.x+d.x)*l;g.y=(g.y+d.y)*l;e.call(this,u,m/u,x/u,p,f,g,k)})},Va=function(b){return function(d){return[ia(d,["arrowWidth","arrowSize"],function(d){var c=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"arrowWidth",da.prototype.arrowWidth))),g=Math.max(0,Math.min(b,mxUtils.getValue(this.state.style,"arrowSize",da.prototype.arrowSize)));return new mxPoint(d.x+(1-g)*d.width,d.y+(1-c)*d.height/2)},function(d,c){this.state.style.arrowWidth=
+Math.max(0,Math.min(1,Math.abs(d.y+d.height/2-c.y)/d.height*2));this.state.style.arrowSize=Math.max(0,Math.min(b,(d.x+d.width-c.x)/d.width))})]}},Wa=function(b){return function(d){return[ia(d,["size"],function(d){var c=Math.max(0,Math.min(.5*d.height,parseFloat(mxUtils.getValue(this.state.style,"size",b))));return new mxPoint(d.x,d.y+c)},function(b,d){this.state.style.size=Math.max(0,d.y-b.y)},!0)]}},Ta=function(b,d,c){return function(g){var e=[ia(g,["size"],function(c){var g=Math.max(0,Math.min(c.width,
+Math.min(c.height,parseFloat(mxUtils.getValue(this.state.style,"size",d)))))*b;return new mxPoint(c.x+g,c.y+g)},function(d,c){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(d.width,c.x-d.x),Math.min(d.height,c.y-d.y)))/b)},!1)];c&&mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&e.push(Ia(g));return e}},Oa=function(b,d,c,g,e){c=null!=c?c:.5;return function(k){var f=[ia(k,["size"],function(d){var c=null!=e?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,g=parseFloat(mxUtils.getValue(this.state.style,
+"size",c?e:b));return new mxPoint(d.x+Math.max(0,Math.min(.5*d.width,g*(c?1:d.width))),d.getCenterY())},function(b,d,g){b=null!=e&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?d.x-b.x:Math.max(0,Math.min(c,(d.x-b.x)/b.width));this.state.style.size=b},!1,g)];d&&mxUtils.getValue(k.style,mxConstants.STYLE_ROUNDED,!1)&&f.push(Ia(k));return f}},Xa=function(b,d,c){b=null!=b?b:.5;return function(g){var e=[ia(g,["size"],function(g){var e=null!=c?"0"!=mxUtils.getValue(this.state.style,"fixedSize",
"0"):null,k=Math.max(0,parseFloat(mxUtils.getValue(this.state.style,"size",e?c:d)));return new mxPoint(g.x+Math.min(.75*g.width*b,k*(e?.75:.75*g.width)),g.y+g.height/4)},function(d,g){var e=null!=c&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?g.x-d.x:Math.max(0,Math.min(b,(g.x-d.x)/d.width*.75));this.state.style.size=e},!1,!0)];mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&e.push(Ia(g));return e}},La=function(){return function(b){var d=[];mxUtils.getValue(b.style,mxConstants.STYLE_ROUNDED,
-!1)&&d.push(Ia(b));return d}},Ia=function(b,d){return la(b,[mxConstants.STYLE_ARCSIZE],function(c){var g=null!=d?d:c.height/8;if("1"==mxUtils.getValue(b.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)){var e=mxUtils.getValue(b.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;return new mxPoint(c.x+c.width-Math.min(c.width/2,e),c.y+g)}e=Math.max(0,parseFloat(mxUtils.getValue(b.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)))/100;return new mxPoint(c.x+c.width-Math.min(Math.max(c.width/
-2,c.height/2),Math.min(c.width,c.height)*e),c.y+g)},function(d,c,g){"1"==mxUtils.getValue(b.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.max(0,Math.min(d.width,2*(d.x+d.width-c.x)))):this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.min(50,Math.max(0,100*(d.width-c.x+d.x)/Math.min(d.width,d.height))))})},la=function(b,d,c,g,e,k,f){var m=new mxHandle(b,null,mxVertexHandler.prototype.secondaryHandleImage);m.execute=function(b){for(var c=
-0;c<d.length;c++)this.copyStyle(d[c]);f&&f(b)};m.getPosition=c;m.setPosition=g;m.ignoreGrid=null!=e?e:!0;if(k){var l=m.positionChanged;m.positionChanged=function(){l.apply(this,arguments);b.view.invalidate(this.state.cell);b.view.validate()}}return m},Oa={link:function(b){return[ab(b,!0,10),ab(b,!1,10)]},flexArrow:function(b){var d=b.view.graph.gridSize/b.view.scale,c=[];mxUtils.getValue(b.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE&&(c.push(Ma(b,["width",mxConstants.STYLE_STARTSIZE,
+!1)&&d.push(Ia(b));return d}},Ia=function(b,d){return ia(b,[mxConstants.STYLE_ARCSIZE],function(c){var g=null!=d?d:c.height/8;if("1"==mxUtils.getValue(b.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)){var e=mxUtils.getValue(b.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;return new mxPoint(c.x+c.width-Math.min(c.width/2,e),c.y+g)}e=Math.max(0,parseFloat(mxUtils.getValue(b.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)))/100;return new mxPoint(c.x+c.width-Math.min(Math.max(c.width/
+2,c.height/2),Math.min(c.width,c.height)*e),c.y+g)},function(d,c,g){"1"==mxUtils.getValue(b.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.max(0,Math.min(d.width,2*(d.x+d.width-c.x)))):this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.min(50,Math.max(0,100*(d.width-c.x+d.x)/Math.min(d.width,d.height))))})},ia=function(b,d,c,g,e,k,f){var m=new mxHandle(b,null,mxVertexHandler.prototype.secondaryHandleImage);m.execute=function(b){for(var c=
+0;c<d.length;c++)this.copyStyle(d[c]);f&&f(b)};m.getPosition=c;m.setPosition=g;m.ignoreGrid=null!=e?e:!0;if(k){var l=m.positionChanged;m.positionChanged=function(){l.apply(this,arguments);b.view.invalidate(this.state.cell);b.view.validate()}}return m},Pa={link:function(b){return[ab(b,!0,10),ab(b,!1,10)]},flexArrow:function(b){var d=b.view.graph.gridSize/b.view.scale,c=[];mxUtils.getValue(b.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE&&(c.push(Ma(b,["width",mxConstants.STYLE_STARTSIZE,
mxConstants.STYLE_ENDSIZE],!0,function(d,c,g,e,k){d=(b.shape.getEdgeWidth()-b.shape.strokewidth)*b.view.scale;k=3*mxUtils.getNumber(b.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*b.view.scale;return new mxPoint(e.x+c*(k+b.shape.strokewidth*b.view.scale)+g*d/2,e.y+g*(k+b.shape.strokewidth*b.view.scale)-c*d/2)},function(c,g,e,k,f,m,l){c=Math.sqrt(mxUtils.ptSegDistSq(k.x,k.y,f.x,f.y,m.x,m.y));g=mxUtils.ptLineDist(k.x,k.y,k.x+e,k.y-g,m.x,m.y);b.style[mxConstants.STYLE_STARTSIZE]=Math.round(100*
(g-b.shape.strokewidth)/3)/100/b.view.scale;b.style.width=Math.round(2*c)/b.view.scale;if(mxEvent.isShiftDown(l.getEvent())||mxEvent.isControlDown(l.getEvent()))b.style[mxConstants.STYLE_ENDSIZE]=b.style[mxConstants.STYLE_STARTSIZE];mxEvent.isAltDown(l.getEvent())||Math.abs(parseFloat(b.style[mxConstants.STYLE_STARTSIZE])-parseFloat(b.style[mxConstants.STYLE_ENDSIZE]))<d/6&&(b.style[mxConstants.STYLE_STARTSIZE]=b.style[mxConstants.STYLE_ENDSIZE])})),c.push(Ma(b,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,
mxConstants.STYLE_ENDSIZE],!0,function(d,c,g,e,k){d=(b.shape.getStartArrowWidth()-b.shape.strokewidth)*b.view.scale;k=3*mxUtils.getNumber(b.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*b.view.scale;return new mxPoint(e.x+c*(k+b.shape.strokewidth*b.view.scale)+g*d/2,e.y+g*(k+b.shape.strokewidth*b.view.scale)-c*d/2)},function(c,g,e,k,f,m,l){c=Math.sqrt(mxUtils.ptSegDistSq(k.x,k.y,f.x,f.y,m.x,m.y));g=mxUtils.ptLineDist(k.x,k.y,k.x+e,k.y-g,m.x,m.y);b.style[mxConstants.STYLE_STARTSIZE]=
@@ -2925,91 +2925,91 @@ c*(k+b.shape.strokewidth*b.view.scale)-g*d/2,e.y+g*(k+b.shape.strokewidth*b.view
mxEvent.isAltDown(l.getEvent())||Math.abs(parseFloat(b.style[mxConstants.STYLE_ENDSIZE])-parseFloat(b.style[mxConstants.STYLE_STARTSIZE]))<d/6&&(b.style[mxConstants.STYLE_ENDSIZE]=b.style[mxConstants.STYLE_STARTSIZE])})),c.push(Ma(b,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!1,function(d,c,g,e,k){d=(b.shape.getEndArrowWidth()-b.shape.strokewidth)*b.view.scale;k=3*mxUtils.getNumber(b.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*b.view.scale;return new mxPoint(e.x+
c*(k+b.shape.strokewidth*b.view.scale)-g*d/2,e.y+g*(k+b.shape.strokewidth*b.view.scale)+c*d/2)},function(c,g,e,k,f,m,l){c=Math.sqrt(mxUtils.ptSegDistSq(k.x,k.y,f.x,f.y,m.x,m.y));g=mxUtils.ptLineDist(k.x,k.y,k.x+e,k.y-g,m.x,m.y);b.style[mxConstants.STYLE_ENDSIZE]=Math.round(100*(g-b.shape.strokewidth)/3)/100/b.view.scale;b.style.endWidth=Math.max(0,Math.round(2*c)-b.shape.getEdgeWidth())/b.view.scale;if(mxEvent.isShiftDown(l.getEvent())||mxEvent.isControlDown(l.getEvent()))b.style[mxConstants.STYLE_STARTSIZE]=
b.style[mxConstants.STYLE_ENDSIZE],b.style.startWidth=b.style.endWidth;mxEvent.isAltDown(l.getEvent())||(Math.abs(parseFloat(b.style[mxConstants.STYLE_ENDSIZE])-parseFloat(b.style[mxConstants.STYLE_STARTSIZE]))<d/6&&(b.style[mxConstants.STYLE_ENDSIZE]=b.style[mxConstants.STYLE_STARTSIZE]),Math.abs(parseFloat(b.style.endWidth)-parseFloat(b.style.startWidth))<d&&(b.style.endWidth=b.style.startWidth))})));return c},swimlane:function(b){var d=[];if(mxUtils.getValue(b.style,mxConstants.STYLE_ROUNDED)){var c=
-parseFloat(mxUtils.getValue(b.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));d.push(Ia(b,c/2))}d.push(la(b,[mxConstants.STYLE_STARTSIZE],function(d){var c=parseFloat(mxUtils.getValue(b.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));return 1==mxUtils.getValue(b.style,mxConstants.STYLE_HORIZONTAL,1)?new mxPoint(d.getCenterX(),d.y+Math.max(0,Math.min(d.height,c))):new mxPoint(d.x+Math.max(0,Math.min(d.width,c)),d.getCenterY())},function(d,c){b.style[mxConstants.STYLE_STARTSIZE]=
+parseFloat(mxUtils.getValue(b.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));d.push(Ia(b,c/2))}d.push(ia(b,[mxConstants.STYLE_STARTSIZE],function(d){var c=parseFloat(mxUtils.getValue(b.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));return 1==mxUtils.getValue(b.style,mxConstants.STYLE_HORIZONTAL,1)?new mxPoint(d.getCenterX(),d.y+Math.max(0,Math.min(d.height,c))):new mxPoint(d.x+Math.max(0,Math.min(d.width,c)),d.getCenterY())},function(d,c){b.style[mxConstants.STYLE_STARTSIZE]=
1==mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,1)?Math.round(Math.max(0,Math.min(d.height,c.y-d.y))):Math.round(Math.max(0,Math.min(d.width,c.x-d.x)))},!1,null,function(d){var c=b.view.graph;if(!mxEvent.isShiftDown(d.getEvent())&&!mxEvent.isControlDown(d.getEvent())&&(c.isTableRow(b.cell)||c.isTableCell(b.cell))){d=c.getSwimlaneDirection(b.style);for(var g=c.model.getParent(b.cell),g=c.model.getChildCells(g,!0),e=[],k=0;k<g.length;k++)g[k]!=b.cell&&c.isSwimlane(g[k])&&c.getSwimlaneDirection(c.getCurrentCellStyle(g[k]))==
-d&&e.push(g[k]);c.setCellStyles(mxConstants.STYLE_STARTSIZE,b.style[mxConstants.STYLE_STARTSIZE],e)}}));return d},label:La(),ext:La(),rectangle:La(),triangle:La(),rhombus:La(),umlLifeline:function(b){return[la(b,["size"],function(b){var d=Math.max(0,Math.min(b.height,parseFloat(mxUtils.getValue(this.state.style,"size",V.prototype.size))));return new mxPoint(b.getCenterX(),b.y+d)},function(b,d){this.state.style.size=Math.round(Math.max(0,Math.min(b.height,d.y-b.y)))},!1)]},umlFrame:function(b){return[la(b,
+d&&e.push(g[k]);c.setCellStyles(mxConstants.STYLE_STARTSIZE,b.style[mxConstants.STYLE_STARTSIZE],e)}}));return d},label:La(),ext:La(),rectangle:La(),triangle:La(),rhombus:La(),umlLifeline:function(b){return[ia(b,["size"],function(b){var d=Math.max(0,Math.min(b.height,parseFloat(mxUtils.getValue(this.state.style,"size",X.prototype.size))));return new mxPoint(b.getCenterX(),b.y+d)},function(b,d){this.state.style.size=Math.round(Math.max(0,Math.min(b.height,d.y-b.y)))},!1)]},umlFrame:function(b){return[ia(b,
["width","height"],function(b){var d=Math.max(ca.prototype.corner,Math.min(b.width,mxUtils.getValue(this.state.style,"width",ca.prototype.width))),c=Math.max(1.5*ca.prototype.corner,Math.min(b.height,mxUtils.getValue(this.state.style,"height",ca.prototype.height)));return new mxPoint(b.x+d,b.y+c)},function(b,d){this.state.style.width=Math.round(Math.max(ca.prototype.corner,Math.min(b.width,d.x-b.x)));this.state.style.height=Math.round(Math.max(1.5*ca.prototype.corner,Math.min(b.height,d.y-b.y)))},
-!1)]},process:function(b){var d=[la(b,["size"],function(b){var d="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),c=parseFloat(mxUtils.getValue(this.state.style,"size",I.prototype.size));return d?new mxPoint(b.x+c,b.y+b.height/4):new mxPoint(b.x+b.width*c,b.y+b.height/4)},function(b,d){var c="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(.5*b.width,d.x-b.x)):Math.max(0,Math.min(.5,(d.x-b.x)/b.width));this.state.style.size=c},!1)];mxUtils.getValue(b.style,mxConstants.STYLE_ROUNDED,
-!1)&&d.push(Ia(b));return d},cross:function(b){return[la(b,["size"],function(b){var d=Math.min(b.width,b.height),d=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"size",za.prototype.size)))*d/2;return new mxPoint(b.getCenterX()-d,b.getCenterY()-d)},function(b,d){var c=Math.min(b.width,b.height);this.state.style.size=Math.max(0,Math.min(1,Math.min(Math.max(0,b.getCenterY()-d.y)/c*2,Math.max(0,b.getCenterX()-d.x)/c*2)))})]},note:function(b){return[la(b,["size"],function(b){var d=Math.max(0,
-Math.min(b.width,Math.min(b.height,parseFloat(mxUtils.getValue(this.state.style,"size",k.prototype.size)))));return new mxPoint(b.x+b.width-d,b.y+d)},function(b,d){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(b.width,b.x+b.width-d.x),Math.min(b.height,d.y-b.y))))})]},note2:function(b){return[la(b,["size"],function(b){var d=Math.max(0,Math.min(b.width,Math.min(b.height,parseFloat(mxUtils.getValue(this.state.style,"size",g.prototype.size)))));return new mxPoint(b.x+b.width-d,b.y+d)},
-function(b,d){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(b.width,b.x+b.width-d.x),Math.min(b.height,d.y-b.y))))})]},manualInput:function(b){var d=[la(b,["size"],function(b){var d=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"size",pa.prototype.size)));return new mxPoint(b.x+b.width/4,b.y+3*d/4)},function(b,d){this.state.style.size=Math.round(Math.max(0,Math.min(b.height,4*(d.y-b.y)/3)))},!1)];mxUtils.getValue(b.style,mxConstants.STYLE_ROUNDED,!1)&&d.push(Ia(b));
-return d},dataStorage:function(b){return[la(b,["size"],function(b){var d="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),c=parseFloat(mxUtils.getValue(this.state.style,"size",d?na.prototype.fixedSize:na.prototype.size));return new mxPoint(b.x+b.width-c*(d?1:b.width),b.getCenterY())},function(b,d){var c="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(b.width,b.x+b.width-d.x)):Math.max(0,Math.min(1,(b.x+b.width-d.x)/b.width));this.state.style.size=c},!1)]},callout:function(b){var d=
-[la(b,["size","position"],function(b){var d=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"size",M.prototype.size))),c=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",M.prototype.position)));mxUtils.getValue(this.state.style,"base",M.prototype.base);return new mxPoint(b.x+c*b.width,b.y+b.height-d)},function(b,d){mxUtils.getValue(this.state.style,"base",M.prototype.base);this.state.style.size=Math.round(Math.max(0,Math.min(b.height,b.y+b.height-d.y)));this.state.style.position=
-Math.round(100*Math.max(0,Math.min(1,(d.x-b.x)/b.width)))/100},!1),la(b,["position2"],function(b){var d=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position2",M.prototype.position2)));return new mxPoint(b.x+d*b.width,b.y+b.height)},function(b,d){this.state.style.position2=Math.round(100*Math.max(0,Math.min(1,(d.x-b.x)/b.width)))/100},!1),la(b,["base"],function(b){var d=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"size",M.prototype.size))),c=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,
-"position",M.prototype.position))),g=Math.max(0,Math.min(b.width,mxUtils.getValue(this.state.style,"base",M.prototype.base)));return new mxPoint(b.x+Math.min(b.width,c*b.width+g),b.y+b.height-d)},function(b,d){var c=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",M.prototype.position)));this.state.style.base=Math.round(Math.max(0,Math.min(b.width,d.x-b.x-c*b.width)))},!1)];mxUtils.getValue(b.style,mxConstants.STYLE_ROUNDED,!1)&&d.push(Ia(b));return d},internalStorage:function(b){var d=
-[la(b,["dx","dy"],function(b){var d=Math.max(0,Math.min(b.width,mxUtils.getValue(this.state.style,"dx",ra.prototype.dx))),c=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"dy",ra.prototype.dy)));return new mxPoint(b.x+d,b.y+c)},function(b,d){this.state.style.dx=Math.round(Math.max(0,Math.min(b.width,d.x-b.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(b.height,d.y-b.y)))},!1)];mxUtils.getValue(b.style,mxConstants.STYLE_ROUNDED,!1)&&d.push(Ia(b));return d},module:function(b){return[la(b,
-["jettyWidth","jettyHeight"],function(b){var d=Math.max(0,Math.min(b.width,mxUtils.getValue(this.state.style,"jettyWidth",ha.prototype.jettyWidth))),c=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"jettyHeight",ha.prototype.jettyHeight)));return new mxPoint(b.x+d/2,b.y+2*c)},function(b,d){this.state.style.jettyWidth=Math.round(2*Math.max(0,Math.min(b.width,d.x-b.x)));this.state.style.jettyHeight=Math.round(Math.max(0,Math.min(b.height,d.y-b.y))/2)})]},corner:function(b){return[la(b,
-["dx","dy"],function(b){var d=Math.max(0,Math.min(b.width,mxUtils.getValue(this.state.style,"dx",R.prototype.dx))),c=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"dy",R.prototype.dy)));return new mxPoint(b.x+d,b.y+c)},function(b,d){this.state.style.dx=Math.round(Math.max(0,Math.min(b.width,d.x-b.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(b.height,d.y-b.y)))},!1)]},tee:function(b){return[la(b,["dx","dy"],function(b){var d=Math.max(0,Math.min(b.width,mxUtils.getValue(this.state.style,
-"dx",ia.prototype.dx))),c=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"dy",ia.prototype.dy)));return new mxPoint(b.x+(b.width+d)/2,b.y+c)},function(b,d){this.state.style.dx=Math.round(Math.max(0,2*Math.min(b.width/2,d.x-b.x-b.width/2)));this.state.style.dy=Math.round(Math.max(0,Math.min(b.height,d.y-b.y)))},!1)]},singleArrow:Va(1),doubleArrow:Va(.5),folder:function(b){return[la(b,["tabWidth","tabHeight"],function(b){var d=Math.max(0,Math.min(b.width,mxUtils.getValue(this.state.style,
+!1)]},process:function(b){var d=[ia(b,["size"],function(b){var d="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),c=parseFloat(mxUtils.getValue(this.state.style,"size",H.prototype.size));return d?new mxPoint(b.x+c,b.y+b.height/4):new mxPoint(b.x+b.width*c,b.y+b.height/4)},function(b,d){var c="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(.5*b.width,d.x-b.x)):Math.max(0,Math.min(.5,(d.x-b.x)/b.width));this.state.style.size=c},!1)];mxUtils.getValue(b.style,mxConstants.STYLE_ROUNDED,
+!1)&&d.push(Ia(b));return d},cross:function(b){return[ia(b,["size"],function(b){var d=Math.min(b.width,b.height),d=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"size",Ca.prototype.size)))*d/2;return new mxPoint(b.getCenterX()-d,b.getCenterY()-d)},function(b,d){var c=Math.min(b.width,b.height);this.state.style.size=Math.max(0,Math.min(1,Math.min(Math.max(0,b.getCenterY()-d.y)/c*2,Math.max(0,b.getCenterX()-d.x)/c*2)))})]},note:function(b){return[ia(b,["size"],function(b){var d=Math.max(0,
+Math.min(b.width,Math.min(b.height,parseFloat(mxUtils.getValue(this.state.style,"size",k.prototype.size)))));return new mxPoint(b.x+b.width-d,b.y+d)},function(b,d){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(b.width,b.x+b.width-d.x),Math.min(b.height,d.y-b.y))))})]},note2:function(b){return[ia(b,["size"],function(b){var d=Math.max(0,Math.min(b.width,Math.min(b.height,parseFloat(mxUtils.getValue(this.state.style,"size",g.prototype.size)))));return new mxPoint(b.x+b.width-d,b.y+d)},
+function(b,d){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(b.width,b.x+b.width-d.x),Math.min(b.height,d.y-b.y))))})]},manualInput:function(b){var d=[ia(b,["size"],function(b){var d=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"size",ja.prototype.size)));return new mxPoint(b.x+b.width/4,b.y+3*d/4)},function(b,d){this.state.style.size=Math.round(Math.max(0,Math.min(b.height,4*(d.y-b.y)/3)))},!1)];mxUtils.getValue(b.style,mxConstants.STYLE_ROUNDED,!1)&&d.push(Ia(b));
+return d},dataStorage:function(b){return[ia(b,["size"],function(b){var d="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),c=parseFloat(mxUtils.getValue(this.state.style,"size",d?la.prototype.fixedSize:la.prototype.size));return new mxPoint(b.x+b.width-c*(d?1:b.width),b.getCenterY())},function(b,d){var c="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(b.width,b.x+b.width-d.x)):Math.max(0,Math.min(1,(b.x+b.width-d.x)/b.width));this.state.style.size=c},!1)]},callout:function(b){var d=
+[ia(b,["size","position"],function(b){var d=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"size",N.prototype.size))),c=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",N.prototype.position)));mxUtils.getValue(this.state.style,"base",N.prototype.base);return new mxPoint(b.x+c*b.width,b.y+b.height-d)},function(b,d){mxUtils.getValue(this.state.style,"base",N.prototype.base);this.state.style.size=Math.round(Math.max(0,Math.min(b.height,b.y+b.height-d.y)));this.state.style.position=
+Math.round(100*Math.max(0,Math.min(1,(d.x-b.x)/b.width)))/100},!1),ia(b,["position2"],function(b){var d=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position2",N.prototype.position2)));return new mxPoint(b.x+d*b.width,b.y+b.height)},function(b,d){this.state.style.position2=Math.round(100*Math.max(0,Math.min(1,(d.x-b.x)/b.width)))/100},!1),ia(b,["base"],function(b){var d=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"size",N.prototype.size))),c=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,
+"position",N.prototype.position))),g=Math.max(0,Math.min(b.width,mxUtils.getValue(this.state.style,"base",N.prototype.base)));return new mxPoint(b.x+Math.min(b.width,c*b.width+g),b.y+b.height-d)},function(b,d){var c=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",N.prototype.position)));this.state.style.base=Math.round(Math.max(0,Math.min(b.width,d.x-b.x-c*b.width)))},!1)];mxUtils.getValue(b.style,mxConstants.STYLE_ROUNDED,!1)&&d.push(Ia(b));return d},internalStorage:function(b){var d=
+[ia(b,["dx","dy"],function(b){var d=Math.max(0,Math.min(b.width,mxUtils.getValue(this.state.style,"dx",ma.prototype.dx))),c=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"dy",ma.prototype.dy)));return new mxPoint(b.x+d,b.y+c)},function(b,d){this.state.style.dx=Math.round(Math.max(0,Math.min(b.width,d.x-b.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(b.height,d.y-b.y)))},!1)];mxUtils.getValue(b.style,mxConstants.STYLE_ROUNDED,!1)&&d.push(Ia(b));return d},module:function(b){return[ia(b,
+["jettyWidth","jettyHeight"],function(b){var d=Math.max(0,Math.min(b.width,mxUtils.getValue(this.state.style,"jettyWidth",pa.prototype.jettyWidth))),c=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"jettyHeight",pa.prototype.jettyHeight)));return new mxPoint(b.x+d/2,b.y+2*c)},function(b,d){this.state.style.jettyWidth=Math.round(2*Math.max(0,Math.min(b.width,d.x-b.x)));this.state.style.jettyHeight=Math.round(Math.max(0,Math.min(b.height,d.y-b.y))/2)})]},corner:function(b){return[ia(b,
+["dx","dy"],function(b){var d=Math.max(0,Math.min(b.width,mxUtils.getValue(this.state.style,"dx",ra.prototype.dx))),c=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"dy",ra.prototype.dy)));return new mxPoint(b.x+d,b.y+c)},function(b,d){this.state.style.dx=Math.round(Math.max(0,Math.min(b.width,d.x-b.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(b.height,d.y-b.y)))},!1)]},tee:function(b){return[ia(b,["dx","dy"],function(b){var d=Math.max(0,Math.min(b.width,mxUtils.getValue(this.state.style,
+"dx",oa.prototype.dx))),c=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"dy",oa.prototype.dy)));return new mxPoint(b.x+(b.width+d)/2,b.y+c)},function(b,d){this.state.style.dx=Math.round(Math.max(0,2*Math.min(b.width/2,d.x-b.x-b.width/2)));this.state.style.dy=Math.round(Math.max(0,Math.min(b.height,d.y-b.y)))},!1)]},singleArrow:Va(1),doubleArrow:Va(.5),folder:function(b){return[ia(b,["tabWidth","tabHeight"],function(b){var d=Math.max(0,Math.min(b.width,mxUtils.getValue(this.state.style,
"tabWidth",t.prototype.tabWidth))),c=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"tabHeight",t.prototype.tabHeight)));mxUtils.getValue(this.state.style,"tabPosition",t.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(d=b.width-d);return new mxPoint(b.x+d,b.y+c)},function(b,d){var c=Math.max(0,Math.min(b.width,d.x-b.x));mxUtils.getValue(this.state.style,"tabPosition",t.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(c=b.width-c);this.state.style.tabWidth=Math.round(c);this.state.style.tabHeight=
-Math.round(Math.max(0,Math.min(b.height,d.y-b.y)))},!1)]},document:function(b){return[la(b,["size"],function(b){var d=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",D.prototype.size))));return new mxPoint(b.x+3*b.width/4,b.y+(1-d)*b.height)},function(b,d){this.state.style.size=Math.max(0,Math.min(1,(b.y+b.height-d.y)/b.height))},!1)]},tape:function(b){return[la(b,["size"],function(b){var d=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",F.prototype.size))));
-return new mxPoint(b.getCenterX(),b.y+d*b.height/2)},function(b,d){this.state.style.size=Math.max(0,Math.min(1,(d.y-b.y)/b.height*2))},!1)]},isoCube2:function(b){return[la(b,["isoAngle"],function(b){var d=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.state.style,"isoAngle",p.isoAngle))))*Math.PI/200;return new mxPoint(b.x,b.y+Math.min(b.width*Math.tan(d),.5*b.height))},function(b,d){this.state.style.isoAngle=Math.max(0,50*(d.y-b.y)/b.height)},!0)]},cylinder2:Wa(m.prototype.size),cylinder3:Wa(v.prototype.size),
-offPageConnector:function(b){return[la(b,["size"],function(b){var d=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",ka.prototype.size))));return new mxPoint(b.getCenterX(),b.y+(1-d)*b.height)},function(b,d){this.state.style.size=Math.max(0,Math.min(1,(b.y+b.height-d.y)/b.height))},!1)]},"mxgraph.basic.rect":function(b){var d=[Graph.createHandle(b,["size"],function(b){var d=Math.max(0,Math.min(b.width/2,b.height/2,parseFloat(mxUtils.getValue(this.state.style,"size",this.size))));
-return new mxPoint(b.x+d,b.y+d)},function(b,d){this.state.style.size=Math.round(100*Math.max(0,Math.min(b.height/2,b.width/2,d.x-b.x)))/100})];b=Graph.createHandle(b,["indent"],function(b){var d=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"indent",this.dx2))));return new mxPoint(b.x+.75*b.width,b.y+d*b.height/200)},function(b,d){this.state.style.indent=Math.round(100*Math.max(0,Math.min(100,200*(d.y-b.y)/b.height)))/100});d.push(b);return d},step:Na(K.prototype.size,!0,null,
-!0,K.prototype.fixedSize),hexagon:Na(P.prototype.size,!0,.5,!0,P.prototype.fixedSize),curlyBracket:Na(N.prototype.size,!1),display:Na(Ba.prototype.size,!1),cube:Sa(1,f.prototype.size,!1),card:Sa(.5,y.prototype.size,!0),loopLimit:Sa(.5,sa.prototype.size,!0),trapezoid:Xa(.5,H.prototype.size,H.prototype.fixedSize),parallelogram:Xa(1,E.prototype.size,E.prototype.fixedSize)};Graph.createHandle=la;Graph.handleFactory=Oa;var eb=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=
-function(){var b=eb.apply(this,arguments);if(this.graph.isCellRotatable(this.state.cell)){var d=this.state.style.shape;null==mxCellRenderer.defaultShapes[d]&&null==mxStencilRegistry.getStencil(d)?d=mxConstants.SHAPE_RECTANGLE:this.state.view.graph.isSwimlane(this.state.cell)&&(d=mxConstants.SHAPE_SWIMLANE);d=Oa[d];null==d&&null!=this.state.shape&&this.state.shape.isRoundable()&&(d=Oa[mxConstants.SHAPE_RECTANGLE]);null!=d&&(d=d(this.state),null!=d&&(b=null==b?d:b.concat(d)))}return b};mxEdgeHandler.prototype.createCustomHandles=
-function(){var b=this.state.style.shape;null==mxCellRenderer.defaultShapes[b]&&null==mxStencilRegistry.getStencil(b)&&(b=mxConstants.SHAPE_CONNECTOR);b=Oa[b];return null!=b?b(this.state):null}}else Graph.createHandle=function(){},Graph.handleFactory={};var Pa=new mxPoint(1,0),Qa=new mxPoint(1,0),Ya=mxUtils.toRadians(-30),Pa=mxUtils.getRotatedPoint(Pa,Math.cos(Ya),Math.sin(Ya)),Za=mxUtils.toRadians(-150),Qa=mxUtils.getRotatedPoint(Qa,Math.cos(Za),Math.sin(Za));mxEdgeStyle.IsometricConnector=function(b,
-d,c,g,e){var k=b.view;g=null!=g&&0<g.length?g[0]:null;var f=b.absolutePoints,m=f[0],f=f[f.length-1];null!=g&&(g=k.transformControlPoint(b,g));null==m&&null!=d&&(m=new mxPoint(d.getCenterX(),d.getCenterY()));null==f&&null!=c&&(f=new mxPoint(c.getCenterX(),c.getCenterY()));var l=Pa.x,p=Pa.y,x=Qa.x,v=Qa.y,t="horizontal"==mxUtils.getValue(b.style,"elbow","horizontal");if(null!=f&&null!=m){b=function(b,d,c){b-=n.x;var g=d-n.y;d=(v*b-x*g)/(l*v-p*x);b=(p*b-l*g)/(p*x-l*v);t?(c&&(n=new mxPoint(n.x+l*d,n.y+
-p*d),e.push(n)),n=new mxPoint(n.x+x*b,n.y+v*b)):(c&&(n=new mxPoint(n.x+x*b,n.y+v*b),e.push(n)),n=new mxPoint(n.x+l*d,n.y+p*d));e.push(n)};var n=m;null==g&&(g=new mxPoint(m.x+(f.x-m.x)/2,m.y+(f.y-m.y)/2));b(g.x,g.y,!0);b(f.x,f.y,!1)}};mxStyleRegistry.putValue("isometricEdgeStyle",mxEdgeStyle.IsometricConnector);var fb=Graph.prototype.createEdgeHandler;Graph.prototype.createEdgeHandler=function(b,d){if(d==mxEdgeStyle.IsometricConnector){var c=new mxElbowEdgeHandler(b);c.snapToTerminals=!1;return c}return fb.apply(this,
+Math.round(Math.max(0,Math.min(b.height,d.y-b.y)))},!1)]},document:function(b){return[ia(b,["size"],function(b){var d=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",D.prototype.size))));return new mxPoint(b.x+3*b.width/4,b.y+(1-d)*b.height)},function(b,d){this.state.style.size=Math.max(0,Math.min(1,(b.y+b.height-d.y)/b.height))},!1)]},tape:function(b){return[ia(b,["size"],function(b){var d=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",I.prototype.size))));
+return new mxPoint(b.getCenterX(),b.y+d*b.height/2)},function(b,d){this.state.style.size=Math.max(0,Math.min(1,(d.y-b.y)/b.height*2))},!1)]},isoCube2:function(b){return[ia(b,["isoAngle"],function(b){var d=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.state.style,"isoAngle",p.isoAngle))))*Math.PI/200;return new mxPoint(b.x,b.y+Math.min(b.width*Math.tan(d),.5*b.height))},function(b,d){this.state.style.isoAngle=Math.max(0,50*(d.y-b.y)/b.height)},!0)]},cylinder2:Wa(m.prototype.size),cylinder3:Wa(u.prototype.size),
+offPageConnector:function(b){return[ia(b,["size"],function(b){var d=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",fa.prototype.size))));return new mxPoint(b.getCenterX(),b.y+(1-d)*b.height)},function(b,d){this.state.style.size=Math.max(0,Math.min(1,(b.y+b.height-d.y)/b.height))},!1)]},"mxgraph.basic.rect":function(b){var d=[Graph.createHandle(b,["size"],function(b){var d=Math.max(0,Math.min(b.width/2,b.height/2,parseFloat(mxUtils.getValue(this.state.style,"size",this.size))));
+return new mxPoint(b.x+d,b.y+d)},function(b,d){this.state.style.size=Math.round(100*Math.max(0,Math.min(b.height/2,b.width/2,d.x-b.x)))/100})];b=Graph.createHandle(b,["indent"],function(b){var d=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"indent",this.dx2))));return new mxPoint(b.x+.75*b.width,b.y+d*b.height/200)},function(b,d){this.state.style.indent=Math.round(100*Math.max(0,Math.min(100,200*(d.y-b.y)/b.height)))/100});d.push(b);return d},step:Oa(M.prototype.size,!0,null,
+!0,M.prototype.fixedSize),hexagon:Oa(P.prototype.size,!0,.5,!0,P.prototype.fixedSize),curlyBracket:Oa(O.prototype.size,!1),display:Oa(Da.prototype.size,!1),cube:Ta(1,f.prototype.size,!1),card:Ta(.5,y.prototype.size,!0),loopLimit:Ta(.5,ua.prototype.size,!0),trapezoid:Xa(.5,E.prototype.size,E.prototype.fixedSize),parallelogram:Xa(1,F.prototype.size,F.prototype.fixedSize)};Graph.createHandle=ia;Graph.handleFactory=Pa;var eb=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=
+function(){var b=eb.apply(this,arguments);if(this.graph.isCellRotatable(this.state.cell)){var d=this.state.style.shape;null==mxCellRenderer.defaultShapes[d]&&null==mxStencilRegistry.getStencil(d)?d=mxConstants.SHAPE_RECTANGLE:this.state.view.graph.isSwimlane(this.state.cell)&&(d=mxConstants.SHAPE_SWIMLANE);d=Pa[d];null==d&&null!=this.state.shape&&this.state.shape.isRoundable()&&(d=Pa[mxConstants.SHAPE_RECTANGLE]);null!=d&&(d=d(this.state),null!=d&&(b=null==b?d:b.concat(d)))}return b};mxEdgeHandler.prototype.createCustomHandles=
+function(){var b=this.state.style.shape;null==mxCellRenderer.defaultShapes[b]&&null==mxStencilRegistry.getStencil(b)&&(b=mxConstants.SHAPE_CONNECTOR);b=Pa[b];return null!=b?b(this.state):null}}else Graph.createHandle=function(){},Graph.handleFactory={};var Qa=new mxPoint(1,0),Ra=new mxPoint(1,0),Ya=mxUtils.toRadians(-30),Qa=mxUtils.getRotatedPoint(Qa,Math.cos(Ya),Math.sin(Ya)),Za=mxUtils.toRadians(-150),Ra=mxUtils.getRotatedPoint(Ra,Math.cos(Za),Math.sin(Za));mxEdgeStyle.IsometricConnector=function(b,
+d,c,g,e){var k=b.view;g=null!=g&&0<g.length?g[0]:null;var f=b.absolutePoints,m=f[0],f=f[f.length-1];null!=g&&(g=k.transformControlPoint(b,g));null==m&&null!=d&&(m=new mxPoint(d.getCenterX(),d.getCenterY()));null==f&&null!=c&&(f=new mxPoint(c.getCenterX(),c.getCenterY()));var l=Qa.x,p=Qa.y,x=Ra.x,u=Ra.y,t="horizontal"==mxUtils.getValue(b.style,"elbow","horizontal");if(null!=f&&null!=m){b=function(b,d,c){b-=n.x;var g=d-n.y;d=(u*b-x*g)/(l*u-p*x);b=(p*b-l*g)/(p*x-l*u);t?(c&&(n=new mxPoint(n.x+l*d,n.y+
+p*d),e.push(n)),n=new mxPoint(n.x+x*b,n.y+u*b)):(c&&(n=new mxPoint(n.x+x*b,n.y+u*b),e.push(n)),n=new mxPoint(n.x+l*d,n.y+p*d));e.push(n)};var n=m;null==g&&(g=new mxPoint(m.x+(f.x-m.x)/2,m.y+(f.y-m.y)/2));b(g.x,g.y,!0);b(f.x,f.y,!1)}};mxStyleRegistry.putValue("isometricEdgeStyle",mxEdgeStyle.IsometricConnector);var fb=Graph.prototype.createEdgeHandler;Graph.prototype.createEdgeHandler=function(b,d){if(d==mxEdgeStyle.IsometricConnector){var c=new mxElbowEdgeHandler(b);c.snapToTerminals=!1;return c}return fb.apply(this,
arguments)};l.prototype.constraints=[];q.prototype.getConstraints=function(b,d,c){b=[];var g=Math.tan(mxUtils.toRadians(30)),e=(.5-g)/2,g=Math.min(d,c/(.5+g));d=(d-g)/2;c=(c-g)/2;b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,c+.25*g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d+.5*g,c+g*e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d+g,c+.25*g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d+g,c+.75*g));b.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,d+.5*g,c+(1-e)*g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,c+.75*g));return b};p.prototype.getConstraints=function(b,d,c){b=[];var g=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200,g=Math.min(d*Math.tan(g),.5*c);b.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,g));b.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,d,c-g));b.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,c-g));b.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,g));return b};M.prototype.getConstraints=function(b,d,c){b=[];mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE);var g=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"size",this.size))));parseFloat(mxUtils.getValue(this.style,
+0),!1,null,d,c-g));b.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,c-g));b.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,g));return b};N.prototype.getConstraints=function(b,d,c){b=[];mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE);var g=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"size",this.size))));parseFloat(mxUtils.getValue(this.style,
"position",this.position));var e=d*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2))));parseFloat(mxUtils.getValue(this.style,"base",this.base));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1));b.push(new mxConnectionConstraint(new mxPoint(.25,0),!1));b.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));b.push(new mxConnectionConstraint(new mxPoint(.75,0),!1));b.push(new mxConnectionConstraint(new mxPoint(1,0),!1));b.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,d,.5*(c-g)));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,c-g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,e,c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,c-g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(c-g)));d>=2*g&&b.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return b};mxRectangleShape.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(.25,
0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(0,1),!0),new mxConnectionConstraint(new mxPoint(.25,
1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0),new mxConnectionConstraint(new mxPoint(1,1),!0)];mxEllipse.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(0,1),!0),new mxConnectionConstraint(new mxPoint(1,1),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(0,
-.5),!0),new mxConnectionConstraint(new mxPoint(1,.5))];va.prototype.constraints=mxRectangleShape.prototype.constraints;mxImageShape.prototype.constraints=mxRectangleShape.prototype.constraints;mxSwimlane.prototype.constraints=mxRectangleShape.prototype.constraints;T.prototype.constraints=mxRectangleShape.prototype.constraints;mxLabel.prototype.constraints=mxRectangleShape.prototype.constraints;k.prototype.getConstraints=function(b,d,c){b=[];var g=Math.max(0,Math.min(d,Math.min(c,parseFloat(mxUtils.getValue(this.style,
+.5),!0),new mxConnectionConstraint(new mxPoint(1,.5))];xa.prototype.constraints=mxRectangleShape.prototype.constraints;mxImageShape.prototype.constraints=mxRectangleShape.prototype.constraints;mxSwimlane.prototype.constraints=mxRectangleShape.prototype.constraints;V.prototype.constraints=mxRectangleShape.prototype.constraints;mxLabel.prototype.constraints=mxRectangleShape.prototype.constraints;k.prototype.getConstraints=function(b,d,c){b=[];var g=Math.max(0,Math.min(d,Math.min(c,parseFloat(mxUtils.getValue(this.style,
"size",this.size)))));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d-g),0));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-g,0));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-.5*g,.5*g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,.5*(c+g)));b.push(new mxConnectionConstraint(new mxPoint(1,1),!1));b.push(new mxConnectionConstraint(new mxPoint(.5,
1),!1));b.push(new mxConnectionConstraint(new mxPoint(0,1),!1));b.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));d>=2*g&&b.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return b};y.prototype.getConstraints=function(b,d,c){b=[];var g=Math.max(0,Math.min(d,Math.min(c,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));b.push(new mxConnectionConstraint(new mxPoint(1,0),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d+g),0));b.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,g,0));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*g,.5*g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(c+g)));b.push(new mxConnectionConstraint(new mxPoint(0,1),!1));b.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));b.push(new mxConnectionConstraint(new mxPoint(1,1),!1));b.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));d>=2*g&&b.push(new mxConnectionConstraint(new mxPoint(.5,
0),!1));return b};f.prototype.getConstraints=function(b,d,c){b=[];var g=Math.max(0,Math.min(d,Math.min(c,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d-g),0));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-g,0));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-.5*g,.5*g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,g));b.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,d,.5*(c+g)));b.push(new mxConnectionConstraint(new mxPoint(1,1),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d+g),c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,g,c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*g,c-.5*g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,c-g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(c-g)));return b};v.prototype.getConstraints=function(b,d,c){b=[];d=Math.max(0,Math.min(c,
+0),!1,null,d,.5*(c+g)));b.push(new mxConnectionConstraint(new mxPoint(1,1),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d+g),c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,g,c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*g,c-.5*g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,c-g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(c-g)));return b};u.prototype.getConstraints=function(b,d,c){b=[];d=Math.max(0,Math.min(c,
parseFloat(mxUtils.getValue(this.style,"size",this.size))));b.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));b.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));b.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,d));b.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,d));b.push(new mxConnectionConstraint(new mxPoint(1,1),!1,null,0,-d));b.push(new mxConnectionConstraint(new mxPoint(0,
1),!1,null,0,-d));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,d+.5*(.5*c-d)));b.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,d+.5*(.5*c-d)));b.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,c-d-.5*(.5*c-d)));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,c-d-.5*(.5*c-d)));b.push(new mxConnectionConstraint(new mxPoint(.145,0),!1,null,0,.29*d));b.push(new mxConnectionConstraint(new mxPoint(.855,0),!1,null,0,.29*d));b.push(new mxConnectionConstraint(new mxPoint(.855,
1),!1,null,0,.29*-d));b.push(new mxConnectionConstraint(new mxPoint(.145,1),!1,null,0,.29*-d));return b};t.prototype.getConstraints=function(b,d,c){b=[];var g=Math.max(0,Math.min(d,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth)))),e=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?(b.push(new mxConnectionConstraint(new mxPoint(0,0),!1)),b.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,.5*g,0)),b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,g,0)),b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,g,e)),b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d+g),e))):(b.push(new mxConnectionConstraint(new mxPoint(1,0),!1)),b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-.5*g,0)),b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-g,0)),b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-g,e)),b.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,.5*(d-g),e)));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,.25*(c-e)+e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,.5*(c-e)+e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,.75*(c-e)+e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,
-0,.25*(c-e)+e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(c-e)+e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.75*(c-e)+e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,c));b.push(new mxConnectionConstraint(new mxPoint(.25,1),!1));b.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));b.push(new mxConnectionConstraint(new mxPoint(.75,1),!1));return b};ra.prototype.constraints=mxRectangleShape.prototype.constraints;na.prototype.constraints=
-mxRectangleShape.prototype.constraints;Z.prototype.constraints=mxEllipse.prototype.constraints;O.prototype.constraints=mxEllipse.prototype.constraints;Ga.prototype.constraints=mxEllipse.prototype.constraints;Ha.prototype.constraints=mxEllipse.prototype.constraints;pa.prototype.constraints=mxRectangleShape.prototype.constraints;Ca.prototype.constraints=mxRectangleShape.prototype.constraints;Ba.prototype.getConstraints=function(b,d,c){b=[];var g=Math.min(d,c/2),e=Math.min(d-g,Math.max(0,parseFloat(mxUtils.getValue(this.style,
+0,.25*(c-e)+e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(c-e)+e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.75*(c-e)+e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,c));b.push(new mxConnectionConstraint(new mxPoint(.25,1),!1));b.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));b.push(new mxConnectionConstraint(new mxPoint(.75,1),!1));return b};ma.prototype.constraints=mxRectangleShape.prototype.constraints;la.prototype.constraints=
+mxRectangleShape.prototype.constraints;aa.prototype.constraints=mxEllipse.prototype.constraints;R.prototype.constraints=mxEllipse.prototype.constraints;Fa.prototype.constraints=mxEllipse.prototype.constraints;Ba.prototype.constraints=mxEllipse.prototype.constraints;ja.prototype.constraints=mxRectangleShape.prototype.constraints;Ha.prototype.constraints=mxRectangleShape.prototype.constraints;Da.prototype.getConstraints=function(b,d,c){b=[];var g=Math.min(d,c/2),e=Math.min(d-g,Math.max(0,parseFloat(mxUtils.getValue(this.style,
"size",this.size)))*d);b.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,e,0));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(e+d-g),0));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-g,0));b.push(new mxConnectionConstraint(new mxPoint(1,.5),!1,null));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-g,c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(e+d-g),c));b.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,e,c));return b};ha.prototype.getConstraints=function(b,d,c){d=parseFloat(mxUtils.getValue(b,"jettyWidth",ha.prototype.jettyWidth))/2;b=parseFloat(mxUtils.getValue(b,"jettyHeight",ha.prototype.jettyHeight));var g=[new mxConnectionConstraint(new mxPoint(0,0),!1,null,d),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(1,
+0),!1,null,e,c));return b};pa.prototype.getConstraints=function(b,d,c){d=parseFloat(mxUtils.getValue(b,"jettyWidth",pa.prototype.jettyWidth))/2;b=parseFloat(mxUtils.getValue(b,"jettyHeight",pa.prototype.jettyHeight));var g=[new mxConnectionConstraint(new mxPoint(0,0),!1,null,d),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(1,
.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(0,1),!1,null,d),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0),new mxConnectionConstraint(new mxPoint(1,1),!0),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(c-.5*b,1.5*b)),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(c-
-.5*b,3.5*b))];c>5*b&&g.push(new mxConnectionConstraint(new mxPoint(0,.75),!1,null,d));c>8*b&&g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null,d));c>15*b&&g.push(new mxConnectionConstraint(new mxPoint(0,.25),!1,null,d));return g};sa.prototype.constraints=mxRectangleShape.prototype.constraints;ka.prototype.constraints=mxRectangleShape.prototype.constraints;mxCylinder.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.15,.05),!1),new mxConnectionConstraint(new mxPoint(.5,0),!0),
-new mxConnectionConstraint(new mxPoint(.85,.05),!1),new mxConnectionConstraint(new mxPoint(0,.3),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.7),!0),new mxConnectionConstraint(new mxPoint(1,.3),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.7),!0),new mxConnectionConstraint(new mxPoint(.15,.95),!1),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.85,.95),!1)];ja.prototype.constraints=
-[new mxConnectionConstraint(new mxPoint(.25,.1),!1),new mxConnectionConstraint(new mxPoint(.5,0),!1),new mxConnectionConstraint(new mxPoint(.75,.1),!1),new mxConnectionConstraint(new mxPoint(0,1/3),!1),new mxConnectionConstraint(new mxPoint(0,1),!1),new mxConnectionConstraint(new mxPoint(1,1/3),!1),new mxConnectionConstraint(new mxPoint(1,1),!1),new mxConnectionConstraint(new mxPoint(.5,.5),!1)];oa.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,
+.5*b,3.5*b))];c>5*b&&g.push(new mxConnectionConstraint(new mxPoint(0,.75),!1,null,d));c>8*b&&g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null,d));c>15*b&&g.push(new mxConnectionConstraint(new mxPoint(0,.25),!1,null,d));return g};ua.prototype.constraints=mxRectangleShape.prototype.constraints;fa.prototype.constraints=mxRectangleShape.prototype.constraints;mxCylinder.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.15,.05),!1),new mxConnectionConstraint(new mxPoint(.5,0),!0),
+new mxConnectionConstraint(new mxPoint(.85,.05),!1),new mxConnectionConstraint(new mxPoint(0,.3),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.7),!0),new mxConnectionConstraint(new mxPoint(1,.3),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.7),!0),new mxConnectionConstraint(new mxPoint(.15,.95),!1),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.85,.95),!1)];ea.prototype.constraints=
+[new mxConnectionConstraint(new mxPoint(.25,.1),!1),new mxConnectionConstraint(new mxPoint(.5,0),!1),new mxConnectionConstraint(new mxPoint(.75,.1),!1),new mxConnectionConstraint(new mxPoint(0,1/3),!1),new mxConnectionConstraint(new mxPoint(0,1),!1),new mxConnectionConstraint(new mxPoint(1,1/3),!1),new mxConnectionConstraint(new mxPoint(1,1),!1),new mxConnectionConstraint(new mxPoint(.5,.5),!1)];ha.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,
0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(0,.3),!0),new mxConnectionConstraint(new mxPoint(0,.7),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0)];mxActor.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.5,
-0),!0),new mxConnectionConstraint(new mxPoint(.25,.2),!1),new mxConnectionConstraint(new mxPoint(.1,.5),!1),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(.75,.25),!1),new mxConnectionConstraint(new mxPoint(.9,.5),!1),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0)];u.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,
-0),!1),new mxConnectionConstraint(new mxPoint(.5,.25),!1),new mxConnectionConstraint(new mxPoint(1,0),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.75,.5),!1),new mxConnectionConstraint(new mxPoint(0,1),!1),new mxConnectionConstraint(new mxPoint(.5,.75),!1),new mxConnectionConstraint(new mxPoint(1,1),!1)];F.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.35),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,
-.65),!1),new mxConnectionConstraint(new mxPoint(1,.35),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(1,.65),!1),new mxConnectionConstraint(new mxPoint(.25,1),!1),new mxConnectionConstraint(new mxPoint(.75,0),!1)];K.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,
+0),!0),new mxConnectionConstraint(new mxPoint(.25,.2),!1),new mxConnectionConstraint(new mxPoint(.1,.5),!1),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(.75,.25),!1),new mxConnectionConstraint(new mxPoint(.9,.5),!1),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0)];v.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,
+0),!1),new mxConnectionConstraint(new mxPoint(.5,.25),!1),new mxConnectionConstraint(new mxPoint(1,0),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.75,.5),!1),new mxConnectionConstraint(new mxPoint(0,1),!1),new mxConnectionConstraint(new mxPoint(.5,.75),!1),new mxConnectionConstraint(new mxPoint(1,1),!1)];I.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.35),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,
+.65),!1),new mxConnectionConstraint(new mxPoint(1,.35),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(1,.65),!1),new mxConnectionConstraint(new mxPoint(.25,1),!1),new mxConnectionConstraint(new mxPoint(.75,0),!1)];M.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,
1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0)];mxLine.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.75,
-.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];aa.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.5,0),!1),new mxConnectionConstraint(new mxPoint(.5,1),!1)];mxDoubleEllipse.prototype.constraints=mxEllipse.prototype.constraints;mxRhombus.prototype.constraints=mxEllipse.prototype.constraints;mxTriangle.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(.5,
+.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];ka.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.5,0),!1),new mxConnectionConstraint(new mxPoint(.5,1),!1)];mxDoubleEllipse.prototype.constraints=mxEllipse.prototype.constraints;mxRhombus.prototype.constraints=mxEllipse.prototype.constraints;mxTriangle.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(.5,
0),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0)];mxHexagon.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.375,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.625,0),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,
.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(.375,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.625,1),!0)];mxCloud.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,.25),!1),new mxConnectionConstraint(new mxPoint(.4,.1),!1),new mxConnectionConstraint(new mxPoint(.16,.55),!1),new mxConnectionConstraint(new mxPoint(.07,.4),!1),new mxConnectionConstraint(new mxPoint(.31,.8),!1),new mxConnectionConstraint(new mxPoint(.13,
-.77),!1),new mxConnectionConstraint(new mxPoint(.8,.8),!1),new mxConnectionConstraint(new mxPoint(.55,.95),!1),new mxConnectionConstraint(new mxPoint(.875,.5),!1),new mxConnectionConstraint(new mxPoint(.96,.7),!1),new mxConnectionConstraint(new mxPoint(.625,.2),!1),new mxConnectionConstraint(new mxPoint(.88,.25),!1)];E.prototype.constraints=mxRectangleShape.prototype.constraints;H.prototype.constraints=mxRectangleShape.prototype.constraints;D.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,
-0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0)];mxArrow.prototype.constraints=null;ia.prototype.getConstraints=function(b,d,c){b=[];var g=Math.max(0,
+.77),!1),new mxConnectionConstraint(new mxPoint(.8,.8),!1),new mxConnectionConstraint(new mxPoint(.55,.95),!1),new mxConnectionConstraint(new mxPoint(.875,.5),!1),new mxConnectionConstraint(new mxPoint(.96,.7),!1),new mxConnectionConstraint(new mxPoint(.625,.2),!1),new mxConnectionConstraint(new mxPoint(.88,.25),!1)];F.prototype.constraints=mxRectangleShape.prototype.constraints;E.prototype.constraints=mxRectangleShape.prototype.constraints;D.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,
+0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0)];mxArrow.prototype.constraints=null;oa.prototype.getConstraints=function(b,d,c){b=[];var g=Math.max(0,
Math.min(d,parseFloat(mxUtils.getValue(this.style,"dx",this.dx)))),e=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1));b.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));b.push(new mxConnectionConstraint(new mxPoint(1,0),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,.5*e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,
null,.75*d+.25*g,e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d+g),e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d+g),.5*(c+e)));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d+g),c));b.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d-g),c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d-g),.5*(c+e)));b.push(new mxConnectionConstraint(new mxPoint(0,0),
-!1,null,.5*(d-g),e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.25*d-.25*g,e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*e));return b};R.prototype.getConstraints=function(b,d,c){b=[];var g=Math.max(0,Math.min(d,parseFloat(mxUtils.getValue(this.style,"dx",this.dx)))),e=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));b.push(new mxConnectionConstraint(new mxPoint(0,0),
+!1,null,.5*(d-g),e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.25*d-.25*g,e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*e));return b};ra.prototype.getConstraints=function(b,d,c){b=[];var g=Math.max(0,Math.min(d,parseFloat(mxUtils.getValue(this.style,"dx",this.dx)))),e=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));b.push(new mxConnectionConstraint(new mxPoint(0,0),
!1));b.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));b.push(new mxConnectionConstraint(new mxPoint(1,0),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,.5*e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d+g),e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,g,e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,g,.5*(c+e)));b.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,g,c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*g,c));b.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,1),!1));return b};qa.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,1),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.5,.5),!1),new mxConnectionConstraint(new mxPoint(.75,
-.5),!1),new mxConnectionConstraint(new mxPoint(1,0),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(1,1),!1)];fa.prototype.getConstraints=function(b,d,c){b=[];var g=c*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth)))),e=d*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",this.arrowSize)))),g=(c-g)/2;b.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,0,g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d-e),g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-e,0));b.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-e,c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d-e),c-g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,c-g));return b};ba.prototype.getConstraints=function(b,d,c){b=[];var g=c*Math.max(0,Math.min(1,
-parseFloat(mxUtils.getValue(this.style,"arrowWidth",fa.prototype.arrowWidth)))),e=d*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",fa.prototype.arrowSize)))),g=(c-g)/2;b.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,e,0));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*d,g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-e,0));b.push(new mxConnectionConstraint(new mxPoint(1,.5),
-!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-e,c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*d,c-g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,e,c));return b};za.prototype.getConstraints=function(b,d,c){b=[];var g=Math.min(c,d),e=Math.max(0,Math.min(g,g*parseFloat(mxUtils.getValue(this.style,"size",this.size)))),g=(c-e)/2,k=g+e,f=(d-e)/2,e=f+e;b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,f,.5*g));b.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,g,c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*g,c));b.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,1),!1));return b};S.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,1),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.5,.5),!1),new mxConnectionConstraint(new mxPoint(.75,
+.5),!1),new mxConnectionConstraint(new mxPoint(1,0),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(1,1),!1)];da.prototype.getConstraints=function(b,d,c){b=[];var g=c*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth)))),e=d*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",this.arrowSize)))),g=(c-g)/2;b.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,0,g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d-e),g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-e,0));b.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-e,c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d-e),c-g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,c-g));return b};Z.prototype.getConstraints=function(b,d,c){b=[];var g=c*Math.max(0,Math.min(1,
+parseFloat(mxUtils.getValue(this.style,"arrowWidth",da.prototype.arrowWidth)))),e=d*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",da.prototype.arrowSize)))),g=(c-g)/2;b.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,e,0));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*d,g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-e,0));b.push(new mxConnectionConstraint(new mxPoint(1,.5),
+!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-e,c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*d,c-g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,e,c));return b};Ca.prototype.getConstraints=function(b,d,c){b=[];var g=Math.min(c,d),e=Math.max(0,Math.min(g,g*parseFloat(mxUtils.getValue(this.style,"size",this.size)))),g=(c-e)/2,k=g+e,f=(d-e)/2,e=f+e;b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,f,.5*g));b.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,f,0));b.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,e,0));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,e,.5*g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,e,g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,f,c-.5*g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,f,c));b.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));b.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,e,c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,e,c-.5*g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,e,k));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d+e),g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,g));b.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,k));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d+e),k));b.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,f,k));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*f,g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,g));b.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,k));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*f,k));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,f,g));return b};V.prototype.constraints=null;Aa.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,
-.25),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,.1),!1),new mxConnectionConstraint(new mxPoint(.7,.9),!1)];xa.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.175,.25),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.175,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,
-.1),!1),new mxConnectionConstraint(new mxPoint(.7,.9),!1)];ta.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];ua.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)]})();function Actions(b){this.editorUi=b;this.actions={};this.init()}
+0),!1,null,f,k));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*f,g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,g));b.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,k));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*f,k));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,f,g));return b};X.prototype.constraints=null;ya.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,
+.25),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,.1),!1),new mxConnectionConstraint(new mxPoint(.7,.9),!1)];za.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.175,.25),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.175,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,
+.1),!1),new mxConnectionConstraint(new mxPoint(.7,.9),!1)];na.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];qa.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)]})();function Actions(b){this.editorUi=b;this.actions={};this.init()}
Actions.prototype.init=function(){function b(b){l.escape();b=l.deleteCells(l.getDeletableCells(l.getSelectionCells()),b);null!=b&&l.setSelectionCells(b)}function c(){if(!l.isSelectionEmpty()){l.getModel().beginUpdate();try{for(var b=l.getSelectionCells(),d=0;d<b.length;d++)l.cellLabelChanged(b[d],"")}finally{l.getModel().endUpdate()}}}function e(b,d,c,e,k){k.getModel().beginUpdate();try{var g=k.getCellGeometry(b);null!=g&&c&&e&&(c/=e,g=g.clone(),1<c?g.height=g.width/c:g.width=g.height*c,k.getModel().setGeometry(b,
g));k.setCellStyles(mxConstants.STYLE_CLIP_PATH,d,[b]);k.setCellStyles(mxConstants.STYLE_ASPECT,"fixed",[b])}finally{k.getModel().endUpdate()}}var f=this.editorUi,n=f.editor,l=n.graph,q=function(){return Action.prototype.isEnabled.apply(this,arguments)&&l.isEnabled()};this.addAction("new...",function(){l.openLink(f.getUrl())});this.addAction("open...",function(){window.openNew=!0;window.openKey="open";f.openFile()});this.addAction("smartFit",function(){l.popupMenuHandler.hideMenu();var b=l.view.scale,
d=l.view.translate.x,c=l.view.translate.y;f.actions.get("resetView").funct();1E-5>Math.abs(b-l.view.scale)&&d==l.view.translate.x&&c==l.view.translate.y&&f.actions.get(l.pageVisible?"fitPage":"fitWindow").funct()});this.addAction("keyPressEnter",function(){l.isEnabled()&&(l.isSelectionEmpty()?f.actions.get("smartFit").funct():l.startEditingAtCell())});this.addAction("import...",function(){window.openNew=!1;window.openKey="import";window.openFile=new OpenFile(mxUtils.bind(this,function(){f.hideDialog()}));
-window.openFile.setConsumer(mxUtils.bind(this,function(b,d){try{var c=mxUtils.parseXml(b);n.graph.setSelectionCells(n.graph.importGraphModel(c.documentElement))}catch(v){mxUtils.alert(mxResources.get("invalidOrMissingFile")+": "+v.message)}}));f.showDialog((new OpenDialog(this)).container,320,220,!0,!0,function(){window.openFile=null})}).isEnabled=q;this.addAction("save",function(){f.saveFile(!1)},null,null,Editor.ctrlKey+"+S").isEnabled=q;this.addAction("saveAs...",function(){f.saveFile(!0)},null,
+window.openFile.setConsumer(mxUtils.bind(this,function(b,d){try{var c=mxUtils.parseXml(b);n.graph.setSelectionCells(n.graph.importGraphModel(c.documentElement))}catch(u){mxUtils.alert(mxResources.get("invalidOrMissingFile")+": "+u.message)}}));f.showDialog((new OpenDialog(this)).container,320,220,!0,!0,function(){window.openFile=null})}).isEnabled=q;this.addAction("save",function(){f.saveFile(!1)},null,null,Editor.ctrlKey+"+S").isEnabled=q;this.addAction("saveAs...",function(){f.saveFile(!0)},null,
null,Editor.ctrlKey+"+Shift+S").isEnabled=q;this.addAction("export...",function(){f.showDialog((new ExportDialog(f)).container,300,340,!0,!0)});this.addAction("editDiagram...",function(){var b=new EditDiagramDialog(f);f.showDialog(b.container,620,420,!0,!1);b.init()});this.addAction("pageSetup...",function(){f.showDialog((new PageSetupDialog(f)).container,320,240,!0,!0)}).isEnabled=q;this.addAction("print...",function(){f.showDialog((new PrintDialog(f)).container,300,180,!0,!0)},null,"sprite-print",
Editor.ctrlKey+"+P");this.addAction("preview",function(){mxUtils.show(l,null,10,10)});this.addAction("undo",function(){f.undo()},null,"sprite-undo",Editor.ctrlKey+"+Z");this.addAction("redo",function(){f.redo()},null,"sprite-redo",mxClient.IS_WIN?Editor.ctrlKey+"+Y":Editor.ctrlKey+"+Shift+Z");this.addAction("cut",function(){var b=null;try{b=f.copyXml(),null!=b&&l.removeCells(b,!1)}catch(p){}null==b&&mxClipboard.cut(l)},null,"sprite-cut",Editor.ctrlKey+"+X");this.addAction("copy",function(){try{f.copyXml()}catch(g){}try{mxClipboard.copy(l)}catch(g){f.handleError(g)}},
null,"sprite-copy",Editor.ctrlKey+"+C");this.addAction("paste",function(){if(l.isEnabled()&&!l.isCellLocked(l.getDefaultParent())){var b=!1;try{Editor.enableNativeCipboard&&(f.readGraphModelFromClipboard(function(b){if(null!=b){l.getModel().beginUpdate();try{f.pasteXml(b,!0)}finally{l.getModel().endUpdate()}}else mxClipboard.paste(l)}),b=!0)}catch(p){}b||mxClipboard.paste(l)}},!1,"sprite-paste",Editor.ctrlKey+"+V");this.addAction("pasteHere",function(b){function d(b){if(null!=b){for(var d=!0,c=0;c<
b.length&&d;c++)d=d&&l.model.isEdge(b[c]);var g=l.view.translate,c=l.view.scale,e=g.x,k=g.y,g=null;if(1==b.length&&d){var f=l.getCellGeometry(b[0]);null!=f&&(g=f.getTerminalPoint(!0))}g=null!=g?g:l.getBoundingBoxFromGeometry(b,d);null!=g&&(d=Math.round(l.snap(l.popupMenuHandler.triggerX/c-e)),c=Math.round(l.snap(l.popupMenuHandler.triggerY/c-k)),l.cellsMoved(b,d-g.x,c-g.y))}}function c(){l.getModel().beginUpdate();try{d(mxClipboard.paste(l))}finally{l.getModel().endUpdate()}}if(l.isEnabled()&&!l.isCellLocked(l.getDefaultParent())){b=
-!1;try{Editor.enableNativeCipboard&&(f.readGraphModelFromClipboard(function(b){if(null!=b){l.getModel().beginUpdate();try{d(f.pasteXml(b,!0))}finally{l.getModel().endUpdate()}}else c()}),b=!0)}catch(v){}b||c()}});this.addAction("copySize",function(){var b=l.getSelectionCell();l.isEnabled()&&null!=b&&l.getModel().isVertex(b)&&(b=l.getCellGeometry(b),null!=b&&(f.copiedSize=new mxRectangle(b.x,b.y,b.width,b.height)))},null,null,"Alt+Shift+X");this.addAction("pasteSize",function(){if(l.isEnabled()&&!l.isSelectionEmpty()&&
+!1;try{Editor.enableNativeCipboard&&(f.readGraphModelFromClipboard(function(b){if(null!=b){l.getModel().beginUpdate();try{d(f.pasteXml(b,!0))}finally{l.getModel().endUpdate()}}else c()}),b=!0)}catch(u){}b||c()}});this.addAction("copySize",function(){var b=l.getSelectionCell();l.isEnabled()&&null!=b&&l.getModel().isVertex(b)&&(b=l.getCellGeometry(b),null!=b&&(f.copiedSize=new mxRectangle(b.x,b.y,b.width,b.height)))},null,null,"Alt+Shift+X");this.addAction("pasteSize",function(){if(l.isEnabled()&&!l.isSelectionEmpty()&&
null!=f.copiedSize){l.getModel().beginUpdate();try{for(var b=l.getResizableCells(l.getSelectionCells()),d=0;d<b.length;d++)if(l.getModel().isVertex(b[d])){var c=l.getCellGeometry(b[d]);null!=c&&(c=c.clone(),c.width=f.copiedSize.width,c.height=f.copiedSize.height,l.getModel().setGeometry(b[d],c))}}finally{l.getModel().endUpdate()}}},null,null,"Alt+Shift+V");this.addAction("copyData",function(){var b=l.getSelectionCell()||l.getModel().getRoot();l.isEnabled()&&null!=b&&(b=b.cloneValue(),null==b||isNaN(b.nodeType)||
(f.copiedValue=b))},null,null,"Alt+Shift+B");this.addAction("pasteData",function(b,d){function c(d,c){var e=g.getValue(d);c=d.cloneValue(c);c.removeAttribute("placeholders");null==e||isNaN(e.nodeType)||c.setAttribute("placeholders",e.getAttribute("placeholders"));null!=b&&mxEvent.isShiftDown(b)||c.setAttribute("label",l.convertValueToString(d));g.setValue(d,c)}b=null!=d?d:b;var g=l.getModel();if(l.isEnabled()&&!l.isSelectionEmpty()&&null!=f.copiedValue){g.beginUpdate();try{var e=l.getEditableCells(l.getSelectionCells());
if(0==e.length)c(g.getRoot(),f.copiedValue);else for(var k=0;k<e.length;k++)c(e[k],f.copiedValue)}finally{g.endUpdate()}}},null,null,"Alt+Shift+E");this.addAction("delete",function(d,e){d=null!=e?e:d;null!=d&&mxEvent.isShiftDown(d)?c():b(null!=d&&(mxEvent.isControlDown(d)||mxEvent.isMetaDown(d)||mxEvent.isAltDown(d)))},null,null,"Delete");this.addAction("deleteAll",function(){b(!0)});this.addAction("deleteLabels",function(){c()},null,null,Editor.ctrlKey+"+Delete");this.addAction("duplicate",function(){try{l.setSelectionCells(l.duplicateCells()),
@@ -3057,8 +3057,8 @@ if(null!=b&&l.getModel().isEdge(b)){var d=n.graph.selectionCellsHandler.getHandl
f.actions.get("removeWaypoint");null!=b.handler&&b.handler.removePoint(b.handler.state,b.index)});this.addAction("clearWaypoints",function(b,d){b=null!=d?d:b;var c=l.getSelectionCells();if(null!=c){c=l.getEditableCells(l.addAllEdges(c));l.getModel().beginUpdate();try{for(var g=0;g<c.length;g++){var e=c[g];if(l.getModel().isEdge(e)){var k=l.getCellGeometry(e);null!=d&&mxEvent.isShiftDown(b)?(l.setCellStyles(mxConstants.STYLE_EXIT_X,null,[e]),l.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[e]),l.setCellStyles(mxConstants.STYLE_ENTRY_X,
null,[e]),l.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[e])):null!=k&&(k=k.clone(),k.points=null,k.x=0,k.y=0,k.offset=null,l.getModel().setGeometry(e,k))}}}finally{l.getModel().endUpdate()}}},null,null,"Alt+Shift+C");d=this.addAction("subscript",mxUtils.bind(this,function(){l.cellEditor.isContentEditing()&&document.execCommand("subscript",!1,null)}),null,null,Editor.ctrlKey+"+,");d=this.addAction("superscript",mxUtils.bind(this,function(){l.cellEditor.isContentEditing()&&document.execCommand("superscript",
!1,null)}),null,null,Editor.ctrlKey+"+.");this.addAction("image...",function(){if(l.isEnabled()&&!l.isCellLocked(l.getDefaultParent())){var b=mxResources.get("image")+" ("+mxResources.get("url")+"):",d=l.getView().getState(l.getSelectionCell()),c="",k=null;null!=d&&(c=d.style[mxConstants.STYLE_IMAGE]||c,k=d.style[mxConstants.STYLE_CLIP_PATH]||k);var n=l.cellEditor.saveSelection();f.showImageDialog(b,c,function(b,d,c,g,k,f){if(l.cellEditor.isContentEditing())l.cellEditor.restoreSelection(n),l.insertImage(b,
-d,c);else{var m=l.getSelectionCells();if(null!=b&&(0<b.length||0<m.length)){var p=null;l.getModel().beginUpdate();try{if(0==m.length){var m=[l.insertVertex(l.getDefaultParent(),null,"",0,0,d,c,"shape=image;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;")],v=l.getCenterInsertPoint(l.getBoundingBoxFromGeometry(m,!0));m[0].geometry.x=v.x;m[0].geometry.y=v.y;null!=g&&e(m[0],g,k,f,l);p=m;l.fireEvent(new mxEventObject("cellsInserted","cells",p))}l.setCellStyles(mxConstants.STYLE_IMAGE,
-0<b.length?b:null,m);var t=l.getCurrentCellStyle(m[0]);"image"!=t[mxConstants.STYLE_SHAPE]&&"label"!=t[mxConstants.STYLE_SHAPE]?l.setCellStyles(mxConstants.STYLE_SHAPE,"image",m):0==b.length&&l.setCellStyles(mxConstants.STYLE_SHAPE,null,m);if(1==l.getSelectionCount()&&null!=d&&null!=c){var u=m[0],y=l.getModel().getGeometry(u);null!=y&&(y=y.clone(),y.width=d,y.height=c,l.getModel().setGeometry(u,y));null!=g?e(u,g,k,f,l):l.setCellStyles(mxConstants.STYLE_CLIP_PATH,null,m)}}finally{l.getModel().endUpdate()}null!=
+d,c);else{var m=l.getSelectionCells();if(null!=b&&(0<b.length||0<m.length)){var p=null;l.getModel().beginUpdate();try{if(0==m.length){var m=[l.insertVertex(l.getDefaultParent(),null,"",0,0,d,c,"shape=image;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;")],u=l.getCenterInsertPoint(l.getBoundingBoxFromGeometry(m,!0));m[0].geometry.x=u.x;m[0].geometry.y=u.y;null!=g&&e(m[0],g,k,f,l);p=m;l.fireEvent(new mxEventObject("cellsInserted","cells",p))}l.setCellStyles(mxConstants.STYLE_IMAGE,
+0<b.length?b:null,m);var t=l.getCurrentCellStyle(m[0]);"image"!=t[mxConstants.STYLE_SHAPE]&&"label"!=t[mxConstants.STYLE_SHAPE]?l.setCellStyles(mxConstants.STYLE_SHAPE,"image",m):0==b.length&&l.setCellStyles(mxConstants.STYLE_SHAPE,null,m);if(1==l.getSelectionCount()&&null!=d&&null!=c){var v=m[0],y=l.getModel().getGeometry(v);null!=y&&(y=y.clone(),y.width=d,y.height=c,l.getModel().setGeometry(v,y));null!=g?e(v,g,k,f,l):l.setCellStyles(mxConstants.STYLE_CLIP_PATH,null,m)}}finally{l.getModel().endUpdate()}null!=
p&&(l.setSelectionCells(p),l.scrollCellToVisible(p[0]))}}},l.cellEditor.isContentEditing(),!l.cellEditor.isContentEditing(),!0,k)}}).isEnabled=q;this.addAction("crop...",function(){var b=l.getSelectionCell();if(l.isEnabled()&&!l.isCellLocked(l.getDefaultParent())&&null!=b){var d=l.getCurrentCellStyle(b),c=d[mxConstants.STYLE_IMAGE],k=d[mxConstants.STYLE_SHAPE];c&&"image"==k&&(d=new CropImageDialog(f,c,d[mxConstants.STYLE_CLIP_PATH],function(d,c,g){e(b,d,c,g,l)}),f.showDialog(d.container,300,390,!0,
!0))}}).isEnabled=q;d=this.addAction("layers",mxUtils.bind(this,function(){null==this.layersWindow?(this.layersWindow=new LayersWindow(f,document.body.offsetWidth-280,120,212,200),this.layersWindow.window.addListener("show",mxUtils.bind(this,function(){f.fireEvent(new mxEventObject("layers"));this.layersWindow.window.fit()})),this.layersWindow.window.addListener("hide",function(){f.fireEvent(new mxEventObject("layers"))}),this.layersWindow.window.setVisible(!0),f.fireEvent(new mxEventObject("layers")),
this.layersWindow.init()):this.layersWindow.window.setVisible(!this.layersWindow.window.isVisible())}),null,null,Editor.ctrlKey+"+Shift+L");d.setToggleAction(!0);d.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.layersWindow&&this.layersWindow.window.isVisible()}));d=this.addAction("formatPanel",mxUtils.bind(this,function(){f.toggleFormatPanel()}),null,null,Editor.ctrlKey+"+Shift+P");d.setToggleAction(!0);d.setSelectedCallback(mxUtils.bind(this,function(){return 0<f.formatWidth}));
@@ -3071,9 +3071,9 @@ DrawioFile.prototype.shadowModified=!1;DrawioFile.prototype.data=null;DrawioFile
DrawioFile.prototype.getSize=function(){return null!=this.data?this.data.length:0};DrawioFile.prototype.synchronizeFile=function(b,c){this.savingFile?null!=c&&c({message:mxResources.get("busy")}):null!=this.sync?this.sync.fileChanged(b,c):this.updateFile(b,c)};
DrawioFile.prototype.updateFile=function(b,c,e,f){null!=e&&e()||(this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=c&&c():this.getLatestVersion(mxUtils.bind(this,function(n){try{null!=e&&e()||(this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=c&&c():null!=n?this.mergeFile(n,b,c,f):this.reloadFile(b,c))}catch(l){null!=c&&c(l)}}),c))};
DrawioFile.prototype.mergeFile=function(b,c,e,f){var n=!0;try{this.stats.fileMerged++;var l=null!=this.shadowPages?this.shadowPages:this.ui.getPagesForNode(mxUtils.parseXml(this.shadowData).documentElement),q=this.ui.getPagesForNode(mxUtils.parseXml(b.data).documentElement);if(null!=q&&0<q.length){this.shadowPages=q;this.backupPatch=this.isModified()?this.ui.diffPages(l,this.ui.pages):null;var d=[this.ui.diffPages(null!=f?f:l,this.shadowPages)];if(!this.ignorePatches(d)){var k=this.ui.patchPages(l,
-d[0]);f={};var g=this.ui.getHashValueForPages(k,f),l={},p=this.ui.getHashValueForPages(this.shadowPages,l);"1"==urlParams.test&&EditorUi.debug("File.mergeFile",[this],"backup",this.backupPatch,"patches",d,"checksum",p==g,g);if(null!=g&&g!=p){var m=this.compressReportData(this.getAnonymizedXmlForPages(q)),v=this.compressReportData(this.getAnonymizedXmlForPages(k)),u=this.ui.hashValue(b.getCurrentEtag()),t=this.ui.hashValue(this.getCurrentEtag());this.checksumError(e,d,"Shadow Details: "+JSON.stringify(f)+
-"\nChecksum: "+g+"\nCurrent: "+p+"\nCurrent Details: "+JSON.stringify(l)+"\nFrom: "+u+"\nTo: "+t+"\n\nFile Data:\n"+m+"\nPatched Shadow:\n"+v,null,"mergeFile");return}this.patch(d,DrawioFile.LAST_WRITE_WINS?this.backupPatch:null)}}else throw n=!1,Error(mxResources.get("notADiagramFile"));this.inConflictState=this.invalidChecksum=!1;this.setDescriptor(b.getDescriptor());this.descriptorChanged();this.backupPatch=null;null!=c&&c()}catch(F){this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();
-null!=e&&e(F);try{if(n)if(this.errorReportsEnabled)this.sendErrorReport("Error in mergeFile",null,F);else{var z=this.getCurrentUser(),y=null!=z?z.id:"unknown";EditorUi.logError("Error in mergeFile",null,this.getMode()+"."+this.getId(),y,F)}}catch(D){}}};
+d[0]);f={};var g=this.ui.getHashValueForPages(k,f),l={},p=this.ui.getHashValueForPages(this.shadowPages,l);"1"==urlParams.test&&EditorUi.debug("File.mergeFile",[this],"backup",this.backupPatch,"patches",d,"checksum",p==g,g);if(null!=g&&g!=p){var m=this.compressReportData(this.getAnonymizedXmlForPages(q)),u=this.compressReportData(this.getAnonymizedXmlForPages(k)),v=this.ui.hashValue(b.getCurrentEtag()),t=this.ui.hashValue(this.getCurrentEtag());this.checksumError(e,d,"Shadow Details: "+JSON.stringify(f)+
+"\nChecksum: "+g+"\nCurrent: "+p+"\nCurrent Details: "+JSON.stringify(l)+"\nFrom: "+v+"\nTo: "+t+"\n\nFile Data:\n"+m+"\nPatched Shadow:\n"+u,null,"mergeFile");return}this.patch(d,DrawioFile.LAST_WRITE_WINS?this.backupPatch:null)}}else throw n=!1,Error(mxResources.get("notADiagramFile"));this.inConflictState=this.invalidChecksum=!1;this.setDescriptor(b.getDescriptor());this.descriptorChanged();this.backupPatch=null;null!=c&&c()}catch(I){this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();
+null!=e&&e(I);try{if(n)if(this.errorReportsEnabled)this.sendErrorReport("Error in mergeFile",null,I);else{var z=this.getCurrentUser(),y=null!=z?z.id:"unknown";EditorUi.logError("Error in mergeFile",null,this.getMode()+"."+this.getId(),y,I)}}catch(D){}}};
DrawioFile.prototype.getAnonymizedXmlForPages=function(b){var c=new mxCodec(mxUtils.createXmlDocument()),e=c.document.createElement("mxfile");if(null!=b)for(var f=0;f<b.length;f++){var n=c.encode(new mxGraphModel(b[f].root));"1"!=urlParams.dev&&(n=this.ui.anonymizeNode(n,!0));n.setAttribute("id",b[f].getId());b[f].viewState&&this.ui.editor.graph.saveViewState(b[f].viewState,n,!0);e.appendChild(n)}return mxUtils.getPrettyXml(e)};
DrawioFile.prototype.compressReportData=function(b,c,e){c=null!=c?c:1E4;null!=e&&null!=b&&b.length>e?b=b.substring(0,e)+"[...]":null!=b&&b.length>c&&(b=Graph.compress(b)+"\n");return b};
DrawioFile.prototype.checksumError=function(b,c,e,f,n){this.stats.checksumErrors++;this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=b&&b();try{if(this.errorReportsEnabled){if(null!=c)for(b=0;b<c.length;b++)this.ui.anonymizePatch(c[b]);var l=mxUtils.bind(this,function(b){var d=this.compressReportData(JSON.stringify(c,null,2));b=null!=b?this.compressReportData(this.getAnonymizedXmlForPages(this.ui.getPagesForNode(mxUtils.parseXml(b.data).documentElement)),
@@ -3081,7 +3081,7 @@ DrawioFile.prototype.checksumError=function(b,c,e,f,n){this.stats.checksumErrors
try{EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+this.getHash(),action:n,label:"user_"+d+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")})}catch(k){}}}catch(k){}};
DrawioFile.prototype.sendErrorReport=function(b,c,e,f){try{var n=this.compressReportData(this.getAnonymizedXmlForPages(this.shadowPages),25E3),l=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),q=this.getCurrentUser(),d=null!=q?this.ui.hashValue(q.id):"unknown",k=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",g=this.getTitle(),p=g.lastIndexOf("."),q="xml";0<p&&(q=g.substring(p));var m=null!=e?e.stack:Error().stack;EditorUi.sendReport(b+" "+(new Date).toISOString()+
":\n\nAppVersion="+navigator.appVersion+"\nFile="+this.ui.hashValue(this.getId())+" ("+this.getMode()+")"+(this.isModified()?" modified":"")+"\nSize/Type="+this.getSize()+" ("+q+")\nUser="+d+k+"\nPrefix="+this.ui.editor.graph.model.prefix+"\nSync="+DrawioFile.SYNC+(null!=this.sync?(this.sync.enabled?" enabled":"")+(this.sync.isConnected()?" connected":""):"")+"\nPlugins="+(null!=mxSettings.settings?mxSettings.getPlugins():"null")+"\n\nStats:\n"+JSON.stringify(this.stats,null,2)+(null!=c?"\n\n"+c:
-"")+(null!=e?"\n\nError: "+e.message:"")+"\n\nStack:\n"+m+"\n\nShadow:\n"+n+"\n\nData:\n"+l,f)}catch(v){}};
+"")+(null!=e?"\n\nError: "+e.message:"")+"\n\nStack:\n"+m+"\n\nShadow:\n"+n+"\n\nData:\n"+l,f)}catch(u){}};
DrawioFile.prototype.reloadFile=function(b,c){try{this.ui.spinner.stop();var e=mxUtils.bind(this,function(){this.stats.fileReloaded++;var c=this.ui.editor.graph.getViewState(),e=this.ui.editor.graph.getSelectionCells(),l=this.ui.currentPage;this.ui.loadFile(this.getHash(),!0,null,mxUtils.bind(this,function(){if(null==this.ui.fileLoadedError){this.ui.restoreViewState(l,c,e);null!=this.backupPatch&&this.patch([this.backupPatch]);var f=this.ui.getCurrentFile();null!=f&&(f.stats=this.stats);null!=b&&
b()}}),!0)});this.isModified()&&null==this.backupPatch?this.ui.confirm(mxResources.get("allChangesLost"),mxUtils.bind(this,function(){this.handleFileSuccess("manual"==DrawioFile.SYNC)}),e,mxResources.get("cancel"),mxResources.get("discardChanges")):e()}catch(f){null!=c&&c(f)}};DrawioFile.prototype.copyFile=function(b,c){this.ui.editor.editAsNew(this.ui.getFileData(!0),this.ui.getCopyFilename(this))};
DrawioFile.prototype.ignorePatches=function(b){for(var c=!0,e=0;e<b.length&&c;e++)c=c&&0==Object.keys(b[e]).length;return c};
@@ -3186,7 +3186,7 @@ type:"bool",defVal:!1,isVisible:function(b,d){return 1==b.vertices.length&&0==b.
dispName:"Expand",type:"bool",defVal:!0},{name:"part",dispName:"Part",type:"bool",defVal:!1,isVisible:function(b,d){var c=d.editorUi.editor.graph.model;return 0<b.vertices.length?c.isVertex(c.getParent(b.vertices[0])):!1}},{name:"editable",dispName:"Editable",type:"bool",defVal:!0},{name:"metaEdit",dispName:"Edit Dialog",type:"bool",defVal:!1},{name:"backgroundOutline",dispName:"Background Outline",type:"bool",defVal:!1},{name:"movable",dispName:"Movable",type:"bool",defVal:!0},{name:"movableLabel",
dispName:"Movable Label",type:"bool",defVal:!1,isVisible:function(b,d){var c=0<b.vertices.length?d.editorUi.editor.graph.getCellGeometry(b.vertices[0]):null;return null!=c&&!c.relative}},{name:"resizable",dispName:"Resizable",type:"bool",defVal:!0},{name:"resizeWidth",dispName:"Resize Width",type:"bool",defVal:!1},{name:"resizeHeight",dispName:"Resize Height",type:"bool",defVal:!1},{name:"rotatable",dispName:"Rotatable",type:"bool",defVal:!0},{name:"cloneable",dispName:"Cloneable",type:"bool",defVal:!0},
{name:"deletable",dispName:"Deletable",type:"bool",defVal:!0},{name:"treeFolding",dispName:"Tree Folding",type:"bool",defVal:!1},{name:"treeMoving",dispName:"Tree Moving",type:"bool",defVal:!1},{name:"pointerEvents",dispName:"Pointer Events",type:"bool",defVal:!0,isVisible:function(b,d){var c=mxUtils.getValue(b.style,mxConstants.STYLE_FILLCOLOR,null);return d.editorUi.editor.graph.isSwimlane(b.vertices[0])||null==c||c==mxConstants.NONE||0==mxUtils.getValue(b.style,mxConstants.STYLE_FILL_OPACITY,100)||
-0==mxUtils.getValue(b.style,mxConstants.STYLE_OPACITY,100)||null!=b.style.pointerEvents}},{name:"moveCells",dispName:"Move Cells on Fold",type:"bool",defVal:!1,isVisible:function(b,d){return 0<b.vertices.length&&d.editorUi.editor.graph.isContainer(b.vertices[0])}}].concat(Editor.commonProperties);Editor.defaultCsvValue='##\n## Example CSV import. Use ## for comments and # for configuration. Paste CSV below.\n## The following names are reserved and should not be used (or ignored):\n## id, tooltip, placeholder(s), link and label (see below)\n##\n#\n## Node label with placeholders and HTML.\n## Default is \'%name_of_first_column%\'.\n#\n# label: %name%<br><i style="color:gray;">%position%</i><br><a href="mailto:%email%">Email</a>\n#\n## Node style (placeholders are replaced once).\n## Default is the current style for nodes.\n#\n# style: label;image=%image%;whiteSpace=wrap;html=1;rounded=1;fillColor=%fill%;strokeColor=%stroke%;\n#\n## Parent style for nodes with child nodes (placeholders are replaced once).\n#\n# parentstyle: swimlane;whiteSpace=wrap;html=1;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeLast=0;collapsible=1;\n#\n## Optional column name that contains a reference to a named style in styles.\n## Default is the current style for nodes.\n#\n# stylename: -\n#\n## JSON for named styles of the form {"name": "style", "name": "style"} where style is a cell style with\n## placeholders that are replaced once.\n#\n# styles: -\n#\n## JSON for variables in styles of the form {"name": "value", "name": "value"} where name is a string\n## that will replace a placeholder in a style.\n#\n# vars: -\n#\n## Optional column name that contains a reference to a named label in labels.\n## Default is the current label.\n#\n# labelname: -\n#\n## JSON for named labels of the form {"name": "label", "name": "label"} where label is a cell label with\n## placeholders.\n#\n# labels: -\n#\n## Uses the given column name as the identity for cells (updates existing cells).\n## Default is no identity (empty value or -).\n#\n# identity: -\n#\n## Uses the given column name as the parent reference for cells. Default is no parent (empty or -).\n## The identity above is used for resolving the reference so it must be specified.\n#\n# parent: -\n#\n## Adds a prefix to the identity of cells to make sure they do not collide with existing cells (whose\n## IDs are numbers from 0..n, sometimes with a GUID prefix in the context of realtime collaboration).\n## Default is csvimport-.\n#\n# namespace: csvimport-\n#\n## Connections between rows ("from": source colum, "to": target column).\n## Label, style and invert are optional. Defaults are \'\', current style and false.\n## If placeholders are used in the style, they are replaced with data from the source.\n## An optional placeholders can be set to target to use data from the target instead.\n## In addition to label, an optional fromlabel and tolabel can be used to name the column\n## that contains the text for the label in the edges source or target (invert ignored).\n## In addition to those, an optional source and targetlabel can be used to specify a label\n## that contains placeholders referencing the respective columns in the source or target row.\n## The label is created in the form fromlabel + sourcelabel + label + tolabel + targetlabel.\n## Additional labels can be added by using an optional labels array with entries of the\n## form {"label": string, "x": number, "y": number, "dx": number, "dy": number} where\n## x is from -1 to 1 along the edge, y is orthogonal, and dx/dy are offsets in pixels.\n## An optional placeholders with the string value "source" or "target" can be specified\n## to replace placeholders in the additional label with data from the source or target.\n## The target column may contain a comma-separated list of values.\n## Multiple connect entries are allowed.\n#\n# connect: {"from": "manager", "to": "name", "invert": true, "label": "manages", \\\n# "style": "curved=1;endArrow=blockThin;endFill=1;fontSize=11;"}\n# connect: {"from": "refs", "to": "id", "style": "curved=1;fontSize=11;"}\n#\n## Node x-coordinate. Possible value is a column name. Default is empty. Layouts will\n## override this value.\n#\n# left: \n#\n## Node y-coordinate. Possible value is a column name. Default is empty. Layouts will\n## override this value.\n#\n# top: \n#\n## Node width. Possible value is a number (in px), auto or an @ sign followed by a column\n## name that contains the value for the width. Default is auto.\n#\n# width: auto\n#\n## Node height. Possible value is a number (in px), auto or an @ sign followed by a column\n## name that contains the value for the height. Default is auto.\n#\n# height: auto\n#\n## Padding for autosize. Default is 0.\n#\n# padding: -12\n#\n## Comma-separated list of ignored columns for metadata. (These can be\n## used for connections and styles but will not be added as metadata.)\n#\n# ignore: id,image,fill,stroke,refs,manager\n#\n## Column to be renamed to link attribute (used as link).\n#\n# link: url\n#\n## Spacing between nodes. Default is 40.\n#\n# nodespacing: 40\n#\n## Spacing between levels of hierarchical layouts. Default is 100.\n#\n# levelspacing: 100\n#\n## Spacing between parallel edges. Default is 40. Use 0 to disable.\n#\n# edgespacing: 40\n#\n## Name or JSON of layout. Possible values are auto, none, verticaltree, horizontaltree,\n## verticalflow, horizontalflow, organic, circle or a JSON string as used in Layout, Apply.\n## Default is auto.\n#\n# layout: auto\n#\n## ---- CSV below this line. First line are column names. ----\nname,position,id,location,manager,email,fill,stroke,refs,url,image\nTessa Miller,CFO,emi,Office 1,,me@example.com,#dae8fc,#6c8ebf,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-3-128.png\nEdward Morrison,Brand Manager,emo,Office 2,Tessa Miller,me@example.com,#d5e8d4,#82b366,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-10-3-128.png\nAlison Donovan,System Admin,rdo,Office 3,Tessa Miller,me@example.com,#d5e8d4,#82b366,"emo,tva",https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-2-128.png\nEvan Valet,HR Director,tva,Office 4,Tessa Miller,me@example.com,#d5e8d4,#82b366,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-9-2-128.png\n';
+0==mxUtils.getValue(b.style,mxConstants.STYLE_OPACITY,100)||null!=b.style.pointerEvents}},{name:"moveCells",dispName:"Move Cells on Fold",type:"bool",defVal:!1,isVisible:function(b,d){return 0<b.vertices.length&&d.editorUi.editor.graph.isContainer(b.vertices[0])}}].concat(Editor.commonProperties);Editor.defaultCsvValue='##\n## Example CSV import. Use ## for comments and # for configuration. Paste CSV below.\n## The following names are reserved and should not be used (or ignored):\n## id, tooltip, placeholder(s), link and label (see below)\n##\n#\n## Node label with placeholders and HTML.\n## Default is \'%name_of_first_column%\'.\n#\n# label: %name%<br><i style="color:gray;">%position%</i><br><a href="mailto:%email%">Email</a>\n#\n## Node style (placeholders are replaced once).\n## Default is the current style for nodes.\n#\n# style: label;image=%image%;whiteSpace=wrap;html=1;rounded=1;fillColor=%fill%;strokeColor=%stroke%;\n#\n## Parent style for nodes with child nodes (placeholders are replaced once).\n#\n# parentstyle: swimlane;whiteSpace=wrap;html=1;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeLast=0;collapsible=1;\n#\n## Style to be used for objects not in the CSV. If this is - then such objects are ignored,\n## else they are created using this as their style, eg. whiteSpace=wrap;html=1;\n#\n# unknownStyle: -\n#\n## Optional column name that contains a reference to a named style in styles.\n## Default is the current style for nodes.\n#\n# stylename: -\n#\n## JSON for named styles of the form {"name": "style", "name": "style"} where style is a cell style with\n## placeholders that are replaced once.\n#\n# styles: -\n#\n## JSON for variables in styles of the form {"name": "value", "name": "value"} where name is a string\n## that will replace a placeholder in a style.\n#\n# vars: -\n#\n## Optional column name that contains a reference to a named label in labels.\n## Default is the current label.\n#\n# labelname: -\n#\n## JSON for named labels of the form {"name": "label", "name": "label"} where label is a cell label with\n## placeholders.\n#\n# labels: -\n#\n## Uses the given column name as the identity for cells (updates existing cells).\n## Default is no identity (empty value or -).\n#\n# identity: -\n#\n## Uses the given column name as the parent reference for cells. Default is no parent (empty or -).\n## The identity above is used for resolving the reference so it must be specified.\n#\n# parent: -\n#\n## Adds a prefix to the identity of cells to make sure they do not collide with existing cells (whose\n## IDs are numbers from 0..n, sometimes with a GUID prefix in the context of realtime collaboration).\n## Default is csvimport-.\n#\n# namespace: csvimport-\n#\n## Connections between rows ("from": source colum, "to": target column).\n## Label, style and invert are optional. Defaults are \'\', current style and false.\n## If placeholders are used in the style, they are replaced with data from the source.\n## An optional placeholders can be set to target to use data from the target instead.\n## In addition to label, an optional fromlabel and tolabel can be used to name the column\n## that contains the text for the label in the edges source or target (invert ignored).\n## In addition to those, an optional source and targetlabel can be used to specify a label\n## that contains placeholders referencing the respective columns in the source or target row.\n## The label is created in the form fromlabel + sourcelabel + label + tolabel + targetlabel.\n## Additional labels can be added by using an optional labels array with entries of the\n## form {"label": string, "x": number, "y": number, "dx": number, "dy": number} where\n## x is from -1 to 1 along the edge, y is orthogonal, and dx/dy are offsets in pixels.\n## An optional placeholders with the string value "source" or "target" can be specified\n## to replace placeholders in the additional label with data from the source or target.\n## The target column may contain a comma-separated list of values.\n## Multiple connect entries are allowed.\n#\n# connect: {"from": "manager", "to": "name", "invert": true, "label": "manages", \\\n# "style": "curved=1;endArrow=blockThin;endFill=1;fontSize=11;"}\n# connect: {"from": "refs", "to": "id", "style": "curved=1;fontSize=11;"}\n#\n## Node x-coordinate. Possible value is a column name. Default is empty. Layouts will\n## override this value.\n#\n# left: \n#\n## Node y-coordinate. Possible value is a column name. Default is empty. Layouts will\n## override this value.\n#\n# top: \n#\n## Node width. Possible value is a number (in px), auto or an @ sign followed by a column\n## name that contains the value for the width. Default is auto.\n#\n# width: auto\n#\n## Node height. Possible value is a number (in px), auto or an @ sign followed by a column\n## name that contains the value for the height. Default is auto.\n#\n# height: auto\n#\n## Padding for autosize. Default is 0.\n#\n# padding: -12\n#\n## Comma-separated list of ignored columns for metadata. (These can be\n## used for connections and styles but will not be added as metadata.)\n#\n# ignore: id,image,fill,stroke,refs,manager\n#\n## Column to be renamed to link attribute (used as link).\n#\n# link: url\n#\n## Spacing between nodes. Default is 40.\n#\n# nodespacing: 40\n#\n## Spacing between levels of hierarchical layouts. Default is 100.\n#\n# levelspacing: 100\n#\n## Spacing between parallel edges. Default is 40. Use 0 to disable.\n#\n# edgespacing: 40\n#\n## Name or JSON of layout. Possible values are auto, none, verticaltree, horizontaltree,\n## verticalflow, horizontalflow, organic, circle or a JSON string as used in Layout, Apply.\n## Default is auto.\n#\n# layout: auto\n#\n## ---- CSV below this line. First line are column names. ----\nname,position,id,location,manager,email,fill,stroke,refs,url,image\nTessa Miller,CFO,emi,Office 1,,me@example.com,#dae8fc,#6c8ebf,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-3-128.png\nEdward Morrison,Brand Manager,emo,Office 2,Tessa Miller,me@example.com,#d5e8d4,#82b366,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-10-3-128.png\nAlison Donovan,System Admin,rdo,Office 3,Tessa Miller,me@example.com,#d5e8d4,#82b366,"emo,tva",https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-2-128.png\nEvan Valet,HR Director,tva,Office 4,Tessa Miller,me@example.com,#d5e8d4,#82b366,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-9-2-128.png\n';
Editor.createRoughCanvas=function(b){var d=rough.canvas({getContext:function(){return b}});d.draw=function(d){var c=d.sets||[];d=d.options||this.getDefaultOptions();for(var g=0;g<c.length;g++){var e=c[g];switch(e.type){case "path":null!=d.stroke&&this._drawToContext(b,e,d);break;case "fillPath":this._drawToContext(b,e,d);break;case "fillSketch":this.fillSketch(b,e,d)}}};d.fillSketch=function(d,c,g){var e=b.state.strokeColor,k=b.state.strokeWidth,f=b.state.strokeAlpha,l=b.state.dashed,m=g.fillWeight;
0>m&&(m=g.strokeWidth/2);b.setStrokeAlpha(b.state.fillAlpha);b.setStrokeColor(g.fill||"");b.setStrokeWidth(m);b.setDashed(!1);this._drawToContext(d,c,g);b.setDashed(l);b.setStrokeWidth(k);b.setStrokeColor(e);b.setStrokeAlpha(f)};d._drawToContext=function(b,d,c){b.begin();for(var g=0;g<d.ops.length;g++){var e=d.ops[g],k=e.data;switch(e.op){case "move":b.moveTo(k[0],k[1]);break;case "bcurveTo":b.curveTo(k[0],k[1],k[2],k[3],k[4],k[5]);break;case "lineTo":b.lineTo(k[0],k[1])}}b.end();"fillPath"===d.type&&
c.filled?b.fill():b.stroke()};return d};(function(){function b(d,c,g){this.canvas=d;this.rc=c;this.shape=g;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,b.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,b.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,b.prototype.rect);this.originalRoundrect=this.canvas.roundrect;this.canvas.roundrect=
@@ -3200,7 +3200,7 @@ b.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,
b,this.lastY=d)};b.prototype.moveTo=function(b,d){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,b,d),this.lastX=b,this.lastY=d,this.firstX=b,this.firstY=d)};b.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,arguments):this.addOp(this.closeOp)};b.prototype.quadTo=function(b,d,c,g){this.passThrough?this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,b,d,c,g),this.lastX=c,this.lastY=g)};b.prototype.curveTo=
function(b,d,c,g,e,k){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,b,d,c,g,e,k),this.lastX=e,this.lastY=k)};b.prototype.arcTo=function(b,d,c,g,e,k,f){if(this.passThrough)this.originalArcTo.apply(this.canvas,arguments);else{var m=mxUtils.arcToCurves(this.lastX,this.lastY,b,d,c,g,e,k,f);if(null!=m)for(var l=0;l<m.length;l+=6)this.curveTo(m[l],m[l+1],m[l+2],m[l+3],m[l+4],m[l+5]);this.lastX=k;this.lastY=f}};b.prototype.rect=function(b,d,c,g){this.passThrough?
this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(b,d,c,g,this.getStyle(!0,!0)))};b.prototype.ellipse=function(b,d,c,g){this.passThrough?this.originalEllipse.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(b+c/2,d+g/2,c,g,this.getStyle(!0,!0)))};b.prototype.roundrect=function(b,d,c,g,e,k){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(b+e,d),this.lineTo(b+c-e,d),
-this.quadTo(b+c,d,b+c,d+k),this.lineTo(b+c,d+g-k),this.quadTo(b+c,d+g,b+c-e,d+g),this.lineTo(b+e,d+g),this.quadTo(b,d+g,b,d+g-k),this.lineTo(b,d+k),this.quadTo(b,d,b+e,d))};b.prototype.drawPath=function(b){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),b)}catch(ta){}this.passThrough=!1}else if(null!=this.nextShape){for(var d in b)this.nextShape.options[d]=b[d];null==b.stroke&&delete this.nextShape.options.stroke;b.filled||delete this.nextShape.options.fill;this.passThrough=
+this.quadTo(b+c,d,b+c,d+k),this.lineTo(b+c,d+g-k),this.quadTo(b+c,d+g,b+c-e,d+g),this.lineTo(b+e,d+g),this.quadTo(b,d+g,b,d+g-k),this.lineTo(b,d+k),this.quadTo(b,d,b+e,d))};b.prototype.drawPath=function(b){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),b)}catch(na){}this.passThrough=!1}else if(null!=this.nextShape){for(var d in b)this.nextShape.options[d]=b[d];null==b.stroke&&delete this.nextShape.options.stroke;b.filled||delete this.nextShape.options.fill;this.passThrough=
!0;this.rc.draw(this.nextShape);this.passThrough=!1}};b.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!1))};b.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};b.prototype.fillAndStroke=function(){this.passThrough?this.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};b.prototype.destroy=function(){this.canvas.lineTo=
this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=this.originalArcTo;this.canvas.close=this.originalClose;this.canvas.fill=this.originalFill;this.canvas.stroke=this.originalStroke;this.canvas.fillAndStroke=this.originalFillAndStroke;this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=
this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(d){return new b(d,Editor.createRoughCanvas(d),this)};var d=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=function(b){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?d.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(b):this.createRoughCanvas(b)};var c=mxImageShape.prototype.paintVertexShape;
@@ -3230,23 +3230,23 @@ null!=urlParams.edit?decodeURIComponent(urlParams.edit):null;Editor.prototype.cr
c;this.graph.mathEnabled="1"==urlParams.math||"1"==d.getAttribute("math");c=d.getAttribute("backgroundImage");null!=c?this.graph.setBackgroundImage(this.graph.parseBackgroundImage(c)):this.graph.setBackgroundImage(null);mxClient.NO_FO=this.graph.mathEnabled&&!this.useForeignObjectForMath?!0:this.originalNoForeignObject;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();this.graph.setShadowVisible("1"==d.getAttribute("shadow"),
!1);if(c=d.getAttribute("extFonts"))try{for(c=c.split("|").map(function(b){b=b.split("^");return{name:b[0],url:b[1]}}),g=0;g<c.length;g++)this.graph.addExtFont(c[g].name,c[g].url)}catch(ca){console.log("ExtFonts format error: "+ca.message)}else null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(this.graph.extFonts=[])}b.apply(this,arguments)}else throw{message:mxResources.get("notADiagramFile")||"Invalid data",toString:function(){return this.message}};};var c=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=
function(b,d){b=null!=b?b:!0;var g=c.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&g.setAttribute("style",this.graph.currentStyle);var e=this.graph.getBackgroundImageObject(this.graph.backgroundImage,d);null!=e&&g.setAttribute("backgroundImage",JSON.stringify(e));g.setAttribute("math",this.graph.mathEnabled?"1":"0");g.setAttribute("shadow",this.graph.shadowVisible?"1":"0");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(e=this.graph.extFonts.map(function(b){return b.name+
-"^"+b.url}),g.setAttribute("extFonts",e.join("|")));return g};Editor.prototype.isDataSvg=function(b){try{var d=mxUtils.parseXml(b).documentElement.getAttribute("content");if(null!=d&&(null!=d&&"<"!=d.charAt(0)&&"%"!=d.charAt(0)&&(d=unescape(window.atob?atob(d):Base64.decode(cont,d))),null!=d&&"%"==d.charAt(0)&&(d=decodeURIComponent(d)),null!=d&&0<d.length)){var c=mxUtils.parseXml(d).documentElement;return"mxfile"==c.nodeName||"mxGraphModel"==c.nodeName}}catch(V){}return!1};Editor.prototype.extractGraphModel=
+"^"+b.url}),g.setAttribute("extFonts",e.join("|")));return g};Editor.prototype.isDataSvg=function(b){try{var d=mxUtils.parseXml(b).documentElement.getAttribute("content");if(null!=d&&(null!=d&&"<"!=d.charAt(0)&&"%"!=d.charAt(0)&&(d=unescape(window.atob?atob(d):Base64.decode(cont,d))),null!=d&&"%"==d.charAt(0)&&(d=decodeURIComponent(d)),null!=d&&0<d.length)){var c=mxUtils.parseXml(d).documentElement;return"mxfile"==c.nodeName||"mxGraphModel"==c.nodeName}}catch(X){}return!1};Editor.prototype.extractGraphModel=
function(b,d,c){return Editor.extractGraphModel.apply(this,arguments)};var e=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.graph.view.x0=null;this.graph.view.y0=null;mxClient.NO_FO=this.graph.mathEnabled&&!this.useForeignObjectForMath?!0:this.originalNoForeignObject;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();e.apply(this,arguments)};
var f=Editor.prototype.updateGraphComponents;Editor.prototype.updateGraphComponents=function(){f.apply(this,arguments);mxClient.NO_FO=this.graph.mathEnabled&&!this.useForeignObjectForMath&&null!=Editor.MathJaxRender?!0:this.originalNoForeignObject;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.mathJaxWebkitCss="div.MathJax_SVG_Display { position: static; }\nspan.MathJax_SVG { position: static !important; }";
Editor.initMath=function(b,d){if("undefined"===typeof window.MathJax){b=(null!=b?b:DRAW_MATH_URL+"/MathJax.js")+"?config=TeX-MML-AM_"+("html"==urlParams["math-output"]?"HTMLorMML":"SVG")+"-full";Editor.mathJaxQueue=[];Editor.doMathJaxRender=function(b){window.setTimeout(function(){"hidden"!=b.style.visibility&&MathJax.Hub.Queue(["Typeset",MathJax.Hub,b])},0)};var c=null!=urlParams["math-font"]?decodeURIComponent(urlParams["math-font"]):"TeX";d=null!=d?d:{"HTML-CSS":{availableFonts:[c],imageFont:null},
SVG:{font:c,useFontCache:!1},tex2jax:{ignoreClass:"mxCellEditor"},asciimath2jax:{ignoreClass:"mxCellEditor"}};window.MathJax={skipStartupTypeset:!0,showMathMenu:!1,messageStyle:"none",AuthorInit:function(){MathJax.Hub.Config(d);MathJax.Hub.Register.StartupHook("Begin",function(){for(var b=0;b<Editor.mathJaxQueue.length;b++)Editor.doMathJaxRender(Editor.mathJaxQueue[b])})}};Editor.MathJaxRender=function(b){"undefined"!==typeof MathJax&&"undefined"!==typeof MathJax.Hub?Editor.doMathJaxRender(b):Editor.mathJaxQueue.push(b)};
Editor.MathJaxClear=function(){Editor.mathJaxQueue=[]};var g=Editor.prototype.init;Editor.prototype.init=function(){g.apply(this,arguments);this.graph.addListener(mxEvent.SIZE,mxUtils.bind(this,function(b,d){null!=this.graph.container&&this.graph.mathEnabled&&!this.graph.blockMathRender&&Editor.MathJaxRender(this.graph.container)}))};c=document.getElementsByTagName("script");if(null!=c&&0<c.length){var e=document.createElement("script");e.setAttribute("type","text/javascript");e.setAttribute("src",
-b);c[0].parentNode.appendChild(e)}try{if(mxClient.IS_GC||mxClient.IS_SF){var k=document.createElement("style");k.type="text/css";k.innerHTML=Editor.mathJaxWebkitCss;document.getElementsByTagName("head")[0].appendChild(k)}}catch(da){}}};Editor.prototype.csvToArray=function(b){if(!/^\s*(?:'[^'\\]*(?:\\[\S\s][^'\\]*)*'|"[^"\\]*(?:\\[\S\s][^"\\]*)*"|[^,'"\s\\]*(?:\s+[^,'"\s\\]+)*)\s*(?:,\s*(?:'[^'\\]*(?:\\[\S\s][^'\\]*)*'|"[^"\\]*(?:\\[\S\s][^"\\]*)*"|[^,'"\s\\]*(?:\s+[^,'"\s\\]+)*)\s*)*$/.test(b))return null;
+b);c[0].parentNode.appendChild(e)}try{if(mxClient.IS_GC||mxClient.IS_SF){var k=document.createElement("style");k.type="text/css";k.innerHTML=Editor.mathJaxWebkitCss;document.getElementsByTagName("head")[0].appendChild(k)}}catch(K){}}};Editor.prototype.csvToArray=function(b){if(!/^\s*(?:'[^'\\]*(?:\\[\S\s][^'\\]*)*'|"[^"\\]*(?:\\[\S\s][^"\\]*)*"|[^,'"\s\\]*(?:\s+[^,'"\s\\]+)*)\s*(?:,\s*(?:'[^'\\]*(?:\\[\S\s][^'\\]*)*'|"[^"\\]*(?:\\[\S\s][^"\\]*)*"|[^,'"\s\\]*(?:\s+[^,'"\s\\]+)*)\s*)*$/.test(b))return null;
var d=[];b.replace(/(?!\s*$)\s*(?:'([^'\\]*(?:\\[\S\s][^'\\]*)*)'|"([^"\\]*(?:\\[\S\s][^"\\]*)*)"|([^,'"\s\\]*(?:\s+[^,'"\s\\]+)*))\s*(?:,|$)/g,function(b,c,g,e){void 0!==c?d.push(c.replace(/\\'/g,"'")):void 0!==g?d.push(g.replace(/\\"/g,'"')):void 0!==e&&d.push(e);return""});/,\s*$/.test(b)&&d.push("");return d};Editor.prototype.isCorsEnabledForUrl=function(b){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||b.substring(0,window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&
null==this.corsRegExp&&(this.corsRegExp=new RegExp(decodeURIComponent(urlParams.cors)));return null!=this.corsRegExp&&this.corsRegExp.test(b)||"https://raw.githubusercontent.com/"===b.substring(0,34)||"https://fonts.googleapis.com/"===b.substring(0,29)||"https://fonts.gstatic.com/"===b.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var b=new mxUrlConverter;b.updateBaseUrl();var d=b.convert,c=this;b.convert=function(g){if(null!=g){var e="http://"==g.substring(0,7)||"https://"==
g.substring(0,8);e&&!navigator.onLine?g=Editor.svgBrokenImage.src:!e||g.substring(0,b.baseUrl.length)==b.baseUrl||c.crossOriginImages&&c.isCorsEnabledForUrl(g)?"chrome-extension://"==g.substring(0,19)||mxClient.IS_CHROMEAPP||(g=d.apply(this,arguments)):g=PROXY_URL+"?url="+encodeURIComponent(g)}return g};return b};Editor.createSvgDataUri=function(b){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(b)))};Editor.prototype.convertImageToDataUri=function(b,d){try{var c=!0,g=window.setTimeout(mxUtils.bind(this,
function(){c=!1;d(Editor.svgBrokenImage.src)}),this.timeout);if(/(\.svg)$/i.test(b))mxUtils.get(b,mxUtils.bind(this,function(b){window.clearTimeout(g);c&&d(Editor.createSvgDataUri(b.getText()))}),function(){window.clearTimeout(g);c&&d(Editor.svgBrokenImage.src)});else{var e=new Image;this.crossOriginImages&&(e.crossOrigin="anonymous");e.onload=function(){window.clearTimeout(g);if(c)try{var b=document.createElement("canvas"),k=b.getContext("2d");b.height=e.height;b.width=e.width;k.drawImage(e,0,0);
-d(b.toDataURL())}catch(ta){d(Editor.svgBrokenImage.src)}};e.onerror=function(){window.clearTimeout(g);c&&d(Editor.svgBrokenImage.src)};e.src=b}}catch(aa){d(Editor.svgBrokenImage.src)}};Editor.prototype.convertImages=function(b,d,c,g){null==g&&(g=this.createImageUrlConverter());var e=0,k=c||{};c=mxUtils.bind(this,function(c,f){for(var m=b.getElementsByTagName(c),l=0;l<m.length;l++)mxUtils.bind(this,function(c){try{if(null!=c){var m=g.convert(c.getAttribute(f));if(null!=m&&"data:"!=m.substring(0,5)){var l=
-k[m];null==l?(e++,this.convertImageToDataUri(m,function(g){null!=g&&(k[m]=g,c.setAttribute(f,g));e--;0==e&&d(b)})):c.setAttribute(f,l)}else null!=m&&c.setAttribute(f,m)}}catch(ea){}})(m[l])});c("image","xlink:href");c("img","src");0==e&&d(b)};Editor.base64Encode=function(b){for(var d="",c=0,g=b.length,e,k,f;c<g;){e=b.charCodeAt(c++)&255;if(c==g){d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e>>2);d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((e&
+d(b.toDataURL())}catch(na){d(Editor.svgBrokenImage.src)}};e.onerror=function(){window.clearTimeout(g);c&&d(Editor.svgBrokenImage.src)};e.src=b}}catch(ka){d(Editor.svgBrokenImage.src)}};Editor.prototype.convertImages=function(b,d,c,g){null==g&&(g=this.createImageUrlConverter());var e=0,k=c||{};c=mxUtils.bind(this,function(c,f){for(var m=b.getElementsByTagName(c),l=0;l<m.length;l++)mxUtils.bind(this,function(c){try{if(null!=c){var m=g.convert(c.getAttribute(f));if(null!=m&&"data:"!=m.substring(0,5)){var l=
+k[m];null==l?(e++,this.convertImageToDataUri(m,function(g){null!=g&&(k[m]=g,c.setAttribute(f,g));e--;0==e&&d(b)})):c.setAttribute(f,l)}else null!=m&&c.setAttribute(f,m)}}catch(Q){}})(m[l])});c("image","xlink:href");c("img","src");0==e&&d(b)};Editor.base64Encode=function(b){for(var d="",c=0,g=b.length,e,k,f;c<g;){e=b.charCodeAt(c++)&255;if(c==g){d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e>>2);d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((e&
3)<<4);d+="==";break}k=b.charCodeAt(c++);if(c==g){d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e>>2);d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((e&3)<<4|(k&240)>>4);d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((k&15)<<2);d+="=";break}f=b.charCodeAt(c++);d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e>>2);d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((e&
3)<<4|(k&240)>>4);d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((k&15)<<2|(f&192)>>6);d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f&63)}return d};Editor.prototype.loadUrl=function(b,d,c,g,e,k,f,m){try{var l=!f&&(g||/(\.png)($|\?)/i.test(b)||/(\.jpe?g)($|\?)/i.test(b)||/(\.gif)($|\?)/i.test(b)||/(\.pdf)($|\?)/i.test(b));e=null!=e?e:!0;var p=mxUtils.bind(this,function(){mxUtils.get(b,mxUtils.bind(this,function(b){if(200<=b.getStatus()&&
299>=b.getStatus()){if(null!=d){var g=b.getText();if(l){if((9==document.documentMode||10==document.documentMode)&&"undefined"!==typeof window.mxUtilsBinaryToArray){b=mxUtilsBinaryToArray(b.request.responseBody).toArray();for(var g=Array(b.length),e=0;e<b.length;e++)g[e]=String.fromCharCode(b[e]);g=g.join("")}k=null!=k?k:"data:image/png;base64,";g=k+Editor.base64Encode(g)}d(g)}}else null!=c&&(0==b.getStatus()?c({message:mxResources.get("accessDenied")},b):c({message:mxResources.get("error")+" "+b.getStatus()},
-b))}),function(b){null!=c&&c({message:mxResources.get("error")+" "+b.getStatus()})},l,this.timeout,function(){e&&null!=c&&c({code:App.ERROR_TIMEOUT,retry:p})},m)});p()}catch(oa){null!=c&&c(oa)}};Editor.prototype.absoluteCssFonts=function(b){var d=null;if(null!=b){var c=b.split("url(");if(0<c.length){d=[c[0]];b=window.location.pathname;var g=null!=b?b.lastIndexOf("/"):-1;0<=g&&(b=b.substring(0,g+1));var g=document.getElementsByTagName("base"),e=null;null!=g&&0<g.length&&(e=g[0].getAttribute("href"));
+b))}),function(b){null!=c&&c({message:mxResources.get("error")+" "+b.getStatus()})},l,this.timeout,function(){e&&null!=c&&c({code:App.ERROR_TIMEOUT,retry:p})},m)});p()}catch(ha){null!=c&&c(ha)}};Editor.prototype.absoluteCssFonts=function(b){var d=null;if(null!=b){var c=b.split("url(");if(0<c.length){d=[c[0]];b=window.location.pathname;var g=null!=b?b.lastIndexOf("/"):-1;0<=g&&(b=b.substring(0,g+1));var g=document.getElementsByTagName("base"),e=null;null!=g&&0<g.length&&(e=g[0].getAttribute("href"));
for(var k=1;k<c.length;k++)if(g=c[k].indexOf(")"),0<g){var f=Editor.trimCssUrl(c[k].substring(0,g));this.graph.isRelativeUrl(f)&&(f=null!=e?e+f:window.location.protocol+"//"+window.location.hostname+("/"==f.charAt(0)?"":b)+f);d.push('url("'+f+'"'+c[k].substring(g))}else d.push(c[k])}else d=[b]}return null!=d?d.join(""):null};Editor.prototype.mapFontUrl=function(b,d,c){/^https?:\/\//.test(d)&&!this.isCorsEnabledForUrl(d)&&(d=PROXY_URL+"?url="+encodeURIComponent(d));c(b,d)};Editor.prototype.embedCssFonts=
function(b,d){var c=b.split("url("),g=0;null==this.cachedFonts&&(this.cachedFonts={});var e=mxUtils.bind(this,function(){if(0==g){for(var b=[c[0]],e=1;e<c.length;e++){var k=c[e].indexOf(")");b.push('url("');b.push(this.cachedFonts[Editor.trimCssUrl(c[e].substring(0,k))]);b.push('"'+c[e].substring(k))}d(b.join(""))}});if(0<c.length){for(var k=1;k<c.length;k++){var f=c[k].indexOf(")"),m=null,l=c[k].indexOf("format(",f);0<l&&(m=Editor.trimCssUrl(c[k].substring(l+7,c[k].indexOf(")",l))));mxUtils.bind(this,
function(b){if(null==this.cachedFonts[b]){this.cachedFonts[b]=b;g++;var d="application/x-font-ttf";if("svg"==m||/(\.svg)($|\?)/i.test(b))d="image/svg+xml";else if("otf"==m||"embedded-opentype"==m||/(\.otf)($|\?)/i.test(b))d="application/x-font-opentype";else if("woff"==m||/(\.woff)($|\?)/i.test(b))d="application/font-woff";else if("woff2"==m||/(\.woff2)($|\?)/i.test(b))d="application/font-woff2";else if("eot"==m||/(\.eot)($|\?)/i.test(b))d="application/vnd.ms-fontobject";else if("sfnt"==m||/(\.sfnt)($|\?)/i.test(b))d=
@@ -3254,18 +3254,18 @@ function(b){if(null==this.cachedFonts[b]){this.cachedFonts[b]=b;g++;var d="appli
Editor.prototype.createGoogleFontCache=function(){var b={},d;for(d in Graph.fontMapping)Graph.isCssFontUrl(d)&&(b[d]=Graph.fontMapping[d]);return b};Editor.prototype.embedExtFonts=function(b){var d=this.graph.getCustomFonts();if(0<d.length){var c="",g=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var e=mxUtils.bind(this,function(){0==g&&this.embedCssFonts(c,b)}),k=0;k<d.length;k++)mxUtils.bind(this,function(b,d){Graph.isCssFontUrl(d)?null==this.cachedGoogleFonts[d]?
(g++,this.loadUrl(d,mxUtils.bind(this,function(b){this.cachedGoogleFonts[d]=b;c+=b;g--;e()}),mxUtils.bind(this,function(b){g--;c+="@import url("+d+");";e()}))):c+=this.cachedGoogleFonts[d]:c+='@font-face {font-family: "'+b+'";src: url("'+d+'")}'})(d[k].name,d[k].url);e()}else b()};Editor.prototype.addMathCss=function(b){b=b.getElementsByTagName("defs");if(null!=b&&0<b.length)for(var d=document.getElementsByTagName("style"),c=0;c<d.length;c++){var g=mxUtils.getTextContent(d[c]);0>g.indexOf("mxPageSelector")&&
0<g.indexOf("MathJax")&&b[0].appendChild(d[c].cloneNode(!0))}};Editor.prototype.addFontCss=function(b,d){d=null!=d?d:this.absoluteCssFonts(this.fontCss);if(null!=d){var c=b.getElementsByTagName("defs"),g=b.ownerDocument;0==c.length?(c=null!=g.createElementNS?g.createElementNS(mxConstants.NS_SVG,"defs"):g.createElement("defs"),null!=b.firstChild?b.insertBefore(c,b.firstChild):b.appendChild(c)):c=c[0];g=null!=g.createElementNS?g.createElementNS(mxConstants.NS_SVG,"style"):g.createElement("style");g.setAttribute("type",
-"text/css");mxUtils.setTextContent(g,d);c.appendChild(g)}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(b,d,c){var g=mxClient.IS_FF?8192:16384;return Math.min(c,Math.min(g/b,g/d))};Editor.prototype.exportToCanvas=function(b,d,c,g,e,k,f,m,l,p,v,n,t,u,y,z,q,A){try{k=null!=k?k:!0;f=null!=f?f:!0;n=null!=n?n:this.graph;t=null!=t?t:0;var x=l?null:n.background;x==mxConstants.NONE&&(x=null);null==x&&(x=g);null==
-x&&0==l&&(x=z?this.graph.defaultPageBackgroundColor:"#ffffff");this.convertImages(n.getSvg(null,null,t,u,null,f,null,null,null,p,null,z,q,A),mxUtils.bind(this,function(c){try{var g=new Image;g.onload=mxUtils.bind(this,function(){try{var f=function(){mxClient.IS_SF?window.setTimeout(function(){u.drawImage(g,0,0);b(l,c)},0):(u.drawImage(g,0,0),b(l,c))},l=document.createElement("canvas"),p=parseInt(c.getAttribute("width")),v=parseInt(c.getAttribute("height"));m=null!=m?m:1;null!=d&&(m=k?Math.min(1,Math.min(3*
-d/(4*v),d/p)):d/p);m=this.getMaxCanvasScale(p,v,m);p=Math.ceil(m*p);v=Math.ceil(m*v);l.setAttribute("width",p);l.setAttribute("height",v);var u=l.getContext("2d");null!=x&&(u.beginPath(),u.rect(0,0,p,v),u.fillStyle=x,u.fill());1!=m&&u.scale(m,m);if(y){var z=n.view,q=z.scale;z.scale=1;var A=btoa(unescape(encodeURIComponent(z.createSvgGrid(z.gridColor))));z.scale=q;var A="data:image/svg+xml;base64,"+A,C=n.gridSize*z.gridSteps*m,K=n.getGraphBounds(),da=z.translate.x*q,J=z.translate.y*q,G=da+(K.x-da)/
-q-t,P=J+(K.y-J)/q-t,M=new Image;M.onload=function(){try{for(var b=-Math.round(C-mxUtils.mod((da-G)*m,C)),d=-Math.round(C-mxUtils.mod((J-P)*m,C));b<p;b+=C)for(var c=d;c<v;c+=C)u.drawImage(M,b/m,c/m);f()}catch(Fa){null!=e&&e(Fa)}};M.onerror=function(b){null!=e&&e(b)};M.src=A}else f()}catch(za){null!=e&&e(za)}});g.onerror=function(b){null!=e&&e(b)};p&&this.graph.addSvgShadow(c);this.graph.mathEnabled&&this.addMathCss(c);var f=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(c,
-this.resolvedFontCss),g.src=Editor.createSvgDataUri(mxUtils.getXml(c))}catch(ba){null!=e&&e(ba)}});this.embedExtFonts(mxUtils.bind(this,function(b){try{null!=b&&this.addFontCss(c,b),this.loadFonts(f)}catch(na){null!=e&&e(na)}}))}catch(ba){null!=e&&e(ba)}}),c,v)}catch(qa){null!=e&&e(qa)}};Editor.crcTable=[];for(var n=0;256>n;n++)for(var l=n,q=0;8>q;q++)l=1==(l&1)?3988292384^l>>>1:l>>>1,Editor.crcTable[n]=l;Editor.updateCRC=function(b,d,c,g){for(var e=0;e<g;e++)b=Editor.crcTable[(b^d.charCodeAt(c+e))&
-255]^b>>>8;return b};Editor.crc32=function(b){for(var d=-1,c=0;c<b.length;c++)d=d>>>8^Editor.crcTable[(d^b.charCodeAt(c))&255];return(d^-1)>>>0};Editor.writeGraphModelToPng=function(b,d,c,g,e){function k(b,d){var c=l;l+=d;return b.substring(c,l)}function f(b){b=k(b,4);return b.charCodeAt(3)+(b.charCodeAt(2)<<8)+(b.charCodeAt(1)<<16)+(b.charCodeAt(0)<<24)}function m(b){return String.fromCharCode(b>>24&255,b>>16&255,b>>8&255,b&255)}b=b.substring(b.indexOf(",")+1);b=window.atob?atob(b):Base64.decode(b,
-!0);var l=0;if(k(b,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=e&&e();else if(k(b,4),"IHDR"!=k(b,4))null!=e&&e();else{k(b,17);e=b.substring(0,l);do{var p=f(b);if("IDAT"==k(b,4)){e=b.substring(0,l-8);"pHYs"==d&&"dpi"==c?(c=Math.round(g/.0254),c=m(c)+m(c)+String.fromCharCode(1)):c=c+String.fromCharCode(0)+("zTXt"==d?String.fromCharCode(0):"")+g;g=4294967295;g=Editor.updateCRC(g,d,0,4);g=Editor.updateCRC(g,c,0,c.length);e+=m(c.length)+d+c+m(g^4294967295);e+=b.substring(l-
-8,b.length);break}e+=b.substring(l-8,l-4+p);k(b,p);k(b,4)}while(p);return"data:image/png;base64,"+(window.btoa?btoa(e):Base64.encode(e,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.diagrams.net/doc/faq/save-file-formats";var d=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(b,c){d.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var k=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){k.apply(this,
+"text/css");mxUtils.setTextContent(g,d);c.appendChild(g)}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(b,d,c){var g=mxClient.IS_FF?8192:16384;return Math.min(c,Math.min(g/b,g/d))};Editor.prototype.exportToCanvas=function(b,d,c,g,e,k,f,m,l,p,u,n,t,v,y,z,q,B){try{k=null!=k?k:!0;f=null!=f?f:!0;n=null!=n?n:this.graph;t=null!=t?t:0;var x=l?null:n.background;x==mxConstants.NONE&&(x=null);null==x&&(x=g);null==
+x&&0==l&&(x=z?this.graph.defaultPageBackgroundColor:"#ffffff");this.convertImages(n.getSvg(null,null,t,v,null,f,null,null,null,p,null,z,q,B),mxUtils.bind(this,function(c){try{var g=new Image;g.onload=mxUtils.bind(this,function(){try{var f=function(){mxClient.IS_SF?window.setTimeout(function(){v.drawImage(g,0,0);b(l,c)},0):(v.drawImage(g,0,0),b(l,c))},l=document.createElement("canvas"),p=parseInt(c.getAttribute("width")),u=parseInt(c.getAttribute("height"));m=null!=m?m:1;null!=d&&(m=k?Math.min(1,Math.min(3*
+d/(4*u),d/p)):d/p);m=this.getMaxCanvasScale(p,u,m);p=Math.ceil(m*p);u=Math.ceil(m*u);l.setAttribute("width",p);l.setAttribute("height",u);var v=l.getContext("2d");null!=x&&(v.beginPath(),v.rect(0,0,p,u),v.fillStyle=x,v.fill());1!=m&&v.scale(m,m);if(y){var z=n.view,q=z.scale;z.scale=1;var C=btoa(unescape(encodeURIComponent(z.createSvgGrid(z.gridColor))));z.scale=q;var C="data:image/svg+xml;base64,"+C,B=n.gridSize*z.gridSteps*m,K=n.getGraphBounds(),M=z.translate.x*q,J=z.translate.y*q,G=M+(K.x-M)/q-
+t,P=J+(K.y-J)/q-t,N=new Image;N.onload=function(){try{for(var b=-Math.round(B-mxUtils.mod((M-G)*m,B)),d=-Math.round(B-mxUtils.mod((J-P)*m,B));b<p;b+=B)for(var c=d;c<u;c+=B)v.drawImage(N,b/m,c/m);f()}catch(Ea){null!=e&&e(Ea)}};N.onerror=function(b){null!=e&&e(b)};N.src=C}else f()}catch(Ca){null!=e&&e(Ca)}});g.onerror=function(b){null!=e&&e(b)};p&&this.graph.addSvgShadow(c);this.graph.mathEnabled&&this.addMathCss(c);var f=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(c,
+this.resolvedFontCss),g.src=Editor.createSvgDataUri(mxUtils.getXml(c))}catch(Z){null!=e&&e(Z)}});this.embedExtFonts(mxUtils.bind(this,function(b){try{null!=b&&this.addFontCss(c,b),this.loadFonts(f)}catch(la){null!=e&&e(la)}}))}catch(Z){null!=e&&e(Z)}}),c,u)}catch(S){null!=e&&e(S)}};Editor.crcTable=[];for(var n=0;256>n;n++)for(var l=n,q=0;8>q;q++)l=1==(l&1)?3988292384^l>>>1:l>>>1,Editor.crcTable[n]=l;Editor.updateCRC=function(b,d,c,g){for(var e=0;e<g;e++)b=Editor.crcTable[(b^d.charCodeAt(c+e))&255]^
+b>>>8;return b};Editor.crc32=function(b){for(var d=-1,c=0;c<b.length;c++)d=d>>>8^Editor.crcTable[(d^b.charCodeAt(c))&255];return(d^-1)>>>0};Editor.writeGraphModelToPng=function(b,d,c,g,e){function k(b,d){var c=l;l+=d;return b.substring(c,l)}function f(b){b=k(b,4);return b.charCodeAt(3)+(b.charCodeAt(2)<<8)+(b.charCodeAt(1)<<16)+(b.charCodeAt(0)<<24)}function m(b){return String.fromCharCode(b>>24&255,b>>16&255,b>>8&255,b&255)}b=b.substring(b.indexOf(",")+1);b=window.atob?atob(b):Base64.decode(b,!0);
+var l=0;if(k(b,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=e&&e();else if(k(b,4),"IHDR"!=k(b,4))null!=e&&e();else{k(b,17);e=b.substring(0,l);do{var p=f(b);if("IDAT"==k(b,4)){e=b.substring(0,l-8);"pHYs"==d&&"dpi"==c?(c=Math.round(g/.0254),c=m(c)+m(c)+String.fromCharCode(1)):c=c+String.fromCharCode(0)+("zTXt"==d?String.fromCharCode(0):"")+g;g=4294967295;g=Editor.updateCRC(g,d,0,4);g=Editor.updateCRC(g,c,0,c.length);e+=m(c.length)+d+c+m(g^4294967295);e+=b.substring(l-8,
+b.length);break}e+=b.substring(l-8,l-4+p);k(b,p);k(b,4)}while(p);return"data:image/png;base64,"+(window.btoa?btoa(e):Base64.encode(e,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.diagrams.net/doc/faq/save-file-formats";var d=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(b,c){d.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var k=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){k.apply(this,
arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(b,d){var c=null;null!=b.editor.graph.getModel().getParent(d)?c=d.getId():null!=b.currentPage&&(c=b.currentPage.getId());return c});if(null!=window.StyleFormatPanel){var g=Format.prototype.init;Format.prototype.init=function(){g.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded",this.update)};var p=Format.prototype.refresh;Format.prototype.refresh=
function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?p.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isShadowOptionVisible=function(){var b=this.editorUi.getCurrentFile();return"1"==urlParams.embed||null!=b&&b.isEditable()};DiagramFormatPanel.prototype.isMathOptionVisible=function(b){return!1};var m=DiagramFormatPanel.prototype.addView;DiagramFormatPanel.prototype.addView=function(b){b=m.apply(this,arguments);this.editorUi.getCurrentFile();
if(mxClient.IS_SVG&&this.isShadowOptionVisible()){var d=this.editorUi,c=d.editor.graph,g=this.createOption(mxResources.get("shadow"),function(){return c.shadowVisible},function(b){var g=new ChangePageSetup(d);g.ignoreColor=!0;g.ignoreImage=!0;g.shadowVisible=b;c.model.execute(g)},{install:function(b){this.listener=function(){b(c.shadowVisible)};d.addListener("shadowVisibleChanged",this.listener)},destroy:function(){d.removeListener(this.listener)}});Editor.enableShadowOption||(g.getElementsByTagName("input")[0].setAttribute("disabled",
-"disabled"),mxUtils.setOpacity(g,60));b.appendChild(g)}return b};var v=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(b){b=v.apply(this,arguments);var d=this.editorUi,c=d.editor.graph;if(c.isEnabled()){var g=d.getCurrentFile();if(null!=g&&g.isAutosaveOptional()){var e=this.createOption(mxResources.get("autosave"),function(){return d.editor.autosave},function(b){d.editor.setAutosave(b);d.editor.autosave&&g.isModified()&&g.fileChanged()},{install:function(b){this.listener=
+"disabled"),mxUtils.setOpacity(g,60));b.appendChild(g)}return b};var u=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(b){b=u.apply(this,arguments);var d=this.editorUi,c=d.editor.graph;if(c.isEnabled()){var g=d.getCurrentFile();if(null!=g&&g.isAutosaveOptional()){var e=this.createOption(mxResources.get("autosave"),function(){return d.editor.autosave},function(b){d.editor.setAutosave(b);d.editor.autosave&&g.isModified()&&g.fileChanged()},{install:function(b){this.listener=
function(){b(d.editor.autosave)};d.editor.addListener("autosaveChanged",this.listener)},destroy:function(){d.editor.removeListener(this.listener)}});b.appendChild(e)}}if(this.isMathOptionVisible()&&c.isEnabled()&&"undefined"!==typeof MathJax){e=this.createOption(mxResources.get("mathematicalTypesetting"),function(){return c.mathEnabled},function(b){d.actions.get("mathematicalTypesetting").funct()},{install:function(b){this.listener=function(){b(c.mathEnabled)};d.addListener("mathEnabledChanged",this.listener)},
destroy:function(){d.removeListener(this.listener)}});e.style.paddingTop="5px";b.appendChild(e);var k=d.menus.createHelpLink("https://www.diagrams.net/doc/faq/math-typesetting");k.style.position="relative";k.style.marginLeft="6px";k.style.top="2px";e.appendChild(k)}return b};mxCellRenderer.prototype.defaultVertexShape.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"absoluteArcSize",dispName:"Abs. Arc Size",type:"bool",defVal:!1}];
mxCellRenderer.defaultShapes.link.prototype.customProperties=[{name:"width",dispName:"Width",type:"float",min:0,defVal:4}];mxCellRenderer.defaultShapes.flexArrow.prototype.customProperties=[{name:"width",dispName:"Width",type:"float",min:0,defVal:10},{name:"startWidth",dispName:"Start Width",type:"float",min:0,defVal:20},{name:"endWidth",dispName:"End Width",type:"float",min:0,defVal:20}];mxCellRenderer.defaultShapes.process.prototype.customProperties=[{name:"size",dispName:"Indent",type:"float",
@@ -3291,36 +3291,36 @@ stroke:"#3700CC",font:"#ffffff"},{fill:"#d80073",stroke:"#A50040",font:"#ffffff"
font:"#ffffff"}],[{fill:"",stroke:""},{fill:mxConstants.NONE,stroke:""},{fill:"#fad7ac",stroke:"#b46504"},{fill:"#fad9d5",stroke:"#ae4132"},{fill:"#b0e3e6",stroke:"#0e8088"},{fill:"#b1ddf0",stroke:"#10739e"},{fill:"#d0cee2",stroke:"#56517e"},{fill:"#bac8d3",stroke:"#23445d"}],[{fill:"",stroke:""},{fill:"#f5f5f5",stroke:"#666666",gradient:"#b3b3b3"},{fill:"#dae8fc",stroke:"#6c8ebf",gradient:"#7ea6e0"},{fill:"#d5e8d4",stroke:"#82b366",gradient:"#97d077"},{fill:"#ffcd28",stroke:"#d79b00",gradient:"#ffa500"},
{fill:"#fff2cc",stroke:"#d6b656",gradient:"#ffd966"},{fill:"#f8cecc",stroke:"#b85450",gradient:"#ea6b66"},{fill:"#e6d0de",stroke:"#996185",gradient:"#d5739d"}],[{fill:"",stroke:""},{fill:"#eeeeee",stroke:"#36393d"},{fill:"#f9f7ed",stroke:"#36393d"},{fill:"#ffcc99",stroke:"#36393d"},{fill:"#cce5ff",stroke:"#36393d"},{fill:"#ffff88",stroke:"#36393d"},{fill:"#cdeb8b",stroke:"#36393d"},{fill:"#ffcccc",stroke:"#36393d"}]];StyleFormatPanel.prototype.customColorSchemes=null;StyleFormatPanel.prototype.findCommonProperties=
function(b,d,c){if(null!=d){var g=function(b){if(null!=b)if(c)for(var g=0;g<b.length;g++)d[b[g].name]=b[g];else for(var e in d){for(var k=!1,g=0;g<b.length;g++)if(b[g].name==e&&b[g].type==d[e].type){k=!0;break}k||delete d[e]}},e=this.editorUi.editor.graph.view.getState(b);null!=e&&null!=e.shape&&(e.shape.commonCustomPropAdded||(e.shape.commonCustomPropAdded=!0,e.shape.customProperties=e.shape.customProperties||[],e.cell.vertex?Array.prototype.push.apply(e.shape.customProperties,Editor.commonVertexProperties):
-Array.prototype.push.apply(e.shape.customProperties,Editor.commonEdgeProperties)),g(e.shape.customProperties));b=b.getAttribute("customProperties");if(null!=b)try{g(JSON.parse(b))}catch(aa){}}};var u=StyleFormatPanel.prototype.init;StyleFormatPanel.prototype.init=function(){var b=this.editorUi.getSelectionState();"image"!=b.style.shape&&!b.containsLabel&&0<b.cells.length&&this.container.appendChild(this.addStyles(this.createPanel()));u.apply(this,arguments);if(Editor.enableCustomProperties){for(var d=
+Array.prototype.push.apply(e.shape.customProperties,Editor.commonEdgeProperties)),g(e.shape.customProperties));b=b.getAttribute("customProperties");if(null!=b)try{g(JSON.parse(b))}catch(ka){}}};var v=StyleFormatPanel.prototype.init;StyleFormatPanel.prototype.init=function(){var b=this.editorUi.getSelectionState();"image"!=b.style.shape&&!b.containsLabel&&0<b.cells.length&&this.container.appendChild(this.addStyles(this.createPanel()));v.apply(this,arguments);if(Editor.enableCustomProperties){for(var d=
{},c=b.vertices,g=b.edges,e=0;e<c.length;e++)this.findCommonProperties(c[e],d,0==e);for(e=0;e<g.length;e++)this.findCommonProperties(g[e],d,0==c.length&&0==e);null!=Object.getOwnPropertyNames&&0<Object.getOwnPropertyNames(d).length&&this.container.appendChild(this.addProperties(this.createPanel(),d,b))}};var t=StyleFormatPanel.prototype.addStyleOps;StyleFormatPanel.prototype.addStyleOps=function(b){this.addActions(b,["copyStyle","pasteStyle"]);return t.apply(this,arguments)};EditorUi.prototype.propertiesCollapsed=
!0;StyleFormatPanel.prototype.addProperties=function(b,d,c){function g(b,d,c,g){n.getModel().beginUpdate();try{var e=[],k=[];if(null!=c.index){for(var f=[],m=c.parentRow.nextSibling;m&&m.getAttribute("data-pName")==b;)f.push(m.getAttribute("data-pValue")),m=m.nextSibling;c.index<f.length?null!=g?f.splice(g,1):f[c.index]=d:f.push(d);null!=c.size&&f.length>c.size&&(f=f.slice(0,c.size));d=f.join(",");null!=c.countProperty&&(n.setCellStyles(c.countProperty,f.length,n.getSelectionCells()),e.push(c.countProperty),
-k.push(f.length))}n.setCellStyles(b,d,n.getSelectionCells());e.push(b);k.push(d);if(null!=c.dependentProps)for(b=0;b<c.dependentProps.length;b++){var l=c.dependentPropsDefVal[b],p=c.dependentPropsVals[b];if(p.length>d)p=p.slice(0,d);else for(var t=p.length;t<d;t++)p.push(l);p=p.join(",");n.setCellStyles(c.dependentProps[b],p,n.getSelectionCells());e.push(c.dependentProps[b]);k.push(p)}if("function"==typeof c.onChange)c.onChange(n,d);v.editorUi.fireEvent(new mxEventObject("styleChanged","keys",e,"values",
+k.push(f.length))}n.setCellStyles(b,d,n.getSelectionCells());e.push(b);k.push(d);if(null!=c.dependentProps)for(b=0;b<c.dependentProps.length;b++){var l=c.dependentPropsDefVal[b],p=c.dependentPropsVals[b];if(p.length>d)p=p.slice(0,d);else for(var t=p.length;t<d;t++)p.push(l);p=p.join(",");n.setCellStyles(c.dependentProps[b],p,n.getSelectionCells());e.push(c.dependentProps[b]);k.push(p)}if("function"==typeof c.onChange)c.onChange(n,d);u.editorUi.fireEvent(new mxEventObject("styleChanged","keys",e,"values",
k,"cells",n.getSelectionCells()))}finally{n.getModel().endUpdate()}}function e(d,c,g){var e=mxUtils.getOffset(b,!0),k=mxUtils.getOffset(d,!0);c.style.position="absolute";c.style.left=k.x-e.x+"px";c.style.top=k.y-e.y+"px";c.style.width=d.offsetWidth+"px";c.style.height=d.offsetHeight-(g?4:0)+"px";c.style.zIndex=5}function k(b,d,c){var e=document.createElement("div");e.style.width="32px";e.style.height="4px";e.style.margin="2px";e.style.border="1px solid black";e.style.background=d&&"none"!=d?d:"url('"+
-Dialog.prototype.noColorImage+"')";btn=mxUtils.button("",mxUtils.bind(v,function(k){this.editorUi.pickColor(d,function(d){e.style.background="none"==d?"url('"+Dialog.prototype.noColorImage+"')":d;g(b,d,c)});mxEvent.consume(k)}));btn.style.height="12px";btn.style.width="40px";btn.className="geColorBtn";btn.appendChild(e);return btn}function f(b,d,c,e,k,f,m){null!=d&&(d=d.split(","),t.push({name:b,values:d,type:c,defVal:e,countProperty:k,parentRow:f,isDeletable:!0,flipBkg:m}));btn=mxUtils.button("+",
-mxUtils.bind(v,function(d){for(var l=f,v=0;null!=l.nextSibling;)if(l.nextSibling.getAttribute("data-pName")==b)l=l.nextSibling,v++;else break;var n={type:c,parentRow:f,index:v,isDeletable:!0,defVal:e,countProperty:k},v=p(b,"",n,0==v%2,m);g(b,e,n);l.parentNode.insertBefore(v,l.nextSibling);mxEvent.consume(d)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function m(b,d,c,g,e,k,f){if(0<e){var m=Array(e);d=null!=d?d.split(","):[];for(var l=0;l<e;l++)m[l]=null!=
-d[l]?d[l]:null!=g?g:"";t.push({name:b,values:m,type:c,defVal:g,parentRow:k,flipBkg:f,size:e})}return document.createElement("div")}function l(b,d,c){var e=document.createElement("input");e.type="checkbox";e.checked="1"==d;mxEvent.addListener(e,"change",function(){g(b,e.checked?"1":"0",c)});return e}function p(d,c,p,n,t){var u=p.dispName,x=p.type,y=document.createElement("tr");y.className="gePropRow"+(t?"Dark":"")+(n?"Alt":"")+" gePropNonHeaderRow";y.setAttribute("data-pName",d);y.setAttribute("data-pValue",
-c);n=!1;null!=p.index&&(y.setAttribute("data-index",p.index),u=(null!=u?u:"")+"["+p.index+"]",n=!0);var z=document.createElement("td");z.className="gePropRowCell";u=mxResources.get(u,null,u);mxUtils.write(z,u);z.setAttribute("title",u);n&&(z.style.textAlign="right");y.appendChild(z);z=document.createElement("td");z.className="gePropRowCell";if("color"==x)z.appendChild(k(d,c,p));else if("bool"==x||"boolean"==x)z.appendChild(l(d,c,p));else if("enum"==x){var q=p.enumList;for(t=0;t<q.length;t++)if(u=
-q[t],u.val==c){mxUtils.write(z,mxResources.get(u.dispName,null,u.dispName));break}mxEvent.addListener(z,"click",mxUtils.bind(v,function(){var k=document.createElement("select");e(z,k);for(var f=0;f<q.length;f++){var m=q[f],l=document.createElement("option");l.value=mxUtils.htmlEntities(m.val);mxUtils.write(l,mxResources.get(m.dispName,null,m.dispName));k.appendChild(l)}k.value=c;b.appendChild(k);mxEvent.addListener(k,"change",function(){var b=mxUtils.htmlEntities(k.value);g(d,b,p)});k.focus();mxEvent.addListener(k,
-"blur",function(){b.removeChild(k)})}))}else"dynamicArr"==x?z.appendChild(f(d,c,p.subType,p.subDefVal,p.countProperty,y,t)):"staticArr"==x?z.appendChild(m(d,c,p.subType,p.subDefVal,p.size,y,t)):"readOnly"==x?(t=document.createElement("input"),t.setAttribute("readonly",""),t.value=c,t.style.width="96px",t.style.borderWidth="0px",z.appendChild(t)):(z.innerHTML=mxUtils.htmlEntities(decodeURIComponent(c)),mxEvent.addListener(z,"click",mxUtils.bind(v,function(){function k(){var b=f.value,b=0==b.length&&
-"string"!=x?0:b;p.allowAuto&&(null!=b.trim&&"auto"==b.trim().toLowerCase()?(b="auto",x="string"):(b=parseFloat(b),b=isNaN(b)?0:b));null!=p.min&&b<p.min?b=p.min:null!=p.max&&b>p.max&&(b=p.max);b=encodeURIComponent(("int"==x?parseInt(b):b)+"");g(d,b,p)}var f=document.createElement("input");e(z,f,!0);f.value=decodeURIComponent(c);f.className="gePropEditor";"int"!=x&&"float"!=x||p.allowAuto||(f.type="number",f.step="int"==x?"1":"any",null!=p.min&&(f.min=parseFloat(p.min)),null!=p.max&&(f.max=parseFloat(p.max)));
-b.appendChild(f);mxEvent.addListener(f,"keypress",function(b){13==b.keyCode&&k()});f.focus();mxEvent.addListener(f,"blur",function(){k()})})));p.isDeletable&&(t=mxUtils.button("-",mxUtils.bind(v,function(b){g(d,"",p,p.index);mxEvent.consume(b)})),t.style.height="16px",t.style.width="25px",t.style["float"]="right",t.className="geColorBtn",z.appendChild(t));y.appendChild(z);return y}var v=this,n=this.editorUi.editor.graph,t=[];b.style.position="relative";b.style.padding="0";var x=document.createElement("table");
-x.className="geProperties";x.style.whiteSpace="nowrap";x.style.width="100%";var u=document.createElement("tr");u.className="gePropHeader";var y=document.createElement("th");y.className="gePropHeaderCell";var z=document.createElement("img");z.src=Sidebar.prototype.expandedImage;z.style.verticalAlign="middle";y.appendChild(z);mxUtils.write(y,mxResources.get("property"));u.style.cursor="pointer";var q=function(){var d=x.querySelectorAll(".gePropNonHeaderRow"),c;if(v.editorUi.propertiesCollapsed){z.src=
-Sidebar.prototype.collapsedImage;c="none";for(var g=b.childNodes.length-1;0<=g;g--)try{var e=b.childNodes[g],k=e.nodeName.toUpperCase();"INPUT"!=k&&"SELECT"!=k||b.removeChild(e)}catch(Da){}}else z.src=Sidebar.prototype.expandedImage,c="";for(g=0;g<d.length;g++)d[g].style.display=c};mxEvent.addListener(u,"click",function(){v.editorUi.propertiesCollapsed=!v.editorUi.propertiesCollapsed;q()});u.appendChild(y);y=document.createElement("th");y.className="gePropHeaderCell";y.innerHTML=mxResources.get("value");
-u.appendChild(y);x.appendChild(u);var A=!1,C=!1,u=null;1==c.vertices.length&&0==c.edges.length?u=c.vertices[0].id:0==c.vertices.length&&1==c.edges.length&&(u=c.edges[0].id);null!=u&&x.appendChild(p("id",mxUtils.htmlEntities(u),{dispName:"ID",type:"readOnly"},!0,!1));for(var K in d)if(u=d[K],"function"!=typeof u.isVisible||u.isVisible(c,this)){var G=null!=c.style[K]?mxUtils.htmlEntities(c.style[K]+""):null!=u.getDefaultValue?u.getDefaultValue(c,this):u.defVal;if("separator"==u.type)C=!C;else{if("staticArr"==
-u.type)u.size=parseInt(c.style[u.sizeProperty]||d[u.sizeProperty].defVal)||0;else if(null!=u.dependentProps){for(var P=u.dependentProps,M=[],J=[],y=0;y<P.length;y++){var I=c.style[P[y]];J.push(d[P[y]].subDefVal);M.push(null!=I?I.split(","):[])}u.dependentPropsDefVal=J;u.dependentPropsVals=M}x.appendChild(p(K,G,u,A,C));A=!A}}for(y=0;y<t.length;y++)for(u=t[y],d=u.parentRow,c=0;c<u.values.length;c++)K=p(u.name,u.values[c],{type:u.type,parentRow:u.parentRow,isDeletable:u.isDeletable,index:c,defVal:u.defVal,
-countProperty:u.countProperty,size:u.size},0==c%2,u.flipBkg),d.parentNode.insertBefore(K,d.nextSibling),d=K;b.appendChild(x);q();return b};StyleFormatPanel.prototype.addStyles=function(b){function d(b){mxEvent.addListener(b,"mouseenter",function(){b.style.opacity="1"});mxEvent.addListener(b,"mouseleave",function(){b.style.opacity="0.5"})}var c=this.editorUi,g=c.editor.graph,e=document.createElement("div");e.style.whiteSpace="nowrap";e.style.paddingLeft="24px";e.style.paddingRight="20px";b.style.paddingLeft=
+Dialog.prototype.noColorImage+"')";btn=mxUtils.button("",mxUtils.bind(u,function(k){this.editorUi.pickColor(d,function(d){e.style.background="none"==d?"url('"+Dialog.prototype.noColorImage+"')":d;g(b,d,c)});mxEvent.consume(k)}));btn.style.height="12px";btn.style.width="40px";btn.className="geColorBtn";btn.appendChild(e);return btn}function f(b,d,c,e,k,f,m){null!=d&&(d=d.split(","),t.push({name:b,values:d,type:c,defVal:e,countProperty:k,parentRow:f,isDeletable:!0,flipBkg:m}));btn=mxUtils.button("+",
+mxUtils.bind(u,function(d){for(var l=f,u=0;null!=l.nextSibling;)if(l.nextSibling.getAttribute("data-pName")==b)l=l.nextSibling,u++;else break;var n={type:c,parentRow:f,index:u,isDeletable:!0,defVal:e,countProperty:k},u=p(b,"",n,0==u%2,m);g(b,e,n);l.parentNode.insertBefore(u,l.nextSibling);mxEvent.consume(d)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function m(b,d,c,g,e,k,f){if(0<e){var m=Array(e);d=null!=d?d.split(","):[];for(var l=0;l<e;l++)m[l]=null!=
+d[l]?d[l]:null!=g?g:"";t.push({name:b,values:m,type:c,defVal:g,parentRow:k,flipBkg:f,size:e})}return document.createElement("div")}function l(b,d,c){var e=document.createElement("input");e.type="checkbox";e.checked="1"==d;mxEvent.addListener(e,"change",function(){g(b,e.checked?"1":"0",c)});return e}function p(d,c,p,n,t){var x=p.dispName,v=p.type,y=document.createElement("tr");y.className="gePropRow"+(t?"Dark":"")+(n?"Alt":"")+" gePropNonHeaderRow";y.setAttribute("data-pName",d);y.setAttribute("data-pValue",
+c);n=!1;null!=p.index&&(y.setAttribute("data-index",p.index),x=(null!=x?x:"")+"["+p.index+"]",n=!0);var z=document.createElement("td");z.className="gePropRowCell";x=mxResources.get(x,null,x);mxUtils.write(z,x);z.setAttribute("title",x);n&&(z.style.textAlign="right");y.appendChild(z);z=document.createElement("td");z.className="gePropRowCell";if("color"==v)z.appendChild(k(d,c,p));else if("bool"==v||"boolean"==v)z.appendChild(l(d,c,p));else if("enum"==v){var q=p.enumList;for(t=0;t<q.length;t++)if(x=
+q[t],x.val==c){mxUtils.write(z,mxResources.get(x.dispName,null,x.dispName));break}mxEvent.addListener(z,"click",mxUtils.bind(u,function(){var k=document.createElement("select");e(z,k);for(var f=0;f<q.length;f++){var m=q[f],l=document.createElement("option");l.value=mxUtils.htmlEntities(m.val);mxUtils.write(l,mxResources.get(m.dispName,null,m.dispName));k.appendChild(l)}k.value=c;b.appendChild(k);mxEvent.addListener(k,"change",function(){var b=mxUtils.htmlEntities(k.value);g(d,b,p)});k.focus();mxEvent.addListener(k,
+"blur",function(){b.removeChild(k)})}))}else"dynamicArr"==v?z.appendChild(f(d,c,p.subType,p.subDefVal,p.countProperty,y,t)):"staticArr"==v?z.appendChild(m(d,c,p.subType,p.subDefVal,p.size,y,t)):"readOnly"==v?(t=document.createElement("input"),t.setAttribute("readonly",""),t.value=c,t.style.width="96px",t.style.borderWidth="0px",z.appendChild(t)):(z.innerHTML=mxUtils.htmlEntities(decodeURIComponent(c)),mxEvent.addListener(z,"click",mxUtils.bind(u,function(){function k(){var b=f.value,b=0==b.length&&
+"string"!=v?0:b;p.allowAuto&&(null!=b.trim&&"auto"==b.trim().toLowerCase()?(b="auto",v="string"):(b=parseFloat(b),b=isNaN(b)?0:b));null!=p.min&&b<p.min?b=p.min:null!=p.max&&b>p.max&&(b=p.max);b=encodeURIComponent(("int"==v?parseInt(b):b)+"");g(d,b,p)}var f=document.createElement("input");e(z,f,!0);f.value=decodeURIComponent(c);f.className="gePropEditor";"int"!=v&&"float"!=v||p.allowAuto||(f.type="number",f.step="int"==v?"1":"any",null!=p.min&&(f.min=parseFloat(p.min)),null!=p.max&&(f.max=parseFloat(p.max)));
+b.appendChild(f);mxEvent.addListener(f,"keypress",function(b){13==b.keyCode&&k()});f.focus();mxEvent.addListener(f,"blur",function(){k()})})));p.isDeletable&&(t=mxUtils.button("-",mxUtils.bind(u,function(b){g(d,"",p,p.index);mxEvent.consume(b)})),t.style.height="16px",t.style.width="25px",t.style["float"]="right",t.className="geColorBtn",z.appendChild(t));y.appendChild(z);return y}var u=this,n=this.editorUi.editor.graph,t=[];b.style.position="relative";b.style.padding="0";var v=document.createElement("table");
+v.className="geProperties";v.style.whiteSpace="nowrap";v.style.width="100%";var x=document.createElement("tr");x.className="gePropHeader";var y=document.createElement("th");y.className="gePropHeaderCell";var z=document.createElement("img");z.src=Sidebar.prototype.expandedImage;z.style.verticalAlign="middle";y.appendChild(z);mxUtils.write(y,mxResources.get("property"));x.style.cursor="pointer";var q=function(){var d=v.querySelectorAll(".gePropNonHeaderRow"),c;if(u.editorUi.propertiesCollapsed){z.src=
+Sidebar.prototype.collapsedImage;c="none";for(var g=b.childNodes.length-1;0<=g;g--)try{var e=b.childNodes[g],k=e.nodeName.toUpperCase();"INPUT"!=k&&"SELECT"!=k||b.removeChild(e)}catch(Ga){}}else z.src=Sidebar.prototype.expandedImage,c="";for(g=0;g<d.length;g++)d[g].style.display=c};mxEvent.addListener(x,"click",function(){u.editorUi.propertiesCollapsed=!u.editorUi.propertiesCollapsed;q()});x.appendChild(y);y=document.createElement("th");y.className="gePropHeaderCell";y.innerHTML=mxResources.get("value");
+x.appendChild(y);v.appendChild(x);var B=!1,C=!1,x=null;1==c.vertices.length&&0==c.edges.length?x=c.vertices[0].id:0==c.vertices.length&&1==c.edges.length&&(x=c.edges[0].id);null!=x&&v.appendChild(p("id",mxUtils.htmlEntities(x),{dispName:"ID",type:"readOnly"},!0,!1));for(var M in d)if(x=d[M],"function"!=typeof x.isVisible||x.isVisible(c,this)){var G=null!=c.style[M]?mxUtils.htmlEntities(c.style[M]+""):null!=x.getDefaultValue?x.getDefaultValue(c,this):x.defVal;if("separator"==x.type)C=!C;else{if("staticArr"==
+x.type)x.size=parseInt(c.style[x.sizeProperty]||d[x.sizeProperty].defVal)||0;else if(null!=x.dependentProps){for(var P=x.dependentProps,J=[],N=[],y=0;y<P.length;y++){var H=c.style[P[y]];N.push(d[P[y]].subDefVal);J.push(null!=H?H.split(","):[])}x.dependentPropsDefVal=N;x.dependentPropsVals=J}v.appendChild(p(M,G,x,B,C));B=!B}}for(y=0;y<t.length;y++)for(x=t[y],d=x.parentRow,c=0;c<x.values.length;c++)M=p(x.name,x.values[c],{type:x.type,parentRow:x.parentRow,isDeletable:x.isDeletable,index:c,defVal:x.defVal,
+countProperty:x.countProperty,size:x.size},0==c%2,x.flipBkg),d.parentNode.insertBefore(M,d.nextSibling),d=M;b.appendChild(v);q();return b};StyleFormatPanel.prototype.addStyles=function(b){function d(b){mxEvent.addListener(b,"mouseenter",function(){b.style.opacity="1"});mxEvent.addListener(b,"mouseleave",function(){b.style.opacity="0.5"})}var c=this.editorUi,g=c.editor.graph,e=document.createElement("div");e.style.whiteSpace="nowrap";e.style.paddingLeft="24px";e.style.paddingRight="20px";b.style.paddingLeft=
"16px";b.style.paddingBottom="6px";b.style.position="relative";b.appendChild(e);var k="plain-gray plain-blue plain-green plain-turquoise plain-orange plain-yellow plain-red plain-pink plain-purple gray blue green turquoise orange yellow red pink purple".split(" "),f=document.createElement("div");f.style.whiteSpace="nowrap";f.style.position="relative";f.style.textAlign="center";f.style.width="210px";for(var m=[],l=0;l<this.defaultColorSchemes.length;l++){var p=document.createElement("div");p.style.display=
-"inline-block";p.style.width="6px";p.style.height="6px";p.style.marginLeft="4px";p.style.marginRight="3px";p.style.borderRadius="3px";p.style.cursor="pointer";p.style.background="transparent";p.style.border="1px solid #b5b6b7";mxUtils.bind(this,function(b){mxEvent.addListener(p,"click",mxUtils.bind(this,function(){v(b)}))})(l);m.push(p);f.appendChild(p)}var v=mxUtils.bind(this,function(b){null!=m[b]&&(null!=this.format.currentScheme&&null!=m[this.format.currentScheme]&&(m[this.format.currentScheme].style.background=
+"inline-block";p.style.width="6px";p.style.height="6px";p.style.marginLeft="4px";p.style.marginRight="3px";p.style.borderRadius="3px";p.style.cursor="pointer";p.style.background="transparent";p.style.border="1px solid #b5b6b7";mxUtils.bind(this,function(b){mxEvent.addListener(p,"click",mxUtils.bind(this,function(){u(b)}))})(l);m.push(p);f.appendChild(p)}var u=mxUtils.bind(this,function(b){null!=m[b]&&(null!=this.format.currentScheme&&null!=m[this.format.currentScheme]&&(m[this.format.currentScheme].style.background=
"transparent"),this.format.currentScheme=b,n(this.defaultColorSchemes[this.format.currentScheme]),m[this.format.currentScheme].style.background="#84d7ff")}),n=mxUtils.bind(this,function(b){var d=mxUtils.bind(this,function(b){var d=mxUtils.button("",mxUtils.bind(this,function(d){g.getModel().beginUpdate();try{for(var e=c.getSelectionState().cells,f=0;f<e.length;f++){for(var m=g.getModel().getStyle(e[f]),l=0;l<k.length;l++)m=mxUtils.removeStylename(m,k[l]);var p=g.getModel().isVertex(e[f])?g.defaultVertexStyle:
g.defaultEdgeStyle;null!=b?(mxEvent.isShiftDown(d)||(m=""==b.fill?mxUtils.setStyle(m,mxConstants.STYLE_FILLCOLOR,null):mxUtils.setStyle(m,mxConstants.STYLE_FILLCOLOR,b.fill||mxUtils.getValue(p,mxConstants.STYLE_FILLCOLOR,null)),m=mxUtils.setStyle(m,mxConstants.STYLE_GRADIENTCOLOR,b.gradient||mxUtils.getValue(p,mxConstants.STYLE_GRADIENTCOLOR,null)),mxEvent.isControlDown(d)||mxClient.IS_MAC&&mxEvent.isMetaDown(d)||!g.getModel().isVertex(e[f])||(m=mxUtils.setStyle(m,mxConstants.STYLE_FONTCOLOR,b.font||
mxUtils.getValue(p,mxConstants.STYLE_FONTCOLOR,null)))),mxEvent.isAltDown(d)||(m=""==b.stroke?mxUtils.setStyle(m,mxConstants.STYLE_STROKECOLOR,null):mxUtils.setStyle(m,mxConstants.STYLE_STROKECOLOR,b.stroke||mxUtils.getValue(p,mxConstants.STYLE_STROKECOLOR,null)))):(m=mxUtils.setStyle(m,mxConstants.STYLE_FILLCOLOR,mxUtils.getValue(p,mxConstants.STYLE_FILLCOLOR,"#ffffff")),m=mxUtils.setStyle(m,mxConstants.STYLE_STROKECOLOR,mxUtils.getValue(p,mxConstants.STYLE_STROKECOLOR,"#000000")),m=mxUtils.setStyle(m,
mxConstants.STYLE_GRADIENTCOLOR,mxUtils.getValue(p,mxConstants.STYLE_GRADIENTCOLOR,null)),g.getModel().isVertex(e[f])&&(m=mxUtils.setStyle(m,mxConstants.STYLE_FONTCOLOR,mxUtils.getValue(p,mxConstants.STYLE_FONTCOLOR,null))));g.getModel().setStyle(e[f],m)}}finally{g.getModel().endUpdate()}}));d.className="geStyleButton";d.style.width="36px";d.style.height=10>=this.defaultColorSchemes.length?"24px":"30px";d.style.margin="0px 6px 6px 0px";if(null!=b){var f="1"==urlParams.sketch?"2px solid":"1px solid";
null!=b.gradient?mxClient.IS_IE&&10>document.documentMode?d.style.filter="progid:DXImageTransform.Microsoft.Gradient(StartColorStr='"+b.fill+"', EndColorStr='"+b.gradient+"', GradientType=0)":d.style.backgroundImage="linear-gradient("+b.fill+" 0px,"+b.gradient+" 100%)":b.fill==mxConstants.NONE?d.style.background="url('"+Dialog.prototype.noColorImage+"')":d.style.backgroundColor=""==b.fill?mxUtils.getValue(g.defaultVertexStyle,mxConstants.STYLE_FILLCOLOR,Editor.isDarkMode()?Editor.darkColor:"#ffffff"):
b.fill||mxUtils.getValue(g.defaultVertexStyle,mxConstants.STYLE_FILLCOLOR,Editor.isDarkMode()?Editor.darkColor:"#ffffff");d.style.border=b.stroke==mxConstants.NONE?f+" transparent":""==b.stroke?f+" "+mxUtils.getValue(g.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,Editor.isDarkMode()?"#ffffff":Editor.darkColor):f+" "+(b.stroke||mxUtils.getValue(g.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,Editor.isDarkMode()?"#ffffff":Editor.darkColor));null!=b.title&&d.setAttribute("title",b.title)}else{var f=
-mxUtils.getValue(g.defaultVertexStyle,mxConstants.STYLE_FILLCOLOR,"#ffffff"),m=mxUtils.getValue(g.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,"#000000");d.style.backgroundColor=f;d.style.border="1px solid "+m}d.style.borderRadius="0";e.appendChild(d)});e.innerHTML="";for(var f=0;f<b.length;f++)0<f&&0==mxUtils.mod(f,4)&&mxUtils.br(e),d(b[f])});null==this.format.currentScheme?v(Editor.isDarkMode()?1:"1"==urlParams.sketch?5:0):v(this.format.currentScheme);var l=10>=this.defaultColorSchemes.length?
+mxUtils.getValue(g.defaultVertexStyle,mxConstants.STYLE_FILLCOLOR,"#ffffff"),m=mxUtils.getValue(g.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,"#000000");d.style.backgroundColor=f;d.style.border="1px solid "+m}d.style.borderRadius="0";e.appendChild(d)});e.innerHTML="";for(var f=0;f<b.length;f++)0<f&&0==mxUtils.mod(f,4)&&mxUtils.br(e),d(b[f])});null==this.format.currentScheme?u(Editor.isDarkMode()?1:"1"==urlParams.sketch?5:0):u(this.format.currentScheme);var l=10>=this.defaultColorSchemes.length?
28:8,t=document.createElement("div");t.style.cssText="position:absolute;left:10px;top:8px;bottom:"+l+"px;width:20px;margin:4px;opacity:0.5;background-repeat:no-repeat;background-position:center center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQBAMAAADQT4M0AAAAIVBMVEUAAAB2dnZ4eHh3d3d1dXVxcXF2dnZ2dnZ2dnZxcXF2dnYmb3w1AAAACnRSTlMAfCTkhhvb7cQSPH2JPgAAADRJREFUCNdjwACMAmBKaiGYs2oJmLPKAZ3DabU8AMRTXpUKopislqFyVzCAuUZgikkBZjoAcMYLnp53P/UAAAAASUVORK5CYII=);";mxEvent.addListener(t,
-"click",mxUtils.bind(this,function(){v(mxUtils.mod(this.format.currentScheme-1,this.defaultColorSchemes.length))}));var u=document.createElement("div");u.style.cssText="position:absolute;left:202px;top:8px;bottom:"+l+"px;width:20px;margin:4px;opacity:0.5;background-repeat:no-repeat;background-position:center center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQBAMAAADQT4M0AAAAIVBMVEUAAAB2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnYBuwCcAAAACnRSTlMAfCTkhhvb7cQSPH2JPgAAADZJREFUCNdjQAOMAmBKaiGY8loF5rKswsZlrVo8AUiFrTICcbIWK8A5DF1gDoMymMPApIAwHwCS0Qx/U7qCBQAAAABJRU5ErkJggg==);";
-1<this.defaultColorSchemes.length&&(b.appendChild(t),b.appendChild(u));mxEvent.addListener(u,"click",mxUtils.bind(this,function(){v(mxUtils.mod(this.format.currentScheme+1,this.defaultColorSchemes.length))}));d(t);d(u);n(this.defaultColorSchemes[this.format.currentScheme]);10>=this.defaultColorSchemes.length&&b.appendChild(f);return b};StyleFormatPanel.prototype.addEditOps=function(b){var d=this.editorUi.getSelectionState(),c=this.editorUi.editor.graph,g=null;1==d.cells.length&&(g=mxUtils.button(mxResources.get("editStyle"),
+"click",mxUtils.bind(this,function(){u(mxUtils.mod(this.format.currentScheme-1,this.defaultColorSchemes.length))}));var x=document.createElement("div");x.style.cssText="position:absolute;left:202px;top:8px;bottom:"+l+"px;width:20px;margin:4px;opacity:0.5;background-repeat:no-repeat;background-position:center center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQBAMAAADQT4M0AAAAIVBMVEUAAAB2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnYBuwCcAAAACnRSTlMAfCTkhhvb7cQSPH2JPgAAADZJREFUCNdjQAOMAmBKaiGY8loF5rKswsZlrVo8AUiFrTICcbIWK8A5DF1gDoMymMPApIAwHwCS0Qx/U7qCBQAAAABJRU5ErkJggg==);";
+1<this.defaultColorSchemes.length&&(b.appendChild(t),b.appendChild(x));mxEvent.addListener(x,"click",mxUtils.bind(this,function(){u(mxUtils.mod(this.format.currentScheme+1,this.defaultColorSchemes.length))}));d(t);d(x);n(this.defaultColorSchemes[this.format.currentScheme]);10>=this.defaultColorSchemes.length&&b.appendChild(f);return b};StyleFormatPanel.prototype.addEditOps=function(b){var d=this.editorUi.getSelectionState(),c=this.editorUi.editor.graph,g=null;1==d.cells.length&&(g=mxUtils.button(mxResources.get("editStyle"),
mxUtils.bind(this,function(b){this.editorUi.actions.get("editStyle").funct()})),g.setAttribute("title",mxResources.get("editStyle")+" ("+this.editorUi.actions.get("editStyle").shortcut+")"),g.style.width="210px",g.style.marginBottom="2px",b.appendChild(g));c=1==d.cells.length?c.view.getState(d.cells[0]):null;null!=c&&null!=c.shape&&null!=c.shape.stencil?(d=mxUtils.button(mxResources.get("editShape"),mxUtils.bind(this,function(b){this.editorUi.actions.get("editShape").funct()})),d.setAttribute("title",
mxResources.get("editShape")),d.style.marginBottom="2px",null==g?d.style.width="210px":(g.style.width="104px",d.style.width="104px",d.style.marginLeft="2px"),b.appendChild(d)):d.image&&0<d.cells.length&&(d=mxUtils.button(mxResources.get("editImage"),mxUtils.bind(this,function(b){this.editorUi.actions.get("image").funct()})),d.setAttribute("title",mxResources.get("editImage")),d.style.marginBottom="2px",null==g?d.style.width="210px":(g.style.width="104px",d.style.width="104px",d.style.marginLeft="2px"),
b.appendChild(d));return b}}Graph.fontMapping={"https://fonts.googleapis.com/css?family=Architects+Daughter":'@font-face { font-family: "Architects Daughter"; src: url('+STYLE_PATH+'/fonts/ArchitectsDaughter-Regular.ttf) format("truetype"); }'};Graph.customFontElements={};Graph.recentCustomFonts={};Graph.isGoogleFontUrl=function(b){return b.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS};Graph.isCssFontUrl=function(b){return Graph.isGoogleFontUrl(b)};Graph.createFontElement=function(b,
@@ -3330,41 +3330,41 @@ return b};Graph.getFontUrl=function(b,d){var c=Graph.customFontElements[b.toLowe
mxConstants.STYLE_FONTFAMILY,null);null!=c&&Graph.addFont(c,decodeURIComponent(d))}}return b};Graph.prototype.defaultThemeName="default-style2";Graph.prototype.lastPasteXml=null;Graph.prototype.pasteCounter=0;Graph.prototype.defaultScrollbars="0"!=urlParams.sb;Graph.prototype.defaultPageVisible="0"!=urlParams.pv;Graph.prototype.shadowId="dropShadow";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowBlur="1.7";Graph.prototype.svgShadowSize="3";
Graph.prototype.edgeMode="move"!=urlParams.edge;Graph.prototype.hiddenTags=null;Graph.prototype.defaultMathEnabled=!1;var z=Graph.prototype.init;Graph.prototype.init=function(){function b(b){d=b}z.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var d=null;mxEvent.addListener(this.container,"mouseenter",b);mxEvent.addListener(this.container,"mousemove",b);mxEvent.addListener(this.container,"mouseleave",function(b){d=null});this.isMouseInsertPoint=function(){return null!=
d};var c=this.getInsertPoint;this.getInsertPoint=function(){return null!=d?this.getPointForEvent(d):c.apply(this,arguments)};var g=this.layoutManager.getLayout;this.layoutManager.getLayout=function(b){var d=this.graph.getCellStyle(b);if(null!=d&&"rack"==d.childLayout){var c=new mxStackLayout(this.graph,!1);c.gridSize=null!=d.rackUnitSize?parseFloat(d.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;c.marginLeft=d.marginLeft||0;c.marginRight=d.marginRight||0;c.marginTop=
-d.marginTop||0;c.marginBottom=d.marginBottom||0;c.allowGaps=d.allowGaps||0;c.horizontal="1"==mxUtils.getValue(d,"horizontalRack","0");c.resizeParent=!1;c.fill=!0;return c}return g.apply(this,arguments)};this.updateGlobalUrlVariables()};var y=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(b,d){return Graph.processFontStyle(y.apply(this,arguments))};var F=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(b,d,c,g,e,k,f,m,l,p,
-v){F.apply(this,arguments);Graph.processFontAttributes(v)};var D=mxText.prototype.redraw;mxText.prototype.redraw=function(){D.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(b,d,c){function g(){for(var b=f.getSelectionCells(),d=[],c=0;c<b.length;c++)f.isCellVisible(b[c])&&d.push(b[c]);f.setSelectionCells(d)}function e(b){f.hiddenTags=b?[]:m.slice();g();f.refresh()}function k(b,c){p.innerHTML="";if(0<
-b.length){var k=document.createElement("table");k.setAttribute("cellpadding","2");k.style.boxSizing="border-box";k.style.tableLayout="fixed";k.style.width="100%";var l=document.createElement("tbody");if(null!=b&&0<b.length)for(var v=0;v<b.length;v++)(function(b){var k=0>mxUtils.indexOf(f.hiddenTags,b),p=document.createElement("tr"),v=document.createElement("td");v.style.align="center";v.style.width="16px";var n=document.createElement("img");n.setAttribute("src",k?Editor.visibleImage:Editor.hiddenImage);
-n.setAttribute("title",mxResources.get(k?"hideIt":"show",[b]));mxUtils.setOpacity(n,k?75:25);n.style.verticalAlign="middle";n.style.cursor="pointer";n.style.width="16px";if(d||Editor.isDarkMode())n.style.filter="invert(100%)";v.appendChild(n);mxEvent.addListener(n,"click",function(d){var c=mxUtils.indexOf(f.hiddenTags,b);mxEvent.isShiftDown(d)?e(0<=mxUtils.indexOf(f.hiddenTags,b)):(0>c?f.hiddenTags.push(b):0<=c&&f.hiddenTags.splice(c,1),g(),f.refresh());mxEvent.consume(d)});p.appendChild(v);v=document.createElement("td");
-v.style.overflow="hidden";v.style.whiteSpace="nowrap";v.style.textOverflow="ellipsis";v.style.verticalAlign="middle";v.style.cursor="pointer";v.setAttribute("title",b);a=document.createElement("a");mxUtils.write(a,b);a.style.textOverflow="ellipsis";a.style.position="relative";mxUtils.setOpacity(a,k?100:40);v.appendChild(a);mxEvent.addListener(v,"click",function(d){if(mxEvent.isShiftDown(d)){e(!0);var c=f.getCellsForTags([b],null,null,!0);f.isEnabled()?f.setSelectionCells(c):f.highlightCells(c)}else if(k&&
-0<f.hiddenTags.length)e(!0);else{var c=m.slice(),l=mxUtils.indexOf(c,b);c.splice(l,1);f.hiddenTags=c;g();f.refresh()}mxEvent.consume(d)});p.appendChild(v);if(f.isEnabled()){v=document.createElement("td");v.style.verticalAlign="middle";v.style.textAlign="center";v.style.width="18px";if(null==c){v.style.align="center";v.style.width="16px";n=document.createElement("img");n.setAttribute("src",Editor.crossImage);n.setAttribute("title",mxResources.get("removeIt",[b]));mxUtils.setOpacity(n,k?75:25);n.style.verticalAlign=
-"middle";n.style.cursor="pointer";n.style.width="16px";if(d||Editor.isDarkMode())n.style.filter="invert(100%)";mxEvent.addListener(n,"click",function(d){var c=mxUtils.indexOf(m,b);0<=c&&m.splice(c,1);f.removeTagsForCells(f.model.getDescendants(f.model.getRoot()),[b]);f.refresh();mxEvent.consume(d)});v.appendChild(n)}else{var t=document.createElement("input");t.setAttribute("type","checkbox");t.style.margin="0px";t.defaultChecked=null!=c&&0<=mxUtils.indexOf(c,b);t.checked=t.defaultChecked;t.style.background=
-"transparent";t.setAttribute("title",mxResources.get(t.defaultChecked?"removeIt":"add",[b]));mxEvent.addListener(t,"change",function(d){t.checked?f.addTagsForCells(f.getSelectionCells(),[b]):f.removeTagsForCells(f.getSelectionCells(),[b]);mxEvent.consume(d)});v.appendChild(t)}p.appendChild(v)}l.appendChild(p)})(b[v]);k.appendChild(l);p.appendChild(k)}}var f=this,m=f.hiddenTags.slice(),l=document.createElement("div");l.style.userSelect="none";l.style.overflow="hidden";l.style.padding="10px";l.style.height=
-"100%";var p=document.createElement("div");p.style.boxSizing="border-box";p.style.borderRadius="4px";p.style.userSelect="none";p.style.overflow="auto";p.style.position="absolute";p.style.left="10px";p.style.right="10px";p.style.top="10px";p.style.border=f.isEnabled()?"1px solid #808080":"none";p.style.bottom=f.isEnabled()?"48px":"10px";l.appendChild(p);var v=mxUtils.button(mxResources.get("reset"),function(b){f.hiddenTags=[];mxEvent.isShiftDown(b)||(m=f.hiddenTags.slice());g();f.refresh()});v.setAttribute("title",
-mxResources.get("reset"));v.className="geBtn";v.style.margin="0 4px 0 0";var n=mxUtils.button(mxResources.get("add"),function(){null!=c&&c(m,function(b){m=b;t()})});n.setAttribute("title",mxResources.get("add"));n.className="geBtn";n.style.margin="0";f.addListener(mxEvent.ROOT,function(){m=f.hiddenTags.slice()});var t=mxUtils.bind(this,function(d,c){if(b()){for(var g=f.getAllTags(),e=0;e<g.length;e++)0>mxUtils.indexOf(m,g[e])&&m.push(g[e]);m.sort();f.isSelectionEmpty()?k(m):k(m,f.getCommonTagsForCells(f.getSelectionCells()))}});
-f.selectionModel.addListener(mxEvent.CHANGE,t);f.model.addListener(mxEvent.CHANGE,t);f.addListener(mxEvent.REFRESH,t);var u=document.createElement("div");u.style.boxSizing="border-box";u.style.whiteSpace="nowrap";u.style.position="absolute";u.style.overflow="hidden";u.style.bottom="0px";u.style.height="42px";u.style.right="10px";u.style.left="10px";f.isEnabled()&&(u.appendChild(v),u.appendChild(n),l.appendChild(u));return{div:l,refresh:t}};Graph.prototype.getCustomFonts=function(){var b=this.extFonts,
-b=null!=b?b.slice():[],d;for(d in Graph.customFontElements){var c=Graph.customFontElements[d];b.push({name:c.name,url:c.url})}return b};Graph.prototype.setFont=function(b,d){Graph.addFont(b,d);document.execCommand("fontname",!1,b);if(null!=d){var c=this.cellEditor.textarea.getElementsByTagName("font");d=Graph.getFontUrl(b,d);for(var g=0;g<c.length;g++)c[g].getAttribute("face")==b&&c[g].getAttribute("data-font-src")!=d&&c[g].setAttribute("data-font-src",d)}};var E=Graph.prototype.isFastZoomEnabled;
-Graph.prototype.isFastZoomEnabled=function(){return E.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=function(){this.globalVars=Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=null!=this.globalVars?mxUtils.clone(this.globalVars):{};var b=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=b)for(var d in b)this.globalVars[d]=b[d]}catch(J){null!=window.console&&console.log("Error in vars URL parameter: "+J)}};Graph.prototype.getExportVariables=
-function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var H=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(b){var d=H.apply(this,arguments);null==d&&null!=this.globalVars&&(d=this.globalVars[b]);return d};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var b=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(b.ownerDocument)).decode(b)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};
-var N=Graph.prototype.getSvg;Graph.prototype.getSvg=function(b,d,c,g,e,k,f,m,l,p,v,n,t,u){var y=null,x=null,z=null;n||null==this.themes||"darkTheme"!=this.defaultThemeName||(y=this.stylesheet,x=this.shapeForegroundColor,z=this.shapeBackgroundColor,this.shapeForegroundColor="darkTheme"==this.defaultThemeName?"#000000":Editor.lightColor,this.shapeBackgroundColor="darkTheme"==this.defaultThemeName?"#ffffff":Editor.darkColor,this.stylesheet=this.getDefaultStylesheet(),this.refresh());var q=N.apply(this,
-arguments),A=this.getCustomFonts();if(v&&0<A.length){var K=q.ownerDocument,C=null!=K.createElementNS?K.createElementNS(mxConstants.NS_SVG,"style"):K.createElement("style");null!=K.setAttributeNS?C.setAttributeNS("type","text/css"):C.setAttribute("type","text/css");for(var G="",P="",M=0;M<A.length;M++){var I=A[M].name,F=A[M].url;Graph.isCssFontUrl(F)?G+="@import url("+F+");\n":P+='@font-face {\nfont-family: "'+I+'";\nsrc: url("'+F+'");\n}\n'}C.appendChild(K.createTextNode(G+P));q.getElementsByTagName("defs")[0].appendChild(C)}null!=
-y&&(this.shapeBackgroundColor=z,this.shapeForegroundColor=x,this.stylesheet=y,this.refresh());return q};var A=Graph.prototype.createSvgImageExport;Graph.prototype.createSvgImageExport=function(){var b=A.apply(this,arguments);if(this.mathEnabled){var d=b.drawText;b.drawText=function(b,c){if(null!=b.text&&null!=b.text.value&&b.text.checkBounds()&&(mxUtils.isNode(b.text.value)||b.text.dialect==mxConstants.DIALECT_STRICTHTML)){var g=b.text.getContentNode();if(null!=g){g=g.cloneNode(!0);if(g.getElementsByTagNameNS)for(var e=
+d.marginTop||0;c.marginBottom=d.marginBottom||0;c.allowGaps=d.allowGaps||0;c.horizontal="1"==mxUtils.getValue(d,"horizontalRack","0");c.resizeParent=!1;c.fill=!0;return c}return g.apply(this,arguments)};this.updateGlobalUrlVariables()};var y=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(b,d){return Graph.processFontStyle(y.apply(this,arguments))};var I=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(b,d,c,g,e,k,f,m,l,p,
+u){I.apply(this,arguments);Graph.processFontAttributes(u)};var D=mxText.prototype.redraw;mxText.prototype.redraw=function(){D.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(b,d,c){function g(){for(var b=f.getSelectionCells(),d=[],c=0;c<b.length;c++)f.isCellVisible(b[c])&&d.push(b[c]);f.setSelectionCells(d)}function e(b){f.hiddenTags=b?[]:m.slice();g();f.refresh()}function k(b,c){p.innerHTML="";if(0<
+b.length){var k=document.createElement("table");k.setAttribute("cellpadding","2");k.style.boxSizing="border-box";k.style.tableLayout="fixed";k.style.width="100%";var l=document.createElement("tbody");if(null!=b&&0<b.length)for(var u=0;u<b.length;u++)(function(b){var k=0>mxUtils.indexOf(f.hiddenTags,b),p=document.createElement("tr"),u=document.createElement("td");u.style.align="center";u.style.width="16px";var n=document.createElement("img");n.setAttribute("src",k?Editor.visibleImage:Editor.hiddenImage);
+n.setAttribute("title",mxResources.get(k?"hideIt":"show",[b]));mxUtils.setOpacity(n,k?75:25);n.style.verticalAlign="middle";n.style.cursor="pointer";n.style.width="16px";if(d||Editor.isDarkMode())n.style.filter="invert(100%)";u.appendChild(n);mxEvent.addListener(n,"click",function(d){var c=mxUtils.indexOf(f.hiddenTags,b);mxEvent.isShiftDown(d)?e(0<=mxUtils.indexOf(f.hiddenTags,b)):(0>c?f.hiddenTags.push(b):0<=c&&f.hiddenTags.splice(c,1),g(),f.refresh());mxEvent.consume(d)});p.appendChild(u);u=document.createElement("td");
+u.style.overflow="hidden";u.style.whiteSpace="nowrap";u.style.textOverflow="ellipsis";u.style.verticalAlign="middle";u.style.cursor="pointer";u.setAttribute("title",b);a=document.createElement("a");mxUtils.write(a,b);a.style.textOverflow="ellipsis";a.style.position="relative";mxUtils.setOpacity(a,k?100:40);u.appendChild(a);mxEvent.addListener(u,"click",function(d){if(mxEvent.isShiftDown(d)){e(!0);var c=f.getCellsForTags([b],null,null,!0);f.isEnabled()?f.setSelectionCells(c):f.highlightCells(c)}else if(k&&
+0<f.hiddenTags.length)e(!0);else{var c=m.slice(),l=mxUtils.indexOf(c,b);c.splice(l,1);f.hiddenTags=c;g();f.refresh()}mxEvent.consume(d)});p.appendChild(u);if(f.isEnabled()){u=document.createElement("td");u.style.verticalAlign="middle";u.style.textAlign="center";u.style.width="18px";if(null==c){u.style.align="center";u.style.width="16px";n=document.createElement("img");n.setAttribute("src",Editor.crossImage);n.setAttribute("title",mxResources.get("removeIt",[b]));mxUtils.setOpacity(n,k?75:25);n.style.verticalAlign=
+"middle";n.style.cursor="pointer";n.style.width="16px";if(d||Editor.isDarkMode())n.style.filter="invert(100%)";mxEvent.addListener(n,"click",function(d){var c=mxUtils.indexOf(m,b);0<=c&&m.splice(c,1);f.removeTagsForCells(f.model.getDescendants(f.model.getRoot()),[b]);f.refresh();mxEvent.consume(d)});u.appendChild(n)}else{var t=document.createElement("input");t.setAttribute("type","checkbox");t.style.margin="0px";t.defaultChecked=null!=c&&0<=mxUtils.indexOf(c,b);t.checked=t.defaultChecked;t.style.background=
+"transparent";t.setAttribute("title",mxResources.get(t.defaultChecked?"removeIt":"add",[b]));mxEvent.addListener(t,"change",function(d){t.checked?f.addTagsForCells(f.getSelectionCells(),[b]):f.removeTagsForCells(f.getSelectionCells(),[b]);mxEvent.consume(d)});u.appendChild(t)}p.appendChild(u)}l.appendChild(p)})(b[u]);k.appendChild(l);p.appendChild(k)}}var f=this,m=f.hiddenTags.slice(),l=document.createElement("div");l.style.userSelect="none";l.style.overflow="hidden";l.style.padding="10px";l.style.height=
+"100%";var p=document.createElement("div");p.style.boxSizing="border-box";p.style.borderRadius="4px";p.style.userSelect="none";p.style.overflow="auto";p.style.position="absolute";p.style.left="10px";p.style.right="10px";p.style.top="10px";p.style.border=f.isEnabled()?"1px solid #808080":"none";p.style.bottom=f.isEnabled()?"48px":"10px";l.appendChild(p);var u=mxUtils.button(mxResources.get("reset"),function(b){f.hiddenTags=[];mxEvent.isShiftDown(b)||(m=f.hiddenTags.slice());g();f.refresh()});u.setAttribute("title",
+mxResources.get("reset"));u.className="geBtn";u.style.margin="0 4px 0 0";var n=mxUtils.button(mxResources.get("add"),function(){null!=c&&c(m,function(b){m=b;t()})});n.setAttribute("title",mxResources.get("add"));n.className="geBtn";n.style.margin="0";f.addListener(mxEvent.ROOT,function(){m=f.hiddenTags.slice()});var t=mxUtils.bind(this,function(d,c){if(b()){for(var g=f.getAllTags(),e=0;e<g.length;e++)0>mxUtils.indexOf(m,g[e])&&m.push(g[e]);m.sort();f.isSelectionEmpty()?k(m):k(m,f.getCommonTagsForCells(f.getSelectionCells()))}});
+f.selectionModel.addListener(mxEvent.CHANGE,t);f.model.addListener(mxEvent.CHANGE,t);f.addListener(mxEvent.REFRESH,t);var v=document.createElement("div");v.style.boxSizing="border-box";v.style.whiteSpace="nowrap";v.style.position="absolute";v.style.overflow="hidden";v.style.bottom="0px";v.style.height="42px";v.style.right="10px";v.style.left="10px";f.isEnabled()&&(v.appendChild(u),v.appendChild(n),l.appendChild(v));return{div:l,refresh:t}};Graph.prototype.getCustomFonts=function(){var b=this.extFonts,
+b=null!=b?b.slice():[],d;for(d in Graph.customFontElements){var c=Graph.customFontElements[d];b.push({name:c.name,url:c.url})}return b};Graph.prototype.setFont=function(b,d){Graph.addFont(b,d);document.execCommand("fontname",!1,b);if(null!=d){var c=this.cellEditor.textarea.getElementsByTagName("font");d=Graph.getFontUrl(b,d);for(var g=0;g<c.length;g++)c[g].getAttribute("face")==b&&c[g].getAttribute("data-font-src")!=d&&c[g].setAttribute("data-font-src",d)}};var F=Graph.prototype.isFastZoomEnabled;
+Graph.prototype.isFastZoomEnabled=function(){return F.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=function(){this.globalVars=Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=null!=this.globalVars?mxUtils.clone(this.globalVars):{};var b=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=b)for(var d in b)this.globalVars[d]=b[d]}catch(J){null!=window.console&&console.log("Error in vars URL parameter: "+J)}};Graph.prototype.getExportVariables=
+function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var E=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(b){var d=E.apply(this,arguments);null==d&&null!=this.globalVars&&(d=this.globalVars[b]);return d};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var b=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(b.ownerDocument)).decode(b)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};
+var O=Graph.prototype.getSvg;Graph.prototype.getSvg=function(b,d,c,g,e,k,f,m,l,p,u,n,t,v){var x=null,y=null,z=null;n||null==this.themes||"darkTheme"!=this.defaultThemeName||(x=this.stylesheet,y=this.shapeForegroundColor,z=this.shapeBackgroundColor,this.shapeForegroundColor="darkTheme"==this.defaultThemeName?"#000000":Editor.lightColor,this.shapeBackgroundColor="darkTheme"==this.defaultThemeName?"#ffffff":Editor.darkColor,this.stylesheet=this.getDefaultStylesheet(),this.refresh());var q=O.apply(this,
+arguments),B=this.getCustomFonts();if(u&&0<B.length){var M=q.ownerDocument,C=null!=M.createElementNS?M.createElementNS(mxConstants.NS_SVG,"style"):M.createElement("style");null!=M.setAttributeNS?C.setAttributeNS("type","text/css"):C.setAttribute("type","text/css");for(var K="",G="",P=0;P<B.length;P++){var N=B[P].name,H=B[P].url;Graph.isCssFontUrl(H)?K+="@import url("+H+");\n":G+='@font-face {\nfont-family: "'+N+'";\nsrc: url("'+H+'");\n}\n'}C.appendChild(M.createTextNode(K+G));q.getElementsByTagName("defs")[0].appendChild(C)}null!=
+x&&(this.shapeBackgroundColor=z,this.shapeForegroundColor=y,this.stylesheet=x,this.refresh());return q};var B=Graph.prototype.createSvgImageExport;Graph.prototype.createSvgImageExport=function(){var b=B.apply(this,arguments);if(this.mathEnabled){var d=b.drawText;b.drawText=function(b,c){if(null!=b.text&&null!=b.text.value&&b.text.checkBounds()&&(mxUtils.isNode(b.text.value)||b.text.dialect==mxConstants.DIALECT_STRICTHTML)){var g=b.text.getContentNode();if(null!=g){g=g.cloneNode(!0);if(g.getElementsByTagNameNS)for(var e=
g.getElementsByTagNameNS("http://www.w3.org/1998/Math/MathML","math");0<e.length;)e[0].parentNode.removeChild(e[0]);null!=g.innerHTML&&(e=b.text.value,b.text.value=g.innerHTML,d.apply(this,arguments),b.text.value=e)}}else d.apply(this,arguments)}}return b};var G=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(b){G.apply(this,arguments);null!=b.secondLabel&&(b.secondLabel.destroy(),b.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(b){return[b.shape,
-b.text,b.secondLabel,b.control]};var I=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){I.apply(this,arguments);this.enumerationState=0};var L=mxGraphView.prototype.stateValidated;mxGraphView.prototype.stateValidated=function(b){null!=b.shape&&this.redrawEnumerationState(b);return L.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(b){b=decodeURIComponent(mxUtils.getValue(b.style,"enumerateValue",""));""==b&&(b=++this.enumerationState);
+b.text,b.secondLabel,b.control]};var H=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){H.apply(this,arguments);this.enumerationState=0};var L=mxGraphView.prototype.stateValidated;mxGraphView.prototype.stateValidated=function(b){null!=b.shape&&this.redrawEnumerationState(b);return L.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(b){b=decodeURIComponent(mxUtils.getValue(b.style,"enumerateValue",""));""==b&&(b=++this.enumerationState);
return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(b)+"</div>"};mxGraphView.prototype.redrawEnumerationState=function(b){var d="1"==mxUtils.getValue(b.style,"enumerate",0);d&&null==b.secondLabel?(b.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),b.secondLabel.size=12,b.secondLabel.state=b,b.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(b,b.secondLabel)):
-d||null==b.secondLabel||(b.secondLabel.destroy(),b.secondLabel=null);d=b.secondLabel;if(null!=d){var c=b.view.scale,g=this.createEnumerationValue(b);b=this.graph.model.isVertex(b.cell)?new mxRectangle(b.x+b.width-4*c,b.y+4*c,0,0):mxRectangle.fromPoint(b.view.getPoint(b));d.bounds.equals(b)&&d.value==g&&d.scale==c||(d.bounds=b,d.value=g,d.scale=c,d.redraw())}};var M=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){M.apply(this,arguments);if(mxClient.IS_GC&&
+d||null==b.secondLabel||(b.secondLabel.destroy(),b.secondLabel=null);d=b.secondLabel;if(null!=d){var c=b.view.scale,g=this.createEnumerationValue(b);b=this.graph.model.isVertex(b.cell)?new mxRectangle(b.x+b.width-4*c,b.y+4*c,0,0):mxRectangle.fromPoint(b.view.getPoint(b));d.bounds.equals(b)&&d.value==g&&d.scale==c||(d.bounds=b,d.value=g,d.scale=c,d.redraw())}};var N=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){N.apply(this,arguments);if(mxClient.IS_GC&&
null!=this.getDrawPane()){var b=this.getDrawPane().parentNode;!this.graph.mathEnabled||mxClient.NO_FO||null!=this.webKitForceRepaintNode&&null!=this.webKitForceRepaintNode.parentNode||"svg"!=this.graph.container.firstChild.nodeName?null==this.webKitForceRepaintNode||this.graph.mathEnabled&&("svg"==this.graph.container.firstChild.nodeName||this.graph.container.firstChild==this.webKitForceRepaintNode)||(null!=this.webKitForceRepaintNode.parentNode&&this.webKitForceRepaintNode.parentNode.removeChild(this.webKitForceRepaintNode),
-this.webKitForceRepaintNode=null):(this.webKitForceRepaintNode=document.createElement("div"),this.webKitForceRepaintNode.style.cssText="position:absolute;",b.ownerSVGElement.parentNode.insertBefore(this.webKitForceRepaintNode,b.ownerSVGElement))}};var K=Graph.prototype.refresh;Graph.prototype.refresh=function(){K.apply(this,arguments);this.refreshBackgroundImage()};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),
+this.webKitForceRepaintNode=null):(this.webKitForceRepaintNode=document.createElement("div"),this.webKitForceRepaintNode.style.cssText="position:absolute;",b.ownerSVGElement.parentNode.insertBefore(this.webKitForceRepaintNode,b.ownerSVGElement))}};var M=Graph.prototype.refresh;Graph.prototype.refresh=function(){M.apply(this,arguments);this.refreshBackgroundImage()};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),
this.view.validateBackgroundImage())};var P=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){P.apply(this,arguments);this.currentStyle="default-style2"};Graph.prototype.handleCustomLink=function(b){"data:action/json,"==b.substring(0,17)&&(b=JSON.parse(b.substring(17)),null!=b.actions&&this.executeCustomActions(b.actions))};Graph.prototype.executeCustomActions=function(b,d){if(this.executingCustomActions)this.stoppingCustomActions=!0,null!=this.pendingWaitThread&&window.clearTimeout(this.pendingWaitThread),
-null!=this.pendingExecuteNextAction&&this.pendingExecuteNextAction(),this.fireEvent(new mxEventObject("stopExecutingCustomActions"));else{this.executingCustomActions=!0;var c=!1,g=0,e=0,k=mxUtils.bind(this,function(){c||(c=!0,this.model.beginUpdate())}),f=mxUtils.bind(this,function(){c&&(c=!1,this.model.endUpdate())}),m=mxUtils.bind(this,function(){0<g&&g--;0==g&&l()}),l=mxUtils.bind(this,function(){if(e<b.length){var c=this.stoppingCustomActions,p=b[e++],v=[];if(null!=p.open)if(f(),this.isCustomLink(p.open)){if(!this.customLinkClicked(p.open))return}else this.openLink(p.open);
+null!=this.pendingExecuteNextAction&&this.pendingExecuteNextAction(),this.fireEvent(new mxEventObject("stopExecutingCustomActions"));else{this.executingCustomActions=!0;var c=!1,g=0,e=0,k=mxUtils.bind(this,function(){c||(c=!0,this.model.beginUpdate())}),f=mxUtils.bind(this,function(){c&&(c=!1,this.model.endUpdate())}),m=mxUtils.bind(this,function(){0<g&&g--;0==g&&l()}),l=mxUtils.bind(this,function(){if(e<b.length){var c=this.stoppingCustomActions,p=b[e++],u=[];if(null!=p.open)if(f(),this.isCustomLink(p.open)){if(!this.customLinkClicked(p.open))return}else this.openLink(p.open);
null==p.wait||c||(this.pendingExecuteNextAction=mxUtils.bind(this,function(){this.pendingWaitThread=this.pendingExecuteNextAction=null;m()}),g++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,""!=p.wait?parseInt(p.wait):1E3),f());null!=p.opacity&&null!=p.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(p.opacity,!0)),p.opacity.value);null!=p.fadeIn&&(g++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(p.fadeIn,!0)),0,1,m,c?0:
-p.fadeIn.delay));null!=p.fadeOut&&(g++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(p.fadeOut,!0)),1,0,m,c?0:p.fadeOut.delay));null!=p.wipeIn&&(v=v.concat(this.createWipeAnimations(this.getCellsForAction(p.wipeIn,!0),!0)));null!=p.wipeOut&&(v=v.concat(this.createWipeAnimations(this.getCellsForAction(p.wipeOut,!0),!1)));null!=p.toggle&&(k(),this.toggleCells(this.getCellsForAction(p.toggle,!0)));if(null!=p.show){k();var n=this.getCellsForAction(p.show,!0);Graph.setOpacityForNodes(this.getNodesForCells(n),
+p.fadeIn.delay));null!=p.fadeOut&&(g++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(p.fadeOut,!0)),1,0,m,c?0:p.fadeOut.delay));null!=p.wipeIn&&(u=u.concat(this.createWipeAnimations(this.getCellsForAction(p.wipeIn,!0),!0)));null!=p.wipeOut&&(u=u.concat(this.createWipeAnimations(this.getCellsForAction(p.wipeOut,!0),!1)));null!=p.toggle&&(k(),this.toggleCells(this.getCellsForAction(p.toggle,!0)));if(null!=p.show){k();var n=this.getCellsForAction(p.show,!0);Graph.setOpacityForNodes(this.getNodesForCells(n),
1);this.setCellsVisible(n,!0)}null!=p.hide&&(k(),n=this.getCellsForAction(p.hide,!0),Graph.setOpacityForNodes(this.getNodesForCells(n),0),this.setCellsVisible(n,!1));null!=p.toggleStyle&&null!=p.toggleStyle.key&&(k(),this.toggleCellStyles(p.toggleStyle.key,null!=p.toggleStyle.defaultValue?p.toggleStyle.defaultValue:"0",this.getCellsForAction(p.toggleStyle,!0)));null!=p.style&&null!=p.style.key&&(k(),this.setCellStyles(p.style.key,p.style.value,this.getCellsForAction(p.style,!0)));n=[];null!=p.select&&
this.isEnabled()&&(n=this.getCellsForAction(p.select),this.setSelectionCells(n));null!=p.highlight&&(n=this.getCellsForAction(p.highlight),this.highlightCells(n,p.highlight.color,p.highlight.duration,p.highlight.opacity));null!=p.scroll&&(n=this.getCellsForAction(p.scroll));null!=p.viewbox&&this.fitWindow(p.viewbox,p.viewbox.border);0<n.length&&this.scrollCellToVisible(n[0]);if(null!=p.tags){n=[];null!=p.tags.hidden&&(n=n.concat(p.tags.hidden));if(null!=p.tags.visible)for(var t=this.getAllTags(),
-u=0;u<t.length;u++)0>mxUtils.indexOf(p.tags.visible,t[u])&&0>mxUtils.indexOf(n,t[u])&&n.push(t[u]);this.hiddenTags=n;this.refresh()}0<v.length&&(g++,this.executeAnimations(v,m,c?1:p.steps,c?0:p.delay));0==g?l():f()}else this.stoppingCustomActions=this.executingCustomActions=!1,f(),null!=d&&d()});l()}};Graph.prototype.doUpdateCustomLinksForCell=function(b,d){var c=this.getLinkForCell(d);null!=c&&"data:action/json,"==c.substring(0,17)&&this.setLinkForCell(d,this.updateCustomLink(b,c));if(this.isHtmlLabel(d)){var g=
+v=0;v<t.length;v++)0>mxUtils.indexOf(p.tags.visible,t[v])&&0>mxUtils.indexOf(n,t[v])&&n.push(t[v]);this.hiddenTags=n;this.refresh()}0<u.length&&(g++,this.executeAnimations(u,m,c?1:p.steps,c?0:p.delay));0==g?l():f()}else this.stoppingCustomActions=this.executingCustomActions=!1,f(),null!=d&&d()});l()}};Graph.prototype.doUpdateCustomLinksForCell=function(b,d){var c=this.getLinkForCell(d);null!=c&&"data:action/json,"==c.substring(0,17)&&this.setLinkForCell(d,this.updateCustomLink(b,c));if(this.isHtmlLabel(d)){var g=
document.createElement("div");g.innerHTML=this.sanitizeHtml(this.getLabel(d));for(var e=g.getElementsByTagName("a"),k=!1,f=0;f<e.length;f++)c=e[f].getAttribute("href"),null!=c&&"data:action/json,"==c.substring(0,17)&&(e[f].setAttribute("href",this.updateCustomLink(b,c)),k=!0);k&&this.labelChanged(d,g.innerHTML)}};Graph.prototype.updateCustomLink=function(b,d){if("data:action/json,"==d.substring(0,17))try{var c=JSON.parse(d.substring(17));null!=c.actions&&(this.updateCustomLinkActions(b,c.actions),
-d="data:action/json,"+JSON.stringify(c))}catch(V){}return d};Graph.prototype.updateCustomLinkActions=function(b,d){for(var c=0;c<d.length;c++){var g=d[c],e;for(e in g)this.updateCustomLinkAction(b,g[e],"cells"),this.updateCustomLinkAction(b,g[e],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(b,d,c){if(null!=d&&null!=d[c]){for(var g=[],e=0;e<d[c].length;e++)if("*"==d[c][e])g.push(d[c][e]);else{var k=b[d[c][e]];null!=k?""!=k&&g.push(k):g.push(d[c][e])}d[c]=g}};Graph.prototype.getCellsForAction=
-function(b,d){var c=this.getCellsById(b.cells).concat(this.getCellsForTags(b.tags,null,d));if(null!=b.excludeCells){for(var g=[],e=0;e<c.length;e++)0>b.excludeCells.indexOf(c[e].id)&&g.push(c[e]);c=g}return c};Graph.prototype.getCellsById=function(b){var d=[];if(null!=b)for(var c=0;c<b.length;c++)if("*"==b[c])var g=this.model.getRoot(),d=d.concat(this.model.filterDescendants(function(b){return b!=g},g));else{var e=this.model.getCell(b[c]);null!=e&&d.push(e)}return d};var T=Graph.prototype.isCellVisible;
-Graph.prototype.isCellVisible=function(b){return T.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(b))};Graph.prototype.isAllTagsHidden=function(b){if(null==b||0==b.length||0==this.hiddenTags.length)return!1;b=b.split(" ");if(b.length>this.hiddenTags.length)return!1;for(var d=0;d<b.length;d++)if(0>mxUtils.indexOf(this.hiddenTags,b[d]))return!1;return!0};Graph.prototype.getCellsForTags=function(b,d,c,g){var e=[];if(null!=b){d=null!=d?d:this.model.getDescendants(this.model.getRoot());
-for(var k=0,f={},m=0;m<b.length;m++)0<b[m].length&&(f[b[m]]=!0,k++);for(m=0;m<d.length;m++)if(c&&this.model.getParent(d[m])==this.model.root||this.model.isVertex(d[m])||this.model.isEdge(d[m])){var l=this.getTagsForCell(d[m]),p=!1;if(0<l.length&&(l=l.split(" "),l.length>=b.length)){for(var v=p=0;v<l.length&&p<k;v++)null!=f[l[v]]&&p++;p=p==k}p&&(1!=g||this.isCellVisible(d[m]))&&e.push(d[m])}}return e};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};
+d="data:action/json,"+JSON.stringify(c))}catch(X){}return d};Graph.prototype.updateCustomLinkActions=function(b,d){for(var c=0;c<d.length;c++){var g=d[c],e;for(e in g)this.updateCustomLinkAction(b,g[e],"cells"),this.updateCustomLinkAction(b,g[e],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(b,d,c){if(null!=d&&null!=d[c]){for(var g=[],e=0;e<d[c].length;e++)if("*"==d[c][e])g.push(d[c][e]);else{var k=b[d[c][e]];null!=k?""!=k&&g.push(k):g.push(d[c][e])}d[c]=g}};Graph.prototype.getCellsForAction=
+function(b,d){var c=this.getCellsById(b.cells).concat(this.getCellsForTags(b.tags,null,d));if(null!=b.excludeCells){for(var g=[],e=0;e<c.length;e++)0>b.excludeCells.indexOf(c[e].id)&&g.push(c[e]);c=g}return c};Graph.prototype.getCellsById=function(b){var d=[];if(null!=b)for(var c=0;c<b.length;c++)if("*"==b[c])var g=this.model.getRoot(),d=d.concat(this.model.filterDescendants(function(b){return b!=g},g));else{var e=this.model.getCell(b[c]);null!=e&&d.push(e)}return d};var V=Graph.prototype.isCellVisible;
+Graph.prototype.isCellVisible=function(b){return V.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(b))};Graph.prototype.isAllTagsHidden=function(b){if(null==b||0==b.length||0==this.hiddenTags.length)return!1;b=b.split(" ");if(b.length>this.hiddenTags.length)return!1;for(var d=0;d<b.length;d++)if(0>mxUtils.indexOf(this.hiddenTags,b[d]))return!1;return!0};Graph.prototype.getCellsForTags=function(b,d,c,g){var e=[];if(null!=b){d=null!=d?d:this.model.getDescendants(this.model.getRoot());
+for(var k=0,f={},m=0;m<b.length;m++)0<b[m].length&&(f[b[m]]=!0,k++);for(m=0;m<d.length;m++)if(c&&this.model.getParent(d[m])==this.model.root||this.model.isVertex(d[m])||this.model.isEdge(d[m])){var l=this.getTagsForCell(d[m]),p=!1;if(0<l.length&&(l=l.split(" "),l.length>=b.length)){for(var u=p=0;u<l.length&&p<k;u++)null!=f[l[u]]&&p++;p=p==k}p&&(1!=g||this.isCellVisible(d[m]))&&e.push(d[m])}}return e};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};
Graph.prototype.getCommonTagsForCells=function(b){for(var d=null,c=[],g=0;g<b.length;g++){var e=this.getTagsForCell(b[g]),c=[];if(0<e.length){for(var e=e.split(" "),k={},f=0;f<e.length;f++)if(null==d||null!=d[e[f]])k[e[f]]=!0,c.push(e[f]);d=k}else return[]}return c};Graph.prototype.getTagsForCells=function(b){for(var d=[],c={},g=0;g<b.length;g++){var e=this.getTagsForCell(b[g]);if(0<e.length)for(var e=e.split(" "),k=0;k<e.length;k++)null==c[e[k]]&&(c[e[k]]=!0,d.push(e[k]))}return d};Graph.prototype.getTagsForCell=
function(b){return this.getAttributeForCell(b,"tags","")};Graph.prototype.addTagsForCells=function(b,d){if(0<b.length&&0<d.length){this.model.beginUpdate();try{for(var c=0;c<b.length;c++){for(var g=this.getTagsForCell(b[c]),e=g.split(" "),k=!1,f=0;f<d.length;f++){var m=mxUtils.trim(d[f]);""!=m&&0>mxUtils.indexOf(e,m)&&(g=0<g.length?g+" "+m:m,k=!0)}k&&this.setAttributeForCell(b[c],"tags",g)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(b,d){if(0<b.length&&0<d.length){this.model.beginUpdate();
try{for(var c=0;c<b.length;c++){var g=this.getTagsForCell(b[c]);if(0<g.length){for(var e=g.split(" "),k=!1,f=0;f<d.length;f++){var m=mxUtils.indexOf(e,d[f]);0<=m&&(e.splice(m,1),k=!0)}k&&this.setAttributeForCell(b[c],"tags",e.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=function(b){this.model.beginUpdate();try{for(var d=0;d<b.length;d++)this.model.setVisible(b[d],!this.model.isVisible(b[d]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(b,
@@ -3386,31 +3386,31 @@ STENCIL_PATH+"/floorplan.xml"];mxStencilRegistry.libraries.bootstrap=[SHAPES_PAT
mxStencilRegistry.libraries.archimate=[SHAPES_PATH+"/mxArchiMate.js"];mxStencilRegistry.libraries.archimate3=[SHAPES_PATH+"/mxArchiMate3.js"];mxStencilRegistry.libraries.sysml=[SHAPES_PATH+"/mxSysML.js"];mxStencilRegistry.libraries.eip=[SHAPES_PATH+"/mxEip.js",STENCIL_PATH+"/eip.xml"];mxStencilRegistry.libraries.networks=[SHAPES_PATH+"/mxNetworks.js",STENCIL_PATH+"/networks.xml"];mxStencilRegistry.libraries.aws3d=[SHAPES_PATH+"/mxAWS3D.js",STENCIL_PATH+"/aws3d.xml"];mxStencilRegistry.libraries.aws4=
[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.aws4b=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.uml25=[SHAPES_PATH+"/mxUML25.js"];mxStencilRegistry.libraries.veeam=[STENCIL_PATH+"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam.xml"];mxStencilRegistry.libraries.veeam2=[STENCIL_PATH+"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam2.xml"];mxStencilRegistry.libraries.pid2inst=[SHAPES_PATH+
"/pid2/mxPidInstruments.js"];mxStencilRegistry.libraries.pid2misc=[SHAPES_PATH+"/pid2/mxPidMisc.js",STENCIL_PATH+"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxMarker.getPackageForType=function(b){var d=null;null!=b&&0<b.length&&("ER"==b.substring(0,2)?d="mxgraph.er":"sysML"==b.substring(0,5)&&(d="mxgraph.sysml"));return d};var W=mxMarker.createMarker;mxMarker.createMarker=
-function(b,d,c,g,e,k,f,m,l,p){if(null!=c&&null==mxMarker.markers[c]){var v=this.getPackageForType(c);null!=v&&mxStencilRegistry.getStencil(v)}return W.apply(this,arguments)};PrintDialog.prototype.create=function(b,d){function c(){u.value=Math.max(1,Math.min(m,Math.max(parseInt(u.value),parseInt(t.value))));t.value=Math.max(1,Math.min(m,Math.min(parseInt(u.value),parseInt(t.value))))}function g(d){function c(d,c,k){var f=d.useCssTransforms,m=d.currentTranslate,l=d.currentScale,p=d.view.translate,v=
-d.view.scale;d.useCssTransforms&&(d.useCssTransforms=!1,d.currentTranslate=new mxPoint(0,0),d.currentScale=1,d.view.translate=new mxPoint(0,0),d.view.scale=1);var n=d.getGraphBounds(),t=0,u=0,y=H.get(),z=1/d.pageScale,A=x.checked;if(A)var z=parseInt(L.value),K=parseInt(ga.value),z=Math.min(y.height*K/(n.height/d.view.scale),y.width*z/(n.width/d.view.scale));else z=parseInt(q.value)/(100*d.pageScale),isNaN(z)&&(g=1/d.pageScale,q.value="100 %");y=mxRectangle.fromRectangle(y);y.width=Math.ceil(y.width*
-g);y.height=Math.ceil(y.height*g);z*=g;!A&&d.pageVisible?(n=d.getPageLayout(),t-=n.x*y.width,u-=n.y*y.height):A=!0;if(null==c){c=PrintDialog.createPrintPreview(d,z,y,0,t,u,A);c.pageSelector=!1;c.mathEnabled=!1;t=b.getCurrentFile();null!=t&&(c.title=t.getTitle());var G=c.writeHead;c.writeHead=function(c){G.apply(this,arguments);if(mxClient.IS_GC||mxClient.IS_SF)c.writeln('<style type="text/css">'),c.writeln(Editor.mathJaxWebkitCss),c.writeln("</style>");mxClient.IS_GC&&(c.writeln('<style type="text/css">'),
+function(b,d,c,g,e,k,f,m,l,p){if(null!=c&&null==mxMarker.markers[c]){var u=this.getPackageForType(c);null!=u&&mxStencilRegistry.getStencil(u)}return W.apply(this,arguments)};PrintDialog.prototype.create=function(b,d){function c(){v.value=Math.max(1,Math.min(m,Math.max(parseInt(v.value),parseInt(t.value))));t.value=Math.max(1,Math.min(m,Math.min(parseInt(v.value),parseInt(t.value))))}function g(d){function c(d,c,k){var f=d.useCssTransforms,m=d.currentTranslate,l=d.currentScale,p=d.view.translate,u=
+d.view.scale;d.useCssTransforms&&(d.useCssTransforms=!1,d.currentTranslate=new mxPoint(0,0),d.currentScale=1,d.view.translate=new mxPoint(0,0),d.view.scale=1);var n=d.getGraphBounds(),t=0,v=0,y=E.get(),z=1/d.pageScale,B=q.checked;if(B)var z=parseInt(D.value),M=parseInt(ga.value),z=Math.min(y.height*M/(n.height/d.view.scale),y.width*z/(n.width/d.view.scale));else z=parseInt(x.value)/(100*d.pageScale),isNaN(z)&&(g=1/d.pageScale,x.value="100 %");y=mxRectangle.fromRectangle(y);y.width=Math.ceil(y.width*
+g);y.height=Math.ceil(y.height*g);z*=g;!B&&d.pageVisible?(n=d.getPageLayout(),t-=n.x*y.width,v-=n.y*y.height):B=!0;if(null==c){c=PrintDialog.createPrintPreview(d,z,y,0,t,v,B);c.pageSelector=!1;c.mathEnabled=!1;t=b.getCurrentFile();null!=t&&(c.title=t.getTitle());var P=c.writeHead;c.writeHead=function(c){P.apply(this,arguments);if(mxClient.IS_GC||mxClient.IS_SF)c.writeln('<style type="text/css">'),c.writeln(Editor.mathJaxWebkitCss),c.writeln("</style>");mxClient.IS_GC&&(c.writeln('<style type="text/css">'),
c.writeln("@media print {"),c.writeln("span.MathJax_SVG svg { shape-rendering: crispEdges; }"),c.writeln("}"),c.writeln("</style>"));null!=b.editor.fontCss&&(c.writeln('<style type="text/css">'),c.writeln(b.editor.fontCss),c.writeln("</style>"));for(var g=d.getCustomFonts(),e=0;e<g.length;e++){var k=g[e].name,f=g[e].url;Graph.isCssFontUrl(f)?c.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(f)+'" charset="UTF-8" type="text/css">'):(c.writeln('<style type="text/css">'),c.writeln('@font-face {\nfont-family: "'+
-mxUtils.htmlEntities(k)+'";\nsrc: url("'+mxUtils.htmlEntities(f)+'");\n}'),c.writeln("</style>"))}};if("undefined"!==typeof MathJax){var P=c.renderPage;c.renderPage=function(d,c,g,e,k,f){var m=mxClient.NO_FO;mxClient.NO_FO=this.graph.mathEnabled&&!b.editor.useForeignObjectForMath?!0:b.editor.originalNoForeignObject;var l=P.apply(this,arguments);mxClient.NO_FO=m;this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:l.className="geDisableMathJax";return l}}t=null;u=e.enableFlowAnimation;e.enableFlowAnimation=
-!1;null!=e.themes&&"darkTheme"==e.defaultThemeName&&(t=e.stylesheet,e.stylesheet=e.getDefaultStylesheet(),e.refresh());c.open(null,null,k,!0);e.enableFlowAnimation=u;null!=t&&(e.stylesheet=t,e.refresh())}else{y=d.background;if(null==y||""==y||y==mxConstants.NONE)y="#ffffff";c.backgroundColor=y;c.autoOrigin=A;c.appendGraph(d,z,t,u,k,!0);k=d.getCustomFonts();if(null!=c.wnd)for(t=0;t<k.length;t++)u=k[t].name,A=k[t].url,Graph.isCssFontUrl(A)?c.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(A)+
-'" charset="UTF-8" type="text/css">'):(c.wnd.document.writeln('<style type="text/css">'),c.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(u)+'";\nsrc: url("'+mxUtils.htmlEntities(A)+'");\n}'),c.wnd.document.writeln("</style>"))}f&&(d.useCssTransforms=f,d.currentTranslate=m,d.currentScale=l,d.view.translate=p,d.view.scale=v);return c}var g=parseInt(C.value)/100;isNaN(g)&&(g=1,C.value="100 %");var g=.75*g,k=null;null!=e.themes&&"darkTheme"==e.defaultThemeName&&(k=e.stylesheet,
-e.stylesheet=e.getDefaultStylesheet(),e.refresh());var f=t.value,m=u.value,p=!v.checked,n=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(b,v.checked,f,m,x.checked,L.value,ga.value,parseInt(q.value)/100,parseInt(C.value)/100,H.get());else{p&&(p=f==l&&m==l);if(!p&&null!=b.pages&&b.pages.length){var y=0,p=b.pages.length-1;v.checked||(y=parseInt(f)-1,p=parseInt(m)-1);for(var z=y;z<=p;z++){var A=b.pages[z],f=A==b.currentPage?e:null;if(null==f){var f=b.createTemporaryGraph(e.stylesheet),m=!0,
-y=!1,K=null,G=null;null==A.viewState&&null==A.root&&b.updatePageRoot(A);null!=A.viewState&&(m=A.viewState.pageVisible,y=A.viewState.mathEnabled,K=A.viewState.background,G=A.viewState.backgroundImage,f.extFonts=A.viewState.extFonts);f.background=K;f.backgroundImage=null!=G?new mxImage(G.src,G.width,G.height):null;f.pageVisible=m;f.mathEnabled=y;var P=f.getGlobalVariable;f.getGlobalVariable=function(d){return"page"==d?A.getName():"pagenumber"==d?z+1:"pagecount"==d?null!=b.pages?b.pages.length:1:P.apply(this,
-arguments)};document.body.appendChild(f.container);b.updatePageRoot(A);f.model.setRoot(A.root)}n=c(f,n,z!=p);f!=e&&f.container.parentNode.removeChild(f.container)}}else n=c(e);null==n?b.handleError({message:mxResources.get("errorUpdatingPreview")}):(n.mathEnabled&&(p=n.wnd.document,d&&(n.wnd.IMMEDIATE_PRINT=!0),p.writeln('<script type="text/javascript" src="'+DRAWIO_BASE_URL+'/js/math-print.js">\x3c/script>')),n.closeDocument(),!n.mathEnabled&&d&&PrintDialog.printPreview(n));null!=k&&(e.stylesheet=
-k,e.refresh())}}var e=b.editor.graph,k=document.createElement("div"),f=document.createElement("h3");f.style.width="100%";f.style.textAlign="center";f.style.marginTop="0px";mxUtils.write(f,d||mxResources.get("print"));k.appendChild(f);var m=1,l=1,p=document.createElement("div");p.style.cssText="border-bottom:1px solid lightGray;padding-bottom:12px;margin-bottom:12px;";var v=document.createElement("input");v.style.cssText="margin-right:8px;margin-bottom:8px;";v.setAttribute("value","all");v.setAttribute("type",
-"radio");v.setAttribute("name","pages-printdialog");p.appendChild(v);f=document.createElement("span");mxUtils.write(f,mxResources.get("printAllPages"));p.appendChild(f);mxUtils.br(p);var n=v.cloneNode(!0);v.setAttribute("checked","checked");n.setAttribute("value","range");p.appendChild(n);f=document.createElement("span");mxUtils.write(f,mxResources.get("pages")+":");p.appendChild(f);var t=document.createElement("input");t.style.cssText="margin:0 8px 0 8px;";t.setAttribute("value","1");t.setAttribute("type",
-"number");t.setAttribute("min","1");t.style.width="50px";p.appendChild(t);f=document.createElement("span");mxUtils.write(f,mxResources.get("to"));p.appendChild(f);var u=t.cloneNode(!0);p.appendChild(u);mxEvent.addListener(t,"focus",function(){n.checked=!0});mxEvent.addListener(u,"focus",function(){n.checked=!0});mxEvent.addListener(t,"change",c);mxEvent.addListener(u,"change",c);if(null!=b.pages&&(m=b.pages.length,null!=b.currentPage))for(f=0;f<b.pages.length;f++)if(b.currentPage==b.pages[f]){l=f+
-1;t.value=l;u.value=l;break}t.setAttribute("max",m);u.setAttribute("max",m);b.isPagesEnabled()?1<m&&(k.appendChild(p),n.checked=!0):n.checked=!0;var y=document.createElement("div");y.style.marginBottom="10px";var z=document.createElement("input");z.style.marginRight="8px";z.setAttribute("value","adjust");z.setAttribute("type","radio");z.setAttribute("name","printZoom");y.appendChild(z);f=document.createElement("span");mxUtils.write(f,mxResources.get("adjustTo"));y.appendChild(f);var q=document.createElement("input");
-q.style.cssText="margin:0 8px 0 8px;";q.setAttribute("value","100 %");q.style.width="50px";y.appendChild(q);mxEvent.addListener(q,"focus",function(){z.checked=!0});k.appendChild(y);var p=p.cloneNode(!1),x=z.cloneNode(!0);x.setAttribute("value","fit");z.setAttribute("checked","checked");f=document.createElement("div");f.style.cssText="display:inline-block;height:100%;vertical-align:top;padding-top:2px;";f.appendChild(x);p.appendChild(f);y=document.createElement("table");y.style.display="inline-block";
-var A=document.createElement("tbody"),K=document.createElement("tr"),G=K.cloneNode(!0),P=document.createElement("td"),M=P.cloneNode(!0),I=P.cloneNode(!0),F=P.cloneNode(!0),E=P.cloneNode(!0),D=P.cloneNode(!0);P.style.textAlign="right";F.style.textAlign="right";mxUtils.write(P,mxResources.get("fitTo"));var L=document.createElement("input");L.style.cssText="margin:0 8px 0 8px;";L.setAttribute("value","1");L.setAttribute("min","1");L.setAttribute("type","number");L.style.width="40px";M.appendChild(L);
-f=document.createElement("span");mxUtils.write(f,mxResources.get("fitToSheetsAcross"));I.appendChild(f);mxUtils.write(F,mxResources.get("fitToBy"));var ga=L.cloneNode(!0);E.appendChild(ga);mxEvent.addListener(L,"focus",function(){x.checked=!0});mxEvent.addListener(ga,"focus",function(){x.checked=!0});f=document.createElement("span");mxUtils.write(f,mxResources.get("fitToSheetsDown"));D.appendChild(f);K.appendChild(P);K.appendChild(M);K.appendChild(I);G.appendChild(F);G.appendChild(E);G.appendChild(D);
-A.appendChild(K);A.appendChild(G);y.appendChild(A);p.appendChild(y);k.appendChild(p);p=document.createElement("div");f=document.createElement("div");f.style.fontWeight="bold";f.style.marginBottom="12px";mxUtils.write(f,mxResources.get("paperSize"));p.appendChild(f);f=document.createElement("div");f.style.marginBottom="12px";var H=PageSetupDialog.addPageFormatPanel(f,"printdialog",b.editor.graph.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT);p.appendChild(f);f=document.createElement("span");mxUtils.write(f,
+mxUtils.htmlEntities(k)+'";\nsrc: url("'+mxUtils.htmlEntities(f)+'");\n}'),c.writeln("</style>"))}};if("undefined"!==typeof MathJax){var G=c.renderPage;c.renderPage=function(d,c,g,e,k,f){var m=mxClient.NO_FO;mxClient.NO_FO=this.graph.mathEnabled&&!b.editor.useForeignObjectForMath?!0:b.editor.originalNoForeignObject;var l=G.apply(this,arguments);mxClient.NO_FO=m;this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:l.className="geDisableMathJax";return l}}t=null;v=e.enableFlowAnimation;e.enableFlowAnimation=
+!1;null!=e.themes&&"darkTheme"==e.defaultThemeName&&(t=e.stylesheet,e.stylesheet=e.getDefaultStylesheet(),e.refresh());c.open(null,null,k,!0);e.enableFlowAnimation=v;null!=t&&(e.stylesheet=t,e.refresh())}else{y=d.background;if(null==y||""==y||y==mxConstants.NONE)y="#ffffff";c.backgroundColor=y;c.autoOrigin=B;c.appendGraph(d,z,t,v,k,!0);k=d.getCustomFonts();if(null!=c.wnd)for(t=0;t<k.length;t++)v=k[t].name,B=k[t].url,Graph.isCssFontUrl(B)?c.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(B)+
+'" charset="UTF-8" type="text/css">'):(c.wnd.document.writeln('<style type="text/css">'),c.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(v)+'";\nsrc: url("'+mxUtils.htmlEntities(B)+'");\n}'),c.wnd.document.writeln("</style>"))}f&&(d.useCssTransforms=f,d.currentTranslate=m,d.currentScale=l,d.view.translate=p,d.view.scale=u);return c}var g=parseInt(C.value)/100;isNaN(g)&&(g=1,C.value="100 %");var g=.75*g,k=null;null!=e.themes&&"darkTheme"==e.defaultThemeName&&(k=e.stylesheet,
+e.stylesheet=e.getDefaultStylesheet(),e.refresh());var f=t.value,m=v.value,p=!u.checked,n=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(b,u.checked,f,m,q.checked,D.value,ga.value,parseInt(x.value)/100,parseInt(C.value)/100,E.get());else{p&&(p=f==l&&m==l);if(!p&&null!=b.pages&&b.pages.length){var y=0,p=b.pages.length-1;u.checked||(y=parseInt(f)-1,p=parseInt(m)-1);for(var z=y;z<=p;z++){var B=b.pages[z],f=B==b.currentPage?e:null;if(null==f){var f=b.createTemporaryGraph(e.stylesheet),m=!0,
+y=!1,M=null,P=null;null==B.viewState&&null==B.root&&b.updatePageRoot(B);null!=B.viewState&&(m=B.viewState.pageVisible,y=B.viewState.mathEnabled,M=B.viewState.background,P=B.viewState.backgroundImage,f.extFonts=B.viewState.extFonts);f.background=M;f.backgroundImage=null!=P?new mxImage(P.src,P.width,P.height):null;f.pageVisible=m;f.mathEnabled=y;var G=f.getGlobalVariable;f.getGlobalVariable=function(d){return"page"==d?B.getName():"pagenumber"==d?z+1:"pagecount"==d?null!=b.pages?b.pages.length:1:G.apply(this,
+arguments)};document.body.appendChild(f.container);b.updatePageRoot(B);f.model.setRoot(B.root)}n=c(f,n,z!=p);f!=e&&f.container.parentNode.removeChild(f.container)}}else n=c(e);null==n?b.handleError({message:mxResources.get("errorUpdatingPreview")}):(n.mathEnabled&&(p=n.wnd.document,d&&(n.wnd.IMMEDIATE_PRINT=!0),p.writeln('<script type="text/javascript" src="'+DRAWIO_BASE_URL+'/js/math-print.js">\x3c/script>')),n.closeDocument(),!n.mathEnabled&&d&&PrintDialog.printPreview(n));null!=k&&(e.stylesheet=
+k,e.refresh())}}var e=b.editor.graph,k=document.createElement("div"),f=document.createElement("h3");f.style.width="100%";f.style.textAlign="center";f.style.marginTop="0px";mxUtils.write(f,d||mxResources.get("print"));k.appendChild(f);var m=1,l=1,p=document.createElement("div");p.style.cssText="border-bottom:1px solid lightGray;padding-bottom:12px;margin-bottom:12px;";var u=document.createElement("input");u.style.cssText="margin-right:8px;margin-bottom:8px;";u.setAttribute("value","all");u.setAttribute("type",
+"radio");u.setAttribute("name","pages-printdialog");p.appendChild(u);f=document.createElement("span");mxUtils.write(f,mxResources.get("printAllPages"));p.appendChild(f);mxUtils.br(p);var n=u.cloneNode(!0);u.setAttribute("checked","checked");n.setAttribute("value","range");p.appendChild(n);f=document.createElement("span");mxUtils.write(f,mxResources.get("pages")+":");p.appendChild(f);var t=document.createElement("input");t.style.cssText="margin:0 8px 0 8px;";t.setAttribute("value","1");t.setAttribute("type",
+"number");t.setAttribute("min","1");t.style.width="50px";p.appendChild(t);f=document.createElement("span");mxUtils.write(f,mxResources.get("to"));p.appendChild(f);var v=t.cloneNode(!0);p.appendChild(v);mxEvent.addListener(t,"focus",function(){n.checked=!0});mxEvent.addListener(v,"focus",function(){n.checked=!0});mxEvent.addListener(t,"change",c);mxEvent.addListener(v,"change",c);if(null!=b.pages&&(m=b.pages.length,null!=b.currentPage))for(f=0;f<b.pages.length;f++)if(b.currentPage==b.pages[f]){l=f+
+1;t.value=l;v.value=l;break}t.setAttribute("max",m);v.setAttribute("max",m);b.isPagesEnabled()?1<m&&(k.appendChild(p),n.checked=!0):n.checked=!0;var y=document.createElement("div");y.style.marginBottom="10px";var z=document.createElement("input");z.style.marginRight="8px";z.setAttribute("value","adjust");z.setAttribute("type","radio");z.setAttribute("name","printZoom");y.appendChild(z);f=document.createElement("span");mxUtils.write(f,mxResources.get("adjustTo"));y.appendChild(f);var x=document.createElement("input");
+x.style.cssText="margin:0 8px 0 8px;";x.setAttribute("value","100 %");x.style.width="50px";y.appendChild(x);mxEvent.addListener(x,"focus",function(){z.checked=!0});k.appendChild(y);var p=p.cloneNode(!1),q=z.cloneNode(!0);q.setAttribute("value","fit");z.setAttribute("checked","checked");f=document.createElement("div");f.style.cssText="display:inline-block;height:100%;vertical-align:top;padding-top:2px;";f.appendChild(q);p.appendChild(f);y=document.createElement("table");y.style.display="inline-block";
+var B=document.createElement("tbody"),M=document.createElement("tr"),G=M.cloneNode(!0),P=document.createElement("td"),N=P.cloneNode(!0),H=P.cloneNode(!0),I=P.cloneNode(!0),F=P.cloneNode(!0),L=P.cloneNode(!0);P.style.textAlign="right";I.style.textAlign="right";mxUtils.write(P,mxResources.get("fitTo"));var D=document.createElement("input");D.style.cssText="margin:0 8px 0 8px;";D.setAttribute("value","1");D.setAttribute("min","1");D.setAttribute("type","number");D.style.width="40px";N.appendChild(D);
+f=document.createElement("span");mxUtils.write(f,mxResources.get("fitToSheetsAcross"));H.appendChild(f);mxUtils.write(I,mxResources.get("fitToBy"));var ga=D.cloneNode(!0);F.appendChild(ga);mxEvent.addListener(D,"focus",function(){q.checked=!0});mxEvent.addListener(ga,"focus",function(){q.checked=!0});f=document.createElement("span");mxUtils.write(f,mxResources.get("fitToSheetsDown"));L.appendChild(f);M.appendChild(P);M.appendChild(N);M.appendChild(H);G.appendChild(I);G.appendChild(F);G.appendChild(L);
+B.appendChild(M);B.appendChild(G);y.appendChild(B);p.appendChild(y);k.appendChild(p);p=document.createElement("div");f=document.createElement("div");f.style.fontWeight="bold";f.style.marginBottom="12px";mxUtils.write(f,mxResources.get("paperSize"));p.appendChild(f);f=document.createElement("div");f.style.marginBottom="12px";var E=PageSetupDialog.addPageFormatPanel(f,"printdialog",b.editor.graph.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT);p.appendChild(f);f=document.createElement("span");mxUtils.write(f,
mxResources.get("pageScale"));p.appendChild(f);var C=document.createElement("input");C.style.cssText="margin:0 8px 0 8px;";C.setAttribute("value","100 %");C.style.width="60px";p.appendChild(C);k.appendChild(p);f=document.createElement("div");f.style.cssText="text-align:right;margin:48px 0 0 0;";p=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});p.className="geBtn";b.editor.cancelFirst&&f.appendChild(p);b.isOffline()||(y=mxUtils.button(mxResources.get("help"),function(){e.openLink("https://www.diagrams.net/doc/faq/print-diagram")}),
y.className="geBtn",f.appendChild(y));PrintDialog.previewEnabled&&(y=mxUtils.button(mxResources.get("preview"),function(){b.hideDialog();g(!1)}),y.className="geBtn",f.appendChild(y));y=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){b.hideDialog();g(!0)});y.className="geBtn gePrimaryBtn";f.appendChild(y);b.editor.cancelFirst||f.appendChild(p);k.appendChild(f);this.container=k};var ga=ChangePageSetup.prototype.execute;ChangePageSetup.prototype.execute=function(){null==
this.page&&(this.page=this.ui.currentPage);if(this.page!=this.ui.currentPage){if(null!=this.page.viewState){this.ignoreColor||(this.page.viewState.background=this.color);if(!this.ignoreImage){var b=this.image;null!=b&&null!=b.src&&Graph.isPageLink(b.src)&&(b={originalSrc:b.src});this.page.viewState.backgroundImage=b}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.shadowVisible&&(this.page.viewState.shadowVisible=
-this.shadowVisible)}}else ga.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.prototype.useCanvasForExport=!1;try{var ja=document.createElement("canvas"),X=new Image;X.onload=function(){try{ja.getContext("2d").drawImage(X,
-0,0);var b=ja.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=b&&6<b.length}catch(C){}};X.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(x){}})();
+this.shadowVisible)}}else ga.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.prototype.useCanvasForExport=!1;try{var ea=document.createElement("canvas"),ba=new Image;ba.onload=function(){try{ea.getContext("2d").drawImage(ba,
+0,0);var b=ea.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=b&&6<b.length}catch(C){}};ba.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(x){}})();
(function(){var b=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);b.beforeDecode=function(b,e,f){f.ui=b.ui;return e};b.afterDecode=function(b,e,f){f.previousColor=f.color;f.previousImage=f.image;f.previousFormat=f.format;null!=f.foldingEnabled&&(f.foldingEnabled=!f.foldingEnabled);null!=f.mathEnabled&&(f.mathEnabled=!f.mathEnabled);null!=f.shadowVisible&&(f.shadowVisible=!f.shadowVisible);return f};mxCodecRegistry.register(b)})();
-(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(b,e,f){f.ui=b.ui;return e};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="16.4.0";EditorUi.compactUi="atlas"!=uiTheme;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;EditorUi.lastErrorMessage=
+(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(b,e,f){f.ui=b.ui;return e};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="16.4.3";EditorUi.compactUi="atlas"!=uiTheme;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;EditorUi.lastErrorMessage=
null;EditorUi.ignoredAnonymizedChars="\n\t`~!@#$%^&*()_+{}|:\"<>?-=[];'./,\n\t";EditorUi.templateFile=TEMPLATE_PATH+"/index.xml";EditorUi.cacheUrl="1"==urlParams.dev?"/cache":window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.enablePlantUml=EditorUi.enableLogging;EditorUi.isElectronApp=null!=window&&null!=window.process&&null!=window.process.versions&&null!=window.process.versions.electron;EditorUi.nativeFileSupport=
!mxClient.IS_OP&&!EditorUi.isElectronApp&&"1"!=urlParams.extAuth&&"showSaveFilePicker"in window&&"showOpenFilePicker"in window;EditorUi.enableDrafts=!mxClient.IS_CHROMEAPP&&isLocalStorage&&"0"!=urlParams.drafts;EditorUi.scratchpadHelpLink="https://www.diagrams.net/doc/faq/scratchpad";EditorUi.defaultMermaidConfig={theme:"neutral",arrowMarkerAbsolute:!1,flowchart:{htmlLabels:!1},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,
messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d"}};EditorUi.logError=function(b,c,g,e,f,l,n){l=null!=l?l:0<=b.indexOf("NetworkError")||0<=b.indexOf("SecurityError")||0<=b.indexOf("NS_ERROR_FAILURE")||0<=b.indexOf("out of memory")?"CONFIG":"SEVERE";if(EditorUi.enableLogging&&
@@ -3419,7 +3419,7 @@ encodeURIComponent(e):"")+(null!=f&&null!=f.stack?"&stack="+encodeURIComponent(f
function(b,c){if("1"==urlParams.dev)EditorUi.debug("sendReport",b);else if(EditorUi.enableLogging)try{c=null!=c?c:5E4,b.length>c&&(b=b.substring(0,c)+"\n...[SHORTENED]"),mxUtils.post("/email","version="+encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&data="+encodeURIComponent(b))}catch(g){}};EditorUi.debug=function(){try{if(null!=window.console&&"1"==urlParams.test){for(var b=[(new Date).toISOString()],c=0;c<arguments.length;c++)null!=arguments[c]&&b.push(arguments[c]);
console.log.apply(console,b)}}catch(g){}};EditorUi.removeChildNodes=function(b){for(;null!=b.firstChild;)b.removeChild(b.firstChild)};EditorUi.prototype.emptyDiagramXml='<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>';EditorUi.prototype.emptyLibraryXml="<mxlibrary>[]</mxlibrary>";EditorUi.prototype.mode=null;EditorUi.prototype.timeout=Editor.prototype.timeout;EditorUi.prototype.sidebarFooterHeight=38;EditorUi.prototype.defaultCustomShapeStyle="shape=stencil(tZRtTsQgEEBPw1+DJR7AoN6DbWftpAgE0Ortd/jYRGq72R+YNE2YgTePloEJGWblgA18ZuKFDcMj5/Sm8boZq+BgjCX4pTyqk6ZlKROitwusOMXKQDODx5iy4pXxZ5qTHiFHawxB0JrQZH7lCabQ0Fr+XWC1/E8zcsT/gAi+Subo2/3Mh6d/oJb5nU1b5tW7r2knautaa3T+U32o7f7vZwpJkaNDLORJjcu7t59m2jXxqX9un+tt022acsfmoKaQZ+vhhswZtS6Ne/ThQGt0IV0N3Yyv6P3CeT9/tHO0XFI5cAE=);whiteSpace=wrap;html=1;";
EditorUi.prototype.maxBackgroundSize=1600;EditorUi.prototype.maxImageSize=520;EditorUi.prototype.maxTextWidth=520;EditorUi.prototype.resampleThreshold=1E5;EditorUi.prototype.maxImageBytes=1E6;EditorUi.prototype.maxBackgroundBytes=25E5;EditorUi.prototype.maxTextBytes=5E5;EditorUi.prototype.currentFile=null;EditorUi.prototype.printPdfExport=!1;EditorUi.prototype.pdfPageExport=!0;EditorUi.prototype.formatEnabled="0"!=urlParams.format;EditorUi.prototype.insertTemplateEnabled=!0;EditorUi.prototype.closableScratchpad=
-!0;EditorUi.prototype.embedExportBorder=8;EditorUi.prototype.embedExportBackground=null;(function(){EditorUi.prototype.useCanvasForExport=!1;EditorUi.prototype.jpgSupported=!1;try{var b=document.createElement("canvas");EditorUi.prototype.canvasSupported=!(!b.getContext||!b.getContext("2d"))}catch(m){}try{var c=document.createElement("canvas"),g=new Image;g.onload=function(){try{c.getContext("2d").drawImage(g,0,0);var b=c.toDataURL("image/png");EditorUi.prototype.useCanvasForExport=null!=b&&6<b.length}catch(v){}};
+!0;EditorUi.prototype.embedExportBorder=8;EditorUi.prototype.embedExportBackground=null;(function(){EditorUi.prototype.useCanvasForExport=!1;EditorUi.prototype.jpgSupported=!1;try{var b=document.createElement("canvas");EditorUi.prototype.canvasSupported=!(!b.getContext||!b.getContext("2d"))}catch(m){}try{var c=document.createElement("canvas"),g=new Image;g.onload=function(){try{c.getContext("2d").drawImage(g,0,0);var b=c.toDataURL("image/png");EditorUi.prototype.useCanvasForExport=null!=b&&6<b.length}catch(u){}};
g.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(m){}try{c=document.createElement("canvas");c.width=c.height=1;var e=c.toDataURL("image/jpeg");EditorUi.prototype.jpgSupported=null!==e.match("image/jpeg")}catch(m){}})();EditorUi.prototype.openLink=
function(b,c,g){return this.editor.graph.openLink(b,c,g)};EditorUi.prototype.showSplash=function(b){};EditorUi.prototype.getLocalData=function(b,c){c(localStorage.getItem(b))};EditorUi.prototype.setLocalData=function(b,c,g){localStorage.setItem(b,c);null!=g&&g()};EditorUi.prototype.removeLocalData=function(b,c){localStorage.removeItem(b);c()};EditorUi.prototype.setMathEnabled=function(b){this.editor.graph.mathEnabled=b;this.editor.updateGraphComponents();this.editor.graph.refresh();this.editor.graph.defaultMathEnabled=
b;this.fireEvent(new mxEventObject("mathEnabledChanged"))};EditorUi.prototype.isMathEnabled=function(b){return this.editor.graph.mathEnabled};EditorUi.prototype.isOfflineApp=function(){return"1"==urlParams.offline};EditorUi.prototype.isOffline=function(b){return this.isOfflineApp()||!navigator.onLine||!b&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.createSpinner=function(b,c,g){var d=null==b||null==c;g=null!=g?g:24;var e=new Spinner({lines:12,length:g,width:Math.round(g/
@@ -3430,7 +3430,7 @@ m.innerHTML=f,g.appendChild(m),e.status=m),this.pause=mxUtils.bind(this,function
function(b){return 8<b.length&&(208==b.charCodeAt(0)&&207==b.charCodeAt(1)&&17==b.charCodeAt(2)&&224==b.charCodeAt(3)&&161==b.charCodeAt(4)&&177==b.charCodeAt(5)&&26==b.charCodeAt(6)&&225==b.charCodeAt(7)||60==b.charCodeAt(0)&&63==b.charCodeAt(1)&&120==b.charCodeAt(2)&&109==b.charCodeAt(3)&&108==b.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(d){var c=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var g=c.getFunction,
e=this.editor.graph,f=this;c.getFunction=function(b){if(e.isSelectionEmpty()&&null!=f.pages&&0<f.pages.length){var d=f.getSelectedPageIndex();if(mxEvent.isShiftDown(b)){if(37==b.keyCode)return function(){0<d&&f.movePage(d,d-1)};if(38==b.keyCode)return function(){0<d&&f.movePage(d,0)};if(39==b.keyCode)return function(){d<f.pages.length-1&&f.movePage(d,d+1)};if(40==b.keyCode)return function(){d<f.pages.length-1&&f.movePage(d,f.pages.length-1)}}else if(mxEvent.isControlDown(b)||mxClient.IS_MAC&&mxEvent.isMetaDown(b)){if(37==
b.keyCode)return function(){0<d&&f.selectNextPage(!1)};if(38==b.keyCode)return function(){0<d&&f.selectPage(f.pages[0])};if(39==b.keyCode)return function(){d<f.pages.length-1&&f.selectNextPage(!0)};if(40==b.keyCode)return function(){d<f.pages.length-1&&f.selectPage(f.pages[f.pages.length-1])}}}return g.apply(this,arguments)}}return c};var c=EditorUi.prototype.extractGraphModelFromHtml;EditorUi.prototype.extractGraphModelFromHtml=function(b){var d=c.apply(this,arguments);if(null==d)try{var g=b.indexOf("&lt;mxfile ");
-if(0<=g){var e=b.lastIndexOf("&lt;/mxfile&gt;");e>g&&(d=b.substring(g,e+15).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}else var f=mxUtils.parseXml(b),l=this.editor.extractGraphModel(f.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility),d=null!=l?mxUtils.getXml(l):""}catch(u){}return d};EditorUi.prototype.validateFileData=function(b){if(null!=b&&0<b.length){var d=b.indexOf('<meta charset="utf-8">');0<=d&&(b=b.slice(0,d)+'<meta charset="utf-8"/>'+
+if(0<=g){var e=b.lastIndexOf("&lt;/mxfile&gt;");e>g&&(d=b.substring(g,e+15).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}else var f=mxUtils.parseXml(b),l=this.editor.extractGraphModel(f.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility),d=null!=l?mxUtils.getXml(l):""}catch(v){}return d};EditorUi.prototype.validateFileData=function(b){if(null!=b&&0<b.length){var d=b.indexOf('<meta charset="utf-8">');0<=d&&(b=b.slice(0,d)+'<meta charset="utf-8"/>'+
b.slice(d+23-1,b.length));b=Graph.zapGremlins(b)}return b};EditorUi.prototype.replaceFileData=function(b){b=this.validateFileData(b);b=null!=b&&0<b.length?mxUtils.parseXml(b).documentElement:null;var d=null!=b?this.editor.extractGraphModel(b,!0):null;null!=d&&(b=d);if(null!=b){d=this.editor.graph;d.model.beginUpdate();try{var c=null!=this.pages?this.pages.slice():null,e=b.getElementsByTagName("diagram");if("0"!=urlParams.pages||1<e.length||1==e.length&&e[0].hasAttribute("name")){this.fileNode=b;this.pages=
null!=this.pages?this.pages:[];for(var f=e.length-1;0<=f;f--){var l=this.updatePageRoot(new DiagramPage(e[f]));null==l.getName()&&l.setName(mxResources.get("pageWithNumber",[f+1]));d.model.execute(new ChangePage(this,l,0==f?l:null,0))}}else"0"!=urlParams.pages&&null==this.fileNode&&(this.fileNode=b.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(b.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),d.model.execute(new ChangePage(this,
this.currentPage,this.currentPage,0))),this.editor.setGraphXml(b),null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root);if(null!=c)for(f=0;f<c.length;f++)d.model.execute(new ChangePage(this,c[f],null))}finally{d.model.endUpdate()}}};EditorUi.prototype.createFileData=function(b,c,g,e,f,l,n,t,z,y,q){c=null!=c?c:this.editor.graph;f=null!=f?f:!1;z=null!=z?z:!0;var d,k=null;null==g||g.getMode()==App.MODE_DEVICE||g.getMode()==App.MODE_BROWSER?d="_blank":k=d=e;if(null==b)return"";
@@ -3442,7 +3442,7 @@ null!=c&&0<c.length&&b.appendChild(mxUtils.parseXml(c).documentElement))):null==
l=l.encode(new mxGraphModel(k.root));this.editor.graph.saveViewState(k.viewState,l,null,e);EditorUi.removeChildNodes(f);mxUtils.setTextContent(f,Graph.compressNode(l));delete k.needsUpdate}else e&&(this.updatePageRoot(k),null!=k.viewState.backgroundImage&&(null!=k.viewState.backgroundImage.originalSrc?k.viewState.backgroundImage=this.createImageForPageLink(k.viewState.backgroundImage.originalSrc,k):Graph.isPageLink(k.viewState.backgroundImage.src)&&(k.viewState.backgroundImage=this.createImageForPageLink(k.viewState.backgroundImage.src,
k))),null!=k.viewState.backgroundImage&&null!=k.viewState.backgroundImage.originalSrc&&(l=new mxCodec(mxUtils.createXmlDocument()),l=l.encode(new mxGraphModel(k.root)),this.editor.graph.saveViewState(k.viewState,l,null,e),f=f.cloneNode(!1),mxUtils.setTextContent(f,Graph.compressNode(l))));b(f)}return d};EditorUi.prototype.anonymizeString=function(b,c){for(var d=[],e=0;e<b.length;e++){var k=b.charAt(e);0<=EditorUi.ignoredAnonymizedChars.indexOf(k)?d.push(k):isNaN(parseInt(k))?k.toLowerCase()!=k?d.push(String.fromCharCode(65+
Math.round(25*Math.random()))):k.toUpperCase()!=k?d.push(String.fromCharCode(97+Math.round(25*Math.random()))):/\s/.test(k)?d.push(" "):d.push("?"):d.push(c?"0":Math.round(9*Math.random()))}return d.join("")};EditorUi.prototype.anonymizePatch=function(b){if(null!=b[EditorUi.DIFF_INSERT])for(var d=0;d<b[EditorUi.DIFF_INSERT].length;d++)try{var c=mxUtils.parseXml(b[EditorUi.DIFF_INSERT][d].data).documentElement.cloneNode(!1);null!=c.getAttribute("name")&&c.setAttribute("name",this.anonymizeString(c.getAttribute("name")));
-b[EditorUi.DIFF_INSERT][d].data=mxUtils.getXml(c)}catch(v){b[EditorUi.DIFF_INSERT][d].data=v.message}if(null!=b[EditorUi.DIFF_UPDATE]){for(var e in b[EditorUi.DIFF_UPDATE]){var f=b[EditorUi.DIFF_UPDATE][e];null!=f.name&&(f.name=this.anonymizeString(f.name));null!=f.cells&&(d=mxUtils.bind(this,function(b){var d=f.cells[b];if(null!=d){for(var c in d)null!=d[c].value&&(d[c].value="["+d[c].value.length+"]"),null!=d[c].xmlValue&&(d[c].xmlValue="["+d[c].xmlValue.length+"]"),null!=d[c].style&&(d[c].style=
+b[EditorUi.DIFF_INSERT][d].data=mxUtils.getXml(c)}catch(u){b[EditorUi.DIFF_INSERT][d].data=u.message}if(null!=b[EditorUi.DIFF_UPDATE]){for(var e in b[EditorUi.DIFF_UPDATE]){var f=b[EditorUi.DIFF_UPDATE][e];null!=f.name&&(f.name=this.anonymizeString(f.name));null!=f.cells&&(d=mxUtils.bind(this,function(b){var d=f.cells[b];if(null!=d){for(var c in d)null!=d[c].value&&(d[c].value="["+d[c].value.length+"]"),null!=d[c].xmlValue&&(d[c].xmlValue="["+d[c].xmlValue.length+"]"),null!=d[c].style&&(d[c].style=
"["+d[c].style.length+"]"),0==Object.keys(d[c]).length&&delete d[c];0==Object.keys(d).length&&delete f.cells[b]}}),d(EditorUi.DIFF_INSERT),d(EditorUi.DIFF_UPDATE),0==Object.keys(f.cells).length&&delete f.cells);0==Object.keys(f).length&&delete b[EditorUi.DIFF_UPDATE][e]}0==Object.keys(b[EditorUi.DIFF_UPDATE]).length&&delete b[EditorUi.DIFF_UPDATE]}return b};EditorUi.prototype.anonymizeAttributes=function(b,c){if(null!=b.attributes)for(var d=0;d<b.attributes.length;d++)"as"!=b.attributes[d].name&&
b.setAttribute(b.attributes[d].name,this.anonymizeString(b.attributes[d].value,c));if(null!=b.childNodes)for(d=0;d<b.childNodes.length;d++)this.anonymizeAttributes(b.childNodes[d],c)};EditorUi.prototype.anonymizeNode=function(b,c){for(var d=b.getElementsByTagName("mxCell"),e=0;e<d.length;e++)null!=d[e].getAttribute("value")&&d[e].setAttribute("value","["+d[e].getAttribute("value").length+"]"),null!=d[e].getAttribute("xmlValue")&&d[e].setAttribute("xmlValue","["+d[e].getAttribute("xmlValue").length+
"]"),null!=d[e].getAttribute("style")&&d[e].setAttribute("style","["+d[e].getAttribute("style").length+"]"),null!=d[e].parentNode&&"root"!=d[e].parentNode.nodeName&&null!=d[e].parentNode.parentNode&&(d[e].setAttribute("id",d[e].parentNode.getAttribute("id")),d[e].parentNode.parentNode.replaceChild(d[e],d[e].parentNode));return b};EditorUi.prototype.synchronizeCurrentFile=function(b){var d=this.getCurrentFile();null!=d&&(d.savingFile?this.handleError({message:mxResources.get("busy")}):!b&&d.invalidChecksum?
@@ -3458,66 +3458,66 @@ mxUtils.htmlEntities(JSON.stringify(b))+'"></div>\n'+(null==f?'<script type="tex
null;var d=Editor.extractParserError(b,mxResources.get("invalidOrMissingFile"));if(d)throw Error(mxResources.get("notADiagramFile")+" ("+d+")");d=null!=b?this.editor.extractGraphModel(b,!0):null;null!=d&&(b=d);if(null!=b&&"mxfile"==b.nodeName&&(d=b.getElementsByTagName("diagram"),"0"!=urlParams.pages||1<d.length||1==d.length&&d[0].hasAttribute("name"))){var c=null;this.fileNode=b;this.pages=[];for(var e=0;e<d.length;e++)null==d[e].getAttribute("id")&&d[e].setAttribute("id",e),b=new DiagramPage(d[e]),
null==b.getName()&&b.setName(mxResources.get("pageWithNumber",[e+1])),this.pages.push(b),null!=urlParams["page-id"]&&b.getId()==urlParams["page-id"]&&(c=b);this.currentPage=null!=c?c:this.pages[Math.max(0,Math.min(this.pages.length-1,urlParams.page||0))];b=this.currentPage.node}"0"!=urlParams.pages&&null==this.fileNode&&null!=b&&(this.fileNode=b.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(b.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",
[1])),this.pages=[this.currentPage]);this.editor.setGraphXml(b);null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root);if(null!=urlParams["layer-ids"])try{var f=urlParams["layer-ids"].split(" ");b={};for(e=0;e<f.length;e++)b[f[e]]=!0;for(var l=this.editor.graph.getModel(),n=l.getChildren(l.root),e=0;e<n.length;e++){var t=n[e];l.setVisible(t,b[t.id]||!1)}}catch(z){}};EditorUi.prototype.getBaseFilename=function(b){var d=this.getCurrentFile(),d=null!=d&&null!=d.getTitle()?d.getTitle():
-this.defaultFilename;if(/(\.xml)$/i.test(d)||/(\.html)$/i.test(d)||/(\.svg)$/i.test(d)||/(\.png)$/i.test(d))d=d.substring(0,d.lastIndexOf("."));/(\.drawio)$/i.test(d)&&(d=d.substring(0,d.lastIndexOf(".")));!b&&null!=this.pages&&1<this.pages.length&&null!=this.currentPage&&null!=this.currentPage.node.getAttribute("name")&&0<this.currentPage.getName().length&&(d=d+"-"+this.currentPage.getName());return d};EditorUi.prototype.downloadFile=function(b,c,e,f,l,n,u,t,z,y,q,D){try{f=null!=f?f:this.editor.graph.isSelectionEmpty();
+this.defaultFilename;if(/(\.xml)$/i.test(d)||/(\.html)$/i.test(d)||/(\.svg)$/i.test(d)||/(\.png)$/i.test(d))d=d.substring(0,d.lastIndexOf("."));/(\.drawio)$/i.test(d)&&(d=d.substring(0,d.lastIndexOf(".")));!b&&null!=this.pages&&1<this.pages.length&&null!=this.currentPage&&null!=this.currentPage.node.getAttribute("name")&&0<this.currentPage.getName().length&&(d=d+"-"+this.currentPage.getName());return d};EditorUi.prototype.downloadFile=function(b,c,e,f,l,n,v,t,z,y,q,D){try{f=null!=f?f:this.editor.graph.isSelectionEmpty();
var d=this.getBaseFilename("remoteSvg"==b?!1:!l),g=d+("xml"==b||"pdf"==b&&q?".drawio":"")+"."+b;if("xml"==b){var k=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,f,l,null,null,null,c);this.saveData(g,b,k,"text/xml")}else if("html"==b)k=this.getHtml2(this.getFileData(!0),this.editor.graph,d),this.saveData(g,b,k,"text/html");else if("svg"!=b&&"xmlsvg"!=b||!this.spinner.spin(document.body,mxResources.get("export"))){var m,p;if("xmlpng"==b)g=d+".png";else if("jpeg"==b)g=d+".jpg";else if("remoteSvg"==
-b){g=d+".svg";b="svg";var v=parseInt(z);"string"===typeof t&&0<t.indexOf("%")&&(t=parseInt(t)/100);if(0<v){var F=this.editor.graph,M=F.getGraphBounds();m=Math.ceil(M.width*t/F.view.scale+2*v);p=Math.ceil(M.height*t/F.view.scale+2*v)}}this.saveRequest(g,b,mxUtils.bind(this,function(d,c){try{var e=this.editor.graph.pageVisible;null!=n&&(this.editor.graph.pageVisible=n);var g=this.createDownloadRequest(d,b,f,c,u,l,t,z,y,q,D,m,p);this.editor.graph.pageVisible=e;return g}catch(C){this.handleError(C)}}))}else{var K=
-null,P=mxUtils.bind(this,function(b){b.length<=MAX_REQUEST_SIZE?this.saveData(g,"svg",b,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(K)}))});if("svg"==b){var T=this.editor.graph.background;if(u||T==mxConstants.NONE)T=null;var W=this.editor.graph.getSvg(T,null,null,null,null,f);e&&this.editor.graph.addSvgShadow(W);this.editor.convertImages(W,mxUtils.bind(this,mxUtils.bind(this,function(b){this.spinner.stop();
-P(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(b))})))}else g=d+".svg",K=this.getFileData(!1,!0,null,mxUtils.bind(this,function(b){this.spinner.stop();P(b)}),f)}}catch(ga){this.handleError(ga)}};EditorUi.prototype.createDownloadRequest=function(b,c,e,f,l,n,u,t,z,y,q,D,E){var d=this.editor.graph,g=d.getGraphBounds();e=this.getFileData(!0,null,null,null,e,0==n?!1:"xmlpng"!=c,null,null,null,!1,"pdf"==c);var k="",m="";if(g.width*g.height>MAX_AREA||e.length>MAX_REQUEST_SIZE)throw{message:mxResources.get("drawingTooLarge")};
+b){g=d+".svg";b="svg";var u=parseInt(z);"string"===typeof t&&0<t.indexOf("%")&&(t=parseInt(t)/100);if(0<u){var L=this.editor.graph,N=L.getGraphBounds();m=Math.ceil(N.width*t/L.view.scale+2*u);p=Math.ceil(N.height*t/L.view.scale+2*u)}}this.saveRequest(g,b,mxUtils.bind(this,function(d,c){try{var e=this.editor.graph.pageVisible;null!=n&&(this.editor.graph.pageVisible=n);var g=this.createDownloadRequest(d,b,f,c,v,l,t,z,y,q,D,m,p);this.editor.graph.pageVisible=e;return g}catch(C){this.handleError(C)}}))}else{var M=
+null,P=mxUtils.bind(this,function(b){b.length<=MAX_REQUEST_SIZE?this.saveData(g,"svg",b,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(M)}))});if("svg"==b){var I=this.editor.graph.background;if(v||I==mxConstants.NONE)I=null;var W=this.editor.graph.getSvg(I,null,null,null,null,f);e&&this.editor.graph.addSvgShadow(W);this.editor.convertImages(W,mxUtils.bind(this,mxUtils.bind(this,function(b){this.spinner.stop();
+P(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(b))})))}else g=d+".svg",M=this.getFileData(!1,!0,null,mxUtils.bind(this,function(b){this.spinner.stop();P(b)}),f)}}catch(ga){this.handleError(ga)}};EditorUi.prototype.createDownloadRequest=function(b,c,e,f,l,n,v,t,z,y,q,D,F){var d=this.editor.graph,g=d.getGraphBounds();e=this.getFileData(!0,null,null,null,e,0==n?!1:"xmlpng"!=c,null,null,null,!1,"pdf"==c);var k="",m="";if(g.width*g.height>MAX_AREA||e.length>MAX_REQUEST_SIZE)throw{message:mxResources.get("drawingTooLarge")};
y=y?"1":"0";"pdf"==c&&(null!=q?m="&from="+q.from+"&to="+q.to:0==n&&(m="&allPages=1"));"xmlpng"==c&&(y="1",c="png");if(("xmlpng"==c||"svg"==c)&&null!=this.pages&&null!=this.currentPage)for(n=0;n<this.pages.length;n++)if(this.pages[n]==this.currentPage){k="&from="+n;break}n=d.background;"png"!=c&&"pdf"!=c&&"svg"!=c||!l?l||null!=n&&n!=mxConstants.NONE||(n="#ffffff"):n=mxConstants.NONE;l={globalVars:d.getExportVariables()};z&&(l.grid={size:d.gridSize,steps:d.view.gridSteps,color:d.view.gridColor});Graph.translateDiagram&&
-(l.diagramLanguage=Graph.diagramLanguage);return new mxXmlRequest(EXPORT_URL,"format="+c+k+m+"&bg="+(null!=n?n:mxConstants.NONE)+"&base64="+f+"&embedXml="+y+"&xml="+encodeURIComponent(e)+(null!=b?"&filename="+encodeURIComponent(b):"")+"&extras="+encodeURIComponent(JSON.stringify(l))+(null!=u?"&scale="+u:"")+(null!=t?"&border="+t:"")+(D&&isFinite(D)?"&w="+D:"")+(E&&isFinite(E)?"&h="+E:""))};EditorUi.prototype.setMode=function(b,c){this.mode=b};EditorUi.prototype.loadDescriptor=function(b,c,e){var d=
+(l.diagramLanguage=Graph.diagramLanguage);return new mxXmlRequest(EXPORT_URL,"format="+c+k+m+"&bg="+(null!=n?n:mxConstants.NONE)+"&base64="+f+"&embedXml="+y+"&xml="+encodeURIComponent(e)+(null!=b?"&filename="+encodeURIComponent(b):"")+"&extras="+encodeURIComponent(JSON.stringify(l))+(null!=v?"&scale="+v:"")+(null!=t?"&border="+t:"")+(D&&isFinite(D)?"&w="+D:"")+(F&&isFinite(F)?"&h="+F:""))};EditorUi.prototype.setMode=function(b,c){this.mode=b};EditorUi.prototype.loadDescriptor=function(b,c,e){var d=
window.location.hash,g=mxUtils.bind(this,function(e){var g=null!=b.data?b.data:"";null!=e&&0<e.length&&(0<g.length&&(g+="\n"),g+=e);e=new LocalFile(this,"csv"!=b.format&&0<g.length?g:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);e.getHash=function(){return d};this.fileLoaded(e);"csv"==b.format&&this.importCsv(g,mxUtils.bind(this,function(b){this.editor.undoManager.clear();this.editor.setModified(!1);this.editor.setStatus("")}));if(null!=b.update){var k=
null!=b.interval?parseInt(b.interval):6E4,f=null,l=mxUtils.bind(this,function(){var d=this.currentPage;mxUtils.post(b.update,"xml="+encodeURIComponent(mxUtils.getXml(this.editor.getGraphXml())),mxUtils.bind(this,function(b){d===this.currentPage&&(200<=b.getStatus()&&300>=b.getStatus()?(this.updateDiagram(b.getText()),m()):this.handleError({message:mxResources.get("error")+" "+b.getStatus()}))}),mxUtils.bind(this,function(b){this.handleError(b)}))}),m=mxUtils.bind(this,function(){window.clearTimeout(f);
f=window.setTimeout(l,k)});this.editor.addListener("pageSelected",mxUtils.bind(this,function(){m();l()}));m();l()}null!=c&&c()});null!=b.url&&0<b.url.length?this.editor.loadUrl(b.url,mxUtils.bind(this,function(b){g(b)}),mxUtils.bind(this,function(b){null!=e&&e(b)})):g("")};EditorUi.prototype.updateDiagram=function(b){function d(b){var d=new mxCellOverlay(b.image||f.warningImage,b.tooltip,b.align,b.valign,b.offset);d.addListener(mxEvent.CLICK,function(d,c){e.alert(b.tooltip)});return d}var c=null,
e=this;if(null!=b&&0<b.length&&(c=mxUtils.parseXml(b),b=null!=c?c.documentElement:null,null!=b&&"updates"==b.nodeName)){var f=this.editor.graph,l=f.getModel();l.beginUpdate();var n=null;try{for(b=b.firstChild;null!=b;){if("update"==b.nodeName){var t=l.getCell(b.getAttribute("id"));if(null!=t){try{var z=b.getAttribute("value");if(null!=z){var y=mxUtils.parseXml(z).documentElement;if(null!=y)if("1"==y.getAttribute("replace-value"))l.setValue(t,y);else for(var q=y.attributes,D=0;D<q.length;D++)f.setAttributeForCell(t,
-q[D].nodeName,0<q[D].nodeValue.length?q[D].nodeValue:null)}}catch(M){null!=window.console&&console.log("Error in value for "+t.id+": "+M)}try{var E=b.getAttribute("style");null!=E&&f.model.setStyle(t,E)}catch(M){null!=window.console&&console.log("Error in style for "+t.id+": "+M)}try{var H=b.getAttribute("icon");if(null!=H){var N=0<H.length?JSON.parse(H):null;null!=N&&N.append||f.removeCellOverlays(t);null!=N&&f.addCellOverlay(t,d(N))}}catch(M){null!=window.console&&console.log("Error in icon for "+
-t.id+": "+M)}try{var A=b.getAttribute("geometry");if(null!=A){var A=JSON.parse(A),G=f.getCellGeometry(t);if(null!=G){G=G.clone();for(key in A){var I=parseFloat(A[key]);"dx"==key?G.x+=I:"dy"==key?G.y+=I:"dw"==key?G.width+=I:"dh"==key?G.height+=I:G[key]=parseFloat(A[key])}f.model.setGeometry(t,G)}}}catch(M){null!=window.console&&console.log("Error in icon for "+t.id+": "+M)}}}else if("model"==b.nodeName){for(var L=b.firstChild;null!=L&&L.nodeType!=mxConstants.NODETYPE_ELEMENT;)L=L.nextSibling;null!=
+q[D].nodeName,0<q[D].nodeValue.length?q[D].nodeValue:null)}}catch(N){null!=window.console&&console.log("Error in value for "+t.id+": "+N)}try{var F=b.getAttribute("style");null!=F&&f.model.setStyle(t,F)}catch(N){null!=window.console&&console.log("Error in style for "+t.id+": "+N)}try{var E=b.getAttribute("icon");if(null!=E){var O=0<E.length?JSON.parse(E):null;null!=O&&O.append||f.removeCellOverlays(t);null!=O&&f.addCellOverlay(t,d(O))}}catch(N){null!=window.console&&console.log("Error in icon for "+
+t.id+": "+N)}try{var B=b.getAttribute("geometry");if(null!=B){var B=JSON.parse(B),G=f.getCellGeometry(t);if(null!=G){G=G.clone();for(key in B){var H=parseFloat(B[key]);"dx"==key?G.x+=H:"dy"==key?G.y+=H:"dw"==key?G.width+=H:"dh"==key?G.height+=H:G[key]=parseFloat(B[key])}f.model.setGeometry(t,G)}}}catch(N){null!=window.console&&console.log("Error in icon for "+t.id+": "+N)}}}else if("model"==b.nodeName){for(var L=b.firstChild;null!=L&&L.nodeType!=mxConstants.NODETYPE_ELEMENT;)L=L.nextSibling;null!=
L&&(new mxCodec(b.firstChild)).decode(L,l)}else if("view"==b.nodeName){if(b.hasAttribute("scale")&&(f.view.scale=parseFloat(b.getAttribute("scale"))),b.hasAttribute("dx")||b.hasAttribute("dy"))f.view.translate=new mxPoint(parseFloat(b.getAttribute("dx")||0),parseFloat(b.getAttribute("dy")||0))}else"fit"==b.nodeName&&(n=b.hasAttribute("max-scale")?parseFloat(b.getAttribute("max-scale")):1);b=b.nextSibling}}finally{l.endUpdate()}null!=n&&this.chromelessResize&&this.chromelessResize(!0,n)}return c};
EditorUi.prototype.getCopyFilename=function(b,c){var d=null!=b&&null!=b.getTitle()?b.getTitle():this.defaultFilename,e="",k=d.lastIndexOf(".");0<=k&&(e=d.substring(k),d=d.substring(0,k));if(c)var f=new Date,k=f.getFullYear(),l=f.getMonth()+1,n=f.getDate(),z=f.getHours(),y=f.getMinutes(),f=f.getSeconds(),d=d+(" "+(k+"-"+l+"-"+n+"-"+z+"-"+y+"-"+f));return d=mxResources.get("copyOf",[d])+e};EditorUi.prototype.fileLoaded=function(b,c){var d=this.getCurrentFile();this.fileEditable=this.fileLoadedError=
null;this.setCurrentFile(null);var e=!1;this.hideDialog();null!=d&&(EditorUi.debug("File.closed",[d]),d.removeListener(this.descriptorChangedListener),d.close());this.editor.graph.model.clear();this.editor.undoManager.clear();var f=mxUtils.bind(this,function(){this.setGraphEnabled(!1);this.setCurrentFile(null);null!=d&&this.updateDocumentTitle();this.editor.graph.model.clear();this.editor.undoManager.clear();this.setBackgroundImage(null);!c&&null!=window.location.hash&&0<window.location.hash.length&&
(window.location.hash="");null!=this.fname&&(this.fnameWrapper.style.display="none",this.fname.innerHTML="",this.fname.setAttribute("title",mxResources.get("rename")));this.editor.setStatus("");this.updateUi();c||this.showSplash()});if(null!=b)try{mxClient.IS_SF&&"min"==uiTheme&&(this.diagramContainer.style.visibility="");this.openingFile=!0;this.setCurrentFile(b);b.addListener("descriptorChanged",this.descriptorChangedListener);b.addListener("contentChanged",this.descriptorChangedListener);b.open();
delete this.openingFile;this.setGraphEnabled(!0);this.setMode(b.getMode());this.editor.graph.model.prefix=Editor.guid()+"-";this.editor.undoManager.clear();this.descriptorChanged();this.updateUi();b.isEditable()?b.isModified()?(b.addUnsavedStatus(),null!=b.backupPatch&&b.patch([b.backupPatch])):this.editor.setStatus(""):this.editor.setStatus('<span class="geStatusAlert">'+mxUtils.htmlEntities(mxResources.get("readOnly"))+"</span>");!this.editor.isChromelessView()||this.editor.editable?(this.editor.graph.selectUnlockedLayer(),
this.showLayersDialog(),this.restoreLibraries(),window.self!==window.top&&window.focus()):this.editor.graph.isLightboxView()&&this.lightboxFit();this.chromelessResize&&this.chromelessResize();this.editor.fireEvent(new mxEventObject("fileLoaded"));e=!0;if(!this.isOffline()&&null!=b.getMode()){var k="1"==urlParams.sketch?"sketch":uiTheme;if(null==k)k="default";else if("sketch"==k||"min"==k)k+=Editor.isDarkMode()?"-dark":"-light";EditorUi.logEvent({category:b.getMode().toUpperCase()+"-OPEN-FILE-"+b.getHash(),
-action:"size_"+b.getSize(),label:"autosave_"+(this.editor.autosave?"on":"off")+"_theme_"+k})}EditorUi.debug("File.opened",[b]);"1"==urlParams.viewerOnlyMsg&&this.showAlert(mxResources.get("viewerOnlyMsg"));if(this.editor.editable&&this.mode==b.getMode()&&b.getMode()!=App.MODE_DEVICE&&null!=b.getMode())try{this.addRecent({id:b.getHash(),title:b.getTitle(),mode:b.getMode()})}catch(u){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(u){}}catch(u){this.fileLoadedError=
-u;if(EditorUi.enableLogging&&!this.isOffline())try{EditorUi.logEvent({category:"ERROR-LOAD-FILE-"+(null!=b?b.getHash():"none"),action:"message_"+u.message,label:"stack_"+u.stack})}catch(t){}k=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=d?this.fileLoaded(d):f()});c?k():this.handleError(u,mxResources.get("errorLoadingFile"),k,!0,null,null,!0)}else f();return e};EditorUi.prototype.getHashValueForPages=
+action:"size_"+b.getSize(),label:"autosave_"+(this.editor.autosave?"on":"off")+"_theme_"+k})}EditorUi.debug("File.opened",[b]);"1"==urlParams.viewerOnlyMsg&&this.showAlert(mxResources.get("viewerOnlyMsg"));if(this.editor.editable&&this.mode==b.getMode()&&b.getMode()!=App.MODE_DEVICE&&null!=b.getMode())try{this.addRecent({id:b.getHash(),title:b.getTitle(),mode:b.getMode()})}catch(v){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(v){}}catch(v){this.fileLoadedError=
+v;if(EditorUi.enableLogging&&!this.isOffline())try{EditorUi.logEvent({category:"ERROR-LOAD-FILE-"+(null!=b?b.getHash():"none"),action:"message_"+v.message,label:"stack_"+v.stack})}catch(t){}k=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=d?this.fileLoaded(d):f()});c?k():this.handleError(v,mxResources.get("errorLoadingFile"),k,!0,null,null,!0)}else f();return e};EditorUi.prototype.getHashValueForPages=
function(b,c){var d=0,e=new mxGraphModel,f=new mxCodec;null!=c&&(c.byteCount=0,c.attrCount=0,c.eltCount=0,c.nodeCount=0);for(var k=0;k<b.length;k++){this.updatePageRoot(b[k]);var l=b[k].node.cloneNode(!1);l.removeAttribute("name");e.root=b[k].root;var n=f.encode(e);this.editor.graph.saveViewState(b[k].viewState,n,!0);n.removeAttribute("pageWidth");n.removeAttribute("pageHeight");l.appendChild(n);null!=c&&(c.eltCount+=l.getElementsByTagName("*").length,c.nodeCount+=l.getElementsByTagName("mxCell").length);
d=(d<<5)-d+this.hashValue(l,function(b,d,c,e){return!e||"mxGeometry"!=b.nodeName&&"mxPoint"!=b.nodeName||"x"!=d&&"y"!=d&&"width"!=d&&"height"!=d?e&&"mxCell"==b.nodeName&&"previous"==d?null:c:Math.round(c)},c)<<0}return d};EditorUi.prototype.hashValue=function(b,c,e){var d=0;if(null!=b&&"object"===typeof b&&"number"===typeof b.nodeType&&"string"===typeof b.nodeName&&"function"===typeof b.getAttribute){null!=b.nodeName&&(d^=this.hashValue(b.nodeName,c,e));if(null!=b.attributes){null!=e&&(e.attrCount+=
b.attributes.length);for(var g=0;g<b.attributes.length;g++){var f=b.attributes[g].name,k=null!=c?c(b,f,b.attributes[g].value,!0):b.attributes[g].value;null!=k&&(d^=this.hashValue(f,c,e)+this.hashValue(k,c,e))}}if(null!=b.childNodes)for(g=0;g<b.childNodes.length;g++)d=(d<<5)-d+this.hashValue(b.childNodes[g],c,e)<<0}else if(null!=b&&"function"!==typeof b){b=String(b);c=0;null!=e&&(e.byteCount+=b.length);for(g=0;g<b.length;g++)c=(c<<5)-c+b.charCodeAt(g)<<0;d^=c}return d};EditorUi.prototype.descriptorChanged=
-function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(b,c,e,f,l,n,u){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(b){null==b&&(b=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,b,".scratchpad"))})):this.closeLibrary(this.scratchpad))};
+function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(b,c,e,f,l,n,v){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(b){null==b&&(b=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,b,".scratchpad"))})):this.closeLibrary(this.scratchpad))};
EditorUi.prototype.createLibraryDataFromImages=function(b){var d=mxUtils.createXmlDocument(),c=d.createElement("mxlibrary");mxUtils.setTextContent(c,JSON.stringify(b));d.appendChild(c);return mxUtils.getXml(d)};EditorUi.prototype.closeLibrary=function(b){null!=b&&(this.removeLibrarySidebar(b.getHash()),b.constructor!=LocalLibrary&&mxSettings.removeCustomLibrary(b.getHash()),".scratchpad"==b.title&&(this.scratchpad=null))};EditorUi.prototype.removeLibrarySidebar=function(b){var d=this.sidebar.palettes[b];
if(null!=d){for(var c=0;c<d.length;c++)d[c].parentNode.removeChild(d[c]);delete this.sidebar.palettes[b]}};EditorUi.prototype.repositionLibrary=function(b){var d=this.sidebar.container;if(null==b){var c=this.sidebar.palettes["L.scratchpad"];null==c&&(c=this.sidebar.palettes.search);null!=c&&(b=c[c.length-1].nextSibling)}b=null!=b?b:d.firstChild.nextSibling.nextSibling;var c=d.lastChild,e=c.previousSibling;d.insertBefore(c,b);d.insertBefore(e,c)};EditorUi.prototype.loadLibrary=function(b,c){var d=
mxUtils.parseXml(b.getData());if("mxlibrary"==d.documentElement.nodeName){var e=JSON.parse(mxUtils.getTextContent(d.documentElement));this.libraryLoaded(b,e,d.documentElement.getAttribute("title"),c)}else throw{message:mxResources.get("notALibraryFile")};};EditorUi.prototype.getLibraryStorageHint=function(b){return""};EditorUi.prototype.libraryLoaded=function(b,c,e,f){if(null!=this.sidebar){b.constructor!=LocalLibrary&&mxSettings.addCustomLibrary(b.getHash());".scratchpad"==b.title&&(this.scratchpad=
b);var d=this.sidebar.palettes[b.getHash()],d=null!=d?d[d.length-1].nextSibling:null;this.removeLibrarySidebar(b.getHash());var g=null,k=mxUtils.bind(this,function(d,c){0==d.length&&b.isEditable()?(null==g&&(g=document.createElement("div"),g.className="geDropTarget",mxUtils.write(g,mxResources.get("dragElementsHere"))),c.appendChild(g)):this.addLibraryEntries(d,c)});null!=this.sidebar&&null!=c&&this.sidebar.addEntries(c);null==e&&(e=b.getTitle(),null!=e&&/(\.xml)$/i.test(e)&&(e=e.substring(0,e.lastIndexOf("."))));
var l=this.sidebar.addPalette(b.getHash(),e,null!=f?f:!0,mxUtils.bind(this,function(b){k(c,b)}));this.repositionLibrary(d);var p=l.parentNode.previousSibling;f=p.getAttribute("title");null!=f&&0<f.length&&".scratchpad"!=b.title&&p.setAttribute("title",this.getLibraryStorageHint(b)+"\n"+f);var n=document.createElement("div");n.style.position="absolute";n.style.right="0px";n.style.top="0px";n.style.padding="8px";n.style.backgroundColor="inherit";p.style.position="relative";var q=document.createElement("img");
q.setAttribute("src",Editor.crossImage);q.setAttribute("title",mxResources.get("close"));q.setAttribute("valign","absmiddle");q.setAttribute("border","0");q.style.position="relative";q.style.top="2px";q.style.width="14px";q.style.cursor="pointer";q.style.margin="0 3px";Editor.isDarkMode()&&(q.style.filter="invert(100%)");var D=null;if(".scratchpad"!=b.title||this.closableScratchpad)n.appendChild(q),mxEvent.addListener(q,"click",mxUtils.bind(this,function(d){if(!mxEvent.isConsumed(d)){var c=mxUtils.bind(this,
-function(){this.closeLibrary(b)});null!=D?this.confirm(mxResources.get("allChangesLost"),null,c,mxResources.get("cancel"),mxResources.get("discardChanges")):c();mxEvent.consume(d)}}));if(b.isEditable()){var E=this.editor.graph,H=null,N=mxUtils.bind(this,function(d){this.showLibraryDialog(b.getTitle(),l,c,b,b.getMode());mxEvent.consume(d)}),A=mxUtils.bind(this,function(d){b.setModified(!0);b.isAutosave()?(null!=H&&null!=H.parentNode&&H.parentNode.removeChild(H),H=q.cloneNode(!1),H.setAttribute("src",
-Editor.spinImage),H.setAttribute("title",mxResources.get("saving")),H.style.cursor="default",H.style.marginRight="2px",H.style.marginTop="-2px",n.insertBefore(H,n.firstChild),p.style.paddingRight=18*n.childNodes.length+"px",this.saveLibrary(b.getTitle(),c,b,b.getMode(),!0,!0,function(){null!=H&&null!=H.parentNode&&(H.parentNode.removeChild(H),p.style.paddingRight=18*n.childNodes.length+"px")})):null==D&&(D=q.cloneNode(!1),D.setAttribute("src",Editor.saveImage),D.setAttribute("title",mxResources.get("save")),
-n.insertBefore(D,n.firstChild),mxEvent.addListener(D,"click",mxUtils.bind(this,function(d){this.saveLibrary(b.getTitle(),c,b,b.getMode(),b.constructor==LocalLibrary,!0,function(){null==D||b.isModified()||(p.style.paddingRight=18*n.childNodes.length+"px",D.parentNode.removeChild(D),D=null)});mxEvent.consume(d)})),p.style.paddingRight=18*n.childNodes.length+"px")}),G=mxUtils.bind(this,function(b,d,e,f){b=E.cloneCells(mxUtils.sortCells(E.model.getTopmostCells(b)));for(var k=0;k<b.length;k++){var m=E.getCellGeometry(b[k]);
-null!=m&&m.translate(-d.x,-d.y)}l.appendChild(this.sidebar.createVertexTemplateFromCells(b,d.width,d.height,f||"",!0,null,!1));b={xml:Graph.compress(mxUtils.getXml(this.editor.graph.encodeCells(b))),w:d.width,h:d.height};null!=f&&(b.title=f);c.push(b);A(e);null!=g&&null!=g.parentNode&&0<c.length&&(g.parentNode.removeChild(g),g=null)}),I=mxUtils.bind(this,function(b){if(E.isSelectionEmpty())E.getRubberband().isActive()?(E.getRubberband().execute(b),E.getRubberband().reset()):this.showError(mxResources.get("error"),
-mxResources.get("nothingIsSelected"),mxResources.get("ok"));else{var d=E.getSelectionCells(),c=E.view.getBounds(d),e=E.view.scale;c.x/=e;c.y/=e;c.width/=e;c.height/=e;c.x-=E.view.translate.x;c.y-=E.view.translate.y;G(d,c)}mxEvent.consume(b)});mxEvent.addGestureListeners(l,function(){},mxUtils.bind(this,function(b){E.isMouseDown&&null!=E.panningManager&&null!=E.graphHandler.first&&(E.graphHandler.suspend(),null!=E.graphHandler.hint&&(E.graphHandler.hint.style.visibility="hidden"),l.style.backgroundColor=
-"#f1f3f4",l.style.cursor="copy",E.panningManager.stop(),E.autoScroll=!1,mxEvent.consume(b))}),mxUtils.bind(this,function(b){E.isMouseDown&&null!=E.panningManager&&null!=E.graphHandler&&(l.style.backgroundColor="",l.style.cursor="default",this.sidebar.showTooltips=!0,E.panningManager.stop(),E.graphHandler.reset(),E.isMouseDown=!1,E.autoScroll=!0,I(b),mxEvent.consume(b))}));mxEvent.addListener(l,"mouseleave",mxUtils.bind(this,function(b){E.isMouseDown&&null!=E.graphHandler.first&&(E.graphHandler.resume(),
-null!=E.graphHandler.hint&&(E.graphHandler.hint.style.visibility="visible"),l.style.backgroundColor="",l.style.cursor="",E.autoScroll=!0)}));Graph.fileSupport&&(mxEvent.addListener(l,"dragover",mxUtils.bind(this,function(b){l.style.backgroundColor="#f1f3f4";b.dataTransfer.dropEffect="copy";l.style.cursor="copy";this.sidebar.hideTooltip();b.stopPropagation();b.preventDefault()})),mxEvent.addListener(l,"drop",mxUtils.bind(this,function(b){l.style.cursor="";l.style.backgroundColor="";0<b.dataTransfer.files.length&&
-this.importFiles(b.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(d,e,f,m,p,n,v,t,u){if(null!=d&&"image/"==e.substring(0,6))d="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(d),d=[new mxCell("",new mxGeometry(0,0,p,n),d)],d[0].vertex=!0,G(d,new mxRectangle(0,0,p,n),b,mxEvent.isAltDown(b)?null:v.substring(0,v.lastIndexOf(".")).replace(/_/g," ")),null!=g&&null!=g.parentNode&&0<c.length&&(g.parentNode.removeChild(g),
-g=null);else{var y=!1,z=mxUtils.bind(this,function(d,e){if(null!=d&&"application/pdf"==e){var f=Editor.extractGraphModelFromPdf(d);null!=f&&0<f.length&&(d=f)}if(null!=d)if(f=mxUtils.parseXml(d),"mxlibrary"==f.documentElement.nodeName)try{var m=JSON.parse(mxUtils.getTextContent(f.documentElement));k(m,l);c=c.concat(m);A(b);this.spinner.stop();y=!0}catch(oa){}else if("mxfile"==f.documentElement.nodeName)try{for(var p=f.documentElement.getElementsByTagName("diagram"),m=0;m<p.length;m++){var n=this.stringToCells(Editor.getDiagramNodeXml(p[m])),
-v=this.editor.graph.getBoundingBoxFromGeometry(n);G(n,new mxRectangle(0,0,v.width,v.height),b)}y=!0}catch(oa){null!=window.console&&console.log("error in drop handler:",oa)}y||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));null!=g&&null!=g.parentNode&&0<c.length&&(g.parentNode.removeChild(g),g=null)});null!=u&&null!=v&&(/(\.v(dx|sdx?))($|\?)/i.test(v)||/(\.vs(x|sx?))($|\?)/i.test(v))?this.importVisio(u,function(b){z(b,"text/xml")},null,v):!this.isOffline()&&
-(new XMLHttpRequest).upload&&this.isRemoteFileFormat(d,v)&&null!=u?this.parseFile(u,mxUtils.bind(this,function(b){4==b.readyState&&(this.spinner.stop(),200<=b.status&&299>=b.status?z(b.responseText,"text/xml"):this.handleError({message:mxResources.get(413==b.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):z(d,e)}}));b.stopPropagation();b.preventDefault()})),mxEvent.addListener(l,"dragleave",function(b){l.style.cursor="";l.style.backgroundColor="";b.stopPropagation();
-b.preventDefault()}));q=q.cloneNode(!1);q.setAttribute("src",Editor.editImage);q.setAttribute("title",mxResources.get("edit"));n.insertBefore(q,n.firstChild);mxEvent.addListener(q,"click",N);mxEvent.addListener(l,"dblclick",function(b){mxEvent.getSource(b)==l&&N(b)});f=q.cloneNode(!1);f.setAttribute("src",Editor.plusImage);f.setAttribute("title",mxResources.get("add"));n.insertBefore(f,n.firstChild);mxEvent.addListener(f,"click",I);this.isOffline()||".scratchpad"!=b.title||null==EditorUi.scratchpadHelpLink||
+function(){this.closeLibrary(b)});null!=D?this.confirm(mxResources.get("allChangesLost"),null,c,mxResources.get("cancel"),mxResources.get("discardChanges")):c();mxEvent.consume(d)}}));if(b.isEditable()){var F=this.editor.graph,E=null,O=mxUtils.bind(this,function(d){this.showLibraryDialog(b.getTitle(),l,c,b,b.getMode());mxEvent.consume(d)}),B=mxUtils.bind(this,function(d){b.setModified(!0);b.isAutosave()?(null!=E&&null!=E.parentNode&&E.parentNode.removeChild(E),E=q.cloneNode(!1),E.setAttribute("src",
+Editor.spinImage),E.setAttribute("title",mxResources.get("saving")),E.style.cursor="default",E.style.marginRight="2px",E.style.marginTop="-2px",n.insertBefore(E,n.firstChild),p.style.paddingRight=18*n.childNodes.length+"px",this.saveLibrary(b.getTitle(),c,b,b.getMode(),!0,!0,function(){null!=E&&null!=E.parentNode&&(E.parentNode.removeChild(E),p.style.paddingRight=18*n.childNodes.length+"px")})):null==D&&(D=q.cloneNode(!1),D.setAttribute("src",Editor.saveImage),D.setAttribute("title",mxResources.get("save")),
+n.insertBefore(D,n.firstChild),mxEvent.addListener(D,"click",mxUtils.bind(this,function(d){this.saveLibrary(b.getTitle(),c,b,b.getMode(),b.constructor==LocalLibrary,!0,function(){null==D||b.isModified()||(p.style.paddingRight=18*n.childNodes.length+"px",D.parentNode.removeChild(D),D=null)});mxEvent.consume(d)})),p.style.paddingRight=18*n.childNodes.length+"px")}),G=mxUtils.bind(this,function(b,d,e,f){b=F.cloneCells(mxUtils.sortCells(F.model.getTopmostCells(b)));for(var k=0;k<b.length;k++){var m=F.getCellGeometry(b[k]);
+null!=m&&m.translate(-d.x,-d.y)}l.appendChild(this.sidebar.createVertexTemplateFromCells(b,d.width,d.height,f||"",!0,null,!1));b={xml:Graph.compress(mxUtils.getXml(this.editor.graph.encodeCells(b))),w:d.width,h:d.height};null!=f&&(b.title=f);c.push(b);B(e);null!=g&&null!=g.parentNode&&0<c.length&&(g.parentNode.removeChild(g),g=null)}),H=mxUtils.bind(this,function(b){if(F.isSelectionEmpty())F.getRubberband().isActive()?(F.getRubberband().execute(b),F.getRubberband().reset()):this.showError(mxResources.get("error"),
+mxResources.get("nothingIsSelected"),mxResources.get("ok"));else{var d=F.getSelectionCells(),c=F.view.getBounds(d),e=F.view.scale;c.x/=e;c.y/=e;c.width/=e;c.height/=e;c.x-=F.view.translate.x;c.y-=F.view.translate.y;G(d,c)}mxEvent.consume(b)});mxEvent.addGestureListeners(l,function(){},mxUtils.bind(this,function(b){F.isMouseDown&&null!=F.panningManager&&null!=F.graphHandler.first&&(F.graphHandler.suspend(),null!=F.graphHandler.hint&&(F.graphHandler.hint.style.visibility="hidden"),l.style.backgroundColor=
+"#f1f3f4",l.style.cursor="copy",F.panningManager.stop(),F.autoScroll=!1,mxEvent.consume(b))}),mxUtils.bind(this,function(b){F.isMouseDown&&null!=F.panningManager&&null!=F.graphHandler&&(l.style.backgroundColor="",l.style.cursor="default",this.sidebar.showTooltips=!0,F.panningManager.stop(),F.graphHandler.reset(),F.isMouseDown=!1,F.autoScroll=!0,H(b),mxEvent.consume(b))}));mxEvent.addListener(l,"mouseleave",mxUtils.bind(this,function(b){F.isMouseDown&&null!=F.graphHandler.first&&(F.graphHandler.resume(),
+null!=F.graphHandler.hint&&(F.graphHandler.hint.style.visibility="visible"),l.style.backgroundColor="",l.style.cursor="",F.autoScroll=!0)}));Graph.fileSupport&&(mxEvent.addListener(l,"dragover",mxUtils.bind(this,function(b){l.style.backgroundColor="#f1f3f4";b.dataTransfer.dropEffect="copy";l.style.cursor="copy";this.sidebar.hideTooltip();b.stopPropagation();b.preventDefault()})),mxEvent.addListener(l,"drop",mxUtils.bind(this,function(b){l.style.cursor="";l.style.backgroundColor="";0<b.dataTransfer.files.length&&
+this.importFiles(b.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(d,e,f,m,p,n,u,t,v){if(null!=d&&"image/"==e.substring(0,6))d="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(d),d=[new mxCell("",new mxGeometry(0,0,p,n),d)],d[0].vertex=!0,G(d,new mxRectangle(0,0,p,n),b,mxEvent.isAltDown(b)?null:u.substring(0,u.lastIndexOf(".")).replace(/_/g," ")),null!=g&&null!=g.parentNode&&0<c.length&&(g.parentNode.removeChild(g),
+g=null);else{var y=!1,z=mxUtils.bind(this,function(d,e){if(null!=d&&"application/pdf"==e){var f=Editor.extractGraphModelFromPdf(d);null!=f&&0<f.length&&(d=f)}if(null!=d)if(f=mxUtils.parseXml(d),"mxlibrary"==f.documentElement.nodeName)try{var m=JSON.parse(mxUtils.getTextContent(f.documentElement));k(m,l);c=c.concat(m);B(b);this.spinner.stop();y=!0}catch(ha){}else if("mxfile"==f.documentElement.nodeName)try{for(var p=f.documentElement.getElementsByTagName("diagram"),m=0;m<p.length;m++){var n=this.stringToCells(Editor.getDiagramNodeXml(p[m])),
+u=this.editor.graph.getBoundingBoxFromGeometry(n);G(n,new mxRectangle(0,0,u.width,u.height),b)}y=!0}catch(ha){null!=window.console&&console.log("error in drop handler:",ha)}y||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));null!=g&&null!=g.parentNode&&0<c.length&&(g.parentNode.removeChild(g),g=null)});null!=v&&null!=u&&(/(\.v(dx|sdx?))($|\?)/i.test(u)||/(\.vs(x|sx?))($|\?)/i.test(u))?this.importVisio(v,function(b){z(b,"text/xml")},null,u):!this.isOffline()&&
+(new XMLHttpRequest).upload&&this.isRemoteFileFormat(d,u)&&null!=v?this.parseFile(v,mxUtils.bind(this,function(b){4==b.readyState&&(this.spinner.stop(),200<=b.status&&299>=b.status?z(b.responseText,"text/xml"):this.handleError({message:mxResources.get(413==b.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):z(d,e)}}));b.stopPropagation();b.preventDefault()})),mxEvent.addListener(l,"dragleave",function(b){l.style.cursor="";l.style.backgroundColor="";b.stopPropagation();
+b.preventDefault()}));q=q.cloneNode(!1);q.setAttribute("src",Editor.editImage);q.setAttribute("title",mxResources.get("edit"));n.insertBefore(q,n.firstChild);mxEvent.addListener(q,"click",O);mxEvent.addListener(l,"dblclick",function(b){mxEvent.getSource(b)==l&&O(b)});f=q.cloneNode(!1);f.setAttribute("src",Editor.plusImage);f.setAttribute("title",mxResources.get("add"));n.insertBefore(f,n.firstChild);mxEvent.addListener(f,"click",H);this.isOffline()||".scratchpad"!=b.title||null==EditorUi.scratchpadHelpLink||
(f=document.createElement("span"),f.setAttribute("title",mxResources.get("help")),f.style.cssText="color:#a3a3a3;text-decoration:none;margin-right:2px;cursor:pointer;",mxUtils.write(f,"?"),mxEvent.addGestureListeners(f,mxUtils.bind(this,function(b){this.openLink(EditorUi.scratchpadHelpLink);mxEvent.consume(b)})),n.insertBefore(f,n.firstChild))}p.appendChild(n);p.style.paddingRight=18*n.childNodes.length+"px"}};EditorUi.prototype.addLibraryEntries=function(b,c){for(var d=0;d<b.length;d++){var e=b[d],
f=e.data;if(null!=f){var f=this.convertDataUri(f),k="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==e.aspect&&(k+="aspect=fixed;");c.appendChild(this.sidebar.createVertexTemplate(k+"image="+f,e.w,e.h,"",e.title||"",!1,null,!0))}else null!=e.xml&&(f=this.stringToCells(Graph.decompress(e.xml)),0<f.length&&c.appendChild(this.sidebar.createVertexTemplateFromCells(f,e.w,e.h,e.title||"",!0,null,!0)))}};EditorUi.prototype.getResource=function(b){return null!=b?b[mxLanguage]||
b.main:null};EditorUi.prototype.footerHeight=0;"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64);EditorUi.initTheme=function(){"atlas"==uiTheme?(mxClient.link("stylesheet",STYLE_PATH+"/atlas.css"),"undefined"!==typeof Toolbar&&(Toolbar.prototype.unselectedBackground="linear-gradient(rgb(255, 255, 255) 0px, rgb(242, 242, 242) 100%)",Toolbar.prototype.selectedBackground="rgb(242, 242, 242)"),Editor.prototype.initialTopSpacing=3,EditorUi.prototype.menubarHeight=
41,EditorUi.prototype.toolbarHeight=38):Editor.isDarkMode()&&(mxClient.link("stylesheet",STYLE_PATH+"/dark.css"),Dialog.backdropColor=Editor.darkColor,Format.inactiveTabBackgroundColor="black",Graph.prototype.defaultThemeName="darkTheme",Graph.prototype.shapeBackgroundColor=Editor.darkColor,Graph.prototype.shapeForegroundColor=Editor.lightColor,Graph.prototype.defaultPageBackgroundColor=Editor.darkColor,Graph.prototype.defaultPageBorderColor="#505759",BaseFormatPanel.prototype.buttonBackgroundColor=
Editor.darkColor,mxGraphHandler.prototype.previewColor="#cccccc",StyleFormatPanel.prototype.defaultStrokeColor="#cccccc",mxConstants.DROP_TARGET_COLOR="#00ff00");Editor.sketchFontFamily="Architects Daughter";Editor.sketchFontSource="https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter";Editor.sketchFonts=[{fontFamily:Editor.sketchFontFamily,fontUrl:decodeURIComponent(Editor.sketchFontSource)}];"1"==urlParams.sketch&&("undefined"!==typeof Menus&&(Menus.prototype.defaultFonts=Menus.prototype.defaultFonts.concat(Editor.sketchFonts)),
Graph.prototype.defaultVertexStyle={hachureGap:"4"},Graph.prototype.defaultEdgeStyle={edgeStyle:"none",rounded:"0",curved:"1",jettySize:"auto",orthogonalLoop:"1",endArrow:"open",startSize:"14",endSize:"14",sourcePerimeterSpacing:"8",targetPerimeterSpacing:"8"},Editor.configurationKey=".sketch-configuration",Editor.settingsKey=".sketch-config",Graph.prototype.defaultGridEnabled="1"==urlParams.grid,Graph.prototype.defaultPageVisible="1"==urlParams.pv,Graph.prototype.defaultEdgeLength=120,Editor.fitWindowBorders=
-new mxRectangle(60,30,30,30))};EditorUi.initTheme();EditorUi.prototype.showImageDialog=function(b,c,e,f,l,n,u){b=new ImageDialog(this,b,c,e,f,l,n,u);this.showDialog(b.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);b.init()};EditorUi.prototype.showBackgroundImageDialog=function(b,c){b=null!=b?b:mxUtils.bind(this,function(b,d){if(!d){var c=new ChangePageSetup(this,null,b);c.ignoreColor=!0;this.editor.graph.model.execute(c)}});var d=new BackgroundImageDialog(this,b,c);this.showDialog(d.container,
+new mxRectangle(60,30,30,30))};EditorUi.initTheme();EditorUi.prototype.showImageDialog=function(b,c,e,f,l,n,v){b=new ImageDialog(this,b,c,e,f,l,n,v);this.showDialog(b.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);b.init()};EditorUi.prototype.showBackgroundImageDialog=function(b,c){b=null!=b?b:mxUtils.bind(this,function(b,d){if(!d){var c=new ChangePageSetup(this,null,b);c.ignoreColor=!0;this.editor.graph.model.execute(c)}});var d=new BackgroundImageDialog(this,b,c);this.showDialog(d.container,
360,200,!0,!0);d.init()};EditorUi.prototype.showLibraryDialog=function(b,c,e,f,l){b=new LibraryDialog(this,b,c,e,f,l);this.showDialog(b.container,640,440,!0,!1,mxUtils.bind(this,function(b){b&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));b.init()};var e=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=function(b){var d=e.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(b){this.editor.graph.isSelectionEmpty()&&
d.refresh()}));return d};EditorUi.prototype.createSidebarFooterContainer=function(){var b=this.createDiv("geSidebarContainer geSidebarFooter");b.style.position="absolute";b.style.overflow="hidden";var c=document.createElement("a");c.className="geTitle";c.style.color="#DF6C0C";c.style.fontWeight="bold";c.style.height="100%";c.style.paddingTop="9px";c.innerHTML="<span>+</span>";var e=c.getElementsByTagName("span")[0];e.style.fontSize="18px";e.style.marginRight="5px";mxUtils.write(c,mxResources.get("moreShapes")+
-"...");mxEvent.addListener(c,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(b){b.preventDefault()}));mxEvent.addListener(c,"click",mxUtils.bind(this,function(b){this.actions.get("shapes").funct();mxEvent.consume(b)}));b.appendChild(c);return b};EditorUi.prototype.handleError=function(b,c,e,f,l,n,u){var d=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},g=null!=b&&null!=b.error?b.error:b;if(null!=b&&null!=b.stack&&null!=b.message)try{u?null!=
-window.console&&console.error("EditorUi.handleError:",b):EditorUi.logError("Caught: "+(""==b.message&&null!=b.name)?b.name:b.message,b.filename,b.lineNumber,b.columnNumber,b,"INFO")}catch(H){}if(null!=g||null!=c){u=mxUtils.htmlEntities(mxResources.get("unknownError"));var k=mxResources.get("ok"),m=null;c=null!=c?c:mxResources.get("error");if(null!=g){null!=g.retry&&(k=mxResources.get("cancel"),m=function(){d();g.retry()});if(404==g.code||404==g.status||403==g.code){u=403==g.code?null!=g.message?mxUtils.htmlEntities(g.message):
+"...");mxEvent.addListener(c,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(b){b.preventDefault()}));mxEvent.addListener(c,"click",mxUtils.bind(this,function(b){this.actions.get("shapes").funct();mxEvent.consume(b)}));b.appendChild(c);return b};EditorUi.prototype.handleError=function(b,c,e,f,l,n,v){var d=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},g=null!=b&&null!=b.error?b.error:b;if(null!=b&&null!=b.stack&&null!=b.message)try{v?null!=
+window.console&&console.error("EditorUi.handleError:",b):EditorUi.logError("Caught: "+(""==b.message&&null!=b.name)?b.name:b.message,b.filename,b.lineNumber,b.columnNumber,b,"INFO")}catch(E){}if(null!=g||null!=c){v=mxUtils.htmlEntities(mxResources.get("unknownError"));var k=mxResources.get("ok"),m=null;c=null!=c?c:mxResources.get("error");if(null!=g){null!=g.retry&&(k=mxResources.get("cancel"),m=function(){d();g.retry()});if(404==g.code||404==g.status||403==g.code){v=403==g.code?null!=g.message?mxUtils.htmlEntities(g.message):
mxUtils.htmlEntities(mxResources.get("accessDenied")):null!=l?l:mxUtils.htmlEntities(mxResources.get("fileNotFoundOrDenied")+(null!=this.drive&&null!=this.drive.user?" ("+this.drive.user.displayName+", "+this.drive.user.email+")":""));var p=null!=l?null:null!=n?n:window.location.hash;if(null!=p&&("#G"==p.substring(0,2)||"#Uhttps%3A%2F%2Fdrive.google.com%2Fuc%3Fid%3D"==p.substring(0,45))&&(null!=b&&null!=b.error&&(null!=b.error.errors&&0<b.error.errors.length&&"fileAccess"==b.error.errors[0].reason||
-null!=b.error.data&&0<b.error.data.length&&"fileAccess"==b.error.data[0].reason)||404==g.code||404==g.status)){p="#U"==p.substring(0,2)?p.substring(45,p.lastIndexOf("%26ex")):p.substring(2);this.showError(c,u,mxResources.get("openInNewWindow"),mxUtils.bind(this,function(){this.editor.graph.openLink("https://drive.google.com/open?id="+p);this.handleError(b,c,e,f,l)}),m,mxResources.get("changeUser"),mxUtils.bind(this,function(){function b(){g.innerHTML="";for(var b=0;b<d.length;b++){var c=document.createElement("option");
+null!=b.error.data&&0<b.error.data.length&&"fileAccess"==b.error.data[0].reason)||404==g.code||404==g.status)){p="#U"==p.substring(0,2)?p.substring(45,p.lastIndexOf("%26ex")):p.substring(2);this.showError(c,v,mxResources.get("openInNewWindow"),mxUtils.bind(this,function(){this.editor.graph.openLink("https://drive.google.com/open?id="+p);this.handleError(b,c,e,f,l)}),m,mxResources.get("changeUser"),mxUtils.bind(this,function(){function b(){g.innerHTML="";for(var b=0;b<d.length;b++){var c=document.createElement("option");
mxUtils.write(c,d[b].displayName);c.value=b;g.appendChild(c);c=document.createElement("option");c.innerHTML="&nbsp;&nbsp;&nbsp;";mxUtils.write(c,"<"+d[b].email+">");c.setAttribute("disabled","disabled");g.appendChild(c)}c=document.createElement("option");mxUtils.write(c,mxResources.get("addAccount"));c.value=d.length;g.appendChild(c)}var d=this.drive.getUsersList(),c=document.createElement("div"),e=document.createElement("span");e.style.marginTop="6px";mxUtils.write(e,mxResources.get("changeUser")+
": ");c.appendChild(e);var g=document.createElement("select");g.style.width="200px";b();mxEvent.addListener(g,"change",mxUtils.bind(this,function(){var c=g.value,e=d.length!=c;e&&this.drive.setUser(d[c]);this.drive.authorize(e,mxUtils.bind(this,function(){e||(d=this.drive.getUsersList(),b())}),mxUtils.bind(this,function(b){this.handleError(b)}),!0)}));c.appendChild(g);c=new CustomDialog(this,c,mxUtils.bind(this,function(){this.loadFile(window.location.hash.substr(1),!0)}));this.showDialog(c.container,
-300,100,!0,!0)}),mxResources.get("cancel"),mxUtils.bind(this,function(){this.hideDialog();null!=e&&e()}),480,150);return}}null!=g.message?u=""==g.message&&null!=g.name?mxUtils.htmlEntities(g.name):mxUtils.htmlEntities(g.message):null!=g.response&&null!=g.response.error?u=mxUtils.htmlEntities(g.response.error):"undefined"!==typeof window.App&&(g.code==App.ERROR_TIMEOUT?u=mxUtils.htmlEntities(mxResources.get("timeout")):g.code==App.ERROR_BUSY?u=mxUtils.htmlEntities(mxResources.get("busy")):"string"===
-typeof g&&0<g.length&&(u=mxUtils.htmlEntities(g)))}var v=n=null;null!=g&&null!=g.helpLink?(n=mxResources.get("help"),v=mxUtils.bind(this,function(){return this.editor.graph.openLink(g.helpLink)})):null!=g&&null!=g.ownerEmail&&(n=mxResources.get("contactOwner"),u+=mxUtils.htmlEntities(" ("+n+": "+g.ownerEmail+")"),v=mxUtils.bind(this,function(){return this.openLink("mailto:"+mxUtils.htmlEntities(g.ownerEmail))}));this.showError(c,u,k,e,m,null,null,n,v,null,null,null,f?e:null)}else null!=e&&e()};EditorUi.prototype.alert=
+300,100,!0,!0)}),mxResources.get("cancel"),mxUtils.bind(this,function(){this.hideDialog();null!=e&&e()}),480,150);return}}null!=g.message?v=""==g.message&&null!=g.name?mxUtils.htmlEntities(g.name):mxUtils.htmlEntities(g.message):null!=g.response&&null!=g.response.error?v=mxUtils.htmlEntities(g.response.error):"undefined"!==typeof window.App&&(g.code==App.ERROR_TIMEOUT?v=mxUtils.htmlEntities(mxResources.get("timeout")):g.code==App.ERROR_BUSY?v=mxUtils.htmlEntities(mxResources.get("busy")):"string"===
+typeof g&&0<g.length&&(v=mxUtils.htmlEntities(g)))}var u=n=null;null!=g&&null!=g.helpLink?(n=mxResources.get("help"),u=mxUtils.bind(this,function(){return this.editor.graph.openLink(g.helpLink)})):null!=g&&null!=g.ownerEmail&&(n=mxResources.get("contactOwner"),v+=mxUtils.htmlEntities(" ("+n+": "+g.ownerEmail+")"),u=mxUtils.bind(this,function(){return this.openLink("mailto:"+mxUtils.htmlEntities(g.ownerEmail))}));this.showError(c,v,k,e,m,null,null,n,u,null,null,null,f?e:null)}else null!=e&&e()};EditorUi.prototype.alert=
function(b,c,e){b=new ErrorDialog(this,null,b,mxResources.get("ok"),c);this.showDialog(b.container,e||340,100,!0,!1);b.init()};EditorUi.prototype.confirm=function(b,c,e,f,l,n){var d=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},g=Math.min(200,28*Math.ceil(b.length/50));b=new ConfirmDialog(this,b,function(){d();null!=c&&c()},function(){d();null!=e&&e()},f,l,null,null,null,null,g);this.showDialog(b.container,340,46+g,!0,n);b.init()};EditorUi.prototype.showBanner=function(b,
c,e,f){var d=!1;if(!(this.bannerShowing||this["hideBanner"+b]||isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings["close"+b])){var g=document.createElement("div");g.style.cssText="position:absolute;bottom:10px;left:50%;max-width:90%;padding:18px 34px 12px 20px;font-size:16px;font-weight:bold;white-space:nowrap;cursor:pointer;z-index:"+mxPopupMenu.prototype.zIndex+";";mxUtils.setPrefixedStyle(g.style,"box-shadow","1px 1px 2px 0px #ddd");mxUtils.setPrefixedStyle(g.style,"transform",
"translate(-50%,120%)");mxUtils.setPrefixedStyle(g.style,"transition","all 1s ease");g.className="geBtn gePrimaryBtn";d=document.createElement("img");d.setAttribute("src",IMAGE_PATH+"/logo.png");d.setAttribute("border","0");d.setAttribute("align","absmiddle");d.style.cssText="margin-top:-4px;margin-left:8px;margin-right:12px;width:26px;height:26px;";g.appendChild(d);d=document.createElement("img");d.setAttribute("src",Dialog.prototype.closeImage);d.setAttribute("title",mxResources.get(f?"doNotShowAgain":
@@ -3529,10 +3529,10 @@ return b};EditorUi.prototype.saveCanvas=function(b,c,e,f,l){var d="jpeg"==e?"jpg
mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(b,c){var d=new TextareaDialog(this,b,c,null,null,mxResources.get("close"));this.showDialog(d.container,620,460,!0,!0,null,null,null,null,!0);d.init();document.execCommand("selectall",!1,null)};EditorUi.prototype.doSaveLocalFile=function(b,c,e,f,l,n){"text/xml"!=e||/(\.drawio)$/i.test(c)||/(\.xml)$/i.test(c)||/(\.svg)$/i.test(c)||/(\.html)$/i.test(c)||(c=c+"."+(null!=n?n:"drawio"));if(window.Blob&&navigator.msSaveOrOpenBlob)b=f?this.base64ToBlob(b,
e):new Blob([b],{type:e}),navigator.msSaveOrOpenBlob(b,c);else if(mxClient.IS_IE)e=window.open("about:blank","_blank"),null==e?mxUtils.popup(b,!0):(e.document.write(b),e.document.close(),e.document.execCommand("SaveAs",!0,c),e.close());else if(mxClient.IS_IOS&&this.isOffline())navigator.standalone||null==e||"image/"!=e.substring(0,6)?this.showTextDialog(c+":",b):this.openInNewWindow(b,e,f);else{var d=document.createElement("a");n=(null==navigator.userAgent||0>navigator.userAgent.indexOf("PaleMoon/"))&&
"undefined"!==typeof d.download;if(mxClient.IS_GC&&null!=navigator.userAgent){var g=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);n=65==(g?parseInt(g[2],10):!1)?!1:n}if(n||this.isOffline()){d.href=URL.createObjectURL(f?this.base64ToBlob(b,e):new Blob([b],{type:e}));n?d.download=c:d.setAttribute("target","_blank");document.body.appendChild(d);try{window.setTimeout(function(){URL.revokeObjectURL(d.href)},2E4),d.click(),d.parentNode.removeChild(d)}catch(z){}}else this.createEchoRequest(b,c,e,
-f,l).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(b,c,e,f,l,n){b="xml="+encodeURIComponent(b);return new mxXmlRequest(SAVE_URL,b+(null!=e?"&mime="+e:"")+(null!=l?"&format="+l:"")+(null!=n?"&base64="+n:"")+(null!=c?"&filename="+encodeURIComponent(c):"")+(f?"&binary=1":""))};EditorUi.prototype.base64ToBlob=function(b,c){c=c||"";for(var d=atob(b),e=d.length,f=Math.ceil(e/1024),k=Array(f),l=0;l<f;++l){for(var n=1024*l,q=Math.min(n+1024,e),y=Array(q-n),F=0;n<q;++F,++n)y[F]=
-d[n].charCodeAt(0);k[l]=new Uint8Array(y)}return new Blob(k,{type:c})};EditorUi.prototype.saveLocalFile=function(b,c,e,f,l,n,u,t){n=null!=n?n:!1;u=null!=u?u:"vsdx"!=l&&(!mxClient.IS_IOS||!navigator.standalone);l=this.getServiceCount(n);isLocalStorage&&l++;var d=4>=l?2:6<l?4:3;c=new CreateDialog(this,c,mxUtils.bind(this,function(d,c){try{if("_blank"==c)if(null!=e&&"image/"==e.substring(0,6))this.openInNewWindow(b,e,f);else if(null!=e&&"text/html"==e.substring(0,9)){var g=new EmbedDialog(this,b);this.showDialog(g.container,
-450,240,!0,!0);g.init()}else{var k=window.open("about:blank");null==k?mxUtils.popup(b,!0):(k.document.write("<pre>"+mxUtils.htmlEntities(b,!1)+"</pre>"),k.document.close())}else c==App.MODE_DEVICE||"download"==c?this.doSaveLocalFile(b,d,e,f,null,t):null!=d&&0<d.length&&this.pickFolder(c,mxUtils.bind(this,function(g){try{this.exportFile(b,d,e,f,c,g)}catch(N){this.handleError(N)}}))}catch(H){this.handleError(H)}}),mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),
-!1,n,u,null,1<l,d,b,e,f);n=this.isServices(l)?l>d?390:280:160;this.showDialog(c.container,420,n,!0,!0);c.init()};EditorUi.prototype.openInNewWindow=function(b,c,e){var d=window.open("about:blank");null==d||null==d.document?mxUtils.popup(b,!0):("image/svg+xml"!=c||mxClient.IS_SVG?"image/svg+xml"==c?d.document.write("<html>"+b+"</html>"):(b=e?b:btoa(unescape(encodeURIComponent(b))),d.document.write('<html><img style="max-width:100%;" src="data:'+c+";base64,"+b+'"/></html>')):d.document.write("<html><pre>"+
+f,l).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(b,c,e,f,l,n){b="xml="+encodeURIComponent(b);return new mxXmlRequest(SAVE_URL,b+(null!=e?"&mime="+e:"")+(null!=l?"&format="+l:"")+(null!=n?"&base64="+n:"")+(null!=c?"&filename="+encodeURIComponent(c):"")+(f?"&binary=1":""))};EditorUi.prototype.base64ToBlob=function(b,c){c=c||"";for(var d=atob(b),e=d.length,f=Math.ceil(e/1024),k=Array(f),l=0;l<f;++l){for(var n=1024*l,q=Math.min(n+1024,e),y=Array(q-n),I=0;n<q;++I,++n)y[I]=
+d[n].charCodeAt(0);k[l]=new Uint8Array(y)}return new Blob(k,{type:c})};EditorUi.prototype.saveLocalFile=function(b,c,e,f,l,n,v,t){n=null!=n?n:!1;v=null!=v?v:"vsdx"!=l&&(!mxClient.IS_IOS||!navigator.standalone);l=this.getServiceCount(n);isLocalStorage&&l++;var d=4>=l?2:6<l?4:3;c=new CreateDialog(this,c,mxUtils.bind(this,function(d,c){try{if("_blank"==c)if(null!=e&&"image/"==e.substring(0,6))this.openInNewWindow(b,e,f);else if(null!=e&&"text/html"==e.substring(0,9)){var g=new EmbedDialog(this,b);this.showDialog(g.container,
+450,240,!0,!0);g.init()}else{var k=window.open("about:blank");null==k?mxUtils.popup(b,!0):(k.document.write("<pre>"+mxUtils.htmlEntities(b,!1)+"</pre>"),k.document.close())}else c==App.MODE_DEVICE||"download"==c?this.doSaveLocalFile(b,d,e,f,null,t):null!=d&&0<d.length&&this.pickFolder(c,mxUtils.bind(this,function(g){try{this.exportFile(b,d,e,f,c,g)}catch(O){this.handleError(O)}}))}catch(E){this.handleError(E)}}),mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),
+!1,n,v,null,1<l,d,b,e,f);n=this.isServices(l)?l>d?390:280:160;this.showDialog(c.container,420,n,!0,!0);c.init()};EditorUi.prototype.openInNewWindow=function(b,c,e){var d=window.open("about:blank");null==d||null==d.document?mxUtils.popup(b,!0):("image/svg+xml"!=c||mxClient.IS_SVG?"image/svg+xml"==c?d.document.write("<html>"+b+"</html>"):(b=e?b:btoa(unescape(encodeURIComponent(b))),d.document.write('<html><img style="max-width:100%;" src="data:'+c+";base64,"+b+'"/></html>')):d.document.write("<html><pre>"+
mxUtils.htmlEntities(b,!1)+"</pre></html>"),d.document.close())};var f=EditorUi.prototype.addChromelessToolbarItems;EditorUi.prototype.isChromelessImageExportEnabled=function(){return"draw.io"!=this.getServiceName()||/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)};EditorUi.prototype.addChromelessToolbarItems=function(b){if(null!=urlParams.tags){this.tagsDialog=this.tagsComponent=null;var d=b(mxUtils.bind(this,function(b){null==this.tagsComponent&&
(this.tagsComponent=this.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return null!=this.tagsDialog}),!0),this.tagsComponent.div.getElementsByTagName("div")[0].style.position="",mxUtils.setPrefixedStyle(this.tagsComponent.div.style,"borderRadius","5px"),this.tagsComponent.div.className="geScrollable",this.tagsComponent.div.style.maxHeight="160px",this.tagsComponent.div.style.maxWidth="120px",this.tagsComponent.div.style.padding="4px",this.tagsComponent.div.style.overflow="auto",this.tagsComponent.div.style.height=
"auto",this.tagsComponent.div.style.position="fixed",this.tagsComponent.div.style.fontFamily=Editor.defaultHtmlFont,mxClient.IS_IE||mxClient.IS_IE11?(this.tagsComponent.div.style.backgroundColor="#ffffff",this.tagsComponent.div.style.border="2px solid black",this.tagsComponent.div.style.color="#000000"):(this.tagsComponent.div.style.backgroundColor="#000000",this.tagsComponent.div.style.color="#ffffff",mxUtils.setOpacity(this.tagsComponent.div,80)));if(null!=this.tagsDialog)this.tagsDialog.parentNode.removeChild(this.tagsDialog),
@@ -3544,91 +3544,91 @@ this.layersDialog=null)}));this.editor.addListener("layersDialogShown",mxUtils.b
"50px";this.exportDialog.style.height="50px";this.exportDialog.style.padding="4px 2px 4px 2px";this.exportDialog.style.color="#ffffff";mxUtils.setOpacity(this.exportDialog,70);this.exportDialog.style.left=e.left+"px";this.exportDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";e=mxUtils.getCurrentStyle(this.editor.graph.container);this.exportDialog.style.zIndex=e.zIndex;var g=new Spinner({lines:8,length:6,width:5,radius:6,rotate:0,color:"#fff",
speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"28px",zIndex:2E9});g.spin(this.exportDialog);this.editor.exportToCanvas(mxUtils.bind(this,function(b){g.stop();this.exportDialog.style.width="auto";this.exportDialog.style.height="auto";this.exportDialog.style.padding="10px";var c=this.createImageDataUri(b,null,"png");b=document.createElement("img");b.style.maxWidth="140px";b.style.maxHeight="140px";b.style.cursor="pointer";b.style.backgroundColor="white";b.setAttribute("title",mxResources.get("openInNewWindow"));
b.setAttribute("border","0");b.setAttribute("src",c);this.exportDialog.appendChild(b);mxEvent.addListener(b,"click",mxUtils.bind(this,function(){this.openInNewWindow(c.substring(c.indexOf(",")+1),"image/png",!0);d.apply(this,arguments)}))}),null,this.thumbImageCache,null,mxUtils.bind(this,function(b){this.spinner.stop();this.handleError(b)}),null,null,null,null,null,null,null,Editor.defaultBorder);mxEvent.addListener(this.editor.graph.container,"click",d);document.body.appendChild(this.exportDialog)}mxEvent.consume(b)}),
-Editor.cameraImage,mxResources.get("export"))}};EditorUi.prototype.saveData=function(b,c,e,f,l){this.isLocalFileSave()?this.saveLocalFile(e,b,f,l,c):this.saveRequest(b,c,mxUtils.bind(this,function(b,d){return this.createEchoRequest(e,b,f,l,c,d)}),e,l,f)};EditorUi.prototype.saveRequest=function(b,c,e,f,l,n,u){u=null!=u?u:!mxClient.IS_IOS||!navigator.standalone;var d=this.getServiceCount(!1);isLocalStorage&&d++;var g=4>=d?2:6<d?4:3;b=new CreateDialog(this,b,mxUtils.bind(this,function(b,d){if("_blank"==
-d||null!=b&&0<b.length){var g=e("_blank"==d?null:b,d==App.MODE_DEVICE||"download"==d||null==d||"_blank"==d?"0":"1");null!=g&&(d==App.MODE_DEVICE||"download"==d||"_blank"==d?g.simulate(document,"_blank"):this.pickFolder(d,mxUtils.bind(this,function(e){n=null!=n?n:"pdf"==c?"application/pdf":"image/"+c;if(null!=f)try{this.exportFile(f,b,n,!0,d,e)}catch(H){this.handleError(H)}else this.spinner.spin(document.body,mxResources.get("saving"))&&g.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=
-g.getStatus()&&299>=g.getStatus())try{this.exportFile(g.getText(),b,n,!0,d,e)}catch(H){this.handleError(H)}else this.handleError({message:mxResources.get("errorSavingFile")})}),function(b){this.spinner.stop();this.handleError(b)})})))}}),mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,u,null,1<d,g,f,n,l);d=this.isServices(d)?4<d?390:280:160;this.showDialog(b.container,420,d,!0,!0);b.init()};EditorUi.prototype.isServices=function(b){return 1!=
-b};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(b,c,e,f,l,n){};EditorUi.prototype.pickFolder=function(b,c,e){c(null)};EditorUi.prototype.exportSvg=function(b,c,e,f,l,n,u,t,q,y,F,D,E,H){if(this.spinner.spin(document.body,mxResources.get("export")))try{var d=this.editor.graph.isSelectionEmpty();e=null!=e?e:d;var g=c?null:this.editor.graph.background;g==mxConstants.NONE&&(g=null);null==g&&0==c&&(g=F?this.editor.graph.defaultPageBackgroundColor:
-"#ffffff");var k=this.editor.graph.getSvg(g,b,u,t,null,e,null,null,"blank"==y?"_blank":"self"==y?"_top":null,null,!0,F,D);f&&this.editor.graph.addSvgShadow(k);var m=this.getBaseFilename()+(l?".drawio":"")+".svg";H=null!=H?H:mxUtils.bind(this,function(b){this.isLocalFileSave()||b.length<=MAX_REQUEST_SIZE?this.saveData(m,"svg",b,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(b)}))});var p=mxUtils.bind(this,
-function(b){this.spinner.stop();l&&b.setAttribute("content",this.getFileData(!0,null,null,null,e,q,null,null,null,!1));H(Graph.xmlDeclaration+"\n"+(l?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(b))});this.editor.graph.mathEnabled&&this.editor.addMathCss(k);var v=mxUtils.bind(this,function(b){n?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(b,p,this.thumbImageCache)):p(b)});E?this.embedFonts(k,v):(this.editor.addFontCss(k),v(k))}catch(K){this.handleError(K)}};
-EditorUi.prototype.addRadiobox=function(b,c,e,f,l,n,u){return this.addCheckbox(b,e,f,l,n,u,!0,c)};EditorUi.prototype.addCheckbox=function(b,c,e,f,l,n,u,t){n=null!=n?n:!0;var d=document.createElement("input");d.style.marginRight="8px";d.style.marginTop="16px";d.setAttribute("type",u?"radio":"checkbox");u="geCheckbox-"+Editor.guid();d.id=u;null!=t&&d.setAttribute("name",t);e&&(d.setAttribute("checked","checked"),d.defaultChecked=!0);f&&d.setAttribute("disabled","disabled");n&&(b.appendChild(d),e=document.createElement("label"),
-mxUtils.write(e,c),e.setAttribute("for",u),b.appendChild(e),l||mxUtils.br(b));return d};EditorUi.prototype.addEditButton=function(b,c){var d=this.addCheckbox(b,mxResources.get("edit")+":",!0,null,!0);d.style.marginLeft="24px";var e=this.getCurrentFile(),f="";null!=e&&e.getMode()!=App.MODE_DEVICE&&e.getMode()!=App.MODE_BROWSER&&(f=window.location.href);var k=document.createElement("select");k.style.maxWidth="200px";k.style.width="auto";k.style.marginLeft="8px";k.style.marginRight="10px";k.className=
+Editor.cameraImage,mxResources.get("export"))}};EditorUi.prototype.saveData=function(b,c,e,f,l){this.isLocalFileSave()?this.saveLocalFile(e,b,f,l,c):this.saveRequest(b,c,mxUtils.bind(this,function(b,d){return this.createEchoRequest(e,b,f,l,c,d)}),e,l,f)};EditorUi.prototype.saveRequest=function(b,c,e,f,l,n,v){v=null!=v?v:!mxClient.IS_IOS||!navigator.standalone;var d=this.getServiceCount(!1);isLocalStorage&&d++;var g=4>=d?2:6<d?4:3;b=new CreateDialog(this,b,mxUtils.bind(this,function(b,d){if("_blank"==
+d||null!=b&&0<b.length){var g=e("_blank"==d?null:b,d==App.MODE_DEVICE||"download"==d||null==d||"_blank"==d?"0":"1");null!=g&&(d==App.MODE_DEVICE||"download"==d||"_blank"==d?g.simulate(document,"_blank"):this.pickFolder(d,mxUtils.bind(this,function(e){n=null!=n?n:"pdf"==c?"application/pdf":"image/"+c;if(null!=f)try{this.exportFile(f,b,n,!0,d,e)}catch(E){this.handleError(E)}else this.spinner.spin(document.body,mxResources.get("saving"))&&g.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=
+g.getStatus()&&299>=g.getStatus())try{this.exportFile(g.getText(),b,n,!0,d,e)}catch(E){this.handleError(E)}else this.handleError({message:mxResources.get("errorSavingFile")})}),function(b){this.spinner.stop();this.handleError(b)})})))}}),mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,v,null,1<d,g,f,n,l);d=this.isServices(d)?4<d?390:280:160;this.showDialog(b.container,420,d,!0,!0);b.init()};EditorUi.prototype.isServices=function(b){return 1!=
+b};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(b,c,e,f,l,n){};EditorUi.prototype.pickFolder=function(b,c,e){c(null)};EditorUi.prototype.exportSvg=function(b,c,e,f,l,n,v,t,q,y,I,D,F,E){if(this.spinner.spin(document.body,mxResources.get("export")))try{var d=this.editor.graph.isSelectionEmpty();e=null!=e?e:d;var g=c?null:this.editor.graph.background;g==mxConstants.NONE&&(g=null);null==g&&0==c&&(g=I?this.editor.graph.defaultPageBackgroundColor:
+"#ffffff");var k=this.editor.graph.getSvg(g,b,v,t,null,e,null,null,"blank"==y?"_blank":"self"==y?"_top":null,null,!0,I,D);f&&this.editor.graph.addSvgShadow(k);var m=this.getBaseFilename()+(l?".drawio":"")+".svg";E=null!=E?E:mxUtils.bind(this,function(b){this.isLocalFileSave()||b.length<=MAX_REQUEST_SIZE?this.saveData(m,"svg",b,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(b)}))});var p=mxUtils.bind(this,
+function(b){this.spinner.stop();l&&b.setAttribute("content",this.getFileData(!0,null,null,null,e,q,null,null,null,!1));E(Graph.xmlDeclaration+"\n"+(l?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(b))});this.editor.graph.mathEnabled&&this.editor.addMathCss(k);var u=mxUtils.bind(this,function(b){n?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(b,p,this.thumbImageCache)):p(b)});F?this.embedFonts(k,u):(this.editor.addFontCss(k),u(k))}catch(M){this.handleError(M)}};
+EditorUi.prototype.addRadiobox=function(b,c,e,f,l,n,v){return this.addCheckbox(b,e,f,l,n,v,!0,c)};EditorUi.prototype.addCheckbox=function(b,c,e,f,l,n,v,t){n=null!=n?n:!0;var d=document.createElement("input");d.style.marginRight="8px";d.style.marginTop="16px";d.setAttribute("type",v?"radio":"checkbox");v="geCheckbox-"+Editor.guid();d.id=v;null!=t&&d.setAttribute("name",t);e&&(d.setAttribute("checked","checked"),d.defaultChecked=!0);f&&d.setAttribute("disabled","disabled");n&&(b.appendChild(d),e=document.createElement("label"),
+mxUtils.write(e,c),e.setAttribute("for",v),b.appendChild(e),l||mxUtils.br(b));return d};EditorUi.prototype.addEditButton=function(b,c){var d=this.addCheckbox(b,mxResources.get("edit")+":",!0,null,!0);d.style.marginLeft="24px";var e=this.getCurrentFile(),f="";null!=e&&e.getMode()!=App.MODE_DEVICE&&e.getMode()!=App.MODE_BROWSER&&(f=window.location.href);var k=document.createElement("select");k.style.maxWidth="200px";k.style.width="auto";k.style.marginLeft="8px";k.style.marginRight="10px";k.className=
"geBtn";e=document.createElement("option");e.setAttribute("value","blank");mxUtils.write(e,mxResources.get("makeCopy"));k.appendChild(e);e=document.createElement("option");e.setAttribute("value","custom");mxUtils.write(e,mxResources.get("custom")+"...");k.appendChild(e);b.appendChild(k);mxEvent.addListener(k,"change",mxUtils.bind(this,function(){if("custom"==k.value){var b=new FilenameDialog(this,f,mxResources.get("ok"),function(b){null!=b?f=b:k.value="blank"},mxResources.get("url"),null,null,null,
null,function(){k.value="blank"});this.showDialog(b.container,300,80,!0,!1);b.init()}}));mxEvent.addListener(d,"change",mxUtils.bind(this,function(){d.checked&&(null==c||c.checked)?k.removeAttribute("disabled"):k.setAttribute("disabled","disabled")}));mxUtils.br(b);return{getLink:function(){return d.checked?"blank"===k.value?"_blank":f:null},getEditInput:function(){return d},getEditSelect:function(){return k}}};EditorUi.prototype.addLinkSection=function(b,c){function d(){var b=document.createElement("div");
b.style.width="100%";b.style.height="100%";b.style.boxSizing="border-box";null!=k&&k!=mxConstants.NONE?(b.style.border="1px solid black",b.style.backgroundColor=k):(b.style.backgroundPosition="center center",b.style.backgroundRepeat="no-repeat",b.style.backgroundImage="url('"+Dialog.prototype.closeImage+"')");l.innerHTML="";l.appendChild(b)}mxUtils.write(b,mxResources.get("links")+":");var e=document.createElement("select");e.style.width="100px";e.style.padding="0px";e.style.marginLeft="8px";e.style.marginRight=
"10px";e.className="geBtn";var f=document.createElement("option");f.setAttribute("value","auto");mxUtils.write(f,mxResources.get("automatic"));e.appendChild(f);f=document.createElement("option");f.setAttribute("value","blank");mxUtils.write(f,mxResources.get("openInNewWindow"));e.appendChild(f);f=document.createElement("option");f.setAttribute("value","self");mxUtils.write(f,mxResources.get("openInThisWindow"));e.appendChild(f);c&&(f=document.createElement("option"),f.setAttribute("value","frame"),
mxUtils.write(f,mxResources.get("openInThisWindow")+" ("+mxResources.get("iframe")+")"),e.appendChild(f));b.appendChild(e);mxUtils.write(b,mxResources.get("borderColor")+":");var k="#0000ff",l=null,l=mxUtils.button("",mxUtils.bind(this,function(b){this.pickColor(k||"none",function(b){k=b;d()});mxEvent.consume(b)}));d();l.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";l.style.marginLeft="4px";l.style.height="22px";l.style.width="22px";l.style.position="relative";l.style.top=mxClient.IS_IE||mxClient.IS_IE11||
-mxClient.IS_EDGE?"6px":"1px";l.className="geColorBtn";b.appendChild(l);mxUtils.br(b);return{getColor:function(){return k},getTarget:function(){return e.value},focus:function(){e.focus()}}};EditorUi.prototype.createUrlParameters=function(b,c,e,f,l,n,u){u=null!=u?u:[];f&&("https://viewer.diagrams.net"==EditorUi.lightboxHost&&"1"!=urlParams.dev||u.push("lightbox=1"),"auto"!=b&&u.push("target="+b),null!=c&&c!=mxConstants.NONE&&u.push("highlight="+("#"==c.charAt(0)?c.substring(1):c)),null!=l&&0<l.length&&
-u.push("edit="+encodeURIComponent(l)),n&&u.push("layers=1"),this.editor.graph.foldingEnabled&&u.push("nav=1"));e&&null!=this.currentPage&&null!=this.pages&&this.currentPage!=this.pages[0]&&u.push("page-id="+this.currentPage.getId());return u};EditorUi.prototype.createLink=function(b,c,e,f,l,n,u,t,q,y){q=this.createUrlParameters(b,c,e,f,l,n,q);b=this.getCurrentFile();c=!0;null!=u?e="#U"+encodeURIComponent(u):(b=this.getCurrentFile(),t||null==b||b.constructor!=window.DriveFile?e="#R"+encodeURIComponent(e?
+mxClient.IS_EDGE?"6px":"1px";l.className="geColorBtn";b.appendChild(l);mxUtils.br(b);return{getColor:function(){return k},getTarget:function(){return e.value},focus:function(){e.focus()}}};EditorUi.prototype.createUrlParameters=function(b,c,e,f,l,n,v){v=null!=v?v:[];f&&("https://viewer.diagrams.net"==EditorUi.lightboxHost&&"1"!=urlParams.dev||v.push("lightbox=1"),"auto"!=b&&v.push("target="+b),null!=c&&c!=mxConstants.NONE&&v.push("highlight="+("#"==c.charAt(0)?c.substring(1):c)),null!=l&&0<l.length&&
+v.push("edit="+encodeURIComponent(l)),n&&v.push("layers=1"),this.editor.graph.foldingEnabled&&v.push("nav=1"));e&&null!=this.currentPage&&null!=this.pages&&this.currentPage!=this.pages[0]&&v.push("page-id="+this.currentPage.getId());return v};EditorUi.prototype.createLink=function(b,c,e,f,l,n,v,t,q,y){q=this.createUrlParameters(b,c,e,f,l,n,q);b=this.getCurrentFile();c=!0;null!=v?e="#U"+encodeURIComponent(v):(b=this.getCurrentFile(),t||null==b||b.constructor!=window.DriveFile?e="#R"+encodeURIComponent(e?
this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(e="#"+b.getHash(),c=!1));c&&null!=b&&null!=b.getTitle()&&b.getTitle()!=this.defaultFilename&&q.push("title="+encodeURIComponent(b.getTitle()));y&&1<e.length&&(q.push("open="+e.substring(1)),e="");return(f&&"1"!=urlParams.dev?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+
-"/"+(0<q.length?"?"+q.join("&"):"")+e};EditorUi.prototype.createHtml=function(b,c,e,f,l,n,u,t,q,y,F,D){this.getBasenames();var d={};""!=l&&l!=mxConstants.NONE&&(d.highlight=l);"auto"!==f&&(d.target=f);y||(d.lightbox=!1);d.nav=this.editor.graph.foldingEnabled;e=parseInt(e);isNaN(e)||100==e||(d.zoom=e/100);e=[];u&&(e.push("pages"),d.resize=!0,null!=this.pages&&null!=this.currentPage&&(d.page=mxUtils.indexOf(this.pages,this.currentPage)));c&&(e.push("zoom"),d.resize=!0);t&&e.push("layers");q&&e.push("tags");
-0<e.length&&(y&&e.push("lightbox"),d.toolbar=e.join(" "));null!=F&&0<F.length&&(d.edit=F);null!=b?d.url=b:d.xml=this.getFileData(!0,null,null,null,null,!u);c='<div class="mxgraph" style="'+(n?"max-width:100%;":"")+(""!=e?"border:1px solid transparent;":"")+'" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(d))+'"></div>';b=null!=b?"&fetch="+encodeURIComponent(b):"";D(c,'<script type="text/javascript" src="'+(0<b.length?("1"==urlParams.dev?"https://test.draw.io/embed2.js?dev=1":EditorUi.lightboxHost+
+"/"+(0<q.length?"?"+q.join("&"):"")+e};EditorUi.prototype.createHtml=function(b,c,e,f,l,n,v,t,q,y,I,D){this.getBasenames();var d={};""!=l&&l!=mxConstants.NONE&&(d.highlight=l);"auto"!==f&&(d.target=f);y||(d.lightbox=!1);d.nav=this.editor.graph.foldingEnabled;e=parseInt(e);isNaN(e)||100==e||(d.zoom=e/100);e=[];v&&(e.push("pages"),d.resize=!0,null!=this.pages&&null!=this.currentPage&&(d.page=mxUtils.indexOf(this.pages,this.currentPage)));c&&(e.push("zoom"),d.resize=!0);t&&e.push("layers");q&&e.push("tags");
+0<e.length&&(y&&e.push("lightbox"),d.toolbar=e.join(" "));null!=I&&0<I.length&&(d.edit=I);null!=b?d.url=b:d.xml=this.getFileData(!0,null,null,null,null,!v);c='<div class="mxgraph" style="'+(n?"max-width:100%;":"")+(""!=e?"border:1px solid transparent;":"")+'" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(d))+'"></div>';b=null!=b?"&fetch="+encodeURIComponent(b):"";D(c,'<script type="text/javascript" src="'+(0<b.length?("1"==urlParams.dev?"https://test.draw.io/embed2.js?dev=1":EditorUi.lightboxHost+
"/embed2.js?")+b:"1"==urlParams.dev?"https://test.draw.io/js/viewer-static.min.js":window.DRAWIO_VIEWER_URL?window.DRAWIO_VIEWER_URL:EditorUi.lightboxHost+"/js/viewer-static.min.js")+'">\x3c/script>')};EditorUi.prototype.showHtmlDialog=function(b,c,e,f){var d=document.createElement("div");d.style.whiteSpace="nowrap";var g=document.createElement("h3");mxUtils.write(g,mxResources.get("html"));g.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";d.appendChild(g);var k=document.createElement("div");
k.style.cssText="border-bottom:1px solid lightGray;padding-bottom:8px;margin-bottom:12px;";var l=document.createElement("input");l.style.cssText="margin-right:8px;margin-top:8px;margin-bottom:8px;";l.setAttribute("value","url");l.setAttribute("type","radio");l.setAttribute("name","type-embedhtmldialog");g=l.cloneNode(!0);g.setAttribute("value","copy");k.appendChild(g);var p=document.createElement("span");mxUtils.write(p,mxResources.get("includeCopyOfMyDiagram"));k.appendChild(p);mxUtils.br(k);k.appendChild(l);
p=document.createElement("span");mxUtils.write(p,mxResources.get("publicDiagramUrl"));k.appendChild(p);var n=this.getCurrentFile();null==e&&null!=n&&n.constructor==window.DriveFile&&(p=document.createElement("a"),p.style.paddingLeft="12px",p.style.color="gray",p.style.cursor="pointer",mxUtils.write(p,mxResources.get("share")),k.appendChild(p),mxEvent.addListener(p,"click",mxUtils.bind(this,function(){this.hideDialog();this.drive.showPermissions(n.getId())})));g.setAttribute("checked","checked");null==
-e&&l.setAttribute("disabled","disabled");d.appendChild(k);var q=this.addLinkSection(d),D=this.addCheckbox(d,mxResources.get("zoom"),!0,null,!0);mxUtils.write(d,":");var E=document.createElement("input");E.setAttribute("type","text");E.style.marginRight="16px";E.style.width="60px";E.style.marginLeft="4px";E.style.marginRight="12px";E.value="100%";d.appendChild(E);var H=this.addCheckbox(d,mxResources.get("fit"),!0),k=null!=this.pages&&1<this.pages.length,N=N=this.addCheckbox(d,mxResources.get("allPages"),
-k,!k),A=this.addCheckbox(d,mxResources.get("layers"),!0),G=this.addCheckbox(d,mxResources.get("tags"),!0),I=this.addCheckbox(d,mxResources.get("lightbox"),!0),L=this.addEditButton(d,I),M=L.getEditInput();M.style.marginBottom="16px";mxEvent.addListener(I,"change",function(){I.checked?M.removeAttribute("disabled"):M.setAttribute("disabled","disabled");M.checked&&I.checked?L.getEditSelect().removeAttribute("disabled"):L.getEditSelect().setAttribute("disabled","disabled")});b=new CustomDialog(this,d,
-mxUtils.bind(this,function(){f(l.checked?e:null,D.checked,E.value,q.getTarget(),q.getColor(),H.checked,N.checked,A.checked,G.checked,I.checked,L.getLink())}),null,b,c);this.showDialog(b.container,340,430,!0,!0);g.focus()};EditorUi.prototype.showPublishLinkDialog=function(b,c,e,f,l,n,u,t){var d=document.createElement("div");d.style.whiteSpace="nowrap";var g=document.createElement("h3");mxUtils.write(g,b||mxResources.get("link"));g.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";
-d.appendChild(g);var k=this.getCurrentFile();b=0;if(null==k||k.constructor!=window.DriveFile||c)u=null!=u?u:"https://www.diagrams.net/doc/faq/publish-diagram-as-link";else{b=80;u=null!=u?u:"https://www.diagrams.net/doc/faq/google-drive-publicly-publish-diagram";g=document.createElement("div");g.style.cssText="border-bottom:1px solid lightGray;padding-bottom:14px;padding-top:6px;margin-bottom:14px;text-align:center;";var m=document.createElement("div");m.style.whiteSpace="normal";mxUtils.write(m,mxResources.get("linkAccountRequired"));
+e&&l.setAttribute("disabled","disabled");d.appendChild(k);var q=this.addLinkSection(d),D=this.addCheckbox(d,mxResources.get("zoom"),!0,null,!0);mxUtils.write(d,":");var F=document.createElement("input");F.setAttribute("type","text");F.style.marginRight="16px";F.style.width="60px";F.style.marginLeft="4px";F.style.marginRight="12px";F.value="100%";d.appendChild(F);var E=this.addCheckbox(d,mxResources.get("fit"),!0),k=null!=this.pages&&1<this.pages.length,O=O=this.addCheckbox(d,mxResources.get("allPages"),
+k,!k),B=this.addCheckbox(d,mxResources.get("layers"),!0),G=this.addCheckbox(d,mxResources.get("tags"),!0),H=this.addCheckbox(d,mxResources.get("lightbox"),!0),L=this.addEditButton(d,H),N=L.getEditInput();N.style.marginBottom="16px";mxEvent.addListener(H,"change",function(){H.checked?N.removeAttribute("disabled"):N.setAttribute("disabled","disabled");N.checked&&H.checked?L.getEditSelect().removeAttribute("disabled"):L.getEditSelect().setAttribute("disabled","disabled")});b=new CustomDialog(this,d,
+mxUtils.bind(this,function(){f(l.checked?e:null,D.checked,F.value,q.getTarget(),q.getColor(),E.checked,O.checked,B.checked,G.checked,H.checked,L.getLink())}),null,b,c);this.showDialog(b.container,340,430,!0,!0);g.focus()};EditorUi.prototype.showPublishLinkDialog=function(b,c,e,f,l,n,v,t){var d=document.createElement("div");d.style.whiteSpace="nowrap";var g=document.createElement("h3");mxUtils.write(g,b||mxResources.get("link"));g.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";
+d.appendChild(g);var k=this.getCurrentFile();b=0;if(null==k||k.constructor!=window.DriveFile||c)v=null!=v?v:"https://www.diagrams.net/doc/faq/publish-diagram-as-link";else{b=80;v=null!=v?v:"https://www.diagrams.net/doc/faq/google-drive-publicly-publish-diagram";g=document.createElement("div");g.style.cssText="border-bottom:1px solid lightGray;padding-bottom:14px;padding-top:6px;margin-bottom:14px;text-align:center;";var m=document.createElement("div");m.style.whiteSpace="normal";mxUtils.write(m,mxResources.get("linkAccountRequired"));
g.appendChild(m);m=mxUtils.button(mxResources.get("share"),mxUtils.bind(this,function(){this.drive.showPermissions(k.getId())}));m.style.marginTop="12px";m.className="geBtn";g.appendChild(m);d.appendChild(g);m=document.createElement("a");m.style.paddingLeft="12px";m.style.color="gray";m.style.fontSize="11px";m.style.cursor="pointer";mxUtils.write(m,mxResources.get("check"));g.appendChild(m);mxEvent.addListener(m,"click",mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"))&&
-this.getPublicUrl(this.getCurrentFile(),mxUtils.bind(this,function(b){this.spinner.stop();b=new ErrorDialog(this,null,mxResources.get(null!=b?"diagramIsPublic":"diagramIsNotPublic"),mxResources.get("ok"));this.showDialog(b.container,300,80,!0,!1);b.init()}))}))}var p=null,v=null;if(null!=e||null!=f)b+=30,mxUtils.write(d,mxResources.get("width")+":"),p=document.createElement("input"),p.setAttribute("type","text"),p.style.marginRight="16px",p.style.width="50px",p.style.marginLeft="6px",p.style.marginRight=
-"16px",p.style.marginBottom="10px",p.value="100%",d.appendChild(p),mxUtils.write(d,mxResources.get("height")+":"),v=document.createElement("input"),v.setAttribute("type","text"),v.style.width="50px",v.style.marginLeft="6px",v.style.marginBottom="10px",v.value=f+"px",d.appendChild(v),mxUtils.br(d);var q=this.addLinkSection(d,n);e=null!=this.pages&&1<this.pages.length;var A=null;if(null==k||k.constructor!=window.DriveFile||c)A=this.addCheckbox(d,mxResources.get("allPages"),e,!e);var G=this.addCheckbox(d,
-mxResources.get("lightbox"),!0,null,null,!n),I=this.addEditButton(d,G),L=I.getEditInput();n&&(L.style.marginLeft=G.style.marginLeft,G.style.display="none",b-=20);var M=this.addCheckbox(d,mxResources.get("layers"),!0);M.style.marginLeft=L.style.marginLeft;M.style.marginTop="8px";var K=this.addCheckbox(d,mxResources.get("tags"),!0);K.style.marginLeft=L.style.marginLeft;K.style.marginBottom="16px";K.style.marginTop="16px";mxEvent.addListener(G,"change",function(){G.checked?(M.removeAttribute("disabled"),
-L.removeAttribute("disabled")):(M.setAttribute("disabled","disabled"),L.setAttribute("disabled","disabled"));L.checked&&G.checked?I.getEditSelect().removeAttribute("disabled"):I.getEditSelect().setAttribute("disabled","disabled")});c=new CustomDialog(this,d,mxUtils.bind(this,function(){l(q.getTarget(),q.getColor(),null==A?!0:A.checked,G.checked,I.getLink(),M.checked,null!=p?p.value:null,null!=v?v.value:null,K.checked)}),null,mxResources.get("create"),u,t);this.showDialog(c.container,340,300+b,!0,
+this.getPublicUrl(this.getCurrentFile(),mxUtils.bind(this,function(b){this.spinner.stop();b=new ErrorDialog(this,null,mxResources.get(null!=b?"diagramIsPublic":"diagramIsNotPublic"),mxResources.get("ok"));this.showDialog(b.container,300,80,!0,!1);b.init()}))}))}var p=null,u=null;if(null!=e||null!=f)b+=30,mxUtils.write(d,mxResources.get("width")+":"),p=document.createElement("input"),p.setAttribute("type","text"),p.style.marginRight="16px",p.style.width="50px",p.style.marginLeft="6px",p.style.marginRight=
+"16px",p.style.marginBottom="10px",p.value="100%",d.appendChild(p),mxUtils.write(d,mxResources.get("height")+":"),u=document.createElement("input"),u.setAttribute("type","text"),u.style.width="50px",u.style.marginLeft="6px",u.style.marginBottom="10px",u.value=f+"px",d.appendChild(u),mxUtils.br(d);var q=this.addLinkSection(d,n);e=null!=this.pages&&1<this.pages.length;var B=null;if(null==k||k.constructor!=window.DriveFile||c)B=this.addCheckbox(d,mxResources.get("allPages"),e,!e);var G=this.addCheckbox(d,
+mxResources.get("lightbox"),!0,null,null,!n),H=this.addEditButton(d,G),L=H.getEditInput();n&&(L.style.marginLeft=G.style.marginLeft,G.style.display="none",b-=20);var N=this.addCheckbox(d,mxResources.get("layers"),!0);N.style.marginLeft=L.style.marginLeft;N.style.marginTop="8px";var M=this.addCheckbox(d,mxResources.get("tags"),!0);M.style.marginLeft=L.style.marginLeft;M.style.marginBottom="16px";M.style.marginTop="16px";mxEvent.addListener(G,"change",function(){G.checked?(N.removeAttribute("disabled"),
+L.removeAttribute("disabled")):(N.setAttribute("disabled","disabled"),L.setAttribute("disabled","disabled"));L.checked&&G.checked?H.getEditSelect().removeAttribute("disabled"):H.getEditSelect().setAttribute("disabled","disabled")});c=new CustomDialog(this,d,mxUtils.bind(this,function(){l(q.getTarget(),q.getColor(),null==B?!0:B.checked,G.checked,H.getLink(),N.checked,null!=p?p.value:null,null!=u?u.value:null,M.checked)}),null,mxResources.get("create"),v,t);this.showDialog(c.container,340,300+b,!0,
!0);null!=p?(p.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?p.select():document.execCommand("selectAll",!1,null)):q.focus()};EditorUi.prototype.showRemoteExportDialog=function(b,c,e,f,l){var d=document.createElement("div");d.style.whiteSpace="nowrap";var g=document.createElement("h3");mxUtils.write(g,mxResources.get("image"));g.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:"+(l?"10":"4")+"px";d.appendChild(g);if(l){mxUtils.write(d,mxResources.get("zoom")+
":");var k=document.createElement("input");k.setAttribute("type","text");k.style.marginRight="16px";k.style.width="60px";k.style.marginLeft="4px";k.style.marginRight="12px";k.value=this.lastExportZoom||"100%";d.appendChild(k);mxUtils.write(d,mxResources.get("borderWidth")+":");var m=document.createElement("input");m.setAttribute("type","text");m.style.marginRight="16px";m.style.width="60px";m.style.marginLeft="4px";m.value=this.lastExportBorder||"0";d.appendChild(m);mxUtils.br(d)}var p=this.addCheckbox(d,
mxResources.get("selectionOnly"),!1,this.editor.graph.isSelectionEmpty()),n=f?null:this.addCheckbox(d,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram),g=this.editor.graph,q=f?null:this.addCheckbox(d,mxResources.get("transparentBackground"),g.background==mxConstants.NONE||null==g.background);null!=q&&(q.style.marginBottom="16px");b=new CustomDialog(this,d,mxUtils.bind(this,function(){var b=parseInt(k.value)/100||1,d=parseInt(m.value)||0;e(!p.checked,null!=n?n.checked:!1,null!=
-q?q.checked:!1,b,d)}),null,b,c);this.showDialog(b.container,300,(l?25:0)+(f?125:210),!0,!0)};EditorUi.prototype.showExportDialog=function(b,c,e,f,l,n,u,t,q){u=null!=u?u:Editor.defaultIncludeDiagram;var d=document.createElement("div");d.style.whiteSpace="nowrap";var g=this.editor.graph,k="jpeg"==t?220:300,m=document.createElement("h3");mxUtils.write(m,b);m.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";d.appendChild(m);mxUtils.write(d,mxResources.get("zoom")+":");var p=
-document.createElement("input");p.setAttribute("type","text");p.style.marginRight="16px";p.style.width="60px";p.style.marginLeft="4px";p.style.marginRight="12px";p.value=this.lastExportZoom||"100%";d.appendChild(p);mxUtils.write(d,mxResources.get("borderWidth")+":");var v=document.createElement("input");v.setAttribute("type","text");v.style.marginRight="16px";v.style.width="60px";v.style.marginLeft="4px";v.value=this.lastExportBorder||"0";d.appendChild(v);mxUtils.br(d);var A=this.addCheckbox(d,mxResources.get("selectionOnly"),
-!1,g.isSelectionEmpty()),z=document.createElement("input");z.style.marginTop="16px";z.style.marginRight="8px";z.style.marginLeft="24px";z.setAttribute("disabled","disabled");z.setAttribute("type","checkbox");var I=document.createElement("select");I.style.marginTop="16px";I.style.marginLeft="8px";b=["selectionOnly","diagram","page"];for(var L={},m=0;m<b.length;m++)if(!g.isSelectionEmpty()||"selectionOnly"!=b[m]){var M=document.createElement("option");mxUtils.write(M,mxResources.get(b[m]));M.setAttribute("value",
-b[m]);I.appendChild(M);L[b[m]]=M}q?(mxUtils.write(d,mxResources.get("size")+":"),d.appendChild(I),mxUtils.br(d),k+=26,mxEvent.addListener(I,"change",function(){"selectionOnly"==I.value&&(A.checked=!0)})):n&&(d.appendChild(z),mxUtils.write(d,mxResources.get("crop")),mxUtils.br(d),k+=30,mxEvent.addListener(A,"change",function(){A.checked?z.removeAttribute("disabled"):z.setAttribute("disabled","disabled")}));g.isSelectionEmpty()?q&&(A.style.display="none",A.nextSibling.style.display="none",A.nextSibling.nextSibling.style.display=
-"none",k-=30):(I.value="diagram",z.setAttribute("checked","checked"),z.defaultChecked=!0,mxEvent.addListener(A,"change",function(){I.value=A.checked?"selectionOnly":"diagram"}));var K=this.addCheckbox(d,mxResources.get("transparentBackground"),!1,null,null,"jpeg"!=t),P=null;Editor.isDarkMode()&&(P=this.addCheckbox(d,mxResources.get("dark"),!0),k+=26);var T=this.addCheckbox(d,mxResources.get("shadow"),g.shadowVisible),W=null;if("png"==t||"jpeg"==t)W=this.addCheckbox(d,mxResources.get("grid"),!1,this.isOffline()||
-!this.canvasSupported,!1,!0),k+=30;var ga=this.addCheckbox(d,mxResources.get("includeCopyOfMyDiagram"),u,null,null,"jpeg"!=t);ga.style.marginBottom="16px";var ja=document.createElement("input");ja.style.marginBottom="16px";ja.style.marginRight="8px";ja.setAttribute("type","checkbox");!this.isOffline()&&this.canvasSupported||ja.setAttribute("disabled","disabled");var X=document.createElement("select");X.style.maxWidth="260px";X.style.marginLeft="8px";X.style.marginRight="10px";X.style.marginBottom=
-"16px";X.className="geBtn";n=document.createElement("option");n.setAttribute("value","none");mxUtils.write(n,mxResources.get("noChange"));X.appendChild(n);n=document.createElement("option");n.setAttribute("value","embedFonts");mxUtils.write(n,mxResources.get("embedFonts"));X.appendChild(n);n=document.createElement("option");n.setAttribute("value","lblToSvg");mxUtils.write(n,mxResources.get("lblToSvg"));X.appendChild(n);this.isOffline()&&n.setAttribute("disabled","disabled");mxEvent.addListener(X,
-"change",mxUtils.bind(this,function(){"lblToSvg"==X.value?(ja.checked=!0,ja.setAttribute("disabled","disabled"),L.page.style.display="none","page"==I.value&&(I.value="diagram"),T.checked=!1,T.setAttribute("disabled","disabled"),C.style.display="inline-block",x.style.display="none"):"disabled"==ja.getAttribute("disabled")&&(ja.checked=!1,ja.removeAttribute("disabled"),T.removeAttribute("disabled"),L.page.style.display="",C.style.display="none",x.style.display="")}));c&&(d.appendChild(ja),mxUtils.write(d,
-mxResources.get("embedImages")),mxUtils.br(d),mxUtils.write(d,mxResources.get("txtSettings")+":"),d.appendChild(X),mxUtils.br(d),k+=60);var x=document.createElement("select");x.style.maxWidth="260px";x.style.marginLeft="8px";x.style.marginRight="10px";x.className="geBtn";c=document.createElement("option");c.setAttribute("value","auto");mxUtils.write(c,mxResources.get("automatic"));x.appendChild(c);c=document.createElement("option");c.setAttribute("value","blank");mxUtils.write(c,mxResources.get("openInNewWindow"));
-x.appendChild(c);c=document.createElement("option");c.setAttribute("value","self");mxUtils.write(c,mxResources.get("openInThisWindow"));x.appendChild(c);var C=document.createElement("div");mxUtils.write(C,mxResources.get("LinksLost"));C.style.margin="7px";C.style.display="none";"svg"==t&&(mxUtils.write(d,mxResources.get("links")+":"),d.appendChild(x),d.appendChild(C),mxUtils.br(d),mxUtils.br(d),k+=50);e=new CustomDialog(this,d,mxUtils.bind(this,function(){this.lastExportBorder=v.value;this.lastExportZoom=
-p.value;l(p.value,K.checked,!A.checked,T.checked,ga.checked,ja.checked,v.value,z.checked,!1,x.value,null!=W?W.checked:null,null!=P?P.checked:null,I.value,"embedFonts"==X.value,"lblToSvg"==X.value)}),null,e,f);this.showDialog(e.container,340,k,!0,!0,null,null,null,null,!0);p.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?p.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(b,c,e,f,l){var d=document.createElement("div");d.style.whiteSpace=
-"nowrap";var g=this.editor.graph;if(null!=c){var k=document.createElement("h3");mxUtils.write(k,c);k.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";d.appendChild(k)}var m=this.addCheckbox(d,mxResources.get("fit"),!0),p=this.addCheckbox(d,mxResources.get("shadow"),g.shadowVisible&&f,!f),n=this.addCheckbox(d,e),q=this.addCheckbox(d,mxResources.get("lightbox"),!0),E=this.addEditButton(d,q),H=E.getEditInput(),N=1<g.model.getChildCount(g.model.getRoot()),A=this.addCheckbox(d,
-mxResources.get("layers"),N,!N);A.style.marginLeft=H.style.marginLeft;A.style.marginBottom="12px";A.style.marginTop="8px";mxEvent.addListener(q,"change",function(){q.checked?(N&&A.removeAttribute("disabled"),H.removeAttribute("disabled")):(A.setAttribute("disabled","disabled"),H.setAttribute("disabled","disabled"));H.checked&&q.checked?E.getEditSelect().removeAttribute("disabled"):E.getEditSelect().setAttribute("disabled","disabled")});c=new CustomDialog(this,d,mxUtils.bind(this,function(){b(m.checked,
-p.checked,n.checked,q.checked,E.getLink(),A.checked)}),null,mxResources.get("embed"),l);this.showDialog(c.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=function(b,c,e,f,l,n,u,t){function d(d){var c=" ",m="";f&&(c=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+
-EditorUi.lightboxHost+"/?client=1"+(null!=k?"&page="+k:"")+(l?"&edit=_blank":"")+(n?"&layers=1":"")+"');}})(this);\"",m+="cursor:pointer;");b&&(m+="max-width:100%;");var p="";e&&(p=' width="'+Math.round(g.width)+'" height="'+Math.round(g.height)+'"');u('<img src="'+d+'"'+p+(""!=m?' style="'+m+'"':"")+c+"/>")}var g=this.editor.graph.getGraphBounds(),k=this.getSelectedPageIndex();if(this.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(b){var c=f?this.getFileData(!0):null;b=
+q?q.checked:!1,b,d)}),null,b,c);this.showDialog(b.container,300,(l?25:0)+(f?125:210),!0,!0)};EditorUi.prototype.showExportDialog=function(b,c,e,f,l,n,v,t,q){v=null!=v?v:Editor.defaultIncludeDiagram;var d=document.createElement("div");d.style.whiteSpace="nowrap";var g=this.editor.graph,k="jpeg"==t?220:300,m=document.createElement("h3");mxUtils.write(m,b);m.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";d.appendChild(m);mxUtils.write(d,mxResources.get("zoom")+":");var p=
+document.createElement("input");p.setAttribute("type","text");p.style.marginRight="16px";p.style.width="60px";p.style.marginLeft="4px";p.style.marginRight="12px";p.value=this.lastExportZoom||"100%";d.appendChild(p);mxUtils.write(d,mxResources.get("borderWidth")+":");var u=document.createElement("input");u.setAttribute("type","text");u.style.marginRight="16px";u.style.width="60px";u.style.marginLeft="4px";u.value=this.lastExportBorder||"0";d.appendChild(u);mxUtils.br(d);var z=this.addCheckbox(d,mxResources.get("selectionOnly"),
+!1,g.isSelectionEmpty()),G=document.createElement("input");G.style.marginTop="16px";G.style.marginRight="8px";G.style.marginLeft="24px";G.setAttribute("disabled","disabled");G.setAttribute("type","checkbox");var H=document.createElement("select");H.style.marginTop="16px";H.style.marginLeft="8px";b=["selectionOnly","diagram","page"];for(var L={},m=0;m<b.length;m++)if(!g.isSelectionEmpty()||"selectionOnly"!=b[m]){var N=document.createElement("option");mxUtils.write(N,mxResources.get(b[m]));N.setAttribute("value",
+b[m]);H.appendChild(N);L[b[m]]=N}q?(mxUtils.write(d,mxResources.get("size")+":"),d.appendChild(H),mxUtils.br(d),k+=26,mxEvent.addListener(H,"change",function(){"selectionOnly"==H.value&&(z.checked=!0)})):n&&(d.appendChild(G),mxUtils.write(d,mxResources.get("crop")),mxUtils.br(d),k+=30,mxEvent.addListener(z,"change",function(){z.checked?G.removeAttribute("disabled"):G.setAttribute("disabled","disabled")}));g.isSelectionEmpty()?q&&(z.style.display="none",z.nextSibling.style.display="none",z.nextSibling.nextSibling.style.display=
+"none",k-=30):(H.value="diagram",G.setAttribute("checked","checked"),G.defaultChecked=!0,mxEvent.addListener(z,"change",function(){H.value=z.checked?"selectionOnly":"diagram"}));var M=this.addCheckbox(d,mxResources.get("transparentBackground"),!1,null,null,"jpeg"!=t),P=null;Editor.isDarkMode()&&(P=this.addCheckbox(d,mxResources.get("dark"),!0),k+=26);var V=this.addCheckbox(d,mxResources.get("shadow"),g.shadowVisible),W=null;if("png"==t||"jpeg"==t)W=this.addCheckbox(d,mxResources.get("grid"),!1,this.isOffline()||
+!this.canvasSupported,!1,!0),k+=30;var ga=this.addCheckbox(d,mxResources.get("includeCopyOfMyDiagram"),v,null,null,"jpeg"!=t);ga.style.marginBottom="16px";var ea=document.createElement("input");ea.style.marginBottom="16px";ea.style.marginRight="8px";ea.setAttribute("type","checkbox");!this.isOffline()&&this.canvasSupported||ea.setAttribute("disabled","disabled");var ba=document.createElement("select");ba.style.maxWidth="260px";ba.style.marginLeft="8px";ba.style.marginRight="10px";ba.style.marginBottom=
+"16px";ba.className="geBtn";n=document.createElement("option");n.setAttribute("value","none");mxUtils.write(n,mxResources.get("noChange"));ba.appendChild(n);n=document.createElement("option");n.setAttribute("value","embedFonts");mxUtils.write(n,mxResources.get("embedFonts"));ba.appendChild(n);n=document.createElement("option");n.setAttribute("value","lblToSvg");mxUtils.write(n,mxResources.get("lblToSvg"));ba.appendChild(n);this.isOffline()&&n.setAttribute("disabled","disabled");mxEvent.addListener(ba,
+"change",mxUtils.bind(this,function(){"lblToSvg"==ba.value?(ea.checked=!0,ea.setAttribute("disabled","disabled"),L.page.style.display="none","page"==H.value&&(H.value="diagram"),V.checked=!1,V.setAttribute("disabled","disabled"),C.style.display="inline-block",x.style.display="none"):"disabled"==ea.getAttribute("disabled")&&(ea.checked=!1,ea.removeAttribute("disabled"),V.removeAttribute("disabled"),L.page.style.display="",C.style.display="none",x.style.display="")}));c&&(d.appendChild(ea),mxUtils.write(d,
+mxResources.get("embedImages")),mxUtils.br(d),mxUtils.write(d,mxResources.get("txtSettings")+":"),d.appendChild(ba),mxUtils.br(d),k+=60);var x=document.createElement("select");x.style.maxWidth="260px";x.style.marginLeft="8px";x.style.marginRight="10px";x.className="geBtn";c=document.createElement("option");c.setAttribute("value","auto");mxUtils.write(c,mxResources.get("automatic"));x.appendChild(c);c=document.createElement("option");c.setAttribute("value","blank");mxUtils.write(c,mxResources.get("openInNewWindow"));
+x.appendChild(c);c=document.createElement("option");c.setAttribute("value","self");mxUtils.write(c,mxResources.get("openInThisWindow"));x.appendChild(c);var C=document.createElement("div");mxUtils.write(C,mxResources.get("LinksLost"));C.style.margin="7px";C.style.display="none";"svg"==t&&(mxUtils.write(d,mxResources.get("links")+":"),d.appendChild(x),d.appendChild(C),mxUtils.br(d),mxUtils.br(d),k+=50);e=new CustomDialog(this,d,mxUtils.bind(this,function(){this.lastExportBorder=u.value;this.lastExportZoom=
+p.value;l(p.value,M.checked,!z.checked,V.checked,ga.checked,ea.checked,u.value,G.checked,!1,x.value,null!=W?W.checked:null,null!=P?P.checked:null,H.value,"embedFonts"==ba.value,"lblToSvg"==ba.value)}),null,e,f);this.showDialog(e.container,340,k,!0,!0,null,null,null,null,!0);p.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?p.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(b,c,e,f,l){var d=document.createElement("div");d.style.whiteSpace=
+"nowrap";var g=this.editor.graph;if(null!=c){var k=document.createElement("h3");mxUtils.write(k,c);k.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";d.appendChild(k)}var m=this.addCheckbox(d,mxResources.get("fit"),!0),p=this.addCheckbox(d,mxResources.get("shadow"),g.shadowVisible&&f,!f),n=this.addCheckbox(d,e),q=this.addCheckbox(d,mxResources.get("lightbox"),!0),F=this.addEditButton(d,q),E=F.getEditInput(),O=1<g.model.getChildCount(g.model.getRoot()),B=this.addCheckbox(d,
+mxResources.get("layers"),O,!O);B.style.marginLeft=E.style.marginLeft;B.style.marginBottom="12px";B.style.marginTop="8px";mxEvent.addListener(q,"change",function(){q.checked?(O&&B.removeAttribute("disabled"),E.removeAttribute("disabled")):(B.setAttribute("disabled","disabled"),E.setAttribute("disabled","disabled"));E.checked&&q.checked?F.getEditSelect().removeAttribute("disabled"):F.getEditSelect().setAttribute("disabled","disabled")});c=new CustomDialog(this,d,mxUtils.bind(this,function(){b(m.checked,
+p.checked,n.checked,q.checked,F.getLink(),B.checked)}),null,mxResources.get("embed"),l);this.showDialog(c.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=function(b,c,e,f,l,n,v,t){function d(d){var c=" ",m="";f&&(c=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+
+EditorUi.lightboxHost+"/?client=1"+(null!=k?"&page="+k:"")+(l?"&edit=_blank":"")+(n?"&layers=1":"")+"');}})(this);\"",m+="cursor:pointer;");b&&(m+="max-width:100%;");var p="";e&&(p=' width="'+Math.round(g.width)+'" height="'+Math.round(g.height)+'"');v('<img src="'+d+'"'+p+(""!=m?' style="'+m+'"':"")+c+"/>")}var g=this.editor.graph.getGraphBounds(),k=this.getSelectedPageIndex();if(this.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(b){var c=f?this.getFileData(!0):null;b=
this.createImageDataUri(b,c,"png");d(b)}),null,null,null,mxUtils.bind(this,function(b){t({message:mxResources.get("unknownError")})}),null,!0,e?2:1,null,c,null,null,Editor.defaultBorder);else if(c=this.getFileData(!0),g.width*g.height<=MAX_AREA&&c.length<=MAX_REQUEST_SIZE){var m="";e&&(m="&w="+Math.round(2*g.width)+"&h="+Math.round(2*g.height));var p=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(f?"1":"0")+m+"&xml="+encodeURIComponent(c));p.send(mxUtils.bind(this,function(){200<=p.getStatus()&&
-299>=p.getStatus()?d("data:image/png;base64,"+p.getText()):t({message:mxResources.get("unknownError")})}))}else t({message:mxResources.get("drawingTooLarge")})};EditorUi.prototype.createEmbedSvg=function(b,c,e,f,l,n,u){var d=this.editor.graph.getSvg(null,null,null,null,null,null,null,null,null,null,!e),g=d.getElementsByTagName("a");if(null!=g)for(var k=0;k<g.length;k++){var m=g[k].getAttribute("href");null!=m&&"#"==m.charAt(0)&&"_blank"==g[k].getAttribute("target")&&g[k].removeAttribute("target")}f&&
-d.setAttribute("content",this.getFileData(!0));c&&this.editor.graph.addSvgShadow(d);if(e){var p=" ",v="";f&&(p="onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+EditorUi.lightboxHost+"/?client=1"+(l?"&edit=_blank":"")+(n?"&layers=1":
-"")+"');}})(this);\"",v+="cursor:pointer;");b&&(v+="max-width:100%;");this.editor.convertImages(d,mxUtils.bind(this,function(b){u('<img src="'+Editor.createSvgDataUri(mxUtils.getXml(b))+'"'+(""!=v?' style="'+v+'"':"")+p+"/>")}))}else v="",f&&(c=this.getSelectedPageIndex(),d.setAttribute("onclick","(function(svg){var src=window.event.target||window.event.srcElement;while (src!=null&&src.nodeName.toLowerCase()!='a'){src=src.parentNode;}if(src==null){if(svg.wnd!=null&&!svg.wnd.closed){svg.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==svg.wnd){svg.wnd.postMessage(decodeURIComponent(svg.getAttribute('content')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);svg.wnd=window.open('"+
-EditorUi.lightboxHost+"/?client=1"+(null!=c?"&page="+c:"")+(l?"&edit=_blank":"")+(n?"&layers=1":"")+"');}}})(this);"),v+="cursor:pointer;"),b&&(b=parseInt(d.getAttribute("width")),l=parseInt(d.getAttribute("height")),d.setAttribute("viewBox","-0.5 -0.5 "+b+" "+l),v+="max-width:100%;max-height:"+l+"px;",d.removeAttribute("height")),""!=v&&d.setAttribute("style",v),this.editor.addFontCss(d),this.editor.graph.mathEnabled&&this.editor.addMathCss(d),u(mxUtils.getXml(d))};EditorUi.prototype.timeSince=function(b){b=
+299>=p.getStatus()?d("data:image/png;base64,"+p.getText()):t({message:mxResources.get("unknownError")})}))}else t({message:mxResources.get("drawingTooLarge")})};EditorUi.prototype.createEmbedSvg=function(b,c,e,f,l,n,v){var d=this.editor.graph.getSvg(null,null,null,null,null,null,null,null,null,null,!e),g=d.getElementsByTagName("a");if(null!=g)for(var k=0;k<g.length;k++){var m=g[k].getAttribute("href");null!=m&&"#"==m.charAt(0)&&"_blank"==g[k].getAttribute("target")&&g[k].removeAttribute("target")}f&&
+d.setAttribute("content",this.getFileData(!0));c&&this.editor.graph.addSvgShadow(d);if(e){var p=" ",u="";f&&(p="onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+EditorUi.lightboxHost+"/?client=1"+(l?"&edit=_blank":"")+(n?"&layers=1":
+"")+"');}})(this);\"",u+="cursor:pointer;");b&&(u+="max-width:100%;");this.editor.convertImages(d,mxUtils.bind(this,function(b){v('<img src="'+Editor.createSvgDataUri(mxUtils.getXml(b))+'"'+(""!=u?' style="'+u+'"':"")+p+"/>")}))}else u="",f&&(c=this.getSelectedPageIndex(),d.setAttribute("onclick","(function(svg){var src=window.event.target||window.event.srcElement;while (src!=null&&src.nodeName.toLowerCase()!='a'){src=src.parentNode;}if(src==null){if(svg.wnd!=null&&!svg.wnd.closed){svg.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==svg.wnd){svg.wnd.postMessage(decodeURIComponent(svg.getAttribute('content')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);svg.wnd=window.open('"+
+EditorUi.lightboxHost+"/?client=1"+(null!=c?"&page="+c:"")+(l?"&edit=_blank":"")+(n?"&layers=1":"")+"');}}})(this);"),u+="cursor:pointer;"),b&&(b=parseInt(d.getAttribute("width")),l=parseInt(d.getAttribute("height")),d.setAttribute("viewBox","-0.5 -0.5 "+b+" "+l),u+="max-width:100%;max-height:"+l+"px;",d.removeAttribute("height")),""!=u&&d.setAttribute("style",u),this.editor.addFontCss(d),this.editor.graph.mathEnabled&&this.editor.addMathCss(d),v(mxUtils.getXml(d))};EditorUi.prototype.timeSince=function(b){b=
Math.floor((new Date-b)/1E3);var d=Math.floor(b/31536E3);if(1<d)return d+" "+mxResources.get("years");d=Math.floor(b/2592E3);if(1<d)return d+" "+mxResources.get("months");d=Math.floor(b/86400);if(1<d)return d+" "+mxResources.get("days");d=Math.floor(b/3600);if(1<d)return d+" "+mxResources.get("hours");d=Math.floor(b/60);return 1<d?d+" "+mxResources.get("minutes"):1==d?d+" "+mxResources.get("minute"):null};EditorUi.prototype.decodeNodeIntoGraph=function(b,c){if(null!=b){var d=null;if("diagram"==b.nodeName)d=
-b;else if("mxfile"==b.nodeName){var e=b.getElementsByTagName("diagram");if(0<e.length){var d=e[0],f=c.getGlobalVariable;c.getGlobalVariable=function(b){return"page"==b?d.getAttribute("name")||mxResources.get("pageWithNumber",[1]):"pagenumber"==b?1:f.apply(this,arguments)}}}null!=d&&(b=Editor.parseDiagramNode(d))}e=this.editor.graph;try{this.editor.graph=c,this.editor.setGraphXml(b)}catch(v){}finally{this.editor.graph=e}return b};EditorUi.prototype.getPngFileProperties=function(b){var d=1,c=0;if(null!=
+b;else if("mxfile"==b.nodeName){var e=b.getElementsByTagName("diagram");if(0<e.length){var d=e[0],f=c.getGlobalVariable;c.getGlobalVariable=function(b){return"page"==b?d.getAttribute("name")||mxResources.get("pageWithNumber",[1]):"pagenumber"==b?1:f.apply(this,arguments)}}}null!=d&&(b=Editor.parseDiagramNode(d))}e=this.editor.graph;try{this.editor.graph=c,this.editor.setGraphXml(b)}catch(u){}finally{this.editor.graph=e}return b};EditorUi.prototype.getPngFileProperties=function(b){var d=1,c=0;if(null!=
b){if(b.hasAttribute("scale")){var e=parseFloat(b.getAttribute("scale"));!isNaN(e)&&0<e&&(d=e)}b.hasAttribute("border")&&(e=parseInt(b.getAttribute("border")),!isNaN(e)&&0<e&&(c=e))}return{scale:d,border:c}};EditorUi.prototype.getEmbeddedPng=function(b,c,e,f,l){try{var d=this.editor.graph,g=null!=d.themes&&"darkTheme"==d.defaultThemeName,k=null;if(null!=e&&0<e.length)d=this.createTemporaryGraph(g?d.getDefaultStylesheet():d.getStylesheet()),document.body.appendChild(d.container),this.decodeNodeIntoGraph(this.editor.extractGraphModel(mxUtils.parseXml(e).documentElement,
!0),d),k=e;else if(g||null!=this.pages&&this.currentPage!=this.pages[0]){var d=this.createTemporaryGraph(g?d.getDefaultStylesheet():d.getStylesheet()),m=d.getGlobalVariable;d.setBackgroundImage=this.editor.graph.setBackgroundImage;var p=this.pages[0];this.currentPage==p?d.setBackgroundImage(this.editor.graph.backgroundImage):null!=p.viewState&&null!=p.viewState&&d.setBackgroundImage(p.viewState.backgroundImage);d.getGlobalVariable=function(b){return"page"==b?p.getName():"pagenumber"==b?1:m.apply(this,
-arguments)};document.body.appendChild(d.container);d.model.setRoot(p.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(e){try{null==k&&(k=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var g=e.toDataURL("image/png"),g=Editor.writeGraphModelToPng(g,"tEXt","mxfile",encodeURIComponent(k));b(g.substring(g.lastIndexOf(",")+1));d!=this.editor.graph&&d.container.parentNode.removeChild(d.container)}catch(E){null!=c&&c(E)}}),null,null,null,mxUtils.bind(this,function(b){null!=c&&
-c(b)}),null,null,f,null,d.shadowVisible,null,d,l,null,null,null,"diagram",null)}catch(F){null!=c&&c(F)}};EditorUi.prototype.getEmbeddedSvg=function(b,c,e,f,l,n,u,t,q,y,F,D,E){t=null!=t?t:!0;F=null!=F?F:0;u=null!=q?q:c.background;u==mxConstants.NONE&&(u=null);n=c.getSvg(u,y,F,null,null,n,null,null,null,c.shadowVisible||D,null,E,"diagram");(c.shadowVisible||D)&&c.addSvgShadow(n,null,null,0==F);null!=b&&n.setAttribute("content",b);null!=e&&n.setAttribute("resource",e);var d=mxUtils.bind(this,function(b){b=
+arguments)};document.body.appendChild(d.container);d.model.setRoot(p.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(e){try{null==k&&(k=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var g=e.toDataURL("image/png"),g=Editor.writeGraphModelToPng(g,"tEXt","mxfile",encodeURIComponent(k));b(g.substring(g.lastIndexOf(",")+1));d!=this.editor.graph&&d.container.parentNode.removeChild(d.container)}catch(F){null!=c&&c(F)}}),null,null,null,mxUtils.bind(this,function(b){null!=c&&
+c(b)}),null,null,f,null,d.shadowVisible,null,d,l,null,null,null,"diagram",null)}catch(I){null!=c&&c(I)}};EditorUi.prototype.getEmbeddedSvg=function(b,c,e,f,l,n,v,t,q,y,I,D,F){t=null!=t?t:!0;I=null!=I?I:0;v=null!=q?q:c.background;v==mxConstants.NONE&&(v=null);n=c.getSvg(v,y,I,null,null,n,null,null,null,c.shadowVisible||D,null,F,"diagram");(c.shadowVisible||D)&&c.addSvgShadow(n,null,null,0==I);null!=b&&n.setAttribute("content",b);null!=e&&n.setAttribute("resource",e);var d=mxUtils.bind(this,function(b){b=
(f?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(b);null!=l&&l(b);return b});c.mathEnabled&&this.editor.addMathCss(n);if(null!=l)this.embedFonts(n,mxUtils.bind(this,function(b){t?this.editor.convertImages(b,mxUtils.bind(this,function(b){d(b)})):d(b)}));else return d(n)};EditorUi.prototype.embedFonts=function(b,c){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&&this.editor.addFontCss(b,this.editor.resolvedFontCss),
-this.editor.embedExtFonts(mxUtils.bind(this,function(d){try{null!=d&&this.editor.addFontCss(b,d),c(b)}catch(p){c(b)}}))}catch(g){c(b)}}))};EditorUi.prototype.exportImage=function(b,c,e,f,l,n,u,t,q,y,F,D,E){q=null!=q?q:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"))){var d=this.editor.graph.isSelectionEmpty();e=null!=e?e:d;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,function(b){this.spinner.stop();try{this.saveCanvas(b,
-l?this.getFileData(!0,null,null,null,e,t):null,q,null==this.pages||0==this.pages.length,F)}catch(A){this.handleError(A)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(b){this.spinner.stop();this.handleError(b)}),null,e,b||1,c,f,null,null,n,u,y,D,E)}catch(N){this.spinner.stop(),this.handleError(N)}}};EditorUi.prototype.isCorsEnabledForUrl=function(b){return this.editor.isCorsEnabledForUrl(b)};EditorUi.prototype.importXml=function(b,c,e,f,l,n,u){c=null!=c?c:0;e=null!=e?e:0;var d=[];try{var g=
+this.editor.embedExtFonts(mxUtils.bind(this,function(d){try{null!=d&&this.editor.addFontCss(b,d),c(b)}catch(p){c(b)}}))}catch(g){c(b)}}))};EditorUi.prototype.exportImage=function(b,c,e,f,l,n,v,t,q,y,I,D,F){q=null!=q?q:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"))){var d=this.editor.graph.isSelectionEmpty();e=null!=e?e:d;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,function(b){this.spinner.stop();try{this.saveCanvas(b,
+l?this.getFileData(!0,null,null,null,e,t):null,q,null==this.pages||0==this.pages.length,I)}catch(B){this.handleError(B)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(b){this.spinner.stop();this.handleError(b)}),null,e,b||1,c,f,null,null,n,v,y,D,F)}catch(O){this.spinner.stop(),this.handleError(O)}}};EditorUi.prototype.isCorsEnabledForUrl=function(b){return this.editor.isCorsEnabledForUrl(b)};EditorUi.prototype.importXml=function(b,c,e,f,l,n,v){c=null!=c?c:0;e=null!=e?e:0;var d=[];try{var g=
this.editor.graph;if(null!=b&&0<b.length){g.model.beginUpdate();try{var k=mxUtils.parseXml(b);b={};var m=this.editor.extractGraphModel(k.documentElement,null!=this.pages);if(null!=m&&"mxfile"==m.nodeName&&null!=this.pages){var p=m.getElementsByTagName("diagram");if(1==p.length&&!n){if(m=Editor.parseDiagramNode(p[0]),null!=this.currentPage&&(b[p[0].getAttribute("id")]=this.currentPage.getId(),null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",
-[1]))){var v=p[0].getAttribute("name");null!=v&&""!=v&&this.editor.graph.model.execute(new RenamePage(this,this.currentPage,v))}}else if(0<p.length){n=[];var q=0;null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&(b[p[0].getAttribute("id")]=this.pages[0].getId(),m=Editor.parseDiagramNode(p[0]),f=!1,q=1);for(;q<p.length;q++){var N=p[q].getAttribute("id");p[q].removeAttribute("id");var A=this.updatePageRoot(new DiagramPage(p[q]));b[N]=p[q].getAttribute("id");var G=this.pages.length;null==
-A.getName()&&A.setName(mxResources.get("pageWithNumber",[G+1]));g.model.execute(new ChangePage(this,A,A,G,!0));n.push(A)}this.updatePageLinks(b,n)}}if(null!=m&&"mxGraphModel"===m.nodeName){d=g.importGraphModel(m,c,e,f);if(null!=d)for(q=0;q<d.length;q++)this.updatePageLinksForCell(b,d[q]);var I=g.parseBackgroundImage(m.getAttribute("backgroundImage"));if(null!=I&&null!=I.originalSrc){this.updateBackgroundPageLink(b,I);var L=new ChangePageSetup(this,null,I);L.ignoreColor=!0;g.model.execute(L)}}u&&this.insertHandler(d,
-null,null,g.defaultVertexStyle,g.defaultEdgeStyle,!1,!0)}finally{g.model.endUpdate()}}}catch(M){if(l)throw M;this.handleError(M)}return d};EditorUi.prototype.updatePageLinks=function(b,c){for(var d=0;d<c.length;d++)this.updatePageLinksForCell(b,c[d].root),null!=c[d].viewState&&this.updateBackgroundPageLink(b,c[d].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(b,c){try{if(null!=c&&Graph.isPageLink(c.originalSrc)){var d=b[c.originalSrc.substring(c.originalSrc.indexOf(",")+
+[1]))){var u=p[0].getAttribute("name");null!=u&&""!=u&&this.editor.graph.model.execute(new RenamePage(this,this.currentPage,u))}}else if(0<p.length){n=[];var q=0;null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&(b[p[0].getAttribute("id")]=this.pages[0].getId(),m=Editor.parseDiagramNode(p[0]),f=!1,q=1);for(;q<p.length;q++){var O=p[q].getAttribute("id");p[q].removeAttribute("id");var B=this.updatePageRoot(new DiagramPage(p[q]));b[O]=p[q].getAttribute("id");var G=this.pages.length;null==
+B.getName()&&B.setName(mxResources.get("pageWithNumber",[G+1]));g.model.execute(new ChangePage(this,B,B,G,!0));n.push(B)}this.updatePageLinks(b,n)}}if(null!=m&&"mxGraphModel"===m.nodeName){d=g.importGraphModel(m,c,e,f);if(null!=d)for(q=0;q<d.length;q++)this.updatePageLinksForCell(b,d[q]);var H=g.parseBackgroundImage(m.getAttribute("backgroundImage"));if(null!=H&&null!=H.originalSrc){this.updateBackgroundPageLink(b,H);var L=new ChangePageSetup(this,null,H);L.ignoreColor=!0;g.model.execute(L)}}v&&this.insertHandler(d,
+null,null,g.defaultVertexStyle,g.defaultEdgeStyle,!1,!0)}finally{g.model.endUpdate()}}}catch(N){if(l)throw N;this.handleError(N)}return d};EditorUi.prototype.updatePageLinks=function(b,c){for(var d=0;d<c.length;d++)this.updatePageLinksForCell(b,c[d].root),null!=c[d].viewState&&this.updateBackgroundPageLink(b,c[d].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(b,c){try{if(null!=c&&Graph.isPageLink(c.originalSrc)){var d=b[c.originalSrc.substring(c.originalSrc.indexOf(",")+
1)];null!=d&&(c.originalSrc="data:page/id,"+d)}}catch(p){}};EditorUi.prototype.updatePageLinksForCell=function(b,c){var d=document.createElement("div"),e=this.editor.graph,f=e.getLinkForCell(c);null!=f&&e.setLinkForCell(c,this.updatePageLink(b,f));if(e.isHtmlLabel(c)){d.innerHTML=e.sanitizeHtml(e.getLabel(c));for(var k=d.getElementsByTagName("a"),l=!1,n=0;n<k.length;n++)f=k[n].getAttribute("href"),null!=f&&(k[n].setAttribute("href",this.updatePageLink(b,f)),l=!0);l&&e.labelChanged(c,d.innerHTML)}for(n=
0;n<e.model.getChildCount(c);n++)this.updatePageLinksForCell(b,e.model.getChildAt(c,n))};EditorUi.prototype.updatePageLink=function(b,c){if(Graph.isPageLink(c)){var d=b[c.substring(c.indexOf(",")+1)];c=null!=d?"data:page/id,"+d:null}else if("data:action/json,"==c.substring(0,17))try{var e=JSON.parse(c.substring(17));if(null!=e.actions){for(var f=0;f<e.actions.length;f++){var k=e.actions[f];if(null!=k.open&&Graph.isPageLink(k.open)){var l=k.open.substring(k.open.indexOf(",")+1),d=b[l];null!=d?k.open=
"data:page/id,"+d:null==this.getPageById(l)&&delete k.open}}c="data:action/json,"+JSON.stringify(e)}}catch(t){}return c};EditorUi.prototype.isRemoteVisioFormat=function(b){return/(\.v(sd|dx))($|\?)/i.test(b)||/(\.vs(s|x))($|\?)/i.test(b)};EditorUi.prototype.importVisio=function(b,c,e,f,l){f=null!=f?f:b.name;e=null!=e?e:mxUtils.bind(this,function(b){this.handleError(b)});var d=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(this.doImportVisio){var d=this.isRemoteVisioFormat(f);try{var g=
"UNKNOWN-VISIO",k=f.lastIndexOf(".");if(0<=k&&k<f.length)g=f.substring(k+1).toUpperCase();else{var m=f.lastIndexOf("/");0<=m&&m<f.length&&(f=f.substring(m+1))}EditorUi.logEvent({category:g+"-MS-IMPORT-FILE",action:"filename_"+f,label:d?"remote":"local"})}catch(D){}if(d)if(null==VSD_CONVERT_URL||this.isOffline())e({message:"conf"==this.getServiceName()?mxResources.get("vsdNoConfig"):mxResources.get("serviceUnavailableOrBlocked")});else{d=new FormData;d.append("file1",b,f);var p=new XMLHttpRequest;
-p.open("POST",VSD_CONVERT_URL+(/(\.vss|\.vsx)$/.test(f)?"?stencil=1":""));p.responseType="blob";this.addRemoteServiceSecurityCheck(p);null!=l&&p.setRequestHeader("x-convert-custom",l);p.onreadystatechange=mxUtils.bind(this,function(){if(4==p.readyState)if(200<=p.status&&299>=p.status)try{var b=p.response;if("text/xml"==b.type){var d=new FileReader;d.onload=mxUtils.bind(this,function(b){try{c(b.target.result)}catch(N){e({message:mxResources.get("errorLoadingFile")})}});d.readAsText(b)}else this.doImportVisio(b,
-c,e,f)}catch(H){e(H)}else try{""==p.responseType||"text"==p.responseType?e({message:p.responseText}):(d=new FileReader,d.onload=function(){e({message:JSON.parse(d.result).Message})},d.readAsText(p.response))}catch(H){e({})}});p.send(d)}else try{this.doImportVisio(b,c,e,f)}catch(D){e(D)}}else this.spinner.stop(),this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?d():(this.loadingExtensions=!0,mxscript("js/extensions.min.js",
+p.open("POST",VSD_CONVERT_URL+(/(\.vss|\.vsx)$/.test(f)?"?stencil=1":""));p.responseType="blob";this.addRemoteServiceSecurityCheck(p);null!=l&&p.setRequestHeader("x-convert-custom",l);p.onreadystatechange=mxUtils.bind(this,function(){if(4==p.readyState)if(200<=p.status&&299>=p.status)try{var b=p.response;if("text/xml"==b.type){var d=new FileReader;d.onload=mxUtils.bind(this,function(b){try{c(b.target.result)}catch(O){e({message:mxResources.get("errorLoadingFile")})}});d.readAsText(b)}else this.doImportVisio(b,
+c,e,f)}catch(E){e(E)}else try{""==p.responseType||"text"==p.responseType?e({message:p.responseText}):(d=new FileReader,d.onload=function(){e({message:JSON.parse(d.result).Message})},d.readAsText(p.response))}catch(E){e({})}});p.send(d)}else try{this.doImportVisio(b,c,e,f)}catch(D){e(D)}}else this.spinner.stop(),this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?d():(this.loadingExtensions=!0,mxscript("js/extensions.min.js",
d))};EditorUi.prototype.importGraphML=function(b,c,e){e=null!=e?e:mxUtils.bind(this,function(b){this.handleError(b)});var d=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(this.doImportGraphML)try{this.doImportGraphML(b,c,e)}catch(m){e(m)}else this.spinner.stop(),this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportGraphML||this.loadingExtensions||this.isOffline(!0)?d():(this.loadingExtensions=!0,mxscript("js/extensions.min.js",d))};EditorUi.prototype.exportVisio=
function(b){var d=mxUtils.bind(this,function(){this.loadingExtensions=!1;if("undefined"!==typeof VsdxExport)try{(new VsdxExport(this)).exportCurrentDiagrams(b)||this.handleError({message:mxResources.get("unknownError")})}catch(g){this.handleError(g)}else this.spinner.stop(),this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof VsdxExport||this.loadingExtensions||this.isOffline(!0)?d():(this.loadingExtensions=!0,mxscript("js/extensions.min.js",d))};EditorUi.prototype.convertLucidChart=
function(b,c,e){var d=mxUtils.bind(this,function(){this.loadingExtensions=!1;if("undefined"!==typeof window.LucidImporter)try{var d=JSON.parse(b);c(LucidImporter.importState(d));try{if(EditorUi.logEvent({category:"LUCIDCHART-IMPORT-FILE",action:"size_"+b.length}),null!=window.console&&"1"==urlParams.test){var g=[(new Date).toISOString(),"convertLucidChart",d];null!=d.state&&g.push(JSON.parse(d.state));if(null!=d.svgThumbs)for(var f=0;f<d.svgThumbs.length;f++)g.push(Editor.createSvgDataUri(d.svgThumbs[f]));
null!=d.thumb&&g.push(d.thumb);console.log.apply(console,g)}}catch(t){}}catch(t){null!=window.console&&console.error(t),e(t)}else e({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof window.LucidImporter||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(d,0):(this.loadingExtensions=!0,"1"==urlParams.dev?mxscript("js/diagramly/Extensions.js",function(){mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",
function(){mxscript("js/orgchart/mxOrgChartLayout.js",d)})})})}):mxscript("js/extensions.min.js",d))};EditorUi.prototype.generateMermaidImage=function(b,c,e,f){var d=this,g=function(){try{this.loadingMermaid=!1,c=null!=c?c:mxUtils.clone(EditorUi.defaultMermaidConfig),c.securityLevel="strict",c.startOnLoad=!1,Editor.isDarkMode()&&(c.theme="dark"),mermaid.mermaidAPI.initialize(c),mermaid.mermaidAPI.render("geMermaidOutput-"+(new Date).getTime(),b,function(b){try{if(mxClient.IS_IE||mxClient.IS_IE11)b=
-b.replace(/ xmlns:\S*="http:\/\/www.w3.org\/XML\/1998\/namespace"/g,"").replace(/ (NS xml|\S*):space="preserve"/g,' xml:space="preserve"');var c=mxUtils.parseXml(b).getElementsByTagName("svg");if(0<c.length){var g=parseFloat(c[0].getAttribute("width")),k=parseFloat(c[0].getAttribute("height"));if(isNaN(g)||isNaN(k))try{var l=c[0].getAttribute("viewBox").split(/\s+/),g=parseFloat(l[2]),k=parseFloat(l[3])}catch(D){g=g||100,k=k||100}e(d.convertDataUri(Editor.createSvgDataUri(b)),g,k)}else f({message:mxResources.get("invalidInput")})}catch(D){f(D)}})}catch(u){f(u)}};
+b.replace(/ xmlns:\S*="http:\/\/www.w3.org\/XML\/1998\/namespace"/g,"").replace(/ (NS xml|\S*):space="preserve"/g,' xml:space="preserve"');var c=mxUtils.parseXml(b).getElementsByTagName("svg");if(0<c.length){var g=parseFloat(c[0].getAttribute("width")),k=parseFloat(c[0].getAttribute("height"));if(isNaN(g)||isNaN(k))try{var l=c[0].getAttribute("viewBox").split(/\s+/),g=parseFloat(l[2]),k=parseFloat(l[3])}catch(D){g=g||100,k=k||100}e(d.convertDataUri(Editor.createSvgDataUri(b)),g,k)}else f({message:mxResources.get("invalidInput")})}catch(D){f(D)}})}catch(v){f(v)}};
"undefined"!==typeof mermaid||this.loadingMermaid||this.isOffline(!0)?g():(this.loadingMermaid=!0,"1"==urlParams.dev?mxscript("js/mermaid/mermaid.min.js",g):mxscript("js/extensions.min.js",g))};EditorUi.prototype.generatePlantUmlImage=function(b,c,e,f){function d(b,d,c){c1=b>>2;c2=(b&3)<<4|d>>4;c3=(d&15)<<2|c>>6;c4=c&63;r="";r+=g(c1&63);r+=g(c2&63);r+=g(c3&63);return r+=g(c4&63)}function g(b){if(10>b)return String.fromCharCode(48+b);b-=10;if(26>b)return String.fromCharCode(65+b);b-=26;if(26>b)return String.fromCharCode(97+
b);b-=26;return 0==b?"-":1==b?"_":"?"}var k=new XMLHttpRequest;k.open("GET",("txt"==c?PLANT_URL+"/txt/":"png"==c?PLANT_URL+"/png/":PLANT_URL+"/svg/")+function(b){r="";for(i=0;i<b.length;i+=3)r=i+2==b.length?r+d(b.charCodeAt(i),b.charCodeAt(i+1),0):i+1==b.length?r+d(b.charCodeAt(i),0,0):r+d(b.charCodeAt(i),b.charCodeAt(i+1),b.charCodeAt(i+2));return r}(Graph.arrayBufferToString(pako.deflateRaw(b))),!0);"txt"!=c&&(k.responseType="blob");k.onload=function(b){if(200<=this.status&&300>this.status)if("txt"==
-c)e(this.response);else{var d=new FileReader;d.readAsDataURL(this.response);d.onloadend=function(b){var c=new Image;c.onload=function(){try{var b=c.width,g=c.height;if(0==b&&0==g){var k=d.result,l=k.indexOf(","),m=decodeURIComponent(escape(atob(k.substring(l+1)))),n=mxUtils.parseXml(m).getElementsByTagName("svg");0<n.length&&(b=parseFloat(n[0].getAttribute("width")),g=parseFloat(n[0].getAttribute("height")))}e(d.result,b,g)}catch(I){f(I)}};c.src=d.result};d.onerror=function(b){f(b)}}else f(b)};k.onerror=
-function(b){f(b)};k.send()};EditorUi.prototype.insertAsPreText=function(b,c,e){var d=this.editor.graph,g=null;d.getModel().beginUpdate();try{g=d.insertVertex(null,null,"<pre>"+b+"</pre>",c,e,1,1,"text;html=1;align=left;verticalAlign=top;"),d.updateCellSize(g,!0)}finally{d.getModel().endUpdate()}return g};EditorUi.prototype.insertTextAt=function(b,c,e,f,l,n,u,t){n=null!=n?n:!0;u=null!=u?u:!0;if(null!=b)if(Graph.fileSupport&&!this.isOffline()&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(b))this.parseFileData(b.replace(/\s+/g,
+c)e(this.response);else{var d=new FileReader;d.readAsDataURL(this.response);d.onloadend=function(b){var c=new Image;c.onload=function(){try{var b=c.width,g=c.height;if(0==b&&0==g){var k=d.result,l=k.indexOf(","),m=decodeURIComponent(escape(atob(k.substring(l+1)))),n=mxUtils.parseXml(m).getElementsByTagName("svg");0<n.length&&(b=parseFloat(n[0].getAttribute("width")),g=parseFloat(n[0].getAttribute("height")))}e(d.result,b,g)}catch(H){f(H)}};c.src=d.result};d.onerror=function(b){f(b)}}else f(b)};k.onerror=
+function(b){f(b)};k.send()};EditorUi.prototype.insertAsPreText=function(b,c,e){var d=this.editor.graph,g=null;d.getModel().beginUpdate();try{g=d.insertVertex(null,null,"<pre>"+b+"</pre>",c,e,1,1,"text;html=1;align=left;verticalAlign=top;"),d.updateCellSize(g,!0)}finally{d.getModel().endUpdate()}return g};EditorUi.prototype.insertTextAt=function(b,c,e,f,l,n,q,t){n=null!=n?n:!0;q=null!=q?q:!0;if(null!=b)if(Graph.fileSupport&&!this.isOffline()&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(b))this.parseFileData(b.replace(/\s+/g,
" "),mxUtils.bind(this,function(b){4==b.readyState&&200<=b.status&&299>=b.status&&this.editor.graph.setSelectionCells(this.insertTextAt(b.responseText,c,e,!0))}));else if("data:"==b.substring(0,5)||!this.isOffline()&&(l||/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(b))){var d=this.editor.graph;if("data:application/pdf;base64,"==b.substring(0,28)){var g=Editor.extractGraphModelFromPdf(b);if(null!=g&&0<g.length)return this.importXml(g,c,e,n,!0,t)}if(Editor.isPngDataUrl(b)&&(g=Editor.extractGraphModelFromPng(b),
-null!=g&&0<g.length))return this.importXml(g,c,e,n,!0,t);if("data:image/svg+xml;"==b.substring(0,19))try{g=null;"data:image/svg+xml;base64,"==b.substring(0,26)?(g=b.substring(b.indexOf(",")+1),g=window.atob&&!mxClient.IS_SF?atob(g):Base64.decode(g,!0)):g=decodeURIComponent(b.substring(b.indexOf(",")+1));var k=this.importXml(g,c,e,n,!0,t);if(0<k.length)return k}catch(E){}this.loadImage(b,mxUtils.bind(this,function(g){if("data:"==b.substring(0,5))this.resizeImage(g,b,mxUtils.bind(this,function(b,g,
-f){d.setSelectionCell(d.insertVertex(null,null,"",d.snap(c),d.snap(e),g,f,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+this.convertDataUri(b)+";"))}),u,this.maxImageSize);else{var f=Math.min(1,Math.min(this.maxImageSize/g.width,this.maxImageSize/g.height)),k=Math.round(g.width*f);g=Math.round(g.height*f);d.setSelectionCell(d.insertVertex(null,null,"",d.snap(c),d.snap(e),k,g,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+
+null!=g&&0<g.length))return this.importXml(g,c,e,n,!0,t);if("data:image/svg+xml;"==b.substring(0,19))try{g=null;"data:image/svg+xml;base64,"==b.substring(0,26)?(g=b.substring(b.indexOf(",")+1),g=window.atob&&!mxClient.IS_SF?atob(g):Base64.decode(g,!0)):g=decodeURIComponent(b.substring(b.indexOf(",")+1));var k=this.importXml(g,c,e,n,!0,t);if(0<k.length)return k}catch(F){}this.loadImage(b,mxUtils.bind(this,function(g){if("data:"==b.substring(0,5))this.resizeImage(g,b,mxUtils.bind(this,function(b,g,
+f){d.setSelectionCell(d.insertVertex(null,null,"",d.snap(c),d.snap(e),g,f,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+this.convertDataUri(b)+";"))}),q,this.maxImageSize);else{var f=Math.min(1,Math.min(this.maxImageSize/g.width,this.maxImageSize/g.height)),k=Math.round(g.width*f);g=Math.round(g.height*f);d.setSelectionCell(d.insertVertex(null,null,"",d.snap(c),d.snap(e),k,g,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+
b+";"))}}),mxUtils.bind(this,function(){var g=null;d.getModel().beginUpdate();try{g=d.insertVertex(d.getDefaultParent(),null,b,d.snap(c),d.snap(e),1,1,"text;"+(f?"html=1;":"")),d.updateCellSize(g),d.fireEvent(new mxEventObject("textInserted","cells",[g]))}finally{d.getModel().endUpdate()}d.setSelectionCell(g)}))}else{b=Graph.zapGremlins(mxUtils.trim(b));if(this.isCompatibleString(b))return this.importXml(b,c,e,n,null,t);if(0<b.length)if(this.isLucidChartData(b))this.convertLucidChart(b,mxUtils.bind(this,
function(b){this.editor.graph.setSelectionCells(this.importXml(b,c,e,n,null,t))}),mxUtils.bind(this,function(b){this.handleError(b)}));else{d=this.editor.graph;l=null;d.getModel().beginUpdate();try{l=d.insertVertex(d.getDefaultParent(),null,"",d.snap(c),d.snap(e),1,1,"text;whiteSpace=wrap;"+(f?"html=1;":""));d.fireEvent(new mxEventObject("textInserted","cells",[l]));"<"==b.charAt(0)&&b.indexOf(">")==b.length-1&&(b=mxUtils.htmlEntities(b));b.length>this.maxTextBytes&&(b=b.substring(0,this.maxTextBytes)+
"...");l.value=b;d.updateCellSize(l);if(0<this.maxTextWidth&&l.geometry.width>this.maxTextWidth){var m=d.getPreferredSizeForCell(l,this.maxTextWidth);l.geometry.width=m.width;l.geometry.height=m.height}Graph.isLink(l.value)&&d.setLinkForCell(l,l.value);l.geometry.width+=d.gridSize;l.geometry.height+=d.gridSize}finally{d.getModel().endUpdate()}return[l]}}return[]};EditorUi.prototype.formatFileSize=function(b){var d=-1;do b/=1024,d++;while(1024<b);return Math.max(b,.1).toFixed(1)+" kB; MB; GB; TB;PB;EB;ZB;YB".split(";")[d]};
@@ -3637,46 +3637,46 @@ this.importFileInputElt){var d=document.createElement("input");d.setAttribute("t
"F",b,d)});window.openBrowserFile=mxUtils.bind(this,function(b,d,c){StorageFile.getFileContent(this,b,d,c)});window.deleteBrowserFile=mxUtils.bind(this,function(b,d,c){StorageFile.deleteFile(this,b,d,c)});if(!c){var e=Editor.useLocalStorage;Editor.useLocalStorage=!b}window.openFile=new OpenFile(mxUtils.bind(this,function(b){this.hideDialog(b)}));window.openFile.setConsumer(mxUtils.bind(this,function(b,d){if(null!=d&&Graph.fileSupport&&/(\.v(dx|sdx?))($|\?)/i.test(d)){var c=new Blob([b],{type:"application/octet-stream"});
this.importVisio(c,mxUtils.bind(this,function(b){this.importXml(b,0,0,!0)}),null,d)}else this.editor.graph.setSelectionCells(this.importXml(b,0,0,!0))}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:360,Editor.useLocalStorage?480:220,!0,!0,function(){window.openFile=null});if(!c){var f=this.dialog,k=f.close;this.dialog.close=mxUtils.bind(this,function(b){Editor.useLocalStorage=e;k.apply(f,arguments);b&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()})}}};
EditorUi.prototype.importZipFile=function(b,c,e){var d=this,g=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?JSZip.loadAsync(b).then(function(g){if(0==Object.keys(g.files).length)e();else{var f=0,k,l=!1;g.forEach(function(b,d){var g=d.name.toLowerCase();"diagram/diagram.xml"==g?(l=!0,d.async("string").then(function(b){0==b.indexOf("<mxfile ")?c(b):e()})):0==g.indexOf("versions/")&&(g=parseInt(g.substr(9)),g>f&&(f=g,k=d))});0<f?k.async("string").then(function(g){!d.isOffline()&&
-(new XMLHttpRequest).upload&&d.isRemoteFileFormat(g,b.name)?d.parseFileData(g,mxUtils.bind(this,function(b){4==b.readyState&&(200<=b.status&&299>=b.status?c(b.responseText):e())}),b.name):e()}):l||e()}},function(b){e(b)}):e()});"undefined"!==typeof JSZip||this.loadingExtensions||this.isOffline(!0)?g():(this.loadingExtensions=!0,mxscript("js/extensions.min.js",g))};EditorUi.prototype.importFile=function(b,c,e,f,l,n,q,t,z,y,F,D){y=null!=y?y:!0;var d=!1,g=null,k=mxUtils.bind(this,function(b){var d=null;
-null!=b&&"<mxlibrary"==b.substring(0,10)?this.loadLibrary(new LocalLibrary(this,b,q)):d=this.importXml(b,e,f,y,null,null!=D?mxEvent.isControlDown(D):null);null!=t&&t(d)});"image"==c.substring(0,5)?(z=!1,"image/png"==c.substring(0,9)&&(c=F?null:this.extractGraphModelFromPng(b),null!=c&&0<c.length&&(g=this.importXml(c,e,f,y,null,null!=D?mxEvent.isControlDown(D):null),z=!0)),z||(c=this.editor.graph,z=b.indexOf(";"),0<z&&(b=b.substring(0,z)+b.substring(b.indexOf(",",z+1))),y&&c.isGridEnabled()&&(e=c.snap(e),
+(new XMLHttpRequest).upload&&d.isRemoteFileFormat(g,b.name)?d.parseFileData(g,mxUtils.bind(this,function(b){4==b.readyState&&(200<=b.status&&299>=b.status?c(b.responseText):e())}),b.name):e()}):l||e()}},function(b){e(b)}):e()});"undefined"!==typeof JSZip||this.loadingExtensions||this.isOffline(!0)?g():(this.loadingExtensions=!0,mxscript("js/extensions.min.js",g))};EditorUi.prototype.importFile=function(b,c,e,f,l,n,q,t,z,y,I,D){y=null!=y?y:!0;var d=!1,g=null,k=mxUtils.bind(this,function(b){var d=null;
+null!=b&&"<mxlibrary"==b.substring(0,10)?this.loadLibrary(new LocalLibrary(this,b,q)):d=this.importXml(b,e,f,y,null,null!=D?mxEvent.isControlDown(D):null);null!=t&&t(d)});"image"==c.substring(0,5)?(z=!1,"image/png"==c.substring(0,9)&&(c=I?null:this.extractGraphModelFromPng(b),null!=c&&0<c.length&&(g=this.importXml(c,e,f,y,null,null!=D?mxEvent.isControlDown(D):null),z=!0)),z||(c=this.editor.graph,z=b.indexOf(";"),0<z&&(b=b.substring(0,z)+b.substring(b.indexOf(",",z+1))),y&&c.isGridEnabled()&&(e=c.snap(e),
f=c.snap(f)),g=[c.insertVertex(null,null,"",e,f,l,n,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+b+";")])):/(\.*<graphml )/.test(b)?(d=!0,this.importGraphML(b,k)):null!=z&&null!=q&&(/(\.v(dx|sdx?))($|\?)/i.test(q)||/(\.vs(x|sx?))($|\?)/i.test(q))?(d=!0,this.importVisio(z,k)):!this.isOffline()&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(b,q)?(d=!0,l=mxUtils.bind(this,function(b){4==b.readyState&&(200<=b.status&&
299>=b.status?k(b.responseText):null!=t&&t(null))}),null!=b?this.parseFileData(b,l,q):this.parseFile(z,l,q)):0==b.indexOf("PK")&&null!=z?(d=!0,this.importZipFile(z,k,mxUtils.bind(this,function(){g=this.insertTextAt(this.validateFileData(b),e,f,!0,null,y);t(g)}))):/(\.v(sd|dx))($|\?)/i.test(q)||/(\.vs(s|x))($|\?)/i.test(q)||(g=this.insertTextAt(this.validateFileData(b),e,f,!0,null,y,null,null!=D?mxEvent.isControlDown(D):null));d||null==t||t(g);return g};EditorUi.prototype.importFiles=function(b,c,
-e,f,l,n,q,t,z,y,F,D,E){f=null!=f?f:this.maxImageSize;y=null!=y?y:this.maxImageBytes;var d=null!=c&&null!=e,g=!0;c=null!=c?c:0;e=null!=e?e:0;var k=!1;if(!mxClient.IS_CHROMEAPP&&null!=b)for(var m=F||this.resampleThreshold,p=0;p<b.length;p++)if("image/"==b[p].type.substring(0,6)&&b[p].size>m){k=!0;break}var v=mxUtils.bind(this,function(){var k=this.editor.graph,m=k.gridSize;l=null!=l?l:mxUtils.bind(this,function(b,c,e,g,f,k,l,m,n){try{return null!=b&&"<mxlibrary"==b.substring(0,10)?(this.spinner.stop(),
-this.loadLibrary(new LocalLibrary(this,b,l)),null):this.importFile(b,c,e,g,f,k,l,m,n,d,D,E)}catch(ua){return this.handleError(ua),null}});n=null!=n?n:mxUtils.bind(this,function(b){k.setSelectionCells(b)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var p=b.length,v=p,u=[],A=mxUtils.bind(this,function(b,d){u[b]=d;if(0==--v){this.spinner.stop();if(null!=t)t(u);else{var c=[];k.getModel().beginUpdate();try{for(var e=0;e<u.length;e++){var g=u[e]();null!=g&&(c=c.concat(g))}}finally{k.getModel().endUpdate()}}n(c)}}),
-z=0;z<p;z++)mxUtils.bind(this,function(d){var n=b[d];if(null!=n){var p=new FileReader;p.onload=mxUtils.bind(this,function(b){if(null==q||q(n))if("image/"==n.type.substring(0,6))if("image/svg"==n.type.substring(0,9)){var p=Graph.clipSvgDataUri(b.target.result),t=p.indexOf(","),v=decodeURIComponent(escape(atob(p.substring(t+1)))),u=mxUtils.parseXml(v),v=u.getElementsByTagName("svg");if(0<v.length){var v=v[0],x=D?null:v.getAttribute("content");null!=x&&"<"!=x.charAt(0)&&"%"!=x.charAt(0)&&(x=unescape(window.atob?
-atob(x):Base64.decode(x,!0)));null!=x&&"%"==x.charAt(0)&&(x=decodeURIComponent(x));null==x||"<mxfile "!==x.substring(0,8)&&"<mxGraphModel "!==x.substring(0,14)?A(d,mxUtils.bind(this,function(){try{if(p.substring(0,t+1),null!=u){var b=u.getElementsByTagName("svg");if(0<b.length){var g=b[0],q=g.getAttribute("width"),v=g.getAttribute("height"),q=null!=q&&"%"!=q.charAt(q.length-1)?parseFloat(q):NaN,v=null!=v&&"%"!=v.charAt(v.length-1)?parseFloat(v):NaN,y=g.getAttribute("viewBox");if(null==y||0==y.length)g.setAttribute("viewBox",
-"0 0 "+q+" "+v);else if(isNaN(q)||isNaN(v)){var x=y.split(" ");3<x.length&&(q=parseFloat(x[2]),v=parseFloat(x[3]))}p=Editor.createSvgDataUri(mxUtils.getXml(g));var A=Math.min(1,Math.min(f/Math.max(1,q)),f/Math.max(1,v)),z=l(p,n.type,c+d*m,e+d*m,Math.max(1,Math.round(q*A)),Math.max(1,Math.round(v*A)),n.name);if(isNaN(q)||isNaN(v)){var K=new Image;K.onload=mxUtils.bind(this,function(){q=Math.max(1,K.width);v=Math.max(1,K.height);z[0].geometry.width=q;z[0].geometry.height=v;g.setAttribute("viewBox",
-"0 0 "+q+" "+v);p=Editor.createSvgDataUri(mxUtils.getXml(g));var b=p.indexOf(";");0<b&&(p=p.substring(0,b)+p.substring(p.indexOf(",",b+1)));k.setCellStyles("image",p,[z[0]])});K.src=Editor.createSvgDataUri(mxUtils.getXml(g))}return z}}}catch(qa){}return null})):A(d,mxUtils.bind(this,function(){return l(x,"text/xml",c+d*m,e+d*m,0,0,n.name)}))}else A(d,mxUtils.bind(this,function(){return null}))}else{v=!1;if("image/png"==n.type){var z=D?null:this.extractGraphModelFromPng(b.target.result);if(null!=z&&
-0<z.length){var K=new Image;K.src=b.target.result;A(d,mxUtils.bind(this,function(){return l(z,"text/xml",c+d*m,e+d*m,K.width,K.height,n.name)}));v=!0}}v||(mxClient.IS_CHROMEAPP?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("dragAndDropNotSupported"),mxResources.get("cancel"),mxUtils.bind(this,function(){}),null,mxResources.get("ok"),mxUtils.bind(this,function(){this.actions.get("import").funct()}))):this.loadImage(b.target.result,mxUtils.bind(this,function(k){this.resizeImage(k,
-b.target.result,mxUtils.bind(this,function(b,k,p){A(d,mxUtils.bind(this,function(){if(null!=b&&b.length<y){var q=g&&this.isResampleImageSize(n.size,F)?Math.min(1,Math.min(f/k,f/p)):1;return l(b,n.type,c+d*m,e+d*m,Math.round(k*q),Math.round(p*q),n.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),g,f,F,n.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else p=b.target.result,l(p,n.type,c+d*m,e+d*m,240,160,n.name,
-function(b){A(d,function(){return b})},n)});/(\.v(dx|sdx?))($|\?)/i.test(n.name)||/(\.vs(x|sx?))($|\?)/i.test(n.name)?l(null,n.type,c+d*m,e+d*m,240,160,n.name,function(b){A(d,function(){return b})},n):"image"==n.type.substring(0,5)||"application/pdf"==n.type?p.readAsDataURL(n):p.readAsText(n)}})(z)});if(k){k=[];for(p=0;p<b.length;p++)k.push(b[p]);b=k;this.confirmImageResize(function(b){g=b;v()},z)}else v()};EditorUi.prototype.confirmImageResize=function(b,c){c=null!=c?c:!1;var d=null!=this.spinner&&
+e,f,l,n,q,t,z,y,I,D,F){f=null!=f?f:this.maxImageSize;y=null!=y?y:this.maxImageBytes;var d=null!=c&&null!=e,g=!0;c=null!=c?c:0;e=null!=e?e:0;var k=!1;if(!mxClient.IS_CHROMEAPP&&null!=b)for(var m=I||this.resampleThreshold,p=0;p<b.length;p++)if("image/"==b[p].type.substring(0,6)&&b[p].size>m){k=!0;break}var u=mxUtils.bind(this,function(){var k=this.editor.graph,m=k.gridSize;l=null!=l?l:mxUtils.bind(this,function(b,c,e,g,f,k,l,m,n){try{return null!=b&&"<mxlibrary"==b.substring(0,10)?(this.spinner.stop(),
+this.loadLibrary(new LocalLibrary(this,b,l)),null):this.importFile(b,c,e,g,f,k,l,m,n,d,D,F)}catch(qa){return this.handleError(qa),null}});n=null!=n?n:mxUtils.bind(this,function(b){k.setSelectionCells(b)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var p=b.length,u=p,v=[],z=mxUtils.bind(this,function(b,d){v[b]=d;if(0==--u){this.spinner.stop();if(null!=t)t(v);else{var c=[];k.getModel().beginUpdate();try{for(var e=0;e<v.length;e++){var g=v[e]();null!=g&&(c=c.concat(g))}}finally{k.getModel().endUpdate()}}n(c)}}),
+B=0;B<p;B++)mxUtils.bind(this,function(d){var n=b[d];if(null!=n){var p=new FileReader;p.onload=mxUtils.bind(this,function(b){if(null==q||q(n))if("image/"==n.type.substring(0,6))if("image/svg"==n.type.substring(0,9)){var p=Graph.clipSvgDataUri(b.target.result),t=p.indexOf(","),u=decodeURIComponent(escape(atob(p.substring(t+1)))),v=mxUtils.parseXml(u),u=v.getElementsByTagName("svg");if(0<u.length){var u=u[0],x=D?null:u.getAttribute("content");null!=x&&"<"!=x.charAt(0)&&"%"!=x.charAt(0)&&(x=unescape(window.atob?
+atob(x):Base64.decode(x,!0)));null!=x&&"%"==x.charAt(0)&&(x=decodeURIComponent(x));null==x||"<mxfile "!==x.substring(0,8)&&"<mxGraphModel "!==x.substring(0,14)?z(d,mxUtils.bind(this,function(){try{if(p.substring(0,t+1),null!=v){var b=v.getElementsByTagName("svg");if(0<b.length){var g=b[0],q=g.getAttribute("width"),u=g.getAttribute("height"),q=null!=q&&"%"!=q.charAt(q.length-1)?parseFloat(q):NaN,u=null!=u&&"%"!=u.charAt(u.length-1)?parseFloat(u):NaN,y=g.getAttribute("viewBox");if(null==y||0==y.length)g.setAttribute("viewBox",
+"0 0 "+q+" "+u);else if(isNaN(q)||isNaN(u)){var x=y.split(" ");3<x.length&&(q=parseFloat(x[2]),u=parseFloat(x[3]))}p=Editor.createSvgDataUri(mxUtils.getXml(g));var z=Math.min(1,Math.min(f/Math.max(1,q)),f/Math.max(1,u)),B=l(p,n.type,c+d*m,e+d*m,Math.max(1,Math.round(q*z)),Math.max(1,Math.round(u*z)),n.name);if(isNaN(q)||isNaN(u)){var M=new Image;M.onload=mxUtils.bind(this,function(){q=Math.max(1,M.width);u=Math.max(1,M.height);B[0].geometry.width=q;B[0].geometry.height=u;g.setAttribute("viewBox",
+"0 0 "+q+" "+u);p=Editor.createSvgDataUri(mxUtils.getXml(g));var b=p.indexOf(";");0<b&&(p=p.substring(0,b)+p.substring(p.indexOf(",",b+1)));k.setCellStyles("image",p,[B[0]])});M.src=Editor.createSvgDataUri(mxUtils.getXml(g))}return B}}}catch(S){}return null})):z(d,mxUtils.bind(this,function(){return l(x,"text/xml",c+d*m,e+d*m,0,0,n.name)}))}else z(d,mxUtils.bind(this,function(){return null}))}else{u=!1;if("image/png"==n.type){var B=D?null:this.extractGraphModelFromPng(b.target.result);if(null!=B&&
+0<B.length){var M=new Image;M.src=b.target.result;z(d,mxUtils.bind(this,function(){return l(B,"text/xml",c+d*m,e+d*m,M.width,M.height,n.name)}));u=!0}}u||(mxClient.IS_CHROMEAPP?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("dragAndDropNotSupported"),mxResources.get("cancel"),mxUtils.bind(this,function(){}),null,mxResources.get("ok"),mxUtils.bind(this,function(){this.actions.get("import").funct()}))):this.loadImage(b.target.result,mxUtils.bind(this,function(k){this.resizeImage(k,
+b.target.result,mxUtils.bind(this,function(b,k,p){z(d,mxUtils.bind(this,function(){if(null!=b&&b.length<y){var q=g&&this.isResampleImageSize(n.size,I)?Math.min(1,Math.min(f/k,f/p)):1;return l(b,n.type,c+d*m,e+d*m,Math.round(k*q),Math.round(p*q),n.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),g,f,I,n.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else p=b.target.result,l(p,n.type,c+d*m,e+d*m,240,160,n.name,
+function(b){z(d,function(){return b})},n)});/(\.v(dx|sdx?))($|\?)/i.test(n.name)||/(\.vs(x|sx?))($|\?)/i.test(n.name)?l(null,n.type,c+d*m,e+d*m,240,160,n.name,function(b){z(d,function(){return b})},n):"image"==n.type.substring(0,5)||"application/pdf"==n.type?p.readAsDataURL(n):p.readAsText(n)}})(B)});if(k){k=[];for(p=0;p<b.length;p++)k.push(b[p]);b=k;this.confirmImageResize(function(b){g=b;u()},z)}else u()};EditorUi.prototype.confirmImageResize=function(b,c){c=null!=c?c:!1;var d=null!=this.spinner&&
null!=this.spinner.pause?this.spinner.pause():function(){},e=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,f=function(e,g){if(e||c)mxSettings.setResizeImages(e?g:null),mxSettings.save();d();b(g)};null==e||c?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(b){f(b,!0)},function(b){f(b,!1)},mxResources.get("resize"),mxResources.get("actualSize"),'<img style="margin-top:8px;" src="'+Editor.loResImage+'"/>','<img style="margin-top:8px;" src="'+
Editor.hiResImage+'"/>',isLocalStorage||mxClient.IS_CHROMEAPP)).container,340,isLocalStorage||mxClient.IS_CHROMEAPP?220:200,!0,!0):f(!1,e)};EditorUi.prototype.parseFile=function(b,c,e){e=null!=e?e:b.name;var d=new FileReader;d.onload=mxUtils.bind(this,function(){this.parseFileData(d.result,c,e)});d.readAsText(b)};EditorUi.prototype.parseFileData=function(b,c,e){var d=new XMLHttpRequest;d.open("POST",OPEN_URL);d.setRequestHeader("Content-Type","application/x-www-form-urlencoded");d.onreadystatechange=
function(){c(d)};d.send("format=xml&filename="+encodeURIComponent(e)+"&data="+encodeURIComponent(b));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(m){}};EditorUi.prototype.isResampleImageSize=function(b,c){c=null!=c?c:this.resampleThreshold;return b>c};EditorUi.prototype.resizeImage=function(b,c,e,f,l,n,q){l=null!=l?l:this.maxImageSize;var d=Math.max(1,b.width),g=Math.max(1,b.height);if(f&&this.isResampleImageSize(null!=q?q:c.length,n))try{var k=Math.max(d/
-l,g/l);if(1<k){var m=Math.round(d/k),p=Math.round(g/k),v=document.createElement("canvas");v.width=m;v.height=p;v.getContext("2d").drawImage(b,0,0,m,p);var u=v.toDataURL();if(u.length<c.length){var N=document.createElement("canvas");N.width=m;N.height=p;var A=N.toDataURL();u!==A&&(c=u,d=m,g=p)}}}catch(G){}e(c,d,g)};EditorUi.prototype.extractGraphModelFromPng=function(b){return Editor.extractGraphModelFromPng(b)};EditorUi.prototype.loadImage=function(b,c,e){try{var d=new Image;d.onload=function(){d.width=
+l,g/l);if(1<k){var m=Math.round(d/k),p=Math.round(g/k),u=document.createElement("canvas");u.width=m;u.height=p;u.getContext("2d").drawImage(b,0,0,m,p);var v=u.toDataURL();if(v.length<c.length){var O=document.createElement("canvas");O.width=m;O.height=p;var B=O.toDataURL();v!==B&&(c=v,d=m,g=p)}}}catch(G){}e(c,d,g)};EditorUi.prototype.extractGraphModelFromPng=function(b){return Editor.extractGraphModelFromPng(b)};EditorUi.prototype.loadImage=function(b,c,e){try{var d=new Image;d.onload=function(){d.width=
0<d.width?d.width:120;d.height=0<d.height?d.height:120;c(d)};null!=e&&(d.onerror=e);d.src=b}catch(m){if(null!=e)e(m);else throw m;}};EditorUi.prototype.getDefaultSketchMode=function(){var b="ac.draw.io"==window.location.host?"1":"0";return"0"!=(null!=urlParams.rough?urlParams.rough:b)};var n=EditorUi.prototype.init;EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=mxStencilRegistry.allowEval&&!this.isOfflineApp();this.isSettingsEnabled()&&("1"==urlParams.sketch&&this.doSetSketchMode(null!=
mxSettings.settings.sketchMode&&null==urlParams.rough?mxSettings.settings.sketchMode:this.getDefaultSketchMode()),null!=mxSettings.settings.sidebarTitles&&(Sidebar.prototype.sidebarTitles=mxSettings.settings.sidebarTitles),this.formatWidth=mxSettings.getFormatWidth());var b=this,c=this.editor.graph;Editor.isDarkMode()&&(c.view.defaultGridColor=mxGraphView.prototype.defaultDarkGridColor);Graph.touchStyle&&(c.panningHandler.isPanningTrigger=function(b){var d=b.getEvent();return null==b.getState()&&
!mxEvent.isMouseEvent(d)&&!c.freehand.isDrawing()||mxEvent.isPopupTrigger(d)&&(null==b.getState()||mxEvent.isControlDown(d)||mxEvent.isShiftDown(d))});c.cellEditor.editPlantUmlData=function(d,e,g){var f=JSON.parse(g);e=new TextareaDialog(b,mxResources.get("plantUml")+":",f.data,function(e){null!=e&&b.spinner.spin(document.body,mxResources.get("inserting"))&&b.generatePlantUmlImage(e,f.format,function(g,k,l){b.spinner.stop();c.getModel().beginUpdate();try{if("txt"==f.format)c.labelChanged(d,"<pre>"+
g+"</pre>"),c.updateCellSize(d,!0);else{c.setCellStyles("image",b.convertDataUri(g),[d]);var m=c.model.getGeometry(d);null!=m&&(m=m.clone(),m.width=k,m.height=l,c.cellsResized([d],[m],!1))}c.setAttributeForCell(d,"plantUmlData",JSON.stringify({data:e,format:f.format}))}finally{c.getModel().endUpdate()}},function(d){b.handleError(d)})},null,null,400,220);b.showDialog(e.container,420,300,!0,!0);e.init()};c.cellEditor.editMermaidData=function(d,e,g){var f=JSON.parse(g);e=new TextareaDialog(b,mxResources.get("mermaid")+
":",f.data,function(e){null!=e&&b.spinner.spin(document.body,mxResources.get("inserting"))&&b.generateMermaidImage(e,f.config,function(g,k,l){b.spinner.stop();c.getModel().beginUpdate();try{c.setCellStyles("image",g,[d]);var m=c.model.getGeometry(d);null!=m&&(m=m.clone(),m.width=Math.max(m.width,k),m.height=Math.max(m.height,l),c.cellsResized([d],[m],!1));c.setAttributeForCell(d,"mermaidData",JSON.stringify({data:e,config:f.config},null,2))}finally{c.getModel().endUpdate()}},function(d){b.handleError(d)})},
-null,null,400,220);b.showDialog(e.container,420,300,!0,!0);e.init()};var e=c.cellEditor.startEditing;c.cellEditor.startEditing=function(d,g){try{var f=this.graph.getAttributeForCell(d,"plantUmlData");if(null!=f)this.editPlantUmlData(d,g,f);else if(f=this.graph.getAttributeForCell(d,"mermaidData"),null!=f)this.editMermaidData(d,g,f);else{var k=c.getCellStyle(d);"1"==mxUtils.getValue(k,"metaEdit","0")?b.showDataDialog(d):e.apply(this,arguments)}}catch(K){b.handleError(K)}};c.getLinkTitle=function(d){return b.getLinkTitle(d)};
+null,null,400,220);b.showDialog(e.container,420,300,!0,!0);e.init()};var e=c.cellEditor.startEditing;c.cellEditor.startEditing=function(d,g){try{var f=this.graph.getAttributeForCell(d,"plantUmlData");if(null!=f)this.editPlantUmlData(d,g,f);else if(f=this.graph.getAttributeForCell(d,"mermaidData"),null!=f)this.editMermaidData(d,g,f);else{var k=c.getCellStyle(d);"1"==mxUtils.getValue(k,"metaEdit","0")?b.showDataDialog(d):e.apply(this,arguments)}}catch(M){b.handleError(M)}};c.getLinkTitle=function(d){return b.getLinkTitle(d)};
c.customLinkClicked=function(d){var c=!1;try{b.handleCustomLink(d),c=!0}catch(L){b.handleError(L)}return c};var f=c.parseBackgroundImage;c.parseBackgroundImage=function(b){var d=f.apply(this,arguments);null!=d&&null!=d.src&&Graph.isPageLink(d.src)&&(d={originalSrc:d.src});return d};var l=c.setBackgroundImage;c.setBackgroundImage=function(d){null!=d&&null!=d.originalSrc&&(d=b.createImageForPageLink(d.originalSrc,b.currentPage,this));l.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,
function(){c.refreshBackgroundImage()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(){c.refreshBackgroundImage()}));this.editor.addListener("pagesPatched",mxUtils.bind(this,function(b,d){var e=null!=c.backgroundImage?c.backgroundImage.originalSrc:null;if(null!=e){var g=e.indexOf(",");if(0<g)for(var e=e.substring(g+1),g=d.getProperty("patches"),f=0;f<g.length;f++)if(null!=g[f][EditorUi.DIFF_UPDATE]&&null!=g[f][EditorUi.DIFF_UPDATE][e]){c.refreshBackgroundImage();break}}}));var q=
c.getBackgroundImageObject;c.getBackgroundImageObject=function(d,c){var e=q.apply(this,arguments);if(null!=e&&null!=e.originalSrc)if(!c)e={src:e.originalSrc};else if(c&&null!=this.themes&&"darkTheme"==this.defaultThemeName){var g=this.stylesheet,f=this.shapeForegroundColor,k=this.shapeBackgroundColor;this.stylesheet=this.getDefaultStylesheet();this.shapeBackgroundColor="#ffffff";this.shapeForegroundColor="#000000";e=b.createImageForPageLink(e.originalSrc);this.shapeBackgroundColor=k;this.shapeForegroundColor=
-f;this.stylesheet=g}return e};var u=this.clearDefaultStyle;this.clearDefaultStyle=function(){u.apply(this,arguments)};this.isOffline()||"undefined"===typeof window.EditDataDialog||(EditDataDialog.placeholderHelpLink="https://www.diagrams.net/doc/faq/predefined-placeholders");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var t=b.editor.getEditBlankUrl;this.editor.getEditBlankUrl=
+f;this.stylesheet=g}return e};var v=this.clearDefaultStyle;this.clearDefaultStyle=function(){v.apply(this,arguments)};this.isOffline()||"undefined"===typeof window.EditDataDialog||(EditDataDialog.placeholderHelpLink="https://www.diagrams.net/doc/faq/predefined-placeholders");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var t=b.editor.getEditBlankUrl;this.editor.getEditBlankUrl=
function(b){b=null!=b?b:"";"1"==urlParams.dev&&(b+=(0<b.length?"&":"?")+"dev=1");return t.apply(this,arguments)};var z=c.addClickHandler;c.addClickHandler=function(b,d,e){var g=d;d=function(b,d){if(null==d){var e=mxEvent.getSource(b);"a"==e.nodeName.toLowerCase()&&(d=e.getAttribute("href"))}null!=d&&c.isCustomLink(d)&&(mxEvent.isTouchEvent(b)||!mxEvent.isPopupTrigger(b))&&c.customLinkClicked(d)&&mxEvent.consume(b);null!=g&&g(b,d)};z.call(this,b,d,e)};n.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(c.view.canvas.ownerSVGElement,
-null,!0);if(null!=this.menus){var y=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=function(d,c,e){b.editor.graph.isSelectionEmpty()?y.apply(this,arguments):b.menus.addMenuItems(d,"delete - cut copy copyAsImage - duplicate".split(" "),null,e)}}b.actions.get("print").funct=function(){b.showDialog((new PrintDialog(b)).container,360,null!=b.pages&&1<b.pages.length?450:370,!0,!0)};this.defaultFilename=mxResources.get("untitledDiagram");var F=c.getExportVariables;c.getExportVariables=
-function(){var d=F.apply(this,arguments),c=b.getCurrentFile();null!=c&&(d.filename=c.getTitle());d.pagecount=null!=b.pages?b.pages.length:1;d.page=null!=b.currentPage?b.currentPage.getName():"";d.pagenumber=null!=b.pages&&null!=b.currentPage?mxUtils.indexOf(b.pages,b.currentPage)+1:1;return d};var D=c.getGlobalVariable;c.getGlobalVariable=function(d){var c=b.getCurrentFile();return"filename"==d&&null!=c?c.getTitle():"page"==d&&null!=b.currentPage?b.currentPage.getName():"pagenumber"==d?null!=b.currentPage&&
-null!=b.pages?mxUtils.indexOf(b.pages,b.currentPage)+1:1:"pagecount"==d?null!=b.pages?b.pages.length:1:D.apply(this,arguments)};var E=c.labelLinkClicked;c.labelLinkClicked=function(b,d,e){var g=d.getAttribute("href");if(null==g||!c.isCustomLink(g)||!mxEvent.isTouchEvent(e)&&mxEvent.isPopupTrigger(e))E.apply(this,arguments);else{if(!c.isEnabled()||null!=b&&c.isCellLocked(b.cell))c.customLinkClicked(g),c.getRubberband().reset();mxEvent.consume(e)}};this.editor.getOrCreateFilename=function(){var d=b.defaultFilename,
-c=b.getCurrentFile();null!=c&&(d=null!=c.getTitle()?c.getTitle():d);return d};var H=this.actions.get("print");H.setEnabled(!mxClient.IS_IOS||!navigator.standalone);H.visible=H.isEnabled();if(!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(70,!0,"findReplace"),this.keyHandler.bindAction(67,!0,"copyStyle",!0),this.keyHandler.bindAction(86,!0,"pasteStyle",!0),this.keyHandler.bindAction(77,!0,"editGeometry",!0),this.keyHandler.bindAction(88,!0,"insertText",!0),this.keyHandler.bindAction(75,
+null,!0);if(null!=this.menus){var y=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=function(d,c,e){b.editor.graph.isSelectionEmpty()?y.apply(this,arguments):b.menus.addMenuItems(d,"delete - cut copy copyAsImage - duplicate".split(" "),null,e)}}b.actions.get("print").funct=function(){b.showDialog((new PrintDialog(b)).container,360,null!=b.pages&&1<b.pages.length?450:370,!0,!0)};this.defaultFilename=mxResources.get("untitledDiagram");var I=c.getExportVariables;c.getExportVariables=
+function(){var d=I.apply(this,arguments),c=b.getCurrentFile();null!=c&&(d.filename=c.getTitle());d.pagecount=null!=b.pages?b.pages.length:1;d.page=null!=b.currentPage?b.currentPage.getName():"";d.pagenumber=null!=b.pages&&null!=b.currentPage?mxUtils.indexOf(b.pages,b.currentPage)+1:1;return d};var D=c.getGlobalVariable;c.getGlobalVariable=function(d){var c=b.getCurrentFile();return"filename"==d&&null!=c?c.getTitle():"page"==d&&null!=b.currentPage?b.currentPage.getName():"pagenumber"==d?null!=b.currentPage&&
+null!=b.pages?mxUtils.indexOf(b.pages,b.currentPage)+1:1:"pagecount"==d?null!=b.pages?b.pages.length:1:D.apply(this,arguments)};var F=c.labelLinkClicked;c.labelLinkClicked=function(b,d,e){var g=d.getAttribute("href");if(null==g||!c.isCustomLink(g)||!mxEvent.isTouchEvent(e)&&mxEvent.isPopupTrigger(e))F.apply(this,arguments);else{if(!c.isEnabled()||null!=b&&c.isCellLocked(b.cell))c.customLinkClicked(g),c.getRubberband().reset();mxEvent.consume(e)}};this.editor.getOrCreateFilename=function(){var d=b.defaultFilename,
+c=b.getCurrentFile();null!=c&&(d=null!=c.getTitle()?c.getTitle():d);return d};var E=this.actions.get("print");E.setEnabled(!mxClient.IS_IOS||!navigator.standalone);E.visible=E.isEnabled();if(!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(70,!0,"findReplace"),this.keyHandler.bindAction(67,!0,"copyStyle",!0),this.keyHandler.bindAction(86,!0,"pasteStyle",!0),this.keyHandler.bindAction(77,!0,"editGeometry",!0),this.keyHandler.bindAction(88,!0,"insertText",!0),this.keyHandler.bindAction(75,
!0,"insertRectangle"),this.keyHandler.bindAction(75,!0,"insertEllipse",!0),this.altShiftActions[83]="synchronize",this.installImagePasteHandler(),this.installNativeClipboardHandler();this.spinner=this.createSpinner(null,null,24);Graph.fileSupport&&c.addListener(mxEvent.EDITING_STARTED,mxUtils.bind(this,function(b){var d=c.cellEditor.text2,e=null;null!=d&&(mxEvent.addListener(d,"dragleave",function(b){null!=e&&(e.parentNode.removeChild(e),e=null);b.stopPropagation();b.preventDefault()}),mxEvent.addListener(d,
"dragover",mxUtils.bind(this,function(b){null==e&&(!mxClient.IS_IE||10<document.documentMode)&&(e=this.highlightElement(d));b.stopPropagation();b.preventDefault()})),mxEvent.addListener(d,"drop",mxUtils.bind(this,function(b){null!=e&&(e.parentNode.removeChild(e),e=null);if(0<b.dataTransfer.files.length)this.importFiles(b.dataTransfer.files,0,0,this.maxImageSize,function(b,d,e,g,f,k){c.insertImage(b,f,k)},function(){},function(b){return"image/"==b.type.substring(0,6)},function(b){for(var d=0;d<b.length;d++)b[d]()},
mxEvent.isControlDown(b));else if(0<=mxUtils.indexOf(b.dataTransfer.types,"text/uri-list")){var d=b.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(d)?this.loadImage(decodeURIComponent(d),mxUtils.bind(this,function(b){var e=Math.max(1,b.width);b=Math.max(1,b.height);var g=this.maxImageSize,g=Math.min(1,Math.min(g/Math.max(1,e)),g/Math.max(1,b));c.insertImage(decodeURIComponent(d),e*g,b*g)})):document.execCommand("insertHTML",!1,b.dataTransfer.getData("text/plain"))}else 0<=
-mxUtils.indexOf(b.dataTransfer.types,"text/html")?document.execCommand("insertHTML",!1,b.dataTransfer.getData("text/html")):0<=mxUtils.indexOf(b.dataTransfer.types,"text/plain")&&document.execCommand("insertHTML",!1,b.dataTransfer.getData("text/plain"));b.stopPropagation();b.preventDefault()})))}));this.isSettingsEnabled()&&(H=this.editor.graph.view,H.setUnit(mxSettings.getUnit()),H.addListener("unitChanged",function(b,d){mxSettings.setUnit(d.getProperty("unit"));mxSettings.save()}),this.ruler=!this.canvasSupported||
-9==document.documentMode||"1"!=urlParams.ruler&&!mxSettings.isRulerOn()||this.editor.isChromelessView()&&!this.editor.editable?null:new mxDualRuler(this,H.unit),this.refresh());if("1"==urlParams.styledev){H=document.getElementById("geFooter");null!=H&&(this.styleInput=document.createElement("input"),this.styleInput.setAttribute("type","text"),this.styleInput.style.position="absolute",this.styleInput.style.top="14px",this.styleInput.style.left="2px",this.styleInput.style.width="98%",this.styleInput.style.visibility=
-"hidden",this.styleInput.style.opacity="0.9",mxEvent.addListener(this.styleInput,"change",mxUtils.bind(this,function(){this.editor.graph.getModel().setStyle(this.editor.graph.getSelectionCell(),this.styleInput.value)})),H.appendChild(this.styleInput),this.editor.graph.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(b,d){if(0<this.editor.graph.getSelectionCount()){var c=this.editor.graph.getSelectionCell(),c=this.editor.graph.getModel().getStyle(c);this.styleInput.value=c||
-"";this.styleInput.style.visibility="visible"}else this.styleInput.style.visibility="hidden"})));var N=this.isSelectionAllowed;this.isSelectionAllowed=function(b){return mxEvent.getSource(b)==this.styleInput?!0:N.apply(this,arguments)}}H=document.getElementById("geInfo");null!=H&&H.parentNode.removeChild(H);if(Graph.fileSupport&&(!this.editor.chromeless||this.editor.editable)){var A=null;mxEvent.addListener(c.container,"dragleave",function(b){c.isEnabled()&&(null!=A&&(A.parentNode.removeChild(A),
-A=null),b.stopPropagation(),b.preventDefault())});mxEvent.addListener(c.container,"dragover",mxUtils.bind(this,function(b){null==A&&(!mxClient.IS_IE||10<document.documentMode)&&(A=this.highlightElement(c.container));null!=this.sidebar&&this.sidebar.hideTooltip();b.stopPropagation();b.preventDefault()}));mxEvent.addListener(c.container,"drop",mxUtils.bind(this,function(b){null!=A&&(A.parentNode.removeChild(A),A=null);if(c.isEnabled()){var d=mxUtils.convertPoint(c.container,mxEvent.getClientX(b),mxEvent.getClientY(b)),
+mxUtils.indexOf(b.dataTransfer.types,"text/html")?document.execCommand("insertHTML",!1,b.dataTransfer.getData("text/html")):0<=mxUtils.indexOf(b.dataTransfer.types,"text/plain")&&document.execCommand("insertHTML",!1,b.dataTransfer.getData("text/plain"));b.stopPropagation();b.preventDefault()})))}));this.isSettingsEnabled()&&(E=this.editor.graph.view,E.setUnit(mxSettings.getUnit()),E.addListener("unitChanged",function(b,d){mxSettings.setUnit(d.getProperty("unit"));mxSettings.save()}),this.ruler=!this.canvasSupported||
+9==document.documentMode||"1"!=urlParams.ruler&&!mxSettings.isRulerOn()||this.editor.isChromelessView()&&!this.editor.editable?null:new mxDualRuler(this,E.unit),this.refresh());if("1"==urlParams.styledev){E=document.getElementById("geFooter");null!=E&&(this.styleInput=document.createElement("input"),this.styleInput.setAttribute("type","text"),this.styleInput.style.position="absolute",this.styleInput.style.top="14px",this.styleInput.style.left="2px",this.styleInput.style.width="98%",this.styleInput.style.visibility=
+"hidden",this.styleInput.style.opacity="0.9",mxEvent.addListener(this.styleInput,"change",mxUtils.bind(this,function(){this.editor.graph.getModel().setStyle(this.editor.graph.getSelectionCell(),this.styleInput.value)})),E.appendChild(this.styleInput),this.editor.graph.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(b,d){if(0<this.editor.graph.getSelectionCount()){var c=this.editor.graph.getSelectionCell(),c=this.editor.graph.getModel().getStyle(c);this.styleInput.value=c||
+"";this.styleInput.style.visibility="visible"}else this.styleInput.style.visibility="hidden"})));var O=this.isSelectionAllowed;this.isSelectionAllowed=function(b){return mxEvent.getSource(b)==this.styleInput?!0:O.apply(this,arguments)}}E=document.getElementById("geInfo");null!=E&&E.parentNode.removeChild(E);if(Graph.fileSupport&&(!this.editor.chromeless||this.editor.editable)){var B=null;mxEvent.addListener(c.container,"dragleave",function(b){c.isEnabled()&&(null!=B&&(B.parentNode.removeChild(B),
+B=null),b.stopPropagation(),b.preventDefault())});mxEvent.addListener(c.container,"dragover",mxUtils.bind(this,function(b){null==B&&(!mxClient.IS_IE||10<document.documentMode)&&(B=this.highlightElement(c.container));null!=this.sidebar&&this.sidebar.hideTooltip();b.stopPropagation();b.preventDefault()}));mxEvent.addListener(c.container,"drop",mxUtils.bind(this,function(b){null!=B&&(B.parentNode.removeChild(B),B=null);if(c.isEnabled()){var d=mxUtils.convertPoint(c.container,mxEvent.getClientX(b),mxEvent.getClientY(b)),
e=c.view.translate,g=c.view.scale,f=d.x/g-e.x,k=d.y/g-e.y;if(0<b.dataTransfer.files.length)mxEvent.isShiftDown(b)?this.openFiles(b.dataTransfer.files,!0):(mxEvent.isAltDown(b)&&(k=f=null),this.importFiles(b.dataTransfer.files,f,k,this.maxImageSize,null,null,null,null,mxEvent.isControlDown(b),null,null,mxEvent.isShiftDown(b),b));else{mxEvent.isAltDown(b)&&(k=f=0);var l=0<=mxUtils.indexOf(b.dataTransfer.types,"text/uri-list")?b.dataTransfer.getData("text/uri-list"):null,d=this.extractGraphModelFromEvent(b,
null!=this.pages);if(null!=d)c.setSelectionCells(this.importXml(d,f,k,!0));else if(0<=mxUtils.indexOf(b.dataTransfer.types,"text/html")){var m=b.dataTransfer.getData("text/html"),d=document.createElement("div");d.innerHTML=c.sanitizeHtml(m);var n=null,e=d.getElementsByTagName("img");null!=e&&1==e.length?(m=e[0].getAttribute("src"),null==m&&(m=e[0].getAttribute("srcset")),/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(m)||(n=!0)):(e=d.getElementsByTagName("a"),null!=e&&1==e.length?m=e[0].getAttribute("href"):
(d=d.getElementsByTagName("pre"),null!=d&&1==d.length&&(m=mxUtils.getTextContent(d[0]))));var p=!0,q=mxUtils.bind(this,function(){c.setSelectionCells(this.insertTextAt(m,f,k,!0,n,null,p,mxEvent.isControlDown(b)))});n&&null!=m&&m.length>this.resampleThreshold?this.confirmImageResize(function(b){p=b;q()},mxEvent.isControlDown(b)):q()}else null!=l&&/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(l)?this.loadImage(decodeURIComponent(l),mxUtils.bind(this,function(b){var d=Math.max(1,b.width);b=Math.max(1,b.height);
@@ -3686,7 +3686,7 @@ k[index];if("file"===l.kind){if(b.isEditing())this.importFiles([l.getAsFile()],0
"&nbsp;";e.focus();document.execCommand("selectAll",!1,null)},0)}var c=this.editor.graph,e=document.createElement("div");e.setAttribute("autocomplete","off");e.setAttribute("autocorrect","off");e.setAttribute("autocapitalize","off");e.setAttribute("spellcheck","false");e.style.textRendering="optimizeSpeed";e.style.fontFamily="monospace";e.style.wordBreak="break-all";e.style.background="transparent";e.style.color="transparent";e.style.position="absolute";e.style.whiteSpace="nowrap";e.style.overflow=
"hidden";e.style.display="block";e.style.fontSize="1";e.style.zIndex="-1";e.style.resize="none";e.style.outline="none";e.style.width="1px";e.style.height="1px";mxUtils.setOpacity(e,0);e.contentEditable=!0;e.innerHTML="&nbsp;";var f=!1;this.keyHandler.bindControlKey(88,null);this.keyHandler.bindControlKey(67,null);this.keyHandler.bindControlKey(86,null);mxEvent.addListener(document,"keydown",mxUtils.bind(this,function(b){var d=mxEvent.getSource(b);null==c.container||!c.isEnabled()||c.isMouseDown||
c.isEditing()||null!=this.dialog||"INPUT"==d.nodeName||"TEXTAREA"==d.nodeName||224!=b.keyCode&&(mxClient.IS_MAC||17!=b.keyCode)&&(!mxClient.IS_MAC||91!=b.keyCode&&93!=b.keyCode)||f||(e.style.left=c.container.scrollLeft+10+"px",e.style.top=c.container.scrollTop+10+"px",c.container.appendChild(e),f=!0,e.focus(),document.execCommand("selectAll",!1,null))}));mxEvent.addListener(document,"keyup",mxUtils.bind(this,function(b){var d=b.keyCode;window.setTimeout(mxUtils.bind(this,function(){!f||224!=d&&17!=
-d&&91!=d&&93!=d||(f=!1,c.isEditing()||null!=this.dialog||null==c.container||c.container.focus(),e.parentNode.removeChild(e),null==this.dialog&&mxUtils.clearSelection())}),0)}));mxEvent.addListener(e,"copy",mxUtils.bind(this,function(d){if(c.isEnabled())try{mxClipboard.copy(c),this.copyCells(e),b()}catch(u){this.handleError(u)}}));mxEvent.addListener(e,"cut",mxUtils.bind(this,function(d){if(c.isEnabled())try{mxClipboard.copy(c),this.copyCells(e,!0),b()}catch(u){this.handleError(u)}}));mxEvent.addListener(e,
+d&&91!=d&&93!=d||(f=!1,c.isEditing()||null!=this.dialog||null==c.container||c.container.focus(),e.parentNode.removeChild(e),null==this.dialog&&mxUtils.clearSelection())}),0)}));mxEvent.addListener(e,"copy",mxUtils.bind(this,function(d){if(c.isEnabled())try{mxClipboard.copy(c),this.copyCells(e),b()}catch(v){this.handleError(v)}}));mxEvent.addListener(e,"cut",mxUtils.bind(this,function(d){if(c.isEnabled())try{mxClipboard.copy(c),this.copyCells(e,!0),b()}catch(v){this.handleError(v)}}));mxEvent.addListener(e,
"paste",mxUtils.bind(this,function(b){c.isEnabled()&&!c.isCellLocked(c.getDefaultParent())&&(e.innerHTML="&nbsp;",e.focus(),null!=b.clipboardData&&this.pasteCells(b,e,!0,!0),mxEvent.isConsumed(b)||window.setTimeout(mxUtils.bind(this,function(){this.pasteCells(b,e,!1,!0)}),0))}),!0);var l=this.isSelectionAllowed;this.isSelectionAllowed=function(b){return mxEvent.getSource(b)==e?!0:l.apply(this,arguments)}};EditorUi.prototype.setSketchMode=function(b){this.spinner.spin(document.body,mxResources.get("working")+
"...")&&window.setTimeout(mxUtils.bind(this,function(){this.spinner.stop();this.doSetSketchMode(b);null==urlParams.rough&&(mxSettings.settings.sketchMode=b,mxSettings.save());this.fireEvent(new mxEventObject("sketchModeChanged"))}),0)};EditorUi.prototype.setPagesVisible=function(b){Editor.pagesVisible!=b&&(Editor.pagesVisible=b,mxSettings.settings.pagesVisible=b,mxSettings.save(),this.fireEvent(new mxEventObject("pagesVisibleChanged")))};EditorUi.prototype.setSidebarTitles=function(b,c){this.sidebar.sidebarTitles!=
b&&(this.sidebar.sidebarTitles=b,this.sidebar.refresh(),this.isSettingsEnabled()&&c&&(mxSettings.settings.sidebarTitles=b,mxSettings.save()),this.fireEvent(new mxEventObject("sidebarTitlesChanged")))};EditorUi.prototype.setInlineFullscreen=function(b){Editor.inlineFullscreen!=b&&(Editor.inlineFullscreen=b,this.fireEvent(new mxEventObject("inlineFullscreenChanged")),(window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:Editor.inlineFullscreen,rect:this.diagramContainer.getBoundingClientRect()}),
@@ -3719,7 +3719,7 @@ f);try{this.loadLibrary(new LocalLibrary(this,b,c))}catch(z){this.handleError(z,
c))this.parseFile(e,mxUtils.bind(this,function(b){4==b.readyState&&(this.spinner.stop(),200<=b.status&&299>=b.status?d(b.responseText):this.handleError({message:mxResources.get(413==b.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))}));else if(this.isLucidChartData(b))/(\.json)$/i.test(c)&&(c=c.substring(0,c.length-5)+".drawio"),this.convertLucidChart(b,mxUtils.bind(this,function(b){this.spinner.stop();this.openLocalFile(b,c,f)}),mxUtils.bind(this,function(b){this.spinner.stop();
this.handleError(b)}));else if("<mxlibrary"==b.substring(0,10)){this.spinner.stop();null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,f);try{this.loadLibrary(new LocalLibrary(this,b,e.name))}catch(t){this.handleError(t,mxResources.get("errorLoadingFile"))}}else if(0==b.indexOf("PK"))this.importZipFile(e,mxUtils.bind(this,function(b){this.spinner.stop();d(b)}),mxUtils.bind(this,function(){this.spinner.stop();this.openLocalFile(b,c,f)}));
else{if("image/png"==e.type.substring(0,9))b=this.extractGraphModelFromPng(b);else if("application/pdf"==e.type){var g=Editor.extractGraphModelFromPdf(b);null!=g&&(l=null,f=!0,b=g)}this.spinner.stop();this.openLocalFile(b,c,f,l,null!=l?e:null)}}};EditorUi.prototype.openFiles=function(b,c){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var d=0;d<b.length;d++)mxUtils.bind(this,function(b){var d=new FileReader;d.onload=mxUtils.bind(this,function(d){try{this.openFileHandle(d.target.result,
-b.name,b,c)}catch(u){this.handleError(u)}});d.onerror=mxUtils.bind(this,function(b){this.spinner.stop();this.handleError(b);window.openFile=null});"image"!==b.type.substring(0,5)&&"application/pdf"!==b.type||"image/svg"===b.type.substring(0,9)?d.readAsText(b):d.readAsDataURL(b)})(b[d])};EditorUi.prototype.openLocalFile=function(b,c,e,f,l){var d=this.getCurrentFile(),g=mxUtils.bind(this,function(){window.openFile=null;if(null==c&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var d=mxUtils.parseXml(b);
+b.name,b,c)}catch(v){this.handleError(v)}});d.onerror=mxUtils.bind(this,function(b){this.spinner.stop();this.handleError(b);window.openFile=null});"image"!==b.type.substring(0,5)&&"application/pdf"!==b.type||"image/svg"===b.type.substring(0,9)?d.readAsText(b):d.readAsDataURL(b)})(b[d])};EditorUi.prototype.openLocalFile=function(b,c,e,f,l){var d=this.getCurrentFile(),g=mxUtils.bind(this,function(){window.openFile=null;if(null==c&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var d=mxUtils.parseXml(b);
null!=d&&(this.editor.setGraphXml(d.documentElement),this.editor.graph.selectAll())}else this.fileLoaded(new LocalFile(this,b,c||this.defaultFilename,e,f,l))});if(null!=b&&0<b.length)null==d||!d.isModified()&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=f)?g():(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=f)&&null!=d&&d.isModified()?this.confirm(mxResources.get("allChangesLost"),null,g,mxResources.get("cancel"),mxResources.get("discardChanges")):(window.openFile=new OpenFile(function(){window.openFile=
null}),window.openFile.setData(b,c),window.openWindow(this.getUrl(),null,mxUtils.bind(this,function(){null!=d&&d.isModified()?this.confirm(mxResources.get("allChangesLost"),null,g,mxResources.get("cancel"),mxResources.get("discardChanges")):g()})));else throw Error(mxResources.get("notADiagramFile"));};EditorUi.prototype.getBasenames=function(){var b={};if(null!=this.pages)for(var c=0;c<this.pages.length;c++)this.updatePageRoot(this.pages[c]),this.addBasenamesForCell(this.pages[c].root,b);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),
b);var c=[],e;for(e in b)c.push(e);return c};EditorUi.prototype.addBasenamesForCell=function(b,c){function d(b){if(null!=b){var d=b.lastIndexOf(".");0<d&&(b=b.substring(d+1,b.length));null==c[b]&&(c[b]=!0)}}var e=this.editor.graph,f=e.getCellStyle(b);d(mxStencilRegistry.getBasenameForStencil(f[mxConstants.STYLE_SHAPE]));e.model.isEdge(b)&&(d(mxMarker.getPackageForType(f[mxConstants.STYLE_STARTARROW])),d(mxMarker.getPackageForType(f[mxConstants.STYLE_ENDARROW])));for(var f=e.model.getChildCount(b),
@@ -3731,119 +3731,119 @@ this.editor.modified=null!=e?e:!1;this.updateUi();window.self!==window.top&&wind
function(b){var d=this.editor.graph;return{event:b,pageVisible:d.pageVisible,translate:d.view.translate,bounds:d.getGraphBounds(),currentPage:this.getSelectedPageIndex(),scale:d.view.scale,page:d.view.getBackgroundPageBounds()}};EditorUi.prototype.sendEmbeddedSvgExport=function(b){var d=this.editor.graph;d.isEditing()&&d.stopEditing(!d.isInvokesStopCellEditing());var c=window.opener||window.parent;if(this.editor.modified){var e=d.background;if(null==e||e==mxConstants.NONE)e=this.embedExportBackground;
this.getEmbeddedSvg(this.getFileData(!0,null,null,null,null,null,null,null,null,!1),d,null,!0,mxUtils.bind(this,function(d){c.postMessage(JSON.stringify({event:"export",point:this.embedExitPoint,exit:null!=b?!b:!0,data:Editor.createSvgDataUri(d)}),"*")}),null,null,!0,e,1,this.embedExportBorder)}else b||c.postMessage(JSON.stringify({event:"exit",point:this.embedExitPoint}),"*");b||(this.diagramContainer.removeAttribute("data-bounds"),Editor.inlineFullscreen=!1,d.model.clear(),this.editor.undoManager.clear(),
this.setBackgroundImage(null),this.editor.modified=!1,this.fireEvent(new mxEventObject("editInlineStop")))};EditorUi.prototype.installMessageHandler=function(b){var d=null,c=!1,e=!1,f=null,l=mxUtils.bind(this,function(b,d){this.editor.modified&&"0"!=urlParams.modified?null!=urlParams.modified&&this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(urlParams.modified))):this.editor.setStatus("")});this.editor.graph.model.addListener(mxEvent.CHANGE,l);mxEvent.addListener(window,"message",mxUtils.bind(this,
-function(g){if(g.source==(window.opener||window.parent)){var k=g.data,l=null,m=mxUtils.bind(this,function(b){if(null!=b&&"function"===typeof b.charAt&&"<"!=b.charAt(0))try{Editor.isPngDataUrl(b)?b=Editor.extractGraphModelFromPng(b):"data:image/svg+xml;base64,"==b.substring(0,26)?b=atob(b.substring(26)):"data:image/svg+xml;utf8,"==b.substring(0,24)&&(b=b.substring(24)),null!=b&&("%"==b.charAt(0)?b=decodeURIComponent(b):"<"!=b.charAt(0)&&(b=Graph.decompress(b)))}catch(ta){}return b});if("json"==urlParams.proto){var p=
-!1;try{k=JSON.parse(k)}catch(da){k=null}try{if(null==k)return;if("dialog"==k.action){this.showError(null!=k.titleKey?mxResources.get(k.titleKey):k.title,null!=k.messageKey?mxResources.get(k.messageKey):k.message,null!=k.buttonKey?mxResources.get(k.buttonKey):k.button);null!=k.modified&&(this.editor.modified=k.modified);return}if("layout"==k.action){this.executeLayoutList(k.layouts);return}if("prompt"==k.action){this.spinner.stop();var q=new FilenameDialog(this,k.defaultValue||"",null!=k.okKey?mxResources.get(k.okKey):
+function(g){if(g.source==(window.opener||window.parent)){var k=g.data,l=null,m=mxUtils.bind(this,function(b){if(null!=b&&"function"===typeof b.charAt&&"<"!=b.charAt(0))try{Editor.isPngDataUrl(b)?b=Editor.extractGraphModelFromPng(b):"data:image/svg+xml;base64,"==b.substring(0,26)?b=atob(b.substring(26)):"data:image/svg+xml;utf8,"==b.substring(0,24)&&(b=b.substring(24)),null!=b&&("%"==b.charAt(0)?b=decodeURIComponent(b):"<"!=b.charAt(0)&&(b=Graph.decompress(b)))}catch(na){}return b});if("json"==urlParams.proto){var p=
+!1;try{k=JSON.parse(k)}catch(K){k=null}try{if(null==k)return;if("dialog"==k.action){this.showError(null!=k.titleKey?mxResources.get(k.titleKey):k.title,null!=k.messageKey?mxResources.get(k.messageKey):k.message,null!=k.buttonKey?mxResources.get(k.buttonKey):k.button);null!=k.modified&&(this.editor.modified=k.modified);return}if("layout"==k.action){this.executeLayoutList(k.layouts);return}if("prompt"==k.action){this.spinner.stop();var q=new FilenameDialog(this,k.defaultValue||"",null!=k.okKey?mxResources.get(k.okKey):
k.ok,function(b){null!=b?n.postMessage(JSON.stringify({event:"prompt",value:b,message:k}),"*"):n.postMessage(JSON.stringify({event:"prompt-cancel",message:k}),"*")},null!=k.titleKey?mxResources.get(k.titleKey):k.title);this.showDialog(q.container,300,80,!0,!1);q.init();return}if("draft"==k.action){var t=m(k.xml);this.spinner.stop();q=new DraftDialog(this,mxResources.get("draftFound",[k.name||this.defaultFilename]),t,mxUtils.bind(this,function(){this.hideDialog();n.postMessage(JSON.stringify({event:"draft",
result:"edit",message:k}),"*")}),mxUtils.bind(this,function(){this.hideDialog();n.postMessage(JSON.stringify({event:"draft",result:"discard",message:k}),"*")}),k.editKey?mxResources.get(k.editKey):null,k.discardKey?mxResources.get(k.discardKey):null,k.ignore?mxUtils.bind(this,function(){this.hideDialog();n.postMessage(JSON.stringify({event:"draft",result:"ignore",message:k}),"*")}):null);this.showDialog(q.container,640,480,!0,!1,mxUtils.bind(this,function(b){b&&this.actions.get("exit").funct()}));
-try{q.init()}catch(da){n.postMessage(JSON.stringify({event:"draft",error:da.toString(),message:k}),"*")}return}if("template"==k.action){this.spinner.stop();var v=1==k.enableRecent,u=1==k.enableSearch,z=1==k.enableCustomTemp;if("1"==urlParams.newTempDlg&&!k.templatesOnly&&null!=k.callback){var L=this.getCurrentUser(),M=new TemplatesDialog(this,function(b,d,c){b=b||this.emptyDiagramXml;n.postMessage(JSON.stringify({event:"template",xml:b,blank:b==this.emptyDiagramXml,name:d,tempUrl:c.url,libs:c.libs,
-builtIn:null!=c.info&&null!=c.info.custContentId,message:k}),"*")},mxUtils.bind(this,function(){this.actions.get("exit").funct()}),null,null,null!=L?L.id:null,v?mxUtils.bind(this,function(b,d,c){this.remoteInvoke("getRecentDiagrams",[c],null,b,d)}):null,u?mxUtils.bind(this,function(b,d,c,e){this.remoteInvoke("searchDiagrams",[b,e],null,d,c)}):null,mxUtils.bind(this,function(b,d,c){this.remoteInvoke("getFileContent",[b.url],null,d,c)}),null,z?mxUtils.bind(this,function(b){this.remoteInvoke("getCustomTemplates",
-null,null,b,function(){b({},0)})}):null,!1,!1,!0,!0);this.showDialog(M.container,window.innerWidth,window.innerHeight,!0,!1,null,!1,!0);return}q=new NewDialog(this,!1,k.templatesOnly?!1:null!=k.callback,mxUtils.bind(this,function(d,c,e,f){d=d||this.emptyDiagramXml;null!=k.callback?n.postMessage(JSON.stringify({event:"template",xml:d,blank:d==this.emptyDiagramXml,name:c,tempUrl:e,libs:f,builtIn:!0,message:k}),"*"):(b(d,g,d!=this.emptyDiagramXml,k.toSketch),this.editor.modified||this.editor.setStatus(""))}),
-null,null,null,null,null,null,null,v?mxUtils.bind(this,function(b){this.remoteInvoke("getRecentDiagrams",[null],null,b,function(){b(null,"Network Error!")})}):null,u?mxUtils.bind(this,function(b,d){this.remoteInvoke("searchDiagrams",[b,null],null,d,function(){d(null,"Network Error!")})}):null,mxUtils.bind(this,function(b,d,c){n.postMessage(JSON.stringify({event:"template",docUrl:b,info:d,name:c}),"*")}),null,null,z?mxUtils.bind(this,function(b){this.remoteInvoke("getCustomTemplates",null,null,b,function(){b({},
-0)})}):null,1==k.withoutType);this.showDialog(q.container,620,460,!0,!1,mxUtils.bind(this,function(b){this.sidebar.hideTooltip();b&&this.actions.get("exit").funct()}));q.init();return}if("textContent"==k.action){var K=this.getDiagramTextContent();n.postMessage(JSON.stringify({event:"textContent",data:K,message:k}),"*");return}if("status"==k.action){null!=k.messageKey?this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(k.messageKey))):null!=k.message&&this.editor.setStatus(mxUtils.htmlEntities(k.message));
+try{q.init()}catch(K){n.postMessage(JSON.stringify({event:"draft",error:K.toString(),message:k}),"*")}return}if("template"==k.action){this.spinner.stop();var u=1==k.enableRecent,v=1==k.enableSearch,z=1==k.enableCustomTemp;if("1"==urlParams.newTempDlg&&!k.templatesOnly&&null!=k.callback){var L=this.getCurrentUser(),N=new TemplatesDialog(this,function(b,d,c){b=b||this.emptyDiagramXml;n.postMessage(JSON.stringify({event:"template",xml:b,blank:b==this.emptyDiagramXml,name:d,tempUrl:c.url,libs:c.libs,
+builtIn:null!=c.info&&null!=c.info.custContentId,message:k}),"*")},mxUtils.bind(this,function(){this.actions.get("exit").funct()}),null,null,null!=L?L.id:null,u?mxUtils.bind(this,function(b,d,c){this.remoteInvoke("getRecentDiagrams",[c],null,b,d)}):null,v?mxUtils.bind(this,function(b,d,c,e){this.remoteInvoke("searchDiagrams",[b,e],null,d,c)}):null,mxUtils.bind(this,function(b,d,c){this.remoteInvoke("getFileContent",[b.url],null,d,c)}),null,z?mxUtils.bind(this,function(b){this.remoteInvoke("getCustomTemplates",
+null,null,b,function(){b({},0)})}):null,!1,!1,!0,!0);this.showDialog(N.container,window.innerWidth,window.innerHeight,!0,!1,null,!1,!0);return}q=new NewDialog(this,!1,k.templatesOnly?!1:null!=k.callback,mxUtils.bind(this,function(d,c,e,f){d=d||this.emptyDiagramXml;null!=k.callback?n.postMessage(JSON.stringify({event:"template",xml:d,blank:d==this.emptyDiagramXml,name:c,tempUrl:e,libs:f,builtIn:!0,message:k}),"*"):(b(d,g,d!=this.emptyDiagramXml,k.toSketch),this.editor.modified||this.editor.setStatus(""))}),
+null,null,null,null,null,null,null,u?mxUtils.bind(this,function(b){this.remoteInvoke("getRecentDiagrams",[null],null,b,function(){b(null,"Network Error!")})}):null,v?mxUtils.bind(this,function(b,d){this.remoteInvoke("searchDiagrams",[b,null],null,d,function(){d(null,"Network Error!")})}):null,mxUtils.bind(this,function(b,d,c){n.postMessage(JSON.stringify({event:"template",docUrl:b,info:d,name:c}),"*")}),null,null,z?mxUtils.bind(this,function(b){this.remoteInvoke("getCustomTemplates",null,null,b,function(){b({},
+0)})}):null,1==k.withoutType);this.showDialog(q.container,620,460,!0,!1,mxUtils.bind(this,function(b){this.sidebar.hideTooltip();b&&this.actions.get("exit").funct()}));q.init();return}if("textContent"==k.action){var M=this.getDiagramTextContent();n.postMessage(JSON.stringify({event:"textContent",data:M,message:k}),"*");return}if("status"==k.action){null!=k.messageKey?this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(k.messageKey))):null!=k.message&&this.editor.setStatus(mxUtils.htmlEntities(k.message));
null!=k.modified&&(this.editor.modified=k.modified);return}if("spinner"==k.action){var P=null!=k.messageKey?mxResources.get(k.messageKey):k.message;null==k.show||k.show?this.spinner.spin(document.body,P):this.spinner.stop();return}if("exit"==k.action){this.actions.get("exit").funct();return}if("viewport"==k.action){null!=k.viewport&&(this.embedViewport=k.viewport);return}if("snapshot"==k.action){this.sendEmbeddedSvgExport(!0);return}if("export"==k.action){if("png"==k.format||"xmlpng"==k.format){if(null==
-k.spin&&null==k.spinKey||this.spinner.spin(document.body,null!=k.spinKey?mxResources.get(k.spinKey):k.spin)){var T=null!=k.xml?k.xml:this.getFileData(!0);this.editor.graph.setEnabled(!1);var W=this.editor.graph,ga=mxUtils.bind(this,function(b){this.editor.graph.setEnabled(!0);this.spinner.stop();var d=this.createLoadMessage("export");d.format=k.format;d.message=k;d.data=b;d.xml=T;n.postMessage(JSON.stringify(d),"*")}),ja=mxUtils.bind(this,function(b){null==b&&(b=Editor.blankImage);"xmlpng"==k.format&&
-(b=Editor.writeGraphModelToPng(b,"tEXt","mxfile",encodeURIComponent(T)));W!=this.editor.graph&&W.container.parentNode.removeChild(W.container);ga(b)}),X=k.pageId||(null!=this.pages?k.currentPage?this.currentPage.getId():this.pages[0].getId():null);if(this.isExportToCanvas()){var x=mxUtils.bind(this,function(){if(null!=this.pages&&this.currentPage.getId()!=X){var b=W.getGlobalVariable;W=this.createTemporaryGraph(W.getStylesheet());for(var d,c=0;c<this.pages.length;c++)if(this.pages[c].getId()==X){d=
-this.updatePageRoot(this.pages[c]);break}null==d&&(d=this.currentPage);W.getGlobalVariable=function(c){return"page"==c?d.getName():"pagenumber"==c?1:b.apply(this,arguments)};document.body.appendChild(W.container);W.model.setRoot(d.root)}if(null!=k.layerIds){for(var e=W.model,g=e.getChildCells(e.getRoot()),f={},c=0;c<k.layerIds.length;c++)f[k.layerIds[c]]=!0;for(c=0;c<g.length;c++)e.setVisible(g[c],f[g[c].id]||!1)}this.editor.exportToCanvas(mxUtils.bind(this,function(b){ja(b.toDataURL("image/png"))}),
-k.width,null,k.background,mxUtils.bind(this,function(){ja(null)}),null,null,k.scale,k.transparent,k.shadow,null,W,k.border,null,k.grid,k.keepTheme)});null!=k.xml&&0<k.xml.length?(c=!0,this.setFileData(T),c=!1,this.editor.graph.mathEnabled?window.setTimeout(function(){window.MathJax.Hub.Queue(x)},0):x()):x()}else(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==k.format?"1":"0")+(null!=X?"&pageId="+X:"")+(null!=k.layerIds&&0<k.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:k.layerIds})):
-"")+(null!=k.scale?"&scale="+k.scale:"")+"&base64=1&xml="+encodeURIComponent(T))).send(mxUtils.bind(this,function(b){200<=b.getStatus()&&299>=b.getStatus()?ga("data:image/png;base64,"+b.getText()):ja(null)}),mxUtils.bind(this,function(){ja(null)}))}}else x=mxUtils.bind(this,function(){var b=this.createLoadMessage("export");b.message=k;if("html2"==k.format||"html"==k.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length)){var d=this.getXmlFileData();b.xml=mxUtils.getXml(d);b.data=this.getFileData(null,
+k.spin&&null==k.spinKey||this.spinner.spin(document.body,null!=k.spinKey?mxResources.get(k.spinKey):k.spin)){var V=null!=k.xml?k.xml:this.getFileData(!0);this.editor.graph.setEnabled(!1);var W=this.editor.graph,ga=mxUtils.bind(this,function(b){this.editor.graph.setEnabled(!0);this.spinner.stop();var d=this.createLoadMessage("export");d.format=k.format;d.message=k;d.data=b;d.xml=V;n.postMessage(JSON.stringify(d),"*")}),ea=mxUtils.bind(this,function(b){null==b&&(b=Editor.blankImage);"xmlpng"==k.format&&
+(b=Editor.writeGraphModelToPng(b,"tEXt","mxfile",encodeURIComponent(V)));W!=this.editor.graph&&W.container.parentNode.removeChild(W.container);ga(b)}),ba=k.pageId||(null!=this.pages?k.currentPage?this.currentPage.getId():this.pages[0].getId():null);if(this.isExportToCanvas()){var x=mxUtils.bind(this,function(){if(null!=this.pages&&this.currentPage.getId()!=ba){var b=W.getGlobalVariable;W=this.createTemporaryGraph(W.getStylesheet());for(var d,c=0;c<this.pages.length;c++)if(this.pages[c].getId()==ba){d=
+this.updatePageRoot(this.pages[c]);break}null==d&&(d=this.currentPage);W.getGlobalVariable=function(c){return"page"==c?d.getName():"pagenumber"==c?1:b.apply(this,arguments)};document.body.appendChild(W.container);W.model.setRoot(d.root)}if(null!=k.layerIds){for(var e=W.model,g=e.getChildCells(e.getRoot()),f={},c=0;c<k.layerIds.length;c++)f[k.layerIds[c]]=!0;for(c=0;c<g.length;c++)e.setVisible(g[c],f[g[c].id]||!1)}this.editor.exportToCanvas(mxUtils.bind(this,function(b){ea(b.toDataURL("image/png"))}),
+k.width,null,k.background,mxUtils.bind(this,function(){ea(null)}),null,null,k.scale,k.transparent,k.shadow,null,W,k.border,null,k.grid,k.keepTheme)});null!=k.xml&&0<k.xml.length?(c=!0,this.setFileData(V),c=!1,this.editor.graph.mathEnabled?window.setTimeout(function(){window.MathJax.Hub.Queue(x)},0):x()):x()}else(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==k.format?"1":"0")+(null!=ba?"&pageId="+ba:"")+(null!=k.layerIds&&0<k.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:k.layerIds})):
+"")+(null!=k.scale?"&scale="+k.scale:"")+"&base64=1&xml="+encodeURIComponent(V))).send(mxUtils.bind(this,function(b){200<=b.getStatus()&&299>=b.getStatus()?ga("data:image/png;base64,"+b.getText()):ea(null)}),mxUtils.bind(this,function(){ea(null)}))}}else x=mxUtils.bind(this,function(){var b=this.createLoadMessage("export");b.message=k;if("html2"==k.format||"html"==k.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length)){var d=this.getXmlFileData();b.xml=mxUtils.getXml(d);b.data=this.getFileData(null,
null,!0,null,null,null,d);b.format=k.format}else if("html"==k.format)d=this.editor.getGraphXml(),b.data=this.getHtml(d,this.editor.graph),b.xml=mxUtils.getXml(d),b.format=k.format;else{mxSvgCanvas2D.prototype.foAltText=null;d=null!=k.background?k.background:this.editor.graph.background;d==mxConstants.NONE&&(d=null);b.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!1);b.format="svg";var c=mxUtils.bind(this,function(d){this.editor.graph.setEnabled(!0);this.spinner.stop();b.data=Editor.createSvgDataUri(d);
n.postMessage(JSON.stringify(b),"*")});if("xmlsvg"==k.format)(null==k.spin&&null==k.spinKey||this.spinner.spin(document.body,null!=k.spinKey?mxResources.get(k.spinKey):k.spin))&&this.getEmbeddedSvg(b.xml,this.editor.graph,null,!0,c,null,null,k.embedImages,d,k.scale,k.border,k.shadow,k.keepTheme);else if(null==k.spin&&null==k.spinKey||this.spinner.spin(document.body,null!=k.spinKey?mxResources.get(k.spinKey):k.spin))this.editor.graph.setEnabled(!1),d=this.editor.graph.getSvg(d,k.scale,k.border,null,
null,null,null,null,null,this.editor.graph.shadowVisible||k.shadow,null,k.keepTheme),(this.editor.graph.shadowVisible||k.shadow)&&this.editor.graph.addSvgShadow(d),this.embedFonts(d,mxUtils.bind(this,function(b){k.embedImages||null==k.embedImages?this.editor.convertImages(b,mxUtils.bind(this,function(b){c(mxUtils.getXml(b))})):c(mxUtils.getXml(b))}));return}n.postMessage(JSON.stringify(b),"*")}),null!=k.xml&&0<k.xml.length?(c=!0,this.setFileData(k.xml),c=!1,this.editor.graph.mathEnabled?window.setTimeout(function(){window.MathJax.Hub.Queue(x)},
0):x()):x();return}if("load"==k.action){p=k.toSketch;e=1==k.autosave;this.hideDialog();null!=k.modified&&null==urlParams.modified&&(urlParams.modified=k.modified);null!=k.saveAndExit&&null==urlParams.saveAndExit&&(urlParams.saveAndExit=k.saveAndExit);null!=k.noSaveBtn&&null==urlParams.noSaveBtn&&(urlParams.noSaveBtn=k.noSaveBtn);if(null!=k.rough){var C=Editor.sketchMode;this.doSetSketchMode(k.rough);C!=Editor.sketchMode&&this.fireEvent(new mxEventObject("sketchModeChanged"))}null!=k.dark&&(C=Editor.darkMode,
this.doSetDarkMode(k.dark),C!=Editor.darkMode&&this.fireEvent(new mxEventObject("darkModeChanged")));null!=k.border&&(this.embedExportBorder=k.border);null!=k.background&&(this.embedExportBackground=k.background);null!=k.viewport&&(this.embedViewport=k.viewport);this.embedExitPoint=null;if(null!=k.rect){var J=this.embedExportBorder;this.diagramContainer.style.border="2px solid #295fcc";this.diagramContainer.style.top=k.rect.top+"px";this.diagramContainer.style.left=k.rect.left+"px";this.diagramContainer.style.height=
k.rect.height+"px";this.diagramContainer.style.width=k.rect.width+"px";this.diagramContainer.style.bottom="";this.diagramContainer.style.right="";l=mxUtils.bind(this,function(){var b=this.editor.graph,d=b.maxFitScale;b.maxFitScale=k.maxFitScale;b.fit(2*J);b.maxFitScale=d;b.container.scrollTop-=2*J;b.container.scrollLeft-=2*J;this.fireEvent(new mxEventObject("editInlineStart","data",[k]))})}null!=k.noExitBtn&&null==urlParams.noExitBtn&&(urlParams.noExitBtn=k.noExitBtn);null!=k.title&&null!=this.buttonContainer&&
-(t=document.createElement("span"),mxUtils.write(t,k.title),null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode.removeChild(this.embedFilenameSpan),this.buttonContainer.appendChild(t),this.embedFilenameSpan=t);try{k.libs&&this.sidebar.showEntries(k.libs)}catch(da){}k=null!=k.xmlpng?this.extractGraphModelFromPng(k.xmlpng):null!=k.descriptor?k.descriptor:k.xml}else{if("merge"==k.action){var V=this.getCurrentFile();null!=V&&(t=m(k.xml),null!=t&&""!=t&&V.mergeFile(new LocalFile(this,t),function(){n.postMessage(JSON.stringify({event:"merge",
-message:k}),"*")},function(b){n.postMessage(JSON.stringify({event:"merge",message:k,error:b}),"*")}))}else"remoteInvokeReady"==k.action?this.handleRemoteInvokeReady(n):"remoteInvoke"==k.action?this.handleRemoteInvoke(k,g.origin):"remoteInvokeResponse"==k.action?this.handleRemoteInvokeResponse(k):n.postMessage(JSON.stringify({error:"unknownMessage",data:JSON.stringify(k)}),"*");return}}catch(da){this.handleError(da)}}var ca=mxUtils.bind(this,function(){return"0"!=urlParams.pages||null!=this.pages&&
-1<this.pages.length?this.getFileData(!0):mxUtils.getXml(this.editor.getGraphXml())}),aa=mxUtils.bind(this,function(g,k){c=!0;try{b(g,k,null,p)}catch(ha){this.handleError(ha)}c=!1;null!=urlParams.modified&&this.editor.setStatus("");f=ca();e&&null==d&&(d=mxUtils.bind(this,function(b,d){var e=ca();if(e!=f&&!c){var g=this.createLoadMessage("autosave");g.xml=e;(window.opener||window.parent).postMessage(JSON.stringify(g),"*")}f=e}),this.editor.graph.model.addListener(mxEvent.CHANGE,d),this.editor.graph.addListener("gridSizeChanged",
+(t=document.createElement("span"),mxUtils.write(t,k.title),null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode.removeChild(this.embedFilenameSpan),this.buttonContainer.appendChild(t),this.embedFilenameSpan=t);try{k.libs&&this.sidebar.showEntries(k.libs)}catch(K){}k=null!=k.xmlpng?this.extractGraphModelFromPng(k.xmlpng):null!=k.descriptor?k.descriptor:k.xml}else{if("merge"==k.action){var X=this.getCurrentFile();null!=X&&(t=m(k.xml),null!=t&&""!=t&&X.mergeFile(new LocalFile(this,t),function(){n.postMessage(JSON.stringify({event:"merge",
+message:k}),"*")},function(b){n.postMessage(JSON.stringify({event:"merge",message:k,error:b}),"*")}))}else"remoteInvokeReady"==k.action?this.handleRemoteInvokeReady(n):"remoteInvoke"==k.action?this.handleRemoteInvoke(k,g.origin):"remoteInvokeResponse"==k.action?this.handleRemoteInvokeResponse(k):n.postMessage(JSON.stringify({error:"unknownMessage",data:JSON.stringify(k)}),"*");return}}catch(K){this.handleError(K)}}var ca=mxUtils.bind(this,function(){return"0"!=urlParams.pages||null!=this.pages&&1<
+this.pages.length?this.getFileData(!0):mxUtils.getXml(this.editor.getGraphXml())}),ka=mxUtils.bind(this,function(g,k){c=!0;try{b(g,k,null,p)}catch(pa){this.handleError(pa)}c=!1;null!=urlParams.modified&&this.editor.setStatus("");f=ca();e&&null==d&&(d=mxUtils.bind(this,function(b,d){var e=ca();if(e!=f&&!c){var g=this.createLoadMessage("autosave");g.xml=e;(window.opener||window.parent).postMessage(JSON.stringify(g),"*")}f=e}),this.editor.graph.model.addListener(mxEvent.CHANGE,d),this.editor.graph.addListener("gridSizeChanged",
d),this.editor.graph.addListener("shadowVisibleChanged",d),this.addListener("pageFormatChanged",d),this.addListener("pageScaleChanged",d),this.addListener("backgroundColorChanged",d),this.addListener("backgroundImageChanged",d),this.addListener("foldingEnabledChanged",d),this.addListener("mathEnabledChanged",d),this.addListener("gridEnabledChanged",d),this.addListener("guidesEnabledChanged",d),this.addListener("pageViewChanged",d));if("1"==urlParams.returnbounds||"json"==urlParams.proto){var m=this.createLoadMessage("load");
-m.xml=g;n.postMessage(JSON.stringify(m),"*")}null!=l&&l()});null!=k&&"function"===typeof k.substring&&"data:application/vnd.visio;base64,"==k.substring(0,34)?(m="0M8R4KGxGuE"==k.substring(34,45)?"raw.vsd":"raw.vsdx",this.importVisio(this.base64ToBlob(k.substring(k.indexOf(",")+1)),function(b){aa(b,g)},mxUtils.bind(this,function(b){this.handleError(b)}),m)):null!=k&&"function"===typeof k.substring&&!this.isOffline()&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(k,"")?this.parseFileData(k,mxUtils.bind(this,
-function(b){4==b.readyState&&200<=b.status&&299>=b.status&&"<mxGraphModel"==b.responseText.substring(0,13)&&aa(b.responseText,g)}),""):null!=k&&"function"===typeof k.substring&&this.isLucidChartData(k)?this.convertLucidChart(k,mxUtils.bind(this,function(b){aa(b)}),mxUtils.bind(this,function(b){this.handleError(b)})):null==k||"object"!==typeof k||null==k.format||null==k.data&&null==k.url?(k=m(k),aa(k,g)):this.loadDescriptor(k,mxUtils.bind(this,function(b){aa(ca(),g)}),mxUtils.bind(this,function(b){this.handleError(b,
+m.xml=g;n.postMessage(JSON.stringify(m),"*")}null!=l&&l()});null!=k&&"function"===typeof k.substring&&"data:application/vnd.visio;base64,"==k.substring(0,34)?(m="0M8R4KGxGuE"==k.substring(34,45)?"raw.vsd":"raw.vsdx",this.importVisio(this.base64ToBlob(k.substring(k.indexOf(",")+1)),function(b){ka(b,g)},mxUtils.bind(this,function(b){this.handleError(b)}),m)):null!=k&&"function"===typeof k.substring&&!this.isOffline()&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(k,"")?this.parseFileData(k,mxUtils.bind(this,
+function(b){4==b.readyState&&200<=b.status&&299>=b.status&&"<mxGraphModel"==b.responseText.substring(0,13)&&ka(b.responseText,g)}),""):null!=k&&"function"===typeof k.substring&&this.isLucidChartData(k)?this.convertLucidChart(k,mxUtils.bind(this,function(b){ka(b)}),mxUtils.bind(this,function(b){this.handleError(b)})):null==k||"object"!==typeof k||null==k.format||null==k.data&&null==k.url?(k=m(k),ka(k,g)):this.loadDescriptor(k,mxUtils.bind(this,function(b){ka(ca(),g)}),mxUtils.bind(this,function(b){this.handleError(b,
mxResources.get("errorLoadingFile"))}))}}));var n=window.opener||window.parent,l="json"==urlParams.proto?JSON.stringify({event:"init"}):urlParams.ready||"ready";n.postMessage(l,"*");if("json"==urlParams.proto){var q=this.editor.graph.openLink;this.editor.graph.openLink=function(b,d,c){q.apply(this,arguments);n.postMessage(JSON.stringify({event:"openLink",href:b,target:d,allowOpener:c}),"*")}}};EditorUi.prototype.addEmbedButtons=function(){if(null!=this.menubar&&"1"!=urlParams.embedInline){var b=document.createElement("div");
b.style.display="inline-block";b.style.position="absolute";b.style.paddingTop="atlas"==uiTheme||"1"==urlParams.atlas?"2px":"0px";b.style.paddingLeft="8px";b.style.paddingBottom="2px";var c=document.createElement("button");c.className="geBigButton";var e=c;if("1"==urlParams.noSaveBtn){if("0"!=urlParams.saveAndExit){var f="1"==urlParams.publishClose?mxResources.get("publish"):mxResources.get("saveAndExit");mxUtils.write(c,f);c.setAttribute("title",f);mxEvent.addListener(c,"click",mxUtils.bind(this,
function(){this.actions.get("saveAndExit").funct()}));b.appendChild(c)}}else mxUtils.write(c,mxResources.get("save")),c.setAttribute("title",mxResources.get("save")+" ("+Editor.ctrlKey+"+S)"),mxEvent.addListener(c,"click",mxUtils.bind(this,function(){this.actions.get("save").funct()})),b.appendChild(c),"1"==urlParams.saveAndExit&&(c=document.createElement("a"),mxUtils.write(c,mxResources.get("saveAndExit")),c.setAttribute("title",mxResources.get("saveAndExit")),c.className="geBigButton geBigStandardButton",
c.style.marginLeft="6px",mxEvent.addListener(c,"click",mxUtils.bind(this,function(){this.actions.get("saveAndExit").funct()})),b.appendChild(c),e=c);"1"!=urlParams.noExitBtn&&(c=document.createElement("a"),e="1"==urlParams.publishClose?mxResources.get("close"):mxResources.get("exit"),mxUtils.write(c,e),c.setAttribute("title",e),c.className="geBigButton geBigStandardButton",c.style.marginLeft="6px",mxEvent.addListener(c,"click",mxUtils.bind(this,function(){this.actions.get("exit").funct()})),b.appendChild(c),
e=c);e.style.marginRight="20px";this.toolbar.container.appendChild(b);this.toolbar.staticElements.push(b);b.style.right="atlas"==uiTheme||"1"==urlParams.atlas?"42px":"52px"}};EditorUi.prototype.showImportCsvDialog=function(){null==this.importCsvDialog&&(this.importCsvDialog=new TextareaDialog(this,mxResources.get("csv")+":",Editor.defaultCsvValue,mxUtils.bind(this,function(b){this.importCsv(b)}),null,null,620,430,null,!0,!0,mxResources.get("import"),this.isOffline()?null:"https://drawio-app.com/import-from-csv-to-drawio/"));
this.showDialog(this.importCsvDialog.container,640,520,!0,!0,null,null,null,null,!0);this.importCsvDialog.init()};EditorUi.prototype.executeLayoutList=function(b,c){for(var d=this.editor.graph,e=d.getSelectionCells(),f=0;f<b.length;f++){var k=new window[b[f].layout](d);if(null!=b[f].config)for(var l in b[f].config)k[l]=b[f].config[l];this.executeLayout(function(){k.execute(d.getDefaultParent(),0==e.length?null:e)},f==b.length-1,c)}};EditorUi.prototype.importCsv=function(b,c){try{var d=b.split("\n"),
-e=[],f=[],k=[],l={};if(0<d.length){for(var n={},q=this.editor.graph,y=null,F=null,D=null,E=null,H=null,N=null,A="whiteSpace=wrap;html=1;",G=null,I=null,L="",M="auto",K="auto",P=null,T=null,W=40,ga=40,ja=100,X=0,x=function(){null!=c?c(Z):(q.setSelectionCells(Z),q.scrollCellToVisible(q.getSelectionCell()))},C=q.getFreeInsertPoint(),J=C.x,V=C.y,C=V,ca=null,aa="auto",I=null,da=[],ta=null,ua=null,ha=0;ha<d.length&&"#"==d[ha].charAt(0);){b=d[ha];for(ha++;ha<d.length&&"\\"==b.charAt(b.length-1)&&"#"==d[ha].charAt(0);)b=
-b.substring(0,b.length-1)+mxUtils.trim(d[ha].substring(1)),ha++;if("#"!=b.charAt(1)){var oa=b.indexOf(":");if(0<oa){var Y=mxUtils.trim(b.substring(1,oa)),Q=mxUtils.trim(b.substring(oa+1));"label"==Y?ca=q.sanitizeHtml(Q):"labelname"==Y&&0<Q.length&&"-"!=Q?H=Q:"labels"==Y&&0<Q.length&&"-"!=Q?N=JSON.parse(Q):"style"==Y?F=Q:"parentstyle"==Y?A=Q:"stylename"==Y&&0<Q.length&&"-"!=Q?E=Q:"styles"==Y&&0<Q.length&&"-"!=Q?D=JSON.parse(Q):"vars"==Y&&0<Q.length&&"-"!=Q?y=JSON.parse(Q):"identity"==Y&&0<Q.length&&
-"-"!=Q?G=Q:"parent"==Y&&0<Q.length&&"-"!=Q?I=Q:"namespace"==Y&&0<Q.length&&"-"!=Q?L=Q:"width"==Y?M=Q:"height"==Y?K=Q:"left"==Y&&0<Q.length?P=Q:"top"==Y&&0<Q.length?T=Q:"ignore"==Y?ua=Q.split(","):"connect"==Y?da.push(JSON.parse(Q)):"link"==Y?ta=Q:"padding"==Y?X=parseFloat(Q):"edgespacing"==Y?W=parseFloat(Q):"nodespacing"==Y?ga=parseFloat(Q):"levelspacing"==Y?ja=parseFloat(Q):"layout"==Y&&(aa=Q)}}}if(null==d[ha])throw Error(mxResources.get("invalidOrMissingFile"));for(var ea=this.editor.csvToArray(d[ha]),
-Y=oa=null,Q=[],S=0;S<ea.length;S++)G==ea[S]&&(oa=S),I==ea[S]&&(Y=S),Q.push(mxUtils.trim(ea[S]).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,""));null==ca&&(ca="%"+Q[0]+"%");if(null!=da)for(var ma=0;ma<da.length;ma++)null==n[da[ma].to]&&(n[da[ma].to]={});G=[];for(S=ha+1;S<d.length;S++){var pa=this.editor.csvToArray(d[S]);if(null==pa){var ra=40<d[S].length?d[S].substring(0,40)+"...":d[S];throw Error(ra+" ("+S+"):\n"+mxResources.get("containsValidationErrors"));}0<pa.length&&G.push(pa)}q.model.beginUpdate();
-try{for(S=0;S<G.length;S++){var pa=G[S],R=null,qa=null!=oa?L+pa[oa]:null;null!=qa&&(R=q.model.getCell(qa));var d=null!=R,ia=new mxCell(ca,new mxGeometry(J,C,0,0),F||"whiteSpace=wrap;html=1;");ia.vertex=!0;ia.id=qa;for(var fa=0;fa<pa.length;fa++)q.setAttributeForCell(ia,Q[fa],pa[fa]);if(null!=H&&null!=N){var ba=N[ia.getAttribute(H)];null!=ba&&q.labelChanged(ia,ba)}if(null!=E&&null!=D){var na=D[ia.getAttribute(E)];null!=na&&(ia.style=na)}q.setAttributeForCell(ia,"placeholders","1");ia.style=q.replacePlaceholders(ia,
-ia.style,y);d?(0>mxUtils.indexOf(k,R)&&k.push(R),q.fireEvent(new mxEventObject("cellsInserted","cells",[R]))):q.fireEvent(new mxEventObject("cellsInserted","cells",[ia]));R=ia;if(!d)for(ma=0;ma<da.length;ma++)n[da[ma].to][R.getAttribute(da[ma].to)]=R;null!=ta&&"link"!=ta&&(q.setLinkForCell(R,R.getAttribute(ta)),q.setAttributeForCell(R,ta,null));var Aa=this.editor.graph.getPreferredSizeForCell(R),I=null!=Y?q.model.getCell(L+pa[Y]):null;if(R.vertex){ra=null!=I?0:J;ha=null!=I?0:V;null!=P&&null!=R.getAttribute(P)&&
-(R.geometry.x=ra+parseFloat(R.getAttribute(P)));null!=T&&null!=R.getAttribute(T)&&(R.geometry.y=ha+parseFloat(R.getAttribute(T)));var xa="@"==M.charAt(0)?R.getAttribute(M.substring(1)):null;R.geometry.width=null!=xa&&"auto"!=xa?parseFloat(R.getAttribute(M.substring(1))):"auto"==M||"auto"==xa?Aa.width+X:parseFloat(M);var sa="@"==K.charAt(0)?R.getAttribute(K.substring(1)):null;R.geometry.height=null!=sa&&"auto"!=sa?parseFloat(sa):"auto"==K||"auto"==sa?Aa.height+X:parseFloat(K);C+=R.geometry.height+
-ga}d?(null==l[qa]&&(l[qa]=[]),l[qa].push(R)):(e.push(R),null!=I?(I.style=q.replacePlaceholders(I,A,y),q.addCell(R,I),f.push(I)):k.push(q.addCell(R)))}for(S=0;S<f.length;S++)xa="@"==M.charAt(0)?f[S].getAttribute(M.substring(1)):null,sa="@"==K.charAt(0)?f[S].getAttribute(K.substring(1)):null,"auto"!=M&&"auto"!=xa||"auto"!=K&&"auto"!=sa||q.updateGroupBounds([f[S]],X,!0);for(var ka=k.slice(),Z=k.slice(),ma=0;ma<da.length;ma++)for(var O=da[ma],S=0;S<e.length;S++){var R=e[S],Ga=mxUtils.bind(this,function(b,
-c,d){var e=c.getAttribute(d.from);if(null!=e&&""!=e)for(var e=e.split(","),g=0;g<e.length;g++){var f=n[d.to][e[g]];if(null==f){f=new mxCell(e[g],new mxGeometry(J,V,0,0),F||"whiteSpace=wrap;html=1;");f.style=q.replacePlaceholders(c,f.style,y);var l=this.editor.graph.getPreferredSizeForCell(f);f.geometry.width=l.width+X;f.geometry.height=l.height+X;n[d.to][e[g]]=f;f.vertex=!0;f.id=e[g];k.push(q.addCell(f))}l=d.label;null!=d.fromlabel&&(l=(c.getAttribute(d.fromlabel)||"")+(l||""));null!=d.sourcelabel&&
-(l=q.replacePlaceholders(c,d.sourcelabel,y)+(l||""));null!=d.tolabel&&(l=(l||"")+(f.getAttribute(d.tolabel)||""));null!=d.targetlabel&&(l=(l||"")+q.replacePlaceholders(f,d.targetlabel,y));var m="target"==d.placeholders==!d.invert?f:b,m=null!=d.style?q.replacePlaceholders(m,d.style,y):q.createCurrentEdgeStyle(),l=q.insertEdge(null,null,l||"",d.invert?f:b,d.invert?b:f,m);if(null!=d.labels)for(m=0;m<d.labels.length;m++){var p=d.labels[m],t=new mxCell(p.label||m,new mxGeometry(null!=p.x?p.x:0,null!=p.y?
-p.y:0,0,0),"resizable=0;html=1;");t.vertex=!0;t.connectable=!1;t.geometry.relative=!0;null!=p.placeholders&&(t.value=q.replacePlaceholders("target"==p.placeholders==!d.invert?f:b,t.value,y));if(null!=p.dx||null!=p.dy)t.geometry.offset=new mxPoint(null!=p.dx?p.dx:0,null!=p.dy?p.dy:0);l.insert(t)}Z.push(l);mxUtils.remove(d.invert?b:f,ka)}});Ga(R,R,O);if(null!=l[R.id])for(fa=0;fa<l[R.id].length;fa++)Ga(R,l[R.id][fa],O)}if(null!=ua)for(S=0;S<e.length;S++)for(R=e[S],fa=0;fa<ua.length;fa++)q.setAttributeForCell(R,
-mxUtils.trim(ua[fa]),null);if(0<k.length){var Da=new mxParallelEdgeLayout(q);Da.spacing=W;Da.checkOverlap=!0;var ya=function(){0<Da.spacing&&Da.execute(q.getDefaultParent());for(var b=0;b<k.length;b++){var d=q.getCellGeometry(k[b]);d.x=Math.round(q.snap(d.x));d.y=Math.round(q.snap(d.y));"auto"==M&&(d.width=Math.round(q.snap(d.width)));"auto"==K&&(d.height=Math.round(q.snap(d.height)))}};if("["==aa.charAt(0)){var Ea=x;q.view.validate();this.executeLayoutList(JSON.parse(aa),function(){ya();Ea()});x=
-null}else if("circle"==aa){var va=new mxCircleLayout(q);va.disableEdgeStyle=!1;va.resetEdges=!1;var Ha=va.isVertexIgnored;va.isVertexIgnored=function(b){return Ha.apply(this,arguments)||0>mxUtils.indexOf(k,b)};this.executeLayout(function(){va.execute(q.getDefaultParent());ya()},!0,x);x=null}else if("horizontaltree"==aa||"verticaltree"==aa||"auto"==aa&&Z.length==2*k.length-1&&1==ka.length){q.view.validate();var Ca=new mxCompactTreeLayout(q,"horizontaltree"==aa);Ca.levelDistance=ga;Ca.edgeRouting=!1;
-Ca.resetEdges=!1;this.executeLayout(function(){Ca.execute(q.getDefaultParent(),0<ka.length?ka[0]:null)},!0,x);x=null}else if("horizontalflow"==aa||"verticalflow"==aa||"auto"==aa&&1==ka.length){q.view.validate();var za=new mxHierarchicalLayout(q,"horizontalflow"==aa?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);za.intraCellSpacing=ga;za.parallelEdgeSpacing=W;za.interRankCellSpacing=ja;za.disableEdgeStyle=!1;this.executeLayout(function(){za.execute(q.getDefaultParent(),Z);q.moveCells(Z,J,
-V)},!0,x);x=null}else if("organic"==aa||"auto"==aa&&Z.length>k.length){q.view.validate();var Ba=new mxFastOrganicLayout(q);Ba.forceConstant=3*ga;Ba.disableEdgeStyle=!1;Ba.resetEdges=!1;var U=Ba.isVertexIgnored;Ba.isVertexIgnored=function(b){return U.apply(this,arguments)||0>mxUtils.indexOf(k,b)};this.executeLayout(function(){Ba.execute(q.getDefaultParent());ya()},!0,x);x=null}}this.hideDialog()}finally{q.model.endUpdate()}null!=x&&x()}}catch(Fa){this.handleError(Fa)}};EditorUi.prototype.getSearch=
-function(b){var d="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=b&&0<window.location.search.length){var c="?",e;for(e in urlParams)0>mxUtils.indexOf(b,e)&&null!=urlParams[e]&&(d+=c+e+"="+urlParams[e],c="&")}else d=window.location.search;return d};EditorUi.prototype.getUrl=function(b){b=null!=b?b:window.location.pathname;var d=0<b.indexOf("?")?1:0;if("1"==urlParams.offline)b+=window.location.search;else{var c="tmp libs clibs state fileId code share notitle data url embed client create title splash".split(" "),
-e;for(e in urlParams)0>mxUtils.indexOf(c,e)&&(b=0==d?b+"?":b+"&",null!=urlParams[e]&&(b+=e+"="+urlParams[e],d++))}return b};EditorUi.prototype.showLinkDialog=function(b,c,e,f,l){b=new LinkDialog(this,b,c,e,!0,f,l);this.showDialog(b.container,560,130,!0,!0);b.init()};EditorUi.prototype.getServiceCount=function(b){var d=1;null==this.drive&&"function"!==typeof window.DriveClient||d++;null==this.dropbox&&"function"!==typeof window.DropboxClient||d++;null==this.oneDrive&&"function"!==typeof window.OneDriveClient||
-d++;null!=this.gitHub&&d++;null!=this.gitLab&&d++;null!=this.notion&&d++;b&&isLocalStorage&&"1"==urlParams.browser&&d++;return d};EditorUi.prototype.updateUi=function(){this.updateButtonContainer();this.updateActionStates();var b=this.getCurrentFile(),c=null!=b||"1"==urlParams.embed&&this.editor.graph.isEnabled();this.menus.get("viewPanels").setEnabled(c);this.menus.get("viewZoom").setEnabled(c);var e=("1"!=urlParams.embed||!this.editor.graph.isEnabled())&&(null==b||b.isRestricted());this.actions.get("makeCopy").setEnabled(!e);
-this.actions.get("print").setEnabled(!e);this.menus.get("exportAs").setEnabled(!e);this.menus.get("embed").setEnabled(!e);e="1"!=urlParams.embed||this.editor.graph.isEnabled();this.menus.get("extras").setEnabled(e);Editor.enableCustomLibraries&&(this.menus.get("openLibraryFrom").setEnabled(e),this.menus.get("newLibrary").setEnabled(e));b="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=b&&b.isEditable();this.actions.get("image").setEnabled(c);this.actions.get("zoomIn").setEnabled(c);this.actions.get("zoomOut").setEnabled(c);
-this.actions.get("resetView").setEnabled(c);this.actions.get("undo").setEnabled(this.canUndo()&&b);this.actions.get("redo").setEnabled(this.canRedo()&&b);this.menus.get("edit").setEnabled(c);this.menus.get("view").setEnabled(c);this.menus.get("importFrom").setEnabled(b);this.menus.get("arrange").setEnabled(b);null!=this.toolbar&&(null!=this.toolbar.edgeShapeMenu&&this.toolbar.edgeShapeMenu.setEnabled(b),null!=this.toolbar.edgeStyleMenu&&this.toolbar.edgeStyleMenu.setEnabled(b));this.updateUserElement()};
-EditorUi.prototype.updateButtonContainer=function(){};EditorUi.prototype.updateUserElement=function(){};EditorUi.prototype.scheduleSanityCheck=function(){};EditorUi.prototype.stopSanityCheck=function(){};EditorUi.prototype.isDiagramActive=function(){var b=this.getCurrentFile();return null!=b&&b.isEditable()||"1"==urlParams.embed&&this.editor.graph.isEnabled()};var l=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){l.apply(this,arguments);var b=this.editor.graph,
-c=this.getCurrentFile(),e=this.getSelectionState(),f=this.isDiagramActive();this.actions.get("pageSetup").setEnabled(f);this.actions.get("autosave").setEnabled(null!=c&&c.isEditable()&&c.isAutosaveOptional());this.actions.get("guides").setEnabled(f);this.actions.get("editData").setEnabled(b.isEnabled());this.actions.get("shadowVisible").setEnabled(f);this.actions.get("connectionArrows").setEnabled(f);this.actions.get("connectionPoints").setEnabled(f);this.actions.get("copyStyle").setEnabled(f&&!b.isSelectionEmpty());
-this.actions.get("pasteStyle").setEnabled(f&&0<e.cells.length);this.actions.get("editGeometry").setEnabled(0<e.vertices.length);this.actions.get("createShape").setEnabled(f);this.actions.get("createRevision").setEnabled(f);this.actions.get("moveToFolder").setEnabled(null!=c);this.actions.get("makeCopy").setEnabled(null!=c&&!c.isRestricted());this.actions.get("editDiagram").setEnabled(f&&(null==c||!c.isRestricted()));this.actions.get("publishLink").setEnabled(null!=c&&!c.isRestricted());this.actions.get("tags").setEnabled("hidden"!=
-this.diagramContainer.style.visibility);this.actions.get("layers").setEnabled("hidden"!=this.diagramContainer.style.visibility);this.actions.get("outline").setEnabled("hidden"!=this.diagramContainer.style.visibility);this.actions.get("rename").setEnabled(null!=c&&c.isRenamable()||"1"==urlParams.embed);this.actions.get("close").setEnabled(null!=c);this.menus.get("publish").setEnabled(null!=c&&!c.isRestricted());c=this.actions.get("findReplace");c.setEnabled("hidden"!=this.diagramContainer.style.visibility);
-c.label=mxResources.get("find")+(b.isEnabled()?"/"+mxResources.get("replace"):"")+"...";b=b.view.getState(b.getSelectionCell());this.actions.get("editShape").setEnabled(f&&null!=b&&null!=b.shape&&null!=b.shape.stencil)};var q=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);q.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=
-!1,ExportDialog.exportFile=function(b,c,e,f,l,n,q,t){var d=b.editor.graph;if("xml"==e)b.hideDialog(),b.saveData(c,"xml",mxUtils.getXml(b.editor.getGraphXml()),"text/xml");else if("svg"==e)b.hideDialog(),b.saveData(c,"svg",mxUtils.getXml(d.getSvg(f,l,n)),"image/svg+xml");else{var g=b.getFileData(!0,null,null,null,null,!0),k=d.getGraphBounds(),m=Math.floor(k.width*l/d.view.scale),p=Math.floor(k.height*l/d.view.scale);if(g.length<=MAX_REQUEST_SIZE&&m*p<MAX_AREA)if(b.hideDialog(),"png"!=e&&"jpg"!=e&&
-"jpeg"!=e||!b.isExportToCanvas()){var v={globalVars:d.getExportVariables()};t&&(v.grid={size:d.gridSize,steps:d.view.gridSteps,color:d.view.gridColor});b.saveRequest(c,e,function(b,c){return new mxXmlRequest(EXPORT_URL,"format="+e+"&base64="+(c||"0")+(null!=b?"&filename="+encodeURIComponent(b):"")+"&extras="+encodeURIComponent(JSON.stringify(v))+(0<q?"&dpi="+q:"")+"&bg="+(null!=f?f:"none")+"&w="+m+"&h="+p+"&border="+n+"&xml="+encodeURIComponent(g))})}else"png"==e?b.exportImage(l,null==f||"none"==
-f,!0,!1,!1,n,!0,!1,null,t,q):b.exportImage(l,!1,!0,!1,!1,n,!0,!1,"jpeg",t);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);var b=this.editor.graph,c="";if(null!=this.pages)for(var e=0;e<this.pages.length;e++){var f=b;this.currentPage!=this.pages[e]&&(f=this.createTemporaryGraph(b.getStylesheet()),this.updatePageRoot(this.pages[e]),f.model.setRoot(this.pages[e].root));c+=this.pages[e].getName()+" "+f.getIndexableText()+
-" "}else c=b.getIndexableText();this.editor.graph.setEnabled(!0);return c};EditorUi.prototype.showRemotelyStoredLibrary=function(b){var c={},d=document.createElement("div");d.style.whiteSpace="nowrap";var e=document.createElement("h3");mxUtils.write(e,mxUtils.htmlEntities(b));e.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";d.appendChild(e);var f=document.createElement("div");f.style.cssText="border:1px solid lightGray;overflow: auto;height:300px";f.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+
+e=[],f=[],k=[],l={};if(0<d.length){for(var n={},q=this.editor.graph,y=null,I=null,D=null,F=null,E=null,O=null,B=null,G="whiteSpace=wrap;html=1;",H=null,L=null,N="",M="auto",P="auto",V=null,W=null,ga=40,ea=40,ba=100,x=0,C=function(){null!=c?c(R):(q.setSelectionCells(R),q.scrollCellToVisible(q.getSelectionCell()))},J=q.getFreeInsertPoint(),X=J.x,ca=J.y,J=ca,ka=null,K="auto",L=null,na=[],qa=null,pa=null,ha=0;ha<d.length&&"#"==d[ha].charAt(0);){b=d[ha];for(ha++;ha<d.length&&"\\"==b.charAt(b.length-1)&&
+"#"==d[ha].charAt(0);)b=b.substring(0,b.length-1)+mxUtils.trim(d[ha].substring(1)),ha++;if("#"!=b.charAt(1)){var sa=b.indexOf(":");if(0<sa){var Y=mxUtils.trim(b.substring(1,sa)),Q=mxUtils.trim(b.substring(sa+1));"label"==Y?ka=q.sanitizeHtml(Q):"labelname"==Y&&0<Q.length&&"-"!=Q?E=Q:"labels"==Y&&0<Q.length&&"-"!=Q?B=JSON.parse(Q):"style"==Y?I=Q:"parentstyle"==Y?G=Q:"unknownStyle"==Y&&"-"!=Q?O=Q:"stylename"==Y&&0<Q.length&&"-"!=Q?F=Q:"styles"==Y&&0<Q.length&&"-"!=Q?D=JSON.parse(Q):"vars"==Y&&0<Q.length&&
+"-"!=Q?y=JSON.parse(Q):"identity"==Y&&0<Q.length&&"-"!=Q?H=Q:"parent"==Y&&0<Q.length&&"-"!=Q?L=Q:"namespace"==Y&&0<Q.length&&"-"!=Q?N=Q:"width"==Y?M=Q:"height"==Y?P=Q:"left"==Y&&0<Q.length?V=Q:"top"==Y&&0<Q.length?W=Q:"ignore"==Y?pa=Q.split(","):"connect"==Y?na.push(JSON.parse(Q)):"link"==Y?qa=Q:"padding"==Y?x=parseFloat(Q):"edgespacing"==Y?ga=parseFloat(Q):"nodespacing"==Y?ea=parseFloat(Q):"levelspacing"==Y?ba=parseFloat(Q):"layout"==Y&&(K=Q)}}}if(null==d[ha])throw Error(mxResources.get("invalidOrMissingFile"));
+for(var ta=this.editor.csvToArray(d[ha]),Y=sa=null,Q=[],T=0;T<ta.length;T++)H==ta[T]&&(sa=T),L==ta[T]&&(Y=T),Q.push(mxUtils.trim(ta[T]).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,""));null==ka&&(ka="%"+Q[0]+"%");if(null!=na)for(var ja=0;ja<na.length;ja++)null==n[na[ja].to]&&(n[na[ja].to]={});H=[];for(T=ha+1;T<d.length;T++){var ma=this.editor.csvToArray(d[T]);if(null==ma){var ra=40<d[T].length?d[T].substring(0,40)+"...":d[T];throw Error(ra+" ("+T+"):\n"+mxResources.get("containsValidationErrors"));
+}0<ma.length&&H.push(ma)}q.model.beginUpdate();try{for(T=0;T<H.length;T++){var ma=H[T],S=null,oa=null!=sa?N+ma[sa]:null;null!=oa&&(S=q.model.getCell(oa));var d=null!=S,da=new mxCell(ka,new mxGeometry(X,J,0,0),I||"whiteSpace=wrap;html=1;");da.vertex=!0;da.id=oa;for(var Z=0;Z<ma.length;Z++)q.setAttributeForCell(da,Q[Z],ma[Z]);if(null!=E&&null!=B){var la=B[da.getAttribute(E)];null!=la&&q.labelChanged(da,la)}if(null!=F&&null!=D){var ya=D[da.getAttribute(F)];null!=ya&&(da.style=ya)}q.setAttributeForCell(da,
+"placeholders","1");da.style=q.replacePlaceholders(da,da.style,y);d?(0>mxUtils.indexOf(k,S)&&k.push(S),q.fireEvent(new mxEventObject("cellsInserted","cells",[S]))):q.fireEvent(new mxEventObject("cellsInserted","cells",[da]));S=da;if(!d)for(ja=0;ja<na.length;ja++)n[na[ja].to][S.getAttribute(na[ja].to)]=S;null!=qa&&"link"!=qa&&(q.setLinkForCell(S,S.getAttribute(qa)),q.setAttributeForCell(S,qa,null));var za=this.editor.graph.getPreferredSizeForCell(S),L=null!=Y?q.model.getCell(N+ma[Y]):null;if(S.vertex){ra=
+null!=L?0:X;ha=null!=L?0:ca;null!=V&&null!=S.getAttribute(V)&&(S.geometry.x=ra+parseFloat(S.getAttribute(V)));null!=W&&null!=S.getAttribute(W)&&(S.geometry.y=ha+parseFloat(S.getAttribute(W)));var ua="@"==M.charAt(0)?S.getAttribute(M.substring(1)):null;S.geometry.width=null!=ua&&"auto"!=ua?parseFloat(S.getAttribute(M.substring(1))):"auto"==M||"auto"==ua?za.width+x:parseFloat(M);var fa="@"==P.charAt(0)?S.getAttribute(P.substring(1)):null;S.geometry.height=null!=fa&&"auto"!=fa?parseFloat(fa):"auto"==
+P||"auto"==fa?za.height+x:parseFloat(P);J+=S.geometry.height+ea}d?(null==l[oa]&&(l[oa]=[]),l[oa].push(S)):(e.push(S),null!=L?(L.style=q.replacePlaceholders(L,G,y),q.addCell(S,L),f.push(L)):k.push(q.addCell(S)))}for(T=0;T<f.length;T++)ua="@"==M.charAt(0)?f[T].getAttribute(M.substring(1)):null,fa="@"==P.charAt(0)?f[T].getAttribute(P.substring(1)):null,"auto"!=M&&"auto"!=ua||"auto"!=P&&"auto"!=fa||q.updateGroupBounds([f[T]],x,!0);for(var aa=k.slice(),R=k.slice(),ja=0;ja<na.length;ja++)for(var Fa=na[ja],
+T=0;T<e.length;T++){var S=e[T],Ga=mxUtils.bind(this,function(b,c,d){var e=c.getAttribute(d.from);if(null!=e&&""!=e)for(var e=e.split(","),g=0;g<e.length;g++){var f=n[d.to][e[g]];if(null==f&&null!=O){f=new mxCell(e[g],new mxGeometry(X,ca,0,0),O);f.style=q.replacePlaceholders(c,f.style,y);var l=this.editor.graph.getPreferredSizeForCell(f);f.geometry.width=l.width+x;f.geometry.height=l.height+x;n[d.to][e[g]]=f;f.vertex=!0;f.id=e[g];k.push(q.addCell(f))}if(null!=f){l=d.label;null!=d.fromlabel&&(l=(c.getAttribute(d.fromlabel)||
+"")+(l||""));null!=d.sourcelabel&&(l=q.replacePlaceholders(c,d.sourcelabel,y)+(l||""));null!=d.tolabel&&(l=(l||"")+(f.getAttribute(d.tolabel)||""));null!=d.targetlabel&&(l=(l||"")+q.replacePlaceholders(f,d.targetlabel,y));var m="target"==d.placeholders==!d.invert?f:b,m=null!=d.style?q.replacePlaceholders(m,d.style,y):q.createCurrentEdgeStyle(),l=q.insertEdge(null,null,l||"",d.invert?f:b,d.invert?b:f,m);if(null!=d.labels)for(m=0;m<d.labels.length;m++){var p=d.labels[m],t=new mxCell(p.label||m,new mxGeometry(null!=
+p.x?p.x:0,null!=p.y?p.y:0,0,0),"resizable=0;html=1;");t.vertex=!0;t.connectable=!1;t.geometry.relative=!0;null!=p.placeholders&&(t.value=q.replacePlaceholders("target"==p.placeholders==!d.invert?f:b,t.value,y));if(null!=p.dx||null!=p.dy)t.geometry.offset=new mxPoint(null!=p.dx?p.dx:0,null!=p.dy?p.dy:0);l.insert(t)}R.push(l);mxUtils.remove(d.invert?b:f,aa)}}});Ga(S,S,Fa);if(null!=l[S.id])for(Z=0;Z<l[S.id].length;Z++)Ga(S,l[S.id][Z],Fa)}if(null!=pa)for(T=0;T<e.length;T++)for(S=e[T],Z=0;Z<pa.length;Z++)q.setAttributeForCell(S,
+mxUtils.trim(pa[Z]),null);if(0<k.length){var wa=new mxParallelEdgeLayout(q);wa.spacing=ga;wa.checkOverlap=!0;var Aa=function(){0<wa.spacing&&wa.execute(q.getDefaultParent());for(var b=0;b<k.length;b++){var d=q.getCellGeometry(k[b]);d.x=Math.round(q.snap(d.x));d.y=Math.round(q.snap(d.y));"auto"==M&&(d.width=Math.round(q.snap(d.width)));"auto"==P&&(d.height=Math.round(q.snap(d.height)))}};if("["==K.charAt(0)){var xa=C;q.view.validate();this.executeLayoutList(JSON.parse(K),function(){Aa();xa()});C=null}else if("circle"==
+K){var Ba=new mxCircleLayout(q);Ba.disableEdgeStyle=!1;Ba.resetEdges=!1;var Ha=Ba.isVertexIgnored;Ba.isVertexIgnored=function(b){return Ha.apply(this,arguments)||0>mxUtils.indexOf(k,b)};this.executeLayout(function(){Ba.execute(q.getDefaultParent());Aa()},!0,C);C=null}else if("horizontaltree"==K||"verticaltree"==K||"auto"==K&&R.length==2*k.length-1&&1==aa.length){q.view.validate();var Ca=new mxCompactTreeLayout(q,"horizontaltree"==K);Ca.levelDistance=ea;Ca.edgeRouting=!1;Ca.resetEdges=!1;this.executeLayout(function(){Ca.execute(q.getDefaultParent(),
+0<aa.length?aa[0]:null)},!0,C);C=null}else if("horizontalflow"==K||"verticalflow"==K||"auto"==K&&1==aa.length){q.view.validate();var Da=new mxHierarchicalLayout(q,"horizontalflow"==K?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);Da.intraCellSpacing=ea;Da.parallelEdgeSpacing=ga;Da.interRankCellSpacing=ba;Da.disableEdgeStyle=!1;this.executeLayout(function(){Da.execute(q.getDefaultParent(),R);q.moveCells(R,X,ca)},!0,C);C=null}else if("organic"==K||"auto"==K&&R.length>k.length){q.view.validate();
+var U=new mxFastOrganicLayout(q);U.forceConstant=3*ea;U.disableEdgeStyle=!1;U.resetEdges=!1;var Ea=U.isVertexIgnored;U.isVertexIgnored=function(b){return Ea.apply(this,arguments)||0>mxUtils.indexOf(k,b)};this.executeLayout(function(){U.execute(q.getDefaultParent());Aa()},!0,C);C=null}}this.hideDialog()}finally{q.model.endUpdate()}null!=C&&C()}}catch(Na){this.handleError(Na)}};EditorUi.prototype.getSearch=function(b){var d="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=b&&0<window.location.search.length){var c=
+"?",e;for(e in urlParams)0>mxUtils.indexOf(b,e)&&null!=urlParams[e]&&(d+=c+e+"="+urlParams[e],c="&")}else d=window.location.search;return d};EditorUi.prototype.getUrl=function(b){b=null!=b?b:window.location.pathname;var d=0<b.indexOf("?")?1:0;if("1"==urlParams.offline)b+=window.location.search;else{var c="tmp libs clibs state fileId code share notitle data url embed client create title splash".split(" "),e;for(e in urlParams)0>mxUtils.indexOf(c,e)&&(b=0==d?b+"?":b+"&",null!=urlParams[e]&&(b+=e+"="+
+urlParams[e],d++))}return b};EditorUi.prototype.showLinkDialog=function(b,c,e,f,l){b=new LinkDialog(this,b,c,e,!0,f,l);this.showDialog(b.container,560,130,!0,!0);b.init()};EditorUi.prototype.getServiceCount=function(b){var d=1;null==this.drive&&"function"!==typeof window.DriveClient||d++;null==this.dropbox&&"function"!==typeof window.DropboxClient||d++;null==this.oneDrive&&"function"!==typeof window.OneDriveClient||d++;null!=this.gitHub&&d++;null!=this.gitLab&&d++;null!=this.notion&&d++;b&&isLocalStorage&&
+"1"==urlParams.browser&&d++;return d};EditorUi.prototype.updateUi=function(){this.updateButtonContainer();this.updateActionStates();var b=this.getCurrentFile(),c=null!=b||"1"==urlParams.embed&&this.editor.graph.isEnabled();this.menus.get("viewPanels").setEnabled(c);this.menus.get("viewZoom").setEnabled(c);var e=("1"!=urlParams.embed||!this.editor.graph.isEnabled())&&(null==b||b.isRestricted());this.actions.get("makeCopy").setEnabled(!e);this.actions.get("print").setEnabled(!e);this.menus.get("exportAs").setEnabled(!e);
+this.menus.get("embed").setEnabled(!e);e="1"!=urlParams.embed||this.editor.graph.isEnabled();this.menus.get("extras").setEnabled(e);Editor.enableCustomLibraries&&(this.menus.get("openLibraryFrom").setEnabled(e),this.menus.get("newLibrary").setEnabled(e));b="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=b&&b.isEditable();this.actions.get("image").setEnabled(c);this.actions.get("zoomIn").setEnabled(c);this.actions.get("zoomOut").setEnabled(c);this.actions.get("resetView").setEnabled(c);
+this.actions.get("undo").setEnabled(this.canUndo()&&b);this.actions.get("redo").setEnabled(this.canRedo()&&b);this.menus.get("edit").setEnabled(c);this.menus.get("view").setEnabled(c);this.menus.get("importFrom").setEnabled(b);this.menus.get("arrange").setEnabled(b);null!=this.toolbar&&(null!=this.toolbar.edgeShapeMenu&&this.toolbar.edgeShapeMenu.setEnabled(b),null!=this.toolbar.edgeStyleMenu&&this.toolbar.edgeStyleMenu.setEnabled(b));this.updateUserElement()};EditorUi.prototype.updateButtonContainer=
+function(){};EditorUi.prototype.updateUserElement=function(){};EditorUi.prototype.scheduleSanityCheck=function(){};EditorUi.prototype.stopSanityCheck=function(){};EditorUi.prototype.isDiagramActive=function(){var b=this.getCurrentFile();return null!=b&&b.isEditable()||"1"==urlParams.embed&&this.editor.graph.isEnabled()};var l=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){l.apply(this,arguments);var b=this.editor.graph,c=this.getCurrentFile(),e=this.getSelectionState(),
+f=this.isDiagramActive();this.actions.get("pageSetup").setEnabled(f);this.actions.get("autosave").setEnabled(null!=c&&c.isEditable()&&c.isAutosaveOptional());this.actions.get("guides").setEnabled(f);this.actions.get("editData").setEnabled(b.isEnabled());this.actions.get("shadowVisible").setEnabled(f);this.actions.get("connectionArrows").setEnabled(f);this.actions.get("connectionPoints").setEnabled(f);this.actions.get("copyStyle").setEnabled(f&&!b.isSelectionEmpty());this.actions.get("pasteStyle").setEnabled(f&&
+0<e.cells.length);this.actions.get("editGeometry").setEnabled(0<e.vertices.length);this.actions.get("createShape").setEnabled(f);this.actions.get("createRevision").setEnabled(f);this.actions.get("moveToFolder").setEnabled(null!=c);this.actions.get("makeCopy").setEnabled(null!=c&&!c.isRestricted());this.actions.get("editDiagram").setEnabled(f&&(null==c||!c.isRestricted()));this.actions.get("publishLink").setEnabled(null!=c&&!c.isRestricted());this.actions.get("tags").setEnabled("hidden"!=this.diagramContainer.style.visibility);
+this.actions.get("layers").setEnabled("hidden"!=this.diagramContainer.style.visibility);this.actions.get("outline").setEnabled("hidden"!=this.diagramContainer.style.visibility);this.actions.get("rename").setEnabled(null!=c&&c.isRenamable()||"1"==urlParams.embed);this.actions.get("close").setEnabled(null!=c);this.menus.get("publish").setEnabled(null!=c&&!c.isRestricted());c=this.actions.get("findReplace");c.setEnabled("hidden"!=this.diagramContainer.style.visibility);c.label=mxResources.get("find")+
+(b.isEnabled()?"/"+mxResources.get("replace"):"")+"...";b=b.view.getState(b.getSelectionCell());this.actions.get("editShape").setEnabled(f&&null!=b&&null!=b.shape&&null!=b.shape.stencil)};var q=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);q.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=
+function(b,c,e,f,l,n,q,t){var d=b.editor.graph;if("xml"==e)b.hideDialog(),b.saveData(c,"xml",mxUtils.getXml(b.editor.getGraphXml()),"text/xml");else if("svg"==e)b.hideDialog(),b.saveData(c,"svg",mxUtils.getXml(d.getSvg(f,l,n)),"image/svg+xml");else{var g=b.getFileData(!0,null,null,null,null,!0),k=d.getGraphBounds(),m=Math.floor(k.width*l/d.view.scale),p=Math.floor(k.height*l/d.view.scale);if(g.length<=MAX_REQUEST_SIZE&&m*p<MAX_AREA)if(b.hideDialog(),"png"!=e&&"jpg"!=e&&"jpeg"!=e||!b.isExportToCanvas()){var u=
+{globalVars:d.getExportVariables()};t&&(u.grid={size:d.gridSize,steps:d.view.gridSteps,color:d.view.gridColor});b.saveRequest(c,e,function(b,c){return new mxXmlRequest(EXPORT_URL,"format="+e+"&base64="+(c||"0")+(null!=b?"&filename="+encodeURIComponent(b):"")+"&extras="+encodeURIComponent(JSON.stringify(u))+(0<q?"&dpi="+q:"")+"&bg="+(null!=f?f:"none")+"&w="+m+"&h="+p+"&border="+n+"&xml="+encodeURIComponent(g))})}else"png"==e?b.exportImage(l,null==f||"none"==f,!0,!1,!1,n,!0,!1,null,t,q):b.exportImage(l,
+!1,!0,!1,!1,n,!0,!1,"jpeg",t);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);var b=this.editor.graph,c="";if(null!=this.pages)for(var e=0;e<this.pages.length;e++){var f=b;this.currentPage!=this.pages[e]&&(f=this.createTemporaryGraph(b.getStylesheet()),this.updatePageRoot(this.pages[e]),f.model.setRoot(this.pages[e].root));c+=this.pages[e].getName()+" "+f.getIndexableText()+" "}else c=b.getIndexableText();
+this.editor.graph.setEnabled(!0);return c};EditorUi.prototype.showRemotelyStoredLibrary=function(b){var c={},d=document.createElement("div");d.style.whiteSpace="nowrap";var e=document.createElement("h3");mxUtils.write(e,mxUtils.htmlEntities(b));e.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";d.appendChild(e);var f=document.createElement("div");f.style.cssText="border:1px solid lightGray;overflow: auto;height:300px";f.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+
IMAGE_PATH+'/spin.gif"></div>';var l={};try{var n=mxSettings.getCustomLibraries();for(b=0;b<n.length;b++){var q=n[b];if("R"==q.substring(0,1)){var z=JSON.parse(decodeURIComponent(q.substring(1)));l[z[0]]={id:z[0],title:z[1],downloadUrl:z[2]}}}}catch(y){}this.remoteInvoke("getCustomLibraries",null,null,function(b){f.innerHTML="";if(0==b.length)f.innerHTML='<div style="text-align:center;padding-top:20px;color:gray;">'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+"</div>";else for(var d=0;d<
b.length;d++){var e=b[d];l[e.id]&&(c[e.id]=e);var g=this.addCheckbox(f,e.title,l[e.id]);(function(b,d){mxEvent.addListener(d,"change",function(){this.checked?c[b.id]=b:delete c[b.id]})})(e,g)}},mxUtils.bind(this,function(b){f.innerHTML="";var c=document.createElement("div");c.style.padding="8px";c.style.textAlign="center";mxUtils.write(c,mxResources.get("error")+": ");mxUtils.write(c,null!=b&&null!=b.message?b.message:mxResources.get("unknownError"));f.appendChild(c)}));d.appendChild(f);d=new CustomDialog(this,
-d,mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"));var b=0,d;for(d in c)null==l[d]&&(b++,mxUtils.bind(this,function(c){this.remoteInvoke("getFileContent",[c.downloadUrl],null,mxUtils.bind(this,function(d){b--;0==b&&this.spinner.stop();try{this.loadLibrary(new RemoteLibrary(this,d,c))}catch(H){this.handleError(H,mxResources.get("errorLoadingFile"))}}),mxUtils.bind(this,function(){b--;0==b&&this.spinner.stop();this.handleError(null,mxResources.get("errorLoadingFile"))}))})(c[d]));
+d,mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"));var b=0,d;for(d in c)null==l[d]&&(b++,mxUtils.bind(this,function(c){this.remoteInvoke("getFileContent",[c.downloadUrl],null,mxUtils.bind(this,function(d){b--;0==b&&this.spinner.stop();try{this.loadLibrary(new RemoteLibrary(this,d,c))}catch(E){this.handleError(E,mxResources.get("errorLoadingFile"))}}),mxUtils.bind(this,function(){b--;0==b&&this.spinner.stop();this.handleError(null,mxResources.get("errorLoadingFile"))}))})(c[d]));
for(d in l)c[d]||this.closeLibrary(new RemoteLibrary(this,null,l[d]));0==b&&this.spinner.stop()}),null,null,"https://www.diagrams.net/doc/faq/custom-libraries-confluence-cloud");this.showDialog(d.container,340,390,!0,!0,null,null,null,null,!0)};EditorUi.prototype.remoteInvokableFns={getDiagramTextContent:{isAsync:!1},getLocalStorageFile:{isAsync:!1,allowedDomains:["app.diagrams.net"]},getLocalStorageFileNames:{isAsync:!1,allowedDomains:["app.diagrams.net"]},setMigratedFlag:{isAsync:!1,allowedDomains:["app.diagrams.net"]}};
EditorUi.prototype.remoteInvokeCallbacks=[];EditorUi.prototype.remoteInvokeQueue=[];EditorUi.prototype.handleRemoteInvokeReady=function(b){this.remoteWin=b;for(var c=0;c<this.remoteInvokeQueue.length;c++)b.postMessage(this.remoteInvokeQueue[c],"*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(b){var c=b.msgMarkers,d=this.remoteInvokeCallbacks[c.callbackId];if(null==d)throw Error("No callback for "+(null!=c?c.callbackId:"null"));b.error?d.error&&d.error(b.error.errResp):
d.callback&&d.callback.apply(this,b.resp);this.remoteInvokeCallbacks[c.callbackId]=null};EditorUi.prototype.remoteInvoke=function(b,c,e,f,l){var d=!0,g=window.setTimeout(mxUtils.bind(this,function(){d=!1;l({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.timeout),k=mxUtils.bind(this,function(){window.clearTimeout(g);d&&f.apply(this,arguments)}),m=mxUtils.bind(this,function(){window.clearTimeout(g);d&&l.apply(this,arguments)});e=e||{};e.callbackId=this.remoteInvokeCallbacks.length;
this.remoteInvokeCallbacks.push({callback:k,error:m});b=JSON.stringify({event:"remoteInvoke",funtionName:b,functionArgs:c,msgMarkers:e});null!=this.remoteWin?this.remoteWin.postMessage(b,"*"):this.remoteInvokeQueue.push(b)};EditorUi.prototype.handleRemoteInvoke=function(b,c){var d=mxUtils.bind(this,function(c,d){var e={event:"remoteInvokeResponse",msgMarkers:b.msgMarkers};null!=d?e.error={errResp:d}:null!=c&&(e.resp=c);this.remoteWin.postMessage(JSON.stringify(e),"*")});try{var e=b.funtionName,f=
this.remoteInvokableFns[e];if(null!=f&&"function"===typeof this[e]){if(f.allowedDomains){for(var k=!1,l=0;l<f.allowedDomains.length;l++)if(c=="https://"+f.allowedDomains[l]){k=!0;break}if(!k){d(null,"Invalid Call: "+e+" is not allowed.");return}}var n=b.functionArgs;Array.isArray(n)||(n=[]);if(f.isAsync)n.push(function(){d(Array.prototype.slice.apply(arguments))}),n.push(function(b){d(null,b||"Unkown Error")}),this[e].apply(this,n);else{var q=this[e].apply(this,n);d([q])}}else d(null,"Invalid Call: "+
e+" is not found.")}catch(y){d(null,"Invalid Call: An error occurred, "+y.message)}};EditorUi.prototype.openDatabase=function(b,c){if(null==this.database){var d=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB;if(null!=d)try{var e=d.open("database",2);e.onupgradeneeded=function(b){try{var d=e.result;1>b.oldVersion&&d.createObjectStore("objects",{keyPath:"key"});2>b.oldVersion&&(d.createObjectStore("files",{keyPath:"title"}),d.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=
-isLocalStorage)}catch(u){null!=c&&c(u)}};e.onsuccess=mxUtils.bind(this,function(c){var d=e.result;this.database=d;EditorUi.migrateStorageFiles&&(StorageFile.migrate(d),EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(b){if(!b||"1"==urlParams.forceMigration){var c=document.createElement("iframe");c.style.display="none";c.setAttribute("src","https://www.draw.io?embed=1&proto=json&forceMigration="+
+isLocalStorage)}catch(v){null!=c&&c(v)}};e.onsuccess=mxUtils.bind(this,function(c){var d=e.result;this.database=d;EditorUi.migrateStorageFiles&&(StorageFile.migrate(d),EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(b){if(!b||"1"==urlParams.forceMigration){var c=document.createElement("iframe");c.style.display="none";c.setAttribute("src","https://www.draw.io?embed=1&proto=json&forceMigration="+
urlParams.forceMigration);document.body.appendChild(c);var d=!0,e=!1,g,f=0,k=mxUtils.bind(this,function(){e=!0;this.setDatabaseItem(".drawioMigrated3",!0);c.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),l=mxUtils.bind(this,function(){f++;m()}),m=mxUtils.bind(this,function(){try{if(f>=g.length)k();else{var b=g[f];StorageFile.getFileContent(this,b,mxUtils.bind(this,function(d){null==d||".scratchpad"==b&&d==this.emptyLibraryXml?c.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",
-funtionName:"getLocalStorageFile",functionArgs:[b]}),"*"):l()}),l)}}catch(I){console.log(I)}}),n=mxUtils.bind(this,function(b){try{this.setDatabaseItem(null,[{title:b.title,size:b.data.length,lastModified:Date.now(),type:b.isLib?"L":"F"},{title:b.title,data:b.data}],l,l,["filesInfo","files"])}catch(I){console.log(I)}});b=mxUtils.bind(this,function(b){try{if(b.source==c.contentWindow){var f={};try{f=JSON.parse(b.data)}catch(L){}"init"==f.event?(c.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),
+funtionName:"getLocalStorageFile",functionArgs:[b]}),"*"):l()}),l)}}catch(H){console.log(H)}}),n=mxUtils.bind(this,function(b){try{this.setDatabaseItem(null,[{title:b.title,size:b.data.length,lastModified:Date.now(),type:b.isLib?"L":"F"},{title:b.title,data:b.data}],l,l,["filesInfo","files"])}catch(H){console.log(H)}});b=mxUtils.bind(this,function(b){try{if(b.source==c.contentWindow){var f={};try{f=JSON.parse(b.data)}catch(L){}"init"==f.event?(c.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),
"*"),c.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFileNames"}),"*")):"remoteInvokeResponse"!=f.event||e||(d?null!=f.resp&&0<f.resp.length&&null!=f.resp[0]?(g=f.resp[0],d=!1,m()):k():null!=f.resp&&0<f.resp.length&&null!=f.resp[0]?n(f.resp[0]):l())}}catch(L){console.log(L)}});window.addEventListener("message",b)}})));b(d);d.onversionchange=function(){d.close()}});e.onerror=c;e.onblocked=function(){}}catch(m){null!=c&&c(m)}else null!=c&&c()}else b(this.database)};
EditorUi.prototype.setDatabaseItem=function(b,c,e,f,l){this.openDatabase(mxUtils.bind(this,function(d){try{l=l||"objects";Array.isArray(l)||(l=[l],b=[b],c=[c]);var g=d.transaction(l,"readwrite");g.oncomplete=e;g.onerror=f;for(d=0;d<l.length;d++)g.objectStore(l[d]).put(null!=b&&null!=b[d]?{key:b[d],data:c[d]}:c[d])}catch(t){null!=f&&f(t)}}),f)};EditorUi.prototype.removeDatabaseItem=function(b,c,e,f){this.openDatabase(mxUtils.bind(this,function(d){f=f||"objects";Array.isArray(f)||(f=[f],b=[b]);d=d.transaction(f,
-"readwrite");d.oncomplete=c;d.onerror=e;for(var g=0;g<f.length;g++)d.objectStore(f[g])["delete"](b[g])}),e)};EditorUi.prototype.getDatabaseItem=function(b,c,e,f){this.openDatabase(mxUtils.bind(this,function(d){try{f=f||"objects";var g=d.transaction([f],"readonly").objectStore(f).get(b);g.onsuccess=function(){c(g.result)};g.onerror=e}catch(u){null!=e&&e(u)}}),e)};EditorUi.prototype.getDatabaseItems=function(b,c,e){this.openDatabase(mxUtils.bind(this,function(d){try{e=e||"objects";var f=d.transaction([e],
-"readonly").objectStore(e).openCursor(IDBKeyRange.lowerBound(0)),g=[];f.onsuccess=function(c){null==c.target.result?b(g):(g.push(c.target.result.value),c.target.result["continue"]())};f.onerror=c}catch(u){null!=c&&c(u)}}),c)};EditorUi.prototype.getDatabaseItemKeys=function(b,c,e){this.openDatabase(mxUtils.bind(this,function(d){try{e=e||"objects";var f=d.transaction([e],"readonly").objectStore(e).getAllKeys();f.onsuccess=function(){b(f.result)};f.onerror=c}catch(v){null!=c&&c(v)}}),c)};EditorUi.prototype.commentsSupported=
+"readwrite");d.oncomplete=c;d.onerror=e;for(var g=0;g<f.length;g++)d.objectStore(f[g])["delete"](b[g])}),e)};EditorUi.prototype.getDatabaseItem=function(b,c,e,f){this.openDatabase(mxUtils.bind(this,function(d){try{f=f||"objects";var g=d.transaction([f],"readonly").objectStore(f).get(b);g.onsuccess=function(){c(g.result)};g.onerror=e}catch(v){null!=e&&e(v)}}),e)};EditorUi.prototype.getDatabaseItems=function(b,c,e){this.openDatabase(mxUtils.bind(this,function(d){try{e=e||"objects";var f=d.transaction([e],
+"readonly").objectStore(e).openCursor(IDBKeyRange.lowerBound(0)),g=[];f.onsuccess=function(c){null==c.target.result?b(g):(g.push(c.target.result.value),c.target.result["continue"]())};f.onerror=c}catch(v){null!=c&&c(v)}}),c)};EditorUi.prototype.getDatabaseItemKeys=function(b,c,e){this.openDatabase(mxUtils.bind(this,function(d){try{e=e||"objects";var f=d.transaction([e],"readonly").objectStore(e).getAllKeys();f.onsuccess=function(){b(f.result)};f.onerror=c}catch(u){null!=c&&c(u)}}),c)};EditorUi.prototype.commentsSupported=
function(){var b=this.getCurrentFile();return null!=b?b.commentsSupported():!1};EditorUi.prototype.commentsRefreshNeeded=function(){var b=this.getCurrentFile();return null!=b?b.commentsRefreshNeeded():!0};EditorUi.prototype.commentsSaveNeeded=function(){var b=this.getCurrentFile();return null!=b?b.commentsSaveNeeded():!1};EditorUi.prototype.getComments=function(b,c){var d=this.getCurrentFile();null!=d?d.getComments(b,c):b([])};EditorUi.prototype.addComment=function(b,c,e){var d=this.getCurrentFile();
null!=d?d.addComment(b,c,e):c(Date.now())};EditorUi.prototype.canReplyToReplies=function(){var b=this.getCurrentFile();return null!=b?b.canReplyToReplies():!0};EditorUi.prototype.canComment=function(){var b=this.getCurrentFile();return null!=b?b.canComment():!0};EditorUi.prototype.newComment=function(b,c){var d=this.getCurrentFile();return null!=d?d.newComment(b,c):new DrawioComment(this,null,b,Date.now(),Date.now(),!1,c)};EditorUi.prototype.isRevisionHistorySupported=function(){var b=this.getCurrentFile();
return null!=b&&b.isRevisionHistorySupported()};EditorUi.prototype.getRevisions=function(b,c){var d=this.getCurrentFile();null!=d&&d.getRevisions?d.getRevisions(b,c):c({message:mxResources.get("unknownError")})};EditorUi.prototype.isRevisionHistoryEnabled=function(){var b=this.getCurrentFile();return null!=b&&(b.constructor==DriveFile&&b.isEditable()||b.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.addRemoteServiceSecurityCheck=function(b){b.setRequestHeader("Content-Language",
"da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(b,c,e,f,l,n,q,t){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(b,c,e,f,l,n,q,t)};EditorUi.prototype.loadFonts=function(b){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(b)};EditorUi.prototype.createSvgDataUri=function(b){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(b)};EditorUi.prototype.embedCssFonts=function(b,c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");
-return this.editor.embedCssFonts(b,c)};EditorUi.prototype.embedExtFonts=function(b){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(b)};EditorUi.prototype.exportToCanvas=function(b,c,e,f,l,n,q,t,z,y,F,D,E,H,N,A){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(b,c,e,f,l,n,q,t,z,y,F,D,E,H,N,A)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");
+return this.editor.embedCssFonts(b,c)};EditorUi.prototype.embedExtFonts=function(b){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(b)};EditorUi.prototype.exportToCanvas=function(b,c,e,f,l,n,q,t,z,y,I,D,F,E,O,B){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(b,c,e,f,l,n,q,t,z,y,I,D,F,E,O,B)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");
return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(b,c,e,f){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");return this.editor.convertImages(b,c,e,f)};EditorUi.prototype.convertImageToDataUri=function(b,c){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(b,c)};EditorUi.prototype.base64Encode=function(b){EditorUi.logEvent("SHOULD NOT BE CALLED: base64Encode");return Editor.base64Encode(b)};EditorUi.prototype.updateCRC=
function(b,c,e,f){EditorUi.logEvent("SHOULD NOT BE CALLED: updateCRC");return Editor.updateCRC(b,c,e,f)};EditorUi.prototype.crc32=function(b){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");return Editor.crc32(b)};EditorUi.prototype.writeGraphModelToPng=function(b,c,e,f,l){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");return Editor.writeGraphModelToPng(b,c,e,f,l)};EditorUi.prototype.getLocalStorageFileNames=function(){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=
urlParams.forceMigration)return null;for(var b=[],c=0;c<localStorage.length;c++){var e=localStorage.key(c),f=localStorage.getItem(e);if(0<e.length&&(".scratchpad"==e||"."!=e.charAt(0))&&0<f.length){var l="<mxfile "===f.substring(0,8)||"<?xml"===f.substring(0,5)||"\x3c!--[if IE]>"===f.substring(0,12),f="<mxlibrary>"===f.substring(0,11);(l||f)&&b.push(e)}}return b};EditorUi.prototype.getLocalStorageFile=function(b){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;
var c=localStorage.getItem(b);return{title:b,data:c,isLib:"<mxlibrary>"===c.substring(0,11)}};EditorUi.prototype.setMigratedFlag=function(){localStorage.setItem(".localStorageMigrated","1")}})();
-var CommentsWindow=function(b,c,e,f,n,l){function q(){for(var b=D.getElementsByTagName("div"),c=0,d=0;d<b.length;d++)"none"!=b[d].style.display&&b[d].parentNode==D&&c++;E.style.display=0==c?"block":"none"}function d(b,c,d,e){function f(){c.removeChild(l);c.removeChild(m);k.style.display="block";g.style.display="block"}z={div:c,comment:b,saveCallback:d,deleteOnCancel:e};var g=c.querySelector(".geCommentTxt"),k=c.querySelector(".geCommentActionsList"),l=document.createElement("textarea");l.className=
+var CommentsWindow=function(b,c,e,f,n,l){function q(){for(var b=D.getElementsByTagName("div"),c=0,d=0;d<b.length;d++)"none"!=b[d].style.display&&b[d].parentNode==D&&c++;F.style.display=0==c?"block":"none"}function d(b,c,d,e){function f(){c.removeChild(l);c.removeChild(m);k.style.display="block";g.style.display="block"}z={div:c,comment:b,saveCallback:d,deleteOnCancel:e};var g=c.querySelector(".geCommentTxt"),k=c.querySelector(".geCommentActionsList"),l=document.createElement("textarea");l.className=
"geCommentEditTxtArea";l.style.minHeight=g.offsetHeight+"px";l.value=b.content;c.insertBefore(l,g);var m=document.createElement("div");m.className="geCommentEditBtns";var n=mxUtils.button(mxResources.get("cancel"),function(){e?(c.parentNode.removeChild(c),q()):f();z=null});n.className="geCommentEditBtn";m.appendChild(n);var p=mxUtils.button(mxResources.get("save"),function(){g.innerHTML="";b.content=l.value;mxUtils.write(g,b.content);f();d(b);z=null});mxEvent.addListener(l,"keydown",mxUtils.bind(this,
function(b){mxEvent.isConsumed(b)||((mxEvent.isControlDown(b)||mxClient.IS_MAC&&mxEvent.isMetaDown(b))&&13==b.keyCode?(p.click(),mxEvent.consume(b)):27==b.keyCode&&(n.click(),mxEvent.consume(b)))}));p.focus();p.className="geCommentEditBtn gePrimaryBtn";m.appendChild(p);c.insertBefore(m,g);k.style.display="none";g.style.display="none";l.focus()}function k(c,d){d.innerHTML="";var e=new Date(c.modifiedDate),f=b.timeSince(e);null==f&&(f=mxResources.get("lessThanAMinute"));mxUtils.write(d,mxResources.get("timeAgo",
-[f],"{1} ago"));d.setAttribute("title",e.toLocaleDateString()+" "+e.toLocaleTimeString())}function g(b){var c=document.createElement("img");c.className="geCommentBusyImg";c.src=IMAGE_PATH+"/spin.gif";b.appendChild(c);b.busyImg=c}function p(b){b.style.border="1px solid red";b.removeChild(b.busyImg)}function m(b){b.style.border="";b.removeChild(b.busyImg)}function v(c,e,f,l,n){function y(b,d,e){var f=document.createElement("li");f.className="geCommentAction";var g=document.createElement("a");g.className=
-"geCommentActionLnk";mxUtils.write(g,b);f.appendChild(g);mxEvent.addListener(g,"click",function(b){d(b,c);b.preventDefault();mxEvent.consume(b)});T.appendChild(f);e&&(f.style.display="none")}function K(){function b(c){d.push(e);if(null!=c.replies)for(var f=0;f<c.replies.length;f++)e=e.nextSibling,b(c.replies[f])}var d=[],e=x;b(c);return{pdiv:e,replies:d}}function P(e,f,k,n,q){function t(){g(z);c.addReply(A,function(b){A.id=b;c.replies.push(A);m(z);k&&k()},function(c){u();p(z);b.handleError(c,null,
-null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},n,q)}function u(){d(A,z,function(b){t()},!0)}var x=K().pdiv,A=b.newComment(e,b.getCurrentUser());A.pCommentId=c.id;null==c.replies&&(c.replies=[]);var z=v(A,c.replies,x,l+1);f?u():t()}if(n||!c.isResolved){E.style.display="none";var x=document.createElement("div");x.className="geCommentContainer";x.setAttribute("data-commentId",c.id);x.style.marginLeft=20*l+5+"px";c.isResolved&&!Editor.isDarkMode()&&(x.style.backgroundColor="ghostWhite");
-var C=document.createElement("div");C.className="geCommentHeader";var G=document.createElement("img");G.className="geCommentUserImg";G.src=c.user.pictureUrl||Editor.userImage;C.appendChild(G);G=document.createElement("div");G.className="geCommentHeaderTxt";C.appendChild(G);var I=document.createElement("div");I.className="geCommentUsername";mxUtils.write(I,c.user.displayName||"");G.appendChild(I);I=document.createElement("div");I.className="geCommentDate";I.setAttribute("data-commentId",c.id);k(c,
-I);G.appendChild(I);x.appendChild(C);C=document.createElement("div");C.className="geCommentTxt";mxUtils.write(C,c.content||"");x.appendChild(C);c.isLocked&&(x.style.opacity="0.5");C=document.createElement("div");C.className="geCommentActions";var T=document.createElement("ul");T.className="geCommentActionsList";C.appendChild(T);u||c.isLocked||0!=l&&!t||y(mxResources.get("reply"),function(){P("",!0)},c.isResolved);G=b.getCurrentUser();null==G||G.id!=c.user.id||u||c.isLocked||(y(mxResources.get("edit"),
+[f],"{1} ago"));d.setAttribute("title",e.toLocaleDateString()+" "+e.toLocaleTimeString())}function g(b){var c=document.createElement("img");c.className="geCommentBusyImg";c.src=IMAGE_PATH+"/spin.gif";b.appendChild(c);b.busyImg=c}function p(b){b.style.border="1px solid red";b.removeChild(b.busyImg)}function m(b){b.style.border="";b.removeChild(b.busyImg)}function u(c,e,f,l,n){function y(b,d,e){var f=document.createElement("li");f.className="geCommentAction";var g=document.createElement("a");g.className=
+"geCommentActionLnk";mxUtils.write(g,b);f.appendChild(g);mxEvent.addListener(g,"click",function(b){d(b,c);b.preventDefault();mxEvent.consume(b)});V.appendChild(f);e&&(f.style.display="none")}function M(){function b(c){d.push(e);if(null!=c.replies)for(var f=0;f<c.replies.length;f++)e=e.nextSibling,b(c.replies[f])}var d=[],e=x;b(c);return{pdiv:e,replies:d}}function P(e,f,k,n,q){function t(){g(y);c.addReply(B,function(b){B.id=b;c.replies.push(B);m(y);k&&k()},function(c){x();p(y);b.handleError(c,null,
+null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},n,q)}function x(){d(B,y,function(b){t()},!0)}var v=M().pdiv,B=b.newComment(e,b.getCurrentUser());B.pCommentId=c.id;null==c.replies&&(c.replies=[]);var y=u(B,c.replies,v,l+1);f?x():t()}if(n||!c.isResolved){F.style.display="none";var x=document.createElement("div");x.className="geCommentContainer";x.setAttribute("data-commentId",c.id);x.style.marginLeft=20*l+5+"px";c.isResolved&&!Editor.isDarkMode()&&(x.style.backgroundColor="ghostWhite");
+var C=document.createElement("div");C.className="geCommentHeader";var G=document.createElement("img");G.className="geCommentUserImg";G.src=c.user.pictureUrl||Editor.userImage;C.appendChild(G);G=document.createElement("div");G.className="geCommentHeaderTxt";C.appendChild(G);var H=document.createElement("div");H.className="geCommentUsername";mxUtils.write(H,c.user.displayName||"");G.appendChild(H);H=document.createElement("div");H.className="geCommentDate";H.setAttribute("data-commentId",c.id);k(c,
+H);G.appendChild(H);x.appendChild(C);C=document.createElement("div");C.className="geCommentTxt";mxUtils.write(C,c.content||"");x.appendChild(C);c.isLocked&&(x.style.opacity="0.5");C=document.createElement("div");C.className="geCommentActions";var V=document.createElement("ul");V.className="geCommentActionsList";C.appendChild(V);v||c.isLocked||0!=l&&!t||y(mxResources.get("reply"),function(){P("",!0)},c.isResolved);G=b.getCurrentUser();null==G||G.id!=c.user.id||v||c.isLocked||(y(mxResources.get("edit"),
function(){function e(){d(c,x,function(){g(x);c.editComment(c.content,function(){m(x)},function(c){p(x);e();b.handleError(c,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})}e()},c.isResolved),y(mxResources.get("delete"),function(){b.confirm(mxResources.get("areYouSure"),function(){g(x);c.deleteComment(function(b){if(!0===b){b=x.querySelector(".geCommentTxt");b.innerHTML="";mxUtils.write(b,mxResources.get("msgDeleted"));var d=x.querySelectorAll(".geCommentAction");for(b=
-0;b<d.length;b++)d[b].parentNode.removeChild(d[b]);m(x);x.style.opacity="0.5"}else{d=K(c).replies;for(b=0;b<d.length;b++)D.removeChild(d[b]);for(b=0;b<e.length;b++)if(e[b]==c){e.splice(b,1);break}E.style.display=0==D.getElementsByTagName("div").length?"block":"none"}},function(c){p(x);b.handleError(c,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},c.isResolved));u||c.isLocked||0!=l||y(c.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(b){function d(){var d=
-b.target;d.innerHTML="";c.isResolved=!c.isResolved;mxUtils.write(d,c.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var e=c.isResolved?"none":"",f=K(c).replies,g=Editor.isDarkMode()?"transparent":c.isResolved?"ghostWhite":"white",k=0;k<f.length;k++){f[k].style.backgroundColor=g;for(var l=f[k].querySelectorAll(".geCommentAction"),m=0;m<l.length;m++)l[m]!=d.parentNode&&(l[m].style.display=e);A||(f[k].style.display="none")}q()}c.isResolved?P(mxResources.get("reOpened")+": ",!0,
-d,!1,!0):P(mxResources.get("markedAsResolved"),!1,d,!0)});x.appendChild(C);null!=f?D.insertBefore(x,f.nextSibling):D.appendChild(x);for(f=0;null!=c.replies&&f<c.replies.length;f++)C=c.replies[f],C.isResolved=c.isResolved,v(C,c.replies,null,l+1,n);null!=z&&(z.comment.id==c.id?(n=c.content,c.content=z.comment.content,d(c,x,z.saveCallback,z.deleteOnCancel),c.content=n):null==z.comment.id&&z.comment.pCommentId==c.id&&(D.appendChild(z.div),d(z.comment,z.div,z.saveCallback,z.deleteOnCancel)));return x}}
-var u=!b.canComment(),t=b.canReplyToReplies(),z=null,y=document.createElement("div");y.className="geCommentsWin";y.style.background=Editor.isDarkMode()?Dialog.backdropColor:"whiteSmoke";var F=EditorUi.compactUi?"26px":"30px",D=document.createElement("div");D.className="geCommentsList";D.style.backgroundColor=Editor.isDarkMode()?Dialog.backdropColor:"whiteSmoke";D.style.bottom=parseInt(F)+7+"px";y.appendChild(D);var E=document.createElement("span");E.style.cssText="display:none;padding-top:10px;text-align:center;";
-mxUtils.write(E,mxResources.get("noCommentsFound"));var H=document.createElement("div");H.className="geToolbarContainer geCommentsToolbar";H.style.height=F;H.style.padding=EditorUi.compactUi?"4px 0px 3px 0px":"1px";H.style.backgroundColor=Editor.isDarkMode()?Dialog.backdropColor:"whiteSmoke";F=document.createElement("a");F.className="geButton";if(!u){var N=F.cloneNode();N.innerHTML='<div class="geSprite geSprite-plus" style="display:inline-block;"></div>';N.setAttribute("title",mxResources.get("create")+
-"...");mxEvent.addListener(N,"click",function(c){function e(){d(f,k,function(c){g(k);b.addComment(c,function(b){c.id=b;G.push(c);m(k)},function(c){p(k);e();b.handleError(c,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})},!0)}var f=b.newComment("",b.getCurrentUser()),k=v(f,G,null,0);e();c.preventDefault();mxEvent.consume(c)});H.appendChild(N)}N=F.cloneNode();N.innerHTML='<img src="'+IMAGE_PATH+'/check.png" style="width: 16px; padding: 2px;">';N.setAttribute("title",mxResources.get("showResolved"));
-var A=!1;Editor.isDarkMode()&&(N.style.filter="invert(100%)");mxEvent.addListener(N,"click",function(b){this.className=(A=!A)?"geButton geCheckedBtn":"geButton";I();b.preventDefault();mxEvent.consume(b)});H.appendChild(N);b.commentsRefreshNeeded()&&(N=F.cloneNode(),N.innerHTML='<img src="'+IMAGE_PATH+'/update16.png" style="width: 16px; padding: 2px;">',N.setAttribute("title",mxResources.get("refresh")),Editor.isDarkMode()&&(N.style.filter="invert(100%)"),mxEvent.addListener(N,"click",function(b){I();
-b.preventDefault();mxEvent.consume(b)}),H.appendChild(N));b.commentsSaveNeeded()&&(F=F.cloneNode(),F.innerHTML='<img src="'+IMAGE_PATH+'/save.png" style="width: 20px; padding: 2px;">',F.setAttribute("title",mxResources.get("save")),Editor.isDarkMode()&&(F.style.filter="invert(100%)"),mxEvent.addListener(F,"click",function(b){l();b.preventDefault();mxEvent.consume(b)}),H.appendChild(F));y.appendChild(H);var G=[],I=mxUtils.bind(this,function(){this.hasError=!1;if(null!=z)try{z.div=z.div.cloneNode(!0);
+0;b<d.length;b++)d[b].parentNode.removeChild(d[b]);m(x);x.style.opacity="0.5"}else{d=M(c).replies;for(b=0;b<d.length;b++)D.removeChild(d[b]);for(b=0;b<e.length;b++)if(e[b]==c){e.splice(b,1);break}F.style.display=0==D.getElementsByTagName("div").length?"block":"none"}},function(c){p(x);b.handleError(c,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},c.isResolved));v||c.isLocked||0!=l||y(c.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(b){function d(){var d=
+b.target;d.innerHTML="";c.isResolved=!c.isResolved;mxUtils.write(d,c.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var e=c.isResolved?"none":"",f=M(c).replies,g=Editor.isDarkMode()?"transparent":c.isResolved?"ghostWhite":"white",k=0;k<f.length;k++){f[k].style.backgroundColor=g;for(var l=f[k].querySelectorAll(".geCommentAction"),m=0;m<l.length;m++)l[m]!=d.parentNode&&(l[m].style.display=e);B||(f[k].style.display="none")}q()}c.isResolved?P(mxResources.get("reOpened")+": ",!0,
+d,!1,!0):P(mxResources.get("markedAsResolved"),!1,d,!0)});x.appendChild(C);null!=f?D.insertBefore(x,f.nextSibling):D.appendChild(x);for(f=0;null!=c.replies&&f<c.replies.length;f++)C=c.replies[f],C.isResolved=c.isResolved,u(C,c.replies,null,l+1,n);null!=z&&(z.comment.id==c.id?(n=c.content,c.content=z.comment.content,d(c,x,z.saveCallback,z.deleteOnCancel),c.content=n):null==z.comment.id&&z.comment.pCommentId==c.id&&(D.appendChild(z.div),d(z.comment,z.div,z.saveCallback,z.deleteOnCancel)));return x}}
+var v=!b.canComment(),t=b.canReplyToReplies(),z=null,y=document.createElement("div");y.className="geCommentsWin";y.style.background=Editor.isDarkMode()?Dialog.backdropColor:"whiteSmoke";var I=EditorUi.compactUi?"26px":"30px",D=document.createElement("div");D.className="geCommentsList";D.style.backgroundColor=Editor.isDarkMode()?Dialog.backdropColor:"whiteSmoke";D.style.bottom=parseInt(I)+7+"px";y.appendChild(D);var F=document.createElement("span");F.style.cssText="display:none;padding-top:10px;text-align:center;";
+mxUtils.write(F,mxResources.get("noCommentsFound"));var E=document.createElement("div");E.className="geToolbarContainer geCommentsToolbar";E.style.height=I;E.style.padding=EditorUi.compactUi?"4px 0px 3px 0px":"1px";E.style.backgroundColor=Editor.isDarkMode()?Dialog.backdropColor:"whiteSmoke";I=document.createElement("a");I.className="geButton";if(!v){var O=I.cloneNode();O.innerHTML='<div class="geSprite geSprite-plus" style="display:inline-block;"></div>';O.setAttribute("title",mxResources.get("create")+
+"...");mxEvent.addListener(O,"click",function(c){function e(){d(f,k,function(c){g(k);b.addComment(c,function(b){c.id=b;G.push(c);m(k)},function(c){p(k);e();b.handleError(c,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})},!0)}var f=b.newComment("",b.getCurrentUser()),k=u(f,G,null,0);e();c.preventDefault();mxEvent.consume(c)});E.appendChild(O)}O=I.cloneNode();O.innerHTML='<img src="'+IMAGE_PATH+'/check.png" style="width: 16px; padding: 2px;">';O.setAttribute("title",mxResources.get("showResolved"));
+var B=!1;Editor.isDarkMode()&&(O.style.filter="invert(100%)");mxEvent.addListener(O,"click",function(b){this.className=(B=!B)?"geButton geCheckedBtn":"geButton";H();b.preventDefault();mxEvent.consume(b)});E.appendChild(O);b.commentsRefreshNeeded()&&(O=I.cloneNode(),O.innerHTML='<img src="'+IMAGE_PATH+'/update16.png" style="width: 16px; padding: 2px;">',O.setAttribute("title",mxResources.get("refresh")),Editor.isDarkMode()&&(O.style.filter="invert(100%)"),mxEvent.addListener(O,"click",function(b){H();
+b.preventDefault();mxEvent.consume(b)}),E.appendChild(O));b.commentsSaveNeeded()&&(I=I.cloneNode(),I.innerHTML='<img src="'+IMAGE_PATH+'/save.png" style="width: 20px; padding: 2px;">',I.setAttribute("title",mxResources.get("save")),Editor.isDarkMode()&&(I.style.filter="invert(100%)"),mxEvent.addListener(I,"click",function(b){l();b.preventDefault();mxEvent.consume(b)}),E.appendChild(I));y.appendChild(E);var G=[],H=mxUtils.bind(this,function(){this.hasError=!1;if(null!=z)try{z.div=z.div.cloneNode(!0);
var c=z.div.querySelector(".geCommentEditTxtArea"),e=z.div.querySelector(".geCommentEditBtns");z.comment.content=c.value;c.parentNode.removeChild(c);e.parentNode.removeChild(e)}catch(P){b.handleError(P)}D.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH+'/spin.gif" valign="middle"> '+mxUtils.htmlEntities(mxResources.get("loading"))+"...</div>";t=b.canReplyToReplies();b.commentsSupported()?b.getComments(function(b){function c(b){if(null!=b){b.sort(function(b,c){return new Date(b.modifiedDate)-
-new Date(c.modifiedDate)});for(var d=0;d<b.length;d++)c(b[d].replies)}}b.sort(function(b,c){return new Date(b.modifiedDate)-new Date(c.modifiedDate)});D.innerHTML="";D.appendChild(E);E.style.display="block";G=b;for(b=0;b<G.length;b++)c(G[b].replies),v(G[b],G,null,0,A);null!=z&&null==z.comment.id&&null==z.comment.pCommentId&&(D.appendChild(z.div),d(z.comment,z.div,z.saveCallback,z.deleteOnCancel))},mxUtils.bind(this,function(b){D.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(b&&b.message?
-": "+b.message:""));this.hasError=!0})):D.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))});I();this.refreshComments=I;H=mxUtils.bind(this,function(){function b(c){var e=d[c.id];if(null!=e)for(k(c,e),e=0;null!=c.replies&&e<c.replies.length;e++)b(c.replies[e])}if(this.window.isVisible()){for(var c=D.querySelectorAll(".geCommentDate"),d={},e=0;e<c.length;e++){var f=c[e];d[f.getAttribute("data-commentId")]=f}for(e=0;e<G.length;e++)b(G[e])}});setInterval(H,6E4);this.refreshCommentsTime=H;this.window=
+new Date(c.modifiedDate)});for(var d=0;d<b.length;d++)c(b[d].replies)}}b.sort(function(b,c){return new Date(b.modifiedDate)-new Date(c.modifiedDate)});D.innerHTML="";D.appendChild(F);F.style.display="block";G=b;for(b=0;b<G.length;b++)c(G[b].replies),u(G[b],G,null,0,B);null!=z&&null==z.comment.id&&null==z.comment.pCommentId&&(D.appendChild(z.div),d(z.comment,z.div,z.saveCallback,z.deleteOnCancel))},mxUtils.bind(this,function(b){D.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(b&&b.message?
+": "+b.message:""));this.hasError=!0})):D.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))});H();this.refreshComments=H;E=mxUtils.bind(this,function(){function b(c){var e=d[c.id];if(null!=e)for(k(c,e),e=0;null!=c.replies&&e<c.replies.length;e++)b(c.replies[e])}if(this.window.isVisible()){for(var c=D.querySelectorAll(".geCommentDate"),d={},e=0;e<c.length;e++){var f=c[e];d[f.getAttribute("data-commentId")]=f}for(e=0;e<G.length;e++)b(G[e])}});setInterval(E,6E4);this.refreshCommentsTime=E;this.window=
new mxWindow(mxResources.get("comments"),y,c,e,f,n,!0,!0);this.window.minimumSize=new mxRectangle(0,0,300,200);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));this.window.setLocation=function(b,c){var d=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;b=Math.max(0,Math.min(b,(window.innerWidth||
document.body.clientWidth||document.documentElement.clientWidth)-this.table.clientWidth));c=Math.max(0,Math.min(c,d-this.table.clientHeight-48));this.getX()==b&&this.getY()==c||mxWindow.prototype.setLocation.apply(this,arguments)};var L=mxUtils.bind(this,function(){var b=this.window.getX(),c=this.window.getY();this.window.setLocation(b,c)});mxEvent.addListener(window,"resize",L);this.destroy=function(){mxEvent.removeListener(window,"resize",L);this.window.destroy()}},ConfirmDialog=function(b,c,e,
-f,n,l,q,d,k,g,p){var m=document.createElement("div");m.style.textAlign="center";p=null!=p?p:44;var v=document.createElement("div");v.style.padding="6px";v.style.overflow="auto";v.style.maxHeight=p+"px";v.style.lineHeight="1.2em";mxUtils.write(v,c);m.appendChild(v);null!=g&&(v=document.createElement("div"),v.style.padding="6px 0 6px 0",c=document.createElement("img"),c.setAttribute("src",g),v.appendChild(c),m.appendChild(v));g=document.createElement("div");g.style.textAlign="center";g.style.whiteSpace=
-"nowrap";var u=document.createElement("input");u.setAttribute("type","checkbox");l=mxUtils.button(l||mxResources.get("cancel"),function(){b.hideDialog();null!=f&&f(u.checked)});l.className="geBtn";null!=d&&(l.innerHTML=d+"<br>"+l.innerHTML,l.style.paddingBottom="8px",l.style.paddingTop="8px",l.style.height="auto",l.style.width="40%");b.editor.cancelFirst&&g.appendChild(l);var t=mxUtils.button(n||mxResources.get("ok"),function(){b.hideDialog();null!=e&&e(u.checked)});g.appendChild(t);null!=q?(t.innerHTML=
-q+"<br>"+t.innerHTML+"<br>",t.style.paddingBottom="8px",t.style.paddingTop="8px",t.style.height="auto",t.className="geBtn",t.style.width="40%"):t.className="geBtn gePrimaryBtn";b.editor.cancelFirst||g.appendChild(l);m.appendChild(g);k?(g.style.marginTop="10px",v=document.createElement("p"),v.style.marginTop="20px",v.style.marginBottom="0px",v.appendChild(u),n=document.createElement("span"),mxUtils.write(n," "+mxResources.get("rememberThisSetting")),v.appendChild(n),m.appendChild(v),mxEvent.addListener(n,
-"click",function(b){u.checked=!u.checked;mxEvent.consume(b)})):g.style.marginTop="12px";this.init=function(){t.focus()};this.container=m};function DiagramPage(b,c){this.node=b;null!=c?this.node.setAttribute("id",c):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.getId=function(){return this.node.getAttribute("id")};DiagramPage.prototype.getName=function(){return this.node.getAttribute("name")};
+f,n,l,q,d,k,g,p){var m=document.createElement("div");m.style.textAlign="center";p=null!=p?p:44;var u=document.createElement("div");u.style.padding="6px";u.style.overflow="auto";u.style.maxHeight=p+"px";u.style.lineHeight="1.2em";mxUtils.write(u,c);m.appendChild(u);null!=g&&(u=document.createElement("div"),u.style.padding="6px 0 6px 0",c=document.createElement("img"),c.setAttribute("src",g),u.appendChild(c),m.appendChild(u));g=document.createElement("div");g.style.textAlign="center";g.style.whiteSpace=
+"nowrap";var v=document.createElement("input");v.setAttribute("type","checkbox");l=mxUtils.button(l||mxResources.get("cancel"),function(){b.hideDialog();null!=f&&f(v.checked)});l.className="geBtn";null!=d&&(l.innerHTML=d+"<br>"+l.innerHTML,l.style.paddingBottom="8px",l.style.paddingTop="8px",l.style.height="auto",l.style.width="40%");b.editor.cancelFirst&&g.appendChild(l);var t=mxUtils.button(n||mxResources.get("ok"),function(){b.hideDialog();null!=e&&e(v.checked)});g.appendChild(t);null!=q?(t.innerHTML=
+q+"<br>"+t.innerHTML+"<br>",t.style.paddingBottom="8px",t.style.paddingTop="8px",t.style.height="auto",t.className="geBtn",t.style.width="40%"):t.className="geBtn gePrimaryBtn";b.editor.cancelFirst||g.appendChild(l);m.appendChild(g);k?(g.style.marginTop="10px",u=document.createElement("p"),u.style.marginTop="20px",u.style.marginBottom="0px",u.appendChild(v),n=document.createElement("span"),mxUtils.write(n," "+mxResources.get("rememberThisSetting")),u.appendChild(n),m.appendChild(u),mxEvent.addListener(n,
+"click",function(b){v.checked=!v.checked;mxEvent.consume(b)})):g.style.marginTop="12px";this.init=function(){t.focus()};this.container=m};function DiagramPage(b,c){this.node=b;null!=c?this.node.setAttribute("id",c):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.getId=function(){return this.node.getAttribute("id")};DiagramPage.prototype.getName=function(){return this.node.getAttribute("name")};
DiagramPage.prototype.setName=function(b){null==b?this.node.removeAttribute("name"):this.node.setAttribute("name",b)};function RenamePage(b,c,e){this.ui=b;this.page=c;this.previous=this.name=e}RenamePage.prototype.execute=function(){var b=this.page.getName();this.page.setName(this.previous);this.name=this.previous;this.previous=b;this.ui.editor.graph.updatePlaceholders();this.ui.editor.fireEvent(new mxEventObject("pageRenamed"))};
function MovePage(b,c,e){this.ui=b;this.oldIndex=c;this.newIndex=e}MovePage.prototype.execute=function(){this.ui.pages.splice(this.newIndex,0,this.ui.pages.splice(this.oldIndex,1)[0]);var b=this.oldIndex;this.oldIndex=this.newIndex;this.newIndex=b;this.ui.editor.graph.updatePlaceholders();this.ui.editor.fireEvent(new mxEventObject("pageMoved"))};
function SelectPage(b,c,e){this.ui=b;this.previousPage=this.page=c;this.neverShown=!0;null!=c&&(this.neverShown=null==c.viewState,this.ui.updatePageRoot(c),null!=e&&(c.viewState=e,this.neverShown=!1))}
@@ -3917,38 +3917,38 @@ c,e,q,d,k),mxUtils.bind(this,function(b){return this.isTreeEdge(b)}))};Graph.pro
!1;null!=b&&(c="1"==t.getCurrentCellStyle(b).treeMoving);return c}function e(b){var c=!1;null!=b&&(b=z.getParent(b),c=t.view.getState(b),c="tree"==(null!=c?c.style:t.getCellStyle(b)).containerType);return c}function q(b){var c=!1;null!=b&&(b=z.getParent(b),c=t.view.getState(b),t.view.getState(b),c=null!=(null!=c?c.style:t.getCellStyle(b)).childLayout);return c}function d(b){b=t.view.getState(b);if(null!=b){var c=t.getIncomingTreeEdges(b.cell);if(0<c.length&&(c=t.view.getState(c[0]),null!=c&&(c=c.absolutePoints,
null!=c&&0<c.length&&(c=c[c.length-1],null!=c)))){if(c.y==b.y&&Math.abs(c.x-b.getCenterX())<b.width/2)return mxConstants.DIRECTION_SOUTH;if(c.y==b.y+b.height&&Math.abs(c.x-b.getCenterX())<b.width/2)return mxConstants.DIRECTION_NORTH;if(c.x>b.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function k(b,c){c=null!=c?c:!0;t.model.beginUpdate();try{var e=t.model.getParent(b),f=t.getIncomingTreeEdges(b),g=t.cloneCells([f[0],b]);t.model.setTerminal(g[0],t.model.getTerminal(f[0],
!0),!0);var k=d(b),l=e.geometry;k==mxConstants.DIRECTION_SOUTH||k==mxConstants.DIRECTION_NORTH?g[1].geometry.x+=c?b.geometry.width+10:-g[1].geometry.width-10:g[1].geometry.y+=c?b.geometry.height+10:-g[1].geometry.height-10;t.view.currentRoot!=e&&(g[1].geometry.x-=l.x,g[1].geometry.y-=l.y);var m=t.view.getState(b),n=t.view.scale;if(null!=m){var p=mxRectangle.fromRectangle(m);k==mxConstants.DIRECTION_SOUTH||k==mxConstants.DIRECTION_NORTH?p.x+=(c?b.geometry.width+10:-g[1].geometry.width-10)*n:p.y+=(c?
-b.geometry.height+10:-g[1].geometry.height-10)*n;var q=t.getOutgoingTreeEdges(t.model.getTerminal(f[0],!0));if(null!=q){for(var u=k==mxConstants.DIRECTION_SOUTH||k==mxConstants.DIRECTION_NORTH,v=l=f=0;v<q.length;v++){var A=t.model.getTerminal(q[v],!1);if(k==d(A)){var z=t.view.getState(A);A!=b&&null!=z&&(u&&c!=z.getCenterX()<m.getCenterX()||!u&&c!=z.getCenterY()<m.getCenterY())&&mxUtils.intersects(p,z)&&(f=10+Math.max(f,(Math.min(p.x+p.width,z.x+z.width)-Math.max(p.x,z.x))/n),l=10+Math.max(l,(Math.min(p.y+
-p.height,z.y+z.height)-Math.max(p.y,z.y))/n))}}u?l=0:f=0;for(v=0;v<q.length;v++)if(A=t.model.getTerminal(q[v],!1),k==d(A)&&(z=t.view.getState(A),A!=b&&null!=z&&(u&&c!=z.getCenterX()<m.getCenterX()||!u&&c!=z.getCenterY()<m.getCenterY()))){var y=[];t.traverse(z.cell,!0,function(b,c){var d=null!=c&&t.isTreeEdge(c);d&&y.push(c);(null==c||d)&&y.push(b);return null==c||d});t.moveCells(y,(c?1:-1)*f,(c?1:-1)*l)}}}return t.addCells(g,e)}finally{t.model.endUpdate()}}function g(b){t.model.beginUpdate();try{var c=
+b.geometry.height+10:-g[1].geometry.height-10)*n;var q=t.getOutgoingTreeEdges(t.model.getTerminal(f[0],!0));if(null!=q){for(var u=k==mxConstants.DIRECTION_SOUTH||k==mxConstants.DIRECTION_NORTH,v=l=f=0;v<q.length;v++){var B=t.model.getTerminal(q[v],!1);if(k==d(B)){var y=t.view.getState(B);B!=b&&null!=y&&(u&&c!=y.getCenterX()<m.getCenterX()||!u&&c!=y.getCenterY()<m.getCenterY())&&mxUtils.intersects(p,y)&&(f=10+Math.max(f,(Math.min(p.x+p.width,y.x+y.width)-Math.max(p.x,y.x))/n),l=10+Math.max(l,(Math.min(p.y+
+p.height,y.y+y.height)-Math.max(p.y,y.y))/n))}}u?l=0:f=0;for(v=0;v<q.length;v++)if(B=t.model.getTerminal(q[v],!1),k==d(B)&&(y=t.view.getState(B),B!=b&&null!=y&&(u&&c!=y.getCenterX()<m.getCenterX()||!u&&c!=y.getCenterY()<m.getCenterY()))){var z=[];t.traverse(y.cell,!0,function(b,c){var d=null!=c&&t.isTreeEdge(c);d&&z.push(c);(null==c||d)&&z.push(b);return null==c||d});t.moveCells(z,(c?1:-1)*f,(c?1:-1)*l)}}}return t.addCells(g,e)}finally{t.model.endUpdate()}}function g(b){t.model.beginUpdate();try{var c=
d(b),e=t.getIncomingTreeEdges(b),f=t.cloneCells([e[0],b]);t.model.setTerminal(e[0],f[1],!1);t.model.setTerminal(f[0],f[1],!0);t.model.setTerminal(f[0],b,!1);var g=t.model.getParent(b),k=g.geometry,l=[];t.view.currentRoot!=g&&(f[1].geometry.x-=k.x,f[1].geometry.y-=k.y);t.traverse(b,!0,function(b,c){var d=null!=c&&t.isTreeEdge(c);d&&l.push(c);(null==c||d)&&l.push(b);return null==c||d});var m=b.geometry.width+40,n=b.geometry.height+40;c==mxConstants.DIRECTION_SOUTH?m=0:c==mxConstants.DIRECTION_NORTH?
(m=0,n=-n):c==mxConstants.DIRECTION_WEST?(m=-m,n=0):c==mxConstants.DIRECTION_EAST&&(n=0);t.moveCells(l,m,n);return t.addCells(f,g)}finally{t.model.endUpdate()}}function p(b,c){t.model.beginUpdate();try{var e=t.model.getParent(b),f=t.getIncomingTreeEdges(b),g=d(b);0==f.length&&(f=[t.createEdge(e,null,"",null,null,t.createCurrentEdgeStyle())],g=c);var k=t.cloneCells([f[0],b]);t.model.setTerminal(k[0],b,!0);if(null==t.model.getTerminal(k[0],!1)){t.model.setTerminal(k[0],k[1],!1);var l=t.getCellStyle(k[1]).newEdgeStyle;
-if(null!=l)try{var m=JSON.parse(l),n;for(n in m)t.setCellStyles(n,m[n],[k[0]]),"edgeStyle"==n&&"elbowEdgeStyle"==m[n]&&t.setCellStyles("elbow",g==mxConstants.DIRECTION_SOUTH||g==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",[k[0]])}catch(ua){}}var f=t.getOutgoingTreeEdges(b),p=e.geometry,l=[];t.view.currentRoot==e&&(p=new mxRectangle);for(m=0;m<f.length;m++){var q=t.model.getTerminal(f[m],!1);null!=q&&l.push(q)}var u=t.view.getBounds(l),v=t.view.translate,A=t.view.scale;g==mxConstants.DIRECTION_SOUTH?
-(k[1].geometry.x=null==u?b.geometry.x+(b.geometry.width-k[1].geometry.width)/2:(u.x+u.width)/A-v.x-p.x+10,k[1].geometry.y+=k[1].geometry.height-p.y+40):g==mxConstants.DIRECTION_NORTH?(k[1].geometry.x=null==u?b.geometry.x+(b.geometry.width-k[1].geometry.width)/2:(u.x+u.width)/A-v.x+-p.x+10,k[1].geometry.y-=k[1].geometry.height+p.y+40):(k[1].geometry.x=g==mxConstants.DIRECTION_WEST?k[1].geometry.x-(k[1].geometry.width+p.x+40):k[1].geometry.x+(k[1].geometry.width-p.x+40),k[1].geometry.y=null==u?b.geometry.y+
-(b.geometry.height-k[1].geometry.height)/2:(u.y+u.height)/A-v.y+-p.y+10);return t.addCells(k,e)}finally{t.model.endUpdate()}}function m(b,c,d){b=t.getOutgoingTreeEdges(b);d=t.view.getState(d);var e=[];if(null!=d&&null!=b){for(var f=0;f<b.length;f++){var g=t.view.getState(t.model.getTerminal(b[f],!1));null!=g&&(!c&&Math.min(g.x+g.width,d.x+d.width)>=Math.max(g.x,d.x)||c&&Math.min(g.y+g.height,d.y+d.height)>=Math.max(g.y,d.y))&&e.push(g)}e.sort(function(b,d){return c?b.x+b.width-d.x-d.width:b.y+b.height-
-d.y-d.height})}return e}function v(b,c){var e=d(b),f=c==mxConstants.DIRECTION_EAST||c==mxConstants.DIRECTION_WEST;(e==mxConstants.DIRECTION_EAST||e==mxConstants.DIRECTION_WEST)==f&&e!=c?u.actions.get("selectParent").funct():e==c?(f=t.getOutgoingTreeEdges(b),null!=f&&0<f.length&&t.setSelectionCell(t.model.getTerminal(f[0],!1))):(e=t.getIncomingTreeEdges(b),null!=e&&0<e.length&&(f=m(t.model.getTerminal(e[0],!0),f,b),e=t.view.getState(b),null!=e&&(e=mxUtils.indexOf(f,e),0<=e&&(e+=c==mxConstants.DIRECTION_NORTH||
-c==mxConstants.DIRECTION_WEST?-1:1,0<=e&&e<=f.length-1&&t.setSelectionCell(f[e].cell)))))}var u=this,t=u.editor.graph,z=t.getModel(),y=u.menus.createPopupMenu;u.menus.createPopupMenu=function(c,d,e){y.apply(this,arguments);if(1==t.getSelectionCount()){d=t.getSelectionCell();var f=t.getOutgoingTreeEdges(d);c.addSeparator();0<f.length&&(b(t.getSelectionCell())&&this.addMenuItems(c,["selectChildren"],null,e),this.addMenuItems(c,["selectDescendants"],null,e));b(t.getSelectionCell())?(c.addSeparator(),
-0<t.getIncomingTreeEdges(d).length&&this.addMenuItems(c,["selectSiblings","selectParent"],null,e)):0<t.model.getEdgeCount(d)&&this.addMenuItems(c,["selectConnections"],null,e)}};u.actions.addAction("selectChildren",function(){if(t.isEnabled()&&1==t.getSelectionCount()){var b=t.getSelectionCell(),b=t.getOutgoingTreeEdges(b);if(null!=b){for(var c=[],d=0;d<b.length;d++)c.push(t.model.getTerminal(b[d],!1));t.setSelectionCells(c)}}},null,null,"Alt+Shift+X");u.actions.addAction("selectSiblings",function(){if(t.isEnabled()&&
-1==t.getSelectionCount()){var b=t.getSelectionCell(),b=t.getIncomingTreeEdges(b);if(null!=b&&0<b.length&&(b=t.getOutgoingTreeEdges(t.model.getTerminal(b[0],!0)),null!=b)){for(var c=[],d=0;d<b.length;d++)c.push(t.model.getTerminal(b[d],!1));t.setSelectionCells(c)}}},null,null,"Alt+Shift+S");u.actions.addAction("selectParent",function(){if(t.isEnabled()&&1==t.getSelectionCount()){var b=t.getSelectionCell(),b=t.getIncomingTreeEdges(b);null!=b&&0<b.length&&t.setSelectionCell(t.model.getTerminal(b[0],
-!0))}},null,null,"Alt+Shift+P");u.actions.addAction("selectDescendants",function(b,c){var d=t.getSelectionCell();if(t.isEnabled()&&t.model.isVertex(d)){if(null!=c&&mxEvent.isAltDown(c))t.setSelectionCells(t.model.getTreeEdges(d,null==c||!mxEvent.isShiftDown(c),null==c||!mxEvent.isControlDown(c)));else{var e=[];t.traverse(d,!0,function(b,d){var f=null!=d&&t.isTreeEdge(d);f&&e.push(d);null!=d&&!f||null!=c&&mxEvent.isShiftDown(c)||e.push(b);return null==d||f})}t.setSelectionCells(e)}},null,null,"Alt+Shift+D");
-var F=t.removeCells;t.removeCells=function(c,d){d=null!=d?d:!0;null==c&&(c=this.getDeletableCells(this.getSelectionCells()));d&&(c=this.getDeletableCells(this.addAllEdges(c)));for(var f=[],g=0;g<c.length;g++){var k=c[g];z.isEdge(k)&&e(k)&&(f.push(k),k=z.getTerminal(k,!1));if(b(k)){var l=[];t.traverse(k,!0,function(b,c){var d=null!=c&&t.isTreeEdge(c);d&&l.push(c);(null==c||d)&&l.push(b);return null==c||d});0<l.length&&(f=f.concat(l),k=t.getIncomingTreeEdges(c[g]),c=c.concat(k))}else null!=k&&f.push(c[g])}c=
-f;return F.apply(this,arguments)};u.hoverIcons.getStateAt=function(c,d,e){return b(c.cell)?null:this.graph.view.getState(this.graph.getCellAt(d,e))};var D=t.duplicateCells;t.duplicateCells=function(c,d){c=null!=c?c:this.getSelectionCells();for(var e=c.slice(0),f=0;f<e.length;f++){var g=t.view.getState(e[f]);if(null!=g&&b(g.cell))for(var k=t.getIncomingTreeEdges(g.cell),g=0;g<k.length;g++)mxUtils.remove(k[g],c)}this.model.beginUpdate();try{var l=D.call(this,c,d);if(l.length==c.length)for(f=0;f<c.length;f++)if(b(c[f])){var m=
-t.getIncomingTreeEdges(l[f]),k=t.getIncomingTreeEdges(c[f]);if(0==m.length&&0<k.length){var n=this.cloneCell(k[0]);this.addEdge(n,t.getDefaultParent(),this.model.getTerminal(k[0],!0),l[f])}}}finally{this.model.endUpdate()}return l};var E=t.moveCells;t.moveCells=function(c,d,e,f,g,k,l){var m=null;this.model.beginUpdate();try{var n=g,p=this.getCurrentCellStyle(g);if(null!=c&&b(g)&&"1"==mxUtils.getValue(p,"treeFolding","0")){for(var q=0;q<c.length;q++)if(b(c[q])||t.model.isEdge(c[q])&&null==t.model.getTerminal(c[q],
-!0)){g=t.model.getParent(c[q]);break}if(null!=n&&g!=n&&null!=this.view.getState(c[0])){var u=t.getIncomingTreeEdges(c[0]);if(0<u.length){var v=t.view.getState(t.model.getTerminal(u[0],!0));if(null!=v){var A=t.view.getState(n);null!=A&&(d=(A.getCenterX()-v.getCenterX())/t.view.scale,e=(A.getCenterY()-v.getCenterY())/t.view.scale)}}}}m=E.apply(this,arguments);if(null!=m&&null!=c&&m.length==c.length)for(q=0;q<m.length;q++)if(this.model.isEdge(m[q]))b(n)&&0>mxUtils.indexOf(m,this.model.getTerminal(m[q],
-!0))&&this.model.setTerminal(m[q],n,!0);else if(b(c[q])&&(u=t.getIncomingTreeEdges(c[q]),0<u.length))if(!f)b(n)&&0>mxUtils.indexOf(c,this.model.getTerminal(u[0],!0))&&this.model.setTerminal(u[0],n,!0);else if(0==t.getIncomingTreeEdges(m[q]).length){p=n;if(null==p||p==t.model.getParent(c[q]))p=t.model.getTerminal(u[0],!0);f=this.cloneCell(u[0]);this.addEdge(f,t.getDefaultParent(),p,m[q])}}finally{this.model.endUpdate()}return m};if(null!=u.sidebar){var H=u.sidebar.dropAndConnect;u.sidebar.dropAndConnect=
-function(c,d,e,f){var g=t.model,k=null;g.beginUpdate();try{if(k=H.apply(this,arguments),b(c))for(var l=0;l<k.length;l++)if(g.isEdge(k[l])&&null==g.getTerminal(k[l],!0)){g.setTerminal(k[l],c,!0);var m=t.getCellGeometry(k[l]);m.points=null;null!=m.getTerminalPoint(!0)&&m.setTerminalPoint(null,!0)}}finally{g.endUpdate()}return k}}var N={88:u.actions.get("selectChildren"),84:u.actions.get("selectSubtree"),80:u.actions.get("selectParent"),83:u.actions.get("selectSiblings")},A=u.onKeyDown;u.onKeyDown=function(c){try{if(t.isEnabled()&&
-!t.isEditing()&&b(t.getSelectionCell())&&1==t.getSelectionCount()){var d=null;0<t.getIncomingTreeEdges(t.getSelectionCell()).length&&(9==c.which?d=mxEvent.isShiftDown(c)?g(t.getSelectionCell()):p(t.getSelectionCell()):13==c.which&&(d=k(t.getSelectionCell(),!mxEvent.isShiftDown(c))));if(null!=d&&0<d.length)1==d.length&&t.model.isEdge(d[0])?t.setSelectionCell(t.model.getTerminal(d[0],!1)):t.setSelectionCell(d[d.length-1]),null!=u.hoverIcons&&u.hoverIcons.update(t.view.getState(t.getSelectionCell())),
-t.startEditingAtCell(t.getSelectionCell()),mxEvent.consume(c);else if(mxEvent.isAltDown(c)&&mxEvent.isShiftDown(c)){var e=N[c.keyCode];null!=e&&(e.funct(c),mxEvent.consume(c))}else 37==c.keyCode?(v(t.getSelectionCell(),mxConstants.DIRECTION_WEST),mxEvent.consume(c)):38==c.keyCode?(v(t.getSelectionCell(),mxConstants.DIRECTION_NORTH),mxEvent.consume(c)):39==c.keyCode?(v(t.getSelectionCell(),mxConstants.DIRECTION_EAST),mxEvent.consume(c)):40==c.keyCode&&(v(t.getSelectionCell(),mxConstants.DIRECTION_SOUTH),
-mxEvent.consume(c))}}catch(ga){u.handleError(ga)}mxEvent.isConsumed(c)||A.apply(this,arguments)};var G=t.connectVertex;t.connectVertex=function(c,e,f,l,m,n,q){var u=t.getIncomingTreeEdges(c);if(b(c)){var v=d(c),A=v==mxConstants.DIRECTION_EAST||v==mxConstants.DIRECTION_WEST,x=e==mxConstants.DIRECTION_EAST||e==mxConstants.DIRECTION_WEST;return v==e||0==u.length?p(c,e):A==x?g(c):k(c,e!=mxConstants.DIRECTION_NORTH&&e!=mxConstants.DIRECTION_WEST)}return G.apply(this,arguments)};t.getSubtree=function(d){var e=
-[d];!c(d)&&!b(d)||q(d)||t.traverse(d,!0,function(b,c){var d=null!=c&&t.isTreeEdge(c);d&&0>mxUtils.indexOf(e,c)&&e.push(c);(null==c||d)&&0>mxUtils.indexOf(e,b)&&e.push(b);return null==c||d});return e};var I=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){I.apply(this,arguments);(c(this.state.cell)||b(this.state.cell))&&!q(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&(this.moveHandle=mxUtils.createImage(Editor.moveImage),this.moveHandle.setAttribute("title",
+if(null!=l)try{var m=JSON.parse(l),n;for(n in m)t.setCellStyles(n,m[n],[k[0]]),"edgeStyle"==n&&"elbowEdgeStyle"==m[n]&&t.setCellStyles("elbow",g==mxConstants.DIRECTION_SOUTH||g==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",[k[0]])}catch(qa){}}var f=t.getOutgoingTreeEdges(b),p=e.geometry,l=[];t.view.currentRoot==e&&(p=new mxRectangle);for(m=0;m<f.length;m++){var q=t.model.getTerminal(f[m],!1);null!=q&&l.push(q)}var u=t.view.getBounds(l),v=t.view.translate,B=t.view.scale;g==mxConstants.DIRECTION_SOUTH?
+(k[1].geometry.x=null==u?b.geometry.x+(b.geometry.width-k[1].geometry.width)/2:(u.x+u.width)/B-v.x-p.x+10,k[1].geometry.y+=k[1].geometry.height-p.y+40):g==mxConstants.DIRECTION_NORTH?(k[1].geometry.x=null==u?b.geometry.x+(b.geometry.width-k[1].geometry.width)/2:(u.x+u.width)/B-v.x+-p.x+10,k[1].geometry.y-=k[1].geometry.height+p.y+40):(k[1].geometry.x=g==mxConstants.DIRECTION_WEST?k[1].geometry.x-(k[1].geometry.width+p.x+40):k[1].geometry.x+(k[1].geometry.width-p.x+40),k[1].geometry.y=null==u?b.geometry.y+
+(b.geometry.height-k[1].geometry.height)/2:(u.y+u.height)/B-v.y+-p.y+10);return t.addCells(k,e)}finally{t.model.endUpdate()}}function m(b,c,d){b=t.getOutgoingTreeEdges(b);d=t.view.getState(d);var e=[];if(null!=d&&null!=b){for(var f=0;f<b.length;f++){var g=t.view.getState(t.model.getTerminal(b[f],!1));null!=g&&(!c&&Math.min(g.x+g.width,d.x+d.width)>=Math.max(g.x,d.x)||c&&Math.min(g.y+g.height,d.y+d.height)>=Math.max(g.y,d.y))&&e.push(g)}e.sort(function(b,d){return c?b.x+b.width-d.x-d.width:b.y+b.height-
+d.y-d.height})}return e}function u(b,c){var e=d(b),f=c==mxConstants.DIRECTION_EAST||c==mxConstants.DIRECTION_WEST;(e==mxConstants.DIRECTION_EAST||e==mxConstants.DIRECTION_WEST)==f&&e!=c?v.actions.get("selectParent").funct():e==c?(f=t.getOutgoingTreeEdges(b),null!=f&&0<f.length&&t.setSelectionCell(t.model.getTerminal(f[0],!1))):(e=t.getIncomingTreeEdges(b),null!=e&&0<e.length&&(f=m(t.model.getTerminal(e[0],!0),f,b),e=t.view.getState(b),null!=e&&(e=mxUtils.indexOf(f,e),0<=e&&(e+=c==mxConstants.DIRECTION_NORTH||
+c==mxConstants.DIRECTION_WEST?-1:1,0<=e&&e<=f.length-1&&t.setSelectionCell(f[e].cell)))))}var v=this,t=v.editor.graph,z=t.getModel(),y=v.menus.createPopupMenu;v.menus.createPopupMenu=function(c,d,e){y.apply(this,arguments);if(1==t.getSelectionCount()){d=t.getSelectionCell();var f=t.getOutgoingTreeEdges(d);c.addSeparator();0<f.length&&(b(t.getSelectionCell())&&this.addMenuItems(c,["selectChildren"],null,e),this.addMenuItems(c,["selectDescendants"],null,e));b(t.getSelectionCell())?(c.addSeparator(),
+0<t.getIncomingTreeEdges(d).length&&this.addMenuItems(c,["selectSiblings","selectParent"],null,e)):0<t.model.getEdgeCount(d)&&this.addMenuItems(c,["selectConnections"],null,e)}};v.actions.addAction("selectChildren",function(){if(t.isEnabled()&&1==t.getSelectionCount()){var b=t.getSelectionCell(),b=t.getOutgoingTreeEdges(b);if(null!=b){for(var c=[],d=0;d<b.length;d++)c.push(t.model.getTerminal(b[d],!1));t.setSelectionCells(c)}}},null,null,"Alt+Shift+X");v.actions.addAction("selectSiblings",function(){if(t.isEnabled()&&
+1==t.getSelectionCount()){var b=t.getSelectionCell(),b=t.getIncomingTreeEdges(b);if(null!=b&&0<b.length&&(b=t.getOutgoingTreeEdges(t.model.getTerminal(b[0],!0)),null!=b)){for(var c=[],d=0;d<b.length;d++)c.push(t.model.getTerminal(b[d],!1));t.setSelectionCells(c)}}},null,null,"Alt+Shift+S");v.actions.addAction("selectParent",function(){if(t.isEnabled()&&1==t.getSelectionCount()){var b=t.getSelectionCell(),b=t.getIncomingTreeEdges(b);null!=b&&0<b.length&&t.setSelectionCell(t.model.getTerminal(b[0],
+!0))}},null,null,"Alt+Shift+P");v.actions.addAction("selectDescendants",function(b,c){var d=t.getSelectionCell();if(t.isEnabled()&&t.model.isVertex(d)){if(null!=c&&mxEvent.isAltDown(c))t.setSelectionCells(t.model.getTreeEdges(d,null==c||!mxEvent.isShiftDown(c),null==c||!mxEvent.isControlDown(c)));else{var e=[];t.traverse(d,!0,function(b,d){var f=null!=d&&t.isTreeEdge(d);f&&e.push(d);null!=d&&!f||null!=c&&mxEvent.isShiftDown(c)||e.push(b);return null==d||f})}t.setSelectionCells(e)}},null,null,"Alt+Shift+D");
+var I=t.removeCells;t.removeCells=function(c,d){d=null!=d?d:!0;null==c&&(c=this.getDeletableCells(this.getSelectionCells()));d&&(c=this.getDeletableCells(this.addAllEdges(c)));for(var f=[],g=0;g<c.length;g++){var k=c[g];z.isEdge(k)&&e(k)&&(f.push(k),k=z.getTerminal(k,!1));if(b(k)){var l=[];t.traverse(k,!0,function(b,c){var d=null!=c&&t.isTreeEdge(c);d&&l.push(c);(null==c||d)&&l.push(b);return null==c||d});0<l.length&&(f=f.concat(l),k=t.getIncomingTreeEdges(c[g]),c=c.concat(k))}else null!=k&&f.push(c[g])}c=
+f;return I.apply(this,arguments)};v.hoverIcons.getStateAt=function(c,d,e){return b(c.cell)?null:this.graph.view.getState(this.graph.getCellAt(d,e))};var D=t.duplicateCells;t.duplicateCells=function(c,d){c=null!=c?c:this.getSelectionCells();for(var e=c.slice(0),f=0;f<e.length;f++){var g=t.view.getState(e[f]);if(null!=g&&b(g.cell))for(var k=t.getIncomingTreeEdges(g.cell),g=0;g<k.length;g++)mxUtils.remove(k[g],c)}this.model.beginUpdate();try{var l=D.call(this,c,d);if(l.length==c.length)for(f=0;f<c.length;f++)if(b(c[f])){var m=
+t.getIncomingTreeEdges(l[f]),k=t.getIncomingTreeEdges(c[f]);if(0==m.length&&0<k.length){var n=this.cloneCell(k[0]);this.addEdge(n,t.getDefaultParent(),this.model.getTerminal(k[0],!0),l[f])}}}finally{this.model.endUpdate()}return l};var F=t.moveCells;t.moveCells=function(c,d,e,f,g,k,l){var m=null;this.model.beginUpdate();try{var n=g,p=this.getCurrentCellStyle(g);if(null!=c&&b(g)&&"1"==mxUtils.getValue(p,"treeFolding","0")){for(var q=0;q<c.length;q++)if(b(c[q])||t.model.isEdge(c[q])&&null==t.model.getTerminal(c[q],
+!0)){g=t.model.getParent(c[q]);break}if(null!=n&&g!=n&&null!=this.view.getState(c[0])){var u=t.getIncomingTreeEdges(c[0]);if(0<u.length){var v=t.view.getState(t.model.getTerminal(u[0],!0));if(null!=v){var x=t.view.getState(n);null!=x&&(d=(x.getCenterX()-v.getCenterX())/t.view.scale,e=(x.getCenterY()-v.getCenterY())/t.view.scale)}}}}m=F.apply(this,arguments);if(null!=m&&null!=c&&m.length==c.length)for(q=0;q<m.length;q++)if(this.model.isEdge(m[q]))b(n)&&0>mxUtils.indexOf(m,this.model.getTerminal(m[q],
+!0))&&this.model.setTerminal(m[q],n,!0);else if(b(c[q])&&(u=t.getIncomingTreeEdges(c[q]),0<u.length))if(!f)b(n)&&0>mxUtils.indexOf(c,this.model.getTerminal(u[0],!0))&&this.model.setTerminal(u[0],n,!0);else if(0==t.getIncomingTreeEdges(m[q]).length){p=n;if(null==p||p==t.model.getParent(c[q]))p=t.model.getTerminal(u[0],!0);f=this.cloneCell(u[0]);this.addEdge(f,t.getDefaultParent(),p,m[q])}}finally{this.model.endUpdate()}return m};if(null!=v.sidebar){var E=v.sidebar.dropAndConnect;v.sidebar.dropAndConnect=
+function(c,d,e,f){var g=t.model,k=null;g.beginUpdate();try{if(k=E.apply(this,arguments),b(c))for(var l=0;l<k.length;l++)if(g.isEdge(k[l])&&null==g.getTerminal(k[l],!0)){g.setTerminal(k[l],c,!0);var m=t.getCellGeometry(k[l]);m.points=null;null!=m.getTerminalPoint(!0)&&m.setTerminalPoint(null,!0)}}finally{g.endUpdate()}return k}}var O={88:v.actions.get("selectChildren"),84:v.actions.get("selectSubtree"),80:v.actions.get("selectParent"),83:v.actions.get("selectSiblings")},B=v.onKeyDown;v.onKeyDown=function(c){try{if(t.isEnabled()&&
+!t.isEditing()&&b(t.getSelectionCell())&&1==t.getSelectionCount()){var d=null;0<t.getIncomingTreeEdges(t.getSelectionCell()).length&&(9==c.which?d=mxEvent.isShiftDown(c)?g(t.getSelectionCell()):p(t.getSelectionCell()):13==c.which&&(d=k(t.getSelectionCell(),!mxEvent.isShiftDown(c))));if(null!=d&&0<d.length)1==d.length&&t.model.isEdge(d[0])?t.setSelectionCell(t.model.getTerminal(d[0],!1)):t.setSelectionCell(d[d.length-1]),null!=v.hoverIcons&&v.hoverIcons.update(t.view.getState(t.getSelectionCell())),
+t.startEditingAtCell(t.getSelectionCell()),mxEvent.consume(c);else if(mxEvent.isAltDown(c)&&mxEvent.isShiftDown(c)){var e=O[c.keyCode];null!=e&&(e.funct(c),mxEvent.consume(c))}else 37==c.keyCode?(u(t.getSelectionCell(),mxConstants.DIRECTION_WEST),mxEvent.consume(c)):38==c.keyCode?(u(t.getSelectionCell(),mxConstants.DIRECTION_NORTH),mxEvent.consume(c)):39==c.keyCode?(u(t.getSelectionCell(),mxConstants.DIRECTION_EAST),mxEvent.consume(c)):40==c.keyCode&&(u(t.getSelectionCell(),mxConstants.DIRECTION_SOUTH),
+mxEvent.consume(c))}}catch(ga){v.handleError(ga)}mxEvent.isConsumed(c)||B.apply(this,arguments)};var G=t.connectVertex;t.connectVertex=function(c,e,f,l,m,n,q){var u=t.getIncomingTreeEdges(c);if(b(c)){var v=d(c),x=v==mxConstants.DIRECTION_EAST||v==mxConstants.DIRECTION_WEST,B=e==mxConstants.DIRECTION_EAST||e==mxConstants.DIRECTION_WEST;return v==e||0==u.length?p(c,e):x==B?g(c):k(c,e!=mxConstants.DIRECTION_NORTH&&e!=mxConstants.DIRECTION_WEST)}return G.apply(this,arguments)};t.getSubtree=function(d){var e=
+[d];!c(d)&&!b(d)||q(d)||t.traverse(d,!0,function(b,c){var d=null!=c&&t.isTreeEdge(c);d&&0>mxUtils.indexOf(e,c)&&e.push(c);(null==c||d)&&0>mxUtils.indexOf(e,b)&&e.push(b);return null==c||d});return e};var H=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){H.apply(this,arguments);(c(this.state.cell)||b(this.state.cell))&&!q(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&(this.moveHandle=mxUtils.createImage(Editor.moveImage),this.moveHandle.setAttribute("title",
"Move Subtree"),this.moveHandle.style.position="absolute",this.moveHandle.style.cursor="pointer",this.moveHandle.style.width="24px",this.moveHandle.style.height="24px",this.graph.container.appendChild(this.moveHandle),mxEvent.addGestureListeners(this.moveHandle,mxUtils.bind(this,function(b){this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(b),mxEvent.getClientY(b),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=mxEvent.isMouseEvent(b);
-this.graph.isMouseDown=!0;u.hoverIcons.reset();mxEvent.consume(b)})))};var L=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){L.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.left=this.state.x+this.state.width+(40>this.state.width?10:0)+2+"px",this.moveHandle.style.top=this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var M=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(b){M.apply(this,
-arguments);null!=this.moveHandle&&(this.moveHandle.style.display=b?"":"none")};var K=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(b,c){K.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)}};if("undefined"!==typeof Sidebar){var e=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var b=e.apply(this,arguments),c=this.graph;return b.concat([this.addEntry("tree container",
+this.graph.isMouseDown=!0;v.hoverIcons.reset();mxEvent.consume(b)})))};var L=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){L.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.left=this.state.x+this.state.width+(40>this.state.width?10:0)+2+"px",this.moveHandle.style.top=this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var N=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(b){N.apply(this,
+arguments);null!=this.moveHandle&&(this.moveHandle.style.display=b?"":"none")};var M=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(b,c){M.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)}};if("undefined"!==typeof Sidebar){var e=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var b=e.apply(this,arguments),c=this.graph;return b.concat([this.addEntry("tree container",
function(){var b=new mxCell("Tree Container",new mxGeometry(0,0,400,320),"swimlane;startSize=20;horizontal=1;containerType=tree;");b.vertex=!0;var c=new mxCell("Parent",new mxGeometry(140,60,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');c.vertex=!0;var d=new mxCell("Child",new mxGeometry(140,140,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');
d.vertex=!0;var e=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;startArrow=none;endArrow=none;rounded=0;");e.geometry.relative=!0;e.edge=!0;c.insertEdge(e,!0);d.insertEdge(e,!1);b.insert(e);b.insert(c);b.insert(d);return sb.createVertexTemplateFromCells([b],b.geometry.width,b.geometry.height,b.value)}),this.addEntry("tree mindmap mindmaps central idea branch topic",function(){var b=new mxCell("Mindmap",new mxGeometry(0,0,420,126),"swimlane;startSize=20;horizontal=1;containerType=tree;");
b.vertex=!0;var c=new mxCell("Central Idea",new mxGeometry(160,60,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1};');c.vertex=!0;var d=new mxCell("Topic",new mxGeometry(320,40,80,20),'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1};');
d.vertex=!0;var e=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;");e.geometry.relative=!0;e.edge=!0;c.insertEdge(e,!0);d.insertEdge(e,!1);var f=new mxCell("Branch",new mxGeometry(320,80,72,26),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1};');
f.vertex=!0;var n=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;");n.geometry.relative=!0;n.edge=!0;c.insertEdge(n,!0);f.insertEdge(n,!1);var m=new mxCell("Topic",new mxGeometry(20,40,80,20),'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1};');
-m.vertex=!0;var v=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;");v.geometry.relative=!0;v.edge=!0;c.insertEdge(v,!0);m.insertEdge(v,!1);var u=new mxCell("Branch",new mxGeometry(20,80,72,26),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1};');
-u.vertex=!0;var t=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;");t.geometry.relative=!0;t.edge=!0;c.insertEdge(t,!0);u.insertEdge(t,!1);b.insert(e);b.insert(n);b.insert(v);b.insert(t);b.insert(c);b.insert(d);b.insert(f);b.insert(m);b.insert(u);return sb.createVertexTemplateFromCells([b],b.geometry.width,b.geometry.height,b.value)}),this.addEntry("tree mindmap mindmaps central idea",function(){var b=new mxCell("Central Idea",
+m.vertex=!0;var u=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;");u.geometry.relative=!0;u.edge=!0;c.insertEdge(u,!0);m.insertEdge(u,!1);var v=new mxCell("Branch",new mxGeometry(20,80,72,26),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1};');
+v.vertex=!0;var t=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;");t.geometry.relative=!0;t.edge=!0;c.insertEdge(t,!0);v.insertEdge(t,!1);b.insert(e);b.insert(n);b.insert(u);b.insert(t);b.insert(c);b.insert(d);b.insert(f);b.insert(m);b.insert(v);return sb.createVertexTemplateFromCells([b],b.geometry.width,b.geometry.height,b.value)}),this.addEntry("tree mindmap mindmaps central idea",function(){var b=new mxCell("Central Idea",
new mxGeometry(0,0,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1};treeFolding=1;treeMoving=1;');b.vertex=!0;return sb.createVertexTemplateFromCells([b],b.geometry.width,b.geometry.height,b.value)}),this.addEntry("tree mindmap mindmaps branch",function(){var b=new mxCell("Branch",new mxGeometry(0,0,80,20),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;recursiveResize=0;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1};');
b.vertex=!0;var c=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;");c.geometry.setTerminalPoint(new mxPoint(-40,40),!0);c.geometry.relative=!0;c.edge=!0;b.insertEdge(c,!1);return sb.createVertexTemplateFromCells([b,c],b.geometry.width,b.geometry.height,b.value)}),this.addEntry("tree mindmap mindmaps sub topic",function(){var b=new mxCell("Sub Topic",new mxGeometry(0,0,72,26),'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1};');
b.vertex=!0;var c=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;");c.geometry.setTerminalPoint(new mxPoint(-40,40),!0);c.geometry.relative=!0;c.edge=!0;b.insertEdge(c,!1);return sb.createVertexTemplateFromCells([b,c],b.geometry.width,b.geometry.height,b.value)}),this.addEntry("tree orgchart organization division",function(){var b=new mxCell("Orgchart",new mxGeometry(0,0,280,220),'swimlane;startSize=20;horizontal=1;containerType=tree;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');
@@ -3968,7 +3968,7 @@ c.appendChild(e),mxEvent.addListener(e,"click",b.actions.get("newLibrary").funct
"click",b.actions.get("openLibrary").funct)):(e=d("newLibrary",mxResources.get("newLibrary")),e.style.boxSizing="border-box",e.style.paddingRight="6px",e.style.paddingLeft="6px",e.style.height="32px",e.style.left="0",e=d("openLibraryFrom",mxResources.get("openLibraryFrom")),e.style.borderLeft="1px solid lightgray",e.style.boxSizing="border-box",e.style.paddingRight="6px",e.style.paddingLeft="6px",e.style.height="32px",e.style.left="50%");c.appendChild(b.sidebar.container);c.style.overflow="hidden"}
function e(b,d){if(EditorUi.windowed){var e=b.editor.graph;e.popupMenuHandler.hideMenu();if(null==b.sidebarWindow){var f=Math.min(e.container.clientWidth-10,218),g=Math.min(e.container.clientHeight-40,650);b.sidebarWindow=new l(b,mxResources.get("shapes"),"1"==urlParams.sketch&&"1"!=urlParams.embedInline?66:10,"1"==urlParams.sketch&&"1"!=urlParams.embedInline?Math.max(30,(e.container.clientHeight-g)/2):56,f-6,g-6,function(d){c(b,d)});b.sidebarWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,
function(){b.sidebarWindow.window.fit()}));b.sidebarWindow.window.minimumSize=new mxRectangle(0,0,90,90);b.sidebarWindow.window.setVisible(!0);b.getLocalData("sidebar",function(c){b.sidebar.showEntries(c,null,!0)});b.restoreLibraries()}else b.sidebarWindow.window.setVisible(null!=d?d:!b.sidebarWindow.window.isVisible())}else null==b.sidebarElt&&(b.sidebarElt=n(),c(b,b.sidebarElt),b.sidebarElt.style.border="none",b.sidebarElt.style.width="210px",b.sidebarElt.style.borderRight="1px solid gray"),e=b.diagramContainer.parentNode,
-null!=b.sidebarElt.parentNode?(b.sidebarElt.parentNode.removeChild(b.sidebarElt),e.style.left="0px"):(e.parentNode.appendChild(b.sidebarElt),e.style.left=b.sidebarElt.style.width)}if("1"==urlParams.lightbox||"0"==urlParams.chrome||"undefined"===typeof window.Format||"undefined"===typeof window.Menus)window.uiTheme=null;else{var f=0;try{f=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}catch(A){}var n=function(){var b=document.createElement("div");b.className="geSidebarContainer";
+null!=b.sidebarElt.parentNode?(b.sidebarElt.parentNode.removeChild(b.sidebarElt),e.style.left="0px"):(e.parentNode.appendChild(b.sidebarElt),e.style.left=b.sidebarElt.style.width)}if("1"==urlParams.lightbox||"0"==urlParams.chrome||"undefined"===typeof window.Format||"undefined"===typeof window.Menus)window.uiTheme=null;else{var f=0;try{f=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}catch(B){}var n=function(){var b=document.createElement("div");b.className="geSidebarContainer";
b.style.position="absolute";b.style.width="100%";b.style.height="100%";b.style.border="1px solid whiteSmoke";b.style.overflowX="hidden";b.style.overflowY="auto";return b},l=function(b,c,d,e,f,g,k){var l=n();k(l);this.window=new mxWindow(c,l,d,e,f,g,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.window.setLocation=function(b,c){var d=window.innerHeight||document.documentElement.clientHeight||
document.body.clientHeight,e=this.table.firstChild.firstChild.firstChild;b=Math.max(0,Math.min(b,(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-e.clientWidth-2));c=Math.max(0,Math.min(c,d-e.clientHeight-2));this.getX()==b&&this.getY()==c||mxWindow.prototype.setLocation.apply(this,arguments)};mxClient.IS_SF&&(this.window.div.onselectstart=mxUtils.bind(this,function(c){null==c&&(c=window.event);return null!=c&&b.isSelectionAllowed(c)}))};Editor.checkmarkImage=Graph.createSvgImage(22,
18,'<path transform="translate(4 0)" d="M7.181,15.007a1,1,0,0,1-.793-0.391L3.222,10.5A1,1,0,1,1,4.808,9.274L7.132,12.3l6.044-8.86A1,1,0,1,1,14.83,4.569l-6.823,10a1,1,0,0,1-.8.437H7.181Z" fill="#29b6f2"/>').src;mxWindow.prototype.closeImage=Graph.createSvgImage(18,10,'<path d="M 5 1 L 13 9 M 13 1 L 5 9" stroke="#C0C0C0" stroke-width="2"/>').src;mxWindow.prototype.minimizeImage=Graph.createSvgImage(14,10,'<path d="M 3 7 L 7 3 L 11 7" stroke="#C0C0C0" stroke-width="2" fill="none"/>').src;mxWindow.prototype.normalizeImage=
@@ -3990,20 +3990,20 @@ null==q.parentNode&&document.getElementsByTagName("head")[0].appendChild(q):null
(mxClient.IS_IOS?"html input[type=checkbox], html input[type=radio] { height:12px; }":"")+("1"==urlParams.sketch?"a.geStatus > div { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }":"")};var d=document.createElement("style");d.type="text/css";d.innerHTML=Editor.createMinimalCss();document.getElementsByTagName("head")[0].appendChild(d);Editor.prototype.isChromelessView=function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var k=EditorUi.prototype.updateTabContainer;
EditorUi.prototype.updateTabContainer=function(){null!=this.tabContainer&&(this.tabContainer.style.right="70px",this.diagramContainer.style.bottom="1"==urlParams.sketch?"0px":this.tabContainerHeight+"px");k.apply(this,arguments)};var g=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){g.apply(this,arguments);this.menus.get("save").setEnabled(null!=this.getCurrentFile()||"1"==urlParams.embed)};var p=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(b,
c){null!=c.shortcut&&900>f&&!mxClient.IS_IOS?b.firstChild.nextSibling.setAttribute("title",c.shortcut):p.apply(this,arguments)};var m=App.prototype.updateUserElement;App.prototype.updateUserElement=function(){m.apply(this,arguments);if(null!=this.userElement){var b=this.userElement;b.style.cssText="position:relative;margin-right:4px;cursor:pointer;display:"+b.style.display;b.className="geToolbarButton";b.innerHTML="";b.style.backgroundImage="url("+Editor.userImage+")";b.style.backgroundPosition="center center";
-b.style.backgroundRepeat="no-repeat";b.style.backgroundSize="24px 24px";b.style.height="24px";b.style.width="24px";b.style.cssFloat="right";b.setAttribute("title",mxResources.get("changeUser"));"none"!=b.style.display&&(b.style.display="inline-block")}};var v=App.prototype.updateButtonContainer;App.prototype.updateButtonContainer=function(){v.apply(this,arguments);if(null!=this.shareButton){var b=this.shareButton;b.style.cssText="display:inline-block;position:relative;box-sizing:border-box;margin-right:4px;cursor:pointer;";
+b.style.backgroundRepeat="no-repeat";b.style.backgroundSize="24px 24px";b.style.height="24px";b.style.width="24px";b.style.cssFloat="right";b.setAttribute("title",mxResources.get("changeUser"));"none"!=b.style.display&&(b.style.display="inline-block")}};var u=App.prototype.updateButtonContainer;App.prototype.updateButtonContainer=function(){u.apply(this,arguments);if(null!=this.shareButton){var b=this.shareButton;b.style.cssText="display:inline-block;position:relative;box-sizing:border-box;margin-right:4px;cursor:pointer;";
b.className="geToolbarButton";b.innerHTML="";b.style.backgroundImage="url("+Editor.shareImage+")";b.style.backgroundPosition="center center";b.style.backgroundRepeat="no-repeat";b.style.backgroundSize="24px 24px";b.style.height="24px";b.style.width="24px";"1"==urlParams.sketch&&(this.shareButton.style.display="none")}null!=this.buttonContainer&&(this.buttonContainer.style.marginTop="-2px",this.buttonContainer.style.paddingTop="4px")};EditorUi.prototype.addEmbedButtons=function(){if(null!=this.buttonContainer&&
"1"!=urlParams.embedInline){var b=document.createElement("div");b.style.display="inline-block";b.style.position="relative";b.style.marginTop="6px";b.style.marginRight="4px";var c=document.createElement("a");c.className="geMenuItem gePrimaryBtn";c.style.marginLeft="8px";c.style.padding="6px";if("1"==urlParams.noSaveBtn){if("0"!=urlParams.saveAndExit){var d="1"==urlParams.publishClose?mxResources.get("publish"):mxResources.get("saveAndExit");mxUtils.write(c,d);c.setAttribute("title",d);mxEvent.addListener(c,
"click",mxUtils.bind(this,function(){this.actions.get("saveAndExit").funct()}));b.appendChild(c)}}else mxUtils.write(c,mxResources.get("save")),c.setAttribute("title",mxResources.get("save")+" ("+Editor.ctrlKey+"+S)"),mxEvent.addListener(c,"click",mxUtils.bind(this,function(){this.actions.get("save").funct()})),b.appendChild(c),"1"==urlParams.saveAndExit&&(c=document.createElement("a"),mxUtils.write(c,mxResources.get("saveAndExit")),c.setAttribute("title",mxResources.get("saveAndExit")),c.className=
"geMenuItem",c.style.marginLeft="6px",c.style.padding="6px",mxEvent.addListener(c,"click",mxUtils.bind(this,function(){this.actions.get("saveAndExit").funct()})),b.appendChild(c));"1"!=urlParams.noExitBtn&&(c=document.createElement("a"),d="1"==urlParams.publishClose?mxResources.get("close"):mxResources.get("exit"),mxUtils.write(c,d),c.setAttribute("title",d),c.className="geMenuItem",c.style.marginLeft="6px",c.style.padding="6px",mxEvent.addListener(c,"click",mxUtils.bind(this,function(){this.actions.get("exit").funct()})),
-b.appendChild(c));this.buttonContainer.appendChild(b);this.buttonContainer.style.top="6px";this.editor.fireEvent(new mxEventObject("statusChanged"))}};var u=Sidebar.prototype.getTooltipOffset;Sidebar.prototype.getTooltipOffset=function(b,c){if(null==this.editorUi.sidebarWindow||mxUtils.isAncestorNode(this.editorUi.picker,b)){var d=mxUtils.getOffset(this.editorUi.picker);d.x+=this.editorUi.picker.offsetWidth+4;d.y+=b.offsetTop-c.height/2+16;return d}var e=u.apply(this,arguments),d=mxUtils.getOffset(this.editorUi.sidebarWindow.window.div);
+b.appendChild(c));this.buttonContainer.appendChild(b);this.buttonContainer.style.top="6px";this.editor.fireEvent(new mxEventObject("statusChanged"))}};var v=Sidebar.prototype.getTooltipOffset;Sidebar.prototype.getTooltipOffset=function(b,c){if(null==this.editorUi.sidebarWindow||mxUtils.isAncestorNode(this.editorUi.picker,b)){var d=mxUtils.getOffset(this.editorUi.picker);d.x+=this.editorUi.picker.offsetWidth+4;d.y+=b.offsetTop-c.height/2+16;return d}var e=v.apply(this,arguments),d=mxUtils.getOffset(this.editorUi.sidebarWindow.window.div);
e.x+=d.x-16;e.y+=d.y;return e};var t=Menus.prototype.createPopupMenu;Menus.prototype.createPopupMenu=function(b,c,d){var e=this.editorUi.editor.graph;b.smartSeparators=!0;t.apply(this,arguments);"1"==urlParams.sketch?e.isEnabled()&&(b.addSeparator(),1==e.getSelectionCount()&&this.addMenuItems(b,["-","lockUnlock"],null,d)):1==e.getSelectionCount()?(e.isCellFoldable(e.getSelectionCell())&&this.addMenuItems(b,e.isCellCollapsed(c)?["expand"]:["collapse"],null,d),this.addMenuItems(b,["collapsible","-",
"lockUnlock","enterGroup"],null,d),b.addSeparator(),this.addSubmenu("layout",b)):e.isSelectionEmpty()&&e.isEnabled()?(b.addSeparator(),this.addMenuItems(b,["editData"],null,d),b.addSeparator(),this.addSubmenu("layout",b),this.addSubmenu("insert",b),this.addMenuItems(b,["-","exitGroup"],null,d)):e.isEnabled()&&this.addMenuItems(b,["-","lockUnlock"],null,d)};var z=Menus.prototype.addPopupMenuEditItems;Menus.prototype.addPopupMenuEditItems=function(b,c,d){z.apply(this,arguments);this.editorUi.editor.graph.isSelectionEmpty()&&
this.addMenuItems(b,["copyAsImage"],null,d)};EditorUi.prototype.toggleFormatPanel=function(c){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=c?c:!this.formatWindow.window.isVisible()):b(this)};DiagramFormatPanel.prototype.isMathOptionVisible=function(){return!0};var y=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.sidebarWindow&&(this.sidebarWindow.window.setVisible(!1),this.sidebarWindow.window.destroy(),this.sidebarWindow=null);null!=this.formatWindow&&
(this.formatWindow.window.setVisible(!1),this.formatWindow.window.destroy(),this.formatWindow=null);null!=this.actions.outlineWindow&&(this.actions.outlineWindow.window.setVisible(!1),this.actions.outlineWindow.window.destroy(),this.actions.outlineWindow=null);null!=this.actions.layersWindow&&(this.actions.layersWindow.window.setVisible(!1),this.actions.layersWindow.destroy(),this.actions.layersWindow=null);null!=this.menus.tagsWindow&&(this.menus.tagsWindow.window.setVisible(!1),this.menus.tagsWindow.window.destroy(),
-this.menus.tagsWindow=null);null!=this.menus.findWindow&&(this.menus.findWindow.window.setVisible(!1),this.menus.findWindow.window.destroy(),this.menus.findWindow=null);null!=this.menus.findReplaceWindow&&(this.menus.findReplaceWindow.window.setVisible(!1),this.menus.findReplaceWindow.window.destroy(),this.menus.findReplaceWindow=null);y.apply(this,arguments)};var F=EditorUi.prototype.setGraphEnabled;EditorUi.prototype.setGraphEnabled=function(b){F.apply(this,arguments);if(b){var c=window.innerWidth||
+this.menus.tagsWindow=null);null!=this.menus.findWindow&&(this.menus.findWindow.window.setVisible(!1),this.menus.findWindow.window.destroy(),this.menus.findWindow=null);null!=this.menus.findReplaceWindow&&(this.menus.findReplaceWindow.window.setVisible(!1),this.menus.findReplaceWindow.window.destroy(),this.menus.findReplaceWindow=null);y.apply(this,arguments)};var I=EditorUi.prototype.setGraphEnabled;EditorUi.prototype.setGraphEnabled=function(b){I.apply(this,arguments);if(b){var c=window.innerWidth||
document.documentElement.clientWidth||document.body.clientWidth;1E3<=c&&null!=this.sidebarWindow&&"1"!=urlParams.sketch&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&(1E3<=c||"1"==urlParams.sketch)&&this.formatWindow.window.setVisible(!0)}else null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!1),null!=this.formatWindow&&this.formatWindow.window.setVisible(!1)};EditorUi.prototype.chromelessWindowResize=function(){};var D=DiagramFormatPanel.prototype.addView;DiagramFormatPanel.prototype.addView=
function(b){b=D.apply(this,arguments);var c=this.editorUi,d=c.editor.graph;if(d.isEnabled()&&"1"==urlParams.sketch){var e=this.createOption(mxResources.get("sketch"),function(){return Editor.sketchMode},function(b,e){c.setSketchMode(!Editor.sketchMode);null!=e&&mxEvent.isShiftDown(e)||d.updateCellStyles({sketch:b?"1":null},d.getVerticesAndEdges())},{install:function(b){this.listener=function(){b(Editor.sketchMode)};c.addListener("sketchModeChanged",this.listener)},destroy:function(){c.removeListener(this.listener)}});
-b.appendChild(e)}return b};var E=Menus.prototype.init;Menus.prototype.init=function(){E.apply(this,arguments);var c=this.editorUi,d=c.editor.graph;c.actions.get("editDiagram").label=mxResources.get("formatXml")+"...";c.actions.get("createShape").label=mxResources.get("shape")+"...";c.actions.get("outline").label=mxResources.get("outline")+"...";c.actions.get("layers").label=mxResources.get("layers")+"...";c.actions.get("tags").label=mxResources.get("tags")+"...";c.actions.get("forkme").visible="1"!=
+b.appendChild(e)}return b};var F=Menus.prototype.init;Menus.prototype.init=function(){F.apply(this,arguments);var c=this.editorUi,d=c.editor.graph;c.actions.get("editDiagram").label=mxResources.get("formatXml")+"...";c.actions.get("createShape").label=mxResources.get("shape")+"...";c.actions.get("outline").label=mxResources.get("outline")+"...";c.actions.get("layers").label=mxResources.get("layers")+"...";c.actions.get("tags").label=mxResources.get("tags")+"...";c.actions.get("forkme").visible="1"!=
urlParams.sketch;c.actions.get("downloadDesktop").visible="1"!=urlParams.sketch;c.actions.get("comments").label=mxResources.get("comments")+"...";var f=c.actions.put("toggleDarkMode",new Action(mxResources.get("dark"),function(b){c.setDarkMode(!Editor.darkMode)}));f.setToggleAction(!0);f.setSelectedCallback(function(){return Editor.isDarkMode()});f=c.actions.put("toggleSketchMode",new Action(mxResources.get("sketch"),function(b){c.setSketchMode(!Editor.sketchMode)}));f.setToggleAction(!0);f.setSelectedCallback(function(){return Editor.sketchMode});
f=c.actions.put("togglePagesVisible",new Action(mxResources.get("pages"),function(b){c.setPagesVisible(!Editor.pagesVisible)}));f.setToggleAction(!0);f.setSelectedCallback(function(){return Editor.pagesVisible});c.actions.put("importCsv",new Action(mxResources.get("csv")+"...",function(){d.popupMenuHandler.hideMenu();c.showImportCsvDialog()}));c.actions.put("importText",new Action(mxResources.get("text")+"...",function(){var b=new ParseDialog(c,"Insert from Text");c.showDialog(b.container,620,420,
!0,!1);b.init()}));c.actions.put("formatSql",new Action(mxResources.get("formatSql")+"...",function(){var b=new ParseDialog(c,"Insert from Text","formatSql");c.showDialog(b.container,620,420,!0,!1);b.init()}));c.actions.put("toggleShapes",new Action(mxResources.get("1"==urlParams.sketch?"moreShapes":"shapes")+"...",function(){e(c)},null,null,Editor.ctrlKey+"+Shift+K"));c.actions.put("toggleFormat",new Action(mxResources.get("format")+"...",function(){b(c)})).shortcut=c.actions.get("formatPanel").shortcut;
@@ -4022,64 +4022,64 @@ d);"1"!=urlParams.embedInline&&"1"!=urlParams.sketch&&"1"!=urlParams.embed&&(isL
d),b.addSeparator(d),c.mode!=App.MODE_ATLAS&&this.addMenuItems(b,["fullscreen"],d));("1"!=urlParams.embedInline&&Editor.isDarkMode()||!mxClient.IS_IE&&!mxClient.IS_IE11)&&this.addMenuItems(b,["toggleDarkMode"],d);b.addSeparator(d)})));this.put("insertAdvanced",new Menu(mxUtils.bind(this,function(b,d){c.menus.addMenuItems(b,"importText plantUml mermaid - formatSql importCsv - createShape editDiagram".split(" "),d)})));mxUtils.bind(this,function(){var b=this.get("insert"),d=b.funct;b.funct=function(b,
e){"1"==urlParams.sketch?(c.insertTemplateEnabled&&!c.isOffline()&&c.menus.addMenuItems(b,["insertTemplate"],e),c.menus.addMenuItems(b,["insertImage","insertLink","-"],e),c.menus.addSubmenu("insertLayout",b,e,mxResources.get("layout")),c.menus.addSubmenu("insertAdvanced",b,e,mxResources.get("advanced"))):(d.apply(this,arguments),c.menus.addSubmenu("table",b,e))}})();var n="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),p=function(b,d,e,f){b.addItem(e,
null,mxUtils.bind(this,function(){var b=new CreateGraphDialog(c,e,f);c.showDialog(b.container,620,420,!0,!1);b.init()}),d)};this.put("insertLayout",new Menu(mxUtils.bind(this,function(b,c){for(var d=0;d<n.length;d++)"-"==n[d]?b.addSeparator(c):p(b,c,mxResources.get(n[d])+"...",n[d])})))};EditorUi.prototype.installFormatToolbar=function(b){var c=this.editor.graph,d=document.createElement("div");d.style.cssText="position:absolute;top:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;white-space:nowrap;background-color:#fff;transform:translate(-50%, 0);left:50%;";
-c.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(e,f){0<c.getSelectionCount()?(b.appendChild(d),d.innerHTML="Selected: "+c.getSelectionCount()):null!=d.parentNode&&d.parentNode.removeChild(d)}))};var H=!1;EditorUi.prototype.initFormatWindow=function(){if(!H&&null!=this.formatWindow){H=!0;this.formatWindow.window.setClosable(!1);var b=this.formatWindow.window.toggleMinimized;this.formatWindow.window.toggleMinimized=function(){b.apply(this,arguments);this.minimized?(this.div.style.width=
-"90px",this.table.style.width="90px",this.div.style.left=parseInt(this.div.style.left)+150+"px"):(this.div.style.width="240px",this.table.style.width="240px",this.div.style.left=Math.max(0,parseInt(this.div.style.left)-150)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(b){mxEvent.getSource(b)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var N=EditorUi.prototype.init;EditorUi.prototype.init=function(){function c(b,
+c.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(e,f){0<c.getSelectionCount()?(b.appendChild(d),d.innerHTML="Selected: "+c.getSelectionCount()):null!=d.parentNode&&d.parentNode.removeChild(d)}))};var E=!1;EditorUi.prototype.initFormatWindow=function(){if(!E&&null!=this.formatWindow){E=!0;this.formatWindow.window.setClosable(!1);var b=this.formatWindow.window.toggleMinimized;this.formatWindow.window.toggleMinimized=function(){b.apply(this,arguments);this.minimized?(this.div.style.width=
+"90px",this.table.style.width="90px",this.div.style.left=parseInt(this.div.style.left)+150+"px"):(this.div.style.width="240px",this.table.style.width="240px",this.div.style.left=Math.max(0,parseInt(this.div.style.left)-150)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(b){mxEvent.getSource(b)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var O=EditorUi.prototype.init;EditorUi.prototype.init=function(){function c(b,
c,d){var e=m.menus.get(b),f=t.addMenu(mxResources.get(b),mxUtils.bind(this,function(){e.funct.apply(this,arguments)}),q);f.className="1"==urlParams.sketch?"geToolbarButton":"geMenuItem";f.style.display="inline-block";f.style.boxSizing="border-box";f.style.top="6px";f.style.marginRight="6px";f.style.height="30px";f.style.paddingTop="6px";f.style.paddingBottom="6px";f.style.cursor="pointer";f.setAttribute("title",mxResources.get(b));m.menus.menuCreated(e,f,"geMenuItem");null!=d?(f.style.backgroundImage=
"url("+d+")",f.style.backgroundPosition="center center",f.style.backgroundRepeat="no-repeat",f.style.backgroundSize="24px 24px",f.style.width="34px",f.innerHTML=""):c||(f.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+")",f.style.backgroundPosition="right 6px center",f.style.backgroundRepeat="no-repeat",f.style.paddingRight="22px");return f}function d(b,c,d,e,f,g){var k=document.createElement("a");k.className="1"==urlParams.sketch?"geToolbarButton":"geMenuItem";k.style.display="inline-block";
k.style.boxSizing="border-box";k.style.height="30px";k.style.padding="6px";k.style.position="relative";k.style.verticalAlign="top";k.style.top="0px";"1"==urlParams.sketch&&(k.style.borderStyle="none",k.style.boxShadow="none",k.style.padding="6px",k.style.margin="0px");null!=m.statusContainer?p.insertBefore(k,m.statusContainer):p.appendChild(k);null!=g?(k.style.backgroundImage="url("+g+")",k.style.backgroundPosition="center center",k.style.backgroundRepeat="no-repeat",k.style.backgroundSize="24px 24px",
k.style.width="34px"):mxUtils.write(k,b);mxEvent.addListener(k,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(b){b.preventDefault()}));mxEvent.addListener(k,"click",function(b){"disabled"!=k.getAttribute("disabled")&&c(b);mxEvent.consume(b)});null==d&&(k.style.marginRight="4px");null!=e&&k.setAttribute("title",e);null!=f&&(b=function(){f.isEnabled()?(k.removeAttribute("disabled"),k.style.cursor="pointer"):(k.setAttribute("disabled","disabled"),k.style.cursor="default")},
f.addListener("stateChanged",b),n.addListener("enabledChanged",b),b());return k}function g(b,c,d){d=document.createElement("div");d.className="geMenuItem";d.style.display="inline-block";d.style.verticalAlign="top";d.style.marginRight="6px";d.style.padding="0 4px 0 4px";d.style.height="30px";d.style.position="relative";d.style.top="0px";"1"==urlParams.sketch&&(d.style.boxShadow="none");for(var e=0;e<b.length;e++)null!=b[e]&&("1"==urlParams.sketch&&(b[e].style.padding="10px 8px",b[e].style.width="30px"),
-b[e].style.margin="0px",b[e].style.boxShadow="none",d.appendChild(b[e]));null!=c&&mxUtils.setOpacity(d,c);null!=m.statusContainer&&"1"!=urlParams.sketch?p.insertBefore(d,m.statusContainer):p.appendChild(d);return d}function k(){if("1"==urlParams.sketch)"1"!=urlParams.embedInline&&(H.style.left=58>F.offsetTop-F.offsetHeight/2?"70px":"10px");else{for(var b=p.firstChild;null!=b;){var e=b.nextSibling;"geMenuItem"!=b.className&&"geItem"!=b.className||b.parentNode.removeChild(b);b=e}q=p.firstChild;f=window.innerWidth||
+b[e].style.margin="0px",b[e].style.boxShadow="none",d.appendChild(b[e]));null!=c&&mxUtils.setOpacity(d,c);null!=m.statusContainer&&"1"!=urlParams.sketch?p.insertBefore(d,m.statusContainer):p.appendChild(d);return d}function k(){if("1"==urlParams.sketch)"1"!=urlParams.embedInline&&(I.style.left=58>E.offsetTop-E.offsetHeight/2?"70px":"10px");else{for(var b=p.firstChild;null!=b;){var e=b.nextSibling;"geMenuItem"!=b.className&&"geItem"!=b.className||b.parentNode.removeChild(b);b=e}q=p.firstChild;f=window.innerWidth||
document.documentElement.clientWidth||document.body.clientWidth;var b=1E3>f||"1"==urlParams.sketch,k=null;b||(k=c("diagram"));e=b?c("diagram",null,Editor.drawLogoImage):null;null!=e&&(k=e);g([k,d(mxResources.get("shapes"),m.actions.get("toggleShapes").funct,null,mxResources.get("shapes"),m.actions.get("image"),b?Editor.shapesImage:null),d(mxResources.get("format"),m.actions.get("toggleFormat").funct,null,mxResources.get("format")+" ("+m.actions.get("formatPanel").shortcut+")",m.actions.get("image"),
-b?Editor.formatImage:null)],b?60:null);e=c("insert",!0,b?E:null);g([e,d(mxResources.get("delete"),m.actions.get("delete").funct,null,mxResources.get("delete"),m.actions.get("delete"),b?Editor.trashImage:null)],b?60:null);411<=f&&(g([ba,na],60),520<=f&&g([Ga,640<=f?d("",ra.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +)",ra,Editor.zoomInImage):null,640<=f?d("",R.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",R,Editor.zoomOutImage):null],60))}null!=k&&(mxEvent.disableContextMenu(k),
-mxEvent.addGestureListeners(k,mxUtils.bind(this,function(b){(mxEvent.isShiftDown(b)||mxEvent.isAltDown(b)||mxEvent.isMetaDown(b)||mxEvent.isControlDown(b)||mxEvent.isPopupTrigger(b))&&m.appIconClicked(b)}),null,null));e=m.menus.get("language");null!=e&&!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&600<=f&&"1"!=urlParams.sketch?(null==ya&&(e=t.addMenu("",e.funct),e.setAttribute("title",mxResources.get("language")),e.className="geToolbarButton",e.style.backgroundImage="url("+Editor.globeImage+")",
-e.style.backgroundPosition="center center",e.style.backgroundRepeat="no-repeat",e.style.backgroundSize="24px 24px",e.style.position="absolute",e.style.height="24px",e.style.width="24px",e.style.zIndex="1",e.style.right="8px",e.style.cursor="pointer",e.style.top="1"==urlParams.embed?"12px":"11px",p.appendChild(e),ya=e),m.buttonContainer.style.paddingRight="34px"):(m.buttonContainer.style.paddingRight="4px",null!=ya&&(ya.parentNode.removeChild(ya),ya=null))}N.apply(this,arguments);"1"!=urlParams.embedInline&&
+b?Editor.formatImage:null)],b?60:null);e=c("insert",!0,b?F:null);g([e,d(mxResources.get("delete"),m.actions.get("delete").funct,null,mxResources.get("delete"),m.actions.get("delete"),b?Editor.trashImage:null)],b?60:null);411<=f&&(g([Z,la],60),520<=f&&g([Fa,640<=f?d("",ma.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +)",ma,Editor.zoomInImage):null,640<=f?d("",ra.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",ra,Editor.zoomOutImage):null],60))}null!=k&&(mxEvent.disableContextMenu(k),
+mxEvent.addGestureListeners(k,mxUtils.bind(this,function(b){(mxEvent.isShiftDown(b)||mxEvent.isAltDown(b)||mxEvent.isMetaDown(b)||mxEvent.isControlDown(b)||mxEvent.isPopupTrigger(b))&&m.appIconClicked(b)}),null,null));e=m.menus.get("language");null!=e&&!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&600<=f&&"1"!=urlParams.sketch?(null==wa&&(e=t.addMenu("",e.funct),e.setAttribute("title",mxResources.get("language")),e.className="geToolbarButton",e.style.backgroundImage="url("+Editor.globeImage+")",
+e.style.backgroundPosition="center center",e.style.backgroundRepeat="no-repeat",e.style.backgroundSize="24px 24px",e.style.position="absolute",e.style.height="24px",e.style.width="24px",e.style.zIndex="1",e.style.right="8px",e.style.cursor="pointer",e.style.top="1"==urlParams.embed?"12px":"11px",p.appendChild(e),wa=e),m.buttonContainer.style.paddingRight="34px"):(m.buttonContainer.style.paddingRight="4px",null!=wa&&(wa.parentNode.removeChild(wa),wa=null))}O.apply(this,arguments);"1"!=urlParams.embedInline&&
this.doSetDarkMode(null!=urlParams.dark?1==urlParams.dark&&!mxClient.IS_IE&&!mxClient.IS_IE11:null!=mxSettings.settings.darkMode?mxSettings.settings.darkMode:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches);var l=document.createElement("div");l.style.cssText="position:absolute;left:0px;right:0px;top:0px;overflow-y:auto;overflow-x:hidden;";l.style.bottom="1"!=urlParams.embed||"1"==urlParams.libraries?"63px":"32px";this.sidebar=this.createSidebar(l);"1"==urlParams.sketch&&
null!=this.sidebar&&this.isSettingsEnabled()&&(this.editor.chromeless&&!this.editor.editable||!(mxSettings.settings.isNew||8>=parseInt(mxSettings.settings.version||0))||(this.toggleScratchpad(),mxSettings.save()),this.sidebar.showPalette("search",mxSettings.settings.search));if("1"!=urlParams.sketch&&1E3<=f||null!=urlParams.clibs||null!=urlParams.libs||null!=urlParams["search-shapes"])e(this,!0),null!=this.sidebar&&null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes&&(this.sidebar.searchShapes(urlParams["search-shapes"]),
this.sidebar.showEntries("search"));var m=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==m.embedViewport)mxUtils.fit(this.div);else{var b=parseInt(this.div.offsetLeft),c=parseInt(this.div.offsetWidth);this.div.style.left=Math.max(m.embedViewport.x,Math.min(b,m.embedViewport.x+m.embedViewport.width-c))+"px";b=parseInt(this.div.offsetTop);c=parseInt(this.div.offsetHeight);this.div.style.top=Math.max(m.embedViewport.y,Math.min(b,m.embedViewport.y+m.embedViewport.height-c))+
-"px"}};this.keyHandler.bindAction(75,!0,"toggleShapes",!0);EditorUi.windowed&&("1"==urlParams.sketch||1E3<=f)&&"1"!=urlParams.embedInline&&(b(this,!0),"1"==urlParams.sketch&&(this.initFormatWindow(),null!=this.formatWindow&&this.formatWindow.window.toggleMinimized()));var m=this,n=m.editor.graph;m.toolbar=this.createToolbar(m.createDiv("geToolbar"));m.defaultLibraryName=mxResources.get("untitledLibrary");var p=document.createElement("div");p.className="geMenubarContainer";var q=null,t=new Menubar(m,
+"px"}};this.keyHandler.bindAction(75,!0,"toggleShapes",!0);EditorUi.windowed&&("1"==urlParams.sketch||1E3<=f)&&"1"!=urlParams.embedInline&&(b(this,!0),"1"==urlParams.sketch&&(this.initFormatWindow(),null!=this.formatWindow&&1200>f&&this.formatWindow.window.toggleMinimized()));var m=this,n=m.editor.graph;m.toolbar=this.createToolbar(m.createDiv("geToolbar"));m.defaultLibraryName=mxResources.get("untitledLibrary");var p=document.createElement("div");p.className="geMenubarContainer";var q=null,t=new Menubar(m,
p);m.statusContainer=m.createStatusContainer();m.statusContainer.style.position="relative";m.statusContainer.style.maxWidth="";m.statusContainer.style.marginTop="7px";m.statusContainer.style.marginLeft="6px";m.statusContainer.style.color="gray";m.statusContainer.style.cursor="default";var u=m.hideCurrentMenu;m.hideCurrentMenu=function(){u.apply(this,arguments);this.editor.graph.popupMenuHandler.hideMenu()};var v=m.descriptorChanged;m.descriptorChanged=function(){v.apply(this,arguments);var b=m.getCurrentFile();
if(null!=b&&null!=b.getTitle()){var c=b.getMode();"google"==c?c="googleDrive":"github"==c?c="gitHub":"gitlab"==c?c="gitLab":"onedrive"==c&&(c="oneDrive");c=mxResources.get(c);p.setAttribute("title",b.getTitle()+(null!=c?" ("+c+")":""))}else p.removeAttribute("title")};m.setStatusText(m.editor.getStatus());p.appendChild(m.statusContainer);m.buttonContainer=document.createElement("div");m.buttonContainer.style.cssText="position:absolute;right:0px;padding-right:34px;top:10px;white-space:nowrap;padding-top:2px;background-color:inherit;";
p.appendChild(m.buttonContainer);m.menubarContainer=m.buttonContainer;m.tabContainer=document.createElement("div");m.tabContainer.className="geTabContainer";m.tabContainer.style.cssText="position:absolute;left:0px;right:0px;bottom:0px;height:30px;white-space:nowrap;margin-bottom:-2px;visibility:hidden;";var l=m.diagramContainer.parentNode,x=document.createElement("div");x.style.cssText="position:absolute;top:0px;left:0px;right:0px;bottom:0px;overflow:hidden;";m.diagramContainer.style.top="1"==urlParams.sketch?
-"0px":"47px";if("1"==urlParams.winCtrls&&"1"==urlParams.sketch){x.style.top="20px";m.titlebar=document.createElement("div");m.titlebar.style.cssText="position:absolute;top:0px;left:0px;right:0px;height:20px;overflow:hidden;box-shadow: 0px 0px 2px #c0c0c0;";var z=document.createElement("div");z.style.cssText="max-width: calc(100% - 100px);text-overflow: ellipsis;user-select:none;height:20px;margin: 2px 10px;font-size: 12px;white-space: nowrap;overflow: hidden;";m.titlebar.appendChild(z);l.appendChild(m.titlebar)}var y=
-m.menus.get("viewZoom"),E="1"!=urlParams.sketch?Editor.plusImage:Editor.shapesImage,D="1"==urlParams.sketch?document.createElement("div"):null,F="1"==urlParams.sketch?document.createElement("div"):null,H="1"==urlParams.sketch?document.createElement("div"):null,z=mxUtils.bind(this,function(){null!=this.sidebar&&this.sidebar.refresh();n.refresh();n.view.validateBackground()});m.addListener("darkModeChanged",z);m.addListener("sketchModeChanged",z);var ta=mxUtils.bind(this,function(){if(Editor.inlineFullscreen)H.style.left=
-"10px",H.style.top="10px",F.style.left="10px",F.style.top="60px",D.style.top="10px",D.style.right="12px",D.style.left="",m.diagramContainer.setAttribute("data-bounds",m.diagramContainer.style.top+" "+m.diagramContainer.style.left+" "+m.diagramContainer.style.width+" "+m.diagramContainer.style.height),m.diagramContainer.style.top="0px",m.diagramContainer.style.left="0px",m.diagramContainer.style.bottom="0px",m.diagramContainer.style.right="0px",m.diagramContainer.style.width="",m.diagramContainer.style.height=
+"0px":"47px";if("1"==urlParams.winCtrls&&"1"==urlParams.sketch){x.style.top="20px";m.titlebar=document.createElement("div");m.titlebar.style.cssText="position:absolute;top:0px;left:0px;right:0px;height:20px;overflow:hidden;box-shadow: 0px 0px 2px #c0c0c0;";var y=document.createElement("div");y.style.cssText="max-width: calc(100% - 100px);text-overflow: ellipsis;user-select:none;height:20px;margin: 2px 10px;font-size: 12px;white-space: nowrap;overflow: hidden;";m.titlebar.appendChild(y);l.appendChild(m.titlebar)}var z=
+m.menus.get("viewZoom"),F="1"!=urlParams.sketch?Editor.plusImage:Editor.shapesImage,D="1"==urlParams.sketch?document.createElement("div"):null,E="1"==urlParams.sketch?document.createElement("div"):null,I="1"==urlParams.sketch?document.createElement("div"):null,y=mxUtils.bind(this,function(){null!=this.sidebar&&this.sidebar.refresh();n.refresh();n.view.validateBackground()});m.addListener("darkModeChanged",y);m.addListener("sketchModeChanged",y);var na=mxUtils.bind(this,function(){if(Editor.inlineFullscreen)I.style.left=
+"10px",I.style.top="10px",E.style.left="10px",E.style.top="60px",D.style.top="10px",D.style.right="12px",D.style.left="",m.diagramContainer.setAttribute("data-bounds",m.diagramContainer.style.top+" "+m.diagramContainer.style.left+" "+m.diagramContainer.style.width+" "+m.diagramContainer.style.height),m.diagramContainer.style.top="0px",m.diagramContainer.style.left="0px",m.diagramContainer.style.bottom="0px",m.diagramContainer.style.right="0px",m.diagramContainer.style.width="",m.diagramContainer.style.height=
"";else{var b=m.diagramContainer.getAttribute("data-bounds");if(null!=b){m.diagramContainer.style.background="transparent";m.diagramContainer.removeAttribute("data-bounds");var c=n.getGraphBounds(),b=b.split(" ");m.diagramContainer.style.top=b[0];m.diagramContainer.style.left=b[1];m.diagramContainer.style.width=c.width+50+"px";m.diagramContainer.style.height=c.height+46+"px";m.diagramContainer.style.bottom="";m.diagramContainer.style.right="";(window.opener||window.parent).postMessage(JSON.stringify({event:"resize",
-rect:m.diagramContainer.getBoundingClientRect()}),"*");m.refresh()}H.style.left=m.diagramContainer.offsetLeft+"px";H.style.top=m.diagramContainer.offsetTop-H.offsetHeight-4+"px";F.style.display="";F.style.left=m.diagramContainer.offsetLeft-F.offsetWidth-4+"px";F.style.top=m.diagramContainer.offsetTop+"px";D.style.left=m.diagramContainer.offsetLeft+m.diagramContainer.offsetWidth-D.offsetWidth+"px";D.style.top=H.style.top;D.style.right="";m.bottomResizer.style.left=m.diagramContainer.offsetLeft+(m.diagramContainer.offsetWidth-
+rect:m.diagramContainer.getBoundingClientRect()}),"*");m.refresh()}I.style.left=m.diagramContainer.offsetLeft+"px";I.style.top=m.diagramContainer.offsetTop-I.offsetHeight-4+"px";E.style.display="";E.style.left=m.diagramContainer.offsetLeft-E.offsetWidth-4+"px";E.style.top=m.diagramContainer.offsetTop+"px";D.style.left=m.diagramContainer.offsetLeft+m.diagramContainer.offsetWidth-D.offsetWidth+"px";D.style.top=I.style.top;D.style.right="";m.bottomResizer.style.left=m.diagramContainer.offsetLeft+(m.diagramContainer.offsetWidth-
m.bottomResizer.offsetWidth)/2+"px";m.bottomResizer.style.top=m.diagramContainer.offsetTop+m.diagramContainer.offsetHeight-m.bottomResizer.offsetHeight/2-1+"px";m.rightResizer.style.left=m.diagramContainer.offsetLeft+m.diagramContainer.offsetWidth-m.rightResizer.offsetWidth/2-1+"px";m.rightResizer.style.top=m.diagramContainer.offsetTop+(m.diagramContainer.offsetHeight-m.bottomResizer.offsetHeight)/2+"px"}m.bottomResizer.style.visibility=Editor.inlineFullscreen?"hidden":"";m.rightResizer.style.visibility=
-m.bottomResizer.style.visibility;p.style.display="none";H.style.visibility="";D.style.visibility=""}),ua=mxUtils.bind(this,function(){Aa.style.backgroundImage="url("+(Editor.inlineFullscreen?Editor.fullscreenExitImage:Editor.fullscreenImage)+")";this.diagramContainer.style.background=Editor.inlineFullscreen?Editor.isDarkMode()?Editor.darkColor:"#ffffff":"transparent";ta()}),z=mxUtils.bind(this,function(){ua();b(m,!0);m.initFormatWindow();var c=this.diagramContainer.getBoundingClientRect();this.formatWindow.window.setLocation(c.x+
-c.width+4,c.y)});m.addListener("inlineFullscreenChanged",ua);m.addListener("editInlineStart",z);"1"==urlParams.embedInline&&m.addListener("darkModeChanged",z);m.addListener("editInlineStop",mxUtils.bind(this,function(b){m.diagramContainer.style.width="10px";m.diagramContainer.style.height="10px";m.diagramContainer.style.border="";m.bottomResizer.style.visibility="hidden";m.rightResizer.style.visibility="hidden";H.style.visibility="hidden";D.style.visibility="hidden";F.style.display="none"}));if(null!=
-m.hoverIcons){var ha=m.hoverIcons.update;m.hoverIcons.update=function(){n.freehand.isDrawing()||ha.apply(this,arguments)}}if(null!=n.freehand){var oa=n.freehand.createStyle;n.freehand.createStyle=function(b){return oa.apply(this,arguments)+"sketch=0;"}}if("1"==urlParams.sketch){F.className="geToolbarContainer";D.className="geToolbarContainer";H.className="geToolbarContainer";p.className="geToolbarContainer";m.picker=F;var Y=!1;mxEvent.addListener(p,"mouseenter",function(){m.statusContainer.style.display=
-"inline-block"});mxEvent.addListener(p,"mouseleave",function(){Y||(m.statusContainer.style.display="none")});var Q=mxUtils.bind(this,function(b){null!=m.notificationBtn&&(null!=b?m.notificationBtn.setAttribute("title",b):m.notificationBtn.removeAttribute("title"))});"1"!=urlParams.embed?(p.style.visibility=14>p.clientWidth?"hidden":"",m.editor.addListener("statusChanged",mxUtils.bind(this,function(){m.setStatusText(m.editor.getStatus());if(0==m.statusContainer.children.length||1==m.statusContainer.children.length&&
-"function"===typeof m.statusContainer.firstChild.getAttribute&&null==m.statusContainer.firstChild.getAttribute("class")){var b=null!=m.statusContainer.firstChild&&"function"===typeof m.statusContainer.firstChild.getAttribute?m.statusContainer.firstChild.getAttribute("title"):m.editor.getStatus();Q(b);var c=m.getCurrentFile(),c=null!=c?c.savingStatusKey:DrawioFile.prototype.savingStatusKey;b==mxResources.get(c)+"..."?(m.statusContainer.innerHTML='<img title="'+mxUtils.htmlEntities(mxResources.get(c))+
-'..."src="'+Editor.tailSpin+'">',m.statusContainer.style.display="inline-block",Y=!0):6<m.buttonContainer.clientWidth&&(m.statusContainer.style.display="none",Y=!1)}else m.statusContainer.style.display="inline-block",Q(null),Y=!0;p.style.visibility=12<p.clientWidth?"":"hidden"}))):m.editor.addListener("statusChanged",mxUtils.bind(this,function(){p.style.visibility=16<p.clientWidth?"":"hidden"}));O=c("diagram",null,Editor.menuImage);O.style.boxShadow="none";O.style.padding="6px";O.style.margin="0px";
-H.appendChild(O);mxEvent.disableContextMenu(O);mxEvent.addGestureListeners(O,mxUtils.bind(this,function(b){(mxEvent.isShiftDown(b)||mxEvent.isAltDown(b)||mxEvent.isMetaDown(b)||mxEvent.isControlDown(b)||mxEvent.isPopupTrigger(b))&&this.appIconClicked(b)}),null,null);m.statusContainer.style.position="";m.statusContainer.style.display="none";m.statusContainer.style.margin="0px";m.statusContainer.style.padding="6px 0px";m.statusContainer.style.maxWidth=Math.min(f-240,280)+"px";m.statusContainer.style.display=
-"inline-block";m.statusContainer.style.textOverflow="ellipsis";m.buttonContainer.style.position="";m.buttonContainer.style.paddingRight="0px";m.buttonContainer.style.display="inline-block";var ea=document.createElement("a");ea.style.padding="0px";ea.style.boxShadow="none";ea.className="geMenuItem";ea.style.display="inline-block";ea.style.width="40px";ea.style.height="12px";ea.style.marginBottom="-2px";ea.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+")";ea.style.backgroundPosition=
-"top center";ea.style.backgroundRepeat="no-repeat";ea.setAttribute("title","Minimize");var S=!1,ma=mxUtils.bind(this,function(){F.innerHTML="";if(!S){var b=function(b,c,f){b=d("",b.funct,null,c,b,f);b.style.width="40px";b.style.opacity="0.7";return e(b,null,"pointer")},e=function(b,c,d){null!=c&&b.setAttribute("title",c);b.style.cursor=null!=d?d:"default";b.style.margin="2px 0px";F.appendChild(b);mxUtils.br(F);return b};e(m.sidebar.createVertexTemplate("text;strokeColor=none;fillColor=none;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;",
+m.bottomResizer.style.visibility;p.style.display="none";I.style.visibility="";D.style.visibility=""}),qa=mxUtils.bind(this,function(){ya.style.backgroundImage="url("+(Editor.inlineFullscreen?Editor.fullscreenExitImage:Editor.fullscreenImage)+")";this.diagramContainer.style.background=Editor.inlineFullscreen?Editor.isDarkMode()?Editor.darkColor:"#ffffff":"transparent";na()}),y=mxUtils.bind(this,function(){qa();b(m,!0);m.initFormatWindow();var c=this.diagramContainer.getBoundingClientRect();this.formatWindow.window.setLocation(c.x+
+c.width+4,c.y)});m.addListener("inlineFullscreenChanged",qa);m.addListener("editInlineStart",y);"1"==urlParams.embedInline&&m.addListener("darkModeChanged",y);m.addListener("editInlineStop",mxUtils.bind(this,function(b){m.diagramContainer.style.width="10px";m.diagramContainer.style.height="10px";m.diagramContainer.style.border="";m.bottomResizer.style.visibility="hidden";m.rightResizer.style.visibility="hidden";I.style.visibility="hidden";D.style.visibility="hidden";E.style.display="none"}));if(null!=
+m.hoverIcons){var pa=m.hoverIcons.update;m.hoverIcons.update=function(){n.freehand.isDrawing()||pa.apply(this,arguments)}}if(null!=n.freehand){var ha=n.freehand.createStyle;n.freehand.createStyle=function(b){return ha.apply(this,arguments)+"sketch=0;"}}if("1"==urlParams.sketch){E.className="geToolbarContainer";D.className="geToolbarContainer";I.className="geToolbarContainer";p.className="geToolbarContainer";m.picker=E;var sa=!1;mxEvent.addListener(p,"mouseenter",function(){m.statusContainer.style.display=
+"inline-block"});mxEvent.addListener(p,"mouseleave",function(){sa||(m.statusContainer.style.display="none")});var Y=mxUtils.bind(this,function(b){null!=m.notificationBtn&&(null!=b?m.notificationBtn.setAttribute("title",b):m.notificationBtn.removeAttribute("title"))});"1"!=urlParams.embed?(p.style.visibility=14>p.clientWidth?"hidden":"",m.editor.addListener("statusChanged",mxUtils.bind(this,function(){m.setStatusText(m.editor.getStatus());if(0==m.statusContainer.children.length||1==m.statusContainer.children.length&&
+"function"===typeof m.statusContainer.firstChild.getAttribute&&null==m.statusContainer.firstChild.getAttribute("class")){var b=null!=m.statusContainer.firstChild&&"function"===typeof m.statusContainer.firstChild.getAttribute?m.statusContainer.firstChild.getAttribute("title"):m.editor.getStatus();Y(b);var c=m.getCurrentFile(),c=null!=c?c.savingStatusKey:DrawioFile.prototype.savingStatusKey;b==mxResources.get(c)+"..."?(m.statusContainer.innerHTML='<img title="'+mxUtils.htmlEntities(mxResources.get(c))+
+'..."src="'+Editor.tailSpin+'">',m.statusContainer.style.display="inline-block",sa=!0):6<m.buttonContainer.clientWidth&&(m.statusContainer.style.display="none",sa=!1)}else m.statusContainer.style.display="inline-block",Y(null),sa=!0;p.style.visibility=12<p.clientWidth?"":"hidden"}))):m.editor.addListener("statusChanged",mxUtils.bind(this,function(){p.style.visibility=16<p.clientWidth?"":"hidden"}));R=c("diagram",null,Editor.menuImage);R.style.boxShadow="none";R.style.padding="6px";R.style.margin=
+"0px";I.appendChild(R);mxEvent.disableContextMenu(R);mxEvent.addGestureListeners(R,mxUtils.bind(this,function(b){(mxEvent.isShiftDown(b)||mxEvent.isAltDown(b)||mxEvent.isMetaDown(b)||mxEvent.isControlDown(b)||mxEvent.isPopupTrigger(b))&&this.appIconClicked(b)}),null,null);m.statusContainer.style.position="";m.statusContainer.style.display="none";m.statusContainer.style.margin="0px";m.statusContainer.style.padding="6px 0px";m.statusContainer.style.maxWidth=Math.min(f-240,280)+"px";m.statusContainer.style.display=
+"inline-block";m.statusContainer.style.textOverflow="ellipsis";m.buttonContainer.style.position="";m.buttonContainer.style.paddingRight="0px";m.buttonContainer.style.display="inline-block";var Q=document.createElement("a");Q.style.padding="0px";Q.style.boxShadow="none";Q.className="geMenuItem";Q.style.display="inline-block";Q.style.width="40px";Q.style.height="12px";Q.style.marginBottom="-2px";Q.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+")";Q.style.backgroundPosition="top center";
+Q.style.backgroundRepeat="no-repeat";Q.setAttribute("title","Minimize");var ta=!1,T=mxUtils.bind(this,function(){E.innerHTML="";if(!ta){var b=function(b,c,f){b=d("",b.funct,null,c,b,f);b.style.width="40px";b.style.opacity="0.7";return e(b,null,"pointer")},e=function(b,c,d){null!=c&&b.setAttribute("title",c);b.style.cursor=null!=d?d:"default";b.style.margin="2px 0px";E.appendChild(b);mxUtils.br(E);return b};e(m.sidebar.createVertexTemplate("text;strokeColor=none;fillColor=none;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;",
60,30,"Text",mxResources.get("text"),!0,!1,null,!0,!0),mxResources.get("text")+" ("+Editor.ctrlKey+"+Shift+X)");e(m.sidebar.createVertexTemplate("shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;fontColor=#000000;darkOpacity=0.05;fillColor=#FFF9B2;strokeColor=none;fillStyle=solid;direction=west;gradientDirection=north;gradientColor=#FFF2A1;shadow=1;size=20;pointerEvents=1;",140,160,"",mxResources.get("note"),!0,!1,null,!0),mxResources.get("note"));e(m.sidebar.createVertexTemplate("rounded=0;whiteSpace=wrap;html=1;",
160,80,"",mxResources.get("rectangle"),!0,!1,null,!0),mxResources.get("rectangle")+" ("+Editor.ctrlKey+"+K)");e(m.sidebar.createVertexTemplate("ellipse;whiteSpace=wrap;html=1;",160,100,"",mxResources.get("ellipse"),!0,!1,null,!0),mxResources.get("ellipse"));(function(){var b=new mxCell("",new mxGeometry(0,0,n.defaultEdgeLength,0),"edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;");b.geometry.setTerminalPoint(new mxPoint(0,0),!0);b.geometry.setTerminalPoint(new mxPoint(b.geometry.width,0),!1);
b.geometry.points=[];b.geometry.relative=!0;b.edge=!0;e(m.sidebar.createEdgeTemplateFromCells([b],b.geometry.width,b.geometry.height,mxResources.get("line"),!0,null,!0,!1),mxResources.get("line"));b=b.clone();b.style="edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;shape=flexArrow;rounded=1;startSize=8;endSize=8;";b.geometry.width=n.defaultEdgeLength+20;b.geometry.setTerminalPoint(new mxPoint(0,20),!0);b.geometry.setTerminalPoint(new mxPoint(b.geometry.width,20),!1);b=e(m.sidebar.createEdgeTemplateFromCells([b],
-b.geometry.width,40,mxResources.get("arrow"),!0,null,!0,!1),mxResources.get("arrow"));b.style.borderBottom="1px solid "+(Editor.isDarkMode()?"#505050":"lightgray");b.style.paddingBottom="14px";b.style.marginBottom="14px"})();b(m.actions.get("insertFreehand"),mxResources.get("freehand"),Editor.freehandImage);var f=m.actions.get("toggleShapes");b(f,mxResources.get("shapes")+" ("+f.shortcut+")",E);O=c("table",null,Editor.calendarImage);O.style.boxShadow="none";O.style.opacity="0.7";O.style.padding="6px";
-O.style.margin="0px";O.style.width="37px";e(O,null,"pointer");O=c("insert",null,Editor.plusImage);O.style.boxShadow="none";O.style.opacity="0.7";O.style.padding="6px";O.style.margin="0px";O.style.width="37px";e(O,null,"pointer")}"1"!=urlParams.embedInline&&F.appendChild(ea)});mxEvent.addListener(ea,"click",mxUtils.bind(this,function(){S?(mxUtils.setPrefixedStyle(F.style,"transform","translate(0, -50%)"),F.style.padding="8px 6px 4px",F.style.top="50%",F.style.bottom="",F.style.height="",ea.style.backgroundImage=
-"url("+mxWindow.prototype.normalizeImage+")",ea.style.width="40px",ea.style.height="12px",ea.setAttribute("title","Minimize"),S=!1,ma()):(F.innerHTML="",F.appendChild(ea),mxUtils.setPrefixedStyle(F.style,"transform","translate(0, 0)"),F.style.top="",F.style.bottom="12px",F.style.padding="0px",F.style.height="24px",ea.style.height="24px",ea.style.backgroundImage="url("+Editor.plusImage+")",ea.setAttribute("title",mxResources.get("insert")),ea.style.width="24px",S=!0)}));ma();m.addListener("darkModeChanged",
-ma);m.addListener("sketchModeChanged",ma)}else m.editor.addListener("statusChanged",mxUtils.bind(this,function(){m.setStatusText(m.editor.getStatus())}));if(null!=y){var pa=function(b){n.popupMenuHandler.hideMenu();mxEvent.isAltDown(b)||mxEvent.isShiftDown(b)?m.actions.get("customZoom").funct():m.actions.get("smartFit").funct()},ra=m.actions.get("zoomIn"),R=m.actions.get("zoomOut"),qa=m.actions.get("resetView"),z=m.actions.get("fullscreen"),ia=m.actions.get("undo"),fa=m.actions.get("redo"),ba=d("",
-ia.funct,null,mxResources.get("undo")+" ("+ia.shortcut+")",ia,Editor.undoImage),na=d("",fa.funct,null,mxResources.get("redo")+" ("+fa.shortcut+")",fa,Editor.redoImage),Aa=d("",z.funct,null,mxResources.get("fullscreen"),z,Editor.fullscreenImage);if(null!=D){y=function(){Z.style.display=null!=m.pages&&("0"!=urlParams.pages||1<m.pages.length||Editor.pagesVisible)?"inline-block":"none"};qa=function(){Z.innerHTML="";null!=m.currentPage&&mxUtils.write(Z,m.currentPage.getName())};Aa.parentNode.removeChild(Aa);
-var xa=m.actions.get("delete"),sa=d("",xa.funct,null,mxResources.get("delete"),xa,Editor.trashImage);sa.style.opacity="0.1";H.appendChild(sa);xa.addListener("stateChanged",function(){sa.style.opacity=xa.enabled?"":"0.1"});var ka=function(){ba.style.display=0<m.editor.undoManager.history.length||n.isEditing()?"inline-block":"none";na.style.display=ba.style.display;ba.style.opacity=ia.enabled?"":"0.1";na.style.opacity=fa.enabled?"":"0.1"};H.appendChild(ba);H.appendChild(na);ia.addListener("stateChanged",
-ka);fa.addListener("stateChanged",ka);ka();null!=urlParams.layers&&(ka=m.actions.get("layers"),ka=d("",ka.funct,null,mxResources.get("layers"),ka,Editor.layersImage),ka.style.opacity="0.4",D.appendChild(ka));null!=urlParams.tags&&(ka=m.actions.get("tags"),ka=d("",ka.funct,null,mxResources.get("tags"),ka,Editor.tagsImage),ka.style.opacity="0.4",D.appendChild(ka));var Z=this.createPageMenuTab(!1,!0);Z.style.display="none";Z.style.position="";Z.style.marginLeft="";Z.style.top="";Z.style.left="";Z.style.height=
-"100%";Z.style.lineHeight="";Z.style.borderStyle="none";Z.style.padding="3px 0";Z.style.margin="0px";Z.style.background="";Z.style.border="";Z.style.boxShadow="none";Z.style.verticalAlign="top";Z.style.width="auto";Z.style.maxWidth="160px";Z.style.position="relative";Z.style.padding="6px";Z.style.textOverflow="ellipsis";Z.style.opacity="0.8";m.editor.addListener("pageSelected",qa);m.editor.addListener("pageRenamed",qa);m.editor.addListener("fileLoaded",qa);qa();null!=m.currentPage&&(mxUtils.write(O,
-m.currentPage.getName()),console.log("initial page not emptry"));D.appendChild(Z);m.addListener("fileDescriptorChanged",y);m.addListener("pagesVisibleChanged",y);y();y=d("",R.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -/Alt+Mousewheel)",R,Editor.zoomOutImage);D.appendChild(y);var O=document.createElement("div");O.innerHTML="100%";O.setAttribute("title",mxResources.get("fitWindow")+"/"+mxResources.get("resetView")+" (Enter)");O.style.display="inline-block";O.style.cursor="pointer";O.style.textAlign=
-"center";O.style.whiteSpace="nowrap";O.style.paddingRight="10px";O.style.textDecoration="none";O.style.verticalAlign="top";O.style.padding="6px 0";O.style.fontSize="14px";O.style.width="40px";O.style.opacity="0.4";D.appendChild(O);mxEvent.addListener(O,"click",pa);pa=d("",ra.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +/Alt+Mousewheel)",ra,Editor.zoomInImage);D.appendChild(pa);z.visible&&(D.appendChild(Aa),mxEvent.addListener(document,"fullscreenchange",function(){Aa.style.backgroundImage=
-"url("+(null!=document.fullscreenElement?Editor.fullscreenExitImage:Editor.fullscreenImage)+")"}));"1"==urlParams.embedInline&&(z=m.actions.get("exit"),D.appendChild(d("",z.funct,null,mxResources.get("exit"),z,Editor.closeImage)));m.tabContainer.style.visibility="hidden";p.style.cssText="position:absolute;right:14px;top:10px;height:30px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px 0px 6px 6px;border-bottom:1px solid lightgray;text-align:right;white-space:nowrap;overflow:hidden;user-select:none;";
-H.style.cssText="position:absolute;left:10px;top:10px;height:30px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;border-bottom:1px solid lightgray;text-align:right;white-space:nowrap;overflow:hidden;user-select:none;";D.style.cssText="position:absolute;right:14px;bottom:14px;height:28px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:8px;white-space:nowrap;user-select:none;";x.appendChild(H);x.appendChild(D);F.style.cssText="position:absolute;left:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:8px 6px 4px 6px;white-space:nowrap;transform:translate(0, -50%);top:50%;user-select:none;";
-x.appendChild(F);window.setTimeout(function(){mxUtils.setPrefixedStyle(F.style,"transition","transform .3s ease-out")},0);"1"==urlParams["format-toolbar"]&&this.installFormatToolbar(x)}else{var Ga=d("",pa,!0,mxResources.get("fit")+" ("+Editor.ctrlKey+"+H)",qa,Editor.zoomFitImage);p.style.cssText="position:absolute;left:0px;right:0px;top:0px;height:30px;padding:8px;text-align:left;white-space:nowrap;";this.tabContainer.style.right="70px";O=t.addMenu("100%",y.funct);O.setAttribute("title",mxResources.get("zoom")+
-" (Alt+Mousewheel)");O.style.whiteSpace="nowrap";O.style.paddingRight="10px";O.style.textDecoration="none";O.style.textDecoration="none";O.style.overflow="hidden";O.style.visibility="hidden";O.style.textAlign="center";O.style.cursor="pointer";O.style.height=parseInt(m.tabContainerHeight)-1+"px";O.style.lineHeight=parseInt(m.tabContainerHeight)+1+"px";O.style.position="absolute";O.style.display="block";O.style.fontSize="12px";O.style.width="59px";O.style.right="0px";O.style.bottom="0px";O.style.backgroundImage=
-"url("+mxWindow.prototype.minimizeImage+")";O.style.backgroundPosition="right 6px center";O.style.backgroundRepeat="no-repeat";x.appendChild(O)}(function(b){var c=mxUtils.bind(this,function(){b.innerHTML="";mxUtils.write(b,Math.round(100*m.editor.graph.view.scale)+"%")});m.editor.graph.view.addListener(mxEvent.EVENT_SCALE,c);m.editor.addListener("resetGraphView",c);m.editor.addListener("pageSelected",c)})(O);var Da=m.setGraphEnabled;m.setGraphEnabled=function(){Da.apply(this,arguments);null!=this.tabContainer&&
-(O.style.visibility=this.tabContainer.style.visibility,this.diagramContainer.style.bottom="hidden"!=this.tabContainer.style.visibility&&null==D?this.tabContainerHeight+"px":"0px")}}x.appendChild(p);x.appendChild(m.diagramContainer);l.appendChild(x);m.updateTabContainer();!EditorUi.windowed&&("1"==urlParams.sketch||1E3<=f)&&"1"!=urlParams.embedInline&&b(this,!0);null==D&&x.appendChild(m.tabContainer);var ya=null;k();mxEvent.addListener(window,"resize",function(){k();null!=m.sidebarWindow&&m.sidebarWindow.window.fit();
-null!=m.formatWindow&&m.formatWindow.window.fit();null!=m.actions.outlineWindow&&m.actions.outlineWindow.window.fit();null!=m.actions.layersWindow&&m.actions.layersWindow.window.fit();null!=m.menus.tagsWindow&&m.menus.tagsWindow.window.fit();null!=m.menus.findWindow&&m.menus.findWindow.window.fit();null!=m.menus.findReplaceWindow&&m.menus.findReplaceWindow.window.fit()});if("1"==urlParams.embedInline){document.body.style.cursor="text";F.style.transform="";mxEvent.addGestureListeners(m.diagramContainer.parentNode,
-function(b){mxEvent.getSource(b)==m.diagramContainer.parentNode&&(m.embedExitPoint=new mxPoint(mxEvent.getClientX(b),mxEvent.getClientY(b)),m.sendEmbeddedSvgExport())});l=document.createElement("div");l.style.position="absolute";l.style.width="10px";l.style.height="10px";l.style.borderRadius="5px";l.style.border="1px solid gray";l.style.background="#ffffff";l.style.cursor="row-resize";m.diagramContainer.parentNode.appendChild(l);m.bottomResizer=l;var Ea=null,va=null,Ha=null,Ca=null;mxEvent.addGestureListeners(l,
-function(b){Ca=parseInt(m.diagramContainer.style.height);va=mxEvent.getClientY(b);n.popupMenuHandler.hideMenu();mxEvent.consume(b)});l=l.cloneNode(!1);l.style.cursor="col-resize";m.diagramContainer.parentNode.appendChild(l);m.rightResizer=l;mxEvent.addGestureListeners(l,function(b){Ha=parseInt(m.diagramContainer.style.width);Ea=mxEvent.getClientX(b);n.popupMenuHandler.hideMenu();mxEvent.consume(b)});mxEvent.addGestureListeners(document.body,null,function(b){var c=!1;null!=Ea&&(m.diagramContainer.style.width=
-Math.max(20,Ha+mxEvent.getClientX(b)-Ea)+"px",c=!0);null!=va&&(m.diagramContainer.style.height=Math.max(20,Ca+mxEvent.getClientY(b)-va)+"px",c=!0);c&&((window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:Editor.inlineFullscreen,rect:m.diagramContainer.getBoundingClientRect()}),"*"),ta(),m.refresh())},function(b){null==Ea&&null==va||mxEvent.consume(b);va=Ea=null});this.diagramContainer.style.borderRadius="4px";document.body.style.backgroundColor="transparent";m.bottomResizer.style.visibility=
-"hidden";m.rightResizer.style.visibility="hidden";H.style.visibility="hidden";D.style.visibility="hidden";F.style.display="none"}"1"==urlParams.prefetchFonts&&m.editor.loadFonts()}}};(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var c=EditorUi.initTheme;EditorUi.initTheme=function(){c.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();DrawioComment=function(b,c,e,f,n,l,q){this.file=b;this.id=c;this.content=e;this.modifiedDate=f;this.createdDate=n;this.isResolved=l;this.user=q;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,c,e,f,n){c()};DrawioComment.prototype.editComment=function(b,c,e){c()};DrawioComment.prototype.deleteComment=function(b,c){b()};DrawioUser=function(b,c,e,f,n){this.id=b;this.email=c;this.displayName=e;this.pictureUrl=f;this.locale=n};mxResources.parse('# *DO NOT DIRECTLY EDIT THIS FILE, IT IS AUTOMATICALLY GENERATED AND IT IS BASED ON:*\n# https://docs.google.com/spreadsheet/ccc?key=0AmQEO36liL4FdDJLWVNMaVV2UmRKSnpXU09MYkdGbEE\nabout=About\naboutDrawio=About draw.io\naccessDenied=Access Denied\naction=Action\nactualSize=Actual Size\nadd=Add\naddAccount=Add account\naddedFile=Added {1}\naddImages=Add Images\naddImageUrl=Add Image URL\naddLayer=Add Layer\naddProperty=Add Property\naddress=Address\naddToExistingDrawing=Add to Existing Drawing\naddWaypoint=Add Waypoint\nadjustTo=Adjust to\nadvanced=Advanced\nalign=Align\nalignment=Alignment\nallChangesLost=All changes will be lost!\nallPages=All Pages\nallProjects=All Projects\nallSpaces=All Spaces\nallTags=All Tags\nanchor=Anchor\nandroid=Android\nangle=Angle\narc=Arc\nareYouSure=Are you sure?\nensureDataSaved=Please ensure your data is saved before closing.\nallChangesSaved=All changes saved\nallChangesSavedInDrive=All changes saved in Drive\nallowPopups=Allow pop-ups to avoid this dialog.\nallowRelativeUrl=Allow relative URL\nalreadyConnected=Nodes already connected\napply=Apply\narchiMate21=ArchiMate 2.1\narrange=Arrange\narrow=Arrow\narrows=Arrows\nasNew=As New\natlas=Atlas\nauthor=Author\nauthorizationRequired=Authorization required\nauthorizeThisAppIn=Authorize this app in {1}:\nauthorize=Authorize\nauthorizing=Authorizing\nautomatic=Automatic\nautosave=Autosave\nautosize=Autosize\nattachments=Attachments\naws=AWS\naws3d=AWS 3D\nazure=Azure\nback=Back\nbackground=Background\nbackgroundColor=Background Color\nbackgroundImage=Background Image\nbasic=Basic\nblankDrawing=Blank Drawing\nblankDiagram=Blank Diagram\nblock=Block\nblockquote=Blockquote\nblog=Blog\nbold=Bold\nbootstrap=Bootstrap\nborder=Border\nborderColor=Border Color\nborderWidth=Border Width\nbottom=Bottom\nbottomAlign=Bottom Align\nbottomLeft=Bottom Left\nbottomRight=Bottom Right\nbpmn=BPMN\nbringForward=Bring Forward\nbrowser=Browser\nbulletedList=Bulleted List\nbusiness=Business\nbusy=Operation in progress\ncabinets=Cabinets\ncancel=Cancel\ncenter=Center\ncannotLoad=Load attempts failed. Please try again later.\ncannotLogin=Log in attempts failed. Please try again later.\ncannotOpenFile=Cannot open file\nchange=Change\nchangeOrientation=Change Orientation\nchangeUser=Change user\nchangeStorage=Change storage\nchangesNotSaved=Changes have not been saved\nclassDiagram=Class Diagram\nuserJoined={1} has joined\nuserLeft={1} has left\nchatWindowTitle=Chat\nchooseAnOption=Choose an option\nchromeApp=Chrome App\ncollaborativeEditingNotice=Important Notice for Collaborative Editing\ncompare=Compare\ncompressed=Compressed\ncommitMessage=Commit Message\nconfigLinkWarn=This link configures draw.io. Only click OK if you trust whoever gave you it!\nconfigLinkConfirm=Click OK to configure and restart draw.io.\ncontainer=Container\ncsv=CSV\ndark=Dark\ndiagramXmlDesc=XML File\ndiagramHtmlDesc=HTML File\ndiagramPngDesc=Editable Bitmap Image\ndiagramSvgDesc=Editable Vector Image\ndidYouMeanToExportToPdf=Did you mean to export to PDF?\ndraftFound=A draft for \'{1}\' has been found. Load it into the editor or discard it to continue.\ndraftRevisionMismatch=There is a different version of this diagram on a shared draft of this page. Please edit the diagram from the draft to ensure you are working with the latest version.\nselectDraft=Select a draft to continue editing:\ndragAndDropNotSupported=Drag and drop not supported for images. Would you like to import instead?\ndropboxCharsNotAllowed=The following characters are not allowed: / : ? * " |\ncheck=Check\nchecksum=Checksum\ncircle=Circle\ncisco=Cisco\nclassic=Classic\nclearDefaultStyle=Clear Default Style\nclearWaypoints=Clear Waypoints\nclipart=Clipart\nclose=Close\nclosingFile=Closing file\ncollaborator=Collaborator\ncollaborators=Collaborators\ncollapse=Collapse\ncollapseExpand=Collapse/Expand\ncollapse-expand=Click to collapse/expand\nShift-click to move neighbors \nAlt-click to protect group size\ncollapsible=Collapsible\ncomic=Comic\ncomment=Comment\ncommentsNotes=Comments/Notes\ncompress=Compress\nconfiguration=Configuration\nconnect=Connect\nconnecting=Connecting\nconnectWithDrive=Connect with Google Drive\nconnection=Connection\nconnectionArrows=Connection Arrows\nconnectionPoints=Connection Points\nconstrainProportions=Constrain Proportions\ncontainsValidationErrors=Contains validation errors\ncopiedToClipboard=Copied to clipboard\ncopy=Copy\ncopyConnect=Copy on connect\ncopyCreated=A copy of the file was created.\ncopyData=Copy Data\ncopyOf=Copy of {1}\ncopyOfDrawing=Copy of Drawing\ncopySize=Copy Size\ncopyStyle=Copy Style\ncreate=Create\ncreateNewDiagram=Create New Diagram\ncreateRevision=Create Revision\ncreateShape=Create Shape\ncrop=Crop\ncurved=Curved\ncustom=Custom\ncurrent=Current\ncurrentPage=Current page\ncut=Cut\ndashed=Dashed\ndecideLater=Decide later\ndefault=Default\ndelete=Delete\ndeleteColumn=Delete Column\ndeleteLibrary401=Insufficient permissions to delete this library\ndeleteLibrary404=Selected library could not be found\ndeleteLibrary500=Error deleting library\ndeleteLibraryConfirm=You are about to permanently delete this library. Are you sure you want to do this?\ndeleteRow=Delete Row\ndescription=Description\ndevice=Device\ndiagram=Diagram\ndiagramContent=Diagram Content\ndiagramLocked=Diagram has been locked to prevent further data loss.\ndiagramLockedBySince=The diagram is locked by {1} since {2} ago\ndiagramName=Diagram Name\ndiagramIsPublic=Diagram is public\ndiagramIsNotPublic=Diagram is not public\ndiamond=Diamond\ndiamondThin=Diamond (thin)\ndidYouKnow=Did you know...\ndirection=Direction\ndiscard=Discard\ndiscardChangesAndReconnect=Discard Changes and Reconnect\ngoogleDriveMissingClickHere=Google Drive missing? Click here!\ndiscardChanges=Discard Changes\ndisconnected=Disconnected\ndistribute=Distribute\ndone=Done\ndoNotShowAgain=Do not show again\ndotted=Dotted\ndoubleClickOrientation=Doubleclick to change orientation\ndoubleClickTooltip=Doubleclick to insert text\ndoubleClickChangeProperty=Doubleclick to change property name\ndownload=Download\ndownloadDesktop=Get Desktop\ndownloadAs=Download as\nclickHereToSave=Click here to save.\ndpi=DPI\ndraftDiscarded=Draft discarded\ndraftSaved=Draft saved\ndragElementsHere=Drag elements here\ndragImagesHere=Drag images or URLs here\ndragUrlsHere=Drag URLs here\ndraw.io=draw.io\ndrawing=Drawing{1}\ndrawingEmpty=Drawing is empty\ndrawingTooLarge=Drawing is too large\ndrawioForWork=Draw.io for GSuite\ndropbox=Dropbox\nduplicate=Duplicate\nduplicateIt=Duplicate {1}\ndivider=Divider\ndx=Dx\ndy=Dy\neast=East\nedit=Edit\neditData=Edit Data\neditDiagram=Edit Diagram\neditGeometry=Edit Geometry\neditImage=Edit Image\neditImageUrl=Edit Image URL\neditLink=Edit Link\neditShape=Edit Shape\neditStyle=Edit Style\neditText=Edit Text\neditTooltip=Edit Tooltip\nglass=Glass\ngoogleImages=Google Images\nimageSearch=Image Search\neip=EIP\nembed=Embed\nembedFonts=Embed Fonts\nembedImages=Embed Images\nmainEmbedNotice=Paste this into the page\nelectrical=Electrical\nellipse=Ellipse\nembedNotice=Paste this once at the end of the page\nenterGroup=Enter Group\nenterName=Enter Name\nenterPropertyName=Enter Property Name\nenterValue=Enter Value\nentityRelation=Entity Relation\nentityRelationshipDiagram=Entity Relationship Diagram\nerror=Error\nerrorDeletingFile=Error deleting file\nerrorLoadingFile=Error loading file\nerrorRenamingFile=Error renaming file\nerrorRenamingFileNotFound=Error renaming file. File was not found.\nerrorRenamingFileForbidden=Error renaming file. Insufficient access rights.\nerrorSavingDraft=Error saving draft\nerrorSavingFile=Error saving file\nerrorSavingFileUnknown=Error authorizing with Google\'s servers. Please refresh the page to re-attempt.\nerrorSavingFileForbidden=Error saving file. Insufficient access rights.\nerrorSavingFileNameConflict=Could not save diagram. Current page already contains file named \'{1}\'.\nerrorSavingFileNotFound=Error saving file. File was not found.\nerrorSavingFileReadOnlyMode=Could not save diagram while read-only mode is active.\nerrorSavingFileSessionTimeout=Your session has ended. Please <a target=\'_blank\' href=\'{1}\'>{2}</a> and return to this tab to try to save again.\nerrorSendingFeedback=Error sending feedback.\nerrorUpdatingPreview=Error updating preview.\nexit=Exit\nexitGroup=Exit Group\nexpand=Expand\nexport=Export\nexporting=Exporting\nexportAs=Export as\nexportOptionsDisabled=Export options disabled\nexportOptionsDisabledDetails=The owner has disabled options to download, print or copy for commenters and viewers on this file.\nexternalChanges=External Changes\nextras=Extras\nfacebook=Facebook\nfailedToSaveTryReconnect=Failed to save, trying to reconnect\nfeatureRequest=Feature Request\nfeedback=Feedback\nfeedbackSent=Feedback successfully sent.\nfloorplans=Floorplans\nfile=File\nfileChangedOverwriteDialog=The file has been modified. Do you want to save the file and overwrite those changes?\nfileChangedSyncDialog=The file has been modified.\nfileChangedSync=The file has been modified. Click here to synchronize.\noverwrite=Overwrite\nsynchronize=Synchronize\nfilename=Filename\nfileExists=File already exists\nfileMovedToTrash=File was moved to trash\nfileNearlyFullSeeFaq=File nearly full, please see FAQ\nfileNotFound=File not found\nrepositoryNotFound=Repository not found\nfileNotFoundOrDenied=The file was not found. It does not exist or you do not have access.\nfileNotLoaded=File not loaded\nfileNotSaved=File not saved\nfileOpenLocation=How would you like to open these file(s)?\nfiletypeHtml=.html causes file to save as HTML with redirect to cloud URL\nfiletypePng=.png causes file to save as PNG with embedded data\nfiletypeSvg=.svg causes file to save as SVG with embedded data\nfileWillBeSavedInAppFolder={1} will be saved in the app folder.\nfill=Fill\nfillColor=Fill Color\nfilterCards=Filter Cards\nfind=Find\nfit=Fit\nfitContainer=Resize Container\nfitIntoContainer=Fit into Container\nfitPage=Fit Page\nfitPageWidth=Fit Page Width\nfitTo=Fit to\nfitToSheetsAcross=sheet(s) across\nfitToBy=by\nfitToSheetsDown=sheet(s) down\nfitTwoPages=Two Pages\nfitWindow=Fit Window\nflip=Flip\nflipH=Flip Horizontal\nflipV=Flip Vertical\nflowchart=Flowchart\nfolder=Folder\nfont=Font\nfontColor=Font Color\nfontFamily=Font Family\nfontSize=Font Size\nforbidden=You are not authorized to access this file\nformat=Format\nformatPanel=Format Panel\nformatted=Formatted\nformattedText=Formatted Text\nformatPng=PNG\nformatGif=GIF\nformatJpg=JPEG\nformatPdf=PDF\nformatSql=SQL\nformatSvg=SVG\nformatHtmlEmbedded=HTML\nformatSvgEmbedded=SVG (with XML)\nformatVsdx=VSDX\nformatVssx=VSSX\nformatXmlPlain=XML (Plain)\nformatXml=XML\nforum=Discussion/Help Forums\nfreehand=Freehand\nfromTemplate=From Template\nfromTemplateUrl=From Template URL\nfromText=From Text\nfromUrl=From URL\nfromThisPage=From this page\nfullscreen=Fullscreen\ngap=Gap\ngcp=GCP\ngeneral=General\ngetNotionChromeExtension=Get the Notion Chrome Extension\ngithub=GitHub\ngitlab=GitLab\ngliffy=Gliffy\nglobal=Global\ngoogleDocs=Google Docs\ngoogleDrive=Google Drive\ngoogleGadget=Google Gadget\ngooglePlus=Google+\ngoogleSharingNotAvailable=Sharing is only available via Google Drive. Please click Open below and share from the more actions menu:\ngoogleSlides=Google Slides\ngoogleSites=Google Sites\ngoogleSheets=Google Sheets\ngradient=Gradient\ngradientColor=Color\ngrid=Grid\ngridColor=Grid Color\ngridSize=Grid Size\ngroup=Group\nguides=Guides\nhateApp=I hate draw.io\nheading=Heading\nheight=Height\nhelp=Help\nhelpTranslate=Help us translate this application\nhide=Hide\nhideIt=Hide {1}\nhidden=Hidden\nhome=Home\nhorizontal=Horizontal\nhorizontalFlow=Horizontal Flow\nhorizontalTree=Horizontal Tree\nhowTranslate=How good is the translation in your language?\nhtml=HTML\nhtmlText=HTML Text\nid=ID\niframe=IFrame\nignore=Ignore\nimage=Image\nimageUrl=Image URL\nimages=Images\nimagePreviewError=This image couldn\'t be loaded for preview. Please check the URL.\nimageTooBig=Image too big\nimgur=Imgur\nimport=Import\nimportFrom=Import from\nincludeCopyOfMyDiagram=Include a copy of my diagram\nincreaseIndent=Increase Indent\ndecreaseIndent=Decrease Indent\ninsert=Insert\ninsertColumnBefore=Insert Column Left\ninsertColumnAfter=Insert Column Right\ninsertEllipse=Insert Ellipse\ninsertImage=Insert Image\ninsertHorizontalRule=Insert Horizontal Rule\ninsertLink=Insert Link\ninsertPage=Insert Page\ninsertRectangle=Insert Rectangle\ninsertRhombus=Insert Rhombus\ninsertRowBefore=Insert Row Above\ninsertRowAfter=Insert Row After\ninsertText=Insert Text\ninserting=Inserting\ninstallApp=Install App\ninvalidFilename=Diagram names must not contain the following characters: / | : ; { } < > & + ? = "\ninvalidLicenseSeeThisPage=Your license is invalid, please see this <a target="_blank" href="https://support.draw.io/display/DFCS/Licensing+your+draw.io+plugin">page</a>.\ninvalidInput=Invalid input\ninvalidName=Invalid name\ninvalidOrMissingFile=Invalid or missing file\ninvalidPublicUrl=Invalid public URL\nisometric=Isometric\nios=iOS\nitalic=Italic\nkennedy=Kennedy\nkeyboardShortcuts=Keyboard Shortcuts\nlabels=Labels\nlayers=Layers\nlandscape=Landscape\nlanguage=Language\nleanMapping=Lean Mapping\nlastChange=Last change {1} ago\nlessThanAMinute=less than a minute\nlicensingError=Licensing Error\nlicenseHasExpired=The license for {1} has expired on {2}. Click here.\nlicenseRequired=This feature requires draw.io to be licensed.\nlicenseWillExpire=The license for {1} will expire on {2}. Click here.\nlineJumps=Line jumps\nlinkAccountRequired=If the diagram is not public a Google account is required to view the link.\nlinkText=Link Text\nlist=List\nminute=minute\nminutes=minutes\nhours=hours\ndays=days\nmonths=months\nyears=years\nrestartForChangeRequired=Changes will take effect after a restart of the application.\nlaneColor=Lanecolor\nlastModified=Last modified\nlayout=Layout\nleft=Left\nleftAlign=Left Align\nleftToRight=Left to right\nlibraryTooltip=Drag and drop shapes here or click + to insert. Double click to edit.\nlightbox=Lightbox\nline=Line\nlineend=Line end\nlineheight=Line Height\nlinestart=Line start\nlinewidth=Linewidth\nlink=Link\nlinks=Links\nloading=Loading\nlockUnlock=Lock/Unlock\nloggedOut=Logged Out\nlogIn=log in\nloveIt=I love {1}\nlucidchart=Lucidchart\nmaps=Maps\nmathematicalTypesetting=Mathematical Typesetting\nmakeCopy=Make a Copy\nmanual=Manual\nmerge=Merge\nmermaid=Mermaid\nmicrosoftOffice=Microsoft Office\nmicrosoftExcel=Microsoft Excel\nmicrosoftPowerPoint=Microsoft PowerPoint\nmicrosoftWord=Microsoft Word\nmiddle=Middle\nminimal=Minimal\nmisc=Misc\nmockups=Mockups\nmodificationDate=Modification date\nmodifiedBy=Modified by\nmore=More\nmoreResults=More Results\nmoreShapes=More Shapes\nmove=Move\nmoveToFolder=Move to Folder\nmoving=Moving\nmoveSelectionTo=Move selection to {1}\nname=Name\nnavigation=Navigation\nnetwork=Network\nnetworking=Networking\nnew=New\nnewLibrary=New Library\nnextPage=Next Page\nno=No\nnoPickFolder=No, pick folder\nnoAttachments=No attachments found\nnoColor=No Color\nnoFiles=No Files\nnoFileSelected=No file selected\nnoLibraries=No libraries found\nnoMoreResults=No more results\nnone=None\nnoOtherViewers=No other viewers\nnoPlugins=No plugins\nnoPreview=No preview\nnoResponse=No response from server\nnoResultsFor=No results for \'{1}\'\nnoRevisions=No revisions\nnoSearchResults=No search results found\nnoPageContentOrNotSaved=No anchors found on this page or it hasn\'t been saved yet\nnormal=Normal\nnorth=North\nnotADiagramFile=Not a diagram file\nnotALibraryFile=Not a library file\nnotAvailable=Not available\nnotAUtf8File=Not a UTF-8 file\nnotConnected=Not connected\nnote=Note\nnotion=Notion\nnotSatisfiedWithImport=Not satisfied with the import?\nnotUsingService=Not using {1}?\nnumberedList=Numbered list\noffline=Offline\nok=OK\noneDrive=OneDrive\nonline=Online\nopacity=Opacity\nopen=Open\nopenArrow=Open Arrow\nopenExistingDiagram=Open Existing Diagram\nopenFile=Open File\nopenFrom=Open from\nopenLibrary=Open Library\nopenLibraryFrom=Open Library from\nopenLink=Open Link\nopenInNewWindow=Open in New Window\nopenInThisWindow=Open in This Window\nopenIt=Open {1}\nopenRecent=Open Recent\nopenSupported=Supported formats are files saved from this software (.xml), .vsdx and .gliffy\noptions=Options\norganic=Organic\norgChart=Org Chart\northogonal=Orthogonal\notherViewer=other viewer\notherViewers=other viewers\noutline=Outline\noval=Oval\npage=Page\npageContent=Page Content\npageNotFound=Page not found\npageWithNumber=Page-{1}\npages=Pages\npageView=Page View\npageSetup=Page Setup\npageScale=Page Scale\npan=Pan\npanTooltip=Space+Drag to pan\npaperSize=Paper Size\npattern=Pattern\nparallels=Parallels\npaste=Paste\npasteData=Paste Data\npasteHere=Paste here\npasteSize=Paste Size\npasteStyle=Paste Style\nperimeter=Perimeter\npermissionAnyone=Anyone can edit\npermissionAuthor=Owner and admins can edit\npickFolder=Pick a folder\npickLibraryDialogTitle=Select Library\npublicDiagramUrl=Public URL of the diagram\nplaceholders=Placeholders\nplantUml=PlantUML\nplugins=Plugins\npluginUrl=Plugin URL\npluginWarning=The page has requested to load the following plugin(s):\n \n {1}\n \n Would you like to load these plugin(s) now?\n \n NOTE : Only allow plugins to run if you fully understand the security implications of doing so.\n\nplusTooltip=Click to connect and clone (ctrl+click to clone, shift+click to connect). Drag to connect (ctrl+drag to clone).\nportrait=Portrait\nposition=Position\nposterPrint=Poster Print\npreferences=Preferences\npreview=Preview\npreviousPage=Previous Page\nprint=Print\nprintAllPages=Print All Pages\nprocEng=Proc. Eng.\nproject=Project\npriority=Priority\nproperties=Properties\npublish=Publish\nquickStart=Quick Start Video\nrack=Rack\nradial=Radial\nradialTree=Radial Tree\nreadOnly=Read-only\nreconnecting=Reconnecting\nrecentlyUpdated=Recently Updated\nrecentlyViewed=Recently Viewed\nrectangle=Rectangle\nredirectToNewApp=This file was created or modified in a newer version of this app. You will be redirected now.\nrealtimeTimeout=It looks like you\'ve made a few changes while offline. We\'re sorry, these changes cannot be saved.\nredo=Redo\nrefresh=Refresh\nregularExpression=Regular Expression\nrelative=Relative\nrelativeUrlNotAllowed=Relative URL not allowed\nrememberMe=Remember me\nrememberThisSetting=Remember this setting\nremoveFormat=Clear Formatting\nremoveFromGroup=Remove from Group\nremoveIt=Remove {1}\nremoveWaypoint=Remove Waypoint\nrename=Rename\nrenamed=Renamed\nrenameIt=Rename {1}\nrenaming=Renaming\nreplace=Replace\nreplaceIt={1} already exists. Do you want to replace it?\nreplaceExistingDrawing=Replace existing drawing\nrequired=required\nreset=Reset\nresetView=Reset View\nresize=Resize\nresizeLargeImages=Do you want to resize large images to make the application run faster?\nretina=Retina\nresponsive=Responsive\nrestore=Restore\nrestoring=Restoring\nretryingIn=Retrying in {1} second(s)\nretryingLoad=Load failed. Retrying...\nretryingLogin=Login time out. Retrying...\nreverse=Reverse\nrevision=Revision\nrevisionHistory=Revision History\nrhombus=Rhombus\nright=Right\nrightAlign=Right Align\nrightToLeft=Right to left\nrotate=Rotate\nrotateTooltip=Click and drag to rotate, click to turn shape only by 90 degrees\nrotation=Rotation\nrounded=Rounded\nsave=Save\nsaveAndExit=Save & Exit\nsaveAs=Save as\nsaveAsXmlFile=Save as XML file?\nsaved=Saved\nsaveDiagramFirst=Please save the diagram first\nsaveDiagramsTo=Save diagrams to\nsaveLibrary403=Insufficient permissions to edit this library\nsaveLibrary500=There was an error while saving the library\nsaveLibraryReadOnly=Could not save library while read-only mode is active\nsaving=Saving\nscratchpad=Scratchpad\nscrollbars=Scrollbars\nsearch=Search\nsearchShapes=Search Shapes\nselectAll=Select All\nselectionOnly=Selection Only\nselectCard=Select Card\nselectEdges=Select Edges\nselectFile=Select File\nselectFolder=Select Folder\nselectFont=Select Font\nselectNone=Select None\nselectTemplate=Select Template\nselectVertices=Select Vertices\nsendBackward=Send Backward\nsendMessage=Send\nsendYourFeedback=Send your feedback\nserviceUnavailableOrBlocked=Service unavailable or blocked\nsessionExpired=Your session has expired. Please refresh the browser window.\nsessionTimeoutOnSave=Your session has timed out and you have been disconnected from the Google Drive. Press OK to login and save.\nsetAsDefaultStyle=Set as Default Style\nshadow=Shadow\nshape=Shape\nshapes=Shapes\nshare=Share\nshareLink=Link for shared editing\nsharingAvailable=Sharing available for Google Drive and OneDrive files.\nsharp=Sharp\nshow=Show\nshowStartScreen=Show Start Screen\nsidebarTooltip=Click to expand. Drag and drop shapes into the diagram. Shift+click to change selection. Alt+click to insert and connect.\nsigns=Signs\nsignOut=Sign out\nsimple=Simple\nsimpleArrow=Simple Arrow\nsimpleViewer=Simple Viewer\nsize=Size\nsketch=Sketch\nsnapToGrid=Snap to Grid\nsolid=Solid\nsourceSpacing=Source Spacing\nsouth=South\nsoftware=Software\nspace=Space\nspacing=Spacing\nspecialLink=Special Link\nstandard=Standard\nstartDrawing=Start drawing\nstopDrawing=Stop drawing\nstarting=Starting\nstraight=Straight\nstrikethrough=Strikethrough\nstrokeColor=Line Color\nstyle=Style\nsubscript=Subscript\nsummary=Summary\nsuperscript=Superscript\nsupport=Support\nswimlaneDiagram=Swimlane Diagram\nsysml=SysML\ntags=Tags\ntable=Table\ntables=Tables\ntakeOver=Take Over\ntargetSpacing=Target Spacing\ntemplate=Template\ntemplates=Templates\ntext=Text\ntextAlignment=Text Alignment\ntextOpacity=Text Opacity\ntheme=Theme\ntimeout=Timeout\ntitle=Title\nto=to\ntoBack=To Back\ntoFront=To Front\ntooLargeUseDownload=Too large, use download instead.\ntoolbar=Toolbar\ntooltips=Tooltips\ntop=Top\ntopAlign=Top Align\ntopLeft=Top Left\ntopRight=Top Right\ntransparent=Transparent\ntransparentBackground=Transparent Background\ntrello=Trello\ntryAgain=Try again\ntryOpeningViaThisPage=Try opening via this page\nturn=Rotate shape only by 90°\ntype=Type\ntwitter=Twitter\numl=UML\nunderline=Underline\nundo=Undo\nungroup=Ungroup\nunmerge=Unmerge\nunsavedChanges=Unsaved changes\nunsavedChangesClickHereToSave=Unsaved changes. Click here to save.\nuntitled=Untitled\nuntitledDiagram=Untitled Diagram\nuntitledLayer=Untitled Layer\nuntitledLibrary=Untitled Library\nunknownError=Unknown error\nupdateFile=Update {1}\nupdatingDocument=Updating Document. Please wait...\nupdatingPreview=Updating Preview. Please wait...\nupdatingSelection=Updating Selection. Please wait...\nupload=Upload\nurl=URL\nuseOffline=Use Offline\nuseRootFolder=Use root folder?\nuserManual=User Manual\nvertical=Vertical\nverticalFlow=Vertical Flow\nverticalTree=Vertical Tree\nview=View\nviewerSettings=Viewer Settings\nviewUrl=Link to view: {1}\nvoiceAssistant=Voice Assistant (beta)\nwarning=Warning\nwaypoints=Waypoints\nwest=West\nwidth=Width\nwiki=Wiki\nwordWrap=Word Wrap\nwritingDirection=Writing Direction\nyes=Yes\nyourEmailAddress=Your email address\nzoom=Zoom\nzoomIn=Zoom In\nzoomOut=Zoom Out\nbasic=Basic\nbusinessprocess=Business Processes\ncharts=Charts\nengineering=Engineering\nflowcharts=Flowcharts\ngmdl=Material Design\nmindmaps=Mindmaps\nmockups=Mockups\nnetworkdiagrams=Network Diagrams\nnothingIsSelected=Nothing is selected\nother=Other\nsoftwaredesign=Software Design\nvenndiagrams=Venn Diagrams\nwebEmailOrOther=Web, email or any other internet address\nwebLink=Web Link\nwireframes=Wireframes\nproperty=Property\nvalue=Value\nshowMore=Show More\nshowLess=Show Less\nmyDiagrams=My Diagrams\nallDiagrams=All Diagrams\nrecentlyUsed=Recently used\nlistView=List view\ngridView=Grid view\nresultsFor=Results for \'{1}\'\noneDriveCharsNotAllowed=The following characters are not allowed: ~ " # % * : < > ? / { | }\noneDriveInvalidDeviceName=The specified device name is invalid\nofficeNotLoggedOD=You are not logged in to OneDrive. Please open draw.io task pane and login first.\nofficeSelectSingleDiag=Please select a single draw.io diagram only without other contents.\nofficeSelectDiag=Please select a draw.io diagram.\nofficeCannotFindDiagram=Cannot find a draw.io diagram in the selection\nnoDiagrams=No diagrams found\nauthFailed=Authentication failed\nofficeFailedAuthMsg=Unable to successfully authenticate user or authorize application.\nconvertingDiagramFailed=Converting diagram failed\nofficeCopyImgErrMsg=Due to some limitations in the host application, the image could not be inserted. Please manually copy the image then paste it to the document.\ninsertingImageFailed=Inserting image failed\nofficeCopyImgInst=Instructions: Right-click the image below. Select "Copy image" from the context menu. Then, in the document, right-click and select "Paste" from the context menu.\nfolderEmpty=Folder is empty\nrecent=Recent\nsharedWithMe=Shared With Me\nsharepointSites=Sharepoint Sites\nerrorFetchingFolder=Error fetching folder items\nerrorAuthOD=Error authenticating to OneDrive\nofficeMainHeader=Adds draw.io diagrams to your document.\nofficeStepsHeader=This add-in performs the following steps:\nofficeStep1=Connects to Microsoft OneDrive, Google Drive or your device.\nofficeStep2=Select a draw.io diagram.\nofficeStep3=Insert the diagram into the document.\nofficeAuthPopupInfo=Please complete the authentication in the pop-up window.\nofficeSelDiag=Select draw.io Diagram:\nfiles=Files\nshared=Shared\nsharepoint=Sharepoint\nofficeManualUpdateInst=Instructions: Copy draw.io diagram from the document. Then, in the box below, right-click and select "Paste" from the context menu.\nofficeClickToEdit=Click icon to start editing:\npasteDiagram=Paste draw.io diagram here\nconnectOD=Connect to OneDrive\nselectChildren=Select Children\nselectSiblings=Select Siblings\nselectParent=Select Parent\nselectDescendants=Select Descendants\nlastSaved=Last saved {1} ago\nresolve=Resolve\nreopen=Re-open\nshowResolved=Show Resolved\nreply=Reply\nobjectNotFound=Object not found\nreOpened=Re-opened\nmarkedAsResolved=Marked as resolved\nnoCommentsFound=No comments found\ncomments=Comments\ntimeAgo={1} ago\nconfluenceCloud=Confluence Cloud\nlibraries=Libraries\nconfAnchor=Confluence Page Anchor\nconfTimeout=The connection has timed out\nconfSrvTakeTooLong=The server at {1} is taking too long to respond.\nconfCannotInsertNew=Cannot insert draw.io diagram to a new Confluence page\nconfSaveTry=Please save the page and try again.\nconfCannotGetID=Unable to determine page ID\nconfContactAdmin=Please contact your Confluence administrator.\nreadErr=Read Error\neditingErr=Editing Error\nconfExtEditNotPossible=This diagram cannot be edited externally. Please try editing it while editing the page\nconfEditedExt=Diagram/Page edited externally\ndiagNotFound=Diagram Not Found\nconfEditedExtRefresh=Diagram/Page is edited externally. Please refresh the page.\nconfCannotEditDraftDelOrExt=Cannot edit diagrams in a draft page, diagram is deleted from the page, or diagram is edited externally. Please check the page.\nretBack=Return back\nconfDiagNotPublished=The diagram does not belong to a published page\ncreatedByDraw=Created by draw.io\nfilenameShort=Filename too short\ninvalidChars=Invalid characters\nalreadyExst={1} already exists\ndraftReadErr=Draft Read Error\ndiagCantLoad=Diagram cannot be loaded\ndraftWriteErr=Draft Write Error\ndraftCantCreate=Draft could not be created\nconfDuplName=Duplicate diagram name detected. Please pick another name.\nconfSessionExpired=Looks like your session expired. Log in again to keep working.\nlogin=Login\ndrawPrev=draw.io preview\ndrawDiag=draw.io diagram\ninvalidCallFnNotFound=Invalid Call: {1} not found\ninvalidCallErrOccured=Invalid Call: An error occurred, {1}\nanonymous=Anonymous\nconfGotoPage=Go to containing page\nshowComments=Show Comments\nconfError=Error: {1}\ngliffyImport=Gliffy Import\ngliffyImportInst1=Click the "Start Import" button to import all Gliffy diagrams to draw.io.\ngliffyImportInst2=Please note that the import procedure will take some time and the browser window must remain open until the import is completed.\nstartImport=Start Import\ndrawConfig=draw.io Configuration\ncustomLib=Custom Libraries\ncustomTemp=Custom Templates\npageIdsExp=Page IDs Export\ndrawReindex=draw.io re-indexing (beta)\nworking=Working\ndrawConfigNotFoundInst=draw.io Configuration Space (DRAWIOCONFIG) does not exist. This space is needed to store draw.io configuration files and custom libraries/templates.\ncreateConfSp=Create Config Space\nunexpErrRefresh=Unexpected error, please refresh the page and try again.\nconfigJSONInst=Write draw.io JSON configuration in the editor below then click save. If you need help, please refer to\nthisPage=this page\ncurCustLib=Current Custom Libraries\nlibName=Library Name\naction=Action\ndrawConfID=draw.io Config ID\naddLibInst=Click the "Add Library" button to upload a new library.\naddLib=Add Library\ncustomTempInst1=Custom templates are draw.io diagrams saved in children pages of\ncustomTempInst2=For more details, please refer to\ntempsPage=Templates page\npageIdsExpInst1=Select export target, then click the "Start Export" button to export all pages IDs.\npageIdsExpInst2=Please note that the export procedure will take some time and the browser window must remain open until the export is completed.\nstartExp=Start Export\nrefreshDrawIndex=Refresh draw.io Diagrams Index\nreindexInst1=Click the "Start Indexing" button to refresh draw.io diagrams index.\nreindexInst2=Please note that the indexing procedure will take some time and the browser window must remain open until the indexing is completed.\nstartIndexing=Start Indexing\nconfAPageFoundFetch=Page "{1}" found. Fetching\nconfAAllDiagDone=All {1} diagrams processed. Process finished.\nconfAStartedProcessing=Started processing page "{1}"\nconfAAllDiagInPageDone=All {1} diagrams in page "{2}" processed successfully.\nconfAPartialDiagDone={1} out of {2} {3} diagrams in page "{4}" processed successfully.\nconfAUpdatePageFailed=Updating page "{1}" failed.\nconfANoDiagFoundInPage=No {1} diagrams found in page "{2}".\nconfAFetchPageFailed=Fetching the page failed.\nconfANoDiagFound=No {1} diagrams found. Process finished.\nconfASearchFailed=Searching for {1} diagrams failed. Please try again later.\nconfAGliffyDiagFound={2} diagram "{1}" found. Importing\nconfAGliffyDiagImported={2} diagram "{1}" imported successfully.\nconfASavingImpGliffyFailed=Saving imported {2} diagram "{1}" failed.\nconfAImportedFromByDraw=Imported from "{1}" by draw.io\nconfAImportGliffyFailed=Importing {2} diagram "{1}" failed.\nconfAFetchGliffyFailed=Fetching {2} diagram "{1}" failed.\nconfACheckBrokenDiagLnk=Checking for broken diagrams links.\nconfADelDiagLinkOf=Deleting diagram link of "{1}"\nconfADupLnk=(duplicate link)\nconfADelDiagLnkFailed=Deleting diagram link of "{1}" failed.\nconfAUnexpErrProcessPage=Unexpected error during processing the page with id: {1}\nconfADiagFoundIndex=Diagram "{1}" found. Indexing\nconfADiagIndexSucc=Diagram "{1}" indexed successfully.\nconfAIndexDiagFailed=Indexing diagram "{1}" failed.\nconfASkipDiagOtherPage=Skipped "{1}" as it belongs to another page!\nconfADiagUptoDate=Diagram "{1}" is up to date.\nconfACheckPagesWDraw=Checking pages having draw.io diagrams.\nconfAErrOccured=An error occurred!\nsavedSucc=Saved successfully\nconfASaveFailedErr=Saving Failed (Unexpected Error)\ncharacter=Character\nconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachment\nconfALibPageDesc=This page contains draw.io custom libraries as attachments\nconfATempPageDesc=This page contains draw.io custom templates as attachments\nworking=Working\nconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templates\nconfANoCustLib=No Custom Libraries\ndelFailed=Delete failed!\nshowID=Show ID\nconfAIncorrectLibFileType=Incorrect file type. Libraries should be XML files.\nuploading=Uploading\nconfALibExist=This library already exists\nconfAUploadSucc=Uploaded successfully\nconfAUploadFailErr=Upload Failed (Unexpected Error)\nhiResPreview=High Res Preview\nofficeNotLoggedGD=You are not logged in to Google Drive. Please open draw.io task pane and login first.\nofficePopupInfo=Please complete the process in the pop-up window.\npickODFile=Pick OneDrive File\npickGDriveFile=Pick Google Drive File\npickDeviceFile=Pick Device File\nvsdNoConfig="vsdurl" is not configured\nruler=Ruler\nunits=Units\npoints=Points\ninches=Inches\nmillimeters=Millimeters\nconfEditDraftDelOrExt=This diagram is in a draft page, is deleted from the page, or is edited externally. It will be saved as a new attachment version and may not be reflected in the page.\nconfDiagEditedExt=Diagram is edited in another session. It will be saved as a new attachment version but the page will show other session\'s modifications.\nmacroNotFound=Macro Not Found\nconfAInvalidPageIdsFormat=Incorrect Page IDs file format\nconfACollectingCurPages=Collecting current pages\nconfABuildingPagesMap=Building pages mapping\nconfAProcessDrawDiag=Started processing imported draw.io diagrams\nconfAProcessDrawDiagDone=Finished processing imported draw.io diagrams\nconfAProcessImpPages=Started processing imported pages\nconfAErrPrcsDiagInPage=Error processing draw.io diagrams in page "{1}"\nconfAPrcsDiagInPage=Processing draw.io diagrams in page "{1}"\nconfAImpDiagram=Importing diagram "{1}"\nconfAImpDiagramFailed=Importing diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\nconfAImpDiagramError=Error importing diagram "{1}". Cannot fetch or save the diagram. Cannot fix this diagram links.\nconfAUpdateDgrmCCFailed=Updating link to diagram "{1}" failed.\nconfImpDiagramSuccess=Updating diagram "{1}" done successfully.\nconfANoLnksInDrgm=No links to update in: {1}\nconfAUpdateLnkToPg=Updated link to page: "{1}" in diagram: "{2}"\nconfAUpdateLBLnkToPg=Updated lightbox link to page: "{1}" in diagram: "{2}"\nconfAUpdateLnkBase=Updated base URL from: "{1}" to: "{2}" in diagram: "{3}"\nconfAPageIdsImpDone=Page IDs Import finished\nconfAPrcsMacrosInPage=Processing draw.io macros in page "{1}"\nconfAErrFetchPage=Error fetching page "{1}"\nconfAFixingMacro=Fixing macro of diagram "{1}"\nconfAErrReadingExpFile=Error reading export file\nconfAPrcsDiagInPageDone=Processing draw.io diagrams in page "{1}" finished\nconfAFixingMacroSkipped=Fixing macro of diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\npageIdsExpTrg=Export target\nconfALucidDiagImgImported={2} diagram "{1}" image extracted successfully\nconfASavingLucidDiagImgFailed=Extracting {2} diagram "{1}" image failed\nconfGetInfoFailed=Fetching file info from {1} failed.\nconfCheckCacheFailed=Cannot get cached file info.\nconfReadFileErr=Cannot read "{1}" file from {2}.\nconfSaveCacheFailed=Unexpected error. Cannot save cached file\norgChartType=Org Chart Type\nlinear=Linear\nhanger2=Hanger 2\nhanger4=Hanger 4\nfishbone1=Fishbone 1\nfishbone2=Fishbone 2\n1ColumnLeft=Single Column Left\n1ColumnRight=Single Column Right\nsmart=Smart\nparentChildSpacing=Parent Child Spacing\nsiblingSpacing=Sibling Spacing\nconfNoPermErr=Sorry, you don\'t have enough permissions to view this embedded diagram from page {1}\ncopyAsImage=Copy as Image\nlucidImport=Lucidchart Import\nlucidImportInst1=Click the "Start Import" button to import all Lucidchart diagrams.\ninstallFirst=Please install {1} first\ndrawioChromeExt=draw.io Chrome Extension\nloginFirstThen=Please login to {1} first, then {2}\nerrFetchDocList=Error: Couldn\'t fetch documents list\nbuiltinPlugins=Built-in Plugins\nextPlugins=External Plugins\nbackupFound=Backup file found\nchromeOnly=This feature only works in Google Chrome\nmsgDeleted=This message has been deleted\nconfAErrFetchDrawList=Error fetching diagrams list. Some diagrams are skipped.\nconfAErrCheckDrawDiag=Cannot check diagram {1}\nconfAErrFetchPageList=Error fetching pages list\nconfADiagImportIncom={1} diagram "{2}" is imported partially and may have missing shapes\ninvalidSel=Invalid selection\ndiagNameEmptyErr=Diagram name cannot be empty\nopenDiagram=Open Diagram\nnewDiagram=New diagram\neditable=Editable\nconfAReimportStarted=Re-import {1} diagrams started...\nspaceFilter=Filter by spaces\ncurViewState=Current Viewer State\npageLayers=Page and Layers\ncustomize=Customize\nfirstPage=First Page (All Layers)\ncurEditorState=Current Editor State\nnoAnchorsFound=No anchors found\nattachment=Attachment\ncurDiagram=Current Diagram\nrecentDiags=Recent Diagrams\ncsvImport=CSV Import\nchooseFile=Choose a file...\nchoose=Choose\ngdriveFname=Google Drive filename\nwidthOfViewer=Width of the viewer (px)\nheightOfViewer=Height of the viewer (px)\nautoSetViewerSize=Automatically set the size of the viewer\nthumbnail=Thumbnail\nprevInDraw=Preview in draw.io\nonedriveFname=OneDrive filename\ndiagFname=Diagram filename\ndiagUrl=Diagram URL\nshowDiag=Show Diagram\ndiagPreview=Diagram Preview\ncsvFileUrl=CSV File URL\ngenerate=Generate\nselectDiag2Insert=Please select a diagram to insert it.\nerrShowingDiag=Unexpected error. Cannot show diagram\nnoRecentDiags=No recent diagrams found\nfetchingRecentFailed=Failed to fetch recent diagrams\nuseSrch2FindDiags=Use the search box to find draw.io diagrams\ncantReadChckPerms=Cannot read the specified diagram. Please check you have read permission on that file.\ncantFetchChckPerms=Cannot fetch diagram info. Please check you have read permission on that file.\nsearchFailed=Searching failed. Please try again later.\nplsTypeStr=Please type a search string.\nunsupportedFileChckUrl=Unsupported file. Please check the specified URL\ndiagNotFoundChckUrl=Diagram not found or cannot be accessed. Please check the specified URL\ncsvNotFoundChckUrl=CSV file not found or cannot be accessed. Please check the specified URL\ncantReadUpload=Cannot read the uploaded diagram\nselect=Select\nerrCantGetIdType=Unexpected Error: Cannot get content id or type.\nerrGAuthWinBlocked=Error: Google Authentication window blocked\nauthDrawAccess=Authorize draw.io to access {1}\nconnTimeout=The connection has timed out\nerrAuthSrvc=Error authenticating to {1}\nplsSelectFile=Please select a file\nmustBgtZ={1} must be greater than zero\ncantLoadPrev=Cannot load file preview.\nerrAccessFile=Error: Access Denied. You do not have permission to access "{1}".\nnoPrevAvail=No preview is available.\npersonalAccNotSup=Personal accounts are not supported.\nerrSavingTryLater=Error occurred during saving, please try again later.\nplsEnterFld=Please enter {1}\ninvalidDiagUrl=Invalid Diagram URL\nunsupportedVsdx=Unsupported vsdx file\nunsupportedImg=Unsupported image file\nunsupportedFormat=Unsupported file format\nplsSelectSingleFile=Please select a single file only\nattCorrupt=Attachment file "{1}" is corrupted\nloadAttFailed=Failed to load attachment "{1}"\nembedDrawDiag=Embed draw.io Diagram\naddDiagram=Add Diagram\nembedDiagram=Embed Diagram\neditOwningPg=Edit owning page\ndeepIndexing=Deep Indexing (Index diagrams that aren\'t used in any page also)\nconfADeepIndexStarted=Deep Indexing Started\nconfADeepIndexDone=Deep Indexing Done\nofficeNoDiagramsSelected=No diagrams found in the selection\nofficeNoDiagramsInDoc=No diagrams found in the document\nofficeNotSupported=This feature is not supported in this host application\nsomeImagesFailed={1} out of {2} failed due to the following errors\nimportingNoUsedDiagrams=Importing {1} Diagrams not used in pages\nimportingDrafts=Importing {1} Diagrams in drafts\nprocessingDrafts=Processing drafts\nupdatingDrafts=Updating drafts\nupdateDrafts=Update drafts\nnotifications=Notifications\ndrawioImp=draw.io Import\nconfALibsImp=Importing draw.io Libraries\nconfALibsImpFailed=Importing {1} library failed\ncontributors=Contributors\ndrawDiagrams=draw.io Diagrams\nerrFileNotFoundOrNoPer=Error: Access Denied. File not found or you do not have permission to access "{1}" on {2}.\nconfACheckPagesWEmbed=Checking pages having embedded draw.io diagrams.\nconfADelBrokenEmbedDiagLnk=Removing broken embedded diagram links\nreplaceWith=Replace with\nreplaceAll=Replace All\nconfASkipDiagModified=Skipped "{1}" as it was modified after initial import\nreplFind=Replace/Find\nmatchesRepl={1} matches replaced\ndraftErrDataLoss=An error occurred while reading the draft file. The diagram cannot be edited now to prevent any possible data loss. Please try again later or contact support.\nibm=IBM\nlinkToDiagramHint=Add a link to this diagram. The diagram can only be edited from the page that owns it.\nlinkToDiagram=Link to Diagram\nchangedBy=Changed By\nlastModifiedOn=Last modified on\nsearchResults=Search Results\nshowAllTemps=Show all templates\nnotionToken=Notion Token\nselectDB=Select Database\nnoDBs=No Databases\ndiagramEdited={1} diagram "{2}" edited\nconfDraftPermissionErr=Draft cannot be written. Do you have attachment write/read permission on this page?\nconfDraftTooBigErr=Draft size is too large. Pease check "Attachment Maximum Size" of "Attachment Settings" in Confluence Configuration?\nowner=Owner\nrepository=Repository\nbranch=Branch\nmeters=Meters\nteamsNoEditingMsg=Editor functionality is only available in Desktop environment (in MS Teams App or a web browser)\ncontactOwner=Contact Owner\nviewerOnlyMsg=You cannot edit the diagrams in the mobile platform, please use the desktop client or a web browser.\nwebsite=Website\ncheck4Updates=Check for updates\nattWriteFailedRetry={1}: Attachment write failed, trying again in {2} seconds...\nconfPartialPageList=We couldn\'t fetch all pages due to an error in Confluence. Continuing using {1} pages only.\nspellCheck=Spell checker\nnoChange=No Change\nlblToSvg=Convert labels to SVG\ntxtSettings=Text Settings\nLinksLost=Links will be lost\narcSize=Arc Size\n');Graph.prototype.defaultThemes["default-style2"]=mxUtils.parseXml('<mxStylesheet><add as="defaultVertex"><add as="shape" value="label"/><add as="perimeter" value="rectanglePerimeter"/><add as="fontSize" value="12"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="fillColor" value="default"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="defaultEdge"><add as="shape" value="connector"/><add as="labelBackgroundColor" value="default"/><add as="endArrow" value="classic"/><add as="fontSize" value="11"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="rounded" value="1"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="text"><add as="fillColor" value="none"/><add as="gradientColor" value="none"/><add as="strokeColor" value="none"/><add as="align" value="left"/><add as="verticalAlign" value="top"/></add><add as="edgeLabel" extend="text"><add as="labelBackgroundColor" value="default"/><add as="fontSize" value="11"/></add><add as="label"><add as="fontStyle" value="1"/><add as="align" value="left"/><add as="verticalAlign" value="middle"/><add as="spacing" value="2"/><add as="spacingLeft" value="52"/><add as="imageWidth" value="42"/><add as="imageHeight" value="42"/><add as="rounded" value="1"/></add><add as="icon" extend="label"><add as="align" value="center"/><add as="imageAlign" value="center"/><add as="verticalLabelPosition" value="bottom"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="4"/><add as="labelBackgroundColor" value="default"/><add as="spacing" value="0"/><add as="spacingLeft" value="0"/><add as="spacingTop" value="6"/><add as="fontStyle" value="0"/><add as="imageWidth" value="48"/><add as="imageHeight" value="48"/></add><add as="swimlane"><add as="shape" value="swimlane"/><add as="fontSize" value="12"/><add as="fontStyle" value="1"/><add as="startSize" value="23"/></add><add as="group"><add as="verticalAlign" value="top"/><add as="fillColor" value="none"/><add as="strokeColor" value="none"/><add as="gradientColor" value="none"/><add as="pointerEvents" value="0"/></add><add as="ellipse"><add as="shape" value="ellipse"/><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombus"><add as="shape" value="rhombus"/><add as="perimeter" value="rhombusPerimeter"/></add><add as="triangle"><add as="shape" value="triangle"/><add as="perimeter" value="trianglePerimeter"/></add><add as="line"><add as="shape" value="line"/><add as="strokeWidth" value="4"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="8"/></add><add as="image"><add as="shape" value="image"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="verticalLabelPosition" value="bottom"/></add><add as="roundImage" extend="image"><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombusImage" extend="image"><add as="perimeter" value="rhombusPerimeter"/></add><add as="arrow"><add as="shape" value="arrow"/><add as="edgeStyle" value="none"/><add as="fillColor" value="default"/></add><add as="fancy"><add as="shadow" value="1"/><add as="glass" value="1"/></add><add as="gray" extend="fancy"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="blue" extend="fancy"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="green" extend="fancy"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="turquoise" extend="fancy"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="yellow" extend="fancy"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="orange" extend="fancy"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="red" extend="fancy"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="pink" extend="fancy"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="purple" extend="fancy"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add><add as="plain-gray"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="plain-blue"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="plain-green"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="plain-turquoise"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="plain-yellow"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="plain-orange"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="plain-red"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="plain-pink"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="plain-purple"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add></mxStylesheet>').documentElement;
+b.geometry.width,40,mxResources.get("arrow"),!0,null,!0,!1),mxResources.get("arrow"));b.style.borderBottom="1px solid "+(Editor.isDarkMode()?"#505050":"lightgray");b.style.paddingBottom="14px";b.style.marginBottom="14px"})();b(m.actions.get("insertFreehand"),mxResources.get("freehand"),Editor.freehandImage);var f=m.actions.get("toggleShapes");b(f,mxResources.get("shapes")+" ("+f.shortcut+")",F);R=c("table",null,Editor.calendarImage);R.style.boxShadow="none";R.style.opacity="0.7";R.style.padding="6px";
+R.style.margin="0px";R.style.width="37px";e(R,null,"pointer");R=c("insert",null,Editor.plusImage);R.style.boxShadow="none";R.style.opacity="0.7";R.style.padding="6px";R.style.margin="0px";R.style.width="37px";e(R,null,"pointer")}"1"!=urlParams.embedInline&&E.appendChild(Q)});mxEvent.addListener(Q,"click",mxUtils.bind(this,function(){ta?(mxUtils.setPrefixedStyle(E.style,"transform","translate(0, -50%)"),E.style.padding="8px 6px 4px",E.style.top="50%",E.style.bottom="",E.style.height="",Q.style.backgroundImage=
+"url("+mxWindow.prototype.normalizeImage+")",Q.style.width="40px",Q.style.height="12px",Q.setAttribute("title","Minimize"),ta=!1,T()):(E.innerHTML="",E.appendChild(Q),mxUtils.setPrefixedStyle(E.style,"transform","translate(0, 0)"),E.style.top="",E.style.bottom="12px",E.style.padding="0px",E.style.height="24px",Q.style.height="24px",Q.style.backgroundImage="url("+Editor.plusImage+")",Q.setAttribute("title",mxResources.get("insert")),Q.style.width="24px",ta=!0)}));T();m.addListener("darkModeChanged",
+T);m.addListener("sketchModeChanged",T)}else m.editor.addListener("statusChanged",mxUtils.bind(this,function(){m.setStatusText(m.editor.getStatus())}));if(null!=z){var ja=function(b){n.popupMenuHandler.hideMenu();mxEvent.isAltDown(b)||mxEvent.isShiftDown(b)?m.actions.get("customZoom").funct():m.actions.get("smartFit").funct()},ma=m.actions.get("zoomIn"),ra=m.actions.get("zoomOut"),S=m.actions.get("resetView"),y=m.actions.get("fullscreen"),oa=m.actions.get("undo"),da=m.actions.get("redo"),Z=d("",oa.funct,
+null,mxResources.get("undo")+" ("+oa.shortcut+")",oa,Editor.undoImage),la=d("",da.funct,null,mxResources.get("redo")+" ("+da.shortcut+")",da,Editor.redoImage),ya=d("",y.funct,null,mxResources.get("fullscreen"),y,Editor.fullscreenImage);if(null!=D){z=function(){aa.style.display=null!=m.pages&&("0"!=urlParams.pages||1<m.pages.length||Editor.pagesVisible)?"inline-block":"none"};S=function(){aa.innerHTML="";null!=m.currentPage&&mxUtils.write(aa,m.currentPage.getName())};ya.parentNode.removeChild(ya);
+var za=m.actions.get("delete"),ua=d("",za.funct,null,mxResources.get("delete"),za,Editor.trashImage);ua.style.opacity="0.1";I.appendChild(ua);za.addListener("stateChanged",function(){ua.style.opacity=za.enabled?"":"0.1"});var fa=function(){Z.style.display=0<m.editor.undoManager.history.length||n.isEditing()?"inline-block":"none";la.style.display=Z.style.display;Z.style.opacity=oa.enabled?"":"0.1";la.style.opacity=da.enabled?"":"0.1"};I.appendChild(Z);I.appendChild(la);oa.addListener("stateChanged",
+fa);da.addListener("stateChanged",fa);fa();null!=urlParams.layers&&(fa=m.actions.get("layers"),fa=d("",fa.funct,null,mxResources.get("layers"),fa,Editor.layersImage),fa.style.opacity="0.4",D.appendChild(fa));null!=urlParams.tags&&(fa=m.actions.get("tags"),fa=d("",fa.funct,null,mxResources.get("tags"),fa,Editor.tagsImage),fa.style.opacity="0.4",D.appendChild(fa));var aa=this.createPageMenuTab(!1,!0);aa.style.display="none";aa.style.position="";aa.style.marginLeft="";aa.style.top="";aa.style.left="";
+aa.style.height="100%";aa.style.lineHeight="";aa.style.borderStyle="none";aa.style.padding="3px 0";aa.style.margin="0px";aa.style.background="";aa.style.border="";aa.style.boxShadow="none";aa.style.verticalAlign="top";aa.style.width="auto";aa.style.maxWidth="160px";aa.style.position="relative";aa.style.padding="6px";aa.style.textOverflow="ellipsis";aa.style.opacity="0.8";m.editor.addListener("pageSelected",S);m.editor.addListener("pageRenamed",S);m.editor.addListener("fileLoaded",S);S();null!=m.currentPage&&
+(mxUtils.write(R,m.currentPage.getName()),console.log("initial page not emptry"));D.appendChild(aa);m.addListener("fileDescriptorChanged",z);m.addListener("pagesVisibleChanged",z);z();z=d("",ra.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -/Alt+Mousewheel)",ra,Editor.zoomOutImage);D.appendChild(z);var R=document.createElement("div");R.innerHTML="100%";R.setAttribute("title",mxResources.get("fitWindow")+"/"+mxResources.get("resetView")+" (Enter)");R.style.display="inline-block";R.style.cursor=
+"pointer";R.style.textAlign="center";R.style.whiteSpace="nowrap";R.style.paddingRight="10px";R.style.textDecoration="none";R.style.verticalAlign="top";R.style.padding="6px 0";R.style.fontSize="14px";R.style.width="40px";R.style.opacity="0.4";D.appendChild(R);mxEvent.addListener(R,"click",ja);ja=d("",ma.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +/Alt+Mousewheel)",ma,Editor.zoomInImage);D.appendChild(ja);y.visible&&(D.appendChild(ya),mxEvent.addListener(document,"fullscreenchange",function(){ya.style.backgroundImage=
+"url("+(null!=document.fullscreenElement?Editor.fullscreenExitImage:Editor.fullscreenImage)+")"}));"1"==urlParams.embedInline&&(y=m.actions.get("exit"),D.appendChild(d("",y.funct,null,mxResources.get("exit"),y,Editor.closeImage)));m.tabContainer.style.visibility="hidden";p.style.cssText="position:absolute;right:14px;top:10px;height:30px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px 0px 6px 6px;border-bottom:1px solid lightgray;text-align:right;white-space:nowrap;overflow:hidden;user-select:none;";
+I.style.cssText="position:absolute;left:10px;top:10px;height:30px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;border-bottom:1px solid lightgray;text-align:right;white-space:nowrap;overflow:hidden;user-select:none;";D.style.cssText="position:absolute;right:14px;bottom:14px;height:28px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:8px;white-space:nowrap;user-select:none;";x.appendChild(I);x.appendChild(D);E.style.cssText="position:absolute;left:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:8px 6px 4px 6px;white-space:nowrap;transform:translate(0, -50%);top:50%;user-select:none;";
+x.appendChild(E);window.setTimeout(function(){mxUtils.setPrefixedStyle(E.style,"transition","transform .3s ease-out")},0);"1"==urlParams["format-toolbar"]&&this.installFormatToolbar(x)}else{var Fa=d("",ja,!0,mxResources.get("fit")+" ("+Editor.ctrlKey+"+H)",S,Editor.zoomFitImage);p.style.cssText="position:absolute;left:0px;right:0px;top:0px;height:30px;padding:8px;text-align:left;white-space:nowrap;";this.tabContainer.style.right="70px";R=t.addMenu("100%",z.funct);R.setAttribute("title",mxResources.get("zoom")+
+" (Alt+Mousewheel)");R.style.whiteSpace="nowrap";R.style.paddingRight="10px";R.style.textDecoration="none";R.style.textDecoration="none";R.style.overflow="hidden";R.style.visibility="hidden";R.style.textAlign="center";R.style.cursor="pointer";R.style.height=parseInt(m.tabContainerHeight)-1+"px";R.style.lineHeight=parseInt(m.tabContainerHeight)+1+"px";R.style.position="absolute";R.style.display="block";R.style.fontSize="12px";R.style.width="59px";R.style.right="0px";R.style.bottom="0px";R.style.backgroundImage=
+"url("+mxWindow.prototype.minimizeImage+")";R.style.backgroundPosition="right 6px center";R.style.backgroundRepeat="no-repeat";x.appendChild(R)}(function(b){var c=mxUtils.bind(this,function(){b.innerHTML="";mxUtils.write(b,Math.round(100*m.editor.graph.view.scale)+"%")});m.editor.graph.view.addListener(mxEvent.EVENT_SCALE,c);m.editor.addListener("resetGraphView",c);m.editor.addListener("pageSelected",c)})(R);var Ga=m.setGraphEnabled;m.setGraphEnabled=function(){Ga.apply(this,arguments);null!=this.tabContainer&&
+(R.style.visibility=this.tabContainer.style.visibility,this.diagramContainer.style.bottom="hidden"!=this.tabContainer.style.visibility&&null==D?this.tabContainerHeight+"px":"0px")}}x.appendChild(p);x.appendChild(m.diagramContainer);l.appendChild(x);m.updateTabContainer();!EditorUi.windowed&&("1"==urlParams.sketch||1E3<=f)&&"1"!=urlParams.embedInline&&b(this,!0);null==D&&x.appendChild(m.tabContainer);var wa=null;k();mxEvent.addListener(window,"resize",function(){k();null!=m.sidebarWindow&&m.sidebarWindow.window.fit();
+null!=m.formatWindow&&m.formatWindow.window.fit();null!=m.actions.outlineWindow&&m.actions.outlineWindow.window.fit();null!=m.actions.layersWindow&&m.actions.layersWindow.window.fit();null!=m.menus.tagsWindow&&m.menus.tagsWindow.window.fit();null!=m.menus.findWindow&&m.menus.findWindow.window.fit();null!=m.menus.findReplaceWindow&&m.menus.findReplaceWindow.window.fit()});if("1"==urlParams.embedInline){document.body.style.cursor="text";E.style.transform="";mxEvent.addGestureListeners(m.diagramContainer.parentNode,
+function(b){mxEvent.getSource(b)==m.diagramContainer.parentNode&&(m.embedExitPoint=new mxPoint(mxEvent.getClientX(b),mxEvent.getClientY(b)),m.sendEmbeddedSvgExport())});l=document.createElement("div");l.style.position="absolute";l.style.width="10px";l.style.height="10px";l.style.borderRadius="5px";l.style.border="1px solid gray";l.style.background="#ffffff";l.style.cursor="row-resize";m.diagramContainer.parentNode.appendChild(l);m.bottomResizer=l;var Aa=null,xa=null,Ba=null,Ha=null;mxEvent.addGestureListeners(l,
+function(b){Ha=parseInt(m.diagramContainer.style.height);xa=mxEvent.getClientY(b);n.popupMenuHandler.hideMenu();mxEvent.consume(b)});l=l.cloneNode(!1);l.style.cursor="col-resize";m.diagramContainer.parentNode.appendChild(l);m.rightResizer=l;mxEvent.addGestureListeners(l,function(b){Ba=parseInt(m.diagramContainer.style.width);Aa=mxEvent.getClientX(b);n.popupMenuHandler.hideMenu();mxEvent.consume(b)});mxEvent.addGestureListeners(document.body,null,function(b){var c=!1;null!=Aa&&(m.diagramContainer.style.width=
+Math.max(20,Ba+mxEvent.getClientX(b)-Aa)+"px",c=!0);null!=xa&&(m.diagramContainer.style.height=Math.max(20,Ha+mxEvent.getClientY(b)-xa)+"px",c=!0);c&&((window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:Editor.inlineFullscreen,rect:m.diagramContainer.getBoundingClientRect()}),"*"),na(),m.refresh())},function(b){null==Aa&&null==xa||mxEvent.consume(b);xa=Aa=null});this.diagramContainer.style.borderRadius="4px";document.body.style.backgroundColor="transparent";m.bottomResizer.style.visibility=
+"hidden";m.rightResizer.style.visibility="hidden";I.style.visibility="hidden";D.style.visibility="hidden";E.style.display="none"}"1"==urlParams.prefetchFonts&&m.editor.loadFonts()}}};(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var c=EditorUi.initTheme;EditorUi.initTheme=function(){c.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();DrawioComment=function(b,c,e,f,n,l,q){this.file=b;this.id=c;this.content=e;this.modifiedDate=f;this.createdDate=n;this.isResolved=l;this.user=q;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,c,e,f,n){c()};DrawioComment.prototype.editComment=function(b,c,e){c()};DrawioComment.prototype.deleteComment=function(b,c){b()};DrawioUser=function(b,c,e,f,n){this.id=b;this.email=c;this.displayName=e;this.pictureUrl=f;this.locale=n};mxResources.parse('# *DO NOT DIRECTLY EDIT THIS FILE, IT IS AUTOMATICALLY GENERATED AND IT IS BASED ON:*\n# https://docs.google.com/spreadsheet/ccc?key=0AmQEO36liL4FdDJLWVNMaVV2UmRKSnpXU09MYkdGbEE\nabout=About\naboutDrawio=About draw.io\naccessDenied=Access Denied\naction=Action\nactualSize=Actual Size\nadd=Add\naddAccount=Add account\naddedFile=Added {1}\naddImages=Add Images\naddImageUrl=Add Image URL\naddLayer=Add Layer\naddProperty=Add Property\naddress=Address\naddToExistingDrawing=Add to Existing Drawing\naddWaypoint=Add Waypoint\nadjustTo=Adjust to\nadvanced=Advanced\nalign=Align\nalignment=Alignment\nallChangesLost=All changes will be lost!\nallPages=All Pages\nallProjects=All Projects\nallSpaces=All Spaces\nallTags=All Tags\nanchor=Anchor\nandroid=Android\nangle=Angle\narc=Arc\nareYouSure=Are you sure?\nensureDataSaved=Please ensure your data is saved before closing.\nallChangesSaved=All changes saved\nallChangesSavedInDrive=All changes saved in Drive\nallowPopups=Allow pop-ups to avoid this dialog.\nallowRelativeUrl=Allow relative URL\nalreadyConnected=Nodes already connected\napply=Apply\narchiMate21=ArchiMate 2.1\narrange=Arrange\narrow=Arrow\narrows=Arrows\nasNew=As New\natlas=Atlas\nauthor=Author\nauthorizationRequired=Authorization required\nauthorizeThisAppIn=Authorize this app in {1}:\nauthorize=Authorize\nauthorizing=Authorizing\nautomatic=Automatic\nautosave=Autosave\nautosize=Autosize\nattachments=Attachments\naws=AWS\naws3d=AWS 3D\nazure=Azure\nback=Back\nbackground=Background\nbackgroundColor=Background Color\nbackgroundImage=Background Image\nbasic=Basic\nblankDrawing=Blank Drawing\nblankDiagram=Blank Diagram\nblock=Block\nblockquote=Blockquote\nblog=Blog\nbold=Bold\nbootstrap=Bootstrap\nborder=Border\nborderColor=Border Color\nborderWidth=Border Width\nbottom=Bottom\nbottomAlign=Bottom Align\nbottomLeft=Bottom Left\nbottomRight=Bottom Right\nbpmn=BPMN\nbringForward=Bring Forward\nbrowser=Browser\nbulletedList=Bulleted List\nbusiness=Business\nbusy=Operation in progress\ncabinets=Cabinets\ncancel=Cancel\ncenter=Center\ncannotLoad=Load attempts failed. Please try again later.\ncannotLogin=Log in attempts failed. Please try again later.\ncannotOpenFile=Cannot open file\nchange=Change\nchangeOrientation=Change Orientation\nchangeUser=Change user\nchangeStorage=Change storage\nchangesNotSaved=Changes have not been saved\nclassDiagram=Class Diagram\nuserJoined={1} has joined\nuserLeft={1} has left\nchatWindowTitle=Chat\nchooseAnOption=Choose an option\nchromeApp=Chrome App\ncollaborativeEditingNotice=Important Notice for Collaborative Editing\ncompare=Compare\ncompressed=Compressed\ncommitMessage=Commit Message\nconfigLinkWarn=This link configures draw.io. Only click OK if you trust whoever gave you it!\nconfigLinkConfirm=Click OK to configure and restart draw.io.\ncontainer=Container\ncsv=CSV\ndark=Dark\ndiagramXmlDesc=XML File\ndiagramHtmlDesc=HTML File\ndiagramPngDesc=Editable Bitmap Image\ndiagramSvgDesc=Editable Vector Image\ndidYouMeanToExportToPdf=Did you mean to export to PDF?\ndraftFound=A draft for \'{1}\' has been found. Load it into the editor or discard it to continue.\ndraftRevisionMismatch=There is a different version of this diagram on a shared draft of this page. Please edit the diagram from the draft to ensure you are working with the latest version.\nselectDraft=Select a draft to continue editing:\ndragAndDropNotSupported=Drag and drop not supported for images. Would you like to import instead?\ndropboxCharsNotAllowed=The following characters are not allowed: / : ? * " |\ncheck=Check\nchecksum=Checksum\ncircle=Circle\ncisco=Cisco\nclassic=Classic\nclearDefaultStyle=Clear Default Style\nclearWaypoints=Clear Waypoints\nclipart=Clipart\nclose=Close\nclosingFile=Closing file\ncollaborator=Collaborator\ncollaborators=Collaborators\ncollapse=Collapse\ncollapseExpand=Collapse/Expand\ncollapse-expand=Click to collapse/expand\nShift-click to move neighbors \nAlt-click to protect group size\ncollapsible=Collapsible\ncomic=Comic\ncomment=Comment\ncommentsNotes=Comments/Notes\ncompress=Compress\nconfiguration=Configuration\nconnect=Connect\nconnecting=Connecting\nconnectWithDrive=Connect with Google Drive\nconnection=Connection\nconnectionArrows=Connection Arrows\nconnectionPoints=Connection Points\nconstrainProportions=Constrain Proportions\ncontainsValidationErrors=Contains validation errors\ncopiedToClipboard=Copied to clipboard\ncopy=Copy\ncopyConnect=Copy on connect\ncopyCreated=A copy of the file was created.\ncopyData=Copy Data\ncopyOf=Copy of {1}\ncopyOfDrawing=Copy of Drawing\ncopySize=Copy Size\ncopyStyle=Copy Style\ncreate=Create\ncreateNewDiagram=Create New Diagram\ncreateRevision=Create Revision\ncreateShape=Create Shape\ncrop=Crop\ncurved=Curved\ncustom=Custom\ncurrent=Current\ncurrentPage=Current page\ncut=Cut\ndashed=Dashed\ndecideLater=Decide later\ndefault=Default\ndelete=Delete\ndeleteColumn=Delete Column\ndeleteLibrary401=Insufficient permissions to delete this library\ndeleteLibrary404=Selected library could not be found\ndeleteLibrary500=Error deleting library\ndeleteLibraryConfirm=You are about to permanently delete this library. Are you sure you want to do this?\ndeleteRow=Delete Row\ndescription=Description\ndevice=Device\ndiagram=Diagram\ndiagramContent=Diagram Content\ndiagramLocked=Diagram has been locked to prevent further data loss.\ndiagramLockedBySince=The diagram is locked by {1} since {2} ago\ndiagramName=Diagram Name\ndiagramIsPublic=Diagram is public\ndiagramIsNotPublic=Diagram is not public\ndiamond=Diamond\ndiamondThin=Diamond (thin)\ndidYouKnow=Did you know...\ndirection=Direction\ndiscard=Discard\ndiscardChangesAndReconnect=Discard Changes and Reconnect\ngoogleDriveMissingClickHere=Google Drive missing? Click here!\ndiscardChanges=Discard Changes\ndisconnected=Disconnected\ndistribute=Distribute\ndone=Done\ndoNotShowAgain=Do not show again\ndotted=Dotted\ndoubleClickOrientation=Doubleclick to change orientation\ndoubleClickTooltip=Doubleclick to insert text\ndoubleClickChangeProperty=Doubleclick to change property name\ndownload=Download\ndownloadDesktop=Get Desktop\ndownloadAs=Download as\nclickHereToSave=Click here to save.\ndpi=DPI\ndraftDiscarded=Draft discarded\ndraftSaved=Draft saved\ndragElementsHere=Drag elements here\ndragImagesHere=Drag images or URLs here\ndragUrlsHere=Drag URLs here\ndraw.io=draw.io\ndrawing=Drawing{1}\ndrawingEmpty=Drawing is empty\ndrawingTooLarge=Drawing is too large\ndrawioForWork=Draw.io for GSuite\ndropbox=Dropbox\nduplicate=Duplicate\nduplicateIt=Duplicate {1}\ndivider=Divider\ndx=Dx\ndy=Dy\neast=East\nedit=Edit\neditData=Edit Data\neditDiagram=Edit Diagram\neditGeometry=Edit Geometry\neditImage=Edit Image\neditImageUrl=Edit Image URL\neditLink=Edit Link\neditShape=Edit Shape\neditStyle=Edit Style\neditText=Edit Text\neditTooltip=Edit Tooltip\nglass=Glass\ngoogleImages=Google Images\nimageSearch=Image Search\neip=EIP\nembed=Embed\nembedFonts=Embed Fonts\nembedImages=Embed Images\nmainEmbedNotice=Paste this into the page\nelectrical=Electrical\nellipse=Ellipse\nembedNotice=Paste this once at the end of the page\nenterGroup=Enter Group\nenterName=Enter Name\nenterPropertyName=Enter Property Name\nenterValue=Enter Value\nentityRelation=Entity Relation\nentityRelationshipDiagram=Entity Relationship Diagram\nerror=Error\nerrorDeletingFile=Error deleting file\nerrorLoadingFile=Error loading file\nerrorRenamingFile=Error renaming file\nerrorRenamingFileNotFound=Error renaming file. File was not found.\nerrorRenamingFileForbidden=Error renaming file. Insufficient access rights.\nerrorSavingDraft=Error saving draft\nerrorSavingFile=Error saving file\nerrorSavingFileUnknown=Error authorizing with Google\'s servers. Please refresh the page to re-attempt.\nerrorSavingFileForbidden=Error saving file. Insufficient access rights.\nerrorSavingFileNameConflict=Could not save diagram. Current page already contains file named \'{1}\'.\nerrorSavingFileNotFound=Error saving file. File was not found.\nerrorSavingFileReadOnlyMode=Could not save diagram while read-only mode is active.\nerrorSavingFileSessionTimeout=Your session has ended. Please <a target=\'_blank\' href=\'{1}\'>{2}</a> and return to this tab to try to save again.\nerrorSendingFeedback=Error sending feedback.\nerrorUpdatingPreview=Error updating preview.\nexit=Exit\nexitGroup=Exit Group\nexpand=Expand\nexport=Export\nexporting=Exporting\nexportAs=Export as\nexportOptionsDisabled=Export options disabled\nexportOptionsDisabledDetails=The owner has disabled options to download, print or copy for commenters and viewers on this file.\nexternalChanges=External Changes\nextras=Extras\nfacebook=Facebook\nfailedToSaveTryReconnect=Failed to save, trying to reconnect\nfeatureRequest=Feature Request\nfeedback=Feedback\nfeedbackSent=Feedback successfully sent.\nfloorplans=Floorplans\nfile=File\nfileChangedOverwriteDialog=The file has been modified. Do you want to save the file and overwrite those changes?\nfileChangedSyncDialog=The file has been modified.\nfileChangedSync=The file has been modified. Click here to synchronize.\noverwrite=Overwrite\nsynchronize=Synchronize\nfilename=Filename\nfileExists=File already exists\nfileMovedToTrash=File was moved to trash\nfileNearlyFullSeeFaq=File nearly full, please see FAQ\nfileNotFound=File not found\nrepositoryNotFound=Repository not found\nfileNotFoundOrDenied=The file was not found. It does not exist or you do not have access.\nfileNotLoaded=File not loaded\nfileNotSaved=File not saved\nfileOpenLocation=How would you like to open these file(s)?\nfiletypeHtml=.html causes file to save as HTML with redirect to cloud URL\nfiletypePng=.png causes file to save as PNG with embedded data\nfiletypeSvg=.svg causes file to save as SVG with embedded data\nfileWillBeSavedInAppFolder={1} will be saved in the app folder.\nfill=Fill\nfillColor=Fill Color\nfilterCards=Filter Cards\nfind=Find\nfit=Fit\nfitContainer=Resize Container\nfitIntoContainer=Fit into Container\nfitPage=Fit Page\nfitPageWidth=Fit Page Width\nfitTo=Fit to\nfitToSheetsAcross=sheet(s) across\nfitToBy=by\nfitToSheetsDown=sheet(s) down\nfitTwoPages=Two Pages\nfitWindow=Fit Window\nflip=Flip\nflipH=Flip Horizontal\nflipV=Flip Vertical\nflowchart=Flowchart\nfolder=Folder\nfont=Font\nfontColor=Font Color\nfontFamily=Font Family\nfontSize=Font Size\nforbidden=You are not authorized to access this file\nformat=Format\nformatPanel=Format Panel\nformatted=Formatted\nformattedText=Formatted Text\nformatPng=PNG\nformatGif=GIF\nformatJpg=JPEG\nformatPdf=PDF\nformatSql=SQL\nformatSvg=SVG\nformatHtmlEmbedded=HTML\nformatSvgEmbedded=SVG (with XML)\nformatVsdx=VSDX\nformatVssx=VSSX\nformatXmlPlain=XML (Plain)\nformatXml=XML\nforum=Discussion/Help Forums\nfreehand=Freehand\nfromTemplate=From Template\nfromTemplateUrl=From Template URL\nfromText=From Text\nfromUrl=From URL\nfromThisPage=From this page\nfullscreen=Fullscreen\ngap=Gap\ngcp=GCP\ngeneral=General\ngetNotionChromeExtension=Get the Notion Chrome Extension\ngithub=GitHub\ngitlab=GitLab\ngliffy=Gliffy\nglobal=Global\ngoogleDocs=Google Docs\ngoogleDrive=Google Drive\ngoogleGadget=Google Gadget\ngooglePlus=Google+\ngoogleSharingNotAvailable=Sharing is only available via Google Drive. Please click Open below and share from the more actions menu:\ngoogleSlides=Google Slides\ngoogleSites=Google Sites\ngoogleSheets=Google Sheets\ngradient=Gradient\ngradientColor=Color\ngrid=Grid\ngridColor=Grid Color\ngridSize=Grid Size\ngroup=Group\nguides=Guides\nhateApp=I hate draw.io\nheading=Heading\nheight=Height\nhelp=Help\nhelpTranslate=Help us translate this application\nhide=Hide\nhideIt=Hide {1}\nhidden=Hidden\nhome=Home\nhorizontal=Horizontal\nhorizontalFlow=Horizontal Flow\nhorizontalTree=Horizontal Tree\nhowTranslate=How good is the translation in your language?\nhtml=HTML\nhtmlText=HTML Text\nid=ID\niframe=IFrame\nignore=Ignore\nimage=Image\nimageUrl=Image URL\nimages=Images\nimagePreviewError=This image couldn\'t be loaded for preview. Please check the URL.\nimageTooBig=Image too big\nimgur=Imgur\nimport=Import\nimportFrom=Import from\nincludeCopyOfMyDiagram=Include a copy of my diagram\nincreaseIndent=Increase Indent\ndecreaseIndent=Decrease Indent\ninsert=Insert\ninsertColumnBefore=Insert Column Left\ninsertColumnAfter=Insert Column Right\ninsertEllipse=Insert Ellipse\ninsertImage=Insert Image\ninsertHorizontalRule=Insert Horizontal Rule\ninsertLink=Insert Link\ninsertPage=Insert Page\ninsertRectangle=Insert Rectangle\ninsertRhombus=Insert Rhombus\ninsertRowBefore=Insert Row Above\ninsertRowAfter=Insert Row After\ninsertText=Insert Text\ninserting=Inserting\ninstallApp=Install App\ninvalidFilename=Diagram names must not contain the following characters: / | : ; { } < > & + ? = "\ninvalidLicenseSeeThisPage=Your license is invalid, please see this <a target="_blank" href="https://support.draw.io/display/DFCS/Licensing+your+draw.io+plugin">page</a>.\ninvalidInput=Invalid input\ninvalidName=Invalid name\ninvalidOrMissingFile=Invalid or missing file\ninvalidPublicUrl=Invalid public URL\nisometric=Isometric\nios=iOS\nitalic=Italic\nkennedy=Kennedy\nkeyboardShortcuts=Keyboard Shortcuts\nlabels=Labels\nlayers=Layers\nlandscape=Landscape\nlanguage=Language\nleanMapping=Lean Mapping\nlastChange=Last change {1} ago\nlessThanAMinute=less than a minute\nlicensingError=Licensing Error\nlicenseHasExpired=The license for {1} has expired on {2}. Click here.\nlicenseRequired=This feature requires draw.io to be licensed.\nlicenseWillExpire=The license for {1} will expire on {2}. Click here.\nlineJumps=Line jumps\nlinkAccountRequired=If the diagram is not public a Google account is required to view the link.\nlinkText=Link Text\nlist=List\nminute=minute\nminutes=minutes\nhours=hours\ndays=days\nmonths=months\nyears=years\nrestartForChangeRequired=Changes will take effect after a restart of the application.\nlaneColor=Lanecolor\nlastModified=Last modified\nlayout=Layout\nleft=Left\nleftAlign=Left Align\nleftToRight=Left to right\nlibraryTooltip=Drag and drop shapes here or click + to insert. Double click to edit.\nlightbox=Lightbox\nline=Line\nlineend=Line end\nlineheight=Line Height\nlinestart=Line start\nlinewidth=Linewidth\nlink=Link\nlinks=Links\nloading=Loading\nlockUnlock=Lock/Unlock\nloggedOut=Logged Out\nlogIn=log in\nloveIt=I love {1}\nlucidchart=Lucidchart\nmaps=Maps\nmathematicalTypesetting=Mathematical Typesetting\nmakeCopy=Make a Copy\nmanual=Manual\nmerge=Merge\nmermaid=Mermaid\nmicrosoftOffice=Microsoft Office\nmicrosoftExcel=Microsoft Excel\nmicrosoftPowerPoint=Microsoft PowerPoint\nmicrosoftWord=Microsoft Word\nmiddle=Middle\nminimal=Minimal\nmisc=Misc\nmockups=Mockups\nmodificationDate=Modification date\nmodifiedBy=Modified by\nmore=More\nmoreResults=More Results\nmoreShapes=More Shapes\nmove=Move\nmoveToFolder=Move to Folder\nmoving=Moving\nmoveSelectionTo=Move selection to {1}\nname=Name\nnavigation=Navigation\nnetwork=Network\nnetworking=Networking\nnew=New\nnewLibrary=New Library\nnextPage=Next Page\nno=No\nnoPickFolder=No, pick folder\nnoAttachments=No attachments found\nnoColor=No Color\nnoFiles=No Files\nnoFileSelected=No file selected\nnoLibraries=No libraries found\nnoMoreResults=No more results\nnone=None\nnoOtherViewers=No other viewers\nnoPlugins=No plugins\nnoPreview=No preview\nnoResponse=No response from server\nnoResultsFor=No results for \'{1}\'\nnoRevisions=No revisions\nnoSearchResults=No search results found\nnoPageContentOrNotSaved=No anchors found on this page or it hasn\'t been saved yet\nnormal=Normal\nnorth=North\nnotADiagramFile=Not a diagram file\nnotALibraryFile=Not a library file\nnotAvailable=Not available\nnotAUtf8File=Not a UTF-8 file\nnotConnected=Not connected\nnote=Note\nnotion=Notion\nnotSatisfiedWithImport=Not satisfied with the import?\nnotUsingService=Not using {1}?\nnumberedList=Numbered list\noffline=Offline\nok=OK\noneDrive=OneDrive\nonline=Online\nopacity=Opacity\nopen=Open\nopenArrow=Open Arrow\nopenExistingDiagram=Open Existing Diagram\nopenFile=Open File\nopenFrom=Open from\nopenLibrary=Open Library\nopenLibraryFrom=Open Library from\nopenLink=Open Link\nopenInNewWindow=Open in New Window\nopenInThisWindow=Open in This Window\nopenIt=Open {1}\nopenRecent=Open Recent\nopenSupported=Supported formats are files saved from this software (.xml), .vsdx and .gliffy\noptions=Options\norganic=Organic\norgChart=Org Chart\northogonal=Orthogonal\notherViewer=other viewer\notherViewers=other viewers\noutline=Outline\noval=Oval\npage=Page\npageContent=Page Content\npageNotFound=Page not found\npageWithNumber=Page-{1}\npages=Pages\npageView=Page View\npageSetup=Page Setup\npageScale=Page Scale\npan=Pan\npanTooltip=Space+Drag to pan\npaperSize=Paper Size\npattern=Pattern\nparallels=Parallels\npaste=Paste\npasteData=Paste Data\npasteHere=Paste here\npasteSize=Paste Size\npasteStyle=Paste Style\nperimeter=Perimeter\npermissionAnyone=Anyone can edit\npermissionAuthor=Owner and admins can edit\npickFolder=Pick a folder\npickLibraryDialogTitle=Select Library\npublicDiagramUrl=Public URL of the diagram\nplaceholders=Placeholders\nplantUml=PlantUML\nplugins=Plugins\npluginUrl=Plugin URL\npluginWarning=The page has requested to load the following plugin(s):\n \n {1}\n \n Would you like to load these plugin(s) now?\n \n NOTE : Only allow plugins to run if you fully understand the security implications of doing so.\n\nplusTooltip=Click to connect and clone (ctrl+click to clone, shift+click to connect). Drag to connect (ctrl+drag to clone).\nportrait=Portrait\nposition=Position\nposterPrint=Poster Print\npreferences=Preferences\npreview=Preview\npreviousPage=Previous Page\nprint=Print\nprintAllPages=Print All Pages\nprocEng=Proc. Eng.\nproject=Project\npriority=Priority\nproperties=Properties\npublish=Publish\nquickStart=Quick Start Video\nrack=Rack\nradial=Radial\nradialTree=Radial Tree\nreadOnly=Read-only\nreconnecting=Reconnecting\nrecentlyUpdated=Recently Updated\nrecentlyViewed=Recently Viewed\nrectangle=Rectangle\nredirectToNewApp=This file was created or modified in a newer version of this app. You will be redirected now.\nrealtimeTimeout=It looks like you\'ve made a few changes while offline. We\'re sorry, these changes cannot be saved.\nredo=Redo\nrefresh=Refresh\nregularExpression=Regular Expression\nrelative=Relative\nrelativeUrlNotAllowed=Relative URL not allowed\nrememberMe=Remember me\nrememberThisSetting=Remember this setting\nremoveFormat=Clear Formatting\nremoveFromGroup=Remove from Group\nremoveIt=Remove {1}\nremoveWaypoint=Remove Waypoint\nrename=Rename\nrenamed=Renamed\nrenameIt=Rename {1}\nrenaming=Renaming\nreplace=Replace\nreplaceIt={1} already exists. Do you want to replace it?\nreplaceExistingDrawing=Replace existing drawing\nrequired=required\nreset=Reset\nresetView=Reset View\nresize=Resize\nresizeLargeImages=Do you want to resize large images to make the application run faster?\nretina=Retina\nresponsive=Responsive\nrestore=Restore\nrestoring=Restoring\nretryingIn=Retrying in {1} second(s)\nretryingLoad=Load failed. Retrying...\nretryingLogin=Login time out. Retrying...\nreverse=Reverse\nrevision=Revision\nrevisionHistory=Revision History\nrhombus=Rhombus\nright=Right\nrightAlign=Right Align\nrightToLeft=Right to left\nrotate=Rotate\nrotateTooltip=Click and drag to rotate, click to turn shape only by 90 degrees\nrotation=Rotation\nrounded=Rounded\nsave=Save\nsaveAndExit=Save & Exit\nsaveAs=Save as\nsaveAsXmlFile=Save as XML file?\nsaved=Saved\nsaveDiagramFirst=Please save the diagram first\nsaveDiagramsTo=Save diagrams to\nsaveLibrary403=Insufficient permissions to edit this library\nsaveLibrary500=There was an error while saving the library\nsaveLibraryReadOnly=Could not save library while read-only mode is active\nsaving=Saving\nscratchpad=Scratchpad\nscrollbars=Scrollbars\nsearch=Search\nsearchShapes=Search Shapes\nselectAll=Select All\nselectionOnly=Selection Only\nselectCard=Select Card\nselectEdges=Select Edges\nselectFile=Select File\nselectFolder=Select Folder\nselectFont=Select Font\nselectNone=Select None\nselectTemplate=Select Template\nselectVertices=Select Vertices\nsendBackward=Send Backward\nsendMessage=Send\nsendYourFeedback=Send your feedback\nserviceUnavailableOrBlocked=Service unavailable or blocked\nsessionExpired=Your session has expired. Please refresh the browser window.\nsessionTimeoutOnSave=Your session has timed out and you have been disconnected from the Google Drive. Press OK to login and save.\nsetAsDefaultStyle=Set as Default Style\nshadow=Shadow\nshape=Shape\nshapes=Shapes\nshare=Share\nshareLink=Link for shared editing\nsharingAvailable=Sharing available for Google Drive and OneDrive files.\nsharp=Sharp\nshow=Show\nshowStartScreen=Show Start Screen\nsidebarTooltip=Click to expand. Drag and drop shapes into the diagram. Shift+click to change selection. Alt+click to insert and connect.\nsigns=Signs\nsignOut=Sign out\nsimple=Simple\nsimpleArrow=Simple Arrow\nsimpleViewer=Simple Viewer\nsize=Size\nsketch=Sketch\nsnapToGrid=Snap to Grid\nsolid=Solid\nsourceSpacing=Source Spacing\nsouth=South\nsoftware=Software\nspace=Space\nspacing=Spacing\nspecialLink=Special Link\nstandard=Standard\nstartDrawing=Start drawing\nstopDrawing=Stop drawing\nstarting=Starting\nstraight=Straight\nstrikethrough=Strikethrough\nstrokeColor=Line Color\nstyle=Style\nsubscript=Subscript\nsummary=Summary\nsuperscript=Superscript\nsupport=Support\nswimlaneDiagram=Swimlane Diagram\nsysml=SysML\ntags=Tags\ntable=Table\ntables=Tables\ntakeOver=Take Over\ntargetSpacing=Target Spacing\ntemplate=Template\ntemplates=Templates\ntext=Text\ntextAlignment=Text Alignment\ntextOpacity=Text Opacity\ntheme=Theme\ntimeout=Timeout\ntitle=Title\nto=to\ntoBack=To Back\ntoFront=To Front\ntooLargeUseDownload=Too large, use download instead.\ntoolbar=Toolbar\ntooltips=Tooltips\ntop=Top\ntopAlign=Top Align\ntopLeft=Top Left\ntopRight=Top Right\ntransparent=Transparent\ntransparentBackground=Transparent Background\ntrello=Trello\ntryAgain=Try again\ntryOpeningViaThisPage=Try opening via this page\nturn=Rotate shape only by 90°\ntype=Type\ntwitter=Twitter\numl=UML\nunderline=Underline\nundo=Undo\nungroup=Ungroup\nunmerge=Unmerge\nunsavedChanges=Unsaved changes\nunsavedChangesClickHereToSave=Unsaved changes. Click here to save.\nuntitled=Untitled\nuntitledDiagram=Untitled Diagram\nuntitledLayer=Untitled Layer\nuntitledLibrary=Untitled Library\nunknownError=Unknown error\nupdateFile=Update {1}\nupdatingDocument=Updating Document. Please wait...\nupdatingPreview=Updating Preview. Please wait...\nupdatingSelection=Updating Selection. Please wait...\nupload=Upload\nurl=URL\nuseOffline=Use Offline\nuseRootFolder=Use root folder?\nuserManual=User Manual\nvertical=Vertical\nverticalFlow=Vertical Flow\nverticalTree=Vertical Tree\nview=View\nviewerSettings=Viewer Settings\nviewUrl=Link to view: {1}\nvoiceAssistant=Voice Assistant (beta)\nwarning=Warning\nwaypoints=Waypoints\nwest=West\nwidth=Width\nwiki=Wiki\nwordWrap=Word Wrap\nwritingDirection=Writing Direction\nyes=Yes\nyourEmailAddress=Your email address\nzoom=Zoom\nzoomIn=Zoom In\nzoomOut=Zoom Out\nbasic=Basic\nbusinessprocess=Business Processes\ncharts=Charts\nengineering=Engineering\nflowcharts=Flowcharts\ngmdl=Material Design\nmindmaps=Mindmaps\nmockups=Mockups\nnetworkdiagrams=Network Diagrams\nnothingIsSelected=Nothing is selected\nother=Other\nsoftwaredesign=Software Design\nvenndiagrams=Venn Diagrams\nwebEmailOrOther=Web, email or any other internet address\nwebLink=Web Link\nwireframes=Wireframes\nproperty=Property\nvalue=Value\nshowMore=Show More\nshowLess=Show Less\nmyDiagrams=My Diagrams\nallDiagrams=All Diagrams\nrecentlyUsed=Recently used\nlistView=List view\ngridView=Grid view\nresultsFor=Results for \'{1}\'\noneDriveCharsNotAllowed=The following characters are not allowed: ~ " # % * : < > ? / { | }\noneDriveInvalidDeviceName=The specified device name is invalid\nofficeNotLoggedOD=You are not logged in to OneDrive. Please open draw.io task pane and login first.\nofficeSelectSingleDiag=Please select a single draw.io diagram only without other contents.\nofficeSelectDiag=Please select a draw.io diagram.\nofficeCannotFindDiagram=Cannot find a draw.io diagram in the selection\nnoDiagrams=No diagrams found\nauthFailed=Authentication failed\nofficeFailedAuthMsg=Unable to successfully authenticate user or authorize application.\nconvertingDiagramFailed=Converting diagram failed\nofficeCopyImgErrMsg=Due to some limitations in the host application, the image could not be inserted. Please manually copy the image then paste it to the document.\ninsertingImageFailed=Inserting image failed\nofficeCopyImgInst=Instructions: Right-click the image below. Select "Copy image" from the context menu. Then, in the document, right-click and select "Paste" from the context menu.\nfolderEmpty=Folder is empty\nrecent=Recent\nsharedWithMe=Shared With Me\nsharepointSites=Sharepoint Sites\nerrorFetchingFolder=Error fetching folder items\nerrorAuthOD=Error authenticating to OneDrive\nofficeMainHeader=Adds draw.io diagrams to your document.\nofficeStepsHeader=This add-in performs the following steps:\nofficeStep1=Connects to Microsoft OneDrive, Google Drive or your device.\nofficeStep2=Select a draw.io diagram.\nofficeStep3=Insert the diagram into the document.\nofficeAuthPopupInfo=Please complete the authentication in the pop-up window.\nofficeSelDiag=Select draw.io Diagram:\nfiles=Files\nshared=Shared\nsharepoint=Sharepoint\nofficeManualUpdateInst=Instructions: Copy draw.io diagram from the document. Then, in the box below, right-click and select "Paste" from the context menu.\nofficeClickToEdit=Click icon to start editing:\npasteDiagram=Paste draw.io diagram here\nconnectOD=Connect to OneDrive\nselectChildren=Select Children\nselectSiblings=Select Siblings\nselectParent=Select Parent\nselectDescendants=Select Descendants\nlastSaved=Last saved {1} ago\nresolve=Resolve\nreopen=Re-open\nshowResolved=Show Resolved\nreply=Reply\nobjectNotFound=Object not found\nreOpened=Re-opened\nmarkedAsResolved=Marked as resolved\nnoCommentsFound=No comments found\ncomments=Comments\ntimeAgo={1} ago\nconfluenceCloud=Confluence Cloud\nlibraries=Libraries\nconfAnchor=Confluence Page Anchor\nconfTimeout=The connection has timed out\nconfSrvTakeTooLong=The server at {1} is taking too long to respond.\nconfCannotInsertNew=Cannot insert draw.io diagram to a new Confluence page\nconfSaveTry=Please save the page and try again.\nconfCannotGetID=Unable to determine page ID\nconfContactAdmin=Please contact your Confluence administrator.\nreadErr=Read Error\neditingErr=Editing Error\nconfExtEditNotPossible=This diagram cannot be edited externally. Please try editing it while editing the page\nconfEditedExt=Diagram/Page edited externally\ndiagNotFound=Diagram Not Found\nconfEditedExtRefresh=Diagram/Page is edited externally. Please refresh the page.\nconfCannotEditDraftDelOrExt=Cannot edit diagrams in a draft page, diagram is deleted from the page, or diagram is edited externally. Please check the page.\nretBack=Return back\nconfDiagNotPublished=The diagram does not belong to a published page\ncreatedByDraw=Created by draw.io\nfilenameShort=Filename too short\ninvalidChars=Invalid characters\nalreadyExst={1} already exists\ndraftReadErr=Draft Read Error\ndiagCantLoad=Diagram cannot be loaded\ndraftWriteErr=Draft Write Error\ndraftCantCreate=Draft could not be created\nconfDuplName=Duplicate diagram name detected. Please pick another name.\nconfSessionExpired=Looks like your session expired. Log in again to keep working.\nlogin=Login\ndrawPrev=draw.io preview\ndrawDiag=draw.io diagram\ninvalidCallFnNotFound=Invalid Call: {1} not found\ninvalidCallErrOccured=Invalid Call: An error occurred, {1}\nanonymous=Anonymous\nconfGotoPage=Go to containing page\nshowComments=Show Comments\nconfError=Error: {1}\ngliffyImport=Gliffy Import\ngliffyImportInst1=Click the "Start Import" button to import all Gliffy diagrams to draw.io.\ngliffyImportInst2=Please note that the import procedure will take some time and the browser window must remain open until the import is completed.\nstartImport=Start Import\ndrawConfig=draw.io Configuration\ncustomLib=Custom Libraries\ncustomTemp=Custom Templates\npageIdsExp=Page IDs Export\ndrawReindex=draw.io re-indexing (beta)\nworking=Working\ndrawConfigNotFoundInst=draw.io Configuration Space (DRAWIOCONFIG) does not exist. This space is needed to store draw.io configuration files and custom libraries/templates.\ncreateConfSp=Create Config Space\nunexpErrRefresh=Unexpected error, please refresh the page and try again.\nconfigJSONInst=Write draw.io JSON configuration in the editor below then click save. If you need help, please refer to\nthisPage=this page\ncurCustLib=Current Custom Libraries\nlibName=Library Name\naction=Action\ndrawConfID=draw.io Config ID\naddLibInst=Click the "Add Library" button to upload a new library.\naddLib=Add Library\ncustomTempInst1=Custom templates are draw.io diagrams saved in children pages of\ncustomTempInst2=For more details, please refer to\ntempsPage=Templates page\npageIdsExpInst1=Select export target, then click the "Start Export" button to export all pages IDs.\npageIdsExpInst2=Please note that the export procedure will take some time and the browser window must remain open until the export is completed.\nstartExp=Start Export\nrefreshDrawIndex=Refresh draw.io Diagrams Index\nreindexInst1=Click the "Start Indexing" button to refresh draw.io diagrams index.\nreindexInst2=Please note that the indexing procedure will take some time and the browser window must remain open until the indexing is completed.\nstartIndexing=Start Indexing\nconfAPageFoundFetch=Page "{1}" found. Fetching\nconfAAllDiagDone=All {1} diagrams processed. Process finished.\nconfAStartedProcessing=Started processing page "{1}"\nconfAAllDiagInPageDone=All {1} diagrams in page "{2}" processed successfully.\nconfAPartialDiagDone={1} out of {2} {3} diagrams in page "{4}" processed successfully.\nconfAUpdatePageFailed=Updating page "{1}" failed.\nconfANoDiagFoundInPage=No {1} diagrams found in page "{2}".\nconfAFetchPageFailed=Fetching the page failed.\nconfANoDiagFound=No {1} diagrams found. Process finished.\nconfASearchFailed=Searching for {1} diagrams failed. Please try again later.\nconfAGliffyDiagFound={2} diagram "{1}" found. Importing\nconfAGliffyDiagImported={2} diagram "{1}" imported successfully.\nconfASavingImpGliffyFailed=Saving imported {2} diagram "{1}" failed.\nconfAImportedFromByDraw=Imported from "{1}" by draw.io\nconfAImportGliffyFailed=Importing {2} diagram "{1}" failed.\nconfAFetchGliffyFailed=Fetching {2} diagram "{1}" failed.\nconfACheckBrokenDiagLnk=Checking for broken diagrams links.\nconfADelDiagLinkOf=Deleting diagram link of "{1}"\nconfADupLnk=(duplicate link)\nconfADelDiagLnkFailed=Deleting diagram link of "{1}" failed.\nconfAUnexpErrProcessPage=Unexpected error during processing the page with id: {1}\nconfADiagFoundIndex=Diagram "{1}" found. Indexing\nconfADiagIndexSucc=Diagram "{1}" indexed successfully.\nconfAIndexDiagFailed=Indexing diagram "{1}" failed.\nconfASkipDiagOtherPage=Skipped "{1}" as it belongs to another page!\nconfADiagUptoDate=Diagram "{1}" is up to date.\nconfACheckPagesWDraw=Checking pages having draw.io diagrams.\nconfAErrOccured=An error occurred!\nsavedSucc=Saved successfully\nconfASaveFailedErr=Saving Failed (Unexpected Error)\ncharacter=Character\nconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachment\nconfALibPageDesc=This page contains draw.io custom libraries as attachments\nconfATempPageDesc=This page contains draw.io custom templates as attachments\nworking=Working\nconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templates\nconfANoCustLib=No Custom Libraries\ndelFailed=Delete failed!\nshowID=Show ID\nconfAIncorrectLibFileType=Incorrect file type. Libraries should be XML files.\nuploading=Uploading\nconfALibExist=This library already exists\nconfAUploadSucc=Uploaded successfully\nconfAUploadFailErr=Upload Failed (Unexpected Error)\nhiResPreview=High Res Preview\nofficeNotLoggedGD=You are not logged in to Google Drive. Please open draw.io task pane and login first.\nofficePopupInfo=Please complete the process in the pop-up window.\npickODFile=Pick OneDrive File\npickGDriveFile=Pick Google Drive File\npickDeviceFile=Pick Device File\nvsdNoConfig="vsdurl" is not configured\nruler=Ruler\nunits=Units\npoints=Points\ninches=Inches\nmillimeters=Millimeters\nconfEditDraftDelOrExt=This diagram is in a draft page, is deleted from the page, or is edited externally. It will be saved as a new attachment version and may not be reflected in the page.\nconfDiagEditedExt=Diagram is edited in another session. It will be saved as a new attachment version but the page will show other session\'s modifications.\nmacroNotFound=Macro Not Found\nconfAInvalidPageIdsFormat=Incorrect Page IDs file format\nconfACollectingCurPages=Collecting current pages\nconfABuildingPagesMap=Building pages mapping\nconfAProcessDrawDiag=Started processing imported draw.io diagrams\nconfAProcessDrawDiagDone=Finished processing imported draw.io diagrams\nconfAProcessImpPages=Started processing imported pages\nconfAErrPrcsDiagInPage=Error processing draw.io diagrams in page "{1}"\nconfAPrcsDiagInPage=Processing draw.io diagrams in page "{1}"\nconfAImpDiagram=Importing diagram "{1}"\nconfAImpDiagramFailed=Importing diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\nconfAImpDiagramError=Error importing diagram "{1}". Cannot fetch or save the diagram. Cannot fix this diagram links.\nconfAUpdateDgrmCCFailed=Updating link to diagram "{1}" failed.\nconfImpDiagramSuccess=Updating diagram "{1}" done successfully.\nconfANoLnksInDrgm=No links to update in: {1}\nconfAUpdateLnkToPg=Updated link to page: "{1}" in diagram: "{2}"\nconfAUpdateLBLnkToPg=Updated lightbox link to page: "{1}" in diagram: "{2}"\nconfAUpdateLnkBase=Updated base URL from: "{1}" to: "{2}" in diagram: "{3}"\nconfAPageIdsImpDone=Page IDs Import finished\nconfAPrcsMacrosInPage=Processing draw.io macros in page "{1}"\nconfAErrFetchPage=Error fetching page "{1}"\nconfAFixingMacro=Fixing macro of diagram "{1}"\nconfAErrReadingExpFile=Error reading export file\nconfAPrcsDiagInPageDone=Processing draw.io diagrams in page "{1}" finished\nconfAFixingMacroSkipped=Fixing macro of diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\npageIdsExpTrg=Export target\nconfALucidDiagImgImported={2} diagram "{1}" image extracted successfully\nconfASavingLucidDiagImgFailed=Extracting {2} diagram "{1}" image failed\nconfGetInfoFailed=Fetching file info from {1} failed.\nconfCheckCacheFailed=Cannot get cached file info.\nconfReadFileErr=Cannot read "{1}" file from {2}.\nconfSaveCacheFailed=Unexpected error. Cannot save cached file\norgChartType=Org Chart Type\nlinear=Linear\nhanger2=Hanger 2\nhanger4=Hanger 4\nfishbone1=Fishbone 1\nfishbone2=Fishbone 2\n1ColumnLeft=Single Column Left\n1ColumnRight=Single Column Right\nsmart=Smart\nparentChildSpacing=Parent Child Spacing\nsiblingSpacing=Sibling Spacing\nconfNoPermErr=Sorry, you don\'t have enough permissions to view this embedded diagram from page {1}\ncopyAsImage=Copy as Image\nlucidImport=Lucidchart Import\nlucidImportInst1=Click the "Start Import" button to import all Lucidchart diagrams.\ninstallFirst=Please install {1} first\ndrawioChromeExt=draw.io Chrome Extension\nloginFirstThen=Please login to {1} first, then {2}\nerrFetchDocList=Error: Couldn\'t fetch documents list\nbuiltinPlugins=Built-in Plugins\nextPlugins=External Plugins\nbackupFound=Backup file found\nchromeOnly=This feature only works in Google Chrome\nmsgDeleted=This message has been deleted\nconfAErrFetchDrawList=Error fetching diagrams list. Some diagrams are skipped.\nconfAErrCheckDrawDiag=Cannot check diagram {1}\nconfAErrFetchPageList=Error fetching pages list\nconfADiagImportIncom={1} diagram "{2}" is imported partially and may have missing shapes\ninvalidSel=Invalid selection\ndiagNameEmptyErr=Diagram name cannot be empty\nopenDiagram=Open Diagram\nnewDiagram=New diagram\neditable=Editable\nconfAReimportStarted=Re-import {1} diagrams started...\nspaceFilter=Filter by spaces\ncurViewState=Current Viewer State\npageLayers=Page and Layers\ncustomize=Customize\nfirstPage=First Page (All Layers)\ncurEditorState=Current Editor State\nnoAnchorsFound=No anchors found\nattachment=Attachment\ncurDiagram=Current Diagram\nrecentDiags=Recent Diagrams\ncsvImport=CSV Import\nchooseFile=Choose a file...\nchoose=Choose\ngdriveFname=Google Drive filename\nwidthOfViewer=Width of the viewer (px)\nheightOfViewer=Height of the viewer (px)\nautoSetViewerSize=Automatically set the size of the viewer\nthumbnail=Thumbnail\nprevInDraw=Preview in draw.io\nonedriveFname=OneDrive filename\ndiagFname=Diagram filename\ndiagUrl=Diagram URL\nshowDiag=Show Diagram\ndiagPreview=Diagram Preview\ncsvFileUrl=CSV File URL\ngenerate=Generate\nselectDiag2Insert=Please select a diagram to insert it.\nerrShowingDiag=Unexpected error. Cannot show diagram\nnoRecentDiags=No recent diagrams found\nfetchingRecentFailed=Failed to fetch recent diagrams\nuseSrch2FindDiags=Use the search box to find draw.io diagrams\ncantReadChckPerms=Cannot read the specified diagram. Please check you have read permission on that file.\ncantFetchChckPerms=Cannot fetch diagram info. Please check you have read permission on that file.\nsearchFailed=Searching failed. Please try again later.\nplsTypeStr=Please type a search string.\nunsupportedFileChckUrl=Unsupported file. Please check the specified URL\ndiagNotFoundChckUrl=Diagram not found or cannot be accessed. Please check the specified URL\ncsvNotFoundChckUrl=CSV file not found or cannot be accessed. Please check the specified URL\ncantReadUpload=Cannot read the uploaded diagram\nselect=Select\nerrCantGetIdType=Unexpected Error: Cannot get content id or type.\nerrGAuthWinBlocked=Error: Google Authentication window blocked\nauthDrawAccess=Authorize draw.io to access {1}\nconnTimeout=The connection has timed out\nerrAuthSrvc=Error authenticating to {1}\nplsSelectFile=Please select a file\nmustBgtZ={1} must be greater than zero\ncantLoadPrev=Cannot load file preview.\nerrAccessFile=Error: Access Denied. You do not have permission to access "{1}".\nnoPrevAvail=No preview is available.\npersonalAccNotSup=Personal accounts are not supported.\nerrSavingTryLater=Error occurred during saving, please try again later.\nplsEnterFld=Please enter {1}\ninvalidDiagUrl=Invalid Diagram URL\nunsupportedVsdx=Unsupported vsdx file\nunsupportedImg=Unsupported image file\nunsupportedFormat=Unsupported file format\nplsSelectSingleFile=Please select a single file only\nattCorrupt=Attachment file "{1}" is corrupted\nloadAttFailed=Failed to load attachment "{1}"\nembedDrawDiag=Embed draw.io Diagram\naddDiagram=Add Diagram\nembedDiagram=Embed Diagram\neditOwningPg=Edit owning page\ndeepIndexing=Deep Indexing (Index diagrams that aren\'t used in any page also)\nconfADeepIndexStarted=Deep Indexing Started\nconfADeepIndexDone=Deep Indexing Done\nofficeNoDiagramsSelected=No diagrams found in the selection\nofficeNoDiagramsInDoc=No diagrams found in the document\nofficeNotSupported=This feature is not supported in this host application\nsomeImagesFailed={1} out of {2} failed due to the following errors\nimportingNoUsedDiagrams=Importing {1} Diagrams not used in pages\nimportingDrafts=Importing {1} Diagrams in drafts\nprocessingDrafts=Processing drafts\nupdatingDrafts=Updating drafts\nupdateDrafts=Update drafts\nnotifications=Notifications\ndrawioImp=draw.io Import\nconfALibsImp=Importing draw.io Libraries\nconfALibsImpFailed=Importing {1} library failed\ncontributors=Contributors\ndrawDiagrams=draw.io Diagrams\nerrFileNotFoundOrNoPer=Error: Access Denied. File not found or you do not have permission to access "{1}" on {2}.\nconfACheckPagesWEmbed=Checking pages having embedded draw.io diagrams.\nconfADelBrokenEmbedDiagLnk=Removing broken embedded diagram links\nreplaceWith=Replace with\nreplaceAll=Replace All\nconfASkipDiagModified=Skipped "{1}" as it was modified after initial import\nreplFind=Replace/Find\nmatchesRepl={1} matches replaced\ndraftErrDataLoss=An error occurred while reading the draft file. The diagram cannot be edited now to prevent any possible data loss. Please try again later or contact support.\nibm=IBM\nlinkToDiagramHint=Add a link to this diagram. The diagram can only be edited from the page that owns it.\nlinkToDiagram=Link to Diagram\nchangedBy=Changed By\nlastModifiedOn=Last modified on\nsearchResults=Search Results\nshowAllTemps=Show all templates\nnotionToken=Notion Token\nselectDB=Select Database\nnoDBs=No Databases\ndiagramEdited={1} diagram "{2}" edited\nconfDraftPermissionErr=Draft cannot be written. Do you have attachment write/read permission on this page?\nconfDraftTooBigErr=Draft size is too large. Pease check "Attachment Maximum Size" of "Attachment Settings" in Confluence Configuration?\nowner=Owner\nrepository=Repository\nbranch=Branch\nmeters=Meters\nteamsNoEditingMsg=Editor functionality is only available in Desktop environment (in MS Teams App or a web browser)\ncontactOwner=Contact Owner\nviewerOnlyMsg=You cannot edit the diagrams in the mobile platform, please use the desktop client or a web browser.\nwebsite=Website\ncheck4Updates=Check for updates\nattWriteFailedRetry={1}: Attachment write failed, trying again in {2} seconds...\nconfPartialPageList=We couldn\'t fetch all pages due to an error in Confluence. Continuing using {1} pages only.\nspellCheck=Spell checker\nnoChange=No Change\nlblToSvg=Convert labels to SVG\ntxtSettings=Text Settings\nLinksLost=Links will be lost\narcSize=Arc Size\n');Graph.prototype.defaultThemes["default-style2"]=mxUtils.parseXml('<mxStylesheet><add as="defaultVertex"><add as="shape" value="label"/><add as="perimeter" value="rectanglePerimeter"/><add as="fontSize" value="12"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="fillColor" value="default"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="defaultEdge"><add as="shape" value="connector"/><add as="labelBackgroundColor" value="default"/><add as="endArrow" value="classic"/><add as="fontSize" value="11"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="rounded" value="1"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="text"><add as="fillColor" value="none"/><add as="gradientColor" value="none"/><add as="strokeColor" value="none"/><add as="align" value="left"/><add as="verticalAlign" value="top"/></add><add as="edgeLabel" extend="text"><add as="labelBackgroundColor" value="default"/><add as="fontSize" value="11"/></add><add as="label"><add as="fontStyle" value="1"/><add as="align" value="left"/><add as="verticalAlign" value="middle"/><add as="spacing" value="2"/><add as="spacingLeft" value="52"/><add as="imageWidth" value="42"/><add as="imageHeight" value="42"/><add as="rounded" value="1"/></add><add as="icon" extend="label"><add as="align" value="center"/><add as="imageAlign" value="center"/><add as="verticalLabelPosition" value="bottom"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="4"/><add as="labelBackgroundColor" value="default"/><add as="spacing" value="0"/><add as="spacingLeft" value="0"/><add as="spacingTop" value="6"/><add as="fontStyle" value="0"/><add as="imageWidth" value="48"/><add as="imageHeight" value="48"/></add><add as="swimlane"><add as="shape" value="swimlane"/><add as="fontSize" value="12"/><add as="fontStyle" value="1"/><add as="startSize" value="23"/></add><add as="group"><add as="verticalAlign" value="top"/><add as="fillColor" value="none"/><add as="strokeColor" value="none"/><add as="gradientColor" value="none"/><add as="pointerEvents" value="0"/></add><add as="ellipse"><add as="shape" value="ellipse"/><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombus"><add as="shape" value="rhombus"/><add as="perimeter" value="rhombusPerimeter"/></add><add as="triangle"><add as="shape" value="triangle"/><add as="perimeter" value="trianglePerimeter"/></add><add as="line"><add as="shape" value="line"/><add as="strokeWidth" value="4"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="8"/></add><add as="image"><add as="shape" value="image"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="verticalLabelPosition" value="bottom"/></add><add as="roundImage" extend="image"><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombusImage" extend="image"><add as="perimeter" value="rhombusPerimeter"/></add><add as="arrow"><add as="shape" value="arrow"/><add as="edgeStyle" value="none"/><add as="fillColor" value="default"/></add><add as="fancy"><add as="shadow" value="1"/><add as="glass" value="1"/></add><add as="gray" extend="fancy"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="blue" extend="fancy"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="green" extend="fancy"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="turquoise" extend="fancy"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="yellow" extend="fancy"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="orange" extend="fancy"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="red" extend="fancy"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="pink" extend="fancy"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="purple" extend="fancy"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add><add as="plain-gray"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="plain-blue"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="plain-green"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="plain-turquoise"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="plain-yellow"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="plain-orange"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="plain-red"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="plain-pink"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="plain-purple"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add></mxStylesheet>').documentElement;
Graph.prototype.defaultThemes.darkTheme=Graph.prototype.defaultThemes["default-style2"];GraphViewer=function(b,c,e){this.init(b,c,e)};mxUtils.extend(GraphViewer,mxEventSource);GraphViewer.prototype.editBlankUrl="https://app.diagrams.net/";GraphViewer.prototype.imageBaseUrl="https://viewer.diagrams.net/";GraphViewer.prototype.toolbarHeight="BackCompat"==document.compatMode?24:26;GraphViewer.prototype.lightboxChrome=!0;GraphViewer.prototype.lightboxZIndex=999;GraphViewer.prototype.toolbarZIndex=999;GraphViewer.prototype.autoFit=!1;GraphViewer.prototype.autoCrop=!1;
GraphViewer.prototype.autoOrigin=!0;GraphViewer.prototype.center=!1;GraphViewer.prototype.forceCenter=!1;GraphViewer.prototype.allowZoomIn=!1;GraphViewer.prototype.allowZoomOut=!0;GraphViewer.prototype.showTitleAsTooltip=!1;GraphViewer.prototype.checkVisibleState=!0;GraphViewer.prototype.minHeight=28;GraphViewer.prototype.minWidth=100;GraphViewer.prototype.responsive=!1;
GraphViewer.prototype.init=function(b,c,e){this.graphConfig=null!=e?e:{};this.autoFit=null!=this.graphConfig["auto-fit"]?this.graphConfig["auto-fit"]:this.autoFit;this.autoCrop=null!=this.graphConfig["auto-crop"]?this.graphConfig["auto-crop"]:this.autoCrop;this.autoOrigin=null!=this.graphConfig["auto-origin"]?this.graphConfig["auto-origin"]:this.autoOrigin;this.allowZoomOut=null!=this.graphConfig["allow-zoom-out"]?this.graphConfig["allow-zoom-out"]:this.allowZoomOut;this.allowZoomIn=null!=this.graphConfig["allow-zoom-in"]?
@@ -4091,7 +4091,7 @@ this.graph.dialect==mxConstants.DIALECT_SVG){var e=this.graph.view.getDrawPane()
(this.editor.defaultGraphOverflow="visible");this.xmlNode=this.editor.extractGraphModel(this.xmlNode,!0);this.xmlNode!=c&&(this.xml=mxUtils.getXml(this.xmlNode),this.xmlDocument=this.xmlNode.ownerDocument);var d=this;this.graph.getImageFromBundles=function(b){return d.getImageUrl(b)};mxClient.IS_SVG&&this.graph.addSvgShadow(this.graph.view.canvas.ownerSVGElement,null,!0);if("mxfile"==this.xmlNode.nodeName){var f=this.xmlNode.getElementsByTagName("diagram");if(0<f.length){if(null!=this.pageId)for(var g=
0;g<f.length;g++)if(this.pageId==f[g].getAttribute("id")){this.currentPage=g;break}var l=this.graph.getGlobalVariable,d=this;this.graph.getGlobalVariable=function(b){var c=f[d.currentPage];return"page"==b?c.getAttribute("name")||"Page-"+(d.currentPage+1):"pagenumber"==b?d.currentPage+1:"pagecount"==b?f.length:l.apply(this,arguments)}}}this.diagrams=[];var m=null;this.selectPage=function(b){this.handlingResize||(this.currentPage=mxUtils.mod(b,this.diagrams.length),this.updateGraphXml(Editor.parseDiagramNode(this.diagrams[this.currentPage])))};
this.selectPageById=function(b){b=this.getIndexById(b);var c=0<=b;c&&this.selectPage(b);return c};var g=mxUtils.bind(this,function(){if(null==this.xmlNode||"mxfile"!=this.xmlNode.nodeName)this.diagrams=[];this.xmlNode!=m&&(this.diagrams=this.xmlNode.getElementsByTagName("diagram"),m=this.xmlNode)}),n=this.graph.setBackgroundImage;this.graph.setBackgroundImage=function(b){if(null!=b&&Graph.isPageLink(b.src)){var c=b.src,e=c.indexOf(",");0<e&&(e=d.getIndexById(c.substring(e+1)),0<=e&&(b=d.getImageForGraphModel(Editor.parseDiagramNode(d.diagrams[e])),
-b.originalSrc=c))}n.apply(this,arguments)};var u=this.graph.getGraphBounds;this.graph.getGraphBounds=function(b){var c=u.apply(this,arguments);b=this.backgroundImage;if(null!=b){var d=this.view.translate,e=this.view.scale,c=mxRectangle.fromRectangle(c);c.add(new mxRectangle((d.x+b.x)*e,(d.y+b.y)*e,b.width*e,b.height*e))}return c};this.addListener("xmlNodeChanged",g);g();urlParams.page=d.currentPage;g=null;this.graph.getModel().beginUpdate();try{urlParams.nav=0!=this.graphConfig.nav?"1":"0",this.editor.setGraphXml(this.xmlNode),
+b.originalSrc=c))}n.apply(this,arguments)};var v=this.graph.getGraphBounds;this.graph.getGraphBounds=function(b){var c=v.apply(this,arguments);b=this.backgroundImage;if(null!=b){var d=this.view.translate,e=this.view.scale,c=mxRectangle.fromRectangle(c);c.add(new mxRectangle((d.x+b.x)*e,(d.y+b.y)*e,b.width*e,b.height*e))}return c};this.addListener("xmlNodeChanged",g);g();urlParams.page=d.currentPage;g=null;this.graph.getModel().beginUpdate();try{urlParams.nav=0!=this.graphConfig.nav?"1":"0",this.editor.setGraphXml(this.xmlNode),
this.graph.view.scale=this.graphConfig.zoom||1,g=this.setLayersVisible(),this.responsive||(this.graph.border=null!=this.graphConfig.border?this.graphConfig.border:8)}finally{this.graph.getModel().endUpdate()}this.responsive||(this.graph.panningHandler.isForcePanningEvent=function(b){return!mxEvent.isPopupTrigger(b.getEvent())&&"auto"==this.graph.container.style.overflow},this.graph.panningHandler.useLeftButtonForPanning=!0,this.graph.panningHandler.ignoreCell=!0,this.graph.panningHandler.usePopupTrigger=
!1,this.graph.panningHandler.pinchEnabled=!1);this.graph.setPanning(!1);null!=this.graphConfig.toolbar?this.addToolbar():null!=this.graphConfig.title&&this.showTitleAsTooltip&&b.setAttribute("title",this.graphConfig.title);this.responsive||this.addSizeHandler();!this.showLayers(this.graph)||this.forceCenter||this.layersEnabled&&!this.autoCrop||this.crop();this.addClickHandler(this.graph);this.graph.setTooltips(0!=this.graphConfig.tooltips);this.graph.initialViewState={translate:this.graph.view.translate.clone(),
scale:this.graph.view.scale};null!=g&&this.setLayersVisible(g);this.graph.customLinkClicked=function(b){if(Graph.isPageLink(b)){var c=b.indexOf(",");d.selectPageById(b.substring(c+1))||alert(mxResources.get("pageNotFound")||"Page not found")}else this.handleCustomLink(b);return!0};var t=this.graph.foldTreeCell;this.graph.foldTreeCell=mxUtils.bind(this,function(){this.treeCellFolded=!0;return t.apply(this.graph,arguments)});this.fireEvent(new mxEventObject("render"))});e=window.MutationObserver||window.WebKitMutationObserver||
@@ -4119,20 +4119,20 @@ function(){g.style.backgroundColor="#eee"}),mxUtils.setOpacity(b,60),g.style.cur
e.style.whiteSpace="nowrap";e.style.textAlign="left";e.style.zIndex=this.toolbarZIndex;e.style.backgroundColor="#eee";e.style.height=this.toolbarHeight+"px";this.toolbar=e;if("inline"==this.graphConfig["toolbar-position"]){mxUtils.setPrefixedStyle(e.style,"transition","opacity 100ms ease-in-out");mxUtils.setOpacity(e,30);var f=null,n=null,l=mxUtils.bind(this,function(b){null!=f&&(window.clearTimeout(f),fadeThead=null);null!=n&&(window.clearTimeout(n),fadeThead2=null);f=window.setTimeout(mxUtils.bind(this,
function(){mxUtils.setOpacity(e,0);f=null;n=window.setTimeout(mxUtils.bind(this,function(){e.style.display="none";n=null}),100)}),b||200)}),q=mxUtils.bind(this,function(b){null!=f&&(window.clearTimeout(f),fadeThead=null);null!=n&&(window.clearTimeout(n),fadeThead2=null);e.style.display="";mxUtils.setOpacity(e,b||30)});mxEvent.addListener(this.graph.container,mxClient.IS_POINTER?"pointermove":"mousemove",mxUtils.bind(this,function(b){mxEvent.isTouchEvent(b)||(q(30),l())}));mxEvent.addListener(e,mxClient.IS_POINTER?
"pointermove":"mousemove",function(b){mxEvent.consume(b)});mxEvent.addListener(e,"mouseenter",mxUtils.bind(this,function(b){q(100)}));mxEvent.addListener(e,"mousemove",mxUtils.bind(this,function(b){q(100);mxEvent.consume(b)}));mxEvent.addListener(e,"mouseleave",mxUtils.bind(this,function(b){mxEvent.isTouchEvent(b)||q(30)}));var d=this.graph,k=d.getTolerance();d.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(b,c){this.startX=c.getGraphX();this.startY=c.getGraphY();
-this.scrollLeft=d.container.scrollLeft;this.scrollTop=d.container.scrollTop},mouseMove:function(b,c){},mouseUp:function(b,c){mxEvent.isTouchEvent(c.getEvent())&&Math.abs(this.scrollLeft-d.container.scrollLeft)<k&&Math.abs(this.scrollTop-d.container.scrollTop)<k&&Math.abs(this.startX-c.getGraphX())<k&&Math.abs(this.startY-c.getGraphY())<k&&(0<parseFloat(e.style.opacity||0)?l():q(30))}})}for(var g=this.toolbarItems,p=0,m=null,v=null,u=null,t=null,z=0;z<g.length;z++){var y=g[z];if("pages"==y){t=c.ownerDocument.createElement("div");
-t.style.cssText="display:inline-block;position:relative;top:5px;padding:0 4px 0 4px;vertical-align:top;font-family:Helvetica,Arial;font-size:12px;;cursor:default;";mxUtils.setOpacity(t,70);var F=b(mxUtils.bind(this,function(){this.selectPage(this.currentPage-1)}),Editor.previousImage,mxResources.get("previousPage")||"Previous Page");F.style.borderRightStyle="none";F.style.paddingLeft="0px";F.style.paddingRight="0px";e.appendChild(t);var D=b(mxUtils.bind(this,function(){this.selectPage(this.currentPage+
-1)}),Editor.nextImage,mxResources.get("nextPage")||"Next Page");D.style.paddingLeft="0px";D.style.paddingRight="0px";y=mxUtils.bind(this,function(){t.innerHTML="";mxUtils.write(t,this.currentPage+1+" / "+this.diagrams.length);t.style.display=1<this.diagrams.length?"inline-block":"none";F.style.display=t.style.display;D.style.display=t.style.display});this.addListener("graphChanged",y);y()}else if("zoom"==y)this.zoomEnabled&&(b(mxUtils.bind(this,function(){this.graph.zoomOut()}),Editor.zoomOutImage,
-mxResources.get("zoomOut")||"Zoom Out"),b(mxUtils.bind(this,function(){this.graph.zoomIn()}),Editor.zoomInImage,mxResources.get("zoomIn")||"Zoom In"),b(mxUtils.bind(this,function(){this.graph.view.scaleAndTranslate(this.graph.initialViewState.scale,this.graph.initialViewState.translate.x,this.graph.initialViewState.translate.y)}),Editor.zoomFitImage,mxResources.get("fit")||"Fit"));else if("layers"==y){if(this.layersEnabled){var E=this.graph.getModel(),H=b(mxUtils.bind(this,function(b){if(null!=m)m.parentNode.removeChild(m),
+this.scrollLeft=d.container.scrollLeft;this.scrollTop=d.container.scrollTop},mouseMove:function(b,c){},mouseUp:function(b,c){mxEvent.isTouchEvent(c.getEvent())&&Math.abs(this.scrollLeft-d.container.scrollLeft)<k&&Math.abs(this.scrollTop-d.container.scrollTop)<k&&Math.abs(this.startX-c.getGraphX())<k&&Math.abs(this.startY-c.getGraphY())<k&&(0<parseFloat(e.style.opacity||0)?l():q(30))}})}for(var g=this.toolbarItems,p=0,m=null,u=null,v=null,t=null,z=0;z<g.length;z++){var y=g[z];if("pages"==y){t=c.ownerDocument.createElement("div");
+t.style.cssText="display:inline-block;position:relative;top:5px;padding:0 4px 0 4px;vertical-align:top;font-family:Helvetica,Arial;font-size:12px;;cursor:default;";mxUtils.setOpacity(t,70);var I=b(mxUtils.bind(this,function(){this.selectPage(this.currentPage-1)}),Editor.previousImage,mxResources.get("previousPage")||"Previous Page");I.style.borderRightStyle="none";I.style.paddingLeft="0px";I.style.paddingRight="0px";e.appendChild(t);var D=b(mxUtils.bind(this,function(){this.selectPage(this.currentPage+
+1)}),Editor.nextImage,mxResources.get("nextPage")||"Next Page");D.style.paddingLeft="0px";D.style.paddingRight="0px";y=mxUtils.bind(this,function(){t.innerHTML="";mxUtils.write(t,this.currentPage+1+" / "+this.diagrams.length);t.style.display=1<this.diagrams.length?"inline-block":"none";I.style.display=t.style.display;D.style.display=t.style.display});this.addListener("graphChanged",y);y()}else if("zoom"==y)this.zoomEnabled&&(b(mxUtils.bind(this,function(){this.graph.zoomOut()}),Editor.zoomOutImage,
+mxResources.get("zoomOut")||"Zoom Out"),b(mxUtils.bind(this,function(){this.graph.zoomIn()}),Editor.zoomInImage,mxResources.get("zoomIn")||"Zoom In"),b(mxUtils.bind(this,function(){this.graph.view.scaleAndTranslate(this.graph.initialViewState.scale,this.graph.initialViewState.translate.x,this.graph.initialViewState.translate.y)}),Editor.zoomFitImage,mxResources.get("fit")||"Fit"));else if("layers"==y){if(this.layersEnabled){var F=this.graph.getModel(),E=b(mxUtils.bind(this,function(b){if(null!=m)m.parentNode.removeChild(m),
m=null;else{m=this.graph.createLayersDialog(mxUtils.bind(this,function(){if(this.autoCrop)this.crop();else if(this.autoOrigin){var b=this.graph.getGraphBounds(),c=this.graph.view;0>b.x||0>b.y?(this.crop(),this.graph.originalViewState=this.graph.initialViewState,this.graph.initialViewState={translate:c.translate.clone(),scale:c.scale}):null!=this.graph.originalViewState&&0<b.x/c.scale+this.graph.originalViewState.translate.x-c.translate.x&&0<b.y/c.scale+this.graph.originalViewState.translate.y-c.translate.y&&
-(c.setTranslate(this.graph.originalViewState.translate.x,this.graph.originalViewState.translate.y),this.graph.originalViewState=null,this.graph.initialViewState={translate:c.translate.clone(),scale:c.scale})}}));mxEvent.addListener(m,"mouseleave",function(){m.parentNode.removeChild(m);m=null});b=H.getBoundingClientRect();m.style.width="140px";m.style.padding="2px 0px 2px 0px";m.style.border="1px solid #d0d0d0";m.style.backgroundColor="#eee";m.style.fontFamily=Editor.defaultHtmlFont;m.style.fontSize=
-"11px";m.style.overflowY="auto";m.style.maxHeight=this.graph.container.clientHeight-this.toolbarHeight-10+"px";m.style.zIndex=this.toolbarZIndex+1;mxUtils.setOpacity(m,80);var c=mxUtils.getDocumentScrollOrigin(document);m.style.left=c.x+b.left-1+"px";m.style.top=c.y+b.bottom-2+"px";document.body.appendChild(m)}}),Editor.layersImage,mxResources.get("layers")||"Layers");E.addListener(mxEvent.CHANGE,function(){H.style.display=1<E.getChildCount(E.root)?"inline-block":"none"});H.style.display=1<E.getChildCount(E.root)?
-"inline-block":"none"}}else if("tags"==y){if(this.tagsEnabled){var N=b(mxUtils.bind(this,function(b){null==v&&(v=this.graph.createTagsDialog(mxUtils.bind(this,function(){return!0})),v.div.getElementsByTagName("div")[0].style.position="",v.div.style.maxHeight="160px",v.div.style.maxWidth="120px",v.div.style.padding="2px",v.div.style.overflow="auto",v.div.style.height="auto",v.div.style.position="fixed",v.div.style.fontFamily=Editor.defaultHtmlFont,v.div.style.fontSize="11px",v.div.style.backgroundColor=
-"#eee",v.div.style.color="#000",v.div.style.border="1px solid #d0d0d0",v.div.style.zIndex=this.toolbarZIndex+1,mxUtils.setOpacity(v.div,80));if(null!=u)u.parentNode.removeChild(u),u=null;else{u=v.div;mxEvent.addListener(u,"mouseleave",function(){u.parentNode.removeChild(u);u=null});b=N.getBoundingClientRect();var c=mxUtils.getDocumentScrollOrigin(document);u.style.left=c.x+b.left-1+"px";u.style.top=c.y+b.bottom-2+"px";document.body.appendChild(u);v.refresh()}}),Editor.tagsImage,mxResources.get("tags")||
-"Tags");E.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){N.style.display=0<this.graph.getAllTags().length?"inline-block":"none"}));N.style.display=0<this.graph.getAllTags().length?"inline-block":"none"}}else"lightbox"==y?this.lightboxEnabled&&b(mxUtils.bind(this,function(){this.showLightbox()}),Editor.fullscreenImage,mxResources.get("fullscreen")||"Fullscreen"):null!=this.graphConfig["toolbar-buttons"]&&(y=this.graphConfig["toolbar-buttons"][y],null!=y&&(y.elem=b(null==y.enabled||y.enabled?
+(c.setTranslate(this.graph.originalViewState.translate.x,this.graph.originalViewState.translate.y),this.graph.originalViewState=null,this.graph.initialViewState={translate:c.translate.clone(),scale:c.scale})}}));mxEvent.addListener(m,"mouseleave",function(){m.parentNode.removeChild(m);m=null});b=E.getBoundingClientRect();m.style.width="140px";m.style.padding="2px 0px 2px 0px";m.style.border="1px solid #d0d0d0";m.style.backgroundColor="#eee";m.style.fontFamily=Editor.defaultHtmlFont;m.style.fontSize=
+"11px";m.style.overflowY="auto";m.style.maxHeight=this.graph.container.clientHeight-this.toolbarHeight-10+"px";m.style.zIndex=this.toolbarZIndex+1;mxUtils.setOpacity(m,80);var c=mxUtils.getDocumentScrollOrigin(document);m.style.left=c.x+b.left-1+"px";m.style.top=c.y+b.bottom-2+"px";document.body.appendChild(m)}}),Editor.layersImage,mxResources.get("layers")||"Layers");F.addListener(mxEvent.CHANGE,function(){E.style.display=1<F.getChildCount(F.root)?"inline-block":"none"});E.style.display=1<F.getChildCount(F.root)?
+"inline-block":"none"}}else if("tags"==y){if(this.tagsEnabled){var O=b(mxUtils.bind(this,function(b){null==u&&(u=this.graph.createTagsDialog(mxUtils.bind(this,function(){return!0})),u.div.getElementsByTagName("div")[0].style.position="",u.div.style.maxHeight="160px",u.div.style.maxWidth="120px",u.div.style.padding="2px",u.div.style.overflow="auto",u.div.style.height="auto",u.div.style.position="fixed",u.div.style.fontFamily=Editor.defaultHtmlFont,u.div.style.fontSize="11px",u.div.style.backgroundColor=
+"#eee",u.div.style.color="#000",u.div.style.border="1px solid #d0d0d0",u.div.style.zIndex=this.toolbarZIndex+1,mxUtils.setOpacity(u.div,80));if(null!=v)v.parentNode.removeChild(v),v=null;else{v=u.div;mxEvent.addListener(v,"mouseleave",function(){v.parentNode.removeChild(v);v=null});b=O.getBoundingClientRect();var c=mxUtils.getDocumentScrollOrigin(document);v.style.left=c.x+b.left-1+"px";v.style.top=c.y+b.bottom-2+"px";document.body.appendChild(v);u.refresh()}}),Editor.tagsImage,mxResources.get("tags")||
+"Tags");F.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){O.style.display=0<this.graph.getAllTags().length?"inline-block":"none"}));O.style.display=0<this.graph.getAllTags().length?"inline-block":"none"}}else"lightbox"==y?this.lightboxEnabled&&b(mxUtils.bind(this,function(){this.showLightbox()}),Editor.fullscreenImage,mxResources.get("fullscreen")||"Fullscreen"):null!=this.graphConfig["toolbar-buttons"]&&(y=this.graphConfig["toolbar-buttons"][y],null!=y&&(y.elem=b(null==y.enabled||y.enabled?
y.handler:function(){},y.image,y.title,y.enabled)))}null!=this.graph.minimumContainerSize&&(this.graph.minimumContainerSize.width=34*p);null!=this.graphConfig.title&&(g=c.ownerDocument.createElement("div"),g.style.cssText="display:inline-block;position:relative;padding:3px 6px 0 6px;vertical-align:top;font-family:Helvetica,Arial;font-size:12px;top:4px;cursor:default;",g.setAttribute("title",this.graphConfig.title),mxUtils.write(g,this.graphConfig.title),mxUtils.setOpacity(g,70),e.appendChild(g),this.filename=
-g);this.minToolbarWidth=34*p;var A=c.style.border,G=mxUtils.bind(this,function(){e.style.width="inline"==this.graphConfig["toolbar-position"]?"auto":Math.max(this.minToolbarWidth,c.offsetWidth)+"px";e.style.border="1px solid #d0d0d0";if(1!=this.graphConfig["toolbar-nohide"]){var b=c.getBoundingClientRect(),d=mxUtils.getScrollOrigin(document.body),d="relative"===document.body.style.position?document.body.getBoundingClientRect():{left:-d.x,top:-d.y},b={left:b.left-d.left,top:b.top-d.top,bottom:b.bottom-
-d.top,right:b.right-d.left};e.style.left=b.left+"px";"bottom"==this.graphConfig["toolbar-position"]?e.style.top=b.bottom-1+"px":"inline"!=this.graphConfig["toolbar-position"]?(e.style.marginTop=-this.toolbarHeight+"px",e.style.top=b.top+1+"px"):e.style.top=b.top+"px";"1px solid transparent"==A&&(c.style.border="1px solid #d0d0d0");document.body.appendChild(e);var f=mxUtils.bind(this,function(){null!=e.parentNode&&e.parentNode.removeChild(e);null!=m&&(m.parentNode.removeChild(m),m=null);c.style.border=
-A});mxEvent.addListener(document,"mousemove",function(b){for(b=mxEvent.getSource(b);null!=b;){if(b==c||b==e||b==m)return;b=b.parentNode}f()});mxEvent.addListener(document.body,"mouseleave",function(b){f()})}else e.style.top=-this.toolbarHeight+"px",c.appendChild(e)});1!=this.graphConfig["toolbar-nohide"]?mxEvent.addListener(c,"mouseenter",G):G();this.responsive&&"undefined"!==typeof ResizeObserver&&(new ResizeObserver(function(){null!=e.parentNode&&G()})).observe(c)};
+g);this.minToolbarWidth=34*p;var B=c.style.border,G=mxUtils.bind(this,function(){e.style.width="inline"==this.graphConfig["toolbar-position"]?"auto":Math.max(this.minToolbarWidth,c.offsetWidth)+"px";e.style.border="1px solid #d0d0d0";if(1!=this.graphConfig["toolbar-nohide"]){var b=c.getBoundingClientRect(),d=mxUtils.getScrollOrigin(document.body),d="relative"===document.body.style.position?document.body.getBoundingClientRect():{left:-d.x,top:-d.y},b={left:b.left-d.left,top:b.top-d.top,bottom:b.bottom-
+d.top,right:b.right-d.left};e.style.left=b.left+"px";"bottom"==this.graphConfig["toolbar-position"]?e.style.top=b.bottom-1+"px":"inline"!=this.graphConfig["toolbar-position"]?(e.style.marginTop=-this.toolbarHeight+"px",e.style.top=b.top+1+"px"):e.style.top=b.top+"px";"1px solid transparent"==B&&(c.style.border="1px solid #d0d0d0");document.body.appendChild(e);var f=mxUtils.bind(this,function(){null!=e.parentNode&&e.parentNode.removeChild(e);null!=m&&(m.parentNode.removeChild(m),m=null);c.style.border=
+B});mxEvent.addListener(document,"mousemove",function(b){for(b=mxEvent.getSource(b);null!=b;){if(b==c||b==e||b==m)return;b=b.parentNode}f()});mxEvent.addListener(document.body,"mouseleave",function(b){f()})}else e.style.top=-this.toolbarHeight+"px",c.appendChild(e)});1!=this.graphConfig["toolbar-nohide"]?mxEvent.addListener(c,"mouseenter",G):G();this.responsive&&"undefined"!==typeof ResizeObserver&&(new ResizeObserver(function(){null!=e.parentNode&&G()})).observe(c)};
GraphViewer.prototype.disableButton=function(b){var c=this.graphConfig["toolbar-buttons"][b];null!=c&&(mxUtils.setOpacity(c.elem,30),mxEvent.removeListener(c.elem,"click",c.handler),mxEvent.addListener(c.elem,"mouseenter",function(){c.elem.style.backgroundColor="#eee"}))};
GraphViewer.prototype.addClickHandler=function(b,c){b.linkPolicy=this.graphConfig.target||b.linkPolicy;b.addClickHandler(this.graphConfig.highlight,mxUtils.bind(this,function(e,f){if(null==f)for(var n=mxEvent.getSource(e);n!=b.container&&null!=n&&null==f;)"a"==n.nodeName.toLowerCase()&&(f=n.getAttribute("href")),n=n.parentNode;null!=c?null==f||b.isCustomLink(f)?mxEvent.consume(e):b.isExternalProtocol(f)||b.isBlankLink(f)||window.setTimeout(function(){c.destroy()},0):null!=f&&null==c&&b.isCustomLink(f)&&
(mxEvent.isTouchEvent(e)||!mxEvent.isPopupTrigger(e))&&b.customLinkClicked(f)&&(mxUtils.clearSelection(),mxEvent.consume(e))}),mxUtils.bind(this,function(b){null!=c||!this.lightboxClickEnabled||mxEvent.isTouchEvent(b)&&0!=this.toolbarItems.length||this.showLightbox()}))};
@@ -4154,8 +4154,8 @@ GraphViewer.initCss=function(){try{var b=document.createElement("style");b.type=
GraphViewer.cachedUrls={};GraphViewer.getUrl=function(b,c,e){if(null!=GraphViewer.cachedUrls[b])c(GraphViewer.cachedUrls[b]);else{var f=null!=navigator.userAgent&&0<navigator.userAgent.indexOf("MSIE 9")?new XDomainRequest:new XMLHttpRequest;f.open("GET",b);f.onload=function(){c(null!=f.getText?f.getText():f.responseText)};f.onerror=e;f.send()}};GraphViewer.resizeSensorEnabled=!0;GraphViewer.useResizeSensor=!0;
(function(){var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(b){return window.setTimeout(b,20)},c=function(e,f){function n(){this.q=[];this.add=function(b){this.q.push(b)};var b,c;this.call=function(){b=0;for(c=this.q.length;b<c;b++)this.q[b].call()}}function l(b,c){return b.currentStyle?b.currentStyle[c]:window.getComputedStyle?window.getComputedStyle(b,null).getPropertyValue(c):b.style[c]}function q(c,d){if(!c.resizedAttached)c.resizedAttached=
new n,c.resizedAttached.add(d);else if(c.resizedAttached){c.resizedAttached.add(d);return}c.resizeSensor=document.createElement("div");c.resizeSensor.className="resize-sensor";c.resizeSensor.style.cssText="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;";c.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;"><div style="position: absolute; left: 0; top: 0; transition: 0s;"></div></div><div class="resize-sensor-shrink" style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;"><div style="position: absolute; left: 0; top: 0; transition: 0s; width: 200%; height: 200%"></div></div>';
-c.appendChild(c.resizeSensor);"static"==l(c,"position")&&(c.style.position="relative");var e=c.resizeSensor.childNodes[0],f=e.childNodes[0],g=c.resizeSensor.childNodes[1],k=function(){f.style.width="100000px";f.style.height="100000px";e.scrollLeft=1E5;e.scrollTop=1E5;g.scrollLeft=1E5;g.scrollTop=1E5};k();var m=!1,p=function(){c.resizedAttached&&(m&&(c.resizedAttached.call(),m=!1),b(p))};b(p);var q,v,N,A,G=function(){if((N=c.offsetWidth)!=q||(A=c.offsetHeight)!=v)m=!0,q=N,v=A;k()},I=function(b,c,d){b.attachEvent?
-b.attachEvent("on"+c,d):b.addEventListener(c,d)};I(e,"scroll",G);I(g,"scroll",G)}var d=function(){GraphViewer.resizeSensorEnabled&&f()},k=Object.prototype.toString.call(e),g="[object Array]"===k||"[object NodeList]"===k||"[object HTMLCollection]"===k||"undefined"!==typeof jQuery&&e instanceof jQuery||"undefined"!==typeof Elements&&e instanceof Elements;if(g)for(var k=0,p=e.length;k<p;k++)q(e[k],d);else q(e,d);this.detach=function(){if(g)for(var b=0,d=e.length;b<d;b++)c.detach(e[b]);else c.detach(e)}};
+c.appendChild(c.resizeSensor);"static"==l(c,"position")&&(c.style.position="relative");var e=c.resizeSensor.childNodes[0],f=e.childNodes[0],g=c.resizeSensor.childNodes[1],k=function(){f.style.width="100000px";f.style.height="100000px";e.scrollLeft=1E5;e.scrollTop=1E5;g.scrollLeft=1E5;g.scrollTop=1E5};k();var m=!1,p=function(){c.resizedAttached&&(m&&(c.resizedAttached.call(),m=!1),b(p))};b(p);var q,u,O,B,G=function(){if((O=c.offsetWidth)!=q||(B=c.offsetHeight)!=u)m=!0,q=O,u=B;k()},H=function(b,c,d){b.attachEvent?
+b.attachEvent("on"+c,d):b.addEventListener(c,d)};H(e,"scroll",G);H(g,"scroll",G)}var d=function(){GraphViewer.resizeSensorEnabled&&f()},k=Object.prototype.toString.call(e),g="[object Array]"===k||"[object NodeList]"===k||"[object HTMLCollection]"===k||"undefined"!==typeof jQuery&&e instanceof jQuery||"undefined"!==typeof Elements&&e instanceof Elements;if(g)for(var k=0,p=e.length;k<p;k++)q(e[k],d);else q(e,d);this.detach=function(){if(g)for(var b=0,d=e.length;b<d;b++)c.detach(e[b]);else c.detach(e)}};
c.detach=function(b){b.resizeSensor&&(b.removeChild(b.resizeSensor),delete b.resizeSensor,delete b.resizedAttached)};window.ResizeSensor=c})();
function mxBpmnShape(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxBpmnShape,mxShape);
mxBpmnShape.prototype.customProperties=[{name:"symbol",dispName:"Event",type:"enum",defVal:"general",enumList:[{val:"general",dispName:"General"},{val:"message",dispName:"Message"},{val:"timer",dispName:"Timer"},{val:"escalation",dispName:"Escalation"},{val:"conditional",dispName:"Conditional"},{val:"link",dispName:"Link"},{val:"error",dispName:"Error"},{val:"cancel",dispName:"Cancel"},{val:"compensation",dispName:"Compensation"},{val:"signal",dispName:"Signal"},{val:"multiple",dispName:"Multiple"},
diff --git a/src/main/webapp/js/viewer.min.js b/src/main/webapp/js/viewer.min.js
index 2ae0f3ca..b355c878 100644
--- a/src/main/webapp/js/viewer.min.js
+++ b/src/main/webapp/js/viewer.min.js
@@ -186,7 +186,7 @@ var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456
"");l<a.length;)d=this._keyStr.indexOf(a.charAt(l++)),e=this._keyStr.indexOf(a.charAt(l++)),g=this._keyStr.indexOf(a.charAt(l++)),k=this._keyStr.indexOf(a.charAt(l++)),d=d<<2|e>>4,e=(e&15)<<4|g>>2,f=(g&3)<<6|k,c+=String.fromCharCode(d),64!=g&&(c+=String.fromCharCode(e)),64!=k&&(c+=String.fromCharCode(f));b||(c=Base64._utf8_decode(c));return c},_utf8_encode:function(a){a=a.replace(/\r\n/g,"\n");for(var b="",c=0;c<a.length;c++){var d=a.charCodeAt(c);128>d?b+=String.fromCharCode(d):(127<d&&2048>d?b+=
String.fromCharCode(d>>6|192):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128)),b+=String.fromCharCode(d&63|128))}return b},_utf8_decode:function(a){var b="",c=0,d;for(c1=c2=0;c<a.length;)d=a.charCodeAt(c),128>d?(b+=String.fromCharCode(d),c++):191<d&&224>d?(c2=a.charCodeAt(c+1),b+=String.fromCharCode((d&31)<<6|c2&63),c+=2):(c2=a.charCodeAt(c+1),c3=a.charCodeAt(c+2),b+=String.fromCharCode((d&15)<<12|(c2&63)<<6|c3&63),c+=3);return b}};window.urlParams=window.urlParams||{};window.isLocalStorage=window.isLocalStorage||!1;window.mxLoadSettings=window.mxLoadSettings||"1"!=urlParams.configure;window.isSvgBrowser=!0;window.DRAWIO_BASE_URL=window.DRAWIO_BASE_URL||(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)?window.location.protocol+"//"+window.location.hostname:"https://app.diagrams.net");window.DRAWIO_LIGHTBOX_URL=window.DRAWIO_LIGHTBOX_URL||"https://viewer.diagrams.net";
window.EXPORT_URL=window.EXPORT_URL||"https://convert.diagrams.net/node/export";window.PLANT_URL=window.PLANT_URL||"https://plant-aws.diagrams.net";window.DRAW_MATH_URL=window.DRAW_MATH_URL||window.DRAWIO_BASE_URL+"/math";window.VSD_CONVERT_URL=window.VSD_CONVERT_URL||"https://convert.diagrams.net/VsdConverter/api/converter";window.EMF_CONVERT_URL=window.EMF_CONVERT_URL||"https://convert.diagrams.net/emf2png/convertEMF";window.REALTIME_URL=window.REALTIME_URL||"cache";
-window.DRAWIO_GITLAB_URL=window.DRAWIO_GITLAB_URL||"https://gitlab.com";window.DRAWIO_GITLAB_ID=window.DRAWIO_GITLAB_ID||"2b14debc5feeb18ba65358d863ec870e4cc9294b28c3c941cb3014eb4af9a9b4";window.DRAWIO_GITHUB_URL=window.DRAWIO_GITHUB_URL||"https://github.com";window.DRAWIO_GITHUB_API_URL=window.DRAWIO_GITHUB_API_URL||"https://api.github.com";window.DRAWIO_GITHUB_ID=window.DRAWIO_GITHUB_ID||"Iv1.98d62f0431e40543";window.DRAWIO_DROPBOX_ID=window.DRAWIO_DROPBOX_ID||"libwls2fa9szdji";
+window.DRAWIO_GITLAB_URL=window.DRAWIO_GITLAB_URL||"https://gitlab.com";window.DRAWIO_GITLAB_ID=window.DRAWIO_GITLAB_ID||"2b14debc5feeb18ba65358d863ec870e4cc9294b28c3c941cb3014eb4af9a9b4";window.DRAWIO_GITHUB_URL=window.DRAWIO_GITHUB_URL||"https://github.com";window.DRAWIO_GITHUB_API_URL=window.DRAWIO_GITHUB_API_URL||"https://api.github.com";window.DRAWIO_GITHUB_ID=window.DRAWIO_GITHUB_ID||"Iv1.98d62f0431e40543";window.DRAWIO_DROPBOX_ID=window.DRAWIO_DROPBOX_ID||"jg02tc0onwmhlgm";
window.SAVE_URL=window.SAVE_URL||"save";window.OPEN_URL=window.OPEN_URL||"import";window.PROXY_URL=window.PROXY_URL||"proxy";window.DRAWIO_VIEWER_URL=window.DRAWIO_VIEWER_URL||null;window.NOTIFICATIONS_URL=window.NOTIFICATIONS_URL||"https://www.draw.io/notifications";window.SHAPES_PATH=window.SHAPES_PATH||"shapes";window.GRAPH_IMAGE_PATH=window.GRAPH_IMAGE_PATH||"img";
window.ICONSEARCH_PATH=window.ICONSEARCH_PATH||((null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE")||urlParams.dev)&&"file:"!=window.location.protocol?"iconSearch":window.DRAWIO_BASE_URL+"/iconSearch");window.TEMPLATE_PATH=window.TEMPLATE_PATH||"templates";window.NEW_DIAGRAM_CATS_PATH=window.NEW_DIAGRAM_CATS_PATH||"newDiagramCats";window.PLUGINS_BASE_PATH=window.PLUGINS_BASE_PATH||"";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";
window.RESOURCE_BASE=window.RESOURCE_BASE||RESOURCES_PATH+"/dia";window.DRAWIO_CONFIG=window.DRAWIO_CONFIG||null;window.mxLoadResources=window.mxLoadResources||!1;
@@ -202,7 +202,7 @@ a),DRAWIO_GITLAB_URL=a);a=urlParams["gitlab-id"];null!=a&&(DRAWIO_GITLAB_ID=a);w
if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==urlParams.local||"1"==urlParams.lockdown)urlParams.picker="0",urlParams.gapi="0",urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0";
"se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1");
"embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);window.urlParams=window.urlParams||{};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";
-window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"mxgraph";window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"16.4.0",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),
+window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"mxgraph";window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"16.4.3",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),
IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:/Apple Computer, Inc/.test(navigator.vendor),
IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2<navigator.maxTouchPoints,IS_WEBVIEW:/((iPhone|iPod|iPad).*AppleWebKit(?!.*Version)|; wv)/i.test(navigator.userAgent),IS_GC:/Google Inc/.test(navigator.vendor),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:"undefined"!==typeof InstallTrigger,IS_MT:0<=navigator.userAgent.indexOf("Firefox/")&&0>navigator.userAgent.indexOf("Firefox/1.")&&
0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:"MICROSOFT INTERNET EXPLORER"!=navigator.appName.toUpperCase(),NO_FO:!document.createElementNS||"[object SVGForeignObjectElement]"!==
@@ -1818,19 +1818,20 @@ n.x,n.y);this.sizers[5].setCursor(f[mxUtils.mod(6+g,f.length)]);n.x=d;n.y=c;n=mx
this.state.width&&2<=this.state.height?this.moveSizerTo(this.sizers[0],d+this.state.absoluteOffset.x,e+this.state.absoluteOffset.y):this.moveSizerTo(this.sizers[0],this.state.x,this.state.y)}}null!=this.rotationShape&&(g=mxUtils.toRadians(null!=this.currentAlpha?this.currentAlpha:this.state.style[mxConstants.STYLE_ROTATION]||"0"),k=Math.cos(g),l=Math.sin(g),m=new mxPoint(this.state.getCenterX(),this.state.getCenterY()),n=mxUtils.getRotatedPoint(this.getRotationHandlePosition(),k,l,m),null!=this.rotationShape.node&&
(this.moveSizerTo(this.rotationShape,n.x,n.y),this.rotationShape.node.style.visibility=this.state.view.graph.isEditing()||!this.handlesVisible?"hidden":""));null!=this.selectionBorder&&(this.selectionBorder.rotation=Number(this.state.style[mxConstants.STYLE_ROTATION]||"0"));if(null!=this.edgeHandlers)for(c=0;c<this.edgeHandlers.length;c++)this.edgeHandlers[c].redraw()};mxVertexHandler.prototype.isCustomHandleVisible=function(a){return!this.graph.isEditing()&&1==this.state.view.graph.getSelectionCount()};
mxVertexHandler.prototype.getRotationHandlePosition=function(){return new mxPoint(this.bounds.x+this.bounds.width/2,this.bounds.y+this.rotationHandleVSpacing)};mxVertexHandler.prototype.isParentHighlightVisible=function(){return!this.graph.isCellSelected(this.graph.model.getParent(this.state.cell))};
-mxVertexHandler.prototype.updateParentHighlight=function(){if(!this.isDestroyed()){var a=this.isParentHighlightVisible(),b=this.graph.model.getParent(this.state.cell),c=this.graph.view.getState(b);null!=this.parentHighlight?this.graph.model.isVertex(b)&&a?(a=this.parentHighlight.bounds,null==c||a.x==c.x&&a.y==c.y&&a.width==c.width&&a.height==c.height||(this.parentHighlight.bounds=mxRectangle.fromRectangle(c),this.parentHighlight.redraw())):(null!=c&&c.parentHighlight==this.parentHighlight&&(c.parentHighlight=
-null),this.parentHighlight.destroy(),this.parentHighlight=null):this.parentHighlightEnabled&&a&&this.graph.model.isVertex(b)&&null!=c&&null==c.parentHighlight&&(this.parentHighlight=this.createParentHighlightShape(c),this.parentHighlight.dialect=mxConstants.DIALECT_SVG,this.parentHighlight.pointerEvents=!1,this.parentHighlight.rotation=Number(c.style[mxConstants.STYLE_ROTATION]||"0"),this.parentHighlight.init(this.graph.getView().getOverlayPane()),this.parentHighlight.redraw(),c.parentHighlight=this.parentHighlight)}};
+mxVertexHandler.prototype.destroyParentHighlight=function(){null!=this.parentHighlight.state&&(delete this.parentHighlight.state.parentHighlight,delete this.parentHighlight.state);this.parentHighlight.destroy();this.parentHighlight=null};
+mxVertexHandler.prototype.updateParentHighlight=function(){if(!this.isDestroyed()){var a=this.isParentHighlightVisible(),b=this.graph.model.getParent(this.state.cell),c=this.graph.view.getState(b);null!=this.parentHighlight?this.graph.model.isVertex(b)&&a?(a=this.parentHighlight.bounds,null==c||a.x==c.x&&a.y==c.y&&a.width==c.width&&a.height==c.height||(this.parentHighlight.bounds=mxRectangle.fromRectangle(c),this.parentHighlight.redraw())):this.destroyParentHighlight():this.parentHighlightEnabled&&
+a&&this.graph.model.isVertex(b)&&null!=c&&null==c.parentHighlight&&(this.parentHighlight=this.createParentHighlightShape(c),this.parentHighlight.dialect=mxConstants.DIALECT_SVG,this.parentHighlight.pointerEvents=!1,this.parentHighlight.rotation=Number(c.style[mxConstants.STYLE_ROTATION]||"0"),this.parentHighlight.init(this.graph.getView().getOverlayPane()),this.parentHighlight.redraw(),c.parentHighlight=this.parentHighlight,this.parentHighlight.state=c)}};
mxVertexHandler.prototype.drawPreview=function(){null!=this.preview&&(this.preview.bounds=this.bounds,this.preview.node.parentNode==this.graph.container&&(this.preview.bounds.width=Math.max(0,this.preview.bounds.width-1),this.preview.bounds.height=Math.max(0,this.preview.bounds.height-1)),this.preview.rotation=Number(this.state.style[mxConstants.STYLE_ROTATION]||"0"),this.preview.redraw());this.selectionBorder.bounds=this.getSelectionBorderBounds();this.selectionBorder.redraw();this.updateParentHighlight()};
mxVertexHandler.prototype.getSelectionBorderBounds=function(){return this.bounds};mxVertexHandler.prototype.isDestroyed=function(){return null==this.selectionBorder};
-mxVertexHandler.prototype.destroy=function(){null!=this.escapeHandler&&(this.state.view.graph.removeListener(this.escapeHandler),this.escapeHandler=null);null!=this.preview&&(this.preview.destroy(),this.preview=null);if(null!=this.parentHighlight){var a=this.graph.model.getParent(this.state.cell),a=this.graph.view.getState(a);null!=a&&a.parentHighlight==this.parentHighlight&&(a.parentHighlight=null);this.parentHighlight.destroy();this.parentHighlight=null}null!=this.ghostPreview&&(this.ghostPreview.destroy(),
-this.ghostPreview=null);null!=this.selectionBorder&&(this.selectionBorder.destroy(),this.selectionBorder=null);this.labelShape=null;this.removeHint();if(null!=this.sizers){for(a=0;a<this.sizers.length;a++)this.sizers[a].destroy();this.sizers=null}if(null!=this.customHandles){for(a=0;a<this.customHandles.length;a++)this.customHandles[a].destroy();this.customHandles=null}};
+mxVertexHandler.prototype.destroy=function(){null!=this.escapeHandler&&(this.state.view.graph.removeListener(this.escapeHandler),this.escapeHandler=null);null!=this.preview&&(this.preview.destroy(),this.preview=null);null!=this.ghostPreview&&(this.ghostPreview.destroy(),this.ghostPreview=null);null!=this.selectionBorder&&(this.selectionBorder.destroy(),this.selectionBorder=null);null!=this.parentHighlight&&this.destroyParentHighlight();this.labelShape=null;this.removeHint();if(null!=this.sizers){for(var a=
+0;a<this.sizers.length;a++)this.sizers[a].destroy();this.sizers=null}if(null!=this.customHandles){for(a=0;a<this.customHandles.length;a++)this.customHandles[a].destroy();this.customHandles=null}};
function mxEdgeHandler(a){null!=a&&null!=a.shape&&(this.state=a,this.init(),this.escapeHandler=mxUtils.bind(this,function(b,c){var d=null!=this.index;this.reset();d&&this.graph.cellRenderer.redraw(this.state,!1,a.view.isRendering())}),this.state.view.graph.addListener(mxEvent.ESCAPE,this.escapeHandler))}mxEdgeHandler.prototype.graph=null;mxEdgeHandler.prototype.state=null;mxEdgeHandler.prototype.marker=null;mxEdgeHandler.prototype.constraintHandler=null;mxEdgeHandler.prototype.error=null;
mxEdgeHandler.prototype.shape=null;mxEdgeHandler.prototype.bends=null;mxEdgeHandler.prototype.labelShape=null;mxEdgeHandler.prototype.cloneEnabled=!0;mxEdgeHandler.prototype.addEnabled=!1;mxEdgeHandler.prototype.removeEnabled=!1;mxEdgeHandler.prototype.dblClickRemoveEnabled=!1;mxEdgeHandler.prototype.mergeRemoveEnabled=!1;mxEdgeHandler.prototype.straightRemoveEnabled=!1;mxEdgeHandler.prototype.virtualBendsEnabled=!1;mxEdgeHandler.prototype.virtualBendOpacity=20;
mxEdgeHandler.prototype.parentHighlightEnabled=!1;mxEdgeHandler.prototype.preferHtml=!1;mxEdgeHandler.prototype.allowHandleBoundsCheck=!0;mxEdgeHandler.prototype.snapToTerminals=!1;mxEdgeHandler.prototype.handleImage=null;mxEdgeHandler.prototype.tolerance=0;mxEdgeHandler.prototype.outlineConnect=!1;mxEdgeHandler.prototype.manageLabelHandle=!1;
mxEdgeHandler.prototype.init=function(){this.graph=this.state.view.graph;this.marker=this.createMarker();this.constraintHandler=new mxConstraintHandler(this.graph);this.points=[];this.abspoints=this.getSelectionPoints(this.state);this.shape=this.createSelectionShape(this.abspoints);this.shape.dialect=this.graph.dialect!=mxConstants.DIALECT_SVG?mxConstants.DIALECT_MIXEDHTML:mxConstants.DIALECT_SVG;this.shape.init(this.graph.getView().getOverlayPane());this.shape.svgStrokeTolerance=0;this.shape.pointerEvents=
!1;mxEvent.redirectMouseEvents(this.shape.node,this.graph,this.state);this.graph.isCellMovable(this.state.cell)&&this.shape.setCursor(mxConstants.CURSOR_MOVABLE_EDGE);this.preferHtml=null!=this.state.text&&this.state.text.node.parentNode==this.graph.container;if(!this.preferHtml){var a=this.state.getVisibleTerminalState(!0);null!=a&&(this.preferHtml=null!=a.text&&a.text.node.parentNode==this.graph.container);this.preferHtml||(a=this.state.getVisibleTerminalState(!1),null!=a&&(this.preferHtml=null!=
a.text&&a.text.node.parentNode==this.graph.container))}this.graph.isCellEditable(this.state.cell)&&(this.graph.getSelectionCount()<mxGraphHandler.prototype.maxCells||0>=mxGraphHandler.prototype.maxCells)&&(this.bends=this.createBends(),this.isVirtualBendsEnabled()&&(this.virtualBends=this.createVirtualBends()));this.label=new mxPoint(this.state.absoluteOffset.x,this.state.absoluteOffset.y);this.labelShape=this.createLabelHandleShape();this.initBend(this.labelShape);this.graph.isCellEditable(this.state.cell)&&
-(this.labelShape.setCursor(mxConstants.CURSOR_LABEL_HANDLE),this.customHandles=this.createCustomHandles());this.updateParentHighlight();this.redraw()};mxEdgeHandler.prototype.isParentHighlightVisible=mxVertexHandler.prototype.isParentHighlightVisible;mxEdgeHandler.prototype.updateParentHighlight=mxVertexHandler.prototype.updateParentHighlight;mxEdgeHandler.prototype.createCustomHandles=function(){return null};
+(this.labelShape.setCursor(mxConstants.CURSOR_LABEL_HANDLE),this.customHandles=this.createCustomHandles());this.updateParentHighlight();this.redraw()};mxEdgeHandler.prototype.isParentHighlightVisible=mxVertexHandler.prototype.isParentHighlightVisible;mxEdgeHandler.prototype.destroyParentHighlight=mxVertexHandler.prototype.destroyParentHighlight;mxEdgeHandler.prototype.updateParentHighlight=mxVertexHandler.prototype.updateParentHighlight;mxEdgeHandler.prototype.createCustomHandles=function(){return null};
mxEdgeHandler.prototype.isVirtualBendsEnabled=function(a){return this.virtualBendsEnabled&&(null==this.state.style[mxConstants.STYLE_EDGE]||this.state.style[mxConstants.STYLE_EDGE]==mxConstants.NONE||1==this.state.style[mxConstants.STYLE_NOEDGESTYLE])&&"arrow"!=mxUtils.getValue(this.state.style,mxConstants.STYLE_SHAPE,null)};mxEdgeHandler.prototype.isCellEnabled=function(a){return!0};mxEdgeHandler.prototype.isAddPointEvent=function(a){return mxEvent.isShiftDown(a)};
mxEdgeHandler.prototype.isRemovePointEvent=function(a){return mxEvent.isShiftDown(a)};mxEdgeHandler.prototype.getSelectionPoints=function(a){return a.absolutePoints};mxEdgeHandler.prototype.createParentHighlightShape=function(a){a=new mxRectangleShape(mxRectangle.fromRectangle(a),null,this.getSelectionColor());a.strokewidth=this.getSelectionStrokeWidth();a.isDashed=this.isSelectionDashed();return a};
mxEdgeHandler.prototype.createSelectionShape=function(a){a=new this.state.shape.constructor;a.outline=!0;a.apply(this.state);a.isDashed=this.isSelectionDashed();a.stroke=this.getSelectionColor();a.isShadow=!1;return a};mxEdgeHandler.prototype.getSelectionColor=function(){return this.graph.isCellEditable(this.state.cell)?mxConstants.EDGE_SELECTION_COLOR:mxConstants.LOCKED_HANDLE_FILLCOLOR};mxEdgeHandler.prototype.getSelectionStrokeWidth=function(){return mxConstants.EDGE_SELECTION_STROKEWIDTH};
@@ -1901,9 +1902,8 @@ mxEdgeHandler.prototype.drawPreview=function(){try{if(this.isLabel){var a=this.l
this.shape.stroke=this.getSelectionColor(),this.shape.strokewidth=this.getSelectionStrokeWidth()/this.shape.scale/this.shape.scale,this.shape.isShadow=!1,this.shape.redraw());this.updateParentHighlight()}catch(c){}};
mxEdgeHandler.prototype.refresh=function(){null!=this.state&&(this.abspoints=this.getSelectionPoints(this.state),this.points=[],null!=this.bends&&(this.destroyBends(this.bends),this.bends=this.createBends()),null!=this.virtualBends&&(this.destroyBends(this.virtualBends),this.virtualBends=this.createVirtualBends()),null!=this.customHandles&&(this.destroyBends(this.customHandles),this.customHandles=this.createCustomHandles()),null!=this.labelShape&&null!=this.labelShape.node&&null!=this.labelShape.node.parentNode&&
this.labelShape.node.parentNode.appendChild(this.labelShape.node))};mxEdgeHandler.prototype.isDestroyed=function(){return null==this.shape};mxEdgeHandler.prototype.destroyBends=function(a){if(null!=a)for(var b=0;b<a.length;b++)null!=a[b]&&a[b].destroy()};
-mxEdgeHandler.prototype.destroy=function(){null!=this.escapeHandler&&(this.state.view.graph.removeListener(this.escapeHandler),this.escapeHandler=null);null!=this.marker&&(this.marker.destroy(),this.marker=null);null!=this.shape&&(this.shape.destroy(),this.shape=null);if(null!=this.parentHighlight){var a=this.graph.model.getParent(this.state.cell),a=this.graph.view.getState(a);null!=a&&a.parentHighlight==this.parentHighlight&&(a.parentHighlight=null);this.parentHighlight.destroy();this.parentHighlight=
-null}null!=this.labelShape&&(this.labelShape.destroy(),this.labelShape=null);null!=this.constraintHandler&&(this.constraintHandler.destroy(),this.constraintHandler=null);this.destroyBends(this.virtualBends);this.virtualBends=null;this.destroyBends(this.customHandles);this.customHandles=null;this.destroyBends(this.bends);this.bends=null;this.removeHint()};function mxElbowEdgeHandler(a){mxEdgeHandler.call(this,a)}mxUtils.extend(mxElbowEdgeHandler,mxEdgeHandler);
-mxElbowEdgeHandler.prototype.flipEnabled=!0;mxElbowEdgeHandler.prototype.doubleClickOrientationResource="none"!=mxClient.language?"doubleClickOrientation":"";
+mxEdgeHandler.prototype.destroy=function(){null!=this.escapeHandler&&(this.state.view.graph.removeListener(this.escapeHandler),this.escapeHandler=null);null!=this.marker&&(this.marker.destroy(),this.marker=null);null!=this.shape&&(this.shape.destroy(),this.shape=null);null!=this.labelShape&&(this.labelShape.destroy(),this.labelShape=null);null!=this.constraintHandler&&(this.constraintHandler.destroy(),this.constraintHandler=null);null!=this.parentHighlight&&this.destroyParentHighlight();this.destroyBends(this.virtualBends);
+this.virtualBends=null;this.destroyBends(this.customHandles);this.customHandles=null;this.destroyBends(this.bends);this.bends=null;this.removeHint()};function mxElbowEdgeHandler(a){mxEdgeHandler.call(this,a)}mxUtils.extend(mxElbowEdgeHandler,mxEdgeHandler);mxElbowEdgeHandler.prototype.flipEnabled=!0;mxElbowEdgeHandler.prototype.doubleClickOrientationResource="none"!=mxClient.language?"doubleClickOrientation":"";
mxElbowEdgeHandler.prototype.createBends=function(){var a=[],b=this.createHandleShape(0);this.initBend(b);b.setCursor(mxConstants.CURSOR_TERMINAL_HANDLE);a.push(b);a.push(this.createVirtualBend(mxUtils.bind(this,function(a){!mxEvent.isConsumed(a)&&this.flipEnabled&&(this.graph.flipEdge(this.state.cell,a),mxEvent.consume(a))})));this.points.push(new mxPoint(0,0));b=this.createHandleShape(2,null,!0);this.initBend(b);b.setCursor(mxConstants.CURSOR_TERMINAL_HANDLE);a.push(b);return a};
mxElbowEdgeHandler.prototype.createVirtualBend=function(a){var b=this.createHandleShape();this.initBend(b,a);b.setCursor(this.getCursorForBend());this.graph.isCellBendable(this.state.cell)||(b.node.style.display="none");return b};
mxElbowEdgeHandler.prototype.getCursorForBend=function(){return this.state.style[mxConstants.STYLE_EDGE]==mxEdgeStyle.TopToBottom||this.state.style[mxConstants.STYLE_EDGE]==mxConstants.EDGESTYLE_TOPTOBOTTOM||(this.state.style[mxConstants.STYLE_EDGE]==mxEdgeStyle.ElbowConnector||this.state.style[mxConstants.STYLE_EDGE]==mxConstants.EDGESTYLE_ELBOW)&&this.state.style[mxConstants.STYLE_ELBOW]==mxConstants.ELBOW_VERTICAL?"row-resize":"col-resize"};
@@ -2078,53 +2078,53 @@ Editor.prototype.setFilename=function(b){this.filename=b};
Editor.prototype.createUndoManager=function(){var b=this.graph,c=new mxUndoManager;this.undoListener=function(b,e){c.undoableEditHappened(e.getProperty("edit"))};var e=mxUtils.bind(this,function(b,c){this.undoListener.apply(this,arguments)});b.getModel().addListener(mxEvent.UNDO,e);b.getView().addListener(mxEvent.UNDO,e);e=function(c,e){var f=b.getSelectionCellsForChanges(e.getProperty("edit").changes,function(b){return!(b instanceof mxChildChange)});if(0<f.length){b.getModel();for(var n=[],d=0;d<
f.length;d++)null!=b.view.getState(f[d])&&n.push(f[d]);b.setSelectionCells(n)}};c.addListener(mxEvent.UNDO,e);c.addListener(mxEvent.REDO,e);return c};Editor.prototype.initStencilRegistry=function(){};Editor.prototype.destroy=function(){null!=this.graph&&(this.graph.destroy(),this.graph=null)};OpenFile=function(b){this.consumer=this.producer=null;this.done=b;this.args=null};OpenFile.prototype.setConsumer=function(b){this.consumer=b;this.execute()};
OpenFile.prototype.setData=function(){this.args=arguments;this.execute()};OpenFile.prototype.error=function(b){this.cancel(!0);mxUtils.alert(b)};OpenFile.prototype.execute=function(){null!=this.consumer&&null!=this.args&&(this.cancel(!1),this.consumer.apply(this,this.args))};OpenFile.prototype.cancel=function(b){null!=this.done&&this.done(null!=b?b:!0)};
-function Dialog(b,c,e,f,n,l,q,d,k,g,p){var m=k?57:0,v=e,u=f,t=k?0:64,z=Editor.inlineFullscreen||null==b.embedViewport?mxUtils.getDocumentSize():mxUtils.clone(b.embedViewport);null==b.embedViewport&&null!=window.innerHeight&&(z.height=window.innerHeight);var y=z.height,F=Math.max(1,Math.round((z.width-e-t)/2)),D=Math.max(1,Math.round((y-f-b.footerHeight)/3));c.style.maxHeight="100%";e=null!=document.body?Math.min(e,document.body.scrollWidth-t):e;f=Math.min(f,y-t);0<b.dialogs.length&&(this.zIndex+=
-2*b.dialogs.length);null==this.bg&&(this.bg=b.createDiv("background"),this.bg.style.position="absolute",this.bg.style.background=Dialog.backdropColor,this.bg.style.height=y+"px",this.bg.style.right="0px",this.bg.style.zIndex=this.zIndex-2,mxUtils.setOpacity(this.bg,this.bgOpacity));z=mxUtils.getDocumentScrollOrigin(document);this.bg.style.left=z.x+"px";this.bg.style.top=z.y+"px";F+=z.x;D+=z.y;Editor.inlineFullscreen||null==b.embedViewport||(this.bg.style.height=mxUtils.getDocumentSize().height+"px",
-D+=b.embedViewport.y,F+=b.embedViewport.x);n&&document.body.appendChild(this.bg);var E=b.createDiv(k?"geTransDialog":"geDialog");n=this.getPosition(F,D,e,f);F=n.x;D=n.y;E.style.width=e+"px";E.style.height=f+"px";E.style.left=F+"px";E.style.top=D+"px";E.style.zIndex=this.zIndex;E.appendChild(c);document.body.appendChild(E);!d&&c.clientHeight>E.clientHeight-t&&(c.style.overflowY="auto");c.style.overflowX="hidden";if(l&&(l=document.createElement("img"),l.setAttribute("src",Dialog.prototype.closeImage),
-l.setAttribute("title",mxResources.get("close")),l.className="geDialogClose",l.style.top=D+14+"px",l.style.left=F+e+38-m+"px",l.style.zIndex=this.zIndex,mxEvent.addListener(l,"click",mxUtils.bind(this,function(){b.hideDialog(!0)})),document.body.appendChild(l),this.dialogImg=l,!p)){var H=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(b){H=!0}),null,mxUtils.bind(this,function(d){H&&(b.hideDialog(!0),H=!1)}))}this.resizeListener=mxUtils.bind(this,function(){if(null!=g){var k=g();
-null!=k&&(v=e=k.w,u=f=k.h)}k=mxUtils.getDocumentSize();y=k.height;this.bg.style.height=y+"px";Editor.inlineFullscreen||null==b.embedViewport||(this.bg.style.height=mxUtils.getDocumentSize().height+"px");F=Math.max(1,Math.round((k.width-e-t)/2));D=Math.max(1,Math.round((y-f-b.footerHeight)/3));e=null!=document.body?Math.min(v,document.body.scrollWidth-t):v;f=Math.min(u,y-t);k=this.getPosition(F,D,e,f);F=k.x;D=k.y;E.style.left=F+"px";E.style.top=D+"px";E.style.width=e+"px";E.style.height=f+"px";!d&&
-c.clientHeight>E.clientHeight-t&&(c.style.overflowY="auto");null!=this.dialogImg&&(this.dialogImg.style.top=D+14+"px",this.dialogImg.style.left=F+e+38-m+"px")});mxEvent.addListener(window,"resize",this.resizeListener);this.onDialogClose=q;this.container=E;b.editor.fireEvent(new mxEventObject("showDialog"))}Dialog.backdropColor="white";Dialog.prototype.zIndex=mxPopupMenu.prototype.zIndex-2;
+function Dialog(b,c,e,f,n,l,q,d,k,g,p){var m=k?57:0,u=e,v=f,t=k?0:64,z=Editor.inlineFullscreen||null==b.embedViewport?mxUtils.getDocumentSize():mxUtils.clone(b.embedViewport);null==b.embedViewport&&null!=window.innerHeight&&(z.height=window.innerHeight);var y=z.height,I=Math.max(1,Math.round((z.width-e-t)/2)),D=Math.max(1,Math.round((y-f-b.footerHeight)/3));c.style.maxHeight="100%";e=null!=document.body?Math.min(e,document.body.scrollWidth-t):e;f=Math.min(f,y-t);0<b.dialogs.length&&(this.zIndex+=
+2*b.dialogs.length);null==this.bg&&(this.bg=b.createDiv("background"),this.bg.style.position="absolute",this.bg.style.background=Dialog.backdropColor,this.bg.style.height=y+"px",this.bg.style.right="0px",this.bg.style.zIndex=this.zIndex-2,mxUtils.setOpacity(this.bg,this.bgOpacity));z=mxUtils.getDocumentScrollOrigin(document);this.bg.style.left=z.x+"px";this.bg.style.top=z.y+"px";I+=z.x;D+=z.y;Editor.inlineFullscreen||null==b.embedViewport||(this.bg.style.height=mxUtils.getDocumentSize().height+"px",
+D+=b.embedViewport.y,I+=b.embedViewport.x);n&&document.body.appendChild(this.bg);var F=b.createDiv(k?"geTransDialog":"geDialog");n=this.getPosition(I,D,e,f);I=n.x;D=n.y;F.style.width=e+"px";F.style.height=f+"px";F.style.left=I+"px";F.style.top=D+"px";F.style.zIndex=this.zIndex;F.appendChild(c);document.body.appendChild(F);!d&&c.clientHeight>F.clientHeight-t&&(c.style.overflowY="auto");c.style.overflowX="hidden";if(l&&(l=document.createElement("img"),l.setAttribute("src",Dialog.prototype.closeImage),
+l.setAttribute("title",mxResources.get("close")),l.className="geDialogClose",l.style.top=D+14+"px",l.style.left=I+e+38-m+"px",l.style.zIndex=this.zIndex,mxEvent.addListener(l,"click",mxUtils.bind(this,function(){b.hideDialog(!0)})),document.body.appendChild(l),this.dialogImg=l,!p)){var E=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(b){E=!0}),null,mxUtils.bind(this,function(d){E&&(b.hideDialog(!0),E=!1)}))}this.resizeListener=mxUtils.bind(this,function(){if(null!=g){var k=g();
+null!=k&&(u=e=k.w,v=f=k.h)}k=mxUtils.getDocumentSize();y=k.height;this.bg.style.height=y+"px";Editor.inlineFullscreen||null==b.embedViewport||(this.bg.style.height=mxUtils.getDocumentSize().height+"px");I=Math.max(1,Math.round((k.width-e-t)/2));D=Math.max(1,Math.round((y-f-b.footerHeight)/3));e=null!=document.body?Math.min(u,document.body.scrollWidth-t):u;f=Math.min(v,y-t);k=this.getPosition(I,D,e,f);I=k.x;D=k.y;F.style.left=I+"px";F.style.top=D+"px";F.style.width=e+"px";F.style.height=f+"px";!d&&
+c.clientHeight>F.clientHeight-t&&(c.style.overflowY="auto");null!=this.dialogImg&&(this.dialogImg.style.top=D+14+"px",this.dialogImg.style.left=I+e+38-m+"px")});mxEvent.addListener(window,"resize",this.resizeListener);this.onDialogClose=q;this.container=F;b.editor.fireEvent(new mxEventObject("showDialog"))}Dialog.backdropColor="white";Dialog.prototype.zIndex=mxPopupMenu.prototype.zIndex-2;
Dialog.prototype.noColorImage=mxClient.IS_SVG?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkEzRDlBMUUwODYxMTExRTFCMzA4RDdDMjJBMEMxRDM3IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkEzRDlBMUUxODYxMTExRTFCMzA4RDdDMjJBMEMxRDM3Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QTNEOUExREU4NjExMTFFMUIzMDhEN0MyMkEwQzFEMzciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QTNEOUExREY4NjExMTFFMUIzMDhEN0MyMkEwQzFEMzciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5xh3fmAAAABlBMVEX////MzMw46qqDAAAAGElEQVR42mJggAJGKGAYIIGBth8KAAIMAEUQAIElnLuQAAAAAElFTkSuQmCC":IMAGE_PATH+
"/nocolor.png";Dialog.prototype.closeImage=mxClient.IS_SVG?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJAQMAAADaX5RTAAAABlBMVEV7mr3///+wksspAAAAAnRSTlP/AOW3MEoAAAAdSURBVAgdY9jXwCDDwNDRwHCwgeExmASygSL7GgB12QiqNHZZIwAAAABJRU5ErkJggg==":IMAGE_PATH+"/close.png";
Dialog.prototype.clearImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhDQAKAIABAMDAwP///yH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjAgNjEuMTM0Nzc3LCAyMDEwLzAyLzEyLTE3OjMyOjAwICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IFdpbmRvd3MiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OUIzOEM1NzI4NjEyMTFFMUEzMkNDMUE3NjZERDE2QjIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OUIzOEM1NzM4NjEyMTFFMUEzMkNDMUE3NjZERDE2QjIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo5QjM4QzU3MDg2MTIxMUUxQTMyQ0MxQTc2NkREMTZCMiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo5QjM4QzU3MTg2MTIxMUUxQTMyQ0MxQTc2NkREMTZCMiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAEAAAEALAAAAAANAAoAAAIXTGCJebD9jEOTqRlttXdrB32PJ2ncyRQAOw==":IMAGE_PATH+
"/clear.gif";Dialog.prototype.bgOpacity=80;Dialog.prototype.getPosition=function(b,c){return new mxPoint(b,c)};Dialog.prototype.close=function(b,c){if(null!=this.onDialogClose){if(0==this.onDialogClose(b,c))return!1;this.onDialogClose=null}null!=this.dialogImg&&(this.dialogImg.parentNode.removeChild(this.dialogImg),this.dialogImg=null);null!=this.bg&&null!=this.bg.parentNode&&this.bg.parentNode.removeChild(this.bg);mxEvent.removeListener(window,"resize",this.resizeListener);this.container.parentNode.removeChild(this.container)};
-var ErrorDialog=function(b,c,e,f,n,l,q,d,k,g,p){k=null!=k?k:!0;var m=document.createElement("div");m.style.textAlign="center";if(null!=c){var v=document.createElement("div");v.style.padding="0px";v.style.margin="0px";v.style.fontSize="18px";v.style.paddingBottom="16px";v.style.marginBottom="10px";v.style.borderBottom="1px solid #c0c0c0";v.style.color="gray";v.style.whiteSpace="nowrap";v.style.textOverflow="ellipsis";v.style.overflow="hidden";mxUtils.write(v,c);v.setAttribute("title",c);m.appendChild(v)}c=
-document.createElement("div");c.style.lineHeight="1.2em";c.style.padding="6px";c.innerHTML=e;m.appendChild(c);e=document.createElement("div");e.style.marginTop="12px";e.style.textAlign="center";null!=l&&(c=mxUtils.button(mxResources.get("tryAgain"),function(){b.hideDialog();l()}),c.className="geBtn",e.appendChild(c),e.style.textAlign="center");null!=g&&(g=mxUtils.button(g,function(){null!=p&&p()}),g.className="geBtn",e.appendChild(g));var u=mxUtils.button(f,function(){k&&b.hideDialog();null!=n&&n()});
-u.className="geBtn";e.appendChild(u);null!=q&&(f=mxUtils.button(q,function(){k&&b.hideDialog();null!=d&&d()}),f.className="geBtn gePrimaryBtn",e.appendChild(f));this.init=function(){u.focus()};m.appendChild(e);this.container=m},PrintDialog=function(b,c){this.create(b,c)};
-PrintDialog.prototype.create=function(b){function c(b){var c=d.checked||g.checked,k=parseInt(m.value)/100;isNaN(k)&&(k=1,m.value="100%");var k=.75*k,f=e.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,l=1/e.pageScale;if(c){var v=d.checked?1:parseInt(p.value);isNaN(v)||(l=mxUtils.getScaleForPageCount(v,e,f))}e.getGraphBounds();var u=v=0,f=mxRectangle.fromRectangle(f);f.width=Math.ceil(f.width*k);f.height=Math.ceil(f.height*k);l*=k;!c&&e.pageVisible?(k=e.getPageLayout(),v-=k.x*f.width,u-=k.y*f.height):
-c=!0;c=PrintDialog.createPrintPreview(e,l,f,0,v,u,c);c.open();b&&PrintDialog.printPreview(c)}var e=b.editor.graph,f,n,l=document.createElement("table");l.style.width="100%";l.style.height="100%";var q=document.createElement("tbody");f=document.createElement("tr");var d=document.createElement("input");d.setAttribute("type","checkbox");n=document.createElement("td");n.setAttribute("colspan","2");n.style.fontSize="10pt";n.appendChild(d);var k=document.createElement("span");mxUtils.write(k," "+mxResources.get("fitPage"));
+var ErrorDialog=function(b,c,e,f,n,l,q,d,k,g,p){k=null!=k?k:!0;var m=document.createElement("div");m.style.textAlign="center";if(null!=c){var u=document.createElement("div");u.style.padding="0px";u.style.margin="0px";u.style.fontSize="18px";u.style.paddingBottom="16px";u.style.marginBottom="10px";u.style.borderBottom="1px solid #c0c0c0";u.style.color="gray";u.style.whiteSpace="nowrap";u.style.textOverflow="ellipsis";u.style.overflow="hidden";mxUtils.write(u,c);u.setAttribute("title",c);m.appendChild(u)}c=
+document.createElement("div");c.style.lineHeight="1.2em";c.style.padding="6px";c.innerHTML=e;m.appendChild(c);e=document.createElement("div");e.style.marginTop="12px";e.style.textAlign="center";null!=l&&(c=mxUtils.button(mxResources.get("tryAgain"),function(){b.hideDialog();l()}),c.className="geBtn",e.appendChild(c),e.style.textAlign="center");null!=g&&(g=mxUtils.button(g,function(){null!=p&&p()}),g.className="geBtn",e.appendChild(g));var v=mxUtils.button(f,function(){k&&b.hideDialog();null!=n&&n()});
+v.className="geBtn";e.appendChild(v);null!=q&&(f=mxUtils.button(q,function(){k&&b.hideDialog();null!=d&&d()}),f.className="geBtn gePrimaryBtn",e.appendChild(f));this.init=function(){v.focus()};m.appendChild(e);this.container=m},PrintDialog=function(b,c){this.create(b,c)};
+PrintDialog.prototype.create=function(b){function c(b){var c=d.checked||g.checked,k=parseInt(m.value)/100;isNaN(k)&&(k=1,m.value="100%");var k=.75*k,f=e.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,l=1/e.pageScale;if(c){var u=d.checked?1:parseInt(p.value);isNaN(u)||(l=mxUtils.getScaleForPageCount(u,e,f))}e.getGraphBounds();var v=u=0,f=mxRectangle.fromRectangle(f);f.width=Math.ceil(f.width*k);f.height=Math.ceil(f.height*k);l*=k;!c&&e.pageVisible?(k=e.getPageLayout(),u-=k.x*f.width,v-=k.y*f.height):
+c=!0;c=PrintDialog.createPrintPreview(e,l,f,0,u,v,c);c.open();b&&PrintDialog.printPreview(c)}var e=b.editor.graph,f,n,l=document.createElement("table");l.style.width="100%";l.style.height="100%";var q=document.createElement("tbody");f=document.createElement("tr");var d=document.createElement("input");d.setAttribute("type","checkbox");n=document.createElement("td");n.setAttribute("colspan","2");n.style.fontSize="10pt";n.appendChild(d);var k=document.createElement("span");mxUtils.write(k," "+mxResources.get("fitPage"));
n.appendChild(k);mxEvent.addListener(k,"click",function(b){d.checked=!d.checked;g.checked=!d.checked;mxEvent.consume(b)});mxEvent.addListener(d,"change",function(){g.checked=!d.checked});f.appendChild(n);q.appendChild(f);f=f.cloneNode(!1);var g=document.createElement("input");g.setAttribute("type","checkbox");n=document.createElement("td");n.style.fontSize="10pt";n.appendChild(g);k=document.createElement("span");mxUtils.write(k," "+mxResources.get("posterPrint")+":");n.appendChild(k);mxEvent.addListener(k,
"click",function(b){g.checked=!g.checked;d.checked=!g.checked;mxEvent.consume(b)});f.appendChild(n);var p=document.createElement("input");p.setAttribute("value","1");p.setAttribute("type","number");p.setAttribute("min","1");p.setAttribute("size","4");p.setAttribute("disabled","disabled");p.style.width="50px";n=document.createElement("td");n.style.fontSize="10pt";n.appendChild(p);mxUtils.write(n," "+mxResources.get("pages")+" (max)");f.appendChild(n);q.appendChild(f);mxEvent.addListener(g,"change",
function(){g.checked?p.removeAttribute("disabled"):p.setAttribute("disabled","disabled");d.checked=!g.checked});f=f.cloneNode(!1);n=document.createElement("td");mxUtils.write(n,mxResources.get("pageScale")+":");f.appendChild(n);n=document.createElement("td");var m=document.createElement("input");m.setAttribute("value","100 %");m.setAttribute("size","5");m.style.width="50px";n.appendChild(m);f.appendChild(n);q.appendChild(f);f=document.createElement("tr");n=document.createElement("td");n.colSpan=2;
-n.style.paddingTop="20px";n.setAttribute("align","right");k=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});k.className="geBtn";b.editor.cancelFirst&&n.appendChild(k);if(PrintDialog.previewEnabled){var v=mxUtils.button(mxResources.get("preview"),function(){b.hideDialog();c(!1)});v.className="geBtn";n.appendChild(v)}v=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){b.hideDialog();c(!0)});v.className="geBtn gePrimaryBtn";n.appendChild(v);b.editor.cancelFirst||
+n.style.paddingTop="20px";n.setAttribute("align","right");k=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});k.className="geBtn";b.editor.cancelFirst&&n.appendChild(k);if(PrintDialog.previewEnabled){var u=mxUtils.button(mxResources.get("preview"),function(){b.hideDialog();c(!1)});u.className="geBtn";n.appendChild(u)}u=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){b.hideDialog();c(!0)});u.className="geBtn gePrimaryBtn";n.appendChild(u);b.editor.cancelFirst||
n.appendChild(k);f.appendChild(n);q.appendChild(f);l.appendChild(q);this.container=l};PrintDialog.printPreview=function(b){try{if(null!=b.wnd){var c=function(){b.wnd.focus();b.wnd.print();b.wnd.close()};mxClient.IS_GC?window.setTimeout(c,500):c()}}catch(e){}};
PrintDialog.createPrintPreview=function(b,c,e,f,n,l,q){c=new mxPrintPreview(b,c,e,f,n,l);c.title=mxResources.get("preview");c.printBackgroundImage=!0;c.autoOrigin=q;b=b.background;if(null==b||""==b||b==mxConstants.NONE)b="#ffffff";c.backgroundColor=b;var d=c.writeHead;c.writeHead=function(b){d.apply(this,arguments);b.writeln('<style type="text/css">');b.writeln("@media screen {");b.writeln(" body > div { padding:30px;box-sizing:content-box; }");b.writeln("}");b.writeln("</style>")};return c};
PrintDialog.previewEnabled=!0;
-var PageSetupDialog=function(b){function c(){null==p||p==mxConstants.NONE?(g.style.backgroundColor="",g.style.backgroundImage="url('"+Dialog.prototype.noColorImage+"')"):(g.style.backgroundColor=p,g.style.backgroundImage="")}function e(){var d=t;null!=d&&Graph.isPageLink(d.src)&&(d=b.createImageForPageLink(d.src,null));null!=d&&null!=d.src?(u.setAttribute("src",d.src),u.style.display=""):(u.removeAttribute("src"),u.style.display="none")}var f=b.editor.graph,n,l,q=document.createElement("table");q.style.width=
+var PageSetupDialog=function(b){function c(){null==p||p==mxConstants.NONE?(g.style.backgroundColor="",g.style.backgroundImage="url('"+Dialog.prototype.noColorImage+"')"):(g.style.backgroundColor=p,g.style.backgroundImage="")}function e(){var d=t;null!=d&&Graph.isPageLink(d.src)&&(d=b.createImageForPageLink(d.src,null));null!=d&&null!=d.src?(v.setAttribute("src",d.src),v.style.display=""):(v.removeAttribute("src"),v.style.display="none")}var f=b.editor.graph,n,l,q=document.createElement("table");q.style.width=
"100%";q.style.height="100%";var d=document.createElement("tbody");n=document.createElement("tr");l=document.createElement("td");l.style.verticalAlign="top";l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("paperSize")+":");n.appendChild(l);l=document.createElement("td");l.style.verticalAlign="top";l.style.fontSize="10pt";var k=PageSetupDialog.addPageFormatPanel(l,"pagesetupdialog",f.pageFormat);n.appendChild(l);d.appendChild(n);n=document.createElement("tr");l=document.createElement("td");
mxUtils.write(l,mxResources.get("background")+":");n.appendChild(l);l=document.createElement("td");l.style.whiteSpace="nowrap";document.createElement("input").setAttribute("type","text");var g=document.createElement("button");g.style.width="22px";g.style.height="22px";g.style.cursor="pointer";g.style.marginRight="20px";g.style.backgroundPosition="center center";g.style.backgroundRepeat="no-repeat";mxClient.IS_FF&&(g.style.position="relative",g.style.top="-6px");var p=f.background;c();mxEvent.addListener(g,
"click",function(d){b.pickColor(p||"none",function(b){p=b;c()});mxEvent.consume(d)});l.appendChild(g);mxUtils.write(l,mxResources.get("gridSize")+":");var m=document.createElement("input");m.setAttribute("type","number");m.setAttribute("min","0");m.style.width="40px";m.style.marginLeft="6px";m.value=f.getGridSize();l.appendChild(m);mxEvent.addListener(m,"change",function(){var b=parseInt(m.value);m.value=Math.max(1,isNaN(b)?f.getGridSize():b)});n.appendChild(l);d.appendChild(n);n=document.createElement("tr");
-l=document.createElement("td");mxUtils.write(l,mxResources.get("image")+":");n.appendChild(l);l=document.createElement("td");var v=document.createElement("button");v.className="geBtn";v.style.margin="0px";mxUtils.write(v,mxResources.get("change")+"...");var u=document.createElement("img");u.setAttribute("valign","middle");u.style.verticalAlign="middle";u.style.border="1px solid lightGray";u.style.borderRadius="4px";u.style.marginRight="14px";u.style.maxWidth="100px";u.style.cursor="pointer";u.style.height=
-"60px";u.style.padding="4px";var t=f.backgroundImage,z=function(d){b.showBackgroundImageDialog(function(b,d){d||(t=b,e())},t);mxEvent.consume(d)};mxEvent.addListener(v,"click",z);mxEvent.addListener(u,"click",z);e();l.appendChild(u);l.appendChild(v);n.appendChild(l);d.appendChild(n);n=document.createElement("tr");l=document.createElement("td");l.colSpan=2;l.style.paddingTop="16px";l.setAttribute("align","right");v=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});v.className="geBtn";
-b.editor.cancelFirst&&l.appendChild(v);z=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();var d=parseInt(m.value);isNaN(d)||f.gridSize===d||f.setGridSize(d);d=new ChangePageSetup(b,p,t,k.get());d.ignoreColor=f.background==p;d.ignoreImage=(null!=f.backgroundImage?f.backgroundImage.src:null)===(null!=t?t.src:null);f.pageFormat.width==d.previousFormat.width&&f.pageFormat.height==d.previousFormat.height&&d.ignoreColor&&d.ignoreImage||f.model.execute(d)});z.className="geBtn gePrimaryBtn";
-l.appendChild(z);b.editor.cancelFirst||l.appendChild(v);n.appendChild(l);d.appendChild(n);q.appendChild(d);this.container=q};
-PageSetupDialog.addPageFormatPanel=function(b,c,e,f){function n(b,c,g){if(g||m!=document.activeElement&&v!=document.activeElement){b=!1;for(c=0;c<t.length;c++)g=t[c],D?"custom"==g.key&&(d.value=g.key,D=!1):null!=g.format&&("a4"==g.key?826==e.width?(e=mxRectangle.fromRectangle(e),e.width=827):826==e.height&&(e=mxRectangle.fromRectangle(e),e.height=827):"a5"==g.key&&(584==e.width?(e=mxRectangle.fromRectangle(e),e.width=583):584==e.height&&(e=mxRectangle.fromRectangle(e),e.height=583)),e.width==g.format.width&&
-e.height==g.format.height?(d.value=g.key,l.setAttribute("checked","checked"),l.defaultChecked=!0,l.checked=!0,q.removeAttribute("checked"),q.defaultChecked=!1,q.checked=!1,b=!0):e.width==g.format.height&&e.height==g.format.width&&(d.value=g.key,l.removeAttribute("checked"),l.defaultChecked=!1,l.checked=!1,q.setAttribute("checked","checked"),q.defaultChecked=!0,b=q.checked=!0));b?(k.style.display="",p.style.display="none"):(m.value=e.width/100,v.value=e.height/100,l.setAttribute("checked","checked"),
+l=document.createElement("td");mxUtils.write(l,mxResources.get("image")+":");n.appendChild(l);l=document.createElement("td");var u=document.createElement("button");u.className="geBtn";u.style.margin="0px";mxUtils.write(u,mxResources.get("change")+"...");var v=document.createElement("img");v.setAttribute("valign","middle");v.style.verticalAlign="middle";v.style.border="1px solid lightGray";v.style.borderRadius="4px";v.style.marginRight="14px";v.style.maxWidth="100px";v.style.cursor="pointer";v.style.height=
+"60px";v.style.padding="4px";var t=f.backgroundImage,z=function(d){b.showBackgroundImageDialog(function(b,d){d||(t=b,e())},t);mxEvent.consume(d)};mxEvent.addListener(u,"click",z);mxEvent.addListener(v,"click",z);e();l.appendChild(v);l.appendChild(u);n.appendChild(l);d.appendChild(n);n=document.createElement("tr");l=document.createElement("td");l.colSpan=2;l.style.paddingTop="16px";l.setAttribute("align","right");u=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});u.className="geBtn";
+b.editor.cancelFirst&&l.appendChild(u);z=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();var d=parseInt(m.value);isNaN(d)||f.gridSize===d||f.setGridSize(d);d=new ChangePageSetup(b,p,t,k.get());d.ignoreColor=f.background==p;d.ignoreImage=(null!=f.backgroundImage?f.backgroundImage.src:null)===(null!=t?t.src:null);f.pageFormat.width==d.previousFormat.width&&f.pageFormat.height==d.previousFormat.height&&d.ignoreColor&&d.ignoreImage||f.model.execute(d)});z.className="geBtn gePrimaryBtn";
+l.appendChild(z);b.editor.cancelFirst||l.appendChild(u);n.appendChild(l);d.appendChild(n);q.appendChild(d);this.container=q};
+PageSetupDialog.addPageFormatPanel=function(b,c,e,f){function n(b,c,g){if(g||m!=document.activeElement&&u!=document.activeElement){b=!1;for(c=0;c<t.length;c++)g=t[c],D?"custom"==g.key&&(d.value=g.key,D=!1):null!=g.format&&("a4"==g.key?826==e.width?(e=mxRectangle.fromRectangle(e),e.width=827):826==e.height&&(e=mxRectangle.fromRectangle(e),e.height=827):"a5"==g.key&&(584==e.width?(e=mxRectangle.fromRectangle(e),e.width=583):584==e.height&&(e=mxRectangle.fromRectangle(e),e.height=583)),e.width==g.format.width&&
+e.height==g.format.height?(d.value=g.key,l.setAttribute("checked","checked"),l.defaultChecked=!0,l.checked=!0,q.removeAttribute("checked"),q.defaultChecked=!1,q.checked=!1,b=!0):e.width==g.format.height&&e.height==g.format.width&&(d.value=g.key,l.removeAttribute("checked"),l.defaultChecked=!1,l.checked=!1,q.setAttribute("checked","checked"),q.defaultChecked=!0,b=q.checked=!0));b?(k.style.display="",p.style.display="none"):(m.value=e.width/100,u.value=e.height/100,l.setAttribute("checked","checked"),
d.value="custom",k.style.display="none",p.style.display="")}}c="format-"+c;var l=document.createElement("input");l.setAttribute("name",c);l.setAttribute("type","radio");l.setAttribute("value","portrait");var q=document.createElement("input");q.setAttribute("name",c);q.setAttribute("type","radio");q.setAttribute("value","landscape");var d=document.createElement("select");d.style.marginBottom="8px";d.style.borderRadius="4px";d.style.border="1px solid rgb(160, 160, 160)";d.style.width="206px";var k=
document.createElement("div");k.style.marginLeft="4px";k.style.width="210px";k.style.height="24px";l.style.marginRight="6px";k.appendChild(l);c=document.createElement("span");c.style.maxWidth="100px";mxUtils.write(c,mxResources.get("portrait"));k.appendChild(c);q.style.marginLeft="10px";q.style.marginRight="6px";k.appendChild(q);var g=document.createElement("span");g.style.width="100px";mxUtils.write(g,mxResources.get("landscape"));k.appendChild(g);var p=document.createElement("div");p.style.marginLeft=
-"4px";p.style.width="210px";p.style.height="24px";var m=document.createElement("input");m.setAttribute("size","7");m.style.textAlign="right";p.appendChild(m);mxUtils.write(p," in x ");var v=document.createElement("input");v.setAttribute("size","7");v.style.textAlign="right";p.appendChild(v);mxUtils.write(p," in");k.style.display="none";p.style.display="none";for(var u={},t=PageSetupDialog.getFormats(),z=0;z<t.length;z++){var y=t[z];u[y.key]=y;var F=document.createElement("option");F.setAttribute("value",
-y.key);mxUtils.write(F,y.title);d.appendChild(F)}var D=!1;n();b.appendChild(d);mxUtils.br(b);b.appendChild(k);b.appendChild(p);var E=e,H=function(b,c){var g=u[d.value];null!=g.format?(m.value=g.format.width/100,v.value=g.format.height/100,p.style.display="none",k.style.display=""):(k.style.display="none",p.style.display="");g=parseFloat(m.value);if(isNaN(g)||0>=g)m.value=e.width/100;g=parseFloat(v.value);if(isNaN(g)||0>=g)v.value=e.height/100;g=new mxRectangle(0,0,Math.floor(100*parseFloat(m.value)),
-Math.floor(100*parseFloat(v.value)));"custom"!=d.value&&q.checked&&(g=new mxRectangle(0,0,g.height,g.width));c&&D||g.width==E.width&&g.height==E.height||(E=g,null!=f&&f(E))};mxEvent.addListener(c,"click",function(b){l.checked=!0;H(b);mxEvent.consume(b)});mxEvent.addListener(g,"click",function(b){q.checked=!0;H(b);mxEvent.consume(b)});mxEvent.addListener(m,"blur",H);mxEvent.addListener(m,"click",H);mxEvent.addListener(v,"blur",H);mxEvent.addListener(v,"click",H);mxEvent.addListener(q,"change",H);mxEvent.addListener(l,
-"change",H);mxEvent.addListener(d,"change",function(b){D="custom"==d.value;H(b,!0)});H();return{set:function(b){e=b;n(null,null,!0)},get:function(){return E},widthInput:m,heightInput:v}};
+"4px";p.style.width="210px";p.style.height="24px";var m=document.createElement("input");m.setAttribute("size","7");m.style.textAlign="right";p.appendChild(m);mxUtils.write(p," in x ");var u=document.createElement("input");u.setAttribute("size","7");u.style.textAlign="right";p.appendChild(u);mxUtils.write(p," in");k.style.display="none";p.style.display="none";for(var v={},t=PageSetupDialog.getFormats(),z=0;z<t.length;z++){var y=t[z];v[y.key]=y;var I=document.createElement("option");I.setAttribute("value",
+y.key);mxUtils.write(I,y.title);d.appendChild(I)}var D=!1;n();b.appendChild(d);mxUtils.br(b);b.appendChild(k);b.appendChild(p);var F=e,E=function(b,c){var g=v[d.value];null!=g.format?(m.value=g.format.width/100,u.value=g.format.height/100,p.style.display="none",k.style.display=""):(k.style.display="none",p.style.display="");g=parseFloat(m.value);if(isNaN(g)||0>=g)m.value=e.width/100;g=parseFloat(u.value);if(isNaN(g)||0>=g)u.value=e.height/100;g=new mxRectangle(0,0,Math.floor(100*parseFloat(m.value)),
+Math.floor(100*parseFloat(u.value)));"custom"!=d.value&&q.checked&&(g=new mxRectangle(0,0,g.height,g.width));c&&D||g.width==F.width&&g.height==F.height||(F=g,null!=f&&f(F))};mxEvent.addListener(c,"click",function(b){l.checked=!0;E(b);mxEvent.consume(b)});mxEvent.addListener(g,"click",function(b){q.checked=!0;E(b);mxEvent.consume(b)});mxEvent.addListener(m,"blur",E);mxEvent.addListener(m,"click",E);mxEvent.addListener(u,"blur",E);mxEvent.addListener(u,"click",E);mxEvent.addListener(q,"change",E);mxEvent.addListener(l,
+"change",E);mxEvent.addListener(d,"change",function(b){D="custom"==d.value;E(b,!0)});E();return{set:function(b){e=b;n(null,null,!0)},get:function(){return F},widthInput:m,heightInput:u}};
PageSetupDialog.getFormats=function(){return[{key:"letter",title:'US-Letter (8,5" x 11")',format:mxConstants.PAGE_FORMAT_LETTER_PORTRAIT},{key:"legal",title:'US-Legal (8,5" x 14")',format:new mxRectangle(0,0,850,1400)},{key:"tabloid",title:'US-Tabloid (11" x 17")',format:new mxRectangle(0,0,1100,1700)},{key:"executive",title:'US-Executive (7" x 10")',format:new mxRectangle(0,0,700,1E3)},{key:"a0",title:"A0 (841 mm x 1189 mm)",format:new mxRectangle(0,0,3300,4681)},{key:"a1",title:"A1 (594 mm x 841 mm)",
format:new mxRectangle(0,0,2339,3300)},{key:"a2",title:"A2 (420 mm x 594 mm)",format:new mxRectangle(0,0,1654,2336)},{key:"a3",title:"A3 (297 mm x 420 mm)",format:new mxRectangle(0,0,1169,1654)},{key:"a4",title:"A4 (210 mm x 297 mm)",format:mxConstants.PAGE_FORMAT_A4_PORTRAIT},{key:"a5",title:"A5 (148 mm x 210 mm)",format:new mxRectangle(0,0,583,827)},{key:"a6",title:"A6 (105 mm x 148 mm)",format:new mxRectangle(0,0,413,583)},{key:"a7",title:"A7 (74 mm x 105 mm)",format:new mxRectangle(0,0,291,413)},
{key:"b4",title:"B4 (250 mm x 353 mm)",format:new mxRectangle(0,0,980,1390)},{key:"b5",title:"B5 (176 mm x 250 mm)",format:new mxRectangle(0,0,690,980)},{key:"16-9",title:"16:9 (1600 x 900)",format:new mxRectangle(0,0,900,1600)},{key:"16-10",title:"16:10 (1920 x 1200)",format:new mxRectangle(0,0,1200,1920)},{key:"4-3",title:"4:3 (1600 x 1200)",format:new mxRectangle(0,0,1200,1600)},{key:"custom",title:mxResources.get("custom"),format:null}]};
-var FilenameDialog=function(b,c,e,f,n,l,q,d,k,g,p,m){k=null!=k?k:!0;var v,u,t=document.createElement("table"),z=document.createElement("tbody");t.style.position="absolute";t.style.top="30px";t.style.left="20px";v=document.createElement("tr");u=document.createElement("td");u.style.textOverflow="ellipsis";u.style.textAlign="right";u.style.maxWidth="100px";u.style.fontSize="10pt";u.style.width="84px";mxUtils.write(u,(n||mxResources.get("filename"))+":");v.appendChild(u);var y=document.createElement("input");
-y.setAttribute("value",c||"");y.style.marginLeft="4px";y.style.width=null!=m?m+"px":"180px";var F=mxUtils.button(e,function(){if(null==l||l(y.value))k&&b.hideDialog(),f(y.value)});F.className="geBtn gePrimaryBtn";this.init=function(){if(null!=n||null==q)if(y.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?y.select():document.execCommand("selectAll",!1,null),Graph.fileSupport){var b=t.parentNode;if(null!=b){var d=null;mxEvent.addListener(b,"dragleave",function(b){null!=d&&(d.style.backgroundColor=
-"",d=null);b.stopPropagation();b.preventDefault()});mxEvent.addListener(b,"dragover",mxUtils.bind(this,function(b){null==d&&(!mxClient.IS_IE||10<document.documentMode)&&(d=y,d.style.backgroundColor="#ebf2f9");b.stopPropagation();b.preventDefault()}));mxEvent.addListener(b,"drop",mxUtils.bind(this,function(b){null!=d&&(d.style.backgroundColor="",d=null);0<=mxUtils.indexOf(b.dataTransfer.types,"text/uri-list")&&(y.value=decodeURIComponent(b.dataTransfer.getData("text/uri-list")),F.click());b.stopPropagation();
-b.preventDefault()}))}}};u=document.createElement("td");u.style.whiteSpace="nowrap";u.appendChild(y);v.appendChild(u);if(null!=n||null==q)z.appendChild(v),null!=p&&(u.appendChild(FilenameDialog.createTypeHint(b,y,p)),null!=b.editor.diagramFileTypes&&(v=document.createElement("tr"),u=document.createElement("td"),u.style.textOverflow="ellipsis",u.style.textAlign="right",u.style.maxWidth="100px",u.style.fontSize="10pt",u.style.width="84px",mxUtils.write(u,mxResources.get("type")+":"),v.appendChild(u),
-u=document.createElement("td"),u.style.whiteSpace="nowrap",v.appendChild(u),c=FilenameDialog.createFileTypes(b,y,b.editor.diagramFileTypes),c.style.marginLeft="4px",c.style.width="198px",u.appendChild(c),y.style.width=null!=m?m-40+"px":"190px",v.appendChild(u),z.appendChild(v)));null!=q&&(v=document.createElement("tr"),u=document.createElement("td"),u.colSpan=2,u.appendChild(q),v.appendChild(u),z.appendChild(v));v=document.createElement("tr");u=document.createElement("td");u.colSpan=2;u.style.paddingTop=
-null!=p?"12px":"20px";u.style.whiteSpace="nowrap";u.setAttribute("align","right");p=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();null!=g&&g()});p.className="geBtn";b.editor.cancelFirst&&u.appendChild(p);null!=d&&(m=mxUtils.button(mxResources.get("help"),function(){b.editor.graph.openLink(d)}),m.className="geBtn",u.appendChild(m));mxEvent.addListener(y,"keypress",function(b){13==b.keyCode&&F.click()});u.appendChild(F);b.editor.cancelFirst||u.appendChild(p);v.appendChild(u);z.appendChild(v);
+var FilenameDialog=function(b,c,e,f,n,l,q,d,k,g,p,m){k=null!=k?k:!0;var u,v,t=document.createElement("table"),z=document.createElement("tbody");t.style.position="absolute";t.style.top="30px";t.style.left="20px";u=document.createElement("tr");v=document.createElement("td");v.style.textOverflow="ellipsis";v.style.textAlign="right";v.style.maxWidth="100px";v.style.fontSize="10pt";v.style.width="84px";mxUtils.write(v,(n||mxResources.get("filename"))+":");u.appendChild(v);var y=document.createElement("input");
+y.setAttribute("value",c||"");y.style.marginLeft="4px";y.style.width=null!=m?m+"px":"180px";var I=mxUtils.button(e,function(){if(null==l||l(y.value))k&&b.hideDialog(),f(y.value)});I.className="geBtn gePrimaryBtn";this.init=function(){if(null!=n||null==q)if(y.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?y.select():document.execCommand("selectAll",!1,null),Graph.fileSupport){var b=t.parentNode;if(null!=b){var d=null;mxEvent.addListener(b,"dragleave",function(b){null!=d&&(d.style.backgroundColor=
+"",d=null);b.stopPropagation();b.preventDefault()});mxEvent.addListener(b,"dragover",mxUtils.bind(this,function(b){null==d&&(!mxClient.IS_IE||10<document.documentMode)&&(d=y,d.style.backgroundColor="#ebf2f9");b.stopPropagation();b.preventDefault()}));mxEvent.addListener(b,"drop",mxUtils.bind(this,function(b){null!=d&&(d.style.backgroundColor="",d=null);0<=mxUtils.indexOf(b.dataTransfer.types,"text/uri-list")&&(y.value=decodeURIComponent(b.dataTransfer.getData("text/uri-list")),I.click());b.stopPropagation();
+b.preventDefault()}))}}};v=document.createElement("td");v.style.whiteSpace="nowrap";v.appendChild(y);u.appendChild(v);if(null!=n||null==q)z.appendChild(u),null!=p&&(v.appendChild(FilenameDialog.createTypeHint(b,y,p)),null!=b.editor.diagramFileTypes&&(u=document.createElement("tr"),v=document.createElement("td"),v.style.textOverflow="ellipsis",v.style.textAlign="right",v.style.maxWidth="100px",v.style.fontSize="10pt",v.style.width="84px",mxUtils.write(v,mxResources.get("type")+":"),u.appendChild(v),
+v=document.createElement("td"),v.style.whiteSpace="nowrap",u.appendChild(v),c=FilenameDialog.createFileTypes(b,y,b.editor.diagramFileTypes),c.style.marginLeft="4px",c.style.width="198px",v.appendChild(c),y.style.width=null!=m?m-40+"px":"190px",u.appendChild(v),z.appendChild(u)));null!=q&&(u=document.createElement("tr"),v=document.createElement("td"),v.colSpan=2,v.appendChild(q),u.appendChild(v),z.appendChild(u));u=document.createElement("tr");v=document.createElement("td");v.colSpan=2;v.style.paddingTop=
+null!=p?"12px":"20px";v.style.whiteSpace="nowrap";v.setAttribute("align","right");p=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();null!=g&&g()});p.className="geBtn";b.editor.cancelFirst&&v.appendChild(p);null!=d&&(m=mxUtils.button(mxResources.get("help"),function(){b.editor.graph.openLink(d)}),m.className="geBtn",v.appendChild(m));mxEvent.addListener(y,"keypress",function(b){13==b.keyCode&&I.click()});v.appendChild(I);b.editor.cancelFirst||v.appendChild(p);u.appendChild(v);z.appendChild(u);
t.appendChild(z);this.container=t};FilenameDialog.filenameHelpLink=null;
FilenameDialog.createTypeHint=function(b,c,e){var f=document.createElement("img");f.style.backgroundPosition="center bottom";f.style.backgroundRepeat="no-repeat";f.style.margin="2px 0 0 4px";f.style.verticalAlign="top";f.style.cursor="pointer";f.style.height="16px";f.style.width="16px";mxUtils.setOpacity(f,70);var n=function(){f.setAttribute("src",Editor.helpImage);f.setAttribute("title",mxResources.get("help"));for(var b=0;b<e.length;b++)if(0<e[b].ext.length&&c.value.toLowerCase().substring(c.value.length-
e[b].ext.length-1)=="."+e[b].ext){f.setAttribute("title",mxResources.get(e[b].title));break}};mxEvent.addListener(c,"keyup",n);mxEvent.addListener(c,"change",n);mxEvent.addListener(f,"click",function(c){var e=f.getAttribute("title");f.getAttribute("src")==Editor.helpImage?b.editor.graph.openLink(FilenameDialog.filenameHelpLink):""!=e&&b.showError(null,e,mxResources.get("help"),function(){b.editor.graph.openLink(FilenameDialog.filenameHelpLink)},null,mxResources.get("ok"),null,null,null,340,90);mxEvent.consume(c)});
@@ -2139,8 +2139,8 @@ mxGraphView.prototype.validateBackgroundStyles=function(){var b=this.graph,d=nul
b.defaultPageBorderColor,b.container.className="geDiagramContainer geDiagramBackdrop",c.style.backgroundImage="none",c.style.backgroundColor=""):(b.container.className="geDiagramContainer",c.style.backgroundPosition=e,c.style.backgroundColor=d,c.style.backgroundImage=g)};mxGraphView.prototype.createSvgGrid=function(b){for(var d=this.graph.gridSize*this.scale;d<this.minGridSize;)d*=2;for(var c=this.gridSteps*d,g=[],e=1;e<this.gridSteps;e++){var f=e*d;g.push("M 0 "+f+" L "+c+" "+f+" M "+f+" 0 L "+f+
" "+c)}return'<svg width="'+c+'" height="'+c+'" xmlns="'+mxConstants.NS_SVG+'"><defs><pattern id="grid" width="'+c+'" height="'+c+'" patternUnits="userSpaceOnUse"><path d="'+g.join(" ")+'" fill="none" stroke="'+b+'" opacity="0.2" stroke-width="1"/><path d="M '+c+" 0 L 0 0 0 "+c+'" fill="none" stroke="'+b+'" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(#grid)"/></svg>'};var b=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(c,d){b.apply(this,arguments);
if(null!=this.shiftPreview1){var k=this.view.canvas;null!=k.ownerSVGElement&&(k=k.ownerSVGElement);var g=this.gridSize*this.view.scale*this.view.gridSteps,g=-Math.round(g-mxUtils.mod(this.view.translate.x*this.view.scale+c,g))+"px "+-Math.round(g-mxUtils.mod(this.view.translate.y*this.view.scale+d,g))+"px";k.style.backgroundPosition=g}};mxGraph.prototype.updatePageBreaks=function(b,d,c){var g=this.view.scale,k=this.view.translate,e=this.pageFormat,f=g*this.pageScale,l=this.view.getBackgroundPageBounds();
-d=l.width;c=l.height;var t=new mxRectangle(g*k.x,g*k.y,e.width*f,e.height*f),n=(b=b&&Math.min(t.width,t.height)>this.minPageBreakDist)?Math.ceil(c/t.height)-1:0,q=b?Math.ceil(d/t.width)-1:0,F=l.x+d,D=l.y+c;null==this.horizontalPageBreaks&&0<n&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<q&&(this.verticalPageBreaks=[]);b=mxUtils.bind(this,function(b){if(null!=b){for(var d=b==this.horizontalPageBreaks?n:q,c=0;c<=d;c++){var g=b==this.horizontalPageBreaks?[new mxPoint(Math.round(l.x),
-Math.round(l.y+(c+1)*t.height)),new mxPoint(Math.round(F),Math.round(l.y+(c+1)*t.height))]:[new mxPoint(Math.round(l.x+(c+1)*t.width),Math.round(l.y)),new mxPoint(Math.round(l.x+(c+1)*t.width),Math.round(D))];null!=b[c]?(b[c].points=g,b[c].redraw()):(g=new mxPolyline(g,this.pageBreakColor),g.dialect=this.dialect,g.isDashed=this.pageBreakDashed,g.pointerEvents=!1,g.init(this.view.backgroundPane),g.redraw(),b[c]=g)}for(c=d;c<b.length;c++)b[c].destroy();b.splice(d,b.length-d)}});b(this.horizontalPageBreaks);
+d=l.width;c=l.height;var t=new mxRectangle(g*k.x,g*k.y,e.width*f,e.height*f),n=(b=b&&Math.min(t.width,t.height)>this.minPageBreakDist)?Math.ceil(c/t.height)-1:0,q=b?Math.ceil(d/t.width)-1:0,I=l.x+d,D=l.y+c;null==this.horizontalPageBreaks&&0<n&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<q&&(this.verticalPageBreaks=[]);b=mxUtils.bind(this,function(b){if(null!=b){for(var d=b==this.horizontalPageBreaks?n:q,c=0;c<=d;c++){var g=b==this.horizontalPageBreaks?[new mxPoint(Math.round(l.x),
+Math.round(l.y+(c+1)*t.height)),new mxPoint(Math.round(I),Math.round(l.y+(c+1)*t.height))]:[new mxPoint(Math.round(l.x+(c+1)*t.width),Math.round(l.y)),new mxPoint(Math.round(l.x+(c+1)*t.width),Math.round(D))];null!=b[c]?(b[c].points=g,b[c].redraw()):(g=new mxPolyline(g,this.pageBreakColor),g.dialect=this.dialect,g.isDashed=this.pageBreakDashed,g.pointerEvents=!1,g.init(this.view.backgroundPane),g.redraw(),b[c]=g)}for(c=d;c<b.length;c++)b[c].destroy();b.splice(d,b.length-d)}});b(this.horizontalPageBreaks);
b(this.verticalPageBreaks)};var c=mxGraphHandler.prototype.shouldRemoveCellsFromParent;mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(b,d,k){for(var g=0;g<d.length;g++){if(this.graph.isTableCell(d[g])||this.graph.isTableRow(d[g]))return!1;if(this.graph.getModel().isVertex(d[g])){var e=this.graph.getCellGeometry(d[g]);if(null!=e&&e.relative)return!1}}return c.apply(this,arguments)};var e=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var b=
e.apply(this,arguments);b.intersects=mxUtils.bind(this,function(d,c){return this.isConnecting()?!0:mxCellMarker.prototype.intersects.apply(b,arguments)});return b};mxGraphView.prototype.createBackgroundPageShape=function(b){return new mxRectangleShape(b,"#ffffff",this.graph.defaultPageBorderColor)};mxGraphView.prototype.getBackgroundPageBounds=function(){var b=this.getGraphBounds(),d=0<b.width?b.x/this.scale-this.translate.x:0,c=0<b.height?b.y/this.scale-this.translate.y:0,g=this.graph.pageFormat,
e=this.graph.pageScale,f=g.width*e,g=g.height*e,e=Math.floor(Math.min(0,d)/f),l=Math.floor(Math.min(0,c)/g);return new mxRectangle(this.scale*(this.translate.x+e*f),this.scale*(this.translate.y+l*g),this.scale*(Math.ceil(Math.max(1,d+b.width/this.scale)/f)-e)*f,this.scale*(Math.ceil(Math.max(1,c+b.height/this.scale)/g)-l)*g)};var f=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(b,d){f.apply(this,arguments);this.dialect==mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape||
@@ -2150,22 +2150,22 @@ this.graph.isCellSelected(b)&&!this.graph.isToggleEvent(c.getEvent())||this.grap
"data:image/gif;base64,R0lGODlhCQAJAIAAAP///zMzMyH5BAEAAAAALAAAAAAJAAkAAAIPhI8WebHsHopSOVgb26AAADs=":(new Image).src=mxPopupMenu.prototype.submenuImage;mxClient.IS_SVG||null==mxConnectionHandler.prototype.connectImage||((new Image).src=mxConnectionHandler.prototype.connectImage.src);this.selectionStateListener=mxUtils.bind(this,function(b,d){this.clearSelectionState()});f.getSelectionModel().addListener(mxEvent.CHANGE,this.selectionStateListener);f.getModel().addListener(mxEvent.CHANGE,this.selectionStateListener);
f.addListener(mxEvent.EDITING_STARTED,this.selectionStateListener);f.addListener(mxEvent.EDITING_STOPPED,this.selectionStateListener);f.getView().addListener("unitChanged",this.selectionStateListener);this.editor.chromeless&&!this.editor.editable&&(this.footerHeight=0,f.isEnabled=function(){return!1},f.panningHandler.isForcePanningEvent=function(b){return!mxEvent.isPopupTrigger(b.getEvent())});this.actions=new Actions(this);this.menus=this.createMenus();if(!f.standalone){var l="rounded shadow glass dashed dashPattern labelBackgroundColor labelBorderColor comic sketch fillWeight hachureGap hachureAngle jiggle disableMultiStroke disableMultiStrokeFill fillStyle curveFitting simplification sketchStyle pointerEvents".split(" "),
q="shape edgeStyle curved rounded elbow jumpStyle jumpSize comic sketch fillWeight hachureGap hachureAngle jiggle disableMultiStroke disableMultiStrokeFill fillStyle curveFitting simplification sketchStyle".split(" "),d="curved sourcePerimeterSpacing targetPerimeterSpacing startArrow startFill startSize endArrow endFill endSize".split(" ");this.setDefaultStyle=function(b){try{var d=f.getCellStyle(b,!1),c=[],g=[],k;for(k in d)c.push(d[k]),g.push(k);f.getModel().isEdge(b)?f.currentEdgeStyle={}:f.currentVertexStyle=
-{};this.fireEvent(new mxEventObject("styleChanged","keys",g,"values",c,"cells",[b]))}catch(X){this.handleError(X)}};this.clearDefaultStyle=function(){f.currentEdgeStyle=mxUtils.clone(f.defaultEdgeStyle);f.currentVertexStyle=mxUtils.clone(f.defaultVertexStyle);this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",[]))};var k=["fontFamily","fontSource","fontSize","fontColor"];for(c=0;c<k.length;c++)0>mxUtils.indexOf(l,k[c])&&l.push(k[c]);var g="edgeStyle startArrow startFill startSize endArrow endFill endSize".split(" "),
+{};this.fireEvent(new mxEventObject("styleChanged","keys",g,"values",c,"cells",[b]))}catch(ba){this.handleError(ba)}};this.clearDefaultStyle=function(){f.currentEdgeStyle=mxUtils.clone(f.defaultEdgeStyle);f.currentVertexStyle=mxUtils.clone(f.defaultVertexStyle);this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",[]))};var k=["fontFamily","fontSource","fontSize","fontColor"];for(c=0;c<k.length;c++)0>mxUtils.indexOf(l,k[c])&&l.push(k[c]);var g="edgeStyle startArrow startFill startSize endArrow endFill endSize".split(" "),
p=[["startArrow","startFill","endArrow","endFill"],["startSize","endSize"],["sourcePerimeterSpacing","targetPerimeterSpacing"],["strokeColor","strokeWidth"],["fillColor","gradientColor","gradientDirection"],["opacity"],["html"]];for(c=0;c<p.length;c++)for(e=0;e<p[c].length;e++)l.push(p[c][e]);for(c=0;c<q.length;c++)0>mxUtils.indexOf(l,q[c])&&l.push(q[c]);var m=function(b,c,g,k,e,m,x){k=null!=k?k:f.currentVertexStyle;e=null!=e?e:f.currentEdgeStyle;m=null!=m?m:!0;g=null!=g?g:f.getModel();if(x){x=[];
-for(var v=0;v<b.length;v++)x=x.concat(g.getDescendants(b[v]));b=x}g.beginUpdate();try{for(v=0;v<b.length;v++){var t=b[v],u;if(c)u=["fontSize","fontFamily","fontColor"];else{var n=g.getStyle(t),y=null!=n?n.split(";"):[];u=l.slice();for(var q=0;q<y.length;q++){var z=y[q],P=z.indexOf("=");if(0<=P){var A=z.substring(0,P),ga=mxUtils.indexOf(u,A);0<=ga&&u.splice(ga,1);for(x=0;x<p.length;x++){var W=p[x];if(0<=mxUtils.indexOf(W,A))for(var K=0;K<W.length;K++){var F=mxUtils.indexOf(u,W[K]);0<=F&&u.splice(F,
-1)}}}}}var H=g.isEdge(t);x=H?e:k;for(var G=g.getStyle(t),q=0;q<u.length;q++){var A=u[q],T=x[A];null!=T&&"edgeStyle"!=A&&("shape"!=A||H)&&(!H||m||0>mxUtils.indexOf(d,A))&&(G=mxUtils.setStyle(G,A,T))}Editor.simpleLabels&&(G=mxUtils.setStyle(mxUtils.setStyle(G,"html",null),"whiteSpace",null));g.setStyle(t,G)}}finally{g.endUpdate()}return b};f.addListener("cellsInserted",function(b,d){m(d.getProperty("cells"),null,null,null,null,!0,!0)});f.addListener("textInserted",function(b,d){m(d.getProperty("cells"),
-!0)});this.insertHandler=m;this.createDivs();this.createUi();this.refresh();var v=mxUtils.bind(this,function(b){null==b&&(b=window.event);return f.isEditing()||null!=b&&this.isSelectionAllowed(b)});this.container==document.body&&(this.menubarContainer.onselectstart=v,this.menubarContainer.onmousedown=v,this.toolbarContainer.onselectstart=v,this.toolbarContainer.onmousedown=v,this.diagramContainer.onselectstart=v,this.diagramContainer.onmousedown=v,this.sidebarContainer.onselectstart=v,this.sidebarContainer.onmousedown=
-v,this.formatContainer.onselectstart=v,this.formatContainer.onmousedown=v,this.footerContainer.onselectstart=v,this.footerContainer.onmousedown=v,null!=this.tabContainer&&(this.tabContainer.onselectstart=v));!this.editor.chromeless||this.editor.editable?(c=function(b){if(null!=b){var d=mxEvent.getSource(b);if("A"==d.nodeName)for(;null!=d;){if("geHint"==d.className)return!0;d=d.parentNode}}return v(b)},mxClient.IS_IE&&("undefined"===typeof document.documentMode||9>document.documentMode)?mxEvent.addListener(this.diagramContainer,
-"contextmenu",c):this.diagramContainer.oncontextmenu=c):f.panningHandler.usePopupTrigger=!1;f.init(this.diagramContainer);mxClient.IS_SVG&&null!=f.view.getDrawPane()&&(c=f.view.getDrawPane().ownerSVGElement,null!=c&&(c.style.position="absolute"));this.hoverIcons=this.createHoverIcons();if(null!=f.graphHandler){var u=f.graphHandler.start;f.graphHandler.start=function(){null!=I.hoverIcons&&I.hoverIcons.reset();u.apply(this,arguments)}}mxEvent.addListener(this.diagramContainer,"mousemove",mxUtils.bind(this,
+for(var u=0;u<b.length;u++)x=x.concat(g.getDescendants(b[u]));b=x}g.beginUpdate();try{for(u=0;u<b.length;u++){var t=b[u],v;if(c)v=["fontSize","fontFamily","fontColor"];else{var n=g.getStyle(t),y=null!=n?n.split(";"):[];v=l.slice();for(var q=0;q<y.length;q++){var z=y[q],P=z.indexOf("=");if(0<=P){var B=z.substring(0,P),ga=mxUtils.indexOf(v,B);0<=ga&&v.splice(ga,1);for(x=0;x<p.length;x++){var W=p[x];if(0<=mxUtils.indexOf(W,B))for(var M=0;M<W.length;M++){var I=mxUtils.indexOf(v,W[M]);0<=I&&v.splice(I,
+1)}}}}}var E=g.isEdge(t);x=E?e:k;for(var G=g.getStyle(t),q=0;q<v.length;q++){var B=v[q],V=x[B];null!=V&&"edgeStyle"!=B&&("shape"!=B||E)&&(!E||m||0>mxUtils.indexOf(d,B))&&(G=mxUtils.setStyle(G,B,V))}Editor.simpleLabels&&(G=mxUtils.setStyle(mxUtils.setStyle(G,"html",null),"whiteSpace",null));g.setStyle(t,G)}}finally{g.endUpdate()}return b};f.addListener("cellsInserted",function(b,d){m(d.getProperty("cells"),null,null,null,null,!0,!0)});f.addListener("textInserted",function(b,d){m(d.getProperty("cells"),
+!0)});this.insertHandler=m;this.createDivs();this.createUi();this.refresh();var u=mxUtils.bind(this,function(b){null==b&&(b=window.event);return f.isEditing()||null!=b&&this.isSelectionAllowed(b)});this.container==document.body&&(this.menubarContainer.onselectstart=u,this.menubarContainer.onmousedown=u,this.toolbarContainer.onselectstart=u,this.toolbarContainer.onmousedown=u,this.diagramContainer.onselectstart=u,this.diagramContainer.onmousedown=u,this.sidebarContainer.onselectstart=u,this.sidebarContainer.onmousedown=
+u,this.formatContainer.onselectstart=u,this.formatContainer.onmousedown=u,this.footerContainer.onselectstart=u,this.footerContainer.onmousedown=u,null!=this.tabContainer&&(this.tabContainer.onselectstart=u));!this.editor.chromeless||this.editor.editable?(c=function(b){if(null!=b){var d=mxEvent.getSource(b);if("A"==d.nodeName)for(;null!=d;){if("geHint"==d.className)return!0;d=d.parentNode}}return u(b)},mxClient.IS_IE&&("undefined"===typeof document.documentMode||9>document.documentMode)?mxEvent.addListener(this.diagramContainer,
+"contextmenu",c):this.diagramContainer.oncontextmenu=c):f.panningHandler.usePopupTrigger=!1;f.init(this.diagramContainer);mxClient.IS_SVG&&null!=f.view.getDrawPane()&&(c=f.view.getDrawPane().ownerSVGElement,null!=c&&(c.style.position="absolute"));this.hoverIcons=this.createHoverIcons();if(null!=f.graphHandler){var v=f.graphHandler.start;f.graphHandler.start=function(){null!=H.hoverIcons&&H.hoverIcons.reset();v.apply(this,arguments)}}mxEvent.addListener(this.diagramContainer,"mousemove",mxUtils.bind(this,
function(b){var d=mxUtils.getOffset(this.diagramContainer);0<mxEvent.getClientX(b)-d.x-this.diagramContainer.clientWidth||0<mxEvent.getClientY(b)-d.y-this.diagramContainer.clientHeight?this.diagramContainer.setAttribute("title",mxResources.get("panTooltip")):this.diagramContainer.removeAttribute("title")}));var t=!1,z=this.hoverIcons.isResetEvent;this.hoverIcons.isResetEvent=function(b,d){return t||z.apply(this,arguments)};this.keydownHandler=mxUtils.bind(this,function(b){32!=b.which||f.isEditing()?
mxEvent.isConsumed(b)||27!=b.keyCode||this.hideDialog(null,!0):(t=!0,this.hoverIcons.reset(),f.container.style.cursor="move",f.isEditing()||mxEvent.getSource(b)!=f.container||mxEvent.consume(b))});mxEvent.addListener(document,"keydown",this.keydownHandler);this.keyupHandler=mxUtils.bind(this,function(b){f.container.style.cursor="";t=!1});mxEvent.addListener(document,"keyup",this.keyupHandler);var y=f.panningHandler.isForcePanningEvent;f.panningHandler.isForcePanningEvent=function(b){return y.apply(this,
-arguments)||t||mxEvent.isMouseEvent(b.getEvent())&&(this.usePopupTrigger||!mxEvent.isPopupTrigger(b.getEvent()))&&(!mxEvent.isControlDown(b.getEvent())&&mxEvent.isRightMouseButton(b.getEvent())||mxEvent.isMiddleMouseButton(b.getEvent()))};var F=f.cellEditor.isStopEditingEvent;f.cellEditor.isStopEditingEvent=function(b){return F.apply(this,arguments)||13==b.keyCode&&(!mxClient.IS_SF&&mxEvent.isControlDown(b)||mxClient.IS_MAC&&mxEvent.isMetaDown(b)||mxClient.IS_SF&&mxEvent.isShiftDown(b))};var D=f.isZoomWheelEvent;
-f.isZoomWheelEvent=function(){return t||D.apply(this,arguments)};var E=!1,H=null,N=null,A=null,G=mxUtils.bind(this,function(){if(null!=this.toolbar&&E!=f.cellEditor.isContentEditing()){for(var b=this.toolbar.container.firstChild,d=[];null!=b;){var c=b.nextSibling;0>mxUtils.indexOf(this.toolbar.staticElements,b)&&(b.parentNode.removeChild(b),d.push(b));b=c}b=this.toolbar.fontMenu;c=this.toolbar.sizeMenu;if(null==A)this.toolbar.createTextToolbar();else{for(var g=0;g<A.length;g++)this.toolbar.container.appendChild(A[g]);
-this.toolbar.fontMenu=H;this.toolbar.sizeMenu=N}E=f.cellEditor.isContentEditing();H=b;N=c;A=d}}),I=this,L=f.cellEditor.startEditing;f.cellEditor.startEditing=function(){L.apply(this,arguments);G();if(f.cellEditor.isContentEditing()){var b=!1,d=function(){b||(b=!0,window.setTimeout(function(){var d=f.getSelectedEditingElement();null!=d&&(d=mxUtils.getCurrentStyle(d),null!=d&&null!=I.toolbar&&(I.toolbar.setFontName(Graph.stripQuotes(d.fontFamily)),I.toolbar.setFontSize(parseInt(d.fontSize))));b=!1},
-0))};mxEvent.addListener(f.cellEditor.textarea,"input",d);mxEvent.addListener(f.cellEditor.textarea,"touchend",d);mxEvent.addListener(f.cellEditor.textarea,"mouseup",d);mxEvent.addListener(f.cellEditor.textarea,"keyup",d);d()}};var M=f.cellEditor.stopEditing;f.cellEditor.stopEditing=function(b,d){try{M.apply(this,arguments),G()}catch(W){I.handleError(W)}};f.container.setAttribute("tabindex","0");f.container.style.cursor="default";if(window.self===window.top&&null!=f.container.parentNode)try{f.container.focus()}catch(P){}var K=
-f.fireMouseEvent;f.fireMouseEvent=function(b,d,c){b==mxEvent.MOUSE_DOWN&&this.container.focus();K.apply(this,arguments)};f.popupMenuHandler.autoExpand=!0;null!=this.menus&&(f.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(b,d,c){this.menus.createPopupMenu(b,d,c)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(b){f.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(b);this.getKeyHandler=function(){return keyHandler};f.connectionHandler.addListener(mxEvent.CONNECT,
-function(b,d){var c=[d.getProperty("cell")];d.getProperty("terminalInserted")&&(c.push(d.getProperty("terminal")),window.setTimeout(function(){null!=I.hoverIcons&&I.hoverIcons.update(f.view.getState(c[c.length-1]))},0));m(c)});this.addListener("styleChanged",mxUtils.bind(this,function(b,d){var c=d.getProperty("cells"),e=!1,p=!1;if(0<c.length)for(var m=0;m<c.length&&(e=f.getModel().isVertex(c[m])||e,!(p=f.getModel().isEdge(c[m])||p)||!e);m++);else p=e=!0;for(var c=d.getProperty("keys"),x=d.getProperty("values"),
-m=0;m<c.length;m++){var v=0<=mxUtils.indexOf(k,c[m]);if("strokeColor"!=c[m]||null!=x[m]&&"none"!=x[m])if(0<=mxUtils.indexOf(q,c[m]))p||0<=mxUtils.indexOf(g,c[m])?null==x[m]?delete f.currentEdgeStyle[c[m]]:f.currentEdgeStyle[c[m]]=x[m]:e&&0<=mxUtils.indexOf(l,c[m])&&(null==x[m]?delete f.currentVertexStyle[c[m]]:f.currentVertexStyle[c[m]]=x[m]);else if(0<=mxUtils.indexOf(l,c[m])){if(e||v)null==x[m]?delete f.currentVertexStyle[c[m]]:f.currentVertexStyle[c[m]]=x[m];if(p||v||0<=mxUtils.indexOf(g,c[m]))null==
+arguments)||t||mxEvent.isMouseEvent(b.getEvent())&&(this.usePopupTrigger||!mxEvent.isPopupTrigger(b.getEvent()))&&(!mxEvent.isControlDown(b.getEvent())&&mxEvent.isRightMouseButton(b.getEvent())||mxEvent.isMiddleMouseButton(b.getEvent()))};var I=f.cellEditor.isStopEditingEvent;f.cellEditor.isStopEditingEvent=function(b){return I.apply(this,arguments)||13==b.keyCode&&(!mxClient.IS_SF&&mxEvent.isControlDown(b)||mxClient.IS_MAC&&mxEvent.isMetaDown(b)||mxClient.IS_SF&&mxEvent.isShiftDown(b))};var D=f.isZoomWheelEvent;
+f.isZoomWheelEvent=function(){return t||D.apply(this,arguments)};var F=!1,E=null,O=null,B=null,G=mxUtils.bind(this,function(){if(null!=this.toolbar&&F!=f.cellEditor.isContentEditing()){for(var b=this.toolbar.container.firstChild,d=[];null!=b;){var c=b.nextSibling;0>mxUtils.indexOf(this.toolbar.staticElements,b)&&(b.parentNode.removeChild(b),d.push(b));b=c}b=this.toolbar.fontMenu;c=this.toolbar.sizeMenu;if(null==B)this.toolbar.createTextToolbar();else{for(var g=0;g<B.length;g++)this.toolbar.container.appendChild(B[g]);
+this.toolbar.fontMenu=E;this.toolbar.sizeMenu=O}F=f.cellEditor.isContentEditing();E=b;O=c;B=d}}),H=this,L=f.cellEditor.startEditing;f.cellEditor.startEditing=function(){L.apply(this,arguments);G();if(f.cellEditor.isContentEditing()){var b=!1,d=function(){b||(b=!0,window.setTimeout(function(){var d=f.getSelectedEditingElement();null!=d&&(d=mxUtils.getCurrentStyle(d),null!=d&&null!=H.toolbar&&(H.toolbar.setFontName(Graph.stripQuotes(d.fontFamily)),H.toolbar.setFontSize(parseInt(d.fontSize))));b=!1},
+0))};mxEvent.addListener(f.cellEditor.textarea,"input",d);mxEvent.addListener(f.cellEditor.textarea,"touchend",d);mxEvent.addListener(f.cellEditor.textarea,"mouseup",d);mxEvent.addListener(f.cellEditor.textarea,"keyup",d);d()}};var N=f.cellEditor.stopEditing;f.cellEditor.stopEditing=function(b,d){try{N.apply(this,arguments),G()}catch(W){H.handleError(W)}};f.container.setAttribute("tabindex","0");f.container.style.cursor="default";if(window.self===window.top&&null!=f.container.parentNode)try{f.container.focus()}catch(P){}var M=
+f.fireMouseEvent;f.fireMouseEvent=function(b,d,c){b==mxEvent.MOUSE_DOWN&&this.container.focus();M.apply(this,arguments)};f.popupMenuHandler.autoExpand=!0;null!=this.menus&&(f.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(b,d,c){this.menus.createPopupMenu(b,d,c)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(b){f.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(b);this.getKeyHandler=function(){return keyHandler};f.connectionHandler.addListener(mxEvent.CONNECT,
+function(b,d){var c=[d.getProperty("cell")];d.getProperty("terminalInserted")&&(c.push(d.getProperty("terminal")),window.setTimeout(function(){null!=H.hoverIcons&&H.hoverIcons.update(f.view.getState(c[c.length-1]))},0));m(c)});this.addListener("styleChanged",mxUtils.bind(this,function(b,d){var c=d.getProperty("cells"),e=!1,p=!1;if(0<c.length)for(var m=0;m<c.length&&(e=f.getModel().isVertex(c[m])||e,!(p=f.getModel().isEdge(c[m])||p)||!e);m++);else p=e=!0;for(var c=d.getProperty("keys"),x=d.getProperty("values"),
+m=0;m<c.length;m++){var u=0<=mxUtils.indexOf(k,c[m]);if("strokeColor"!=c[m]||null!=x[m]&&"none"!=x[m])if(0<=mxUtils.indexOf(q,c[m]))p||0<=mxUtils.indexOf(g,c[m])?null==x[m]?delete f.currentEdgeStyle[c[m]]:f.currentEdgeStyle[c[m]]=x[m]:e&&0<=mxUtils.indexOf(l,c[m])&&(null==x[m]?delete f.currentVertexStyle[c[m]]:f.currentVertexStyle[c[m]]=x[m]);else if(0<=mxUtils.indexOf(l,c[m])){if(e||u)null==x[m]?delete f.currentVertexStyle[c[m]]:f.currentVertexStyle[c[m]]=x[m];if(p||u||0<=mxUtils.indexOf(g,c[m]))null==
x[m]?delete f.currentEdgeStyle[c[m]]:f.currentEdgeStyle[c[m]]=x[m]}}null!=this.toolbar&&(this.toolbar.setFontName(f.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(f.currentVertexStyle.fontSize||Menus.prototype.defaultFontSize),null!=this.toolbar.edgeStyleMenu&&(this.toolbar.edgeStyleMenu.getElementsByTagName("div")[0].className="orthogonalEdgeStyle"==f.currentEdgeStyle.edgeStyle&&"1"==f.currentEdgeStyle.curved?"geSprite geSprite-curved":"straight"==f.currentEdgeStyle.edgeStyle||
"none"==f.currentEdgeStyle.edgeStyle||null==f.currentEdgeStyle.edgeStyle?"geSprite geSprite-straight":"entityRelationEdgeStyle"==f.currentEdgeStyle.edgeStyle?"geSprite geSprite-entity":"elbowEdgeStyle"==f.currentEdgeStyle.edgeStyle?"geSprite geSprite-"+("vertical"==f.currentEdgeStyle.elbow?"verticalelbow":"horizontalelbow"):"isometricEdgeStyle"==f.currentEdgeStyle.edgeStyle?"geSprite geSprite-"+("vertical"==f.currentEdgeStyle.elbow?"verticalisometric":"horizontalisometric"):"geSprite geSprite-orthogonal"),
null!=this.toolbar.edgeShapeMenu&&(this.toolbar.edgeShapeMenu.getElementsByTagName("div")[0].className="link"==f.currentEdgeStyle.shape?"geSprite geSprite-linkedge":"flexArrow"==f.currentEdgeStyle.shape?"geSprite geSprite-arrow":"arrow"==f.currentEdgeStyle.shape?"geSprite geSprite-simplearrow":"geSprite geSprite-connection"),null!=this.toolbar.lineStartMenu&&(this.toolbar.lineStartMenu.getElementsByTagName("div")[0].className=this.getCssClassForMarker("start",f.currentEdgeStyle.shape,f.currentEdgeStyle[mxConstants.STYLE_STARTARROW],
@@ -2182,8 +2182,8 @@ EditorUi.prototype.init=function(){var b=this.editor.graph;if(!b.standalone){"0"
arguments);e.updateActionStates()};b.editLink=e.actions.get("editLink").funct;this.updateActionStates();this.initClipboard();this.initCanvas();null!=this.format&&this.format.init()}};EditorUi.prototype.clearSelectionState=function(){this.selectionState=null};EditorUi.prototype.getSelectionState=function(){null==this.selectionState&&(this.selectionState=this.createSelectionState());return this.selectionState};
EditorUi.prototype.createSelectionState=function(){for(var b=this.editor.graph,c=b.getSelectionCells(),e=this.initSelectionState(),f=!0,n=0;n<c.length;n++){var l=b.getCurrentCellStyle(c[n]);"0"!=mxUtils.getValue(l,mxConstants.STYLE_EDITABLE,"1")&&(this.updateSelectionStateForCell(e,c[n],c,f),f=!1)}this.updateSelectionStateForTableCells(e);return e};
EditorUi.prototype.initSelectionState=function(){return{vertices:[],edges:[],cells:[],x:null,y:null,width:null,height:null,style:{},containsImage:!1,containsLabel:!1,fill:!0,glass:!0,rounded:!0,autoSize:!1,image:!0,shadow:!0,lineJumps:!0,resizable:!0,table:!1,cell:!1,row:!1,movable:!0,rotatable:!0,stroke:!0,swimlane:!1,unlocked:this.editor.graph.isEnabled(),connections:!1}};
-EditorUi.prototype.updateSelectionStateForTableCells=function(b){if(1<b.cells.length&&b.cell){for(var c=mxUtils.sortCells(b.cells),e=this.editor.graph.model,f=e.getParent(c[0]),n=e.getParent(f),l=f.getIndex(c[0]),q=n.getIndex(f),d=null,k=1,g=1,p=0,m=q<n.getChildCount()-1?e.getChildAt(e.getChildAt(n,q+1),l):null;p<c.length-1;){var v=c[++p];null==m||m!=v||null!=d&&k!=d||(d=k,k=0,g++,f=e.getParent(m),m=q+g<n.getChildCount()?e.getChildAt(e.getChildAt(n,q+g),l):null);var u=this.editor.graph.view.getState(v);
-if(v==e.getChildAt(f,l+k)&&null!=u&&1==mxUtils.getValue(u.style,"colspan",1)&&1==mxUtils.getValue(u.style,"rowspan",1))k++;else break}p==g*k-1&&(b.mergeCell=c[0],b.colspan=k,b.rowspan=g)}};
+EditorUi.prototype.updateSelectionStateForTableCells=function(b){if(1<b.cells.length&&b.cell){for(var c=mxUtils.sortCells(b.cells),e=this.editor.graph.model,f=e.getParent(c[0]),n=e.getParent(f),l=f.getIndex(c[0]),q=n.getIndex(f),d=null,k=1,g=1,p=0,m=q<n.getChildCount()-1?e.getChildAt(e.getChildAt(n,q+1),l):null;p<c.length-1;){var u=c[++p];null==m||m!=u||null!=d&&k!=d||(d=k,k=0,g++,f=e.getParent(m),m=q+g<n.getChildCount()?e.getChildAt(e.getChildAt(n,q+g),l):null);var v=this.editor.graph.view.getState(u);
+if(u==e.getChildAt(f,l+k)&&null!=v&&1==mxUtils.getValue(v.style,"colspan",1)&&1==mxUtils.getValue(v.style,"rowspan",1))k++;else break}p==g*k-1&&(b.mergeCell=c[0],b.colspan=k,b.rowspan=g)}};
EditorUi.prototype.updateSelectionStateForCell=function(b,c,e,f){e=this.editor.graph;b.cells.push(c);if(e.getModel().isVertex(c)){b.connections=0<e.model.getEdgeCount(c);b.unlocked=b.unlocked&&!e.isCellLocked(c);b.resizable=b.resizable&&e.isCellResizable(c);b.rotatable=b.rotatable&&e.isCellRotatable(c);b.movable=b.movable&&e.isCellMovable(c)&&!e.isTableRow(c)&&!e.isTableCell(c);b.swimlane=b.swimlane||e.isSwimlane(c);b.table=b.table||e.isTable(c);b.cell=b.cell||e.isTableCell(c);b.row=b.row||e.isTableRow(c);
b.vertices.push(c);var n=e.getCellGeometry(c);if(null!=n&&(0<n.width?null==b.width?b.width=n.width:b.width!=n.width&&(b.width=""):b.containsLabel=!0,0<n.height?null==b.height?b.height=n.height:b.height!=n.height&&(b.height=""):b.containsLabel=!0,!n.relative||null!=n.offset)){var l=n.relative?n.offset.x:n.x,n=n.relative?n.offset.y:n.y;null==b.x?b.x=l:b.x!=l&&(b.x="");null==b.y?b.y=n:b.y!=n&&(b.y="")}}else e.getModel().isEdge(c)&&(b.edges.push(c),b.connections=!0,b.resizable=!1,b.rotatable=!1,b.movable=
!1);c=e.view.getState(c);null!=c&&(b.autoSize=b.autoSize||e.isAutoSizeState(c),b.glass=b.glass&&e.isGlassState(c),b.rounded=b.rounded&&e.isRoundedState(c),b.lineJumps=b.lineJumps&&e.isLineJumpState(c),b.image=b.image&&e.isImageState(c),b.shadow=b.shadow&&e.isShadowState(c),b.fill=b.fill&&e.isFillState(c),b.stroke=b.stroke&&e.isStrokeState(c),l=mxUtils.getValue(c.style,mxConstants.STYLE_SHAPE,null),b.containsImage=b.containsImage||"image"==l,e.mergeStyle(c.style,b.style,f))};
@@ -2218,8 +2218,8 @@ null;c.cellEditor.isContentEditing()?document.execCommand("paste",!1,null):f=e.a
EditorUi.prototype.lazyZoomDelay=20;EditorUi.prototype.wheelZoomDelay=400;EditorUi.prototype.buttonZoomDelay=600;
EditorUi.prototype.initCanvas=function(){var b=this.editor.graph;b.timerAutoScroll=!0;b.getPagePadding=function(){return new mxPoint(Math.max(0,Math.round((b.container.offsetWidth-34)/b.view.scale)),Math.max(0,Math.round((b.container.offsetHeight-34)/b.view.scale)))};b.view.getBackgroundPageBounds=function(){var b=this.graph.getPageLayout(),d=this.graph.getPageSize();return new mxRectangle(this.scale*(this.translate.x+b.x*d.width),this.scale*(this.translate.y+b.y*d.height),this.scale*b.width*d.width,
this.scale*b.height*d.height)};b.getPreferredPageSize=function(b,d,c){b=this.getPageLayout();d=this.getPageSize();return new mxRectangle(0,0,b.width*d.width,b.height*d.height)};var c=null,e=this;if(this.editor.isChromelessView()){this.chromelessResize=c=mxUtils.bind(this,function(d,c,g,k){if(null!=b.container&&!b.isViewer()){g=null!=g?g:0;k=null!=k?k:0;var e=b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds(),f=mxUtils.hasScrollbars(b.container),m=b.view.translate,p=b.view.scale,l=mxRectangle.fromRectangle(e);
-l.x=l.x/p-m.x;l.y=l.y/p-m.y;l.width/=p;l.height/=p;var m=b.container.scrollTop,v=b.container.scrollLeft,n=8<=document.documentMode?20:14;if(8==document.documentMode||9==document.documentMode)n+=3;var t=b.container.offsetWidth-n,n=b.container.offsetHeight-n;d=d?Math.max(.3,Math.min(c||1,t/l.width)):p;c=(t-d*l.width)/2/d;var u=0==this.lightboxVerticalDivider?0:(n-d*l.height)/this.lightboxVerticalDivider/d;f&&(c=Math.max(c,0),u=Math.max(u,0));if(f||e.width<t||e.height<n)b.view.scaleAndTranslate(d,Math.floor(c-
-l.x),Math.floor(u-l.y)),b.container.scrollTop=m*d/p,b.container.scrollLeft=v*d/p;else if(0!=g||0!=k)e=b.view.translate,b.view.setTranslate(Math.floor(e.x+g/p),Math.floor(e.y+k/p))}});this.chromelessWindowResize=mxUtils.bind(this,function(){this.chromelessResize(!1)});var f=mxUtils.bind(this,function(){this.chromelessWindowResize(!1)});mxEvent.addListener(window,"resize",f);this.destroyFunctions.push(function(){mxEvent.removeListener(window,"resize",f)});this.editor.addListener("resetGraphView",mxUtils.bind(this,
+l.x=l.x/p-m.x;l.y=l.y/p-m.y;l.width/=p;l.height/=p;var m=b.container.scrollTop,u=b.container.scrollLeft,n=8<=document.documentMode?20:14;if(8==document.documentMode||9==document.documentMode)n+=3;var t=b.container.offsetWidth-n,n=b.container.offsetHeight-n;d=d?Math.max(.3,Math.min(c||1,t/l.width)):p;c=(t-d*l.width)/2/d;var v=0==this.lightboxVerticalDivider?0:(n-d*l.height)/this.lightboxVerticalDivider/d;f&&(c=Math.max(c,0),v=Math.max(v,0));if(f||e.width<t||e.height<n)b.view.scaleAndTranslate(d,Math.floor(c-
+l.x),Math.floor(v-l.y)),b.container.scrollTop=m*d/p,b.container.scrollLeft=u*d/p;else if(0!=g||0!=k)e=b.view.translate,b.view.setTranslate(Math.floor(e.x+g/p),Math.floor(e.y+k/p))}});this.chromelessWindowResize=mxUtils.bind(this,function(){this.chromelessResize(!1)});var f=mxUtils.bind(this,function(){this.chromelessWindowResize(!1)});mxEvent.addListener(window,"resize",f);this.destroyFunctions.push(function(){mxEvent.removeListener(window,"resize",f)});this.editor.addListener("resetGraphView",mxUtils.bind(this,
function(){this.chromelessResize(!0)}));this.actions.get("zoomIn").funct=mxUtils.bind(this,function(d){b.zoomIn();this.chromelessResize(!1)});this.actions.get("zoomOut").funct=mxUtils.bind(this,function(d){b.zoomOut();this.chromelessResize(!1)});if("0"!=urlParams.toolbar){var n=JSON.parse(decodeURIComponent(urlParams["toolbar-config"]||"{}"));this.chromelessToolbar=document.createElement("div");this.chromelessToolbar.style.position="fixed";this.chromelessToolbar.style.overflow="hidden";this.chromelessToolbar.style.boxSizing=
"border-box";this.chromelessToolbar.style.whiteSpace="nowrap";this.chromelessToolbar.style.padding="10px 10px 8px 10px";this.chromelessToolbar.style.left=b.isViewer()?"0":"50%";mxClient.IS_IE||mxClient.IS_IE11?(this.chromelessToolbar.style.backgroundColor="#ffffff",this.chromelessToolbar.style.border="3px solid black"):this.chromelessToolbar.style.backgroundColor="#000000";mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"borderRadius","16px");mxUtils.setPrefixedStyle(this.chromelessToolbar.style,
"transition","opacity 600ms ease-in-out");var l=mxUtils.bind(this,function(){var d=mxUtils.getCurrentStyle(b.container);b.isViewer()?this.chromelessToolbar.style.top="0":this.chromelessToolbar.style.bottom=(null!=d?parseInt(d["margin-bottom"]||0):0)+(null!=this.tabContainer?20+parseInt(this.tabContainer.style.height):20)+"px"});this.editor.addListener("resetGraphView",l);l();var q=0,l=mxUtils.bind(this,function(b,d,c){q++;var g=document.createElement("span");g.style.paddingLeft="8px";g.style.paddingRight=
@@ -2227,27 +2227,27 @@ function(){this.chromelessResize(!0)}));this.actions.get("zoomIn").funct=mxUtils
function(b){this.actions.get("previousPage").funct();mxEvent.consume(b)}),Editor.previousImage,mxResources.get("previousPage")),k=document.createElement("div");k.style.fontFamily=Editor.defaultHtmlFont;k.style.display="inline-block";k.style.verticalAlign="top";k.style.fontWeight="bold";k.style.marginTop="8px";k.style.fontSize="14px";k.style.color=mxClient.IS_IE||mxClient.IS_IE11?"#000000":"#ffffff";this.chromelessToolbar.appendChild(k);var g=l(mxUtils.bind(this,function(b){this.actions.get("nextPage").funct();
mxEvent.consume(b)}),Editor.nextImage,mxResources.get("nextPage")),p=mxUtils.bind(this,function(){null!=this.pages&&1<this.pages.length&&null!=this.currentPage&&(k.innerHTML="",mxUtils.write(k,mxUtils.indexOf(this.pages,this.currentPage)+1+" / "+this.pages.length))});d.style.paddingLeft="0px";d.style.paddingRight="4px";g.style.paddingLeft="4px";g.style.paddingRight="0px";var m=mxUtils.bind(this,function(){null!=this.pages&&1<this.pages.length&&null!=this.currentPage?(g.style.display="",d.style.display=
"",k.style.display="inline-block"):(g.style.display="none",d.style.display="none",k.style.display="none");p()});this.editor.addListener("resetGraphView",m);this.editor.addListener("pageSelected",p)}l(mxUtils.bind(this,function(b){this.actions.get("zoomOut").funct();mxEvent.consume(b)}),Editor.zoomOutImage,mxResources.get("zoomOut")+" (Alt+Mousewheel)");l(mxUtils.bind(this,function(b){this.actions.get("zoomIn").funct();mxEvent.consume(b)}),Editor.zoomInImage,mxResources.get("zoomIn")+" (Alt+Mousewheel)");
-l(mxUtils.bind(this,function(d){b.isLightboxView()?(1==b.view.scale?this.lightboxFit():b.zoomTo(1),this.chromelessResize(!1)):this.chromelessResize(!0);mxEvent.consume(d)}),Editor.zoomFitImage,mxResources.get("fit"));var v=null,u=null,t=mxUtils.bind(this,function(b){null!=v&&(window.clearTimeout(v),v=null);null!=u&&(window.clearTimeout(u),u=null);v=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(this.chromelessToolbar,0);v=null;u=window.setTimeout(mxUtils.bind(this,function(){this.chromelessToolbar.style.display=
-"none";u=null}),600)}),b||200)}),z=mxUtils.bind(this,function(b){null!=v&&(window.clearTimeout(v),v=null);null!=u&&(window.clearTimeout(u),u=null);this.chromelessToolbar.style.display="";mxUtils.setOpacity(this.chromelessToolbar,b||30)});if("1"==urlParams.layers){this.layersDialog=null;var y=l(mxUtils.bind(this,function(d){if(null!=this.layersDialog)this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null;else{this.layersDialog=b.createLayersDialog(null,!0);mxEvent.addListener(this.layersDialog,
+l(mxUtils.bind(this,function(d){b.isLightboxView()?(1==b.view.scale?this.lightboxFit():b.zoomTo(1),this.chromelessResize(!1)):this.chromelessResize(!0);mxEvent.consume(d)}),Editor.zoomFitImage,mxResources.get("fit"));var u=null,v=null,t=mxUtils.bind(this,function(b){null!=u&&(window.clearTimeout(u),u=null);null!=v&&(window.clearTimeout(v),v=null);u=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(this.chromelessToolbar,0);u=null;v=window.setTimeout(mxUtils.bind(this,function(){this.chromelessToolbar.style.display=
+"none";v=null}),600)}),b||200)}),z=mxUtils.bind(this,function(b){null!=u&&(window.clearTimeout(u),u=null);null!=v&&(window.clearTimeout(v),v=null);this.chromelessToolbar.style.display="";mxUtils.setOpacity(this.chromelessToolbar,b||30)});if("1"==urlParams.layers){this.layersDialog=null;var y=l(mxUtils.bind(this,function(d){if(null!=this.layersDialog)this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null;else{this.layersDialog=b.createLayersDialog(null,!0);mxEvent.addListener(this.layersDialog,
"mouseleave",mxUtils.bind(this,function(){this.layersDialog.parentNode.removeChild(this.layersDialog);this.layersDialog=null}));var c=y.getBoundingClientRect();mxUtils.setPrefixedStyle(this.layersDialog.style,"borderRadius","5px");this.layersDialog.style.position="fixed";this.layersDialog.style.fontFamily=Editor.defaultHtmlFont;this.layersDialog.style.width="160px";this.layersDialog.style.padding="4px 2px 4px 2px";this.layersDialog.style.left=c.left+"px";this.layersDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+
this.chromelessToolbar.offsetHeight+4+"px";mxClient.IS_IE||mxClient.IS_IE11?(this.layersDialog.style.backgroundColor="#ffffff",this.layersDialog.style.border="2px solid black",this.layersDialog.style.color="#000000"):(this.layersDialog.style.backgroundColor="#000000",this.layersDialog.style.color="#ffffff",mxUtils.setOpacity(this.layersDialog,80));c=mxUtils.getCurrentStyle(this.editor.graph.container);this.layersDialog.style.zIndex=c.zIndex;document.body.appendChild(this.layersDialog);this.editor.fireEvent(new mxEventObject("layersDialogShown"))}mxEvent.consume(d)}),
-Editor.layersImage,mxResources.get("layers")),F=b.getModel();F.addListener(mxEvent.CHANGE,function(){y.style.display=1<F.getChildCount(F.root)?"":"none"})}("1"!=urlParams.openInSameWin||navigator.standalone)&&this.addChromelessToolbarItems(l);null==this.editor.editButtonLink&&null==this.editor.editButtonFunc||l(mxUtils.bind(this,function(d){null!=this.editor.editButtonFunc?this.editor.editButtonFunc():"_blank"==this.editor.editButtonLink?this.editor.editAsNew(this.getEditBlankXml()):b.openLink(this.editor.editButtonLink,
+Editor.layersImage,mxResources.get("layers")),I=b.getModel();I.addListener(mxEvent.CHANGE,function(){y.style.display=1<I.getChildCount(I.root)?"":"none"})}("1"!=urlParams.openInSameWin||navigator.standalone)&&this.addChromelessToolbarItems(l);null==this.editor.editButtonLink&&null==this.editor.editButtonFunc||l(mxUtils.bind(this,function(d){null!=this.editor.editButtonFunc?this.editor.editButtonFunc():"_blank"==this.editor.editButtonLink?this.editor.editAsNew(this.getEditBlankXml()):b.openLink(this.editor.editButtonLink,
"editWindow");mxEvent.consume(d)}),Editor.editImage,mxResources.get("edit"));if(null!=this.lightboxToolbarActions)for(m=0;m<this.lightboxToolbarActions.length;m++){var D=this.lightboxToolbarActions[m];D.elem=l(D.fn,D.icon,D.tooltip)}null!=n.refreshBtn&&l(mxUtils.bind(this,function(b){n.refreshBtn.url?window.location.href=n.refreshBtn.url:window.location.reload();mxEvent.consume(b)}),Editor.refreshImage,mxResources.get("refresh",null,"Refresh"));null!=n.fullscreenBtn&&window.self!==window.top&&l(mxUtils.bind(this,
function(d){n.fullscreenBtn.url?b.openLink(n.fullscreenBtn.url):b.openLink(window.location.href);mxEvent.consume(d)}),Editor.fullscreenImage,mxResources.get("openInNewWindow",null,"Open in New Window"));(n.closeBtn&&window.self===window.top||b.lightbox&&("1"==urlParams.close||this.container!=document.body))&&l(mxUtils.bind(this,function(b){"1"==urlParams.close||n.closeBtn?window.close():(this.destroy(),mxEvent.consume(b))}),Editor.closeImage,mxResources.get("close")+" (Escape)");this.chromelessToolbar.style.display=
"none";b.isViewer()||mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transform","translate(-50%,0)");b.container.appendChild(this.chromelessToolbar);mxEvent.addListener(b.container,mxClient.IS_POINTER?"pointermove":"mousemove",mxUtils.bind(this,function(b){mxEvent.isTouchEvent(b)||(mxEvent.isShiftDown(b)||z(30),t())}));mxEvent.addListener(this.chromelessToolbar,mxClient.IS_POINTER?"pointermove":"mousemove",function(b){mxEvent.consume(b)});mxEvent.addListener(this.chromelessToolbar,"mouseenter",
-mxUtils.bind(this,function(d){b.tooltipHandler.resetTimer();b.tooltipHandler.hideTooltip();mxEvent.isShiftDown(d)?t():z(100)}));mxEvent.addListener(this.chromelessToolbar,"mousemove",mxUtils.bind(this,function(b){mxEvent.isShiftDown(b)?t():z(100);mxEvent.consume(b)}));mxEvent.addListener(this.chromelessToolbar,"mouseleave",mxUtils.bind(this,function(b){mxEvent.isTouchEvent(b)||z(30)}));var E=b.getTolerance();b.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(d,c){this.startX=
-c.getGraphX();this.startY=c.getGraphY();this.scrollLeft=b.container.scrollLeft;this.scrollTop=b.container.scrollTop},mouseMove:function(b,d){},mouseUp:function(d,c){mxEvent.isTouchEvent(c.getEvent())&&Math.abs(this.scrollLeft-b.container.scrollLeft)<E&&Math.abs(this.scrollTop-b.container.scrollTop)<E&&Math.abs(this.startX-c.getGraphX())<E&&Math.abs(this.startY-c.getGraphY())<E&&(0<parseFloat(e.chromelessToolbar.style.opacity||0)?t():z(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var H=
-b.view.validate;b.view.validate=function(){if(null!=this.graph.container&&mxUtils.hasScrollbars(this.graph.container)){var b=this.graph.getPagePadding(),d=this.graph.getPageSize();this.translate.x=b.x-(this.x0||0)*d.width;this.translate.y=b.y-(this.y0||0)*d.height}H.apply(this,arguments)};if(!b.isViewer()){var N=b.sizeDidChange;b.sizeDidChange=function(){if(null!=this.container&&mxUtils.hasScrollbars(this.container)){var d=this.getPageLayout(),c=this.getPagePadding(),g=this.getPageSize(),k=Math.ceil(2*
-c.x+d.width*g.width),e=Math.ceil(2*c.y+d.height*g.height),f=b.minimumGraphSize;if(null==f||f.width!=k||f.height!=e)b.minimumGraphSize=new mxRectangle(0,0,k,e);k=c.x-d.x*g.width;c=c.y-d.y*g.height;this.autoTranslate||this.view.translate.x==k&&this.view.translate.y==c?N.apply(this,arguments):(this.autoTranslate=!0,this.view.x0=d.x,this.view.y0=d.y,d=b.view.translate.x,g=b.view.translate.y,b.view.setTranslate(k,c),b.container.scrollLeft+=Math.round((k-d)*b.view.scale),b.container.scrollTop+=Math.round((c-
-g)*b.view.scale),this.autoTranslate=!1)}else this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",this.getGraphBounds()))}}}var A=b.view.getBackgroundPane(),G=b.view.getDrawPane();b.cumulativeZoomFactor=1;var I=null,L=null,M=null,K=null,P=null,T=function(d){null!=I&&window.clearTimeout(I);window.setTimeout(function(){if(!b.isMouseDown||K)I=window.setTimeout(mxUtils.bind(this,function(){b.isFastZoomEnabled()&&(null!=b.view.backgroundPageShape&&null!=b.view.backgroundPageShape.node&&(mxUtils.setPrefixedStyle(b.view.backgroundPageShape.node.style,
-"transform-origin",null),mxUtils.setPrefixedStyle(b.view.backgroundPageShape.node.style,"transform",null)),G.style.transformOrigin="",A.style.transformOrigin="",mxClient.IS_SF?(G.style.transform="scale(1)",A.style.transform="scale(1)",window.setTimeout(function(){G.style.transform="";A.style.transform=""},0)):(G.style.transform="",A.style.transform=""),b.view.getDecoratorPane().style.opacity="",b.view.getOverlayPane().style.opacity="");var d=new mxPoint(b.container.scrollLeft,b.container.scrollTop),
-g=mxUtils.getOffset(b.container),k=b.view.scale,f=0,m=0;null!=L&&(f=b.container.offsetWidth/2-L.x+g.x,m=b.container.offsetHeight/2-L.y+g.y);b.zoom(b.cumulativeZoomFactor,null,20);b.view.scale!=k&&(null!=M&&(f+=d.x-M.x,m+=d.y-M.y),null!=c&&e.chromelessResize(!1,null,f*(b.cumulativeZoomFactor-1),m*(b.cumulativeZoomFactor-1)),!mxUtils.hasScrollbars(b.container)||0==f&&0==m||(b.container.scrollLeft-=f*(b.cumulativeZoomFactor-1),b.container.scrollTop-=m*(b.cumulativeZoomFactor-1)));null!=P&&G.setAttribute("filter",
-P);b.cumulativeZoomFactor=1;P=K=L=M=I=null}),null!=d?d:b.isFastZoomEnabled()?e.wheelZoomDelay:e.lazyZoomDelay)},0)};b.lazyZoom=function(d,c,g,k){k=null!=k?k:this.zoomFactor;(c=c||!b.scrollbars)&&(L=new mxPoint(b.container.offsetLeft+b.container.clientWidth/2,b.container.offsetTop+b.container.clientHeight/2));d?.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=(this.view.scale+.05)/this.view.scale:(this.cumulativeZoomFactor*=k,this.cumulativeZoomFactor=Math.round(this.view.scale*
+mxUtils.bind(this,function(d){b.tooltipHandler.resetTimer();b.tooltipHandler.hideTooltip();mxEvent.isShiftDown(d)?t():z(100)}));mxEvent.addListener(this.chromelessToolbar,"mousemove",mxUtils.bind(this,function(b){mxEvent.isShiftDown(b)?t():z(100);mxEvent.consume(b)}));mxEvent.addListener(this.chromelessToolbar,"mouseleave",mxUtils.bind(this,function(b){mxEvent.isTouchEvent(b)||z(30)}));var F=b.getTolerance();b.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(d,c){this.startX=
+c.getGraphX();this.startY=c.getGraphY();this.scrollLeft=b.container.scrollLeft;this.scrollTop=b.container.scrollTop},mouseMove:function(b,d){},mouseUp:function(d,c){mxEvent.isTouchEvent(c.getEvent())&&Math.abs(this.scrollLeft-b.container.scrollLeft)<F&&Math.abs(this.scrollTop-b.container.scrollTop)<F&&Math.abs(this.startX-c.getGraphX())<F&&Math.abs(this.startY-c.getGraphY())<F&&(0<parseFloat(e.chromelessToolbar.style.opacity||0)?t():z(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var E=
+b.view.validate;b.view.validate=function(){if(null!=this.graph.container&&mxUtils.hasScrollbars(this.graph.container)){var b=this.graph.getPagePadding(),d=this.graph.getPageSize();this.translate.x=b.x-(this.x0||0)*d.width;this.translate.y=b.y-(this.y0||0)*d.height}E.apply(this,arguments)};if(!b.isViewer()){var O=b.sizeDidChange;b.sizeDidChange=function(){if(null!=this.container&&mxUtils.hasScrollbars(this.container)){var d=this.getPageLayout(),c=this.getPagePadding(),g=this.getPageSize(),k=Math.ceil(2*
+c.x+d.width*g.width),e=Math.ceil(2*c.y+d.height*g.height),f=b.minimumGraphSize;if(null==f||f.width!=k||f.height!=e)b.minimumGraphSize=new mxRectangle(0,0,k,e);k=c.x-d.x*g.width;c=c.y-d.y*g.height;this.autoTranslate||this.view.translate.x==k&&this.view.translate.y==c?O.apply(this,arguments):(this.autoTranslate=!0,this.view.x0=d.x,this.view.y0=d.y,d=b.view.translate.x,g=b.view.translate.y,b.view.setTranslate(k,c),b.container.scrollLeft+=Math.round((k-d)*b.view.scale),b.container.scrollTop+=Math.round((c-
+g)*b.view.scale),this.autoTranslate=!1)}else this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",this.getGraphBounds()))}}}var B=b.view.getBackgroundPane(),G=b.view.getDrawPane();b.cumulativeZoomFactor=1;var H=null,L=null,N=null,M=null,P=null,V=function(d){null!=H&&window.clearTimeout(H);window.setTimeout(function(){if(!b.isMouseDown||M)H=window.setTimeout(mxUtils.bind(this,function(){b.isFastZoomEnabled()&&(null!=b.view.backgroundPageShape&&null!=b.view.backgroundPageShape.node&&(mxUtils.setPrefixedStyle(b.view.backgroundPageShape.node.style,
+"transform-origin",null),mxUtils.setPrefixedStyle(b.view.backgroundPageShape.node.style,"transform",null)),G.style.transformOrigin="",B.style.transformOrigin="",mxClient.IS_SF?(G.style.transform="scale(1)",B.style.transform="scale(1)",window.setTimeout(function(){G.style.transform="";B.style.transform=""},0)):(G.style.transform="",B.style.transform=""),b.view.getDecoratorPane().style.opacity="",b.view.getOverlayPane().style.opacity="");var d=new mxPoint(b.container.scrollLeft,b.container.scrollTop),
+g=mxUtils.getOffset(b.container),k=b.view.scale,f=0,m=0;null!=L&&(f=b.container.offsetWidth/2-L.x+g.x,m=b.container.offsetHeight/2-L.y+g.y);b.zoom(b.cumulativeZoomFactor,null,20);b.view.scale!=k&&(null!=N&&(f+=d.x-N.x,m+=d.y-N.y),null!=c&&e.chromelessResize(!1,null,f*(b.cumulativeZoomFactor-1),m*(b.cumulativeZoomFactor-1)),!mxUtils.hasScrollbars(b.container)||0==f&&0==m||(b.container.scrollLeft-=f*(b.cumulativeZoomFactor-1),b.container.scrollTop-=m*(b.cumulativeZoomFactor-1)));null!=P&&G.setAttribute("filter",
+P);b.cumulativeZoomFactor=1;P=M=L=N=H=null}),null!=d?d:b.isFastZoomEnabled()?e.wheelZoomDelay:e.lazyZoomDelay)},0)};b.lazyZoom=function(d,c,g,k){k=null!=k?k:this.zoomFactor;(c=c||!b.scrollbars)&&(L=new mxPoint(b.container.offsetLeft+b.container.clientWidth/2,b.container.offsetTop+b.container.clientHeight/2));d?.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=(this.view.scale+.05)/this.view.scale:(this.cumulativeZoomFactor*=k,this.cumulativeZoomFactor=Math.round(this.view.scale*
this.cumulativeZoomFactor*100)/100/this.view.scale):.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=(this.view.scale-.05)/this.view.scale:(this.cumulativeZoomFactor/=k,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100/this.view.scale);this.cumulativeZoomFactor=Math.max(.05,Math.min(this.view.scale*this.cumulativeZoomFactor,160))/this.view.scale;b.isFastZoomEnabled()&&(null==P&&""!=G.getAttribute("filter")&&(P=G.getAttribute("filter"),
-G.removeAttribute("filter")),M=new mxPoint(b.container.scrollLeft,b.container.scrollTop),d=c||null==L?b.container.scrollLeft+b.container.clientWidth/2:L.x+b.container.scrollLeft-b.container.offsetLeft,k=c||null==L?b.container.scrollTop+b.container.clientHeight/2:L.y+b.container.scrollTop-b.container.offsetTop,G.style.transformOrigin=d+"px "+k+"px",G.style.transform="scale("+this.cumulativeZoomFactor+")",A.style.transformOrigin=d+"px "+k+"px",A.style.transform="scale("+this.cumulativeZoomFactor+")",
+G.removeAttribute("filter")),N=new mxPoint(b.container.scrollLeft,b.container.scrollTop),d=c||null==L?b.container.scrollLeft+b.container.clientWidth/2:L.x+b.container.scrollLeft-b.container.offsetLeft,k=c||null==L?b.container.scrollTop+b.container.clientHeight/2:L.y+b.container.scrollTop-b.container.offsetTop,G.style.transformOrigin=d+"px "+k+"px",G.style.transform="scale("+this.cumulativeZoomFactor+")",B.style.transformOrigin=d+"px "+k+"px",B.style.transform="scale("+this.cumulativeZoomFactor+")",
null!=b.view.backgroundPageShape&&null!=b.view.backgroundPageShape.node&&(d=b.view.backgroundPageShape.node,mxUtils.setPrefixedStyle(d.style,"transform-origin",(c||null==L?b.container.clientWidth/2+b.container.scrollLeft-d.offsetLeft+"px":L.x+b.container.scrollLeft-d.offsetLeft-b.container.offsetLeft+"px")+" "+(c||null==L?b.container.clientHeight/2+b.container.scrollTop-d.offsetTop+"px":L.y+b.container.scrollTop-d.offsetTop-b.container.offsetTop+"px")),mxUtils.setPrefixedStyle(d.style,"transform",
-"scale("+this.cumulativeZoomFactor+")")),b.view.getDecoratorPane().style.opacity="0",b.view.getOverlayPane().style.opacity="0",null!=e.hoverIcons&&e.hoverIcons.reset());T(g)};mxEvent.addGestureListeners(b.container,function(b){null!=I&&window.clearTimeout(I)},null,function(d){1!=b.cumulativeZoomFactor&&T(0)});mxEvent.addListener(b.container,"scroll",function(d){null==I||b.isMouseDown||1==b.cumulativeZoomFactor||T(0)});mxEvent.addMouseWheelListener(mxUtils.bind(this,function(d,c,g,k,e){b.fireEvent(new mxEventObject("wheel"));
-if(null==this.dialogs||0==this.dialogs.length)if(!b.scrollbars&&!g&&b.isScrollWheelEvent(d))g=b.view.getTranslate(),k=40/b.view.scale,mxEvent.isShiftDown(d)?b.view.setTranslate(g.x+(c?-k:k),g.y):b.view.setTranslate(g.x,g.y+(c?k:-k));else if(g||b.isZoomWheelEvent(d))for(var f=mxEvent.getSource(d);null!=f;){if(f==b.container)return b.tooltipHandler.hideTooltip(),L=null!=k&&null!=e?new mxPoint(k,e):new mxPoint(mxEvent.getClientX(d),mxEvent.getClientY(d)),K=g,g=b.zoomFactor,null!=d.deltaY&&40>Math.abs(d.deltaY)&&
+"scale("+this.cumulativeZoomFactor+")")),b.view.getDecoratorPane().style.opacity="0",b.view.getOverlayPane().style.opacity="0",null!=e.hoverIcons&&e.hoverIcons.reset());V(g)};mxEvent.addGestureListeners(b.container,function(b){null!=H&&window.clearTimeout(H)},null,function(d){1!=b.cumulativeZoomFactor&&V(0)});mxEvent.addListener(b.container,"scroll",function(d){null==H||b.isMouseDown||1==b.cumulativeZoomFactor||V(0)});mxEvent.addMouseWheelListener(mxUtils.bind(this,function(d,c,g,k,e){b.fireEvent(new mxEventObject("wheel"));
+if(null==this.dialogs||0==this.dialogs.length)if(!b.scrollbars&&!g&&b.isScrollWheelEvent(d))g=b.view.getTranslate(),k=40/b.view.scale,mxEvent.isShiftDown(d)?b.view.setTranslate(g.x+(c?-k:k),g.y):b.view.setTranslate(g.x,g.y+(c?k:-k));else if(g||b.isZoomWheelEvent(d))for(var f=mxEvent.getSource(d);null!=f;){if(f==b.container)return b.tooltipHandler.hideTooltip(),L=null!=k&&null!=e?new mxPoint(k,e):new mxPoint(mxEvent.getClientX(d),mxEvent.getClientY(d)),M=g,g=b.zoomFactor,null!=d.deltaY&&40>Math.abs(d.deltaY)&&
Math.round(d.deltaY)!=d.deltaY&&(g=1+Math.abs(d.deltaY)/20*(g-1)),b.lazyZoom(c,null,null,g),mxEvent.consume(d),!1;f=f.parentNode}}),b.container);b.panningHandler.zoomGraph=function(d){b.cumulativeZoomFactor=d.scale;b.lazyZoom(0<d.scale,!0);mxEvent.consume(d)}};EditorUi.prototype.addChromelessToolbarItems=function(b){b(mxUtils.bind(this,function(b){this.actions.get("print").funct();mxEvent.consume(b)}),Editor.printImage,mxResources.get("print"))};
EditorUi.prototype.isPagesEnabled=function(){return this.editor.editable||"1"!=urlParams["hide-pages"]};EditorUi.prototype.createTemporaryGraph=function(b){return Graph.createOffscreenGraph(b)};EditorUi.prototype.addChromelessClickHandler=function(){var b=urlParams.highlight;null!=b&&0<b.length&&(b="#"+b);this.editor.graph.addClickHandler(b)};
EditorUi.prototype.toggleFormatPanel=function(b){b=null!=b?b:0==this.formatWidth;null!=this.format&&(this.formatWidth=b?240:0,this.formatContainer.style.display=b?"":"none",this.refresh(),this.format.refresh(),this.fireEvent(new mxEventObject("formatWidthChanged")))};
@@ -2296,7 +2296,7 @@ EditorUi.prototype.createFooter=function(){return this.createDiv("geFooter")};Ed
EditorUi.prototype.addSplitHandler=function(b,c,e,f){function n(b){if(null!=q){var m=new mxPoint(mxEvent.getClientX(b),mxEvent.getClientY(b));f(Math.max(0,d+(c?m.x-q.x:q.y-m.y)-e));mxEvent.consume(b);d!=p()&&(k=!0,g=null)}}function l(b){n(b);q=d=null}var q=null,d=null,k=!0,g=null;mxClient.IS_POINTER&&(b.style.touchAction="none");var p=mxUtils.bind(this,function(){var d=parseInt(c?b.style.left:b.style.bottom);c||(d=d+e-this.footerHeight);return d});mxEvent.addGestureListeners(b,function(b){q=new mxPoint(mxEvent.getClientX(b),
mxEvent.getClientY(b));d=p();k=!1;mxEvent.consume(b)});mxEvent.addListener(b,"click",mxUtils.bind(this,function(b){if(!k&&this.hsplitClickEnabled){var d=null!=g?g-e:0;g=p();f(d);mxEvent.consume(b)}}));mxEvent.addGestureListeners(document,null,n,l);this.destroyFunctions.push(function(){mxEvent.removeGestureListeners(document,null,n,l)})};
EditorUi.prototype.handleError=function(b,c,e,f,n){b=null!=b&&null!=b.error?b.error:b;if(null!=b||null!=c){n=mxUtils.htmlEntities(mxResources.get("unknownError"));var l=mxResources.get("ok");c=null!=c?c:mxResources.get("error");null!=b&&null!=b.message&&(n=mxUtils.htmlEntities(b.message));this.showError(c,n,l,e,null,null,null,null,null,null,null,null,f?e:null)}else null!=e&&e()};
-EditorUi.prototype.showError=function(b,c,e,f,n,l,q,d,k,g,p,m,v){b=new ErrorDialog(this,b,c,e||mxResources.get("ok"),f,n,l,q,m,d,k);c=Math.ceil(null!=c?c.length/50:1);this.showDialog(b.container,g||340,p||100+20*c,!0,!1,v);b.init()};EditorUi.prototype.showDialog=function(b,c,e,f,n,l,q,d,k,g){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,b,c,e,f,n,l,q,d,k,g);this.dialogs.push(this.dialog)};
+EditorUi.prototype.showError=function(b,c,e,f,n,l,q,d,k,g,p,m,u){b=new ErrorDialog(this,b,c,e||mxResources.get("ok"),f,n,l,q,m,d,k);c=Math.ceil(null!=c?c.length/50:1);this.showDialog(b.container,g||340,p||100+20*c,!0,!1,u);b.init()};EditorUi.prototype.showDialog=function(b,c,e,f,n,l,q,d,k,g){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,b,c,e,f,n,l,q,d,k,g);this.dialogs.push(this.dialog)};
EditorUi.prototype.hideDialog=function(b,c,e){null!=this.dialogs&&0<this.dialogs.length&&(null==e||e==this.dialog.container.firstChild)&&(e=this.dialogs.pop(),0==e.close(b,c)?this.dialogs.push(e):(this.dialog=0<this.dialogs.length?this.dialogs[this.dialogs.length-1]:null,this.editor.fireEvent(new mxEventObject("hideDialog")),null==this.dialog&&"hidden"!=this.editor.graph.container.style.visibility&&window.setTimeout(mxUtils.bind(this,function(){this.editor.graph.isEditing()&&null!=this.editor.graph.cellEditor.textarea?
this.editor.graph.cellEditor.textarea.focus():(mxUtils.clearSelection(),this.editor.graph.container.focus())}),0)))};EditorUi.prototype.ctrlEnter=function(){var b=this.editor.graph;if(b.isEnabled())try{for(var c=b.getSelectionCells(),e=new mxDictionary,f=[],n=0;n<c.length;n++){var l=b.isTableCell(c[n])?b.model.getParent(c[n]):c[n];null==l||e.get(l)||(e.put(l,!0),f.push(l))}b.setSelectionCells(b.duplicateCells(f,!1))}catch(q){this.handleError(q)}};
EditorUi.prototype.pickColor=function(b,c){var e=this.editor.graph,f=e.cellEditor.saveSelection(),n=230+17*(Math.ceil(ColorDialog.prototype.presetColors.length/12)+Math.ceil(ColorDialog.prototype.defaultColors.length/12)),l=new ColorDialog(this,mxUtils.rgba2hex(b)||"none",function(b){e.cellEditor.restoreSelection(f);c(b)},function(){e.cellEditor.restoreSelection(f)});this.showDialog(l.container,230,n,!0,!1);l.init()};
@@ -2343,33 +2343,33 @@ mxGraphView.prototype.setUnit=function(b){this.unit!=b&&(this.unit=b,this.fireEv
mxImageShape.prototype.getImageDataUri=function(){var b=this.image;if("data:image/svg+xml;base64,"==b.substring(0,26)&&null!=this.style&&"1"==mxUtils.getValue(this.style,"clipSvg","0")){if(null==this.clippedSvg||this.clippedImage!=b)this.clippedSvg=Graph.clipSvgDataUri(b,!0),this.clippedImage=b;b=this.clippedSvg}return b};
Graph=function(b,c,e,f,n,l){mxGraph.call(this,b,c,e,f);this.themes=n||this.defaultThemes;this.currentEdgeStyle=mxUtils.clone(this.defaultEdgeStyle);this.currentVertexStyle=mxUtils.clone(this.defaultVertexStyle);this.standalone=null!=l?l:!1;b=this.baseUrl;c=b.indexOf("//");this.domainPathUrl=this.domainUrl="";0<c&&(c=b.indexOf("/",c+2),0<c&&(this.domainUrl=b.substring(0,c)),c=b.lastIndexOf("/"),0<c&&(this.domainPathUrl=b.substring(0,c+1)));this.isHtmlLabel=function(b){b=this.getCurrentCellStyle(b);
return null!=b?"1"==b.html||"wrap"==b[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.edgeMode){var q=null,d=null,k=null,g=null,p=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(b,c){if("mouseDown"==c.getProperty("eventName")&&this.isEnabled()){var e=c.getProperty("event"),f=e.getState(),l=this.view.scale;if(!mxEvent.isAltDown(e.getEvent())&&null!=f)if(this.model.isEdge(f.cell))if(q=new mxPoint(e.getGraphX(),e.getGraphY()),p=this.isCellSelected(f.cell),k=f,d=e,null!=f.text&&null!=
-f.text.boundingBox&&mxUtils.contains(f.text.boundingBox,e.getGraphX(),e.getGraphY()))g=mxEvent.LABEL_HANDLE;else{var m=this.selectionCellsHandler.getHandler(f.cell);null!=m&&null!=m.bends&&0<m.bends.length&&(g=m.getHandleForEvent(e))}else if(!this.panningHandler.isActive()&&!mxEvent.isControlDown(e.getEvent())&&(m=this.selectionCellsHandler.getHandler(f.cell),null==m||null==m.getHandleForEvent(e))){var x=new mxRectangle(e.getGraphX()-1,e.getGraphY()-1),v=mxEvent.isTouchEvent(e.getEvent())?mxShape.prototype.svgStrokeTolerance-
-1:(mxShape.prototype.svgStrokeTolerance+2)/2,m=v+2;x.grow(v);if(this.isTableCell(f.cell)&&!this.isCellSelected(f.cell)&&!(mxUtils.contains(f,e.getGraphX()-m,e.getGraphY()-m)&&mxUtils.contains(f,e.getGraphX()-m,e.getGraphY()+m)&&mxUtils.contains(f,e.getGraphX()+m,e.getGraphY()+m)&&mxUtils.contains(f,e.getGraphX()+m,e.getGraphY()-m))){var n=this.model.getParent(f.cell),m=this.model.getParent(n);if(!this.isCellSelected(m)){var v=v*l,t=2*v;if(this.model.getChildAt(m,0)!=n&&mxUtils.intersects(x,new mxRectangle(f.x,
-f.y-v,f.width,t))||this.model.getChildAt(n,0)!=f.cell&&mxUtils.intersects(x,new mxRectangle(f.x-v,f.y,t,f.height))||mxUtils.intersects(x,new mxRectangle(f.x,f.y+f.height-v,f.width,t))||mxUtils.intersects(x,new mxRectangle(f.x+f.width-v,f.y,t,f.height)))n=this.selectionCellsHandler.isHandled(m),this.selectCellForEvent(m,e.getEvent()),m=this.selectionCellsHandler.getHandler(m),null!=m&&(v=m.getHandleForEvent(e),null!=v&&(m.start(e.getGraphX(),e.getGraphY(),v),m.blockDelayedSelection=!n,e.consume()))}}for(;!e.isConsumed()&&
-null!=f&&(this.isTableCell(f.cell)||this.isTableRow(f.cell)||this.isTable(f.cell));)this.isSwimlane(f.cell)&&(m=this.getActualStartSize(f.cell),(0<m.x||0<m.width)&&mxUtils.intersects(x,new mxRectangle(f.x+(m.x-m.width-1)*l+(0==m.x?f.width:0),f.y,1,f.height))||(0<m.y||0<m.height)&&mxUtils.intersects(x,new mxRectangle(f.x,f.y+(m.y-m.height-1)*l+(0==m.y?f.height:0),f.width,1)))&&(this.selectCellForEvent(f.cell,e.getEvent()),m=this.selectionCellsHandler.getHandler(f.cell),null!=m&&(v=mxEvent.CUSTOM_HANDLE-
-m.customHandles.length+1,m.start(e.getGraphX(),e.getGraphY(),v),e.consume())),f=this.view.getState(this.model.getParent(f.cell))}}}));this.addMouseListener({mouseDown:function(b,d){},mouseMove:mxUtils.bind(this,function(b,c){var e=this.selectionCellsHandler.handlers.map,f;for(f in e)if(null!=e[f].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(c.getEvent())){var l=this.tolerance;if(null!=q&&null!=k&&null!=d){if(e=k,Math.abs(q.x-c.getGraphX())>l||Math.abs(q.y-
+f.text.boundingBox&&mxUtils.contains(f.text.boundingBox,e.getGraphX(),e.getGraphY()))g=mxEvent.LABEL_HANDLE;else{var m=this.selectionCellsHandler.getHandler(f.cell);null!=m&&null!=m.bends&&0<m.bends.length&&(g=m.getHandleForEvent(e))}else if(!this.panningHandler.isActive()&&!mxEvent.isControlDown(e.getEvent())&&(m=this.selectionCellsHandler.getHandler(f.cell),null==m||null==m.getHandleForEvent(e))){var x=new mxRectangle(e.getGraphX()-1,e.getGraphY()-1),u=mxEvent.isTouchEvent(e.getEvent())?mxShape.prototype.svgStrokeTolerance-
+1:(mxShape.prototype.svgStrokeTolerance+2)/2,m=u+2;x.grow(u);if(this.isTableCell(f.cell)&&!this.isCellSelected(f.cell)&&!(mxUtils.contains(f,e.getGraphX()-m,e.getGraphY()-m)&&mxUtils.contains(f,e.getGraphX()-m,e.getGraphY()+m)&&mxUtils.contains(f,e.getGraphX()+m,e.getGraphY()+m)&&mxUtils.contains(f,e.getGraphX()+m,e.getGraphY()-m))){var n=this.model.getParent(f.cell),m=this.model.getParent(n);if(!this.isCellSelected(m)){var u=u*l,t=2*u;if(this.model.getChildAt(m,0)!=n&&mxUtils.intersects(x,new mxRectangle(f.x,
+f.y-u,f.width,t))||this.model.getChildAt(n,0)!=f.cell&&mxUtils.intersects(x,new mxRectangle(f.x-u,f.y,t,f.height))||mxUtils.intersects(x,new mxRectangle(f.x,f.y+f.height-u,f.width,t))||mxUtils.intersects(x,new mxRectangle(f.x+f.width-u,f.y,t,f.height)))n=this.selectionCellsHandler.isHandled(m),this.selectCellForEvent(m,e.getEvent()),m=this.selectionCellsHandler.getHandler(m),null!=m&&(u=m.getHandleForEvent(e),null!=u&&(m.start(e.getGraphX(),e.getGraphY(),u),m.blockDelayedSelection=!n,e.consume()))}}for(;!e.isConsumed()&&
+null!=f&&(this.isTableCell(f.cell)||this.isTableRow(f.cell)||this.isTable(f.cell));)this.isSwimlane(f.cell)&&(m=this.getActualStartSize(f.cell),(0<m.x||0<m.width)&&mxUtils.intersects(x,new mxRectangle(f.x+(m.x-m.width-1)*l+(0==m.x?f.width:0),f.y,1,f.height))||(0<m.y||0<m.height)&&mxUtils.intersects(x,new mxRectangle(f.x,f.y+(m.y-m.height-1)*l+(0==m.y?f.height:0),f.width,1)))&&(this.selectCellForEvent(f.cell,e.getEvent()),m=this.selectionCellsHandler.getHandler(f.cell),null!=m&&(u=mxEvent.CUSTOM_HANDLE-
+m.customHandles.length+1,m.start(e.getGraphX(),e.getGraphY(),u),e.consume())),f=this.view.getState(this.model.getParent(f.cell))}}}));this.addMouseListener({mouseDown:function(b,d){},mouseMove:mxUtils.bind(this,function(b,c){var e=this.selectionCellsHandler.handlers.map,f;for(f in e)if(null!=e[f].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(c.getEvent())){var l=this.tolerance;if(null!=q&&null!=k&&null!=d){if(e=k,Math.abs(q.x-c.getGraphX())>l||Math.abs(q.y-
c.getGraphY())>l){var m=this.selectionCellsHandler.getHandler(e.cell);null==m&&this.model.isEdge(e.cell)&&(m=this.createHandler(e));if(null!=m&&null!=m.bends&&0<m.bends.length){f=m.getHandleForEvent(d);var x=this.view.getEdgeStyle(e),l=x==mxEdgeStyle.EntityRelation;p||g!=mxEvent.LABEL_HANDLE||(f=g);if(l&&0!=f&&f!=m.bends.length-1&&f!=mxEvent.LABEL_HANDLE)!l||null==e.visibleSourceState&&null==e.visibleTargetState||(this.graphHandler.reset(),c.consume());else if(f==mxEvent.LABEL_HANDLE||0==f||null!=
e.visibleSourceState||f==m.bends.length-1||null!=e.visibleTargetState)l||f==mxEvent.LABEL_HANDLE||(l=e.absolutePoints,null!=l&&(null==x&&null==f||x==mxEdgeStyle.OrthConnector)&&(f=g,null==f&&(f=new mxRectangle(q.x,q.y),f.grow(mxEdgeHandler.prototype.handleImage.width/2),mxUtils.contains(f,l[0].x,l[0].y)?f=0:mxUtils.contains(f,l[l.length-1].x,l[l.length-1].y)?f=m.bends.length-1:null!=x&&(2==l.length||3==l.length&&(0==Math.round(l[0].x-l[1].x)&&0==Math.round(l[1].x-l[2].x)||0==Math.round(l[0].y-l[1].y)&&
0==Math.round(l[1].y-l[2].y)))?f=2:(f=mxUtils.findNearestSegment(e,q.x,q.y),f=null==x?mxEvent.VIRTUAL_HANDLE-f:f+1))),null==f&&(f=mxEvent.VIRTUAL_HANDLE)),m.start(c.getGraphX(),c.getGraphX(),f),c.consume(),this.graphHandler.reset()}null!=m&&(this.selectionCellsHandler.isHandlerActive(m)?this.isCellSelected(e.cell)||(this.selectionCellsHandler.handlers.put(e.cell,m),this.selectCellForEvent(e.cell,c.getEvent())):this.isCellSelected(e.cell)||m.destroy());p=!1;q=d=k=g=null}}else if(e=c.getState(),null!=
e&&this.isCellEditable(e.cell)){m=null;if(this.model.isEdge(e.cell)){if(f=new mxRectangle(c.getGraphX(),c.getGraphY()),f.grow(mxEdgeHandler.prototype.handleImage.width/2),l=e.absolutePoints,null!=l)if(null!=e.text&&null!=e.text.boundingBox&&mxUtils.contains(e.text.boundingBox,c.getGraphX(),c.getGraphY()))m="move";else if(mxUtils.contains(f,l[0].x,l[0].y)||mxUtils.contains(f,l[l.length-1].x,l[l.length-1].y))m="pointer";else if(null!=e.visibleSourceState||null!=e.visibleTargetState)f=this.view.getEdgeStyle(e),
m="crosshair",f!=mxEdgeStyle.EntityRelation&&this.isOrthogonal(e)&&(f=mxUtils.findNearestSegment(e,c.getGraphX(),c.getGraphY()),f<l.length-1&&0<=f&&(m=0==Math.round(l[f].x-l[f+1].x)?"col-resize":"row-resize"))}else if(!mxEvent.isControlDown(c.getEvent())){l=mxShape.prototype.svgStrokeTolerance/2;f=new mxRectangle(c.getGraphX(),c.getGraphY());f.grow(l);if(this.isTableCell(e.cell)&&(l=this.model.getParent(e.cell),x=this.model.getParent(l),!this.isCellSelected(x)))if(mxUtils.intersects(f,new mxRectangle(e.x,
-e.y-2,e.width,4))&&this.model.getChildAt(x,0)!=l||mxUtils.intersects(f,new mxRectangle(e.x,e.y+e.height-2,e.width,4)))m="row-resize";else if(mxUtils.intersects(f,new mxRectangle(e.x-2,e.y,4,e.height))&&this.model.getChildAt(l,0)!=e.cell||mxUtils.intersects(f,new mxRectangle(e.x+e.width-2,e.y,4,e.height)))m="col-resize";for(l=e;null==m&&null!=l&&(this.isTableCell(l.cell)||this.isTableRow(l.cell)||this.isTable(l.cell));){if(this.isSwimlane(l.cell)){var x=this.getActualStartSize(l.cell),v=this.view.scale;
-(0<x.x||0<x.width)&&mxUtils.intersects(f,new mxRectangle(l.x+(x.x-x.width-1)*v+(0==x.x?l.width*v:0),l.y,1,l.height))?m="col-resize":(0<x.y||0<x.height)&&mxUtils.intersects(f,new mxRectangle(l.x,l.y+(x.y-x.height-1)*v+(0==x.y?l.height:0),l.width,1))&&(m="row-resize")}l=this.view.getState(this.model.getParent(l.cell))}}null!=m&&e.setCursor(m)}}}),mouseUp:mxUtils.bind(this,function(b,c){g=q=d=k=null})})}this.cellRenderer.minSvgStrokeWidth=.1;this.cellRenderer.getLabelValue=function(b){var d=mxCellRenderer.prototype.getLabelValue.apply(this,
+e.y-2,e.width,4))&&this.model.getChildAt(x,0)!=l||mxUtils.intersects(f,new mxRectangle(e.x,e.y+e.height-2,e.width,4)))m="row-resize";else if(mxUtils.intersects(f,new mxRectangle(e.x-2,e.y,4,e.height))&&this.model.getChildAt(l,0)!=e.cell||mxUtils.intersects(f,new mxRectangle(e.x+e.width-2,e.y,4,e.height)))m="col-resize";for(l=e;null==m&&null!=l&&(this.isTableCell(l.cell)||this.isTableRow(l.cell)||this.isTable(l.cell));){if(this.isSwimlane(l.cell)){var x=this.getActualStartSize(l.cell),u=this.view.scale;
+(0<x.x||0<x.width)&&mxUtils.intersects(f,new mxRectangle(l.x+(x.x-x.width-1)*u+(0==x.x?l.width*u:0),l.y,1,l.height))?m="col-resize":(0<x.y||0<x.height)&&mxUtils.intersects(f,new mxRectangle(l.x,l.y+(x.y-x.height-1)*u+(0==x.y?l.height:0),l.width,1))&&(m="row-resize")}l=this.view.getState(this.model.getParent(l.cell))}}null!=m&&e.setCursor(m)}}}),mouseUp:mxUtils.bind(this,function(b,c){g=q=d=k=null})})}this.cellRenderer.minSvgStrokeWidth=.1;this.cellRenderer.getLabelValue=function(b){var d=mxCellRenderer.prototype.getLabelValue.apply(this,
arguments);b.view.graph.isHtmlLabel(b.cell)&&(d=1!=b.style.html?mxUtils.htmlEntities(d,!1):b.view.graph.sanitizeHtml(d));return d};if("undefined"!==typeof mxVertexHandler){this.setConnectable(!0);this.setDropEnabled(!0);this.setPanning(!0);this.setTooltips(!0);this.setAllowLoops(!0);this.allowAutoPanning=!0;this.constrainChildren=this.resetEdgesOnConnect=!1;this.constrainRelativeChildren=!0;this.graphHandler.scrollOnMove=!1;this.graphHandler.scaleGrid=!0;this.connectionHandler.setCreateTarget(!1);
this.connectionHandler.insertBeforeSource=!0;this.connectionHandler.isValidSource=function(b,d){return!1};this.alternateEdgeStyle="vertical";null==f&&this.loadStylesheet();var m=this.graphHandler.getGuideStates;this.graphHandler.getGuideStates=function(){var b=m.apply(this,arguments);if(this.graph.pageVisible){for(var d=[],c=this.graph.pageFormat,g=this.graph.pageScale,k=c.width*g,c=c.height*g,g=this.graph.view.translate,e=this.graph.view.scale,f=this.graph.getPageLayout(),l=0;l<f.width;l++)d.push(new mxRectangle(((f.x+
l)*k+g.x)*e,(f.y*c+g.y)*e,k*e,c*e));for(l=1;l<f.height;l++)d.push(new mxRectangle((f.x*k+g.x)*e,((f.y+l)*c+g.y)*e,k*e,c*e));b=d.concat(b)}return b};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(b,d){return null==b.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.graphHandler.createPreviewShape=function(b){this.previewColor="#000000"==this.graph.background?"#ffffff":mxGraphHandler.prototype.previewColor;return mxGraphHandler.prototype.createPreviewShape.apply(this,
-arguments)};var v=this.graphHandler.getCells;this.graphHandler.getCells=function(b){for(var d=v.apply(this,arguments),c=new mxDictionary,g=[],k=0;k<d.length;k++){var e=this.graph.isTableCell(b)&&this.graph.isTableCell(d[k])&&this.graph.isCellSelected(d[k])?this.graph.model.getParent(d[k]):this.graph.isTableRow(b)&&this.graph.isTableRow(d[k])&&this.graph.isCellSelected(d[k])?d[k]:this.graph.getCompositeParent(d[k]);null==e||c.get(e)||(c.put(e,!0),g.push(e))}return g};var u=this.graphHandler.start;
-this.graphHandler.start=function(b,d,c,g){var k=!1;this.graph.isTableCell(b)&&(this.graph.isCellSelected(b)?k=!0:b=this.graph.model.getParent(b));k||this.graph.isTableRow(b)&&this.graph.isCellSelected(b)||(b=this.graph.getCompositeParent(b));u.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(b,d){d=this.graph.getCompositeParent(d);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};var t=new mxRubberband(this);this.getRubberband=function(){return t};
-var z=(new Date).getTime(),y=0,F=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var b=this.currentState;F.apply(this,arguments);b!=this.currentState?(z=(new Date).getTime(),y=0):y=(new Date).getTime()-z};var D=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(b){return null!=this.currentState&&b.getState()==this.currentState&&2E3<y||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect",
-"1"))&&D.apply(this,arguments)};var E=this.isToggleEvent;this.isToggleEvent=function(b){return E.apply(this,arguments)||!mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(b)};var H=t.isForceRubberbandEvent;t.isForceRubberbandEvent=function(b){return H.apply(this,arguments)||mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(b.getEvent())||mxUtils.hasScrollbars(this.graph.container)&&mxClient.IS_FF&&mxClient.IS_WIN&&null==b.getState()&&mxEvent.isTouchEvent(b.getEvent())};var N=null;this.panningHandler.addListener(mxEvent.PAN_START,
-mxUtils.bind(this,function(){this.isEnabled()&&(N=this.container.style.cursor,this.container.style.cursor="move")}));this.panningHandler.addListener(mxEvent.PAN_END,mxUtils.bind(this,function(){this.isEnabled()&&(this.container.style.cursor=N)}));this.popupMenuHandler.autoExpand=!0;this.popupMenuHandler.isSelectOnPopup=function(b){return mxEvent.isMouseEvent(b.getEvent())};var A=this.click;this.click=function(b){var d=null==b.state&&null!=b.sourceState&&this.isCellLocked(b.sourceState.cell);if(this.isEnabled()&&
-!d||b.isConsumed())return A.apply(this,arguments);var c=d?b.sourceState.cell:b.getCell();null!=c&&(c=this.getClickableLinkForCell(c),null!=c&&(this.isCustomLink(c)?this.customLinkClicked(c):this.openLink(c)));this.isEnabled()&&d&&this.clearSelection()};this.tooltipHandler.getStateForEvent=function(b){return b.sourceState};var G=this.tooltipHandler.show;this.tooltipHandler.show=function(){G.apply(this,arguments);if(null!=this.div)for(var b=this.div.getElementsByTagName("a"),d=0;d<b.length;d++)null!=
-b[d].getAttribute("href")&&null==b[d].getAttribute("target")&&b[d].setAttribute("target","_blank")};this.tooltipHandler.getStateForEvent=function(b){return b.sourceState};this.getCursorForMouseEvent=function(b){var d=null==b.state&&null!=b.sourceState&&this.isCellLocked(b.sourceState.cell);return this.getCursorForCell(d?b.sourceState.cell:b.getCell())};var I=this.getCursorForCell;this.getCursorForCell=function(b){if(!this.isEnabled()||this.isCellLocked(b)){if(null!=this.getClickableLinkForCell(b))return"pointer";
-if(this.isCellLocked(b))return"default"}return I.apply(this,arguments)};this.selectRegion=function(b,d){var c=mxEvent.isAltDown(d)?b:null,c=this.getCells(b.x,b.y,b.width,b.height,null,null,c,function(b){return"1"==mxUtils.getValue(b.style,"locked","0")},!0);if(this.isToggleEvent(d))for(var g=0;g<c.length;g++)this.selectCellForEvent(c[g],d);else this.selectCellsForEvent(c,d);return c};var L=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=function(b,d,c){return this.graph.isCellSelected(b)?
-!1:L.apply(this,arguments)};this.isCellLocked=function(b){for(;null!=b;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(b),"locked","0"))return!0;b=this.model.getParent(b)}return!1};var M=null;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(b,d){if("mouseDown"==d.getProperty("eventName")){var c=d.getProperty("event").getState();M=null==c||this.isSelectionEmpty()||this.isCellSelected(c.cell)?null:this.getSelectionCells()}}));this.addListener(mxEvent.TAP_AND_HOLD,mxUtils.bind(this,
-function(b,d){if(!mxEvent.isMultiTouchEvent(d)){var c=d.getProperty("event"),g=d.getProperty("cell");null==g?(c=mxUtils.convertPoint(this.container,mxEvent.getClientX(c),mxEvent.getClientY(c)),t.start(c.x,c.y)):null!=M?this.addSelectionCells(M):1<this.getSelectionCount()&&this.isCellSelected(g)&&this.removeSelectionCell(g);M=null;d.consume()}}));this.connectionHandler.selectCells=function(b,d){this.graph.setSelectionCell(d||b)};this.connectionHandler.constraintHandler.isStateIgnored=function(b,d){var c=
-b.view.graph;return d&&(c.isCellSelected(b.cell)||c.isTableRow(b.cell)&&c.selectionCellsHandler.isHandled(c.model.getParent(b.cell)))};this.selectionModel.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var b=this.connectionHandler.constraintHandler;null!=b.currentFocus&&b.isStateIgnored(b.currentFocus,!0)&&(b.currentFocus=null,b.constraints=null,b.destroyIcons());b.destroyFocusHighlight()}));Graph.touchStyle&&this.initTouch();var K=this.updateMouseEvent;this.updateMouseEvent=function(b){b=
-K.apply(this,arguments);null!=b.state&&this.isCellLocked(b.getCell())&&(b.state=null);return b}}this.currentTranslate=new mxPoint(0,0)};Graph.touchStyle=mxClient.IS_TOUCH||mxClient.IS_FF&&mxClient.IS_WIN||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints||null==window.urlParams||"1"==urlParams.touch;Graph.fileSupport=null!=window.File&&null!=window.FileReader&&null!=window.FileList&&(null==window.urlParams||"0"!=urlParams.filesupport);Graph.translateDiagram="1"==urlParams["translate-diagram"];
+arguments)};var u=this.graphHandler.getCells;this.graphHandler.getCells=function(b){for(var d=u.apply(this,arguments),c=new mxDictionary,g=[],k=0;k<d.length;k++){var e=this.graph.isTableCell(b)&&this.graph.isTableCell(d[k])&&this.graph.isCellSelected(d[k])?this.graph.model.getParent(d[k]):this.graph.isTableRow(b)&&this.graph.isTableRow(d[k])&&this.graph.isCellSelected(d[k])?d[k]:this.graph.getCompositeParent(d[k]);null==e||c.get(e)||(c.put(e,!0),g.push(e))}return g};var v=this.graphHandler.start;
+this.graphHandler.start=function(b,d,c,g){var k=!1;this.graph.isTableCell(b)&&(this.graph.isCellSelected(b)?k=!0:b=this.graph.model.getParent(b));k||this.graph.isTableRow(b)&&this.graph.isCellSelected(b)||(b=this.graph.getCompositeParent(b));v.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(b,d){d=this.graph.getCompositeParent(d);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};var t=new mxRubberband(this);this.getRubberband=function(){return t};
+var z=(new Date).getTime(),y=0,I=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var b=this.currentState;I.apply(this,arguments);b!=this.currentState?(z=(new Date).getTime(),y=0):y=(new Date).getTime()-z};var D=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(b){return null!=this.currentState&&b.getState()==this.currentState&&2E3<y||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect",
+"1"))&&D.apply(this,arguments)};var F=this.isToggleEvent;this.isToggleEvent=function(b){return F.apply(this,arguments)||!mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(b)};var E=t.isForceRubberbandEvent;t.isForceRubberbandEvent=function(b){return E.apply(this,arguments)||mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(b.getEvent())||mxUtils.hasScrollbars(this.graph.container)&&mxClient.IS_FF&&mxClient.IS_WIN&&null==b.getState()&&mxEvent.isTouchEvent(b.getEvent())};var O=null;this.panningHandler.addListener(mxEvent.PAN_START,
+mxUtils.bind(this,function(){this.isEnabled()&&(O=this.container.style.cursor,this.container.style.cursor="move")}));this.panningHandler.addListener(mxEvent.PAN_END,mxUtils.bind(this,function(){this.isEnabled()&&(this.container.style.cursor=O)}));this.popupMenuHandler.autoExpand=!0;this.popupMenuHandler.isSelectOnPopup=function(b){return mxEvent.isMouseEvent(b.getEvent())};var B=this.click;this.click=function(b){var d=null==b.state&&null!=b.sourceState&&this.isCellLocked(b.sourceState.cell);if(this.isEnabled()&&
+!d||b.isConsumed())return B.apply(this,arguments);var c=d?b.sourceState.cell:b.getCell();null!=c&&(c=this.getClickableLinkForCell(c),null!=c&&(this.isCustomLink(c)?this.customLinkClicked(c):this.openLink(c)));this.isEnabled()&&d&&this.clearSelection()};this.tooltipHandler.getStateForEvent=function(b){return b.sourceState};var G=this.tooltipHandler.show;this.tooltipHandler.show=function(){G.apply(this,arguments);if(null!=this.div)for(var b=this.div.getElementsByTagName("a"),d=0;d<b.length;d++)null!=
+b[d].getAttribute("href")&&null==b[d].getAttribute("target")&&b[d].setAttribute("target","_blank")};this.tooltipHandler.getStateForEvent=function(b){return b.sourceState};this.getCursorForMouseEvent=function(b){var d=null==b.state&&null!=b.sourceState&&this.isCellLocked(b.sourceState.cell);return this.getCursorForCell(d?b.sourceState.cell:b.getCell())};var H=this.getCursorForCell;this.getCursorForCell=function(b){if(!this.isEnabled()||this.isCellLocked(b)){if(null!=this.getClickableLinkForCell(b))return"pointer";
+if(this.isCellLocked(b))return"default"}return H.apply(this,arguments)};this.selectRegion=function(b,d){var c=mxEvent.isAltDown(d)?b:null,c=this.getCells(b.x,b.y,b.width,b.height,null,null,c,function(b){return"1"==mxUtils.getValue(b.style,"locked","0")},!0);if(this.isToggleEvent(d))for(var g=0;g<c.length;g++)this.selectCellForEvent(c[g],d);else this.selectCellsForEvent(c,d);return c};var L=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=function(b,d,c){return this.graph.isCellSelected(b)?
+!1:L.apply(this,arguments)};this.isCellLocked=function(b){for(;null!=b;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(b),"locked","0"))return!0;b=this.model.getParent(b)}return!1};var N=null;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(b,d){if("mouseDown"==d.getProperty("eventName")){var c=d.getProperty("event").getState();N=null==c||this.isSelectionEmpty()||this.isCellSelected(c.cell)?null:this.getSelectionCells()}}));this.addListener(mxEvent.TAP_AND_HOLD,mxUtils.bind(this,
+function(b,d){if(!mxEvent.isMultiTouchEvent(d)){var c=d.getProperty("event"),g=d.getProperty("cell");null==g?(c=mxUtils.convertPoint(this.container,mxEvent.getClientX(c),mxEvent.getClientY(c)),t.start(c.x,c.y)):null!=N?this.addSelectionCells(N):1<this.getSelectionCount()&&this.isCellSelected(g)&&this.removeSelectionCell(g);N=null;d.consume()}}));this.connectionHandler.selectCells=function(b,d){this.graph.setSelectionCell(d||b)};this.connectionHandler.constraintHandler.isStateIgnored=function(b,d){var c=
+b.view.graph;return d&&(c.isCellSelected(b.cell)||c.isTableRow(b.cell)&&c.selectionCellsHandler.isHandled(c.model.getParent(b.cell)))};this.selectionModel.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var b=this.connectionHandler.constraintHandler;null!=b.currentFocus&&b.isStateIgnored(b.currentFocus,!0)&&(b.currentFocus=null,b.constraints=null,b.destroyIcons());b.destroyFocusHighlight()}));Graph.touchStyle&&this.initTouch();var M=this.updateMouseEvent;this.updateMouseEvent=function(b){b=
+M.apply(this,arguments);null!=b.state&&this.isCellLocked(b.getCell())&&(b.state=null);return b}}this.currentTranslate=new mxPoint(0,0)};Graph.touchStyle=mxClient.IS_TOUCH||mxClient.IS_FF&&mxClient.IS_WIN||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints||null==window.urlParams||"1"==urlParams.touch;Graph.fileSupport=null!=window.File&&null!=window.FileReader&&null!=window.FileList&&(null==window.urlParams||"0"!=urlParams.filesupport);Graph.translateDiagram="1"==urlParams["translate-diagram"];
Graph.diagramLanguage=null!=urlParams["diagram-language"]?urlParams["diagram-language"]:mxClient.language;Graph.lineJumpsEnabled=!0;Graph.defaultJumpSize=6;Graph.zoomWheel=!1;Graph.minTableColumnWidth=20;Graph.minTableRowHeight=20;Graph.foreignObjectWarningText="Text is not SVG - cannot display";Graph.foreignObjectWarningLink="https://www.diagrams.net/doc/faq/svg-export-text-problems";Graph.xmlDeclaration='<?xml version="1.0" encoding="UTF-8"?>';Graph.svgDoctype='<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">';
Graph.svgFileComment="\x3c!-- Do not edit this file with editors other than diagrams.net --\x3e";Graph.pasteStyles="rounded shadow dashed dashPattern fontFamily fontSource fontSize fontColor fontStyle align verticalAlign strokeColor strokeWidth fillColor gradientColor swimlaneFillColor textOpacity gradientDirection glass labelBackgroundColor labelBorderColor opacity spacing spacingTop spacingLeft spacingBottom spacingRight endFill endArrow endSize targetPerimeterSpacing startFill startArrow startSize sourcePerimeterSpacing arcSize comic sketch fillWeight hachureGap hachureAngle jiggle disableMultiStroke disableMultiStrokeFill fillStyle curveFitting simplification comicStyle".split(" ");
Graph.createOffscreenGraph=function(b){var c=new Graph(document.createElement("div"));c.stylesheet.styles=mxUtils.clone(b.styles);c.resetViewOnRootChange=!1;c.setConnectable(!1);c.gridEnabled=!1;c.autoScroll=!1;c.setTooltips(!1);c.setEnabled(!1);c.container.style.visibility="hidden";c.container.style.position="absolute";c.container.style.overflow="hidden";c.container.style.height="1px";c.container.style.width="1px";return c};
@@ -2436,8 +2436,8 @@ Graph.prototype.setGridSize=function(b){this.gridSize=b;this.fireEvent(new mxEve
Graph.prototype.getGlobalVariable=function(b){var c=null;"date"==b?c=(new Date).toLocaleDateString():"time"==b?c=(new Date).toLocaleTimeString():"timestamp"==b?c=(new Date).toLocaleString():"date{"==b.substring(0,5)&&(b=b.substring(5,b.length-1),c=this.formatDate(new Date,b));return c};
Graph.prototype.formatDate=function(b,c,e){null==this.dateFormatCache&&(this.dateFormatCache={i18n:{dayNames:"Sun Mon Tue Wed Thu Fri Sat Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),monthNames:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec January February March April May June July August September October November December".split(" ")},masks:{"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",
shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"}});var f=this.dateFormatCache,n=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,l=/[^-+\dA-Z]/g,q=function(b,d){b=String(b);for(d=d||2;b.length<d;)b="0"+b;return b};1!=arguments.length||"[object String]"!=Object.prototype.toString.call(b)||
-/\d/.test(b)||(c=b,b=void 0);b=b?new Date(b):new Date;if(isNaN(b))throw SyntaxError("invalid date");c=String(f.masks[c]||c||f.masks["default"]);"UTC:"==c.slice(0,4)&&(c=c.slice(4),e=!0);var d=e?"getUTC":"get",k=b[d+"Date"](),g=b[d+"Day"](),p=b[d+"Month"](),m=b[d+"FullYear"](),v=b[d+"Hours"](),u=b[d+"Minutes"](),t=b[d+"Seconds"](),d=b[d+"Milliseconds"](),z=e?0:b.getTimezoneOffset(),y={d:k,dd:q(k),ddd:f.i18n.dayNames[g],dddd:f.i18n.dayNames[g+7],m:p+1,mm:q(p+1),mmm:f.i18n.monthNames[p],mmmm:f.i18n.monthNames[p+
-12],yy:String(m).slice(2),yyyy:m,h:v%12||12,hh:q(v%12||12),H:v,HH:q(v),M:u,MM:q(u),s:t,ss:q(t),l:q(d,3),L:q(99<d?Math.round(d/10):d),t:12>v?"a":"p",tt:12>v?"am":"pm",T:12>v?"A":"P",TT:12>v?"AM":"PM",Z:e?"UTC":(String(b).match(n)||[""]).pop().replace(l,""),o:(0<z?"-":"+")+q(100*Math.floor(Math.abs(z)/60)+Math.abs(z)%60,4),S:["th","st","nd","rd"][3<k%10?0:(10!=k%100-k%10)*k%10]};return c.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(b){return b in y?y[b]:b.slice(1,
+/\d/.test(b)||(c=b,b=void 0);b=b?new Date(b):new Date;if(isNaN(b))throw SyntaxError("invalid date");c=String(f.masks[c]||c||f.masks["default"]);"UTC:"==c.slice(0,4)&&(c=c.slice(4),e=!0);var d=e?"getUTC":"get",k=b[d+"Date"](),g=b[d+"Day"](),p=b[d+"Month"](),m=b[d+"FullYear"](),u=b[d+"Hours"](),v=b[d+"Minutes"](),t=b[d+"Seconds"](),d=b[d+"Milliseconds"](),z=e?0:b.getTimezoneOffset(),y={d:k,dd:q(k),ddd:f.i18n.dayNames[g],dddd:f.i18n.dayNames[g+7],m:p+1,mm:q(p+1),mmm:f.i18n.monthNames[p],mmmm:f.i18n.monthNames[p+
+12],yy:String(m).slice(2),yyyy:m,h:u%12||12,hh:q(u%12||12),H:u,HH:q(u),M:v,MM:q(v),s:t,ss:q(t),l:q(d,3),L:q(99<d?Math.round(d/10):d),t:12>u?"a":"p",tt:12>u?"am":"pm",T:12>u?"A":"P",TT:12>u?"AM":"PM",Z:e?"UTC":(String(b).match(n)||[""]).pop().replace(l,""),o:(0<z?"-":"+")+q(100*Math.floor(Math.abs(z)/60)+Math.abs(z)%60,4),S:["th","st","nd","rd"][3<k%10?0:(10!=k%100-k%10)*k%10]};return c.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(b){return b in y?y[b]:b.slice(1,
b.length-1)})};Graph.prototype.getLayerForCells=function(b){var c=null;if(0<b.length){for(c=b[0];!this.model.isLayer(c);)c=this.model.getParent(c);for(var e=1;e<b.length;e++)if(!this.model.isAncestor(c,b[e])){c=null;break}}return c};
Graph.prototype.createLayersDialog=function(b,c){var e=document.createElement("div");e.style.position="absolute";for(var f=this.getModel(),n=f.getChildCount(f.root),l=0;l<n;l++)mxUtils.bind(this,function(l){function d(){f.isVisible(l)?(p.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(g,75)):(p.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(g,25))}var k=this.convertValueToString(l)||mxResources.get("background")||"Background",g=document.createElement("div");g.style.overflow=
"hidden";g.style.textOverflow="ellipsis";g.style.padding="2px";g.style.whiteSpace="nowrap";g.style.cursor="pointer";g.setAttribute("title",mxResources.get(f.isVisible(l)?"hideIt":"show",[k]));var p=document.createElement("img");p.setAttribute("draggable","false");p.setAttribute("align","absmiddle");p.setAttribute("border","0");p.style.position="relative";p.style.width="16px";p.style.padding="0px 6px 0 4px";c&&(p.style.filter="invert(100%)",p.style.top="-2px");g.appendChild(p);mxUtils.write(g,k);e.appendChild(g);
@@ -2451,12 +2451,12 @@ Graph.prototype.snapCellsToGrid=function(b,c){this.getModel().beginUpdate();try{
n)}}}finally{this.getModel().endUpdate()}};Graph.prototype.selectCellsForConnectVertex=function(b,c,e){2==b.length&&this.model.isVertex(b[1])?(this.setSelectionCell(b[1]),this.scrollCellToVisible(b[1]),null!=e&&(mxEvent.isTouchEvent(c)?e.update(e.getState(this.view.getState(b[1]))):e.reset())):this.setSelectionCells(b)};
Graph.prototype.isCloneConnectSource=function(b){var c=null;null!=this.layoutManager&&(c=this.layoutManager.getLayout(this.model.getParent(b)));return this.isTableRow(b)||this.isTableCell(b)||null!=c&&c.constructor==mxStackLayout};
Graph.prototype.connectVertex=function(b,c,e,f,n,l,q,d){l=l?l:!1;if(b.geometry.relative&&this.model.isEdge(b.parent))return[];for(;b.geometry.relative&&this.model.isVertex(b.parent);)b=b.parent;var k=this.isCloneConnectSource(b),g=k?b:this.getCompositeParent(b),p=b.geometry.relative&&null!=b.parent.geometry?new mxPoint(b.parent.geometry.width*b.geometry.x,b.parent.geometry.height*b.geometry.y):new mxPoint(g.geometry.x,g.geometry.y);c==mxConstants.DIRECTION_NORTH?(p.x+=g.geometry.width/2,p.y-=e):c==
-mxConstants.DIRECTION_SOUTH?(p.x+=g.geometry.width/2,p.y+=g.geometry.height+e):(p.x=c==mxConstants.DIRECTION_WEST?p.x-e:p.x+(g.geometry.width+e),p.y+=g.geometry.height/2);var m=this.view.getState(this.model.getParent(b));e=this.view.scale;var v=this.view.translate,g=v.x*e,v=v.y*e;null!=m&&this.model.isVertex(m.cell)&&(g=m.x,v=m.y);this.model.isVertex(b.parent)&&b.geometry.relative&&(p.x+=b.parent.geometry.x,p.y+=b.parent.geometry.y);l=l?null:(new mxRectangle(g+p.x*e,v+p.y*e)).grow(40*e);l=null!=l?
-this.getCells(0,0,0,0,null,null,l,null,!0):null;var m=this.view.getState(b),u=null,t=null;if(null!=l){l=l.reverse();for(var z=0;z<l.length;z++)if(!this.isCellLocked(l[z])&&!this.model.isEdge(l[z])&&l[z]!=b)if(!this.model.isAncestor(b,l[z])&&this.isContainer(l[z])&&(null==u||l[z]==this.model.getParent(b)))u=l[z];else if(null==t&&this.isCellConnectable(l[z])&&!this.model.isAncestor(l[z],b)&&!this.isSwimlane(l[z])){var y=this.view.getState(l[z]);null==m||null==y||mxUtils.intersects(m,y)||(t=l[z])}}var F=
-!mxEvent.isShiftDown(f)||mxEvent.isControlDown(f)||n;F&&("1"!=urlParams.sketch||n)&&(c==mxConstants.DIRECTION_NORTH?p.y-=b.geometry.height/2:c==mxConstants.DIRECTION_SOUTH?p.y+=b.geometry.height/2:p.x=c==mxConstants.DIRECTION_WEST?p.x-b.geometry.width/2:p.x+b.geometry.width/2);var D=[],E=t,t=u;n=mxUtils.bind(this,function(g){if(null==q||null!=g||null==t&&k){this.model.beginUpdate();try{if(null==E&&F){var e=this.getAbsoluteParent(null!=g?g:b),e=k?b:this.getCompositeParent(e);E=null!=g?g:this.duplicateCells([e],
-!1)[0];null!=g&&this.addCells([E],this.model.getParent(b),null,null,null,!0);var l=this.getCellGeometry(E);null!=l&&(null!=g&&"1"==urlParams.sketch&&(c==mxConstants.DIRECTION_NORTH?p.y-=l.height/2:c==mxConstants.DIRECTION_SOUTH?p.y+=l.height/2:p.x=c==mxConstants.DIRECTION_WEST?p.x-l.width/2:p.x+l.width/2),l.x=p.x-l.width/2,l.y=p.y-l.height/2);null!=u?(this.addCells([E],u,null,null,null,!0),t=null):F&&!k&&this.addCells([E],this.getDefaultParent(),null,null,null,!0)}var m=mxEvent.isControlDown(f)&&
-mxEvent.isShiftDown(f)&&F||null==t&&k?null:this.insertEdge(this.model.getParent(b),null,"",b,E,this.createCurrentEdgeStyle());if(null!=m&&this.connectionHandler.insertBeforeSource){var v=null;for(g=b;null!=g.parent&&null!=g.geometry&&g.geometry.relative&&g.parent!=m.parent;)g=this.model.getParent(g);null!=g&&null!=g.parent&&g.parent==m.parent&&(v=g.parent.getIndex(g),this.model.add(g.parent,m,v))}null==t&&null!=E&&null!=b.parent&&k&&c==mxConstants.DIRECTION_WEST&&(v=b.parent.getIndex(b),this.model.add(b.parent,
-E,v));null!=m&&D.push(m);null==t&&null!=E&&D.push(E);null==E&&null!=m&&m.geometry.setTerminalPoint(p,!1);null!=m&&this.fireEvent(new mxEventObject("cellsInserted","cells",[m]))}finally{this.model.endUpdate()}}if(null!=d)d(D);else return D});if(null==q||null!=E||!F||null==t&&k)return n(E);q(g+p.x*e,v+p.y*e,n)};
+mxConstants.DIRECTION_SOUTH?(p.x+=g.geometry.width/2,p.y+=g.geometry.height+e):(p.x=c==mxConstants.DIRECTION_WEST?p.x-e:p.x+(g.geometry.width+e),p.y+=g.geometry.height/2);var m=this.view.getState(this.model.getParent(b));e=this.view.scale;var u=this.view.translate,g=u.x*e,u=u.y*e;null!=m&&this.model.isVertex(m.cell)&&(g=m.x,u=m.y);this.model.isVertex(b.parent)&&b.geometry.relative&&(p.x+=b.parent.geometry.x,p.y+=b.parent.geometry.y);l=l?null:(new mxRectangle(g+p.x*e,u+p.y*e)).grow(40*e);l=null!=l?
+this.getCells(0,0,0,0,null,null,l,null,!0):null;var m=this.view.getState(b),v=null,t=null;if(null!=l){l=l.reverse();for(var z=0;z<l.length;z++)if(!this.isCellLocked(l[z])&&!this.model.isEdge(l[z])&&l[z]!=b)if(!this.model.isAncestor(b,l[z])&&this.isContainer(l[z])&&(null==v||l[z]==this.model.getParent(b)))v=l[z];else if(null==t&&this.isCellConnectable(l[z])&&!this.model.isAncestor(l[z],b)&&!this.isSwimlane(l[z])){var y=this.view.getState(l[z]);null==m||null==y||mxUtils.intersects(m,y)||(t=l[z])}}var I=
+!mxEvent.isShiftDown(f)||mxEvent.isControlDown(f)||n;I&&("1"!=urlParams.sketch||n)&&(c==mxConstants.DIRECTION_NORTH?p.y-=b.geometry.height/2:c==mxConstants.DIRECTION_SOUTH?p.y+=b.geometry.height/2:p.x=c==mxConstants.DIRECTION_WEST?p.x-b.geometry.width/2:p.x+b.geometry.width/2);var D=[],F=t,t=v;n=mxUtils.bind(this,function(g){if(null==q||null!=g||null==t&&k){this.model.beginUpdate();try{if(null==F&&I){var e=this.getAbsoluteParent(null!=g?g:b),e=k?b:this.getCompositeParent(e);F=null!=g?g:this.duplicateCells([e],
+!1)[0];null!=g&&this.addCells([F],this.model.getParent(b),null,null,null,!0);var l=this.getCellGeometry(F);null!=l&&(null!=g&&"1"==urlParams.sketch&&(c==mxConstants.DIRECTION_NORTH?p.y-=l.height/2:c==mxConstants.DIRECTION_SOUTH?p.y+=l.height/2:p.x=c==mxConstants.DIRECTION_WEST?p.x-l.width/2:p.x+l.width/2),l.x=p.x-l.width/2,l.y=p.y-l.height/2);null!=v?(this.addCells([F],v,null,null,null,!0),t=null):I&&!k&&this.addCells([F],this.getDefaultParent(),null,null,null,!0)}var m=mxEvent.isControlDown(f)&&
+mxEvent.isShiftDown(f)&&I||null==t&&k?null:this.insertEdge(this.model.getParent(b),null,"",b,F,this.createCurrentEdgeStyle());if(null!=m&&this.connectionHandler.insertBeforeSource){var u=null;for(g=b;null!=g.parent&&null!=g.geometry&&g.geometry.relative&&g.parent!=m.parent;)g=this.model.getParent(g);null!=g&&null!=g.parent&&g.parent==m.parent&&(u=g.parent.getIndex(g),this.model.add(g.parent,m,u))}null==t&&null!=F&&null!=b.parent&&k&&c==mxConstants.DIRECTION_WEST&&(u=b.parent.getIndex(b),this.model.add(b.parent,
+F,u));null!=m&&D.push(m);null==t&&null!=F&&D.push(F);null==F&&null!=m&&m.geometry.setTerminalPoint(p,!1);null!=m&&this.fireEvent(new mxEventObject("cellsInserted","cells",[m]))}finally{this.model.endUpdate()}}if(null!=d)d(D);else return D});if(null==q||null!=F||!I||null==t&&k)return n(F);q(g+p.x*e,u+p.y*e,n)};
Graph.prototype.getIndexableText=function(){var b=document.createElement("div"),c=[],e,f;for(f in this.model.cells)if(e=this.model.cells[f],this.model.isVertex(e)||this.model.isEdge(e))this.isHtmlLabel(e)?(b.innerHTML=this.sanitizeHtml(this.getLabel(e)),e=mxUtils.extractTextWithWhitespace([b])):e=this.getLabel(e),e=mxUtils.trim(e.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")),0<e.length&&c.push(e);return c.join(" ")};
Graph.prototype.convertValueToString=function(b){var c=this.model.getValue(b);if(null!=c&&"object"==typeof c){var e=null;if(this.isReplacePlaceholders(b)&&null!=b.getAttribute("placeholder"))for(var c=b.getAttribute("placeholder"),f=b;null==e&&null!=f;)null!=f.value&&"object"==typeof f.value&&(e=f.hasAttribute(c)?null!=f.getAttribute(c)?f.getAttribute(c):"":null),f=this.model.getParent(f);else e=null,Graph.translateDiagram&&null!=Graph.diagramLanguage&&(e=c.getAttribute("label_"+Graph.diagramLanguage)),
null==e&&(e=c.getAttribute("label")||"");return e||""}return mxGraph.prototype.convertValueToString.apply(this,arguments)};Graph.prototype.getLinksForState=function(b){return null!=b&&null!=b.text&&null!=b.text.node?b.text.node.getElementsByTagName("a"):null};Graph.prototype.getLinkForCell=function(b){return null!=b.value&&"object"==typeof b.value?(b=b.value.getAttribute("link"),null!=b&&"javascript:"===b.toLowerCase().substring(0,11)&&(b=b.substring(11)),b):null};
@@ -2520,34 +2520,34 @@ Graph.prototype.setTableValues=function(b,c,e){for(var f=this.model.getChildCell
Graph.prototype.createCrossFunctionalSwimlane=function(b,c,e,f,n,l,q,d,k){e=null!=e?e:120;f=null!=f?f:120;q=null!=q?q:"shape=tableRow;horizontal=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;bottom=0;right=0;dropTarget=0;fontStyle=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;startSize=40;collapsible=0;recursiveResize=0;expand=0;";d=null!=d?d:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;connectable=0;fillColor=none;startSize=40;collapsible=0;recursiveResize=0;expand=0;";
k=null!=k?k:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;connectable=0;fillColor=none;startSize=0;collapsible=0;recursiveResize=0;expand=0;";n=this.createVertex(null,null,null!=n?n:"",0,0,c*e,b*f,null!=l?l:"shape=table;childLayout=tableLayout;"+(null==n?"startSize=0;fillColor=none;":"startSize=40;")+"collapsible=0;recursiveResize=0;expand=0;");l=mxUtils.getValue(this.getCellStyle(n),mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE);n.geometry.width+=l;n.geometry.height+=l;q=this.createVertex(null,
null,"",0,l,c*e+l,f,q);n.insert(this.createParent(q,this.createVertex(null,null,"",l,0,e,f,d),c,e,0));return 1<b?(q.geometry.y=f+l,this.createParent(n,this.createParent(q,this.createVertex(null,null,"",l,0,e,f,k),c,e,0),b-1,0,f)):n};
-Graph.prototype.visitTableCells=function(b,c){for(var e=null,f=this.model.getChildCells(b,!0),n=this.getActualStartSize(b,!0),l=0;l<f.length;l++){for(var q=this.getActualStartSize(f[l],!0),d=this.model.getChildCells(f[l],!0),k=this.getCellStyle(f[l],!0),g=null,p=[],m=0;m<d.length;m++){var v=this.getCellGeometry(d[m]),u={cell:d[m],rospan:1,colspan:1,row:l,col:m,geo:v},v=null!=v.alternateBounds?v.alternateBounds:v;u.point=new mxPoint(v.width+(null!=g?g.point.x:n.x+q.x),v.height+(null!=e&&null!=e[0]?
-e[0].point.y:n.y+q.y));u.actual=u;null!=e&&null!=e[m]&&1<e[m].rowspan?(u.rowspan=e[m].rowspan-1,u.colspan=e[m].colspan,u.actual=e[m].actual):null!=g&&1<g.colspan?(u.rowspan=g.rowspan,u.colspan=g.colspan-1,u.actual=g.actual):(g=this.getCurrentCellStyle(d[m],!0),null!=g&&(u.rowspan=parseInt(g.rowspan||1),u.colspan=parseInt(g.colspan||1)));g=1==mxUtils.getValue(k,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(k,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;c(u,d.length,f.length,
-n.x+(g?q.x:0),n.y+(g?q.y:0));p.push(u);g=u}e=p}};Graph.prototype.getTableLines=function(b,c,e){var f=[],n=[];(c||e)&&this.visitTableCells(b,mxUtils.bind(this,function(b,q,d,k,g){c&&b.row<d-1&&(null==f[b.row]&&(f[b.row]=[new mxPoint(k,b.point.y)]),1<b.rowspan&&f[b.row].push(null),f[b.row].push(b.point));e&&b.col<q-1&&(null==n[b.col]&&(n[b.col]=[new mxPoint(b.point.x,g)]),1<b.colspan&&n[b.col].push(null),n[b.col].push(b.point))}));return f.concat(n)};
+Graph.prototype.visitTableCells=function(b,c){for(var e=null,f=this.model.getChildCells(b,!0),n=this.getActualStartSize(b,!0),l=0;l<f.length;l++){for(var q=this.getActualStartSize(f[l],!0),d=this.model.getChildCells(f[l],!0),k=this.getCellStyle(f[l],!0),g=null,p=[],m=0;m<d.length;m++){var u=this.getCellGeometry(d[m]),v={cell:d[m],rospan:1,colspan:1,row:l,col:m,geo:u},u=null!=u.alternateBounds?u.alternateBounds:u;v.point=new mxPoint(u.width+(null!=g?g.point.x:n.x+q.x),u.height+(null!=e&&null!=e[0]?
+e[0].point.y:n.y+q.y));v.actual=v;null!=e&&null!=e[m]&&1<e[m].rowspan?(v.rowspan=e[m].rowspan-1,v.colspan=e[m].colspan,v.actual=e[m].actual):null!=g&&1<g.colspan?(v.rowspan=g.rowspan,v.colspan=g.colspan-1,v.actual=g.actual):(g=this.getCurrentCellStyle(d[m],!0),null!=g&&(v.rowspan=parseInt(g.rowspan||1),v.colspan=parseInt(g.colspan||1)));g=1==mxUtils.getValue(k,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(k,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;c(v,d.length,f.length,
+n.x+(g?q.x:0),n.y+(g?q.y:0));p.push(v);g=v}e=p}};Graph.prototype.getTableLines=function(b,c,e){var f=[],n=[];(c||e)&&this.visitTableCells(b,mxUtils.bind(this,function(b,q,d,k,g){c&&b.row<d-1&&(null==f[b.row]&&(f[b.row]=[new mxPoint(k,b.point.y)]),1<b.rowspan&&f[b.row].push(null),f[b.row].push(b.point));e&&b.col<q-1&&(null==n[b.col]&&(n[b.col]=[new mxPoint(b.point.x,g)]),1<b.colspan&&n[b.col].push(null),n[b.col].push(b.point))}));return f.concat(n)};
Graph.prototype.isTableCell=function(b){return this.model.isVertex(b)&&this.isTableRow(this.model.getParent(b))};Graph.prototype.isTableRow=function(b){return this.model.isVertex(b)&&this.isTable(this.model.getParent(b))};Graph.prototype.isTable=function(b){b=this.getCellStyle(b);return null!=b&&"tableLayout"==b.childLayout};Graph.prototype.isStack=function(b){b=this.getCellStyle(b);return null!=b&&"stackLayout"==b.childLayout};
Graph.prototype.isStackChild=function(b){return this.model.isVertex(b)&&this.isStack(this.model.getParent(b))};
Graph.prototype.setTableRowHeight=function(b,c,e){e=null!=e?e:!0;var f=this.getModel();f.beginUpdate();try{var n=this.getCellGeometry(b);if(null!=n){n=n.clone();n.height+=c;f.setGeometry(b,n);var l=f.getParent(b),q=f.getChildCells(l,!0);if(!e){var d=mxUtils.indexOf(q,b);if(d<q.length-1){var k=q[d+1],g=this.getCellGeometry(k);null!=g&&(g=g.clone(),g.y+=c,g.height-=c,f.setGeometry(k,g))}}var p=this.getCellGeometry(l);null!=p&&(e||(e=b==q[q.length-1]),e&&(p=p.clone(),p.height+=c,f.setGeometry(l,p)))}}finally{f.endUpdate()}};
Graph.prototype.setTableColumnWidth=function(b,c,e){e=null!=e?e:!1;var f=this.getModel(),n=f.getParent(b),l=f.getParent(n),q=f.getChildCells(n,!0);b=mxUtils.indexOf(q,b);var d=b==q.length-1;f.beginUpdate();try{for(var k=f.getChildCells(l,!0),g=0;g<k.length;g++){var n=k[g],q=f.getChildCells(n,!0),p=q[b],m=this.getCellGeometry(p);null!=m&&(m=m.clone(),m.width+=c,null!=m.alternateBounds&&(m.alternateBounds.width+=c),f.setGeometry(p,m));b<q.length-1&&(p=q[b+1],m=this.getCellGeometry(p),null!=m&&(m=m.clone(),
-m.x+=c,e||(m.width-=c,null!=m.alternateBounds&&(m.alternateBounds.width-=c)),f.setGeometry(p,m)))}if(d||e){var v=this.getCellGeometry(l);null!=v&&(v=v.clone(),v.width+=c,f.setGeometry(l,v))}null!=this.layoutManager&&this.layoutManager.executeLayout(l)}finally{f.endUpdate()}};function TableLayout(b){mxGraphLayout.call(this,b)}TableLayout.prototype=new mxStackLayout;TableLayout.prototype.constructor=TableLayout;TableLayout.prototype.isHorizontal=function(){return!1};
+m.x+=c,e||(m.width-=c,null!=m.alternateBounds&&(m.alternateBounds.width-=c)),f.setGeometry(p,m)))}if(d||e){var u=this.getCellGeometry(l);null!=u&&(u=u.clone(),u.width+=c,f.setGeometry(l,u))}null!=this.layoutManager&&this.layoutManager.executeLayout(l)}finally{f.endUpdate()}};function TableLayout(b){mxGraphLayout.call(this,b)}TableLayout.prototype=new mxStackLayout;TableLayout.prototype.constructor=TableLayout;TableLayout.prototype.isHorizontal=function(){return!1};
TableLayout.prototype.isVertexIgnored=function(b){return!this.graph.getModel().isVertex(b)||!this.graph.isCellVisible(b)};TableLayout.prototype.getSize=function(b,c){for(var e=0,f=0;f<b.length;f++)if(!this.isVertexIgnored(b[f])){var n=this.graph.getCellGeometry(b[f]);null!=n&&(e+=c?n.width:n.height)}return e};
TableLayout.prototype.getRowLayout=function(b,c){for(var e=this.graph.model.getChildCells(b,!0),f=this.graph.getActualStartSize(b,!0),n=this.getSize(e,!0),l=c-f.x-f.width,q=[],f=f.x,d=0;d<e.length;d++){var k=this.graph.getCellGeometry(e[d]);null!=k&&(f+=(null!=k.alternateBounds?k.alternateBounds.width:k.width)*l/n,q.push(Math.round(f)))}return q};
TableLayout.prototype.layoutRow=function(b,c,e,f){var n=this.graph.getModel(),l=n.getChildCells(b,!0);b=this.graph.getActualStartSize(b,!0);var q=b.x,d=0;null!=c&&(c=c.slice(),c.splice(0,0,b.x));for(var k=0;k<l.length;k++){var g=this.graph.getCellGeometry(l[k]);null!=g&&(g=g.clone(),g.y=b.y,g.height=e-b.y-b.height,null!=c?(g.x=c[k],g.width=c[k+1]-g.x,k==l.length-1&&k<c.length-2&&(g.width=f-g.x-b.x-b.width)):(g.x=q,q+=g.width,k==l.length-1?g.width=f-b.x-b.width-d:d+=g.width),g.alternateBounds=new mxRectangle(0,
0,g.width,g.height),n.setGeometry(l[k],g))}return d};
-TableLayout.prototype.execute=function(b){if(null!=b){var c=this.graph.getActualStartSize(b,!0),e=this.graph.getCellGeometry(b),f=this.graph.getCellStyle(b),n="1"==mxUtils.getValue(f,"resizeLastRow","0"),l="1"==mxUtils.getValue(f,"resizeLast","0"),f="1"==mxUtils.getValue(f,"fixedRows","0"),q=this.graph.getModel(),d=0;q.beginUpdate();try{for(var k=e.height-c.y-c.height,g=e.width-c.x-c.width,p=q.getChildCells(b,!0),m=0;m<p.length;m++)q.setVisible(p[m],!0);var v=this.getSize(p,!1);if(0<k&&0<g&&0<p.length&&
-0<v){if(n){var u=this.graph.getCellGeometry(p[p.length-1]);null!=u&&(u=u.clone(),u.height=k-v+u.height,q.setGeometry(p[p.length-1],u))}for(var t=l?null:this.getRowLayout(p[0],g),z=[],y=c.y,m=0;m<p.length;m++)u=this.graph.getCellGeometry(p[m]),null!=u&&(u=u.clone(),u.x=c.x,u.width=g,u.y=Math.round(y),y=n||f?y+u.height:y+u.height/v*k,u.height=Math.round(y)-u.y,q.setGeometry(p[m],u)),d=Math.max(d,this.layoutRow(p[m],t,u.height,g,z));f&&k<v&&(e=e.clone(),e.height=y+c.height,q.setGeometry(b,e));l&&g<d+
+TableLayout.prototype.execute=function(b){if(null!=b){var c=this.graph.getActualStartSize(b,!0),e=this.graph.getCellGeometry(b),f=this.graph.getCellStyle(b),n="1"==mxUtils.getValue(f,"resizeLastRow","0"),l="1"==mxUtils.getValue(f,"resizeLast","0"),f="1"==mxUtils.getValue(f,"fixedRows","0"),q=this.graph.getModel(),d=0;q.beginUpdate();try{for(var k=e.height-c.y-c.height,g=e.width-c.x-c.width,p=q.getChildCells(b,!0),m=0;m<p.length;m++)q.setVisible(p[m],!0);var u=this.getSize(p,!1);if(0<k&&0<g&&0<p.length&&
+0<u){if(n){var v=this.graph.getCellGeometry(p[p.length-1]);null!=v&&(v=v.clone(),v.height=k-u+v.height,q.setGeometry(p[p.length-1],v))}for(var t=l?null:this.getRowLayout(p[0],g),z=[],y=c.y,m=0;m<p.length;m++)v=this.graph.getCellGeometry(p[m]),null!=v&&(v=v.clone(),v.x=c.x,v.width=g,v.y=Math.round(y),y=n||f?y+v.height:y+v.height/u*k,v.height=Math.round(y)-v.y,q.setGeometry(p[m],v)),d=Math.max(d,this.layoutRow(p[m],t,v.height,g,z));f&&k<u&&(e=e.clone(),e.height=y+c.height,q.setGeometry(b,e));l&&g<d+
Graph.minTableColumnWidth&&(e=e.clone(),e.width=d+c.width+c.x+Graph.minTableColumnWidth,q.setGeometry(b,e));this.graph.visitTableCells(b,mxUtils.bind(this,function(b){q.setVisible(b.cell,b.actual.cell==b.cell);if(b.actual.cell!=b.cell){if(b.actual.row==b.row){var d=null!=b.geo.alternateBounds?b.geo.alternateBounds:b.geo;b.actual.geo.width+=d.width}b.actual.col==b.col&&(d=null!=b.geo.alternateBounds?b.geo.alternateBounds:b.geo,b.actual.geo.height+=d.height)}}))}else for(m=0;m<p.length;m++)q.setVisible(p[m],
!1)}finally{q.endUpdate()}}};
(function(){var b=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){b.apply(this,arguments);this.validEdges=[]};var c=mxGraphView.prototype.validateCellState;mxGraphView.prototype.validateCellState=function(b,d){d=null!=d?d:!0;var g=this.getState(b);null!=g&&d&&this.graph.model.isEdge(g.cell)&&null!=g.style&&1!=g.style[mxConstants.STYLE_CURVED]&&!g.invalid&&this.updateLineJumps(g)&&this.graph.cellRenderer.redraw(g,!1,this.isRendering());g=c.apply(this,
arguments);null!=g&&d&&this.graph.model.isEdge(g.cell)&&null!=g.style&&1!=g.style[mxConstants.STYLE_CURVED]&&this.validEdges.push(g);return g};var e=mxShape.prototype.paint;mxShape.prototype.paint=function(){e.apply(this,arguments);if(null!=this.state&&null!=this.node&&this.state.view.graph.enableFlowAnimation&&this.state.view.graph.model.isEdge(this.state.cell)&&"1"==mxUtils.getValue(this.state.style,"flowAnimation","0")){var b=this.node.getElementsByTagName("path");if(1<b.length){"1"!=mxUtils.getValue(this.state.style,
mxConstants.STYLE_DASHED,"0")&&b[1].setAttribute("stroke-dasharray",8*this.state.view.scale);var d=this.state.view.graph.getFlowAnimationStyle();null!=d&&b[1].setAttribute("class",d.getAttribute("id"))}}};var f=mxCellRenderer.prototype.isShapeInvalid;mxCellRenderer.prototype.isShapeInvalid=function(b,d){return f.apply(this,arguments)||null!=b.routedPoints&&null!=d.routedPoints&&!mxUtils.equalPoints(d.routedPoints,b.routedPoints)};var n=mxGraphView.prototype.updateCellState;mxGraphView.prototype.updateCellState=
function(b){n.apply(this,arguments);this.graph.model.isEdge(b.cell)&&1!=b.style[mxConstants.STYLE_CURVED]&&this.updateLineJumps(b)};mxGraphView.prototype.updateLineJumps=function(b){var d=b.absolutePoints;if(Graph.lineJumpsEnabled){var c=null!=b.routedPoints,g=null;if(null!=d&&null!=this.validEdges&&"none"!==mxUtils.getValue(b.style,"jumpStyle","none")){for(var e=function(d,c,e){var k=new mxPoint(c,e);k.type=d;g.push(k);k=null!=b.routedPoints?b.routedPoints[g.length-1]:null;return null==k||k.type!=
-d||k.x!=c||k.y!=e},k=.5*this.scale,c=!1,g=[],f=0;f<d.length-1;f++){for(var l=d[f+1],p=d[f],n=[],q=d[f+2];f<d.length-2&&mxUtils.ptSegDistSq(p.x,p.y,q.x,q.y,l.x,l.y)<1*this.scale*this.scale;)l=q,f++,q=d[f+2];for(var c=e(0,p.x,p.y)||c,N=0;N<this.validEdges.length;N++){var A=this.validEdges[N],G=A.absolutePoints;if(null!=G&&mxUtils.intersects(b,A)&&"1"!=A.style.noJump)for(A=0;A<G.length-1;A++){for(var I=G[A+1],L=G[A],q=G[A+2];A<G.length-2&&mxUtils.ptSegDistSq(L.x,L.y,q.x,q.y,I.x,I.y)<1*this.scale*this.scale;)I=
-q,A++,q=G[A+2];q=mxUtils.intersection(p.x,p.y,l.x,l.y,L.x,L.y,I.x,I.y);if(null!=q&&(Math.abs(q.x-p.x)>k||Math.abs(q.y-p.y)>k)&&(Math.abs(q.x-l.x)>k||Math.abs(q.y-l.y)>k)&&(Math.abs(q.x-L.x)>k||Math.abs(q.y-L.y)>k)&&(Math.abs(q.x-I.x)>k||Math.abs(q.y-I.y)>k)){I=q.x-p.x;L=q.y-p.y;q={distSq:I*I+L*L,x:q.x,y:q.y};for(I=0;I<n.length;I++)if(n[I].distSq>q.distSq){n.splice(I,0,q);q=null;break}null==q||0!=n.length&&n[n.length-1].x===q.x&&n[n.length-1].y===q.y||n.push(q)}}}for(A=0;A<n.length;A++)c=e(1,n[A].x,
-n[A].y)||c}q=d[d.length-1];c=e(0,q.x,q.y)||c}b.routedPoints=g;return c}return!1};var l=mxConnector.prototype.paintLine;mxConnector.prototype.paintLine=function(b,d,c){this.routedPoints=null!=this.state?this.state.routedPoints:null;if(this.outline||null==this.state||null==this.style||null==this.state.routedPoints||0==this.state.routedPoints.length)l.apply(this,arguments);else{var g=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,e=(parseInt(mxUtils.getValue(this.style,
-"jumpSize",Graph.defaultJumpSize))-2)/2+this.strokewidth,k=mxUtils.getValue(this.style,"jumpStyle","none"),f=!0,m=null,p=null,v=[],n=null;b.begin();for(var q=0;q<this.state.routedPoints.length;q++){var A=this.state.routedPoints[q],G=new mxPoint(A.x/this.scale,A.y/this.scale);0==q?G=d[0]:q==this.state.routedPoints.length-1&&(G=d[d.length-1]);var I=!1;if(null!=m&&1==A.type){var L=this.state.routedPoints[q+1],A=L.x/this.scale-G.x,L=L.y/this.scale-G.y,A=A*A+L*L;null==n&&(n=new mxPoint(G.x-m.x,G.y-m.y),
-p=Math.sqrt(n.x*n.x+n.y*n.y),0<p?(n.x=n.x*e/p,n.y=n.y*e/p):n=null);A>e*e&&0<p&&(A=m.x-G.x,L=m.y-G.y,A=A*A+L*L,A>e*e&&(I=new mxPoint(G.x-n.x,G.y-n.y),A=new mxPoint(G.x+n.x,G.y+n.y),v.push(I),this.addPoints(b,v,c,g,!1,null,f),v=0>Math.round(n.x)||0==Math.round(n.x)&&0>=Math.round(n.y)?1:-1,f=!1,"sharp"==k?(b.lineTo(I.x-n.y*v,I.y+n.x*v),b.lineTo(A.x-n.y*v,A.y+n.x*v),b.lineTo(A.x,A.y)):"line"==k?(b.moveTo(I.x+n.y*v,I.y-n.x*v),b.lineTo(I.x-n.y*v,I.y+n.x*v),b.moveTo(A.x-n.y*v,A.y+n.x*v),b.lineTo(A.x+n.y*
-v,A.y-n.x*v),b.moveTo(A.x,A.y)):"arc"==k?(v*=1.3,b.curveTo(I.x-n.y*v,I.y+n.x*v,A.x-n.y*v,A.y+n.x*v,A.x,A.y)):(b.moveTo(A.x,A.y),f=!0),v=[A],I=!0))}else n=null;I||(v.push(G),m=G)}this.addPoints(b,v,c,g,!1,null,f);b.stroke()}};var q=mxGraphView.prototype.getFixedTerminalPoint;mxGraphView.prototype.getFixedTerminalPoint=function(b,d,c,g){return null!=d&&"centerPerimeter"==d.style[mxConstants.STYLE_PERIMETER]?new mxPoint(d.getCenterX(),d.getCenterY()):q.apply(this,arguments)};var d=mxGraphView.prototype.updateFloatingTerminalPoint;
-mxGraphView.prototype.updateFloatingTerminalPoint=function(b,c,g,e){if(null==c||null==b||"1"!=c.style.snapToPoint&&"1"!=b.style.snapToPoint)d.apply(this,arguments);else{c=this.getTerminalPort(b,c,e);var k=this.getNextPoint(b,g,e),f=this.graph.isOrthogonal(b),l=mxUtils.toRadians(Number(c.style[mxConstants.STYLE_ROTATION]||"0")),m=new mxPoint(c.getCenterX(),c.getCenterY());if(0!=l)var p=Math.cos(-l),v=Math.sin(-l),k=mxUtils.getRotatedPoint(k,p,v,m);p=parseFloat(b.style[mxConstants.STYLE_PERIMETER_SPACING]||
-0);p+=parseFloat(b.style[e?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);k=this.getPerimeterPoint(c,k,0==l&&f,p);0!=l&&(p=Math.cos(l),v=Math.sin(l),k=mxUtils.getRotatedPoint(k,p,v,m));b.setAbsoluteTerminalPoint(this.snapToAnchorPoint(b,c,g,e,k),e)}};mxGraphView.prototype.snapToAnchorPoint=function(b,d,c,g,e){if(null!=d&&null!=b){b=this.graph.getAllConnectionConstraints(d);g=c=null;if(null!=b)for(var k=0;k<b.length;k++){var f=this.graph.getConnectionPoint(d,
+d||k.x!=c||k.y!=e},k=.5*this.scale,c=!1,g=[],f=0;f<d.length-1;f++){for(var l=d[f+1],p=d[f],n=[],q=d[f+2];f<d.length-2&&mxUtils.ptSegDistSq(p.x,p.y,q.x,q.y,l.x,l.y)<1*this.scale*this.scale;)l=q,f++,q=d[f+2];for(var c=e(0,p.x,p.y)||c,O=0;O<this.validEdges.length;O++){var B=this.validEdges[O],G=B.absolutePoints;if(null!=G&&mxUtils.intersects(b,B)&&"1"!=B.style.noJump)for(B=0;B<G.length-1;B++){for(var H=G[B+1],L=G[B],q=G[B+2];B<G.length-2&&mxUtils.ptSegDistSq(L.x,L.y,q.x,q.y,H.x,H.y)<1*this.scale*this.scale;)H=
+q,B++,q=G[B+2];q=mxUtils.intersection(p.x,p.y,l.x,l.y,L.x,L.y,H.x,H.y);if(null!=q&&(Math.abs(q.x-p.x)>k||Math.abs(q.y-p.y)>k)&&(Math.abs(q.x-l.x)>k||Math.abs(q.y-l.y)>k)&&(Math.abs(q.x-L.x)>k||Math.abs(q.y-L.y)>k)&&(Math.abs(q.x-H.x)>k||Math.abs(q.y-H.y)>k)){H=q.x-p.x;L=q.y-p.y;q={distSq:H*H+L*L,x:q.x,y:q.y};for(H=0;H<n.length;H++)if(n[H].distSq>q.distSq){n.splice(H,0,q);q=null;break}null==q||0!=n.length&&n[n.length-1].x===q.x&&n[n.length-1].y===q.y||n.push(q)}}}for(B=0;B<n.length;B++)c=e(1,n[B].x,
+n[B].y)||c}q=d[d.length-1];c=e(0,q.x,q.y)||c}b.routedPoints=g;return c}return!1};var l=mxConnector.prototype.paintLine;mxConnector.prototype.paintLine=function(b,d,c){this.routedPoints=null!=this.state?this.state.routedPoints:null;if(this.outline||null==this.state||null==this.style||null==this.state.routedPoints||0==this.state.routedPoints.length)l.apply(this,arguments);else{var g=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,e=(parseInt(mxUtils.getValue(this.style,
+"jumpSize",Graph.defaultJumpSize))-2)/2+this.strokewidth,k=mxUtils.getValue(this.style,"jumpStyle","none"),f=!0,m=null,p=null,u=[],n=null;b.begin();for(var q=0;q<this.state.routedPoints.length;q++){var B=this.state.routedPoints[q],G=new mxPoint(B.x/this.scale,B.y/this.scale);0==q?G=d[0]:q==this.state.routedPoints.length-1&&(G=d[d.length-1]);var H=!1;if(null!=m&&1==B.type){var L=this.state.routedPoints[q+1],B=L.x/this.scale-G.x,L=L.y/this.scale-G.y,B=B*B+L*L;null==n&&(n=new mxPoint(G.x-m.x,G.y-m.y),
+p=Math.sqrt(n.x*n.x+n.y*n.y),0<p?(n.x=n.x*e/p,n.y=n.y*e/p):n=null);B>e*e&&0<p&&(B=m.x-G.x,L=m.y-G.y,B=B*B+L*L,B>e*e&&(H=new mxPoint(G.x-n.x,G.y-n.y),B=new mxPoint(G.x+n.x,G.y+n.y),u.push(H),this.addPoints(b,u,c,g,!1,null,f),u=0>Math.round(n.x)||0==Math.round(n.x)&&0>=Math.round(n.y)?1:-1,f=!1,"sharp"==k?(b.lineTo(H.x-n.y*u,H.y+n.x*u),b.lineTo(B.x-n.y*u,B.y+n.x*u),b.lineTo(B.x,B.y)):"line"==k?(b.moveTo(H.x+n.y*u,H.y-n.x*u),b.lineTo(H.x-n.y*u,H.y+n.x*u),b.moveTo(B.x-n.y*u,B.y+n.x*u),b.lineTo(B.x+n.y*
+u,B.y-n.x*u),b.moveTo(B.x,B.y)):"arc"==k?(u*=1.3,b.curveTo(H.x-n.y*u,H.y+n.x*u,B.x-n.y*u,B.y+n.x*u,B.x,B.y)):(b.moveTo(B.x,B.y),f=!0),u=[B],H=!0))}else n=null;H||(u.push(G),m=G)}this.addPoints(b,u,c,g,!1,null,f);b.stroke()}};var q=mxGraphView.prototype.getFixedTerminalPoint;mxGraphView.prototype.getFixedTerminalPoint=function(b,d,c,g){return null!=d&&"centerPerimeter"==d.style[mxConstants.STYLE_PERIMETER]?new mxPoint(d.getCenterX(),d.getCenterY()):q.apply(this,arguments)};var d=mxGraphView.prototype.updateFloatingTerminalPoint;
+mxGraphView.prototype.updateFloatingTerminalPoint=function(b,c,g,e){if(null==c||null==b||"1"!=c.style.snapToPoint&&"1"!=b.style.snapToPoint)d.apply(this,arguments);else{c=this.getTerminalPort(b,c,e);var k=this.getNextPoint(b,g,e),f=this.graph.isOrthogonal(b),l=mxUtils.toRadians(Number(c.style[mxConstants.STYLE_ROTATION]||"0")),m=new mxPoint(c.getCenterX(),c.getCenterY());if(0!=l)var p=Math.cos(-l),u=Math.sin(-l),k=mxUtils.getRotatedPoint(k,p,u,m);p=parseFloat(b.style[mxConstants.STYLE_PERIMETER_SPACING]||
+0);p+=parseFloat(b.style[e?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);k=this.getPerimeterPoint(c,k,0==l&&f,p);0!=l&&(p=Math.cos(l),u=Math.sin(l),k=mxUtils.getRotatedPoint(k,p,u,m));b.setAbsoluteTerminalPoint(this.snapToAnchorPoint(b,c,g,e,k),e)}};mxGraphView.prototype.snapToAnchorPoint=function(b,d,c,g,e){if(null!=d&&null!=b){b=this.graph.getAllConnectionConstraints(d);g=c=null;if(null!=b)for(var k=0;k<b.length;k++){var f=this.graph.getConnectionPoint(d,
b[k]);if(null!=f){var l=(f.x-e.x)*(f.x-e.x)+(f.y-e.y)*(f.y-e.y);if(null==g||l<g)c=f,g=l}}null!=c&&(e=c)}return e};var k=mxStencil.prototype.evaluateTextAttribute;mxStencil.prototype.evaluateTextAttribute=function(b,d,c){var g=k.apply(this,arguments);"1"==b.getAttribute("placeholders")&&null!=c.state&&(g=c.state.view.graph.replacePlaceholders(c.state.cell,g));return g};var g=mxCellRenderer.prototype.createShape;mxCellRenderer.prototype.createShape=function(b){if(null!=b.style&&"undefined"!==typeof pako){var d=
mxUtils.getValue(b.style,mxConstants.STYLE_SHAPE,null);if(null!=d&&"string"===typeof d&&"stencil("==d.substring(0,8))try{var c=d.substring(8,d.length-1),e=mxUtils.parseXml(Graph.decompress(c));return new mxShape(new mxStencil(e.documentElement))}catch(t){null!=window.console&&console.log("Error in shape: "+t)}}return g.apply(this,arguments)}})();mxStencilRegistry.libraries={};mxStencilRegistry.dynamicLoading=!0;mxStencilRegistry.allowEval=!0;mxStencilRegistry.packages=[];
mxStencilRegistry.filesLoaded={};
@@ -2572,32 +2572,32 @@ l.slice();this.model.beginUpdate();try{if(1!=l.length||this.isCellLocked(this.ge
var x=this.getBoundingBoxFromGeometry(b,!0);null!=x&&this.moveCells(b,d-x.x,c-x.y)}}finally{this.model.endUpdate()}}return b};Graph.prototype.encodeCells=function(b){for(var d={},c=this.cloneCells(b,null,d),g=new mxDictionary,e=0;e<b.length;e++)g.put(b[e],!0);for(var k=new mxCodec,f=new mxGraphModel,l=f.getChildAt(f.getRoot(),0),e=0;e<c.length;e++){f.add(l,c[e]);var m=this.view.getState(b[e]);if(null!=m){var p=this.getCellGeometry(c[e]);null!=p&&p.relative&&!this.model.isEdge(b[e])&&null==g.get(this.model.getParent(b[e]))&&
(p.offset=null,p.relative=!1,p.x=m.x/m.view.scale-m.view.translate.x,p.y=m.y/m.view.scale-m.view.translate.y)}}this.updateCustomLinks(this.createCellMapping(d,this.createCellLookup(b)),c);return k.encode(f)};Graph.prototype.isSwimlane=function(b,d){var c=null;null==b||this.model.isEdge(b)||this.model.getParent(b)==this.model.getRoot()||(c=this.getCurrentCellStyle(b,d)[mxConstants.STYLE_SHAPE]);return c==mxConstants.SHAPE_SWIMLANE||"table"==c||"tableRow"==c};var d=Graph.prototype.isExtendParent;Graph.prototype.isExtendParent=
function(b){var c=this.model.getParent(b);if(null!=c){var g=this.getCurrentCellStyle(c);if(null!=g.expand)return"0"!=g.expand}return d.apply(this,arguments)&&(null==c||!this.isTable(c))};var k=Graph.prototype.splitEdge;Graph.prototype.splitEdge=function(b,d,c,g,e,f,l,m){null==m&&(m=this.model.getParent(b),this.isTable(m)||this.isTableRow(m))&&(m=this.getCellAt(f,l,null,!0,!1));c=null;this.model.beginUpdate();try{c=k.apply(this,[b,d,c,g,e,f,l,m]);this.model.setValue(c,"");var p=this.getChildCells(c,
-!0);for(d=0;d<p.length;d++){var x=this.getCellGeometry(p[d]);null!=x&&x.relative&&0<x.x&&this.model.remove(p[d])}var v=this.getChildCells(b,!0);for(d=0;d<v.length;d++)x=this.getCellGeometry(v[d]),null!=x&&x.relative&&0>=x.x&&this.model.remove(v[d]);this.setCellStyles(mxConstants.STYLE_TARGET_PERIMETER_SPACING,null,[c]);this.setCellStyles(mxConstants.STYLE_ENDARROW,mxConstants.NONE,[c]);this.setCellStyles(mxConstants.STYLE_SOURCE_PERIMETER_SPACING,null,[b]);this.setCellStyles(mxConstants.STYLE_STARTARROW,
-mxConstants.NONE,[b]);var n=this.model.getTerminal(c,!1);if(null!=n){var ba=this.getCurrentCellStyle(n);null!=ba&&"1"==ba.snapToPoint&&(this.setCellStyles(mxConstants.STYLE_EXIT_X,null,[b]),this.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[b]),this.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[c]),this.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[c]))}}finally{this.model.endUpdate()}return c};var g=Graph.prototype.selectCell;Graph.prototype.selectCell=function(b,d,c){if(d||c)g.apply(this,arguments);
+!0);for(d=0;d<p.length;d++){var x=this.getCellGeometry(p[d]);null!=x&&x.relative&&0<x.x&&this.model.remove(p[d])}var u=this.getChildCells(b,!0);for(d=0;d<u.length;d++)x=this.getCellGeometry(u[d]),null!=x&&x.relative&&0>=x.x&&this.model.remove(u[d]);this.setCellStyles(mxConstants.STYLE_TARGET_PERIMETER_SPACING,null,[c]);this.setCellStyles(mxConstants.STYLE_ENDARROW,mxConstants.NONE,[c]);this.setCellStyles(mxConstants.STYLE_SOURCE_PERIMETER_SPACING,null,[b]);this.setCellStyles(mxConstants.STYLE_STARTARROW,
+mxConstants.NONE,[b]);var n=this.model.getTerminal(c,!1);if(null!=n){var Z=this.getCurrentCellStyle(n);null!=Z&&"1"==Z.snapToPoint&&(this.setCellStyles(mxConstants.STYLE_EXIT_X,null,[b]),this.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[b]),this.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[c]),this.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[c]))}}finally{this.model.endUpdate()}return c};var g=Graph.prototype.selectCell;Graph.prototype.selectCell=function(b,d,c){if(d||c)g.apply(this,arguments);
else{var e=this.getSelectionCell(),k=null,f=[],l=mxUtils.bind(this,function(d){if(null!=this.view.getState(d)&&(this.model.isVertex(d)||this.model.isEdge(d)))if(f.push(d),d==e)k=f.length-1;else if(b&&null==e&&0<f.length||null!=k&&b&&f.length>k||!b&&0<k)return;for(var c=0;c<this.model.getChildCount(d);c++)l(this.model.getChildAt(d,c))});l(this.model.root);0<f.length&&(k=null!=k?mxUtils.mod(k+(b?1:-1),f.length):0,this.setSelectionCell(f[k]))}};Graph.prototype.swapUmlLifelines=function(b,d){var c=!1;
if(null!=d&&1==b.length){var g=this.view.getState(d),e=this.view.getState(b[0]);if(null!=g&&null!=e&&"umlLifeline"==g.style.shape&&"umlLifeline"==e.style.shape&&(e=this.getCellGeometry(d),g=this.getCellGeometry(b[0]),null!=e&&null!=g)){c=e.clone();e=g.clone();e.x=c.x;e.y=c.y;c.x=g.x;c.y=g.y;this.model.beginUpdate();try{this.model.setGeometry(d,c),this.model.setGeometry(b[0],e)}finally{this.model.endUpdate()}c=!0}}return c};var p=Graph.prototype.moveCells;Graph.prototype.moveCells=function(b,d,c,g,
-e,k,f){if(!g&&this.swapUmlLifelines(b,e))return b;f=null!=f?f:{};if(this.isTable(e)){for(var l=[],m=0;m<b.length;m++)this.isTable(b[m])?l=l.concat(this.model.getChildCells(b[m],!0).reverse()):l.push(b[m]);b=l}this.model.beginUpdate();try{l=[];for(m=0;m<b.length;m++)if(null!=e&&this.isTableRow(b[m])){var x=this.model.getParent(b[m]),v=this.getCellGeometry(b[m]);this.isTable(x)&&l.push(x);if(null!=x&&null!=v&&this.isTable(x)&&this.isTable(e)&&(g||x!=e)){if(!g){var n=this.getCellGeometry(x);null!=n&&
-(n=n.clone(),n.height-=v.height,this.model.setGeometry(x,n))}n=this.getCellGeometry(e);null!=n&&(n=n.clone(),n.height+=v.height,this.model.setGeometry(e,n));var t=this.model.getChildCells(e,!0);if(0<t.length){b[m]=g?this.cloneCell(b[m]):b[m];var ba=this.model.getChildCells(b[m],!0),u=this.model.getChildCells(t[0],!0),y=u.length-ba.length;if(0<y)for(var C=0;C<y;C++){var z=this.cloneCell(ba[ba.length-1]);null!=z&&(z.value="",this.model.add(b[m],z))}else if(0>y)for(C=0;C>y;C--)this.model.remove(ba[ba.length+
-C-1]);ba=this.model.getChildCells(b[m],!0);for(C=0;C<u.length;C++){var J=this.getCellGeometry(u[C]),na=this.getCellGeometry(ba[C]);null!=J&&null!=na&&(na=na.clone(),na.width=J.width,this.model.setGeometry(ba[C],na))}}}}for(var q=p.apply(this,arguments),m=0;m<l.length;m++)!g&&this.model.contains(l[m])&&0==this.model.getChildCount(l[m])&&this.model.remove(l[m]);g&&this.updateCustomLinks(this.createCellMapping(f,this.createCellLookup(b)),q)}finally{this.model.endUpdate()}return q};var m=Graph.prototype.removeCells;
+e,k,f){if(!g&&this.swapUmlLifelines(b,e))return b;f=null!=f?f:{};if(this.isTable(e)){for(var l=[],m=0;m<b.length;m++)this.isTable(b[m])?l=l.concat(this.model.getChildCells(b[m],!0).reverse()):l.push(b[m]);b=l}this.model.beginUpdate();try{l=[];for(m=0;m<b.length;m++)if(null!=e&&this.isTableRow(b[m])){var x=this.model.getParent(b[m]),u=this.getCellGeometry(b[m]);this.isTable(x)&&l.push(x);if(null!=x&&null!=u&&this.isTable(x)&&this.isTable(e)&&(g||x!=e)){if(!g){var n=this.getCellGeometry(x);null!=n&&
+(n=n.clone(),n.height-=u.height,this.model.setGeometry(x,n))}n=this.getCellGeometry(e);null!=n&&(n=n.clone(),n.height+=u.height,this.model.setGeometry(e,n));var Z=this.model.getChildCells(e,!0);if(0<Z.length){b[m]=g?this.cloneCell(b[m]):b[m];var t=this.model.getChildCells(b[m],!0),v=this.model.getChildCells(Z[0],!0),y=v.length-t.length;if(0<y)for(var C=0;C<y;C++){var z=this.cloneCell(t[t.length-1]);null!=z&&(z.value="",this.model.add(b[m],z))}else if(0>y)for(C=0;C>y;C--)this.model.remove(t[t.length+
+C-1]);t=this.model.getChildCells(b[m],!0);for(C=0;C<v.length;C++){var J=this.getCellGeometry(v[C]),la=this.getCellGeometry(t[C]);null!=J&&null!=la&&(la=la.clone(),la.width=J.width,this.model.setGeometry(t[C],la))}}}}for(var q=p.apply(this,arguments),m=0;m<l.length;m++)!g&&this.model.contains(l[m])&&0==this.model.getChildCount(l[m])&&this.model.remove(l[m]);g&&this.updateCustomLinks(this.createCellMapping(f,this.createCellLookup(b)),q)}finally{this.model.endUpdate()}return q};var m=Graph.prototype.removeCells;
Graph.prototype.removeCells=function(b,d){var c=[];this.model.beginUpdate();try{for(var g=0;g<b.length;g++)if(this.isTableCell(b[g])){var e=this.model.getParent(b[g]),k=this.model.getParent(e);1==this.model.getChildCount(e)&&1==this.model.getChildCount(k)?0>mxUtils.indexOf(b,k)&&0>mxUtils.indexOf(c,k)&&c.push(k):this.labelChanged(b[g],"")}else{if(this.isTableRow(b[g])&&(k=this.model.getParent(b[g]),0>mxUtils.indexOf(b,k)&&0>mxUtils.indexOf(c,k))){for(var f=this.model.getChildCells(k,!0),l=0,p=0;p<
f.length;p++)0<=mxUtils.indexOf(b,f[p])&&l++;l==f.length&&c.push(k)}c.push(b[g])}c=m.apply(this,[c,d])}finally{this.model.endUpdate()}return c};Graph.prototype.updateCustomLinks=function(b,d,c){c=null!=c?c:new Graph;for(var g=0;g<d.length;g++)null!=d[g]&&c.updateCustomLinksForCell(b,d[g],c)};Graph.prototype.updateCustomLinksForCell=function(b,d){this.doUpdateCustomLinksForCell(b,d);for(var c=this.model.getChildCount(d),g=0;g<c;g++)this.updateCustomLinksForCell(b,this.model.getChildAt(d,g))};Graph.prototype.doUpdateCustomLinksForCell=
-function(b,d){};Graph.prototype.getAllConnectionConstraints=function(b,d){if(null!=b){var c=mxUtils.getValue(b.style,"points",null);if(null!=c){var g=[];try{for(var e=JSON.parse(c),c=0;c<e.length;c++){var k=e[c];g.push(new mxConnectionConstraint(new mxPoint(k[0],k[1]),2<k.length?"0"!=k[2]:!0,null,3<k.length?k[3]:0,4<k.length?k[4]:0))}}catch(Z){}return g}if(null!=b.shape&&null!=b.shape.bounds){k=b.shape.direction;e=b.shape.bounds;c=b.shape.scale;g=e.width/c;e=e.height/c;if(k==mxConstants.DIRECTION_NORTH||
+function(b,d){};Graph.prototype.getAllConnectionConstraints=function(b,d){if(null!=b){var c=mxUtils.getValue(b.style,"points",null);if(null!=c){var g=[];try{for(var e=JSON.parse(c),c=0;c<e.length;c++){var k=e[c];g.push(new mxConnectionConstraint(new mxPoint(k[0],k[1]),2<k.length?"0"!=k[2]:!0,null,3<k.length?k[3]:0,4<k.length?k[4]:0))}}catch(aa){}return g}if(null!=b.shape&&null!=b.shape.bounds){k=b.shape.direction;e=b.shape.bounds;c=b.shape.scale;g=e.width/c;e=e.height/c;if(k==mxConstants.DIRECTION_NORTH||
k==mxConstants.DIRECTION_SOUTH)k=g,g=e,e=k;c=b.shape.getConstraints(b.style,g,e);if(null!=c)return c;if(null!=b.shape.stencil&&null!=b.shape.stencil.constraints)return b.shape.stencil.constraints;if(null!=b.shape.constraints)return b.shape.constraints}}return null};Graph.prototype.flipEdge=function(b){if(null!=b){var d=this.getCurrentCellStyle(b),d=mxUtils.getValue(d,mxConstants.STYLE_ELBOW,mxConstants.ELBOW_HORIZONTAL)==mxConstants.ELBOW_HORIZONTAL?mxConstants.ELBOW_VERTICAL:mxConstants.ELBOW_HORIZONTAL;
this.setCellStyles(mxConstants.STYLE_ELBOW,d,[b])}};Graph.prototype.isValidRoot=function(b){for(var d=this.model.getChildCount(b),c=0,g=0;g<d;g++){var e=this.model.getChildAt(b,g);this.model.isVertex(e)&&(e=this.getCellGeometry(e),null==e||e.relative||c++)}return 0<c||this.isContainer(b)};Graph.prototype.isValidDropTarget=function(b,d,c){for(var g=this.getCurrentCellStyle(b),e=!0,k=!0,f=0;f<d.length&&k;f++)e=e&&this.isTable(d[f]),k=k&&this.isTableRow(d[f]);return("1"!=mxUtils.getValue(g,"part","0")||
this.isContainer(b))&&"0"!=mxUtils.getValue(g,"dropTarget","1")&&(mxGraph.prototype.isValidDropTarget.apply(this,arguments)||this.isContainer(b))&&!this.isTableRow(b)&&(!this.isTable(b)||k||e)&&!this.isCellLocked(b)};Graph.prototype.createGroupCell=function(){var b=mxGraph.prototype.createGroupCell.apply(this,arguments);b.setStyle("group");return b};Graph.prototype.isExtendParentsOnAdd=function(b){var d=mxGraph.prototype.isExtendParentsOnAdd.apply(this,arguments);if(d&&null!=b&&null!=this.layoutManager){var c=
this.model.getParent(b);null!=c&&(c=this.layoutManager.getLayout(c),null!=c&&c.constructor==mxStackLayout&&(d=!1))}return d};Graph.prototype.getPreferredSizeForCell=function(b){var d=mxGraph.prototype.getPreferredSizeForCell.apply(this,arguments);null!=d&&(d.width+=10,d.height+=4,this.gridEnabled&&(d.width=this.snap(d.width),d.height=this.snap(d.height)));return d};Graph.prototype.turnShapes=function(b,d){var c=this.getModel(),g=[];c.beginUpdate();try{for(var e=0;e<b.length;e++){var k=b[e];if(c.isEdge(k)){var f=
-c.getTerminal(k,!0),l=c.getTerminal(k,!1);c.setTerminal(k,l,!0);c.setTerminal(k,f,!1);var m=c.getGeometry(k);if(null!=m){m=m.clone();null!=m.points&&m.points.reverse();var p=m.getTerminalPoint(!0),x=m.getTerminalPoint(!1);m.setTerminalPoint(p,!1);m.setTerminalPoint(x,!0);c.setGeometry(k,m);var v=this.view.getState(k),n=this.view.getState(f),t=this.view.getState(l);if(null!=v){var u=null!=n?this.getConnectionConstraint(v,n,!0):null,ba=null!=t?this.getConnectionConstraint(v,t,!1):null;this.setConnectionConstraint(k,
-f,!0,ba);this.setConnectionConstraint(k,l,!1,u);var y=mxUtils.getValue(v.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING);this.setCellStyles(mxConstants.STYLE_SOURCE_PERIMETER_SPACING,mxUtils.getValue(v.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING),[k]);this.setCellStyles(mxConstants.STYLE_TARGET_PERIMETER_SPACING,y,[k])}g.push(k)}}else if(c.isVertex(k)&&(m=this.getCellGeometry(k),null!=m)){if(!(this.isTable(k)||this.isTableRow(k)||this.isTableCell(k)||this.isSwimlane(k))){m=m.clone();m.x+=m.width/
+c.getTerminal(k,!0),l=c.getTerminal(k,!1);c.setTerminal(k,l,!0);c.setTerminal(k,f,!1);var m=c.getGeometry(k);if(null!=m){m=m.clone();null!=m.points&&m.points.reverse();var p=m.getTerminalPoint(!0),x=m.getTerminalPoint(!1);m.setTerminalPoint(p,!1);m.setTerminalPoint(x,!0);c.setGeometry(k,m);var u=this.view.getState(k),n=this.view.getState(f),t=this.view.getState(l);if(null!=u){var v=null!=n?this.getConnectionConstraint(u,n,!0):null,Z=null!=t?this.getConnectionConstraint(u,t,!1):null;this.setConnectionConstraint(k,
+f,!0,Z);this.setConnectionConstraint(k,l,!1,v);var y=mxUtils.getValue(u.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING);this.setCellStyles(mxConstants.STYLE_SOURCE_PERIMETER_SPACING,mxUtils.getValue(u.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING),[k]);this.setCellStyles(mxConstants.STYLE_TARGET_PERIMETER_SPACING,y,[k])}g.push(k)}}else if(c.isVertex(k)&&(m=this.getCellGeometry(k),null!=m)){if(!(this.isTable(k)||this.isTableRow(k)||this.isTableCell(k)||this.isSwimlane(k))){m=m.clone();m.x+=m.width/
2-m.height/2;m.y+=m.height/2-m.width/2;var C=m.width;m.width=m.height;m.height=C;c.setGeometry(k,m)}var z=this.view.getState(k);if(null!=z){var J=[mxConstants.DIRECTION_EAST,mxConstants.DIRECTION_SOUTH,mxConstants.DIRECTION_WEST,mxConstants.DIRECTION_NORTH],q=mxUtils.getValue(z.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST);this.setCellStyles(mxConstants.STYLE_DIRECTION,J[mxUtils.mod(mxUtils.indexOf(J,q)+(d?-1:1),J.length)],[k])}g.push(k)}}}finally{c.endUpdate()}return g};Graph.prototype.stencilHasPlaceholders=
-function(b){if(null!=b&&null!=b.fgNode)for(b=b.fgNode.firstChild;null!=b;){if("text"==b.nodeName&&"1"==b.getAttribute("placeholders"))return!0;b=b.nextSibling}return!1};var v=Graph.prototype.processChange;Graph.prototype.processChange=function(b){if(b instanceof mxGeometryChange&&(this.isTableCell(b.cell)||this.isTableRow(b.cell))&&(null==b.previous&&null!=b.geometry||null!=b.previous&&!b.previous.equals(b.geometry))){var d=b.cell;this.isTableCell(d)&&(d=this.model.getParent(d));this.isTableRow(d)&&
-(d=this.model.getParent(d));var c=this.view.getState(d);null!=c&&null!=c.shape&&(this.view.invalidate(d),c.shape.bounds=null)}v.apply(this,arguments);b instanceof mxValueChange&&null!=b.cell&&null!=b.cell.value&&"object"==typeof b.cell.value&&this.invalidateDescendantsWithPlaceholders(b.cell)};Graph.prototype.invalidateDescendantsWithPlaceholders=function(b){b=this.model.getDescendants(b);if(0<b.length)for(var d=0;d<b.length;d++){var c=this.view.getState(b[d]);null!=c&&null!=c.shape&&null!=c.shape.stencil&&
+function(b){if(null!=b&&null!=b.fgNode)for(b=b.fgNode.firstChild;null!=b;){if("text"==b.nodeName&&"1"==b.getAttribute("placeholders"))return!0;b=b.nextSibling}return!1};var u=Graph.prototype.processChange;Graph.prototype.processChange=function(b){if(b instanceof mxGeometryChange&&(this.isTableCell(b.cell)||this.isTableRow(b.cell))&&(null==b.previous&&null!=b.geometry||null!=b.previous&&!b.previous.equals(b.geometry))){var d=b.cell;this.isTableCell(d)&&(d=this.model.getParent(d));this.isTableRow(d)&&
+(d=this.model.getParent(d));var c=this.view.getState(d);null!=c&&null!=c.shape&&(this.view.invalidate(d),c.shape.bounds=null)}u.apply(this,arguments);b instanceof mxValueChange&&null!=b.cell&&null!=b.cell.value&&"object"==typeof b.cell.value&&this.invalidateDescendantsWithPlaceholders(b.cell)};Graph.prototype.invalidateDescendantsWithPlaceholders=function(b){b=this.model.getDescendants(b);if(0<b.length)for(var d=0;d<b.length;d++){var c=this.view.getState(b[d]);null!=c&&null!=c.shape&&null!=c.shape.stencil&&
this.stencilHasPlaceholders(c.shape.stencil)?this.removeStateForCell(b[d]):this.isReplacePlaceholders(b[d])&&this.view.invalidate(b[d],!1,!1)}};Graph.prototype.replaceElement=function(b,d){for(var c=b.ownerDocument.createElement(null!=d?d:"span"),g=Array.prototype.slice.call(b.attributes);attr=g.pop();)c.setAttribute(attr.nodeName,attr.nodeValue);c.innerHTML=b.innerHTML;b.parentNode.replaceChild(c,b)};Graph.prototype.processElements=function(b,d){if(null!=b)for(var c=b.getElementsByTagName("*"),g=
0;g<c.length;g++)d(c[g])};Graph.prototype.updateLabelElements=function(b,d,c){b=null!=b?b:this.getSelectionCells();for(var g=document.createElement("div"),e=0;e<b.length;e++)if(this.isHtmlLabel(b[e])){var k=this.convertValueToString(b[e]);if(null!=k&&0<k.length){g.innerHTML=k;for(var f=g.getElementsByTagName(null!=c?c:"*"),l=0;l<f.length;l++)d(f[l]);g.innerHTML!=k&&this.cellLabelChanged(b[e],g.innerHTML)}}};Graph.prototype.cellLabelChanged=function(b,d,c){d=Graph.zapGremlins(d);this.model.beginUpdate();
try{if(null!=b.value&&"object"==typeof b.value){if(this.isReplacePlaceholders(b)&&null!=b.getAttribute("placeholder"))for(var g=b.getAttribute("placeholder"),e=b;null!=e;){if(e==this.model.getRoot()||null!=e.value&&"object"==typeof e.value&&e.hasAttribute(g)){this.setAttributeForCell(e,g,d);break}e=this.model.getParent(e)}var k=b.value.cloneNode(!0);Graph.translateDiagram&&null!=Graph.diagramLanguage&&k.hasAttribute("label_"+Graph.diagramLanguage)?k.setAttribute("label_"+Graph.diagramLanguage,d):
k.setAttribute("label",d);d=k}mxGraph.prototype.cellLabelChanged.apply(this,arguments)}finally{this.model.endUpdate()}};Graph.prototype.cellsRemoved=function(b){if(null!=b){for(var d=new mxDictionary,c=0;c<b.length;c++)d.put(b[c],!0);for(var g=[],c=0;c<b.length;c++){var e=this.model.getParent(b[c]);null==e||d.get(e)||(d.put(e,!0),g.push(e))}for(c=0;c<g.length;c++)if(e=this.view.getState(g[c]),null!=e&&(this.model.isEdge(e.cell)||this.model.isVertex(e.cell))&&this.isCellDeletable(e.cell)&&this.isTransparentState(e)){for(var k=
!0,f=0;f<this.model.getChildCount(e.cell)&&k;f++)d.get(this.model.getChildAt(e.cell,f))||(k=!1);k&&b.push(e.cell)}}mxGraph.prototype.cellsRemoved.apply(this,arguments)};Graph.prototype.removeCellsAfterUngroup=function(b){for(var d=[],c=0;c<b.length;c++)this.isCellDeletable(b[c])&&this.isTransparentState(this.view.getState(b[c]))&&d.push(b[c]);b=d;mxGraph.prototype.removeCellsAfterUngroup.apply(this,arguments)};Graph.prototype.setLinkForCell=function(b,d){this.setAttributeForCell(b,"link",d)};Graph.prototype.setTooltipForCell=
function(b,d){var c="tooltip";Graph.translateDiagram&&null!=Graph.diagramLanguage&&mxUtils.isNode(b.value)&&b.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(c="tooltip_"+Graph.diagramLanguage);this.setAttributeForCell(b,c,d)};Graph.prototype.getAttributeForCell=function(b,d,c){b=null!=b.value&&"object"===typeof b.value?b.value.getAttribute(d):null;return null!=b?b:c};Graph.prototype.setAttributeForCell=function(b,d,c){var g;null!=b.value&&"object"==typeof b.value?g=b.value.cloneNode(!0):(g=
-mxUtils.createXmlDocument().createElement("UserObject"),g.setAttribute("label",b.value||""));null!=c?g.setAttribute(d,c):g.removeAttribute(d);this.model.setValue(b,g)};var u=Graph.prototype.getDropTarget;Graph.prototype.getDropTarget=function(b,d,c,g){this.getModel();if(mxEvent.isAltDown(d))return null;for(var e=0;e<b.length;e++){var k=this.model.getParent(b[e]);if(this.model.isEdge(k)&&0>mxUtils.indexOf(b,k))return null}for(var k=u.apply(this,arguments),f=!0,e=0;e<b.length&&f;e++)f=f&&this.isTableRow(b[e]);
+mxUtils.createXmlDocument().createElement("UserObject"),g.setAttribute("label",b.value||""));null!=c?g.setAttribute(d,c):g.removeAttribute(d);this.model.setValue(b,g)};var v=Graph.prototype.getDropTarget;Graph.prototype.getDropTarget=function(b,d,c,g){this.getModel();if(mxEvent.isAltDown(d))return null;for(var e=0;e<b.length;e++){var k=this.model.getParent(b[e]);if(this.model.isEdge(k)&&0>mxUtils.indexOf(b,k))return null}for(var k=v.apply(this,arguments),f=!0,e=0;e<b.length&&f;e++)f=f&&this.isTableRow(b[e]);
f&&(this.isTableCell(k)&&(k=this.model.getParent(k)),this.isTableRow(k)&&(k=this.model.getParent(k)),this.isTable(k)||(k=null));return k};Graph.prototype.click=function(b){mxGraph.prototype.click.call(this,b);this.firstClickState=b.getState();this.firstClickSource=b.getSource()};Graph.prototype.dblClick=function(b,d){this.isEnabled()&&(d=this.insertTextForEvent(b,d),mxGraph.prototype.dblClick.call(this,b,d))};Graph.prototype.insertTextForEvent=function(b,d){var c=mxUtils.convertPoint(this.container,
mxEvent.getClientX(b),mxEvent.getClientY(b));if(null!=b&&!this.model.isVertex(d)){var g=this.model.isEdge(d)?this.view.getState(d):null,e=mxEvent.getSource(b);this.firstClickState!=g||this.firstClickSource!=e||null!=g&&null!=g.text&&null!=g.text.node&&null!=g.text.boundingBox&&(mxUtils.contains(g.text.boundingBox,c.x,c.y)||mxUtils.isAncestorNode(g.text.node,mxEvent.getSource(b)))||(null!=g||this.isCellLocked(this.getDefaultParent()))&&(null==g||this.isCellLocked(g.cell))||!(null!=g||mxClient.IS_SVG&&
e==this.view.getCanvas().ownerSVGElement)||(null==g&&(g=this.view.getState(this.getCellAt(c.x,c.y))),d=this.addText(c.x,c.y,g))}return d};Graph.prototype.getInsertPoint=function(){var b=this.getGridSize(),d=this.container.scrollLeft/this.view.scale-this.view.translate.x,c=this.container.scrollTop/this.view.scale-this.view.translate.y;if(this.pageVisible)var g=this.getPageLayout(),e=this.getPageSize(),d=Math.max(d,g.x*e.width),c=Math.max(c,g.y*e.height);return new mxPoint(this.snap(d+b),this.snap(c+
@@ -2612,88 +2612,88 @@ c&&"a"!=c.nodeName.toLowerCase();)c=c.parentNode;null!=c?this.clear():(null!=f.t
f.container.scrollLeft)<k&&Math.abs(this.scrollTop-f.container.scrollTop)<k&&(null==g.sourceState||!g.isSource(g.sourceState.control))&&((mxEvent.isLeftMouseButton(l)||mxEvent.isMiddleMouseButton(l))&&!mxEvent.isPopupTrigger(l)||mxEvent.isTouchEvent(l))&&(null!=this.currentLink?(e=f.isBlankLink(this.currentLink),"data:"!==this.currentLink.substring(0,5)&&e||null==d||d(l,this.currentLink),mxEvent.isConsumed(l)||(l=null!=this.currentTarget?this.currentTarget:mxEvent.isMiddleMouseButton(l)?"_blank":
e?f.linkTarget:"_top",f.openLink(this.currentLink,l),g.consume())):null!=c&&!g.isConsumed()&&Math.abs(this.scrollLeft-f.container.scrollLeft)<k&&Math.abs(this.scrollTop-f.container.scrollTop)<k&&Math.abs(this.startX-g.getGraphX())<k&&Math.abs(this.startY-g.getGraphY())<k&&c(g.getEvent()));this.clear()},activate:function(b){this.currentLink=f.getAbsoluteUrl(f.getLinkForCell(b.cell));null!=this.currentLink&&(this.currentTarget=f.getLinkTargetForCell(b.cell),f.container.style.cursor="pointer",null!=
this.highlight&&this.highlight.highlight(b))},clear:function(){null!=f.container&&(f.container.style.cursor=e);this.currentLink=this.currentState=this.currentTarget=null;null!=this.highlight&&this.highlight.hide();null!=f.tooltipHandler&&f.tooltipHandler.hide()}};f.click=function(b){};f.addMouseListener(l);mxEvent.addListener(document,"mouseleave",function(b){l.clear()})};Graph.prototype.duplicateCells=function(b,d){b=null!=b?b:this.getSelectionCells();d=null!=d?d:!0;for(var c=0;c<b.length;c++)this.isTableCell(b[c])&&
-(b[c]=this.model.getParent(b[c]));b=this.model.getTopmostCells(b);var g=this.getModel(),e=this.gridSize,k=[];g.beginUpdate();try{for(var f={},l=this.createCellLookup(b),m=this.cloneCells(b,!1,f,!0),c=0;c<b.length;c++){var p=g.getParent(b[c]);if(null!=p){var x=this.moveCells([m[c]],e,e,!1)[0];k.push(x);if(d)g.add(p,m[c]);else{var v=p.getIndex(b[c]);g.add(p,m[c],v+1)}if(this.isTable(p)){var n=this.getCellGeometry(m[c]),t=this.getCellGeometry(p);null!=n&&null!=t&&(t=t.clone(),t.height+=n.height,g.setGeometry(p,
+(b[c]=this.model.getParent(b[c]));b=this.model.getTopmostCells(b);var g=this.getModel(),e=this.gridSize,k=[];g.beginUpdate();try{for(var f={},l=this.createCellLookup(b),m=this.cloneCells(b,!1,f,!0),c=0;c<b.length;c++){var p=g.getParent(b[c]);if(null!=p){var x=this.moveCells([m[c]],e,e,!1)[0];k.push(x);if(d)g.add(p,m[c]);else{var u=p.getIndex(b[c]);g.add(p,m[c],u+1)}if(this.isTable(p)){var n=this.getCellGeometry(m[c]),t=this.getCellGeometry(p);null!=n&&null!=t&&(t=t.clone(),t.height+=n.height,g.setGeometry(p,
t))}}else k.push(m[c])}this.updateCustomLinks(this.createCellMapping(f,l),m,this);this.fireEvent(new mxEventObject(mxEvent.CELLS_ADDED,"cells",m))}finally{g.endUpdate()}return k};Graph.prototype.insertImage=function(b,d,c){if(null!=b&&null!=this.cellEditor.textarea){for(var g=this.cellEditor.textarea.getElementsByTagName("img"),e=[],k=0;k<g.length;k++)e.push(g[k]);document.execCommand("insertimage",!1,b);b=this.cellEditor.textarea.getElementsByTagName("img");if(b.length==e.length+1)for(k=b.length-
1;0<=k;k--)if(0==k||b[k]!=e[k-1]){b[k].setAttribute("width",d);b[k].setAttribute("height",c);break}}};Graph.prototype.insertLink=function(b){if(null!=this.cellEditor.textarea)if(0==b.length)document.execCommand("unlink",!1);else if(mxClient.IS_FF){for(var d=this.cellEditor.textarea.getElementsByTagName("a"),c=[],g=0;g<d.length;g++)c.push(d[g]);document.execCommand("createlink",!1,mxUtils.trim(b));d=this.cellEditor.textarea.getElementsByTagName("a");if(d.length==c.length+1)for(g=d.length-1;0<=g;g--)if(d[g]!=
c[g-1]){for(d=d[g].getElementsByTagName("a");0<d.length;){for(c=d[0].parentNode;null!=d[0].firstChild;)c.insertBefore(d[0].firstChild,d[0]);c.removeChild(d[0])}break}}else document.execCommand("createlink",!1,mxUtils.trim(b))};Graph.prototype.isCellResizable=function(b){var d=mxGraph.prototype.isCellResizable.apply(this,arguments),c=this.getCurrentCellStyle(b);return!this.isTableCell(b)&&!this.isTableRow(b)&&(d||"0"!=mxUtils.getValue(c,mxConstants.STYLE_RESIZABLE,"1")&&"wrap"==c[mxConstants.STYLE_WHITE_SPACE])};
Graph.prototype.distributeCells=function(b,d){null==d&&(d=this.getSelectionCells());if(null!=d&&1<d.length){for(var c=[],g=null,e=null,k=0;k<d.length;k++)if(this.getModel().isVertex(d[k])){var f=this.view.getState(d[k]);if(null!=f){var l=b?f.getCenterX():f.getCenterY(),g=null!=g?Math.max(g,l):l,e=null!=e?Math.min(e,l):l;c.push(f)}}if(2<c.length){c.sort(function(d,c){return b?d.x-c.x:d.y-c.y});f=this.view.translate;l=this.view.scale;e=e/l-(b?f.x:f.y);g=g/l-(b?f.x:f.y);this.getModel().beginUpdate();
try{for(var m=(g-e)/(c.length-1),g=e,k=1;k<c.length-1;k++){var p=this.view.getState(this.model.getParent(c[k].cell)),x=this.getCellGeometry(c[k].cell),g=g+m;null!=x&&null!=p&&(x=x.clone(),b?x.x=Math.round(g-x.width/2)-p.origin.x:x.y=Math.round(g-x.height/2)-p.origin.y,this.getModel().setGeometry(c[k].cell,x))}}finally{this.getModel().endUpdate()}}}return d};Graph.prototype.isCloneEvent=function(b){return mxClient.IS_MAC&&mxEvent.isMetaDown(b)||mxEvent.isControlDown(b)};Graph.prototype.createSvgImageExport=
-function(){var b=new mxImageExport;b.getLinkForCellState=mxUtils.bind(this,function(b,d){return this.getLinkForCell(b.cell)});return b};Graph.prototype.parseBackgroundImage=function(b){var d=null;null!=b&&0<b.length&&(b=JSON.parse(b),d=new mxImage(b.src,b.width,b.height));return d};Graph.prototype.getBackgroundImageObject=function(b){return b};Graph.prototype.getSvg=function(b,d,c,g,e,k,f,l,m,p,x,v,n,t){var u=null;if(null!=t)for(u=new mxDictionary,x=0;x<t.length;x++)u.put(t[x],!0);if(t=this.useCssTransforms)this.useCssTransforms=
-!1,this.view.revalidate(),this.sizeDidChange();try{d=null!=d?d:1;c=null!=c?c:0;e=null!=e?e:!0;k=null!=k?k:!0;f=null!=f?f:!0;p=null!=p?p:!1;var y="page"==n?this.view.getBackgroundPageBounds():k&&null==u||g||"diagram"==n?this.getGraphBounds():this.getBoundingBox(this.getSelectionCells()),C=this.view.scale;"diagram"==n&&null!=this.backgroundImage&&(y=mxRectangle.fromRectangle(y),y.add(new mxRectangle((this.view.translate.x+this.backgroundImage.x)*C,(this.view.translate.y+this.backgroundImage.y)*C,this.backgroundImage.width*
+function(){var b=new mxImageExport;b.getLinkForCellState=mxUtils.bind(this,function(b,d){return this.getLinkForCell(b.cell)});return b};Graph.prototype.parseBackgroundImage=function(b){var d=null;null!=b&&0<b.length&&(b=JSON.parse(b),d=new mxImage(b.src,b.width,b.height));return d};Graph.prototype.getBackgroundImageObject=function(b){return b};Graph.prototype.getSvg=function(b,d,c,g,e,k,f,l,m,p,x,u,n,t){var v=null;if(null!=t)for(v=new mxDictionary,x=0;x<t.length;x++)v.put(t[x],!0);if(t=this.useCssTransforms)this.useCssTransforms=
+!1,this.view.revalidate(),this.sizeDidChange();try{d=null!=d?d:1;c=null!=c?c:0;e=null!=e?e:!0;k=null!=k?k:!0;f=null!=f?f:!0;p=null!=p?p:!1;var y="page"==n?this.view.getBackgroundPageBounds():k&&null==v||g||"diagram"==n?this.getGraphBounds():this.getBoundingBox(this.getSelectionCells()),C=this.view.scale;"diagram"==n&&null!=this.backgroundImage&&(y=mxRectangle.fromRectangle(y),y.add(new mxRectangle((this.view.translate.x+this.backgroundImage.x)*C,(this.view.translate.y+this.backgroundImage.y)*C,this.backgroundImage.width*
C,this.backgroundImage.height*C)));if(null==y)throw Error(mxResources.get("drawingEmpty"));var z=mxUtils.createXmlDocument(),J=null!=z.createElementNS?z.createElementNS(mxConstants.NS_SVG,"svg"):z.createElement("svg");null!=b&&(null!=J.style?J.style.backgroundColor=b:J.setAttribute("style","background-color:"+b));null==z.createElementNS?(J.setAttribute("xmlns",mxConstants.NS_SVG),J.setAttribute("xmlns:xlink",mxConstants.NS_XLINK)):J.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",mxConstants.NS_XLINK);
-b=d/C;var q=Math.max(1,Math.ceil(y.width*b)+2*c)+(p&&0==c?5:0),ba=Math.max(1,Math.ceil(y.height*b)+2*c)+(p&&0==c?5:0);J.setAttribute("version","1.1");J.setAttribute("width",q+"px");J.setAttribute("height",ba+"px");J.setAttribute("viewBox",(e?"-0.5 -0.5":"0 0")+" "+q+" "+ba);z.appendChild(J);var da=null!=z.createElementNS?z.createElementNS(mxConstants.NS_SVG,"g"):z.createElement("g");J.appendChild(da);var A=this.createSvgCanvas(da);A.foOffset=e?-.5:0;A.textOffset=e?-.5:0;A.imageOffset=e?-.5:0;A.translate(Math.floor(c/
-d-y.x/C),Math.floor(c/d-y.y/C));var K=document.createElement("div"),ca=A.getAlternateText;A.getAlternateText=function(b,d,c,g,e,k,f,l,m,p,x,v,n){if(null!=k&&0<this.state.fontSize)try{mxUtils.isNode(k)?k=k.innerText:(K.innerHTML=k,k=mxUtils.extractTextWithWhitespace(K.childNodes));for(var t=Math.ceil(2*g/this.state.fontSize),u=[],B=0,wa=0;(0==t||B<t)&&wa<k.length;){var Ta=k.charCodeAt(wa);if(10==Ta||13==Ta){if(0<B)break}else u.push(k.charAt(wa)),255>Ta&&B++;wa++}u.length<k.length&&1<k.length-u.length&&
-(k=mxUtils.trim(u.join(""))+"...");return k}catch(Ja){return ca.apply(this,arguments)}else return ca.apply(this,arguments)};var V=this.backgroundImage;if(null!=V){d=C/d;var aa=this.view.translate,na=new mxRectangle((V.x+aa.x)*d,(V.y+aa.y)*d,V.width*d,V.height*d);mxUtils.intersects(y,na)&&A.image(V.x+aa.x,V.y+aa.y,V.width,V.height,V.src,!0)}A.scale(b);A.textEnabled=f;l=null!=l?l:this.createSvgImageExport();var G=l.drawCellState,P=l.getLinkForCellState;l.getLinkForCellState=function(b,d){var c=P.apply(this,
-arguments);return null==c||b.view.graph.isCustomLink(c)?null:c};l.getLinkTargetForCellState=function(b,d){return b.view.graph.getLinkTargetForCell(b.cell)};l.drawCellState=function(b,d){for(var c=b.view.graph,g=null!=u?u.get(b.cell):c.isCellSelected(b.cell),e=c.model.getParent(b.cell);!(k&&null==u||g)&&null!=e;)g=null!=u?u.get(e):c.isCellSelected(e),e=c.model.getParent(e);(k&&null==u||g)&&G.apply(this,arguments)};l.drawState(this.getView().getState(this.model.root),A);this.updateSvgLinks(J,m,!0);
-this.addForeignObjectWarning(A,J);return J}finally{t&&(this.useCssTransforms=!0,this.view.revalidate(),this.sizeDidChange())}};Graph.prototype.addForeignObjectWarning=function(b,d){if("0"!=urlParams["svg-warning"]&&0<d.getElementsByTagName("foreignObject").length){var c=b.createElement("switch"),g=b.createElement("g");g.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility");var e=b.createElement("a");e.setAttribute("transform","translate(0,-5)");null==e.setAttributeNS||
+b=d/C;var q=Math.max(1,Math.ceil(y.width*b)+2*c)+(p&&0==c?5:0),Z=Math.max(1,Math.ceil(y.height*b)+2*c)+(p&&0==c?5:0);J.setAttribute("version","1.1");J.setAttribute("width",q+"px");J.setAttribute("height",Z+"px");J.setAttribute("viewBox",(e?"-0.5 -0.5":"0 0")+" "+q+" "+Z);z.appendChild(J);var K=null!=z.createElementNS?z.createElementNS(mxConstants.NS_SVG,"g"):z.createElement("g");J.appendChild(K);var B=this.createSvgCanvas(K);B.foOffset=e?-.5:0;B.textOffset=e?-.5:0;B.imageOffset=e?-.5:0;B.translate(Math.floor(c/
+d-y.x/C),Math.floor(c/d-y.y/C));var M=document.createElement("div"),ca=B.getAlternateText;B.getAlternateText=function(b,d,c,g,e,k,f,l,m,p,x,u,n){if(null!=k&&0<this.state.fontSize)try{mxUtils.isNode(k)?k=k.innerText:(M.innerHTML=k,k=mxUtils.extractTextWithWhitespace(M.childNodes));for(var t=Math.ceil(2*g/this.state.fontSize),v=[],A=0,va=0;(0==t||A<t)&&va<k.length;){var Ua=k.charCodeAt(va);if(10==Ua||13==Ua){if(0<A)break}else v.push(k.charAt(va)),255>Ua&&A++;va++}v.length<k.length&&1<k.length-v.length&&
+(k=mxUtils.trim(v.join(""))+"...");return k}catch(Ja){return ca.apply(this,arguments)}else return ca.apply(this,arguments)};var X=this.backgroundImage;if(null!=X){d=C/d;var ka=this.view.translate,la=new mxRectangle((X.x+ka.x)*d,(X.y+ka.y)*d,X.width*d,X.height*d);mxUtils.intersects(y,la)&&B.image(X.x+ka.x,X.y+ka.y,X.width,X.height,X.src,!0)}B.scale(b);B.textEnabled=f;l=null!=l?l:this.createSvgImageExport();var G=l.drawCellState,P=l.getLinkForCellState;l.getLinkForCellState=function(b,d){var c=P.apply(this,
+arguments);return null==c||b.view.graph.isCustomLink(c)?null:c};l.getLinkTargetForCellState=function(b,d){return b.view.graph.getLinkTargetForCell(b.cell)};l.drawCellState=function(b,d){for(var c=b.view.graph,g=null!=v?v.get(b.cell):c.isCellSelected(b.cell),e=c.model.getParent(b.cell);!(k&&null==v||g)&&null!=e;)g=null!=v?v.get(e):c.isCellSelected(e),e=c.model.getParent(e);(k&&null==v||g)&&G.apply(this,arguments)};l.drawState(this.getView().getState(this.model.root),B);this.updateSvgLinks(J,m,!0);
+this.addForeignObjectWarning(B,J);return J}finally{t&&(this.useCssTransforms=!0,this.view.revalidate(),this.sizeDidChange())}};Graph.prototype.addForeignObjectWarning=function(b,d){if("0"!=urlParams["svg-warning"]&&0<d.getElementsByTagName("foreignObject").length){var c=b.createElement("switch"),g=b.createElement("g");g.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility");var e=b.createElement("a");e.setAttribute("transform","translate(0,-5)");null==e.setAttributeNS||
d.ownerDocument!=document&&null==document.documentMode?(e.setAttribute("xlink:href",Graph.foreignObjectWarningLink),e.setAttribute("target","_blank")):(e.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",Graph.foreignObjectWarningLink),e.setAttributeNS(mxConstants.NS_XLINK,"target","_blank"));var k=b.createElement("text");k.setAttribute("text-anchor","middle");k.setAttribute("font-size","10px");k.setAttribute("x","50%");k.setAttribute("y","100%");mxUtils.write(k,Graph.foreignObjectWarningText);c.appendChild(g);
e.appendChild(k);c.appendChild(e);d.appendChild(c)}};Graph.prototype.updateSvgLinks=function(b,d,c){b=b.getElementsByTagName("a");for(var g=0;g<b.length;g++)if(null==b[g].getAttribute("target")){var e=b[g].getAttribute("href");null==e&&(e=b[g].getAttribute("xlink:href"));null!=e&&(null!=d&&/^https?:\/\//.test(e)?b[g].setAttribute("target",d):c&&this.isCustomLink(e)&&b[g].setAttribute("href","javascript:void(0);"))}};Graph.prototype.createSvgCanvas=function(b){b=new mxSvgCanvas2D(b);b.pointerEvents=
!0;return b};Graph.prototype.getSelectedElement=function(){var b=null;if(window.getSelection){var d=window.getSelection();d.getRangeAt&&d.rangeCount&&(b=d.getRangeAt(0).commonAncestorContainer)}else document.selection&&(b=document.selection.createRange().parentElement());return b};Graph.prototype.getSelectedEditingElement=function(){for(var b=this.getSelectedElement();null!=b&&b.nodeType!=mxConstants.NODETYPE_ELEMENT;)b=b.parentNode;null!=b&&b==this.cellEditor.textarea&&1==this.cellEditor.textarea.children.length&&
this.cellEditor.textarea.firstChild.nodeType==mxConstants.NODETYPE_ELEMENT&&(b=this.cellEditor.textarea.firstChild);return b};Graph.prototype.getParentByName=function(b,d,c){for(;null!=b&&b.nodeName!=d;){if(b==c)return null;b=b.parentNode}return b};Graph.prototype.getParentByNames=function(b,d,c){for(;null!=b&&!(0<=mxUtils.indexOf(d,b.nodeName));){if(b==c)return null;b=b.parentNode}return b};Graph.prototype.selectNode=function(b){var d=null;if(window.getSelection){if(d=window.getSelection(),d.getRangeAt&&
-d.rangeCount){var c=document.createRange();c.selectNode(b);d.removeAllRanges();d.addRange(c)}}else(d=document.selection)&&"Control"!=d.type&&(b=d.createRange(),b.collapse(!0),c=d.createRange(),c.setEndPoint("StartToStart",b),c.select())};Graph.prototype.flipEdge=function(b,d,c){var g=this.getCellGeometry(b);if(null!=g){g=g.clone();if(null!=g.points)for(var e=0;e<g.points.length;e++)d?g.points[e].x=c+(c-g.points[e].x):g.points[e].y=c+(c-g.points[e].y);e=function(b){null!=b&&(d?b.x=c+(c-b.x):b.y=c+
-(c-b.y))};e(g.getTerminalPoint(!0));e(g.getTerminalPoint(!1));this.model.setGeometry(b,g)}};Graph.prototype.flipChildren=function(b,d,c){this.model.beginUpdate();try{for(var g=this.model.getChildCount(b),e=0;e<g;e++){var k=this.model.getChildAt(b,e);if(this.model.isEdge(k))this.flipEdge(k,d,c);else{var f=this.getCellGeometry(k);null!=f&&(f=f.clone(),d?f.x=c+(c-f.x-f.width):f.y=c+(c-f.y-f.height),this.model.setGeometry(k,f))}}}finally{this.model.endUpdate()}};Graph.prototype.flipCells=function(b,d){this.model.beginUpdate();
-try{b=this.model.getTopmostCells(b);for(var c=[],g=0;g<b.length;g++)if(this.model.isEdge(b[g])){var e=this.view.getState(b[g]);null!=e&&this.flipEdge(b[g],d,(d?e.getCenterX():e.getCenterY())/this.view.scale-(d?e.origin.x:e.origin.y)-(d?this.view.translate.x:this.view.translate.y))}else{var k=this.getCellGeometry(b[g]);null!=k&&this.flipChildren(b[g],d,d?k.getCenterX()-k.x:k.getCenterY()-k.y);c.push(b[g])}this.toggleCellStyles(d?mxConstants.STYLE_FLIPH:mxConstants.STYLE_FLIPV,!1,c)}finally{this.model.endUpdate()}};
-Graph.prototype.deleteCells=function(b,d){var c=null;if(null!=b&&0<b.length){this.model.beginUpdate();try{for(var g=0;g<b.length;g++){var e=this.model.getParent(b[g]);if(this.isTable(e)){var k=this.getCellGeometry(b[g]),f=this.getCellGeometry(e);null!=k&&null!=f&&(f=f.clone(),f.height-=k.height,this.model.setGeometry(e,f))}}var l=this.selectParentAfterDelete?this.model.getParents(b):null;this.removeCells(b,d)}finally{this.model.endUpdate()}if(null!=l)for(c=[],g=0;g<l.length;g++)this.model.contains(l[g])&&
-(this.model.isVertex(l[g])||this.model.isEdge(l[g]))&&c.push(l[g])}return c};Graph.prototype.insertTableColumn=function(b,d){var c=this.getModel();c.beginUpdate();try{var g=b,e=0;if(this.isTableCell(b))var k=c.getParent(b),g=c.getParent(k),e=mxUtils.indexOf(c.getChildCells(k,!0),b);else this.isTableRow(b)?g=c.getParent(b):b=c.getChildCells(g,!0)[0],d||(e=c.getChildCells(b,!0).length-1);for(var f=c.getChildCells(g,!0),l=Graph.minTableColumnWidth,k=0;k<f.length;k++){var m=c.getChildCells(f[k],!0)[e],
-p=c.cloneCell(m,!1),x=this.getCellGeometry(p);p.value=null;p.style=mxUtils.setStyle(mxUtils.setStyle(p.style,"rowspan",null),"colspan",null);if(null!=x){null!=x.alternateBounds&&(x.width=x.alternateBounds.width,x.height=x.alternateBounds.height,x.alternateBounds=null);var l=x.width,v=this.getCellGeometry(f[k]);null!=v&&(x.height=v.height)}c.add(f[k],p,e+(d?0:1))}var n=this.getCellGeometry(g);null!=n&&(n=n.clone(),n.width+=l,c.setGeometry(g,n))}finally{c.endUpdate()}};Graph.prototype.deleteLane=function(b){var d=
-this.getModel();d.beginUpdate();try{var c=null,c="stackLayout"==this.getCurrentCellStyle(b).childLayout?b:d.getParent(b),g=d.getChildCells(c,!0);0==g.length?d.remove(c):(c==b&&(b=g[g.length-1]),d.remove(b))}finally{d.endUpdate()}};Graph.prototype.insertLane=function(b,d){var c=this.getModel();c.beginUpdate();try{var g=null,e=b;if("stackLayout"==this.getCurrentCellStyle(e).childLayout)var g=e,k=c.getChildCells(g,!0),e=k[d?0:k.length-1];else g=c.getParent(e);var f=g.getIndex(e),e=c.cloneCell(e,!1);
-e.value=null;c.add(g,e,f+(d?0:1))}finally{c.endUpdate()}};Graph.prototype.insertTableRow=function(b,d){var c=this.getModel();c.beginUpdate();try{var g=b,e=b;if(this.isTableCell(b))e=c.getParent(b),g=c.getParent(e);else if(this.isTableRow(b))g=c.getParent(b);else var k=c.getChildCells(g,!0),e=k[d?0:k.length-1];var f=c.getChildCells(e,!0),l=g.getIndex(e),e=c.cloneCell(e,!1);e.value=null;var m=this.getCellGeometry(e);if(null!=m){for(k=0;k<f.length;k++){b=c.cloneCell(f[k],!1);b.value=null;b.style=mxUtils.setStyle(mxUtils.setStyle(b.style,
-"rowspan",null),"colspan",null);var p=this.getCellGeometry(b);null!=p&&(null!=p.alternateBounds&&(p.width=p.alternateBounds.width,p.height=p.alternateBounds.height,p.alternateBounds=null),p.height=m.height);e.insert(b)}c.add(g,e,l+(d?0:1));var x=this.getCellGeometry(g);null!=x&&(x=x.clone(),x.height+=m.height,c.setGeometry(g,x))}}finally{c.endUpdate()}};Graph.prototype.deleteTableColumn=function(b){var d=this.getModel();d.beginUpdate();try{var c=b,g=b;this.isTableCell(b)&&(g=d.getParent(b));this.isTableRow(g)&&
-(c=d.getParent(g));var e=d.getChildCells(c,!0);if(0==e.length)d.remove(c);else{this.isTableRow(g)||(g=e[0]);var k=d.getChildCells(g,!0);if(1>=k.length)d.remove(c);else{var f=k.length-1;this.isTableCell(b)&&(f=mxUtils.indexOf(k,b));for(g=b=0;g<e.length;g++){var l=d.getChildCells(e[g],!0)[f];d.remove(l);var m=this.getCellGeometry(l);null!=m&&(b=Math.max(b,m.width))}var p=this.getCellGeometry(c);null!=p&&(p=p.clone(),p.width-=b,d.setGeometry(c,p))}}}finally{d.endUpdate()}};Graph.prototype.deleteTableRow=
-function(b){var d=this.getModel();d.beginUpdate();try{var c=b,g=b;this.isTableCell(b)&&(b=g=d.getParent(b));this.isTableRow(b)&&(c=d.getParent(g));var e=d.getChildCells(c,!0);if(1>=e.length)d.remove(c);else{this.isTableRow(g)||(g=e[e.length-1]);d.remove(g);b=0;var k=this.getCellGeometry(g);null!=k&&(b=k.height);var f=this.getCellGeometry(c);null!=f&&(f=f.clone(),f.height-=b,d.setGeometry(c,f))}}finally{d.endUpdate()}};Graph.prototype.insertRow=function(b,d){for(var c=b.tBodies[0],g=c.rows[0].cells,
-e=0,k=0;k<g.length;k++)var f=g[k].getAttribute("colspan"),e=e+(null!=f?parseInt(f):1);c=c.insertRow(d);for(k=0;k<e;k++)mxUtils.br(c.insertCell(-1));return c.cells[0]};Graph.prototype.deleteRow=function(b,d){b.tBodies[0].deleteRow(d)};Graph.prototype.insertColumn=function(b,d){var c=b.tHead;if(null!=c)for(var g=0;g<c.rows.length;g++){var e=document.createElement("th");c.rows[g].appendChild(e);mxUtils.br(e)}c=b.tBodies[0];for(g=0;g<c.rows.length;g++)e=c.rows[g].insertCell(d),mxUtils.br(e);return c.rows[0].cells[0<=
-d?d:c.rows[0].cells.length-1]};Graph.prototype.deleteColumn=function(b,d){if(0<=d)for(var c=b.tBodies[0].rows,g=0;g<c.length;g++)c[g].cells.length>d&&c[g].deleteCell(d)};Graph.prototype.pasteHtmlAtCaret=function(b){var d;if(window.getSelection){if(d=window.getSelection(),d.getRangeAt&&d.rangeCount){d=d.getRangeAt(0);d.deleteContents();var c=document.createElement("div");c.innerHTML=b;b=document.createDocumentFragment();for(var g;g=c.firstChild;)lastNode=b.appendChild(g);d.insertNode(b)}}else(d=document.selection)&&
-"Control"!=d.type&&d.createRange().pasteHTML(b)};Graph.prototype.createLinkForHint=function(b,d){function c(b,d){b.length>d&&(b=b.substring(0,Math.round(d/2))+"..."+b.substring(b.length-Math.round(d/4)));return b}b=null!=b?b:"javascript:void(0);";if(null==d||0==d.length)d=this.isCustomLink(b)?this.getLinkTitle(b):b;var g=document.createElement("a");g.setAttribute("rel",this.linkRelation);g.setAttribute("href",this.getAbsoluteUrl(b));g.setAttribute("title",c(this.isCustomLink(b)?this.getLinkTitle(b):
-b,80));null!=this.linkTarget&&g.setAttribute("target",this.linkTarget);mxUtils.write(g,c(d,40));this.isCustomLink(b)&&mxEvent.addListener(g,"click",mxUtils.bind(this,function(d){this.customLinkClicked(b);mxEvent.consume(d)}));return g};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};this.addListener(mxEvent.START_EDITING,function(b,d){this.popupMenuHandler.hideMenu()});var b=this.updateMouseEvent;this.updateMouseEvent=
-function(d){d=b.apply(this,arguments);if(mxEvent.isTouchEvent(d.getEvent())&&null==d.getState()){var c=this.getCellAt(d.graphX,d.graphY);null!=c&&this.isSwimlane(c)&&this.hitsSwimlaneContent(c,d.graphX,d.graphY)||(d.state=this.view.getState(c),null!=d.state&&null!=d.state.shape&&(this.container.style.cursor=d.state.shape.node.style.cursor))}null==d.getState()&&this.isEnabled()&&(this.container.style.cursor="default");return d};var d=!1,c=!1,g=!1,e=this.fireMouseEvent;this.fireMouseEvent=function(b,
-k,f){b==mxEvent.MOUSE_DOWN&&(k=this.updateMouseEvent(k),d=this.isCellSelected(k.getCell()),c=this.isSelectionEmpty(),g=this.popupMenuHandler.isMenuShowing());e.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(b,e){var k=mxEvent.isMouseEvent(e.getEvent());this.popupMenuHandler.popupTrigger=!this.isEditing()&&this.isEnabled()&&(null==e.getState()||!e.isSource(e.getState().control))&&(this.popupMenuHandler.popupTrigger||!g&&!k&&(c&&null==e.getCell()&&this.isSelectionEmpty()||
-d&&this.isCellSelected(e.getCell())));k=!d||k?null:mxUtils.bind(this,function(b){window.setTimeout(mxUtils.bind(this,function(){if(!this.isEditing()){var d=mxUtils.getScrollOrigin();this.popupMenuHandler.popup(e.getX()+d.x+1,e.getY()+d.y+1,b,e.getEvent())}}),500)});mxPopupMenuHandler.prototype.mouseUp.apply(this.popupMenuHandler,[b,e,k])})};mxCellEditor.prototype.isContentEditing=function(){var b=this.graph.view.getState(this.editingCell);return null!=b&&1==b.style.html};mxCellEditor.prototype.isTableSelected=
-function(){return null!=this.graph.getParentByName(this.graph.getSelectedElement(),"TABLE",this.textarea)};mxCellEditor.prototype.isTextSelected=function(){var b="";window.getSelection?b=window.getSelection():document.getSelection?b=document.getSelection():document.selection&&(b=document.selection.createRange().text);return""!=b};mxCellEditor.prototype.insertTab=function(b){var d=this.textarea.ownerDocument.defaultView.getSelection(),c=d.getRangeAt(0),g="\t";if(null!=b)for(g="";0<b;)g+=" ",b--;b=
-document.createElement("span");b.style.whiteSpace="pre";b.appendChild(document.createTextNode(g));c.insertNode(b);c.setStartAfter(b);c.setEndAfter(b);d.removeAllRanges();d.addRange(c)};mxCellEditor.prototype.alignText=function(b,d){var c=null!=d&&mxEvent.isShiftDown(d);if(c||null!=window.getSelection&&null!=window.getSelection().containsNode){var g=!0;this.graph.processElements(this.textarea,function(b){c||window.getSelection().containsNode(b,!0)?(b.removeAttribute("align"),b.style.textAlign=null):
-g=!1});g&&this.graph.cellEditor.setAlign(b)}document.execCommand("justify"+b.toLowerCase(),!1,null)};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var b=window.getSelection();if(b.getRangeAt&&b.rangeCount){for(var d=[],c=0,g=b.rangeCount;c<g;++c)d.push(b.getRangeAt(c));return d}}else if(document.selection&&document.selection.createRange)return document.selection.createRange();return null};mxCellEditor.prototype.restoreSelection=function(b){try{if(b)if(window.getSelection){sel=
-window.getSelection();sel.removeAllRanges();for(var d=0,c=b.length;d<c;++d)sel.addRange(b[d])}else document.selection&&b.select&&b.select()}catch(xa){}};var t=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=function(b){null!=b.text&&(b.text.replaceLinefeeds="0"!=mxUtils.getValue(b.style,"nl2Br","1"));t.apply(this,arguments)};var z=mxConstraintHandler.prototype.update;mxConstraintHandler.prototype.update=function(b,d){this.isKeepFocusEvent(b)||!mxEvent.isAltDown(b.getEvent())?
-z.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=function(b){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var y=mxCellEditor.prototype.startEditing;mxCellEditor.prototype.startEditing=function(b,d){b=this.graph.getStartEditingCell(b,d);y.apply(this,arguments);var c=this.graph.view.getState(b);this.textarea.className=null!=c&&1==c.style.html?"mxCellEditor geContentEditable":"mxCellEditor mxPlainTextEditor";
-this.codeViewMode=!1;this.switchSelectionState=null;this.graph.setSelectionCell(b);var c=this.graph.getModel().getParent(b),g=this.graph.getCellGeometry(b);if(this.graph.getModel().isEdge(c)&&null!=g&&g.relative||this.graph.getModel().isEdge(b))this.textarea.style.outline=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_FF&&mxClient.IS_WIN?"gray dotted 1px":""};var F=mxCellEditor.prototype.installListeners;mxCellEditor.prototype.installListeners=function(b){function d(b,c){c.originalNode=b;b=b.firstChild;
-for(var g=c.firstChild;null!=b&&null!=g;)d(b,g),b=b.nextSibling,g=g.nextSibling;return c}function c(b,d){if(null!=b)if(d.originalNode!=b)g(b);else for(b=b.firstChild,d=d.firstChild;null!=b;){var e=b.nextSibling;null==d?g(b):(c(b,d),d=d.nextSibling);b=e}}function g(b){for(var d=b.firstChild;null!=d;){var c=d.nextSibling;g(d);d=c}1==b.nodeType&&("BR"===b.nodeName||null!=b.firstChild)||3==b.nodeType&&0!=mxUtils.trim(mxUtils.getTextContent(b)).length?(3==b.nodeType&&mxUtils.setTextContent(b,mxUtils.getTextContent(b).replace(/\n|\r/g,
-"")),1==b.nodeType&&(b.removeAttribute("style"),b.removeAttribute("class"),b.removeAttribute("width"),b.removeAttribute("cellpadding"),b.removeAttribute("cellspacing"),b.removeAttribute("border"))):b.parentNode.removeChild(b)}F.apply(this,arguments);7!==document.documentMode&&8!==document.documentMode&&mxEvent.addListener(this.textarea,"paste",mxUtils.bind(this,function(b){var g=d(this.textarea,this.textarea.cloneNode(!0));window.setTimeout(mxUtils.bind(this,function(){null!=this.textarea&&(0<=this.textarea.innerHTML.indexOf("<o:OfficeDocumentSettings>")||
-0<=this.textarea.innerHTML.indexOf("\x3c!--[if !mso]>")?c(this.textarea,g):Graph.removePasteFormatting(this.textarea))}),0)}))};mxCellEditor.prototype.toggleViewMode=function(){var b=this.graph.view.getState(this.editingCell);if(null!=b){var d=null!=b&&"0"!=mxUtils.getValue(b.style,"nl2Br","1"),c=this.saveSelection();if(this.codeViewMode){m=mxUtils.extractTextWithWhitespace(this.textarea.childNodes);0<m.length&&"\n"==m.charAt(m.length-1)&&(m=m.substring(0,m.length-1));m=this.graph.sanitizeHtml(d?
-m.replace(/\n/g,"<br/>"):m,!0);this.textarea.className="mxCellEditor geContentEditable";var g=mxUtils.getValue(b.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE),d=mxUtils.getValue(b.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY),e=mxUtils.getValue(b.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),k=(mxUtils.getValue(b.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,f=(mxUtils.getValue(b.style,mxConstants.STYLE_FONTSTYLE,0)&
-mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,l=[];(mxUtils.getValue(b.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&l.push("underline");(mxUtils.getValue(b.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&l.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(g*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(g)+
-"px";this.textarea.style.textDecoration=l.join(" ");this.textarea.style.fontWeight=k?"bold":"normal";this.textarea.style.fontStyle=f?"italic":"";this.textarea.style.fontFamily=d;this.textarea.style.textAlign=e;this.textarea.style.padding="0px";this.textarea.innerHTML!=m&&(this.textarea.innerHTML=m,0==this.textarea.innerHTML.length&&(this.textarea.innerHTML=this.getEmptyLabelText(),this.clearOnChange=0<this.textarea.innerHTML.length));this.codeViewMode=!1}else{this.clearOnChange&&this.textarea.innerHTML==
-this.getEmptyLabelText()&&(this.clearOnChange=!1,this.textarea.innerHTML="");var m=mxUtils.htmlEntities(this.textarea.innerHTML);8!=document.documentMode&&(m=mxUtils.replaceTrailingNewlines(m,"<div><br></div>"));m=this.graph.sanitizeHtml(d?m.replace(/\n/g,"").replace(/&lt;br\s*.?&gt;/g,"<br>"):m,!0);this.textarea.className="mxCellEditor mxPlainTextEditor";var g=mxConstants.DEFAULT_FONTSIZE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(g*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;
-this.textarea.style.fontSize=Math.round(g)+"px";this.textarea.style.textDecoration="";this.textarea.style.fontWeight="normal";this.textarea.style.fontStyle="";this.textarea.style.fontFamily=mxConstants.DEFAULT_FONTFAMILY;this.textarea.style.textAlign="left";this.textarea.style.width="";this.textarea.style.padding="2px";this.textarea.innerHTML!=m&&(this.textarea.innerHTML=m);this.codeViewMode=!0}this.textarea.focus();null!=this.switchSelectionState&&this.restoreSelection(this.switchSelectionState);
-this.switchSelectionState=c;this.resize()}};var D=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(b,d){if(null!=this.textarea)if(b=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=b){var c=b.view.scale;this.bounds=mxRectangle.fromRectangle(b);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*c;this.bounds.height=60*c;var g=null!=b.text?b.text.margin:null;null==g&&(g=mxUtils.getAlignmentAsPoint(mxUtils.getValue(b.style,mxConstants.STYLE_ALIGN,
-mxConstants.ALIGN_CENTER),mxUtils.getValue(b.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));this.bounds.x+=g.x*this.bounds.width;this.bounds.y+=g.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/c)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/c)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight<this.textarea.offsetHeight&&(this.textarea.style.height=Math.round(this.bounds.height/c)+(this.textarea.offsetHeight-
+d.rangeCount){var c=document.createRange();c.selectNode(b);d.removeAllRanges();d.addRange(c)}}else(d=document.selection)&&"Control"!=d.type&&(b=d.createRange(),b.collapse(!0),c=d.createRange(),c.setEndPoint("StartToStart",b),c.select())};Graph.prototype.flipEdgePoints=function(b,d,c){var g=this.getCellGeometry(b);if(null!=g){g=g.clone();if(null!=g.points)for(var e=0;e<g.points.length;e++)d?g.points[e].x=c+(c-g.points[e].x):g.points[e].y=c+(c-g.points[e].y);e=function(b){null!=b&&(d?b.x=c+(c-b.x):
+b.y=c+(c-b.y))};e(g.getTerminalPoint(!0));e(g.getTerminalPoint(!1));this.model.setGeometry(b,g)}};Graph.prototype.flipChildren=function(b,d,c){this.model.beginUpdate();try{for(var g=this.model.getChildCount(b),e=0;e<g;e++){var k=this.model.getChildAt(b,e);if(this.model.isEdge(k))this.flipEdgePoints(k,d,c);else{var f=this.getCellGeometry(k);null!=f&&(f=f.clone(),d?f.x=c+(c-f.x-f.width):f.y=c+(c-f.y-f.height),this.model.setGeometry(k,f))}}}finally{this.model.endUpdate()}};Graph.prototype.flipCells=
+function(b,d){this.model.beginUpdate();try{b=this.model.getTopmostCells(b);for(var c=[],g=0;g<b.length;g++)if(this.model.isEdge(b[g])){var e=this.view.getState(b[g]);null!=e&&this.flipEdgePoints(b[g],d,(d?e.getCenterX():e.getCenterY())/this.view.scale-(d?e.origin.x:e.origin.y)-(d?this.view.translate.x:this.view.translate.y))}else{var k=this.getCellGeometry(b[g]);null!=k&&this.flipChildren(b[g],d,d?k.getCenterX()-k.x:k.getCenterY()-k.y);c.push(b[g])}this.toggleCellStyles(d?mxConstants.STYLE_FLIPH:
+mxConstants.STYLE_FLIPV,!1,c)}finally{this.model.endUpdate()}};Graph.prototype.deleteCells=function(b,d){var c=null;if(null!=b&&0<b.length){this.model.beginUpdate();try{for(var g=0;g<b.length;g++){var e=this.model.getParent(b[g]);if(this.isTable(e)){var k=this.getCellGeometry(b[g]),f=this.getCellGeometry(e);null!=k&&null!=f&&(f=f.clone(),f.height-=k.height,this.model.setGeometry(e,f))}}var l=this.selectParentAfterDelete?this.model.getParents(b):null;this.removeCells(b,d)}finally{this.model.endUpdate()}if(null!=
+l)for(c=[],g=0;g<l.length;g++)this.model.contains(l[g])&&(this.model.isVertex(l[g])||this.model.isEdge(l[g]))&&c.push(l[g])}return c};Graph.prototype.insertTableColumn=function(b,d){var c=this.getModel();c.beginUpdate();try{var g=b,e=0;if(this.isTableCell(b))var k=c.getParent(b),g=c.getParent(k),e=mxUtils.indexOf(c.getChildCells(k,!0),b);else this.isTableRow(b)?g=c.getParent(b):b=c.getChildCells(g,!0)[0],d||(e=c.getChildCells(b,!0).length-1);for(var f=c.getChildCells(g,!0),l=Graph.minTableColumnWidth,
+k=0;k<f.length;k++){var m=c.getChildCells(f[k],!0)[e],p=c.cloneCell(m,!1),x=this.getCellGeometry(p);p.value=null;p.style=mxUtils.setStyle(mxUtils.setStyle(p.style,"rowspan",null),"colspan",null);if(null!=x){null!=x.alternateBounds&&(x.width=x.alternateBounds.width,x.height=x.alternateBounds.height,x.alternateBounds=null);var l=x.width,u=this.getCellGeometry(f[k]);null!=u&&(x.height=u.height)}c.add(f[k],p,e+(d?0:1))}var n=this.getCellGeometry(g);null!=n&&(n=n.clone(),n.width+=l,c.setGeometry(g,n))}finally{c.endUpdate()}};
+Graph.prototype.deleteLane=function(b){var d=this.getModel();d.beginUpdate();try{var c=null,c="stackLayout"==this.getCurrentCellStyle(b).childLayout?b:d.getParent(b),g=d.getChildCells(c,!0);0==g.length?d.remove(c):(c==b&&(b=g[g.length-1]),d.remove(b))}finally{d.endUpdate()}};Graph.prototype.insertLane=function(b,d){var c=this.getModel();c.beginUpdate();try{var g=null,e=b;if("stackLayout"==this.getCurrentCellStyle(e).childLayout)var g=e,k=c.getChildCells(g,!0),e=k[d?0:k.length-1];else g=c.getParent(e);
+var f=g.getIndex(e),e=c.cloneCell(e,!1);e.value=null;c.add(g,e,f+(d?0:1))}finally{c.endUpdate()}};Graph.prototype.insertTableRow=function(b,d){var c=this.getModel();c.beginUpdate();try{var g=b,e=b;if(this.isTableCell(b))e=c.getParent(b),g=c.getParent(e);else if(this.isTableRow(b))g=c.getParent(b);else var k=c.getChildCells(g,!0),e=k[d?0:k.length-1];var f=c.getChildCells(e,!0),l=g.getIndex(e),e=c.cloneCell(e,!1);e.value=null;var m=this.getCellGeometry(e);if(null!=m){for(k=0;k<f.length;k++){b=c.cloneCell(f[k],
+!1);b.value=null;b.style=mxUtils.setStyle(mxUtils.setStyle(b.style,"rowspan",null),"colspan",null);var p=this.getCellGeometry(b);null!=p&&(null!=p.alternateBounds&&(p.width=p.alternateBounds.width,p.height=p.alternateBounds.height,p.alternateBounds=null),p.height=m.height);e.insert(b)}c.add(g,e,l+(d?0:1));var x=this.getCellGeometry(g);null!=x&&(x=x.clone(),x.height+=m.height,c.setGeometry(g,x))}}finally{c.endUpdate()}};Graph.prototype.deleteTableColumn=function(b){var d=this.getModel();d.beginUpdate();
+try{var c=b,g=b;this.isTableCell(b)&&(g=d.getParent(b));this.isTableRow(g)&&(c=d.getParent(g));var e=d.getChildCells(c,!0);if(0==e.length)d.remove(c);else{this.isTableRow(g)||(g=e[0]);var k=d.getChildCells(g,!0);if(1>=k.length)d.remove(c);else{var f=k.length-1;this.isTableCell(b)&&(f=mxUtils.indexOf(k,b));for(g=b=0;g<e.length;g++){var l=d.getChildCells(e[g],!0)[f];d.remove(l);var m=this.getCellGeometry(l);null!=m&&(b=Math.max(b,m.width))}var p=this.getCellGeometry(c);null!=p&&(p=p.clone(),p.width-=
+b,d.setGeometry(c,p))}}}finally{d.endUpdate()}};Graph.prototype.deleteTableRow=function(b){var d=this.getModel();d.beginUpdate();try{var c=b,g=b;this.isTableCell(b)&&(b=g=d.getParent(b));this.isTableRow(b)&&(c=d.getParent(g));var e=d.getChildCells(c,!0);if(1>=e.length)d.remove(c);else{this.isTableRow(g)||(g=e[e.length-1]);d.remove(g);b=0;var k=this.getCellGeometry(g);null!=k&&(b=k.height);var f=this.getCellGeometry(c);null!=f&&(f=f.clone(),f.height-=b,d.setGeometry(c,f))}}finally{d.endUpdate()}};
+Graph.prototype.insertRow=function(b,d){for(var c=b.tBodies[0],g=c.rows[0].cells,e=0,k=0;k<g.length;k++)var f=g[k].getAttribute("colspan"),e=e+(null!=f?parseInt(f):1);c=c.insertRow(d);for(k=0;k<e;k++)mxUtils.br(c.insertCell(-1));return c.cells[0]};Graph.prototype.deleteRow=function(b,d){b.tBodies[0].deleteRow(d)};Graph.prototype.insertColumn=function(b,d){var c=b.tHead;if(null!=c)for(var g=0;g<c.rows.length;g++){var e=document.createElement("th");c.rows[g].appendChild(e);mxUtils.br(e)}c=b.tBodies[0];
+for(g=0;g<c.rows.length;g++)e=c.rows[g].insertCell(d),mxUtils.br(e);return c.rows[0].cells[0<=d?d:c.rows[0].cells.length-1]};Graph.prototype.deleteColumn=function(b,d){if(0<=d)for(var c=b.tBodies[0].rows,g=0;g<c.length;g++)c[g].cells.length>d&&c[g].deleteCell(d)};Graph.prototype.pasteHtmlAtCaret=function(b){var d;if(window.getSelection){if(d=window.getSelection(),d.getRangeAt&&d.rangeCount){d=d.getRangeAt(0);d.deleteContents();var c=document.createElement("div");c.innerHTML=b;b=document.createDocumentFragment();
+for(var g;g=c.firstChild;)lastNode=b.appendChild(g);d.insertNode(b)}}else(d=document.selection)&&"Control"!=d.type&&d.createRange().pasteHTML(b)};Graph.prototype.createLinkForHint=function(b,d){function c(b,d){b.length>d&&(b=b.substring(0,Math.round(d/2))+"..."+b.substring(b.length-Math.round(d/4)));return b}b=null!=b?b:"javascript:void(0);";if(null==d||0==d.length)d=this.isCustomLink(b)?this.getLinkTitle(b):b;var g=document.createElement("a");g.setAttribute("rel",this.linkRelation);g.setAttribute("href",
+this.getAbsoluteUrl(b));g.setAttribute("title",c(this.isCustomLink(b)?this.getLinkTitle(b):b,80));null!=this.linkTarget&&g.setAttribute("target",this.linkTarget);mxUtils.write(g,c(d,40));this.isCustomLink(b)&&mxEvent.addListener(g,"click",mxUtils.bind(this,function(d){this.customLinkClicked(b);mxEvent.consume(d)}));return g};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};this.addListener(mxEvent.START_EDITING,
+function(b,d){this.popupMenuHandler.hideMenu()});var b=this.updateMouseEvent;this.updateMouseEvent=function(d){d=b.apply(this,arguments);if(mxEvent.isTouchEvent(d.getEvent())&&null==d.getState()){var c=this.getCellAt(d.graphX,d.graphY);null!=c&&this.isSwimlane(c)&&this.hitsSwimlaneContent(c,d.graphX,d.graphY)||(d.state=this.view.getState(c),null!=d.state&&null!=d.state.shape&&(this.container.style.cursor=d.state.shape.node.style.cursor))}null==d.getState()&&this.isEnabled()&&(this.container.style.cursor=
+"default");return d};var d=!1,c=!1,g=!1,e=this.fireMouseEvent;this.fireMouseEvent=function(b,k,f){b==mxEvent.MOUSE_DOWN&&(k=this.updateMouseEvent(k),d=this.isCellSelected(k.getCell()),c=this.isSelectionEmpty(),g=this.popupMenuHandler.isMenuShowing());e.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(b,e){var k=mxEvent.isMouseEvent(e.getEvent());this.popupMenuHandler.popupTrigger=!this.isEditing()&&this.isEnabled()&&(null==e.getState()||!e.isSource(e.getState().control))&&
+(this.popupMenuHandler.popupTrigger||!g&&!k&&(c&&null==e.getCell()&&this.isSelectionEmpty()||d&&this.isCellSelected(e.getCell())));k=!d||k?null:mxUtils.bind(this,function(b){window.setTimeout(mxUtils.bind(this,function(){if(!this.isEditing()){var d=mxUtils.getScrollOrigin();this.popupMenuHandler.popup(e.getX()+d.x+1,e.getY()+d.y+1,b,e.getEvent())}}),500)});mxPopupMenuHandler.prototype.mouseUp.apply(this.popupMenuHandler,[b,e,k])})};mxCellEditor.prototype.isContentEditing=function(){var b=this.graph.view.getState(this.editingCell);
+return null!=b&&1==b.style.html};mxCellEditor.prototype.isTableSelected=function(){return null!=this.graph.getParentByName(this.graph.getSelectedElement(),"TABLE",this.textarea)};mxCellEditor.prototype.isTextSelected=function(){var b="";window.getSelection?b=window.getSelection():document.getSelection?b=document.getSelection():document.selection&&(b=document.selection.createRange().text);return""!=b};mxCellEditor.prototype.insertTab=function(b){var d=this.textarea.ownerDocument.defaultView.getSelection(),
+c=d.getRangeAt(0),g="\t";if(null!=b)for(g="";0<b;)g+=" ",b--;b=document.createElement("span");b.style.whiteSpace="pre";b.appendChild(document.createTextNode(g));c.insertNode(b);c.setStartAfter(b);c.setEndAfter(b);d.removeAllRanges();d.addRange(c)};mxCellEditor.prototype.alignText=function(b,d){var c=null!=d&&mxEvent.isShiftDown(d);if(c||null!=window.getSelection&&null!=window.getSelection().containsNode){var g=!0;this.graph.processElements(this.textarea,function(b){c||window.getSelection().containsNode(b,
+!0)?(b.removeAttribute("align"),b.style.textAlign=null):g=!1});g&&this.graph.cellEditor.setAlign(b)}document.execCommand("justify"+b.toLowerCase(),!1,null)};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var b=window.getSelection();if(b.getRangeAt&&b.rangeCount){for(var d=[],c=0,g=b.rangeCount;c<g;++c)d.push(b.getRangeAt(c));return d}}else if(document.selection&&document.selection.createRange)return document.selection.createRange();return null};mxCellEditor.prototype.restoreSelection=
+function(b){try{if(b)if(window.getSelection){sel=window.getSelection();sel.removeAllRanges();for(var d=0,c=b.length;d<c;++d)sel.addRange(b[d])}else document.selection&&b.select&&b.select()}catch(za){}};var t=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=function(b){null!=b.text&&(b.text.replaceLinefeeds="0"!=mxUtils.getValue(b.style,"nl2Br","1"));t.apply(this,arguments)};var z=mxConstraintHandler.prototype.update;mxConstraintHandler.prototype.update=function(b,
+d){this.isKeepFocusEvent(b)||!mxEvent.isAltDown(b.getEvent())?z.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=function(b){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var y=mxCellEditor.prototype.startEditing;mxCellEditor.prototype.startEditing=function(b,d){b=this.graph.getStartEditingCell(b,d);y.apply(this,arguments);var c=this.graph.view.getState(b);this.textarea.className=null!=c&&1==c.style.html?
+"mxCellEditor geContentEditable":"mxCellEditor mxPlainTextEditor";this.codeViewMode=!1;this.switchSelectionState=null;this.graph.setSelectionCell(b);var c=this.graph.getModel().getParent(b),g=this.graph.getCellGeometry(b);if(this.graph.getModel().isEdge(c)&&null!=g&&g.relative||this.graph.getModel().isEdge(b))this.textarea.style.outline=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_FF&&mxClient.IS_WIN?"gray dotted 1px":""};var I=mxCellEditor.prototype.installListeners;mxCellEditor.prototype.installListeners=
+function(b){function d(b,c){c.originalNode=b;b=b.firstChild;for(var g=c.firstChild;null!=b&&null!=g;)d(b,g),b=b.nextSibling,g=g.nextSibling;return c}function c(b,d){if(null!=b)if(d.originalNode!=b)g(b);else for(b=b.firstChild,d=d.firstChild;null!=b;){var e=b.nextSibling;null==d?g(b):(c(b,d),d=d.nextSibling);b=e}}function g(b){for(var d=b.firstChild;null!=d;){var c=d.nextSibling;g(d);d=c}1==b.nodeType&&("BR"===b.nodeName||null!=b.firstChild)||3==b.nodeType&&0!=mxUtils.trim(mxUtils.getTextContent(b)).length?
+(3==b.nodeType&&mxUtils.setTextContent(b,mxUtils.getTextContent(b).replace(/\n|\r/g,"")),1==b.nodeType&&(b.removeAttribute("style"),b.removeAttribute("class"),b.removeAttribute("width"),b.removeAttribute("cellpadding"),b.removeAttribute("cellspacing"),b.removeAttribute("border"))):b.parentNode.removeChild(b)}I.apply(this,arguments);7!==document.documentMode&&8!==document.documentMode&&mxEvent.addListener(this.textarea,"paste",mxUtils.bind(this,function(b){var g=d(this.textarea,this.textarea.cloneNode(!0));
+window.setTimeout(mxUtils.bind(this,function(){null!=this.textarea&&(0<=this.textarea.innerHTML.indexOf("<o:OfficeDocumentSettings>")||0<=this.textarea.innerHTML.indexOf("\x3c!--[if !mso]>")?c(this.textarea,g):Graph.removePasteFormatting(this.textarea))}),0)}))};mxCellEditor.prototype.toggleViewMode=function(){var b=this.graph.view.getState(this.editingCell);if(null!=b){var d=null!=b&&"0"!=mxUtils.getValue(b.style,"nl2Br","1"),c=this.saveSelection();if(this.codeViewMode){m=mxUtils.extractTextWithWhitespace(this.textarea.childNodes);
+0<m.length&&"\n"==m.charAt(m.length-1)&&(m=m.substring(0,m.length-1));m=this.graph.sanitizeHtml(d?m.replace(/\n/g,"<br/>"):m,!0);this.textarea.className="mxCellEditor geContentEditable";var g=mxUtils.getValue(b.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE),d=mxUtils.getValue(b.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY),e=mxUtils.getValue(b.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),k=(mxUtils.getValue(b.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==
+mxConstants.FONT_BOLD,f=(mxUtils.getValue(b.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,l=[];(mxUtils.getValue(b.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&l.push("underline");(mxUtils.getValue(b.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&l.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(g*mxConstants.LINE_HEIGHT)+
+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(g)+"px";this.textarea.style.textDecoration=l.join(" ");this.textarea.style.fontWeight=k?"bold":"normal";this.textarea.style.fontStyle=f?"italic":"";this.textarea.style.fontFamily=d;this.textarea.style.textAlign=e;this.textarea.style.padding="0px";this.textarea.innerHTML!=m&&(this.textarea.innerHTML=m,0==this.textarea.innerHTML.length&&(this.textarea.innerHTML=this.getEmptyLabelText(),this.clearOnChange=0<this.textarea.innerHTML.length));
+this.codeViewMode=!1}else{this.clearOnChange&&this.textarea.innerHTML==this.getEmptyLabelText()&&(this.clearOnChange=!1,this.textarea.innerHTML="");var m=mxUtils.htmlEntities(this.textarea.innerHTML);8!=document.documentMode&&(m=mxUtils.replaceTrailingNewlines(m,"<div><br></div>"));m=this.graph.sanitizeHtml(d?m.replace(/\n/g,"").replace(/&lt;br\s*.?&gt;/g,"<br>"):m,!0);this.textarea.className="mxCellEditor mxPlainTextEditor";var g=mxConstants.DEFAULT_FONTSIZE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?
+Math.round(g*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(g)+"px";this.textarea.style.textDecoration="";this.textarea.style.fontWeight="normal";this.textarea.style.fontStyle="";this.textarea.style.fontFamily=mxConstants.DEFAULT_FONTFAMILY;this.textarea.style.textAlign="left";this.textarea.style.width="";this.textarea.style.padding="2px";this.textarea.innerHTML!=m&&(this.textarea.innerHTML=m);this.codeViewMode=!0}this.textarea.focus();null!=this.switchSelectionState&&
+this.restoreSelection(this.switchSelectionState);this.switchSelectionState=c;this.resize()}};var D=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(b,d){if(null!=this.textarea)if(b=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=b){var c=b.view.scale;this.bounds=mxRectangle.fromRectangle(b);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*c;this.bounds.height=60*c;var g=null!=b.text?b.text.margin:null;null==g&&(g=mxUtils.getAlignmentAsPoint(mxUtils.getValue(b.style,
+mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),mxUtils.getValue(b.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));this.bounds.x+=g.x*this.bounds.width;this.bounds.y+=g.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/c)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/c)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight<this.textarea.offsetHeight&&(this.textarea.style.height=Math.round(this.bounds.height/c)+(this.textarea.offsetHeight-
this.textarea.clientHeight)+"px",this.bounds.height=parseInt(this.textarea.style.height)*c);this.textarea.clientWidth<this.textarea.offsetWidth&&(this.textarea.style.width=Math.round(this.bounds.width/c)+(this.textarea.offsetWidth-this.textarea.clientWidth)+"px",this.bounds.width=parseInt(this.textarea.style.width)*c);this.textarea.style.left=Math.round(this.bounds.x)+"px";this.textarea.style.top=Math.round(this.bounds.y)+"px";mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+c+","+
c+")")}else this.textarea.style.height="",this.textarea.style.overflow="",D.apply(this,arguments)};mxCellEditorGetInitialValue=mxCellEditor.prototype.getInitialValue;mxCellEditor.prototype.getInitialValue=function(b,d){if("0"==mxUtils.getValue(b.style,"html","0"))return mxCellEditorGetInitialValue.apply(this,arguments);var c=this.graph.getEditingValue(b.cell,d);"1"==mxUtils.getValue(b.style,"nl2Br","1")&&(c=c.replace(/\n/g,"<br/>"));return c=this.graph.sanitizeHtml(c,!0)};mxCellEditorGetCurrentValue=
-mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=function(b){if("0"==mxUtils.getValue(b.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);var d=this.graph.sanitizeHtml(this.textarea.innerHTML,!0);return d="1"==mxUtils.getValue(b.style,"nl2Br","1")?d.replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>"):d.replace(/\r\n/g,"").replace(/\n/g,"")};var E=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(b){this.codeViewMode&&this.toggleViewMode();
-E.apply(this,arguments);this.focusContainer()};mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(ba){}};var H=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(b,d){this.graph.getModel().beginUpdate();try{H.apply(this,arguments),""==d&&this.graph.isCellDeletable(b.cell)&&0==this.graph.model.getChildCount(b.cell)&&this.graph.isTransparentState(b)&&this.graph.removeCells([b.cell],!1)}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor=
+mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=function(b){if("0"==mxUtils.getValue(b.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);var d=this.graph.sanitizeHtml(this.textarea.innerHTML,!0);return d="1"==mxUtils.getValue(b.style,"nl2Br","1")?d.replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>"):d.replace(/\r\n/g,"").replace(/\n/g,"")};var F=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(b){this.codeViewMode&&this.toggleViewMode();
+F.apply(this,arguments);this.focusContainer()};mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(Z){}};var E=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(b,d){this.graph.getModel().beginUpdate();try{E.apply(this,arguments),""==d&&this.graph.isCellDeletable(b.cell)&&0==this.graph.model.getChildCount(b.cell)&&this.graph.isTransparentState(b)&&this.graph.removeCells([b.cell],!1)}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor=
function(b){var d=mxUtils.getValue(b.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null);null!=d&&d!=mxConstants.NONE||!(null!=b.cell.geometry&&0<b.cell.geometry.width)||0==mxUtils.getValue(b.style,mxConstants.STYLE_ROTATION,0)&&0!=mxUtils.getValue(b.style,mxConstants.STYLE_HORIZONTAL,1)||(d=mxUtils.getValue(b.style,mxConstants.STYLE_FILLCOLOR,null));d==mxConstants.NONE&&(d=null);return d};mxCellEditor.prototype.getBorderColor=function(b){var d=mxUtils.getValue(b.style,mxConstants.STYLE_LABEL_BORDERCOLOR,
null);null!=d&&d!=mxConstants.NONE||!(null!=b.cell.geometry&&0<b.cell.geometry.width)||0==mxUtils.getValue(b.style,mxConstants.STYLE_ROTATION,0)&&0!=mxUtils.getValue(b.style,mxConstants.STYLE_HORIZONTAL,1)||(d=mxUtils.getValue(b.style,mxConstants.STYLE_STROKECOLOR,null));d==mxConstants.NONE&&(d=null);return d};mxCellEditor.prototype.getMinimumSize=function(b){var d=this.graph.getView().scale;return new mxRectangle(0,0,null==b.text?30:b.text.size*d+20,30)};mxGraphHandlerIsValidDropTarget=mxGraphHandler.prototype.isValidDropTarget;
mxGraphHandler.prototype.isValidDropTarget=function(b,d){return mxGraphHandlerIsValidDropTarget.apply(this,arguments)&&!mxEvent.isAltDown(d.getEvent)};mxGraphView.prototype.formatUnitText=function(b){return b?c(b,this.unit):b};mxGraphHandler.prototype.updateHint=function(d){if(null!=this.pBounds&&(null!=this.shape||this.livePreviewActive)){null==this.hint&&(this.hint=b(),this.graph.container.appendChild(this.hint));var g=this.graph.view.translate,e=this.graph.view.scale;d=this.roundLength((this.bounds.x+
-this.currentDx)/e-g.x);g=this.roundLength((this.bounds.y+this.currentDy)/e-g.y);e=this.graph.view.unit;this.hint.innerHTML=c(d,e)+", "+c(g,e);this.hint.style.left=this.pBounds.x+this.currentDx+Math.round((this.pBounds.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=this.pBounds.y+this.currentDy+this.pBounds.height+Editor.hintOffset+"px"}};mxGraphHandler.prototype.removeHint=function(){null!=this.hint&&(this.hint.parentNode.removeChild(this.hint),this.hint=null)};var N=mxStackLayout.prototype.resizeCell;
-mxStackLayout.prototype.resizeCell=function(b,d){N.apply(this,arguments);var c=this.graph.getCellStyle(b);if(null==c.childLayout){var g=this.graph.model.getParent(b),e=null!=g?this.graph.getCellGeometry(g):null;if(null!=e&&(c=this.graph.getCellStyle(g),"stackLayout"==c.childLayout)){var k=parseFloat(mxUtils.getValue(c,"stackBorder",mxStackLayout.prototype.border)),c="1"==mxUtils.getValue(c,"horizontalStack","1"),f=this.graph.getActualStartSize(g),e=e.clone();c?e.height=d.height+f.y+f.height+2*k:e.width=
-d.width+f.x+f.width+2*k;this.graph.model.setGeometry(g,e)}}};var A=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){function b(b){c.get(b)||(c.put(b,!0),e.push(b))}for(var d=A.apply(this,arguments),c=new mxDictionary,g=this.graph.model,e=[],k=0;k<d.length;k++){var f=d[k];this.graph.isTableCell(f)?b(g.getParent(g.getParent(f))):this.graph.isTableRow(f)&&b(g.getParent(f));b(f)}return e};var G=mxVertexHandler.prototype.createParentHighlightShape;
-mxVertexHandler.prototype.createParentHighlightShape=function(b){var d=G.apply(this,arguments);d.stroke="#C0C0C0";d.strokewidth=1;return d};var I=mxEdgeHandler.prototype.createParentHighlightShape;mxEdgeHandler.prototype.createParentHighlightShape=function(b){var d=I.apply(this,arguments);d.stroke="#C0C0C0";d.strokewidth=1;return d};mxVertexHandler.prototype.rotationHandleVSpacing=-12;mxVertexHandler.prototype.getRotationHandlePosition=function(){var b=this.getHandlePadding();return new mxPoint(this.bounds.x+
+this.currentDx)/e-g.x);g=this.roundLength((this.bounds.y+this.currentDy)/e-g.y);e=this.graph.view.unit;this.hint.innerHTML=c(d,e)+", "+c(g,e);this.hint.style.left=this.pBounds.x+this.currentDx+Math.round((this.pBounds.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=this.pBounds.y+this.currentDy+this.pBounds.height+Editor.hintOffset+"px"}};mxGraphHandler.prototype.removeHint=function(){null!=this.hint&&(this.hint.parentNode.removeChild(this.hint),this.hint=null)};var O=mxStackLayout.prototype.resizeCell;
+mxStackLayout.prototype.resizeCell=function(b,d){O.apply(this,arguments);var c=this.graph.getCellStyle(b);if(null==c.childLayout){var g=this.graph.model.getParent(b),e=null!=g?this.graph.getCellGeometry(g):null;if(null!=e&&(c=this.graph.getCellStyle(g),"stackLayout"==c.childLayout)){var k=parseFloat(mxUtils.getValue(c,"stackBorder",mxStackLayout.prototype.border)),c="1"==mxUtils.getValue(c,"horizontalStack","1"),f=this.graph.getActualStartSize(g),e=e.clone();c?e.height=d.height+f.y+f.height+2*k:e.width=
+d.width+f.x+f.width+2*k;this.graph.model.setGeometry(g,e)}}};var B=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){function b(b){c.get(b)||(c.put(b,!0),e.push(b))}for(var d=B.apply(this,arguments),c=new mxDictionary,g=this.graph.model,e=[],k=0;k<d.length;k++){var f=d[k];this.graph.isTableCell(f)?b(g.getParent(g.getParent(f))):this.graph.isTableRow(f)&&b(g.getParent(f));b(f)}return e};var G=mxVertexHandler.prototype.createParentHighlightShape;
+mxVertexHandler.prototype.createParentHighlightShape=function(b){var d=G.apply(this,arguments);d.stroke="#C0C0C0";d.strokewidth=1;return d};var H=mxEdgeHandler.prototype.createParentHighlightShape;mxEdgeHandler.prototype.createParentHighlightShape=function(b){var d=H.apply(this,arguments);d.stroke="#C0C0C0";d.strokewidth=1;return d};mxVertexHandler.prototype.rotationHandleVSpacing=-12;mxVertexHandler.prototype.getRotationHandlePosition=function(){var b=this.getHandlePadding();return new mxPoint(this.bounds.x+
this.bounds.width-this.rotationHandleVSpacing+b.x/2,this.bounds.y+this.rotationHandleVSpacing-b.y/2)};mxVertexHandler.prototype.isRecursiveResize=function(b,d){return this.graph.isRecursiveVertexResize(b)&&!mxEvent.isControlDown(d.getEvent())};mxVertexHandler.prototype.isCenteredEvent=function(b,d){return!(!this.graph.isSwimlane(b.cell)&&0<this.graph.model.getChildCount(b.cell)&&!this.graph.isCellCollapsed(b.cell)&&"1"==mxUtils.getValue(b.style,"recursiveResize","1")&&null==mxUtils.getValue(b.style,
"childLayout",null))&&mxEvent.isControlDown(d.getEvent())||mxEvent.isMetaDown(d.getEvent())};var L=mxVertexHandler.prototype.isRotationHandleVisible;mxVertexHandler.prototype.isRotationHandleVisible=function(){return L.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTable(this.state.cell)};mxVertexHandler.prototype.getSizerBounds=function(){return this.graph.isTableCell(this.state.cell)?this.graph.view.getState(this.graph.model.getParent(this.graph.model.getParent(this.state.cell))):
-this.bounds};var M=mxVertexHandler.prototype.isParentHighlightVisible;mxVertexHandler.prototype.isParentHighlightVisible=function(){return M.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)};var K=mxVertexHandler.prototype.isCustomHandleVisible;mxVertexHandler.prototype.isCustomHandleVisible=function(b){return b.tableHandle||K.apply(this,arguments)&&(!this.graph.isTable(this.state.cell)||this.graph.isCellSelected(this.state.cell))};mxVertexHandler.prototype.getSelectionBorderInset=
-function(){var b=0;this.graph.isTableRow(this.state.cell)?b=1:this.graph.isTableCell(this.state.cell)&&(b=2);return b};var P=mxVertexHandler.prototype.getSelectionBorderBounds;mxVertexHandler.prototype.getSelectionBorderBounds=function(){return P.apply(this,arguments).grow(-this.getSelectionBorderInset())};var T=null,W=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){null==T&&(T=mxCellRenderer.defaultShapes.tableLine);var b=W.apply(this,arguments);
-if(this.graph.isTable(this.state.cell)){var d=function(b,d,c){for(var g=[],e=0;e<b.length;e++){var f=b[e];g.push(null==f?null:new mxPoint((m+f.x+d)*k,(p+f.y+c)*k))}return g},c=this,g=this.graph,e=g.model,k=g.view.scale,f=this.state,l=this.selectionBorder,m=this.state.origin.x+g.view.translate.x,p=this.state.origin.y+g.view.translate.y;null==b&&(b=[]);var x=g.view.getCellStates(e.getChildCells(this.state.cell,!0));if(0<x.length){for(var v=e.getChildCells(x[0].cell,!0),n=g.getTableLines(this.state.cell,
-!1,!0),t=g.getTableLines(this.state.cell,!0,!1),e=0;e<x.length;e++)mxUtils.bind(this,function(e){var m=x[e],p=e<x.length-1?x[e+1]:null,p=null!=p?g.getCellGeometry(p.cell):null,v=null!=p&&null!=p.alternateBounds?p.alternateBounds:p,p=null!=t[e]?new T(t[e],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!1);p.isDashed=l.isDashed;p.svgStrokeTolerance++;m=new mxHandle(m,"row-resize",null,p);m.tableHandle=!0;var n=0;m.shape.node.parentNode.insertBefore(m.shape.node,m.shape.node.parentNode.firstChild);
-m.redraw=function(){if(null!=this.shape){this.shape.stroke=0==n?mxConstants.NONE:l.stroke;if(this.shape.constructor==T)this.shape.line=d(t[e],0,n),this.shape.updateBoundsFromLine();else{var b=g.getActualStartSize(f.cell,!0);this.shape.bounds.height=1;this.shape.bounds.y=this.state.y+this.state.height+n*k;this.shape.bounds.x=f.x+(e==x.length-1?0:b.x*k);this.shape.bounds.width=f.width-(e==x.length-1?0:b.width+b.x+k)}this.shape.redraw()}};var u=!1;m.setPosition=function(b,d,c){n=Math.max(Graph.minTableRowHeight-
-b.height,d.y-b.y-b.height);u=mxEvent.isShiftDown(c.getEvent());null!=v&&u&&(n=Math.min(n,v.height-Graph.minTableRowHeight))};m.execute=function(b){if(0!=n)g.setTableRowHeight(this.state.cell,n,!u);else if(!c.blockDelayedSelection){var d=g.getCellAt(b.getGraphX(),b.getGraphY())||f.cell;g.graphHandler.selectCellForEvent(d,b)}n=0};m.reset=function(){n=0};b.push(m)})(e);for(e=0;e<v.length;e++)mxUtils.bind(this,function(e){var m=g.view.getState(v[e]),p=g.getCellGeometry(v[e]),x=null!=p.alternateBounds?
-p.alternateBounds:p;null==m&&(m=new mxCellState(g.view,v[e],g.getCellStyle(v[e])),m.x=f.x+p.x*k,m.y=f.y+p.y*k,m.width=x.width*k,m.height=x.height*k,m.updateCachedBounds());var p=e<v.length-1?v[e+1]:null,p=null!=p?g.getCellGeometry(p):null,t=null!=p&&null!=p.alternateBounds?p.alternateBounds:p,p=null!=n[e]?new T(n[e],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!0);p.isDashed=l.isDashed;p.svgStrokeTolerance++;m=new mxHandle(m,"col-resize",null,p);m.tableHandle=!0;var u=0;m.shape.node.parentNode.insertBefore(m.shape.node,
-m.shape.node.parentNode.firstChild);m.redraw=function(){if(null!=this.shape){this.shape.stroke=0==u?mxConstants.NONE:l.stroke;if(this.shape.constructor==T)this.shape.line=d(n[e],u,0),this.shape.updateBoundsFromLine();else{var b=g.getActualStartSize(f.cell,!0);this.shape.bounds.width=1;this.shape.bounds.x=this.state.x+(x.width+u)*k;this.shape.bounds.y=f.y+(e==v.length-1?0:b.y*k);this.shape.bounds.height=f.height-(e==v.length-1?0:(b.height+b.y)*k)}this.shape.redraw()}};var y=!1;m.setPosition=function(b,
-d,c){u=Math.max(Graph.minTableColumnWidth-x.width,d.x-b.x-x.width);y=mxEvent.isShiftDown(c.getEvent());null==t||y||(u=Math.min(u,t.width-Graph.minTableColumnWidth))};m.execute=function(b){if(0!=u)g.setTableColumnWidth(this.state.cell,u,y);else if(!c.blockDelayedSelection){var d=g.getCellAt(b.getGraphX(),b.getGraphY())||f.cell;g.graphHandler.selectCellForEvent(d,b)}u=0};m.positionChanged=function(){};m.reset=function(){u=0};b.push(m)})(e)}}return null!=b?b.reverse():null};var ga=mxVertexHandler.prototype.setHandlesVisible;
+this.bounds};var N=mxVertexHandler.prototype.isParentHighlightVisible;mxVertexHandler.prototype.isParentHighlightVisible=function(){return N.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)};var M=mxVertexHandler.prototype.isCustomHandleVisible;mxVertexHandler.prototype.isCustomHandleVisible=function(b){return b.tableHandle||M.apply(this,arguments)&&(!this.graph.isTable(this.state.cell)||this.graph.isCellSelected(this.state.cell))};mxVertexHandler.prototype.getSelectionBorderInset=
+function(){var b=0;this.graph.isTableRow(this.state.cell)?b=1:this.graph.isTableCell(this.state.cell)&&(b=2);return b};var P=mxVertexHandler.prototype.getSelectionBorderBounds;mxVertexHandler.prototype.getSelectionBorderBounds=function(){return P.apply(this,arguments).grow(-this.getSelectionBorderInset())};var V=null,W=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){null==V&&(V=mxCellRenderer.defaultShapes.tableLine);var b=W.apply(this,arguments);
+if(this.graph.isTable(this.state.cell)){var d=function(b,d,c){for(var g=[],e=0;e<b.length;e++){var f=b[e];g.push(null==f?null:new mxPoint((m+f.x+d)*k,(p+f.y+c)*k))}return g},c=this,g=this.graph,e=g.model,k=g.view.scale,f=this.state,l=this.selectionBorder,m=this.state.origin.x+g.view.translate.x,p=this.state.origin.y+g.view.translate.y;null==b&&(b=[]);var x=g.view.getCellStates(e.getChildCells(this.state.cell,!0));if(0<x.length){for(var u=e.getChildCells(x[0].cell,!0),n=g.getTableLines(this.state.cell,
+!1,!0),t=g.getTableLines(this.state.cell,!0,!1),e=0;e<x.length;e++)mxUtils.bind(this,function(e){var m=x[e],p=e<x.length-1?x[e+1]:null,p=null!=p?g.getCellGeometry(p.cell):null,u=null!=p&&null!=p.alternateBounds?p.alternateBounds:p,p=null!=t[e]?new V(t[e],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!1);p.isDashed=l.isDashed;p.svgStrokeTolerance++;m=new mxHandle(m,"row-resize",null,p);m.tableHandle=!0;var n=0;m.shape.node.parentNode.insertBefore(m.shape.node,m.shape.node.parentNode.firstChild);
+m.redraw=function(){if(null!=this.shape){this.shape.stroke=0==n?mxConstants.NONE:l.stroke;if(this.shape.constructor==V)this.shape.line=d(t[e],0,n),this.shape.updateBoundsFromLine();else{var b=g.getActualStartSize(f.cell,!0);this.shape.bounds.height=1;this.shape.bounds.y=this.state.y+this.state.height+n*k;this.shape.bounds.x=f.x+(e==x.length-1?0:b.x*k);this.shape.bounds.width=f.width-(e==x.length-1?0:b.width+b.x+k)}this.shape.redraw()}};var v=!1;m.setPosition=function(b,d,c){n=Math.max(Graph.minTableRowHeight-
+b.height,d.y-b.y-b.height);v=mxEvent.isShiftDown(c.getEvent());null!=u&&v&&(n=Math.min(n,u.height-Graph.minTableRowHeight))};m.execute=function(b){if(0!=n)g.setTableRowHeight(this.state.cell,n,!v);else if(!c.blockDelayedSelection){var d=g.getCellAt(b.getGraphX(),b.getGraphY())||f.cell;g.graphHandler.selectCellForEvent(d,b)}n=0};m.reset=function(){n=0};b.push(m)})(e);for(e=0;e<u.length;e++)mxUtils.bind(this,function(e){var m=g.view.getState(u[e]),p=g.getCellGeometry(u[e]),x=null!=p.alternateBounds?
+p.alternateBounds:p;null==m&&(m=new mxCellState(g.view,u[e],g.getCellStyle(u[e])),m.x=f.x+p.x*k,m.y=f.y+p.y*k,m.width=x.width*k,m.height=x.height*k,m.updateCachedBounds());var p=e<u.length-1?u[e+1]:null,p=null!=p?g.getCellGeometry(p):null,t=null!=p&&null!=p.alternateBounds?p.alternateBounds:p,p=null!=n[e]?new V(n[e],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!0);p.isDashed=l.isDashed;p.svgStrokeTolerance++;m=new mxHandle(m,"col-resize",null,p);m.tableHandle=!0;var v=0;m.shape.node.parentNode.insertBefore(m.shape.node,
+m.shape.node.parentNode.firstChild);m.redraw=function(){if(null!=this.shape){this.shape.stroke=0==v?mxConstants.NONE:l.stroke;if(this.shape.constructor==V)this.shape.line=d(n[e],v,0),this.shape.updateBoundsFromLine();else{var b=g.getActualStartSize(f.cell,!0);this.shape.bounds.width=1;this.shape.bounds.x=this.state.x+(x.width+v)*k;this.shape.bounds.y=f.y+(e==u.length-1?0:b.y*k);this.shape.bounds.height=f.height-(e==u.length-1?0:(b.height+b.y)*k)}this.shape.redraw()}};var y=!1;m.setPosition=function(b,
+d,c){v=Math.max(Graph.minTableColumnWidth-x.width,d.x-b.x-x.width);y=mxEvent.isShiftDown(c.getEvent());null==t||y||(v=Math.min(v,t.width-Graph.minTableColumnWidth))};m.execute=function(b){if(0!=v)g.setTableColumnWidth(this.state.cell,v,y);else if(!c.blockDelayedSelection){var d=g.getCellAt(b.getGraphX(),b.getGraphY())||f.cell;g.graphHandler.selectCellForEvent(d,b)}v=0};m.positionChanged=function(){};m.reset=function(){v=0};b.push(m)})(e)}}return null!=b?b.reverse():null};var ga=mxVertexHandler.prototype.setHandlesVisible;
mxVertexHandler.prototype.setHandlesVisible=function(b){ga.apply(this,arguments);if(null!=this.moveHandles)for(var d=0;d<this.moveHandles.length;d++)this.moveHandles[d].style.visibility=b?"":"hidden";if(null!=this.cornerHandles)for(d=0;d<this.cornerHandles.length;d++)this.cornerHandles[d].node.style.visibility=b?"":"hidden"};mxVertexHandler.prototype.refreshMoveHandles=function(){var b=this.graph.model;if(null!=this.moveHandles){for(var d=0;d<this.moveHandles.length;d++)this.moveHandles[d].parentNode.removeChild(this.moveHandles[d]);
this.moveHandles=null}this.moveHandles=[];for(d=0;d<b.getChildCount(this.state.cell);d++)mxUtils.bind(this,function(d){if(null!=d&&b.isVertex(d.cell)){var c=mxUtils.createImage(Editor.rowMoveImage);c.style.position="absolute";c.style.cursor="pointer";c.style.width="7px";c.style.height="4px";c.style.padding="4px 2px 4px 2px";c.rowState=d;mxEvent.addGestureListeners(c,mxUtils.bind(this,function(b){this.graph.popupMenuHandler.hideMenu();this.graph.stopEditing(!1);!this.graph.isToggleEvent(b)&&this.graph.isCellSelected(d.cell)||
this.graph.selectCellForEvent(d.cell,b);mxEvent.isPopupTrigger(b)||(this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(b),mxEvent.getClientY(b),this.graph.getSelectionCells()),this.graph.graphHandler.cellWasClicked=!0,this.graph.isMouseTrigger=mxEvent.isMouseEvent(b),this.graph.isMouseDown=!0);mxEvent.consume(b)}),null,mxUtils.bind(this,function(b){mxEvent.isPopupTrigger(b)&&(this.graph.popupMenuHandler.popup(mxEvent.getClientX(b),mxEvent.getClientY(b),d.cell,b),mxEvent.consume(b))}));
-this.moveHandles.push(c);this.graph.container.appendChild(c)}})(this.graph.view.getState(b.getChildAt(this.state.cell,d)))};mxVertexHandler.prototype.refresh=function(){if(null!=this.customHandles){for(var b=0;b<this.customHandles.length;b++)this.customHandles[b].destroy();this.customHandles=this.createCustomHandles()}this.graph.isTable(this.state.cell)&&this.refreshMoveHandles()};var ja=mxVertexHandler.prototype.getHandlePadding;mxVertexHandler.prototype.getHandlePadding=function(){var b=new mxPoint(0,
+this.moveHandles.push(c);this.graph.container.appendChild(c)}})(this.graph.view.getState(b.getChildAt(this.state.cell,d)))};mxVertexHandler.prototype.refresh=function(){if(null!=this.customHandles){for(var b=0;b<this.customHandles.length;b++)this.customHandles[b].destroy();this.customHandles=this.createCustomHandles()}this.graph.isTable(this.state.cell)&&this.refreshMoveHandles()};var ea=mxVertexHandler.prototype.getHandlePadding;mxVertexHandler.prototype.getHandlePadding=function(){var b=new mxPoint(0,
0),d=this.tolerance,c=this.state.style.shape;null==mxCellRenderer.defaultShapes[c]&&mxStencilRegistry.getStencil(c);c=this.graph.isTable(this.state.cell)||this.graph.cellEditor.getEditingCell()==this.state.cell;if(!c&&null!=this.customHandles)for(var g=0;g<this.customHandles.length;g++)if(null!=this.customHandles[g].shape&&null!=this.customHandles[g].shape.bounds){var e=this.customHandles[g].shape.bounds,k=e.getCenterX(),f=e.getCenterY();if(Math.abs(this.state.x-k)<e.width/2||Math.abs(this.state.y-
-f)<e.height/2||Math.abs(this.state.x+this.state.width-k)<e.width/2||Math.abs(this.state.y+this.state.height-f)<e.height/2){c=!0;break}}c&&null!=this.sizers&&0<this.sizers.length&&null!=this.sizers[0]?(d/=2,this.graph.isTable(this.state.cell)&&(d+=7),b.x=this.sizers[0].bounds.width+d,b.y=this.sizers[0].bounds.height+d):b=ja.apply(this,arguments);return b};mxVertexHandler.prototype.updateHint=function(d){if(this.index!=mxEvent.LABEL_HANDLE){null==this.hint&&(this.hint=b(),this.state.view.graph.container.appendChild(this.hint));
+f)<e.height/2||Math.abs(this.state.x+this.state.width-k)<e.width/2||Math.abs(this.state.y+this.state.height-f)<e.height/2){c=!0;break}}c&&null!=this.sizers&&0<this.sizers.length&&null!=this.sizers[0]?(d/=2,this.graph.isTable(this.state.cell)&&(d+=7),b.x=this.sizers[0].bounds.width+d,b.y=this.sizers[0].bounds.height+d):b=ea.apply(this,arguments);return b};mxVertexHandler.prototype.updateHint=function(d){if(this.index!=mxEvent.LABEL_HANDLE){null==this.hint&&(this.hint=b(),this.state.view.graph.container.appendChild(this.hint));
if(this.index==mxEvent.ROTATION_HANDLE)this.hint.innerHTML=this.currentAlpha+"&deg;";else{d=this.state.view.scale;var g=this.state.view.unit;this.hint.innerHTML=c(this.roundLength(this.bounds.width/d),g)+" x "+c(this.roundLength(this.bounds.height/d),g)}d=mxUtils.getBoundingBox(this.bounds,null!=this.currentAlpha?this.currentAlpha:this.state.style[mxConstants.STYLE_ROTATION]||"0");null==d&&(d=this.bounds);this.hint.style.left=d.x+Math.round((d.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=
-d.y+d.height+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")}};mxVertexHandler.prototype.removeHint=function(){mxGraphHandler.prototype.removeHint.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.display="")};var X=mxEdgeHandler.prototype.mouseMove;mxEdgeHandler.prototype.mouseMove=function(b,d){X.apply(this,arguments);null!=this.linkHint&&"none"!=this.linkHint.style.display&&null!=this.graph.graphHandler&&null!=this.graph.graphHandler.first&&(this.linkHint.style.display=
+d.y+d.height+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")}};mxVertexHandler.prototype.removeHint=function(){mxGraphHandler.prototype.removeHint.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.display="")};var ba=mxEdgeHandler.prototype.mouseMove;mxEdgeHandler.prototype.mouseMove=function(b,d){ba.apply(this,arguments);null!=this.linkHint&&"none"!=this.linkHint.style.display&&null!=this.graph.graphHandler&&null!=this.graph.graphHandler.first&&(this.linkHint.style.display=
"none")};var x=mxEdgeHandler.prototype.mouseUp;mxEdgeHandler.prototype.mouseUp=function(b,d){x.apply(this,arguments);null!=this.linkHint&&"none"==this.linkHint.style.display&&(this.linkHint.style.display="")};mxEdgeHandler.prototype.updateHint=function(d,g){null==this.hint&&(this.hint=b(),this.state.view.graph.container.appendChild(this.hint));var e=this.graph.view.translate,k=this.graph.view.scale,f=this.roundLength(g.x/k-e.x),e=this.roundLength(g.y/k-e.y),k=this.graph.view.unit;this.hint.innerHTML=
c(f,k)+", "+c(e,k);this.hint.style.visibility="visible";if(this.isSource||this.isTarget)null!=this.constraintHandler.currentConstraint&&null!=this.constraintHandler.currentFocus?(f=this.constraintHandler.currentConstraint.point,this.hint.innerHTML="["+Math.round(100*f.x)+"%, "+Math.round(100*f.y)+"%]"):this.marker.hasValidState()&&(this.hint.style.visibility="hidden");this.hint.style.left=Math.round(d.getGraphX()-this.hint.clientWidth/2)+"px";this.hint.style.top=Math.max(d.getGraphY(),g.y)+Editor.hintOffset+
"px";null!=this.linkHint&&(this.linkHint.style.display="none")};Graph.prototype.expandedImage=Graph.createSvgImage(9,9,'<defs><linearGradient id="grad1" x1="50%" y1="0%" x2="50%" y2="100%"><stop offset="30%" style="stop-color:#f0f0f0;" /><stop offset="100%" style="stop-color:#AFB0B6;" /></linearGradient></defs><rect x="0" y="0" width="9" height="9" stroke="#8A94A5" fill="url(#grad1)" stroke-width="2"/><path d="M 2 4.5 L 7 4.5 z" stroke="#000"/>');Graph.prototype.collapsedImage=Graph.createSvgImage(9,
@@ -2714,177 +2714,177 @@ this.graph.view.getState(l[c]),p=this.graph.getCellGeometry(l[c]);null!=m&&null!
var g=d.getX()+c.x,c=d.getY()+c.y,e=this.first.x-g,k=this.first.y-c,f=this.graph.tolerance;if(null!=this.div||Math.abs(e)>f||Math.abs(k)>f)null==this.div&&(this.div=this.createShape()),mxUtils.clearSelection(),this.update(g,c),this.isSpaceEvent(d)?(g=this.x+this.width,c=this.y+this.height,e=this.graph.view.scale,mxEvent.isAltDown(d.getEvent())||(this.width=this.graph.snap(this.width/e)*e,this.height=this.graph.snap(this.height/e)*e,this.graph.isGridEnabled()||(this.width<this.graph.tolerance&&(this.width=
0),this.height<this.graph.tolerance&&(this.height=0)),this.x<this.first.x&&(this.x=g-this.width),this.y<this.first.y&&(this.y=c-this.height)),this.div.style.borderStyle="dashed",this.div.style.backgroundColor="white",this.div.style.left=this.x+"px",this.div.style.top=this.y+"px",this.div.style.width=Math.max(0,this.width)+"px",this.div.style.height=this.graph.container.clientHeight+"px",this.div.style.borderWidth=0>=this.width?"0px 1px 0px 0px":"0px 1px 0px 1px",null==this.secondDiv&&(this.secondDiv=
this.div.cloneNode(!0),this.div.parentNode.appendChild(this.secondDiv)),this.secondDiv.style.left=this.x+"px",this.secondDiv.style.top=this.y+"px",this.secondDiv.style.width=this.graph.container.clientWidth+"px",this.secondDiv.style.height=Math.max(0,this.height)+"px",this.secondDiv.style.borderWidth=0>=this.height?"1px 0px 0px 0px":"1px 0px 1px 0px"):(this.div.style.backgroundColor="",this.div.style.borderWidth="",this.div.style.borderStyle="",null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),
-this.secondDiv=null)),d.consume()}};var J=mxRubberband.prototype.reset;mxRubberband.prototype.reset=function(){null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);J.apply(this,arguments)};var V=(new Date).getTime(),ca=0,aa=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(b,d,c,g){aa.apply(this,arguments);c!=this.currentTerminalState?(V=(new Date).getTime(),ca=0):ca=(new Date).getTime()-V;this.currentTerminalState=
-c};var da=mxEdgeHandler.prototype.isOutlineConnectEvent;mxEdgeHandler.prototype.isOutlineConnectEvent=function(b){return null!=this.currentTerminalState&&b.getState()==this.currentTerminalState&&2E3<ca||(null==this.currentTerminalState||"0"!=mxUtils.getValue(this.currentTerminalState.style,"outlineConnect","1"))&&da.apply(this,arguments)};mxEdgeHandler.prototype.createHandleShape=function(b,d,c){d=null!=b&&0==b;var g=this.state.getVisibleTerminalState(d);b=null!=b&&(0==b||b>=this.state.absolutePoints.length-
+this.secondDiv=null)),d.consume()}};var J=mxRubberband.prototype.reset;mxRubberband.prototype.reset=function(){null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);J.apply(this,arguments)};var X=(new Date).getTime(),ca=0,ka=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(b,d,c,g){ka.apply(this,arguments);c!=this.currentTerminalState?(X=(new Date).getTime(),ca=0):ca=(new Date).getTime()-X;this.currentTerminalState=
+c};var K=mxEdgeHandler.prototype.isOutlineConnectEvent;mxEdgeHandler.prototype.isOutlineConnectEvent=function(b){return null!=this.currentTerminalState&&b.getState()==this.currentTerminalState&&2E3<ca||(null==this.currentTerminalState||"0"!=mxUtils.getValue(this.currentTerminalState.style,"outlineConnect","1"))&&K.apply(this,arguments)};mxEdgeHandler.prototype.createHandleShape=function(b,d,c){d=null!=b&&0==b;var g=this.state.getVisibleTerminalState(d);b=null!=b&&(0==b||b>=this.state.absolutePoints.length-
1||this.constructor==mxElbowEdgeHandler&&2==b)?this.graph.getConnectionConstraint(this.state,g,d):null;c=null!=(null!=b?this.graph.getConnectionPoint(this.state.getVisibleTerminalState(d),b):null)?c?this.endFixedHandleImage:this.fixedHandleImage:null!=b&&null!=g?c?this.endTerminalHandleImage:this.terminalHandleImage:c?this.endHandleImage:this.handleImage;if(null!=c)return c=new mxImageShape(new mxRectangle(0,0,c.width,c.height),c.src),c.preserveImageAspect=!1,c;c=mxConstants.HANDLE_SIZE;this.preferHtml&&
---c;return new mxRectangleShape(new mxRectangle(0,0,c,c),mxConstants.HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR)};var ta=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(b,d,c){this.handleImage=d==mxEvent.ROTATION_HANDLE?HoverIcons.prototype.rotationHandle:d==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:this.handleImage;return ta.apply(this,arguments)};var ua=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox=function(b){if(null!=
-b&&1==b.length){var d=this.graph.getModel(),c=d.getParent(b[0]),g=this.graph.getCellGeometry(b[0]);if(d.isEdge(c)&&null!=g&&g.relative&&(d=this.graph.view.getState(b[0]),null!=d&&2>d.width&&2>d.height&&null!=d.text&&null!=d.text.boundingBox))return mxRectangle.fromRectangle(d.text.boundingBox)}return ua.apply(this,arguments)};var ha=mxGraphHandler.prototype.getGuideStates;mxGraphHandler.prototype.getGuideStates=function(){for(var b=ha.apply(this,arguments),d=[],c=0;c<b.length;c++)"1"!=mxUtils.getValue(b[c].style,
-"part","0")&&d.push(b[c]);return d};var oa=mxVertexHandler.prototype.getSelectionBounds;mxVertexHandler.prototype.getSelectionBounds=function(b){var d=this.graph.getModel(),c=d.getParent(b.cell),g=this.graph.getCellGeometry(b.cell);return d.isEdge(c)&&null!=g&&g.relative&&2>b.width&&2>b.height&&null!=b.text&&null!=b.text.boundingBox?(d=b.text.unrotatedBoundingBox||b.text.boundingBox,new mxRectangle(Math.round(d.x),Math.round(d.y),Math.round(d.width),Math.round(d.height))):oa.apply(this,arguments)};
-var Y=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(b,d){var c=this.graph.getModel(),g=c.getParent(this.state.cell),e=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(d)==mxEvent.ROTATION_HANDLE||!c.isEdge(g)||null==e||!e.relative||null==this.state||2<=this.state.width||2<=this.state.height)&&Y.apply(this,arguments)};mxVertexHandler.prototype.rotateClick=function(){var b=mxUtils.getValue(this.state.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),
-d=mxUtils.getValue(this.state.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);this.state.view.graph.model.isVertex(this.state.cell)&&b==mxConstants.NONE&&d==mxConstants.NONE?(b=mxUtils.mod(mxUtils.getValue(this.state.style,mxConstants.STYLE_ROTATION,0)+90,360),this.state.view.graph.setCellStyles(mxConstants.STYLE_ROTATION,b,[this.state.cell])):this.state.view.graph.turnShapes([this.state.cell])};var Q=mxVertexHandler.prototype.mouseMove;mxVertexHandler.prototype.mouseMove=function(b,d){Q.apply(this,
-arguments);null!=this.graph.graphHandler.first&&(null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display="none"),null!=this.linkHint&&"none"!=this.linkHint.style.display&&(this.linkHint.style.display="none"))};var ea=mxVertexHandler.prototype.mouseUp;mxVertexHandler.prototype.mouseUp=function(b,d){ea.apply(this,arguments);null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display=1==this.graph.getSelectionCount()?"":"none");
-null!=this.linkHint&&"none"==this.linkHint.style.display&&(this.linkHint.style.display="");this.blockDelayedSelection=null};var S=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){S.apply(this,arguments);var b=!1;null!=this.rotationShape&&this.rotationShape.node.setAttribute("title",mxResources.get("rotateTooltip"));if(this.graph.isTable(this.state.cell))this.refreshMoveHandles();else if(1==this.graph.getSelectionCount()&&(this.graph.isTableCell(this.state.cell)||this.graph.isTableRow(this.state.cell))){this.cornerHandles=
+--c;return new mxRectangleShape(new mxRectangle(0,0,c,c),mxConstants.HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR)};var na=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(b,d,c){this.handleImage=d==mxEvent.ROTATION_HANDLE?HoverIcons.prototype.rotationHandle:d==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:this.handleImage;return na.apply(this,arguments)};var qa=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox=function(b){if(null!=
+b&&1==b.length){var d=this.graph.getModel(),c=d.getParent(b[0]),g=this.graph.getCellGeometry(b[0]);if(d.isEdge(c)&&null!=g&&g.relative&&(d=this.graph.view.getState(b[0]),null!=d&&2>d.width&&2>d.height&&null!=d.text&&null!=d.text.boundingBox))return mxRectangle.fromRectangle(d.text.boundingBox)}return qa.apply(this,arguments)};var pa=mxGraphHandler.prototype.getGuideStates;mxGraphHandler.prototype.getGuideStates=function(){for(var b=pa.apply(this,arguments),d=[],c=0;c<b.length;c++)"1"!=mxUtils.getValue(b[c].style,
+"part","0")&&d.push(b[c]);return d};var ha=mxVertexHandler.prototype.getSelectionBounds;mxVertexHandler.prototype.getSelectionBounds=function(b){var d=this.graph.getModel(),c=d.getParent(b.cell),g=this.graph.getCellGeometry(b.cell);return d.isEdge(c)&&null!=g&&g.relative&&2>b.width&&2>b.height&&null!=b.text&&null!=b.text.boundingBox?(d=b.text.unrotatedBoundingBox||b.text.boundingBox,new mxRectangle(Math.round(d.x),Math.round(d.y),Math.round(d.width),Math.round(d.height))):ha.apply(this,arguments)};
+var sa=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(b,d){var c=this.graph.getModel(),g=c.getParent(this.state.cell),e=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(d)==mxEvent.ROTATION_HANDLE||!c.isEdge(g)||null==e||!e.relative||null==this.state||2<=this.state.width||2<=this.state.height)&&sa.apply(this,arguments)};mxVertexHandler.prototype.rotateClick=function(){var b=mxUtils.getValue(this.state.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),
+d=mxUtils.getValue(this.state.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);this.state.view.graph.model.isVertex(this.state.cell)&&b==mxConstants.NONE&&d==mxConstants.NONE?(b=mxUtils.mod(mxUtils.getValue(this.state.style,mxConstants.STYLE_ROTATION,0)+90,360),this.state.view.graph.setCellStyles(mxConstants.STYLE_ROTATION,b,[this.state.cell])):this.state.view.graph.turnShapes([this.state.cell])};var Y=mxVertexHandler.prototype.mouseMove;mxVertexHandler.prototype.mouseMove=function(b,d){Y.apply(this,
+arguments);null!=this.graph.graphHandler.first&&(null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display="none"),null!=this.linkHint&&"none"!=this.linkHint.style.display&&(this.linkHint.style.display="none"))};var Q=mxVertexHandler.prototype.mouseUp;mxVertexHandler.prototype.mouseUp=function(b,d){Q.apply(this,arguments);null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display=1==this.graph.getSelectionCount()?"":"none");
+null!=this.linkHint&&"none"==this.linkHint.style.display&&(this.linkHint.style.display="");this.blockDelayedSelection=null};var ta=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){ta.apply(this,arguments);var b=!1;null!=this.rotationShape&&this.rotationShape.node.setAttribute("title",mxResources.get("rotateTooltip"));if(this.graph.isTable(this.state.cell))this.refreshMoveHandles();else if(1==this.graph.getSelectionCount()&&(this.graph.isTableCell(this.state.cell)||this.graph.isTableRow(this.state.cell))){this.cornerHandles=
[];for(var d=0;4>d;d++){var c=new mxRectangleShape(new mxRectangle(0,0,6,6),"#ffffff",mxConstants.HANDLE_STROKECOLOR);c.dialect=mxConstants.DIALECT_SVG;c.init(this.graph.view.getOverlayPane());this.cornerHandles.push(c)}}var g=mxUtils.bind(this,function(){null!=this.specialHandle&&(this.specialHandle.node.style.display=this.graph.isEnabled()&&this.graph.getSelectionCount()<this.graph.graphHandler.maxCells?"":"none");this.redrawHandles()});this.changeHandler=mxUtils.bind(this,function(b,d){this.updateLinkHint(this.graph.getLinkForCell(this.state.cell),
this.graph.getLinksForState(this.state));g()});this.graph.getSelectionModel().addListener(mxEvent.CHANGE,this.changeHandler);this.graph.getModel().addListener(mxEvent.CHANGE,this.changeHandler);this.editingHandler=mxUtils.bind(this,function(b,d){this.redrawHandles()});this.graph.addListener(mxEvent.EDITING_STOPPED,this.editingHandler);d=this.graph.getLinkForCell(this.state.cell);c=this.graph.getLinksForState(this.state);this.updateLinkHint(d,c);if(null!=d||null!=c&&0<c.length)b=!0;b&&this.redrawHandles()};
mxVertexHandler.prototype.updateLinkHint=function(d,c){try{if(null==d&&(null==c||0==c.length)||1<this.graph.getSelectionCount())null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);else if(null!=d||null!=c&&0<c.length){null==this.linkHint&&(this.linkHint=b(),this.linkHint.style.padding="6px 8px 6px 8px",this.linkHint.style.opacity="1",this.linkHint.style.filter="",this.graph.container.appendChild(this.linkHint),mxEvent.addListener(this.linkHint,"mouseenter",
mxUtils.bind(this,function(){this.graph.tooltipHandler.hide()})));this.linkHint.innerHTML="";if(null!=d&&(this.linkHint.appendChild(this.graph.createLinkForHint(d)),this.graph.isEnabled()&&"function"===typeof this.graph.editLink)){var g=document.createElement("img");g.setAttribute("src",Editor.editImage);g.setAttribute("title",mxResources.get("editLink"));g.setAttribute("width","11");g.setAttribute("height","11");g.style.marginLeft="10px";g.style.marginBottom="-1px";g.style.cursor="pointer";this.linkHint.appendChild(g);
mxEvent.addListener(g,"click",mxUtils.bind(this,function(b){this.graph.setSelectionCell(this.state.cell);this.graph.editLink();mxEvent.consume(b)}));this.linkHint.appendChildGraph.createRemoveIcon(mxResources.get("removeIt",[mxResources.get("link")]),mxUtils.bind(this,function(b){this.graph.setLinkForCell(this.state.cell,null);mxEvent.consume(b)}))}if(null!=c)for(g=0;g<c.length;g++){var e=document.createElement("div");e.style.marginTop=null!=d||0<g?"6px":"0px";e.appendChild(this.graph.createLinkForHint(c[g].getAttribute("href"),
-mxUtils.getTextContent(c[g])));this.linkHint.appendChild(e)}}}catch(sa){}};mxEdgeHandler.prototype.updateLinkHint=mxVertexHandler.prototype.updateLinkHint;var ma=mxEdgeHandler.prototype.init;mxEdgeHandler.prototype.init=function(){ma.apply(this,arguments);this.constraintHandler.isEnabled=mxUtils.bind(this,function(){return this.state.view.graph.connectionHandler.isEnabled()});var b=mxUtils.bind(this,function(){null!=this.linkHint&&(this.linkHint.style.display=1==this.graph.getSelectionCount()?"":
-"none");null!=this.labelShape&&(this.labelShape.node.style.display=this.graph.isEnabled()&&this.graph.getSelectionCount()<this.graph.graphHandler.maxCells?"":"none")});this.changeHandler=mxUtils.bind(this,function(d,c){this.updateLinkHint(this.graph.getLinkForCell(this.state.cell),this.graph.getLinksForState(this.state));b();this.redrawHandles()});this.graph.getSelectionModel().addListener(mxEvent.CHANGE,this.changeHandler);this.graph.getModel().addListener(mxEvent.CHANGE,this.changeHandler);var d=
-this.graph.getLinkForCell(this.state.cell),c=this.graph.getLinksForState(this.state);if(null!=d||null!=c&&0<c.length)this.updateLinkHint(d,c),this.redrawHandles()};var pa=mxConnectionHandler.prototype.init;mxConnectionHandler.prototype.init=function(){pa.apply(this,arguments);this.constraintHandler.isEnabled=mxUtils.bind(this,function(){return this.graph.connectionHandler.isEnabled()})};var ra=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){if(null!=this.moveHandles)for(var b=
-0;b<this.moveHandles.length;b++)this.moveHandles[b].style.left=this.moveHandles[b].rowState.x+this.moveHandles[b].rowState.width-5+"px",this.moveHandles[b].style.top=this.moveHandles[b].rowState.y+this.moveHandles[b].rowState.height/2-6+"px";if(null!=this.cornerHandles){var b=this.getSelectionBorderInset(),d=this.cornerHandles,c=d[0].bounds.height/2;d[0].bounds.x=this.state.x-d[0].bounds.width/2+b;d[0].bounds.y=this.state.y-c+b;d[0].redraw();d[1].bounds.x=d[0].bounds.x+this.state.width-2*b;d[1].bounds.y=
-d[0].bounds.y;d[1].redraw();d[2].bounds.x=d[0].bounds.x;d[2].bounds.y=this.state.y+this.state.height-2*b;d[2].redraw();d[3].bounds.x=d[1].bounds.x;d[3].bounds.y=d[2].bounds.y;d[3].redraw();for(b=0;b<this.cornerHandles.length;b++)this.cornerHandles[b].node.style.display=1==this.graph.getSelectionCount()?"":"none"}null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display=null!=this.moveHandles||1!=this.graph.getSelectionCount()||null!=this.index&&this.index!=mxEvent.ROTATION_HANDLE?
-"none":"");ra.apply(this);null!=this.state&&null!=this.linkHint&&(b=new mxPoint(this.state.getCenterX(),this.state.getCenterY()),d=new mxRectangle(this.state.x,this.state.y-22,this.state.width+24,this.state.height+22),c=mxUtils.getBoundingBox(d,this.state.style[mxConstants.STYLE_ROTATION]||"0",b),b=null!=c?mxUtils.getBoundingBox(this.state,this.state.style[mxConstants.STYLE_ROTATION]||"0"):this.state,d=null!=this.state.text?this.state.text.boundingBox:null,null==c&&(c=this.state),c=c.y+c.height,null!=
-d&&(c=Math.max(c,d.y+d.height)),this.linkHint.style.left=Math.max(0,Math.round(b.x+(b.width-this.linkHint.clientWidth)/2))+"px",this.linkHint.style.top=Math.round(c+this.verticalOffset/2+Editor.hintOffset)+"px")};var R=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(){R.apply(this,arguments);if(null!=this.moveHandles){for(var b=0;b<this.moveHandles.length;b++)null!=this.moveHandles[b]&&null!=this.moveHandles[b].parentNode&&this.moveHandles[b].parentNode.removeChild(this.moveHandles[b]);
-this.moveHandles=null}if(null!=this.cornerHandles){for(b=0;b<this.cornerHandles.length;b++)null!=this.cornerHandles[b]&&null!=this.cornerHandles[b].node&&null!=this.cornerHandles[b].node.parentNode&&this.cornerHandles[b].node.parentNode.removeChild(this.cornerHandles[b].node);this.cornerHandles=null}null!=this.linkHint&&(null!=this.linkHint.parentNode&&this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getSelectionModel().removeListener(this.changeHandler),
-this.graph.getModel().removeListener(this.changeHandler),this.changeHandler=null);null!=this.editingHandler&&(this.graph.removeListener(this.editingHandler),this.editingHandler=null)};var qa=mxEdgeHandler.prototype.redrawHandles;mxEdgeHandler.prototype.redrawHandles=function(){if(null!=this.marker&&(qa.apply(this),null!=this.state&&null!=this.linkHint)){var b=this.state;null!=this.state.text&&null!=this.state.text.bounds&&(b=new mxRectangle(b.x,b.y,b.width,b.height),b.add(this.state.text.bounds));
-this.linkHint.style.left=Math.max(0,Math.round(b.x+(b.width-this.linkHint.clientWidth)/2))+"px";this.linkHint.style.top=Math.round(b.y+b.height+Editor.hintOffset)+"px"}};var ia=mxEdgeHandler.prototype.reset;mxEdgeHandler.prototype.reset=function(){ia.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility="")};var fa=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){fa.apply(this,arguments);null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),
-this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();(function(){function b(b,d,c){mxShape.call(this);this.line=b;this.stroke=d;this.strokewidth=null!=c?c:1;this.updateBoundsFromLine()}function c(){mxSwimlane.call(this)}function e(){mxSwimlane.call(this)}function f(){mxCylinder.call(this)}function n(){mxCylinder.call(this)}function l(){mxActor.call(this)}function q(){mxCylinder.call(this)}function d(){mxCylinder.call(this)}function k(){mxCylinder.call(this)}function g(){mxCylinder.call(this)}function p(){mxShape.call(this)}function m(){mxShape.call(this)}
-function v(b,d,c,g){mxShape.call(this);this.bounds=b;this.fill=d;this.stroke=c;this.strokewidth=null!=g?g:1}function u(){mxActor.call(this)}function t(){mxCylinder.call(this)}function z(){mxCylinder.call(this)}function y(){mxActor.call(this)}function F(){mxActor.call(this)}function D(){mxActor.call(this)}function E(){mxActor.call(this)}function H(){mxActor.call(this)}function N(){mxActor.call(this)}function A(){mxActor.call(this)}function G(b,d){this.canvas=b;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");
+mxUtils.getTextContent(c[g])));this.linkHint.appendChild(e)}}}catch(ua){}};mxEdgeHandler.prototype.updateLinkHint=mxVertexHandler.prototype.updateLinkHint;var T=mxEdgeHandler.prototype.init;mxEdgeHandler.prototype.init=function(){T.apply(this,arguments);this.constraintHandler.isEnabled=mxUtils.bind(this,function(){return this.state.view.graph.connectionHandler.isEnabled()});var b=mxUtils.bind(this,function(){null!=this.linkHint&&(this.linkHint.style.display=1==this.graph.getSelectionCount()?"":"none");
+null!=this.labelShape&&(this.labelShape.node.style.display=this.graph.isEnabled()&&this.graph.getSelectionCount()<this.graph.graphHandler.maxCells?"":"none")});this.changeHandler=mxUtils.bind(this,function(d,c){this.updateLinkHint(this.graph.getLinkForCell(this.state.cell),this.graph.getLinksForState(this.state));b();this.redrawHandles()});this.graph.getSelectionModel().addListener(mxEvent.CHANGE,this.changeHandler);this.graph.getModel().addListener(mxEvent.CHANGE,this.changeHandler);var d=this.graph.getLinkForCell(this.state.cell),
+c=this.graph.getLinksForState(this.state);if(null!=d||null!=c&&0<c.length)this.updateLinkHint(d,c),this.redrawHandles()};var ja=mxConnectionHandler.prototype.init;mxConnectionHandler.prototype.init=function(){ja.apply(this,arguments);this.constraintHandler.isEnabled=mxUtils.bind(this,function(){return this.graph.connectionHandler.isEnabled()})};var ma=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){if(null!=this.moveHandles)for(var b=0;b<this.moveHandles.length;b++)this.moveHandles[b].style.left=
+this.moveHandles[b].rowState.x+this.moveHandles[b].rowState.width-5+"px",this.moveHandles[b].style.top=this.moveHandles[b].rowState.y+this.moveHandles[b].rowState.height/2-6+"px";if(null!=this.cornerHandles){var b=this.getSelectionBorderInset(),d=this.cornerHandles,c=d[0].bounds.height/2;d[0].bounds.x=this.state.x-d[0].bounds.width/2+b;d[0].bounds.y=this.state.y-c+b;d[0].redraw();d[1].bounds.x=d[0].bounds.x+this.state.width-2*b;d[1].bounds.y=d[0].bounds.y;d[1].redraw();d[2].bounds.x=d[0].bounds.x;
+d[2].bounds.y=this.state.y+this.state.height-2*b;d[2].redraw();d[3].bounds.x=d[1].bounds.x;d[3].bounds.y=d[2].bounds.y;d[3].redraw();for(b=0;b<this.cornerHandles.length;b++)this.cornerHandles[b].node.style.display=1==this.graph.getSelectionCount()?"":"none"}null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display=null!=this.moveHandles||1!=this.graph.getSelectionCount()||null!=this.index&&this.index!=mxEvent.ROTATION_HANDLE?"none":"");ma.apply(this);null!=this.state&&
+null!=this.linkHint&&(b=new mxPoint(this.state.getCenterX(),this.state.getCenterY()),d=new mxRectangle(this.state.x,this.state.y-22,this.state.width+24,this.state.height+22),c=mxUtils.getBoundingBox(d,this.state.style[mxConstants.STYLE_ROTATION]||"0",b),b=null!=c?mxUtils.getBoundingBox(this.state,this.state.style[mxConstants.STYLE_ROTATION]||"0"):this.state,d=null!=this.state.text?this.state.text.boundingBox:null,null==c&&(c=this.state),c=c.y+c.height,null!=d&&(c=Math.max(c,d.y+d.height)),this.linkHint.style.left=
+Math.max(0,Math.round(b.x+(b.width-this.linkHint.clientWidth)/2))+"px",this.linkHint.style.top=Math.round(c+this.verticalOffset/2+Editor.hintOffset)+"px")};var ra=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(){ra.apply(this,arguments);if(null!=this.moveHandles){for(var b=0;b<this.moveHandles.length;b++)null!=this.moveHandles[b]&&null!=this.moveHandles[b].parentNode&&this.moveHandles[b].parentNode.removeChild(this.moveHandles[b]);this.moveHandles=null}if(null!=this.cornerHandles){for(b=
+0;b<this.cornerHandles.length;b++)null!=this.cornerHandles[b]&&null!=this.cornerHandles[b].node&&null!=this.cornerHandles[b].node.parentNode&&this.cornerHandles[b].node.parentNode.removeChild(this.cornerHandles[b].node);this.cornerHandles=null}null!=this.linkHint&&(null!=this.linkHint.parentNode&&this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getSelectionModel().removeListener(this.changeHandler),this.graph.getModel().removeListener(this.changeHandler),
+this.changeHandler=null);null!=this.editingHandler&&(this.graph.removeListener(this.editingHandler),this.editingHandler=null)};var S=mxEdgeHandler.prototype.redrawHandles;mxEdgeHandler.prototype.redrawHandles=function(){if(null!=this.marker&&(S.apply(this),null!=this.state&&null!=this.linkHint)){var b=this.state;null!=this.state.text&&null!=this.state.text.bounds&&(b=new mxRectangle(b.x,b.y,b.width,b.height),b.add(this.state.text.bounds));this.linkHint.style.left=Math.max(0,Math.round(b.x+(b.width-
+this.linkHint.clientWidth)/2))+"px";this.linkHint.style.top=Math.round(b.y+b.height+Editor.hintOffset)+"px"}};var oa=mxEdgeHandler.prototype.reset;mxEdgeHandler.prototype.reset=function(){oa.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility="")};var da=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){da.apply(this,arguments);null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),
+this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();(function(){function b(b,d,c){mxShape.call(this);this.line=b;this.stroke=d;this.strokewidth=null!=c?c:1;this.updateBoundsFromLine()}function c(){mxSwimlane.call(this)}function e(){mxSwimlane.call(this)}function f(){mxCylinder.call(this)}function n(){mxCylinder.call(this)}function l(){mxActor.call(this)}function q(){mxCylinder.call(this)}function d(){mxCylinder.call(this)}function k(){mxCylinder.call(this)}function g(){mxCylinder.call(this)}function p(){mxShape.call(this)}function m(){mxShape.call(this)}
+function u(b,d,c,g){mxShape.call(this);this.bounds=b;this.fill=d;this.stroke=c;this.strokewidth=null!=g?g:1}function v(){mxActor.call(this)}function t(){mxCylinder.call(this)}function z(){mxCylinder.call(this)}function y(){mxActor.call(this)}function I(){mxActor.call(this)}function D(){mxActor.call(this)}function F(){mxActor.call(this)}function E(){mxActor.call(this)}function O(){mxActor.call(this)}function B(){mxActor.call(this)}function G(b,d){this.canvas=b;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");
this.defaultVariation=d;this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,G.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,G.prototype.moveTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,G.prototype.close);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,G.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=mxUtils.bind(this,G.prototype.curveTo);
-this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,G.prototype.arcTo)}function I(){mxRectangleShape.call(this)}function L(){mxRectangleShape.call(this)}function M(){mxActor.call(this)}function K(){mxActor.call(this)}function P(){mxActor.call(this)}function T(){mxRectangleShape.call(this)}function W(){mxRectangleShape.call(this)}function ga(){mxCylinder.call(this)}function ja(){mxShape.call(this)}function X(){mxShape.call(this)}function x(){mxEllipse.call(this)}function C(){mxShape.call(this)}
-function J(){mxShape.call(this)}function V(){mxRectangleShape.call(this)}function ca(){mxShape.call(this)}function aa(){mxShape.call(this)}function da(){mxShape.call(this)}function ta(){mxShape.call(this)}function ua(){mxShape.call(this)}function ha(){mxCylinder.call(this)}function oa(){mxCylinder.call(this)}function Y(){mxRectangleShape.call(this)}function Q(){mxDoubleEllipse.call(this)}function ea(){mxDoubleEllipse.call(this)}function S(){mxArrowConnector.call(this);this.spacing=0}function ma(){mxArrowConnector.call(this);
-this.spacing=0}function pa(){mxActor.call(this)}function ra(){mxRectangleShape.call(this)}function R(){mxActor.call(this)}function qa(){mxActor.call(this)}function ia(){mxActor.call(this)}function fa(){mxActor.call(this)}function ba(){mxActor.call(this)}function na(){mxActor.call(this)}function Aa(){mxActor.call(this)}function xa(){mxActor.call(this)}function sa(){mxActor.call(this)}function ka(){mxActor.call(this)}function Z(){mxEllipse.call(this)}function O(){mxEllipse.call(this)}function Ga(){mxEllipse.call(this)}
-function Da(){mxRhombus.call(this)}function ya(){mxEllipse.call(this)}function Ea(){mxEllipse.call(this)}function va(){mxEllipse.call(this)}function Ha(){mxEllipse.call(this)}function Ca(){mxActor.call(this)}function za(){mxActor.call(this)}function Ba(){mxActor.call(this)}function U(b,d,c,g){mxShape.call(this);this.bounds=b;this.fill=d;this.stroke=c;this.strokewidth=null!=g?g:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=!0;this.indent=2;this.rectOutline="single"}function Fa(){mxConnector.call(this)}
-function Ua(b,d,c,g,e,k,f,l,m,p){f+=m;var B=g.clone();g.x-=e*(2*f+m);g.y-=k*(2*f+m);e*=f+m;k*=f+m;return function(){b.ellipse(B.x-e-f,B.y-k-f,2*f,2*f);p?b.fillAndStroke():b.stroke()}}mxUtils.extend(b,mxShape);b.prototype.updateBoundsFromLine=function(){var b=null;if(null!=this.line)for(var d=0;d<this.line.length;d++){var c=this.line[d];null!=c&&(c=new mxRectangle(c.x,c.y,this.strokewidth,this.strokewidth),null==b?b=c:b.add(c))}this.bounds=null!=b?b:new mxRectangle};b.prototype.paintVertexShape=function(b,
-d,c,g,e){this.paintTableLine(b,this.line,0,0)};b.prototype.paintTableLine=function(b,d,c,g){if(null!=d){var B=null;b.begin();for(var e=0;e<d.length;e++){var k=d[e];null!=k&&(null==B?b.moveTo(k.x+c,k.y+g):null!=B&&b.lineTo(k.x+c,k.y+g));B=k}b.end();b.stroke()}};b.prototype.intersectsRectangle=function(b){var d=!1;if(mxShape.prototype.intersectsRectangle.apply(this,arguments)&&null!=this.line)for(var c=null,g=0;g<this.line.length&&!d;g++){var B=this.line[g];null!=B&&null!=c&&(d=mxUtils.rectangleIntersectsSegment(b,
-c,B));c=B}return d};mxCellRenderer.registerShape("tableLine",b);mxUtils.extend(c,mxSwimlane);c.prototype.getLabelBounds=function(b){return 0==this.getTitleSize()?mxShape.prototype.getLabelBounds.apply(this,arguments):mxSwimlane.prototype.getLabelBounds.apply(this,arguments)};c.prototype.paintVertexShape=function(b,d,c,g,e){var B=null!=this.state?this.state.view.graph.isCellCollapsed(this.state.cell):!1,k=this.isHorizontal(),f=this.getTitleSize();0==f||this.outline?va.prototype.paintVertexShape.apply(this,
-arguments):(mxSwimlane.prototype.paintVertexShape.apply(this,arguments),b.translate(-d,-c));B||this.outline||!(k&&f<e||!k&&f<g)||this.paintForeground(b,d,c,g,e)};c.prototype.paintForeground=function(b,d,c,g,e){if(null!=this.state){var B=this.flipH,k=this.flipV;if(this.direction==mxConstants.DIRECTION_NORTH||this.direction==mxConstants.DIRECTION_SOUTH)var f=B,B=k,k=f;b.rotate(-this.getShapeRotation(),B,k,d+g/2,c+e/2);s=this.scale;d=this.bounds.x/s;c=this.bounds.y/s;g=this.bounds.width/s;e=this.bounds.height/
+this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,G.prototype.arcTo)}function H(){mxRectangleShape.call(this)}function L(){mxRectangleShape.call(this)}function N(){mxActor.call(this)}function M(){mxActor.call(this)}function P(){mxActor.call(this)}function V(){mxRectangleShape.call(this)}function W(){mxRectangleShape.call(this)}function ga(){mxCylinder.call(this)}function ea(){mxShape.call(this)}function ba(){mxShape.call(this)}function x(){mxEllipse.call(this)}function C(){mxShape.call(this)}
+function J(){mxShape.call(this)}function X(){mxRectangleShape.call(this)}function ca(){mxShape.call(this)}function ka(){mxShape.call(this)}function K(){mxShape.call(this)}function na(){mxShape.call(this)}function qa(){mxShape.call(this)}function pa(){mxCylinder.call(this)}function ha(){mxCylinder.call(this)}function sa(){mxRectangleShape.call(this)}function Y(){mxDoubleEllipse.call(this)}function Q(){mxDoubleEllipse.call(this)}function ta(){mxArrowConnector.call(this);this.spacing=0}function T(){mxArrowConnector.call(this);
+this.spacing=0}function ja(){mxActor.call(this)}function ma(){mxRectangleShape.call(this)}function ra(){mxActor.call(this)}function S(){mxActor.call(this)}function oa(){mxActor.call(this)}function da(){mxActor.call(this)}function Z(){mxActor.call(this)}function la(){mxActor.call(this)}function ya(){mxActor.call(this)}function za(){mxActor.call(this)}function ua(){mxActor.call(this)}function fa(){mxActor.call(this)}function aa(){mxEllipse.call(this)}function R(){mxEllipse.call(this)}function Fa(){mxEllipse.call(this)}
+function Ga(){mxRhombus.call(this)}function wa(){mxEllipse.call(this)}function Aa(){mxEllipse.call(this)}function xa(){mxEllipse.call(this)}function Ba(){mxEllipse.call(this)}function Ha(){mxActor.call(this)}function Ca(){mxActor.call(this)}function Da(){mxActor.call(this)}function U(b,d,c,g){mxShape.call(this);this.bounds=b;this.fill=d;this.stroke=c;this.strokewidth=null!=g?g:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=!0;this.indent=2;this.rectOutline="single"}function Ea(){mxConnector.call(this)}
+function Na(b,d,c,g,e,k,f,l,m,p){f+=m;var A=g.clone();g.x-=e*(2*f+m);g.y-=k*(2*f+m);e*=f+m;k*=f+m;return function(){b.ellipse(A.x-e-f,A.y-k-f,2*f,2*f);p?b.fillAndStroke():b.stroke()}}mxUtils.extend(b,mxShape);b.prototype.updateBoundsFromLine=function(){var b=null;if(null!=this.line)for(var d=0;d<this.line.length;d++){var c=this.line[d];null!=c&&(c=new mxRectangle(c.x,c.y,this.strokewidth,this.strokewidth),null==b?b=c:b.add(c))}this.bounds=null!=b?b:new mxRectangle};b.prototype.paintVertexShape=function(b,
+d,c,g,e){this.paintTableLine(b,this.line,0,0)};b.prototype.paintTableLine=function(b,d,c,g){if(null!=d){var A=null;b.begin();for(var e=0;e<d.length;e++){var k=d[e];null!=k&&(null==A?b.moveTo(k.x+c,k.y+g):null!=A&&b.lineTo(k.x+c,k.y+g));A=k}b.end();b.stroke()}};b.prototype.intersectsRectangle=function(b){var d=!1;if(mxShape.prototype.intersectsRectangle.apply(this,arguments)&&null!=this.line)for(var c=null,g=0;g<this.line.length&&!d;g++){var A=this.line[g];null!=A&&null!=c&&(d=mxUtils.rectangleIntersectsSegment(b,
+c,A));c=A}return d};mxCellRenderer.registerShape("tableLine",b);mxUtils.extend(c,mxSwimlane);c.prototype.getLabelBounds=function(b){return 0==this.getTitleSize()?mxShape.prototype.getLabelBounds.apply(this,arguments):mxSwimlane.prototype.getLabelBounds.apply(this,arguments)};c.prototype.paintVertexShape=function(b,d,c,g,e){var A=null!=this.state?this.state.view.graph.isCellCollapsed(this.state.cell):!1,k=this.isHorizontal(),f=this.getTitleSize();0==f||this.outline?xa.prototype.paintVertexShape.apply(this,
+arguments):(mxSwimlane.prototype.paintVertexShape.apply(this,arguments),b.translate(-d,-c));A||this.outline||!(k&&f<e||!k&&f<g)||this.paintForeground(b,d,c,g,e)};c.prototype.paintForeground=function(b,d,c,g,e){if(null!=this.state){var A=this.flipH,k=this.flipV;if(this.direction==mxConstants.DIRECTION_NORTH||this.direction==mxConstants.DIRECTION_SOUTH)var f=A,A=k,k=f;b.rotate(-this.getShapeRotation(),A,k,d+g/2,c+e/2);s=this.scale;d=this.bounds.x/s;c=this.bounds.y/s;g=this.bounds.width/s;e=this.bounds.height/
s;this.paintTableForeground(b,d,c,g,e)}};c.prototype.paintTableForeground=function(d,c,g,e,k){e=this.state.view.graph.getTableLines(this.state.cell,"0"!=mxUtils.getValue(this.state.style,"rowLines","1"),"0"!=mxUtils.getValue(this.state.style,"columnLines","1"));for(k=0;k<e.length;k++)b.prototype.paintTableLine(d,e[k],c,g)};c.prototype.configurePointerEvents=function(b){0==this.getTitleSize()?b.pointerEvents=!1:mxSwimlane.prototype.configurePointerEvents.apply(this,arguments)};mxCellRenderer.registerShape("table",
-c);mxUtils.extend(e,c);e.prototype.paintForeground=function(){};mxCellRenderer.registerShape("tableRow",e);mxUtils.extend(f,mxCylinder);f.prototype.size=20;f.prototype.darkOpacity=0;f.prototype.darkOpacity2=0;f.prototype.paintVertexShape=function(b,d,c,g,e){var B=Math.max(0,Math.min(g,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),k=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity)))),f=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,
-"darkOpacity2",this.darkOpacity2))));b.translate(d,c);b.begin();b.moveTo(0,0);b.lineTo(g-B,0);b.lineTo(g,B);b.lineTo(g,e);b.lineTo(B,e);b.lineTo(0,e-B);b.lineTo(0,0);b.close();b.end();b.fillAndStroke();this.outline||(b.setShadow(!1),0!=k&&(b.setFillAlpha(Math.abs(k)),b.setFillColor(0>k?"#FFFFFF":"#000000"),b.begin(),b.moveTo(0,0),b.lineTo(g-B,0),b.lineTo(g,B),b.lineTo(B,B),b.close(),b.fill()),0!=f&&(b.setFillAlpha(Math.abs(f)),b.setFillColor(0>f?"#FFFFFF":"#000000"),b.begin(),b.moveTo(0,0),b.lineTo(B,
-B),b.lineTo(B,e),b.lineTo(0,e-B),b.close(),b.fill()),b.begin(),b.moveTo(B,e),b.lineTo(B,B),b.lineTo(0,0),b.moveTo(B,B),b.lineTo(g,B),b.end(),b.stroke())};f.prototype.getLabelMargins=function(b){return mxUtils.getValue(this.style,"boundedLbl",!1)?(b=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(b,b,0,0)):null};mxCellRenderer.registerShape("cube",f);var Ra=Math.tan(mxUtils.toRadians(30)),Ka=(.5-Ra)/2;mxCellRenderer.registerShape("isoRectangle",l);mxUtils.extend(n,
-mxCylinder);n.prototype.size=6;n.prototype.paintVertexShape=function(b,d,c,g,e){b.setFillColor(this.stroke);var B=Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size))-2)+2*this.strokewidth;b.ellipse(d+.5*(g-B),c+.5*(e-B),B,B);b.fill();b.setFillColor(mxConstants.NONE);b.rect(d,c,g,e);b.fill()};mxCellRenderer.registerShape("waypoint",n);mxUtils.extend(l,mxActor);l.prototype.size=20;l.prototype.redrawPath=function(b,d,c,g,e){d=Math.min(g,e/Ra);b.translate((g-d)/2,(e-d)/2+d/4);b.moveTo(0,
-.25*d);b.lineTo(.5*d,d*Ka);b.lineTo(d,.25*d);b.lineTo(.5*d,(.5-Ka)*d);b.lineTo(0,.25*d);b.close();b.end()};mxCellRenderer.registerShape("isoRectangle",l);mxUtils.extend(q,mxCylinder);q.prototype.size=20;q.prototype.redrawPath=function(b,d,c,g,e,k){d=Math.min(g,e/(.5+Ra));k?(b.moveTo(0,.25*d),b.lineTo(.5*d,(.5-Ka)*d),b.lineTo(d,.25*d),b.moveTo(.5*d,(.5-Ka)*d),b.lineTo(.5*d,(1-Ka)*d)):(b.translate((g-d)/2,(e-d)/2),b.moveTo(0,.25*d),b.lineTo(.5*d,d*Ka),b.lineTo(d,.25*d),b.lineTo(d,.75*d),b.lineTo(.5*
+c);mxUtils.extend(e,c);e.prototype.paintForeground=function(){};mxCellRenderer.registerShape("tableRow",e);mxUtils.extend(f,mxCylinder);f.prototype.size=20;f.prototype.darkOpacity=0;f.prototype.darkOpacity2=0;f.prototype.paintVertexShape=function(b,d,c,g,e){var A=Math.max(0,Math.min(g,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),k=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity)))),f=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,
+"darkOpacity2",this.darkOpacity2))));b.translate(d,c);b.begin();b.moveTo(0,0);b.lineTo(g-A,0);b.lineTo(g,A);b.lineTo(g,e);b.lineTo(A,e);b.lineTo(0,e-A);b.lineTo(0,0);b.close();b.end();b.fillAndStroke();this.outline||(b.setShadow(!1),0!=k&&(b.setFillAlpha(Math.abs(k)),b.setFillColor(0>k?"#FFFFFF":"#000000"),b.begin(),b.moveTo(0,0),b.lineTo(g-A,0),b.lineTo(g,A),b.lineTo(A,A),b.close(),b.fill()),0!=f&&(b.setFillAlpha(Math.abs(f)),b.setFillColor(0>f?"#FFFFFF":"#000000"),b.begin(),b.moveTo(0,0),b.lineTo(A,
+A),b.lineTo(A,e),b.lineTo(0,e-A),b.close(),b.fill()),b.begin(),b.moveTo(A,e),b.lineTo(A,A),b.lineTo(0,0),b.moveTo(A,A),b.lineTo(g,A),b.end(),b.stroke())};f.prototype.getLabelMargins=function(b){return mxUtils.getValue(this.style,"boundedLbl",!1)?(b=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(b,b,0,0)):null};mxCellRenderer.registerShape("cube",f);var Sa=Math.tan(mxUtils.toRadians(30)),Ka=(.5-Sa)/2;mxCellRenderer.registerShape("isoRectangle",l);mxUtils.extend(n,
+mxCylinder);n.prototype.size=6;n.prototype.paintVertexShape=function(b,d,c,g,e){b.setFillColor(this.stroke);var A=Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size))-2)+2*this.strokewidth;b.ellipse(d+.5*(g-A),c+.5*(e-A),A,A);b.fill();b.setFillColor(mxConstants.NONE);b.rect(d,c,g,e);b.fill()};mxCellRenderer.registerShape("waypoint",n);mxUtils.extend(l,mxActor);l.prototype.size=20;l.prototype.redrawPath=function(b,d,c,g,e){d=Math.min(g,e/Sa);b.translate((g-d)/2,(e-d)/2+d/4);b.moveTo(0,
+.25*d);b.lineTo(.5*d,d*Ka);b.lineTo(d,.25*d);b.lineTo(.5*d,(.5-Ka)*d);b.lineTo(0,.25*d);b.close();b.end()};mxCellRenderer.registerShape("isoRectangle",l);mxUtils.extend(q,mxCylinder);q.prototype.size=20;q.prototype.redrawPath=function(b,d,c,g,e,k){d=Math.min(g,e/(.5+Sa));k?(b.moveTo(0,.25*d),b.lineTo(.5*d,(.5-Ka)*d),b.lineTo(d,.25*d),b.moveTo(.5*d,(.5-Ka)*d),b.lineTo(.5*d,(1-Ka)*d)):(b.translate((g-d)/2,(e-d)/2),b.moveTo(0,.25*d),b.lineTo(.5*d,d*Ka),b.lineTo(d,.25*d),b.lineTo(d,.75*d),b.lineTo(.5*
d,(1-Ka)*d),b.lineTo(0,.75*d),b.close());b.end()};mxCellRenderer.registerShape("isoCube",q);mxUtils.extend(d,mxCylinder);d.prototype.redrawPath=function(b,d,c,g,e,k){d=Math.min(e/2,Math.round(e/8)+this.strokewidth-1);if(k&&null!=this.fill||!k&&null==this.fill)b.moveTo(0,d),b.curveTo(0,2*d,g,2*d,g,d),k||(b.stroke(),b.begin()),b.translate(0,d/2),b.moveTo(0,d),b.curveTo(0,2*d,g,2*d,g,d),k||(b.stroke(),b.begin()),b.translate(0,d/2),b.moveTo(0,d),b.curveTo(0,2*d,g,2*d,g,d),k||(b.stroke(),b.begin()),b.translate(0,
--d);k||(b.moveTo(0,d),b.curveTo(0,-d/3,g,-d/3,g,d),b.lineTo(g,e-d),b.curveTo(g,e+d/3,0,e+d/3,0,e-d),b.close())};d.prototype.getLabelMargins=function(b){return new mxRectangle(0,2.5*Math.min(b.height/2,Math.round(b.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",d);mxUtils.extend(k,mxCylinder);k.prototype.size=30;k.prototype.darkOpacity=0;k.prototype.paintVertexShape=function(b,d,c,g,e){var B=Math.max(0,Math.min(g,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",
-this.size))))),k=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));b.translate(d,c);b.begin();b.moveTo(0,0);b.lineTo(g-B,0);b.lineTo(g,B);b.lineTo(g,e);b.lineTo(0,e);b.lineTo(0,0);b.close();b.end();b.fillAndStroke();this.outline||(b.setShadow(!1),0!=k&&(b.setFillAlpha(Math.abs(k)),b.setFillColor(0>k?"#FFFFFF":"#000000"),b.begin(),b.moveTo(g-B,0),b.lineTo(g-B,B),b.lineTo(g,B),b.close(),b.fill()),b.begin(),b.moveTo(g-B,0),b.lineTo(g-B,B),b.lineTo(g,B),
-b.end(),b.stroke())};mxCellRenderer.registerShape("note",k);mxUtils.extend(g,k);mxCellRenderer.registerShape("note2",g);g.prototype.getLabelMargins=function(b){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var d=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(b.height*this.scale,d*this.scale),0,0)}return null};mxUtils.extend(p,mxShape);p.prototype.isoAngle=15;p.prototype.paintVertexShape=function(b,d,c,g,e){var B=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,
-"isoAngle",this.isoAngle))))*Math.PI/200,B=Math.min(g*Math.tan(B),.5*e);b.translate(d,c);b.begin();b.moveTo(.5*g,0);b.lineTo(g,B);b.lineTo(g,e-B);b.lineTo(.5*g,e);b.lineTo(0,e-B);b.lineTo(0,B);b.close();b.fillAndStroke();b.setShadow(!1);b.begin();b.moveTo(0,B);b.lineTo(.5*g,2*B);b.lineTo(g,B);b.moveTo(.5*g,2*B);b.lineTo(.5*g,e);b.stroke()};mxCellRenderer.registerShape("isoCube2",p);mxUtils.extend(m,mxShape);m.prototype.size=15;m.prototype.paintVertexShape=function(b,d,c,g,e){var B=Math.max(0,Math.min(.5*
-e,parseFloat(mxUtils.getValue(this.style,"size",this.size))));b.translate(d,c);0==B?(b.rect(0,0,g,e),b.fillAndStroke()):(b.begin(),b.moveTo(0,B),b.arcTo(.5*g,B,0,0,1,.5*g,0),b.arcTo(.5*g,B,0,0,1,g,B),b.lineTo(g,e-B),b.arcTo(.5*g,B,0,0,1,.5*g,e),b.arcTo(.5*g,B,0,0,1,0,e-B),b.close(),b.fillAndStroke(),b.setShadow(!1),b.begin(),b.moveTo(g,B),b.arcTo(.5*g,B,0,0,1,.5*g,2*B),b.arcTo(.5*g,B,0,0,1,0,B),b.stroke())};mxCellRenderer.registerShape("cylinder2",m);mxUtils.extend(v,mxCylinder);v.prototype.size=
-15;v.prototype.paintVertexShape=function(b,d,c,g,e){var B=Math.max(0,Math.min(.5*e,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),k=mxUtils.getValue(this.style,"lid",!0);b.translate(d,c);0==B?(b.rect(0,0,g,e),b.fillAndStroke()):(b.begin(),k?(b.moveTo(0,B),b.arcTo(.5*g,B,0,0,1,.5*g,0),b.arcTo(.5*g,B,0,0,1,g,B)):(b.moveTo(0,0),b.arcTo(.5*g,B,0,0,0,.5*g,B),b.arcTo(.5*g,B,0,0,0,g,0)),b.lineTo(g,e-B),b.arcTo(.5*g,B,0,0,1,.5*g,e),b.arcTo(.5*g,B,0,0,1,0,e-B),b.close(),b.fillAndStroke(),b.setShadow(!1),
-k&&(b.begin(),b.moveTo(g,B),b.arcTo(.5*g,B,0,0,1,.5*g,2*B),b.arcTo(.5*g,B,0,0,1,0,B),b.stroke()))};mxCellRenderer.registerShape("cylinder3",v);mxUtils.extend(u,mxActor);u.prototype.redrawPath=function(b,d,c,g,e){b.moveTo(0,0);b.quadTo(g/2,.5*e,g,0);b.quadTo(.5*g,e/2,g,e);b.quadTo(g/2,.5*e,0,e);b.quadTo(.5*g,e/2,0,0);b.end()};mxCellRenderer.registerShape("switch",u);mxUtils.extend(t,mxCylinder);t.prototype.tabWidth=60;t.prototype.tabHeight=20;t.prototype.tabPosition="right";t.prototype.arcSize=.1;
-t.prototype.paintVertexShape=function(b,d,c,g,e){b.translate(d,c);d=Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth))));c=Math.max(0,Math.min(e,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));var B=mxUtils.getValue(this.style,"tabPosition",this.tabPosition),k=mxUtils.getValue(this.style,"rounded",!1),f=mxUtils.getValue(this.style,"absoluteArcSize",!1),l=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));f||(l*=Math.min(g,e));
-l=Math.min(l,.5*g,.5*(e-c));d=Math.max(d,l);d=Math.min(g-l,d);k||(l=0);b.begin();"left"==B?(b.moveTo(Math.max(l,0),c),b.lineTo(Math.max(l,0),0),b.lineTo(d,0),b.lineTo(d,c)):(b.moveTo(g-d,c),b.lineTo(g-d,0),b.lineTo(g-Math.max(l,0),0),b.lineTo(g-Math.max(l,0),c));k?(b.moveTo(0,l+c),b.arcTo(l,l,0,0,1,l,c),b.lineTo(g-l,c),b.arcTo(l,l,0,0,1,g,l+c),b.lineTo(g,e-l),b.arcTo(l,l,0,0,1,g-l,e),b.lineTo(l,e),b.arcTo(l,l,0,0,1,0,e-l)):(b.moveTo(0,c),b.lineTo(g,c),b.lineTo(g,e),b.lineTo(0,e));b.close();b.fillAndStroke();
+-d);k||(b.moveTo(0,d),b.curveTo(0,-d/3,g,-d/3,g,d),b.lineTo(g,e-d),b.curveTo(g,e+d/3,0,e+d/3,0,e-d),b.close())};d.prototype.getLabelMargins=function(b){return new mxRectangle(0,2.5*Math.min(b.height/2,Math.round(b.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",d);mxUtils.extend(k,mxCylinder);k.prototype.size=30;k.prototype.darkOpacity=0;k.prototype.paintVertexShape=function(b,d,c,g,e){var A=Math.max(0,Math.min(g,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",
+this.size))))),k=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));b.translate(d,c);b.begin();b.moveTo(0,0);b.lineTo(g-A,0);b.lineTo(g,A);b.lineTo(g,e);b.lineTo(0,e);b.lineTo(0,0);b.close();b.end();b.fillAndStroke();this.outline||(b.setShadow(!1),0!=k&&(b.setFillAlpha(Math.abs(k)),b.setFillColor(0>k?"#FFFFFF":"#000000"),b.begin(),b.moveTo(g-A,0),b.lineTo(g-A,A),b.lineTo(g,A),b.close(),b.fill()),b.begin(),b.moveTo(g-A,0),b.lineTo(g-A,A),b.lineTo(g,A),
+b.end(),b.stroke())};mxCellRenderer.registerShape("note",k);mxUtils.extend(g,k);mxCellRenderer.registerShape("note2",g);g.prototype.getLabelMargins=function(b){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var d=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(b.height*this.scale,d*this.scale),0,0)}return null};mxUtils.extend(p,mxShape);p.prototype.isoAngle=15;p.prototype.paintVertexShape=function(b,d,c,g,e){var A=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,
+"isoAngle",this.isoAngle))))*Math.PI/200,A=Math.min(g*Math.tan(A),.5*e);b.translate(d,c);b.begin();b.moveTo(.5*g,0);b.lineTo(g,A);b.lineTo(g,e-A);b.lineTo(.5*g,e);b.lineTo(0,e-A);b.lineTo(0,A);b.close();b.fillAndStroke();b.setShadow(!1);b.begin();b.moveTo(0,A);b.lineTo(.5*g,2*A);b.lineTo(g,A);b.moveTo(.5*g,2*A);b.lineTo(.5*g,e);b.stroke()};mxCellRenderer.registerShape("isoCube2",p);mxUtils.extend(m,mxShape);m.prototype.size=15;m.prototype.paintVertexShape=function(b,d,c,g,e){var A=Math.max(0,Math.min(.5*
+e,parseFloat(mxUtils.getValue(this.style,"size",this.size))));b.translate(d,c);0==A?(b.rect(0,0,g,e),b.fillAndStroke()):(b.begin(),b.moveTo(0,A),b.arcTo(.5*g,A,0,0,1,.5*g,0),b.arcTo(.5*g,A,0,0,1,g,A),b.lineTo(g,e-A),b.arcTo(.5*g,A,0,0,1,.5*g,e),b.arcTo(.5*g,A,0,0,1,0,e-A),b.close(),b.fillAndStroke(),b.setShadow(!1),b.begin(),b.moveTo(g,A),b.arcTo(.5*g,A,0,0,1,.5*g,2*A),b.arcTo(.5*g,A,0,0,1,0,A),b.stroke())};mxCellRenderer.registerShape("cylinder2",m);mxUtils.extend(u,mxCylinder);u.prototype.size=
+15;u.prototype.paintVertexShape=function(b,d,c,g,e){var A=Math.max(0,Math.min(.5*e,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),k=mxUtils.getValue(this.style,"lid",!0);b.translate(d,c);0==A?(b.rect(0,0,g,e),b.fillAndStroke()):(b.begin(),k?(b.moveTo(0,A),b.arcTo(.5*g,A,0,0,1,.5*g,0),b.arcTo(.5*g,A,0,0,1,g,A)):(b.moveTo(0,0),b.arcTo(.5*g,A,0,0,0,.5*g,A),b.arcTo(.5*g,A,0,0,0,g,0)),b.lineTo(g,e-A),b.arcTo(.5*g,A,0,0,1,.5*g,e),b.arcTo(.5*g,A,0,0,1,0,e-A),b.close(),b.fillAndStroke(),b.setShadow(!1),
+k&&(b.begin(),b.moveTo(g,A),b.arcTo(.5*g,A,0,0,1,.5*g,2*A),b.arcTo(.5*g,A,0,0,1,0,A),b.stroke()))};mxCellRenderer.registerShape("cylinder3",u);mxUtils.extend(v,mxActor);v.prototype.redrawPath=function(b,d,c,g,e){b.moveTo(0,0);b.quadTo(g/2,.5*e,g,0);b.quadTo(.5*g,e/2,g,e);b.quadTo(g/2,.5*e,0,e);b.quadTo(.5*g,e/2,0,0);b.end()};mxCellRenderer.registerShape("switch",v);mxUtils.extend(t,mxCylinder);t.prototype.tabWidth=60;t.prototype.tabHeight=20;t.prototype.tabPosition="right";t.prototype.arcSize=.1;
+t.prototype.paintVertexShape=function(b,d,c,g,e){b.translate(d,c);d=Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth))));c=Math.max(0,Math.min(e,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));var A=mxUtils.getValue(this.style,"tabPosition",this.tabPosition),k=mxUtils.getValue(this.style,"rounded",!1),f=mxUtils.getValue(this.style,"absoluteArcSize",!1),l=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));f||(l*=Math.min(g,e));
+l=Math.min(l,.5*g,.5*(e-c));d=Math.max(d,l);d=Math.min(g-l,d);k||(l=0);b.begin();"left"==A?(b.moveTo(Math.max(l,0),c),b.lineTo(Math.max(l,0),0),b.lineTo(d,0),b.lineTo(d,c)):(b.moveTo(g-d,c),b.lineTo(g-d,0),b.lineTo(g-Math.max(l,0),0),b.lineTo(g-Math.max(l,0),c));k?(b.moveTo(0,l+c),b.arcTo(l,l,0,0,1,l,c),b.lineTo(g-l,c),b.arcTo(l,l,0,0,1,g,l+c),b.lineTo(g,e-l),b.arcTo(l,l,0,0,1,g-l,e),b.lineTo(l,e),b.arcTo(l,l,0,0,1,0,e-l)):(b.moveTo(0,c),b.lineTo(g,c),b.lineTo(g,e),b.lineTo(0,e));b.close();b.fillAndStroke();
b.setShadow(!1);"triangle"==mxUtils.getValue(this.style,"folderSymbol",null)&&(b.begin(),b.moveTo(g-30,c+20),b.lineTo(g-20,c+10),b.lineTo(g-10,c+20),b.close(),b.stroke())};mxCellRenderer.registerShape("folder",t);t.prototype.getLabelMargins=function(b){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var d=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var c=mxUtils.getValue(this.style,"tabWidth",15)*this.scale,d=mxUtils.getValue(this.style,
"tabHeight",15)*this.scale,g=mxUtils.getValue(this.style,"rounded",!1),e=mxUtils.getValue(this.style,"absoluteArcSize",!1),k=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));e||(k*=Math.min(b.width,b.height));k=Math.min(k,.5*b.width,.5*(b.height-d));g||(k=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(k,0,Math.min(b.width,b.width-c),Math.min(b.height,b.height-d)):new mxRectangle(Math.min(b.width,b.width-c),0,k,Math.min(b.height,b.height-
-d))}return new mxRectangle(0,Math.min(b.height,d),0,0)}return null};mxUtils.extend(z,mxCylinder);z.prototype.arcSize=.1;z.prototype.paintVertexShape=function(b,d,c,g,e){b.translate(d,c);var k=mxUtils.getValue(this.style,"rounded",!1),B=mxUtils.getValue(this.style,"absoluteArcSize",!1);d=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));c=mxUtils.getValue(this.style,"umlStateConnection",null);B||(d*=Math.min(g,e));d=Math.min(d,.5*g,.5*e);k||(d=0);k=0;null!=c&&(k=10);b.begin();b.moveTo(k,
+d))}return new mxRectangle(0,Math.min(b.height,d),0,0)}return null};mxUtils.extend(z,mxCylinder);z.prototype.arcSize=.1;z.prototype.paintVertexShape=function(b,d,c,g,e){b.translate(d,c);var k=mxUtils.getValue(this.style,"rounded",!1),A=mxUtils.getValue(this.style,"absoluteArcSize",!1);d=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));c=mxUtils.getValue(this.style,"umlStateConnection",null);A||(d*=Math.min(g,e));d=Math.min(d,.5*g,.5*e);k||(d=0);k=0;null!=c&&(k=10);b.begin();b.moveTo(k,
d);b.arcTo(d,d,0,0,1,k+d,0);b.lineTo(g-d,0);b.arcTo(d,d,0,0,1,g,d);b.lineTo(g,e-d);b.arcTo(d,d,0,0,1,g-d,e);b.lineTo(k+d,e);b.arcTo(d,d,0,0,1,k,e-d);b.close();b.fillAndStroke();b.setShadow(!1);"collapseState"==mxUtils.getValue(this.style,"umlStateSymbol",null)&&(b.roundrect(g-40,e-20,10,10,3,3),b.stroke(),b.roundrect(g-20,e-20,10,10,3,3),b.stroke(),b.begin(),b.moveTo(g-30,e-15),b.lineTo(g-20,e-15),b.stroke());"connPointRefEntry"==c?(b.ellipse(0,.5*e-10,20,20),b.fillAndStroke()):"connPointRefExit"==
c&&(b.ellipse(0,.5*e-10,20,20),b.fillAndStroke(),b.begin(),b.moveTo(5,.5*e-5),b.lineTo(15,.5*e+5),b.moveTo(15,.5*e-5),b.lineTo(5,.5*e+5),b.stroke())};z.prototype.getLabelMargins=function(b){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=mxUtils.getValue(this.style,"umlStateConnection",null)?new mxRectangle(10*this.scale,0,0,0):null};mxCellRenderer.registerShape("umlState",z);mxUtils.extend(y,mxActor);y.prototype.size=30;y.prototype.isRoundable=function(){return!0};y.prototype.redrawPath=
-function(b,d,c,g,e){d=Math.max(0,Math.min(g,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(d,0),new mxPoint(g,0),new mxPoint(g,e),new mxPoint(0,e),new mxPoint(0,d)],this.isRounded,c,!0);b.end()};mxCellRenderer.registerShape("card",y);mxUtils.extend(F,mxActor);F.prototype.size=.4;F.prototype.redrawPath=function(b,d,c,g,e){d=e*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,
-"size",this.size))));b.moveTo(0,d/2);b.quadTo(g/4,1.4*d,g/2,d/2);b.quadTo(3*g/4,d*(1-1.4),g,d/2);b.lineTo(g,e-d/2);b.quadTo(3*g/4,e-1.4*d,g/2,e-d/2);b.quadTo(g/4,e-d*(1-1.4),0,e-d/2);b.lineTo(0,d/2);b.close();b.end()};F.prototype.getLabelBounds=function(b){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var d=mxUtils.getValue(this.style,"size",this.size),c=b.width,g=b.height;if(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)return d*=
-g,new mxRectangle(b.x,b.y+d,c,g-2*d);d*=c;return new mxRectangle(b.x+d,b.y,c-2*d,g)}return b};mxCellRenderer.registerShape("tape",F);mxUtils.extend(D,mxActor);D.prototype.size=.3;D.prototype.getLabelMargins=function(b){return mxUtils.getValue(this.style,"boundedLbl",!1)?new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*b.height):null};D.prototype.redrawPath=function(b,d,c,g,e){d=e*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));b.moveTo(0,
+function(b,d,c,g,e){d=Math.max(0,Math.min(g,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(d,0),new mxPoint(g,0),new mxPoint(g,e),new mxPoint(0,e),new mxPoint(0,d)],this.isRounded,c,!0);b.end()};mxCellRenderer.registerShape("card",y);mxUtils.extend(I,mxActor);I.prototype.size=.4;I.prototype.redrawPath=function(b,d,c,g,e){d=e*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,
+"size",this.size))));b.moveTo(0,d/2);b.quadTo(g/4,1.4*d,g/2,d/2);b.quadTo(3*g/4,d*(1-1.4),g,d/2);b.lineTo(g,e-d/2);b.quadTo(3*g/4,e-1.4*d,g/2,e-d/2);b.quadTo(g/4,e-d*(1-1.4),0,e-d/2);b.lineTo(0,d/2);b.close();b.end()};I.prototype.getLabelBounds=function(b){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var d=mxUtils.getValue(this.style,"size",this.size),c=b.width,g=b.height;if(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)return d*=
+g,new mxRectangle(b.x,b.y+d,c,g-2*d);d*=c;return new mxRectangle(b.x+d,b.y,c-2*d,g)}return b};mxCellRenderer.registerShape("tape",I);mxUtils.extend(D,mxActor);D.prototype.size=.3;D.prototype.getLabelMargins=function(b){return mxUtils.getValue(this.style,"boundedLbl",!1)?new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*b.height):null};D.prototype.redrawPath=function(b,d,c,g,e){d=e*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));b.moveTo(0,
0);b.lineTo(g,0);b.lineTo(g,e-d/2);b.quadTo(3*g/4,e-1.4*d,g/2,e-d/2);b.quadTo(g/4,e-d*(1-1.4),0,e-d/2);b.lineTo(0,d/2);b.close();b.end()};mxCellRenderer.registerShape("document",D);var bb=mxCylinder.prototype.getCylinderSize;mxCylinder.prototype.getCylinderSize=function(b,d,c,g){var e=mxUtils.getValue(this.style,"size");return null!=e?g*Math.max(0,Math.min(1,e)):bb.apply(this,arguments)};mxCylinder.prototype.getLabelMargins=function(b){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var d=2*mxUtils.getValue(this.style,
-"size",.15);return new mxRectangle(0,Math.min(this.maxHeight*this.scale,b.height*d),0,0)}return null};v.prototype.getLabelMargins=function(b){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var d=mxUtils.getValue(this.style,"size",15);mxUtils.getValue(this.style,"lid",!0)||(d/=2);return new mxRectangle(0,Math.min(b.height*this.scale,2*d*this.scale),0,Math.max(0,.3*d*this.scale))}return null};t.prototype.getLabelMargins=function(b){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var d=mxUtils.getValue(this.style,
+"size",.15);return new mxRectangle(0,Math.min(this.maxHeight*this.scale,b.height*d),0,0)}return null};u.prototype.getLabelMargins=function(b){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var d=mxUtils.getValue(this.style,"size",15);mxUtils.getValue(this.style,"lid",!0)||(d/=2);return new mxRectangle(0,Math.min(b.height*this.scale,2*d*this.scale),0,Math.max(0,.3*d*this.scale))}return null};t.prototype.getLabelMargins=function(b){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var d=mxUtils.getValue(this.style,
"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var c=mxUtils.getValue(this.style,"tabWidth",15)*this.scale,d=mxUtils.getValue(this.style,"tabHeight",15)*this.scale,g=mxUtils.getValue(this.style,"rounded",!1),e=mxUtils.getValue(this.style,"absoluteArcSize",!1),k=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));e||(k*=Math.min(b.width,b.height));k=Math.min(k,.5*b.width,.5*(b.height-d));g||(k=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?
new mxRectangle(k,0,Math.min(b.width,b.width-c),Math.min(b.height,b.height-d)):new mxRectangle(Math.min(b.width,b.width-c),0,k,Math.min(b.height,b.height-d))}return new mxRectangle(0,Math.min(b.height,d),0,0)}return null};z.prototype.getLabelMargins=function(b){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=mxUtils.getValue(this.style,"umlStateConnection",null)?new mxRectangle(10*this.scale,0,0,0):null};g.prototype.getLabelMargins=function(b){if(mxUtils.getValue(this.style,"boundedLbl",
-!1)){var d=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(b.height*this.scale,d*this.scale),0,Math.max(0,d*this.scale))}return null};mxUtils.extend(E,mxActor);E.prototype.size=.2;E.prototype.fixedSize=20;E.prototype.isRoundable=function(){return!0};E.prototype.redrawPath=function(b,d,c,g,e){d="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,
-"size",this.size))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,e),new mxPoint(d,0),new mxPoint(g,0),new mxPoint(g-d,e)],this.isRounded,c,!0);b.end()};mxCellRenderer.registerShape("parallelogram",E);mxUtils.extend(H,mxActor);H.prototype.size=.2;H.prototype.fixedSize=20;H.prototype.isRoundable=function(){return!0};H.prototype.redrawPath=function(b,d,c,g,e){d="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*
-g,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):g*Math.max(0,Math.min(.5,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,e),new mxPoint(d,0),new mxPoint(g-d,0),new mxPoint(g,e)],this.isRounded,c,!0)};mxCellRenderer.registerShape("trapezoid",H);mxUtils.extend(N,mxActor);N.prototype.size=.5;N.prototype.redrawPath=function(b,d,c,g,e){b.setFillColor(null);
-d=g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(g,0),new mxPoint(d,0),new mxPoint(d,e/2),new mxPoint(0,e/2),new mxPoint(d,e/2),new mxPoint(d,e),new mxPoint(g,e)],this.isRounded,c,!1);b.end()};mxCellRenderer.registerShape("curlyBracket",N);mxUtils.extend(A,mxActor);A.prototype.redrawPath=function(b,d,c,g,e){b.setStrokeWidth(1);b.setFillColor(this.stroke);
-d=g/5;b.rect(0,0,d,e);b.fillAndStroke();b.rect(2*d,0,d,e);b.fillAndStroke();b.rect(4*d,0,d,e);b.fillAndStroke()};mxCellRenderer.registerShape("parallelMarker",A);G.prototype.moveTo=function(b,d){this.originalMoveTo.apply(this.canvas,arguments);this.lastX=b;this.lastY=d;this.firstX=b;this.firstY=d};G.prototype.close=function(){null!=this.firstX&&null!=this.firstY&&(this.lineTo(this.firstX,this.firstY),this.originalClose.apply(this.canvas,arguments));this.originalClose.apply(this.canvas,arguments)};
+!1)){var d=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(b.height*this.scale,d*this.scale),0,Math.max(0,d*this.scale))}return null};mxUtils.extend(F,mxActor);F.prototype.size=.2;F.prototype.fixedSize=20;F.prototype.isRoundable=function(){return!0};F.prototype.redrawPath=function(b,d,c,g,e){d="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,
+"size",this.size))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,e),new mxPoint(d,0),new mxPoint(g,0),new mxPoint(g-d,e)],this.isRounded,c,!0);b.end()};mxCellRenderer.registerShape("parallelogram",F);mxUtils.extend(E,mxActor);E.prototype.size=.2;E.prototype.fixedSize=20;E.prototype.isRoundable=function(){return!0};E.prototype.redrawPath=function(b,d,c,g,e){d="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*
+g,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):g*Math.max(0,Math.min(.5,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,e),new mxPoint(d,0),new mxPoint(g-d,0),new mxPoint(g,e)],this.isRounded,c,!0)};mxCellRenderer.registerShape("trapezoid",E);mxUtils.extend(O,mxActor);O.prototype.size=.5;O.prototype.redrawPath=function(b,d,c,g,e){b.setFillColor(null);
+d=g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(g,0),new mxPoint(d,0),new mxPoint(d,e/2),new mxPoint(0,e/2),new mxPoint(d,e/2),new mxPoint(d,e),new mxPoint(g,e)],this.isRounded,c,!1);b.end()};mxCellRenderer.registerShape("curlyBracket",O);mxUtils.extend(B,mxActor);B.prototype.redrawPath=function(b,d,c,g,e){b.setStrokeWidth(1);b.setFillColor(this.stroke);
+d=g/5;b.rect(0,0,d,e);b.fillAndStroke();b.rect(2*d,0,d,e);b.fillAndStroke();b.rect(4*d,0,d,e);b.fillAndStroke()};mxCellRenderer.registerShape("parallelMarker",B);G.prototype.moveTo=function(b,d){this.originalMoveTo.apply(this.canvas,arguments);this.lastX=b;this.lastY=d;this.firstX=b;this.firstY=d};G.prototype.close=function(){null!=this.firstX&&null!=this.firstY&&(this.lineTo(this.firstX,this.firstY),this.originalClose.apply(this.canvas,arguments));this.originalClose.apply(this.canvas,arguments)};
G.prototype.quadTo=function(b,d,c,g){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=g};G.prototype.curveTo=function(b,d,c,g,e,k){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=e;this.lastY=k};G.prototype.arcTo=function(b,d,c,g,e,k,f){this.originalArcTo.apply(this.canvas,arguments);this.lastX=k;this.lastY=f};G.prototype.lineTo=function(b,d){if(null!=this.lastX&&null!=this.lastY){var c=function(b){return"number"===typeof b?b?0>b?-1:1:b===b?0:NaN:NaN},g=Math.abs(b-
-this.lastX),e=Math.abs(d-this.lastY),k=Math.sqrt(g*g+e*e);if(2>k){this.originalLineTo.apply(this.canvas,arguments);this.lastX=b;this.lastY=d;return}var B=Math.round(k/10),f=this.defaultVariation;5>B&&(B=5,f/=3);for(var l=c(b-this.lastX)*g/B,c=c(d-this.lastY)*e/B,g=g/k,e=e/k,k=0;k<B;k++){var m=(Math.random()-.5)*f;this.originalLineTo.call(this.canvas,l*k+this.lastX-m*e,c*k+this.lastY-m*g)}this.originalLineTo.call(this.canvas,b,d)}else this.originalLineTo.apply(this.canvas,arguments);this.lastX=b;this.lastY=
+this.lastX),e=Math.abs(d-this.lastY),k=Math.sqrt(g*g+e*e);if(2>k){this.originalLineTo.apply(this.canvas,arguments);this.lastX=b;this.lastY=d;return}var A=Math.round(k/10),f=this.defaultVariation;5>A&&(A=5,f/=3);for(var l=c(b-this.lastX)*g/A,c=c(d-this.lastY)*e/A,g=g/k,e=e/k,k=0;k<A;k++){var m=(Math.random()-.5)*f;this.originalLineTo.call(this.canvas,l*k+this.lastX-m*e,c*k+this.lastY-m*g)}this.originalLineTo.call(this.canvas,b,d)}else this.originalLineTo.apply(this.canvas,arguments);this.lastX=b;this.lastY=
d};G.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=this.originalArcTo};mxShape.prototype.defaultJiggle=1.5;var cb=mxShape.prototype.beforePaint;mxShape.prototype.beforePaint=function(b){cb.apply(this,arguments);null==b.handJiggle&&(b.handJiggle=this.createHandJiggle(b))};var db=mxShape.prototype.afterPaint;
mxShape.prototype.afterPaint=function(b){db.apply(this,arguments);null!=b.handJiggle&&(b.handJiggle.destroy(),delete b.handJiggle)};mxShape.prototype.createComicCanvas=function(b){return new G(b,mxUtils.getValue(this.style,"jiggle",this.defaultJiggle))};mxShape.prototype.createHandJiggle=function(b){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"comic","0")?null:this.createComicCanvas(b)};mxRhombus.prototype.defaultJiggle=2;var gb=mxRectangleShape.prototype.isHtmlAllowed;
mxRectangleShape.prototype.isHtmlAllowed=function(){return!this.outline&&(null==this.style||"0"==mxUtils.getValue(this.style,"comic","0")&&"0"==mxUtils.getValue(this.style,"sketch","1"==urlParams.rough?"1":"0"))&&gb.apply(this,arguments)};var hb=mxRectangleShape.prototype.paintBackground;mxRectangleShape.prototype.paintBackground=function(b,d,c,g,e){if(null==b.handJiggle||b.handJiggle.constructor!=G)hb.apply(this,arguments);else{var k=!0;null!=this.style&&(k="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,
"1"));if(k||null!=this.fill&&this.fill!=mxConstants.NONE||null!=this.stroke&&this.stroke!=mxConstants.NONE)k||null!=this.fill&&this.fill!=mxConstants.NONE||(b.pointerEvents=!1),b.begin(),this.isRounded?("1"==mxUtils.getValue(this.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?k=Math.min(g/2,Math.min(e/2,mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2)):(k=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,k=Math.min(g*
-k,e*k)),b.moveTo(d+k,c),b.lineTo(d+g-k,c),b.quadTo(d+g,c,d+g,c+k),b.lineTo(d+g,c+e-k),b.quadTo(d+g,c+e,d+g-k,c+e),b.lineTo(d+k,c+e),b.quadTo(d,c+e,d,c+e-k),b.lineTo(d,c+k),b.quadTo(d,c,d+k,c)):(b.moveTo(d,c),b.lineTo(d+g,c),b.lineTo(d+g,c+e),b.lineTo(d,c+e),b.lineTo(d,c)),b.close(),b.end(),b.fillAndStroke()}};mxUtils.extend(I,mxRectangleShape);I.prototype.size=.1;I.prototype.fixedSize=!1;I.prototype.isHtmlAllowed=function(){return!1};I.prototype.getLabelBounds=function(b){if(mxUtils.getValue(this.state.style,
+k,e*k)),b.moveTo(d+k,c),b.lineTo(d+g-k,c),b.quadTo(d+g,c,d+g,c+k),b.lineTo(d+g,c+e-k),b.quadTo(d+g,c+e,d+g-k,c+e),b.lineTo(d+k,c+e),b.quadTo(d,c+e,d,c+e-k),b.lineTo(d,c+k),b.quadTo(d,c,d+k,c)):(b.moveTo(d,c),b.lineTo(d+g,c),b.lineTo(d+g,c+e),b.lineTo(d,c+e),b.lineTo(d,c)),b.close(),b.end(),b.fillAndStroke()}};mxUtils.extend(H,mxRectangleShape);H.prototype.size=.1;H.prototype.fixedSize=!1;H.prototype.isHtmlAllowed=function(){return!1};H.prototype.getLabelBounds=function(b){if(mxUtils.getValue(this.state.style,
mxConstants.STYLE_HORIZONTAL,!0)==(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)){var d=b.width,c=b.height;b=new mxRectangle(b.x,b.y,d,c);var g=d*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));if(this.isRounded)var e=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,g=Math.max(g,Math.min(d*e,c*e));b.x+=Math.round(g);b.width-=Math.round(2*g)}return b};
-I.prototype.paintForeground=function(b,d,c,g,e){var k=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),B=parseFloat(mxUtils.getValue(this.style,"size",this.size)),B=k?Math.max(0,Math.min(g,B)):g*Math.max(0,Math.min(1,B));this.isRounded&&(k=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,B=Math.max(B,Math.min(g*k,e*k)));B=Math.round(B);b.begin();b.moveTo(d+B,c);b.lineTo(d+B,c+e);b.moveTo(d+g-B,c);b.lineTo(d+g-B,c+e);b.end();b.stroke();mxRectangleShape.prototype.paintForeground.apply(this,
-arguments)};mxCellRenderer.registerShape("process",I);mxCellRenderer.registerShape("process2",I);mxUtils.extend(L,mxRectangleShape);L.prototype.paintBackground=function(b,d,c,g,e){b.setFillColor(mxConstants.NONE);b.rect(d,c,g,e);b.fill()};L.prototype.paintForeground=function(b,d,c,g,e){};mxCellRenderer.registerShape("transparent",L);mxUtils.extend(M,mxHexagon);M.prototype.size=30;M.prototype.position=.5;M.prototype.position2=.5;M.prototype.base=20;M.prototype.getLabelMargins=function(){return new mxRectangle(0,
-0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale)};M.prototype.isRoundable=function(){return!0};M.prototype.redrawPath=function(b,d,c,g,e){d=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;c=Math.max(0,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size))));var k=g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position",this.position)))),B=g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",
-this.position2)))),f=Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(b,[new mxPoint(0,0),new mxPoint(g,0),new mxPoint(g,e-c),new mxPoint(Math.min(g,k+f),e-c),new mxPoint(B,e),new mxPoint(Math.max(0,k),e-c),new mxPoint(0,e-c)],this.isRounded,d,!0,[4])};mxCellRenderer.registerShape("callout",M);mxUtils.extend(K,mxActor);K.prototype.size=.2;K.prototype.fixedSize=20;K.prototype.isRoundable=function(){return!0};K.prototype.redrawPath=function(b,d,c,g,e){d=
-"0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,0),new mxPoint(g-d,0),new mxPoint(g,e/2),new mxPoint(g-d,e),new mxPoint(0,e),new mxPoint(d,e/2)],this.isRounded,c,!0);b.end()};mxCellRenderer.registerShape("step",K);
+H.prototype.paintForeground=function(b,d,c,g,e){var k=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),A=parseFloat(mxUtils.getValue(this.style,"size",this.size)),A=k?Math.max(0,Math.min(g,A)):g*Math.max(0,Math.min(1,A));this.isRounded&&(k=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,A=Math.max(A,Math.min(g*k,e*k)));A=Math.round(A);b.begin();b.moveTo(d+A,c);b.lineTo(d+A,c+e);b.moveTo(d+g-A,c);b.lineTo(d+g-A,c+e);b.end();b.stroke();mxRectangleShape.prototype.paintForeground.apply(this,
+arguments)};mxCellRenderer.registerShape("process",H);mxCellRenderer.registerShape("process2",H);mxUtils.extend(L,mxRectangleShape);L.prototype.paintBackground=function(b,d,c,g,e){b.setFillColor(mxConstants.NONE);b.rect(d,c,g,e);b.fill()};L.prototype.paintForeground=function(b,d,c,g,e){};mxCellRenderer.registerShape("transparent",L);mxUtils.extend(N,mxHexagon);N.prototype.size=30;N.prototype.position=.5;N.prototype.position2=.5;N.prototype.base=20;N.prototype.getLabelMargins=function(){return new mxRectangle(0,
+0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale)};N.prototype.isRoundable=function(){return!0};N.prototype.redrawPath=function(b,d,c,g,e){d=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;c=Math.max(0,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size))));var k=g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position",this.position)))),A=g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",
+this.position2)))),f=Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(b,[new mxPoint(0,0),new mxPoint(g,0),new mxPoint(g,e-c),new mxPoint(Math.min(g,k+f),e-c),new mxPoint(A,e),new mxPoint(Math.max(0,k),e-c),new mxPoint(0,e-c)],this.isRounded,d,!0,[4])};mxCellRenderer.registerShape("callout",N);mxUtils.extend(M,mxActor);M.prototype.size=.2;M.prototype.fixedSize=20;M.prototype.isRoundable=function(){return!0};M.prototype.redrawPath=function(b,d,c,g,e){d=
+"0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,0),new mxPoint(g-d,0),new mxPoint(g,e/2),new mxPoint(g-d,e),new mxPoint(0,e),new mxPoint(d,e/2)],this.isRounded,c,!0);b.end()};mxCellRenderer.registerShape("step",M);
mxUtils.extend(P,mxHexagon);P.prototype.size=.25;P.prototype.fixedSize=20;P.prototype.isRoundable=function(){return!0};P.prototype.redrawPath=function(b,d,c,g,e){d="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*g,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(d,
-0),new mxPoint(g-d,0),new mxPoint(g,.5*e),new mxPoint(g-d,e),new mxPoint(d,e),new mxPoint(0,.5*e)],this.isRounded,c,!0)};mxCellRenderer.registerShape("hexagon",P);mxUtils.extend(T,mxRectangleShape);T.prototype.isHtmlAllowed=function(){return!1};T.prototype.paintForeground=function(b,d,c,g,e){var k=Math.min(g/5,e/5)+1;b.begin();b.moveTo(d+g/2,c+k);b.lineTo(d+g/2,c+e-k);b.moveTo(d+k,c+e/2);b.lineTo(d+g-k,c+e/2);b.end();b.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("plus",
-T);var $a=mxRhombus.prototype.paintVertexShape;mxRhombus.prototype.getLabelBounds=function(b){if(1==this.style["double"]){var d=(2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(b.x+d,b.y+d,b.width-2*d,b.height-2*d)}return b};mxRhombus.prototype.paintVertexShape=function(b,d,c,g,e){$a.apply(this,arguments);if(!this.outline&&1==this.style["double"]){var k=2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||
+0),new mxPoint(g-d,0),new mxPoint(g,.5*e),new mxPoint(g-d,e),new mxPoint(d,e),new mxPoint(0,.5*e)],this.isRounded,c,!0)};mxCellRenderer.registerShape("hexagon",P);mxUtils.extend(V,mxRectangleShape);V.prototype.isHtmlAllowed=function(){return!1};V.prototype.paintForeground=function(b,d,c,g,e){var k=Math.min(g/5,e/5)+1;b.begin();b.moveTo(d+g/2,c+k);b.lineTo(d+g/2,c+e-k);b.moveTo(d+k,c+e/2);b.lineTo(d+g-k,c+e/2);b.end();b.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("plus",
+V);var $a=mxRhombus.prototype.paintVertexShape;mxRhombus.prototype.getLabelBounds=function(b){if(1==this.style["double"]){var d=(2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(b.x+d,b.y+d,b.width-2*d,b.height-2*d)}return b};mxRhombus.prototype.paintVertexShape=function(b,d,c,g,e){$a.apply(this,arguments);if(!this.outline&&1==this.style["double"]){var k=2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||
0);d+=k;c+=k;g-=2*k;e-=2*k;0<g&&0<e&&(b.setShadow(!1),$a.apply(this,[b,d,c,g,e]))}};mxUtils.extend(W,mxRectangleShape);W.prototype.isHtmlAllowed=function(){return!1};W.prototype.getLabelBounds=function(b){if(1==this.style["double"]){var d=(Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(b.x+d,b.y+d,b.width-2*d,b.height-2*d)}return b};W.prototype.paintForeground=function(b,d,c,g,e){if(null!=this.style){if(!this.outline&&1==this.style["double"]){var k=
-Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);d+=k;c+=k;g-=2*k;e-=2*k;0<g&&0<e&&mxRectangleShape.prototype.paintBackground.apply(this,arguments)}b.setDashed(!1);var k=0,B;do{B=mxCellRenderer.defaultShapes[this.style["symbol"+k]];if(null!=B){var f=this.style["symbol"+k+"Align"],l=this.style["symbol"+k+"VerticalAlign"],m=this.style["symbol"+k+"Width"],p=this.style["symbol"+k+"Height"],x=this.style["symbol"+k+"Spacing"]||0,v=this.style["symbol"+k+"VSpacing"]||x,wa=
-this.style["symbol"+k+"ArcSpacing"];null!=wa&&(wa*=this.getArcSize(g+this.strokewidth,e+this.strokewidth),x+=wa,v+=wa);var wa=d,Ja=c,wa=f==mxConstants.ALIGN_CENTER?wa+(g-m)/2:f==mxConstants.ALIGN_RIGHT?wa+(g-m-x):wa+x,Ja=l==mxConstants.ALIGN_MIDDLE?Ja+(e-p)/2:l==mxConstants.ALIGN_BOTTOM?Ja+(e-p-v):Ja+v;b.save();f=new B;f.style=this.style;B.prototype.paintVertexShape.call(f,b,wa,Ja,m,p);b.restore()}k++}while(null!=B)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("ext",
-W);mxUtils.extend(ga,mxCylinder);ga.prototype.redrawPath=function(b,d,c,g,e,k){k?(b.moveTo(0,0),b.lineTo(g/2,e/2),b.lineTo(g,0),b.end()):(b.moveTo(0,0),b.lineTo(g,0),b.lineTo(g,e),b.lineTo(0,e),b.close())};mxCellRenderer.registerShape("message",ga);mxUtils.extend(ja,mxShape);ja.prototype.paintBackground=function(b,d,c,g,e){b.translate(d,c);b.ellipse(g/4,0,g/2,e/4);b.fillAndStroke();b.begin();b.moveTo(g/2,e/4);b.lineTo(g/2,2*e/3);b.moveTo(g/2,e/3);b.lineTo(0,e/3);b.moveTo(g/2,e/3);b.lineTo(g,e/3);
-b.moveTo(g/2,2*e/3);b.lineTo(0,e);b.moveTo(g/2,2*e/3);b.lineTo(g,e);b.end();b.stroke()};mxCellRenderer.registerShape("umlActor",ja);mxUtils.extend(X,mxShape);X.prototype.getLabelMargins=function(b){return new mxRectangle(b.width/6,0,0,0)};X.prototype.paintBackground=function(b,d,c,g,e){b.translate(d,c);b.begin();b.moveTo(0,e/4);b.lineTo(0,3*e/4);b.end();b.stroke();b.begin();b.moveTo(0,e/2);b.lineTo(g/6,e/2);b.end();b.stroke();b.ellipse(g/6,0,5*g/6,e);b.fillAndStroke()};mxCellRenderer.registerShape("umlBoundary",
-X);mxUtils.extend(x,mxEllipse);x.prototype.paintVertexShape=function(b,d,c,g,e){mxEllipse.prototype.paintVertexShape.apply(this,arguments);b.begin();b.moveTo(d+g/8,c+e);b.lineTo(d+7*g/8,c+e);b.end();b.stroke()};mxCellRenderer.registerShape("umlEntity",x);mxUtils.extend(C,mxShape);C.prototype.paintVertexShape=function(b,d,c,g,e){b.translate(d,c);b.begin();b.moveTo(g,0);b.lineTo(0,e);b.moveTo(0,0);b.lineTo(g,e);b.end();b.stroke()};mxCellRenderer.registerShape("umlDestroy",C);mxUtils.extend(J,mxShape);
-J.prototype.getLabelBounds=function(b){return new mxRectangle(b.x,b.y+b.height/8,b.width,7*b.height/8)};J.prototype.paintBackground=function(b,d,c,g,e){b.translate(d,c);b.begin();b.moveTo(3*g/8,e/8*1.1);b.lineTo(5*g/8,0);b.end();b.stroke();b.ellipse(0,e/8,g,7*e/8);b.fillAndStroke()};J.prototype.paintForeground=function(b,d,c,g,e){b.begin();b.moveTo(3*g/8,e/8*1.1);b.lineTo(5*g/8,e/4);b.end();b.stroke()};mxCellRenderer.registerShape("umlControl",J);mxUtils.extend(V,mxRectangleShape);V.prototype.size=
-40;V.prototype.isHtmlAllowed=function(){return!1};V.prototype.getLabelBounds=function(b){var d=Math.max(0,Math.min(b.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale));return new mxRectangle(b.x,b.y,b.width,d)};V.prototype.paintBackground=function(b,d,c,g,e){var k=Math.max(0,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),f=mxUtils.getValue(this.style,"participant");null==f||null==this.state?mxRectangleShape.prototype.paintBackground.call(this,b,d,
-c,g,k):(f=this.state.view.graph.cellRenderer.getShape(f),null!=f&&f!=V&&(f=new f,f.apply(this.state),b.save(),f.paintVertexShape(b,d,c,g,k),b.restore()));k<e&&(b.setDashed("1"==mxUtils.getValue(this.style,"lifelineDashed","1")),b.begin(),b.moveTo(d+g/2,c+k),b.lineTo(d+g/2,c+e),b.end(),b.stroke())};V.prototype.paintForeground=function(b,d,c,g,e){var k=Math.max(0,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size))));mxRectangleShape.prototype.paintForeground.call(this,b,d,c,g,Math.min(e,
-k))};mxCellRenderer.registerShape("umlLifeline",V);mxUtils.extend(ca,mxShape);ca.prototype.width=60;ca.prototype.height=30;ca.prototype.corner=10;ca.prototype.getLabelMargins=function(b){return new mxRectangle(0,0,b.width-parseFloat(mxUtils.getValue(this.style,"width",this.width)*this.scale),b.height-parseFloat(mxUtils.getValue(this.style,"height",this.height)*this.scale))};ca.prototype.paintBackground=function(b,d,c,g,e){var k=this.corner,f=Math.min(g,Math.max(k,parseFloat(mxUtils.getValue(this.style,
-"width",this.width)))),B=Math.min(e,Math.max(1.5*k,parseFloat(mxUtils.getValue(this.style,"height",this.height)))),l=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);l!=mxConstants.NONE&&(b.setFillColor(l),b.rect(d,c,g,e),b.fill());null!=this.fill&&this.fill!=mxConstants.NONE&&this.gradient&&this.gradient!=mxConstants.NONE?(this.getGradientBounds(b,d,c,g,e),b.setGradient(this.fill,this.gradient,d,c,g,e,this.gradientDirection)):b.setFillColor(this.fill);b.begin();
-b.moveTo(d,c);b.lineTo(d+f,c);b.lineTo(d+f,c+Math.max(0,B-1.5*k));b.lineTo(d+Math.max(0,f-k),c+B);b.lineTo(d,c+B);b.close();b.fillAndStroke();b.begin();b.moveTo(d+f,c);b.lineTo(d+g,c);b.lineTo(d+g,c+e);b.lineTo(d,c+e);b.lineTo(d,c+B);b.stroke()};mxCellRenderer.registerShape("umlFrame",ca);mxPerimeter.CenterPerimeter=function(b,d,c,g){return new mxPoint(b.getCenterX(),b.getCenterY())};mxStyleRegistry.putValue("centerPerimeter",mxPerimeter.CenterPerimeter);mxPerimeter.LifelinePerimeter=function(b,d,
-c,g){g=V.prototype.size;null!=d&&(g=mxUtils.getValue(d.style,"size",g)*d.view.scale);d=parseFloat(d.style[mxConstants.STYLE_STROKEWIDTH]||1)*d.view.scale/2-1;c.x<b.getCenterX()&&(d=-1*(d+1));return new mxPoint(b.getCenterX()+d,Math.min(b.y+b.height,Math.max(b.y+g,c.y)))};mxStyleRegistry.putValue("lifelinePerimeter",mxPerimeter.LifelinePerimeter);mxPerimeter.OrthogonalPerimeter=function(b,d,c,g){g=!0;return mxPerimeter.RectanglePerimeter.apply(this,arguments)};mxStyleRegistry.putValue("orthogonalPerimeter",
+Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);d+=k;c+=k;g-=2*k;e-=2*k;0<g&&0<e&&mxRectangleShape.prototype.paintBackground.apply(this,arguments)}b.setDashed(!1);var k=0,A;do{A=mxCellRenderer.defaultShapes[this.style["symbol"+k]];if(null!=A){var f=this.style["symbol"+k+"Align"],l=this.style["symbol"+k+"VerticalAlign"],m=this.style["symbol"+k+"Width"],p=this.style["symbol"+k+"Height"],x=this.style["symbol"+k+"Spacing"]||0,u=this.style["symbol"+k+"VSpacing"]||x,va=
+this.style["symbol"+k+"ArcSpacing"];null!=va&&(va*=this.getArcSize(g+this.strokewidth,e+this.strokewidth),x+=va,u+=va);var va=d,Ja=c,va=f==mxConstants.ALIGN_CENTER?va+(g-m)/2:f==mxConstants.ALIGN_RIGHT?va+(g-m-x):va+x,Ja=l==mxConstants.ALIGN_MIDDLE?Ja+(e-p)/2:l==mxConstants.ALIGN_BOTTOM?Ja+(e-p-u):Ja+u;b.save();f=new A;f.style=this.style;A.prototype.paintVertexShape.call(f,b,va,Ja,m,p);b.restore()}k++}while(null!=A)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("ext",
+W);mxUtils.extend(ga,mxCylinder);ga.prototype.redrawPath=function(b,d,c,g,e,k){k?(b.moveTo(0,0),b.lineTo(g/2,e/2),b.lineTo(g,0),b.end()):(b.moveTo(0,0),b.lineTo(g,0),b.lineTo(g,e),b.lineTo(0,e),b.close())};mxCellRenderer.registerShape("message",ga);mxUtils.extend(ea,mxShape);ea.prototype.paintBackground=function(b,d,c,g,e){b.translate(d,c);b.ellipse(g/4,0,g/2,e/4);b.fillAndStroke();b.begin();b.moveTo(g/2,e/4);b.lineTo(g/2,2*e/3);b.moveTo(g/2,e/3);b.lineTo(0,e/3);b.moveTo(g/2,e/3);b.lineTo(g,e/3);
+b.moveTo(g/2,2*e/3);b.lineTo(0,e);b.moveTo(g/2,2*e/3);b.lineTo(g,e);b.end();b.stroke()};mxCellRenderer.registerShape("umlActor",ea);mxUtils.extend(ba,mxShape);ba.prototype.getLabelMargins=function(b){return new mxRectangle(b.width/6,0,0,0)};ba.prototype.paintBackground=function(b,d,c,g,e){b.translate(d,c);b.begin();b.moveTo(0,e/4);b.lineTo(0,3*e/4);b.end();b.stroke();b.begin();b.moveTo(0,e/2);b.lineTo(g/6,e/2);b.end();b.stroke();b.ellipse(g/6,0,5*g/6,e);b.fillAndStroke()};mxCellRenderer.registerShape("umlBoundary",
+ba);mxUtils.extend(x,mxEllipse);x.prototype.paintVertexShape=function(b,d,c,g,e){mxEllipse.prototype.paintVertexShape.apply(this,arguments);b.begin();b.moveTo(d+g/8,c+e);b.lineTo(d+7*g/8,c+e);b.end();b.stroke()};mxCellRenderer.registerShape("umlEntity",x);mxUtils.extend(C,mxShape);C.prototype.paintVertexShape=function(b,d,c,g,e){b.translate(d,c);b.begin();b.moveTo(g,0);b.lineTo(0,e);b.moveTo(0,0);b.lineTo(g,e);b.end();b.stroke()};mxCellRenderer.registerShape("umlDestroy",C);mxUtils.extend(J,mxShape);
+J.prototype.getLabelBounds=function(b){return new mxRectangle(b.x,b.y+b.height/8,b.width,7*b.height/8)};J.prototype.paintBackground=function(b,d,c,g,e){b.translate(d,c);b.begin();b.moveTo(3*g/8,e/8*1.1);b.lineTo(5*g/8,0);b.end();b.stroke();b.ellipse(0,e/8,g,7*e/8);b.fillAndStroke()};J.prototype.paintForeground=function(b,d,c,g,e){b.begin();b.moveTo(3*g/8,e/8*1.1);b.lineTo(5*g/8,e/4);b.end();b.stroke()};mxCellRenderer.registerShape("umlControl",J);mxUtils.extend(X,mxRectangleShape);X.prototype.size=
+40;X.prototype.isHtmlAllowed=function(){return!1};X.prototype.getLabelBounds=function(b){var d=Math.max(0,Math.min(b.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale));return new mxRectangle(b.x,b.y,b.width,d)};X.prototype.paintBackground=function(b,d,c,g,e){var k=Math.max(0,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),f=mxUtils.getValue(this.style,"participant");null==f||null==this.state?mxRectangleShape.prototype.paintBackground.call(this,b,d,
+c,g,k):(f=this.state.view.graph.cellRenderer.getShape(f),null!=f&&f!=X&&(f=new f,f.apply(this.state),b.save(),f.paintVertexShape(b,d,c,g,k),b.restore()));k<e&&(b.setDashed("1"==mxUtils.getValue(this.style,"lifelineDashed","1")),b.begin(),b.moveTo(d+g/2,c+k),b.lineTo(d+g/2,c+e),b.end(),b.stroke())};X.prototype.paintForeground=function(b,d,c,g,e){var k=Math.max(0,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size))));mxRectangleShape.prototype.paintForeground.call(this,b,d,c,g,Math.min(e,
+k))};mxCellRenderer.registerShape("umlLifeline",X);mxUtils.extend(ca,mxShape);ca.prototype.width=60;ca.prototype.height=30;ca.prototype.corner=10;ca.prototype.getLabelMargins=function(b){return new mxRectangle(0,0,b.width-parseFloat(mxUtils.getValue(this.style,"width",this.width)*this.scale),b.height-parseFloat(mxUtils.getValue(this.style,"height",this.height)*this.scale))};ca.prototype.paintBackground=function(b,d,c,g,e){var k=this.corner,f=Math.min(g,Math.max(k,parseFloat(mxUtils.getValue(this.style,
+"width",this.width)))),A=Math.min(e,Math.max(1.5*k,parseFloat(mxUtils.getValue(this.style,"height",this.height)))),l=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);l!=mxConstants.NONE&&(b.setFillColor(l),b.rect(d,c,g,e),b.fill());null!=this.fill&&this.fill!=mxConstants.NONE&&this.gradient&&this.gradient!=mxConstants.NONE?(this.getGradientBounds(b,d,c,g,e),b.setGradient(this.fill,this.gradient,d,c,g,e,this.gradientDirection)):b.setFillColor(this.fill);b.begin();
+b.moveTo(d,c);b.lineTo(d+f,c);b.lineTo(d+f,c+Math.max(0,A-1.5*k));b.lineTo(d+Math.max(0,f-k),c+A);b.lineTo(d,c+A);b.close();b.fillAndStroke();b.begin();b.moveTo(d+f,c);b.lineTo(d+g,c);b.lineTo(d+g,c+e);b.lineTo(d,c+e);b.lineTo(d,c+A);b.stroke()};mxCellRenderer.registerShape("umlFrame",ca);mxPerimeter.CenterPerimeter=function(b,d,c,g){return new mxPoint(b.getCenterX(),b.getCenterY())};mxStyleRegistry.putValue("centerPerimeter",mxPerimeter.CenterPerimeter);mxPerimeter.LifelinePerimeter=function(b,d,
+c,g){g=X.prototype.size;null!=d&&(g=mxUtils.getValue(d.style,"size",g)*d.view.scale);d=parseFloat(d.style[mxConstants.STYLE_STROKEWIDTH]||1)*d.view.scale/2-1;c.x<b.getCenterX()&&(d=-1*(d+1));return new mxPoint(b.getCenterX()+d,Math.min(b.y+b.height,Math.max(b.y+g,c.y)))};mxStyleRegistry.putValue("lifelinePerimeter",mxPerimeter.LifelinePerimeter);mxPerimeter.OrthogonalPerimeter=function(b,d,c,g){g=!0;return mxPerimeter.RectanglePerimeter.apply(this,arguments)};mxStyleRegistry.putValue("orthogonalPerimeter",
mxPerimeter.OrthogonalPerimeter);mxPerimeter.BackbonePerimeter=function(b,d,c,g){g=parseFloat(d.style[mxConstants.STYLE_STROKEWIDTH]||1)*d.view.scale/2-1;null!=d.style.backboneSize&&(g+=parseFloat(d.style.backboneSize)*d.view.scale/2-1);if("south"==d.style[mxConstants.STYLE_DIRECTION]||"north"==d.style[mxConstants.STYLE_DIRECTION])return c.x<b.getCenterX()&&(g=-1*(g+1)),new mxPoint(b.getCenterX()+g,Math.min(b.y+b.height,Math.max(b.y,c.y)));c.y<b.getCenterY()&&(g=-1*(g+1));return new mxPoint(Math.min(b.x+
-b.width,Math.max(b.x,c.x)),b.getCenterY()+g)};mxStyleRegistry.putValue("backbonePerimeter",mxPerimeter.BackbonePerimeter);mxPerimeter.CalloutPerimeter=function(b,d,c,g){return mxPerimeter.RectanglePerimeter(mxUtils.getDirectedBounds(b,new mxRectangle(0,0,0,Math.max(0,Math.min(b.height,parseFloat(mxUtils.getValue(d.style,"size",M.prototype.size))*d.view.scale))),d.style),d,c,g)};mxStyleRegistry.putValue("calloutPerimeter",mxPerimeter.CalloutPerimeter);mxPerimeter.ParallelogramPerimeter=function(b,
-d,c,g){var e="0"!=mxUtils.getValue(d.style,"fixedSize","0"),k=e?E.prototype.fixedSize:E.prototype.size;null!=d&&(k=mxUtils.getValue(d.style,"size",k));e&&(k*=d.view.scale);var f=b.x,B=b.y,l=b.width,m=b.height;d=null!=d?mxUtils.getValue(d.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;d==mxConstants.DIRECTION_NORTH||d==mxConstants.DIRECTION_SOUTH?(e=e?Math.max(0,Math.min(m,k)):m*Math.max(0,Math.min(1,k)),B=[new mxPoint(f,B),new mxPoint(f+l,B+e),new mxPoint(f+
-l,B+m),new mxPoint(f,B+m-e),new mxPoint(f,B)]):(e=e?Math.max(0,Math.min(.5*l,k)):l*Math.max(0,Math.min(1,k)),B=[new mxPoint(f+e,B),new mxPoint(f+l,B),new mxPoint(f+l-e,B+m),new mxPoint(f,B+m),new mxPoint(f+e,B)]);m=b.getCenterX();b=b.getCenterY();b=new mxPoint(m,b);g&&(c.x<f||c.x>f+l?b.y=c.y:b.x=c.x);return mxUtils.getPerimeterPoint(B,b,c)};mxStyleRegistry.putValue("parallelogramPerimeter",mxPerimeter.ParallelogramPerimeter);mxPerimeter.TrapezoidPerimeter=function(b,d,c,g){var e="0"!=mxUtils.getValue(d.style,
-"fixedSize","0"),k=e?H.prototype.fixedSize:H.prototype.size;null!=d&&(k=mxUtils.getValue(d.style,"size",k));e&&(k*=d.view.scale);var f=b.x,B=b.y,l=b.width,m=b.height;d=null!=d?mxUtils.getValue(d.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;d==mxConstants.DIRECTION_EAST?(e=e?Math.max(0,Math.min(.5*l,k)):l*Math.max(0,Math.min(1,k)),B=[new mxPoint(f+e,B),new mxPoint(f+l-e,B),new mxPoint(f+l,B+m),new mxPoint(f,B+m),new mxPoint(f+e,B)]):d==mxConstants.DIRECTION_WEST?
-(e=e?Math.max(0,Math.min(l,k)):l*Math.max(0,Math.min(1,k)),B=[new mxPoint(f,B),new mxPoint(f+l,B),new mxPoint(f+l-e,B+m),new mxPoint(f+e,B+m),new mxPoint(f,B)]):d==mxConstants.DIRECTION_NORTH?(e=e?Math.max(0,Math.min(m,k)):m*Math.max(0,Math.min(1,k)),B=[new mxPoint(f,B+e),new mxPoint(f+l,B),new mxPoint(f+l,B+m),new mxPoint(f,B+m-e),new mxPoint(f,B+e)]):(e=e?Math.max(0,Math.min(m,k)):m*Math.max(0,Math.min(1,k)),B=[new mxPoint(f,B),new mxPoint(f+l,B+e),new mxPoint(f+l,B+m-e),new mxPoint(f,B+m),new mxPoint(f,
-B)]);m=b.getCenterX();b=b.getCenterY();b=new mxPoint(m,b);g&&(c.x<f||c.x>f+l?b.y=c.y:b.x=c.x);return mxUtils.getPerimeterPoint(B,b,c)};mxStyleRegistry.putValue("trapezoidPerimeter",mxPerimeter.TrapezoidPerimeter);mxPerimeter.StepPerimeter=function(b,d,c,g){var e="0"!=mxUtils.getValue(d.style,"fixedSize","0"),k=e?K.prototype.fixedSize:K.prototype.size;null!=d&&(k=mxUtils.getValue(d.style,"size",k));e&&(k*=d.view.scale);var f=b.x,B=b.y,l=b.width,m=b.height,p=b.getCenterX();b=b.getCenterY();d=null!=
-d?mxUtils.getValue(d.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;d==mxConstants.DIRECTION_EAST?(e=e?Math.max(0,Math.min(l,k)):l*Math.max(0,Math.min(1,k)),B=[new mxPoint(f,B),new mxPoint(f+l-e,B),new mxPoint(f+l,b),new mxPoint(f+l-e,B+m),new mxPoint(f,B+m),new mxPoint(f+e,b),new mxPoint(f,B)]):d==mxConstants.DIRECTION_WEST?(e=e?Math.max(0,Math.min(l,k)):l*Math.max(0,Math.min(1,k)),B=[new mxPoint(f+e,B),new mxPoint(f+l,B),new mxPoint(f+l-e,b),new mxPoint(f+
-l,B+m),new mxPoint(f+e,B+m),new mxPoint(f,b),new mxPoint(f+e,B)]):d==mxConstants.DIRECTION_NORTH?(e=e?Math.max(0,Math.min(m,k)):m*Math.max(0,Math.min(1,k)),B=[new mxPoint(f,B+e),new mxPoint(p,B),new mxPoint(f+l,B+e),new mxPoint(f+l,B+m),new mxPoint(p,B+m-e),new mxPoint(f,B+m),new mxPoint(f,B+e)]):(e=e?Math.max(0,Math.min(m,k)):m*Math.max(0,Math.min(1,k)),B=[new mxPoint(f,B),new mxPoint(p,B+e),new mxPoint(f+l,B),new mxPoint(f+l,B+m-e),new mxPoint(p,B+m),new mxPoint(f,B+m-e),new mxPoint(f,B)]);p=new mxPoint(p,
-b);g&&(c.x<f||c.x>f+l?p.y=c.y:p.x=c.x);return mxUtils.getPerimeterPoint(B,p,c)};mxStyleRegistry.putValue("stepPerimeter",mxPerimeter.StepPerimeter);mxPerimeter.HexagonPerimeter2=function(b,d,c,g){var e="0"!=mxUtils.getValue(d.style,"fixedSize","0"),k=e?P.prototype.fixedSize:P.prototype.size;null!=d&&(k=mxUtils.getValue(d.style,"size",k));e&&(k*=d.view.scale);var f=b.x,B=b.y,l=b.width,m=b.height,p=b.getCenterX();b=b.getCenterY();d=null!=d?mxUtils.getValue(d.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):
-mxConstants.DIRECTION_EAST;d==mxConstants.DIRECTION_NORTH||d==mxConstants.DIRECTION_SOUTH?(e=e?Math.max(0,Math.min(m,k)):m*Math.max(0,Math.min(1,k)),B=[new mxPoint(p,B),new mxPoint(f+l,B+e),new mxPoint(f+l,B+m-e),new mxPoint(p,B+m),new mxPoint(f,B+m-e),new mxPoint(f,B+e),new mxPoint(p,B)]):(e=e?Math.max(0,Math.min(l,k)):l*Math.max(0,Math.min(1,k)),B=[new mxPoint(f+e,B),new mxPoint(f+l-e,B),new mxPoint(f+l,b),new mxPoint(f+l-e,B+m),new mxPoint(f+e,B+m),new mxPoint(f,b),new mxPoint(f+e,B)]);p=new mxPoint(p,
-b);g&&(c.x<f||c.x>f+l?p.y=c.y:p.x=c.x);return mxUtils.getPerimeterPoint(B,p,c)};mxStyleRegistry.putValue("hexagonPerimeter2",mxPerimeter.HexagonPerimeter2);mxUtils.extend(aa,mxShape);aa.prototype.size=10;aa.prototype.paintBackground=function(b,d,c,g,e){var k=parseFloat(mxUtils.getValue(this.style,"size",this.size));b.translate(d,c);b.ellipse((g-k)/2,0,k,k);b.fillAndStroke();b.begin();b.moveTo(g/2,k);b.lineTo(g/2,e);b.end();b.stroke()};mxCellRenderer.registerShape("lollipop",aa);mxUtils.extend(da,
-mxShape);da.prototype.size=10;da.prototype.inset=2;da.prototype.paintBackground=function(b,d,c,g,e){var k=parseFloat(mxUtils.getValue(this.style,"size",this.size)),f=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;b.translate(d,c);b.begin();b.moveTo(g/2,k+f);b.lineTo(g/2,e);b.end();b.stroke();b.begin();b.moveTo((g-k)/2-f,k/2);b.quadTo((g-k)/2-f,k+f,g/2,k+f);b.quadTo((g+k)/2+f,k+f,(g+k)/2+f,k/2);b.end();b.stroke()};mxCellRenderer.registerShape("requires",da);mxUtils.extend(ta,
-mxShape);ta.prototype.paintBackground=function(b,d,c,g,e){b.translate(d,c);b.begin();b.moveTo(0,0);b.quadTo(g,0,g,e/2);b.quadTo(g,e,0,e);b.end();b.stroke()};mxCellRenderer.registerShape("requiredInterface",ta);mxUtils.extend(ua,mxShape);ua.prototype.inset=2;ua.prototype.paintBackground=function(b,d,c,g,e){var k=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;b.translate(d,c);b.ellipse(0,k,g-2*k,e-2*k);b.fillAndStroke();b.begin();b.moveTo(g/2,0);b.quadTo(g,0,g,e/2);b.quadTo(g,
-e,g/2,e);b.end();b.stroke()};mxCellRenderer.registerShape("providedRequiredInterface",ua);mxUtils.extend(ha,mxCylinder);ha.prototype.jettyWidth=20;ha.prototype.jettyHeight=10;ha.prototype.redrawPath=function(b,d,c,g,e,k){var f=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));d=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));c=f/2;var f=c+f/2,B=Math.min(d,e-d),l=Math.min(B+2*d,e-d);k?(b.moveTo(c,B),b.lineTo(f,B),b.lineTo(f,B+d),b.lineTo(c,B+d),b.moveTo(c,
-l),b.lineTo(f,l),b.lineTo(f,l+d),b.lineTo(c,l+d)):(b.moveTo(c,0),b.lineTo(g,0),b.lineTo(g,e),b.lineTo(c,e),b.lineTo(c,l+d),b.lineTo(0,l+d),b.lineTo(0,l),b.lineTo(c,l),b.lineTo(c,B+d),b.lineTo(0,B+d),b.lineTo(0,B),b.lineTo(c,B),b.close());b.end()};mxCellRenderer.registerShape("module",ha);mxUtils.extend(oa,mxCylinder);oa.prototype.jettyWidth=32;oa.prototype.jettyHeight=12;oa.prototype.redrawPath=function(b,d,c,g,e,k){var f=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));d=parseFloat(mxUtils.getValue(this.style,
-"jettyHeight",this.jettyHeight));c=f/2;var f=c+f/2,B=.3*e-d/2,l=.7*e-d/2;k?(b.moveTo(c,B),b.lineTo(f,B),b.lineTo(f,B+d),b.lineTo(c,B+d),b.moveTo(c,l),b.lineTo(f,l),b.lineTo(f,l+d),b.lineTo(c,l+d)):(b.moveTo(c,0),b.lineTo(g,0),b.lineTo(g,e),b.lineTo(c,e),b.lineTo(c,l+d),b.lineTo(0,l+d),b.lineTo(0,l),b.lineTo(c,l),b.lineTo(c,B+d),b.lineTo(0,B+d),b.lineTo(0,B),b.lineTo(c,B),b.close());b.end()};mxCellRenderer.registerShape("component",oa);mxUtils.extend(Y,mxRectangleShape);Y.prototype.paintForeground=
-function(b,d,c,g,e){var k=g/2,f=e/2,B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;b.begin();this.addPoints(b,[new mxPoint(d+k,c),new mxPoint(d+g,c+f),new mxPoint(d+k,c+e),new mxPoint(d,c+f)],this.isRounded,B,!0);b.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",Y);mxUtils.extend(Q,mxDoubleEllipse);Q.prototype.outerStroke=!0;Q.prototype.paintVertexShape=function(b,d,c,g,e){var k=Math.min(4,
-Math.min(g/5,e/5));0<g&&0<e&&(b.ellipse(d+k,c+k,g-2*k,e-2*k),b.fillAndStroke());b.setShadow(!1);this.outerStroke&&(b.ellipse(d,c,g,e),b.stroke())};mxCellRenderer.registerShape("endState",Q);mxUtils.extend(ea,Q);ea.prototype.outerStroke=!1;mxCellRenderer.registerShape("startState",ea);mxUtils.extend(S,mxArrowConnector);S.prototype.defaultWidth=4;S.prototype.isOpenEnded=function(){return!0};S.prototype.getEdgeWidth=function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,
-this.strokewidth-1)};S.prototype.isArrowRounded=function(){return this.isRounded};mxCellRenderer.registerShape("link",S);mxUtils.extend(ma,mxArrowConnector);ma.prototype.defaultWidth=10;ma.prototype.defaultArrowWidth=20;ma.prototype.getStartArrowWidth=function(){return this.getEdgeWidth()+mxUtils.getNumber(this.style,"startWidth",this.defaultArrowWidth)};ma.prototype.getEndArrowWidth=function(){return this.getEdgeWidth()+mxUtils.getNumber(this.style,"endWidth",this.defaultArrowWidth)};ma.prototype.getEdgeWidth=
-function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,this.strokewidth-1)};mxCellRenderer.registerShape("flexArrow",ma);mxUtils.extend(pa,mxActor);pa.prototype.size=30;pa.prototype.isRoundable=function(){return!0};pa.prototype.redrawPath=function(b,d,c,g,e){d=Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size)));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,e),new mxPoint(0,d),new mxPoint(g,
-0),new mxPoint(g,e)],this.isRounded,c,!0);b.end()};mxCellRenderer.registerShape("manualInput",pa);mxUtils.extend(ra,mxRectangleShape);ra.prototype.dx=20;ra.prototype.dy=20;ra.prototype.isHtmlAllowed=function(){return!1};ra.prototype.paintForeground=function(b,d,c,g,e){mxRectangleShape.prototype.paintForeground.apply(this,arguments);var k=0;if(this.isRounded)var f=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,k=Math.max(k,Math.min(g*f,e*f));f=
-Math.max(k,Math.min(g,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));k=Math.max(k,Math.min(e,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));b.begin();b.moveTo(d,c+k);b.lineTo(d+g,c+k);b.end();b.stroke();b.begin();b.moveTo(d+f,c);b.lineTo(d+f,c+e);b.end();b.stroke()};mxCellRenderer.registerShape("internalStorage",ra);mxUtils.extend(R,mxActor);R.prototype.dx=20;R.prototype.dy=20;R.prototype.redrawPath=function(b,d,c,g,e){d=Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,
-"dx",this.dx))));c=Math.max(0,Math.min(e,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var k=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,0),new mxPoint(g,0),new mxPoint(g,c),new mxPoint(d,c),new mxPoint(d,e),new mxPoint(0,e)],this.isRounded,k,!0);b.end()};mxCellRenderer.registerShape("corner",R);mxUtils.extend(qa,mxActor);qa.prototype.redrawPath=function(b,d,c,
-g,e){b.moveTo(0,0);b.lineTo(0,e);b.end();b.moveTo(g,0);b.lineTo(g,e);b.end();b.moveTo(0,e/2);b.lineTo(g,e/2);b.end()};mxCellRenderer.registerShape("crossbar",qa);mxUtils.extend(ia,mxActor);ia.prototype.dx=20;ia.prototype.dy=20;ia.prototype.redrawPath=function(b,d,c,g,e){d=Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));c=Math.max(0,Math.min(e,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var k=mxUtils.getValue(this.style,
-mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,0),new mxPoint(g,0),new mxPoint(g,c),new mxPoint((g+d)/2,c),new mxPoint((g+d)/2,e),new mxPoint((g-d)/2,e),new mxPoint((g-d)/2,c),new mxPoint(0,c)],this.isRounded,k,!0);b.end()};mxCellRenderer.registerShape("tee",ia);mxUtils.extend(fa,mxActor);fa.prototype.arrowWidth=.3;fa.prototype.arrowSize=.2;fa.prototype.redrawPath=function(b,d,c,g,e){var k=e*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",
-this.arrowWidth))));d=g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",this.arrowSize))));c=(e-k)/2;var k=c+k,f=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,c),new mxPoint(g-d,c),new mxPoint(g-d,0),new mxPoint(g,e/2),new mxPoint(g-d,e),new mxPoint(g-d,k),new mxPoint(0,k)],this.isRounded,f,!0);b.end()};mxCellRenderer.registerShape("singleArrow",fa);mxUtils.extend(ba,mxActor);ba.prototype.redrawPath=function(b,
-d,c,g,e){var k=e*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",fa.prototype.arrowWidth))));d=g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",fa.prototype.arrowSize))));c=(e-k)/2;var k=c+k,f=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,e/2),new mxPoint(d,0),new mxPoint(d,c),new mxPoint(g-d,c),new mxPoint(g-d,0),new mxPoint(g,e/2),new mxPoint(g-d,e),new mxPoint(g-d,k),new mxPoint(d,
-k),new mxPoint(d,e)],this.isRounded,f,!0);b.end()};mxCellRenderer.registerShape("doubleArrow",ba);mxUtils.extend(na,mxActor);na.prototype.size=.1;na.prototype.fixedSize=20;na.prototype.redrawPath=function(b,d,c,g,e){d="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));b.moveTo(d,0);b.lineTo(g,0);b.quadTo(g-2*d,e/2,g,e);b.lineTo(d,
-e);b.quadTo(d-2*d,e/2,d,0);b.close();b.end()};mxCellRenderer.registerShape("dataStorage",na);mxUtils.extend(Aa,mxActor);Aa.prototype.redrawPath=function(b,d,c,g,e){b.moveTo(0,0);b.quadTo(g,0,g,e/2);b.quadTo(g,e,0,e);b.close();b.end()};mxCellRenderer.registerShape("or",Aa);mxUtils.extend(xa,mxActor);xa.prototype.redrawPath=function(b,d,c,g,e){b.moveTo(0,0);b.quadTo(g,0,g,e/2);b.quadTo(g,e,0,e);b.quadTo(g/2,e/2,0,0);b.close();b.end()};mxCellRenderer.registerShape("xor",xa);mxUtils.extend(sa,mxActor);
-sa.prototype.size=20;sa.prototype.isRoundable=function(){return!0};sa.prototype.redrawPath=function(b,d,c,g,e){d=Math.min(g/2,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(d,0),new mxPoint(g-d,0),new mxPoint(g,.8*d),new mxPoint(g,e),new mxPoint(0,e),new mxPoint(0,.8*d)],this.isRounded,c,!0);b.end()};mxCellRenderer.registerShape("loopLimit",sa);mxUtils.extend(ka,
-mxActor);ka.prototype.size=.375;ka.prototype.isRoundable=function(){return!0};ka.prototype.redrawPath=function(b,d,c,g,e){d=e*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,0),new mxPoint(g,0),new mxPoint(g,e-d),new mxPoint(g/2,e),new mxPoint(0,e-d)],this.isRounded,c,!0);b.end()};mxCellRenderer.registerShape("offPageConnector",ka);mxUtils.extend(Z,
-mxEllipse);Z.prototype.paintVertexShape=function(b,d,c,g,e){mxEllipse.prototype.paintVertexShape.apply(this,arguments);b.begin();b.moveTo(d+g/2,c+e);b.lineTo(d+g,c+e);b.end();b.stroke()};mxCellRenderer.registerShape("tapeData",Z);mxUtils.extend(O,mxEllipse);O.prototype.paintVertexShape=function(b,d,c,g,e){mxEllipse.prototype.paintVertexShape.apply(this,arguments);b.setShadow(!1);b.begin();b.moveTo(d,c+e/2);b.lineTo(d+g,c+e/2);b.end();b.stroke();b.begin();b.moveTo(d+g/2,c);b.lineTo(d+g/2,c+e);b.end();
-b.stroke()};mxCellRenderer.registerShape("orEllipse",O);mxUtils.extend(Ga,mxEllipse);Ga.prototype.paintVertexShape=function(b,d,c,g,e){mxEllipse.prototype.paintVertexShape.apply(this,arguments);b.setShadow(!1);b.begin();b.moveTo(d+.145*g,c+.145*e);b.lineTo(d+.855*g,c+.855*e);b.end();b.stroke();b.begin();b.moveTo(d+.855*g,c+.145*e);b.lineTo(d+.145*g,c+.855*e);b.end();b.stroke()};mxCellRenderer.registerShape("sumEllipse",Ga);mxUtils.extend(Da,mxRhombus);Da.prototype.paintVertexShape=function(b,d,c,
-g,e){mxRhombus.prototype.paintVertexShape.apply(this,arguments);b.setShadow(!1);b.begin();b.moveTo(d,c+e/2);b.lineTo(d+g,c+e/2);b.end();b.stroke()};mxCellRenderer.registerShape("sortShape",Da);mxUtils.extend(ya,mxEllipse);ya.prototype.paintVertexShape=function(b,d,c,g,e){b.begin();b.moveTo(d,c);b.lineTo(d+g,c);b.lineTo(d+g/2,c+e/2);b.close();b.fillAndStroke();b.begin();b.moveTo(d,c+e);b.lineTo(d+g,c+e);b.lineTo(d+g/2,c+e/2);b.close();b.fillAndStroke()};mxCellRenderer.registerShape("collate",ya);mxUtils.extend(Ea,
-mxEllipse);Ea.prototype.paintVertexShape=function(b,d,c,g,e){var k=b.state.strokeWidth/2,f=10+2*k,l=c+e-f/2;b.begin();b.moveTo(d,c);b.lineTo(d,c+e);b.moveTo(d+k,l);b.lineTo(d+k+f,l-f/2);b.moveTo(d+k,l);b.lineTo(d+k+f,l+f/2);b.moveTo(d+k,l);b.lineTo(d+g-k,l);b.moveTo(d+g,c);b.lineTo(d+g,c+e);b.moveTo(d+g-k,l);b.lineTo(d+g-f-k,l-f/2);b.moveTo(d+g-k,l);b.lineTo(d+g-f-k,l+f/2);b.end();b.stroke()};mxCellRenderer.registerShape("dimension",Ea);mxUtils.extend(va,mxEllipse);va.prototype.drawHidden=!0;va.prototype.paintVertexShape=
-function(b,d,c,g,e){this.outline||b.setStrokeColor(null);if(null!=this.style){var k=b.pointerEvents,f=null!=this.fill&&this.fill!=mxConstants.NONE;"1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||f||(b.pointerEvents=!1);var l="1"==mxUtils.getValue(this.style,"top","1"),m="1"==mxUtils.getValue(this.style,"left","1"),B="1"==mxUtils.getValue(this.style,"right","1"),p="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||f||this.outline||l||B||p||m?(b.rect(d,c,g,e),b.fill(),
-b.pointerEvents=k,b.setStrokeColor(this.stroke),b.setLineCap("square"),b.begin(),b.moveTo(d,c),this.outline||l?b.lineTo(d+g,c):b.moveTo(d+g,c),this.outline||B?b.lineTo(d+g,c+e):b.moveTo(d+g,c+e),this.outline||p?b.lineTo(d,c+e):b.moveTo(d,c+e),(this.outline||m)&&b.lineTo(d,c),b.end(),b.stroke(),b.setLineCap("flat")):b.setStrokeColor(this.stroke)}};mxCellRenderer.registerShape("partialRectangle",va);mxUtils.extend(Ha,mxEllipse);Ha.prototype.paintVertexShape=function(b,d,c,g,e){mxEllipse.prototype.paintVertexShape.apply(this,
-arguments);b.setShadow(!1);b.begin();"vertical"==mxUtils.getValue(this.style,"line")?(b.moveTo(d+g/2,c),b.lineTo(d+g/2,c+e)):(b.moveTo(d,c+e/2),b.lineTo(d+g,c+e/2));b.end();b.stroke()};mxCellRenderer.registerShape("lineEllipse",Ha);mxUtils.extend(Ca,mxActor);Ca.prototype.redrawPath=function(b,d,c,g,e){d=Math.min(g,e/2);b.moveTo(0,0);b.lineTo(g-d,0);b.quadTo(g,0,g,e/2);b.quadTo(g,e,g-d,e);b.lineTo(0,e);b.close();b.end()};mxCellRenderer.registerShape("delay",Ca);mxUtils.extend(za,mxActor);za.prototype.size=
-.2;za.prototype.redrawPath=function(b,d,c,g,e){d=Math.min(e,g);var k=Math.max(0,Math.min(d,d*parseFloat(mxUtils.getValue(this.style,"size",this.size))));d=(e-k)/2;c=d+k;var f=(g-k)/2,k=f+k;b.moveTo(0,d);b.lineTo(f,d);b.lineTo(f,0);b.lineTo(k,0);b.lineTo(k,d);b.lineTo(g,d);b.lineTo(g,c);b.lineTo(k,c);b.lineTo(k,e);b.lineTo(f,e);b.lineTo(f,c);b.lineTo(0,c);b.close();b.end()};mxCellRenderer.registerShape("cross",za);mxUtils.extend(Ba,mxActor);Ba.prototype.size=.25;Ba.prototype.redrawPath=function(b,
-d,c,g,e){d=Math.min(g,e/2);c=Math.min(g-d,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*g);b.moveTo(0,e/2);b.lineTo(c,0);b.lineTo(g-d,0);b.quadTo(g,0,g,e/2);b.quadTo(g,e,g-d,e);b.lineTo(c,e);b.close();b.end()};mxCellRenderer.registerShape("display",Ba);mxUtils.extend(U,mxActor);U.prototype.cst={RECT2:"mxgraph.basic.rect"};U.prototype.customProperties=[{name:"rectStyle",dispName:"Style",type:"enum",defVal:"square",enumList:[{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},
+b.width,Math.max(b.x,c.x)),b.getCenterY()+g)};mxStyleRegistry.putValue("backbonePerimeter",mxPerimeter.BackbonePerimeter);mxPerimeter.CalloutPerimeter=function(b,d,c,g){return mxPerimeter.RectanglePerimeter(mxUtils.getDirectedBounds(b,new mxRectangle(0,0,0,Math.max(0,Math.min(b.height,parseFloat(mxUtils.getValue(d.style,"size",N.prototype.size))*d.view.scale))),d.style),d,c,g)};mxStyleRegistry.putValue("calloutPerimeter",mxPerimeter.CalloutPerimeter);mxPerimeter.ParallelogramPerimeter=function(b,
+d,c,g){var e="0"!=mxUtils.getValue(d.style,"fixedSize","0"),k=e?F.prototype.fixedSize:F.prototype.size;null!=d&&(k=mxUtils.getValue(d.style,"size",k));e&&(k*=d.view.scale);var f=b.x,A=b.y,l=b.width,m=b.height;d=null!=d?mxUtils.getValue(d.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;d==mxConstants.DIRECTION_NORTH||d==mxConstants.DIRECTION_SOUTH?(e=e?Math.max(0,Math.min(m,k)):m*Math.max(0,Math.min(1,k)),A=[new mxPoint(f,A),new mxPoint(f+l,A+e),new mxPoint(f+
+l,A+m),new mxPoint(f,A+m-e),new mxPoint(f,A)]):(e=e?Math.max(0,Math.min(.5*l,k)):l*Math.max(0,Math.min(1,k)),A=[new mxPoint(f+e,A),new mxPoint(f+l,A),new mxPoint(f+l-e,A+m),new mxPoint(f,A+m),new mxPoint(f+e,A)]);m=b.getCenterX();b=b.getCenterY();b=new mxPoint(m,b);g&&(c.x<f||c.x>f+l?b.y=c.y:b.x=c.x);return mxUtils.getPerimeterPoint(A,b,c)};mxStyleRegistry.putValue("parallelogramPerimeter",mxPerimeter.ParallelogramPerimeter);mxPerimeter.TrapezoidPerimeter=function(b,d,c,g){var e="0"!=mxUtils.getValue(d.style,
+"fixedSize","0"),k=e?E.prototype.fixedSize:E.prototype.size;null!=d&&(k=mxUtils.getValue(d.style,"size",k));e&&(k*=d.view.scale);var f=b.x,A=b.y,l=b.width,m=b.height;d=null!=d?mxUtils.getValue(d.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;d==mxConstants.DIRECTION_EAST?(e=e?Math.max(0,Math.min(.5*l,k)):l*Math.max(0,Math.min(1,k)),A=[new mxPoint(f+e,A),new mxPoint(f+l-e,A),new mxPoint(f+l,A+m),new mxPoint(f,A+m),new mxPoint(f+e,A)]):d==mxConstants.DIRECTION_WEST?
+(e=e?Math.max(0,Math.min(l,k)):l*Math.max(0,Math.min(1,k)),A=[new mxPoint(f,A),new mxPoint(f+l,A),new mxPoint(f+l-e,A+m),new mxPoint(f+e,A+m),new mxPoint(f,A)]):d==mxConstants.DIRECTION_NORTH?(e=e?Math.max(0,Math.min(m,k)):m*Math.max(0,Math.min(1,k)),A=[new mxPoint(f,A+e),new mxPoint(f+l,A),new mxPoint(f+l,A+m),new mxPoint(f,A+m-e),new mxPoint(f,A+e)]):(e=e?Math.max(0,Math.min(m,k)):m*Math.max(0,Math.min(1,k)),A=[new mxPoint(f,A),new mxPoint(f+l,A+e),new mxPoint(f+l,A+m-e),new mxPoint(f,A+m),new mxPoint(f,
+A)]);m=b.getCenterX();b=b.getCenterY();b=new mxPoint(m,b);g&&(c.x<f||c.x>f+l?b.y=c.y:b.x=c.x);return mxUtils.getPerimeterPoint(A,b,c)};mxStyleRegistry.putValue("trapezoidPerimeter",mxPerimeter.TrapezoidPerimeter);mxPerimeter.StepPerimeter=function(b,d,c,g){var e="0"!=mxUtils.getValue(d.style,"fixedSize","0"),k=e?M.prototype.fixedSize:M.prototype.size;null!=d&&(k=mxUtils.getValue(d.style,"size",k));e&&(k*=d.view.scale);var f=b.x,A=b.y,l=b.width,m=b.height,p=b.getCenterX();b=b.getCenterY();d=null!=
+d?mxUtils.getValue(d.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;d==mxConstants.DIRECTION_EAST?(e=e?Math.max(0,Math.min(l,k)):l*Math.max(0,Math.min(1,k)),A=[new mxPoint(f,A),new mxPoint(f+l-e,A),new mxPoint(f+l,b),new mxPoint(f+l-e,A+m),new mxPoint(f,A+m),new mxPoint(f+e,b),new mxPoint(f,A)]):d==mxConstants.DIRECTION_WEST?(e=e?Math.max(0,Math.min(l,k)):l*Math.max(0,Math.min(1,k)),A=[new mxPoint(f+e,A),new mxPoint(f+l,A),new mxPoint(f+l-e,b),new mxPoint(f+
+l,A+m),new mxPoint(f+e,A+m),new mxPoint(f,b),new mxPoint(f+e,A)]):d==mxConstants.DIRECTION_NORTH?(e=e?Math.max(0,Math.min(m,k)):m*Math.max(0,Math.min(1,k)),A=[new mxPoint(f,A+e),new mxPoint(p,A),new mxPoint(f+l,A+e),new mxPoint(f+l,A+m),new mxPoint(p,A+m-e),new mxPoint(f,A+m),new mxPoint(f,A+e)]):(e=e?Math.max(0,Math.min(m,k)):m*Math.max(0,Math.min(1,k)),A=[new mxPoint(f,A),new mxPoint(p,A+e),new mxPoint(f+l,A),new mxPoint(f+l,A+m-e),new mxPoint(p,A+m),new mxPoint(f,A+m-e),new mxPoint(f,A)]);p=new mxPoint(p,
+b);g&&(c.x<f||c.x>f+l?p.y=c.y:p.x=c.x);return mxUtils.getPerimeterPoint(A,p,c)};mxStyleRegistry.putValue("stepPerimeter",mxPerimeter.StepPerimeter);mxPerimeter.HexagonPerimeter2=function(b,d,c,g){var e="0"!=mxUtils.getValue(d.style,"fixedSize","0"),k=e?P.prototype.fixedSize:P.prototype.size;null!=d&&(k=mxUtils.getValue(d.style,"size",k));e&&(k*=d.view.scale);var f=b.x,A=b.y,l=b.width,m=b.height,p=b.getCenterX();b=b.getCenterY();d=null!=d?mxUtils.getValue(d.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):
+mxConstants.DIRECTION_EAST;d==mxConstants.DIRECTION_NORTH||d==mxConstants.DIRECTION_SOUTH?(e=e?Math.max(0,Math.min(m,k)):m*Math.max(0,Math.min(1,k)),A=[new mxPoint(p,A),new mxPoint(f+l,A+e),new mxPoint(f+l,A+m-e),new mxPoint(p,A+m),new mxPoint(f,A+m-e),new mxPoint(f,A+e),new mxPoint(p,A)]):(e=e?Math.max(0,Math.min(l,k)):l*Math.max(0,Math.min(1,k)),A=[new mxPoint(f+e,A),new mxPoint(f+l-e,A),new mxPoint(f+l,b),new mxPoint(f+l-e,A+m),new mxPoint(f+e,A+m),new mxPoint(f,b),new mxPoint(f+e,A)]);p=new mxPoint(p,
+b);g&&(c.x<f||c.x>f+l?p.y=c.y:p.x=c.x);return mxUtils.getPerimeterPoint(A,p,c)};mxStyleRegistry.putValue("hexagonPerimeter2",mxPerimeter.HexagonPerimeter2);mxUtils.extend(ka,mxShape);ka.prototype.size=10;ka.prototype.paintBackground=function(b,d,c,g,e){var k=parseFloat(mxUtils.getValue(this.style,"size",this.size));b.translate(d,c);b.ellipse((g-k)/2,0,k,k);b.fillAndStroke();b.begin();b.moveTo(g/2,k);b.lineTo(g/2,e);b.end();b.stroke()};mxCellRenderer.registerShape("lollipop",ka);mxUtils.extend(K,mxShape);
+K.prototype.size=10;K.prototype.inset=2;K.prototype.paintBackground=function(b,d,c,g,e){var k=parseFloat(mxUtils.getValue(this.style,"size",this.size)),f=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;b.translate(d,c);b.begin();b.moveTo(g/2,k+f);b.lineTo(g/2,e);b.end();b.stroke();b.begin();b.moveTo((g-k)/2-f,k/2);b.quadTo((g-k)/2-f,k+f,g/2,k+f);b.quadTo((g+k)/2+f,k+f,(g+k)/2+f,k/2);b.end();b.stroke()};mxCellRenderer.registerShape("requires",K);mxUtils.extend(na,mxShape);
+na.prototype.paintBackground=function(b,d,c,g,e){b.translate(d,c);b.begin();b.moveTo(0,0);b.quadTo(g,0,g,e/2);b.quadTo(g,e,0,e);b.end();b.stroke()};mxCellRenderer.registerShape("requiredInterface",na);mxUtils.extend(qa,mxShape);qa.prototype.inset=2;qa.prototype.paintBackground=function(b,d,c,g,e){var k=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;b.translate(d,c);b.ellipse(0,k,g-2*k,e-2*k);b.fillAndStroke();b.begin();b.moveTo(g/2,0);b.quadTo(g,0,g,e/2);b.quadTo(g,e,
+g/2,e);b.end();b.stroke()};mxCellRenderer.registerShape("providedRequiredInterface",qa);mxUtils.extend(pa,mxCylinder);pa.prototype.jettyWidth=20;pa.prototype.jettyHeight=10;pa.prototype.redrawPath=function(b,d,c,g,e,k){var f=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));d=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));c=f/2;var f=c+f/2,A=Math.min(d,e-d),l=Math.min(A+2*d,e-d);k?(b.moveTo(c,A),b.lineTo(f,A),b.lineTo(f,A+d),b.lineTo(c,A+d),b.moveTo(c,
+l),b.lineTo(f,l),b.lineTo(f,l+d),b.lineTo(c,l+d)):(b.moveTo(c,0),b.lineTo(g,0),b.lineTo(g,e),b.lineTo(c,e),b.lineTo(c,l+d),b.lineTo(0,l+d),b.lineTo(0,l),b.lineTo(c,l),b.lineTo(c,A+d),b.lineTo(0,A+d),b.lineTo(0,A),b.lineTo(c,A),b.close());b.end()};mxCellRenderer.registerShape("module",pa);mxUtils.extend(ha,mxCylinder);ha.prototype.jettyWidth=32;ha.prototype.jettyHeight=12;ha.prototype.redrawPath=function(b,d,c,g,e,k){var f=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));d=parseFloat(mxUtils.getValue(this.style,
+"jettyHeight",this.jettyHeight));c=f/2;var f=c+f/2,A=.3*e-d/2,l=.7*e-d/2;k?(b.moveTo(c,A),b.lineTo(f,A),b.lineTo(f,A+d),b.lineTo(c,A+d),b.moveTo(c,l),b.lineTo(f,l),b.lineTo(f,l+d),b.lineTo(c,l+d)):(b.moveTo(c,0),b.lineTo(g,0),b.lineTo(g,e),b.lineTo(c,e),b.lineTo(c,l+d),b.lineTo(0,l+d),b.lineTo(0,l),b.lineTo(c,l),b.lineTo(c,A+d),b.lineTo(0,A+d),b.lineTo(0,A),b.lineTo(c,A),b.close());b.end()};mxCellRenderer.registerShape("component",ha);mxUtils.extend(sa,mxRectangleShape);sa.prototype.paintForeground=
+function(b,d,c,g,e){var k=g/2,f=e/2,A=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;b.begin();this.addPoints(b,[new mxPoint(d+k,c),new mxPoint(d+g,c+f),new mxPoint(d+k,c+e),new mxPoint(d,c+f)],this.isRounded,A,!0);b.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",sa);mxUtils.extend(Y,mxDoubleEllipse);Y.prototype.outerStroke=!0;Y.prototype.paintVertexShape=function(b,d,c,g,e){var k=Math.min(4,
+Math.min(g/5,e/5));0<g&&0<e&&(b.ellipse(d+k,c+k,g-2*k,e-2*k),b.fillAndStroke());b.setShadow(!1);this.outerStroke&&(b.ellipse(d,c,g,e),b.stroke())};mxCellRenderer.registerShape("endState",Y);mxUtils.extend(Q,Y);Q.prototype.outerStroke=!1;mxCellRenderer.registerShape("startState",Q);mxUtils.extend(ta,mxArrowConnector);ta.prototype.defaultWidth=4;ta.prototype.isOpenEnded=function(){return!0};ta.prototype.getEdgeWidth=function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,
+this.strokewidth-1)};ta.prototype.isArrowRounded=function(){return this.isRounded};mxCellRenderer.registerShape("link",ta);mxUtils.extend(T,mxArrowConnector);T.prototype.defaultWidth=10;T.prototype.defaultArrowWidth=20;T.prototype.getStartArrowWidth=function(){return this.getEdgeWidth()+mxUtils.getNumber(this.style,"startWidth",this.defaultArrowWidth)};T.prototype.getEndArrowWidth=function(){return this.getEdgeWidth()+mxUtils.getNumber(this.style,"endWidth",this.defaultArrowWidth)};T.prototype.getEdgeWidth=
+function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,this.strokewidth-1)};mxCellRenderer.registerShape("flexArrow",T);mxUtils.extend(ja,mxActor);ja.prototype.size=30;ja.prototype.isRoundable=function(){return!0};ja.prototype.redrawPath=function(b,d,c,g,e){d=Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size)));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,e),new mxPoint(0,d),new mxPoint(g,
+0),new mxPoint(g,e)],this.isRounded,c,!0);b.end()};mxCellRenderer.registerShape("manualInput",ja);mxUtils.extend(ma,mxRectangleShape);ma.prototype.dx=20;ma.prototype.dy=20;ma.prototype.isHtmlAllowed=function(){return!1};ma.prototype.paintForeground=function(b,d,c,g,e){mxRectangleShape.prototype.paintForeground.apply(this,arguments);var k=0;if(this.isRounded)var f=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,k=Math.max(k,Math.min(g*f,e*f));f=
+Math.max(k,Math.min(g,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));k=Math.max(k,Math.min(e,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));b.begin();b.moveTo(d,c+k);b.lineTo(d+g,c+k);b.end();b.stroke();b.begin();b.moveTo(d+f,c);b.lineTo(d+f,c+e);b.end();b.stroke()};mxCellRenderer.registerShape("internalStorage",ma);mxUtils.extend(ra,mxActor);ra.prototype.dx=20;ra.prototype.dy=20;ra.prototype.redrawPath=function(b,d,c,g,e){d=Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,
+"dx",this.dx))));c=Math.max(0,Math.min(e,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var k=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,0),new mxPoint(g,0),new mxPoint(g,c),new mxPoint(d,c),new mxPoint(d,e),new mxPoint(0,e)],this.isRounded,k,!0);b.end()};mxCellRenderer.registerShape("corner",ra);mxUtils.extend(S,mxActor);S.prototype.redrawPath=function(b,d,c,g,
+e){b.moveTo(0,0);b.lineTo(0,e);b.end();b.moveTo(g,0);b.lineTo(g,e);b.end();b.moveTo(0,e/2);b.lineTo(g,e/2);b.end()};mxCellRenderer.registerShape("crossbar",S);mxUtils.extend(oa,mxActor);oa.prototype.dx=20;oa.prototype.dy=20;oa.prototype.redrawPath=function(b,d,c,g,e){d=Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));c=Math.max(0,Math.min(e,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var k=mxUtils.getValue(this.style,
+mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,0),new mxPoint(g,0),new mxPoint(g,c),new mxPoint((g+d)/2,c),new mxPoint((g+d)/2,e),new mxPoint((g-d)/2,e),new mxPoint((g-d)/2,c),new mxPoint(0,c)],this.isRounded,k,!0);b.end()};mxCellRenderer.registerShape("tee",oa);mxUtils.extend(da,mxActor);da.prototype.arrowWidth=.3;da.prototype.arrowSize=.2;da.prototype.redrawPath=function(b,d,c,g,e){var k=e*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",
+this.arrowWidth))));d=g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",this.arrowSize))));c=(e-k)/2;var k=c+k,f=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,c),new mxPoint(g-d,c),new mxPoint(g-d,0),new mxPoint(g,e/2),new mxPoint(g-d,e),new mxPoint(g-d,k),new mxPoint(0,k)],this.isRounded,f,!0);b.end()};mxCellRenderer.registerShape("singleArrow",da);mxUtils.extend(Z,mxActor);Z.prototype.redrawPath=function(b,
+d,c,g,e){var k=e*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",da.prototype.arrowWidth))));d=g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",da.prototype.arrowSize))));c=(e-k)/2;var k=c+k,f=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,e/2),new mxPoint(d,0),new mxPoint(d,c),new mxPoint(g-d,c),new mxPoint(g-d,0),new mxPoint(g,e/2),new mxPoint(g-d,e),new mxPoint(g-d,k),new mxPoint(d,
+k),new mxPoint(d,e)],this.isRounded,f,!0);b.end()};mxCellRenderer.registerShape("doubleArrow",Z);mxUtils.extend(la,mxActor);la.prototype.size=.1;la.prototype.fixedSize=20;la.prototype.redrawPath=function(b,d,c,g,e){d="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):g*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));b.moveTo(d,0);b.lineTo(g,0);b.quadTo(g-2*d,e/2,g,e);b.lineTo(d,
+e);b.quadTo(d-2*d,e/2,d,0);b.close();b.end()};mxCellRenderer.registerShape("dataStorage",la);mxUtils.extend(ya,mxActor);ya.prototype.redrawPath=function(b,d,c,g,e){b.moveTo(0,0);b.quadTo(g,0,g,e/2);b.quadTo(g,e,0,e);b.close();b.end()};mxCellRenderer.registerShape("or",ya);mxUtils.extend(za,mxActor);za.prototype.redrawPath=function(b,d,c,g,e){b.moveTo(0,0);b.quadTo(g,0,g,e/2);b.quadTo(g,e,0,e);b.quadTo(g/2,e/2,0,0);b.close();b.end()};mxCellRenderer.registerShape("xor",za);mxUtils.extend(ua,mxActor);
+ua.prototype.size=20;ua.prototype.isRoundable=function(){return!0};ua.prototype.redrawPath=function(b,d,c,g,e){d=Math.min(g/2,Math.min(e,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(d,0),new mxPoint(g-d,0),new mxPoint(g,.8*d),new mxPoint(g,e),new mxPoint(0,e),new mxPoint(0,.8*d)],this.isRounded,c,!0);b.end()};mxCellRenderer.registerShape("loopLimit",ua);mxUtils.extend(fa,
+mxActor);fa.prototype.size=.375;fa.prototype.isRoundable=function(){return!0};fa.prototype.redrawPath=function(b,d,c,g,e){d=e*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(b,[new mxPoint(0,0),new mxPoint(g,0),new mxPoint(g,e-d),new mxPoint(g/2,e),new mxPoint(0,e-d)],this.isRounded,c,!0);b.end()};mxCellRenderer.registerShape("offPageConnector",fa);mxUtils.extend(aa,
+mxEllipse);aa.prototype.paintVertexShape=function(b,d,c,g,e){mxEllipse.prototype.paintVertexShape.apply(this,arguments);b.begin();b.moveTo(d+g/2,c+e);b.lineTo(d+g,c+e);b.end();b.stroke()};mxCellRenderer.registerShape("tapeData",aa);mxUtils.extend(R,mxEllipse);R.prototype.paintVertexShape=function(b,d,c,g,e){mxEllipse.prototype.paintVertexShape.apply(this,arguments);b.setShadow(!1);b.begin();b.moveTo(d,c+e/2);b.lineTo(d+g,c+e/2);b.end();b.stroke();b.begin();b.moveTo(d+g/2,c);b.lineTo(d+g/2,c+e);b.end();
+b.stroke()};mxCellRenderer.registerShape("orEllipse",R);mxUtils.extend(Fa,mxEllipse);Fa.prototype.paintVertexShape=function(b,d,c,g,e){mxEllipse.prototype.paintVertexShape.apply(this,arguments);b.setShadow(!1);b.begin();b.moveTo(d+.145*g,c+.145*e);b.lineTo(d+.855*g,c+.855*e);b.end();b.stroke();b.begin();b.moveTo(d+.855*g,c+.145*e);b.lineTo(d+.145*g,c+.855*e);b.end();b.stroke()};mxCellRenderer.registerShape("sumEllipse",Fa);mxUtils.extend(Ga,mxRhombus);Ga.prototype.paintVertexShape=function(b,d,c,
+g,e){mxRhombus.prototype.paintVertexShape.apply(this,arguments);b.setShadow(!1);b.begin();b.moveTo(d,c+e/2);b.lineTo(d+g,c+e/2);b.end();b.stroke()};mxCellRenderer.registerShape("sortShape",Ga);mxUtils.extend(wa,mxEllipse);wa.prototype.paintVertexShape=function(b,d,c,g,e){b.begin();b.moveTo(d,c);b.lineTo(d+g,c);b.lineTo(d+g/2,c+e/2);b.close();b.fillAndStroke();b.begin();b.moveTo(d,c+e);b.lineTo(d+g,c+e);b.lineTo(d+g/2,c+e/2);b.close();b.fillAndStroke()};mxCellRenderer.registerShape("collate",wa);mxUtils.extend(Aa,
+mxEllipse);Aa.prototype.paintVertexShape=function(b,d,c,g,e){var k=b.state.strokeWidth/2,f=10+2*k,l=c+e-f/2;b.begin();b.moveTo(d,c);b.lineTo(d,c+e);b.moveTo(d+k,l);b.lineTo(d+k+f,l-f/2);b.moveTo(d+k,l);b.lineTo(d+k+f,l+f/2);b.moveTo(d+k,l);b.lineTo(d+g-k,l);b.moveTo(d+g,c);b.lineTo(d+g,c+e);b.moveTo(d+g-k,l);b.lineTo(d+g-f-k,l-f/2);b.moveTo(d+g-k,l);b.lineTo(d+g-f-k,l+f/2);b.end();b.stroke()};mxCellRenderer.registerShape("dimension",Aa);mxUtils.extend(xa,mxEllipse);xa.prototype.drawHidden=!0;xa.prototype.paintVertexShape=
+function(b,d,c,g,e){this.outline||b.setStrokeColor(null);if(null!=this.style){var k=b.pointerEvents,f=null!=this.fill&&this.fill!=mxConstants.NONE;"1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||f||(b.pointerEvents=!1);var l="1"==mxUtils.getValue(this.style,"top","1"),m="1"==mxUtils.getValue(this.style,"left","1"),A="1"==mxUtils.getValue(this.style,"right","1"),p="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||f||this.outline||l||A||p||m?(b.rect(d,c,g,e),b.fill(),
+b.pointerEvents=k,b.setStrokeColor(this.stroke),b.setLineCap("square"),b.begin(),b.moveTo(d,c),this.outline||l?b.lineTo(d+g,c):b.moveTo(d+g,c),this.outline||A?b.lineTo(d+g,c+e):b.moveTo(d+g,c+e),this.outline||p?b.lineTo(d,c+e):b.moveTo(d,c+e),(this.outline||m)&&b.lineTo(d,c),b.end(),b.stroke(),b.setLineCap("flat")):b.setStrokeColor(this.stroke)}};mxCellRenderer.registerShape("partialRectangle",xa);mxUtils.extend(Ba,mxEllipse);Ba.prototype.paintVertexShape=function(b,d,c,g,e){mxEllipse.prototype.paintVertexShape.apply(this,
+arguments);b.setShadow(!1);b.begin();"vertical"==mxUtils.getValue(this.style,"line")?(b.moveTo(d+g/2,c),b.lineTo(d+g/2,c+e)):(b.moveTo(d,c+e/2),b.lineTo(d+g,c+e/2));b.end();b.stroke()};mxCellRenderer.registerShape("lineEllipse",Ba);mxUtils.extend(Ha,mxActor);Ha.prototype.redrawPath=function(b,d,c,g,e){d=Math.min(g,e/2);b.moveTo(0,0);b.lineTo(g-d,0);b.quadTo(g,0,g,e/2);b.quadTo(g,e,g-d,e);b.lineTo(0,e);b.close();b.end()};mxCellRenderer.registerShape("delay",Ha);mxUtils.extend(Ca,mxActor);Ca.prototype.size=
+.2;Ca.prototype.redrawPath=function(b,d,c,g,e){d=Math.min(e,g);var k=Math.max(0,Math.min(d,d*parseFloat(mxUtils.getValue(this.style,"size",this.size))));d=(e-k)/2;c=d+k;var f=(g-k)/2,k=f+k;b.moveTo(0,d);b.lineTo(f,d);b.lineTo(f,0);b.lineTo(k,0);b.lineTo(k,d);b.lineTo(g,d);b.lineTo(g,c);b.lineTo(k,c);b.lineTo(k,e);b.lineTo(f,e);b.lineTo(f,c);b.lineTo(0,c);b.close();b.end()};mxCellRenderer.registerShape("cross",Ca);mxUtils.extend(Da,mxActor);Da.prototype.size=.25;Da.prototype.redrawPath=function(b,
+d,c,g,e){d=Math.min(g,e/2);c=Math.min(g-d,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*g);b.moveTo(0,e/2);b.lineTo(c,0);b.lineTo(g-d,0);b.quadTo(g,0,g,e/2);b.quadTo(g,e,g-d,e);b.lineTo(c,e);b.close();b.end()};mxCellRenderer.registerShape("display",Da);mxUtils.extend(U,mxActor);U.prototype.cst={RECT2:"mxgraph.basic.rect"};U.prototype.customProperties=[{name:"rectStyle",dispName:"Style",type:"enum",defVal:"square",enumList:[{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},
{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]},{name:"size",dispName:"Corner Size",type:"float",defVal:10},{name:"absoluteCornerSize",dispName:"Abs. Corner Size",type:"bool",defVal:!0},{name:"indent",dispName:"Indent",type:"float",defVal:2},{name:"rectOutline",dispName:"Outline",type:"enum",defVal:"single",enumList:[{val:"single",dispName:"Single"},{val:"double",dispName:"Double"},{val:"frame",dispName:"Frame"}]},{name:"fillColor2",dispName:"Inside Fill Color",
type:"color",defVal:"none"},{name:"gradientColor2",dispName:"Inside Gradient Color",type:"color",defVal:"none"},{name:"gradientDirection2",dispName:"Inside Gradient Direction",type:"enum",defVal:"south",enumList:[{val:"south",dispName:"South"},{val:"west",dispName:"West"},{val:"north",dispName:"North"},{val:"east",dispName:"East"}]},{name:"top",dispName:"Top Line",type:"bool",defVal:!0},{name:"right",dispName:"Right",type:"bool",defVal:!0},{name:"bottom",dispName:"Bottom Line",type:"bool",defVal:!0},
{name:"left",dispName:"Left ",type:"bool",defVal:!0},{name:"topLeftStyle",dispName:"Top Left Style",type:"enum",defVal:"default",enumList:[{val:"default",dispName:"Default"},{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]},{name:"topRightStyle",dispName:"Top Right Style",type:"enum",defVal:"default",enumList:[{val:"default",dispName:"Default"},{val:"square",dispName:"Square"},{val:"rounded",
dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]},{name:"bottomRightStyle",dispName:"Bottom Right Style",type:"enum",defVal:"default",enumList:[{val:"default",dispName:"Default"},{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]},{name:"bottomLeftStyle",dispName:"Bottom Left Style",type:"enum",defVal:"default",enumList:[{val:"default",
dispName:"Default"},{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]}];U.prototype.paintVertexShape=function(b,d,c,g,e){b.translate(d,c);this.strictDrawShape(b,0,0,g,e)};U.prototype.strictDrawShape=function(b,d,c,g,e,k){var f=k&&k.rectStyle?k.rectStyle:mxUtils.getValue(this.style,"rectStyle",this.rectStyle),l=k&&k.absoluteCornerSize?k.absoluteCornerSize:mxUtils.getValue(this.style,"absoluteCornerSize",
-this.absoluteCornerSize),m=k&&k.size?k.size:Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),p=k&&k.rectOutline?k.rectOutline:mxUtils.getValue(this.style,"rectOutline",this.rectOutline),x=k&&k.indent?k.indent:Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"indent",this.indent)))),v=k&&k.dashed?k.dashed:mxUtils.getValue(this.style,"dashed",!1),B=k&&k.dashPattern?k.dashPattern:mxUtils.getValue(this.style,"dashPattern",null),n=k&&k.relIndent?k.relIndent:
-Math.max(0,Math.min(50,x)),t=k&&k.top?k.top:mxUtils.getValue(this.style,"top",!0),u=k&&k.right?k.right:mxUtils.getValue(this.style,"right",!0),y=k&&k.bottom?k.bottom:mxUtils.getValue(this.style,"bottom",!0),C=k&&k.left?k.left:mxUtils.getValue(this.style,"left",!0),z=k&&k.topLeftStyle?k.topLeftStyle:mxUtils.getValue(this.style,"topLeftStyle","default"),J=k&&k.topRightStyle?k.topRightStyle:mxUtils.getValue(this.style,"topRightStyle","default"),q=k&&k.bottomRightStyle?k.bottomRightStyle:mxUtils.getValue(this.style,
-"bottomRightStyle","default"),A=k&&k.bottomLeftStyle?k.bottomLeftStyle:mxUtils.getValue(this.style,"bottomLeftStyle","default"),da=k&&k.fillColor?k.fillColor:mxUtils.getValue(this.style,"fillColor","#ffffff");k&&k.strokeColor||mxUtils.getValue(this.style,"strokeColor","#000000");var K=k&&k.strokeWidth?k.strokeWidth:mxUtils.getValue(this.style,"strokeWidth","1"),V=k&&k.fillColor2?k.fillColor2:mxUtils.getValue(this.style,"fillColor2","none"),ca=k&&k.gradientColor2?k.gradientColor2:mxUtils.getValue(this.style,
-"gradientColor2","none"),aa=k&&k.gradientDirection2?k.gradientDirection2:mxUtils.getValue(this.style,"gradientDirection2","south"),Ja=k&&k.opacity?k.opacity:mxUtils.getValue(this.style,"opacity","100"),wa=Math.max(0,Math.min(50,m));k=U.prototype;b.setDashed(v);B&&""!=B&&b.setDashPattern(B);b.setStrokeWidth(K);m=Math.min(.5*e,.5*g,m);l||(m=wa*Math.min(g,e)/100);m=Math.min(m,.5*Math.min(g,e));l||(x=Math.min(n*Math.min(g,e)/100));x=Math.min(x,.5*Math.min(g,e)-m);(t||u||y||C)&&"frame"!=p&&(b.begin(),
-t?k.moveNW(b,d,c,g,e,f,z,m,C):b.moveTo(0,0),t&&k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),u&&k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),y&&k.paintSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),C&&k.paintSW(b,d,c,g,e,f,A,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),b.close(),b.fill(),b.setShadow(!1),b.setFillColor(V),v=l=Ja,"none"==V&&(l=0),"none"==ca&&(v=0),b.setGradient(V,ca,0,0,g,e,aa,l,v),b.begin(),t?k.moveNWInner(b,d,c,g,e,f,z,m,x,t,C):b.moveTo(x,0),k.paintLeftInner(b,
-d,c,g,e,f,A,m,x,y,C),C&&y&&k.paintSWInner(b,d,c,g,e,f,A,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y),y&&u&&k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u),u&&t&&k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),t&&C&&k.paintNWInner(b,d,c,g,e,f,z,m,x),b.fill(),"none"==da&&(b.begin(),k.paintFolds(b,d,c,g,e,f,z,J,q,A,m,t,u,y,C),b.stroke()));t||u||y||!C?t||u||!y||C?!t&&!u&&y&&C?"frame"!=p?(b.begin(),k.moveSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,
-g,e,f,A,m,C),k.paintSW(b,d,c,g,e,f,A,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),"double"==p&&(k.moveNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C),k.paintSWInner(b,d,c,g,e,f,A,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y)),b.stroke()):(b.begin(),k.moveSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),k.paintSW(b,d,c,g,e,f,A,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.lineNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C),k.paintSWInner(b,d,c,g,e,f,A,m,x,y),k.paintBottomInner(b,
-d,c,g,e,f,q,m,x,u,y),b.close(),b.fillAndStroke()):t||!u||y||C?!t&&u&&!y&&C?"frame"!=p?(b.begin(),k.moveSW(b,d,c,g,e,f,z,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),"double"==p&&(k.moveNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C)),b.stroke(),b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),"double"==p&&(k.moveSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u)),b.stroke()):(b.begin(),k.moveSW(b,d,c,g,e,f,z,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),
-k.lineNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C),b.close(),b.fillAndStroke(),b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.lineSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u),b.close(),b.fillAndStroke()):!t&&u&&y&&!C?"frame"!=p?(b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),"double"==p&&(k.moveSWInner(b,d,c,g,e,f,A,m,x,C),k.paintBottomInner(b,
-d,c,g,e,f,q,m,x,u,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u)),b.stroke()):(b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),k.lineSWInner(b,d,c,g,e,f,A,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u),b.close(),b.fillAndStroke()):!t&&u&&y&&C?"frame"!=p?(b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,
-c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),k.paintSW(b,d,c,g,e,f,A,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),"double"==p&&(k.moveNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C),k.paintSWInner(b,d,c,g,e,f,A,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u)),b.stroke()):(b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,
-d,c,g,e,f,A,m,C),k.paintSW(b,d,c,g,e,f,A,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.lineNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C),k.paintSWInner(b,d,c,g,e,f,A,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u),b.close(),b.fillAndStroke()):!t||u||y||C?t&&!u&&!y&&C?"frame"!=p?(b.begin(),k.moveSW(b,d,c,g,e,f,A,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),
-"double"==p&&(k.moveNEInner(b,d,c,g,e,f,J,m,x,u),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C)),b.stroke()):(b.begin(),k.moveSW(b,d,c,g,e,f,A,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),k.lineNEInner(b,d,c,g,e,f,J,m,x,u),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C),b.close(),b.fillAndStroke()):t&&!u&&y&&!C?"frame"!=
-p?(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),"double"==p&&(k.moveNEInner(b,d,c,g,e,f,J,m,x,u),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t)),b.stroke(),b.begin(),k.moveSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),"double"==p&&(k.moveSWInner(b,d,c,g,e,f,A,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y)),b.stroke()):(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),k.lineNEInner(b,d,c,g,e,f,J,m,x,u),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),b.close(),b.fillAndStroke(),
-b.begin(),k.moveSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),k.lineSWInner(b,d,c,g,e,f,A,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y),b.close(),b.fillAndStroke()):t&&!u&&y&&C?"frame"!=p?(b.begin(),k.moveSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),k.paintSW(b,d,c,g,e,f,A,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),"double"==p&&(k.moveNEInner(b,d,c,g,e,f,J,m,x,u),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,
-e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C),k.paintSWInner(b,d,c,g,e,f,A,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y)),b.stroke()):(b.begin(),k.moveSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),k.paintSW(b,d,c,g,e,f,A,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),k.lineNEInner(b,d,c,g,e,f,J,m,x,u),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C),k.paintSWInner(b,d,c,
-g,e,f,A,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y),b.close(),b.fillAndStroke()):t&&u&&!y&&!C?"frame"!=p?(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),"double"==p&&(k.moveSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t)),b.stroke()):(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),k.paintNE(b,d,c,
-g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.lineSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),b.close(),b.fillAndStroke()):t&&u&&!y&&C?"frame"!=p?(b.begin(),k.moveSW(b,d,c,g,e,f,A,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),"double"==p&&(k.moveSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,
-d,c,g,e,f,J,m,x,t,u),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C)),b.stroke()):(b.begin(),k.moveSW(b,d,c,g,e,f,A,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.lineSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,
-c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C),b.close(),b.fillAndStroke()):t&&u&&y&&!C?"frame"!=p?(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),"double"==p&&(k.moveSWInner(b,d,c,g,e,f,A,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u),
-k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t)),b.stroke()):(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),k.lineSWInner(b,d,c,g,e,f,A,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),
-b.close(),b.fillAndStroke()):t&&u&&y&&C&&("frame"!=p?(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),k.paintSW(b,d,c,g,e,f,A,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),b.close(),"double"==p&&(k.moveSWInner(b,d,c,g,e,f,A,m,x,C),k.paintSWInner(b,d,c,g,e,f,A,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y),k.paintSEInner(b,d,c,g,e,f,q,m,
-x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C),b.close()),b.stroke()):(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),k.paintSW(b,d,c,g,e,f,A,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),b.close(),
-k.moveSWInner(b,d,c,g,e,f,A,m,x,C),k.paintSWInner(b,d,c,g,e,f,A,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C),b.close(),b.fillAndStroke())):"frame"!=p?(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),"double"==p&&(k.moveNEInner(b,d,c,g,e,f,J,m,x,u),k.paintTopInner(b,
-d,c,g,e,f,z,m,x,C,t)),b.stroke()):(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,u),k.lineNEInner(b,d,c,g,e,f,J,m,x,u),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),b.close(),b.fillAndStroke()):"frame"!=p?(b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),"double"==p&&(k.moveSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,u)),b.stroke()):(b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.lineSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,
-d,c,g,e,f,J,m,x,t,u),b.close(),b.fillAndStroke()):"frame"!=p?(b.begin(),k.moveSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),"double"==p&&(k.moveSWInner(b,d,c,g,e,f,A,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y)),b.stroke()):(b.begin(),k.moveSE(b,d,c,g,e,f,q,m,u),k.paintBottom(b,d,c,g,e,f,A,m,C),k.lineSWInner(b,d,c,g,e,f,A,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,u,y),b.close(),b.fillAndStroke()):"frame"!=p?(b.begin(),k.moveSW(b,d,c,g,e,f,z,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),"double"==
-p&&(k.moveNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C)),b.stroke()):(b.begin(),k.moveSW(b,d,c,g,e,f,z,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.lineNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,A,m,x,y,C),b.close(),b.fillAndStroke());b.begin();k.paintFolds(b,d,c,g,e,f,z,J,q,A,m,t,u,y,C);b.stroke()};U.prototype.moveNW=function(b,d,c,g,e,k,f,m,l){"square"==f||"default"==f&&"square"==k||!l?b.moveTo(0,0):b.moveTo(0,m)};U.prototype.moveNE=function(b,d,c,g,e,k,f,m,l){"square"==
+this.absoluteCornerSize),m=k&&k.size?k.size:Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),p=k&&k.rectOutline?k.rectOutline:mxUtils.getValue(this.style,"rectOutline",this.rectOutline),x=k&&k.indent?k.indent:Math.max(0,Math.min(g,parseFloat(mxUtils.getValue(this.style,"indent",this.indent)))),u=k&&k.dashed?k.dashed:mxUtils.getValue(this.style,"dashed",!1),A=k&&k.dashPattern?k.dashPattern:mxUtils.getValue(this.style,"dashPattern",null),n=k&&k.relIndent?k.relIndent:
+Math.max(0,Math.min(50,x)),t=k&&k.top?k.top:mxUtils.getValue(this.style,"top",!0),v=k&&k.right?k.right:mxUtils.getValue(this.style,"right",!0),y=k&&k.bottom?k.bottom:mxUtils.getValue(this.style,"bottom",!0),C=k&&k.left?k.left:mxUtils.getValue(this.style,"left",!0),z=k&&k.topLeftStyle?k.topLeftStyle:mxUtils.getValue(this.style,"topLeftStyle","default"),J=k&&k.topRightStyle?k.topRightStyle:mxUtils.getValue(this.style,"topRightStyle","default"),q=k&&k.bottomRightStyle?k.bottomRightStyle:mxUtils.getValue(this.style,
+"bottomRightStyle","default"),K=k&&k.bottomLeftStyle?k.bottomLeftStyle:mxUtils.getValue(this.style,"bottomLeftStyle","default"),B=k&&k.fillColor?k.fillColor:mxUtils.getValue(this.style,"fillColor","#ffffff");k&&k.strokeColor||mxUtils.getValue(this.style,"strokeColor","#000000");var M=k&&k.strokeWidth?k.strokeWidth:mxUtils.getValue(this.style,"strokeWidth","1"),X=k&&k.fillColor2?k.fillColor2:mxUtils.getValue(this.style,"fillColor2","none"),ca=k&&k.gradientColor2?k.gradientColor2:mxUtils.getValue(this.style,
+"gradientColor2","none"),Ja=k&&k.gradientDirection2?k.gradientDirection2:mxUtils.getValue(this.style,"gradientDirection2","south"),va=k&&k.opacity?k.opacity:mxUtils.getValue(this.style,"opacity","100"),ka=Math.max(0,Math.min(50,m));k=U.prototype;b.setDashed(u);A&&""!=A&&b.setDashPattern(A);b.setStrokeWidth(M);m=Math.min(.5*e,.5*g,m);l||(m=ka*Math.min(g,e)/100);m=Math.min(m,.5*Math.min(g,e));l||(x=Math.min(n*Math.min(g,e)/100));x=Math.min(x,.5*Math.min(g,e)-m);(t||v||y||C)&&"frame"!=p&&(b.begin(),
+t?k.moveNW(b,d,c,g,e,f,z,m,C):b.moveTo(0,0),t&&k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),v&&k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),y&&k.paintSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),C&&k.paintSW(b,d,c,g,e,f,K,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),b.close(),b.fill(),b.setShadow(!1),b.setFillColor(X),u=l=va,"none"==X&&(l=0),"none"==ca&&(u=0),b.setGradient(X,ca,0,0,g,e,Ja,l,u),b.begin(),t?k.moveNWInner(b,d,c,g,e,f,z,m,x,t,C):b.moveTo(x,0),k.paintLeftInner(b,
+d,c,g,e,f,K,m,x,y,C),C&&y&&k.paintSWInner(b,d,c,g,e,f,K,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y),y&&v&&k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v),v&&t&&k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),t&&C&&k.paintNWInner(b,d,c,g,e,f,z,m,x),b.fill(),"none"==B&&(b.begin(),k.paintFolds(b,d,c,g,e,f,z,J,q,K,m,t,v,y,C),b.stroke()));t||v||y||!C?t||v||!y||C?!t&&!v&&y&&C?"frame"!=p?(b.begin(),k.moveSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,
+e,f,K,m,C),k.paintSW(b,d,c,g,e,f,K,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),"double"==p&&(k.moveNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C),k.paintSWInner(b,d,c,g,e,f,K,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y)),b.stroke()):(b.begin(),k.moveSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),k.paintSW(b,d,c,g,e,f,K,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.lineNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C),k.paintSWInner(b,d,c,g,e,f,K,m,x,y),k.paintBottomInner(b,
+d,c,g,e,f,q,m,x,v,y),b.close(),b.fillAndStroke()):t||!v||y||C?!t&&v&&!y&&C?"frame"!=p?(b.begin(),k.moveSW(b,d,c,g,e,f,z,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),"double"==p&&(k.moveNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C)),b.stroke(),b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),"double"==p&&(k.moveSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v)),b.stroke()):(b.begin(),k.moveSW(b,d,c,g,e,f,z,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),
+k.lineNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C),b.close(),b.fillAndStroke(),b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.lineSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v),b.close(),b.fillAndStroke()):!t&&v&&y&&!C?"frame"!=p?(b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),"double"==p&&(k.moveSWInner(b,d,c,g,e,f,K,m,x,C),k.paintBottomInner(b,
+d,c,g,e,f,q,m,x,v,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v)),b.stroke()):(b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),k.lineSWInner(b,d,c,g,e,f,K,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v),b.close(),b.fillAndStroke()):!t&&v&&y&&C?"frame"!=p?(b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,
+c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),k.paintSW(b,d,c,g,e,f,K,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),"double"==p&&(k.moveNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C),k.paintSWInner(b,d,c,g,e,f,K,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v)),b.stroke()):(b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,
+d,c,g,e,f,K,m,C),k.paintSW(b,d,c,g,e,f,K,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.lineNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C),k.paintSWInner(b,d,c,g,e,f,K,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v),b.close(),b.fillAndStroke()):!t||v||y||C?t&&!v&&!y&&C?"frame"!=p?(b.begin(),k.moveSW(b,d,c,g,e,f,K,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),
+"double"==p&&(k.moveNEInner(b,d,c,g,e,f,J,m,x,v),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C)),b.stroke()):(b.begin(),k.moveSW(b,d,c,g,e,f,K,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),k.lineNEInner(b,d,c,g,e,f,J,m,x,v),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C),b.close(),b.fillAndStroke()):t&&!v&&y&&!C?"frame"!=
+p?(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),"double"==p&&(k.moveNEInner(b,d,c,g,e,f,J,m,x,v),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t)),b.stroke(),b.begin(),k.moveSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),"double"==p&&(k.moveSWInner(b,d,c,g,e,f,K,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y)),b.stroke()):(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),k.lineNEInner(b,d,c,g,e,f,J,m,x,v),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),b.close(),b.fillAndStroke(),
+b.begin(),k.moveSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),k.lineSWInner(b,d,c,g,e,f,K,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y),b.close(),b.fillAndStroke()):t&&!v&&y&&C?"frame"!=p?(b.begin(),k.moveSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),k.paintSW(b,d,c,g,e,f,K,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),"double"==p&&(k.moveNEInner(b,d,c,g,e,f,J,m,x,v),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,
+e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C),k.paintSWInner(b,d,c,g,e,f,K,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y)),b.stroke()):(b.begin(),k.moveSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),k.paintSW(b,d,c,g,e,f,K,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),k.lineNEInner(b,d,c,g,e,f,J,m,x,v),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C),k.paintSWInner(b,d,c,
+g,e,f,K,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y),b.close(),b.fillAndStroke()):t&&v&&!y&&!C?"frame"!=p?(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),"double"==p&&(k.moveSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t)),b.stroke()):(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),k.paintNE(b,d,c,
+g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.lineSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),b.close(),b.fillAndStroke()):t&&v&&!y&&C?"frame"!=p?(b.begin(),k.moveSW(b,d,c,g,e,f,K,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),"double"==p&&(k.moveSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,
+d,c,g,e,f,J,m,x,t,v),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C)),b.stroke()):(b.begin(),k.moveSW(b,d,c,g,e,f,K,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.lineSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,
+c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C),b.close(),b.fillAndStroke()):t&&v&&y&&!C?"frame"!=p?(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),"double"==p&&(k.moveSWInner(b,d,c,g,e,f,K,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v),
+k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t)),b.stroke()):(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),k.lineSWInner(b,d,c,g,e,f,K,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),
+b.close(),b.fillAndStroke()):t&&v&&y&&C&&("frame"!=p?(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),k.paintSW(b,d,c,g,e,f,K,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),b.close(),"double"==p&&(k.moveSWInner(b,d,c,g,e,f,K,m,x,C),k.paintSWInner(b,d,c,g,e,f,K,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y),k.paintSEInner(b,d,c,g,e,f,q,m,
+x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C),b.close()),b.stroke()):(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),k.paintNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.paintSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),k.paintSW(b,d,c,g,e,f,K,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),b.close(),
+k.moveSWInner(b,d,c,g,e,f,K,m,x,C),k.paintSWInner(b,d,c,g,e,f,K,m,x,y),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y),k.paintSEInner(b,d,c,g,e,f,q,m,x),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v),k.paintNEInner(b,d,c,g,e,f,J,m,x),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),k.paintNWInner(b,d,c,g,e,f,z,m,x),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C),b.close(),b.fillAndStroke())):"frame"!=p?(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),"double"==p&&(k.moveNEInner(b,d,c,g,e,f,J,m,x,v),k.paintTopInner(b,
+d,c,g,e,f,z,m,x,C,t)),b.stroke()):(b.begin(),k.moveNW(b,d,c,g,e,f,z,m,C),k.paintTop(b,d,c,g,e,f,J,m,v),k.lineNEInner(b,d,c,g,e,f,J,m,x,v),k.paintTopInner(b,d,c,g,e,f,z,m,x,C,t),b.close(),b.fillAndStroke()):"frame"!=p?(b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),"double"==p&&(k.moveSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,d,c,g,e,f,J,m,x,t,v)),b.stroke()):(b.begin(),k.moveNE(b,d,c,g,e,f,J,m,t),k.paintRight(b,d,c,g,e,f,q,m,y),k.lineSEInner(b,d,c,g,e,f,q,m,x,y),k.paintRightInner(b,
+d,c,g,e,f,J,m,x,t,v),b.close(),b.fillAndStroke()):"frame"!=p?(b.begin(),k.moveSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),"double"==p&&(k.moveSWInner(b,d,c,g,e,f,K,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y)),b.stroke()):(b.begin(),k.moveSE(b,d,c,g,e,f,q,m,v),k.paintBottom(b,d,c,g,e,f,K,m,C),k.lineSWInner(b,d,c,g,e,f,K,m,x,C),k.paintBottomInner(b,d,c,g,e,f,q,m,x,v,y),b.close(),b.fillAndStroke()):"frame"!=p?(b.begin(),k.moveSW(b,d,c,g,e,f,z,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),"double"==
+p&&(k.moveNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C)),b.stroke()):(b.begin(),k.moveSW(b,d,c,g,e,f,z,m,y),k.paintLeft(b,d,c,g,e,f,z,m,t),k.lineNWInner(b,d,c,g,e,f,z,m,x,t,C),k.paintLeftInner(b,d,c,g,e,f,K,m,x,y,C),b.close(),b.fillAndStroke());b.begin();k.paintFolds(b,d,c,g,e,f,z,J,q,K,m,t,v,y,C);b.stroke()};U.prototype.moveNW=function(b,d,c,g,e,k,f,m,l){"square"==f||"default"==f&&"square"==k||!l?b.moveTo(0,0):b.moveTo(0,m)};U.prototype.moveNE=function(b,d,c,g,e,k,f,m,l){"square"==
f||"default"==f&&"square"==k||!l?b.moveTo(g,0):b.moveTo(g-m,0)};U.prototype.moveSE=function(b,d,c,g,e,k,f,m,l){"square"==f||"default"==f&&"square"==k||!l?b.moveTo(g,e):b.moveTo(g,e-m)};U.prototype.moveSW=function(b,d,c,g,e,k,f,m,l){"square"==f||"default"==f&&"square"==k||!l?b.moveTo(0,e):b.moveTo(m,e)};U.prototype.paintNW=function(b,d,c,g,e,k,f,m,l){if(l)if("rounded"==f||"default"==f&&"rounded"==k||"invRound"==f||"default"==f&&"invRound"==k){d=0;if("rounded"==f||"default"==f&&"rounded"==k)d=1;b.arcTo(m,
m,0,0,d,m,0)}else("snip"==f||"default"==f&&"snip"==k||"fold"==f||"default"==f&&"fold"==k)&&b.lineTo(m,0);else b.lineTo(0,0)};U.prototype.paintTop=function(b,d,c,g,e,k,f,m,l){"square"==f||"default"==f&&"square"==k||!l?b.lineTo(g,0):b.lineTo(g-m,0)};U.prototype.paintNE=function(b,d,c,g,e,k,f,m,l){if(l)if("rounded"==f||"default"==f&&"rounded"==k||"invRound"==f||"default"==f&&"invRound"==k){d=0;if("rounded"==f||"default"==f&&"rounded"==k)d=1;b.arcTo(m,m,0,0,d,g,m)}else("snip"==f||"default"==f&&"snip"==
k||"fold"==f||"default"==f&&"fold"==k)&&b.lineTo(g,m);else b.lineTo(g,0)};U.prototype.paintRight=function(b,d,c,g,e,k,f,m,l){"square"==f||"default"==f&&"square"==k||!l?b.lineTo(g,e):b.lineTo(g,e-m)};U.prototype.paintLeft=function(b,d,c,g,e,k,f,m,l){"square"==f||"default"==f&&"square"==k||!l?b.lineTo(0,0):b.lineTo(0,m)};U.prototype.paintSE=function(b,d,c,g,e,k,f,m,l){if(l)if("rounded"==f||"default"==f&&"rounded"==k||"invRound"==f||"default"==f&&"invRound"==k){d=0;if("rounded"==f||"default"==f&&"rounded"==
@@ -2900,22 +2900,22 @@ function(b,d,c,g,e,k,f,m,l,p){p?"square"==f||"default"==f&&"square"==k?b.moveTo(
l,e-m-.5*l):("invRound"==f||"default"==f&&"invRound"==k||"fold"==f||"default"==f&&"fold"==k)&&b.lineTo(g-l,e-m-l):b.lineTo(g-l,e)};U.prototype.moveNEInner=function(b,d,c,g,e,k,f,m,l,p){p?"square"==f||"default"==f&&"square"==k||p?b.moveTo(g-l,l):"rounded"==f||"default"==f&&"rounded"==k||"snip"==f||"default"==f&&"snip"==k?b.moveTo(g-l,m+.5*l):("invRound"==f||"default"==f&&"invRound"==k||"fold"==f||"default"==f&&"fold"==k)&&b.moveTo(g-l,m+l):b.moveTo(g,l)};U.prototype.lineNEInner=function(b,d,c,g,e,
k,f,m,l,p){p?"square"==f||"default"==f&&"square"==k||p?b.lineTo(g-l,l):"rounded"==f||"default"==f&&"rounded"==k||"snip"==f||"default"==f&&"snip"==k?b.lineTo(g-l,m+.5*l):("invRound"==f||"default"==f&&"invRound"==k||"fold"==f||"default"==f&&"fold"==k)&&b.lineTo(g-l,m+l):b.lineTo(g,l)};U.prototype.moveNWInner=function(b,d,c,g,e,k,f,m,l,p,x){p||x?!p&&x?b.moveTo(l,0):p&&!x?b.moveTo(0,l):"square"==f||"default"==f&&"square"==k?b.moveTo(l,l):"rounded"==f||"default"==f&&"rounded"==k||"snip"==f||"default"==
f&&"snip"==k?b.moveTo(l,m+.5*l):("invRound"==f||"default"==f&&"invRound"==k||"fold"==f||"default"==f&&"fold"==k)&&b.moveTo(l,m+l):b.moveTo(0,0)};U.prototype.lineNWInner=function(b,d,c,g,e,k,f,m,l,p,x){p||x?!p&&x?b.lineTo(l,0):p&&!x?b.lineTo(0,l):"square"==f||"default"==f&&"square"==k?b.lineTo(l,l):"rounded"==f||"default"==f&&"rounded"==k||"snip"==f||"default"==f&&"snip"==k?b.lineTo(l,m+.5*l):("invRound"==f||"default"==f&&"invRound"==k||"fold"==f||"default"==f&&"fold"==k)&&b.lineTo(l,m+l):b.lineTo(0,
-0)};U.prototype.paintFolds=function(b,d,c,g,e,k,f,m,l,p,x,v,t,n,u){if("fold"==k||"fold"==f||"fold"==m||"fold"==l||"fold"==p)("fold"==f||"default"==f&&"fold"==k)&&v&&u&&(b.moveTo(0,x),b.lineTo(x,x),b.lineTo(x,0)),("fold"==m||"default"==m&&"fold"==k)&&v&&t&&(b.moveTo(g-x,0),b.lineTo(g-x,x),b.lineTo(g,x)),("fold"==l||"default"==l&&"fold"==k)&&n&&t&&(b.moveTo(g-x,e),b.lineTo(g-x,e-x),b.lineTo(g,e-x)),("fold"==p||"default"==p&&"fold"==k)&&n&&u&&(b.moveTo(0,e-x),b.lineTo(x,e-x),b.lineTo(x,e))};mxCellRenderer.registerShape(U.prototype.cst.RECT2,
-U);U.prototype.constraints=null;mxUtils.extend(Fa,mxConnector);Fa.prototype.origPaintEdgeShape=Fa.prototype.paintEdgeShape;Fa.prototype.paintEdgeShape=function(b,d,c){for(var g=[],e=0;e<d.length;e++)g.push(mxUtils.clone(d[e]));var e=b.state.dashed,k=b.state.fixDash;Fa.prototype.origPaintEdgeShape.apply(this,[b,g,c]);3<=b.state.strokeWidth&&(g=mxUtils.getValue(this.style,"fillColor",null),null!=g&&(b.setStrokeColor(g),b.setStrokeWidth(b.state.strokeWidth-2),b.setDashed(e,k),Fa.prototype.origPaintEdgeShape.apply(this,
-[b,d,c])))};mxCellRenderer.registerShape("filledEdge",Fa);"undefined"!==typeof StyleFormatPanel&&function(){var b=StyleFormatPanel.prototype.getCustomColors;StyleFormatPanel.prototype.getCustomColors=function(){var d=this.editorUi.getSelectionState(),c=b.apply(this,arguments);"umlFrame"==d.style.shape&&c.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return c}}();mxMarker.addMarker("dash",function(b,d,c,g,e,k,f,m,l,p){var x=e*(f+l+1),v=k*(f+l+1);return function(){b.begin();
-b.moveTo(g.x-x/2-v/2,g.y-v/2+x/2);b.lineTo(g.x+v/2-3*x/2,g.y-3*v/2-x/2);b.stroke()}});mxMarker.addMarker("box",function(b,d,c,g,e,k,f,m,l,p){var x=e*(f+l+1),v=k*(f+l+1),t=g.x+x/2,n=g.y+v/2;g.x-=x;g.y-=v;return function(){b.begin();b.moveTo(t-x/2-v/2,n-v/2+x/2);b.lineTo(t-x/2+v/2,n-v/2-x/2);b.lineTo(t+v/2-3*x/2,n-3*v/2-x/2);b.lineTo(t-v/2-3*x/2,n-3*v/2+x/2);b.close();p?b.fillAndStroke():b.stroke()}});mxMarker.addMarker("cross",function(b,d,c,g,e,k,f,m,l,p){var x=e*(f+l+1),v=k*(f+l+1);return function(){b.begin();
-b.moveTo(g.x-x/2-v/2,g.y-v/2+x/2);b.lineTo(g.x+v/2-3*x/2,g.y-3*v/2-x/2);b.moveTo(g.x-x/2+v/2,g.y-v/2-x/2);b.lineTo(g.x-v/2-3*x/2,g.y-3*v/2+x/2);b.stroke()}});mxMarker.addMarker("circle",Ua);mxMarker.addMarker("circlePlus",function(b,d,c,g,e,k,f,m,l,p){var x=g.clone(),v=Ua.apply(this,arguments),t=e*(f+2*l),n=k*(f+2*l);return function(){v.apply(this,arguments);b.begin();b.moveTo(x.x-e*l,x.y-k*l);b.lineTo(x.x-2*t+e*l,x.y-2*n+k*l);b.moveTo(x.x-t-n+k*l,x.y-n+t-e*l);b.lineTo(x.x+n-t-k*l,x.y-n-t+e*l);b.stroke()}});
-mxMarker.addMarker("halfCircle",function(b,d,c,g,e,k,f,m,l,p){var x=e*(f+l+1),v=k*(f+l+1),t=g.clone();g.x-=x;g.y-=v;return function(){b.begin();b.moveTo(t.x-v,t.y+x);b.quadTo(g.x-v,g.y+x,g.x,g.y);b.quadTo(g.x+v,g.y-x,t.x+v,t.y-x);b.stroke()}});mxMarker.addMarker("async",function(b,d,c,g,e,k,f,m,l,p){d=e*l*1.118;c=k*l*1.118;e*=f+l;k*=f+l;var x=g.clone();x.x-=d;x.y-=c;g.x+=1*-e-d;g.y+=1*-k-c;return function(){b.begin();b.moveTo(x.x,x.y);m?b.lineTo(x.x-e-k/2,x.y-k+e/2):b.lineTo(x.x+k/2-e,x.y-k-e/2);
-b.lineTo(x.x-e,x.y-k);b.close();p?b.fillAndStroke():b.stroke()}});mxMarker.addMarker("openAsync",function(b){b=null!=b?b:2;return function(d,c,g,e,k,f,m,l,p,x){k*=m+p;f*=m+p;var v=e.clone();return function(){d.begin();d.moveTo(v.x,v.y);l?d.lineTo(v.x-k-f/b,v.y-f+k/b):d.lineTo(v.x+f/b-k,v.y-f-k/b);d.stroke()}}}(2));if("undefined"!==typeof mxVertexHandler){var ab=function(b,d,c){return Ma(b,["width"],d,function(d,g,e,k,f){f=b.shape.getEdgeWidth()*b.view.scale+c;return new mxPoint(k.x+g*d/4+e*f/2,k.y+
-e*d/4-g*f/2)},function(d,g,e,k,f,m){d=Math.sqrt(mxUtils.ptSegDistSq(k.x,k.y,f.x,f.y,m.x,m.y));b.style.width=Math.round(2*d)/b.view.scale-c})},Ma=function(b,d,c,g,e){return la(b,d,function(d){var e=b.absolutePoints,k=e.length-1;d=b.view.translate;var f=b.view.scale,m=c?e[0]:e[k],e=c?e[1]:e[k-1],k=e.x-m.x,l=e.y-m.y,p=Math.sqrt(k*k+l*l),m=g.call(this,p,k/p,l/p,m,e);return new mxPoint(m.x/f-d.x,m.y/f-d.y)},function(d,g,k){var f=b.absolutePoints,m=f.length-1;d=b.view.translate;var l=b.view.scale,p=c?f[0]:
-f[m],f=c?f[1]:f[m-1],m=f.x-p.x,x=f.y-p.y,v=Math.sqrt(m*m+x*x);g.x=(g.x+d.x)*l;g.y=(g.y+d.y)*l;e.call(this,v,m/v,x/v,p,f,g,k)})},Va=function(b){return function(d){return[la(d,["arrowWidth","arrowSize"],function(d){var c=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"arrowWidth",fa.prototype.arrowWidth))),g=Math.max(0,Math.min(b,mxUtils.getValue(this.state.style,"arrowSize",fa.prototype.arrowSize)));return new mxPoint(d.x+(1-g)*d.width,d.y+(1-c)*d.height/2)},function(d,c){this.state.style.arrowWidth=
-Math.max(0,Math.min(1,Math.abs(d.y+d.height/2-c.y)/d.height*2));this.state.style.arrowSize=Math.max(0,Math.min(b,(d.x+d.width-c.x)/d.width))})]}},Wa=function(b){return function(d){return[la(d,["size"],function(d){var c=Math.max(0,Math.min(.5*d.height,parseFloat(mxUtils.getValue(this.state.style,"size",b))));return new mxPoint(d.x,d.y+c)},function(b,d){this.state.style.size=Math.max(0,d.y-b.y)},!0)]}},Sa=function(b,d,c){return function(g){var e=[la(g,["size"],function(c){var g=Math.max(0,Math.min(c.width,
-Math.min(c.height,parseFloat(mxUtils.getValue(this.state.style,"size",d)))))*b;return new mxPoint(c.x+g,c.y+g)},function(d,c){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(d.width,c.x-d.x),Math.min(d.height,c.y-d.y)))/b)},!1)];c&&mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&e.push(Ia(g));return e}},Na=function(b,d,c,g,e){c=null!=c?c:.5;return function(k){var f=[la(k,["size"],function(d){var c=null!=e?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,g=parseFloat(mxUtils.getValue(this.state.style,
-"size",c?e:b));return new mxPoint(d.x+Math.max(0,Math.min(.5*d.width,g*(c?1:d.width))),d.getCenterY())},function(b,d,g){b=null!=e&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?d.x-b.x:Math.max(0,Math.min(c,(d.x-b.x)/b.width));this.state.style.size=b},!1,g)];d&&mxUtils.getValue(k.style,mxConstants.STYLE_ROUNDED,!1)&&f.push(Ia(k));return f}},Xa=function(b,d,c){b=null!=b?b:.5;return function(g){var e=[la(g,["size"],function(g){var e=null!=c?"0"!=mxUtils.getValue(this.state.style,"fixedSize",
+0)};U.prototype.paintFolds=function(b,d,c,g,e,k,f,m,l,p,x,u,t,n,v){if("fold"==k||"fold"==f||"fold"==m||"fold"==l||"fold"==p)("fold"==f||"default"==f&&"fold"==k)&&u&&v&&(b.moveTo(0,x),b.lineTo(x,x),b.lineTo(x,0)),("fold"==m||"default"==m&&"fold"==k)&&u&&t&&(b.moveTo(g-x,0),b.lineTo(g-x,x),b.lineTo(g,x)),("fold"==l||"default"==l&&"fold"==k)&&n&&t&&(b.moveTo(g-x,e),b.lineTo(g-x,e-x),b.lineTo(g,e-x)),("fold"==p||"default"==p&&"fold"==k)&&n&&v&&(b.moveTo(0,e-x),b.lineTo(x,e-x),b.lineTo(x,e))};mxCellRenderer.registerShape(U.prototype.cst.RECT2,
+U);U.prototype.constraints=null;mxUtils.extend(Ea,mxConnector);Ea.prototype.origPaintEdgeShape=Ea.prototype.paintEdgeShape;Ea.prototype.paintEdgeShape=function(b,d,c){for(var g=[],e=0;e<d.length;e++)g.push(mxUtils.clone(d[e]));var e=b.state.dashed,k=b.state.fixDash;Ea.prototype.origPaintEdgeShape.apply(this,[b,g,c]);3<=b.state.strokeWidth&&(g=mxUtils.getValue(this.style,"fillColor",null),null!=g&&(b.setStrokeColor(g),b.setStrokeWidth(b.state.strokeWidth-2),b.setDashed(e,k),Ea.prototype.origPaintEdgeShape.apply(this,
+[b,d,c])))};mxCellRenderer.registerShape("filledEdge",Ea);"undefined"!==typeof StyleFormatPanel&&function(){var b=StyleFormatPanel.prototype.getCustomColors;StyleFormatPanel.prototype.getCustomColors=function(){var d=this.editorUi.getSelectionState(),c=b.apply(this,arguments);"umlFrame"==d.style.shape&&c.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return c}}();mxMarker.addMarker("dash",function(b,d,c,g,e,k,f,m,l,p){var x=e*(f+l+1),u=k*(f+l+1);return function(){b.begin();
+b.moveTo(g.x-x/2-u/2,g.y-u/2+x/2);b.lineTo(g.x+u/2-3*x/2,g.y-3*u/2-x/2);b.stroke()}});mxMarker.addMarker("box",function(b,d,c,g,e,k,f,m,l,p){var x=e*(f+l+1),u=k*(f+l+1),t=g.x+x/2,n=g.y+u/2;g.x-=x;g.y-=u;return function(){b.begin();b.moveTo(t-x/2-u/2,n-u/2+x/2);b.lineTo(t-x/2+u/2,n-u/2-x/2);b.lineTo(t+u/2-3*x/2,n-3*u/2-x/2);b.lineTo(t-u/2-3*x/2,n-3*u/2+x/2);b.close();p?b.fillAndStroke():b.stroke()}});mxMarker.addMarker("cross",function(b,d,c,g,e,k,f,m,l,p){var x=e*(f+l+1),u=k*(f+l+1);return function(){b.begin();
+b.moveTo(g.x-x/2-u/2,g.y-u/2+x/2);b.lineTo(g.x+u/2-3*x/2,g.y-3*u/2-x/2);b.moveTo(g.x-x/2+u/2,g.y-u/2-x/2);b.lineTo(g.x-u/2-3*x/2,g.y-3*u/2+x/2);b.stroke()}});mxMarker.addMarker("circle",Na);mxMarker.addMarker("circlePlus",function(b,d,c,g,e,k,f,m,l,p){var x=g.clone(),u=Na.apply(this,arguments),t=e*(f+2*l),n=k*(f+2*l);return function(){u.apply(this,arguments);b.begin();b.moveTo(x.x-e*l,x.y-k*l);b.lineTo(x.x-2*t+e*l,x.y-2*n+k*l);b.moveTo(x.x-t-n+k*l,x.y-n+t-e*l);b.lineTo(x.x+n-t-k*l,x.y-n-t+e*l);b.stroke()}});
+mxMarker.addMarker("halfCircle",function(b,d,c,g,e,k,f,m,l,p){var x=e*(f+l+1),u=k*(f+l+1),t=g.clone();g.x-=x;g.y-=u;return function(){b.begin();b.moveTo(t.x-u,t.y+x);b.quadTo(g.x-u,g.y+x,g.x,g.y);b.quadTo(g.x+u,g.y-x,t.x+u,t.y-x);b.stroke()}});mxMarker.addMarker("async",function(b,d,c,g,e,k,f,m,l,p){d=e*l*1.118;c=k*l*1.118;e*=f+l;k*=f+l;var x=g.clone();x.x-=d;x.y-=c;g.x+=1*-e-d;g.y+=1*-k-c;return function(){b.begin();b.moveTo(x.x,x.y);m?b.lineTo(x.x-e-k/2,x.y-k+e/2):b.lineTo(x.x+k/2-e,x.y-k-e/2);
+b.lineTo(x.x-e,x.y-k);b.close();p?b.fillAndStroke():b.stroke()}});mxMarker.addMarker("openAsync",function(b){b=null!=b?b:2;return function(d,c,g,e,k,f,m,l,p,x){k*=m+p;f*=m+p;var u=e.clone();return function(){d.begin();d.moveTo(u.x,u.y);l?d.lineTo(u.x-k-f/b,u.y-f+k/b):d.lineTo(u.x+f/b-k,u.y-f-k/b);d.stroke()}}}(2));if("undefined"!==typeof mxVertexHandler){var ab=function(b,d,c){return Ma(b,["width"],d,function(d,g,e,k,f){f=b.shape.getEdgeWidth()*b.view.scale+c;return new mxPoint(k.x+g*d/4+e*f/2,k.y+
+e*d/4-g*f/2)},function(d,g,e,k,f,m){d=Math.sqrt(mxUtils.ptSegDistSq(k.x,k.y,f.x,f.y,m.x,m.y));b.style.width=Math.round(2*d)/b.view.scale-c})},Ma=function(b,d,c,g,e){return ia(b,d,function(d){var e=b.absolutePoints,k=e.length-1;d=b.view.translate;var f=b.view.scale,m=c?e[0]:e[k],e=c?e[1]:e[k-1],k=e.x-m.x,l=e.y-m.y,p=Math.sqrt(k*k+l*l),m=g.call(this,p,k/p,l/p,m,e);return new mxPoint(m.x/f-d.x,m.y/f-d.y)},function(d,g,k){var f=b.absolutePoints,m=f.length-1;d=b.view.translate;var l=b.view.scale,p=c?f[0]:
+f[m],f=c?f[1]:f[m-1],m=f.x-p.x,x=f.y-p.y,u=Math.sqrt(m*m+x*x);g.x=(g.x+d.x)*l;g.y=(g.y+d.y)*l;e.call(this,u,m/u,x/u,p,f,g,k)})},Va=function(b){return function(d){return[ia(d,["arrowWidth","arrowSize"],function(d){var c=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"arrowWidth",da.prototype.arrowWidth))),g=Math.max(0,Math.min(b,mxUtils.getValue(this.state.style,"arrowSize",da.prototype.arrowSize)));return new mxPoint(d.x+(1-g)*d.width,d.y+(1-c)*d.height/2)},function(d,c){this.state.style.arrowWidth=
+Math.max(0,Math.min(1,Math.abs(d.y+d.height/2-c.y)/d.height*2));this.state.style.arrowSize=Math.max(0,Math.min(b,(d.x+d.width-c.x)/d.width))})]}},Wa=function(b){return function(d){return[ia(d,["size"],function(d){var c=Math.max(0,Math.min(.5*d.height,parseFloat(mxUtils.getValue(this.state.style,"size",b))));return new mxPoint(d.x,d.y+c)},function(b,d){this.state.style.size=Math.max(0,d.y-b.y)},!0)]}},Ta=function(b,d,c){return function(g){var e=[ia(g,["size"],function(c){var g=Math.max(0,Math.min(c.width,
+Math.min(c.height,parseFloat(mxUtils.getValue(this.state.style,"size",d)))))*b;return new mxPoint(c.x+g,c.y+g)},function(d,c){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(d.width,c.x-d.x),Math.min(d.height,c.y-d.y)))/b)},!1)];c&&mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&e.push(Ia(g));return e}},Oa=function(b,d,c,g,e){c=null!=c?c:.5;return function(k){var f=[ia(k,["size"],function(d){var c=null!=e?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,g=parseFloat(mxUtils.getValue(this.state.style,
+"size",c?e:b));return new mxPoint(d.x+Math.max(0,Math.min(.5*d.width,g*(c?1:d.width))),d.getCenterY())},function(b,d,g){b=null!=e&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?d.x-b.x:Math.max(0,Math.min(c,(d.x-b.x)/b.width));this.state.style.size=b},!1,g)];d&&mxUtils.getValue(k.style,mxConstants.STYLE_ROUNDED,!1)&&f.push(Ia(k));return f}},Xa=function(b,d,c){b=null!=b?b:.5;return function(g){var e=[ia(g,["size"],function(g){var e=null!=c?"0"!=mxUtils.getValue(this.state.style,"fixedSize",
"0"):null,k=Math.max(0,parseFloat(mxUtils.getValue(this.state.style,"size",e?c:d)));return new mxPoint(g.x+Math.min(.75*g.width*b,k*(e?.75:.75*g.width)),g.y+g.height/4)},function(d,g){var e=null!=c&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?g.x-d.x:Math.max(0,Math.min(b,(g.x-d.x)/d.width*.75));this.state.style.size=e},!1,!0)];mxUtils.getValue(g.style,mxConstants.STYLE_ROUNDED,!1)&&e.push(Ia(g));return e}},La=function(){return function(b){var d=[];mxUtils.getValue(b.style,mxConstants.STYLE_ROUNDED,
-!1)&&d.push(Ia(b));return d}},Ia=function(b,d){return la(b,[mxConstants.STYLE_ARCSIZE],function(c){var g=null!=d?d:c.height/8;if("1"==mxUtils.getValue(b.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)){var e=mxUtils.getValue(b.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;return new mxPoint(c.x+c.width-Math.min(c.width/2,e),c.y+g)}e=Math.max(0,parseFloat(mxUtils.getValue(b.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)))/100;return new mxPoint(c.x+c.width-Math.min(Math.max(c.width/
-2,c.height/2),Math.min(c.width,c.height)*e),c.y+g)},function(d,c,g){"1"==mxUtils.getValue(b.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.max(0,Math.min(d.width,2*(d.x+d.width-c.x)))):this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.min(50,Math.max(0,100*(d.width-c.x+d.x)/Math.min(d.width,d.height))))})},la=function(b,d,c,g,e,k,f){var m=new mxHandle(b,null,mxVertexHandler.prototype.secondaryHandleImage);m.execute=function(b){for(var c=
-0;c<d.length;c++)this.copyStyle(d[c]);f&&f(b)};m.getPosition=c;m.setPosition=g;m.ignoreGrid=null!=e?e:!0;if(k){var l=m.positionChanged;m.positionChanged=function(){l.apply(this,arguments);b.view.invalidate(this.state.cell);b.view.validate()}}return m},Oa={link:function(b){return[ab(b,!0,10),ab(b,!1,10)]},flexArrow:function(b){var d=b.view.graph.gridSize/b.view.scale,c=[];mxUtils.getValue(b.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE&&(c.push(Ma(b,["width",mxConstants.STYLE_STARTSIZE,
+!1)&&d.push(Ia(b));return d}},Ia=function(b,d){return ia(b,[mxConstants.STYLE_ARCSIZE],function(c){var g=null!=d?d:c.height/8;if("1"==mxUtils.getValue(b.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)){var e=mxUtils.getValue(b.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;return new mxPoint(c.x+c.width-Math.min(c.width/2,e),c.y+g)}e=Math.max(0,parseFloat(mxUtils.getValue(b.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)))/100;return new mxPoint(c.x+c.width-Math.min(Math.max(c.width/
+2,c.height/2),Math.min(c.width,c.height)*e),c.y+g)},function(d,c,g){"1"==mxUtils.getValue(b.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.max(0,Math.min(d.width,2*(d.x+d.width-c.x)))):this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.min(50,Math.max(0,100*(d.width-c.x+d.x)/Math.min(d.width,d.height))))})},ia=function(b,d,c,g,e,k,f){var m=new mxHandle(b,null,mxVertexHandler.prototype.secondaryHandleImage);m.execute=function(b){for(var c=
+0;c<d.length;c++)this.copyStyle(d[c]);f&&f(b)};m.getPosition=c;m.setPosition=g;m.ignoreGrid=null!=e?e:!0;if(k){var l=m.positionChanged;m.positionChanged=function(){l.apply(this,arguments);b.view.invalidate(this.state.cell);b.view.validate()}}return m},Pa={link:function(b){return[ab(b,!0,10),ab(b,!1,10)]},flexArrow:function(b){var d=b.view.graph.gridSize/b.view.scale,c=[];mxUtils.getValue(b.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE&&(c.push(Ma(b,["width",mxConstants.STYLE_STARTSIZE,
mxConstants.STYLE_ENDSIZE],!0,function(d,c,g,e,k){d=(b.shape.getEdgeWidth()-b.shape.strokewidth)*b.view.scale;k=3*mxUtils.getNumber(b.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*b.view.scale;return new mxPoint(e.x+c*(k+b.shape.strokewidth*b.view.scale)+g*d/2,e.y+g*(k+b.shape.strokewidth*b.view.scale)-c*d/2)},function(c,g,e,k,f,m,l){c=Math.sqrt(mxUtils.ptSegDistSq(k.x,k.y,f.x,f.y,m.x,m.y));g=mxUtils.ptLineDist(k.x,k.y,k.x+e,k.y-g,m.x,m.y);b.style[mxConstants.STYLE_STARTSIZE]=Math.round(100*
(g-b.shape.strokewidth)/3)/100/b.view.scale;b.style.width=Math.round(2*c)/b.view.scale;if(mxEvent.isShiftDown(l.getEvent())||mxEvent.isControlDown(l.getEvent()))b.style[mxConstants.STYLE_ENDSIZE]=b.style[mxConstants.STYLE_STARTSIZE];mxEvent.isAltDown(l.getEvent())||Math.abs(parseFloat(b.style[mxConstants.STYLE_STARTSIZE])-parseFloat(b.style[mxConstants.STYLE_ENDSIZE]))<d/6&&(b.style[mxConstants.STYLE_STARTSIZE]=b.style[mxConstants.STYLE_ENDSIZE])})),c.push(Ma(b,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,
mxConstants.STYLE_ENDSIZE],!0,function(d,c,g,e,k){d=(b.shape.getStartArrowWidth()-b.shape.strokewidth)*b.view.scale;k=3*mxUtils.getNumber(b.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*b.view.scale;return new mxPoint(e.x+c*(k+b.shape.strokewidth*b.view.scale)+g*d/2,e.y+g*(k+b.shape.strokewidth*b.view.scale)-c*d/2)},function(c,g,e,k,f,m,l){c=Math.sqrt(mxUtils.ptSegDistSq(k.x,k.y,f.x,f.y,m.x,m.y));g=mxUtils.ptLineDist(k.x,k.y,k.x+e,k.y-g,m.x,m.y);b.style[mxConstants.STYLE_STARTSIZE]=
@@ -2925,91 +2925,91 @@ c*(k+b.shape.strokewidth*b.view.scale)-g*d/2,e.y+g*(k+b.shape.strokewidth*b.view
mxEvent.isAltDown(l.getEvent())||Math.abs(parseFloat(b.style[mxConstants.STYLE_ENDSIZE])-parseFloat(b.style[mxConstants.STYLE_STARTSIZE]))<d/6&&(b.style[mxConstants.STYLE_ENDSIZE]=b.style[mxConstants.STYLE_STARTSIZE])})),c.push(Ma(b,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!1,function(d,c,g,e,k){d=(b.shape.getEndArrowWidth()-b.shape.strokewidth)*b.view.scale;k=3*mxUtils.getNumber(b.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*b.view.scale;return new mxPoint(e.x+
c*(k+b.shape.strokewidth*b.view.scale)-g*d/2,e.y+g*(k+b.shape.strokewidth*b.view.scale)+c*d/2)},function(c,g,e,k,f,m,l){c=Math.sqrt(mxUtils.ptSegDistSq(k.x,k.y,f.x,f.y,m.x,m.y));g=mxUtils.ptLineDist(k.x,k.y,k.x+e,k.y-g,m.x,m.y);b.style[mxConstants.STYLE_ENDSIZE]=Math.round(100*(g-b.shape.strokewidth)/3)/100/b.view.scale;b.style.endWidth=Math.max(0,Math.round(2*c)-b.shape.getEdgeWidth())/b.view.scale;if(mxEvent.isShiftDown(l.getEvent())||mxEvent.isControlDown(l.getEvent()))b.style[mxConstants.STYLE_STARTSIZE]=
b.style[mxConstants.STYLE_ENDSIZE],b.style.startWidth=b.style.endWidth;mxEvent.isAltDown(l.getEvent())||(Math.abs(parseFloat(b.style[mxConstants.STYLE_ENDSIZE])-parseFloat(b.style[mxConstants.STYLE_STARTSIZE]))<d/6&&(b.style[mxConstants.STYLE_ENDSIZE]=b.style[mxConstants.STYLE_STARTSIZE]),Math.abs(parseFloat(b.style.endWidth)-parseFloat(b.style.startWidth))<d&&(b.style.endWidth=b.style.startWidth))})));return c},swimlane:function(b){var d=[];if(mxUtils.getValue(b.style,mxConstants.STYLE_ROUNDED)){var c=
-parseFloat(mxUtils.getValue(b.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));d.push(Ia(b,c/2))}d.push(la(b,[mxConstants.STYLE_STARTSIZE],function(d){var c=parseFloat(mxUtils.getValue(b.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));return 1==mxUtils.getValue(b.style,mxConstants.STYLE_HORIZONTAL,1)?new mxPoint(d.getCenterX(),d.y+Math.max(0,Math.min(d.height,c))):new mxPoint(d.x+Math.max(0,Math.min(d.width,c)),d.getCenterY())},function(d,c){b.style[mxConstants.STYLE_STARTSIZE]=
+parseFloat(mxUtils.getValue(b.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));d.push(Ia(b,c/2))}d.push(ia(b,[mxConstants.STYLE_STARTSIZE],function(d){var c=parseFloat(mxUtils.getValue(b.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));return 1==mxUtils.getValue(b.style,mxConstants.STYLE_HORIZONTAL,1)?new mxPoint(d.getCenterX(),d.y+Math.max(0,Math.min(d.height,c))):new mxPoint(d.x+Math.max(0,Math.min(d.width,c)),d.getCenterY())},function(d,c){b.style[mxConstants.STYLE_STARTSIZE]=
1==mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,1)?Math.round(Math.max(0,Math.min(d.height,c.y-d.y))):Math.round(Math.max(0,Math.min(d.width,c.x-d.x)))},!1,null,function(d){var c=b.view.graph;if(!mxEvent.isShiftDown(d.getEvent())&&!mxEvent.isControlDown(d.getEvent())&&(c.isTableRow(b.cell)||c.isTableCell(b.cell))){d=c.getSwimlaneDirection(b.style);for(var g=c.model.getParent(b.cell),g=c.model.getChildCells(g,!0),e=[],k=0;k<g.length;k++)g[k]!=b.cell&&c.isSwimlane(g[k])&&c.getSwimlaneDirection(c.getCurrentCellStyle(g[k]))==
-d&&e.push(g[k]);c.setCellStyles(mxConstants.STYLE_STARTSIZE,b.style[mxConstants.STYLE_STARTSIZE],e)}}));return d},label:La(),ext:La(),rectangle:La(),triangle:La(),rhombus:La(),umlLifeline:function(b){return[la(b,["size"],function(b){var d=Math.max(0,Math.min(b.height,parseFloat(mxUtils.getValue(this.state.style,"size",V.prototype.size))));return new mxPoint(b.getCenterX(),b.y+d)},function(b,d){this.state.style.size=Math.round(Math.max(0,Math.min(b.height,d.y-b.y)))},!1)]},umlFrame:function(b){return[la(b,
+d&&e.push(g[k]);c.setCellStyles(mxConstants.STYLE_STARTSIZE,b.style[mxConstants.STYLE_STARTSIZE],e)}}));return d},label:La(),ext:La(),rectangle:La(),triangle:La(),rhombus:La(),umlLifeline:function(b){return[ia(b,["size"],function(b){var d=Math.max(0,Math.min(b.height,parseFloat(mxUtils.getValue(this.state.style,"size",X.prototype.size))));return new mxPoint(b.getCenterX(),b.y+d)},function(b,d){this.state.style.size=Math.round(Math.max(0,Math.min(b.height,d.y-b.y)))},!1)]},umlFrame:function(b){return[ia(b,
["width","height"],function(b){var d=Math.max(ca.prototype.corner,Math.min(b.width,mxUtils.getValue(this.state.style,"width",ca.prototype.width))),c=Math.max(1.5*ca.prototype.corner,Math.min(b.height,mxUtils.getValue(this.state.style,"height",ca.prototype.height)));return new mxPoint(b.x+d,b.y+c)},function(b,d){this.state.style.width=Math.round(Math.max(ca.prototype.corner,Math.min(b.width,d.x-b.x)));this.state.style.height=Math.round(Math.max(1.5*ca.prototype.corner,Math.min(b.height,d.y-b.y)))},
-!1)]},process:function(b){var d=[la(b,["size"],function(b){var d="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),c=parseFloat(mxUtils.getValue(this.state.style,"size",I.prototype.size));return d?new mxPoint(b.x+c,b.y+b.height/4):new mxPoint(b.x+b.width*c,b.y+b.height/4)},function(b,d){var c="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(.5*b.width,d.x-b.x)):Math.max(0,Math.min(.5,(d.x-b.x)/b.width));this.state.style.size=c},!1)];mxUtils.getValue(b.style,mxConstants.STYLE_ROUNDED,
-!1)&&d.push(Ia(b));return d},cross:function(b){return[la(b,["size"],function(b){var d=Math.min(b.width,b.height),d=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"size",za.prototype.size)))*d/2;return new mxPoint(b.getCenterX()-d,b.getCenterY()-d)},function(b,d){var c=Math.min(b.width,b.height);this.state.style.size=Math.max(0,Math.min(1,Math.min(Math.max(0,b.getCenterY()-d.y)/c*2,Math.max(0,b.getCenterX()-d.x)/c*2)))})]},note:function(b){return[la(b,["size"],function(b){var d=Math.max(0,
-Math.min(b.width,Math.min(b.height,parseFloat(mxUtils.getValue(this.state.style,"size",k.prototype.size)))));return new mxPoint(b.x+b.width-d,b.y+d)},function(b,d){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(b.width,b.x+b.width-d.x),Math.min(b.height,d.y-b.y))))})]},note2:function(b){return[la(b,["size"],function(b){var d=Math.max(0,Math.min(b.width,Math.min(b.height,parseFloat(mxUtils.getValue(this.state.style,"size",g.prototype.size)))));return new mxPoint(b.x+b.width-d,b.y+d)},
-function(b,d){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(b.width,b.x+b.width-d.x),Math.min(b.height,d.y-b.y))))})]},manualInput:function(b){var d=[la(b,["size"],function(b){var d=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"size",pa.prototype.size)));return new mxPoint(b.x+b.width/4,b.y+3*d/4)},function(b,d){this.state.style.size=Math.round(Math.max(0,Math.min(b.height,4*(d.y-b.y)/3)))},!1)];mxUtils.getValue(b.style,mxConstants.STYLE_ROUNDED,!1)&&d.push(Ia(b));
-return d},dataStorage:function(b){return[la(b,["size"],function(b){var d="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),c=parseFloat(mxUtils.getValue(this.state.style,"size",d?na.prototype.fixedSize:na.prototype.size));return new mxPoint(b.x+b.width-c*(d?1:b.width),b.getCenterY())},function(b,d){var c="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(b.width,b.x+b.width-d.x)):Math.max(0,Math.min(1,(b.x+b.width-d.x)/b.width));this.state.style.size=c},!1)]},callout:function(b){var d=
-[la(b,["size","position"],function(b){var d=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"size",M.prototype.size))),c=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",M.prototype.position)));mxUtils.getValue(this.state.style,"base",M.prototype.base);return new mxPoint(b.x+c*b.width,b.y+b.height-d)},function(b,d){mxUtils.getValue(this.state.style,"base",M.prototype.base);this.state.style.size=Math.round(Math.max(0,Math.min(b.height,b.y+b.height-d.y)));this.state.style.position=
-Math.round(100*Math.max(0,Math.min(1,(d.x-b.x)/b.width)))/100},!1),la(b,["position2"],function(b){var d=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position2",M.prototype.position2)));return new mxPoint(b.x+d*b.width,b.y+b.height)},function(b,d){this.state.style.position2=Math.round(100*Math.max(0,Math.min(1,(d.x-b.x)/b.width)))/100},!1),la(b,["base"],function(b){var d=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"size",M.prototype.size))),c=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,
-"position",M.prototype.position))),g=Math.max(0,Math.min(b.width,mxUtils.getValue(this.state.style,"base",M.prototype.base)));return new mxPoint(b.x+Math.min(b.width,c*b.width+g),b.y+b.height-d)},function(b,d){var c=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",M.prototype.position)));this.state.style.base=Math.round(Math.max(0,Math.min(b.width,d.x-b.x-c*b.width)))},!1)];mxUtils.getValue(b.style,mxConstants.STYLE_ROUNDED,!1)&&d.push(Ia(b));return d},internalStorage:function(b){var d=
-[la(b,["dx","dy"],function(b){var d=Math.max(0,Math.min(b.width,mxUtils.getValue(this.state.style,"dx",ra.prototype.dx))),c=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"dy",ra.prototype.dy)));return new mxPoint(b.x+d,b.y+c)},function(b,d){this.state.style.dx=Math.round(Math.max(0,Math.min(b.width,d.x-b.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(b.height,d.y-b.y)))},!1)];mxUtils.getValue(b.style,mxConstants.STYLE_ROUNDED,!1)&&d.push(Ia(b));return d},module:function(b){return[la(b,
-["jettyWidth","jettyHeight"],function(b){var d=Math.max(0,Math.min(b.width,mxUtils.getValue(this.state.style,"jettyWidth",ha.prototype.jettyWidth))),c=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"jettyHeight",ha.prototype.jettyHeight)));return new mxPoint(b.x+d/2,b.y+2*c)},function(b,d){this.state.style.jettyWidth=Math.round(2*Math.max(0,Math.min(b.width,d.x-b.x)));this.state.style.jettyHeight=Math.round(Math.max(0,Math.min(b.height,d.y-b.y))/2)})]},corner:function(b){return[la(b,
-["dx","dy"],function(b){var d=Math.max(0,Math.min(b.width,mxUtils.getValue(this.state.style,"dx",R.prototype.dx))),c=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"dy",R.prototype.dy)));return new mxPoint(b.x+d,b.y+c)},function(b,d){this.state.style.dx=Math.round(Math.max(0,Math.min(b.width,d.x-b.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(b.height,d.y-b.y)))},!1)]},tee:function(b){return[la(b,["dx","dy"],function(b){var d=Math.max(0,Math.min(b.width,mxUtils.getValue(this.state.style,
-"dx",ia.prototype.dx))),c=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"dy",ia.prototype.dy)));return new mxPoint(b.x+(b.width+d)/2,b.y+c)},function(b,d){this.state.style.dx=Math.round(Math.max(0,2*Math.min(b.width/2,d.x-b.x-b.width/2)));this.state.style.dy=Math.round(Math.max(0,Math.min(b.height,d.y-b.y)))},!1)]},singleArrow:Va(1),doubleArrow:Va(.5),folder:function(b){return[la(b,["tabWidth","tabHeight"],function(b){var d=Math.max(0,Math.min(b.width,mxUtils.getValue(this.state.style,
+!1)]},process:function(b){var d=[ia(b,["size"],function(b){var d="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),c=parseFloat(mxUtils.getValue(this.state.style,"size",H.prototype.size));return d?new mxPoint(b.x+c,b.y+b.height/4):new mxPoint(b.x+b.width*c,b.y+b.height/4)},function(b,d){var c="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(.5*b.width,d.x-b.x)):Math.max(0,Math.min(.5,(d.x-b.x)/b.width));this.state.style.size=c},!1)];mxUtils.getValue(b.style,mxConstants.STYLE_ROUNDED,
+!1)&&d.push(Ia(b));return d},cross:function(b){return[ia(b,["size"],function(b){var d=Math.min(b.width,b.height),d=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"size",Ca.prototype.size)))*d/2;return new mxPoint(b.getCenterX()-d,b.getCenterY()-d)},function(b,d){var c=Math.min(b.width,b.height);this.state.style.size=Math.max(0,Math.min(1,Math.min(Math.max(0,b.getCenterY()-d.y)/c*2,Math.max(0,b.getCenterX()-d.x)/c*2)))})]},note:function(b){return[ia(b,["size"],function(b){var d=Math.max(0,
+Math.min(b.width,Math.min(b.height,parseFloat(mxUtils.getValue(this.state.style,"size",k.prototype.size)))));return new mxPoint(b.x+b.width-d,b.y+d)},function(b,d){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(b.width,b.x+b.width-d.x),Math.min(b.height,d.y-b.y))))})]},note2:function(b){return[ia(b,["size"],function(b){var d=Math.max(0,Math.min(b.width,Math.min(b.height,parseFloat(mxUtils.getValue(this.state.style,"size",g.prototype.size)))));return new mxPoint(b.x+b.width-d,b.y+d)},
+function(b,d){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(b.width,b.x+b.width-d.x),Math.min(b.height,d.y-b.y))))})]},manualInput:function(b){var d=[ia(b,["size"],function(b){var d=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"size",ja.prototype.size)));return new mxPoint(b.x+b.width/4,b.y+3*d/4)},function(b,d){this.state.style.size=Math.round(Math.max(0,Math.min(b.height,4*(d.y-b.y)/3)))},!1)];mxUtils.getValue(b.style,mxConstants.STYLE_ROUNDED,!1)&&d.push(Ia(b));
+return d},dataStorage:function(b){return[ia(b,["size"],function(b){var d="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),c=parseFloat(mxUtils.getValue(this.state.style,"size",d?la.prototype.fixedSize:la.prototype.size));return new mxPoint(b.x+b.width-c*(d?1:b.width),b.getCenterY())},function(b,d){var c="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(b.width,b.x+b.width-d.x)):Math.max(0,Math.min(1,(b.x+b.width-d.x)/b.width));this.state.style.size=c},!1)]},callout:function(b){var d=
+[ia(b,["size","position"],function(b){var d=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"size",N.prototype.size))),c=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",N.prototype.position)));mxUtils.getValue(this.state.style,"base",N.prototype.base);return new mxPoint(b.x+c*b.width,b.y+b.height-d)},function(b,d){mxUtils.getValue(this.state.style,"base",N.prototype.base);this.state.style.size=Math.round(Math.max(0,Math.min(b.height,b.y+b.height-d.y)));this.state.style.position=
+Math.round(100*Math.max(0,Math.min(1,(d.x-b.x)/b.width)))/100},!1),ia(b,["position2"],function(b){var d=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position2",N.prototype.position2)));return new mxPoint(b.x+d*b.width,b.y+b.height)},function(b,d){this.state.style.position2=Math.round(100*Math.max(0,Math.min(1,(d.x-b.x)/b.width)))/100},!1),ia(b,["base"],function(b){var d=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"size",N.prototype.size))),c=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,
+"position",N.prototype.position))),g=Math.max(0,Math.min(b.width,mxUtils.getValue(this.state.style,"base",N.prototype.base)));return new mxPoint(b.x+Math.min(b.width,c*b.width+g),b.y+b.height-d)},function(b,d){var c=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",N.prototype.position)));this.state.style.base=Math.round(Math.max(0,Math.min(b.width,d.x-b.x-c*b.width)))},!1)];mxUtils.getValue(b.style,mxConstants.STYLE_ROUNDED,!1)&&d.push(Ia(b));return d},internalStorage:function(b){var d=
+[ia(b,["dx","dy"],function(b){var d=Math.max(0,Math.min(b.width,mxUtils.getValue(this.state.style,"dx",ma.prototype.dx))),c=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"dy",ma.prototype.dy)));return new mxPoint(b.x+d,b.y+c)},function(b,d){this.state.style.dx=Math.round(Math.max(0,Math.min(b.width,d.x-b.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(b.height,d.y-b.y)))},!1)];mxUtils.getValue(b.style,mxConstants.STYLE_ROUNDED,!1)&&d.push(Ia(b));return d},module:function(b){return[ia(b,
+["jettyWidth","jettyHeight"],function(b){var d=Math.max(0,Math.min(b.width,mxUtils.getValue(this.state.style,"jettyWidth",pa.prototype.jettyWidth))),c=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"jettyHeight",pa.prototype.jettyHeight)));return new mxPoint(b.x+d/2,b.y+2*c)},function(b,d){this.state.style.jettyWidth=Math.round(2*Math.max(0,Math.min(b.width,d.x-b.x)));this.state.style.jettyHeight=Math.round(Math.max(0,Math.min(b.height,d.y-b.y))/2)})]},corner:function(b){return[ia(b,
+["dx","dy"],function(b){var d=Math.max(0,Math.min(b.width,mxUtils.getValue(this.state.style,"dx",ra.prototype.dx))),c=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"dy",ra.prototype.dy)));return new mxPoint(b.x+d,b.y+c)},function(b,d){this.state.style.dx=Math.round(Math.max(0,Math.min(b.width,d.x-b.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(b.height,d.y-b.y)))},!1)]},tee:function(b){return[ia(b,["dx","dy"],function(b){var d=Math.max(0,Math.min(b.width,mxUtils.getValue(this.state.style,
+"dx",oa.prototype.dx))),c=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"dy",oa.prototype.dy)));return new mxPoint(b.x+(b.width+d)/2,b.y+c)},function(b,d){this.state.style.dx=Math.round(Math.max(0,2*Math.min(b.width/2,d.x-b.x-b.width/2)));this.state.style.dy=Math.round(Math.max(0,Math.min(b.height,d.y-b.y)))},!1)]},singleArrow:Va(1),doubleArrow:Va(.5),folder:function(b){return[ia(b,["tabWidth","tabHeight"],function(b){var d=Math.max(0,Math.min(b.width,mxUtils.getValue(this.state.style,
"tabWidth",t.prototype.tabWidth))),c=Math.max(0,Math.min(b.height,mxUtils.getValue(this.state.style,"tabHeight",t.prototype.tabHeight)));mxUtils.getValue(this.state.style,"tabPosition",t.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(d=b.width-d);return new mxPoint(b.x+d,b.y+c)},function(b,d){var c=Math.max(0,Math.min(b.width,d.x-b.x));mxUtils.getValue(this.state.style,"tabPosition",t.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(c=b.width-c);this.state.style.tabWidth=Math.round(c);this.state.style.tabHeight=
-Math.round(Math.max(0,Math.min(b.height,d.y-b.y)))},!1)]},document:function(b){return[la(b,["size"],function(b){var d=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",D.prototype.size))));return new mxPoint(b.x+3*b.width/4,b.y+(1-d)*b.height)},function(b,d){this.state.style.size=Math.max(0,Math.min(1,(b.y+b.height-d.y)/b.height))},!1)]},tape:function(b){return[la(b,["size"],function(b){var d=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",F.prototype.size))));
-return new mxPoint(b.getCenterX(),b.y+d*b.height/2)},function(b,d){this.state.style.size=Math.max(0,Math.min(1,(d.y-b.y)/b.height*2))},!1)]},isoCube2:function(b){return[la(b,["isoAngle"],function(b){var d=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.state.style,"isoAngle",p.isoAngle))))*Math.PI/200;return new mxPoint(b.x,b.y+Math.min(b.width*Math.tan(d),.5*b.height))},function(b,d){this.state.style.isoAngle=Math.max(0,50*(d.y-b.y)/b.height)},!0)]},cylinder2:Wa(m.prototype.size),cylinder3:Wa(v.prototype.size),
-offPageConnector:function(b){return[la(b,["size"],function(b){var d=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",ka.prototype.size))));return new mxPoint(b.getCenterX(),b.y+(1-d)*b.height)},function(b,d){this.state.style.size=Math.max(0,Math.min(1,(b.y+b.height-d.y)/b.height))},!1)]},"mxgraph.basic.rect":function(b){var d=[Graph.createHandle(b,["size"],function(b){var d=Math.max(0,Math.min(b.width/2,b.height/2,parseFloat(mxUtils.getValue(this.state.style,"size",this.size))));
-return new mxPoint(b.x+d,b.y+d)},function(b,d){this.state.style.size=Math.round(100*Math.max(0,Math.min(b.height/2,b.width/2,d.x-b.x)))/100})];b=Graph.createHandle(b,["indent"],function(b){var d=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"indent",this.dx2))));return new mxPoint(b.x+.75*b.width,b.y+d*b.height/200)},function(b,d){this.state.style.indent=Math.round(100*Math.max(0,Math.min(100,200*(d.y-b.y)/b.height)))/100});d.push(b);return d},step:Na(K.prototype.size,!0,null,
-!0,K.prototype.fixedSize),hexagon:Na(P.prototype.size,!0,.5,!0,P.prototype.fixedSize),curlyBracket:Na(N.prototype.size,!1),display:Na(Ba.prototype.size,!1),cube:Sa(1,f.prototype.size,!1),card:Sa(.5,y.prototype.size,!0),loopLimit:Sa(.5,sa.prototype.size,!0),trapezoid:Xa(.5,H.prototype.size,H.prototype.fixedSize),parallelogram:Xa(1,E.prototype.size,E.prototype.fixedSize)};Graph.createHandle=la;Graph.handleFactory=Oa;var eb=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=
-function(){var b=eb.apply(this,arguments);if(this.graph.isCellRotatable(this.state.cell)){var d=this.state.style.shape;null==mxCellRenderer.defaultShapes[d]&&null==mxStencilRegistry.getStencil(d)?d=mxConstants.SHAPE_RECTANGLE:this.state.view.graph.isSwimlane(this.state.cell)&&(d=mxConstants.SHAPE_SWIMLANE);d=Oa[d];null==d&&null!=this.state.shape&&this.state.shape.isRoundable()&&(d=Oa[mxConstants.SHAPE_RECTANGLE]);null!=d&&(d=d(this.state),null!=d&&(b=null==b?d:b.concat(d)))}return b};mxEdgeHandler.prototype.createCustomHandles=
-function(){var b=this.state.style.shape;null==mxCellRenderer.defaultShapes[b]&&null==mxStencilRegistry.getStencil(b)&&(b=mxConstants.SHAPE_CONNECTOR);b=Oa[b];return null!=b?b(this.state):null}}else Graph.createHandle=function(){},Graph.handleFactory={};var Pa=new mxPoint(1,0),Qa=new mxPoint(1,0),Ya=mxUtils.toRadians(-30),Pa=mxUtils.getRotatedPoint(Pa,Math.cos(Ya),Math.sin(Ya)),Za=mxUtils.toRadians(-150),Qa=mxUtils.getRotatedPoint(Qa,Math.cos(Za),Math.sin(Za));mxEdgeStyle.IsometricConnector=function(b,
-d,c,g,e){var k=b.view;g=null!=g&&0<g.length?g[0]:null;var f=b.absolutePoints,m=f[0],f=f[f.length-1];null!=g&&(g=k.transformControlPoint(b,g));null==m&&null!=d&&(m=new mxPoint(d.getCenterX(),d.getCenterY()));null==f&&null!=c&&(f=new mxPoint(c.getCenterX(),c.getCenterY()));var l=Pa.x,p=Pa.y,x=Qa.x,v=Qa.y,t="horizontal"==mxUtils.getValue(b.style,"elbow","horizontal");if(null!=f&&null!=m){b=function(b,d,c){b-=n.x;var g=d-n.y;d=(v*b-x*g)/(l*v-p*x);b=(p*b-l*g)/(p*x-l*v);t?(c&&(n=new mxPoint(n.x+l*d,n.y+
-p*d),e.push(n)),n=new mxPoint(n.x+x*b,n.y+v*b)):(c&&(n=new mxPoint(n.x+x*b,n.y+v*b),e.push(n)),n=new mxPoint(n.x+l*d,n.y+p*d));e.push(n)};var n=m;null==g&&(g=new mxPoint(m.x+(f.x-m.x)/2,m.y+(f.y-m.y)/2));b(g.x,g.y,!0);b(f.x,f.y,!1)}};mxStyleRegistry.putValue("isometricEdgeStyle",mxEdgeStyle.IsometricConnector);var fb=Graph.prototype.createEdgeHandler;Graph.prototype.createEdgeHandler=function(b,d){if(d==mxEdgeStyle.IsometricConnector){var c=new mxElbowEdgeHandler(b);c.snapToTerminals=!1;return c}return fb.apply(this,
+Math.round(Math.max(0,Math.min(b.height,d.y-b.y)))},!1)]},document:function(b){return[ia(b,["size"],function(b){var d=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",D.prototype.size))));return new mxPoint(b.x+3*b.width/4,b.y+(1-d)*b.height)},function(b,d){this.state.style.size=Math.max(0,Math.min(1,(b.y+b.height-d.y)/b.height))},!1)]},tape:function(b){return[ia(b,["size"],function(b){var d=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",I.prototype.size))));
+return new mxPoint(b.getCenterX(),b.y+d*b.height/2)},function(b,d){this.state.style.size=Math.max(0,Math.min(1,(d.y-b.y)/b.height*2))},!1)]},isoCube2:function(b){return[ia(b,["isoAngle"],function(b){var d=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.state.style,"isoAngle",p.isoAngle))))*Math.PI/200;return new mxPoint(b.x,b.y+Math.min(b.width*Math.tan(d),.5*b.height))},function(b,d){this.state.style.isoAngle=Math.max(0,50*(d.y-b.y)/b.height)},!0)]},cylinder2:Wa(m.prototype.size),cylinder3:Wa(u.prototype.size),
+offPageConnector:function(b){return[ia(b,["size"],function(b){var d=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",fa.prototype.size))));return new mxPoint(b.getCenterX(),b.y+(1-d)*b.height)},function(b,d){this.state.style.size=Math.max(0,Math.min(1,(b.y+b.height-d.y)/b.height))},!1)]},"mxgraph.basic.rect":function(b){var d=[Graph.createHandle(b,["size"],function(b){var d=Math.max(0,Math.min(b.width/2,b.height/2,parseFloat(mxUtils.getValue(this.state.style,"size",this.size))));
+return new mxPoint(b.x+d,b.y+d)},function(b,d){this.state.style.size=Math.round(100*Math.max(0,Math.min(b.height/2,b.width/2,d.x-b.x)))/100})];b=Graph.createHandle(b,["indent"],function(b){var d=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"indent",this.dx2))));return new mxPoint(b.x+.75*b.width,b.y+d*b.height/200)},function(b,d){this.state.style.indent=Math.round(100*Math.max(0,Math.min(100,200*(d.y-b.y)/b.height)))/100});d.push(b);return d},step:Oa(M.prototype.size,!0,null,
+!0,M.prototype.fixedSize),hexagon:Oa(P.prototype.size,!0,.5,!0,P.prototype.fixedSize),curlyBracket:Oa(O.prototype.size,!1),display:Oa(Da.prototype.size,!1),cube:Ta(1,f.prototype.size,!1),card:Ta(.5,y.prototype.size,!0),loopLimit:Ta(.5,ua.prototype.size,!0),trapezoid:Xa(.5,E.prototype.size,E.prototype.fixedSize),parallelogram:Xa(1,F.prototype.size,F.prototype.fixedSize)};Graph.createHandle=ia;Graph.handleFactory=Pa;var eb=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=
+function(){var b=eb.apply(this,arguments);if(this.graph.isCellRotatable(this.state.cell)){var d=this.state.style.shape;null==mxCellRenderer.defaultShapes[d]&&null==mxStencilRegistry.getStencil(d)?d=mxConstants.SHAPE_RECTANGLE:this.state.view.graph.isSwimlane(this.state.cell)&&(d=mxConstants.SHAPE_SWIMLANE);d=Pa[d];null==d&&null!=this.state.shape&&this.state.shape.isRoundable()&&(d=Pa[mxConstants.SHAPE_RECTANGLE]);null!=d&&(d=d(this.state),null!=d&&(b=null==b?d:b.concat(d)))}return b};mxEdgeHandler.prototype.createCustomHandles=
+function(){var b=this.state.style.shape;null==mxCellRenderer.defaultShapes[b]&&null==mxStencilRegistry.getStencil(b)&&(b=mxConstants.SHAPE_CONNECTOR);b=Pa[b];return null!=b?b(this.state):null}}else Graph.createHandle=function(){},Graph.handleFactory={};var Qa=new mxPoint(1,0),Ra=new mxPoint(1,0),Ya=mxUtils.toRadians(-30),Qa=mxUtils.getRotatedPoint(Qa,Math.cos(Ya),Math.sin(Ya)),Za=mxUtils.toRadians(-150),Ra=mxUtils.getRotatedPoint(Ra,Math.cos(Za),Math.sin(Za));mxEdgeStyle.IsometricConnector=function(b,
+d,c,g,e){var k=b.view;g=null!=g&&0<g.length?g[0]:null;var f=b.absolutePoints,m=f[0],f=f[f.length-1];null!=g&&(g=k.transformControlPoint(b,g));null==m&&null!=d&&(m=new mxPoint(d.getCenterX(),d.getCenterY()));null==f&&null!=c&&(f=new mxPoint(c.getCenterX(),c.getCenterY()));var l=Qa.x,p=Qa.y,x=Ra.x,u=Ra.y,t="horizontal"==mxUtils.getValue(b.style,"elbow","horizontal");if(null!=f&&null!=m){b=function(b,d,c){b-=n.x;var g=d-n.y;d=(u*b-x*g)/(l*u-p*x);b=(p*b-l*g)/(p*x-l*u);t?(c&&(n=new mxPoint(n.x+l*d,n.y+
+p*d),e.push(n)),n=new mxPoint(n.x+x*b,n.y+u*b)):(c&&(n=new mxPoint(n.x+x*b,n.y+u*b),e.push(n)),n=new mxPoint(n.x+l*d,n.y+p*d));e.push(n)};var n=m;null==g&&(g=new mxPoint(m.x+(f.x-m.x)/2,m.y+(f.y-m.y)/2));b(g.x,g.y,!0);b(f.x,f.y,!1)}};mxStyleRegistry.putValue("isometricEdgeStyle",mxEdgeStyle.IsometricConnector);var fb=Graph.prototype.createEdgeHandler;Graph.prototype.createEdgeHandler=function(b,d){if(d==mxEdgeStyle.IsometricConnector){var c=new mxElbowEdgeHandler(b);c.snapToTerminals=!1;return c}return fb.apply(this,
arguments)};l.prototype.constraints=[];q.prototype.getConstraints=function(b,d,c){b=[];var g=Math.tan(mxUtils.toRadians(30)),e=(.5-g)/2,g=Math.min(d,c/(.5+g));d=(d-g)/2;c=(c-g)/2;b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,c+.25*g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d+.5*g,c+g*e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d+g,c+.25*g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d+g,c+.75*g));b.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,d+.5*g,c+(1-e)*g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,c+.75*g));return b};p.prototype.getConstraints=function(b,d,c){b=[];var g=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200,g=Math.min(d*Math.tan(g),.5*c);b.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,g));b.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,d,c-g));b.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,c-g));b.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,g));return b};M.prototype.getConstraints=function(b,d,c){b=[];mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE);var g=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"size",this.size))));parseFloat(mxUtils.getValue(this.style,
+0),!1,null,d,c-g));b.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,c-g));b.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,g));return b};N.prototype.getConstraints=function(b,d,c){b=[];mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE);var g=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"size",this.size))));parseFloat(mxUtils.getValue(this.style,
"position",this.position));var e=d*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2))));parseFloat(mxUtils.getValue(this.style,"base",this.base));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1));b.push(new mxConnectionConstraint(new mxPoint(.25,0),!1));b.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));b.push(new mxConnectionConstraint(new mxPoint(.75,0),!1));b.push(new mxConnectionConstraint(new mxPoint(1,0),!1));b.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,d,.5*(c-g)));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,c-g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,e,c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,c-g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(c-g)));d>=2*g&&b.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return b};mxRectangleShape.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(.25,
0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(0,1),!0),new mxConnectionConstraint(new mxPoint(.25,
1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0),new mxConnectionConstraint(new mxPoint(1,1),!0)];mxEllipse.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(0,1),!0),new mxConnectionConstraint(new mxPoint(1,1),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(0,
-.5),!0),new mxConnectionConstraint(new mxPoint(1,.5))];va.prototype.constraints=mxRectangleShape.prototype.constraints;mxImageShape.prototype.constraints=mxRectangleShape.prototype.constraints;mxSwimlane.prototype.constraints=mxRectangleShape.prototype.constraints;T.prototype.constraints=mxRectangleShape.prototype.constraints;mxLabel.prototype.constraints=mxRectangleShape.prototype.constraints;k.prototype.getConstraints=function(b,d,c){b=[];var g=Math.max(0,Math.min(d,Math.min(c,parseFloat(mxUtils.getValue(this.style,
+.5),!0),new mxConnectionConstraint(new mxPoint(1,.5))];xa.prototype.constraints=mxRectangleShape.prototype.constraints;mxImageShape.prototype.constraints=mxRectangleShape.prototype.constraints;mxSwimlane.prototype.constraints=mxRectangleShape.prototype.constraints;V.prototype.constraints=mxRectangleShape.prototype.constraints;mxLabel.prototype.constraints=mxRectangleShape.prototype.constraints;k.prototype.getConstraints=function(b,d,c){b=[];var g=Math.max(0,Math.min(d,Math.min(c,parseFloat(mxUtils.getValue(this.style,
"size",this.size)))));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d-g),0));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-g,0));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-.5*g,.5*g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,.5*(c+g)));b.push(new mxConnectionConstraint(new mxPoint(1,1),!1));b.push(new mxConnectionConstraint(new mxPoint(.5,
1),!1));b.push(new mxConnectionConstraint(new mxPoint(0,1),!1));b.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));d>=2*g&&b.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return b};y.prototype.getConstraints=function(b,d,c){b=[];var g=Math.max(0,Math.min(d,Math.min(c,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));b.push(new mxConnectionConstraint(new mxPoint(1,0),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d+g),0));b.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,g,0));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*g,.5*g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(c+g)));b.push(new mxConnectionConstraint(new mxPoint(0,1),!1));b.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));b.push(new mxConnectionConstraint(new mxPoint(1,1),!1));b.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));d>=2*g&&b.push(new mxConnectionConstraint(new mxPoint(.5,
0),!1));return b};f.prototype.getConstraints=function(b,d,c){b=[];var g=Math.max(0,Math.min(d,Math.min(c,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d-g),0));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-g,0));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-.5*g,.5*g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,g));b.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,d,.5*(c+g)));b.push(new mxConnectionConstraint(new mxPoint(1,1),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d+g),c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,g,c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*g,c-.5*g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,c-g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(c-g)));return b};v.prototype.getConstraints=function(b,d,c){b=[];d=Math.max(0,Math.min(c,
+0),!1,null,d,.5*(c+g)));b.push(new mxConnectionConstraint(new mxPoint(1,1),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d+g),c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,g,c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*g,c-.5*g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,c-g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(c-g)));return b};u.prototype.getConstraints=function(b,d,c){b=[];d=Math.max(0,Math.min(c,
parseFloat(mxUtils.getValue(this.style,"size",this.size))));b.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));b.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));b.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,d));b.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,d));b.push(new mxConnectionConstraint(new mxPoint(1,1),!1,null,0,-d));b.push(new mxConnectionConstraint(new mxPoint(0,
1),!1,null,0,-d));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,d+.5*(.5*c-d)));b.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,d+.5*(.5*c-d)));b.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,c-d-.5*(.5*c-d)));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,c-d-.5*(.5*c-d)));b.push(new mxConnectionConstraint(new mxPoint(.145,0),!1,null,0,.29*d));b.push(new mxConnectionConstraint(new mxPoint(.855,0),!1,null,0,.29*d));b.push(new mxConnectionConstraint(new mxPoint(.855,
1),!1,null,0,.29*-d));b.push(new mxConnectionConstraint(new mxPoint(.145,1),!1,null,0,.29*-d));return b};t.prototype.getConstraints=function(b,d,c){b=[];var g=Math.max(0,Math.min(d,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth)))),e=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?(b.push(new mxConnectionConstraint(new mxPoint(0,0),!1)),b.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,.5*g,0)),b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,g,0)),b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,g,e)),b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d+g),e))):(b.push(new mxConnectionConstraint(new mxPoint(1,0),!1)),b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-.5*g,0)),b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-g,0)),b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-g,e)),b.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,.5*(d-g),e)));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,.25*(c-e)+e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,.5*(c-e)+e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,.75*(c-e)+e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,
-0,.25*(c-e)+e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(c-e)+e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.75*(c-e)+e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,c));b.push(new mxConnectionConstraint(new mxPoint(.25,1),!1));b.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));b.push(new mxConnectionConstraint(new mxPoint(.75,1),!1));return b};ra.prototype.constraints=mxRectangleShape.prototype.constraints;na.prototype.constraints=
-mxRectangleShape.prototype.constraints;Z.prototype.constraints=mxEllipse.prototype.constraints;O.prototype.constraints=mxEllipse.prototype.constraints;Ga.prototype.constraints=mxEllipse.prototype.constraints;Ha.prototype.constraints=mxEllipse.prototype.constraints;pa.prototype.constraints=mxRectangleShape.prototype.constraints;Ca.prototype.constraints=mxRectangleShape.prototype.constraints;Ba.prototype.getConstraints=function(b,d,c){b=[];var g=Math.min(d,c/2),e=Math.min(d-g,Math.max(0,parseFloat(mxUtils.getValue(this.style,
+0,.25*(c-e)+e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(c-e)+e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.75*(c-e)+e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,c));b.push(new mxConnectionConstraint(new mxPoint(.25,1),!1));b.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));b.push(new mxConnectionConstraint(new mxPoint(.75,1),!1));return b};ma.prototype.constraints=mxRectangleShape.prototype.constraints;la.prototype.constraints=
+mxRectangleShape.prototype.constraints;aa.prototype.constraints=mxEllipse.prototype.constraints;R.prototype.constraints=mxEllipse.prototype.constraints;Fa.prototype.constraints=mxEllipse.prototype.constraints;Ba.prototype.constraints=mxEllipse.prototype.constraints;ja.prototype.constraints=mxRectangleShape.prototype.constraints;Ha.prototype.constraints=mxRectangleShape.prototype.constraints;Da.prototype.getConstraints=function(b,d,c){b=[];var g=Math.min(d,c/2),e=Math.min(d-g,Math.max(0,parseFloat(mxUtils.getValue(this.style,
"size",this.size)))*d);b.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,e,0));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(e+d-g),0));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-g,0));b.push(new mxConnectionConstraint(new mxPoint(1,.5),!1,null));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-g,c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(e+d-g),c));b.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,e,c));return b};ha.prototype.getConstraints=function(b,d,c){d=parseFloat(mxUtils.getValue(b,"jettyWidth",ha.prototype.jettyWidth))/2;b=parseFloat(mxUtils.getValue(b,"jettyHeight",ha.prototype.jettyHeight));var g=[new mxConnectionConstraint(new mxPoint(0,0),!1,null,d),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(1,
+0),!1,null,e,c));return b};pa.prototype.getConstraints=function(b,d,c){d=parseFloat(mxUtils.getValue(b,"jettyWidth",pa.prototype.jettyWidth))/2;b=parseFloat(mxUtils.getValue(b,"jettyHeight",pa.prototype.jettyHeight));var g=[new mxConnectionConstraint(new mxPoint(0,0),!1,null,d),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(1,
.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(0,1),!1,null,d),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0),new mxConnectionConstraint(new mxPoint(1,1),!0),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(c-.5*b,1.5*b)),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(c-
-.5*b,3.5*b))];c>5*b&&g.push(new mxConnectionConstraint(new mxPoint(0,.75),!1,null,d));c>8*b&&g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null,d));c>15*b&&g.push(new mxConnectionConstraint(new mxPoint(0,.25),!1,null,d));return g};sa.prototype.constraints=mxRectangleShape.prototype.constraints;ka.prototype.constraints=mxRectangleShape.prototype.constraints;mxCylinder.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.15,.05),!1),new mxConnectionConstraint(new mxPoint(.5,0),!0),
-new mxConnectionConstraint(new mxPoint(.85,.05),!1),new mxConnectionConstraint(new mxPoint(0,.3),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.7),!0),new mxConnectionConstraint(new mxPoint(1,.3),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.7),!0),new mxConnectionConstraint(new mxPoint(.15,.95),!1),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.85,.95),!1)];ja.prototype.constraints=
-[new mxConnectionConstraint(new mxPoint(.25,.1),!1),new mxConnectionConstraint(new mxPoint(.5,0),!1),new mxConnectionConstraint(new mxPoint(.75,.1),!1),new mxConnectionConstraint(new mxPoint(0,1/3),!1),new mxConnectionConstraint(new mxPoint(0,1),!1),new mxConnectionConstraint(new mxPoint(1,1/3),!1),new mxConnectionConstraint(new mxPoint(1,1),!1),new mxConnectionConstraint(new mxPoint(.5,.5),!1)];oa.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,
+.5*b,3.5*b))];c>5*b&&g.push(new mxConnectionConstraint(new mxPoint(0,.75),!1,null,d));c>8*b&&g.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null,d));c>15*b&&g.push(new mxConnectionConstraint(new mxPoint(0,.25),!1,null,d));return g};ua.prototype.constraints=mxRectangleShape.prototype.constraints;fa.prototype.constraints=mxRectangleShape.prototype.constraints;mxCylinder.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.15,.05),!1),new mxConnectionConstraint(new mxPoint(.5,0),!0),
+new mxConnectionConstraint(new mxPoint(.85,.05),!1),new mxConnectionConstraint(new mxPoint(0,.3),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.7),!0),new mxConnectionConstraint(new mxPoint(1,.3),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.7),!0),new mxConnectionConstraint(new mxPoint(.15,.95),!1),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.85,.95),!1)];ea.prototype.constraints=
+[new mxConnectionConstraint(new mxPoint(.25,.1),!1),new mxConnectionConstraint(new mxPoint(.5,0),!1),new mxConnectionConstraint(new mxPoint(.75,.1),!1),new mxConnectionConstraint(new mxPoint(0,1/3),!1),new mxConnectionConstraint(new mxPoint(0,1),!1),new mxConnectionConstraint(new mxPoint(1,1/3),!1),new mxConnectionConstraint(new mxPoint(1,1),!1),new mxConnectionConstraint(new mxPoint(.5,.5),!1)];ha.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,
0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(0,.3),!0),new mxConnectionConstraint(new mxPoint(0,.7),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0)];mxActor.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.5,
-0),!0),new mxConnectionConstraint(new mxPoint(.25,.2),!1),new mxConnectionConstraint(new mxPoint(.1,.5),!1),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(.75,.25),!1),new mxConnectionConstraint(new mxPoint(.9,.5),!1),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0)];u.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,
-0),!1),new mxConnectionConstraint(new mxPoint(.5,.25),!1),new mxConnectionConstraint(new mxPoint(1,0),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.75,.5),!1),new mxConnectionConstraint(new mxPoint(0,1),!1),new mxConnectionConstraint(new mxPoint(.5,.75),!1),new mxConnectionConstraint(new mxPoint(1,1),!1)];F.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.35),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,
-.65),!1),new mxConnectionConstraint(new mxPoint(1,.35),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(1,.65),!1),new mxConnectionConstraint(new mxPoint(.25,1),!1),new mxConnectionConstraint(new mxPoint(.75,0),!1)];K.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,
+0),!0),new mxConnectionConstraint(new mxPoint(.25,.2),!1),new mxConnectionConstraint(new mxPoint(.1,.5),!1),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(.75,.25),!1),new mxConnectionConstraint(new mxPoint(.9,.5),!1),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0)];v.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,
+0),!1),new mxConnectionConstraint(new mxPoint(.5,.25),!1),new mxConnectionConstraint(new mxPoint(1,0),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.75,.5),!1),new mxConnectionConstraint(new mxPoint(0,1),!1),new mxConnectionConstraint(new mxPoint(.5,.75),!1),new mxConnectionConstraint(new mxPoint(1,1),!1)];I.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.35),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,
+.65),!1),new mxConnectionConstraint(new mxPoint(1,.35),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(1,.65),!1),new mxConnectionConstraint(new mxPoint(.25,1),!1),new mxConnectionConstraint(new mxPoint(.75,0),!1)];M.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,
1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0)];mxLine.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.75,
-.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];aa.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.5,0),!1),new mxConnectionConstraint(new mxPoint(.5,1),!1)];mxDoubleEllipse.prototype.constraints=mxEllipse.prototype.constraints;mxRhombus.prototype.constraints=mxEllipse.prototype.constraints;mxTriangle.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(.5,
+.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];ka.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.5,0),!1),new mxConnectionConstraint(new mxPoint(.5,1),!1)];mxDoubleEllipse.prototype.constraints=mxEllipse.prototype.constraints;mxRhombus.prototype.constraints=mxEllipse.prototype.constraints;mxTriangle.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(.5,
0),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0)];mxHexagon.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.375,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.625,0),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,
.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(.375,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.625,1),!0)];mxCloud.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,.25),!1),new mxConnectionConstraint(new mxPoint(.4,.1),!1),new mxConnectionConstraint(new mxPoint(.16,.55),!1),new mxConnectionConstraint(new mxPoint(.07,.4),!1),new mxConnectionConstraint(new mxPoint(.31,.8),!1),new mxConnectionConstraint(new mxPoint(.13,
-.77),!1),new mxConnectionConstraint(new mxPoint(.8,.8),!1),new mxConnectionConstraint(new mxPoint(.55,.95),!1),new mxConnectionConstraint(new mxPoint(.875,.5),!1),new mxConnectionConstraint(new mxPoint(.96,.7),!1),new mxConnectionConstraint(new mxPoint(.625,.2),!1),new mxConnectionConstraint(new mxPoint(.88,.25),!1)];E.prototype.constraints=mxRectangleShape.prototype.constraints;H.prototype.constraints=mxRectangleShape.prototype.constraints;D.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,
-0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0)];mxArrow.prototype.constraints=null;ia.prototype.getConstraints=function(b,d,c){b=[];var g=Math.max(0,
+.77),!1),new mxConnectionConstraint(new mxPoint(.8,.8),!1),new mxConnectionConstraint(new mxPoint(.55,.95),!1),new mxConnectionConstraint(new mxPoint(.875,.5),!1),new mxConnectionConstraint(new mxPoint(.96,.7),!1),new mxConnectionConstraint(new mxPoint(.625,.2),!1),new mxConnectionConstraint(new mxPoint(.88,.25),!1)];F.prototype.constraints=mxRectangleShape.prototype.constraints;E.prototype.constraints=mxRectangleShape.prototype.constraints;D.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,
+0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0)];mxArrow.prototype.constraints=null;oa.prototype.getConstraints=function(b,d,c){b=[];var g=Math.max(0,
Math.min(d,parseFloat(mxUtils.getValue(this.style,"dx",this.dx)))),e=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1));b.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));b.push(new mxConnectionConstraint(new mxPoint(1,0),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,.5*e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,
null,.75*d+.25*g,e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d+g),e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d+g),.5*(c+e)));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d+g),c));b.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d-g),c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d-g),.5*(c+e)));b.push(new mxConnectionConstraint(new mxPoint(0,0),
-!1,null,.5*(d-g),e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.25*d-.25*g,e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*e));return b};R.prototype.getConstraints=function(b,d,c){b=[];var g=Math.max(0,Math.min(d,parseFloat(mxUtils.getValue(this.style,"dx",this.dx)))),e=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));b.push(new mxConnectionConstraint(new mxPoint(0,0),
+!1,null,.5*(d-g),e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.25*d-.25*g,e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*e));return b};ra.prototype.getConstraints=function(b,d,c){b=[];var g=Math.max(0,Math.min(d,parseFloat(mxUtils.getValue(this.style,"dx",this.dx)))),e=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));b.push(new mxConnectionConstraint(new mxPoint(0,0),
!1));b.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));b.push(new mxConnectionConstraint(new mxPoint(1,0),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,.5*e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d+g),e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,g,e));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,g,.5*(c+e)));b.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,g,c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*g,c));b.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,1),!1));return b};qa.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,1),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.5,.5),!1),new mxConnectionConstraint(new mxPoint(.75,
-.5),!1),new mxConnectionConstraint(new mxPoint(1,0),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(1,1),!1)];fa.prototype.getConstraints=function(b,d,c){b=[];var g=c*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth)))),e=d*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",this.arrowSize)))),g=(c-g)/2;b.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,0,g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d-e),g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-e,0));b.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-e,c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d-e),c-g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,c-g));return b};ba.prototype.getConstraints=function(b,d,c){b=[];var g=c*Math.max(0,Math.min(1,
-parseFloat(mxUtils.getValue(this.style,"arrowWidth",fa.prototype.arrowWidth)))),e=d*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",fa.prototype.arrowSize)))),g=(c-g)/2;b.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,e,0));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*d,g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-e,0));b.push(new mxConnectionConstraint(new mxPoint(1,.5),
-!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-e,c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*d,c-g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,e,c));return b};za.prototype.getConstraints=function(b,d,c){b=[];var g=Math.min(c,d),e=Math.max(0,Math.min(g,g*parseFloat(mxUtils.getValue(this.style,"size",this.size)))),g=(c-e)/2,k=g+e,f=(d-e)/2,e=f+e;b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,f,.5*g));b.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,g,c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*g,c));b.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,1),!1));return b};S.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,1),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.5,.5),!1),new mxConnectionConstraint(new mxPoint(.75,
+.5),!1),new mxConnectionConstraint(new mxPoint(1,0),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(1,1),!1)];da.prototype.getConstraints=function(b,d,c){b=[];var g=c*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth)))),e=d*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",this.arrowSize)))),g=(c-g)/2;b.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,0,g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d-e),g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-e,0));b.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-e,c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d-e),c-g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,c-g));return b};Z.prototype.getConstraints=function(b,d,c){b=[];var g=c*Math.max(0,Math.min(1,
+parseFloat(mxUtils.getValue(this.style,"arrowWidth",da.prototype.arrowWidth)))),e=d*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",da.prototype.arrowSize)))),g=(c-g)/2;b.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,e,0));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*d,g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-e,0));b.push(new mxConnectionConstraint(new mxPoint(1,.5),
+!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d-e,c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*d,c-g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,e,c));return b};Ca.prototype.getConstraints=function(b,d,c){b=[];var g=Math.min(c,d),e=Math.max(0,Math.min(g,g*parseFloat(mxUtils.getValue(this.style,"size",this.size)))),g=(c-e)/2,k=g+e,f=(d-e)/2,e=f+e;b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,f,.5*g));b.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,f,0));b.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,e,0));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,e,.5*g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,e,g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,f,c-.5*g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,f,c));b.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));b.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,e,c));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,e,c-.5*g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,e,k));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d+e),g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,g));b.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,d,k));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(d+e),k));b.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,f,k));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*f,g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,g));b.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,k));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*f,k));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,f,g));return b};V.prototype.constraints=null;Aa.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,
-.25),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,.1),!1),new mxConnectionConstraint(new mxPoint(.7,.9),!1)];xa.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.175,.25),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.175,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,
-.1),!1),new mxConnectionConstraint(new mxPoint(.7,.9),!1)];ta.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];ua.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)]})();function Actions(b){this.editorUi=b;this.actions={};this.init()}
+0),!1,null,f,k));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*f,g));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,g));b.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,k));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*f,k));b.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,f,g));return b};X.prototype.constraints=null;ya.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,
+.25),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,.1),!1),new mxConnectionConstraint(new mxPoint(.7,.9),!1)];za.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.175,.25),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.175,.75),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(.7,
+.1),!1),new mxConnectionConstraint(new mxPoint(.7,.9),!1)];na.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];qa.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)]})();function Actions(b){this.editorUi=b;this.actions={};this.init()}
Actions.prototype.init=function(){function b(b){l.escape();b=l.deleteCells(l.getDeletableCells(l.getSelectionCells()),b);null!=b&&l.setSelectionCells(b)}function c(){if(!l.isSelectionEmpty()){l.getModel().beginUpdate();try{for(var b=l.getSelectionCells(),d=0;d<b.length;d++)l.cellLabelChanged(b[d],"")}finally{l.getModel().endUpdate()}}}function e(b,d,c,e,k){k.getModel().beginUpdate();try{var g=k.getCellGeometry(b);null!=g&&c&&e&&(c/=e,g=g.clone(),1<c?g.height=g.width/c:g.width=g.height*c,k.getModel().setGeometry(b,
g));k.setCellStyles(mxConstants.STYLE_CLIP_PATH,d,[b]);k.setCellStyles(mxConstants.STYLE_ASPECT,"fixed",[b])}finally{k.getModel().endUpdate()}}var f=this.editorUi,n=f.editor,l=n.graph,q=function(){return Action.prototype.isEnabled.apply(this,arguments)&&l.isEnabled()};this.addAction("new...",function(){l.openLink(f.getUrl())});this.addAction("open...",function(){window.openNew=!0;window.openKey="open";f.openFile()});this.addAction("smartFit",function(){l.popupMenuHandler.hideMenu();var b=l.view.scale,
d=l.view.translate.x,c=l.view.translate.y;f.actions.get("resetView").funct();1E-5>Math.abs(b-l.view.scale)&&d==l.view.translate.x&&c==l.view.translate.y&&f.actions.get(l.pageVisible?"fitPage":"fitWindow").funct()});this.addAction("keyPressEnter",function(){l.isEnabled()&&(l.isSelectionEmpty()?f.actions.get("smartFit").funct():l.startEditingAtCell())});this.addAction("import...",function(){window.openNew=!1;window.openKey="import";window.openFile=new OpenFile(mxUtils.bind(this,function(){f.hideDialog()}));
-window.openFile.setConsumer(mxUtils.bind(this,function(b,d){try{var c=mxUtils.parseXml(b);n.graph.setSelectionCells(n.graph.importGraphModel(c.documentElement))}catch(v){mxUtils.alert(mxResources.get("invalidOrMissingFile")+": "+v.message)}}));f.showDialog((new OpenDialog(this)).container,320,220,!0,!0,function(){window.openFile=null})}).isEnabled=q;this.addAction("save",function(){f.saveFile(!1)},null,null,Editor.ctrlKey+"+S").isEnabled=q;this.addAction("saveAs...",function(){f.saveFile(!0)},null,
+window.openFile.setConsumer(mxUtils.bind(this,function(b,d){try{var c=mxUtils.parseXml(b);n.graph.setSelectionCells(n.graph.importGraphModel(c.documentElement))}catch(u){mxUtils.alert(mxResources.get("invalidOrMissingFile")+": "+u.message)}}));f.showDialog((new OpenDialog(this)).container,320,220,!0,!0,function(){window.openFile=null})}).isEnabled=q;this.addAction("save",function(){f.saveFile(!1)},null,null,Editor.ctrlKey+"+S").isEnabled=q;this.addAction("saveAs...",function(){f.saveFile(!0)},null,
null,Editor.ctrlKey+"+Shift+S").isEnabled=q;this.addAction("export...",function(){f.showDialog((new ExportDialog(f)).container,300,340,!0,!0)});this.addAction("editDiagram...",function(){var b=new EditDiagramDialog(f);f.showDialog(b.container,620,420,!0,!1);b.init()});this.addAction("pageSetup...",function(){f.showDialog((new PageSetupDialog(f)).container,320,240,!0,!0)}).isEnabled=q;this.addAction("print...",function(){f.showDialog((new PrintDialog(f)).container,300,180,!0,!0)},null,"sprite-print",
Editor.ctrlKey+"+P");this.addAction("preview",function(){mxUtils.show(l,null,10,10)});this.addAction("undo",function(){f.undo()},null,"sprite-undo",Editor.ctrlKey+"+Z");this.addAction("redo",function(){f.redo()},null,"sprite-redo",mxClient.IS_WIN?Editor.ctrlKey+"+Y":Editor.ctrlKey+"+Shift+Z");this.addAction("cut",function(){var b=null;try{b=f.copyXml(),null!=b&&l.removeCells(b,!1)}catch(p){}null==b&&mxClipboard.cut(l)},null,"sprite-cut",Editor.ctrlKey+"+X");this.addAction("copy",function(){try{f.copyXml()}catch(g){}try{mxClipboard.copy(l)}catch(g){f.handleError(g)}},
null,"sprite-copy",Editor.ctrlKey+"+C");this.addAction("paste",function(){if(l.isEnabled()&&!l.isCellLocked(l.getDefaultParent())){var b=!1;try{Editor.enableNativeCipboard&&(f.readGraphModelFromClipboard(function(b){if(null!=b){l.getModel().beginUpdate();try{f.pasteXml(b,!0)}finally{l.getModel().endUpdate()}}else mxClipboard.paste(l)}),b=!0)}catch(p){}b||mxClipboard.paste(l)}},!1,"sprite-paste",Editor.ctrlKey+"+V");this.addAction("pasteHere",function(b){function d(b){if(null!=b){for(var d=!0,c=0;c<
b.length&&d;c++)d=d&&l.model.isEdge(b[c]);var g=l.view.translate,c=l.view.scale,e=g.x,k=g.y,g=null;if(1==b.length&&d){var f=l.getCellGeometry(b[0]);null!=f&&(g=f.getTerminalPoint(!0))}g=null!=g?g:l.getBoundingBoxFromGeometry(b,d);null!=g&&(d=Math.round(l.snap(l.popupMenuHandler.triggerX/c-e)),c=Math.round(l.snap(l.popupMenuHandler.triggerY/c-k)),l.cellsMoved(b,d-g.x,c-g.y))}}function c(){l.getModel().beginUpdate();try{d(mxClipboard.paste(l))}finally{l.getModel().endUpdate()}}if(l.isEnabled()&&!l.isCellLocked(l.getDefaultParent())){b=
-!1;try{Editor.enableNativeCipboard&&(f.readGraphModelFromClipboard(function(b){if(null!=b){l.getModel().beginUpdate();try{d(f.pasteXml(b,!0))}finally{l.getModel().endUpdate()}}else c()}),b=!0)}catch(v){}b||c()}});this.addAction("copySize",function(){var b=l.getSelectionCell();l.isEnabled()&&null!=b&&l.getModel().isVertex(b)&&(b=l.getCellGeometry(b),null!=b&&(f.copiedSize=new mxRectangle(b.x,b.y,b.width,b.height)))},null,null,"Alt+Shift+X");this.addAction("pasteSize",function(){if(l.isEnabled()&&!l.isSelectionEmpty()&&
+!1;try{Editor.enableNativeCipboard&&(f.readGraphModelFromClipboard(function(b){if(null!=b){l.getModel().beginUpdate();try{d(f.pasteXml(b,!0))}finally{l.getModel().endUpdate()}}else c()}),b=!0)}catch(u){}b||c()}});this.addAction("copySize",function(){var b=l.getSelectionCell();l.isEnabled()&&null!=b&&l.getModel().isVertex(b)&&(b=l.getCellGeometry(b),null!=b&&(f.copiedSize=new mxRectangle(b.x,b.y,b.width,b.height)))},null,null,"Alt+Shift+X");this.addAction("pasteSize",function(){if(l.isEnabled()&&!l.isSelectionEmpty()&&
null!=f.copiedSize){l.getModel().beginUpdate();try{for(var b=l.getResizableCells(l.getSelectionCells()),d=0;d<b.length;d++)if(l.getModel().isVertex(b[d])){var c=l.getCellGeometry(b[d]);null!=c&&(c=c.clone(),c.width=f.copiedSize.width,c.height=f.copiedSize.height,l.getModel().setGeometry(b[d],c))}}finally{l.getModel().endUpdate()}}},null,null,"Alt+Shift+V");this.addAction("copyData",function(){var b=l.getSelectionCell()||l.getModel().getRoot();l.isEnabled()&&null!=b&&(b=b.cloneValue(),null==b||isNaN(b.nodeType)||
(f.copiedValue=b))},null,null,"Alt+Shift+B");this.addAction("pasteData",function(b,d){function c(d,c){var e=g.getValue(d);c=d.cloneValue(c);c.removeAttribute("placeholders");null==e||isNaN(e.nodeType)||c.setAttribute("placeholders",e.getAttribute("placeholders"));null!=b&&mxEvent.isShiftDown(b)||c.setAttribute("label",l.convertValueToString(d));g.setValue(d,c)}b=null!=d?d:b;var g=l.getModel();if(l.isEnabled()&&!l.isSelectionEmpty()&&null!=f.copiedValue){g.beginUpdate();try{var e=l.getEditableCells(l.getSelectionCells());
if(0==e.length)c(g.getRoot(),f.copiedValue);else for(var k=0;k<e.length;k++)c(e[k],f.copiedValue)}finally{g.endUpdate()}}},null,null,"Alt+Shift+E");this.addAction("delete",function(d,e){d=null!=e?e:d;null!=d&&mxEvent.isShiftDown(d)?c():b(null!=d&&(mxEvent.isControlDown(d)||mxEvent.isMetaDown(d)||mxEvent.isAltDown(d)))},null,null,"Delete");this.addAction("deleteAll",function(){b(!0)});this.addAction("deleteLabels",function(){c()},null,null,Editor.ctrlKey+"+Delete");this.addAction("duplicate",function(){try{l.setSelectionCells(l.duplicateCells()),
@@ -3057,8 +3057,8 @@ if(null!=b&&l.getModel().isEdge(b)){var d=n.graph.selectionCellsHandler.getHandl
f.actions.get("removeWaypoint");null!=b.handler&&b.handler.removePoint(b.handler.state,b.index)});this.addAction("clearWaypoints",function(b,d){b=null!=d?d:b;var c=l.getSelectionCells();if(null!=c){c=l.getEditableCells(l.addAllEdges(c));l.getModel().beginUpdate();try{for(var g=0;g<c.length;g++){var e=c[g];if(l.getModel().isEdge(e)){var k=l.getCellGeometry(e);null!=d&&mxEvent.isShiftDown(b)?(l.setCellStyles(mxConstants.STYLE_EXIT_X,null,[e]),l.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[e]),l.setCellStyles(mxConstants.STYLE_ENTRY_X,
null,[e]),l.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[e])):null!=k&&(k=k.clone(),k.points=null,k.x=0,k.y=0,k.offset=null,l.getModel().setGeometry(e,k))}}}finally{l.getModel().endUpdate()}}},null,null,"Alt+Shift+C");d=this.addAction("subscript",mxUtils.bind(this,function(){l.cellEditor.isContentEditing()&&document.execCommand("subscript",!1,null)}),null,null,Editor.ctrlKey+"+,");d=this.addAction("superscript",mxUtils.bind(this,function(){l.cellEditor.isContentEditing()&&document.execCommand("superscript",
!1,null)}),null,null,Editor.ctrlKey+"+.");this.addAction("image...",function(){if(l.isEnabled()&&!l.isCellLocked(l.getDefaultParent())){var b=mxResources.get("image")+" ("+mxResources.get("url")+"):",d=l.getView().getState(l.getSelectionCell()),c="",k=null;null!=d&&(c=d.style[mxConstants.STYLE_IMAGE]||c,k=d.style[mxConstants.STYLE_CLIP_PATH]||k);var n=l.cellEditor.saveSelection();f.showImageDialog(b,c,function(b,d,c,g,k,f){if(l.cellEditor.isContentEditing())l.cellEditor.restoreSelection(n),l.insertImage(b,
-d,c);else{var m=l.getSelectionCells();if(null!=b&&(0<b.length||0<m.length)){var p=null;l.getModel().beginUpdate();try{if(0==m.length){var m=[l.insertVertex(l.getDefaultParent(),null,"",0,0,d,c,"shape=image;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;")],v=l.getCenterInsertPoint(l.getBoundingBoxFromGeometry(m,!0));m[0].geometry.x=v.x;m[0].geometry.y=v.y;null!=g&&e(m[0],g,k,f,l);p=m;l.fireEvent(new mxEventObject("cellsInserted","cells",p))}l.setCellStyles(mxConstants.STYLE_IMAGE,
-0<b.length?b:null,m);var t=l.getCurrentCellStyle(m[0]);"image"!=t[mxConstants.STYLE_SHAPE]&&"label"!=t[mxConstants.STYLE_SHAPE]?l.setCellStyles(mxConstants.STYLE_SHAPE,"image",m):0==b.length&&l.setCellStyles(mxConstants.STYLE_SHAPE,null,m);if(1==l.getSelectionCount()&&null!=d&&null!=c){var u=m[0],y=l.getModel().getGeometry(u);null!=y&&(y=y.clone(),y.width=d,y.height=c,l.getModel().setGeometry(u,y));null!=g?e(u,g,k,f,l):l.setCellStyles(mxConstants.STYLE_CLIP_PATH,null,m)}}finally{l.getModel().endUpdate()}null!=
+d,c);else{var m=l.getSelectionCells();if(null!=b&&(0<b.length||0<m.length)){var p=null;l.getModel().beginUpdate();try{if(0==m.length){var m=[l.insertVertex(l.getDefaultParent(),null,"",0,0,d,c,"shape=image;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;")],u=l.getCenterInsertPoint(l.getBoundingBoxFromGeometry(m,!0));m[0].geometry.x=u.x;m[0].geometry.y=u.y;null!=g&&e(m[0],g,k,f,l);p=m;l.fireEvent(new mxEventObject("cellsInserted","cells",p))}l.setCellStyles(mxConstants.STYLE_IMAGE,
+0<b.length?b:null,m);var t=l.getCurrentCellStyle(m[0]);"image"!=t[mxConstants.STYLE_SHAPE]&&"label"!=t[mxConstants.STYLE_SHAPE]?l.setCellStyles(mxConstants.STYLE_SHAPE,"image",m):0==b.length&&l.setCellStyles(mxConstants.STYLE_SHAPE,null,m);if(1==l.getSelectionCount()&&null!=d&&null!=c){var v=m[0],y=l.getModel().getGeometry(v);null!=y&&(y=y.clone(),y.width=d,y.height=c,l.getModel().setGeometry(v,y));null!=g?e(v,g,k,f,l):l.setCellStyles(mxConstants.STYLE_CLIP_PATH,null,m)}}finally{l.getModel().endUpdate()}null!=
p&&(l.setSelectionCells(p),l.scrollCellToVisible(p[0]))}}},l.cellEditor.isContentEditing(),!l.cellEditor.isContentEditing(),!0,k)}}).isEnabled=q;this.addAction("crop...",function(){var b=l.getSelectionCell();if(l.isEnabled()&&!l.isCellLocked(l.getDefaultParent())&&null!=b){var d=l.getCurrentCellStyle(b),c=d[mxConstants.STYLE_IMAGE],k=d[mxConstants.STYLE_SHAPE];c&&"image"==k&&(d=new CropImageDialog(f,c,d[mxConstants.STYLE_CLIP_PATH],function(d,c,g){e(b,d,c,g,l)}),f.showDialog(d.container,300,390,!0,
!0))}}).isEnabled=q;d=this.addAction("layers",mxUtils.bind(this,function(){null==this.layersWindow?(this.layersWindow=new LayersWindow(f,document.body.offsetWidth-280,120,212,200),this.layersWindow.window.addListener("show",mxUtils.bind(this,function(){f.fireEvent(new mxEventObject("layers"));this.layersWindow.window.fit()})),this.layersWindow.window.addListener("hide",function(){f.fireEvent(new mxEventObject("layers"))}),this.layersWindow.window.setVisible(!0),f.fireEvent(new mxEventObject("layers")),
this.layersWindow.init()):this.layersWindow.window.setVisible(!this.layersWindow.window.isVisible())}),null,null,Editor.ctrlKey+"+Shift+L");d.setToggleAction(!0);d.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.layersWindow&&this.layersWindow.window.isVisible()}));d=this.addAction("formatPanel",mxUtils.bind(this,function(){f.toggleFormatPanel()}),null,null,Editor.ctrlKey+"+Shift+P");d.setToggleAction(!0);d.setSelectedCallback(mxUtils.bind(this,function(){return 0<f.formatWidth}));
@@ -3071,9 +3071,9 @@ DrawioFile.prototype.shadowModified=!1;DrawioFile.prototype.data=null;DrawioFile
DrawioFile.prototype.getSize=function(){return null!=this.data?this.data.length:0};DrawioFile.prototype.synchronizeFile=function(b,c){this.savingFile?null!=c&&c({message:mxResources.get("busy")}):null!=this.sync?this.sync.fileChanged(b,c):this.updateFile(b,c)};
DrawioFile.prototype.updateFile=function(b,c,e,f){null!=e&&e()||(this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=c&&c():this.getLatestVersion(mxUtils.bind(this,function(n){try{null!=e&&e()||(this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=c&&c():null!=n?this.mergeFile(n,b,c,f):this.reloadFile(b,c))}catch(l){null!=c&&c(l)}}),c))};
DrawioFile.prototype.mergeFile=function(b,c,e,f){var n=!0;try{this.stats.fileMerged++;var l=null!=this.shadowPages?this.shadowPages:this.ui.getPagesForNode(mxUtils.parseXml(this.shadowData).documentElement),q=this.ui.getPagesForNode(mxUtils.parseXml(b.data).documentElement);if(null!=q&&0<q.length){this.shadowPages=q;this.backupPatch=this.isModified()?this.ui.diffPages(l,this.ui.pages):null;var d=[this.ui.diffPages(null!=f?f:l,this.shadowPages)];if(!this.ignorePatches(d)){var k=this.ui.patchPages(l,
-d[0]);f={};var g=this.ui.getHashValueForPages(k,f),l={},p=this.ui.getHashValueForPages(this.shadowPages,l);"1"==urlParams.test&&EditorUi.debug("File.mergeFile",[this],"backup",this.backupPatch,"patches",d,"checksum",p==g,g);if(null!=g&&g!=p){var m=this.compressReportData(this.getAnonymizedXmlForPages(q)),v=this.compressReportData(this.getAnonymizedXmlForPages(k)),u=this.ui.hashValue(b.getCurrentEtag()),t=this.ui.hashValue(this.getCurrentEtag());this.checksumError(e,d,"Shadow Details: "+JSON.stringify(f)+
-"\nChecksum: "+g+"\nCurrent: "+p+"\nCurrent Details: "+JSON.stringify(l)+"\nFrom: "+u+"\nTo: "+t+"\n\nFile Data:\n"+m+"\nPatched Shadow:\n"+v,null,"mergeFile");return}this.patch(d,DrawioFile.LAST_WRITE_WINS?this.backupPatch:null)}}else throw n=!1,Error(mxResources.get("notADiagramFile"));this.inConflictState=this.invalidChecksum=!1;this.setDescriptor(b.getDescriptor());this.descriptorChanged();this.backupPatch=null;null!=c&&c()}catch(F){this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();
-null!=e&&e(F);try{if(n)if(this.errorReportsEnabled)this.sendErrorReport("Error in mergeFile",null,F);else{var z=this.getCurrentUser(),y=null!=z?z.id:"unknown";EditorUi.logError("Error in mergeFile",null,this.getMode()+"."+this.getId(),y,F)}}catch(D){}}};
+d[0]);f={};var g=this.ui.getHashValueForPages(k,f),l={},p=this.ui.getHashValueForPages(this.shadowPages,l);"1"==urlParams.test&&EditorUi.debug("File.mergeFile",[this],"backup",this.backupPatch,"patches",d,"checksum",p==g,g);if(null!=g&&g!=p){var m=this.compressReportData(this.getAnonymizedXmlForPages(q)),u=this.compressReportData(this.getAnonymizedXmlForPages(k)),v=this.ui.hashValue(b.getCurrentEtag()),t=this.ui.hashValue(this.getCurrentEtag());this.checksumError(e,d,"Shadow Details: "+JSON.stringify(f)+
+"\nChecksum: "+g+"\nCurrent: "+p+"\nCurrent Details: "+JSON.stringify(l)+"\nFrom: "+v+"\nTo: "+t+"\n\nFile Data:\n"+m+"\nPatched Shadow:\n"+u,null,"mergeFile");return}this.patch(d,DrawioFile.LAST_WRITE_WINS?this.backupPatch:null)}}else throw n=!1,Error(mxResources.get("notADiagramFile"));this.inConflictState=this.invalidChecksum=!1;this.setDescriptor(b.getDescriptor());this.descriptorChanged();this.backupPatch=null;null!=c&&c()}catch(I){this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();
+null!=e&&e(I);try{if(n)if(this.errorReportsEnabled)this.sendErrorReport("Error in mergeFile",null,I);else{var z=this.getCurrentUser(),y=null!=z?z.id:"unknown";EditorUi.logError("Error in mergeFile",null,this.getMode()+"."+this.getId(),y,I)}}catch(D){}}};
DrawioFile.prototype.getAnonymizedXmlForPages=function(b){var c=new mxCodec(mxUtils.createXmlDocument()),e=c.document.createElement("mxfile");if(null!=b)for(var f=0;f<b.length;f++){var n=c.encode(new mxGraphModel(b[f].root));"1"!=urlParams.dev&&(n=this.ui.anonymizeNode(n,!0));n.setAttribute("id",b[f].getId());b[f].viewState&&this.ui.editor.graph.saveViewState(b[f].viewState,n,!0);e.appendChild(n)}return mxUtils.getPrettyXml(e)};
DrawioFile.prototype.compressReportData=function(b,c,e){c=null!=c?c:1E4;null!=e&&null!=b&&b.length>e?b=b.substring(0,e)+"[...]":null!=b&&b.length>c&&(b=Graph.compress(b)+"\n");return b};
DrawioFile.prototype.checksumError=function(b,c,e,f,n){this.stats.checksumErrors++;this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=b&&b();try{if(this.errorReportsEnabled){if(null!=c)for(b=0;b<c.length;b++)this.ui.anonymizePatch(c[b]);var l=mxUtils.bind(this,function(b){var d=this.compressReportData(JSON.stringify(c,null,2));b=null!=b?this.compressReportData(this.getAnonymizedXmlForPages(this.ui.getPagesForNode(mxUtils.parseXml(b.data).documentElement)),
@@ -3081,7 +3081,7 @@ DrawioFile.prototype.checksumError=function(b,c,e,f,n){this.stats.checksumErrors
try{EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+this.getHash(),action:n,label:"user_"+d+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")})}catch(k){}}}catch(k){}};
DrawioFile.prototype.sendErrorReport=function(b,c,e,f){try{var n=this.compressReportData(this.getAnonymizedXmlForPages(this.shadowPages),25E3),l=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),q=this.getCurrentUser(),d=null!=q?this.ui.hashValue(q.id):"unknown",k=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",g=this.getTitle(),p=g.lastIndexOf("."),q="xml";0<p&&(q=g.substring(p));var m=null!=e?e.stack:Error().stack;EditorUi.sendReport(b+" "+(new Date).toISOString()+
":\n\nAppVersion="+navigator.appVersion+"\nFile="+this.ui.hashValue(this.getId())+" ("+this.getMode()+")"+(this.isModified()?" modified":"")+"\nSize/Type="+this.getSize()+" ("+q+")\nUser="+d+k+"\nPrefix="+this.ui.editor.graph.model.prefix+"\nSync="+DrawioFile.SYNC+(null!=this.sync?(this.sync.enabled?" enabled":"")+(this.sync.isConnected()?" connected":""):"")+"\nPlugins="+(null!=mxSettings.settings?mxSettings.getPlugins():"null")+"\n\nStats:\n"+JSON.stringify(this.stats,null,2)+(null!=c?"\n\n"+c:
-"")+(null!=e?"\n\nError: "+e.message:"")+"\n\nStack:\n"+m+"\n\nShadow:\n"+n+"\n\nData:\n"+l,f)}catch(v){}};
+"")+(null!=e?"\n\nError: "+e.message:"")+"\n\nStack:\n"+m+"\n\nShadow:\n"+n+"\n\nData:\n"+l,f)}catch(u){}};
DrawioFile.prototype.reloadFile=function(b,c){try{this.ui.spinner.stop();var e=mxUtils.bind(this,function(){this.stats.fileReloaded++;var c=this.ui.editor.graph.getViewState(),e=this.ui.editor.graph.getSelectionCells(),l=this.ui.currentPage;this.ui.loadFile(this.getHash(),!0,null,mxUtils.bind(this,function(){if(null==this.ui.fileLoadedError){this.ui.restoreViewState(l,c,e);null!=this.backupPatch&&this.patch([this.backupPatch]);var f=this.ui.getCurrentFile();null!=f&&(f.stats=this.stats);null!=b&&
b()}}),!0)});this.isModified()&&null==this.backupPatch?this.ui.confirm(mxResources.get("allChangesLost"),mxUtils.bind(this,function(){this.handleFileSuccess("manual"==DrawioFile.SYNC)}),e,mxResources.get("cancel"),mxResources.get("discardChanges")):e()}catch(f){null!=c&&c(f)}};DrawioFile.prototype.copyFile=function(b,c){this.ui.editor.editAsNew(this.ui.getFileData(!0),this.ui.getCopyFilename(this))};
DrawioFile.prototype.ignorePatches=function(b){for(var c=!0,e=0;e<b.length&&c;e++)c=c&&0==Object.keys(b[e]).length;return c};
@@ -3186,7 +3186,7 @@ type:"bool",defVal:!1,isVisible:function(b,d){return 1==b.vertices.length&&0==b.
dispName:"Expand",type:"bool",defVal:!0},{name:"part",dispName:"Part",type:"bool",defVal:!1,isVisible:function(b,d){var c=d.editorUi.editor.graph.model;return 0<b.vertices.length?c.isVertex(c.getParent(b.vertices[0])):!1}},{name:"editable",dispName:"Editable",type:"bool",defVal:!0},{name:"metaEdit",dispName:"Edit Dialog",type:"bool",defVal:!1},{name:"backgroundOutline",dispName:"Background Outline",type:"bool",defVal:!1},{name:"movable",dispName:"Movable",type:"bool",defVal:!0},{name:"movableLabel",
dispName:"Movable Label",type:"bool",defVal:!1,isVisible:function(b,d){var c=0<b.vertices.length?d.editorUi.editor.graph.getCellGeometry(b.vertices[0]):null;return null!=c&&!c.relative}},{name:"resizable",dispName:"Resizable",type:"bool",defVal:!0},{name:"resizeWidth",dispName:"Resize Width",type:"bool",defVal:!1},{name:"resizeHeight",dispName:"Resize Height",type:"bool",defVal:!1},{name:"rotatable",dispName:"Rotatable",type:"bool",defVal:!0},{name:"cloneable",dispName:"Cloneable",type:"bool",defVal:!0},
{name:"deletable",dispName:"Deletable",type:"bool",defVal:!0},{name:"treeFolding",dispName:"Tree Folding",type:"bool",defVal:!1},{name:"treeMoving",dispName:"Tree Moving",type:"bool",defVal:!1},{name:"pointerEvents",dispName:"Pointer Events",type:"bool",defVal:!0,isVisible:function(b,d){var c=mxUtils.getValue(b.style,mxConstants.STYLE_FILLCOLOR,null);return d.editorUi.editor.graph.isSwimlane(b.vertices[0])||null==c||c==mxConstants.NONE||0==mxUtils.getValue(b.style,mxConstants.STYLE_FILL_OPACITY,100)||
-0==mxUtils.getValue(b.style,mxConstants.STYLE_OPACITY,100)||null!=b.style.pointerEvents}},{name:"moveCells",dispName:"Move Cells on Fold",type:"bool",defVal:!1,isVisible:function(b,d){return 0<b.vertices.length&&d.editorUi.editor.graph.isContainer(b.vertices[0])}}].concat(Editor.commonProperties);Editor.defaultCsvValue='##\n## Example CSV import. Use ## for comments and # for configuration. Paste CSV below.\n## The following names are reserved and should not be used (or ignored):\n## id, tooltip, placeholder(s), link and label (see below)\n##\n#\n## Node label with placeholders and HTML.\n## Default is \'%name_of_first_column%\'.\n#\n# label: %name%<br><i style="color:gray;">%position%</i><br><a href="mailto:%email%">Email</a>\n#\n## Node style (placeholders are replaced once).\n## Default is the current style for nodes.\n#\n# style: label;image=%image%;whiteSpace=wrap;html=1;rounded=1;fillColor=%fill%;strokeColor=%stroke%;\n#\n## Parent style for nodes with child nodes (placeholders are replaced once).\n#\n# parentstyle: swimlane;whiteSpace=wrap;html=1;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeLast=0;collapsible=1;\n#\n## Optional column name that contains a reference to a named style in styles.\n## Default is the current style for nodes.\n#\n# stylename: -\n#\n## JSON for named styles of the form {"name": "style", "name": "style"} where style is a cell style with\n## placeholders that are replaced once.\n#\n# styles: -\n#\n## JSON for variables in styles of the form {"name": "value", "name": "value"} where name is a string\n## that will replace a placeholder in a style.\n#\n# vars: -\n#\n## Optional column name that contains a reference to a named label in labels.\n## Default is the current label.\n#\n# labelname: -\n#\n## JSON for named labels of the form {"name": "label", "name": "label"} where label is a cell label with\n## placeholders.\n#\n# labels: -\n#\n## Uses the given column name as the identity for cells (updates existing cells).\n## Default is no identity (empty value or -).\n#\n# identity: -\n#\n## Uses the given column name as the parent reference for cells. Default is no parent (empty or -).\n## The identity above is used for resolving the reference so it must be specified.\n#\n# parent: -\n#\n## Adds a prefix to the identity of cells to make sure they do not collide with existing cells (whose\n## IDs are numbers from 0..n, sometimes with a GUID prefix in the context of realtime collaboration).\n## Default is csvimport-.\n#\n# namespace: csvimport-\n#\n## Connections between rows ("from": source colum, "to": target column).\n## Label, style and invert are optional. Defaults are \'\', current style and false.\n## If placeholders are used in the style, they are replaced with data from the source.\n## An optional placeholders can be set to target to use data from the target instead.\n## In addition to label, an optional fromlabel and tolabel can be used to name the column\n## that contains the text for the label in the edges source or target (invert ignored).\n## In addition to those, an optional source and targetlabel can be used to specify a label\n## that contains placeholders referencing the respective columns in the source or target row.\n## The label is created in the form fromlabel + sourcelabel + label + tolabel + targetlabel.\n## Additional labels can be added by using an optional labels array with entries of the\n## form {"label": string, "x": number, "y": number, "dx": number, "dy": number} where\n## x is from -1 to 1 along the edge, y is orthogonal, and dx/dy are offsets in pixels.\n## An optional placeholders with the string value "source" or "target" can be specified\n## to replace placeholders in the additional label with data from the source or target.\n## The target column may contain a comma-separated list of values.\n## Multiple connect entries are allowed.\n#\n# connect: {"from": "manager", "to": "name", "invert": true, "label": "manages", \\\n# "style": "curved=1;endArrow=blockThin;endFill=1;fontSize=11;"}\n# connect: {"from": "refs", "to": "id", "style": "curved=1;fontSize=11;"}\n#\n## Node x-coordinate. Possible value is a column name. Default is empty. Layouts will\n## override this value.\n#\n# left: \n#\n## Node y-coordinate. Possible value is a column name. Default is empty. Layouts will\n## override this value.\n#\n# top: \n#\n## Node width. Possible value is a number (in px), auto or an @ sign followed by a column\n## name that contains the value for the width. Default is auto.\n#\n# width: auto\n#\n## Node height. Possible value is a number (in px), auto or an @ sign followed by a column\n## name that contains the value for the height. Default is auto.\n#\n# height: auto\n#\n## Padding for autosize. Default is 0.\n#\n# padding: -12\n#\n## Comma-separated list of ignored columns for metadata. (These can be\n## used for connections and styles but will not be added as metadata.)\n#\n# ignore: id,image,fill,stroke,refs,manager\n#\n## Column to be renamed to link attribute (used as link).\n#\n# link: url\n#\n## Spacing between nodes. Default is 40.\n#\n# nodespacing: 40\n#\n## Spacing between levels of hierarchical layouts. Default is 100.\n#\n# levelspacing: 100\n#\n## Spacing between parallel edges. Default is 40. Use 0 to disable.\n#\n# edgespacing: 40\n#\n## Name or JSON of layout. Possible values are auto, none, verticaltree, horizontaltree,\n## verticalflow, horizontalflow, organic, circle or a JSON string as used in Layout, Apply.\n## Default is auto.\n#\n# layout: auto\n#\n## ---- CSV below this line. First line are column names. ----\nname,position,id,location,manager,email,fill,stroke,refs,url,image\nTessa Miller,CFO,emi,Office 1,,me@example.com,#dae8fc,#6c8ebf,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-3-128.png\nEdward Morrison,Brand Manager,emo,Office 2,Tessa Miller,me@example.com,#d5e8d4,#82b366,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-10-3-128.png\nAlison Donovan,System Admin,rdo,Office 3,Tessa Miller,me@example.com,#d5e8d4,#82b366,"emo,tva",https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-2-128.png\nEvan Valet,HR Director,tva,Office 4,Tessa Miller,me@example.com,#d5e8d4,#82b366,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-9-2-128.png\n';
+0==mxUtils.getValue(b.style,mxConstants.STYLE_OPACITY,100)||null!=b.style.pointerEvents}},{name:"moveCells",dispName:"Move Cells on Fold",type:"bool",defVal:!1,isVisible:function(b,d){return 0<b.vertices.length&&d.editorUi.editor.graph.isContainer(b.vertices[0])}}].concat(Editor.commonProperties);Editor.defaultCsvValue='##\n## Example CSV import. Use ## for comments and # for configuration. Paste CSV below.\n## The following names are reserved and should not be used (or ignored):\n## id, tooltip, placeholder(s), link and label (see below)\n##\n#\n## Node label with placeholders and HTML.\n## Default is \'%name_of_first_column%\'.\n#\n# label: %name%<br><i style="color:gray;">%position%</i><br><a href="mailto:%email%">Email</a>\n#\n## Node style (placeholders are replaced once).\n## Default is the current style for nodes.\n#\n# style: label;image=%image%;whiteSpace=wrap;html=1;rounded=1;fillColor=%fill%;strokeColor=%stroke%;\n#\n## Parent style for nodes with child nodes (placeholders are replaced once).\n#\n# parentstyle: swimlane;whiteSpace=wrap;html=1;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeLast=0;collapsible=1;\n#\n## Style to be used for objects not in the CSV. If this is - then such objects are ignored,\n## else they are created using this as their style, eg. whiteSpace=wrap;html=1;\n#\n# unknownStyle: -\n#\n## Optional column name that contains a reference to a named style in styles.\n## Default is the current style for nodes.\n#\n# stylename: -\n#\n## JSON for named styles of the form {"name": "style", "name": "style"} where style is a cell style with\n## placeholders that are replaced once.\n#\n# styles: -\n#\n## JSON for variables in styles of the form {"name": "value", "name": "value"} where name is a string\n## that will replace a placeholder in a style.\n#\n# vars: -\n#\n## Optional column name that contains a reference to a named label in labels.\n## Default is the current label.\n#\n# labelname: -\n#\n## JSON for named labels of the form {"name": "label", "name": "label"} where label is a cell label with\n## placeholders.\n#\n# labels: -\n#\n## Uses the given column name as the identity for cells (updates existing cells).\n## Default is no identity (empty value or -).\n#\n# identity: -\n#\n## Uses the given column name as the parent reference for cells. Default is no parent (empty or -).\n## The identity above is used for resolving the reference so it must be specified.\n#\n# parent: -\n#\n## Adds a prefix to the identity of cells to make sure they do not collide with existing cells (whose\n## IDs are numbers from 0..n, sometimes with a GUID prefix in the context of realtime collaboration).\n## Default is csvimport-.\n#\n# namespace: csvimport-\n#\n## Connections between rows ("from": source colum, "to": target column).\n## Label, style and invert are optional. Defaults are \'\', current style and false.\n## If placeholders are used in the style, they are replaced with data from the source.\n## An optional placeholders can be set to target to use data from the target instead.\n## In addition to label, an optional fromlabel and tolabel can be used to name the column\n## that contains the text for the label in the edges source or target (invert ignored).\n## In addition to those, an optional source and targetlabel can be used to specify a label\n## that contains placeholders referencing the respective columns in the source or target row.\n## The label is created in the form fromlabel + sourcelabel + label + tolabel + targetlabel.\n## Additional labels can be added by using an optional labels array with entries of the\n## form {"label": string, "x": number, "y": number, "dx": number, "dy": number} where\n## x is from -1 to 1 along the edge, y is orthogonal, and dx/dy are offsets in pixels.\n## An optional placeholders with the string value "source" or "target" can be specified\n## to replace placeholders in the additional label with data from the source or target.\n## The target column may contain a comma-separated list of values.\n## Multiple connect entries are allowed.\n#\n# connect: {"from": "manager", "to": "name", "invert": true, "label": "manages", \\\n# "style": "curved=1;endArrow=blockThin;endFill=1;fontSize=11;"}\n# connect: {"from": "refs", "to": "id", "style": "curved=1;fontSize=11;"}\n#\n## Node x-coordinate. Possible value is a column name. Default is empty. Layouts will\n## override this value.\n#\n# left: \n#\n## Node y-coordinate. Possible value is a column name. Default is empty. Layouts will\n## override this value.\n#\n# top: \n#\n## Node width. Possible value is a number (in px), auto or an @ sign followed by a column\n## name that contains the value for the width. Default is auto.\n#\n# width: auto\n#\n## Node height. Possible value is a number (in px), auto or an @ sign followed by a column\n## name that contains the value for the height. Default is auto.\n#\n# height: auto\n#\n## Padding for autosize. Default is 0.\n#\n# padding: -12\n#\n## Comma-separated list of ignored columns for metadata. (These can be\n## used for connections and styles but will not be added as metadata.)\n#\n# ignore: id,image,fill,stroke,refs,manager\n#\n## Column to be renamed to link attribute (used as link).\n#\n# link: url\n#\n## Spacing between nodes. Default is 40.\n#\n# nodespacing: 40\n#\n## Spacing between levels of hierarchical layouts. Default is 100.\n#\n# levelspacing: 100\n#\n## Spacing between parallel edges. Default is 40. Use 0 to disable.\n#\n# edgespacing: 40\n#\n## Name or JSON of layout. Possible values are auto, none, verticaltree, horizontaltree,\n## verticalflow, horizontalflow, organic, circle or a JSON string as used in Layout, Apply.\n## Default is auto.\n#\n# layout: auto\n#\n## ---- CSV below this line. First line are column names. ----\nname,position,id,location,manager,email,fill,stroke,refs,url,image\nTessa Miller,CFO,emi,Office 1,,me@example.com,#dae8fc,#6c8ebf,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-3-128.png\nEdward Morrison,Brand Manager,emo,Office 2,Tessa Miller,me@example.com,#d5e8d4,#82b366,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-10-3-128.png\nAlison Donovan,System Admin,rdo,Office 3,Tessa Miller,me@example.com,#d5e8d4,#82b366,"emo,tva",https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-2-128.png\nEvan Valet,HR Director,tva,Office 4,Tessa Miller,me@example.com,#d5e8d4,#82b366,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-9-2-128.png\n';
Editor.createRoughCanvas=function(b){var d=rough.canvas({getContext:function(){return b}});d.draw=function(d){var c=d.sets||[];d=d.options||this.getDefaultOptions();for(var g=0;g<c.length;g++){var e=c[g];switch(e.type){case "path":null!=d.stroke&&this._drawToContext(b,e,d);break;case "fillPath":this._drawToContext(b,e,d);break;case "fillSketch":this.fillSketch(b,e,d)}}};d.fillSketch=function(d,c,g){var e=b.state.strokeColor,k=b.state.strokeWidth,f=b.state.strokeAlpha,l=b.state.dashed,m=g.fillWeight;
0>m&&(m=g.strokeWidth/2);b.setStrokeAlpha(b.state.fillAlpha);b.setStrokeColor(g.fill||"");b.setStrokeWidth(m);b.setDashed(!1);this._drawToContext(d,c,g);b.setDashed(l);b.setStrokeWidth(k);b.setStrokeColor(e);b.setStrokeAlpha(f)};d._drawToContext=function(b,d,c){b.begin();for(var g=0;g<d.ops.length;g++){var e=d.ops[g],k=e.data;switch(e.op){case "move":b.moveTo(k[0],k[1]);break;case "bcurveTo":b.curveTo(k[0],k[1],k[2],k[3],k[4],k[5]);break;case "lineTo":b.lineTo(k[0],k[1])}}b.end();"fillPath"===d.type&&
c.filled?b.fill():b.stroke()};return d};(function(){function b(d,c,g){this.canvas=d;this.rc=c;this.shape=g;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,b.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,b.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,b.prototype.rect);this.originalRoundrect=this.canvas.roundrect;this.canvas.roundrect=
@@ -3200,7 +3200,7 @@ b.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,
b,this.lastY=d)};b.prototype.moveTo=function(b,d){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,b,d),this.lastX=b,this.lastY=d,this.firstX=b,this.firstY=d)};b.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,arguments):this.addOp(this.closeOp)};b.prototype.quadTo=function(b,d,c,g){this.passThrough?this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,b,d,c,g),this.lastX=c,this.lastY=g)};b.prototype.curveTo=
function(b,d,c,g,e,k){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,b,d,c,g,e,k),this.lastX=e,this.lastY=k)};b.prototype.arcTo=function(b,d,c,g,e,k,f){if(this.passThrough)this.originalArcTo.apply(this.canvas,arguments);else{var m=mxUtils.arcToCurves(this.lastX,this.lastY,b,d,c,g,e,k,f);if(null!=m)for(var l=0;l<m.length;l+=6)this.curveTo(m[l],m[l+1],m[l+2],m[l+3],m[l+4],m[l+5]);this.lastX=k;this.lastY=f}};b.prototype.rect=function(b,d,c,g){this.passThrough?
this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(b,d,c,g,this.getStyle(!0,!0)))};b.prototype.ellipse=function(b,d,c,g){this.passThrough?this.originalEllipse.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(b+c/2,d+g/2,c,g,this.getStyle(!0,!0)))};b.prototype.roundrect=function(b,d,c,g,e,k){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(b+e,d),this.lineTo(b+c-e,d),
-this.quadTo(b+c,d,b+c,d+k),this.lineTo(b+c,d+g-k),this.quadTo(b+c,d+g,b+c-e,d+g),this.lineTo(b+e,d+g),this.quadTo(b,d+g,b,d+g-k),this.lineTo(b,d+k),this.quadTo(b,d,b+e,d))};b.prototype.drawPath=function(b){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),b)}catch(ta){}this.passThrough=!1}else if(null!=this.nextShape){for(var d in b)this.nextShape.options[d]=b[d];null==b.stroke&&delete this.nextShape.options.stroke;b.filled||delete this.nextShape.options.fill;this.passThrough=
+this.quadTo(b+c,d,b+c,d+k),this.lineTo(b+c,d+g-k),this.quadTo(b+c,d+g,b+c-e,d+g),this.lineTo(b+e,d+g),this.quadTo(b,d+g,b,d+g-k),this.lineTo(b,d+k),this.quadTo(b,d,b+e,d))};b.prototype.drawPath=function(b){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),b)}catch(na){}this.passThrough=!1}else if(null!=this.nextShape){for(var d in b)this.nextShape.options[d]=b[d];null==b.stroke&&delete this.nextShape.options.stroke;b.filled||delete this.nextShape.options.fill;this.passThrough=
!0;this.rc.draw(this.nextShape);this.passThrough=!1}};b.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!1))};b.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};b.prototype.fillAndStroke=function(){this.passThrough?this.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};b.prototype.destroy=function(){this.canvas.lineTo=
this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;this.canvas.arcTo=this.originalArcTo;this.canvas.close=this.originalClose;this.canvas.fill=this.originalFill;this.canvas.stroke=this.originalStroke;this.canvas.fillAndStroke=this.originalFillAndStroke;this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=
this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(d){return new b(d,Editor.createRoughCanvas(d),this)};var d=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=function(b){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?d.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(b):this.createRoughCanvas(b)};var c=mxImageShape.prototype.paintVertexShape;
@@ -3230,23 +3230,23 @@ null!=urlParams.edit?decodeURIComponent(urlParams.edit):null;Editor.prototype.cr
c;this.graph.mathEnabled="1"==urlParams.math||"1"==d.getAttribute("math");c=d.getAttribute("backgroundImage");null!=c?this.graph.setBackgroundImage(this.graph.parseBackgroundImage(c)):this.graph.setBackgroundImage(null);mxClient.NO_FO=this.graph.mathEnabled&&!this.useForeignObjectForMath?!0:this.originalNoForeignObject;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();this.graph.setShadowVisible("1"==d.getAttribute("shadow"),
!1);if(c=d.getAttribute("extFonts"))try{for(c=c.split("|").map(function(b){b=b.split("^");return{name:b[0],url:b[1]}}),g=0;g<c.length;g++)this.graph.addExtFont(c[g].name,c[g].url)}catch(ca){console.log("ExtFonts format error: "+ca.message)}else null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(this.graph.extFonts=[])}b.apply(this,arguments)}else throw{message:mxResources.get("notADiagramFile")||"Invalid data",toString:function(){return this.message}};};var c=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=
function(b,d){b=null!=b?b:!0;var g=c.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&g.setAttribute("style",this.graph.currentStyle);var e=this.graph.getBackgroundImageObject(this.graph.backgroundImage,d);null!=e&&g.setAttribute("backgroundImage",JSON.stringify(e));g.setAttribute("math",this.graph.mathEnabled?"1":"0");g.setAttribute("shadow",this.graph.shadowVisible?"1":"0");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(e=this.graph.extFonts.map(function(b){return b.name+
-"^"+b.url}),g.setAttribute("extFonts",e.join("|")));return g};Editor.prototype.isDataSvg=function(b){try{var d=mxUtils.parseXml(b).documentElement.getAttribute("content");if(null!=d&&(null!=d&&"<"!=d.charAt(0)&&"%"!=d.charAt(0)&&(d=unescape(window.atob?atob(d):Base64.decode(cont,d))),null!=d&&"%"==d.charAt(0)&&(d=decodeURIComponent(d)),null!=d&&0<d.length)){var c=mxUtils.parseXml(d).documentElement;return"mxfile"==c.nodeName||"mxGraphModel"==c.nodeName}}catch(V){}return!1};Editor.prototype.extractGraphModel=
+"^"+b.url}),g.setAttribute("extFonts",e.join("|")));return g};Editor.prototype.isDataSvg=function(b){try{var d=mxUtils.parseXml(b).documentElement.getAttribute("content");if(null!=d&&(null!=d&&"<"!=d.charAt(0)&&"%"!=d.charAt(0)&&(d=unescape(window.atob?atob(d):Base64.decode(cont,d))),null!=d&&"%"==d.charAt(0)&&(d=decodeURIComponent(d)),null!=d&&0<d.length)){var c=mxUtils.parseXml(d).documentElement;return"mxfile"==c.nodeName||"mxGraphModel"==c.nodeName}}catch(X){}return!1};Editor.prototype.extractGraphModel=
function(b,d,c){return Editor.extractGraphModel.apply(this,arguments)};var e=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.graph.view.x0=null;this.graph.view.y0=null;mxClient.NO_FO=this.graph.mathEnabled&&!this.useForeignObjectForMath?!0:this.originalNoForeignObject;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();e.apply(this,arguments)};
var f=Editor.prototype.updateGraphComponents;Editor.prototype.updateGraphComponents=function(){f.apply(this,arguments);mxClient.NO_FO=this.graph.mathEnabled&&!this.useForeignObjectForMath&&null!=Editor.MathJaxRender?!0:this.originalNoForeignObject;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.mathJaxWebkitCss="div.MathJax_SVG_Display { position: static; }\nspan.MathJax_SVG { position: static !important; }";
Editor.initMath=function(b,d){if("undefined"===typeof window.MathJax){b=(null!=b?b:DRAW_MATH_URL+"/MathJax.js")+"?config=TeX-MML-AM_"+("html"==urlParams["math-output"]?"HTMLorMML":"SVG")+"-full";Editor.mathJaxQueue=[];Editor.doMathJaxRender=function(b){window.setTimeout(function(){"hidden"!=b.style.visibility&&MathJax.Hub.Queue(["Typeset",MathJax.Hub,b])},0)};var c=null!=urlParams["math-font"]?decodeURIComponent(urlParams["math-font"]):"TeX";d=null!=d?d:{"HTML-CSS":{availableFonts:[c],imageFont:null},
SVG:{font:c,useFontCache:!1},tex2jax:{ignoreClass:"mxCellEditor"},asciimath2jax:{ignoreClass:"mxCellEditor"}};window.MathJax={skipStartupTypeset:!0,showMathMenu:!1,messageStyle:"none",AuthorInit:function(){MathJax.Hub.Config(d);MathJax.Hub.Register.StartupHook("Begin",function(){for(var b=0;b<Editor.mathJaxQueue.length;b++)Editor.doMathJaxRender(Editor.mathJaxQueue[b])})}};Editor.MathJaxRender=function(b){"undefined"!==typeof MathJax&&"undefined"!==typeof MathJax.Hub?Editor.doMathJaxRender(b):Editor.mathJaxQueue.push(b)};
Editor.MathJaxClear=function(){Editor.mathJaxQueue=[]};var g=Editor.prototype.init;Editor.prototype.init=function(){g.apply(this,arguments);this.graph.addListener(mxEvent.SIZE,mxUtils.bind(this,function(b,d){null!=this.graph.container&&this.graph.mathEnabled&&!this.graph.blockMathRender&&Editor.MathJaxRender(this.graph.container)}))};c=document.getElementsByTagName("script");if(null!=c&&0<c.length){var e=document.createElement("script");e.setAttribute("type","text/javascript");e.setAttribute("src",
-b);c[0].parentNode.appendChild(e)}try{if(mxClient.IS_GC||mxClient.IS_SF){var k=document.createElement("style");k.type="text/css";k.innerHTML=Editor.mathJaxWebkitCss;document.getElementsByTagName("head")[0].appendChild(k)}}catch(da){}}};Editor.prototype.csvToArray=function(b){if(!/^\s*(?:'[^'\\]*(?:\\[\S\s][^'\\]*)*'|"[^"\\]*(?:\\[\S\s][^"\\]*)*"|[^,'"\s\\]*(?:\s+[^,'"\s\\]+)*)\s*(?:,\s*(?:'[^'\\]*(?:\\[\S\s][^'\\]*)*'|"[^"\\]*(?:\\[\S\s][^"\\]*)*"|[^,'"\s\\]*(?:\s+[^,'"\s\\]+)*)\s*)*$/.test(b))return null;
+b);c[0].parentNode.appendChild(e)}try{if(mxClient.IS_GC||mxClient.IS_SF){var k=document.createElement("style");k.type="text/css";k.innerHTML=Editor.mathJaxWebkitCss;document.getElementsByTagName("head")[0].appendChild(k)}}catch(K){}}};Editor.prototype.csvToArray=function(b){if(!/^\s*(?:'[^'\\]*(?:\\[\S\s][^'\\]*)*'|"[^"\\]*(?:\\[\S\s][^"\\]*)*"|[^,'"\s\\]*(?:\s+[^,'"\s\\]+)*)\s*(?:,\s*(?:'[^'\\]*(?:\\[\S\s][^'\\]*)*'|"[^"\\]*(?:\\[\S\s][^"\\]*)*"|[^,'"\s\\]*(?:\s+[^,'"\s\\]+)*)\s*)*$/.test(b))return null;
var d=[];b.replace(/(?!\s*$)\s*(?:'([^'\\]*(?:\\[\S\s][^'\\]*)*)'|"([^"\\]*(?:\\[\S\s][^"\\]*)*)"|([^,'"\s\\]*(?:\s+[^,'"\s\\]+)*))\s*(?:,|$)/g,function(b,c,g,e){void 0!==c?d.push(c.replace(/\\'/g,"'")):void 0!==g?d.push(g.replace(/\\"/g,'"')):void 0!==e&&d.push(e);return""});/,\s*$/.test(b)&&d.push("");return d};Editor.prototype.isCorsEnabledForUrl=function(b){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||b.substring(0,window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&
null==this.corsRegExp&&(this.corsRegExp=new RegExp(decodeURIComponent(urlParams.cors)));return null!=this.corsRegExp&&this.corsRegExp.test(b)||"https://raw.githubusercontent.com/"===b.substring(0,34)||"https://fonts.googleapis.com/"===b.substring(0,29)||"https://fonts.gstatic.com/"===b.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var b=new mxUrlConverter;b.updateBaseUrl();var d=b.convert,c=this;b.convert=function(g){if(null!=g){var e="http://"==g.substring(0,7)||"https://"==
g.substring(0,8);e&&!navigator.onLine?g=Editor.svgBrokenImage.src:!e||g.substring(0,b.baseUrl.length)==b.baseUrl||c.crossOriginImages&&c.isCorsEnabledForUrl(g)?"chrome-extension://"==g.substring(0,19)||mxClient.IS_CHROMEAPP||(g=d.apply(this,arguments)):g=PROXY_URL+"?url="+encodeURIComponent(g)}return g};return b};Editor.createSvgDataUri=function(b){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(b)))};Editor.prototype.convertImageToDataUri=function(b,d){try{var c=!0,g=window.setTimeout(mxUtils.bind(this,
function(){c=!1;d(Editor.svgBrokenImage.src)}),this.timeout);if(/(\.svg)$/i.test(b))mxUtils.get(b,mxUtils.bind(this,function(b){window.clearTimeout(g);c&&d(Editor.createSvgDataUri(b.getText()))}),function(){window.clearTimeout(g);c&&d(Editor.svgBrokenImage.src)});else{var e=new Image;this.crossOriginImages&&(e.crossOrigin="anonymous");e.onload=function(){window.clearTimeout(g);if(c)try{var b=document.createElement("canvas"),k=b.getContext("2d");b.height=e.height;b.width=e.width;k.drawImage(e,0,0);
-d(b.toDataURL())}catch(ta){d(Editor.svgBrokenImage.src)}};e.onerror=function(){window.clearTimeout(g);c&&d(Editor.svgBrokenImage.src)};e.src=b}}catch(aa){d(Editor.svgBrokenImage.src)}};Editor.prototype.convertImages=function(b,d,c,g){null==g&&(g=this.createImageUrlConverter());var e=0,k=c||{};c=mxUtils.bind(this,function(c,f){for(var m=b.getElementsByTagName(c),l=0;l<m.length;l++)mxUtils.bind(this,function(c){try{if(null!=c){var m=g.convert(c.getAttribute(f));if(null!=m&&"data:"!=m.substring(0,5)){var l=
-k[m];null==l?(e++,this.convertImageToDataUri(m,function(g){null!=g&&(k[m]=g,c.setAttribute(f,g));e--;0==e&&d(b)})):c.setAttribute(f,l)}else null!=m&&c.setAttribute(f,m)}}catch(ea){}})(m[l])});c("image","xlink:href");c("img","src");0==e&&d(b)};Editor.base64Encode=function(b){for(var d="",c=0,g=b.length,e,k,f;c<g;){e=b.charCodeAt(c++)&255;if(c==g){d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e>>2);d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((e&
+d(b.toDataURL())}catch(na){d(Editor.svgBrokenImage.src)}};e.onerror=function(){window.clearTimeout(g);c&&d(Editor.svgBrokenImage.src)};e.src=b}}catch(ka){d(Editor.svgBrokenImage.src)}};Editor.prototype.convertImages=function(b,d,c,g){null==g&&(g=this.createImageUrlConverter());var e=0,k=c||{};c=mxUtils.bind(this,function(c,f){for(var m=b.getElementsByTagName(c),l=0;l<m.length;l++)mxUtils.bind(this,function(c){try{if(null!=c){var m=g.convert(c.getAttribute(f));if(null!=m&&"data:"!=m.substring(0,5)){var l=
+k[m];null==l?(e++,this.convertImageToDataUri(m,function(g){null!=g&&(k[m]=g,c.setAttribute(f,g));e--;0==e&&d(b)})):c.setAttribute(f,l)}else null!=m&&c.setAttribute(f,m)}}catch(Q){}})(m[l])});c("image","xlink:href");c("img","src");0==e&&d(b)};Editor.base64Encode=function(b){for(var d="",c=0,g=b.length,e,k,f;c<g;){e=b.charCodeAt(c++)&255;if(c==g){d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e>>2);d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((e&
3)<<4);d+="==";break}k=b.charCodeAt(c++);if(c==g){d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e>>2);d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((e&3)<<4|(k&240)>>4);d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((k&15)<<2);d+="=";break}f=b.charCodeAt(c++);d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e>>2);d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((e&
3)<<4|(k&240)>>4);d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((k&15)<<2|(f&192)>>6);d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f&63)}return d};Editor.prototype.loadUrl=function(b,d,c,g,e,k,f,m){try{var l=!f&&(g||/(\.png)($|\?)/i.test(b)||/(\.jpe?g)($|\?)/i.test(b)||/(\.gif)($|\?)/i.test(b)||/(\.pdf)($|\?)/i.test(b));e=null!=e?e:!0;var p=mxUtils.bind(this,function(){mxUtils.get(b,mxUtils.bind(this,function(b){if(200<=b.getStatus()&&
299>=b.getStatus()){if(null!=d){var g=b.getText();if(l){if((9==document.documentMode||10==document.documentMode)&&"undefined"!==typeof window.mxUtilsBinaryToArray){b=mxUtilsBinaryToArray(b.request.responseBody).toArray();for(var g=Array(b.length),e=0;e<b.length;e++)g[e]=String.fromCharCode(b[e]);g=g.join("")}k=null!=k?k:"data:image/png;base64,";g=k+Editor.base64Encode(g)}d(g)}}else null!=c&&(0==b.getStatus()?c({message:mxResources.get("accessDenied")},b):c({message:mxResources.get("error")+" "+b.getStatus()},
-b))}),function(b){null!=c&&c({message:mxResources.get("error")+" "+b.getStatus()})},l,this.timeout,function(){e&&null!=c&&c({code:App.ERROR_TIMEOUT,retry:p})},m)});p()}catch(oa){null!=c&&c(oa)}};Editor.prototype.absoluteCssFonts=function(b){var d=null;if(null!=b){var c=b.split("url(");if(0<c.length){d=[c[0]];b=window.location.pathname;var g=null!=b?b.lastIndexOf("/"):-1;0<=g&&(b=b.substring(0,g+1));var g=document.getElementsByTagName("base"),e=null;null!=g&&0<g.length&&(e=g[0].getAttribute("href"));
+b))}),function(b){null!=c&&c({message:mxResources.get("error")+" "+b.getStatus()})},l,this.timeout,function(){e&&null!=c&&c({code:App.ERROR_TIMEOUT,retry:p})},m)});p()}catch(ha){null!=c&&c(ha)}};Editor.prototype.absoluteCssFonts=function(b){var d=null;if(null!=b){var c=b.split("url(");if(0<c.length){d=[c[0]];b=window.location.pathname;var g=null!=b?b.lastIndexOf("/"):-1;0<=g&&(b=b.substring(0,g+1));var g=document.getElementsByTagName("base"),e=null;null!=g&&0<g.length&&(e=g[0].getAttribute("href"));
for(var k=1;k<c.length;k++)if(g=c[k].indexOf(")"),0<g){var f=Editor.trimCssUrl(c[k].substring(0,g));this.graph.isRelativeUrl(f)&&(f=null!=e?e+f:window.location.protocol+"//"+window.location.hostname+("/"==f.charAt(0)?"":b)+f);d.push('url("'+f+'"'+c[k].substring(g))}else d.push(c[k])}else d=[b]}return null!=d?d.join(""):null};Editor.prototype.mapFontUrl=function(b,d,c){/^https?:\/\//.test(d)&&!this.isCorsEnabledForUrl(d)&&(d=PROXY_URL+"?url="+encodeURIComponent(d));c(b,d)};Editor.prototype.embedCssFonts=
function(b,d){var c=b.split("url("),g=0;null==this.cachedFonts&&(this.cachedFonts={});var e=mxUtils.bind(this,function(){if(0==g){for(var b=[c[0]],e=1;e<c.length;e++){var k=c[e].indexOf(")");b.push('url("');b.push(this.cachedFonts[Editor.trimCssUrl(c[e].substring(0,k))]);b.push('"'+c[e].substring(k))}d(b.join(""))}});if(0<c.length){for(var k=1;k<c.length;k++){var f=c[k].indexOf(")"),m=null,l=c[k].indexOf("format(",f);0<l&&(m=Editor.trimCssUrl(c[k].substring(l+7,c[k].indexOf(")",l))));mxUtils.bind(this,
function(b){if(null==this.cachedFonts[b]){this.cachedFonts[b]=b;g++;var d="application/x-font-ttf";if("svg"==m||/(\.svg)($|\?)/i.test(b))d="image/svg+xml";else if("otf"==m||"embedded-opentype"==m||/(\.otf)($|\?)/i.test(b))d="application/x-font-opentype";else if("woff"==m||/(\.woff)($|\?)/i.test(b))d="application/font-woff";else if("woff2"==m||/(\.woff2)($|\?)/i.test(b))d="application/font-woff2";else if("eot"==m||/(\.eot)($|\?)/i.test(b))d="application/vnd.ms-fontobject";else if("sfnt"==m||/(\.sfnt)($|\?)/i.test(b))d=
@@ -3254,18 +3254,18 @@ function(b){if(null==this.cachedFonts[b]){this.cachedFonts[b]=b;g++;var d="appli
Editor.prototype.createGoogleFontCache=function(){var b={},d;for(d in Graph.fontMapping)Graph.isCssFontUrl(d)&&(b[d]=Graph.fontMapping[d]);return b};Editor.prototype.embedExtFonts=function(b){var d=this.graph.getCustomFonts();if(0<d.length){var c="",g=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var e=mxUtils.bind(this,function(){0==g&&this.embedCssFonts(c,b)}),k=0;k<d.length;k++)mxUtils.bind(this,function(b,d){Graph.isCssFontUrl(d)?null==this.cachedGoogleFonts[d]?
(g++,this.loadUrl(d,mxUtils.bind(this,function(b){this.cachedGoogleFonts[d]=b;c+=b;g--;e()}),mxUtils.bind(this,function(b){g--;c+="@import url("+d+");";e()}))):c+=this.cachedGoogleFonts[d]:c+='@font-face {font-family: "'+b+'";src: url("'+d+'")}'})(d[k].name,d[k].url);e()}else b()};Editor.prototype.addMathCss=function(b){b=b.getElementsByTagName("defs");if(null!=b&&0<b.length)for(var d=document.getElementsByTagName("style"),c=0;c<d.length;c++){var g=mxUtils.getTextContent(d[c]);0>g.indexOf("mxPageSelector")&&
0<g.indexOf("MathJax")&&b[0].appendChild(d[c].cloneNode(!0))}};Editor.prototype.addFontCss=function(b,d){d=null!=d?d:this.absoluteCssFonts(this.fontCss);if(null!=d){var c=b.getElementsByTagName("defs"),g=b.ownerDocument;0==c.length?(c=null!=g.createElementNS?g.createElementNS(mxConstants.NS_SVG,"defs"):g.createElement("defs"),null!=b.firstChild?b.insertBefore(c,b.firstChild):b.appendChild(c)):c=c[0];g=null!=g.createElementNS?g.createElementNS(mxConstants.NS_SVG,"style"):g.createElement("style");g.setAttribute("type",
-"text/css");mxUtils.setTextContent(g,d);c.appendChild(g)}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(b,d,c){var g=mxClient.IS_FF?8192:16384;return Math.min(c,Math.min(g/b,g/d))};Editor.prototype.exportToCanvas=function(b,d,c,g,e,k,f,m,l,p,v,n,t,u,y,z,q,A){try{k=null!=k?k:!0;f=null!=f?f:!0;n=null!=n?n:this.graph;t=null!=t?t:0;var x=l?null:n.background;x==mxConstants.NONE&&(x=null);null==x&&(x=g);null==
-x&&0==l&&(x=z?this.graph.defaultPageBackgroundColor:"#ffffff");this.convertImages(n.getSvg(null,null,t,u,null,f,null,null,null,p,null,z,q,A),mxUtils.bind(this,function(c){try{var g=new Image;g.onload=mxUtils.bind(this,function(){try{var f=function(){mxClient.IS_SF?window.setTimeout(function(){u.drawImage(g,0,0);b(l,c)},0):(u.drawImage(g,0,0),b(l,c))},l=document.createElement("canvas"),p=parseInt(c.getAttribute("width")),v=parseInt(c.getAttribute("height"));m=null!=m?m:1;null!=d&&(m=k?Math.min(1,Math.min(3*
-d/(4*v),d/p)):d/p);m=this.getMaxCanvasScale(p,v,m);p=Math.ceil(m*p);v=Math.ceil(m*v);l.setAttribute("width",p);l.setAttribute("height",v);var u=l.getContext("2d");null!=x&&(u.beginPath(),u.rect(0,0,p,v),u.fillStyle=x,u.fill());1!=m&&u.scale(m,m);if(y){var z=n.view,q=z.scale;z.scale=1;var A=btoa(unescape(encodeURIComponent(z.createSvgGrid(z.gridColor))));z.scale=q;var A="data:image/svg+xml;base64,"+A,C=n.gridSize*z.gridSteps*m,K=n.getGraphBounds(),da=z.translate.x*q,J=z.translate.y*q,G=da+(K.x-da)/
-q-t,P=J+(K.y-J)/q-t,M=new Image;M.onload=function(){try{for(var b=-Math.round(C-mxUtils.mod((da-G)*m,C)),d=-Math.round(C-mxUtils.mod((J-P)*m,C));b<p;b+=C)for(var c=d;c<v;c+=C)u.drawImage(M,b/m,c/m);f()}catch(Fa){null!=e&&e(Fa)}};M.onerror=function(b){null!=e&&e(b)};M.src=A}else f()}catch(za){null!=e&&e(za)}});g.onerror=function(b){null!=e&&e(b)};p&&this.graph.addSvgShadow(c);this.graph.mathEnabled&&this.addMathCss(c);var f=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(c,
-this.resolvedFontCss),g.src=Editor.createSvgDataUri(mxUtils.getXml(c))}catch(ba){null!=e&&e(ba)}});this.embedExtFonts(mxUtils.bind(this,function(b){try{null!=b&&this.addFontCss(c,b),this.loadFonts(f)}catch(na){null!=e&&e(na)}}))}catch(ba){null!=e&&e(ba)}}),c,v)}catch(qa){null!=e&&e(qa)}};Editor.crcTable=[];for(var n=0;256>n;n++)for(var l=n,q=0;8>q;q++)l=1==(l&1)?3988292384^l>>>1:l>>>1,Editor.crcTable[n]=l;Editor.updateCRC=function(b,d,c,g){for(var e=0;e<g;e++)b=Editor.crcTable[(b^d.charCodeAt(c+e))&
-255]^b>>>8;return b};Editor.crc32=function(b){for(var d=-1,c=0;c<b.length;c++)d=d>>>8^Editor.crcTable[(d^b.charCodeAt(c))&255];return(d^-1)>>>0};Editor.writeGraphModelToPng=function(b,d,c,g,e){function k(b,d){var c=l;l+=d;return b.substring(c,l)}function f(b){b=k(b,4);return b.charCodeAt(3)+(b.charCodeAt(2)<<8)+(b.charCodeAt(1)<<16)+(b.charCodeAt(0)<<24)}function m(b){return String.fromCharCode(b>>24&255,b>>16&255,b>>8&255,b&255)}b=b.substring(b.indexOf(",")+1);b=window.atob?atob(b):Base64.decode(b,
-!0);var l=0;if(k(b,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=e&&e();else if(k(b,4),"IHDR"!=k(b,4))null!=e&&e();else{k(b,17);e=b.substring(0,l);do{var p=f(b);if("IDAT"==k(b,4)){e=b.substring(0,l-8);"pHYs"==d&&"dpi"==c?(c=Math.round(g/.0254),c=m(c)+m(c)+String.fromCharCode(1)):c=c+String.fromCharCode(0)+("zTXt"==d?String.fromCharCode(0):"")+g;g=4294967295;g=Editor.updateCRC(g,d,0,4);g=Editor.updateCRC(g,c,0,c.length);e+=m(c.length)+d+c+m(g^4294967295);e+=b.substring(l-
-8,b.length);break}e+=b.substring(l-8,l-4+p);k(b,p);k(b,4)}while(p);return"data:image/png;base64,"+(window.btoa?btoa(e):Base64.encode(e,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.diagrams.net/doc/faq/save-file-formats";var d=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(b,c){d.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var k=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){k.apply(this,
+"text/css");mxUtils.setTextContent(g,d);c.appendChild(g)}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(b,d,c){var g=mxClient.IS_FF?8192:16384;return Math.min(c,Math.min(g/b,g/d))};Editor.prototype.exportToCanvas=function(b,d,c,g,e,k,f,m,l,p,u,n,t,v,y,z,q,B){try{k=null!=k?k:!0;f=null!=f?f:!0;n=null!=n?n:this.graph;t=null!=t?t:0;var x=l?null:n.background;x==mxConstants.NONE&&(x=null);null==x&&(x=g);null==
+x&&0==l&&(x=z?this.graph.defaultPageBackgroundColor:"#ffffff");this.convertImages(n.getSvg(null,null,t,v,null,f,null,null,null,p,null,z,q,B),mxUtils.bind(this,function(c){try{var g=new Image;g.onload=mxUtils.bind(this,function(){try{var f=function(){mxClient.IS_SF?window.setTimeout(function(){v.drawImage(g,0,0);b(l,c)},0):(v.drawImage(g,0,0),b(l,c))},l=document.createElement("canvas"),p=parseInt(c.getAttribute("width")),u=parseInt(c.getAttribute("height"));m=null!=m?m:1;null!=d&&(m=k?Math.min(1,Math.min(3*
+d/(4*u),d/p)):d/p);m=this.getMaxCanvasScale(p,u,m);p=Math.ceil(m*p);u=Math.ceil(m*u);l.setAttribute("width",p);l.setAttribute("height",u);var v=l.getContext("2d");null!=x&&(v.beginPath(),v.rect(0,0,p,u),v.fillStyle=x,v.fill());1!=m&&v.scale(m,m);if(y){var z=n.view,q=z.scale;z.scale=1;var C=btoa(unescape(encodeURIComponent(z.createSvgGrid(z.gridColor))));z.scale=q;var C="data:image/svg+xml;base64,"+C,B=n.gridSize*z.gridSteps*m,K=n.getGraphBounds(),M=z.translate.x*q,J=z.translate.y*q,G=M+(K.x-M)/q-
+t,P=J+(K.y-J)/q-t,N=new Image;N.onload=function(){try{for(var b=-Math.round(B-mxUtils.mod((M-G)*m,B)),d=-Math.round(B-mxUtils.mod((J-P)*m,B));b<p;b+=B)for(var c=d;c<u;c+=B)v.drawImage(N,b/m,c/m);f()}catch(Ea){null!=e&&e(Ea)}};N.onerror=function(b){null!=e&&e(b)};N.src=C}else f()}catch(Ca){null!=e&&e(Ca)}});g.onerror=function(b){null!=e&&e(b)};p&&this.graph.addSvgShadow(c);this.graph.mathEnabled&&this.addMathCss(c);var f=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(c,
+this.resolvedFontCss),g.src=Editor.createSvgDataUri(mxUtils.getXml(c))}catch(Z){null!=e&&e(Z)}});this.embedExtFonts(mxUtils.bind(this,function(b){try{null!=b&&this.addFontCss(c,b),this.loadFonts(f)}catch(la){null!=e&&e(la)}}))}catch(Z){null!=e&&e(Z)}}),c,u)}catch(S){null!=e&&e(S)}};Editor.crcTable=[];for(var n=0;256>n;n++)for(var l=n,q=0;8>q;q++)l=1==(l&1)?3988292384^l>>>1:l>>>1,Editor.crcTable[n]=l;Editor.updateCRC=function(b,d,c,g){for(var e=0;e<g;e++)b=Editor.crcTable[(b^d.charCodeAt(c+e))&255]^
+b>>>8;return b};Editor.crc32=function(b){for(var d=-1,c=0;c<b.length;c++)d=d>>>8^Editor.crcTable[(d^b.charCodeAt(c))&255];return(d^-1)>>>0};Editor.writeGraphModelToPng=function(b,d,c,g,e){function k(b,d){var c=l;l+=d;return b.substring(c,l)}function f(b){b=k(b,4);return b.charCodeAt(3)+(b.charCodeAt(2)<<8)+(b.charCodeAt(1)<<16)+(b.charCodeAt(0)<<24)}function m(b){return String.fromCharCode(b>>24&255,b>>16&255,b>>8&255,b&255)}b=b.substring(b.indexOf(",")+1);b=window.atob?atob(b):Base64.decode(b,!0);
+var l=0;if(k(b,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=e&&e();else if(k(b,4),"IHDR"!=k(b,4))null!=e&&e();else{k(b,17);e=b.substring(0,l);do{var p=f(b);if("IDAT"==k(b,4)){e=b.substring(0,l-8);"pHYs"==d&&"dpi"==c?(c=Math.round(g/.0254),c=m(c)+m(c)+String.fromCharCode(1)):c=c+String.fromCharCode(0)+("zTXt"==d?String.fromCharCode(0):"")+g;g=4294967295;g=Editor.updateCRC(g,d,0,4);g=Editor.updateCRC(g,c,0,c.length);e+=m(c.length)+d+c+m(g^4294967295);e+=b.substring(l-8,
+b.length);break}e+=b.substring(l-8,l-4+p);k(b,p);k(b,4)}while(p);return"data:image/png;base64,"+(window.btoa?btoa(e):Base64.encode(e,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.diagrams.net/doc/faq/save-file-formats";var d=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(b,c){d.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var k=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){k.apply(this,
arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(b,d){var c=null;null!=b.editor.graph.getModel().getParent(d)?c=d.getId():null!=b.currentPage&&(c=b.currentPage.getId());return c});if(null!=window.StyleFormatPanel){var g=Format.prototype.init;Format.prototype.init=function(){g.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded",this.update)};var p=Format.prototype.refresh;Format.prototype.refresh=
function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?p.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isShadowOptionVisible=function(){var b=this.editorUi.getCurrentFile();return"1"==urlParams.embed||null!=b&&b.isEditable()};DiagramFormatPanel.prototype.isMathOptionVisible=function(b){return!1};var m=DiagramFormatPanel.prototype.addView;DiagramFormatPanel.prototype.addView=function(b){b=m.apply(this,arguments);this.editorUi.getCurrentFile();
if(mxClient.IS_SVG&&this.isShadowOptionVisible()){var d=this.editorUi,c=d.editor.graph,g=this.createOption(mxResources.get("shadow"),function(){return c.shadowVisible},function(b){var g=new ChangePageSetup(d);g.ignoreColor=!0;g.ignoreImage=!0;g.shadowVisible=b;c.model.execute(g)},{install:function(b){this.listener=function(){b(c.shadowVisible)};d.addListener("shadowVisibleChanged",this.listener)},destroy:function(){d.removeListener(this.listener)}});Editor.enableShadowOption||(g.getElementsByTagName("input")[0].setAttribute("disabled",
-"disabled"),mxUtils.setOpacity(g,60));b.appendChild(g)}return b};var v=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(b){b=v.apply(this,arguments);var d=this.editorUi,c=d.editor.graph;if(c.isEnabled()){var g=d.getCurrentFile();if(null!=g&&g.isAutosaveOptional()){var e=this.createOption(mxResources.get("autosave"),function(){return d.editor.autosave},function(b){d.editor.setAutosave(b);d.editor.autosave&&g.isModified()&&g.fileChanged()},{install:function(b){this.listener=
+"disabled"),mxUtils.setOpacity(g,60));b.appendChild(g)}return b};var u=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(b){b=u.apply(this,arguments);var d=this.editorUi,c=d.editor.graph;if(c.isEnabled()){var g=d.getCurrentFile();if(null!=g&&g.isAutosaveOptional()){var e=this.createOption(mxResources.get("autosave"),function(){return d.editor.autosave},function(b){d.editor.setAutosave(b);d.editor.autosave&&g.isModified()&&g.fileChanged()},{install:function(b){this.listener=
function(){b(d.editor.autosave)};d.editor.addListener("autosaveChanged",this.listener)},destroy:function(){d.editor.removeListener(this.listener)}});b.appendChild(e)}}if(this.isMathOptionVisible()&&c.isEnabled()&&"undefined"!==typeof MathJax){e=this.createOption(mxResources.get("mathematicalTypesetting"),function(){return c.mathEnabled},function(b){d.actions.get("mathematicalTypesetting").funct()},{install:function(b){this.listener=function(){b(c.mathEnabled)};d.addListener("mathEnabledChanged",this.listener)},
destroy:function(){d.removeListener(this.listener)}});e.style.paddingTop="5px";b.appendChild(e);var k=d.menus.createHelpLink("https://www.diagrams.net/doc/faq/math-typesetting");k.style.position="relative";k.style.marginLeft="6px";k.style.top="2px";e.appendChild(k)}return b};mxCellRenderer.prototype.defaultVertexShape.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"absoluteArcSize",dispName:"Abs. Arc Size",type:"bool",defVal:!1}];
mxCellRenderer.defaultShapes.link.prototype.customProperties=[{name:"width",dispName:"Width",type:"float",min:0,defVal:4}];mxCellRenderer.defaultShapes.flexArrow.prototype.customProperties=[{name:"width",dispName:"Width",type:"float",min:0,defVal:10},{name:"startWidth",dispName:"Start Width",type:"float",min:0,defVal:20},{name:"endWidth",dispName:"End Width",type:"float",min:0,defVal:20}];mxCellRenderer.defaultShapes.process.prototype.customProperties=[{name:"size",dispName:"Indent",type:"float",
@@ -3291,36 +3291,36 @@ stroke:"#3700CC",font:"#ffffff"},{fill:"#d80073",stroke:"#A50040",font:"#ffffff"
font:"#ffffff"}],[{fill:"",stroke:""},{fill:mxConstants.NONE,stroke:""},{fill:"#fad7ac",stroke:"#b46504"},{fill:"#fad9d5",stroke:"#ae4132"},{fill:"#b0e3e6",stroke:"#0e8088"},{fill:"#b1ddf0",stroke:"#10739e"},{fill:"#d0cee2",stroke:"#56517e"},{fill:"#bac8d3",stroke:"#23445d"}],[{fill:"",stroke:""},{fill:"#f5f5f5",stroke:"#666666",gradient:"#b3b3b3"},{fill:"#dae8fc",stroke:"#6c8ebf",gradient:"#7ea6e0"},{fill:"#d5e8d4",stroke:"#82b366",gradient:"#97d077"},{fill:"#ffcd28",stroke:"#d79b00",gradient:"#ffa500"},
{fill:"#fff2cc",stroke:"#d6b656",gradient:"#ffd966"},{fill:"#f8cecc",stroke:"#b85450",gradient:"#ea6b66"},{fill:"#e6d0de",stroke:"#996185",gradient:"#d5739d"}],[{fill:"",stroke:""},{fill:"#eeeeee",stroke:"#36393d"},{fill:"#f9f7ed",stroke:"#36393d"},{fill:"#ffcc99",stroke:"#36393d"},{fill:"#cce5ff",stroke:"#36393d"},{fill:"#ffff88",stroke:"#36393d"},{fill:"#cdeb8b",stroke:"#36393d"},{fill:"#ffcccc",stroke:"#36393d"}]];StyleFormatPanel.prototype.customColorSchemes=null;StyleFormatPanel.prototype.findCommonProperties=
function(b,d,c){if(null!=d){var g=function(b){if(null!=b)if(c)for(var g=0;g<b.length;g++)d[b[g].name]=b[g];else for(var e in d){for(var k=!1,g=0;g<b.length;g++)if(b[g].name==e&&b[g].type==d[e].type){k=!0;break}k||delete d[e]}},e=this.editorUi.editor.graph.view.getState(b);null!=e&&null!=e.shape&&(e.shape.commonCustomPropAdded||(e.shape.commonCustomPropAdded=!0,e.shape.customProperties=e.shape.customProperties||[],e.cell.vertex?Array.prototype.push.apply(e.shape.customProperties,Editor.commonVertexProperties):
-Array.prototype.push.apply(e.shape.customProperties,Editor.commonEdgeProperties)),g(e.shape.customProperties));b=b.getAttribute("customProperties");if(null!=b)try{g(JSON.parse(b))}catch(aa){}}};var u=StyleFormatPanel.prototype.init;StyleFormatPanel.prototype.init=function(){var b=this.editorUi.getSelectionState();"image"!=b.style.shape&&!b.containsLabel&&0<b.cells.length&&this.container.appendChild(this.addStyles(this.createPanel()));u.apply(this,arguments);if(Editor.enableCustomProperties){for(var d=
+Array.prototype.push.apply(e.shape.customProperties,Editor.commonEdgeProperties)),g(e.shape.customProperties));b=b.getAttribute("customProperties");if(null!=b)try{g(JSON.parse(b))}catch(ka){}}};var v=StyleFormatPanel.prototype.init;StyleFormatPanel.prototype.init=function(){var b=this.editorUi.getSelectionState();"image"!=b.style.shape&&!b.containsLabel&&0<b.cells.length&&this.container.appendChild(this.addStyles(this.createPanel()));v.apply(this,arguments);if(Editor.enableCustomProperties){for(var d=
{},c=b.vertices,g=b.edges,e=0;e<c.length;e++)this.findCommonProperties(c[e],d,0==e);for(e=0;e<g.length;e++)this.findCommonProperties(g[e],d,0==c.length&&0==e);null!=Object.getOwnPropertyNames&&0<Object.getOwnPropertyNames(d).length&&this.container.appendChild(this.addProperties(this.createPanel(),d,b))}};var t=StyleFormatPanel.prototype.addStyleOps;StyleFormatPanel.prototype.addStyleOps=function(b){this.addActions(b,["copyStyle","pasteStyle"]);return t.apply(this,arguments)};EditorUi.prototype.propertiesCollapsed=
!0;StyleFormatPanel.prototype.addProperties=function(b,d,c){function g(b,d,c,g){n.getModel().beginUpdate();try{var e=[],k=[];if(null!=c.index){for(var f=[],m=c.parentRow.nextSibling;m&&m.getAttribute("data-pName")==b;)f.push(m.getAttribute("data-pValue")),m=m.nextSibling;c.index<f.length?null!=g?f.splice(g,1):f[c.index]=d:f.push(d);null!=c.size&&f.length>c.size&&(f=f.slice(0,c.size));d=f.join(",");null!=c.countProperty&&(n.setCellStyles(c.countProperty,f.length,n.getSelectionCells()),e.push(c.countProperty),
-k.push(f.length))}n.setCellStyles(b,d,n.getSelectionCells());e.push(b);k.push(d);if(null!=c.dependentProps)for(b=0;b<c.dependentProps.length;b++){var l=c.dependentPropsDefVal[b],p=c.dependentPropsVals[b];if(p.length>d)p=p.slice(0,d);else for(var t=p.length;t<d;t++)p.push(l);p=p.join(",");n.setCellStyles(c.dependentProps[b],p,n.getSelectionCells());e.push(c.dependentProps[b]);k.push(p)}if("function"==typeof c.onChange)c.onChange(n,d);v.editorUi.fireEvent(new mxEventObject("styleChanged","keys",e,"values",
+k.push(f.length))}n.setCellStyles(b,d,n.getSelectionCells());e.push(b);k.push(d);if(null!=c.dependentProps)for(b=0;b<c.dependentProps.length;b++){var l=c.dependentPropsDefVal[b],p=c.dependentPropsVals[b];if(p.length>d)p=p.slice(0,d);else for(var t=p.length;t<d;t++)p.push(l);p=p.join(",");n.setCellStyles(c.dependentProps[b],p,n.getSelectionCells());e.push(c.dependentProps[b]);k.push(p)}if("function"==typeof c.onChange)c.onChange(n,d);u.editorUi.fireEvent(new mxEventObject("styleChanged","keys",e,"values",
k,"cells",n.getSelectionCells()))}finally{n.getModel().endUpdate()}}function e(d,c,g){var e=mxUtils.getOffset(b,!0),k=mxUtils.getOffset(d,!0);c.style.position="absolute";c.style.left=k.x-e.x+"px";c.style.top=k.y-e.y+"px";c.style.width=d.offsetWidth+"px";c.style.height=d.offsetHeight-(g?4:0)+"px";c.style.zIndex=5}function k(b,d,c){var e=document.createElement("div");e.style.width="32px";e.style.height="4px";e.style.margin="2px";e.style.border="1px solid black";e.style.background=d&&"none"!=d?d:"url('"+
-Dialog.prototype.noColorImage+"')";btn=mxUtils.button("",mxUtils.bind(v,function(k){this.editorUi.pickColor(d,function(d){e.style.background="none"==d?"url('"+Dialog.prototype.noColorImage+"')":d;g(b,d,c)});mxEvent.consume(k)}));btn.style.height="12px";btn.style.width="40px";btn.className="geColorBtn";btn.appendChild(e);return btn}function f(b,d,c,e,k,f,m){null!=d&&(d=d.split(","),t.push({name:b,values:d,type:c,defVal:e,countProperty:k,parentRow:f,isDeletable:!0,flipBkg:m}));btn=mxUtils.button("+",
-mxUtils.bind(v,function(d){for(var l=f,v=0;null!=l.nextSibling;)if(l.nextSibling.getAttribute("data-pName")==b)l=l.nextSibling,v++;else break;var n={type:c,parentRow:f,index:v,isDeletable:!0,defVal:e,countProperty:k},v=p(b,"",n,0==v%2,m);g(b,e,n);l.parentNode.insertBefore(v,l.nextSibling);mxEvent.consume(d)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function m(b,d,c,g,e,k,f){if(0<e){var m=Array(e);d=null!=d?d.split(","):[];for(var l=0;l<e;l++)m[l]=null!=
-d[l]?d[l]:null!=g?g:"";t.push({name:b,values:m,type:c,defVal:g,parentRow:k,flipBkg:f,size:e})}return document.createElement("div")}function l(b,d,c){var e=document.createElement("input");e.type="checkbox";e.checked="1"==d;mxEvent.addListener(e,"change",function(){g(b,e.checked?"1":"0",c)});return e}function p(d,c,p,n,t){var u=p.dispName,x=p.type,y=document.createElement("tr");y.className="gePropRow"+(t?"Dark":"")+(n?"Alt":"")+" gePropNonHeaderRow";y.setAttribute("data-pName",d);y.setAttribute("data-pValue",
-c);n=!1;null!=p.index&&(y.setAttribute("data-index",p.index),u=(null!=u?u:"")+"["+p.index+"]",n=!0);var z=document.createElement("td");z.className="gePropRowCell";u=mxResources.get(u,null,u);mxUtils.write(z,u);z.setAttribute("title",u);n&&(z.style.textAlign="right");y.appendChild(z);z=document.createElement("td");z.className="gePropRowCell";if("color"==x)z.appendChild(k(d,c,p));else if("bool"==x||"boolean"==x)z.appendChild(l(d,c,p));else if("enum"==x){var q=p.enumList;for(t=0;t<q.length;t++)if(u=
-q[t],u.val==c){mxUtils.write(z,mxResources.get(u.dispName,null,u.dispName));break}mxEvent.addListener(z,"click",mxUtils.bind(v,function(){var k=document.createElement("select");e(z,k);for(var f=0;f<q.length;f++){var m=q[f],l=document.createElement("option");l.value=mxUtils.htmlEntities(m.val);mxUtils.write(l,mxResources.get(m.dispName,null,m.dispName));k.appendChild(l)}k.value=c;b.appendChild(k);mxEvent.addListener(k,"change",function(){var b=mxUtils.htmlEntities(k.value);g(d,b,p)});k.focus();mxEvent.addListener(k,
-"blur",function(){b.removeChild(k)})}))}else"dynamicArr"==x?z.appendChild(f(d,c,p.subType,p.subDefVal,p.countProperty,y,t)):"staticArr"==x?z.appendChild(m(d,c,p.subType,p.subDefVal,p.size,y,t)):"readOnly"==x?(t=document.createElement("input"),t.setAttribute("readonly",""),t.value=c,t.style.width="96px",t.style.borderWidth="0px",z.appendChild(t)):(z.innerHTML=mxUtils.htmlEntities(decodeURIComponent(c)),mxEvent.addListener(z,"click",mxUtils.bind(v,function(){function k(){var b=f.value,b=0==b.length&&
-"string"!=x?0:b;p.allowAuto&&(null!=b.trim&&"auto"==b.trim().toLowerCase()?(b="auto",x="string"):(b=parseFloat(b),b=isNaN(b)?0:b));null!=p.min&&b<p.min?b=p.min:null!=p.max&&b>p.max&&(b=p.max);b=encodeURIComponent(("int"==x?parseInt(b):b)+"");g(d,b,p)}var f=document.createElement("input");e(z,f,!0);f.value=decodeURIComponent(c);f.className="gePropEditor";"int"!=x&&"float"!=x||p.allowAuto||(f.type="number",f.step="int"==x?"1":"any",null!=p.min&&(f.min=parseFloat(p.min)),null!=p.max&&(f.max=parseFloat(p.max)));
-b.appendChild(f);mxEvent.addListener(f,"keypress",function(b){13==b.keyCode&&k()});f.focus();mxEvent.addListener(f,"blur",function(){k()})})));p.isDeletable&&(t=mxUtils.button("-",mxUtils.bind(v,function(b){g(d,"",p,p.index);mxEvent.consume(b)})),t.style.height="16px",t.style.width="25px",t.style["float"]="right",t.className="geColorBtn",z.appendChild(t));y.appendChild(z);return y}var v=this,n=this.editorUi.editor.graph,t=[];b.style.position="relative";b.style.padding="0";var x=document.createElement("table");
-x.className="geProperties";x.style.whiteSpace="nowrap";x.style.width="100%";var u=document.createElement("tr");u.className="gePropHeader";var y=document.createElement("th");y.className="gePropHeaderCell";var z=document.createElement("img");z.src=Sidebar.prototype.expandedImage;z.style.verticalAlign="middle";y.appendChild(z);mxUtils.write(y,mxResources.get("property"));u.style.cursor="pointer";var q=function(){var d=x.querySelectorAll(".gePropNonHeaderRow"),c;if(v.editorUi.propertiesCollapsed){z.src=
-Sidebar.prototype.collapsedImage;c="none";for(var g=b.childNodes.length-1;0<=g;g--)try{var e=b.childNodes[g],k=e.nodeName.toUpperCase();"INPUT"!=k&&"SELECT"!=k||b.removeChild(e)}catch(Da){}}else z.src=Sidebar.prototype.expandedImage,c="";for(g=0;g<d.length;g++)d[g].style.display=c};mxEvent.addListener(u,"click",function(){v.editorUi.propertiesCollapsed=!v.editorUi.propertiesCollapsed;q()});u.appendChild(y);y=document.createElement("th");y.className="gePropHeaderCell";y.innerHTML=mxResources.get("value");
-u.appendChild(y);x.appendChild(u);var A=!1,C=!1,u=null;1==c.vertices.length&&0==c.edges.length?u=c.vertices[0].id:0==c.vertices.length&&1==c.edges.length&&(u=c.edges[0].id);null!=u&&x.appendChild(p("id",mxUtils.htmlEntities(u),{dispName:"ID",type:"readOnly"},!0,!1));for(var K in d)if(u=d[K],"function"!=typeof u.isVisible||u.isVisible(c,this)){var G=null!=c.style[K]?mxUtils.htmlEntities(c.style[K]+""):null!=u.getDefaultValue?u.getDefaultValue(c,this):u.defVal;if("separator"==u.type)C=!C;else{if("staticArr"==
-u.type)u.size=parseInt(c.style[u.sizeProperty]||d[u.sizeProperty].defVal)||0;else if(null!=u.dependentProps){for(var P=u.dependentProps,M=[],J=[],y=0;y<P.length;y++){var I=c.style[P[y]];J.push(d[P[y]].subDefVal);M.push(null!=I?I.split(","):[])}u.dependentPropsDefVal=J;u.dependentPropsVals=M}x.appendChild(p(K,G,u,A,C));A=!A}}for(y=0;y<t.length;y++)for(u=t[y],d=u.parentRow,c=0;c<u.values.length;c++)K=p(u.name,u.values[c],{type:u.type,parentRow:u.parentRow,isDeletable:u.isDeletable,index:c,defVal:u.defVal,
-countProperty:u.countProperty,size:u.size},0==c%2,u.flipBkg),d.parentNode.insertBefore(K,d.nextSibling),d=K;b.appendChild(x);q();return b};StyleFormatPanel.prototype.addStyles=function(b){function d(b){mxEvent.addListener(b,"mouseenter",function(){b.style.opacity="1"});mxEvent.addListener(b,"mouseleave",function(){b.style.opacity="0.5"})}var c=this.editorUi,g=c.editor.graph,e=document.createElement("div");e.style.whiteSpace="nowrap";e.style.paddingLeft="24px";e.style.paddingRight="20px";b.style.paddingLeft=
+Dialog.prototype.noColorImage+"')";btn=mxUtils.button("",mxUtils.bind(u,function(k){this.editorUi.pickColor(d,function(d){e.style.background="none"==d?"url('"+Dialog.prototype.noColorImage+"')":d;g(b,d,c)});mxEvent.consume(k)}));btn.style.height="12px";btn.style.width="40px";btn.className="geColorBtn";btn.appendChild(e);return btn}function f(b,d,c,e,k,f,m){null!=d&&(d=d.split(","),t.push({name:b,values:d,type:c,defVal:e,countProperty:k,parentRow:f,isDeletable:!0,flipBkg:m}));btn=mxUtils.button("+",
+mxUtils.bind(u,function(d){for(var l=f,u=0;null!=l.nextSibling;)if(l.nextSibling.getAttribute("data-pName")==b)l=l.nextSibling,u++;else break;var n={type:c,parentRow:f,index:u,isDeletable:!0,defVal:e,countProperty:k},u=p(b,"",n,0==u%2,m);g(b,e,n);l.parentNode.insertBefore(u,l.nextSibling);mxEvent.consume(d)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function m(b,d,c,g,e,k,f){if(0<e){var m=Array(e);d=null!=d?d.split(","):[];for(var l=0;l<e;l++)m[l]=null!=
+d[l]?d[l]:null!=g?g:"";t.push({name:b,values:m,type:c,defVal:g,parentRow:k,flipBkg:f,size:e})}return document.createElement("div")}function l(b,d,c){var e=document.createElement("input");e.type="checkbox";e.checked="1"==d;mxEvent.addListener(e,"change",function(){g(b,e.checked?"1":"0",c)});return e}function p(d,c,p,n,t){var x=p.dispName,v=p.type,y=document.createElement("tr");y.className="gePropRow"+(t?"Dark":"")+(n?"Alt":"")+" gePropNonHeaderRow";y.setAttribute("data-pName",d);y.setAttribute("data-pValue",
+c);n=!1;null!=p.index&&(y.setAttribute("data-index",p.index),x=(null!=x?x:"")+"["+p.index+"]",n=!0);var z=document.createElement("td");z.className="gePropRowCell";x=mxResources.get(x,null,x);mxUtils.write(z,x);z.setAttribute("title",x);n&&(z.style.textAlign="right");y.appendChild(z);z=document.createElement("td");z.className="gePropRowCell";if("color"==v)z.appendChild(k(d,c,p));else if("bool"==v||"boolean"==v)z.appendChild(l(d,c,p));else if("enum"==v){var q=p.enumList;for(t=0;t<q.length;t++)if(x=
+q[t],x.val==c){mxUtils.write(z,mxResources.get(x.dispName,null,x.dispName));break}mxEvent.addListener(z,"click",mxUtils.bind(u,function(){var k=document.createElement("select");e(z,k);for(var f=0;f<q.length;f++){var m=q[f],l=document.createElement("option");l.value=mxUtils.htmlEntities(m.val);mxUtils.write(l,mxResources.get(m.dispName,null,m.dispName));k.appendChild(l)}k.value=c;b.appendChild(k);mxEvent.addListener(k,"change",function(){var b=mxUtils.htmlEntities(k.value);g(d,b,p)});k.focus();mxEvent.addListener(k,
+"blur",function(){b.removeChild(k)})}))}else"dynamicArr"==v?z.appendChild(f(d,c,p.subType,p.subDefVal,p.countProperty,y,t)):"staticArr"==v?z.appendChild(m(d,c,p.subType,p.subDefVal,p.size,y,t)):"readOnly"==v?(t=document.createElement("input"),t.setAttribute("readonly",""),t.value=c,t.style.width="96px",t.style.borderWidth="0px",z.appendChild(t)):(z.innerHTML=mxUtils.htmlEntities(decodeURIComponent(c)),mxEvent.addListener(z,"click",mxUtils.bind(u,function(){function k(){var b=f.value,b=0==b.length&&
+"string"!=v?0:b;p.allowAuto&&(null!=b.trim&&"auto"==b.trim().toLowerCase()?(b="auto",v="string"):(b=parseFloat(b),b=isNaN(b)?0:b));null!=p.min&&b<p.min?b=p.min:null!=p.max&&b>p.max&&(b=p.max);b=encodeURIComponent(("int"==v?parseInt(b):b)+"");g(d,b,p)}var f=document.createElement("input");e(z,f,!0);f.value=decodeURIComponent(c);f.className="gePropEditor";"int"!=v&&"float"!=v||p.allowAuto||(f.type="number",f.step="int"==v?"1":"any",null!=p.min&&(f.min=parseFloat(p.min)),null!=p.max&&(f.max=parseFloat(p.max)));
+b.appendChild(f);mxEvent.addListener(f,"keypress",function(b){13==b.keyCode&&k()});f.focus();mxEvent.addListener(f,"blur",function(){k()})})));p.isDeletable&&(t=mxUtils.button("-",mxUtils.bind(u,function(b){g(d,"",p,p.index);mxEvent.consume(b)})),t.style.height="16px",t.style.width="25px",t.style["float"]="right",t.className="geColorBtn",z.appendChild(t));y.appendChild(z);return y}var u=this,n=this.editorUi.editor.graph,t=[];b.style.position="relative";b.style.padding="0";var v=document.createElement("table");
+v.className="geProperties";v.style.whiteSpace="nowrap";v.style.width="100%";var x=document.createElement("tr");x.className="gePropHeader";var y=document.createElement("th");y.className="gePropHeaderCell";var z=document.createElement("img");z.src=Sidebar.prototype.expandedImage;z.style.verticalAlign="middle";y.appendChild(z);mxUtils.write(y,mxResources.get("property"));x.style.cursor="pointer";var q=function(){var d=v.querySelectorAll(".gePropNonHeaderRow"),c;if(u.editorUi.propertiesCollapsed){z.src=
+Sidebar.prototype.collapsedImage;c="none";for(var g=b.childNodes.length-1;0<=g;g--)try{var e=b.childNodes[g],k=e.nodeName.toUpperCase();"INPUT"!=k&&"SELECT"!=k||b.removeChild(e)}catch(Ga){}}else z.src=Sidebar.prototype.expandedImage,c="";for(g=0;g<d.length;g++)d[g].style.display=c};mxEvent.addListener(x,"click",function(){u.editorUi.propertiesCollapsed=!u.editorUi.propertiesCollapsed;q()});x.appendChild(y);y=document.createElement("th");y.className="gePropHeaderCell";y.innerHTML=mxResources.get("value");
+x.appendChild(y);v.appendChild(x);var B=!1,C=!1,x=null;1==c.vertices.length&&0==c.edges.length?x=c.vertices[0].id:0==c.vertices.length&&1==c.edges.length&&(x=c.edges[0].id);null!=x&&v.appendChild(p("id",mxUtils.htmlEntities(x),{dispName:"ID",type:"readOnly"},!0,!1));for(var M in d)if(x=d[M],"function"!=typeof x.isVisible||x.isVisible(c,this)){var G=null!=c.style[M]?mxUtils.htmlEntities(c.style[M]+""):null!=x.getDefaultValue?x.getDefaultValue(c,this):x.defVal;if("separator"==x.type)C=!C;else{if("staticArr"==
+x.type)x.size=parseInt(c.style[x.sizeProperty]||d[x.sizeProperty].defVal)||0;else if(null!=x.dependentProps){for(var P=x.dependentProps,J=[],N=[],y=0;y<P.length;y++){var H=c.style[P[y]];N.push(d[P[y]].subDefVal);J.push(null!=H?H.split(","):[])}x.dependentPropsDefVal=N;x.dependentPropsVals=J}v.appendChild(p(M,G,x,B,C));B=!B}}for(y=0;y<t.length;y++)for(x=t[y],d=x.parentRow,c=0;c<x.values.length;c++)M=p(x.name,x.values[c],{type:x.type,parentRow:x.parentRow,isDeletable:x.isDeletable,index:c,defVal:x.defVal,
+countProperty:x.countProperty,size:x.size},0==c%2,x.flipBkg),d.parentNode.insertBefore(M,d.nextSibling),d=M;b.appendChild(v);q();return b};StyleFormatPanel.prototype.addStyles=function(b){function d(b){mxEvent.addListener(b,"mouseenter",function(){b.style.opacity="1"});mxEvent.addListener(b,"mouseleave",function(){b.style.opacity="0.5"})}var c=this.editorUi,g=c.editor.graph,e=document.createElement("div");e.style.whiteSpace="nowrap";e.style.paddingLeft="24px";e.style.paddingRight="20px";b.style.paddingLeft=
"16px";b.style.paddingBottom="6px";b.style.position="relative";b.appendChild(e);var k="plain-gray plain-blue plain-green plain-turquoise plain-orange plain-yellow plain-red plain-pink plain-purple gray blue green turquoise orange yellow red pink purple".split(" "),f=document.createElement("div");f.style.whiteSpace="nowrap";f.style.position="relative";f.style.textAlign="center";f.style.width="210px";for(var m=[],l=0;l<this.defaultColorSchemes.length;l++){var p=document.createElement("div");p.style.display=
-"inline-block";p.style.width="6px";p.style.height="6px";p.style.marginLeft="4px";p.style.marginRight="3px";p.style.borderRadius="3px";p.style.cursor="pointer";p.style.background="transparent";p.style.border="1px solid #b5b6b7";mxUtils.bind(this,function(b){mxEvent.addListener(p,"click",mxUtils.bind(this,function(){v(b)}))})(l);m.push(p);f.appendChild(p)}var v=mxUtils.bind(this,function(b){null!=m[b]&&(null!=this.format.currentScheme&&null!=m[this.format.currentScheme]&&(m[this.format.currentScheme].style.background=
+"inline-block";p.style.width="6px";p.style.height="6px";p.style.marginLeft="4px";p.style.marginRight="3px";p.style.borderRadius="3px";p.style.cursor="pointer";p.style.background="transparent";p.style.border="1px solid #b5b6b7";mxUtils.bind(this,function(b){mxEvent.addListener(p,"click",mxUtils.bind(this,function(){u(b)}))})(l);m.push(p);f.appendChild(p)}var u=mxUtils.bind(this,function(b){null!=m[b]&&(null!=this.format.currentScheme&&null!=m[this.format.currentScheme]&&(m[this.format.currentScheme].style.background=
"transparent"),this.format.currentScheme=b,n(this.defaultColorSchemes[this.format.currentScheme]),m[this.format.currentScheme].style.background="#84d7ff")}),n=mxUtils.bind(this,function(b){var d=mxUtils.bind(this,function(b){var d=mxUtils.button("",mxUtils.bind(this,function(d){g.getModel().beginUpdate();try{for(var e=c.getSelectionState().cells,f=0;f<e.length;f++){for(var m=g.getModel().getStyle(e[f]),l=0;l<k.length;l++)m=mxUtils.removeStylename(m,k[l]);var p=g.getModel().isVertex(e[f])?g.defaultVertexStyle:
g.defaultEdgeStyle;null!=b?(mxEvent.isShiftDown(d)||(m=""==b.fill?mxUtils.setStyle(m,mxConstants.STYLE_FILLCOLOR,null):mxUtils.setStyle(m,mxConstants.STYLE_FILLCOLOR,b.fill||mxUtils.getValue(p,mxConstants.STYLE_FILLCOLOR,null)),m=mxUtils.setStyle(m,mxConstants.STYLE_GRADIENTCOLOR,b.gradient||mxUtils.getValue(p,mxConstants.STYLE_GRADIENTCOLOR,null)),mxEvent.isControlDown(d)||mxClient.IS_MAC&&mxEvent.isMetaDown(d)||!g.getModel().isVertex(e[f])||(m=mxUtils.setStyle(m,mxConstants.STYLE_FONTCOLOR,b.font||
mxUtils.getValue(p,mxConstants.STYLE_FONTCOLOR,null)))),mxEvent.isAltDown(d)||(m=""==b.stroke?mxUtils.setStyle(m,mxConstants.STYLE_STROKECOLOR,null):mxUtils.setStyle(m,mxConstants.STYLE_STROKECOLOR,b.stroke||mxUtils.getValue(p,mxConstants.STYLE_STROKECOLOR,null)))):(m=mxUtils.setStyle(m,mxConstants.STYLE_FILLCOLOR,mxUtils.getValue(p,mxConstants.STYLE_FILLCOLOR,"#ffffff")),m=mxUtils.setStyle(m,mxConstants.STYLE_STROKECOLOR,mxUtils.getValue(p,mxConstants.STYLE_STROKECOLOR,"#000000")),m=mxUtils.setStyle(m,
mxConstants.STYLE_GRADIENTCOLOR,mxUtils.getValue(p,mxConstants.STYLE_GRADIENTCOLOR,null)),g.getModel().isVertex(e[f])&&(m=mxUtils.setStyle(m,mxConstants.STYLE_FONTCOLOR,mxUtils.getValue(p,mxConstants.STYLE_FONTCOLOR,null))));g.getModel().setStyle(e[f],m)}}finally{g.getModel().endUpdate()}}));d.className="geStyleButton";d.style.width="36px";d.style.height=10>=this.defaultColorSchemes.length?"24px":"30px";d.style.margin="0px 6px 6px 0px";if(null!=b){var f="1"==urlParams.sketch?"2px solid":"1px solid";
null!=b.gradient?mxClient.IS_IE&&10>document.documentMode?d.style.filter="progid:DXImageTransform.Microsoft.Gradient(StartColorStr='"+b.fill+"', EndColorStr='"+b.gradient+"', GradientType=0)":d.style.backgroundImage="linear-gradient("+b.fill+" 0px,"+b.gradient+" 100%)":b.fill==mxConstants.NONE?d.style.background="url('"+Dialog.prototype.noColorImage+"')":d.style.backgroundColor=""==b.fill?mxUtils.getValue(g.defaultVertexStyle,mxConstants.STYLE_FILLCOLOR,Editor.isDarkMode()?Editor.darkColor:"#ffffff"):
b.fill||mxUtils.getValue(g.defaultVertexStyle,mxConstants.STYLE_FILLCOLOR,Editor.isDarkMode()?Editor.darkColor:"#ffffff");d.style.border=b.stroke==mxConstants.NONE?f+" transparent":""==b.stroke?f+" "+mxUtils.getValue(g.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,Editor.isDarkMode()?"#ffffff":Editor.darkColor):f+" "+(b.stroke||mxUtils.getValue(g.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,Editor.isDarkMode()?"#ffffff":Editor.darkColor));null!=b.title&&d.setAttribute("title",b.title)}else{var f=
-mxUtils.getValue(g.defaultVertexStyle,mxConstants.STYLE_FILLCOLOR,"#ffffff"),m=mxUtils.getValue(g.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,"#000000");d.style.backgroundColor=f;d.style.border="1px solid "+m}d.style.borderRadius="0";e.appendChild(d)});e.innerHTML="";for(var f=0;f<b.length;f++)0<f&&0==mxUtils.mod(f,4)&&mxUtils.br(e),d(b[f])});null==this.format.currentScheme?v(Editor.isDarkMode()?1:"1"==urlParams.sketch?5:0):v(this.format.currentScheme);var l=10>=this.defaultColorSchemes.length?
+mxUtils.getValue(g.defaultVertexStyle,mxConstants.STYLE_FILLCOLOR,"#ffffff"),m=mxUtils.getValue(g.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,"#000000");d.style.backgroundColor=f;d.style.border="1px solid "+m}d.style.borderRadius="0";e.appendChild(d)});e.innerHTML="";for(var f=0;f<b.length;f++)0<f&&0==mxUtils.mod(f,4)&&mxUtils.br(e),d(b[f])});null==this.format.currentScheme?u(Editor.isDarkMode()?1:"1"==urlParams.sketch?5:0):u(this.format.currentScheme);var l=10>=this.defaultColorSchemes.length?
28:8,t=document.createElement("div");t.style.cssText="position:absolute;left:10px;top:8px;bottom:"+l+"px;width:20px;margin:4px;opacity:0.5;background-repeat:no-repeat;background-position:center center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQBAMAAADQT4M0AAAAIVBMVEUAAAB2dnZ4eHh3d3d1dXVxcXF2dnZ2dnZ2dnZxcXF2dnYmb3w1AAAACnRSTlMAfCTkhhvb7cQSPH2JPgAAADRJREFUCNdjwACMAmBKaiGYs2oJmLPKAZ3DabU8AMRTXpUKopislqFyVzCAuUZgikkBZjoAcMYLnp53P/UAAAAASUVORK5CYII=);";mxEvent.addListener(t,
-"click",mxUtils.bind(this,function(){v(mxUtils.mod(this.format.currentScheme-1,this.defaultColorSchemes.length))}));var u=document.createElement("div");u.style.cssText="position:absolute;left:202px;top:8px;bottom:"+l+"px;width:20px;margin:4px;opacity:0.5;background-repeat:no-repeat;background-position:center center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQBAMAAADQT4M0AAAAIVBMVEUAAAB2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnYBuwCcAAAACnRSTlMAfCTkhhvb7cQSPH2JPgAAADZJREFUCNdjQAOMAmBKaiGY8loF5rKswsZlrVo8AUiFrTICcbIWK8A5DF1gDoMymMPApIAwHwCS0Qx/U7qCBQAAAABJRU5ErkJggg==);";
-1<this.defaultColorSchemes.length&&(b.appendChild(t),b.appendChild(u));mxEvent.addListener(u,"click",mxUtils.bind(this,function(){v(mxUtils.mod(this.format.currentScheme+1,this.defaultColorSchemes.length))}));d(t);d(u);n(this.defaultColorSchemes[this.format.currentScheme]);10>=this.defaultColorSchemes.length&&b.appendChild(f);return b};StyleFormatPanel.prototype.addEditOps=function(b){var d=this.editorUi.getSelectionState(),c=this.editorUi.editor.graph,g=null;1==d.cells.length&&(g=mxUtils.button(mxResources.get("editStyle"),
+"click",mxUtils.bind(this,function(){u(mxUtils.mod(this.format.currentScheme-1,this.defaultColorSchemes.length))}));var x=document.createElement("div");x.style.cssText="position:absolute;left:202px;top:8px;bottom:"+l+"px;width:20px;margin:4px;opacity:0.5;background-repeat:no-repeat;background-position:center center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQBAMAAADQT4M0AAAAIVBMVEUAAAB2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnYBuwCcAAAACnRSTlMAfCTkhhvb7cQSPH2JPgAAADZJREFUCNdjQAOMAmBKaiGY8loF5rKswsZlrVo8AUiFrTICcbIWK8A5DF1gDoMymMPApIAwHwCS0Qx/U7qCBQAAAABJRU5ErkJggg==);";
+1<this.defaultColorSchemes.length&&(b.appendChild(t),b.appendChild(x));mxEvent.addListener(x,"click",mxUtils.bind(this,function(){u(mxUtils.mod(this.format.currentScheme+1,this.defaultColorSchemes.length))}));d(t);d(x);n(this.defaultColorSchemes[this.format.currentScheme]);10>=this.defaultColorSchemes.length&&b.appendChild(f);return b};StyleFormatPanel.prototype.addEditOps=function(b){var d=this.editorUi.getSelectionState(),c=this.editorUi.editor.graph,g=null;1==d.cells.length&&(g=mxUtils.button(mxResources.get("editStyle"),
mxUtils.bind(this,function(b){this.editorUi.actions.get("editStyle").funct()})),g.setAttribute("title",mxResources.get("editStyle")+" ("+this.editorUi.actions.get("editStyle").shortcut+")"),g.style.width="210px",g.style.marginBottom="2px",b.appendChild(g));c=1==d.cells.length?c.view.getState(d.cells[0]):null;null!=c&&null!=c.shape&&null!=c.shape.stencil?(d=mxUtils.button(mxResources.get("editShape"),mxUtils.bind(this,function(b){this.editorUi.actions.get("editShape").funct()})),d.setAttribute("title",
mxResources.get("editShape")),d.style.marginBottom="2px",null==g?d.style.width="210px":(g.style.width="104px",d.style.width="104px",d.style.marginLeft="2px"),b.appendChild(d)):d.image&&0<d.cells.length&&(d=mxUtils.button(mxResources.get("editImage"),mxUtils.bind(this,function(b){this.editorUi.actions.get("image").funct()})),d.setAttribute("title",mxResources.get("editImage")),d.style.marginBottom="2px",null==g?d.style.width="210px":(g.style.width="104px",d.style.width="104px",d.style.marginLeft="2px"),
b.appendChild(d));return b}}Graph.fontMapping={"https://fonts.googleapis.com/css?family=Architects+Daughter":'@font-face { font-family: "Architects Daughter"; src: url('+STYLE_PATH+'/fonts/ArchitectsDaughter-Regular.ttf) format("truetype"); }'};Graph.customFontElements={};Graph.recentCustomFonts={};Graph.isGoogleFontUrl=function(b){return b.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS};Graph.isCssFontUrl=function(b){return Graph.isGoogleFontUrl(b)};Graph.createFontElement=function(b,
@@ -3330,41 +3330,41 @@ return b};Graph.getFontUrl=function(b,d){var c=Graph.customFontElements[b.toLowe
mxConstants.STYLE_FONTFAMILY,null);null!=c&&Graph.addFont(c,decodeURIComponent(d))}}return b};Graph.prototype.defaultThemeName="default-style2";Graph.prototype.lastPasteXml=null;Graph.prototype.pasteCounter=0;Graph.prototype.defaultScrollbars="0"!=urlParams.sb;Graph.prototype.defaultPageVisible="0"!=urlParams.pv;Graph.prototype.shadowId="dropShadow";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowBlur="1.7";Graph.prototype.svgShadowSize="3";
Graph.prototype.edgeMode="move"!=urlParams.edge;Graph.prototype.hiddenTags=null;Graph.prototype.defaultMathEnabled=!1;var z=Graph.prototype.init;Graph.prototype.init=function(){function b(b){d=b}z.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var d=null;mxEvent.addListener(this.container,"mouseenter",b);mxEvent.addListener(this.container,"mousemove",b);mxEvent.addListener(this.container,"mouseleave",function(b){d=null});this.isMouseInsertPoint=function(){return null!=
d};var c=this.getInsertPoint;this.getInsertPoint=function(){return null!=d?this.getPointForEvent(d):c.apply(this,arguments)};var g=this.layoutManager.getLayout;this.layoutManager.getLayout=function(b){var d=this.graph.getCellStyle(b);if(null!=d&&"rack"==d.childLayout){var c=new mxStackLayout(this.graph,!1);c.gridSize=null!=d.rackUnitSize?parseFloat(d.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;c.marginLeft=d.marginLeft||0;c.marginRight=d.marginRight||0;c.marginTop=
-d.marginTop||0;c.marginBottom=d.marginBottom||0;c.allowGaps=d.allowGaps||0;c.horizontal="1"==mxUtils.getValue(d,"horizontalRack","0");c.resizeParent=!1;c.fill=!0;return c}return g.apply(this,arguments)};this.updateGlobalUrlVariables()};var y=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(b,d){return Graph.processFontStyle(y.apply(this,arguments))};var F=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(b,d,c,g,e,k,f,m,l,p,
-v){F.apply(this,arguments);Graph.processFontAttributes(v)};var D=mxText.prototype.redraw;mxText.prototype.redraw=function(){D.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(b,d,c){function g(){for(var b=f.getSelectionCells(),d=[],c=0;c<b.length;c++)f.isCellVisible(b[c])&&d.push(b[c]);f.setSelectionCells(d)}function e(b){f.hiddenTags=b?[]:m.slice();g();f.refresh()}function k(b,c){p.innerHTML="";if(0<
-b.length){var k=document.createElement("table");k.setAttribute("cellpadding","2");k.style.boxSizing="border-box";k.style.tableLayout="fixed";k.style.width="100%";var l=document.createElement("tbody");if(null!=b&&0<b.length)for(var v=0;v<b.length;v++)(function(b){var k=0>mxUtils.indexOf(f.hiddenTags,b),p=document.createElement("tr"),v=document.createElement("td");v.style.align="center";v.style.width="16px";var n=document.createElement("img");n.setAttribute("src",k?Editor.visibleImage:Editor.hiddenImage);
-n.setAttribute("title",mxResources.get(k?"hideIt":"show",[b]));mxUtils.setOpacity(n,k?75:25);n.style.verticalAlign="middle";n.style.cursor="pointer";n.style.width="16px";if(d||Editor.isDarkMode())n.style.filter="invert(100%)";v.appendChild(n);mxEvent.addListener(n,"click",function(d){var c=mxUtils.indexOf(f.hiddenTags,b);mxEvent.isShiftDown(d)?e(0<=mxUtils.indexOf(f.hiddenTags,b)):(0>c?f.hiddenTags.push(b):0<=c&&f.hiddenTags.splice(c,1),g(),f.refresh());mxEvent.consume(d)});p.appendChild(v);v=document.createElement("td");
-v.style.overflow="hidden";v.style.whiteSpace="nowrap";v.style.textOverflow="ellipsis";v.style.verticalAlign="middle";v.style.cursor="pointer";v.setAttribute("title",b);a=document.createElement("a");mxUtils.write(a,b);a.style.textOverflow="ellipsis";a.style.position="relative";mxUtils.setOpacity(a,k?100:40);v.appendChild(a);mxEvent.addListener(v,"click",function(d){if(mxEvent.isShiftDown(d)){e(!0);var c=f.getCellsForTags([b],null,null,!0);f.isEnabled()?f.setSelectionCells(c):f.highlightCells(c)}else if(k&&
-0<f.hiddenTags.length)e(!0);else{var c=m.slice(),l=mxUtils.indexOf(c,b);c.splice(l,1);f.hiddenTags=c;g();f.refresh()}mxEvent.consume(d)});p.appendChild(v);if(f.isEnabled()){v=document.createElement("td");v.style.verticalAlign="middle";v.style.textAlign="center";v.style.width="18px";if(null==c){v.style.align="center";v.style.width="16px";n=document.createElement("img");n.setAttribute("src",Editor.crossImage);n.setAttribute("title",mxResources.get("removeIt",[b]));mxUtils.setOpacity(n,k?75:25);n.style.verticalAlign=
-"middle";n.style.cursor="pointer";n.style.width="16px";if(d||Editor.isDarkMode())n.style.filter="invert(100%)";mxEvent.addListener(n,"click",function(d){var c=mxUtils.indexOf(m,b);0<=c&&m.splice(c,1);f.removeTagsForCells(f.model.getDescendants(f.model.getRoot()),[b]);f.refresh();mxEvent.consume(d)});v.appendChild(n)}else{var t=document.createElement("input");t.setAttribute("type","checkbox");t.style.margin="0px";t.defaultChecked=null!=c&&0<=mxUtils.indexOf(c,b);t.checked=t.defaultChecked;t.style.background=
-"transparent";t.setAttribute("title",mxResources.get(t.defaultChecked?"removeIt":"add",[b]));mxEvent.addListener(t,"change",function(d){t.checked?f.addTagsForCells(f.getSelectionCells(),[b]):f.removeTagsForCells(f.getSelectionCells(),[b]);mxEvent.consume(d)});v.appendChild(t)}p.appendChild(v)}l.appendChild(p)})(b[v]);k.appendChild(l);p.appendChild(k)}}var f=this,m=f.hiddenTags.slice(),l=document.createElement("div");l.style.userSelect="none";l.style.overflow="hidden";l.style.padding="10px";l.style.height=
-"100%";var p=document.createElement("div");p.style.boxSizing="border-box";p.style.borderRadius="4px";p.style.userSelect="none";p.style.overflow="auto";p.style.position="absolute";p.style.left="10px";p.style.right="10px";p.style.top="10px";p.style.border=f.isEnabled()?"1px solid #808080":"none";p.style.bottom=f.isEnabled()?"48px":"10px";l.appendChild(p);var v=mxUtils.button(mxResources.get("reset"),function(b){f.hiddenTags=[];mxEvent.isShiftDown(b)||(m=f.hiddenTags.slice());g();f.refresh()});v.setAttribute("title",
-mxResources.get("reset"));v.className="geBtn";v.style.margin="0 4px 0 0";var n=mxUtils.button(mxResources.get("add"),function(){null!=c&&c(m,function(b){m=b;t()})});n.setAttribute("title",mxResources.get("add"));n.className="geBtn";n.style.margin="0";f.addListener(mxEvent.ROOT,function(){m=f.hiddenTags.slice()});var t=mxUtils.bind(this,function(d,c){if(b()){for(var g=f.getAllTags(),e=0;e<g.length;e++)0>mxUtils.indexOf(m,g[e])&&m.push(g[e]);m.sort();f.isSelectionEmpty()?k(m):k(m,f.getCommonTagsForCells(f.getSelectionCells()))}});
-f.selectionModel.addListener(mxEvent.CHANGE,t);f.model.addListener(mxEvent.CHANGE,t);f.addListener(mxEvent.REFRESH,t);var u=document.createElement("div");u.style.boxSizing="border-box";u.style.whiteSpace="nowrap";u.style.position="absolute";u.style.overflow="hidden";u.style.bottom="0px";u.style.height="42px";u.style.right="10px";u.style.left="10px";f.isEnabled()&&(u.appendChild(v),u.appendChild(n),l.appendChild(u));return{div:l,refresh:t}};Graph.prototype.getCustomFonts=function(){var b=this.extFonts,
-b=null!=b?b.slice():[],d;for(d in Graph.customFontElements){var c=Graph.customFontElements[d];b.push({name:c.name,url:c.url})}return b};Graph.prototype.setFont=function(b,d){Graph.addFont(b,d);document.execCommand("fontname",!1,b);if(null!=d){var c=this.cellEditor.textarea.getElementsByTagName("font");d=Graph.getFontUrl(b,d);for(var g=0;g<c.length;g++)c[g].getAttribute("face")==b&&c[g].getAttribute("data-font-src")!=d&&c[g].setAttribute("data-font-src",d)}};var E=Graph.prototype.isFastZoomEnabled;
-Graph.prototype.isFastZoomEnabled=function(){return E.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=function(){this.globalVars=Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=null!=this.globalVars?mxUtils.clone(this.globalVars):{};var b=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=b)for(var d in b)this.globalVars[d]=b[d]}catch(J){null!=window.console&&console.log("Error in vars URL parameter: "+J)}};Graph.prototype.getExportVariables=
-function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var H=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(b){var d=H.apply(this,arguments);null==d&&null!=this.globalVars&&(d=this.globalVars[b]);return d};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var b=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(b.ownerDocument)).decode(b)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};
-var N=Graph.prototype.getSvg;Graph.prototype.getSvg=function(b,d,c,g,e,k,f,m,l,p,v,n,t,u){var y=null,x=null,z=null;n||null==this.themes||"darkTheme"!=this.defaultThemeName||(y=this.stylesheet,x=this.shapeForegroundColor,z=this.shapeBackgroundColor,this.shapeForegroundColor="darkTheme"==this.defaultThemeName?"#000000":Editor.lightColor,this.shapeBackgroundColor="darkTheme"==this.defaultThemeName?"#ffffff":Editor.darkColor,this.stylesheet=this.getDefaultStylesheet(),this.refresh());var q=N.apply(this,
-arguments),A=this.getCustomFonts();if(v&&0<A.length){var K=q.ownerDocument,C=null!=K.createElementNS?K.createElementNS(mxConstants.NS_SVG,"style"):K.createElement("style");null!=K.setAttributeNS?C.setAttributeNS("type","text/css"):C.setAttribute("type","text/css");for(var G="",P="",M=0;M<A.length;M++){var I=A[M].name,F=A[M].url;Graph.isCssFontUrl(F)?G+="@import url("+F+");\n":P+='@font-face {\nfont-family: "'+I+'";\nsrc: url("'+F+'");\n}\n'}C.appendChild(K.createTextNode(G+P));q.getElementsByTagName("defs")[0].appendChild(C)}null!=
-y&&(this.shapeBackgroundColor=z,this.shapeForegroundColor=x,this.stylesheet=y,this.refresh());return q};var A=Graph.prototype.createSvgImageExport;Graph.prototype.createSvgImageExport=function(){var b=A.apply(this,arguments);if(this.mathEnabled){var d=b.drawText;b.drawText=function(b,c){if(null!=b.text&&null!=b.text.value&&b.text.checkBounds()&&(mxUtils.isNode(b.text.value)||b.text.dialect==mxConstants.DIALECT_STRICTHTML)){var g=b.text.getContentNode();if(null!=g){g=g.cloneNode(!0);if(g.getElementsByTagNameNS)for(var e=
+d.marginTop||0;c.marginBottom=d.marginBottom||0;c.allowGaps=d.allowGaps||0;c.horizontal="1"==mxUtils.getValue(d,"horizontalRack","0");c.resizeParent=!1;c.fill=!0;return c}return g.apply(this,arguments)};this.updateGlobalUrlVariables()};var y=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(b,d){return Graph.processFontStyle(y.apply(this,arguments))};var I=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(b,d,c,g,e,k,f,m,l,p,
+u){I.apply(this,arguments);Graph.processFontAttributes(u)};var D=mxText.prototype.redraw;mxText.prototype.redraw=function(){D.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(b,d,c){function g(){for(var b=f.getSelectionCells(),d=[],c=0;c<b.length;c++)f.isCellVisible(b[c])&&d.push(b[c]);f.setSelectionCells(d)}function e(b){f.hiddenTags=b?[]:m.slice();g();f.refresh()}function k(b,c){p.innerHTML="";if(0<
+b.length){var k=document.createElement("table");k.setAttribute("cellpadding","2");k.style.boxSizing="border-box";k.style.tableLayout="fixed";k.style.width="100%";var l=document.createElement("tbody");if(null!=b&&0<b.length)for(var u=0;u<b.length;u++)(function(b){var k=0>mxUtils.indexOf(f.hiddenTags,b),p=document.createElement("tr"),u=document.createElement("td");u.style.align="center";u.style.width="16px";var n=document.createElement("img");n.setAttribute("src",k?Editor.visibleImage:Editor.hiddenImage);
+n.setAttribute("title",mxResources.get(k?"hideIt":"show",[b]));mxUtils.setOpacity(n,k?75:25);n.style.verticalAlign="middle";n.style.cursor="pointer";n.style.width="16px";if(d||Editor.isDarkMode())n.style.filter="invert(100%)";u.appendChild(n);mxEvent.addListener(n,"click",function(d){var c=mxUtils.indexOf(f.hiddenTags,b);mxEvent.isShiftDown(d)?e(0<=mxUtils.indexOf(f.hiddenTags,b)):(0>c?f.hiddenTags.push(b):0<=c&&f.hiddenTags.splice(c,1),g(),f.refresh());mxEvent.consume(d)});p.appendChild(u);u=document.createElement("td");
+u.style.overflow="hidden";u.style.whiteSpace="nowrap";u.style.textOverflow="ellipsis";u.style.verticalAlign="middle";u.style.cursor="pointer";u.setAttribute("title",b);a=document.createElement("a");mxUtils.write(a,b);a.style.textOverflow="ellipsis";a.style.position="relative";mxUtils.setOpacity(a,k?100:40);u.appendChild(a);mxEvent.addListener(u,"click",function(d){if(mxEvent.isShiftDown(d)){e(!0);var c=f.getCellsForTags([b],null,null,!0);f.isEnabled()?f.setSelectionCells(c):f.highlightCells(c)}else if(k&&
+0<f.hiddenTags.length)e(!0);else{var c=m.slice(),l=mxUtils.indexOf(c,b);c.splice(l,1);f.hiddenTags=c;g();f.refresh()}mxEvent.consume(d)});p.appendChild(u);if(f.isEnabled()){u=document.createElement("td");u.style.verticalAlign="middle";u.style.textAlign="center";u.style.width="18px";if(null==c){u.style.align="center";u.style.width="16px";n=document.createElement("img");n.setAttribute("src",Editor.crossImage);n.setAttribute("title",mxResources.get("removeIt",[b]));mxUtils.setOpacity(n,k?75:25);n.style.verticalAlign=
+"middle";n.style.cursor="pointer";n.style.width="16px";if(d||Editor.isDarkMode())n.style.filter="invert(100%)";mxEvent.addListener(n,"click",function(d){var c=mxUtils.indexOf(m,b);0<=c&&m.splice(c,1);f.removeTagsForCells(f.model.getDescendants(f.model.getRoot()),[b]);f.refresh();mxEvent.consume(d)});u.appendChild(n)}else{var t=document.createElement("input");t.setAttribute("type","checkbox");t.style.margin="0px";t.defaultChecked=null!=c&&0<=mxUtils.indexOf(c,b);t.checked=t.defaultChecked;t.style.background=
+"transparent";t.setAttribute("title",mxResources.get(t.defaultChecked?"removeIt":"add",[b]));mxEvent.addListener(t,"change",function(d){t.checked?f.addTagsForCells(f.getSelectionCells(),[b]):f.removeTagsForCells(f.getSelectionCells(),[b]);mxEvent.consume(d)});u.appendChild(t)}p.appendChild(u)}l.appendChild(p)})(b[u]);k.appendChild(l);p.appendChild(k)}}var f=this,m=f.hiddenTags.slice(),l=document.createElement("div");l.style.userSelect="none";l.style.overflow="hidden";l.style.padding="10px";l.style.height=
+"100%";var p=document.createElement("div");p.style.boxSizing="border-box";p.style.borderRadius="4px";p.style.userSelect="none";p.style.overflow="auto";p.style.position="absolute";p.style.left="10px";p.style.right="10px";p.style.top="10px";p.style.border=f.isEnabled()?"1px solid #808080":"none";p.style.bottom=f.isEnabled()?"48px":"10px";l.appendChild(p);var u=mxUtils.button(mxResources.get("reset"),function(b){f.hiddenTags=[];mxEvent.isShiftDown(b)||(m=f.hiddenTags.slice());g();f.refresh()});u.setAttribute("title",
+mxResources.get("reset"));u.className="geBtn";u.style.margin="0 4px 0 0";var n=mxUtils.button(mxResources.get("add"),function(){null!=c&&c(m,function(b){m=b;t()})});n.setAttribute("title",mxResources.get("add"));n.className="geBtn";n.style.margin="0";f.addListener(mxEvent.ROOT,function(){m=f.hiddenTags.slice()});var t=mxUtils.bind(this,function(d,c){if(b()){for(var g=f.getAllTags(),e=0;e<g.length;e++)0>mxUtils.indexOf(m,g[e])&&m.push(g[e]);m.sort();f.isSelectionEmpty()?k(m):k(m,f.getCommonTagsForCells(f.getSelectionCells()))}});
+f.selectionModel.addListener(mxEvent.CHANGE,t);f.model.addListener(mxEvent.CHANGE,t);f.addListener(mxEvent.REFRESH,t);var v=document.createElement("div");v.style.boxSizing="border-box";v.style.whiteSpace="nowrap";v.style.position="absolute";v.style.overflow="hidden";v.style.bottom="0px";v.style.height="42px";v.style.right="10px";v.style.left="10px";f.isEnabled()&&(v.appendChild(u),v.appendChild(n),l.appendChild(v));return{div:l,refresh:t}};Graph.prototype.getCustomFonts=function(){var b=this.extFonts,
+b=null!=b?b.slice():[],d;for(d in Graph.customFontElements){var c=Graph.customFontElements[d];b.push({name:c.name,url:c.url})}return b};Graph.prototype.setFont=function(b,d){Graph.addFont(b,d);document.execCommand("fontname",!1,b);if(null!=d){var c=this.cellEditor.textarea.getElementsByTagName("font");d=Graph.getFontUrl(b,d);for(var g=0;g<c.length;g++)c[g].getAttribute("face")==b&&c[g].getAttribute("data-font-src")!=d&&c[g].setAttribute("data-font-src",d)}};var F=Graph.prototype.isFastZoomEnabled;
+Graph.prototype.isFastZoomEnabled=function(){return F.apply(this,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=function(){this.globalVars=Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=null!=this.globalVars?mxUtils.clone(this.globalVars):{};var b=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=b)for(var d in b)this.globalVars[d]=b[d]}catch(J){null!=window.console&&console.log("Error in vars URL parameter: "+J)}};Graph.prototype.getExportVariables=
+function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var E=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(b){var d=E.apply(this,arguments);null==d&&null!=this.globalVars&&(d=this.globalVars[b]);return d};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var b=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(b.ownerDocument)).decode(b)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};
+var O=Graph.prototype.getSvg;Graph.prototype.getSvg=function(b,d,c,g,e,k,f,m,l,p,u,n,t,v){var x=null,y=null,z=null;n||null==this.themes||"darkTheme"!=this.defaultThemeName||(x=this.stylesheet,y=this.shapeForegroundColor,z=this.shapeBackgroundColor,this.shapeForegroundColor="darkTheme"==this.defaultThemeName?"#000000":Editor.lightColor,this.shapeBackgroundColor="darkTheme"==this.defaultThemeName?"#ffffff":Editor.darkColor,this.stylesheet=this.getDefaultStylesheet(),this.refresh());var q=O.apply(this,
+arguments),B=this.getCustomFonts();if(u&&0<B.length){var M=q.ownerDocument,C=null!=M.createElementNS?M.createElementNS(mxConstants.NS_SVG,"style"):M.createElement("style");null!=M.setAttributeNS?C.setAttributeNS("type","text/css"):C.setAttribute("type","text/css");for(var K="",G="",P=0;P<B.length;P++){var N=B[P].name,H=B[P].url;Graph.isCssFontUrl(H)?K+="@import url("+H+");\n":G+='@font-face {\nfont-family: "'+N+'";\nsrc: url("'+H+'");\n}\n'}C.appendChild(M.createTextNode(K+G));q.getElementsByTagName("defs")[0].appendChild(C)}null!=
+x&&(this.shapeBackgroundColor=z,this.shapeForegroundColor=y,this.stylesheet=x,this.refresh());return q};var B=Graph.prototype.createSvgImageExport;Graph.prototype.createSvgImageExport=function(){var b=B.apply(this,arguments);if(this.mathEnabled){var d=b.drawText;b.drawText=function(b,c){if(null!=b.text&&null!=b.text.value&&b.text.checkBounds()&&(mxUtils.isNode(b.text.value)||b.text.dialect==mxConstants.DIALECT_STRICTHTML)){var g=b.text.getContentNode();if(null!=g){g=g.cloneNode(!0);if(g.getElementsByTagNameNS)for(var e=
g.getElementsByTagNameNS("http://www.w3.org/1998/Math/MathML","math");0<e.length;)e[0].parentNode.removeChild(e[0]);null!=g.innerHTML&&(e=b.text.value,b.text.value=g.innerHTML,d.apply(this,arguments),b.text.value=e)}}else d.apply(this,arguments)}}return b};var G=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(b){G.apply(this,arguments);null!=b.secondLabel&&(b.secondLabel.destroy(),b.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(b){return[b.shape,
-b.text,b.secondLabel,b.control]};var I=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){I.apply(this,arguments);this.enumerationState=0};var L=mxGraphView.prototype.stateValidated;mxGraphView.prototype.stateValidated=function(b){null!=b.shape&&this.redrawEnumerationState(b);return L.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(b){b=decodeURIComponent(mxUtils.getValue(b.style,"enumerateValue",""));""==b&&(b=++this.enumerationState);
+b.text,b.secondLabel,b.control]};var H=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){H.apply(this,arguments);this.enumerationState=0};var L=mxGraphView.prototype.stateValidated;mxGraphView.prototype.stateValidated=function(b){null!=b.shape&&this.redrawEnumerationState(b);return L.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(b){b=decodeURIComponent(mxUtils.getValue(b.style,"enumerateValue",""));""==b&&(b=++this.enumerationState);
return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(b)+"</div>"};mxGraphView.prototype.redrawEnumerationState=function(b){var d="1"==mxUtils.getValue(b.style,"enumerate",0);d&&null==b.secondLabel?(b.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),b.secondLabel.size=12,b.secondLabel.state=b,b.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(b,b.secondLabel)):
-d||null==b.secondLabel||(b.secondLabel.destroy(),b.secondLabel=null);d=b.secondLabel;if(null!=d){var c=b.view.scale,g=this.createEnumerationValue(b);b=this.graph.model.isVertex(b.cell)?new mxRectangle(b.x+b.width-4*c,b.y+4*c,0,0):mxRectangle.fromPoint(b.view.getPoint(b));d.bounds.equals(b)&&d.value==g&&d.scale==c||(d.bounds=b,d.value=g,d.scale=c,d.redraw())}};var M=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){M.apply(this,arguments);if(mxClient.IS_GC&&
+d||null==b.secondLabel||(b.secondLabel.destroy(),b.secondLabel=null);d=b.secondLabel;if(null!=d){var c=b.view.scale,g=this.createEnumerationValue(b);b=this.graph.model.isVertex(b.cell)?new mxRectangle(b.x+b.width-4*c,b.y+4*c,0,0):mxRectangle.fromPoint(b.view.getPoint(b));d.bounds.equals(b)&&d.value==g&&d.scale==c||(d.bounds=b,d.value=g,d.scale=c,d.redraw())}};var N=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){N.apply(this,arguments);if(mxClient.IS_GC&&
null!=this.getDrawPane()){var b=this.getDrawPane().parentNode;!this.graph.mathEnabled||mxClient.NO_FO||null!=this.webKitForceRepaintNode&&null!=this.webKitForceRepaintNode.parentNode||"svg"!=this.graph.container.firstChild.nodeName?null==this.webKitForceRepaintNode||this.graph.mathEnabled&&("svg"==this.graph.container.firstChild.nodeName||this.graph.container.firstChild==this.webKitForceRepaintNode)||(null!=this.webKitForceRepaintNode.parentNode&&this.webKitForceRepaintNode.parentNode.removeChild(this.webKitForceRepaintNode),
-this.webKitForceRepaintNode=null):(this.webKitForceRepaintNode=document.createElement("div"),this.webKitForceRepaintNode.style.cssText="position:absolute;",b.ownerSVGElement.parentNode.insertBefore(this.webKitForceRepaintNode,b.ownerSVGElement))}};var K=Graph.prototype.refresh;Graph.prototype.refresh=function(){K.apply(this,arguments);this.refreshBackgroundImage()};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),
+this.webKitForceRepaintNode=null):(this.webKitForceRepaintNode=document.createElement("div"),this.webKitForceRepaintNode.style.cssText="position:absolute;",b.ownerSVGElement.parentNode.insertBefore(this.webKitForceRepaintNode,b.ownerSVGElement))}};var M=Graph.prototype.refresh;Graph.prototype.refresh=function(){M.apply(this,arguments);this.refreshBackgroundImage()};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),
this.view.validateBackgroundImage())};var P=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){P.apply(this,arguments);this.currentStyle="default-style2"};Graph.prototype.handleCustomLink=function(b){"data:action/json,"==b.substring(0,17)&&(b=JSON.parse(b.substring(17)),null!=b.actions&&this.executeCustomActions(b.actions))};Graph.prototype.executeCustomActions=function(b,d){if(this.executingCustomActions)this.stoppingCustomActions=!0,null!=this.pendingWaitThread&&window.clearTimeout(this.pendingWaitThread),
-null!=this.pendingExecuteNextAction&&this.pendingExecuteNextAction(),this.fireEvent(new mxEventObject("stopExecutingCustomActions"));else{this.executingCustomActions=!0;var c=!1,g=0,e=0,k=mxUtils.bind(this,function(){c||(c=!0,this.model.beginUpdate())}),f=mxUtils.bind(this,function(){c&&(c=!1,this.model.endUpdate())}),m=mxUtils.bind(this,function(){0<g&&g--;0==g&&l()}),l=mxUtils.bind(this,function(){if(e<b.length){var c=this.stoppingCustomActions,p=b[e++],v=[];if(null!=p.open)if(f(),this.isCustomLink(p.open)){if(!this.customLinkClicked(p.open))return}else this.openLink(p.open);
+null!=this.pendingExecuteNextAction&&this.pendingExecuteNextAction(),this.fireEvent(new mxEventObject("stopExecutingCustomActions"));else{this.executingCustomActions=!0;var c=!1,g=0,e=0,k=mxUtils.bind(this,function(){c||(c=!0,this.model.beginUpdate())}),f=mxUtils.bind(this,function(){c&&(c=!1,this.model.endUpdate())}),m=mxUtils.bind(this,function(){0<g&&g--;0==g&&l()}),l=mxUtils.bind(this,function(){if(e<b.length){var c=this.stoppingCustomActions,p=b[e++],u=[];if(null!=p.open)if(f(),this.isCustomLink(p.open)){if(!this.customLinkClicked(p.open))return}else this.openLink(p.open);
null==p.wait||c||(this.pendingExecuteNextAction=mxUtils.bind(this,function(){this.pendingWaitThread=this.pendingExecuteNextAction=null;m()}),g++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,""!=p.wait?parseInt(p.wait):1E3),f());null!=p.opacity&&null!=p.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(p.opacity,!0)),p.opacity.value);null!=p.fadeIn&&(g++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(p.fadeIn,!0)),0,1,m,c?0:
-p.fadeIn.delay));null!=p.fadeOut&&(g++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(p.fadeOut,!0)),1,0,m,c?0:p.fadeOut.delay));null!=p.wipeIn&&(v=v.concat(this.createWipeAnimations(this.getCellsForAction(p.wipeIn,!0),!0)));null!=p.wipeOut&&(v=v.concat(this.createWipeAnimations(this.getCellsForAction(p.wipeOut,!0),!1)));null!=p.toggle&&(k(),this.toggleCells(this.getCellsForAction(p.toggle,!0)));if(null!=p.show){k();var n=this.getCellsForAction(p.show,!0);Graph.setOpacityForNodes(this.getNodesForCells(n),
+p.fadeIn.delay));null!=p.fadeOut&&(g++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(p.fadeOut,!0)),1,0,m,c?0:p.fadeOut.delay));null!=p.wipeIn&&(u=u.concat(this.createWipeAnimations(this.getCellsForAction(p.wipeIn,!0),!0)));null!=p.wipeOut&&(u=u.concat(this.createWipeAnimations(this.getCellsForAction(p.wipeOut,!0),!1)));null!=p.toggle&&(k(),this.toggleCells(this.getCellsForAction(p.toggle,!0)));if(null!=p.show){k();var n=this.getCellsForAction(p.show,!0);Graph.setOpacityForNodes(this.getNodesForCells(n),
1);this.setCellsVisible(n,!0)}null!=p.hide&&(k(),n=this.getCellsForAction(p.hide,!0),Graph.setOpacityForNodes(this.getNodesForCells(n),0),this.setCellsVisible(n,!1));null!=p.toggleStyle&&null!=p.toggleStyle.key&&(k(),this.toggleCellStyles(p.toggleStyle.key,null!=p.toggleStyle.defaultValue?p.toggleStyle.defaultValue:"0",this.getCellsForAction(p.toggleStyle,!0)));null!=p.style&&null!=p.style.key&&(k(),this.setCellStyles(p.style.key,p.style.value,this.getCellsForAction(p.style,!0)));n=[];null!=p.select&&
this.isEnabled()&&(n=this.getCellsForAction(p.select),this.setSelectionCells(n));null!=p.highlight&&(n=this.getCellsForAction(p.highlight),this.highlightCells(n,p.highlight.color,p.highlight.duration,p.highlight.opacity));null!=p.scroll&&(n=this.getCellsForAction(p.scroll));null!=p.viewbox&&this.fitWindow(p.viewbox,p.viewbox.border);0<n.length&&this.scrollCellToVisible(n[0]);if(null!=p.tags){n=[];null!=p.tags.hidden&&(n=n.concat(p.tags.hidden));if(null!=p.tags.visible)for(var t=this.getAllTags(),
-u=0;u<t.length;u++)0>mxUtils.indexOf(p.tags.visible,t[u])&&0>mxUtils.indexOf(n,t[u])&&n.push(t[u]);this.hiddenTags=n;this.refresh()}0<v.length&&(g++,this.executeAnimations(v,m,c?1:p.steps,c?0:p.delay));0==g?l():f()}else this.stoppingCustomActions=this.executingCustomActions=!1,f(),null!=d&&d()});l()}};Graph.prototype.doUpdateCustomLinksForCell=function(b,d){var c=this.getLinkForCell(d);null!=c&&"data:action/json,"==c.substring(0,17)&&this.setLinkForCell(d,this.updateCustomLink(b,c));if(this.isHtmlLabel(d)){var g=
+v=0;v<t.length;v++)0>mxUtils.indexOf(p.tags.visible,t[v])&&0>mxUtils.indexOf(n,t[v])&&n.push(t[v]);this.hiddenTags=n;this.refresh()}0<u.length&&(g++,this.executeAnimations(u,m,c?1:p.steps,c?0:p.delay));0==g?l():f()}else this.stoppingCustomActions=this.executingCustomActions=!1,f(),null!=d&&d()});l()}};Graph.prototype.doUpdateCustomLinksForCell=function(b,d){var c=this.getLinkForCell(d);null!=c&&"data:action/json,"==c.substring(0,17)&&this.setLinkForCell(d,this.updateCustomLink(b,c));if(this.isHtmlLabel(d)){var g=
document.createElement("div");g.innerHTML=this.sanitizeHtml(this.getLabel(d));for(var e=g.getElementsByTagName("a"),k=!1,f=0;f<e.length;f++)c=e[f].getAttribute("href"),null!=c&&"data:action/json,"==c.substring(0,17)&&(e[f].setAttribute("href",this.updateCustomLink(b,c)),k=!0);k&&this.labelChanged(d,g.innerHTML)}};Graph.prototype.updateCustomLink=function(b,d){if("data:action/json,"==d.substring(0,17))try{var c=JSON.parse(d.substring(17));null!=c.actions&&(this.updateCustomLinkActions(b,c.actions),
-d="data:action/json,"+JSON.stringify(c))}catch(V){}return d};Graph.prototype.updateCustomLinkActions=function(b,d){for(var c=0;c<d.length;c++){var g=d[c],e;for(e in g)this.updateCustomLinkAction(b,g[e],"cells"),this.updateCustomLinkAction(b,g[e],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(b,d,c){if(null!=d&&null!=d[c]){for(var g=[],e=0;e<d[c].length;e++)if("*"==d[c][e])g.push(d[c][e]);else{var k=b[d[c][e]];null!=k?""!=k&&g.push(k):g.push(d[c][e])}d[c]=g}};Graph.prototype.getCellsForAction=
-function(b,d){var c=this.getCellsById(b.cells).concat(this.getCellsForTags(b.tags,null,d));if(null!=b.excludeCells){for(var g=[],e=0;e<c.length;e++)0>b.excludeCells.indexOf(c[e].id)&&g.push(c[e]);c=g}return c};Graph.prototype.getCellsById=function(b){var d=[];if(null!=b)for(var c=0;c<b.length;c++)if("*"==b[c])var g=this.model.getRoot(),d=d.concat(this.model.filterDescendants(function(b){return b!=g},g));else{var e=this.model.getCell(b[c]);null!=e&&d.push(e)}return d};var T=Graph.prototype.isCellVisible;
-Graph.prototype.isCellVisible=function(b){return T.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(b))};Graph.prototype.isAllTagsHidden=function(b){if(null==b||0==b.length||0==this.hiddenTags.length)return!1;b=b.split(" ");if(b.length>this.hiddenTags.length)return!1;for(var d=0;d<b.length;d++)if(0>mxUtils.indexOf(this.hiddenTags,b[d]))return!1;return!0};Graph.prototype.getCellsForTags=function(b,d,c,g){var e=[];if(null!=b){d=null!=d?d:this.model.getDescendants(this.model.getRoot());
-for(var k=0,f={},m=0;m<b.length;m++)0<b[m].length&&(f[b[m]]=!0,k++);for(m=0;m<d.length;m++)if(c&&this.model.getParent(d[m])==this.model.root||this.model.isVertex(d[m])||this.model.isEdge(d[m])){var l=this.getTagsForCell(d[m]),p=!1;if(0<l.length&&(l=l.split(" "),l.length>=b.length)){for(var v=p=0;v<l.length&&p<k;v++)null!=f[l[v]]&&p++;p=p==k}p&&(1!=g||this.isCellVisible(d[m]))&&e.push(d[m])}}return e};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};
+d="data:action/json,"+JSON.stringify(c))}catch(X){}return d};Graph.prototype.updateCustomLinkActions=function(b,d){for(var c=0;c<d.length;c++){var g=d[c],e;for(e in g)this.updateCustomLinkAction(b,g[e],"cells"),this.updateCustomLinkAction(b,g[e],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(b,d,c){if(null!=d&&null!=d[c]){for(var g=[],e=0;e<d[c].length;e++)if("*"==d[c][e])g.push(d[c][e]);else{var k=b[d[c][e]];null!=k?""!=k&&g.push(k):g.push(d[c][e])}d[c]=g}};Graph.prototype.getCellsForAction=
+function(b,d){var c=this.getCellsById(b.cells).concat(this.getCellsForTags(b.tags,null,d));if(null!=b.excludeCells){for(var g=[],e=0;e<c.length;e++)0>b.excludeCells.indexOf(c[e].id)&&g.push(c[e]);c=g}return c};Graph.prototype.getCellsById=function(b){var d=[];if(null!=b)for(var c=0;c<b.length;c++)if("*"==b[c])var g=this.model.getRoot(),d=d.concat(this.model.filterDescendants(function(b){return b!=g},g));else{var e=this.model.getCell(b[c]);null!=e&&d.push(e)}return d};var V=Graph.prototype.isCellVisible;
+Graph.prototype.isCellVisible=function(b){return V.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(b))};Graph.prototype.isAllTagsHidden=function(b){if(null==b||0==b.length||0==this.hiddenTags.length)return!1;b=b.split(" ");if(b.length>this.hiddenTags.length)return!1;for(var d=0;d<b.length;d++)if(0>mxUtils.indexOf(this.hiddenTags,b[d]))return!1;return!0};Graph.prototype.getCellsForTags=function(b,d,c,g){var e=[];if(null!=b){d=null!=d?d:this.model.getDescendants(this.model.getRoot());
+for(var k=0,f={},m=0;m<b.length;m++)0<b[m].length&&(f[b[m]]=!0,k++);for(m=0;m<d.length;m++)if(c&&this.model.getParent(d[m])==this.model.root||this.model.isVertex(d[m])||this.model.isEdge(d[m])){var l=this.getTagsForCell(d[m]),p=!1;if(0<l.length&&(l=l.split(" "),l.length>=b.length)){for(var u=p=0;u<l.length&&p<k;u++)null!=f[l[u]]&&p++;p=p==k}p&&(1!=g||this.isCellVisible(d[m]))&&e.push(d[m])}}return e};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};
Graph.prototype.getCommonTagsForCells=function(b){for(var d=null,c=[],g=0;g<b.length;g++){var e=this.getTagsForCell(b[g]),c=[];if(0<e.length){for(var e=e.split(" "),k={},f=0;f<e.length;f++)if(null==d||null!=d[e[f]])k[e[f]]=!0,c.push(e[f]);d=k}else return[]}return c};Graph.prototype.getTagsForCells=function(b){for(var d=[],c={},g=0;g<b.length;g++){var e=this.getTagsForCell(b[g]);if(0<e.length)for(var e=e.split(" "),k=0;k<e.length;k++)null==c[e[k]]&&(c[e[k]]=!0,d.push(e[k]))}return d};Graph.prototype.getTagsForCell=
function(b){return this.getAttributeForCell(b,"tags","")};Graph.prototype.addTagsForCells=function(b,d){if(0<b.length&&0<d.length){this.model.beginUpdate();try{for(var c=0;c<b.length;c++){for(var g=this.getTagsForCell(b[c]),e=g.split(" "),k=!1,f=0;f<d.length;f++){var m=mxUtils.trim(d[f]);""!=m&&0>mxUtils.indexOf(e,m)&&(g=0<g.length?g+" "+m:m,k=!0)}k&&this.setAttributeForCell(b[c],"tags",g)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(b,d){if(0<b.length&&0<d.length){this.model.beginUpdate();
try{for(var c=0;c<b.length;c++){var g=this.getTagsForCell(b[c]);if(0<g.length){for(var e=g.split(" "),k=!1,f=0;f<d.length;f++){var m=mxUtils.indexOf(e,d[f]);0<=m&&(e.splice(m,1),k=!0)}k&&this.setAttributeForCell(b[c],"tags",e.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=function(b){this.model.beginUpdate();try{for(var d=0;d<b.length;d++)this.model.setVisible(b[d],!this.model.isVisible(b[d]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(b,
@@ -3386,31 +3386,31 @@ STENCIL_PATH+"/floorplan.xml"];mxStencilRegistry.libraries.bootstrap=[SHAPES_PAT
mxStencilRegistry.libraries.archimate=[SHAPES_PATH+"/mxArchiMate.js"];mxStencilRegistry.libraries.archimate3=[SHAPES_PATH+"/mxArchiMate3.js"];mxStencilRegistry.libraries.sysml=[SHAPES_PATH+"/mxSysML.js"];mxStencilRegistry.libraries.eip=[SHAPES_PATH+"/mxEip.js",STENCIL_PATH+"/eip.xml"];mxStencilRegistry.libraries.networks=[SHAPES_PATH+"/mxNetworks.js",STENCIL_PATH+"/networks.xml"];mxStencilRegistry.libraries.aws3d=[SHAPES_PATH+"/mxAWS3D.js",STENCIL_PATH+"/aws3d.xml"];mxStencilRegistry.libraries.aws4=
[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.aws4b=[SHAPES_PATH+"/mxAWS4.js",STENCIL_PATH+"/aws4.xml"];mxStencilRegistry.libraries.uml25=[SHAPES_PATH+"/mxUML25.js"];mxStencilRegistry.libraries.veeam=[STENCIL_PATH+"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam.xml"];mxStencilRegistry.libraries.veeam2=[STENCIL_PATH+"/veeam/2d.xml",STENCIL_PATH+"/veeam/3d.xml",STENCIL_PATH+"/veeam/veeam2.xml"];mxStencilRegistry.libraries.pid2inst=[SHAPES_PATH+
"/pid2/mxPidInstruments.js"];mxStencilRegistry.libraries.pid2misc=[SHAPES_PATH+"/pid2/mxPidMisc.js",STENCIL_PATH+"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxMarker.getPackageForType=function(b){var d=null;null!=b&&0<b.length&&("ER"==b.substring(0,2)?d="mxgraph.er":"sysML"==b.substring(0,5)&&(d="mxgraph.sysml"));return d};var W=mxMarker.createMarker;mxMarker.createMarker=
-function(b,d,c,g,e,k,f,m,l,p){if(null!=c&&null==mxMarker.markers[c]){var v=this.getPackageForType(c);null!=v&&mxStencilRegistry.getStencil(v)}return W.apply(this,arguments)};PrintDialog.prototype.create=function(b,d){function c(){u.value=Math.max(1,Math.min(m,Math.max(parseInt(u.value),parseInt(t.value))));t.value=Math.max(1,Math.min(m,Math.min(parseInt(u.value),parseInt(t.value))))}function g(d){function c(d,c,k){var f=d.useCssTransforms,m=d.currentTranslate,l=d.currentScale,p=d.view.translate,v=
-d.view.scale;d.useCssTransforms&&(d.useCssTransforms=!1,d.currentTranslate=new mxPoint(0,0),d.currentScale=1,d.view.translate=new mxPoint(0,0),d.view.scale=1);var n=d.getGraphBounds(),t=0,u=0,y=H.get(),z=1/d.pageScale,A=x.checked;if(A)var z=parseInt(L.value),K=parseInt(ga.value),z=Math.min(y.height*K/(n.height/d.view.scale),y.width*z/(n.width/d.view.scale));else z=parseInt(q.value)/(100*d.pageScale),isNaN(z)&&(g=1/d.pageScale,q.value="100 %");y=mxRectangle.fromRectangle(y);y.width=Math.ceil(y.width*
-g);y.height=Math.ceil(y.height*g);z*=g;!A&&d.pageVisible?(n=d.getPageLayout(),t-=n.x*y.width,u-=n.y*y.height):A=!0;if(null==c){c=PrintDialog.createPrintPreview(d,z,y,0,t,u,A);c.pageSelector=!1;c.mathEnabled=!1;t=b.getCurrentFile();null!=t&&(c.title=t.getTitle());var G=c.writeHead;c.writeHead=function(c){G.apply(this,arguments);if(mxClient.IS_GC||mxClient.IS_SF)c.writeln('<style type="text/css">'),c.writeln(Editor.mathJaxWebkitCss),c.writeln("</style>");mxClient.IS_GC&&(c.writeln('<style type="text/css">'),
+function(b,d,c,g,e,k,f,m,l,p){if(null!=c&&null==mxMarker.markers[c]){var u=this.getPackageForType(c);null!=u&&mxStencilRegistry.getStencil(u)}return W.apply(this,arguments)};PrintDialog.prototype.create=function(b,d){function c(){v.value=Math.max(1,Math.min(m,Math.max(parseInt(v.value),parseInt(t.value))));t.value=Math.max(1,Math.min(m,Math.min(parseInt(v.value),parseInt(t.value))))}function g(d){function c(d,c,k){var f=d.useCssTransforms,m=d.currentTranslate,l=d.currentScale,p=d.view.translate,u=
+d.view.scale;d.useCssTransforms&&(d.useCssTransforms=!1,d.currentTranslate=new mxPoint(0,0),d.currentScale=1,d.view.translate=new mxPoint(0,0),d.view.scale=1);var n=d.getGraphBounds(),t=0,v=0,y=E.get(),z=1/d.pageScale,B=q.checked;if(B)var z=parseInt(D.value),M=parseInt(ga.value),z=Math.min(y.height*M/(n.height/d.view.scale),y.width*z/(n.width/d.view.scale));else z=parseInt(x.value)/(100*d.pageScale),isNaN(z)&&(g=1/d.pageScale,x.value="100 %");y=mxRectangle.fromRectangle(y);y.width=Math.ceil(y.width*
+g);y.height=Math.ceil(y.height*g);z*=g;!B&&d.pageVisible?(n=d.getPageLayout(),t-=n.x*y.width,v-=n.y*y.height):B=!0;if(null==c){c=PrintDialog.createPrintPreview(d,z,y,0,t,v,B);c.pageSelector=!1;c.mathEnabled=!1;t=b.getCurrentFile();null!=t&&(c.title=t.getTitle());var P=c.writeHead;c.writeHead=function(c){P.apply(this,arguments);if(mxClient.IS_GC||mxClient.IS_SF)c.writeln('<style type="text/css">'),c.writeln(Editor.mathJaxWebkitCss),c.writeln("</style>");mxClient.IS_GC&&(c.writeln('<style type="text/css">'),
c.writeln("@media print {"),c.writeln("span.MathJax_SVG svg { shape-rendering: crispEdges; }"),c.writeln("}"),c.writeln("</style>"));null!=b.editor.fontCss&&(c.writeln('<style type="text/css">'),c.writeln(b.editor.fontCss),c.writeln("</style>"));for(var g=d.getCustomFonts(),e=0;e<g.length;e++){var k=g[e].name,f=g[e].url;Graph.isCssFontUrl(f)?c.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(f)+'" charset="UTF-8" type="text/css">'):(c.writeln('<style type="text/css">'),c.writeln('@font-face {\nfont-family: "'+
-mxUtils.htmlEntities(k)+'";\nsrc: url("'+mxUtils.htmlEntities(f)+'");\n}'),c.writeln("</style>"))}};if("undefined"!==typeof MathJax){var P=c.renderPage;c.renderPage=function(d,c,g,e,k,f){var m=mxClient.NO_FO;mxClient.NO_FO=this.graph.mathEnabled&&!b.editor.useForeignObjectForMath?!0:b.editor.originalNoForeignObject;var l=P.apply(this,arguments);mxClient.NO_FO=m;this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:l.className="geDisableMathJax";return l}}t=null;u=e.enableFlowAnimation;e.enableFlowAnimation=
-!1;null!=e.themes&&"darkTheme"==e.defaultThemeName&&(t=e.stylesheet,e.stylesheet=e.getDefaultStylesheet(),e.refresh());c.open(null,null,k,!0);e.enableFlowAnimation=u;null!=t&&(e.stylesheet=t,e.refresh())}else{y=d.background;if(null==y||""==y||y==mxConstants.NONE)y="#ffffff";c.backgroundColor=y;c.autoOrigin=A;c.appendGraph(d,z,t,u,k,!0);k=d.getCustomFonts();if(null!=c.wnd)for(t=0;t<k.length;t++)u=k[t].name,A=k[t].url,Graph.isCssFontUrl(A)?c.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(A)+
-'" charset="UTF-8" type="text/css">'):(c.wnd.document.writeln('<style type="text/css">'),c.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(u)+'";\nsrc: url("'+mxUtils.htmlEntities(A)+'");\n}'),c.wnd.document.writeln("</style>"))}f&&(d.useCssTransforms=f,d.currentTranslate=m,d.currentScale=l,d.view.translate=p,d.view.scale=v);return c}var g=parseInt(C.value)/100;isNaN(g)&&(g=1,C.value="100 %");var g=.75*g,k=null;null!=e.themes&&"darkTheme"==e.defaultThemeName&&(k=e.stylesheet,
-e.stylesheet=e.getDefaultStylesheet(),e.refresh());var f=t.value,m=u.value,p=!v.checked,n=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(b,v.checked,f,m,x.checked,L.value,ga.value,parseInt(q.value)/100,parseInt(C.value)/100,H.get());else{p&&(p=f==l&&m==l);if(!p&&null!=b.pages&&b.pages.length){var y=0,p=b.pages.length-1;v.checked||(y=parseInt(f)-1,p=parseInt(m)-1);for(var z=y;z<=p;z++){var A=b.pages[z],f=A==b.currentPage?e:null;if(null==f){var f=b.createTemporaryGraph(e.stylesheet),m=!0,
-y=!1,K=null,G=null;null==A.viewState&&null==A.root&&b.updatePageRoot(A);null!=A.viewState&&(m=A.viewState.pageVisible,y=A.viewState.mathEnabled,K=A.viewState.background,G=A.viewState.backgroundImage,f.extFonts=A.viewState.extFonts);f.background=K;f.backgroundImage=null!=G?new mxImage(G.src,G.width,G.height):null;f.pageVisible=m;f.mathEnabled=y;var P=f.getGlobalVariable;f.getGlobalVariable=function(d){return"page"==d?A.getName():"pagenumber"==d?z+1:"pagecount"==d?null!=b.pages?b.pages.length:1:P.apply(this,
-arguments)};document.body.appendChild(f.container);b.updatePageRoot(A);f.model.setRoot(A.root)}n=c(f,n,z!=p);f!=e&&f.container.parentNode.removeChild(f.container)}}else n=c(e);null==n?b.handleError({message:mxResources.get("errorUpdatingPreview")}):(n.mathEnabled&&(p=n.wnd.document,d&&(n.wnd.IMMEDIATE_PRINT=!0),p.writeln('<script type="text/javascript" src="'+DRAWIO_BASE_URL+'/js/math-print.js">\x3c/script>')),n.closeDocument(),!n.mathEnabled&&d&&PrintDialog.printPreview(n));null!=k&&(e.stylesheet=
-k,e.refresh())}}var e=b.editor.graph,k=document.createElement("div"),f=document.createElement("h3");f.style.width="100%";f.style.textAlign="center";f.style.marginTop="0px";mxUtils.write(f,d||mxResources.get("print"));k.appendChild(f);var m=1,l=1,p=document.createElement("div");p.style.cssText="border-bottom:1px solid lightGray;padding-bottom:12px;margin-bottom:12px;";var v=document.createElement("input");v.style.cssText="margin-right:8px;margin-bottom:8px;";v.setAttribute("value","all");v.setAttribute("type",
-"radio");v.setAttribute("name","pages-printdialog");p.appendChild(v);f=document.createElement("span");mxUtils.write(f,mxResources.get("printAllPages"));p.appendChild(f);mxUtils.br(p);var n=v.cloneNode(!0);v.setAttribute("checked","checked");n.setAttribute("value","range");p.appendChild(n);f=document.createElement("span");mxUtils.write(f,mxResources.get("pages")+":");p.appendChild(f);var t=document.createElement("input");t.style.cssText="margin:0 8px 0 8px;";t.setAttribute("value","1");t.setAttribute("type",
-"number");t.setAttribute("min","1");t.style.width="50px";p.appendChild(t);f=document.createElement("span");mxUtils.write(f,mxResources.get("to"));p.appendChild(f);var u=t.cloneNode(!0);p.appendChild(u);mxEvent.addListener(t,"focus",function(){n.checked=!0});mxEvent.addListener(u,"focus",function(){n.checked=!0});mxEvent.addListener(t,"change",c);mxEvent.addListener(u,"change",c);if(null!=b.pages&&(m=b.pages.length,null!=b.currentPage))for(f=0;f<b.pages.length;f++)if(b.currentPage==b.pages[f]){l=f+
-1;t.value=l;u.value=l;break}t.setAttribute("max",m);u.setAttribute("max",m);b.isPagesEnabled()?1<m&&(k.appendChild(p),n.checked=!0):n.checked=!0;var y=document.createElement("div");y.style.marginBottom="10px";var z=document.createElement("input");z.style.marginRight="8px";z.setAttribute("value","adjust");z.setAttribute("type","radio");z.setAttribute("name","printZoom");y.appendChild(z);f=document.createElement("span");mxUtils.write(f,mxResources.get("adjustTo"));y.appendChild(f);var q=document.createElement("input");
-q.style.cssText="margin:0 8px 0 8px;";q.setAttribute("value","100 %");q.style.width="50px";y.appendChild(q);mxEvent.addListener(q,"focus",function(){z.checked=!0});k.appendChild(y);var p=p.cloneNode(!1),x=z.cloneNode(!0);x.setAttribute("value","fit");z.setAttribute("checked","checked");f=document.createElement("div");f.style.cssText="display:inline-block;height:100%;vertical-align:top;padding-top:2px;";f.appendChild(x);p.appendChild(f);y=document.createElement("table");y.style.display="inline-block";
-var A=document.createElement("tbody"),K=document.createElement("tr"),G=K.cloneNode(!0),P=document.createElement("td"),M=P.cloneNode(!0),I=P.cloneNode(!0),F=P.cloneNode(!0),E=P.cloneNode(!0),D=P.cloneNode(!0);P.style.textAlign="right";F.style.textAlign="right";mxUtils.write(P,mxResources.get("fitTo"));var L=document.createElement("input");L.style.cssText="margin:0 8px 0 8px;";L.setAttribute("value","1");L.setAttribute("min","1");L.setAttribute("type","number");L.style.width="40px";M.appendChild(L);
-f=document.createElement("span");mxUtils.write(f,mxResources.get("fitToSheetsAcross"));I.appendChild(f);mxUtils.write(F,mxResources.get("fitToBy"));var ga=L.cloneNode(!0);E.appendChild(ga);mxEvent.addListener(L,"focus",function(){x.checked=!0});mxEvent.addListener(ga,"focus",function(){x.checked=!0});f=document.createElement("span");mxUtils.write(f,mxResources.get("fitToSheetsDown"));D.appendChild(f);K.appendChild(P);K.appendChild(M);K.appendChild(I);G.appendChild(F);G.appendChild(E);G.appendChild(D);
-A.appendChild(K);A.appendChild(G);y.appendChild(A);p.appendChild(y);k.appendChild(p);p=document.createElement("div");f=document.createElement("div");f.style.fontWeight="bold";f.style.marginBottom="12px";mxUtils.write(f,mxResources.get("paperSize"));p.appendChild(f);f=document.createElement("div");f.style.marginBottom="12px";var H=PageSetupDialog.addPageFormatPanel(f,"printdialog",b.editor.graph.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT);p.appendChild(f);f=document.createElement("span");mxUtils.write(f,
+mxUtils.htmlEntities(k)+'";\nsrc: url("'+mxUtils.htmlEntities(f)+'");\n}'),c.writeln("</style>"))}};if("undefined"!==typeof MathJax){var G=c.renderPage;c.renderPage=function(d,c,g,e,k,f){var m=mxClient.NO_FO;mxClient.NO_FO=this.graph.mathEnabled&&!b.editor.useForeignObjectForMath?!0:b.editor.originalNoForeignObject;var l=G.apply(this,arguments);mxClient.NO_FO=m;this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:l.className="geDisableMathJax";return l}}t=null;v=e.enableFlowAnimation;e.enableFlowAnimation=
+!1;null!=e.themes&&"darkTheme"==e.defaultThemeName&&(t=e.stylesheet,e.stylesheet=e.getDefaultStylesheet(),e.refresh());c.open(null,null,k,!0);e.enableFlowAnimation=v;null!=t&&(e.stylesheet=t,e.refresh())}else{y=d.background;if(null==y||""==y||y==mxConstants.NONE)y="#ffffff";c.backgroundColor=y;c.autoOrigin=B;c.appendGraph(d,z,t,v,k,!0);k=d.getCustomFonts();if(null!=c.wnd)for(t=0;t<k.length;t++)v=k[t].name,B=k[t].url,Graph.isCssFontUrl(B)?c.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(B)+
+'" charset="UTF-8" type="text/css">'):(c.wnd.document.writeln('<style type="text/css">'),c.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(v)+'";\nsrc: url("'+mxUtils.htmlEntities(B)+'");\n}'),c.wnd.document.writeln("</style>"))}f&&(d.useCssTransforms=f,d.currentTranslate=m,d.currentScale=l,d.view.translate=p,d.view.scale=u);return c}var g=parseInt(C.value)/100;isNaN(g)&&(g=1,C.value="100 %");var g=.75*g,k=null;null!=e.themes&&"darkTheme"==e.defaultThemeName&&(k=e.stylesheet,
+e.stylesheet=e.getDefaultStylesheet(),e.refresh());var f=t.value,m=v.value,p=!u.checked,n=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(b,u.checked,f,m,q.checked,D.value,ga.value,parseInt(x.value)/100,parseInt(C.value)/100,E.get());else{p&&(p=f==l&&m==l);if(!p&&null!=b.pages&&b.pages.length){var y=0,p=b.pages.length-1;u.checked||(y=parseInt(f)-1,p=parseInt(m)-1);for(var z=y;z<=p;z++){var B=b.pages[z],f=B==b.currentPage?e:null;if(null==f){var f=b.createTemporaryGraph(e.stylesheet),m=!0,
+y=!1,M=null,P=null;null==B.viewState&&null==B.root&&b.updatePageRoot(B);null!=B.viewState&&(m=B.viewState.pageVisible,y=B.viewState.mathEnabled,M=B.viewState.background,P=B.viewState.backgroundImage,f.extFonts=B.viewState.extFonts);f.background=M;f.backgroundImage=null!=P?new mxImage(P.src,P.width,P.height):null;f.pageVisible=m;f.mathEnabled=y;var G=f.getGlobalVariable;f.getGlobalVariable=function(d){return"page"==d?B.getName():"pagenumber"==d?z+1:"pagecount"==d?null!=b.pages?b.pages.length:1:G.apply(this,
+arguments)};document.body.appendChild(f.container);b.updatePageRoot(B);f.model.setRoot(B.root)}n=c(f,n,z!=p);f!=e&&f.container.parentNode.removeChild(f.container)}}else n=c(e);null==n?b.handleError({message:mxResources.get("errorUpdatingPreview")}):(n.mathEnabled&&(p=n.wnd.document,d&&(n.wnd.IMMEDIATE_PRINT=!0),p.writeln('<script type="text/javascript" src="'+DRAWIO_BASE_URL+'/js/math-print.js">\x3c/script>')),n.closeDocument(),!n.mathEnabled&&d&&PrintDialog.printPreview(n));null!=k&&(e.stylesheet=
+k,e.refresh())}}var e=b.editor.graph,k=document.createElement("div"),f=document.createElement("h3");f.style.width="100%";f.style.textAlign="center";f.style.marginTop="0px";mxUtils.write(f,d||mxResources.get("print"));k.appendChild(f);var m=1,l=1,p=document.createElement("div");p.style.cssText="border-bottom:1px solid lightGray;padding-bottom:12px;margin-bottom:12px;";var u=document.createElement("input");u.style.cssText="margin-right:8px;margin-bottom:8px;";u.setAttribute("value","all");u.setAttribute("type",
+"radio");u.setAttribute("name","pages-printdialog");p.appendChild(u);f=document.createElement("span");mxUtils.write(f,mxResources.get("printAllPages"));p.appendChild(f);mxUtils.br(p);var n=u.cloneNode(!0);u.setAttribute("checked","checked");n.setAttribute("value","range");p.appendChild(n);f=document.createElement("span");mxUtils.write(f,mxResources.get("pages")+":");p.appendChild(f);var t=document.createElement("input");t.style.cssText="margin:0 8px 0 8px;";t.setAttribute("value","1");t.setAttribute("type",
+"number");t.setAttribute("min","1");t.style.width="50px";p.appendChild(t);f=document.createElement("span");mxUtils.write(f,mxResources.get("to"));p.appendChild(f);var v=t.cloneNode(!0);p.appendChild(v);mxEvent.addListener(t,"focus",function(){n.checked=!0});mxEvent.addListener(v,"focus",function(){n.checked=!0});mxEvent.addListener(t,"change",c);mxEvent.addListener(v,"change",c);if(null!=b.pages&&(m=b.pages.length,null!=b.currentPage))for(f=0;f<b.pages.length;f++)if(b.currentPage==b.pages[f]){l=f+
+1;t.value=l;v.value=l;break}t.setAttribute("max",m);v.setAttribute("max",m);b.isPagesEnabled()?1<m&&(k.appendChild(p),n.checked=!0):n.checked=!0;var y=document.createElement("div");y.style.marginBottom="10px";var z=document.createElement("input");z.style.marginRight="8px";z.setAttribute("value","adjust");z.setAttribute("type","radio");z.setAttribute("name","printZoom");y.appendChild(z);f=document.createElement("span");mxUtils.write(f,mxResources.get("adjustTo"));y.appendChild(f);var x=document.createElement("input");
+x.style.cssText="margin:0 8px 0 8px;";x.setAttribute("value","100 %");x.style.width="50px";y.appendChild(x);mxEvent.addListener(x,"focus",function(){z.checked=!0});k.appendChild(y);var p=p.cloneNode(!1),q=z.cloneNode(!0);q.setAttribute("value","fit");z.setAttribute("checked","checked");f=document.createElement("div");f.style.cssText="display:inline-block;height:100%;vertical-align:top;padding-top:2px;";f.appendChild(q);p.appendChild(f);y=document.createElement("table");y.style.display="inline-block";
+var B=document.createElement("tbody"),M=document.createElement("tr"),G=M.cloneNode(!0),P=document.createElement("td"),N=P.cloneNode(!0),H=P.cloneNode(!0),I=P.cloneNode(!0),F=P.cloneNode(!0),L=P.cloneNode(!0);P.style.textAlign="right";I.style.textAlign="right";mxUtils.write(P,mxResources.get("fitTo"));var D=document.createElement("input");D.style.cssText="margin:0 8px 0 8px;";D.setAttribute("value","1");D.setAttribute("min","1");D.setAttribute("type","number");D.style.width="40px";N.appendChild(D);
+f=document.createElement("span");mxUtils.write(f,mxResources.get("fitToSheetsAcross"));H.appendChild(f);mxUtils.write(I,mxResources.get("fitToBy"));var ga=D.cloneNode(!0);F.appendChild(ga);mxEvent.addListener(D,"focus",function(){q.checked=!0});mxEvent.addListener(ga,"focus",function(){q.checked=!0});f=document.createElement("span");mxUtils.write(f,mxResources.get("fitToSheetsDown"));L.appendChild(f);M.appendChild(P);M.appendChild(N);M.appendChild(H);G.appendChild(I);G.appendChild(F);G.appendChild(L);
+B.appendChild(M);B.appendChild(G);y.appendChild(B);p.appendChild(y);k.appendChild(p);p=document.createElement("div");f=document.createElement("div");f.style.fontWeight="bold";f.style.marginBottom="12px";mxUtils.write(f,mxResources.get("paperSize"));p.appendChild(f);f=document.createElement("div");f.style.marginBottom="12px";var E=PageSetupDialog.addPageFormatPanel(f,"printdialog",b.editor.graph.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT);p.appendChild(f);f=document.createElement("span");mxUtils.write(f,
mxResources.get("pageScale"));p.appendChild(f);var C=document.createElement("input");C.style.cssText="margin:0 8px 0 8px;";C.setAttribute("value","100 %");C.style.width="60px";p.appendChild(C);k.appendChild(p);f=document.createElement("div");f.style.cssText="text-align:right;margin:48px 0 0 0;";p=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});p.className="geBtn";b.editor.cancelFirst&&f.appendChild(p);b.isOffline()||(y=mxUtils.button(mxResources.get("help"),function(){e.openLink("https://www.diagrams.net/doc/faq/print-diagram")}),
y.className="geBtn",f.appendChild(y));PrintDialog.previewEnabled&&(y=mxUtils.button(mxResources.get("preview"),function(){b.hideDialog();g(!1)}),y.className="geBtn",f.appendChild(y));y=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){b.hideDialog();g(!0)});y.className="geBtn gePrimaryBtn";f.appendChild(y);b.editor.cancelFirst||f.appendChild(p);k.appendChild(f);this.container=k};var ga=ChangePageSetup.prototype.execute;ChangePageSetup.prototype.execute=function(){null==
this.page&&(this.page=this.ui.currentPage);if(this.page!=this.ui.currentPage){if(null!=this.page.viewState){this.ignoreColor||(this.page.viewState.background=this.color);if(!this.ignoreImage){var b=this.image;null!=b&&null!=b.src&&Graph.isPageLink(b.src)&&(b={originalSrc:b.src});this.page.viewState.backgroundImage=b}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.shadowVisible&&(this.page.viewState.shadowVisible=
-this.shadowVisible)}}else ga.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.prototype.useCanvasForExport=!1;try{var ja=document.createElement("canvas"),X=new Image;X.onload=function(){try{ja.getContext("2d").drawImage(X,
-0,0);var b=ja.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=b&&6<b.length}catch(C){}};X.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(x){}})();
+this.shadowVisible)}}else ga.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.prototype.useCanvasForExport=!1;try{var ea=document.createElement("canvas"),ba=new Image;ba.onload=function(){try{ea.getContext("2d").drawImage(ba,
+0,0);var b=ea.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=b&&6<b.length}catch(C){}};ba.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(x){}})();
(function(){var b=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);b.beforeDecode=function(b,e,f){f.ui=b.ui;return e};b.afterDecode=function(b,e,f){f.previousColor=f.color;f.previousImage=f.image;f.previousFormat=f.format;null!=f.foldingEnabled&&(f.foldingEnabled=!f.foldingEnabled);null!=f.mathEnabled&&(f.mathEnabled=!f.mathEnabled);null!=f.shadowVisible&&(f.shadowVisible=!f.shadowVisible);return f};mxCodecRegistry.register(b)})();
-(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(b,e,f){f.ui=b.ui;return e};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="16.4.0";EditorUi.compactUi="atlas"!=uiTheme;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;EditorUi.lastErrorMessage=
+(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(b,e,f){f.ui=b.ui;return e};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="16.4.3";EditorUi.compactUi="atlas"!=uiTheme;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;EditorUi.lastErrorMessage=
null;EditorUi.ignoredAnonymizedChars="\n\t`~!@#$%^&*()_+{}|:\"<>?-=[];'./,\n\t";EditorUi.templateFile=TEMPLATE_PATH+"/index.xml";EditorUi.cacheUrl="1"==urlParams.dev?"/cache":window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.enablePlantUml=EditorUi.enableLogging;EditorUi.isElectronApp=null!=window&&null!=window.process&&null!=window.process.versions&&null!=window.process.versions.electron;EditorUi.nativeFileSupport=
!mxClient.IS_OP&&!EditorUi.isElectronApp&&"1"!=urlParams.extAuth&&"showSaveFilePicker"in window&&"showOpenFilePicker"in window;EditorUi.enableDrafts=!mxClient.IS_CHROMEAPP&&isLocalStorage&&"0"!=urlParams.drafts;EditorUi.scratchpadHelpLink="https://www.diagrams.net/doc/faq/scratchpad";EditorUi.defaultMermaidConfig={theme:"neutral",arrowMarkerAbsolute:!1,flowchart:{htmlLabels:!1},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,
messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d"}};EditorUi.logError=function(b,c,g,e,f,l,n){l=null!=l?l:0<=b.indexOf("NetworkError")||0<=b.indexOf("SecurityError")||0<=b.indexOf("NS_ERROR_FAILURE")||0<=b.indexOf("out of memory")?"CONFIG":"SEVERE";if(EditorUi.enableLogging&&
@@ -3419,7 +3419,7 @@ encodeURIComponent(e):"")+(null!=f&&null!=f.stack?"&stack="+encodeURIComponent(f
function(b,c){if("1"==urlParams.dev)EditorUi.debug("sendReport",b);else if(EditorUi.enableLogging)try{c=null!=c?c:5E4,b.length>c&&(b=b.substring(0,c)+"\n...[SHORTENED]"),mxUtils.post("/email","version="+encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&data="+encodeURIComponent(b))}catch(g){}};EditorUi.debug=function(){try{if(null!=window.console&&"1"==urlParams.test){for(var b=[(new Date).toISOString()],c=0;c<arguments.length;c++)null!=arguments[c]&&b.push(arguments[c]);
console.log.apply(console,b)}}catch(g){}};EditorUi.removeChildNodes=function(b){for(;null!=b.firstChild;)b.removeChild(b.firstChild)};EditorUi.prototype.emptyDiagramXml='<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>';EditorUi.prototype.emptyLibraryXml="<mxlibrary>[]</mxlibrary>";EditorUi.prototype.mode=null;EditorUi.prototype.timeout=Editor.prototype.timeout;EditorUi.prototype.sidebarFooterHeight=38;EditorUi.prototype.defaultCustomShapeStyle="shape=stencil(tZRtTsQgEEBPw1+DJR7AoN6DbWftpAgE0Ortd/jYRGq72R+YNE2YgTePloEJGWblgA18ZuKFDcMj5/Sm8boZq+BgjCX4pTyqk6ZlKROitwusOMXKQDODx5iy4pXxZ5qTHiFHawxB0JrQZH7lCabQ0Fr+XWC1/E8zcsT/gAi+Subo2/3Mh6d/oJb5nU1b5tW7r2knautaa3T+U32o7f7vZwpJkaNDLORJjcu7t59m2jXxqX9un+tt022acsfmoKaQZ+vhhswZtS6Ne/ThQGt0IV0N3Yyv6P3CeT9/tHO0XFI5cAE=);whiteSpace=wrap;html=1;";
EditorUi.prototype.maxBackgroundSize=1600;EditorUi.prototype.maxImageSize=520;EditorUi.prototype.maxTextWidth=520;EditorUi.prototype.resampleThreshold=1E5;EditorUi.prototype.maxImageBytes=1E6;EditorUi.prototype.maxBackgroundBytes=25E5;EditorUi.prototype.maxTextBytes=5E5;EditorUi.prototype.currentFile=null;EditorUi.prototype.printPdfExport=!1;EditorUi.prototype.pdfPageExport=!0;EditorUi.prototype.formatEnabled="0"!=urlParams.format;EditorUi.prototype.insertTemplateEnabled=!0;EditorUi.prototype.closableScratchpad=
-!0;EditorUi.prototype.embedExportBorder=8;EditorUi.prototype.embedExportBackground=null;(function(){EditorUi.prototype.useCanvasForExport=!1;EditorUi.prototype.jpgSupported=!1;try{var b=document.createElement("canvas");EditorUi.prototype.canvasSupported=!(!b.getContext||!b.getContext("2d"))}catch(m){}try{var c=document.createElement("canvas"),g=new Image;g.onload=function(){try{c.getContext("2d").drawImage(g,0,0);var b=c.toDataURL("image/png");EditorUi.prototype.useCanvasForExport=null!=b&&6<b.length}catch(v){}};
+!0;EditorUi.prototype.embedExportBorder=8;EditorUi.prototype.embedExportBackground=null;(function(){EditorUi.prototype.useCanvasForExport=!1;EditorUi.prototype.jpgSupported=!1;try{var b=document.createElement("canvas");EditorUi.prototype.canvasSupported=!(!b.getContext||!b.getContext("2d"))}catch(m){}try{var c=document.createElement("canvas"),g=new Image;g.onload=function(){try{c.getContext("2d").drawImage(g,0,0);var b=c.toDataURL("image/png");EditorUi.prototype.useCanvasForExport=null!=b&&6<b.length}catch(u){}};
g.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(m){}try{c=document.createElement("canvas");c.width=c.height=1;var e=c.toDataURL("image/jpeg");EditorUi.prototype.jpgSupported=null!==e.match("image/jpeg")}catch(m){}})();EditorUi.prototype.openLink=
function(b,c,g){return this.editor.graph.openLink(b,c,g)};EditorUi.prototype.showSplash=function(b){};EditorUi.prototype.getLocalData=function(b,c){c(localStorage.getItem(b))};EditorUi.prototype.setLocalData=function(b,c,g){localStorage.setItem(b,c);null!=g&&g()};EditorUi.prototype.removeLocalData=function(b,c){localStorage.removeItem(b);c()};EditorUi.prototype.setMathEnabled=function(b){this.editor.graph.mathEnabled=b;this.editor.updateGraphComponents();this.editor.graph.refresh();this.editor.graph.defaultMathEnabled=
b;this.fireEvent(new mxEventObject("mathEnabledChanged"))};EditorUi.prototype.isMathEnabled=function(b){return this.editor.graph.mathEnabled};EditorUi.prototype.isOfflineApp=function(){return"1"==urlParams.offline};EditorUi.prototype.isOffline=function(b){return this.isOfflineApp()||!navigator.onLine||!b&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.createSpinner=function(b,c,g){var d=null==b||null==c;g=null!=g?g:24;var e=new Spinner({lines:12,length:g,width:Math.round(g/
@@ -3430,7 +3430,7 @@ m.innerHTML=f,g.appendChild(m),e.status=m),this.pause=mxUtils.bind(this,function
function(b){return 8<b.length&&(208==b.charCodeAt(0)&&207==b.charCodeAt(1)&&17==b.charCodeAt(2)&&224==b.charCodeAt(3)&&161==b.charCodeAt(4)&&177==b.charCodeAt(5)&&26==b.charCodeAt(6)&&225==b.charCodeAt(7)||60==b.charCodeAt(0)&&63==b.charCodeAt(1)&&120==b.charCodeAt(2)&&109==b.charCodeAt(3)&&108==b.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(d){var c=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var g=c.getFunction,
e=this.editor.graph,f=this;c.getFunction=function(b){if(e.isSelectionEmpty()&&null!=f.pages&&0<f.pages.length){var d=f.getSelectedPageIndex();if(mxEvent.isShiftDown(b)){if(37==b.keyCode)return function(){0<d&&f.movePage(d,d-1)};if(38==b.keyCode)return function(){0<d&&f.movePage(d,0)};if(39==b.keyCode)return function(){d<f.pages.length-1&&f.movePage(d,d+1)};if(40==b.keyCode)return function(){d<f.pages.length-1&&f.movePage(d,f.pages.length-1)}}else if(mxEvent.isControlDown(b)||mxClient.IS_MAC&&mxEvent.isMetaDown(b)){if(37==
b.keyCode)return function(){0<d&&f.selectNextPage(!1)};if(38==b.keyCode)return function(){0<d&&f.selectPage(f.pages[0])};if(39==b.keyCode)return function(){d<f.pages.length-1&&f.selectNextPage(!0)};if(40==b.keyCode)return function(){d<f.pages.length-1&&f.selectPage(f.pages[f.pages.length-1])}}}return g.apply(this,arguments)}}return c};var c=EditorUi.prototype.extractGraphModelFromHtml;EditorUi.prototype.extractGraphModelFromHtml=function(b){var d=c.apply(this,arguments);if(null==d)try{var g=b.indexOf("&lt;mxfile ");
-if(0<=g){var e=b.lastIndexOf("&lt;/mxfile&gt;");e>g&&(d=b.substring(g,e+15).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}else var f=mxUtils.parseXml(b),l=this.editor.extractGraphModel(f.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility),d=null!=l?mxUtils.getXml(l):""}catch(u){}return d};EditorUi.prototype.validateFileData=function(b){if(null!=b&&0<b.length){var d=b.indexOf('<meta charset="utf-8">');0<=d&&(b=b.slice(0,d)+'<meta charset="utf-8"/>'+
+if(0<=g){var e=b.lastIndexOf("&lt;/mxfile&gt;");e>g&&(d=b.substring(g,e+15).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}else var f=mxUtils.parseXml(b),l=this.editor.extractGraphModel(f.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility),d=null!=l?mxUtils.getXml(l):""}catch(v){}return d};EditorUi.prototype.validateFileData=function(b){if(null!=b&&0<b.length){var d=b.indexOf('<meta charset="utf-8">');0<=d&&(b=b.slice(0,d)+'<meta charset="utf-8"/>'+
b.slice(d+23-1,b.length));b=Graph.zapGremlins(b)}return b};EditorUi.prototype.replaceFileData=function(b){b=this.validateFileData(b);b=null!=b&&0<b.length?mxUtils.parseXml(b).documentElement:null;var d=null!=b?this.editor.extractGraphModel(b,!0):null;null!=d&&(b=d);if(null!=b){d=this.editor.graph;d.model.beginUpdate();try{var c=null!=this.pages?this.pages.slice():null,e=b.getElementsByTagName("diagram");if("0"!=urlParams.pages||1<e.length||1==e.length&&e[0].hasAttribute("name")){this.fileNode=b;this.pages=
null!=this.pages?this.pages:[];for(var f=e.length-1;0<=f;f--){var l=this.updatePageRoot(new DiagramPage(e[f]));null==l.getName()&&l.setName(mxResources.get("pageWithNumber",[f+1]));d.model.execute(new ChangePage(this,l,0==f?l:null,0))}}else"0"!=urlParams.pages&&null==this.fileNode&&(this.fileNode=b.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(b.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),d.model.execute(new ChangePage(this,
this.currentPage,this.currentPage,0))),this.editor.setGraphXml(b),null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root);if(null!=c)for(f=0;f<c.length;f++)d.model.execute(new ChangePage(this,c[f],null))}finally{d.model.endUpdate()}}};EditorUi.prototype.createFileData=function(b,c,g,e,f,l,n,t,z,y,q){c=null!=c?c:this.editor.graph;f=null!=f?f:!1;z=null!=z?z:!0;var d,k=null;null==g||g.getMode()==App.MODE_DEVICE||g.getMode()==App.MODE_BROWSER?d="_blank":k=d=e;if(null==b)return"";
@@ -3442,7 +3442,7 @@ null!=c&&0<c.length&&b.appendChild(mxUtils.parseXml(c).documentElement))):null==
l=l.encode(new mxGraphModel(k.root));this.editor.graph.saveViewState(k.viewState,l,null,e);EditorUi.removeChildNodes(f);mxUtils.setTextContent(f,Graph.compressNode(l));delete k.needsUpdate}else e&&(this.updatePageRoot(k),null!=k.viewState.backgroundImage&&(null!=k.viewState.backgroundImage.originalSrc?k.viewState.backgroundImage=this.createImageForPageLink(k.viewState.backgroundImage.originalSrc,k):Graph.isPageLink(k.viewState.backgroundImage.src)&&(k.viewState.backgroundImage=this.createImageForPageLink(k.viewState.backgroundImage.src,
k))),null!=k.viewState.backgroundImage&&null!=k.viewState.backgroundImage.originalSrc&&(l=new mxCodec(mxUtils.createXmlDocument()),l=l.encode(new mxGraphModel(k.root)),this.editor.graph.saveViewState(k.viewState,l,null,e),f=f.cloneNode(!1),mxUtils.setTextContent(f,Graph.compressNode(l))));b(f)}return d};EditorUi.prototype.anonymizeString=function(b,c){for(var d=[],e=0;e<b.length;e++){var k=b.charAt(e);0<=EditorUi.ignoredAnonymizedChars.indexOf(k)?d.push(k):isNaN(parseInt(k))?k.toLowerCase()!=k?d.push(String.fromCharCode(65+
Math.round(25*Math.random()))):k.toUpperCase()!=k?d.push(String.fromCharCode(97+Math.round(25*Math.random()))):/\s/.test(k)?d.push(" "):d.push("?"):d.push(c?"0":Math.round(9*Math.random()))}return d.join("")};EditorUi.prototype.anonymizePatch=function(b){if(null!=b[EditorUi.DIFF_INSERT])for(var d=0;d<b[EditorUi.DIFF_INSERT].length;d++)try{var c=mxUtils.parseXml(b[EditorUi.DIFF_INSERT][d].data).documentElement.cloneNode(!1);null!=c.getAttribute("name")&&c.setAttribute("name",this.anonymizeString(c.getAttribute("name")));
-b[EditorUi.DIFF_INSERT][d].data=mxUtils.getXml(c)}catch(v){b[EditorUi.DIFF_INSERT][d].data=v.message}if(null!=b[EditorUi.DIFF_UPDATE]){for(var e in b[EditorUi.DIFF_UPDATE]){var f=b[EditorUi.DIFF_UPDATE][e];null!=f.name&&(f.name=this.anonymizeString(f.name));null!=f.cells&&(d=mxUtils.bind(this,function(b){var d=f.cells[b];if(null!=d){for(var c in d)null!=d[c].value&&(d[c].value="["+d[c].value.length+"]"),null!=d[c].xmlValue&&(d[c].xmlValue="["+d[c].xmlValue.length+"]"),null!=d[c].style&&(d[c].style=
+b[EditorUi.DIFF_INSERT][d].data=mxUtils.getXml(c)}catch(u){b[EditorUi.DIFF_INSERT][d].data=u.message}if(null!=b[EditorUi.DIFF_UPDATE]){for(var e in b[EditorUi.DIFF_UPDATE]){var f=b[EditorUi.DIFF_UPDATE][e];null!=f.name&&(f.name=this.anonymizeString(f.name));null!=f.cells&&(d=mxUtils.bind(this,function(b){var d=f.cells[b];if(null!=d){for(var c in d)null!=d[c].value&&(d[c].value="["+d[c].value.length+"]"),null!=d[c].xmlValue&&(d[c].xmlValue="["+d[c].xmlValue.length+"]"),null!=d[c].style&&(d[c].style=
"["+d[c].style.length+"]"),0==Object.keys(d[c]).length&&delete d[c];0==Object.keys(d).length&&delete f.cells[b]}}),d(EditorUi.DIFF_INSERT),d(EditorUi.DIFF_UPDATE),0==Object.keys(f.cells).length&&delete f.cells);0==Object.keys(f).length&&delete b[EditorUi.DIFF_UPDATE][e]}0==Object.keys(b[EditorUi.DIFF_UPDATE]).length&&delete b[EditorUi.DIFF_UPDATE]}return b};EditorUi.prototype.anonymizeAttributes=function(b,c){if(null!=b.attributes)for(var d=0;d<b.attributes.length;d++)"as"!=b.attributes[d].name&&
b.setAttribute(b.attributes[d].name,this.anonymizeString(b.attributes[d].value,c));if(null!=b.childNodes)for(d=0;d<b.childNodes.length;d++)this.anonymizeAttributes(b.childNodes[d],c)};EditorUi.prototype.anonymizeNode=function(b,c){for(var d=b.getElementsByTagName("mxCell"),e=0;e<d.length;e++)null!=d[e].getAttribute("value")&&d[e].setAttribute("value","["+d[e].getAttribute("value").length+"]"),null!=d[e].getAttribute("xmlValue")&&d[e].setAttribute("xmlValue","["+d[e].getAttribute("xmlValue").length+
"]"),null!=d[e].getAttribute("style")&&d[e].setAttribute("style","["+d[e].getAttribute("style").length+"]"),null!=d[e].parentNode&&"root"!=d[e].parentNode.nodeName&&null!=d[e].parentNode.parentNode&&(d[e].setAttribute("id",d[e].parentNode.getAttribute("id")),d[e].parentNode.parentNode.replaceChild(d[e],d[e].parentNode));return b};EditorUi.prototype.synchronizeCurrentFile=function(b){var d=this.getCurrentFile();null!=d&&(d.savingFile?this.handleError({message:mxResources.get("busy")}):!b&&d.invalidChecksum?
@@ -3458,66 +3458,66 @@ mxUtils.htmlEntities(JSON.stringify(b))+'"></div>\n'+(null==f?'<script type="tex
null;var d=Editor.extractParserError(b,mxResources.get("invalidOrMissingFile"));if(d)throw Error(mxResources.get("notADiagramFile")+" ("+d+")");d=null!=b?this.editor.extractGraphModel(b,!0):null;null!=d&&(b=d);if(null!=b&&"mxfile"==b.nodeName&&(d=b.getElementsByTagName("diagram"),"0"!=urlParams.pages||1<d.length||1==d.length&&d[0].hasAttribute("name"))){var c=null;this.fileNode=b;this.pages=[];for(var e=0;e<d.length;e++)null==d[e].getAttribute("id")&&d[e].setAttribute("id",e),b=new DiagramPage(d[e]),
null==b.getName()&&b.setName(mxResources.get("pageWithNumber",[e+1])),this.pages.push(b),null!=urlParams["page-id"]&&b.getId()==urlParams["page-id"]&&(c=b);this.currentPage=null!=c?c:this.pages[Math.max(0,Math.min(this.pages.length-1,urlParams.page||0))];b=this.currentPage.node}"0"!=urlParams.pages&&null==this.fileNode&&null!=b&&(this.fileNode=b.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(b.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",
[1])),this.pages=[this.currentPage]);this.editor.setGraphXml(b);null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root);if(null!=urlParams["layer-ids"])try{var f=urlParams["layer-ids"].split(" ");b={};for(e=0;e<f.length;e++)b[f[e]]=!0;for(var l=this.editor.graph.getModel(),n=l.getChildren(l.root),e=0;e<n.length;e++){var t=n[e];l.setVisible(t,b[t.id]||!1)}}catch(z){}};EditorUi.prototype.getBaseFilename=function(b){var d=this.getCurrentFile(),d=null!=d&&null!=d.getTitle()?d.getTitle():
-this.defaultFilename;if(/(\.xml)$/i.test(d)||/(\.html)$/i.test(d)||/(\.svg)$/i.test(d)||/(\.png)$/i.test(d))d=d.substring(0,d.lastIndexOf("."));/(\.drawio)$/i.test(d)&&(d=d.substring(0,d.lastIndexOf(".")));!b&&null!=this.pages&&1<this.pages.length&&null!=this.currentPage&&null!=this.currentPage.node.getAttribute("name")&&0<this.currentPage.getName().length&&(d=d+"-"+this.currentPage.getName());return d};EditorUi.prototype.downloadFile=function(b,c,e,f,l,n,u,t,z,y,q,D){try{f=null!=f?f:this.editor.graph.isSelectionEmpty();
+this.defaultFilename;if(/(\.xml)$/i.test(d)||/(\.html)$/i.test(d)||/(\.svg)$/i.test(d)||/(\.png)$/i.test(d))d=d.substring(0,d.lastIndexOf("."));/(\.drawio)$/i.test(d)&&(d=d.substring(0,d.lastIndexOf(".")));!b&&null!=this.pages&&1<this.pages.length&&null!=this.currentPage&&null!=this.currentPage.node.getAttribute("name")&&0<this.currentPage.getName().length&&(d=d+"-"+this.currentPage.getName());return d};EditorUi.prototype.downloadFile=function(b,c,e,f,l,n,v,t,z,y,q,D){try{f=null!=f?f:this.editor.graph.isSelectionEmpty();
var d=this.getBaseFilename("remoteSvg"==b?!1:!l),g=d+("xml"==b||"pdf"==b&&q?".drawio":"")+"."+b;if("xml"==b){var k=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,f,l,null,null,null,c);this.saveData(g,b,k,"text/xml")}else if("html"==b)k=this.getHtml2(this.getFileData(!0),this.editor.graph,d),this.saveData(g,b,k,"text/html");else if("svg"!=b&&"xmlsvg"!=b||!this.spinner.spin(document.body,mxResources.get("export"))){var m,p;if("xmlpng"==b)g=d+".png";else if("jpeg"==b)g=d+".jpg";else if("remoteSvg"==
-b){g=d+".svg";b="svg";var v=parseInt(z);"string"===typeof t&&0<t.indexOf("%")&&(t=parseInt(t)/100);if(0<v){var F=this.editor.graph,M=F.getGraphBounds();m=Math.ceil(M.width*t/F.view.scale+2*v);p=Math.ceil(M.height*t/F.view.scale+2*v)}}this.saveRequest(g,b,mxUtils.bind(this,function(d,c){try{var e=this.editor.graph.pageVisible;null!=n&&(this.editor.graph.pageVisible=n);var g=this.createDownloadRequest(d,b,f,c,u,l,t,z,y,q,D,m,p);this.editor.graph.pageVisible=e;return g}catch(C){this.handleError(C)}}))}else{var K=
-null,P=mxUtils.bind(this,function(b){b.length<=MAX_REQUEST_SIZE?this.saveData(g,"svg",b,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(K)}))});if("svg"==b){var T=this.editor.graph.background;if(u||T==mxConstants.NONE)T=null;var W=this.editor.graph.getSvg(T,null,null,null,null,f);e&&this.editor.graph.addSvgShadow(W);this.editor.convertImages(W,mxUtils.bind(this,mxUtils.bind(this,function(b){this.spinner.stop();
-P(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(b))})))}else g=d+".svg",K=this.getFileData(!1,!0,null,mxUtils.bind(this,function(b){this.spinner.stop();P(b)}),f)}}catch(ga){this.handleError(ga)}};EditorUi.prototype.createDownloadRequest=function(b,c,e,f,l,n,u,t,z,y,q,D,E){var d=this.editor.graph,g=d.getGraphBounds();e=this.getFileData(!0,null,null,null,e,0==n?!1:"xmlpng"!=c,null,null,null,!1,"pdf"==c);var k="",m="";if(g.width*g.height>MAX_AREA||e.length>MAX_REQUEST_SIZE)throw{message:mxResources.get("drawingTooLarge")};
+b){g=d+".svg";b="svg";var u=parseInt(z);"string"===typeof t&&0<t.indexOf("%")&&(t=parseInt(t)/100);if(0<u){var L=this.editor.graph,N=L.getGraphBounds();m=Math.ceil(N.width*t/L.view.scale+2*u);p=Math.ceil(N.height*t/L.view.scale+2*u)}}this.saveRequest(g,b,mxUtils.bind(this,function(d,c){try{var e=this.editor.graph.pageVisible;null!=n&&(this.editor.graph.pageVisible=n);var g=this.createDownloadRequest(d,b,f,c,v,l,t,z,y,q,D,m,p);this.editor.graph.pageVisible=e;return g}catch(C){this.handleError(C)}}))}else{var M=
+null,P=mxUtils.bind(this,function(b){b.length<=MAX_REQUEST_SIZE?this.saveData(g,"svg",b,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(M)}))});if("svg"==b){var I=this.editor.graph.background;if(v||I==mxConstants.NONE)I=null;var W=this.editor.graph.getSvg(I,null,null,null,null,f);e&&this.editor.graph.addSvgShadow(W);this.editor.convertImages(W,mxUtils.bind(this,mxUtils.bind(this,function(b){this.spinner.stop();
+P(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(b))})))}else g=d+".svg",M=this.getFileData(!1,!0,null,mxUtils.bind(this,function(b){this.spinner.stop();P(b)}),f)}}catch(ga){this.handleError(ga)}};EditorUi.prototype.createDownloadRequest=function(b,c,e,f,l,n,v,t,z,y,q,D,F){var d=this.editor.graph,g=d.getGraphBounds();e=this.getFileData(!0,null,null,null,e,0==n?!1:"xmlpng"!=c,null,null,null,!1,"pdf"==c);var k="",m="";if(g.width*g.height>MAX_AREA||e.length>MAX_REQUEST_SIZE)throw{message:mxResources.get("drawingTooLarge")};
y=y?"1":"0";"pdf"==c&&(null!=q?m="&from="+q.from+"&to="+q.to:0==n&&(m="&allPages=1"));"xmlpng"==c&&(y="1",c="png");if(("xmlpng"==c||"svg"==c)&&null!=this.pages&&null!=this.currentPage)for(n=0;n<this.pages.length;n++)if(this.pages[n]==this.currentPage){k="&from="+n;break}n=d.background;"png"!=c&&"pdf"!=c&&"svg"!=c||!l?l||null!=n&&n!=mxConstants.NONE||(n="#ffffff"):n=mxConstants.NONE;l={globalVars:d.getExportVariables()};z&&(l.grid={size:d.gridSize,steps:d.view.gridSteps,color:d.view.gridColor});Graph.translateDiagram&&
-(l.diagramLanguage=Graph.diagramLanguage);return new mxXmlRequest(EXPORT_URL,"format="+c+k+m+"&bg="+(null!=n?n:mxConstants.NONE)+"&base64="+f+"&embedXml="+y+"&xml="+encodeURIComponent(e)+(null!=b?"&filename="+encodeURIComponent(b):"")+"&extras="+encodeURIComponent(JSON.stringify(l))+(null!=u?"&scale="+u:"")+(null!=t?"&border="+t:"")+(D&&isFinite(D)?"&w="+D:"")+(E&&isFinite(E)?"&h="+E:""))};EditorUi.prototype.setMode=function(b,c){this.mode=b};EditorUi.prototype.loadDescriptor=function(b,c,e){var d=
+(l.diagramLanguage=Graph.diagramLanguage);return new mxXmlRequest(EXPORT_URL,"format="+c+k+m+"&bg="+(null!=n?n:mxConstants.NONE)+"&base64="+f+"&embedXml="+y+"&xml="+encodeURIComponent(e)+(null!=b?"&filename="+encodeURIComponent(b):"")+"&extras="+encodeURIComponent(JSON.stringify(l))+(null!=v?"&scale="+v:"")+(null!=t?"&border="+t:"")+(D&&isFinite(D)?"&w="+D:"")+(F&&isFinite(F)?"&h="+F:""))};EditorUi.prototype.setMode=function(b,c){this.mode=b};EditorUi.prototype.loadDescriptor=function(b,c,e){var d=
window.location.hash,g=mxUtils.bind(this,function(e){var g=null!=b.data?b.data:"";null!=e&&0<e.length&&(0<g.length&&(g+="\n"),g+=e);e=new LocalFile(this,"csv"!=b.format&&0<g.length?g:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);e.getHash=function(){return d};this.fileLoaded(e);"csv"==b.format&&this.importCsv(g,mxUtils.bind(this,function(b){this.editor.undoManager.clear();this.editor.setModified(!1);this.editor.setStatus("")}));if(null!=b.update){var k=
null!=b.interval?parseInt(b.interval):6E4,f=null,l=mxUtils.bind(this,function(){var d=this.currentPage;mxUtils.post(b.update,"xml="+encodeURIComponent(mxUtils.getXml(this.editor.getGraphXml())),mxUtils.bind(this,function(b){d===this.currentPage&&(200<=b.getStatus()&&300>=b.getStatus()?(this.updateDiagram(b.getText()),m()):this.handleError({message:mxResources.get("error")+" "+b.getStatus()}))}),mxUtils.bind(this,function(b){this.handleError(b)}))}),m=mxUtils.bind(this,function(){window.clearTimeout(f);
f=window.setTimeout(l,k)});this.editor.addListener("pageSelected",mxUtils.bind(this,function(){m();l()}));m();l()}null!=c&&c()});null!=b.url&&0<b.url.length?this.editor.loadUrl(b.url,mxUtils.bind(this,function(b){g(b)}),mxUtils.bind(this,function(b){null!=e&&e(b)})):g("")};EditorUi.prototype.updateDiagram=function(b){function d(b){var d=new mxCellOverlay(b.image||f.warningImage,b.tooltip,b.align,b.valign,b.offset);d.addListener(mxEvent.CLICK,function(d,c){e.alert(b.tooltip)});return d}var c=null,
e=this;if(null!=b&&0<b.length&&(c=mxUtils.parseXml(b),b=null!=c?c.documentElement:null,null!=b&&"updates"==b.nodeName)){var f=this.editor.graph,l=f.getModel();l.beginUpdate();var n=null;try{for(b=b.firstChild;null!=b;){if("update"==b.nodeName){var t=l.getCell(b.getAttribute("id"));if(null!=t){try{var z=b.getAttribute("value");if(null!=z){var y=mxUtils.parseXml(z).documentElement;if(null!=y)if("1"==y.getAttribute("replace-value"))l.setValue(t,y);else for(var q=y.attributes,D=0;D<q.length;D++)f.setAttributeForCell(t,
-q[D].nodeName,0<q[D].nodeValue.length?q[D].nodeValue:null)}}catch(M){null!=window.console&&console.log("Error in value for "+t.id+": "+M)}try{var E=b.getAttribute("style");null!=E&&f.model.setStyle(t,E)}catch(M){null!=window.console&&console.log("Error in style for "+t.id+": "+M)}try{var H=b.getAttribute("icon");if(null!=H){var N=0<H.length?JSON.parse(H):null;null!=N&&N.append||f.removeCellOverlays(t);null!=N&&f.addCellOverlay(t,d(N))}}catch(M){null!=window.console&&console.log("Error in icon for "+
-t.id+": "+M)}try{var A=b.getAttribute("geometry");if(null!=A){var A=JSON.parse(A),G=f.getCellGeometry(t);if(null!=G){G=G.clone();for(key in A){var I=parseFloat(A[key]);"dx"==key?G.x+=I:"dy"==key?G.y+=I:"dw"==key?G.width+=I:"dh"==key?G.height+=I:G[key]=parseFloat(A[key])}f.model.setGeometry(t,G)}}}catch(M){null!=window.console&&console.log("Error in icon for "+t.id+": "+M)}}}else if("model"==b.nodeName){for(var L=b.firstChild;null!=L&&L.nodeType!=mxConstants.NODETYPE_ELEMENT;)L=L.nextSibling;null!=
+q[D].nodeName,0<q[D].nodeValue.length?q[D].nodeValue:null)}}catch(N){null!=window.console&&console.log("Error in value for "+t.id+": "+N)}try{var F=b.getAttribute("style");null!=F&&f.model.setStyle(t,F)}catch(N){null!=window.console&&console.log("Error in style for "+t.id+": "+N)}try{var E=b.getAttribute("icon");if(null!=E){var O=0<E.length?JSON.parse(E):null;null!=O&&O.append||f.removeCellOverlays(t);null!=O&&f.addCellOverlay(t,d(O))}}catch(N){null!=window.console&&console.log("Error in icon for "+
+t.id+": "+N)}try{var B=b.getAttribute("geometry");if(null!=B){var B=JSON.parse(B),G=f.getCellGeometry(t);if(null!=G){G=G.clone();for(key in B){var H=parseFloat(B[key]);"dx"==key?G.x+=H:"dy"==key?G.y+=H:"dw"==key?G.width+=H:"dh"==key?G.height+=H:G[key]=parseFloat(B[key])}f.model.setGeometry(t,G)}}}catch(N){null!=window.console&&console.log("Error in icon for "+t.id+": "+N)}}}else if("model"==b.nodeName){for(var L=b.firstChild;null!=L&&L.nodeType!=mxConstants.NODETYPE_ELEMENT;)L=L.nextSibling;null!=
L&&(new mxCodec(b.firstChild)).decode(L,l)}else if("view"==b.nodeName){if(b.hasAttribute("scale")&&(f.view.scale=parseFloat(b.getAttribute("scale"))),b.hasAttribute("dx")||b.hasAttribute("dy"))f.view.translate=new mxPoint(parseFloat(b.getAttribute("dx")||0),parseFloat(b.getAttribute("dy")||0))}else"fit"==b.nodeName&&(n=b.hasAttribute("max-scale")?parseFloat(b.getAttribute("max-scale")):1);b=b.nextSibling}}finally{l.endUpdate()}null!=n&&this.chromelessResize&&this.chromelessResize(!0,n)}return c};
EditorUi.prototype.getCopyFilename=function(b,c){var d=null!=b&&null!=b.getTitle()?b.getTitle():this.defaultFilename,e="",k=d.lastIndexOf(".");0<=k&&(e=d.substring(k),d=d.substring(0,k));if(c)var f=new Date,k=f.getFullYear(),l=f.getMonth()+1,n=f.getDate(),z=f.getHours(),y=f.getMinutes(),f=f.getSeconds(),d=d+(" "+(k+"-"+l+"-"+n+"-"+z+"-"+y+"-"+f));return d=mxResources.get("copyOf",[d])+e};EditorUi.prototype.fileLoaded=function(b,c){var d=this.getCurrentFile();this.fileEditable=this.fileLoadedError=
null;this.setCurrentFile(null);var e=!1;this.hideDialog();null!=d&&(EditorUi.debug("File.closed",[d]),d.removeListener(this.descriptorChangedListener),d.close());this.editor.graph.model.clear();this.editor.undoManager.clear();var f=mxUtils.bind(this,function(){this.setGraphEnabled(!1);this.setCurrentFile(null);null!=d&&this.updateDocumentTitle();this.editor.graph.model.clear();this.editor.undoManager.clear();this.setBackgroundImage(null);!c&&null!=window.location.hash&&0<window.location.hash.length&&
(window.location.hash="");null!=this.fname&&(this.fnameWrapper.style.display="none",this.fname.innerHTML="",this.fname.setAttribute("title",mxResources.get("rename")));this.editor.setStatus("");this.updateUi();c||this.showSplash()});if(null!=b)try{mxClient.IS_SF&&"min"==uiTheme&&(this.diagramContainer.style.visibility="");this.openingFile=!0;this.setCurrentFile(b);b.addListener("descriptorChanged",this.descriptorChangedListener);b.addListener("contentChanged",this.descriptorChangedListener);b.open();
delete this.openingFile;this.setGraphEnabled(!0);this.setMode(b.getMode());this.editor.graph.model.prefix=Editor.guid()+"-";this.editor.undoManager.clear();this.descriptorChanged();this.updateUi();b.isEditable()?b.isModified()?(b.addUnsavedStatus(),null!=b.backupPatch&&b.patch([b.backupPatch])):this.editor.setStatus(""):this.editor.setStatus('<span class="geStatusAlert">'+mxUtils.htmlEntities(mxResources.get("readOnly"))+"</span>");!this.editor.isChromelessView()||this.editor.editable?(this.editor.graph.selectUnlockedLayer(),
this.showLayersDialog(),this.restoreLibraries(),window.self!==window.top&&window.focus()):this.editor.graph.isLightboxView()&&this.lightboxFit();this.chromelessResize&&this.chromelessResize();this.editor.fireEvent(new mxEventObject("fileLoaded"));e=!0;if(!this.isOffline()&&null!=b.getMode()){var k="1"==urlParams.sketch?"sketch":uiTheme;if(null==k)k="default";else if("sketch"==k||"min"==k)k+=Editor.isDarkMode()?"-dark":"-light";EditorUi.logEvent({category:b.getMode().toUpperCase()+"-OPEN-FILE-"+b.getHash(),
-action:"size_"+b.getSize(),label:"autosave_"+(this.editor.autosave?"on":"off")+"_theme_"+k})}EditorUi.debug("File.opened",[b]);"1"==urlParams.viewerOnlyMsg&&this.showAlert(mxResources.get("viewerOnlyMsg"));if(this.editor.editable&&this.mode==b.getMode()&&b.getMode()!=App.MODE_DEVICE&&null!=b.getMode())try{this.addRecent({id:b.getHash(),title:b.getTitle(),mode:b.getMode()})}catch(u){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(u){}}catch(u){this.fileLoadedError=
-u;if(EditorUi.enableLogging&&!this.isOffline())try{EditorUi.logEvent({category:"ERROR-LOAD-FILE-"+(null!=b?b.getHash():"none"),action:"message_"+u.message,label:"stack_"+u.stack})}catch(t){}k=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=d?this.fileLoaded(d):f()});c?k():this.handleError(u,mxResources.get("errorLoadingFile"),k,!0,null,null,!0)}else f();return e};EditorUi.prototype.getHashValueForPages=
+action:"size_"+b.getSize(),label:"autosave_"+(this.editor.autosave?"on":"off")+"_theme_"+k})}EditorUi.debug("File.opened",[b]);"1"==urlParams.viewerOnlyMsg&&this.showAlert(mxResources.get("viewerOnlyMsg"));if(this.editor.editable&&this.mode==b.getMode()&&b.getMode()!=App.MODE_DEVICE&&null!=b.getMode())try{this.addRecent({id:b.getHash(),title:b.getTitle(),mode:b.getMode()})}catch(v){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(v){}}catch(v){this.fileLoadedError=
+v;if(EditorUi.enableLogging&&!this.isOffline())try{EditorUi.logEvent({category:"ERROR-LOAD-FILE-"+(null!=b?b.getHash():"none"),action:"message_"+v.message,label:"stack_"+v.stack})}catch(t){}k=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=d?this.fileLoaded(d):f()});c?k():this.handleError(v,mxResources.get("errorLoadingFile"),k,!0,null,null,!0)}else f();return e};EditorUi.prototype.getHashValueForPages=
function(b,c){var d=0,e=new mxGraphModel,f=new mxCodec;null!=c&&(c.byteCount=0,c.attrCount=0,c.eltCount=0,c.nodeCount=0);for(var k=0;k<b.length;k++){this.updatePageRoot(b[k]);var l=b[k].node.cloneNode(!1);l.removeAttribute("name");e.root=b[k].root;var n=f.encode(e);this.editor.graph.saveViewState(b[k].viewState,n,!0);n.removeAttribute("pageWidth");n.removeAttribute("pageHeight");l.appendChild(n);null!=c&&(c.eltCount+=l.getElementsByTagName("*").length,c.nodeCount+=l.getElementsByTagName("mxCell").length);
d=(d<<5)-d+this.hashValue(l,function(b,d,c,e){return!e||"mxGeometry"!=b.nodeName&&"mxPoint"!=b.nodeName||"x"!=d&&"y"!=d&&"width"!=d&&"height"!=d?e&&"mxCell"==b.nodeName&&"previous"==d?null:c:Math.round(c)},c)<<0}return d};EditorUi.prototype.hashValue=function(b,c,e){var d=0;if(null!=b&&"object"===typeof b&&"number"===typeof b.nodeType&&"string"===typeof b.nodeName&&"function"===typeof b.getAttribute){null!=b.nodeName&&(d^=this.hashValue(b.nodeName,c,e));if(null!=b.attributes){null!=e&&(e.attrCount+=
b.attributes.length);for(var g=0;g<b.attributes.length;g++){var f=b.attributes[g].name,k=null!=c?c(b,f,b.attributes[g].value,!0):b.attributes[g].value;null!=k&&(d^=this.hashValue(f,c,e)+this.hashValue(k,c,e))}}if(null!=b.childNodes)for(g=0;g<b.childNodes.length;g++)d=(d<<5)-d+this.hashValue(b.childNodes[g],c,e)<<0}else if(null!=b&&"function"!==typeof b){b=String(b);c=0;null!=e&&(e.byteCount+=b.length);for(g=0;g<b.length;g++)c=(c<<5)-c+b.charCodeAt(g)<<0;d^=c}return d};EditorUi.prototype.descriptorChanged=
-function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(b,c,e,f,l,n,u){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(b){null==b&&(b=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,b,".scratchpad"))})):this.closeLibrary(this.scratchpad))};
+function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(b,c,e,f,l,n,v){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(b){null==b&&(b=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,b,".scratchpad"))})):this.closeLibrary(this.scratchpad))};
EditorUi.prototype.createLibraryDataFromImages=function(b){var d=mxUtils.createXmlDocument(),c=d.createElement("mxlibrary");mxUtils.setTextContent(c,JSON.stringify(b));d.appendChild(c);return mxUtils.getXml(d)};EditorUi.prototype.closeLibrary=function(b){null!=b&&(this.removeLibrarySidebar(b.getHash()),b.constructor!=LocalLibrary&&mxSettings.removeCustomLibrary(b.getHash()),".scratchpad"==b.title&&(this.scratchpad=null))};EditorUi.prototype.removeLibrarySidebar=function(b){var d=this.sidebar.palettes[b];
if(null!=d){for(var c=0;c<d.length;c++)d[c].parentNode.removeChild(d[c]);delete this.sidebar.palettes[b]}};EditorUi.prototype.repositionLibrary=function(b){var d=this.sidebar.container;if(null==b){var c=this.sidebar.palettes["L.scratchpad"];null==c&&(c=this.sidebar.palettes.search);null!=c&&(b=c[c.length-1].nextSibling)}b=null!=b?b:d.firstChild.nextSibling.nextSibling;var c=d.lastChild,e=c.previousSibling;d.insertBefore(c,b);d.insertBefore(e,c)};EditorUi.prototype.loadLibrary=function(b,c){var d=
mxUtils.parseXml(b.getData());if("mxlibrary"==d.documentElement.nodeName){var e=JSON.parse(mxUtils.getTextContent(d.documentElement));this.libraryLoaded(b,e,d.documentElement.getAttribute("title"),c)}else throw{message:mxResources.get("notALibraryFile")};};EditorUi.prototype.getLibraryStorageHint=function(b){return""};EditorUi.prototype.libraryLoaded=function(b,c,e,f){if(null!=this.sidebar){b.constructor!=LocalLibrary&&mxSettings.addCustomLibrary(b.getHash());".scratchpad"==b.title&&(this.scratchpad=
b);var d=this.sidebar.palettes[b.getHash()],d=null!=d?d[d.length-1].nextSibling:null;this.removeLibrarySidebar(b.getHash());var g=null,k=mxUtils.bind(this,function(d,c){0==d.length&&b.isEditable()?(null==g&&(g=document.createElement("div"),g.className="geDropTarget",mxUtils.write(g,mxResources.get("dragElementsHere"))),c.appendChild(g)):this.addLibraryEntries(d,c)});null!=this.sidebar&&null!=c&&this.sidebar.addEntries(c);null==e&&(e=b.getTitle(),null!=e&&/(\.xml)$/i.test(e)&&(e=e.substring(0,e.lastIndexOf("."))));
var l=this.sidebar.addPalette(b.getHash(),e,null!=f?f:!0,mxUtils.bind(this,function(b){k(c,b)}));this.repositionLibrary(d);var p=l.parentNode.previousSibling;f=p.getAttribute("title");null!=f&&0<f.length&&".scratchpad"!=b.title&&p.setAttribute("title",this.getLibraryStorageHint(b)+"\n"+f);var n=document.createElement("div");n.style.position="absolute";n.style.right="0px";n.style.top="0px";n.style.padding="8px";n.style.backgroundColor="inherit";p.style.position="relative";var q=document.createElement("img");
q.setAttribute("src",Editor.crossImage);q.setAttribute("title",mxResources.get("close"));q.setAttribute("valign","absmiddle");q.setAttribute("border","0");q.style.position="relative";q.style.top="2px";q.style.width="14px";q.style.cursor="pointer";q.style.margin="0 3px";Editor.isDarkMode()&&(q.style.filter="invert(100%)");var D=null;if(".scratchpad"!=b.title||this.closableScratchpad)n.appendChild(q),mxEvent.addListener(q,"click",mxUtils.bind(this,function(d){if(!mxEvent.isConsumed(d)){var c=mxUtils.bind(this,
-function(){this.closeLibrary(b)});null!=D?this.confirm(mxResources.get("allChangesLost"),null,c,mxResources.get("cancel"),mxResources.get("discardChanges")):c();mxEvent.consume(d)}}));if(b.isEditable()){var E=this.editor.graph,H=null,N=mxUtils.bind(this,function(d){this.showLibraryDialog(b.getTitle(),l,c,b,b.getMode());mxEvent.consume(d)}),A=mxUtils.bind(this,function(d){b.setModified(!0);b.isAutosave()?(null!=H&&null!=H.parentNode&&H.parentNode.removeChild(H),H=q.cloneNode(!1),H.setAttribute("src",
-Editor.spinImage),H.setAttribute("title",mxResources.get("saving")),H.style.cursor="default",H.style.marginRight="2px",H.style.marginTop="-2px",n.insertBefore(H,n.firstChild),p.style.paddingRight=18*n.childNodes.length+"px",this.saveLibrary(b.getTitle(),c,b,b.getMode(),!0,!0,function(){null!=H&&null!=H.parentNode&&(H.parentNode.removeChild(H),p.style.paddingRight=18*n.childNodes.length+"px")})):null==D&&(D=q.cloneNode(!1),D.setAttribute("src",Editor.saveImage),D.setAttribute("title",mxResources.get("save")),
-n.insertBefore(D,n.firstChild),mxEvent.addListener(D,"click",mxUtils.bind(this,function(d){this.saveLibrary(b.getTitle(),c,b,b.getMode(),b.constructor==LocalLibrary,!0,function(){null==D||b.isModified()||(p.style.paddingRight=18*n.childNodes.length+"px",D.parentNode.removeChild(D),D=null)});mxEvent.consume(d)})),p.style.paddingRight=18*n.childNodes.length+"px")}),G=mxUtils.bind(this,function(b,d,e,f){b=E.cloneCells(mxUtils.sortCells(E.model.getTopmostCells(b)));for(var k=0;k<b.length;k++){var m=E.getCellGeometry(b[k]);
-null!=m&&m.translate(-d.x,-d.y)}l.appendChild(this.sidebar.createVertexTemplateFromCells(b,d.width,d.height,f||"",!0,null,!1));b={xml:Graph.compress(mxUtils.getXml(this.editor.graph.encodeCells(b))),w:d.width,h:d.height};null!=f&&(b.title=f);c.push(b);A(e);null!=g&&null!=g.parentNode&&0<c.length&&(g.parentNode.removeChild(g),g=null)}),I=mxUtils.bind(this,function(b){if(E.isSelectionEmpty())E.getRubberband().isActive()?(E.getRubberband().execute(b),E.getRubberband().reset()):this.showError(mxResources.get("error"),
-mxResources.get("nothingIsSelected"),mxResources.get("ok"));else{var d=E.getSelectionCells(),c=E.view.getBounds(d),e=E.view.scale;c.x/=e;c.y/=e;c.width/=e;c.height/=e;c.x-=E.view.translate.x;c.y-=E.view.translate.y;G(d,c)}mxEvent.consume(b)});mxEvent.addGestureListeners(l,function(){},mxUtils.bind(this,function(b){E.isMouseDown&&null!=E.panningManager&&null!=E.graphHandler.first&&(E.graphHandler.suspend(),null!=E.graphHandler.hint&&(E.graphHandler.hint.style.visibility="hidden"),l.style.backgroundColor=
-"#f1f3f4",l.style.cursor="copy",E.panningManager.stop(),E.autoScroll=!1,mxEvent.consume(b))}),mxUtils.bind(this,function(b){E.isMouseDown&&null!=E.panningManager&&null!=E.graphHandler&&(l.style.backgroundColor="",l.style.cursor="default",this.sidebar.showTooltips=!0,E.panningManager.stop(),E.graphHandler.reset(),E.isMouseDown=!1,E.autoScroll=!0,I(b),mxEvent.consume(b))}));mxEvent.addListener(l,"mouseleave",mxUtils.bind(this,function(b){E.isMouseDown&&null!=E.graphHandler.first&&(E.graphHandler.resume(),
-null!=E.graphHandler.hint&&(E.graphHandler.hint.style.visibility="visible"),l.style.backgroundColor="",l.style.cursor="",E.autoScroll=!0)}));Graph.fileSupport&&(mxEvent.addListener(l,"dragover",mxUtils.bind(this,function(b){l.style.backgroundColor="#f1f3f4";b.dataTransfer.dropEffect="copy";l.style.cursor="copy";this.sidebar.hideTooltip();b.stopPropagation();b.preventDefault()})),mxEvent.addListener(l,"drop",mxUtils.bind(this,function(b){l.style.cursor="";l.style.backgroundColor="";0<b.dataTransfer.files.length&&
-this.importFiles(b.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(d,e,f,m,p,n,v,t,u){if(null!=d&&"image/"==e.substring(0,6))d="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(d),d=[new mxCell("",new mxGeometry(0,0,p,n),d)],d[0].vertex=!0,G(d,new mxRectangle(0,0,p,n),b,mxEvent.isAltDown(b)?null:v.substring(0,v.lastIndexOf(".")).replace(/_/g," ")),null!=g&&null!=g.parentNode&&0<c.length&&(g.parentNode.removeChild(g),
-g=null);else{var y=!1,z=mxUtils.bind(this,function(d,e){if(null!=d&&"application/pdf"==e){var f=Editor.extractGraphModelFromPdf(d);null!=f&&0<f.length&&(d=f)}if(null!=d)if(f=mxUtils.parseXml(d),"mxlibrary"==f.documentElement.nodeName)try{var m=JSON.parse(mxUtils.getTextContent(f.documentElement));k(m,l);c=c.concat(m);A(b);this.spinner.stop();y=!0}catch(oa){}else if("mxfile"==f.documentElement.nodeName)try{for(var p=f.documentElement.getElementsByTagName("diagram"),m=0;m<p.length;m++){var n=this.stringToCells(Editor.getDiagramNodeXml(p[m])),
-v=this.editor.graph.getBoundingBoxFromGeometry(n);G(n,new mxRectangle(0,0,v.width,v.height),b)}y=!0}catch(oa){null!=window.console&&console.log("error in drop handler:",oa)}y||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));null!=g&&null!=g.parentNode&&0<c.length&&(g.parentNode.removeChild(g),g=null)});null!=u&&null!=v&&(/(\.v(dx|sdx?))($|\?)/i.test(v)||/(\.vs(x|sx?))($|\?)/i.test(v))?this.importVisio(u,function(b){z(b,"text/xml")},null,v):!this.isOffline()&&
-(new XMLHttpRequest).upload&&this.isRemoteFileFormat(d,v)&&null!=u?this.parseFile(u,mxUtils.bind(this,function(b){4==b.readyState&&(this.spinner.stop(),200<=b.status&&299>=b.status?z(b.responseText,"text/xml"):this.handleError({message:mxResources.get(413==b.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):z(d,e)}}));b.stopPropagation();b.preventDefault()})),mxEvent.addListener(l,"dragleave",function(b){l.style.cursor="";l.style.backgroundColor="";b.stopPropagation();
-b.preventDefault()}));q=q.cloneNode(!1);q.setAttribute("src",Editor.editImage);q.setAttribute("title",mxResources.get("edit"));n.insertBefore(q,n.firstChild);mxEvent.addListener(q,"click",N);mxEvent.addListener(l,"dblclick",function(b){mxEvent.getSource(b)==l&&N(b)});f=q.cloneNode(!1);f.setAttribute("src",Editor.plusImage);f.setAttribute("title",mxResources.get("add"));n.insertBefore(f,n.firstChild);mxEvent.addListener(f,"click",I);this.isOffline()||".scratchpad"!=b.title||null==EditorUi.scratchpadHelpLink||
+function(){this.closeLibrary(b)});null!=D?this.confirm(mxResources.get("allChangesLost"),null,c,mxResources.get("cancel"),mxResources.get("discardChanges")):c();mxEvent.consume(d)}}));if(b.isEditable()){var F=this.editor.graph,E=null,O=mxUtils.bind(this,function(d){this.showLibraryDialog(b.getTitle(),l,c,b,b.getMode());mxEvent.consume(d)}),B=mxUtils.bind(this,function(d){b.setModified(!0);b.isAutosave()?(null!=E&&null!=E.parentNode&&E.parentNode.removeChild(E),E=q.cloneNode(!1),E.setAttribute("src",
+Editor.spinImage),E.setAttribute("title",mxResources.get("saving")),E.style.cursor="default",E.style.marginRight="2px",E.style.marginTop="-2px",n.insertBefore(E,n.firstChild),p.style.paddingRight=18*n.childNodes.length+"px",this.saveLibrary(b.getTitle(),c,b,b.getMode(),!0,!0,function(){null!=E&&null!=E.parentNode&&(E.parentNode.removeChild(E),p.style.paddingRight=18*n.childNodes.length+"px")})):null==D&&(D=q.cloneNode(!1),D.setAttribute("src",Editor.saveImage),D.setAttribute("title",mxResources.get("save")),
+n.insertBefore(D,n.firstChild),mxEvent.addListener(D,"click",mxUtils.bind(this,function(d){this.saveLibrary(b.getTitle(),c,b,b.getMode(),b.constructor==LocalLibrary,!0,function(){null==D||b.isModified()||(p.style.paddingRight=18*n.childNodes.length+"px",D.parentNode.removeChild(D),D=null)});mxEvent.consume(d)})),p.style.paddingRight=18*n.childNodes.length+"px")}),G=mxUtils.bind(this,function(b,d,e,f){b=F.cloneCells(mxUtils.sortCells(F.model.getTopmostCells(b)));for(var k=0;k<b.length;k++){var m=F.getCellGeometry(b[k]);
+null!=m&&m.translate(-d.x,-d.y)}l.appendChild(this.sidebar.createVertexTemplateFromCells(b,d.width,d.height,f||"",!0,null,!1));b={xml:Graph.compress(mxUtils.getXml(this.editor.graph.encodeCells(b))),w:d.width,h:d.height};null!=f&&(b.title=f);c.push(b);B(e);null!=g&&null!=g.parentNode&&0<c.length&&(g.parentNode.removeChild(g),g=null)}),H=mxUtils.bind(this,function(b){if(F.isSelectionEmpty())F.getRubberband().isActive()?(F.getRubberband().execute(b),F.getRubberband().reset()):this.showError(mxResources.get("error"),
+mxResources.get("nothingIsSelected"),mxResources.get("ok"));else{var d=F.getSelectionCells(),c=F.view.getBounds(d),e=F.view.scale;c.x/=e;c.y/=e;c.width/=e;c.height/=e;c.x-=F.view.translate.x;c.y-=F.view.translate.y;G(d,c)}mxEvent.consume(b)});mxEvent.addGestureListeners(l,function(){},mxUtils.bind(this,function(b){F.isMouseDown&&null!=F.panningManager&&null!=F.graphHandler.first&&(F.graphHandler.suspend(),null!=F.graphHandler.hint&&(F.graphHandler.hint.style.visibility="hidden"),l.style.backgroundColor=
+"#f1f3f4",l.style.cursor="copy",F.panningManager.stop(),F.autoScroll=!1,mxEvent.consume(b))}),mxUtils.bind(this,function(b){F.isMouseDown&&null!=F.panningManager&&null!=F.graphHandler&&(l.style.backgroundColor="",l.style.cursor="default",this.sidebar.showTooltips=!0,F.panningManager.stop(),F.graphHandler.reset(),F.isMouseDown=!1,F.autoScroll=!0,H(b),mxEvent.consume(b))}));mxEvent.addListener(l,"mouseleave",mxUtils.bind(this,function(b){F.isMouseDown&&null!=F.graphHandler.first&&(F.graphHandler.resume(),
+null!=F.graphHandler.hint&&(F.graphHandler.hint.style.visibility="visible"),l.style.backgroundColor="",l.style.cursor="",F.autoScroll=!0)}));Graph.fileSupport&&(mxEvent.addListener(l,"dragover",mxUtils.bind(this,function(b){l.style.backgroundColor="#f1f3f4";b.dataTransfer.dropEffect="copy";l.style.cursor="copy";this.sidebar.hideTooltip();b.stopPropagation();b.preventDefault()})),mxEvent.addListener(l,"drop",mxUtils.bind(this,function(b){l.style.cursor="";l.style.backgroundColor="";0<b.dataTransfer.files.length&&
+this.importFiles(b.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(d,e,f,m,p,n,u,t,v){if(null!=d&&"image/"==e.substring(0,6))d="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(d),d=[new mxCell("",new mxGeometry(0,0,p,n),d)],d[0].vertex=!0,G(d,new mxRectangle(0,0,p,n),b,mxEvent.isAltDown(b)?null:u.substring(0,u.lastIndexOf(".")).replace(/_/g," ")),null!=g&&null!=g.parentNode&&0<c.length&&(g.parentNode.removeChild(g),
+g=null);else{var y=!1,z=mxUtils.bind(this,function(d,e){if(null!=d&&"application/pdf"==e){var f=Editor.extractGraphModelFromPdf(d);null!=f&&0<f.length&&(d=f)}if(null!=d)if(f=mxUtils.parseXml(d),"mxlibrary"==f.documentElement.nodeName)try{var m=JSON.parse(mxUtils.getTextContent(f.documentElement));k(m,l);c=c.concat(m);B(b);this.spinner.stop();y=!0}catch(ha){}else if("mxfile"==f.documentElement.nodeName)try{for(var p=f.documentElement.getElementsByTagName("diagram"),m=0;m<p.length;m++){var n=this.stringToCells(Editor.getDiagramNodeXml(p[m])),
+u=this.editor.graph.getBoundingBoxFromGeometry(n);G(n,new mxRectangle(0,0,u.width,u.height),b)}y=!0}catch(ha){null!=window.console&&console.log("error in drop handler:",ha)}y||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));null!=g&&null!=g.parentNode&&0<c.length&&(g.parentNode.removeChild(g),g=null)});null!=v&&null!=u&&(/(\.v(dx|sdx?))($|\?)/i.test(u)||/(\.vs(x|sx?))($|\?)/i.test(u))?this.importVisio(v,function(b){z(b,"text/xml")},null,u):!this.isOffline()&&
+(new XMLHttpRequest).upload&&this.isRemoteFileFormat(d,u)&&null!=v?this.parseFile(v,mxUtils.bind(this,function(b){4==b.readyState&&(this.spinner.stop(),200<=b.status&&299>=b.status?z(b.responseText,"text/xml"):this.handleError({message:mxResources.get(413==b.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):z(d,e)}}));b.stopPropagation();b.preventDefault()})),mxEvent.addListener(l,"dragleave",function(b){l.style.cursor="";l.style.backgroundColor="";b.stopPropagation();
+b.preventDefault()}));q=q.cloneNode(!1);q.setAttribute("src",Editor.editImage);q.setAttribute("title",mxResources.get("edit"));n.insertBefore(q,n.firstChild);mxEvent.addListener(q,"click",O);mxEvent.addListener(l,"dblclick",function(b){mxEvent.getSource(b)==l&&O(b)});f=q.cloneNode(!1);f.setAttribute("src",Editor.plusImage);f.setAttribute("title",mxResources.get("add"));n.insertBefore(f,n.firstChild);mxEvent.addListener(f,"click",H);this.isOffline()||".scratchpad"!=b.title||null==EditorUi.scratchpadHelpLink||
(f=document.createElement("span"),f.setAttribute("title",mxResources.get("help")),f.style.cssText="color:#a3a3a3;text-decoration:none;margin-right:2px;cursor:pointer;",mxUtils.write(f,"?"),mxEvent.addGestureListeners(f,mxUtils.bind(this,function(b){this.openLink(EditorUi.scratchpadHelpLink);mxEvent.consume(b)})),n.insertBefore(f,n.firstChild))}p.appendChild(n);p.style.paddingRight=18*n.childNodes.length+"px"}};EditorUi.prototype.addLibraryEntries=function(b,c){for(var d=0;d<b.length;d++){var e=b[d],
f=e.data;if(null!=f){var f=this.convertDataUri(f),k="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==e.aspect&&(k+="aspect=fixed;");c.appendChild(this.sidebar.createVertexTemplate(k+"image="+f,e.w,e.h,"",e.title||"",!1,null,!0))}else null!=e.xml&&(f=this.stringToCells(Graph.decompress(e.xml)),0<f.length&&c.appendChild(this.sidebar.createVertexTemplateFromCells(f,e.w,e.h,e.title||"",!0,null,!0)))}};EditorUi.prototype.getResource=function(b){return null!=b?b[mxLanguage]||
b.main:null};EditorUi.prototype.footerHeight=0;"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64);EditorUi.initTheme=function(){"atlas"==uiTheme?(mxClient.link("stylesheet",STYLE_PATH+"/atlas.css"),"undefined"!==typeof Toolbar&&(Toolbar.prototype.unselectedBackground="linear-gradient(rgb(255, 255, 255) 0px, rgb(242, 242, 242) 100%)",Toolbar.prototype.selectedBackground="rgb(242, 242, 242)"),Editor.prototype.initialTopSpacing=3,EditorUi.prototype.menubarHeight=
41,EditorUi.prototype.toolbarHeight=38):Editor.isDarkMode()&&(mxClient.link("stylesheet",STYLE_PATH+"/dark.css"),Dialog.backdropColor=Editor.darkColor,Format.inactiveTabBackgroundColor="black",Graph.prototype.defaultThemeName="darkTheme",Graph.prototype.shapeBackgroundColor=Editor.darkColor,Graph.prototype.shapeForegroundColor=Editor.lightColor,Graph.prototype.defaultPageBackgroundColor=Editor.darkColor,Graph.prototype.defaultPageBorderColor="#505759",BaseFormatPanel.prototype.buttonBackgroundColor=
Editor.darkColor,mxGraphHandler.prototype.previewColor="#cccccc",StyleFormatPanel.prototype.defaultStrokeColor="#cccccc",mxConstants.DROP_TARGET_COLOR="#00ff00");Editor.sketchFontFamily="Architects Daughter";Editor.sketchFontSource="https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter";Editor.sketchFonts=[{fontFamily:Editor.sketchFontFamily,fontUrl:decodeURIComponent(Editor.sketchFontSource)}];"1"==urlParams.sketch&&("undefined"!==typeof Menus&&(Menus.prototype.defaultFonts=Menus.prototype.defaultFonts.concat(Editor.sketchFonts)),
Graph.prototype.defaultVertexStyle={hachureGap:"4"},Graph.prototype.defaultEdgeStyle={edgeStyle:"none",rounded:"0",curved:"1",jettySize:"auto",orthogonalLoop:"1",endArrow:"open",startSize:"14",endSize:"14",sourcePerimeterSpacing:"8",targetPerimeterSpacing:"8"},Editor.configurationKey=".sketch-configuration",Editor.settingsKey=".sketch-config",Graph.prototype.defaultGridEnabled="1"==urlParams.grid,Graph.prototype.defaultPageVisible="1"==urlParams.pv,Graph.prototype.defaultEdgeLength=120,Editor.fitWindowBorders=
-new mxRectangle(60,30,30,30))};EditorUi.initTheme();EditorUi.prototype.showImageDialog=function(b,c,e,f,l,n,u){b=new ImageDialog(this,b,c,e,f,l,n,u);this.showDialog(b.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);b.init()};EditorUi.prototype.showBackgroundImageDialog=function(b,c){b=null!=b?b:mxUtils.bind(this,function(b,d){if(!d){var c=new ChangePageSetup(this,null,b);c.ignoreColor=!0;this.editor.graph.model.execute(c)}});var d=new BackgroundImageDialog(this,b,c);this.showDialog(d.container,
+new mxRectangle(60,30,30,30))};EditorUi.initTheme();EditorUi.prototype.showImageDialog=function(b,c,e,f,l,n,v){b=new ImageDialog(this,b,c,e,f,l,n,v);this.showDialog(b.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);b.init()};EditorUi.prototype.showBackgroundImageDialog=function(b,c){b=null!=b?b:mxUtils.bind(this,function(b,d){if(!d){var c=new ChangePageSetup(this,null,b);c.ignoreColor=!0;this.editor.graph.model.execute(c)}});var d=new BackgroundImageDialog(this,b,c);this.showDialog(d.container,
360,200,!0,!0);d.init()};EditorUi.prototype.showLibraryDialog=function(b,c,e,f,l){b=new LibraryDialog(this,b,c,e,f,l);this.showDialog(b.container,640,440,!0,!1,mxUtils.bind(this,function(b){b&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));b.init()};var e=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=function(b){var d=e.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(b){this.editor.graph.isSelectionEmpty()&&
d.refresh()}));return d};EditorUi.prototype.createSidebarFooterContainer=function(){var b=this.createDiv("geSidebarContainer geSidebarFooter");b.style.position="absolute";b.style.overflow="hidden";var c=document.createElement("a");c.className="geTitle";c.style.color="#DF6C0C";c.style.fontWeight="bold";c.style.height="100%";c.style.paddingTop="9px";c.innerHTML="<span>+</span>";var e=c.getElementsByTagName("span")[0];e.style.fontSize="18px";e.style.marginRight="5px";mxUtils.write(c,mxResources.get("moreShapes")+
-"...");mxEvent.addListener(c,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(b){b.preventDefault()}));mxEvent.addListener(c,"click",mxUtils.bind(this,function(b){this.actions.get("shapes").funct();mxEvent.consume(b)}));b.appendChild(c);return b};EditorUi.prototype.handleError=function(b,c,e,f,l,n,u){var d=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},g=null!=b&&null!=b.error?b.error:b;if(null!=b&&null!=b.stack&&null!=b.message)try{u?null!=
-window.console&&console.error("EditorUi.handleError:",b):EditorUi.logError("Caught: "+(""==b.message&&null!=b.name)?b.name:b.message,b.filename,b.lineNumber,b.columnNumber,b,"INFO")}catch(H){}if(null!=g||null!=c){u=mxUtils.htmlEntities(mxResources.get("unknownError"));var k=mxResources.get("ok"),m=null;c=null!=c?c:mxResources.get("error");if(null!=g){null!=g.retry&&(k=mxResources.get("cancel"),m=function(){d();g.retry()});if(404==g.code||404==g.status||403==g.code){u=403==g.code?null!=g.message?mxUtils.htmlEntities(g.message):
+"...");mxEvent.addListener(c,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(b){b.preventDefault()}));mxEvent.addListener(c,"click",mxUtils.bind(this,function(b){this.actions.get("shapes").funct();mxEvent.consume(b)}));b.appendChild(c);return b};EditorUi.prototype.handleError=function(b,c,e,f,l,n,v){var d=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},g=null!=b&&null!=b.error?b.error:b;if(null!=b&&null!=b.stack&&null!=b.message)try{v?null!=
+window.console&&console.error("EditorUi.handleError:",b):EditorUi.logError("Caught: "+(""==b.message&&null!=b.name)?b.name:b.message,b.filename,b.lineNumber,b.columnNumber,b,"INFO")}catch(E){}if(null!=g||null!=c){v=mxUtils.htmlEntities(mxResources.get("unknownError"));var k=mxResources.get("ok"),m=null;c=null!=c?c:mxResources.get("error");if(null!=g){null!=g.retry&&(k=mxResources.get("cancel"),m=function(){d();g.retry()});if(404==g.code||404==g.status||403==g.code){v=403==g.code?null!=g.message?mxUtils.htmlEntities(g.message):
mxUtils.htmlEntities(mxResources.get("accessDenied")):null!=l?l:mxUtils.htmlEntities(mxResources.get("fileNotFoundOrDenied")+(null!=this.drive&&null!=this.drive.user?" ("+this.drive.user.displayName+", "+this.drive.user.email+")":""));var p=null!=l?null:null!=n?n:window.location.hash;if(null!=p&&("#G"==p.substring(0,2)||"#Uhttps%3A%2F%2Fdrive.google.com%2Fuc%3Fid%3D"==p.substring(0,45))&&(null!=b&&null!=b.error&&(null!=b.error.errors&&0<b.error.errors.length&&"fileAccess"==b.error.errors[0].reason||
-null!=b.error.data&&0<b.error.data.length&&"fileAccess"==b.error.data[0].reason)||404==g.code||404==g.status)){p="#U"==p.substring(0,2)?p.substring(45,p.lastIndexOf("%26ex")):p.substring(2);this.showError(c,u,mxResources.get("openInNewWindow"),mxUtils.bind(this,function(){this.editor.graph.openLink("https://drive.google.com/open?id="+p);this.handleError(b,c,e,f,l)}),m,mxResources.get("changeUser"),mxUtils.bind(this,function(){function b(){g.innerHTML="";for(var b=0;b<d.length;b++){var c=document.createElement("option");
+null!=b.error.data&&0<b.error.data.length&&"fileAccess"==b.error.data[0].reason)||404==g.code||404==g.status)){p="#U"==p.substring(0,2)?p.substring(45,p.lastIndexOf("%26ex")):p.substring(2);this.showError(c,v,mxResources.get("openInNewWindow"),mxUtils.bind(this,function(){this.editor.graph.openLink("https://drive.google.com/open?id="+p);this.handleError(b,c,e,f,l)}),m,mxResources.get("changeUser"),mxUtils.bind(this,function(){function b(){g.innerHTML="";for(var b=0;b<d.length;b++){var c=document.createElement("option");
mxUtils.write(c,d[b].displayName);c.value=b;g.appendChild(c);c=document.createElement("option");c.innerHTML="&nbsp;&nbsp;&nbsp;";mxUtils.write(c,"<"+d[b].email+">");c.setAttribute("disabled","disabled");g.appendChild(c)}c=document.createElement("option");mxUtils.write(c,mxResources.get("addAccount"));c.value=d.length;g.appendChild(c)}var d=this.drive.getUsersList(),c=document.createElement("div"),e=document.createElement("span");e.style.marginTop="6px";mxUtils.write(e,mxResources.get("changeUser")+
": ");c.appendChild(e);var g=document.createElement("select");g.style.width="200px";b();mxEvent.addListener(g,"change",mxUtils.bind(this,function(){var c=g.value,e=d.length!=c;e&&this.drive.setUser(d[c]);this.drive.authorize(e,mxUtils.bind(this,function(){e||(d=this.drive.getUsersList(),b())}),mxUtils.bind(this,function(b){this.handleError(b)}),!0)}));c.appendChild(g);c=new CustomDialog(this,c,mxUtils.bind(this,function(){this.loadFile(window.location.hash.substr(1),!0)}));this.showDialog(c.container,
-300,100,!0,!0)}),mxResources.get("cancel"),mxUtils.bind(this,function(){this.hideDialog();null!=e&&e()}),480,150);return}}null!=g.message?u=""==g.message&&null!=g.name?mxUtils.htmlEntities(g.name):mxUtils.htmlEntities(g.message):null!=g.response&&null!=g.response.error?u=mxUtils.htmlEntities(g.response.error):"undefined"!==typeof window.App&&(g.code==App.ERROR_TIMEOUT?u=mxUtils.htmlEntities(mxResources.get("timeout")):g.code==App.ERROR_BUSY?u=mxUtils.htmlEntities(mxResources.get("busy")):"string"===
-typeof g&&0<g.length&&(u=mxUtils.htmlEntities(g)))}var v=n=null;null!=g&&null!=g.helpLink?(n=mxResources.get("help"),v=mxUtils.bind(this,function(){return this.editor.graph.openLink(g.helpLink)})):null!=g&&null!=g.ownerEmail&&(n=mxResources.get("contactOwner"),u+=mxUtils.htmlEntities(" ("+n+": "+g.ownerEmail+")"),v=mxUtils.bind(this,function(){return this.openLink("mailto:"+mxUtils.htmlEntities(g.ownerEmail))}));this.showError(c,u,k,e,m,null,null,n,v,null,null,null,f?e:null)}else null!=e&&e()};EditorUi.prototype.alert=
+300,100,!0,!0)}),mxResources.get("cancel"),mxUtils.bind(this,function(){this.hideDialog();null!=e&&e()}),480,150);return}}null!=g.message?v=""==g.message&&null!=g.name?mxUtils.htmlEntities(g.name):mxUtils.htmlEntities(g.message):null!=g.response&&null!=g.response.error?v=mxUtils.htmlEntities(g.response.error):"undefined"!==typeof window.App&&(g.code==App.ERROR_TIMEOUT?v=mxUtils.htmlEntities(mxResources.get("timeout")):g.code==App.ERROR_BUSY?v=mxUtils.htmlEntities(mxResources.get("busy")):"string"===
+typeof g&&0<g.length&&(v=mxUtils.htmlEntities(g)))}var u=n=null;null!=g&&null!=g.helpLink?(n=mxResources.get("help"),u=mxUtils.bind(this,function(){return this.editor.graph.openLink(g.helpLink)})):null!=g&&null!=g.ownerEmail&&(n=mxResources.get("contactOwner"),v+=mxUtils.htmlEntities(" ("+n+": "+g.ownerEmail+")"),u=mxUtils.bind(this,function(){return this.openLink("mailto:"+mxUtils.htmlEntities(g.ownerEmail))}));this.showError(c,v,k,e,m,null,null,n,u,null,null,null,f?e:null)}else null!=e&&e()};EditorUi.prototype.alert=
function(b,c,e){b=new ErrorDialog(this,null,b,mxResources.get("ok"),c);this.showDialog(b.container,e||340,100,!0,!1);b.init()};EditorUi.prototype.confirm=function(b,c,e,f,l,n){var d=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},g=Math.min(200,28*Math.ceil(b.length/50));b=new ConfirmDialog(this,b,function(){d();null!=c&&c()},function(){d();null!=e&&e()},f,l,null,null,null,null,g);this.showDialog(b.container,340,46+g,!0,n);b.init()};EditorUi.prototype.showBanner=function(b,
c,e,f){var d=!1;if(!(this.bannerShowing||this["hideBanner"+b]||isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings["close"+b])){var g=document.createElement("div");g.style.cssText="position:absolute;bottom:10px;left:50%;max-width:90%;padding:18px 34px 12px 20px;font-size:16px;font-weight:bold;white-space:nowrap;cursor:pointer;z-index:"+mxPopupMenu.prototype.zIndex+";";mxUtils.setPrefixedStyle(g.style,"box-shadow","1px 1px 2px 0px #ddd");mxUtils.setPrefixedStyle(g.style,"transform",
"translate(-50%,120%)");mxUtils.setPrefixedStyle(g.style,"transition","all 1s ease");g.className="geBtn gePrimaryBtn";d=document.createElement("img");d.setAttribute("src",IMAGE_PATH+"/logo.png");d.setAttribute("border","0");d.setAttribute("align","absmiddle");d.style.cssText="margin-top:-4px;margin-left:8px;margin-right:12px;width:26px;height:26px;";g.appendChild(d);d=document.createElement("img");d.setAttribute("src",Dialog.prototype.closeImage);d.setAttribute("title",mxResources.get(f?"doNotShowAgain":
@@ -3529,10 +3529,10 @@ return b};EditorUi.prototype.saveCanvas=function(b,c,e,f,l){var d="jpeg"==e?"jpg
mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(b,c){var d=new TextareaDialog(this,b,c,null,null,mxResources.get("close"));this.showDialog(d.container,620,460,!0,!0,null,null,null,null,!0);d.init();document.execCommand("selectall",!1,null)};EditorUi.prototype.doSaveLocalFile=function(b,c,e,f,l,n){"text/xml"!=e||/(\.drawio)$/i.test(c)||/(\.xml)$/i.test(c)||/(\.svg)$/i.test(c)||/(\.html)$/i.test(c)||(c=c+"."+(null!=n?n:"drawio"));if(window.Blob&&navigator.msSaveOrOpenBlob)b=f?this.base64ToBlob(b,
e):new Blob([b],{type:e}),navigator.msSaveOrOpenBlob(b,c);else if(mxClient.IS_IE)e=window.open("about:blank","_blank"),null==e?mxUtils.popup(b,!0):(e.document.write(b),e.document.close(),e.document.execCommand("SaveAs",!0,c),e.close());else if(mxClient.IS_IOS&&this.isOffline())navigator.standalone||null==e||"image/"!=e.substring(0,6)?this.showTextDialog(c+":",b):this.openInNewWindow(b,e,f);else{var d=document.createElement("a");n=(null==navigator.userAgent||0>navigator.userAgent.indexOf("PaleMoon/"))&&
"undefined"!==typeof d.download;if(mxClient.IS_GC&&null!=navigator.userAgent){var g=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);n=65==(g?parseInt(g[2],10):!1)?!1:n}if(n||this.isOffline()){d.href=URL.createObjectURL(f?this.base64ToBlob(b,e):new Blob([b],{type:e}));n?d.download=c:d.setAttribute("target","_blank");document.body.appendChild(d);try{window.setTimeout(function(){URL.revokeObjectURL(d.href)},2E4),d.click(),d.parentNode.removeChild(d)}catch(z){}}else this.createEchoRequest(b,c,e,
-f,l).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(b,c,e,f,l,n){b="xml="+encodeURIComponent(b);return new mxXmlRequest(SAVE_URL,b+(null!=e?"&mime="+e:"")+(null!=l?"&format="+l:"")+(null!=n?"&base64="+n:"")+(null!=c?"&filename="+encodeURIComponent(c):"")+(f?"&binary=1":""))};EditorUi.prototype.base64ToBlob=function(b,c){c=c||"";for(var d=atob(b),e=d.length,f=Math.ceil(e/1024),k=Array(f),l=0;l<f;++l){for(var n=1024*l,q=Math.min(n+1024,e),y=Array(q-n),F=0;n<q;++F,++n)y[F]=
-d[n].charCodeAt(0);k[l]=new Uint8Array(y)}return new Blob(k,{type:c})};EditorUi.prototype.saveLocalFile=function(b,c,e,f,l,n,u,t){n=null!=n?n:!1;u=null!=u?u:"vsdx"!=l&&(!mxClient.IS_IOS||!navigator.standalone);l=this.getServiceCount(n);isLocalStorage&&l++;var d=4>=l?2:6<l?4:3;c=new CreateDialog(this,c,mxUtils.bind(this,function(d,c){try{if("_blank"==c)if(null!=e&&"image/"==e.substring(0,6))this.openInNewWindow(b,e,f);else if(null!=e&&"text/html"==e.substring(0,9)){var g=new EmbedDialog(this,b);this.showDialog(g.container,
-450,240,!0,!0);g.init()}else{var k=window.open("about:blank");null==k?mxUtils.popup(b,!0):(k.document.write("<pre>"+mxUtils.htmlEntities(b,!1)+"</pre>"),k.document.close())}else c==App.MODE_DEVICE||"download"==c?this.doSaveLocalFile(b,d,e,f,null,t):null!=d&&0<d.length&&this.pickFolder(c,mxUtils.bind(this,function(g){try{this.exportFile(b,d,e,f,c,g)}catch(N){this.handleError(N)}}))}catch(H){this.handleError(H)}}),mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),
-!1,n,u,null,1<l,d,b,e,f);n=this.isServices(l)?l>d?390:280:160;this.showDialog(c.container,420,n,!0,!0);c.init()};EditorUi.prototype.openInNewWindow=function(b,c,e){var d=window.open("about:blank");null==d||null==d.document?mxUtils.popup(b,!0):("image/svg+xml"!=c||mxClient.IS_SVG?"image/svg+xml"==c?d.document.write("<html>"+b+"</html>"):(b=e?b:btoa(unescape(encodeURIComponent(b))),d.document.write('<html><img style="max-width:100%;" src="data:'+c+";base64,"+b+'"/></html>')):d.document.write("<html><pre>"+
+f,l).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(b,c,e,f,l,n){b="xml="+encodeURIComponent(b);return new mxXmlRequest(SAVE_URL,b+(null!=e?"&mime="+e:"")+(null!=l?"&format="+l:"")+(null!=n?"&base64="+n:"")+(null!=c?"&filename="+encodeURIComponent(c):"")+(f?"&binary=1":""))};EditorUi.prototype.base64ToBlob=function(b,c){c=c||"";for(var d=atob(b),e=d.length,f=Math.ceil(e/1024),k=Array(f),l=0;l<f;++l){for(var n=1024*l,q=Math.min(n+1024,e),y=Array(q-n),I=0;n<q;++I,++n)y[I]=
+d[n].charCodeAt(0);k[l]=new Uint8Array(y)}return new Blob(k,{type:c})};EditorUi.prototype.saveLocalFile=function(b,c,e,f,l,n,v,t){n=null!=n?n:!1;v=null!=v?v:"vsdx"!=l&&(!mxClient.IS_IOS||!navigator.standalone);l=this.getServiceCount(n);isLocalStorage&&l++;var d=4>=l?2:6<l?4:3;c=new CreateDialog(this,c,mxUtils.bind(this,function(d,c){try{if("_blank"==c)if(null!=e&&"image/"==e.substring(0,6))this.openInNewWindow(b,e,f);else if(null!=e&&"text/html"==e.substring(0,9)){var g=new EmbedDialog(this,b);this.showDialog(g.container,
+450,240,!0,!0);g.init()}else{var k=window.open("about:blank");null==k?mxUtils.popup(b,!0):(k.document.write("<pre>"+mxUtils.htmlEntities(b,!1)+"</pre>"),k.document.close())}else c==App.MODE_DEVICE||"download"==c?this.doSaveLocalFile(b,d,e,f,null,t):null!=d&&0<d.length&&this.pickFolder(c,mxUtils.bind(this,function(g){try{this.exportFile(b,d,e,f,c,g)}catch(O){this.handleError(O)}}))}catch(E){this.handleError(E)}}),mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),
+!1,n,v,null,1<l,d,b,e,f);n=this.isServices(l)?l>d?390:280:160;this.showDialog(c.container,420,n,!0,!0);c.init()};EditorUi.prototype.openInNewWindow=function(b,c,e){var d=window.open("about:blank");null==d||null==d.document?mxUtils.popup(b,!0):("image/svg+xml"!=c||mxClient.IS_SVG?"image/svg+xml"==c?d.document.write("<html>"+b+"</html>"):(b=e?b:btoa(unescape(encodeURIComponent(b))),d.document.write('<html><img style="max-width:100%;" src="data:'+c+";base64,"+b+'"/></html>')):d.document.write("<html><pre>"+
mxUtils.htmlEntities(b,!1)+"</pre></html>"),d.document.close())};var f=EditorUi.prototype.addChromelessToolbarItems;EditorUi.prototype.isChromelessImageExportEnabled=function(){return"draw.io"!=this.getServiceName()||/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)};EditorUi.prototype.addChromelessToolbarItems=function(b){if(null!=urlParams.tags){this.tagsDialog=this.tagsComponent=null;var d=b(mxUtils.bind(this,function(b){null==this.tagsComponent&&
(this.tagsComponent=this.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return null!=this.tagsDialog}),!0),this.tagsComponent.div.getElementsByTagName("div")[0].style.position="",mxUtils.setPrefixedStyle(this.tagsComponent.div.style,"borderRadius","5px"),this.tagsComponent.div.className="geScrollable",this.tagsComponent.div.style.maxHeight="160px",this.tagsComponent.div.style.maxWidth="120px",this.tagsComponent.div.style.padding="4px",this.tagsComponent.div.style.overflow="auto",this.tagsComponent.div.style.height=
"auto",this.tagsComponent.div.style.position="fixed",this.tagsComponent.div.style.fontFamily=Editor.defaultHtmlFont,mxClient.IS_IE||mxClient.IS_IE11?(this.tagsComponent.div.style.backgroundColor="#ffffff",this.tagsComponent.div.style.border="2px solid black",this.tagsComponent.div.style.color="#000000"):(this.tagsComponent.div.style.backgroundColor="#000000",this.tagsComponent.div.style.color="#ffffff",mxUtils.setOpacity(this.tagsComponent.div,80)));if(null!=this.tagsDialog)this.tagsDialog.parentNode.removeChild(this.tagsDialog),
@@ -3544,91 +3544,91 @@ this.layersDialog=null)}));this.editor.addListener("layersDialogShown",mxUtils.b
"50px";this.exportDialog.style.height="50px";this.exportDialog.style.padding="4px 2px 4px 2px";this.exportDialog.style.color="#ffffff";mxUtils.setOpacity(this.exportDialog,70);this.exportDialog.style.left=e.left+"px";this.exportDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";e=mxUtils.getCurrentStyle(this.editor.graph.container);this.exportDialog.style.zIndex=e.zIndex;var g=new Spinner({lines:8,length:6,width:5,radius:6,rotate:0,color:"#fff",
speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"28px",zIndex:2E9});g.spin(this.exportDialog);this.editor.exportToCanvas(mxUtils.bind(this,function(b){g.stop();this.exportDialog.style.width="auto";this.exportDialog.style.height="auto";this.exportDialog.style.padding="10px";var c=this.createImageDataUri(b,null,"png");b=document.createElement("img");b.style.maxWidth="140px";b.style.maxHeight="140px";b.style.cursor="pointer";b.style.backgroundColor="white";b.setAttribute("title",mxResources.get("openInNewWindow"));
b.setAttribute("border","0");b.setAttribute("src",c);this.exportDialog.appendChild(b);mxEvent.addListener(b,"click",mxUtils.bind(this,function(){this.openInNewWindow(c.substring(c.indexOf(",")+1),"image/png",!0);d.apply(this,arguments)}))}),null,this.thumbImageCache,null,mxUtils.bind(this,function(b){this.spinner.stop();this.handleError(b)}),null,null,null,null,null,null,null,Editor.defaultBorder);mxEvent.addListener(this.editor.graph.container,"click",d);document.body.appendChild(this.exportDialog)}mxEvent.consume(b)}),
-Editor.cameraImage,mxResources.get("export"))}};EditorUi.prototype.saveData=function(b,c,e,f,l){this.isLocalFileSave()?this.saveLocalFile(e,b,f,l,c):this.saveRequest(b,c,mxUtils.bind(this,function(b,d){return this.createEchoRequest(e,b,f,l,c,d)}),e,l,f)};EditorUi.prototype.saveRequest=function(b,c,e,f,l,n,u){u=null!=u?u:!mxClient.IS_IOS||!navigator.standalone;var d=this.getServiceCount(!1);isLocalStorage&&d++;var g=4>=d?2:6<d?4:3;b=new CreateDialog(this,b,mxUtils.bind(this,function(b,d){if("_blank"==
-d||null!=b&&0<b.length){var g=e("_blank"==d?null:b,d==App.MODE_DEVICE||"download"==d||null==d||"_blank"==d?"0":"1");null!=g&&(d==App.MODE_DEVICE||"download"==d||"_blank"==d?g.simulate(document,"_blank"):this.pickFolder(d,mxUtils.bind(this,function(e){n=null!=n?n:"pdf"==c?"application/pdf":"image/"+c;if(null!=f)try{this.exportFile(f,b,n,!0,d,e)}catch(H){this.handleError(H)}else this.spinner.spin(document.body,mxResources.get("saving"))&&g.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=
-g.getStatus()&&299>=g.getStatus())try{this.exportFile(g.getText(),b,n,!0,d,e)}catch(H){this.handleError(H)}else this.handleError({message:mxResources.get("errorSavingFile")})}),function(b){this.spinner.stop();this.handleError(b)})})))}}),mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,u,null,1<d,g,f,n,l);d=this.isServices(d)?4<d?390:280:160;this.showDialog(b.container,420,d,!0,!0);b.init()};EditorUi.prototype.isServices=function(b){return 1!=
-b};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(b,c,e,f,l,n){};EditorUi.prototype.pickFolder=function(b,c,e){c(null)};EditorUi.prototype.exportSvg=function(b,c,e,f,l,n,u,t,q,y,F,D,E,H){if(this.spinner.spin(document.body,mxResources.get("export")))try{var d=this.editor.graph.isSelectionEmpty();e=null!=e?e:d;var g=c?null:this.editor.graph.background;g==mxConstants.NONE&&(g=null);null==g&&0==c&&(g=F?this.editor.graph.defaultPageBackgroundColor:
-"#ffffff");var k=this.editor.graph.getSvg(g,b,u,t,null,e,null,null,"blank"==y?"_blank":"self"==y?"_top":null,null,!0,F,D);f&&this.editor.graph.addSvgShadow(k);var m=this.getBaseFilename()+(l?".drawio":"")+".svg";H=null!=H?H:mxUtils.bind(this,function(b){this.isLocalFileSave()||b.length<=MAX_REQUEST_SIZE?this.saveData(m,"svg",b,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(b)}))});var p=mxUtils.bind(this,
-function(b){this.spinner.stop();l&&b.setAttribute("content",this.getFileData(!0,null,null,null,e,q,null,null,null,!1));H(Graph.xmlDeclaration+"\n"+(l?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(b))});this.editor.graph.mathEnabled&&this.editor.addMathCss(k);var v=mxUtils.bind(this,function(b){n?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(b,p,this.thumbImageCache)):p(b)});E?this.embedFonts(k,v):(this.editor.addFontCss(k),v(k))}catch(K){this.handleError(K)}};
-EditorUi.prototype.addRadiobox=function(b,c,e,f,l,n,u){return this.addCheckbox(b,e,f,l,n,u,!0,c)};EditorUi.prototype.addCheckbox=function(b,c,e,f,l,n,u,t){n=null!=n?n:!0;var d=document.createElement("input");d.style.marginRight="8px";d.style.marginTop="16px";d.setAttribute("type",u?"radio":"checkbox");u="geCheckbox-"+Editor.guid();d.id=u;null!=t&&d.setAttribute("name",t);e&&(d.setAttribute("checked","checked"),d.defaultChecked=!0);f&&d.setAttribute("disabled","disabled");n&&(b.appendChild(d),e=document.createElement("label"),
-mxUtils.write(e,c),e.setAttribute("for",u),b.appendChild(e),l||mxUtils.br(b));return d};EditorUi.prototype.addEditButton=function(b,c){var d=this.addCheckbox(b,mxResources.get("edit")+":",!0,null,!0);d.style.marginLeft="24px";var e=this.getCurrentFile(),f="";null!=e&&e.getMode()!=App.MODE_DEVICE&&e.getMode()!=App.MODE_BROWSER&&(f=window.location.href);var k=document.createElement("select");k.style.maxWidth="200px";k.style.width="auto";k.style.marginLeft="8px";k.style.marginRight="10px";k.className=
+Editor.cameraImage,mxResources.get("export"))}};EditorUi.prototype.saveData=function(b,c,e,f,l){this.isLocalFileSave()?this.saveLocalFile(e,b,f,l,c):this.saveRequest(b,c,mxUtils.bind(this,function(b,d){return this.createEchoRequest(e,b,f,l,c,d)}),e,l,f)};EditorUi.prototype.saveRequest=function(b,c,e,f,l,n,v){v=null!=v?v:!mxClient.IS_IOS||!navigator.standalone;var d=this.getServiceCount(!1);isLocalStorage&&d++;var g=4>=d?2:6<d?4:3;b=new CreateDialog(this,b,mxUtils.bind(this,function(b,d){if("_blank"==
+d||null!=b&&0<b.length){var g=e("_blank"==d?null:b,d==App.MODE_DEVICE||"download"==d||null==d||"_blank"==d?"0":"1");null!=g&&(d==App.MODE_DEVICE||"download"==d||"_blank"==d?g.simulate(document,"_blank"):this.pickFolder(d,mxUtils.bind(this,function(e){n=null!=n?n:"pdf"==c?"application/pdf":"image/"+c;if(null!=f)try{this.exportFile(f,b,n,!0,d,e)}catch(E){this.handleError(E)}else this.spinner.spin(document.body,mxResources.get("saving"))&&g.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=
+g.getStatus()&&299>=g.getStatus())try{this.exportFile(g.getText(),b,n,!0,d,e)}catch(E){this.handleError(E)}else this.handleError({message:mxResources.get("errorSavingFile")})}),function(b){this.spinner.stop();this.handleError(b)})})))}}),mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,v,null,1<d,g,f,n,l);d=this.isServices(d)?4<d?390:280:160;this.showDialog(b.container,420,d,!0,!0);b.init()};EditorUi.prototype.isServices=function(b){return 1!=
+b};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(b,c,e,f,l,n){};EditorUi.prototype.pickFolder=function(b,c,e){c(null)};EditorUi.prototype.exportSvg=function(b,c,e,f,l,n,v,t,q,y,I,D,F,E){if(this.spinner.spin(document.body,mxResources.get("export")))try{var d=this.editor.graph.isSelectionEmpty();e=null!=e?e:d;var g=c?null:this.editor.graph.background;g==mxConstants.NONE&&(g=null);null==g&&0==c&&(g=I?this.editor.graph.defaultPageBackgroundColor:
+"#ffffff");var k=this.editor.graph.getSvg(g,b,v,t,null,e,null,null,"blank"==y?"_blank":"self"==y?"_top":null,null,!0,I,D);f&&this.editor.graph.addSvgShadow(k);var m=this.getBaseFilename()+(l?".drawio":"")+".svg";E=null!=E?E:mxUtils.bind(this,function(b){this.isLocalFileSave()||b.length<=MAX_REQUEST_SIZE?this.saveData(m,"svg",b,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(b)}))});var p=mxUtils.bind(this,
+function(b){this.spinner.stop();l&&b.setAttribute("content",this.getFileData(!0,null,null,null,e,q,null,null,null,!1));E(Graph.xmlDeclaration+"\n"+(l?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(b))});this.editor.graph.mathEnabled&&this.editor.addMathCss(k);var u=mxUtils.bind(this,function(b){n?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(b,p,this.thumbImageCache)):p(b)});F?this.embedFonts(k,u):(this.editor.addFontCss(k),u(k))}catch(M){this.handleError(M)}};
+EditorUi.prototype.addRadiobox=function(b,c,e,f,l,n,v){return this.addCheckbox(b,e,f,l,n,v,!0,c)};EditorUi.prototype.addCheckbox=function(b,c,e,f,l,n,v,t){n=null!=n?n:!0;var d=document.createElement("input");d.style.marginRight="8px";d.style.marginTop="16px";d.setAttribute("type",v?"radio":"checkbox");v="geCheckbox-"+Editor.guid();d.id=v;null!=t&&d.setAttribute("name",t);e&&(d.setAttribute("checked","checked"),d.defaultChecked=!0);f&&d.setAttribute("disabled","disabled");n&&(b.appendChild(d),e=document.createElement("label"),
+mxUtils.write(e,c),e.setAttribute("for",v),b.appendChild(e),l||mxUtils.br(b));return d};EditorUi.prototype.addEditButton=function(b,c){var d=this.addCheckbox(b,mxResources.get("edit")+":",!0,null,!0);d.style.marginLeft="24px";var e=this.getCurrentFile(),f="";null!=e&&e.getMode()!=App.MODE_DEVICE&&e.getMode()!=App.MODE_BROWSER&&(f=window.location.href);var k=document.createElement("select");k.style.maxWidth="200px";k.style.width="auto";k.style.marginLeft="8px";k.style.marginRight="10px";k.className=
"geBtn";e=document.createElement("option");e.setAttribute("value","blank");mxUtils.write(e,mxResources.get("makeCopy"));k.appendChild(e);e=document.createElement("option");e.setAttribute("value","custom");mxUtils.write(e,mxResources.get("custom")+"...");k.appendChild(e);b.appendChild(k);mxEvent.addListener(k,"change",mxUtils.bind(this,function(){if("custom"==k.value){var b=new FilenameDialog(this,f,mxResources.get("ok"),function(b){null!=b?f=b:k.value="blank"},mxResources.get("url"),null,null,null,
null,function(){k.value="blank"});this.showDialog(b.container,300,80,!0,!1);b.init()}}));mxEvent.addListener(d,"change",mxUtils.bind(this,function(){d.checked&&(null==c||c.checked)?k.removeAttribute("disabled"):k.setAttribute("disabled","disabled")}));mxUtils.br(b);return{getLink:function(){return d.checked?"blank"===k.value?"_blank":f:null},getEditInput:function(){return d},getEditSelect:function(){return k}}};EditorUi.prototype.addLinkSection=function(b,c){function d(){var b=document.createElement("div");
b.style.width="100%";b.style.height="100%";b.style.boxSizing="border-box";null!=k&&k!=mxConstants.NONE?(b.style.border="1px solid black",b.style.backgroundColor=k):(b.style.backgroundPosition="center center",b.style.backgroundRepeat="no-repeat",b.style.backgroundImage="url('"+Dialog.prototype.closeImage+"')");l.innerHTML="";l.appendChild(b)}mxUtils.write(b,mxResources.get("links")+":");var e=document.createElement("select");e.style.width="100px";e.style.padding="0px";e.style.marginLeft="8px";e.style.marginRight=
"10px";e.className="geBtn";var f=document.createElement("option");f.setAttribute("value","auto");mxUtils.write(f,mxResources.get("automatic"));e.appendChild(f);f=document.createElement("option");f.setAttribute("value","blank");mxUtils.write(f,mxResources.get("openInNewWindow"));e.appendChild(f);f=document.createElement("option");f.setAttribute("value","self");mxUtils.write(f,mxResources.get("openInThisWindow"));e.appendChild(f);c&&(f=document.createElement("option"),f.setAttribute("value","frame"),
mxUtils.write(f,mxResources.get("openInThisWindow")+" ("+mxResources.get("iframe")+")"),e.appendChild(f));b.appendChild(e);mxUtils.write(b,mxResources.get("borderColor")+":");var k="#0000ff",l=null,l=mxUtils.button("",mxUtils.bind(this,function(b){this.pickColor(k||"none",function(b){k=b;d()});mxEvent.consume(b)}));d();l.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";l.style.marginLeft="4px";l.style.height="22px";l.style.width="22px";l.style.position="relative";l.style.top=mxClient.IS_IE||mxClient.IS_IE11||
-mxClient.IS_EDGE?"6px":"1px";l.className="geColorBtn";b.appendChild(l);mxUtils.br(b);return{getColor:function(){return k},getTarget:function(){return e.value},focus:function(){e.focus()}}};EditorUi.prototype.createUrlParameters=function(b,c,e,f,l,n,u){u=null!=u?u:[];f&&("https://viewer.diagrams.net"==EditorUi.lightboxHost&&"1"!=urlParams.dev||u.push("lightbox=1"),"auto"!=b&&u.push("target="+b),null!=c&&c!=mxConstants.NONE&&u.push("highlight="+("#"==c.charAt(0)?c.substring(1):c)),null!=l&&0<l.length&&
-u.push("edit="+encodeURIComponent(l)),n&&u.push("layers=1"),this.editor.graph.foldingEnabled&&u.push("nav=1"));e&&null!=this.currentPage&&null!=this.pages&&this.currentPage!=this.pages[0]&&u.push("page-id="+this.currentPage.getId());return u};EditorUi.prototype.createLink=function(b,c,e,f,l,n,u,t,q,y){q=this.createUrlParameters(b,c,e,f,l,n,q);b=this.getCurrentFile();c=!0;null!=u?e="#U"+encodeURIComponent(u):(b=this.getCurrentFile(),t||null==b||b.constructor!=window.DriveFile?e="#R"+encodeURIComponent(e?
+mxClient.IS_EDGE?"6px":"1px";l.className="geColorBtn";b.appendChild(l);mxUtils.br(b);return{getColor:function(){return k},getTarget:function(){return e.value},focus:function(){e.focus()}}};EditorUi.prototype.createUrlParameters=function(b,c,e,f,l,n,v){v=null!=v?v:[];f&&("https://viewer.diagrams.net"==EditorUi.lightboxHost&&"1"!=urlParams.dev||v.push("lightbox=1"),"auto"!=b&&v.push("target="+b),null!=c&&c!=mxConstants.NONE&&v.push("highlight="+("#"==c.charAt(0)?c.substring(1):c)),null!=l&&0<l.length&&
+v.push("edit="+encodeURIComponent(l)),n&&v.push("layers=1"),this.editor.graph.foldingEnabled&&v.push("nav=1"));e&&null!=this.currentPage&&null!=this.pages&&this.currentPage!=this.pages[0]&&v.push("page-id="+this.currentPage.getId());return v};EditorUi.prototype.createLink=function(b,c,e,f,l,n,v,t,q,y){q=this.createUrlParameters(b,c,e,f,l,n,q);b=this.getCurrentFile();c=!0;null!=v?e="#U"+encodeURIComponent(v):(b=this.getCurrentFile(),t||null==b||b.constructor!=window.DriveFile?e="#R"+encodeURIComponent(e?
this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(e="#"+b.getHash(),c=!1));c&&null!=b&&null!=b.getTitle()&&b.getTitle()!=this.defaultFilename&&q.push("title="+encodeURIComponent(b.getTitle()));y&&1<e.length&&(q.push("open="+e.substring(1)),e="");return(f&&"1"!=urlParams.dev?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+
-"/"+(0<q.length?"?"+q.join("&"):"")+e};EditorUi.prototype.createHtml=function(b,c,e,f,l,n,u,t,q,y,F,D){this.getBasenames();var d={};""!=l&&l!=mxConstants.NONE&&(d.highlight=l);"auto"!==f&&(d.target=f);y||(d.lightbox=!1);d.nav=this.editor.graph.foldingEnabled;e=parseInt(e);isNaN(e)||100==e||(d.zoom=e/100);e=[];u&&(e.push("pages"),d.resize=!0,null!=this.pages&&null!=this.currentPage&&(d.page=mxUtils.indexOf(this.pages,this.currentPage)));c&&(e.push("zoom"),d.resize=!0);t&&e.push("layers");q&&e.push("tags");
-0<e.length&&(y&&e.push("lightbox"),d.toolbar=e.join(" "));null!=F&&0<F.length&&(d.edit=F);null!=b?d.url=b:d.xml=this.getFileData(!0,null,null,null,null,!u);c='<div class="mxgraph" style="'+(n?"max-width:100%;":"")+(""!=e?"border:1px solid transparent;":"")+'" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(d))+'"></div>';b=null!=b?"&fetch="+encodeURIComponent(b):"";D(c,'<script type="text/javascript" src="'+(0<b.length?("1"==urlParams.dev?"https://test.draw.io/embed2.js?dev=1":EditorUi.lightboxHost+
+"/"+(0<q.length?"?"+q.join("&"):"")+e};EditorUi.prototype.createHtml=function(b,c,e,f,l,n,v,t,q,y,I,D){this.getBasenames();var d={};""!=l&&l!=mxConstants.NONE&&(d.highlight=l);"auto"!==f&&(d.target=f);y||(d.lightbox=!1);d.nav=this.editor.graph.foldingEnabled;e=parseInt(e);isNaN(e)||100==e||(d.zoom=e/100);e=[];v&&(e.push("pages"),d.resize=!0,null!=this.pages&&null!=this.currentPage&&(d.page=mxUtils.indexOf(this.pages,this.currentPage)));c&&(e.push("zoom"),d.resize=!0);t&&e.push("layers");q&&e.push("tags");
+0<e.length&&(y&&e.push("lightbox"),d.toolbar=e.join(" "));null!=I&&0<I.length&&(d.edit=I);null!=b?d.url=b:d.xml=this.getFileData(!0,null,null,null,null,!v);c='<div class="mxgraph" style="'+(n?"max-width:100%;":"")+(""!=e?"border:1px solid transparent;":"")+'" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(d))+'"></div>';b=null!=b?"&fetch="+encodeURIComponent(b):"";D(c,'<script type="text/javascript" src="'+(0<b.length?("1"==urlParams.dev?"https://test.draw.io/embed2.js?dev=1":EditorUi.lightboxHost+
"/embed2.js?")+b:"1"==urlParams.dev?"https://test.draw.io/js/viewer-static.min.js":window.DRAWIO_VIEWER_URL?window.DRAWIO_VIEWER_URL:EditorUi.lightboxHost+"/js/viewer-static.min.js")+'">\x3c/script>')};EditorUi.prototype.showHtmlDialog=function(b,c,e,f){var d=document.createElement("div");d.style.whiteSpace="nowrap";var g=document.createElement("h3");mxUtils.write(g,mxResources.get("html"));g.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";d.appendChild(g);var k=document.createElement("div");
k.style.cssText="border-bottom:1px solid lightGray;padding-bottom:8px;margin-bottom:12px;";var l=document.createElement("input");l.style.cssText="margin-right:8px;margin-top:8px;margin-bottom:8px;";l.setAttribute("value","url");l.setAttribute("type","radio");l.setAttribute("name","type-embedhtmldialog");g=l.cloneNode(!0);g.setAttribute("value","copy");k.appendChild(g);var p=document.createElement("span");mxUtils.write(p,mxResources.get("includeCopyOfMyDiagram"));k.appendChild(p);mxUtils.br(k);k.appendChild(l);
p=document.createElement("span");mxUtils.write(p,mxResources.get("publicDiagramUrl"));k.appendChild(p);var n=this.getCurrentFile();null==e&&null!=n&&n.constructor==window.DriveFile&&(p=document.createElement("a"),p.style.paddingLeft="12px",p.style.color="gray",p.style.cursor="pointer",mxUtils.write(p,mxResources.get("share")),k.appendChild(p),mxEvent.addListener(p,"click",mxUtils.bind(this,function(){this.hideDialog();this.drive.showPermissions(n.getId())})));g.setAttribute("checked","checked");null==
-e&&l.setAttribute("disabled","disabled");d.appendChild(k);var q=this.addLinkSection(d),D=this.addCheckbox(d,mxResources.get("zoom"),!0,null,!0);mxUtils.write(d,":");var E=document.createElement("input");E.setAttribute("type","text");E.style.marginRight="16px";E.style.width="60px";E.style.marginLeft="4px";E.style.marginRight="12px";E.value="100%";d.appendChild(E);var H=this.addCheckbox(d,mxResources.get("fit"),!0),k=null!=this.pages&&1<this.pages.length,N=N=this.addCheckbox(d,mxResources.get("allPages"),
-k,!k),A=this.addCheckbox(d,mxResources.get("layers"),!0),G=this.addCheckbox(d,mxResources.get("tags"),!0),I=this.addCheckbox(d,mxResources.get("lightbox"),!0),L=this.addEditButton(d,I),M=L.getEditInput();M.style.marginBottom="16px";mxEvent.addListener(I,"change",function(){I.checked?M.removeAttribute("disabled"):M.setAttribute("disabled","disabled");M.checked&&I.checked?L.getEditSelect().removeAttribute("disabled"):L.getEditSelect().setAttribute("disabled","disabled")});b=new CustomDialog(this,d,
-mxUtils.bind(this,function(){f(l.checked?e:null,D.checked,E.value,q.getTarget(),q.getColor(),H.checked,N.checked,A.checked,G.checked,I.checked,L.getLink())}),null,b,c);this.showDialog(b.container,340,430,!0,!0);g.focus()};EditorUi.prototype.showPublishLinkDialog=function(b,c,e,f,l,n,u,t){var d=document.createElement("div");d.style.whiteSpace="nowrap";var g=document.createElement("h3");mxUtils.write(g,b||mxResources.get("link"));g.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";
-d.appendChild(g);var k=this.getCurrentFile();b=0;if(null==k||k.constructor!=window.DriveFile||c)u=null!=u?u:"https://www.diagrams.net/doc/faq/publish-diagram-as-link";else{b=80;u=null!=u?u:"https://www.diagrams.net/doc/faq/google-drive-publicly-publish-diagram";g=document.createElement("div");g.style.cssText="border-bottom:1px solid lightGray;padding-bottom:14px;padding-top:6px;margin-bottom:14px;text-align:center;";var m=document.createElement("div");m.style.whiteSpace="normal";mxUtils.write(m,mxResources.get("linkAccountRequired"));
+e&&l.setAttribute("disabled","disabled");d.appendChild(k);var q=this.addLinkSection(d),D=this.addCheckbox(d,mxResources.get("zoom"),!0,null,!0);mxUtils.write(d,":");var F=document.createElement("input");F.setAttribute("type","text");F.style.marginRight="16px";F.style.width="60px";F.style.marginLeft="4px";F.style.marginRight="12px";F.value="100%";d.appendChild(F);var E=this.addCheckbox(d,mxResources.get("fit"),!0),k=null!=this.pages&&1<this.pages.length,O=O=this.addCheckbox(d,mxResources.get("allPages"),
+k,!k),B=this.addCheckbox(d,mxResources.get("layers"),!0),G=this.addCheckbox(d,mxResources.get("tags"),!0),H=this.addCheckbox(d,mxResources.get("lightbox"),!0),L=this.addEditButton(d,H),N=L.getEditInput();N.style.marginBottom="16px";mxEvent.addListener(H,"change",function(){H.checked?N.removeAttribute("disabled"):N.setAttribute("disabled","disabled");N.checked&&H.checked?L.getEditSelect().removeAttribute("disabled"):L.getEditSelect().setAttribute("disabled","disabled")});b=new CustomDialog(this,d,
+mxUtils.bind(this,function(){f(l.checked?e:null,D.checked,F.value,q.getTarget(),q.getColor(),E.checked,O.checked,B.checked,G.checked,H.checked,L.getLink())}),null,b,c);this.showDialog(b.container,340,430,!0,!0);g.focus()};EditorUi.prototype.showPublishLinkDialog=function(b,c,e,f,l,n,v,t){var d=document.createElement("div");d.style.whiteSpace="nowrap";var g=document.createElement("h3");mxUtils.write(g,b||mxResources.get("link"));g.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";
+d.appendChild(g);var k=this.getCurrentFile();b=0;if(null==k||k.constructor!=window.DriveFile||c)v=null!=v?v:"https://www.diagrams.net/doc/faq/publish-diagram-as-link";else{b=80;v=null!=v?v:"https://www.diagrams.net/doc/faq/google-drive-publicly-publish-diagram";g=document.createElement("div");g.style.cssText="border-bottom:1px solid lightGray;padding-bottom:14px;padding-top:6px;margin-bottom:14px;text-align:center;";var m=document.createElement("div");m.style.whiteSpace="normal";mxUtils.write(m,mxResources.get("linkAccountRequired"));
g.appendChild(m);m=mxUtils.button(mxResources.get("share"),mxUtils.bind(this,function(){this.drive.showPermissions(k.getId())}));m.style.marginTop="12px";m.className="geBtn";g.appendChild(m);d.appendChild(g);m=document.createElement("a");m.style.paddingLeft="12px";m.style.color="gray";m.style.fontSize="11px";m.style.cursor="pointer";mxUtils.write(m,mxResources.get("check"));g.appendChild(m);mxEvent.addListener(m,"click",mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"))&&
-this.getPublicUrl(this.getCurrentFile(),mxUtils.bind(this,function(b){this.spinner.stop();b=new ErrorDialog(this,null,mxResources.get(null!=b?"diagramIsPublic":"diagramIsNotPublic"),mxResources.get("ok"));this.showDialog(b.container,300,80,!0,!1);b.init()}))}))}var p=null,v=null;if(null!=e||null!=f)b+=30,mxUtils.write(d,mxResources.get("width")+":"),p=document.createElement("input"),p.setAttribute("type","text"),p.style.marginRight="16px",p.style.width="50px",p.style.marginLeft="6px",p.style.marginRight=
-"16px",p.style.marginBottom="10px",p.value="100%",d.appendChild(p),mxUtils.write(d,mxResources.get("height")+":"),v=document.createElement("input"),v.setAttribute("type","text"),v.style.width="50px",v.style.marginLeft="6px",v.style.marginBottom="10px",v.value=f+"px",d.appendChild(v),mxUtils.br(d);var q=this.addLinkSection(d,n);e=null!=this.pages&&1<this.pages.length;var A=null;if(null==k||k.constructor!=window.DriveFile||c)A=this.addCheckbox(d,mxResources.get("allPages"),e,!e);var G=this.addCheckbox(d,
-mxResources.get("lightbox"),!0,null,null,!n),I=this.addEditButton(d,G),L=I.getEditInput();n&&(L.style.marginLeft=G.style.marginLeft,G.style.display="none",b-=20);var M=this.addCheckbox(d,mxResources.get("layers"),!0);M.style.marginLeft=L.style.marginLeft;M.style.marginTop="8px";var K=this.addCheckbox(d,mxResources.get("tags"),!0);K.style.marginLeft=L.style.marginLeft;K.style.marginBottom="16px";K.style.marginTop="16px";mxEvent.addListener(G,"change",function(){G.checked?(M.removeAttribute("disabled"),
-L.removeAttribute("disabled")):(M.setAttribute("disabled","disabled"),L.setAttribute("disabled","disabled"));L.checked&&G.checked?I.getEditSelect().removeAttribute("disabled"):I.getEditSelect().setAttribute("disabled","disabled")});c=new CustomDialog(this,d,mxUtils.bind(this,function(){l(q.getTarget(),q.getColor(),null==A?!0:A.checked,G.checked,I.getLink(),M.checked,null!=p?p.value:null,null!=v?v.value:null,K.checked)}),null,mxResources.get("create"),u,t);this.showDialog(c.container,340,300+b,!0,
+this.getPublicUrl(this.getCurrentFile(),mxUtils.bind(this,function(b){this.spinner.stop();b=new ErrorDialog(this,null,mxResources.get(null!=b?"diagramIsPublic":"diagramIsNotPublic"),mxResources.get("ok"));this.showDialog(b.container,300,80,!0,!1);b.init()}))}))}var p=null,u=null;if(null!=e||null!=f)b+=30,mxUtils.write(d,mxResources.get("width")+":"),p=document.createElement("input"),p.setAttribute("type","text"),p.style.marginRight="16px",p.style.width="50px",p.style.marginLeft="6px",p.style.marginRight=
+"16px",p.style.marginBottom="10px",p.value="100%",d.appendChild(p),mxUtils.write(d,mxResources.get("height")+":"),u=document.createElement("input"),u.setAttribute("type","text"),u.style.width="50px",u.style.marginLeft="6px",u.style.marginBottom="10px",u.value=f+"px",d.appendChild(u),mxUtils.br(d);var q=this.addLinkSection(d,n);e=null!=this.pages&&1<this.pages.length;var B=null;if(null==k||k.constructor!=window.DriveFile||c)B=this.addCheckbox(d,mxResources.get("allPages"),e,!e);var G=this.addCheckbox(d,
+mxResources.get("lightbox"),!0,null,null,!n),H=this.addEditButton(d,G),L=H.getEditInput();n&&(L.style.marginLeft=G.style.marginLeft,G.style.display="none",b-=20);var N=this.addCheckbox(d,mxResources.get("layers"),!0);N.style.marginLeft=L.style.marginLeft;N.style.marginTop="8px";var M=this.addCheckbox(d,mxResources.get("tags"),!0);M.style.marginLeft=L.style.marginLeft;M.style.marginBottom="16px";M.style.marginTop="16px";mxEvent.addListener(G,"change",function(){G.checked?(N.removeAttribute("disabled"),
+L.removeAttribute("disabled")):(N.setAttribute("disabled","disabled"),L.setAttribute("disabled","disabled"));L.checked&&G.checked?H.getEditSelect().removeAttribute("disabled"):H.getEditSelect().setAttribute("disabled","disabled")});c=new CustomDialog(this,d,mxUtils.bind(this,function(){l(q.getTarget(),q.getColor(),null==B?!0:B.checked,G.checked,H.getLink(),N.checked,null!=p?p.value:null,null!=u?u.value:null,M.checked)}),null,mxResources.get("create"),v,t);this.showDialog(c.container,340,300+b,!0,
!0);null!=p?(p.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?p.select():document.execCommand("selectAll",!1,null)):q.focus()};EditorUi.prototype.showRemoteExportDialog=function(b,c,e,f,l){var d=document.createElement("div");d.style.whiteSpace="nowrap";var g=document.createElement("h3");mxUtils.write(g,mxResources.get("image"));g.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:"+(l?"10":"4")+"px";d.appendChild(g);if(l){mxUtils.write(d,mxResources.get("zoom")+
":");var k=document.createElement("input");k.setAttribute("type","text");k.style.marginRight="16px";k.style.width="60px";k.style.marginLeft="4px";k.style.marginRight="12px";k.value=this.lastExportZoom||"100%";d.appendChild(k);mxUtils.write(d,mxResources.get("borderWidth")+":");var m=document.createElement("input");m.setAttribute("type","text");m.style.marginRight="16px";m.style.width="60px";m.style.marginLeft="4px";m.value=this.lastExportBorder||"0";d.appendChild(m);mxUtils.br(d)}var p=this.addCheckbox(d,
mxResources.get("selectionOnly"),!1,this.editor.graph.isSelectionEmpty()),n=f?null:this.addCheckbox(d,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram),g=this.editor.graph,q=f?null:this.addCheckbox(d,mxResources.get("transparentBackground"),g.background==mxConstants.NONE||null==g.background);null!=q&&(q.style.marginBottom="16px");b=new CustomDialog(this,d,mxUtils.bind(this,function(){var b=parseInt(k.value)/100||1,d=parseInt(m.value)||0;e(!p.checked,null!=n?n.checked:!1,null!=
-q?q.checked:!1,b,d)}),null,b,c);this.showDialog(b.container,300,(l?25:0)+(f?125:210),!0,!0)};EditorUi.prototype.showExportDialog=function(b,c,e,f,l,n,u,t,q){u=null!=u?u:Editor.defaultIncludeDiagram;var d=document.createElement("div");d.style.whiteSpace="nowrap";var g=this.editor.graph,k="jpeg"==t?220:300,m=document.createElement("h3");mxUtils.write(m,b);m.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";d.appendChild(m);mxUtils.write(d,mxResources.get("zoom")+":");var p=
-document.createElement("input");p.setAttribute("type","text");p.style.marginRight="16px";p.style.width="60px";p.style.marginLeft="4px";p.style.marginRight="12px";p.value=this.lastExportZoom||"100%";d.appendChild(p);mxUtils.write(d,mxResources.get("borderWidth")+":");var v=document.createElement("input");v.setAttribute("type","text");v.style.marginRight="16px";v.style.width="60px";v.style.marginLeft="4px";v.value=this.lastExportBorder||"0";d.appendChild(v);mxUtils.br(d);var A=this.addCheckbox(d,mxResources.get("selectionOnly"),
-!1,g.isSelectionEmpty()),z=document.createElement("input");z.style.marginTop="16px";z.style.marginRight="8px";z.style.marginLeft="24px";z.setAttribute("disabled","disabled");z.setAttribute("type","checkbox");var I=document.createElement("select");I.style.marginTop="16px";I.style.marginLeft="8px";b=["selectionOnly","diagram","page"];for(var L={},m=0;m<b.length;m++)if(!g.isSelectionEmpty()||"selectionOnly"!=b[m]){var M=document.createElement("option");mxUtils.write(M,mxResources.get(b[m]));M.setAttribute("value",
-b[m]);I.appendChild(M);L[b[m]]=M}q?(mxUtils.write(d,mxResources.get("size")+":"),d.appendChild(I),mxUtils.br(d),k+=26,mxEvent.addListener(I,"change",function(){"selectionOnly"==I.value&&(A.checked=!0)})):n&&(d.appendChild(z),mxUtils.write(d,mxResources.get("crop")),mxUtils.br(d),k+=30,mxEvent.addListener(A,"change",function(){A.checked?z.removeAttribute("disabled"):z.setAttribute("disabled","disabled")}));g.isSelectionEmpty()?q&&(A.style.display="none",A.nextSibling.style.display="none",A.nextSibling.nextSibling.style.display=
-"none",k-=30):(I.value="diagram",z.setAttribute("checked","checked"),z.defaultChecked=!0,mxEvent.addListener(A,"change",function(){I.value=A.checked?"selectionOnly":"diagram"}));var K=this.addCheckbox(d,mxResources.get("transparentBackground"),!1,null,null,"jpeg"!=t),P=null;Editor.isDarkMode()&&(P=this.addCheckbox(d,mxResources.get("dark"),!0),k+=26);var T=this.addCheckbox(d,mxResources.get("shadow"),g.shadowVisible),W=null;if("png"==t||"jpeg"==t)W=this.addCheckbox(d,mxResources.get("grid"),!1,this.isOffline()||
-!this.canvasSupported,!1,!0),k+=30;var ga=this.addCheckbox(d,mxResources.get("includeCopyOfMyDiagram"),u,null,null,"jpeg"!=t);ga.style.marginBottom="16px";var ja=document.createElement("input");ja.style.marginBottom="16px";ja.style.marginRight="8px";ja.setAttribute("type","checkbox");!this.isOffline()&&this.canvasSupported||ja.setAttribute("disabled","disabled");var X=document.createElement("select");X.style.maxWidth="260px";X.style.marginLeft="8px";X.style.marginRight="10px";X.style.marginBottom=
-"16px";X.className="geBtn";n=document.createElement("option");n.setAttribute("value","none");mxUtils.write(n,mxResources.get("noChange"));X.appendChild(n);n=document.createElement("option");n.setAttribute("value","embedFonts");mxUtils.write(n,mxResources.get("embedFonts"));X.appendChild(n);n=document.createElement("option");n.setAttribute("value","lblToSvg");mxUtils.write(n,mxResources.get("lblToSvg"));X.appendChild(n);this.isOffline()&&n.setAttribute("disabled","disabled");mxEvent.addListener(X,
-"change",mxUtils.bind(this,function(){"lblToSvg"==X.value?(ja.checked=!0,ja.setAttribute("disabled","disabled"),L.page.style.display="none","page"==I.value&&(I.value="diagram"),T.checked=!1,T.setAttribute("disabled","disabled"),C.style.display="inline-block",x.style.display="none"):"disabled"==ja.getAttribute("disabled")&&(ja.checked=!1,ja.removeAttribute("disabled"),T.removeAttribute("disabled"),L.page.style.display="",C.style.display="none",x.style.display="")}));c&&(d.appendChild(ja),mxUtils.write(d,
-mxResources.get("embedImages")),mxUtils.br(d),mxUtils.write(d,mxResources.get("txtSettings")+":"),d.appendChild(X),mxUtils.br(d),k+=60);var x=document.createElement("select");x.style.maxWidth="260px";x.style.marginLeft="8px";x.style.marginRight="10px";x.className="geBtn";c=document.createElement("option");c.setAttribute("value","auto");mxUtils.write(c,mxResources.get("automatic"));x.appendChild(c);c=document.createElement("option");c.setAttribute("value","blank");mxUtils.write(c,mxResources.get("openInNewWindow"));
-x.appendChild(c);c=document.createElement("option");c.setAttribute("value","self");mxUtils.write(c,mxResources.get("openInThisWindow"));x.appendChild(c);var C=document.createElement("div");mxUtils.write(C,mxResources.get("LinksLost"));C.style.margin="7px";C.style.display="none";"svg"==t&&(mxUtils.write(d,mxResources.get("links")+":"),d.appendChild(x),d.appendChild(C),mxUtils.br(d),mxUtils.br(d),k+=50);e=new CustomDialog(this,d,mxUtils.bind(this,function(){this.lastExportBorder=v.value;this.lastExportZoom=
-p.value;l(p.value,K.checked,!A.checked,T.checked,ga.checked,ja.checked,v.value,z.checked,!1,x.value,null!=W?W.checked:null,null!=P?P.checked:null,I.value,"embedFonts"==X.value,"lblToSvg"==X.value)}),null,e,f);this.showDialog(e.container,340,k,!0,!0,null,null,null,null,!0);p.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?p.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(b,c,e,f,l){var d=document.createElement("div");d.style.whiteSpace=
-"nowrap";var g=this.editor.graph;if(null!=c){var k=document.createElement("h3");mxUtils.write(k,c);k.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";d.appendChild(k)}var m=this.addCheckbox(d,mxResources.get("fit"),!0),p=this.addCheckbox(d,mxResources.get("shadow"),g.shadowVisible&&f,!f),n=this.addCheckbox(d,e),q=this.addCheckbox(d,mxResources.get("lightbox"),!0),E=this.addEditButton(d,q),H=E.getEditInput(),N=1<g.model.getChildCount(g.model.getRoot()),A=this.addCheckbox(d,
-mxResources.get("layers"),N,!N);A.style.marginLeft=H.style.marginLeft;A.style.marginBottom="12px";A.style.marginTop="8px";mxEvent.addListener(q,"change",function(){q.checked?(N&&A.removeAttribute("disabled"),H.removeAttribute("disabled")):(A.setAttribute("disabled","disabled"),H.setAttribute("disabled","disabled"));H.checked&&q.checked?E.getEditSelect().removeAttribute("disabled"):E.getEditSelect().setAttribute("disabled","disabled")});c=new CustomDialog(this,d,mxUtils.bind(this,function(){b(m.checked,
-p.checked,n.checked,q.checked,E.getLink(),A.checked)}),null,mxResources.get("embed"),l);this.showDialog(c.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=function(b,c,e,f,l,n,u,t){function d(d){var c=" ",m="";f&&(c=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+
-EditorUi.lightboxHost+"/?client=1"+(null!=k?"&page="+k:"")+(l?"&edit=_blank":"")+(n?"&layers=1":"")+"');}})(this);\"",m+="cursor:pointer;");b&&(m+="max-width:100%;");var p="";e&&(p=' width="'+Math.round(g.width)+'" height="'+Math.round(g.height)+'"');u('<img src="'+d+'"'+p+(""!=m?' style="'+m+'"':"")+c+"/>")}var g=this.editor.graph.getGraphBounds(),k=this.getSelectedPageIndex();if(this.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(b){var c=f?this.getFileData(!0):null;b=
+q?q.checked:!1,b,d)}),null,b,c);this.showDialog(b.container,300,(l?25:0)+(f?125:210),!0,!0)};EditorUi.prototype.showExportDialog=function(b,c,e,f,l,n,v,t,q){v=null!=v?v:Editor.defaultIncludeDiagram;var d=document.createElement("div");d.style.whiteSpace="nowrap";var g=this.editor.graph,k="jpeg"==t?220:300,m=document.createElement("h3");mxUtils.write(m,b);m.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";d.appendChild(m);mxUtils.write(d,mxResources.get("zoom")+":");var p=
+document.createElement("input");p.setAttribute("type","text");p.style.marginRight="16px";p.style.width="60px";p.style.marginLeft="4px";p.style.marginRight="12px";p.value=this.lastExportZoom||"100%";d.appendChild(p);mxUtils.write(d,mxResources.get("borderWidth")+":");var u=document.createElement("input");u.setAttribute("type","text");u.style.marginRight="16px";u.style.width="60px";u.style.marginLeft="4px";u.value=this.lastExportBorder||"0";d.appendChild(u);mxUtils.br(d);var z=this.addCheckbox(d,mxResources.get("selectionOnly"),
+!1,g.isSelectionEmpty()),G=document.createElement("input");G.style.marginTop="16px";G.style.marginRight="8px";G.style.marginLeft="24px";G.setAttribute("disabled","disabled");G.setAttribute("type","checkbox");var H=document.createElement("select");H.style.marginTop="16px";H.style.marginLeft="8px";b=["selectionOnly","diagram","page"];for(var L={},m=0;m<b.length;m++)if(!g.isSelectionEmpty()||"selectionOnly"!=b[m]){var N=document.createElement("option");mxUtils.write(N,mxResources.get(b[m]));N.setAttribute("value",
+b[m]);H.appendChild(N);L[b[m]]=N}q?(mxUtils.write(d,mxResources.get("size")+":"),d.appendChild(H),mxUtils.br(d),k+=26,mxEvent.addListener(H,"change",function(){"selectionOnly"==H.value&&(z.checked=!0)})):n&&(d.appendChild(G),mxUtils.write(d,mxResources.get("crop")),mxUtils.br(d),k+=30,mxEvent.addListener(z,"change",function(){z.checked?G.removeAttribute("disabled"):G.setAttribute("disabled","disabled")}));g.isSelectionEmpty()?q&&(z.style.display="none",z.nextSibling.style.display="none",z.nextSibling.nextSibling.style.display=
+"none",k-=30):(H.value="diagram",G.setAttribute("checked","checked"),G.defaultChecked=!0,mxEvent.addListener(z,"change",function(){H.value=z.checked?"selectionOnly":"diagram"}));var M=this.addCheckbox(d,mxResources.get("transparentBackground"),!1,null,null,"jpeg"!=t),P=null;Editor.isDarkMode()&&(P=this.addCheckbox(d,mxResources.get("dark"),!0),k+=26);var V=this.addCheckbox(d,mxResources.get("shadow"),g.shadowVisible),W=null;if("png"==t||"jpeg"==t)W=this.addCheckbox(d,mxResources.get("grid"),!1,this.isOffline()||
+!this.canvasSupported,!1,!0),k+=30;var ga=this.addCheckbox(d,mxResources.get("includeCopyOfMyDiagram"),v,null,null,"jpeg"!=t);ga.style.marginBottom="16px";var ea=document.createElement("input");ea.style.marginBottom="16px";ea.style.marginRight="8px";ea.setAttribute("type","checkbox");!this.isOffline()&&this.canvasSupported||ea.setAttribute("disabled","disabled");var ba=document.createElement("select");ba.style.maxWidth="260px";ba.style.marginLeft="8px";ba.style.marginRight="10px";ba.style.marginBottom=
+"16px";ba.className="geBtn";n=document.createElement("option");n.setAttribute("value","none");mxUtils.write(n,mxResources.get("noChange"));ba.appendChild(n);n=document.createElement("option");n.setAttribute("value","embedFonts");mxUtils.write(n,mxResources.get("embedFonts"));ba.appendChild(n);n=document.createElement("option");n.setAttribute("value","lblToSvg");mxUtils.write(n,mxResources.get("lblToSvg"));ba.appendChild(n);this.isOffline()&&n.setAttribute("disabled","disabled");mxEvent.addListener(ba,
+"change",mxUtils.bind(this,function(){"lblToSvg"==ba.value?(ea.checked=!0,ea.setAttribute("disabled","disabled"),L.page.style.display="none","page"==H.value&&(H.value="diagram"),V.checked=!1,V.setAttribute("disabled","disabled"),C.style.display="inline-block",x.style.display="none"):"disabled"==ea.getAttribute("disabled")&&(ea.checked=!1,ea.removeAttribute("disabled"),V.removeAttribute("disabled"),L.page.style.display="",C.style.display="none",x.style.display="")}));c&&(d.appendChild(ea),mxUtils.write(d,
+mxResources.get("embedImages")),mxUtils.br(d),mxUtils.write(d,mxResources.get("txtSettings")+":"),d.appendChild(ba),mxUtils.br(d),k+=60);var x=document.createElement("select");x.style.maxWidth="260px";x.style.marginLeft="8px";x.style.marginRight="10px";x.className="geBtn";c=document.createElement("option");c.setAttribute("value","auto");mxUtils.write(c,mxResources.get("automatic"));x.appendChild(c);c=document.createElement("option");c.setAttribute("value","blank");mxUtils.write(c,mxResources.get("openInNewWindow"));
+x.appendChild(c);c=document.createElement("option");c.setAttribute("value","self");mxUtils.write(c,mxResources.get("openInThisWindow"));x.appendChild(c);var C=document.createElement("div");mxUtils.write(C,mxResources.get("LinksLost"));C.style.margin="7px";C.style.display="none";"svg"==t&&(mxUtils.write(d,mxResources.get("links")+":"),d.appendChild(x),d.appendChild(C),mxUtils.br(d),mxUtils.br(d),k+=50);e=new CustomDialog(this,d,mxUtils.bind(this,function(){this.lastExportBorder=u.value;this.lastExportZoom=
+p.value;l(p.value,M.checked,!z.checked,V.checked,ga.checked,ea.checked,u.value,G.checked,!1,x.value,null!=W?W.checked:null,null!=P?P.checked:null,H.value,"embedFonts"==ba.value,"lblToSvg"==ba.value)}),null,e,f);this.showDialog(e.container,340,k,!0,!0,null,null,null,null,!0);p.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?p.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(b,c,e,f,l){var d=document.createElement("div");d.style.whiteSpace=
+"nowrap";var g=this.editor.graph;if(null!=c){var k=document.createElement("h3");mxUtils.write(k,c);k.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";d.appendChild(k)}var m=this.addCheckbox(d,mxResources.get("fit"),!0),p=this.addCheckbox(d,mxResources.get("shadow"),g.shadowVisible&&f,!f),n=this.addCheckbox(d,e),q=this.addCheckbox(d,mxResources.get("lightbox"),!0),F=this.addEditButton(d,q),E=F.getEditInput(),O=1<g.model.getChildCount(g.model.getRoot()),B=this.addCheckbox(d,
+mxResources.get("layers"),O,!O);B.style.marginLeft=E.style.marginLeft;B.style.marginBottom="12px";B.style.marginTop="8px";mxEvent.addListener(q,"change",function(){q.checked?(O&&B.removeAttribute("disabled"),E.removeAttribute("disabled")):(B.setAttribute("disabled","disabled"),E.setAttribute("disabled","disabled"));E.checked&&q.checked?F.getEditSelect().removeAttribute("disabled"):F.getEditSelect().setAttribute("disabled","disabled")});c=new CustomDialog(this,d,mxUtils.bind(this,function(){b(m.checked,
+p.checked,n.checked,q.checked,F.getLink(),B.checked)}),null,mxResources.get("embed"),l);this.showDialog(c.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=function(b,c,e,f,l,n,v,t){function d(d){var c=" ",m="";f&&(c=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+
+EditorUi.lightboxHost+"/?client=1"+(null!=k?"&page="+k:"")+(l?"&edit=_blank":"")+(n?"&layers=1":"")+"');}})(this);\"",m+="cursor:pointer;");b&&(m+="max-width:100%;");var p="";e&&(p=' width="'+Math.round(g.width)+'" height="'+Math.round(g.height)+'"');v('<img src="'+d+'"'+p+(""!=m?' style="'+m+'"':"")+c+"/>")}var g=this.editor.graph.getGraphBounds(),k=this.getSelectedPageIndex();if(this.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(b){var c=f?this.getFileData(!0):null;b=
this.createImageDataUri(b,c,"png");d(b)}),null,null,null,mxUtils.bind(this,function(b){t({message:mxResources.get("unknownError")})}),null,!0,e?2:1,null,c,null,null,Editor.defaultBorder);else if(c=this.getFileData(!0),g.width*g.height<=MAX_AREA&&c.length<=MAX_REQUEST_SIZE){var m="";e&&(m="&w="+Math.round(2*g.width)+"&h="+Math.round(2*g.height));var p=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(f?"1":"0")+m+"&xml="+encodeURIComponent(c));p.send(mxUtils.bind(this,function(){200<=p.getStatus()&&
-299>=p.getStatus()?d("data:image/png;base64,"+p.getText()):t({message:mxResources.get("unknownError")})}))}else t({message:mxResources.get("drawingTooLarge")})};EditorUi.prototype.createEmbedSvg=function(b,c,e,f,l,n,u){var d=this.editor.graph.getSvg(null,null,null,null,null,null,null,null,null,null,!e),g=d.getElementsByTagName("a");if(null!=g)for(var k=0;k<g.length;k++){var m=g[k].getAttribute("href");null!=m&&"#"==m.charAt(0)&&"_blank"==g[k].getAttribute("target")&&g[k].removeAttribute("target")}f&&
-d.setAttribute("content",this.getFileData(!0));c&&this.editor.graph.addSvgShadow(d);if(e){var p=" ",v="";f&&(p="onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+EditorUi.lightboxHost+"/?client=1"+(l?"&edit=_blank":"")+(n?"&layers=1":
-"")+"');}})(this);\"",v+="cursor:pointer;");b&&(v+="max-width:100%;");this.editor.convertImages(d,mxUtils.bind(this,function(b){u('<img src="'+Editor.createSvgDataUri(mxUtils.getXml(b))+'"'+(""!=v?' style="'+v+'"':"")+p+"/>")}))}else v="",f&&(c=this.getSelectedPageIndex(),d.setAttribute("onclick","(function(svg){var src=window.event.target||window.event.srcElement;while (src!=null&&src.nodeName.toLowerCase()!='a'){src=src.parentNode;}if(src==null){if(svg.wnd!=null&&!svg.wnd.closed){svg.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==svg.wnd){svg.wnd.postMessage(decodeURIComponent(svg.getAttribute('content')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);svg.wnd=window.open('"+
-EditorUi.lightboxHost+"/?client=1"+(null!=c?"&page="+c:"")+(l?"&edit=_blank":"")+(n?"&layers=1":"")+"');}}})(this);"),v+="cursor:pointer;"),b&&(b=parseInt(d.getAttribute("width")),l=parseInt(d.getAttribute("height")),d.setAttribute("viewBox","-0.5 -0.5 "+b+" "+l),v+="max-width:100%;max-height:"+l+"px;",d.removeAttribute("height")),""!=v&&d.setAttribute("style",v),this.editor.addFontCss(d),this.editor.graph.mathEnabled&&this.editor.addMathCss(d),u(mxUtils.getXml(d))};EditorUi.prototype.timeSince=function(b){b=
+299>=p.getStatus()?d("data:image/png;base64,"+p.getText()):t({message:mxResources.get("unknownError")})}))}else t({message:mxResources.get("drawingTooLarge")})};EditorUi.prototype.createEmbedSvg=function(b,c,e,f,l,n,v){var d=this.editor.graph.getSvg(null,null,null,null,null,null,null,null,null,null,!e),g=d.getElementsByTagName("a");if(null!=g)for(var k=0;k<g.length;k++){var m=g[k].getAttribute("href");null!=m&&"#"==m.charAt(0)&&"_blank"==g[k].getAttribute("target")&&g[k].removeAttribute("target")}f&&
+d.setAttribute("content",this.getFileData(!0));c&&this.editor.graph.addSvgShadow(d);if(e){var p=" ",u="";f&&(p="onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+EditorUi.lightboxHost+"/?client=1"+(l?"&edit=_blank":"")+(n?"&layers=1":
+"")+"');}})(this);\"",u+="cursor:pointer;");b&&(u+="max-width:100%;");this.editor.convertImages(d,mxUtils.bind(this,function(b){v('<img src="'+Editor.createSvgDataUri(mxUtils.getXml(b))+'"'+(""!=u?' style="'+u+'"':"")+p+"/>")}))}else u="",f&&(c=this.getSelectedPageIndex(),d.setAttribute("onclick","(function(svg){var src=window.event.target||window.event.srcElement;while (src!=null&&src.nodeName.toLowerCase()!='a'){src=src.parentNode;}if(src==null){if(svg.wnd!=null&&!svg.wnd.closed){svg.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==svg.wnd){svg.wnd.postMessage(decodeURIComponent(svg.getAttribute('content')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);svg.wnd=window.open('"+
+EditorUi.lightboxHost+"/?client=1"+(null!=c?"&page="+c:"")+(l?"&edit=_blank":"")+(n?"&layers=1":"")+"');}}})(this);"),u+="cursor:pointer;"),b&&(b=parseInt(d.getAttribute("width")),l=parseInt(d.getAttribute("height")),d.setAttribute("viewBox","-0.5 -0.5 "+b+" "+l),u+="max-width:100%;max-height:"+l+"px;",d.removeAttribute("height")),""!=u&&d.setAttribute("style",u),this.editor.addFontCss(d),this.editor.graph.mathEnabled&&this.editor.addMathCss(d),v(mxUtils.getXml(d))};EditorUi.prototype.timeSince=function(b){b=
Math.floor((new Date-b)/1E3);var d=Math.floor(b/31536E3);if(1<d)return d+" "+mxResources.get("years");d=Math.floor(b/2592E3);if(1<d)return d+" "+mxResources.get("months");d=Math.floor(b/86400);if(1<d)return d+" "+mxResources.get("days");d=Math.floor(b/3600);if(1<d)return d+" "+mxResources.get("hours");d=Math.floor(b/60);return 1<d?d+" "+mxResources.get("minutes"):1==d?d+" "+mxResources.get("minute"):null};EditorUi.prototype.decodeNodeIntoGraph=function(b,c){if(null!=b){var d=null;if("diagram"==b.nodeName)d=
-b;else if("mxfile"==b.nodeName){var e=b.getElementsByTagName("diagram");if(0<e.length){var d=e[0],f=c.getGlobalVariable;c.getGlobalVariable=function(b){return"page"==b?d.getAttribute("name")||mxResources.get("pageWithNumber",[1]):"pagenumber"==b?1:f.apply(this,arguments)}}}null!=d&&(b=Editor.parseDiagramNode(d))}e=this.editor.graph;try{this.editor.graph=c,this.editor.setGraphXml(b)}catch(v){}finally{this.editor.graph=e}return b};EditorUi.prototype.getPngFileProperties=function(b){var d=1,c=0;if(null!=
+b;else if("mxfile"==b.nodeName){var e=b.getElementsByTagName("diagram");if(0<e.length){var d=e[0],f=c.getGlobalVariable;c.getGlobalVariable=function(b){return"page"==b?d.getAttribute("name")||mxResources.get("pageWithNumber",[1]):"pagenumber"==b?1:f.apply(this,arguments)}}}null!=d&&(b=Editor.parseDiagramNode(d))}e=this.editor.graph;try{this.editor.graph=c,this.editor.setGraphXml(b)}catch(u){}finally{this.editor.graph=e}return b};EditorUi.prototype.getPngFileProperties=function(b){var d=1,c=0;if(null!=
b){if(b.hasAttribute("scale")){var e=parseFloat(b.getAttribute("scale"));!isNaN(e)&&0<e&&(d=e)}b.hasAttribute("border")&&(e=parseInt(b.getAttribute("border")),!isNaN(e)&&0<e&&(c=e))}return{scale:d,border:c}};EditorUi.prototype.getEmbeddedPng=function(b,c,e,f,l){try{var d=this.editor.graph,g=null!=d.themes&&"darkTheme"==d.defaultThemeName,k=null;if(null!=e&&0<e.length)d=this.createTemporaryGraph(g?d.getDefaultStylesheet():d.getStylesheet()),document.body.appendChild(d.container),this.decodeNodeIntoGraph(this.editor.extractGraphModel(mxUtils.parseXml(e).documentElement,
!0),d),k=e;else if(g||null!=this.pages&&this.currentPage!=this.pages[0]){var d=this.createTemporaryGraph(g?d.getDefaultStylesheet():d.getStylesheet()),m=d.getGlobalVariable;d.setBackgroundImage=this.editor.graph.setBackgroundImage;var p=this.pages[0];this.currentPage==p?d.setBackgroundImage(this.editor.graph.backgroundImage):null!=p.viewState&&null!=p.viewState&&d.setBackgroundImage(p.viewState.backgroundImage);d.getGlobalVariable=function(b){return"page"==b?p.getName():"pagenumber"==b?1:m.apply(this,
-arguments)};document.body.appendChild(d.container);d.model.setRoot(p.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(e){try{null==k&&(k=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var g=e.toDataURL("image/png"),g=Editor.writeGraphModelToPng(g,"tEXt","mxfile",encodeURIComponent(k));b(g.substring(g.lastIndexOf(",")+1));d!=this.editor.graph&&d.container.parentNode.removeChild(d.container)}catch(E){null!=c&&c(E)}}),null,null,null,mxUtils.bind(this,function(b){null!=c&&
-c(b)}),null,null,f,null,d.shadowVisible,null,d,l,null,null,null,"diagram",null)}catch(F){null!=c&&c(F)}};EditorUi.prototype.getEmbeddedSvg=function(b,c,e,f,l,n,u,t,q,y,F,D,E){t=null!=t?t:!0;F=null!=F?F:0;u=null!=q?q:c.background;u==mxConstants.NONE&&(u=null);n=c.getSvg(u,y,F,null,null,n,null,null,null,c.shadowVisible||D,null,E,"diagram");(c.shadowVisible||D)&&c.addSvgShadow(n,null,null,0==F);null!=b&&n.setAttribute("content",b);null!=e&&n.setAttribute("resource",e);var d=mxUtils.bind(this,function(b){b=
+arguments)};document.body.appendChild(d.container);d.model.setRoot(p.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(e){try{null==k&&(k=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var g=e.toDataURL("image/png"),g=Editor.writeGraphModelToPng(g,"tEXt","mxfile",encodeURIComponent(k));b(g.substring(g.lastIndexOf(",")+1));d!=this.editor.graph&&d.container.parentNode.removeChild(d.container)}catch(F){null!=c&&c(F)}}),null,null,null,mxUtils.bind(this,function(b){null!=c&&
+c(b)}),null,null,f,null,d.shadowVisible,null,d,l,null,null,null,"diagram",null)}catch(I){null!=c&&c(I)}};EditorUi.prototype.getEmbeddedSvg=function(b,c,e,f,l,n,v,t,q,y,I,D,F){t=null!=t?t:!0;I=null!=I?I:0;v=null!=q?q:c.background;v==mxConstants.NONE&&(v=null);n=c.getSvg(v,y,I,null,null,n,null,null,null,c.shadowVisible||D,null,F,"diagram");(c.shadowVisible||D)&&c.addSvgShadow(n,null,null,0==I);null!=b&&n.setAttribute("content",b);null!=e&&n.setAttribute("resource",e);var d=mxUtils.bind(this,function(b){b=
(f?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(b);null!=l&&l(b);return b});c.mathEnabled&&this.editor.addMathCss(n);if(null!=l)this.embedFonts(n,mxUtils.bind(this,function(b){t?this.editor.convertImages(b,mxUtils.bind(this,function(b){d(b)})):d(b)}));else return d(n)};EditorUi.prototype.embedFonts=function(b,c){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&&this.editor.addFontCss(b,this.editor.resolvedFontCss),
-this.editor.embedExtFonts(mxUtils.bind(this,function(d){try{null!=d&&this.editor.addFontCss(b,d),c(b)}catch(p){c(b)}}))}catch(g){c(b)}}))};EditorUi.prototype.exportImage=function(b,c,e,f,l,n,u,t,q,y,F,D,E){q=null!=q?q:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"))){var d=this.editor.graph.isSelectionEmpty();e=null!=e?e:d;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,function(b){this.spinner.stop();try{this.saveCanvas(b,
-l?this.getFileData(!0,null,null,null,e,t):null,q,null==this.pages||0==this.pages.length,F)}catch(A){this.handleError(A)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(b){this.spinner.stop();this.handleError(b)}),null,e,b||1,c,f,null,null,n,u,y,D,E)}catch(N){this.spinner.stop(),this.handleError(N)}}};EditorUi.prototype.isCorsEnabledForUrl=function(b){return this.editor.isCorsEnabledForUrl(b)};EditorUi.prototype.importXml=function(b,c,e,f,l,n,u){c=null!=c?c:0;e=null!=e?e:0;var d=[];try{var g=
+this.editor.embedExtFonts(mxUtils.bind(this,function(d){try{null!=d&&this.editor.addFontCss(b,d),c(b)}catch(p){c(b)}}))}catch(g){c(b)}}))};EditorUi.prototype.exportImage=function(b,c,e,f,l,n,v,t,q,y,I,D,F){q=null!=q?q:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"))){var d=this.editor.graph.isSelectionEmpty();e=null!=e?e:d;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,function(b){this.spinner.stop();try{this.saveCanvas(b,
+l?this.getFileData(!0,null,null,null,e,t):null,q,null==this.pages||0==this.pages.length,I)}catch(B){this.handleError(B)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(b){this.spinner.stop();this.handleError(b)}),null,e,b||1,c,f,null,null,n,v,y,D,F)}catch(O){this.spinner.stop(),this.handleError(O)}}};EditorUi.prototype.isCorsEnabledForUrl=function(b){return this.editor.isCorsEnabledForUrl(b)};EditorUi.prototype.importXml=function(b,c,e,f,l,n,v){c=null!=c?c:0;e=null!=e?e:0;var d=[];try{var g=
this.editor.graph;if(null!=b&&0<b.length){g.model.beginUpdate();try{var k=mxUtils.parseXml(b);b={};var m=this.editor.extractGraphModel(k.documentElement,null!=this.pages);if(null!=m&&"mxfile"==m.nodeName&&null!=this.pages){var p=m.getElementsByTagName("diagram");if(1==p.length&&!n){if(m=Editor.parseDiagramNode(p[0]),null!=this.currentPage&&(b[p[0].getAttribute("id")]=this.currentPage.getId(),null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",
-[1]))){var v=p[0].getAttribute("name");null!=v&&""!=v&&this.editor.graph.model.execute(new RenamePage(this,this.currentPage,v))}}else if(0<p.length){n=[];var q=0;null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&(b[p[0].getAttribute("id")]=this.pages[0].getId(),m=Editor.parseDiagramNode(p[0]),f=!1,q=1);for(;q<p.length;q++){var N=p[q].getAttribute("id");p[q].removeAttribute("id");var A=this.updatePageRoot(new DiagramPage(p[q]));b[N]=p[q].getAttribute("id");var G=this.pages.length;null==
-A.getName()&&A.setName(mxResources.get("pageWithNumber",[G+1]));g.model.execute(new ChangePage(this,A,A,G,!0));n.push(A)}this.updatePageLinks(b,n)}}if(null!=m&&"mxGraphModel"===m.nodeName){d=g.importGraphModel(m,c,e,f);if(null!=d)for(q=0;q<d.length;q++)this.updatePageLinksForCell(b,d[q]);var I=g.parseBackgroundImage(m.getAttribute("backgroundImage"));if(null!=I&&null!=I.originalSrc){this.updateBackgroundPageLink(b,I);var L=new ChangePageSetup(this,null,I);L.ignoreColor=!0;g.model.execute(L)}}u&&this.insertHandler(d,
-null,null,g.defaultVertexStyle,g.defaultEdgeStyle,!1,!0)}finally{g.model.endUpdate()}}}catch(M){if(l)throw M;this.handleError(M)}return d};EditorUi.prototype.updatePageLinks=function(b,c){for(var d=0;d<c.length;d++)this.updatePageLinksForCell(b,c[d].root),null!=c[d].viewState&&this.updateBackgroundPageLink(b,c[d].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(b,c){try{if(null!=c&&Graph.isPageLink(c.originalSrc)){var d=b[c.originalSrc.substring(c.originalSrc.indexOf(",")+
+[1]))){var u=p[0].getAttribute("name");null!=u&&""!=u&&this.editor.graph.model.execute(new RenamePage(this,this.currentPage,u))}}else if(0<p.length){n=[];var q=0;null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&(b[p[0].getAttribute("id")]=this.pages[0].getId(),m=Editor.parseDiagramNode(p[0]),f=!1,q=1);for(;q<p.length;q++){var O=p[q].getAttribute("id");p[q].removeAttribute("id");var B=this.updatePageRoot(new DiagramPage(p[q]));b[O]=p[q].getAttribute("id");var G=this.pages.length;null==
+B.getName()&&B.setName(mxResources.get("pageWithNumber",[G+1]));g.model.execute(new ChangePage(this,B,B,G,!0));n.push(B)}this.updatePageLinks(b,n)}}if(null!=m&&"mxGraphModel"===m.nodeName){d=g.importGraphModel(m,c,e,f);if(null!=d)for(q=0;q<d.length;q++)this.updatePageLinksForCell(b,d[q]);var H=g.parseBackgroundImage(m.getAttribute("backgroundImage"));if(null!=H&&null!=H.originalSrc){this.updateBackgroundPageLink(b,H);var L=new ChangePageSetup(this,null,H);L.ignoreColor=!0;g.model.execute(L)}}v&&this.insertHandler(d,
+null,null,g.defaultVertexStyle,g.defaultEdgeStyle,!1,!0)}finally{g.model.endUpdate()}}}catch(N){if(l)throw N;this.handleError(N)}return d};EditorUi.prototype.updatePageLinks=function(b,c){for(var d=0;d<c.length;d++)this.updatePageLinksForCell(b,c[d].root),null!=c[d].viewState&&this.updateBackgroundPageLink(b,c[d].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(b,c){try{if(null!=c&&Graph.isPageLink(c.originalSrc)){var d=b[c.originalSrc.substring(c.originalSrc.indexOf(",")+
1)];null!=d&&(c.originalSrc="data:page/id,"+d)}}catch(p){}};EditorUi.prototype.updatePageLinksForCell=function(b,c){var d=document.createElement("div"),e=this.editor.graph,f=e.getLinkForCell(c);null!=f&&e.setLinkForCell(c,this.updatePageLink(b,f));if(e.isHtmlLabel(c)){d.innerHTML=e.sanitizeHtml(e.getLabel(c));for(var k=d.getElementsByTagName("a"),l=!1,n=0;n<k.length;n++)f=k[n].getAttribute("href"),null!=f&&(k[n].setAttribute("href",this.updatePageLink(b,f)),l=!0);l&&e.labelChanged(c,d.innerHTML)}for(n=
0;n<e.model.getChildCount(c);n++)this.updatePageLinksForCell(b,e.model.getChildAt(c,n))};EditorUi.prototype.updatePageLink=function(b,c){if(Graph.isPageLink(c)){var d=b[c.substring(c.indexOf(",")+1)];c=null!=d?"data:page/id,"+d:null}else if("data:action/json,"==c.substring(0,17))try{var e=JSON.parse(c.substring(17));if(null!=e.actions){for(var f=0;f<e.actions.length;f++){var k=e.actions[f];if(null!=k.open&&Graph.isPageLink(k.open)){var l=k.open.substring(k.open.indexOf(",")+1),d=b[l];null!=d?k.open=
"data:page/id,"+d:null==this.getPageById(l)&&delete k.open}}c="data:action/json,"+JSON.stringify(e)}}catch(t){}return c};EditorUi.prototype.isRemoteVisioFormat=function(b){return/(\.v(sd|dx))($|\?)/i.test(b)||/(\.vs(s|x))($|\?)/i.test(b)};EditorUi.prototype.importVisio=function(b,c,e,f,l){f=null!=f?f:b.name;e=null!=e?e:mxUtils.bind(this,function(b){this.handleError(b)});var d=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(this.doImportVisio){var d=this.isRemoteVisioFormat(f);try{var g=
"UNKNOWN-VISIO",k=f.lastIndexOf(".");if(0<=k&&k<f.length)g=f.substring(k+1).toUpperCase();else{var m=f.lastIndexOf("/");0<=m&&m<f.length&&(f=f.substring(m+1))}EditorUi.logEvent({category:g+"-MS-IMPORT-FILE",action:"filename_"+f,label:d?"remote":"local"})}catch(D){}if(d)if(null==VSD_CONVERT_URL||this.isOffline())e({message:"conf"==this.getServiceName()?mxResources.get("vsdNoConfig"):mxResources.get("serviceUnavailableOrBlocked")});else{d=new FormData;d.append("file1",b,f);var p=new XMLHttpRequest;
-p.open("POST",VSD_CONVERT_URL+(/(\.vss|\.vsx)$/.test(f)?"?stencil=1":""));p.responseType="blob";this.addRemoteServiceSecurityCheck(p);null!=l&&p.setRequestHeader("x-convert-custom",l);p.onreadystatechange=mxUtils.bind(this,function(){if(4==p.readyState)if(200<=p.status&&299>=p.status)try{var b=p.response;if("text/xml"==b.type){var d=new FileReader;d.onload=mxUtils.bind(this,function(b){try{c(b.target.result)}catch(N){e({message:mxResources.get("errorLoadingFile")})}});d.readAsText(b)}else this.doImportVisio(b,
-c,e,f)}catch(H){e(H)}else try{""==p.responseType||"text"==p.responseType?e({message:p.responseText}):(d=new FileReader,d.onload=function(){e({message:JSON.parse(d.result).Message})},d.readAsText(p.response))}catch(H){e({})}});p.send(d)}else try{this.doImportVisio(b,c,e,f)}catch(D){e(D)}}else this.spinner.stop(),this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?d():(this.loadingExtensions=!0,mxscript("js/extensions.min.js",
+p.open("POST",VSD_CONVERT_URL+(/(\.vss|\.vsx)$/.test(f)?"?stencil=1":""));p.responseType="blob";this.addRemoteServiceSecurityCheck(p);null!=l&&p.setRequestHeader("x-convert-custom",l);p.onreadystatechange=mxUtils.bind(this,function(){if(4==p.readyState)if(200<=p.status&&299>=p.status)try{var b=p.response;if("text/xml"==b.type){var d=new FileReader;d.onload=mxUtils.bind(this,function(b){try{c(b.target.result)}catch(O){e({message:mxResources.get("errorLoadingFile")})}});d.readAsText(b)}else this.doImportVisio(b,
+c,e,f)}catch(E){e(E)}else try{""==p.responseType||"text"==p.responseType?e({message:p.responseText}):(d=new FileReader,d.onload=function(){e({message:JSON.parse(d.result).Message})},d.readAsText(p.response))}catch(E){e({})}});p.send(d)}else try{this.doImportVisio(b,c,e,f)}catch(D){e(D)}}else this.spinner.stop(),this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?d():(this.loadingExtensions=!0,mxscript("js/extensions.min.js",
d))};EditorUi.prototype.importGraphML=function(b,c,e){e=null!=e?e:mxUtils.bind(this,function(b){this.handleError(b)});var d=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(this.doImportGraphML)try{this.doImportGraphML(b,c,e)}catch(m){e(m)}else this.spinner.stop(),this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportGraphML||this.loadingExtensions||this.isOffline(!0)?d():(this.loadingExtensions=!0,mxscript("js/extensions.min.js",d))};EditorUi.prototype.exportVisio=
function(b){var d=mxUtils.bind(this,function(){this.loadingExtensions=!1;if("undefined"!==typeof VsdxExport)try{(new VsdxExport(this)).exportCurrentDiagrams(b)||this.handleError({message:mxResources.get("unknownError")})}catch(g){this.handleError(g)}else this.spinner.stop(),this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof VsdxExport||this.loadingExtensions||this.isOffline(!0)?d():(this.loadingExtensions=!0,mxscript("js/extensions.min.js",d))};EditorUi.prototype.convertLucidChart=
function(b,c,e){var d=mxUtils.bind(this,function(){this.loadingExtensions=!1;if("undefined"!==typeof window.LucidImporter)try{var d=JSON.parse(b);c(LucidImporter.importState(d));try{if(EditorUi.logEvent({category:"LUCIDCHART-IMPORT-FILE",action:"size_"+b.length}),null!=window.console&&"1"==urlParams.test){var g=[(new Date).toISOString(),"convertLucidChart",d];null!=d.state&&g.push(JSON.parse(d.state));if(null!=d.svgThumbs)for(var f=0;f<d.svgThumbs.length;f++)g.push(Editor.createSvgDataUri(d.svgThumbs[f]));
null!=d.thumb&&g.push(d.thumb);console.log.apply(console,g)}}catch(t){}}catch(t){null!=window.console&&console.error(t),e(t)}else e({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof window.LucidImporter||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(d,0):(this.loadingExtensions=!0,"1"==urlParams.dev?mxscript("js/diagramly/Extensions.js",function(){mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",
function(){mxscript("js/orgchart/mxOrgChartLayout.js",d)})})})}):mxscript("js/extensions.min.js",d))};EditorUi.prototype.generateMermaidImage=function(b,c,e,f){var d=this,g=function(){try{this.loadingMermaid=!1,c=null!=c?c:mxUtils.clone(EditorUi.defaultMermaidConfig),c.securityLevel="strict",c.startOnLoad=!1,Editor.isDarkMode()&&(c.theme="dark"),mermaid.mermaidAPI.initialize(c),mermaid.mermaidAPI.render("geMermaidOutput-"+(new Date).getTime(),b,function(b){try{if(mxClient.IS_IE||mxClient.IS_IE11)b=
-b.replace(/ xmlns:\S*="http:\/\/www.w3.org\/XML\/1998\/namespace"/g,"").replace(/ (NS xml|\S*):space="preserve"/g,' xml:space="preserve"');var c=mxUtils.parseXml(b).getElementsByTagName("svg");if(0<c.length){var g=parseFloat(c[0].getAttribute("width")),k=parseFloat(c[0].getAttribute("height"));if(isNaN(g)||isNaN(k))try{var l=c[0].getAttribute("viewBox").split(/\s+/),g=parseFloat(l[2]),k=parseFloat(l[3])}catch(D){g=g||100,k=k||100}e(d.convertDataUri(Editor.createSvgDataUri(b)),g,k)}else f({message:mxResources.get("invalidInput")})}catch(D){f(D)}})}catch(u){f(u)}};
+b.replace(/ xmlns:\S*="http:\/\/www.w3.org\/XML\/1998\/namespace"/g,"").replace(/ (NS xml|\S*):space="preserve"/g,' xml:space="preserve"');var c=mxUtils.parseXml(b).getElementsByTagName("svg");if(0<c.length){var g=parseFloat(c[0].getAttribute("width")),k=parseFloat(c[0].getAttribute("height"));if(isNaN(g)||isNaN(k))try{var l=c[0].getAttribute("viewBox").split(/\s+/),g=parseFloat(l[2]),k=parseFloat(l[3])}catch(D){g=g||100,k=k||100}e(d.convertDataUri(Editor.createSvgDataUri(b)),g,k)}else f({message:mxResources.get("invalidInput")})}catch(D){f(D)}})}catch(v){f(v)}};
"undefined"!==typeof mermaid||this.loadingMermaid||this.isOffline(!0)?g():(this.loadingMermaid=!0,"1"==urlParams.dev?mxscript("js/mermaid/mermaid.min.js",g):mxscript("js/extensions.min.js",g))};EditorUi.prototype.generatePlantUmlImage=function(b,c,e,f){function d(b,d,c){c1=b>>2;c2=(b&3)<<4|d>>4;c3=(d&15)<<2|c>>6;c4=c&63;r="";r+=g(c1&63);r+=g(c2&63);r+=g(c3&63);return r+=g(c4&63)}function g(b){if(10>b)return String.fromCharCode(48+b);b-=10;if(26>b)return String.fromCharCode(65+b);b-=26;if(26>b)return String.fromCharCode(97+
b);b-=26;return 0==b?"-":1==b?"_":"?"}var k=new XMLHttpRequest;k.open("GET",("txt"==c?PLANT_URL+"/txt/":"png"==c?PLANT_URL+"/png/":PLANT_URL+"/svg/")+function(b){r="";for(i=0;i<b.length;i+=3)r=i+2==b.length?r+d(b.charCodeAt(i),b.charCodeAt(i+1),0):i+1==b.length?r+d(b.charCodeAt(i),0,0):r+d(b.charCodeAt(i),b.charCodeAt(i+1),b.charCodeAt(i+2));return r}(Graph.arrayBufferToString(pako.deflateRaw(b))),!0);"txt"!=c&&(k.responseType="blob");k.onload=function(b){if(200<=this.status&&300>this.status)if("txt"==
-c)e(this.response);else{var d=new FileReader;d.readAsDataURL(this.response);d.onloadend=function(b){var c=new Image;c.onload=function(){try{var b=c.width,g=c.height;if(0==b&&0==g){var k=d.result,l=k.indexOf(","),m=decodeURIComponent(escape(atob(k.substring(l+1)))),n=mxUtils.parseXml(m).getElementsByTagName("svg");0<n.length&&(b=parseFloat(n[0].getAttribute("width")),g=parseFloat(n[0].getAttribute("height")))}e(d.result,b,g)}catch(I){f(I)}};c.src=d.result};d.onerror=function(b){f(b)}}else f(b)};k.onerror=
-function(b){f(b)};k.send()};EditorUi.prototype.insertAsPreText=function(b,c,e){var d=this.editor.graph,g=null;d.getModel().beginUpdate();try{g=d.insertVertex(null,null,"<pre>"+b+"</pre>",c,e,1,1,"text;html=1;align=left;verticalAlign=top;"),d.updateCellSize(g,!0)}finally{d.getModel().endUpdate()}return g};EditorUi.prototype.insertTextAt=function(b,c,e,f,l,n,u,t){n=null!=n?n:!0;u=null!=u?u:!0;if(null!=b)if(Graph.fileSupport&&!this.isOffline()&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(b))this.parseFileData(b.replace(/\s+/g,
+c)e(this.response);else{var d=new FileReader;d.readAsDataURL(this.response);d.onloadend=function(b){var c=new Image;c.onload=function(){try{var b=c.width,g=c.height;if(0==b&&0==g){var k=d.result,l=k.indexOf(","),m=decodeURIComponent(escape(atob(k.substring(l+1)))),n=mxUtils.parseXml(m).getElementsByTagName("svg");0<n.length&&(b=parseFloat(n[0].getAttribute("width")),g=parseFloat(n[0].getAttribute("height")))}e(d.result,b,g)}catch(H){f(H)}};c.src=d.result};d.onerror=function(b){f(b)}}else f(b)};k.onerror=
+function(b){f(b)};k.send()};EditorUi.prototype.insertAsPreText=function(b,c,e){var d=this.editor.graph,g=null;d.getModel().beginUpdate();try{g=d.insertVertex(null,null,"<pre>"+b+"</pre>",c,e,1,1,"text;html=1;align=left;verticalAlign=top;"),d.updateCellSize(g,!0)}finally{d.getModel().endUpdate()}return g};EditorUi.prototype.insertTextAt=function(b,c,e,f,l,n,q,t){n=null!=n?n:!0;q=null!=q?q:!0;if(null!=b)if(Graph.fileSupport&&!this.isOffline()&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(b))this.parseFileData(b.replace(/\s+/g,
" "),mxUtils.bind(this,function(b){4==b.readyState&&200<=b.status&&299>=b.status&&this.editor.graph.setSelectionCells(this.insertTextAt(b.responseText,c,e,!0))}));else if("data:"==b.substring(0,5)||!this.isOffline()&&(l||/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(b))){var d=this.editor.graph;if("data:application/pdf;base64,"==b.substring(0,28)){var g=Editor.extractGraphModelFromPdf(b);if(null!=g&&0<g.length)return this.importXml(g,c,e,n,!0,t)}if(Editor.isPngDataUrl(b)&&(g=Editor.extractGraphModelFromPng(b),
-null!=g&&0<g.length))return this.importXml(g,c,e,n,!0,t);if("data:image/svg+xml;"==b.substring(0,19))try{g=null;"data:image/svg+xml;base64,"==b.substring(0,26)?(g=b.substring(b.indexOf(",")+1),g=window.atob&&!mxClient.IS_SF?atob(g):Base64.decode(g,!0)):g=decodeURIComponent(b.substring(b.indexOf(",")+1));var k=this.importXml(g,c,e,n,!0,t);if(0<k.length)return k}catch(E){}this.loadImage(b,mxUtils.bind(this,function(g){if("data:"==b.substring(0,5))this.resizeImage(g,b,mxUtils.bind(this,function(b,g,
-f){d.setSelectionCell(d.insertVertex(null,null,"",d.snap(c),d.snap(e),g,f,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+this.convertDataUri(b)+";"))}),u,this.maxImageSize);else{var f=Math.min(1,Math.min(this.maxImageSize/g.width,this.maxImageSize/g.height)),k=Math.round(g.width*f);g=Math.round(g.height*f);d.setSelectionCell(d.insertVertex(null,null,"",d.snap(c),d.snap(e),k,g,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+
+null!=g&&0<g.length))return this.importXml(g,c,e,n,!0,t);if("data:image/svg+xml;"==b.substring(0,19))try{g=null;"data:image/svg+xml;base64,"==b.substring(0,26)?(g=b.substring(b.indexOf(",")+1),g=window.atob&&!mxClient.IS_SF?atob(g):Base64.decode(g,!0)):g=decodeURIComponent(b.substring(b.indexOf(",")+1));var k=this.importXml(g,c,e,n,!0,t);if(0<k.length)return k}catch(F){}this.loadImage(b,mxUtils.bind(this,function(g){if("data:"==b.substring(0,5))this.resizeImage(g,b,mxUtils.bind(this,function(b,g,
+f){d.setSelectionCell(d.insertVertex(null,null,"",d.snap(c),d.snap(e),g,f,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+this.convertDataUri(b)+";"))}),q,this.maxImageSize);else{var f=Math.min(1,Math.min(this.maxImageSize/g.width,this.maxImageSize/g.height)),k=Math.round(g.width*f);g=Math.round(g.height*f);d.setSelectionCell(d.insertVertex(null,null,"",d.snap(c),d.snap(e),k,g,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+
b+";"))}}),mxUtils.bind(this,function(){var g=null;d.getModel().beginUpdate();try{g=d.insertVertex(d.getDefaultParent(),null,b,d.snap(c),d.snap(e),1,1,"text;"+(f?"html=1;":"")),d.updateCellSize(g),d.fireEvent(new mxEventObject("textInserted","cells",[g]))}finally{d.getModel().endUpdate()}d.setSelectionCell(g)}))}else{b=Graph.zapGremlins(mxUtils.trim(b));if(this.isCompatibleString(b))return this.importXml(b,c,e,n,null,t);if(0<b.length)if(this.isLucidChartData(b))this.convertLucidChart(b,mxUtils.bind(this,
function(b){this.editor.graph.setSelectionCells(this.importXml(b,c,e,n,null,t))}),mxUtils.bind(this,function(b){this.handleError(b)}));else{d=this.editor.graph;l=null;d.getModel().beginUpdate();try{l=d.insertVertex(d.getDefaultParent(),null,"",d.snap(c),d.snap(e),1,1,"text;whiteSpace=wrap;"+(f?"html=1;":""));d.fireEvent(new mxEventObject("textInserted","cells",[l]));"<"==b.charAt(0)&&b.indexOf(">")==b.length-1&&(b=mxUtils.htmlEntities(b));b.length>this.maxTextBytes&&(b=b.substring(0,this.maxTextBytes)+
"...");l.value=b;d.updateCellSize(l);if(0<this.maxTextWidth&&l.geometry.width>this.maxTextWidth){var m=d.getPreferredSizeForCell(l,this.maxTextWidth);l.geometry.width=m.width;l.geometry.height=m.height}Graph.isLink(l.value)&&d.setLinkForCell(l,l.value);l.geometry.width+=d.gridSize;l.geometry.height+=d.gridSize}finally{d.getModel().endUpdate()}return[l]}}return[]};EditorUi.prototype.formatFileSize=function(b){var d=-1;do b/=1024,d++;while(1024<b);return Math.max(b,.1).toFixed(1)+" kB; MB; GB; TB;PB;EB;ZB;YB".split(";")[d]};
@@ -3637,46 +3637,46 @@ this.importFileInputElt){var d=document.createElement("input");d.setAttribute("t
"F",b,d)});window.openBrowserFile=mxUtils.bind(this,function(b,d,c){StorageFile.getFileContent(this,b,d,c)});window.deleteBrowserFile=mxUtils.bind(this,function(b,d,c){StorageFile.deleteFile(this,b,d,c)});if(!c){var e=Editor.useLocalStorage;Editor.useLocalStorage=!b}window.openFile=new OpenFile(mxUtils.bind(this,function(b){this.hideDialog(b)}));window.openFile.setConsumer(mxUtils.bind(this,function(b,d){if(null!=d&&Graph.fileSupport&&/(\.v(dx|sdx?))($|\?)/i.test(d)){var c=new Blob([b],{type:"application/octet-stream"});
this.importVisio(c,mxUtils.bind(this,function(b){this.importXml(b,0,0,!0)}),null,d)}else this.editor.graph.setSelectionCells(this.importXml(b,0,0,!0))}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:360,Editor.useLocalStorage?480:220,!0,!0,function(){window.openFile=null});if(!c){var f=this.dialog,k=f.close;this.dialog.close=mxUtils.bind(this,function(b){Editor.useLocalStorage=e;k.apply(f,arguments);b&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()})}}};
EditorUi.prototype.importZipFile=function(b,c,e){var d=this,g=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?JSZip.loadAsync(b).then(function(g){if(0==Object.keys(g.files).length)e();else{var f=0,k,l=!1;g.forEach(function(b,d){var g=d.name.toLowerCase();"diagram/diagram.xml"==g?(l=!0,d.async("string").then(function(b){0==b.indexOf("<mxfile ")?c(b):e()})):0==g.indexOf("versions/")&&(g=parseInt(g.substr(9)),g>f&&(f=g,k=d))});0<f?k.async("string").then(function(g){!d.isOffline()&&
-(new XMLHttpRequest).upload&&d.isRemoteFileFormat(g,b.name)?d.parseFileData(g,mxUtils.bind(this,function(b){4==b.readyState&&(200<=b.status&&299>=b.status?c(b.responseText):e())}),b.name):e()}):l||e()}},function(b){e(b)}):e()});"undefined"!==typeof JSZip||this.loadingExtensions||this.isOffline(!0)?g():(this.loadingExtensions=!0,mxscript("js/extensions.min.js",g))};EditorUi.prototype.importFile=function(b,c,e,f,l,n,q,t,z,y,F,D){y=null!=y?y:!0;var d=!1,g=null,k=mxUtils.bind(this,function(b){var d=null;
-null!=b&&"<mxlibrary"==b.substring(0,10)?this.loadLibrary(new LocalLibrary(this,b,q)):d=this.importXml(b,e,f,y,null,null!=D?mxEvent.isControlDown(D):null);null!=t&&t(d)});"image"==c.substring(0,5)?(z=!1,"image/png"==c.substring(0,9)&&(c=F?null:this.extractGraphModelFromPng(b),null!=c&&0<c.length&&(g=this.importXml(c,e,f,y,null,null!=D?mxEvent.isControlDown(D):null),z=!0)),z||(c=this.editor.graph,z=b.indexOf(";"),0<z&&(b=b.substring(0,z)+b.substring(b.indexOf(",",z+1))),y&&c.isGridEnabled()&&(e=c.snap(e),
+(new XMLHttpRequest).upload&&d.isRemoteFileFormat(g,b.name)?d.parseFileData(g,mxUtils.bind(this,function(b){4==b.readyState&&(200<=b.status&&299>=b.status?c(b.responseText):e())}),b.name):e()}):l||e()}},function(b){e(b)}):e()});"undefined"!==typeof JSZip||this.loadingExtensions||this.isOffline(!0)?g():(this.loadingExtensions=!0,mxscript("js/extensions.min.js",g))};EditorUi.prototype.importFile=function(b,c,e,f,l,n,q,t,z,y,I,D){y=null!=y?y:!0;var d=!1,g=null,k=mxUtils.bind(this,function(b){var d=null;
+null!=b&&"<mxlibrary"==b.substring(0,10)?this.loadLibrary(new LocalLibrary(this,b,q)):d=this.importXml(b,e,f,y,null,null!=D?mxEvent.isControlDown(D):null);null!=t&&t(d)});"image"==c.substring(0,5)?(z=!1,"image/png"==c.substring(0,9)&&(c=I?null:this.extractGraphModelFromPng(b),null!=c&&0<c.length&&(g=this.importXml(c,e,f,y,null,null!=D?mxEvent.isControlDown(D):null),z=!0)),z||(c=this.editor.graph,z=b.indexOf(";"),0<z&&(b=b.substring(0,z)+b.substring(b.indexOf(",",z+1))),y&&c.isGridEnabled()&&(e=c.snap(e),
f=c.snap(f)),g=[c.insertVertex(null,null,"",e,f,l,n,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+b+";")])):/(\.*<graphml )/.test(b)?(d=!0,this.importGraphML(b,k)):null!=z&&null!=q&&(/(\.v(dx|sdx?))($|\?)/i.test(q)||/(\.vs(x|sx?))($|\?)/i.test(q))?(d=!0,this.importVisio(z,k)):!this.isOffline()&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(b,q)?(d=!0,l=mxUtils.bind(this,function(b){4==b.readyState&&(200<=b.status&&
299>=b.status?k(b.responseText):null!=t&&t(null))}),null!=b?this.parseFileData(b,l,q):this.parseFile(z,l,q)):0==b.indexOf("PK")&&null!=z?(d=!0,this.importZipFile(z,k,mxUtils.bind(this,function(){g=this.insertTextAt(this.validateFileData(b),e,f,!0,null,y);t(g)}))):/(\.v(sd|dx))($|\?)/i.test(q)||/(\.vs(s|x))($|\?)/i.test(q)||(g=this.insertTextAt(this.validateFileData(b),e,f,!0,null,y,null,null!=D?mxEvent.isControlDown(D):null));d||null==t||t(g);return g};EditorUi.prototype.importFiles=function(b,c,
-e,f,l,n,q,t,z,y,F,D,E){f=null!=f?f:this.maxImageSize;y=null!=y?y:this.maxImageBytes;var d=null!=c&&null!=e,g=!0;c=null!=c?c:0;e=null!=e?e:0;var k=!1;if(!mxClient.IS_CHROMEAPP&&null!=b)for(var m=F||this.resampleThreshold,p=0;p<b.length;p++)if("image/"==b[p].type.substring(0,6)&&b[p].size>m){k=!0;break}var v=mxUtils.bind(this,function(){var k=this.editor.graph,m=k.gridSize;l=null!=l?l:mxUtils.bind(this,function(b,c,e,g,f,k,l,m,n){try{return null!=b&&"<mxlibrary"==b.substring(0,10)?(this.spinner.stop(),
-this.loadLibrary(new LocalLibrary(this,b,l)),null):this.importFile(b,c,e,g,f,k,l,m,n,d,D,E)}catch(ua){return this.handleError(ua),null}});n=null!=n?n:mxUtils.bind(this,function(b){k.setSelectionCells(b)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var p=b.length,v=p,u=[],A=mxUtils.bind(this,function(b,d){u[b]=d;if(0==--v){this.spinner.stop();if(null!=t)t(u);else{var c=[];k.getModel().beginUpdate();try{for(var e=0;e<u.length;e++){var g=u[e]();null!=g&&(c=c.concat(g))}}finally{k.getModel().endUpdate()}}n(c)}}),
-z=0;z<p;z++)mxUtils.bind(this,function(d){var n=b[d];if(null!=n){var p=new FileReader;p.onload=mxUtils.bind(this,function(b){if(null==q||q(n))if("image/"==n.type.substring(0,6))if("image/svg"==n.type.substring(0,9)){var p=Graph.clipSvgDataUri(b.target.result),t=p.indexOf(","),v=decodeURIComponent(escape(atob(p.substring(t+1)))),u=mxUtils.parseXml(v),v=u.getElementsByTagName("svg");if(0<v.length){var v=v[0],x=D?null:v.getAttribute("content");null!=x&&"<"!=x.charAt(0)&&"%"!=x.charAt(0)&&(x=unescape(window.atob?
-atob(x):Base64.decode(x,!0)));null!=x&&"%"==x.charAt(0)&&(x=decodeURIComponent(x));null==x||"<mxfile "!==x.substring(0,8)&&"<mxGraphModel "!==x.substring(0,14)?A(d,mxUtils.bind(this,function(){try{if(p.substring(0,t+1),null!=u){var b=u.getElementsByTagName("svg");if(0<b.length){var g=b[0],q=g.getAttribute("width"),v=g.getAttribute("height"),q=null!=q&&"%"!=q.charAt(q.length-1)?parseFloat(q):NaN,v=null!=v&&"%"!=v.charAt(v.length-1)?parseFloat(v):NaN,y=g.getAttribute("viewBox");if(null==y||0==y.length)g.setAttribute("viewBox",
-"0 0 "+q+" "+v);else if(isNaN(q)||isNaN(v)){var x=y.split(" ");3<x.length&&(q=parseFloat(x[2]),v=parseFloat(x[3]))}p=Editor.createSvgDataUri(mxUtils.getXml(g));var A=Math.min(1,Math.min(f/Math.max(1,q)),f/Math.max(1,v)),z=l(p,n.type,c+d*m,e+d*m,Math.max(1,Math.round(q*A)),Math.max(1,Math.round(v*A)),n.name);if(isNaN(q)||isNaN(v)){var K=new Image;K.onload=mxUtils.bind(this,function(){q=Math.max(1,K.width);v=Math.max(1,K.height);z[0].geometry.width=q;z[0].geometry.height=v;g.setAttribute("viewBox",
-"0 0 "+q+" "+v);p=Editor.createSvgDataUri(mxUtils.getXml(g));var b=p.indexOf(";");0<b&&(p=p.substring(0,b)+p.substring(p.indexOf(",",b+1)));k.setCellStyles("image",p,[z[0]])});K.src=Editor.createSvgDataUri(mxUtils.getXml(g))}return z}}}catch(qa){}return null})):A(d,mxUtils.bind(this,function(){return l(x,"text/xml",c+d*m,e+d*m,0,0,n.name)}))}else A(d,mxUtils.bind(this,function(){return null}))}else{v=!1;if("image/png"==n.type){var z=D?null:this.extractGraphModelFromPng(b.target.result);if(null!=z&&
-0<z.length){var K=new Image;K.src=b.target.result;A(d,mxUtils.bind(this,function(){return l(z,"text/xml",c+d*m,e+d*m,K.width,K.height,n.name)}));v=!0}}v||(mxClient.IS_CHROMEAPP?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("dragAndDropNotSupported"),mxResources.get("cancel"),mxUtils.bind(this,function(){}),null,mxResources.get("ok"),mxUtils.bind(this,function(){this.actions.get("import").funct()}))):this.loadImage(b.target.result,mxUtils.bind(this,function(k){this.resizeImage(k,
-b.target.result,mxUtils.bind(this,function(b,k,p){A(d,mxUtils.bind(this,function(){if(null!=b&&b.length<y){var q=g&&this.isResampleImageSize(n.size,F)?Math.min(1,Math.min(f/k,f/p)):1;return l(b,n.type,c+d*m,e+d*m,Math.round(k*q),Math.round(p*q),n.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),g,f,F,n.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else p=b.target.result,l(p,n.type,c+d*m,e+d*m,240,160,n.name,
-function(b){A(d,function(){return b})},n)});/(\.v(dx|sdx?))($|\?)/i.test(n.name)||/(\.vs(x|sx?))($|\?)/i.test(n.name)?l(null,n.type,c+d*m,e+d*m,240,160,n.name,function(b){A(d,function(){return b})},n):"image"==n.type.substring(0,5)||"application/pdf"==n.type?p.readAsDataURL(n):p.readAsText(n)}})(z)});if(k){k=[];for(p=0;p<b.length;p++)k.push(b[p]);b=k;this.confirmImageResize(function(b){g=b;v()},z)}else v()};EditorUi.prototype.confirmImageResize=function(b,c){c=null!=c?c:!1;var d=null!=this.spinner&&
+e,f,l,n,q,t,z,y,I,D,F){f=null!=f?f:this.maxImageSize;y=null!=y?y:this.maxImageBytes;var d=null!=c&&null!=e,g=!0;c=null!=c?c:0;e=null!=e?e:0;var k=!1;if(!mxClient.IS_CHROMEAPP&&null!=b)for(var m=I||this.resampleThreshold,p=0;p<b.length;p++)if("image/"==b[p].type.substring(0,6)&&b[p].size>m){k=!0;break}var u=mxUtils.bind(this,function(){var k=this.editor.graph,m=k.gridSize;l=null!=l?l:mxUtils.bind(this,function(b,c,e,g,f,k,l,m,n){try{return null!=b&&"<mxlibrary"==b.substring(0,10)?(this.spinner.stop(),
+this.loadLibrary(new LocalLibrary(this,b,l)),null):this.importFile(b,c,e,g,f,k,l,m,n,d,D,F)}catch(qa){return this.handleError(qa),null}});n=null!=n?n:mxUtils.bind(this,function(b){k.setSelectionCells(b)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var p=b.length,u=p,v=[],z=mxUtils.bind(this,function(b,d){v[b]=d;if(0==--u){this.spinner.stop();if(null!=t)t(v);else{var c=[];k.getModel().beginUpdate();try{for(var e=0;e<v.length;e++){var g=v[e]();null!=g&&(c=c.concat(g))}}finally{k.getModel().endUpdate()}}n(c)}}),
+B=0;B<p;B++)mxUtils.bind(this,function(d){var n=b[d];if(null!=n){var p=new FileReader;p.onload=mxUtils.bind(this,function(b){if(null==q||q(n))if("image/"==n.type.substring(0,6))if("image/svg"==n.type.substring(0,9)){var p=Graph.clipSvgDataUri(b.target.result),t=p.indexOf(","),u=decodeURIComponent(escape(atob(p.substring(t+1)))),v=mxUtils.parseXml(u),u=v.getElementsByTagName("svg");if(0<u.length){var u=u[0],x=D?null:u.getAttribute("content");null!=x&&"<"!=x.charAt(0)&&"%"!=x.charAt(0)&&(x=unescape(window.atob?
+atob(x):Base64.decode(x,!0)));null!=x&&"%"==x.charAt(0)&&(x=decodeURIComponent(x));null==x||"<mxfile "!==x.substring(0,8)&&"<mxGraphModel "!==x.substring(0,14)?z(d,mxUtils.bind(this,function(){try{if(p.substring(0,t+1),null!=v){var b=v.getElementsByTagName("svg");if(0<b.length){var g=b[0],q=g.getAttribute("width"),u=g.getAttribute("height"),q=null!=q&&"%"!=q.charAt(q.length-1)?parseFloat(q):NaN,u=null!=u&&"%"!=u.charAt(u.length-1)?parseFloat(u):NaN,y=g.getAttribute("viewBox");if(null==y||0==y.length)g.setAttribute("viewBox",
+"0 0 "+q+" "+u);else if(isNaN(q)||isNaN(u)){var x=y.split(" ");3<x.length&&(q=parseFloat(x[2]),u=parseFloat(x[3]))}p=Editor.createSvgDataUri(mxUtils.getXml(g));var z=Math.min(1,Math.min(f/Math.max(1,q)),f/Math.max(1,u)),B=l(p,n.type,c+d*m,e+d*m,Math.max(1,Math.round(q*z)),Math.max(1,Math.round(u*z)),n.name);if(isNaN(q)||isNaN(u)){var M=new Image;M.onload=mxUtils.bind(this,function(){q=Math.max(1,M.width);u=Math.max(1,M.height);B[0].geometry.width=q;B[0].geometry.height=u;g.setAttribute("viewBox",
+"0 0 "+q+" "+u);p=Editor.createSvgDataUri(mxUtils.getXml(g));var b=p.indexOf(";");0<b&&(p=p.substring(0,b)+p.substring(p.indexOf(",",b+1)));k.setCellStyles("image",p,[B[0]])});M.src=Editor.createSvgDataUri(mxUtils.getXml(g))}return B}}}catch(S){}return null})):z(d,mxUtils.bind(this,function(){return l(x,"text/xml",c+d*m,e+d*m,0,0,n.name)}))}else z(d,mxUtils.bind(this,function(){return null}))}else{u=!1;if("image/png"==n.type){var B=D?null:this.extractGraphModelFromPng(b.target.result);if(null!=B&&
+0<B.length){var M=new Image;M.src=b.target.result;z(d,mxUtils.bind(this,function(){return l(B,"text/xml",c+d*m,e+d*m,M.width,M.height,n.name)}));u=!0}}u||(mxClient.IS_CHROMEAPP?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("dragAndDropNotSupported"),mxResources.get("cancel"),mxUtils.bind(this,function(){}),null,mxResources.get("ok"),mxUtils.bind(this,function(){this.actions.get("import").funct()}))):this.loadImage(b.target.result,mxUtils.bind(this,function(k){this.resizeImage(k,
+b.target.result,mxUtils.bind(this,function(b,k,p){z(d,mxUtils.bind(this,function(){if(null!=b&&b.length<y){var q=g&&this.isResampleImageSize(n.size,I)?Math.min(1,Math.min(f/k,f/p)):1;return l(b,n.type,c+d*m,e+d*m,Math.round(k*q),Math.round(p*q),n.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),g,f,I,n.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else p=b.target.result,l(p,n.type,c+d*m,e+d*m,240,160,n.name,
+function(b){z(d,function(){return b})},n)});/(\.v(dx|sdx?))($|\?)/i.test(n.name)||/(\.vs(x|sx?))($|\?)/i.test(n.name)?l(null,n.type,c+d*m,e+d*m,240,160,n.name,function(b){z(d,function(){return b})},n):"image"==n.type.substring(0,5)||"application/pdf"==n.type?p.readAsDataURL(n):p.readAsText(n)}})(B)});if(k){k=[];for(p=0;p<b.length;p++)k.push(b[p]);b=k;this.confirmImageResize(function(b){g=b;u()},z)}else u()};EditorUi.prototype.confirmImageResize=function(b,c){c=null!=c?c:!1;var d=null!=this.spinner&&
null!=this.spinner.pause?this.spinner.pause():function(){},e=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,f=function(e,g){if(e||c)mxSettings.setResizeImages(e?g:null),mxSettings.save();d();b(g)};null==e||c?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(b){f(b,!0)},function(b){f(b,!1)},mxResources.get("resize"),mxResources.get("actualSize"),'<img style="margin-top:8px;" src="'+Editor.loResImage+'"/>','<img style="margin-top:8px;" src="'+
Editor.hiResImage+'"/>',isLocalStorage||mxClient.IS_CHROMEAPP)).container,340,isLocalStorage||mxClient.IS_CHROMEAPP?220:200,!0,!0):f(!1,e)};EditorUi.prototype.parseFile=function(b,c,e){e=null!=e?e:b.name;var d=new FileReader;d.onload=mxUtils.bind(this,function(){this.parseFileData(d.result,c,e)});d.readAsText(b)};EditorUi.prototype.parseFileData=function(b,c,e){var d=new XMLHttpRequest;d.open("POST",OPEN_URL);d.setRequestHeader("Content-Type","application/x-www-form-urlencoded");d.onreadystatechange=
function(){c(d)};d.send("format=xml&filename="+encodeURIComponent(e)+"&data="+encodeURIComponent(b));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(m){}};EditorUi.prototype.isResampleImageSize=function(b,c){c=null!=c?c:this.resampleThreshold;return b>c};EditorUi.prototype.resizeImage=function(b,c,e,f,l,n,q){l=null!=l?l:this.maxImageSize;var d=Math.max(1,b.width),g=Math.max(1,b.height);if(f&&this.isResampleImageSize(null!=q?q:c.length,n))try{var k=Math.max(d/
-l,g/l);if(1<k){var m=Math.round(d/k),p=Math.round(g/k),v=document.createElement("canvas");v.width=m;v.height=p;v.getContext("2d").drawImage(b,0,0,m,p);var u=v.toDataURL();if(u.length<c.length){var N=document.createElement("canvas");N.width=m;N.height=p;var A=N.toDataURL();u!==A&&(c=u,d=m,g=p)}}}catch(G){}e(c,d,g)};EditorUi.prototype.extractGraphModelFromPng=function(b){return Editor.extractGraphModelFromPng(b)};EditorUi.prototype.loadImage=function(b,c,e){try{var d=new Image;d.onload=function(){d.width=
+l,g/l);if(1<k){var m=Math.round(d/k),p=Math.round(g/k),u=document.createElement("canvas");u.width=m;u.height=p;u.getContext("2d").drawImage(b,0,0,m,p);var v=u.toDataURL();if(v.length<c.length){var O=document.createElement("canvas");O.width=m;O.height=p;var B=O.toDataURL();v!==B&&(c=v,d=m,g=p)}}}catch(G){}e(c,d,g)};EditorUi.prototype.extractGraphModelFromPng=function(b){return Editor.extractGraphModelFromPng(b)};EditorUi.prototype.loadImage=function(b,c,e){try{var d=new Image;d.onload=function(){d.width=
0<d.width?d.width:120;d.height=0<d.height?d.height:120;c(d)};null!=e&&(d.onerror=e);d.src=b}catch(m){if(null!=e)e(m);else throw m;}};EditorUi.prototype.getDefaultSketchMode=function(){var b="ac.draw.io"==window.location.host?"1":"0";return"0"!=(null!=urlParams.rough?urlParams.rough:b)};var n=EditorUi.prototype.init;EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=mxStencilRegistry.allowEval&&!this.isOfflineApp();this.isSettingsEnabled()&&("1"==urlParams.sketch&&this.doSetSketchMode(null!=
mxSettings.settings.sketchMode&&null==urlParams.rough?mxSettings.settings.sketchMode:this.getDefaultSketchMode()),null!=mxSettings.settings.sidebarTitles&&(Sidebar.prototype.sidebarTitles=mxSettings.settings.sidebarTitles),this.formatWidth=mxSettings.getFormatWidth());var b=this,c=this.editor.graph;Editor.isDarkMode()&&(c.view.defaultGridColor=mxGraphView.prototype.defaultDarkGridColor);Graph.touchStyle&&(c.panningHandler.isPanningTrigger=function(b){var d=b.getEvent();return null==b.getState()&&
!mxEvent.isMouseEvent(d)&&!c.freehand.isDrawing()||mxEvent.isPopupTrigger(d)&&(null==b.getState()||mxEvent.isControlDown(d)||mxEvent.isShiftDown(d))});c.cellEditor.editPlantUmlData=function(d,e,g){var f=JSON.parse(g);e=new TextareaDialog(b,mxResources.get("plantUml")+":",f.data,function(e){null!=e&&b.spinner.spin(document.body,mxResources.get("inserting"))&&b.generatePlantUmlImage(e,f.format,function(g,k,l){b.spinner.stop();c.getModel().beginUpdate();try{if("txt"==f.format)c.labelChanged(d,"<pre>"+
g+"</pre>"),c.updateCellSize(d,!0);else{c.setCellStyles("image",b.convertDataUri(g),[d]);var m=c.model.getGeometry(d);null!=m&&(m=m.clone(),m.width=k,m.height=l,c.cellsResized([d],[m],!1))}c.setAttributeForCell(d,"plantUmlData",JSON.stringify({data:e,format:f.format}))}finally{c.getModel().endUpdate()}},function(d){b.handleError(d)})},null,null,400,220);b.showDialog(e.container,420,300,!0,!0);e.init()};c.cellEditor.editMermaidData=function(d,e,g){var f=JSON.parse(g);e=new TextareaDialog(b,mxResources.get("mermaid")+
":",f.data,function(e){null!=e&&b.spinner.spin(document.body,mxResources.get("inserting"))&&b.generateMermaidImage(e,f.config,function(g,k,l){b.spinner.stop();c.getModel().beginUpdate();try{c.setCellStyles("image",g,[d]);var m=c.model.getGeometry(d);null!=m&&(m=m.clone(),m.width=Math.max(m.width,k),m.height=Math.max(m.height,l),c.cellsResized([d],[m],!1));c.setAttributeForCell(d,"mermaidData",JSON.stringify({data:e,config:f.config},null,2))}finally{c.getModel().endUpdate()}},function(d){b.handleError(d)})},
-null,null,400,220);b.showDialog(e.container,420,300,!0,!0);e.init()};var e=c.cellEditor.startEditing;c.cellEditor.startEditing=function(d,g){try{var f=this.graph.getAttributeForCell(d,"plantUmlData");if(null!=f)this.editPlantUmlData(d,g,f);else if(f=this.graph.getAttributeForCell(d,"mermaidData"),null!=f)this.editMermaidData(d,g,f);else{var k=c.getCellStyle(d);"1"==mxUtils.getValue(k,"metaEdit","0")?b.showDataDialog(d):e.apply(this,arguments)}}catch(K){b.handleError(K)}};c.getLinkTitle=function(d){return b.getLinkTitle(d)};
+null,null,400,220);b.showDialog(e.container,420,300,!0,!0);e.init()};var e=c.cellEditor.startEditing;c.cellEditor.startEditing=function(d,g){try{var f=this.graph.getAttributeForCell(d,"plantUmlData");if(null!=f)this.editPlantUmlData(d,g,f);else if(f=this.graph.getAttributeForCell(d,"mermaidData"),null!=f)this.editMermaidData(d,g,f);else{var k=c.getCellStyle(d);"1"==mxUtils.getValue(k,"metaEdit","0")?b.showDataDialog(d):e.apply(this,arguments)}}catch(M){b.handleError(M)}};c.getLinkTitle=function(d){return b.getLinkTitle(d)};
c.customLinkClicked=function(d){var c=!1;try{b.handleCustomLink(d),c=!0}catch(L){b.handleError(L)}return c};var f=c.parseBackgroundImage;c.parseBackgroundImage=function(b){var d=f.apply(this,arguments);null!=d&&null!=d.src&&Graph.isPageLink(d.src)&&(d={originalSrc:d.src});return d};var l=c.setBackgroundImage;c.setBackgroundImage=function(d){null!=d&&null!=d.originalSrc&&(d=b.createImageForPageLink(d.originalSrc,b.currentPage,this));l.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,
function(){c.refreshBackgroundImage()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(){c.refreshBackgroundImage()}));this.editor.addListener("pagesPatched",mxUtils.bind(this,function(b,d){var e=null!=c.backgroundImage?c.backgroundImage.originalSrc:null;if(null!=e){var g=e.indexOf(",");if(0<g)for(var e=e.substring(g+1),g=d.getProperty("patches"),f=0;f<g.length;f++)if(null!=g[f][EditorUi.DIFF_UPDATE]&&null!=g[f][EditorUi.DIFF_UPDATE][e]){c.refreshBackgroundImage();break}}}));var q=
c.getBackgroundImageObject;c.getBackgroundImageObject=function(d,c){var e=q.apply(this,arguments);if(null!=e&&null!=e.originalSrc)if(!c)e={src:e.originalSrc};else if(c&&null!=this.themes&&"darkTheme"==this.defaultThemeName){var g=this.stylesheet,f=this.shapeForegroundColor,k=this.shapeBackgroundColor;this.stylesheet=this.getDefaultStylesheet();this.shapeBackgroundColor="#ffffff";this.shapeForegroundColor="#000000";e=b.createImageForPageLink(e.originalSrc);this.shapeBackgroundColor=k;this.shapeForegroundColor=
-f;this.stylesheet=g}return e};var u=this.clearDefaultStyle;this.clearDefaultStyle=function(){u.apply(this,arguments)};this.isOffline()||"undefined"===typeof window.EditDataDialog||(EditDataDialog.placeholderHelpLink="https://www.diagrams.net/doc/faq/predefined-placeholders");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var t=b.editor.getEditBlankUrl;this.editor.getEditBlankUrl=
+f;this.stylesheet=g}return e};var v=this.clearDefaultStyle;this.clearDefaultStyle=function(){v.apply(this,arguments)};this.isOffline()||"undefined"===typeof window.EditDataDialog||(EditDataDialog.placeholderHelpLink="https://www.diagrams.net/doc/faq/predefined-placeholders");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var t=b.editor.getEditBlankUrl;this.editor.getEditBlankUrl=
function(b){b=null!=b?b:"";"1"==urlParams.dev&&(b+=(0<b.length?"&":"?")+"dev=1");return t.apply(this,arguments)};var z=c.addClickHandler;c.addClickHandler=function(b,d,e){var g=d;d=function(b,d){if(null==d){var e=mxEvent.getSource(b);"a"==e.nodeName.toLowerCase()&&(d=e.getAttribute("href"))}null!=d&&c.isCustomLink(d)&&(mxEvent.isTouchEvent(b)||!mxEvent.isPopupTrigger(b))&&c.customLinkClicked(d)&&mxEvent.consume(b);null!=g&&g(b,d)};z.call(this,b,d,e)};n.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(c.view.canvas.ownerSVGElement,
-null,!0);if(null!=this.menus){var y=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=function(d,c,e){b.editor.graph.isSelectionEmpty()?y.apply(this,arguments):b.menus.addMenuItems(d,"delete - cut copy copyAsImage - duplicate".split(" "),null,e)}}b.actions.get("print").funct=function(){b.showDialog((new PrintDialog(b)).container,360,null!=b.pages&&1<b.pages.length?450:370,!0,!0)};this.defaultFilename=mxResources.get("untitledDiagram");var F=c.getExportVariables;c.getExportVariables=
-function(){var d=F.apply(this,arguments),c=b.getCurrentFile();null!=c&&(d.filename=c.getTitle());d.pagecount=null!=b.pages?b.pages.length:1;d.page=null!=b.currentPage?b.currentPage.getName():"";d.pagenumber=null!=b.pages&&null!=b.currentPage?mxUtils.indexOf(b.pages,b.currentPage)+1:1;return d};var D=c.getGlobalVariable;c.getGlobalVariable=function(d){var c=b.getCurrentFile();return"filename"==d&&null!=c?c.getTitle():"page"==d&&null!=b.currentPage?b.currentPage.getName():"pagenumber"==d?null!=b.currentPage&&
-null!=b.pages?mxUtils.indexOf(b.pages,b.currentPage)+1:1:"pagecount"==d?null!=b.pages?b.pages.length:1:D.apply(this,arguments)};var E=c.labelLinkClicked;c.labelLinkClicked=function(b,d,e){var g=d.getAttribute("href");if(null==g||!c.isCustomLink(g)||!mxEvent.isTouchEvent(e)&&mxEvent.isPopupTrigger(e))E.apply(this,arguments);else{if(!c.isEnabled()||null!=b&&c.isCellLocked(b.cell))c.customLinkClicked(g),c.getRubberband().reset();mxEvent.consume(e)}};this.editor.getOrCreateFilename=function(){var d=b.defaultFilename,
-c=b.getCurrentFile();null!=c&&(d=null!=c.getTitle()?c.getTitle():d);return d};var H=this.actions.get("print");H.setEnabled(!mxClient.IS_IOS||!navigator.standalone);H.visible=H.isEnabled();if(!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(70,!0,"findReplace"),this.keyHandler.bindAction(67,!0,"copyStyle",!0),this.keyHandler.bindAction(86,!0,"pasteStyle",!0),this.keyHandler.bindAction(77,!0,"editGeometry",!0),this.keyHandler.bindAction(88,!0,"insertText",!0),this.keyHandler.bindAction(75,
+null,!0);if(null!=this.menus){var y=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=function(d,c,e){b.editor.graph.isSelectionEmpty()?y.apply(this,arguments):b.menus.addMenuItems(d,"delete - cut copy copyAsImage - duplicate".split(" "),null,e)}}b.actions.get("print").funct=function(){b.showDialog((new PrintDialog(b)).container,360,null!=b.pages&&1<b.pages.length?450:370,!0,!0)};this.defaultFilename=mxResources.get("untitledDiagram");var I=c.getExportVariables;c.getExportVariables=
+function(){var d=I.apply(this,arguments),c=b.getCurrentFile();null!=c&&(d.filename=c.getTitle());d.pagecount=null!=b.pages?b.pages.length:1;d.page=null!=b.currentPage?b.currentPage.getName():"";d.pagenumber=null!=b.pages&&null!=b.currentPage?mxUtils.indexOf(b.pages,b.currentPage)+1:1;return d};var D=c.getGlobalVariable;c.getGlobalVariable=function(d){var c=b.getCurrentFile();return"filename"==d&&null!=c?c.getTitle():"page"==d&&null!=b.currentPage?b.currentPage.getName():"pagenumber"==d?null!=b.currentPage&&
+null!=b.pages?mxUtils.indexOf(b.pages,b.currentPage)+1:1:"pagecount"==d?null!=b.pages?b.pages.length:1:D.apply(this,arguments)};var F=c.labelLinkClicked;c.labelLinkClicked=function(b,d,e){var g=d.getAttribute("href");if(null==g||!c.isCustomLink(g)||!mxEvent.isTouchEvent(e)&&mxEvent.isPopupTrigger(e))F.apply(this,arguments);else{if(!c.isEnabled()||null!=b&&c.isCellLocked(b.cell))c.customLinkClicked(g),c.getRubberband().reset();mxEvent.consume(e)}};this.editor.getOrCreateFilename=function(){var d=b.defaultFilename,
+c=b.getCurrentFile();null!=c&&(d=null!=c.getTitle()?c.getTitle():d);return d};var E=this.actions.get("print");E.setEnabled(!mxClient.IS_IOS||!navigator.standalone);E.visible=E.isEnabled();if(!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(70,!0,"findReplace"),this.keyHandler.bindAction(67,!0,"copyStyle",!0),this.keyHandler.bindAction(86,!0,"pasteStyle",!0),this.keyHandler.bindAction(77,!0,"editGeometry",!0),this.keyHandler.bindAction(88,!0,"insertText",!0),this.keyHandler.bindAction(75,
!0,"insertRectangle"),this.keyHandler.bindAction(75,!0,"insertEllipse",!0),this.altShiftActions[83]="synchronize",this.installImagePasteHandler(),this.installNativeClipboardHandler();this.spinner=this.createSpinner(null,null,24);Graph.fileSupport&&c.addListener(mxEvent.EDITING_STARTED,mxUtils.bind(this,function(b){var d=c.cellEditor.text2,e=null;null!=d&&(mxEvent.addListener(d,"dragleave",function(b){null!=e&&(e.parentNode.removeChild(e),e=null);b.stopPropagation();b.preventDefault()}),mxEvent.addListener(d,
"dragover",mxUtils.bind(this,function(b){null==e&&(!mxClient.IS_IE||10<document.documentMode)&&(e=this.highlightElement(d));b.stopPropagation();b.preventDefault()})),mxEvent.addListener(d,"drop",mxUtils.bind(this,function(b){null!=e&&(e.parentNode.removeChild(e),e=null);if(0<b.dataTransfer.files.length)this.importFiles(b.dataTransfer.files,0,0,this.maxImageSize,function(b,d,e,g,f,k){c.insertImage(b,f,k)},function(){},function(b){return"image/"==b.type.substring(0,6)},function(b){for(var d=0;d<b.length;d++)b[d]()},
mxEvent.isControlDown(b));else if(0<=mxUtils.indexOf(b.dataTransfer.types,"text/uri-list")){var d=b.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(d)?this.loadImage(decodeURIComponent(d),mxUtils.bind(this,function(b){var e=Math.max(1,b.width);b=Math.max(1,b.height);var g=this.maxImageSize,g=Math.min(1,Math.min(g/Math.max(1,e)),g/Math.max(1,b));c.insertImage(decodeURIComponent(d),e*g,b*g)})):document.execCommand("insertHTML",!1,b.dataTransfer.getData("text/plain"))}else 0<=
-mxUtils.indexOf(b.dataTransfer.types,"text/html")?document.execCommand("insertHTML",!1,b.dataTransfer.getData("text/html")):0<=mxUtils.indexOf(b.dataTransfer.types,"text/plain")&&document.execCommand("insertHTML",!1,b.dataTransfer.getData("text/plain"));b.stopPropagation();b.preventDefault()})))}));this.isSettingsEnabled()&&(H=this.editor.graph.view,H.setUnit(mxSettings.getUnit()),H.addListener("unitChanged",function(b,d){mxSettings.setUnit(d.getProperty("unit"));mxSettings.save()}),this.ruler=!this.canvasSupported||
-9==document.documentMode||"1"!=urlParams.ruler&&!mxSettings.isRulerOn()||this.editor.isChromelessView()&&!this.editor.editable?null:new mxDualRuler(this,H.unit),this.refresh());if("1"==urlParams.styledev){H=document.getElementById("geFooter");null!=H&&(this.styleInput=document.createElement("input"),this.styleInput.setAttribute("type","text"),this.styleInput.style.position="absolute",this.styleInput.style.top="14px",this.styleInput.style.left="2px",this.styleInput.style.width="98%",this.styleInput.style.visibility=
-"hidden",this.styleInput.style.opacity="0.9",mxEvent.addListener(this.styleInput,"change",mxUtils.bind(this,function(){this.editor.graph.getModel().setStyle(this.editor.graph.getSelectionCell(),this.styleInput.value)})),H.appendChild(this.styleInput),this.editor.graph.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(b,d){if(0<this.editor.graph.getSelectionCount()){var c=this.editor.graph.getSelectionCell(),c=this.editor.graph.getModel().getStyle(c);this.styleInput.value=c||
-"";this.styleInput.style.visibility="visible"}else this.styleInput.style.visibility="hidden"})));var N=this.isSelectionAllowed;this.isSelectionAllowed=function(b){return mxEvent.getSource(b)==this.styleInput?!0:N.apply(this,arguments)}}H=document.getElementById("geInfo");null!=H&&H.parentNode.removeChild(H);if(Graph.fileSupport&&(!this.editor.chromeless||this.editor.editable)){var A=null;mxEvent.addListener(c.container,"dragleave",function(b){c.isEnabled()&&(null!=A&&(A.parentNode.removeChild(A),
-A=null),b.stopPropagation(),b.preventDefault())});mxEvent.addListener(c.container,"dragover",mxUtils.bind(this,function(b){null==A&&(!mxClient.IS_IE||10<document.documentMode)&&(A=this.highlightElement(c.container));null!=this.sidebar&&this.sidebar.hideTooltip();b.stopPropagation();b.preventDefault()}));mxEvent.addListener(c.container,"drop",mxUtils.bind(this,function(b){null!=A&&(A.parentNode.removeChild(A),A=null);if(c.isEnabled()){var d=mxUtils.convertPoint(c.container,mxEvent.getClientX(b),mxEvent.getClientY(b)),
+mxUtils.indexOf(b.dataTransfer.types,"text/html")?document.execCommand("insertHTML",!1,b.dataTransfer.getData("text/html")):0<=mxUtils.indexOf(b.dataTransfer.types,"text/plain")&&document.execCommand("insertHTML",!1,b.dataTransfer.getData("text/plain"));b.stopPropagation();b.preventDefault()})))}));this.isSettingsEnabled()&&(E=this.editor.graph.view,E.setUnit(mxSettings.getUnit()),E.addListener("unitChanged",function(b,d){mxSettings.setUnit(d.getProperty("unit"));mxSettings.save()}),this.ruler=!this.canvasSupported||
+9==document.documentMode||"1"!=urlParams.ruler&&!mxSettings.isRulerOn()||this.editor.isChromelessView()&&!this.editor.editable?null:new mxDualRuler(this,E.unit),this.refresh());if("1"==urlParams.styledev){E=document.getElementById("geFooter");null!=E&&(this.styleInput=document.createElement("input"),this.styleInput.setAttribute("type","text"),this.styleInput.style.position="absolute",this.styleInput.style.top="14px",this.styleInput.style.left="2px",this.styleInput.style.width="98%",this.styleInput.style.visibility=
+"hidden",this.styleInput.style.opacity="0.9",mxEvent.addListener(this.styleInput,"change",mxUtils.bind(this,function(){this.editor.graph.getModel().setStyle(this.editor.graph.getSelectionCell(),this.styleInput.value)})),E.appendChild(this.styleInput),this.editor.graph.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(b,d){if(0<this.editor.graph.getSelectionCount()){var c=this.editor.graph.getSelectionCell(),c=this.editor.graph.getModel().getStyle(c);this.styleInput.value=c||
+"";this.styleInput.style.visibility="visible"}else this.styleInput.style.visibility="hidden"})));var O=this.isSelectionAllowed;this.isSelectionAllowed=function(b){return mxEvent.getSource(b)==this.styleInput?!0:O.apply(this,arguments)}}E=document.getElementById("geInfo");null!=E&&E.parentNode.removeChild(E);if(Graph.fileSupport&&(!this.editor.chromeless||this.editor.editable)){var B=null;mxEvent.addListener(c.container,"dragleave",function(b){c.isEnabled()&&(null!=B&&(B.parentNode.removeChild(B),
+B=null),b.stopPropagation(),b.preventDefault())});mxEvent.addListener(c.container,"dragover",mxUtils.bind(this,function(b){null==B&&(!mxClient.IS_IE||10<document.documentMode)&&(B=this.highlightElement(c.container));null!=this.sidebar&&this.sidebar.hideTooltip();b.stopPropagation();b.preventDefault()}));mxEvent.addListener(c.container,"drop",mxUtils.bind(this,function(b){null!=B&&(B.parentNode.removeChild(B),B=null);if(c.isEnabled()){var d=mxUtils.convertPoint(c.container,mxEvent.getClientX(b),mxEvent.getClientY(b)),
e=c.view.translate,g=c.view.scale,f=d.x/g-e.x,k=d.y/g-e.y;if(0<b.dataTransfer.files.length)mxEvent.isShiftDown(b)?this.openFiles(b.dataTransfer.files,!0):(mxEvent.isAltDown(b)&&(k=f=null),this.importFiles(b.dataTransfer.files,f,k,this.maxImageSize,null,null,null,null,mxEvent.isControlDown(b),null,null,mxEvent.isShiftDown(b),b));else{mxEvent.isAltDown(b)&&(k=f=0);var l=0<=mxUtils.indexOf(b.dataTransfer.types,"text/uri-list")?b.dataTransfer.getData("text/uri-list"):null,d=this.extractGraphModelFromEvent(b,
null!=this.pages);if(null!=d)c.setSelectionCells(this.importXml(d,f,k,!0));else if(0<=mxUtils.indexOf(b.dataTransfer.types,"text/html")){var m=b.dataTransfer.getData("text/html"),d=document.createElement("div");d.innerHTML=c.sanitizeHtml(m);var n=null,e=d.getElementsByTagName("img");null!=e&&1==e.length?(m=e[0].getAttribute("src"),null==m&&(m=e[0].getAttribute("srcset")),/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(m)||(n=!0)):(e=d.getElementsByTagName("a"),null!=e&&1==e.length?m=e[0].getAttribute("href"):
(d=d.getElementsByTagName("pre"),null!=d&&1==d.length&&(m=mxUtils.getTextContent(d[0]))));var p=!0,q=mxUtils.bind(this,function(){c.setSelectionCells(this.insertTextAt(m,f,k,!0,n,null,p,mxEvent.isControlDown(b)))});n&&null!=m&&m.length>this.resampleThreshold?this.confirmImageResize(function(b){p=b;q()},mxEvent.isControlDown(b)):q()}else null!=l&&/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(l)?this.loadImage(decodeURIComponent(l),mxUtils.bind(this,function(b){var d=Math.max(1,b.width);b=Math.max(1,b.height);
@@ -3686,7 +3686,7 @@ k[index];if("file"===l.kind){if(b.isEditing())this.importFiles([l.getAsFile()],0
"&nbsp;";e.focus();document.execCommand("selectAll",!1,null)},0)}var c=this.editor.graph,e=document.createElement("div");e.setAttribute("autocomplete","off");e.setAttribute("autocorrect","off");e.setAttribute("autocapitalize","off");e.setAttribute("spellcheck","false");e.style.textRendering="optimizeSpeed";e.style.fontFamily="monospace";e.style.wordBreak="break-all";e.style.background="transparent";e.style.color="transparent";e.style.position="absolute";e.style.whiteSpace="nowrap";e.style.overflow=
"hidden";e.style.display="block";e.style.fontSize="1";e.style.zIndex="-1";e.style.resize="none";e.style.outline="none";e.style.width="1px";e.style.height="1px";mxUtils.setOpacity(e,0);e.contentEditable=!0;e.innerHTML="&nbsp;";var f=!1;this.keyHandler.bindControlKey(88,null);this.keyHandler.bindControlKey(67,null);this.keyHandler.bindControlKey(86,null);mxEvent.addListener(document,"keydown",mxUtils.bind(this,function(b){var d=mxEvent.getSource(b);null==c.container||!c.isEnabled()||c.isMouseDown||
c.isEditing()||null!=this.dialog||"INPUT"==d.nodeName||"TEXTAREA"==d.nodeName||224!=b.keyCode&&(mxClient.IS_MAC||17!=b.keyCode)&&(!mxClient.IS_MAC||91!=b.keyCode&&93!=b.keyCode)||f||(e.style.left=c.container.scrollLeft+10+"px",e.style.top=c.container.scrollTop+10+"px",c.container.appendChild(e),f=!0,e.focus(),document.execCommand("selectAll",!1,null))}));mxEvent.addListener(document,"keyup",mxUtils.bind(this,function(b){var d=b.keyCode;window.setTimeout(mxUtils.bind(this,function(){!f||224!=d&&17!=
-d&&91!=d&&93!=d||(f=!1,c.isEditing()||null!=this.dialog||null==c.container||c.container.focus(),e.parentNode.removeChild(e),null==this.dialog&&mxUtils.clearSelection())}),0)}));mxEvent.addListener(e,"copy",mxUtils.bind(this,function(d){if(c.isEnabled())try{mxClipboard.copy(c),this.copyCells(e),b()}catch(u){this.handleError(u)}}));mxEvent.addListener(e,"cut",mxUtils.bind(this,function(d){if(c.isEnabled())try{mxClipboard.copy(c),this.copyCells(e,!0),b()}catch(u){this.handleError(u)}}));mxEvent.addListener(e,
+d&&91!=d&&93!=d||(f=!1,c.isEditing()||null!=this.dialog||null==c.container||c.container.focus(),e.parentNode.removeChild(e),null==this.dialog&&mxUtils.clearSelection())}),0)}));mxEvent.addListener(e,"copy",mxUtils.bind(this,function(d){if(c.isEnabled())try{mxClipboard.copy(c),this.copyCells(e),b()}catch(v){this.handleError(v)}}));mxEvent.addListener(e,"cut",mxUtils.bind(this,function(d){if(c.isEnabled())try{mxClipboard.copy(c),this.copyCells(e,!0),b()}catch(v){this.handleError(v)}}));mxEvent.addListener(e,
"paste",mxUtils.bind(this,function(b){c.isEnabled()&&!c.isCellLocked(c.getDefaultParent())&&(e.innerHTML="&nbsp;",e.focus(),null!=b.clipboardData&&this.pasteCells(b,e,!0,!0),mxEvent.isConsumed(b)||window.setTimeout(mxUtils.bind(this,function(){this.pasteCells(b,e,!1,!0)}),0))}),!0);var l=this.isSelectionAllowed;this.isSelectionAllowed=function(b){return mxEvent.getSource(b)==e?!0:l.apply(this,arguments)}};EditorUi.prototype.setSketchMode=function(b){this.spinner.spin(document.body,mxResources.get("working")+
"...")&&window.setTimeout(mxUtils.bind(this,function(){this.spinner.stop();this.doSetSketchMode(b);null==urlParams.rough&&(mxSettings.settings.sketchMode=b,mxSettings.save());this.fireEvent(new mxEventObject("sketchModeChanged"))}),0)};EditorUi.prototype.setPagesVisible=function(b){Editor.pagesVisible!=b&&(Editor.pagesVisible=b,mxSettings.settings.pagesVisible=b,mxSettings.save(),this.fireEvent(new mxEventObject("pagesVisibleChanged")))};EditorUi.prototype.setSidebarTitles=function(b,c){this.sidebar.sidebarTitles!=
b&&(this.sidebar.sidebarTitles=b,this.sidebar.refresh(),this.isSettingsEnabled()&&c&&(mxSettings.settings.sidebarTitles=b,mxSettings.save()),this.fireEvent(new mxEventObject("sidebarTitlesChanged")))};EditorUi.prototype.setInlineFullscreen=function(b){Editor.inlineFullscreen!=b&&(Editor.inlineFullscreen=b,this.fireEvent(new mxEventObject("inlineFullscreenChanged")),(window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:Editor.inlineFullscreen,rect:this.diagramContainer.getBoundingClientRect()}),
@@ -3719,7 +3719,7 @@ f);try{this.loadLibrary(new LocalLibrary(this,b,c))}catch(z){this.handleError(z,
c))this.parseFile(e,mxUtils.bind(this,function(b){4==b.readyState&&(this.spinner.stop(),200<=b.status&&299>=b.status?d(b.responseText):this.handleError({message:mxResources.get(413==b.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))}));else if(this.isLucidChartData(b))/(\.json)$/i.test(c)&&(c=c.substring(0,c.length-5)+".drawio"),this.convertLucidChart(b,mxUtils.bind(this,function(b){this.spinner.stop();this.openLocalFile(b,c,f)}),mxUtils.bind(this,function(b){this.spinner.stop();
this.handleError(b)}));else if("<mxlibrary"==b.substring(0,10)){this.spinner.stop();null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,f);try{this.loadLibrary(new LocalLibrary(this,b,e.name))}catch(t){this.handleError(t,mxResources.get("errorLoadingFile"))}}else if(0==b.indexOf("PK"))this.importZipFile(e,mxUtils.bind(this,function(b){this.spinner.stop();d(b)}),mxUtils.bind(this,function(){this.spinner.stop();this.openLocalFile(b,c,f)}));
else{if("image/png"==e.type.substring(0,9))b=this.extractGraphModelFromPng(b);else if("application/pdf"==e.type){var g=Editor.extractGraphModelFromPdf(b);null!=g&&(l=null,f=!0,b=g)}this.spinner.stop();this.openLocalFile(b,c,f,l,null!=l?e:null)}}};EditorUi.prototype.openFiles=function(b,c){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var d=0;d<b.length;d++)mxUtils.bind(this,function(b){var d=new FileReader;d.onload=mxUtils.bind(this,function(d){try{this.openFileHandle(d.target.result,
-b.name,b,c)}catch(u){this.handleError(u)}});d.onerror=mxUtils.bind(this,function(b){this.spinner.stop();this.handleError(b);window.openFile=null});"image"!==b.type.substring(0,5)&&"application/pdf"!==b.type||"image/svg"===b.type.substring(0,9)?d.readAsText(b):d.readAsDataURL(b)})(b[d])};EditorUi.prototype.openLocalFile=function(b,c,e,f,l){var d=this.getCurrentFile(),g=mxUtils.bind(this,function(){window.openFile=null;if(null==c&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var d=mxUtils.parseXml(b);
+b.name,b,c)}catch(v){this.handleError(v)}});d.onerror=mxUtils.bind(this,function(b){this.spinner.stop();this.handleError(b);window.openFile=null});"image"!==b.type.substring(0,5)&&"application/pdf"!==b.type||"image/svg"===b.type.substring(0,9)?d.readAsText(b):d.readAsDataURL(b)})(b[d])};EditorUi.prototype.openLocalFile=function(b,c,e,f,l){var d=this.getCurrentFile(),g=mxUtils.bind(this,function(){window.openFile=null;if(null==c&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var d=mxUtils.parseXml(b);
null!=d&&(this.editor.setGraphXml(d.documentElement),this.editor.graph.selectAll())}else this.fileLoaded(new LocalFile(this,b,c||this.defaultFilename,e,f,l))});if(null!=b&&0<b.length)null==d||!d.isModified()&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=f)?g():(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=f)&&null!=d&&d.isModified()?this.confirm(mxResources.get("allChangesLost"),null,g,mxResources.get("cancel"),mxResources.get("discardChanges")):(window.openFile=new OpenFile(function(){window.openFile=
null}),window.openFile.setData(b,c),window.openWindow(this.getUrl(),null,mxUtils.bind(this,function(){null!=d&&d.isModified()?this.confirm(mxResources.get("allChangesLost"),null,g,mxResources.get("cancel"),mxResources.get("discardChanges")):g()})));else throw Error(mxResources.get("notADiagramFile"));};EditorUi.prototype.getBasenames=function(){var b={};if(null!=this.pages)for(var c=0;c<this.pages.length;c++)this.updatePageRoot(this.pages[c]),this.addBasenamesForCell(this.pages[c].root,b);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),
b);var c=[],e;for(e in b)c.push(e);return c};EditorUi.prototype.addBasenamesForCell=function(b,c){function d(b){if(null!=b){var d=b.lastIndexOf(".");0<d&&(b=b.substring(d+1,b.length));null==c[b]&&(c[b]=!0)}}var e=this.editor.graph,f=e.getCellStyle(b);d(mxStencilRegistry.getBasenameForStencil(f[mxConstants.STYLE_SHAPE]));e.model.isEdge(b)&&(d(mxMarker.getPackageForType(f[mxConstants.STYLE_STARTARROW])),d(mxMarker.getPackageForType(f[mxConstants.STYLE_ENDARROW])));for(var f=e.model.getChildCount(b),
@@ -3731,119 +3731,119 @@ this.editor.modified=null!=e?e:!1;this.updateUi();window.self!==window.top&&wind
function(b){var d=this.editor.graph;return{event:b,pageVisible:d.pageVisible,translate:d.view.translate,bounds:d.getGraphBounds(),currentPage:this.getSelectedPageIndex(),scale:d.view.scale,page:d.view.getBackgroundPageBounds()}};EditorUi.prototype.sendEmbeddedSvgExport=function(b){var d=this.editor.graph;d.isEditing()&&d.stopEditing(!d.isInvokesStopCellEditing());var c=window.opener||window.parent;if(this.editor.modified){var e=d.background;if(null==e||e==mxConstants.NONE)e=this.embedExportBackground;
this.getEmbeddedSvg(this.getFileData(!0,null,null,null,null,null,null,null,null,!1),d,null,!0,mxUtils.bind(this,function(d){c.postMessage(JSON.stringify({event:"export",point:this.embedExitPoint,exit:null!=b?!b:!0,data:Editor.createSvgDataUri(d)}),"*")}),null,null,!0,e,1,this.embedExportBorder)}else b||c.postMessage(JSON.stringify({event:"exit",point:this.embedExitPoint}),"*");b||(this.diagramContainer.removeAttribute("data-bounds"),Editor.inlineFullscreen=!1,d.model.clear(),this.editor.undoManager.clear(),
this.setBackgroundImage(null),this.editor.modified=!1,this.fireEvent(new mxEventObject("editInlineStop")))};EditorUi.prototype.installMessageHandler=function(b){var d=null,c=!1,e=!1,f=null,l=mxUtils.bind(this,function(b,d){this.editor.modified&&"0"!=urlParams.modified?null!=urlParams.modified&&this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(urlParams.modified))):this.editor.setStatus("")});this.editor.graph.model.addListener(mxEvent.CHANGE,l);mxEvent.addListener(window,"message",mxUtils.bind(this,
-function(g){if(g.source==(window.opener||window.parent)){var k=g.data,l=null,m=mxUtils.bind(this,function(b){if(null!=b&&"function"===typeof b.charAt&&"<"!=b.charAt(0))try{Editor.isPngDataUrl(b)?b=Editor.extractGraphModelFromPng(b):"data:image/svg+xml;base64,"==b.substring(0,26)?b=atob(b.substring(26)):"data:image/svg+xml;utf8,"==b.substring(0,24)&&(b=b.substring(24)),null!=b&&("%"==b.charAt(0)?b=decodeURIComponent(b):"<"!=b.charAt(0)&&(b=Graph.decompress(b)))}catch(ta){}return b});if("json"==urlParams.proto){var p=
-!1;try{k=JSON.parse(k)}catch(da){k=null}try{if(null==k)return;if("dialog"==k.action){this.showError(null!=k.titleKey?mxResources.get(k.titleKey):k.title,null!=k.messageKey?mxResources.get(k.messageKey):k.message,null!=k.buttonKey?mxResources.get(k.buttonKey):k.button);null!=k.modified&&(this.editor.modified=k.modified);return}if("layout"==k.action){this.executeLayoutList(k.layouts);return}if("prompt"==k.action){this.spinner.stop();var q=new FilenameDialog(this,k.defaultValue||"",null!=k.okKey?mxResources.get(k.okKey):
+function(g){if(g.source==(window.opener||window.parent)){var k=g.data,l=null,m=mxUtils.bind(this,function(b){if(null!=b&&"function"===typeof b.charAt&&"<"!=b.charAt(0))try{Editor.isPngDataUrl(b)?b=Editor.extractGraphModelFromPng(b):"data:image/svg+xml;base64,"==b.substring(0,26)?b=atob(b.substring(26)):"data:image/svg+xml;utf8,"==b.substring(0,24)&&(b=b.substring(24)),null!=b&&("%"==b.charAt(0)?b=decodeURIComponent(b):"<"!=b.charAt(0)&&(b=Graph.decompress(b)))}catch(na){}return b});if("json"==urlParams.proto){var p=
+!1;try{k=JSON.parse(k)}catch(K){k=null}try{if(null==k)return;if("dialog"==k.action){this.showError(null!=k.titleKey?mxResources.get(k.titleKey):k.title,null!=k.messageKey?mxResources.get(k.messageKey):k.message,null!=k.buttonKey?mxResources.get(k.buttonKey):k.button);null!=k.modified&&(this.editor.modified=k.modified);return}if("layout"==k.action){this.executeLayoutList(k.layouts);return}if("prompt"==k.action){this.spinner.stop();var q=new FilenameDialog(this,k.defaultValue||"",null!=k.okKey?mxResources.get(k.okKey):
k.ok,function(b){null!=b?n.postMessage(JSON.stringify({event:"prompt",value:b,message:k}),"*"):n.postMessage(JSON.stringify({event:"prompt-cancel",message:k}),"*")},null!=k.titleKey?mxResources.get(k.titleKey):k.title);this.showDialog(q.container,300,80,!0,!1);q.init();return}if("draft"==k.action){var t=m(k.xml);this.spinner.stop();q=new DraftDialog(this,mxResources.get("draftFound",[k.name||this.defaultFilename]),t,mxUtils.bind(this,function(){this.hideDialog();n.postMessage(JSON.stringify({event:"draft",
result:"edit",message:k}),"*")}),mxUtils.bind(this,function(){this.hideDialog();n.postMessage(JSON.stringify({event:"draft",result:"discard",message:k}),"*")}),k.editKey?mxResources.get(k.editKey):null,k.discardKey?mxResources.get(k.discardKey):null,k.ignore?mxUtils.bind(this,function(){this.hideDialog();n.postMessage(JSON.stringify({event:"draft",result:"ignore",message:k}),"*")}):null);this.showDialog(q.container,640,480,!0,!1,mxUtils.bind(this,function(b){b&&this.actions.get("exit").funct()}));
-try{q.init()}catch(da){n.postMessage(JSON.stringify({event:"draft",error:da.toString(),message:k}),"*")}return}if("template"==k.action){this.spinner.stop();var v=1==k.enableRecent,u=1==k.enableSearch,z=1==k.enableCustomTemp;if("1"==urlParams.newTempDlg&&!k.templatesOnly&&null!=k.callback){var L=this.getCurrentUser(),M=new TemplatesDialog(this,function(b,d,c){b=b||this.emptyDiagramXml;n.postMessage(JSON.stringify({event:"template",xml:b,blank:b==this.emptyDiagramXml,name:d,tempUrl:c.url,libs:c.libs,
-builtIn:null!=c.info&&null!=c.info.custContentId,message:k}),"*")},mxUtils.bind(this,function(){this.actions.get("exit").funct()}),null,null,null!=L?L.id:null,v?mxUtils.bind(this,function(b,d,c){this.remoteInvoke("getRecentDiagrams",[c],null,b,d)}):null,u?mxUtils.bind(this,function(b,d,c,e){this.remoteInvoke("searchDiagrams",[b,e],null,d,c)}):null,mxUtils.bind(this,function(b,d,c){this.remoteInvoke("getFileContent",[b.url],null,d,c)}),null,z?mxUtils.bind(this,function(b){this.remoteInvoke("getCustomTemplates",
-null,null,b,function(){b({},0)})}):null,!1,!1,!0,!0);this.showDialog(M.container,window.innerWidth,window.innerHeight,!0,!1,null,!1,!0);return}q=new NewDialog(this,!1,k.templatesOnly?!1:null!=k.callback,mxUtils.bind(this,function(d,c,e,f){d=d||this.emptyDiagramXml;null!=k.callback?n.postMessage(JSON.stringify({event:"template",xml:d,blank:d==this.emptyDiagramXml,name:c,tempUrl:e,libs:f,builtIn:!0,message:k}),"*"):(b(d,g,d!=this.emptyDiagramXml,k.toSketch),this.editor.modified||this.editor.setStatus(""))}),
-null,null,null,null,null,null,null,v?mxUtils.bind(this,function(b){this.remoteInvoke("getRecentDiagrams",[null],null,b,function(){b(null,"Network Error!")})}):null,u?mxUtils.bind(this,function(b,d){this.remoteInvoke("searchDiagrams",[b,null],null,d,function(){d(null,"Network Error!")})}):null,mxUtils.bind(this,function(b,d,c){n.postMessage(JSON.stringify({event:"template",docUrl:b,info:d,name:c}),"*")}),null,null,z?mxUtils.bind(this,function(b){this.remoteInvoke("getCustomTemplates",null,null,b,function(){b({},
-0)})}):null,1==k.withoutType);this.showDialog(q.container,620,460,!0,!1,mxUtils.bind(this,function(b){this.sidebar.hideTooltip();b&&this.actions.get("exit").funct()}));q.init();return}if("textContent"==k.action){var K=this.getDiagramTextContent();n.postMessage(JSON.stringify({event:"textContent",data:K,message:k}),"*");return}if("status"==k.action){null!=k.messageKey?this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(k.messageKey))):null!=k.message&&this.editor.setStatus(mxUtils.htmlEntities(k.message));
+try{q.init()}catch(K){n.postMessage(JSON.stringify({event:"draft",error:K.toString(),message:k}),"*")}return}if("template"==k.action){this.spinner.stop();var u=1==k.enableRecent,v=1==k.enableSearch,z=1==k.enableCustomTemp;if("1"==urlParams.newTempDlg&&!k.templatesOnly&&null!=k.callback){var L=this.getCurrentUser(),N=new TemplatesDialog(this,function(b,d,c){b=b||this.emptyDiagramXml;n.postMessage(JSON.stringify({event:"template",xml:b,blank:b==this.emptyDiagramXml,name:d,tempUrl:c.url,libs:c.libs,
+builtIn:null!=c.info&&null!=c.info.custContentId,message:k}),"*")},mxUtils.bind(this,function(){this.actions.get("exit").funct()}),null,null,null!=L?L.id:null,u?mxUtils.bind(this,function(b,d,c){this.remoteInvoke("getRecentDiagrams",[c],null,b,d)}):null,v?mxUtils.bind(this,function(b,d,c,e){this.remoteInvoke("searchDiagrams",[b,e],null,d,c)}):null,mxUtils.bind(this,function(b,d,c){this.remoteInvoke("getFileContent",[b.url],null,d,c)}),null,z?mxUtils.bind(this,function(b){this.remoteInvoke("getCustomTemplates",
+null,null,b,function(){b({},0)})}):null,!1,!1,!0,!0);this.showDialog(N.container,window.innerWidth,window.innerHeight,!0,!1,null,!1,!0);return}q=new NewDialog(this,!1,k.templatesOnly?!1:null!=k.callback,mxUtils.bind(this,function(d,c,e,f){d=d||this.emptyDiagramXml;null!=k.callback?n.postMessage(JSON.stringify({event:"template",xml:d,blank:d==this.emptyDiagramXml,name:c,tempUrl:e,libs:f,builtIn:!0,message:k}),"*"):(b(d,g,d!=this.emptyDiagramXml,k.toSketch),this.editor.modified||this.editor.setStatus(""))}),
+null,null,null,null,null,null,null,u?mxUtils.bind(this,function(b){this.remoteInvoke("getRecentDiagrams",[null],null,b,function(){b(null,"Network Error!")})}):null,v?mxUtils.bind(this,function(b,d){this.remoteInvoke("searchDiagrams",[b,null],null,d,function(){d(null,"Network Error!")})}):null,mxUtils.bind(this,function(b,d,c){n.postMessage(JSON.stringify({event:"template",docUrl:b,info:d,name:c}),"*")}),null,null,z?mxUtils.bind(this,function(b){this.remoteInvoke("getCustomTemplates",null,null,b,function(){b({},
+0)})}):null,1==k.withoutType);this.showDialog(q.container,620,460,!0,!1,mxUtils.bind(this,function(b){this.sidebar.hideTooltip();b&&this.actions.get("exit").funct()}));q.init();return}if("textContent"==k.action){var M=this.getDiagramTextContent();n.postMessage(JSON.stringify({event:"textContent",data:M,message:k}),"*");return}if("status"==k.action){null!=k.messageKey?this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(k.messageKey))):null!=k.message&&this.editor.setStatus(mxUtils.htmlEntities(k.message));
null!=k.modified&&(this.editor.modified=k.modified);return}if("spinner"==k.action){var P=null!=k.messageKey?mxResources.get(k.messageKey):k.message;null==k.show||k.show?this.spinner.spin(document.body,P):this.spinner.stop();return}if("exit"==k.action){this.actions.get("exit").funct();return}if("viewport"==k.action){null!=k.viewport&&(this.embedViewport=k.viewport);return}if("snapshot"==k.action){this.sendEmbeddedSvgExport(!0);return}if("export"==k.action){if("png"==k.format||"xmlpng"==k.format){if(null==
-k.spin&&null==k.spinKey||this.spinner.spin(document.body,null!=k.spinKey?mxResources.get(k.spinKey):k.spin)){var T=null!=k.xml?k.xml:this.getFileData(!0);this.editor.graph.setEnabled(!1);var W=this.editor.graph,ga=mxUtils.bind(this,function(b){this.editor.graph.setEnabled(!0);this.spinner.stop();var d=this.createLoadMessage("export");d.format=k.format;d.message=k;d.data=b;d.xml=T;n.postMessage(JSON.stringify(d),"*")}),ja=mxUtils.bind(this,function(b){null==b&&(b=Editor.blankImage);"xmlpng"==k.format&&
-(b=Editor.writeGraphModelToPng(b,"tEXt","mxfile",encodeURIComponent(T)));W!=this.editor.graph&&W.container.parentNode.removeChild(W.container);ga(b)}),X=k.pageId||(null!=this.pages?k.currentPage?this.currentPage.getId():this.pages[0].getId():null);if(this.isExportToCanvas()){var x=mxUtils.bind(this,function(){if(null!=this.pages&&this.currentPage.getId()!=X){var b=W.getGlobalVariable;W=this.createTemporaryGraph(W.getStylesheet());for(var d,c=0;c<this.pages.length;c++)if(this.pages[c].getId()==X){d=
-this.updatePageRoot(this.pages[c]);break}null==d&&(d=this.currentPage);W.getGlobalVariable=function(c){return"page"==c?d.getName():"pagenumber"==c?1:b.apply(this,arguments)};document.body.appendChild(W.container);W.model.setRoot(d.root)}if(null!=k.layerIds){for(var e=W.model,g=e.getChildCells(e.getRoot()),f={},c=0;c<k.layerIds.length;c++)f[k.layerIds[c]]=!0;for(c=0;c<g.length;c++)e.setVisible(g[c],f[g[c].id]||!1)}this.editor.exportToCanvas(mxUtils.bind(this,function(b){ja(b.toDataURL("image/png"))}),
-k.width,null,k.background,mxUtils.bind(this,function(){ja(null)}),null,null,k.scale,k.transparent,k.shadow,null,W,k.border,null,k.grid,k.keepTheme)});null!=k.xml&&0<k.xml.length?(c=!0,this.setFileData(T),c=!1,this.editor.graph.mathEnabled?window.setTimeout(function(){window.MathJax.Hub.Queue(x)},0):x()):x()}else(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==k.format?"1":"0")+(null!=X?"&pageId="+X:"")+(null!=k.layerIds&&0<k.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:k.layerIds})):
-"")+(null!=k.scale?"&scale="+k.scale:"")+"&base64=1&xml="+encodeURIComponent(T))).send(mxUtils.bind(this,function(b){200<=b.getStatus()&&299>=b.getStatus()?ga("data:image/png;base64,"+b.getText()):ja(null)}),mxUtils.bind(this,function(){ja(null)}))}}else x=mxUtils.bind(this,function(){var b=this.createLoadMessage("export");b.message=k;if("html2"==k.format||"html"==k.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length)){var d=this.getXmlFileData();b.xml=mxUtils.getXml(d);b.data=this.getFileData(null,
+k.spin&&null==k.spinKey||this.spinner.spin(document.body,null!=k.spinKey?mxResources.get(k.spinKey):k.spin)){var V=null!=k.xml?k.xml:this.getFileData(!0);this.editor.graph.setEnabled(!1);var W=this.editor.graph,ga=mxUtils.bind(this,function(b){this.editor.graph.setEnabled(!0);this.spinner.stop();var d=this.createLoadMessage("export");d.format=k.format;d.message=k;d.data=b;d.xml=V;n.postMessage(JSON.stringify(d),"*")}),ea=mxUtils.bind(this,function(b){null==b&&(b=Editor.blankImage);"xmlpng"==k.format&&
+(b=Editor.writeGraphModelToPng(b,"tEXt","mxfile",encodeURIComponent(V)));W!=this.editor.graph&&W.container.parentNode.removeChild(W.container);ga(b)}),ba=k.pageId||(null!=this.pages?k.currentPage?this.currentPage.getId():this.pages[0].getId():null);if(this.isExportToCanvas()){var x=mxUtils.bind(this,function(){if(null!=this.pages&&this.currentPage.getId()!=ba){var b=W.getGlobalVariable;W=this.createTemporaryGraph(W.getStylesheet());for(var d,c=0;c<this.pages.length;c++)if(this.pages[c].getId()==ba){d=
+this.updatePageRoot(this.pages[c]);break}null==d&&(d=this.currentPage);W.getGlobalVariable=function(c){return"page"==c?d.getName():"pagenumber"==c?1:b.apply(this,arguments)};document.body.appendChild(W.container);W.model.setRoot(d.root)}if(null!=k.layerIds){for(var e=W.model,g=e.getChildCells(e.getRoot()),f={},c=0;c<k.layerIds.length;c++)f[k.layerIds[c]]=!0;for(c=0;c<g.length;c++)e.setVisible(g[c],f[g[c].id]||!1)}this.editor.exportToCanvas(mxUtils.bind(this,function(b){ea(b.toDataURL("image/png"))}),
+k.width,null,k.background,mxUtils.bind(this,function(){ea(null)}),null,null,k.scale,k.transparent,k.shadow,null,W,k.border,null,k.grid,k.keepTheme)});null!=k.xml&&0<k.xml.length?(c=!0,this.setFileData(V),c=!1,this.editor.graph.mathEnabled?window.setTimeout(function(){window.MathJax.Hub.Queue(x)},0):x()):x()}else(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==k.format?"1":"0")+(null!=ba?"&pageId="+ba:"")+(null!=k.layerIds&&0<k.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:k.layerIds})):
+"")+(null!=k.scale?"&scale="+k.scale:"")+"&base64=1&xml="+encodeURIComponent(V))).send(mxUtils.bind(this,function(b){200<=b.getStatus()&&299>=b.getStatus()?ga("data:image/png;base64,"+b.getText()):ea(null)}),mxUtils.bind(this,function(){ea(null)}))}}else x=mxUtils.bind(this,function(){var b=this.createLoadMessage("export");b.message=k;if("html2"==k.format||"html"==k.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length)){var d=this.getXmlFileData();b.xml=mxUtils.getXml(d);b.data=this.getFileData(null,
null,!0,null,null,null,d);b.format=k.format}else if("html"==k.format)d=this.editor.getGraphXml(),b.data=this.getHtml(d,this.editor.graph),b.xml=mxUtils.getXml(d),b.format=k.format;else{mxSvgCanvas2D.prototype.foAltText=null;d=null!=k.background?k.background:this.editor.graph.background;d==mxConstants.NONE&&(d=null);b.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!1);b.format="svg";var c=mxUtils.bind(this,function(d){this.editor.graph.setEnabled(!0);this.spinner.stop();b.data=Editor.createSvgDataUri(d);
n.postMessage(JSON.stringify(b),"*")});if("xmlsvg"==k.format)(null==k.spin&&null==k.spinKey||this.spinner.spin(document.body,null!=k.spinKey?mxResources.get(k.spinKey):k.spin))&&this.getEmbeddedSvg(b.xml,this.editor.graph,null,!0,c,null,null,k.embedImages,d,k.scale,k.border,k.shadow,k.keepTheme);else if(null==k.spin&&null==k.spinKey||this.spinner.spin(document.body,null!=k.spinKey?mxResources.get(k.spinKey):k.spin))this.editor.graph.setEnabled(!1),d=this.editor.graph.getSvg(d,k.scale,k.border,null,
null,null,null,null,null,this.editor.graph.shadowVisible||k.shadow,null,k.keepTheme),(this.editor.graph.shadowVisible||k.shadow)&&this.editor.graph.addSvgShadow(d),this.embedFonts(d,mxUtils.bind(this,function(b){k.embedImages||null==k.embedImages?this.editor.convertImages(b,mxUtils.bind(this,function(b){c(mxUtils.getXml(b))})):c(mxUtils.getXml(b))}));return}n.postMessage(JSON.stringify(b),"*")}),null!=k.xml&&0<k.xml.length?(c=!0,this.setFileData(k.xml),c=!1,this.editor.graph.mathEnabled?window.setTimeout(function(){window.MathJax.Hub.Queue(x)},
0):x()):x();return}if("load"==k.action){p=k.toSketch;e=1==k.autosave;this.hideDialog();null!=k.modified&&null==urlParams.modified&&(urlParams.modified=k.modified);null!=k.saveAndExit&&null==urlParams.saveAndExit&&(urlParams.saveAndExit=k.saveAndExit);null!=k.noSaveBtn&&null==urlParams.noSaveBtn&&(urlParams.noSaveBtn=k.noSaveBtn);if(null!=k.rough){var C=Editor.sketchMode;this.doSetSketchMode(k.rough);C!=Editor.sketchMode&&this.fireEvent(new mxEventObject("sketchModeChanged"))}null!=k.dark&&(C=Editor.darkMode,
this.doSetDarkMode(k.dark),C!=Editor.darkMode&&this.fireEvent(new mxEventObject("darkModeChanged")));null!=k.border&&(this.embedExportBorder=k.border);null!=k.background&&(this.embedExportBackground=k.background);null!=k.viewport&&(this.embedViewport=k.viewport);this.embedExitPoint=null;if(null!=k.rect){var J=this.embedExportBorder;this.diagramContainer.style.border="2px solid #295fcc";this.diagramContainer.style.top=k.rect.top+"px";this.diagramContainer.style.left=k.rect.left+"px";this.diagramContainer.style.height=
k.rect.height+"px";this.diagramContainer.style.width=k.rect.width+"px";this.diagramContainer.style.bottom="";this.diagramContainer.style.right="";l=mxUtils.bind(this,function(){var b=this.editor.graph,d=b.maxFitScale;b.maxFitScale=k.maxFitScale;b.fit(2*J);b.maxFitScale=d;b.container.scrollTop-=2*J;b.container.scrollLeft-=2*J;this.fireEvent(new mxEventObject("editInlineStart","data",[k]))})}null!=k.noExitBtn&&null==urlParams.noExitBtn&&(urlParams.noExitBtn=k.noExitBtn);null!=k.title&&null!=this.buttonContainer&&
-(t=document.createElement("span"),mxUtils.write(t,k.title),null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode.removeChild(this.embedFilenameSpan),this.buttonContainer.appendChild(t),this.embedFilenameSpan=t);try{k.libs&&this.sidebar.showEntries(k.libs)}catch(da){}k=null!=k.xmlpng?this.extractGraphModelFromPng(k.xmlpng):null!=k.descriptor?k.descriptor:k.xml}else{if("merge"==k.action){var V=this.getCurrentFile();null!=V&&(t=m(k.xml),null!=t&&""!=t&&V.mergeFile(new LocalFile(this,t),function(){n.postMessage(JSON.stringify({event:"merge",
-message:k}),"*")},function(b){n.postMessage(JSON.stringify({event:"merge",message:k,error:b}),"*")}))}else"remoteInvokeReady"==k.action?this.handleRemoteInvokeReady(n):"remoteInvoke"==k.action?this.handleRemoteInvoke(k,g.origin):"remoteInvokeResponse"==k.action?this.handleRemoteInvokeResponse(k):n.postMessage(JSON.stringify({error:"unknownMessage",data:JSON.stringify(k)}),"*");return}}catch(da){this.handleError(da)}}var ca=mxUtils.bind(this,function(){return"0"!=urlParams.pages||null!=this.pages&&
-1<this.pages.length?this.getFileData(!0):mxUtils.getXml(this.editor.getGraphXml())}),aa=mxUtils.bind(this,function(g,k){c=!0;try{b(g,k,null,p)}catch(ha){this.handleError(ha)}c=!1;null!=urlParams.modified&&this.editor.setStatus("");f=ca();e&&null==d&&(d=mxUtils.bind(this,function(b,d){var e=ca();if(e!=f&&!c){var g=this.createLoadMessage("autosave");g.xml=e;(window.opener||window.parent).postMessage(JSON.stringify(g),"*")}f=e}),this.editor.graph.model.addListener(mxEvent.CHANGE,d),this.editor.graph.addListener("gridSizeChanged",
+(t=document.createElement("span"),mxUtils.write(t,k.title),null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode.removeChild(this.embedFilenameSpan),this.buttonContainer.appendChild(t),this.embedFilenameSpan=t);try{k.libs&&this.sidebar.showEntries(k.libs)}catch(K){}k=null!=k.xmlpng?this.extractGraphModelFromPng(k.xmlpng):null!=k.descriptor?k.descriptor:k.xml}else{if("merge"==k.action){var X=this.getCurrentFile();null!=X&&(t=m(k.xml),null!=t&&""!=t&&X.mergeFile(new LocalFile(this,t),function(){n.postMessage(JSON.stringify({event:"merge",
+message:k}),"*")},function(b){n.postMessage(JSON.stringify({event:"merge",message:k,error:b}),"*")}))}else"remoteInvokeReady"==k.action?this.handleRemoteInvokeReady(n):"remoteInvoke"==k.action?this.handleRemoteInvoke(k,g.origin):"remoteInvokeResponse"==k.action?this.handleRemoteInvokeResponse(k):n.postMessage(JSON.stringify({error:"unknownMessage",data:JSON.stringify(k)}),"*");return}}catch(K){this.handleError(K)}}var ca=mxUtils.bind(this,function(){return"0"!=urlParams.pages||null!=this.pages&&1<
+this.pages.length?this.getFileData(!0):mxUtils.getXml(this.editor.getGraphXml())}),ka=mxUtils.bind(this,function(g,k){c=!0;try{b(g,k,null,p)}catch(pa){this.handleError(pa)}c=!1;null!=urlParams.modified&&this.editor.setStatus("");f=ca();e&&null==d&&(d=mxUtils.bind(this,function(b,d){var e=ca();if(e!=f&&!c){var g=this.createLoadMessage("autosave");g.xml=e;(window.opener||window.parent).postMessage(JSON.stringify(g),"*")}f=e}),this.editor.graph.model.addListener(mxEvent.CHANGE,d),this.editor.graph.addListener("gridSizeChanged",
d),this.editor.graph.addListener("shadowVisibleChanged",d),this.addListener("pageFormatChanged",d),this.addListener("pageScaleChanged",d),this.addListener("backgroundColorChanged",d),this.addListener("backgroundImageChanged",d),this.addListener("foldingEnabledChanged",d),this.addListener("mathEnabledChanged",d),this.addListener("gridEnabledChanged",d),this.addListener("guidesEnabledChanged",d),this.addListener("pageViewChanged",d));if("1"==urlParams.returnbounds||"json"==urlParams.proto){var m=this.createLoadMessage("load");
-m.xml=g;n.postMessage(JSON.stringify(m),"*")}null!=l&&l()});null!=k&&"function"===typeof k.substring&&"data:application/vnd.visio;base64,"==k.substring(0,34)?(m="0M8R4KGxGuE"==k.substring(34,45)?"raw.vsd":"raw.vsdx",this.importVisio(this.base64ToBlob(k.substring(k.indexOf(",")+1)),function(b){aa(b,g)},mxUtils.bind(this,function(b){this.handleError(b)}),m)):null!=k&&"function"===typeof k.substring&&!this.isOffline()&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(k,"")?this.parseFileData(k,mxUtils.bind(this,
-function(b){4==b.readyState&&200<=b.status&&299>=b.status&&"<mxGraphModel"==b.responseText.substring(0,13)&&aa(b.responseText,g)}),""):null!=k&&"function"===typeof k.substring&&this.isLucidChartData(k)?this.convertLucidChart(k,mxUtils.bind(this,function(b){aa(b)}),mxUtils.bind(this,function(b){this.handleError(b)})):null==k||"object"!==typeof k||null==k.format||null==k.data&&null==k.url?(k=m(k),aa(k,g)):this.loadDescriptor(k,mxUtils.bind(this,function(b){aa(ca(),g)}),mxUtils.bind(this,function(b){this.handleError(b,
+m.xml=g;n.postMessage(JSON.stringify(m),"*")}null!=l&&l()});null!=k&&"function"===typeof k.substring&&"data:application/vnd.visio;base64,"==k.substring(0,34)?(m="0M8R4KGxGuE"==k.substring(34,45)?"raw.vsd":"raw.vsdx",this.importVisio(this.base64ToBlob(k.substring(k.indexOf(",")+1)),function(b){ka(b,g)},mxUtils.bind(this,function(b){this.handleError(b)}),m)):null!=k&&"function"===typeof k.substring&&!this.isOffline()&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(k,"")?this.parseFileData(k,mxUtils.bind(this,
+function(b){4==b.readyState&&200<=b.status&&299>=b.status&&"<mxGraphModel"==b.responseText.substring(0,13)&&ka(b.responseText,g)}),""):null!=k&&"function"===typeof k.substring&&this.isLucidChartData(k)?this.convertLucidChart(k,mxUtils.bind(this,function(b){ka(b)}),mxUtils.bind(this,function(b){this.handleError(b)})):null==k||"object"!==typeof k||null==k.format||null==k.data&&null==k.url?(k=m(k),ka(k,g)):this.loadDescriptor(k,mxUtils.bind(this,function(b){ka(ca(),g)}),mxUtils.bind(this,function(b){this.handleError(b,
mxResources.get("errorLoadingFile"))}))}}));var n=window.opener||window.parent,l="json"==urlParams.proto?JSON.stringify({event:"init"}):urlParams.ready||"ready";n.postMessage(l,"*");if("json"==urlParams.proto){var q=this.editor.graph.openLink;this.editor.graph.openLink=function(b,d,c){q.apply(this,arguments);n.postMessage(JSON.stringify({event:"openLink",href:b,target:d,allowOpener:c}),"*")}}};EditorUi.prototype.addEmbedButtons=function(){if(null!=this.menubar&&"1"!=urlParams.embedInline){var b=document.createElement("div");
b.style.display="inline-block";b.style.position="absolute";b.style.paddingTop="atlas"==uiTheme||"1"==urlParams.atlas?"2px":"0px";b.style.paddingLeft="8px";b.style.paddingBottom="2px";var c=document.createElement("button");c.className="geBigButton";var e=c;if("1"==urlParams.noSaveBtn){if("0"!=urlParams.saveAndExit){var f="1"==urlParams.publishClose?mxResources.get("publish"):mxResources.get("saveAndExit");mxUtils.write(c,f);c.setAttribute("title",f);mxEvent.addListener(c,"click",mxUtils.bind(this,
function(){this.actions.get("saveAndExit").funct()}));b.appendChild(c)}}else mxUtils.write(c,mxResources.get("save")),c.setAttribute("title",mxResources.get("save")+" ("+Editor.ctrlKey+"+S)"),mxEvent.addListener(c,"click",mxUtils.bind(this,function(){this.actions.get("save").funct()})),b.appendChild(c),"1"==urlParams.saveAndExit&&(c=document.createElement("a"),mxUtils.write(c,mxResources.get("saveAndExit")),c.setAttribute("title",mxResources.get("saveAndExit")),c.className="geBigButton geBigStandardButton",
c.style.marginLeft="6px",mxEvent.addListener(c,"click",mxUtils.bind(this,function(){this.actions.get("saveAndExit").funct()})),b.appendChild(c),e=c);"1"!=urlParams.noExitBtn&&(c=document.createElement("a"),e="1"==urlParams.publishClose?mxResources.get("close"):mxResources.get("exit"),mxUtils.write(c,e),c.setAttribute("title",e),c.className="geBigButton geBigStandardButton",c.style.marginLeft="6px",mxEvent.addListener(c,"click",mxUtils.bind(this,function(){this.actions.get("exit").funct()})),b.appendChild(c),
e=c);e.style.marginRight="20px";this.toolbar.container.appendChild(b);this.toolbar.staticElements.push(b);b.style.right="atlas"==uiTheme||"1"==urlParams.atlas?"42px":"52px"}};EditorUi.prototype.showImportCsvDialog=function(){null==this.importCsvDialog&&(this.importCsvDialog=new TextareaDialog(this,mxResources.get("csv")+":",Editor.defaultCsvValue,mxUtils.bind(this,function(b){this.importCsv(b)}),null,null,620,430,null,!0,!0,mxResources.get("import"),this.isOffline()?null:"https://drawio-app.com/import-from-csv-to-drawio/"));
this.showDialog(this.importCsvDialog.container,640,520,!0,!0,null,null,null,null,!0);this.importCsvDialog.init()};EditorUi.prototype.executeLayoutList=function(b,c){for(var d=this.editor.graph,e=d.getSelectionCells(),f=0;f<b.length;f++){var k=new window[b[f].layout](d);if(null!=b[f].config)for(var l in b[f].config)k[l]=b[f].config[l];this.executeLayout(function(){k.execute(d.getDefaultParent(),0==e.length?null:e)},f==b.length-1,c)}};EditorUi.prototype.importCsv=function(b,c){try{var d=b.split("\n"),
-e=[],f=[],k=[],l={};if(0<d.length){for(var n={},q=this.editor.graph,y=null,F=null,D=null,E=null,H=null,N=null,A="whiteSpace=wrap;html=1;",G=null,I=null,L="",M="auto",K="auto",P=null,T=null,W=40,ga=40,ja=100,X=0,x=function(){null!=c?c(Z):(q.setSelectionCells(Z),q.scrollCellToVisible(q.getSelectionCell()))},C=q.getFreeInsertPoint(),J=C.x,V=C.y,C=V,ca=null,aa="auto",I=null,da=[],ta=null,ua=null,ha=0;ha<d.length&&"#"==d[ha].charAt(0);){b=d[ha];for(ha++;ha<d.length&&"\\"==b.charAt(b.length-1)&&"#"==d[ha].charAt(0);)b=
-b.substring(0,b.length-1)+mxUtils.trim(d[ha].substring(1)),ha++;if("#"!=b.charAt(1)){var oa=b.indexOf(":");if(0<oa){var Y=mxUtils.trim(b.substring(1,oa)),Q=mxUtils.trim(b.substring(oa+1));"label"==Y?ca=q.sanitizeHtml(Q):"labelname"==Y&&0<Q.length&&"-"!=Q?H=Q:"labels"==Y&&0<Q.length&&"-"!=Q?N=JSON.parse(Q):"style"==Y?F=Q:"parentstyle"==Y?A=Q:"stylename"==Y&&0<Q.length&&"-"!=Q?E=Q:"styles"==Y&&0<Q.length&&"-"!=Q?D=JSON.parse(Q):"vars"==Y&&0<Q.length&&"-"!=Q?y=JSON.parse(Q):"identity"==Y&&0<Q.length&&
-"-"!=Q?G=Q:"parent"==Y&&0<Q.length&&"-"!=Q?I=Q:"namespace"==Y&&0<Q.length&&"-"!=Q?L=Q:"width"==Y?M=Q:"height"==Y?K=Q:"left"==Y&&0<Q.length?P=Q:"top"==Y&&0<Q.length?T=Q:"ignore"==Y?ua=Q.split(","):"connect"==Y?da.push(JSON.parse(Q)):"link"==Y?ta=Q:"padding"==Y?X=parseFloat(Q):"edgespacing"==Y?W=parseFloat(Q):"nodespacing"==Y?ga=parseFloat(Q):"levelspacing"==Y?ja=parseFloat(Q):"layout"==Y&&(aa=Q)}}}if(null==d[ha])throw Error(mxResources.get("invalidOrMissingFile"));for(var ea=this.editor.csvToArray(d[ha]),
-Y=oa=null,Q=[],S=0;S<ea.length;S++)G==ea[S]&&(oa=S),I==ea[S]&&(Y=S),Q.push(mxUtils.trim(ea[S]).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,""));null==ca&&(ca="%"+Q[0]+"%");if(null!=da)for(var ma=0;ma<da.length;ma++)null==n[da[ma].to]&&(n[da[ma].to]={});G=[];for(S=ha+1;S<d.length;S++){var pa=this.editor.csvToArray(d[S]);if(null==pa){var ra=40<d[S].length?d[S].substring(0,40)+"...":d[S];throw Error(ra+" ("+S+"):\n"+mxResources.get("containsValidationErrors"));}0<pa.length&&G.push(pa)}q.model.beginUpdate();
-try{for(S=0;S<G.length;S++){var pa=G[S],R=null,qa=null!=oa?L+pa[oa]:null;null!=qa&&(R=q.model.getCell(qa));var d=null!=R,ia=new mxCell(ca,new mxGeometry(J,C,0,0),F||"whiteSpace=wrap;html=1;");ia.vertex=!0;ia.id=qa;for(var fa=0;fa<pa.length;fa++)q.setAttributeForCell(ia,Q[fa],pa[fa]);if(null!=H&&null!=N){var ba=N[ia.getAttribute(H)];null!=ba&&q.labelChanged(ia,ba)}if(null!=E&&null!=D){var na=D[ia.getAttribute(E)];null!=na&&(ia.style=na)}q.setAttributeForCell(ia,"placeholders","1");ia.style=q.replacePlaceholders(ia,
-ia.style,y);d?(0>mxUtils.indexOf(k,R)&&k.push(R),q.fireEvent(new mxEventObject("cellsInserted","cells",[R]))):q.fireEvent(new mxEventObject("cellsInserted","cells",[ia]));R=ia;if(!d)for(ma=0;ma<da.length;ma++)n[da[ma].to][R.getAttribute(da[ma].to)]=R;null!=ta&&"link"!=ta&&(q.setLinkForCell(R,R.getAttribute(ta)),q.setAttributeForCell(R,ta,null));var Aa=this.editor.graph.getPreferredSizeForCell(R),I=null!=Y?q.model.getCell(L+pa[Y]):null;if(R.vertex){ra=null!=I?0:J;ha=null!=I?0:V;null!=P&&null!=R.getAttribute(P)&&
-(R.geometry.x=ra+parseFloat(R.getAttribute(P)));null!=T&&null!=R.getAttribute(T)&&(R.geometry.y=ha+parseFloat(R.getAttribute(T)));var xa="@"==M.charAt(0)?R.getAttribute(M.substring(1)):null;R.geometry.width=null!=xa&&"auto"!=xa?parseFloat(R.getAttribute(M.substring(1))):"auto"==M||"auto"==xa?Aa.width+X:parseFloat(M);var sa="@"==K.charAt(0)?R.getAttribute(K.substring(1)):null;R.geometry.height=null!=sa&&"auto"!=sa?parseFloat(sa):"auto"==K||"auto"==sa?Aa.height+X:parseFloat(K);C+=R.geometry.height+
-ga}d?(null==l[qa]&&(l[qa]=[]),l[qa].push(R)):(e.push(R),null!=I?(I.style=q.replacePlaceholders(I,A,y),q.addCell(R,I),f.push(I)):k.push(q.addCell(R)))}for(S=0;S<f.length;S++)xa="@"==M.charAt(0)?f[S].getAttribute(M.substring(1)):null,sa="@"==K.charAt(0)?f[S].getAttribute(K.substring(1)):null,"auto"!=M&&"auto"!=xa||"auto"!=K&&"auto"!=sa||q.updateGroupBounds([f[S]],X,!0);for(var ka=k.slice(),Z=k.slice(),ma=0;ma<da.length;ma++)for(var O=da[ma],S=0;S<e.length;S++){var R=e[S],Ga=mxUtils.bind(this,function(b,
-c,d){var e=c.getAttribute(d.from);if(null!=e&&""!=e)for(var e=e.split(","),g=0;g<e.length;g++){var f=n[d.to][e[g]];if(null==f){f=new mxCell(e[g],new mxGeometry(J,V,0,0),F||"whiteSpace=wrap;html=1;");f.style=q.replacePlaceholders(c,f.style,y);var l=this.editor.graph.getPreferredSizeForCell(f);f.geometry.width=l.width+X;f.geometry.height=l.height+X;n[d.to][e[g]]=f;f.vertex=!0;f.id=e[g];k.push(q.addCell(f))}l=d.label;null!=d.fromlabel&&(l=(c.getAttribute(d.fromlabel)||"")+(l||""));null!=d.sourcelabel&&
-(l=q.replacePlaceholders(c,d.sourcelabel,y)+(l||""));null!=d.tolabel&&(l=(l||"")+(f.getAttribute(d.tolabel)||""));null!=d.targetlabel&&(l=(l||"")+q.replacePlaceholders(f,d.targetlabel,y));var m="target"==d.placeholders==!d.invert?f:b,m=null!=d.style?q.replacePlaceholders(m,d.style,y):q.createCurrentEdgeStyle(),l=q.insertEdge(null,null,l||"",d.invert?f:b,d.invert?b:f,m);if(null!=d.labels)for(m=0;m<d.labels.length;m++){var p=d.labels[m],t=new mxCell(p.label||m,new mxGeometry(null!=p.x?p.x:0,null!=p.y?
-p.y:0,0,0),"resizable=0;html=1;");t.vertex=!0;t.connectable=!1;t.geometry.relative=!0;null!=p.placeholders&&(t.value=q.replacePlaceholders("target"==p.placeholders==!d.invert?f:b,t.value,y));if(null!=p.dx||null!=p.dy)t.geometry.offset=new mxPoint(null!=p.dx?p.dx:0,null!=p.dy?p.dy:0);l.insert(t)}Z.push(l);mxUtils.remove(d.invert?b:f,ka)}});Ga(R,R,O);if(null!=l[R.id])for(fa=0;fa<l[R.id].length;fa++)Ga(R,l[R.id][fa],O)}if(null!=ua)for(S=0;S<e.length;S++)for(R=e[S],fa=0;fa<ua.length;fa++)q.setAttributeForCell(R,
-mxUtils.trim(ua[fa]),null);if(0<k.length){var Da=new mxParallelEdgeLayout(q);Da.spacing=W;Da.checkOverlap=!0;var ya=function(){0<Da.spacing&&Da.execute(q.getDefaultParent());for(var b=0;b<k.length;b++){var d=q.getCellGeometry(k[b]);d.x=Math.round(q.snap(d.x));d.y=Math.round(q.snap(d.y));"auto"==M&&(d.width=Math.round(q.snap(d.width)));"auto"==K&&(d.height=Math.round(q.snap(d.height)))}};if("["==aa.charAt(0)){var Ea=x;q.view.validate();this.executeLayoutList(JSON.parse(aa),function(){ya();Ea()});x=
-null}else if("circle"==aa){var va=new mxCircleLayout(q);va.disableEdgeStyle=!1;va.resetEdges=!1;var Ha=va.isVertexIgnored;va.isVertexIgnored=function(b){return Ha.apply(this,arguments)||0>mxUtils.indexOf(k,b)};this.executeLayout(function(){va.execute(q.getDefaultParent());ya()},!0,x);x=null}else if("horizontaltree"==aa||"verticaltree"==aa||"auto"==aa&&Z.length==2*k.length-1&&1==ka.length){q.view.validate();var Ca=new mxCompactTreeLayout(q,"horizontaltree"==aa);Ca.levelDistance=ga;Ca.edgeRouting=!1;
-Ca.resetEdges=!1;this.executeLayout(function(){Ca.execute(q.getDefaultParent(),0<ka.length?ka[0]:null)},!0,x);x=null}else if("horizontalflow"==aa||"verticalflow"==aa||"auto"==aa&&1==ka.length){q.view.validate();var za=new mxHierarchicalLayout(q,"horizontalflow"==aa?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);za.intraCellSpacing=ga;za.parallelEdgeSpacing=W;za.interRankCellSpacing=ja;za.disableEdgeStyle=!1;this.executeLayout(function(){za.execute(q.getDefaultParent(),Z);q.moveCells(Z,J,
-V)},!0,x);x=null}else if("organic"==aa||"auto"==aa&&Z.length>k.length){q.view.validate();var Ba=new mxFastOrganicLayout(q);Ba.forceConstant=3*ga;Ba.disableEdgeStyle=!1;Ba.resetEdges=!1;var U=Ba.isVertexIgnored;Ba.isVertexIgnored=function(b){return U.apply(this,arguments)||0>mxUtils.indexOf(k,b)};this.executeLayout(function(){Ba.execute(q.getDefaultParent());ya()},!0,x);x=null}}this.hideDialog()}finally{q.model.endUpdate()}null!=x&&x()}}catch(Fa){this.handleError(Fa)}};EditorUi.prototype.getSearch=
-function(b){var d="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=b&&0<window.location.search.length){var c="?",e;for(e in urlParams)0>mxUtils.indexOf(b,e)&&null!=urlParams[e]&&(d+=c+e+"="+urlParams[e],c="&")}else d=window.location.search;return d};EditorUi.prototype.getUrl=function(b){b=null!=b?b:window.location.pathname;var d=0<b.indexOf("?")?1:0;if("1"==urlParams.offline)b+=window.location.search;else{var c="tmp libs clibs state fileId code share notitle data url embed client create title splash".split(" "),
-e;for(e in urlParams)0>mxUtils.indexOf(c,e)&&(b=0==d?b+"?":b+"&",null!=urlParams[e]&&(b+=e+"="+urlParams[e],d++))}return b};EditorUi.prototype.showLinkDialog=function(b,c,e,f,l){b=new LinkDialog(this,b,c,e,!0,f,l);this.showDialog(b.container,560,130,!0,!0);b.init()};EditorUi.prototype.getServiceCount=function(b){var d=1;null==this.drive&&"function"!==typeof window.DriveClient||d++;null==this.dropbox&&"function"!==typeof window.DropboxClient||d++;null==this.oneDrive&&"function"!==typeof window.OneDriveClient||
-d++;null!=this.gitHub&&d++;null!=this.gitLab&&d++;null!=this.notion&&d++;b&&isLocalStorage&&"1"==urlParams.browser&&d++;return d};EditorUi.prototype.updateUi=function(){this.updateButtonContainer();this.updateActionStates();var b=this.getCurrentFile(),c=null!=b||"1"==urlParams.embed&&this.editor.graph.isEnabled();this.menus.get("viewPanels").setEnabled(c);this.menus.get("viewZoom").setEnabled(c);var e=("1"!=urlParams.embed||!this.editor.graph.isEnabled())&&(null==b||b.isRestricted());this.actions.get("makeCopy").setEnabled(!e);
-this.actions.get("print").setEnabled(!e);this.menus.get("exportAs").setEnabled(!e);this.menus.get("embed").setEnabled(!e);e="1"!=urlParams.embed||this.editor.graph.isEnabled();this.menus.get("extras").setEnabled(e);Editor.enableCustomLibraries&&(this.menus.get("openLibraryFrom").setEnabled(e),this.menus.get("newLibrary").setEnabled(e));b="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=b&&b.isEditable();this.actions.get("image").setEnabled(c);this.actions.get("zoomIn").setEnabled(c);this.actions.get("zoomOut").setEnabled(c);
-this.actions.get("resetView").setEnabled(c);this.actions.get("undo").setEnabled(this.canUndo()&&b);this.actions.get("redo").setEnabled(this.canRedo()&&b);this.menus.get("edit").setEnabled(c);this.menus.get("view").setEnabled(c);this.menus.get("importFrom").setEnabled(b);this.menus.get("arrange").setEnabled(b);null!=this.toolbar&&(null!=this.toolbar.edgeShapeMenu&&this.toolbar.edgeShapeMenu.setEnabled(b),null!=this.toolbar.edgeStyleMenu&&this.toolbar.edgeStyleMenu.setEnabled(b));this.updateUserElement()};
-EditorUi.prototype.updateButtonContainer=function(){};EditorUi.prototype.updateUserElement=function(){};EditorUi.prototype.scheduleSanityCheck=function(){};EditorUi.prototype.stopSanityCheck=function(){};EditorUi.prototype.isDiagramActive=function(){var b=this.getCurrentFile();return null!=b&&b.isEditable()||"1"==urlParams.embed&&this.editor.graph.isEnabled()};var l=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){l.apply(this,arguments);var b=this.editor.graph,
-c=this.getCurrentFile(),e=this.getSelectionState(),f=this.isDiagramActive();this.actions.get("pageSetup").setEnabled(f);this.actions.get("autosave").setEnabled(null!=c&&c.isEditable()&&c.isAutosaveOptional());this.actions.get("guides").setEnabled(f);this.actions.get("editData").setEnabled(b.isEnabled());this.actions.get("shadowVisible").setEnabled(f);this.actions.get("connectionArrows").setEnabled(f);this.actions.get("connectionPoints").setEnabled(f);this.actions.get("copyStyle").setEnabled(f&&!b.isSelectionEmpty());
-this.actions.get("pasteStyle").setEnabled(f&&0<e.cells.length);this.actions.get("editGeometry").setEnabled(0<e.vertices.length);this.actions.get("createShape").setEnabled(f);this.actions.get("createRevision").setEnabled(f);this.actions.get("moveToFolder").setEnabled(null!=c);this.actions.get("makeCopy").setEnabled(null!=c&&!c.isRestricted());this.actions.get("editDiagram").setEnabled(f&&(null==c||!c.isRestricted()));this.actions.get("publishLink").setEnabled(null!=c&&!c.isRestricted());this.actions.get("tags").setEnabled("hidden"!=
-this.diagramContainer.style.visibility);this.actions.get("layers").setEnabled("hidden"!=this.diagramContainer.style.visibility);this.actions.get("outline").setEnabled("hidden"!=this.diagramContainer.style.visibility);this.actions.get("rename").setEnabled(null!=c&&c.isRenamable()||"1"==urlParams.embed);this.actions.get("close").setEnabled(null!=c);this.menus.get("publish").setEnabled(null!=c&&!c.isRestricted());c=this.actions.get("findReplace");c.setEnabled("hidden"!=this.diagramContainer.style.visibility);
-c.label=mxResources.get("find")+(b.isEnabled()?"/"+mxResources.get("replace"):"")+"...";b=b.view.getState(b.getSelectionCell());this.actions.get("editShape").setEnabled(f&&null!=b&&null!=b.shape&&null!=b.shape.stencil)};var q=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);q.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=
-!1,ExportDialog.exportFile=function(b,c,e,f,l,n,q,t){var d=b.editor.graph;if("xml"==e)b.hideDialog(),b.saveData(c,"xml",mxUtils.getXml(b.editor.getGraphXml()),"text/xml");else if("svg"==e)b.hideDialog(),b.saveData(c,"svg",mxUtils.getXml(d.getSvg(f,l,n)),"image/svg+xml");else{var g=b.getFileData(!0,null,null,null,null,!0),k=d.getGraphBounds(),m=Math.floor(k.width*l/d.view.scale),p=Math.floor(k.height*l/d.view.scale);if(g.length<=MAX_REQUEST_SIZE&&m*p<MAX_AREA)if(b.hideDialog(),"png"!=e&&"jpg"!=e&&
-"jpeg"!=e||!b.isExportToCanvas()){var v={globalVars:d.getExportVariables()};t&&(v.grid={size:d.gridSize,steps:d.view.gridSteps,color:d.view.gridColor});b.saveRequest(c,e,function(b,c){return new mxXmlRequest(EXPORT_URL,"format="+e+"&base64="+(c||"0")+(null!=b?"&filename="+encodeURIComponent(b):"")+"&extras="+encodeURIComponent(JSON.stringify(v))+(0<q?"&dpi="+q:"")+"&bg="+(null!=f?f:"none")+"&w="+m+"&h="+p+"&border="+n+"&xml="+encodeURIComponent(g))})}else"png"==e?b.exportImage(l,null==f||"none"==
-f,!0,!1,!1,n,!0,!1,null,t,q):b.exportImage(l,!1,!0,!1,!1,n,!0,!1,"jpeg",t);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);var b=this.editor.graph,c="";if(null!=this.pages)for(var e=0;e<this.pages.length;e++){var f=b;this.currentPage!=this.pages[e]&&(f=this.createTemporaryGraph(b.getStylesheet()),this.updatePageRoot(this.pages[e]),f.model.setRoot(this.pages[e].root));c+=this.pages[e].getName()+" "+f.getIndexableText()+
-" "}else c=b.getIndexableText();this.editor.graph.setEnabled(!0);return c};EditorUi.prototype.showRemotelyStoredLibrary=function(b){var c={},d=document.createElement("div");d.style.whiteSpace="nowrap";var e=document.createElement("h3");mxUtils.write(e,mxUtils.htmlEntities(b));e.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";d.appendChild(e);var f=document.createElement("div");f.style.cssText="border:1px solid lightGray;overflow: auto;height:300px";f.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+
+e=[],f=[],k=[],l={};if(0<d.length){for(var n={},q=this.editor.graph,y=null,I=null,D=null,F=null,E=null,O=null,B=null,G="whiteSpace=wrap;html=1;",H=null,L=null,N="",M="auto",P="auto",V=null,W=null,ga=40,ea=40,ba=100,x=0,C=function(){null!=c?c(R):(q.setSelectionCells(R),q.scrollCellToVisible(q.getSelectionCell()))},J=q.getFreeInsertPoint(),X=J.x,ca=J.y,J=ca,ka=null,K="auto",L=null,na=[],qa=null,pa=null,ha=0;ha<d.length&&"#"==d[ha].charAt(0);){b=d[ha];for(ha++;ha<d.length&&"\\"==b.charAt(b.length-1)&&
+"#"==d[ha].charAt(0);)b=b.substring(0,b.length-1)+mxUtils.trim(d[ha].substring(1)),ha++;if("#"!=b.charAt(1)){var sa=b.indexOf(":");if(0<sa){var Y=mxUtils.trim(b.substring(1,sa)),Q=mxUtils.trim(b.substring(sa+1));"label"==Y?ka=q.sanitizeHtml(Q):"labelname"==Y&&0<Q.length&&"-"!=Q?E=Q:"labels"==Y&&0<Q.length&&"-"!=Q?B=JSON.parse(Q):"style"==Y?I=Q:"parentstyle"==Y?G=Q:"unknownStyle"==Y&&"-"!=Q?O=Q:"stylename"==Y&&0<Q.length&&"-"!=Q?F=Q:"styles"==Y&&0<Q.length&&"-"!=Q?D=JSON.parse(Q):"vars"==Y&&0<Q.length&&
+"-"!=Q?y=JSON.parse(Q):"identity"==Y&&0<Q.length&&"-"!=Q?H=Q:"parent"==Y&&0<Q.length&&"-"!=Q?L=Q:"namespace"==Y&&0<Q.length&&"-"!=Q?N=Q:"width"==Y?M=Q:"height"==Y?P=Q:"left"==Y&&0<Q.length?V=Q:"top"==Y&&0<Q.length?W=Q:"ignore"==Y?pa=Q.split(","):"connect"==Y?na.push(JSON.parse(Q)):"link"==Y?qa=Q:"padding"==Y?x=parseFloat(Q):"edgespacing"==Y?ga=parseFloat(Q):"nodespacing"==Y?ea=parseFloat(Q):"levelspacing"==Y?ba=parseFloat(Q):"layout"==Y&&(K=Q)}}}if(null==d[ha])throw Error(mxResources.get("invalidOrMissingFile"));
+for(var ta=this.editor.csvToArray(d[ha]),Y=sa=null,Q=[],T=0;T<ta.length;T++)H==ta[T]&&(sa=T),L==ta[T]&&(Y=T),Q.push(mxUtils.trim(ta[T]).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,""));null==ka&&(ka="%"+Q[0]+"%");if(null!=na)for(var ja=0;ja<na.length;ja++)null==n[na[ja].to]&&(n[na[ja].to]={});H=[];for(T=ha+1;T<d.length;T++){var ma=this.editor.csvToArray(d[T]);if(null==ma){var ra=40<d[T].length?d[T].substring(0,40)+"...":d[T];throw Error(ra+" ("+T+"):\n"+mxResources.get("containsValidationErrors"));
+}0<ma.length&&H.push(ma)}q.model.beginUpdate();try{for(T=0;T<H.length;T++){var ma=H[T],S=null,oa=null!=sa?N+ma[sa]:null;null!=oa&&(S=q.model.getCell(oa));var d=null!=S,da=new mxCell(ka,new mxGeometry(X,J,0,0),I||"whiteSpace=wrap;html=1;");da.vertex=!0;da.id=oa;for(var Z=0;Z<ma.length;Z++)q.setAttributeForCell(da,Q[Z],ma[Z]);if(null!=E&&null!=B){var la=B[da.getAttribute(E)];null!=la&&q.labelChanged(da,la)}if(null!=F&&null!=D){var ya=D[da.getAttribute(F)];null!=ya&&(da.style=ya)}q.setAttributeForCell(da,
+"placeholders","1");da.style=q.replacePlaceholders(da,da.style,y);d?(0>mxUtils.indexOf(k,S)&&k.push(S),q.fireEvent(new mxEventObject("cellsInserted","cells",[S]))):q.fireEvent(new mxEventObject("cellsInserted","cells",[da]));S=da;if(!d)for(ja=0;ja<na.length;ja++)n[na[ja].to][S.getAttribute(na[ja].to)]=S;null!=qa&&"link"!=qa&&(q.setLinkForCell(S,S.getAttribute(qa)),q.setAttributeForCell(S,qa,null));var za=this.editor.graph.getPreferredSizeForCell(S),L=null!=Y?q.model.getCell(N+ma[Y]):null;if(S.vertex){ra=
+null!=L?0:X;ha=null!=L?0:ca;null!=V&&null!=S.getAttribute(V)&&(S.geometry.x=ra+parseFloat(S.getAttribute(V)));null!=W&&null!=S.getAttribute(W)&&(S.geometry.y=ha+parseFloat(S.getAttribute(W)));var ua="@"==M.charAt(0)?S.getAttribute(M.substring(1)):null;S.geometry.width=null!=ua&&"auto"!=ua?parseFloat(S.getAttribute(M.substring(1))):"auto"==M||"auto"==ua?za.width+x:parseFloat(M);var fa="@"==P.charAt(0)?S.getAttribute(P.substring(1)):null;S.geometry.height=null!=fa&&"auto"!=fa?parseFloat(fa):"auto"==
+P||"auto"==fa?za.height+x:parseFloat(P);J+=S.geometry.height+ea}d?(null==l[oa]&&(l[oa]=[]),l[oa].push(S)):(e.push(S),null!=L?(L.style=q.replacePlaceholders(L,G,y),q.addCell(S,L),f.push(L)):k.push(q.addCell(S)))}for(T=0;T<f.length;T++)ua="@"==M.charAt(0)?f[T].getAttribute(M.substring(1)):null,fa="@"==P.charAt(0)?f[T].getAttribute(P.substring(1)):null,"auto"!=M&&"auto"!=ua||"auto"!=P&&"auto"!=fa||q.updateGroupBounds([f[T]],x,!0);for(var aa=k.slice(),R=k.slice(),ja=0;ja<na.length;ja++)for(var Fa=na[ja],
+T=0;T<e.length;T++){var S=e[T],Ga=mxUtils.bind(this,function(b,c,d){var e=c.getAttribute(d.from);if(null!=e&&""!=e)for(var e=e.split(","),g=0;g<e.length;g++){var f=n[d.to][e[g]];if(null==f&&null!=O){f=new mxCell(e[g],new mxGeometry(X,ca,0,0),O);f.style=q.replacePlaceholders(c,f.style,y);var l=this.editor.graph.getPreferredSizeForCell(f);f.geometry.width=l.width+x;f.geometry.height=l.height+x;n[d.to][e[g]]=f;f.vertex=!0;f.id=e[g];k.push(q.addCell(f))}if(null!=f){l=d.label;null!=d.fromlabel&&(l=(c.getAttribute(d.fromlabel)||
+"")+(l||""));null!=d.sourcelabel&&(l=q.replacePlaceholders(c,d.sourcelabel,y)+(l||""));null!=d.tolabel&&(l=(l||"")+(f.getAttribute(d.tolabel)||""));null!=d.targetlabel&&(l=(l||"")+q.replacePlaceholders(f,d.targetlabel,y));var m="target"==d.placeholders==!d.invert?f:b,m=null!=d.style?q.replacePlaceholders(m,d.style,y):q.createCurrentEdgeStyle(),l=q.insertEdge(null,null,l||"",d.invert?f:b,d.invert?b:f,m);if(null!=d.labels)for(m=0;m<d.labels.length;m++){var p=d.labels[m],t=new mxCell(p.label||m,new mxGeometry(null!=
+p.x?p.x:0,null!=p.y?p.y:0,0,0),"resizable=0;html=1;");t.vertex=!0;t.connectable=!1;t.geometry.relative=!0;null!=p.placeholders&&(t.value=q.replacePlaceholders("target"==p.placeholders==!d.invert?f:b,t.value,y));if(null!=p.dx||null!=p.dy)t.geometry.offset=new mxPoint(null!=p.dx?p.dx:0,null!=p.dy?p.dy:0);l.insert(t)}R.push(l);mxUtils.remove(d.invert?b:f,aa)}}});Ga(S,S,Fa);if(null!=l[S.id])for(Z=0;Z<l[S.id].length;Z++)Ga(S,l[S.id][Z],Fa)}if(null!=pa)for(T=0;T<e.length;T++)for(S=e[T],Z=0;Z<pa.length;Z++)q.setAttributeForCell(S,
+mxUtils.trim(pa[Z]),null);if(0<k.length){var wa=new mxParallelEdgeLayout(q);wa.spacing=ga;wa.checkOverlap=!0;var Aa=function(){0<wa.spacing&&wa.execute(q.getDefaultParent());for(var b=0;b<k.length;b++){var d=q.getCellGeometry(k[b]);d.x=Math.round(q.snap(d.x));d.y=Math.round(q.snap(d.y));"auto"==M&&(d.width=Math.round(q.snap(d.width)));"auto"==P&&(d.height=Math.round(q.snap(d.height)))}};if("["==K.charAt(0)){var xa=C;q.view.validate();this.executeLayoutList(JSON.parse(K),function(){Aa();xa()});C=null}else if("circle"==
+K){var Ba=new mxCircleLayout(q);Ba.disableEdgeStyle=!1;Ba.resetEdges=!1;var Ha=Ba.isVertexIgnored;Ba.isVertexIgnored=function(b){return Ha.apply(this,arguments)||0>mxUtils.indexOf(k,b)};this.executeLayout(function(){Ba.execute(q.getDefaultParent());Aa()},!0,C);C=null}else if("horizontaltree"==K||"verticaltree"==K||"auto"==K&&R.length==2*k.length-1&&1==aa.length){q.view.validate();var Ca=new mxCompactTreeLayout(q,"horizontaltree"==K);Ca.levelDistance=ea;Ca.edgeRouting=!1;Ca.resetEdges=!1;this.executeLayout(function(){Ca.execute(q.getDefaultParent(),
+0<aa.length?aa[0]:null)},!0,C);C=null}else if("horizontalflow"==K||"verticalflow"==K||"auto"==K&&1==aa.length){q.view.validate();var Da=new mxHierarchicalLayout(q,"horizontalflow"==K?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);Da.intraCellSpacing=ea;Da.parallelEdgeSpacing=ga;Da.interRankCellSpacing=ba;Da.disableEdgeStyle=!1;this.executeLayout(function(){Da.execute(q.getDefaultParent(),R);q.moveCells(R,X,ca)},!0,C);C=null}else if("organic"==K||"auto"==K&&R.length>k.length){q.view.validate();
+var U=new mxFastOrganicLayout(q);U.forceConstant=3*ea;U.disableEdgeStyle=!1;U.resetEdges=!1;var Ea=U.isVertexIgnored;U.isVertexIgnored=function(b){return Ea.apply(this,arguments)||0>mxUtils.indexOf(k,b)};this.executeLayout(function(){U.execute(q.getDefaultParent());Aa()},!0,C);C=null}}this.hideDialog()}finally{q.model.endUpdate()}null!=C&&C()}}catch(Na){this.handleError(Na)}};EditorUi.prototype.getSearch=function(b){var d="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=b&&0<window.location.search.length){var c=
+"?",e;for(e in urlParams)0>mxUtils.indexOf(b,e)&&null!=urlParams[e]&&(d+=c+e+"="+urlParams[e],c="&")}else d=window.location.search;return d};EditorUi.prototype.getUrl=function(b){b=null!=b?b:window.location.pathname;var d=0<b.indexOf("?")?1:0;if("1"==urlParams.offline)b+=window.location.search;else{var c="tmp libs clibs state fileId code share notitle data url embed client create title splash".split(" "),e;for(e in urlParams)0>mxUtils.indexOf(c,e)&&(b=0==d?b+"?":b+"&",null!=urlParams[e]&&(b+=e+"="+
+urlParams[e],d++))}return b};EditorUi.prototype.showLinkDialog=function(b,c,e,f,l){b=new LinkDialog(this,b,c,e,!0,f,l);this.showDialog(b.container,560,130,!0,!0);b.init()};EditorUi.prototype.getServiceCount=function(b){var d=1;null==this.drive&&"function"!==typeof window.DriveClient||d++;null==this.dropbox&&"function"!==typeof window.DropboxClient||d++;null==this.oneDrive&&"function"!==typeof window.OneDriveClient||d++;null!=this.gitHub&&d++;null!=this.gitLab&&d++;null!=this.notion&&d++;b&&isLocalStorage&&
+"1"==urlParams.browser&&d++;return d};EditorUi.prototype.updateUi=function(){this.updateButtonContainer();this.updateActionStates();var b=this.getCurrentFile(),c=null!=b||"1"==urlParams.embed&&this.editor.graph.isEnabled();this.menus.get("viewPanels").setEnabled(c);this.menus.get("viewZoom").setEnabled(c);var e=("1"!=urlParams.embed||!this.editor.graph.isEnabled())&&(null==b||b.isRestricted());this.actions.get("makeCopy").setEnabled(!e);this.actions.get("print").setEnabled(!e);this.menus.get("exportAs").setEnabled(!e);
+this.menus.get("embed").setEnabled(!e);e="1"!=urlParams.embed||this.editor.graph.isEnabled();this.menus.get("extras").setEnabled(e);Editor.enableCustomLibraries&&(this.menus.get("openLibraryFrom").setEnabled(e),this.menus.get("newLibrary").setEnabled(e));b="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=b&&b.isEditable();this.actions.get("image").setEnabled(c);this.actions.get("zoomIn").setEnabled(c);this.actions.get("zoomOut").setEnabled(c);this.actions.get("resetView").setEnabled(c);
+this.actions.get("undo").setEnabled(this.canUndo()&&b);this.actions.get("redo").setEnabled(this.canRedo()&&b);this.menus.get("edit").setEnabled(c);this.menus.get("view").setEnabled(c);this.menus.get("importFrom").setEnabled(b);this.menus.get("arrange").setEnabled(b);null!=this.toolbar&&(null!=this.toolbar.edgeShapeMenu&&this.toolbar.edgeShapeMenu.setEnabled(b),null!=this.toolbar.edgeStyleMenu&&this.toolbar.edgeStyleMenu.setEnabled(b));this.updateUserElement()};EditorUi.prototype.updateButtonContainer=
+function(){};EditorUi.prototype.updateUserElement=function(){};EditorUi.prototype.scheduleSanityCheck=function(){};EditorUi.prototype.stopSanityCheck=function(){};EditorUi.prototype.isDiagramActive=function(){var b=this.getCurrentFile();return null!=b&&b.isEditable()||"1"==urlParams.embed&&this.editor.graph.isEnabled()};var l=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){l.apply(this,arguments);var b=this.editor.graph,c=this.getCurrentFile(),e=this.getSelectionState(),
+f=this.isDiagramActive();this.actions.get("pageSetup").setEnabled(f);this.actions.get("autosave").setEnabled(null!=c&&c.isEditable()&&c.isAutosaveOptional());this.actions.get("guides").setEnabled(f);this.actions.get("editData").setEnabled(b.isEnabled());this.actions.get("shadowVisible").setEnabled(f);this.actions.get("connectionArrows").setEnabled(f);this.actions.get("connectionPoints").setEnabled(f);this.actions.get("copyStyle").setEnabled(f&&!b.isSelectionEmpty());this.actions.get("pasteStyle").setEnabled(f&&
+0<e.cells.length);this.actions.get("editGeometry").setEnabled(0<e.vertices.length);this.actions.get("createShape").setEnabled(f);this.actions.get("createRevision").setEnabled(f);this.actions.get("moveToFolder").setEnabled(null!=c);this.actions.get("makeCopy").setEnabled(null!=c&&!c.isRestricted());this.actions.get("editDiagram").setEnabled(f&&(null==c||!c.isRestricted()));this.actions.get("publishLink").setEnabled(null!=c&&!c.isRestricted());this.actions.get("tags").setEnabled("hidden"!=this.diagramContainer.style.visibility);
+this.actions.get("layers").setEnabled("hidden"!=this.diagramContainer.style.visibility);this.actions.get("outline").setEnabled("hidden"!=this.diagramContainer.style.visibility);this.actions.get("rename").setEnabled(null!=c&&c.isRenamable()||"1"==urlParams.embed);this.actions.get("close").setEnabled(null!=c);this.menus.get("publish").setEnabled(null!=c&&!c.isRestricted());c=this.actions.get("findReplace");c.setEnabled("hidden"!=this.diagramContainer.style.visibility);c.label=mxResources.get("find")+
+(b.isEnabled()?"/"+mxResources.get("replace"):"")+"...";b=b.view.getState(b.getSelectionCell());this.actions.get("editShape").setEnabled(f&&null!=b&&null!=b.shape&&null!=b.shape.stencil)};var q=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);q.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=
+function(b,c,e,f,l,n,q,t){var d=b.editor.graph;if("xml"==e)b.hideDialog(),b.saveData(c,"xml",mxUtils.getXml(b.editor.getGraphXml()),"text/xml");else if("svg"==e)b.hideDialog(),b.saveData(c,"svg",mxUtils.getXml(d.getSvg(f,l,n)),"image/svg+xml");else{var g=b.getFileData(!0,null,null,null,null,!0),k=d.getGraphBounds(),m=Math.floor(k.width*l/d.view.scale),p=Math.floor(k.height*l/d.view.scale);if(g.length<=MAX_REQUEST_SIZE&&m*p<MAX_AREA)if(b.hideDialog(),"png"!=e&&"jpg"!=e&&"jpeg"!=e||!b.isExportToCanvas()){var u=
+{globalVars:d.getExportVariables()};t&&(u.grid={size:d.gridSize,steps:d.view.gridSteps,color:d.view.gridColor});b.saveRequest(c,e,function(b,c){return new mxXmlRequest(EXPORT_URL,"format="+e+"&base64="+(c||"0")+(null!=b?"&filename="+encodeURIComponent(b):"")+"&extras="+encodeURIComponent(JSON.stringify(u))+(0<q?"&dpi="+q:"")+"&bg="+(null!=f?f:"none")+"&w="+m+"&h="+p+"&border="+n+"&xml="+encodeURIComponent(g))})}else"png"==e?b.exportImage(l,null==f||"none"==f,!0,!1,!1,n,!0,!1,null,t,q):b.exportImage(l,
+!1,!0,!1,!1,n,!0,!1,"jpeg",t);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);var b=this.editor.graph,c="";if(null!=this.pages)for(var e=0;e<this.pages.length;e++){var f=b;this.currentPage!=this.pages[e]&&(f=this.createTemporaryGraph(b.getStylesheet()),this.updatePageRoot(this.pages[e]),f.model.setRoot(this.pages[e].root));c+=this.pages[e].getName()+" "+f.getIndexableText()+" "}else c=b.getIndexableText();
+this.editor.graph.setEnabled(!0);return c};EditorUi.prototype.showRemotelyStoredLibrary=function(b){var c={},d=document.createElement("div");d.style.whiteSpace="nowrap";var e=document.createElement("h3");mxUtils.write(e,mxUtils.htmlEntities(b));e.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";d.appendChild(e);var f=document.createElement("div");f.style.cssText="border:1px solid lightGray;overflow: auto;height:300px";f.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+
IMAGE_PATH+'/spin.gif"></div>';var l={};try{var n=mxSettings.getCustomLibraries();for(b=0;b<n.length;b++){var q=n[b];if("R"==q.substring(0,1)){var z=JSON.parse(decodeURIComponent(q.substring(1)));l[z[0]]={id:z[0],title:z[1],downloadUrl:z[2]}}}}catch(y){}this.remoteInvoke("getCustomLibraries",null,null,function(b){f.innerHTML="";if(0==b.length)f.innerHTML='<div style="text-align:center;padding-top:20px;color:gray;">'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+"</div>";else for(var d=0;d<
b.length;d++){var e=b[d];l[e.id]&&(c[e.id]=e);var g=this.addCheckbox(f,e.title,l[e.id]);(function(b,d){mxEvent.addListener(d,"change",function(){this.checked?c[b.id]=b:delete c[b.id]})})(e,g)}},mxUtils.bind(this,function(b){f.innerHTML="";var c=document.createElement("div");c.style.padding="8px";c.style.textAlign="center";mxUtils.write(c,mxResources.get("error")+": ");mxUtils.write(c,null!=b&&null!=b.message?b.message:mxResources.get("unknownError"));f.appendChild(c)}));d.appendChild(f);d=new CustomDialog(this,
-d,mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"));var b=0,d;for(d in c)null==l[d]&&(b++,mxUtils.bind(this,function(c){this.remoteInvoke("getFileContent",[c.downloadUrl],null,mxUtils.bind(this,function(d){b--;0==b&&this.spinner.stop();try{this.loadLibrary(new RemoteLibrary(this,d,c))}catch(H){this.handleError(H,mxResources.get("errorLoadingFile"))}}),mxUtils.bind(this,function(){b--;0==b&&this.spinner.stop();this.handleError(null,mxResources.get("errorLoadingFile"))}))})(c[d]));
+d,mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"));var b=0,d;for(d in c)null==l[d]&&(b++,mxUtils.bind(this,function(c){this.remoteInvoke("getFileContent",[c.downloadUrl],null,mxUtils.bind(this,function(d){b--;0==b&&this.spinner.stop();try{this.loadLibrary(new RemoteLibrary(this,d,c))}catch(E){this.handleError(E,mxResources.get("errorLoadingFile"))}}),mxUtils.bind(this,function(){b--;0==b&&this.spinner.stop();this.handleError(null,mxResources.get("errorLoadingFile"))}))})(c[d]));
for(d in l)c[d]||this.closeLibrary(new RemoteLibrary(this,null,l[d]));0==b&&this.spinner.stop()}),null,null,"https://www.diagrams.net/doc/faq/custom-libraries-confluence-cloud");this.showDialog(d.container,340,390,!0,!0,null,null,null,null,!0)};EditorUi.prototype.remoteInvokableFns={getDiagramTextContent:{isAsync:!1},getLocalStorageFile:{isAsync:!1,allowedDomains:["app.diagrams.net"]},getLocalStorageFileNames:{isAsync:!1,allowedDomains:["app.diagrams.net"]},setMigratedFlag:{isAsync:!1,allowedDomains:["app.diagrams.net"]}};
EditorUi.prototype.remoteInvokeCallbacks=[];EditorUi.prototype.remoteInvokeQueue=[];EditorUi.prototype.handleRemoteInvokeReady=function(b){this.remoteWin=b;for(var c=0;c<this.remoteInvokeQueue.length;c++)b.postMessage(this.remoteInvokeQueue[c],"*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(b){var c=b.msgMarkers,d=this.remoteInvokeCallbacks[c.callbackId];if(null==d)throw Error("No callback for "+(null!=c?c.callbackId:"null"));b.error?d.error&&d.error(b.error.errResp):
d.callback&&d.callback.apply(this,b.resp);this.remoteInvokeCallbacks[c.callbackId]=null};EditorUi.prototype.remoteInvoke=function(b,c,e,f,l){var d=!0,g=window.setTimeout(mxUtils.bind(this,function(){d=!1;l({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.timeout),k=mxUtils.bind(this,function(){window.clearTimeout(g);d&&f.apply(this,arguments)}),m=mxUtils.bind(this,function(){window.clearTimeout(g);d&&l.apply(this,arguments)});e=e||{};e.callbackId=this.remoteInvokeCallbacks.length;
this.remoteInvokeCallbacks.push({callback:k,error:m});b=JSON.stringify({event:"remoteInvoke",funtionName:b,functionArgs:c,msgMarkers:e});null!=this.remoteWin?this.remoteWin.postMessage(b,"*"):this.remoteInvokeQueue.push(b)};EditorUi.prototype.handleRemoteInvoke=function(b,c){var d=mxUtils.bind(this,function(c,d){var e={event:"remoteInvokeResponse",msgMarkers:b.msgMarkers};null!=d?e.error={errResp:d}:null!=c&&(e.resp=c);this.remoteWin.postMessage(JSON.stringify(e),"*")});try{var e=b.funtionName,f=
this.remoteInvokableFns[e];if(null!=f&&"function"===typeof this[e]){if(f.allowedDomains){for(var k=!1,l=0;l<f.allowedDomains.length;l++)if(c=="https://"+f.allowedDomains[l]){k=!0;break}if(!k){d(null,"Invalid Call: "+e+" is not allowed.");return}}var n=b.functionArgs;Array.isArray(n)||(n=[]);if(f.isAsync)n.push(function(){d(Array.prototype.slice.apply(arguments))}),n.push(function(b){d(null,b||"Unkown Error")}),this[e].apply(this,n);else{var q=this[e].apply(this,n);d([q])}}else d(null,"Invalid Call: "+
e+" is not found.")}catch(y){d(null,"Invalid Call: An error occurred, "+y.message)}};EditorUi.prototype.openDatabase=function(b,c){if(null==this.database){var d=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB;if(null!=d)try{var e=d.open("database",2);e.onupgradeneeded=function(b){try{var d=e.result;1>b.oldVersion&&d.createObjectStore("objects",{keyPath:"key"});2>b.oldVersion&&(d.createObjectStore("files",{keyPath:"title"}),d.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=
-isLocalStorage)}catch(u){null!=c&&c(u)}};e.onsuccess=mxUtils.bind(this,function(c){var d=e.result;this.database=d;EditorUi.migrateStorageFiles&&(StorageFile.migrate(d),EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(b){if(!b||"1"==urlParams.forceMigration){var c=document.createElement("iframe");c.style.display="none";c.setAttribute("src","https://www.draw.io?embed=1&proto=json&forceMigration="+
+isLocalStorage)}catch(v){null!=c&&c(v)}};e.onsuccess=mxUtils.bind(this,function(c){var d=e.result;this.database=d;EditorUi.migrateStorageFiles&&(StorageFile.migrate(d),EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(b){if(!b||"1"==urlParams.forceMigration){var c=document.createElement("iframe");c.style.display="none";c.setAttribute("src","https://www.draw.io?embed=1&proto=json&forceMigration="+
urlParams.forceMigration);document.body.appendChild(c);var d=!0,e=!1,g,f=0,k=mxUtils.bind(this,function(){e=!0;this.setDatabaseItem(".drawioMigrated3",!0);c.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),l=mxUtils.bind(this,function(){f++;m()}),m=mxUtils.bind(this,function(){try{if(f>=g.length)k();else{var b=g[f];StorageFile.getFileContent(this,b,mxUtils.bind(this,function(d){null==d||".scratchpad"==b&&d==this.emptyLibraryXml?c.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",
-funtionName:"getLocalStorageFile",functionArgs:[b]}),"*"):l()}),l)}}catch(I){console.log(I)}}),n=mxUtils.bind(this,function(b){try{this.setDatabaseItem(null,[{title:b.title,size:b.data.length,lastModified:Date.now(),type:b.isLib?"L":"F"},{title:b.title,data:b.data}],l,l,["filesInfo","files"])}catch(I){console.log(I)}});b=mxUtils.bind(this,function(b){try{if(b.source==c.contentWindow){var f={};try{f=JSON.parse(b.data)}catch(L){}"init"==f.event?(c.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),
+funtionName:"getLocalStorageFile",functionArgs:[b]}),"*"):l()}),l)}}catch(H){console.log(H)}}),n=mxUtils.bind(this,function(b){try{this.setDatabaseItem(null,[{title:b.title,size:b.data.length,lastModified:Date.now(),type:b.isLib?"L":"F"},{title:b.title,data:b.data}],l,l,["filesInfo","files"])}catch(H){console.log(H)}});b=mxUtils.bind(this,function(b){try{if(b.source==c.contentWindow){var f={};try{f=JSON.parse(b.data)}catch(L){}"init"==f.event?(c.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),
"*"),c.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFileNames"}),"*")):"remoteInvokeResponse"!=f.event||e||(d?null!=f.resp&&0<f.resp.length&&null!=f.resp[0]?(g=f.resp[0],d=!1,m()):k():null!=f.resp&&0<f.resp.length&&null!=f.resp[0]?n(f.resp[0]):l())}}catch(L){console.log(L)}});window.addEventListener("message",b)}})));b(d);d.onversionchange=function(){d.close()}});e.onerror=c;e.onblocked=function(){}}catch(m){null!=c&&c(m)}else null!=c&&c()}else b(this.database)};
EditorUi.prototype.setDatabaseItem=function(b,c,e,f,l){this.openDatabase(mxUtils.bind(this,function(d){try{l=l||"objects";Array.isArray(l)||(l=[l],b=[b],c=[c]);var g=d.transaction(l,"readwrite");g.oncomplete=e;g.onerror=f;for(d=0;d<l.length;d++)g.objectStore(l[d]).put(null!=b&&null!=b[d]?{key:b[d],data:c[d]}:c[d])}catch(t){null!=f&&f(t)}}),f)};EditorUi.prototype.removeDatabaseItem=function(b,c,e,f){this.openDatabase(mxUtils.bind(this,function(d){f=f||"objects";Array.isArray(f)||(f=[f],b=[b]);d=d.transaction(f,
-"readwrite");d.oncomplete=c;d.onerror=e;for(var g=0;g<f.length;g++)d.objectStore(f[g])["delete"](b[g])}),e)};EditorUi.prototype.getDatabaseItem=function(b,c,e,f){this.openDatabase(mxUtils.bind(this,function(d){try{f=f||"objects";var g=d.transaction([f],"readonly").objectStore(f).get(b);g.onsuccess=function(){c(g.result)};g.onerror=e}catch(u){null!=e&&e(u)}}),e)};EditorUi.prototype.getDatabaseItems=function(b,c,e){this.openDatabase(mxUtils.bind(this,function(d){try{e=e||"objects";var f=d.transaction([e],
-"readonly").objectStore(e).openCursor(IDBKeyRange.lowerBound(0)),g=[];f.onsuccess=function(c){null==c.target.result?b(g):(g.push(c.target.result.value),c.target.result["continue"]())};f.onerror=c}catch(u){null!=c&&c(u)}}),c)};EditorUi.prototype.getDatabaseItemKeys=function(b,c,e){this.openDatabase(mxUtils.bind(this,function(d){try{e=e||"objects";var f=d.transaction([e],"readonly").objectStore(e).getAllKeys();f.onsuccess=function(){b(f.result)};f.onerror=c}catch(v){null!=c&&c(v)}}),c)};EditorUi.prototype.commentsSupported=
+"readwrite");d.oncomplete=c;d.onerror=e;for(var g=0;g<f.length;g++)d.objectStore(f[g])["delete"](b[g])}),e)};EditorUi.prototype.getDatabaseItem=function(b,c,e,f){this.openDatabase(mxUtils.bind(this,function(d){try{f=f||"objects";var g=d.transaction([f],"readonly").objectStore(f).get(b);g.onsuccess=function(){c(g.result)};g.onerror=e}catch(v){null!=e&&e(v)}}),e)};EditorUi.prototype.getDatabaseItems=function(b,c,e){this.openDatabase(mxUtils.bind(this,function(d){try{e=e||"objects";var f=d.transaction([e],
+"readonly").objectStore(e).openCursor(IDBKeyRange.lowerBound(0)),g=[];f.onsuccess=function(c){null==c.target.result?b(g):(g.push(c.target.result.value),c.target.result["continue"]())};f.onerror=c}catch(v){null!=c&&c(v)}}),c)};EditorUi.prototype.getDatabaseItemKeys=function(b,c,e){this.openDatabase(mxUtils.bind(this,function(d){try{e=e||"objects";var f=d.transaction([e],"readonly").objectStore(e).getAllKeys();f.onsuccess=function(){b(f.result)};f.onerror=c}catch(u){null!=c&&c(u)}}),c)};EditorUi.prototype.commentsSupported=
function(){var b=this.getCurrentFile();return null!=b?b.commentsSupported():!1};EditorUi.prototype.commentsRefreshNeeded=function(){var b=this.getCurrentFile();return null!=b?b.commentsRefreshNeeded():!0};EditorUi.prototype.commentsSaveNeeded=function(){var b=this.getCurrentFile();return null!=b?b.commentsSaveNeeded():!1};EditorUi.prototype.getComments=function(b,c){var d=this.getCurrentFile();null!=d?d.getComments(b,c):b([])};EditorUi.prototype.addComment=function(b,c,e){var d=this.getCurrentFile();
null!=d?d.addComment(b,c,e):c(Date.now())};EditorUi.prototype.canReplyToReplies=function(){var b=this.getCurrentFile();return null!=b?b.canReplyToReplies():!0};EditorUi.prototype.canComment=function(){var b=this.getCurrentFile();return null!=b?b.canComment():!0};EditorUi.prototype.newComment=function(b,c){var d=this.getCurrentFile();return null!=d?d.newComment(b,c):new DrawioComment(this,null,b,Date.now(),Date.now(),!1,c)};EditorUi.prototype.isRevisionHistorySupported=function(){var b=this.getCurrentFile();
return null!=b&&b.isRevisionHistorySupported()};EditorUi.prototype.getRevisions=function(b,c){var d=this.getCurrentFile();null!=d&&d.getRevisions?d.getRevisions(b,c):c({message:mxResources.get("unknownError")})};EditorUi.prototype.isRevisionHistoryEnabled=function(){var b=this.getCurrentFile();return null!=b&&(b.constructor==DriveFile&&b.isEditable()||b.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.addRemoteServiceSecurityCheck=function(b){b.setRequestHeader("Content-Language",
"da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(b,c,e,f,l,n,q,t){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(b,c,e,f,l,n,q,t)};EditorUi.prototype.loadFonts=function(b){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(b)};EditorUi.prototype.createSvgDataUri=function(b){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(b)};EditorUi.prototype.embedCssFonts=function(b,c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");
-return this.editor.embedCssFonts(b,c)};EditorUi.prototype.embedExtFonts=function(b){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(b)};EditorUi.prototype.exportToCanvas=function(b,c,e,f,l,n,q,t,z,y,F,D,E,H,N,A){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(b,c,e,f,l,n,q,t,z,y,F,D,E,H,N,A)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");
+return this.editor.embedCssFonts(b,c)};EditorUi.prototype.embedExtFonts=function(b){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(b)};EditorUi.prototype.exportToCanvas=function(b,c,e,f,l,n,q,t,z,y,I,D,F,E,O,B){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(b,c,e,f,l,n,q,t,z,y,I,D,F,E,O,B)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");
return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(b,c,e,f){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");return this.editor.convertImages(b,c,e,f)};EditorUi.prototype.convertImageToDataUri=function(b,c){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(b,c)};EditorUi.prototype.base64Encode=function(b){EditorUi.logEvent("SHOULD NOT BE CALLED: base64Encode");return Editor.base64Encode(b)};EditorUi.prototype.updateCRC=
function(b,c,e,f){EditorUi.logEvent("SHOULD NOT BE CALLED: updateCRC");return Editor.updateCRC(b,c,e,f)};EditorUi.prototype.crc32=function(b){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");return Editor.crc32(b)};EditorUi.prototype.writeGraphModelToPng=function(b,c,e,f,l){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");return Editor.writeGraphModelToPng(b,c,e,f,l)};EditorUi.prototype.getLocalStorageFileNames=function(){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=
urlParams.forceMigration)return null;for(var b=[],c=0;c<localStorage.length;c++){var e=localStorage.key(c),f=localStorage.getItem(e);if(0<e.length&&(".scratchpad"==e||"."!=e.charAt(0))&&0<f.length){var l="<mxfile "===f.substring(0,8)||"<?xml"===f.substring(0,5)||"\x3c!--[if IE]>"===f.substring(0,12),f="<mxlibrary>"===f.substring(0,11);(l||f)&&b.push(e)}}return b};EditorUi.prototype.getLocalStorageFile=function(b){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;
var c=localStorage.getItem(b);return{title:b,data:c,isLib:"<mxlibrary>"===c.substring(0,11)}};EditorUi.prototype.setMigratedFlag=function(){localStorage.setItem(".localStorageMigrated","1")}})();
-var CommentsWindow=function(b,c,e,f,n,l){function q(){for(var b=D.getElementsByTagName("div"),c=0,d=0;d<b.length;d++)"none"!=b[d].style.display&&b[d].parentNode==D&&c++;E.style.display=0==c?"block":"none"}function d(b,c,d,e){function f(){c.removeChild(l);c.removeChild(m);k.style.display="block";g.style.display="block"}z={div:c,comment:b,saveCallback:d,deleteOnCancel:e};var g=c.querySelector(".geCommentTxt"),k=c.querySelector(".geCommentActionsList"),l=document.createElement("textarea");l.className=
+var CommentsWindow=function(b,c,e,f,n,l){function q(){for(var b=D.getElementsByTagName("div"),c=0,d=0;d<b.length;d++)"none"!=b[d].style.display&&b[d].parentNode==D&&c++;F.style.display=0==c?"block":"none"}function d(b,c,d,e){function f(){c.removeChild(l);c.removeChild(m);k.style.display="block";g.style.display="block"}z={div:c,comment:b,saveCallback:d,deleteOnCancel:e};var g=c.querySelector(".geCommentTxt"),k=c.querySelector(".geCommentActionsList"),l=document.createElement("textarea");l.className=
"geCommentEditTxtArea";l.style.minHeight=g.offsetHeight+"px";l.value=b.content;c.insertBefore(l,g);var m=document.createElement("div");m.className="geCommentEditBtns";var n=mxUtils.button(mxResources.get("cancel"),function(){e?(c.parentNode.removeChild(c),q()):f();z=null});n.className="geCommentEditBtn";m.appendChild(n);var p=mxUtils.button(mxResources.get("save"),function(){g.innerHTML="";b.content=l.value;mxUtils.write(g,b.content);f();d(b);z=null});mxEvent.addListener(l,"keydown",mxUtils.bind(this,
function(b){mxEvent.isConsumed(b)||((mxEvent.isControlDown(b)||mxClient.IS_MAC&&mxEvent.isMetaDown(b))&&13==b.keyCode?(p.click(),mxEvent.consume(b)):27==b.keyCode&&(n.click(),mxEvent.consume(b)))}));p.focus();p.className="geCommentEditBtn gePrimaryBtn";m.appendChild(p);c.insertBefore(m,g);k.style.display="none";g.style.display="none";l.focus()}function k(c,d){d.innerHTML="";var e=new Date(c.modifiedDate),f=b.timeSince(e);null==f&&(f=mxResources.get("lessThanAMinute"));mxUtils.write(d,mxResources.get("timeAgo",
-[f],"{1} ago"));d.setAttribute("title",e.toLocaleDateString()+" "+e.toLocaleTimeString())}function g(b){var c=document.createElement("img");c.className="geCommentBusyImg";c.src=IMAGE_PATH+"/spin.gif";b.appendChild(c);b.busyImg=c}function p(b){b.style.border="1px solid red";b.removeChild(b.busyImg)}function m(b){b.style.border="";b.removeChild(b.busyImg)}function v(c,e,f,l,n){function y(b,d,e){var f=document.createElement("li");f.className="geCommentAction";var g=document.createElement("a");g.className=
-"geCommentActionLnk";mxUtils.write(g,b);f.appendChild(g);mxEvent.addListener(g,"click",function(b){d(b,c);b.preventDefault();mxEvent.consume(b)});T.appendChild(f);e&&(f.style.display="none")}function K(){function b(c){d.push(e);if(null!=c.replies)for(var f=0;f<c.replies.length;f++)e=e.nextSibling,b(c.replies[f])}var d=[],e=x;b(c);return{pdiv:e,replies:d}}function P(e,f,k,n,q){function t(){g(z);c.addReply(A,function(b){A.id=b;c.replies.push(A);m(z);k&&k()},function(c){u();p(z);b.handleError(c,null,
-null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},n,q)}function u(){d(A,z,function(b){t()},!0)}var x=K().pdiv,A=b.newComment(e,b.getCurrentUser());A.pCommentId=c.id;null==c.replies&&(c.replies=[]);var z=v(A,c.replies,x,l+1);f?u():t()}if(n||!c.isResolved){E.style.display="none";var x=document.createElement("div");x.className="geCommentContainer";x.setAttribute("data-commentId",c.id);x.style.marginLeft=20*l+5+"px";c.isResolved&&!Editor.isDarkMode()&&(x.style.backgroundColor="ghostWhite");
-var C=document.createElement("div");C.className="geCommentHeader";var G=document.createElement("img");G.className="geCommentUserImg";G.src=c.user.pictureUrl||Editor.userImage;C.appendChild(G);G=document.createElement("div");G.className="geCommentHeaderTxt";C.appendChild(G);var I=document.createElement("div");I.className="geCommentUsername";mxUtils.write(I,c.user.displayName||"");G.appendChild(I);I=document.createElement("div");I.className="geCommentDate";I.setAttribute("data-commentId",c.id);k(c,
-I);G.appendChild(I);x.appendChild(C);C=document.createElement("div");C.className="geCommentTxt";mxUtils.write(C,c.content||"");x.appendChild(C);c.isLocked&&(x.style.opacity="0.5");C=document.createElement("div");C.className="geCommentActions";var T=document.createElement("ul");T.className="geCommentActionsList";C.appendChild(T);u||c.isLocked||0!=l&&!t||y(mxResources.get("reply"),function(){P("",!0)},c.isResolved);G=b.getCurrentUser();null==G||G.id!=c.user.id||u||c.isLocked||(y(mxResources.get("edit"),
+[f],"{1} ago"));d.setAttribute("title",e.toLocaleDateString()+" "+e.toLocaleTimeString())}function g(b){var c=document.createElement("img");c.className="geCommentBusyImg";c.src=IMAGE_PATH+"/spin.gif";b.appendChild(c);b.busyImg=c}function p(b){b.style.border="1px solid red";b.removeChild(b.busyImg)}function m(b){b.style.border="";b.removeChild(b.busyImg)}function u(c,e,f,l,n){function y(b,d,e){var f=document.createElement("li");f.className="geCommentAction";var g=document.createElement("a");g.className=
+"geCommentActionLnk";mxUtils.write(g,b);f.appendChild(g);mxEvent.addListener(g,"click",function(b){d(b,c);b.preventDefault();mxEvent.consume(b)});V.appendChild(f);e&&(f.style.display="none")}function M(){function b(c){d.push(e);if(null!=c.replies)for(var f=0;f<c.replies.length;f++)e=e.nextSibling,b(c.replies[f])}var d=[],e=x;b(c);return{pdiv:e,replies:d}}function P(e,f,k,n,q){function t(){g(y);c.addReply(B,function(b){B.id=b;c.replies.push(B);m(y);k&&k()},function(c){x();p(y);b.handleError(c,null,
+null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},n,q)}function x(){d(B,y,function(b){t()},!0)}var v=M().pdiv,B=b.newComment(e,b.getCurrentUser());B.pCommentId=c.id;null==c.replies&&(c.replies=[]);var y=u(B,c.replies,v,l+1);f?x():t()}if(n||!c.isResolved){F.style.display="none";var x=document.createElement("div");x.className="geCommentContainer";x.setAttribute("data-commentId",c.id);x.style.marginLeft=20*l+5+"px";c.isResolved&&!Editor.isDarkMode()&&(x.style.backgroundColor="ghostWhite");
+var C=document.createElement("div");C.className="geCommentHeader";var G=document.createElement("img");G.className="geCommentUserImg";G.src=c.user.pictureUrl||Editor.userImage;C.appendChild(G);G=document.createElement("div");G.className="geCommentHeaderTxt";C.appendChild(G);var H=document.createElement("div");H.className="geCommentUsername";mxUtils.write(H,c.user.displayName||"");G.appendChild(H);H=document.createElement("div");H.className="geCommentDate";H.setAttribute("data-commentId",c.id);k(c,
+H);G.appendChild(H);x.appendChild(C);C=document.createElement("div");C.className="geCommentTxt";mxUtils.write(C,c.content||"");x.appendChild(C);c.isLocked&&(x.style.opacity="0.5");C=document.createElement("div");C.className="geCommentActions";var V=document.createElement("ul");V.className="geCommentActionsList";C.appendChild(V);v||c.isLocked||0!=l&&!t||y(mxResources.get("reply"),function(){P("",!0)},c.isResolved);G=b.getCurrentUser();null==G||G.id!=c.user.id||v||c.isLocked||(y(mxResources.get("edit"),
function(){function e(){d(c,x,function(){g(x);c.editComment(c.content,function(){m(x)},function(c){p(x);e();b.handleError(c,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})}e()},c.isResolved),y(mxResources.get("delete"),function(){b.confirm(mxResources.get("areYouSure"),function(){g(x);c.deleteComment(function(b){if(!0===b){b=x.querySelector(".geCommentTxt");b.innerHTML="";mxUtils.write(b,mxResources.get("msgDeleted"));var d=x.querySelectorAll(".geCommentAction");for(b=
-0;b<d.length;b++)d[b].parentNode.removeChild(d[b]);m(x);x.style.opacity="0.5"}else{d=K(c).replies;for(b=0;b<d.length;b++)D.removeChild(d[b]);for(b=0;b<e.length;b++)if(e[b]==c){e.splice(b,1);break}E.style.display=0==D.getElementsByTagName("div").length?"block":"none"}},function(c){p(x);b.handleError(c,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},c.isResolved));u||c.isLocked||0!=l||y(c.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(b){function d(){var d=
-b.target;d.innerHTML="";c.isResolved=!c.isResolved;mxUtils.write(d,c.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var e=c.isResolved?"none":"",f=K(c).replies,g=Editor.isDarkMode()?"transparent":c.isResolved?"ghostWhite":"white",k=0;k<f.length;k++){f[k].style.backgroundColor=g;for(var l=f[k].querySelectorAll(".geCommentAction"),m=0;m<l.length;m++)l[m]!=d.parentNode&&(l[m].style.display=e);A||(f[k].style.display="none")}q()}c.isResolved?P(mxResources.get("reOpened")+": ",!0,
-d,!1,!0):P(mxResources.get("markedAsResolved"),!1,d,!0)});x.appendChild(C);null!=f?D.insertBefore(x,f.nextSibling):D.appendChild(x);for(f=0;null!=c.replies&&f<c.replies.length;f++)C=c.replies[f],C.isResolved=c.isResolved,v(C,c.replies,null,l+1,n);null!=z&&(z.comment.id==c.id?(n=c.content,c.content=z.comment.content,d(c,x,z.saveCallback,z.deleteOnCancel),c.content=n):null==z.comment.id&&z.comment.pCommentId==c.id&&(D.appendChild(z.div),d(z.comment,z.div,z.saveCallback,z.deleteOnCancel)));return x}}
-var u=!b.canComment(),t=b.canReplyToReplies(),z=null,y=document.createElement("div");y.className="geCommentsWin";y.style.background=Editor.isDarkMode()?Dialog.backdropColor:"whiteSmoke";var F=EditorUi.compactUi?"26px":"30px",D=document.createElement("div");D.className="geCommentsList";D.style.backgroundColor=Editor.isDarkMode()?Dialog.backdropColor:"whiteSmoke";D.style.bottom=parseInt(F)+7+"px";y.appendChild(D);var E=document.createElement("span");E.style.cssText="display:none;padding-top:10px;text-align:center;";
-mxUtils.write(E,mxResources.get("noCommentsFound"));var H=document.createElement("div");H.className="geToolbarContainer geCommentsToolbar";H.style.height=F;H.style.padding=EditorUi.compactUi?"4px 0px 3px 0px":"1px";H.style.backgroundColor=Editor.isDarkMode()?Dialog.backdropColor:"whiteSmoke";F=document.createElement("a");F.className="geButton";if(!u){var N=F.cloneNode();N.innerHTML='<div class="geSprite geSprite-plus" style="display:inline-block;"></div>';N.setAttribute("title",mxResources.get("create")+
-"...");mxEvent.addListener(N,"click",function(c){function e(){d(f,k,function(c){g(k);b.addComment(c,function(b){c.id=b;G.push(c);m(k)},function(c){p(k);e();b.handleError(c,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})},!0)}var f=b.newComment("",b.getCurrentUser()),k=v(f,G,null,0);e();c.preventDefault();mxEvent.consume(c)});H.appendChild(N)}N=F.cloneNode();N.innerHTML='<img src="'+IMAGE_PATH+'/check.png" style="width: 16px; padding: 2px;">';N.setAttribute("title",mxResources.get("showResolved"));
-var A=!1;Editor.isDarkMode()&&(N.style.filter="invert(100%)");mxEvent.addListener(N,"click",function(b){this.className=(A=!A)?"geButton geCheckedBtn":"geButton";I();b.preventDefault();mxEvent.consume(b)});H.appendChild(N);b.commentsRefreshNeeded()&&(N=F.cloneNode(),N.innerHTML='<img src="'+IMAGE_PATH+'/update16.png" style="width: 16px; padding: 2px;">',N.setAttribute("title",mxResources.get("refresh")),Editor.isDarkMode()&&(N.style.filter="invert(100%)"),mxEvent.addListener(N,"click",function(b){I();
-b.preventDefault();mxEvent.consume(b)}),H.appendChild(N));b.commentsSaveNeeded()&&(F=F.cloneNode(),F.innerHTML='<img src="'+IMAGE_PATH+'/save.png" style="width: 20px; padding: 2px;">',F.setAttribute("title",mxResources.get("save")),Editor.isDarkMode()&&(F.style.filter="invert(100%)"),mxEvent.addListener(F,"click",function(b){l();b.preventDefault();mxEvent.consume(b)}),H.appendChild(F));y.appendChild(H);var G=[],I=mxUtils.bind(this,function(){this.hasError=!1;if(null!=z)try{z.div=z.div.cloneNode(!0);
+0;b<d.length;b++)d[b].parentNode.removeChild(d[b]);m(x);x.style.opacity="0.5"}else{d=M(c).replies;for(b=0;b<d.length;b++)D.removeChild(d[b]);for(b=0;b<e.length;b++)if(e[b]==c){e.splice(b,1);break}F.style.display=0==D.getElementsByTagName("div").length?"block":"none"}},function(c){p(x);b.handleError(c,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},c.isResolved));v||c.isLocked||0!=l||y(c.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(b){function d(){var d=
+b.target;d.innerHTML="";c.isResolved=!c.isResolved;mxUtils.write(d,c.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var e=c.isResolved?"none":"",f=M(c).replies,g=Editor.isDarkMode()?"transparent":c.isResolved?"ghostWhite":"white",k=0;k<f.length;k++){f[k].style.backgroundColor=g;for(var l=f[k].querySelectorAll(".geCommentAction"),m=0;m<l.length;m++)l[m]!=d.parentNode&&(l[m].style.display=e);B||(f[k].style.display="none")}q()}c.isResolved?P(mxResources.get("reOpened")+": ",!0,
+d,!1,!0):P(mxResources.get("markedAsResolved"),!1,d,!0)});x.appendChild(C);null!=f?D.insertBefore(x,f.nextSibling):D.appendChild(x);for(f=0;null!=c.replies&&f<c.replies.length;f++)C=c.replies[f],C.isResolved=c.isResolved,u(C,c.replies,null,l+1,n);null!=z&&(z.comment.id==c.id?(n=c.content,c.content=z.comment.content,d(c,x,z.saveCallback,z.deleteOnCancel),c.content=n):null==z.comment.id&&z.comment.pCommentId==c.id&&(D.appendChild(z.div),d(z.comment,z.div,z.saveCallback,z.deleteOnCancel)));return x}}
+var v=!b.canComment(),t=b.canReplyToReplies(),z=null,y=document.createElement("div");y.className="geCommentsWin";y.style.background=Editor.isDarkMode()?Dialog.backdropColor:"whiteSmoke";var I=EditorUi.compactUi?"26px":"30px",D=document.createElement("div");D.className="geCommentsList";D.style.backgroundColor=Editor.isDarkMode()?Dialog.backdropColor:"whiteSmoke";D.style.bottom=parseInt(I)+7+"px";y.appendChild(D);var F=document.createElement("span");F.style.cssText="display:none;padding-top:10px;text-align:center;";
+mxUtils.write(F,mxResources.get("noCommentsFound"));var E=document.createElement("div");E.className="geToolbarContainer geCommentsToolbar";E.style.height=I;E.style.padding=EditorUi.compactUi?"4px 0px 3px 0px":"1px";E.style.backgroundColor=Editor.isDarkMode()?Dialog.backdropColor:"whiteSmoke";I=document.createElement("a");I.className="geButton";if(!v){var O=I.cloneNode();O.innerHTML='<div class="geSprite geSprite-plus" style="display:inline-block;"></div>';O.setAttribute("title",mxResources.get("create")+
+"...");mxEvent.addListener(O,"click",function(c){function e(){d(f,k,function(c){g(k);b.addComment(c,function(b){c.id=b;G.push(c);m(k)},function(c){p(k);e();b.handleError(c,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})},!0)}var f=b.newComment("",b.getCurrentUser()),k=u(f,G,null,0);e();c.preventDefault();mxEvent.consume(c)});E.appendChild(O)}O=I.cloneNode();O.innerHTML='<img src="'+IMAGE_PATH+'/check.png" style="width: 16px; padding: 2px;">';O.setAttribute("title",mxResources.get("showResolved"));
+var B=!1;Editor.isDarkMode()&&(O.style.filter="invert(100%)");mxEvent.addListener(O,"click",function(b){this.className=(B=!B)?"geButton geCheckedBtn":"geButton";H();b.preventDefault();mxEvent.consume(b)});E.appendChild(O);b.commentsRefreshNeeded()&&(O=I.cloneNode(),O.innerHTML='<img src="'+IMAGE_PATH+'/update16.png" style="width: 16px; padding: 2px;">',O.setAttribute("title",mxResources.get("refresh")),Editor.isDarkMode()&&(O.style.filter="invert(100%)"),mxEvent.addListener(O,"click",function(b){H();
+b.preventDefault();mxEvent.consume(b)}),E.appendChild(O));b.commentsSaveNeeded()&&(I=I.cloneNode(),I.innerHTML='<img src="'+IMAGE_PATH+'/save.png" style="width: 20px; padding: 2px;">',I.setAttribute("title",mxResources.get("save")),Editor.isDarkMode()&&(I.style.filter="invert(100%)"),mxEvent.addListener(I,"click",function(b){l();b.preventDefault();mxEvent.consume(b)}),E.appendChild(I));y.appendChild(E);var G=[],H=mxUtils.bind(this,function(){this.hasError=!1;if(null!=z)try{z.div=z.div.cloneNode(!0);
var c=z.div.querySelector(".geCommentEditTxtArea"),e=z.div.querySelector(".geCommentEditBtns");z.comment.content=c.value;c.parentNode.removeChild(c);e.parentNode.removeChild(e)}catch(P){b.handleError(P)}D.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH+'/spin.gif" valign="middle"> '+mxUtils.htmlEntities(mxResources.get("loading"))+"...</div>";t=b.canReplyToReplies();b.commentsSupported()?b.getComments(function(b){function c(b){if(null!=b){b.sort(function(b,c){return new Date(b.modifiedDate)-
-new Date(c.modifiedDate)});for(var d=0;d<b.length;d++)c(b[d].replies)}}b.sort(function(b,c){return new Date(b.modifiedDate)-new Date(c.modifiedDate)});D.innerHTML="";D.appendChild(E);E.style.display="block";G=b;for(b=0;b<G.length;b++)c(G[b].replies),v(G[b],G,null,0,A);null!=z&&null==z.comment.id&&null==z.comment.pCommentId&&(D.appendChild(z.div),d(z.comment,z.div,z.saveCallback,z.deleteOnCancel))},mxUtils.bind(this,function(b){D.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(b&&b.message?
-": "+b.message:""));this.hasError=!0})):D.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))});I();this.refreshComments=I;H=mxUtils.bind(this,function(){function b(c){var e=d[c.id];if(null!=e)for(k(c,e),e=0;null!=c.replies&&e<c.replies.length;e++)b(c.replies[e])}if(this.window.isVisible()){for(var c=D.querySelectorAll(".geCommentDate"),d={},e=0;e<c.length;e++){var f=c[e];d[f.getAttribute("data-commentId")]=f}for(e=0;e<G.length;e++)b(G[e])}});setInterval(H,6E4);this.refreshCommentsTime=H;this.window=
+new Date(c.modifiedDate)});for(var d=0;d<b.length;d++)c(b[d].replies)}}b.sort(function(b,c){return new Date(b.modifiedDate)-new Date(c.modifiedDate)});D.innerHTML="";D.appendChild(F);F.style.display="block";G=b;for(b=0;b<G.length;b++)c(G[b].replies),u(G[b],G,null,0,B);null!=z&&null==z.comment.id&&null==z.comment.pCommentId&&(D.appendChild(z.div),d(z.comment,z.div,z.saveCallback,z.deleteOnCancel))},mxUtils.bind(this,function(b){D.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(b&&b.message?
+": "+b.message:""));this.hasError=!0})):D.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))});H();this.refreshComments=H;E=mxUtils.bind(this,function(){function b(c){var e=d[c.id];if(null!=e)for(k(c,e),e=0;null!=c.replies&&e<c.replies.length;e++)b(c.replies[e])}if(this.window.isVisible()){for(var c=D.querySelectorAll(".geCommentDate"),d={},e=0;e<c.length;e++){var f=c[e];d[f.getAttribute("data-commentId")]=f}for(e=0;e<G.length;e++)b(G[e])}});setInterval(E,6E4);this.refreshCommentsTime=E;this.window=
new mxWindow(mxResources.get("comments"),y,c,e,f,n,!0,!0);this.window.minimumSize=new mxRectangle(0,0,300,200);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));this.window.setLocation=function(b,c){var d=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;b=Math.max(0,Math.min(b,(window.innerWidth||
document.body.clientWidth||document.documentElement.clientWidth)-this.table.clientWidth));c=Math.max(0,Math.min(c,d-this.table.clientHeight-48));this.getX()==b&&this.getY()==c||mxWindow.prototype.setLocation.apply(this,arguments)};var L=mxUtils.bind(this,function(){var b=this.window.getX(),c=this.window.getY();this.window.setLocation(b,c)});mxEvent.addListener(window,"resize",L);this.destroy=function(){mxEvent.removeListener(window,"resize",L);this.window.destroy()}},ConfirmDialog=function(b,c,e,
-f,n,l,q,d,k,g,p){var m=document.createElement("div");m.style.textAlign="center";p=null!=p?p:44;var v=document.createElement("div");v.style.padding="6px";v.style.overflow="auto";v.style.maxHeight=p+"px";v.style.lineHeight="1.2em";mxUtils.write(v,c);m.appendChild(v);null!=g&&(v=document.createElement("div"),v.style.padding="6px 0 6px 0",c=document.createElement("img"),c.setAttribute("src",g),v.appendChild(c),m.appendChild(v));g=document.createElement("div");g.style.textAlign="center";g.style.whiteSpace=
-"nowrap";var u=document.createElement("input");u.setAttribute("type","checkbox");l=mxUtils.button(l||mxResources.get("cancel"),function(){b.hideDialog();null!=f&&f(u.checked)});l.className="geBtn";null!=d&&(l.innerHTML=d+"<br>"+l.innerHTML,l.style.paddingBottom="8px",l.style.paddingTop="8px",l.style.height="auto",l.style.width="40%");b.editor.cancelFirst&&g.appendChild(l);var t=mxUtils.button(n||mxResources.get("ok"),function(){b.hideDialog();null!=e&&e(u.checked)});g.appendChild(t);null!=q?(t.innerHTML=
-q+"<br>"+t.innerHTML+"<br>",t.style.paddingBottom="8px",t.style.paddingTop="8px",t.style.height="auto",t.className="geBtn",t.style.width="40%"):t.className="geBtn gePrimaryBtn";b.editor.cancelFirst||g.appendChild(l);m.appendChild(g);k?(g.style.marginTop="10px",v=document.createElement("p"),v.style.marginTop="20px",v.style.marginBottom="0px",v.appendChild(u),n=document.createElement("span"),mxUtils.write(n," "+mxResources.get("rememberThisSetting")),v.appendChild(n),m.appendChild(v),mxEvent.addListener(n,
-"click",function(b){u.checked=!u.checked;mxEvent.consume(b)})):g.style.marginTop="12px";this.init=function(){t.focus()};this.container=m};function DiagramPage(b,c){this.node=b;null!=c?this.node.setAttribute("id",c):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.getId=function(){return this.node.getAttribute("id")};DiagramPage.prototype.getName=function(){return this.node.getAttribute("name")};
+f,n,l,q,d,k,g,p){var m=document.createElement("div");m.style.textAlign="center";p=null!=p?p:44;var u=document.createElement("div");u.style.padding="6px";u.style.overflow="auto";u.style.maxHeight=p+"px";u.style.lineHeight="1.2em";mxUtils.write(u,c);m.appendChild(u);null!=g&&(u=document.createElement("div"),u.style.padding="6px 0 6px 0",c=document.createElement("img"),c.setAttribute("src",g),u.appendChild(c),m.appendChild(u));g=document.createElement("div");g.style.textAlign="center";g.style.whiteSpace=
+"nowrap";var v=document.createElement("input");v.setAttribute("type","checkbox");l=mxUtils.button(l||mxResources.get("cancel"),function(){b.hideDialog();null!=f&&f(v.checked)});l.className="geBtn";null!=d&&(l.innerHTML=d+"<br>"+l.innerHTML,l.style.paddingBottom="8px",l.style.paddingTop="8px",l.style.height="auto",l.style.width="40%");b.editor.cancelFirst&&g.appendChild(l);var t=mxUtils.button(n||mxResources.get("ok"),function(){b.hideDialog();null!=e&&e(v.checked)});g.appendChild(t);null!=q?(t.innerHTML=
+q+"<br>"+t.innerHTML+"<br>",t.style.paddingBottom="8px",t.style.paddingTop="8px",t.style.height="auto",t.className="geBtn",t.style.width="40%"):t.className="geBtn gePrimaryBtn";b.editor.cancelFirst||g.appendChild(l);m.appendChild(g);k?(g.style.marginTop="10px",u=document.createElement("p"),u.style.marginTop="20px",u.style.marginBottom="0px",u.appendChild(v),n=document.createElement("span"),mxUtils.write(n," "+mxResources.get("rememberThisSetting")),u.appendChild(n),m.appendChild(u),mxEvent.addListener(n,
+"click",function(b){v.checked=!v.checked;mxEvent.consume(b)})):g.style.marginTop="12px";this.init=function(){t.focus()};this.container=m};function DiagramPage(b,c){this.node=b;null!=c?this.node.setAttribute("id",c):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.getId=function(){return this.node.getAttribute("id")};DiagramPage.prototype.getName=function(){return this.node.getAttribute("name")};
DiagramPage.prototype.setName=function(b){null==b?this.node.removeAttribute("name"):this.node.setAttribute("name",b)};function RenamePage(b,c,e){this.ui=b;this.page=c;this.previous=this.name=e}RenamePage.prototype.execute=function(){var b=this.page.getName();this.page.setName(this.previous);this.name=this.previous;this.previous=b;this.ui.editor.graph.updatePlaceholders();this.ui.editor.fireEvent(new mxEventObject("pageRenamed"))};
function MovePage(b,c,e){this.ui=b;this.oldIndex=c;this.newIndex=e}MovePage.prototype.execute=function(){this.ui.pages.splice(this.newIndex,0,this.ui.pages.splice(this.oldIndex,1)[0]);var b=this.oldIndex;this.oldIndex=this.newIndex;this.newIndex=b;this.ui.editor.graph.updatePlaceholders();this.ui.editor.fireEvent(new mxEventObject("pageMoved"))};
function SelectPage(b,c,e){this.ui=b;this.previousPage=this.page=c;this.neverShown=!0;null!=c&&(this.neverShown=null==c.viewState,this.ui.updatePageRoot(c),null!=e&&(c.viewState=e,this.neverShown=!1))}
@@ -3917,38 +3917,38 @@ c,e,q,d,k),mxUtils.bind(this,function(b){return this.isTreeEdge(b)}))};Graph.pro
!1;null!=b&&(c="1"==t.getCurrentCellStyle(b).treeMoving);return c}function e(b){var c=!1;null!=b&&(b=z.getParent(b),c=t.view.getState(b),c="tree"==(null!=c?c.style:t.getCellStyle(b)).containerType);return c}function q(b){var c=!1;null!=b&&(b=z.getParent(b),c=t.view.getState(b),t.view.getState(b),c=null!=(null!=c?c.style:t.getCellStyle(b)).childLayout);return c}function d(b){b=t.view.getState(b);if(null!=b){var c=t.getIncomingTreeEdges(b.cell);if(0<c.length&&(c=t.view.getState(c[0]),null!=c&&(c=c.absolutePoints,
null!=c&&0<c.length&&(c=c[c.length-1],null!=c)))){if(c.y==b.y&&Math.abs(c.x-b.getCenterX())<b.width/2)return mxConstants.DIRECTION_SOUTH;if(c.y==b.y+b.height&&Math.abs(c.x-b.getCenterX())<b.width/2)return mxConstants.DIRECTION_NORTH;if(c.x>b.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function k(b,c){c=null!=c?c:!0;t.model.beginUpdate();try{var e=t.model.getParent(b),f=t.getIncomingTreeEdges(b),g=t.cloneCells([f[0],b]);t.model.setTerminal(g[0],t.model.getTerminal(f[0],
!0),!0);var k=d(b),l=e.geometry;k==mxConstants.DIRECTION_SOUTH||k==mxConstants.DIRECTION_NORTH?g[1].geometry.x+=c?b.geometry.width+10:-g[1].geometry.width-10:g[1].geometry.y+=c?b.geometry.height+10:-g[1].geometry.height-10;t.view.currentRoot!=e&&(g[1].geometry.x-=l.x,g[1].geometry.y-=l.y);var m=t.view.getState(b),n=t.view.scale;if(null!=m){var p=mxRectangle.fromRectangle(m);k==mxConstants.DIRECTION_SOUTH||k==mxConstants.DIRECTION_NORTH?p.x+=(c?b.geometry.width+10:-g[1].geometry.width-10)*n:p.y+=(c?
-b.geometry.height+10:-g[1].geometry.height-10)*n;var q=t.getOutgoingTreeEdges(t.model.getTerminal(f[0],!0));if(null!=q){for(var u=k==mxConstants.DIRECTION_SOUTH||k==mxConstants.DIRECTION_NORTH,v=l=f=0;v<q.length;v++){var A=t.model.getTerminal(q[v],!1);if(k==d(A)){var z=t.view.getState(A);A!=b&&null!=z&&(u&&c!=z.getCenterX()<m.getCenterX()||!u&&c!=z.getCenterY()<m.getCenterY())&&mxUtils.intersects(p,z)&&(f=10+Math.max(f,(Math.min(p.x+p.width,z.x+z.width)-Math.max(p.x,z.x))/n),l=10+Math.max(l,(Math.min(p.y+
-p.height,z.y+z.height)-Math.max(p.y,z.y))/n))}}u?l=0:f=0;for(v=0;v<q.length;v++)if(A=t.model.getTerminal(q[v],!1),k==d(A)&&(z=t.view.getState(A),A!=b&&null!=z&&(u&&c!=z.getCenterX()<m.getCenterX()||!u&&c!=z.getCenterY()<m.getCenterY()))){var y=[];t.traverse(z.cell,!0,function(b,c){var d=null!=c&&t.isTreeEdge(c);d&&y.push(c);(null==c||d)&&y.push(b);return null==c||d});t.moveCells(y,(c?1:-1)*f,(c?1:-1)*l)}}}return t.addCells(g,e)}finally{t.model.endUpdate()}}function g(b){t.model.beginUpdate();try{var c=
+b.geometry.height+10:-g[1].geometry.height-10)*n;var q=t.getOutgoingTreeEdges(t.model.getTerminal(f[0],!0));if(null!=q){for(var u=k==mxConstants.DIRECTION_SOUTH||k==mxConstants.DIRECTION_NORTH,v=l=f=0;v<q.length;v++){var B=t.model.getTerminal(q[v],!1);if(k==d(B)){var y=t.view.getState(B);B!=b&&null!=y&&(u&&c!=y.getCenterX()<m.getCenterX()||!u&&c!=y.getCenterY()<m.getCenterY())&&mxUtils.intersects(p,y)&&(f=10+Math.max(f,(Math.min(p.x+p.width,y.x+y.width)-Math.max(p.x,y.x))/n),l=10+Math.max(l,(Math.min(p.y+
+p.height,y.y+y.height)-Math.max(p.y,y.y))/n))}}u?l=0:f=0;for(v=0;v<q.length;v++)if(B=t.model.getTerminal(q[v],!1),k==d(B)&&(y=t.view.getState(B),B!=b&&null!=y&&(u&&c!=y.getCenterX()<m.getCenterX()||!u&&c!=y.getCenterY()<m.getCenterY()))){var z=[];t.traverse(y.cell,!0,function(b,c){var d=null!=c&&t.isTreeEdge(c);d&&z.push(c);(null==c||d)&&z.push(b);return null==c||d});t.moveCells(z,(c?1:-1)*f,(c?1:-1)*l)}}}return t.addCells(g,e)}finally{t.model.endUpdate()}}function g(b){t.model.beginUpdate();try{var c=
d(b),e=t.getIncomingTreeEdges(b),f=t.cloneCells([e[0],b]);t.model.setTerminal(e[0],f[1],!1);t.model.setTerminal(f[0],f[1],!0);t.model.setTerminal(f[0],b,!1);var g=t.model.getParent(b),k=g.geometry,l=[];t.view.currentRoot!=g&&(f[1].geometry.x-=k.x,f[1].geometry.y-=k.y);t.traverse(b,!0,function(b,c){var d=null!=c&&t.isTreeEdge(c);d&&l.push(c);(null==c||d)&&l.push(b);return null==c||d});var m=b.geometry.width+40,n=b.geometry.height+40;c==mxConstants.DIRECTION_SOUTH?m=0:c==mxConstants.DIRECTION_NORTH?
(m=0,n=-n):c==mxConstants.DIRECTION_WEST?(m=-m,n=0):c==mxConstants.DIRECTION_EAST&&(n=0);t.moveCells(l,m,n);return t.addCells(f,g)}finally{t.model.endUpdate()}}function p(b,c){t.model.beginUpdate();try{var e=t.model.getParent(b),f=t.getIncomingTreeEdges(b),g=d(b);0==f.length&&(f=[t.createEdge(e,null,"",null,null,t.createCurrentEdgeStyle())],g=c);var k=t.cloneCells([f[0],b]);t.model.setTerminal(k[0],b,!0);if(null==t.model.getTerminal(k[0],!1)){t.model.setTerminal(k[0],k[1],!1);var l=t.getCellStyle(k[1]).newEdgeStyle;
-if(null!=l)try{var m=JSON.parse(l),n;for(n in m)t.setCellStyles(n,m[n],[k[0]]),"edgeStyle"==n&&"elbowEdgeStyle"==m[n]&&t.setCellStyles("elbow",g==mxConstants.DIRECTION_SOUTH||g==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",[k[0]])}catch(ua){}}var f=t.getOutgoingTreeEdges(b),p=e.geometry,l=[];t.view.currentRoot==e&&(p=new mxRectangle);for(m=0;m<f.length;m++){var q=t.model.getTerminal(f[m],!1);null!=q&&l.push(q)}var u=t.view.getBounds(l),v=t.view.translate,A=t.view.scale;g==mxConstants.DIRECTION_SOUTH?
-(k[1].geometry.x=null==u?b.geometry.x+(b.geometry.width-k[1].geometry.width)/2:(u.x+u.width)/A-v.x-p.x+10,k[1].geometry.y+=k[1].geometry.height-p.y+40):g==mxConstants.DIRECTION_NORTH?(k[1].geometry.x=null==u?b.geometry.x+(b.geometry.width-k[1].geometry.width)/2:(u.x+u.width)/A-v.x+-p.x+10,k[1].geometry.y-=k[1].geometry.height+p.y+40):(k[1].geometry.x=g==mxConstants.DIRECTION_WEST?k[1].geometry.x-(k[1].geometry.width+p.x+40):k[1].geometry.x+(k[1].geometry.width-p.x+40),k[1].geometry.y=null==u?b.geometry.y+
-(b.geometry.height-k[1].geometry.height)/2:(u.y+u.height)/A-v.y+-p.y+10);return t.addCells(k,e)}finally{t.model.endUpdate()}}function m(b,c,d){b=t.getOutgoingTreeEdges(b);d=t.view.getState(d);var e=[];if(null!=d&&null!=b){for(var f=0;f<b.length;f++){var g=t.view.getState(t.model.getTerminal(b[f],!1));null!=g&&(!c&&Math.min(g.x+g.width,d.x+d.width)>=Math.max(g.x,d.x)||c&&Math.min(g.y+g.height,d.y+d.height)>=Math.max(g.y,d.y))&&e.push(g)}e.sort(function(b,d){return c?b.x+b.width-d.x-d.width:b.y+b.height-
-d.y-d.height})}return e}function v(b,c){var e=d(b),f=c==mxConstants.DIRECTION_EAST||c==mxConstants.DIRECTION_WEST;(e==mxConstants.DIRECTION_EAST||e==mxConstants.DIRECTION_WEST)==f&&e!=c?u.actions.get("selectParent").funct():e==c?(f=t.getOutgoingTreeEdges(b),null!=f&&0<f.length&&t.setSelectionCell(t.model.getTerminal(f[0],!1))):(e=t.getIncomingTreeEdges(b),null!=e&&0<e.length&&(f=m(t.model.getTerminal(e[0],!0),f,b),e=t.view.getState(b),null!=e&&(e=mxUtils.indexOf(f,e),0<=e&&(e+=c==mxConstants.DIRECTION_NORTH||
-c==mxConstants.DIRECTION_WEST?-1:1,0<=e&&e<=f.length-1&&t.setSelectionCell(f[e].cell)))))}var u=this,t=u.editor.graph,z=t.getModel(),y=u.menus.createPopupMenu;u.menus.createPopupMenu=function(c,d,e){y.apply(this,arguments);if(1==t.getSelectionCount()){d=t.getSelectionCell();var f=t.getOutgoingTreeEdges(d);c.addSeparator();0<f.length&&(b(t.getSelectionCell())&&this.addMenuItems(c,["selectChildren"],null,e),this.addMenuItems(c,["selectDescendants"],null,e));b(t.getSelectionCell())?(c.addSeparator(),
-0<t.getIncomingTreeEdges(d).length&&this.addMenuItems(c,["selectSiblings","selectParent"],null,e)):0<t.model.getEdgeCount(d)&&this.addMenuItems(c,["selectConnections"],null,e)}};u.actions.addAction("selectChildren",function(){if(t.isEnabled()&&1==t.getSelectionCount()){var b=t.getSelectionCell(),b=t.getOutgoingTreeEdges(b);if(null!=b){for(var c=[],d=0;d<b.length;d++)c.push(t.model.getTerminal(b[d],!1));t.setSelectionCells(c)}}},null,null,"Alt+Shift+X");u.actions.addAction("selectSiblings",function(){if(t.isEnabled()&&
-1==t.getSelectionCount()){var b=t.getSelectionCell(),b=t.getIncomingTreeEdges(b);if(null!=b&&0<b.length&&(b=t.getOutgoingTreeEdges(t.model.getTerminal(b[0],!0)),null!=b)){for(var c=[],d=0;d<b.length;d++)c.push(t.model.getTerminal(b[d],!1));t.setSelectionCells(c)}}},null,null,"Alt+Shift+S");u.actions.addAction("selectParent",function(){if(t.isEnabled()&&1==t.getSelectionCount()){var b=t.getSelectionCell(),b=t.getIncomingTreeEdges(b);null!=b&&0<b.length&&t.setSelectionCell(t.model.getTerminal(b[0],
-!0))}},null,null,"Alt+Shift+P");u.actions.addAction("selectDescendants",function(b,c){var d=t.getSelectionCell();if(t.isEnabled()&&t.model.isVertex(d)){if(null!=c&&mxEvent.isAltDown(c))t.setSelectionCells(t.model.getTreeEdges(d,null==c||!mxEvent.isShiftDown(c),null==c||!mxEvent.isControlDown(c)));else{var e=[];t.traverse(d,!0,function(b,d){var f=null!=d&&t.isTreeEdge(d);f&&e.push(d);null!=d&&!f||null!=c&&mxEvent.isShiftDown(c)||e.push(b);return null==d||f})}t.setSelectionCells(e)}},null,null,"Alt+Shift+D");
-var F=t.removeCells;t.removeCells=function(c,d){d=null!=d?d:!0;null==c&&(c=this.getDeletableCells(this.getSelectionCells()));d&&(c=this.getDeletableCells(this.addAllEdges(c)));for(var f=[],g=0;g<c.length;g++){var k=c[g];z.isEdge(k)&&e(k)&&(f.push(k),k=z.getTerminal(k,!1));if(b(k)){var l=[];t.traverse(k,!0,function(b,c){var d=null!=c&&t.isTreeEdge(c);d&&l.push(c);(null==c||d)&&l.push(b);return null==c||d});0<l.length&&(f=f.concat(l),k=t.getIncomingTreeEdges(c[g]),c=c.concat(k))}else null!=k&&f.push(c[g])}c=
-f;return F.apply(this,arguments)};u.hoverIcons.getStateAt=function(c,d,e){return b(c.cell)?null:this.graph.view.getState(this.graph.getCellAt(d,e))};var D=t.duplicateCells;t.duplicateCells=function(c,d){c=null!=c?c:this.getSelectionCells();for(var e=c.slice(0),f=0;f<e.length;f++){var g=t.view.getState(e[f]);if(null!=g&&b(g.cell))for(var k=t.getIncomingTreeEdges(g.cell),g=0;g<k.length;g++)mxUtils.remove(k[g],c)}this.model.beginUpdate();try{var l=D.call(this,c,d);if(l.length==c.length)for(f=0;f<c.length;f++)if(b(c[f])){var m=
-t.getIncomingTreeEdges(l[f]),k=t.getIncomingTreeEdges(c[f]);if(0==m.length&&0<k.length){var n=this.cloneCell(k[0]);this.addEdge(n,t.getDefaultParent(),this.model.getTerminal(k[0],!0),l[f])}}}finally{this.model.endUpdate()}return l};var E=t.moveCells;t.moveCells=function(c,d,e,f,g,k,l){var m=null;this.model.beginUpdate();try{var n=g,p=this.getCurrentCellStyle(g);if(null!=c&&b(g)&&"1"==mxUtils.getValue(p,"treeFolding","0")){for(var q=0;q<c.length;q++)if(b(c[q])||t.model.isEdge(c[q])&&null==t.model.getTerminal(c[q],
-!0)){g=t.model.getParent(c[q]);break}if(null!=n&&g!=n&&null!=this.view.getState(c[0])){var u=t.getIncomingTreeEdges(c[0]);if(0<u.length){var v=t.view.getState(t.model.getTerminal(u[0],!0));if(null!=v){var A=t.view.getState(n);null!=A&&(d=(A.getCenterX()-v.getCenterX())/t.view.scale,e=(A.getCenterY()-v.getCenterY())/t.view.scale)}}}}m=E.apply(this,arguments);if(null!=m&&null!=c&&m.length==c.length)for(q=0;q<m.length;q++)if(this.model.isEdge(m[q]))b(n)&&0>mxUtils.indexOf(m,this.model.getTerminal(m[q],
-!0))&&this.model.setTerminal(m[q],n,!0);else if(b(c[q])&&(u=t.getIncomingTreeEdges(c[q]),0<u.length))if(!f)b(n)&&0>mxUtils.indexOf(c,this.model.getTerminal(u[0],!0))&&this.model.setTerminal(u[0],n,!0);else if(0==t.getIncomingTreeEdges(m[q]).length){p=n;if(null==p||p==t.model.getParent(c[q]))p=t.model.getTerminal(u[0],!0);f=this.cloneCell(u[0]);this.addEdge(f,t.getDefaultParent(),p,m[q])}}finally{this.model.endUpdate()}return m};if(null!=u.sidebar){var H=u.sidebar.dropAndConnect;u.sidebar.dropAndConnect=
-function(c,d,e,f){var g=t.model,k=null;g.beginUpdate();try{if(k=H.apply(this,arguments),b(c))for(var l=0;l<k.length;l++)if(g.isEdge(k[l])&&null==g.getTerminal(k[l],!0)){g.setTerminal(k[l],c,!0);var m=t.getCellGeometry(k[l]);m.points=null;null!=m.getTerminalPoint(!0)&&m.setTerminalPoint(null,!0)}}finally{g.endUpdate()}return k}}var N={88:u.actions.get("selectChildren"),84:u.actions.get("selectSubtree"),80:u.actions.get("selectParent"),83:u.actions.get("selectSiblings")},A=u.onKeyDown;u.onKeyDown=function(c){try{if(t.isEnabled()&&
-!t.isEditing()&&b(t.getSelectionCell())&&1==t.getSelectionCount()){var d=null;0<t.getIncomingTreeEdges(t.getSelectionCell()).length&&(9==c.which?d=mxEvent.isShiftDown(c)?g(t.getSelectionCell()):p(t.getSelectionCell()):13==c.which&&(d=k(t.getSelectionCell(),!mxEvent.isShiftDown(c))));if(null!=d&&0<d.length)1==d.length&&t.model.isEdge(d[0])?t.setSelectionCell(t.model.getTerminal(d[0],!1)):t.setSelectionCell(d[d.length-1]),null!=u.hoverIcons&&u.hoverIcons.update(t.view.getState(t.getSelectionCell())),
-t.startEditingAtCell(t.getSelectionCell()),mxEvent.consume(c);else if(mxEvent.isAltDown(c)&&mxEvent.isShiftDown(c)){var e=N[c.keyCode];null!=e&&(e.funct(c),mxEvent.consume(c))}else 37==c.keyCode?(v(t.getSelectionCell(),mxConstants.DIRECTION_WEST),mxEvent.consume(c)):38==c.keyCode?(v(t.getSelectionCell(),mxConstants.DIRECTION_NORTH),mxEvent.consume(c)):39==c.keyCode?(v(t.getSelectionCell(),mxConstants.DIRECTION_EAST),mxEvent.consume(c)):40==c.keyCode&&(v(t.getSelectionCell(),mxConstants.DIRECTION_SOUTH),
-mxEvent.consume(c))}}catch(ga){u.handleError(ga)}mxEvent.isConsumed(c)||A.apply(this,arguments)};var G=t.connectVertex;t.connectVertex=function(c,e,f,l,m,n,q){var u=t.getIncomingTreeEdges(c);if(b(c)){var v=d(c),A=v==mxConstants.DIRECTION_EAST||v==mxConstants.DIRECTION_WEST,x=e==mxConstants.DIRECTION_EAST||e==mxConstants.DIRECTION_WEST;return v==e||0==u.length?p(c,e):A==x?g(c):k(c,e!=mxConstants.DIRECTION_NORTH&&e!=mxConstants.DIRECTION_WEST)}return G.apply(this,arguments)};t.getSubtree=function(d){var e=
-[d];!c(d)&&!b(d)||q(d)||t.traverse(d,!0,function(b,c){var d=null!=c&&t.isTreeEdge(c);d&&0>mxUtils.indexOf(e,c)&&e.push(c);(null==c||d)&&0>mxUtils.indexOf(e,b)&&e.push(b);return null==c||d});return e};var I=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){I.apply(this,arguments);(c(this.state.cell)||b(this.state.cell))&&!q(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&(this.moveHandle=mxUtils.createImage(Editor.moveImage),this.moveHandle.setAttribute("title",
+if(null!=l)try{var m=JSON.parse(l),n;for(n in m)t.setCellStyles(n,m[n],[k[0]]),"edgeStyle"==n&&"elbowEdgeStyle"==m[n]&&t.setCellStyles("elbow",g==mxConstants.DIRECTION_SOUTH||g==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",[k[0]])}catch(qa){}}var f=t.getOutgoingTreeEdges(b),p=e.geometry,l=[];t.view.currentRoot==e&&(p=new mxRectangle);for(m=0;m<f.length;m++){var q=t.model.getTerminal(f[m],!1);null!=q&&l.push(q)}var u=t.view.getBounds(l),v=t.view.translate,B=t.view.scale;g==mxConstants.DIRECTION_SOUTH?
+(k[1].geometry.x=null==u?b.geometry.x+(b.geometry.width-k[1].geometry.width)/2:(u.x+u.width)/B-v.x-p.x+10,k[1].geometry.y+=k[1].geometry.height-p.y+40):g==mxConstants.DIRECTION_NORTH?(k[1].geometry.x=null==u?b.geometry.x+(b.geometry.width-k[1].geometry.width)/2:(u.x+u.width)/B-v.x+-p.x+10,k[1].geometry.y-=k[1].geometry.height+p.y+40):(k[1].geometry.x=g==mxConstants.DIRECTION_WEST?k[1].geometry.x-(k[1].geometry.width+p.x+40):k[1].geometry.x+(k[1].geometry.width-p.x+40),k[1].geometry.y=null==u?b.geometry.y+
+(b.geometry.height-k[1].geometry.height)/2:(u.y+u.height)/B-v.y+-p.y+10);return t.addCells(k,e)}finally{t.model.endUpdate()}}function m(b,c,d){b=t.getOutgoingTreeEdges(b);d=t.view.getState(d);var e=[];if(null!=d&&null!=b){for(var f=0;f<b.length;f++){var g=t.view.getState(t.model.getTerminal(b[f],!1));null!=g&&(!c&&Math.min(g.x+g.width,d.x+d.width)>=Math.max(g.x,d.x)||c&&Math.min(g.y+g.height,d.y+d.height)>=Math.max(g.y,d.y))&&e.push(g)}e.sort(function(b,d){return c?b.x+b.width-d.x-d.width:b.y+b.height-
+d.y-d.height})}return e}function u(b,c){var e=d(b),f=c==mxConstants.DIRECTION_EAST||c==mxConstants.DIRECTION_WEST;(e==mxConstants.DIRECTION_EAST||e==mxConstants.DIRECTION_WEST)==f&&e!=c?v.actions.get("selectParent").funct():e==c?(f=t.getOutgoingTreeEdges(b),null!=f&&0<f.length&&t.setSelectionCell(t.model.getTerminal(f[0],!1))):(e=t.getIncomingTreeEdges(b),null!=e&&0<e.length&&(f=m(t.model.getTerminal(e[0],!0),f,b),e=t.view.getState(b),null!=e&&(e=mxUtils.indexOf(f,e),0<=e&&(e+=c==mxConstants.DIRECTION_NORTH||
+c==mxConstants.DIRECTION_WEST?-1:1,0<=e&&e<=f.length-1&&t.setSelectionCell(f[e].cell)))))}var v=this,t=v.editor.graph,z=t.getModel(),y=v.menus.createPopupMenu;v.menus.createPopupMenu=function(c,d,e){y.apply(this,arguments);if(1==t.getSelectionCount()){d=t.getSelectionCell();var f=t.getOutgoingTreeEdges(d);c.addSeparator();0<f.length&&(b(t.getSelectionCell())&&this.addMenuItems(c,["selectChildren"],null,e),this.addMenuItems(c,["selectDescendants"],null,e));b(t.getSelectionCell())?(c.addSeparator(),
+0<t.getIncomingTreeEdges(d).length&&this.addMenuItems(c,["selectSiblings","selectParent"],null,e)):0<t.model.getEdgeCount(d)&&this.addMenuItems(c,["selectConnections"],null,e)}};v.actions.addAction("selectChildren",function(){if(t.isEnabled()&&1==t.getSelectionCount()){var b=t.getSelectionCell(),b=t.getOutgoingTreeEdges(b);if(null!=b){for(var c=[],d=0;d<b.length;d++)c.push(t.model.getTerminal(b[d],!1));t.setSelectionCells(c)}}},null,null,"Alt+Shift+X");v.actions.addAction("selectSiblings",function(){if(t.isEnabled()&&
+1==t.getSelectionCount()){var b=t.getSelectionCell(),b=t.getIncomingTreeEdges(b);if(null!=b&&0<b.length&&(b=t.getOutgoingTreeEdges(t.model.getTerminal(b[0],!0)),null!=b)){for(var c=[],d=0;d<b.length;d++)c.push(t.model.getTerminal(b[d],!1));t.setSelectionCells(c)}}},null,null,"Alt+Shift+S");v.actions.addAction("selectParent",function(){if(t.isEnabled()&&1==t.getSelectionCount()){var b=t.getSelectionCell(),b=t.getIncomingTreeEdges(b);null!=b&&0<b.length&&t.setSelectionCell(t.model.getTerminal(b[0],
+!0))}},null,null,"Alt+Shift+P");v.actions.addAction("selectDescendants",function(b,c){var d=t.getSelectionCell();if(t.isEnabled()&&t.model.isVertex(d)){if(null!=c&&mxEvent.isAltDown(c))t.setSelectionCells(t.model.getTreeEdges(d,null==c||!mxEvent.isShiftDown(c),null==c||!mxEvent.isControlDown(c)));else{var e=[];t.traverse(d,!0,function(b,d){var f=null!=d&&t.isTreeEdge(d);f&&e.push(d);null!=d&&!f||null!=c&&mxEvent.isShiftDown(c)||e.push(b);return null==d||f})}t.setSelectionCells(e)}},null,null,"Alt+Shift+D");
+var I=t.removeCells;t.removeCells=function(c,d){d=null!=d?d:!0;null==c&&(c=this.getDeletableCells(this.getSelectionCells()));d&&(c=this.getDeletableCells(this.addAllEdges(c)));for(var f=[],g=0;g<c.length;g++){var k=c[g];z.isEdge(k)&&e(k)&&(f.push(k),k=z.getTerminal(k,!1));if(b(k)){var l=[];t.traverse(k,!0,function(b,c){var d=null!=c&&t.isTreeEdge(c);d&&l.push(c);(null==c||d)&&l.push(b);return null==c||d});0<l.length&&(f=f.concat(l),k=t.getIncomingTreeEdges(c[g]),c=c.concat(k))}else null!=k&&f.push(c[g])}c=
+f;return I.apply(this,arguments)};v.hoverIcons.getStateAt=function(c,d,e){return b(c.cell)?null:this.graph.view.getState(this.graph.getCellAt(d,e))};var D=t.duplicateCells;t.duplicateCells=function(c,d){c=null!=c?c:this.getSelectionCells();for(var e=c.slice(0),f=0;f<e.length;f++){var g=t.view.getState(e[f]);if(null!=g&&b(g.cell))for(var k=t.getIncomingTreeEdges(g.cell),g=0;g<k.length;g++)mxUtils.remove(k[g],c)}this.model.beginUpdate();try{var l=D.call(this,c,d);if(l.length==c.length)for(f=0;f<c.length;f++)if(b(c[f])){var m=
+t.getIncomingTreeEdges(l[f]),k=t.getIncomingTreeEdges(c[f]);if(0==m.length&&0<k.length){var n=this.cloneCell(k[0]);this.addEdge(n,t.getDefaultParent(),this.model.getTerminal(k[0],!0),l[f])}}}finally{this.model.endUpdate()}return l};var F=t.moveCells;t.moveCells=function(c,d,e,f,g,k,l){var m=null;this.model.beginUpdate();try{var n=g,p=this.getCurrentCellStyle(g);if(null!=c&&b(g)&&"1"==mxUtils.getValue(p,"treeFolding","0")){for(var q=0;q<c.length;q++)if(b(c[q])||t.model.isEdge(c[q])&&null==t.model.getTerminal(c[q],
+!0)){g=t.model.getParent(c[q]);break}if(null!=n&&g!=n&&null!=this.view.getState(c[0])){var u=t.getIncomingTreeEdges(c[0]);if(0<u.length){var v=t.view.getState(t.model.getTerminal(u[0],!0));if(null!=v){var x=t.view.getState(n);null!=x&&(d=(x.getCenterX()-v.getCenterX())/t.view.scale,e=(x.getCenterY()-v.getCenterY())/t.view.scale)}}}}m=F.apply(this,arguments);if(null!=m&&null!=c&&m.length==c.length)for(q=0;q<m.length;q++)if(this.model.isEdge(m[q]))b(n)&&0>mxUtils.indexOf(m,this.model.getTerminal(m[q],
+!0))&&this.model.setTerminal(m[q],n,!0);else if(b(c[q])&&(u=t.getIncomingTreeEdges(c[q]),0<u.length))if(!f)b(n)&&0>mxUtils.indexOf(c,this.model.getTerminal(u[0],!0))&&this.model.setTerminal(u[0],n,!0);else if(0==t.getIncomingTreeEdges(m[q]).length){p=n;if(null==p||p==t.model.getParent(c[q]))p=t.model.getTerminal(u[0],!0);f=this.cloneCell(u[0]);this.addEdge(f,t.getDefaultParent(),p,m[q])}}finally{this.model.endUpdate()}return m};if(null!=v.sidebar){var E=v.sidebar.dropAndConnect;v.sidebar.dropAndConnect=
+function(c,d,e,f){var g=t.model,k=null;g.beginUpdate();try{if(k=E.apply(this,arguments),b(c))for(var l=0;l<k.length;l++)if(g.isEdge(k[l])&&null==g.getTerminal(k[l],!0)){g.setTerminal(k[l],c,!0);var m=t.getCellGeometry(k[l]);m.points=null;null!=m.getTerminalPoint(!0)&&m.setTerminalPoint(null,!0)}}finally{g.endUpdate()}return k}}var O={88:v.actions.get("selectChildren"),84:v.actions.get("selectSubtree"),80:v.actions.get("selectParent"),83:v.actions.get("selectSiblings")},B=v.onKeyDown;v.onKeyDown=function(c){try{if(t.isEnabled()&&
+!t.isEditing()&&b(t.getSelectionCell())&&1==t.getSelectionCount()){var d=null;0<t.getIncomingTreeEdges(t.getSelectionCell()).length&&(9==c.which?d=mxEvent.isShiftDown(c)?g(t.getSelectionCell()):p(t.getSelectionCell()):13==c.which&&(d=k(t.getSelectionCell(),!mxEvent.isShiftDown(c))));if(null!=d&&0<d.length)1==d.length&&t.model.isEdge(d[0])?t.setSelectionCell(t.model.getTerminal(d[0],!1)):t.setSelectionCell(d[d.length-1]),null!=v.hoverIcons&&v.hoverIcons.update(t.view.getState(t.getSelectionCell())),
+t.startEditingAtCell(t.getSelectionCell()),mxEvent.consume(c);else if(mxEvent.isAltDown(c)&&mxEvent.isShiftDown(c)){var e=O[c.keyCode];null!=e&&(e.funct(c),mxEvent.consume(c))}else 37==c.keyCode?(u(t.getSelectionCell(),mxConstants.DIRECTION_WEST),mxEvent.consume(c)):38==c.keyCode?(u(t.getSelectionCell(),mxConstants.DIRECTION_NORTH),mxEvent.consume(c)):39==c.keyCode?(u(t.getSelectionCell(),mxConstants.DIRECTION_EAST),mxEvent.consume(c)):40==c.keyCode&&(u(t.getSelectionCell(),mxConstants.DIRECTION_SOUTH),
+mxEvent.consume(c))}}catch(ga){v.handleError(ga)}mxEvent.isConsumed(c)||B.apply(this,arguments)};var G=t.connectVertex;t.connectVertex=function(c,e,f,l,m,n,q){var u=t.getIncomingTreeEdges(c);if(b(c)){var v=d(c),x=v==mxConstants.DIRECTION_EAST||v==mxConstants.DIRECTION_WEST,B=e==mxConstants.DIRECTION_EAST||e==mxConstants.DIRECTION_WEST;return v==e||0==u.length?p(c,e):x==B?g(c):k(c,e!=mxConstants.DIRECTION_NORTH&&e!=mxConstants.DIRECTION_WEST)}return G.apply(this,arguments)};t.getSubtree=function(d){var e=
+[d];!c(d)&&!b(d)||q(d)||t.traverse(d,!0,function(b,c){var d=null!=c&&t.isTreeEdge(c);d&&0>mxUtils.indexOf(e,c)&&e.push(c);(null==c||d)&&0>mxUtils.indexOf(e,b)&&e.push(b);return null==c||d});return e};var H=mxVertexHandler.prototype.init;mxVertexHandler.prototype.init=function(){H.apply(this,arguments);(c(this.state.cell)||b(this.state.cell))&&!q(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&(this.moveHandle=mxUtils.createImage(Editor.moveImage),this.moveHandle.setAttribute("title",
"Move Subtree"),this.moveHandle.style.position="absolute",this.moveHandle.style.cursor="pointer",this.moveHandle.style.width="24px",this.moveHandle.style.height="24px",this.graph.container.appendChild(this.moveHandle),mxEvent.addGestureListeners(this.moveHandle,mxUtils.bind(this,function(b){this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(b),mxEvent.getClientY(b),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=mxEvent.isMouseEvent(b);
-this.graph.isMouseDown=!0;u.hoverIcons.reset();mxEvent.consume(b)})))};var L=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){L.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.left=this.state.x+this.state.width+(40>this.state.width?10:0)+2+"px",this.moveHandle.style.top=this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var M=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(b){M.apply(this,
-arguments);null!=this.moveHandle&&(this.moveHandle.style.display=b?"":"none")};var K=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(b,c){K.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)}};if("undefined"!==typeof Sidebar){var e=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var b=e.apply(this,arguments),c=this.graph;return b.concat([this.addEntry("tree container",
+this.graph.isMouseDown=!0;v.hoverIcons.reset();mxEvent.consume(b)})))};var L=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){L.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.left=this.state.x+this.state.width+(40>this.state.width?10:0)+2+"px",this.moveHandle.style.top=this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var N=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(b){N.apply(this,
+arguments);null!=this.moveHandle&&(this.moveHandle.style.display=b?"":"none")};var M=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(b,c){M.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)}};if("undefined"!==typeof Sidebar){var e=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var b=e.apply(this,arguments),c=this.graph;return b.concat([this.addEntry("tree container",
function(){var b=new mxCell("Tree Container",new mxGeometry(0,0,400,320),"swimlane;startSize=20;horizontal=1;containerType=tree;");b.vertex=!0;var c=new mxCell("Parent",new mxGeometry(140,60,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');c.vertex=!0;var d=new mxCell("Child",new mxGeometry(140,140,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');
d.vertex=!0;var e=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;startArrow=none;endArrow=none;rounded=0;");e.geometry.relative=!0;e.edge=!0;c.insertEdge(e,!0);d.insertEdge(e,!1);b.insert(e);b.insert(c);b.insert(d);return sb.createVertexTemplateFromCells([b],b.geometry.width,b.geometry.height,b.value)}),this.addEntry("tree mindmap mindmaps central idea branch topic",function(){var b=new mxCell("Mindmap",new mxGeometry(0,0,420,126),"swimlane;startSize=20;horizontal=1;containerType=tree;");
b.vertex=!0;var c=new mxCell("Central Idea",new mxGeometry(160,60,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1};');c.vertex=!0;var d=new mxCell("Topic",new mxGeometry(320,40,80,20),'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1};');
d.vertex=!0;var e=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;");e.geometry.relative=!0;e.edge=!0;c.insertEdge(e,!0);d.insertEdge(e,!1);var f=new mxCell("Branch",new mxGeometry(320,80,72,26),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1};');
f.vertex=!0;var n=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;");n.geometry.relative=!0;n.edge=!0;c.insertEdge(n,!0);f.insertEdge(n,!1);var m=new mxCell("Topic",new mxGeometry(20,40,80,20),'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1};');
-m.vertex=!0;var v=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;");v.geometry.relative=!0;v.edge=!0;c.insertEdge(v,!0);m.insertEdge(v,!1);var u=new mxCell("Branch",new mxGeometry(20,80,72,26),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1};');
-u.vertex=!0;var t=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;");t.geometry.relative=!0;t.edge=!0;c.insertEdge(t,!0);u.insertEdge(t,!1);b.insert(e);b.insert(n);b.insert(v);b.insert(t);b.insert(c);b.insert(d);b.insert(f);b.insert(m);b.insert(u);return sb.createVertexTemplateFromCells([b],b.geometry.width,b.geometry.height,b.value)}),this.addEntry("tree mindmap mindmaps central idea",function(){var b=new mxCell("Central Idea",
+m.vertex=!0;var u=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;");u.geometry.relative=!0;u.edge=!0;c.insertEdge(u,!0);m.insertEdge(u,!1);var v=new mxCell("Branch",new mxGeometry(20,80,72,26),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1};');
+v.vertex=!0;var t=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;");t.geometry.relative=!0;t.edge=!0;c.insertEdge(t,!0);v.insertEdge(t,!1);b.insert(e);b.insert(n);b.insert(u);b.insert(t);b.insert(c);b.insert(d);b.insert(f);b.insert(m);b.insert(v);return sb.createVertexTemplateFromCells([b],b.geometry.width,b.geometry.height,b.value)}),this.addEntry("tree mindmap mindmaps central idea",function(){var b=new mxCell("Central Idea",
new mxGeometry(0,0,100,40),'ellipse;whiteSpace=wrap;html=1;align=center;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1};treeFolding=1;treeMoving=1;');b.vertex=!0;return sb.createVertexTemplateFromCells([b],b.geometry.width,b.geometry.height,b.value)}),this.addEntry("tree mindmap mindmaps branch",function(){var b=new mxCell("Branch",new mxGeometry(0,0,80,20),'whiteSpace=wrap;html=1;shape=partialRectangle;top=0;left=0;bottom=1;right=0;points=[[0,1],[1,1]];fillColor=none;align=center;verticalAlign=bottom;routingCenterY=0.5;snapToPoint=1;recursiveResize=0;autosize=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1};');
b.vertex=!0;var c=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;");c.geometry.setTerminalPoint(new mxPoint(-40,40),!0);c.geometry.relative=!0;c.edge=!0;b.insertEdge(c,!1);return sb.createVertexTemplateFromCells([b,c],b.geometry.width,b.geometry.height,b.value)}),this.addEntry("tree mindmap mindmaps sub topic",function(){var b=new mxCell("Sub Topic",new mxGeometry(0,0,72,26),'whiteSpace=wrap;html=1;rounded=1;arcSize=50;align=center;verticalAlign=middle;strokeWidth=1;autosize=1;spacing=4;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"entityRelationEdgeStyle","startArrow":"none","endArrow":"none","segment":10,"curved":1};');
b.vertex=!0;var c=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;");c.geometry.setTerminalPoint(new mxPoint(-40,40),!0);c.geometry.relative=!0;c.edge=!0;b.insertEdge(c,!1);return sb.createVertexTemplateFromCells([b,c],b.geometry.width,b.geometry.height,b.value)}),this.addEntry("tree orgchart organization division",function(){var b=new mxCell("Orgchart",new mxGeometry(0,0,280,220),'swimlane;startSize=20;horizontal=1;containerType=tree;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');
@@ -3968,7 +3968,7 @@ c.appendChild(e),mxEvent.addListener(e,"click",b.actions.get("newLibrary").funct
"click",b.actions.get("openLibrary").funct)):(e=d("newLibrary",mxResources.get("newLibrary")),e.style.boxSizing="border-box",e.style.paddingRight="6px",e.style.paddingLeft="6px",e.style.height="32px",e.style.left="0",e=d("openLibraryFrom",mxResources.get("openLibraryFrom")),e.style.borderLeft="1px solid lightgray",e.style.boxSizing="border-box",e.style.paddingRight="6px",e.style.paddingLeft="6px",e.style.height="32px",e.style.left="50%");c.appendChild(b.sidebar.container);c.style.overflow="hidden"}
function e(b,d){if(EditorUi.windowed){var e=b.editor.graph;e.popupMenuHandler.hideMenu();if(null==b.sidebarWindow){var f=Math.min(e.container.clientWidth-10,218),g=Math.min(e.container.clientHeight-40,650);b.sidebarWindow=new l(b,mxResources.get("shapes"),"1"==urlParams.sketch&&"1"!=urlParams.embedInline?66:10,"1"==urlParams.sketch&&"1"!=urlParams.embedInline?Math.max(30,(e.container.clientHeight-g)/2):56,f-6,g-6,function(d){c(b,d)});b.sidebarWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,
function(){b.sidebarWindow.window.fit()}));b.sidebarWindow.window.minimumSize=new mxRectangle(0,0,90,90);b.sidebarWindow.window.setVisible(!0);b.getLocalData("sidebar",function(c){b.sidebar.showEntries(c,null,!0)});b.restoreLibraries()}else b.sidebarWindow.window.setVisible(null!=d?d:!b.sidebarWindow.window.isVisible())}else null==b.sidebarElt&&(b.sidebarElt=n(),c(b,b.sidebarElt),b.sidebarElt.style.border="none",b.sidebarElt.style.width="210px",b.sidebarElt.style.borderRight="1px solid gray"),e=b.diagramContainer.parentNode,
-null!=b.sidebarElt.parentNode?(b.sidebarElt.parentNode.removeChild(b.sidebarElt),e.style.left="0px"):(e.parentNode.appendChild(b.sidebarElt),e.style.left=b.sidebarElt.style.width)}if("1"==urlParams.lightbox||"0"==urlParams.chrome||"undefined"===typeof window.Format||"undefined"===typeof window.Menus)window.uiTheme=null;else{var f=0;try{f=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}catch(A){}var n=function(){var b=document.createElement("div");b.className="geSidebarContainer";
+null!=b.sidebarElt.parentNode?(b.sidebarElt.parentNode.removeChild(b.sidebarElt),e.style.left="0px"):(e.parentNode.appendChild(b.sidebarElt),e.style.left=b.sidebarElt.style.width)}if("1"==urlParams.lightbox||"0"==urlParams.chrome||"undefined"===typeof window.Format||"undefined"===typeof window.Menus)window.uiTheme=null;else{var f=0;try{f=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}catch(B){}var n=function(){var b=document.createElement("div");b.className="geSidebarContainer";
b.style.position="absolute";b.style.width="100%";b.style.height="100%";b.style.border="1px solid whiteSmoke";b.style.overflowX="hidden";b.style.overflowY="auto";return b},l=function(b,c,d,e,f,g,k){var l=n();k(l);this.window=new mxWindow(c,l,d,e,f,g,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.window.setLocation=function(b,c){var d=window.innerHeight||document.documentElement.clientHeight||
document.body.clientHeight,e=this.table.firstChild.firstChild.firstChild;b=Math.max(0,Math.min(b,(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-e.clientWidth-2));c=Math.max(0,Math.min(c,d-e.clientHeight-2));this.getX()==b&&this.getY()==c||mxWindow.prototype.setLocation.apply(this,arguments)};mxClient.IS_SF&&(this.window.div.onselectstart=mxUtils.bind(this,function(c){null==c&&(c=window.event);return null!=c&&b.isSelectionAllowed(c)}))};Editor.checkmarkImage=Graph.createSvgImage(22,
18,'<path transform="translate(4 0)" d="M7.181,15.007a1,1,0,0,1-.793-0.391L3.222,10.5A1,1,0,1,1,4.808,9.274L7.132,12.3l6.044-8.86A1,1,0,1,1,14.83,4.569l-6.823,10a1,1,0,0,1-.8.437H7.181Z" fill="#29b6f2"/>').src;mxWindow.prototype.closeImage=Graph.createSvgImage(18,10,'<path d="M 5 1 L 13 9 M 13 1 L 5 9" stroke="#C0C0C0" stroke-width="2"/>').src;mxWindow.prototype.minimizeImage=Graph.createSvgImage(14,10,'<path d="M 3 7 L 7 3 L 11 7" stroke="#C0C0C0" stroke-width="2" fill="none"/>').src;mxWindow.prototype.normalizeImage=
@@ -3990,20 +3990,20 @@ null==q.parentNode&&document.getElementsByTagName("head")[0].appendChild(q):null
(mxClient.IS_IOS?"html input[type=checkbox], html input[type=radio] { height:12px; }":"")+("1"==urlParams.sketch?"a.geStatus > div { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }":"")};var d=document.createElement("style");d.type="text/css";d.innerHTML=Editor.createMinimalCss();document.getElementsByTagName("head")[0].appendChild(d);Editor.prototype.isChromelessView=function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var k=EditorUi.prototype.updateTabContainer;
EditorUi.prototype.updateTabContainer=function(){null!=this.tabContainer&&(this.tabContainer.style.right="70px",this.diagramContainer.style.bottom="1"==urlParams.sketch?"0px":this.tabContainerHeight+"px");k.apply(this,arguments)};var g=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){g.apply(this,arguments);this.menus.get("save").setEnabled(null!=this.getCurrentFile()||"1"==urlParams.embed)};var p=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(b,
c){null!=c.shortcut&&900>f&&!mxClient.IS_IOS?b.firstChild.nextSibling.setAttribute("title",c.shortcut):p.apply(this,arguments)};var m=App.prototype.updateUserElement;App.prototype.updateUserElement=function(){m.apply(this,arguments);if(null!=this.userElement){var b=this.userElement;b.style.cssText="position:relative;margin-right:4px;cursor:pointer;display:"+b.style.display;b.className="geToolbarButton";b.innerHTML="";b.style.backgroundImage="url("+Editor.userImage+")";b.style.backgroundPosition="center center";
-b.style.backgroundRepeat="no-repeat";b.style.backgroundSize="24px 24px";b.style.height="24px";b.style.width="24px";b.style.cssFloat="right";b.setAttribute("title",mxResources.get("changeUser"));"none"!=b.style.display&&(b.style.display="inline-block")}};var v=App.prototype.updateButtonContainer;App.prototype.updateButtonContainer=function(){v.apply(this,arguments);if(null!=this.shareButton){var b=this.shareButton;b.style.cssText="display:inline-block;position:relative;box-sizing:border-box;margin-right:4px;cursor:pointer;";
+b.style.backgroundRepeat="no-repeat";b.style.backgroundSize="24px 24px";b.style.height="24px";b.style.width="24px";b.style.cssFloat="right";b.setAttribute("title",mxResources.get("changeUser"));"none"!=b.style.display&&(b.style.display="inline-block")}};var u=App.prototype.updateButtonContainer;App.prototype.updateButtonContainer=function(){u.apply(this,arguments);if(null!=this.shareButton){var b=this.shareButton;b.style.cssText="display:inline-block;position:relative;box-sizing:border-box;margin-right:4px;cursor:pointer;";
b.className="geToolbarButton";b.innerHTML="";b.style.backgroundImage="url("+Editor.shareImage+")";b.style.backgroundPosition="center center";b.style.backgroundRepeat="no-repeat";b.style.backgroundSize="24px 24px";b.style.height="24px";b.style.width="24px";"1"==urlParams.sketch&&(this.shareButton.style.display="none")}null!=this.buttonContainer&&(this.buttonContainer.style.marginTop="-2px",this.buttonContainer.style.paddingTop="4px")};EditorUi.prototype.addEmbedButtons=function(){if(null!=this.buttonContainer&&
"1"!=urlParams.embedInline){var b=document.createElement("div");b.style.display="inline-block";b.style.position="relative";b.style.marginTop="6px";b.style.marginRight="4px";var c=document.createElement("a");c.className="geMenuItem gePrimaryBtn";c.style.marginLeft="8px";c.style.padding="6px";if("1"==urlParams.noSaveBtn){if("0"!=urlParams.saveAndExit){var d="1"==urlParams.publishClose?mxResources.get("publish"):mxResources.get("saveAndExit");mxUtils.write(c,d);c.setAttribute("title",d);mxEvent.addListener(c,
"click",mxUtils.bind(this,function(){this.actions.get("saveAndExit").funct()}));b.appendChild(c)}}else mxUtils.write(c,mxResources.get("save")),c.setAttribute("title",mxResources.get("save")+" ("+Editor.ctrlKey+"+S)"),mxEvent.addListener(c,"click",mxUtils.bind(this,function(){this.actions.get("save").funct()})),b.appendChild(c),"1"==urlParams.saveAndExit&&(c=document.createElement("a"),mxUtils.write(c,mxResources.get("saveAndExit")),c.setAttribute("title",mxResources.get("saveAndExit")),c.className=
"geMenuItem",c.style.marginLeft="6px",c.style.padding="6px",mxEvent.addListener(c,"click",mxUtils.bind(this,function(){this.actions.get("saveAndExit").funct()})),b.appendChild(c));"1"!=urlParams.noExitBtn&&(c=document.createElement("a"),d="1"==urlParams.publishClose?mxResources.get("close"):mxResources.get("exit"),mxUtils.write(c,d),c.setAttribute("title",d),c.className="geMenuItem",c.style.marginLeft="6px",c.style.padding="6px",mxEvent.addListener(c,"click",mxUtils.bind(this,function(){this.actions.get("exit").funct()})),
-b.appendChild(c));this.buttonContainer.appendChild(b);this.buttonContainer.style.top="6px";this.editor.fireEvent(new mxEventObject("statusChanged"))}};var u=Sidebar.prototype.getTooltipOffset;Sidebar.prototype.getTooltipOffset=function(b,c){if(null==this.editorUi.sidebarWindow||mxUtils.isAncestorNode(this.editorUi.picker,b)){var d=mxUtils.getOffset(this.editorUi.picker);d.x+=this.editorUi.picker.offsetWidth+4;d.y+=b.offsetTop-c.height/2+16;return d}var e=u.apply(this,arguments),d=mxUtils.getOffset(this.editorUi.sidebarWindow.window.div);
+b.appendChild(c));this.buttonContainer.appendChild(b);this.buttonContainer.style.top="6px";this.editor.fireEvent(new mxEventObject("statusChanged"))}};var v=Sidebar.prototype.getTooltipOffset;Sidebar.prototype.getTooltipOffset=function(b,c){if(null==this.editorUi.sidebarWindow||mxUtils.isAncestorNode(this.editorUi.picker,b)){var d=mxUtils.getOffset(this.editorUi.picker);d.x+=this.editorUi.picker.offsetWidth+4;d.y+=b.offsetTop-c.height/2+16;return d}var e=v.apply(this,arguments),d=mxUtils.getOffset(this.editorUi.sidebarWindow.window.div);
e.x+=d.x-16;e.y+=d.y;return e};var t=Menus.prototype.createPopupMenu;Menus.prototype.createPopupMenu=function(b,c,d){var e=this.editorUi.editor.graph;b.smartSeparators=!0;t.apply(this,arguments);"1"==urlParams.sketch?e.isEnabled()&&(b.addSeparator(),1==e.getSelectionCount()&&this.addMenuItems(b,["-","lockUnlock"],null,d)):1==e.getSelectionCount()?(e.isCellFoldable(e.getSelectionCell())&&this.addMenuItems(b,e.isCellCollapsed(c)?["expand"]:["collapse"],null,d),this.addMenuItems(b,["collapsible","-",
"lockUnlock","enterGroup"],null,d),b.addSeparator(),this.addSubmenu("layout",b)):e.isSelectionEmpty()&&e.isEnabled()?(b.addSeparator(),this.addMenuItems(b,["editData"],null,d),b.addSeparator(),this.addSubmenu("layout",b),this.addSubmenu("insert",b),this.addMenuItems(b,["-","exitGroup"],null,d)):e.isEnabled()&&this.addMenuItems(b,["-","lockUnlock"],null,d)};var z=Menus.prototype.addPopupMenuEditItems;Menus.prototype.addPopupMenuEditItems=function(b,c,d){z.apply(this,arguments);this.editorUi.editor.graph.isSelectionEmpty()&&
this.addMenuItems(b,["copyAsImage"],null,d)};EditorUi.prototype.toggleFormatPanel=function(c){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=c?c:!this.formatWindow.window.isVisible()):b(this)};DiagramFormatPanel.prototype.isMathOptionVisible=function(){return!0};var y=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.sidebarWindow&&(this.sidebarWindow.window.setVisible(!1),this.sidebarWindow.window.destroy(),this.sidebarWindow=null);null!=this.formatWindow&&
(this.formatWindow.window.setVisible(!1),this.formatWindow.window.destroy(),this.formatWindow=null);null!=this.actions.outlineWindow&&(this.actions.outlineWindow.window.setVisible(!1),this.actions.outlineWindow.window.destroy(),this.actions.outlineWindow=null);null!=this.actions.layersWindow&&(this.actions.layersWindow.window.setVisible(!1),this.actions.layersWindow.destroy(),this.actions.layersWindow=null);null!=this.menus.tagsWindow&&(this.menus.tagsWindow.window.setVisible(!1),this.menus.tagsWindow.window.destroy(),
-this.menus.tagsWindow=null);null!=this.menus.findWindow&&(this.menus.findWindow.window.setVisible(!1),this.menus.findWindow.window.destroy(),this.menus.findWindow=null);null!=this.menus.findReplaceWindow&&(this.menus.findReplaceWindow.window.setVisible(!1),this.menus.findReplaceWindow.window.destroy(),this.menus.findReplaceWindow=null);y.apply(this,arguments)};var F=EditorUi.prototype.setGraphEnabled;EditorUi.prototype.setGraphEnabled=function(b){F.apply(this,arguments);if(b){var c=window.innerWidth||
+this.menus.tagsWindow=null);null!=this.menus.findWindow&&(this.menus.findWindow.window.setVisible(!1),this.menus.findWindow.window.destroy(),this.menus.findWindow=null);null!=this.menus.findReplaceWindow&&(this.menus.findReplaceWindow.window.setVisible(!1),this.menus.findReplaceWindow.window.destroy(),this.menus.findReplaceWindow=null);y.apply(this,arguments)};var I=EditorUi.prototype.setGraphEnabled;EditorUi.prototype.setGraphEnabled=function(b){I.apply(this,arguments);if(b){var c=window.innerWidth||
document.documentElement.clientWidth||document.body.clientWidth;1E3<=c&&null!=this.sidebarWindow&&"1"!=urlParams.sketch&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&(1E3<=c||"1"==urlParams.sketch)&&this.formatWindow.window.setVisible(!0)}else null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!1),null!=this.formatWindow&&this.formatWindow.window.setVisible(!1)};EditorUi.prototype.chromelessWindowResize=function(){};var D=DiagramFormatPanel.prototype.addView;DiagramFormatPanel.prototype.addView=
function(b){b=D.apply(this,arguments);var c=this.editorUi,d=c.editor.graph;if(d.isEnabled()&&"1"==urlParams.sketch){var e=this.createOption(mxResources.get("sketch"),function(){return Editor.sketchMode},function(b,e){c.setSketchMode(!Editor.sketchMode);null!=e&&mxEvent.isShiftDown(e)||d.updateCellStyles({sketch:b?"1":null},d.getVerticesAndEdges())},{install:function(b){this.listener=function(){b(Editor.sketchMode)};c.addListener("sketchModeChanged",this.listener)},destroy:function(){c.removeListener(this.listener)}});
-b.appendChild(e)}return b};var E=Menus.prototype.init;Menus.prototype.init=function(){E.apply(this,arguments);var c=this.editorUi,d=c.editor.graph;c.actions.get("editDiagram").label=mxResources.get("formatXml")+"...";c.actions.get("createShape").label=mxResources.get("shape")+"...";c.actions.get("outline").label=mxResources.get("outline")+"...";c.actions.get("layers").label=mxResources.get("layers")+"...";c.actions.get("tags").label=mxResources.get("tags")+"...";c.actions.get("forkme").visible="1"!=
+b.appendChild(e)}return b};var F=Menus.prototype.init;Menus.prototype.init=function(){F.apply(this,arguments);var c=this.editorUi,d=c.editor.graph;c.actions.get("editDiagram").label=mxResources.get("formatXml")+"...";c.actions.get("createShape").label=mxResources.get("shape")+"...";c.actions.get("outline").label=mxResources.get("outline")+"...";c.actions.get("layers").label=mxResources.get("layers")+"...";c.actions.get("tags").label=mxResources.get("tags")+"...";c.actions.get("forkme").visible="1"!=
urlParams.sketch;c.actions.get("downloadDesktop").visible="1"!=urlParams.sketch;c.actions.get("comments").label=mxResources.get("comments")+"...";var f=c.actions.put("toggleDarkMode",new Action(mxResources.get("dark"),function(b){c.setDarkMode(!Editor.darkMode)}));f.setToggleAction(!0);f.setSelectedCallback(function(){return Editor.isDarkMode()});f=c.actions.put("toggleSketchMode",new Action(mxResources.get("sketch"),function(b){c.setSketchMode(!Editor.sketchMode)}));f.setToggleAction(!0);f.setSelectedCallback(function(){return Editor.sketchMode});
f=c.actions.put("togglePagesVisible",new Action(mxResources.get("pages"),function(b){c.setPagesVisible(!Editor.pagesVisible)}));f.setToggleAction(!0);f.setSelectedCallback(function(){return Editor.pagesVisible});c.actions.put("importCsv",new Action(mxResources.get("csv")+"...",function(){d.popupMenuHandler.hideMenu();c.showImportCsvDialog()}));c.actions.put("importText",new Action(mxResources.get("text")+"...",function(){var b=new ParseDialog(c,"Insert from Text");c.showDialog(b.container,620,420,
!0,!1);b.init()}));c.actions.put("formatSql",new Action(mxResources.get("formatSql")+"...",function(){var b=new ParseDialog(c,"Insert from Text","formatSql");c.showDialog(b.container,620,420,!0,!1);b.init()}));c.actions.put("toggleShapes",new Action(mxResources.get("1"==urlParams.sketch?"moreShapes":"shapes")+"...",function(){e(c)},null,null,Editor.ctrlKey+"+Shift+K"));c.actions.put("toggleFormat",new Action(mxResources.get("format")+"...",function(){b(c)})).shortcut=c.actions.get("formatPanel").shortcut;
@@ -4022,64 +4022,64 @@ d);"1"!=urlParams.embedInline&&"1"!=urlParams.sketch&&"1"!=urlParams.embed&&(isL
d),b.addSeparator(d),c.mode!=App.MODE_ATLAS&&this.addMenuItems(b,["fullscreen"],d));("1"!=urlParams.embedInline&&Editor.isDarkMode()||!mxClient.IS_IE&&!mxClient.IS_IE11)&&this.addMenuItems(b,["toggleDarkMode"],d);b.addSeparator(d)})));this.put("insertAdvanced",new Menu(mxUtils.bind(this,function(b,d){c.menus.addMenuItems(b,"importText plantUml mermaid - formatSql importCsv - createShape editDiagram".split(" "),d)})));mxUtils.bind(this,function(){var b=this.get("insert"),d=b.funct;b.funct=function(b,
e){"1"==urlParams.sketch?(c.insertTemplateEnabled&&!c.isOffline()&&c.menus.addMenuItems(b,["insertTemplate"],e),c.menus.addMenuItems(b,["insertImage","insertLink","-"],e),c.menus.addSubmenu("insertLayout",b,e,mxResources.get("layout")),c.menus.addSubmenu("insertAdvanced",b,e,mxResources.get("advanced"))):(d.apply(this,arguments),c.menus.addSubmenu("table",b,e))}})();var n="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),p=function(b,d,e,f){b.addItem(e,
null,mxUtils.bind(this,function(){var b=new CreateGraphDialog(c,e,f);c.showDialog(b.container,620,420,!0,!1);b.init()}),d)};this.put("insertLayout",new Menu(mxUtils.bind(this,function(b,c){for(var d=0;d<n.length;d++)"-"==n[d]?b.addSeparator(c):p(b,c,mxResources.get(n[d])+"...",n[d])})))};EditorUi.prototype.installFormatToolbar=function(b){var c=this.editor.graph,d=document.createElement("div");d.style.cssText="position:absolute;top:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;white-space:nowrap;background-color:#fff;transform:translate(-50%, 0);left:50%;";
-c.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(e,f){0<c.getSelectionCount()?(b.appendChild(d),d.innerHTML="Selected: "+c.getSelectionCount()):null!=d.parentNode&&d.parentNode.removeChild(d)}))};var H=!1;EditorUi.prototype.initFormatWindow=function(){if(!H&&null!=this.formatWindow){H=!0;this.formatWindow.window.setClosable(!1);var b=this.formatWindow.window.toggleMinimized;this.formatWindow.window.toggleMinimized=function(){b.apply(this,arguments);this.minimized?(this.div.style.width=
-"90px",this.table.style.width="90px",this.div.style.left=parseInt(this.div.style.left)+150+"px"):(this.div.style.width="240px",this.table.style.width="240px",this.div.style.left=Math.max(0,parseInt(this.div.style.left)-150)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(b){mxEvent.getSource(b)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var N=EditorUi.prototype.init;EditorUi.prototype.init=function(){function c(b,
+c.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(e,f){0<c.getSelectionCount()?(b.appendChild(d),d.innerHTML="Selected: "+c.getSelectionCount()):null!=d.parentNode&&d.parentNode.removeChild(d)}))};var E=!1;EditorUi.prototype.initFormatWindow=function(){if(!E&&null!=this.formatWindow){E=!0;this.formatWindow.window.setClosable(!1);var b=this.formatWindow.window.toggleMinimized;this.formatWindow.window.toggleMinimized=function(){b.apply(this,arguments);this.minimized?(this.div.style.width=
+"90px",this.table.style.width="90px",this.div.style.left=parseInt(this.div.style.left)+150+"px"):(this.div.style.width="240px",this.table.style.width="240px",this.div.style.left=Math.max(0,parseInt(this.div.style.left)-150)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(b){mxEvent.getSource(b)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var O=EditorUi.prototype.init;EditorUi.prototype.init=function(){function c(b,
c,d){var e=m.menus.get(b),f=t.addMenu(mxResources.get(b),mxUtils.bind(this,function(){e.funct.apply(this,arguments)}),q);f.className="1"==urlParams.sketch?"geToolbarButton":"geMenuItem";f.style.display="inline-block";f.style.boxSizing="border-box";f.style.top="6px";f.style.marginRight="6px";f.style.height="30px";f.style.paddingTop="6px";f.style.paddingBottom="6px";f.style.cursor="pointer";f.setAttribute("title",mxResources.get(b));m.menus.menuCreated(e,f,"geMenuItem");null!=d?(f.style.backgroundImage=
"url("+d+")",f.style.backgroundPosition="center center",f.style.backgroundRepeat="no-repeat",f.style.backgroundSize="24px 24px",f.style.width="34px",f.innerHTML=""):c||(f.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+")",f.style.backgroundPosition="right 6px center",f.style.backgroundRepeat="no-repeat",f.style.paddingRight="22px");return f}function d(b,c,d,e,f,g){var k=document.createElement("a");k.className="1"==urlParams.sketch?"geToolbarButton":"geMenuItem";k.style.display="inline-block";
k.style.boxSizing="border-box";k.style.height="30px";k.style.padding="6px";k.style.position="relative";k.style.verticalAlign="top";k.style.top="0px";"1"==urlParams.sketch&&(k.style.borderStyle="none",k.style.boxShadow="none",k.style.padding="6px",k.style.margin="0px");null!=m.statusContainer?p.insertBefore(k,m.statusContainer):p.appendChild(k);null!=g?(k.style.backgroundImage="url("+g+")",k.style.backgroundPosition="center center",k.style.backgroundRepeat="no-repeat",k.style.backgroundSize="24px 24px",
k.style.width="34px"):mxUtils.write(k,b);mxEvent.addListener(k,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(b){b.preventDefault()}));mxEvent.addListener(k,"click",function(b){"disabled"!=k.getAttribute("disabled")&&c(b);mxEvent.consume(b)});null==d&&(k.style.marginRight="4px");null!=e&&k.setAttribute("title",e);null!=f&&(b=function(){f.isEnabled()?(k.removeAttribute("disabled"),k.style.cursor="pointer"):(k.setAttribute("disabled","disabled"),k.style.cursor="default")},
f.addListener("stateChanged",b),n.addListener("enabledChanged",b),b());return k}function g(b,c,d){d=document.createElement("div");d.className="geMenuItem";d.style.display="inline-block";d.style.verticalAlign="top";d.style.marginRight="6px";d.style.padding="0 4px 0 4px";d.style.height="30px";d.style.position="relative";d.style.top="0px";"1"==urlParams.sketch&&(d.style.boxShadow="none");for(var e=0;e<b.length;e++)null!=b[e]&&("1"==urlParams.sketch&&(b[e].style.padding="10px 8px",b[e].style.width="30px"),
-b[e].style.margin="0px",b[e].style.boxShadow="none",d.appendChild(b[e]));null!=c&&mxUtils.setOpacity(d,c);null!=m.statusContainer&&"1"!=urlParams.sketch?p.insertBefore(d,m.statusContainer):p.appendChild(d);return d}function k(){if("1"==urlParams.sketch)"1"!=urlParams.embedInline&&(H.style.left=58>F.offsetTop-F.offsetHeight/2?"70px":"10px");else{for(var b=p.firstChild;null!=b;){var e=b.nextSibling;"geMenuItem"!=b.className&&"geItem"!=b.className||b.parentNode.removeChild(b);b=e}q=p.firstChild;f=window.innerWidth||
+b[e].style.margin="0px",b[e].style.boxShadow="none",d.appendChild(b[e]));null!=c&&mxUtils.setOpacity(d,c);null!=m.statusContainer&&"1"!=urlParams.sketch?p.insertBefore(d,m.statusContainer):p.appendChild(d);return d}function k(){if("1"==urlParams.sketch)"1"!=urlParams.embedInline&&(I.style.left=58>E.offsetTop-E.offsetHeight/2?"70px":"10px");else{for(var b=p.firstChild;null!=b;){var e=b.nextSibling;"geMenuItem"!=b.className&&"geItem"!=b.className||b.parentNode.removeChild(b);b=e}q=p.firstChild;f=window.innerWidth||
document.documentElement.clientWidth||document.body.clientWidth;var b=1E3>f||"1"==urlParams.sketch,k=null;b||(k=c("diagram"));e=b?c("diagram",null,Editor.drawLogoImage):null;null!=e&&(k=e);g([k,d(mxResources.get("shapes"),m.actions.get("toggleShapes").funct,null,mxResources.get("shapes"),m.actions.get("image"),b?Editor.shapesImage:null),d(mxResources.get("format"),m.actions.get("toggleFormat").funct,null,mxResources.get("format")+" ("+m.actions.get("formatPanel").shortcut+")",m.actions.get("image"),
-b?Editor.formatImage:null)],b?60:null);e=c("insert",!0,b?E:null);g([e,d(mxResources.get("delete"),m.actions.get("delete").funct,null,mxResources.get("delete"),m.actions.get("delete"),b?Editor.trashImage:null)],b?60:null);411<=f&&(g([ba,na],60),520<=f&&g([Ga,640<=f?d("",ra.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +)",ra,Editor.zoomInImage):null,640<=f?d("",R.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",R,Editor.zoomOutImage):null],60))}null!=k&&(mxEvent.disableContextMenu(k),
-mxEvent.addGestureListeners(k,mxUtils.bind(this,function(b){(mxEvent.isShiftDown(b)||mxEvent.isAltDown(b)||mxEvent.isMetaDown(b)||mxEvent.isControlDown(b)||mxEvent.isPopupTrigger(b))&&m.appIconClicked(b)}),null,null));e=m.menus.get("language");null!=e&&!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&600<=f&&"1"!=urlParams.sketch?(null==ya&&(e=t.addMenu("",e.funct),e.setAttribute("title",mxResources.get("language")),e.className="geToolbarButton",e.style.backgroundImage="url("+Editor.globeImage+")",
-e.style.backgroundPosition="center center",e.style.backgroundRepeat="no-repeat",e.style.backgroundSize="24px 24px",e.style.position="absolute",e.style.height="24px",e.style.width="24px",e.style.zIndex="1",e.style.right="8px",e.style.cursor="pointer",e.style.top="1"==urlParams.embed?"12px":"11px",p.appendChild(e),ya=e),m.buttonContainer.style.paddingRight="34px"):(m.buttonContainer.style.paddingRight="4px",null!=ya&&(ya.parentNode.removeChild(ya),ya=null))}N.apply(this,arguments);"1"!=urlParams.embedInline&&
+b?Editor.formatImage:null)],b?60:null);e=c("insert",!0,b?F:null);g([e,d(mxResources.get("delete"),m.actions.get("delete").funct,null,mxResources.get("delete"),m.actions.get("delete"),b?Editor.trashImage:null)],b?60:null);411<=f&&(g([Z,la],60),520<=f&&g([Fa,640<=f?d("",ma.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +)",ma,Editor.zoomInImage):null,640<=f?d("",ra.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",ra,Editor.zoomOutImage):null],60))}null!=k&&(mxEvent.disableContextMenu(k),
+mxEvent.addGestureListeners(k,mxUtils.bind(this,function(b){(mxEvent.isShiftDown(b)||mxEvent.isAltDown(b)||mxEvent.isMetaDown(b)||mxEvent.isControlDown(b)||mxEvent.isPopupTrigger(b))&&m.appIconClicked(b)}),null,null));e=m.menus.get("language");null!=e&&!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&600<=f&&"1"!=urlParams.sketch?(null==wa&&(e=t.addMenu("",e.funct),e.setAttribute("title",mxResources.get("language")),e.className="geToolbarButton",e.style.backgroundImage="url("+Editor.globeImage+")",
+e.style.backgroundPosition="center center",e.style.backgroundRepeat="no-repeat",e.style.backgroundSize="24px 24px",e.style.position="absolute",e.style.height="24px",e.style.width="24px",e.style.zIndex="1",e.style.right="8px",e.style.cursor="pointer",e.style.top="1"==urlParams.embed?"12px":"11px",p.appendChild(e),wa=e),m.buttonContainer.style.paddingRight="34px"):(m.buttonContainer.style.paddingRight="4px",null!=wa&&(wa.parentNode.removeChild(wa),wa=null))}O.apply(this,arguments);"1"!=urlParams.embedInline&&
this.doSetDarkMode(null!=urlParams.dark?1==urlParams.dark&&!mxClient.IS_IE&&!mxClient.IS_IE11:null!=mxSettings.settings.darkMode?mxSettings.settings.darkMode:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches);var l=document.createElement("div");l.style.cssText="position:absolute;left:0px;right:0px;top:0px;overflow-y:auto;overflow-x:hidden;";l.style.bottom="1"!=urlParams.embed||"1"==urlParams.libraries?"63px":"32px";this.sidebar=this.createSidebar(l);"1"==urlParams.sketch&&
null!=this.sidebar&&this.isSettingsEnabled()&&(this.editor.chromeless&&!this.editor.editable||!(mxSettings.settings.isNew||8>=parseInt(mxSettings.settings.version||0))||(this.toggleScratchpad(),mxSettings.save()),this.sidebar.showPalette("search",mxSettings.settings.search));if("1"!=urlParams.sketch&&1E3<=f||null!=urlParams.clibs||null!=urlParams.libs||null!=urlParams["search-shapes"])e(this,!0),null!=this.sidebar&&null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes&&(this.sidebar.searchShapes(urlParams["search-shapes"]),
this.sidebar.showEntries("search"));var m=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==m.embedViewport)mxUtils.fit(this.div);else{var b=parseInt(this.div.offsetLeft),c=parseInt(this.div.offsetWidth);this.div.style.left=Math.max(m.embedViewport.x,Math.min(b,m.embedViewport.x+m.embedViewport.width-c))+"px";b=parseInt(this.div.offsetTop);c=parseInt(this.div.offsetHeight);this.div.style.top=Math.max(m.embedViewport.y,Math.min(b,m.embedViewport.y+m.embedViewport.height-c))+
-"px"}};this.keyHandler.bindAction(75,!0,"toggleShapes",!0);EditorUi.windowed&&("1"==urlParams.sketch||1E3<=f)&&"1"!=urlParams.embedInline&&(b(this,!0),"1"==urlParams.sketch&&(this.initFormatWindow(),null!=this.formatWindow&&this.formatWindow.window.toggleMinimized()));var m=this,n=m.editor.graph;m.toolbar=this.createToolbar(m.createDiv("geToolbar"));m.defaultLibraryName=mxResources.get("untitledLibrary");var p=document.createElement("div");p.className="geMenubarContainer";var q=null,t=new Menubar(m,
+"px"}};this.keyHandler.bindAction(75,!0,"toggleShapes",!0);EditorUi.windowed&&("1"==urlParams.sketch||1E3<=f)&&"1"!=urlParams.embedInline&&(b(this,!0),"1"==urlParams.sketch&&(this.initFormatWindow(),null!=this.formatWindow&&1200>f&&this.formatWindow.window.toggleMinimized()));var m=this,n=m.editor.graph;m.toolbar=this.createToolbar(m.createDiv("geToolbar"));m.defaultLibraryName=mxResources.get("untitledLibrary");var p=document.createElement("div");p.className="geMenubarContainer";var q=null,t=new Menubar(m,
p);m.statusContainer=m.createStatusContainer();m.statusContainer.style.position="relative";m.statusContainer.style.maxWidth="";m.statusContainer.style.marginTop="7px";m.statusContainer.style.marginLeft="6px";m.statusContainer.style.color="gray";m.statusContainer.style.cursor="default";var u=m.hideCurrentMenu;m.hideCurrentMenu=function(){u.apply(this,arguments);this.editor.graph.popupMenuHandler.hideMenu()};var v=m.descriptorChanged;m.descriptorChanged=function(){v.apply(this,arguments);var b=m.getCurrentFile();
if(null!=b&&null!=b.getTitle()){var c=b.getMode();"google"==c?c="googleDrive":"github"==c?c="gitHub":"gitlab"==c?c="gitLab":"onedrive"==c&&(c="oneDrive");c=mxResources.get(c);p.setAttribute("title",b.getTitle()+(null!=c?" ("+c+")":""))}else p.removeAttribute("title")};m.setStatusText(m.editor.getStatus());p.appendChild(m.statusContainer);m.buttonContainer=document.createElement("div");m.buttonContainer.style.cssText="position:absolute;right:0px;padding-right:34px;top:10px;white-space:nowrap;padding-top:2px;background-color:inherit;";
p.appendChild(m.buttonContainer);m.menubarContainer=m.buttonContainer;m.tabContainer=document.createElement("div");m.tabContainer.className="geTabContainer";m.tabContainer.style.cssText="position:absolute;left:0px;right:0px;bottom:0px;height:30px;white-space:nowrap;margin-bottom:-2px;visibility:hidden;";var l=m.diagramContainer.parentNode,x=document.createElement("div");x.style.cssText="position:absolute;top:0px;left:0px;right:0px;bottom:0px;overflow:hidden;";m.diagramContainer.style.top="1"==urlParams.sketch?
-"0px":"47px";if("1"==urlParams.winCtrls&&"1"==urlParams.sketch){x.style.top="20px";m.titlebar=document.createElement("div");m.titlebar.style.cssText="position:absolute;top:0px;left:0px;right:0px;height:20px;overflow:hidden;box-shadow: 0px 0px 2px #c0c0c0;";var z=document.createElement("div");z.style.cssText="max-width: calc(100% - 100px);text-overflow: ellipsis;user-select:none;height:20px;margin: 2px 10px;font-size: 12px;white-space: nowrap;overflow: hidden;";m.titlebar.appendChild(z);l.appendChild(m.titlebar)}var y=
-m.menus.get("viewZoom"),E="1"!=urlParams.sketch?Editor.plusImage:Editor.shapesImage,D="1"==urlParams.sketch?document.createElement("div"):null,F="1"==urlParams.sketch?document.createElement("div"):null,H="1"==urlParams.sketch?document.createElement("div"):null,z=mxUtils.bind(this,function(){null!=this.sidebar&&this.sidebar.refresh();n.refresh();n.view.validateBackground()});m.addListener("darkModeChanged",z);m.addListener("sketchModeChanged",z);var ta=mxUtils.bind(this,function(){if(Editor.inlineFullscreen)H.style.left=
-"10px",H.style.top="10px",F.style.left="10px",F.style.top="60px",D.style.top="10px",D.style.right="12px",D.style.left="",m.diagramContainer.setAttribute("data-bounds",m.diagramContainer.style.top+" "+m.diagramContainer.style.left+" "+m.diagramContainer.style.width+" "+m.diagramContainer.style.height),m.diagramContainer.style.top="0px",m.diagramContainer.style.left="0px",m.diagramContainer.style.bottom="0px",m.diagramContainer.style.right="0px",m.diagramContainer.style.width="",m.diagramContainer.style.height=
+"0px":"47px";if("1"==urlParams.winCtrls&&"1"==urlParams.sketch){x.style.top="20px";m.titlebar=document.createElement("div");m.titlebar.style.cssText="position:absolute;top:0px;left:0px;right:0px;height:20px;overflow:hidden;box-shadow: 0px 0px 2px #c0c0c0;";var y=document.createElement("div");y.style.cssText="max-width: calc(100% - 100px);text-overflow: ellipsis;user-select:none;height:20px;margin: 2px 10px;font-size: 12px;white-space: nowrap;overflow: hidden;";m.titlebar.appendChild(y);l.appendChild(m.titlebar)}var z=
+m.menus.get("viewZoom"),F="1"!=urlParams.sketch?Editor.plusImage:Editor.shapesImage,D="1"==urlParams.sketch?document.createElement("div"):null,E="1"==urlParams.sketch?document.createElement("div"):null,I="1"==urlParams.sketch?document.createElement("div"):null,y=mxUtils.bind(this,function(){null!=this.sidebar&&this.sidebar.refresh();n.refresh();n.view.validateBackground()});m.addListener("darkModeChanged",y);m.addListener("sketchModeChanged",y);var na=mxUtils.bind(this,function(){if(Editor.inlineFullscreen)I.style.left=
+"10px",I.style.top="10px",E.style.left="10px",E.style.top="60px",D.style.top="10px",D.style.right="12px",D.style.left="",m.diagramContainer.setAttribute("data-bounds",m.diagramContainer.style.top+" "+m.diagramContainer.style.left+" "+m.diagramContainer.style.width+" "+m.diagramContainer.style.height),m.diagramContainer.style.top="0px",m.diagramContainer.style.left="0px",m.diagramContainer.style.bottom="0px",m.diagramContainer.style.right="0px",m.diagramContainer.style.width="",m.diagramContainer.style.height=
"";else{var b=m.diagramContainer.getAttribute("data-bounds");if(null!=b){m.diagramContainer.style.background="transparent";m.diagramContainer.removeAttribute("data-bounds");var c=n.getGraphBounds(),b=b.split(" ");m.diagramContainer.style.top=b[0];m.diagramContainer.style.left=b[1];m.diagramContainer.style.width=c.width+50+"px";m.diagramContainer.style.height=c.height+46+"px";m.diagramContainer.style.bottom="";m.diagramContainer.style.right="";(window.opener||window.parent).postMessage(JSON.stringify({event:"resize",
-rect:m.diagramContainer.getBoundingClientRect()}),"*");m.refresh()}H.style.left=m.diagramContainer.offsetLeft+"px";H.style.top=m.diagramContainer.offsetTop-H.offsetHeight-4+"px";F.style.display="";F.style.left=m.diagramContainer.offsetLeft-F.offsetWidth-4+"px";F.style.top=m.diagramContainer.offsetTop+"px";D.style.left=m.diagramContainer.offsetLeft+m.diagramContainer.offsetWidth-D.offsetWidth+"px";D.style.top=H.style.top;D.style.right="";m.bottomResizer.style.left=m.diagramContainer.offsetLeft+(m.diagramContainer.offsetWidth-
+rect:m.diagramContainer.getBoundingClientRect()}),"*");m.refresh()}I.style.left=m.diagramContainer.offsetLeft+"px";I.style.top=m.diagramContainer.offsetTop-I.offsetHeight-4+"px";E.style.display="";E.style.left=m.diagramContainer.offsetLeft-E.offsetWidth-4+"px";E.style.top=m.diagramContainer.offsetTop+"px";D.style.left=m.diagramContainer.offsetLeft+m.diagramContainer.offsetWidth-D.offsetWidth+"px";D.style.top=I.style.top;D.style.right="";m.bottomResizer.style.left=m.diagramContainer.offsetLeft+(m.diagramContainer.offsetWidth-
m.bottomResizer.offsetWidth)/2+"px";m.bottomResizer.style.top=m.diagramContainer.offsetTop+m.diagramContainer.offsetHeight-m.bottomResizer.offsetHeight/2-1+"px";m.rightResizer.style.left=m.diagramContainer.offsetLeft+m.diagramContainer.offsetWidth-m.rightResizer.offsetWidth/2-1+"px";m.rightResizer.style.top=m.diagramContainer.offsetTop+(m.diagramContainer.offsetHeight-m.bottomResizer.offsetHeight)/2+"px"}m.bottomResizer.style.visibility=Editor.inlineFullscreen?"hidden":"";m.rightResizer.style.visibility=
-m.bottomResizer.style.visibility;p.style.display="none";H.style.visibility="";D.style.visibility=""}),ua=mxUtils.bind(this,function(){Aa.style.backgroundImage="url("+(Editor.inlineFullscreen?Editor.fullscreenExitImage:Editor.fullscreenImage)+")";this.diagramContainer.style.background=Editor.inlineFullscreen?Editor.isDarkMode()?Editor.darkColor:"#ffffff":"transparent";ta()}),z=mxUtils.bind(this,function(){ua();b(m,!0);m.initFormatWindow();var c=this.diagramContainer.getBoundingClientRect();this.formatWindow.window.setLocation(c.x+
-c.width+4,c.y)});m.addListener("inlineFullscreenChanged",ua);m.addListener("editInlineStart",z);"1"==urlParams.embedInline&&m.addListener("darkModeChanged",z);m.addListener("editInlineStop",mxUtils.bind(this,function(b){m.diagramContainer.style.width="10px";m.diagramContainer.style.height="10px";m.diagramContainer.style.border="";m.bottomResizer.style.visibility="hidden";m.rightResizer.style.visibility="hidden";H.style.visibility="hidden";D.style.visibility="hidden";F.style.display="none"}));if(null!=
-m.hoverIcons){var ha=m.hoverIcons.update;m.hoverIcons.update=function(){n.freehand.isDrawing()||ha.apply(this,arguments)}}if(null!=n.freehand){var oa=n.freehand.createStyle;n.freehand.createStyle=function(b){return oa.apply(this,arguments)+"sketch=0;"}}if("1"==urlParams.sketch){F.className="geToolbarContainer";D.className="geToolbarContainer";H.className="geToolbarContainer";p.className="geToolbarContainer";m.picker=F;var Y=!1;mxEvent.addListener(p,"mouseenter",function(){m.statusContainer.style.display=
-"inline-block"});mxEvent.addListener(p,"mouseleave",function(){Y||(m.statusContainer.style.display="none")});var Q=mxUtils.bind(this,function(b){null!=m.notificationBtn&&(null!=b?m.notificationBtn.setAttribute("title",b):m.notificationBtn.removeAttribute("title"))});"1"!=urlParams.embed?(p.style.visibility=14>p.clientWidth?"hidden":"",m.editor.addListener("statusChanged",mxUtils.bind(this,function(){m.setStatusText(m.editor.getStatus());if(0==m.statusContainer.children.length||1==m.statusContainer.children.length&&
-"function"===typeof m.statusContainer.firstChild.getAttribute&&null==m.statusContainer.firstChild.getAttribute("class")){var b=null!=m.statusContainer.firstChild&&"function"===typeof m.statusContainer.firstChild.getAttribute?m.statusContainer.firstChild.getAttribute("title"):m.editor.getStatus();Q(b);var c=m.getCurrentFile(),c=null!=c?c.savingStatusKey:DrawioFile.prototype.savingStatusKey;b==mxResources.get(c)+"..."?(m.statusContainer.innerHTML='<img title="'+mxUtils.htmlEntities(mxResources.get(c))+
-'..."src="'+Editor.tailSpin+'">',m.statusContainer.style.display="inline-block",Y=!0):6<m.buttonContainer.clientWidth&&(m.statusContainer.style.display="none",Y=!1)}else m.statusContainer.style.display="inline-block",Q(null),Y=!0;p.style.visibility=12<p.clientWidth?"":"hidden"}))):m.editor.addListener("statusChanged",mxUtils.bind(this,function(){p.style.visibility=16<p.clientWidth?"":"hidden"}));O=c("diagram",null,Editor.menuImage);O.style.boxShadow="none";O.style.padding="6px";O.style.margin="0px";
-H.appendChild(O);mxEvent.disableContextMenu(O);mxEvent.addGestureListeners(O,mxUtils.bind(this,function(b){(mxEvent.isShiftDown(b)||mxEvent.isAltDown(b)||mxEvent.isMetaDown(b)||mxEvent.isControlDown(b)||mxEvent.isPopupTrigger(b))&&this.appIconClicked(b)}),null,null);m.statusContainer.style.position="";m.statusContainer.style.display="none";m.statusContainer.style.margin="0px";m.statusContainer.style.padding="6px 0px";m.statusContainer.style.maxWidth=Math.min(f-240,280)+"px";m.statusContainer.style.display=
-"inline-block";m.statusContainer.style.textOverflow="ellipsis";m.buttonContainer.style.position="";m.buttonContainer.style.paddingRight="0px";m.buttonContainer.style.display="inline-block";var ea=document.createElement("a");ea.style.padding="0px";ea.style.boxShadow="none";ea.className="geMenuItem";ea.style.display="inline-block";ea.style.width="40px";ea.style.height="12px";ea.style.marginBottom="-2px";ea.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+")";ea.style.backgroundPosition=
-"top center";ea.style.backgroundRepeat="no-repeat";ea.setAttribute("title","Minimize");var S=!1,ma=mxUtils.bind(this,function(){F.innerHTML="";if(!S){var b=function(b,c,f){b=d("",b.funct,null,c,b,f);b.style.width="40px";b.style.opacity="0.7";return e(b,null,"pointer")},e=function(b,c,d){null!=c&&b.setAttribute("title",c);b.style.cursor=null!=d?d:"default";b.style.margin="2px 0px";F.appendChild(b);mxUtils.br(F);return b};e(m.sidebar.createVertexTemplate("text;strokeColor=none;fillColor=none;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;",
+m.bottomResizer.style.visibility;p.style.display="none";I.style.visibility="";D.style.visibility=""}),qa=mxUtils.bind(this,function(){ya.style.backgroundImage="url("+(Editor.inlineFullscreen?Editor.fullscreenExitImage:Editor.fullscreenImage)+")";this.diagramContainer.style.background=Editor.inlineFullscreen?Editor.isDarkMode()?Editor.darkColor:"#ffffff":"transparent";na()}),y=mxUtils.bind(this,function(){qa();b(m,!0);m.initFormatWindow();var c=this.diagramContainer.getBoundingClientRect();this.formatWindow.window.setLocation(c.x+
+c.width+4,c.y)});m.addListener("inlineFullscreenChanged",qa);m.addListener("editInlineStart",y);"1"==urlParams.embedInline&&m.addListener("darkModeChanged",y);m.addListener("editInlineStop",mxUtils.bind(this,function(b){m.diagramContainer.style.width="10px";m.diagramContainer.style.height="10px";m.diagramContainer.style.border="";m.bottomResizer.style.visibility="hidden";m.rightResizer.style.visibility="hidden";I.style.visibility="hidden";D.style.visibility="hidden";E.style.display="none"}));if(null!=
+m.hoverIcons){var pa=m.hoverIcons.update;m.hoverIcons.update=function(){n.freehand.isDrawing()||pa.apply(this,arguments)}}if(null!=n.freehand){var ha=n.freehand.createStyle;n.freehand.createStyle=function(b){return ha.apply(this,arguments)+"sketch=0;"}}if("1"==urlParams.sketch){E.className="geToolbarContainer";D.className="geToolbarContainer";I.className="geToolbarContainer";p.className="geToolbarContainer";m.picker=E;var sa=!1;mxEvent.addListener(p,"mouseenter",function(){m.statusContainer.style.display=
+"inline-block"});mxEvent.addListener(p,"mouseleave",function(){sa||(m.statusContainer.style.display="none")});var Y=mxUtils.bind(this,function(b){null!=m.notificationBtn&&(null!=b?m.notificationBtn.setAttribute("title",b):m.notificationBtn.removeAttribute("title"))});"1"!=urlParams.embed?(p.style.visibility=14>p.clientWidth?"hidden":"",m.editor.addListener("statusChanged",mxUtils.bind(this,function(){m.setStatusText(m.editor.getStatus());if(0==m.statusContainer.children.length||1==m.statusContainer.children.length&&
+"function"===typeof m.statusContainer.firstChild.getAttribute&&null==m.statusContainer.firstChild.getAttribute("class")){var b=null!=m.statusContainer.firstChild&&"function"===typeof m.statusContainer.firstChild.getAttribute?m.statusContainer.firstChild.getAttribute("title"):m.editor.getStatus();Y(b);var c=m.getCurrentFile(),c=null!=c?c.savingStatusKey:DrawioFile.prototype.savingStatusKey;b==mxResources.get(c)+"..."?(m.statusContainer.innerHTML='<img title="'+mxUtils.htmlEntities(mxResources.get(c))+
+'..."src="'+Editor.tailSpin+'">',m.statusContainer.style.display="inline-block",sa=!0):6<m.buttonContainer.clientWidth&&(m.statusContainer.style.display="none",sa=!1)}else m.statusContainer.style.display="inline-block",Y(null),sa=!0;p.style.visibility=12<p.clientWidth?"":"hidden"}))):m.editor.addListener("statusChanged",mxUtils.bind(this,function(){p.style.visibility=16<p.clientWidth?"":"hidden"}));R=c("diagram",null,Editor.menuImage);R.style.boxShadow="none";R.style.padding="6px";R.style.margin=
+"0px";I.appendChild(R);mxEvent.disableContextMenu(R);mxEvent.addGestureListeners(R,mxUtils.bind(this,function(b){(mxEvent.isShiftDown(b)||mxEvent.isAltDown(b)||mxEvent.isMetaDown(b)||mxEvent.isControlDown(b)||mxEvent.isPopupTrigger(b))&&this.appIconClicked(b)}),null,null);m.statusContainer.style.position="";m.statusContainer.style.display="none";m.statusContainer.style.margin="0px";m.statusContainer.style.padding="6px 0px";m.statusContainer.style.maxWidth=Math.min(f-240,280)+"px";m.statusContainer.style.display=
+"inline-block";m.statusContainer.style.textOverflow="ellipsis";m.buttonContainer.style.position="";m.buttonContainer.style.paddingRight="0px";m.buttonContainer.style.display="inline-block";var Q=document.createElement("a");Q.style.padding="0px";Q.style.boxShadow="none";Q.className="geMenuItem";Q.style.display="inline-block";Q.style.width="40px";Q.style.height="12px";Q.style.marginBottom="-2px";Q.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+")";Q.style.backgroundPosition="top center";
+Q.style.backgroundRepeat="no-repeat";Q.setAttribute("title","Minimize");var ta=!1,T=mxUtils.bind(this,function(){E.innerHTML="";if(!ta){var b=function(b,c,f){b=d("",b.funct,null,c,b,f);b.style.width="40px";b.style.opacity="0.7";return e(b,null,"pointer")},e=function(b,c,d){null!=c&&b.setAttribute("title",c);b.style.cursor=null!=d?d:"default";b.style.margin="2px 0px";E.appendChild(b);mxUtils.br(E);return b};e(m.sidebar.createVertexTemplate("text;strokeColor=none;fillColor=none;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;",
60,30,"Text",mxResources.get("text"),!0,!1,null,!0,!0),mxResources.get("text")+" ("+Editor.ctrlKey+"+Shift+X)");e(m.sidebar.createVertexTemplate("shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;fontColor=#000000;darkOpacity=0.05;fillColor=#FFF9B2;strokeColor=none;fillStyle=solid;direction=west;gradientDirection=north;gradientColor=#FFF2A1;shadow=1;size=20;pointerEvents=1;",140,160,"",mxResources.get("note"),!0,!1,null,!0),mxResources.get("note"));e(m.sidebar.createVertexTemplate("rounded=0;whiteSpace=wrap;html=1;",
160,80,"",mxResources.get("rectangle"),!0,!1,null,!0),mxResources.get("rectangle")+" ("+Editor.ctrlKey+"+K)");e(m.sidebar.createVertexTemplate("ellipse;whiteSpace=wrap;html=1;",160,100,"",mxResources.get("ellipse"),!0,!1,null,!0),mxResources.get("ellipse"));(function(){var b=new mxCell("",new mxGeometry(0,0,n.defaultEdgeLength,0),"edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;");b.geometry.setTerminalPoint(new mxPoint(0,0),!0);b.geometry.setTerminalPoint(new mxPoint(b.geometry.width,0),!1);
b.geometry.points=[];b.geometry.relative=!0;b.edge=!0;e(m.sidebar.createEdgeTemplateFromCells([b],b.geometry.width,b.geometry.height,mxResources.get("line"),!0,null,!0,!1),mxResources.get("line"));b=b.clone();b.style="edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;shape=flexArrow;rounded=1;startSize=8;endSize=8;";b.geometry.width=n.defaultEdgeLength+20;b.geometry.setTerminalPoint(new mxPoint(0,20),!0);b.geometry.setTerminalPoint(new mxPoint(b.geometry.width,20),!1);b=e(m.sidebar.createEdgeTemplateFromCells([b],
-b.geometry.width,40,mxResources.get("arrow"),!0,null,!0,!1),mxResources.get("arrow"));b.style.borderBottom="1px solid "+(Editor.isDarkMode()?"#505050":"lightgray");b.style.paddingBottom="14px";b.style.marginBottom="14px"})();b(m.actions.get("insertFreehand"),mxResources.get("freehand"),Editor.freehandImage);var f=m.actions.get("toggleShapes");b(f,mxResources.get("shapes")+" ("+f.shortcut+")",E);O=c("table",null,Editor.calendarImage);O.style.boxShadow="none";O.style.opacity="0.7";O.style.padding="6px";
-O.style.margin="0px";O.style.width="37px";e(O,null,"pointer");O=c("insert",null,Editor.plusImage);O.style.boxShadow="none";O.style.opacity="0.7";O.style.padding="6px";O.style.margin="0px";O.style.width="37px";e(O,null,"pointer")}"1"!=urlParams.embedInline&&F.appendChild(ea)});mxEvent.addListener(ea,"click",mxUtils.bind(this,function(){S?(mxUtils.setPrefixedStyle(F.style,"transform","translate(0, -50%)"),F.style.padding="8px 6px 4px",F.style.top="50%",F.style.bottom="",F.style.height="",ea.style.backgroundImage=
-"url("+mxWindow.prototype.normalizeImage+")",ea.style.width="40px",ea.style.height="12px",ea.setAttribute("title","Minimize"),S=!1,ma()):(F.innerHTML="",F.appendChild(ea),mxUtils.setPrefixedStyle(F.style,"transform","translate(0, 0)"),F.style.top="",F.style.bottom="12px",F.style.padding="0px",F.style.height="24px",ea.style.height="24px",ea.style.backgroundImage="url("+Editor.plusImage+")",ea.setAttribute("title",mxResources.get("insert")),ea.style.width="24px",S=!0)}));ma();m.addListener("darkModeChanged",
-ma);m.addListener("sketchModeChanged",ma)}else m.editor.addListener("statusChanged",mxUtils.bind(this,function(){m.setStatusText(m.editor.getStatus())}));if(null!=y){var pa=function(b){n.popupMenuHandler.hideMenu();mxEvent.isAltDown(b)||mxEvent.isShiftDown(b)?m.actions.get("customZoom").funct():m.actions.get("smartFit").funct()},ra=m.actions.get("zoomIn"),R=m.actions.get("zoomOut"),qa=m.actions.get("resetView"),z=m.actions.get("fullscreen"),ia=m.actions.get("undo"),fa=m.actions.get("redo"),ba=d("",
-ia.funct,null,mxResources.get("undo")+" ("+ia.shortcut+")",ia,Editor.undoImage),na=d("",fa.funct,null,mxResources.get("redo")+" ("+fa.shortcut+")",fa,Editor.redoImage),Aa=d("",z.funct,null,mxResources.get("fullscreen"),z,Editor.fullscreenImage);if(null!=D){y=function(){Z.style.display=null!=m.pages&&("0"!=urlParams.pages||1<m.pages.length||Editor.pagesVisible)?"inline-block":"none"};qa=function(){Z.innerHTML="";null!=m.currentPage&&mxUtils.write(Z,m.currentPage.getName())};Aa.parentNode.removeChild(Aa);
-var xa=m.actions.get("delete"),sa=d("",xa.funct,null,mxResources.get("delete"),xa,Editor.trashImage);sa.style.opacity="0.1";H.appendChild(sa);xa.addListener("stateChanged",function(){sa.style.opacity=xa.enabled?"":"0.1"});var ka=function(){ba.style.display=0<m.editor.undoManager.history.length||n.isEditing()?"inline-block":"none";na.style.display=ba.style.display;ba.style.opacity=ia.enabled?"":"0.1";na.style.opacity=fa.enabled?"":"0.1"};H.appendChild(ba);H.appendChild(na);ia.addListener("stateChanged",
-ka);fa.addListener("stateChanged",ka);ka();null!=urlParams.layers&&(ka=m.actions.get("layers"),ka=d("",ka.funct,null,mxResources.get("layers"),ka,Editor.layersImage),ka.style.opacity="0.4",D.appendChild(ka));null!=urlParams.tags&&(ka=m.actions.get("tags"),ka=d("",ka.funct,null,mxResources.get("tags"),ka,Editor.tagsImage),ka.style.opacity="0.4",D.appendChild(ka));var Z=this.createPageMenuTab(!1,!0);Z.style.display="none";Z.style.position="";Z.style.marginLeft="";Z.style.top="";Z.style.left="";Z.style.height=
-"100%";Z.style.lineHeight="";Z.style.borderStyle="none";Z.style.padding="3px 0";Z.style.margin="0px";Z.style.background="";Z.style.border="";Z.style.boxShadow="none";Z.style.verticalAlign="top";Z.style.width="auto";Z.style.maxWidth="160px";Z.style.position="relative";Z.style.padding="6px";Z.style.textOverflow="ellipsis";Z.style.opacity="0.8";m.editor.addListener("pageSelected",qa);m.editor.addListener("pageRenamed",qa);m.editor.addListener("fileLoaded",qa);qa();null!=m.currentPage&&(mxUtils.write(O,
-m.currentPage.getName()),console.log("initial page not emptry"));D.appendChild(Z);m.addListener("fileDescriptorChanged",y);m.addListener("pagesVisibleChanged",y);y();y=d("",R.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -/Alt+Mousewheel)",R,Editor.zoomOutImage);D.appendChild(y);var O=document.createElement("div");O.innerHTML="100%";O.setAttribute("title",mxResources.get("fitWindow")+"/"+mxResources.get("resetView")+" (Enter)");O.style.display="inline-block";O.style.cursor="pointer";O.style.textAlign=
-"center";O.style.whiteSpace="nowrap";O.style.paddingRight="10px";O.style.textDecoration="none";O.style.verticalAlign="top";O.style.padding="6px 0";O.style.fontSize="14px";O.style.width="40px";O.style.opacity="0.4";D.appendChild(O);mxEvent.addListener(O,"click",pa);pa=d("",ra.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +/Alt+Mousewheel)",ra,Editor.zoomInImage);D.appendChild(pa);z.visible&&(D.appendChild(Aa),mxEvent.addListener(document,"fullscreenchange",function(){Aa.style.backgroundImage=
-"url("+(null!=document.fullscreenElement?Editor.fullscreenExitImage:Editor.fullscreenImage)+")"}));"1"==urlParams.embedInline&&(z=m.actions.get("exit"),D.appendChild(d("",z.funct,null,mxResources.get("exit"),z,Editor.closeImage)));m.tabContainer.style.visibility="hidden";p.style.cssText="position:absolute;right:14px;top:10px;height:30px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px 0px 6px 6px;border-bottom:1px solid lightgray;text-align:right;white-space:nowrap;overflow:hidden;user-select:none;";
-H.style.cssText="position:absolute;left:10px;top:10px;height:30px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;border-bottom:1px solid lightgray;text-align:right;white-space:nowrap;overflow:hidden;user-select:none;";D.style.cssText="position:absolute;right:14px;bottom:14px;height:28px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:8px;white-space:nowrap;user-select:none;";x.appendChild(H);x.appendChild(D);F.style.cssText="position:absolute;left:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:8px 6px 4px 6px;white-space:nowrap;transform:translate(0, -50%);top:50%;user-select:none;";
-x.appendChild(F);window.setTimeout(function(){mxUtils.setPrefixedStyle(F.style,"transition","transform .3s ease-out")},0);"1"==urlParams["format-toolbar"]&&this.installFormatToolbar(x)}else{var Ga=d("",pa,!0,mxResources.get("fit")+" ("+Editor.ctrlKey+"+H)",qa,Editor.zoomFitImage);p.style.cssText="position:absolute;left:0px;right:0px;top:0px;height:30px;padding:8px;text-align:left;white-space:nowrap;";this.tabContainer.style.right="70px";O=t.addMenu("100%",y.funct);O.setAttribute("title",mxResources.get("zoom")+
-" (Alt+Mousewheel)");O.style.whiteSpace="nowrap";O.style.paddingRight="10px";O.style.textDecoration="none";O.style.textDecoration="none";O.style.overflow="hidden";O.style.visibility="hidden";O.style.textAlign="center";O.style.cursor="pointer";O.style.height=parseInt(m.tabContainerHeight)-1+"px";O.style.lineHeight=parseInt(m.tabContainerHeight)+1+"px";O.style.position="absolute";O.style.display="block";O.style.fontSize="12px";O.style.width="59px";O.style.right="0px";O.style.bottom="0px";O.style.backgroundImage=
-"url("+mxWindow.prototype.minimizeImage+")";O.style.backgroundPosition="right 6px center";O.style.backgroundRepeat="no-repeat";x.appendChild(O)}(function(b){var c=mxUtils.bind(this,function(){b.innerHTML="";mxUtils.write(b,Math.round(100*m.editor.graph.view.scale)+"%")});m.editor.graph.view.addListener(mxEvent.EVENT_SCALE,c);m.editor.addListener("resetGraphView",c);m.editor.addListener("pageSelected",c)})(O);var Da=m.setGraphEnabled;m.setGraphEnabled=function(){Da.apply(this,arguments);null!=this.tabContainer&&
-(O.style.visibility=this.tabContainer.style.visibility,this.diagramContainer.style.bottom="hidden"!=this.tabContainer.style.visibility&&null==D?this.tabContainerHeight+"px":"0px")}}x.appendChild(p);x.appendChild(m.diagramContainer);l.appendChild(x);m.updateTabContainer();!EditorUi.windowed&&("1"==urlParams.sketch||1E3<=f)&&"1"!=urlParams.embedInline&&b(this,!0);null==D&&x.appendChild(m.tabContainer);var ya=null;k();mxEvent.addListener(window,"resize",function(){k();null!=m.sidebarWindow&&m.sidebarWindow.window.fit();
-null!=m.formatWindow&&m.formatWindow.window.fit();null!=m.actions.outlineWindow&&m.actions.outlineWindow.window.fit();null!=m.actions.layersWindow&&m.actions.layersWindow.window.fit();null!=m.menus.tagsWindow&&m.menus.tagsWindow.window.fit();null!=m.menus.findWindow&&m.menus.findWindow.window.fit();null!=m.menus.findReplaceWindow&&m.menus.findReplaceWindow.window.fit()});if("1"==urlParams.embedInline){document.body.style.cursor="text";F.style.transform="";mxEvent.addGestureListeners(m.diagramContainer.parentNode,
-function(b){mxEvent.getSource(b)==m.diagramContainer.parentNode&&(m.embedExitPoint=new mxPoint(mxEvent.getClientX(b),mxEvent.getClientY(b)),m.sendEmbeddedSvgExport())});l=document.createElement("div");l.style.position="absolute";l.style.width="10px";l.style.height="10px";l.style.borderRadius="5px";l.style.border="1px solid gray";l.style.background="#ffffff";l.style.cursor="row-resize";m.diagramContainer.parentNode.appendChild(l);m.bottomResizer=l;var Ea=null,va=null,Ha=null,Ca=null;mxEvent.addGestureListeners(l,
-function(b){Ca=parseInt(m.diagramContainer.style.height);va=mxEvent.getClientY(b);n.popupMenuHandler.hideMenu();mxEvent.consume(b)});l=l.cloneNode(!1);l.style.cursor="col-resize";m.diagramContainer.parentNode.appendChild(l);m.rightResizer=l;mxEvent.addGestureListeners(l,function(b){Ha=parseInt(m.diagramContainer.style.width);Ea=mxEvent.getClientX(b);n.popupMenuHandler.hideMenu();mxEvent.consume(b)});mxEvent.addGestureListeners(document.body,null,function(b){var c=!1;null!=Ea&&(m.diagramContainer.style.width=
-Math.max(20,Ha+mxEvent.getClientX(b)-Ea)+"px",c=!0);null!=va&&(m.diagramContainer.style.height=Math.max(20,Ca+mxEvent.getClientY(b)-va)+"px",c=!0);c&&((window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:Editor.inlineFullscreen,rect:m.diagramContainer.getBoundingClientRect()}),"*"),ta(),m.refresh())},function(b){null==Ea&&null==va||mxEvent.consume(b);va=Ea=null});this.diagramContainer.style.borderRadius="4px";document.body.style.backgroundColor="transparent";m.bottomResizer.style.visibility=
-"hidden";m.rightResizer.style.visibility="hidden";H.style.visibility="hidden";D.style.visibility="hidden";F.style.display="none"}"1"==urlParams.prefetchFonts&&m.editor.loadFonts()}}};(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var c=EditorUi.initTheme;EditorUi.initTheme=function(){c.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();DrawioComment=function(b,c,e,f,n,l,q){this.file=b;this.id=c;this.content=e;this.modifiedDate=f;this.createdDate=n;this.isResolved=l;this.user=q;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,c,e,f,n){c()};DrawioComment.prototype.editComment=function(b,c,e){c()};DrawioComment.prototype.deleteComment=function(b,c){b()};DrawioUser=function(b,c,e,f,n){this.id=b;this.email=c;this.displayName=e;this.pictureUrl=f;this.locale=n};mxResources.parse('# *DO NOT DIRECTLY EDIT THIS FILE, IT IS AUTOMATICALLY GENERATED AND IT IS BASED ON:*\n# https://docs.google.com/spreadsheet/ccc?key=0AmQEO36liL4FdDJLWVNMaVV2UmRKSnpXU09MYkdGbEE\nabout=About\naboutDrawio=About draw.io\naccessDenied=Access Denied\naction=Action\nactualSize=Actual Size\nadd=Add\naddAccount=Add account\naddedFile=Added {1}\naddImages=Add Images\naddImageUrl=Add Image URL\naddLayer=Add Layer\naddProperty=Add Property\naddress=Address\naddToExistingDrawing=Add to Existing Drawing\naddWaypoint=Add Waypoint\nadjustTo=Adjust to\nadvanced=Advanced\nalign=Align\nalignment=Alignment\nallChangesLost=All changes will be lost!\nallPages=All Pages\nallProjects=All Projects\nallSpaces=All Spaces\nallTags=All Tags\nanchor=Anchor\nandroid=Android\nangle=Angle\narc=Arc\nareYouSure=Are you sure?\nensureDataSaved=Please ensure your data is saved before closing.\nallChangesSaved=All changes saved\nallChangesSavedInDrive=All changes saved in Drive\nallowPopups=Allow pop-ups to avoid this dialog.\nallowRelativeUrl=Allow relative URL\nalreadyConnected=Nodes already connected\napply=Apply\narchiMate21=ArchiMate 2.1\narrange=Arrange\narrow=Arrow\narrows=Arrows\nasNew=As New\natlas=Atlas\nauthor=Author\nauthorizationRequired=Authorization required\nauthorizeThisAppIn=Authorize this app in {1}:\nauthorize=Authorize\nauthorizing=Authorizing\nautomatic=Automatic\nautosave=Autosave\nautosize=Autosize\nattachments=Attachments\naws=AWS\naws3d=AWS 3D\nazure=Azure\nback=Back\nbackground=Background\nbackgroundColor=Background Color\nbackgroundImage=Background Image\nbasic=Basic\nblankDrawing=Blank Drawing\nblankDiagram=Blank Diagram\nblock=Block\nblockquote=Blockquote\nblog=Blog\nbold=Bold\nbootstrap=Bootstrap\nborder=Border\nborderColor=Border Color\nborderWidth=Border Width\nbottom=Bottom\nbottomAlign=Bottom Align\nbottomLeft=Bottom Left\nbottomRight=Bottom Right\nbpmn=BPMN\nbringForward=Bring Forward\nbrowser=Browser\nbulletedList=Bulleted List\nbusiness=Business\nbusy=Operation in progress\ncabinets=Cabinets\ncancel=Cancel\ncenter=Center\ncannotLoad=Load attempts failed. Please try again later.\ncannotLogin=Log in attempts failed. Please try again later.\ncannotOpenFile=Cannot open file\nchange=Change\nchangeOrientation=Change Orientation\nchangeUser=Change user\nchangeStorage=Change storage\nchangesNotSaved=Changes have not been saved\nclassDiagram=Class Diagram\nuserJoined={1} has joined\nuserLeft={1} has left\nchatWindowTitle=Chat\nchooseAnOption=Choose an option\nchromeApp=Chrome App\ncollaborativeEditingNotice=Important Notice for Collaborative Editing\ncompare=Compare\ncompressed=Compressed\ncommitMessage=Commit Message\nconfigLinkWarn=This link configures draw.io. Only click OK if you trust whoever gave you it!\nconfigLinkConfirm=Click OK to configure and restart draw.io.\ncontainer=Container\ncsv=CSV\ndark=Dark\ndiagramXmlDesc=XML File\ndiagramHtmlDesc=HTML File\ndiagramPngDesc=Editable Bitmap Image\ndiagramSvgDesc=Editable Vector Image\ndidYouMeanToExportToPdf=Did you mean to export to PDF?\ndraftFound=A draft for \'{1}\' has been found. Load it into the editor or discard it to continue.\ndraftRevisionMismatch=There is a different version of this diagram on a shared draft of this page. Please edit the diagram from the draft to ensure you are working with the latest version.\nselectDraft=Select a draft to continue editing:\ndragAndDropNotSupported=Drag and drop not supported for images. Would you like to import instead?\ndropboxCharsNotAllowed=The following characters are not allowed: / : ? * " |\ncheck=Check\nchecksum=Checksum\ncircle=Circle\ncisco=Cisco\nclassic=Classic\nclearDefaultStyle=Clear Default Style\nclearWaypoints=Clear Waypoints\nclipart=Clipart\nclose=Close\nclosingFile=Closing file\ncollaborator=Collaborator\ncollaborators=Collaborators\ncollapse=Collapse\ncollapseExpand=Collapse/Expand\ncollapse-expand=Click to collapse/expand\nShift-click to move neighbors \nAlt-click to protect group size\ncollapsible=Collapsible\ncomic=Comic\ncomment=Comment\ncommentsNotes=Comments/Notes\ncompress=Compress\nconfiguration=Configuration\nconnect=Connect\nconnecting=Connecting\nconnectWithDrive=Connect with Google Drive\nconnection=Connection\nconnectionArrows=Connection Arrows\nconnectionPoints=Connection Points\nconstrainProportions=Constrain Proportions\ncontainsValidationErrors=Contains validation errors\ncopiedToClipboard=Copied to clipboard\ncopy=Copy\ncopyConnect=Copy on connect\ncopyCreated=A copy of the file was created.\ncopyData=Copy Data\ncopyOf=Copy of {1}\ncopyOfDrawing=Copy of Drawing\ncopySize=Copy Size\ncopyStyle=Copy Style\ncreate=Create\ncreateNewDiagram=Create New Diagram\ncreateRevision=Create Revision\ncreateShape=Create Shape\ncrop=Crop\ncurved=Curved\ncustom=Custom\ncurrent=Current\ncurrentPage=Current page\ncut=Cut\ndashed=Dashed\ndecideLater=Decide later\ndefault=Default\ndelete=Delete\ndeleteColumn=Delete Column\ndeleteLibrary401=Insufficient permissions to delete this library\ndeleteLibrary404=Selected library could not be found\ndeleteLibrary500=Error deleting library\ndeleteLibraryConfirm=You are about to permanently delete this library. Are you sure you want to do this?\ndeleteRow=Delete Row\ndescription=Description\ndevice=Device\ndiagram=Diagram\ndiagramContent=Diagram Content\ndiagramLocked=Diagram has been locked to prevent further data loss.\ndiagramLockedBySince=The diagram is locked by {1} since {2} ago\ndiagramName=Diagram Name\ndiagramIsPublic=Diagram is public\ndiagramIsNotPublic=Diagram is not public\ndiamond=Diamond\ndiamondThin=Diamond (thin)\ndidYouKnow=Did you know...\ndirection=Direction\ndiscard=Discard\ndiscardChangesAndReconnect=Discard Changes and Reconnect\ngoogleDriveMissingClickHere=Google Drive missing? Click here!\ndiscardChanges=Discard Changes\ndisconnected=Disconnected\ndistribute=Distribute\ndone=Done\ndoNotShowAgain=Do not show again\ndotted=Dotted\ndoubleClickOrientation=Doubleclick to change orientation\ndoubleClickTooltip=Doubleclick to insert text\ndoubleClickChangeProperty=Doubleclick to change property name\ndownload=Download\ndownloadDesktop=Get Desktop\ndownloadAs=Download as\nclickHereToSave=Click here to save.\ndpi=DPI\ndraftDiscarded=Draft discarded\ndraftSaved=Draft saved\ndragElementsHere=Drag elements here\ndragImagesHere=Drag images or URLs here\ndragUrlsHere=Drag URLs here\ndraw.io=draw.io\ndrawing=Drawing{1}\ndrawingEmpty=Drawing is empty\ndrawingTooLarge=Drawing is too large\ndrawioForWork=Draw.io for GSuite\ndropbox=Dropbox\nduplicate=Duplicate\nduplicateIt=Duplicate {1}\ndivider=Divider\ndx=Dx\ndy=Dy\neast=East\nedit=Edit\neditData=Edit Data\neditDiagram=Edit Diagram\neditGeometry=Edit Geometry\neditImage=Edit Image\neditImageUrl=Edit Image URL\neditLink=Edit Link\neditShape=Edit Shape\neditStyle=Edit Style\neditText=Edit Text\neditTooltip=Edit Tooltip\nglass=Glass\ngoogleImages=Google Images\nimageSearch=Image Search\neip=EIP\nembed=Embed\nembedFonts=Embed Fonts\nembedImages=Embed Images\nmainEmbedNotice=Paste this into the page\nelectrical=Electrical\nellipse=Ellipse\nembedNotice=Paste this once at the end of the page\nenterGroup=Enter Group\nenterName=Enter Name\nenterPropertyName=Enter Property Name\nenterValue=Enter Value\nentityRelation=Entity Relation\nentityRelationshipDiagram=Entity Relationship Diagram\nerror=Error\nerrorDeletingFile=Error deleting file\nerrorLoadingFile=Error loading file\nerrorRenamingFile=Error renaming file\nerrorRenamingFileNotFound=Error renaming file. File was not found.\nerrorRenamingFileForbidden=Error renaming file. Insufficient access rights.\nerrorSavingDraft=Error saving draft\nerrorSavingFile=Error saving file\nerrorSavingFileUnknown=Error authorizing with Google\'s servers. Please refresh the page to re-attempt.\nerrorSavingFileForbidden=Error saving file. Insufficient access rights.\nerrorSavingFileNameConflict=Could not save diagram. Current page already contains file named \'{1}\'.\nerrorSavingFileNotFound=Error saving file. File was not found.\nerrorSavingFileReadOnlyMode=Could not save diagram while read-only mode is active.\nerrorSavingFileSessionTimeout=Your session has ended. Please <a target=\'_blank\' href=\'{1}\'>{2}</a> and return to this tab to try to save again.\nerrorSendingFeedback=Error sending feedback.\nerrorUpdatingPreview=Error updating preview.\nexit=Exit\nexitGroup=Exit Group\nexpand=Expand\nexport=Export\nexporting=Exporting\nexportAs=Export as\nexportOptionsDisabled=Export options disabled\nexportOptionsDisabledDetails=The owner has disabled options to download, print or copy for commenters and viewers on this file.\nexternalChanges=External Changes\nextras=Extras\nfacebook=Facebook\nfailedToSaveTryReconnect=Failed to save, trying to reconnect\nfeatureRequest=Feature Request\nfeedback=Feedback\nfeedbackSent=Feedback successfully sent.\nfloorplans=Floorplans\nfile=File\nfileChangedOverwriteDialog=The file has been modified. Do you want to save the file and overwrite those changes?\nfileChangedSyncDialog=The file has been modified.\nfileChangedSync=The file has been modified. Click here to synchronize.\noverwrite=Overwrite\nsynchronize=Synchronize\nfilename=Filename\nfileExists=File already exists\nfileMovedToTrash=File was moved to trash\nfileNearlyFullSeeFaq=File nearly full, please see FAQ\nfileNotFound=File not found\nrepositoryNotFound=Repository not found\nfileNotFoundOrDenied=The file was not found. It does not exist or you do not have access.\nfileNotLoaded=File not loaded\nfileNotSaved=File not saved\nfileOpenLocation=How would you like to open these file(s)?\nfiletypeHtml=.html causes file to save as HTML with redirect to cloud URL\nfiletypePng=.png causes file to save as PNG with embedded data\nfiletypeSvg=.svg causes file to save as SVG with embedded data\nfileWillBeSavedInAppFolder={1} will be saved in the app folder.\nfill=Fill\nfillColor=Fill Color\nfilterCards=Filter Cards\nfind=Find\nfit=Fit\nfitContainer=Resize Container\nfitIntoContainer=Fit into Container\nfitPage=Fit Page\nfitPageWidth=Fit Page Width\nfitTo=Fit to\nfitToSheetsAcross=sheet(s) across\nfitToBy=by\nfitToSheetsDown=sheet(s) down\nfitTwoPages=Two Pages\nfitWindow=Fit Window\nflip=Flip\nflipH=Flip Horizontal\nflipV=Flip Vertical\nflowchart=Flowchart\nfolder=Folder\nfont=Font\nfontColor=Font Color\nfontFamily=Font Family\nfontSize=Font Size\nforbidden=You are not authorized to access this file\nformat=Format\nformatPanel=Format Panel\nformatted=Formatted\nformattedText=Formatted Text\nformatPng=PNG\nformatGif=GIF\nformatJpg=JPEG\nformatPdf=PDF\nformatSql=SQL\nformatSvg=SVG\nformatHtmlEmbedded=HTML\nformatSvgEmbedded=SVG (with XML)\nformatVsdx=VSDX\nformatVssx=VSSX\nformatXmlPlain=XML (Plain)\nformatXml=XML\nforum=Discussion/Help Forums\nfreehand=Freehand\nfromTemplate=From Template\nfromTemplateUrl=From Template URL\nfromText=From Text\nfromUrl=From URL\nfromThisPage=From this page\nfullscreen=Fullscreen\ngap=Gap\ngcp=GCP\ngeneral=General\ngetNotionChromeExtension=Get the Notion Chrome Extension\ngithub=GitHub\ngitlab=GitLab\ngliffy=Gliffy\nglobal=Global\ngoogleDocs=Google Docs\ngoogleDrive=Google Drive\ngoogleGadget=Google Gadget\ngooglePlus=Google+\ngoogleSharingNotAvailable=Sharing is only available via Google Drive. Please click Open below and share from the more actions menu:\ngoogleSlides=Google Slides\ngoogleSites=Google Sites\ngoogleSheets=Google Sheets\ngradient=Gradient\ngradientColor=Color\ngrid=Grid\ngridColor=Grid Color\ngridSize=Grid Size\ngroup=Group\nguides=Guides\nhateApp=I hate draw.io\nheading=Heading\nheight=Height\nhelp=Help\nhelpTranslate=Help us translate this application\nhide=Hide\nhideIt=Hide {1}\nhidden=Hidden\nhome=Home\nhorizontal=Horizontal\nhorizontalFlow=Horizontal Flow\nhorizontalTree=Horizontal Tree\nhowTranslate=How good is the translation in your language?\nhtml=HTML\nhtmlText=HTML Text\nid=ID\niframe=IFrame\nignore=Ignore\nimage=Image\nimageUrl=Image URL\nimages=Images\nimagePreviewError=This image couldn\'t be loaded for preview. Please check the URL.\nimageTooBig=Image too big\nimgur=Imgur\nimport=Import\nimportFrom=Import from\nincludeCopyOfMyDiagram=Include a copy of my diagram\nincreaseIndent=Increase Indent\ndecreaseIndent=Decrease Indent\ninsert=Insert\ninsertColumnBefore=Insert Column Left\ninsertColumnAfter=Insert Column Right\ninsertEllipse=Insert Ellipse\ninsertImage=Insert Image\ninsertHorizontalRule=Insert Horizontal Rule\ninsertLink=Insert Link\ninsertPage=Insert Page\ninsertRectangle=Insert Rectangle\ninsertRhombus=Insert Rhombus\ninsertRowBefore=Insert Row Above\ninsertRowAfter=Insert Row After\ninsertText=Insert Text\ninserting=Inserting\ninstallApp=Install App\ninvalidFilename=Diagram names must not contain the following characters: / | : ; { } < > & + ? = "\ninvalidLicenseSeeThisPage=Your license is invalid, please see this <a target="_blank" href="https://support.draw.io/display/DFCS/Licensing+your+draw.io+plugin">page</a>.\ninvalidInput=Invalid input\ninvalidName=Invalid name\ninvalidOrMissingFile=Invalid or missing file\ninvalidPublicUrl=Invalid public URL\nisometric=Isometric\nios=iOS\nitalic=Italic\nkennedy=Kennedy\nkeyboardShortcuts=Keyboard Shortcuts\nlabels=Labels\nlayers=Layers\nlandscape=Landscape\nlanguage=Language\nleanMapping=Lean Mapping\nlastChange=Last change {1} ago\nlessThanAMinute=less than a minute\nlicensingError=Licensing Error\nlicenseHasExpired=The license for {1} has expired on {2}. Click here.\nlicenseRequired=This feature requires draw.io to be licensed.\nlicenseWillExpire=The license for {1} will expire on {2}. Click here.\nlineJumps=Line jumps\nlinkAccountRequired=If the diagram is not public a Google account is required to view the link.\nlinkText=Link Text\nlist=List\nminute=minute\nminutes=minutes\nhours=hours\ndays=days\nmonths=months\nyears=years\nrestartForChangeRequired=Changes will take effect after a restart of the application.\nlaneColor=Lanecolor\nlastModified=Last modified\nlayout=Layout\nleft=Left\nleftAlign=Left Align\nleftToRight=Left to right\nlibraryTooltip=Drag and drop shapes here or click + to insert. Double click to edit.\nlightbox=Lightbox\nline=Line\nlineend=Line end\nlineheight=Line Height\nlinestart=Line start\nlinewidth=Linewidth\nlink=Link\nlinks=Links\nloading=Loading\nlockUnlock=Lock/Unlock\nloggedOut=Logged Out\nlogIn=log in\nloveIt=I love {1}\nlucidchart=Lucidchart\nmaps=Maps\nmathematicalTypesetting=Mathematical Typesetting\nmakeCopy=Make a Copy\nmanual=Manual\nmerge=Merge\nmermaid=Mermaid\nmicrosoftOffice=Microsoft Office\nmicrosoftExcel=Microsoft Excel\nmicrosoftPowerPoint=Microsoft PowerPoint\nmicrosoftWord=Microsoft Word\nmiddle=Middle\nminimal=Minimal\nmisc=Misc\nmockups=Mockups\nmodificationDate=Modification date\nmodifiedBy=Modified by\nmore=More\nmoreResults=More Results\nmoreShapes=More Shapes\nmove=Move\nmoveToFolder=Move to Folder\nmoving=Moving\nmoveSelectionTo=Move selection to {1}\nname=Name\nnavigation=Navigation\nnetwork=Network\nnetworking=Networking\nnew=New\nnewLibrary=New Library\nnextPage=Next Page\nno=No\nnoPickFolder=No, pick folder\nnoAttachments=No attachments found\nnoColor=No Color\nnoFiles=No Files\nnoFileSelected=No file selected\nnoLibraries=No libraries found\nnoMoreResults=No more results\nnone=None\nnoOtherViewers=No other viewers\nnoPlugins=No plugins\nnoPreview=No preview\nnoResponse=No response from server\nnoResultsFor=No results for \'{1}\'\nnoRevisions=No revisions\nnoSearchResults=No search results found\nnoPageContentOrNotSaved=No anchors found on this page or it hasn\'t been saved yet\nnormal=Normal\nnorth=North\nnotADiagramFile=Not a diagram file\nnotALibraryFile=Not a library file\nnotAvailable=Not available\nnotAUtf8File=Not a UTF-8 file\nnotConnected=Not connected\nnote=Note\nnotion=Notion\nnotSatisfiedWithImport=Not satisfied with the import?\nnotUsingService=Not using {1}?\nnumberedList=Numbered list\noffline=Offline\nok=OK\noneDrive=OneDrive\nonline=Online\nopacity=Opacity\nopen=Open\nopenArrow=Open Arrow\nopenExistingDiagram=Open Existing Diagram\nopenFile=Open File\nopenFrom=Open from\nopenLibrary=Open Library\nopenLibraryFrom=Open Library from\nopenLink=Open Link\nopenInNewWindow=Open in New Window\nopenInThisWindow=Open in This Window\nopenIt=Open {1}\nopenRecent=Open Recent\nopenSupported=Supported formats are files saved from this software (.xml), .vsdx and .gliffy\noptions=Options\norganic=Organic\norgChart=Org Chart\northogonal=Orthogonal\notherViewer=other viewer\notherViewers=other viewers\noutline=Outline\noval=Oval\npage=Page\npageContent=Page Content\npageNotFound=Page not found\npageWithNumber=Page-{1}\npages=Pages\npageView=Page View\npageSetup=Page Setup\npageScale=Page Scale\npan=Pan\npanTooltip=Space+Drag to pan\npaperSize=Paper Size\npattern=Pattern\nparallels=Parallels\npaste=Paste\npasteData=Paste Data\npasteHere=Paste here\npasteSize=Paste Size\npasteStyle=Paste Style\nperimeter=Perimeter\npermissionAnyone=Anyone can edit\npermissionAuthor=Owner and admins can edit\npickFolder=Pick a folder\npickLibraryDialogTitle=Select Library\npublicDiagramUrl=Public URL of the diagram\nplaceholders=Placeholders\nplantUml=PlantUML\nplugins=Plugins\npluginUrl=Plugin URL\npluginWarning=The page has requested to load the following plugin(s):\n \n {1}\n \n Would you like to load these plugin(s) now?\n \n NOTE : Only allow plugins to run if you fully understand the security implications of doing so.\n\nplusTooltip=Click to connect and clone (ctrl+click to clone, shift+click to connect). Drag to connect (ctrl+drag to clone).\nportrait=Portrait\nposition=Position\nposterPrint=Poster Print\npreferences=Preferences\npreview=Preview\npreviousPage=Previous Page\nprint=Print\nprintAllPages=Print All Pages\nprocEng=Proc. Eng.\nproject=Project\npriority=Priority\nproperties=Properties\npublish=Publish\nquickStart=Quick Start Video\nrack=Rack\nradial=Radial\nradialTree=Radial Tree\nreadOnly=Read-only\nreconnecting=Reconnecting\nrecentlyUpdated=Recently Updated\nrecentlyViewed=Recently Viewed\nrectangle=Rectangle\nredirectToNewApp=This file was created or modified in a newer version of this app. You will be redirected now.\nrealtimeTimeout=It looks like you\'ve made a few changes while offline. We\'re sorry, these changes cannot be saved.\nredo=Redo\nrefresh=Refresh\nregularExpression=Regular Expression\nrelative=Relative\nrelativeUrlNotAllowed=Relative URL not allowed\nrememberMe=Remember me\nrememberThisSetting=Remember this setting\nremoveFormat=Clear Formatting\nremoveFromGroup=Remove from Group\nremoveIt=Remove {1}\nremoveWaypoint=Remove Waypoint\nrename=Rename\nrenamed=Renamed\nrenameIt=Rename {1}\nrenaming=Renaming\nreplace=Replace\nreplaceIt={1} already exists. Do you want to replace it?\nreplaceExistingDrawing=Replace existing drawing\nrequired=required\nreset=Reset\nresetView=Reset View\nresize=Resize\nresizeLargeImages=Do you want to resize large images to make the application run faster?\nretina=Retina\nresponsive=Responsive\nrestore=Restore\nrestoring=Restoring\nretryingIn=Retrying in {1} second(s)\nretryingLoad=Load failed. Retrying...\nretryingLogin=Login time out. Retrying...\nreverse=Reverse\nrevision=Revision\nrevisionHistory=Revision History\nrhombus=Rhombus\nright=Right\nrightAlign=Right Align\nrightToLeft=Right to left\nrotate=Rotate\nrotateTooltip=Click and drag to rotate, click to turn shape only by 90 degrees\nrotation=Rotation\nrounded=Rounded\nsave=Save\nsaveAndExit=Save & Exit\nsaveAs=Save as\nsaveAsXmlFile=Save as XML file?\nsaved=Saved\nsaveDiagramFirst=Please save the diagram first\nsaveDiagramsTo=Save diagrams to\nsaveLibrary403=Insufficient permissions to edit this library\nsaveLibrary500=There was an error while saving the library\nsaveLibraryReadOnly=Could not save library while read-only mode is active\nsaving=Saving\nscratchpad=Scratchpad\nscrollbars=Scrollbars\nsearch=Search\nsearchShapes=Search Shapes\nselectAll=Select All\nselectionOnly=Selection Only\nselectCard=Select Card\nselectEdges=Select Edges\nselectFile=Select File\nselectFolder=Select Folder\nselectFont=Select Font\nselectNone=Select None\nselectTemplate=Select Template\nselectVertices=Select Vertices\nsendBackward=Send Backward\nsendMessage=Send\nsendYourFeedback=Send your feedback\nserviceUnavailableOrBlocked=Service unavailable or blocked\nsessionExpired=Your session has expired. Please refresh the browser window.\nsessionTimeoutOnSave=Your session has timed out and you have been disconnected from the Google Drive. Press OK to login and save.\nsetAsDefaultStyle=Set as Default Style\nshadow=Shadow\nshape=Shape\nshapes=Shapes\nshare=Share\nshareLink=Link for shared editing\nsharingAvailable=Sharing available for Google Drive and OneDrive files.\nsharp=Sharp\nshow=Show\nshowStartScreen=Show Start Screen\nsidebarTooltip=Click to expand. Drag and drop shapes into the diagram. Shift+click to change selection. Alt+click to insert and connect.\nsigns=Signs\nsignOut=Sign out\nsimple=Simple\nsimpleArrow=Simple Arrow\nsimpleViewer=Simple Viewer\nsize=Size\nsketch=Sketch\nsnapToGrid=Snap to Grid\nsolid=Solid\nsourceSpacing=Source Spacing\nsouth=South\nsoftware=Software\nspace=Space\nspacing=Spacing\nspecialLink=Special Link\nstandard=Standard\nstartDrawing=Start drawing\nstopDrawing=Stop drawing\nstarting=Starting\nstraight=Straight\nstrikethrough=Strikethrough\nstrokeColor=Line Color\nstyle=Style\nsubscript=Subscript\nsummary=Summary\nsuperscript=Superscript\nsupport=Support\nswimlaneDiagram=Swimlane Diagram\nsysml=SysML\ntags=Tags\ntable=Table\ntables=Tables\ntakeOver=Take Over\ntargetSpacing=Target Spacing\ntemplate=Template\ntemplates=Templates\ntext=Text\ntextAlignment=Text Alignment\ntextOpacity=Text Opacity\ntheme=Theme\ntimeout=Timeout\ntitle=Title\nto=to\ntoBack=To Back\ntoFront=To Front\ntooLargeUseDownload=Too large, use download instead.\ntoolbar=Toolbar\ntooltips=Tooltips\ntop=Top\ntopAlign=Top Align\ntopLeft=Top Left\ntopRight=Top Right\ntransparent=Transparent\ntransparentBackground=Transparent Background\ntrello=Trello\ntryAgain=Try again\ntryOpeningViaThisPage=Try opening via this page\nturn=Rotate shape only by 90°\ntype=Type\ntwitter=Twitter\numl=UML\nunderline=Underline\nundo=Undo\nungroup=Ungroup\nunmerge=Unmerge\nunsavedChanges=Unsaved changes\nunsavedChangesClickHereToSave=Unsaved changes. Click here to save.\nuntitled=Untitled\nuntitledDiagram=Untitled Diagram\nuntitledLayer=Untitled Layer\nuntitledLibrary=Untitled Library\nunknownError=Unknown error\nupdateFile=Update {1}\nupdatingDocument=Updating Document. Please wait...\nupdatingPreview=Updating Preview. Please wait...\nupdatingSelection=Updating Selection. Please wait...\nupload=Upload\nurl=URL\nuseOffline=Use Offline\nuseRootFolder=Use root folder?\nuserManual=User Manual\nvertical=Vertical\nverticalFlow=Vertical Flow\nverticalTree=Vertical Tree\nview=View\nviewerSettings=Viewer Settings\nviewUrl=Link to view: {1}\nvoiceAssistant=Voice Assistant (beta)\nwarning=Warning\nwaypoints=Waypoints\nwest=West\nwidth=Width\nwiki=Wiki\nwordWrap=Word Wrap\nwritingDirection=Writing Direction\nyes=Yes\nyourEmailAddress=Your email address\nzoom=Zoom\nzoomIn=Zoom In\nzoomOut=Zoom Out\nbasic=Basic\nbusinessprocess=Business Processes\ncharts=Charts\nengineering=Engineering\nflowcharts=Flowcharts\ngmdl=Material Design\nmindmaps=Mindmaps\nmockups=Mockups\nnetworkdiagrams=Network Diagrams\nnothingIsSelected=Nothing is selected\nother=Other\nsoftwaredesign=Software Design\nvenndiagrams=Venn Diagrams\nwebEmailOrOther=Web, email or any other internet address\nwebLink=Web Link\nwireframes=Wireframes\nproperty=Property\nvalue=Value\nshowMore=Show More\nshowLess=Show Less\nmyDiagrams=My Diagrams\nallDiagrams=All Diagrams\nrecentlyUsed=Recently used\nlistView=List view\ngridView=Grid view\nresultsFor=Results for \'{1}\'\noneDriveCharsNotAllowed=The following characters are not allowed: ~ " # % * : < > ? / { | }\noneDriveInvalidDeviceName=The specified device name is invalid\nofficeNotLoggedOD=You are not logged in to OneDrive. Please open draw.io task pane and login first.\nofficeSelectSingleDiag=Please select a single draw.io diagram only without other contents.\nofficeSelectDiag=Please select a draw.io diagram.\nofficeCannotFindDiagram=Cannot find a draw.io diagram in the selection\nnoDiagrams=No diagrams found\nauthFailed=Authentication failed\nofficeFailedAuthMsg=Unable to successfully authenticate user or authorize application.\nconvertingDiagramFailed=Converting diagram failed\nofficeCopyImgErrMsg=Due to some limitations in the host application, the image could not be inserted. Please manually copy the image then paste it to the document.\ninsertingImageFailed=Inserting image failed\nofficeCopyImgInst=Instructions: Right-click the image below. Select "Copy image" from the context menu. Then, in the document, right-click and select "Paste" from the context menu.\nfolderEmpty=Folder is empty\nrecent=Recent\nsharedWithMe=Shared With Me\nsharepointSites=Sharepoint Sites\nerrorFetchingFolder=Error fetching folder items\nerrorAuthOD=Error authenticating to OneDrive\nofficeMainHeader=Adds draw.io diagrams to your document.\nofficeStepsHeader=This add-in performs the following steps:\nofficeStep1=Connects to Microsoft OneDrive, Google Drive or your device.\nofficeStep2=Select a draw.io diagram.\nofficeStep3=Insert the diagram into the document.\nofficeAuthPopupInfo=Please complete the authentication in the pop-up window.\nofficeSelDiag=Select draw.io Diagram:\nfiles=Files\nshared=Shared\nsharepoint=Sharepoint\nofficeManualUpdateInst=Instructions: Copy draw.io diagram from the document. Then, in the box below, right-click and select "Paste" from the context menu.\nofficeClickToEdit=Click icon to start editing:\npasteDiagram=Paste draw.io diagram here\nconnectOD=Connect to OneDrive\nselectChildren=Select Children\nselectSiblings=Select Siblings\nselectParent=Select Parent\nselectDescendants=Select Descendants\nlastSaved=Last saved {1} ago\nresolve=Resolve\nreopen=Re-open\nshowResolved=Show Resolved\nreply=Reply\nobjectNotFound=Object not found\nreOpened=Re-opened\nmarkedAsResolved=Marked as resolved\nnoCommentsFound=No comments found\ncomments=Comments\ntimeAgo={1} ago\nconfluenceCloud=Confluence Cloud\nlibraries=Libraries\nconfAnchor=Confluence Page Anchor\nconfTimeout=The connection has timed out\nconfSrvTakeTooLong=The server at {1} is taking too long to respond.\nconfCannotInsertNew=Cannot insert draw.io diagram to a new Confluence page\nconfSaveTry=Please save the page and try again.\nconfCannotGetID=Unable to determine page ID\nconfContactAdmin=Please contact your Confluence administrator.\nreadErr=Read Error\neditingErr=Editing Error\nconfExtEditNotPossible=This diagram cannot be edited externally. Please try editing it while editing the page\nconfEditedExt=Diagram/Page edited externally\ndiagNotFound=Diagram Not Found\nconfEditedExtRefresh=Diagram/Page is edited externally. Please refresh the page.\nconfCannotEditDraftDelOrExt=Cannot edit diagrams in a draft page, diagram is deleted from the page, or diagram is edited externally. Please check the page.\nretBack=Return back\nconfDiagNotPublished=The diagram does not belong to a published page\ncreatedByDraw=Created by draw.io\nfilenameShort=Filename too short\ninvalidChars=Invalid characters\nalreadyExst={1} already exists\ndraftReadErr=Draft Read Error\ndiagCantLoad=Diagram cannot be loaded\ndraftWriteErr=Draft Write Error\ndraftCantCreate=Draft could not be created\nconfDuplName=Duplicate diagram name detected. Please pick another name.\nconfSessionExpired=Looks like your session expired. Log in again to keep working.\nlogin=Login\ndrawPrev=draw.io preview\ndrawDiag=draw.io diagram\ninvalidCallFnNotFound=Invalid Call: {1} not found\ninvalidCallErrOccured=Invalid Call: An error occurred, {1}\nanonymous=Anonymous\nconfGotoPage=Go to containing page\nshowComments=Show Comments\nconfError=Error: {1}\ngliffyImport=Gliffy Import\ngliffyImportInst1=Click the "Start Import" button to import all Gliffy diagrams to draw.io.\ngliffyImportInst2=Please note that the import procedure will take some time and the browser window must remain open until the import is completed.\nstartImport=Start Import\ndrawConfig=draw.io Configuration\ncustomLib=Custom Libraries\ncustomTemp=Custom Templates\npageIdsExp=Page IDs Export\ndrawReindex=draw.io re-indexing (beta)\nworking=Working\ndrawConfigNotFoundInst=draw.io Configuration Space (DRAWIOCONFIG) does not exist. This space is needed to store draw.io configuration files and custom libraries/templates.\ncreateConfSp=Create Config Space\nunexpErrRefresh=Unexpected error, please refresh the page and try again.\nconfigJSONInst=Write draw.io JSON configuration in the editor below then click save. If you need help, please refer to\nthisPage=this page\ncurCustLib=Current Custom Libraries\nlibName=Library Name\naction=Action\ndrawConfID=draw.io Config ID\naddLibInst=Click the "Add Library" button to upload a new library.\naddLib=Add Library\ncustomTempInst1=Custom templates are draw.io diagrams saved in children pages of\ncustomTempInst2=For more details, please refer to\ntempsPage=Templates page\npageIdsExpInst1=Select export target, then click the "Start Export" button to export all pages IDs.\npageIdsExpInst2=Please note that the export procedure will take some time and the browser window must remain open until the export is completed.\nstartExp=Start Export\nrefreshDrawIndex=Refresh draw.io Diagrams Index\nreindexInst1=Click the "Start Indexing" button to refresh draw.io diagrams index.\nreindexInst2=Please note that the indexing procedure will take some time and the browser window must remain open until the indexing is completed.\nstartIndexing=Start Indexing\nconfAPageFoundFetch=Page "{1}" found. Fetching\nconfAAllDiagDone=All {1} diagrams processed. Process finished.\nconfAStartedProcessing=Started processing page "{1}"\nconfAAllDiagInPageDone=All {1} diagrams in page "{2}" processed successfully.\nconfAPartialDiagDone={1} out of {2} {3} diagrams in page "{4}" processed successfully.\nconfAUpdatePageFailed=Updating page "{1}" failed.\nconfANoDiagFoundInPage=No {1} diagrams found in page "{2}".\nconfAFetchPageFailed=Fetching the page failed.\nconfANoDiagFound=No {1} diagrams found. Process finished.\nconfASearchFailed=Searching for {1} diagrams failed. Please try again later.\nconfAGliffyDiagFound={2} diagram "{1}" found. Importing\nconfAGliffyDiagImported={2} diagram "{1}" imported successfully.\nconfASavingImpGliffyFailed=Saving imported {2} diagram "{1}" failed.\nconfAImportedFromByDraw=Imported from "{1}" by draw.io\nconfAImportGliffyFailed=Importing {2} diagram "{1}" failed.\nconfAFetchGliffyFailed=Fetching {2} diagram "{1}" failed.\nconfACheckBrokenDiagLnk=Checking for broken diagrams links.\nconfADelDiagLinkOf=Deleting diagram link of "{1}"\nconfADupLnk=(duplicate link)\nconfADelDiagLnkFailed=Deleting diagram link of "{1}" failed.\nconfAUnexpErrProcessPage=Unexpected error during processing the page with id: {1}\nconfADiagFoundIndex=Diagram "{1}" found. Indexing\nconfADiagIndexSucc=Diagram "{1}" indexed successfully.\nconfAIndexDiagFailed=Indexing diagram "{1}" failed.\nconfASkipDiagOtherPage=Skipped "{1}" as it belongs to another page!\nconfADiagUptoDate=Diagram "{1}" is up to date.\nconfACheckPagesWDraw=Checking pages having draw.io diagrams.\nconfAErrOccured=An error occurred!\nsavedSucc=Saved successfully\nconfASaveFailedErr=Saving Failed (Unexpected Error)\ncharacter=Character\nconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachment\nconfALibPageDesc=This page contains draw.io custom libraries as attachments\nconfATempPageDesc=This page contains draw.io custom templates as attachments\nworking=Working\nconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templates\nconfANoCustLib=No Custom Libraries\ndelFailed=Delete failed!\nshowID=Show ID\nconfAIncorrectLibFileType=Incorrect file type. Libraries should be XML files.\nuploading=Uploading\nconfALibExist=This library already exists\nconfAUploadSucc=Uploaded successfully\nconfAUploadFailErr=Upload Failed (Unexpected Error)\nhiResPreview=High Res Preview\nofficeNotLoggedGD=You are not logged in to Google Drive. Please open draw.io task pane and login first.\nofficePopupInfo=Please complete the process in the pop-up window.\npickODFile=Pick OneDrive File\npickGDriveFile=Pick Google Drive File\npickDeviceFile=Pick Device File\nvsdNoConfig="vsdurl" is not configured\nruler=Ruler\nunits=Units\npoints=Points\ninches=Inches\nmillimeters=Millimeters\nconfEditDraftDelOrExt=This diagram is in a draft page, is deleted from the page, or is edited externally. It will be saved as a new attachment version and may not be reflected in the page.\nconfDiagEditedExt=Diagram is edited in another session. It will be saved as a new attachment version but the page will show other session\'s modifications.\nmacroNotFound=Macro Not Found\nconfAInvalidPageIdsFormat=Incorrect Page IDs file format\nconfACollectingCurPages=Collecting current pages\nconfABuildingPagesMap=Building pages mapping\nconfAProcessDrawDiag=Started processing imported draw.io diagrams\nconfAProcessDrawDiagDone=Finished processing imported draw.io diagrams\nconfAProcessImpPages=Started processing imported pages\nconfAErrPrcsDiagInPage=Error processing draw.io diagrams in page "{1}"\nconfAPrcsDiagInPage=Processing draw.io diagrams in page "{1}"\nconfAImpDiagram=Importing diagram "{1}"\nconfAImpDiagramFailed=Importing diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\nconfAImpDiagramError=Error importing diagram "{1}". Cannot fetch or save the diagram. Cannot fix this diagram links.\nconfAUpdateDgrmCCFailed=Updating link to diagram "{1}" failed.\nconfImpDiagramSuccess=Updating diagram "{1}" done successfully.\nconfANoLnksInDrgm=No links to update in: {1}\nconfAUpdateLnkToPg=Updated link to page: "{1}" in diagram: "{2}"\nconfAUpdateLBLnkToPg=Updated lightbox link to page: "{1}" in diagram: "{2}"\nconfAUpdateLnkBase=Updated base URL from: "{1}" to: "{2}" in diagram: "{3}"\nconfAPageIdsImpDone=Page IDs Import finished\nconfAPrcsMacrosInPage=Processing draw.io macros in page "{1}"\nconfAErrFetchPage=Error fetching page "{1}"\nconfAFixingMacro=Fixing macro of diagram "{1}"\nconfAErrReadingExpFile=Error reading export file\nconfAPrcsDiagInPageDone=Processing draw.io diagrams in page "{1}" finished\nconfAFixingMacroSkipped=Fixing macro of diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\npageIdsExpTrg=Export target\nconfALucidDiagImgImported={2} diagram "{1}" image extracted successfully\nconfASavingLucidDiagImgFailed=Extracting {2} diagram "{1}" image failed\nconfGetInfoFailed=Fetching file info from {1} failed.\nconfCheckCacheFailed=Cannot get cached file info.\nconfReadFileErr=Cannot read "{1}" file from {2}.\nconfSaveCacheFailed=Unexpected error. Cannot save cached file\norgChartType=Org Chart Type\nlinear=Linear\nhanger2=Hanger 2\nhanger4=Hanger 4\nfishbone1=Fishbone 1\nfishbone2=Fishbone 2\n1ColumnLeft=Single Column Left\n1ColumnRight=Single Column Right\nsmart=Smart\nparentChildSpacing=Parent Child Spacing\nsiblingSpacing=Sibling Spacing\nconfNoPermErr=Sorry, you don\'t have enough permissions to view this embedded diagram from page {1}\ncopyAsImage=Copy as Image\nlucidImport=Lucidchart Import\nlucidImportInst1=Click the "Start Import" button to import all Lucidchart diagrams.\ninstallFirst=Please install {1} first\ndrawioChromeExt=draw.io Chrome Extension\nloginFirstThen=Please login to {1} first, then {2}\nerrFetchDocList=Error: Couldn\'t fetch documents list\nbuiltinPlugins=Built-in Plugins\nextPlugins=External Plugins\nbackupFound=Backup file found\nchromeOnly=This feature only works in Google Chrome\nmsgDeleted=This message has been deleted\nconfAErrFetchDrawList=Error fetching diagrams list. Some diagrams are skipped.\nconfAErrCheckDrawDiag=Cannot check diagram {1}\nconfAErrFetchPageList=Error fetching pages list\nconfADiagImportIncom={1} diagram "{2}" is imported partially and may have missing shapes\ninvalidSel=Invalid selection\ndiagNameEmptyErr=Diagram name cannot be empty\nopenDiagram=Open Diagram\nnewDiagram=New diagram\neditable=Editable\nconfAReimportStarted=Re-import {1} diagrams started...\nspaceFilter=Filter by spaces\ncurViewState=Current Viewer State\npageLayers=Page and Layers\ncustomize=Customize\nfirstPage=First Page (All Layers)\ncurEditorState=Current Editor State\nnoAnchorsFound=No anchors found\nattachment=Attachment\ncurDiagram=Current Diagram\nrecentDiags=Recent Diagrams\ncsvImport=CSV Import\nchooseFile=Choose a file...\nchoose=Choose\ngdriveFname=Google Drive filename\nwidthOfViewer=Width of the viewer (px)\nheightOfViewer=Height of the viewer (px)\nautoSetViewerSize=Automatically set the size of the viewer\nthumbnail=Thumbnail\nprevInDraw=Preview in draw.io\nonedriveFname=OneDrive filename\ndiagFname=Diagram filename\ndiagUrl=Diagram URL\nshowDiag=Show Diagram\ndiagPreview=Diagram Preview\ncsvFileUrl=CSV File URL\ngenerate=Generate\nselectDiag2Insert=Please select a diagram to insert it.\nerrShowingDiag=Unexpected error. Cannot show diagram\nnoRecentDiags=No recent diagrams found\nfetchingRecentFailed=Failed to fetch recent diagrams\nuseSrch2FindDiags=Use the search box to find draw.io diagrams\ncantReadChckPerms=Cannot read the specified diagram. Please check you have read permission on that file.\ncantFetchChckPerms=Cannot fetch diagram info. Please check you have read permission on that file.\nsearchFailed=Searching failed. Please try again later.\nplsTypeStr=Please type a search string.\nunsupportedFileChckUrl=Unsupported file. Please check the specified URL\ndiagNotFoundChckUrl=Diagram not found or cannot be accessed. Please check the specified URL\ncsvNotFoundChckUrl=CSV file not found or cannot be accessed. Please check the specified URL\ncantReadUpload=Cannot read the uploaded diagram\nselect=Select\nerrCantGetIdType=Unexpected Error: Cannot get content id or type.\nerrGAuthWinBlocked=Error: Google Authentication window blocked\nauthDrawAccess=Authorize draw.io to access {1}\nconnTimeout=The connection has timed out\nerrAuthSrvc=Error authenticating to {1}\nplsSelectFile=Please select a file\nmustBgtZ={1} must be greater than zero\ncantLoadPrev=Cannot load file preview.\nerrAccessFile=Error: Access Denied. You do not have permission to access "{1}".\nnoPrevAvail=No preview is available.\npersonalAccNotSup=Personal accounts are not supported.\nerrSavingTryLater=Error occurred during saving, please try again later.\nplsEnterFld=Please enter {1}\ninvalidDiagUrl=Invalid Diagram URL\nunsupportedVsdx=Unsupported vsdx file\nunsupportedImg=Unsupported image file\nunsupportedFormat=Unsupported file format\nplsSelectSingleFile=Please select a single file only\nattCorrupt=Attachment file "{1}" is corrupted\nloadAttFailed=Failed to load attachment "{1}"\nembedDrawDiag=Embed draw.io Diagram\naddDiagram=Add Diagram\nembedDiagram=Embed Diagram\neditOwningPg=Edit owning page\ndeepIndexing=Deep Indexing (Index diagrams that aren\'t used in any page also)\nconfADeepIndexStarted=Deep Indexing Started\nconfADeepIndexDone=Deep Indexing Done\nofficeNoDiagramsSelected=No diagrams found in the selection\nofficeNoDiagramsInDoc=No diagrams found in the document\nofficeNotSupported=This feature is not supported in this host application\nsomeImagesFailed={1} out of {2} failed due to the following errors\nimportingNoUsedDiagrams=Importing {1} Diagrams not used in pages\nimportingDrafts=Importing {1} Diagrams in drafts\nprocessingDrafts=Processing drafts\nupdatingDrafts=Updating drafts\nupdateDrafts=Update drafts\nnotifications=Notifications\ndrawioImp=draw.io Import\nconfALibsImp=Importing draw.io Libraries\nconfALibsImpFailed=Importing {1} library failed\ncontributors=Contributors\ndrawDiagrams=draw.io Diagrams\nerrFileNotFoundOrNoPer=Error: Access Denied. File not found or you do not have permission to access "{1}" on {2}.\nconfACheckPagesWEmbed=Checking pages having embedded draw.io diagrams.\nconfADelBrokenEmbedDiagLnk=Removing broken embedded diagram links\nreplaceWith=Replace with\nreplaceAll=Replace All\nconfASkipDiagModified=Skipped "{1}" as it was modified after initial import\nreplFind=Replace/Find\nmatchesRepl={1} matches replaced\ndraftErrDataLoss=An error occurred while reading the draft file. The diagram cannot be edited now to prevent any possible data loss. Please try again later or contact support.\nibm=IBM\nlinkToDiagramHint=Add a link to this diagram. The diagram can only be edited from the page that owns it.\nlinkToDiagram=Link to Diagram\nchangedBy=Changed By\nlastModifiedOn=Last modified on\nsearchResults=Search Results\nshowAllTemps=Show all templates\nnotionToken=Notion Token\nselectDB=Select Database\nnoDBs=No Databases\ndiagramEdited={1} diagram "{2}" edited\nconfDraftPermissionErr=Draft cannot be written. Do you have attachment write/read permission on this page?\nconfDraftTooBigErr=Draft size is too large. Pease check "Attachment Maximum Size" of "Attachment Settings" in Confluence Configuration?\nowner=Owner\nrepository=Repository\nbranch=Branch\nmeters=Meters\nteamsNoEditingMsg=Editor functionality is only available in Desktop environment (in MS Teams App or a web browser)\ncontactOwner=Contact Owner\nviewerOnlyMsg=You cannot edit the diagrams in the mobile platform, please use the desktop client or a web browser.\nwebsite=Website\ncheck4Updates=Check for updates\nattWriteFailedRetry={1}: Attachment write failed, trying again in {2} seconds...\nconfPartialPageList=We couldn\'t fetch all pages due to an error in Confluence. Continuing using {1} pages only.\nspellCheck=Spell checker\nnoChange=No Change\nlblToSvg=Convert labels to SVG\ntxtSettings=Text Settings\nLinksLost=Links will be lost\narcSize=Arc Size\n');Graph.prototype.defaultThemes["default-style2"]=mxUtils.parseXml('<mxStylesheet><add as="defaultVertex"><add as="shape" value="label"/><add as="perimeter" value="rectanglePerimeter"/><add as="fontSize" value="12"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="fillColor" value="default"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="defaultEdge"><add as="shape" value="connector"/><add as="labelBackgroundColor" value="default"/><add as="endArrow" value="classic"/><add as="fontSize" value="11"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="rounded" value="1"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="text"><add as="fillColor" value="none"/><add as="gradientColor" value="none"/><add as="strokeColor" value="none"/><add as="align" value="left"/><add as="verticalAlign" value="top"/></add><add as="edgeLabel" extend="text"><add as="labelBackgroundColor" value="default"/><add as="fontSize" value="11"/></add><add as="label"><add as="fontStyle" value="1"/><add as="align" value="left"/><add as="verticalAlign" value="middle"/><add as="spacing" value="2"/><add as="spacingLeft" value="52"/><add as="imageWidth" value="42"/><add as="imageHeight" value="42"/><add as="rounded" value="1"/></add><add as="icon" extend="label"><add as="align" value="center"/><add as="imageAlign" value="center"/><add as="verticalLabelPosition" value="bottom"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="4"/><add as="labelBackgroundColor" value="default"/><add as="spacing" value="0"/><add as="spacingLeft" value="0"/><add as="spacingTop" value="6"/><add as="fontStyle" value="0"/><add as="imageWidth" value="48"/><add as="imageHeight" value="48"/></add><add as="swimlane"><add as="shape" value="swimlane"/><add as="fontSize" value="12"/><add as="fontStyle" value="1"/><add as="startSize" value="23"/></add><add as="group"><add as="verticalAlign" value="top"/><add as="fillColor" value="none"/><add as="strokeColor" value="none"/><add as="gradientColor" value="none"/><add as="pointerEvents" value="0"/></add><add as="ellipse"><add as="shape" value="ellipse"/><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombus"><add as="shape" value="rhombus"/><add as="perimeter" value="rhombusPerimeter"/></add><add as="triangle"><add as="shape" value="triangle"/><add as="perimeter" value="trianglePerimeter"/></add><add as="line"><add as="shape" value="line"/><add as="strokeWidth" value="4"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="8"/></add><add as="image"><add as="shape" value="image"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="verticalLabelPosition" value="bottom"/></add><add as="roundImage" extend="image"><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombusImage" extend="image"><add as="perimeter" value="rhombusPerimeter"/></add><add as="arrow"><add as="shape" value="arrow"/><add as="edgeStyle" value="none"/><add as="fillColor" value="default"/></add><add as="fancy"><add as="shadow" value="1"/><add as="glass" value="1"/></add><add as="gray" extend="fancy"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="blue" extend="fancy"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="green" extend="fancy"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="turquoise" extend="fancy"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="yellow" extend="fancy"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="orange" extend="fancy"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="red" extend="fancy"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="pink" extend="fancy"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="purple" extend="fancy"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add><add as="plain-gray"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="plain-blue"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="plain-green"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="plain-turquoise"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="plain-yellow"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="plain-orange"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="plain-red"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="plain-pink"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="plain-purple"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add></mxStylesheet>').documentElement;
+b.geometry.width,40,mxResources.get("arrow"),!0,null,!0,!1),mxResources.get("arrow"));b.style.borderBottom="1px solid "+(Editor.isDarkMode()?"#505050":"lightgray");b.style.paddingBottom="14px";b.style.marginBottom="14px"})();b(m.actions.get("insertFreehand"),mxResources.get("freehand"),Editor.freehandImage);var f=m.actions.get("toggleShapes");b(f,mxResources.get("shapes")+" ("+f.shortcut+")",F);R=c("table",null,Editor.calendarImage);R.style.boxShadow="none";R.style.opacity="0.7";R.style.padding="6px";
+R.style.margin="0px";R.style.width="37px";e(R,null,"pointer");R=c("insert",null,Editor.plusImage);R.style.boxShadow="none";R.style.opacity="0.7";R.style.padding="6px";R.style.margin="0px";R.style.width="37px";e(R,null,"pointer")}"1"!=urlParams.embedInline&&E.appendChild(Q)});mxEvent.addListener(Q,"click",mxUtils.bind(this,function(){ta?(mxUtils.setPrefixedStyle(E.style,"transform","translate(0, -50%)"),E.style.padding="8px 6px 4px",E.style.top="50%",E.style.bottom="",E.style.height="",Q.style.backgroundImage=
+"url("+mxWindow.prototype.normalizeImage+")",Q.style.width="40px",Q.style.height="12px",Q.setAttribute("title","Minimize"),ta=!1,T()):(E.innerHTML="",E.appendChild(Q),mxUtils.setPrefixedStyle(E.style,"transform","translate(0, 0)"),E.style.top="",E.style.bottom="12px",E.style.padding="0px",E.style.height="24px",Q.style.height="24px",Q.style.backgroundImage="url("+Editor.plusImage+")",Q.setAttribute("title",mxResources.get("insert")),Q.style.width="24px",ta=!0)}));T();m.addListener("darkModeChanged",
+T);m.addListener("sketchModeChanged",T)}else m.editor.addListener("statusChanged",mxUtils.bind(this,function(){m.setStatusText(m.editor.getStatus())}));if(null!=z){var ja=function(b){n.popupMenuHandler.hideMenu();mxEvent.isAltDown(b)||mxEvent.isShiftDown(b)?m.actions.get("customZoom").funct():m.actions.get("smartFit").funct()},ma=m.actions.get("zoomIn"),ra=m.actions.get("zoomOut"),S=m.actions.get("resetView"),y=m.actions.get("fullscreen"),oa=m.actions.get("undo"),da=m.actions.get("redo"),Z=d("",oa.funct,
+null,mxResources.get("undo")+" ("+oa.shortcut+")",oa,Editor.undoImage),la=d("",da.funct,null,mxResources.get("redo")+" ("+da.shortcut+")",da,Editor.redoImage),ya=d("",y.funct,null,mxResources.get("fullscreen"),y,Editor.fullscreenImage);if(null!=D){z=function(){aa.style.display=null!=m.pages&&("0"!=urlParams.pages||1<m.pages.length||Editor.pagesVisible)?"inline-block":"none"};S=function(){aa.innerHTML="";null!=m.currentPage&&mxUtils.write(aa,m.currentPage.getName())};ya.parentNode.removeChild(ya);
+var za=m.actions.get("delete"),ua=d("",za.funct,null,mxResources.get("delete"),za,Editor.trashImage);ua.style.opacity="0.1";I.appendChild(ua);za.addListener("stateChanged",function(){ua.style.opacity=za.enabled?"":"0.1"});var fa=function(){Z.style.display=0<m.editor.undoManager.history.length||n.isEditing()?"inline-block":"none";la.style.display=Z.style.display;Z.style.opacity=oa.enabled?"":"0.1";la.style.opacity=da.enabled?"":"0.1"};I.appendChild(Z);I.appendChild(la);oa.addListener("stateChanged",
+fa);da.addListener("stateChanged",fa);fa();null!=urlParams.layers&&(fa=m.actions.get("layers"),fa=d("",fa.funct,null,mxResources.get("layers"),fa,Editor.layersImage),fa.style.opacity="0.4",D.appendChild(fa));null!=urlParams.tags&&(fa=m.actions.get("tags"),fa=d("",fa.funct,null,mxResources.get("tags"),fa,Editor.tagsImage),fa.style.opacity="0.4",D.appendChild(fa));var aa=this.createPageMenuTab(!1,!0);aa.style.display="none";aa.style.position="";aa.style.marginLeft="";aa.style.top="";aa.style.left="";
+aa.style.height="100%";aa.style.lineHeight="";aa.style.borderStyle="none";aa.style.padding="3px 0";aa.style.margin="0px";aa.style.background="";aa.style.border="";aa.style.boxShadow="none";aa.style.verticalAlign="top";aa.style.width="auto";aa.style.maxWidth="160px";aa.style.position="relative";aa.style.padding="6px";aa.style.textOverflow="ellipsis";aa.style.opacity="0.8";m.editor.addListener("pageSelected",S);m.editor.addListener("pageRenamed",S);m.editor.addListener("fileLoaded",S);S();null!=m.currentPage&&
+(mxUtils.write(R,m.currentPage.getName()),console.log("initial page not emptry"));D.appendChild(aa);m.addListener("fileDescriptorChanged",z);m.addListener("pagesVisibleChanged",z);z();z=d("",ra.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -/Alt+Mousewheel)",ra,Editor.zoomOutImage);D.appendChild(z);var R=document.createElement("div");R.innerHTML="100%";R.setAttribute("title",mxResources.get("fitWindow")+"/"+mxResources.get("resetView")+" (Enter)");R.style.display="inline-block";R.style.cursor=
+"pointer";R.style.textAlign="center";R.style.whiteSpace="nowrap";R.style.paddingRight="10px";R.style.textDecoration="none";R.style.verticalAlign="top";R.style.padding="6px 0";R.style.fontSize="14px";R.style.width="40px";R.style.opacity="0.4";D.appendChild(R);mxEvent.addListener(R,"click",ja);ja=d("",ma.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +/Alt+Mousewheel)",ma,Editor.zoomInImage);D.appendChild(ja);y.visible&&(D.appendChild(ya),mxEvent.addListener(document,"fullscreenchange",function(){ya.style.backgroundImage=
+"url("+(null!=document.fullscreenElement?Editor.fullscreenExitImage:Editor.fullscreenImage)+")"}));"1"==urlParams.embedInline&&(y=m.actions.get("exit"),D.appendChild(d("",y.funct,null,mxResources.get("exit"),y,Editor.closeImage)));m.tabContainer.style.visibility="hidden";p.style.cssText="position:absolute;right:14px;top:10px;height:30px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px 0px 6px 6px;border-bottom:1px solid lightgray;text-align:right;white-space:nowrap;overflow:hidden;user-select:none;";
+I.style.cssText="position:absolute;left:10px;top:10px;height:30px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;border-bottom:1px solid lightgray;text-align:right;white-space:nowrap;overflow:hidden;user-select:none;";D.style.cssText="position:absolute;right:14px;bottom:14px;height:28px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:8px;white-space:nowrap;user-select:none;";x.appendChild(I);x.appendChild(D);E.style.cssText="position:absolute;left:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:8px 6px 4px 6px;white-space:nowrap;transform:translate(0, -50%);top:50%;user-select:none;";
+x.appendChild(E);window.setTimeout(function(){mxUtils.setPrefixedStyle(E.style,"transition","transform .3s ease-out")},0);"1"==urlParams["format-toolbar"]&&this.installFormatToolbar(x)}else{var Fa=d("",ja,!0,mxResources.get("fit")+" ("+Editor.ctrlKey+"+H)",S,Editor.zoomFitImage);p.style.cssText="position:absolute;left:0px;right:0px;top:0px;height:30px;padding:8px;text-align:left;white-space:nowrap;";this.tabContainer.style.right="70px";R=t.addMenu("100%",z.funct);R.setAttribute("title",mxResources.get("zoom")+
+" (Alt+Mousewheel)");R.style.whiteSpace="nowrap";R.style.paddingRight="10px";R.style.textDecoration="none";R.style.textDecoration="none";R.style.overflow="hidden";R.style.visibility="hidden";R.style.textAlign="center";R.style.cursor="pointer";R.style.height=parseInt(m.tabContainerHeight)-1+"px";R.style.lineHeight=parseInt(m.tabContainerHeight)+1+"px";R.style.position="absolute";R.style.display="block";R.style.fontSize="12px";R.style.width="59px";R.style.right="0px";R.style.bottom="0px";R.style.backgroundImage=
+"url("+mxWindow.prototype.minimizeImage+")";R.style.backgroundPosition="right 6px center";R.style.backgroundRepeat="no-repeat";x.appendChild(R)}(function(b){var c=mxUtils.bind(this,function(){b.innerHTML="";mxUtils.write(b,Math.round(100*m.editor.graph.view.scale)+"%")});m.editor.graph.view.addListener(mxEvent.EVENT_SCALE,c);m.editor.addListener("resetGraphView",c);m.editor.addListener("pageSelected",c)})(R);var Ga=m.setGraphEnabled;m.setGraphEnabled=function(){Ga.apply(this,arguments);null!=this.tabContainer&&
+(R.style.visibility=this.tabContainer.style.visibility,this.diagramContainer.style.bottom="hidden"!=this.tabContainer.style.visibility&&null==D?this.tabContainerHeight+"px":"0px")}}x.appendChild(p);x.appendChild(m.diagramContainer);l.appendChild(x);m.updateTabContainer();!EditorUi.windowed&&("1"==urlParams.sketch||1E3<=f)&&"1"!=urlParams.embedInline&&b(this,!0);null==D&&x.appendChild(m.tabContainer);var wa=null;k();mxEvent.addListener(window,"resize",function(){k();null!=m.sidebarWindow&&m.sidebarWindow.window.fit();
+null!=m.formatWindow&&m.formatWindow.window.fit();null!=m.actions.outlineWindow&&m.actions.outlineWindow.window.fit();null!=m.actions.layersWindow&&m.actions.layersWindow.window.fit();null!=m.menus.tagsWindow&&m.menus.tagsWindow.window.fit();null!=m.menus.findWindow&&m.menus.findWindow.window.fit();null!=m.menus.findReplaceWindow&&m.menus.findReplaceWindow.window.fit()});if("1"==urlParams.embedInline){document.body.style.cursor="text";E.style.transform="";mxEvent.addGestureListeners(m.diagramContainer.parentNode,
+function(b){mxEvent.getSource(b)==m.diagramContainer.parentNode&&(m.embedExitPoint=new mxPoint(mxEvent.getClientX(b),mxEvent.getClientY(b)),m.sendEmbeddedSvgExport())});l=document.createElement("div");l.style.position="absolute";l.style.width="10px";l.style.height="10px";l.style.borderRadius="5px";l.style.border="1px solid gray";l.style.background="#ffffff";l.style.cursor="row-resize";m.diagramContainer.parentNode.appendChild(l);m.bottomResizer=l;var Aa=null,xa=null,Ba=null,Ha=null;mxEvent.addGestureListeners(l,
+function(b){Ha=parseInt(m.diagramContainer.style.height);xa=mxEvent.getClientY(b);n.popupMenuHandler.hideMenu();mxEvent.consume(b)});l=l.cloneNode(!1);l.style.cursor="col-resize";m.diagramContainer.parentNode.appendChild(l);m.rightResizer=l;mxEvent.addGestureListeners(l,function(b){Ba=parseInt(m.diagramContainer.style.width);Aa=mxEvent.getClientX(b);n.popupMenuHandler.hideMenu();mxEvent.consume(b)});mxEvent.addGestureListeners(document.body,null,function(b){var c=!1;null!=Aa&&(m.diagramContainer.style.width=
+Math.max(20,Ba+mxEvent.getClientX(b)-Aa)+"px",c=!0);null!=xa&&(m.diagramContainer.style.height=Math.max(20,Ha+mxEvent.getClientY(b)-xa)+"px",c=!0);c&&((window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:Editor.inlineFullscreen,rect:m.diagramContainer.getBoundingClientRect()}),"*"),na(),m.refresh())},function(b){null==Aa&&null==xa||mxEvent.consume(b);xa=Aa=null});this.diagramContainer.style.borderRadius="4px";document.body.style.backgroundColor="transparent";m.bottomResizer.style.visibility=
+"hidden";m.rightResizer.style.visibility="hidden";I.style.visibility="hidden";D.style.visibility="hidden";E.style.display="none"}"1"==urlParams.prefetchFonts&&m.editor.loadFonts()}}};(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var c=EditorUi.initTheme;EditorUi.initTheme=function(){c.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();DrawioComment=function(b,c,e,f,n,l,q){this.file=b;this.id=c;this.content=e;this.modifiedDate=f;this.createdDate=n;this.isResolved=l;this.user=q;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,c,e,f,n){c()};DrawioComment.prototype.editComment=function(b,c,e){c()};DrawioComment.prototype.deleteComment=function(b,c){b()};DrawioUser=function(b,c,e,f,n){this.id=b;this.email=c;this.displayName=e;this.pictureUrl=f;this.locale=n};mxResources.parse('# *DO NOT DIRECTLY EDIT THIS FILE, IT IS AUTOMATICALLY GENERATED AND IT IS BASED ON:*\n# https://docs.google.com/spreadsheet/ccc?key=0AmQEO36liL4FdDJLWVNMaVV2UmRKSnpXU09MYkdGbEE\nabout=About\naboutDrawio=About draw.io\naccessDenied=Access Denied\naction=Action\nactualSize=Actual Size\nadd=Add\naddAccount=Add account\naddedFile=Added {1}\naddImages=Add Images\naddImageUrl=Add Image URL\naddLayer=Add Layer\naddProperty=Add Property\naddress=Address\naddToExistingDrawing=Add to Existing Drawing\naddWaypoint=Add Waypoint\nadjustTo=Adjust to\nadvanced=Advanced\nalign=Align\nalignment=Alignment\nallChangesLost=All changes will be lost!\nallPages=All Pages\nallProjects=All Projects\nallSpaces=All Spaces\nallTags=All Tags\nanchor=Anchor\nandroid=Android\nangle=Angle\narc=Arc\nareYouSure=Are you sure?\nensureDataSaved=Please ensure your data is saved before closing.\nallChangesSaved=All changes saved\nallChangesSavedInDrive=All changes saved in Drive\nallowPopups=Allow pop-ups to avoid this dialog.\nallowRelativeUrl=Allow relative URL\nalreadyConnected=Nodes already connected\napply=Apply\narchiMate21=ArchiMate 2.1\narrange=Arrange\narrow=Arrow\narrows=Arrows\nasNew=As New\natlas=Atlas\nauthor=Author\nauthorizationRequired=Authorization required\nauthorizeThisAppIn=Authorize this app in {1}:\nauthorize=Authorize\nauthorizing=Authorizing\nautomatic=Automatic\nautosave=Autosave\nautosize=Autosize\nattachments=Attachments\naws=AWS\naws3d=AWS 3D\nazure=Azure\nback=Back\nbackground=Background\nbackgroundColor=Background Color\nbackgroundImage=Background Image\nbasic=Basic\nblankDrawing=Blank Drawing\nblankDiagram=Blank Diagram\nblock=Block\nblockquote=Blockquote\nblog=Blog\nbold=Bold\nbootstrap=Bootstrap\nborder=Border\nborderColor=Border Color\nborderWidth=Border Width\nbottom=Bottom\nbottomAlign=Bottom Align\nbottomLeft=Bottom Left\nbottomRight=Bottom Right\nbpmn=BPMN\nbringForward=Bring Forward\nbrowser=Browser\nbulletedList=Bulleted List\nbusiness=Business\nbusy=Operation in progress\ncabinets=Cabinets\ncancel=Cancel\ncenter=Center\ncannotLoad=Load attempts failed. Please try again later.\ncannotLogin=Log in attempts failed. Please try again later.\ncannotOpenFile=Cannot open file\nchange=Change\nchangeOrientation=Change Orientation\nchangeUser=Change user\nchangeStorage=Change storage\nchangesNotSaved=Changes have not been saved\nclassDiagram=Class Diagram\nuserJoined={1} has joined\nuserLeft={1} has left\nchatWindowTitle=Chat\nchooseAnOption=Choose an option\nchromeApp=Chrome App\ncollaborativeEditingNotice=Important Notice for Collaborative Editing\ncompare=Compare\ncompressed=Compressed\ncommitMessage=Commit Message\nconfigLinkWarn=This link configures draw.io. Only click OK if you trust whoever gave you it!\nconfigLinkConfirm=Click OK to configure and restart draw.io.\ncontainer=Container\ncsv=CSV\ndark=Dark\ndiagramXmlDesc=XML File\ndiagramHtmlDesc=HTML File\ndiagramPngDesc=Editable Bitmap Image\ndiagramSvgDesc=Editable Vector Image\ndidYouMeanToExportToPdf=Did you mean to export to PDF?\ndraftFound=A draft for \'{1}\' has been found. Load it into the editor or discard it to continue.\ndraftRevisionMismatch=There is a different version of this diagram on a shared draft of this page. Please edit the diagram from the draft to ensure you are working with the latest version.\nselectDraft=Select a draft to continue editing:\ndragAndDropNotSupported=Drag and drop not supported for images. Would you like to import instead?\ndropboxCharsNotAllowed=The following characters are not allowed: / : ? * " |\ncheck=Check\nchecksum=Checksum\ncircle=Circle\ncisco=Cisco\nclassic=Classic\nclearDefaultStyle=Clear Default Style\nclearWaypoints=Clear Waypoints\nclipart=Clipart\nclose=Close\nclosingFile=Closing file\ncollaborator=Collaborator\ncollaborators=Collaborators\ncollapse=Collapse\ncollapseExpand=Collapse/Expand\ncollapse-expand=Click to collapse/expand\nShift-click to move neighbors \nAlt-click to protect group size\ncollapsible=Collapsible\ncomic=Comic\ncomment=Comment\ncommentsNotes=Comments/Notes\ncompress=Compress\nconfiguration=Configuration\nconnect=Connect\nconnecting=Connecting\nconnectWithDrive=Connect with Google Drive\nconnection=Connection\nconnectionArrows=Connection Arrows\nconnectionPoints=Connection Points\nconstrainProportions=Constrain Proportions\ncontainsValidationErrors=Contains validation errors\ncopiedToClipboard=Copied to clipboard\ncopy=Copy\ncopyConnect=Copy on connect\ncopyCreated=A copy of the file was created.\ncopyData=Copy Data\ncopyOf=Copy of {1}\ncopyOfDrawing=Copy of Drawing\ncopySize=Copy Size\ncopyStyle=Copy Style\ncreate=Create\ncreateNewDiagram=Create New Diagram\ncreateRevision=Create Revision\ncreateShape=Create Shape\ncrop=Crop\ncurved=Curved\ncustom=Custom\ncurrent=Current\ncurrentPage=Current page\ncut=Cut\ndashed=Dashed\ndecideLater=Decide later\ndefault=Default\ndelete=Delete\ndeleteColumn=Delete Column\ndeleteLibrary401=Insufficient permissions to delete this library\ndeleteLibrary404=Selected library could not be found\ndeleteLibrary500=Error deleting library\ndeleteLibraryConfirm=You are about to permanently delete this library. Are you sure you want to do this?\ndeleteRow=Delete Row\ndescription=Description\ndevice=Device\ndiagram=Diagram\ndiagramContent=Diagram Content\ndiagramLocked=Diagram has been locked to prevent further data loss.\ndiagramLockedBySince=The diagram is locked by {1} since {2} ago\ndiagramName=Diagram Name\ndiagramIsPublic=Diagram is public\ndiagramIsNotPublic=Diagram is not public\ndiamond=Diamond\ndiamondThin=Diamond (thin)\ndidYouKnow=Did you know...\ndirection=Direction\ndiscard=Discard\ndiscardChangesAndReconnect=Discard Changes and Reconnect\ngoogleDriveMissingClickHere=Google Drive missing? Click here!\ndiscardChanges=Discard Changes\ndisconnected=Disconnected\ndistribute=Distribute\ndone=Done\ndoNotShowAgain=Do not show again\ndotted=Dotted\ndoubleClickOrientation=Doubleclick to change orientation\ndoubleClickTooltip=Doubleclick to insert text\ndoubleClickChangeProperty=Doubleclick to change property name\ndownload=Download\ndownloadDesktop=Get Desktop\ndownloadAs=Download as\nclickHereToSave=Click here to save.\ndpi=DPI\ndraftDiscarded=Draft discarded\ndraftSaved=Draft saved\ndragElementsHere=Drag elements here\ndragImagesHere=Drag images or URLs here\ndragUrlsHere=Drag URLs here\ndraw.io=draw.io\ndrawing=Drawing{1}\ndrawingEmpty=Drawing is empty\ndrawingTooLarge=Drawing is too large\ndrawioForWork=Draw.io for GSuite\ndropbox=Dropbox\nduplicate=Duplicate\nduplicateIt=Duplicate {1}\ndivider=Divider\ndx=Dx\ndy=Dy\neast=East\nedit=Edit\neditData=Edit Data\neditDiagram=Edit Diagram\neditGeometry=Edit Geometry\neditImage=Edit Image\neditImageUrl=Edit Image URL\neditLink=Edit Link\neditShape=Edit Shape\neditStyle=Edit Style\neditText=Edit Text\neditTooltip=Edit Tooltip\nglass=Glass\ngoogleImages=Google Images\nimageSearch=Image Search\neip=EIP\nembed=Embed\nembedFonts=Embed Fonts\nembedImages=Embed Images\nmainEmbedNotice=Paste this into the page\nelectrical=Electrical\nellipse=Ellipse\nembedNotice=Paste this once at the end of the page\nenterGroup=Enter Group\nenterName=Enter Name\nenterPropertyName=Enter Property Name\nenterValue=Enter Value\nentityRelation=Entity Relation\nentityRelationshipDiagram=Entity Relationship Diagram\nerror=Error\nerrorDeletingFile=Error deleting file\nerrorLoadingFile=Error loading file\nerrorRenamingFile=Error renaming file\nerrorRenamingFileNotFound=Error renaming file. File was not found.\nerrorRenamingFileForbidden=Error renaming file. Insufficient access rights.\nerrorSavingDraft=Error saving draft\nerrorSavingFile=Error saving file\nerrorSavingFileUnknown=Error authorizing with Google\'s servers. Please refresh the page to re-attempt.\nerrorSavingFileForbidden=Error saving file. Insufficient access rights.\nerrorSavingFileNameConflict=Could not save diagram. Current page already contains file named \'{1}\'.\nerrorSavingFileNotFound=Error saving file. File was not found.\nerrorSavingFileReadOnlyMode=Could not save diagram while read-only mode is active.\nerrorSavingFileSessionTimeout=Your session has ended. Please <a target=\'_blank\' href=\'{1}\'>{2}</a> and return to this tab to try to save again.\nerrorSendingFeedback=Error sending feedback.\nerrorUpdatingPreview=Error updating preview.\nexit=Exit\nexitGroup=Exit Group\nexpand=Expand\nexport=Export\nexporting=Exporting\nexportAs=Export as\nexportOptionsDisabled=Export options disabled\nexportOptionsDisabledDetails=The owner has disabled options to download, print or copy for commenters and viewers on this file.\nexternalChanges=External Changes\nextras=Extras\nfacebook=Facebook\nfailedToSaveTryReconnect=Failed to save, trying to reconnect\nfeatureRequest=Feature Request\nfeedback=Feedback\nfeedbackSent=Feedback successfully sent.\nfloorplans=Floorplans\nfile=File\nfileChangedOverwriteDialog=The file has been modified. Do you want to save the file and overwrite those changes?\nfileChangedSyncDialog=The file has been modified.\nfileChangedSync=The file has been modified. Click here to synchronize.\noverwrite=Overwrite\nsynchronize=Synchronize\nfilename=Filename\nfileExists=File already exists\nfileMovedToTrash=File was moved to trash\nfileNearlyFullSeeFaq=File nearly full, please see FAQ\nfileNotFound=File not found\nrepositoryNotFound=Repository not found\nfileNotFoundOrDenied=The file was not found. It does not exist or you do not have access.\nfileNotLoaded=File not loaded\nfileNotSaved=File not saved\nfileOpenLocation=How would you like to open these file(s)?\nfiletypeHtml=.html causes file to save as HTML with redirect to cloud URL\nfiletypePng=.png causes file to save as PNG with embedded data\nfiletypeSvg=.svg causes file to save as SVG with embedded data\nfileWillBeSavedInAppFolder={1} will be saved in the app folder.\nfill=Fill\nfillColor=Fill Color\nfilterCards=Filter Cards\nfind=Find\nfit=Fit\nfitContainer=Resize Container\nfitIntoContainer=Fit into Container\nfitPage=Fit Page\nfitPageWidth=Fit Page Width\nfitTo=Fit to\nfitToSheetsAcross=sheet(s) across\nfitToBy=by\nfitToSheetsDown=sheet(s) down\nfitTwoPages=Two Pages\nfitWindow=Fit Window\nflip=Flip\nflipH=Flip Horizontal\nflipV=Flip Vertical\nflowchart=Flowchart\nfolder=Folder\nfont=Font\nfontColor=Font Color\nfontFamily=Font Family\nfontSize=Font Size\nforbidden=You are not authorized to access this file\nformat=Format\nformatPanel=Format Panel\nformatted=Formatted\nformattedText=Formatted Text\nformatPng=PNG\nformatGif=GIF\nformatJpg=JPEG\nformatPdf=PDF\nformatSql=SQL\nformatSvg=SVG\nformatHtmlEmbedded=HTML\nformatSvgEmbedded=SVG (with XML)\nformatVsdx=VSDX\nformatVssx=VSSX\nformatXmlPlain=XML (Plain)\nformatXml=XML\nforum=Discussion/Help Forums\nfreehand=Freehand\nfromTemplate=From Template\nfromTemplateUrl=From Template URL\nfromText=From Text\nfromUrl=From URL\nfromThisPage=From this page\nfullscreen=Fullscreen\ngap=Gap\ngcp=GCP\ngeneral=General\ngetNotionChromeExtension=Get the Notion Chrome Extension\ngithub=GitHub\ngitlab=GitLab\ngliffy=Gliffy\nglobal=Global\ngoogleDocs=Google Docs\ngoogleDrive=Google Drive\ngoogleGadget=Google Gadget\ngooglePlus=Google+\ngoogleSharingNotAvailable=Sharing is only available via Google Drive. Please click Open below and share from the more actions menu:\ngoogleSlides=Google Slides\ngoogleSites=Google Sites\ngoogleSheets=Google Sheets\ngradient=Gradient\ngradientColor=Color\ngrid=Grid\ngridColor=Grid Color\ngridSize=Grid Size\ngroup=Group\nguides=Guides\nhateApp=I hate draw.io\nheading=Heading\nheight=Height\nhelp=Help\nhelpTranslate=Help us translate this application\nhide=Hide\nhideIt=Hide {1}\nhidden=Hidden\nhome=Home\nhorizontal=Horizontal\nhorizontalFlow=Horizontal Flow\nhorizontalTree=Horizontal Tree\nhowTranslate=How good is the translation in your language?\nhtml=HTML\nhtmlText=HTML Text\nid=ID\niframe=IFrame\nignore=Ignore\nimage=Image\nimageUrl=Image URL\nimages=Images\nimagePreviewError=This image couldn\'t be loaded for preview. Please check the URL.\nimageTooBig=Image too big\nimgur=Imgur\nimport=Import\nimportFrom=Import from\nincludeCopyOfMyDiagram=Include a copy of my diagram\nincreaseIndent=Increase Indent\ndecreaseIndent=Decrease Indent\ninsert=Insert\ninsertColumnBefore=Insert Column Left\ninsertColumnAfter=Insert Column Right\ninsertEllipse=Insert Ellipse\ninsertImage=Insert Image\ninsertHorizontalRule=Insert Horizontal Rule\ninsertLink=Insert Link\ninsertPage=Insert Page\ninsertRectangle=Insert Rectangle\ninsertRhombus=Insert Rhombus\ninsertRowBefore=Insert Row Above\ninsertRowAfter=Insert Row After\ninsertText=Insert Text\ninserting=Inserting\ninstallApp=Install App\ninvalidFilename=Diagram names must not contain the following characters: / | : ; { } < > & + ? = "\ninvalidLicenseSeeThisPage=Your license is invalid, please see this <a target="_blank" href="https://support.draw.io/display/DFCS/Licensing+your+draw.io+plugin">page</a>.\ninvalidInput=Invalid input\ninvalidName=Invalid name\ninvalidOrMissingFile=Invalid or missing file\ninvalidPublicUrl=Invalid public URL\nisometric=Isometric\nios=iOS\nitalic=Italic\nkennedy=Kennedy\nkeyboardShortcuts=Keyboard Shortcuts\nlabels=Labels\nlayers=Layers\nlandscape=Landscape\nlanguage=Language\nleanMapping=Lean Mapping\nlastChange=Last change {1} ago\nlessThanAMinute=less than a minute\nlicensingError=Licensing Error\nlicenseHasExpired=The license for {1} has expired on {2}. Click here.\nlicenseRequired=This feature requires draw.io to be licensed.\nlicenseWillExpire=The license for {1} will expire on {2}. Click here.\nlineJumps=Line jumps\nlinkAccountRequired=If the diagram is not public a Google account is required to view the link.\nlinkText=Link Text\nlist=List\nminute=minute\nminutes=minutes\nhours=hours\ndays=days\nmonths=months\nyears=years\nrestartForChangeRequired=Changes will take effect after a restart of the application.\nlaneColor=Lanecolor\nlastModified=Last modified\nlayout=Layout\nleft=Left\nleftAlign=Left Align\nleftToRight=Left to right\nlibraryTooltip=Drag and drop shapes here or click + to insert. Double click to edit.\nlightbox=Lightbox\nline=Line\nlineend=Line end\nlineheight=Line Height\nlinestart=Line start\nlinewidth=Linewidth\nlink=Link\nlinks=Links\nloading=Loading\nlockUnlock=Lock/Unlock\nloggedOut=Logged Out\nlogIn=log in\nloveIt=I love {1}\nlucidchart=Lucidchart\nmaps=Maps\nmathematicalTypesetting=Mathematical Typesetting\nmakeCopy=Make a Copy\nmanual=Manual\nmerge=Merge\nmermaid=Mermaid\nmicrosoftOffice=Microsoft Office\nmicrosoftExcel=Microsoft Excel\nmicrosoftPowerPoint=Microsoft PowerPoint\nmicrosoftWord=Microsoft Word\nmiddle=Middle\nminimal=Minimal\nmisc=Misc\nmockups=Mockups\nmodificationDate=Modification date\nmodifiedBy=Modified by\nmore=More\nmoreResults=More Results\nmoreShapes=More Shapes\nmove=Move\nmoveToFolder=Move to Folder\nmoving=Moving\nmoveSelectionTo=Move selection to {1}\nname=Name\nnavigation=Navigation\nnetwork=Network\nnetworking=Networking\nnew=New\nnewLibrary=New Library\nnextPage=Next Page\nno=No\nnoPickFolder=No, pick folder\nnoAttachments=No attachments found\nnoColor=No Color\nnoFiles=No Files\nnoFileSelected=No file selected\nnoLibraries=No libraries found\nnoMoreResults=No more results\nnone=None\nnoOtherViewers=No other viewers\nnoPlugins=No plugins\nnoPreview=No preview\nnoResponse=No response from server\nnoResultsFor=No results for \'{1}\'\nnoRevisions=No revisions\nnoSearchResults=No search results found\nnoPageContentOrNotSaved=No anchors found on this page or it hasn\'t been saved yet\nnormal=Normal\nnorth=North\nnotADiagramFile=Not a diagram file\nnotALibraryFile=Not a library file\nnotAvailable=Not available\nnotAUtf8File=Not a UTF-8 file\nnotConnected=Not connected\nnote=Note\nnotion=Notion\nnotSatisfiedWithImport=Not satisfied with the import?\nnotUsingService=Not using {1}?\nnumberedList=Numbered list\noffline=Offline\nok=OK\noneDrive=OneDrive\nonline=Online\nopacity=Opacity\nopen=Open\nopenArrow=Open Arrow\nopenExistingDiagram=Open Existing Diagram\nopenFile=Open File\nopenFrom=Open from\nopenLibrary=Open Library\nopenLibraryFrom=Open Library from\nopenLink=Open Link\nopenInNewWindow=Open in New Window\nopenInThisWindow=Open in This Window\nopenIt=Open {1}\nopenRecent=Open Recent\nopenSupported=Supported formats are files saved from this software (.xml), .vsdx and .gliffy\noptions=Options\norganic=Organic\norgChart=Org Chart\northogonal=Orthogonal\notherViewer=other viewer\notherViewers=other viewers\noutline=Outline\noval=Oval\npage=Page\npageContent=Page Content\npageNotFound=Page not found\npageWithNumber=Page-{1}\npages=Pages\npageView=Page View\npageSetup=Page Setup\npageScale=Page Scale\npan=Pan\npanTooltip=Space+Drag to pan\npaperSize=Paper Size\npattern=Pattern\nparallels=Parallels\npaste=Paste\npasteData=Paste Data\npasteHere=Paste here\npasteSize=Paste Size\npasteStyle=Paste Style\nperimeter=Perimeter\npermissionAnyone=Anyone can edit\npermissionAuthor=Owner and admins can edit\npickFolder=Pick a folder\npickLibraryDialogTitle=Select Library\npublicDiagramUrl=Public URL of the diagram\nplaceholders=Placeholders\nplantUml=PlantUML\nplugins=Plugins\npluginUrl=Plugin URL\npluginWarning=The page has requested to load the following plugin(s):\n \n {1}\n \n Would you like to load these plugin(s) now?\n \n NOTE : Only allow plugins to run if you fully understand the security implications of doing so.\n\nplusTooltip=Click to connect and clone (ctrl+click to clone, shift+click to connect). Drag to connect (ctrl+drag to clone).\nportrait=Portrait\nposition=Position\nposterPrint=Poster Print\npreferences=Preferences\npreview=Preview\npreviousPage=Previous Page\nprint=Print\nprintAllPages=Print All Pages\nprocEng=Proc. Eng.\nproject=Project\npriority=Priority\nproperties=Properties\npublish=Publish\nquickStart=Quick Start Video\nrack=Rack\nradial=Radial\nradialTree=Radial Tree\nreadOnly=Read-only\nreconnecting=Reconnecting\nrecentlyUpdated=Recently Updated\nrecentlyViewed=Recently Viewed\nrectangle=Rectangle\nredirectToNewApp=This file was created or modified in a newer version of this app. You will be redirected now.\nrealtimeTimeout=It looks like you\'ve made a few changes while offline. We\'re sorry, these changes cannot be saved.\nredo=Redo\nrefresh=Refresh\nregularExpression=Regular Expression\nrelative=Relative\nrelativeUrlNotAllowed=Relative URL not allowed\nrememberMe=Remember me\nrememberThisSetting=Remember this setting\nremoveFormat=Clear Formatting\nremoveFromGroup=Remove from Group\nremoveIt=Remove {1}\nremoveWaypoint=Remove Waypoint\nrename=Rename\nrenamed=Renamed\nrenameIt=Rename {1}\nrenaming=Renaming\nreplace=Replace\nreplaceIt={1} already exists. Do you want to replace it?\nreplaceExistingDrawing=Replace existing drawing\nrequired=required\nreset=Reset\nresetView=Reset View\nresize=Resize\nresizeLargeImages=Do you want to resize large images to make the application run faster?\nretina=Retina\nresponsive=Responsive\nrestore=Restore\nrestoring=Restoring\nretryingIn=Retrying in {1} second(s)\nretryingLoad=Load failed. Retrying...\nretryingLogin=Login time out. Retrying...\nreverse=Reverse\nrevision=Revision\nrevisionHistory=Revision History\nrhombus=Rhombus\nright=Right\nrightAlign=Right Align\nrightToLeft=Right to left\nrotate=Rotate\nrotateTooltip=Click and drag to rotate, click to turn shape only by 90 degrees\nrotation=Rotation\nrounded=Rounded\nsave=Save\nsaveAndExit=Save & Exit\nsaveAs=Save as\nsaveAsXmlFile=Save as XML file?\nsaved=Saved\nsaveDiagramFirst=Please save the diagram first\nsaveDiagramsTo=Save diagrams to\nsaveLibrary403=Insufficient permissions to edit this library\nsaveLibrary500=There was an error while saving the library\nsaveLibraryReadOnly=Could not save library while read-only mode is active\nsaving=Saving\nscratchpad=Scratchpad\nscrollbars=Scrollbars\nsearch=Search\nsearchShapes=Search Shapes\nselectAll=Select All\nselectionOnly=Selection Only\nselectCard=Select Card\nselectEdges=Select Edges\nselectFile=Select File\nselectFolder=Select Folder\nselectFont=Select Font\nselectNone=Select None\nselectTemplate=Select Template\nselectVertices=Select Vertices\nsendBackward=Send Backward\nsendMessage=Send\nsendYourFeedback=Send your feedback\nserviceUnavailableOrBlocked=Service unavailable or blocked\nsessionExpired=Your session has expired. Please refresh the browser window.\nsessionTimeoutOnSave=Your session has timed out and you have been disconnected from the Google Drive. Press OK to login and save.\nsetAsDefaultStyle=Set as Default Style\nshadow=Shadow\nshape=Shape\nshapes=Shapes\nshare=Share\nshareLink=Link for shared editing\nsharingAvailable=Sharing available for Google Drive and OneDrive files.\nsharp=Sharp\nshow=Show\nshowStartScreen=Show Start Screen\nsidebarTooltip=Click to expand. Drag and drop shapes into the diagram. Shift+click to change selection. Alt+click to insert and connect.\nsigns=Signs\nsignOut=Sign out\nsimple=Simple\nsimpleArrow=Simple Arrow\nsimpleViewer=Simple Viewer\nsize=Size\nsketch=Sketch\nsnapToGrid=Snap to Grid\nsolid=Solid\nsourceSpacing=Source Spacing\nsouth=South\nsoftware=Software\nspace=Space\nspacing=Spacing\nspecialLink=Special Link\nstandard=Standard\nstartDrawing=Start drawing\nstopDrawing=Stop drawing\nstarting=Starting\nstraight=Straight\nstrikethrough=Strikethrough\nstrokeColor=Line Color\nstyle=Style\nsubscript=Subscript\nsummary=Summary\nsuperscript=Superscript\nsupport=Support\nswimlaneDiagram=Swimlane Diagram\nsysml=SysML\ntags=Tags\ntable=Table\ntables=Tables\ntakeOver=Take Over\ntargetSpacing=Target Spacing\ntemplate=Template\ntemplates=Templates\ntext=Text\ntextAlignment=Text Alignment\ntextOpacity=Text Opacity\ntheme=Theme\ntimeout=Timeout\ntitle=Title\nto=to\ntoBack=To Back\ntoFront=To Front\ntooLargeUseDownload=Too large, use download instead.\ntoolbar=Toolbar\ntooltips=Tooltips\ntop=Top\ntopAlign=Top Align\ntopLeft=Top Left\ntopRight=Top Right\ntransparent=Transparent\ntransparentBackground=Transparent Background\ntrello=Trello\ntryAgain=Try again\ntryOpeningViaThisPage=Try opening via this page\nturn=Rotate shape only by 90°\ntype=Type\ntwitter=Twitter\numl=UML\nunderline=Underline\nundo=Undo\nungroup=Ungroup\nunmerge=Unmerge\nunsavedChanges=Unsaved changes\nunsavedChangesClickHereToSave=Unsaved changes. Click here to save.\nuntitled=Untitled\nuntitledDiagram=Untitled Diagram\nuntitledLayer=Untitled Layer\nuntitledLibrary=Untitled Library\nunknownError=Unknown error\nupdateFile=Update {1}\nupdatingDocument=Updating Document. Please wait...\nupdatingPreview=Updating Preview. Please wait...\nupdatingSelection=Updating Selection. Please wait...\nupload=Upload\nurl=URL\nuseOffline=Use Offline\nuseRootFolder=Use root folder?\nuserManual=User Manual\nvertical=Vertical\nverticalFlow=Vertical Flow\nverticalTree=Vertical Tree\nview=View\nviewerSettings=Viewer Settings\nviewUrl=Link to view: {1}\nvoiceAssistant=Voice Assistant (beta)\nwarning=Warning\nwaypoints=Waypoints\nwest=West\nwidth=Width\nwiki=Wiki\nwordWrap=Word Wrap\nwritingDirection=Writing Direction\nyes=Yes\nyourEmailAddress=Your email address\nzoom=Zoom\nzoomIn=Zoom In\nzoomOut=Zoom Out\nbasic=Basic\nbusinessprocess=Business Processes\ncharts=Charts\nengineering=Engineering\nflowcharts=Flowcharts\ngmdl=Material Design\nmindmaps=Mindmaps\nmockups=Mockups\nnetworkdiagrams=Network Diagrams\nnothingIsSelected=Nothing is selected\nother=Other\nsoftwaredesign=Software Design\nvenndiagrams=Venn Diagrams\nwebEmailOrOther=Web, email or any other internet address\nwebLink=Web Link\nwireframes=Wireframes\nproperty=Property\nvalue=Value\nshowMore=Show More\nshowLess=Show Less\nmyDiagrams=My Diagrams\nallDiagrams=All Diagrams\nrecentlyUsed=Recently used\nlistView=List view\ngridView=Grid view\nresultsFor=Results for \'{1}\'\noneDriveCharsNotAllowed=The following characters are not allowed: ~ " # % * : < > ? / { | }\noneDriveInvalidDeviceName=The specified device name is invalid\nofficeNotLoggedOD=You are not logged in to OneDrive. Please open draw.io task pane and login first.\nofficeSelectSingleDiag=Please select a single draw.io diagram only without other contents.\nofficeSelectDiag=Please select a draw.io diagram.\nofficeCannotFindDiagram=Cannot find a draw.io diagram in the selection\nnoDiagrams=No diagrams found\nauthFailed=Authentication failed\nofficeFailedAuthMsg=Unable to successfully authenticate user or authorize application.\nconvertingDiagramFailed=Converting diagram failed\nofficeCopyImgErrMsg=Due to some limitations in the host application, the image could not be inserted. Please manually copy the image then paste it to the document.\ninsertingImageFailed=Inserting image failed\nofficeCopyImgInst=Instructions: Right-click the image below. Select "Copy image" from the context menu. Then, in the document, right-click and select "Paste" from the context menu.\nfolderEmpty=Folder is empty\nrecent=Recent\nsharedWithMe=Shared With Me\nsharepointSites=Sharepoint Sites\nerrorFetchingFolder=Error fetching folder items\nerrorAuthOD=Error authenticating to OneDrive\nofficeMainHeader=Adds draw.io diagrams to your document.\nofficeStepsHeader=This add-in performs the following steps:\nofficeStep1=Connects to Microsoft OneDrive, Google Drive or your device.\nofficeStep2=Select a draw.io diagram.\nofficeStep3=Insert the diagram into the document.\nofficeAuthPopupInfo=Please complete the authentication in the pop-up window.\nofficeSelDiag=Select draw.io Diagram:\nfiles=Files\nshared=Shared\nsharepoint=Sharepoint\nofficeManualUpdateInst=Instructions: Copy draw.io diagram from the document. Then, in the box below, right-click and select "Paste" from the context menu.\nofficeClickToEdit=Click icon to start editing:\npasteDiagram=Paste draw.io diagram here\nconnectOD=Connect to OneDrive\nselectChildren=Select Children\nselectSiblings=Select Siblings\nselectParent=Select Parent\nselectDescendants=Select Descendants\nlastSaved=Last saved {1} ago\nresolve=Resolve\nreopen=Re-open\nshowResolved=Show Resolved\nreply=Reply\nobjectNotFound=Object not found\nreOpened=Re-opened\nmarkedAsResolved=Marked as resolved\nnoCommentsFound=No comments found\ncomments=Comments\ntimeAgo={1} ago\nconfluenceCloud=Confluence Cloud\nlibraries=Libraries\nconfAnchor=Confluence Page Anchor\nconfTimeout=The connection has timed out\nconfSrvTakeTooLong=The server at {1} is taking too long to respond.\nconfCannotInsertNew=Cannot insert draw.io diagram to a new Confluence page\nconfSaveTry=Please save the page and try again.\nconfCannotGetID=Unable to determine page ID\nconfContactAdmin=Please contact your Confluence administrator.\nreadErr=Read Error\neditingErr=Editing Error\nconfExtEditNotPossible=This diagram cannot be edited externally. Please try editing it while editing the page\nconfEditedExt=Diagram/Page edited externally\ndiagNotFound=Diagram Not Found\nconfEditedExtRefresh=Diagram/Page is edited externally. Please refresh the page.\nconfCannotEditDraftDelOrExt=Cannot edit diagrams in a draft page, diagram is deleted from the page, or diagram is edited externally. Please check the page.\nretBack=Return back\nconfDiagNotPublished=The diagram does not belong to a published page\ncreatedByDraw=Created by draw.io\nfilenameShort=Filename too short\ninvalidChars=Invalid characters\nalreadyExst={1} already exists\ndraftReadErr=Draft Read Error\ndiagCantLoad=Diagram cannot be loaded\ndraftWriteErr=Draft Write Error\ndraftCantCreate=Draft could not be created\nconfDuplName=Duplicate diagram name detected. Please pick another name.\nconfSessionExpired=Looks like your session expired. Log in again to keep working.\nlogin=Login\ndrawPrev=draw.io preview\ndrawDiag=draw.io diagram\ninvalidCallFnNotFound=Invalid Call: {1} not found\ninvalidCallErrOccured=Invalid Call: An error occurred, {1}\nanonymous=Anonymous\nconfGotoPage=Go to containing page\nshowComments=Show Comments\nconfError=Error: {1}\ngliffyImport=Gliffy Import\ngliffyImportInst1=Click the "Start Import" button to import all Gliffy diagrams to draw.io.\ngliffyImportInst2=Please note that the import procedure will take some time and the browser window must remain open until the import is completed.\nstartImport=Start Import\ndrawConfig=draw.io Configuration\ncustomLib=Custom Libraries\ncustomTemp=Custom Templates\npageIdsExp=Page IDs Export\ndrawReindex=draw.io re-indexing (beta)\nworking=Working\ndrawConfigNotFoundInst=draw.io Configuration Space (DRAWIOCONFIG) does not exist. This space is needed to store draw.io configuration files and custom libraries/templates.\ncreateConfSp=Create Config Space\nunexpErrRefresh=Unexpected error, please refresh the page and try again.\nconfigJSONInst=Write draw.io JSON configuration in the editor below then click save. If you need help, please refer to\nthisPage=this page\ncurCustLib=Current Custom Libraries\nlibName=Library Name\naction=Action\ndrawConfID=draw.io Config ID\naddLibInst=Click the "Add Library" button to upload a new library.\naddLib=Add Library\ncustomTempInst1=Custom templates are draw.io diagrams saved in children pages of\ncustomTempInst2=For more details, please refer to\ntempsPage=Templates page\npageIdsExpInst1=Select export target, then click the "Start Export" button to export all pages IDs.\npageIdsExpInst2=Please note that the export procedure will take some time and the browser window must remain open until the export is completed.\nstartExp=Start Export\nrefreshDrawIndex=Refresh draw.io Diagrams Index\nreindexInst1=Click the "Start Indexing" button to refresh draw.io diagrams index.\nreindexInst2=Please note that the indexing procedure will take some time and the browser window must remain open until the indexing is completed.\nstartIndexing=Start Indexing\nconfAPageFoundFetch=Page "{1}" found. Fetching\nconfAAllDiagDone=All {1} diagrams processed. Process finished.\nconfAStartedProcessing=Started processing page "{1}"\nconfAAllDiagInPageDone=All {1} diagrams in page "{2}" processed successfully.\nconfAPartialDiagDone={1} out of {2} {3} diagrams in page "{4}" processed successfully.\nconfAUpdatePageFailed=Updating page "{1}" failed.\nconfANoDiagFoundInPage=No {1} diagrams found in page "{2}".\nconfAFetchPageFailed=Fetching the page failed.\nconfANoDiagFound=No {1} diagrams found. Process finished.\nconfASearchFailed=Searching for {1} diagrams failed. Please try again later.\nconfAGliffyDiagFound={2} diagram "{1}" found. Importing\nconfAGliffyDiagImported={2} diagram "{1}" imported successfully.\nconfASavingImpGliffyFailed=Saving imported {2} diagram "{1}" failed.\nconfAImportedFromByDraw=Imported from "{1}" by draw.io\nconfAImportGliffyFailed=Importing {2} diagram "{1}" failed.\nconfAFetchGliffyFailed=Fetching {2} diagram "{1}" failed.\nconfACheckBrokenDiagLnk=Checking for broken diagrams links.\nconfADelDiagLinkOf=Deleting diagram link of "{1}"\nconfADupLnk=(duplicate link)\nconfADelDiagLnkFailed=Deleting diagram link of "{1}" failed.\nconfAUnexpErrProcessPage=Unexpected error during processing the page with id: {1}\nconfADiagFoundIndex=Diagram "{1}" found. Indexing\nconfADiagIndexSucc=Diagram "{1}" indexed successfully.\nconfAIndexDiagFailed=Indexing diagram "{1}" failed.\nconfASkipDiagOtherPage=Skipped "{1}" as it belongs to another page!\nconfADiagUptoDate=Diagram "{1}" is up to date.\nconfACheckPagesWDraw=Checking pages having draw.io diagrams.\nconfAErrOccured=An error occurred!\nsavedSucc=Saved successfully\nconfASaveFailedErr=Saving Failed (Unexpected Error)\ncharacter=Character\nconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachment\nconfALibPageDesc=This page contains draw.io custom libraries as attachments\nconfATempPageDesc=This page contains draw.io custom templates as attachments\nworking=Working\nconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templates\nconfANoCustLib=No Custom Libraries\ndelFailed=Delete failed!\nshowID=Show ID\nconfAIncorrectLibFileType=Incorrect file type. Libraries should be XML files.\nuploading=Uploading\nconfALibExist=This library already exists\nconfAUploadSucc=Uploaded successfully\nconfAUploadFailErr=Upload Failed (Unexpected Error)\nhiResPreview=High Res Preview\nofficeNotLoggedGD=You are not logged in to Google Drive. Please open draw.io task pane and login first.\nofficePopupInfo=Please complete the process in the pop-up window.\npickODFile=Pick OneDrive File\npickGDriveFile=Pick Google Drive File\npickDeviceFile=Pick Device File\nvsdNoConfig="vsdurl" is not configured\nruler=Ruler\nunits=Units\npoints=Points\ninches=Inches\nmillimeters=Millimeters\nconfEditDraftDelOrExt=This diagram is in a draft page, is deleted from the page, or is edited externally. It will be saved as a new attachment version and may not be reflected in the page.\nconfDiagEditedExt=Diagram is edited in another session. It will be saved as a new attachment version but the page will show other session\'s modifications.\nmacroNotFound=Macro Not Found\nconfAInvalidPageIdsFormat=Incorrect Page IDs file format\nconfACollectingCurPages=Collecting current pages\nconfABuildingPagesMap=Building pages mapping\nconfAProcessDrawDiag=Started processing imported draw.io diagrams\nconfAProcessDrawDiagDone=Finished processing imported draw.io diagrams\nconfAProcessImpPages=Started processing imported pages\nconfAErrPrcsDiagInPage=Error processing draw.io diagrams in page "{1}"\nconfAPrcsDiagInPage=Processing draw.io diagrams in page "{1}"\nconfAImpDiagram=Importing diagram "{1}"\nconfAImpDiagramFailed=Importing diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\nconfAImpDiagramError=Error importing diagram "{1}". Cannot fetch or save the diagram. Cannot fix this diagram links.\nconfAUpdateDgrmCCFailed=Updating link to diagram "{1}" failed.\nconfImpDiagramSuccess=Updating diagram "{1}" done successfully.\nconfANoLnksInDrgm=No links to update in: {1}\nconfAUpdateLnkToPg=Updated link to page: "{1}" in diagram: "{2}"\nconfAUpdateLBLnkToPg=Updated lightbox link to page: "{1}" in diagram: "{2}"\nconfAUpdateLnkBase=Updated base URL from: "{1}" to: "{2}" in diagram: "{3}"\nconfAPageIdsImpDone=Page IDs Import finished\nconfAPrcsMacrosInPage=Processing draw.io macros in page "{1}"\nconfAErrFetchPage=Error fetching page "{1}"\nconfAFixingMacro=Fixing macro of diagram "{1}"\nconfAErrReadingExpFile=Error reading export file\nconfAPrcsDiagInPageDone=Processing draw.io diagrams in page "{1}" finished\nconfAFixingMacroSkipped=Fixing macro of diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\npageIdsExpTrg=Export target\nconfALucidDiagImgImported={2} diagram "{1}" image extracted successfully\nconfASavingLucidDiagImgFailed=Extracting {2} diagram "{1}" image failed\nconfGetInfoFailed=Fetching file info from {1} failed.\nconfCheckCacheFailed=Cannot get cached file info.\nconfReadFileErr=Cannot read "{1}" file from {2}.\nconfSaveCacheFailed=Unexpected error. Cannot save cached file\norgChartType=Org Chart Type\nlinear=Linear\nhanger2=Hanger 2\nhanger4=Hanger 4\nfishbone1=Fishbone 1\nfishbone2=Fishbone 2\n1ColumnLeft=Single Column Left\n1ColumnRight=Single Column Right\nsmart=Smart\nparentChildSpacing=Parent Child Spacing\nsiblingSpacing=Sibling Spacing\nconfNoPermErr=Sorry, you don\'t have enough permissions to view this embedded diagram from page {1}\ncopyAsImage=Copy as Image\nlucidImport=Lucidchart Import\nlucidImportInst1=Click the "Start Import" button to import all Lucidchart diagrams.\ninstallFirst=Please install {1} first\ndrawioChromeExt=draw.io Chrome Extension\nloginFirstThen=Please login to {1} first, then {2}\nerrFetchDocList=Error: Couldn\'t fetch documents list\nbuiltinPlugins=Built-in Plugins\nextPlugins=External Plugins\nbackupFound=Backup file found\nchromeOnly=This feature only works in Google Chrome\nmsgDeleted=This message has been deleted\nconfAErrFetchDrawList=Error fetching diagrams list. Some diagrams are skipped.\nconfAErrCheckDrawDiag=Cannot check diagram {1}\nconfAErrFetchPageList=Error fetching pages list\nconfADiagImportIncom={1} diagram "{2}" is imported partially and may have missing shapes\ninvalidSel=Invalid selection\ndiagNameEmptyErr=Diagram name cannot be empty\nopenDiagram=Open Diagram\nnewDiagram=New diagram\neditable=Editable\nconfAReimportStarted=Re-import {1} diagrams started...\nspaceFilter=Filter by spaces\ncurViewState=Current Viewer State\npageLayers=Page and Layers\ncustomize=Customize\nfirstPage=First Page (All Layers)\ncurEditorState=Current Editor State\nnoAnchorsFound=No anchors found\nattachment=Attachment\ncurDiagram=Current Diagram\nrecentDiags=Recent Diagrams\ncsvImport=CSV Import\nchooseFile=Choose a file...\nchoose=Choose\ngdriveFname=Google Drive filename\nwidthOfViewer=Width of the viewer (px)\nheightOfViewer=Height of the viewer (px)\nautoSetViewerSize=Automatically set the size of the viewer\nthumbnail=Thumbnail\nprevInDraw=Preview in draw.io\nonedriveFname=OneDrive filename\ndiagFname=Diagram filename\ndiagUrl=Diagram URL\nshowDiag=Show Diagram\ndiagPreview=Diagram Preview\ncsvFileUrl=CSV File URL\ngenerate=Generate\nselectDiag2Insert=Please select a diagram to insert it.\nerrShowingDiag=Unexpected error. Cannot show diagram\nnoRecentDiags=No recent diagrams found\nfetchingRecentFailed=Failed to fetch recent diagrams\nuseSrch2FindDiags=Use the search box to find draw.io diagrams\ncantReadChckPerms=Cannot read the specified diagram. Please check you have read permission on that file.\ncantFetchChckPerms=Cannot fetch diagram info. Please check you have read permission on that file.\nsearchFailed=Searching failed. Please try again later.\nplsTypeStr=Please type a search string.\nunsupportedFileChckUrl=Unsupported file. Please check the specified URL\ndiagNotFoundChckUrl=Diagram not found or cannot be accessed. Please check the specified URL\ncsvNotFoundChckUrl=CSV file not found or cannot be accessed. Please check the specified URL\ncantReadUpload=Cannot read the uploaded diagram\nselect=Select\nerrCantGetIdType=Unexpected Error: Cannot get content id or type.\nerrGAuthWinBlocked=Error: Google Authentication window blocked\nauthDrawAccess=Authorize draw.io to access {1}\nconnTimeout=The connection has timed out\nerrAuthSrvc=Error authenticating to {1}\nplsSelectFile=Please select a file\nmustBgtZ={1} must be greater than zero\ncantLoadPrev=Cannot load file preview.\nerrAccessFile=Error: Access Denied. You do not have permission to access "{1}".\nnoPrevAvail=No preview is available.\npersonalAccNotSup=Personal accounts are not supported.\nerrSavingTryLater=Error occurred during saving, please try again later.\nplsEnterFld=Please enter {1}\ninvalidDiagUrl=Invalid Diagram URL\nunsupportedVsdx=Unsupported vsdx file\nunsupportedImg=Unsupported image file\nunsupportedFormat=Unsupported file format\nplsSelectSingleFile=Please select a single file only\nattCorrupt=Attachment file "{1}" is corrupted\nloadAttFailed=Failed to load attachment "{1}"\nembedDrawDiag=Embed draw.io Diagram\naddDiagram=Add Diagram\nembedDiagram=Embed Diagram\neditOwningPg=Edit owning page\ndeepIndexing=Deep Indexing (Index diagrams that aren\'t used in any page also)\nconfADeepIndexStarted=Deep Indexing Started\nconfADeepIndexDone=Deep Indexing Done\nofficeNoDiagramsSelected=No diagrams found in the selection\nofficeNoDiagramsInDoc=No diagrams found in the document\nofficeNotSupported=This feature is not supported in this host application\nsomeImagesFailed={1} out of {2} failed due to the following errors\nimportingNoUsedDiagrams=Importing {1} Diagrams not used in pages\nimportingDrafts=Importing {1} Diagrams in drafts\nprocessingDrafts=Processing drafts\nupdatingDrafts=Updating drafts\nupdateDrafts=Update drafts\nnotifications=Notifications\ndrawioImp=draw.io Import\nconfALibsImp=Importing draw.io Libraries\nconfALibsImpFailed=Importing {1} library failed\ncontributors=Contributors\ndrawDiagrams=draw.io Diagrams\nerrFileNotFoundOrNoPer=Error: Access Denied. File not found or you do not have permission to access "{1}" on {2}.\nconfACheckPagesWEmbed=Checking pages having embedded draw.io diagrams.\nconfADelBrokenEmbedDiagLnk=Removing broken embedded diagram links\nreplaceWith=Replace with\nreplaceAll=Replace All\nconfASkipDiagModified=Skipped "{1}" as it was modified after initial import\nreplFind=Replace/Find\nmatchesRepl={1} matches replaced\ndraftErrDataLoss=An error occurred while reading the draft file. The diagram cannot be edited now to prevent any possible data loss. Please try again later or contact support.\nibm=IBM\nlinkToDiagramHint=Add a link to this diagram. The diagram can only be edited from the page that owns it.\nlinkToDiagram=Link to Diagram\nchangedBy=Changed By\nlastModifiedOn=Last modified on\nsearchResults=Search Results\nshowAllTemps=Show all templates\nnotionToken=Notion Token\nselectDB=Select Database\nnoDBs=No Databases\ndiagramEdited={1} diagram "{2}" edited\nconfDraftPermissionErr=Draft cannot be written. Do you have attachment write/read permission on this page?\nconfDraftTooBigErr=Draft size is too large. Pease check "Attachment Maximum Size" of "Attachment Settings" in Confluence Configuration?\nowner=Owner\nrepository=Repository\nbranch=Branch\nmeters=Meters\nteamsNoEditingMsg=Editor functionality is only available in Desktop environment (in MS Teams App or a web browser)\ncontactOwner=Contact Owner\nviewerOnlyMsg=You cannot edit the diagrams in the mobile platform, please use the desktop client or a web browser.\nwebsite=Website\ncheck4Updates=Check for updates\nattWriteFailedRetry={1}: Attachment write failed, trying again in {2} seconds...\nconfPartialPageList=We couldn\'t fetch all pages due to an error in Confluence. Continuing using {1} pages only.\nspellCheck=Spell checker\nnoChange=No Change\nlblToSvg=Convert labels to SVG\ntxtSettings=Text Settings\nLinksLost=Links will be lost\narcSize=Arc Size\n');Graph.prototype.defaultThemes["default-style2"]=mxUtils.parseXml('<mxStylesheet><add as="defaultVertex"><add as="shape" value="label"/><add as="perimeter" value="rectanglePerimeter"/><add as="fontSize" value="12"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="fillColor" value="default"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="defaultEdge"><add as="shape" value="connector"/><add as="labelBackgroundColor" value="default"/><add as="endArrow" value="classic"/><add as="fontSize" value="11"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="rounded" value="1"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="text"><add as="fillColor" value="none"/><add as="gradientColor" value="none"/><add as="strokeColor" value="none"/><add as="align" value="left"/><add as="verticalAlign" value="top"/></add><add as="edgeLabel" extend="text"><add as="labelBackgroundColor" value="default"/><add as="fontSize" value="11"/></add><add as="label"><add as="fontStyle" value="1"/><add as="align" value="left"/><add as="verticalAlign" value="middle"/><add as="spacing" value="2"/><add as="spacingLeft" value="52"/><add as="imageWidth" value="42"/><add as="imageHeight" value="42"/><add as="rounded" value="1"/></add><add as="icon" extend="label"><add as="align" value="center"/><add as="imageAlign" value="center"/><add as="verticalLabelPosition" value="bottom"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="4"/><add as="labelBackgroundColor" value="default"/><add as="spacing" value="0"/><add as="spacingLeft" value="0"/><add as="spacingTop" value="6"/><add as="fontStyle" value="0"/><add as="imageWidth" value="48"/><add as="imageHeight" value="48"/></add><add as="swimlane"><add as="shape" value="swimlane"/><add as="fontSize" value="12"/><add as="fontStyle" value="1"/><add as="startSize" value="23"/></add><add as="group"><add as="verticalAlign" value="top"/><add as="fillColor" value="none"/><add as="strokeColor" value="none"/><add as="gradientColor" value="none"/><add as="pointerEvents" value="0"/></add><add as="ellipse"><add as="shape" value="ellipse"/><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombus"><add as="shape" value="rhombus"/><add as="perimeter" value="rhombusPerimeter"/></add><add as="triangle"><add as="shape" value="triangle"/><add as="perimeter" value="trianglePerimeter"/></add><add as="line"><add as="shape" value="line"/><add as="strokeWidth" value="4"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="8"/></add><add as="image"><add as="shape" value="image"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="verticalLabelPosition" value="bottom"/></add><add as="roundImage" extend="image"><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombusImage" extend="image"><add as="perimeter" value="rhombusPerimeter"/></add><add as="arrow"><add as="shape" value="arrow"/><add as="edgeStyle" value="none"/><add as="fillColor" value="default"/></add><add as="fancy"><add as="shadow" value="1"/><add as="glass" value="1"/></add><add as="gray" extend="fancy"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="blue" extend="fancy"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="green" extend="fancy"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="turquoise" extend="fancy"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="yellow" extend="fancy"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="orange" extend="fancy"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="red" extend="fancy"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="pink" extend="fancy"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="purple" extend="fancy"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add><add as="plain-gray"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="plain-blue"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="plain-green"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="plain-turquoise"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="plain-yellow"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="plain-orange"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="plain-red"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="plain-pink"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="plain-purple"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add></mxStylesheet>').documentElement;
Graph.prototype.defaultThemes.darkTheme=Graph.prototype.defaultThemes["default-style2"];GraphViewer=function(b,c,e){this.init(b,c,e)};mxUtils.extend(GraphViewer,mxEventSource);GraphViewer.prototype.editBlankUrl="https://app.diagrams.net/";GraphViewer.prototype.imageBaseUrl="https://viewer.diagrams.net/";GraphViewer.prototype.toolbarHeight="BackCompat"==document.compatMode?24:26;GraphViewer.prototype.lightboxChrome=!0;GraphViewer.prototype.lightboxZIndex=999;GraphViewer.prototype.toolbarZIndex=999;GraphViewer.prototype.autoFit=!1;GraphViewer.prototype.autoCrop=!1;
GraphViewer.prototype.autoOrigin=!0;GraphViewer.prototype.center=!1;GraphViewer.prototype.forceCenter=!1;GraphViewer.prototype.allowZoomIn=!1;GraphViewer.prototype.allowZoomOut=!0;GraphViewer.prototype.showTitleAsTooltip=!1;GraphViewer.prototype.checkVisibleState=!0;GraphViewer.prototype.minHeight=28;GraphViewer.prototype.minWidth=100;GraphViewer.prototype.responsive=!1;
GraphViewer.prototype.init=function(b,c,e){this.graphConfig=null!=e?e:{};this.autoFit=null!=this.graphConfig["auto-fit"]?this.graphConfig["auto-fit"]:this.autoFit;this.autoCrop=null!=this.graphConfig["auto-crop"]?this.graphConfig["auto-crop"]:this.autoCrop;this.autoOrigin=null!=this.graphConfig["auto-origin"]?this.graphConfig["auto-origin"]:this.autoOrigin;this.allowZoomOut=null!=this.graphConfig["allow-zoom-out"]?this.graphConfig["allow-zoom-out"]:this.allowZoomOut;this.allowZoomIn=null!=this.graphConfig["allow-zoom-in"]?
@@ -4091,7 +4091,7 @@ this.graph.dialect==mxConstants.DIALECT_SVG){var e=this.graph.view.getDrawPane()
(this.editor.defaultGraphOverflow="visible");this.xmlNode=this.editor.extractGraphModel(this.xmlNode,!0);this.xmlNode!=c&&(this.xml=mxUtils.getXml(this.xmlNode),this.xmlDocument=this.xmlNode.ownerDocument);var d=this;this.graph.getImageFromBundles=function(b){return d.getImageUrl(b)};mxClient.IS_SVG&&this.graph.addSvgShadow(this.graph.view.canvas.ownerSVGElement,null,!0);if("mxfile"==this.xmlNode.nodeName){var f=this.xmlNode.getElementsByTagName("diagram");if(0<f.length){if(null!=this.pageId)for(var g=
0;g<f.length;g++)if(this.pageId==f[g].getAttribute("id")){this.currentPage=g;break}var l=this.graph.getGlobalVariable,d=this;this.graph.getGlobalVariable=function(b){var c=f[d.currentPage];return"page"==b?c.getAttribute("name")||"Page-"+(d.currentPage+1):"pagenumber"==b?d.currentPage+1:"pagecount"==b?f.length:l.apply(this,arguments)}}}this.diagrams=[];var m=null;this.selectPage=function(b){this.handlingResize||(this.currentPage=mxUtils.mod(b,this.diagrams.length),this.updateGraphXml(Editor.parseDiagramNode(this.diagrams[this.currentPage])))};
this.selectPageById=function(b){b=this.getIndexById(b);var c=0<=b;c&&this.selectPage(b);return c};var g=mxUtils.bind(this,function(){if(null==this.xmlNode||"mxfile"!=this.xmlNode.nodeName)this.diagrams=[];this.xmlNode!=m&&(this.diagrams=this.xmlNode.getElementsByTagName("diagram"),m=this.xmlNode)}),n=this.graph.setBackgroundImage;this.graph.setBackgroundImage=function(b){if(null!=b&&Graph.isPageLink(b.src)){var c=b.src,e=c.indexOf(",");0<e&&(e=d.getIndexById(c.substring(e+1)),0<=e&&(b=d.getImageForGraphModel(Editor.parseDiagramNode(d.diagrams[e])),
-b.originalSrc=c))}n.apply(this,arguments)};var u=this.graph.getGraphBounds;this.graph.getGraphBounds=function(b){var c=u.apply(this,arguments);b=this.backgroundImage;if(null!=b){var d=this.view.translate,e=this.view.scale,c=mxRectangle.fromRectangle(c);c.add(new mxRectangle((d.x+b.x)*e,(d.y+b.y)*e,b.width*e,b.height*e))}return c};this.addListener("xmlNodeChanged",g);g();urlParams.page=d.currentPage;g=null;this.graph.getModel().beginUpdate();try{urlParams.nav=0!=this.graphConfig.nav?"1":"0",this.editor.setGraphXml(this.xmlNode),
+b.originalSrc=c))}n.apply(this,arguments)};var v=this.graph.getGraphBounds;this.graph.getGraphBounds=function(b){var c=v.apply(this,arguments);b=this.backgroundImage;if(null!=b){var d=this.view.translate,e=this.view.scale,c=mxRectangle.fromRectangle(c);c.add(new mxRectangle((d.x+b.x)*e,(d.y+b.y)*e,b.width*e,b.height*e))}return c};this.addListener("xmlNodeChanged",g);g();urlParams.page=d.currentPage;g=null;this.graph.getModel().beginUpdate();try{urlParams.nav=0!=this.graphConfig.nav?"1":"0",this.editor.setGraphXml(this.xmlNode),
this.graph.view.scale=this.graphConfig.zoom||1,g=this.setLayersVisible(),this.responsive||(this.graph.border=null!=this.graphConfig.border?this.graphConfig.border:8)}finally{this.graph.getModel().endUpdate()}this.responsive||(this.graph.panningHandler.isForcePanningEvent=function(b){return!mxEvent.isPopupTrigger(b.getEvent())&&"auto"==this.graph.container.style.overflow},this.graph.panningHandler.useLeftButtonForPanning=!0,this.graph.panningHandler.ignoreCell=!0,this.graph.panningHandler.usePopupTrigger=
!1,this.graph.panningHandler.pinchEnabled=!1);this.graph.setPanning(!1);null!=this.graphConfig.toolbar?this.addToolbar():null!=this.graphConfig.title&&this.showTitleAsTooltip&&b.setAttribute("title",this.graphConfig.title);this.responsive||this.addSizeHandler();!this.showLayers(this.graph)||this.forceCenter||this.layersEnabled&&!this.autoCrop||this.crop();this.addClickHandler(this.graph);this.graph.setTooltips(0!=this.graphConfig.tooltips);this.graph.initialViewState={translate:this.graph.view.translate.clone(),
scale:this.graph.view.scale};null!=g&&this.setLayersVisible(g);this.graph.customLinkClicked=function(b){if(Graph.isPageLink(b)){var c=b.indexOf(",");d.selectPageById(b.substring(c+1))||alert(mxResources.get("pageNotFound")||"Page not found")}else this.handleCustomLink(b);return!0};var t=this.graph.foldTreeCell;this.graph.foldTreeCell=mxUtils.bind(this,function(){this.treeCellFolded=!0;return t.apply(this.graph,arguments)});this.fireEvent(new mxEventObject("render"))});e=window.MutationObserver||window.WebKitMutationObserver||
@@ -4119,20 +4119,20 @@ function(){g.style.backgroundColor="#eee"}),mxUtils.setOpacity(b,60),g.style.cur
e.style.whiteSpace="nowrap";e.style.textAlign="left";e.style.zIndex=this.toolbarZIndex;e.style.backgroundColor="#eee";e.style.height=this.toolbarHeight+"px";this.toolbar=e;if("inline"==this.graphConfig["toolbar-position"]){mxUtils.setPrefixedStyle(e.style,"transition","opacity 100ms ease-in-out");mxUtils.setOpacity(e,30);var f=null,n=null,l=mxUtils.bind(this,function(b){null!=f&&(window.clearTimeout(f),fadeThead=null);null!=n&&(window.clearTimeout(n),fadeThead2=null);f=window.setTimeout(mxUtils.bind(this,
function(){mxUtils.setOpacity(e,0);f=null;n=window.setTimeout(mxUtils.bind(this,function(){e.style.display="none";n=null}),100)}),b||200)}),q=mxUtils.bind(this,function(b){null!=f&&(window.clearTimeout(f),fadeThead=null);null!=n&&(window.clearTimeout(n),fadeThead2=null);e.style.display="";mxUtils.setOpacity(e,b||30)});mxEvent.addListener(this.graph.container,mxClient.IS_POINTER?"pointermove":"mousemove",mxUtils.bind(this,function(b){mxEvent.isTouchEvent(b)||(q(30),l())}));mxEvent.addListener(e,mxClient.IS_POINTER?
"pointermove":"mousemove",function(b){mxEvent.consume(b)});mxEvent.addListener(e,"mouseenter",mxUtils.bind(this,function(b){q(100)}));mxEvent.addListener(e,"mousemove",mxUtils.bind(this,function(b){q(100);mxEvent.consume(b)}));mxEvent.addListener(e,"mouseleave",mxUtils.bind(this,function(b){mxEvent.isTouchEvent(b)||q(30)}));var d=this.graph,k=d.getTolerance();d.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(b,c){this.startX=c.getGraphX();this.startY=c.getGraphY();
-this.scrollLeft=d.container.scrollLeft;this.scrollTop=d.container.scrollTop},mouseMove:function(b,c){},mouseUp:function(b,c){mxEvent.isTouchEvent(c.getEvent())&&Math.abs(this.scrollLeft-d.container.scrollLeft)<k&&Math.abs(this.scrollTop-d.container.scrollTop)<k&&Math.abs(this.startX-c.getGraphX())<k&&Math.abs(this.startY-c.getGraphY())<k&&(0<parseFloat(e.style.opacity||0)?l():q(30))}})}for(var g=this.toolbarItems,p=0,m=null,v=null,u=null,t=null,z=0;z<g.length;z++){var y=g[z];if("pages"==y){t=c.ownerDocument.createElement("div");
-t.style.cssText="display:inline-block;position:relative;top:5px;padding:0 4px 0 4px;vertical-align:top;font-family:Helvetica,Arial;font-size:12px;;cursor:default;";mxUtils.setOpacity(t,70);var F=b(mxUtils.bind(this,function(){this.selectPage(this.currentPage-1)}),Editor.previousImage,mxResources.get("previousPage")||"Previous Page");F.style.borderRightStyle="none";F.style.paddingLeft="0px";F.style.paddingRight="0px";e.appendChild(t);var D=b(mxUtils.bind(this,function(){this.selectPage(this.currentPage+
-1)}),Editor.nextImage,mxResources.get("nextPage")||"Next Page");D.style.paddingLeft="0px";D.style.paddingRight="0px";y=mxUtils.bind(this,function(){t.innerHTML="";mxUtils.write(t,this.currentPage+1+" / "+this.diagrams.length);t.style.display=1<this.diagrams.length?"inline-block":"none";F.style.display=t.style.display;D.style.display=t.style.display});this.addListener("graphChanged",y);y()}else if("zoom"==y)this.zoomEnabled&&(b(mxUtils.bind(this,function(){this.graph.zoomOut()}),Editor.zoomOutImage,
-mxResources.get("zoomOut")||"Zoom Out"),b(mxUtils.bind(this,function(){this.graph.zoomIn()}),Editor.zoomInImage,mxResources.get("zoomIn")||"Zoom In"),b(mxUtils.bind(this,function(){this.graph.view.scaleAndTranslate(this.graph.initialViewState.scale,this.graph.initialViewState.translate.x,this.graph.initialViewState.translate.y)}),Editor.zoomFitImage,mxResources.get("fit")||"Fit"));else if("layers"==y){if(this.layersEnabled){var E=this.graph.getModel(),H=b(mxUtils.bind(this,function(b){if(null!=m)m.parentNode.removeChild(m),
+this.scrollLeft=d.container.scrollLeft;this.scrollTop=d.container.scrollTop},mouseMove:function(b,c){},mouseUp:function(b,c){mxEvent.isTouchEvent(c.getEvent())&&Math.abs(this.scrollLeft-d.container.scrollLeft)<k&&Math.abs(this.scrollTop-d.container.scrollTop)<k&&Math.abs(this.startX-c.getGraphX())<k&&Math.abs(this.startY-c.getGraphY())<k&&(0<parseFloat(e.style.opacity||0)?l():q(30))}})}for(var g=this.toolbarItems,p=0,m=null,u=null,v=null,t=null,z=0;z<g.length;z++){var y=g[z];if("pages"==y){t=c.ownerDocument.createElement("div");
+t.style.cssText="display:inline-block;position:relative;top:5px;padding:0 4px 0 4px;vertical-align:top;font-family:Helvetica,Arial;font-size:12px;;cursor:default;";mxUtils.setOpacity(t,70);var I=b(mxUtils.bind(this,function(){this.selectPage(this.currentPage-1)}),Editor.previousImage,mxResources.get("previousPage")||"Previous Page");I.style.borderRightStyle="none";I.style.paddingLeft="0px";I.style.paddingRight="0px";e.appendChild(t);var D=b(mxUtils.bind(this,function(){this.selectPage(this.currentPage+
+1)}),Editor.nextImage,mxResources.get("nextPage")||"Next Page");D.style.paddingLeft="0px";D.style.paddingRight="0px";y=mxUtils.bind(this,function(){t.innerHTML="";mxUtils.write(t,this.currentPage+1+" / "+this.diagrams.length);t.style.display=1<this.diagrams.length?"inline-block":"none";I.style.display=t.style.display;D.style.display=t.style.display});this.addListener("graphChanged",y);y()}else if("zoom"==y)this.zoomEnabled&&(b(mxUtils.bind(this,function(){this.graph.zoomOut()}),Editor.zoomOutImage,
+mxResources.get("zoomOut")||"Zoom Out"),b(mxUtils.bind(this,function(){this.graph.zoomIn()}),Editor.zoomInImage,mxResources.get("zoomIn")||"Zoom In"),b(mxUtils.bind(this,function(){this.graph.view.scaleAndTranslate(this.graph.initialViewState.scale,this.graph.initialViewState.translate.x,this.graph.initialViewState.translate.y)}),Editor.zoomFitImage,mxResources.get("fit")||"Fit"));else if("layers"==y){if(this.layersEnabled){var F=this.graph.getModel(),E=b(mxUtils.bind(this,function(b){if(null!=m)m.parentNode.removeChild(m),
m=null;else{m=this.graph.createLayersDialog(mxUtils.bind(this,function(){if(this.autoCrop)this.crop();else if(this.autoOrigin){var b=this.graph.getGraphBounds(),c=this.graph.view;0>b.x||0>b.y?(this.crop(),this.graph.originalViewState=this.graph.initialViewState,this.graph.initialViewState={translate:c.translate.clone(),scale:c.scale}):null!=this.graph.originalViewState&&0<b.x/c.scale+this.graph.originalViewState.translate.x-c.translate.x&&0<b.y/c.scale+this.graph.originalViewState.translate.y-c.translate.y&&
-(c.setTranslate(this.graph.originalViewState.translate.x,this.graph.originalViewState.translate.y),this.graph.originalViewState=null,this.graph.initialViewState={translate:c.translate.clone(),scale:c.scale})}}));mxEvent.addListener(m,"mouseleave",function(){m.parentNode.removeChild(m);m=null});b=H.getBoundingClientRect();m.style.width="140px";m.style.padding="2px 0px 2px 0px";m.style.border="1px solid #d0d0d0";m.style.backgroundColor="#eee";m.style.fontFamily=Editor.defaultHtmlFont;m.style.fontSize=
-"11px";m.style.overflowY="auto";m.style.maxHeight=this.graph.container.clientHeight-this.toolbarHeight-10+"px";m.style.zIndex=this.toolbarZIndex+1;mxUtils.setOpacity(m,80);var c=mxUtils.getDocumentScrollOrigin(document);m.style.left=c.x+b.left-1+"px";m.style.top=c.y+b.bottom-2+"px";document.body.appendChild(m)}}),Editor.layersImage,mxResources.get("layers")||"Layers");E.addListener(mxEvent.CHANGE,function(){H.style.display=1<E.getChildCount(E.root)?"inline-block":"none"});H.style.display=1<E.getChildCount(E.root)?
-"inline-block":"none"}}else if("tags"==y){if(this.tagsEnabled){var N=b(mxUtils.bind(this,function(b){null==v&&(v=this.graph.createTagsDialog(mxUtils.bind(this,function(){return!0})),v.div.getElementsByTagName("div")[0].style.position="",v.div.style.maxHeight="160px",v.div.style.maxWidth="120px",v.div.style.padding="2px",v.div.style.overflow="auto",v.div.style.height="auto",v.div.style.position="fixed",v.div.style.fontFamily=Editor.defaultHtmlFont,v.div.style.fontSize="11px",v.div.style.backgroundColor=
-"#eee",v.div.style.color="#000",v.div.style.border="1px solid #d0d0d0",v.div.style.zIndex=this.toolbarZIndex+1,mxUtils.setOpacity(v.div,80));if(null!=u)u.parentNode.removeChild(u),u=null;else{u=v.div;mxEvent.addListener(u,"mouseleave",function(){u.parentNode.removeChild(u);u=null});b=N.getBoundingClientRect();var c=mxUtils.getDocumentScrollOrigin(document);u.style.left=c.x+b.left-1+"px";u.style.top=c.y+b.bottom-2+"px";document.body.appendChild(u);v.refresh()}}),Editor.tagsImage,mxResources.get("tags")||
-"Tags");E.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){N.style.display=0<this.graph.getAllTags().length?"inline-block":"none"}));N.style.display=0<this.graph.getAllTags().length?"inline-block":"none"}}else"lightbox"==y?this.lightboxEnabled&&b(mxUtils.bind(this,function(){this.showLightbox()}),Editor.fullscreenImage,mxResources.get("fullscreen")||"Fullscreen"):null!=this.graphConfig["toolbar-buttons"]&&(y=this.graphConfig["toolbar-buttons"][y],null!=y&&(y.elem=b(null==y.enabled||y.enabled?
+(c.setTranslate(this.graph.originalViewState.translate.x,this.graph.originalViewState.translate.y),this.graph.originalViewState=null,this.graph.initialViewState={translate:c.translate.clone(),scale:c.scale})}}));mxEvent.addListener(m,"mouseleave",function(){m.parentNode.removeChild(m);m=null});b=E.getBoundingClientRect();m.style.width="140px";m.style.padding="2px 0px 2px 0px";m.style.border="1px solid #d0d0d0";m.style.backgroundColor="#eee";m.style.fontFamily=Editor.defaultHtmlFont;m.style.fontSize=
+"11px";m.style.overflowY="auto";m.style.maxHeight=this.graph.container.clientHeight-this.toolbarHeight-10+"px";m.style.zIndex=this.toolbarZIndex+1;mxUtils.setOpacity(m,80);var c=mxUtils.getDocumentScrollOrigin(document);m.style.left=c.x+b.left-1+"px";m.style.top=c.y+b.bottom-2+"px";document.body.appendChild(m)}}),Editor.layersImage,mxResources.get("layers")||"Layers");F.addListener(mxEvent.CHANGE,function(){E.style.display=1<F.getChildCount(F.root)?"inline-block":"none"});E.style.display=1<F.getChildCount(F.root)?
+"inline-block":"none"}}else if("tags"==y){if(this.tagsEnabled){var O=b(mxUtils.bind(this,function(b){null==u&&(u=this.graph.createTagsDialog(mxUtils.bind(this,function(){return!0})),u.div.getElementsByTagName("div")[0].style.position="",u.div.style.maxHeight="160px",u.div.style.maxWidth="120px",u.div.style.padding="2px",u.div.style.overflow="auto",u.div.style.height="auto",u.div.style.position="fixed",u.div.style.fontFamily=Editor.defaultHtmlFont,u.div.style.fontSize="11px",u.div.style.backgroundColor=
+"#eee",u.div.style.color="#000",u.div.style.border="1px solid #d0d0d0",u.div.style.zIndex=this.toolbarZIndex+1,mxUtils.setOpacity(u.div,80));if(null!=v)v.parentNode.removeChild(v),v=null;else{v=u.div;mxEvent.addListener(v,"mouseleave",function(){v.parentNode.removeChild(v);v=null});b=O.getBoundingClientRect();var c=mxUtils.getDocumentScrollOrigin(document);v.style.left=c.x+b.left-1+"px";v.style.top=c.y+b.bottom-2+"px";document.body.appendChild(v);u.refresh()}}),Editor.tagsImage,mxResources.get("tags")||
+"Tags");F.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){O.style.display=0<this.graph.getAllTags().length?"inline-block":"none"}));O.style.display=0<this.graph.getAllTags().length?"inline-block":"none"}}else"lightbox"==y?this.lightboxEnabled&&b(mxUtils.bind(this,function(){this.showLightbox()}),Editor.fullscreenImage,mxResources.get("fullscreen")||"Fullscreen"):null!=this.graphConfig["toolbar-buttons"]&&(y=this.graphConfig["toolbar-buttons"][y],null!=y&&(y.elem=b(null==y.enabled||y.enabled?
y.handler:function(){},y.image,y.title,y.enabled)))}null!=this.graph.minimumContainerSize&&(this.graph.minimumContainerSize.width=34*p);null!=this.graphConfig.title&&(g=c.ownerDocument.createElement("div"),g.style.cssText="display:inline-block;position:relative;padding:3px 6px 0 6px;vertical-align:top;font-family:Helvetica,Arial;font-size:12px;top:4px;cursor:default;",g.setAttribute("title",this.graphConfig.title),mxUtils.write(g,this.graphConfig.title),mxUtils.setOpacity(g,70),e.appendChild(g),this.filename=
-g);this.minToolbarWidth=34*p;var A=c.style.border,G=mxUtils.bind(this,function(){e.style.width="inline"==this.graphConfig["toolbar-position"]?"auto":Math.max(this.minToolbarWidth,c.offsetWidth)+"px";e.style.border="1px solid #d0d0d0";if(1!=this.graphConfig["toolbar-nohide"]){var b=c.getBoundingClientRect(),d=mxUtils.getScrollOrigin(document.body),d="relative"===document.body.style.position?document.body.getBoundingClientRect():{left:-d.x,top:-d.y},b={left:b.left-d.left,top:b.top-d.top,bottom:b.bottom-
-d.top,right:b.right-d.left};e.style.left=b.left+"px";"bottom"==this.graphConfig["toolbar-position"]?e.style.top=b.bottom-1+"px":"inline"!=this.graphConfig["toolbar-position"]?(e.style.marginTop=-this.toolbarHeight+"px",e.style.top=b.top+1+"px"):e.style.top=b.top+"px";"1px solid transparent"==A&&(c.style.border="1px solid #d0d0d0");document.body.appendChild(e);var f=mxUtils.bind(this,function(){null!=e.parentNode&&e.parentNode.removeChild(e);null!=m&&(m.parentNode.removeChild(m),m=null);c.style.border=
-A});mxEvent.addListener(document,"mousemove",function(b){for(b=mxEvent.getSource(b);null!=b;){if(b==c||b==e||b==m)return;b=b.parentNode}f()});mxEvent.addListener(document.body,"mouseleave",function(b){f()})}else e.style.top=-this.toolbarHeight+"px",c.appendChild(e)});1!=this.graphConfig["toolbar-nohide"]?mxEvent.addListener(c,"mouseenter",G):G();this.responsive&&"undefined"!==typeof ResizeObserver&&(new ResizeObserver(function(){null!=e.parentNode&&G()})).observe(c)};
+g);this.minToolbarWidth=34*p;var B=c.style.border,G=mxUtils.bind(this,function(){e.style.width="inline"==this.graphConfig["toolbar-position"]?"auto":Math.max(this.minToolbarWidth,c.offsetWidth)+"px";e.style.border="1px solid #d0d0d0";if(1!=this.graphConfig["toolbar-nohide"]){var b=c.getBoundingClientRect(),d=mxUtils.getScrollOrigin(document.body),d="relative"===document.body.style.position?document.body.getBoundingClientRect():{left:-d.x,top:-d.y},b={left:b.left-d.left,top:b.top-d.top,bottom:b.bottom-
+d.top,right:b.right-d.left};e.style.left=b.left+"px";"bottom"==this.graphConfig["toolbar-position"]?e.style.top=b.bottom-1+"px":"inline"!=this.graphConfig["toolbar-position"]?(e.style.marginTop=-this.toolbarHeight+"px",e.style.top=b.top+1+"px"):e.style.top=b.top+"px";"1px solid transparent"==B&&(c.style.border="1px solid #d0d0d0");document.body.appendChild(e);var f=mxUtils.bind(this,function(){null!=e.parentNode&&e.parentNode.removeChild(e);null!=m&&(m.parentNode.removeChild(m),m=null);c.style.border=
+B});mxEvent.addListener(document,"mousemove",function(b){for(b=mxEvent.getSource(b);null!=b;){if(b==c||b==e||b==m)return;b=b.parentNode}f()});mxEvent.addListener(document.body,"mouseleave",function(b){f()})}else e.style.top=-this.toolbarHeight+"px",c.appendChild(e)});1!=this.graphConfig["toolbar-nohide"]?mxEvent.addListener(c,"mouseenter",G):G();this.responsive&&"undefined"!==typeof ResizeObserver&&(new ResizeObserver(function(){null!=e.parentNode&&G()})).observe(c)};
GraphViewer.prototype.disableButton=function(b){var c=this.graphConfig["toolbar-buttons"][b];null!=c&&(mxUtils.setOpacity(c.elem,30),mxEvent.removeListener(c.elem,"click",c.handler),mxEvent.addListener(c.elem,"mouseenter",function(){c.elem.style.backgroundColor="#eee"}))};
GraphViewer.prototype.addClickHandler=function(b,c){b.linkPolicy=this.graphConfig.target||b.linkPolicy;b.addClickHandler(this.graphConfig.highlight,mxUtils.bind(this,function(e,f){if(null==f)for(var n=mxEvent.getSource(e);n!=b.container&&null!=n&&null==f;)"a"==n.nodeName.toLowerCase()&&(f=n.getAttribute("href")),n=n.parentNode;null!=c?null==f||b.isCustomLink(f)?mxEvent.consume(e):b.isExternalProtocol(f)||b.isBlankLink(f)||window.setTimeout(function(){c.destroy()},0):null!=f&&null==c&&b.isCustomLink(f)&&
(mxEvent.isTouchEvent(e)||!mxEvent.isPopupTrigger(e))&&b.customLinkClicked(f)&&(mxUtils.clearSelection(),mxEvent.consume(e))}),mxUtils.bind(this,function(b){null!=c||!this.lightboxClickEnabled||mxEvent.isTouchEvent(b)&&0!=this.toolbarItems.length||this.showLightbox()}))};
@@ -4154,7 +4154,7 @@ GraphViewer.initCss=function(){try{var b=document.createElement("style");b.type=
GraphViewer.cachedUrls={};GraphViewer.getUrl=function(b,c,e){if(null!=GraphViewer.cachedUrls[b])c(GraphViewer.cachedUrls[b]);else{var f=null!=navigator.userAgent&&0<navigator.userAgent.indexOf("MSIE 9")?new XDomainRequest:new XMLHttpRequest;f.open("GET",b);f.onload=function(){c(null!=f.getText?f.getText():f.responseText)};f.onerror=e;f.send()}};GraphViewer.resizeSensorEnabled=!0;GraphViewer.useResizeSensor=!0;
(function(){var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(b){return window.setTimeout(b,20)},c=function(e,f){function n(){this.q=[];this.add=function(b){this.q.push(b)};var b,c;this.call=function(){b=0;for(c=this.q.length;b<c;b++)this.q[b].call()}}function l(b,c){return b.currentStyle?b.currentStyle[c]:window.getComputedStyle?window.getComputedStyle(b,null).getPropertyValue(c):b.style[c]}function q(c,d){if(!c.resizedAttached)c.resizedAttached=
new n,c.resizedAttached.add(d);else if(c.resizedAttached){c.resizedAttached.add(d);return}c.resizeSensor=document.createElement("div");c.resizeSensor.className="resize-sensor";c.resizeSensor.style.cssText="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;";c.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;"><div style="position: absolute; left: 0; top: 0; transition: 0s;"></div></div><div class="resize-sensor-shrink" style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;"><div style="position: absolute; left: 0; top: 0; transition: 0s; width: 200%; height: 200%"></div></div>';
-c.appendChild(c.resizeSensor);"static"==l(c,"position")&&(c.style.position="relative");var e=c.resizeSensor.childNodes[0],f=e.childNodes[0],g=c.resizeSensor.childNodes[1],k=function(){f.style.width="100000px";f.style.height="100000px";e.scrollLeft=1E5;e.scrollTop=1E5;g.scrollLeft=1E5;g.scrollTop=1E5};k();var m=!1,p=function(){c.resizedAttached&&(m&&(c.resizedAttached.call(),m=!1),b(p))};b(p);var q,v,N,A,G=function(){if((N=c.offsetWidth)!=q||(A=c.offsetHeight)!=v)m=!0,q=N,v=A;k()},I=function(b,c,d){b.attachEvent?
-b.attachEvent("on"+c,d):b.addEventListener(c,d)};I(e,"scroll",G);I(g,"scroll",G)}var d=function(){GraphViewer.resizeSensorEnabled&&f()},k=Object.prototype.toString.call(e),g="[object Array]"===k||"[object NodeList]"===k||"[object HTMLCollection]"===k||"undefined"!==typeof jQuery&&e instanceof jQuery||"undefined"!==typeof Elements&&e instanceof Elements;if(g)for(var k=0,p=e.length;k<p;k++)q(e[k],d);else q(e,d);this.detach=function(){if(g)for(var b=0,d=e.length;b<d;b++)c.detach(e[b]);else c.detach(e)}};
+c.appendChild(c.resizeSensor);"static"==l(c,"position")&&(c.style.position="relative");var e=c.resizeSensor.childNodes[0],f=e.childNodes[0],g=c.resizeSensor.childNodes[1],k=function(){f.style.width="100000px";f.style.height="100000px";e.scrollLeft=1E5;e.scrollTop=1E5;g.scrollLeft=1E5;g.scrollTop=1E5};k();var m=!1,p=function(){c.resizedAttached&&(m&&(c.resizedAttached.call(),m=!1),b(p))};b(p);var q,u,O,B,G=function(){if((O=c.offsetWidth)!=q||(B=c.offsetHeight)!=u)m=!0,q=O,u=B;k()},H=function(b,c,d){b.attachEvent?
+b.attachEvent("on"+c,d):b.addEventListener(c,d)};H(e,"scroll",G);H(g,"scroll",G)}var d=function(){GraphViewer.resizeSensorEnabled&&f()},k=Object.prototype.toString.call(e),g="[object Array]"===k||"[object NodeList]"===k||"[object HTMLCollection]"===k||"undefined"!==typeof jQuery&&e instanceof jQuery||"undefined"!==typeof Elements&&e instanceof Elements;if(g)for(var k=0,p=e.length;k<p;k++)q(e[k],d);else q(e,d);this.detach=function(){if(g)for(var b=0,d=e.length;b<d;b++)c.detach(e[b]);else c.detach(e)}};
c.detach=function(b){b.resizeSensor&&(b.removeChild(b.resizeSensor),delete b.resizeSensor,delete b.resizedAttached)};window.ResizeSensor=c})();
(function(){Editor.initMath();GraphViewer.initCss();if(null!=window.onDrawioViewerLoad)window.onDrawioViewerLoad();else GraphViewer.processElements()})();
diff --git a/src/main/webapp/mxgraph/mxClient.js b/src/main/webapp/mxgraph/mxClient.js
index a59a0bbc..721207af 100644
--- a/src/main/webapp/mxgraph/mxClient.js
+++ b/src/main/webapp/mxgraph/mxClient.js
@@ -1,4 +1,4 @@
-var mxClient={VERSION:"16.4.0",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),
+var mxClient={VERSION:"16.4.3",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),
IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:/Apple Computer, Inc/.test(navigator.vendor),
IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2<navigator.maxTouchPoints,IS_WEBVIEW:/((iPhone|iPod|iPad).*AppleWebKit(?!.*Version)|; wv)/i.test(navigator.userAgent),IS_GC:/Google Inc/.test(navigator.vendor),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:"undefined"!==typeof InstallTrigger,IS_MT:0<=navigator.userAgent.indexOf("Firefox/")&&0>navigator.userAgent.indexOf("Firefox/1.")&&
0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:"MICROSOFT INTERNET EXPLORER"!=navigator.appName.toUpperCase(),NO_FO:!document.createElementNS||"[object SVGForeignObjectElement]"!==
@@ -1614,19 +1614,20 @@ n.x,n.y);this.sizers[5].setCursor(f[mxUtils.mod(6+g,f.length)]);n.x=d;n.y=c;n=mx
this.state.width&&2<=this.state.height?this.moveSizerTo(this.sizers[0],d+this.state.absoluteOffset.x,e+this.state.absoluteOffset.y):this.moveSizerTo(this.sizers[0],this.state.x,this.state.y)}}null!=this.rotationShape&&(g=mxUtils.toRadians(null!=this.currentAlpha?this.currentAlpha:this.state.style[mxConstants.STYLE_ROTATION]||"0"),k=Math.cos(g),l=Math.sin(g),m=new mxPoint(this.state.getCenterX(),this.state.getCenterY()),n=mxUtils.getRotatedPoint(this.getRotationHandlePosition(),k,l,m),null!=this.rotationShape.node&&
(this.moveSizerTo(this.rotationShape,n.x,n.y),this.rotationShape.node.style.visibility=this.state.view.graph.isEditing()||!this.handlesVisible?"hidden":""));null!=this.selectionBorder&&(this.selectionBorder.rotation=Number(this.state.style[mxConstants.STYLE_ROTATION]||"0"));if(null!=this.edgeHandlers)for(c=0;c<this.edgeHandlers.length;c++)this.edgeHandlers[c].redraw()};mxVertexHandler.prototype.isCustomHandleVisible=function(a){return!this.graph.isEditing()&&1==this.state.view.graph.getSelectionCount()};
mxVertexHandler.prototype.getRotationHandlePosition=function(){return new mxPoint(this.bounds.x+this.bounds.width/2,this.bounds.y+this.rotationHandleVSpacing)};mxVertexHandler.prototype.isParentHighlightVisible=function(){return!this.graph.isCellSelected(this.graph.model.getParent(this.state.cell))};
-mxVertexHandler.prototype.updateParentHighlight=function(){if(!this.isDestroyed()){var a=this.isParentHighlightVisible(),b=this.graph.model.getParent(this.state.cell),c=this.graph.view.getState(b);null!=this.parentHighlight?this.graph.model.isVertex(b)&&a?(a=this.parentHighlight.bounds,null==c||a.x==c.x&&a.y==c.y&&a.width==c.width&&a.height==c.height||(this.parentHighlight.bounds=mxRectangle.fromRectangle(c),this.parentHighlight.redraw())):(null!=c&&c.parentHighlight==this.parentHighlight&&(c.parentHighlight=
-null),this.parentHighlight.destroy(),this.parentHighlight=null):this.parentHighlightEnabled&&a&&this.graph.model.isVertex(b)&&null!=c&&null==c.parentHighlight&&(this.parentHighlight=this.createParentHighlightShape(c),this.parentHighlight.dialect=mxConstants.DIALECT_SVG,this.parentHighlight.pointerEvents=!1,this.parentHighlight.rotation=Number(c.style[mxConstants.STYLE_ROTATION]||"0"),this.parentHighlight.init(this.graph.getView().getOverlayPane()),this.parentHighlight.redraw(),c.parentHighlight=this.parentHighlight)}};
+mxVertexHandler.prototype.destroyParentHighlight=function(){null!=this.parentHighlight.state&&(delete this.parentHighlight.state.parentHighlight,delete this.parentHighlight.state);this.parentHighlight.destroy();this.parentHighlight=null};
+mxVertexHandler.prototype.updateParentHighlight=function(){if(!this.isDestroyed()){var a=this.isParentHighlightVisible(),b=this.graph.model.getParent(this.state.cell),c=this.graph.view.getState(b);null!=this.parentHighlight?this.graph.model.isVertex(b)&&a?(a=this.parentHighlight.bounds,null==c||a.x==c.x&&a.y==c.y&&a.width==c.width&&a.height==c.height||(this.parentHighlight.bounds=mxRectangle.fromRectangle(c),this.parentHighlight.redraw())):this.destroyParentHighlight():this.parentHighlightEnabled&&
+a&&this.graph.model.isVertex(b)&&null!=c&&null==c.parentHighlight&&(this.parentHighlight=this.createParentHighlightShape(c),this.parentHighlight.dialect=mxConstants.DIALECT_SVG,this.parentHighlight.pointerEvents=!1,this.parentHighlight.rotation=Number(c.style[mxConstants.STYLE_ROTATION]||"0"),this.parentHighlight.init(this.graph.getView().getOverlayPane()),this.parentHighlight.redraw(),c.parentHighlight=this.parentHighlight,this.parentHighlight.state=c)}};
mxVertexHandler.prototype.drawPreview=function(){null!=this.preview&&(this.preview.bounds=this.bounds,this.preview.node.parentNode==this.graph.container&&(this.preview.bounds.width=Math.max(0,this.preview.bounds.width-1),this.preview.bounds.height=Math.max(0,this.preview.bounds.height-1)),this.preview.rotation=Number(this.state.style[mxConstants.STYLE_ROTATION]||"0"),this.preview.redraw());this.selectionBorder.bounds=this.getSelectionBorderBounds();this.selectionBorder.redraw();this.updateParentHighlight()};
mxVertexHandler.prototype.getSelectionBorderBounds=function(){return this.bounds};mxVertexHandler.prototype.isDestroyed=function(){return null==this.selectionBorder};
-mxVertexHandler.prototype.destroy=function(){null!=this.escapeHandler&&(this.state.view.graph.removeListener(this.escapeHandler),this.escapeHandler=null);null!=this.preview&&(this.preview.destroy(),this.preview=null);if(null!=this.parentHighlight){var a=this.graph.model.getParent(this.state.cell),a=this.graph.view.getState(a);null!=a&&a.parentHighlight==this.parentHighlight&&(a.parentHighlight=null);this.parentHighlight.destroy();this.parentHighlight=null}null!=this.ghostPreview&&(this.ghostPreview.destroy(),
-this.ghostPreview=null);null!=this.selectionBorder&&(this.selectionBorder.destroy(),this.selectionBorder=null);this.labelShape=null;this.removeHint();if(null!=this.sizers){for(a=0;a<this.sizers.length;a++)this.sizers[a].destroy();this.sizers=null}if(null!=this.customHandles){for(a=0;a<this.customHandles.length;a++)this.customHandles[a].destroy();this.customHandles=null}};
+mxVertexHandler.prototype.destroy=function(){null!=this.escapeHandler&&(this.state.view.graph.removeListener(this.escapeHandler),this.escapeHandler=null);null!=this.preview&&(this.preview.destroy(),this.preview=null);null!=this.ghostPreview&&(this.ghostPreview.destroy(),this.ghostPreview=null);null!=this.selectionBorder&&(this.selectionBorder.destroy(),this.selectionBorder=null);null!=this.parentHighlight&&this.destroyParentHighlight();this.labelShape=null;this.removeHint();if(null!=this.sizers){for(var a=
+0;a<this.sizers.length;a++)this.sizers[a].destroy();this.sizers=null}if(null!=this.customHandles){for(a=0;a<this.customHandles.length;a++)this.customHandles[a].destroy();this.customHandles=null}};
function mxEdgeHandler(a){null!=a&&null!=a.shape&&(this.state=a,this.init(),this.escapeHandler=mxUtils.bind(this,function(b,c){var d=null!=this.index;this.reset();d&&this.graph.cellRenderer.redraw(this.state,!1,a.view.isRendering())}),this.state.view.graph.addListener(mxEvent.ESCAPE,this.escapeHandler))}mxEdgeHandler.prototype.graph=null;mxEdgeHandler.prototype.state=null;mxEdgeHandler.prototype.marker=null;mxEdgeHandler.prototype.constraintHandler=null;mxEdgeHandler.prototype.error=null;
mxEdgeHandler.prototype.shape=null;mxEdgeHandler.prototype.bends=null;mxEdgeHandler.prototype.labelShape=null;mxEdgeHandler.prototype.cloneEnabled=!0;mxEdgeHandler.prototype.addEnabled=!1;mxEdgeHandler.prototype.removeEnabled=!1;mxEdgeHandler.prototype.dblClickRemoveEnabled=!1;mxEdgeHandler.prototype.mergeRemoveEnabled=!1;mxEdgeHandler.prototype.straightRemoveEnabled=!1;mxEdgeHandler.prototype.virtualBendsEnabled=!1;mxEdgeHandler.prototype.virtualBendOpacity=20;
mxEdgeHandler.prototype.parentHighlightEnabled=!1;mxEdgeHandler.prototype.preferHtml=!1;mxEdgeHandler.prototype.allowHandleBoundsCheck=!0;mxEdgeHandler.prototype.snapToTerminals=!1;mxEdgeHandler.prototype.handleImage=null;mxEdgeHandler.prototype.tolerance=0;mxEdgeHandler.prototype.outlineConnect=!1;mxEdgeHandler.prototype.manageLabelHandle=!1;
mxEdgeHandler.prototype.init=function(){this.graph=this.state.view.graph;this.marker=this.createMarker();this.constraintHandler=new mxConstraintHandler(this.graph);this.points=[];this.abspoints=this.getSelectionPoints(this.state);this.shape=this.createSelectionShape(this.abspoints);this.shape.dialect=this.graph.dialect!=mxConstants.DIALECT_SVG?mxConstants.DIALECT_MIXEDHTML:mxConstants.DIALECT_SVG;this.shape.init(this.graph.getView().getOverlayPane());this.shape.svgStrokeTolerance=0;this.shape.pointerEvents=
!1;mxEvent.redirectMouseEvents(this.shape.node,this.graph,this.state);this.graph.isCellMovable(this.state.cell)&&this.shape.setCursor(mxConstants.CURSOR_MOVABLE_EDGE);this.preferHtml=null!=this.state.text&&this.state.text.node.parentNode==this.graph.container;if(!this.preferHtml){var a=this.state.getVisibleTerminalState(!0);null!=a&&(this.preferHtml=null!=a.text&&a.text.node.parentNode==this.graph.container);this.preferHtml||(a=this.state.getVisibleTerminalState(!1),null!=a&&(this.preferHtml=null!=
a.text&&a.text.node.parentNode==this.graph.container))}this.graph.isCellEditable(this.state.cell)&&(this.graph.getSelectionCount()<mxGraphHandler.prototype.maxCells||0>=mxGraphHandler.prototype.maxCells)&&(this.bends=this.createBends(),this.isVirtualBendsEnabled()&&(this.virtualBends=this.createVirtualBends()));this.label=new mxPoint(this.state.absoluteOffset.x,this.state.absoluteOffset.y);this.labelShape=this.createLabelHandleShape();this.initBend(this.labelShape);this.graph.isCellEditable(this.state.cell)&&
-(this.labelShape.setCursor(mxConstants.CURSOR_LABEL_HANDLE),this.customHandles=this.createCustomHandles());this.updateParentHighlight();this.redraw()};mxEdgeHandler.prototype.isParentHighlightVisible=mxVertexHandler.prototype.isParentHighlightVisible;mxEdgeHandler.prototype.updateParentHighlight=mxVertexHandler.prototype.updateParentHighlight;mxEdgeHandler.prototype.createCustomHandles=function(){return null};
+(this.labelShape.setCursor(mxConstants.CURSOR_LABEL_HANDLE),this.customHandles=this.createCustomHandles());this.updateParentHighlight();this.redraw()};mxEdgeHandler.prototype.isParentHighlightVisible=mxVertexHandler.prototype.isParentHighlightVisible;mxEdgeHandler.prototype.destroyParentHighlight=mxVertexHandler.prototype.destroyParentHighlight;mxEdgeHandler.prototype.updateParentHighlight=mxVertexHandler.prototype.updateParentHighlight;mxEdgeHandler.prototype.createCustomHandles=function(){return null};
mxEdgeHandler.prototype.isVirtualBendsEnabled=function(a){return this.virtualBendsEnabled&&(null==this.state.style[mxConstants.STYLE_EDGE]||this.state.style[mxConstants.STYLE_EDGE]==mxConstants.NONE||1==this.state.style[mxConstants.STYLE_NOEDGESTYLE])&&"arrow"!=mxUtils.getValue(this.state.style,mxConstants.STYLE_SHAPE,null)};mxEdgeHandler.prototype.isCellEnabled=function(a){return!0};mxEdgeHandler.prototype.isAddPointEvent=function(a){return mxEvent.isShiftDown(a)};
mxEdgeHandler.prototype.isRemovePointEvent=function(a){return mxEvent.isShiftDown(a)};mxEdgeHandler.prototype.getSelectionPoints=function(a){return a.absolutePoints};mxEdgeHandler.prototype.createParentHighlightShape=function(a){a=new mxRectangleShape(mxRectangle.fromRectangle(a),null,this.getSelectionColor());a.strokewidth=this.getSelectionStrokeWidth();a.isDashed=this.isSelectionDashed();return a};
mxEdgeHandler.prototype.createSelectionShape=function(a){a=new this.state.shape.constructor;a.outline=!0;a.apply(this.state);a.isDashed=this.isSelectionDashed();a.stroke=this.getSelectionColor();a.isShadow=!1;return a};mxEdgeHandler.prototype.getSelectionColor=function(){return this.graph.isCellEditable(this.state.cell)?mxConstants.EDGE_SELECTION_COLOR:mxConstants.LOCKED_HANDLE_FILLCOLOR};mxEdgeHandler.prototype.getSelectionStrokeWidth=function(){return mxConstants.EDGE_SELECTION_STROKEWIDTH};
@@ -1697,9 +1698,8 @@ mxEdgeHandler.prototype.drawPreview=function(){try{if(this.isLabel){var a=this.l
this.shape.stroke=this.getSelectionColor(),this.shape.strokewidth=this.getSelectionStrokeWidth()/this.shape.scale/this.shape.scale,this.shape.isShadow=!1,this.shape.redraw());this.updateParentHighlight()}catch(c){}};
mxEdgeHandler.prototype.refresh=function(){null!=this.state&&(this.abspoints=this.getSelectionPoints(this.state),this.points=[],null!=this.bends&&(this.destroyBends(this.bends),this.bends=this.createBends()),null!=this.virtualBends&&(this.destroyBends(this.virtualBends),this.virtualBends=this.createVirtualBends()),null!=this.customHandles&&(this.destroyBends(this.customHandles),this.customHandles=this.createCustomHandles()),null!=this.labelShape&&null!=this.labelShape.node&&null!=this.labelShape.node.parentNode&&
this.labelShape.node.parentNode.appendChild(this.labelShape.node))};mxEdgeHandler.prototype.isDestroyed=function(){return null==this.shape};mxEdgeHandler.prototype.destroyBends=function(a){if(null!=a)for(var b=0;b<a.length;b++)null!=a[b]&&a[b].destroy()};
-mxEdgeHandler.prototype.destroy=function(){null!=this.escapeHandler&&(this.state.view.graph.removeListener(this.escapeHandler),this.escapeHandler=null);null!=this.marker&&(this.marker.destroy(),this.marker=null);null!=this.shape&&(this.shape.destroy(),this.shape=null);if(null!=this.parentHighlight){var a=this.graph.model.getParent(this.state.cell),a=this.graph.view.getState(a);null!=a&&a.parentHighlight==this.parentHighlight&&(a.parentHighlight=null);this.parentHighlight.destroy();this.parentHighlight=
-null}null!=this.labelShape&&(this.labelShape.destroy(),this.labelShape=null);null!=this.constraintHandler&&(this.constraintHandler.destroy(),this.constraintHandler=null);this.destroyBends(this.virtualBends);this.virtualBends=null;this.destroyBends(this.customHandles);this.customHandles=null;this.destroyBends(this.bends);this.bends=null;this.removeHint()};function mxElbowEdgeHandler(a){mxEdgeHandler.call(this,a)}mxUtils.extend(mxElbowEdgeHandler,mxEdgeHandler);
-mxElbowEdgeHandler.prototype.flipEnabled=!0;mxElbowEdgeHandler.prototype.doubleClickOrientationResource="none"!=mxClient.language?"doubleClickOrientation":"";
+mxEdgeHandler.prototype.destroy=function(){null!=this.escapeHandler&&(this.state.view.graph.removeListener(this.escapeHandler),this.escapeHandler=null);null!=this.marker&&(this.marker.destroy(),this.marker=null);null!=this.shape&&(this.shape.destroy(),this.shape=null);null!=this.labelShape&&(this.labelShape.destroy(),this.labelShape=null);null!=this.constraintHandler&&(this.constraintHandler.destroy(),this.constraintHandler=null);null!=this.parentHighlight&&this.destroyParentHighlight();this.destroyBends(this.virtualBends);
+this.virtualBends=null;this.destroyBends(this.customHandles);this.customHandles=null;this.destroyBends(this.bends);this.bends=null;this.removeHint()};function mxElbowEdgeHandler(a){mxEdgeHandler.call(this,a)}mxUtils.extend(mxElbowEdgeHandler,mxEdgeHandler);mxElbowEdgeHandler.prototype.flipEnabled=!0;mxElbowEdgeHandler.prototype.doubleClickOrientationResource="none"!=mxClient.language?"doubleClickOrientation":"";
mxElbowEdgeHandler.prototype.createBends=function(){var a=[],b=this.createHandleShape(0);this.initBend(b);b.setCursor(mxConstants.CURSOR_TERMINAL_HANDLE);a.push(b);a.push(this.createVirtualBend(mxUtils.bind(this,function(a){!mxEvent.isConsumed(a)&&this.flipEnabled&&(this.graph.flipEdge(this.state.cell,a),mxEvent.consume(a))})));this.points.push(new mxPoint(0,0));b=this.createHandleShape(2,null,!0);this.initBend(b);b.setCursor(mxConstants.CURSOR_TERMINAL_HANDLE);a.push(b);return a};
mxElbowEdgeHandler.prototype.createVirtualBend=function(a){var b=this.createHandleShape();this.initBend(b,a);b.setCursor(this.getCursorForBend());this.graph.isCellBendable(this.state.cell)||(b.node.style.display="none");return b};
mxElbowEdgeHandler.prototype.getCursorForBend=function(){return this.state.style[mxConstants.STYLE_EDGE]==mxEdgeStyle.TopToBottom||this.state.style[mxConstants.STYLE_EDGE]==mxConstants.EDGESTYLE_TOPTOBOTTOM||(this.state.style[mxConstants.STYLE_EDGE]==mxEdgeStyle.ElbowConnector||this.state.style[mxConstants.STYLE_EDGE]==mxConstants.EDGESTYLE_ELBOW)&&this.state.style[mxConstants.STYLE_ELBOW]==mxConstants.ELBOW_VERTICAL?"row-resize":"col-resize"};
diff --git a/src/main/webapp/package.json b/src/main/webapp/package.json
index ce16d54c..a85a014a 100644
--- a/src/main/webapp/package.json
+++ b/src/main/webapp/package.json
@@ -1,6 +1,6 @@
{
"name": "draw.io",
- "version": "15.7.2",
+ "version": "16.3.1",
"description": "diagrams.net desktop",
"main": "electron.js",
"scripts": {
diff --git a/src/main/webapp/service-worker.js b/src/main/webapp/service-worker.js
index 2c006100..e37132a5 100644
--- a/src/main/webapp/service-worker.js
+++ b/src/main/webapp/service-worker.js
@@ -1,2 +1,2 @@
-if(!self.define){const e=e=>{"require"!==e&&(e+=".js");let i=Promise.resolve();return r[e]||(i=new Promise((async i=>{if("document"in self){const r=document.createElement("script");r.src=e,document.head.appendChild(r),r.onload=i}else importScripts(e),i()}))),i.then((()=>{if(!r[e])throw new Error(`Module ${e} didn’t register its module`);return r[e]}))},i=(i,r)=>{Promise.all(i.map(e)).then((e=>r(1===e.length?e[0]:e)))},r={require:Promise.resolve(i)};self.define=(i,a,c)=>{r[i]||(r[i]=Promise.resolve().then((()=>{let r={};const s={uri:location.origin+i.slice(1)};return Promise.all(a.map((i=>{switch(i){case"exports":return r;case"module":return s;default:return e(i)}}))).then((e=>{const i=c(...e);return r.default||(r.default=i),r}))})))}}define("./service-worker.js",["./workbox-12cca165"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"js/app.min.js",revision:"41af4466cb1fbaafc9e44971dc52b78e"},{url:"js/extensions.min.js",revision:"5f96202f6da7fac09289ee6738d036b9"},{url:"js/stencils.min.js",revision:"7a7bde0d8b6615eee4ebd215d2b9d761"},{url:"js/shapes-14-6-5.min.js",revision:"93cb7d82e382a16b54eb307374b1b760"},{url:"js/math-print.js",revision:"9d98c920695f6c3395da4b68f723e60a"},{url:"index.html",revision:"22181f53eb2ba790e681cec8e223218d"},{url:"open.html",revision:"d71816b3b00e769fc6019fcdd6921662"},{url:"styles/fonts/ArchitectsDaughter-Regular.ttf",revision:"31c2153c0530e32553b31a49b3d70736"},{url:"styles/grapheditor.css",revision:"748da0cd0a068a52eac70ee2b2c194fe"},{url:"styles/atlas.css",revision:"e8152cda9233d3a3af017422993abfce"},{url:"styles/dark.css",revision:"3179f617dd02efd2cefeb8c06f965880"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"505e8280346666f7ee801bc59521fa67"},{url:"js/viewer-static.min.js",revision:"097239f8adc7e34f483e2487a46fea32"},{url:"connect/jira/editor-1-3-3.html",revision:"a2b0e7267a08a838f3cc404eba831ec0"},{url:"connect/jira/viewerPanel-1-3-12.html",revision:"2ce6e99d95113e9ca6b24343cea202e0"},{url:"connect/jira/fullScreenViewer-1-3-3.html",revision:"ba7ece2dfb2833b72f97280d7092f25e"},{url:"connect/jira/viewerPanel.js",revision:"6e9412c359a21b86dc7c5128bf6208d4"},{url:"connect/jira/spinner.gif",revision:"7d857ab9d86123e93d74d48e958fe743"},{url:"connect/jira/editor.js",revision:"01caa325f3ad3f6565e0b4228907fb63"},{url:"connect/jira/fullscreen-viewer-init.js",revision:"197ed5837ed27992688fc424699a9a78"},{url:"connect/jira/fullscreen-viewer.js",revision:"4e0775a6c156a803e777870623ac7c3e"},{url:"plugins/connectJira.js",revision:"4cefa13414e0d406550f3c073923080c"},{url:"plugins/cConf-comments.js",revision:"c787357209cff2986dcca567b599e2ef"},{url:"plugins/cConf-1-4-8.js",revision:"d7577d8f21716423852c343f027c4c27"},{url:"connect/confluence/connectUtils-1-4-8.js",revision:"48769b97cbeb80d0d3fba95360c9c562"},{url:"connect/new_common/cac.js",revision:"3d8c436c566db645fb1e6e6ba9f69bbc"},{url:"connect/gdrive_common/gac.js",revision:"38f1df3ecc4d78290493f47e62202138"},{url:"connect/onedrive_common/ac.js",revision:"887d3ac605a7bb297067537e7c1f5686"},{url:"connect/confluence/viewer-init.js",revision:"4a60c6c805cab7bc782f1e52f7818d9f"},{url:"connect/confluence/viewer.js",revision:"d025b0929817299fa154f273525aa0ec"},{url:"connect/confluence/viewer-1-4-42.html",revision:"c7b38b3af4eb7a58ab6dc4791216530e"},{url:"connect/confluence/macroEditor-1-4-8.html",revision:"8cd74a2fb60bf2e3e86026d66107cf11"},{url:"connect/confluence/includeDiagram-1-4-8.js",revision:"8b670f4b6ccde55358851da705ae884f"},{url:"connect/confluence/includeDiagram.html",revision:"c03c89622d22227313645900af4e3c3d"},{url:"connect/confluence/macro-editor.js",revision:"e273a48b8e81faac4530bf1a68d75aa0"},{url:"math/MathJax.js",revision:"b2c103388b71bb3d11cbf9aa45fe9b68"},{url:"math/config/TeX-MML-AM_SVG-full.js",revision:"d5cb8ac04050983170ae4af145bc66ff"},{url:"math/jax/output/SVG/fonts/TeX/fontdata.js",revision:"495e5a410955d1b6178870e605890ede"},{url:"math/jax/element/mml/optable/BasicLatin.js",revision:"cac9b2e71382e62270baa55fab07cc13"},{url:"math/jax/output/SVG/fonts/TeX/Size2/Regular/Main.js",revision:"e3e5e4d5924beed29f0844550b5c8f46"},{url:"math/jax/output/SVG/fonts/TeX/Main/Regular/LetterlikeSymbols.js",revision:"0767cbad7275b53da128e7e5e1109f7c"},{url:"math/jax/output/SVG/fonts/TeX/Main/Regular/GreekAndCoptic.js",revision:"346302a5c5ee00e01c302148c56dbfe3"},{url:"resources/dia.txt",revision:"2d1a381fcc4cff55487c6647efedf6de"},{url:"resources/dia_am.txt",revision:"de8965e0b14a200a24503b5d6d8fa40f"},{url:"resources/dia_ar.txt",revision:"d05cc111ac6bec52f40d5a9dd0f87038"},{url:"resources/dia_bg.txt",revision:"07a48a0f0710d06b67c8416a43c82abd"},{url:"resources/dia_bn.txt",revision:"eca376cf5d386ae7bf355320642718e6"},{url:"resources/dia_bs.txt",revision:"3eb3fcbe2631df0bd1265f74c8bc4ac7"},{url:"resources/dia_ca.txt",revision:"3ff92c0ce52f691f22cbaba5be40339b"},{url:"resources/dia_cs.txt",revision:"e0d135b6489371a8001550991844d912"},{url:"resources/dia_da.txt",revision:"e87b4847cb15ce4bae1dc34d3d66bd88"},{url:"resources/dia_de.txt",revision:"157e8d3c212296e10910157fd89a4df2"},{url:"resources/dia_el.txt",revision:"f2c8598a67914dc2c65416c7ab8c5ce2"},{url:"resources/dia_eo.txt",revision:"3774f7d616de9a25f44666a3bacfb3d3"},{url:"resources/dia_es.txt",revision:"11b83ee5fafe02125077def3a2a45156"},{url:"resources/dia_et.txt",revision:"ca8d60c90fb73a6d254ad526bcd6425d"},{url:"resources/dia_eu.txt",revision:"db60b7b22159aca2cf0d44c709cdffe7"},{url:"resources/dia_fa.txt",revision:"290cec7d5744b28cce85a9d148315ee7"},{url:"resources/dia_fi.txt",revision:"0246ab13e72267e2ec8f563159d3f053"},{url:"resources/dia_fil.txt",revision:"76a53d7209a44884d672b1d2fa15fba9"},{url:"resources/dia_fr.txt",revision:"95e0e458be00a700398c3754518f4044"},{url:"resources/dia_gl.txt",revision:"20186b103bdec339b042697645fb0bd2"},{url:"resources/dia_gu.txt",revision:"8a92bbfc1933a9e7fcfe28a9bf7b9b00"},{url:"resources/dia_he.txt",revision:"844f74dfbf52588aac9b2f3863439ce6"},{url:"resources/dia_hi.txt",revision:"6b8b6f55d83f0339591c1f219bd2e290"},{url:"resources/dia_hr.txt",revision:"f02c352eb31dee6f083aba1730f7bea7"},{url:"resources/dia_hu.txt",revision:"c3b3ca19d942bdec30c0efbb013885b7"},{url:"resources/dia_id.txt",revision:"3018232f8bd11cdeb117e2a612e4a503"},{url:"resources/dia_it.txt",revision:"8646353feb6aae64a80b954c0f9d3684"},{url:"resources/dia_ja.txt",revision:"b61f27fb2665297f6020c56f7a6ecaa8"},{url:"resources/dia_kn.txt",revision:"5c7a4a9d95cf4d4d7ef155eb54d72513"},{url:"resources/dia_ko.txt",revision:"0aa329ae4fdb62d187e12c2069bc95b1"},{url:"resources/dia_lt.txt",revision:"310ad0092e511889fd01ece4424bb323"},{url:"resources/dia_lv.txt",revision:"912c0e99aa02b94bb7fdd058c807a383"},{url:"resources/dia_ml.txt",revision:"5c4ed1edc68803c275f59cb6879a7112"},{url:"resources/dia_mr.txt",revision:"577ee6d3d28c1c94b433c12929810bc5"},{url:"resources/dia_ms.txt",revision:"ba5f7cef8703ee7a6d6e2b15d9bb2ce5"},{url:"resources/dia_my.txt",revision:"2d1a381fcc4cff55487c6647efedf6de"},{url:"resources/dia_nl.txt",revision:"091c04518d5ddf6e5c0a8b070a517208"},{url:"resources/dia_no.txt",revision:"7636c260d2f66aaa6e06fbde8d736c44"},{url:"resources/dia_pl.txt",revision:"cdfb2e07d87fcbcba9a922a9c875d2f7"},{url:"resources/dia_pt-br.txt",revision:"628d4747e428527edcfc147ac0cb5200"},{url:"resources/dia_pt.txt",revision:"e7a6e66aeb8ab969bd75be2aeba08807"},{url:"resources/dia_ro.txt",revision:"2f9c2135656bb37810f10e4c509f9d2b"},{url:"resources/dia_ru.txt",revision:"a5bf0195a040128e0ba2b99cd08fbf6e"},{url:"resources/dia_si.txt",revision:"2d1a381fcc4cff55487c6647efedf6de"},{url:"resources/dia_sk.txt",revision:"76926b99f970f18198d8642e7e022e4f"},{url:"resources/dia_sl.txt",revision:"0764f1e7986f6425729d8c82080748af"},{url:"resources/dia_sr.txt",revision:"030231d3e4929a45f105c3dc7222b787"},{url:"resources/dia_sv.txt",revision:"aeded3e25bf42dcf70fd7293786cb091"},{url:"resources/dia_sw.txt",revision:"731789c9f34806a9cb686910fb3b7919"},{url:"resources/dia_ta.txt",revision:"d80cd510c2f15dc5fb0c5057584fcd6e"},{url:"resources/dia_te.txt",revision:"457769728267b87b24cdbbf40adbac5c"},{url:"resources/dia_th.txt",revision:"361fcb3f167c2b64f310a52a41855f9f"},{url:"resources/dia_tr.txt",revision:"3c4133fcf6f1ac357d237042549647a0"},{url:"resources/dia_uk.txt",revision:"015e2adbd98db8eb2e4eb52db63436d6"},{url:"resources/dia_vi.txt",revision:"214984d7072d1bfd9c19eb5ed2c0a5f1"},{url:"resources/dia_zh-tw.txt",revision:"52efef0f0e0daacc72f260cb1493752a"},{url:"resources/dia_zh.txt",revision:"a4eb062bae9361954b50a50b3418cfe3"},{url:"favicon.ico",revision:"fab2d88b37c72d83607527573de45281"},{url:"images/manifest.json",revision:"c6236bde53ed79aaaec60a1aca8ee2ef"},{url:"images/logo.png",revision:"89630b64b911ebe0daa3dfe442087cfa"},{url:"images/drawlogo.svg",revision:"4bf4d14ebcf072d8bd4c5a1c89e88fc6"},{url:"images/drawlogo48.png",revision:"8b13428373aca67b895364d025f42417"},{url:"images/drawlogo-gray.svg",revision:"0aabacbc0873816e1e09e4736ae44c7d"},{url:"images/drawlogo-text-bottom.svg",revision:"f6c438823ab31f290940bd4feb8dd9c2"},{url:"images/default-user.jpg",revision:"2c399696a87c8921f12d2f9e1990cc6e"},{url:"images/logo-flat-small.png",revision:"4b178e59ff499d6dd1894fc498b59877"},{url:"images/apple-touch-icon.png",revision:"73da7989a23ce9a4be565ec65658a239"},{url:"images/favicon-16x16.png",revision:"1a79d5461a5d2bf21f6652e0ac20d6e5"},{url:"images/favicon-32x32.png",revision:"e3b92da2febe70bad5372f6f3474b034"},{url:"images/android-chrome-196x196.png",revision:"f8c045b2d7b1c719fda64edab04c415c"},{url:"images/android-chrome-512x512.png",revision:"959b5fac2453963ff6d60fb85e4b73fd"},{url:"images/delete.png",revision:"5f2350f2fd20f1a229637aed32ed8f29"},{url:"images/droptarget.png",revision:"bbf7f563fb6784de1ce96f329519b043"},{url:"images/help.png",revision:"9266c6c3915bd33c243d80037d37bf61"},{url:"images/download.png",revision:"35418dd7bd48d87502c71b578cc6c37f"},{url:"images/logo-flat.png",revision:"038070ab43aee6e54a791211859fc67b"},{url:"images/google-drive-logo.svg",revision:"5d9f2f5bbc7dcc252730a0072bb23059"},{url:"images/onedrive-logo.svg",revision:"3645b344ec0634c1290dd58d7dc87b97"},{url:"images/dropbox-logo.svg",revision:"e6be408c77cf9c82d41ac64fa854280a"},{url:"images/github-logo.svg",revision:"a1a999b69a275eac0cb918360ac05ae1"},{url:"images/gitlab-logo.svg",revision:"0faea8c818899e58533e153c44b10517"},{url:"images/trello-logo.svg",revision:"006fd0d7d70d7e95dc691674cb12e044"},{url:"images/osa_drive-harddisk.png",revision:"b954e1ae772087c5b4c6ae797e1f9649"},{url:"images/osa_database.png",revision:"c350d9d9b95f37b6cfe798b40ede5fb0"},{url:"images/google-drive-logo-white.svg",revision:"f329d8b1be7778515a85b93fc35d9f26"},{url:"images/dropbox-logo-white.svg",revision:"4ea8299ac3bc31a16f199ee3aec223bf"},{url:"images/onedrive-logo-white.svg",revision:"b3602fa0fc947009cff3f33a581cff4d"},{url:"images/github-logo-white.svg",revision:"537b1127b3ca0f95b45782d1304fb77a"},{url:"images/gitlab-logo-white.svg",revision:"5fede9ac2f394c716b8c23e3fddc3910"},{url:"images/trello-logo-white-orange.svg",revision:"e2a0a52ba3766682f138138d10a75eb5"},{url:"images/logo-confluence.png",revision:"ed1e55d44ae5eba8f999aba2c93e8331"},{url:"images/logo-jira.png",revision:"f8d460555a0d1f87cfd901e940666629"},{url:"images/clear.gif",revision:"db13c778e4382e0b55258d0f811d5d70"},{url:"images/spin.gif",revision:"487cbb40b9ced439aa1ad914e816d773"},{url:"images/checkmark.gif",revision:"ba764ce62f2bf952df5bbc2bb4d381c5"},{url:"images/hs.png",revision:"fefa1a03d92ebad25c88dca94a0b63db"},{url:"images/aui-wait.gif",revision:"5a474bcbd8d2f2826f03d10ea44bf60e"},{url:"mxgraph/css/common.css",revision:"b5b7280ec98671bb6c3847a36bc7ea12"},{url:"mxgraph/images/expanded.gif",revision:"2b67c2c035af1e9a5cc814f0d22074cf"},{url:"mxgraph/images/collapsed.gif",revision:"73cc826da002a3d740ca4ce6ec5c1f4a"},{url:"mxgraph/images/maximize.gif",revision:"5cd13d6925493ab51e876694cc1c2ec2"},{url:"mxgraph/images/minimize.gif",revision:"8957741b9b0f86af9438775f2aadbb54"},{url:"mxgraph/images/close.gif",revision:"8b84669812ac7382984fca35de8da48b"},{url:"mxgraph/images/resize.gif",revision:"a6477612b3567a34033f9cac6184eed3"},{url:"mxgraph/images/separator.gif",revision:"7819742ff106c97da7a801c2372bbbe5"},{url:"mxgraph/images/window.gif",revision:"fd9a21dd4181f98052a202a0a01f18ab"},{url:"mxgraph/images/window-title.gif",revision:"3fb1d6c43246cdf991a11dfe826dfe99"},{url:"mxgraph/images/button.gif",revision:"00759bdc3ad218fa739f584369541809"},{url:"mxgraph/images/point.gif",revision:"83a43717b284902442620f61bc4e9fa6"}],{ignoreURLParametersMatching:[/.*/]})}));
+if(!self.define){const e=e=>{"require"!==e&&(e+=".js");let i=Promise.resolve();return r[e]||(i=new Promise((async i=>{if("document"in self){const r=document.createElement("script");r.src=e,document.head.appendChild(r),r.onload=i}else importScripts(e),i()}))),i.then((()=>{if(!r[e])throw new Error(`Module ${e} didn’t register its module`);return r[e]}))},i=(i,r)=>{Promise.all(i.map(e)).then((e=>r(1===e.length?e[0]:e)))},r={require:Promise.resolve(i)};self.define=(i,a,c)=>{r[i]||(r[i]=Promise.resolve().then((()=>{let r={};const s={uri:location.origin+i.slice(1)};return Promise.all(a.map((i=>{switch(i){case"exports":return r;case"module":return s;default:return e(i)}}))).then((e=>{const i=c(...e);return r.default||(r.default=i),r}))})))}}define("./service-worker.js",["./workbox-12cca165"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"js/app.min.js",revision:"d2e50c8eccc95bb414b0f2e58f3da082"},{url:"js/extensions.min.js",revision:"5f96202f6da7fac09289ee6738d036b9"},{url:"js/stencils.min.js",revision:"7a7bde0d8b6615eee4ebd215d2b9d761"},{url:"js/shapes-14-6-5.min.js",revision:"93cb7d82e382a16b54eb307374b1b760"},{url:"js/math-print.js",revision:"9d98c920695f6c3395da4b68f723e60a"},{url:"index.html",revision:"22181f53eb2ba790e681cec8e223218d"},{url:"open.html",revision:"d71816b3b00e769fc6019fcdd6921662"},{url:"styles/fonts/ArchitectsDaughter-Regular.ttf",revision:"31c2153c0530e32553b31a49b3d70736"},{url:"styles/grapheditor.css",revision:"748da0cd0a068a52eac70ee2b2c194fe"},{url:"styles/atlas.css",revision:"e8152cda9233d3a3af017422993abfce"},{url:"styles/dark.css",revision:"3179f617dd02efd2cefeb8c06f965880"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"505e8280346666f7ee801bc59521fa67"},{url:"js/viewer-static.min.js",revision:"5f0398c8427ca690f6497d99184f298a"},{url:"connect/jira/editor-1-3-3.html",revision:"a2b0e7267a08a838f3cc404eba831ec0"},{url:"connect/jira/viewerPanel-1-3-12.html",revision:"2ce6e99d95113e9ca6b24343cea202e0"},{url:"connect/jira/fullScreenViewer-1-3-3.html",revision:"ba7ece2dfb2833b72f97280d7092f25e"},{url:"connect/jira/viewerPanel.js",revision:"6e9412c359a21b86dc7c5128bf6208d4"},{url:"connect/jira/spinner.gif",revision:"7d857ab9d86123e93d74d48e958fe743"},{url:"connect/jira/editor.js",revision:"01caa325f3ad3f6565e0b4228907fb63"},{url:"connect/jira/fullscreen-viewer-init.js",revision:"197ed5837ed27992688fc424699a9a78"},{url:"connect/jira/fullscreen-viewer.js",revision:"4e0775a6c156a803e777870623ac7c3e"},{url:"plugins/connectJira.js",revision:"4cefa13414e0d406550f3c073923080c"},{url:"plugins/cConf-comments.js",revision:"c787357209cff2986dcca567b599e2ef"},{url:"plugins/cConf-1-4-8.js",revision:"d7577d8f21716423852c343f027c4c27"},{url:"connect/confluence/connectUtils-1-4-8.js",revision:"48769b97cbeb80d0d3fba95360c9c562"},{url:"connect/new_common/cac.js",revision:"3d8c436c566db645fb1e6e6ba9f69bbc"},{url:"connect/gdrive_common/gac.js",revision:"38f1df3ecc4d78290493f47e62202138"},{url:"connect/onedrive_common/ac.js",revision:"887d3ac605a7bb297067537e7c1f5686"},{url:"connect/confluence/viewer-init.js",revision:"4a60c6c805cab7bc782f1e52f7818d9f"},{url:"connect/confluence/viewer.js",revision:"d025b0929817299fa154f273525aa0ec"},{url:"connect/confluence/viewer-1-4-42.html",revision:"c7b38b3af4eb7a58ab6dc4791216530e"},{url:"connect/confluence/macroEditor-1-4-8.html",revision:"8cd74a2fb60bf2e3e86026d66107cf11"},{url:"connect/confluence/includeDiagram-1-4-8.js",revision:"8b670f4b6ccde55358851da705ae884f"},{url:"connect/confluence/includeDiagram.html",revision:"c03c89622d22227313645900af4e3c3d"},{url:"connect/confluence/macro-editor.js",revision:"e273a48b8e81faac4530bf1a68d75aa0"},{url:"math/MathJax.js",revision:"b2c103388b71bb3d11cbf9aa45fe9b68"},{url:"math/config/TeX-MML-AM_SVG-full.js",revision:"d5cb8ac04050983170ae4af145bc66ff"},{url:"math/jax/output/SVG/fonts/TeX/fontdata.js",revision:"495e5a410955d1b6178870e605890ede"},{url:"math/jax/element/mml/optable/BasicLatin.js",revision:"cac9b2e71382e62270baa55fab07cc13"},{url:"math/jax/output/SVG/fonts/TeX/Size2/Regular/Main.js",revision:"e3e5e4d5924beed29f0844550b5c8f46"},{url:"math/jax/output/SVG/fonts/TeX/Main/Regular/LetterlikeSymbols.js",revision:"0767cbad7275b53da128e7e5e1109f7c"},{url:"math/jax/output/SVG/fonts/TeX/Main/Regular/GreekAndCoptic.js",revision:"346302a5c5ee00e01c302148c56dbfe3"},{url:"resources/dia.txt",revision:"2d1a381fcc4cff55487c6647efedf6de"},{url:"resources/dia_am.txt",revision:"de8965e0b14a200a24503b5d6d8fa40f"},{url:"resources/dia_ar.txt",revision:"d05cc111ac6bec52f40d5a9dd0f87038"},{url:"resources/dia_bg.txt",revision:"07a48a0f0710d06b67c8416a43c82abd"},{url:"resources/dia_bn.txt",revision:"eca376cf5d386ae7bf355320642718e6"},{url:"resources/dia_bs.txt",revision:"3eb3fcbe2631df0bd1265f74c8bc4ac7"},{url:"resources/dia_ca.txt",revision:"3ff92c0ce52f691f22cbaba5be40339b"},{url:"resources/dia_cs.txt",revision:"e0d135b6489371a8001550991844d912"},{url:"resources/dia_da.txt",revision:"e87b4847cb15ce4bae1dc34d3d66bd88"},{url:"resources/dia_de.txt",revision:"157e8d3c212296e10910157fd89a4df2"},{url:"resources/dia_el.txt",revision:"f2c8598a67914dc2c65416c7ab8c5ce2"},{url:"resources/dia_eo.txt",revision:"3774f7d616de9a25f44666a3bacfb3d3"},{url:"resources/dia_es.txt",revision:"11b83ee5fafe02125077def3a2a45156"},{url:"resources/dia_et.txt",revision:"ca8d60c90fb73a6d254ad526bcd6425d"},{url:"resources/dia_eu.txt",revision:"db60b7b22159aca2cf0d44c709cdffe7"},{url:"resources/dia_fa.txt",revision:"290cec7d5744b28cce85a9d148315ee7"},{url:"resources/dia_fi.txt",revision:"0246ab13e72267e2ec8f563159d3f053"},{url:"resources/dia_fil.txt",revision:"76a53d7209a44884d672b1d2fa15fba9"},{url:"resources/dia_fr.txt",revision:"95e0e458be00a700398c3754518f4044"},{url:"resources/dia_gl.txt",revision:"20186b103bdec339b042697645fb0bd2"},{url:"resources/dia_gu.txt",revision:"8a92bbfc1933a9e7fcfe28a9bf7b9b00"},{url:"resources/dia_he.txt",revision:"844f74dfbf52588aac9b2f3863439ce6"},{url:"resources/dia_hi.txt",revision:"6b8b6f55d83f0339591c1f219bd2e290"},{url:"resources/dia_hr.txt",revision:"f02c352eb31dee6f083aba1730f7bea7"},{url:"resources/dia_hu.txt",revision:"c3b3ca19d942bdec30c0efbb013885b7"},{url:"resources/dia_id.txt",revision:"3018232f8bd11cdeb117e2a612e4a503"},{url:"resources/dia_it.txt",revision:"8646353feb6aae64a80b954c0f9d3684"},{url:"resources/dia_ja.txt",revision:"b61f27fb2665297f6020c56f7a6ecaa8"},{url:"resources/dia_kn.txt",revision:"5c7a4a9d95cf4d4d7ef155eb54d72513"},{url:"resources/dia_ko.txt",revision:"0aa329ae4fdb62d187e12c2069bc95b1"},{url:"resources/dia_lt.txt",revision:"310ad0092e511889fd01ece4424bb323"},{url:"resources/dia_lv.txt",revision:"912c0e99aa02b94bb7fdd058c807a383"},{url:"resources/dia_ml.txt",revision:"5c4ed1edc68803c275f59cb6879a7112"},{url:"resources/dia_mr.txt",revision:"577ee6d3d28c1c94b433c12929810bc5"},{url:"resources/dia_ms.txt",revision:"ba5f7cef8703ee7a6d6e2b15d9bb2ce5"},{url:"resources/dia_my.txt",revision:"2d1a381fcc4cff55487c6647efedf6de"},{url:"resources/dia_nl.txt",revision:"091c04518d5ddf6e5c0a8b070a517208"},{url:"resources/dia_no.txt",revision:"7636c260d2f66aaa6e06fbde8d736c44"},{url:"resources/dia_pl.txt",revision:"cdfb2e07d87fcbcba9a922a9c875d2f7"},{url:"resources/dia_pt-br.txt",revision:"628d4747e428527edcfc147ac0cb5200"},{url:"resources/dia_pt.txt",revision:"e7a6e66aeb8ab969bd75be2aeba08807"},{url:"resources/dia_ro.txt",revision:"2f9c2135656bb37810f10e4c509f9d2b"},{url:"resources/dia_ru.txt",revision:"a5bf0195a040128e0ba2b99cd08fbf6e"},{url:"resources/dia_si.txt",revision:"2d1a381fcc4cff55487c6647efedf6de"},{url:"resources/dia_sk.txt",revision:"76926b99f970f18198d8642e7e022e4f"},{url:"resources/dia_sl.txt",revision:"0764f1e7986f6425729d8c82080748af"},{url:"resources/dia_sr.txt",revision:"030231d3e4929a45f105c3dc7222b787"},{url:"resources/dia_sv.txt",revision:"aeded3e25bf42dcf70fd7293786cb091"},{url:"resources/dia_sw.txt",revision:"731789c9f34806a9cb686910fb3b7919"},{url:"resources/dia_ta.txt",revision:"d80cd510c2f15dc5fb0c5057584fcd6e"},{url:"resources/dia_te.txt",revision:"457769728267b87b24cdbbf40adbac5c"},{url:"resources/dia_th.txt",revision:"361fcb3f167c2b64f310a52a41855f9f"},{url:"resources/dia_tr.txt",revision:"3c4133fcf6f1ac357d237042549647a0"},{url:"resources/dia_uk.txt",revision:"015e2adbd98db8eb2e4eb52db63436d6"},{url:"resources/dia_vi.txt",revision:"214984d7072d1bfd9c19eb5ed2c0a5f1"},{url:"resources/dia_zh-tw.txt",revision:"52efef0f0e0daacc72f260cb1493752a"},{url:"resources/dia_zh.txt",revision:"a4eb062bae9361954b50a50b3418cfe3"},{url:"favicon.ico",revision:"fab2d88b37c72d83607527573de45281"},{url:"images/manifest.json",revision:"c6236bde53ed79aaaec60a1aca8ee2ef"},{url:"images/logo.png",revision:"89630b64b911ebe0daa3dfe442087cfa"},{url:"images/drawlogo.svg",revision:"4bf4d14ebcf072d8bd4c5a1c89e88fc6"},{url:"images/drawlogo48.png",revision:"8b13428373aca67b895364d025f42417"},{url:"images/drawlogo-gray.svg",revision:"0aabacbc0873816e1e09e4736ae44c7d"},{url:"images/drawlogo-text-bottom.svg",revision:"f6c438823ab31f290940bd4feb8dd9c2"},{url:"images/default-user.jpg",revision:"2c399696a87c8921f12d2f9e1990cc6e"},{url:"images/logo-flat-small.png",revision:"4b178e59ff499d6dd1894fc498b59877"},{url:"images/apple-touch-icon.png",revision:"73da7989a23ce9a4be565ec65658a239"},{url:"images/favicon-16x16.png",revision:"1a79d5461a5d2bf21f6652e0ac20d6e5"},{url:"images/favicon-32x32.png",revision:"e3b92da2febe70bad5372f6f3474b034"},{url:"images/android-chrome-196x196.png",revision:"f8c045b2d7b1c719fda64edab04c415c"},{url:"images/android-chrome-512x512.png",revision:"959b5fac2453963ff6d60fb85e4b73fd"},{url:"images/delete.png",revision:"5f2350f2fd20f1a229637aed32ed8f29"},{url:"images/droptarget.png",revision:"bbf7f563fb6784de1ce96f329519b043"},{url:"images/help.png",revision:"9266c6c3915bd33c243d80037d37bf61"},{url:"images/download.png",revision:"35418dd7bd48d87502c71b578cc6c37f"},{url:"images/logo-flat.png",revision:"038070ab43aee6e54a791211859fc67b"},{url:"images/google-drive-logo.svg",revision:"5d9f2f5bbc7dcc252730a0072bb23059"},{url:"images/onedrive-logo.svg",revision:"3645b344ec0634c1290dd58d7dc87b97"},{url:"images/dropbox-logo.svg",revision:"e6be408c77cf9c82d41ac64fa854280a"},{url:"images/github-logo.svg",revision:"a1a999b69a275eac0cb918360ac05ae1"},{url:"images/gitlab-logo.svg",revision:"0faea8c818899e58533e153c44b10517"},{url:"images/trello-logo.svg",revision:"006fd0d7d70d7e95dc691674cb12e044"},{url:"images/osa_drive-harddisk.png",revision:"b954e1ae772087c5b4c6ae797e1f9649"},{url:"images/osa_database.png",revision:"c350d9d9b95f37b6cfe798b40ede5fb0"},{url:"images/google-drive-logo-white.svg",revision:"f329d8b1be7778515a85b93fc35d9f26"},{url:"images/dropbox-logo-white.svg",revision:"4ea8299ac3bc31a16f199ee3aec223bf"},{url:"images/onedrive-logo-white.svg",revision:"b3602fa0fc947009cff3f33a581cff4d"},{url:"images/github-logo-white.svg",revision:"537b1127b3ca0f95b45782d1304fb77a"},{url:"images/gitlab-logo-white.svg",revision:"5fede9ac2f394c716b8c23e3fddc3910"},{url:"images/trello-logo-white-orange.svg",revision:"e2a0a52ba3766682f138138d10a75eb5"},{url:"images/logo-confluence.png",revision:"ed1e55d44ae5eba8f999aba2c93e8331"},{url:"images/logo-jira.png",revision:"f8d460555a0d1f87cfd901e940666629"},{url:"images/clear.gif",revision:"db13c778e4382e0b55258d0f811d5d70"},{url:"images/spin.gif",revision:"487cbb40b9ced439aa1ad914e816d773"},{url:"images/checkmark.gif",revision:"ba764ce62f2bf952df5bbc2bb4d381c5"},{url:"images/hs.png",revision:"fefa1a03d92ebad25c88dca94a0b63db"},{url:"images/aui-wait.gif",revision:"5a474bcbd8d2f2826f03d10ea44bf60e"},{url:"mxgraph/css/common.css",revision:"b5b7280ec98671bb6c3847a36bc7ea12"},{url:"mxgraph/images/expanded.gif",revision:"2b67c2c035af1e9a5cc814f0d22074cf"},{url:"mxgraph/images/collapsed.gif",revision:"73cc826da002a3d740ca4ce6ec5c1f4a"},{url:"mxgraph/images/maximize.gif",revision:"5cd13d6925493ab51e876694cc1c2ec2"},{url:"mxgraph/images/minimize.gif",revision:"8957741b9b0f86af9438775f2aadbb54"},{url:"mxgraph/images/close.gif",revision:"8b84669812ac7382984fca35de8da48b"},{url:"mxgraph/images/resize.gif",revision:"a6477612b3567a34033f9cac6184eed3"},{url:"mxgraph/images/separator.gif",revision:"7819742ff106c97da7a801c2372bbbe5"},{url:"mxgraph/images/window.gif",revision:"fd9a21dd4181f98052a202a0a01f18ab"},{url:"mxgraph/images/window-title.gif",revision:"3fb1d6c43246cdf991a11dfe826dfe99"},{url:"mxgraph/images/button.gif",revision:"00759bdc3ad218fa739f584369541809"},{url:"mxgraph/images/point.gif",revision:"83a43717b284902442620f61bc4e9fa6"}],{ignoreURLParametersMatching:[/.*/]})}));
//# sourceMappingURL=service-worker.js.map
diff --git a/src/main/webapp/service-worker.js.map b/src/main/webapp/service-worker.js.map
index 38cc0ba3..443738c6 100644
--- a/src/main/webapp/service-worker.js.map
+++ b/src/main/webapp/service-worker.js.map
@@ -1 +1 @@
-{"version":3,"file":"service-worker.js","sources":["../../../../../../../tmp/c5a6257dfa046ea33c8eeb411eb8bc46/service-worker.js"],"sourcesContent":["import {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/opt/hostedtoolcache/node/14.18.3/x64/lib/node_modules/workbox-cli/node_modules/workbox-precaching/precacheAndRoute.mjs';/**\n * Welcome to your Workbox-powered service worker!\n *\n * You'll need to register this file in your web app.\n * See https://goo.gl/nhQhGp\n *\n * The rest of the code is auto-generated. Please don't update this file\n * directly; instead, make changes to your Workbox build configuration\n * and re-run your build process.\n * See https://goo.gl/2aRDsh\n */\n\n\n\n\n\n\n\n\nself.addEventListener('message', (event) => {\n if (event.data && event.data.type === 'SKIP_WAITING') {\n self.skipWaiting();\n }\n});\n\n\n\n\n/**\n * The precacheAndRoute() method efficiently caches and responds to\n * requests for URLs in the manifest.\n * See https://goo.gl/S9QRab\n */\nworkbox_precaching_precacheAndRoute([\n {\n \"url\": \"js/app.min.js\",\n \"revision\": \"41af4466cb1fbaafc9e44971dc52b78e\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"5f96202f6da7fac09289ee6738d036b9\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"7a7bde0d8b6615eee4ebd215d2b9d761\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"93cb7d82e382a16b54eb307374b1b760\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"9d98c920695f6c3395da4b68f723e60a\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"22181f53eb2ba790e681cec8e223218d\"\n },\n {\n \"url\": \"open.html\",\n \"revision\": \"d71816b3b00e769fc6019fcdd6921662\"\n },\n {\n \"url\": \"styles/fonts/ArchitectsDaughter-Regular.ttf\",\n \"revision\": \"31c2153c0530e32553b31a49b3d70736\"\n },\n {\n \"url\": \"styles/grapheditor.css\",\n \"revision\": \"748da0cd0a068a52eac70ee2b2c194fe\"\n },\n {\n \"url\": \"styles/atlas.css\",\n \"revision\": \"e8152cda9233d3a3af017422993abfce\"\n },\n {\n \"url\": \"styles/dark.css\",\n \"revision\": \"3179f617dd02efd2cefeb8c06f965880\"\n },\n {\n \"url\": \"js/dropbox/Dropbox-sdk.min.js\",\n \"revision\": \"4b9842892aa37b156db0a8364b7a83b0\"\n },\n {\n \"url\": \"js/onedrive/OneDrive.js\",\n \"revision\": \"505e8280346666f7ee801bc59521fa67\"\n },\n {\n \"url\": \"js/viewer-static.min.js\",\n \"revision\": \"097239f8adc7e34f483e2487a46fea32\"\n },\n {\n \"url\": \"connect/jira/editor-1-3-3.html\",\n \"revision\": \"a2b0e7267a08a838f3cc404eba831ec0\"\n },\n {\n \"url\": \"connect/jira/viewerPanel-1-3-12.html\",\n \"revision\": \"2ce6e99d95113e9ca6b24343cea202e0\"\n },\n {\n \"url\": \"connect/jira/fullScreenViewer-1-3-3.html\",\n \"revision\": \"ba7ece2dfb2833b72f97280d7092f25e\"\n },\n {\n \"url\": \"connect/jira/viewerPanel.js\",\n \"revision\": \"6e9412c359a21b86dc7c5128bf6208d4\"\n },\n {\n \"url\": \"connect/jira/spinner.gif\",\n \"revision\": \"7d857ab9d86123e93d74d48e958fe743\"\n },\n {\n \"url\": \"connect/jira/editor.js\",\n \"revision\": \"01caa325f3ad3f6565e0b4228907fb63\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer-init.js\",\n \"revision\": \"197ed5837ed27992688fc424699a9a78\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer.js\",\n \"revision\": \"4e0775a6c156a803e777870623ac7c3e\"\n },\n {\n \"url\": \"plugins/connectJira.js\",\n \"revision\": \"4cefa13414e0d406550f3c073923080c\"\n },\n {\n \"url\": \"plugins/cConf-comments.js\",\n \"revision\": \"c787357209cff2986dcca567b599e2ef\"\n },\n {\n \"url\": \"plugins/cConf-1-4-8.js\",\n \"revision\": \"d7577d8f21716423852c343f027c4c27\"\n },\n {\n \"url\": \"connect/confluence/connectUtils-1-4-8.js\",\n \"revision\": \"48769b97cbeb80d0d3fba95360c9c562\"\n },\n {\n \"url\": \"connect/new_common/cac.js\",\n \"revision\": \"3d8c436c566db645fb1e6e6ba9f69bbc\"\n },\n {\n \"url\": \"connect/gdrive_common/gac.js\",\n \"revision\": \"38f1df3ecc4d78290493f47e62202138\"\n },\n {\n \"url\": \"connect/onedrive_common/ac.js\",\n \"revision\": \"887d3ac605a7bb297067537e7c1f5686\"\n },\n {\n \"url\": \"connect/confluence/viewer-init.js\",\n \"revision\": \"4a60c6c805cab7bc782f1e52f7818d9f\"\n },\n {\n \"url\": \"connect/confluence/viewer.js\",\n \"revision\": \"d025b0929817299fa154f273525aa0ec\"\n },\n {\n \"url\": \"connect/confluence/viewer-1-4-42.html\",\n \"revision\": \"c7b38b3af4eb7a58ab6dc4791216530e\"\n },\n {\n \"url\": \"connect/confluence/macroEditor-1-4-8.html\",\n \"revision\": \"8cd74a2fb60bf2e3e86026d66107cf11\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram-1-4-8.js\",\n \"revision\": \"8b670f4b6ccde55358851da705ae884f\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram.html\",\n \"revision\": \"c03c89622d22227313645900af4e3c3d\"\n },\n {\n \"url\": \"connect/confluence/macro-editor.js\",\n \"revision\": \"e273a48b8e81faac4530bf1a68d75aa0\"\n },\n {\n \"url\": \"math/MathJax.js\",\n \"revision\": \"b2c103388b71bb3d11cbf9aa45fe9b68\"\n },\n {\n \"url\": \"math/config/TeX-MML-AM_SVG-full.js\",\n \"revision\": \"d5cb8ac04050983170ae4af145bc66ff\"\n },\n {\n \"url\": \"math/jax/output/SVG/fonts/TeX/fontdata.js\",\n \"revision\": \"495e5a410955d1b6178870e605890ede\"\n },\n {\n \"url\": \"math/jax/element/mml/optable/BasicLatin.js\",\n \"revision\": \"cac9b2e71382e62270baa55fab07cc13\"\n },\n {\n \"url\": \"math/jax/output/SVG/fonts/TeX/Size2/Regular/Main.js\",\n \"revision\": \"e3e5e4d5924beed29f0844550b5c8f46\"\n },\n {\n \"url\": \"math/jax/output/SVG/fonts/TeX/Main/Regular/LetterlikeSymbols.js\",\n \"revision\": \"0767cbad7275b53da128e7e5e1109f7c\"\n },\n {\n \"url\": \"math/jax/output/SVG/fonts/TeX/Main/Regular/GreekAndCoptic.js\",\n \"revision\": \"346302a5c5ee00e01c302148c56dbfe3\"\n },\n {\n \"url\": \"resources/dia.txt\",\n \"revision\": \"2d1a381fcc4cff55487c6647efedf6de\"\n },\n {\n \"url\": \"resources/dia_am.txt\",\n \"revision\": \"de8965e0b14a200a24503b5d6d8fa40f\"\n },\n {\n \"url\": \"resources/dia_ar.txt\",\n \"revision\": \"d05cc111ac6bec52f40d5a9dd0f87038\"\n },\n {\n \"url\": \"resources/dia_bg.txt\",\n \"revision\": \"07a48a0f0710d06b67c8416a43c82abd\"\n },\n {\n \"url\": \"resources/dia_bn.txt\",\n \"revision\": \"eca376cf5d386ae7bf355320642718e6\"\n },\n {\n \"url\": \"resources/dia_bs.txt\",\n \"revision\": \"3eb3fcbe2631df0bd1265f74c8bc4ac7\"\n },\n {\n \"url\": \"resources/dia_ca.txt\",\n \"revision\": \"3ff92c0ce52f691f22cbaba5be40339b\"\n },\n {\n \"url\": \"resources/dia_cs.txt\",\n \"revision\": \"e0d135b6489371a8001550991844d912\"\n },\n {\n \"url\": \"resources/dia_da.txt\",\n \"revision\": \"e87b4847cb15ce4bae1dc34d3d66bd88\"\n },\n {\n \"url\": \"resources/dia_de.txt\",\n \"revision\": \"157e8d3c212296e10910157fd89a4df2\"\n },\n {\n \"url\": \"resources/dia_el.txt\",\n \"revision\": \"f2c8598a67914dc2c65416c7ab8c5ce2\"\n },\n {\n \"url\": \"resources/dia_eo.txt\",\n \"revision\": \"3774f7d616de9a25f44666a3bacfb3d3\"\n },\n {\n \"url\": \"resources/dia_es.txt\",\n \"revision\": \"11b83ee5fafe02125077def3a2a45156\"\n },\n {\n \"url\": \"resources/dia_et.txt\",\n \"revision\": \"ca8d60c90fb73a6d254ad526bcd6425d\"\n },\n {\n \"url\": \"resources/dia_eu.txt\",\n \"revision\": \"db60b7b22159aca2cf0d44c709cdffe7\"\n },\n {\n \"url\": \"resources/dia_fa.txt\",\n \"revision\": \"290cec7d5744b28cce85a9d148315ee7\"\n },\n {\n \"url\": \"resources/dia_fi.txt\",\n \"revision\": \"0246ab13e72267e2ec8f563159d3f053\"\n },\n {\n \"url\": \"resources/dia_fil.txt\",\n \"revision\": \"76a53d7209a44884d672b1d2fa15fba9\"\n },\n {\n \"url\": \"resources/dia_fr.txt\",\n \"revision\": \"95e0e458be00a700398c3754518f4044\"\n },\n {\n \"url\": \"resources/dia_gl.txt\",\n \"revision\": \"20186b103bdec339b042697645fb0bd2\"\n },\n {\n \"url\": \"resources/dia_gu.txt\",\n \"revision\": \"8a92bbfc1933a9e7fcfe28a9bf7b9b00\"\n },\n {\n \"url\": \"resources/dia_he.txt\",\n \"revision\": \"844f74dfbf52588aac9b2f3863439ce6\"\n },\n {\n \"url\": \"resources/dia_hi.txt\",\n \"revision\": \"6b8b6f55d83f0339591c1f219bd2e290\"\n },\n {\n \"url\": \"resources/dia_hr.txt\",\n \"revision\": \"f02c352eb31dee6f083aba1730f7bea7\"\n },\n {\n \"url\": \"resources/dia_hu.txt\",\n \"revision\": \"c3b3ca19d942bdec30c0efbb013885b7\"\n },\n {\n \"url\": \"resources/dia_id.txt\",\n \"revision\": \"3018232f8bd11cdeb117e2a612e4a503\"\n },\n {\n \"url\": \"resources/dia_it.txt\",\n \"revision\": \"8646353feb6aae64a80b954c0f9d3684\"\n },\n {\n \"url\": \"resources/dia_ja.txt\",\n \"revision\": \"b61f27fb2665297f6020c56f7a6ecaa8\"\n },\n {\n \"url\": \"resources/dia_kn.txt\",\n \"revision\": \"5c7a4a9d95cf4d4d7ef155eb54d72513\"\n },\n {\n \"url\": \"resources/dia_ko.txt\",\n \"revision\": \"0aa329ae4fdb62d187e12c2069bc95b1\"\n },\n {\n \"url\": \"resources/dia_lt.txt\",\n \"revision\": \"310ad0092e511889fd01ece4424bb323\"\n },\n {\n \"url\": \"resources/dia_lv.txt\",\n \"revision\": \"912c0e99aa02b94bb7fdd058c807a383\"\n },\n {\n \"url\": \"resources/dia_ml.txt\",\n \"revision\": \"5c4ed1edc68803c275f59cb6879a7112\"\n },\n {\n \"url\": \"resources/dia_mr.txt\",\n \"revision\": \"577ee6d3d28c1c94b433c12929810bc5\"\n },\n {\n \"url\": \"resources/dia_ms.txt\",\n \"revision\": \"ba5f7cef8703ee7a6d6e2b15d9bb2ce5\"\n },\n {\n \"url\": \"resources/dia_my.txt\",\n \"revision\": \"2d1a381fcc4cff55487c6647efedf6de\"\n },\n {\n \"url\": \"resources/dia_nl.txt\",\n \"revision\": \"091c04518d5ddf6e5c0a8b070a517208\"\n },\n {\n \"url\": \"resources/dia_no.txt\",\n \"revision\": \"7636c260d2f66aaa6e06fbde8d736c44\"\n },\n {\n \"url\": \"resources/dia_pl.txt\",\n \"revision\": \"cdfb2e07d87fcbcba9a922a9c875d2f7\"\n },\n {\n \"url\": \"resources/dia_pt-br.txt\",\n \"revision\": \"628d4747e428527edcfc147ac0cb5200\"\n },\n {\n \"url\": \"resources/dia_pt.txt\",\n \"revision\": \"e7a6e66aeb8ab969bd75be2aeba08807\"\n },\n {\n \"url\": \"resources/dia_ro.txt\",\n \"revision\": \"2f9c2135656bb37810f10e4c509f9d2b\"\n },\n {\n \"url\": \"resources/dia_ru.txt\",\n \"revision\": \"a5bf0195a040128e0ba2b99cd08fbf6e\"\n },\n {\n \"url\": \"resources/dia_si.txt\",\n \"revision\": \"2d1a381fcc4cff55487c6647efedf6de\"\n },\n {\n \"url\": \"resources/dia_sk.txt\",\n \"revision\": \"76926b99f970f18198d8642e7e022e4f\"\n },\n {\n \"url\": \"resources/dia_sl.txt\",\n \"revision\": \"0764f1e7986f6425729d8c82080748af\"\n },\n {\n \"url\": \"resources/dia_sr.txt\",\n \"revision\": \"030231d3e4929a45f105c3dc7222b787\"\n },\n {\n \"url\": \"resources/dia_sv.txt\",\n \"revision\": \"aeded3e25bf42dcf70fd7293786cb091\"\n },\n {\n \"url\": \"resources/dia_sw.txt\",\n \"revision\": \"731789c9f34806a9cb686910fb3b7919\"\n },\n {\n \"url\": \"resources/dia_ta.txt\",\n \"revision\": \"d80cd510c2f15dc5fb0c5057584fcd6e\"\n },\n {\n \"url\": \"resources/dia_te.txt\",\n \"revision\": \"457769728267b87b24cdbbf40adbac5c\"\n },\n {\n \"url\": \"resources/dia_th.txt\",\n \"revision\": \"361fcb3f167c2b64f310a52a41855f9f\"\n },\n {\n \"url\": \"resources/dia_tr.txt\",\n \"revision\": \"3c4133fcf6f1ac357d237042549647a0\"\n },\n {\n \"url\": \"resources/dia_uk.txt\",\n \"revision\": \"015e2adbd98db8eb2e4eb52db63436d6\"\n },\n {\n \"url\": \"resources/dia_vi.txt\",\n \"revision\": \"214984d7072d1bfd9c19eb5ed2c0a5f1\"\n },\n {\n \"url\": \"resources/dia_zh-tw.txt\",\n \"revision\": \"52efef0f0e0daacc72f260cb1493752a\"\n },\n {\n \"url\": \"resources/dia_zh.txt\",\n \"revision\": \"a4eb062bae9361954b50a50b3418cfe3\"\n },\n {\n \"url\": \"favicon.ico\",\n \"revision\": \"fab2d88b37c72d83607527573de45281\"\n },\n {\n \"url\": \"images/manifest.json\",\n \"revision\": \"c6236bde53ed79aaaec60a1aca8ee2ef\"\n },\n {\n \"url\": \"images/logo.png\",\n \"revision\": \"89630b64b911ebe0daa3dfe442087cfa\"\n },\n {\n \"url\": \"images/drawlogo.svg\",\n \"revision\": \"4bf4d14ebcf072d8bd4c5a1c89e88fc6\"\n },\n {\n \"url\": \"images/drawlogo48.png\",\n \"revision\": \"8b13428373aca67b895364d025f42417\"\n },\n {\n \"url\": \"images/drawlogo-gray.svg\",\n \"revision\": \"0aabacbc0873816e1e09e4736ae44c7d\"\n },\n {\n \"url\": \"images/drawlogo-text-bottom.svg\",\n \"revision\": \"f6c438823ab31f290940bd4feb8dd9c2\"\n },\n {\n \"url\": \"images/default-user.jpg\",\n \"revision\": \"2c399696a87c8921f12d2f9e1990cc6e\"\n },\n {\n \"url\": \"images/logo-flat-small.png\",\n \"revision\": \"4b178e59ff499d6dd1894fc498b59877\"\n },\n {\n \"url\": \"images/apple-touch-icon.png\",\n \"revision\": \"73da7989a23ce9a4be565ec65658a239\"\n },\n {\n \"url\": \"images/favicon-16x16.png\",\n \"revision\": \"1a79d5461a5d2bf21f6652e0ac20d6e5\"\n },\n {\n \"url\": \"images/favicon-32x32.png\",\n \"revision\": \"e3b92da2febe70bad5372f6f3474b034\"\n },\n {\n \"url\": \"images/android-chrome-196x196.png\",\n \"revision\": \"f8c045b2d7b1c719fda64edab04c415c\"\n },\n {\n \"url\": \"images/android-chrome-512x512.png\",\n \"revision\": \"959b5fac2453963ff6d60fb85e4b73fd\"\n },\n {\n \"url\": \"images/delete.png\",\n \"revision\": \"5f2350f2fd20f1a229637aed32ed8f29\"\n },\n {\n \"url\": \"images/droptarget.png\",\n \"revision\": \"bbf7f563fb6784de1ce96f329519b043\"\n },\n {\n \"url\": \"images/help.png\",\n \"revision\": \"9266c6c3915bd33c243d80037d37bf61\"\n },\n {\n \"url\": \"images/download.png\",\n \"revision\": \"35418dd7bd48d87502c71b578cc6c37f\"\n },\n {\n \"url\": \"images/logo-flat.png\",\n \"revision\": \"038070ab43aee6e54a791211859fc67b\"\n },\n {\n \"url\": \"images/google-drive-logo.svg\",\n \"revision\": \"5d9f2f5bbc7dcc252730a0072bb23059\"\n },\n {\n \"url\": \"images/onedrive-logo.svg\",\n \"revision\": \"3645b344ec0634c1290dd58d7dc87b97\"\n },\n {\n \"url\": \"images/dropbox-logo.svg\",\n \"revision\": \"e6be408c77cf9c82d41ac64fa854280a\"\n },\n {\n \"url\": \"images/github-logo.svg\",\n \"revision\": \"a1a999b69a275eac0cb918360ac05ae1\"\n },\n {\n \"url\": \"images/gitlab-logo.svg\",\n \"revision\": \"0faea8c818899e58533e153c44b10517\"\n },\n {\n \"url\": \"images/trello-logo.svg\",\n \"revision\": \"006fd0d7d70d7e95dc691674cb12e044\"\n },\n {\n \"url\": \"images/osa_drive-harddisk.png\",\n \"revision\": \"b954e1ae772087c5b4c6ae797e1f9649\"\n },\n {\n \"url\": \"images/osa_database.png\",\n \"revision\": \"c350d9d9b95f37b6cfe798b40ede5fb0\"\n },\n {\n \"url\": \"images/google-drive-logo-white.svg\",\n \"revision\": \"f329d8b1be7778515a85b93fc35d9f26\"\n },\n {\n \"url\": \"images/dropbox-logo-white.svg\",\n \"revision\": \"4ea8299ac3bc31a16f199ee3aec223bf\"\n },\n {\n \"url\": \"images/onedrive-logo-white.svg\",\n \"revision\": \"b3602fa0fc947009cff3f33a581cff4d\"\n },\n {\n \"url\": \"images/github-logo-white.svg\",\n \"revision\": \"537b1127b3ca0f95b45782d1304fb77a\"\n },\n {\n \"url\": \"images/gitlab-logo-white.svg\",\n \"revision\": \"5fede9ac2f394c716b8c23e3fddc3910\"\n },\n {\n \"url\": \"images/trello-logo-white-orange.svg\",\n \"revision\": \"e2a0a52ba3766682f138138d10a75eb5\"\n },\n {\n \"url\": \"images/logo-confluence.png\",\n \"revision\": \"ed1e55d44ae5eba8f999aba2c93e8331\"\n },\n {\n \"url\": \"images/logo-jira.png\",\n \"revision\": \"f8d460555a0d1f87cfd901e940666629\"\n },\n {\n \"url\": \"images/clear.gif\",\n \"revision\": \"db13c778e4382e0b55258d0f811d5d70\"\n },\n {\n \"url\": \"images/spin.gif\",\n \"revision\": \"487cbb40b9ced439aa1ad914e816d773\"\n },\n {\n \"url\": \"images/checkmark.gif\",\n \"revision\": \"ba764ce62f2bf952df5bbc2bb4d381c5\"\n },\n {\n \"url\": \"images/hs.png\",\n \"revision\": \"fefa1a03d92ebad25c88dca94a0b63db\"\n },\n {\n \"url\": \"images/aui-wait.gif\",\n \"revision\": \"5a474bcbd8d2f2826f03d10ea44bf60e\"\n },\n {\n \"url\": \"mxgraph/css/common.css\",\n \"revision\": \"b5b7280ec98671bb6c3847a36bc7ea12\"\n },\n {\n \"url\": \"mxgraph/images/expanded.gif\",\n \"revision\": \"2b67c2c035af1e9a5cc814f0d22074cf\"\n },\n {\n \"url\": \"mxgraph/images/collapsed.gif\",\n \"revision\": \"73cc826da002a3d740ca4ce6ec5c1f4a\"\n },\n {\n \"url\": \"mxgraph/images/maximize.gif\",\n \"revision\": \"5cd13d6925493ab51e876694cc1c2ec2\"\n },\n {\n \"url\": \"mxgraph/images/minimize.gif\",\n \"revision\": \"8957741b9b0f86af9438775f2aadbb54\"\n },\n {\n \"url\": \"mxgraph/images/close.gif\",\n \"revision\": \"8b84669812ac7382984fca35de8da48b\"\n },\n {\n \"url\": \"mxgraph/images/resize.gif\",\n \"revision\": \"a6477612b3567a34033f9cac6184eed3\"\n },\n {\n \"url\": \"mxgraph/images/separator.gif\",\n \"revision\": \"7819742ff106c97da7a801c2372bbbe5\"\n },\n {\n \"url\": \"mxgraph/images/window.gif\",\n \"revision\": \"fd9a21dd4181f98052a202a0a01f18ab\"\n },\n {\n \"url\": \"mxgraph/images/window-title.gif\",\n \"revision\": \"3fb1d6c43246cdf991a11dfe826dfe99\"\n },\n {\n \"url\": \"mxgraph/images/button.gif\",\n \"revision\": \"00759bdc3ad218fa739f584369541809\"\n },\n {\n \"url\": \"mxgraph/images/point.gif\",\n \"revision\": \"83a43717b284902442620f61bc4e9fa6\"\n }\n], {\n \"ignoreURLParametersMatching\": [/.*/]\n});\n\n\n\n\n\n\n\n\n"],"names":["self","addEventListener","event","data","type","skipWaiting"],"mappings":"szBAmBAA,KAAKC,iBAAiB,WAAYC,IAC5BA,EAAMC,MAA4B,iBAApBD,EAAMC,KAAKC,MAC3BJ,KAAKK,oCAY2B,CAClC,KACS,yBACK,oCAEd,KACS,gCACK,oCAEd,KACS,8BACK,oCAEd,KACS,mCACK,oCAEd,KACS,4BACK,oCAEd,KACS,sBACK,oCAEd,KACS,qBACK,oCAEd,KACS,uDACK,oCAEd,KACS,kCACK,oCAEd,KACS,4BACK,oCAEd,KACS,2BACK,oCAEd,KACS,yCACK,oCAEd,KACS,mCACK,oCAEd,KACS,mCACK,oCAEd,KACS,0CACK,oCAEd,KACS,gDACK,oCAEd,KACS,oDACK,oCAEd,KACS,uCACK,oCAEd,KACS,oCACK,oCAEd,KACS,kCACK,oCAEd,KACS,kDACK,oCAEd,KACS,6CACK,oCAEd,KACS,kCACK,oCAEd,KACS,qCACK,oCAEd,KACS,kCACK,oCAEd,KACS,oDACK,oCAEd,KACS,qCACK,oCAEd,KACS,wCACK,oCAEd,KACS,yCACK,oCAEd,KACS,6CACK,oCAEd,KACS,wCACK,oCAEd,KACS,iDACK,oCAEd,KACS,qDACK,oCAEd,KACS,sDACK,oCAEd,KACS,kDACK,oCAEd,KACS,8CACK,oCAEd,KACS,2BACK,oCAEd,KACS,8CACK,oCAEd,KACS,qDACK,oCAEd,KACS,sDACK,oCAEd,KACS,+DACK,oCAEd,KACS,2EACK,oCAEd,KACS,wEACK,oCAEd,KACS,6BACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,iCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,mCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,mCACK,oCAEd,KACS,gCACK,oCAEd,KACS,uBACK,oCAEd,KACS,gCACK,oCAEd,KACS,2BACK,oCAEd,KACS,+BACK,oCAEd,KACS,iCACK,oCAEd,KACS,oCACK,oCAEd,KACS,2CACK,oCAEd,KACS,mCACK,oCAEd,KACS,sCACK,oCAEd,KACS,uCACK,oCAEd,KACS,oCACK,oCAEd,KACS,oCACK,oCAEd,KACS,6CACK,oCAEd,KACS,6CACK,oCAEd,KACS,6BACK,oCAEd,KACS,iCACK,oCAEd,KACS,2BACK,oCAEd,KACS,+BACK,oCAEd,KACS,gCACK,oCAEd,KACS,wCACK,oCAEd,KACS,oCACK,oCAEd,KACS,mCACK,oCAEd,KACS,kCACK,oCAEd,KACS,kCACK,oCAEd,KACS,kCACK,oCAEd,KACS,yCACK,oCAEd,KACS,mCACK,oCAEd,KACS,8CACK,oCAEd,KACS,yCACK,oCAEd,KACS,0CACK,oCAEd,KACS,wCACK,oCAEd,KACS,wCACK,oCAEd,KACS,+CACK,oCAEd,KACS,sCACK,oCAEd,KACS,gCACK,oCAEd,KACS,4BACK,oCAEd,KACS,2BACK,oCAEd,KACS,gCACK,oCAEd,KACS,yBACK,oCAEd,KACS,+BACK,oCAEd,KACS,kCACK,oCAEd,KACS,uCACK,oCAEd,KACS,wCACK,oCAEd,KACS,uCACK,oCAEd,KACS,uCACK,oCAEd,KACS,oCACK,oCAEd,KACS,qCACK,oCAEd,KACS,wCACK,oCAEd,KACS,qCACK,oCAEd,KACS,2CACK,oCAEd,KACS,qCACK,oCAEd,KACS,oCACK,qCAEb,6BAC8B,CAAC"} \ No newline at end of file
+{"version":3,"file":"service-worker.js","sources":["../../../../../../../tmp/ff148a33efe209262f067cec0fb6eff8/service-worker.js"],"sourcesContent":["import {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/opt/hostedtoolcache/node/14.18.3/x64/lib/node_modules/workbox-cli/node_modules/workbox-precaching/precacheAndRoute.mjs';/**\n * Welcome to your Workbox-powered service worker!\n *\n * You'll need to register this file in your web app.\n * See https://goo.gl/nhQhGp\n *\n * The rest of the code is auto-generated. Please don't update this file\n * directly; instead, make changes to your Workbox build configuration\n * and re-run your build process.\n * See https://goo.gl/2aRDsh\n */\n\n\n\n\n\n\n\n\nself.addEventListener('message', (event) => {\n if (event.data && event.data.type === 'SKIP_WAITING') {\n self.skipWaiting();\n }\n});\n\n\n\n\n/**\n * The precacheAndRoute() method efficiently caches and responds to\n * requests for URLs in the manifest.\n * See https://goo.gl/S9QRab\n */\nworkbox_precaching_precacheAndRoute([\n {\n \"url\": \"js/app.min.js\",\n \"revision\": \"d2e50c8eccc95bb414b0f2e58f3da082\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"5f96202f6da7fac09289ee6738d036b9\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"7a7bde0d8b6615eee4ebd215d2b9d761\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"93cb7d82e382a16b54eb307374b1b760\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"9d98c920695f6c3395da4b68f723e60a\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"22181f53eb2ba790e681cec8e223218d\"\n },\n {\n \"url\": \"open.html\",\n \"revision\": \"d71816b3b00e769fc6019fcdd6921662\"\n },\n {\n \"url\": \"styles/fonts/ArchitectsDaughter-Regular.ttf\",\n \"revision\": \"31c2153c0530e32553b31a49b3d70736\"\n },\n {\n \"url\": \"styles/grapheditor.css\",\n \"revision\": \"748da0cd0a068a52eac70ee2b2c194fe\"\n },\n {\n \"url\": \"styles/atlas.css\",\n \"revision\": \"e8152cda9233d3a3af017422993abfce\"\n },\n {\n \"url\": \"styles/dark.css\",\n \"revision\": \"3179f617dd02efd2cefeb8c06f965880\"\n },\n {\n \"url\": \"js/dropbox/Dropbox-sdk.min.js\",\n \"revision\": \"4b9842892aa37b156db0a8364b7a83b0\"\n },\n {\n \"url\": \"js/onedrive/OneDrive.js\",\n \"revision\": \"505e8280346666f7ee801bc59521fa67\"\n },\n {\n \"url\": \"js/viewer-static.min.js\",\n \"revision\": \"5f0398c8427ca690f6497d99184f298a\"\n },\n {\n \"url\": \"connect/jira/editor-1-3-3.html\",\n \"revision\": \"a2b0e7267a08a838f3cc404eba831ec0\"\n },\n {\n \"url\": \"connect/jira/viewerPanel-1-3-12.html\",\n \"revision\": \"2ce6e99d95113e9ca6b24343cea202e0\"\n },\n {\n \"url\": \"connect/jira/fullScreenViewer-1-3-3.html\",\n \"revision\": \"ba7ece2dfb2833b72f97280d7092f25e\"\n },\n {\n \"url\": \"connect/jira/viewerPanel.js\",\n \"revision\": \"6e9412c359a21b86dc7c5128bf6208d4\"\n },\n {\n \"url\": \"connect/jira/spinner.gif\",\n \"revision\": \"7d857ab9d86123e93d74d48e958fe743\"\n },\n {\n \"url\": \"connect/jira/editor.js\",\n \"revision\": \"01caa325f3ad3f6565e0b4228907fb63\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer-init.js\",\n \"revision\": \"197ed5837ed27992688fc424699a9a78\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer.js\",\n \"revision\": \"4e0775a6c156a803e777870623ac7c3e\"\n },\n {\n \"url\": \"plugins/connectJira.js\",\n \"revision\": \"4cefa13414e0d406550f3c073923080c\"\n },\n {\n \"url\": \"plugins/cConf-comments.js\",\n \"revision\": \"c787357209cff2986dcca567b599e2ef\"\n },\n {\n \"url\": \"plugins/cConf-1-4-8.js\",\n \"revision\": \"d7577d8f21716423852c343f027c4c27\"\n },\n {\n \"url\": \"connect/confluence/connectUtils-1-4-8.js\",\n \"revision\": \"48769b97cbeb80d0d3fba95360c9c562\"\n },\n {\n \"url\": \"connect/new_common/cac.js\",\n \"revision\": \"3d8c436c566db645fb1e6e6ba9f69bbc\"\n },\n {\n \"url\": \"connect/gdrive_common/gac.js\",\n \"revision\": \"38f1df3ecc4d78290493f47e62202138\"\n },\n {\n \"url\": \"connect/onedrive_common/ac.js\",\n \"revision\": \"887d3ac605a7bb297067537e7c1f5686\"\n },\n {\n \"url\": \"connect/confluence/viewer-init.js\",\n \"revision\": \"4a60c6c805cab7bc782f1e52f7818d9f\"\n },\n {\n \"url\": \"connect/confluence/viewer.js\",\n \"revision\": \"d025b0929817299fa154f273525aa0ec\"\n },\n {\n \"url\": \"connect/confluence/viewer-1-4-42.html\",\n \"revision\": \"c7b38b3af4eb7a58ab6dc4791216530e\"\n },\n {\n \"url\": \"connect/confluence/macroEditor-1-4-8.html\",\n \"revision\": \"8cd74a2fb60bf2e3e86026d66107cf11\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram-1-4-8.js\",\n \"revision\": \"8b670f4b6ccde55358851da705ae884f\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram.html\",\n \"revision\": \"c03c89622d22227313645900af4e3c3d\"\n },\n {\n \"url\": \"connect/confluence/macro-editor.js\",\n \"revision\": \"e273a48b8e81faac4530bf1a68d75aa0\"\n },\n {\n \"url\": \"math/MathJax.js\",\n \"revision\": \"b2c103388b71bb3d11cbf9aa45fe9b68\"\n },\n {\n \"url\": \"math/config/TeX-MML-AM_SVG-full.js\",\n \"revision\": \"d5cb8ac04050983170ae4af145bc66ff\"\n },\n {\n \"url\": \"math/jax/output/SVG/fonts/TeX/fontdata.js\",\n \"revision\": \"495e5a410955d1b6178870e605890ede\"\n },\n {\n \"url\": \"math/jax/element/mml/optable/BasicLatin.js\",\n \"revision\": \"cac9b2e71382e62270baa55fab07cc13\"\n },\n {\n \"url\": \"math/jax/output/SVG/fonts/TeX/Size2/Regular/Main.js\",\n \"revision\": \"e3e5e4d5924beed29f0844550b5c8f46\"\n },\n {\n \"url\": \"math/jax/output/SVG/fonts/TeX/Main/Regular/LetterlikeSymbols.js\",\n \"revision\": \"0767cbad7275b53da128e7e5e1109f7c\"\n },\n {\n \"url\": \"math/jax/output/SVG/fonts/TeX/Main/Regular/GreekAndCoptic.js\",\n \"revision\": \"346302a5c5ee00e01c302148c56dbfe3\"\n },\n {\n \"url\": \"resources/dia.txt\",\n \"revision\": \"2d1a381fcc4cff55487c6647efedf6de\"\n },\n {\n \"url\": \"resources/dia_am.txt\",\n \"revision\": \"de8965e0b14a200a24503b5d6d8fa40f\"\n },\n {\n \"url\": \"resources/dia_ar.txt\",\n \"revision\": \"d05cc111ac6bec52f40d5a9dd0f87038\"\n },\n {\n \"url\": \"resources/dia_bg.txt\",\n \"revision\": \"07a48a0f0710d06b67c8416a43c82abd\"\n },\n {\n \"url\": \"resources/dia_bn.txt\",\n \"revision\": \"eca376cf5d386ae7bf355320642718e6\"\n },\n {\n \"url\": \"resources/dia_bs.txt\",\n \"revision\": \"3eb3fcbe2631df0bd1265f74c8bc4ac7\"\n },\n {\n \"url\": \"resources/dia_ca.txt\",\n \"revision\": \"3ff92c0ce52f691f22cbaba5be40339b\"\n },\n {\n \"url\": \"resources/dia_cs.txt\",\n \"revision\": \"e0d135b6489371a8001550991844d912\"\n },\n {\n \"url\": \"resources/dia_da.txt\",\n \"revision\": \"e87b4847cb15ce4bae1dc34d3d66bd88\"\n },\n {\n \"url\": \"resources/dia_de.txt\",\n \"revision\": \"157e8d3c212296e10910157fd89a4df2\"\n },\n {\n \"url\": \"resources/dia_el.txt\",\n \"revision\": \"f2c8598a67914dc2c65416c7ab8c5ce2\"\n },\n {\n \"url\": \"resources/dia_eo.txt\",\n \"revision\": \"3774f7d616de9a25f44666a3bacfb3d3\"\n },\n {\n \"url\": \"resources/dia_es.txt\",\n \"revision\": \"11b83ee5fafe02125077def3a2a45156\"\n },\n {\n \"url\": \"resources/dia_et.txt\",\n \"revision\": \"ca8d60c90fb73a6d254ad526bcd6425d\"\n },\n {\n \"url\": \"resources/dia_eu.txt\",\n \"revision\": \"db60b7b22159aca2cf0d44c709cdffe7\"\n },\n {\n \"url\": \"resources/dia_fa.txt\",\n \"revision\": \"290cec7d5744b28cce85a9d148315ee7\"\n },\n {\n \"url\": \"resources/dia_fi.txt\",\n \"revision\": \"0246ab13e72267e2ec8f563159d3f053\"\n },\n {\n \"url\": \"resources/dia_fil.txt\",\n \"revision\": \"76a53d7209a44884d672b1d2fa15fba9\"\n },\n {\n \"url\": \"resources/dia_fr.txt\",\n \"revision\": \"95e0e458be00a700398c3754518f4044\"\n },\n {\n \"url\": \"resources/dia_gl.txt\",\n \"revision\": \"20186b103bdec339b042697645fb0bd2\"\n },\n {\n \"url\": \"resources/dia_gu.txt\",\n \"revision\": \"8a92bbfc1933a9e7fcfe28a9bf7b9b00\"\n },\n {\n \"url\": \"resources/dia_he.txt\",\n \"revision\": \"844f74dfbf52588aac9b2f3863439ce6\"\n },\n {\n \"url\": \"resources/dia_hi.txt\",\n \"revision\": \"6b8b6f55d83f0339591c1f219bd2e290\"\n },\n {\n \"url\": \"resources/dia_hr.txt\",\n \"revision\": \"f02c352eb31dee6f083aba1730f7bea7\"\n },\n {\n \"url\": \"resources/dia_hu.txt\",\n \"revision\": \"c3b3ca19d942bdec30c0efbb013885b7\"\n },\n {\n \"url\": \"resources/dia_id.txt\",\n \"revision\": \"3018232f8bd11cdeb117e2a612e4a503\"\n },\n {\n \"url\": \"resources/dia_it.txt\",\n \"revision\": \"8646353feb6aae64a80b954c0f9d3684\"\n },\n {\n \"url\": \"resources/dia_ja.txt\",\n \"revision\": \"b61f27fb2665297f6020c56f7a6ecaa8\"\n },\n {\n \"url\": \"resources/dia_kn.txt\",\n \"revision\": \"5c7a4a9d95cf4d4d7ef155eb54d72513\"\n },\n {\n \"url\": \"resources/dia_ko.txt\",\n \"revision\": \"0aa329ae4fdb62d187e12c2069bc95b1\"\n },\n {\n \"url\": \"resources/dia_lt.txt\",\n \"revision\": \"310ad0092e511889fd01ece4424bb323\"\n },\n {\n \"url\": \"resources/dia_lv.txt\",\n \"revision\": \"912c0e99aa02b94bb7fdd058c807a383\"\n },\n {\n \"url\": \"resources/dia_ml.txt\",\n \"revision\": \"5c4ed1edc68803c275f59cb6879a7112\"\n },\n {\n \"url\": \"resources/dia_mr.txt\",\n \"revision\": \"577ee6d3d28c1c94b433c12929810bc5\"\n },\n {\n \"url\": \"resources/dia_ms.txt\",\n \"revision\": \"ba5f7cef8703ee7a6d6e2b15d9bb2ce5\"\n },\n {\n \"url\": \"resources/dia_my.txt\",\n \"revision\": \"2d1a381fcc4cff55487c6647efedf6de\"\n },\n {\n \"url\": \"resources/dia_nl.txt\",\n \"revision\": \"091c04518d5ddf6e5c0a8b070a517208\"\n },\n {\n \"url\": \"resources/dia_no.txt\",\n \"revision\": \"7636c260d2f66aaa6e06fbde8d736c44\"\n },\n {\n \"url\": \"resources/dia_pl.txt\",\n \"revision\": \"cdfb2e07d87fcbcba9a922a9c875d2f7\"\n },\n {\n \"url\": \"resources/dia_pt-br.txt\",\n \"revision\": \"628d4747e428527edcfc147ac0cb5200\"\n },\n {\n \"url\": \"resources/dia_pt.txt\",\n \"revision\": \"e7a6e66aeb8ab969bd75be2aeba08807\"\n },\n {\n \"url\": \"resources/dia_ro.txt\",\n \"revision\": \"2f9c2135656bb37810f10e4c509f9d2b\"\n },\n {\n \"url\": \"resources/dia_ru.txt\",\n \"revision\": \"a5bf0195a040128e0ba2b99cd08fbf6e\"\n },\n {\n \"url\": \"resources/dia_si.txt\",\n \"revision\": \"2d1a381fcc4cff55487c6647efedf6de\"\n },\n {\n \"url\": \"resources/dia_sk.txt\",\n \"revision\": \"76926b99f970f18198d8642e7e022e4f\"\n },\n {\n \"url\": \"resources/dia_sl.txt\",\n \"revision\": \"0764f1e7986f6425729d8c82080748af\"\n },\n {\n \"url\": \"resources/dia_sr.txt\",\n \"revision\": \"030231d3e4929a45f105c3dc7222b787\"\n },\n {\n \"url\": \"resources/dia_sv.txt\",\n \"revision\": \"aeded3e25bf42dcf70fd7293786cb091\"\n },\n {\n \"url\": \"resources/dia_sw.txt\",\n \"revision\": \"731789c9f34806a9cb686910fb3b7919\"\n },\n {\n \"url\": \"resources/dia_ta.txt\",\n \"revision\": \"d80cd510c2f15dc5fb0c5057584fcd6e\"\n },\n {\n \"url\": \"resources/dia_te.txt\",\n \"revision\": \"457769728267b87b24cdbbf40adbac5c\"\n },\n {\n \"url\": \"resources/dia_th.txt\",\n \"revision\": \"361fcb3f167c2b64f310a52a41855f9f\"\n },\n {\n \"url\": \"resources/dia_tr.txt\",\n \"revision\": \"3c4133fcf6f1ac357d237042549647a0\"\n },\n {\n \"url\": \"resources/dia_uk.txt\",\n \"revision\": \"015e2adbd98db8eb2e4eb52db63436d6\"\n },\n {\n \"url\": \"resources/dia_vi.txt\",\n \"revision\": \"214984d7072d1bfd9c19eb5ed2c0a5f1\"\n },\n {\n \"url\": \"resources/dia_zh-tw.txt\",\n \"revision\": \"52efef0f0e0daacc72f260cb1493752a\"\n },\n {\n \"url\": \"resources/dia_zh.txt\",\n \"revision\": \"a4eb062bae9361954b50a50b3418cfe3\"\n },\n {\n \"url\": \"favicon.ico\",\n \"revision\": \"fab2d88b37c72d83607527573de45281\"\n },\n {\n \"url\": \"images/manifest.json\",\n \"revision\": \"c6236bde53ed79aaaec60a1aca8ee2ef\"\n },\n {\n \"url\": \"images/logo.png\",\n \"revision\": \"89630b64b911ebe0daa3dfe442087cfa\"\n },\n {\n \"url\": \"images/drawlogo.svg\",\n \"revision\": \"4bf4d14ebcf072d8bd4c5a1c89e88fc6\"\n },\n {\n \"url\": \"images/drawlogo48.png\",\n \"revision\": \"8b13428373aca67b895364d025f42417\"\n },\n {\n \"url\": \"images/drawlogo-gray.svg\",\n \"revision\": \"0aabacbc0873816e1e09e4736ae44c7d\"\n },\n {\n \"url\": \"images/drawlogo-text-bottom.svg\",\n \"revision\": \"f6c438823ab31f290940bd4feb8dd9c2\"\n },\n {\n \"url\": \"images/default-user.jpg\",\n \"revision\": \"2c399696a87c8921f12d2f9e1990cc6e\"\n },\n {\n \"url\": \"images/logo-flat-small.png\",\n \"revision\": \"4b178e59ff499d6dd1894fc498b59877\"\n },\n {\n \"url\": \"images/apple-touch-icon.png\",\n \"revision\": \"73da7989a23ce9a4be565ec65658a239\"\n },\n {\n \"url\": \"images/favicon-16x16.png\",\n \"revision\": \"1a79d5461a5d2bf21f6652e0ac20d6e5\"\n },\n {\n \"url\": \"images/favicon-32x32.png\",\n \"revision\": \"e3b92da2febe70bad5372f6f3474b034\"\n },\n {\n \"url\": \"images/android-chrome-196x196.png\",\n \"revision\": \"f8c045b2d7b1c719fda64edab04c415c\"\n },\n {\n \"url\": \"images/android-chrome-512x512.png\",\n \"revision\": \"959b5fac2453963ff6d60fb85e4b73fd\"\n },\n {\n \"url\": \"images/delete.png\",\n \"revision\": \"5f2350f2fd20f1a229637aed32ed8f29\"\n },\n {\n \"url\": \"images/droptarget.png\",\n \"revision\": \"bbf7f563fb6784de1ce96f329519b043\"\n },\n {\n \"url\": \"images/help.png\",\n \"revision\": \"9266c6c3915bd33c243d80037d37bf61\"\n },\n {\n \"url\": \"images/download.png\",\n \"revision\": \"35418dd7bd48d87502c71b578cc6c37f\"\n },\n {\n \"url\": \"images/logo-flat.png\",\n \"revision\": \"038070ab43aee6e54a791211859fc67b\"\n },\n {\n \"url\": \"images/google-drive-logo.svg\",\n \"revision\": \"5d9f2f5bbc7dcc252730a0072bb23059\"\n },\n {\n \"url\": \"images/onedrive-logo.svg\",\n \"revision\": \"3645b344ec0634c1290dd58d7dc87b97\"\n },\n {\n \"url\": \"images/dropbox-logo.svg\",\n \"revision\": \"e6be408c77cf9c82d41ac64fa854280a\"\n },\n {\n \"url\": \"images/github-logo.svg\",\n \"revision\": \"a1a999b69a275eac0cb918360ac05ae1\"\n },\n {\n \"url\": \"images/gitlab-logo.svg\",\n \"revision\": \"0faea8c818899e58533e153c44b10517\"\n },\n {\n \"url\": \"images/trello-logo.svg\",\n \"revision\": \"006fd0d7d70d7e95dc691674cb12e044\"\n },\n {\n \"url\": \"images/osa_drive-harddisk.png\",\n \"revision\": \"b954e1ae772087c5b4c6ae797e1f9649\"\n },\n {\n \"url\": \"images/osa_database.png\",\n \"revision\": \"c350d9d9b95f37b6cfe798b40ede5fb0\"\n },\n {\n \"url\": \"images/google-drive-logo-white.svg\",\n \"revision\": \"f329d8b1be7778515a85b93fc35d9f26\"\n },\n {\n \"url\": \"images/dropbox-logo-white.svg\",\n \"revision\": \"4ea8299ac3bc31a16f199ee3aec223bf\"\n },\n {\n \"url\": \"images/onedrive-logo-white.svg\",\n \"revision\": \"b3602fa0fc947009cff3f33a581cff4d\"\n },\n {\n \"url\": \"images/github-logo-white.svg\",\n \"revision\": \"537b1127b3ca0f95b45782d1304fb77a\"\n },\n {\n \"url\": \"images/gitlab-logo-white.svg\",\n \"revision\": \"5fede9ac2f394c716b8c23e3fddc3910\"\n },\n {\n \"url\": \"images/trello-logo-white-orange.svg\",\n \"revision\": \"e2a0a52ba3766682f138138d10a75eb5\"\n },\n {\n \"url\": \"images/logo-confluence.png\",\n \"revision\": \"ed1e55d44ae5eba8f999aba2c93e8331\"\n },\n {\n \"url\": \"images/logo-jira.png\",\n \"revision\": \"f8d460555a0d1f87cfd901e940666629\"\n },\n {\n \"url\": \"images/clear.gif\",\n \"revision\": \"db13c778e4382e0b55258d0f811d5d70\"\n },\n {\n \"url\": \"images/spin.gif\",\n \"revision\": \"487cbb40b9ced439aa1ad914e816d773\"\n },\n {\n \"url\": \"images/checkmark.gif\",\n \"revision\": \"ba764ce62f2bf952df5bbc2bb4d381c5\"\n },\n {\n \"url\": \"images/hs.png\",\n \"revision\": \"fefa1a03d92ebad25c88dca94a0b63db\"\n },\n {\n \"url\": \"images/aui-wait.gif\",\n \"revision\": \"5a474bcbd8d2f2826f03d10ea44bf60e\"\n },\n {\n \"url\": \"mxgraph/css/common.css\",\n \"revision\": \"b5b7280ec98671bb6c3847a36bc7ea12\"\n },\n {\n \"url\": \"mxgraph/images/expanded.gif\",\n \"revision\": \"2b67c2c035af1e9a5cc814f0d22074cf\"\n },\n {\n \"url\": \"mxgraph/images/collapsed.gif\",\n \"revision\": \"73cc826da002a3d740ca4ce6ec5c1f4a\"\n },\n {\n \"url\": \"mxgraph/images/maximize.gif\",\n \"revision\": \"5cd13d6925493ab51e876694cc1c2ec2\"\n },\n {\n \"url\": \"mxgraph/images/minimize.gif\",\n \"revision\": \"8957741b9b0f86af9438775f2aadbb54\"\n },\n {\n \"url\": \"mxgraph/images/close.gif\",\n \"revision\": \"8b84669812ac7382984fca35de8da48b\"\n },\n {\n \"url\": \"mxgraph/images/resize.gif\",\n \"revision\": \"a6477612b3567a34033f9cac6184eed3\"\n },\n {\n \"url\": \"mxgraph/images/separator.gif\",\n \"revision\": \"7819742ff106c97da7a801c2372bbbe5\"\n },\n {\n \"url\": \"mxgraph/images/window.gif\",\n \"revision\": \"fd9a21dd4181f98052a202a0a01f18ab\"\n },\n {\n \"url\": \"mxgraph/images/window-title.gif\",\n \"revision\": \"3fb1d6c43246cdf991a11dfe826dfe99\"\n },\n {\n \"url\": \"mxgraph/images/button.gif\",\n \"revision\": \"00759bdc3ad218fa739f584369541809\"\n },\n {\n \"url\": \"mxgraph/images/point.gif\",\n \"revision\": \"83a43717b284902442620f61bc4e9fa6\"\n }\n], {\n \"ignoreURLParametersMatching\": [/.*/]\n});\n\n\n\n\n\n\n\n\n"],"names":["self","addEventListener","event","data","type","skipWaiting"],"mappings":"szBAmBAA,KAAKC,iBAAiB,WAAYC,IAC5BA,EAAMC,MAA4B,iBAApBD,EAAMC,KAAKC,MAC3BJ,KAAKK,oCAY2B,CAClC,KACS,yBACK,oCAEd,KACS,gCACK,oCAEd,KACS,8BACK,oCAEd,KACS,mCACK,oCAEd,KACS,4BACK,oCAEd,KACS,sBACK,oCAEd,KACS,qBACK,oCAEd,KACS,uDACK,oCAEd,KACS,kCACK,oCAEd,KACS,4BACK,oCAEd,KACS,2BACK,oCAEd,KACS,yCACK,oCAEd,KACS,mCACK,oCAEd,KACS,mCACK,oCAEd,KACS,0CACK,oCAEd,KACS,gDACK,oCAEd,KACS,oDACK,oCAEd,KACS,uCACK,oCAEd,KACS,oCACK,oCAEd,KACS,kCACK,oCAEd,KACS,kDACK,oCAEd,KACS,6CACK,oCAEd,KACS,kCACK,oCAEd,KACS,qCACK,oCAEd,KACS,kCACK,oCAEd,KACS,oDACK,oCAEd,KACS,qCACK,oCAEd,KACS,wCACK,oCAEd,KACS,yCACK,oCAEd,KACS,6CACK,oCAEd,KACS,wCACK,oCAEd,KACS,iDACK,oCAEd,KACS,qDACK,oCAEd,KACS,sDACK,oCAEd,KACS,kDACK,oCAEd,KACS,8CACK,oCAEd,KACS,2BACK,oCAEd,KACS,8CACK,oCAEd,KACS,qDACK,oCAEd,KACS,sDACK,oCAEd,KACS,+DACK,oCAEd,KACS,2EACK,oCAEd,KACS,wEACK,oCAEd,KACS,6BACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,iCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,mCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,gCACK,oCAEd,KACS,mCACK,oCAEd,KACS,gCACK,oCAEd,KACS,uBACK,oCAEd,KACS,gCACK,oCAEd,KACS,2BACK,oCAEd,KACS,+BACK,oCAEd,KACS,iCACK,oCAEd,KACS,oCACK,oCAEd,KACS,2CACK,oCAEd,KACS,mCACK,oCAEd,KACS,sCACK,oCAEd,KACS,uCACK,oCAEd,KACS,oCACK,oCAEd,KACS,oCACK,oCAEd,KACS,6CACK,oCAEd,KACS,6CACK,oCAEd,KACS,6BACK,oCAEd,KACS,iCACK,oCAEd,KACS,2BACK,oCAEd,KACS,+BACK,oCAEd,KACS,gCACK,oCAEd,KACS,wCACK,oCAEd,KACS,oCACK,oCAEd,KACS,mCACK,oCAEd,KACS,kCACK,oCAEd,KACS,kCACK,oCAEd,KACS,kCACK,oCAEd,KACS,yCACK,oCAEd,KACS,mCACK,oCAEd,KACS,8CACK,oCAEd,KACS,yCACK,oCAEd,KACS,0CACK,oCAEd,KACS,wCACK,oCAEd,KACS,wCACK,oCAEd,KACS,+CACK,oCAEd,KACS,sCACK,oCAEd,KACS,gCACK,oCAEd,KACS,4BACK,oCAEd,KACS,2BACK,oCAEd,KACS,gCACK,oCAEd,KACS,yBACK,oCAEd,KACS,+BACK,oCAEd,KACS,kCACK,oCAEd,KACS,uCACK,oCAEd,KACS,wCACK,oCAEd,KACS,uCACK,oCAEd,KACS,uCACK,oCAEd,KACS,oCACK,oCAEd,KACS,qCACK,oCAEd,KACS,wCACK,oCAEd,KACS,qCACK,oCAEd,KACS,2CACK,oCAEd,KACS,qCACK,oCAEd,KACS,oCACK,qCAEb,6BAC8B,CAAC"} \ No newline at end of file
diff --git a/src/main/webapp/yarn.lock b/src/main/webapp/yarn.lock
index ba2397e7..1bb11d9b 100644
--- a/src/main/webapp/yarn.lock
+++ b/src/main/webapp/yarn.lock
@@ -2,9 +2,9 @@
# yarn lockfile v1
-"@electron/get@^1.0.1":
+"@electron/get@^1.13.0":
version "1.13.1"
- resolved "https://registry.yarnpkg.com/@electron/get/-/get-1.13.1.tgz#42a0aa62fd1189638bd966e23effaebb16108368"
+ resolved "https://registry.npmjs.org/@electron/get/-/get-1.13.1.tgz"
integrity sha512-U5vkXDZ9DwXtkPqlB45tfYnnYBN8PePp1z/XDCupnSpdrxT8/ThCv9WCwPLf9oqiSGZTkH6dx2jDUPuoXpjkcA==
dependencies:
debug "^4.1.1"
@@ -20,48 +20,48 @@
"@electron/remote@^2.0.1":
version "2.0.1"
- resolved "https://registry.yarnpkg.com/@electron/remote/-/remote-2.0.1.tgz#810cbc595a21f0f94641eb2d7e8264063a3f84de"
+ resolved "https://registry.npmjs.org/@electron/remote/-/remote-2.0.1.tgz"
integrity sha512-bGX4/yB2bPZwXm1DsxgoABgH0Cz7oFtXJgkerB8VrStYdTyvhGAULzNLRn9rVmeAuC3VUDXaXpZIlZAZHpsLIA==
"@pdf-lib/standard-fonts@^1.0.0":
version "1.0.0"
- resolved "https://registry.yarnpkg.com/@pdf-lib/standard-fonts/-/standard-fonts-1.0.0.tgz#8ba691c4421f71662ed07c9a0294b44528af2d7f"
+ resolved "https://registry.npmjs.org/@pdf-lib/standard-fonts/-/standard-fonts-1.0.0.tgz"
integrity sha512-hU30BK9IUN/su0Mn9VdlVKsWBS6GyhVfqjwl1FjZN4TxP6cCw0jP2w7V3Hf5uX7M0AZJ16vey9yE0ny7Sa59ZA==
dependencies:
pako "^1.0.6"
"@pdf-lib/upng@^1.0.1":
version "1.0.1"
- resolved "https://registry.yarnpkg.com/@pdf-lib/upng/-/upng-1.0.1.tgz#7dc9c636271aca007a9df4deaf2dd7e7960280cb"
+ resolved "https://registry.npmjs.org/@pdf-lib/upng/-/upng-1.0.1.tgz"
integrity sha512-dQK2FUMQtowVP00mtIksrlZhdFXQZPC+taih1q4CvPZ5vqdxR/LKBaFg0oAfzd1GlHZXXSPdQfzQnt+ViGvEIQ==
dependencies:
pako "^1.0.10"
"@sindresorhus/is@^0.14.0":
version "0.14.0"
- resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea"
+ resolved "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz"
integrity sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==
"@szmarczak/http-timer@^1.1.2":
version "1.1.2"
- resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-1.1.2.tgz#b1665e2c461a2cd92f4c1bbf50d5454de0d4b421"
+ resolved "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz"
integrity sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==
dependencies:
defer-to-connect "^1.0.1"
"@types/node@^14.6.2":
version "14.17.33"
- resolved "https://registry.yarnpkg.com/@types/node/-/node-14.17.33.tgz#011ee28e38dc7aee1be032ceadf6332a0ab15b12"
+ resolved "https://registry.npmjs.org/@types/node/-/node-14.17.33.tgz"
integrity sha512-noEeJ06zbn3lOh4gqe2v7NMGS33jrulfNqYFDjjEbhpDEHR5VTxgYNQSBqBlJIsBJW3uEYDgD6kvMnrrhGzq8g==
"@types/semver@^7.3.5":
version "7.3.9"
- resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.3.9.tgz#152c6c20a7688c30b967ec1841d31ace569863fc"
+ resolved "https://registry.npmjs.org/@types/semver/-/semver-7.3.9.tgz"
integrity sha512-L/TMpyURfBkf+o/526Zb6kd/tchUP3iBDEPjqjb+U2MAJhVRxxrmr2fwpe08E7QsV7YLcpq0tUaQ9O9x97ZIxQ==
accepts@~1.3.5:
version "1.3.7"
- resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.7.tgz#531bc726517a3b2b41f850021c6cc15eaab507cd"
+ resolved "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz"
integrity sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==
dependencies:
mime-types "~2.1.24"
@@ -69,14 +69,14 @@ accepts@~1.3.5:
ajv-formats@^2.1.1:
version "2.1.1"
- resolved "https://registry.yarnpkg.com/ajv-formats/-/ajv-formats-2.1.1.tgz#6e669400659eb74973bbf2e33327180a0996b520"
+ resolved "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz"
integrity sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==
dependencies:
ajv "^8.0.0"
ajv@^8.0.0, ajv@^8.6.3:
version "8.7.1"
- resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.7.1.tgz#52be6f1736b076074798124293618f132ad07a7e"
+ resolved "https://registry.npmjs.org/ajv/-/ajv-8.7.1.tgz"
integrity sha512-gPpOObTO1QjbnN1sVMjJcp1TF9nggMfO4MBR5uQl6ZVTOaEPq5i4oq/6R9q2alMMPB3eg53wFv1RuJBLuxf3Hw==
dependencies:
fast-deep-equal "^3.1.1"
@@ -86,37 +86,37 @@ ajv@^8.0.0, ajv@^8.6.3:
argparse@^2.0.1:
version "2.0.1"
- resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38"
+ resolved "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz"
integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==
atomically@^1.7.0:
version "1.7.0"
- resolved "https://registry.yarnpkg.com/atomically/-/atomically-1.7.0.tgz#c07a0458432ea6dbc9a3506fffa424b48bccaafe"
+ resolved "https://registry.npmjs.org/atomically/-/atomically-1.7.0.tgz"
integrity sha512-Xcz9l0z7y9yQ9rdDaxlmaI4uJHf/T8g9hOEzJcsEqX2SjCj4J20uK7+ldkDHMbpJDK76wF7xEIgxc/vSlsfw5w==
base64-js@^1.3.1:
version "1.5.1"
- resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a"
+ resolved "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz"
integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==
boolean@^3.0.1:
version "3.1.4"
- resolved "https://registry.yarnpkg.com/boolean/-/boolean-3.1.4.tgz#f51a2fb5838a99e06f9b6ec1edb674de67026435"
+ resolved "https://registry.npmjs.org/boolean/-/boolean-3.1.4.tgz"
integrity sha512-3hx0kwU3uzG6ReQ3pnaFQPSktpBw6RHN3/ivDKEuU8g1XSfafowyvDnadjv1xp8IZqhtSukxlwv9bF6FhX8m0w==
buffer-crc32@~0.2.3:
version "0.2.13"
- resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242"
+ resolved "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz"
integrity sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=
buffer-from@^1.0.0:
version "1.1.2"
- resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5"
+ resolved "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz"
integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==
buffer@^5.1.0:
version "5.7.1"
- resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0"
+ resolved "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz"
integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==
dependencies:
base64-js "^1.3.1"
@@ -124,7 +124,7 @@ buffer@^5.1.0:
builder-util-runtime@8.7.5:
version "8.7.5"
- resolved "https://registry.yarnpkg.com/builder-util-runtime/-/builder-util-runtime-8.7.5.tgz#fbe59e274818885e0d2e358d5b7017c34ae6b0f5"
+ resolved "https://registry.npmjs.org/builder-util-runtime/-/builder-util-runtime-8.7.5.tgz"
integrity sha512-fgUFHKtMNjdvH6PDRFntdIGUPgwZ69sXsAqEulCtoiqgWes5agrMq/Ud274zjJRTbckYh2PHh8/1CpFc6dpsbQ==
dependencies:
debug "^4.3.2"
@@ -132,12 +132,12 @@ builder-util-runtime@8.7.5:
bytes@3.0.0:
version "3.0.0"
- resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048"
+ resolved "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz"
integrity sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=
cacheable-request@^6.0.0:
version "6.1.0"
- resolved "https://registry.yarnpkg.com/cacheable-request/-/cacheable-request-6.1.0.tgz#20ffb8bd162ba4be11e9567d823db651052ca912"
+ resolved "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz"
integrity sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==
dependencies:
clone-response "^1.0.2"
@@ -150,26 +150,26 @@ cacheable-request@^6.0.0:
clone-response@^1.0.2:
version "1.0.2"
- resolved "https://registry.yarnpkg.com/clone-response/-/clone-response-1.0.2.tgz#d1dc973920314df67fbeb94223b4ee350239e96b"
+ resolved "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz"
integrity sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=
dependencies:
mimic-response "^1.0.0"
commander@^8.2.0:
version "8.3.0"
- resolved "https://registry.yarnpkg.com/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66"
+ resolved "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz"
integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==
compressible@~2.0.16:
version "2.0.18"
- resolved "https://registry.yarnpkg.com/compressible/-/compressible-2.0.18.tgz#af53cca6b070d4c3c0750fbd77286a6d7cc46fba"
+ resolved "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz"
integrity sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==
dependencies:
mime-db ">= 1.43.0 < 2"
compression@^1.7.4:
version "1.7.4"
- resolved "https://registry.yarnpkg.com/compression/-/compression-1.7.4.tgz#95523eff170ca57c29a0ca41e6fe131f41e5bb8f"
+ resolved "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz"
integrity sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==
dependencies:
accepts "~1.3.5"
@@ -182,7 +182,7 @@ compression@^1.7.4:
concat-stream@^1.6.2:
version "1.6.2"
- resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34"
+ resolved "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz"
integrity sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==
dependencies:
buffer-from "^1.0.0"
@@ -192,7 +192,7 @@ concat-stream@^1.6.2:
conf@^10.0.3:
version "10.0.3"
- resolved "https://registry.yarnpkg.com/conf/-/conf-10.0.3.tgz#af266186cc754daefd2749398861ec538c50da17"
+ resolved "https://registry.npmjs.org/conf/-/conf-10.0.3.tgz"
integrity sha512-4gtQ/Q36qVxBzMe6B7gWOAfni1VdhuHkIzxydHkclnwGmgN+eW4bb6jj73vigCfr7d3WlmqawvhZrpCUCTPYxQ==
dependencies:
ajv "^8.6.3"
@@ -208,7 +208,7 @@ conf@^10.0.3:
config-chain@^1.1.11:
version "1.1.13"
- resolved "https://registry.yarnpkg.com/config-chain/-/config-chain-1.1.13.tgz#fad0795aa6a6cdaff9ed1b68e9dff94372c232f4"
+ resolved "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz"
integrity sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==
dependencies:
ini "^1.3.4"
@@ -216,88 +216,88 @@ config-chain@^1.1.11:
core-util-is@~1.0.0:
version "1.0.3"
- resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85"
+ resolved "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz"
integrity sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==
crc@^3.8.0:
version "3.8.0"
- resolved "https://registry.yarnpkg.com/crc/-/crc-3.8.0.tgz#ad60269c2c856f8c299e2c4cc0de4556914056c6"
+ resolved "https://registry.npmjs.org/crc/-/crc-3.8.0.tgz"
integrity sha512-iX3mfgcTMIq3ZKLIsVFAbv7+Mc10kxabAGQb8HvjA1o3T1PIYprbakQ65d3I+2HGHt6nSKkM9PYjgoJO2KcFBQ==
dependencies:
buffer "^5.1.0"
debounce-fn@^4.0.0:
version "4.0.0"
- resolved "https://registry.yarnpkg.com/debounce-fn/-/debounce-fn-4.0.0.tgz#ed76d206d8a50e60de0dd66d494d82835ffe61c7"
+ resolved "https://registry.npmjs.org/debounce-fn/-/debounce-fn-4.0.0.tgz"
integrity sha512-8pYCQiL9Xdcg0UPSD3d+0KMlOjp+KGU5EPwYddgzQ7DATsg4fuUDjQtsYLmWjnk2obnNHgV3vE2Y4jejSOJVBQ==
dependencies:
mimic-fn "^3.0.0"
debug@2.6.9, debug@^2.6.9:
version "2.6.9"
- resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
+ resolved "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz"
integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==
dependencies:
ms "2.0.0"
debug@^4.1.0, debug@^4.1.1, debug@^4.3.2:
version "4.3.2"
- resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.2.tgz#f0a49c18ac8779e31d4a0c6029dfb76873c7428b"
+ resolved "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz"
integrity sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==
dependencies:
ms "2.1.2"
decompress-response@^3.3.0:
version "3.3.0"
- resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-3.3.0.tgz#80a4dd323748384bfa248083622aedec982adff3"
+ resolved "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz"
integrity sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=
dependencies:
mimic-response "^1.0.0"
defer-to-connect@^1.0.1:
version "1.1.3"
- resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-1.1.3.tgz#331ae050c08dcf789f8c83a7b81f0ed94f4ac591"
+ resolved "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz"
integrity sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==
define-properties@^1.1.3:
version "1.1.3"
- resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1"
+ resolved "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz"
integrity sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==
dependencies:
object-keys "^1.0.12"
detect-node@^2.0.4:
version "2.1.0"
- resolved "https://registry.yarnpkg.com/detect-node/-/detect-node-2.1.0.tgz#c9c70775a49c3d03bc2c06d9a73be550f978f8b1"
+ resolved "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz"
integrity sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==
dot-prop@^6.0.1:
version "6.0.1"
- resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-6.0.1.tgz#fc26b3cf142b9e59b74dbd39ed66ce620c681083"
+ resolved "https://registry.npmjs.org/dot-prop/-/dot-prop-6.0.1.tgz"
integrity sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA==
dependencies:
is-obj "^2.0.0"
duplexer3@^0.1.4:
version "0.1.4"
- resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2"
+ resolved "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz"
integrity sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=
electron-log@^4.4.1:
version "4.4.1"
- resolved "https://registry.yarnpkg.com/electron-log/-/electron-log-4.4.1.tgz#28ebeb474eccba2ebf194a96c40d6328e5353e4d"
+ resolved "https://registry.npmjs.org/electron-log/-/electron-log-4.4.1.tgz"
integrity sha512-nK/DwxPLtwWbggPCm27eMQhYHc3gzoZ+cokBK99diO4WsZJKrv5l44EUW8mRfWpmC8ZubnMyp6GTUIJyTc9AJA==
electron-progressbar@^2.0.1:
version "2.0.1"
- resolved "https://registry.yarnpkg.com/electron-progressbar/-/electron-progressbar-2.0.1.tgz#97e39e006cc9f4a63c598b03b171800fd47f8f33"
+ resolved "https://registry.npmjs.org/electron-progressbar/-/electron-progressbar-2.0.1.tgz"
integrity sha512-+N60GX2q+KH5OvZXxwtjMTZB/1AyxriFd95vOnR3sOfNpvz+30LMsM0a9SnEivZE6N8Djy7F3z4TY8pLs8aopw==
dependencies:
extend "^3.0.1"
electron-store@^8.0.0:
version "8.0.1"
- resolved "https://registry.yarnpkg.com/electron-store/-/electron-store-8.0.1.tgz#9b598c1d2edeffebee9d8c1cd957ad368c528925"
+ resolved "https://registry.npmjs.org/electron-store/-/electron-store-8.0.1.tgz"
integrity sha512-ZyLvNywiqSpbwC/pp89O/AycVWY/UJIkmtyzF2Bd0Nm/rLmcFc0NTGuLdg6+LE8mS8qsiK5JMoe4PnrecLHH5w==
dependencies:
conf "^10.0.3"
@@ -305,7 +305,7 @@ electron-store@^8.0.0:
electron-updater@^4.3.9:
version "4.3.9"
- resolved "https://registry.yarnpkg.com/electron-updater/-/electron-updater-4.3.9.tgz#247c660bafad7c07935e1b81acd3e9a5fd733154"
+ resolved "https://registry.npmjs.org/electron-updater/-/electron-updater-4.3.9.tgz"
integrity sha512-LCNfedSwZfS4Hza+pDyPR05LqHtGorCStaBgVpRnfKxOlZcvpYEX0AbMeH5XUtbtGRoH2V8osbbf2qKPNb7AsA==
dependencies:
"@types/semver" "^7.3.5"
@@ -317,50 +317,50 @@ electron-updater@^4.3.9:
lodash.isequal "^4.5.0"
semver "^7.3.5"
-electron@^13.6.1:
- version "13.6.1"
- resolved "https://registry.yarnpkg.com/electron/-/electron-13.6.1.tgz#f61c4f269b57c7dc27e0d5476216a988caa9c752"
- integrity sha512-rZ6Y7RberigruefQpWOiI4bA9ppyT88GQF8htY6N1MrAgal5RrBc+Mh92CcGU7zT9QO+XO3DarSgZafNTepffQ==
+electron@^16.0.5:
+ version "16.0.7"
+ resolved "https://registry.npmjs.org/electron/-/electron-16.0.7.tgz"
+ integrity sha512-/IMwpBf2svhA1X/7Q58RV+Nn0fvUJsHniG4TizaO7q4iKFYSQ6hBvsLz+cylcZ8hRMKmVy5G1XaMNJID2ah23w==
dependencies:
- "@electron/get" "^1.0.1"
+ "@electron/get" "^1.13.0"
"@types/node" "^14.6.2"
extract-zip "^1.0.3"
encodeurl@^1.0.2:
version "1.0.2"
- resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59"
+ resolved "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz"
integrity sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=
end-of-stream@^1.1.0:
version "1.4.4"
- resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0"
+ resolved "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz"
integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==
dependencies:
once "^1.4.0"
env-paths@^2.2.0, env-paths@^2.2.1:
version "2.2.1"
- resolved "https://registry.yarnpkg.com/env-paths/-/env-paths-2.2.1.tgz#420399d416ce1fbe9bc0a07c62fa68d67fd0f8f2"
+ resolved "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz"
integrity sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==
es6-error@^4.1.1:
version "4.1.1"
- resolved "https://registry.yarnpkg.com/es6-error/-/es6-error-4.1.1.tgz#9e3af407459deed47e9a91f9b885a84eb05c561d"
+ resolved "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz"
integrity sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==
escape-string-regexp@^4.0.0:
version "4.0.0"
- resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
+ resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz"
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
extend@^3.0.1:
version "3.0.2"
- resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa"
+ resolved "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz"
integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==
extract-zip@^1.0.3:
version "1.7.0"
- resolved "https://registry.yarnpkg.com/extract-zip/-/extract-zip-1.7.0.tgz#556cc3ae9df7f452c493a0cfb51cc30277940927"
+ resolved "https://registry.npmjs.org/extract-zip/-/extract-zip-1.7.0.tgz"
integrity sha512-xoh5G1W/PB0/27lXgMQyIhP5DSY/LhoCsOyZgb+6iMmRtCwVBo55uKaMoEYrDCKQhWvqEip5ZPKAc6eFNyf/MA==
dependencies:
concat-stream "^1.6.2"
@@ -370,26 +370,26 @@ extract-zip@^1.0.3:
fast-deep-equal@^3.1.1:
version "3.1.3"
- resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"
+ resolved "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz"
integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==
fd-slicer@~1.1.0:
version "1.1.0"
- resolved "https://registry.yarnpkg.com/fd-slicer/-/fd-slicer-1.1.0.tgz#25c7c89cb1f9077f8891bbe61d8f390eae256f1e"
+ resolved "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz"
integrity sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=
dependencies:
pend "~1.2.0"
find-up@^3.0.0:
version "3.0.0"
- resolved "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73"
+ resolved "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz"
integrity sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==
dependencies:
locate-path "^3.0.0"
fs-extra@^10.0.0:
version "10.0.0"
- resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.0.0.tgz#9ff61b655dde53fb34a82df84bb214ce802e17c1"
+ resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.0.tgz"
integrity sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ==
dependencies:
graceful-fs "^4.2.0"
@@ -398,7 +398,7 @@ fs-extra@^10.0.0:
fs-extra@^8.1.0:
version "8.1.0"
- resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0"
+ resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz"
integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==
dependencies:
graceful-fs "^4.2.0"
@@ -407,21 +407,21 @@ fs-extra@^8.1.0:
get-stream@^4.1.0:
version "4.1.0"
- resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5"
+ resolved "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz"
integrity sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==
dependencies:
pump "^3.0.0"
get-stream@^5.1.0:
version "5.2.0"
- resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3"
+ resolved "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz"
integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==
dependencies:
pump "^3.0.0"
global-agent@^3.0.0:
version "3.0.0"
- resolved "https://registry.yarnpkg.com/global-agent/-/global-agent-3.0.0.tgz#ae7cd31bd3583b93c5a16437a1afe27cc33a1ab6"
+ resolved "https://registry.npmjs.org/global-agent/-/global-agent-3.0.0.tgz"
integrity sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==
dependencies:
boolean "^3.0.1"
@@ -433,7 +433,7 @@ global-agent@^3.0.0:
global-tunnel-ng@^2.7.1:
version "2.7.1"
- resolved "https://registry.yarnpkg.com/global-tunnel-ng/-/global-tunnel-ng-2.7.1.tgz#d03b5102dfde3a69914f5ee7d86761ca35d57d8f"
+ resolved "https://registry.npmjs.org/global-tunnel-ng/-/global-tunnel-ng-2.7.1.tgz"
integrity sha512-4s+DyciWBV0eK148wqXxcmVAbFVPqtc3sEtUE/GTQfuU80rySLcMhUmHKSHI7/LDj8q0gDYI1lIhRRB7ieRAqg==
dependencies:
encodeurl "^1.0.2"
@@ -443,14 +443,14 @@ global-tunnel-ng@^2.7.1:
globalthis@^1.0.1:
version "1.0.2"
- resolved "https://registry.yarnpkg.com/globalthis/-/globalthis-1.0.2.tgz#2a235d34f4d8036219f7e34929b5de9e18166b8b"
+ resolved "https://registry.npmjs.org/globalthis/-/globalthis-1.0.2.tgz"
integrity sha512-ZQnSFO1la8P7auIOQECnm0sSuoMeaSq0EEdXMBFF2QJO4uNcwbyhSgG3MruWNbFTqCLmxVwGOl7LZ9kASvHdeQ==
dependencies:
define-properties "^1.1.3"
got@^9.6.0:
version "9.6.0"
- resolved "https://registry.yarnpkg.com/got/-/got-9.6.0.tgz#edf45e7d67f99545705de1f7bbeeeb121765ed85"
+ resolved "https://registry.npmjs.org/got/-/got-9.6.0.tgz"
integrity sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==
dependencies:
"@sindresorhus/is" "^0.14.0"
@@ -467,76 +467,76 @@ got@^9.6.0:
graceful-fs@^4.1.6, graceful-fs@^4.2.0:
version "4.2.8"
- resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.8.tgz#e412b8d33f5e006593cbd3cee6df9f2cebbe802a"
+ resolved "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.8.tgz"
integrity sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg==
http-cache-semantics@^4.0.0:
version "4.1.0"
- resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz#49e91c5cbf36c9b94bcfcd71c23d5249ec74e390"
+ resolved "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz"
integrity sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==
ieee754@^1.1.13:
version "1.2.1"
- resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352"
+ resolved "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz"
integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==
inherits@^2.0.3, inherits@~2.0.3:
version "2.0.4"
- resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
+ resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz"
integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
ini@^1.3.4:
version "1.3.8"
- resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c"
+ resolved "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz"
integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==
is-obj@^2.0.0:
version "2.0.0"
- resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982"
+ resolved "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz"
integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==
isarray@~1.0.0:
version "1.0.0"
- resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
+ resolved "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz"
integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=
js-yaml@^4.1.0:
version "4.1.0"
- resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602"
+ resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz"
integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==
dependencies:
argparse "^2.0.1"
json-buffer@3.0.0:
version "3.0.0"
- resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.0.tgz#5b1f397afc75d677bde8bcfc0e47e1f9a3d9a898"
+ resolved "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz"
integrity sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=
json-schema-traverse@^1.0.0:
version "1.0.0"
- resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2"
+ resolved "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz"
integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==
json-schema-typed@^7.0.3:
version "7.0.3"
- resolved "https://registry.yarnpkg.com/json-schema-typed/-/json-schema-typed-7.0.3.tgz#23ff481b8b4eebcd2ca123b4fa0409e66469a2d9"
+ resolved "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-7.0.3.tgz"
integrity sha512-7DE8mpG+/fVw+dTpjbxnx47TaMnDfOI1jwft9g1VybltZCduyRQPJPvc+zzKY9WPHxhPWczyFuYa6I8Mw4iU5A==
json-stringify-safe@^5.0.1:
version "5.0.1"
- resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb"
+ resolved "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz"
integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=
jsonfile@^4.0.0:
version "4.0.0"
- resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb"
+ resolved "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz"
integrity sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=
optionalDependencies:
graceful-fs "^4.1.6"
jsonfile@^6.0.1:
version "6.1.0"
- resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae"
+ resolved "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz"
integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==
dependencies:
universalify "^2.0.0"
@@ -545,19 +545,19 @@ jsonfile@^6.0.1:
keyv@^3.0.0:
version "3.1.0"
- resolved "https://registry.yarnpkg.com/keyv/-/keyv-3.1.0.tgz#ecc228486f69991e49e9476485a5be1e8fc5c4d9"
+ resolved "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz"
integrity sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==
dependencies:
json-buffer "3.0.0"
lazy-val@^1.0.4:
version "1.0.5"
- resolved "https://registry.yarnpkg.com/lazy-val/-/lazy-val-1.0.5.tgz#6cf3b9f5bc31cee7ee3e369c0832b7583dcd923d"
+ resolved "https://registry.npmjs.org/lazy-val/-/lazy-val-1.0.5.tgz"
integrity sha512-0/BnGCCfyUMkBpeDgWihanIAF9JmZhHBgUhEqzvf+adhNGLoP6TaiI5oF8oyb3I45P+PcnrqihSf01M0l0G5+Q==
locate-path@^3.0.0:
version "3.0.0"
- resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e"
+ resolved "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz"
integrity sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==
dependencies:
p-locate "^3.0.0"
@@ -565,105 +565,105 @@ locate-path@^3.0.0:
lodash.escaperegexp@^4.1.2:
version "4.1.2"
- resolved "https://registry.yarnpkg.com/lodash.escaperegexp/-/lodash.escaperegexp-4.1.2.tgz#64762c48618082518ac3df4ccf5d5886dae20347"
+ resolved "https://registry.npmjs.org/lodash.escaperegexp/-/lodash.escaperegexp-4.1.2.tgz"
integrity sha1-ZHYsSGGAglGKw99Mz11YhtriA0c=
lodash.isequal@^4.5.0:
version "4.5.0"
- resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0"
+ resolved "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz"
integrity sha1-QVxEePK8wwEgwizhDtMib30+GOA=
lodash@^4.17.10:
version "4.17.21"
- resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
+ resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz"
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
lowercase-keys@^1.0.0, lowercase-keys@^1.0.1:
version "1.0.1"
- resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.1.tgz#6f9e30b47084d971a7c820ff15a6c5167b74c26f"
+ resolved "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz"
integrity sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==
lowercase-keys@^2.0.0:
version "2.0.0"
- resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-2.0.0.tgz#2603e78b7b4b0006cbca2fbcc8a3202558ac9479"
+ resolved "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz"
integrity sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==
lru-cache@^6.0.0:
version "6.0.0"
- resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94"
+ resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz"
integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==
dependencies:
yallist "^4.0.0"
matcher@^3.0.0:
version "3.0.0"
- resolved "https://registry.yarnpkg.com/matcher/-/matcher-3.0.0.tgz#bd9060f4c5b70aa8041ccc6f80368760994f30ca"
+ resolved "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz"
integrity sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==
dependencies:
escape-string-regexp "^4.0.0"
mime-db@1.51.0, "mime-db@>= 1.43.0 < 2":
version "1.51.0"
- resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.51.0.tgz#d9ff62451859b18342d960850dc3cfb77e63fb0c"
+ resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz"
integrity sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g==
mime-types@~2.1.24:
version "2.1.34"
- resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.34.tgz#5a712f9ec1503511a945803640fafe09d3793c24"
+ resolved "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz"
integrity sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==
dependencies:
mime-db "1.51.0"
mimic-fn@^2.1.0:
version "2.1.0"
- resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b"
+ resolved "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz"
integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==
mimic-fn@^3.0.0:
version "3.1.0"
- resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-3.1.0.tgz#65755145bbf3e36954b949c16450427451d5ca74"
+ resolved "https://registry.npmjs.org/mimic-fn/-/mimic-fn-3.1.0.tgz"
integrity sha512-Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ==
mimic-response@^1.0.0, mimic-response@^1.0.1:
version "1.0.1"
- resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.1.tgz#4923538878eef42063cb8a3e3b0798781487ab1b"
+ resolved "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz"
integrity sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==
minimist@^1.2.5:
version "1.2.5"
- resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
+ resolved "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz"
integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==
mkdirp@^0.5.4:
version "0.5.5"
- resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.5.tgz#d91cefd62d1436ca0f41620e251288d420099def"
+ resolved "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz"
integrity sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==
dependencies:
minimist "^1.2.5"
ms@2.0.0:
version "2.0.0"
- resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"
+ resolved "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz"
integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=
ms@2.1.2:
version "2.1.2"
- resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009"
+ resolved "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz"
integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==
negotiator@0.6.2:
version "0.6.2"
- resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.2.tgz#feacf7ccf525a77ae9634436a64883ffeca346fb"
+ resolved "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz"
integrity sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==
normalize-url@^4.1.0:
version "4.5.1"
- resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.5.1.tgz#0dd90cf1288ee1d1313b87081c9a5932ee48518a"
+ resolved "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.1.tgz"
integrity sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==
npm-conf@^1.1.3:
version "1.1.3"
- resolved "https://registry.yarnpkg.com/npm-conf/-/npm-conf-1.1.3.tgz#256cc47bd0e218c259c4e9550bf413bc2192aff9"
+ resolved "https://registry.npmjs.org/npm-conf/-/npm-conf-1.1.3.tgz"
integrity sha512-Yic4bZHJOt9RCFbRP3GgpqhScOY4HH3V2P8yBj6CeYq118Qr+BLXqT2JvpJ00mryLESpgOxf5XlFv4ZjXxLScw==
dependencies:
config-chain "^1.1.11"
@@ -671,65 +671,65 @@ npm-conf@^1.1.3:
object-keys@^1.0.12:
version "1.1.1"
- resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e"
+ resolved "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz"
integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==
on-headers@~1.0.2:
version "1.0.2"
- resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.2.tgz#772b0ae6aaa525c399e489adfad90c403eb3c28f"
+ resolved "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz"
integrity sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==
once@^1.3.1, once@^1.4.0:
version "1.4.0"
- resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
+ resolved "https://registry.npmjs.org/once/-/once-1.4.0.tgz"
integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E=
dependencies:
wrappy "1"
onetime@^5.1.2:
version "5.1.2"
- resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e"
+ resolved "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz"
integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==
dependencies:
mimic-fn "^2.1.0"
p-cancelable@^1.0.0:
version "1.1.0"
- resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-1.1.0.tgz#d078d15a3af409220c886f1d9a0ca2e441ab26cc"
+ resolved "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz"
integrity sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==
p-limit@^2.0.0:
version "2.3.0"
- resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1"
+ resolved "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz"
integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==
dependencies:
p-try "^2.0.0"
p-locate@^3.0.0:
version "3.0.0"
- resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4"
+ resolved "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz"
integrity sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==
dependencies:
p-limit "^2.0.0"
p-try@^2.0.0:
version "2.2.0"
- resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6"
+ resolved "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz"
integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==
pako@^1.0.10, pako@^1.0.11, pako@^1.0.6:
version "1.0.11"
- resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.11.tgz#6c9599d340d54dfd3946380252a35705a6b992bf"
+ resolved "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz"
integrity sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==
path-exists@^3.0.0:
version "3.0.0"
- resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515"
+ resolved "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz"
integrity sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=
pdf-lib@^1.16.0:
version "1.17.1"
- resolved "https://registry.yarnpkg.com/pdf-lib/-/pdf-lib-1.17.1.tgz#9e7dd21261a0c1fb17992580885b39e7d08f451f"
+ resolved "https://registry.npmjs.org/pdf-lib/-/pdf-lib-1.17.1.tgz"
integrity sha512-V/mpyJAoTsN4cnP31vc0wfNA1+p20evqqnap0KLoRUN0Yk/p3wN52DOEsL4oBFcLdb76hlpKPtzJIgo67j/XLw==
dependencies:
"@pdf-lib/standard-fonts" "^1.0.0"
@@ -739,44 +739,44 @@ pdf-lib@^1.16.0:
pend@~1.2.0:
version "1.2.0"
- resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50"
+ resolved "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz"
integrity sha1-elfrVQpng/kRUzH89GY9XI4AelA=
pify@^3.0.0:
version "3.0.0"
- resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176"
+ resolved "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz"
integrity sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=
pkg-up@^3.1.0:
version "3.1.0"
- resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-3.1.0.tgz#100ec235cc150e4fd42519412596a28512a0def5"
+ resolved "https://registry.npmjs.org/pkg-up/-/pkg-up-3.1.0.tgz"
integrity sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==
dependencies:
find-up "^3.0.0"
prepend-http@^2.0.0:
version "2.0.0"
- resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
+ resolved "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz"
integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=
process-nextick-args@~2.0.0:
version "2.0.1"
- resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2"
+ resolved "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz"
integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==
progress@^2.0.3:
version "2.0.3"
- resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8"
+ resolved "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz"
integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==
proto-list@~1.2.1:
version "1.2.4"
- resolved "https://registry.yarnpkg.com/proto-list/-/proto-list-1.2.4.tgz#212d5bfe1318306a420f6402b8e26ff39647a849"
+ resolved "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz"
integrity sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk=
pump@^3.0.0:
version "3.0.0"
- resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64"
+ resolved "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz"
integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==
dependencies:
end-of-stream "^1.1.0"
@@ -784,12 +784,12 @@ pump@^3.0.0:
punycode@^2.1.0:
version "2.1.1"
- resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec"
+ resolved "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz"
integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==
readable-stream@^2.2.2:
version "2.3.7"
- resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57"
+ resolved "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz"
integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==
dependencies:
core-util-is "~1.0.0"
@@ -802,19 +802,19 @@ readable-stream@^2.2.2:
require-from-string@^2.0.2:
version "2.0.2"
- resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909"
+ resolved "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz"
integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==
responselike@^1.0.2:
version "1.0.2"
- resolved "https://registry.yarnpkg.com/responselike/-/responselike-1.0.2.tgz#918720ef3b631c5642be068f15ade5a46f4ba1e7"
+ resolved "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz"
integrity sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=
dependencies:
lowercase-keys "^1.0.0"
roarr@^2.15.3:
version "2.15.4"
- resolved "https://registry.yarnpkg.com/roarr/-/roarr-2.15.4.tgz#f5fe795b7b838ccfe35dc608e0282b9eba2e7afd"
+ resolved "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz"
integrity sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==
dependencies:
boolean "^3.0.1"
@@ -826,134 +826,134 @@ roarr@^2.15.3:
safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1:
version "5.1.2"
- resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"
+ resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz"
integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==
sax@^1.2.4:
version "1.2.4"
- resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"
+ resolved "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz"
integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==
semver-compare@^1.0.0:
version "1.0.0"
- resolved "https://registry.yarnpkg.com/semver-compare/-/semver-compare-1.0.0.tgz#0dee216a1c941ab37e9efb1788f6afc5ff5537fc"
+ resolved "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz"
integrity sha1-De4hahyUGrN+nvsXiPavxf9VN/w=
semver@^6.2.0:
version "6.3.0"
- resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
+ resolved "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz"
integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==
semver@^7.3.2, semver@^7.3.5:
version "7.3.5"
- resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7"
+ resolved "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz"
integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==
dependencies:
lru-cache "^6.0.0"
serialize-error@^7.0.1:
version "7.0.1"
- resolved "https://registry.yarnpkg.com/serialize-error/-/serialize-error-7.0.1.tgz#f1360b0447f61ffb483ec4157c737fab7d778e18"
+ resolved "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz"
integrity sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==
dependencies:
type-fest "^0.13.1"
sprintf-js@^1.1.2:
version "1.1.2"
- resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.1.2.tgz#da1765262bf8c0f571749f2ad6c26300207ae673"
+ resolved "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz"
integrity sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==
string_decoder@~1.1.1:
version "1.1.1"
- resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8"
+ resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz"
integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==
dependencies:
safe-buffer "~5.1.0"
sumchecker@^3.0.1:
version "3.0.1"
- resolved "https://registry.yarnpkg.com/sumchecker/-/sumchecker-3.0.1.tgz#6377e996795abb0b6d348e9b3e1dfb24345a8e42"
+ resolved "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz"
integrity sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==
dependencies:
debug "^4.1.0"
to-readable-stream@^1.0.0:
version "1.0.0"
- resolved "https://registry.yarnpkg.com/to-readable-stream/-/to-readable-stream-1.0.0.tgz#ce0aa0c2f3df6adf852efb404a783e77c0475771"
+ resolved "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz"
integrity sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==
tslib@^1.11.1:
version "1.14.1"
- resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
+ resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz"
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==
tunnel@^0.0.6:
version "0.0.6"
- resolved "https://registry.yarnpkg.com/tunnel/-/tunnel-0.0.6.tgz#72f1314b34a5b192db012324df2cc587ca47f92c"
+ resolved "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz"
integrity sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==
type-fest@^0.13.1:
version "0.13.1"
- resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.13.1.tgz#0172cb5bce80b0bd542ea348db50c7e21834d934"
+ resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz"
integrity sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==
type-fest@^1.0.2:
version "1.4.0"
- resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-1.4.0.tgz#e9fb813fe3bf1744ec359d55d1affefa76f14be1"
+ resolved "https://registry.npmjs.org/type-fest/-/type-fest-1.4.0.tgz"
integrity sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==
typedarray@^0.0.6:
version "0.0.6"
- resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
+ resolved "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
universalify@^0.1.0:
version "0.1.2"
- resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66"
+ resolved "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz"
integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==
universalify@^2.0.0:
version "2.0.0"
- resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717"
+ resolved "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz"
integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==
uri-js@^4.2.2:
version "4.4.1"
- resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e"
+ resolved "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz"
integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==
dependencies:
punycode "^2.1.0"
url-parse-lax@^3.0.0:
version "3.0.0"
- resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-3.0.0.tgz#16b5cafc07dbe3676c1b1999177823d6503acb0c"
+ resolved "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz"
integrity sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=
dependencies:
prepend-http "^2.0.0"
util-deprecate@~1.0.1:
version "1.0.2"
- resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
+ resolved "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz"
integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=
vary@~1.1.2:
version "1.1.2"
- resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"
+ resolved "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz"
integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=
wrappy@1:
version "1.0.2"
- resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
+ resolved "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz"
integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=
yallist@^4.0.0:
version "4.0.0"
- resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
+ resolved "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz"
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==
yauzl@^2.10.0:
version "2.10.0"
- resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.10.0.tgz#c7eb17c93e112cb1086fa6d8e51fb0667b79a5f9"
+ resolved "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz"
integrity sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=
dependencies:
buffer-crc32 "~0.2.3"