Skip to content

draw.io is a JavaScript, client-side editor for general diagramming.

29.6.10 release

David Benson890ea0b7880f
diff --git a/.claude/launch.json b/.claude/launch.json
new file mode 100644
index 000000000..84631e8b3
--- /dev/null
+++ b/.claude/launch.json
@@ -0,0 +1,11 @@
+{
+ "version": "0.0.1",
+ "configurations": [
+ {
+ "name": "dos-drawio",
+ "runtimeExecutable": "python3",
+ "runtimeArgs": ["-m", "http.server", "8765"],
+ "port": 8765
+ }
+ ]
+}
diff --git a/ChangeLog b/ChangeLog
index f9876a1f4..445181976 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,27 @@
+02-APR-2026: 29.6.10
+
+- Fixes build dashboard URL
+- Fixes selection only option in print dialog for single page files [jgraph/drawio#5530]
+- Remove unused GraphViewer.mergeXmlDelta and helper functions
+- Adds pop effect easter egg to create hash property
+- Add collapsible sections to format panel
+- Increase sidebar padding and spacing for lighter feel
+- Increase sidebar padding and spacing for lighter feel
+- Enhance More Shapes dialog with new styles and layout adjustments
+- Improve More Shapes dialog footer spacing and alignment
+
+01-APR-2026: 29.6.9
+
+- Adds elastic pop animation and popIn/popOut custom link actions
+- fix: skip spacebar panning when focus is in a form element [jgraph/drawio#5529]
+
+31-MAR-2026: 29.6.8
+
+- Adds GraphViewer.mergeXmlDelta
+- Fixes dy is not defined in EditorUi.showPublishLinkDialog
+- Fixes TypeError in translateCell for invalid geometry objects
+- Fixes TypeError in GraphViewer hiddenTags when diagrams is undefined
+
31-MAR-2026: 29.6.7
- Adds compressed XML support for SVG CLI export [jgraph/drawio-desktop#2143]
diff --git a/VERSION b/VERSION
index 59330f856..e9b6b2f8e 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-29.6.7
\ No newline at end of file
+29.6.10
\ No newline at end of file
diff --git a/src/main/webapp/js/app.min.js b/src/main/webapp/js/app.min.js
index acac198fe..84e48dc21 100644
--- a/src/main/webapp/js/app.min.js
+++ b/src/main/webapp/js/app.min.js
@@ -69,7 +69,7 @@ b),-1!==c&&c===b&&(window.DRAWIO_LOG_URL="https://log.draw.io"))}})();"1"==urlPa
"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);"function"!==typeof window.structuredClone&&(window.structuredClone=function(a){return a});window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use","foreignObject"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,HTML_INTEGRATION_POINTS:{foreignobject:!0},ADD_ATTR:["target","content","pointer-events","requiredFeatures"]};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:"29.6.7",IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),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.")&&
+window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"29.6.10",IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),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:-1<navigator.userAgent.toLowerCase().indexOf("firefox"),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]"!==document.createElementNS("http://www.w3.org/2000/svg","foreignObject").toString()||0<=navigator.userAgent.indexOf("Opera/"),IS_WIN:0<navigator.appVersion.indexOf("Win"),IS_MAC:0<navigator.appVersion.indexOf("Mac"),IS_CHROMEOS:/\bCrOS\b/.test(navigator.appVersion),
@@ -1327,8 +1327,8 @@ mxGraph.prototype.moveCells=function(a,b,c,d,e,f,g){b=null!=b?b:0;c=null!=c?c:0;
!0);if(d)for(m=0;m<a.length;m++)q=this.getCellGeometry(a[m]),r=this.model.getParent(k[m]),null!=q&&q.relative&&this.model.isEdge(r)&&this.model.contains(r)&&this.model.add(r,a[m])}this.fireEvent(new mxEventObject(mxEvent.MOVE_CELLS,"cells",a,"dx",b,"dy",c,"clone",d,"target",e,"event",f))}finally{this.model.endUpdate()}}return a};
mxGraph.prototype.cellsMoved=function(a,b,c,d,e,f){if(null!=a&&(0!=b||0!=c)){f=null!=f?f:!1;this.model.beginUpdate();try{d&&this.disconnectGraph(a);for(var g=0;g<a.length;g++)this.translateCell(a[g],b,c),f&&this.isExtendParent(a[g])?this.extendParent(a[g]):e&&this.constrainChild(a[g]),this.isContractParentsOnMove()&&this.isContractParent(a[g])&&this.contractParent(a[g]);this.resetEdgesOnMove&&this.resetEdges(a);this.fireEvent(new mxEventObject(mxEvent.CELLS_MOVED,"cells",a,"dx",b,"dy",c,"disconnect",
d))}finally{this.model.endUpdate()}}};
-mxGraph.prototype.translateCell=function(a,b,c){var d=this.model.getGeometry(a);if(null!=d){b=parseFloat(b);c=parseFloat(c);d=d.clone();d.translate(b,c,this.model.isEdge(a));d.relative||!this.model.isVertex(a)||this.isAllowNegativeCoordinates()||(d.x=Math.max(0,parseFloat(d.x)),d.y=Math.max(0,parseFloat(d.y)));if(d.relative&&!this.model.isEdge(a)){var e=this.model.getParent(a),f=0;this.model.isVertex(e)&&(e=this.getCurrentCellStyle(e),f=mxUtils.getValue(e,mxConstants.STYLE_ROTATION,0));0!=f&&(f=mxUtils.toRadians(-f),
-e=Math.cos(f),f=Math.sin(f),c=mxUtils.getRotatedPoint(new mxPoint(b,c),e,f,new mxPoint(0,0)),b=c.x,c=c.y);null==d.offset?d.offset=new mxPoint(Math.round(b),Math.round(c)):(d.offset.x=Math.round(parseFloat(d.offset.x+b)),d.offset.y=Math.round(parseFloat(d.offset.y+c)))}this.model.setGeometry(a,d)}};
+mxGraph.prototype.translateCell=function(a,b,c){var d=this.model.getGeometry(a);if(null!=d&&"function"===typeof d.translate){b=parseFloat(b);c=parseFloat(c);d=d.clone();d.translate(b,c,this.model.isEdge(a));d.relative||!this.model.isVertex(a)||this.isAllowNegativeCoordinates()||(d.x=Math.max(0,parseFloat(d.x)),d.y=Math.max(0,parseFloat(d.y)));if(d.relative&&!this.model.isEdge(a)){var e=this.model.getParent(a),f=0;this.model.isVertex(e)&&(e=this.getCurrentCellStyle(e),f=mxUtils.getValue(e,mxConstants.STYLE_ROTATION,
+0));0!=f&&(f=mxUtils.toRadians(-f),e=Math.cos(f),f=Math.sin(f),c=mxUtils.getRotatedPoint(new mxPoint(b,c),e,f,new mxPoint(0,0)),b=c.x,c=c.y);null==d.offset?d.offset=new mxPoint(Math.round(b),Math.round(c)):(d.offset.x=Math.round(parseFloat(d.offset.x+b)),d.offset.y=Math.round(parseFloat(d.offset.y+c)))}this.model.setGeometry(a,d)}};
mxGraph.prototype.getCellContainmentArea=function(a){if(null!=a&&!this.model.isEdge(a)){var b=this.model.getParent(a);if(null!=b&&b!=this.getDefaultParent()){var c=this.model.getGeometry(b);if(null!=c){var d=a=0,e=c.width;c=c.height;if(this.isSwimlane(b)){var f=this.getStartSize(b),g=this.getCurrentCellStyle(b);b=mxUtils.getValue(g,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST);var k=1==mxUtils.getValue(g,mxConstants.STYLE_FLIPH,0);g=1==mxUtils.getValue(g,mxConstants.STYLE_FLIPV,0);if(b==
mxConstants.DIRECTION_SOUTH||b==mxConstants.DIRECTION_NORTH){var l=f.width;f.width=f.height;f.height=l}if(b==mxConstants.DIRECTION_EAST&&!g||b==mxConstants.DIRECTION_NORTH&&!k||b==mxConstants.DIRECTION_WEST&&g||b==mxConstants.DIRECTION_SOUTH&&k)a=f.width,d=f.height;e-=f.width;c-=f.height}return new mxRectangle(a,d,e,c)}}}return null};mxGraph.prototype.getMaximumGraphBounds=function(){return this.maximumGraphBounds};
mxGraph.prototype.constrainChild=function(a,b){if(null!=a&&(b=this.getCellGeometry(a),null!=b&&(this.isConstrainRelativeChildren()||!b.relative))){var c=this.model.getParent(a);this.getCellGeometry(c);var d=this.getMaximumGraphBounds();null!=d&&(c=this.getBoundingBoxFromGeometry([c],!1),null!=c&&(d=mxRectangle.fromRectangle(d),d.x-=c.x,d.y-=c.y));if(this.isConstrainChild(a)&&(c=this.getCellContainmentArea(a),null!=c)){var e=this.getOverlap(a);0<e&&(c=mxRectangle.fromRectangle(c),c.x-=c.width*e,c.y-=
@@ -2154,24 +2154,24 @@ Editor.enableInlineToolbar?this.createInlineToolbar():null;this.editor.graph.add
null!=f.inlineToolbar&&null!=S&&f.inlineToolbar.hide();v.apply(this,arguments)};var u=g.graphHandler.mouseUp;g.graphHandler.mouseUp=function(){u.apply(this,arguments);null!=f.inlineToolbar&&f.inlineToolbar.updateSelection()}}var x=mxVertexHandler.prototype.start;mxVertexHandler.prototype.start=function(){null!=f.inlineToolbar&&f.inlineToolbar.hide();x.apply(this,arguments)};var z=mxVertexHandler.prototype.mouseUp;mxVertexHandler.prototype.mouseUp=function(){z.apply(this,arguments);null!=f.inlineToolbar&&
f.inlineToolbar.updateSelection()};var E=mxEdgeHandler.prototype.start;mxEdgeHandler.prototype.start=function(){null!=f.inlineToolbar&&f.inlineToolbar.hide();E.apply(this,arguments)};var D=mxEdgeHandler.prototype.mouseUp;mxEdgeHandler.prototype.mouseUp=function(){D.apply(this,arguments);null!=f.inlineToolbar&&f.inlineToolbar.updateSelection()};mxEvent.addListener(this.diagramContainer,"mousemove",mxUtils.bind(this,function(S){var Y=mxUtils.getOffset(this.diagramContainer);0<mxEvent.getClientX(S)-
Y.x-this.diagramContainer.clientWidth||0<mxEvent.getClientY(S)-Y.y-this.diagramContainer.clientHeight?this.diagramContainer.setAttribute("title",mxResources.get("panTooltip")):this.diagramContainer.removeAttribute("title")}));var G=this.hoverIcons.isResetEvent;this.hoverIcons.isResetEvent=function(S,Y){return f.isSpaceDown()||G.apply(this,arguments)};this.keydownHandler=mxUtils.bind(this,function(S){if(Editor.passiveScroll){var Y=mxEvent.getSource(S);if(Y!=g.container&&!g.container.contains(Y)&&!g.isEditing())return}16==
-S.which?this.shiftDown=!0:32!=S.which||g.isEditing()?mxEvent.isConsumed(S)||27!=S.keyCode||this.hideDialog(null,!0):(this.spaceDown=!0,this.hoverIcons.reset(),g.container.style.cursor="move",g.isEditing()||mxEvent.consume(S))});mxEvent.addListener(document,"keydown",this.keydownHandler);this.keyupHandler=mxUtils.bind(this,function(S){g.container.style.cursor="";this.shiftDown=this.spaceDown=!1});mxEvent.addListener(document,"keyup",this.keyupHandler);var H=g.panningHandler.isForcePanningEvent;g.panningHandler.isForcePanningEvent=
-function(S){return null!=g.freehand&&g.freehand.isActive()?!1:H.apply(this,arguments)||f.isSpaceDown()||mxEvent.isMouseEvent(S.getEvent())&&(this.usePopupTrigger||!mxEvent.isPopupTrigger(S.getEvent()))&&(!mxEvent.isControlDown(S.getEvent())&&mxEvent.isRightMouseButton(S.getEvent())||mxEvent.isMiddleMouseButton(S.getEvent()))};var L=g.cellEditor.isStopEditingEvent;g.cellEditor.isStopEditingEvent=function(S){return L.apply(this,arguments)||13==S.keyCode&&(!mxClient.IS_SF&&mxEvent.isControlDown(S)||
-mxClient.IS_MAC&&mxEvent.isMetaDown(S)||mxClient.IS_SF&&mxEvent.isShiftDown(S))};var N=g.isZoomWheelEvent;g.isZoomWheelEvent=function(){return f.isSpaceDown()||N.apply(this,arguments)};var K=mxUtils.bind(this,function(){if(null!=this.toolbar)for(var S=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,Y=this.toolbar.container.firstChild;null!=Y;){var na=Y.getAttribute("data-min-width");null!=na&&parseInt(na)>S?Y.style.display="none":Y.style.display="";Y=Y.nextSibling}}),
-R=!1,V=null,U=null,W=null,ka=mxUtils.bind(this,function(){if(null!=this.toolbar&&R!=g.cellEditor.isContentEditing()){for(var S=this.toolbar.container.firstChild,Y=[];null!=S;){var na=S.nextSibling;S.parentNode.removeChild(S);Y.push(S);S=na}S=this.toolbar.fontMenu;na=this.toolbar.sizeMenu;if(null==W)this.toolbar.createTextToolbar();else{for(var Z=0;Z<W.length;Z++)this.toolbar.container.appendChild(W[Z]);this.toolbar.fontMenu=V;this.toolbar.sizeMenu=U}R=g.cellEditor.isContentEditing();V=S;U=na;W=Y;
-K()}});this.addListener("languageChanged",mxUtils.bind(this,function(){this.destroyWindows(!0);this.descriptorChanged();this.updateStatusAgain();ka()}));this.addListener("currentThemeChanged",K);mxEvent.addListener(window,"resize",K);K();g.isTouchPopupMenuEnabled=function(){return null==f.dialog};var aa=g.cellEditor.startEditing;g.cellEditor.startEditing=function(){aa.apply(this,arguments);ka();if(g.cellEditor.isContentEditing()){var S=!1,Y=function(){S||(S=!0,window.setTimeout(function(){var na=
-g.getSelectedEditingElement();null!=na&&(na=mxUtils.getCurrentStyle(na),null!=na&&null!=f.toolbar&&(f.toolbar.setFontName(mxUtils.getCssFontFamily(na.fontFamily)),f.toolbar.setFontSize(parseInt(na.fontSize))));S=!1},0))};mxEvent.addListener(g.cellEditor.textarea,"input",Y);mxEvent.addListener(g.cellEditor.textarea,"touchend",Y);mxEvent.addListener(g.cellEditor.textarea,"mouseup",Y);mxEvent.addListener(g.cellEditor.textarea,"keyup",Y);Y()}};var ea=g.cellEditor.stopEditing;g.cellEditor.stopEditing=
-function(S,Y){try{ea.apply(this,arguments),ka()}catch(na){f.handleError(na)}};g.container.setAttribute("tabindex","0");g.container.style.cursor="default";if(window.self===window.top&&null!=g.container.parentNode)try{g.container.focus()}catch(S){}var ca=g.fireMouseEvent;g.fireMouseEvent=function(S,Y,na){try{S==mxEvent.MOUSE_DOWN&&this.container.focus(),ca.apply(this,arguments)}catch(Z){f.handleError(Z)}};var pa=g.foldCells;g.foldCells=function(S,Y,na,Z,ja){try{pa.apply(this,arguments)}catch(ha){f.handleError(ha)}};
-g.popupMenuHandler.autoExpand=!0;null!=this.menus&&(g.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(S,Y,na){this.menus.createPopupMenu(S,Y,na)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(S){g.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(a);this.getKeyHandler=function(){return keyHandler};g.connectionHandler.addListener(mxEvent.CONNECT,function(S,Y){var na=[Y.getProperty("cell")];Y.getProperty("terminalInserted")&&(na.push(Y.getProperty("terminal")),
-window.setTimeout(function(){null!=f.hoverIcons&&f.hoverIcons.update(g.view.getState(na[na.length-1]))},0));g.pasteCellStyles(na)});var O=null,T=null;a=mxUtils.bind(this,function(){if(null!=this.toolbar){var S=this.getSelectionState();if(g.isEnabled()&&0<S.edges.length){if(null!=this.toolbar.edgeStyleMenu){var Y=this.getImageForEdgeStyle(S.style);1==S.edges.length&&"arrow"==S.style[mxConstants.STYLE_SHAPE]&&(Y=Format.straightImage.src);this.toolbar.edgeStyleMenu.style.backgroundImage="url("+Y+")"}null!=
-this.toolbar.edgeShapeMenu&&(this.toolbar.edgeShapeMenu.style.backgroundImage="url("+this.getImageForEdgeShape(S.style)+")")}else null!=this.toolbar.edgeStyleMenu&&(this.toolbar.edgeStyleMenu.style.backgroundImage="url("+O+")"),null!=this.toolbar.edgeShapeMenu&&(this.toolbar.edgeShapeMenu.style.backgroundImage="url("+T+")")}});g.selectionModel.addListener(mxEvent.CHANGE,a);g.getModel().addListener(mxEvent.CHANGE,a);this.addListener("styleChanged",mxUtils.bind(this,function(S,Y){S=Y.getProperty("force");
-(this.updateDefaultStyle||S)&&g.copyCellStyles(Y.getProperty("cells"),Y.getProperty("keys"),Y.getProperty("values"),g.currentVertexStyle,g.currentEdgeStyle,l,p);null!=this.toolbar&&(this.toolbar.setFontName(g.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(g.currentVertexStyle.fontSize||Menus.prototype.defaultFontSize),Y=this.getSelectionState(),null!=this.toolbar.edgeStyleMenu&&(O=this.getImageForEdgeStyle(g.currentEdgeStyle),0==Y.edges.length&&(this.toolbar.edgeStyleMenu.style.backgroundImage=
-"url("+O+")")),null!=this.toolbar.edgeShapeMenu&&(T=this.getImageForEdgeShape(g.currentEdgeStyle),0==Y.edges.length&&(this.toolbar.edgeShapeMenu.style.backgroundImage="url("+T+")")))}));null!=this.toolbar&&(a=mxUtils.bind(this,function(){var S=g.currentVertexStyle.fontFamily||"Helvetica",Y=String(g.currentVertexStyle.fontSize||"12"),na=g.getView().getState(g.getSelectionCell());null!=na&&(S=na.style[mxConstants.STYLE_FONTFAMILY]||S,Y=na.style[mxConstants.STYLE_FONTSIZE]||Y,10<S.length&&(S=S.substring(0,
-8)+"..."));this.toolbar.setFontName(S);this.toolbar.setFontSize(Y)}),g.getSelectionModel().addListener(mxEvent.CHANGE,a),g.getModel().addListener(mxEvent.CHANGE,a));g.addListener(mxEvent.CELLS_ADDED,function(S,Y){S=Y.getProperty("cells");Y=Y.getProperty("parent");null!=Y&&g.getModel().isLayer(Y)&&!g.isCellVisible(Y)&&null!=S&&0<S.length&&g.getModel().setVisible(Y,!0)});Graph.selectParentLayer&&g.selectionModel.addListener(mxEvent.CHANGE,function(){if(g.isEnabled()&&!g.isSelectionEmpty()){var S=g.getLayerForCells(g.getSelectionCells());
-null!=S&&g.setDefaultParent(S)}});this.gestureHandler=mxUtils.bind(this,function(S){this.isHideCurrentMenuEvent(S)&&this.hideCurrentMenu()});mxEvent.addGestureListeners(document,this.gestureHandler);var ba=null;this.resizeHandler=mxUtils.bind(this,function(){null!=ba&&window.clearTimeout(ba);ba=window.setTimeout(mxUtils.bind(this,function(){ba=null;this.windowResized()}),100)});mxEvent.addListener(window,"resize",this.resizeHandler);this.orientationChangeHandler=mxUtils.bind(this,function(){this.refresh()});
-mxEvent.addListener(window,"orientationchange",this.orientationChangeHandler);mxClient.IS_IOS&&!window.navigator.standalone&&"undefined"!==typeof Menus&&(this.scrollHandler=mxUtils.bind(this,function(){window.scrollTo(0,0)}),mxEvent.addListener(window,"scroll",this.scrollHandler));this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.resetScrollbars()}));this.addListener("gridEnabledChanged",mxUtils.bind(this,function(){g.view.validateBackground()}));this.addListener("backgroundColorChanged",
-mxUtils.bind(this,function(){g.view.validateBackground()}));g.addListener("gridSizeChanged",mxUtils.bind(this,function(){g.isGridEnabled()&&g.view.validateBackground()}));this.editor.resetGraph()}this.init();g.standalone||this.open()};EditorUi.compactUi=!0;
+S.which?this.shiftDown=!0:32!=S.which||g.isEditing()?mxEvent.isConsumed(S)||27!=S.keyCode||this.hideDialog(null,!0):(Y=mxEvent.getSource(S),"INPUT"==Y.nodeName||"TEXTAREA"==Y.nodeName||"SELECT"==Y.nodeName||Y.isContentEditable||(this.spaceDown=!0,this.hoverIcons.reset(),g.container.style.cursor="move",mxEvent.consume(S)))});mxEvent.addListener(document,"keydown",this.keydownHandler);this.keyupHandler=mxUtils.bind(this,function(S){g.container.style.cursor="";this.shiftDown=this.spaceDown=!1});mxEvent.addListener(document,
+"keyup",this.keyupHandler);var H=g.panningHandler.isForcePanningEvent;g.panningHandler.isForcePanningEvent=function(S){return null!=g.freehand&&g.freehand.isActive()?!1:H.apply(this,arguments)||f.isSpaceDown()||mxEvent.isMouseEvent(S.getEvent())&&(this.usePopupTrigger||!mxEvent.isPopupTrigger(S.getEvent()))&&(!mxEvent.isControlDown(S.getEvent())&&mxEvent.isRightMouseButton(S.getEvent())||mxEvent.isMiddleMouseButton(S.getEvent()))};var L=g.cellEditor.isStopEditingEvent;g.cellEditor.isStopEditingEvent=
+function(S){return L.apply(this,arguments)||13==S.keyCode&&(!mxClient.IS_SF&&mxEvent.isControlDown(S)||mxClient.IS_MAC&&mxEvent.isMetaDown(S)||mxClient.IS_SF&&mxEvent.isShiftDown(S))};var N=g.isZoomWheelEvent;g.isZoomWheelEvent=function(){return f.isSpaceDown()||N.apply(this,arguments)};var K=mxUtils.bind(this,function(){if(null!=this.toolbar)for(var S=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,Y=this.toolbar.container.firstChild;null!=Y;){var na=Y.getAttribute("data-min-width");
+null!=na&&parseInt(na)>S?Y.style.display="none":Y.style.display="";Y=Y.nextSibling}}),R=!1,V=null,U=null,W=null,ka=mxUtils.bind(this,function(){if(null!=this.toolbar&&R!=g.cellEditor.isContentEditing()){for(var S=this.toolbar.container.firstChild,Y=[];null!=S;){var na=S.nextSibling;S.parentNode.removeChild(S);Y.push(S);S=na}S=this.toolbar.fontMenu;na=this.toolbar.sizeMenu;if(null==W)this.toolbar.createTextToolbar();else{for(var Z=0;Z<W.length;Z++)this.toolbar.container.appendChild(W[Z]);this.toolbar.fontMenu=
+V;this.toolbar.sizeMenu=U}R=g.cellEditor.isContentEditing();V=S;U=na;W=Y;K()}});this.addListener("languageChanged",mxUtils.bind(this,function(){this.destroyWindows(!0);this.descriptorChanged();this.updateStatusAgain();ka()}));this.addListener("currentThemeChanged",K);mxEvent.addListener(window,"resize",K);K();g.isTouchPopupMenuEnabled=function(){return null==f.dialog};var aa=g.cellEditor.startEditing;g.cellEditor.startEditing=function(){aa.apply(this,arguments);ka();if(g.cellEditor.isContentEditing()){var S=
+!1,Y=function(){S||(S=!0,window.setTimeout(function(){var na=g.getSelectedEditingElement();null!=na&&(na=mxUtils.getCurrentStyle(na),null!=na&&null!=f.toolbar&&(f.toolbar.setFontName(mxUtils.getCssFontFamily(na.fontFamily)),f.toolbar.setFontSize(parseInt(na.fontSize))));S=!1},0))};mxEvent.addListener(g.cellEditor.textarea,"input",Y);mxEvent.addListener(g.cellEditor.textarea,"touchend",Y);mxEvent.addListener(g.cellEditor.textarea,"mouseup",Y);mxEvent.addListener(g.cellEditor.textarea,"keyup",Y);Y()}};
+var ea=g.cellEditor.stopEditing;g.cellEditor.stopEditing=function(S,Y){try{ea.apply(this,arguments),ka()}catch(na){f.handleError(na)}};g.container.setAttribute("tabindex","0");g.container.style.cursor="default";if(window.self===window.top&&null!=g.container.parentNode)try{g.container.focus()}catch(S){}var ca=g.fireMouseEvent;g.fireMouseEvent=function(S,Y,na){try{S==mxEvent.MOUSE_DOWN&&this.container.focus(),ca.apply(this,arguments)}catch(Z){f.handleError(Z)}};var pa=g.foldCells;g.foldCells=function(S,
+Y,na,Z,ja){try{pa.apply(this,arguments)}catch(ha){f.handleError(ha)}};g.popupMenuHandler.autoExpand=!0;null!=this.menus&&(g.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(S,Y,na){this.menus.createPopupMenu(S,Y,na)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(S){g.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(a);this.getKeyHandler=function(){return keyHandler};g.connectionHandler.addListener(mxEvent.CONNECT,function(S,Y){var na=[Y.getProperty("cell")];
+Y.getProperty("terminalInserted")&&(na.push(Y.getProperty("terminal")),window.setTimeout(function(){null!=f.hoverIcons&&f.hoverIcons.update(g.view.getState(na[na.length-1]))},0));g.pasteCellStyles(na)});var O=null,T=null;a=mxUtils.bind(this,function(){if(null!=this.toolbar){var S=this.getSelectionState();if(g.isEnabled()&&0<S.edges.length){if(null!=this.toolbar.edgeStyleMenu){var Y=this.getImageForEdgeStyle(S.style);1==S.edges.length&&"arrow"==S.style[mxConstants.STYLE_SHAPE]&&(Y=Format.straightImage.src);
+this.toolbar.edgeStyleMenu.style.backgroundImage="url("+Y+")"}null!=this.toolbar.edgeShapeMenu&&(this.toolbar.edgeShapeMenu.style.backgroundImage="url("+this.getImageForEdgeShape(S.style)+")")}else null!=this.toolbar.edgeStyleMenu&&(this.toolbar.edgeStyleMenu.style.backgroundImage="url("+O+")"),null!=this.toolbar.edgeShapeMenu&&(this.toolbar.edgeShapeMenu.style.backgroundImage="url("+T+")")}});g.selectionModel.addListener(mxEvent.CHANGE,a);g.getModel().addListener(mxEvent.CHANGE,a);this.addListener("styleChanged",
+mxUtils.bind(this,function(S,Y){S=Y.getProperty("force");(this.updateDefaultStyle||S)&&g.copyCellStyles(Y.getProperty("cells"),Y.getProperty("keys"),Y.getProperty("values"),g.currentVertexStyle,g.currentEdgeStyle,l,p);null!=this.toolbar&&(this.toolbar.setFontName(g.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(g.currentVertexStyle.fontSize||Menus.prototype.defaultFontSize),Y=this.getSelectionState(),null!=this.toolbar.edgeStyleMenu&&(O=this.getImageForEdgeStyle(g.currentEdgeStyle),
+0==Y.edges.length&&(this.toolbar.edgeStyleMenu.style.backgroundImage="url("+O+")")),null!=this.toolbar.edgeShapeMenu&&(T=this.getImageForEdgeShape(g.currentEdgeStyle),0==Y.edges.length&&(this.toolbar.edgeShapeMenu.style.backgroundImage="url("+T+")")))}));null!=this.toolbar&&(a=mxUtils.bind(this,function(){var S=g.currentVertexStyle.fontFamily||"Helvetica",Y=String(g.currentVertexStyle.fontSize||"12"),na=g.getView().getState(g.getSelectionCell());null!=na&&(S=na.style[mxConstants.STYLE_FONTFAMILY]||
+S,Y=na.style[mxConstants.STYLE_FONTSIZE]||Y,10<S.length&&(S=S.substring(0,8)+"..."));this.toolbar.setFontName(S);this.toolbar.setFontSize(Y)}),g.getSelectionModel().addListener(mxEvent.CHANGE,a),g.getModel().addListener(mxEvent.CHANGE,a));g.addListener(mxEvent.CELLS_ADDED,function(S,Y){S=Y.getProperty("cells");Y=Y.getProperty("parent");null!=Y&&g.getModel().isLayer(Y)&&!g.isCellVisible(Y)&&null!=S&&0<S.length&&g.getModel().setVisible(Y,!0)});Graph.selectParentLayer&&g.selectionModel.addListener(mxEvent.CHANGE,
+function(){if(g.isEnabled()&&!g.isSelectionEmpty()){var S=g.getLayerForCells(g.getSelectionCells());null!=S&&g.setDefaultParent(S)}});this.gestureHandler=mxUtils.bind(this,function(S){this.isHideCurrentMenuEvent(S)&&this.hideCurrentMenu()});mxEvent.addGestureListeners(document,this.gestureHandler);var ba=null;this.resizeHandler=mxUtils.bind(this,function(){null!=ba&&window.clearTimeout(ba);ba=window.setTimeout(mxUtils.bind(this,function(){ba=null;this.windowResized()}),100)});mxEvent.addListener(window,
+"resize",this.resizeHandler);this.orientationChangeHandler=mxUtils.bind(this,function(){this.refresh()});mxEvent.addListener(window,"orientationchange",this.orientationChangeHandler);mxClient.IS_IOS&&!window.navigator.standalone&&"undefined"!==typeof Menus&&(this.scrollHandler=mxUtils.bind(this,function(){window.scrollTo(0,0)}),mxEvent.addListener(window,"scroll",this.scrollHandler));this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.resetScrollbars()}));this.addListener("gridEnabledChanged",
+mxUtils.bind(this,function(){g.view.validateBackground()}));this.addListener("backgroundColorChanged",mxUtils.bind(this,function(){g.view.validateBackground()}));g.addListener("gridSizeChanged",mxUtils.bind(this,function(){g.isGridEnabled()&&g.view.validateBackground()}));this.editor.resetGraph()}this.init();g.standalone||this.open()};EditorUi.compactUi=!0;
EditorUi.parsePng=function(a,b,e){function f(l,p){var k=d;d+=p;return l.substring(k,d)}function g(l){l=f(l,4);return l.charCodeAt(3)+(l.charCodeAt(2)<<8)+(l.charCodeAt(1)<<16)+(l.charCodeAt(0)<<24)}var d=0;if(f(a,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=e&&e();else if(f(a,4),"IHDR"!=f(a,4))null!=e&&e();else{f(a,17);do{e=g(a);var h=f(a,4);if(null!=b&&b(d-8,h,e))break;value=f(a,e);f(a,4);if("IEND"==h)break}while(e)}};mxUtils.extend(EditorUi,mxEventSource);
-EditorUi.prototype.splitSize=mxClient.IS_TOUCH||mxClient.IS_POINTER?12:8;EditorUi.prototype.formatEnabled=!0;EditorUi.prototype.formatWidth=240;EditorUi.prototype.defaultSidebarWidth=Math.min(screen.width/2,"large"!=urlParams["sidebar-entries"]?220:230);EditorUi.prototype.hsplitPosition=screen.width<=Editor.smallScreenWidth?0:EditorUi.prototype.defaultSidebarWidth;EditorUi.prototype.allowAnimation=!0;EditorUi.prototype.lightboxMaxFitScale=2;EditorUi.prototype.lightboxVerticalDivider=4;
+EditorUi.prototype.splitSize=mxClient.IS_TOUCH||mxClient.IS_POINTER?12:8;EditorUi.prototype.formatEnabled=!0;EditorUi.prototype.formatWidth=240;EditorUi.prototype.defaultSidebarWidth=Math.min(screen.width/2,"large"!=urlParams["sidebar-entries"]?232:242);EditorUi.prototype.hsplitPosition=screen.width<=Editor.smallScreenWidth?0:EditorUi.prototype.defaultSidebarWidth;EditorUi.prototype.allowAnimation=!0;EditorUi.prototype.lightboxMaxFitScale=2;EditorUi.prototype.lightboxVerticalDivider=4;
EditorUi.prototype.hsplitClickEnabled=!1;EditorUi.prototype.updateDefaultStyle=!1;EditorUi.prototype.spaceDown=!1;EditorUi.prototype.shiftDown=!1;
EditorUi.prototype.init=function(){var a=this.editor.graph;if(!a.standalone){"0"!=urlParams["shape-picker"]&&this.installShapePicker();mxEvent.addListener(a.container,"scroll",mxUtils.bind(this,function(){a.tooltipHandler.hide();null!=a.connectionHandler&&null!=a.connectionHandler.constraintHandler&&a.connectionHandler.constraintHandler.reset()}));a.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){a.tooltipHandler.hide();var f=a.getRubberband();null!=f&&f.cancel()}));mxEvent.addListener(a.container,
"keydown",mxUtils.bind(this,function(f){this.onKeyDown(f);this.onKeyPress(f)}));this.installTypingShim();this.addUndoListener();this.addBeforeUnloadListener();a.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.updateActionStates()}));a.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.updateActionStates()}));var b=a.setDefaultParent,e=this;this.editor.graph.setDefaultParent=function(){b.apply(this,arguments);e.updateActionStates()};a.showLinkDialog=
@@ -2747,7 +2747,11 @@ Graph.prototype.createWipeAnimations=function(a,b){for(var e=[],f=0;f<a.length;f
Graph.prototype.createEdgeWipeAnimation=function(a,b){var e=a.absolutePoints.slice(),f=a.segments,g=a.length,d=e.length;return{execute:mxUtils.bind(this,function(h,l){if(null!=a.shape){var p=[e[0]];l=h/l;b||(l=1-l);for(var k=g*l,v=1;v<d;v++)if(k<=f[v-1]){p.push(new mxPoint(e[v-1].x+(e[v].x-e[v-1].x)*k/f[v-1],e[v-1].y+(e[v].y-e[v-1].y)*k/f[v-1]));break}else k-=f[v-1],p.push(e[v]);a.shape.points=p;a.shape.redraw();0==h&&Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),1);null!=a.text&&null!=
a.text.node&&(a.text.node.style.opacity=l)}}),stop:mxUtils.bind(this,function(){null!=a.shape&&(a.shape.points=e,a.shape.redraw(),null!=a.text&&null!=a.text.node&&(a.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),b?1:0))})}};
Graph.prototype.createVertexWipeAnimation=function(a,b){var e=new mxRectangle.fromRectangle(a.shape.bounds);return{execute:mxUtils.bind(this,function(f,g){null!=a.shape&&(g=f/g,b||(g=1-g),a.shape.bounds=new mxRectangle(e.x,e.y,e.width*g,e.height),a.shape.redraw(),0==f&&Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),1),null!=a.text&&null!=a.text.node&&(a.text.node.style.opacity=g))}),stop:mxUtils.bind(this,function(){null!=a.shape&&(a.shape.bounds=e,a.shape.redraw(),null!=a.text&&null!=a.text.node&&
-(a.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),b?1:0))})}};Graph.prototype.executeAnimations=function(a,b,e,f){e=null!=e?e:30;f=null!=f?f:30;var g=null,d=0,h=mxUtils.bind(this,function(){if(d==e||this.stoppingCustomActions){window.clearInterval(g);for(var l=0;l<a.length;l++)a[l].stop();null!=b&&b()}else for(l=0;l<a.length;l++)a[l].execute(d,e);d++});g=window.setInterval(h,f);h()};
+(a.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),b?1:0))})}};
+Graph.prototype.createVertexPopAnimation=function(a,b){var e=new mxRectangle.fromRectangle(a.shape.bounds),f=e.getCenterX(),g=e.getCenterY();return{execute:mxUtils.bind(this,function(d,h){if(null!=a.shape){h=d/h;b||(h=1-h);var l=1-Math.exp(-5*h)*Math.cos(5*Math.PI*h);a.shape.bounds=new mxRectangle(f-e.width*l/2,g-e.height*l/2,e.width*l,e.height*l);a.shape.redraw();0==d&&Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),1);null!=a.text&&null!=a.text.node&&(a.text.node.style.opacity=Math.min(1,
+3*h))}}),stop:mxUtils.bind(this,function(){null!=a.shape&&(a.shape.bounds=e,a.shape.redraw(),null!=a.text&&null!=a.text.node&&(a.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),b?1:0))})}};
+Graph.prototype.createPopAnimations=function(a,b){for(var e=[],f=0;f<a.length;f++){var g=this.view.getState(a[f]);null!=g&&null!=g.shape&&(this.model.isEdge(g.cell)&&null!=g.absolutePoints&&1<g.absolutePoints.length?e.push(this.createEdgeWipeAnimation(g,b)):this.model.isVertex(g.cell)&&null!=g.shape.bounds&&e.push(this.createVertexPopAnimation(g,b)))}return e};
+Graph.prototype.executeAnimations=function(a,b,e,f){e=null!=e?e:30;f=null!=f?f:30;var g=null,d=0,h=mxUtils.bind(this,function(){if(d==e||this.stoppingCustomActions){window.clearInterval(g);for(var l=0;l<a.length;l++)a[l].stop();null!=b&&b()}else for(l=0;l<a.length;l++)a[l].execute(d,e);d++});g=window.setInterval(h,f);h()};
Graph.prototype.executeAnimationsStepped=function(a,b,e,f){b=null!=b?b:30;var g=0,d=mxUtils.bind(this,function(){if(g<=b){for(var h=0;h<a.length;h++)a[h].execute(g,b);e(g,b,function(){g++;d()})}else{for(h=0;h<a.length;h++)a[h].stop();null!=f&&f()}});d()};Graph.prototype.getPageSize=function(){return this.pageVisible&&null!=this.pageFormat?new mxRectangle(0,0,this.pageFormat.width*this.pageScale,this.pageFormat.height*this.pageScale):this.scrollTileSize};
Graph.prototype.getPageLayout=function(a,b,e){a=null!=a?a:this.getGraphBounds();b=null!=b?b:this.view.translate;e=null!=e?e:this.view.scale;var f=this.getPageSize();if(0==a.width||0==a.height)return new mxRectangle(0,0,1,1);var g=Math.floor(Math.ceil(a.x/e-b.x)/f.width),d=Math.floor(Math.ceil(a.y/e-b.y)/f.height);return new mxRectangle(g,d,Math.ceil((Math.floor((a.x+a.width)/e)-b.x)/f.width)-g,Math.ceil((Math.floor((a.y+a.height)/e)-b.y)/f.height)-d)};
Graph.prototype.getDefaultTranslate=function(a){var b=this.getPagePadding(),e=this.getPageSize();return new mxPoint(b.x-a.x*e.width,b.y-a.y*e.height)};Graph.prototype.updateMinimumSize=function(){var a=this.getPageLayout(),b=this.getPagePadding(),e=this.getPageSize(),f=Math.ceil(2*b.x+a.width*e.width);a=Math.ceil(2*b.y+a.height*e.height);if(null==this.minimumGraphSize||this.minimumGraphSize.width!=f||this.minimumGraphSize.height!=a)this.minimumGraphSize=new mxRectangle(0,0,f,a)};
@@ -3142,7 +3146,7 @@ this.linkHint&&(q=new mxPoint(this.state.getCenterX(),this.state.getCenterY()),B
q.x+q.width/2+"px",this.linkHint.style.top=Math.round(C+this.verticalOffset/2+Editor.hintOffset)+"px",this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":"")};var Aa=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(){Aa.apply(this,arguments);this.destroyMoveHandles();this.destroyCornerHandles();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 ya=mxEdgeHandler.prototype.redrawHandles;mxEdgeHandler.prototype.redrawHandles=function(){if(null!=this.marker&&(ya.apply(this),null!=this.state&&null!=this.linkHint)){var q=this.state;null!=this.state.text&&null!=this.state.text.bounds&&(q=new mxRectangle(q.x,q.y,q.width,q.height),q.add(this.state.text.bounds));
this.linkHint.style.left=q.x+q.width/2+"px";this.linkHint.style.top=Math.round(q.y+q.height+Editor.hintOffset)+"px";this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":""}};var Wa=mxEdgeHandler.prototype.reset;mxEdgeHandler.prototype.reset=function(){Wa.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility="")};var Ta=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){Ta.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)}}();Format=function(a,b){this.editorUi=a;this.container=b};Format.noMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2.5" d="M 0 8 L 24 8" stroke="black" fill="black"/>',32,20);Format.classicFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2.5" d="M 0 8 L 10 2 L 5 8 L 10 14 Z M 0 8 L 24 8" stroke="black" fill="black"/>',32,20);
+this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();Format=function(a,b){this.editorUi=a;this.container=b;this.collapsedSections={}};Format.noMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2.5" d="M 0 8 L 24 8" stroke="black" fill="black"/>',32,20);Format.classicFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2.5" d="M 0 8 L 10 2 L 5 8 L 10 14 Z M 0 8 L 24 8" stroke="black" fill="black"/>',32,20);
Format.classicThinFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2.5" d="M 0 8 L 8 4 L 3 8 L 8 12 Z M 0 8 L 24 8" stroke="black" fill="black"/>',32,20);Format.openFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2.5" d="M 8 0 L 0 8 L 8 16 M 0 8 L 24 8" stroke="black" fill="transparent"/>',32,20);
Format.openThinFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2.5" d="M 8 4 L 0 8 L 8 12 M 0 8 L 24 8" stroke="black" fill="transparent"/>',32,20);Format.openAsyncFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2.5" d="M 8 4 L 0 8 L 24 8" stroke="black" fill="transparent"/>',32,20);
Format.blockFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2.5" d="M 0 8 L 8 2 L 8 14 Z M 0 8 L 24 8" stroke="black" fill="black"/>',32,20);Format.blockThinFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2.5" d="M 0 8 L 8 4 L 8 12 Z M 0 8 L 24 8" stroke="black" fill="black"/>',32,20);
@@ -3185,6 +3189,8 @@ BaseFormatPanel.prototype.installInputHandler=function(a,b,e,f,g,d,h,l,p){d=null
u=null),h(G),a.value=(p?this.inUnit(G):G)+d,x=!1);else if(G!=mxUtils.getValue(k.getSelectionState().style,b,e)){v.isEditing()&&v.stopEditing(!0);v.getModel().beginUpdate();try{var H=k.getSelectionState().cells;v.setCellStyles(b,G,H);b==mxConstants.STYLE_FONTSIZE&&v.updateLabelElements(H,function(N){N.removeAttribute("size");N.style.fontSize="";""==N.getAttribute("style")&&N.removeAttribute("style")});for(var L=0;L<H.length;L++)0==v.model.getChildCount(H[L])&&v.autoSizeCell(H[L],!1),b!=mxConstants.STYLE_FONTSIZE&&
v.isAutosizeTextCell(H[L])&&v.model.isVertex(H[L])&&v.updateAutosizeTextFontSize(H[L],v.getCurrentCellStyle(H[L],!0));k.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[G],"cells",H))}finally{v.getModel().endUpdate()}}a.value=(p?this.inUnit(G):G)+d}mxEvent.consume(D)});h&&v.cellEditor.isContentEditing()&&mxEvent.addGestureListeners(a,mxUtils.bind(this,function(D){document.activeElement==v.cellEditor.textarea&&(u=v.cellEditor.saveSelection())}));mxEvent.addListener(a,"change",E);mxEvent.addListener(a,
"blur",E);return E};BaseFormatPanel.prototype.createPanel=function(){var a=document.createElement("div");a.className="geFormatSection";return a};BaseFormatPanel.prototype.createTitle=function(a){var b=document.createElement("div");b.className="geFormatSectionTitle";b.setAttribute("title",a);mxUtils.write(b,a);return b};
+BaseFormatPanel.prototype.createCollapsibleSection=function(a,b){var e=this.format.collapsedSections;b=null!=e[a]?e[a]:b;var f=document.createElement("div");f.className="geFormatSection";var g=document.createElement("div");g.className="geCollapsibleTitle"+(b?"":" geExpanded");g.setAttribute("title",a);mxUtils.write(g,a);f.appendChild(g);var d=document.createElement("div");d.className="geCollapsibleContent"+(b?" geCollapsed":"");f.appendChild(d);mxEvent.addListener(g,"click",function(){g.classList.toggle("geExpanded");
+d.classList.toggle("geCollapsed");e[a]=!g.classList.contains("geExpanded")});return{wrapper:f,contentDiv:d}};BaseFormatPanel.prototype.syncCollapsibleVisibility=function(a,b){var e=function(){a.style.display="none"==b.style.display?"none":""};e();if("undefined"!==typeof MutationObserver){var f=new MutationObserver(e);f.observe(b,{attributes:!0,attributeFilter:["style"]});this.listeners.push({destroy:function(){f.disconnect()}})}};
BaseFormatPanel.prototype.addAction=function(a,b){var e=this.editorUi.actions.get(b);b=null;if(null!=e&&e.isEnabled()){b=mxUtils.button(e.getTitle(),mxUtils.bind(this,function(g){try{e.funct(g,g)}catch(d){this.editorUi.handleError(d)}}));var f=null!=e.shortcut?" ("+e.shortcut+")":"";b.setAttribute("title",e.getTitle()+f);b.style.marginBottom="2px";b.className="geFullWidthElement";a.appendChild(b)}return b};
BaseFormatPanel.prototype.addActions=function(a,b){for(var e=null,f=null,g=0,d=0;d<b.length;d++){var h=this.addAction(a,b[d]);null!=h&&(g++,0==mxUtils.mod(g,2)&&(f.style.marginRight="4px",f.style.width="104px",h.style.width="104px",e.parentNode.removeChild(e)),e=mxUtils.br(a),f=h)}return g};
BaseFormatPanel.prototype.createStepper=function(a,b,e,f,g,d,h){function l(x,z,E){""==a.value&&(a.value=null!=d?d:z);z=h?parseFloat(a.value):parseInt(a.value);isNaN(z)||(a.value=z+x,null!=b&&b(E))}e=null!=e?e:1;var p=10*e;f=document.createElement("div");f.className="geBtnStepper";f.style.position="absolute";f.style.left="200px";var k=document.createElement("div");k.style.height="9px";k.style.backgroundImage="url("+Editor.arrowUpImage+")";k.style.width="10px";f.appendChild(k);var v=k.cloneNode(!1);
@@ -3216,13 +3222,14 @@ mxEvent.consume(u)):27==u.keyCode&&(v(null,null,!0),h.container.focus(),mxEvent.
BaseFormatPanel.prototype.addLabel=function(a,b,e,f){f=null!=f?f:61;var g=document.createElement("div");mxUtils.write(g,b);g.setAttribute("title",b);g.style.position="absolute";g.style.left=226-e-f+"px";g.style.width=f+"px";g.style.marginTop="10px";g.style.display="flex";g.style.justifyContent="center";a.appendChild(g);return g};
BaseFormatPanel.prototype.addKeyHandler=function(a,b){mxEvent.addListener(a,"keydown",mxUtils.bind(this,function(e){13==e.keyCode?(this.editorUi.editor.graph.container.focus(),mxEvent.consume(e)):27==e.keyCode&&(null!=b&&b(null,null,!0),this.editorUi.editor.graph.container.focus(),mxEvent.consume(e))}))};BaseFormatPanel.prototype.destroy=function(){if(null!=this.listeners){for(var a=0;a<this.listeners.length;a++)this.listeners[a].destroy();this.listeners=null}};
ArrangePanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};mxUtils.extend(ArrangePanel,BaseFormatPanel);
-ArrangePanel.prototype.init=function(){var a=this.editorUi.getSelectionState();0<a.cells.length&&(this.container.appendChild(this.addLayerOps(this.createPanel())),this.addGeometry(this.container),this.addEdgeGeometry(this.container),a.containsLabel&&0!=a.edges.length||this.container.appendChild(this.addAngle(this.createPanel())),a.containsLabel||this.container.appendChild(this.addFlip(this.createPanel())),this.container.appendChild(this.addAlign(this.createPanel())),1<a.vertices.length&&!a.cell&&
-!a.row&&this.container.appendChild(this.addDistribute(this.createPanel())),this.container.appendChild(this.addTable(this.createPanel())));this.container.appendChild(this.addGroupOps(this.createPanel()))};
-ArrangePanel.prototype.addTable=function(a){var b=this.editorUi,e=b.editor.graph,f=b.getSelectionState();a.appendChild(this.createTitle(mxResources.get("table")));var g=document.createElement("div");g.style.position="relative";g.style.paddingLeft="0px";g.style.borderWidth="0px";g.style.width="220px";g.className="geToolbarContainer";var d=f.vertices[0];1<e.getSelectionCount()&&(e.isTableCell(d)&&(d=e.model.getParent(d)),e.isTableRow(d)&&(d=e.model.getParent(d)));var h=f.table||f.row||f.cell,l=e.isStack(d)||
-e.isStackChild(d),p=h;l&&(h="0"==(e.isStack(d)?f.style:e.getCellStyle(e.model.getParent(d))).horizontalStack,p=!h);var k=[];p&&(k=k.concat([b.addButton(Editor.addColumnLeftImage,mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{l?e.insertLane(d,!0):e.insertTableColumn(d,!0)}catch(v){b.handleError(v)}}),g),b.addButton(Editor.addColumnRightImage,mxResources.get("insertColumnAfter"),mxUtils.bind(this,function(){try{l?e.insertLane(d,!1):e.insertTableColumn(d,!1)}catch(v){b.handleError(v)}}),
-g),b.addButton(Editor.removeColumnImage,mxResources.get("deleteColumn"),mxUtils.bind(this,function(){try{l?e.deleteLane(d):e.deleteTableColumn(d)}catch(v){b.handleError(v)}}),g)]));h&&(k=k.concat([b.addButton(Editor.addRowAboveImage,mxResources.get("insertRowBefore"),mxUtils.bind(this,function(){try{l?e.insertLane(d,!0):e.insertTableRow(d,!0)}catch(v){b.handleError(v)}}),g),b.addButton(Editor.addRowBelowImage,mxResources.get("insertRowAfter"),mxUtils.bind(this,function(){try{l?e.insertLane(d,!1):
-e.insertTableRow(d,!1)}catch(v){b.handleError(v)}}),g),b.addButton(Editor.removeRowImage,mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{l?e.deleteLane(d):e.deleteTableRow(d)}catch(v){b.handleError(v)}}),g)]));if(0<k.length){a.appendChild(g);3<k.length&&(k[2].style.marginRight="10px");p=0;if(null!=f.mergeCell)p+=this.addActions(a,["mergeCells"]);else if(1<f.style.colspan||1<f.style.rowspan)p+=this.addActions(a,["unmergeCells"]);0<p&&(g.style.paddingBottom="2px")}else a.style.display=
-"none";return a};ArrangePanel.prototype.addLayerOps=function(a){this.addActions(a,["toFront","toBack"]);this.addActions(a,["bringForward","sendBackward"]);return a};
+ArrangePanel.prototype.init=function(){var a=this.editorUi.getSelectionState();if(0<a.cells.length){this.container.appendChild(this.addLayerOps(this.createPanel()));var b=this.createCollapsibleSection(mxResources.get("size")+" / "+mxResources.get("position"),!1);this.addGeometry(b.contentDiv);0<b.contentDiv.childNodes.length&&this.container.appendChild(b.wrapper);0<a.edges.length&&(b=this.createCollapsibleSection(mxResources.get("waypoints",null,"Waypoints"),!1),this.addEdgeGeometry(b.contentDiv),
+this.container.appendChild(b.wrapper));a.containsLabel&&0!=a.edges.length||(b=this.createCollapsibleSection(mxResources.get("rotation"),!0),b.contentDiv.appendChild(this.addAngle(this.createPanel())),this.container.appendChild(b.wrapper));a.containsLabel||(b=this.createCollapsibleSection(mxResources.get("flip"),!0),b.contentDiv.appendChild(this.addFlip(this.createPanel())),this.container.appendChild(b.wrapper));this.container.appendChild(this.addAlign(this.createPanel()));1<a.vertices.length&&!a.cell&&
+!a.row&&this.container.appendChild(this.addDistribute(this.createPanel()));a=this.addTable(this.createPanel());b=this.createCollapsibleSection(mxResources.get("table"),!0);b.contentDiv.appendChild(a);this.container.appendChild(b.wrapper);this.syncCollapsibleVisibility(b.wrapper,a)}this.container.appendChild(this.addGroupOps(this.createPanel()))};
+ArrangePanel.prototype.addTable=function(a){var b=this.editorUi,e=b.editor.graph,f=b.getSelectionState(),g=document.createElement("div");g.style.position="relative";g.style.paddingLeft="0px";g.style.borderWidth="0px";g.style.width="220px";g.className="geToolbarContainer";var d=f.vertices[0];1<e.getSelectionCount()&&(e.isTableCell(d)&&(d=e.model.getParent(d)),e.isTableRow(d)&&(d=e.model.getParent(d)));var h=f.table||f.row||f.cell,l=e.isStack(d)||e.isStackChild(d),p=h;l&&(h="0"==(e.isStack(d)?f.style:
+e.getCellStyle(e.model.getParent(d))).horizontalStack,p=!h);var k=[];p&&(k=k.concat([b.addButton(Editor.addColumnLeftImage,mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{l?e.insertLane(d,!0):e.insertTableColumn(d,!0)}catch(v){b.handleError(v)}}),g),b.addButton(Editor.addColumnRightImage,mxResources.get("insertColumnAfter"),mxUtils.bind(this,function(){try{l?e.insertLane(d,!1):e.insertTableColumn(d,!1)}catch(v){b.handleError(v)}}),g),b.addButton(Editor.removeColumnImage,mxResources.get("deleteColumn"),
+mxUtils.bind(this,function(){try{l?e.deleteLane(d):e.deleteTableColumn(d)}catch(v){b.handleError(v)}}),g)]));h&&(k=k.concat([b.addButton(Editor.addRowAboveImage,mxResources.get("insertRowBefore"),mxUtils.bind(this,function(){try{l?e.insertLane(d,!0):e.insertTableRow(d,!0)}catch(v){b.handleError(v)}}),g),b.addButton(Editor.addRowBelowImage,mxResources.get("insertRowAfter"),mxUtils.bind(this,function(){try{l?e.insertLane(d,!1):e.insertTableRow(d,!1)}catch(v){b.handleError(v)}}),g),b.addButton(Editor.removeRowImage,
+mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{l?e.deleteLane(d):e.deleteTableRow(d)}catch(v){b.handleError(v)}}),g)]));if(0<k.length){a.appendChild(g);3<k.length&&(k[2].style.marginRight="10px");p=0;if(null!=f.mergeCell)p+=this.addActions(a,["mergeCells"]);else if(1<f.style.colspan||1<f.style.rowspan)p+=this.addActions(a,["unmergeCells"]);0<p&&(g.style.paddingBottom="2px")}else a.style.display="none";return a};
+ArrangePanel.prototype.addLayerOps=function(a){this.addActions(a,["toFront","toBack"]);this.addActions(a,["bringForward","sendBackward"]);return a};
ArrangePanel.prototype.addGroupOps=function(a){var b=this.editorUi,e=b.editor.graph;b=b.getSelectionState();var f=this.addActions(a,["group","ungroup"])+this.addActions(a,["removeFromGroup"]);b.cell||b.row||(f+=this.addActions(a,["copySize","pasteSize","swap"]));var g=document.createElement("select");g.style.position="relative";g.className="geFullWidthElement";g.style.marginBottom="2px";for(var d=[{label:mxResources.get("reset")+"...",action:"reset"},{label:mxResources.get("waypoints"),action:"clearWaypoints"},
{label:mxResources.get("connectionPoints"),action:"clearAnchors"}],h=0;h<d.length;h++){var l=this.editorUi.actions.get(d[h].action);if(null==l||l.enabled){var p=document.createElement("option");p.setAttribute("value",d[h].action);p.setAttribute("title",d[h].label+(null!=l&&null!=l.shortcut?" ("+l.shortcut+")":""));mxUtils.write(p,d[h].label);g.appendChild(p)}}1<g.children.length&&(g.value="reset",a.appendChild(g),mxUtils.br(a),f++,mxEvent.addListener(g,"change",mxUtils.bind(this,function(k){k=this.editorUi.actions.get(g.value);
g.value="reset";null!=k&&k.funct()})));f+=this.addActions(a,["lockUnlock"]);1==b.vertices.length&&0==b.edges.length&&0<e.getOpposites(e.getEdges(b.vertices[0]),b.vertices[0]).length&&(f+=this.addActions(a,["explore"]));0==f&&(a.style.display="none");return a};
@@ -3295,38 +3302,37 @@ null!=E&&null!=E.text&&null!=E.text.node&&0==E.text.node.getElementsByTagName("f
"convertToSvg","0",null,null,function(ma,Aa){for(var ya=0;ya<ma.length;ya++){var Wa=d.getCurrentCellStyle(ma[ya]);Aa?"wrap"==Wa[mxConstants.STYLE_WHITE_SPACE]&&d.setCellStyles("svgWhiteSpace","wrap",[ma[ya]]):"wrap"==Wa.svgWhiteSpace&&d.setCellStyles(mxConstants.STYLE_WHITE_SPACE,"wrap",[ma[ya]])}});u.style.fontWeight="bold";p.appendChild(u);if(k){pa={H1:1,H2:1,H3:1,H4:1,H5:1,H6:1,P:1,PRE:1,BLOCKQUOTE:1,DIV:1,SUP:1,SUB:1,B:1,I:1,SPAN:1,FONT:1,STRIKE:1,U:1,BR:1};T=!1;Y=d.getSelectionCells();for(k=
0;k<Y.length&&!T;k++){var xa=d.getLabel(Y[k]);if(null!=xa&&0<xa.length)for(E=document.createElement("div"),E.innerHTML=xa,E=E.getElementsByTagName("*"),xa=0;xa<E.length;xa++)if(null==pa[E[xa].nodeName]||null!=E[xa].style&&""!=E[xa].style.backgroundColor){T=!0;break}}T&&(u.style.opacity="0.5",u.getElementsByTagName("input")[0].setAttribute("disabled","disabled"),u.setAttribute("title","Label contains unsupported HTML for SVG conversion. Supported: H1-H6, P, PRE, BLOCKQUOTE, DIV, B, I, U, STRIKE, SUP, SUB, SPAN, FONT, BR (without background color)."))}else u.style.opacity=
"0.5",u.getElementsByTagName("input")[0].setAttribute("disabled","disabled");k=this.createCellOption(mxResources.get("autosizeText"),"autosizeText","0",null,null,mxUtils.bind(this,function(ma,Aa){if(Aa)for(Aa=0;Aa<ma.length;Aa++)d.model.isVertex(ma[Aa])&&d.updateAutosizeTextFontSize(ma[Aa])}));k.style.fontWeight="bold";0<h.vertices.length&&p.appendChild(k);if(!g.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)u.getElementsByTagName("span")[0].style.maxWidth="172px",u.appendChild(g.menus.createHelpLink("https://github.com/jgraph/drawio/discussions/5165"));
-k=this.createPanel();k.style.height="86px";u=document.createElement("div");u.style.position="absolute";u.style.width="70px";u.style.marginTop="0px";u.style.fontWeight="bold";mxUtils.write(u,mxResources.get("spacing"));u.setAttribute("title",mxResources.get("spacing"));k.appendChild(u);var Na=this.addUnitInput(k,this.getUnit(),87,52,function(){tb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());Na.setAttribute("title",mxResources.get("top"));var Oa=this.addUnitInput(k,this.getUnit(),
-16,52,function(){hb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());Oa.setAttribute("title",mxResources.get("global"));mxUtils.br(k);this.addLabel(k,mxResources.get("top"),87,64);this.addLabel(k,mxResources.get("global"),16,64);mxUtils.br(k);mxUtils.br(k);var Ka=this.addUnitInput(k,this.getUnit(),158,52,function(){pb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());Ka.setAttribute("title",mxResources.get("left"));var Ma=this.addUnitInput(k,this.getUnit(),
-87,52,function(){eb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());Ma.setAttribute("title",mxResources.get("bottom"));var wa=this.addUnitInput(k,this.getUnit(),16,52,function(){gb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());wa.setAttribute("title",mxResources.get("right"));mxUtils.br(k);this.addLabel(k,mxResources.get("left"),158,64);this.addLabel(k,mxResources.get("bottom"),87,64);this.addLabel(k,mxResources.get("right"),16,64);if(d.cellEditor.isContentEditing()){var Ga=
-null,Za=null;a.appendChild(this.createRelativeOption(mxResources.get("lineheight"),null,null,function(ma){var Aa=""==ma.value?120:parseInt(ma.value);Aa=Math.max(0,isNaN(Aa)?120:Aa);if(window.getSelection){null!=Ga&&(d.cellEditor.restoreSelection(Ga),Ga=null);var ya=d.getSelectedEditingElement();if(null!=d.cellEditor.textarea&&ya==d.cellEditor.textarea){var Wa=window.getSelection();if(Wa.getRangeAt&&0<Wa.rangeCount){var Ta=Wa.getRangeAt(0);ya=document.createElement("div");ya.appendChild(Ta.extractContents());
-d.cellEditor.textarea.innerHTML="";d.cellEditor.textarea.appendChild(ya);Wa.removeAllRanges();Ta=new Range;Ta.selectNodeContents(ya);Wa.addRange(Ta)}}if(null!=ya)for(ya!=d.cellEditor.textarea&&e(ya,Aa),ya=ya.getElementsByTagName("*"),Wa=window.getSelection(),Ta=0;Ta<ya.length;Ta++)Wa.containsNode(ya[Ta],!0)&&e(ya[Ta],Aa)}ma.value=Aa+" %"},function(ma){Za=ma;mxEvent.addGestureListeners(ma,mxUtils.bind(this,function(Aa){document.activeElement==d.cellEditor.textarea&&(Ga=d.cellEditor.saveSelection())}));
-mxEvent.addListener(ma,"touchstart",function(){document.activeElement==d.cellEditor.textarea&&(Ga=d.cellEditor.saveSelection())});ma.value="120 %"}));p=l.cloneNode(!1);g.toolbar.addItems(["link","image"],p,!0,[Editor.linkImage,Editor.imageImage]);k=[g.addButton(Editor.horizontalRuleImage,mxResources.get("insertHorizontalRule"),function(){document.execCommand("inserthorizontalrule",!1)},p),g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(ma){g.menus.addInsertTableItem(ma,null,null,!1)})),null,
-Editor.tableImage,p)];k=this.createPanel();k.appendChild(this.createTitle(mxResources.get("insert")));k.appendChild(p);a.appendChild(k);u=l.cloneNode(!1);k=[g.addButton(Editor.addColumnLeftImage,mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{null!=V&&d.insertColumn(V,null!=U?U.cellIndex:0)}catch(ma){g.handleError(ma)}}),u),g.addButton(Editor.addColumnRightImage,mxResources.get("insertColumnAfter"),mxUtils.bind(this,function(){try{null!=V&&d.insertColumn(V,null!=U?U.cellIndex+
-1:-1)}catch(ma){g.handleError(ma)}}),u),g.addButton(Editor.removeColumnImage,mxResources.get("deleteColumn"),mxUtils.bind(this,function(){try{null!=V&&null!=U&&d.deleteColumn(V,U.cellIndex)}catch(ma){g.handleError(ma)}}),u),g.addButton(Editor.addRowAboveImage,mxResources.get("insertRowBefore"),mxUtils.bind(this,function(){try{null!=V&&null!=W&&d.insertRow(V,W.sectionRowIndex)}catch(ma){g.handleError(ma)}}),u),g.addButton(Editor.addRowBelowImage,mxResources.get("insertRowAfter"),mxUtils.bind(this,
-function(){try{null!=V&&null!=W&&d.insertRow(V,W.sectionRowIndex+1)}catch(ma){g.handleError(ma)}}),u),g.addButton(Editor.removeRowImage,mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{null!=V&&null!=W&&d.deleteRow(V,W.sectionRowIndex)}catch(ma){g.handleError(ma)}}),u)];k[2].style.marginRight="10px";p=this.createPanel();p.appendChild(this.createTitle(mxResources.get("table")));p.appendChild(u);l=l.cloneNode(!1);k=[g.addButton(Editor.strokeColorImage,mxResources.get("borderColor"),mxUtils.bind(this,
-function(ma){if(null!=V){var Aa=V.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(ya,Wa,Ta,q){return"#"+("0"+Number(Wa).toString(16)).substr(-2)+("0"+Number(Ta).toString(16)).substr(-2)+("0"+Number(q).toString(16)).substr(-2)});g.pickColor(Aa,function(ya){var Wa=null==U||null!=ma&&mxEvent.isShiftDown(ma)?V:U;d.processElements(Wa,function(Ta){Ta.style.border=null});null==ya||ya==mxConstants.NONE?(Wa.removeAttribute("border"),Wa.style.border="",Wa.style.borderCollapse=
-""):(Wa.setAttribute("border","1"),Wa.style.border="1px solid "+ya,Wa.style.borderCollapse="collapse")})}}),l),g.addButton(Editor.fillColorImage,mxResources.get("backgroundColor"),mxUtils.bind(this,function(ma){if(null!=V){var Aa=V.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(ya,Wa,Ta,q){return"#"+("0"+Number(Wa).toString(16)).substr(-2)+("0"+Number(Ta).toString(16)).substr(-2)+("0"+Number(q).toString(16)).substr(-2)});g.pickColor(Aa,function(ya){var Wa=
-null==U||null!=ma&&mxEvent.isShiftDown(ma)?V:U;d.processElements(Wa,function(Ta){Ta.style.backgroundColor=null});Wa.style.backgroundColor=null==ya||ya==mxConstants.NONE?"":ya})}}),l),g.addButton(Editor.spacingImage,mxResources.get("spacing"),function(){if(null!=V){var ma=V.getAttribute("cellPadding")||0;ma=new FilenameDialog(g,ma,mxResources.get("apply"),mxUtils.bind(this,function(Aa){null!=Aa&&0<Aa.length?V.setAttribute("cellPadding",Aa):V.removeAttribute("cellPadding")}),mxResources.get("spacing"));
-g.showDialog(ma.container,300,80,!0,!0);ma.init()}},l),g.addButton(Editor.alignLeftImage,mxResources.get("left"),function(){null!=V&&V.setAttribute("align","left")},l),g.addButton(Editor.alignCenterImage,mxResources.get("center"),function(){null!=V&&V.setAttribute("align","center")},l),g.addButton(Editor.alignRightImage,mxResources.get("right"),function(){null!=V&&V.setAttribute("align","right")},l)];k[2].style.marginRight="10px";p.appendChild(l);a.appendChild(p);var db=p}else a.appendChild(p),a.appendChild(this.createRelativeOption(mxResources.get("opacity"),
-mxConstants.STYLE_TEXT_OPACITY)),a.appendChild(k);for(k=0;3>k;k++)(function(ma){mxEvent.addListener(x[ma],"click",function(){f(x[ma],""==x[ma].style.backgroundImage)})})(k);var ab=mxUtils.bind(this,function(ma,Aa,ya){h=g.getSelectionState();ma=mxUtils.getValue(h.style,mxConstants.STYLE_FONTSTYLE,0);f(x[0],(ma&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD);f(x[1],(ma&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC);f(x[2],(ma&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE);g.toolbar.setMenuText(v,
-mxUtils.getValue(h.style,mxConstants.STYLE_FONTFAMILY,Menus.prototype.defaultFont));f(z,"0"==mxUtils.getValue(h.style,mxConstants.STYLE_HORIZONTAL,"1"));if(ya||document.activeElement!=na)ma=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_FONTSIZE,Menus.prototype.defaultFontSize)),na.value=isNaN(ma)?"":ma+" "+Editor.fontSizeUnit;ma=mxUtils.getValue(h.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER);f(D,ma==mxConstants.ALIGN_LEFT);f(G,ma==mxConstants.ALIGN_CENTER);f(H,ma==mxConstants.ALIGN_RIGHT);
-ma=mxUtils.getValue(h.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE);f(L,ma==mxConstants.ALIGN_TOP);f(N,ma==mxConstants.ALIGN_MIDDLE);f(K,ma==mxConstants.ALIGN_BOTTOM);ma=mxUtils.getValue(h.style,mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER);Aa=mxUtils.getValue(h.style,mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);ca.value=ma==mxConstants.ALIGN_LEFT&&Aa==mxConstants.ALIGN_TOP?"topLeft":ma==mxConstants.ALIGN_CENTER&&Aa==mxConstants.ALIGN_TOP?"top":
-ma==mxConstants.ALIGN_RIGHT&&Aa==mxConstants.ALIGN_TOP?"topRight":ma==mxConstants.ALIGN_LEFT&&Aa==mxConstants.ALIGN_BOTTOM?"bottomLeft":ma==mxConstants.ALIGN_CENTER&&Aa==mxConstants.ALIGN_BOTTOM?"bottom":ma==mxConstants.ALIGN_RIGHT&&Aa==mxConstants.ALIGN_BOTTOM?"bottomRight":ma==mxConstants.ALIGN_LEFT?"left":ma==mxConstants.ALIGN_RIGHT?"right":"center";ma=mxUtils.getValue(h.style,mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);ma==mxConstants.TEXT_DIRECTION_RTL?ba.value="rightToLeft":
-ma==mxConstants.TEXT_DIRECTION_LTR?ba.value="leftToRight":ma!=mxConstants.TEXT_DIRECTION_AUTO&&h.html?ma==mxConstants.TEXT_DIRECTION_VERTICAL_LR?ba.value="vertical-leftToRight":ma==mxConstants.TEXT_DIRECTION_VERTICAL_RL&&(ba.value="vertical-rightToLeft"):ba.value="automatic";if(ya||document.activeElement!=Oa)ma=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING,2)),Oa.value=isNaN(ma)?"":this.inUnit(ma)+" "+this.getUnit();if(ya||document.activeElement!=Na)ma=parseFloat(mxUtils.getValue(h.style,
-mxConstants.STYLE_SPACING_TOP,0)),Na.value=isNaN(ma)?"":this.inUnit(ma)+" "+this.getUnit();if(ya||document.activeElement!=wa)ma=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_RIGHT,0)),wa.value=isNaN(ma)?"":this.inUnit(ma)+" "+this.getUnit();if(ya||document.activeElement!=Ma)ma=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_BOTTOM,0)),Ma.value=isNaN(ma)?"":this.inUnit(ma)+" "+this.getUnit();if(ya||document.activeElement!=Ka)ma=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_LEFT,
-0)),Ka.value=isNaN(ma)?"":this.inUnit(ma)+" "+this.getUnit()});var hb=this.installInputHandler(Oa,mxConstants.STYLE_SPACING,2,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var tb=this.installInputHandler(Na,mxConstants.STYLE_SPACING_TOP,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var gb=this.installInputHandler(wa,mxConstants.STYLE_SPACING_RIGHT,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var eb=this.installInputHandler(Ma,mxConstants.STYLE_SPACING_BOTTOM,0,-999,
-999,this.getUnit(" "),null,this.isFloatUnit(),!0);var pb=this.installInputHandler(Ka,mxConstants.STYLE_SPACING_LEFT,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);this.addKeyHandler(na,ab);this.addKeyHandler(Oa,ab);this.addKeyHandler(Na,ab);this.addKeyHandler(wa,ab);this.addKeyHandler(Ma,ab);this.addKeyHandler(Ka,ab);d.getModel().addListener(mxEvent.CHANGE,ab);this.listeners.push({destroy:function(){d.getModel().removeListener(ab)}});ab();if(d.cellEditor.isContentEditing()){var fb=null,
-mb=!1;l=mxUtils.bind(this,function(){mb||(mb=!0,window.setTimeout(mxUtils.bind(this,function(){var ma=d.getSelectedEditingElement();if(null!=ma&&null!=d.cellEditor.textarea){var Aa=function(da,ia){if(null!=da&&null!=ia){if(da==ia)return!0;if(da.length>ia.length+1)return da.substring(da.length-ia.length-1,da.length)=="-"+ia}return!1},ya=function(da){if(null!=d.getParentByName(ma,da,d.cellEditor.textarea))return!0;for(var ia=ma;null!=ia&&1==ia.childNodes.length;)if(ia=ia.childNodes[0],ia.nodeName==
-da)return!0;return!1},Wa=function(da){for(;null!=da&&da!=d.cellEditor.textarea;){if("block"==mxUtils.getCurrentStyle(da).display)return da;da=da.parentNode}return null},Ta=mxUtils.getCurrentStyle(ma),q=ma==d.cellEditor.textarea||""==ma.style.lineHeight?null:ma.style.lineHeight,B=ma==d.cellEditor.textarea||""==ma.style.fontSize?null:b(Ta);if(window.getSelection)for(var C=ma.getElementsByTagName("*"),F=window.getSelection(),J=0;J<C.length&&(!F.containsNode(C[J],!0)||null==C[J].style||(null==B&&""!=
-C[J].style.fontSize&&(B=parseFloat(C[J].style.fontSize)),null==q&&""!=C[J].style.lineHeight&&(q=C[J].style.lineHeight),null==B||null==q));J++);null==B&&(B=b(Ta));if(null==q)for(C=ma;null!=C&&C!=d.cellEditor.textarea.parentNode;){if(null!=C.style&&""!=C.style.lineHeight){q=C.style.lineHeight;break}C=C.parentNode}if(null!=Ta){f(x[0],"bold"==Ta.fontWeight||400<Ta.fontWeight||ya("B")||ya("STRONG"));f(x[1],"italic"==Ta.fontStyle||ya("I")||ya("EM"));f(x[2],"underline"==Ta.textDecorationLine||ya("U"));f(R,
-"line-through"==Ta.textDecorationLine||ya("STRIKE"));f(ea,ya("SUP"));f(aa,ya("SUB"));var P=Wa(ma);if(null!=P){ya=function(da,ia){oa.push({name:da,dispName:ia,type:"string",getValue:function(){return X[da]},valueChanged:function(za,Ca){var Fa=P.style,Pa=za;parseInt(Pa)==Pa&&(Pa+="px",null!=Ca&&(Ca.value=Pa));Fa[da]=Pa;""==za&&null!=Ca&&(Ca.value=X[da])}})};var X=mxUtils.getCurrentStyle(P),oa=[];ya("paddingTop","Padding Top");ya("paddingRight","Padding Right");ya("paddingLeft","Padding Left");ya("paddingBottom",
-"Padding Bottom");ya("marginTop","Margin Top");ya("marginRight","Margin Right");ya("marginLeft","Margin Left");ya("marginBottom","Margin Bottom");ya=this.createPanel();this.addProperties(ya,oa,h,!0);null!=fb?fb.parentNode.replaceChild(ya,fb):a.appendChild(ya);fb=ya}d.cellEditor.isTableSelected()?(f(ka,Aa(Ta.textAlign,"justify")),f(D,Aa(Ta.textAlign,"left")),f(G,Aa(Ta.textAlign,"center")),f(H,Aa(Ta.textAlign,"right"))):(ya=d.cellEditor.align||mxUtils.getValue(h.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),
-Aa(Ta.textAlign,"justify")?(f(ka,Aa(Ta.textAlign,"justify")),f(D,!1),f(G,!1),f(H,!1)):(f(ka,!1),f(D,ya==mxConstants.ALIGN_LEFT),f(G,ya==mxConstants.ALIGN_CENTER),f(H,ya==mxConstants.ALIGN_RIGHT)));V=d.getParentByName(ma,"TABLE",d.cellEditor.textarea);W=null==V?null:d.getParentByName(ma,"TR",V);U=null==V?null:d.getParentByNames(ma,["TD","TH"],V);db.style.display=null!=V?"":"none";document.activeElement!=na&&(na.value=isNaN(B)?"":B+" "+Editor.fontSizeUnit,"string"===typeof q&&0<q.indexOf("%")?Za.value=
-q.replace("%"," %"):(Aa=parseFloat(q),isNaN(Aa)?Za.value="120 %":Za.value=Math.round(100*Aa)+" %"));null!=ha&&(M=d.getTextColor(ma,!0),ha(M,!0));null!=Z&&(ja=d.getTextColor(ma,!1),Z(ja,!0));g.toolbar.setMenuText(v,mxUtils.getCssFontFamily(Ta.fontFamily))}}mb=!1}),0))});mxEvent.addListener(d.cellEditor.textarea,"input",l);mxEvent.addListener(d.cellEditor.textarea,"touchend",l);mxEvent.addListener(d.cellEditor.textarea,"mouseup",l);mxEvent.addListener(d.cellEditor.textarea,"keyup",l);this.listeners.push({destroy:function(){}});
-l()}return a};StyleFormatPanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};mxUtils.extend(StyleFormatPanel,BaseFormatPanel);
-StyleFormatPanel.prototype.init=function(){var a=this.editorUi.getSelectionState();if(!a.containsLabel&&0<a.cells.length){a.containsImage&&1==a.vertices.length&&"image"==a.style.shape&&null!=a.style.image&&"data:image/svg+xml;"==String(a.style.image).substring(0,19)&&this.container.appendChild(this.addSvgStyles(this.createPanel()));a.fill&&this.container.appendChild(this.addFill(this.createPanel()));this.container.appendChild(this.addStroke(this.createPanel()));this.container.appendChild(this.addLineJumps(this.createPanel()));
-var b=this.createRelativeOption(mxResources.get("opacity"),mxConstants.STYLE_OPACITY);this.container.appendChild(b);this.container.appendChild(this.addEffects(this.createPanel()))}b=this.createPanel();1==a.cells.length&&(this.addEditOps(b),null!=b.firstChild&&mxUtils.br(b));1<=a.cells.length&&this.addStyleOps(b);null!=b.firstChild&&this.container.appendChild(b)};
-StyleFormatPanel.prototype.getCssRules=function(a){var b=document.implementation.createHTMLDocument(""),e=document.createElement("style");mxUtils.setTextContent(e,a);b.body.appendChild(e);return e.sheet.cssRules};
+k=this.createPanel();k.style.height="86px";var Na=this.addUnitInput(k,this.getUnit(),87,52,function(){tb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());Na.setAttribute("title",mxResources.get("top"));var Oa=this.addUnitInput(k,this.getUnit(),16,52,function(){hb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());Oa.setAttribute("title",mxResources.get("global"));mxUtils.br(k);this.addLabel(k,mxResources.get("top"),87,64);this.addLabel(k,mxResources.get("global"),
+16,64);mxUtils.br(k);mxUtils.br(k);var Ka=this.addUnitInput(k,this.getUnit(),158,52,function(){pb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());Ka.setAttribute("title",mxResources.get("left"));var Ma=this.addUnitInput(k,this.getUnit(),87,52,function(){eb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());Ma.setAttribute("title",mxResources.get("bottom"));var wa=this.addUnitInput(k,this.getUnit(),16,52,function(){gb.apply(this,arguments)},this.getUnitStep(),
+null,null,this.isFloatUnit());wa.setAttribute("title",mxResources.get("right"));mxUtils.br(k);this.addLabel(k,mxResources.get("left"),158,64);this.addLabel(k,mxResources.get("bottom"),87,64);this.addLabel(k,mxResources.get("right"),16,64);if(d.cellEditor.isContentEditing()){var Ga=null,Za=null;a.appendChild(this.createRelativeOption(mxResources.get("lineheight"),null,null,function(ma){var Aa=""==ma.value?120:parseInt(ma.value);Aa=Math.max(0,isNaN(Aa)?120:Aa);if(window.getSelection){null!=Ga&&(d.cellEditor.restoreSelection(Ga),
+Ga=null);var ya=d.getSelectedEditingElement();if(null!=d.cellEditor.textarea&&ya==d.cellEditor.textarea){var Wa=window.getSelection();if(Wa.getRangeAt&&0<Wa.rangeCount){var Ta=Wa.getRangeAt(0);ya=document.createElement("div");ya.appendChild(Ta.extractContents());d.cellEditor.textarea.innerHTML="";d.cellEditor.textarea.appendChild(ya);Wa.removeAllRanges();Ta=new Range;Ta.selectNodeContents(ya);Wa.addRange(Ta)}}if(null!=ya)for(ya!=d.cellEditor.textarea&&e(ya,Aa),ya=ya.getElementsByTagName("*"),Wa=window.getSelection(),
+Ta=0;Ta<ya.length;Ta++)Wa.containsNode(ya[Ta],!0)&&e(ya[Ta],Aa)}ma.value=Aa+" %"},function(ma){Za=ma;mxEvent.addGestureListeners(ma,mxUtils.bind(this,function(Aa){document.activeElement==d.cellEditor.textarea&&(Ga=d.cellEditor.saveSelection())}));mxEvent.addListener(ma,"touchstart",function(){document.activeElement==d.cellEditor.textarea&&(Ga=d.cellEditor.saveSelection())});ma.value="120 %"}));p=l.cloneNode(!1);g.toolbar.addItems(["link","image"],p,!0,[Editor.linkImage,Editor.imageImage]);k=[g.addButton(Editor.horizontalRuleImage,
+mxResources.get("insertHorizontalRule"),function(){document.execCommand("inserthorizontalrule",!1)},p),g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(ma){g.menus.addInsertTableItem(ma,null,null,!1)})),null,Editor.tableImage,p)];k=this.createPanel();k.appendChild(this.createTitle(mxResources.get("insert")));k.appendChild(p);a.appendChild(k);u=l.cloneNode(!1);k=[g.addButton(Editor.addColumnLeftImage,mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{null!=V&&d.insertColumn(V,
+null!=U?U.cellIndex:0)}catch(ma){g.handleError(ma)}}),u),g.addButton(Editor.addColumnRightImage,mxResources.get("insertColumnAfter"),mxUtils.bind(this,function(){try{null!=V&&d.insertColumn(V,null!=U?U.cellIndex+1:-1)}catch(ma){g.handleError(ma)}}),u),g.addButton(Editor.removeColumnImage,mxResources.get("deleteColumn"),mxUtils.bind(this,function(){try{null!=V&&null!=U&&d.deleteColumn(V,U.cellIndex)}catch(ma){g.handleError(ma)}}),u),g.addButton(Editor.addRowAboveImage,mxResources.get("insertRowBefore"),
+mxUtils.bind(this,function(){try{null!=V&&null!=W&&d.insertRow(V,W.sectionRowIndex)}catch(ma){g.handleError(ma)}}),u),g.addButton(Editor.addRowBelowImage,mxResources.get("insertRowAfter"),mxUtils.bind(this,function(){try{null!=V&&null!=W&&d.insertRow(V,W.sectionRowIndex+1)}catch(ma){g.handleError(ma)}}),u),g.addButton(Editor.removeRowImage,mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{null!=V&&null!=W&&d.deleteRow(V,W.sectionRowIndex)}catch(ma){g.handleError(ma)}}),u)];k[2].style.marginRight=
+"10px";p=this.createPanel();p.appendChild(this.createTitle(mxResources.get("table")));p.appendChild(u);l=l.cloneNode(!1);k=[g.addButton(Editor.strokeColorImage,mxResources.get("borderColor"),mxUtils.bind(this,function(ma){if(null!=V){var Aa=V.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(ya,Wa,Ta,q){return"#"+("0"+Number(Wa).toString(16)).substr(-2)+("0"+Number(Ta).toString(16)).substr(-2)+("0"+Number(q).toString(16)).substr(-2)});g.pickColor(Aa,function(ya){var Wa=
+null==U||null!=ma&&mxEvent.isShiftDown(ma)?V:U;d.processElements(Wa,function(Ta){Ta.style.border=null});null==ya||ya==mxConstants.NONE?(Wa.removeAttribute("border"),Wa.style.border="",Wa.style.borderCollapse=""):(Wa.setAttribute("border","1"),Wa.style.border="1px solid "+ya,Wa.style.borderCollapse="collapse")})}}),l),g.addButton(Editor.fillColorImage,mxResources.get("backgroundColor"),mxUtils.bind(this,function(ma){if(null!=V){var Aa=V.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,
+function(ya,Wa,Ta,q){return"#"+("0"+Number(Wa).toString(16)).substr(-2)+("0"+Number(Ta).toString(16)).substr(-2)+("0"+Number(q).toString(16)).substr(-2)});g.pickColor(Aa,function(ya){var Wa=null==U||null!=ma&&mxEvent.isShiftDown(ma)?V:U;d.processElements(Wa,function(Ta){Ta.style.backgroundColor=null});Wa.style.backgroundColor=null==ya||ya==mxConstants.NONE?"":ya})}}),l),g.addButton(Editor.spacingImage,mxResources.get("spacing"),function(){if(null!=V){var ma=V.getAttribute("cellPadding")||0;ma=new FilenameDialog(g,
+ma,mxResources.get("apply"),mxUtils.bind(this,function(Aa){null!=Aa&&0<Aa.length?V.setAttribute("cellPadding",Aa):V.removeAttribute("cellPadding")}),mxResources.get("spacing"));g.showDialog(ma.container,300,80,!0,!0);ma.init()}},l),g.addButton(Editor.alignLeftImage,mxResources.get("left"),function(){null!=V&&V.setAttribute("align","left")},l),g.addButton(Editor.alignCenterImage,mxResources.get("center"),function(){null!=V&&V.setAttribute("align","center")},l),g.addButton(Editor.alignRightImage,mxResources.get("right"),
+function(){null!=V&&V.setAttribute("align","right")},l)];k[2].style.marginRight="10px";p.appendChild(l);a.appendChild(p);var db=p}else a.appendChild(p),a.appendChild(this.createRelativeOption(mxResources.get("opacity"),mxConstants.STYLE_TEXT_OPACITY)),l=this.createCollapsibleSection(mxResources.get("spacing"),!0),l.contentDiv.appendChild(k),a.appendChild(l.wrapper);for(k=0;3>k;k++)(function(ma){mxEvent.addListener(x[ma],"click",function(){f(x[ma],""==x[ma].style.backgroundImage)})})(k);var ab=mxUtils.bind(this,
+function(ma,Aa,ya){h=g.getSelectionState();ma=mxUtils.getValue(h.style,mxConstants.STYLE_FONTSTYLE,0);f(x[0],(ma&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD);f(x[1],(ma&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC);f(x[2],(ma&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE);g.toolbar.setMenuText(v,mxUtils.getValue(h.style,mxConstants.STYLE_FONTFAMILY,Menus.prototype.defaultFont));f(z,"0"==mxUtils.getValue(h.style,mxConstants.STYLE_HORIZONTAL,"1"));if(ya||document.activeElement!=na)ma=
+parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_FONTSIZE,Menus.prototype.defaultFontSize)),na.value=isNaN(ma)?"":ma+" "+Editor.fontSizeUnit;ma=mxUtils.getValue(h.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER);f(D,ma==mxConstants.ALIGN_LEFT);f(G,ma==mxConstants.ALIGN_CENTER);f(H,ma==mxConstants.ALIGN_RIGHT);ma=mxUtils.getValue(h.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE);f(L,ma==mxConstants.ALIGN_TOP);f(N,ma==mxConstants.ALIGN_MIDDLE);f(K,ma==mxConstants.ALIGN_BOTTOM);
+ma=mxUtils.getValue(h.style,mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER);Aa=mxUtils.getValue(h.style,mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);ca.value=ma==mxConstants.ALIGN_LEFT&&Aa==mxConstants.ALIGN_TOP?"topLeft":ma==mxConstants.ALIGN_CENTER&&Aa==mxConstants.ALIGN_TOP?"top":ma==mxConstants.ALIGN_RIGHT&&Aa==mxConstants.ALIGN_TOP?"topRight":ma==mxConstants.ALIGN_LEFT&&Aa==mxConstants.ALIGN_BOTTOM?"bottomLeft":ma==mxConstants.ALIGN_CENTER&&Aa==mxConstants.ALIGN_BOTTOM?
+"bottom":ma==mxConstants.ALIGN_RIGHT&&Aa==mxConstants.ALIGN_BOTTOM?"bottomRight":ma==mxConstants.ALIGN_LEFT?"left":ma==mxConstants.ALIGN_RIGHT?"right":"center";ma=mxUtils.getValue(h.style,mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);ma==mxConstants.TEXT_DIRECTION_RTL?ba.value="rightToLeft":ma==mxConstants.TEXT_DIRECTION_LTR?ba.value="leftToRight":ma!=mxConstants.TEXT_DIRECTION_AUTO&&h.html?ma==mxConstants.TEXT_DIRECTION_VERTICAL_LR?ba.value="vertical-leftToRight":ma==mxConstants.TEXT_DIRECTION_VERTICAL_RL&&
+(ba.value="vertical-rightToLeft"):ba.value="automatic";if(ya||document.activeElement!=Oa)ma=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING,2)),Oa.value=isNaN(ma)?"":this.inUnit(ma)+" "+this.getUnit();if(ya||document.activeElement!=Na)ma=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_TOP,0)),Na.value=isNaN(ma)?"":this.inUnit(ma)+" "+this.getUnit();if(ya||document.activeElement!=wa)ma=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_RIGHT,0)),wa.value=isNaN(ma)?
+"":this.inUnit(ma)+" "+this.getUnit();if(ya||document.activeElement!=Ma)ma=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_BOTTOM,0)),Ma.value=isNaN(ma)?"":this.inUnit(ma)+" "+this.getUnit();if(ya||document.activeElement!=Ka)ma=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_LEFT,0)),Ka.value=isNaN(ma)?"":this.inUnit(ma)+" "+this.getUnit()});var hb=this.installInputHandler(Oa,mxConstants.STYLE_SPACING,2,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var tb=this.installInputHandler(Na,
+mxConstants.STYLE_SPACING_TOP,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var gb=this.installInputHandler(wa,mxConstants.STYLE_SPACING_RIGHT,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var eb=this.installInputHandler(Ma,mxConstants.STYLE_SPACING_BOTTOM,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var pb=this.installInputHandler(Ka,mxConstants.STYLE_SPACING_LEFT,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);this.addKeyHandler(na,ab);this.addKeyHandler(Oa,
+ab);this.addKeyHandler(Na,ab);this.addKeyHandler(wa,ab);this.addKeyHandler(Ma,ab);this.addKeyHandler(Ka,ab);d.getModel().addListener(mxEvent.CHANGE,ab);this.listeners.push({destroy:function(){d.getModel().removeListener(ab)}});ab();if(d.cellEditor.isContentEditing()){var fb=null,mb=!1;l=mxUtils.bind(this,function(){mb||(mb=!0,window.setTimeout(mxUtils.bind(this,function(){var ma=d.getSelectedEditingElement();if(null!=ma&&null!=d.cellEditor.textarea){var Aa=function(da,ia){if(null!=da&&null!=ia){if(da==
+ia)return!0;if(da.length>ia.length+1)return da.substring(da.length-ia.length-1,da.length)=="-"+ia}return!1},ya=function(da){if(null!=d.getParentByName(ma,da,d.cellEditor.textarea))return!0;for(var ia=ma;null!=ia&&1==ia.childNodes.length;)if(ia=ia.childNodes[0],ia.nodeName==da)return!0;return!1},Wa=function(da){for(;null!=da&&da!=d.cellEditor.textarea;){if("block"==mxUtils.getCurrentStyle(da).display)return da;da=da.parentNode}return null},Ta=mxUtils.getCurrentStyle(ma),q=ma==d.cellEditor.textarea||
+""==ma.style.lineHeight?null:ma.style.lineHeight,B=ma==d.cellEditor.textarea||""==ma.style.fontSize?null:b(Ta);if(window.getSelection)for(var C=ma.getElementsByTagName("*"),F=window.getSelection(),J=0;J<C.length&&(!F.containsNode(C[J],!0)||null==C[J].style||(null==B&&""!=C[J].style.fontSize&&(B=parseFloat(C[J].style.fontSize)),null==q&&""!=C[J].style.lineHeight&&(q=C[J].style.lineHeight),null==B||null==q));J++);null==B&&(B=b(Ta));if(null==q)for(C=ma;null!=C&&C!=d.cellEditor.textarea.parentNode;){if(null!=
+C.style&&""!=C.style.lineHeight){q=C.style.lineHeight;break}C=C.parentNode}if(null!=Ta){f(x[0],"bold"==Ta.fontWeight||400<Ta.fontWeight||ya("B")||ya("STRONG"));f(x[1],"italic"==Ta.fontStyle||ya("I")||ya("EM"));f(x[2],"underline"==Ta.textDecorationLine||ya("U"));f(R,"line-through"==Ta.textDecorationLine||ya("STRIKE"));f(ea,ya("SUP"));f(aa,ya("SUB"));var P=Wa(ma);if(null!=P){ya=function(da,ia){oa.push({name:da,dispName:ia,type:"string",getValue:function(){return X[da]},valueChanged:function(za,Ca){var Fa=
+P.style,Pa=za;parseInt(Pa)==Pa&&(Pa+="px",null!=Ca&&(Ca.value=Pa));Fa[da]=Pa;""==za&&null!=Ca&&(Ca.value=X[da])}})};var X=mxUtils.getCurrentStyle(P),oa=[];ya("paddingTop","Padding Top");ya("paddingRight","Padding Right");ya("paddingLeft","Padding Left");ya("paddingBottom","Padding Bottom");ya("marginTop","Margin Top");ya("marginRight","Margin Right");ya("marginLeft","Margin Left");ya("marginBottom","Margin Bottom");ya=this.createPanel();this.addProperties(ya,oa,h,!0);null!=fb?fb.parentNode.replaceChild(ya,
+fb):a.appendChild(ya);fb=ya}d.cellEditor.isTableSelected()?(f(ka,Aa(Ta.textAlign,"justify")),f(D,Aa(Ta.textAlign,"left")),f(G,Aa(Ta.textAlign,"center")),f(H,Aa(Ta.textAlign,"right"))):(ya=d.cellEditor.align||mxUtils.getValue(h.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),Aa(Ta.textAlign,"justify")?(f(ka,Aa(Ta.textAlign,"justify")),f(D,!1),f(G,!1),f(H,!1)):(f(ka,!1),f(D,ya==mxConstants.ALIGN_LEFT),f(G,ya==mxConstants.ALIGN_CENTER),f(H,ya==mxConstants.ALIGN_RIGHT)));V=d.getParentByName(ma,
+"TABLE",d.cellEditor.textarea);W=null==V?null:d.getParentByName(ma,"TR",V);U=null==V?null:d.getParentByNames(ma,["TD","TH"],V);db.style.display=null!=V?"":"none";document.activeElement!=na&&(na.value=isNaN(B)?"":B+" "+Editor.fontSizeUnit,"string"===typeof q&&0<q.indexOf("%")?Za.value=q.replace("%"," %"):(Aa=parseFloat(q),isNaN(Aa)?Za.value="120 %":Za.value=Math.round(100*Aa)+" %"));null!=ha&&(M=d.getTextColor(ma,!0),ha(M,!0));null!=Z&&(ja=d.getTextColor(ma,!1),Z(ja,!0));g.toolbar.setMenuText(v,mxUtils.getCssFontFamily(Ta.fontFamily))}}mb=
+!1}),0))});mxEvent.addListener(d.cellEditor.textarea,"input",l);mxEvent.addListener(d.cellEditor.textarea,"touchend",l);mxEvent.addListener(d.cellEditor.textarea,"mouseup",l);mxEvent.addListener(d.cellEditor.textarea,"keyup",l);this.listeners.push({destroy:function(){}});l()}return a};StyleFormatPanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};mxUtils.extend(StyleFormatPanel,BaseFormatPanel);
+StyleFormatPanel.prototype.init=function(){var a=this.editorUi.getSelectionState();if(!a.containsLabel&&0<a.cells.length){a.containsImage&&1==a.vertices.length&&"image"==a.style.shape&&null!=a.style.image&&"data:image/svg+xml;"==String(a.style.image).substring(0,19)&&this.container.appendChild(this.addSvgStyles(this.createPanel()));if(a.fill){var b=this.createCollapsibleSection(mxResources.get("fill"),!1);b.contentDiv.appendChild(this.addFill(this.createPanel()));this.container.appendChild(b.wrapper)}b=
+this.createCollapsibleSection(mxResources.get("line"),!1);b.contentDiv.appendChild(this.addStroke(this.createPanel()));this.container.appendChild(b.wrapper);b=this.addLineJumps(this.createPanel());var e=this.createCollapsibleSection(mxResources.get("lineJumps"),!0);e.contentDiv.appendChild(b);this.container.appendChild(e.wrapper);this.syncCollapsibleVisibility(e.wrapper,b);b=this.createRelativeOption(mxResources.get("opacity"),mxConstants.STYLE_OPACITY);this.container.appendChild(b);b=this.createCollapsibleSection(mxResources.get("effects"),
+!0);b.contentDiv.appendChild(this.addEffects(this.createPanel()));this.container.appendChild(b.wrapper)}b=this.createPanel();1==a.cells.length&&(this.addEditOps(b),null!=b.firstChild&&mxUtils.br(b));1<=a.cells.length&&this.addStyleOps(b);null!=b.firstChild&&this.container.appendChild(b)};StyleFormatPanel.prototype.getCssRules=function(a){var b=document.implementation.createHTMLDocument(""),e=document.createElement("style");mxUtils.setTextContent(e,a);b.body.appendChild(e);return e.sheet.cssRules};
StyleFormatPanel.prototype.addSvgStyles=function(a){var b=this.editorUi.getSelectionState();a.style.paddingTop="6px";a.style.paddingBottom="6px";a.style.fontWeight="bold";a.style.display="none";try{var e=b.style.editableCssRules;if(null!=e){var f=new RegExp(e),g=b.style.image.substring(b.style.image.indexOf(",")+1),d=window.atob?decodeURIComponent(escape(atob(g))):Base64.decode(g,!0),h=mxUtils.parseXml(d);if(null!=h){var l="light"==h.documentElement.style.colorScheme||"0"==mxUtils.getValue(b.style,
"darkMode",null),p=""==h.documentElement.style.colorScheme,k=h.getElementsByTagName("style");for(b=0;b<k.length;b++){var v=this.getCssRules(mxUtils.getTextContent(k[b]));for(e=0;e<v.length;e++)this.addSvgRule(a,v[e],h,k[b],v,e,f,l,p)}}}}catch(u){}return a};StyleFormatPanel.prototype.getColorSchemeFromCss=function(a){return(a=a.match(/color-scheme\s*:\s*([^;]+)/i))?a[1].trim():null};
StyleFormatPanel.prototype.addSvgRule=function(a,b,e,f,g,d,h,l,p){var k=this.editorUi,v=k.editor.graph;h.test(b.selectorText)&&(h=mxUtils.bind(this,function(u,x,z,E){var D=mxUtils.trim(u.style.getPropertyValue(x));if(""!=D&&"url("!=D.substring(0,4)){var G=D;"transparent"==G?G=mxConstants.NONE:(D=mxUtils.isLightDarkColor(G))&&E?E=!1:D||E||(G="light-dark("+G+", "+G+")");u=this.createColorOption(z+" "+u.selectorText,function(){return G},mxUtils.bind(this,function(H){g[d].style.setProperty(x,H==mxConstants.NONE?
@@ -3443,22 +3449,22 @@ O,W);T&&(ba=this.postProcessCellStyle(O,ba));return ba};e.refresh();e.getCellSty
"#84d7ff");for(var R=10*this.format.currentStylePage;R<Math.min(10*(this.format.currentStylePage+1),Editor.styles.length);R++){var V=Editor.styles[R];x(V.commonStyle,V.vertexStyle,V.edgeStyle,V.graph,R)}}),G=mxUtils.bind(this,function(R){0<=R&&R<z&&(E[this.format.currentStylePage].style.background="transparent",u.innerText="",this.format.currentStylePage=R,D())});if(1<z){var H=document.createElement("div");H.className="geSwitcher";H.style.width="200px";for(var L=0;L<z;L++){var N=document.createElement("div");
N.className="geSwitcherDot";mxUtils.bind(this,function(R,V){mxEvent.addListener(N,"click",mxUtils.bind(this,function(){G(R)}))})(L,N);H.appendChild(N);E.push(N)}a.appendChild(H);D();if(15>z&&0<E.length){L=document.createElement("div");L.className="geButton";L.style.backgroundImage="url("+Editor.chevronLeftImage+")";var K=L.cloneNode(!1);K.style.backgroundImage="url("+Editor.chevronRightImage+")";H.insertBefore(L,E[0]);H.appendChild(K);mxEvent.addListener(L,"click",mxUtils.bind(this,function(){G(mxUtils.mod(this.format.currentStylePage-
1,z))}));mxEvent.addListener(K,"click",mxUtils.bind(this,function(){G(mxUtils.mod(this.format.currentStylePage+1,z))}))}}else D();return a};DiagramFormatPanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};mxUtils.extend(DiagramFormatPanel,BaseFormatPanel);DiagramFormatPanel.showPageView=!0;DiagramFormatPanel.prototype.showBackgroundImageOption=!0;
-DiagramFormatPanel.prototype.init=function(){var a=this.editorUi.editor.graph;this.container.appendChild(this.addView(this.createPanel()));a.isEnabled()&&(this.container.appendChild(this.addOptions(this.createPanel())),this.container.appendChild(this.addPaperSize(this.createPanel())),this.container.appendChild(this.addStyleOps(this.createPanel())))};
+DiagramFormatPanel.prototype.init=function(){var a=this.editorUi.editor.graph;this.container.appendChild(this.addView(this.createPanel()));a.isEnabled()&&(a=this.createCollapsibleSection(mxResources.get("options"),!1),a.contentDiv.appendChild(this.addOptions(this.createPanel())),this.container.appendChild(a.wrapper),a=this.createCollapsibleSection(mxResources.get("paperSize"),!0),a.contentDiv.appendChild(this.addPaperSize(this.createPanel())),this.container.appendChild(a.wrapper),this.container.appendChild(this.addStyleOps(this.createPanel())))};
DiagramFormatPanel.prototype.addView=function(a){var b=this.editorUi,e=b.editor.graph;a.appendChild(this.createTitle(mxResources.get("view")));this.addGridOption(a);DiagramFormatPanel.showPageView&&a.appendChild(this.createOption(mxResources.get("pageView"),function(){return e.pageVisible},function(d){b.actions.get("pageView").funct()},{install:function(d){this.listener=function(){d(e.pageVisible)};b.addListener("pageViewChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}}));
if(e.isEnabled()){if(this.showBackgroundImageOption){var f=this.createOption(mxResources.get("background"),function(){return null!=e.backgroundImage},function(d){d||(d=new ChangePageSetup(b,null,null),d.ignoreColor=!0,e.model.execute(d))},{install:function(d){this.listener=function(){d(null!=e.backgroundImage)};b.addListener("backgroundImageChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}}),g=f.getElementsByTagName("input")[0];null!=g&&(g.style.visibility=null!=e.backgroundImage?
"visible":"hidden");g=f.getElementsByTagName("span")[0];null!=g&&(g.style.maxWidth="80px");g=mxUtils.button(mxResources.get("change")+"...",function(d){b.showBackgroundImageDialog(null,b.editor.graph.backgroundImage,b.editor.graph.background);mxEvent.consume(d)});g.style.position="absolute";g.style.height="22px";g.style.left="102px";g.style.width="110px";g.style.maxWidth=g.style.width;f.appendChild(g);a.appendChild(f)}f=this.createColorOption(mxResources.get("backgroundColor"),function(){return e.background},
function(d){d=new ChangePageSetup(b,d);d.ignoreImage=!0;e.model.execute(d)},"#ffffff");a.appendChild(f);f=this.createOption(mxResources.get("shadow"),function(){return e.shadowVisible},function(d){var h=new ChangePageSetup(b);h.ignoreColor=!0;h.ignoreImage=!0;h.shadowVisible=d;e.model.execute(h)},{install:function(d){this.listener=function(){d(e.shadowVisible)};b.addListener("shadowVisibleChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}});Editor.enableShadowOption||(f.getElementsByTagName("input")[0].setAttribute("disabled",
"disabled"),mxUtils.setOpacity(f,60));a.appendChild(f)}return a};
-DiagramFormatPanel.prototype.addOptions=function(a){var b=this.editorUi,e=b.editor.graph;a.appendChild(this.createTitle(mxResources.get("options")));e.isEnabled()&&(a.appendChild(this.createOption(mxResources.get("connectionArrows"),function(){return e.connectionArrowsEnabled},function(f){b.actions.get("connectionArrows").funct()},{install:function(f){this.listener=function(){f(e.connectionArrowsEnabled)};b.addListener("connectionArrowsChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}})),
-a.appendChild(this.createOption(mxResources.get("connectionPoints"),function(){return e.connectionHandler.isEnabled()},function(f){b.actions.get("connectionPoints").funct()},{install:function(f){this.listener=function(){f(e.connectionHandler.isEnabled())};b.addListener("connectionPointsChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}})),a.appendChild(this.createOption(mxResources.get("guides"),function(){return e.graphHandler.guidesEnabled},function(f){b.actions.get("guides").funct()},
-{install:function(f){this.listener=function(){f(e.graphHandler.guidesEnabled)};b.addListener("guidesEnabledChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}})));return a};
+DiagramFormatPanel.prototype.addOptions=function(a){var b=this.editorUi,e=b.editor.graph;e.isEnabled()&&(a.appendChild(this.createOption(mxResources.get("connectionArrows"),function(){return e.connectionArrowsEnabled},function(f){b.actions.get("connectionArrows").funct()},{install:function(f){this.listener=function(){f(e.connectionArrowsEnabled)};b.addListener("connectionArrowsChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}})),a.appendChild(this.createOption(mxResources.get("connectionPoints"),
+function(){return e.connectionHandler.isEnabled()},function(f){b.actions.get("connectionPoints").funct()},{install:function(f){this.listener=function(){f(e.connectionHandler.isEnabled())};b.addListener("connectionPointsChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}})),a.appendChild(this.createOption(mxResources.get("guides"),function(){return e.graphHandler.guidesEnabled},function(f){b.actions.get("guides").funct()},{install:function(f){this.listener=function(){f(e.graphHandler.guidesEnabled)};
+b.addListener("guidesEnabledChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}})));return a};
DiagramFormatPanel.prototype.addGridOption=function(a){function b(k){var v=e.isFloatUnit()?parseFloat(d.value):parseInt(d.value);v=e.fromUnit(Math.max(e.inUnit(1),isNaN(v)?e.inUnit(10):v));v!=g.getGridSize()&&(mxGraph.prototype.gridSize=v,g.setGridSize(v));d.value=e.inUnit(v)+" "+e.getUnit();mxEvent.consume(k)}var e=this,f=this.editorUi,g=f.editor.graph,d=document.createElement("input");d.style.position="absolute";d.style.width="50px";d.setAttribute("title",mxResources.get("gridSize"));d.value=this.inUnit(g.getGridSize())+
" "+this.getUnit();var h=this.createStepper(d,b,this.getUnitStep(),null,null,this.isFloatUnit());d.style.display=g.isGridEnabled()?"":"none";h.style.display=d.style.display;mxEvent.addListener(d,"keydown",function(k){13==k.keyCode?(g.container.focus(),mxEvent.consume(k)):27==k.keyCode&&(d.value=g.getGridSize(),g.container.focus(),mxEvent.consume(k))});mxEvent.addListener(d,"blur",b);mxEvent.addListener(d,"change",b);d.style.left="100px";h.style.left="150px";var l=function(){return"none"!=g.getAdaptiveColors()&&
Editor.isDarkMode()},p="light-dark("+mxGraphView.prototype.defaultGridColor+","+mxGraphView.prototype.defaultDarkGridColor+")";p=this.createColorOption(mxResources.get("grid"),function(){return g.isGridEnabled()?g.view.gridColor:null},function(k){var v=g.isGridEnabled();k==mxConstants.NONE?g.setGridEnabled(!1):(g.setGridEnabled(!0),f.setGridColor(k,l()));d.style.display=g.isGridEnabled()?"":"none";h.style.display=d.style.display;v!=g.isGridEnabled()&&(g.defaultGridEnabled=g.isGridEnabled(),f.fireEvent(new mxEventObject("gridEnabledChanged")))},
g.view.gridColor,{install:function(k){this.listener=function(){k(g.isGridEnabled()?g.view.gridColor:mxConstants.NONE)};f.addListener("darkModeChanged",this.listener);f.addListener("gridColorChanged",this.listener);f.addListener("gridEnabledChanged",this.listener)},destroy:function(){f.removeListener(this.listener)}},null,null,p,!0,l);p.appendChild(d);p.appendChild(h);a.appendChild(p)};
DiagramFormatPanel.prototype.addDocumentProperties=function(a){a.appendChild(this.createTitle(mxResources.get("options")));return a};
-DiagramFormatPanel.prototype.addPaperSize=function(a){var b=this.editorUi,e=b.editor.graph;a.appendChild(this.createTitle(mxResources.get("paperSize")));var f=PageSetupDialog.addPageFormatPanel(a,"formatpanel",e.pageFormat,function(d){if(null==e.pageFormat||e.pageFormat.width!=d.width||e.pageFormat.height!=d.height)d=new ChangePageSetup(b,null,null,d),d.ignoreColor=!0,d.ignoreImage=!0,e.model.execute(d)});this.addKeyHandler(f.widthInput,function(){f.set(e.pageFormat)});this.addKeyHandler(f.heightInput,
-function(){f.set(e.pageFormat)});var g=function(){f.set(e.pageFormat)};b.addListener("pageFormatChanged",g);this.listeners.push({destroy:function(){b.removeListener(g)}});e.getModel().addListener(mxEvent.CHANGE,g);this.listeners.push({destroy:function(){e.getModel().removeListener(g)}});return a};DiagramFormatPanel.prototype.addStyleOps=function(a){this.addActions(a,["editData"]);this.addActions(a,["clearDefaultStyle"]);return a};
+DiagramFormatPanel.prototype.addPaperSize=function(a){var b=this.editorUi,e=b.editor.graph,f=PageSetupDialog.addPageFormatPanel(a,"formatpanel",e.pageFormat,function(d){if(null==e.pageFormat||e.pageFormat.width!=d.width||e.pageFormat.height!=d.height)d=new ChangePageSetup(b,null,null,d),d.ignoreColor=!0,d.ignoreImage=!0,e.model.execute(d)});this.addKeyHandler(f.widthInput,function(){f.set(e.pageFormat)});this.addKeyHandler(f.heightInput,function(){f.set(e.pageFormat)});var g=function(){f.set(e.pageFormat)};
+b.addListener("pageFormatChanged",g);this.listeners.push({destroy:function(){b.removeListener(g)}});e.getModel().addListener(mxEvent.CHANGE,g);this.listeners.push({destroy:function(){e.getModel().removeListener(g)}});return a};DiagramFormatPanel.prototype.addStyleOps=function(a){this.addActions(a,["editData"]);this.addActions(a,["clearDefaultStyle"]);return a};
DiagramFormatPanel.prototype.destroy=function(){BaseFormatPanel.prototype.destroy.apply(this,arguments);this.gridEnabledListener&&(this.editorUi.removeListener(this.gridEnabledListener),this.gridEnabledListener=null)};(function(){function a(c,m,r){mxShape.call(this);this.line=c;this.stroke=m;this.strokewidth=null!=r?r:1;this.updateBoundsFromLine()}function b(){mxSwimlane.call(this)}function e(){mxSwimlane.call(this)}function f(){mxCylinder.call(this)}function g(){mxConnector.call(this)}function d(){mxCylinder.call(this)}function h(){mxActor.call(this)}function l(){mxCylinder.call(this)}function p(){mxCylinder.call(this)}function k(){mxCylinder.call(this)}function v(){mxCylinder.call(this)}function u(){mxShape.call(this)}
function x(){mxShape.call(this)}function z(c,m,r,n){mxShape.call(this);this.bounds=c;this.fill=m;this.stroke=r;this.strokewidth=null!=n?n:1}function E(){mxActor.call(this)}function D(){mxCylinder.call(this)}function G(){mxCylinder.call(this)}function H(){mxActor.call(this)}function L(){mxActor.call(this)}function N(){mxActor.call(this)}function K(){mxActor.call(this)}function R(){mxActor.call(this)}function V(){mxActor.call(this)}function U(){mxActor.call(this)}function W(c,m){this.canvas=c;this.canvas.setLineJoin("round");
this.canvas.setLineCap("round");this.defaultVariation=m;this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,W.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,W.prototype.moveTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,W.prototype.close);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,W.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=mxUtils.bind(this,
@@ -12321,9 +12327,9 @@ this.descriptorChanged();null!=f&&f()}}catch(x){this.invalidChecksum=this.inConf
DrawioFile.prototype.getAnonymizedXmlForPages=function(b){var f=new mxCodec(mxUtils.createXmlDocument()),k=f.document.createElement("mxfile");if(null!=b)for(var d=0;d<b.length;d++){var p=f.encode(new mxGraphModel(b[d].root));"1"!=urlParams.dev&&(p=this.ui.anonymizeNode(p,!0));p.setAttribute("id",b[d].getId());b[d].viewState&&this.ui.editor.graph.saveViewState(b[d].viewState,p,!0);k.appendChild(p)}return mxUtils.getPrettyXml(k)};
DrawioFile.prototype.compressReportData=function(b,f,k){f=null!=f?f:1E4;null!=k&&null!=b&&b.length>k?b=b.substring(0,k)+"[...]":null!=b&&b.length>f&&(b=Graph.compress(b)+"\n");return b};
DrawioFile.prototype.checksumError=function(b,f,k,d,p,t,v,A){this.stats.checksumErrors++;this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=b&&b();try{var J=this.getCurrentUser(),H=null!=J?J.id:"unknown",G=""!=this.getId()?this.getId():"("+this.ui.hashValue(this.getTitle())+")",D=JSON.stringify(f).length,c=null;if(null!=f&&1E3>D){b=[];for(k=0;k<f.length;k++)b.push(this.ui.anonymizePatch(f[k]));c=JSON.stringify(b);c=null!=c&&1E3>
-c.length?Graph.compress(c):null}this.getLatestVersion(mxUtils.bind(this,function(g){try{var l=null!=c?"report":"error",n=this.ui.getHashValueForPages(g.getShadowPages()),u="unknown",x="unknown",B="unknown";try{var C=null!=g.initialData&&0<g.initialData.length?mxUtils.parseXml(g.initialData).documentElement:null;null!=C&&(null!=C.getAttribute("version")&&(u=C.getAttribute("version")),null!=C.getAttribute("agent")&&(x=C.getAttribute("agent")),null!=C.getAttribute("type")&&(B=C.getAttribute("type")))}catch(F){}EditorUi.logError("Checksum "+
+c.length?Graph.compress(c):null}this.getLatestVersion(mxUtils.bind(this,function(g){try{var l=null!=c?"report":"error",n=this.ui.getHashValueForPages(g.getShadowPages()),u="unknown",x="unknown",B="unknown";try{var C=null!=g.initialData&&0<g.initialData.length?mxUtils.parseXml(g.initialData).documentElement:null;null!=C&&(null!=C.getAttribute("version")&&(u=C.getAttribute("version")),null!=C.getAttribute("agent")&&(x=C.getAttribute("agent")),null!=C.getAttribute("type")&&(B=C.getAttribute("type")))}catch(E){}EditorUi.logError("Checksum "+
l+" in "+p,null,this.getMode()+"."+G,"user_"+H+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+D+"-patches_"+f.length+(null!=c?"-json_"+c:"")+"-size_"+this.getSize()+(null!=t?"-expected_"+t:"")+(null!=v?"-current_"+v:"")+(null!=A?"-rev_"+this.ui.hashValue(A):"")+(null!=n?"-latest_"+n:"")+"-latestRev_"+this.ui.hashValue(g.getCurrentRevisionId())+("-latestVersion_"+u)+("-latestAgent_"+x)+("-latestType_"+B));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+G,action:p,label:"user_"+
-H+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+D+"-patches_"+f.length+"-size_"+this.getSize()})}catch(F){}}),function(){})}catch(g){}};
+H+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+D+"-patches_"+f.length+"-size_"+this.getSize()})}catch(E){}}),function(){})}catch(g){}};
DrawioFile.prototype.sendErrorReport=function(b,f,k,d){try{var p=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),t=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),v=this.getCurrentUser(),A=null!=v?this.ui.hashValue(v.id):"unknown",J=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",H=this.getTitle(),G=H.lastIndexOf(".");v="xml";0<G&&(v=H.substring(G));var D=null!=k?k.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()+" ("+v+")\nUser="+A+J+"\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!=f?"\n\n"+f:
"")+(null!=k?"\n\nError: "+k.message:"")+"\n\nStack:\n"+D+"\n\nShadow:\n"+p+"\n\nData:\n"+t,d)}catch(c){}};
@@ -12414,11 +12420,11 @@ StorageFile.listFiles=function(b,f,k,d){b.getDatabaseItems(function(p){var t=[];
StorageLibrary.prototype.getTitle=function(){return".scratchpad"==this.title?mxResources.get("scratchpad"):this.title};StorageLibrary.prototype.isRenamable=function(b,f,k){return".scratchpad"!=this.title};StorageLibrary.prototype.open=function(){};RemoteFile=function(b,f,k){DrawioFile.call(this,b,f);this.title=k;this.mode=null};mxUtils.extend(RemoteFile,DrawioFile);RemoteFile.prototype.isAutosave=function(){return!1};RemoteFile.prototype.getMode=function(){return this.mode};RemoteFile.prototype.getTitle=function(){return this.title};RemoteFile.prototype.isRenamable=function(){return!1};RemoteFile.prototype.open=function(){this.ui.setFileData(this.getData());this.installListeners()};RemoteLibrary=function(b,f,k){RemoteFile.call(this,b,f,k.title);this.libObj=k};mxUtils.extend(RemoteLibrary,LocalFile);RemoteLibrary.prototype.getHash=function(){return"R"+encodeURIComponent(JSON.stringify([this.libObj.id,this.libObj.title,this.libObj.downloadUrl]))};RemoteLibrary.prototype.isEditable=function(){return!1};RemoteLibrary.prototype.isRenamable=function(){return!1};RemoteLibrary.prototype.isAutosave=function(){return!1};RemoteLibrary.prototype.save=function(b,f,k){};
RemoteLibrary.prototype.saveAs=function(b,f,k){};RemoteLibrary.prototype.updateFileData=function(){};RemoteLibrary.prototype.open=function(){};UrlLibrary=function(b,f,k){StorageFile.call(this,b,f,k);b=k;f=b.lastIndexOf("/");0<=f&&(b=b.substring(f+1));this.fname=b};mxUtils.extend(UrlLibrary,StorageFile);UrlLibrary.prototype.getHash=function(){return"U"+encodeURIComponent(this.title)};UrlLibrary.prototype.getTitle=function(){return this.fname};UrlLibrary.prototype.isAutosave=function(){return!1};UrlLibrary.prototype.isEditable=function(b,f,k){return!1};UrlLibrary.prototype.saveAs=function(b,f,k){};UrlLibrary.prototype.open=function(){};EmbedFile=function(b,f,k){DrawioFile.call(this,b,f);this.desc=k||{};this.mode=App.MODE_EMBED};mxUtils.extend(EmbedFile,DrawioFile);EmbedFile.prototype.getMode=function(){return this.mode};EmbedFile.prototype.getTitle=function(){return this.desc.title||""};/*
mxClient.IS_IOS || */
-var StorageDialog=function(b,f,k){function d(D,c,g,l,n,u){function x(){mxEvent.addListener(B,"click",null!=u?u:function(){g==App.MODE_GOOGLE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.drive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(g,!0);f()})):g==App.MODE_ONEDRIVE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.oneDrive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(g,!0);f()}),function(R){b.spinner.stop();b.handleError(R)}):
+var StorageDialog=function(b,f,k){function d(D,c,g,l,n,u){function x(){mxEvent.addListener(B,"click",null!=u?u:function(){g==App.MODE_GOOGLE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.drive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(g,!0);f()})):g==App.MODE_ONEDRIVE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.oneDrive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(g,!0);f()}),function(T){b.spinner.stop();b.handleError(T)}):
(b.setMode(g,!0),f())})}A++;++v>k&&(mxUtils.br(J),v=1);var B=document.createElement("a");B.style.overflow="hidden";B.style.display="inline-block";B.className="geBaseButton";B.style.boxSizing="border-box";B.style.fontSize="11px";B.style.position="relative";B.style.margin="4px";B.style.marginTop="8px";B.style.marginBottom="0px";B.style.padding="8px 10px 8px 10px";B.style.width="88px";B.style.height="100px";B.style.whiteSpace="nowrap";B.setAttribute("title",c);var C=document.createElement("div");C.style.textOverflow=
-"ellipsis";C.style.overflow="hidden";C.style.position="absolute";C.style.bottom="8px";C.style.left="0px";C.style.right="0px";mxUtils.write(C,c);B.appendChild(C);if(null!=D){var F=document.createElement("img");F.setAttribute("src",D);F.setAttribute("border","0");F.setAttribute("align","absmiddle");F.style.width="60px";F.style.height="60px";F.style.paddingBottom="6px";B.appendChild(F)}else C.style.paddingTop="5px",C.style.whiteSpace="normal",mxClient.IS_IOS?(B.style.padding="0px 10px 20px 10px",B.style.top=
-"6px"):mxClient.IS_FF&&(C.style.paddingTop="0px",C.style.marginTop="-2px");if(null!=n)for(D=0;D<n.length;D++)mxUtils.br(C),mxUtils.write(C,n[D]);if(null!=l&&null==b[l]){F.style.visibility="hidden";mxUtils.setOpacity(C,10);var K=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});K.spin(B);var I=window.setTimeout(function(){null==b[l]&&(K.stop(),B.style.display="none")},3E4);b.addListener("clientLoaded",
-mxUtils.bind(this,function(R,W){null!=b[l]&&W.getProperty("client")==b[l]&&(window.clearTimeout(I),mxUtils.setOpacity(C,100),F.style.visibility="",K.stop(),x(),"drive"==l&&null!=H.parentNode&&H.parentNode.removeChild(H))}))}else x();J.appendChild(B)}k=null!=k?k:2;var p=document.createElement("div");p.style.textAlign="center";p.style.whiteSpace="nowrap";p.style.paddingTop="0px";p.style.paddingBottom="20px";var t=document.createElement("div");t.style.border="1px solid #d3d3d3";t.style.borderWidth="1px 0px 1px 0px";
+"ellipsis";C.style.overflow="hidden";C.style.position="absolute";C.style.bottom="8px";C.style.left="0px";C.style.right="0px";mxUtils.write(C,c);B.appendChild(C);if(null!=D){var E=document.createElement("img");E.setAttribute("src",D);E.setAttribute("border","0");E.setAttribute("align","absmiddle");E.style.width="60px";E.style.height="60px";E.style.paddingBottom="6px";B.appendChild(E)}else C.style.paddingTop="5px",C.style.whiteSpace="normal",mxClient.IS_IOS?(B.style.padding="0px 10px 20px 10px",B.style.top=
+"6px"):mxClient.IS_FF&&(C.style.paddingTop="0px",C.style.marginTop="-2px");if(null!=n)for(D=0;D<n.length;D++)mxUtils.br(C),mxUtils.write(C,n[D]);if(null!=l&&null==b[l]){E.style.visibility="hidden";mxUtils.setOpacity(C,10);var K=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});K.spin(B);var I=window.setTimeout(function(){null==b[l]&&(K.stop(),B.style.display="none")},3E4);b.addListener("clientLoaded",
+mxUtils.bind(this,function(T,W){null!=b[l]&&W.getProperty("client")==b[l]&&(window.clearTimeout(I),mxUtils.setOpacity(C,100),E.style.visibility="",K.stop(),x(),"drive"==l&&null!=H.parentNode&&H.parentNode.removeChild(H))}))}else x();J.appendChild(B)}k=null!=k?k:2;var p=document.createElement("div");p.style.textAlign="center";p.style.whiteSpace="nowrap";p.style.paddingTop="0px";p.style.paddingBottom="20px";var t=document.createElement("div");t.style.border="1px solid #d3d3d3";t.style.borderWidth="1px 0px 1px 0px";
t.style.padding="10px 0px 20px 0px";var v=0,A=0,J=document.createElement("div");J.style.paddingTop="2px";t.appendChild(J);var H=document.createElement("p"),G=document.createElement("p");G.style.cssText="font-size:22px;padding:4px 0 16px 0;margin:0;color:gray;";mxUtils.write(G,mxResources.get("saveDiagramsTo")+":");p.appendChild(G);p.appendChild(t);v=0;"function"===typeof window.DriveClient&&d(IMAGE_PATH+"/google-drive-logo.svg",mxResources.get("googleDrive"),App.MODE_GOOGLE,"drive");null!=b.m365&&
d(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("m365"),App.MODE_M365,"m365");"1"!=urlParams.noDevice&&d(IMAGE_PATH+"/osa_drive-harddisk.png",mxResources.get("device"),App.MODE_DEVICE);!isLocalStorage||"1"!=urlParams.browser&&"1"!=urlParams.offline||d(IMAGE_PATH+"/osa_database.png",mxResources.get("browser"),App.MODE_BROWSER);"function"===typeof window.OneDriveClient&&d(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"),App.MODE_ONEDRIVE,"oneDrive");null!=b.gitHub&&d(IMAGE_PATH+"/github-logo.svg",
mxResources.get("github"),App.MODE_GITHUB,"gitHub");null!=b.gitLab&&d(IMAGE_PATH+"/gitlab-logo.svg",mxResources.get("gitlab"),App.MODE_GITLAB,"gitLab");t=document.createElement("span");t.style.position="absolute";t.style.cursor="pointer";t.style.bottom="27px";t.style.color="gray";t.style.userSelect="none";t.style.textAlign="center";t.style.left="50%";mxUtils.setPrefixedStyle(t.style,"transform","translate(-50%,0)");mxUtils.write(t,mxResources.get("decideLater"));p.appendChild(t);mxEvent.addListener(t,
@@ -12454,34 +12460,34 @@ function(){b.hideDialog()})});p.className="geBtn";b.editor.cancelFirst&&d.append
b.editor.graph.setSelectionCells(n));b.hideDialog()});d.appendChild(g);g.className="geBtn gePrimaryBtn";b.editor.cancelFirst||d.appendChild(p);this.graph=t};this.container=d};
CreateGraphDialog.prototype.connectImage=new mxImage("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RjQ3OTk0QjMyRDcyMTFFNThGQThGNDVBMjNBMjFDMzkiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RjQ3OTk0QjQyRDcyMTFFNThGQThGNDVBMjNBMjFDMzkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDoyRjA0N0I2MjJENzExMUU1OEZBOEY0NUEyM0EyMUMzOSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpGNDc5OTRCMjJENzIxMUU1OEZBOEY0NUEyM0EyMUMzOSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PjIf+MgAAATlSURBVHjanFZraFxFFD735u4ru3ls0yZG26ShgmJoKK1J2vhIYzBgRdtIURHyw1hQUH9IxIgI2h8iCEUF/1RRlNQYCsYfCTHVhiTtNolpZCEStqSC22xIsrs1bDfu7t37Gs/cO3Ozxs1DBw73zpk555vzmHNGgJ0NYatFgmNLYUHYUoHASMz5ijmgVLmxgfKCUiBxC4ACJAeSG8nb1dVVOTc3dyoSibwWDofPBIPBJzo7O8vpGtvjpDICGztxkciECpF2LS0tvZtOpwNkk5FKpcYXFxffwL1+JuPgllPj8nk1F6RoaGjoKCqZ5ApljZDZO4SMRA0SuG2QUJIQRV8HxMOM9vf3H0ZZH9Nhg20MMl2QkFwjIyNHWlpahtADnuUMwLcRHX5aNSBjCJYEsSSLUeLEbhGe3ytCmQtA1/XY+Pj46dbW1iDuyCJp9BC5ycBj4hoeHq5ra2sbw0Xn1ZgBZ+dVkA1Lc+6p0Ck2p0QS4Ox9EhwpEylYcmBg4LH29vYQLilIOt0u5FhDfevNZDI/u93uw6PLOrwTUtjxrbPYbhD42WgMrF8JmR894ICmCgnQjVe8Xu8pXEkzMJKbuo5oNPomBbm1ZsD7s2kwFA1JZ6QBUXWT1nmGNc/qoMgavDcrQzxjQGFh4aOYIJ0sFAXcEtui4uLiVjr5KpSBVFYDDZVrWUaKRRWSAYeK0fmKykgDXbVoNaPChRuyqdDv97czL5nXxQbq6empQmsaklkDBiNpSwFVrmr2P6UyicD5piI4f8wHh0oEm8/p4h8pyGiEWvVQd3e3nxtjAzU1NR2jP7NRBWQ8GbdEzzJAmc0V3RR4cI8Dvmwuhc8fKUFA0d6/ltHg5p+Kuaejo6OeY0jcNJ/PV00ZS0nFUoZRvvFS1bZFsKHCCQ2Pl8H0chY+C96B6ZUsrCQ1qKtwQVFRURW/QhIXMAzDPAZ6BgOr8tTa8dDxCmiYGApaJbJMxSzV+brE8pdgWkcpY5dbMF1AR9XH8/xu2ilef48bvn92n82ZwHh+8ssqTEXS9p7dHisiiURikd8PbpExNTU1UVNTA3V3Y7lC16n0gpB/NwpNcZjfa7dScC4Qh0kOQCwnlEgi3F/hMVl9fX0zvKrzSk2lfXjRhj0eT/2rvWG4+Pta3oJY7XfC3hInXAv/ldeFLx8shQ+eqQL0UAAz7ylkpej5eNZRVBWL6BU6ef14OYiY1oqyTtmsavr/5koaRucT1pzx+ZpL1+GV5nLutksUgIcmtwTRiuuVZXnU5XId7A2swJkfFsymRWC91hHg1Viw6x23+7vn9sPJ+j20BE1hCXqSWaNSQ8ScbknRZWxub1PGCw/fBV+c3AeijlUbY5bBjEqr9GuYZP4jP41WudGSC6erTRCqdGZm5i1WvXWeDHnbBCZGc2Nj4wBl/hZOwrmBBfgmlID1HmGJutHaF+tKoevp/XCgstDkjo2NtWKLuc6AVN4mNjY+s1XQxoenOoFuDPHGtnRbJj9ej5GvL0dI7+giuRyMk1giazc+DP6vgUDgOJVlOv7R+PJ12QIeL6SyeDz+Kfp8ZrNWjgDTsVjsQ7qXyTjztXJhm9ePxFLfMTg4eG9tbe1RTP9KFFYQfHliYmIS69kCC7jKYmKwxxD5P88tkVkqbPPcIps9t4T/+HjcuJ/s5BFJgf4WYABCtxGuxIZ90gAAAABJRU5ErkJggg==",26,
26);
-var BackgroundImageDialog=function(b,f,k,d,p){function t(){null==z||z==mxConstants.NONE?(q.style.display="none",R.checked=!1):(q.style.backgroundColor=z,q.style.display="",R.checked=!0)}var v=b.editor.graph,A=document.createElement("div");A.style.whiteSpace="nowrap";var J=document.createElement("h2");mxUtils.write(J,mxResources.get("background"));J.style.marginTop="0px";A.appendChild(J);var H=null!=k&&null!=k.originalSrc;J=!1;var G=document.createElement("input");G.style.cssText="margin-right:8px;margin-bottom:8px;";G.setAttribute("value",
+var BackgroundImageDialog=function(b,f,k,d,p){function t(){null==z||z==mxConstants.NONE?(q.style.display="none",T.checked=!1):(q.style.backgroundColor=z,q.style.display="",T.checked=!0)}var v=b.editor.graph,A=document.createElement("div");A.style.whiteSpace="nowrap";var J=document.createElement("h2");mxUtils.write(J,mxResources.get("background"));J.style.marginTop="0px";A.appendChild(J);var H=null!=k&&null!=k.originalSrc;J=!1;var G=document.createElement("input");G.style.cssText="margin-right:8px;margin-bottom:8px;";G.setAttribute("value",
"url");G.setAttribute("type","radio");G.setAttribute("name","geBackgroundImageDialogOption");var D=document.createElement("input");D.style.cssText="margin-right:8px;margin-bottom:8px;";D.setAttribute("value","url");D.setAttribute("type","radio");D.setAttribute("name","geBackgroundImageDialogOption");var c=document.createElement("input");c.setAttribute("type","text");c.style.marginBottom="8px";c.style.width="360px";c.value=H||null==k?"":k.src;var g=document.createElement("select");g.style.width="360px";
if(null!=b.pages)for(var l=0;l<b.pages.length;l++){var n=document.createElement("option");mxUtils.write(n,b.pages[l].getName()||mxResources.get("pageWithNumber",[l+1]));n.setAttribute("value","data:page/id,"+b.pages[l].getId());b.pages[l]==b.currentPage&&n.setAttribute("disabled","disabled");null!=k&&k.originalSrc==n.getAttribute("value")&&(n.setAttribute("selected","selected"),J=!0);g.appendChild(n)}H||null!=b.pages&&1!=b.pages.length||(G.style.display="none",D.style.display="none",g.style.display=
-"none");var u=document.createElement("option"),x=!1,B=!1,C=function(N,M){x||null!=N&&B||(D.checked?null!=M&&M(u.selected?null:g.value):""==c.value||b.isOffline()?(K.value="",I.value="",null!=M&&M("")):(c.value=mxUtils.trim(c.value),b.loadImage(c.value,function(m){K.value=m.width;I.value=m.height;null!=M&&M(c.value)},function(){b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"));K.value="";I.value="";null!=M&&M(null)})))},F=mxUtils.bind(this,function(N){b.importFiles(N,
-0,0,b.maxBackgroundSize,function(M,m,y,E,P,O){c.value=M;C();c.focus()},function(){},function(M){return"image/"==M.type.substring(0,6)},function(M){for(var m=0;m<M.length;m++)M[m]()},!0,b.maxBackgroundBytes,b.maxBackgroundBytes,!0)});this.init=function(){H?g.focus():c.focus();mxEvent.addListener(g,"focus",function(){G.removeAttribute("checked");D.setAttribute("checked","checked");D.checked=!0});mxEvent.addListener(c,"focus",function(){D.removeAttribute("checked");G.setAttribute("checked","checked");
+"none");var u=document.createElement("option"),x=!1,B=!1,C=function(N,M){x||null!=N&&B||(D.checked?null!=M&&M(u.selected?null:g.value):""==c.value||b.isOffline()?(K.value="",I.value="",null!=M&&M("")):(c.value=mxUtils.trim(c.value),b.loadImage(c.value,function(m){K.value=m.width;I.value=m.height;null!=M&&M(c.value)},function(){b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"));K.value="";I.value="";null!=M&&M(null)})))},E=mxUtils.bind(this,function(N){b.importFiles(N,
+0,0,b.maxBackgroundSize,function(M,m,y,F,P,O){c.value=M;C();c.focus()},function(){},function(M){return"image/"==M.type.substring(0,6)},function(M){for(var m=0;m<M.length;m++)M[m]()},!0,b.maxBackgroundBytes,b.maxBackgroundBytes,!0)});this.init=function(){H?g.focus():c.focus();mxEvent.addListener(g,"focus",function(){G.removeAttribute("checked");D.setAttribute("checked","checked");D.checked=!0});mxEvent.addListener(c,"focus",function(){D.removeAttribute("checked");G.setAttribute("checked","checked");
G.checked=!0});if(Graph.fileSupport){c.setAttribute("placeholder",mxResources.get("dragImagesHere"));var N=A.parentNode,M=null;mxEvent.addListener(N,"dragleave",function(m){null!=M&&(M.parentNode.removeChild(M),M=null);m.stopPropagation();m.preventDefault()});mxEvent.addListener(N,"dragover",mxUtils.bind(this,function(m){null==M&&(M=b.highlightElement(N));m.stopPropagation();m.preventDefault()}));mxEvent.addListener(N,"drop",mxUtils.bind(this,function(m){null!=M&&(M.parentNode.removeChild(M),M=null);
-if(0<m.dataTransfer.files.length)F(m.dataTransfer.files);else if(0<=mxUtils.indexOf(m.dataTransfer.types,"text/uri-list")){var y=m.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(y)&&(c.value=decodeURIComponent(y),C())}m.stopPropagation();m.preventDefault()}),!1)}};A.appendChild(G);A.appendChild(c);mxUtils.br(A);l=document.createElement("span");l.style.marginLeft="30px";mxUtils.write(l,mxResources.get("width")+":");A.appendChild(l);var K=document.createElement("input");
+if(0<m.dataTransfer.files.length)E(m.dataTransfer.files);else if(0<=mxUtils.indexOf(m.dataTransfer.types,"text/uri-list")){var y=m.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(y)&&(c.value=decodeURIComponent(y),C())}m.stopPropagation();m.preventDefault()}),!1)}};A.appendChild(G);A.appendChild(c);mxUtils.br(A);l=document.createElement("span");l.style.marginLeft="30px";mxUtils.write(l,mxResources.get("width")+":");A.appendChild(l);var K=document.createElement("input");
K.setAttribute("type","text");K.style.width="60px";K.style.marginLeft="8px";K.style.marginRight="16px";K.value=null==k||H?"":k.width;A.appendChild(K);mxUtils.write(A,mxResources.get("height")+":");var I=document.createElement("input");I.setAttribute("type","text");I.style.width="60px";I.style.marginLeft="8px";I.style.marginRight="16px";I.value=null==k||H?"":k.height;A.appendChild(I);mxUtils.br(A);mxUtils.br(A);mxEvent.addListener(c,"change",C);ImageDialog.filePicked=function(N){N.action==google.picker.Action.PICKED&&
null!=N.docs[0].thumbnails&&(N=N.docs[0].thumbnails[N.docs[0].thumbnails.length-1],null!=N&&(c.value=N.url,C()));c.focus()};A.appendChild(D);A.appendChild(g);mxUtils.br(A);mxUtils.br(A);H?(D.setAttribute("checked","checked"),D.checked=!0):(G.setAttribute("checked","checked"),G.checked=!0);!J&&D.checked&&(mxUtils.write(u,mxResources.get("pageNotFound")),u.setAttribute("disabled","disabled"),u.setAttribute("selected","selected"),u.setAttribute("value","pageNotFound"),g.appendChild(u),mxEvent.addListener(g,
-"change",function(){null==u.parentNode||u.selected||u.parentNode.removeChild(u)}));k=document.createElement("div");k.style.display=p?"inline-flex":"none";k.style.alignItems="center";k.style.cursor="default";k.style.minWidth="40%";k.style.height="20px";var R=document.createElement("input");R.setAttribute("type","checkbox");R.style.margin="0px 10px 0px 4px";R.style.verticalAlign="bottom";R.defaultChecked=d!=mxConstants.NONE&&null!=d;R.checked=R.defaultChecked;k.appendChild(R);mxUtils.write(k,mxResources.get("fillColor"));
+"change",function(){null==u.parentNode||u.selected||u.parentNode.removeChild(u)}));k=document.createElement("div");k.style.display=p?"inline-flex":"none";k.style.alignItems="center";k.style.cursor="default";k.style.minWidth="40%";k.style.height="20px";var T=document.createElement("input");T.setAttribute("type","checkbox");T.style.margin="0px 10px 0px 4px";T.style.verticalAlign="bottom";T.defaultChecked=d!=mxConstants.NONE&&null!=d;T.checked=T.defaultChecked;k.appendChild(T);mxUtils.write(k,mxResources.get("fillColor"));
p=k.cloneNode(!1);var W=document.createElement("input");W.setAttribute("type","checkbox");W.style.margin="0px 10px 0px 30px";W.style.verticalAlign="bottom";W.defaultChecked=v.shadowVisible;W.checked=W.defaultChecked;p.appendChild(W);mxUtils.write(p,mxResources.get("shadow"));mxClient.IS_SVG&&!mxClient.IS_SF||W.setAttribute("disabled","disabled");mxEvent.addListener(p,"click",function(N){mxEvent.getSource(N)!=W&&(W.checked=!W.checked)});var q=document.createElement("button");q.style.width="36px";q.style.height=
-"18px";q.style.cursor="pointer";q.style.marginLeft="10px";q.style.backgroundPosition="center center";q.style.backgroundRepeat="no-repeat";q.style.verticalAlign="bottom";q.className="geColorBtn";var z=d;t();mxEvent.addListener(k,"click",function(N){mxEvent.getSource(N)!=R&&(R.checked=!R.checked);z=R.checked?"#ffffff":null;t()});mxEvent.addListener(q,"click",function(N){b.pickColor(z||"none",function(M){z=M;t()});mxEvent.consume(N)});k.appendChild(q);A.appendChild(k);A.appendChild(p);mxUtils.br(A);
+"18px";q.style.cursor="pointer";q.style.marginLeft="10px";q.style.backgroundPosition="center center";q.style.backgroundRepeat="no-repeat";q.style.verticalAlign="bottom";q.className="geColorBtn";var z=d;t();mxEvent.addListener(k,"click",function(N){mxEvent.getSource(N)!=T&&(T.checked=!T.checked);z=T.checked?"#ffffff":null;t()});mxEvent.addListener(q,"click",function(N){b.pickColor(z||"none",function(M){z=M;t()});mxEvent.consume(N)});k.appendChild(q);A.appendChild(k);A.appendChild(p);mxUtils.br(A);
d=document.createElement("div");d.style.marginTop="30px";d.style.textAlign="right";v=mxUtils.button(mxResources.get("cancel"),function(){x=!0;b.hideDialog()});v.className="geBtn";b.editor.cancelFirst&&d.appendChild(v);p=mxUtils.button(mxResources.get("reset"),function(){c.value="";K.value="";I.value="";G.checked=!0;z=mxConstants.NONE;t();x=!1});mxEvent.addGestureListeners(p,function(){x=!0});p.className="geBtn";p.width="100";d.appendChild(p);if(Graph.fileSupport){var L=document.createElement("input");
-L.setAttribute("multiple","multiple");L.setAttribute("type","file");mxEvent.addListener(L,"change",function(N){null!=L.files&&(F(L.files),L.type="",L.type="file",L.value="")});L.style.display="none";A.appendChild(L);p=mxUtils.button(mxResources.get("open"),function(){L.click()});p.className="geBtn";d.appendChild(p)}applyBtn=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();C(null,function(N){f(""!=N&&null!=N?new mxImage(N,K.value,I.value):null,null==N,z,!mxClient.IS_SVG||mxClient.IS_SF?
-null:W.checked)})});mxEvent.addGestureListeners(applyBtn,function(){B=!0});applyBtn.className="geBtn gePrimaryBtn";d.appendChild(applyBtn);b.editor.cancelFirst||d.appendChild(v);A.appendChild(d);this.container=A},ParseDialog=function(b,f,k){function d(g,l,n){if("plantUmlPng"==l||"plantUmlSvg"==l||"plantUmlTxt"==l){if(b.spinner.spin(document.body,mxResources.get("inserting"))){var u=function(M,m,y,E,P){var O=null;x.getModel().beginUpdate();try{O="txt"==m?b.insertAsPreText(y,t.x,t.y):x.insertVertex(null,
-null,null,t.x,t.y,E,P,"shape=image;noLabel=1;verticalAlign=top;aspect=fixed;imageAspect=0;image="+b.convertDataUri(y)+";"),x.setAttributeForCell(O,"plantUmlData",JSON.stringify({data:M,format:m},null,2))}finally{x.getModel().endUpdate()}null!=O&&(x.setSelectionCell(O),x.scrollCellToVisible(O))},x=b.editor.graph,B="plantUmlTxt"==l?"txt":"plantUmlPng"==l?"png":"svg";"@startuml\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml"==
+L.setAttribute("multiple","multiple");L.setAttribute("type","file");mxEvent.addListener(L,"change",function(N){null!=L.files&&(E(L.files),L.type="",L.type="file",L.value="")});L.style.display="none";A.appendChild(L);p=mxUtils.button(mxResources.get("open"),function(){L.click()});p.className="geBtn";d.appendChild(p)}applyBtn=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();C(null,function(N){f(""!=N&&null!=N?new mxImage(N,K.value,I.value):null,null==N,z,!mxClient.IS_SVG||mxClient.IS_SF?
+null:W.checked)})});mxEvent.addGestureListeners(applyBtn,function(){B=!0});applyBtn.className="geBtn gePrimaryBtn";d.appendChild(applyBtn);b.editor.cancelFirst||d.appendChild(v);A.appendChild(d);this.container=A},ParseDialog=function(b,f,k){function d(g,l,n){if("plantUmlPng"==l||"plantUmlSvg"==l||"plantUmlTxt"==l){if(b.spinner.spin(document.body,mxResources.get("inserting"))){var u=function(M,m,y,F,P){var O=null;x.getModel().beginUpdate();try{O="txt"==m?b.insertAsPreText(y,t.x,t.y):x.insertVertex(null,
+null,null,t.x,t.y,F,P,"shape=image;noLabel=1;verticalAlign=top;aspect=fixed;imageAspect=0;image="+b.convertDataUri(y)+";"),x.setAttributeForCell(O,"plantUmlData",JSON.stringify({data:M,format:m},null,2))}finally{x.getModel().endUpdate()}null!=O&&(x.setSelectionCell(O),x.scrollCellToVisible(O))},x=b.editor.graph,B="plantUmlTxt"==l?"txt":"plantUmlPng"==l?"png":"svg";"@startuml\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml"==
g&&"svg"==B?window.setTimeout(function(){b.spinner.stop();u(g,B,"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBjb250ZW50U2NyaXB0VHlwZT0iYXBwbGljYXRpb24vZWNtYXNjcmlwdCIgY29udGVudFN0eWxlVHlwZT0idGV4dC9jc3MiIGhlaWdodD0iMjEycHgiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHN0eWxlPSJ3aWR0aDoyOTVweDtoZWlnaHQ6MjEycHg7IiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyOTUgMjEyIiB3aWR0aD0iMjk1cHgiIHpvb21BbmRQYW49Im1hZ25pZnkiPjxkZWZzLz48Zz48bGluZSBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsgc3Ryb2tlLWRhc2hhcnJheTogNS4wLDUuMDsiIHgxPSIzMSIgeDI9IjMxIiB5MT0iMzQuNDg4MyIgeTI9IjE3MS43MzA1Ii8+PGxpbmUgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjA7IHN0cm9rZS1kYXNoYXJyYXk6IDUuMCw1LjA7IiB4MT0iMjY0LjUiIHgyPSIyNjQuNSIgeTE9IjM0LjQ4ODMiIHkyPSIxNzEuNzMwNSIvPjxyZWN0IGZpbGw9IiNGRUZFQ0UiIGhlaWdodD0iMzAuNDg4MyIgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjU7IiB3aWR0aD0iNDciIHg9IjgiIHk9IjMiLz48dGV4dCBmaWxsPSIjMDAwMDAwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNCIgbGVuZ3RoQWRqdXN0PSJzcGFjaW5nQW5kR2x5cGhzIiB0ZXh0TGVuZ3RoPSIzMyIgeD0iMTUiIHk9IjIzLjUzNTIiPkFsaWNlPC90ZXh0PjxyZWN0IGZpbGw9IiNGRUZFQ0UiIGhlaWdodD0iMzAuNDg4MyIgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjU7IiB3aWR0aD0iNDciIHg9IjgiIHk9IjE3MC43MzA1Ii8+PHRleHQgZmlsbD0iIzAwMDAwMCIgZm9udC1mYW1pbHk9InNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTQiIGxlbmd0aEFkanVzdD0ic3BhY2luZ0FuZEdseXBocyIgdGV4dExlbmd0aD0iMzMiIHg9IjE1IiB5PSIxOTEuMjY1NiI+QWxpY2U8L3RleHQ+PHJlY3QgZmlsbD0iI0ZFRkVDRSIgaGVpZ2h0PSIzMC40ODgzIiBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuNTsiIHdpZHRoPSI0MCIgeD0iMjQ0LjUiIHk9IjMiLz48dGV4dCBmaWxsPSIjMDAwMDAwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNCIgbGVuZ3RoQWRqdXN0PSJzcGFjaW5nQW5kR2x5cGhzIiB0ZXh0TGVuZ3RoPSIyNiIgeD0iMjUxLjUiIHk9IjIzLjUzNTIiPkJvYjwvdGV4dD48cmVjdCBmaWxsPSIjRkVGRUNFIiBoZWlnaHQ9IjMwLjQ4ODMiIHN0eWxlPSJzdHJva2U6ICNBODAwMzY7IHN0cm9rZS13aWR0aDogMS41OyIgd2lkdGg9IjQwIiB4PSIyNDQuNSIgeT0iMTcwLjczMDUiLz48dGV4dCBmaWxsPSIjMDAwMDAwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNCIgbGVuZ3RoQWRqdXN0PSJzcGFjaW5nQW5kR2x5cGhzIiB0ZXh0TGVuZ3RoPSIyNiIgeD0iMjUxLjUiIHk9IjE5MS4yNjU2Ij5Cb2I8L3RleHQ+PHBvbHlnb24gZmlsbD0iI0E4MDAzNiIgcG9pbnRzPSIyNTIuNSw2MS43OTg4LDI2Mi41LDY1Ljc5ODgsMjUyLjUsNjkuNzk4OCwyNTYuNSw2NS43OTg4IiBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsiLz48bGluZSBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsiIHgxPSIzMS41IiB4Mj0iMjU4LjUiIHkxPSI2NS43OTg4IiB5Mj0iNjUuNzk4OCIvPjx0ZXh0IGZpbGw9IiMwMDAwMDAiIGZvbnQtZmFtaWx5PSJzYW5zLXNlcmlmIiBmb250LXNpemU9IjEzIiBsZW5ndGhBZGp1c3Q9InNwYWNpbmdBbmRHbHlwaHMiIHRleHRMZW5ndGg9IjE0NyIgeD0iMzguNSIgeT0iNjEuMDU2NiI+QXV0aGVudGljYXRpb24gUmVxdWVzdDwvdGV4dD48cG9seWdvbiBmaWxsPSIjQTgwMDM2IiBwb2ludHM9IjQyLjUsOTEuMTA5NCwzMi41LDk1LjEwOTQsNDIuNSw5OS4xMDk0LDM4LjUsOTUuMTA5NCIgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjA7Ii8+PGxpbmUgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjA7IHN0cm9rZS1kYXNoYXJyYXk6IDIuMCwyLjA7IiB4MT0iMzYuNSIgeDI9IjI2My41IiB5MT0iOTUuMTA5NCIgeTI9Ijk1LjEwOTQiLz48dGV4dCBmaWxsPSIjMDAwMDAwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxMyIgbGVuZ3RoQWRqdXN0PSJzcGFjaW5nQW5kR2x5cGhzIiB0ZXh0TGVuZ3RoPSIxNTciIHg9IjQ4LjUiIHk9IjkwLjM2NzIiPkF1dGhlbnRpY2F0aW9uIFJlc3BvbnNlPC90ZXh0Pjxwb2x5Z29uIGZpbGw9IiNBODAwMzYiIHBvaW50cz0iMjUyLjUsMTIwLjQxOTksMjYyLjUsMTI0LjQxOTksMjUyLjUsMTI4LjQxOTksMjU2LjUsMTI0LjQxOTkiIHN0eWxlPSJzdHJva2U6ICNBODAwMzY7IHN0cm9rZS13aWR0aDogMS4wOyIvPjxsaW5lIHN0eWxlPSJzdHJva2U6ICNBODAwMzY7IHN0cm9rZS13aWR0aDogMS4wOyIgeDE9IjMxLjUiIHgyPSIyNTguNSIgeTE9IjEyNC40MTk5IiB5Mj0iMTI0LjQxOTkiLz48dGV4dCBmaWxsPSIjMDAwMDAwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxMyIgbGVuZ3RoQWRqdXN0PSJzcGFjaW5nQW5kR2x5cGhzIiB0ZXh0TGVuZ3RoPSIxOTkiIHg9IjM4LjUiIHk9IjExOS42Nzc3Ij5Bbm90aGVyIGF1dGhlbnRpY2F0aW9uIFJlcXVlc3Q8L3RleHQ+PHBvbHlnb24gZmlsbD0iI0E4MDAzNiIgcG9pbnRzPSI0Mi41LDE0OS43MzA1LDMyLjUsMTUzLjczMDUsNDIuNSwxNTcuNzMwNSwzOC41LDE1My43MzA1IiBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsiLz48bGluZSBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsgc3Ryb2tlLWRhc2hhcnJheTogMi4wLDIuMDsiIHgxPSIzNi41IiB4Mj0iMjYzLjUiIHkxPSIxNTMuNzMwNSIgeTI9IjE1My43MzA1Ii8+PHRleHQgZmlsbD0iIzAwMDAwMCIgZm9udC1mYW1pbHk9InNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTMiIGxlbmd0aEFkanVzdD0ic3BhY2luZ0FuZEdseXBocyIgdGV4dExlbmd0aD0iMjA5IiB4PSI0OC41IiB5PSIxNDguOTg4MyI+QW5vdGhlciBhdXRoZW50aWNhdGlvbiBSZXNwb25zZTwvdGV4dD48IS0tTUQ1PVs3ZjNlNGQwYzkwMWVmZGJjNTdlYjQ0MjQ5YTNiODE5N10KQHN0YXJ0dW1sDQpza2lucGFyYW0gc2hhZG93aW5nIGZhbHNlDQpBbGljZSAtPiBCb2I6IEF1dGhlbnRpY2F0aW9uIFJlcXVlc3QNCkJvYiAtIC0+IEFsaWNlOiBBdXRoZW50aWNhdGlvbiBSZXNwb25zZQ0KDQpBbGljZSAtPiBCb2I6IEFub3RoZXIgYXV0aGVudGljYXRpb24gUmVxdWVzdA0KQWxpY2UgPC0gLSBCb2I6IEFub3RoZXIgYXV0aGVudGljYXRpb24gUmVzcG9uc2UNCkBlbmR1bWwNCgpQbGFudFVNTCB2ZXJzaW9uIDEuMjAyMC4wMihTdW4gTWFyIDAxIDA0OjIyOjA3IENTVCAyMDIwKQooTUlUIHNvdXJjZSBkaXN0cmlidXRpb24pCkphdmEgUnVudGltZTogT3BlbkpESyBSdW50aW1lIEVudmlyb25tZW50CkpWTTogT3BlbkpESyA2NC1CaXQgU2VydmVyIFZNCkphdmEgVmVyc2lvbjogMTIrMzMKT3BlcmF0aW5nIFN5c3RlbTogTWFjIE9TIFgKRGVmYXVsdCBFbmNvZGluZzogVVRGLTgKTGFuZ3VhZ2U6IGVuCkNvdW50cnk6IFVTCi0tPjwvZz48L3N2Zz4=",
295,212)},200):b.generatePlantUmlImage(g,B,function(M,m,y){b.spinner.stop();u(g,B,M,m,y)},function(M){b.handleError(M)})}}else if("mermaid"==l||"mermaid2drawio"==l)b.spinner.spin(document.body,mxResources.get("inserting"))&&b.parseMermaidDiagram(g,null,mxUtils.bind(this,function(M){b.spinner.stop();var m=b.editor.graph;m.setSelectionCells(b.importXml(M,Math.max(t.x,20),Math.max(t.y,20),!0,null,null,!0));m.scrollCellToVisible(m.getSelectionCell())}),mxUtils.bind(this,function(M){b.handleError(M)}),
-null,"mermaid2drawio"==l);else if("table"==l){var C=g.split("\n");l=null;var F=[],K=0,I={};for(n=0;n<C.length;n++){var R=mxUtils.trim(C[n]);if("primary key"==R.substring(0,11).toLowerCase()){var W=R.match(/\((.+)\)/);W&&W[1]&&(I[W[1]]=!0);C.splice(n,1)}else 0<R.toLowerCase().indexOf("primary key")&&(I[R.split(" ")[0]]=!0,C[n]=mxUtils.trim(R.replace(/primary key/i,"")))}for(n=0;n<C.length;n++)if(R=mxUtils.trim(C[n]),"create table"==R.substring(0,12).toLowerCase())R=mxUtils.trim(R.substring(12)),"("==
-R.charAt(R.length-1)&&(R=mxUtils.trim(R.substring(0,R.length-1))),l=new mxCell(R,new mxGeometry(K,0,160,30),"shape=table;startSize=30;container=1;collapsible=1;childLayout=tableLayout;fixedRows=1;rowLines=0;fontStyle=1;align=center;resizeLast=1;"),l.vertex=!0,F.push(l),R=b.editor.graph.getPreferredSizeForCell(q),null!=R&&(l.geometry.width=R.width+10);else if(null!=l&&")"==R.charAt(0))K+=l.geometry.width+40,l=null;else if("("!=R&&null!=l){R=R.substring(0,","==R.charAt(R.length-1)?R.length-1:R.length);
-W=I[R.split(" ")[0]];var q=new mxCell("",new mxGeometry(0,0,160,30),"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;strokeColor=inherit;top=0;left=0;right=0;bottom="+(W?"1":"0")+";");q.vertex=!0;var z=new mxCell(W?"PK":"",new mxGeometry(0,0,30,30),"shape=partialRectangle;overflow=hidden;connectable=0;fillColor=none;strokeColor=inherit;top=0;left=0;bottom=0;right=0;"+(W?"fontStyle=1;":
-""));z.vertex=!0;q.insert(z);R=new mxCell(R,new mxGeometry(30,0,130,30),"shape=partialRectangle;overflow=hidden;connectable=0;fillColor=none;align=left;strokeColor=inherit;top=0;left=0;bottom=0;right=0;spacingLeft=6;"+(W?"fontStyle=5;":""));R.vertex=!0;q.insert(R);R=b.editor.graph.getPreferredSizeForCell(R);null!=R&&l.geometry.width<R.width+30&&(l.geometry.width=Math.min(320,Math.max(l.geometry.width,R.width+30)));l.insert(q,W?0:null);l.geometry.height+=30}0<F.length&&(x=b.editor.graph,x.setSelectionCells(x.importCells(F,
-t.x,t.y)),x.scrollCellToVisible(x.getSelectionCell()))}else if("list"==l){if(C=g.split("\n"),0<C.length){x=b.editor.graph;q=null;F=[];for(n=l=0;n<C.length;n++)";"!=C[n].charAt(0)&&(0==C[n].length?q=null:null==q?(q=new mxCell(C[n],new mxGeometry(l,0,160,30),"swimlane;fontStyle=1;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"),q.vertex=!0,F.push(q),R=x.getPreferredSizeForCell(q),null!=R&&q.geometry.width<
-R.width+10&&(q.geometry.width=R.width+10),l+=q.geometry.width+40):"--"==C[n]?(R=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;"),R.vertex=!0,q.geometry.height+=R.geometry.height,q.insert(R)):0<C[n].length&&(K=new mxCell(C[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;"),
-K.vertex=!0,R=x.getPreferredSizeForCell(K),null!=R&&K.geometry.width<R.width&&(K.geometry.width=R.width),q.geometry.width=Math.max(q.geometry.width,K.geometry.width),q.geometry.height+=K.geometry.height,q.insert(K)));if(0<F.length){x.getModel().beginUpdate();try{F=x.importCells(F,t.x,t.y);R=[];for(n=0;n<F.length;n++)R.push(F[n]),R=R.concat(F[n].children);x.fireEvent(new mxEventObject("cellsInserted","cells",R))}finally{x.getModel().endUpdate()}x.setSelectionCells(F);x.scrollCellToVisible(x.getSelectionCell())}}}else{q=
-function(M){var m=L[M];null==m&&(m=new mxCell(M,new mxGeometry(0,0,80,30),"whiteSpace=wrap;html=1;"),m.vertex=!0,L[M]=m,F.push(m));return m};C=g.split("\n");var L={};F=[];for(n=0;n<C.length;n++)if(";"!=C[n].charAt(0)){var N=C[n].split("->");2<=N.length&&(W=q(N[0]),z=q(N[N.length-1]),N=new mxCell(2<N.length?N[1]:"",new mxGeometry),N.edge=!0,N.geometry.relative=!0,W.insertEdge(N,!0),z.insertEdge(N,!1),F.push(N))}if(0<F.length){C=document.createElement("div");C.style.visibility="hidden";document.body.appendChild(C);
-x=new Graph(C);x.getModel().beginUpdate();try{F=x.importCells(F);for(n=0;n<F.length;n++)x.getModel().isVertex(F[n])&&(R=x.getPreferredSizeForCell(F[n]),F[n].geometry.width=Math.max(F[n].geometry.width,R.width),F[n].geometry.height=Math.max(F[n].geometry.height,R.height));n=!0;"horizontalFlow"==l||"verticalFlow"==l?((new mxHierarchicalLayout(x,"horizontalFlow"==l?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH)).execute(x.getDefaultParent(),F),n=!1):"circle"==l?(new mxCircleLayout(x)).execute(x.getDefaultParent()):
-(K=new mxFastOrganicLayout(x),K.disableEdgeStyle=!1,K.forceConstant=180,K.execute(x.getDefaultParent()));n&&(I=new mxParallelEdgeLayout(x),I.spacing=30,I.execute(x.getDefaultParent()))}finally{x.getModel().endUpdate()}x.clearCellOverlays();R=[];b.editor.graph.getModel().beginUpdate();try{F=x.getModel().getChildren(x.getDefaultParent()),R=b.editor.graph.importCells(F,t.x,t.y),b.editor.graph.fireEvent(new mxEventObject("cellsInserted","cells",R))}finally{b.editor.graph.getModel().endUpdate()}b.editor.graph.setSelectionCells(R);
+null,"mermaid2drawio"==l);else if("table"==l){var C=g.split("\n");l=null;var E=[],K=0,I={};for(n=0;n<C.length;n++){var T=mxUtils.trim(C[n]);if("primary key"==T.substring(0,11).toLowerCase()){var W=T.match(/\((.+)\)/);W&&W[1]&&(I[W[1]]=!0);C.splice(n,1)}else 0<T.toLowerCase().indexOf("primary key")&&(I[T.split(" ")[0]]=!0,C[n]=mxUtils.trim(T.replace(/primary key/i,"")))}for(n=0;n<C.length;n++)if(T=mxUtils.trim(C[n]),"create table"==T.substring(0,12).toLowerCase())T=mxUtils.trim(T.substring(12)),"("==
+T.charAt(T.length-1)&&(T=mxUtils.trim(T.substring(0,T.length-1))),l=new mxCell(T,new mxGeometry(K,0,160,30),"shape=table;startSize=30;container=1;collapsible=1;childLayout=tableLayout;fixedRows=1;rowLines=0;fontStyle=1;align=center;resizeLast=1;"),l.vertex=!0,E.push(l),T=b.editor.graph.getPreferredSizeForCell(q),null!=T&&(l.geometry.width=T.width+10);else if(null!=l&&")"==T.charAt(0))K+=l.geometry.width+40,l=null;else if("("!=T&&null!=l){T=T.substring(0,","==T.charAt(T.length-1)?T.length-1:T.length);
+W=I[T.split(" ")[0]];var q=new mxCell("",new mxGeometry(0,0,160,30),"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;strokeColor=inherit;top=0;left=0;right=0;bottom="+(W?"1":"0")+";");q.vertex=!0;var z=new mxCell(W?"PK":"",new mxGeometry(0,0,30,30),"shape=partialRectangle;overflow=hidden;connectable=0;fillColor=none;strokeColor=inherit;top=0;left=0;bottom=0;right=0;"+(W?"fontStyle=1;":
+""));z.vertex=!0;q.insert(z);T=new mxCell(T,new mxGeometry(30,0,130,30),"shape=partialRectangle;overflow=hidden;connectable=0;fillColor=none;align=left;strokeColor=inherit;top=0;left=0;bottom=0;right=0;spacingLeft=6;"+(W?"fontStyle=5;":""));T.vertex=!0;q.insert(T);T=b.editor.graph.getPreferredSizeForCell(T);null!=T&&l.geometry.width<T.width+30&&(l.geometry.width=Math.min(320,Math.max(l.geometry.width,T.width+30)));l.insert(q,W?0:null);l.geometry.height+=30}0<E.length&&(x=b.editor.graph,x.setSelectionCells(x.importCells(E,
+t.x,t.y)),x.scrollCellToVisible(x.getSelectionCell()))}else if("list"==l){if(C=g.split("\n"),0<C.length){x=b.editor.graph;q=null;E=[];for(n=l=0;n<C.length;n++)";"!=C[n].charAt(0)&&(0==C[n].length?q=null:null==q?(q=new mxCell(C[n],new mxGeometry(l,0,160,30),"swimlane;fontStyle=1;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"),q.vertex=!0,E.push(q),T=x.getPreferredSizeForCell(q),null!=T&&q.geometry.width<
+T.width+10&&(q.geometry.width=T.width+10),l+=q.geometry.width+40):"--"==C[n]?(T=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;"),T.vertex=!0,q.geometry.height+=T.geometry.height,q.insert(T)):0<C[n].length&&(K=new mxCell(C[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;"),
+K.vertex=!0,T=x.getPreferredSizeForCell(K),null!=T&&K.geometry.width<T.width&&(K.geometry.width=T.width),q.geometry.width=Math.max(q.geometry.width,K.geometry.width),q.geometry.height+=K.geometry.height,q.insert(K)));if(0<E.length){x.getModel().beginUpdate();try{E=x.importCells(E,t.x,t.y);T=[];for(n=0;n<E.length;n++)T.push(E[n]),T=T.concat(E[n].children);x.fireEvent(new mxEventObject("cellsInserted","cells",T))}finally{x.getModel().endUpdate()}x.setSelectionCells(E);x.scrollCellToVisible(x.getSelectionCell())}}}else{q=
+function(M){var m=L[M];null==m&&(m=new mxCell(M,new mxGeometry(0,0,80,30),"whiteSpace=wrap;html=1;"),m.vertex=!0,L[M]=m,E.push(m));return m};C=g.split("\n");var L={};E=[];for(n=0;n<C.length;n++)if(";"!=C[n].charAt(0)){var N=C[n].split("->");2<=N.length&&(W=q(N[0]),z=q(N[N.length-1]),N=new mxCell(2<N.length?N[1]:"",new mxGeometry),N.edge=!0,N.geometry.relative=!0,W.insertEdge(N,!0),z.insertEdge(N,!1),E.push(N))}if(0<E.length){C=document.createElement("div");C.style.visibility="hidden";document.body.appendChild(C);
+x=new Graph(C);x.getModel().beginUpdate();try{E=x.importCells(E);for(n=0;n<E.length;n++)x.getModel().isVertex(E[n])&&(T=x.getPreferredSizeForCell(E[n]),E[n].geometry.width=Math.max(E[n].geometry.width,T.width),E[n].geometry.height=Math.max(E[n].geometry.height,T.height));n=!0;"horizontalFlow"==l||"verticalFlow"==l?((new mxHierarchicalLayout(x,"horizontalFlow"==l?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH)).execute(x.getDefaultParent(),E),n=!1):"circle"==l?(new mxCircleLayout(x)).execute(x.getDefaultParent()):
+(K=new mxFastOrganicLayout(x),K.disableEdgeStyle=!1,K.forceConstant=180,K.execute(x.getDefaultParent()));n&&(I=new mxParallelEdgeLayout(x),I.spacing=30,I.execute(x.getDefaultParent()))}finally{x.getModel().endUpdate()}x.clearCellOverlays();T=[];b.editor.graph.getModel().beginUpdate();try{E=x.getModel().getChildren(x.getDefaultParent()),T=b.editor.graph.importCells(E,t.x,t.y),b.editor.graph.fireEvent(new mxEventObject("cellsInserted","cells",T))}finally{b.editor.graph.getModel().endUpdate()}b.editor.graph.setSelectionCells(T);
b.editor.graph.scrollCellToVisible(b.editor.graph.getSelectionCell());x.destroy();C.parentNode.removeChild(C)}}}function p(){return"list"==A.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"==A.value||"mermaid2drawio"==A.value?"graph TD;\n A--\x3eB;\n A--\x3eC;\n B--\x3eD;\n C--\x3eD;":"table"==A.value?"CREATE TABLE Suppliers\n(\nsupplier_id int NOT NULL PRIMARY KEY,\nsupplier_name char(50) NOT NULL,\ncontact_name char(50),\n);\nCREATE TABLE Customers\n(\ncustomer_id int NOT NULL PRIMARY KEY,\ncustomer_name char(50) NOT NULL,\naddress char(50),\ncity char(50),\nstate char(25),\nzip_code char(10)\n);\n":
"plantUmlPng"==A.value?"@startuml\nskinparam backgroundcolor transparent\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml":"plantUmlSvg"==A.value||"plantUmlTxt"==A.value?"@startuml\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml":
";Example:\na->b\nb->edge label->c\nc->a\n"}var t=b.editor.graph.getFreeInsertPoint();f=document.createElement("div");var v=document.createElement("textarea");v.style.position="absolute";v.style.left="30px";v.style.right="30px";v.style.top="30px";v.style.bottom="100px";v.style.resize="none";v.setAttribute("wrap","off");v.setAttribute("spellcheck","false");v.setAttribute("autocorrect","off");v.setAttribute("autocomplete","off");v.setAttribute("autocapitalize","off");var A=document.createElement("select");
@@ -12492,41 +12498,41 @@ J=document.createElement("option");J.setAttribute("value","plantUmlSvg");mxUtils
")");EditorUi.enablePlantUml&&Graph.fileSupport&&!b.isOffline()&&"plantUml"==k&&(A.appendChild(J),A.appendChild(H),A.appendChild(G));var c=p();v.value=c;f.appendChild(v);J=document.createElement("div");J.style.position="absolute";J.style.bottom="46px";J.style.right="30px";J.style.left="30px";J.style.justifyContent="end";J.style.display="flex";this.init=function(){v.focus()};Graph.fileSupport&&(v.addEventListener("dragover",function(g){g.stopPropagation();g.preventDefault()},!1),v.addEventListener("drop",
function(g){g.stopPropagation();g.preventDefault();if(0<g.dataTransfer.files.length){g=g.dataTransfer.files[0];var l=new FileReader;l.onload=function(n){v.value=n.target.result};l.readAsText(g)}},!1));"plantUml"==k&&"https://plant-aws.diagrams.net"==window.PLANT_URL&&(H=document.createElement("div"),H.style.display="inline-block",H.style.color="#c00",H.style.fontSize="12px",H.style.marginRight="10px",H.style.display="flex",H.style.alignItems="center",H.innerHTML='<a href="https://github.com/jgraph/plantuml-converter/tree/main/plantuml-to-drawio" target="_blank" rel="noopener noreferrer">PlantUML project changes in 2026</a>',
J.appendChild(H));b.isOffline()&&!mxClient.IS_CHROMEAPP||"mermaid"!=k&&"plantUml"!=k||J.appendChild(b.createHelpIcon("mermaid"==k?"https://mermaid.js.org/intro/":"https://plantuml.com/"));J.appendChild(A);mxEvent.addListener(A,"change",function(){var g=p();if(0==v.value.length||v.value==c)c=g,v.value=c});k=mxUtils.button(mxResources.get("close"),function(){v.value==c?b.hideDialog():b.confirm(mxResources.get("areYouSure"),function(){b.hideDialog()})});k.className="geBtn";b.editor.cancelFirst&&J.appendChild(k);
-H=mxUtils.button(mxResources.get("insert"),function(g){try{b.hideDialog(),d(v.value,A.value,g)}catch(l){b.handleError(l)}});H.className="geBtn gePrimaryBtn";J.appendChild(H);b.editor.cancelFirst||J.appendChild(k);f.appendChild(J);this.container=f},NewDialog=function(b,f,k,d,p,t,v,A,J,H,G,D,c,g,l,n,u,x,B,C){function F(Ea){null!=Ea&&(Ka=Na=Ea?135:140);Ea=!0;if(null!=hb)for(;S<hb.length&&(Ea||0!=mxUtils.mod(S,30));){var Ia=hb[S++];Ia=L(Ia.url,Ia.libs,Ia.title,Ia.tooltip?Ia.tooltip:Ia.title,Ia.select,
+H=mxUtils.button(mxResources.get("insert"),function(g){try{b.hideDialog(),d(v.value,A.value,g)}catch(l){b.handleError(l)}});H.className="geBtn gePrimaryBtn";J.appendChild(H);b.editor.cancelFirst||J.appendChild(k);f.appendChild(J);this.container=f},NewDialog=function(b,f,k,d,p,t,v,A,J,H,G,D,c,g,l,n,u,x,B,C){function E(Ea){null!=Ea&&(Ka=Na=Ea?135:140);Ea=!0;if(null!=hb)for(;R<hb.length&&(Ea||0!=mxUtils.mod(R,30));){var Ia=hb[R++];Ia=L(Ia.url,Ia.libs,Ia.title,Ia.tooltip?Ia.tooltip:Ia.title,Ia.select,
Ia.imgUrl,Ia.info,Ia.onClick,Ia.preview,Ia.noImg,Ia.clibs,Ia.type);Ea&&Ia.click();Ea=!1}}function K(Ea,Ia,Fa,Ja,Ga,Ha){if(null!=Ea&&mxUtils.isAncestorNode(document.body,Ja)){Ea=mxUtils.parseXml(Ea);Ea=Editor.parseDiagramNode(Ea.documentElement,null,!0);var Oa=new mxCodec(Ea.ownerDocument),Qa=new mxGraphModel;Oa.decode(Ea,Qa);b.sidebar.createTooltip(Ja,Qa.root.children,Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-120,1E3),Math.min((window.innerHeight||
-document.documentElement.clientHeight||document.body.clientHeight)-120,800),null!=Ga?mxResources.get(Ga):null,!0,new mxPoint(Ia,Fa),!0,function(){da=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display;null!=Ha&&R(Ja,null,null,Ha,infoObj,clibs)},!0,!1)}}function I(){if(wa==La&&null==Ca&&null!=fb&&null!=cb)d&&b.spinner.spin(document.body,mxResources.get("generate")+" '"+cb.value+"'")&&(m=!0,b.hideDialog()),fb.click();else if(m&&b.spinner.stop(),ha&&null!=g)k||m||b.hideDialog(),g(ha,Da,
-T.value);else if(d)k||m||b.hideDialog(),d(Ca,T.value,ta,xa);else{var Ea=T.value;if(null!=Ea&&0<Ea.length){var Ia=function(Ja,Ga,Ha){b.createFile(Ha,Ca,null!=xa&&0<xa.length?xa:null,Ja,function(){m||b.hideDialog()},null,Ga,null,null!=ma&&0<ma.length?ma:null)};if(b.mode==App.MODE_GOOGLE||b.mode==App.MODE_ONEDRIVE){var Fa=new SaveDialog(b,Ea,mxUtils.bind(this,function(Ja,Ga,Ha){Ia(Ga,Ha,Ja.value)}),null,null,null,null,b.mode);b.showDialog(Fa.container,420,150,!0,!1);Fa.init()}else b.pickFolder(b.mode,
-function(Ja){Ia(b.mode,Ja,Ea)},b.mode!=App.MODE_GOOGLE||null==b.stateArg||null==b.stateArg.folderId)}}}function R(Ea,Ia,Fa,Ja,Ga,Ha,Oa){return wa!=Ea?(null!=wa&&(wa.classList.remove("geTemplateSelected"),wa==La&&(Ra.style.display="none",Ua.style.display="",Sa.style.visibility="hidden",bb.style.visibility=null!=oa?"visible":"hidden")),Ea==La&&(Ia=oa,null!=Ia?(bb.style.visibility="visible",bb.style.visibility=null!=oa?"visible":"hidden",Sa.style.visibility="visible"):(Ra.style.display="",Sa.style.visibility=
+document.documentElement.clientHeight||document.body.clientHeight)-120,800),null!=Ga?mxResources.get(Ga):null,!0,new mxPoint(Ia,Fa),!0,function(){da=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display;null!=Ha&&T(Ja,null,null,Ha,infoObj,clibs)},!0,!1)}}function I(){if(wa==La&&null==Ca&&null!=fb&&null!=cb)d&&b.spinner.spin(document.body,mxResources.get("generate")+" '"+cb.value+"'")&&(m=!0,b.hideDialog()),fb.click();else if(m&&b.spinner.stop(),ha&&null!=g)k||m||b.hideDialog(),g(ha,Da,
+S.value);else if(d)k||m||b.hideDialog(),d(Ca,S.value,ta,xa);else{var Ea=S.value;if(null!=Ea&&0<Ea.length){var Ia=function(Ja,Ga,Ha){b.createFile(Ha,Ca,null!=xa&&0<xa.length?xa:null,Ja,function(){m||b.hideDialog()},null,Ga,null,null!=ma&&0<ma.length?ma:null)};if(b.mode==App.MODE_GOOGLE||b.mode==App.MODE_ONEDRIVE){var Fa=new SaveDialog(b,Ea,mxUtils.bind(this,function(Ja,Ga,Ha){Ia(Ga,Ha,Ja.value)}),null,null,null,null,b.mode);b.showDialog(Fa.container,420,150,!0,!1);Fa.init()}else b.pickFolder(b.mode,
+function(Ja){Ia(b.mode,Ja,Ea)},b.mode!=App.MODE_GOOGLE||null==b.stateArg||null==b.stateArg.folderId)}}}function T(Ea,Ia,Fa,Ja,Ga,Ha,Oa){return wa!=Ea?(null!=wa&&(wa.classList.remove("geTemplateSelected"),wa==La&&(Ra.style.display="none",Ua.style.display="",Sa.style.visibility="hidden",bb.style.visibility=null!=oa?"visible":"hidden")),Ea==La&&(Ia=oa,null!=Ia?(bb.style.visibility="visible",bb.style.visibility=null!=oa?"visible":"hidden",Sa.style.visibility="visible"):(Ra.style.display="",Sa.style.visibility=
"hidden",bb.style.visibility="hidden")),Y.removeAttribute("disabled"),Ca=Ia,xa=Fa,ma=Ha,wa=Ea,ha=Ja,ta=Oa,Da=Ga,wa.classList.add("geTemplateSelected"),!0):!1}function W(){Ra.style.display="";Ua.style.display="none";Sa.style.visibility="hidden";bb.style.visibility="hidden";cb.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?cb.select():document.execCommand("selectAll",!1,null)}function q(){Ua.style.backgroundImage=Za;Ua.style.backgroundSize="contain";Ra.style.display="none";Ua.style.display=
"";Sa.style.visibility="visible";bb.style.visibility="visible"}function z(Ea){if(!Pa){Pa=!0;var Ia=mxUtils.trim(cb.value);Ea||""==Ia?null!=ca&&(cb.value=ca,q()):(Ua.style.backgroundImage="url("+Editor.spinImage+")",Ua.style.backgroundSize="12px 12px",Ua.style.display="",Ra.style.display="none",b.generateOpenAiMermaidDiagram(Ia,function(Fa){Pa=!1;wa==La&&"none"==Ra.style.display&&(Za="url("+Editor.createSvgDataUri(mxUtils.getXml(b.getSvgForXml(Fa)))+")",La.setAttribute("title",Ia),bb.style.display=
"",oa=Ca=Fa,ca=Ia,q(),m&&I())},mxUtils.bind(this,function(Fa){Pa=!1;wa==La&&(Ra.style.display="",Ua.style.display="none",Sa.style.visibility="hidden",bb.style.visibility="hidden",b.handleError(Fa))}),!0))}}function L(Ea,Ia,Fa,Ja,Ga,Ha,Oa,Qa,Ya,jb,db,nb){function Wa($a,pb){null==tb?(ob=$a,ob=/^https?:\/\//.test(ob)?b.editor.isCorsEnabledForUrl(ob)?ob:PROXY_URL+"?url="+encodeURIComponent(ob):TEMPLATE_PATH+"/"+ob,mxUtils.get(ob,mxUtils.bind(this,function(qb){200<=qb.getStatus()&&299>=qb.getStatus()&&
(tb=qb.getText());pb(tb,ob)}))):pb(tb,ob)}function ib($a,pb){if(null==Ea||Z||b.sidebar.currentElt==Ma)b.sidebar.hideTooltip();else if(b.sidebar.hideTooltip(),null!=aa){var qb="<mxfile><diagram>"+Graph.compress('<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="2" value="" style="shape=image;image='+aa.src+';imageAspect=1;" parent="1" vertex="1"><mxGeometry width="'+aa.naturalWidth+'" height="'+aa.naturalHeight+'" as="geometry" /></mxCell></root></mxGraphModel>')+"</diagram></mxfile>";
K(qb,mxEvent.getClientX($a),mxEvent.getClientY($a),Fa,Ea)}else b.sidebar.currentElt=Ma,Z=!0,Wa(Ea,function(Cb){if(Z&&b.sidebar.currentElt==Ma)try{K(Cb,mxEvent.getClientX($a),mxEvent.getClientY($a),Ma,pb)}catch(Db){b.sidebar.currentElt=null,b.handleError(Db)}Z=!1})}var Ma=null;if("generative"!=nb||null==La){Ma=document.createElement("div");Ma.className="geTemplate";var tb=null,ob=Ea;null!=Fa?Ma.setAttribute("title",mxResources.get(Fa,null,Fa)):null!=Ja&&0<Ja.length&&Ma.setAttribute("title",Ja)}else Ma=
La;var ub=document.createElement("span");ub.className="geAdaptiveAsset";mxUtils.write(ub,mxResources.get(Fa,null,Fa));if(null!=Ha){Ma.style.display="inline-flex";Ma.style.justifyContent="center";Ma.style.alignItems="center";Ya=document.createElement("img");Ya.setAttribute("src",Ha);Ya.setAttribute("alt",Ja);Ya.style.maxWidth=Ka+"px";Ya.style.maxHeight=Na+"px";aa=Ya;var xb=Ha.replace(".drawio.xml","").replace(".drawio","").replace(".xml","");Ma.appendChild(Ya);Ya.onerror=function(){this.src!=xb?this.src=
-xb:(this.src=Editor.errorImage,this.onerror=null)};mxEvent.addGestureListeners(Ma,mxUtils.bind(this,function($a){R(Ma,null,null,Ea,Oa,db)}),null,null);mxEvent.addListener(Ma,"dblclick",function($a){I();mxEvent.consume($a)})}else if(!jb&&null!=Ea&&0<Ea.length){var yb=function($a){U.spin(ea)&&Wa(Ea,function(pb,qb){U.stop();null!=pb&&(R(Ma,pb,Ia,null,null,db,qb),$a&&I())})};Ha=Ya||TEMPLATE_PATH+"/"+Ea.substring(0,Ea.length-4)+".png";Ya=Ua.cloneNode(!1);Ya.style.backgroundImage="url("+Ha+")";Ya.style.display=
-"";Ma.appendChild(Ya);null!=Fa&&Ma.appendChild(ub);mxEvent.addGestureListeners(Ma,mxUtils.bind(this,function($a){yb()}),null,null);mxEvent.addListener(Ma,"dblclick",function($a){yb(!0);mxEvent.consume($a)})}else Ma.appendChild(ub),"generative"==nb&&null==La&&(Ma.appendChild(Ua),Ma.appendChild(Ra),Ma.appendChild(bb),Ma.appendChild(Sa),La=Ma),Ga&&R(Ma),null!=Qa?(mxEvent.addGestureListeners(Ma,null,null,mxUtils.bind(this,function($a){R(Ma,null,null,Ea,Oa)})),mxEvent.addListener(Ma,"click",Qa)):(mxEvent.addListener(Ma,
-"click",function($a){R(Ma,null,null,Ea,Oa)&&"generative"==nb&&null==oa&&W()}),mxEvent.addListener(Ma,"dblclick",function($a){"generative"!=nb?I():"none"==Ra.style.display&&W();mxEvent.consume($a)}));null!=Ea&&(Ha=X.cloneNode(!0),Ma.appendChild(Ha),mxEvent.addGestureListeners(Ha,mxUtils.bind(this,function($a){da=b.sidebar.currentElt==Ma}),null,null),mxEvent.addListener(Ha,"click",mxUtils.bind(this,function($a){da||ib($a,null!=Fa?Fa:Ja);mxEvent.consume($a)})));ea.appendChild(Ma);return Ma}function N(){function Ea(Wa,
-ib){Wa=mxResources.get(Wa,null,Wa.substring(0,1).toUpperCase()+Wa.substring(1));18<Wa.length&&(Wa=Wa.substring(0,18)+"&hellip;");return Wa+(null!=ib?" ("+ib.length+")":"")}function Ia(Wa,ib,Ma){mxEvent.addListener(ib,"click",function(){Va!=ib&&(null!=Va&&(Va.style.backgroundColor=""),Va=ib,Va.style.backgroundColor=v,ea.scrollTop=0,ea.innerText="",S=0,null!=Ta[Wa].content?(ea.appendChild(Ta[Wa].content),Ca=oa,hb=null,null!=Ta[Wa].content.init&&Ta[Wa].content.init()):(hb=Ma?lb[Wa][Ma]:Ta[Wa],ba=null,
-F(!1)))})}mb&&(mb=!1,mxEvent.addListener(ea,"scroll",function(Wa){ea.scrollTop+ea.clientHeight>=ea.scrollHeight&&(F(),mxEvent.consume(Wa))}));if(0<ab){var Fa=document.createElement("div");Fa.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;";mxUtils.write(Fa,mxResources.get("custom"));Aa.appendChild(Fa);for(var Ja in Xa){var Ga=document.createElement("div");Fa=Ja;var Ha=Xa[Ja];18<Fa.length&&(Fa=Fa.substring(0,18)+"&hellip;");Ga.style.cssText="display:block;cursor:pointer;padding:6px;white-space:nowrap;margin-bottom:-1px;overflow:hidden;text-overflow:ellipsis;user-select:none;";
-Ga.setAttribute("title",Fa+" ("+Ha.length+")");mxUtils.write(Ga,Ga.getAttribute("title"));null!=H&&(Ga.style.padding=H);Aa.appendChild(Ga);(function(Wa,ib){mxEvent.addListener(Ga,"click",function(){Va!=ib&&(Va.style.backgroundColor="",Va=ib,Va.style.backgroundColor=v,ea.scrollTop=0,ea.innerText="",S=0,hb=Xa[Wa],ba=null,F(!1))})})(Ja,Ga)}Fa=document.createElement("div");Fa.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;";mxUtils.write(Fa,"draw.io");Aa.appendChild(Fa)}for(Ja in Ta){Fa=
+xb:(this.src=Editor.errorImage,this.onerror=null)};mxEvent.addGestureListeners(Ma,mxUtils.bind(this,function($a){T(Ma,null,null,Ea,Oa,db)}),null,null);mxEvent.addListener(Ma,"dblclick",function($a){I();mxEvent.consume($a)})}else if(!jb&&null!=Ea&&0<Ea.length){var yb=function($a){U.spin(ea)&&Wa(Ea,function(pb,qb){U.stop();null!=pb&&(T(Ma,pb,Ia,null,null,db,qb),$a&&I())})};Ha=Ya||TEMPLATE_PATH+"/"+Ea.substring(0,Ea.length-4)+".png";Ya=Ua.cloneNode(!1);Ya.style.backgroundImage="url("+Ha+")";Ya.style.display=
+"";Ma.appendChild(Ya);null!=Fa&&Ma.appendChild(ub);mxEvent.addGestureListeners(Ma,mxUtils.bind(this,function($a){yb()}),null,null);mxEvent.addListener(Ma,"dblclick",function($a){yb(!0);mxEvent.consume($a)})}else Ma.appendChild(ub),"generative"==nb&&null==La&&(Ma.appendChild(Ua),Ma.appendChild(Ra),Ma.appendChild(bb),Ma.appendChild(Sa),La=Ma),Ga&&T(Ma),null!=Qa?(mxEvent.addGestureListeners(Ma,null,null,mxUtils.bind(this,function($a){T(Ma,null,null,Ea,Oa)})),mxEvent.addListener(Ma,"click",Qa)):(mxEvent.addListener(Ma,
+"click",function($a){T(Ma,null,null,Ea,Oa)&&"generative"==nb&&null==oa&&W()}),mxEvent.addListener(Ma,"dblclick",function($a){"generative"!=nb?I():"none"==Ra.style.display&&W();mxEvent.consume($a)}));null!=Ea&&(Ha=X.cloneNode(!0),Ma.appendChild(Ha),mxEvent.addGestureListeners(Ha,mxUtils.bind(this,function($a){da=b.sidebar.currentElt==Ma}),null,null),mxEvent.addListener(Ha,"click",mxUtils.bind(this,function($a){da||ib($a,null!=Fa?Fa:Ja);mxEvent.consume($a)})));ea.appendChild(Ma);return Ma}function N(){function Ea(Wa,
+ib){Wa=mxResources.get(Wa,null,Wa.substring(0,1).toUpperCase()+Wa.substring(1));18<Wa.length&&(Wa=Wa.substring(0,18)+"&hellip;");return Wa+(null!=ib?" ("+ib.length+")":"")}function Ia(Wa,ib,Ma){mxEvent.addListener(ib,"click",function(){Va!=ib&&(null!=Va&&(Va.style.backgroundColor=""),Va=ib,Va.style.backgroundColor=v,ea.scrollTop=0,ea.innerText="",R=0,null!=Ta[Wa].content?(ea.appendChild(Ta[Wa].content),Ca=oa,hb=null,null!=Ta[Wa].content.init&&Ta[Wa].content.init()):(hb=Ma?lb[Wa][Ma]:Ta[Wa],ba=null,
+E(!1)))})}mb&&(mb=!1,mxEvent.addListener(ea,"scroll",function(Wa){ea.scrollTop+ea.clientHeight>=ea.scrollHeight&&(E(),mxEvent.consume(Wa))}));if(0<ab){var Fa=document.createElement("div");Fa.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;";mxUtils.write(Fa,mxResources.get("custom"));Aa.appendChild(Fa);for(var Ja in Xa){var Ga=document.createElement("div");Fa=Ja;var Ha=Xa[Ja];18<Fa.length&&(Fa=Fa.substring(0,18)+"&hellip;");Ga.style.cssText="display:block;cursor:pointer;padding:6px;white-space:nowrap;margin-bottom:-1px;overflow:hidden;text-overflow:ellipsis;user-select:none;";
+Ga.setAttribute("title",Fa+" ("+Ha.length+")");mxUtils.write(Ga,Ga.getAttribute("title"));null!=H&&(Ga.style.padding=H);Aa.appendChild(Ga);(function(Wa,ib){mxEvent.addListener(Ga,"click",function(){Va!=ib&&(Va.style.backgroundColor="",Va=ib,Va.style.backgroundColor=v,ea.scrollTop=0,ea.innerText="",R=0,hb=Xa[Wa],ba=null,E(!1))})})(Ja,Ga)}Fa=document.createElement("div");Fa.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;";mxUtils.write(Fa,"draw.io");Aa.appendChild(Fa)}for(Ja in Ta){Fa=
Ha=null;if(null!=Ta[Ja].content)Ga=document.createElement(Oa?"ul":"div"),Fa=Ea(Ja),Ga.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;",Ga.setAttribute("title",Fa),mxUtils.write(Ga,Fa),Aa.appendChild(Ga),Fa=Ga;else{var Oa=lb[Ja];Fa=Ga=document.createElement(Oa?"ul":"div");Ha=Ta[Ja];var Qa=Ea(Ja,Ha);if(null!=Oa){Ha=document.createElement("li");var Ya=document.createElement("div");
Ya.className="geTempTreeCaret";Ya.setAttribute("title",Qa);mxUtils.write(Ya,Qa);Fa=Ya;Ha.appendChild(Ya);Qa=document.createElement("ul");Qa.className="geTempTreeNested";Qa.style.visibility="hidden";for(var jb in Oa){var db=document.createElement("li"),nb=Ea(jb,Oa[jb]);db.setAttribute("title",nb);mxUtils.write(db,nb);Ia(Ja,db,jb);Qa.appendChild(db)}Ha.appendChild(Qa);Ga.className="geTempTree";Ga.appendChild(Ha);(function(Wa,ib){mxEvent.addListener(ib,"click",function(){Wa.style.visibility="visible";
-Wa.classList.toggle("geTempTreeActive");Wa.classList.toggle("geTempTreeNested")&&setTimeout(function(){Wa.style.visibility="hidden"},550);ib.classList.toggle("geTempTreeCaret-down")})})(Qa,Ya)}else Ga.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;",Ga.setAttribute("title",Qa),mxUtils.write(Ga,Qa);null!=H&&(Ga.style.padding=H);Aa.appendChild(Ga)}Ia(Ja,Fa);null==Va&&Fa.click()}F(!1)}
-var M=500>(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth);k=null!=k?k:!0;p=null!=p?p:!1;v=null!=v?v:"light-dark(#ebf2f9, "+Editor.darkColor+")";G=null!=G?G:EditorUi.templateFile;var m=!1,y=document.createElement("div");y.style.userSelect="none";y.style.height="100%";var E=document.createElement("div");E.style.whiteSpace="nowrap";E.style.height="46px";k&&y.appendChild(E);var P=document.createElement("img");P.setAttribute("border","0");P.setAttribute("align","absmiddle");
+Wa.classList.toggle("geTempTreeActive");Wa.classList.toggle("geTempTreeNested")&&setTimeout(function(){Wa.style.visibility="hidden"},550);ib.classList.toggle("geTempTreeCaret-down")})})(Qa,Ya)}else Ga.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;",Ga.setAttribute("title",Qa),mxUtils.write(Ga,Qa);null!=H&&(Ga.style.padding=H);Aa.appendChild(Ga)}Ia(Ja,Fa);null==Va&&Fa.click()}E(!1)}
+var M=500>(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth);k=null!=k?k:!0;p=null!=p?p:!1;v=null!=v?v:"light-dark(#ebf2f9, "+Editor.darkColor+")";G=null!=G?G:EditorUi.templateFile;var m=!1,y=document.createElement("div");y.style.userSelect="none";y.style.height="100%";var F=document.createElement("div");F.style.whiteSpace="nowrap";F.style.height="46px";k&&y.appendChild(F);var P=document.createElement("img");P.setAttribute("border","0");P.setAttribute("align","absmiddle");
P.style.width="40px";P.style.height="40px";P.style.marginRight="10px";P.style.paddingBottom="4px";P.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_M365?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_TRELLO?IMAGE_PATH+"/trello-logo.svg":b.mode==
-App.MODE_BROWSER?IMAGE_PATH+"/osa_database.png":IMAGE_PATH+"/osa_drive-harddisk.png";f||M||!k||E.appendChild(P);k&&mxUtils.write(E,(M?mxResources.get("name"):null==b.mode||b.mode==App.MODE_GOOGLE||b.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"))+":");var O=".drawio";b.mode==App.MODE_GOOGLE&&null!=b.drive?O=b.drive.extension:b.mode==App.MODE_DROPBOX&&null!=b.dropbox?O=b.dropbox.extension:b.mode==App.MODE_ONEDRIVE&&null!=b.oneDrive?O=b.oneDrive.extension:b.mode==
-App.MODE_GITHUB&&null!=b.gitHub?O=b.gitHub.extension:b.mode==App.MODE_GITLAB&&null!=b.gitLab?O=b.gitLab.extension:b.mode==App.MODE_TRELLO&&null!=b.trello&&(O=b.trello.extension);var T=document.createElement("input");T.setAttribute("value",b.defaultFilename+O);T.style.marginLeft="10px";T.style.width=f||M?"144px":"244px";this.init=function(){k&&Editor.selectFilename(T);null!=ea.parentNode&&null!=ea.parentNode.parentNode&&mxEvent.addGestureListeners(ea.parentNode.parentNode,mxUtils.bind(this,function(Ea){null!=
-b.sidebar&&b.sidebar.hideTooltip()}),null,null)};if(k)if(E.appendChild(T),x)T.style.width=f||M?"350px":"450px";else if(null!=b.editor.diagramFileTypes){var V=FilenameDialog.createFileTypes(b,T,b.editor.diagramFileTypes);V.style.marginLeft="6px";V.style.width=f||M?"80px":"180px";E.appendChild(V)}var Q=!1,S=0,U=new Spinner({lines:12,length:10,width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9}),Y=mxUtils.button(n||mxResources.get("create"),
+App.MODE_BROWSER?IMAGE_PATH+"/osa_database.png":IMAGE_PATH+"/osa_drive-harddisk.png";f||M||!k||F.appendChild(P);k&&mxUtils.write(F,(M?mxResources.get("name"):null==b.mode||b.mode==App.MODE_GOOGLE||b.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"))+":");var O=".drawio";b.mode==App.MODE_GOOGLE&&null!=b.drive?O=b.drive.extension:b.mode==App.MODE_DROPBOX&&null!=b.dropbox?O=b.dropbox.extension:b.mode==App.MODE_ONEDRIVE&&null!=b.oneDrive?O=b.oneDrive.extension:b.mode==
+App.MODE_GITHUB&&null!=b.gitHub?O=b.gitHub.extension:b.mode==App.MODE_GITLAB&&null!=b.gitLab?O=b.gitLab.extension:b.mode==App.MODE_TRELLO&&null!=b.trello&&(O=b.trello.extension);var S=document.createElement("input");S.setAttribute("value",b.defaultFilename+O);S.style.marginLeft="10px";S.style.width=f||M?"144px":"244px";this.init=function(){k&&Editor.selectFilename(S);null!=ea.parentNode&&null!=ea.parentNode.parentNode&&mxEvent.addGestureListeners(ea.parentNode.parentNode,mxUtils.bind(this,function(Ea){null!=
+b.sidebar&&b.sidebar.hideTooltip()}),null,null)};if(k)if(F.appendChild(S),x)S.style.width=f||M?"350px":"450px";else if(null!=b.editor.diagramFileTypes){var V=FilenameDialog.createFileTypes(b,S,b.editor.diagramFileTypes);V.style.marginLeft="6px";V.style.width=f||M?"80px":"180px";F.appendChild(V)}var Q=!1,R=0,U=new Spinner({lines:12,length:10,width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9}),Y=mxUtils.button(n||mxResources.get("create"),
function(){Y.setAttribute("disabled","disabled");I();Y.removeAttribute("disabled")});Y.className="geBtn gePrimaryBtn";var X=document.createElement("img");X.setAttribute("src",Editor.magnifyImage);X.setAttribute("title",mxResources.get("preview"));X.className="geButton geRoundButton";var Z=!1,aa=null,da=!1;if(D||c){var fa=[],ba=null,ia=null,la=null,ka=function(Ea){Y.setAttribute("disabled","disabled");for(var Ia=0;Ia<fa.length;Ia++)fa[Ia].className=Ia==Ea?"geBtn gePrimaryBtn":"geBtn"};Q=!0;var pa=
-document.createElement("div");pa.style.whiteSpace="nowrap";pa.style.height="30px";y.appendChild(pa);var Ba=mxUtils.button(mxResources.get("Templates",null,"Templates"),function(){Aa.style.display="";na.style.display="";ea.style.left="160px";ka(0);ea.scrollTop=0;ea.innerText="";S=0;ba!=hb&&(hb=ba,Ta=ia,ab=la,Aa.innerText="",N(),ba=null)});fa.push(Ba);pa.appendChild(Ba);var sa=function(Ea){Aa.style.display="none";na.style.display="none";ea.style.left="30px";ka(Ea?-1:1);null==ba&&(ba=hb);ea.scrollTop=
-0;ea.innerText="";U.spin(ea);var Ia=function(Fa,Ja,Ga){S=0;U.stop();hb=Fa;Ga=Ga||{};var Ha=0,Oa;for(Oa in Ga)Ha+=Ga[Oa].length;if(Ja)ea.innerText=Ja;else if(0==Fa.length&&0==Ha)ea.innerText=mxResources.get("noDiagrams",null,"No Diagrams Found");else if(ea.innerText="",0<Ha){Aa.style.display="";ea.style.left="160px";Aa.innerText="";ab=0;Ta={"draw.io":Fa};for(Oa in Ga)Ta[Oa]=Ga[Oa];N()}else F(!0)};Ea?c(ua.value,Ia):D(Ia)};if(D){var ja=mxUtils.button(mxResources.get("Recent",null,"Recent"),function(){sa()});
+document.createElement("div");pa.style.whiteSpace="nowrap";pa.style.height="30px";y.appendChild(pa);var Ba=mxUtils.button(mxResources.get("Templates",null,"Templates"),function(){Aa.style.display="";na.style.display="";ea.style.left="160px";ka(0);ea.scrollTop=0;ea.innerText="";R=0;ba!=hb&&(hb=ba,Ta=ia,ab=la,Aa.innerText="",N(),ba=null)});fa.push(Ba);pa.appendChild(Ba);var sa=function(Ea){Aa.style.display="none";na.style.display="none";ea.style.left="30px";ka(Ea?-1:1);null==ba&&(ba=hb);ea.scrollTop=
+0;ea.innerText="";U.spin(ea);var Ia=function(Fa,Ja,Ga){R=0;U.stop();hb=Fa;Ga=Ga||{};var Ha=0,Oa;for(Oa in Ga)Ha+=Ga[Oa].length;if(Ja)ea.innerText=Ja;else if(0==Fa.length&&0==Ha)ea.innerText=mxResources.get("noDiagrams",null,"No Diagrams Found");else if(ea.innerText="",0<Ha){Aa.style.display="";ea.style.left="160px";Aa.innerText="";ab=0;Ta={"draw.io":Fa};for(Oa in Ga)Ta[Oa]=Ga[Oa];N()}else E(!0)};Ea?c(ua.value,Ia):D(Ia)};if(D){var ja=mxUtils.button(mxResources.get("Recent",null,"Recent"),function(){sa()});
pa.appendChild(ja);fa.push(ja)}if(c){var ya=document.createElement("span");ya.style.marginLeft="10px";ya.innerText=mxResources.get("search")+":";pa.appendChild(ya);var ua=document.createElement("input");ua.style.marginRight="10px";ua.style.marginLeft="10px";ua.style.width="220px";mxEvent.addListener(ua,"keypress",function(Ea){13==Ea.keyCode&&sa(!0)});pa.appendChild(ua);var za=mxUtils.button(mxResources.get("search"),function(){sa(!0)});za.className="geBtn";pa.appendChild(za)}ka(0)}var xa=null,ma=
null,Ca=null,wa=null,ha=null,ta=null,Da=null,oa=null,ca=null,ea=document.createElement("div");ea.style.border="1px solid #d3d3d3";ea.style.position="absolute";ea.style.left="160px";ea.style.right="34px";var qa=(k?72:40)+(Q?30:0);ea.style.top=qa+"px";ea.style.bottom="68px";ea.style.margin="6px 0 0 -1px";ea.style.padding="6px";ea.style.overflow="auto";var na=document.createElement("div");na.style.cssText="position:absolute;left:30px;width:128px;top:"+qa+"px;height:22px;margin-top: 6px;white-space: nowrap;";
var va=document.createElement("input");va.style.cssText="width:105px;height:16px;border:1px solid #d3d3d3;padding: 3px 20px 3px 3px;font-size: 12px;border-radius:0px;";va.setAttribute("placeholder",mxResources.get("search"));va.setAttribute("type","text");na.appendChild(va);var ra=document.createElement("img");ra.setAttribute("src",Editor.magnifyImage);ra.setAttribute("title",mxResources.get("search"));ra.className="geAdaptiveAsset";ra.style.position="relative";ra.style.cursor="pointer";ra.style.outline=
"none";ra.style.opacity="0.5";ra.style.height="16px";ra.style.left="-20px";ra.style.top="4px";na.appendChild(ra);mxEvent.addListener(ra,"click",function(){ra.getAttribute("src")!=Editor.magnifyImage&&(ra.setAttribute("src",Editor.magnifyImage),ra.setAttribute("title",mxResources.get("search")),va.value="",null!=gb&&(gb.click(),gb=null));va.focus()});mxEvent.addListener(va,"keydown",mxUtils.bind(this,function(Ea){if(13==Ea.keyCode){var Ia=va.value;if(""==Ia)null!=gb&&(gb.click(),gb=null);else{if(null==
NewDialog.tagsList[G]){var Fa={};for(db in Ta)if(null==Ta[db].content)for(var Ja=Ta[db],Ga=0;Ga<Ja.length;Ga++){var Ha=Ja[Ga];if(null!=Ha.tags)for(var Oa=Ha.tags.toLowerCase().split(";"),Qa=0;Qa<Oa.length;Qa++)null==Fa[Oa[Qa]]&&(Fa[Oa[Qa]]=[]),Fa[Oa[Qa]].push(Ha)}NewDialog.tagsList[G]=Fa}var Ya=Ia.toLowerCase().split(" ");Fa=NewDialog.tagsList[G];if(0<ab&&null==Fa.__tagsList__){for(db in Xa)for(Ja=Xa[db],Ga=0;Ga<Ja.length;Ga++)for(Ha=Ja[Ga],Oa=Ha.title.split(" "),Oa.push(db),Qa=0;Qa<Oa.length;Qa++){var jb=
-Oa[Qa].toLowerCase();null==Fa[jb]&&(Fa[jb]=[]);Fa[jb].push(Ha)}Fa.__tagsList__=!0}var db=[];Ja={};for(Ga=Oa=0;Ga<Ya.length;Ga++)if(0<Ya[Ga].length){jb=Fa[Ya[Ga]];var nb={};db=[];if(null!=jb)for(Qa=0;Qa<jb.length;Qa++)Ha=jb[Qa],0==Oa==(null==Ja[Ha.url])&&(nb[Ha.url]=!0,db.push(Ha));Ja=nb;Oa++}ea.scrollTop=0;ea.innerText="";S=0;Fa=document.createElement("div");Fa.style.padding="6px";Fa.style.whiteSpace="nowrap";Fa.style.overflow="hidden";Fa.style.textOverflow="ellipsis";Ha=mxResources.get(0==db.length?
-"noResultsFor":"resultsFor",[Ia]);Fa.setAttribute("title",Ha);mxUtils.write(Fa,Ha);ea.appendChild(Fa);null!=Va&&null==gb&&(Va.style.backgroundColor="",gb=Va,Va=Fa);hb=db;ba=null;F(!1)}mxEvent.consume(Ea)}}));mxEvent.addListener(va,"keyup",mxUtils.bind(this,function(Ea){""==va.value?(ra.setAttribute("src",Editor.magnifyImage),ra.setAttribute("title",mxResources.get("search"))):(ra.setAttribute("src",Editor.crossImage),ra.setAttribute("title",mxResources.get("reset")))}));qa+=23;var Aa=document.createElement("div");
+Oa[Qa].toLowerCase();null==Fa[jb]&&(Fa[jb]=[]);Fa[jb].push(Ha)}Fa.__tagsList__=!0}var db=[];Ja={};for(Ga=Oa=0;Ga<Ya.length;Ga++)if(0<Ya[Ga].length){jb=Fa[Ya[Ga]];var nb={};db=[];if(null!=jb)for(Qa=0;Qa<jb.length;Qa++)Ha=jb[Qa],0==Oa==(null==Ja[Ha.url])&&(nb[Ha.url]=!0,db.push(Ha));Ja=nb;Oa++}ea.scrollTop=0;ea.innerText="";R=0;Fa=document.createElement("div");Fa.style.padding="6px";Fa.style.whiteSpace="nowrap";Fa.style.overflow="hidden";Fa.style.textOverflow="ellipsis";Ha=mxResources.get(0==db.length?
+"noResultsFor":"resultsFor",[Ia]);Fa.setAttribute("title",Ha);mxUtils.write(Fa,Ha);ea.appendChild(Fa);null!=Va&&null==gb&&(Va.style.backgroundColor="",gb=Va,Va=Fa);hb=db;ba=null;E(!1)}mxEvent.consume(Ea)}}));mxEvent.addListener(va,"keyup",mxUtils.bind(this,function(Ea){""==va.value?(ra.setAttribute("src",Editor.magnifyImage),ra.setAttribute("title",mxResources.get("search"))):(ra.setAttribute("src",Editor.crossImage),ra.setAttribute("title",mxResources.get("reset")))}));qa+=23;var Aa=document.createElement("div");
Aa.style.cssText="position:absolute;left:30px;width:128px;top:"+qa+"px;bottom:68px;margin-top:6px;overflow:auto;border:1px solid #d3d3d3;";mxEvent.addListener(ea,"scroll",function(){null!=b.sidebar&&b.sidebar.hideTooltip()});var Ka=140,Na=Ka,La=null,Za="url("+Editor.thinSparklesImage+")",Ra=document.createElement("div");Ra.className="geGenerateDiagramForm";Ra.style.position="absolute";Ra.style.width="100%";Ra.style.height="100%";var Ua=document.createElement("div");Ua.className="geTemplatePreview geAdaptiveAsset";
Ua.style.backgroundImage=Za;var cb=document.createElement("textarea");cb.setAttribute("placeholder",mxResources.get("describeYourDiagram"));cb.className="geGenerateDiagramDescription";var fb=document.createElement("button");fb.className="geBtn gePrimaryBtn geGenerateDiagramButton";fb.setAttribute("disabled","disabled");fb.setAttribute("title",mxResources.get("ok"));mxUtils.write(fb,mxResources.get("ok"));var bb=X.cloneNode(!0);bb.style.display="none";var rb=!1;mxEvent.addGestureListeners(bb,function(Ea){rb=
null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display},null,function(Ea){if(!rb&&null!=oa){var Ia="<mxfile><diagram>"+Graph.compress(oa)+"</diagram></mxfile>";K(Ia,mxEvent.getClientX(Ea),mxEvent.getClientY(Ea),La,ca)}});var Sa=X.cloneNode(!0);Sa.setAttribute("src",Editor.editImage);Sa.setAttribute("title",mxResources.get("edit"));Sa.style.visibility="hidden";Sa.style.left="0px";var eb=X.cloneNode(!0);eb.setAttribute("src",Editor.helpImage);eb.setAttribute("title",mxResources.get("help"));
@@ -12534,34 +12540,34 @@ mxEvent.addListener(eb,"click",function(Ea){b.openLink("https://www.drawio.com/b
27==Ea.keyCode&&(z(!0),mxEvent.consume(Ea)):(z(),mxEvent.consume(Ea))});var Ta={},lb={},Xa={},ab=0,mb=!0,Va=null,gb=null;Ta.basic=C?[]:[{title:"blankDiagram"}];var hb=Ta.basic;Editor.enableAi&&b.isExternalDataComms()&&"draw.io"==b.getServiceName()&&"undefined"!==typeof mxMermaidToDrawio&&window.isMermaidEnabled&&Ta.basic.push({title:"generate",type:"generative"});if(!f){var vb=function(){mxUtils.get(sb,function(Ea){if(!zb){zb=!0;Ea=Ea.getXml().documentElement.firstChild;for(var Ia={};null!=Ea;){if("undefined"!==
typeof Ea.getAttribute)if("parsererror"==Ea.nodeName)null!=window.console&&console.log("Parser error in "+G+": "+Ea.textContent);else if("clibs"==Ea.nodeName){for(var Fa=Ea.getAttribute("name"),Ja=Ea.getElementsByTagName("add"),Ga=[],Ha=0;Ha<Ja.length;Ha++)Ga.push(encodeURIComponent(mxUtils.getTextContent(Ja[Ha])));null!=Fa&&0<Ga.length&&(Ia[Fa]=Ga.join(";"))}else if(Ga=Ea.getAttribute("url"),null!=Ga){Ja=Ea.getAttribute("section");Fa=Ea.getAttribute("subsection");if(null==Ja&&(Ha=Ga.indexOf("/"),
Ja=Ga.substring(0,Ha),null==Fa)){var Oa=Ga.indexOf("/",Ha+1);-1<Oa&&(Fa=Ga.substring(Ha+1,Oa))}Ha=Ta[Ja];null==Ha&&(Ha=[],Ta[Ja]=Ha);Ga=Ea.getAttribute("clibs");null!=Ia[Ga]&&(Ga=Ia[Ga]);Ga={url:Ea.getAttribute("url"),libs:Ea.getAttribute("libs"),title:Ea.getAttribute("title"),tooltip:Ea.getAttribute("name")||Ea.getAttribute("url"),preview:Ea.getAttribute("preview"),clibs:Ga,tags:Ea.getAttribute("tags")};Ha.push(Ga);null!=Fa&&(Ha=lb[Ja],null==Ha&&(Ha={},lb[Ja]=Ha),Ja=Ha[Fa],null==Ja&&(Ja=[],Ha[Fa]=
-Ja),Ja.push(Ga))}Ea=Ea.nextSibling}U.stop();N()}})};y.appendChild(na);y.appendChild(Aa);y.appendChild(ea);var zb=!1,sb=G;/^https?:\/\//.test(sb)&&!b.editor.isCorsEnabledForUrl(sb)&&(sb=PROXY_URL+"?url="+encodeURIComponent(sb));U.spin(ea);null!=u?u(function(Ea,Ia){Xa=Ea;la=ab=Ia;vb()},vb):vb();ia=Ta}mxEvent.addListener(T,"keypress",function(Ea){b.dialog.container.firstChild==y&&13==Ea.keyCode&&I()});var kb=document.createElement("div");kb.style.marginTop=f?"4px":"16px";kb.style.textAlign="right";kb.style.position=
+Ja),Ja.push(Ga))}Ea=Ea.nextSibling}U.stop();N()}})};y.appendChild(na);y.appendChild(Aa);y.appendChild(ea);var zb=!1,sb=G;/^https?:\/\//.test(sb)&&!b.editor.isCorsEnabledForUrl(sb)&&(sb=PROXY_URL+"?url="+encodeURIComponent(sb));U.spin(ea);null!=u?u(function(Ea,Ia){Xa=Ea;la=ab=Ia;vb()},vb):vb();ia=Ta}mxEvent.addListener(S,"keypress",function(Ea){b.dialog.container.firstChild==y&&13==Ea.keyCode&&I()});var kb=document.createElement("div");kb.style.marginTop=f?"4px":"16px";kb.style.textAlign="right";kb.style.position=
"absolute";kb.style.left="40px";kb.style.bottom="24px";kb.style.right="40px";var wb=mxUtils.button(mxResources.get("cancel"),function(){null!=t&&t();b.hideDialog(!0)});wb.className="geBtn";!b.editor.cancelFirst||p&&null==t||kb.appendChild(wb);if(!(f||"1"==urlParams.embed||p||mxClient.IS_ANDROID||mxClient.IS_IOS)&&"1"!=urlParams.noDevice){var Ab=mxUtils.button(mxResources.get("fromTemplateUrl"),function(){var Ea=new FilenameDialog(b,"",mxResources.get("create"),function(Ia){null!=Ia&&0<Ia.length&&
b.editor.loadUrl(b.editor.getProxiedUrl(Ia),function(Fa){Ca=Fa;xa=null;templateRealURl=Ia;b.hideDialog();I()},function(Fa){b.handleError(Fa)})},mxResources.get("url"),null,null,null,!1);b.showDialog(Ea.container,300,80,!0,!0);Ea.init()});Ab.className="geBtn";kb.appendChild(Ab)}if(Graph.fileSupport&&l){var Bb=mxUtils.button(mxResources.get("import"),function(){if(null==b.newDlgFileInputElt){var Ea=document.createElement("input");Ea.setAttribute("multiple","multiple");Ea.setAttribute("type","file");
mxEvent.addListener(Ea,"change",function(Ia){b.openFiles(Ea.files,!0);Ea.value=""});Ea.style.display="none";document.body.appendChild(Ea);b.newDlgFileInputElt=Ea}b.newDlgFileInputElt.click()});Bb.className="geBtn";kb.appendChild(Bb)}kb.appendChild(Y);b.editor.cancelFirst||null!=d||p&&null==t||kb.appendChild(wb);y.appendChild(kb);this.container=y};NewDialog.tagsList={};
-var SaveDialog=function(b,f,k,d,p,t,v,A,J,H,G){function D(m,y,E,P,O,T){var V=null;if((null==d||0>mxUtils.indexOf(d,m))&&(null==J||m==J)&&(null==H||0<=mxUtils.indexOf(H,m))){O=null!=O?O:b.getTitleForService(m);var Q=0<=mxUtils.indexOf(z,m);if(Q||null!=b.getServiceForName(m)){V=document.createElement("option");var S="";!Q&&b.isOffline(m==App.MODE_GOOGLE&&"1"==urlParams["gapi-stealth"])&&(V.setAttribute("disabled","disabled"),S=" ("+mxResources.get("offline")+")");if("pick"==T)V.innerHTML=mxUtils.htmlEntities(O)+
-"&nbsp;&nbsp;&#8211&nbsp;&nbsp;"+mxUtils.htmlEntities(mxResources.get("pickFolder"))+"..."+S,V.setAttribute("value","pickFolder-"+m),V.setAttribute("title",O+" - "+mxResources.get("pickFolder")+"...");else{Q=m+(null!=E?"-"+E:"");var U=N[Q];null!=U&&null!=U.option&&U.option.parentNode.removeChild(U.option);U=null;if(null!=y){"/"==y.charAt(y.length-1)&&(y=y.substring(0,y.length-1));"/"==y.charAt(0)&&(y=y.substring(1));U=y;if(m!=App.MODE_GITHUB&&m==App.MODE_GITLAB){var Y=U.lastIndexOf("/");0<=Y&&(U=
-U.substring(Y+1))}40<U.length&&(U=U.substring(0,20)+"..."+U.substring(U.length-20))}V.innerHTML=mxUtils.htmlEntities(O)+(null!=U?"&nbsp;&nbsp;&#8211&nbsp;&nbsp;"+mxUtils.htmlEntities(U):"")+S;V.setAttribute("title",O+(null!=y?" ("+y+")":"")+(null!=E&&decodeURIComponent(E)!=y?" ["+E+"]":""));V.setAttribute("value",Q);N[Q]={option:V,mode:m,path:y,id:E};SaveDialog.lastValue==Q&&null==A&&"disabled"==!V.getAttribute("disabled")?P=!0:null==P&&("root"==T?P=null==A&&b.mode==m||null!=m&&m==A:"pickFolder-"==
-q.value.substring(0,11)&&(P=!0));P&&V.setAttribute("selected","selected")}q.appendChild(V)}}return V}function c(m){b.pickFolder(m,function(y){var E=null;m==App.MODE_GOOGLE&&null!=y.docs&&0<y.docs.length?E={mode:m,path:y.docs[0].name,id:y.docs[0].id}:m==App.MODE_ONEDRIVE&&null!=y.value&&0<y.value.length?E={mode:m,path:y.value[0].name,id:OneDriveFile.prototype.getIdOf(y.value[0])}:m==App.MODE_M365&&null!=y.value&&0<y.value.length?E={mode:m,path:y.value[0].name,id:OneDriveFile.prototype.getIdOf(y.value[0])}:
-(m==App.MODE_GITHUB||m==App.MODE_GITLAB)&&null!=y&&0<y.length&&(E={mode:m,path:decodeURIComponent(y),id:y});null!=E&&(b.addRecent(E,"Folders",5),y=D(E.mode,E.path,E.id,!0),q.innerHTML="",N={},g(),E=q.selectedIndex,q.value=y.value,0>q.selectedIndex&&(q.selectedIndex=E))},!0,!0,!0,!0)}function g(){var m=b.getRecent("Folders"),y=0;if(null!=m&&0<m.length)for(var E=0;E<m.length;E++)null!=D(m[E].mode,m[E].path,m[E].id)&&y++;D(App.MODE_GOOGLE,mxResources.get("myDrive"),"root",null,null,"root");D(App.MODE_GOOGLE,
+var SaveDialog=function(b,f,k,d,p,t,v,A,J,H,G){function D(m,y,F,P,O,S){var V=null;if((null==d||0>mxUtils.indexOf(d,m))&&(null==J||m==J)&&(null==H||0<=mxUtils.indexOf(H,m))){O=null!=O?O:b.getTitleForService(m);var Q=0<=mxUtils.indexOf(z,m);if(Q||null!=b.getServiceForName(m)){V=document.createElement("option");var R="";!Q&&b.isOffline(m==App.MODE_GOOGLE&&"1"==urlParams["gapi-stealth"])&&(V.setAttribute("disabled","disabled"),R=" ("+mxResources.get("offline")+")");if("pick"==S)V.innerHTML=mxUtils.htmlEntities(O)+
+"&nbsp;&nbsp;&#8211&nbsp;&nbsp;"+mxUtils.htmlEntities(mxResources.get("pickFolder"))+"..."+R,V.setAttribute("value","pickFolder-"+m),V.setAttribute("title",O+" - "+mxResources.get("pickFolder")+"...");else{Q=m+(null!=F?"-"+F:"");var U=N[Q];null!=U&&null!=U.option&&U.option.parentNode.removeChild(U.option);U=null;if(null!=y){"/"==y.charAt(y.length-1)&&(y=y.substring(0,y.length-1));"/"==y.charAt(0)&&(y=y.substring(1));U=y;if(m!=App.MODE_GITHUB&&m==App.MODE_GITLAB){var Y=U.lastIndexOf("/");0<=Y&&(U=
+U.substring(Y+1))}40<U.length&&(U=U.substring(0,20)+"..."+U.substring(U.length-20))}V.innerHTML=mxUtils.htmlEntities(O)+(null!=U?"&nbsp;&nbsp;&#8211&nbsp;&nbsp;"+mxUtils.htmlEntities(U):"")+R;V.setAttribute("title",O+(null!=y?" ("+y+")":"")+(null!=F&&decodeURIComponent(F)!=y?" ["+F+"]":""));V.setAttribute("value",Q);N[Q]={option:V,mode:m,path:y,id:F};SaveDialog.lastValue==Q&&null==A&&"disabled"==!V.getAttribute("disabled")?P=!0:null==P&&("root"==S?P=null==A&&b.mode==m||null!=m&&m==A:"pickFolder-"==
+q.value.substring(0,11)&&(P=!0));P&&V.setAttribute("selected","selected")}q.appendChild(V)}}return V}function c(m){b.pickFolder(m,function(y){var F=null;m==App.MODE_GOOGLE&&null!=y.docs&&0<y.docs.length?F={mode:m,path:y.docs[0].name,id:y.docs[0].id}:m==App.MODE_ONEDRIVE&&null!=y.value&&0<y.value.length?F={mode:m,path:y.value[0].name,id:OneDriveFile.prototype.getIdOf(y.value[0])}:m==App.MODE_M365&&null!=y.value&&0<y.value.length?F={mode:m,path:y.value[0].name,id:OneDriveFile.prototype.getIdOf(y.value[0])}:
+(m==App.MODE_GITHUB||m==App.MODE_GITLAB)&&null!=y&&0<y.length&&(F={mode:m,path:decodeURIComponent(y),id:y});null!=F&&(b.addRecent(F,"Folders",5),y=D(F.mode,F.path,F.id,!0),q.innerHTML="",N={},g(),F=q.selectedIndex,q.value=y.value,0>q.selectedIndex&&(q.selectedIndex=F))},!0,!0,!0,!0)}function g(){var m=b.getRecent("Folders"),y=0;if(null!=m&&0<m.length)for(var F=0;F<m.length;F++)null!=D(m[F].mode,m[F].path,m[F].id)&&y++;D(App.MODE_GOOGLE,mxResources.get("myDrive"),"root",null,null,"root");D(App.MODE_GOOGLE,
null,null,null,null,"pick");null!=b.oneDrive&&(D(App.MODE_ONEDRIVE,mxResources.get("myFiles"),OneDriveFile.prototype.getIdOf(b.oneDrive.rootId),null,null,"root"),D(App.MODE_ONEDRIVE,null,null,null,null,"pick"));null!=b.m365&&D(App.MODE_M365,null,null,null,null,"pick");null!=b.dropbox&&D(App.MODE_DROPBOX,"Apps"+b.dropbox.appPath);D(App.MODE_GITHUB,null,null,null,null,"pick");D(App.MODE_GITLAB,null,null,null,null,"pick");D(App.MODE_TRELLO);m=!Editor.useLocalStorage||"device"==urlParams.storage||null!=
b.getCurrentFile()&&"1"!=urlParams.noDevice;EditorUi.nativeFileSupport&&m&&D(App.MODE_DEVICE,null,null,b.mode==App.MODE_DEVICE||null!=d&&0<=mxUtils.indexOf(d,App.MODE_BROWSER)?!0:null);isLocalStorage&&"0"!=urlParams.browser&&D(App.MODE_BROWSER);m&&D("download");Editor.popupsAllowed&&D("_blank",null,null,null,mxResources.get("openInNewWindow"));"pickFolder-"==q.value.substring(0,11)&&(m=document.createElement("option"),m.setAttribute("value",""),m.setAttribute("selected","selected"),mxUtils.write(m,
-mxResources.get("pickFolder")+"..."),q.insertBefore(m,q.firstChild));L=q.value}function l(){if("pickFolder-"==q.value.substring(0,11)){var m=q.value.substring(11);q.value=L;c(m)}else if(null!=W&&null!=N[q.value]&&null!=b.editor.diagramFileTypes&&"drawio"==b.editor.diagramFileTypes[W.value].extension){m=b.getExtensionForService(N[q.value].mode);var y=R.value;null!=m&&0>f.indexOf(".")&&0>y.indexOf(".")&&(R.value=y+m)}M.innerHTML="";mxUtils.write(M,null!=G?G:mxResources.get("download"==q.value||"_blank"==
+mxResources.get("pickFolder")+"..."),q.insertBefore(m,q.firstChild));L=q.value}function l(){if("pickFolder-"==q.value.substring(0,11)){var m=q.value.substring(11);q.value=L;c(m)}else if(null!=W&&null!=N[q.value]&&null!=b.editor.diagramFileTypes&&"drawio"==b.editor.diagramFileTypes[W.value].extension){m=b.getExtensionForService(N[q.value].mode);var y=T.value;null!=m&&0>f.indexOf(".")&&0>y.indexOf(".")&&(T.value=y+m)}M.innerHTML="";mxUtils.write(M,null!=G?G:mxResources.get("download"==q.value||"_blank"==
q.value||null!=J?"ok":"save"));""==q.value?M.setAttribute("disabled","disabled"):M.removeAttribute("disabled")}var n=document.createElement("div");n.style.display="flex";n.style.flexWrap="wrap";n.style.whiteSpace="nowrap";var u=document.createElement("div");u.style.display="grid";u.style.gap="5px 8px";u.style.gridAutoRows="auto auto 44px";u.style.gridAutoColumns="0fr minmax(0,1fr)";u.style.width="100%";var x=null,B=null;if(null!=p&&null!=t&&"image/"==t.substring(0,6)&&("image/svg"!=t.substring(0,
-9)||mxClient.IS_SVG)){u.style.display="inline-grid";u.style.flexBasis="75%";x=document.createElement("div");x.style.display="inline-block";x.style.height="auto";x.style.maxWidth="25%";x.style.margin="auto";var C=document.createElement("img"),F=v?p:btoa(unescape(encodeURIComponent(p))),K="data:"+t+";base64,"+F;C.setAttribute("src",K);C.style.boxSizing="border-box";C.style.maxHeight="50px";C.style.maxWidth="100%";C.style.paddingLeft="10px";x.appendChild(C);"image/png"!=t&&"image/svg+xml"!=t||"function"!==
+9)||mxClient.IS_SVG)){u.style.display="inline-grid";u.style.flexBasis="75%";x=document.createElement("div");x.style.display="inline-block";x.style.height="auto";x.style.maxWidth="25%";x.style.margin="auto";var C=document.createElement("img"),E=v?p:btoa(unescape(encodeURIComponent(p))),K="data:"+t+";base64,"+E;C.setAttribute("src",K);C.style.boxSizing="border-box";C.style.maxHeight="50px";C.style.maxWidth="100%";C.style.paddingLeft="10px";x.appendChild(C);"image/png"!=t&&"image/svg+xml"!=t||"function"!==
typeof window.ClipboardItem||null==navigator.clipboard||(B=mxUtils.button(mxResources.get("copy"),function(){b.writeImageToClipboard(K,null,null,t,mxUtils.bind(this,function(){"copy"==A?b.hideDialog():b.alert(mxResources.get("copiedToClipboard"))}),mxUtils.bind(this,function(m){b.handleError(m)}))},null,"geBtn"));Editor.popupsAllowed&&(null==d||0>mxUtils.indexOf(d,"_blank"))?(x.setAttribute("title",mxResources.get("openInNewWindow")),x.style.cursor="pointer",mxEvent.addGestureListeners(x,null,null,
-function(m){mxEvent.isPopupTrigger(m)||b.openInNewWindow(p,t,v)})):x.setAttribute("title",mxResources.get("preview"))}F=document.createElement("div");F.style.display="flex";F.style.padding="1px";F.style.alignItems="center";F.style.justifyContent="flex-end";F.style.gridColumn="1";F.style.whiteSpace="nowrap";var I=document.createElement("div");I.style.display="grid";I.style.padding="1px";I.style.alignItems="center";I.style.gridColumn="2";I.style.gridAutoColumns="minmax(0,1fr) auto";I.style.gap="6px";
-mxUtils.write(F,mxResources.get("saveAs")+":");var R=document.createElement("input");R.setAttribute("type","text");R.setAttribute("value",f);R.style.boxSizing="border-box";R.style.width="100%";I.appendChild(R);null==J&&(u.appendChild(F),u.appendChild(I));var W=null;null!=b.editor.diagramFileTypes&&null==t&&null==J&&(F=F.cloneNode(!1),I=I.cloneNode(!1),mxUtils.write(F,mxResources.get("type")+":"),W=FilenameDialog.createFileTypes(b,R,b.editor.diagramFileTypes),W.style.boxSizing="border-box",W.style.width=
-"100%",I.appendChild(W),u.appendChild(F),u.appendChild(I));F=F.cloneNode(!1);I=I.cloneNode(!1);mxUtils.write(F,mxResources.get("where")+":");var q=document.createElement("select");q.style.textOverflow="ellipsis";q.style.gridColumn="1";var z=["browser","device","download","_blank"],L=null,N={};C=mxUtils.button(mxResources.get("reset"),function(){R.value=f;R.dispatchEvent(new Event("change"));b.resetRecent("Folders");q.innerHTML="";q.value="";pickFolderOption=null;N={};g()},null,"geBtn");var M=mxUtils.button("",
-function(){SaveDialog.lastValue=q.value;var m=N[SaveDialog.lastValue];null!=m&&k(R,m.mode,m.id)},null,"geBtn gePrimaryBtn");mxEvent.addListener(R,"keypress",function(m){13==m.keyCode&&("copy"==A&&null!=B?B.click():M.click())});mxEvent.addListener(q,"change",l);g();I.appendChild(q);null!=SaveDialog.lastValue&&null!=N[SaveDialog.lastValue]&&(q.value=SaveDialog.lastValue);l();u.appendChild(F);u.appendChild(I);n.appendChild(u);null!=x&&n.appendChild(x);u=document.createElement("div");u.style.flexBasis=
+function(m){mxEvent.isPopupTrigger(m)||b.openInNewWindow(p,t,v)})):x.setAttribute("title",mxResources.get("preview"))}E=document.createElement("div");E.style.display="flex";E.style.padding="1px";E.style.alignItems="center";E.style.justifyContent="flex-end";E.style.gridColumn="1";E.style.whiteSpace="nowrap";var I=document.createElement("div");I.style.display="grid";I.style.padding="1px";I.style.alignItems="center";I.style.gridColumn="2";I.style.gridAutoColumns="minmax(0,1fr) auto";I.style.gap="6px";
+mxUtils.write(E,mxResources.get("saveAs")+":");var T=document.createElement("input");T.setAttribute("type","text");T.setAttribute("value",f);T.style.boxSizing="border-box";T.style.width="100%";I.appendChild(T);null==J&&(u.appendChild(E),u.appendChild(I));var W=null;null!=b.editor.diagramFileTypes&&null==t&&null==J&&(E=E.cloneNode(!1),I=I.cloneNode(!1),mxUtils.write(E,mxResources.get("type")+":"),W=FilenameDialog.createFileTypes(b,T,b.editor.diagramFileTypes),W.style.boxSizing="border-box",W.style.width=
+"100%",I.appendChild(W),u.appendChild(E),u.appendChild(I));E=E.cloneNode(!1);I=I.cloneNode(!1);mxUtils.write(E,mxResources.get("where")+":");var q=document.createElement("select");q.style.textOverflow="ellipsis";q.style.gridColumn="1";var z=["browser","device","download","_blank"],L=null,N={};C=mxUtils.button(mxResources.get("reset"),function(){T.value=f;T.dispatchEvent(new Event("change"));b.resetRecent("Folders");q.innerHTML="";q.value="";pickFolderOption=null;N={};g()},null,"geBtn");var M=mxUtils.button("",
+function(){SaveDialog.lastValue=q.value;var m=N[SaveDialog.lastValue];null!=m&&k(T,m.mode,m.id)},null,"geBtn gePrimaryBtn");mxEvent.addListener(T,"keypress",function(m){13==m.keyCode&&("copy"==A&&null!=B?B.click():M.click())});mxEvent.addListener(q,"change",l);g();I.appendChild(q);null!=SaveDialog.lastValue&&null!=N[SaveDialog.lastValue]&&(q.value=SaveDialog.lastValue);l();u.appendChild(E);u.appendChild(I);n.appendChild(u);null!=x&&n.appendChild(x);u=document.createElement("div");u.style.flexBasis=
"100%";u.style.textAlign="right";u.style.marginTop=null!=t?"16px":"8px";b.isOffline()&&!mxClient.IS_CHROMEAPP||u.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/save-file-formats"));x=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()},null,"geBtn");b.editor.cancelFirst&&u.appendChild(x);u.appendChild(C);"copy"==A&&null!=B?(B.className="geBtn gePrimaryBtn",M.className="geBtn",u.appendChild(M),u.appendChild(B)):(null!=B&&u.appendChild(B),u.appendChild(M));b.editor.cancelFirst||
-u.appendChild(x);n.appendChild(u);this.init=function(){Editor.selectFilename(R)};this.container=n},CreateDialog=function(b,f,k,d,p,t,v,A,J,H,G,D,c,g,l,n,u){function x(q,z,L,N){function M(){mxEvent.addListener(m,"click",function(){var T=L;if(v){var V=F.value,Q=V.lastIndexOf(".");if(0>f.lastIndexOf(".")&&0>Q){T=null!=T?T:W.value;var S="";T==App.MODE_GOOGLE?S=b.drive.extension:T==App.MODE_GITHUB?S=b.gitHub.extension:T==App.MODE_GITLAB?S=b.gitLab.extension:T==App.MODE_TRELLO?S=b.trello.extension:T==App.MODE_DROPBOX?
-S=b.dropbox.extension:T==App.MODE_ONEDRIVE?S=b.oneDrive.extension:T==App.MODE_DEVICE&&(S=".drawio");0<=Q&&(V=V.substring(0,Q));F.value=V+S}}B(L)})}var m=document.createElement("a");m.style.overflow="hidden";var y=document.createElement("img");y.src=q;y.setAttribute("border","0");y.setAttribute("align","absmiddle");y.style.width="60px";y.style.height="60px";y.style.paddingBottom="6px";m.style.display="inline-block";m.className="geBaseButton";m.style.position="relative";m.style.margin="4px";m.style.padding=
-"8px 8px 10px 8px";m.style.whiteSpace="nowrap";m.appendChild(y);m.style.color="gray";m.style.fontSize="11px";var E=document.createElement("div");m.appendChild(E);mxUtils.write(E,z);if(null!=N&&null==b[N]){y.style.visibility="hidden";mxUtils.setOpacity(E,10);var P=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});P.spin(m);var O=window.setTimeout(function(){null==b[N]&&(P.stop(),m.style.display=
-"none")},3E4);b.addListener("clientLoaded",mxUtils.bind(this,function(){null!=b[N]&&(window.clearTimeout(O),mxUtils.setOpacity(E,100),y.style.visibility="",P.stop(),M())}))}else M();I.appendChild(m);++R==D&&(mxUtils.br(I),R=0)}function B(q){var z=F.value;if(null==q||null!=z&&0<z.length)u&&b.hideDialog(),k(z,q,F)}G="1"==urlParams.noDevice?!1:G;v=null!=v?v:!0;A=null!=A?A:!0;D=null!=D?D:4;u=null!=u?u:!0;t=document.createElement("div");t.style.whiteSpace="nowrap";null==d&&b.addLanguageMenu(t);var C=document.createElement("h2");
-mxUtils.write(C,p||mxResources.get("create"));C.style.marginTop="0px";C.style.marginBottom="24px";t.appendChild(C);p=document.createElement("span");mxUtils.write(p,mxResources.get("filename")+":");p.style.maxWidth="106px";p.style.overflow="hidden";p.style.textOverflow="ellipsis";p.style.display="inline-block";t.appendChild(p);var F=document.createElement("input");F.setAttribute("value",f);F.style.width="180px";F.style.marginLeft="10px";F.style.marginBottom="20px";F.style.maxWidth="70%";this.init=
-function(){Editor.selectFilename(F)};t.appendChild(F);null!=n&&null!=b.editor.diagramFileTypes&&(n=FilenameDialog.createFileTypes(b,F,b.editor.diagramFileTypes),n.style.marginLeft="6px",n.style.width="90px",t.appendChild(n));n=null;if("1"!=urlParams.noDevice&&null!=c&&null!=g&&"image/"==g.substring(0,6)&&("image/svg"!=g.substring(0,9)||mxClient.IS_SVG)){F.style.width="160px";p=document.createElement("img");var K=l?c:btoa(unescape(encodeURIComponent(c)));p.setAttribute("src","data:"+g+";base64,"+K);
+u.appendChild(x);n.appendChild(u);this.init=function(){Editor.selectFilename(T)};this.container=n},CreateDialog=function(b,f,k,d,p,t,v,A,J,H,G,D,c,g,l,n,u){function x(q,z,L,N){function M(){mxEvent.addListener(m,"click",function(){var S=L;if(v){var V=E.value,Q=V.lastIndexOf(".");if(0>f.lastIndexOf(".")&&0>Q){S=null!=S?S:W.value;var R="";S==App.MODE_GOOGLE?R=b.drive.extension:S==App.MODE_GITHUB?R=b.gitHub.extension:S==App.MODE_GITLAB?R=b.gitLab.extension:S==App.MODE_TRELLO?R=b.trello.extension:S==App.MODE_DROPBOX?
+R=b.dropbox.extension:S==App.MODE_ONEDRIVE?R=b.oneDrive.extension:S==App.MODE_DEVICE&&(R=".drawio");0<=Q&&(V=V.substring(0,Q));E.value=V+R}}B(L)})}var m=document.createElement("a");m.style.overflow="hidden";var y=document.createElement("img");y.src=q;y.setAttribute("border","0");y.setAttribute("align","absmiddle");y.style.width="60px";y.style.height="60px";y.style.paddingBottom="6px";m.style.display="inline-block";m.className="geBaseButton";m.style.position="relative";m.style.margin="4px";m.style.padding=
+"8px 8px 10px 8px";m.style.whiteSpace="nowrap";m.appendChild(y);m.style.color="gray";m.style.fontSize="11px";var F=document.createElement("div");m.appendChild(F);mxUtils.write(F,z);if(null!=N&&null==b[N]){y.style.visibility="hidden";mxUtils.setOpacity(F,10);var P=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});P.spin(m);var O=window.setTimeout(function(){null==b[N]&&(P.stop(),m.style.display=
+"none")},3E4);b.addListener("clientLoaded",mxUtils.bind(this,function(){null!=b[N]&&(window.clearTimeout(O),mxUtils.setOpacity(F,100),y.style.visibility="",P.stop(),M())}))}else M();I.appendChild(m);++T==D&&(mxUtils.br(I),T=0)}function B(q){var z=E.value;if(null==q||null!=z&&0<z.length)u&&b.hideDialog(),k(z,q,E)}G="1"==urlParams.noDevice?!1:G;v=null!=v?v:!0;A=null!=A?A:!0;D=null!=D?D:4;u=null!=u?u:!0;t=document.createElement("div");t.style.whiteSpace="nowrap";null==d&&b.addLanguageMenu(t);var C=document.createElement("h2");
+mxUtils.write(C,p||mxResources.get("create"));C.style.marginTop="0px";C.style.marginBottom="24px";t.appendChild(C);p=document.createElement("span");mxUtils.write(p,mxResources.get("filename")+":");p.style.maxWidth="106px";p.style.overflow="hidden";p.style.textOverflow="ellipsis";p.style.display="inline-block";t.appendChild(p);var E=document.createElement("input");E.setAttribute("value",f);E.style.width="180px";E.style.marginLeft="10px";E.style.marginBottom="20px";E.style.maxWidth="70%";this.init=
+function(){Editor.selectFilename(E)};t.appendChild(E);null!=n&&null!=b.editor.diagramFileTypes&&(n=FilenameDialog.createFileTypes(b,E,b.editor.diagramFileTypes),n.style.marginLeft="6px",n.style.width="90px",t.appendChild(n));n=null;if("1"!=urlParams.noDevice&&null!=c&&null!=g&&"image/"==g.substring(0,6)&&("image/svg"!=g.substring(0,9)||mxClient.IS_SVG)){E.style.width="160px";p=document.createElement("img");var K=l?c:btoa(unescape(encodeURIComponent(c)));p.setAttribute("src","data:"+g+";base64,"+K);
p.style.position="absolute";p.style.top="70px";p.style.right="100px";p.style.maxWidth="120px";p.style.maxHeight="80px";mxUtils.setPrefixedStyle(p.style,"transform","translate(50%,-50%)");t.appendChild(p);mxClient.IS_FF||"image/png"!=g||null==navigator.clipboard||"function"!==typeof window.ClipboardItem||(n=mxUtils.button(mxResources.get("copy"),function(q){q=b.base64ToBlob(K,"image/png");q=new ClipboardItem({"image/png":q,"text/html":new Blob(['<img src="data:'+g+";base64,"+K+'">'],{type:"text/html"})});
-navigator.clipboard.write([q]).then(mxUtils.bind(this,function(){b.alert(mxResources.get("copiedToClipboard"))}))["catch"](mxUtils.bind(this,function(z){b.handleError(z)}))}),n.style.marginTop="6px",n.className="geBtn");J&&Editor.popupsAllowed&&(p.style.cursor="pointer",mxEvent.addGestureListeners(p,null,null,function(q){mxEvent.isPopupTrigger(q)||B("_blank")}))}mxUtils.br(t);var I=document.createElement("div");I.style.textAlign="center";var R=0;I.style.marginTop="6px";t.appendChild(I);var W=document.createElement("select");
+navigator.clipboard.write([q]).then(mxUtils.bind(this,function(){b.alert(mxResources.get("copiedToClipboard"))}))["catch"](mxUtils.bind(this,function(z){b.handleError(z)}))}),n.style.marginTop="6px",n.className="geBtn");J&&Editor.popupsAllowed&&(p.style.cursor="pointer",mxEvent.addGestureListeners(p,null,null,function(q){mxEvent.isPopupTrigger(q)||B("_blank")}))}mxUtils.br(t);var I=document.createElement("div");I.style.textAlign="center";var T=0;I.style.marginTop="6px";t.appendChild(I);var W=document.createElement("select");
W.style.marginLeft="10px";b.isOfflineApp()||b.isOffline()||("function"===typeof window.DriveClient&&(c=document.createElement("option"),c.setAttribute("value",App.MODE_GOOGLE),mxUtils.write(c,mxResources.get("googleDrive")),W.appendChild(c),x(IMAGE_PATH+"/google-drive-logo.svg",mxResources.get("googleDrive"),App.MODE_GOOGLE,"drive")),"function"===typeof window.OneDriveClient&&(c=document.createElement("option"),c.setAttribute("value",App.MODE_ONEDRIVE),mxUtils.write(c,mxResources.get("oneDrive")),
W.appendChild(c),b.mode==App.MODE_ONEDRIVE&&c.setAttribute("selected","selected"),x(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"),App.MODE_ONEDRIVE,"oneDrive")),null!=b.m365&&(c=document.createElement("option"),c.setAttribute("value",App.MODE_M365),mxUtils.write(c,mxResources.get("m365")),W.appendChild(c),b.mode==App.MODE_M365&&c.setAttribute("selected","selected"),x(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("m365"),App.MODE_M365,"m365")),"function"===typeof window.DropboxClient&&
(c=document.createElement("option"),c.setAttribute("value",App.MODE_DROPBOX),mxUtils.write(c,mxResources.get("dropbox")),W.appendChild(c),b.mode==App.MODE_DROPBOX&&c.setAttribute("selected","selected"),x(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),App.MODE_DROPBOX,"dropbox")),null!=b.gitHub&&(c=document.createElement("option"),c.setAttribute("value",App.MODE_GITHUB),mxUtils.write(c,mxResources.get("github")),W.appendChild(c),x(IMAGE_PATH+"/github-logo.svg",mxResources.get("github"),
@@ -12569,89 +12575,89 @@ App.MODE_GITHUB,"gitHub")),null!=b.gitLab&&(c=document.createElement("option"),c
"trello")));if(!Editor.useLocalStorage||"device"==urlParams.storage||null!=b.getCurrentFile()&&"1"!=urlParams.noDevice)c=document.createElement("option"),c.setAttribute("value",App.MODE_DEVICE),mxUtils.write(c,mxResources.get("device")),W.appendChild(c),b.mode!=App.MODE_DEVICE&&A||c.setAttribute("selected","selected"),G&&x(IMAGE_PATH+"/osa_drive-harddisk.png",mxResources.get("device"),App.MODE_DEVICE);A&&isLocalStorage&&"0"!=urlParams.browser&&(A=document.createElement("option"),A.setAttribute("value",
App.MODE_BROWSER),mxUtils.write(A,mxResources.get("browser")),W.appendChild(A),b.mode==App.MODE_BROWSER&&A.setAttribute("selected","selected"),x(IMAGE_PATH+"/osa_database.png",mxResources.get("browser"),App.MODE_BROWSER));A=document.createElement("div");A.style.marginTop="26px";A.style.textAlign="center";null!=H&&(G=mxUtils.button(mxResources.get("help"),function(){b.openLink(H)}),G.className="geBtn",A.appendChild(G));G=mxUtils.button(mxResources.get(null!=d?"close":"cancel"),function(){null!=d?d():
(b.fileLoaded(null),b.hideDialog(),window.close(),window.location.href=b.getUrl())});G.className="geBtn";b.editor.cancelFirst&&null==d&&A.appendChild(G);null==d&&(c=mxUtils.button(mxResources.get("decideLater"),function(){B(null)}),c.className="geBtn",A.appendChild(c));J&&Editor.popupsAllowed&&(J=mxUtils.button(mxResources.get("openInNewWindow"),function(){B("_blank")}),J.className="geBtn",A.appendChild(J));CreateDialog.showDownloadButton&&(J=mxUtils.button(mxResources.get("download"),function(){B("download")}),
-J.className="geBtn",A.appendChild(J),null!=n&&(J.style.marginTop="6px",A.style.marginTop="6px"));null!=n&&(mxUtils.br(A),A.appendChild(n));b.editor.cancelFirst&&null==d||A.appendChild(G);mxEvent.addListener(F,"keypress",function(q){13==q.keyCode?B(App.MODE_DEVICE):27==q.keyCode&&(b.fileLoaded(null),b.hideDialog(),window.close())});t.appendChild(A);this.container=t};CreateDialog.showDownloadButton="1"!=urlParams.noDevice;
+J.className="geBtn",A.appendChild(J),null!=n&&(J.style.marginTop="6px",A.style.marginTop="6px"));null!=n&&(mxUtils.br(A),A.appendChild(n));b.editor.cancelFirst&&null==d||A.appendChild(G);mxEvent.addListener(E,"keypress",function(q){13==q.keyCode?B(App.MODE_DEVICE):27==q.keyCode&&(b.fileLoaded(null),b.hideDialog(),window.close())});t.appendChild(A);this.container=t};CreateDialog.showDownloadButton="1"!=urlParams.noDevice;
var PopupDialog=function(b,f,k,d,p){p=null!=p?p:!0;var t=document.createElement("div");t.style.textAlign="center";t.style.height="100%";mxUtils.write(t,mxResources.get("fileOpenLocation"));mxUtils.br(t);mxUtils.br(t);var v=mxUtils.button(mxResources.get("openInThisWindow"),function(){p&&b.hideDialog();null!=d&&d()});v.className="geBtn";v.style.marginBottom="8px";v.style.width="280px";t.appendChild(v);mxUtils.br(t);var A=mxUtils.button(mxResources.get("openInNewWindow"),function(){p&&b.hideDialog();
null!=k&&k();b.openLink(f,null,!0)});A.className="geBtn gePrimaryBtn";A.style.width=v.style.width;t.appendChild(A);mxUtils.br(t);mxUtils.br(t);mxUtils.write(t,mxResources.get("allowPopups"));this.container=t},ImageDialog=function(b,f,k,d,p,t,v,A){function J(){0<D.value.length?B.removeAttribute("disabled"):B.setAttribute("disabled","disabled");"data:"!=D.value.substring(0,5)?C.removeAttribute("disabled"):C.setAttribute("disabled","disabled")}t=null!=t?t:!0;var H=b.editor.graph,G=document.createElement("div");
mxUtils.write(G,f);f=document.createElement("div");f.className="geTitle";f.style.backgroundColor="transparent";f.style.borderColor="transparent";f.style.whiteSpace="nowrap";f.style.textOverflow="clip";f.style.cursor="default";f.style.paddingRight="20px";var D=document.createElement("input");D.setAttribute("value",k);D.setAttribute("type","text");D.setAttribute("spellcheck","false");D.setAttribute("autocorrect","off");D.setAttribute("autocomplete","off");D.setAttribute("autocapitalize","off");D.style.marginTop=
"6px";D.style.width=(Graph.fileSupport?460:340)-20+"px";D.style.backgroundImage="url('"+Editor.crossImage+"')";D.style.backgroundRepeat="no-repeat";D.style.backgroundPosition="100% 50%";D.style.paddingRight="14px";k=document.createElement("div");k.setAttribute("title",mxResources.get("reset"));k.style.position="relative";k.style.left="-16px";k.style.width="12px";k.style.height="14px";k.style.cursor="pointer";k.style.display="inline-block";k.style.top="3px";k.style.background="url('"+b.editor.transparentImage+
-"')";mxEvent.addListener(k,"click",function(){D.value="";D.focus()});f.appendChild(D);f.appendChild(k);G.appendChild(f);var c=A,g,l,n=function(F,K,I,R){var W="data:"==F.substring(0,5);!b.isOffline()||W&&"undefined"===typeof chrome?0<F.length&&b.spinner.spin(document.body,mxResources.get("inserting"))?b.loadImage(F,function(q){b.spinner.stop();b.hideDialog();var z=!1===R?1:null!=K&&null!=I?Math.max(K/q.width,I/q.height):Math.min(1,Math.min(520/q.width,520/q.height));t&&(F=b.convertDataUri(F));d(F,
-Math.round(Number(q.width)*z),Math.round(Number(q.height)*z),c,g,l)},function(){b.spinner.stop();d(null);b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"))}):(b.hideDialog(),d(F,null,null,c,g,l)):(F=b.convertDataUri(F),K=null==K?120:K,I=null==I?100:I,b.hideDialog(),d(F,K,I,c,g,l))},u=function(F,K){if(null!=F){var I=p?null:H.getModel().getGeometry(H.getSelectionCell());null!=I?n(F,I.width,I.height,K):n(F,null,null,K)}else b.hideDialog(),d(null)};this.init=function(){D.focus();
-if(Graph.fileSupport){D.setAttribute("placeholder",mxResources.get("dragImagesHere"));var F=G.parentNode,K=null;mxEvent.addListener(F,"dragleave",function(I){null!=K&&(K.parentNode.removeChild(K),K=null);I.stopPropagation();I.preventDefault()});mxEvent.addListener(F,"dragover",mxUtils.bind(this,function(I){null==K&&(K=b.highlightElement(F));I.stopPropagation();I.preventDefault()}));mxEvent.addListener(F,"drop",mxUtils.bind(this,function(I){null!=K&&(K.parentNode.removeChild(K),K=null);if(0<I.dataTransfer.files.length)b.importFiles(I.dataTransfer.files,
-0,0,b.maxImageSize,function(W,q,z,L,N,M,m,y){u(W,y)},function(){},function(W){return"image/"==W.type.substring(0,6)},function(W){for(var q=0;q<W.length;q++)W[q]()},!mxEvent.isControlDown(I),null,null,!0);else if(0<=mxUtils.indexOf(I.dataTransfer.types,"text/uri-list")){var R=I.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)($|\?)/i.test(R)&&u(decodeURIComponent(R))}I.stopPropagation();I.preventDefault()}),!1)}};A=document.createElement("div");A.style.marginTop="14px";A.style.textAlign=
-"center";k=mxUtils.button(mxResources.get("cancel"),function(){b.spinner.stop();b.hideDialog()});k.className="geBtn";b.editor.cancelFirst&&A.appendChild(k);ImageDialog.filePicked=function(F){F.action==google.picker.Action.PICKED&&null!=F.docs[0].thumbnails&&(F=F.docs[0].thumbnails[F.docs[0].thumbnails.length-1],null!=F&&(D.value=F.url));D.focus()};if(Graph.fileSupport){if(null==b.imgDlgFileInputElt){var x=document.createElement("input");x.setAttribute("multiple","multiple");x.setAttribute("type",
-"file");mxEvent.addListener(x,"change",function(F){null!=x.files&&(b.importFiles(x.files,0,0,b.maxImageSize,function(K,I,R,W,q,z){u(K)},function(){},function(K){return"image/"==K.type.substring(0,6)},function(K){for(var I=0;I<K.length;I++)K[I]()},!0),x.type="",x.type="file",x.value="")});x.style.display="none";document.body.appendChild(x);b.imgDlgFileInputElt=x}f=mxUtils.button(mxResources.get("open"),function(){b.imgDlgFileInputElt.click()});f.className="geBtn";A.appendChild(f)}mxEvent.addListener(D,
-"keypress",function(F){13==F.keyCode&&u(D.value)});var B=mxUtils.button(mxResources.get("crop"),function(){var F=new CropImageDialog(b,D.value,c,function(K,I,R){c=K;g=I;l=R});b.showDialog(F.container,380,390,!0,!0,null,null,null,new mxRectangle(0,0,440,450))});v&&(B.className="geBtn",A.appendChild(B));var C=mxUtils.button(mxResources.get("embed"),function(){if("data:"!=D.value.substring(0,5)&&b.spinner.spin(document.body,mxResources.get("loading"))){var F=b.editor.createImageUrlConverter().convert(D.value),
-K=new Image;K.onload=function(){b.editor.convertImageToDataUri(F,function(I){b.confirmImageResize(function(R){b.resizeImage(K,I,mxUtils.bind(this,function(W,q,z){b.spinner.stop();null!=W&&W.length<b.maxImageBytes?(D.value=W,J()):b.handleError({message:mxResources.get("imageTooBig")})}),R,b.maxImageSize)},K.width>b.maxImageSize||K.height>b.maxImageSize||I.length>b.maxImageBytes)},mxUtils.bind(this,function(){b.handleError({message:mxResources.get("fileNotFound")})}))};K.onerror=function(){b.spinner.stop();
-b.handleError({message:mxResources.get("fileNotFound")})};K.src=F}});C.className="geBtn";mxEvent.addListener(D,"change",function(F){c=null;J()});J();A.appendChild(C);v=mxUtils.button(mxResources.get("apply"),function(){u(D.value)});v.className="geBtn gePrimaryBtn";A.appendChild(v);b.editor.cancelFirst||A.appendChild(k);Graph.fileSupport&&(A.style.marginTop="120px",G.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",G.style.backgroundPosition="center 65%",G.style.backgroundRepeat="no-repeat",
-v=document.createElement("div"),v.style.position="absolute",v.style.width="420px",v.style.top="58%",v.style.textAlign="center",v.style.fontSize="18px",v.style.color="#a0c3ff",mxUtils.write(v,mxResources.get("dragImagesHere")),G.appendChild(v));G.appendChild(A);this.container=G},LinkDialog=function(b,f,k,d,p,t,v){function A(F,K){var I=document.createElement("option");mxUtils.write(I,mxResources.get(F));I.value=F;B.appendChild(I);C[F]=K}var J=document.createElement("div");J.style.height="100%";mxUtils.write(J,
+"')";mxEvent.addListener(k,"click",function(){D.value="";D.focus()});f.appendChild(D);f.appendChild(k);G.appendChild(f);var c=A,g,l,n=function(E,K,I,T){var W="data:"==E.substring(0,5);!b.isOffline()||W&&"undefined"===typeof chrome?0<E.length&&b.spinner.spin(document.body,mxResources.get("inserting"))?b.loadImage(E,function(q){b.spinner.stop();b.hideDialog();var z=!1===T?1:null!=K&&null!=I?Math.max(K/q.width,I/q.height):Math.min(1,Math.min(520/q.width,520/q.height));t&&(E=b.convertDataUri(E));d(E,
+Math.round(Number(q.width)*z),Math.round(Number(q.height)*z),c,g,l)},function(){b.spinner.stop();d(null);b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"))}):(b.hideDialog(),d(E,null,null,c,g,l)):(E=b.convertDataUri(E),K=null==K?120:K,I=null==I?100:I,b.hideDialog(),d(E,K,I,c,g,l))},u=function(E,K){if(null!=E){var I=p?null:H.getModel().getGeometry(H.getSelectionCell());null!=I?n(E,I.width,I.height,K):n(E,null,null,K)}else b.hideDialog(),d(null)};this.init=function(){D.focus();
+if(Graph.fileSupport){D.setAttribute("placeholder",mxResources.get("dragImagesHere"));var E=G.parentNode,K=null;mxEvent.addListener(E,"dragleave",function(I){null!=K&&(K.parentNode.removeChild(K),K=null);I.stopPropagation();I.preventDefault()});mxEvent.addListener(E,"dragover",mxUtils.bind(this,function(I){null==K&&(K=b.highlightElement(E));I.stopPropagation();I.preventDefault()}));mxEvent.addListener(E,"drop",mxUtils.bind(this,function(I){null!=K&&(K.parentNode.removeChild(K),K=null);if(0<I.dataTransfer.files.length)b.importFiles(I.dataTransfer.files,
+0,0,b.maxImageSize,function(W,q,z,L,N,M,m,y){u(W,y)},function(){},function(W){return"image/"==W.type.substring(0,6)},function(W){for(var q=0;q<W.length;q++)W[q]()},!mxEvent.isControlDown(I),null,null,!0);else if(0<=mxUtils.indexOf(I.dataTransfer.types,"text/uri-list")){var T=I.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)($|\?)/i.test(T)&&u(decodeURIComponent(T))}I.stopPropagation();I.preventDefault()}),!1)}};A=document.createElement("div");A.style.marginTop="14px";A.style.textAlign=
+"center";k=mxUtils.button(mxResources.get("cancel"),function(){b.spinner.stop();b.hideDialog()});k.className="geBtn";b.editor.cancelFirst&&A.appendChild(k);ImageDialog.filePicked=function(E){E.action==google.picker.Action.PICKED&&null!=E.docs[0].thumbnails&&(E=E.docs[0].thumbnails[E.docs[0].thumbnails.length-1],null!=E&&(D.value=E.url));D.focus()};if(Graph.fileSupport){if(null==b.imgDlgFileInputElt){var x=document.createElement("input");x.setAttribute("multiple","multiple");x.setAttribute("type",
+"file");mxEvent.addListener(x,"change",function(E){null!=x.files&&(b.importFiles(x.files,0,0,b.maxImageSize,function(K,I,T,W,q,z){u(K)},function(){},function(K){return"image/"==K.type.substring(0,6)},function(K){for(var I=0;I<K.length;I++)K[I]()},!0),x.type="",x.type="file",x.value="")});x.style.display="none";document.body.appendChild(x);b.imgDlgFileInputElt=x}f=mxUtils.button(mxResources.get("open"),function(){b.imgDlgFileInputElt.click()});f.className="geBtn";A.appendChild(f)}mxEvent.addListener(D,
+"keypress",function(E){13==E.keyCode&&u(D.value)});var B=mxUtils.button(mxResources.get("crop"),function(){var E=new CropImageDialog(b,D.value,c,function(K,I,T){c=K;g=I;l=T});b.showDialog(E.container,380,390,!0,!0,null,null,null,new mxRectangle(0,0,440,450))});v&&(B.className="geBtn",A.appendChild(B));var C=mxUtils.button(mxResources.get("embed"),function(){if("data:"!=D.value.substring(0,5)&&b.spinner.spin(document.body,mxResources.get("loading"))){var E=b.editor.createImageUrlConverter().convert(D.value),
+K=new Image;K.onload=function(){b.editor.convertImageToDataUri(E,function(I){b.confirmImageResize(function(T){b.resizeImage(K,I,mxUtils.bind(this,function(W,q,z){b.spinner.stop();null!=W&&W.length<b.maxImageBytes?(D.value=W,J()):b.handleError({message:mxResources.get("imageTooBig")})}),T,b.maxImageSize)},K.width>b.maxImageSize||K.height>b.maxImageSize||I.length>b.maxImageBytes)},mxUtils.bind(this,function(){b.handleError({message:mxResources.get("fileNotFound")})}))};K.onerror=function(){b.spinner.stop();
+b.handleError({message:mxResources.get("fileNotFound")})};K.src=E}});C.className="geBtn";mxEvent.addListener(D,"change",function(E){c=null;J()});J();A.appendChild(C);v=mxUtils.button(mxResources.get("apply"),function(){u(D.value)});v.className="geBtn gePrimaryBtn";A.appendChild(v);b.editor.cancelFirst||A.appendChild(k);Graph.fileSupport&&(A.style.marginTop="120px",G.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",G.style.backgroundPosition="center 65%",G.style.backgroundRepeat="no-repeat",
+v=document.createElement("div"),v.style.position="absolute",v.style.width="420px",v.style.top="58%",v.style.textAlign="center",v.style.fontSize="18px",v.style.color="#a0c3ff",mxUtils.write(v,mxResources.get("dragImagesHere")),G.appendChild(v));G.appendChild(A);this.container=G},LinkDialog=function(b,f,k,d,p,t,v){function A(E,K){var I=document.createElement("option");mxUtils.write(I,mxResources.get(E));I.value=E;B.appendChild(I);C[E]=K}var J=document.createElement("div");J.style.height="100%";mxUtils.write(J,
mxResources.get("editLink")+":");var H=document.createElement("div");H.className="geUrlLinkContainer";H.style.backgroundColor="transparent";H.style.borderColor="transparent";H.style.whiteSpace="nowrap";H.style.textOverflow="clip";H.style.cursor="default";var G=document.createElement("input");G.setAttribute("placeholder",mxResources.get("dragUrlsHere"));G.setAttribute("type","text");G.style.marginTop="6px";G.style.width="414px";G.style.boxSizing="border-box";G.style.backgroundRepeat="no-repeat";G.style.backgroundPosition=
"100% 50%";G.style.paddingRight="16px";G.style.marginBottom="4px";var D=document.createElement("div");D.setAttribute("title",mxResources.get("reset"));D.style.backgroundImage="url("+Editor.crossImage+")";D.className="geAdaptiveAsset";D.style.display="inline-block";D.style.position="relative";D.style.top="3px";D.style.left="-16px";D.style.width="12px";D.style.height="14px";D.style.cursor="pointer";mxEvent.addListener(D,"click",function(){G.value="";G.focus()});var c=document.createElement("input");
c.style.cssText="margin-right:8px;margin-bottom:8px;";c.setAttribute("value","url");c.setAttribute("type","radio");c.setAttribute("name","geLinkDialogOption");var g=document.createElement("input");g.style.cssText="margin-right:8px;margin-bottom:8px;";g.setAttribute("value","url");g.setAttribute("type","radio");g.setAttribute("name","geLinkDialogOption");var l=document.createElement("select");l.style.width="414px";var n=document.createElement("input");n.setAttribute("type","checkbox");n.style.margin=
"0 6p 0 6px";null!=v&&(n.setAttribute("checked","checked"),n.defaultChecked=!0);v=null!=v?v:"_blank";n.setAttribute("title",v);t&&(G.style.width="200px");if(p&&null!=b.pages){null!=f&&Graph.isPageLink(f)?(g.setAttribute("checked","checked"),g.defaultChecked=!0):(G.setAttribute("value",f),c.setAttribute("checked","checked"),c.defaultChecked=!0);H.appendChild(c);H.appendChild(G);H.appendChild(D);t&&(H.appendChild(n),mxUtils.write(H,mxResources.get("openInNewWindow")));mxUtils.br(H);H.appendChild(g);
p=!1;for(t=0;t<b.pages.length;t++)D=document.createElement("option"),mxUtils.write(D,b.pages[t].getName()||mxResources.get("pageWithNumber",[t+1])),D.setAttribute("value","data:page/id,"+b.pages[t].getId()),f==D.getAttribute("value")&&(D.setAttribute("selected","selected"),p=!0),l.appendChild(D);if(!p&&g.checked){var u=document.createElement("option");mxUtils.write(u,mxResources.get("pageNotFound"));u.setAttribute("disabled","disabled");u.setAttribute("selected","selected");u.setAttribute("value",
"pageNotFound");l.appendChild(u);mxEvent.addListener(l,"change",function(){null==u.parentNode||u.selected||u.parentNode.removeChild(u)})}H.appendChild(l)}else G.setAttribute("value",f),H.appendChild(G),H.appendChild(D);J.appendChild(H);var x=mxUtils.button(k,function(){b.hideDialog();d(g.checked?"pageNotFound"!==l.value?l.value:f:G.value,LinkDialog.selectedDocs,n.checked?v:null)});x.style.verticalAlign="middle";x.className="geBtn gePrimaryBtn";this.init=function(){g.checked?l.focus():(G.focus(),mxClient.IS_GC||
-mxClient.IS_FF||5<=document.documentMode?G.select():document.execCommand("selectAll",!1,null));mxEvent.addListener(l,"focus",function(){c.removeAttribute("checked");g.setAttribute("checked","checked");g.checked=!0});mxEvent.addListener(G,"focus",function(){g.removeAttribute("checked");c.setAttribute("checked","checked");c.checked=!0});if(Graph.fileSupport){var F=J.parentNode,K=null;mxEvent.addListener(F,"dragleave",function(I){null!=K&&(K.parentNode.removeChild(K),K=null);I.stopPropagation();I.preventDefault()});
-mxEvent.addListener(F,"dragover",mxUtils.bind(this,function(I){null==K&&(K=b.highlightElement(F));I.stopPropagation();I.preventDefault()}));mxEvent.addListener(F,"drop",mxUtils.bind(this,function(I){try{null!=K&&(K.parentNode.removeChild(K),K=null),0<=mxUtils.indexOf(I.dataTransfer.types,"text/uri-list")&&(G.value=decodeURIComponent(I.dataTransfer.getData("text/uri-list")),c.setAttribute("checked","checked"),c.checked=!0,x.click())}catch(R){b.handleError(R)}I.stopPropagation();I.preventDefault()}),
-!1)}};k=document.createElement("div");k.style.marginTop="16px";k.style.textAlign="right";b.isOffline()||k.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/custom-links"));H=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});H.style.verticalAlign="middle";H.className="geBtn";b.editor.cancelFirst&&k.appendChild(H);LinkDialog.selectedDocs=null;LinkDialog.filePicked=function(F){if(F.action==google.picker.Action.PICKED){LinkDialog.selectedDocs=F.docs;var K=F.docs[0].url;"application/mxe"==
-F.docs[0].mimeType||null!=F.docs[0].mimeType&&"application/vnd.jgraph."==F.docs[0].mimeType.substring(0,23)?K="https://app.diagrams.net/#G"+F.docs[0].id:"application/vnd.google-apps.folder"==F.docs[0].mimeType&&(K="https://drive.google.com/#folders/"+F.docs[0].id);G.value=K;G.focus()}else LinkDialog.selectedDocs=null;G.focus()};var B=document.createElement("select");B.className="geBtn";B.style.position="relative";B.style.top="1px";B.style.maxWidth="120px";var C={};p=document.createElement("option");
-mxUtils.write(p,mxResources.get("select")+"...");p.value="";B.appendChild(p);"undefined"!=typeof google&&"undefined"!=typeof google.picker&&null!=b.drive&&A("googleDrive",function(){b.spinner.spin(document.body,mxResources.get("authorizing"))&&b.drive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();if(null==b.linkPicker){var F=b.drive.createLinkPicker();b.linkPicker=F.setCallback(function(K){LinkDialog.filePicked(K)}).build()}b.linkPicker.setVisible(!0)}))});"undefined"!=typeof Dropbox&&
-"undefined"!=typeof Dropbox.choose&&A("dropbox",function(){Dropbox.choose({linkType:"direct",cancel:function(){},success:function(F){G.value=F[0].link;G.focus()}})});null!=b.oneDrive&&A("oneDrive",function(){b.oneDrive.pickFile(function(F,K){null!=K&&null!=K.value&&0<K.value.length&&(G.value=K.value[0].webUrl,G.focus())},!0)});null!=b.gitHub&&A("github",function(){b.gitHub.pickFile(function(F){if(null!=F){F=F.split("/");var K=F[0],I=F[1],R=F[2];F=F.slice(3,F.length).join("/");G.value="https://github.com/"+
-K+"/"+I+"/blob/"+R+"/"+F;G.focus()}})});null!=b.gitLab&&A("gitlab",function(){b.gitLab.pickFile(function(F){if(null!=F){F=F.split("/");var K=F[0],I=F[1],R=F[2];F=F.slice(3,F.length).join("/");G.value=DRAWIO_GITLAB_URL+"/"+K+"/"+I+"/blob/"+R+"/"+F;G.focus()}})});1<B.children.length&&(k.appendChild(B),mxEvent.addListener(B,"change",function(F){null!=C[B.value]&&(C[B.value](),B.value="")}));mxEvent.addListener(G,"keypress",function(F){13==F.keyCode&&x.click()});k.appendChild(x);b.editor.cancelFirst||
+mxClient.IS_FF||5<=document.documentMode?G.select():document.execCommand("selectAll",!1,null));mxEvent.addListener(l,"focus",function(){c.removeAttribute("checked");g.setAttribute("checked","checked");g.checked=!0});mxEvent.addListener(G,"focus",function(){g.removeAttribute("checked");c.setAttribute("checked","checked");c.checked=!0});if(Graph.fileSupport){var E=J.parentNode,K=null;mxEvent.addListener(E,"dragleave",function(I){null!=K&&(K.parentNode.removeChild(K),K=null);I.stopPropagation();I.preventDefault()});
+mxEvent.addListener(E,"dragover",mxUtils.bind(this,function(I){null==K&&(K=b.highlightElement(E));I.stopPropagation();I.preventDefault()}));mxEvent.addListener(E,"drop",mxUtils.bind(this,function(I){try{null!=K&&(K.parentNode.removeChild(K),K=null),0<=mxUtils.indexOf(I.dataTransfer.types,"text/uri-list")&&(G.value=decodeURIComponent(I.dataTransfer.getData("text/uri-list")),c.setAttribute("checked","checked"),c.checked=!0,x.click())}catch(T){b.handleError(T)}I.stopPropagation();I.preventDefault()}),
+!1)}};k=document.createElement("div");k.style.marginTop="16px";k.style.textAlign="right";b.isOffline()||k.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/custom-links"));H=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});H.style.verticalAlign="middle";H.className="geBtn";b.editor.cancelFirst&&k.appendChild(H);LinkDialog.selectedDocs=null;LinkDialog.filePicked=function(E){if(E.action==google.picker.Action.PICKED){LinkDialog.selectedDocs=E.docs;var K=E.docs[0].url;"application/mxe"==
+E.docs[0].mimeType||null!=E.docs[0].mimeType&&"application/vnd.jgraph."==E.docs[0].mimeType.substring(0,23)?K="https://app.diagrams.net/#G"+E.docs[0].id:"application/vnd.google-apps.folder"==E.docs[0].mimeType&&(K="https://drive.google.com/#folders/"+E.docs[0].id);G.value=K;G.focus()}else LinkDialog.selectedDocs=null;G.focus()};var B=document.createElement("select");B.className="geBtn";B.style.position="relative";B.style.top="1px";B.style.maxWidth="120px";var C={};p=document.createElement("option");
+mxUtils.write(p,mxResources.get("select")+"...");p.value="";B.appendChild(p);"undefined"!=typeof google&&"undefined"!=typeof google.picker&&null!=b.drive&&A("googleDrive",function(){b.spinner.spin(document.body,mxResources.get("authorizing"))&&b.drive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();if(null==b.linkPicker){var E=b.drive.createLinkPicker();b.linkPicker=E.setCallback(function(K){LinkDialog.filePicked(K)}).build()}b.linkPicker.setVisible(!0)}))});"undefined"!=typeof Dropbox&&
+"undefined"!=typeof Dropbox.choose&&A("dropbox",function(){Dropbox.choose({linkType:"direct",cancel:function(){},success:function(E){G.value=E[0].link;G.focus()}})});null!=b.oneDrive&&A("oneDrive",function(){b.oneDrive.pickFile(function(E,K){null!=K&&null!=K.value&&0<K.value.length&&(G.value=K.value[0].webUrl,G.focus())},!0)});null!=b.gitHub&&A("github",function(){b.gitHub.pickFile(function(E){if(null!=E){E=E.split("/");var K=E[0],I=E[1],T=E[2];E=E.slice(3,E.length).join("/");G.value="https://github.com/"+
+K+"/"+I+"/blob/"+T+"/"+E;G.focus()}})});null!=b.gitLab&&A("gitlab",function(){b.gitLab.pickFile(function(E){if(null!=E){E=E.split("/");var K=E[0],I=E[1],T=E[2];E=E.slice(3,E.length).join("/");G.value=DRAWIO_GITLAB_URL+"/"+K+"/"+I+"/blob/"+T+"/"+E;G.focus()}})});1<B.children.length&&(k.appendChild(B),mxEvent.addListener(B,"change",function(E){null!=C[B.value]&&(C[B.value](),B.value="")}));mxEvent.addListener(G,"keypress",function(E){13==E.keyCode&&x.click()});k.appendChild(x);b.editor.cancelFirst||
k.appendChild(H);J.appendChild(k);this.container=J},RevisionDialog=function(b,f,k){var d=document.createElement("div"),p=document.createElement("h3");p.style.marginTop="3px";mxUtils.write(p,mxResources.get("revisionHistory"));d.appendChild(p);p=document.createElement("div");p.style.position="absolute";p.style.overflow="auto";p.style.width="170px";p.style.height="378px";d.appendChild(p);var t=document.createElement("div");t.style.position="absolute";t.style.left="200px";t.style.width="470px";t.style.height=
"376px";t.style.overflow="hidden";t.style.borderWidth="1px";t.style.borderStyle="solid";var v=document.createElement("div");v.style.position="absolute";v.style.display="none";v.style.textAlign="center";v.style.padding="8px";v.style.borderRadius="8px";v.style.left="50%";v.style.top="50%";v.style.whiteSpace="nowrap";v.style.transform="translate(-50%, -50%)";v.style.background="inherit";v.style.border="1px solid";t.appendChild(v);mxEvent.disableContextMenu(t);d.appendChild(t);var A=new Graph(t);A.setTooltips(!1);
A.setEnabled(!1);A.setPanning(!0);A.panningHandler.ignoreCell=!0;A.panningHandler.useLeftButtonForPanning=!0;A.minFitScale=null;A.maxFitScale=null;A.centerZoom=!0;var J=0,H=null,G=0,D=A.getGlobalVariable;A.getGlobalVariable=function(X){return"page"==X&&null!=H&&null!=H[G]?H[G].getAttribute("name"):"pagenumber"==X?G+1:"pagecount"==X?null!=H?H.length:1:D.apply(this,arguments)};A.getLinkForCell=function(){return null};for(var c=new Spinner({lines:11,length:15,width:6,radius:10,corners:1,rotate:0,direction:1,
-color:"light-dark(#000000, #C0C0C0)",speed:1.4,trail:60,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2E9,top:"50%",left:"50%"}),g=b.getCurrentFile(),l=b.getXmlFileData(!0,!1,!0).getElementsByTagName("diagram"),n={},u=0;u<l.length;u++)n[l[u].getAttribute("id")]=l[u];var x=null,B=null,C=null,F=null,K=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){null!=C&&A.zoomIn()},20);K.setAttribute("disabled","disabled");var I=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),
-function(){null!=C&&A.zoomOut()},20);I.setAttribute("disabled","disabled");var R=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){null!=C&&(1==A.view.scale?(A.maxFitScale=8,A.fit(8)):A.zoomActual(),A.center())},20);R.setAttribute("disabled","disabled");var W=b.createToolbarButton(Editor.compareImage,mxResources.get("compare"));W.setAttribute("disabled","disabled");var q=b.createToolbarButton(Editor.thinDataImage,mxResources.get("merge"));q.setAttribute("disabled","disabled");
+color:"light-dark(#000000, #C0C0C0)",speed:1.4,trail:60,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2E9,top:"50%",left:"50%"}),g=b.getCurrentFile(),l=b.getXmlFileData(!0,!1,!0).getElementsByTagName("diagram"),n={},u=0;u<l.length;u++)n[l[u].getAttribute("id")]=l[u];var x=null,B=null,C=null,E=null,K=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){null!=C&&A.zoomIn()},20);K.setAttribute("disabled","disabled");var I=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),
+function(){null!=C&&A.zoomOut()},20);I.setAttribute("disabled","disabled");var T=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){null!=C&&(1==A.view.scale?(A.maxFitScale=8,A.fit(8)):A.zoomActual(),A.center())},20);T.setAttribute("disabled","disabled");var W=b.createToolbarButton(Editor.compareImage,mxResources.get("compare"));W.setAttribute("disabled","disabled");var q=b.createToolbarButton(Editor.thinDataImage,mxResources.get("merge"));q.setAttribute("disabled","disabled");
var z=t.cloneNode(!1);z.style.pointerEvent="none";t.parentNode.appendChild(z);var L=new Graph(z);L.setTooltips(!1);L.setEnabled(!1);L.setPanning(!0);L.panningHandler.ignoreCell=!0;L.panningHandler.useLeftButtonForPanning=!0;L.minFitScale=null;L.maxFitScale=null;L.centerZoom=!0;var N=document.createElement("div");N.style.textAlign="left";N.style.color="gray";N.style.backgroundColor="transparent";N.style.overflow="hidden";N.style.textOverflow="ellipsis";N.style.whiteSpace="nowrap";N.style.cursor="default";
N.style.height="100%";N.style.display="inline-flex";N.style.alignItems="center";N.style.flexGrow="1";mxEvent.addListener(N,"click",function(){var X=mxUtils.getTextContent(N);""!=X&&b.alert(X)});var M=null;mxEvent.addGestureListeners(W,function(X){try{var Z=null!=H[J]?n[H[J].getAttribute("id")]:null;mxUtils.setOpacity(W,20);v.innerText="";if(null==Z)v.style.display="inline-block",mxUtils.write(v,mxResources.get("pageNotFound"));else{M=N.innerHTML;N.innerHTML=mxResources.get("current");t.style.display=
"none";z.style.display="";z.style.backgroundColor=t.style.backgroundColor;var aa=Editor.parseDiagramNode(Z);(new mxCodec(aa.ownerDocument)).decode(aa,L.getModel());L.view.scaleAndTranslate(A.view.scale,A.view.translate.x,A.view.translate.y);L.mathEnabled="1"==aa.getAttribute("math");L.setAdaptiveColors(aa.getAttribute("adaptiveColors"));Editor.MathJaxRender&&L.mathEnabled&&Editor.MathJaxRender(L.container)}}catch(da){v.style.display="inline-block",v.innerText="",mxUtils.write(v,mxResources.get("pageNotFound")+
": "+da.message)}},null,function(){mxUtils.setOpacity(W,60);v.style.display="none";v.innerText="";"none"==t.style.display&&(t.style.display="",N.innerHTML=M,z.style.display="none")});mxEvent.addListener(q,"click",mxUtils.bind(this,function(X){if(null!=C){X=b.getPagesForNode(C.documentElement);var Z=b.diffPages(b.pages,X);X=new TextareaDialog(b,mxResources.get("merge")+":",JSON.stringify(Z,null,2),function(aa){try{if(0<aa.length&&b.editor.graph.isEnabled()){var da=[JSON.parse(aa)];b.confirm(mxResources.get("areYouSure"),
function(){try{g.patch(da,null,!0,!0),b.hideDialog(),b.hideDialog()}catch(fa){b.handleError(fa)}})}else b.hideDialog()}catch(fa){b.handleError(fa)}},null,null,null,null,function(aa,da){if(null!=Z[EditorUi.DIFF_UPDATE]){var fa=document.createElement("select"),ba=document.createElement("option");mxUtils.write(ba,mxResources.get("allPages"));ba.setAttribute("value","allPages");fa.appendChild(ba);for(var ia in Z[EditorUi.DIFF_UPDATE]){ba=document.createElement("option");var la=b.getPageById(ia);null!=
la&&(mxUtils.write(ba,la.getName()),ba.setAttribute("value","page-"+ia),fa.appendChild(ba))}fa.style.marginRight="8px";fa.style.order="-1";mxEvent.addListener(fa,"change",function(ka){ka=null;if("allPages"!=fa.value){var pa=fa.value.substring(5);null!=Z[EditorUi.DIFF_UPDATE][pa]&&(ka={},ka[EditorUi.DIFF_UPDATE]={},ka[EditorUi.DIFF_UPDATE][pa]=Z[EditorUi.DIFF_UPDATE][pa])}da.value=JSON.stringify(null==ka?Z:ka,null,2)});2<fa.children.length&&aa.appendChild(fa)}},!0,null,mxResources.get(b.editor.graph.isEnabled()?
-"merge":"close"));b.showDialog(X.container,620,460,!0,!0);X.init()}}));var m=mxUtils.button(mxResources.get("restore"),function(X){null!=C&&null!=F&&b.confirm(mxResources.get("areYouSure"),function(){null!=k?k(F):b.spinner.spin(document.body,mxResources.get("restoring"))&&(m.setAttribute("disabled","disabled"),g.save(!0,function(Z){b.spinner.stop();m.removeAttribute("disabled");b.replaceFileData(F);b.hideDialog()},function(Z){b.spinner.stop();m.removeAttribute("disabled");b.clearStatus();b.handleError(Z,
-null!=Z?mxResources.get("errorSavingFile"):null)}))})});m.className="geBtn gePrimaryBtn";m.setAttribute("disabled","disabled");var y=document.createElement("select");y.setAttribute("disabled","disabled");y.style.userSelect="none";y.style.maxWidth="100px";y.style.marginLeft="10px";y.style.display="none";var E=null;mxEvent.addListener(y,"change",function(X){null!=E&&(E(X),mxEvent.consume(X))});var P=mxUtils.button(mxResources.get("open"),function(){null!=C&&(window.openFile=new OpenFile(function(){window.openFile=
+"merge":"close"));b.showDialog(X.container,620,460,!0,!0);X.init()}}));var m=mxUtils.button(mxResources.get("restore"),function(X){null!=C&&null!=E&&b.confirm(mxResources.get("areYouSure"),function(){null!=k?k(E):b.spinner.spin(document.body,mxResources.get("restoring"))&&(m.setAttribute("disabled","disabled"),g.save(!0,function(Z){b.spinner.stop();m.removeAttribute("disabled");b.replaceFileData(E);b.hideDialog()},function(Z){b.spinner.stop();m.removeAttribute("disabled");b.clearStatus();b.handleError(Z,
+null!=Z?mxResources.get("errorSavingFile"):null)}))})});m.className="geBtn gePrimaryBtn";m.setAttribute("disabled","disabled");var y=document.createElement("select");y.setAttribute("disabled","disabled");y.style.userSelect="none";y.style.maxWidth="100px";y.style.marginLeft="10px";y.style.display="none";var F=null;mxEvent.addListener(y,"change",function(X){null!=F&&(F(X),mxEvent.consume(X))});var P=mxUtils.button(mxResources.get("open"),function(){null!=C&&(window.openFile=new OpenFile(function(){window.openFile=
null}),window.openFile.setData(mxUtils.getXml(C.documentElement)),b.openLink(b.getUrl(),null,!0))});P.className="geBtn";P.setAttribute("disabled","disabled");var O=mxUtils.button(mxResources.get("createRevision"),function(){b.actions.get("save").funct(!1)});O.className="geBtn";O.setAttribute("disabled","disabled");null!=k&&(P.style.display="none");l=document.createElement("div");l.style.position="absolute";l.style.top="482px";l.style.right="28px";l.style.left="32px";l.style.justifyContent="end";l.style.display=
-"flex";var T=document.createElement("div");T.className="geToolbarContainer";T.style.backgroundColor="transparent";T.style.left="32px";T.style.right="32px";T.style.border="none";T.style.top="442px";var V=null;if(null!=f&&0<f.length){t.style.cursor="move";var Q=document.createElement("table");Q.style.borderWidth="1px";Q.style.borderStyle="solid";Q.style.borderCollapse="collapse";Q.style.borderSpacing="0px";Q.style.width="100%";var S=document.createElement("tbody"),U=(new Date).toDateString();null!=
+"flex";var S=document.createElement("div");S.className="geToolbarContainer";S.style.backgroundColor="transparent";S.style.left="32px";S.style.right="32px";S.style.border="none";S.style.top="442px";var V=null;if(null!=f&&0<f.length){t.style.cursor="move";var Q=document.createElement("table");Q.style.borderWidth="1px";Q.style.borderStyle="solid";Q.style.borderCollapse="collapse";Q.style.borderSpacing="0px";Q.style.width="100%";var R=document.createElement("tbody"),U=(new Date).toDateString();null!=
b.currentPage&&null!=b.pages&&(J=mxUtils.indexOf(b.pages,b.currentPage));for(u=f.length-1;0<=u;u--){var Y=function(X){var Z=new Date(X.modifiedDate),aa=null;if(0<=Z.getTime()){var da=function(ba){c.stop();v.innerText="";var ia=mxUtils.parseXml(ba),la=b.editor.extractGraphModel(ia.documentElement,!0);if(null!=la){var ka=function(ya){null!=ya&&(ya=pa(Editor.parseDiagramNode(ya)));return ya},pa=function(ya){var ua=ya.getAttribute("background");if(null==ua||""==ua||ua==mxConstants.NONE)ua=A.defaultPageBackgroundColor;
-t.style.backgroundColor=mxUtils.getLightDarkColor(ua);(new mxCodec(ya.ownerDocument)).decode(ya,A.getModel());A.maxFitScale=1;A.fit(8);A.center();A.mathEnabled="1"==ya.getAttribute("math");A.setAdaptiveColors(ya.getAttribute("adaptiveColors"));Editor.MathJaxRender&&A.mathEnabled&&Editor.MathJaxRender(A.container);return ya};y.style.display="none";y.innerText="";C=ia;F=ba;H=parseSelectFunction=null;G=0;if("mxfile"==la.nodeName){ia=la.getElementsByTagName("diagram");H=[];for(ba=0;ba<ia.length;ba++)H.push(ia[ba]);
+t.style.backgroundColor=mxUtils.getLightDarkColor(ua);(new mxCodec(ya.ownerDocument)).decode(ya,A.getModel());A.maxFitScale=1;A.fit(8);A.center();A.mathEnabled="1"==ya.getAttribute("math");A.setAdaptiveColors(ya.getAttribute("adaptiveColors"));Editor.MathJaxRender&&A.mathEnabled&&Editor.MathJaxRender(A.container);return ya};y.style.display="none";y.innerText="";C=ia;E=ba;H=parseSelectFunction=null;G=0;if("mxfile"==la.nodeName){ia=la.getElementsByTagName("diagram");H=[];for(ba=0;ba<ia.length;ba++)H.push(ia[ba]);
G=Math.min(J,H.length-1);0<H.length&&ka(H[G]);if(1<H.length)for(y.removeAttribute("disabled"),y.style.display="",ba=0;ba<H.length;ba++){ia=document.createElement("option");ia.setAttribute("title",Ba+" ("+H[ba].getAttribute("id")+")");ia.setAttribute("value",ba);var Ba=H[ba].getAttribute("name")||mxResources.get("pageWithNumber",[ba+1]);la=b.getPageById(H[ba].getAttribute("id"));var sa="";if(null!=la){var ja=new DiagramPage(H[ba]);b.getHashValueForPages([la])!=b.getHashValueForPages([ja])&&(sa=" (M)")}else sa=
-" (X)";mxUtils.write(ia,Ba+sa);ba==G&&ia.setAttribute("selected","selected");y.appendChild(ia)}E=function(){try{var ya=parseInt(y.value);G=J=ya;ka(H[ya])}catch(ua){y.value=J,b.handleError(ua)}}}else pa(la);Ba=X.lastModifyingUserName;null!=Ba&&20<Ba.length&&(Ba=Ba.substring(0,20)+"...");N.innerText="";mxUtils.write(N,(null!=Ba?Ba+" ":"")+Z.toLocaleDateString()+" "+Z.toLocaleTimeString());N.setAttribute("title",aa.getAttribute("title"));K.removeAttribute("disabled");I.removeAttribute("disabled");R.removeAttribute("disabled");
-W.removeAttribute("disabled");q.removeAttribute("disabled");null!=g&&g.isRestricted()||(b.editor.graph.isEnabled()&&m.removeAttribute("disabled"),P.removeAttribute("disabled"),O.removeAttribute("disabled"));mxUtils.setOpacity(K,60);mxUtils.setOpacity(I,60);mxUtils.setOpacity(R,60);mxUtils.setOpacity(W,60);mxUtils.setOpacity(q,60)}else y.style.display="none",y.innerText="",N.innerText="",v.innerText="",mxUtils.write(N,mxResources.get("errorLoadingFile")),mxUtils.write(v,mxResources.get("errorLoadingFile"))};
+" (X)";mxUtils.write(ia,Ba+sa);ba==G&&ia.setAttribute("selected","selected");y.appendChild(ia)}F=function(){try{var ya=parseInt(y.value);G=J=ya;ka(H[ya])}catch(ua){y.value=J,b.handleError(ua)}}}else pa(la);Ba=X.lastModifyingUserName;null!=Ba&&20<Ba.length&&(Ba=Ba.substring(0,20)+"...");N.innerText="";mxUtils.write(N,(null!=Ba?Ba+" ":"")+Z.toLocaleDateString()+" "+Z.toLocaleTimeString());N.setAttribute("title",aa.getAttribute("title"));K.removeAttribute("disabled");I.removeAttribute("disabled");T.removeAttribute("disabled");
+W.removeAttribute("disabled");q.removeAttribute("disabled");null!=g&&g.isRestricted()||(b.editor.graph.isEnabled()&&m.removeAttribute("disabled"),P.removeAttribute("disabled"),O.removeAttribute("disabled"));mxUtils.setOpacity(K,60);mxUtils.setOpacity(I,60);mxUtils.setOpacity(T,60);mxUtils.setOpacity(W,60);mxUtils.setOpacity(q,60)}else y.style.display="none",y.innerText="",N.innerText="",v.innerText="",mxUtils.write(N,mxResources.get("errorLoadingFile")),mxUtils.write(v,mxResources.get("errorLoadingFile"))};
aa=document.createElement("tr");aa.style.borderBottomWidth="1px";aa.style.borderBottomStyle="solid";aa.style.fontSize="12px";aa.style.cursor="pointer";var fa=document.createElement("td");fa.style.padding="6px";fa.style.whiteSpace="nowrap";X==f[f.length-1]?mxUtils.write(fa,mxResources.get("current")):Z.toDateString()===U?mxUtils.write(fa,Z.toLocaleTimeString()):mxUtils.write(fa,Z.toLocaleDateString()+" "+Z.toLocaleTimeString());aa.appendChild(fa);aa.setAttribute("title",Z.toLocaleDateString()+" "+
-Z.toLocaleTimeString()+(null!=X.fileSize?" "+b.formatFileSize(parseInt(X.fileSize)):"")+(null!=X.lastModifyingUserName?" "+X.lastModifyingUserName:""));mxEvent.addListener(aa,"click",function(ba){B!=X&&(c.stop(),null!=x&&(x.style.backgroundColor=""),B=X,x=aa,x.style.backgroundColor="light-dark(#ebf2f9, #000000)",F=C=null,N.removeAttribute("title"),N.innerText=mxResources.get("loading")+"...",t.style.backgroundColor=A.defaultPageBackgroundColor,v.innerText="",A.getModel().clear(),m.setAttribute("disabled",
-"disabled"),K.setAttribute("disabled","disabled"),I.setAttribute("disabled","disabled"),R.setAttribute("disabled","disabled"),W.setAttribute("disabled","disabled"),q.setAttribute("disabled","disabled"),P.setAttribute("disabled","disabled"),y.setAttribute("disabled","disabled"),mxUtils.setOpacity(K,20),mxUtils.setOpacity(I,20),mxUtils.setOpacity(R,20),mxUtils.setOpacity(W,20),mxUtils.setOpacity(q,20),c.spin(t),X.getXml(function(ia){if(B==X)try{da(ia)}catch(la){N.innerText=mxResources.get("error")+
-": "+la.message}},function(ia){c.stop();y.style.display="none";y.innerText="";N.innerText="";mxUtils.write(N,mxResources.get("errorLoadingFile"));mxUtils.write(v,mxResources.get("errorLoadingFile"))}),mxEvent.consume(ba))});mxEvent.addListener(aa,"dblclick",function(ba){P.click();window.getSelection?window.getSelection().removeAllRanges():document.selection&&document.selection.empty();mxEvent.consume(ba)},!1);S.appendChild(aa)}return aa}(f[u]);null!=Y&&u==f.length-1&&(V=Y)}Q.appendChild(S);p.appendChild(Q)}else null==
-g||null==b.drive&&g.constructor==window.DriveFile||null==b.dropbox&&g.constructor==window.DropboxFile?(t.style.display="none",T.style.display="none",mxUtils.write(p,mxResources.get("notAvailable"))):(t.style.display="none",T.style.display="none",mxUtils.write(p,mxResources.get("noRevisions")));this.init=function(){null!=V&&V.click()};p=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});p.className="geBtn";T.appendChild(N);T.appendChild(W);T.appendChild(I);T.appendChild(R);T.appendChild(K);
-T.appendChild(y);T.appendChild(q);b.editor.cancelFirst&&l.appendChild(p);l.appendChild(P);null!=g&&g.constructor==DriveFile&&l.appendChild(O);l.appendChild(m);b.editor.cancelFirst||l.appendChild(p);d.appendChild(l);d.appendChild(T);this.container=d},DraftDialog=function(b,f,k,d,p,t,v,A,J){var H=document.createElement("div"),G=document.createElement("div");G.style.marginTop="0px";G.style.whiteSpace="nowrap";G.style.overflow="auto";G.style.lineHeight="normal";mxUtils.write(G,f);H.appendChild(G);var D=
-document.createElement("select"),c=mxUtils.bind(this,function(){"-1"==D.value?(D.value=D.options[0].value,c(),b.confirm(mxResources.get("areYouSure"),null,mxUtils.bind(this,function(){var W=this,q;return $jscomp.asyncExecutePromiseGeneratorProgram(function(z){for(q=0;q<J.length;q++)p.apply(W,[q,mxUtils.bind(W,function(){})]);b.hideDialog(!0);z.jumpToEnd()})}),mxResources.get("no"),mxResources.get("yes"))):(B=mxUtils.parseXml(J[D.value].data),C=b.editor.extractGraphModel(B.documentElement,!0),F=0,
+Z.toLocaleTimeString()+(null!=X.fileSize?" "+b.formatFileSize(parseInt(X.fileSize)):"")+(null!=X.lastModifyingUserName?" "+X.lastModifyingUserName:""));mxEvent.addListener(aa,"click",function(ba){B!=X&&(c.stop(),null!=x&&(x.style.backgroundColor=""),B=X,x=aa,x.style.backgroundColor="light-dark(#ebf2f9, #000000)",E=C=null,N.removeAttribute("title"),N.innerText=mxResources.get("loading")+"...",t.style.backgroundColor=A.defaultPageBackgroundColor,v.innerText="",A.getModel().clear(),m.setAttribute("disabled",
+"disabled"),K.setAttribute("disabled","disabled"),I.setAttribute("disabled","disabled"),T.setAttribute("disabled","disabled"),W.setAttribute("disabled","disabled"),q.setAttribute("disabled","disabled"),P.setAttribute("disabled","disabled"),y.setAttribute("disabled","disabled"),mxUtils.setOpacity(K,20),mxUtils.setOpacity(I,20),mxUtils.setOpacity(T,20),mxUtils.setOpacity(W,20),mxUtils.setOpacity(q,20),c.spin(t),X.getXml(function(ia){if(B==X)try{da(ia)}catch(la){N.innerText=mxResources.get("error")+
+": "+la.message}},function(ia){c.stop();y.style.display="none";y.innerText="";N.innerText="";mxUtils.write(N,mxResources.get("errorLoadingFile"));mxUtils.write(v,mxResources.get("errorLoadingFile"))}),mxEvent.consume(ba))});mxEvent.addListener(aa,"dblclick",function(ba){P.click();window.getSelection?window.getSelection().removeAllRanges():document.selection&&document.selection.empty();mxEvent.consume(ba)},!1);R.appendChild(aa)}return aa}(f[u]);null!=Y&&u==f.length-1&&(V=Y)}Q.appendChild(R);p.appendChild(Q)}else null==
+g||null==b.drive&&g.constructor==window.DriveFile||null==b.dropbox&&g.constructor==window.DropboxFile?(t.style.display="none",S.style.display="none",mxUtils.write(p,mxResources.get("notAvailable"))):(t.style.display="none",S.style.display="none",mxUtils.write(p,mxResources.get("noRevisions")));this.init=function(){null!=V&&V.click()};p=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});p.className="geBtn";S.appendChild(N);S.appendChild(W);S.appendChild(I);S.appendChild(T);S.appendChild(K);
+S.appendChild(y);S.appendChild(q);b.editor.cancelFirst&&l.appendChild(p);l.appendChild(P);null!=g&&g.constructor==DriveFile&&l.appendChild(O);l.appendChild(m);b.editor.cancelFirst||l.appendChild(p);d.appendChild(l);d.appendChild(S);this.container=d},DraftDialog=function(b,f,k,d,p,t,v,A,J){var H=document.createElement("div"),G=document.createElement("div");G.style.marginTop="0px";G.style.whiteSpace="nowrap";G.style.overflow="auto";G.style.lineHeight="normal";mxUtils.write(G,f);H.appendChild(G);var D=
+document.createElement("select"),c=mxUtils.bind(this,function(){"-1"==D.value?(D.value=D.options[0].value,c(),b.confirm(mxResources.get("areYouSure"),null,mxUtils.bind(this,function(){var W=this,q;return $jscomp.asyncExecutePromiseGeneratorProgram(function(z){for(q=0;q<J.length;q++)p.apply(W,[q,mxUtils.bind(W,function(){})]);b.hideDialog(!0);z.jumpToEnd()})}),mxResources.get("no"),mxResources.get("yes"))):(B=mxUtils.parseXml(J[D.value].data),C=b.editor.extractGraphModel(B.documentElement,!0),E=0,
this.init())});if(null!=J){D.style.marginLeft="4px";for(f=0;f<J.length;f++){var g=document.createElement("option");g.setAttribute("value",f);var l=new Date(J[f].created),n=new Date(J[f].modified);mxUtils.write(g,l.toLocaleDateString()+" "+l.toLocaleTimeString()+" - "+(l.toDateString(),n.toDateString(),n.toLocaleDateString())+" "+n.toLocaleTimeString());D.appendChild(g)}g=document.createElement("option");g.setAttribute("value","-1");mxUtils.write(g,mxResources.get("deleteAll"));D.appendChild(g);G.appendChild(D);
mxEvent.addListener(D,"change",c)}null==k&&(k=J[0].data);var u=document.createElement("div");u.style.position="absolute";u.style.border="1px solid lightGray";u.style.marginTop="10px";u.style.left="40px";u.style.right="40px";u.style.top="46px";u.style.bottom="74px";u.style.overflow="hidden";mxEvent.disableContextMenu(u);H.appendChild(u);var x=new Graph(u);x.setEnabled(!1);x.setPanning(!0);x.shapeBackgroundColor="light-dark(#ffffff, #2a252f)";x.panningHandler.ignoreCell=!0;x.panningHandler.useLeftButtonForPanning=
-!0;x.minFitScale=null;x.maxFitScale=null;x.centerZoom=!0;var B=mxUtils.parseXml(k),C=b.editor.extractGraphModel(B.documentElement,!0),F=0,K=null,I=x.getGlobalVariable;x.getGlobalVariable=function(W){return"page"==W&&null!=K&&null!=K[F]?K[F].getAttribute("name"):"pagenumber"==W?F+1:"pagecount"==W?null!=K?K.length:1:I.apply(this,arguments)};x.getLinkForCell=function(){return null};k=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){x.zoomIn()},20);G=b.createToolbarButton(Editor.zoomOutImage,
+!0;x.minFitScale=null;x.maxFitScale=null;x.centerZoom=!0;var B=mxUtils.parseXml(k),C=b.editor.extractGraphModel(B.documentElement,!0),E=0,K=null,I=x.getGlobalVariable;x.getGlobalVariable=function(W){return"page"==W&&null!=K&&null!=K[E]?K[E].getAttribute("name"):"pagenumber"==W?E+1:"pagecount"==W?null!=K?K.length:1:I.apply(this,arguments)};x.getLinkForCell=function(){return null};k=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){x.zoomIn()},20);G=b.createToolbarButton(Editor.zoomOutImage,
mxResources.get("zoomOut"),function(){x.zoomOut()},20);f=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){1==x.view.scale?(x.maxFitScale=8,x.fit(8)):x.zoomActual();x.center()},20);v=mxUtils.button(v||mxResources.get("discard"),function(){b.confirm(mxResources.get("areYouSure"),null,mxUtils.bind(this,function(){var W=this;return $jscomp.asyncExecutePromiseGeneratorProgram(function(q){p.apply(W,[D.value,mxUtils.bind(W,function(){null!=D.parentNode&&(D.options[D.selectedIndex].parentNode.removeChild(D.options[D.selectedIndex]),
-1<D.options.length?(D.value=D.options[0].value,c()):b.hideDialog(!0))})]);q.jumpToEnd()})}),mxResources.get("no"),mxResources.get("yes"))});v.className="geBtn";var R=document.createElement("select");R.style.maxWidth="80px";R.style.position="relative";R.style.top="-2px";R.style.verticalAlign="bottom";R.style.marginRight="6px";R.style.display="none";t=mxUtils.button(t||mxResources.get("edit"),function(){d.apply(this,[D.value])});t.className="geBtn gePrimaryBtn";g=document.createElement("div");g.style.position=
+1<D.options.length?(D.value=D.options[0].value,c()):b.hideDialog(!0))})]);q.jumpToEnd()})}),mxResources.get("no"),mxResources.get("yes"))});v.className="geBtn";var T=document.createElement("select");T.style.maxWidth="80px";T.style.position="relative";T.style.top="-2px";T.style.verticalAlign="bottom";T.style.marginRight="6px";T.style.display="none";t=mxUtils.button(t||mxResources.get("edit"),function(){d.apply(this,[D.value])});t.className="geBtn gePrimaryBtn";g=document.createElement("div");g.style.position=
"absolute";g.style.bottom="30px";g.style.right="40px";g.style.textAlign="right";l=document.createElement("div");l.className="geToolbarContainer";l.style.cssText="box-shadow:none !important;background-color:transparent;padding:2px;border-style:none !important;bottom:30px;";this.init=function(){function W(N){if(null!=N){var M=N.getAttribute("background");if(null==M||""==M||M==mxConstants.NONE)M="light-dark(#ffffff, transparent)";u.style.backgroundColor=M;(new mxCodec(N.ownerDocument)).decode(N,x.getModel());
-x.maxFitScale=1;x.fit(8);x.center()}return N}function q(N){null!=N&&(N=W(Editor.parseDiagramNode(N)));return N}mxEvent.addListener(R,"change",function(N){F=parseInt(R.value);q(K[F]);mxEvent.consume(N)});if("mxfile"==C.nodeName){var z=C.getElementsByTagName("diagram");K=[];for(var L=0;L<z.length;L++)K.push(z[L]);0<K.length&&q(K[F]);R.innerText="";if(1<K.length)for(R.style.display="",L=0;L<K.length;L++)z=document.createElement("option"),mxUtils.write(z,K[L].getAttribute("name")||mxResources.get("pageWithNumber",
-[L+1])),z.setAttribute("value",L),L==F&&z.setAttribute("selected","selected"),R.appendChild(z);else R.style.display="none"}else W(C)};l.appendChild(R);l.appendChild(k);l.appendChild(G);l.appendChild(f);k=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});k.className="geBtn";A=null!=A?mxUtils.button(mxResources.get("ignore"),A):null;null!=A&&(A.className="geBtn");b.editor.cancelFirst?(g.appendChild(k),null!=A&&g.appendChild(A),g.appendChild(v),g.appendChild(t)):(g.appendChild(t),
-g.appendChild(v),null!=A&&g.appendChild(A),g.appendChild(k));H.appendChild(g);H.appendChild(l);this.container=H},FindWindow=function(b,f,k,d,p,t){function v(E,P,O){if("object"===typeof P.value&&null!=P.value.attributes){P=P.value.attributes;for(var T=0;T<P.length;T++)if("label"!=P[T].nodeName){var V=mxUtils.trim(P[T].nodeValue.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();if(null==E&&0<=V.indexOf(O)||null!=E&&E.test(V))return!0}}return!1}function A(){g?(M.removeAttribute("disabled"),m.removeAttribute("disabled")):
-(M.setAttribute("disabled","disabled"),m.setAttribute("disabled","disabled"));F.value?y.removeAttribute("disabled"):y.setAttribute("disabled","disabled")}function J(E,P,O){L.innerText="";var T=G.model.getDescendants(G.model.getRoot()),V=F.value.toLowerCase(),Q=I.checked?new RegExp(V):null,S=null;n=null;D!=V&&(D=V,c=null,l=!1);var U=null==c;if(0<V.length){if(l){l=!1;for(var Y,X=0;X<b.pages.length;X++)if(b.currentPage==b.pages[X]){Y=X;break}E=(Y+1)%b.pages.length;c=null;do l=!1,T=b.pages[E],G=b.createTemporaryGraph(G.getStylesheet()),
-b.updatePageRoot(T),G.model.setRoot(T.root),E=(E+1)%b.pages.length;while(!J(!0,P,O)&&E!=Y);c&&(c=null,O?b.editor.graph.model.execute(new SelectPage(b,T)):b.selectPage(T));l=!1;G=b.editor.graph;return J(!0,P,O)}for(X=0;X<T.length;X++){Y=G.view.getState(T[X]);P&&(U=U||Y==c);if(null!=Y&&null!=Y.cell.value&&(U||null==S)&&(G.model.isVertex(Y.cell)||G.model.isEdge(Y.cell))){null!=Y.style&&"1"==Y.style.html?(W.innerHTML=G.sanitizeHtml(G.getLabel(Y.cell)),label=mxUtils.extractTextWithWhitespace([W])):label=
-G.getLabel(Y.cell);label=mxUtils.trim(label.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();var Z=0;P&&t&&Y==c&&(label=label.substr(u),Z=u);var aa=null==K||""==K.value;if(null==Q&&(0<=label.indexOf(V)||aa&&v(Q,Y.cell,V))||null!=Q&&(Q.test(label)||aa&&v(Q,Y.cell,V)))if(t&&(null!=Q?(aa=label.match(Q),null!=aa&&0<aa.length&&(n=aa[0].toLowerCase(),u=Z+aa.index+n.length)):(n=V,u=Z+label.indexOf(V)+n.length)),U){S=Y;break}else null==S&&(S=Y)}U=U||Y==c}}if(null!=S){if(X==T.length&&R.checked)return c=
-null,l=!0,J(!0,P,O);c=S;G.scrollCellToVisible(c.cell);G.isEnabled()&&!G.isCellLocked(c.cell)?O||G.getSelectionCell()==c.cell&&1==G.getSelectionCount()||G.setSelectionCell(c.cell):G.highlightCell(c.cell)}else{if(!E&&R.checked)return l=!0,J(!0,P,O);G.isEnabled()&&!O&&G.clearSelection()}g=null!=S;t&&!E&&A();return 0==V.length||null!=S}var H=b.actions.get("findReplace"),G=b.editor.graph,D=null,c=null,g=!1,l=!1,n=null,u=0,x=1,B=document.createElement("div");B.style.userSelect="none";B.style.overflow="hidden";
-B.style.padding="10px";B.style.height="100%";var C=t?"260px":"200px",F=document.createElement("input");F.setAttribute("placeholder",mxResources.get("find"));F.setAttribute("type","text");F.style.marginTop="4px";F.style.marginBottom="6px";F.style.width=C;F.style.fontSize="12px";F.style.borderRadius="4px";F.style.padding="6px";B.appendChild(F);mxUtils.br(B);if(t){var K=document.createElement("input");K.setAttribute("placeholder",mxResources.get("replaceWith"));K.setAttribute("type","text");K.style.marginTop=
+x.maxFitScale=1;x.fit(8);x.center()}return N}function q(N){null!=N&&(N=W(Editor.parseDiagramNode(N)));return N}mxEvent.addListener(T,"change",function(N){E=parseInt(T.value);q(K[E]);mxEvent.consume(N)});if("mxfile"==C.nodeName){var z=C.getElementsByTagName("diagram");K=[];for(var L=0;L<z.length;L++)K.push(z[L]);0<K.length&&q(K[E]);T.innerText="";if(1<K.length)for(T.style.display="",L=0;L<K.length;L++)z=document.createElement("option"),mxUtils.write(z,K[L].getAttribute("name")||mxResources.get("pageWithNumber",
+[L+1])),z.setAttribute("value",L),L==E&&z.setAttribute("selected","selected"),T.appendChild(z);else T.style.display="none"}else W(C)};l.appendChild(T);l.appendChild(k);l.appendChild(G);l.appendChild(f);k=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});k.className="geBtn";A=null!=A?mxUtils.button(mxResources.get("ignore"),A):null;null!=A&&(A.className="geBtn");b.editor.cancelFirst?(g.appendChild(k),null!=A&&g.appendChild(A),g.appendChild(v),g.appendChild(t)):(g.appendChild(t),
+g.appendChild(v),null!=A&&g.appendChild(A),g.appendChild(k));H.appendChild(g);H.appendChild(l);this.container=H},FindWindow=function(b,f,k,d,p,t){function v(F,P,O){if("object"===typeof P.value&&null!=P.value.attributes){P=P.value.attributes;for(var S=0;S<P.length;S++)if("label"!=P[S].nodeName){var V=mxUtils.trim(P[S].nodeValue.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();if(null==F&&0<=V.indexOf(O)||null!=F&&F.test(V))return!0}}return!1}function A(){g?(M.removeAttribute("disabled"),m.removeAttribute("disabled")):
+(M.setAttribute("disabled","disabled"),m.setAttribute("disabled","disabled"));E.value?y.removeAttribute("disabled"):y.setAttribute("disabled","disabled")}function J(F,P,O){L.innerText="";var S=G.model.getDescendants(G.model.getRoot()),V=E.value.toLowerCase(),Q=I.checked?new RegExp(V):null,R=null;n=null;D!=V&&(D=V,c=null,l=!1);var U=null==c;if(0<V.length){if(l){l=!1;for(var Y,X=0;X<b.pages.length;X++)if(b.currentPage==b.pages[X]){Y=X;break}F=(Y+1)%b.pages.length;c=null;do l=!1,S=b.pages[F],G=b.createTemporaryGraph(G.getStylesheet()),
+b.updatePageRoot(S),G.model.setRoot(S.root),F=(F+1)%b.pages.length;while(!J(!0,P,O)&&F!=Y);c&&(c=null,O?b.editor.graph.model.execute(new SelectPage(b,S)):b.selectPage(S));l=!1;G=b.editor.graph;return J(!0,P,O)}for(X=0;X<S.length;X++){Y=G.view.getState(S[X]);P&&(U=U||Y==c);if(null!=Y&&null!=Y.cell.value&&(U||null==R)&&(G.model.isVertex(Y.cell)||G.model.isEdge(Y.cell))){null!=Y.style&&"1"==Y.style.html?(W.innerHTML=G.sanitizeHtml(G.getLabel(Y.cell)),label=mxUtils.extractTextWithWhitespace([W])):label=
+G.getLabel(Y.cell);label=mxUtils.trim(label.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();var Z=0;P&&t&&Y==c&&(label=label.substr(u),Z=u);var aa=null==K||""==K.value;if(null==Q&&(0<=label.indexOf(V)||aa&&v(Q,Y.cell,V))||null!=Q&&(Q.test(label)||aa&&v(Q,Y.cell,V)))if(t&&(null!=Q?(aa=label.match(Q),null!=aa&&0<aa.length&&(n=aa[0].toLowerCase(),u=Z+aa.index+n.length)):(n=V,u=Z+label.indexOf(V)+n.length)),U){R=Y;break}else null==R&&(R=Y)}U=U||Y==c}}if(null!=R){if(X==S.length&&T.checked)return c=
+null,l=!0,J(!0,P,O);c=R;G.scrollCellToVisible(c.cell);G.isEnabled()&&!G.isCellLocked(c.cell)?O||G.getSelectionCell()==c.cell&&1==G.getSelectionCount()||G.setSelectionCell(c.cell):G.highlightCell(c.cell)}else{if(!F&&T.checked)return l=!0,J(!0,P,O);G.isEnabled()&&!O&&G.clearSelection()}g=null!=R;t&&!F&&A();return 0==V.length||null!=R}var H=b.actions.get("findReplace"),G=b.editor.graph,D=null,c=null,g=!1,l=!1,n=null,u=0,x=1,B=document.createElement("div");B.style.userSelect="none";B.style.overflow="hidden";
+B.style.padding="10px";B.style.height="100%";var C=t?"260px":"200px",E=document.createElement("input");E.setAttribute("placeholder",mxResources.get("find"));E.setAttribute("type","text");E.style.marginTop="4px";E.style.marginBottom="6px";E.style.width=C;E.style.fontSize="12px";E.style.borderRadius="4px";E.style.padding="6px";B.appendChild(E);mxUtils.br(B);if(t){var K=document.createElement("input");K.setAttribute("placeholder",mxResources.get("replaceWith"));K.setAttribute("type","text");K.style.marginTop=
"4px";K.style.marginBottom="6px";K.style.width=C;K.style.fontSize="12px";K.style.borderRadius="4px";K.style.padding="6px";B.appendChild(K);mxUtils.br(B);mxEvent.addListener(K,"input",A)}var I=document.createElement("input");I.setAttribute("id","geFindWinRegExChck");I.setAttribute("type","checkbox");I.style.marginRight="4px";B.appendChild(I);C=document.createElement("label");C.setAttribute("for","geFindWinRegExChck");B.appendChild(C);mxUtils.write(C,mxResources.get("regularExpression"));B.appendChild(C);
-C=b.menus.createHelpLink("https://www.drawio.com/doc/faq/find-shapes");C.style.position="relative";C.style.marginLeft="6px";B.appendChild(C);mxUtils.br(B);var R=document.createElement("input");R.setAttribute("id","geFindWinAllPagesChck");R.setAttribute("type","checkbox");R.style.marginRight="4px";B.appendChild(R);C=document.createElement("label");C.setAttribute("for","geFindWinAllPagesChck");B.appendChild(C);mxUtils.write(C,mxResources.get("allPages"));B.appendChild(C);var W=document.createElement("div");
-mxUtils.br(B);C=document.createElement("div");C.style.left="0px";C.style.right="0px";C.style.marginTop="6px";C.style.padding="0 6px 0 6px";B.appendChild(C);var q=mxUtils.button(mxResources.get("reset"),function(){L.innerText="";F.value="";F.style.backgroundColor="";t&&(K.value="",A());D=c=null;l=!1;F.focus()});q.setAttribute("title",mxResources.get("reset"));q.style.float="none";q.style.width="120px";q.style.marginTop="6px";q.style.marginLeft="8px";q.style.overflow="hidden";q.style.textOverflow="ellipsis";
-q.className="geBtn";t||C.appendChild(q);var z=mxUtils.button(mxResources.get("find"),function(){try{F.style.backgroundColor=J()?"":"light-dark(#ffcfcf, #ff0000)"}catch(E){b.handleError(E)}});z.setAttribute("title",mxResources.get("find")+" (Enter)");z.style.float="none";z.style.width="120px";z.style.marginTop="6px";z.style.marginLeft="8px";z.style.overflow="hidden";z.style.textOverflow="ellipsis";z.className="geBtn gePrimaryBtn";C.appendChild(z);var L=document.createElement("div");L.style.marginTop=
-"10px";if(t){var N=function(E,P,O,T,V){if(null==V||"1"!=V.html)return T=E.toLowerCase().indexOf(P,T),0>T?E:E.substr(0,T)+O+E.substr(T+P.length);var Q=E;P=mxUtils.htmlEntities(P,!1,!1,!1);V=[];var S=-1;for(E=E.replace(/<br>/ig,"\n").replace(/(\s|\S)(<(BLOCKQUOTE|DIV|H1|H2|H3|H4|H5|H6|OL|P|PRE|TABLE|UL)[^>]*>)/ig,"$1\n$2");-1<(S=E.indexOf("<",S+1));)V.push(S);S=E.match(/<[^>]*>/g);E=E.replace(/<[^>]*>/g,"");T=E.toLowerCase().indexOf(P,T);if(0>T)return Q;Q=T+P.length;O=mxUtils.htmlEntities(O);E=E.substr(0,
-T)+O+E.substr(Q);for(var U=0,Y=0;Y<V.length;Y++){if(V[Y]-U<T)E=E.substr(0,V[Y])+S[Y]+E.substr(V[Y]);else{var X=V[Y]-U<Q?T+U:V[Y]+(O.length-P.length);E=E.substr(0,X)+S[Y]+E.substr(X)}U+=S[Y].length}return E.replace(/\n(<(BLOCKQUOTE|DIV|H1|H2|H3|H4|H5|H6|OL|P|PRE|TABLE|UL)[^>]*>)/ig,"$1").replace(/\n/g,"<br>")};C.style.textAlign="center";var M=mxUtils.button(mxResources.get("replFind"),function(){try{if(null!=n&&null!=c){var E=c.cell,P=G.getLabel(E);G.isCellEditable(E)&&G.model.setValue(E,N(P,n,K.value,
-u-n.length,G.getCurrentCellStyle(E)));F.style.backgroundColor=J(!1,!0)?"":"light-dark(#ffcfcf, #ff0000)"}}catch(O){b.handleError(O)}});M.setAttribute("title",mxResources.get("replFind"));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");C.appendChild(M);mxUtils.br(C);var m=mxUtils.button(mxResources.get("replace"),function(){try{if(null!=
-n&&null!=c){var E=c.cell,P=G.getLabel(E);G.model.setValue(E,N(P,n,K.value,u-n.length,G.getCurrentCellStyle(E)));M.setAttribute("disabled","disabled");m.setAttribute("disabled","disabled")}}catch(O){b.handleError(O)}});m.setAttribute("title",mxResources.get("replace"));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");C.appendChild(m);
-var y=mxUtils.button(mxResources.get("replaceAll"),function(){L.innerText="";D=null;var E=b.currentPage,P=b.editor.graph.getSelectionCells();b.editor.graph.rendering=!1;G.getModel().beginUpdate();try{for(var O=0,T={};J(!1,!0,!0)&&100>O;){var V=c.cell,Q=G.getLabel(V),S=T[V.id];if(S&&S.replAllMrk==x&&S.replAllPos>=u)break;T[V.id]={replAllMrk:x,replAllPos:u};G.isCellEditable(V)&&(G.model.setValue(V,N(Q,n,K.value,u-n.length,G.getCurrentCellStyle(V))),O++)}E!=b.currentPage&&b.editor.graph.model.execute(new SelectPage(b,
-E));mxUtils.write(L,mxResources.get("matchesRepl",[O]))}catch(U){b.handleError(U)}finally{G.getModel().endUpdate(),b.editor.graph.setSelectionCells(P),b.editor.graph.rendering=!0}x++});y.setAttribute("title",mxResources.get("replaceAll"));y.style.float="none";y.style.width="120px";y.style.marginTop="6px";y.style.marginLeft="8px";y.style.overflow="hidden";y.style.textOverflow="ellipsis";y.className="geBtn gePrimaryBtn";y.setAttribute("disabled","disabled");C.appendChild(y);mxUtils.br(C);C.appendChild(q);
-q=mxUtils.button(mxResources.get("close"),mxUtils.bind(this,function(){this.window.setVisible(!1)}));q.setAttribute("title",mxResources.get("close"));q.style.float="none";q.style.width="120px";q.style.marginTop="6px";q.style.marginLeft="8px";q.style.overflow="hidden";q.style.textOverflow="ellipsis";q.className="geBtn";C.appendChild(q);mxUtils.br(C);C.appendChild(L)}else C.style.display="flex",C.style.alignItems="center",q.style.width="",z.style.width="";mxEvent.addListener(F,"keyup",function(E){if(91==
-E.keyCode||93==E.keyCode||17==E.keyCode)mxEvent.consume(E);else if(27==E.keyCode)H.funct();else if(D!=F.value.toLowerCase()||13==E.keyCode)try{F.style.backgroundColor=J()?"":"light-dark(#ffcfcf, #ff0000)"}catch(P){F.style.backgroundColor="light-dark(#ffcfcf, #ff0000)"}});mxEvent.addListener(B,"keydown",function(E){70==E.keyCode&&b.keyHandler.isControlDown(E)&&!mxEvent.isShiftDown(E)&&(H.funct(),mxEvent.consume(E))});this.window=new mxWindow(mxResources.get("find")+(t?"/"+mxResources.get("replace"):
-""),B,f,k,d,p,!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()?(F.focus(),mxClient.IS_GC||mxClient.IS_FF?F.select():document.execCommand("selectAll",!1,null),null!=b.pages&&1<b.pages.length?R.removeAttribute("disabled"):(R.checked=!1,R.setAttribute("disabled","disabled"))):G.container.focus()}));b.installResizeHandler(this,
-!1);this.doSearch=function(E){F.focus();F.value=E;z.click()}},FreehandWindow=function(b,f,k,d,p,t){var v=b.editor.graph,A=document.createElement("div");A.style.textAlign="center";A.style.userSelect="none";A.style.overflow="hidden";A.style.height="100%";if(t){var J=function(){var g=v.freehand.getStrokeColor(!0);null!=g&&g!=mxConstants.NONE&&1<g.length&&"string"===typeof g&&("default"==g?g=mxResources.get("useBlackAndWhite"):(g="#"==g.charAt(0)?g.substring(1).toUpperCase():g,g=ColorDialog.prototype.colorNames[g]),
+C=b.menus.createHelpLink("https://www.drawio.com/doc/faq/find-shapes");C.style.position="relative";C.style.marginLeft="6px";B.appendChild(C);mxUtils.br(B);var T=document.createElement("input");T.setAttribute("id","geFindWinAllPagesChck");T.setAttribute("type","checkbox");T.style.marginRight="4px";B.appendChild(T);C=document.createElement("label");C.setAttribute("for","geFindWinAllPagesChck");B.appendChild(C);mxUtils.write(C,mxResources.get("allPages"));B.appendChild(C);var W=document.createElement("div");
+mxUtils.br(B);C=document.createElement("div");C.style.left="0px";C.style.right="0px";C.style.marginTop="6px";C.style.padding="0 6px 0 6px";B.appendChild(C);var q=mxUtils.button(mxResources.get("reset"),function(){L.innerText="";E.value="";E.style.backgroundColor="";t&&(K.value="",A());D=c=null;l=!1;E.focus()});q.setAttribute("title",mxResources.get("reset"));q.style.float="none";q.style.width="120px";q.style.marginTop="6px";q.style.marginLeft="8px";q.style.overflow="hidden";q.style.textOverflow="ellipsis";
+q.className="geBtn";t||C.appendChild(q);var z=mxUtils.button(mxResources.get("find"),function(){try{E.style.backgroundColor=J()?"":"light-dark(#ffcfcf, #ff0000)"}catch(F){b.handleError(F)}});z.setAttribute("title",mxResources.get("find")+" (Enter)");z.style.float="none";z.style.width="120px";z.style.marginTop="6px";z.style.marginLeft="8px";z.style.overflow="hidden";z.style.textOverflow="ellipsis";z.className="geBtn gePrimaryBtn";C.appendChild(z);var L=document.createElement("div");L.style.marginTop=
+"10px";if(t){var N=function(F,P,O,S,V){if(null==V||"1"!=V.html)return S=F.toLowerCase().indexOf(P,S),0>S?F:F.substr(0,S)+O+F.substr(S+P.length);var Q=F;P=mxUtils.htmlEntities(P,!1,!1,!1);V=[];var R=-1;for(F=F.replace(/<br>/ig,"\n").replace(/(\s|\S)(<(BLOCKQUOTE|DIV|H1|H2|H3|H4|H5|H6|OL|P|PRE|TABLE|UL)[^>]*>)/ig,"$1\n$2");-1<(R=F.indexOf("<",R+1));)V.push(R);R=F.match(/<[^>]*>/g);F=F.replace(/<[^>]*>/g,"");S=F.toLowerCase().indexOf(P,S);if(0>S)return Q;Q=S+P.length;O=mxUtils.htmlEntities(O);F=F.substr(0,
+S)+O+F.substr(Q);for(var U=0,Y=0;Y<V.length;Y++){if(V[Y]-U<S)F=F.substr(0,V[Y])+R[Y]+F.substr(V[Y]);else{var X=V[Y]-U<Q?S+U:V[Y]+(O.length-P.length);F=F.substr(0,X)+R[Y]+F.substr(X)}U+=R[Y].length}return F.replace(/\n(<(BLOCKQUOTE|DIV|H1|H2|H3|H4|H5|H6|OL|P|PRE|TABLE|UL)[^>]*>)/ig,"$1").replace(/\n/g,"<br>")};C.style.textAlign="center";var M=mxUtils.button(mxResources.get("replFind"),function(){try{if(null!=n&&null!=c){var F=c.cell,P=G.getLabel(F);G.isCellEditable(F)&&G.model.setValue(F,N(P,n,K.value,
+u-n.length,G.getCurrentCellStyle(F)));E.style.backgroundColor=J(!1,!0)?"":"light-dark(#ffcfcf, #ff0000)"}}catch(O){b.handleError(O)}});M.setAttribute("title",mxResources.get("replFind"));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");C.appendChild(M);mxUtils.br(C);var m=mxUtils.button(mxResources.get("replace"),function(){try{if(null!=
+n&&null!=c){var F=c.cell,P=G.getLabel(F);G.model.setValue(F,N(P,n,K.value,u-n.length,G.getCurrentCellStyle(F)));M.setAttribute("disabled","disabled");m.setAttribute("disabled","disabled")}}catch(O){b.handleError(O)}});m.setAttribute("title",mxResources.get("replace"));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");C.appendChild(m);
+var y=mxUtils.button(mxResources.get("replaceAll"),function(){L.innerText="";D=null;var F=b.currentPage,P=b.editor.graph.getSelectionCells();b.editor.graph.rendering=!1;G.getModel().beginUpdate();try{for(var O=0,S={};J(!1,!0,!0)&&100>O;){var V=c.cell,Q=G.getLabel(V),R=S[V.id];if(R&&R.replAllMrk==x&&R.replAllPos>=u)break;S[V.id]={replAllMrk:x,replAllPos:u};G.isCellEditable(V)&&(G.model.setValue(V,N(Q,n,K.value,u-n.length,G.getCurrentCellStyle(V))),O++)}F!=b.currentPage&&b.editor.graph.model.execute(new SelectPage(b,
+F));mxUtils.write(L,mxResources.get("matchesRepl",[O]))}catch(U){b.handleError(U)}finally{G.getModel().endUpdate(),b.editor.graph.setSelectionCells(P),b.editor.graph.rendering=!0}x++});y.setAttribute("title",mxResources.get("replaceAll"));y.style.float="none";y.style.width="120px";y.style.marginTop="6px";y.style.marginLeft="8px";y.style.overflow="hidden";y.style.textOverflow="ellipsis";y.className="geBtn gePrimaryBtn";y.setAttribute("disabled","disabled");C.appendChild(y);mxUtils.br(C);C.appendChild(q);
+q=mxUtils.button(mxResources.get("close"),mxUtils.bind(this,function(){this.window.setVisible(!1)}));q.setAttribute("title",mxResources.get("close"));q.style.float="none";q.style.width="120px";q.style.marginTop="6px";q.style.marginLeft="8px";q.style.overflow="hidden";q.style.textOverflow="ellipsis";q.className="geBtn";C.appendChild(q);mxUtils.br(C);C.appendChild(L)}else C.style.display="flex",C.style.alignItems="center",q.style.width="",z.style.width="";mxEvent.addListener(E,"keyup",function(F){if(91==
+F.keyCode||93==F.keyCode||17==F.keyCode)mxEvent.consume(F);else if(27==F.keyCode)H.funct();else if(D!=E.value.toLowerCase()||13==F.keyCode)try{E.style.backgroundColor=J()?"":"light-dark(#ffcfcf, #ff0000)"}catch(P){E.style.backgroundColor="light-dark(#ffcfcf, #ff0000)"}});mxEvent.addListener(B,"keydown",function(F){70==F.keyCode&&b.keyHandler.isControlDown(F)&&!mxEvent.isShiftDown(F)&&(H.funct(),mxEvent.consume(F))});this.window=new mxWindow(mxResources.get("find")+(t?"/"+mxResources.get("replace"):
+""),B,f,k,d,p,!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()?(E.focus(),mxClient.IS_GC||mxClient.IS_FF?E.select():document.execCommand("selectAll",!1,null),null!=b.pages&&1<b.pages.length?T.removeAttribute("disabled"):(T.checked=!1,T.setAttribute("disabled","disabled"))):G.container.focus()}));b.installResizeHandler(this,
+!1);this.doSearch=function(F){E.focus();E.value=F;z.click()}},FreehandWindow=function(b,f,k,d,p,t){var v=b.editor.graph,A=document.createElement("div");A.style.textAlign="center";A.style.userSelect="none";A.style.overflow="hidden";A.style.height="100%";if(t){var J=function(){var g=v.freehand.getStrokeColor(!0);null!=g&&g!=mxConstants.NONE&&1<g.length&&"string"===typeof g&&("default"==g?g=mxResources.get("useBlackAndWhite"):(g="#"==g.charAt(0)?g.substring(1).toUpperCase():g,g=ColorDialog.prototype.colorNames[g]),
null!=g&&G.setAttribute("title",g))},H=document.createElement("input");H.setAttribute("id","geFreehandBrush");H.setAttribute("type","checkbox");H.checked=v.freehand.isPerfectFreehandMode();H.style.margin="10px 5px 0px 10px";H.style.float="left";A.appendChild(H);v.freehand.setPerfectFreehandMode(H.checked);t=document.createElement("label");t.setAttribute("for","geFreehandBrush");t.style.float="left";t.style.marginTop="10px";A.appendChild(t);mxUtils.write(t,mxResources.get("brush"));A.appendChild(t);
var G=document.createElement("tempDiv");G.style.display="block";G.style.width="100%";G.style.height="100%";G.style.borderRadius="2px";G.style.boxSizing="border-box";G.style.border="1px solid black";G.style.backgroundColor=v.freehand.getStrokeColor();b.addListener("darkModeChanged",function(){G.style.backgroundColor=v.freehand.getStrokeColor()});J();t=mxUtils.button("",mxUtils.bind(this,function(g){b.pickColor(v.freehand.getStrokeColor(!0),function(l){v.freehand.setStrokeColor(l);G.style.backgroundColor=
v.freehand.getStrokeColor();J()},"default");mxEvent.consume(g)}));t.style.position="absolute";t.style.boxSizing="border-box";t.style.padding="2px";t.style.top="8px";t.style.right="8px";t.style.width="28px";t.style.height="18px";t.className="geColorBtn";t.innerText="";t.appendChild(G);A.appendChild(t);t=document.createElement("img");t.setAttribute("title",mxResources.get("settings"));t.setAttribute("src",Editor.gearImage);t.className="geButton";t.style.position="absolute";t.style.boxSizing="border-box";
@@ -12673,8 +12679,8 @@ ia.element,ba);B.appendChild(la);la.scrollIntoView({behavior:"smooth",block:"end
mxUtils.bind(this,function(){var za=(new mxCodec(mxUtils.createXmlDocument())).encode(u.getModel());za.ownerDocument.appendChild(za);var xa=new mxCodec(za.ownerDocument),ma=new mxGraphModel;xa.decode(za,ma);za=b.currentPage;u.model.beginUpdate();try{var Ca=b.diffCells(ma.root,pa.root);b.patchPage(za,Ca,null,!0)}finally{u.model.endUpdate()}});Ba();fa=[];var sa=mxResources.get("updateDiagramFromClipboard"),ja=t(sa,ia,fa),ya=document.createElement("div");ya.style.display="flex";fa.push(ya);null!=ja.cells&&
0<ja.cells.length&&A(ya,ia,ja.cells,ja.element,sa);var ua=document.createElement("img");ua.className="geAdaptiveAsset geLibraryButton";ua.setAttribute("src",Editor.checkImage);ua.setAttribute("title",mxResources.get("apply"));ya.appendChild(ua);mxEvent.addListener(ua,"click",function(za){Ba();mxEvent.consume(za)});B.appendChild(ya);ya.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})}catch(za){b.handleError(za)}}))["catch"](function(fa){b.handleError(fa)})}catch(fa){b.handleError(fa)}else if("insertDiagram"==
X)try{navigator.clipboard.readText().then(mxUtils.bind(this,function(fa){try{var ba=Editor.extractGraphModelFromText(fa),ia=0<ba[1].length?ba[1]:fa;if("mxGraphModel"!=mxUtils.parseXml(ia).documentElement.nodeName)throw Error(mxResources.get("invalidInput"));fa=[];var la=mxResources.get("insertDiagramFromClipboard"),ka=t(la,ia,fa),pa=document.createElement("div");pa.style.display="flex";fa.push(pa);null!=ka.cells&&0<ka.cells.length&&A(pa,ia,ka.cells,ka.element,la);B.appendChild(pa);pa.scrollIntoView({behavior:"smooth",
-block:"end",inline:"nearest"});if(null!=ka.cells&&0<ka.cells.length){u.model.beginUpdate();try{var Ba=u.getFreeInsertPoint();u.setSelectionCells(u.importCells(ka.cells,Ba.x,Ba.y))}finally{u.model.endUpdate()}u.scrollCellToVisible(u.getSelectionCell())}}catch(sa){b.handleError(sa)}}))["catch"](function(fa){b.handleError(fa)})}catch(fa){b.handleError(fa)}}function H(){if(!Q){if(U(K.value)){J(K.value);K.value=S;return}if("resetHistory"==K.value){K.value=S;b.confirm(mxResources.get("areYouSure"),function(){B.innerHTML=
-""});return}S=K.value;Y()}E.style.display="createPublic"==K.value?"none":""}function G(){Q=!0;K.value=S;u.isSelectionEmpty()?(W.setAttribute("disabled","disabled"),M.setAttribute("disabled","disabled"),"selectionOnly"==K.value&&(K.value="includeCopyOfMyDiagram")):(W.removeAttribute("disabled"),M.removeAttribute("disabled"));b.isDiagramEmpty()?(R.setAttribute("disabled","disabled"),N.setAttribute("disabled","disabled"),"includeCopyOfMyDiagram"==K.value&&(K.value="help")):(R.removeAttribute("disabled"),
+block:"end",inline:"nearest"});if(null!=ka.cells&&0<ka.cells.length){u.model.beginUpdate();try{var Ba=u.getFreeInsertPoint();u.setSelectionCells(u.importCells(ka.cells,Ba.x,Ba.y))}finally{u.model.endUpdate()}u.scrollCellToVisible(u.getSelectionCell())}}catch(sa){b.handleError(sa)}}))["catch"](function(fa){b.handleError(fa)})}catch(fa){b.handleError(fa)}}function H(){if(!Q){if(U(K.value)){J(K.value);K.value=R;return}if("resetHistory"==K.value){K.value=R;b.confirm(mxResources.get("areYouSure"),function(){B.innerHTML=
+""});return}R=K.value;Y()}F.style.display="createPublic"==K.value?"none":""}function G(){Q=!0;K.value=R;u.isSelectionEmpty()?(W.setAttribute("disabled","disabled"),M.setAttribute("disabled","disabled"),"selectionOnly"==K.value&&(K.value="includeCopyOfMyDiagram")):(W.removeAttribute("disabled"),M.removeAttribute("disabled"));b.isDiagramEmpty()?(T.setAttribute("disabled","disabled"),N.setAttribute("disabled","disabled"),"includeCopyOfMyDiagram"==K.value&&(K.value="help")):(T.removeAttribute("disabled"),
N.removeAttribute("disabled"));Q=!1}function D(){try{navigator.clipboard.readText().then(function(X){try{var Z=Editor.extractGraphModelFromText(X);"mxGraphModel"==mxUtils.parseXml(0<Z[1].length?Z[1]:X).documentElement.nodeName?(m.removeAttribute("disabled"),y.removeAttribute("disabled")):(m.setAttribute("disabled","disabled"),y.setAttribute("disabled","disabled"))}catch(aa){m.setAttribute("disabled","disabled"),y.setAttribute("disabled","disabled")}})["catch"](function(){m.setAttribute("disabled",
"disabled");y.setAttribute("disabled","disabled")})}catch(X){m.setAttribute("disabled","disabled"),y.setAttribute("disabled","disabled")}}function c(){var X=document.createElement("div");X.style.textAlign="left";X.style.padding="6px";X.style.margin="6px 0";return X}function g(X){var Z=c();mxUtils.write(Z,X);B.appendChild(Z);return Z}function l(X){function Z(oa){var ca=document.createElement("div");ca.style.display="flex";var ea=document.createElement("img");ea.className="geAdaptiveAsset geLibraryButton";
ea.setAttribute("src",Editor.refreshImage);ea.setAttribute("title",null!=oa?oa:mxResources.get("tryAgain"));ca.appendChild(ea);mxEvent.addListener(ea,"click",Da);return ca}function aa(oa){var ca=document.createElement("div");ca.style.whiteSpace="pre-wrap";ca.style.overflow="auto";ca.innerHTML=Graph.sanitizeHtml(mxUtils.htmlEntities(oa,!1).replace(/\n*^##### (.+)$\n*/gm,"<h5>$1</h5>").replace(/\n*^#### (.+)$\n*/gm,"<h4>$1</h4>").replace(/\n*^### (.+)$\n*/gm,"<h3>$1</h3>").replace(/\n*^## (.+)$\n*/gm,
@@ -12682,30 +12688,30 @@ ea.setAttribute("src",Editor.refreshImage);ea.setAttribute("title",null!=oa?oa:m
"10px";ba.style.backgroundColor="light-dark(#e0e0e0, #3a3a3a)";var ia=document.createElement("div");ia.className="geInlineButtons";ia.style.display="flex";ia.style.justifyContent="end";fa.push(ia);var la=document.createElement("img");la.className="geAdaptiveAsset geLibraryButton";la.setAttribute("src",Editor.trashImage);la.setAttribute("title",mxResources.get("remove"));ia.appendChild(la);mxEvent.addListener(la,"click",mxUtils.bind(this,function(oa){if(mxEvent.isShiftDown(oa))B.innerHTML="";else{for(oa=
0;oa<fa.length;oa++)null!=fa[oa].parentNode&&fa[oa].parentNode.removeChild(fa[oa]);fa=[]}}));la=la.cloneNode();la.setAttribute("src",Editor.copyImage);la.setAttribute("title",mxResources.get("copy"));mxEvent.addListener(la,"click",mxUtils.bind(this,function(){b.writeTextToClipboard(X,mxUtils.bind(this,function(oa){b.handleError(oa)}),function(){b.alert(mxResources.get("copiedToClipboard"))})}));ia.appendChild(la);la=la.cloneNode();la.setAttribute("src",Editor.editImage);la.setAttribute("title",mxResources.get("edit"));
ia.appendChild(la);mxEvent.addListener(la,"click",mxUtils.bind(this,function(){V.value=X;V.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?V.select():document.execCommand("selectAll",!1,null)}));B.appendChild(ia);var ka=g("");ka.className="geSidebar";ka.style.marginTop="2px";var pa=mxUtils.bind(this,function(oa){ka.innerHTML="";ka.appendChild(da(oa.message));ka.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"});EditorUi.debug("EditorUi.ChatWindow.handleError","error",
-oa);null!=window.console&&console.error(oa)}),Ba=b.currentPage,sa=E.value,ja=K.value,ya=null;for(ia=0;ia<Editor.aiModels.length;ia++)if(la=Editor.aiModels[ia],la.name==sa){ya=la;break}if("createPublic"==ja||null!=ya&&null!=Editor.aiConfigs[ya.config]){var ua=null!=ya?Editor.aiConfigs[ya.config]:null,za=null,xa=Date.now(),ma=null,Ca=null;if("includeCopyOfMyDiagram"==ja||"selectionOnly"==ja)ia=new mxCodec(mxUtils.createXmlDocument()),"selectionOnly"==ja&&(ia.isObjectIgnored=function(oa){return oa.constructor==
+oa);null!=window.console&&console.error(oa)}),Ba=b.currentPage,sa=F.value,ja=K.value,ya=null;for(ia=0;ia<Editor.aiModels.length;ia++)if(la=Editor.aiModels[ia],la.name==sa){ya=la;break}if("createPublic"==ja||null!=ya&&null!=Editor.aiConfigs[ya.config]){var ua=null!=ya?Editor.aiConfigs[ya.config]:null,za=null,xa=Date.now(),ma=null,Ca=null;if("includeCopyOfMyDiagram"==ja||"selectionOnly"==ja)ia=new mxCodec(mxUtils.createXmlDocument()),"selectionOnly"==ja&&(ia.isObjectIgnored=function(oa){return oa.constructor==
mxCell&&!u.model.isRoot(oa)&&!u.model.isLayer(oa)&&!u.isCellSelected(oa)&&!u.isAncestorSelected(oa)}),Ca=ia.encode(u.getModel()),Ca.ownerDocument.appendChild(Ca),ma=mxUtils.getXml(Ca);var wa=function(oa){var ca=null;"prompt"==oa?ca=X:"data"==oa&&null!=Ca?ca=ma:"model"==oa?ca=ya.model:"apiKey"==oa?oa=ua.apiKey:"action"==oa&&(oa="selectionOnly"==ja||"includeCopyOfMyDiagram"==ja?"update":ja);null==ca&&(ca=Editor.replacePlaceholders(Editor.aiGlobals[oa],wa));return ca},ha=function(oa,ca){null==ca&&(ca=
new oa.constructor);for(var ea in oa){var qa=oa[ea];ca[ea]="object"===typeof qa?ha(qa):"string"===typeof qa?Editor.replacePlaceholders(qa,wa):qa}return ca},ta=null!=ua?ha(ua.request):null,Da=mxUtils.bind(this,function(){ka.innerHTML="";fa.push(ka);var oa=document.createElement("div");oa.style.display="flex";oa.style.alignItems="center";mxUtils.write(oa,mxResources.get("loading")+"...");var ca=document.createElement("img");ca.className="geAdaptiveAsset";ca.setAttribute("src",Editor.svgSpinImage);ca.style.width=
"16px";ca.style.height="16px";ca.style.marginLeft="6px";oa.appendChild(ca);ka.appendChild(oa);ka.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"});var ea=mxUtils.bind(this,function(qa,na){var va=Date.now()-xa;EditorUi.debug("EditorUi.ChatWindow.handleResponse","data",qa,"prompt",[na],"time",va);var ra=null;if(null!=qa&&1<qa.length&&0<qa[1].length)try{ra=b.stringToCells(qa[1])}catch(Za){throw Error(Za.toString()+"\n\n"+qa[1]);}if(null!=ra&&0<ra.length){var Aa=u.getBoundingBoxFromGeometry(ra);
b.sidebar.graph.moveCells(ra,-Aa.x,-Aa.y);var Ka=mxUtils.bind(this,function(Za){null!=b.sidebar&&b.sidebar.hideTooltip();if(null!=Ca&&null==za){var Ra=new mxCodec(Ca.ownerDocument);za=new mxGraphModel;Ra.decode(Ca,za)}u.model.beginUpdate();try{if(null!=za&&null!=Ba&&null!=b.getPageIndex(Ba)){b.selectPage(Ba);var Ua=mxUtils.parseXml(qa[1]),cb=new mxCodec(Ua),fb=new mxGraphModel;cb.decode(Ua.documentElement,fb);var bb=b.diffCells(za.root,fb.root);b.patchPage(Ba,bb,null,!0);EditorUi.debug("EditorUi.ChatWindow.handleResponse",
"sentModel",za,"receivedModel",fb,"patch",bb)}else{var rb=u.getFreeInsertPoint();u.setSelectionCells(u.importCells(ra,rb.x,rb.y));EditorUi.debug("EditorUi.ChatWindow.handleResponse","cells",u.getSelectionCell())}}finally{u.model.endUpdate()}u.scrollCellToVisible(u.getSelectionCell());mxEvent.consume(Za)});ka.innerHTML="";ba=ka;0<qa[0].length&&ba.appendChild(aa(qa[0]));if(0<qa[1].length){var Na=b.getSvgForXml(qa[1]);Na.style.overflow="visible";Na.style.padding="1px";Na.style.cursor="move";Na.style.width=
-"160px";Na.style.height="auto";Na.style.maxHeight="460px";var La=document.createElement("a");La.className="geItem";La.style.padding="4px";La.style.borderRadius="10px";La.appendChild(Na);ba.appendChild(La);b.sidebar.createItem(ra,na,!0,!0,Aa.width,Aa.height,!0,!0,Ka,null,null,null,null,null,La);T||"createPublic"==ja||1!=urlParams.test||La.setAttribute("title",sa+" ("+va+" ms)");va=document.createElement("div");va.style.display="flex";Aa=document.createElement("img");Aa.className="geAdaptiveAsset geLibraryButton";
+"160px";Na.style.height="auto";Na.style.maxHeight="460px";var La=document.createElement("a");La.className="geItem";La.style.padding="4px";La.style.borderRadius="10px";La.appendChild(Na);ba.appendChild(La);b.sidebar.createItem(ra,na,!0,!0,Aa.width,Aa.height,!0,!0,Ka,null,null,null,null,null,La);S||"createPublic"==ja||1!=urlParams.test||La.setAttribute("title",sa+" ("+va+" ms)");va=document.createElement("div");va.style.display="flex";Aa=document.createElement("img");Aa.className="geAdaptiveAsset geLibraryButton";
Aa.setAttribute("src",Editor.refreshImage);Aa.setAttribute("title",mxResources.get("refresh"));va.appendChild(Aa);mxEvent.addListener(Aa,"click",Da);Aa=Aa.cloneNode();Aa.setAttribute("src",Editor.copyImage);Aa.setAttribute("title",mxResources.get("copy"));va.appendChild(Aa);mxEvent.addListener(Aa,"click",function(){b.writeTextToClipboard(qa[1],function(Za){b.handleError(Za)})});"draw.io"==b.getServiceName()&&(Aa=Aa.cloneNode(),Aa.setAttribute("src",Editor.shareImage),Aa.setAttribute("title",mxResources.get(b.isStandaloneApp()?
"export":"openInNewWindow")),va.appendChild(Aa),mxEvent.addListener(Aa,"click",mxUtils.bind(this,function(Za){b.isStandaloneApp()?b.saveData("export.xml","xml",qa[1],"text/xml"):b.editor.editAsNew(qa[1])})));Aa=Aa.cloneNode();Aa.setAttribute("src",Editor.magnifyImage);Aa.setAttribute("title",mxResources.get("preview"));va.appendChild(Aa);mxEvent.addListener(Aa,"click",mxUtils.bind(this,function(Za){b.sidebar.createTooltip(ba,ra,Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-
120,1600),Math.min((window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-120,1200),na,!0,new mxPoint(mxEvent.getClientX(Za),mxEvent.getClientY(Za)),!0,function(){wasVisible=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display},!0,!1)}));Aa=Aa.cloneNode();null!=Ca&&null!=Ba&&null!=b.getPageIndex(Ba)?(Aa.setAttribute("src",Editor.checkImage),Aa.setAttribute("title",mxResources.get("apply"))):(Aa.setAttribute("src",Editor.plusImage),Aa.setAttribute("title",
-mxResources.get("insert")));va.appendChild(Aa);mxEvent.addListener(Aa,"click",Ka);ba.appendChild(va)}0<qa[2].length&&ba.appendChild(aa(qa[2]))}else ka.innerHTML="",ba=ka,ka.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"}),null==qa?mxUtils.write(ba,mxResources.get("errShowingDiag")):(ba.style.whiteSpace="pre-wrap",ba.appendChild(aa(qa[0])),ba.appendChild(aa(qa[2])),ba.appendChild(Z(mxResources.get("refresh"))));ba.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})});T||
+mxResources.get("insert")));va.appendChild(Aa);mxEvent.addListener(Aa,"click",Ka);ba.appendChild(va)}0<qa[2].length&&ba.appendChild(aa(qa[2]))}else ka.innerHTML="",ba=ka,ka.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"}),null==qa?mxUtils.write(ba,mxResources.get("errShowingDiag")):(ba.style.whiteSpace="pre-wrap",ba.appendChild(aa(qa[0])),ba.appendChild(aa(qa[2])),ba.appendChild(Z(mxResources.get("refresh"))));ba.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})});S||
"createPublic"==ja?b.generateOpenAiMermaidDiagram(X,function(qa){ea(["",qa,""],X)},pa,!0):b.createTimeout(b.editor.generateTimeout,mxUtils.bind(this,function(qa){var na=mxUtils.bind(this,function(Aa){qa.clear();pa(Aa)}),va=Editor.replacePlaceholders(ua.endpoint,wa),ra=new mxXmlRequest(va,JSON.stringify(ta),"POST");ra.setRequestHeaders=mxUtils.bind(this,function(Aa,Ka){Aa.setRequestHeader("Content-Type","application/json");for(var Na in ua.requestHeaders)Aa.setRequestHeader(Na,Editor.replacePlaceholders(ua.requestHeaders[Na],
wa))});EditorUi.debug("EditorUi.ChatWindow.addMessage send","url",va,"params",ta,"aiModel",ya,"config",ua);ra.send(mxUtils.bind(this,function(Aa){if(qa.clear())try{if(200<=Aa.getStatus()&&299>=Aa.getStatus()){var Ka=JSON.parse(Aa.getText()),Na=Editor.executeSimpleJsonPath(Ka,ua.responsePath),La=mxUtils.trim(0<Na.length?Na[0]:Aa.getText()),Za=b.extractMermaidDeclaration(La);EditorUi.debug("EditorUi.ChatWindow.addMessage response","params",ta,"response",Ka,"text",[La],"mermaid",[Za]);null==Za?ea(Editor.extractGraphModelFromText(La),
X):b.parseMermaidDiagram(Za,null,mxUtils.bind(this,function(Ua){ea(["",Ua,""],X)}),mxUtils.bind(this,function(Ua){na(Ua)}),null,!0)}else{Na="Error: "+Aa.getStatus();try{var Ra=JSON.parse(Aa.getText());null!=Ra&&null!=Ra.error&&null!=Ra.error.message&&(Na=Ra.error.message)}catch(Ua){}ka.innerHTML="";mxUtils.write(ka,Na);ka.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})}}catch(Ua){na(Ua)}}),na)}),function(qa){ka.innerHTML="";ka.appendChild(da(qa.message));ka.scrollIntoView({behavior:"smooth",
block:"end",inline:"nearest"});EditorUi.debug("EditorUi.ChatWindow.addMessage","error",qa)})});Da()}else pa({message:mxResources.get("invalidCallFnNotFound",[sa])})}function n(){if(""!=mxUtils.trim(V.value))try{l(V.value),V.value=""}catch(X){EditorUi.debug("EditorUi.ChatWindow.send","error",X)}}var u=b.editor.graph,x=document.createElement("div");x.style.display="flex";x.style.flexDirection="column";x.style.overflow="hidden";x.style.height="100%";x.style.padding="10px 12px 20px 12px";x.style.boxSizing=
"border-box";mxEvent.addGestureListeners(x,mxUtils.bind(this,function(X){null!=b.sidebar&&b.sidebar.hideTooltip()}),null,null);var B=document.createElement("div");B.style.flexGrow="1";B.style.overflow="auto";B.style.fontSize="12px";B.style.marginRight="-8px";B.style.paddingRight="8px";mxEvent.addListener(B,"scroll",function(){null!=b.sidebar&&b.sidebar.hideTooltip()});x.appendChild(B);var C=document.createElement("div");C.style.borderRadius="20px";C.style.backgroundColor="light-dark(#e0e0e0, #3a3a3a)";
-C.style.padding="8px";C.style.marginTop="8px";var F=document.createElement("div");F.style.display="flex";F.style.gap="6px";F.style.paddingRight="8px";F.style.justifyContent="start";var K=document.createElement("select");K.style.borderColor="transparent";K.style.textOverflow="ellipsis";K.style.padding="5px";K.style.minWidth="0";K.style.flexGrow="1";var I=document.createElement("option"),R=document.createElement("option"),W=document.createElement("option"),q=document.createElement("option"),z=document.createElement("option");
+C.style.padding="8px";C.style.marginTop="8px";var E=document.createElement("div");E.style.display="flex";E.style.gap="6px";E.style.paddingRight="8px";E.style.justifyContent="start";var K=document.createElement("select");K.style.borderColor="transparent";K.style.textOverflow="ellipsis";K.style.padding="5px";K.style.minWidth="0";K.style.flexGrow="1";var I=document.createElement("option"),T=document.createElement("option"),W=document.createElement("option"),q=document.createElement("option"),z=document.createElement("option");
if(b.isExternalDataComms()&&"undefined"!==typeof mxMermaidToDrawio&&window.isMermaidEnabled&&0<=mxUtils.indexOf(Editor.aiActions,"createPublic")){I.setAttribute("value","createPublic");mxUtils.write(I,mxResources.get("createDiagram")+" ("+mxResources.get("draw.io")+")");K.appendChild(I);var L=document.createElement("option");L.setAttribute("disabled","disabled");mxUtils.write(L,"──────");K.appendChild(L)}var N=document.createElement("option");N.setAttribute("value","copyOfDrawing");mxUtils.write(N,
mxResources.get("copyDiagramToClipboard"));K.appendChild(N);var M=document.createElement("option");M.setAttribute("value","copyOfSelection");mxUtils.write(M,mxResources.get("copySelectionToClipboard"));K.appendChild(M);var m=document.createElement("option");m.setAttribute("value","pasteDiagram");m.setAttribute("disabled","disabled");mxUtils.write(m,mxResources.get("updateDiagramFromClipboard"));K.appendChild(m);var y=document.createElement("option");y.setAttribute("value","insertDiagram");y.setAttribute("disabled",
-"disabled");mxUtils.write(y,mxResources.get("insertDiagramFromClipboard"));K.appendChild(y);var E=K.cloneNode(!1);for(L=0;L<Editor.aiModels.length;L++){var P=Editor.aiModels[L];if(Editor.aiConfigs[P.config]&&null!=Editor.aiGlobals[Editor.aiConfigs[P.config].apiKey]){var O=document.createElement("option");O.setAttribute("value",P.name);mxUtils.write(O,P.name);E.appendChild(O)}}var T=0==E.children.length;T||(L=document.createElement("option"),L.setAttribute("disabled","disabled"),mxUtils.write(L,"──────"),
-K.appendChild(L),"undefined"!==typeof mxMermaidToDrawio&&window.isMermaidEnabled&&0<=mxUtils.indexOf(Editor.aiActions,"create")&&(q.setAttribute("value","create"),mxUtils.write(q,mxResources.get("createDiagram")),K.appendChild(q)),0<=mxUtils.indexOf(Editor.aiActions,"update")&&(R.setAttribute("value","includeCopyOfMyDiagram"),mxUtils.write(R,mxResources.get("promptWithDiagram")),K.appendChild(R),W.setAttribute("value","selectionOnly"),mxUtils.write(W,mxResources.get("promptWithSelection")),K.appendChild(W)),
+"disabled");mxUtils.write(y,mxResources.get("insertDiagramFromClipboard"));K.appendChild(y);var F=K.cloneNode(!1);for(L=0;L<Editor.aiModels.length;L++){var P=Editor.aiModels[L];if(Editor.aiConfigs[P.config]&&null!=Editor.aiGlobals[Editor.aiConfigs[P.config].apiKey]){var O=document.createElement("option");O.setAttribute("value",P.name);mxUtils.write(O,P.name);F.appendChild(O)}}var S=0==F.children.length;S||(L=document.createElement("option"),L.setAttribute("disabled","disabled"),mxUtils.write(L,"──────"),
+K.appendChild(L),"undefined"!==typeof mxMermaidToDrawio&&window.isMermaidEnabled&&0<=mxUtils.indexOf(Editor.aiActions,"create")&&(q.setAttribute("value","create"),mxUtils.write(q,mxResources.get("createDiagram")),K.appendChild(q)),0<=mxUtils.indexOf(Editor.aiActions,"update")&&(T.setAttribute("value","includeCopyOfMyDiagram"),mxUtils.write(T,mxResources.get("promptWithDiagram")),K.appendChild(T),W.setAttribute("value","selectionOnly"),mxUtils.write(W,mxResources.get("promptWithSelection")),K.appendChild(W)),
0<=mxUtils.indexOf(Editor.aiActions,"assist")&&(z.setAttribute("value","assist"),mxUtils.write(z,mxResources.get("promptOnly")),K.appendChild(z)));q=document.createElement("option");q.setAttribute("disabled","disabled");mxUtils.write(q,"──────");K.appendChild(q);q=document.createElement("option");q.setAttribute("value","resetHistory");mxUtils.write(q,mxResources.get("reset"));K.appendChild(q);z=document.createElement("div");z.style.whiteSpace="nowrap";z.style.textOverflow="clip";z.style.cursor="default";
var V=document.createElement("input");V.setAttribute("type","text");V.style.width="100%";V.style.outline="none";V.style.border="none";V.style.background="transparent";V.style.padding="6px 30px 6px 10px";V.style.boxSizing="border-box";z.appendChild(V);q=document.createElement("img");q.setAttribute("src",Editor.sendImage);q.setAttribute("title",mxResources.get("sendMessage"));q.className="geAdaptiveAsset";q.style.position="relative";q.style.cursor="pointer";q.style.opacity="0.5";q.style.height="19px";
-q.style.left="-28px";q.style.top="5px";z.appendChild(q);C.appendChild(z);T||1==urlParams.test||null==I.parentNode||I.parentNode.removeChild(I);F.appendChild(K);!T&&1<E.children.length&&F.appendChild(E);C.appendChild(F);T&&null==I.parentNode&&(z.style.display="none",F=document.createElement("option"),F.setAttribute("value","select"),mxUtils.write(F,mxResources.get("select")+"..."),K.insertBefore(F,K.firstChild));0<K.children.length&&(K.value=K.children[0].value);var Q=!1,S=K.value,U=function(X){return"copyOfDrawing"==
+q.style.left="-28px";q.style.top="5px";z.appendChild(q);C.appendChild(z);S||1==urlParams.test||null==I.parentNode||I.parentNode.removeChild(I);E.appendChild(K);!S&&1<F.children.length&&E.appendChild(F);C.appendChild(E);S&&null==I.parentNode&&(z.style.display="none",E=document.createElement("option"),E.setAttribute("value","select"),mxUtils.write(E,mxResources.get("select")+"..."),K.insertBefore(E,K.firstChild));0<K.children.length&&(K.value=K.children[0].value);var Q=!1,R=K.value,U=function(X){return"copyOfDrawing"==
X||"copyOfSelection"==X||"pasteDiagram"==X||"insertDiagram"==X},Y=function(){V.setAttribute("placeholder",mxResources.get("create"==K.value||"createPublic"==K.value?"describeYourDiagram":"askMeAnything"))};Y();mxEvent.addListener(K,"change",H);H();u.selectionModel.addListener(mxEvent.CHANGE,G);u.getModel().addListener(mxEvent.CHANGE,G);G();D();mxEvent.addListener(window,"focus",D);x.appendChild(C);mxEvent.addListener(q,"click",n);mxEvent.addListener(V,"keydown",function(X){13!=X.keyCode||mxEvent.isShiftDown(X)||
n()});this.generate=mxUtils.bind(this,function(X){V.value=X;n()});this.window=new mxWindow(mxResources.get("generate"),x,f,k,d,p,!0,!0);this.window.minimumSize=new mxRectangle(0,0,120,100);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);b.isOffline()||(f=b.createHelpIcon("https://www.drawio.com/doc/faq/configure-ai-options"),f.style.cursor="help",f.style.opacity="0.5",this.window.buttons.insertBefore(f,this.window.buttons.firstChild));
this.window.addListener(mxEvent.DESTROY,mxUtils.bind(this,function(){u.getModel().removeListener(G);mxEvent.removeListener(window,"focus",D)}));this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit();V.focus()}));b.installResizeHandler(this,!0)},TagsWindow=function(b,f,k,d,p){var t=b.editor.graph,v=null;if(!b.isOffline()||mxClient.IS_CHROMEAPP)v=b.menus.createHelpLink("https://www.drawio.com/blog/tags-in-diagrams");var A=b.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return this.window.isVisible()}),
@@ -12715,72 +12721,72 @@ t.style.padding="0px";t.style.margin="0px";t.style.color="gray";mxUtils.write(t,
"/onedrive-logo-white.svg"):f==b.gitHub?(v=mxResources.get("github"),A.src=IMAGE_PATH+"/github-logo-white.svg"):f==b.gitLab?(v=mxResources.get("gitlab"),A.src=IMAGE_PATH+"/gitlab-logo.svg",A.style.width="32px"):f==b.trello?(v=mxResources.get("trello"),A.src=IMAGE_PATH+"/trello-logo-white.svg"):f==b.m365&&(v=mxResources.get("m365"),A.src=IMAGE_PATH+"/onedrive-logo-white.svg");b=document.createElement("p");mxUtils.write(b,mxResources.get("authorizeThisAppIn",[v]));var J=document.createElement("input");
J.setAttribute("type","checkbox");v=mxUtils.button(mxResources.get("authorize"),function(){d(J.checked)});v.insertBefore(A,v.firstChild);v.style.marginTop="6px";v.className="geBigButton";v.style.fontSize="18px";v.style.padding="14px";p.appendChild(t);p.appendChild(b);p.appendChild(v);k&&(k=document.createElement("p"),k.style.marginTop="20px",k.appendChild(J),t=document.createElement("span"),mxUtils.write(t," "+mxResources.get("rememberMe")),k.appendChild(t),p.appendChild(k),J.checked=!0,J.defaultChecked=
!0,mxEvent.addListener(t,"click",function(H){J.checked=!J.checked;mxEvent.consume(H)}));this.container=p},MoreShapesDialog=function(b,f,k){k=null!=k?k:b.sidebar.entries;var d=document.createElement("div"),p=[];if(null!=b.sidebar.customEntries)for(var t=0;t<b.sidebar.customEntries.length;t++){for(var v=b.sidebar.customEntries[t]||{},A={title:b.getResource(v.title),entries:[]},J=0;null!=v.entries&&J<v.entries.length;J++){var H=v.entries[J];A.entries.push({id:H.id,title:b.getResource(H.title),desc:b.getResource(H.desc),
-image:H.preview})}0<A.entries.length&&p.push(A)}for(t=0;t<k.length;t++)if(null==b.sidebar.enabledLibraries)p.push(k[t]);else{A={title:k[t].title,entries:[]};for(J=0;J<k[t].entries.length;J++)0<=mxUtils.indexOf(b.sidebar.enabledLibraries,k[t].entries[J].id)&&A.entries.push(k[t].entries[J]);0<A.entries.length&&p.push(A)}k=p;if(f){t=mxUtils.bind(this,function(I){for(var R=0;R<I.length;R++)(function(W){var q=l.cloneNode(!1);q.style.fontWeight="bold";q.style.backgroundColor="light-dark(#e5e5e5, #505759)";
-q.style.padding="6px 0px 6px 20px";mxUtils.write(q,W.title);G.appendChild(q);for(var z=0;z<W.entries.length;z++)(function(L){var N=l.cloneNode(!1);N.style.cursor="pointer";N.style.padding="4px 0px 4px 20px";N.style.whiteSpace="nowrap";N.style.overflow="hidden";N.style.textOverflow="ellipsis";N.setAttribute("title",L.title+" ("+L.id+")");var M=document.createElement("input");M.setAttribute("type","checkbox");M.checked=b.sidebar.isEntryVisible(L.id);M.defaultChecked=M.checked;N.appendChild(M);mxUtils.write(N,
-" "+L.title);G.appendChild(N);var m=function(y){if(null==y||"INPUT"!=mxEvent.getSource(y).nodeName){D.style.textAlign="center";D.style.padding="0px";D.style.color="";D.innerText="";if(null!=L.desc){var E=document.createElement("pre");E.style.boxSizing="border-box";E.style.fontFamily="inherit";E.style.margin="20px";E.style.right="0px";E.style.textAlign="left";mxUtils.write(E,L.desc);D.appendChild(E)}null!=L.imageCallback?L.imageCallback(D):null!=L.image?(E=document.createElement("img"),E.setAttribute("border",
-"0"),E.style.maxWidth="100%",E.setAttribute("src",L.image),D.appendChild(E)):null==L.desc&&(D.style.padding="20px",D.style.color="rgb(179, 179, 179)",mxUtils.write(D,mxResources.get("noPreview")));null!=c&&(c.style.backgroundColor="");c=N;c.style.backgroundColor="light-dark(#ebf2f9, #000000)";null!=y&&mxEvent.consume(y)}};mxEvent.addListener(N,"click",m);mxEvent.addListener(N,"dblclick",function(y){M.checked=!M.checked;mxEvent.consume(y)});g.push(function(){return M.checked?L.id:null});0==R&&0==z&&
-m()})(W.entries[z])})(I[R])});J=document.createElement("div");J.className="geDialogTitle";mxUtils.write(J,mxResources.get("shapes"));J.style.position="absolute";J.style.top="0px";J.style.left="0px";J.style.lineHeight="40px";J.style.height="40px";J.style.right="0px";var G=document.createElement("div"),D=document.createElement("div");G.style.position="absolute";G.style.top="40px";G.style.left="0px";G.style.width="202px";G.style.bottom="60px";G.style.overflow="auto";D.style.position="absolute";D.style.left=
-"202px";D.style.right="0px";D.style.top="40px";D.style.bottom="60px";D.style.overflow="auto";D.style.borderLeftStyle="solid";D.style.borderLeftWidth="1px";D.style.textAlign="center";var c=null,g=[],l=document.createElement("div");l.style.position="relative";l.style.left="0px";l.style.right="0px";t(k);d.style.padding="30px";d.appendChild(J);d.appendChild(G);d.appendChild(D);k=document.createElement("div");k.className="geDialogFooter";k.style.position="absolute";k.style.paddingRight="16px";k.style.left=
-"0px";k.style.right="0px";k.style.bottom="0px";k.style.height="60px";k.style.lineHeight="52px";var n=document.createElement("input");n.setAttribute("type","checkbox");n.style.position="relative";n.style.top="1px";n.checked=b.sidebar.sidebarTitles;n.defaultChecked=n.checked;k.appendChild(n);t=document.createElement("span");mxUtils.write(t," "+mxResources.get("labels"));t.style.paddingRight="20px";k.appendChild(t);mxEvent.addListener(t,"click",function(I){n.checked=!n.checked;mxEvent.consume(I)});var u=
-document.createElement("input");u.setAttribute("type","checkbox");if(isLocalStorage||mxClient.IS_CHROMEAPP)t=document.createElement("span"),t.style.paddingRight="20px",t.appendChild(u),mxUtils.write(t," "+mxResources.get("rememberThisSetting")),u.style.position="relative",u.style.top="1px",u.checked=!0,u.defaultChecked=!0,mxEvent.addListener(t,"click",function(I){mxEvent.getSource(I)!=u&&(u.checked=!u.checked,mxEvent.consume(I))}),k.appendChild(t);t=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});
-t.className="geBtn";J=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();for(var I=[],R=0;R<g.length;R++){var W=g[R].apply(this,arguments);null!=W&&I.push(W)}"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||!Editor.isSettingsEnabled()||(R=mxUtils.indexOf(I,".scratchpad"),null!=b.scratchpad!=(0<=R&&0<I.splice(R,1).length)&&b.toggleScratchpad(),R=mxUtils.indexOf(I,"search"),mxSettings.settings.search=0<=R&&0<I.splice(R,1).length,b.sidebar.showPalette("search",
-mxSettings.settings.search),u.checked&&mxSettings.save());b.sidebar.showEntries(I.join(";"),u.checked,!0);b.setSidebarTitles(n.checked,u.checked)});J.className="geBtn gePrimaryBtn"}else{var x=document.createElement("table");t=document.createElement("tbody");d.style.height="100%";d.style.overflow="auto";J=document.createElement("tr");x.style.width="100%";f=document.createElement("td");p=document.createElement("td");v=document.createElement("td");var B=mxUtils.bind(this,function(I,R,W){var q=document.createElement("input");
-q.type="checkbox";x.appendChild(q);q.checked=b.sidebar.isEntryVisible(W);var z=document.createElement("span");mxUtils.write(z,R);R=document.createElement("div");R.style.display="block";R.appendChild(q);R.appendChild(z);mxEvent.addListener(z,"click",function(L){q.checked=!q.checked;mxEvent.consume(L)});I.appendChild(R);return function(){return q.checked?W:null}});J.appendChild(f);J.appendChild(p);J.appendChild(v);t.appendChild(J);x.appendChild(t);g=[];var C=0;for(t=0;t<k.length;t++)for(J=0;J<k[t].entries.length;J++)C++;
-var F=[f,p,v],K=0;for(t=0;t<k.length;t++)(function(I){for(var R=0;R<I.entries.length;R++){var W=I.entries[R];g.push(B(F[Math.floor(K/(C/3))],W.title,W.id));K++}})(k[t]);d.appendChild(x);k=document.createElement("div");k.style.marginTop="18px";k.style.textAlign="center";u=document.createElement("input");isLocalStorage&&(u.setAttribute("type","checkbox"),u.checked=!0,u.defaultChecked=!0,k.appendChild(u),t=document.createElement("span"),mxUtils.write(t," "+mxResources.get("rememberThisSetting")),k.appendChild(t),
-mxEvent.addListener(t,"click",function(I){u.checked=!u.checked;mxEvent.consume(I)}));d.appendChild(k);t=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});t.className="geBtn";J=mxUtils.button(mxResources.get("apply"),function(){for(var I=["search"],R=0;R<g.length;R++){var W=g[R].apply(this,arguments);null!=W&&I.push(W)}b.sidebar.showEntries(0<I.length?I.join(";"):"",u.checked);b.hideDialog()});J.className="geBtn gePrimaryBtn";k=document.createElement("div");k.style.marginTop="26px";
-k.style.textAlign="right"}b.editor.cancelFirst?(k.appendChild(t),k.appendChild(J)):(k.appendChild(J),k.appendChild(t));d.appendChild(k);this.container=d},PluginsDialog=function(b,f,k,d){function p(){J=!0;if(0==A.length)v.innerText=mxResources.get("noPlugins");else{v.innerText="";for(var g=0;g<A.length;g++){var l=document.createElement("span");l.style.display="flex";l.style.alignItems="center";l.style.whiteSpace="nowrap";var n=document.createElement("img");n.src=Editor.trashImage;n.style.position=
-"relative";n.style.cursor="pointer";n.style.marginRight="4px";n.style.display="inline-block";n.style.width="18px";n.setAttribute("title",mxResources.get("delete"));l.appendChild(n);mxUtils.write(l,A[g]);v.appendChild(l);mxUtils.br(v);mxEvent.addListener(n,"click",function(u){return function(){b.confirm(mxResources.get("delete")+' "'+A[u]+'"?',function(){null!=k&&k(A[u]);A.splice(u,1);p()})}}(g))}}}var t=document.createElement("div"),v=document.createElement("div");v.style.height="180px";v.style.overflow=
-"auto";var A=mxSettings.getPlugins().slice(),J=!1;t.appendChild(v);p();J=!1;var H=mxUtils.button(mxResources.get("add"),null!=f?function(){f(function(g){g&&0>mxUtils.indexOf(A,g)&&A.push(g);p()})}:function(){var g=document.createElement("div"),l=document.createElement("span");l.style.marginTop="6px";mxUtils.write(l,mxResources.get("builtinPlugins")+": ");g.appendChild(l);var n=document.createElement("select");n.style.width="150px";for(l=0;l<App.publicPlugin.length;l++){var u=document.createElement("option");
-mxUtils.write(u,App.publicPlugin[l]);u.value=App.publicPlugin[l];n.appendChild(u)}g.appendChild(n);mxUtils.br(g);mxUtils.br(g);l=mxUtils.button(mxResources.get("custom")+"...",function(){var x=new FilenameDialog(b,"",mxResources.get("add"),function(B){b.hideDialog();if(null!=B&&0<B.length){B=B.split(";");for(var C=0;C<B.length;C++){var F=B[C],K=App.pluginRegistry[F];null!=K&&(F=K);0<F.length&&0>mxUtils.indexOf(A,F)&&A.push(F)}p()}},mxResources.get("enterValue")+" ("+mxResources.get("url")+")");b.showDialog(x.container,
-300,80,!0,!0);x.init()});l.className="geBtn";ALLOW_CUSTOM_PLUGINS||(l.style.display="none");g=new CustomDialog(b,g,mxUtils.bind(this,function(){var x=App.pluginRegistry[n.value];0>mxUtils.indexOf(A,x)&&(A.push(x),p())}),null,null,null,l);b.showDialog(g.container,360,100,!0,!0)});H.className="geBtn";var G=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});G.className="geBtn";var D=mxUtils.button(d?mxResources.get("close"):mxResources.get("apply"),function(){J?(mxSettings.setPlugins(A),
-mxSettings.save(),b.hideDialog(),b.alert(mxResources.get("restartForChangeRequired"))):b.hideDialog()});D.className="geBtn gePrimaryBtn";var c=document.createElement("div");c.style.marginTop="14px";c.style.textAlign="right";b.isOffline()||c.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/plugins"));b.editor.cancelFirst?(d||c.appendChild(G),c.appendChild(H),c.appendChild(D)):(c.appendChild(H),c.appendChild(D),d||c.appendChild(G));t.appendChild(c);this.container=t},CropImageDialog=function(b,
-f,k,d){function p(){null!=g&&(D.style.overflow="hidden",g.maxFitScale=null,g.fit(8),g.center(),D.style.overflow="auto")}function t(V){var Q=document.createElement("span");Q.style.marginLeft="6px";Q.style.fontSize="11px";mxUtils.write(Q,V);W.appendChild(Q);V=document.createElement("input");V.setAttribute("type","text");V.style.cssText="width:46px;margin:0 2px;text-align:right;";W.appendChild(V);return V}function v(){var V=x.geometry;z.value=Math.round(V.x);L.value=Math.round(V.y);N.value=Math.round(V.width);
-M.value=Math.round(V.height)}function A(){if(null!=g){var V=parseFloat(z.value),Q=parseFloat(L.value),S=parseFloat(N.value),U=parseFloat(M.value);if(isFinite(V)&&isFinite(Q)&&isFinite(S)&&isFinite(U)&&0<S&&0<U){var Y=x.geometry.clone();Y.x=V;Y.y=Q;Y.width=S;Y.height=U;g.model.setGeometry(x,Y);g.model.setStyle(x,F+J());g.selectAll()}}}function J(){var V=y.checked,Q=E.checked,S=x.geometry;0>S.x?(S.width+=S.x,S.x=0):S.x+S.width>B&&(S.width=B-S.x,S.x=Math.min(S.x,B));0>S.y?(S.height+=S.y,S.y=0):S.y+S.height>
-C&&(S.height=C-S.y,S.y=Math.min(S.y,C));var U=S.x/B*100,Y=100-(S.x+S.width)/B*100,X=100-(S.y+S.height)/C*100;return"inset("+mxUtils.format(S.y/C*100)+"% "+mxUtils.format(Y)+"% "+mxUtils.format(X)+"% "+mxUtils.format(U)+"%"+(V?" round "+u+"%":Q?" round 50%":"")+")"}function H(V){null!=g&&(!0!==V&&(g.model.setGeometry(x,n.clone()),u=5,O.value=u),g.model.setStyle(x,F+J()),g.selectAll(),v(),P.style.visibility=y.checked?"visible":"hidden")}var G=document.createElement("div");G.style.display="flex";G.style.flexDirection=
-"column";G.style.height="100%";var D=document.createElement("div");D.style.flex="1";D.style.minHeight="0";D.style.overflow="auto";D.style.border="1px solid";G.appendChild(D);var c=f.replace(";base64",""),g=null,l=null,n=null,u=5,x=new mxCell("",new mxGeometry(0,0,1,1),""),B=0,C=0,F="shape=image;fillColor=none;rotatable=0;cloneable=0;deletable=0;image="+c+";clipPath=",K="shape=image;fillColor=none;movable=0;resizable=0;editable=0;connectable=0;rotatable=0;deletable=0;opacity=40;image="+c+";",I="shape=image;fillColor=none;movable=0;resizable=0;editable=0;connectable=0;rotatable=0;deletable=0;image="+
-c+";",R=new Image;R.onload=function(){function V(){g.model.setStyle(x,F+J());v()}B=R.naturalWidth;C=R.naturalHeight;n=new mxGeometry(.15*B,.15*C,.7*B,.7*C);x.geometry=n.clone();g=new Graph(D);g.autoExtend=!1;g.autoScroll=!1;g.setGridEnabled(!1);g.setEnabled(!0);g.setPanning(!0);g.setConnectable(!1);g.getRubberband().setEnabled(!1);g.graphHandler.allowLivePreview=!1;g.centerZoom=!0;g.background="#ffffff";var Q=g.createVertexHandler;g.createVertexHandler=function(){var la=Q.apply(this,arguments);la.livePreview=
-!1;return la};var S=g.isCellSelectable;g.isCellSelectable=function(la){return la===x&&S.apply(this,arguments)};l=new mxCell("",new mxGeometry(0,0,B,C),K);l.vertex=!0;g.addCell(l);if(null!=k)try{if("inset"==k.substring(0,5)){var U=x.geometry,Y=k.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),X=parseFloat(Y[0]),Z=parseFloat(Y[1]),aa=parseFloat(Y[2]),da=parseFloat(Y[3]);isFinite(X)&&isFinite(Z)&&isFinite(aa)&&isFinite(da)?(U.x=da/100*B,U.y=X/100*C,U.width=(100-Z)/100*B-U.x,U.height=(100-aa)/100*C-U.y,"round"==
-Y[4]?"50%"==Y[5]?E.setAttribute("checked","checked"):(u=parseInt(Y[5]),O.value=u,y.setAttribute("checked","checked"),P.style.visibility="visible"):m.setAttribute("checked","checked")):k=null}else k=null}catch(la){}x.style=F+(k?k:J());x.vertex=!0;g.addCell(x);g.selectAll();g.addListener(mxEvent.CELLS_MOVED,V);g.addListener(mxEvent.CELLS_RESIZED,V);var fa=g.graphHandler.mouseUp,ba=g.graphHandler.mouseDown;g.graphHandler.mouseUp=function(){fa.apply(this,arguments);null!=l&&g.model.setStyle(l,K)};g.graphHandler.mouseDown=
-function(){ba.apply(this,arguments);null!=l&&g.model.setStyle(l,I)};g.dblClick=function(){};var ia=g.getSelectionModel().changeSelection;g.getSelectionModel().changeSelection=function(){ia.call(this,[x],[x])};v();p()};R.onerror=function(){R.onload=null;R.src=Editor.errorImage};R.src=f;var W=document.createElement("div");W.style.display="flex";W.style.flexShrink="0";W.style.alignItems="center";W.style.justifyContent="center";W.style.paddingTop="6px";f=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),
+image:H.preview})}0<A.entries.length&&p.push(A)}for(t=0;t<k.length;t++)if(null==b.sidebar.enabledLibraries)p.push(k[t]);else{A={title:k[t].title,entries:[]};for(J=0;J<k[t].entries.length;J++)0<=mxUtils.indexOf(b.sidebar.enabledLibraries,k[t].entries[J].id)&&A.entries.push(k[t].entries[J]);0<A.entries.length&&p.push(A)}k=p;if(f){t=mxUtils.bind(this,function(K){for(var I=0;I<K.length;I++)(function(T){var W=document.createElement("div");W.className="geMoreShapesSectionHeader";mxUtils.write(W,T.title);
+G.appendChild(W);for(var q=0;q<T.entries.length;q++)(function(z){var L=document.createElement("div");L.className="geMoreShapesItem";L.setAttribute("title",z.title+" ("+z.id+")");var N=document.createElement("input");N.setAttribute("type","checkbox");N.checked=b.sidebar.isEntryVisible(z.id);N.defaultChecked=N.checked;L.appendChild(N);var M=document.createElement("span");mxUtils.write(M,z.title);L.appendChild(M);G.appendChild(L);M=function(m){if(null==m||"INPUT"!=mxEvent.getSource(m).nodeName){D.style.textAlign=
+"center";D.style.padding="0px";D.style.color="";D.innerText="";if(null!=z.desc){var y=document.createElement("pre");y.style.boxSizing="border-box";y.style.fontFamily="inherit";y.style.margin="20px";y.style.right="0px";y.style.textAlign="left";mxUtils.write(y,z.desc);D.appendChild(y)}null!=z.imageCallback?z.imageCallback(D):null!=z.image?(y=document.createElement("img"),y.setAttribute("border","0"),y.style.maxWidth="100%",y.setAttribute("src",z.image),D.appendChild(y)):null==z.desc&&(D.style.padding=
+"20px",D.style.color="rgb(179, 179, 179)",mxUtils.write(D,mxResources.get("noPreview")));null!=c&&c.classList.remove("geMoreShapesItemSelected");c=L;c.classList.add("geMoreShapesItemSelected");null!=m&&mxEvent.consume(m)}};mxEvent.addListener(L,"click",M);mxEvent.addListener(L,"dblclick",function(m){N.checked=!N.checked;mxEvent.consume(m)});g.push(function(){return N.checked?z.id:null});0==I&&0==q&&M()})(T.entries[q])})(K[I])});J=document.createElement("div");J.className="geDialogTitle";mxUtils.write(J,
+mxResources.get("shapes"));J.style.position="absolute";J.style.top="0px";J.style.left="0px";J.style.lineHeight="40px";J.style.height="40px";J.style.right="0px";var G=document.createElement("div"),D=document.createElement("div");G.style.position="absolute";G.style.top="40px";G.style.left="0px";G.style.width="220px";G.style.bottom="70px";G.style.overflow="auto";D.className="geMoreShapesPreview";D.style.position="absolute";D.style.left="220px";D.style.right="0px";D.style.top="40px";D.style.bottom="70px";
+D.style.overflow="auto";D.style.textAlign="center";var c=null,g=[];t(k);d.appendChild(J);d.appendChild(G);d.appendChild(D);k=document.createElement("div");k.className="geDialogFooter";k.style.position="absolute";k.style.display="flex";k.style.alignItems="center";k.style.paddingRight="16px";k.style.paddingLeft="16px";k.style.left="0px";k.style.right="0px";k.style.bottom="0px";k.style.height="70px";t=document.createElement("div");t.className="geMoreShapesFooterChecks";J=document.createElement("label");
+J.className="geMoreShapesFooterCheck";var l=document.createElement("input");l.setAttribute("type","checkbox");l.checked=b.sidebar.sidebarTitles;l.defaultChecked=l.checked;J.appendChild(l);f=document.createElement("span");mxUtils.write(f,mxResources.get("labels"));J.appendChild(f);t.appendChild(J);var n=document.createElement("input");n.setAttribute("type","checkbox");if(isLocalStorage||mxClient.IS_CHROMEAPP)J=document.createElement("label"),J.className="geMoreShapesFooterCheck",n.checked=!0,n.defaultChecked=
+!0,J.appendChild(n),f=document.createElement("span"),mxUtils.write(f,mxResources.get("rememberThisSetting")),J.appendChild(f),t.appendChild(J);k.appendChild(t);t=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});t.className="geBtn";J=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();for(var K=[],I=0;I<g.length;I++){var T=g[I].apply(this,arguments);null!=T&&K.push(T)}"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||!Editor.isSettingsEnabled()||
+(I=mxUtils.indexOf(K,".scratchpad"),null!=b.scratchpad!=(0<=I&&0<K.splice(I,1).length)&&b.toggleScratchpad(),I=mxUtils.indexOf(K,"search"),mxSettings.settings.search=0<=I&&0<K.splice(I,1).length,b.sidebar.showPalette("search",mxSettings.settings.search),n.checked&&mxSettings.save());b.sidebar.showEntries(K.join(";"),n.checked,!0);b.setSidebarTitles(l.checked,n.checked)});J.className="geBtn gePrimaryBtn";f=document.createElement("div");f.style.flex="1";f.style.textAlign="right";b.editor.cancelFirst?
+(f.appendChild(t),f.appendChild(J)):(f.appendChild(J),f.appendChild(t));k.appendChild(f)}else{var u=document.createElement("table");t=document.createElement("tbody");d.style.height="100%";d.style.overflow="auto";J=document.createElement("tr");u.style.width="100%";f=document.createElement("td");p=document.createElement("td");v=document.createElement("td");var x=mxUtils.bind(this,function(K,I,T){var W=document.createElement("input");W.type="checkbox";u.appendChild(W);W.checked=b.sidebar.isEntryVisible(T);
+var q=document.createElement("span");mxUtils.write(q,I);I=document.createElement("div");I.style.display="block";I.appendChild(W);I.appendChild(q);mxEvent.addListener(q,"click",function(z){W.checked=!W.checked;mxEvent.consume(z)});K.appendChild(I);return function(){return W.checked?T:null}});J.appendChild(f);J.appendChild(p);J.appendChild(v);t.appendChild(J);u.appendChild(t);g=[];var B=0;for(t=0;t<k.length;t++)for(J=0;J<k[t].entries.length;J++)B++;var C=[f,p,v],E=0;for(t=0;t<k.length;t++)(function(K){for(var I=
+0;I<K.entries.length;I++){var T=K.entries[I];g.push(x(C[Math.floor(E/(B/3))],T.title,T.id));E++}})(k[t]);d.appendChild(u);k=document.createElement("div");k.style.marginTop="18px";k.style.textAlign="center";n=document.createElement("input");isLocalStorage&&(n.setAttribute("type","checkbox"),n.checked=!0,n.defaultChecked=!0,k.appendChild(n),t=document.createElement("span"),mxUtils.write(t," "+mxResources.get("rememberThisSetting")),k.appendChild(t),mxEvent.addListener(t,"click",function(K){n.checked=
+!n.checked;mxEvent.consume(K)}));d.appendChild(k);t=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});t.className="geBtn";J=mxUtils.button(mxResources.get("apply"),function(){for(var K=["search"],I=0;I<g.length;I++){var T=g[I].apply(this,arguments);null!=T&&K.push(T)}b.sidebar.showEntries(0<K.length?K.join(";"):"",n.checked);b.hideDialog()});J.className="geBtn gePrimaryBtn";k=document.createElement("div");k.style.marginTop="26px";k.style.textAlign="right";b.editor.cancelFirst?(k.appendChild(t),
+k.appendChild(J)):(k.appendChild(J),k.appendChild(t))}d.appendChild(k);this.container=d},PluginsDialog=function(b,f,k,d){function p(){J=!0;if(0==A.length)v.innerText=mxResources.get("noPlugins");else{v.innerText="";for(var g=0;g<A.length;g++){var l=document.createElement("span");l.style.display="flex";l.style.alignItems="center";l.style.whiteSpace="nowrap";var n=document.createElement("img");n.src=Editor.trashImage;n.style.position="relative";n.style.cursor="pointer";n.style.marginRight="4px";n.style.display=
+"inline-block";n.style.width="18px";n.setAttribute("title",mxResources.get("delete"));l.appendChild(n);mxUtils.write(l,A[g]);v.appendChild(l);mxUtils.br(v);mxEvent.addListener(n,"click",function(u){return function(){b.confirm(mxResources.get("delete")+' "'+A[u]+'"?',function(){null!=k&&k(A[u]);A.splice(u,1);p()})}}(g))}}}var t=document.createElement("div"),v=document.createElement("div");v.style.height="180px";v.style.overflow="auto";var A=mxSettings.getPlugins().slice(),J=!1;t.appendChild(v);p();
+J=!1;var H=mxUtils.button(mxResources.get("add"),null!=f?function(){f(function(g){g&&0>mxUtils.indexOf(A,g)&&A.push(g);p()})}:function(){var g=document.createElement("div"),l=document.createElement("span");l.style.marginTop="6px";mxUtils.write(l,mxResources.get("builtinPlugins")+": ");g.appendChild(l);var n=document.createElement("select");n.style.width="150px";for(l=0;l<App.publicPlugin.length;l++){var u=document.createElement("option");mxUtils.write(u,App.publicPlugin[l]);u.value=App.publicPlugin[l];
+n.appendChild(u)}g.appendChild(n);mxUtils.br(g);mxUtils.br(g);l=mxUtils.button(mxResources.get("custom")+"...",function(){var x=new FilenameDialog(b,"",mxResources.get("add"),function(B){b.hideDialog();if(null!=B&&0<B.length){B=B.split(";");for(var C=0;C<B.length;C++){var E=B[C],K=App.pluginRegistry[E];null!=K&&(E=K);0<E.length&&0>mxUtils.indexOf(A,E)&&A.push(E)}p()}},mxResources.get("enterValue")+" ("+mxResources.get("url")+")");b.showDialog(x.container,300,80,!0,!0);x.init()});l.className="geBtn";
+ALLOW_CUSTOM_PLUGINS||(l.style.display="none");g=new CustomDialog(b,g,mxUtils.bind(this,function(){var x=App.pluginRegistry[n.value];0>mxUtils.indexOf(A,x)&&(A.push(x),p())}),null,null,null,l);b.showDialog(g.container,360,100,!0,!0)});H.className="geBtn";var G=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});G.className="geBtn";var D=mxUtils.button(d?mxResources.get("close"):mxResources.get("apply"),function(){J?(mxSettings.setPlugins(A),mxSettings.save(),b.hideDialog(),b.alert(mxResources.get("restartForChangeRequired"))):
+b.hideDialog()});D.className="geBtn gePrimaryBtn";var c=document.createElement("div");c.style.marginTop="14px";c.style.textAlign="right";b.isOffline()||c.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/plugins"));b.editor.cancelFirst?(d||c.appendChild(G),c.appendChild(H),c.appendChild(D)):(c.appendChild(H),c.appendChild(D),d||c.appendChild(G));t.appendChild(c);this.container=t},CropImageDialog=function(b,f,k,d){function p(){null!=g&&(D.style.overflow="hidden",g.maxFitScale=null,g.fit(8),
+g.center(),D.style.overflow="auto")}function t(V){var Q=document.createElement("span");Q.style.marginLeft="6px";Q.style.fontSize="11px";mxUtils.write(Q,V);W.appendChild(Q);V=document.createElement("input");V.setAttribute("type","text");V.style.cssText="width:46px;margin:0 2px;text-align:right;";W.appendChild(V);return V}function v(){var V=x.geometry;z.value=Math.round(V.x);L.value=Math.round(V.y);N.value=Math.round(V.width);M.value=Math.round(V.height)}function A(){if(null!=g){var V=parseFloat(z.value),
+Q=parseFloat(L.value),R=parseFloat(N.value),U=parseFloat(M.value);if(isFinite(V)&&isFinite(Q)&&isFinite(R)&&isFinite(U)&&0<R&&0<U){var Y=x.geometry.clone();Y.x=V;Y.y=Q;Y.width=R;Y.height=U;g.model.setGeometry(x,Y);g.model.setStyle(x,E+J());g.selectAll()}}}function J(){var V=y.checked,Q=F.checked,R=x.geometry;0>R.x?(R.width+=R.x,R.x=0):R.x+R.width>B&&(R.width=B-R.x,R.x=Math.min(R.x,B));0>R.y?(R.height+=R.y,R.y=0):R.y+R.height>C&&(R.height=C-R.y,R.y=Math.min(R.y,C));var U=R.x/B*100,Y=100-(R.x+R.width)/
+B*100,X=100-(R.y+R.height)/C*100;return"inset("+mxUtils.format(R.y/C*100)+"% "+mxUtils.format(Y)+"% "+mxUtils.format(X)+"% "+mxUtils.format(U)+"%"+(V?" round "+u+"%":Q?" round 50%":"")+")"}function H(V){null!=g&&(!0!==V&&(g.model.setGeometry(x,n.clone()),u=5,O.value=u),g.model.setStyle(x,E+J()),g.selectAll(),v(),P.style.visibility=y.checked?"visible":"hidden")}var G=document.createElement("div");G.style.display="flex";G.style.flexDirection="column";G.style.height="100%";var D=document.createElement("div");
+D.style.flex="1";D.style.minHeight="0";D.style.overflow="auto";D.style.border="1px solid";G.appendChild(D);var c=f.replace(";base64",""),g=null,l=null,n=null,u=5,x=new mxCell("",new mxGeometry(0,0,1,1),""),B=0,C=0,E="shape=image;fillColor=none;rotatable=0;cloneable=0;deletable=0;image="+c+";clipPath=",K="shape=image;fillColor=none;movable=0;resizable=0;editable=0;connectable=0;rotatable=0;deletable=0;opacity=40;image="+c+";",I="shape=image;fillColor=none;movable=0;resizable=0;editable=0;connectable=0;rotatable=0;deletable=0;image="+
+c+";",T=new Image;T.onload=function(){function V(){g.model.setStyle(x,E+J());v()}B=T.naturalWidth;C=T.naturalHeight;n=new mxGeometry(.15*B,.15*C,.7*B,.7*C);x.geometry=n.clone();g=new Graph(D);g.autoExtend=!1;g.autoScroll=!1;g.setGridEnabled(!1);g.setEnabled(!0);g.setPanning(!0);g.setConnectable(!1);g.getRubberband().setEnabled(!1);g.graphHandler.allowLivePreview=!1;g.centerZoom=!0;g.background="#ffffff";var Q=g.createVertexHandler;g.createVertexHandler=function(){var la=Q.apply(this,arguments);la.livePreview=
+!1;return la};var R=g.isCellSelectable;g.isCellSelectable=function(la){return la===x&&R.apply(this,arguments)};l=new mxCell("",new mxGeometry(0,0,B,C),K);l.vertex=!0;g.addCell(l);if(null!=k)try{if("inset"==k.substring(0,5)){var U=x.geometry,Y=k.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),X=parseFloat(Y[0]),Z=parseFloat(Y[1]),aa=parseFloat(Y[2]),da=parseFloat(Y[3]);isFinite(X)&&isFinite(Z)&&isFinite(aa)&&isFinite(da)?(U.x=da/100*B,U.y=X/100*C,U.width=(100-Z)/100*B-U.x,U.height=(100-aa)/100*C-U.y,"round"==
+Y[4]?"50%"==Y[5]?F.setAttribute("checked","checked"):(u=parseInt(Y[5]),O.value=u,y.setAttribute("checked","checked"),P.style.visibility="visible"):m.setAttribute("checked","checked")):k=null}else k=null}catch(la){}x.style=E+(k?k:J());x.vertex=!0;g.addCell(x);g.selectAll();g.addListener(mxEvent.CELLS_MOVED,V);g.addListener(mxEvent.CELLS_RESIZED,V);var fa=g.graphHandler.mouseUp,ba=g.graphHandler.mouseDown;g.graphHandler.mouseUp=function(){fa.apply(this,arguments);null!=l&&g.model.setStyle(l,K)};g.graphHandler.mouseDown=
+function(){ba.apply(this,arguments);null!=l&&g.model.setStyle(l,I)};g.dblClick=function(){};var ia=g.getSelectionModel().changeSelection;g.getSelectionModel().changeSelection=function(){ia.call(this,[x],[x])};v();p()};T.onerror=function(){T.onload=null;T.src=Editor.errorImage};T.src=f;var W=document.createElement("div");W.style.display="flex";W.style.flexShrink="0";W.style.alignItems="center";W.style.justifyContent="center";W.style.paddingTop="6px";f=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),
function(){null!=g&&g.zoomIn()});c=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),function(){null!=g&&g.zoomOut()});var q=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){p()});W.appendChild(f);W.appendChild(c);W.appendChild(q);var z=t("X"),L=t("Y"),N=t("W"),M=t("H");mxEvent.addListener(z,"change",A);mxEvent.addListener(L,"change",A);mxEvent.addListener(N,"change",A);mxEvent.addListener(M,"change",A);G.appendChild(W);f=document.createElement("div");
f.style.whiteSpace="nowrap";f.style.display="flex";f.style.flexShrink="0";f.style.alignItems="center";f.style.justifyContent="center";var m=document.createElement("input");m.setAttribute("type","radio");m.setAttribute("id","croppingRect");m.setAttribute("name","croppingShape");m.setAttribute("checked","checked");m.style.margin="5px";f.appendChild(m);c=document.createElement("label");c.setAttribute("for","croppingRect");c.style.overflow="hidden";c.style.textOverflow="ellipsis";c.style.padding="3px";
-mxUtils.write(c,mxResources.get("rectangle"));f.appendChild(c);var y=document.createElement("input");y.setAttribute("type","radio");y.setAttribute("id","croppingRounded");y.setAttribute("name","croppingShape");y.style.margin="5px";f.appendChild(y);c=document.createElement("label");c.setAttribute("for","croppingRounded");c.style.overflow="hidden";c.style.textOverflow="ellipsis";c.style.padding="3px";mxUtils.write(c,mxResources.get("rounded"));f.appendChild(c);var E=document.createElement("input");
-E.setAttribute("type","radio");E.setAttribute("id","croppingEllipse");E.setAttribute("name","croppingShape");E.style.margin="5px";f.appendChild(E);c=document.createElement("label");c.setAttribute("for","croppingEllipse");c.style.overflow="hidden";c.style.textOverflow="ellipsis";c.style.padding="3px";mxUtils.write(c,mxResources.get("ellipse"));f.appendChild(c);G.appendChild(f);mxEvent.addListener(m,"change",H);mxEvent.addListener(y,"change",H);mxEvent.addListener(E,"change",H);var P=document.createElement("div");
+mxUtils.write(c,mxResources.get("rectangle"));f.appendChild(c);var y=document.createElement("input");y.setAttribute("type","radio");y.setAttribute("id","croppingRounded");y.setAttribute("name","croppingShape");y.style.margin="5px";f.appendChild(y);c=document.createElement("label");c.setAttribute("for","croppingRounded");c.style.overflow="hidden";c.style.textOverflow="ellipsis";c.style.padding="3px";mxUtils.write(c,mxResources.get("rounded"));f.appendChild(c);var F=document.createElement("input");
+F.setAttribute("type","radio");F.setAttribute("id","croppingEllipse");F.setAttribute("name","croppingShape");F.style.margin="5px";f.appendChild(F);c=document.createElement("label");c.setAttribute("for","croppingEllipse");c.style.overflow="hidden";c.style.textOverflow="ellipsis";c.style.padding="3px";mxUtils.write(c,mxResources.get("ellipse"));f.appendChild(c);G.appendChild(f);mxEvent.addListener(m,"change",H);mxEvent.addListener(y,"change",H);mxEvent.addListener(F,"change",H);var P=document.createElement("div");
P.style.textAlign="center";P.style.flexShrink="0";P.style.visibility="hidden";var O=document.createElement("input");O.setAttribute("type","range");O.setAttribute("min","1");O.setAttribute("max","49");O.setAttribute("value",u);O.setAttribute("title",mxResources.get("arcSize"));P.appendChild(O);G.appendChild(P);mxEvent.addListener(O,"change",function(){u=this.value;H(!0)});f=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});f.className="geBtn";c=mxUtils.button(mxResources.get("apply"),
-function(){d(J(),x.geometry.width,x.geometry.height);b.hideDialog()});c.className="geBtn gePrimaryBtn";q=mxUtils.button(mxResources.get("reset"),function(){d(null,B,C);b.hideDialog()});q.className="geBtn";var T=document.createElement("div");T.style.flexShrink="0";T.style.marginTop="10px";T.style.whiteSpace="nowrap";T.style.display="flex";T.style.justifyContent="flex-end";b.editor.cancelFirst?(T.appendChild(f),T.appendChild(q),T.appendChild(c)):(T.appendChild(q),T.appendChild(c),T.appendChild(f));
-G.appendChild(T);this.container=G},EditGeometryDialog=function(b,f){var k=b.editor.graph,d=1==f.length?k.getCellGeometry(f[0]):null,p=document.createElement("div"),t=document.createElement("table"),v=document.createElement("tbody"),A=document.createElement("tr"),J=document.createElement("td"),H=document.createElement("td");t.style.paddingLeft="6px";mxUtils.write(J,mxResources.get("relative")+":");var G=document.createElement("input");G.setAttribute("type","checkbox");null!=d&&d.relative&&(G.setAttribute("checked",
+function(){d(J(),x.geometry.width,x.geometry.height);b.hideDialog()});c.className="geBtn gePrimaryBtn";q=mxUtils.button(mxResources.get("reset"),function(){d(null,B,C);b.hideDialog()});q.className="geBtn";var S=document.createElement("div");S.style.flexShrink="0";S.style.marginTop="10px";S.style.whiteSpace="nowrap";S.style.display="flex";S.style.justifyContent="flex-end";b.editor.cancelFirst?(S.appendChild(f),S.appendChild(q),S.appendChild(c)):(S.appendChild(q),S.appendChild(c),S.appendChild(f));
+G.appendChild(S);this.container=G},EditGeometryDialog=function(b,f){var k=b.editor.graph,d=1==f.length?k.getCellGeometry(f[0]):null,p=document.createElement("div"),t=document.createElement("table"),v=document.createElement("tbody"),A=document.createElement("tr"),J=document.createElement("td"),H=document.createElement("td");t.style.paddingLeft="6px";mxUtils.write(J,mxResources.get("relative")+":");var G=document.createElement("input");G.setAttribute("type","checkbox");null!=d&&d.relative&&(G.setAttribute("checked",
"checked"),G.defaultChecked=!0);this.init=function(){G.focus()};H.appendChild(G);A.appendChild(J);A.appendChild(H);v.appendChild(A);A=document.createElement("tr");J=document.createElement("td");H=document.createElement("td");mxUtils.write(J,mxResources.get("left")+":");var D=document.createElement("input");D.setAttribute("type","text");D.style.width="100px";D.value=null!=d?d.x:"";H.appendChild(D);A.appendChild(J);A.appendChild(H);v.appendChild(A);A=document.createElement("tr");J=document.createElement("td");
H=document.createElement("td");mxUtils.write(J,mxResources.get("top")+":");var c=document.createElement("input");c.setAttribute("type","text");c.style.width="100px";c.value=null!=d?d.y:"";H.appendChild(c);A.appendChild(J);A.appendChild(H);v.appendChild(A);A=document.createElement("tr");J=document.createElement("td");H=document.createElement("td");mxUtils.write(J,mxResources.get("dx")+":");var g=document.createElement("input");g.setAttribute("type","text");g.style.width="100px";g.value=null!=d&&null!=
d.offset?d.offset.x:"";H.appendChild(g);A.appendChild(J);A.appendChild(H);v.appendChild(A);A=document.createElement("tr");J=document.createElement("td");H=document.createElement("td");mxUtils.write(J,mxResources.get("dy")+":");var l=document.createElement("input");l.setAttribute("type","text");l.style.width="100px";l.value=null!=d&&null!=d.offset?d.offset.y:"";H.appendChild(l);A.appendChild(J);A.appendChild(H);v.appendChild(A);A=document.createElement("tr");J=document.createElement("td");H=document.createElement("td");
mxUtils.write(J,mxResources.get("width")+":");var n=document.createElement("input");n.setAttribute("type","text");n.style.width="100px";n.value=null!=d?d.width:"";H.appendChild(n);A.appendChild(J);A.appendChild(H);v.appendChild(A);A=document.createElement("tr");J=document.createElement("td");H=document.createElement("td");mxUtils.write(J,mxResources.get("height")+":");var u=document.createElement("input");u.setAttribute("type","text");u.style.width="100px";u.value=null!=d?d.height:"";H.appendChild(u);
A.appendChild(J);A.appendChild(H);v.appendChild(A);A=document.createElement("tr");J=document.createElement("td");H=document.createElement("td");mxUtils.write(J,mxResources.get("rotation")+":");var x=document.createElement("input");x.setAttribute("type","text");x.style.width="100px";x.value=1==f.length?mxUtils.getValue(k.getCellStyle(f[0]),mxConstants.STYLE_ROTATION,0):"";H.appendChild(x);A.appendChild(J);A.appendChild(H);v.appendChild(A);t.appendChild(v);p.appendChild(t);d=mxUtils.button(mxResources.get("cancel"),
-function(){b.hideDialog()});d.className="geBtn";var B=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();k.getModel().beginUpdate();try{for(var C=0;C<f.length;C++){var F=k.getCellGeometry(f[C]);null!=F&&(F=F.clone(),k.isCellMovable(f[C])&&(F.relative=G.checked,0<mxUtils.trim(D.value).length&&(F.x=Number(D.value)),0<mxUtils.trim(c.value).length&&(F.y=Number(c.value)),0<mxUtils.trim(g.value).length&&(null==F.offset&&(F.offset=new mxPoint),F.offset.x=Number(g.value)),0<mxUtils.trim(l.value).length&&
-(null==F.offset&&(F.offset=new mxPoint),F.offset.y=Number(l.value))),k.isCellResizable(f[C])&&(0<mxUtils.trim(n.value).length&&(F.width=Number(n.value)),0<mxUtils.trim(u.value).length&&(F.height=Number(u.value))),k.getModel().setGeometry(f[C],F));0<mxUtils.trim(x.value).length&&k.setCellStyles(mxConstants.STYLE_ROTATION,Number(x.value),[f[C]])}}finally{k.getModel().endUpdate()}});B.className="geBtn gePrimaryBtn";mxEvent.addListener(p,"keypress",function(C){13==C.keyCode&&B.click()});t=document.createElement("div");
-t.style.marginTop="20px";t.style.textAlign="right";b.editor.cancelFirst?(t.appendChild(d),t.appendChild(B)):(t.appendChild(B),t.appendChild(d));p.appendChild(t);this.container=p},LibraryDialog=function(b,f,k,d,p,t,v){function A(q){for(q=document.elementFromPoint(q.clientX,q.clientY);null!=q&&q.parentNode!=n;)q=q.parentNode;var z=null;if(null!=q){var L=n.firstChild;for(z=0;null!=L&&L!=q;)L=L.nextSibling,z++}return z}function J(q,z,L,N,M,m,y,E,P){try{if(b.spinner.stop(),null==z||"image/"==z.substring(0,
-6))if(null==q&&null!=y||null==x[q]){var O=function(){Z.innerText="";Z.style.cursor="pointer";Z.style.whiteSpace="nowrap";Z.style.textOverflow="ellipsis";mxUtils.write(Z,null!=aa.title&&0<aa.title.length?aa.title:mxResources.get("untitled"));Z.style.color=null==aa.title||0==aa.title.length?"#d0d0d0":""};n.style.backgroundImage="";u.style.display="none";var T=M,V=m;if(M>b.maxImageSize||m>b.maxImageSize){var Q=Math.min(1,Math.min(b.maxImageSize/Math.max(1,M)),b.maxImageSize/Math.max(1,m));M*=Q;m*=Q}T>
-V?(V=Math.round(100*V/T),T=100):(T=Math.round(100*T/V),V=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!=q){var U=document.createElement("img");U.setAttribute("src",K.convert(q));U.style.width=T+"px";U.style.height=V+"px";U.style.margin="10px";U.style.paddingBottom=Math.floor((100-V)/
-2)+"px";U.style.paddingLeft=Math.floor((100-T)/2)+"px";S.appendChild(U)}else if(null!=y){var Y=b.stringToCells("<"==y.xml.charAt(0)?y.xml:Graph.decompress(y.xml));0<Y.length&&(b.sidebar.createThumb(Y,100,100,S,null,!0,!1,null,null,c.shapeBackgroundColor),S.firstChild.style.display="inline-block",S.firstChild.style.cursor="")}var X=document.createElement("img");X.setAttribute("src",Editor.closeBlackImage);X.setAttribute("border","0");X.setAttribute("title",mxResources.get("delete"));X.setAttribute("align",
-"top");X.style.paddingTop="4px";X.style.position="absolute";X.style.marginLeft="-12px";X.style.zIndex="1";X.style.cursor="pointer";mxEvent.addListener(X,"dragstart",function(la){mxEvent.consume(la)});(function(la,ka,pa){mxEvent.addListener(X,"click",function(Ba){x[ka]=null;for(var sa=0;sa<D.length;sa++)if(null!=D[sa].data&&D[sa].data==ka||null!=D[sa].xml&&null!=pa&&D[sa].xml==pa.xml){D.splice(sa,1);break}S.parentNode.removeChild(la);0==D.length&&(n.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",
-u.style.display="");mxEvent.consume(Ba)});mxEvent.addListener(X,"dblclick",function(Ba){mxEvent.consume(Ba)})})(S,q,y);S.appendChild(X);S.style.marginBottom="30px";var Z=document.createElement("div");Z.style.position="absolute";Z.style.boxSizing="border-box";Z.style.bottom="-18px";Z.style.left="10px";Z.style.right="10px";Z.style.backgroundColor="light-dark(#ffffff, transparent)";Z.style.overflow="hidden";Z.style.textAlign="center";Z.setAttribute("title",mxResources.get("rename"));var aa=null;null!=
-q?(aa={data:q,w:M,h:m,title:P},null!=E&&(aa.aspect=E),x[q]=U,D.push(aa)):null!=y&&(y.aspect="fixed",D.push(y),aa=y);mxEvent.addListener(Z,"keydown",function(la){13==la.keyCode&&null!=F&&(F(),F=null,mxEvent.consume(la))});O();S.appendChild(Z);mxEvent.addListener(Z,"mousedown",function(la){"true"!=Z.getAttribute("contentEditable")&&mxEvent.consume(la)});Y=function(la){if(mxClient.IS_IOS||mxClient.IS_FF||!(null==document.documentMode||9<document.documentMode)){var ka=new FilenameDialog(b,aa.title||"",
-mxResources.get("ok"),function(pa){null!=pa&&(aa.title=pa,O())},mxResources.get("enterValue"));b.showDialog(ka.container,300,80,!0,!0);ka.init();mxEvent.consume(la)}else if("true"!=Z.getAttribute("contentEditable")){null!=F&&(F(),F=null);if(null==aa.title||0==aa.title.length)Z.innerText="";Z.style.textOverflow="";Z.style.whiteSpace="";Z.style.cursor="text";Z.style.color="";Z.setAttribute("contentEditable","true");mxUtils.setPrefixedStyle(Z.style,"user-select","text");Z.focus();document.execCommand("selectAll",
-!1,null);F=function(){Z.removeAttribute("contentEditable");Z.style.cursor="pointer";aa.title=mxUtils.getTextContent(Z);O()};mxEvent.consume(la)}};mxEvent.addListener(Z,"click",Y);mxEvent.addListener(S,"dblclick",Y);n.appendChild(S);mxEvent.addListener(S,"dragstart",function(la){null==F&&(null==q&&null!=y&&(X.style.visibility="hidden",Z.style.visibility="hidden"),mxClient.IS_FF&&null!=y.xml&&la.dataTransfer.setData("Text",y.xml),B=A(la),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);X.style.visibility="";Z.style.visibility=""},0))});mxEvent.addListener(S,"dragend",function(la){"hidden"==X.style.visibility&&(X.style.visibility="",Z.style.visibility="");B=null;mxUtils.setOpacity(S,100);mxUtils.setPrefixedStyle(S.style,"transform",null)})}else I||(I=!0,b.handleError({message:mxResources.get("fileExists")}));else{M=!1;try{if(T=mxUtils.parseXml(q),"mxlibrary"==T.documentElement.nodeName){V=JSON.parse(mxUtils.getTextContent(T.documentElement));
-if(null!=V&&0<V.length)for(var da=0;da<V.length;da++)null!=V[da].xml?J(null,null,0,0,0,0,V[da]):J(V[da].data,null,0,0,V[da].w,V[da].h,null,"fixed",V[da].title);M=!0}else if("mxfile"==T.documentElement.nodeName){var fa=T.documentElement.getElementsByTagName("diagram");for(da=0;da<fa.length;da++){var ba=Editor.getDiagramNodeXml(fa[da]);Y=b.stringToCells(ba);if(0<Y.length){var ia=b.editor.graph.getBoundingBoxFromGeometry(Y);null!=ia&&J(null,null,0,0,0,0,{xml:ba,w:ia.width,h:ia.height})}}M=!0}}catch(la){null!=
+function(){b.hideDialog()});d.className="geBtn";var B=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();k.getModel().beginUpdate();try{for(var C=0;C<f.length;C++){var E=k.getCellGeometry(f[C]);null!=E&&(E=E.clone(),k.isCellMovable(f[C])&&(E.relative=G.checked,0<mxUtils.trim(D.value).length&&(E.x=Number(D.value)),0<mxUtils.trim(c.value).length&&(E.y=Number(c.value)),0<mxUtils.trim(g.value).length&&(null==E.offset&&(E.offset=new mxPoint),E.offset.x=Number(g.value)),0<mxUtils.trim(l.value).length&&
+(null==E.offset&&(E.offset=new mxPoint),E.offset.y=Number(l.value))),k.isCellResizable(f[C])&&(0<mxUtils.trim(n.value).length&&(E.width=Number(n.value)),0<mxUtils.trim(u.value).length&&(E.height=Number(u.value))),k.getModel().setGeometry(f[C],E));0<mxUtils.trim(x.value).length&&k.setCellStyles(mxConstants.STYLE_ROTATION,Number(x.value),[f[C]])}}finally{k.getModel().endUpdate()}});B.className="geBtn gePrimaryBtn";mxEvent.addListener(p,"keypress",function(C){13==C.keyCode&&B.click()});t=document.createElement("div");
+t.style.marginTop="20px";t.style.textAlign="right";b.editor.cancelFirst?(t.appendChild(d),t.appendChild(B)):(t.appendChild(B),t.appendChild(d));p.appendChild(t);this.container=p},LibraryDialog=function(b,f,k,d,p,t,v){function A(q){for(q=document.elementFromPoint(q.clientX,q.clientY);null!=q&&q.parentNode!=n;)q=q.parentNode;var z=null;if(null!=q){var L=n.firstChild;for(z=0;null!=L&&L!=q;)L=L.nextSibling,z++}return z}function J(q,z,L,N,M,m,y,F,P){try{if(b.spinner.stop(),null==z||"image/"==z.substring(0,
+6))if(null==q&&null!=y||null==x[q]){var O=function(){Z.innerText="";Z.style.cursor="pointer";Z.style.whiteSpace="nowrap";Z.style.textOverflow="ellipsis";mxUtils.write(Z,null!=aa.title&&0<aa.title.length?aa.title:mxResources.get("untitled"));Z.style.color=null==aa.title||0==aa.title.length?"#d0d0d0":""};n.style.backgroundImage="";u.style.display="none";var S=M,V=m;if(M>b.maxImageSize||m>b.maxImageSize){var Q=Math.min(1,Math.min(b.maxImageSize/Math.max(1,M)),b.maxImageSize/Math.max(1,m));M*=Q;m*=Q}S>
+V?(V=Math.round(100*V/S),S=100):(S=Math.round(100*S/V),V=100);var R=document.createElement("div");R.setAttribute("draggable","true");R.style.display="inline-block";R.style.position="relative";R.style.padding="0 12px";R.style.cursor="move";mxUtils.setPrefixedStyle(R.style,"transition","transform .1s ease-in-out");if(null!=q){var U=document.createElement("img");U.setAttribute("src",K.convert(q));U.style.width=S+"px";U.style.height=V+"px";U.style.margin="10px";U.style.paddingBottom=Math.floor((100-V)/
+2)+"px";U.style.paddingLeft=Math.floor((100-S)/2)+"px";R.appendChild(U)}else if(null!=y){var Y=b.stringToCells("<"==y.xml.charAt(0)?y.xml:Graph.decompress(y.xml));0<Y.length&&(b.sidebar.createThumb(Y,100,100,R,null,!0,!1,null,null,c.shapeBackgroundColor),R.firstChild.style.display="inline-block",R.firstChild.style.cursor="")}var X=document.createElement("img");X.setAttribute("src",Editor.closeBlackImage);X.setAttribute("border","0");X.setAttribute("title",mxResources.get("delete"));X.setAttribute("align",
+"top");X.style.paddingTop="4px";X.style.position="absolute";X.style.marginLeft="-12px";X.style.zIndex="1";X.style.cursor="pointer";mxEvent.addListener(X,"dragstart",function(la){mxEvent.consume(la)});(function(la,ka,pa){mxEvent.addListener(X,"click",function(Ba){x[ka]=null;for(var sa=0;sa<D.length;sa++)if(null!=D[sa].data&&D[sa].data==ka||null!=D[sa].xml&&null!=pa&&D[sa].xml==pa.xml){D.splice(sa,1);break}R.parentNode.removeChild(la);0==D.length&&(n.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",
+u.style.display="");mxEvent.consume(Ba)});mxEvent.addListener(X,"dblclick",function(Ba){mxEvent.consume(Ba)})})(R,q,y);R.appendChild(X);R.style.marginBottom="30px";var Z=document.createElement("div");Z.style.position="absolute";Z.style.boxSizing="border-box";Z.style.bottom="-18px";Z.style.left="10px";Z.style.right="10px";Z.style.backgroundColor="light-dark(#ffffff, transparent)";Z.style.overflow="hidden";Z.style.textAlign="center";Z.setAttribute("title",mxResources.get("rename"));var aa=null;null!=
+q?(aa={data:q,w:M,h:m,title:P},null!=F&&(aa.aspect=F),x[q]=U,D.push(aa)):null!=y&&(y.aspect="fixed",D.push(y),aa=y);mxEvent.addListener(Z,"keydown",function(la){13==la.keyCode&&null!=E&&(E(),E=null,mxEvent.consume(la))});O();R.appendChild(Z);mxEvent.addListener(Z,"mousedown",function(la){"true"!=Z.getAttribute("contentEditable")&&mxEvent.consume(la)});Y=function(la){if(mxClient.IS_IOS||mxClient.IS_FF||!(null==document.documentMode||9<document.documentMode)){var ka=new FilenameDialog(b,aa.title||"",
+mxResources.get("ok"),function(pa){null!=pa&&(aa.title=pa,O())},mxResources.get("enterValue"));b.showDialog(ka.container,300,80,!0,!0);ka.init();mxEvent.consume(la)}else if("true"!=Z.getAttribute("contentEditable")){null!=E&&(E(),E=null);if(null==aa.title||0==aa.title.length)Z.innerText="";Z.style.textOverflow="";Z.style.whiteSpace="";Z.style.cursor="text";Z.style.color="";Z.setAttribute("contentEditable","true");mxUtils.setPrefixedStyle(Z.style,"user-select","text");Z.focus();document.execCommand("selectAll",
+!1,null);E=function(){Z.removeAttribute("contentEditable");Z.style.cursor="pointer";aa.title=mxUtils.getTextContent(Z);O()};mxEvent.consume(la)}};mxEvent.addListener(Z,"click",Y);mxEvent.addListener(R,"dblclick",Y);n.appendChild(R);mxEvent.addListener(R,"dragstart",function(la){null==E&&(null==q&&null!=y&&(X.style.visibility="hidden",Z.style.visibility="hidden"),mxClient.IS_FF&&null!=y.xml&&la.dataTransfer.setData("Text",y.xml),B=A(la),mxClient.IS_GC&&(R.style.opacity="0.9"),window.setTimeout(function(){mxUtils.setPrefixedStyle(R.style,
+"transform","scale(0.5,0.5)");mxUtils.setOpacity(R,30);X.style.visibility="";Z.style.visibility=""},0))});mxEvent.addListener(R,"dragend",function(la){"hidden"==X.style.visibility&&(X.style.visibility="",Z.style.visibility="");B=null;mxUtils.setOpacity(R,100);mxUtils.setPrefixedStyle(R.style,"transform",null)})}else I||(I=!0,b.handleError({message:mxResources.get("fileExists")}));else{M=!1;try{if(S=mxUtils.parseXml(q),"mxlibrary"==S.documentElement.nodeName){V=JSON.parse(mxUtils.getTextContent(S.documentElement));
+if(null!=V&&0<V.length)for(var da=0;da<V.length;da++)null!=V[da].xml?J(null,null,0,0,0,0,V[da]):J(V[da].data,null,0,0,V[da].w,V[da].h,null,"fixed",V[da].title);M=!0}else if("mxfile"==S.documentElement.nodeName){var fa=S.documentElement.getElementsByTagName("diagram");for(da=0;da<fa.length;da++){var ba=Editor.getDiagramNodeXml(fa[da]);Y=b.stringToCells(ba);if(0<Y.length){var ia=b.editor.graph.getBoundingBoxFromGeometry(Y);null!=ia&&J(null,null,0,0,0,0,{xml:ba,w:ia.width,h:ia.height})}}M=!0}}catch(la){null!=
window.console&&console.error("Error in library dialog: "+la)}M||(b.spinner.stop(),b.handleError({message:mxResources.get("errorLoadingFile")}))}}catch(la){null!=window.console&&console.log("Error in library dialog: "+la)}return null}function H(q){q.dataTransfer.dropEffect=null!=B?"move":"copy";q.stopPropagation();q.preventDefault()}function G(q){q.stopPropagation();q.preventDefault();I=!1;C=A(q);if(null!=B)null!=C&&C<n.children.length?(D.splice(C>B?C-1:C,0,D.splice(B,1)[0]),n.insertBefore(n.children[B],
-n.children[C])):(D.push(D.splice(B,1)[0]),n.appendChild(n.children[B]));else if(0<q.dataTransfer.files.length)b.importFiles(q.dataTransfer.files,0,0,b.maxImageSize,R(q));else if(0<=mxUtils.indexOf(q.dataTransfer.types,"text/uri-list")){var z=decodeURIComponent(q.dataTransfer.getData("text/uri-list"));(/(\.jpg)($|\?)/i.test(z)||/(\.png)($|\?)/i.test(z)||/(\.gif)($|\?)/i.test(z)||/(\.svg)($|\?)/i.test(z))&&b.loadImage(z,function(L){J(z,null,0,0,L.width,L.height);n.scrollTop=n.scrollHeight})}q.stopPropagation();
+n.children[C])):(D.push(D.splice(B,1)[0]),n.appendChild(n.children[B]));else if(0<q.dataTransfer.files.length)b.importFiles(q.dataTransfer.files,0,0,b.maxImageSize,T(q));else if(0<=mxUtils.indexOf(q.dataTransfer.types,"text/uri-list")){var z=decodeURIComponent(q.dataTransfer.getData("text/uri-list"));(/(\.jpg)($|\?)/i.test(z)||/(\.png)($|\?)/i.test(z)||/(\.gif)($|\?)/i.test(z)||/(\.svg)($|\?)/i.test(z))&&b.loadImage(z,function(L){J(z,null,0,0,L.width,L.height);n.scrollTop=n.scrollHeight})}q.stopPropagation();
q.preventDefault()}var D=[],c=b.editor.graph;k=document.createElement("div");k.style.height="100%";var g=document.createElement("div");g.style.whiteSpace="nowrap";g.style.height="40px";k.appendChild(g);mxUtils.write(g,mxResources.get("filename")+":");null==f&&(f=b.defaultLibraryName+".xml");var l=document.createElement("input");l.setAttribute("value",f);l.style.marginRight="20px";l.style.marginLeft="10px";l.style.width="500px";null==p||p.isRenamable()||l.setAttribute("disabled","true");this.init=
function(){if(null==p||p.isRenamable())l.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?l.select():document.execCommand("selectAll",!1,null)};g.appendChild(l);Editor.enableUncompressedLibraries&&(l.style.width="420px",f=document.createElement("input"),f.setAttribute("type","checkbox"),f.style.marginRight="10px",g.appendChild(f),mxUtils.write(g,mxResources.get("compressed")));var n=document.createElement("div");n.style.borderWidth="1px 0px 1px 0px";n.style.borderColor="#d3d3d3";n.style.borderStyle=
"solid";n.style.marginTop="6px";n.style.overflow="auto";n.style.height="340px";n.style.backgroundPosition="center center";n.style.backgroundRepeat="no-repeat";0==D.length&&Graph.fileSupport&&(n.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"));k.appendChild(u);
-var x={},B=null,C=null,F=null;g=function(q){"true"!=mxEvent.getSource(q).getAttribute("contentEditable")&&null!=F&&(F(),F=null,mxEvent.consume(q))};mxEvent.addListener(n,"mousedown",g);mxEvent.addListener(n,"pointerdown",g);mxEvent.addListener(n,"touchstart",g);var K=new mxUrlConverter,I=!1;if(null!=d)for(g=0;g<d.length;g++)f=d[g],J(f.data,null,0,0,f.w,f.h,f,f.aspect,f.title);mxEvent.addListener(n,"dragleave",function(q){u.style.cursor="";for(var z=mxEvent.getSource(q);null!=z;){if(z==n||z==u){q.stopPropagation();
-q.preventDefault();break}z=z.parentNode}});var R=function(q){return function(z,L,N,M,m,y,E,P,O){null!=O&&EditorUi.isVisioFilename(O.name)?b.importVisio(O,mxUtils.bind(this,function(T){J(T,L,N,M,m,y,E,"fixed",mxEvent.isAltDown(q)?null:E.substring(0,E.lastIndexOf(".")).replace(/_/g," "))})):null!=O&&(new XMLHttpRequest).upload&&b.isRemoteFileFormat(z,O.name)?b.isExternalDataComms()?b.parseFile(O,mxUtils.bind(this,function(T){4==T.readyState&&(b.spinner.stop(),200<=T.status&&299>=T.status&&(J(T.responseText,
-L,N,M,m,y,E,"fixed",mxEvent.isAltDown(q)?null:E.substring(0,E.lastIndexOf(".")).replace(/_/g," ")),n.scrollTop=n.scrollHeight))})):(b.spinner.stop(),b.showError(mxResources.get("error"),mxResources.get("notInOffline"))):(J(z,L,N,M,m,y,E,"fixed",mxEvent.isAltDown(q)?null:E.substring(0,E.lastIndexOf(".")).replace(/_/g," ")),n.scrollTop=n.scrollHeight)}};mxEvent.addListener(n,"dragover",H);mxEvent.addListener(n,"drop",G);mxEvent.addListener(u,"dragover",H);mxEvent.addListener(u,"drop",G);k.appendChild(n);
+var x={},B=null,C=null,E=null;g=function(q){"true"!=mxEvent.getSource(q).getAttribute("contentEditable")&&null!=E&&(E(),E=null,mxEvent.consume(q))};mxEvent.addListener(n,"mousedown",g);mxEvent.addListener(n,"pointerdown",g);mxEvent.addListener(n,"touchstart",g);var K=new mxUrlConverter,I=!1;if(null!=d)for(g=0;g<d.length;g++)f=d[g],J(f.data,null,0,0,f.w,f.h,f,f.aspect,f.title);mxEvent.addListener(n,"dragleave",function(q){u.style.cursor="";for(var z=mxEvent.getSource(q);null!=z;){if(z==n||z==u){q.stopPropagation();
+q.preventDefault();break}z=z.parentNode}});var T=function(q){return function(z,L,N,M,m,y,F,P,O){null!=O&&EditorUi.isVisioFilename(O.name)?b.importVisio(O,mxUtils.bind(this,function(S){J(S,L,N,M,m,y,F,"fixed",mxEvent.isAltDown(q)?null:F.substring(0,F.lastIndexOf(".")).replace(/_/g," "))})):null!=O&&(new XMLHttpRequest).upload&&b.isRemoteFileFormat(z,O.name)?b.isExternalDataComms()?b.parseFile(O,mxUtils.bind(this,function(S){4==S.readyState&&(b.spinner.stop(),200<=S.status&&299>=S.status&&(J(S.responseText,
+L,N,M,m,y,F,"fixed",mxEvent.isAltDown(q)?null:F.substring(0,F.lastIndexOf(".")).replace(/_/g," ")),n.scrollTop=n.scrollHeight))})):(b.spinner.stop(),b.showError(mxResources.get("error"),mxResources.get("notInOffline"))):(J(z,L,N,M,m,y,F,"fixed",mxEvent.isAltDown(q)?null:F.substring(0,F.lastIndexOf(".")).replace(/_/g," ")),n.scrollTop=n.scrollHeight)}};mxEvent.addListener(n,"dragover",H);mxEvent.addListener(n,"drop",G);mxEvent.addListener(u,"dragover",H);mxEvent.addListener(u,"drop",G);k.appendChild(n);
d=document.createElement("div");d.style.textAlign="right";d.style.marginTop="20px";g=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});g.setAttribute("id","btnCancel");g.className="geBtn";b.editor.cancelFirst&&d.appendChild(g);"draw.io"!=b.getServiceName()||null==p||p.constructor!=DriveLibrary&&p.constructor!=GitHubLibrary||(f=mxUtils.button(mxResources.get("link"),function(){b.getPublicUrl(p,function(q){if(null!=q){var z=b.getSearch("create title mode url drive splash state clibs ui".split(" "));
z+=(0==z.length?"?":"&")+"splash=0&clibs=U"+encodeURIComponent(q);q=new EmbedDialog(b,window.location.protocol+"//"+window.location.host+"/"+z,null,null,null,null,"Check out the library I made using @drawio");b.showDialog(q.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));q.init()}else p.constructor==DriveLibrary?b.showError(mxResources.get("error"),mxResources.get("diagramIsNotPublic"),mxResources.get("share"),mxUtils.bind(this,function(){b.drive.showPermissions(p.getId(),p)}),
null,mxResources.get("ok"),mxUtils.bind(this,function(){})):b.handleError({message:mxResources.get("diagramIsNotPublic")})})}),f.className="geBtn",d.appendChild(f));f=mxUtils.button(mxResources.get("export"),function(){var q=b.createLibraryDataFromImages(D),z=l.value;/(\.xml)$/i.test(z)||(z+=".xml");b.isLocalFileSave()?b.saveLocalFile(q,z,"text/xml",null,null,null!=v?v:!0,null,"xml"):(new mxXmlRequest(SAVE_URL,"filename="+encodeURIComponent(z)+"&format=xml&xml="+encodeURIComponent(q))).simulate(document,
-"_blank")});f.setAttribute("id","btnDownload");f.className="geBtn";d.appendChild(f);if(Graph.fileSupport){if(null==b.libDlgFileInputElt){var W=document.createElement("input");W.setAttribute("multiple","multiple");W.setAttribute("type","file");mxEvent.addListener(W,"change",function(q){I=!1;b.importFiles(W.files,0,0,b.maxImageSize,function(z,L,N,M,m,y,E,P,O){null!=W.files&&(R(q)(z,L,N,M,m,y,E,P,O),W.type="",W.type="file",W.value="")});n.scrollTop=n.scrollHeight});W.style.display="none";document.body.appendChild(W);
-b.libDlgFileInputElt=W}f=mxUtils.button(mxResources.get("import"),function(){null!=F&&(F(),F=null);b.libDlgFileInputElt.click()});f.setAttribute("id","btnAddImage");f.className="geBtn";d.appendChild(f)}f=mxUtils.button(mxResources.get("addImages"),function(){null!=F&&(F(),F=null);b.showImageDialog(mxResources.get("addImageUrl"),"",function(q,z,L){I=!1;if(null!=q){if("data:image/"==q.substring(0,11)){var N=q.indexOf(",");0<N&&(q=q.substring(0,N)+";base64,"+q.substring(N+1))}J(q,null,0,0,z,L);n.scrollTop=
-n.scrollHeight}})});f.setAttribute("id","btnAddImageUrl");f.className="geBtn";d.appendChild(f);this.saveBtnClickHandler=function(q,z,L,N){b.saveLibrary(q,z,L,N)};f=mxUtils.button(mxResources.get("save"),mxUtils.bind(this,function(){null!=F&&(F(),F=null);this.saveBtnClickHandler(l.value,D,p,t)}));f.setAttribute("id","btnSave");f.className="geBtn gePrimaryBtn";d.appendChild(f);b.editor.cancelFirst||d.appendChild(g);k.appendChild(d);this.container=k},EditShapeDialog=function(b,f,k){var d=document.createElement("div");
+"_blank")});f.setAttribute("id","btnDownload");f.className="geBtn";d.appendChild(f);if(Graph.fileSupport){if(null==b.libDlgFileInputElt){var W=document.createElement("input");W.setAttribute("multiple","multiple");W.setAttribute("type","file");mxEvent.addListener(W,"change",function(q){I=!1;b.importFiles(W.files,0,0,b.maxImageSize,function(z,L,N,M,m,y,F,P,O){null!=W.files&&(T(q)(z,L,N,M,m,y,F,P,O),W.type="",W.type="file",W.value="")});n.scrollTop=n.scrollHeight});W.style.display="none";document.body.appendChild(W);
+b.libDlgFileInputElt=W}f=mxUtils.button(mxResources.get("import"),function(){null!=E&&(E(),E=null);b.libDlgFileInputElt.click()});f.setAttribute("id","btnAddImage");f.className="geBtn";d.appendChild(f)}f=mxUtils.button(mxResources.get("addImages"),function(){null!=E&&(E(),E=null);b.showImageDialog(mxResources.get("addImageUrl"),"",function(q,z,L){I=!1;if(null!=q){if("data:image/"==q.substring(0,11)){var N=q.indexOf(",");0<N&&(q=q.substring(0,N)+";base64,"+q.substring(N+1))}J(q,null,0,0,z,L);n.scrollTop=
+n.scrollHeight}})});f.setAttribute("id","btnAddImageUrl");f.className="geBtn";d.appendChild(f);this.saveBtnClickHandler=function(q,z,L,N){b.saveLibrary(q,z,L,N)};f=mxUtils.button(mxResources.get("save"),mxUtils.bind(this,function(){null!=E&&(E(),E=null);this.saveBtnClickHandler(l.value,D,p,t)}));f.setAttribute("id","btnSave");f.className="geBtn gePrimaryBtn";d.appendChild(f);b.editor.cancelFirst||d.appendChild(g);k.appendChild(d);this.container=k},EditShapeDialog=function(b,f,k){var d=document.createElement("div");
d.style.position="absolute";d.style.left="30px";d.style.right="30px";d.style.top="30px";d.style.bottom="30px";var p=document.createElement("div");p.style.position="absolute";p.style.top="0px";mxUtils.write(p,k);d.appendChild(p);k=document.createElement("div");k.style.position="absolute";k.style.width="100%";k.style.display="flex";k.style.alignItems="stretch";k.style.top="24px";k.style.bottom="50px";var t=document.createElement("textarea");t.style.outline="none";t.style.resize="horizontal";t.style.width=
"430px";t.style.maxWidth="calc(100% - 100px)";t.style.flexShrink="0";t.style.borderRadius="4px";t.style.marginRight="4px";k.appendChild(t);var v=document.createElement("div");v.style.borderWidth="1px";v.style.borderStyle="solid";v.style.padding="20px";v.style.flexGrow="1";v.style.borderRadius="4px";mxEvent.disableContextMenu(v);k.appendChild(v);var A=new Graph(v);A.setEnabled(!1);var J=b.editor.graph.cloneCell(f);A.addCells([J]);p=A.view.getState(J);var H="";null!=p.shape&&null!=p.shape.stencil&&
(H=mxUtils.getPrettyXml(p.shape.stencil.desc));mxUtils.write(t,H||"");d.appendChild(k);k=document.createElement("div");k.style.position="absolute";k.style.display="flex";k.style.alignItems="center";k.style.justifyContent="end";k.style.bottom="6px";k.style.height="30px";k.style.width="100%";b.isOffline()||k.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/shape-complex-create-edit"));p=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});p.className="geBtn";b.editor.cancelFirst&&
@@ -12790,7 +12796,7 @@ this.container=d},CustomDialog=function(b,f,k,d,p,t,v,A,J,H,G,D){var c=document.
p=mxUtils.button(p||mxResources.get("ok"),mxUtils.bind(this,function(){H||b.hideDialog(null,null,this.container);if(null!=k){var l=k();if("string"===typeof l){b.showError(mxResources.get("error"),l);return}}H&&b.hideDialog(null,null,this.container)}));g.appendChild(p);p.className="geBtn gePrimaryBtn";b.editor.cancelFirst||g.appendChild(f);if(null!=G)for(A=0;A<G.length;A++)(function(l,n,u){l=mxUtils.button(l,function(x){n(x)});null!=u&&l.setAttribute("title",u);l.className="geBtn";g.appendChild(l)})(G[A][0],
G[A][1],G[A][2]);c.appendChild(g);this.cancelBtn=f;this.okButton=p;this.container=c},BtnDialog=function(b,f,k,d){var p=document.createElement("div");p.style.textAlign="center";var t=document.createElement("p");t.style.fontSize="16pt";t.style.padding="0px";t.style.margin="0px";t.style.color="gray";mxUtils.write(t,mxResources.get("done"));var v="Unknown",A=document.createElement("img");A.setAttribute("border","0");A.setAttribute("align","absmiddle");A.style.marginRight="10px";f==b.drive?(v=mxResources.get("googleDrive"),
A.src=IMAGE_PATH+"/google-drive-logo-white.svg"):f==b.dropbox?(v=mxResources.get("dropbox"),A.src=IMAGE_PATH+"/dropbox-logo-white.svg"):f==b.oneDrive?(v=mxResources.get("oneDrive"),A.src=IMAGE_PATH+"/onedrive-logo-white.svg"):f==b.gitHub?(v=mxResources.get("github"),A.src=IMAGE_PATH+"/github-logo-white.svg"):f==b.gitLab?(v=mxResources.get("gitlab"),A.src=IMAGE_PATH+"/gitlab-logo.svg"):f==b.trello&&(v=mxResources.get("trello"),A.src=IMAGE_PATH+"/trello-logo-white.svg");b=document.createElement("p");
-mxUtils.write(b,mxResources.get("authorizedIn",[v],"You are now authorized in {1}"));k=mxUtils.button(k,d);k.insertBefore(A,k.firstChild);k.style.marginTop="6px";k.className="geBigButton";k.style.fontSize="18px";k.style.padding="14px";p.appendChild(t);p.appendChild(b);p.appendChild(k);this.container=p},FontDialog=function(b,f,k,d,p){function t(F){this.style.border="";13==F.keyCode&&C.click()}var v=document.createElement("table"),A=document.createElement("tbody");v.style.marginTop="8px";var J=document.createElement("tr");
+mxUtils.write(b,mxResources.get("authorizedIn",[v],"You are now authorized in {1}"));k=mxUtils.button(k,d);k.insertBefore(A,k.firstChild);k.style.marginTop="6px";k.className="geBigButton";k.style.fontSize="18px";k.style.padding="14px";p.appendChild(t);p.appendChild(b);p.appendChild(k);this.container=p},FontDialog=function(b,f,k,d,p){function t(E){this.style.border="";13==E.keyCode&&C.click()}var v=document.createElement("table"),A=document.createElement("tbody");v.style.marginTop="8px";var J=document.createElement("tr");
var H=document.createElement("td");H.colSpan=2;H.style.whiteSpace="nowrap";H.style.fontSize="10pt";H.style.fontWeight="bold";var G=document.createElement("input");G.style.cssText="margin-right:8px;margin-bottom:8px;";G.setAttribute("value","sysfonts");G.setAttribute("type","radio");G.setAttribute("name","current-fontdialog");G.setAttribute("id","fontdialog-sysfonts");H.appendChild(G);var D=document.createElement("label");D.setAttribute("for","fontdialog-sysfonts");mxUtils.write(D,mxResources.get("sysFonts",
null,"System Fonts"));H.appendChild(D);J.appendChild(H);A.appendChild(J);J=document.createElement("tr");H=document.createElement("td");H.style.whiteSpace="nowrap";H.style.fontSize="10pt";H.style.width="120px";H.style.paddingLeft="15px";mxUtils.write(H,mxResources.get("fontname",null,"Font Name")+":");J.appendChild(H);var c=document.createElement("input");"s"==d&&c.setAttribute("value",f);c.style.marginLeft="4px";c.style.width="250px";c.className="dlg_fontName_s";if(null!=Editor.localFonts){var g=
document.createElement("datalist");g.id="fontdialog-localfonts";for(H=0;H<Editor.localFonts.length;H++)D=document.createElement("option"),D.value=Editor.localFonts[H],g.appendChild(D);c.setAttribute("list","fontdialog-localfonts")}H=document.createElement("td");H.appendChild(c);null!=g&&H.appendChild(g);J.appendChild(H);A.appendChild(J);J=document.createElement("tr");H=document.createElement("td");H.colSpan=2;H.style.whiteSpace="nowrap";H.style.fontSize="10pt";H.style.fontWeight="bold";var l=document.createElement("input");
@@ -12799,9 +12805,9 @@ J.appendChild(H);"0"!=urlParams.isGoogleFontsEnabled&&A.appendChild(J);J=documen
J.appendChild(H);"0"!=urlParams.isGoogleFontsEnabled&&A.appendChild(J);J=document.createElement("tr");H=document.createElement("td");H.colSpan=2;H.style.whiteSpace="nowrap";H.style.fontSize="10pt";H.style.fontWeight="bold";var u=document.createElement("input");u.style.cssText="margin-right:8px;margin-bottom:8px;";u.setAttribute("value","webfonts");u.setAttribute("type","radio");u.setAttribute("name","current-fontdialog");u.setAttribute("id","fontdialog-webfonts");H.appendChild(u);D=document.createElement("label");
D.setAttribute("for","fontdialog-webfonts");mxUtils.write(D,mxResources.get("webfonts",null,"Web Fonts"));H.appendChild(D);J.appendChild(H);Editor.enableWebFonts&&A.appendChild(J);J=document.createElement("tr");H=document.createElement("td");H.style.whiteSpace="nowrap";H.style.fontSize="10pt";H.style.width="120px";H.style.paddingLeft="15px";mxUtils.write(H,mxResources.get("fontname",null,"Font Name")+":");J.appendChild(H);var x=document.createElement("input");"w"==d&&(Editor.enableWebFonts?x.setAttribute("value",
f):c.setAttribute("value",f));x.style.marginLeft="4px";x.style.width="250px";x.className="dlg_fontName_w";H=document.createElement("td");H.appendChild(x);J.appendChild(H);Editor.enableWebFonts&&A.appendChild(J);J=document.createElement("tr");H=document.createElement("td");H.style.whiteSpace="nowrap";H.style.fontSize="10pt";H.style.width="120px";H.style.paddingLeft="15px";mxUtils.write(H,mxResources.get("fontUrl",null,"Font URL")+":");J.appendChild(H);var B=document.createElement("input");B.setAttribute("value",
-k||"");B.style.marginLeft="4px";B.style.width="250px";B.className="dlg_fontUrl";H=document.createElement("td");H.appendChild(B);J.appendChild(H);Editor.enableWebFonts&&A.appendChild(J);this.init=function(){var F=c;"g"==d?F=n:"w"==d&&Editor.enableWebFonts&&(F=x);F.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?F.select():document.execCommand("selectAll",!1,null)};J=document.createElement("tr");H=document.createElement("td");H.colSpan=2;H.style.paddingTop="20px";H.style.whiteSpace=
-"nowrap";H.setAttribute("align","right");b.isOffline()||H.appendChild(b.createHelpIcon("https://www.drawio.com/blog/external-fonts"));f=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();p()});f.className="geBtn";b.editor.cancelFirst&&H.appendChild(f);var C=mxUtils.button(mxResources.get("apply"),function(){if(G.checked){var F=c.value;var K="s"}else if(l.checked){F=n.value;var I=Editor.GOOGLE_FONTS+encodeURIComponent(F).replace(/%20/g,"+");K="g"}else u.checked&&(F=x.value,I=B.value,
-K="w");var R=F;var W=I,q=K,z=/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/,L=v.querySelector(".dlg_fontName_"+q);null==L||null!=R&&0!=R.length?(L=v.querySelector(".dlg_fontUrl"),null==L||"w"!=q||z.test(W)?R=!0:(L.style.border="1px solid red",R=!1)):(L.style.border="1px solid red",R=!1);R&&(p(F,I,K),b.hideDialog())});C.className="geBtn gePrimaryBtn";mxEvent.addListener(c,"keypress",t);mxEvent.addListener(n,"keypress",t);mxEvent.addListener(x,"keypress",t);mxEvent.addListener(B,
+k||"");B.style.marginLeft="4px";B.style.width="250px";B.className="dlg_fontUrl";H=document.createElement("td");H.appendChild(B);J.appendChild(H);Editor.enableWebFonts&&A.appendChild(J);this.init=function(){var E=c;"g"==d?E=n:"w"==d&&Editor.enableWebFonts&&(E=x);E.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?E.select():document.execCommand("selectAll",!1,null)};J=document.createElement("tr");H=document.createElement("td");H.colSpan=2;H.style.paddingTop="20px";H.style.whiteSpace=
+"nowrap";H.setAttribute("align","right");b.isOffline()||H.appendChild(b.createHelpIcon("https://www.drawio.com/blog/external-fonts"));f=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();p()});f.className="geBtn";b.editor.cancelFirst&&H.appendChild(f);var C=mxUtils.button(mxResources.get("apply"),function(){if(G.checked){var E=c.value;var K="s"}else if(l.checked){E=n.value;var I=Editor.GOOGLE_FONTS+encodeURIComponent(E).replace(/%20/g,"+");K="g"}else u.checked&&(E=x.value,I=B.value,
+K="w");var T=E;var W=I,q=K,z=/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/,L=v.querySelector(".dlg_fontName_"+q);null==L||null!=T&&0!=T.length?(L=v.querySelector(".dlg_fontUrl"),null==L||"w"!=q||z.test(W)?T=!0:(L.style.border="1px solid red",T=!1)):(L.style.border="1px solid red",T=!1);T&&(p(E,I,K),b.hideDialog())});C.className="geBtn gePrimaryBtn";mxEvent.addListener(c,"keypress",t);mxEvent.addListener(n,"keypress",t);mxEvent.addListener(x,"keypress",t);mxEvent.addListener(B,
"keypress",t);mxEvent.addListener(c,"focus",function(){G.setAttribute("checked","checked");G.checked=!0});mxEvent.addListener(n,"focus",function(){l.setAttribute("checked","checked");l.checked=!0});mxEvent.addListener(x,"focus",function(){u.setAttribute("checked","checked");u.checked=!0});mxEvent.addListener(B,"focus",function(){u.setAttribute("checked","checked");u.checked=!0});H.appendChild(C);b.editor.cancelFirst||H.appendChild(f);J.appendChild(H);A.appendChild(J);v.appendChild(A);this.container=
v};
function AspectDialog(b,f,k,d,p){this.aspect={pageId:f||(b.pages?b.pages[0].getId():null),layerIds:k||[]};f=document.createElement("div");var t=document.createElement("h5");t.style.margin="0 0 10px";mxUtils.write(t,mxResources.get("pages"));f.appendChild(t);k=document.createElement("div");k.className="geAspectDlgList";f.appendChild(k);t=document.createElement("h5");t.style.margin="0 0 10px";mxUtils.write(t,mxResources.get("layers"));f.appendChild(t);t=document.createElement("div");t.className="geAspectDlgList";
@@ -12813,41 +12819,41 @@ AspectDialog.prototype.createPageItem=function(b,f,k){var d=document.createEleme
this.selectedPage=b;d.className+=" geAspectDlgListItemSelected";this.layersContainer.innerText="";this.selectedLayers={};this.okBtn.setAttribute("disabled","disabled");var t=p.model;t=t.getChildCells(t.getRoot());for(var v=0;v<t.length;v++)this.createLayerItem(t[v],b,p,k)});mxEvent.addListener(d,"click",f);this.aspect.pageId==b&&f()};
AspectDialog.prototype.createLayerItem=function(b,f,k,d){f=k.convertValueToString(b)||mxResources.get("background")||"Background";var p=document.createElement("div");p.setAttribute("data-layer-id",b.id);p.className="geAspectDlgListItem";p.innerHTML='<div style="max-width: 100%; max-height: 100%;"></div><div class="geAspectDlgListItemText">'+mxUtils.htmlEntities(f)+"</div>";this.layersContainer.appendChild(p);this.createViewer(p.childNodes[0],d,b.id);d=mxUtils.bind(this,function(){0<=p.className.indexOf("geAspectDlgListItemSelected")?
(p.className="geAspectDlgListItem",delete this.selectedLayers[b.id],mxUtils.isEmptyObject(this.selectedLayers)&&this.okBtn.setAttribute("disabled","disabled")):(p.className+=" geAspectDlgListItemSelected",this.selectedLayers[b.id]=!0,this.okBtn.removeAttribute("disabled"))});mxEvent.addListener(p,"click",d);-1!=this.aspect.layerIds.indexOf(b.id)&&d()};
-var FilePropertiesDialog=function(b,f){function k(F){var K=H;H=function(I,R){try{F(function(){K(I,R)},R)}catch(W){R(W)}}}var d=document.createElement("table"),p=document.createElement("tbody");d.style.width="100%";d.style.height="100%";d.style.tableLayout="fixed";var t=b.getCurrentFile(),v=null!=t&&null!=t.getTitle()?t.getTitle():b.defaultFilename,A=/(\.png)$/i.test(v),J=/(\.svg)$/i.test(v),H=function(F,K){F()},G=null!=t?t.isLocked():!1;var D=document.createElement("tr");var c=document.createElement("td");
-c.style.whiteSpace="nowrap";c.style.overflow="hidden";c.style.textOverflow="ellipsis";c.style.fontSize="10pt";mxUtils.write(c,mxResources.get("locked")+":");D.appendChild(c);var g=document.createElement("input");g.setAttribute("type","checkbox");G&&(g.setAttribute("checked","checked"),g.defaultChecked=!0);c=document.createElement("td");c.style.whiteSpace="nowrap";c.appendChild(g);D.appendChild(c);p.appendChild(D);this.init=function(){g.focus()};k(function(F,K){null!=b.fileNode&&G!=g.checked?window.setTimeout(function(){null!=
-t&&t.setLocked(g.checked);F()},0):F()});if(A||J){v=1;A=0;D=b.fileNode;null!=D&&(D.hasAttribute("scale")&&(v=parseFloat(D.getAttribute("scale"))),D.hasAttribute("border")&&(A=parseInt(D.getAttribute("border"))));D=document.createElement("tr");c=document.createElement("td");c.style.whiteSpace="nowrap";c.style.fontSize="10pt";mxUtils.write(c,mxResources.get("zoom")+":");D.appendChild(c);var l=document.createElement("input");l.setAttribute("value",100*v+"%");l.style.boxSizing="border-box";l.style.width=
+var FilePropertiesDialog=function(b,f){function k(E){var K=H;H=function(I,T){try{E(function(){K(I,T)},T)}catch(W){T(W)}}}var d=document.createElement("table"),p=document.createElement("tbody");d.style.width="100%";d.style.height="100%";d.style.tableLayout="fixed";var t=b.getCurrentFile(),v=null!=t&&null!=t.getTitle()?t.getTitle():b.defaultFilename,A=/(\.png)$/i.test(v),J=/(\.svg)$/i.test(v),H=function(E,K){E()},G=null!=t?t.isLocked():!1;var D=document.createElement("tr");var c=document.createElement("td");
+c.style.whiteSpace="nowrap";c.style.overflow="hidden";c.style.textOverflow="ellipsis";c.style.fontSize="10pt";mxUtils.write(c,mxResources.get("locked")+":");D.appendChild(c);var g=document.createElement("input");g.setAttribute("type","checkbox");G&&(g.setAttribute("checked","checked"),g.defaultChecked=!0);c=document.createElement("td");c.style.whiteSpace="nowrap";c.appendChild(g);D.appendChild(c);p.appendChild(D);this.init=function(){g.focus()};k(function(E,K){null!=b.fileNode&&G!=g.checked?window.setTimeout(function(){null!=
+t&&t.setLocked(g.checked);E()},0):E()});if(A||J){v=1;A=0;D=b.fileNode;null!=D&&(D.hasAttribute("scale")&&(v=parseFloat(D.getAttribute("scale"))),D.hasAttribute("border")&&(A=parseInt(D.getAttribute("border"))));D=document.createElement("tr");c=document.createElement("td");c.style.whiteSpace="nowrap";c.style.fontSize="10pt";mxUtils.write(c,mxResources.get("zoom")+":");D.appendChild(c);var l=document.createElement("input");l.setAttribute("value",100*v+"%");l.style.boxSizing="border-box";l.style.width=
"100%";c=document.createElement("td");c.style.whiteSpace="nowrap";c.appendChild(l);D.appendChild(c);p.appendChild(D);D=document.createElement("tr");c=document.createElement("td");c.style.whiteSpace="nowrap";c.style.fontSize="10pt";mxUtils.write(c,mxResources.get("borderWidth")+":");D.appendChild(c);var n=document.createElement("input");n.setAttribute("value",A);n.style.boxSizing="border-box";n.style.width="100%";c=document.createElement("td");c.style.whiteSpace="nowrap";c.appendChild(n);D.appendChild(c);
-p.appendChild(D);this.init=this.init||function(){l.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?l.select():document.execCommand("selectAll",!1,null)};k(function(F,K){null!=b.fileNode&&(b.fileNode.setAttribute("scale",Math.max(0,parseInt(l.value)/100)),b.fileNode.setAttribute("border",Math.max(0,parseInt(n.value))),null!=t&&t.fileChanged());F()})}else if(!/(\.html)$/i.test(v)&&!/(\.svg)$/i.test(v)){var u=null!=t?t.isCompressed():Editor.defaultCompressed;D=document.createElement("tr");
-c=document.createElement("td");c.style.whiteSpace="nowrap";c.style.overflow="hidden";c.style.textOverflow="ellipsis";c.style.fontSize="10pt";mxUtils.write(c,mxResources.get("compressed")+":");D.appendChild(c);var x=document.createElement("input");x.setAttribute("type","checkbox");u&&(x.setAttribute("checked","checked"),x.defaultChecked=!0);c=document.createElement("td");c.style.whiteSpace="nowrap";c.appendChild(x);D.appendChild(c);p.appendChild(D);this.init=this.init||function(){x.focus()};k(function(F,
-K){null!=b.fileNode&&u!=x.checked?window.setTimeout(function(){b.fileNode.setAttribute("compressed",x.checked?"true":"false");null!=t&&(t.compressionChanged(x.checked),t.fileChanged());F()},0):F()})}if(null!=t&&t.isRealtimeOptional()){D=document.createElement("tr");c=document.createElement("td");c.style.whiteSpace="nowrap";c.style.overflow="hidden";c.style.textOverflow="ellipsis";c.style.fontSize="10pt";mxUtils.write(c,mxResources.get("realtimeCollaboration")+":");D.appendChild(c);var B=document.createElement("input");
-B.setAttribute("type","checkbox");var C=t.isRealtimeEnabled();if(C="disabled"!=b.drive.getCustomProperty(t.desc,"collaboration"))B.setAttribute("checked","checked"),B.defaultChecked=!0;k(function(F,K){B.checked!=C?t.setRealtimeEnabled(B.checked,F,K):F()});this.init=null!=this.init?this.init:function(){B.focus()};c=document.createElement("td");c.style.whiteSpace="nowrap";v=document.createElement("div");v.style.display="flex";v.style.alignItems="center";v.style.justifyContent="start";v.appendChild(B);
+p.appendChild(D);this.init=this.init||function(){l.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?l.select():document.execCommand("selectAll",!1,null)};k(function(E,K){null!=b.fileNode&&(b.fileNode.setAttribute("scale",Math.max(0,parseInt(l.value)/100)),b.fileNode.setAttribute("border",Math.max(0,parseInt(n.value))),null!=t&&t.fileChanged());E()})}else if(!/(\.html)$/i.test(v)&&!/(\.svg)$/i.test(v)){var u=null!=t?t.isCompressed():Editor.defaultCompressed;D=document.createElement("tr");
+c=document.createElement("td");c.style.whiteSpace="nowrap";c.style.overflow="hidden";c.style.textOverflow="ellipsis";c.style.fontSize="10pt";mxUtils.write(c,mxResources.get("compressed")+":");D.appendChild(c);var x=document.createElement("input");x.setAttribute("type","checkbox");u&&(x.setAttribute("checked","checked"),x.defaultChecked=!0);c=document.createElement("td");c.style.whiteSpace="nowrap";c.appendChild(x);D.appendChild(c);p.appendChild(D);this.init=this.init||function(){x.focus()};k(function(E,
+K){null!=b.fileNode&&u!=x.checked?window.setTimeout(function(){b.fileNode.setAttribute("compressed",x.checked?"true":"false");null!=t&&(t.compressionChanged(x.checked),t.fileChanged());E()},0):E()})}if(null!=t&&t.isRealtimeOptional()){D=document.createElement("tr");c=document.createElement("td");c.style.whiteSpace="nowrap";c.style.overflow="hidden";c.style.textOverflow="ellipsis";c.style.fontSize="10pt";mxUtils.write(c,mxResources.get("realtimeCollaboration")+":");D.appendChild(c);var B=document.createElement("input");
+B.setAttribute("type","checkbox");var C=t.isRealtimeEnabled();if(C="disabled"!=b.drive.getCustomProperty(t.desc,"collaboration"))B.setAttribute("checked","checked"),B.defaultChecked=!0;k(function(E,K){B.checked!=C?t.setRealtimeEnabled(B.checked,E,K):E()});this.init=null!=this.init?this.init:function(){B.focus()};c=document.createElement("td");c.style.whiteSpace="nowrap";v=document.createElement("div");v.style.display="flex";v.style.alignItems="center";v.style.justifyContent="start";v.appendChild(B);
v.appendChild(b.menus.createHelpLink("https://github.com/jgraph/drawio/discussions/2672"));c.appendChild(v);D.appendChild(c);p.appendChild(D)}null!=t&&"draw.io"==b.getServiceName()&&0<t.getSize()&&"1"!=urlParams.embed&&(D=document.createElement("tr"),c=document.createElement("td"),c.style.whiteSpace="nowrap",c.style.overflow="hidden",c.style.textOverflow="ellipsis",c.style.fontSize="10pt",mxUtils.write(c,mxResources.get("size")+":"),D.appendChild(c),c=b.formatFileSize(t.getSize()),v=document.createElement("input"),
v.setAttribute("title",c),v.setAttribute("value",c),v.setAttribute("disabled","disabled"),v.style.boxSizing="border-box",v.style.width="100%",c=document.createElement("td"),c.style.whiteSpace="nowrap",c.appendChild(v),D.appendChild(c),p.appendChild(D));null!=f&&(D=document.createElement("tr"),c=document.createElement("td"),c.style.whiteSpace="nowrap",c.style.overflow="hidden",c.style.textOverflow="ellipsis",c.style.fontSize="10pt",mxUtils.write(c,mxResources.get("publicDiagramUrl")+":"),D.appendChild(c),
-v=document.createElement("a"),v.setAttribute("href",f),v.setAttribute("title",f),v.style.whiteSpace="nowrap",v.style.overflow="hidden",v.style.textOverflow="ellipsis",v.style.display="block",v.style.margin="2px",v.style.fontSize="10pt",mxUtils.write(v,f),mxEvent.addListener(v,"click",function(F){b.openLink(f);mxEvent.consume(F)}),c=document.createElement("td"),c.appendChild(v),D.appendChild(c),p.appendChild(D));null!=t&&null!=t.fileObject&&null!=t.fileObject.path&&(D=document.createElement("tr"),
+v=document.createElement("a"),v.setAttribute("href",f),v.setAttribute("title",f),v.style.whiteSpace="nowrap",v.style.overflow="hidden",v.style.textOverflow="ellipsis",v.style.display="block",v.style.margin="2px",v.style.fontSize="10pt",mxUtils.write(v,f),mxEvent.addListener(v,"click",function(E){b.openLink(f);mxEvent.consume(E)}),c=document.createElement("td"),c.appendChild(v),D.appendChild(c),p.appendChild(D));null!=t&&null!=t.fileObject&&null!=t.fileObject.path&&(D=document.createElement("tr"),
c=document.createElement("td"),c.style.whiteSpace="nowrap",c.style.overflow="hidden",c.style.textOverflow="ellipsis",c.style.fontSize="10pt",mxUtils.write(c,mxResources.get("pathFilename")+":"),D.appendChild(c),v=document.createElement("input"),v.setAttribute("title",t.fileObject.path),v.setAttribute("value",t.fileObject.path),v.setAttribute("disabled","disabled"),v.style.boxSizing="border-box",v.style.width="100%",c=document.createElement("td"),c.appendChild(v),D.appendChild(c),p.appendChild(D));
-this.init=null!=this.init?this.init:function(){};v=mxUtils.button(mxResources.get("apply"),function(){b.spinner.spin(document.body,mxResources.get("updatingDocument"))&&H(function(){b.spinner.stop();b.hideDialog()},function(F){b.spinner.stop();b.handleError(F,mxResources.get("error"))})});v.className="geBtn gePrimaryBtn";D=document.createElement("tr");c=document.createElement("td");c.colSpan=2;c.style.paddingTop="20px";c.style.whiteSpace="nowrap";c.setAttribute("align","right");A=mxUtils.button(mxResources.get("cancel"),
-function(){b.hideDialog()});A.className="geBtn";b.editor.cancelFirst&&c.appendChild(A);null!=b.fileNode&&(J=mxUtils.button(mxResources.get("editData")+"...",function(){b.hideDialog();var F={};try{var K=b.fileNode.getAttribute("vars");null!=K&&0<K.length&&(F=JSON.parse(K))}catch(W){}K=mxUtils.createXmlDocument().createElement("object");K.setAttribute("label","");for(var I in F)K.setAttribute(I,F[I]);F=b.createTemporaryGraph(b.editor.graph.getStylesheet());var R=new mxCell(K);F.getModel().add(F.getDefaultParent(),
-R);F.getModel().addListener(mxEvent.CHANGE,function(W,q){W=q.getProperty("edit").changes;for(q=0;q<W.length;q++)if(W[q]instanceof mxValueChange&&W[q].cell===R){for(var z={},L=W[q].value.attributes,N=0;N<L.length;N++)"label"!=L[N].nodeName&&(z[L[N].nodeName]=L[N].nodeValue);z=JSON.stringify(z);"{}"==z?b.fileNode.removeAttribute("vars"):b.fileNode.setAttribute("vars",z);b.updateFileVars();b.editor.graph.refresh();z=b.getCurrentFile();null!=z&&z.fileChanged()}});F=new EditDataDialog(b,R,F);b.showDialog(F.container,
-480,420,!0,!1,null,!1,null,new mxRectangle(0,0,440,220));F.init()}),J.className="geBtn",c.appendChild(J));c.appendChild(v);b.editor.cancelFirst||c.appendChild(A);D.appendChild(c);p.appendChild(D);d.appendChild(p);this.container=d},ConnectionPointsDialog=function(b,f){function k(){null!=p&&p.destroy()}var d=document.createElement("div");d.style.userSelect="none";d.style.display="flex";d.style.flexDirection="column";d.style.height="100%";var p=null;this.init=function(){function t(N,M,m){var y="shape=image;points=[];rotatable=0;resizable=0;connectable=0;editable=0;image="+
+this.init=null!=this.init?this.init:function(){};v=mxUtils.button(mxResources.get("apply"),function(){b.spinner.spin(document.body,mxResources.get("updatingDocument"))&&H(function(){b.spinner.stop();b.hideDialog()},function(E){b.spinner.stop();b.handleError(E,mxResources.get("error"))})});v.className="geBtn gePrimaryBtn";D=document.createElement("tr");c=document.createElement("td");c.colSpan=2;c.style.paddingTop="20px";c.style.whiteSpace="nowrap";c.setAttribute("align","right");A=mxUtils.button(mxResources.get("cancel"),
+function(){b.hideDialog()});A.className="geBtn";b.editor.cancelFirst&&c.appendChild(A);null!=b.fileNode&&(J=mxUtils.button(mxResources.get("editData")+"...",function(){b.hideDialog();var E={};try{var K=b.fileNode.getAttribute("vars");null!=K&&0<K.length&&(E=JSON.parse(K))}catch(W){}K=mxUtils.createXmlDocument().createElement("object");K.setAttribute("label","");for(var I in E)K.setAttribute(I,E[I]);E=b.createTemporaryGraph(b.editor.graph.getStylesheet());var T=new mxCell(K);E.getModel().add(E.getDefaultParent(),
+T);E.getModel().addListener(mxEvent.CHANGE,function(W,q){W=q.getProperty("edit").changes;for(q=0;q<W.length;q++)if(W[q]instanceof mxValueChange&&W[q].cell===T){for(var z={},L=W[q].value.attributes,N=0;N<L.length;N++)"label"!=L[N].nodeName&&(z[L[N].nodeName]=L[N].nodeValue);z=JSON.stringify(z);"{}"==z?b.fileNode.removeAttribute("vars"):b.fileNode.setAttribute("vars",z);b.updateFileVars();b.editor.graph.refresh();z=b.getCurrentFile();null!=z&&z.fileChanged()}});E=new EditDataDialog(b,T,E);b.showDialog(E.container,
+480,420,!0,!1,null,!1,null,new mxRectangle(0,0,440,220));E.init()}),J.className="geBtn",c.appendChild(J));c.appendChild(v);b.editor.cancelFirst||c.appendChild(A);D.appendChild(c);p.appendChild(D);d.appendChild(p);this.container=d},ConnectionPointsDialog=function(b,f){function k(){null!=p&&p.destroy()}var d=document.createElement("div");d.style.userSelect="none";d.style.display="flex";d.style.flexDirection="column";d.style.height="100%";var p=null;this.init=function(){function t(N,M,m){var y="shape=image;points=[];rotatable=0;resizable=0;connectable=0;editable=0;image="+
b.convertDataUri(mxConstraintHandler.prototype.pointImage.src)+";";N=new mxCell("",new mxGeometry(N,M,6,6),y);N.vertex=!0;N.cp=!0;N.constObj=m;return D.addCell(N)}function v(N){N=D.getSelectionCells();D.deleteCells(N)}function A(){var N=parseInt(W.value)||0;N=0>N?0:100<N?100:N;W.value=N;var M=parseInt(z.value)||0;M=0>M?0:100<M?100:M;z.value=M;var m=parseInt(q.value)||0,y=parseInt(L.value)||0;m=new mxConnectionConstraint(new mxPoint(N/100,M/100),!1,null,m,y);N=D.getConnectionPoint(l,m);M=D.getSelectionCell();
-if(null!=M){M.constObj=m;m=M.geometry.clone();y=D.view.scale;var E=D.view.translate;m.x=(N.x-3*y)/y-E.x;m.y=(N.y-3*y)/y-E.y;D.model.setGeometry(M,m)}}function J(N){if(N.constObj)return{x:N.constObj.point.x,y:N.constObj.point.y,dx:N.constObj.dx,dy:N.constObj.dy};var M=0,m=0,y=c.geometry,E=mxUtils.format((N.geometry.x+3-y.x)/y.width);N=mxUtils.format((N.geometry.y+3-y.y)/y.height);0>E?(M=E*y.width,E=0):1<E&&(M=(E-1)*y.width,E=1);0>N?(m=N*y.height,N=0):1<N&&(m=(N-1)*y.height,N=1);return{x:E,y:N,dx:parseInt(M),
-dy:parseInt(m)}}function H(N){if(1==D.getSelectionCount()){var M=D.getSelectionCell();N&&(M.constObj=null);N=J(M);W.value=100*N.x;z.value=100*N.y;q.value=N.dx;L.value=N.dy;R.style.visibility=""}else R.style.visibility="hidden"}var G=document.createElement("div");G.style.flex="1";G.style.minHeight="0";G.style.overflow="hidden";G.style.borderStyle="solid";G.style.borderWidth="1px";G.style.boxSizing="border-box";mxEvent.disableContextMenu(G);d.appendChild(G);var D=new Graph(G);D.transparentBackground=
+if(null!=M){M.constObj=m;m=M.geometry.clone();y=D.view.scale;var F=D.view.translate;m.x=(N.x-3*y)/y-F.x;m.y=(N.y-3*y)/y-F.y;D.model.setGeometry(M,m)}}function J(N){if(N.constObj)return{x:N.constObj.point.x,y:N.constObj.point.y,dx:N.constObj.dx,dy:N.constObj.dy};var M=0,m=0,y=c.geometry,F=mxUtils.format((N.geometry.x+3-y.x)/y.width);N=mxUtils.format((N.geometry.y+3-y.y)/y.height);0>F?(M=F*y.width,F=0):1<F&&(M=(F-1)*y.width,F=1);0>N?(m=N*y.height,N=0):1<N&&(m=(N-1)*y.height,N=1);return{x:F,y:N,dx:parseInt(M),
+dy:parseInt(m)}}function H(N){if(1==D.getSelectionCount()){var M=D.getSelectionCell();N&&(M.constObj=null);N=J(M);W.value=100*N.x;z.value=100*N.y;q.value=N.dx;L.value=N.dy;T.style.visibility=""}else T.style.visibility="hidden"}var G=document.createElement("div");G.style.flex="1";G.style.minHeight="0";G.style.overflow="hidden";G.style.borderStyle="solid";G.style.borderWidth="1px";G.style.boxSizing="border-box";mxEvent.disableContextMenu(G);d.appendChild(G);var D=new Graph(G);D.transparentBackground=
!1;D.autoExtend=!1;D.autoScroll=!1;D.setGridEnabled(!1);D.setEnabled(!0);D.setPanning(!0);D.setConnectable(!1);D.setTooltips(!1);D.minFitScale=null;D.maxFitScale=null;D.centerZoom=!0;D.maxFitScale=2;G=f.geometry;var c=new mxCell(f.value,new mxGeometry(0,0,G.width,G.height),f.style+";rotatable=0;resizable=0;connectable=0;editable=0;movable=0;opacity=50;");c.vertex=!0;D.addCell(c);D.dblClick=function(N,M){if(null!=M&&M!=c)D.setSelectionCell(M);else{M=mxUtils.convertPoint(D.container,mxEvent.getClientX(N),
mxEvent.getClientY(N));mxEvent.consume(N);N=D.view.scale;var m=D.view.translate;D.setSelectionCell(t((M.x-3*N)/N-m.x,(M.y-3*N)/N-m.y))}};p=new mxKeyHandler(D);p.bindKey(46,v);p.bindKey(8,v);D.getRubberband().isForceRubberbandEvent=function(N){return 0==N.evt.button&&(null==N.getCell()||N.getCell()==c)};D.panningHandler.isForcePanningEvent=function(N){return 2==N.evt.button};var g=D.isCellSelectable;D.isCellSelectable=function(N){return N==c?!1:g.apply(this,arguments)};D.getLinkForCell=function(){return null};
var l=D.view.getState(c);G=D.getAllConnectionConstraints(l);for(var n=0;null!=G&&n<G.length;n++){var u=D.getConnectionPoint(l,G[n]);t(u.x-3,u.y-3,G[n])}n=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){D.zoomIn()});u=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),function(){D.zoomOut()});var x=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){1==D.view.scale?(D.maxFitScale=8,D.fit(8)):D.zoomActual();D.center()}),B=function(){b.prompt(mxResources.get("gridSize"),
-D.gridSize,function(N){!isNaN(N)&&0<N&&(D.setGridSize(N),D.setGridEnabled(!0),D.refresh())})},C=b.createToolbarButton(Editor.thinGridImage,mxResources.get("grid"),function(N){mxEvent.isShiftDown(N)?B():(D.setGridEnabled(!D.isGridEnabled()),D.refresh())});mxEvent.addListener(C,"dblclick",B);var F=b.createToolbarButton(Editor.trashImage,mxResources.get("delete"),v);mxUtils.setOpacity(F,10);G=document.createElement("div");G.style.display="flex";G.style.flexShrink="0";G.style.alignItems="center";G.style.paddingTop=
-"6px";G.appendChild(n);G.appendChild(u);G.appendChild(x);G.appendChild(C);G.appendChild(F);d.appendChild(G);var K=document.createElement("input");K.setAttribute("type","number");K.setAttribute("min","1");K.setAttribute("value","1");K.style.width="45px";K.style.position="relative";K.style.margin="0 4px 0 4px";var I=document.createElement("select");I.style.position="relative";u=["left","right","top","bottom"];for(n=0;n<u.length;n++)x=u[n],C=document.createElement("option"),mxUtils.write(C,mxResources.get(x)),
-C.value=x,I.appendChild(C);n=mxUtils.button(mxResources.get("add"),function(){var N=parseInt(K.value);N=1>N?1:100<N?100:N;K.value=N;for(var M=I.value,m=c.geometry,y=[],E=0;E<N;E++){switch(M){case "left":var P=m.x;var O=m.y+(E+1)*m.height/(N+1);break;case "right":P=m.x+m.width;O=m.y+(E+1)*m.height/(N+1);break;case "top":P=m.x+(E+1)*m.width/(N+1);O=m.y;break;case "bottom":P=m.x+(E+1)*m.width/(N+1),O=m.y+m.height}y.push(t(P-3,O-3))}D.setSelectionCells(y)});n.style.marginLeft="auto";G.appendChild(n);
-G.appendChild(K);G.appendChild(I);var R=document.createElement("div");R.style.flexShrink="0";R.style.margin="4px 0px 8px 0px";R.style.whiteSpace="nowrap";R.style.height="24px";G=document.createElement("span");mxUtils.write(G,mxResources.get("dx"));R.appendChild(G);var W=document.createElement("input");W.setAttribute("type","number");W.setAttribute("min","0");W.setAttribute("max","100");W.style.width="45px";W.style.margin="0 4px 0 4px";R.appendChild(W);mxUtils.write(R,"%");var q=document.createElement("input");
-q.setAttribute("type","number");q.style.width="45px";q.style.margin="0 4px 0 4px";R.appendChild(q);mxUtils.write(R,"pt");G=document.createElement("span");mxUtils.write(G,mxResources.get("dy"));G.style.marginLeft="12px";R.appendChild(G);var z=document.createElement("input");z.setAttribute("type","number");z.setAttribute("min","0");z.setAttribute("max","100");z.style.width="45px";z.style.margin="0 4px 0 4px";R.appendChild(z);mxUtils.write(R,"%");var L=document.createElement("input");L.setAttribute("type",
-"number");L.style.width="45px";L.style.margin="0 4px 0 4px";R.appendChild(L);mxUtils.write(R,"pt");d.appendChild(R);H();D.getSelectionModel().addListener(mxEvent.CHANGE,function(){0<D.getSelectionCount()?mxUtils.setOpacity(F,60):mxUtils.setOpacity(F,10);H()});D.addListener(mxEvent.CELLS_MOVED,H);mxEvent.addListener(W,"change",A);mxEvent.addListener(z,"change",A);mxEvent.addListener(q,"change",A);mxEvent.addListener(L,"change",A);G=mxUtils.button(mxResources.get("cancel"),function(){k();b.hideDialog()});
-G.className="geBtn";n=mxUtils.button(mxResources.get("apply"),function(){var N=D.model.cells,M=[],m=[],y;for(y in N){var E=N[y];E.cp&&m.push(J(E))}m.sort(function(P,O){return P.x!=O.x?P.x-O.x:P.y!=O.y?P.y-O.y:P.dx!=O.dx?P.dx-O.dx:P.dy-O.dy});for(N=0;N<m.length;N++)0<N&&m[N].x==m[N-1].x&&m[N].y==m[N-1].y&&m[N].dx==m[N-1].dx&&m[N].dy==m[N-1].dy||M.push("["+m[N].x+","+m[N].y+",0,"+m[N].dx+","+m[N].dy+"]");b.editor.graph.setCellStyles("points","["+M.join(",")+"]",[f]);k();b.hideDialog()});n.className=
+D.gridSize,function(N){!isNaN(N)&&0<N&&(D.setGridSize(N),D.setGridEnabled(!0),D.refresh())})},C=b.createToolbarButton(Editor.thinGridImage,mxResources.get("grid"),function(N){mxEvent.isShiftDown(N)?B():(D.setGridEnabled(!D.isGridEnabled()),D.refresh())});mxEvent.addListener(C,"dblclick",B);var E=b.createToolbarButton(Editor.trashImage,mxResources.get("delete"),v);mxUtils.setOpacity(E,10);G=document.createElement("div");G.style.display="flex";G.style.flexShrink="0";G.style.alignItems="center";G.style.paddingTop=
+"6px";G.appendChild(n);G.appendChild(u);G.appendChild(x);G.appendChild(C);G.appendChild(E);d.appendChild(G);var K=document.createElement("input");K.setAttribute("type","number");K.setAttribute("min","1");K.setAttribute("value","1");K.style.width="45px";K.style.position="relative";K.style.margin="0 4px 0 4px";var I=document.createElement("select");I.style.position="relative";u=["left","right","top","bottom"];for(n=0;n<u.length;n++)x=u[n],C=document.createElement("option"),mxUtils.write(C,mxResources.get(x)),
+C.value=x,I.appendChild(C);n=mxUtils.button(mxResources.get("add"),function(){var N=parseInt(K.value);N=1>N?1:100<N?100:N;K.value=N;for(var M=I.value,m=c.geometry,y=[],F=0;F<N;F++){switch(M){case "left":var P=m.x;var O=m.y+(F+1)*m.height/(N+1);break;case "right":P=m.x+m.width;O=m.y+(F+1)*m.height/(N+1);break;case "top":P=m.x+(F+1)*m.width/(N+1);O=m.y;break;case "bottom":P=m.x+(F+1)*m.width/(N+1),O=m.y+m.height}y.push(t(P-3,O-3))}D.setSelectionCells(y)});n.style.marginLeft="auto";G.appendChild(n);
+G.appendChild(K);G.appendChild(I);var T=document.createElement("div");T.style.flexShrink="0";T.style.margin="4px 0px 8px 0px";T.style.whiteSpace="nowrap";T.style.height="24px";G=document.createElement("span");mxUtils.write(G,mxResources.get("dx"));T.appendChild(G);var W=document.createElement("input");W.setAttribute("type","number");W.setAttribute("min","0");W.setAttribute("max","100");W.style.width="45px";W.style.margin="0 4px 0 4px";T.appendChild(W);mxUtils.write(T,"%");var q=document.createElement("input");
+q.setAttribute("type","number");q.style.width="45px";q.style.margin="0 4px 0 4px";T.appendChild(q);mxUtils.write(T,"pt");G=document.createElement("span");mxUtils.write(G,mxResources.get("dy"));G.style.marginLeft="12px";T.appendChild(G);var z=document.createElement("input");z.setAttribute("type","number");z.setAttribute("min","0");z.setAttribute("max","100");z.style.width="45px";z.style.margin="0 4px 0 4px";T.appendChild(z);mxUtils.write(T,"%");var L=document.createElement("input");L.setAttribute("type",
+"number");L.style.width="45px";L.style.margin="0 4px 0 4px";T.appendChild(L);mxUtils.write(T,"pt");d.appendChild(T);H();D.getSelectionModel().addListener(mxEvent.CHANGE,function(){0<D.getSelectionCount()?mxUtils.setOpacity(E,60):mxUtils.setOpacity(E,10);H()});D.addListener(mxEvent.CELLS_MOVED,H);mxEvent.addListener(W,"change",A);mxEvent.addListener(z,"change",A);mxEvent.addListener(q,"change",A);mxEvent.addListener(L,"change",A);G=mxUtils.button(mxResources.get("cancel"),function(){k();b.hideDialog()});
+G.className="geBtn";n=mxUtils.button(mxResources.get("apply"),function(){var N=D.model.cells,M=[],m=[],y;for(y in N){var F=N[y];F.cp&&m.push(J(F))}m.sort(function(P,O){return P.x!=O.x?P.x-O.x:P.y!=O.y?P.y-O.y:P.dx!=O.dx?P.dx-O.dx:P.dy-O.dy});for(N=0;N<m.length;N++)0<N&&m[N].x==m[N-1].x&&m[N].y==m[N-1].y&&m[N].dx==m[N-1].dx&&m[N].dy==m[N-1].dy||M.push("["+m[N].x+","+m[N].y+",0,"+m[N].dx+","+m[N].dy+"]");b.editor.graph.setCellStyles("points","["+M.join(",")+"]",[f]);k();b.hideDialog()});n.className=
"geBtn gePrimaryBtn";u=mxUtils.button(mxResources.get("reset"),function(){b.editor.graph.setCellStyles("points",null,[f]);k();b.hideDialog()});u.className="geBtn";x=document.createElement("div");x.style.flexShrink="0";x.style.marginTop="10px";x.style.textAlign="right";b.isOffline()||x.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/shape-connection-points-customise"));b.editor.cancelFirst&&x.appendChild(G);x.appendChild(u);x.appendChild(n);b.editor.cancelFirst||x.appendChild(G);d.appendChild(x);
D.fit(8);D.center()};this.destroy=k;this.container=d},PolygonDialog=function(b,f,k){function d(ca){var ea=da.getBoundingClientRect();if(0<ea.width&&0<ea.height){var qa=q+L/2,na=z+N/2;M=Math.max(.05,Math.min(5,ca));L=ea.width*M;N=ea.height*M;q=qa-L/2;z=na-N/2;p()}}function p(){da.setAttribute("viewBox",q+" "+z+" "+L+" "+N);var ca=aa.getBoundingClientRect();if(!(0>=ca.width||0>=ca.height)){var ea=ca.width-12,qa=Math.max(20,ea*Math.min(1,L/1200)),na=1200-L;na=0<na?(q- -400)/na:.5;na=Math.max(0,Math.min(1,
na));Ba.style.width=qa+"px";Ba.style.left=na*(ea-qa)+"px";ca=ca.height-12;ea=Math.max(20,ca*Math.min(1,N/1200));qa=1200-N;qa=0<qa?(z- -400)/qa:.5;qa=Math.max(0,Math.min(1,qa));ja.style.height=ea+"px";ja.style.top=qa*(ca-ea)+"px"}}function t(ca){return B?20*Math.round(ca/20):Math.round(ca)}function v(ca){var ea=da.getBoundingClientRect(),qa=z+((null!=ca.touches?ca.touches[0].clientY:ca.clientY)-ea.top)/ea.height*N;return{x:t(q+((null!=ca.touches?ca.touches[0].clientX:ca.clientX)-ea.left)/ea.width*
L),y:t(qa)}}function A(ca){var ea=da.getBoundingClientRect(),qa=q+((null!=ca.touches?ca.touches[0].clientX:ca.clientX)-ea.left)/ea.width*L;ca=z+((null!=ca.touches?ca.touches[0].clientY:ca.clientY)-ea.top)/ea.height*N;ea=L/400*9;if(x&&2<n.length&&"Q"===n[0].type){var na=n[0].cx-qa,va=n[0].cy-ca;if(Math.sqrt(na*na+va*va)<=ea)return{type:"control",index:0}}for(var ra=1;ra<n.length;ra++)if("Q"===n[ra].type&&(na=n[ra].cx-qa,va=n[ra].cy-ca,Math.sqrt(na*na+va*va)<=ea))return{type:"control",index:ra};for(ra=
-0;ra<n.length;ra++)if(na=n[ra].x-qa,va=n[ra].y-ca,Math.sqrt(na*na+va*va)<=ea)return{type:"vertex",index:ra};return null}function J(){C.push(JSON.stringify(n));F=[];D()}function H(){0<C.length&&(F.push(JSON.stringify(n)),n=JSON.parse(C.pop()),u=Math.min(u,n.length-1),c(),D())}function G(){0<F.length&&(C.push(JSON.stringify(n)),n=JSON.parse(F.pop()),u=Math.min(u,n.length-1),c(),D())}function D(){null!=Da&&(Da.style.opacity=0<C.length?"1":"0.3",Da.style.pointerEvents=0<C.length?"":"none");null!=oa&&
-(oa.style.opacity=0<F.length?"1":"0.3",oa.style.pointerEvents=0<F.length?"":"none")}function c(){for(var ca="",ea=0;ea<n.length;ea++)ca=0===ea?ca+("M"+n[ea].x+" "+n[ea].y):"Q"===n[ea].type?ca+("Q"+n[ea].cx+" "+n[ea].cy+" "+n[ea].x+" "+n[ea].y):ca+("L"+n[ea].x+" "+n[ea].y);x&&2<n.length&&("Q"===n[0].type&&(ca+="Q"+n[0].cx+" "+n[0].cy+" "+n[0].x+" "+n[0].y),ca+="Z");ba.setAttribute("d",ca);for(ba.setAttribute("fill",x&&2<n.length?"rgba(66, 133, 244, 0.1)":"none");ia.firstChild;)ia.removeChild(ia.firstChild);
+0;ra<n.length;ra++)if(na=n[ra].x-qa,va=n[ra].y-ca,Math.sqrt(na*na+va*va)<=ea)return{type:"vertex",index:ra};return null}function J(){C.push(JSON.stringify(n));E=[];D()}function H(){0<C.length&&(E.push(JSON.stringify(n)),n=JSON.parse(C.pop()),u=Math.min(u,n.length-1),c(),D())}function G(){0<E.length&&(C.push(JSON.stringify(n)),n=JSON.parse(E.pop()),u=Math.min(u,n.length-1),c(),D())}function D(){null!=Da&&(Da.style.opacity=0<C.length?"1":"0.3",Da.style.pointerEvents=0<C.length?"":"none");null!=oa&&
+(oa.style.opacity=0<E.length?"1":"0.3",oa.style.pointerEvents=0<E.length?"":"none")}function c(){for(var ca="",ea=0;ea<n.length;ea++)ca=0===ea?ca+("M"+n[ea].x+" "+n[ea].y):"Q"===n[ea].type?ca+("Q"+n[ea].cx+" "+n[ea].cy+" "+n[ea].x+" "+n[ea].y):ca+("L"+n[ea].x+" "+n[ea].y);x&&2<n.length&&("Q"===n[0].type&&(ca+="Q"+n[0].cx+" "+n[0].cy+" "+n[0].x+" "+n[0].y),ca+="Z");ba.setAttribute("d",ca);for(ba.setAttribute("fill",x&&2<n.length?"rgba(66, 133, 244, 0.1)":"none");ia.firstChild;)ia.removeChild(ia.firstChild);
for(ea=1;ea<n.length;ea++)"Q"===n[ea].type&&(ca=document.createElementNS("http://www.w3.org/2000/svg","polyline"),ca.setAttribute("points",n[ea-1].x+","+n[ea-1].y+" "+n[ea].cx+","+n[ea].cy+" "+n[ea].x+","+n[ea].y),ca.setAttribute("fill","none"),ca.setAttribute("stroke","#f0a030"),ca.setAttribute("stroke-width","1"),ca.setAttribute("stroke-dasharray","4,3"),ia.appendChild(ca));x&&2<n.length&&"Q"===n[0].type&&(ea=document.createElementNS("http://www.w3.org/2000/svg","polyline"),ea.setAttribute("points",
n[n.length-1].x+","+n[n.length-1].y+" "+n[0].cx+","+n[0].cy+" "+n[0].x+","+n[0].y),ea.setAttribute("fill","none"),ea.setAttribute("stroke","#f0a030"),ea.setAttribute("stroke-width","1"),ea.setAttribute("stroke-dasharray","4,3"),ia.appendChild(ea));for(;la.firstChild;)la.removeChild(la.firstChild);for(ea=0;ea<n.length;ea++)ca=document.createElementNS("http://www.w3.org/2000/svg","circle"),ca.setAttribute("cx",n[ea].x),ca.setAttribute("cy",n[ea].y),ca.setAttribute("r",5),ca.setAttribute("fill",ea===
u?"#ff4444":"#4285f4"),ca.setAttribute("stroke","#fff"),ca.setAttribute("stroke-width","1.5"),ca.style.cursor="move",la.appendChild(ca);for(;ka.firstChild;)ka.removeChild(ka.firstChild);for(ea=1;ea<n.length;ea++)"Q"===n[ea].type&&(ca=document.createElementNS("http://www.w3.org/2000/svg","rect"),ca.setAttribute("x",n[ea].cx-5),ca.setAttribute("y",n[ea].cy-5),ca.setAttribute("width",10),ca.setAttribute("height",10),ca.setAttribute("fill",ea===u?"#ff8800":"#f0a030"),ca.setAttribute("stroke","#fff"),
@@ -12859,10 +12865,10 @@ function(){J();n[ea].y=parseInt(this.value)||0;c()});mxEvent.addListener(na,"cli
mxEvent.addListener(va,"change",function(){J();if("Q"===n[ea].type)n[ea].type="L",delete n[ea].cx,delete n[ea].cy;else{var ra=0<ea?n[ea-1]:n[n.length-1];var Aa=n[ea];var Ka=(ra.x+Aa.x)/2;var Na=(ra.y+Aa.y)/2;var La=Aa.x-ra.x,Za=Aa.y-ra.y;ra=Math.sqrt(La*La+Za*Za);0!==ra&&(Aa=.25*ra,Ka=Math.round(Ka+-Za/ra*Aa),Na=Math.round(Na+La/ra*Aa));n[ea].type="Q";n[ea].cx=Ka;n[ea].cy=Na}c()});na.appendChild(va);qa.appendChild(na)}na=document.createElement("img");na.setAttribute("src",Editor.trashImage);na.style.cursor=
"pointer";na.style.marginLeft="auto";na.style.width="14px";na.style.height="14px";na.style.opacity="0.5";na.style.flexShrink="0";na.title=mxResources.get("delete");Editor.isDarkMode()&&(na.style.filter="invert(1)");mxEvent.addListener(na,"click",function(ra){ra.stopPropagation();J();n.splice(ea,1);u>=n.length&&(u=n.length-1);c()});qa.appendChild(na);mxEvent.addListener(qa,"dragstart",function(ra){V=ea;qa.style.opacity="0.4";ra.dataTransfer.effectAllowed="move";ra.dataTransfer.setData("text/plain",
""+ea);ra.stopPropagation()});mxEvent.addListener(qa,"dragover",function(ra){ra.preventDefault();ra.stopPropagation();ra.dataTransfer.dropEffect="move";ra=parseInt(qa.getAttribute("data-idx"));null!==V&&ra!==V&&(qa.style.borderTop=ra<V?"2px solid #4285f4":"",qa.style.borderBottom=ra>V?"2px solid #4285f4":"")});mxEvent.addListener(qa,"dragleave",function(ra){qa.style.borderTop="";qa.style.borderBottom=""});mxEvent.addListener(qa,"drop",function(ra){ra.preventDefault();ra.stopPropagation();qa.style.borderTop=
-"";qa.style.borderBottom="";var Aa=parseInt(qa.getAttribute("data-idx"));null!==V&&Aa!==V&&(J(),ra=n.splice(V,1)[0],Aa=Aa>V?Aa-1:Aa,n.splice(Aa,0,ra),u===V?u=Aa:V<u&&Aa>=u?u--:V>u&&Aa<=u&&u++,c());V=null});mxEvent.addListener(qa,"dragend",function(ra){qa.style.opacity="";qa.style.borderTop="";qa.style.borderBottom="";V=null});wa.appendChild(qa)})(ca)}var l=b.editor.graph,n=[],u=-1,x=!0,B=!0,C=[],F=[],K=-1,I=null,R=!1,W=!1,q=0,z=0,L=400,N=400,M=1,m=!1,y=0,E=0,P=0,O=0,T=!1,V=null,Q=l.view.getState(f);
-if(null!=Q)try{var S=JSON.parse(mxUtils.getValue(Q.style,"polyCoords","[]")),U=JSON.parse(mxUtils.getValue(Q.style,"polyCurves","[]")),Y=mxUtils.getValue(Q.style,"polyline",0);x=!(1==Y||!0===Y||"true"===Y||"1"===Y);for(Q=0;Q<S.length;Q++){var X={x:Math.round(400*S[Q][0]),y:Math.round(400*S[Q][1]),type:"L"};0<Q&&U.length>Q-1&&null!=U[Q-1]&&3<=U[Q-1].length&&"Q"===U[Q-1][0]&&(X.type="Q",X.cx=Math.round(400*U[Q-1][1]),X.cy=Math.round(400*U[Q-1][2]));n.push(X)}x&&2<S.length&&U.length>=S.length&&null!=
-U[S.length-1]&&3<=U[S.length-1].length&&"Q"===U[S.length-1][0]&&(n[0].type="Q",n[0].cx=Math.round(400*U[S.length-1][1]),n[0].cy=Math.round(400*U[S.length-1][2]))}catch(ca){}var Z=document.createElement("div");Z.style.userSelect="none";Z.setAttribute("tabindex","0");Z.style.outline="none";Z.style.position="absolute";Z.style.left="30px";Z.style.right="30px";Z.style.top="30px";Z.style.bottom="30px";S=document.createElement("div");S.style.display="flex";S.style.gap="10px";S.style.position="absolute";
-S.style.left="0px";S.style.right="0px";S.style.top="0px";S.style.bottom="40px";Z.appendChild(S);var aa=document.createElement("div");aa.style.border="1px solid";aa.style.borderColor="inherit";aa.style.borderRadius="4px";aa.style.flexGrow="1";aa.style.flexShrink="1";aa.style.minWidth="200px";aa.style.position="relative";aa.style.overflow="hidden";S.appendChild(aa);var da=document.createElementNS("http://www.w3.org/2000/svg","svg");da.setAttribute("width","100%");da.setAttribute("height","100%");da.setAttribute("viewBox",
+"";qa.style.borderBottom="";var Aa=parseInt(qa.getAttribute("data-idx"));null!==V&&Aa!==V&&(J(),ra=n.splice(V,1)[0],Aa=Aa>V?Aa-1:Aa,n.splice(Aa,0,ra),u===V?u=Aa:V<u&&Aa>=u?u--:V>u&&Aa<=u&&u++,c());V=null});mxEvent.addListener(qa,"dragend",function(ra){qa.style.opacity="";qa.style.borderTop="";qa.style.borderBottom="";V=null});wa.appendChild(qa)})(ca)}var l=b.editor.graph,n=[],u=-1,x=!0,B=!0,C=[],E=[],K=-1,I=null,T=!1,W=!1,q=0,z=0,L=400,N=400,M=1,m=!1,y=0,F=0,P=0,O=0,S=!1,V=null,Q=l.view.getState(f);
+if(null!=Q)try{var R=JSON.parse(mxUtils.getValue(Q.style,"polyCoords","[]")),U=JSON.parse(mxUtils.getValue(Q.style,"polyCurves","[]")),Y=mxUtils.getValue(Q.style,"polyline",0);x=!(1==Y||!0===Y||"true"===Y||"1"===Y);for(Q=0;Q<R.length;Q++){var X={x:Math.round(400*R[Q][0]),y:Math.round(400*R[Q][1]),type:"L"};0<Q&&U.length>Q-1&&null!=U[Q-1]&&3<=U[Q-1].length&&"Q"===U[Q-1][0]&&(X.type="Q",X.cx=Math.round(400*U[Q-1][1]),X.cy=Math.round(400*U[Q-1][2]));n.push(X)}x&&2<R.length&&U.length>=R.length&&null!=
+U[R.length-1]&&3<=U[R.length-1].length&&"Q"===U[R.length-1][0]&&(n[0].type="Q",n[0].cx=Math.round(400*U[R.length-1][1]),n[0].cy=Math.round(400*U[R.length-1][2]))}catch(ca){}var Z=document.createElement("div");Z.style.userSelect="none";Z.setAttribute("tabindex","0");Z.style.outline="none";Z.style.position="absolute";Z.style.left="30px";Z.style.right="30px";Z.style.top="30px";Z.style.bottom="30px";R=document.createElement("div");R.style.display="flex";R.style.gap="10px";R.style.position="absolute";
+R.style.left="0px";R.style.right="0px";R.style.top="0px";R.style.bottom="40px";Z.appendChild(R);var aa=document.createElement("div");aa.style.border="1px solid";aa.style.borderColor="inherit";aa.style.borderRadius="4px";aa.style.flexGrow="1";aa.style.flexShrink="1";aa.style.minWidth="200px";aa.style.position="relative";aa.style.overflow="hidden";R.appendChild(aa);var da=document.createElementNS("http://www.w3.org/2000/svg","svg");da.setAttribute("width","100%");da.setAttribute("height","100%");da.setAttribute("viewBox",
"0 0 400 400");da.style.display="block";da.style.cursor="crosshair";U=document.createElementNS("http://www.w3.org/2000/svg","defs");X=document.createElementNS("http://www.w3.org/2000/svg","pattern");Q="polygonGrid_"+Date.now();X.setAttribute("id",Q);X.setAttribute("width",20);X.setAttribute("height",20);X.setAttribute("patternUnits","userSpaceOnUse");Y=document.createElementNS("http://www.w3.org/2000/svg","path");Y.setAttribute("d","M 20 0 L 0 0 0 20");Y.setAttribute("fill","none");Y.setAttribute("stroke",
"#e0e0e0");Y.setAttribute("stroke-width","0.5");X.appendChild(Y);U.appendChild(X);da.appendChild(U);var fa=document.createElementNS("http://www.w3.org/2000/svg","rect");fa.setAttribute("x","-5000");fa.setAttribute("y","-5000");fa.setAttribute("width","10000");fa.setAttribute("height","10000");fa.setAttribute("fill","url(#"+Q+")");da.appendChild(fa);var ba=document.createElementNS("http://www.w3.org/2000/svg","path");ba.setAttribute("fill","rgba(66, 133, 244, 0.1)");ba.setAttribute("stroke","#4285f4");
ba.setAttribute("stroke-width","2");da.appendChild(ba);var ia=document.createElementNS("http://www.w3.org/2000/svg","g");da.appendChild(ia);var la=document.createElementNS("http://www.w3.org/2000/svg","g");da.appendChild(la);var ka=document.createElementNS("http://www.w3.org/2000/svg","g");da.appendChild(ka);aa.appendChild(da);var pa=document.createElement("div");pa.style.position="absolute";pa.style.bottom="0px";pa.style.left="0px";pa.style.right="12px";pa.style.height="12px";pa.style.backgroundColor=
@@ -12870,19 +12876,19 @@ ba.setAttribute("stroke-width","2");da.appendChild(ba);var ia=document.createEle
document.createElement("div");ja.style.position="absolute";ja.style.left="2px";ja.style.width="8px";ja.style.borderRadius="4px";ja.style.backgroundColor="rgba(128,128,128,0.35)";ja.style.cursor="pointer";ja.style.minHeight="20px";sa.appendChild(ja);aa.appendChild(sa);var ya=!1,ua=!1,za=0,xa=0;mxEvent.addListener(Ba,"mousedown",function(ca){ya=!0;za=ca.clientX;xa=q;ca.preventDefault();ca.stopPropagation()});mxEvent.addListener(ja,"mousedown",function(ca){ua=!0;za=ca.clientY;xa=z;ca.preventDefault();
ca.stopPropagation()});mxEvent.addListener(pa,"mousedown",function(ca){if(ca.target===pa){var ea=pa.getBoundingClientRect().width,qa=ca.clientX-pa.getBoundingClientRect().left,na=1200-L;0<na&&(q=-400+qa/ea*na,p());ca.preventDefault();ca.stopPropagation()}});mxEvent.addListener(sa,"mousedown",function(ca){if(ca.target===sa){var ea=sa.getBoundingClientRect().height,qa=ca.clientY-sa.getBoundingClientRect().top,na=1200-N;0<na&&(z=-400+qa/ea*na,p());ca.preventDefault();ca.stopPropagation()}});var ma=function(ca){if(ya){var ea=
aa.getBoundingClientRect().width-12,qa=parseFloat(Ba.style.width)||20,na=1200-L;ea>qa&&0<na&&(q=xa+(ca.clientX-za)/(ea-qa)*na,p());ca.preventDefault()}ua&&(ea=aa.getBoundingClientRect().height-12,qa=parseFloat(ja.style.height)||20,na=1200-N,ea>qa&&0<na&&(z=xa+(ca.clientY-za)/(ea-qa)*na,p()),ca.preventDefault())},Ca=function(ca){ua=ya=!1};mxEvent.addListener(document,"mousemove",ma);mxEvent.addListener(document,"mouseup",Ca);"undefined"!==typeof ResizeObserver&&(new ResizeObserver(function(){var ca=
-da.getBoundingClientRect();if(0<ca.width&&0<ca.height){var ea=q+L/2,qa=z+N/2;L=ca.width*M;N=ca.height*M;q=ea-L/2;z=qa-N/2;p()}})).observe(aa);var wa=document.createElement("div");wa.style.width="200px";wa.style.flexShrink="0";wa.style.overflowY="auto";wa.style.border="1px solid";wa.style.borderColor="inherit";wa.style.borderRadius="4px";wa.style.padding="4px";S.appendChild(wa);mxEvent.addGestureListeners(da,function(ca){if(!T&&1!==ca.button&&2!==ca.button){var ea=A(ca);if(null!=ea)K=ea.index,I=ea.type,
-R=!0,W=!1,u=ea.index;else{ea=v(ca);J();if(2>n.length)n.push({x:ea.x,y:ea.y,type:"L"}),u=n.length-1;else{for(var qa=Infinity,na=n.length-1,va=x?n.length:n.length-1,ra=0;ra<va;ra++){var Aa=(ra+1)%n.length;Aa=mxUtils.ptSegDistSq(n[ra].x,n[ra].y,n[Aa].x,n[Aa].y,ea.x,ea.y);Aa<qa&&(qa=Aa,na=ra)}n.splice(na+1,0,{x:ea.x,y:ea.y,type:"L"});u=na+1}K=u;I="vertex";W=R=!0}c();mxEvent.consume(ca)}},function(ca){if(R&&0<=K){W||(J(),W=!0);var ea=v(ca);"control"===I?(n[K].cx=ea.x,n[K].cy=ea.y):(n[K].x=ea.x,n[K].y=
-ea.y);c();mxEvent.consume(ca)}},function(ca){!T&&1!==ca.button&&2!==ca.button&&R&&0<=K&&(R=!1,K=-1,I=null,mxEvent.consume(ca))});mxEvent.addListener(da,"wheel",function(ca){ca.preventDefault();var ea=da.getBoundingClientRect(),qa=(ca.clientX-ea.left)/ea.width,na=(ca.clientY-ea.top)/ea.height,va=q+qa*L,ra=z+na*N;M=Math.max(.05,Math.min(5,M*(0<ca.deltaY?1.15:1/1.15)));L=ea.width*M;N=ea.height*M;q=va-qa*L;z=ra-na*N;p()});mxEvent.addListener(da,"contextmenu",function(ca){ca.preventDefault()});mxEvent.addListener(da,
-"mousedown",function(ca){if(1===ca.button||2===ca.button||0===ca.button&&T)m=!0,y=ca.clientX,E=ca.clientY,P=q,O=z,da.style.cursor="grabbing",ca.preventDefault()});var ha=function(ca){if(m){var ea=da.getBoundingClientRect();q=P-(ca.clientX-y)/ea.width*L;z=O-(ca.clientY-E)/ea.height*N;p();ca.preventDefault()}},ta=function(ca){m&&(m=!1,da.style.cursor=T?"grab":"crosshair")};mxEvent.addListener(document,"mousemove",ha);mxEvent.addListener(document,"mouseup",ta);S=document.createElement("div");S.style.display=
-"flex";S.style.alignItems="center";S.style.gap="6px";S.style.position="absolute";S.style.left="0px";S.style.right="0px";S.style.bottom="0px";S.style.height="34px";var Da=b.createToolbarButton(Editor.undoImage,mxResources.get("undo"),function(){H()});S.appendChild(Da);var oa=b.createToolbarButton(Editor.redoImage,mxResources.get("redo"),function(){G()});S.appendChild(oa);U=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){d(M/1.15)});S.appendChild(U);U=b.createToolbarButton(Editor.zoomOutImage,
-mxResources.get("zoomOut"),function(){d(1.15*M)});S.appendChild(U);U=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){var ca=da.getBoundingClientRect();if(0<ca.width&&0<ca.height){if(1==M)if(0<n.length){for(var ea=n[0].x,qa=n[0].y,na=n[0].x,va=n[0].y,ra=1;ra<n.length;ra++)ea=Math.min(ea,n[ra].x),qa=Math.min(qa,n[ra].y),na=Math.max(na,n[ra].x),va=Math.max(va,n[ra].y),"Q"===n[ra].type&&(ea=Math.min(ea,n[ra].cx),qa=Math.min(qa,n[ra].cy),na=Math.max(na,n[ra].cx),va=Math.max(va,
-n[ra].cy));na=na-ea+40;va=va-qa+40;M=1/Math.min(ca.width/na,ca.height/va);L=ca.width*M;N=ca.height*M;q=ea-20+(na-L)/2;z=qa-20+(va-N)/2}else M=1,L=ca.width,N=ca.height,q=(400-L)/2,z=(400-N)/2;else M=1,L=ca.width*M,N=ca.height*M,q=(400-L)/2,z=(400-N)/2;p()}});S.appendChild(U);U=mxUtils.button(mxResources.get("deleteAll"),function(){0<n.length&&(J(),n=[],u=-1,c())});U.className="geBtn";U.style.padding="2px 10px";U.style.fontSize="12px";S.appendChild(U);U=document.createElement("span");U.style.flexGrow=
-"1";S.appendChild(U);U=document.createElement("label");U.style.display="flex";U.style.alignItems="center";U.style.gap="4px";U.style.fontSize="12px";U.style.cursor="pointer";U.style.whiteSpace="nowrap";X=document.createElement("input");X.type="checkbox";X.checked=B;mxEvent.addListener(X,"change",function(){B=this.checked;fa.style.display=B?"":"none"});U.appendChild(X);mxUtils.write(U,mxResources.get("grid"));S.appendChild(U);U=document.createElement("label");U.style.display="flex";U.style.alignItems=
-"center";U.style.gap="4px";U.style.fontSize="12px";U.style.cursor="pointer";U.style.whiteSpace="nowrap";X=document.createElement("input");X.type="checkbox";X.checked=x;mxEvent.addListener(X,"change",function(){x=this.checked;c()});U.appendChild(X);mxUtils.write(U,mxResources.get("closePath"));S.appendChild(U);U=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});U.className="geBtn";X=mxUtils.button(mxResources.get("apply"),function(){if(2>n.length)b.showError(mxResources.get("error"),
+da.getBoundingClientRect();if(0<ca.width&&0<ca.height){var ea=q+L/2,qa=z+N/2;L=ca.width*M;N=ca.height*M;q=ea-L/2;z=qa-N/2;p()}})).observe(aa);var wa=document.createElement("div");wa.style.width="200px";wa.style.flexShrink="0";wa.style.overflowY="auto";wa.style.border="1px solid";wa.style.borderColor="inherit";wa.style.borderRadius="4px";wa.style.padding="4px";R.appendChild(wa);mxEvent.addGestureListeners(da,function(ca){if(!S&&1!==ca.button&&2!==ca.button){var ea=A(ca);if(null!=ea)K=ea.index,I=ea.type,
+T=!0,W=!1,u=ea.index;else{ea=v(ca);J();if(2>n.length)n.push({x:ea.x,y:ea.y,type:"L"}),u=n.length-1;else{for(var qa=Infinity,na=n.length-1,va=x?n.length:n.length-1,ra=0;ra<va;ra++){var Aa=(ra+1)%n.length;Aa=mxUtils.ptSegDistSq(n[ra].x,n[ra].y,n[Aa].x,n[Aa].y,ea.x,ea.y);Aa<qa&&(qa=Aa,na=ra)}n.splice(na+1,0,{x:ea.x,y:ea.y,type:"L"});u=na+1}K=u;I="vertex";W=T=!0}c();mxEvent.consume(ca)}},function(ca){if(T&&0<=K){W||(J(),W=!0);var ea=v(ca);"control"===I?(n[K].cx=ea.x,n[K].cy=ea.y):(n[K].x=ea.x,n[K].y=
+ea.y);c();mxEvent.consume(ca)}},function(ca){!S&&1!==ca.button&&2!==ca.button&&T&&0<=K&&(T=!1,K=-1,I=null,mxEvent.consume(ca))});mxEvent.addListener(da,"wheel",function(ca){ca.preventDefault();var ea=da.getBoundingClientRect(),qa=(ca.clientX-ea.left)/ea.width,na=(ca.clientY-ea.top)/ea.height,va=q+qa*L,ra=z+na*N;M=Math.max(.05,Math.min(5,M*(0<ca.deltaY?1.15:1/1.15)));L=ea.width*M;N=ea.height*M;q=va-qa*L;z=ra-na*N;p()});mxEvent.addListener(da,"contextmenu",function(ca){ca.preventDefault()});mxEvent.addListener(da,
+"mousedown",function(ca){if(1===ca.button||2===ca.button||0===ca.button&&S)m=!0,y=ca.clientX,F=ca.clientY,P=q,O=z,da.style.cursor="grabbing",ca.preventDefault()});var ha=function(ca){if(m){var ea=da.getBoundingClientRect();q=P-(ca.clientX-y)/ea.width*L;z=O-(ca.clientY-F)/ea.height*N;p();ca.preventDefault()}},ta=function(ca){m&&(m=!1,da.style.cursor=S?"grab":"crosshair")};mxEvent.addListener(document,"mousemove",ha);mxEvent.addListener(document,"mouseup",ta);R=document.createElement("div");R.style.display=
+"flex";R.style.alignItems="center";R.style.gap="6px";R.style.position="absolute";R.style.left="0px";R.style.right="0px";R.style.bottom="0px";R.style.height="34px";var Da=b.createToolbarButton(Editor.undoImage,mxResources.get("undo"),function(){H()});R.appendChild(Da);var oa=b.createToolbarButton(Editor.redoImage,mxResources.get("redo"),function(){G()});R.appendChild(oa);U=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){d(M/1.15)});R.appendChild(U);U=b.createToolbarButton(Editor.zoomOutImage,
+mxResources.get("zoomOut"),function(){d(1.15*M)});R.appendChild(U);U=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){var ca=da.getBoundingClientRect();if(0<ca.width&&0<ca.height){if(1==M)if(0<n.length){for(var ea=n[0].x,qa=n[0].y,na=n[0].x,va=n[0].y,ra=1;ra<n.length;ra++)ea=Math.min(ea,n[ra].x),qa=Math.min(qa,n[ra].y),na=Math.max(na,n[ra].x),va=Math.max(va,n[ra].y),"Q"===n[ra].type&&(ea=Math.min(ea,n[ra].cx),qa=Math.min(qa,n[ra].cy),na=Math.max(na,n[ra].cx),va=Math.max(va,
+n[ra].cy));na=na-ea+40;va=va-qa+40;M=1/Math.min(ca.width/na,ca.height/va);L=ca.width*M;N=ca.height*M;q=ea-20+(na-L)/2;z=qa-20+(va-N)/2}else M=1,L=ca.width,N=ca.height,q=(400-L)/2,z=(400-N)/2;else M=1,L=ca.width*M,N=ca.height*M,q=(400-L)/2,z=(400-N)/2;p()}});R.appendChild(U);U=mxUtils.button(mxResources.get("deleteAll"),function(){0<n.length&&(J(),n=[],u=-1,c())});U.className="geBtn";U.style.padding="2px 10px";U.style.fontSize="12px";R.appendChild(U);U=document.createElement("span");U.style.flexGrow=
+"1";R.appendChild(U);U=document.createElement("label");U.style.display="flex";U.style.alignItems="center";U.style.gap="4px";U.style.fontSize="12px";U.style.cursor="pointer";U.style.whiteSpace="nowrap";X=document.createElement("input");X.type="checkbox";X.checked=B;mxEvent.addListener(X,"change",function(){B=this.checked;fa.style.display=B?"":"none"});U.appendChild(X);mxUtils.write(U,mxResources.get("grid"));R.appendChild(U);U=document.createElement("label");U.style.display="flex";U.style.alignItems=
+"center";U.style.gap="4px";U.style.fontSize="12px";U.style.cursor="pointer";U.style.whiteSpace="nowrap";X=document.createElement("input");X.type="checkbox";X.checked=x;mxEvent.addListener(X,"change",function(){x=this.checked;c()});U.appendChild(X);mxUtils.write(U,mxResources.get("closePath"));R.appendChild(U);U=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});U.className="geBtn";X=mxUtils.button(mxResources.get("apply"),function(){if(2>n.length)b.showError(mxResources.get("error"),
mxResources.get("minTwoPoints"),mxResources.get("ok"));else{for(var ca=n[0].x,ea=n[0].x,qa=n[0].y,na=n[0].y,va=0;va<n.length;va++)ca=Math.min(ca,n[va].x),ea=Math.max(ea,n[va].x),qa=Math.min(qa,n[va].y),na=Math.max(na,n[va].y),"Q"===n[va].type&&(ca=Math.min(ca,n[va].cx),ea=Math.max(ea,n[va].cx),qa=Math.min(qa,n[va].cy),na=Math.max(na,n[va].cy));var ra=ea-ca,Aa=na-qa,Ka=function(La){return 0<ra?Math.round((La-ca)/ra*100)/100:.5},Na=function(La){return 0<Aa?Math.round((La-qa)/Aa*100)/100:.5};ea=[];na=
[];for(va=0;va<n.length;va++)ea.push([Ka(n[va].x),Na(n[va].y)]),0<va&&("Q"===n[va].type?na.push(["Q",Ka(n[va].cx),Na(n[va].cy)]):na.push([]));x&&2<n.length&&"Q"===n[0].type&&na.push(["Q",Ka(n[0].cx),Na(n[0].cy)]);if(null!=k)va="shape=mxgraph.basic.polygon;polyCoords="+JSON.stringify(ea)+";polyCurves="+JSON.stringify(na)+";polyline="+(x?"0":"1")+";whiteSpace=wrap;html=1;",k(va);else{va=l.getCellGeometry(f);null!=va&&(va=va.clone(),0<ra&&(va.x+=ca/400*va.width,va.width*=ra/400),0<Aa&&(va.y+=qa/400*
-va.height,va.height*=Aa/400));l.getModel().beginUpdate();try{null!=va&&l.getModel().setGeometry(f,va),l.setCellStyles("polyCoords",JSON.stringify(ea),[f]),l.setCellStyles("polyCurves",JSON.stringify(na),[f]),l.setCellStyles("polyline",x?"0":"1",[f])}finally{l.getModel().endUpdate()}}b.hideDialog()}});X.className="geBtn gePrimaryBtn";b.editor.cancelFirst?(S.appendChild(U),S.appendChild(X)):(S.appendChild(X),S.appendChild(U));Z.appendChild(S);mxEvent.addListener(Z,"keydown",function(ca){32===ca.keyCode?
-(T||(T=!0,da.style.cursor="grab"),mxEvent.consume(ca)):46===ca.keyCode||8===ca.keyCode?0<=u&&u<n.length&&"INPUT"!==ca.target.tagName&&(J(),n.splice(u,1),u>=n.length&&(u=n.length-1),c(),mxEvent.consume(ca)):90===ca.keyCode&&(ca.ctrlKey||ca.metaKey)?(ca.shiftKey?G():H(),mxEvent.consume(ca)):89===ca.keyCode&&(ca.ctrlKey||ca.metaKey)&&(G(),mxEvent.consume(ca))});mxEvent.addListener(Z,"keyup",function(ca){32===ca.keyCode&&(T=!1,m||(da.style.cursor="crosshair"))});c();D();this.init=function(){Z.focus();
+va.height,va.height*=Aa/400));l.getModel().beginUpdate();try{null!=va&&l.getModel().setGeometry(f,va),l.setCellStyles("polyCoords",JSON.stringify(ea),[f]),l.setCellStyles("polyCurves",JSON.stringify(na),[f]),l.setCellStyles("polyline",x?"0":"1",[f])}finally{l.getModel().endUpdate()}}b.hideDialog()}});X.className="geBtn gePrimaryBtn";b.editor.cancelFirst?(R.appendChild(U),R.appendChild(X)):(R.appendChild(X),R.appendChild(U));Z.appendChild(R);mxEvent.addListener(Z,"keydown",function(ca){32===ca.keyCode?
+(S||(S=!0,da.style.cursor="grab"),mxEvent.consume(ca)):46===ca.keyCode||8===ca.keyCode?0<=u&&u<n.length&&"INPUT"!==ca.target.tagName&&(J(),n.splice(u,1),u>=n.length&&(u=n.length-1),c(),mxEvent.consume(ca)):90===ca.keyCode&&(ca.ctrlKey||ca.metaKey)?(ca.shiftKey?G():H(),mxEvent.consume(ca)):89===ca.keyCode&&(ca.ctrlKey||ca.metaKey)&&(G(),mxEvent.consume(ca))});mxEvent.addListener(Z,"keyup",function(ca){32===ca.keyCode&&(S=!1,m||(da.style.cursor="crosshair"))});c();D();this.init=function(){Z.focus();
var ca=da.getBoundingClientRect();0<ca.width&&0<ca.height&&(M=1,L=ca.width*M,N=ca.height*M,q=(400-L)/2,z=(400-N)/2,p())};this.destroy=function(){mxEvent.removeListener(document,"mousemove",ma);mxEvent.removeListener(document,"mouseup",Ca);mxEvent.removeListener(document,"mousemove",ha);mxEvent.removeListener(document,"mouseup",ta)};this.container=Z};(function(){"undefined"!==typeof html4&&(html4.ATTRIBS["span::data-lucid-content"]=0,html4.ATTRIBS["span::data-lucid-type"]=0,html4.ATTRIBS["font::data-font-src"]=0);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)}];Editor.sketchDefaultCurveFitting="1";Editor.sketchDefaultJiggle="2";Editor.thinFormatImage=
"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNDgiIHdpZHRoPSI0OCI+PHBhdGggZD0ibTM2LjUgMTguMzUtNi44NS02Ljg1IDMuMjUtMy4ycS44NS0uODUgMi4wMjUtLjg1IDEuMTc1IDAgMi4wMjUuODVsMi43NSAyLjhxLjg1LjguODUgMnQtLjg1IDJaTTYuODUgNDEuMXYtNi45bDkuNTUtOS41NUw1LjUgMTMuN2w3LjgtNy44NSAxMSAxMSA1LjM1LTUuMzUgNi44NSA2Ljg1LTUuMzUgNS4zNSAxMSAxMS03Ljg1IDcuNzUtMTAuOTUtMTAuOS05LjYgOS41NVptMTEuMi0xOC4wNSA0LjY1LTQuNi00LjA1LTQuMDUtMi4zNSAyLjQtMS42LTEuNiAyLjM1LTIuNC0zLjc1LTMuNzUtNC42IDQuNjVabTE2LjIgMTYuMjUgNC42NS00LjY1LTMuNzUtMy43NS0yLjQgMi40LTEuNi0xLjYgMi40LTIuNC00LjA1LTQtNC42IDQuNjVabS0yNS4xLS40NWgzLjZsMjAuNS0yMC40NS0zLjY1LTMuNjVMOS4xNSAzNS4yWiIvPjwvc3ZnPg==";
Editor.thinGestureImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNDgiIHdpZHRoPSI0OCI+PHBhdGggZD0iTTI4IDQxLjZxLTIuNSAwLTQuMDc1LTEuNjUtMS41NzUtMS42NS0xLjU3NS00LjM1IDAtMi4zNSAxLjEtNC4xIDEuMS0xLjc1IDIuODI1LTIuOTUgMS43MjUtMS4yIDMuNy0xLjgyNVQzMy42NSAyNnEtLjE1LTMuMDUtMS4yNS00LjQyNVQyOS4yNSAyMC4ycS0yLjMgMC00LjE3NSAxLjV0LTQuNDI1IDQuOTVxLTIuNjUgMy40NS00LjYgNS4xLTEuOTUgMS42NS00LjM1IDEuNjUtMi4xIDAtMy42NS0xLjM3NVE2LjUgMzAuNjUgNi41IDI3LjQ1cTAtMiAxLjItNC41MjUgMS4yLTIuNTI1IDMuNS02LjE3NSAxLjMtMS44NSAxLjk3NS0zLjIyNXQuNjc1LTIuMzc1cTAtLjctLjM1LTEuMDUtLjM1LS4zNS0xLjA1LS4zNS0uNzUgMC0xLjYuNDc1UTEwIDEwLjcgOSAxMS45TDcgOS44cTEuMzUtMS41NSAyLjcyNS0yLjI3NVExMS4xIDYuOCAxMi41IDYuOHExLjkgMCAzLjEgMS4yNSAxLjIgMS4yNSAxLjIgMy4yIDAgMS44LS45NzUgMy41NzVRMTQuODUgMTYuNiAxMy4wNSAxOS4zcS0xLjk1IDIuOTUtMi43NzUgNC43dC0uODI1IDMuNjVxMCAxLjYuNzUgMi4yLjc1LjYgMS43NS42IDEuNDUgMCAyLjgyNS0xLjMgMS4zNzUtMS4zIDMuNTc1LTQuMTUgMi45NS0zLjggNS41MjUtNS43NzUgMi41NzUtMS45NzUgNS42NzUtMS45NzUgMy4xNSAwIDUgMi4zMjVUMzYuNiAyNS45aDQuOXYyLjk1aC00LjlxLS40NSA3LjM1LTMuMiAxMC4wNS0yLjc1IDIuNy01LjQgMi43Wm0uMS0yLjk1cTEuODUgMCAzLjY1LTIuMjUgMS44LTIuMjUgMi03LjUtMi44LjE1LTUuNjI1IDIuMDI1VDI1LjMgMzUuOXEwIDEuMy43NSAyLjAyNS43NS43MjUgMi4wNS43MjVaIi8+PC9zdmc+";
@@ -12938,7 +12944,7 @@ update:"You are a helpful assistant that helps with the following draw.io diagra
endpoint:Editor.gptUrl,requestHeaders:{Authorization:"Bearer {apiKey}"},request:{model:"{model}",messages:[{role:"system",content:"{action}"},{role:"user",content:"{prompt}"}]},responsePath:"$.choices[0].message.content"},gemini:{apiKey:"geminiApiKey",endpoint:"https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent",requestHeaders:{"X-Goog-Api-Key":"{apiKey}"},request:{system_instruction:{parts:[{text:"{action}"}]},contents:[{parts:[{text:"{prompt}"}]}]},responsePath:"$.candidates[0].content.parts[0].text"},
claude:{apiKey:"claudeApiKey",endpoint:"https://api.anthropic.com/v1/messages",requestHeaders:{"X-API-Key":"{apiKey}","Anthropic-Version":"2023-06-01","Anthropic-Dangerous-Direct-Browser-Access":"true"},request:{max_tokens:8192,model:"{model}",messages:[{role:"assistant",content:"{action}"},{role:"user",content:"{prompt}"}]},responsePath:"$.content[0].text"}};Editor.aiModels=[{name:"Claude 4.6 Opus",model:"claude-opus-4-6",config:"claude"},{name:"Claude 4.6 Sonnet",model:"claude-sonnet-4-6",config:"claude"},
{name:"Gemini 3 Pro Preview",model:"gemini-3-pro-preview",config:"gemini"},{name:"Gemini 2.5 Pro",model:"gemini-2.5-pro",config:"gemini"},{name:"GPT-5.1",model:"gpt-5.1-2025-11-13",config:"gpt"},{name:"GPT-4.1",model:"gpt-4.1-2025-04-14",config:"gpt"}];Editor.replaceSvgDataUris=!0;Editor.foreignObjectImages=!0;Editor.svgFileTheme="auto";Editor.svgRasterScale=4;Editor.htmlRasterScale=4;Editor.config=null;Editor.configVersion=null;Editor.createInheritProperty=function(m,y){return{name:y,dispName:m,
-type:"bool",defVal:!1,isVisible:function(E,P){return 1==E.vertices.length?(P=P.editorUi.editor.graph.model,E=P.getParent(E.vertices[0]),P.isEdge(E)||P.isVertex(E)):!1},getValue:function(E,P){return"inherit"==mxUtils.getValue(E.style,y)},valueChanged:function(E,P,O,T){P=T.editorUi.editor.graph;"1"==E?P.setCellStyles(y,"inherit",O.vertices):P.setCellStyles(y,null,O.vertices)}}};Editor.commonProperties=[{name:"enumerate",dispName:"Enumerate",type:"bool",defVal:!1,onChange:function(m){m.refresh()}},{name:"enumerateValue",
+type:"bool",defVal:!1,isVisible:function(F,P){return 1==F.vertices.length?(P=P.editorUi.editor.graph.model,F=P.getParent(F.vertices[0]),P.isEdge(F)||P.isVertex(F)):!1},getValue:function(F,P){return"inherit"==mxUtils.getValue(F.style,y)},valueChanged:function(F,P,O,S){P=S.editorUi.editor.graph;"1"==F?P.setCellStyles(y,"inherit",O.vertices):P.setCellStyles(y,null,O.vertices)}}};Editor.commonProperties=[{name:"enumerate",dispName:"Enumerate",type:"bool",defVal:!1,onChange:function(m){m.refresh()}},{name:"enumerateValue",
dispName:"Enumerate Value",type:"string",defVal:"",isVisible:function(m,y){return"1"==mxUtils.getValue(m.style,"enumerate","0")}},{name:"comic",dispName:"Comic",type:"bool",defVal:!1,isVisible:function(m,y){return"1"!=mxUtils.getValue(m.style,"sketch","0")}},{name:"jiggle",dispName:"Jiggle",type:"float",min:0,defVal:1,isVisible:function(m,y){return"1"==mxUtils.getValue(m.style,"comic","0")||"1"==mxUtils.getValue(m.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"fillWeight",dispName:"Fill Weight",
type:"int",defVal:-1,isVisible:function(m,y){return"1"==mxUtils.getValue(m.style,"sketch","1"==urlParams.rough?"1":"0")&&0<m.vertices.length}},{name:"hachureGap",dispName:"Hachure Gap",type:"int",defVal:-1,isVisible:function(m,y){return"1"==mxUtils.getValue(m.style,"sketch","1"==urlParams.rough?"1":"0")&&0<m.vertices.length}},{name:"hachureAngle",dispName:"Hachure Angle",type:"int",defVal:-41,isVisible:function(m,y){return"1"==mxUtils.getValue(m.style,"sketch","1"==urlParams.rough?"1":"0")&&0<m.vertices.length}},
{name:"curveFitting",dispName:"Curve Fitting",type:"float",defVal:.95,isVisible:function(m,y){return"1"==mxUtils.getValue(m.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"simplification",dispName:"Simplification",type:"float",defVal:0,min:0,max:1,isVisible:function(m,y){return"1"==mxUtils.getValue(m.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"disableMultiStroke",dispName:"Disable Multi Stroke",type:"bool",defVal:!1,isVisible:function(m,y){return"1"==mxUtils.getValue(m.style,"sketch",
@@ -12962,47 +12968,47 @@ type:"bool",defVal:!1},{name:"labelPadding",dispName:"Label Padding",type:"float
dispName:"West"}]},{name:"portConstraintRotation",dispName:"Rotate Constraint",type:"bool",defVal:!1},{name:"connectable",dispName:"Connectable",type:"bool",getDefaultValue:function(m,y){return y.editorUi.editor.graph.isCellConnectable(0<m.vertices.length&&0==m.edges.length?m.vertices[0]:null)},isVisible:function(m,y){return 0<m.vertices.length&&0==m.edges.length}},{name:"allowArrows",dispName:"Allow Arrows",type:"bool",defVal:!0},{name:"snapToPoint",dispName:"Snap to Point",type:"bool",defVal:!1},
{name:"perimeter",dispName:"Perimeter",defVal:"none",type:"enum",enumList:[{val:"none",dispName:"None"},{val:"rectanglePerimeter",dispName:"Rectangle"},{val:"ellipsePerimeter",dispName:"Ellipse"},{val:"rhombusPerimeter",dispName:"Rhombus"},{val:"trianglePerimeter",dispName:"Triangle"},{val:"hexagonPerimeter2",dispName:"Hexagon"},{val:"lifelinePerimeter",dispName:"Lifeline"},{val:"orthogonalPerimeter",dispName:"Orthogonal"},{val:"backbonePerimeter",dispName:"Backbone"},{val:"calloutPerimeter",dispName:"Callout"},
{val:"parallelogramPerimeter",dispName:"Parallelogram"},{val:"trapezoidPerimeter",dispName:"Trapezoid"},{val:"stepPerimeter",dispName:"Step"},{val:"centerPerimeter",dispName:"Center"}]},{name:"fixDash",dispName:"Fixed Dash",type:"bool",defVal:!1},{name:"container",dispName:"Container",type:"bool",getDefaultValue:function(m,y){m=0<m.vertices.length&&0==m.edges.length?m.vertices[0]:null;y=y.editorUi.editor.graph;return null!=m&&y.isSwimlane(m)},isVisible:function(m,y){return 0<m.vertices.length&&0==
-m.edges.length}},{name:"dropTarget",dispName:"Drop Target",type:"bool",getDefaultValue:function(m,y){m=1==m.vertices.length&&0==m.edges.length?m.vertices[0]:null;y=y.editorUi.editor.graph;return null!=m&&(y.isSwimlane(m)||0<y.model.getChildCount(m))},isVisible:function(m,y){return 1==m.vertices.length&&0==m.edges.length}},{name:"collapsible",dispName:"Collapsible",type:"bool",getDefaultValue:function(m,y){var E=1==m.vertices.length&&0==m.edges.length?m.vertices[0]:null;y=y.editorUi.editor.graph;return null!=
-E&&(y.isContainer(E)&&"0"!=m.style.collapsible||!y.isContainer(E)&&"1"==m.style.collapsible)},isVisible:function(m,y){return 1==m.vertices.length&&0==m.edges.length}},{name:"recursiveResize",dispName:"Resize Children",type:"bool",defVal:!0,isVisible:function(m,y){return 1==m.vertices.length&&0==m.edges.length&&!y.editorUi.editor.graph.isSwimlane(m.vertices[0])&&null==mxUtils.getValue(m.style,"childLayout",null)}},{name:"expand",dispName:"Expand",type:"bool",defVal:!0},{name:"contract",dispName:"Contract",
+m.edges.length}},{name:"dropTarget",dispName:"Drop Target",type:"bool",getDefaultValue:function(m,y){m=1==m.vertices.length&&0==m.edges.length?m.vertices[0]:null;y=y.editorUi.editor.graph;return null!=m&&(y.isSwimlane(m)||0<y.model.getChildCount(m))},isVisible:function(m,y){return 1==m.vertices.length&&0==m.edges.length}},{name:"collapsible",dispName:"Collapsible",type:"bool",getDefaultValue:function(m,y){var F=1==m.vertices.length&&0==m.edges.length?m.vertices[0]:null;y=y.editorUi.editor.graph;return null!=
+F&&(y.isContainer(F)&&"0"!=m.style.collapsible||!y.isContainer(F)&&"1"==m.style.collapsible)},isVisible:function(m,y){return 1==m.vertices.length&&0==m.edges.length}},{name:"recursiveResize",dispName:"Resize Children",type:"bool",defVal:!0,isVisible:function(m,y){return 1==m.vertices.length&&0==m.edges.length&&!y.editorUi.editor.graph.isSwimlane(m.vertices[0])&&null==mxUtils.getValue(m.style,"childLayout",null)}},{name:"expand",dispName:"Expand",type:"bool",defVal:!0},{name:"contract",dispName:"Contract",
type:"bool",defVal:!1},{name:"groupPadding",dispName:"Group Padding",type:"int",defVal:0,min:0},{name:"part",dispName:"Part",type:"bool",defVal:!1,isVisible:function(m,y){y=y.editorUi.editor.graph.model;return 0<m.vertices.length?y.isVertex(y.getParent(m.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(m,y){m=0<m.vertices.length?y.editorUi.editor.graph.getCellGeometry(m.vertices[0]):null;return null!=m&&!m.relative}},{name:"autosize",dispName:"Autosize",type:"bool",defVal:!1},{name:"autosizeGrid",dispName:"Autosize Grid",type:"enum",defVal:null,enumList:[{val:null,dispName:"Default"},{val:"1",dispName:"Enabled"},{val:"0",dispName:"Disabled"}],isVisible:function(m,y){return 0<m.vertices.length&&
y.editorUi.editor.graph.isAutoSizeCell(m.vertices[0])}},{name:"fixedWidth",dispName:"Fixed Width",type:"bool",defVal:!1},{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(m,y){var E=mxUtils.getValue(m.style,mxConstants.STYLE_FILLCOLOR,null);return!mxShape.forceFilledPointerEvents||y.editorUi.editor.graph.isSwimlane(m.vertices[0])||null==E||E==mxConstants.NONE||0==mxUtils.getValue(m.style,mxConstants.STYLE_FILL_OPACITY,100)||0==mxUtils.getValue(m.style,
+{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(m,y){var F=mxUtils.getValue(m.style,mxConstants.STYLE_FILLCOLOR,null);return!mxShape.forceFilledPointerEvents||y.editorUi.editor.graph.isSwimlane(m.vertices[0])||null==F||F==mxConstants.NONE||0==mxUtils.getValue(m.style,mxConstants.STYLE_FILL_OPACITY,100)||0==mxUtils.getValue(m.style,
mxConstants.STYLE_OPACITY,100)||null!=m.style.pointerEvents}},{name:"moveCells",dispName:"Move Cells on Fold",type:"bool",defVal:!1,isVisible:function(m,y){return 0<m.vertices.length&&y.editorUi.editor.graph.isContainer(m.vertices[0])}},{name:"expandToFront",dispName:"Expand to Front",type:"bool",defVal:!1,isVisible:function(m,y){return 0<m.vertices.length&&y.editorUi.editor.graph.isContainer(m.vertices[0])}},Editor.createInheritProperty("Inherit Font Family",mxConstants.STYLE_FONTFAMILY),Editor.createInheritProperty("Inherit Font Size",
mxConstants.STYLE_FONTSIZE),Editor.createInheritProperty("Inherit Font Color",mxConstants.STYLE_FONTCOLOR),Editor.createInheritProperty("Inherit Fill Color",mxConstants.STYLE_FILLCOLOR),Editor.createInheritProperty("Inherit Stroke Color",mxConstants.STYLE_STROKECOLOR)].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## An optional data object can be specified to define the metadata for the connector.\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, width 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## Collapsed state for vertices. Possible values are true or false. Default is false.\n#\n# collapsed: false\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, orgchart or a JSON string as used in\n## Layout, Apply. 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,,[email protected],default,#6c8ebf,,https://app.diagrams.net,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-3-128.png\nEdward Morrison,Brand Manager,emo,Office 2,Tessa Miller,[email protected],default,#82b366,,https://app.diagrams.net,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-10-3-128.png\nAlison Donovan,System Admin,rdo,Office 3,Tessa Miller,[email protected],default,#82b366,"emo,tva",https://app.diagrams.net,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-2-128.png\nEvan Valet,HR Director,tva,Office 4,Tessa Miller,[email protected],default,#82b366,,https://app.diagrams.net,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-9-2-128.png\n';
-Editor.canvasSupported=!1;(function(){try{var m=document.createElement("canvas");Editor.canvasSupported=!(!m.getContext||!m.getContext("2d"))}catch(y){}})();Editor.useCanvasForExport=!1;(function(){try{var m=document.createElement("canvas"),y=new Image;y.onload=function(){try{m.getContext("2d").drawImage(y,0,0);var E=m.toDataURL("image/png");Editor.useCanvasForExport=null!=E&&6<E.length}catch(P){}};y.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(E){}})();
-Editor.jpgSupported=!1;Editor.webpSupported=!1;(function(){try{var m=document.createElement("canvas");m.width=m.height=1;var y=m.toDataURL("image/jpeg");Editor.jpgSupported=null!==y.match("image/jpeg");y=m.toDataURL("image/webp");Editor.webpSupported=null!==y.match("image/webp")}catch(E){}})();Editor.loadCompatibleCss=function(m){mxUtils.lightDarkColorSupported||mxUtils.get(m||"styles/grapheditor.css",mxUtils.bind(this,function(y){if(200<=y.getStatus()&&299>=y.getStatus()){var E=document.createElement("style");
-E.type="text/css";var P=E.appendChild,O=document,T=O.createTextNode;y=y.getText().replace(/light-dark\(\s*(var\([^\)]+\)|[^,]+)\s*,\s*(var\([^\)]+\)|[^)]+)\s*\)/g,"$1");try{CSS.supports("selector(:has(*))")||(y=y.replace(/:has\(/g,":not(")+"\n.geFormatTitleContainer { overflow: hidden !important; }\n.geRuler+.geRuler { margin-top: 14px !important; }\n.geDiagramContainer { margin: 0 !important; }")}catch(V){}P.call(E,T.call(O,y));document.head.appendChild(E)}}))};Editor.replacePlaceholders=function(m,
-y){var E=[];if(null!=m&&null!=y){for(var P=RegExp("{([^{}\"'=;]+)}","g"),O,T=0;O=P.exec(m);){var V=O[0];if(2<V.length){var Q=y(V.substring(1,V.length-1)),S=V;null!=Q&&(S=Q);E.push(m.substring(T,O.index)+S);T=O.index+V.length}}E.push(m.substring(T))}return E.join("")};Editor.executeSimpleJsonPath=function(m,y){y=y.replace(/^\$\.?/,"").split(".");y=$jscomp.makeIterator(y);for(var E=y.next();!E.done;E=y.next()){var P=E.value;if(!m)return[];if(E=P.match(/([^\[]+)\[(\d+)\]/))if(P=E[1],E=parseInt(E[2]),
-m=m[P],Array.isArray(m)&&E<m.length)m=m[E];else return[];else m=m[P]}return void 0!==m?[m]:[]};Editor.createRoughCanvas=function(m){var y=rough.canvas({getContext:function(){return m}});y.draw=function(E){var P=E.sets||[];E=E.options||this.getDefaultOptions();for(var O=0;O<P.length;O++){var T=P[O];switch(T.type){case "path":null!=E.stroke&&this._drawToContext(m,T,E);break;case "fillPath":this._drawToContext(m,T,E);break;case "fillSketch":this.fillSketch(m,T,E)}}};y.fillSketch=function(E,P,O){var T=
-m.state.strokeColor,V=m.state.strokeWidth,Q=m.state.strokeAlpha,S=m.state.dashed,U=O.fillWeight;0>U&&(U=O.strokeWidth/2);m.setStrokeAlpha(m.state.fillAlpha);m.setStrokeColor(O.fill||"");m.setStrokeWidth(U);m.setDashed(!1);this._drawToContext(E,P,O);m.setDashed(S);m.setStrokeWidth(V);m.setStrokeColor(T);m.setStrokeAlpha(Q)};y._drawToContext=function(E,P,O){E.begin();for(var T=0;T<P.ops.length;T++){var V=P.ops[T],Q=V.data;switch(V.op){case "move":E.moveTo(Q[0],Q[1]);break;case "bcurveTo":E.curveTo(Q[0],
-Q[1],Q[2],Q[3],Q[4],Q[5]);break;case "lineTo":E.lineTo(Q[0],Q[1])}}E.end();"fillPath"===P.type&&O.filled?E.fill():E.stroke()};return y};(function(){function m(T,V,Q){this.canvas=T;this.rc=V;this.shape=Q;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,m.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,m.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,
+Editor.canvasSupported=!1;(function(){try{var m=document.createElement("canvas");Editor.canvasSupported=!(!m.getContext||!m.getContext("2d"))}catch(y){}})();Editor.useCanvasForExport=!1;(function(){try{var m=document.createElement("canvas"),y=new Image;y.onload=function(){try{m.getContext("2d").drawImage(y,0,0);var F=m.toDataURL("image/png");Editor.useCanvasForExport=null!=F&&6<F.length}catch(P){}};y.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(F){}})();
+Editor.jpgSupported=!1;Editor.webpSupported=!1;(function(){try{var m=document.createElement("canvas");m.width=m.height=1;var y=m.toDataURL("image/jpeg");Editor.jpgSupported=null!==y.match("image/jpeg");y=m.toDataURL("image/webp");Editor.webpSupported=null!==y.match("image/webp")}catch(F){}})();Editor.loadCompatibleCss=function(m){mxUtils.lightDarkColorSupported||mxUtils.get(m||"styles/grapheditor.css",mxUtils.bind(this,function(y){if(200<=y.getStatus()&&299>=y.getStatus()){var F=document.createElement("style");
+F.type="text/css";var P=F.appendChild,O=document,S=O.createTextNode;y=y.getText().replace(/light-dark\(\s*(var\([^\)]+\)|[^,]+)\s*,\s*(var\([^\)]+\)|[^)]+)\s*\)/g,"$1");try{CSS.supports("selector(:has(*))")||(y=y.replace(/:has\(/g,":not(")+"\n.geFormatTitleContainer { overflow: hidden !important; }\n.geRuler+.geRuler { margin-top: 14px !important; }\n.geDiagramContainer { margin: 0 !important; }")}catch(V){}P.call(F,S.call(O,y));document.head.appendChild(F)}}))};Editor.replacePlaceholders=function(m,
+y){var F=[];if(null!=m&&null!=y){for(var P=RegExp("{([^{}\"'=;]+)}","g"),O,S=0;O=P.exec(m);){var V=O[0];if(2<V.length){var Q=y(V.substring(1,V.length-1)),R=V;null!=Q&&(R=Q);F.push(m.substring(S,O.index)+R);S=O.index+V.length}}F.push(m.substring(S))}return F.join("")};Editor.executeSimpleJsonPath=function(m,y){y=y.replace(/^\$\.?/,"").split(".");y=$jscomp.makeIterator(y);for(var F=y.next();!F.done;F=y.next()){var P=F.value;if(!m)return[];if(F=P.match(/([^\[]+)\[(\d+)\]/))if(P=F[1],F=parseInt(F[2]),
+m=m[P],Array.isArray(m)&&F<m.length)m=m[F];else return[];else m=m[P]}return void 0!==m?[m]:[]};Editor.createRoughCanvas=function(m){var y=rough.canvas({getContext:function(){return m}});y.draw=function(F){var P=F.sets||[];F=F.options||this.getDefaultOptions();for(var O=0;O<P.length;O++){var S=P[O];switch(S.type){case "path":null!=F.stroke&&this._drawToContext(m,S,F);break;case "fillPath":this._drawToContext(m,S,F);break;case "fillSketch":this.fillSketch(m,S,F)}}};y.fillSketch=function(F,P,O){var S=
+m.state.strokeColor,V=m.state.strokeWidth,Q=m.state.strokeAlpha,R=m.state.dashed,U=O.fillWeight;0>U&&(U=O.strokeWidth/2);m.setStrokeAlpha(m.state.fillAlpha);m.setStrokeColor(O.fill||"");m.setStrokeWidth(U);m.setDashed(!1);this._drawToContext(F,P,O);m.setDashed(R);m.setStrokeWidth(V);m.setStrokeColor(S);m.setStrokeAlpha(Q)};y._drawToContext=function(F,P,O){F.begin();for(var S=0;S<P.ops.length;S++){var V=P.ops[S],Q=V.data;switch(V.op){case "move":F.moveTo(Q[0],Q[1]);break;case "bcurveTo":F.curveTo(Q[0],
+Q[1],Q[2],Q[3],Q[4],Q[5]);break;case "lineTo":F.lineTo(Q[0],Q[1])}}F.end();"fillPath"===P.type&&O.filled?F.fill():F.stroke()};return y};(function(){function m(S,V,Q){this.canvas=S;this.rc=V;this.shape=Q;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,m.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,m.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,
m.prototype.rect);this.originalRoundrect=this.canvas.roundrect;this.canvas.roundrect=mxUtils.bind(this,m.prototype.roundrect);this.originalEllipse=this.canvas.ellipse;this.canvas.ellipse=mxUtils.bind(this,m.prototype.ellipse);this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,m.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,m.prototype.moveTo);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,m.prototype.quadTo);
this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=mxUtils.bind(this,m.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,m.prototype.arcTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,m.prototype.close);this.originalFill=this.canvas.fill;this.canvas.fill=mxUtils.bind(this,m.prototype.fill);this.originalStroke=this.canvas.stroke;this.canvas.stroke=mxUtils.bind(this,m.prototype.stroke);this.originalFillAndStroke=this.canvas.fillAndStroke;
-this.canvas.fillAndStroke=mxUtils.bind(this,m.prototype.fillAndStroke);this.path=[];this.passThrough=!1}m.prototype.moveOp="M";m.prototype.lineOp="L";m.prototype.quadOp="Q";m.prototype.curveOp="C";m.prototype.closeOp="Z";m.prototype.getStyle=function(T,V){var Q=1;if(null!=this.shape.state){var S=this.shape.state.cell.id;if(null!=S)for(var U=0;U<S.length;U++)Q=(Q<<5)-Q+S.charCodeAt(U)<<0}Q={strokeWidth:this.canvas.state.strokeWidth,seed:Q,preserveVertices:!0};S=this.rc.getDefaultOptions();Q.stroke=
-T?this.canvas.state.strokeColor===mxConstants.NONE?"transparent":this.canvas.state.strokeColor:mxConstants.NONE;T=null;(Q.filled=V)?(Q.fill=this.canvas.state.fillColor===mxConstants.NONE?"":this.canvas.state.fillColor,T=this.canvas.state.gradientColor===mxConstants.NONE?null:this.canvas.state.gradientColor):Q.fill="";Q.bowing=mxUtils.getValue(this.shape.style,"bowing",S.bowing);Q.hachureAngle=mxUtils.getValue(this.shape.style,"hachureAngle",S.hachureAngle);Q.curveFitting=mxUtils.getValue(this.shape.style,
-"curveFitting",S.curveFitting);Q.roughness=mxUtils.getValue(this.shape.style,"jiggle",S.roughness);Q.simplification=mxUtils.getValue(this.shape.style,"simplification",S.simplification);Q.disableMultiStroke=mxUtils.getValue(this.shape.style,"disableMultiStroke",S.disableMultiStroke);Q.disableMultiStrokeFill=mxUtils.getValue(this.shape.style,"disableMultiStrokeFill",S.disableMultiStrokeFill);V=mxUtils.getValue(this.shape.style,"hachureGap",-1);Q.hachureGap="auto"==V?-1:V;Q.dashGap=mxUtils.getValue(this.shape.style,
+this.canvas.fillAndStroke=mxUtils.bind(this,m.prototype.fillAndStroke);this.path=[];this.passThrough=!1}m.prototype.moveOp="M";m.prototype.lineOp="L";m.prototype.quadOp="Q";m.prototype.curveOp="C";m.prototype.closeOp="Z";m.prototype.getStyle=function(S,V){var Q=1;if(null!=this.shape.state){var R=this.shape.state.cell.id;if(null!=R)for(var U=0;U<R.length;U++)Q=(Q<<5)-Q+R.charCodeAt(U)<<0}Q={strokeWidth:this.canvas.state.strokeWidth,seed:Q,preserveVertices:!0};R=this.rc.getDefaultOptions();Q.stroke=
+S?this.canvas.state.strokeColor===mxConstants.NONE?"transparent":this.canvas.state.strokeColor:mxConstants.NONE;S=null;(Q.filled=V)?(Q.fill=this.canvas.state.fillColor===mxConstants.NONE?"":this.canvas.state.fillColor,S=this.canvas.state.gradientColor===mxConstants.NONE?null:this.canvas.state.gradientColor):Q.fill="";Q.bowing=mxUtils.getValue(this.shape.style,"bowing",R.bowing);Q.hachureAngle=mxUtils.getValue(this.shape.style,"hachureAngle",R.hachureAngle);Q.curveFitting=mxUtils.getValue(this.shape.style,
+"curveFitting",R.curveFitting);Q.roughness=mxUtils.getValue(this.shape.style,"jiggle",R.roughness);Q.simplification=mxUtils.getValue(this.shape.style,"simplification",R.simplification);Q.disableMultiStroke=mxUtils.getValue(this.shape.style,"disableMultiStroke",R.disableMultiStroke);Q.disableMultiStrokeFill=mxUtils.getValue(this.shape.style,"disableMultiStrokeFill",R.disableMultiStrokeFill);V=mxUtils.getValue(this.shape.style,"hachureGap",-1);Q.hachureGap="auto"==V?-1:V;Q.dashGap=mxUtils.getValue(this.shape.style,
"dashGap",V);Q.dashOffset=mxUtils.getValue(this.shape.style,"dashOffset",V);Q.zigzagOffset=mxUtils.getValue(this.shape.style,"zigzagOffset",V);V=mxUtils.getValue(this.shape.style,"fillWeight",-1);Q.fillWeight="auto"==V?-1:V;V=mxUtils.getValue(this.shape.style,"fillStyle","auto");"dots"==V&&(V="auto");"auto"==V&&(V=[mxUtils.hex2rgb("#ffffff")],null!=this.shape.state&&V.push(mxUtils.hex2rgb(this.shape.state.view.graph.shapeBackgroundColor)),Editor.isDarkMode()&&V.push(mxUtils.hex2rgb(Editor.darkColor)),
-V=null!=Q.fill&&(null!=T||0<=mxUtils.indexOf(V,mxUtils.hex2rgb(Q.fill)))?"solid":S.fillStyle);Q.fillStyle=V;return Q};m.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};m.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};m.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var T=2;T<arguments.length;T+=2)this.lastX=arguments[T-1],this.lastY=arguments[T],
-this.path.push(this.canvas.format(this.lastX)),this.path.push(this.canvas.format(this.lastY))};m.prototype.lineTo=function(T,V){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,T,V),this.lastX=T,this.lastY=V)};m.prototype.moveTo=function(T,V){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,T,V),this.lastX=T,this.lastY=V,this.firstX=T,this.firstY=V)};m.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,
-arguments):this.addOp(this.closeOp)};m.prototype.quadTo=function(T,V,Q,S){this.passThrough?this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,T,V,Q,S),this.lastX=Q,this.lastY=S)};m.prototype.curveTo=function(T,V,Q,S,U,Y){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,T,V,Q,S,U,Y),this.lastX=U,this.lastY=Y)};m.prototype.arcTo=function(T,V,Q,S,U,Y,X){if(this.passThrough)this.originalArcTo.apply(this.canvas,arguments);else{var Z=mxUtils.arcToCurves(this.lastX,
-this.lastY,T,V,Q,S,U,Y,X);if(null!=Z)for(var aa=0;aa<Z.length;aa+=6)this.curveTo(Z[aa],Z[aa+1],Z[aa+2],Z[aa+3],Z[aa+4],Z[aa+5]);this.lastX=Y;this.lastY=X}};m.prototype.rect=function(T,V,Q,S){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(T,V,Q,S,this.getStyle(!0,!0)))};m.prototype.ellipse=function(T,V,Q,S){this.passThrough?this.originalEllipse.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(T+
-Q/2,V+S/2,Q,S,this.getStyle(!0,!0)))};m.prototype.roundrect=function(T,V,Q,S,U,Y){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(T+U,V),this.lineTo(T+Q-U,V),this.quadTo(T+Q,V,T+Q,V+Y),this.lineTo(T+Q,V+S-Y),this.quadTo(T+Q,V+S,T+Q-U,V+S),this.lineTo(T+U,V+S),this.quadTo(T,V+S,T,V+S-Y),this.lineTo(T,V+Y),this.quadTo(T,V,T+U,V))};m.prototype.drawPath=function(T){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),T)}catch(Q){}this.passThrough=
-!1}else if(null!=this.nextShape){for(var V in T)this.nextShape.options[V]=T[V];T.stroke!=mxConstants.NONE&&null!=T.stroke||delete this.nextShape.options.stroke;T.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};m.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!1))};m.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):
+V=null!=Q.fill&&(null!=S||0<=mxUtils.indexOf(V,mxUtils.hex2rgb(Q.fill)))?"solid":R.fillStyle);Q.fillStyle=V;return Q};m.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};m.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};m.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var S=2;S<arguments.length;S+=2)this.lastX=arguments[S-1],this.lastY=arguments[S],
+this.path.push(this.canvas.format(this.lastX)),this.path.push(this.canvas.format(this.lastY))};m.prototype.lineTo=function(S,V){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,S,V),this.lastX=S,this.lastY=V)};m.prototype.moveTo=function(S,V){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,S,V),this.lastX=S,this.lastY=V,this.firstX=S,this.firstY=V)};m.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,
+arguments):this.addOp(this.closeOp)};m.prototype.quadTo=function(S,V,Q,R){this.passThrough?this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,S,V,Q,R),this.lastX=Q,this.lastY=R)};m.prototype.curveTo=function(S,V,Q,R,U,Y){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,S,V,Q,R,U,Y),this.lastX=U,this.lastY=Y)};m.prototype.arcTo=function(S,V,Q,R,U,Y,X){if(this.passThrough)this.originalArcTo.apply(this.canvas,arguments);else{var Z=mxUtils.arcToCurves(this.lastX,
+this.lastY,S,V,Q,R,U,Y,X);if(null!=Z)for(var aa=0;aa<Z.length;aa+=6)this.curveTo(Z[aa],Z[aa+1],Z[aa+2],Z[aa+3],Z[aa+4],Z[aa+5]);this.lastX=Y;this.lastY=X}};m.prototype.rect=function(S,V,Q,R){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(S,V,Q,R,this.getStyle(!0,!0)))};m.prototype.ellipse=function(S,V,Q,R){this.passThrough?this.originalEllipse.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(S+
+Q/2,V+R/2,Q,R,this.getStyle(!0,!0)))};m.prototype.roundrect=function(S,V,Q,R,U,Y){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(S+U,V),this.lineTo(S+Q-U,V),this.quadTo(S+Q,V,S+Q,V+Y),this.lineTo(S+Q,V+R-Y),this.quadTo(S+Q,V+R,S+Q-U,V+R),this.lineTo(S+U,V+R),this.quadTo(S,V+R,S,V+R-Y),this.lineTo(S,V+Y),this.quadTo(S,V,S+U,V))};m.prototype.drawPath=function(S){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),S)}catch(Q){}this.passThrough=
+!1}else if(null!=this.nextShape){for(var V in S)this.nextShape.options[V]=S[V];S.stroke!=mxConstants.NONE&&null!=S.stroke||delete this.nextShape.options.stroke;S.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};m.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!1))};m.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):
this.drawPath(this.getStyle(!1,!0))};m.prototype.fillAndStroke=function(){this.passThrough?this.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};m.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(T){return new m(T,Editor.createRoughCanvas(T),this)};var y=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=function(T){return this.outline||
-null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?y.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(T):this.createRoughCanvas(T)};var E=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(T,V,Q,S,U){null!=T.handJiggle&&T.handJiggle.passThrough||E.apply(this,arguments)};var P=mxShape.prototype.paint;mxShape.prototype.paint=function(T){var V=T.addTolerance,Q=!0;null!=this.style&&(Q="1"==mxUtils.getValue(this.style,
-mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=T.handJiggle&&T.handJiggle.constructor==m&&!this.outline){T.save();var S=this.fill,U=this.stroke;this.stroke=this.fill=null;var Y=this.configurePointerEvents,X=T.setStrokeColor;T.setStrokeColor=function(){};var Z=T.setFillColor;T.setFillColor=function(){};Q||null==S||(this.configurePointerEvents=function(){});T.handJiggle.passThrough=!0;P.apply(this,arguments);T.handJiggle.passThrough=!1;T.setFillColor=Z;T.setStrokeColor=X;this.configurePointerEvents=
-Y;this.stroke=U;this.fill=S;T.restore();Q&&null!=S&&(T.addTolerance=function(){})}P.apply(this,arguments);T.addTolerance=V};var O=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(T,V,Q,S,U,Y){null!=T.handJiggle&&T.handJiggle.constructor==m?(T.handJiggle.passThrough=!0,O.apply(this,arguments),T.handJiggle.passThrough=!1):O.apply(this,arguments)}})();Editor.fastCompress=function(m){return null==m||0==m.length||"undefined"===typeof pako?m:Graph.arrayBufferToString(pako.deflateRaw(m))};
-Editor.fastDecompress=function(m){return null==m||0==m.length||"undefined"===typeof pako?m:pako.inflateRaw(Graph.stringToArrayBuffer(atob(m)),{to:"string"})};Editor.extractGraphModel=function(m,y,E){if(null!=m&&"undefined"!==typeof pako){var P=m.ownerDocument.getElementsByTagName("div"),O=[];if(null!=P&&0<P.length)for(var T=0;T<P.length;T++)if("mxgraph"==P[T].getAttribute("class")){O.push(P[T]);break}0<O.length&&(P=O[0].getAttribute("data-mxgraph"),null!=P?(O=JSON.parse(P),null!=O&&null!=O.xml&&(m=
-mxUtils.parseXml(O.xml),m=m.documentElement)):(O=O[0].getElementsByTagName("div"),0<O.length&&(P=mxUtils.getTextContent(O[0]),P=Graph.decompress(P,null,E),0<P.length&&(m=mxUtils.parseXml(P),m=m.documentElement))))}if(null!=m&&"svg"==m.nodeName)if(P=m.getAttribute("content"),null!=P&&"<"!=P.charAt(0)&&"%"!=P.charAt(0)&&(P=unescape(window.atob?atob(P):Base64.decode(cont,P))),null!=P&&"%"==P.charAt(0)&&(P=decodeURIComponent(P)),null!=P&&0<P.length)m=mxUtils.parseXml(P).documentElement;else throw{message:mxResources.get("notADiagramFile")};
-null==m||y||(O=null,"diagram"==m.nodeName?O=m:"mxfile"==m.nodeName&&(P=m.getElementsByTagName("diagram"),0<P.length&&(O=P[Math.max(0,Math.min(P.length-1,urlParams.page||0))])),null!=O&&(m=Editor.parseDiagramNode(O,E)));null==m||"mxGraphModel"==m.nodeName||y&&"mxfile"==m.nodeName||(m=null);return m};Editor.parseDiagramNode=function(m,y,E){Editor.validateDiagramNode(m);var P=mxUtils.trim(mxUtils.getTextContent(m)),O=null;0<P.length?(y=Graph.decompress(P,null,y),null!=y&&0<y.length&&(O=mxUtils.parseXml(y).documentElement)):
-(m=mxUtils.getChildNodes(m),0<m.length&&(O=m[0],E&&(O=Editor.parseDiagramNode(O,y,!1)),y=mxUtils.createXmlDocument(),y.appendChild(y.importNode(O,!0)),O=y.documentElement));return O};Editor.getDiagramNodeXml=function(m){Editor.validateDiagramNode(m);var y=mxUtils.getNodeValue(m),E=null;0<y.length?E=Graph.decompress(y):(m=m.getElementsByTagName("mxGraphModel"),null!=m&&0<m.length&&(E=mxUtils.getXml(m[0])));return E};Editor.validateDiagramNode=function(m){if(0==mxUtils.trim(mxUtils.getTextContent(m)).length&&
-0==mxUtils.getChildNodes(m).length){var y=new mxCodec,E=new mxGraphModel;m.appendChild(y.encode(E))}return m};Editor.extractGraphModelFromPdf=function(m){var y=null;m=m.substring(m.indexOf(",")+1);m=window.atob&&!mxClient.IS_SF?atob(m):Base64.decode(m,!0);if("%PDF-1.7"==m.substring(0,8)){var E=m.indexOf("EmbeddedFile");if(-1<E){var P=m.indexOf("stream",E)+9;if(0<m.substring(E,P).indexOf("application#2Fvnd.jgraph.mxfile")){var O=m.indexOf("endstream",P-1);return pako.inflateRaw(Graph.stringToArrayBuffer(m.substring(P,
-O)),{to:"string"})}}for(E=m.indexOf("/ObjStm");0<E;){P=m.indexOf("stream",E)+9;O=m.indexOf("endstream",P-1);P=pako.inflateRaw(Graph.stringToArrayBuffer(m.substring(P,O)),{to:"string"});O=P.indexOf("/Subject <");if(0<O){E=P.substring(O+14,P.indexOf(">",O));if(null!=E){y=E;E=[];for(P=0;P<y.length;P+=2)O=y.substr(P,2),"00"!=O&&E.push(String.fromCharCode(parseInt(O,16)));y=E.join("")}break}E=m.indexOf("/ObjStm",E+1)}}if(null==y&&"%PDF-1.4"==m.substring(0,8)){E="";O=P=0;for(var T=[],V=null;O<m.length;){var Q=
-m.charCodeAt(O);O+=1;10!=Q&&(E+=String.fromCharCode(Q));Q=="/Subject (%3Cmxfile".charCodeAt(P)?P++:P=0;if(19==P){var S=m.indexOf("%3C%2Fmxfile%3E",O)+15;O-=9;if(S>O){y=m.substring(O,S);break}}10==Q&&("endobj"==E?V=null:"obj"==E.substring(E.length-3,E.length)||"xref"==E||"trailer"==E?(V=[],T[E.split(" ")[0]]=V):null!=V&&V.push(E),E="")}}null==y&&null!=T&&(y=Editor.extractGraphModelFromXref(T));null!=y&&(y=decodeURIComponent(y.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return y};Editor.extractGraphModelFromXref=
-function(m){var y=m.trailer,E=null;null!=y&&(y=/.* \/Info (\d+) (\d+) R/g.exec(y.join("\n")),null!=y&&0<y.length&&(y=m[y[1]],null!=y&&(y=/.* \/Subject (\d+) (\d+) R/g.exec(y.join("\n")),null!=y&&0<y.length&&(m=m[y[1]],null!=m&&(m=m.join("\n"),E=m.substring(1,m.length-1))))));return E};Editor.extractParserError=function(m,y){var E=null;m=null!=m?m.getElementsByTagName("parsererror"):null;null!=m&&0<m.length&&(E=y||mxResources.get("invalidChars"),y=m[0].getElementsByTagName("div"),0<y.length&&(E=mxUtils.getTextContent(y[0])));
-return null!=E?mxUtils.trim(E):E};Editor.addRetryToError=function(m,y){null!=m&&(m=null!=m.error?m.error:m,null==m.retry&&(m.retry=y))};Editor.mermaidToDrawio=function(m,y,E){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(m,y,E)};Editor.configure=function(m){if(null!=m){Editor.config=m;Editor.configVersion=m.version;m.debug&&(urlParams.test="1");m.passiveScroll&&(Editor.passiveScroll=!0);m.noResizers&&(Editor.noResizers=!0);m.preserveViewState&&(Editor.preserveViewState=!0);m.useInternalClipboard&&
+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(S){return new m(S,Editor.createRoughCanvas(S),this)};var y=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=function(S){return this.outline||
+null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?y.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(S):this.createRoughCanvas(S)};var F=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(S,V,Q,R,U){null!=S.handJiggle&&S.handJiggle.passThrough||F.apply(this,arguments)};var P=mxShape.prototype.paint;mxShape.prototype.paint=function(S){var V=S.addTolerance,Q=!0;null!=this.style&&(Q="1"==mxUtils.getValue(this.style,
+mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=S.handJiggle&&S.handJiggle.constructor==m&&!this.outline){S.save();var R=this.fill,U=this.stroke;this.stroke=this.fill=null;var Y=this.configurePointerEvents,X=S.setStrokeColor;S.setStrokeColor=function(){};var Z=S.setFillColor;S.setFillColor=function(){};Q||null==R||(this.configurePointerEvents=function(){});S.handJiggle.passThrough=!0;P.apply(this,arguments);S.handJiggle.passThrough=!1;S.setFillColor=Z;S.setStrokeColor=X;this.configurePointerEvents=
+Y;this.stroke=U;this.fill=R;S.restore();Q&&null!=R&&(S.addTolerance=function(){})}P.apply(this,arguments);S.addTolerance=V};var O=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(S,V,Q,R,U,Y){null!=S.handJiggle&&S.handJiggle.constructor==m?(S.handJiggle.passThrough=!0,O.apply(this,arguments),S.handJiggle.passThrough=!1):O.apply(this,arguments)}})();Editor.fastCompress=function(m){return null==m||0==m.length||"undefined"===typeof pako?m:Graph.arrayBufferToString(pako.deflateRaw(m))};
+Editor.fastDecompress=function(m){return null==m||0==m.length||"undefined"===typeof pako?m:pako.inflateRaw(Graph.stringToArrayBuffer(atob(m)),{to:"string"})};Editor.extractGraphModel=function(m,y,F){if(null!=m&&"undefined"!==typeof pako){var P=m.ownerDocument.getElementsByTagName("div"),O=[];if(null!=P&&0<P.length)for(var S=0;S<P.length;S++)if("mxgraph"==P[S].getAttribute("class")){O.push(P[S]);break}0<O.length&&(P=O[0].getAttribute("data-mxgraph"),null!=P?(O=JSON.parse(P),null!=O&&null!=O.xml&&(m=
+mxUtils.parseXml(O.xml),m=m.documentElement)):(O=O[0].getElementsByTagName("div"),0<O.length&&(P=mxUtils.getTextContent(O[0]),P=Graph.decompress(P,null,F),0<P.length&&(m=mxUtils.parseXml(P),m=m.documentElement))))}if(null!=m&&"svg"==m.nodeName)if(P=m.getAttribute("content"),null!=P&&"<"!=P.charAt(0)&&"%"!=P.charAt(0)&&(P=unescape(window.atob?atob(P):Base64.decode(cont,P))),null!=P&&"%"==P.charAt(0)&&(P=decodeURIComponent(P)),null!=P&&0<P.length)m=mxUtils.parseXml(P).documentElement;else throw{message:mxResources.get("notADiagramFile")};
+null==m||y||(O=null,"diagram"==m.nodeName?O=m:"mxfile"==m.nodeName&&(P=m.getElementsByTagName("diagram"),0<P.length&&(O=P[Math.max(0,Math.min(P.length-1,urlParams.page||0))])),null!=O&&(m=Editor.parseDiagramNode(O,F)));null==m||"mxGraphModel"==m.nodeName||y&&"mxfile"==m.nodeName||(m=null);return m};Editor.parseDiagramNode=function(m,y,F){Editor.validateDiagramNode(m);var P=mxUtils.trim(mxUtils.getTextContent(m)),O=null;0<P.length?(y=Graph.decompress(P,null,y),null!=y&&0<y.length&&(O=mxUtils.parseXml(y).documentElement)):
+(m=mxUtils.getChildNodes(m),0<m.length&&(O=m[0],F&&(O=Editor.parseDiagramNode(O,y,!1)),y=mxUtils.createXmlDocument(),y.appendChild(y.importNode(O,!0)),O=y.documentElement));return O};Editor.getDiagramNodeXml=function(m){Editor.validateDiagramNode(m);var y=mxUtils.getNodeValue(m),F=null;0<y.length?F=Graph.decompress(y):(m=m.getElementsByTagName("mxGraphModel"),null!=m&&0<m.length&&(F=mxUtils.getXml(m[0])));return F};Editor.validateDiagramNode=function(m){if(0==mxUtils.trim(mxUtils.getTextContent(m)).length&&
+0==mxUtils.getChildNodes(m).length){var y=new mxCodec,F=new mxGraphModel;m.appendChild(y.encode(F))}return m};Editor.extractGraphModelFromPdf=function(m){var y=null;m=m.substring(m.indexOf(",")+1);m=window.atob&&!mxClient.IS_SF?atob(m):Base64.decode(m,!0);if("%PDF-1.7"==m.substring(0,8)){var F=m.indexOf("EmbeddedFile");if(-1<F){var P=m.indexOf("stream",F)+9;if(0<m.substring(F,P).indexOf("application#2Fvnd.jgraph.mxfile")){var O=m.indexOf("endstream",P-1);return pako.inflateRaw(Graph.stringToArrayBuffer(m.substring(P,
+O)),{to:"string"})}}for(F=m.indexOf("/ObjStm");0<F;){P=m.indexOf("stream",F)+9;O=m.indexOf("endstream",P-1);P=pako.inflateRaw(Graph.stringToArrayBuffer(m.substring(P,O)),{to:"string"});O=P.indexOf("/Subject <");if(0<O){F=P.substring(O+14,P.indexOf(">",O));if(null!=F){y=F;F=[];for(P=0;P<y.length;P+=2)O=y.substr(P,2),"00"!=O&&F.push(String.fromCharCode(parseInt(O,16)));y=F.join("")}break}F=m.indexOf("/ObjStm",F+1)}}if(null==y&&"%PDF-1.4"==m.substring(0,8)){F="";O=P=0;for(var S=[],V=null;O<m.length;){var Q=
+m.charCodeAt(O);O+=1;10!=Q&&(F+=String.fromCharCode(Q));Q=="/Subject (%3Cmxfile".charCodeAt(P)?P++:P=0;if(19==P){var R=m.indexOf("%3C%2Fmxfile%3E",O)+15;O-=9;if(R>O){y=m.substring(O,R);break}}10==Q&&("endobj"==F?V=null:"obj"==F.substring(F.length-3,F.length)||"xref"==F||"trailer"==F?(V=[],S[F.split(" ")[0]]=V):null!=V&&V.push(F),F="")}}null==y&&null!=S&&(y=Editor.extractGraphModelFromXref(S));null!=y&&(y=decodeURIComponent(y.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return y};Editor.extractGraphModelFromXref=
+function(m){var y=m.trailer,F=null;null!=y&&(y=/.* \/Info (\d+) (\d+) R/g.exec(y.join("\n")),null!=y&&0<y.length&&(y=m[y[1]],null!=y&&(y=/.* \/Subject (\d+) (\d+) R/g.exec(y.join("\n")),null!=y&&0<y.length&&(m=m[y[1]],null!=m&&(m=m.join("\n"),F=m.substring(1,m.length-1))))));return F};Editor.extractParserError=function(m,y){var F=null;m=null!=m?m.getElementsByTagName("parsererror"):null;null!=m&&0<m.length&&(F=y||mxResources.get("invalidChars"),y=m[0].getElementsByTagName("div"),0<y.length&&(F=mxUtils.getTextContent(y[0])));
+return null!=F?mxUtils.trim(F):F};Editor.addRetryToError=function(m,y){null!=m&&(m=null!=m.error?m.error:m,null==m.retry&&(m.retry=y))};Editor.mermaidToDrawio=function(m,y,F){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(m,y,F)};Editor.configure=function(m){if(null!=m){Editor.config=m;Editor.configVersion=m.version;m.debug&&(urlParams.test="1");m.passiveScroll&&(Editor.passiveScroll=!0);m.noResizers&&(Editor.noResizers=!0);m.preserveViewState&&(Editor.preserveViewState=!0);m.useInternalClipboard&&
(EditorUi.prototype.useInternalClipboard=m.useInternalClipboard);if(null!=m.customCss){var y=document.createElement("style");y.type="text/css";y.appendChild(document.createTextNode(m.customCss));document.head.appendChild(y)}null!=m.enableLocalFonts&&(Editor.enableLocalFonts=m.enableLocalFonts);null!=m.defaultFonts&&(Menus.prototype.defaultFonts=m.defaultFonts);null!=m.presetColors&&(ColorDialog.prototype.presetColors=m.presetColors);null!=m.defaultColors&&(ColorDialog.prototype.defaultColors=m.defaultColors);
null!=m.colorNames&&(ColorDialog.prototype.colorNames=m.colorNames);null!=m.defaultColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=m.defaultColorSchemes);null!=m.defaultEdgeLength&&(Graph.prototype.defaultEdgeLength=m.defaultEdgeLength);null!=m.selectParentLayer&&(Graph.selectParentLayer=m.selectParentLayer);null!=m.intersectionSelect&&(Graph.intersectionSelect=m.intersectionSelect);null!=m.autosaveDelay&&(DrawioFile.prototype.autosaveDelay=m.autosaveDelay);null!=m.templateFile&&(EditorUi.templateFile=
m.templateFile);null!=m.styles&&(Array.isArray(m.styles)?Editor.styles=m.styles:EditorUi.debug("Configuration Error: Array expected for styles"));null!=m.globalVars&&(Editor.globalVars=m.globalVars);null!=m.defaultFileType&&(Editor.defaultFileType=m.defaultFileType);null!=m.compressXml&&(Editor.defaultCompressed=m.compressXml,Editor.compressXml=m.compressXml);null!=m.includeDiagram&&(Editor.defaultIncludeDiagram=m.includeDiagram);null!=m.simpleLabels&&(Editor.simpleLabels=m.simpleLabels);null!=m.optimizeHtmlLabels&&
@@ -13010,70 +13016,70 @@ m.templateFile);null!=m.styles&&(Array.isArray(m.styles)?Editor.styles=m.styles:
(Editor.showConnectHandle=m.showConnectHandle);null!=m.enableInlineToolbar&&(Editor.enableInlineToolbar=m.enableInlineToolbar);null!=m.oneDriveInlinePicker&&(Editor.oneDriveInlinePicker=m.oneDriveInlinePicker);null!=m.enableNativeClipboard&&(Editor.enableNativeClipboard=m.enableNativeClipboard);null!=m.enableExportUrl&&(Editor.enableExportUrl=m.enableExportUrl);null!=m.defaultAdaptiveColors?Graph.defaultAdaptiveColors=m.defaultAdaptiveColors:0==m.enableCssDarkMode&&(Graph.defaultAdaptiveColors="simple");
null!=m.enableLightDarkColors&&(mxUtils.lightDarkColorSupported=m.enableLightDarkColors);null!=m.darkColor&&(Editor.darkColor=m.darkColor);null!=m.darkColorVar&&(Editor.darkColorVar=m.darkColorVar);Graph.prototype.defaultPageBackgroundColor="light-dark(#ffffff, "+Editor.darkColor+")";Graph.prototype.shapeBackgroundColor="light-dark(#ffffff, var("+Editor.darkColorVar+", "+Editor.darkColor+"))";null!=m.settingsName&&(Editor.configurationKey="."+m.settingsName+"-configuration",Editor.settingsKey="."+
m.settingsName+"-config",mxSettings.key=Editor.settingsKey);null!=m.customFonts&&(Menus.prototype.defaultFonts=m.customFonts.concat(Menus.prototype.defaultFonts));null!=m.customPresetColors&&(ColorDialog.prototype.presetColors=m.customPresetColors.concat(ColorDialog.prototype.presetColors));null!=m.customColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=m.customColorSchemes.concat(StyleFormatPanel.prototype.defaultColorSchemes));if(null!=m.css){y=document.createElement("style");y.setAttribute("type",
-"text/css");y.appendChild(document.createTextNode(m.css));var E=document.getElementsByTagName("script")[0];E.parentNode.insertBefore(y,E)}null!=m.expandLibraries&&(Sidebar.prototype.expandLibraries=m.expandLibraries);null!=m.appendCustomLibraries&&(Sidebar.prototype.appendCustomLibraries=m.appendCustomLibraries);null!=m.libraries&&(Sidebar.prototype.customEntries=m.libraries);null!=m.enabledLibraries&&(Array.isArray(m.enabledLibraries)?Sidebar.prototype.enabledLibraries=m.enabledLibraries:EditorUi.debug("Configuration Error: Array expected for enabledLibraries"));
+"text/css");y.appendChild(document.createTextNode(m.css));var F=document.getElementsByTagName("script")[0];F.parentNode.insertBefore(y,F)}null!=m.expandLibraries&&(Sidebar.prototype.expandLibraries=m.expandLibraries);null!=m.appendCustomLibraries&&(Sidebar.prototype.appendCustomLibraries=m.appendCustomLibraries);null!=m.libraries&&(Sidebar.prototype.customEntries=m.libraries);null!=m.enabledLibraries&&(Array.isArray(m.enabledLibraries)?Sidebar.prototype.enabledLibraries=m.enabledLibraries:EditorUi.debug("Configuration Error: Array expected for enabledLibraries"));
null!=m.defaultLibraries&&(Sidebar.prototype.defaultEntries=m.defaultLibraries);null!=m.defaultCustomLibraries&&(Editor.defaultCustomLibraries=m.defaultCustomLibraries);null!=m.enableCustomLibraries&&(Editor.enableCustomLibraries=m.enableCustomLibraries);null!=m.defaultVertexStyle&&(Graph.prototype.defaultVertexStyle=m.defaultVertexStyle);null!=m.defaultEdgeStyle&&(Graph.prototype.defaultEdgeStyle=m.defaultEdgeStyle);null!=m.shapePicker&&(EditorUi.prototype.defaultShapePickerEntries=m.shapePicker.shapes);
null!=m.defaultPageVisible&&(Graph.prototype.defaultPageVisible=m.defaultPageVisible);null!=m.defaultGridEnabled&&(Graph.prototype.defaultGridEnabled=m.defaultGridEnabled);null!=m.defaultConnectionArrowsEnabled&&(Graph.prototype.defaultConnectionArrowsEnabled=m.defaultConnectionArrowsEnabled,Graph.prototype.connectionArrowsEnabled=m.defaultConnectionArrowsEnabled);null!=m.defaultConnectable&&(Graph.prototype.defaultConnectable=m.defaultConnectable);null!=m.defaultFoldingEnabled&&(Graph.prototype.defaultFoldingEnabled=
m.defaultFoldingEnabled);null!=m.zoomWheel&&(Graph.zoomWheel=m.zoomWheel);null!=m.zoomFactor&&(y=parseFloat(m.zoomFactor),!isNaN(y)&&1<y?Graph.prototype.zoomFactor=y:EditorUi.debug("Configuration Error: Float > 1 expected for zoomFactor"));null!=m.defaultGridSize&&(y=parseInt(m.defaultGridSize),!isNaN(y)&&0<y?mxGraph.prototype.gridSize=y:EditorUi.debug("Configuration Error: Int > 0 expected for defaultGridSize"));null!=m.gridSteps&&(y=parseInt(m.gridSteps),!isNaN(y)&&0<y?mxGraphView.prototype.gridSteps=
-y:EditorUi.debug("Configuration Error: Int > 0 expected for gridSteps"));null!=m.pageFormat&&(y=parseInt(m.pageFormat.width),E=parseInt(m.pageFormat.height),!isNaN(y)&&0<y&&!isNaN(E)&&0<E?(mxGraph.prototype.defaultPageFormat=new mxRectangle(0,0,y,E),mxGraph.prototype.pageFormat=mxGraph.prototype.defaultPageFormat):EditorUi.debug("Configuration Error: {width: int, height: int} expected for pageFormat"));null!=m.thumbWidth&&(Sidebar.prototype.thumbWidth=m.thumbWidth);null!=m.thumbHeight&&(Sidebar.prototype.thumbHeight=
+y:EditorUi.debug("Configuration Error: Int > 0 expected for gridSteps"));null!=m.pageFormat&&(y=parseInt(m.pageFormat.width),F=parseInt(m.pageFormat.height),!isNaN(y)&&0<y&&!isNaN(F)&&0<F?(mxGraph.prototype.defaultPageFormat=new mxRectangle(0,0,y,F),mxGraph.prototype.pageFormat=mxGraph.prototype.defaultPageFormat):EditorUi.debug("Configuration Error: {width: int, height: int} expected for pageFormat"));null!=m.thumbWidth&&(Sidebar.prototype.thumbWidth=m.thumbWidth);null!=m.thumbHeight&&(Sidebar.prototype.thumbHeight=
m.thumbHeight);null!=m.emptyLibraryXml&&(EditorUi.prototype.emptyLibraryXml=m.emptyLibraryXml);null!=m.emptyDiagramXml&&(EditorUi.prototype.emptyDiagramXml=m.emptyDiagramXml);null!=m.sidebarWidth&&(EditorUi.prototype.hsplitPosition=m.sidebarWidth);null!=m.updateDefaultStyle&&(EditorUi.prototype.updateDefaultStyle=m.updateDefaultStyle);null!=m.sidebarTitles&&(Sidebar.prototype.sidebarTitles=m.sidebarTitles);null!=m.sidebarTitleSize&&(y=parseInt(m.sidebarTitleSize),!isNaN(y)&&0<y?Sidebar.prototype.sidebarTitleSize=
y:EditorUi.debug("Configuration Error: Int > 0 expected for sidebarTitleSize"));null!=m.fontCss&&("string"===typeof m.fontCss?Editor.configureFontCss(m.fontCss):EditorUi.debug("Configuration Error: String expected for fontCss"));null!=m.autosaveDelay&&(y=parseInt(m.autosaveDelay),!isNaN(y)&&0<y?DrawioFile.prototype.autosaveDelay=y:EditorUi.debug("Configuration Error: Int > 0 expected for autosaveDelay"));null!=m.maxImageBytes&&(EditorUi.prototype.maxImageBytes=m.maxImageBytes);null!=m.maxImageSize&&
(EditorUi.prototype.maxImageSize=m.maxImageSize);null!=m.shareCursorPosition&&(EditorUi.prototype.shareCursorPosition=m.shareCursorPosition);null!=m.showRemoteCursors&&(EditorUi.prototype.showRemoteCursors=m.showRemoteCursors);null!=m.restrictExport&&(DrawioFile.RESTRICT_EXPORT=m.restrictExport);null!=m.removeImageMetadata&&(Editor.removeImageMetadata=m.removeImageMetadata);null!=m.defaultTextStyle&&(Editor.defaultTextStyle=m.defaultTextStyle);null!=m.replaceSvgDataUris&&(Editor.replaceSvgDataUris=
m.replaceSvgDataUris);null!=m.foreignObjectImages&&(Editor.foreignObjectImages=m.foreignObjectImages);null!=m.shadowColor&&(mxConstants.SHADOW_COLOR=m.shadowColor);null!=m.shadowOpacity&&(mxConstants.SHADOW_OPACITY=m.shadowOpacity);null!=m.shadowOffsetX&&(mxConstants.SHADOW_OFFSET_X=m.shadowOffsetX);null!=m.shadowOffsetY&&(mxConstants.SHADOW_OFFSET_Y=m.shadowOffsetY);null!=m.shadowBlur&&(mxConstants.SHADOW_BLUR=m.shadowBlur);null!=m.enableAnimations&&(Editor.enableAnimations=m.enableAnimations);null!=
m.enableWindowDocking&&(Editor.enableWindowDocking=m.enableWindowDocking);null!=m.compact&&(EditorUi.prototype.defaultCompact=m.compact);null!=m.noAutoFocus&&(EditorUi.prototype.noAutoFocus=m.noAutoFocus);if(null!=m.hideMenuItems)if(Array.isArray(m.hideMenuItems))for(Menus.prototype.hiddenMenuItems={},y=0;y<m.hideMenuItems.length;y++)Menus.prototype.hiddenMenuItems[m.hideMenuItems[y]]=!0;else EditorUi.debug("Configuration Error: Array expected for hideMenuItems");if(null!=m.hideMenus)if(Array.isArray(m.hideMenus)){var P=
{};for(y=0;y<m.hideMenus.length;y++)P[m.hideMenus[y]]=!0;Menus.prototype.defaultMenuItems=Menus.prototype.defaultMenuItems.filter(function(O){return!P[O]})}else EditorUi.debug("Configuration Error: Array expected for hideMenus");null!=m.enableAi&&(Editor.enableAi=m.enableAi);null!=m.enableChatGpt&&(Editor.enableAi=m.enableChatGpt);null!=m.gptApiKey&&(Editor.aiGlobals.gptApiKey=m.gptApiKey);null!=m.geminiApiKey&&(Editor.aiGlobals.geminiApiKey=m.geminiApiKey);null!=m.claudeApiKey&&(Editor.aiGlobals.claudeApiKey=
-m.claudeApiKey);null!=m.gptUrl&&null!=Editor.aiConfigs.gpt&&(Editor.aiConfigs.gpt.endpoint=m.gptUrl);null!=m.aiActions&&(Editor.aiActions=m.aiActions);null!=m.aiGlobals&&(Editor.aiGlobals=m.aiGlobals);null!=m.aiConfigs&&(Editor.aiConfigs=m.aiConfigs);null!=m.aiModels&&(Editor.aiModels=m.aiModels)}};Editor.isSettingsEnabled=function(){return"undefined"!==typeof window.mxSettings&&(isLocalStorage||mxClient.IS_CHROMEAPP)};Editor.expandSvgPatterns=function(m){function y(Q,S){Q=Q.getAttribute("fill");
-if(null==Q||0!==Q.indexOf("url("))return null;Q=Q.match(/url\([^#]*#([^)"]+)\)?/);if(null==Q)return null;Q=Q[1];try{var U=S.querySelector("#"+CSS.escape(Q));return null!=U&&"pattern"===U.nodeName?U:null}catch(Y){return null}}function E(Q,S,U){var Y,X,Z;try{var aa=Q.getBBox()}catch(ma){return}if(0!==aa.width&&0!==aa.height){var da=parseFloat(S.getAttribute("width")),fa=parseFloat(S.getAttribute("height"));if(!(isNaN(da)||isNaN(fa)||0>=da||0>=fa)){var ba=S.getAttribute("patternTransform");var ia=X=
+m.claudeApiKey);null!=m.gptUrl&&null!=Editor.aiConfigs.gpt&&(Editor.aiConfigs.gpt.endpoint=m.gptUrl);null!=m.aiActions&&(Editor.aiActions=m.aiActions);null!=m.aiGlobals&&(Editor.aiGlobals=m.aiGlobals);null!=m.aiConfigs&&(Editor.aiConfigs=m.aiConfigs);null!=m.aiModels&&(Editor.aiModels=m.aiModels)}};Editor.isSettingsEnabled=function(){return"undefined"!==typeof window.mxSettings&&(isLocalStorage||mxClient.IS_CHROMEAPP)};Editor.expandSvgPatterns=function(m){function y(Q,R){Q=Q.getAttribute("fill");
+if(null==Q||0!==Q.indexOf("url("))return null;Q=Q.match(/url\([^#]*#([^)"]+)\)?/);if(null==Q)return null;Q=Q[1];try{var U=R.querySelector("#"+CSS.escape(Q));return null!=U&&"pattern"===U.nodeName?U:null}catch(Y){return null}}function F(Q,R,U){var Y,X,Z;try{var aa=Q.getBBox()}catch(ma){return}if(0!==aa.width&&0!==aa.height){var da=parseFloat(R.getAttribute("width")),fa=parseFloat(R.getAttribute("height"));if(!(isNaN(da)||isNaN(fa)||0>=da||0>=fa)){var ba=R.getAttribute("patternTransform");var ia=X=
Y=0;var la=Z=1;if(null!=ba){var ka=ba.match(/translate\(\s*([^,\s]+)[,\s]+([^)]+)\)/);null!=ka&&(Y=parseFloat(ka[1]),X=parseFloat(ka[2]));ka=ba.match(/rotate\(\s*([^)]+)\)/);null!=ka&&(ia=parseFloat(ka[1])*Math.PI/180);ba=ba.match(/scale\(\s*([^,\s)]+)(?:[,\s]+([^)]+))?\)/);null!=ba&&(Z=parseFloat(ba[1]),la=null!=ba[2]?parseFloat(ba[2]):Z)}ba=[];for(ka=Q;null!=ka&&ka!==U&&1===ka.nodeType;){var pa=ka.getAttribute("transform");null!=pa&&0<pa.length&&ba.unshift(pa);ka=ka.parentNode}ba=0<ba.length?ba.join(" "):
null;aa=[{x:aa.x,y:aa.y},{x:aa.x+aa.width,y:aa.y},{x:aa.x+aa.width,y:aa.y+aa.height},{x:aa.x,y:aa.y+aa.height}];if(null!=ba)try{var Ba=Q.getCTM(),sa=(U.getCTM()||U.createSVGMatrix()).inverse().multiply(Ba);for(ba=0;ba<aa.length;ba++){var ja=U.createSVGPoint();ja.x=aa[ba].x;ja.y=aa[ba].y;ja=ja.matrixTransform(sa);aa[ba]={x:ja.x,y:ja.y}}}catch(ma){}sa=pa=Infinity;Ba=ja=-Infinity;for(ba=0;ba<aa.length;ba++){var ya=aa[ba].x-Y;var ua=aa[ba].y-X,za=Math.cos(-ia),xa=Math.sin(-ia);ka=(ya*za-ua*xa)/Z;ya=(ya*
xa+ua*za)/la;pa=Math.min(pa,ka);sa=Math.min(sa,ya);ja=Math.max(ja,ka);Ba=Math.max(Ba,ya)}ka=Math.floor(pa/da)-1;sa=Math.floor(sa/fa)-1;ja=Math.ceil(ja/da)+1;aa=Math.ceil(Ba/fa)+1;if(!(1E4<(ja-ka)*(aa-sa))){pa="expand-pattern-clip-"+ ++P;Ba=U.ownerDocument.createElementNS("http://www.w3.org/2000/svg","clipPath");Ba.setAttribute("id",pa);ba=Q.cloneNode(!0);ba.removeAttribute("fill");ba.removeAttribute("fill-opacity");ba.removeAttribute("stroke");ba.removeAttribute("stroke-width");ba.removeAttribute("stroke-opacity");
ba.removeAttribute("style");ba.removeAttribute("pointer-events");ba.setAttribute("fill","black");Ba.appendChild(ba);ba=U.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");ba.setAttribute("clip-path","url(#"+pa+")");pa=Q.getAttribute("fill-opacity");null!=pa&&ba.setAttribute("opacity",pa);pa=U.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");pa.setAttribute("transform","translate("+Y+","+X+")"+(0!==ia?" rotate("+180*ia/Math.PI+")":"")+" scale("+Z+(la!==Z?","+la:"")+")");
-S=S.childNodes;for(Y=ka;Y<ja;Y++)for(X=sa;X<aa;X++){ia=U.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");ia.setAttribute("transform","translate("+Y*da+","+X*fa+")");for(Z=0;Z<S.length;Z++)1===S[Z].nodeType&&ia.appendChild(S[Z].cloneNode(!0));pa.appendChild(ia)}ba.appendChild(pa);da=U.querySelector("defs");null==da&&(da=U.ownerDocument.createElementNS("http://www.w3.org/2000/svg","defs"),U.insertBefore(da,U.firstChild));da.appendChild(Ba);Q.parentNode.insertBefore(ba,Q.nextSibling);
-Q.setAttribute("fill","none");Q.style.fill=""}}}}for(var P=0,O=m.querySelectorAll('[fill^="url("]'),T=0;T<O.length;T++){var V=y(O[T],m);null!=V&&E(O[T],V,m)}O=m.querySelectorAll("[style]");for(T=0;T<O.length;T++)V=O[T].getAttribute("style"),null!=V&&-1!==V.indexOf("url(")&&(V=y(O[T],m),null!=V&&E(O[T],V,m))};Editor.configureFontCss=function(m){if(null!=m){Editor.prototype.fontCss=m;var y=document.getElementsByTagName("script")[0];if(null!=y&&null!=y.parentNode){var E=document.createElement("style");
-E.setAttribute("type","text/css");E.appendChild(document.createTextNode(m));y.parentNode.insertBefore(E,y);m=m.split("url(");for(E=1;E<m.length;E++){var P=m[E].indexOf(")");P=Editor.trimCssUrl(m[E].substring(0,P));var O=document.createElement("link");O.setAttribute("rel","preload");O.setAttribute("href",P);O.setAttribute("as","font");O.setAttribute("crossorigin","");y.parentNode.insertBefore(O,y)}}}};Editor.trimCssUrl=function(m){return m.replace(RegExp("^[\\s\"']+","g"),"").replace(RegExp("[\\s\"']+$",
-"g"),"")};Editor.GOOGLE_FONTS="https://fonts.googleapis.com/css?family=";Editor.GOOGLE_FONTS_CSS2="https://fonts.googleapis.com/css2?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(m){m=null!=m?m:Editor.GUID_LENGTH;for(var y=[],E=0;E<m;E++)y.push(Editor.GUID_ALPHABET.charAt(Math.floor(Math.random()*Editor.GUID_ALPHABET.length)));return y.join("")};Editor.updateStatusInterval=1E4;Editor.prototype.appName="draw.io";
+R=R.childNodes;for(Y=ka;Y<ja;Y++)for(X=sa;X<aa;X++){ia=U.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");ia.setAttribute("transform","translate("+Y*da+","+X*fa+")");for(Z=0;Z<R.length;Z++)1===R[Z].nodeType&&ia.appendChild(R[Z].cloneNode(!0));pa.appendChild(ia)}ba.appendChild(pa);da=U.querySelector("defs");null==da&&(da=U.ownerDocument.createElementNS("http://www.w3.org/2000/svg","defs"),U.insertBefore(da,U.firstChild));da.appendChild(Ba);Q.parentNode.insertBefore(ba,Q.nextSibling);
+Q.setAttribute("fill","none");Q.style.fill=""}}}}for(var P=0,O=m.querySelectorAll('[fill^="url("]'),S=0;S<O.length;S++){var V=y(O[S],m);null!=V&&F(O[S],V,m)}O=m.querySelectorAll("[style]");for(S=0;S<O.length;S++)V=O[S].getAttribute("style"),null!=V&&-1!==V.indexOf("url(")&&(V=y(O[S],m),null!=V&&F(O[S],V,m))};Editor.configureFontCss=function(m){if(null!=m){Editor.prototype.fontCss=m;var y=document.getElementsByTagName("script")[0];if(null!=y&&null!=y.parentNode){var F=document.createElement("style");
+F.setAttribute("type","text/css");F.appendChild(document.createTextNode(m));y.parentNode.insertBefore(F,y);m=m.split("url(");for(F=1;F<m.length;F++){var P=m[F].indexOf(")");P=Editor.trimCssUrl(m[F].substring(0,P));var O=document.createElement("link");O.setAttribute("rel","preload");O.setAttribute("href",P);O.setAttribute("as","font");O.setAttribute("crossorigin","");y.parentNode.insertBefore(O,y)}}}};Editor.trimCssUrl=function(m){return m.replace(RegExp("^[\\s\"']+","g"),"").replace(RegExp("[\\s\"']+$",
+"g"),"")};Editor.GOOGLE_FONTS="https://fonts.googleapis.com/css?family=";Editor.GOOGLE_FONTS_CSS2="https://fonts.googleapis.com/css2?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(m){m=null!=m?m:Editor.GUID_LENGTH;for(var y=[],F=0;F<m;F++)y.push(Editor.GUID_ALPHABET.charAt(Math.floor(Math.random()*Editor.GUID_ALPHABET.length)));return y.join("")};Editor.updateStatusInterval=1E4;Editor.prototype.appName="draw.io";
Editor.prototype.diagramFileTypes=[{description:"diagramXmlDesc",extension:"drawio",mimeType:"text/xml"},{description:"diagramPngDesc",extension:"png",mimeType:"image/png"},{description:"diagramSvgDesc",extension:"svg",mimeType:"image/svg"},{description:"diagramHtmlDesc",extension:"html",mimeType:"text/html"}];Editor.prototype.libraryFileTypes=[{description:"Library (.drawiolib, .xml)",extensions:["drawiolib","xml"]}];Editor.prototype.fileExtensions=[{ext:"html",title:"filetypeHtml"},{ext:"png",title:"filetypePng"},
{ext:"svg",title:"filetypeSvg"}];Editor.prototype.timeout=25E3;Editor.prototype.generateTimeout=6E4;Editor.prototype.editButtonLink=null!=urlParams.edit?decodeURIComponent(urlParams.edit):null;Editor.prototype.crossOriginImages=!0;var b=Editor.prototype.setGraphXml;Editor.prototype.setGraphXml=function(m){m=null!=m&&"mxlibrary"!=m.nodeName?this.extractGraphModel(m):null;if(null!=m){var y=Editor.extractParserError(m,mxResources.get("invalidOrMissingFile"));if(y)throw EditorUi.debug("Editor.setGraphXml ParserError",
-[this],"node",[m],"cause",[y]),Error(mxResources.get("notADiagramFile")+" ("+y+")");if("mxGraphModel"==m.nodeName){y=m.getAttribute("style")||"default-style2";if("1"==urlParams.embed||null!=y&&""!=y)y!=this.graph.currentStyle&&(E=null!=this.graph.themes?this.graph.themes[y]:mxUtils.load(STYLE_PATH+"/"+y+".xml").getDocumentElement(),null!=E&&(P=new mxCodec(E.ownerDocument),P.decode(E,this.graph.getStylesheet())));else{var E=null!=this.graph.themes?this.graph.themes["default-old"]:mxUtils.load(STYLE_PATH+
-"/default-old.xml").getDocumentElement();if(null!=E){var P=new mxCodec(E.ownerDocument);P.decode(E,this.graph.getStylesheet())}}this.graph.currentStyle=y;this.graph.mathEnabled="1"==urlParams.math||"1"==m.getAttribute("math");this.graph.setAdaptiveColors(m.getAttribute("adaptiveColors"));y=m.getAttribute("backgroundImage");null!=y?this.graph.setBackgroundImage(this.graph.parseBackgroundImage(y)):this.graph.setBackgroundImage(null);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&
-this.graph.isCssTransformsSupported();this.graph.updateCssTransform();this.graph.setShadowVisible("1"==m.getAttribute("shadow"),!1);if(y=m.getAttribute("extFonts"))try{for(y=y.split("|").map(function(O){O=O.split("^");return{name:O[0],url:O[1]}}),E=0;E<y.length;E++)this.graph.addExtFont(y[E].name,y[E].url)}catch(O){console.log("ExtFonts format error: "+O.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 f=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=function(m,y){m=null!=m?m:!0;var E=f.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&E.setAttribute("style",this.graph.currentStyle);var P=this.graph.getBackgroundImageObject(this.graph.backgroundImage,y);null!=P&&E.setAttribute("backgroundImage",JSON.stringify(P));E.setAttribute("math",this.graph.mathEnabled?"1":"0");E.setAttribute("shadow",
-this.graph.shadowVisible?"1":"0");null!=this.graph.adaptiveColors?E.setAttribute("adaptiveColors",this.graph.adaptiveColors):E.removeAttribute("adaptiveColors");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(P=this.graph.extFonts.map(function(O){return O.name+"^"+O.url}),E.setAttribute("extFonts",P.join("|")));return E};Editor.prototype.isDataSvg=function(m){try{var y=mxUtils.parseXml(m).documentElement.getAttribute("content");if(null!=y&&(null!=y&&"<"!=y.charAt(0)&&"%"!=y.charAt(0)&&(y=
-unescape(window.atob?atob(y):Base64.decode(cont,y))),null!=y&&"%"==y.charAt(0)&&(y=decodeURIComponent(y)),null!=y&&0<y.length)){var E=mxUtils.parseXml(y).documentElement;return"mxfile"==E.nodeName||"mxGraphModel"==E.nodeName}}catch(P){}return!1};Editor.prototype.extractGraphModel=function(m,y,E){return Editor.extractGraphModel.apply(this,arguments)};var k=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.graph.setAdaptiveColors(null);
+[this],"node",[m],"cause",[y]),Error(mxResources.get("notADiagramFile")+" ("+y+")");if("mxGraphModel"==m.nodeName){y=m.getAttribute("style")||"default-style2";if("1"==urlParams.embed||null!=y&&""!=y)y!=this.graph.currentStyle&&(F=null!=this.graph.themes?this.graph.themes[y]:mxUtils.load(STYLE_PATH+"/"+y+".xml").getDocumentElement(),null!=F&&(P=new mxCodec(F.ownerDocument),P.decode(F,this.graph.getStylesheet())));else{var F=null!=this.graph.themes?this.graph.themes["default-old"]:mxUtils.load(STYLE_PATH+
+"/default-old.xml").getDocumentElement();if(null!=F){var P=new mxCodec(F.ownerDocument);P.decode(F,this.graph.getStylesheet())}}this.graph.currentStyle=y;this.graph.mathEnabled="1"==urlParams.math||"1"==m.getAttribute("math");this.graph.setAdaptiveColors(m.getAttribute("adaptiveColors"));y=m.getAttribute("backgroundImage");null!=y?this.graph.setBackgroundImage(this.graph.parseBackgroundImage(y)):this.graph.setBackgroundImage(null);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&
+this.graph.isCssTransformsSupported();this.graph.updateCssTransform();this.graph.setShadowVisible("1"==m.getAttribute("shadow"),!1);if(y=m.getAttribute("extFonts"))try{for(y=y.split("|").map(function(O){O=O.split("^");return{name:O[0],url:O[1]}}),F=0;F<y.length;F++)this.graph.addExtFont(y[F].name,y[F].url)}catch(O){console.log("ExtFonts format error: "+O.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 f=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=function(m,y){m=null!=m?m:!0;var F=f.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&F.setAttribute("style",this.graph.currentStyle);var P=this.graph.getBackgroundImageObject(this.graph.backgroundImage,y);null!=P&&F.setAttribute("backgroundImage",JSON.stringify(P));F.setAttribute("math",this.graph.mathEnabled?"1":"0");F.setAttribute("shadow",
+this.graph.shadowVisible?"1":"0");null!=this.graph.adaptiveColors?F.setAttribute("adaptiveColors",this.graph.adaptiveColors):F.removeAttribute("adaptiveColors");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(P=this.graph.extFonts.map(function(O){return O.name+"^"+O.url}),F.setAttribute("extFonts",P.join("|")));return F};Editor.prototype.isDataSvg=function(m){try{var y=mxUtils.parseXml(m).documentElement.getAttribute("content");if(null!=y&&(null!=y&&"<"!=y.charAt(0)&&"%"!=y.charAt(0)&&(y=
+unescape(window.atob?atob(y):Base64.decode(cont,y))),null!=y&&"%"==y.charAt(0)&&(y=decodeURIComponent(y)),null!=y&&0<y.length)){var F=mxUtils.parseXml(y).documentElement;return"mxfile"==F.nodeName||"mxGraphModel"==F.nodeName}}catch(P){}return!1};Editor.prototype.extractGraphModel=function(m,y,F){return Editor.extractGraphModel.apply(this,arguments)};var k=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.graph.setAdaptiveColors(null);
this.graph.view.x0=null;this.graph.view.y0=null;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();k.apply(this,arguments)};var d=Editor.prototype.updateGraphComponents;Editor.prototype.updateGraphComponents=function(){d.apply(this,arguments);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.initMath=function(m,y){if("undefined"===
-typeof window.MathJax){var E=function(){P=null;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()};m=null!=m?m:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var P=null;Editor.doMathJaxRender=function(V){null!=MathJax.startup&&null!=MathJax.startup.output&&null!=MathJax.startup.output.options&&null!=MathJax.startup.output.options.linebreaks&&(MathJax.startup.output.options.linebreaks.inline=!1);try{null==P?(MathJax.typesetClear([V]),
-MathJax.typeset([V]),E()):P!=V&&Editor.mathJaxQueue.push(V)}catch(Q){MathJax.typesetClear([V]),null!=Q.retry?(P=V,Q.retry.then(function(){MathJax.typesetPromise([V]).then(E)["catch"](function(S){console.log("Error in MathJax.typesetPromise: "+S.toString());E()})})["catch"](function(S){console.log("Error in MathJax.retry: "+S.toString());E()})):null!=window.console&&console.log("Error in MathJax.typeset: "+Q.toString())}};window.MathJax=null!=y?y:{options:{skipHtmlTags:{"[+]":["text"]},ignoreHtmlClass:"geDisableMathJax"},
+typeof window.MathJax){var F=function(){P=null;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()};m=null!=m?m:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var P=null;Editor.doMathJaxRender=function(V){null!=MathJax.startup&&null!=MathJax.startup.output&&null!=MathJax.startup.output.options&&null!=MathJax.startup.output.options.linebreaks&&(MathJax.startup.output.options.linebreaks.inline=!1);try{null==P?(MathJax.typesetClear([V]),
+MathJax.typeset([V]),F()):P!=V&&Editor.mathJaxQueue.push(V)}catch(Q){MathJax.typesetClear([V]),null!=Q.retry?(P=V,Q.retry.then(function(){MathJax.typesetPromise([V]).then(F)["catch"](function(R){console.log("Error in MathJax.typesetPromise: "+R.toString());F()})})["catch"](function(R){console.log("Error in MathJax.retry: "+R.toString());F()})):null!=window.console&&console.log("Error in MathJax.typeset: "+Q.toString())}};window.MathJax=null!=y?y:{options:{skipHtmlTags:{"[+]":["text"]},ignoreHtmlClass:"geDisableMathJax"},
loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/svg","input/tex","input/asciimath","ui/safe"],paths:{fonts:DRAW_MATH_URL+"/fonts"}},output:{font:"mathjax-tex"},startup:{pageReady:function(){for(var V=0;V<Editor.mathJaxQueue.length;V++)Editor.doMathJaxRender(Editor.mathJaxQueue[V])}}};Editor.MathJaxRender=function(V){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(V):Editor.mathJaxQueue.push(V)};Editor.onMathJaxDone=function(){};var O=
-Editor.prototype.init;Editor.prototype.init=function(){O.apply(this,arguments);var V=mxUtils.bind(this,function(Q,S){null!=this.graph.container&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,V);this.graph.addListener(mxEvent.REFRESH,V)};y=document.getElementsByTagName("script");if(null!=y&&0<y.length){var T=document.createElement("script");T.setAttribute("type","text/javascript");T.setAttribute("src",m);y[0].parentNode.appendChild(T)}}};
-Editor.prototype.csvToArray=function(m){if(0<m.length){var y="",E=[""],P=0,O=!0,T;m=$jscomp.makeIterator(m);for(T=m.next();!T.done;T=m.next())T=T.value,'"'===T?(O&&T===y&&(E[P]+=T),O=!O):","===T&&O?T=E[++P]="":E[P]+=T,y=T;return E}return[]};Editor.prototype.getProxiedUrl=function(m){if((/test\.draw\.io$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname))&&!this.isCorsEnabledForUrl(m)){var y=EditorUi.isVisioFilename(m);y=/\.png$/i.test(m)||/\.pdf$/i.test(m)||y;var E=
-"t="+(new Date).getTime();m=PROXY_URL+"?url="+encodeURIComponent(m)+"&"+E+(y?"&base64=1":"")}return m};Editor.prototype.isCorsEnabledForUrl=function(m){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||m.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(m)||"https://raw.githubusercontent.com/"===m.substring(0,34)||
-"https://fonts.googleapis.com/"===m.substring(0,29)||"https://fonts.gstatic.com/"===m.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var m=new mxUrlConverter;m.updateBaseUrl();var y=m.convert,E=this;m.convert=function(P){null!=P&&navigator.onLine&&("http://"!=P.substring(0,7)&&"https://"!=P.substring(0,8)||P.substring(0,m.baseUrl.length)==m.baseUrl||E.crossOriginImages&&E.isCorsEnabledForUrl(P)?"chrome-extension://"!=P.substring(0,19)&&(P=y.apply(this,arguments)):P=PROXY_URL+
-"?url="+encodeURIComponent(P));return P};return m};Editor.createSvgDataUri=function(m){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(m)))};Editor.prototype.convertImageToDataUri=function(m,y,E,P,O){try{var T=!0,V=window.setTimeout(mxUtils.bind(this,function(){T=!1;y(m)}),this.timeout),Q=mxUtils.bind(this,function(){null!=P?this.convertImageToDataUri(m,y,E,P,!0):y(m)});if(/(\.svg)$/i.test(m)&&!O)mxUtils.get(m,mxUtils.bind(this,function(U){window.clearTimeout(V);T&&(200>U.getStatus()||
-299<U.getStatus()?Q():y(Editor.createSvgDataUri(U.getText())))}),mxUtils.bind(this,function(){window.clearTimeout(V);T&&Q()}));else{var S=new Image;this.crossOriginImages&&(S.crossOrigin="anonymous");S.onload=function(){window.clearTimeout(V);if(T)try{P=null!=P&&O?P:1;var U=document.createElement("canvas");U.height=S.height*P;U.width=S.width*P;var Y=U.getContext("2d");Y.scale(P,P);Y.drawImage(S,0,0);y(U.toDataURL())}catch(X){y(m)}};S.onerror=function(){window.clearTimeout(V);T&&(null!=E?E():y(m))};
-S.src=m}}catch(U){null!=E?E():y(m)}};Editor.prototype.convertImages=function(m,y,E,P){function O(){0<T.length?T.shift()():y(m)}null==P&&(P=this.createImageUrlConverter());var T=[],V=E||{};E=mxUtils.bind(this,function(Q,S){Q=m.getElementsByTagName(Q);for(var U=0;U<Q.length;U++)mxUtils.bind(this,function(Y){T.push(mxUtils.bind(this,function(){try{if(null!=Y){var X=P.convert(Y.getAttribute(S));if(null!=X&&"data:"!=X.substring(0,5)){var Z=V[X];null==Z?this.convertImageToDataUri(X,function(aa){null!=aa&&
-(V[X]=aa,Y.setAttribute(S,aa));O()},null,Editor.svgRasterScale):(Y.setAttribute(S,Z),O())}else null!=X&&Y.setAttribute(S,X),O()}}catch(aa){O()}}))})(Q[U])});E("image","xlink:href");E("img","src");O()};Editor.base64Encode=function(m){for(var y="",E=0,P=m.length,O,T,V;E<P;){O=m.charCodeAt(E++)&255;if(E==P){y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(O>>2);y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((O&3)<<4);y+="==";break}T=m.charCodeAt(E++);
-if(E==P){y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(O>>2);y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((O&3)<<4|(T&240)>>4);y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((T&15)<<2);y+="=";break}V=m.charCodeAt(E++);y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(O>>2);y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((O&3)<<4|(T&240)>>4);y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((T&
-15)<<2|(V&192)>>6);y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(V&63)}return y};Editor.prototype.loadUrl=function(m,y,E,P,O,T,V,Q){try{var S=!V&&(P||/(\.png)($|\?)/i.test(m)||/(\.jpe?g)($|\?)/i.test(m)||/(\.gif)($|\?)/i.test(m)||/(\.pdf)($|\?)/i.test(m));O=null!=O?O:!0;var U=mxUtils.bind(this,function(){mxUtils.get(m,mxUtils.bind(this,function(Y){200<=Y.getStatus()&&299>=Y.getStatus()?null!=y&&(Y=Y.getText(),S&&(T=null!=T?T:"data:image/png;base64,",Y=T+Editor.base64Encode(Y)),
-y(Y)):null!=E&&(0==Y.getStatus()?E({message:mxResources.get("accessDenied")},Y):404==Y.getStatus()?E({message:mxResources.get("fileNotFound"),code:Y.getStatus()},Y):E({message:this.getErrorMessage(Y)},Y))}),function(Y){null!=E&&E({message:mxResources.get("error")+" "+Y.getStatus()})},S,this.timeout,function(){O&&null!=E&&E({code:App.ERROR_TIMEOUT,retry:U})},Q)});U()}catch(Y){null!=E&&E(Y)}};Editor.prototype.getErrorMessage=function(m){var y=mxResources.get("error")+" "+m.getStatus();try{var E=m.getText(),
-P=JSON.parse(E);null!=P&&null!=P.error&&null!=P.error.message&&(y=P.error.message+" ("+y+")")}catch(O){}return y};Editor.prototype.absoluteCssFonts=function(m){var y=null;if(null!=m){var E=m.split("url(");if(0<E.length){y=[E[0]];m=window.location.pathname;var P=null!=m?m.lastIndexOf("/"):-1;0<=P&&(m=m.substring(0,P+1));P=document.getElementsByTagName("base");var O=null;null!=P&&0<P.length&&(O=P[0].getAttribute("href"));for(var T=1;T<E.length;T++)if(P=E[T].indexOf(")"),0<P){var V=Editor.trimCssUrl(E[T].substring(0,
-P));this.graph.isRelativeUrl(V)&&(V=null!=O?O+V:window.location.protocol+"//"+window.location.hostname+("/"==V.charAt(0)?"":m)+V);y.push('url("'+V+'"'+E[T].substring(P))}else y.push(E[T])}else y=[m]}return null!=y?y.join(""):null};Editor.prototype.mapFontUrl=function(m,y,E){/^https?:\/\//.test(y)&&!this.isCorsEnabledForUrl(y)&&(y=PROXY_URL+"?url="+encodeURIComponent(y));E(m,y)};Editor.prototype.embedCssFonts=function(m,y){var E=m.split("url("),P=0;null==this.cachedFonts&&(this.cachedFonts={});var O=
-mxUtils.bind(this,function(){if(0==P){for(var S=[E[0]],U=1;U<E.length;U++){var Y=E[U].indexOf(")");S.push('url("');S.push(this.cachedFonts[Editor.trimCssUrl(E[U].substring(0,Y))]);S.push('"'+E[U].substring(Y))}y(S.join(""))}});if(0<E.length){for(m=1;m<E.length;m++){var T=E[m].indexOf(")"),V=null,Q=E[m].indexOf("format(",T);0<Q&&(V=Editor.trimCssUrl(E[m].substring(Q+7,E[m].indexOf(")",Q))));mxUtils.bind(this,function(S){if(null==this.cachedFonts[S]){this.cachedFonts[S]=S;P++;var U="application/x-font-ttf";
-if("svg"==V||/(\.svg)($|\?)/i.test(S))U="image/svg+xml";else if("otf"==V||"embedded-opentype"==V||/(\.otf)($|\?)/i.test(S))U="application/x-font-opentype";else if("woff"==V||/(\.woff)($|\?)/i.test(S))U="application/font-woff";else if("woff2"==V||/(\.woff2)($|\?)/i.test(S))U="application/font-woff2";else if("eot"==V||/(\.eot)($|\?)/i.test(S))U="application/vnd.ms-fontobject";else if("sfnt"==V||/(\.sfnt)($|\?)/i.test(S))U="application/font-sfnt";this.mapFontUrl(U,S,mxUtils.bind(this,function(Y,X){this.loadUrl(X,
-mxUtils.bind(this,function(Z){this.cachedFonts[S]=Z;P--;O()}),mxUtils.bind(this,function(Z){P--;O()}),!0,null,"data:"+Y+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(E[m].substring(0,T)),V)}O()}else y(m)};Editor.prototype.loadFonts=function(m){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,function(y){this.resolvedFontCss=y;null!=m&&m()})):null!=m&&m()};Editor.prototype.createGoogleFontCache=function(){var m={},y;for(y in Graph.fontMapping)Graph.isCssFontUrl(y)&&
-(m[y]=Graph.fontMapping[y]);return m};Editor.prototype.embedExtFonts=function(m){var y=this.graph.getCustomFonts();if(0<y.length){var E=[],P=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var O=mxUtils.bind(this,function(){0==P&&this.embedCssFonts(E.join(""),m)}),T=0;T<y.length;T++)mxUtils.bind(this,function(V,Q){Graph.isCssFontUrl(Q)?null==this.cachedGoogleFonts[Q]?(P++,this.loadUrl(Graph.rewriteGoogleFontUrl(Q),mxUtils.bind(this,function(S){this.cachedGoogleFonts[Q]=
-S;E.push(S+"\n");P--;O()}),mxUtils.bind(this,function(S){P--;E.push("@import url("+Q+");\n");O()}))):E.push(this.cachedGoogleFonts[Q]+"\n"):E.push('@font-face {font-family: "'+V+'";src: url("'+Q+'")}\n')})(y[T].name,y[T].url);O()}else m()};Editor.prototype.addMathCss=function(m){m=m.getElementsByTagName("defs");if(null!=m&&0<m.length)for(var y=document.getElementsByTagName("style"),E=0;E<y.length;E++){var P=mxUtils.getTextContent(y[E]);0>P.indexOf("mxPageSelector")&&0<P.indexOf("MathJax")&&m[0].appendChild(y[E].cloneNode(!0))}};
-Editor.prototype.addFontCss=function(m,y){y=null!=y?y:this.absoluteCssFonts(this.fontCss);if(null!=y){var E=mxUtils.getSvgDefs(m),P=y.split("\n");y=[];for(var O=[],T=0;T<P.length;T++)"@import"==P[T].substring(0,7)?y.push(P[T]):O.push(P[T]);m=m.ownerDocument;m=null!=m.createElementNS?m.createElementNS(mxConstants.NS_SVG,"style"):m.createElement("style");m.setAttribute("type","text/css");0<y.length&&(mxUtils.setTextContent(m,y.join("\n")),E.appendChild(m));0<O.length&&(m=m.cloneNode(!1),mxUtils.setTextContent(m,
-O.join("\n")),E.appendChild(m))}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||Editor.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(m,y,E){var P=mxClient.IS_FF?8192:16384;return Math.min(E,Math.min(P/m,P/y))};Editor.prototype.exportToCanvas=function(m,y,E,P,O,T,V,Q,S,U,Y,X,Z,aa,da,fa,ba,ia){try{T=null!=T?T:!0;V=null!=V?V:!0;X=null!=X?X:this.graph;Z=null!=Z?Z:0;var la=S?null:X.background;la==mxConstants.NONE&&(la=null);null==la&&(la=P);null==la&&0==S&&
+Editor.prototype.init;Editor.prototype.init=function(){O.apply(this,arguments);var V=mxUtils.bind(this,function(Q,R){null!=this.graph.container&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,V);this.graph.addListener(mxEvent.REFRESH,V)};y=document.getElementsByTagName("script");if(null!=y&&0<y.length){var S=document.createElement("script");S.setAttribute("type","text/javascript");S.setAttribute("src",m);y[0].parentNode.appendChild(S)}}};
+Editor.prototype.csvToArray=function(m){if(0<m.length){var y="",F=[""],P=0,O=!0,S;m=$jscomp.makeIterator(m);for(S=m.next();!S.done;S=m.next())S=S.value,'"'===S?(O&&S===y&&(F[P]+=S),O=!O):","===S&&O?S=F[++P]="":F[P]+=S,y=S;return F}return[]};Editor.prototype.getProxiedUrl=function(m){if((/test\.draw\.io$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname))&&!this.isCorsEnabledForUrl(m)){var y=EditorUi.isVisioFilename(m);y=/\.png$/i.test(m)||/\.pdf$/i.test(m)||y;var F=
+"t="+(new Date).getTime();m=PROXY_URL+"?url="+encodeURIComponent(m)+"&"+F+(y?"&base64=1":"")}return m};Editor.prototype.isCorsEnabledForUrl=function(m){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||m.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(m)||"https://raw.githubusercontent.com/"===m.substring(0,34)||
+"https://fonts.googleapis.com/"===m.substring(0,29)||"https://fonts.gstatic.com/"===m.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var m=new mxUrlConverter;m.updateBaseUrl();var y=m.convert,F=this;m.convert=function(P){null!=P&&navigator.onLine&&("http://"!=P.substring(0,7)&&"https://"!=P.substring(0,8)||P.substring(0,m.baseUrl.length)==m.baseUrl||F.crossOriginImages&&F.isCorsEnabledForUrl(P)?"chrome-extension://"!=P.substring(0,19)&&(P=y.apply(this,arguments)):P=PROXY_URL+
+"?url="+encodeURIComponent(P));return P};return m};Editor.createSvgDataUri=function(m){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(m)))};Editor.prototype.convertImageToDataUri=function(m,y,F,P,O){try{var S=!0,V=window.setTimeout(mxUtils.bind(this,function(){S=!1;y(m)}),this.timeout),Q=mxUtils.bind(this,function(){null!=P?this.convertImageToDataUri(m,y,F,P,!0):y(m)});if(/(\.svg)$/i.test(m)&&!O)mxUtils.get(m,mxUtils.bind(this,function(U){window.clearTimeout(V);S&&(200>U.getStatus()||
+299<U.getStatus()?Q():y(Editor.createSvgDataUri(U.getText())))}),mxUtils.bind(this,function(){window.clearTimeout(V);S&&Q()}));else{var R=new Image;this.crossOriginImages&&(R.crossOrigin="anonymous");R.onload=function(){window.clearTimeout(V);if(S)try{P=null!=P&&O?P:1;var U=document.createElement("canvas");U.height=R.height*P;U.width=R.width*P;var Y=U.getContext("2d");Y.scale(P,P);Y.drawImage(R,0,0);y(U.toDataURL())}catch(X){y(m)}};R.onerror=function(){window.clearTimeout(V);S&&(null!=F?F():y(m))};
+R.src=m}}catch(U){null!=F?F():y(m)}};Editor.prototype.convertImages=function(m,y,F,P){function O(){0<S.length?S.shift()():y(m)}null==P&&(P=this.createImageUrlConverter());var S=[],V=F||{};F=mxUtils.bind(this,function(Q,R){Q=m.getElementsByTagName(Q);for(var U=0;U<Q.length;U++)mxUtils.bind(this,function(Y){S.push(mxUtils.bind(this,function(){try{if(null!=Y){var X=P.convert(Y.getAttribute(R));if(null!=X&&"data:"!=X.substring(0,5)){var Z=V[X];null==Z?this.convertImageToDataUri(X,function(aa){null!=aa&&
+(V[X]=aa,Y.setAttribute(R,aa));O()},null,Editor.svgRasterScale):(Y.setAttribute(R,Z),O())}else null!=X&&Y.setAttribute(R,X),O()}}catch(aa){O()}}))})(Q[U])});F("image","xlink:href");F("img","src");O()};Editor.base64Encode=function(m){for(var y="",F=0,P=m.length,O,S,V;F<P;){O=m.charCodeAt(F++)&255;if(F==P){y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(O>>2);y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((O&3)<<4);y+="==";break}S=m.charCodeAt(F++);
+if(F==P){y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(O>>2);y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((O&3)<<4|(S&240)>>4);y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((S&15)<<2);y+="=";break}V=m.charCodeAt(F++);y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(O>>2);y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((O&3)<<4|(S&240)>>4);y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((S&
+15)<<2|(V&192)>>6);y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(V&63)}return y};Editor.prototype.loadUrl=function(m,y,F,P,O,S,V,Q){try{var R=!V&&(P||/(\.png)($|\?)/i.test(m)||/(\.jpe?g)($|\?)/i.test(m)||/(\.gif)($|\?)/i.test(m)||/(\.pdf)($|\?)/i.test(m));O=null!=O?O:!0;var U=mxUtils.bind(this,function(){mxUtils.get(m,mxUtils.bind(this,function(Y){200<=Y.getStatus()&&299>=Y.getStatus()?null!=y&&(Y=Y.getText(),R&&(S=null!=S?S:"data:image/png;base64,",Y=S+Editor.base64Encode(Y)),
+y(Y)):null!=F&&(0==Y.getStatus()?F({message:mxResources.get("accessDenied")},Y):404==Y.getStatus()?F({message:mxResources.get("fileNotFound"),code:Y.getStatus()},Y):F({message:this.getErrorMessage(Y)},Y))}),function(Y){null!=F&&F({message:mxResources.get("error")+" "+Y.getStatus()})},R,this.timeout,function(){O&&null!=F&&F({code:App.ERROR_TIMEOUT,retry:U})},Q)});U()}catch(Y){null!=F&&F(Y)}};Editor.prototype.getErrorMessage=function(m){var y=mxResources.get("error")+" "+m.getStatus();try{var F=m.getText(),
+P=JSON.parse(F);null!=P&&null!=P.error&&null!=P.error.message&&(y=P.error.message+" ("+y+")")}catch(O){}return y};Editor.prototype.absoluteCssFonts=function(m){var y=null;if(null!=m){var F=m.split("url(");if(0<F.length){y=[F[0]];m=window.location.pathname;var P=null!=m?m.lastIndexOf("/"):-1;0<=P&&(m=m.substring(0,P+1));P=document.getElementsByTagName("base");var O=null;null!=P&&0<P.length&&(O=P[0].getAttribute("href"));for(var S=1;S<F.length;S++)if(P=F[S].indexOf(")"),0<P){var V=Editor.trimCssUrl(F[S].substring(0,
+P));this.graph.isRelativeUrl(V)&&(V=null!=O?O+V:window.location.protocol+"//"+window.location.hostname+("/"==V.charAt(0)?"":m)+V);y.push('url("'+V+'"'+F[S].substring(P))}else y.push(F[S])}else y=[m]}return null!=y?y.join(""):null};Editor.prototype.mapFontUrl=function(m,y,F){/^https?:\/\//.test(y)&&!this.isCorsEnabledForUrl(y)&&(y=PROXY_URL+"?url="+encodeURIComponent(y));F(m,y)};Editor.prototype.embedCssFonts=function(m,y){var F=m.split("url("),P=0;null==this.cachedFonts&&(this.cachedFonts={});var O=
+mxUtils.bind(this,function(){if(0==P){for(var R=[F[0]],U=1;U<F.length;U++){var Y=F[U].indexOf(")");R.push('url("');R.push(this.cachedFonts[Editor.trimCssUrl(F[U].substring(0,Y))]);R.push('"'+F[U].substring(Y))}y(R.join(""))}});if(0<F.length){for(m=1;m<F.length;m++){var S=F[m].indexOf(")"),V=null,Q=F[m].indexOf("format(",S);0<Q&&(V=Editor.trimCssUrl(F[m].substring(Q+7,F[m].indexOf(")",Q))));mxUtils.bind(this,function(R){if(null==this.cachedFonts[R]){this.cachedFonts[R]=R;P++;var U="application/x-font-ttf";
+if("svg"==V||/(\.svg)($|\?)/i.test(R))U="image/svg+xml";else if("otf"==V||"embedded-opentype"==V||/(\.otf)($|\?)/i.test(R))U="application/x-font-opentype";else if("woff"==V||/(\.woff)($|\?)/i.test(R))U="application/font-woff";else if("woff2"==V||/(\.woff2)($|\?)/i.test(R))U="application/font-woff2";else if("eot"==V||/(\.eot)($|\?)/i.test(R))U="application/vnd.ms-fontobject";else if("sfnt"==V||/(\.sfnt)($|\?)/i.test(R))U="application/font-sfnt";this.mapFontUrl(U,R,mxUtils.bind(this,function(Y,X){this.loadUrl(X,
+mxUtils.bind(this,function(Z){this.cachedFonts[R]=Z;P--;O()}),mxUtils.bind(this,function(Z){P--;O()}),!0,null,"data:"+Y+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(F[m].substring(0,S)),V)}O()}else y(m)};Editor.prototype.loadFonts=function(m){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,function(y){this.resolvedFontCss=y;null!=m&&m()})):null!=m&&m()};Editor.prototype.createGoogleFontCache=function(){var m={},y;for(y in Graph.fontMapping)Graph.isCssFontUrl(y)&&
+(m[y]=Graph.fontMapping[y]);return m};Editor.prototype.embedExtFonts=function(m){var y=this.graph.getCustomFonts();if(0<y.length){var F=[],P=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var O=mxUtils.bind(this,function(){0==P&&this.embedCssFonts(F.join(""),m)}),S=0;S<y.length;S++)mxUtils.bind(this,function(V,Q){Graph.isCssFontUrl(Q)?null==this.cachedGoogleFonts[Q]?(P++,this.loadUrl(Graph.rewriteGoogleFontUrl(Q),mxUtils.bind(this,function(R){this.cachedGoogleFonts[Q]=
+R;F.push(R+"\n");P--;O()}),mxUtils.bind(this,function(R){P--;F.push("@import url("+Q+");\n");O()}))):F.push(this.cachedGoogleFonts[Q]+"\n"):F.push('@font-face {font-family: "'+V+'";src: url("'+Q+'")}\n')})(y[S].name,y[S].url);O()}else m()};Editor.prototype.addMathCss=function(m){m=m.getElementsByTagName("defs");if(null!=m&&0<m.length)for(var y=document.getElementsByTagName("style"),F=0;F<y.length;F++){var P=mxUtils.getTextContent(y[F]);0>P.indexOf("mxPageSelector")&&0<P.indexOf("MathJax")&&m[0].appendChild(y[F].cloneNode(!0))}};
+Editor.prototype.addFontCss=function(m,y){y=null!=y?y:this.absoluteCssFonts(this.fontCss);if(null!=y){var F=mxUtils.getSvgDefs(m),P=y.split("\n");y=[];for(var O=[],S=0;S<P.length;S++)"@import"==P[S].substring(0,7)?y.push(P[S]):O.push(P[S]);m=m.ownerDocument;m=null!=m.createElementNS?m.createElementNS(mxConstants.NS_SVG,"style"):m.createElement("style");m.setAttribute("type","text/css");0<y.length&&(mxUtils.setTextContent(m,y.join("\n")),F.appendChild(m));0<O.length&&(m=m.cloneNode(!1),mxUtils.setTextContent(m,
+O.join("\n")),F.appendChild(m))}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||Editor.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(m,y,F){var P=mxClient.IS_FF?8192:16384;return Math.min(F,Math.min(P/m,P/y))};Editor.prototype.exportToCanvas=function(m,y,F,P,O,S,V,Q,R,U,Y,X,Z,aa,da,fa,ba,ia){try{S=null!=S?S:!0;V=null!=V?V:!0;X=null!=X?X:this.graph;Z=null!=Z?Z:0;var la=R?null:X.background;la==mxConstants.NONE&&(la=null);null==la&&(la=P);null==la&&0==R&&
(la="light-dark(#ffffff,"+Editor.darkColor+")");this.convertImages(X.getSvg(null,null,Z,aa,null,V,null,null,null,U,null,fa,ba,ia),mxUtils.bind(this,function(ka){try{ka.style.setProperty("-webkit-font-smoothing","antialiased");ka.style.setProperty("-moz-osx-font-smoothing","grayscale");var pa=new Image;pa.onload=mxUtils.bind(this,function(){try{var sa=function(){mxClient.IS_SF?window.setTimeout(function(){za.drawImage(pa,0,0);m(ja,ka)},0):(za.drawImage(pa,0,0),m(ja,ka))},ja=document.createElement("canvas"),
-ya=parseInt(ka.getAttribute("width")),ua=parseInt(ka.getAttribute("height"));Q=null!=Q?Q:1;null!=y&&(Q=T?Math.min(1,Math.min(3*y/(4*ua),y/ya)):y/ya);Q=this.getMaxCanvasScale(ya,ua,Q);ya=Math.ceil(Q*ya);ua=Math.ceil(Q*ua);ja.setAttribute("width",ya);ja.setAttribute("height",ua);var za=ja.getContext("2d");if(null!=la){var xa=mxUtils.getLightDarkColor(la);za.beginPath();za.rect(0,0,ya,ua);za.fillStyle="dark"==fa&&"none"!=X.getAdaptiveColors()?xa.dark:xa.light;za.fill()}1!=Q&&za.scale(Q,Q);if(da){var ma=
+ya=parseInt(ka.getAttribute("width")),ua=parseInt(ka.getAttribute("height"));Q=null!=Q?Q:1;null!=y&&(Q=S?Math.min(1,Math.min(3*y/(4*ua),y/ya)):y/ya);Q=this.getMaxCanvasScale(ya,ua,Q);ya=Math.ceil(Q*ya);ua=Math.ceil(Q*ua);ja.setAttribute("width",ya);ja.setAttribute("height",ua);var za=ja.getContext("2d");if(null!=la){var xa=mxUtils.getLightDarkColor(la);za.beginPath();za.rect(0,0,ya,ua);za.fillStyle="dark"==fa&&"none"!=X.getAdaptiveColors()?xa.dark:xa.light;za.fill()}1!=Q&&za.scale(Q,Q);if(da){var ma=
X.view,Ca=ma.scale;ma.scale=1;var wa=btoa(unescape(encodeURIComponent(ma.createSvgGrid(ma.gridColor))));ma.scale=Ca;wa="data:image/svg+xml;base64,"+wa;var ha=X.gridSize*ma.gridSteps*Q,ta=X.getGraphBounds(),Da=ma.translate.x*Ca,oa=ma.translate.y*Ca,ca=Da+(ta.x-Da)/Ca-Z,ea=oa+(ta.y-oa)/Ca-Z,qa=new Image;qa.onload=function(){try{for(var na=-Math.round(ha-mxUtils.mod((Da-ca)*Q,ha)),va=-Math.round(ha-mxUtils.mod((oa-ea)*Q,ha));na<ya;na+=ha)for(var ra=va;ra<ua;ra+=ha)za.drawImage(qa,na/Q,ra/Q);sa()}catch(Aa){null!=
O&&O(Aa)}};qa.onerror=function(na){null!=O&&O(na)};qa.src=wa}else sa()}catch(na){null!=O&&O(na)}});pa.onerror=function(sa){null!=O&&O(sa)};U&&this.graph.addSvgShadow(ka);this.graph.mathEnabled&&this.addMathCss(ka);var Ba=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(ka,this.resolvedFontCss),pa.src=Editor.createSvgDataUri(mxUtils.getXml(ka))}catch(sa){null!=O&&O(sa)}});this.embedExtFonts(mxUtils.bind(this,function(sa){try{null!=sa&&this.addFontCss(ka,sa),this.loadFonts(Ba)}catch(ja){null!=
-O&&O(ja)}}))}catch(sa){null!=O&&O(sa)}}),E,Y)}catch(ka){null!=O&&O(ka)}};Editor.crcTable=[];for(var p=0;256>p;p++)for(var t=p,v=0;8>v;v++)t=1==(t&1)?3988292384^t>>>1:t>>>1,Editor.crcTable[p]=t;Editor.updateCRC=function(m,y,E,P){for(var O=0;O<P;O++)m=Editor.crcTable[(m^y.charCodeAt(E+O))&255]^m>>>8;return m};Editor.crc32=function(m){for(var y=-1,E=0;E<m.length;E++)y=y>>>8^Editor.crcTable[(y^m.charCodeAt(E))&255];return(y^-1)>>>0};Editor.writeGraphModelToPng=function(m,y,E,P,O){function T(Y,X){var Z=
-S;S+=X;return Y.substring(Z,S)}function V(Y){Y=T(Y,4);return Y.charCodeAt(3)+(Y.charCodeAt(2)<<8)+(Y.charCodeAt(1)<<16)+(Y.charCodeAt(0)<<24)}function Q(Y){return String.fromCharCode(Y>>24&255,Y>>16&255,Y>>8&255,Y&255)}m=m.substring(m.indexOf(",")+1);m=window.atob?atob(m):Base64.decode(m,!0);var S=0;if(T(m,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=O&&O();else if(T(m,4),"IHDR"!=T(m,4))null!=O&&O();else{T(m,17);O=m.substring(0,S);do{var U=V(m);if("IDAT"==T(m,4)){O=m.substring(0,
-S-8);"pHYs"==y&&"dpi"==E?(E=Math.round(P/.0254),E=Q(E)+Q(E)+String.fromCharCode(1)):E=E+String.fromCharCode(0)+("zTXt"==y?String.fromCharCode(0):"")+P;P=4294967295;P=Editor.updateCRC(P,y,0,4);P=Editor.updateCRC(P,E,0,E.length);O+=Q(E.length)+y+E+Q(P^4294967295);O+=m.substring(S-8,m.length);break}O+=m.substring(S-8,S-4+U);T(m,U);T(m,4)}while(U);return"data:image/png;base64,"+(window.btoa?btoa(O):Base64.encode(O,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";
-var A=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(m,y){A.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var J=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){J.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(m,y,E){var P=null;if(null!=E)return null;null!=m.editor.graph.getModel().getParent(y)?
+O&&O(ja)}}))}catch(sa){null!=O&&O(sa)}}),F,Y)}catch(ka){null!=O&&O(ka)}};Editor.crcTable=[];for(var p=0;256>p;p++)for(var t=p,v=0;8>v;v++)t=1==(t&1)?3988292384^t>>>1:t>>>1,Editor.crcTable[p]=t;Editor.updateCRC=function(m,y,F,P){for(var O=0;O<P;O++)m=Editor.crcTable[(m^y.charCodeAt(F+O))&255]^m>>>8;return m};Editor.crc32=function(m){for(var y=-1,F=0;F<m.length;F++)y=y>>>8^Editor.crcTable[(y^m.charCodeAt(F))&255];return(y^-1)>>>0};Editor.writeGraphModelToPng=function(m,y,F,P,O){function S(Y,X){var Z=
+R;R+=X;return Y.substring(Z,R)}function V(Y){Y=S(Y,4);return Y.charCodeAt(3)+(Y.charCodeAt(2)<<8)+(Y.charCodeAt(1)<<16)+(Y.charCodeAt(0)<<24)}function Q(Y){return String.fromCharCode(Y>>24&255,Y>>16&255,Y>>8&255,Y&255)}m=m.substring(m.indexOf(",")+1);m=window.atob?atob(m):Base64.decode(m,!0);var R=0;if(S(m,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=O&&O();else if(S(m,4),"IHDR"!=S(m,4))null!=O&&O();else{S(m,17);O=m.substring(0,R);do{var U=V(m);if("IDAT"==S(m,4)){O=m.substring(0,
+R-8);"pHYs"==y&&"dpi"==F?(F=Math.round(P/.0254),F=Q(F)+Q(F)+String.fromCharCode(1)):F=F+String.fromCharCode(0)+("zTXt"==y?String.fromCharCode(0):"")+P;P=4294967295;P=Editor.updateCRC(P,y,0,4);P=Editor.updateCRC(P,F,0,F.length);O+=Q(F.length)+y+F+Q(P^4294967295);O+=m.substring(R-8,m.length);break}O+=m.substring(R-8,R-4+U);S(m,U);S(m,4)}while(U);return"data:image/png;base64,"+(window.btoa?btoa(O):Base64.encode(O,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";
+var A=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(m,y){A.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var J=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){J.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(m,y,F){var P=null;if(null!=F)return null;null!=m.editor.graph.getModel().getParent(y)?
P=y.getId():null!=m.currentPage&&(P=m.currentPage.getId());return P});if(null!=window.StyleFormatPanel){var H=Format.prototype.init;Format.prototype.init=function(){H.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded",this.update)};var G=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?G.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(m){return"simple"==
-Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var D=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(m){m=D.apply(this,arguments);var y=this.editorUi,E=y.editor.graph;if(E.isEnabled()){var P=y.getCurrentFile();null!=P&&P.isAutosaveOptional()&&m.appendChild(this.createOption(mxResources.get("autosave"),function(){return y.editor.autosave},function(T){y.editor.setAutosave(T);y.editor.autosave&&P.isModified()&&P.fileChanged()},
-{install:function(T){this.listener=function(){T(y.editor.autosave)};y.editor.addListener("autosaveChanged",this.listener)},destroy:function(){y.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&E.isEnabled()&&"undefined"!==typeof MathJax){var O=this.createOption(mxResources.get("mathematicalTypesetting"),function(){return E.mathEnabled},function(T){y.actions.get("mathematicalTypesetting").funct()},{install:function(T){this.listener=function(){T(E.mathEnabled)};y.addListener("mathEnabledChanged",
+Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var D=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(m){m=D.apply(this,arguments);var y=this.editorUi,F=y.editor.graph;if(F.isEnabled()){var P=y.getCurrentFile();null!=P&&P.isAutosaveOptional()&&m.appendChild(this.createOption(mxResources.get("autosave"),function(){return y.editor.autosave},function(S){y.editor.setAutosave(S);y.editor.autosave&&P.isModified()&&P.fileChanged()},
+{install:function(S){this.listener=function(){S(y.editor.autosave)};y.editor.addListener("autosaveChanged",this.listener)},destroy:function(){y.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&F.isEnabled()&&"undefined"!==typeof MathJax){var O=this.createOption(mxResources.get("mathematicalTypesetting"),function(){return F.mathEnabled},function(S){y.actions.get("mathematicalTypesetting").funct()},{install:function(S){this.listener=function(){S(F.mathEnabled)};y.addListener("mathEnabledChanged",
this.listener)},destroy:function(){y.removeListener(this.listener)}});m.appendChild(O);(!y.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&O.appendChild(y.menus.createHelpLink("https://www.drawio.com/doc/faq/math-typesetting"))}return m};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.zigzag.prototype.customProperties=[{name:"size",dispName:"Size",type:"float",min:5,defVal:20}];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",min:0,max:.5,defVal:.1}];mxCellRenderer.defaultShapes.rhombus.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,max:50,defVal:mxConstants.LINE_ARCSIZE},{name:"double",dispName:"Double",type:"bool",defVal:!1}];mxCellRenderer.defaultShapes.partialRectangle.prototype.customProperties=[{name:"top",dispName:"Top Line",type:"bool",defVal:!0},{name:"bottom",dispName:"Bottom Line",type:"bool",defVal:!0},{name:"left",dispName:"Left Line",
@@ -13100,126 +13106,126 @@ font:"#000000"},{fill:"#e3c800",stroke:"#B09500",font:"#000000"},{fill:"#6d8764"
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;var c=StyleFormatPanel.prototype.init;StyleFormatPanel.prototype.init=function(){var m=this.editorUi.getSelectionState();null!=this.defaultColorSchemes&&0<this.defaultColorSchemes.length&&"image"!=m.style.shape&&!m.containsLabel&&0<m.cells.length&&this.container.appendChild(this.addStyles(this.createPanel()));
c.apply(this,arguments);null!=m.customProperties&&this.container.appendChild(this.addProperties(this.createPanel(),m.customProperties,m))};var g=StyleFormatPanel.prototype.addStyleOps;StyleFormatPanel.prototype.addStyleOps=function(m){var y=this.editorUi.getSelectionState();1==y.cells.length?this.addActions(m,["copyStyle","pasteStyle"]):1<=y.cells.length&&this.addActions(m,["pasteStyle","pasteData"]);g.apply(this,arguments);return m};EditorUi.prototype.propertiesCollapsed=!0;BaseFormatPanel.prototype.addProperties=
-function(m,y,E,P){function O(za,xa,ma,Ca,wa){if(null!=ma.valueChanged)ma.valueChanged(xa,wa,E,X);else{Z.getModel().beginUpdate();try{wa=[];var ha=[];if(null!=ma.index){for(var ta=[],Da=ma.parentRow.nextSibling;Da&&Da.getAttribute("data-pName")==za;)ta.push(Da.getAttribute("data-pValue")),Da=Da.nextSibling;ma.index<ta.length?null!=Ca?ta.splice(Ca,1):ta[ma.index]=xa:ta.push(xa);null!=ma.size&&ta.length>ma.size&&(ta=ta.slice(0,ma.size));xa=ta.join(",");null!=ma.countProperty&&(Z.setCellStyles(ma.countProperty,
+function(m,y,F,P){function O(za,xa,ma,Ca,wa){if(null!=ma.valueChanged)ma.valueChanged(xa,wa,F,X);else{Z.getModel().beginUpdate();try{wa=[];var ha=[];if(null!=ma.index){for(var ta=[],Da=ma.parentRow.nextSibling;Da&&Da.getAttribute("data-pName")==za;)ta.push(Da.getAttribute("data-pValue")),Da=Da.nextSibling;ma.index<ta.length?null!=Ca?ta.splice(Ca,1):ta[ma.index]=xa:ta.push(xa);null!=ma.size&&ta.length>ma.size&&(ta=ta.slice(0,ma.size));xa=ta.join(",");null!=ma.countProperty&&(Z.setCellStyles(ma.countProperty,
ta.length,Z.getSelectionCells()),wa.push(ma.countProperty),ha.push(ta.length))}Z.setCellStyles(za,xa,Z.getSelectionCells());wa.push(za);ha.push(xa);if(null!=ma.dependentProps)for(za=0;za<ma.dependentProps.length;za++){var oa=ma.dependentPropsDefVal[za],ca=ma.dependentPropsVals[za];if(ca.length>xa)ca=ca.slice(0,xa);else for(var ea=ca.length;ea<xa;ea++)ca.push(oa);ca=ca.join(",");Z.setCellStyles(ma.dependentProps[za],ca,Z.getSelectionCells());wa.push(ma.dependentProps[za]);ha.push(ca)}if("function"==
-typeof ma.onChange)ma.onChange(Z,xa);X.editorUi.fireEvent(new mxEventObject("styleChanged","keys",wa,"values",ha,"cells",Z.getSelectionCells()))}finally{Z.getModel().endUpdate()}}}function T(za,xa){xa.style.left="0px";xa.style.top="0px";xa.style.position="relative";xa.style.right="0px";xa.style.bottom="0px";xa.style.width="100%";xa.style.maxWidth="100%";xa.style.maxHeight="100%";xa.style.textAlign="left"}function V(za,xa,ma){function Ca(ha){if(null==ha||ha==mxConstants.NONE)wa.style.background="url('"+
+typeof ma.onChange)ma.onChange(Z,xa);X.editorUi.fireEvent(new mxEventObject("styleChanged","keys",wa,"values",ha,"cells",Z.getSelectionCells()))}finally{Z.getModel().endUpdate()}}}function S(za,xa){xa.style.left="0px";xa.style.top="0px";xa.style.position="relative";xa.style.right="0px";xa.style.bottom="0px";xa.style.width="100%";xa.style.maxWidth="100%";xa.style.maxHeight="100%";xa.style.textAlign="left"}function V(za,xa,ma){function Ca(ha){if(null==ha||ha==mxConstants.NONE)wa.style.background="url('"+
Dialog.prototype.noColorImage+"')";else if("default"==ha)wa.style.background="";else{var ta=mxUtils.getLightDarkColor(ha);mxUtils.isLightDarkColor(ha)&&ta.light!=ta.dark?wa.style.background="linear-gradient(to right bottom, "+ta.cssText+" 50%, "+mxUtils.invertLightDarkColor(ta).cssText+" 50.3%)":wa.style.background=ha}}var wa=document.createElement("div");wa.style.width="32px";wa.style.height="8px";wa.style.margin="2px";wa.style.borderStyle="solid";wa.style.borderWidth="1px";Ca(xa);btn=mxUtils.button("",
mxUtils.bind(X,function(ha){this.editorUi.pickColor(xa,function(ta){O(za,ta,ma);Ca(ta)});mxEvent.consume(ha)}));btn.style.height="18px";btn.style.width="40px";btn.style.marginTop="1px";btn.style.marginLeft="1px";btn.className="geColorBtn";btn.appendChild(wa);return btn}function Q(za,xa,ma,Ca,wa,ha,ta){null!=xa&&(xa=xa.split(","),aa.push({name:za,values:xa,type:ma,defVal:Ca,countProperty:wa,parentRow:ha,isDeletable:!0,flipBkg:ta}));btn=mxUtils.button("+",mxUtils.bind(X,function(Da){for(var oa=ha,ca=
-0;null!=oa.nextSibling;)if(oa.nextSibling.getAttribute("data-pName")==za)oa=oa.nextSibling,ca++;else break;var ea={type:ma,parentRow:ha,index:ca,isDeletable:!0,defVal:Ca,countProperty:wa};ca=Y(za,"",ea,0==ca%2,ta);O(za,Ca,ea);oa.parentNode.insertBefore(ca,oa.nextSibling);mxEvent.consume(Da)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function S(za,xa,ma,Ca,wa,ha,ta){if(0<wa){var Da=Array(wa);xa=null!=xa?xa.split(","):[];for(var oa=0;oa<wa;oa++)Da[oa]=null!=
+0;null!=oa.nextSibling;)if(oa.nextSibling.getAttribute("data-pName")==za)oa=oa.nextSibling,ca++;else break;var ea={type:ma,parentRow:ha,index:ca,isDeletable:!0,defVal:Ca,countProperty:wa};ca=Y(za,"",ea,0==ca%2,ta);O(za,Ca,ea);oa.parentNode.insertBefore(ca,oa.nextSibling);mxEvent.consume(Da)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function R(za,xa,ma,Ca,wa,ha,ta){if(0<wa){var Da=Array(wa);xa=null!=xa?xa.split(","):[];for(var oa=0;oa<wa;oa++)Da[oa]=null!=
xa[oa]?xa[oa]:null!=Ca?Ca:"";aa.push({name:za,values:Da,type:ma,defVal:Ca,parentRow:ha,flipBkg:ta,size:wa})}return document.createElement("div")}function U(za,xa,ma){var Ca=document.createElement("input");Ca.type="checkbox";Ca.checked="1"==xa;mxEvent.addListener(Ca,"change",function(){O(za,Ca.checked?"1":"0",ma,null,Ca)});return Ca}function Y(za,xa,ma,Ca,wa){var ha=ma.dispName,ta=ma.type,Da=document.createElement("tr");Da.className="gePropRow"+(wa?"Dark":"")+(Ca?"Alt":"")+" gePropNonHeaderRow";Da.setAttribute("data-pName",
za);Da.setAttribute("data-pValue",xa);Ca=!1;null!=ma.index&&(Da.setAttribute("data-index",ma.index),ha=(null!=ha?ha:"")+"["+ma.index+"]",Ca=!0);var oa=document.createElement("td");oa.className="gePropRowCell";ha=mxResources.get(ha,null,ha);mxUtils.write(oa,ha);oa.setAttribute("title",ha);Ca&&(oa.style.textAlign="right");Da.appendChild(oa);oa=document.createElement("td");oa.className="gePropRowCell";oa.setAttribute("title",null!=xa?decodeURIComponent(xa):mxResources.get("none"));mxEvent.addListener(oa,
"click",mxUtils.bind(X,function(na){!mxUtils.isAncestorNode(Da,document.activeElement)&&mxUtils.isAncestorNode(Da.parentNode,document.activeElement)&&null!=document.activeElement&&null!=document.activeElement.blur&&(document.activeElement.blur(),mxEvent.consume(na))}));if("color"==ta)oa.appendChild(V(za,xa,ma));else if("bool"==ta||"boolean"==ta)oa.appendChild(U(za,xa,ma));else if("enum"==ta){var ca=ma.enumList;oa.innerHTML="";var ea=document.createElement("div");ea.className="gePropValue";oa.appendChild(ea);
-for(wa=0;wa<ca.length;wa++)if(ha=ca[wa],ha.val==xa){mxUtils.write(ea,mxResources.get(ha.dispName,null,ha.dispName));break}mxEvent.addListener(oa,"click",mxUtils.bind(X,function(na){var va=mxEvent.getSource(na);if(!(va!=oa&&va!=ea||mxEvent.isConsumed(na))){ea.innerHTML="";var ra=document.createElement("select"),Aa=null;T(oa,ra);for(na=0;na<ca.length;na++){va=ca[na];var Ka=document.createElement("option");Ka.value=mxUtils.htmlEntities(va.val);mxUtils.write(Ka,mxResources.get(va.dispName,null,va.dispName));
+for(wa=0;wa<ca.length;wa++)if(ha=ca[wa],ha.val==xa){mxUtils.write(ea,mxResources.get(ha.dispName,null,ha.dispName));break}mxEvent.addListener(oa,"click",mxUtils.bind(X,function(na){var va=mxEvent.getSource(na);if(!(va!=oa&&va!=ea||mxEvent.isConsumed(na))){ea.innerHTML="";var ra=document.createElement("select"),Aa=null;S(oa,ra);for(na=0;na<ca.length;na++){va=ca[na];var Ka=document.createElement("option");Ka.value=mxUtils.htmlEntities(va.val);mxUtils.write(Ka,mxResources.get(va.dispName,null,va.dispName));
ra.appendChild(Ka);null==va.val&&(Ka.value="null",Aa=Ka)}ra.value=null==xa&&null!=Aa?"null":xa;ea.appendChild(ra);mxEvent.addListener(ra,"change",function(){var Na=mxUtils.htmlEntities(ra.value);if(ra[ra.selectedIndex]==Aa||"null"==Na.value)Na=null;O(za,Na,ma)});ra.focus();mxEvent.addListener(ra,"blur",function(){ea.innerHTML="";for(var Na=0;Na<ca.length;Na++){var La=ca[Na];if(La.val==ra.value){mxUtils.write(ea,mxResources.get(La.dispName,null,La.dispName));break}}})}}))}else if("dynamicArr"==ta)oa.appendChild(Q(za,
-xa,ma.subType,ma.subDefVal,ma.countProperty,Da,wa));else if("staticArr"==ta)oa.appendChild(S(za,xa,ma.subType,ma.subDefVal,ma.size,Da,wa));else if("readOnly"==ta)wa=document.createElement("input"),wa.setAttribute("readonly",""),wa.value=xa,wa.style.borderWidth="0px","id"==za||"shape"==za?(Da.firstChild.innerHTML="",Da.firstChild.setAttribute("colspan","2"),wa.style.flexGrow="1",wa.style.marginLeft="4px",wa.style.textAlign="id"==za?"center":"left",wa.setAttribute("title",xa),ha=document.createElement("div"),
+xa,ma.subType,ma.subDefVal,ma.countProperty,Da,wa));else if("staticArr"==ta)oa.appendChild(R(za,xa,ma.subType,ma.subDefVal,ma.size,Da,wa));else if("readOnly"==ta)wa=document.createElement("input"),wa.setAttribute("readonly",""),wa.value=xa,wa.style.borderWidth="0px","id"==za||"shape"==za?(Da.firstChild.innerHTML="",Da.firstChild.setAttribute("colspan","2"),wa.style.flexGrow="1",wa.style.marginLeft="4px",wa.style.textAlign="id"==za?"center":"left",wa.setAttribute("title",xa),ha=document.createElement("div"),
mxUtils.write(ha,mxResources.get(za)+":"),ha.style.display="inline-flex",ha.style.alignItems="center",ha.style.width="100%",ha.appendChild(wa),Da.firstChild.appendChild(ha)):(wa.style.width="96px",oa.appendChild(wa));else{oa.innerHTML="";var qa=document.createElement("div");qa.className="gePropValue";oa.appendChild(qa);qa.innerHTML=mxUtils.htmlEntities(decodeURIComponent(xa));mxEvent.addListener(oa,"click",mxUtils.bind(X,function(na){function va(){var Ka=Aa.value;Ka=0==Ka.length&&"string"!=ta&&"numbers"!=
-ta?0:Ka;ma.allowAuto&&(null!=Ka.trim&&"auto"==Ka.trim().toLowerCase()?(Ka="auto",ta="string"):(Ka=parseFloat(Ka),Ka=isNaN(Ka)?0:Ka));null!=ma.min&&Ka<ma.min?Ka=ma.min:null!=ma.max&&Ka>ma.max&&(Ka=ma.max);var Na=null;try{Na="numbers"==ta?Ka.match(/\d+/g).map(Number).join(" "):encodeURIComponent(("int"==ta?parseInt(Ka):Ka)+"")}catch(La){}O(za,Na,ma,null,Aa)}var ra=mxEvent.getSource(na);if(!(ra!=oa&&ra!=qa||mxEvent.isConsumed(na))){qa.innerHTML="";var Aa=document.createElement("input");T(qa,Aa);Aa.value=
+ta?0:Ka;ma.allowAuto&&(null!=Ka.trim&&"auto"==Ka.trim().toLowerCase()?(Ka="auto",ta="string"):(Ka=parseFloat(Ka),Ka=isNaN(Ka)?0:Ka));null!=ma.min&&Ka<ma.min?Ka=ma.min:null!=ma.max&&Ka>ma.max&&(Ka=ma.max);var Na=null;try{Na="numbers"==ta?Ka.match(/\d+/g).map(Number).join(" "):encodeURIComponent(("int"==ta?parseInt(Ka):Ka)+"")}catch(La){}O(za,Na,ma,null,Aa)}var ra=mxEvent.getSource(na);if(!(ra!=oa&&ra!=qa||mxEvent.isConsumed(na))){qa.innerHTML="";var Aa=document.createElement("input");S(qa,Aa);Aa.value=
decodeURIComponent(xa);Aa.className="gePropEditor";"int"!=ta&&"float"!=ta||ma.allowAuto||(Aa.type="number",Aa.step="int"==ta?"1":"any",null!=ma.min&&(Aa.min=parseFloat(ma.min)),null!=ma.max&&(Aa.max=parseFloat(ma.max)));qa.appendChild(Aa);mxEvent.addListener(Aa,"keypress",function(Ka){13==Ka.keyCode&&va()});Aa.focus();mxEvent.addListener(Aa,"blur",function(){va()})}}))}ma.isDeletable&&(wa=mxUtils.button("-",mxUtils.bind(X,function(na){O(za,"",ma,ma.index);mxEvent.consume(na)})),wa.style.height="16px",
wa.style.width="25px",wa.style.float="right",wa.className="geColorBtn",oa.appendChild(wa));Da.appendChild(oa);return Da}var X=this,Z=this.editorUi.editor.graph,aa=[],da=document.createElement("table");da.className="geProperties geFullWidthElement";var fa=document.createElement("tr");fa.className="gePropHeader";var ba=document.createElement("th");ba.className="gePropHeaderCell";ba.style.paddingLeft="16px";ba.style.backgroundRepeat="no-repeat";ba.style.backgroundPosition="-2px 50%";ba.style.backgroundSize=
"20px";mxUtils.write(ba,mxResources.get("property"));fa.style.cursor="pointer";var ia=function(){var za=da.querySelectorAll(".gePropNonHeaderRow");if(X.editorUi.propertiesCollapsed){ba.style.backgroundImage="url('"+Editor.arrowRightImage+"')";var xa="none";for(var ma=m.childNodes.length-1;0<=ma;ma--)try{var Ca=m.childNodes[ma],wa=Ca.nodeName.toUpperCase();"INPUT"!=wa&&"SELECT"!=wa||m.removeChild(Ca)}catch(ha){}}else ba.style.backgroundImage="url('"+Editor.arrowDownImage+"')",xa="";for(ma=0;ma<za.length;ma++)za[ma].style.display=
-xa};mxEvent.addListener(fa,"click",function(){X.editorUi.propertiesCollapsed=!X.editorUi.propertiesCollapsed;ia()});fa.appendChild(ba);var la=document.createElement("th");la.className="gePropHeaderCell";la.style.paddingLeft="4px";mxUtils.write(la,mxResources.get("value"));fa.appendChild(la);da.appendChild(fa);var ka=la=!1;fa=null;1==E.vertices.length&&0==E.edges.length?fa=E.vertices[0].id:0==E.vertices.length&&1==E.edges.length&&(fa=E.edges[0].id);null==fa||P||(da.appendChild(Y("id",mxUtils.htmlEntities(fa),
-{dispName:"id",type:"readOnly"},!0,!1)),null!=E.style&&null!=E.style.shape&&da.appendChild(Y("shape",mxUtils.htmlEntities(E.style.shape),{dispName:"shape",type:"readOnly"},!0,!1)));for(var pa in y)if(P=y[pa],("function"!=typeof P.isVisible||P.isVisible(E,this))&&!P.primary){var Ba=null!=P.getValue?P.getValue(E,this):null!=E.style[pa]?mxUtils.htmlEntities(E.style[pa]+""):null!=P.getDefaultValue?P.getDefaultValue(E,this):P.defVal;if("separator"==P.type)ka=!ka;else{if("staticArr"==P.type)P.size=parseInt(E.style[P.sizeProperty]||
-y[P.sizeProperty].defVal)||0;else if(null!=P.dependentProps){var sa=P.dependentProps,ja=[],ya=[];for(fa=0;fa<sa.length;fa++)if(null!=y[sa[fa]]){var ua=E.style[sa[fa]];ya.push(y[sa[fa]].subDefVal);ja.push(null!=ua?ua.split(","):[])}P.dependentPropsDefVal=ya;P.dependentPropsVals=ja}da.appendChild(Y(pa,Ba,P,la,ka));la=!la}}for(fa=0;fa<aa.length;fa++)for(P=aa[fa],y=P.parentRow,pa=0;pa<P.values.length;pa++)la=Y(P.name,P.values[pa],{type:P.type,parentRow:P.parentRow,isDeletable:P.isDeletable,index:pa,defVal:P.defVal,
-countProperty:P.countProperty,size:P.size},0==pa%2,P.flipBkg),y.parentNode.insertBefore(la,y.nextSibling),y=la;m.appendChild(da);ia();return m};StyleFormatPanel.prototype.addStyles=function(m){if(null!=this.defaultColorSchemes){var y=this.editorUi,E=y.editor.graph,P=document.createElement("div");P.style.padding="6px 20px 0 24px";m.appendChild(P);var O=document.createElement("div");O.className="geSwitcher";O.style.padding="4px 18px 6px 0px";for(var T=[],V=0;V<this.defaultColorSchemes.length;V++){var Q=
-document.createElement("div");Q.className="geSwitcherDot";mxUtils.bind(this,function(Z){mxEvent.addListener(Q,"click",mxUtils.bind(this,function(){S(Z)}))})(V);T.push(Q);O.appendChild(Q)}var S=mxUtils.bind(this,function(Z){null!=T[Z]&&(null!=this.format.currentScheme&&null!=T[this.format.currentScheme]&&(T[this.format.currentScheme].style.background="transparent"),this.format.currentScheme=Z,U(this.defaultColorSchemes[this.format.currentScheme]),T[this.format.currentScheme].style.background="#84d7ff")}),
-U=mxUtils.bind(this,function(Z){var aa=mxUtils.clone(E.defaultVertexStyle);aa[mxConstants.STYLE_STROKECOLOR]=null!=aa[mxConstants.STYLE_STROKECOLOR]?aa[mxConstants.STYLE_STROKECOLOR]:"default";aa[mxConstants.STYLE_FILLCOLOR]=null!=aa[mxConstants.STYLE_FILLCOLOR]?aa[mxConstants.STYLE_FILLCOLOR]:"default";aa[mxConstants.STYLE_FONTCOLOR]=null!=aa[mxConstants.STYLE_FONTCOLOR]?aa[mxConstants.STYLE_FONTCOLOR]:"default";E.replaceDefaultColors(new mxCell,aa);var da=mxUtils.bind(this,function(ba){var ia=mxUtils.button("",
-mxUtils.bind(this,function(pa){E.getModel().beginUpdate();try{for(var Ba=y.getSelectionState().cells,sa=0;sa<Ba.length;sa++){var ja=E.getModel().getStyle(Ba[sa]);null!=ba?(mxEvent.isShiftDown(pa)||(ja=""==ba.fill||null==ba.fill?mxUtils.setStyle(ja,mxConstants.STYLE_FILLCOLOR,null):mxUtils.setStyle(ja,mxConstants.STYLE_FILLCOLOR,ba.fill),ja=""==ba.gradient||null==ba.gradient?mxUtils.setStyle(ja,mxConstants.STYLE_GRADIENTCOLOR,null):mxUtils.setStyle(ja,mxConstants.STYLE_GRADIENTCOLOR,ba.gradient),mxEvent.isControlDown(pa)||
-mxClient.IS_MAC&&mxEvent.isMetaDown(pa)||!E.getModel().isVertex(Ba[sa])||(ja=""==ba.font||null==ba.font?mxUtils.setStyle(ja,mxConstants.STYLE_FONTCOLOR,null):mxUtils.setStyle(ja,mxConstants.STYLE_FONTCOLOR,ba.font))),mxEvent.isAltDown(pa)||(ja=""==ba.stroke||null==ba.fill?mxUtils.setStyle(ja,mxConstants.STYLE_STROKECOLOR,null):mxUtils.setStyle(ja,mxConstants.STYLE_STROKECOLOR,ba.stroke))):(ja=mxUtils.setStyle(ja,mxConstants.STYLE_FILLCOLOR,null),ja=mxUtils.setStyle(ja,mxConstants.STYLE_STROKECOLOR,
-null),ja=mxUtils.setStyle(ja,mxConstants.STYLE_GRADIENTCOLOR,null),E.getModel().isVertex(Ba[sa])&&(ja=mxUtils.setStyle(ja,mxConstants.STYLE_FONTCOLOR,null)));E.getModel().setStyle(Ba[sa],ja)}}finally{E.getModel().endUpdate()}}));ia.className="geStyleButton";ia.style.width="36px";ia.style.height=10>=this.defaultColorSchemes.length?"24px":"30px";ia.style.margin="0px 6px 6px 0px";if(null!=ba){var la="1px solid";null!=ba.border&&(la=ba.border);if(null!=ba.gradient)ia.style.backgroundImage="linear-gradient("+
+xa};mxEvent.addListener(fa,"click",function(){X.editorUi.propertiesCollapsed=!X.editorUi.propertiesCollapsed;ia()});fa.appendChild(ba);var la=document.createElement("th");la.className="gePropHeaderCell";la.style.paddingLeft="4px";mxUtils.write(la,mxResources.get("value"));fa.appendChild(la);da.appendChild(fa);var ka=la=!1;fa=null;1==F.vertices.length&&0==F.edges.length?fa=F.vertices[0].id:0==F.vertices.length&&1==F.edges.length&&(fa=F.edges[0].id);null==fa||P||(da.appendChild(Y("id",mxUtils.htmlEntities(fa),
+{dispName:"id",type:"readOnly"},!0,!1)),null!=F.style&&null!=F.style.shape&&da.appendChild(Y("shape",mxUtils.htmlEntities(F.style.shape),{dispName:"shape",type:"readOnly"},!0,!1)));for(var pa in y)if(P=y[pa],("function"!=typeof P.isVisible||P.isVisible(F,this))&&!P.primary){var Ba=null!=P.getValue?P.getValue(F,this):null!=F.style[pa]?mxUtils.htmlEntities(F.style[pa]+""):null!=P.getDefaultValue?P.getDefaultValue(F,this):P.defVal;if("separator"==P.type)ka=!ka;else{if("staticArr"==P.type)P.size=parseInt(F.style[P.sizeProperty]||
+y[P.sizeProperty].defVal)||0;else if(null!=P.dependentProps){var sa=P.dependentProps,ja=[],ya=[];for(fa=0;fa<sa.length;fa++)if(null!=y[sa[fa]]){var ua=F.style[sa[fa]];ya.push(y[sa[fa]].subDefVal);ja.push(null!=ua?ua.split(","):[])}P.dependentPropsDefVal=ya;P.dependentPropsVals=ja}da.appendChild(Y(pa,Ba,P,la,ka));la=!la}}for(fa=0;fa<aa.length;fa++)for(P=aa[fa],y=P.parentRow,pa=0;pa<P.values.length;pa++)la=Y(P.name,P.values[pa],{type:P.type,parentRow:P.parentRow,isDeletable:P.isDeletable,index:pa,defVal:P.defVal,
+countProperty:P.countProperty,size:P.size},0==pa%2,P.flipBkg),y.parentNode.insertBefore(la,y.nextSibling),y=la;m.appendChild(da);ia();return m};StyleFormatPanel.prototype.addStyles=function(m){if(null!=this.defaultColorSchemes){var y=this.editorUi,F=y.editor.graph,P=document.createElement("div");P.style.padding="6px 20px 0 24px";m.appendChild(P);var O=document.createElement("div");O.className="geSwitcher";O.style.padding="4px 18px 6px 0px";for(var S=[],V=0;V<this.defaultColorSchemes.length;V++){var Q=
+document.createElement("div");Q.className="geSwitcherDot";mxUtils.bind(this,function(Z){mxEvent.addListener(Q,"click",mxUtils.bind(this,function(){R(Z)}))})(V);S.push(Q);O.appendChild(Q)}var R=mxUtils.bind(this,function(Z){null!=S[Z]&&(null!=this.format.currentScheme&&null!=S[this.format.currentScheme]&&(S[this.format.currentScheme].style.background="transparent"),this.format.currentScheme=Z,U(this.defaultColorSchemes[this.format.currentScheme]),S[this.format.currentScheme].style.background="#84d7ff")}),
+U=mxUtils.bind(this,function(Z){var aa=mxUtils.clone(F.defaultVertexStyle);aa[mxConstants.STYLE_STROKECOLOR]=null!=aa[mxConstants.STYLE_STROKECOLOR]?aa[mxConstants.STYLE_STROKECOLOR]:"default";aa[mxConstants.STYLE_FILLCOLOR]=null!=aa[mxConstants.STYLE_FILLCOLOR]?aa[mxConstants.STYLE_FILLCOLOR]:"default";aa[mxConstants.STYLE_FONTCOLOR]=null!=aa[mxConstants.STYLE_FONTCOLOR]?aa[mxConstants.STYLE_FONTCOLOR]:"default";F.replaceDefaultColors(new mxCell,aa);var da=mxUtils.bind(this,function(ba){var ia=mxUtils.button("",
+mxUtils.bind(this,function(pa){F.getModel().beginUpdate();try{for(var Ba=y.getSelectionState().cells,sa=0;sa<Ba.length;sa++){var ja=F.getModel().getStyle(Ba[sa]);null!=ba?(mxEvent.isShiftDown(pa)||(ja=""==ba.fill||null==ba.fill?mxUtils.setStyle(ja,mxConstants.STYLE_FILLCOLOR,null):mxUtils.setStyle(ja,mxConstants.STYLE_FILLCOLOR,ba.fill),ja=""==ba.gradient||null==ba.gradient?mxUtils.setStyle(ja,mxConstants.STYLE_GRADIENTCOLOR,null):mxUtils.setStyle(ja,mxConstants.STYLE_GRADIENTCOLOR,ba.gradient),mxEvent.isControlDown(pa)||
+mxClient.IS_MAC&&mxEvent.isMetaDown(pa)||!F.getModel().isVertex(Ba[sa])||(ja=""==ba.font||null==ba.font?mxUtils.setStyle(ja,mxConstants.STYLE_FONTCOLOR,null):mxUtils.setStyle(ja,mxConstants.STYLE_FONTCOLOR,ba.font))),mxEvent.isAltDown(pa)||(ja=""==ba.stroke||null==ba.fill?mxUtils.setStyle(ja,mxConstants.STYLE_STROKECOLOR,null):mxUtils.setStyle(ja,mxConstants.STYLE_STROKECOLOR,ba.stroke))):(ja=mxUtils.setStyle(ja,mxConstants.STYLE_FILLCOLOR,null),ja=mxUtils.setStyle(ja,mxConstants.STYLE_STROKECOLOR,
+null),ja=mxUtils.setStyle(ja,mxConstants.STYLE_GRADIENTCOLOR,null),F.getModel().isVertex(Ba[sa])&&(ja=mxUtils.setStyle(ja,mxConstants.STYLE_FONTCOLOR,null)));F.getModel().setStyle(Ba[sa],ja)}}finally{F.getModel().endUpdate()}}));ia.className="geStyleButton";ia.style.width="36px";ia.style.height=10>=this.defaultColorSchemes.length?"24px":"30px";ia.style.margin="0px 6px 6px 0px";if(null!=ba){var la="1px solid";null!=ba.border&&(la=ba.border);if(null!=ba.gradient)ia.style.backgroundImage="linear-gradient("+
mxUtils.getLightDarkColor(ba.fill).cssText+" 0px,"+mxUtils.getLightDarkColor(ba.gradient).cssText+" 100%)";else if(ba.fill==mxConstants.NONE)ia.style.background="url('"+Dialog.prototype.noColorImage+"')";else if(null==ba.fill||""==ba.fill)ia.style.backgroundColor=mxUtils.getLightDarkColor(mxUtils.getValue(aa,mxConstants.STYLE_FILLCOLOR,"#ffffff")).cssText;else{var ka=mxUtils.getLightDarkColor(ba.fill);ia.style.backgroundImage="linear-gradient(to right bottom, "+ka.cssText+" 50%, "+ka.light+" 50.3%)"}null==
ba.stroke||ba.stroke==mxConstants.NONE?ia.style.border=la+" transparent":""==ba.stroke?ia.style.border="1px solid "+mxUtils.getLightDarkColor(mxUtils.getValue(aa,mxConstants.STYLE_STROKECOLOR,"#000000")).cssText:(ka=mxUtils.getLightDarkColor(ba.stroke),ia.style.border=la+" "+ka.cssText,ia.style.borderRightColor=ka.light,ia.style.borderBottomColor=ia.style.borderRightColor);null!=ba.title&&ia.setAttribute("title",ba.title)}else la=mxUtils.getValue(aa,mxConstants.STYLE_FILLCOLOR,"#ffffff"),ka=mxUtils.getValue(aa,
mxConstants.STYLE_STROKECOLOR,"#000000"),ia.style.backgroundColor=la,ia.style.border="1px solid "+ka;ia.style.borderRadius="0";P.appendChild(ia);null!=ba&&null!=ba.gradient&&(la=ia.cloneNode(!1),la.style.backgroundImage="linear-gradient(light-dark(transparent, "+mxUtils.getLightDarkColor(ba.fill).light+") 0px, light-dark(transparent, "+mxUtils.getLightDarkColor(ba.gradient).light+") 100%)",la.style.clipPath="polygon(0 100%, 100% 0, 100% 100%)",la.style.backgroundColor="transparent",P.appendChild(la),
-la.style.marginLeft="-42px",mxEvent.addListener(la,"click",function(){ia.click()}))});P.innerText="";if(null!=Z)for(var fa=0;fa<Z.length;fa++)0<fa&&0==mxUtils.mod(fa,4)&&mxUtils.br(P),da(Z[fa])});null==this.format.currentScheme?S(Math.min(T.length-1,Editor.isDarkMode()?1:"1"==urlParams.sketch?5:0)):S(this.format.currentScheme);V=10>=this.defaultColorSchemes.length?43:23;var Y=document.createElement("div");Y.className="geButton";Y.style.cssText="position:absolute;left:0px;bottom:"+V+"px;width:20px;background-image:url("+
-Editor.chevronLeftImage+");";mxEvent.addListener(Y,"click",mxUtils.bind(this,function(){S(mxUtils.mod(this.format.currentScheme-1,this.defaultColorSchemes.length))}));var X=document.createElement("div");X.className="geButton";X.style.cssText="position:absolute;left:186px;bottom:"+V+"px;width:20px;background-image:url("+Editor.chevronRightImage+");";1<this.defaultColorSchemes.length&&(m.appendChild(Y),m.appendChild(X));mxEvent.addListener(X,"click",mxUtils.bind(this,function(){S(mxUtils.mod(this.format.currentScheme+
+la.style.marginLeft="-42px",mxEvent.addListener(la,"click",function(){ia.click()}))});P.innerText="";if(null!=Z)for(var fa=0;fa<Z.length;fa++)0<fa&&0==mxUtils.mod(fa,4)&&mxUtils.br(P),da(Z[fa])});null==this.format.currentScheme?R(Math.min(S.length-1,Editor.isDarkMode()?1:"1"==urlParams.sketch?5:0)):R(this.format.currentScheme);V=10>=this.defaultColorSchemes.length?43:23;var Y=document.createElement("div");Y.className="geButton";Y.style.cssText="position:absolute;left:0px;bottom:"+V+"px;width:20px;background-image:url("+
+Editor.chevronLeftImage+");";mxEvent.addListener(Y,"click",mxUtils.bind(this,function(){R(mxUtils.mod(this.format.currentScheme-1,this.defaultColorSchemes.length))}));var X=document.createElement("div");X.className="geButton";X.style.cssText="position:absolute;left:186px;bottom:"+V+"px;width:20px;background-image:url("+Editor.chevronRightImage+");";1<this.defaultColorSchemes.length&&(m.appendChild(Y),m.appendChild(X));mxEvent.addListener(X,"click",mxUtils.bind(this,function(){R(mxUtils.mod(this.format.currentScheme+
1,this.defaultColorSchemes.length))}));U(this.defaultColorSchemes[this.format.currentScheme]);10>=this.defaultColorSchemes.length&&m.appendChild(O)}return m}}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.isGoogleFontUrl=function(m){return m.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS||
-m.substring(0,Editor.GOOGLE_FONTS_CSS2.length)==Editor.GOOGLE_FONTS_CSS2};Graph.isCssFontUrl=function(m){return Graph.isGoogleFontUrl(m)};Graph.rewriteGoogleFontUrl=function(m){null!=m&&m.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS&&(m=Editor.GOOGLE_FONTS_CSS2+m.substring(Editor.GOOGLE_FONTS.length)+":wght@400;500");return m};Graph.createFontElement=function(m,y){var E=Graph.fontMapping[y];null==E&&Graph.isCssFontUrl(y)?(m=document.createElement("link"),m.setAttribute("rel","stylesheet"),
-m.setAttribute("type","text/css"),m.setAttribute("charset","UTF-8"),m.setAttribute("href",Graph.rewriteGoogleFontUrl(y))):(null==E&&(E='@font-face {\nfont-family: "'+m+'";\nsrc: url("'+y+'");\n}'),m=document.createElement("style"),mxUtils.write(m,E));return m};Graph.addRecentCustomFont=function(m,y){};Graph.addFont=function(m,y,E,P){if(null!=m&&0<m.length&&null!=y&&0<y.length){P=null!=P?P:Graph.customFontElements;var O=m.toLowerCase();if("helvetica"!=O&&"arial"!=m&&"sans-serif"!=O){var T=P[O];null!=
-T&&T.url!=y&&(T.elt.parentNode.removeChild(T.elt),T=null);null==T?(T=y,"http:"==y.substring(0,5)&&(T=PROXY_URL+"?url="+encodeURIComponent(y)),T={name:m,url:y,elt:Graph.createFontElement(m,T)},P[O]=T,y=P==Graph.customFontElements?document.getElementsByTagName("head")[0]:null,null!=E&&("link"==T.elt.nodeName.toLowerCase()?(T.elt.onload=E,T.elt.onerror=E):E()),null!=y&&y.appendChild(T.elt)):null!=E&&E()}else null!=E&&E()}else null!=E&&E();return m};Graph.getFontUrl=function(m,y){m=Graph.customFontElements[m.toLowerCase()];
-null!=m&&(y=m.url);return y};Graph.processFontAttributes=function(m){m=m.getElementsByTagName("*");for(var y=0;y<m.length;y++){var E=m[y].getAttribute("data-font-src");if(null!=E){var P="FONT"==m[y].nodeName?m[y].getAttribute("face"):m[y].style.fontFamily;null!=P&&Graph.addFont(P,E)}}};Graph.processFontStyle=function(m){if(null!=m){var y=mxUtils.getValue(m,"fontSource",null);if(null!=y){var E=mxUtils.getValue(m,mxConstants.STYLE_FONTFAMILY,null);if(null!=E)try{Graph.addFont(E,decodeURIComponent(y))}catch(P){}}}return m};
+m.substring(0,Editor.GOOGLE_FONTS_CSS2.length)==Editor.GOOGLE_FONTS_CSS2};Graph.isCssFontUrl=function(m){return Graph.isGoogleFontUrl(m)};Graph.rewriteGoogleFontUrl=function(m){null!=m&&m.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS&&(m=Editor.GOOGLE_FONTS_CSS2+m.substring(Editor.GOOGLE_FONTS.length)+":wght@400;500");return m};Graph.createFontElement=function(m,y){var F=Graph.fontMapping[y];null==F&&Graph.isCssFontUrl(y)?(m=document.createElement("link"),m.setAttribute("rel","stylesheet"),
+m.setAttribute("type","text/css"),m.setAttribute("charset","UTF-8"),m.setAttribute("href",Graph.rewriteGoogleFontUrl(y))):(null==F&&(F='@font-face {\nfont-family: "'+m+'";\nsrc: url("'+y+'");\n}'),m=document.createElement("style"),mxUtils.write(m,F));return m};Graph.addRecentCustomFont=function(m,y){};Graph.addFont=function(m,y,F,P){if(null!=m&&0<m.length&&null!=y&&0<y.length){P=null!=P?P:Graph.customFontElements;var O=m.toLowerCase();if("helvetica"!=O&&"arial"!=m&&"sans-serif"!=O){var S=P[O];null!=
+S&&S.url!=y&&(S.elt.parentNode.removeChild(S.elt),S=null);null==S?(S=y,"http:"==y.substring(0,5)&&(S=PROXY_URL+"?url="+encodeURIComponent(y)),S={name:m,url:y,elt:Graph.createFontElement(m,S)},P[O]=S,y=P==Graph.customFontElements?document.getElementsByTagName("head")[0]:null,null!=F&&("link"==S.elt.nodeName.toLowerCase()?(S.elt.onload=F,S.elt.onerror=F):F()),null!=y&&y.appendChild(S.elt)):null!=F&&F()}else null!=F&&F()}else null!=F&&F();return m};Graph.getFontUrl=function(m,y){m=Graph.customFontElements[m.toLowerCase()];
+null!=m&&(y=m.url);return y};Graph.processFontAttributes=function(m){m=m.getElementsByTagName("*");for(var y=0;y<m.length;y++){var F=m[y].getAttribute("data-font-src");if(null!=F){var P="FONT"==m[y].nodeName?m[y].getAttribute("face"):m[y].style.fontFamily;null!=P&&Graph.addFont(P,F)}}};Graph.processFontStyle=function(m){if(null!=m){var y=mxUtils.getValue(m,"fontSource",null);if(null!=y){var F=mxUtils.getValue(m,mxConstants.STYLE_FONTFAMILY,null);if(null!=F)try{Graph.addFont(F,decodeURIComponent(y))}catch(P){}}}return m};
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.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowBlur="1.7";Graph.prototype.svgShadowSize="3";Graph.prototype.hiddenTags=[];Graph.prototype.defaultMathEnabled=!1;var l=Graph.prototype.init;Graph.prototype.init=function(){function m(O){y=
-O}l.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var y=null;mxEvent.addListener(this.container,"mouseenter",m);mxEvent.addListener(this.container,"mousemove",m);mxEvent.addListener(this.container,"mouseleave",function(O){y=null});this.isMouseInsertPoint=function(){return null!=y};var E=this.getInsertPoint;this.getInsertPoint=function(O){return null==y||O?E.apply(this,arguments):this.getPointForEvent(y)};var P=this.layoutManager.getLayout;this.layoutManager.getLayout=
-function(O){var T=this.graph.getCellStyle(O);if(null!=T&&"rack"==T.childLayout){var V=new mxStackLayout(this.graph,!1);V.gridSize=null!=T.rackUnitSize?parseFloat(T.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;V.marginLeft=T.marginLeft||0;V.marginRight=T.marginRight||0;V.marginTop=T.marginTop||0;V.marginBottom=T.marginBottom||0;V.allowGaps=T.allowGaps||0;V.horizontal="1"==mxUtils.getValue(T,"horizontalRack","0");V.resizeParent=!1;V.fill=!0;return V}return P.apply(this,
-arguments)};this.updateGlobalUrlVariables()};var n=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(m,y){return Graph.processFontStyle(n.apply(this,arguments))};var u=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(m,y,E,P,O,T,V,Q,S,U,Y,X){u.apply(this,arguments);Graph.processFontAttributes(X)};var x=mxText.prototype.redraw;mxText.prototype.redraw=function(){x.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&
-Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(m,y,E,P){function O(){for(var fa=Q.getSelectionCells(),ba=[],ia=0;ia<fa.length;ia++)Q.isCellVisible(fa[ia])&&ba.push(fa[ia]);Q.setSelectionCells(ba)}function T(fa){Q.setHiddenTags(fa?[]:S.slice());O();Q.refresh()}function V(fa,ba){Y.innerText="";if(0<fa.length){var ia=document.createElement("table");ia.setAttribute("cellpadding","2");ia.style.boxSizing="border-box";ia.style.tableLayout="fixed";ia.style.width="100%";
+O}l.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var y=null;mxEvent.addListener(this.container,"mouseenter",m);mxEvent.addListener(this.container,"mousemove",m);mxEvent.addListener(this.container,"mouseleave",function(O){y=null});this.isMouseInsertPoint=function(){return null!=y};var F=this.getInsertPoint;this.getInsertPoint=function(O){return null==y||O?F.apply(this,arguments):this.getPointForEvent(y)};var P=this.layoutManager.getLayout;this.layoutManager.getLayout=
+function(O){var S=this.graph.getCellStyle(O);if(null!=S&&"rack"==S.childLayout){var V=new mxStackLayout(this.graph,!1);V.gridSize=null!=S.rackUnitSize?parseFloat(S.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;V.marginLeft=S.marginLeft||0;V.marginRight=S.marginRight||0;V.marginTop=S.marginTop||0;V.marginBottom=S.marginBottom||0;V.allowGaps=S.allowGaps||0;V.horizontal="1"==mxUtils.getValue(S,"horizontalRack","0");V.resizeParent=!1;V.fill=!0;return V}return P.apply(this,
+arguments)};this.updateGlobalUrlVariables()};var n=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(m,y){return Graph.processFontStyle(n.apply(this,arguments))};var u=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(m,y,F,P,O,S,V,Q,R,U,Y,X){u.apply(this,arguments);Graph.processFontAttributes(X)};var x=mxText.prototype.redraw;mxText.prototype.redraw=function(){x.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&
+Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(m,y,F,P){function O(){for(var fa=Q.getSelectionCells(),ba=[],ia=0;ia<fa.length;ia++)Q.isCellVisible(fa[ia])&&ba.push(fa[ia]);Q.setSelectionCells(ba)}function S(fa){Q.setHiddenTags(fa?[]:R.slice());O();Q.refresh()}function V(fa,ba){Y.innerText="";if(0<fa.length){var ia=document.createElement("table");ia.setAttribute("cellpadding","2");ia.style.boxSizing="border-box";ia.style.tableLayout="fixed";ia.style.width="100%";
var la=document.createElement("tbody");if(null!=fa&&0<fa.length)for(var ka=0;ka<fa.length;ka++)(function(pa){function Ba(){var xa=Q.getCellsForTags([pa],null,null,!0);Q.isEnabled()?Q.setSelectionCells(xa):Q.highlightCells(xa,null,null,70)}var sa=0>mxUtils.indexOf(Q.hiddenTags,pa),ja=document.createElement("tr"),ya=document.createElement("td");ya.style.align="center";ya.style.width="16px";var ua=document.createElement("img");ua.setAttribute("src",sa?Editor.visibleImage:Editor.hiddenImage);ua.setAttribute("title",
-mxResources.get(sa?"hideIt":"show",[pa]));mxUtils.setOpacity(ua,sa?75:25);ua.className="geAdaptiveAsset";ua.style.verticalAlign="middle";ua.style.cursor="pointer";ua.style.width="16px";if(y||Editor.isDarkMode())ua.style.filter="invert(100%)";ya.appendChild(ua);mxEvent.addListener(ua,"click",function(xa){mxEvent.isShiftDown(xa)?T(0<=mxUtils.indexOf(Q.hiddenTags,pa)):(Q.toggleHiddenTag(pa),O(),Q.refresh());mxEvent.consume(xa)});ja.appendChild(ya);ya=document.createElement("td");ya.style.align="center";
-ya.style.width="16px";ua=document.createElement("img");ua.setAttribute("src",Editor.selectImage);ua.setAttribute("title",mxResources.get("select"));mxUtils.setOpacity(ua,sa?75:25);ua.className="geAdaptiveAsset";ua.style.verticalAlign="middle";ua.style.cursor="pointer";ua.style.width="16px";if(y||Editor.isDarkMode())ua.style.filter="invert(100%)";mxEvent.addListener(ua,"click",function(xa){T(!0);Ba();mxEvent.consume(xa)});ya.appendChild(ua);ja.appendChild(ya);ya=document.createElement("td");ya.style.overflow=
-"hidden";ya.style.whiteSpace="nowrap";ya.style.textOverflow="ellipsis";ya.style.verticalAlign="middle";ya.style.cursor="pointer";ya.setAttribute("title",pa);a=document.createElement("a");mxUtils.write(a,pa);a.style.textOverflow="ellipsis";a.style.position="relative";mxUtils.setOpacity(a,sa?100:40);ya.appendChild(a);mxEvent.addListener(ya,"click",function(xa){if(mxEvent.isShiftDown(xa))T(!0),Ba();else if(sa&&0<Q.hiddenTags.length)T(!0);else{var ma=S.slice(),Ca=mxUtils.indexOf(ma,pa);ma.splice(Ca,1);
+mxResources.get(sa?"hideIt":"show",[pa]));mxUtils.setOpacity(ua,sa?75:25);ua.className="geAdaptiveAsset";ua.style.verticalAlign="middle";ua.style.cursor="pointer";ua.style.width="16px";if(y||Editor.isDarkMode())ua.style.filter="invert(100%)";ya.appendChild(ua);mxEvent.addListener(ua,"click",function(xa){mxEvent.isShiftDown(xa)?S(0<=mxUtils.indexOf(Q.hiddenTags,pa)):(Q.toggleHiddenTag(pa),O(),Q.refresh());mxEvent.consume(xa)});ja.appendChild(ya);ya=document.createElement("td");ya.style.align="center";
+ya.style.width="16px";ua=document.createElement("img");ua.setAttribute("src",Editor.selectImage);ua.setAttribute("title",mxResources.get("select"));mxUtils.setOpacity(ua,sa?75:25);ua.className="geAdaptiveAsset";ua.style.verticalAlign="middle";ua.style.cursor="pointer";ua.style.width="16px";if(y||Editor.isDarkMode())ua.style.filter="invert(100%)";mxEvent.addListener(ua,"click",function(xa){S(!0);Ba();mxEvent.consume(xa)});ya.appendChild(ua);ja.appendChild(ya);ya=document.createElement("td");ya.style.overflow=
+"hidden";ya.style.whiteSpace="nowrap";ya.style.textOverflow="ellipsis";ya.style.verticalAlign="middle";ya.style.cursor="pointer";ya.setAttribute("title",pa);a=document.createElement("a");mxUtils.write(a,pa);a.style.textOverflow="ellipsis";a.style.position="relative";mxUtils.setOpacity(a,sa?100:40);ya.appendChild(a);mxEvent.addListener(ya,"click",function(xa){if(mxEvent.isShiftDown(xa))S(!0),Ba();else if(sa&&0<Q.hiddenTags.length)S(!0);else{var ma=R.slice(),Ca=mxUtils.indexOf(ma,pa);ma.splice(Ca,1);
Q.setHiddenTags(ma);O();Q.refresh()}mxEvent.consume(xa)});ja.appendChild(ya);if(Q.isEnabled()){ya=document.createElement("td");ya.style.verticalAlign="middle";ya.style.textAlign="center";ya.style.width="18px";if(null==ba){ya.style.align="center";ya.style.width="16px";ua=document.createElement("img");ua.setAttribute("src",Editor.trashImage);ua.setAttribute("title",mxResources.get("removeIt",[pa]));mxUtils.setOpacity(ua,sa?75:25);ua.className="geAdaptiveAsset";ua.style.verticalAlign="middle";ua.style.cursor=
-"pointer";ua.style.width="16px";if(y||Editor.isDarkMode())ua.style.filter="invert(100%)";mxEvent.addListener(ua,"click",function(xa){var ma=mxUtils.indexOf(S,pa);0<=ma&&S.splice(ma,1);Q.removeTagsForCells(Q.model.getDescendants(Q.model.getRoot()),[pa]);Q.refresh();mxEvent.consume(xa)});ya.appendChild(ua)}else{var za=document.createElement("input");za.setAttribute("type","checkbox");za.style.margin="0px";za.defaultChecked=null!=ba&&0<=mxUtils.indexOf(ba,pa);za.checked=za.defaultChecked;za.style.background=
-"transparent";za.setAttribute("title",mxResources.get(za.defaultChecked?"removeIt":"add",[pa]));mxEvent.addListener(za,"change",function(xa){za.checked?Q.addTagsForCells(Q.getSelectionCells(),[pa]):Q.removeTagsForCells(Q.getSelectionCells(),[pa]);mxEvent.consume(xa)});ya.appendChild(za)}ja.appendChild(ya)}la.appendChild(ja)})(fa[ka]);ia.appendChild(la);Y.appendChild(ia)}}var Q=this,S=Q.hiddenTags.slice(),U=document.createElement("div");U.style.userSelect="none";U.style.overflow="hidden";U.style.padding=
-"10px";U.style.height="100%";var Y=document.createElement("div");Y.style.position="absolute";Y.style.boxSizing="border-box";Y.style.userSelect="none";Y.style.overflow="auto";Y.style.padding="3px";Y.style.left="0px";Y.style.right="0px";Y.style.top="0px";Y.style.bottom="0px";U.appendChild(Y);Q.addListener(mxEvent.ROOT,function(){S=Q.hiddenTags.slice()});var X=mxUtils.bind(this,function(fa,ba){if(m()){fa=Q.getAllTags();for(ba=0;ba<fa.length;ba++)0>mxUtils.indexOf(S,fa[ba])&&S.push(fa[ba]);S.sort();Q.isSelectionEmpty()?
-V(S):V(S,Q.getCommonTagsForCells(Q.getSelectionCells()))}});Q.selectionModel.addListener(mxEvent.CHANGE,X);Q.model.addListener(mxEvent.CHANGE,X);Q.addListener(mxEvent.REFRESH,X);var Z=document.createElement("div");Z.className="geToolbarContainer geDialogToolbar";Z.style.position="absolute";Z.style.display="flex";Z.style.bottom="0px";Z.style.left="0px";Z.style.right="0px";Z.style.height="32px";Z.style.overflow="hidden";Z.style.padding="3px 4px 4px 4px";Z.style.borderWidth="1px 0px 0px 0px";Z.style.borderStyle=
-"solid";Z.style.whiteSpace="nowrap";if(Q.isEnabled()){Y.style.bottom="32px";var aa=document.createElement("a");aa.className="geButton";var da=aa.cloneNode(!1);da.style.backgroundImage="url("+Editor.visibleImage+")";da.setAttribute("title",mxResources.get("reset"));mxEvent.addListener(da,"click",function(fa){Q.setHiddenTags([]);mxEvent.isShiftDown(fa)||(S=Q.hiddenTags.slice());O();Q.refresh();mxEvent.consume(fa)});Z.appendChild(da);null!=E&&(aa=aa.cloneNode(!1),aa.style.backgroundImage="url("+Editor.plusImage+
-")",aa.setAttribute("title",mxResources.get("add")),mxEvent.addListener(aa,"click",function(fa){E(S,function(ba){S=ba;X()});mxEvent.consume(fa)}),Z.appendChild(aa));U.appendChild(Z)}null!=P&&Z.appendChild(P);return{div:U,refresh:X}};Graph.prototype.getCustomFonts=function(){var m=this.extFonts;m=null!=m?m.slice():[];for(var y in Graph.customFontElements){var E=Graph.customFontElements[y];m.push({name:E.name,url:E.url})}return m};Graph.prototype.setFont=function(m,y){Graph.addFont(m,y);var E=Editor.guid();
-document.execCommand("fontname",!1,E);for(var P=this.cellEditor.textarea.getElementsByTagName("font"),O=!1,T=0;T<P.length;T++)P[T].getAttribute("face")==E&&(O=!0,P[T].setAttribute("face",m),null!=y?P[T].setAttribute("data-font-src",y):P[T].removeAttribute("data-font-src"));O||document.execCommand("fontname",!1,m)};var B=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return B.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 m=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=m)for(var y in m)this.globalVars[y]=m[y]}catch(E){null!=window.console&&console.log("Error in vars URL parameter: "+E)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var C=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=
-function(m){var y=C.apply(this,arguments);null==y&&null!=this.globalVars&&(y=this.globalVars[m]);return y};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var m=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(m.ownerDocument)).decode(m)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var F=Graph.prototype.getSvg;Graph.prototype.getSvg=function(m,y,E,P,O,T,V,Q,S,U,Y,X,Z,aa,da,fa){var ba=F.apply(this,arguments);
+"pointer";ua.style.width="16px";if(y||Editor.isDarkMode())ua.style.filter="invert(100%)";mxEvent.addListener(ua,"click",function(xa){var ma=mxUtils.indexOf(R,pa);0<=ma&&R.splice(ma,1);Q.removeTagsForCells(Q.model.getDescendants(Q.model.getRoot()),[pa]);Q.refresh();mxEvent.consume(xa)});ya.appendChild(ua)}else{var za=document.createElement("input");za.setAttribute("type","checkbox");za.style.margin="0px";za.defaultChecked=null!=ba&&0<=mxUtils.indexOf(ba,pa);za.checked=za.defaultChecked;za.style.background=
+"transparent";za.setAttribute("title",mxResources.get(za.defaultChecked?"removeIt":"add",[pa]));mxEvent.addListener(za,"change",function(xa){za.checked?Q.addTagsForCells(Q.getSelectionCells(),[pa]):Q.removeTagsForCells(Q.getSelectionCells(),[pa]);mxEvent.consume(xa)});ya.appendChild(za)}ja.appendChild(ya)}la.appendChild(ja)})(fa[ka]);ia.appendChild(la);Y.appendChild(ia)}}var Q=this,R=Q.hiddenTags.slice(),U=document.createElement("div");U.style.userSelect="none";U.style.overflow="hidden";U.style.padding=
+"10px";U.style.height="100%";var Y=document.createElement("div");Y.style.position="absolute";Y.style.boxSizing="border-box";Y.style.userSelect="none";Y.style.overflow="auto";Y.style.padding="3px";Y.style.left="0px";Y.style.right="0px";Y.style.top="0px";Y.style.bottom="0px";U.appendChild(Y);Q.addListener(mxEvent.ROOT,function(){R=Q.hiddenTags.slice()});var X=mxUtils.bind(this,function(fa,ba){if(m()){fa=Q.getAllTags();for(ba=0;ba<fa.length;ba++)0>mxUtils.indexOf(R,fa[ba])&&R.push(fa[ba]);R.sort();Q.isSelectionEmpty()?
+V(R):V(R,Q.getCommonTagsForCells(Q.getSelectionCells()))}});Q.selectionModel.addListener(mxEvent.CHANGE,X);Q.model.addListener(mxEvent.CHANGE,X);Q.addListener(mxEvent.REFRESH,X);var Z=document.createElement("div");Z.className="geToolbarContainer geDialogToolbar";Z.style.position="absolute";Z.style.display="flex";Z.style.bottom="0px";Z.style.left="0px";Z.style.right="0px";Z.style.height="32px";Z.style.overflow="hidden";Z.style.padding="3px 4px 4px 4px";Z.style.borderWidth="1px 0px 0px 0px";Z.style.borderStyle=
+"solid";Z.style.whiteSpace="nowrap";if(Q.isEnabled()){Y.style.bottom="32px";var aa=document.createElement("a");aa.className="geButton";var da=aa.cloneNode(!1);da.style.backgroundImage="url("+Editor.visibleImage+")";da.setAttribute("title",mxResources.get("reset"));mxEvent.addListener(da,"click",function(fa){Q.setHiddenTags([]);mxEvent.isShiftDown(fa)||(R=Q.hiddenTags.slice());O();Q.refresh();mxEvent.consume(fa)});Z.appendChild(da);null!=F&&(aa=aa.cloneNode(!1),aa.style.backgroundImage="url("+Editor.plusImage+
+")",aa.setAttribute("title",mxResources.get("add")),mxEvent.addListener(aa,"click",function(fa){F(R,function(ba){R=ba;X()});mxEvent.consume(fa)}),Z.appendChild(aa));U.appendChild(Z)}null!=P&&Z.appendChild(P);return{div:U,refresh:X}};Graph.prototype.getCustomFonts=function(){var m=this.extFonts;m=null!=m?m.slice():[];for(var y in Graph.customFontElements){var F=Graph.customFontElements[y];m.push({name:F.name,url:F.url})}return m};Graph.prototype.setFont=function(m,y){Graph.addFont(m,y);var F=Editor.guid();
+document.execCommand("fontname",!1,F);for(var P=this.cellEditor.textarea.getElementsByTagName("font"),O=!1,S=0;S<P.length;S++)P[S].getAttribute("face")==F&&(O=!0,P[S].setAttribute("face",m),null!=y?P[S].setAttribute("data-font-src",y):P[S].removeAttribute("data-font-src"));O||document.execCommand("fontname",!1,m)};var B=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return B.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 m=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=m)for(var y in m)this.globalVars[y]=m[y]}catch(F){null!=window.console&&console.log("Error in vars URL parameter: "+F)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var C=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=
+function(m){var y=C.apply(this,arguments);null==y&&null!=this.globalVars&&(y=this.globalVars[m]);return y};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var m=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(m.ownerDocument)).decode(m)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var E=Graph.prototype.getSvg;Graph.prototype.getSvg=function(m,y,F,P,O,S,V,Q,R,U,Y,X,Z,aa,da,fa){var ba=E.apply(this,arguments);
if(null!=X){var ia=ba.getAttribute("style");null==ia&&(ia="");X="auto"==X||"none"==this.getAdaptiveColors()?"none"==this.getAdaptiveColors()?"light":"light dark":X;ba.setAttribute("style",ia+(" color-scheme: "+X+";"))}var la=this.getCustomFonts();if(Y&&0<la.length){var ka=ba.ownerDocument;ia=null!=ka.createElementNS?ka.createElementNS(mxConstants.NS_SVG,"style"):ka.createElement("style");null!=ka.setAttributeNS?ia.setAttributeNS("type","text/css"):ia.setAttribute("type","text/css");for(var pa="",
Ba="",sa=0;sa<la.length;sa++){var ja=la[sa].name,ya=la[sa].url;Graph.isCssFontUrl(ya)?pa+="@import url("+Graph.rewriteGoogleFontUrl(ya)+");\n":Ba+='@font-face {\nfont-family: "'+ja+'";\nsrc: url("'+ya+'");\n}\n'}ia.appendChild(ka.createTextNode(pa+Ba));ba.getElementsByTagName("defs")[0].appendChild(ia)}Editor.replaceSvgDataUris&&null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&EditorUi.embedSvgImages(ba);this.mathEnabled&&(document.body.appendChild(ba),Editor.MathJaxRender(ba),
ba.parentNode.removeChild(ba),ia=ba.ownerDocument.getElementById("MJX-SVG-styles"),null!=ia&&ba.getElementsByTagName("defs")[0].appendChild(ia.cloneNode(!0)));return ba};var K=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(m){K.apply(this,arguments);null!=m.secondLabel&&(m.secondLabel.destroy(),m.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(m){return[m.shape,m.text,m.secondLabel,m.control]};var I=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=
-function(){I.apply(this,arguments);this.enumerationState=0};var R=mxGraphView.prototype.stateValidated;mxGraphView.prototype.stateValidated=function(m){null!=m.shape&&this.redrawEnumerationState(m);return R.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(m){m=decodeURIComponent(mxUtils.getValue(m.style,"enumerateValue",""));""==m&&(m=++this.enumerationState);return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(m)+
-"</div>"};mxGraphView.prototype.redrawEnumerationState=function(m){var y="1"==mxUtils.getValue(m.style,"enumerate",0);y&&null==m.secondLabel?(m.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),m.secondLabel.size=12,m.secondLabel.state=m,m.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(m,m.secondLabel)):y||null==m.secondLabel||(m.secondLabel.destroy(),m.secondLabel=null);y=m.secondLabel;if(null!=y){var E=m.view.scale,
-P=this.createEnumerationValue(m);m=this.graph.model.isVertex(m.cell)?new mxRectangle(m.x+m.width-4*E,m.y+4*E,0,0):mxRectangle.fromPoint(m.view.getPoint(m));y.bounds.equals(m)&&y.value==P&&y.scale==E||(y.bounds=m,y.value=P,y.scale=E,y.redraw())}};var W=Graph.prototype.refresh;Graph.prototype.refresh=function(){this.refreshBackgroundImage();W.apply(this,arguments)};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),
-this.view.validateBackgroundImage())};var q=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){q.apply(this,arguments);this.currentStyle="default-style2"};Graph.prototype.handleCustomLink=function(m,y){"data:action/json,"==m.substring(0,17)&&(m=JSON.parse(m.substring(17)),null!=m.actions&&this.executeCustomActions(m.actions,null,y))};Graph.prototype.executeCustomActions=function(m,y,E){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 P=!1,O=0,T=0,V=mxUtils.bind(this,function(){P||(P=!0,this.model.beginUpdate())}),Q=mxUtils.bind(this,function(){P&&(P=!1,this.model.endUpdate())}),S=mxUtils.bind(this,function(){0<O&&O--;0==O&&U()}),U=mxUtils.bind(this,function(){if(T<m.length){var Y=this.stoppingCustomActions,X=m[T++],
-Z=[];if(null!=X.open)if(Q(),this.isCustomLink(X.open)){if(!this.customLinkClicked(X.open,E))return}else this.openLink(X.open);null==X.wait||Y||(this.pendingExecuteNextAction=mxUtils.bind(this,function(){this.pendingWaitThread=this.pendingExecuteNextAction=null;S()}),O++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,""!=X.wait?parseInt(X.wait):1E3),Q());null!=X.opacity&&null!=X.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(X.opacity,!0)),
-X.opacity.value);null!=X.fadeIn&&(O++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(X.fadeIn,!0)),0,1,S,Y?0:X.fadeIn.delay));null!=X.fadeOut&&(O++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(X.fadeOut,!0)),1,0,S,Y?0:X.fadeOut.delay));null!=X.wipeIn&&(Z=Z.concat(this.createWipeAnimations(this.getCellsForAction(X.wipeIn,!0),!0)));null!=X.wipeOut&&(Z=Z.concat(this.createWipeAnimations(this.getCellsForAction(X.wipeOut,!0),!1)));null!=X.toggle&&(V(),this.toggleCells(this.getCellsForAction(X.toggle,
-!0)));if(null!=X.show){V();var aa=this.getCellsForAction(X.show,!0);Graph.setOpacityForNodes(this.getNodesForCells(aa),1);this.setCellsVisible(aa,!0)}null!=X.hide&&(V(),aa=this.getCellsForAction(X.hide,!0),Graph.setOpacityForNodes(this.getNodesForCells(aa),0),this.setCellsVisible(aa,!1));null!=X.toggleStyle&&null!=X.toggleStyle.key&&(V(),this.toggleCellStyles(X.toggleStyle.key,null!=X.toggleStyle.defaultValue?X.toggleStyle.defaultValue:"0",this.getCellsForAction(X.toggleStyle,!0)));null!=X.style&&
-null!=X.style.key&&(V(),this.setCellStyles(X.style.key,X.style.value,this.getCellsForAction(X.style,!0)));aa=[];null!=X.select&&this.isEnabled()&&(aa=this.getCellsForAction(X.select),this.setSelectionCells(aa));null!=X.highlight&&(aa=this.getCellsForAction(X.highlight),this.highlightCells(aa,X.highlight.color,X.highlight.duration,X.highlight.opacity));null!=X.scroll&&(aa=this.getCellsForAction(X.scroll));null!=X.viewbox&&this.fitWindow(X.viewbox,X.viewbox.border);0<aa.length&&this.scrollCellToVisible(aa[0]);
-null!=E&&null!=X.explore&&Graph.exploreFromCell(this,E,X.explore);if(null!=X.tags){if(null!=X.tags.toggle){var da=X.tags.toggle;0==da.length&&(da=this.getAllTags());for(aa=0;aa<da.length;aa++)this.toggleHiddenTag(da[aa])}da=null;null!=X.tags.hidden&&(null==da&&(da=[]),da=da.concat(X.tags.hidden));if(null!=X.tags.visible){null==da&&(da=[]);var fa=this.getAllTags();for(aa=0;aa<fa.length;aa++)0>mxUtils.indexOf(X.tags.visible,fa[aa])&&0>mxUtils.indexOf(da,fa[aa])&&da.push(fa[aa])}null!=da&&this.setHiddenTags(da);
-this.refresh()}0<Z.length&&(O++,this.executeAnimations(Z,S,Y?1:X.steps,Y?0:X.delay));0==O?U():Q()}else this.stoppingCustomActions=this.executingCustomActions=!1,Q(),null!=y&&y()});U()}};Graph.prototype.doUpdateCustomLinksForCell=function(m,y){var E=this.getLinkForCell(y);null!=E&&"data:action/json,"==E.substring(0,17)&&this.setLinkForCell(y,this.updateCustomLink(m,E));if(this.isHtmlLabel(y)){var P=document.createElement("div");P.innerHTML=Graph.sanitizeHtml(this.getLabel(y));for(var O=P.getElementsByTagName("a"),
-T=!1,V=0;V<O.length;V++)E=O[V].getAttribute("href"),null!=E&&"data:action/json,"==E.substring(0,17)&&(O[V].setAttribute("href",this.updateCustomLink(m,E)),T=!0);T&&this.labelChanged(y,P.innerHTML)}};Graph.prototype.updateCustomLink=function(m,y){if("data:action/json,"==y.substring(0,17))try{var E=JSON.parse(y.substring(17));null!=E.actions&&(this.updateCustomLinkActions(m,E.actions),y="data:action/json,"+JSON.stringify(E))}catch(P){}return y};Graph.prototype.updateCustomLinkActions=function(m,y){for(var E=
-0;E<y.length;E++){var P=y[E],O;for(O in P)this.updateCustomLinkAction(m,P[O],"cells"),this.updateCustomLinkAction(m,P[O],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(m,y,E){if(null!=y&&null!=y[E]){for(var P=[],O=0;O<y[E].length;O++)if("*"==y[E][O])P.push(y[E][O]);else{var T=m[y[E][O]];null!=T?""!=T&&P.push(T):P.push(y[E][O])}y[E]=P}};Graph.prototype.getCellsForAction=function(m,y){y=this.getCellsById(m.cells).concat(this.getCellsForTags(m.tags,null,y));if(null!=m.excludeCells){for(var E=
-[],P=0;P<y.length;P++)0>m.excludeCells.indexOf(y[P].id)&&E.push(y[P]);y=E}return y};Graph.prototype.getCellsById=function(m){var y=[];if(null!=m)for(var E=0;E<m.length;E++)if("*"==m[E]){var P=this.model.getRoot();y=y.concat(this.model.filterDescendants(function(T){return T!=P},P))}else{var O=this.model.getCell(m[E]);null!=O&&y.push(O)}return y};var z=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(m){return z.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(m))};
-Graph.prototype.setHiddenTags=function(m){this.hiddenTags=m;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(m){var y=mxUtils.indexOf(this.hiddenTags,m);0>y?this.hiddenTags.push(m):0<=y&&this.hiddenTags.splice(y,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.isAllTagsHidden=function(m){if(null==m||0==m.length||0==this.hiddenTags.length)return!1;m=m.split(" ");if(m.length>this.hiddenTags.length)return!1;for(var y=0;y<m.length;y++)if(0>
-mxUtils.indexOf(this.hiddenTags,m[y]))return!1;return!0};Graph.prototype.getCellsForTags=function(m,y,E,P){var O=[];if(null!=m){y=null!=y?y:this.model.getDescendants(this.model.getRoot());for(var T=0,V={},Q=0;Q<m.length;Q++)0<m[Q].length&&(V[m[Q]]=!0,T++);for(Q=0;Q<y.length;Q++)if(E&&this.model.getParent(y[Q])==this.model.root||this.model.isVertex(y[Q])||this.model.isEdge(y[Q])){var S=this.getTagsForCell(y[Q]),U=!1;if(0<S.length&&(S=S.split(" "),S.length>=m.length)){for(var Y=U=0;Y<S.length&&U<T;Y++)null!=
-V[S[Y]]&&U++;U=U==T}U&&(1!=P||this.isCellVisible(y[Q]))&&O.push(y[Q])}}return O};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(m){for(var y=null,E=[],P=0;P<m.length;P++){var O=this.getTagsForCell(m[P]);E=[];if(0<O.length){O=O.split(" ");for(var T={},V=0;V<O.length;V++)if(null==y||null!=y[O[V]])T[O[V]]=!0,E.push(O[V]);y=T}else return[]}return E};Graph.prototype.getTagsForCells=function(m){for(var y=
-[],E={},P=0;P<m.length;P++){var O=this.getTagsForCell(m[P]);if(0<O.length){O=O.split(" ");for(var T=0;T<O.length;T++)null==E[O[T]]&&(E[O[T]]=!0,y.push(O[T]))}}return y};Graph.prototype.getTagsForCell=function(m){return this.getAttributeForCell(m,"tags","")};Graph.prototype.addTagsForCells=function(m,y){if(0<m.length&&0<y.length){this.model.beginUpdate();try{for(var E=0;E<m.length;E++){for(var P=this.getTagsForCell(m[E]),O=P.split(" "),T=!1,V=0;V<y.length;V++){var Q=mxUtils.trim(y[V]);""!=Q&&0>mxUtils.indexOf(O,
-Q)&&(P=0<P.length?P+" "+Q:Q,T=!0)}T&&this.setAttributeForCell(m[E],"tags",P)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(m,y){if(0<m.length&&0<y.length){this.model.beginUpdate();try{for(var E=0;E<m.length;E++){var P=this.getTagsForCell(m[E]);if(0<P.length){for(var O=P.split(" "),T=!1,V=0;V<y.length;V++){var Q=mxUtils.indexOf(O,y[V]);0<=Q&&(O.splice(Q,1),T=!0)}T&&this.setAttributeForCell(m[E],"tags",O.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=
-function(m){this.model.beginUpdate();try{for(var y=0;y<m.length;y++)this.model.setVisible(m[y],!this.model.isVisible(m[y]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(m,y){this.model.beginUpdate();try{for(var E=0;E<m.length;E++)this.model.setVisible(m[E],y)}finally{this.model.endUpdate()}};Graph.prototype.highlightCells=function(m,y,E,P){for(var O=0;O<m.length;O++)this.highlightCell(m[O],y,E,P)};Graph.prototype.highlightCell=function(m,y,E,P,O){y=null!=y?y:mxConstants.DEFAULT_VALID_COLOR;
-E=null!=E?E:1E3;m=this.view.getState(m);var T=null;null!=m&&(O=null!=O?O:4,O=Math.max(O+1,mxUtils.getValue(m.style,mxConstants.STYLE_STROKEWIDTH,1)+O),T=new mxCellHighlight(this,y,O,!1),null!=P&&(T.opacity=P),T.highlight(m),window.setTimeout(function(){null!=T.shape&&(mxUtils.setPrefixedStyle(T.shape.node.style,"transition","all 1200ms ease-in-out"),T.shape.node.style.opacity=0);window.setTimeout(function(){T.destroy()},1200)},E));return T};Graph.prototype.addSvgShadow=function(m,y,E,P){P=null!=P?
-P:!0;var O=Math.ceil(this.svgShadowSize*this.svgShadowBlur);null!=E&&E||(y=null!=y?y:m.getElementsByTagName("g")[0],null!=y&&(this.updateShadowFilter(y,!0),!isNaN(parseInt(m.getAttribute("width")))&&P&&(m.setAttribute("width",parseInt(m.getAttribute("width"))+O),m.setAttribute("height",parseInt(m.getAttribute("height"))+O),y=m.getAttribute("viewBox"),null!=y&&0<y.length&&(y=y.split(" "),3<y.length&&(w=parseFloat(y[2])+O,h=parseFloat(y[3])+O,m.setAttribute("viewBox",y[0]+" "+y[1]+" "+w+" "+h))))));
-return O};Graph.prototype.updateShadowFilter=function(m,y){mxClient.IS_SF||(y?(y=mxUtils.getLightDarkColor(this.svgShadowColor,this.svgShadowOpacity),m.style.filter="drop-shadow("+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowBlur)/100+"px "+y.cssText+")"):m.style.filter="")};Graph.prototype.setShadowVisible=function(m,y){y=null!=y?y:!0;this.shadowVisible=m;this.updateShadowFilter(this.view.getDrawPane(),this.shadowVisible);
-y&&this.fireEvent(new mxEventObject("shadowVisibleChanged"))};Graph.prototype.checkDefaultParent=function(){null==this.defaultParent||this.model.contains(this.defaultParent)||(this.setDefaultParent(null),this.selectUnlockedLayer())};Graph.prototype.selectUnlockedLayer=function(){if(null==this.defaultParent){var m=this.model.getChildCount(this.model.root),y=0;do var E=this.model.getChildAt(this.model.root,y);while(y++<m&&"1"==mxUtils.getValue(this.getCellStyle(E),"locked","0"));null!=E&&this.setDefaultParent(E)}};
-mxStencilRegistry.libraries.mockup=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries.arrows2=[SHAPES_PATH+"/mxArrows.js"];mxStencilRegistry.libraries.atlassian=[STENCIL_PATH+"/atlassian.xml",SHAPES_PATH+"/mxAtlassian.js"];mxStencilRegistry.libraries.bpmn=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.bpmn2=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.c4=
-[SHAPES_PATH+"/mxC4.js"];mxStencilRegistry.libraries.cisco19=[SHAPES_PATH+"/mxCisco19.js",STENCIL_PATH+"/cisco19.xml"];mxStencilRegistry.libraries.cisco_safe=[SHAPES_PATH+"/mxCiscoSafe.js",STENCIL_PATH+"/cisco_safe/architecture.xml",STENCIL_PATH+"/cisco_safe/business_icons.xml",STENCIL_PATH+"/cisco_safe/capability.xml",STENCIL_PATH+"/cisco_safe/design.xml",STENCIL_PATH+"/cisco_safe/iot_things_icons.xml",STENCIL_PATH+"/cisco_safe/people_places_things_icons.xml",STENCIL_PATH+"/cisco_safe/security_icons.xml",
-STENCIL_PATH+"/cisco_safe/technology_icons.xml",STENCIL_PATH+"/cisco_safe/threat.xml"];mxStencilRegistry.libraries.dfd=[SHAPES_PATH+"/mxDFD.js"];mxStencilRegistry.libraries.er=[SHAPES_PATH+"/er/mxER.js"];mxStencilRegistry.libraries.kubernetes=[SHAPES_PATH+"/mxKubernetes.js",STENCIL_PATH+"/kubernetes.xml",STENCIL_PATH+"/kubernetes2.xml"];mxStencilRegistry.libraries.flowchart=[SHAPES_PATH+"/mxFlowchart.js",STENCIL_PATH+"/flowchart.xml"];mxStencilRegistry.libraries.ios=[SHAPES_PATH+"/mockup/mxMockupiOS.js"];
-mxStencilRegistry.libraries.rackGeneral=[SHAPES_PATH+"/rack/mxRack.js",STENCIL_PATH+"/rack/general.xml"];mxStencilRegistry.libraries.rackF5=[STENCIL_PATH+"/rack/f5.xml"];mxStencilRegistry.libraries.lean_mapping=[SHAPES_PATH+"/mxLeanMap.js",STENCIL_PATH+"/lean_mapping.xml"];mxStencilRegistry.libraries.basic=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/basic.xml"];mxStencilRegistry.libraries.ios7icons=[STENCIL_PATH+"/ios7/icons.xml"];mxStencilRegistry.libraries.ios7ui=[SHAPES_PATH+"/ios7/mxIOS7Ui.js",
-STENCIL_PATH+"/ios7/misc.xml"];mxStencilRegistry.libraries.android=[SHAPES_PATH+"/mxAndroid.js",STENCIL_PATH+"/android/android.xml"];mxStencilRegistry.libraries["electrical/abstract"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/abstract.xml"];mxStencilRegistry.libraries["electrical/logic_gates"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/logic_gates.xml"];mxStencilRegistry.libraries["electrical/miscellaneous"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/miscellaneous.xml"];
-mxStencilRegistry.libraries["electrical/signal_sources"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/signal_sources.xml"];mxStencilRegistry.libraries["electrical/electro-mechanical"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/electro-mechanical.xml"];mxStencilRegistry.libraries["electrical/transmission"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/transmission.xml"];mxStencilRegistry.libraries.infographic=[SHAPES_PATH+"/mxInfographic.js"];mxStencilRegistry.libraries["mockup/buttons"]=
-[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries["mockup/containers"]=[SHAPES_PATH+"/mockup/mxMockupContainers.js"];mxStencilRegistry.libraries["mockup/forms"]=[SHAPES_PATH+"/mockup/mxMockupForms.js"];mxStencilRegistry.libraries["mockup/graphics"]=[SHAPES_PATH+"/mockup/mxMockupGraphics.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[SHAPES_PATH+"/mockup/mxMockupMarkup.js"];mxStencilRegistry.libraries["mockup/misc"]=[SHAPES_PATH+"/mockup/mxMockupMisc.js",
-STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/navigation"]=[SHAPES_PATH+"/mockup/mxMockupNavigation.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/text"]=[SHAPES_PATH+"/mockup/mxMockupText.js"];mxStencilRegistry.libraries.floorplan=[SHAPES_PATH+"/mxFloorplan.js",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.ibmcloud=[STENCIL_PATH+"/ibm_cloud.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.networks2=[SHAPES_PATH+"/mxNetworks2.js",STENCIL_PATH+"/networks2.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"];mxStencilRegistry.libraries.salesforce=[STENCIL_PATH+"/salesforce.xml"];mxStencilRegistry.libraries.sap=[SHAPES_PATH+"/mxSAP.js",STENCIL_PATH+"/sap.xml"];mxStencilRegistry.libraries.emoji=[SHAPES_PATH+"/emoji/mxEmoji.js"];mxMarker.getPackageForType=
-function(m){var y=null;null!=m&&0<m.length&&("ER"==m.substring(0,2)?y="mxgraph.er":"sysML"==m.substring(0,5)&&(y="mxgraph.sysml"));return y};var L=mxMarker.createMarker;mxMarker.createMarker=function(m,y,E,P,O,T,V,Q,S,U){if(null!=E&&null==mxMarker.markers[E]){var Y=this.getPackageForType(E);null!=Y&&mxStencilRegistry.getStencil(Y)}return L.apply(this,arguments)};var N=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(m,y,E,P,O,T){"1"==mxUtils.getValue(y.style,"lineShape",null)&&
-m.setFillColor(mxUtils.getValue(y.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return N.apply(this,arguments)};PrintDialog.prototype.create=function(m,y,E,P){function O(){fa.value=Math.max(1,Math.min(Y,Math.max(parseInt(fa.value),parseInt(da.value))));da.value=Math.max(1,Math.min(Y,Math.min(parseInt(fa.value),parseInt(da.value))))}function T(va){m.lastPrintPagesRadioChecked=aa.checked;m.lastPrintSelectionOnlyChecked=ia.checked;m.lastPrintCropRadioChecked=ka.checked;m.lastPrintFitRadioChecked=
-pa.checked;aa.checked&&da.value<fa.value?(m.lastPrintPagesFromInput=da.value,m.lastPrintPagesToInput=fa.value):(m.lastPrintPagesFromInput=null,m.lastPrintPagesToInput=null);ta.value=Math.max(1,Math.min(1600,parseInt(ta.value)))+"%";m.lastPrintZoom=ta.value;m.lastPrintBorder=ha.value;m.lastPrintGrid=Da.checked;m.lastPrintTransparent=ca.checked;m.lastPrintInclude=ea.checked;m.lastPrintSheetsAcross=Ca.value;m.lastPrintSheetsDown=wa.value;var ra={};ra.border=parseInt(ha.value);ra.scale=parseInt(ta.value)/
-100;ra.grid=Da.checked;ra.shadows=oa.checked;ra.transparent=ca.checked;ra.includeCopy=ea.checked;ra.sheetsAcross=parseInt(Ca.value);ra.sheetsDown=parseInt(wa.value);ra.pagesFrom=parseInt(da.value);ra.pagesTo=parseInt(fa.value);ra.allPages=X.checked;ra.selection=ia.checked;ra.pageView=la.checked;ra.crop=ka.checked;ra.fit=pa.checked;return null!=E?E(!va,ra):m.print(!va,ra)}var V=m.editor.graph,Q=document.createElement("div"),S=document.createElement("h3");S.style.width="100%";S.style.textAlign="center";
-S.style.marginTop="0px";S.style.marginBottom="10px";mxUtils.write(S,y||mxResources.get("print"));Q.appendChild(S);var U=1,Y=1;S=document.createElement("div");S.className="geDialogSection";S.style.whiteSpace="nowrap";var X=document.createElement("input");X.style.marginRight="8px";X.setAttribute("type","radio");X.setAttribute("name","pages-printdialog");var Z=document.createElement("div");Z.className="geDialogCheckRow";Z.appendChild(X);y=document.createElement("span");mxUtils.write(y,mxResources.get("allPages"));
-mxEvent.addListener(y,"click",function(){X.checked=!0});Z.appendChild(y);S.appendChild(Z);var aa=document.createElement("input");aa.style.marginRight="8px";aa.setAttribute("type","radio");aa.setAttribute("name","pages-printdialog");Z=document.createElement("div");Z.className="geDialogCheckRow";Z.appendChild(aa);y=document.createElement("span");mxUtils.write(y,mxResources.get("pages")+":");Z.appendChild(y);mxEvent.addListener(y,"click",function(){aa.checked=!0});var da=document.createElement("input");
-da.style.margin="0 4px";da.setAttribute("value","1");da.setAttribute("type","number");da.setAttribute("min","1");da.style.width="40px";Z.appendChild(da);y=document.createElement("span");mxUtils.write(y,mxResources.get("to"));Z.appendChild(y);var fa=da.cloneNode(!0);Z.appendChild(fa);mxEvent.addListener(da,"focus",function(){aa.checked=!0});mxEvent.addListener(fa,"focus",function(){aa.checked=!0});mxEvent.addListener(da,"change",O);mxEvent.addListener(fa,"change",O);if(null!=m.pages&&(Y=m.pages.length,
-null!=m.currentPage))for(var ba=0;ba<Y;ba++)if(m.currentPage==m.pages[ba]){U=ba+1;break}null!=m.lastPrintPagesFromInput&&null!=m.lastPrintPagesToInput?(da.value=Math.min(Y,Math.max(1,m.lastPrintPagesFromInput)),fa.value=Math.min(Y,Math.max(1,m.lastPrintPagesToInput))):(da.value=U,fa.value=U);da.setAttribute("max",Y);fa.setAttribute("max",Y);ba=mxUtils.button(mxResources.get("currentPage"),function(va){da.value=U;fa.value=U;aa.checked=!0});ba.setAttribute("title",mxResources.get("currentPage"));ba.style.marginLeft=
-"4px";ba.style.maxWidth="100px";ba.style.overflow="hidden";ba.style.textOverflow="ellipsis";ba.style.whiteSpace="nowrap";Z.appendChild(ba);S.appendChild(Z);1<Y&&Q.appendChild(S);Z=document.createElement("div");Z.className="geDialogCheckRow";var ia=document.createElement("input");ia.setAttribute("name","pages-printdialog");ia.setAttribute("type",1==Y?"checkbox":"radio");ia.style.marginRight="8px";V.isSelectionEmpty()&&ia.setAttribute("disabled","disabled");V.isEnabled()&&(Z.appendChild(ia),y=document.createElement("span"),
-mxUtils.write(y,mxResources.get("selectionOnly")),Z.appendChild(y));V.isEnabled()&&S.appendChild(Z);!m.isPagesEnabled()||m.lastPrintPagesRadioChecked?aa.checked=!0:!V.isSelectionEmpty()&&m.lastPrintSelectionOnlyChecked?ia.checked=!0:X.checked=!0;V.isSelectionEmpty()||mxEvent.addListener(y,"click",function(){ia.checked=!ia.checked});V=document.createElement("div");V.className="geDialogSection";S=document.createElement("div");S.className="geDialogCheckRow";var la=document.createElement("input");la.style.marginRight=
-"8px";la.setAttribute("type","radio");la.setAttribute("name","printSize");S.appendChild(la);y=document.createElement("span");mxUtils.write(y,mxResources.get("pageView"));S.appendChild(y);mxEvent.addListener(S,"click",function(){la.checked=!0});V.appendChild(S);S=document.createElement("div");S.className="geDialogCheckRow";var ka=document.createElement("input");ka.style.marginRight="8px";ka.setAttribute("type","radio");ka.setAttribute("name","printSize");S.appendChild(ka);y=document.createElement("span");
-mxUtils.write(y,mxResources.get("crop"));S.appendChild(y);mxEvent.addListener(S,"click",function(){ka.checked=!0});V.appendChild(S);S=document.createElement("div");S.className="geDialogCheckRow";S.style.alignItems="flex-start";var pa=document.createElement("input");pa.style.marginTop="4px";pa.setAttribute("type","radio");pa.setAttribute("name","printSize");S.appendChild(pa);Z=document.createElement("table");Z.style.display="inline-block";Z.style.borderSpacing="0";ba=document.createElement("tbody");
-var Ba=document.createElement("tr"),sa=Ba.cloneNode(!0),ja=document.createElement("td"),ya=ja.cloneNode(!0),ua=ja.cloneNode(!0),za=ja.cloneNode(!0),xa=ja.cloneNode(!0),ma=ja.cloneNode(!0);ja.style.textAlign="right";za.style.textAlign="right";mxUtils.write(ja,mxResources.get("fitTo"));mxEvent.addListener(S,"click",function(va){mxEvent.getSource(va)!=pa&&(pa.checked=!pa.checked)});var Ca=document.createElement("input");Ca.style.margin="0 2px";Ca.style.boxSizing="border-box";Ca.setAttribute("value",
-m.lastPrintSheetsAcross||"1");Ca.setAttribute("min","1");Ca.setAttribute("type","number");Ca.style.width="40px";ya.appendChild(Ca);y=document.createElement("span");mxUtils.write(y,mxResources.get("fitToSheetsAcross"));ua.appendChild(y);mxUtils.write(za,mxResources.get("fitToBy"));var wa=Ca.cloneNode(!0);wa.setAttribute("value",m.lastPrintSheetsDown||"1");xa.appendChild(wa);mxEvent.addListener(Ca,"click",function(va){pa.checked=!0;mxEvent.consume(va)});mxEvent.addListener(wa,"click",function(va){pa.checked=
-!0;mxEvent.consume(va)});m.lastPrintCropRadioChecked?ka.checked=!0:m.lastPrintFitRadioChecked?pa.checked=!0:la.checked=!0;y=document.createElement("span");mxUtils.write(y,mxResources.get("fitToSheetsDown"));ma.appendChild(y);Ba.appendChild(ja);Ba.appendChild(ya);Ba.appendChild(ua);sa.appendChild(za);sa.appendChild(xa);sa.appendChild(ma);ba.appendChild(Ba);ba.appendChild(sa);Z.appendChild(ba);S.appendChild(Z);V.appendChild(S);Q.appendChild(V);V=document.createElement("div");V.className="geDialogSection";
-y=document.createElement("div");y.className="geDialogFormRow";S=document.createElement("label");S.className="geDialogFormLabel";mxUtils.write(S,mxResources.get("borderWidth"));y.appendChild(S);var ha=document.createElement("input");ha.setAttribute("type","number");ha.setAttribute("min","0");ha.style.width="40px";ha.value=null!=m.lastPrintBorder?m.lastPrintBorder:mxPrintPreview.prototype.pageMargin;y.appendChild(ha);S=document.createElement("label");S.style.marginLeft="12px";S.style.marginRight="4px";
-mxUtils.write(S,mxResources.get("zoom"));y.appendChild(S);var ta=document.createElement("input");ta.style.width="60px";ta.value=null!=m.lastPrintZoom?m.lastPrintZoom:"100%";y.appendChild(ta);V.appendChild(y);S=document.createElement("div");S.className="geDialogCheckRow";var Da=document.createElement("input");Da.setAttribute("type","checkbox");Da.style.marginRight="8px";Da.checked=null!=m.lastPrintGrid?m.lastPrintGrid:!1;S.appendChild(Da);y=document.createElement("span");mxUtils.write(y,mxResources.get("grid"));
-S.appendChild(y);mxEvent.addListener(y,"click",function(va){Da.checked=!0;mxEvent.consume(va)});V.appendChild(S);S=document.createElement("div");S.className="geDialogCheckRow";var oa=document.createElement("input");oa.setAttribute("type","checkbox");oa.style.marginRight="8px";oa.checked=null!=m.lastPrintShadow?m.lastPrintShadow:!1;S.appendChild(oa);y=document.createElement("span");mxUtils.write(y,mxResources.get("shadows"));S.appendChild(y);m.isOffline()&&!mxClient.IS_CHROMEAPP||y.appendChild(m.createHelpIcon("https://github.com/jgraph/drawio/discussions/5136"));
-mxEvent.addListener(y,"click",function(va){"IMG"!=mxEvent.getSource(va).nodeName&&(oa.checked=!0,mxEvent.consume(va))});Editor.enableShadowOption||(S.style.display="none");V.appendChild(S);var ca=document.createElement("input");ca.setAttribute("type","checkbox");ca.style.marginRight="8px";ca.checked=null!=m.lastPrintTransparent?m.lastPrintTransparent:!1;null!=E&&(S=document.createElement("div"),S.className="geDialogCheckRow",S.appendChild(ca),y=document.createElement("span"),mxUtils.write(y,mxResources.get("transparentBackground")),
-S.appendChild(y),mxEvent.addListener(y,"click",function(va){ca.checked=!0;mxEvent.consume(va)}),V.appendChild(S));var ea=document.createElement("input");ea.setAttribute("type","checkbox");ea.style.marginRight="8px";ea.checked=null!=m.lastPrintInclude?m.lastPrintInclude:Editor.defaultIncludeDiagram;null==E||mxClient.IS_CHROMEAPP||"draw.io"!=m.getServiceName()||(S=document.createElement("div"),S.className="geDialogCheckRow",S.appendChild(ea),y=document.createElement("span"),mxUtils.write(y,mxResources.get("includeCopyOfMyDiagram")),
-S.appendChild(y),mxEvent.addListener(y,"click",function(va){ea.checked=!0;mxEvent.consume(va)}),V.appendChild(S));Q.appendChild(V);y=document.createElement("div");y.style.marginTop="16px";y.style.textAlign="right";y.style.whiteSpace="nowrap";m.isOffline()&&!mxClient.IS_CHROMEAPP||null!=E||y.appendChild(m.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));V=mxUtils.button(mxResources.get("cancel"),function(){m.hideDialog()});V.className="geBtn";m.editor.cancelFirst&&y.appendChild(V);PrintDialog.previewEnabled&&
-null==E&&(S=mxUtils.button(mxResources.get("preview"),function(){try{m.hideDialog(),T(!1)}catch(va){m.handleError(va)}}),S.className="geBtn",y.appendChild(S));P=null!=P?P:null!=E?"export":PrintDialog.previewEnabled?"print":"ok";P=mxUtils.button(mxResources.get(P),function(){try{m.hideDialog(),T(!0)}catch(va){m.handleError(va)}});P.className="geBtn gePrimaryBtn";y.appendChild(P);m.editor.cancelFirst||y.appendChild(V);Q.appendChild(y);if(m.editor.isChromelessView()){var qa=function(){Editor.isDarkMode()?
-(Q.classList.add("geDarkMode"),Q.style.colorScheme="dark"):(Q.classList.remove("geDarkMode"),Q.style.colorScheme="light")};m.addListener("darkModeChanged",qa);qa();var na=function(va,ra){va=ra.getProperty("dialog");Q.parentNode==va.container&&(m.editor.removeListener(na),m.removeListener(qa))};m.editor.addListener("hideDialog",na)}this.container=Q};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 m=this.image;null!=m&&null!=m.src&&Graph.isPageLink(m.src)&&(m={originalSrc:m.src});this.page.viewState.backgroundImage=m}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.adaptiveColors&&(this.page.viewState.adaptiveColors=this.adaptiveColors);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.adaptiveColors&&this.adaptiveColors!=this.ui.editor.graph.adaptiveColors&&(m=this.ui.editor.graph.adaptiveColors,this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=m?m:"default"),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),
-this.shadowVisible=!this.shadowVisible)}})();(function(){EditorUi.VERSION="29.6.7";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;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)||/.*\.cdn\.prod\.atlassian-dev\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&
+function(){I.apply(this,arguments);this.enumerationState=0};var T=mxGraphView.prototype.stateValidated;mxGraphView.prototype.stateValidated=function(m){null!=m.shape&&this.redrawEnumerationState(m);return T.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(m){m=decodeURIComponent(mxUtils.getValue(m.style,"enumerateValue",""));""==m&&(m=++this.enumerationState);return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(m)+
+"</div>"};mxGraphView.prototype.redrawEnumerationState=function(m){var y="1"==mxUtils.getValue(m.style,"enumerate",0);y&&null==m.secondLabel?(m.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),m.secondLabel.size=12,m.secondLabel.state=m,m.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(m,m.secondLabel)):y||null==m.secondLabel||(m.secondLabel.destroy(),m.secondLabel=null);y=m.secondLabel;if(null!=y){var F=m.view.scale,
+P=this.createEnumerationValue(m);m=this.graph.model.isVertex(m.cell)?new mxRectangle(m.x+m.width-4*F,m.y+4*F,0,0):mxRectangle.fromPoint(m.view.getPoint(m));y.bounds.equals(m)&&y.value==P&&y.scale==F||(y.bounds=m,y.value=P,y.scale=F,y.redraw())}};var W=Graph.prototype.refresh;Graph.prototype.refresh=function(){this.refreshBackgroundImage();W.apply(this,arguments)};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),
+this.view.validateBackgroundImage())};var q=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){q.apply(this,arguments);this.currentStyle="default-style2"};Graph.prototype.handleCustomLink=function(m,y){"data:action/json,"==m.substring(0,17)&&(m=JSON.parse(m.substring(17)),null!=m.actions&&this.executeCustomActions(m.actions,null,y))};Graph.prototype.executeCustomActions=function(m,y,F){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 P=!1,O=0,S=0,V=mxUtils.bind(this,function(){P||(P=!0,this.model.beginUpdate())}),Q=mxUtils.bind(this,function(){P&&(P=!1,this.model.endUpdate())}),R=mxUtils.bind(this,function(){0<O&&O--;0==O&&U()}),U=mxUtils.bind(this,function(){if(S<m.length){var Y=this.stoppingCustomActions,X=m[S++],
+Z=[];if(null!=X.open)if(Q(),this.isCustomLink(X.open)){if(!this.customLinkClicked(X.open,F))return}else this.openLink(X.open);null==X.wait||Y||(this.pendingExecuteNextAction=mxUtils.bind(this,function(){this.pendingWaitThread=this.pendingExecuteNextAction=null;R()}),O++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,""!=X.wait?parseInt(X.wait):1E3),Q());null!=X.opacity&&null!=X.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(X.opacity,!0)),
+X.opacity.value);null!=X.fadeIn&&(O++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(X.fadeIn,!0)),0,1,R,Y?0:X.fadeIn.delay));null!=X.fadeOut&&(O++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(X.fadeOut,!0)),1,0,R,Y?0:X.fadeOut.delay));null!=X.wipeIn&&(Z=Z.concat(this.createWipeAnimations(this.getCellsForAction(X.wipeIn,!0),!0)));null!=X.wipeOut&&(Z=Z.concat(this.createWipeAnimations(this.getCellsForAction(X.wipeOut,!0),!1)));null!=X.popIn&&(Z=Z.concat(this.createPopAnimations(this.getCellsForAction(X.popIn,
+!0),!0)));null!=X.popOut&&(Z=Z.concat(this.createPopAnimations(this.getCellsForAction(X.popOut,!0),!1)));null!=X.toggle&&(V(),this.toggleCells(this.getCellsForAction(X.toggle,!0)));if(null!=X.show){V();var aa=this.getCellsForAction(X.show,!0);Graph.setOpacityForNodes(this.getNodesForCells(aa),1);this.setCellsVisible(aa,!0)}null!=X.hide&&(V(),aa=this.getCellsForAction(X.hide,!0),Graph.setOpacityForNodes(this.getNodesForCells(aa),0),this.setCellsVisible(aa,!1));null!=X.toggleStyle&&null!=X.toggleStyle.key&&
+(V(),this.toggleCellStyles(X.toggleStyle.key,null!=X.toggleStyle.defaultValue?X.toggleStyle.defaultValue:"0",this.getCellsForAction(X.toggleStyle,!0)));null!=X.style&&null!=X.style.key&&(V(),this.setCellStyles(X.style.key,X.style.value,this.getCellsForAction(X.style,!0)));aa=[];null!=X.select&&this.isEnabled()&&(aa=this.getCellsForAction(X.select),this.setSelectionCells(aa));null!=X.highlight&&(aa=this.getCellsForAction(X.highlight),this.highlightCells(aa,X.highlight.color,X.highlight.duration,X.highlight.opacity));
+null!=X.scroll&&(aa=this.getCellsForAction(X.scroll));null!=X.viewbox&&this.fitWindow(X.viewbox,X.viewbox.border);0<aa.length&&this.scrollCellToVisible(aa[0]);null!=F&&null!=X.explore&&Graph.exploreFromCell(this,F,X.explore);if(null!=X.tags){if(null!=X.tags.toggle){var da=X.tags.toggle;0==da.length&&(da=this.getAllTags());for(aa=0;aa<da.length;aa++)this.toggleHiddenTag(da[aa])}da=null;null!=X.tags.hidden&&(null==da&&(da=[]),da=da.concat(X.tags.hidden));if(null!=X.tags.visible){null==da&&(da=[]);var fa=
+this.getAllTags();for(aa=0;aa<fa.length;aa++)0>mxUtils.indexOf(X.tags.visible,fa[aa])&&0>mxUtils.indexOf(da,fa[aa])&&da.push(fa[aa])}null!=da&&this.setHiddenTags(da);this.refresh()}0<Z.length&&(O++,this.executeAnimations(Z,R,Y?1:X.steps,Y?0:X.delay));0==O?U():Q()}else this.stoppingCustomActions=this.executingCustomActions=!1,Q(),null!=y&&y()});U()}};Graph.prototype.doUpdateCustomLinksForCell=function(m,y){var F=this.getLinkForCell(y);null!=F&&"data:action/json,"==F.substring(0,17)&&this.setLinkForCell(y,
+this.updateCustomLink(m,F));if(this.isHtmlLabel(y)){var P=document.createElement("div");P.innerHTML=Graph.sanitizeHtml(this.getLabel(y));for(var O=P.getElementsByTagName("a"),S=!1,V=0;V<O.length;V++)F=O[V].getAttribute("href"),null!=F&&"data:action/json,"==F.substring(0,17)&&(O[V].setAttribute("href",this.updateCustomLink(m,F)),S=!0);S&&this.labelChanged(y,P.innerHTML)}};Graph.prototype.updateCustomLink=function(m,y){if("data:action/json,"==y.substring(0,17))try{var F=JSON.parse(y.substring(17));
+null!=F.actions&&(this.updateCustomLinkActions(m,F.actions),y="data:action/json,"+JSON.stringify(F))}catch(P){}return y};Graph.prototype.updateCustomLinkActions=function(m,y){for(var F=0;F<y.length;F++){var P=y[F],O;for(O in P)this.updateCustomLinkAction(m,P[O],"cells"),this.updateCustomLinkAction(m,P[O],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(m,y,F){if(null!=y&&null!=y[F]){for(var P=[],O=0;O<y[F].length;O++)if("*"==y[F][O])P.push(y[F][O]);else{var S=m[y[F][O]];null!=S?""!=
+S&&P.push(S):P.push(y[F][O])}y[F]=P}};Graph.prototype.getCellsForAction=function(m,y){y=this.getCellsById(m.cells).concat(this.getCellsForTags(m.tags,null,y));if(null!=m.excludeCells){for(var F=[],P=0;P<y.length;P++)0>m.excludeCells.indexOf(y[P].id)&&F.push(y[P]);y=F}return y};Graph.prototype.getCellsById=function(m){var y=[];if(null!=m)for(var F=0;F<m.length;F++)if("*"==m[F]){var P=this.model.getRoot();y=y.concat(this.model.filterDescendants(function(S){return S!=P},P))}else{var O=this.model.getCell(m[F]);
+null!=O&&y.push(O)}return y};var z=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(m){return z.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(m))};Graph.prototype.setHiddenTags=function(m){this.hiddenTags=m;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(m){var y=mxUtils.indexOf(this.hiddenTags,m);0>y?this.hiddenTags.push(m):0<=y&&this.hiddenTags.splice(y,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};
+Graph.prototype.isAllTagsHidden=function(m){if(null==m||0==m.length||0==this.hiddenTags.length)return!1;m=m.split(" ");if(m.length>this.hiddenTags.length)return!1;for(var y=0;y<m.length;y++)if(0>mxUtils.indexOf(this.hiddenTags,m[y]))return!1;return!0};Graph.prototype.getCellsForTags=function(m,y,F,P){var O=[];if(null!=m){y=null!=y?y:this.model.getDescendants(this.model.getRoot());for(var S=0,V={},Q=0;Q<m.length;Q++)0<m[Q].length&&(V[m[Q]]=!0,S++);for(Q=0;Q<y.length;Q++)if(F&&this.model.getParent(y[Q])==
+this.model.root||this.model.isVertex(y[Q])||this.model.isEdge(y[Q])){var R=this.getTagsForCell(y[Q]),U=!1;if(0<R.length&&(R=R.split(" "),R.length>=m.length)){for(var Y=U=0;Y<R.length&&U<S;Y++)null!=V[R[Y]]&&U++;U=U==S}U&&(1!=P||this.isCellVisible(y[Q]))&&O.push(y[Q])}}return O};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(m){for(var y=null,F=[],P=0;P<m.length;P++){var O=this.getTagsForCell(m[P]);
+F=[];if(0<O.length){O=O.split(" ");for(var S={},V=0;V<O.length;V++)if(null==y||null!=y[O[V]])S[O[V]]=!0,F.push(O[V]);y=S}else return[]}return F};Graph.prototype.getTagsForCells=function(m){for(var y=[],F={},P=0;P<m.length;P++){var O=this.getTagsForCell(m[P]);if(0<O.length){O=O.split(" ");for(var S=0;S<O.length;S++)null==F[O[S]]&&(F[O[S]]=!0,y.push(O[S]))}}return y};Graph.prototype.getTagsForCell=function(m){return this.getAttributeForCell(m,"tags","")};Graph.prototype.addTagsForCells=function(m,y){if(0<
+m.length&&0<y.length){this.model.beginUpdate();try{for(var F=0;F<m.length;F++){for(var P=this.getTagsForCell(m[F]),O=P.split(" "),S=!1,V=0;V<y.length;V++){var Q=mxUtils.trim(y[V]);""!=Q&&0>mxUtils.indexOf(O,Q)&&(P=0<P.length?P+" "+Q:Q,S=!0)}S&&this.setAttributeForCell(m[F],"tags",P)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(m,y){if(0<m.length&&0<y.length){this.model.beginUpdate();try{for(var F=0;F<m.length;F++){var P=this.getTagsForCell(m[F]);if(0<P.length){for(var O=
+P.split(" "),S=!1,V=0;V<y.length;V++){var Q=mxUtils.indexOf(O,y[V]);0<=Q&&(O.splice(Q,1),S=!0)}S&&this.setAttributeForCell(m[F],"tags",O.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=function(m){this.model.beginUpdate();try{for(var y=0;y<m.length;y++)this.model.setVisible(m[y],!this.model.isVisible(m[y]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(m,y){this.model.beginUpdate();try{for(var F=0;F<m.length;F++)this.model.setVisible(m[F],y)}finally{this.model.endUpdate()}};
+Graph.prototype.highlightCells=function(m,y,F,P){for(var O=0;O<m.length;O++)this.highlightCell(m[O],y,F,P)};Graph.prototype.highlightCell=function(m,y,F,P,O){y=null!=y?y:mxConstants.DEFAULT_VALID_COLOR;F=null!=F?F:1E3;m=this.view.getState(m);var S=null;null!=m&&(O=null!=O?O:4,O=Math.max(O+1,mxUtils.getValue(m.style,mxConstants.STYLE_STROKEWIDTH,1)+O),S=new mxCellHighlight(this,y,O,!1),null!=P&&(S.opacity=P),S.highlight(m),window.setTimeout(function(){null!=S.shape&&(mxUtils.setPrefixedStyle(S.shape.node.style,
+"transition","all 1200ms ease-in-out"),S.shape.node.style.opacity=0);window.setTimeout(function(){S.destroy()},1200)},F));return S};Graph.prototype.addSvgShadow=function(m,y,F,P){P=null!=P?P:!0;var O=Math.ceil(this.svgShadowSize*this.svgShadowBlur);null!=F&&F||(y=null!=y?y:m.getElementsByTagName("g")[0],null!=y&&(this.updateShadowFilter(y,!0),!isNaN(parseInt(m.getAttribute("width")))&&P&&(m.setAttribute("width",parseInt(m.getAttribute("width"))+O),m.setAttribute("height",parseInt(m.getAttribute("height"))+
+O),y=m.getAttribute("viewBox"),null!=y&&0<y.length&&(y=y.split(" "),3<y.length&&(w=parseFloat(y[2])+O,h=parseFloat(y[3])+O,m.setAttribute("viewBox",y[0]+" "+y[1]+" "+w+" "+h))))));return O};Graph.prototype.updateShadowFilter=function(m,y){mxClient.IS_SF||(y?(y=mxUtils.getLightDarkColor(this.svgShadowColor,this.svgShadowOpacity),m.style.filter="drop-shadow("+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowBlur)/100+"px "+y.cssText+
+")"):m.style.filter="")};Graph.prototype.setShadowVisible=function(m,y){y=null!=y?y:!0;this.shadowVisible=m;this.updateShadowFilter(this.view.getDrawPane(),this.shadowVisible);y&&this.fireEvent(new mxEventObject("shadowVisibleChanged"))};Graph.prototype.checkDefaultParent=function(){null==this.defaultParent||this.model.contains(this.defaultParent)||(this.setDefaultParent(null),this.selectUnlockedLayer())};Graph.prototype.selectUnlockedLayer=function(){if(null==this.defaultParent){var m=this.model.getChildCount(this.model.root),
+y=0;do var F=this.model.getChildAt(this.model.root,y);while(y++<m&&"1"==mxUtils.getValue(this.getCellStyle(F),"locked","0"));null!=F&&this.setDefaultParent(F)}};mxStencilRegistry.libraries.mockup=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries.arrows2=[SHAPES_PATH+"/mxArrows.js"];mxStencilRegistry.libraries.atlassian=[STENCIL_PATH+"/atlassian.xml",SHAPES_PATH+"/mxAtlassian.js"];mxStencilRegistry.libraries.bpmn=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+
+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.bpmn2=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.c4=[SHAPES_PATH+"/mxC4.js"];mxStencilRegistry.libraries.cisco19=[SHAPES_PATH+"/mxCisco19.js",STENCIL_PATH+"/cisco19.xml"];mxStencilRegistry.libraries.cisco_safe=[SHAPES_PATH+"/mxCiscoSafe.js",STENCIL_PATH+"/cisco_safe/architecture.xml",STENCIL_PATH+"/cisco_safe/business_icons.xml",STENCIL_PATH+"/cisco_safe/capability.xml",STENCIL_PATH+
+"/cisco_safe/design.xml",STENCIL_PATH+"/cisco_safe/iot_things_icons.xml",STENCIL_PATH+"/cisco_safe/people_places_things_icons.xml",STENCIL_PATH+"/cisco_safe/security_icons.xml",STENCIL_PATH+"/cisco_safe/technology_icons.xml",STENCIL_PATH+"/cisco_safe/threat.xml"];mxStencilRegistry.libraries.dfd=[SHAPES_PATH+"/mxDFD.js"];mxStencilRegistry.libraries.er=[SHAPES_PATH+"/er/mxER.js"];mxStencilRegistry.libraries.kubernetes=[SHAPES_PATH+"/mxKubernetes.js",STENCIL_PATH+"/kubernetes.xml",STENCIL_PATH+"/kubernetes2.xml"];
+mxStencilRegistry.libraries.flowchart=[SHAPES_PATH+"/mxFlowchart.js",STENCIL_PATH+"/flowchart.xml"];mxStencilRegistry.libraries.ios=[SHAPES_PATH+"/mockup/mxMockupiOS.js"];mxStencilRegistry.libraries.rackGeneral=[SHAPES_PATH+"/rack/mxRack.js",STENCIL_PATH+"/rack/general.xml"];mxStencilRegistry.libraries.rackF5=[STENCIL_PATH+"/rack/f5.xml"];mxStencilRegistry.libraries.lean_mapping=[SHAPES_PATH+"/mxLeanMap.js",STENCIL_PATH+"/lean_mapping.xml"];mxStencilRegistry.libraries.basic=[SHAPES_PATH+"/mxBasic.js",
+STENCIL_PATH+"/basic.xml"];mxStencilRegistry.libraries.ios7icons=[STENCIL_PATH+"/ios7/icons.xml"];mxStencilRegistry.libraries.ios7ui=[SHAPES_PATH+"/ios7/mxIOS7Ui.js",STENCIL_PATH+"/ios7/misc.xml"];mxStencilRegistry.libraries.android=[SHAPES_PATH+"/mxAndroid.js",STENCIL_PATH+"/android/android.xml"];mxStencilRegistry.libraries["electrical/abstract"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/abstract.xml"];mxStencilRegistry.libraries["electrical/logic_gates"]=[SHAPES_PATH+"/mxElectrical.js",
+STENCIL_PATH+"/electrical/logic_gates.xml"];mxStencilRegistry.libraries["electrical/miscellaneous"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/miscellaneous.xml"];mxStencilRegistry.libraries["electrical/signal_sources"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/signal_sources.xml"];mxStencilRegistry.libraries["electrical/electro-mechanical"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/electro-mechanical.xml"];mxStencilRegistry.libraries["electrical/transmission"]=
+[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/transmission.xml"];mxStencilRegistry.libraries.infographic=[SHAPES_PATH+"/mxInfographic.js"];mxStencilRegistry.libraries["mockup/buttons"]=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries["mockup/containers"]=[SHAPES_PATH+"/mockup/mxMockupContainers.js"];mxStencilRegistry.libraries["mockup/forms"]=[SHAPES_PATH+"/mockup/mxMockupForms.js"];mxStencilRegistry.libraries["mockup/graphics"]=[SHAPES_PATH+"/mockup/mxMockupGraphics.js",
+STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[SHAPES_PATH+"/mockup/mxMockupMarkup.js"];mxStencilRegistry.libraries["mockup/misc"]=[SHAPES_PATH+"/mockup/mxMockupMisc.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/navigation"]=[SHAPES_PATH+"/mockup/mxMockupNavigation.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/text"]=[SHAPES_PATH+"/mockup/mxMockupText.js"];mxStencilRegistry.libraries.floorplan=[SHAPES_PATH+"/mxFloorplan.js",
+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.ibmcloud=[STENCIL_PATH+"/ibm_cloud.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.networks2=[SHAPES_PATH+"/mxNetworks2.js",
+STENCIL_PATH+"/networks2.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"];mxStencilRegistry.libraries.salesforce=[STENCIL_PATH+"/salesforce.xml"];
+mxStencilRegistry.libraries.sap=[SHAPES_PATH+"/mxSAP.js",STENCIL_PATH+"/sap.xml"];mxStencilRegistry.libraries.emoji=[SHAPES_PATH+"/emoji/mxEmoji.js"];mxMarker.getPackageForType=function(m){var y=null;null!=m&&0<m.length&&("ER"==m.substring(0,2)?y="mxgraph.er":"sysML"==m.substring(0,5)&&(y="mxgraph.sysml"));return y};var L=mxMarker.createMarker;mxMarker.createMarker=function(m,y,F,P,O,S,V,Q,R,U){if(null!=F&&null==mxMarker.markers[F]){var Y=this.getPackageForType(F);null!=Y&&mxStencilRegistry.getStencil(Y)}return L.apply(this,
+arguments)};var N=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(m,y,F,P,O,S){"1"==mxUtils.getValue(y.style,"lineShape",null)&&m.setFillColor(mxUtils.getValue(y.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return N.apply(this,arguments)};PrintDialog.prototype.create=function(m,y,F,P){function O(){fa.value=Math.max(1,Math.min(Y,Math.max(parseInt(fa.value),parseInt(da.value))));da.value=Math.max(1,Math.min(Y,Math.min(parseInt(fa.value),parseInt(da.value))))}function S(va){m.lastPrintPagesRadioChecked=
+aa.checked;m.lastPrintSelectionOnlyChecked=ia.checked;m.lastPrintCropRadioChecked=ka.checked;m.lastPrintFitRadioChecked=pa.checked;aa.checked&&da.value<fa.value?(m.lastPrintPagesFromInput=da.value,m.lastPrintPagesToInput=fa.value):(m.lastPrintPagesFromInput=null,m.lastPrintPagesToInput=null);ta.value=Math.max(1,Math.min(1600,parseInt(ta.value)))+"%";m.lastPrintZoom=ta.value;m.lastPrintBorder=ha.value;m.lastPrintGrid=Da.checked;m.lastPrintTransparent=ca.checked;m.lastPrintInclude=ea.checked;m.lastPrintSheetsAcross=
+Ca.value;m.lastPrintSheetsDown=wa.value;var ra={};ra.border=parseInt(ha.value);ra.scale=parseInt(ta.value)/100;ra.grid=Da.checked;ra.shadows=oa.checked;ra.transparent=ca.checked;ra.includeCopy=ea.checked;ra.sheetsAcross=parseInt(Ca.value);ra.sheetsDown=parseInt(wa.value);ra.pagesFrom=parseInt(da.value);ra.pagesTo=parseInt(fa.value);ra.allPages=X.checked;ra.selection=ia.checked;ra.pageView=la.checked;ra.crop=ka.checked;ra.fit=pa.checked;return null!=F?F(!va,ra):m.print(!va,ra)}var V=m.editor.graph,
+Q=document.createElement("div"),R=document.createElement("h3");R.style.width="100%";R.style.textAlign="center";R.style.marginTop="0px";R.style.marginBottom="10px";mxUtils.write(R,y||mxResources.get("print"));Q.appendChild(R);var U=1,Y=1;R=document.createElement("div");R.className="geDialogSection";R.style.whiteSpace="nowrap";var X=document.createElement("input");X.style.marginRight="8px";X.setAttribute("type","radio");X.setAttribute("name","pages-printdialog");var Z=document.createElement("div");
+Z.className="geDialogCheckRow";Z.appendChild(X);y=document.createElement("span");mxUtils.write(y,mxResources.get("allPages"));mxEvent.addListener(y,"click",function(){X.checked=!0});Z.appendChild(y);R.appendChild(Z);var aa=document.createElement("input");aa.style.marginRight="8px";aa.setAttribute("type","radio");aa.setAttribute("name","pages-printdialog");Z=document.createElement("div");Z.className="geDialogCheckRow";Z.appendChild(aa);y=document.createElement("span");mxUtils.write(y,mxResources.get("pages")+
+":");Z.appendChild(y);mxEvent.addListener(y,"click",function(){aa.checked=!0});var da=document.createElement("input");da.style.margin="0 4px";da.setAttribute("value","1");da.setAttribute("type","number");da.setAttribute("min","1");da.style.width="40px";Z.appendChild(da);y=document.createElement("span");mxUtils.write(y,mxResources.get("to"));Z.appendChild(y);var fa=da.cloneNode(!0);Z.appendChild(fa);mxEvent.addListener(da,"focus",function(){aa.checked=!0});mxEvent.addListener(fa,"focus",function(){aa.checked=
+!0});mxEvent.addListener(da,"change",O);mxEvent.addListener(fa,"change",O);if(null!=m.pages&&(Y=m.pages.length,null!=m.currentPage))for(var ba=0;ba<Y;ba++)if(m.currentPage==m.pages[ba]){U=ba+1;break}null!=m.lastPrintPagesFromInput&&null!=m.lastPrintPagesToInput?(da.value=Math.min(Y,Math.max(1,m.lastPrintPagesFromInput)),fa.value=Math.min(Y,Math.max(1,m.lastPrintPagesToInput))):(da.value=U,fa.value=U);da.setAttribute("max",Y);fa.setAttribute("max",Y);ba=mxUtils.button(mxResources.get("currentPage"),
+function(va){da.value=U;fa.value=U;aa.checked=!0});ba.setAttribute("title",mxResources.get("currentPage"));ba.style.marginLeft="4px";ba.style.maxWidth="100px";ba.style.overflow="hidden";ba.style.textOverflow="ellipsis";ba.style.whiteSpace="nowrap";Z.appendChild(ba);R.appendChild(Z);1<Y&&Q.appendChild(R);Z=document.createElement("div");Z.className="geDialogCheckRow";var ia=document.createElement("input");ia.setAttribute("name","pages-printdialog");ia.setAttribute("type",1==Y?"checkbox":"radio");ia.style.marginRight=
+"8px";V.isSelectionEmpty()&&ia.setAttribute("disabled","disabled");V.isEnabled()&&(Z.appendChild(ia),y=document.createElement("span"),mxUtils.write(y,mxResources.get("selectionOnly")),Z.appendChild(y));V.isEnabled()&&(1<Y?R.appendChild(Z):(R=document.createElement("div"),R.className="geDialogSection",R.appendChild(Z),Q.appendChild(R)));!m.isPagesEnabled()||m.lastPrintPagesRadioChecked?aa.checked=!0:!V.isSelectionEmpty()&&m.lastPrintSelectionOnlyChecked?ia.checked=!0:X.checked=!0;V.isSelectionEmpty()||
+mxEvent.addListener(y,"click",function(){ia.checked=!ia.checked});V=document.createElement("div");V.className="geDialogSection";R=document.createElement("div");R.className="geDialogCheckRow";var la=document.createElement("input");la.style.marginRight="8px";la.setAttribute("type","radio");la.setAttribute("name","printSize");R.appendChild(la);y=document.createElement("span");mxUtils.write(y,mxResources.get("pageView"));R.appendChild(y);mxEvent.addListener(R,"click",function(){la.checked=!0});V.appendChild(R);
+R=document.createElement("div");R.className="geDialogCheckRow";var ka=document.createElement("input");ka.style.marginRight="8px";ka.setAttribute("type","radio");ka.setAttribute("name","printSize");R.appendChild(ka);y=document.createElement("span");mxUtils.write(y,mxResources.get("crop"));R.appendChild(y);mxEvent.addListener(R,"click",function(){ka.checked=!0});V.appendChild(R);R=document.createElement("div");R.className="geDialogCheckRow";R.style.alignItems="flex-start";var pa=document.createElement("input");
+pa.style.marginTop="4px";pa.setAttribute("type","radio");pa.setAttribute("name","printSize");R.appendChild(pa);Z=document.createElement("table");Z.style.display="inline-block";Z.style.borderSpacing="0";ba=document.createElement("tbody");var Ba=document.createElement("tr"),sa=Ba.cloneNode(!0),ja=document.createElement("td"),ya=ja.cloneNode(!0),ua=ja.cloneNode(!0),za=ja.cloneNode(!0),xa=ja.cloneNode(!0),ma=ja.cloneNode(!0);ja.style.textAlign="right";za.style.textAlign="right";mxUtils.write(ja,mxResources.get("fitTo"));
+mxEvent.addListener(R,"click",function(va){mxEvent.getSource(va)!=pa&&(pa.checked=!pa.checked)});var Ca=document.createElement("input");Ca.style.margin="0 2px";Ca.style.boxSizing="border-box";Ca.setAttribute("value",m.lastPrintSheetsAcross||"1");Ca.setAttribute("min","1");Ca.setAttribute("type","number");Ca.style.width="40px";ya.appendChild(Ca);y=document.createElement("span");mxUtils.write(y,mxResources.get("fitToSheetsAcross"));ua.appendChild(y);mxUtils.write(za,mxResources.get("fitToBy"));var wa=
+Ca.cloneNode(!0);wa.setAttribute("value",m.lastPrintSheetsDown||"1");xa.appendChild(wa);mxEvent.addListener(Ca,"click",function(va){pa.checked=!0;mxEvent.consume(va)});mxEvent.addListener(wa,"click",function(va){pa.checked=!0;mxEvent.consume(va)});m.lastPrintCropRadioChecked?ka.checked=!0:m.lastPrintFitRadioChecked?pa.checked=!0:la.checked=!0;y=document.createElement("span");mxUtils.write(y,mxResources.get("fitToSheetsDown"));ma.appendChild(y);Ba.appendChild(ja);Ba.appendChild(ya);Ba.appendChild(ua);
+sa.appendChild(za);sa.appendChild(xa);sa.appendChild(ma);ba.appendChild(Ba);ba.appendChild(sa);Z.appendChild(ba);R.appendChild(Z);V.appendChild(R);Q.appendChild(V);V=document.createElement("div");V.className="geDialogSection";y=document.createElement("div");y.className="geDialogFormRow";R=document.createElement("label");R.className="geDialogFormLabel";mxUtils.write(R,mxResources.get("borderWidth"));y.appendChild(R);var ha=document.createElement("input");ha.setAttribute("type","number");ha.setAttribute("min",
+"0");ha.style.width="40px";ha.value=null!=m.lastPrintBorder?m.lastPrintBorder:mxPrintPreview.prototype.pageMargin;y.appendChild(ha);R=document.createElement("label");R.style.marginLeft="12px";R.style.marginRight="4px";mxUtils.write(R,mxResources.get("zoom"));y.appendChild(R);var ta=document.createElement("input");ta.style.width="60px";ta.value=null!=m.lastPrintZoom?m.lastPrintZoom:"100%";y.appendChild(ta);V.appendChild(y);R=document.createElement("div");R.className="geDialogCheckRow";var Da=document.createElement("input");
+Da.setAttribute("type","checkbox");Da.style.marginRight="8px";Da.checked=null!=m.lastPrintGrid?m.lastPrintGrid:!1;R.appendChild(Da);y=document.createElement("span");mxUtils.write(y,mxResources.get("grid"));R.appendChild(y);mxEvent.addListener(y,"click",function(va){Da.checked=!0;mxEvent.consume(va)});V.appendChild(R);R=document.createElement("div");R.className="geDialogCheckRow";var oa=document.createElement("input");oa.setAttribute("type","checkbox");oa.style.marginRight="8px";oa.checked=null!=m.lastPrintShadow?
+m.lastPrintShadow:!1;R.appendChild(oa);y=document.createElement("span");mxUtils.write(y,mxResources.get("shadows"));R.appendChild(y);m.isOffline()&&!mxClient.IS_CHROMEAPP||y.appendChild(m.createHelpIcon("https://github.com/jgraph/drawio/discussions/5136"));mxEvent.addListener(y,"click",function(va){"IMG"!=mxEvent.getSource(va).nodeName&&(oa.checked=!0,mxEvent.consume(va))});Editor.enableShadowOption||(R.style.display="none");V.appendChild(R);var ca=document.createElement("input");ca.setAttribute("type",
+"checkbox");ca.style.marginRight="8px";ca.checked=null!=m.lastPrintTransparent?m.lastPrintTransparent:!1;null!=F&&(R=document.createElement("div"),R.className="geDialogCheckRow",R.appendChild(ca),y=document.createElement("span"),mxUtils.write(y,mxResources.get("transparentBackground")),R.appendChild(y),mxEvent.addListener(y,"click",function(va){ca.checked=!0;mxEvent.consume(va)}),V.appendChild(R));var ea=document.createElement("input");ea.setAttribute("type","checkbox");ea.style.marginRight="8px";
+ea.checked=null!=m.lastPrintInclude?m.lastPrintInclude:Editor.defaultIncludeDiagram;null==F||mxClient.IS_CHROMEAPP||"draw.io"!=m.getServiceName()||(R=document.createElement("div"),R.className="geDialogCheckRow",R.appendChild(ea),y=document.createElement("span"),mxUtils.write(y,mxResources.get("includeCopyOfMyDiagram")),R.appendChild(y),mxEvent.addListener(y,"click",function(va){ea.checked=!0;mxEvent.consume(va)}),V.appendChild(R));Q.appendChild(V);y=document.createElement("div");y.style.marginTop=
+"16px";y.style.textAlign="right";y.style.whiteSpace="nowrap";m.isOffline()&&!mxClient.IS_CHROMEAPP||null!=F||y.appendChild(m.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));V=mxUtils.button(mxResources.get("cancel"),function(){m.hideDialog()});V.className="geBtn";m.editor.cancelFirst&&y.appendChild(V);PrintDialog.previewEnabled&&null==F&&(R=mxUtils.button(mxResources.get("preview"),function(){try{m.hideDialog(),S(!1)}catch(va){m.handleError(va)}}),R.className="geBtn",y.appendChild(R));
+P=null!=P?P:null!=F?"export":PrintDialog.previewEnabled?"print":"ok";P=mxUtils.button(mxResources.get(P),function(){try{m.hideDialog(),S(!0)}catch(va){m.handleError(va)}});P.className="geBtn gePrimaryBtn";y.appendChild(P);m.editor.cancelFirst||y.appendChild(V);Q.appendChild(y);if(m.editor.isChromelessView()){var qa=function(){Editor.isDarkMode()?(Q.classList.add("geDarkMode"),Q.style.colorScheme="dark"):(Q.classList.remove("geDarkMode"),Q.style.colorScheme="light")};m.addListener("darkModeChanged",
+qa);qa();var na=function(va,ra){va=ra.getProperty("dialog");Q.parentNode==va.container&&(m.editor.removeListener(na),m.removeListener(qa))};m.editor.addListener("hideDialog",na)}this.container=Q};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 m=this.image;null!=
+m&&null!=m.src&&Graph.isPageLink(m.src)&&(m={originalSrc:m.src});this.page.viewState.backgroundImage=m}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.adaptiveColors&&(this.page.viewState.adaptiveColors=this.adaptiveColors);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.adaptiveColors&&this.adaptiveColors!=this.ui.editor.graph.adaptiveColors&&(m=this.ui.editor.graph.adaptiveColors,this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=m?m:"default"),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)}})();(function(){EditorUi.VERSION="29.6.10";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;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)||/.*\.cdn\.prod\.atlassian-dev\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&
"support.draw.io"!=window.location.hostname&&"test.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=window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.enablePlantUml=EditorUi.enableLogging||
"1"==urlParams.dev;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.drawio.com/doc/faq/scratchpad";EditorUi.enableHtmlEditOption=!0;EditorUi.mermaidDiagramTypes=
"flowchart classDiagram sequenceDiagram stateDiagram mindmap graph erDiagram requirementDiagram journey gantt pie gitGraph".split(" ");EditorUi.defaultMermaidConfig={theme:"neutral",arrowMarkerAbsolute:!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:{useWidth:1E3,useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,
@@ -13230,7 +13236,7 @@ urlParams.dev)EditorUi.debug("sendReport",c);else if(EditorUi.enableLogging)try{
mxLog.debug(c.join(" "))):console.log.apply(console,c)}}catch(l){}};EditorUi.removeChildNodes=function(c){for(;null!=c.firstChild;)c.removeChild(c.firstChild)};EditorUi.embedSvgImages=function(c){c=c.getElementsByTagName("image");for(var g=[],l=0;l<c.length;l++)g.push(c[l]);for(l=0;l<g.length;l++)EditorUi.replaceSvgImage(g[l])};EditorUi.replaceSvgImage=function(c){try{var g=null;g=null==c.getAttributeNS?c.getAttribute("xlink:href"):c.getAttributeNS(mxConstants.NS_XLINK,"href");var l=EditorUi.getSvgSubtree(g);
if(null!=l&&"svg"==l.nodeName){var n=l.getAttribute("width"),u=l.getAttribute("height");l.setAttribute("x",c.getAttribute("x"));l.setAttribute("y",c.getAttribute("y"));l.setAttribute("width",c.getAttribute("width"));l.setAttribute("height",c.getAttribute("height"));l.style.fontFamily="initial";0<n&&0<u&&null==l.getAttribute("viewBox")&&l.setAttribute("viewBox","0 0 "+n+" "+u);var x=mxUtils.createElementNs(l.ownerDocument,mxConstants.NS_SVG,"g");x.appendChild(l);c.hasAttribute("transform")&&x.setAttribute("transform",
c.getAttribute("transform"));c.parentNode.replaceChild(x,c)}}catch(B){}};EditorUi.getSvgSubtree=function(c){var g=Graph.getSvgFromDataUri(c);c=null;if(null!=g){c=Graph.sanitizeNode(mxUtils.parseXml(g).documentElement);g=c.getElementsByTagName("style");if(0<g.length){var l="svg-image-"+Editor.guid();c.setAttribute("id",l);for(var n=document.implementation.createHTMLDocument(""),u=document.createElement("style"),x=0;x<g.length;x++){u.textContent=g[x].textContent;n.body.appendChild(u);for(var B="",C=
-0;C<u.sheet.cssRules.length;C++){var F=u.sheet.cssRules[C];if(null!=F.selectorText){for(var K=F.selectorText.split(","),I=0;I<K.length;I++)K[I]="#"+l+" "+K[I];F.selectorText=K.join(",")}B+=F.cssText+"\n"}g[x].textContent=B}}null!=c.style&&"light dark"==c.style.getPropertyValue("color-scheme")&&c.style.removeProperty("color-scheme");g=c.getElementsByTagName("*");for(l=0;l<g.length;l++)g[l].removeAttribute("data-cell-id")}return c};EditorUi.prototype.emptyDiagramXml='<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>';
+0;C<u.sheet.cssRules.length;C++){var E=u.sheet.cssRules[C];if(null!=E.selectorText){for(var K=E.selectorText.split(","),I=0;I<K.length;I++)K[I]="#"+l+" "+K[I];E.selectorText=K.join(",")}B+=E.cssText+"\n"}g[x].textContent=B}}null!=c.style&&"light dark"==c.style.getPropertyValue("color-scheme")&&c.style.removeProperty("color-scheme");g=c.getElementsByTagName("*");for(l=0;l<g.length;l++)g[l].removeAttribute("data-cell-id")}return c};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.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=1200;EditorUi.prototype.maxTextWidth=520;EditorUi.prototype.resampleThreshold=1E5;EditorUi.prototype.maxImageBytes=2E6;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.sidebarEnabled="0"!=urlParams.sidebar;EditorUi.prototype.insertTemplateEnabled=
!0;EditorUi.prototype.closableScratchpad=!0;EditorUi.prototype.embedMessageSource=null;EditorUi.prototype.defaultCompact=!1;EditorUi.prototype.noAutoFocus=!1;EditorUi.prototype.embedExportBorder=8;EditorUi.prototype.embedExportTheme="auto";EditorUi.prototype.embedExportBackground=null;EditorUi.prototype.shareCursorPosition=!0;EditorUi.prototype.showRemoteCursors=!0;EditorUi.prototype.createButtonContainer=function(){var c=document.createElement("div");c.className="geButtonContainer";return c};EditorUi.prototype.openLink=
@@ -13238,10 +13244,10 @@ function(c,g,l){return this.editor.graph.openLink(c,g,l)};EditorUi.prototype.sho
c;this.fireEvent(new mxEventObject("shareCursorPositionChanged"))};EditorUi.prototype.isShareCursorPosition=function(){return this.shareCursorPosition};EditorUi.prototype.setShowRemoteCursors=function(c){this.showRemoteCursors=c;this.fireEvent(new mxEventObject("showRemoteCursorsChanged"))};EditorUi.prototype.isShowRemoteCursors=function(){return this.showRemoteCursors};EditorUi.prototype.setMathEnabled=function(c){var g=this.editor.graph;g.mathEnabled=c;null!=g.view.backgroundImage&&(g.view.backgroundImage.destroy(),
g.view.backgroundImage=null);this.editor.updateGraphComponents();g.refresh();g.defaultMathEnabled=c;this.fireEvent(new mxEventObject("mathEnabledChanged"))};EditorUi.prototype.isMathEnabled=function(c){return this.editor.graph.mathEnabled};EditorUi.prototype.setAdaptiveColors=function(c){this.editor.graph.setAdaptiveColors(c);this.editor.graph.view.clear();this.fireEvent(new mxEventObject("adaptiveColorsChanged"))};EditorUi.prototype.isStandaloneApp=function(){return mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||
this.isOfflineApp()};EditorUi.prototype.isOfflineApp=function(){return"1"==urlParams.offline};EditorUi.prototype.isOffline=function(c){return this.isOfflineApp()||!navigator.onLine||!c&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(c,g,l){var n=null==c||null==g;l=null!=l?l:24;var u=new Spinner({lines:12,length:l,width:Math.round(l/
-3),radius:Math.round(l/2),rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),x=this.timeout,B=u.spin,C=null,F=null,K=mxUtils.bind(this,function(W){null!=W&&W()}),I=this;u.spin=function(W,q,z,L){L=null!=L?L:x;var N=!1;if(!this.active){var M=Date.now();null!=z&&(C=window.setTimeout(function(){u.stop();C=null;z({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:F})},L));n&&(g=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||
+3),radius:Math.round(l/2),rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),x=this.timeout,B=u.spin,C=null,E=null,K=mxUtils.bind(this,function(W){null!=W&&W()}),I=this;u.spin=function(W,q,z,L){L=null!=L?L:x;var N=!1;if(!this.active){var M=Date.now();null!=z&&(C=window.setTimeout(function(){u.stop();C=null;z({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:E})},L));n&&(g=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||
0)/2,c=document.body.clientWidth/2-2);W==document.body&&"1"==urlParams.embedInline&&(W=I.diagramContainer,c=W.scrollLeft+W.clientWidth/2,g=W.scrollTop+W.clientHeight/2);B.call(this,W);"1"==urlParams.embedInline&&null!=u.el&&(u.el.style.marginTop=W.scrollTop+"px",u.el.style.marginLeft=W.scrollLeft+"px");this.active=!0;null!=q&&(N=document.createElement("div"),N.className="geSpinnerStatus",N.setAttribute("title",q),W==document.body?(N.style.left=Math.max(0,c)+"px",N.style.top=Math.max(0,g+66)+"px"):
-(N.style.left="50%",N.style.top="50%",N.style.marginTop="70px"),"..."!=q.substring(q.length-3,q.length)&&"!"!=q.charAt(q.length-1)&&(q+="..."),N.innerText=q,W.appendChild(N),u.status=N);this.pause=mxUtils.bind(this,function(){var m=K;this.active&&(L=Math.max(0,L-(Date.now()-M)),m=mxUtils.bind(this,function(y){this.spin(W,q,z,L);if(null!=y)try{y(),F=mxUtils.bind(this,function(){this.spin(W,q,z,L);try{y()}catch(E){null!=z&&z(E)}})}catch(E){null!=z&&z(E)}}));this.stop();return m});N=!0}return N};var R=
-u.stop;u.stop=function(){R.call(this);this.active&&(this.active=!1,null!=C&&(window.clearTimeout(C),C=null),null!=u.status&&null!=u.status.parentNode&&u.status.parentNode.removeChild(u.status),u.status=null)};u.pause=function(){return K};return u};EditorUi.prototype.isCompatibleString=function(c){try{if(c=mxUtils.trim(c),"<"==c.charAt(0)){var g=mxUtils.parseXml(c),l=this.editor.extractGraphModel(g.documentElement,!0);return null!=l&&0==l.getElementsByTagName("parsererror").length}}catch(n){}return!1};
+(N.style.left="50%",N.style.top="50%",N.style.marginTop="70px"),"..."!=q.substring(q.length-3,q.length)&&"!"!=q.charAt(q.length-1)&&(q+="..."),N.innerText=q,W.appendChild(N),u.status=N);this.pause=mxUtils.bind(this,function(){var m=K;this.active&&(L=Math.max(0,L-(Date.now()-M)),m=mxUtils.bind(this,function(y){this.spin(W,q,z,L);if(null!=y)try{y(),E=mxUtils.bind(this,function(){this.spin(W,q,z,L);try{y()}catch(F){null!=z&&z(F)}})}catch(F){null!=z&&z(F)}}));this.stop();return m});N=!0}return N};var T=
+u.stop;u.stop=function(){T.call(this);this.active&&(this.active=!1,null!=C&&(window.clearTimeout(C),C=null),null!=u.status&&null!=u.status.parentNode&&u.status.parentNode.removeChild(u.status),u.status=null)};u.pause=function(){return K};return u};EditorUi.prototype.isCompatibleString=function(c){try{if(c=mxUtils.trim(c),"<"==c.charAt(0)){var g=mxUtils.parseXml(c),l=this.editor.extractGraphModel(g.documentElement,!0);return null!=l&&0==l.getElementsByTagName("parsererror").length}}catch(n){}return!1};
EditorUi.isVisioFilename=function(c){return/(\.v(dx|sdx?))($|\?)/i.test(c)||/(\.vs(x|sx?))($|\?)/i.test(c)};EditorUi.prototype.isVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&4==c.charCodeAt(3)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&6==c.charCodeAt(3))};
EditorUi.prototype.isRemoteVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||60==c.charCodeAt(0)&&63==c.charCodeAt(1)&&120==c.charCodeAt(2)&&109==c.charCodeAt(3)&&108==c.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(c){var g=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var l=
g.getFunction,n=this.editor.graph,u=this;g.getFunction=function(x){if(n.isSelectionEmpty()&&null!=u.pages&&0<u.pages.length){var B=u.getSelectedPageIndex();if(mxEvent.isShiftDown(x)){if(37==x.keyCode)return function(){0<B&&u.movePage(B,B-1)};if(38==x.keyCode)return function(){0<B&&u.movePage(B,0)};if(39==x.keyCode)return function(){B<u.pages.length-1&&u.movePage(B,B+1)};if(40==x.keyCode)return function(){B<u.pages.length-1&&u.movePage(B,u.pages.length-1)}}else if(mxEvent.isControlDown(x)||mxClient.IS_MAC&&
@@ -13250,12 +13256,12 @@ arguments):null}}return g};var f=EditorUi.prototype.extractGraphModelFromHtml;Ed
g=null!=x?mxUtils.getXml(x):""}}catch(B){}return g};EditorUi.prototype.validateFileData=function(c){if(null!=c&&0<c.length){var g=c.indexOf('<meta charset="utf-8">');0<=g&&(c=c.slice(0,g)+'<meta charset="utf-8"/>'+c.slice(g+23-1,c.length));c=Graph.zapGremlins(c)}return c};EditorUi.prototype.replaceFileData=function(c,g){EditorUi.debug("EditorUi.replaceFileData",[this],"data",[c],"patches",g);c=this.validateFileData(c);c=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var l=null!=c?this.editor.extractGraphModel(c,
!0):null;null!=l&&(c=l);if(null!=c){l=this.editor.graph;l.model.beginUpdate();try{var n=null!=this.pages?this.pages.slice():null,u=c.getElementsByTagName("diagram");if(1<u.length||1==u.length&&u[0].hasAttribute("name")){this.fileNode=c;l.defaultExportLinkTarget=c.getAttribute("linkTarget");this.pages=null!=this.pages?this.pages:[];for(var x=u.length-1;0<=x;x--){var B=this.updatePageRoot(new DiagramPage(u[x]));null==B.getName()&&B.setName(mxResources.get("pageWithNumber",[x+1]));l.model.execute(new ChangePage(this,
B,0==x?B:null,0))}}else null==this.fileNode&&(this.fileNode=c.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(c.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),l.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0))),this.editor.setGraphXml(c),null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,l.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0)));if(null!=
-n)for(x=0;x<n.length;x++)l.model.execute(new ChangePage(this,n[x],null));var C=this.getCurrentFile();null!=C&&C.fileReplaced(g)}finally{l.model.endUpdate()}}};EditorUi.prototype.createFileData=function(c,g,l,n,u,x,B,C,F,K,I,R,W){g=null!=g?g:this.editor.graph;u=null!=u?u:!1;F=null!=F?F:!0;K=null!=K?K:this.defaultCompact;I=null!=I?I:!Editor.defaultCompressed;var q=null;if(null==l||l.getMode()==App.MODE_DEVICE||l.getMode()==App.MODE_BROWSER)var z="_blank";else q=z=n;if(null==c)return"";var L=c;if("mxfile"!=
+n)for(x=0;x<n.length;x++)l.model.execute(new ChangePage(this,n[x],null));var C=this.getCurrentFile();null!=C&&C.fileReplaced(g)}finally{l.model.endUpdate()}}};EditorUi.prototype.createFileData=function(c,g,l,n,u,x,B,C,E,K,I,T,W){g=null!=g?g:this.editor.graph;u=null!=u?u:!1;E=null!=E?E:!0;K=null!=K?K:this.defaultCompact;I=null!=I?I:!Editor.defaultCompressed;var q=null;if(null==l||l.getMode()==App.MODE_DEVICE||l.getMode()==App.MODE_BROWSER)var z="_blank";else q=z=n;if(null==c)return"";var L=c;if("mxfile"!=
L.nodeName.toLowerCase()){if(I){var N=c.ownerDocument.createElement("diagram");N.setAttribute("name",mxResources.get("pageWithNumber",[1]));N.setAttribute("id",Editor.guid());N.appendChild(c)}else{N=Graph.zapGremlins(mxUtils.getXml(c));L=Graph.compress(N);if(Graph.decompress(L)!=N)return N;N=c.ownerDocument.createElement("diagram");N.setAttribute("name",mxResources.get("pageWithNumber",[1]));N.setAttribute("id",Editor.guid());mxUtils.setTextContent(N,L)}L=c.ownerDocument.createElement("mxfile");L.appendChild(N)}K?
(L=L.cloneNode(!0),L.removeAttribute("modified"),L.removeAttribute("host"),L.removeAttribute("agent"),L.removeAttribute("etag"),L.removeAttribute("userAgent"),L.removeAttribute("version"),L.removeAttribute("editor"),L.removeAttribute("type")):(L.removeAttribute("userAgent"),L.removeAttribute("modified"),L.removeAttribute("version"),L.removeAttribute("editor"),L.removeAttribute("pages"),L.removeAttribute("type"),L.removeAttribute("etag"),mxClient.IS_CHROMEAPP?L.setAttribute("host","Chrome"):EditorUi.isElectronApp?
-L.setAttribute("host","Electron"):L.setAttribute("host",window.location.hostname),1<L.getElementsByTagName("diagram").length&&null!=this.pages&&L.setAttribute("pages",this.pages.length));null!=R&&(L=L.cloneNode(!0),L.setAttribute("scale",R));null!=W&&(L=L.cloneNode(!0),L.setAttribute("border",W));c=I?mxUtils.getPrettyXml(L):mxUtils.getXml(L);if(!x&&!u&&(B||null!=l&&/(\.html)$/i.test(l.getTitle())))c=this.getHtml2(mxUtils.getXml(L),g,null!=l?l.getTitle():null,z,q);else if(x||!u&&null!=l&&/(\.svg)$/i.test(l.getTitle()))null==
-l||l.getMode()!=App.MODE_DEVICE&&l.getMode()!=App.MODE_BROWSER||(n=null),l=this.getSvgFileProperties(L),c=this.getEmbeddedSvg(c,g,n,null,C,F,q,null,null,l.scale,l.border,null,Editor.svgFileTheme);return c};EditorUi.prototype.getXmlFileData=function(c,g,l,n){c=null!=c?c:!0;g=null!=g?g:!1;l=null!=l?l:!Editor.defaultCompressed;var u=this.editor.getGraphXml(c,n);if(c&&null!=this.fileNode&&null!=this.currentPage)if(c=function(F){var K=F.getElementsByTagName("mxGraphModel"),I=0<K.length?K[0]:null;K=F;null==
-I&&l?(I=mxUtils.getNodeValue(F),0<I.length&&(I=Graph.decompress(I),null!=I&&0<I.length&&(K=F.cloneNode(!1),K.appendChild(mxUtils.parseXml(I).documentElement)))):null==I||l?K=F.cloneNode(!0):(K=F.cloneNode(!1),mxUtils.setTextContent(K,Graph.compressNode(I)));u.appendChild(K)},EditorUi.removeChildNodes(this.currentPage.node),this.currentPage.node.appendChild(u),u=this.fileNode.cloneNode(!1),g)c(this.currentPage.node);else for(g=0;g<this.pages.length;g++){var x=this.pages[g],B=x.node;if(x!=this.currentPage)if(x.needsUpdate){var C=
+L.setAttribute("host","Electron"):L.setAttribute("host",window.location.hostname),1<L.getElementsByTagName("diagram").length&&null!=this.pages&&L.setAttribute("pages",this.pages.length));null!=T&&(L=L.cloneNode(!0),L.setAttribute("scale",T));null!=W&&(L=L.cloneNode(!0),L.setAttribute("border",W));c=I?mxUtils.getPrettyXml(L):mxUtils.getXml(L);if(!x&&!u&&(B||null!=l&&/(\.html)$/i.test(l.getTitle())))c=this.getHtml2(mxUtils.getXml(L),g,null!=l?l.getTitle():null,z,q);else if(x||!u&&null!=l&&/(\.svg)$/i.test(l.getTitle()))null==
+l||l.getMode()!=App.MODE_DEVICE&&l.getMode()!=App.MODE_BROWSER||(n=null),l=this.getSvgFileProperties(L),c=this.getEmbeddedSvg(c,g,n,null,C,E,q,null,null,l.scale,l.border,null,Editor.svgFileTheme);return c};EditorUi.prototype.getXmlFileData=function(c,g,l,n){c=null!=c?c:!0;g=null!=g?g:!1;l=null!=l?l:!Editor.defaultCompressed;var u=this.editor.getGraphXml(c,n);if(c&&null!=this.fileNode&&null!=this.currentPage)if(c=function(E){var K=E.getElementsByTagName("mxGraphModel"),I=0<K.length?K[0]:null;K=E;null==
+I&&l?(I=mxUtils.getNodeValue(E),0<I.length&&(I=Graph.decompress(I),null!=I&&0<I.length&&(K=E.cloneNode(!1),K.appendChild(mxUtils.parseXml(I).documentElement)))):null==I||l?K=E.cloneNode(!0):(K=E.cloneNode(!1),mxUtils.setTextContent(K,Graph.compressNode(I)));u.appendChild(K)},EditorUi.removeChildNodes(this.currentPage.node),this.currentPage.node.appendChild(u),u=this.fileNode.cloneNode(!1),g)c(this.currentPage.node);else for(g=0;g<this.pages.length;g++){var x=this.pages[g],B=x.node;if(x!=this.currentPage)if(x.needsUpdate){var C=
new mxCodec(mxUtils.createXmlDocument());C=C.encode(new mxGraphModel(x.root));this.editor.graph.saveViewState(x.viewState,C,null,n);EditorUi.removeChildNodes(B);B.appendChild(C);delete x.needsUpdate}else n&&(this.updatePageRoot(x),null!=x.viewState.backgroundImage&&null!=x.viewState.backgroundImage.originalSrc&&(C=new mxCodec(mxUtils.createXmlDocument()),C=C.encode(new mxGraphModel(x.root)),this.editor.graph.saveViewState(x.viewState,C,null,n,x),B=B.cloneNode(!1),B.appendChild(C)));c(B)}return u};
EditorUi.prototype.anonymizeString=function(c,g){for(var l=[],n=0;n<c.length;n++){var u=c.charAt(n);0<=EditorUi.ignoredAnonymizedChars.indexOf(u)?l.push(u):isNaN(parseInt(u))?u.toLowerCase()!=u?l.push(String.fromCharCode(65+Math.round(25*Math.random()))):u.toUpperCase()!=u?l.push(String.fromCharCode(97+Math.round(25*Math.random()))):/\s/.test(u)?l.push(" "):l.push("?"):l.push(g?"0":Math.round(9*Math.random()))}return l.join("")};EditorUi.prototype.anonymizePatch=function(c){c=mxUtils.clone(c);if(null!=
c[EditorUi.DIFF_INSERT])for(var g=0;g<c[EditorUi.DIFF_INSERT].length;g++)try{var l=mxUtils.parseXml(c[EditorUi.DIFF_INSERT][g].data).documentElement.cloneNode(!1);null!=l.getAttribute("name")&&l.setAttribute("name",this.anonymizeString(l.getAttribute("name")));c[EditorUi.DIFF_INSERT][g].data=mxUtils.getXml(l)}catch(x){c[EditorUi.DIFF_INSERT][g].data=x.message}if(null!=c[EditorUi.DIFF_UPDATE]){for(var n in c[EditorUi.DIFF_UPDATE]){var u=c[EditorUi.DIFF_UPDATE][n];null!=u.name&&(u.name=this.anonymizeString(u.name));
@@ -13263,10 +13269,10 @@ null!=u.cells&&(g=mxUtils.bind(this,function(x){var B=u.cells[x];if(null!=B){for
delete c[EditorUi.DIFF_UPDATE]}return c};EditorUi.prototype.anonymizeAttributes=function(c,g){if(null!=c.attributes)for(var l=0;l<c.attributes.length;l++)"as"!=c.attributes[l].name&&c.setAttribute(c.attributes[l].name,this.anonymizeString(c.attributes[l].value,g));if(null!=c.childNodes)for(l=0;l<c.childNodes.length;l++)this.anonymizeAttributes(c.childNodes[l],g)};EditorUi.prototype.anonymizeNode=function(c,g){g=c.getElementsByTagName("mxCell");for(var l=0;l<g.length;l++)null!=g[l].getAttribute("value")&&
g[l].setAttribute("value","["+g[l].getAttribute("value").length+"]"),null!=g[l].getAttribute("xmlValue")&&g[l].setAttribute("xmlValue","["+g[l].getAttribute("xmlValue").length+"]"),null!=g[l].getAttribute("style")&&g[l].setAttribute("style","["+g[l].getAttribute("style").length+"]"),null!=g[l].parentNode&&"root"!=g[l].parentNode.nodeName&&null!=g[l].parentNode.parentNode&&(g[l].setAttribute("id",g[l].parentNode.getAttribute("id")),g[l].parentNode.parentNode.replaceChild(g[l],g[l].parentNode));return c};
EditorUi.prototype.synchronizeCurrentFile=function(c){var g=this.getCurrentFile();null!=g&&(g.savingFile?this.handleError({message:mxResources.get("busy")}):!c&&g.invalidChecksum?g.handleFileError(null,!0):this.spinner.spin(document.body,mxResources.get("updatingDocument"))&&(g.clearAutosave(),this.clearStatus(),c?g.reloadFile(mxUtils.bind(this,function(){this.spinner.stop();g.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(l){this.spinner.stop();g.handleFileError(l,!0)})):
-g.synchronizeFile(mxUtils.bind(this,function(){g.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(l){g.handleFileError(l,!0)}))))};EditorUi.prototype.getFileData=function(c,g,l,n,u,x,B,C,F,K,I,R,W){u=null!=u?u:!0;x=null!=x?x:!1;K=null!=K?K:!Editor.defaultCompressed;var q=this.editor.graph;if((g||!c&&null!=F&&/(\.svg)$/i.test(F.getTitle()))&&null!=this.pages&&this.currentPage!=this.pages[0]){var z=q.getGlobalVariable;q=this.createTemporaryGraph(q.getStylesheet());q.setBackgroundImage=
+g.synchronizeFile(mxUtils.bind(this,function(){g.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(l){g.handleFileError(l,!0)}))))};EditorUi.prototype.getFileData=function(c,g,l,n,u,x,B,C,E,K,I,T,W){u=null!=u?u:!0;x=null!=x?x:!1;K=null!=K?K:!Editor.defaultCompressed;var q=this.editor.graph;if((g||!c&&null!=E&&/(\.svg)$/i.test(E.getTitle()))&&null!=this.pages&&this.currentPage!=this.pages[0]){var z=q.getGlobalVariable;q=this.createTemporaryGraph(q.getStylesheet());q.setBackgroundImage=
this.editor.graph.setBackgroundImage;q.background=this.editor.graph.background;var L=null!=this.pages?this.pages[0]:null;null==L||this.currentPage==L?q.setBackgroundImage(this.editor.graph.backgroundImage):null!=L.viewState&&null!=L.viewState&&q.setBackgroundImage(L.viewState.backgroundImage);q.getGlobalVariable=function(N){return"page"==N&&null!=L?L.getName():"pagenumber"==N?1:z.apply(this,arguments)};document.body.appendChild(q.container);null!=L&&q.model.setRoot(L.root)}B=null!=B?B:this.getXmlFileData(u,
-x,K,I);F=null!=F?F:this.getCurrentFile();c=this.createFileData(B,q,F,window.location.href,c,g,l,n,u,C,K,R,W);q!=this.editor.graph&&q.container.parentNode.removeChild(q.container);return c};EditorUi.prototype.getHtml=function(c,g,l,n,u,x){x=null!=x?x:!0;var B=null,C=EditorUi.drawHost+"/js/embed-static.min.js";if(null!=g){B=x?g.getGraphBounds():g.getBoundingBox(g.getSelectionCells());var F=g.view.scale;x=Math.floor(B.x/F-g.view.translate.x);F=Math.floor(B.y/F-g.view.translate.y);B=g.background;null==
-u&&(g=this.getBasenames().join(";"),0<g.length&&(C=EditorUi.drawHost+"/embed.js?s="+g));c.setAttribute("x0",x);c.setAttribute("y0",F)}null!=c&&(c.setAttribute("pan","1"),c.setAttribute("zoom","1"),c.setAttribute("resize","0"),c.setAttribute("fit","0"),c.setAttribute("border","20"),c.setAttribute("links","1"),null!=n&&c.setAttribute("edit",n));null!=u&&(u=u.replace(/&/g,"&amp;"));c=null!=c?Graph.zapGremlins(mxUtils.getXml(c)):"";n=Graph.compress(c);Graph.decompress(n)!=c&&(n=encodeURIComponent(c));
+x,K,I);E=null!=E?E:this.getCurrentFile();c=this.createFileData(B,q,E,window.location.href,c,g,l,n,u,C,K,T,W);q!=this.editor.graph&&q.container.parentNode.removeChild(q.container);return c};EditorUi.prototype.getHtml=function(c,g,l,n,u,x){x=null!=x?x:!0;var B=null,C=EditorUi.drawHost+"/js/embed-static.min.js";if(null!=g){B=x?g.getGraphBounds():g.getBoundingBox(g.getSelectionCells());var E=g.view.scale;x=Math.floor(B.x/E-g.view.translate.x);E=Math.floor(B.y/E-g.view.translate.y);B=g.background;null==
+u&&(g=this.getBasenames().join(";"),0<g.length&&(C=EditorUi.drawHost+"/embed.js?s="+g));c.setAttribute("x0",x);c.setAttribute("y0",E)}null!=c&&(c.setAttribute("pan","1"),c.setAttribute("zoom","1"),c.setAttribute("resize","0"),c.setAttribute("fit","0"),c.setAttribute("border","20"),c.setAttribute("links","1"),null!=n&&c.setAttribute("edit",n));null!=u&&(u=u.replace(/&/g,"&amp;"));c=null!=c?Graph.zapGremlins(mxUtils.getXml(c)):"";n=Graph.compress(c);Graph.decompress(n)!=c&&(n=encodeURIComponent(c));
return(null==u?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=u?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==u?null!=l?"<title>"+mxUtils.htmlEntities(l)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=u?'<meta http-equiv="refresh" content="0;URL=\''+u+"'\"/>\n":"")+"</head>\n<body"+(null==u&&null!=B&&B!=mxConstants.NONE?' style="background-color:'+B+';">':">")+'\n<div class="mxgraph" style="position:relative;overflow:auto;width:100%;">\n<div style="width:1px;height:1px;overflow:hidden;">'+
n+"</div>\n</div>\n"+(null==u?'<script type="text/javascript" src="'+C+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+u+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.getHtml2=function(c,g,l,n,u){g=window.DRAWIO_VIEWER_URL||EditorUi.drawHost+"/js/viewer-static.min.js";null!=u&&(u=u.replace(/&/g,"&amp;"));c={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,
resize:!0,xml:Graph.zapGremlins(c),toolbar:"pages zoom layers lightbox"};null!=this.pages&&null!=this.currentPage&&(c.page=mxUtils.indexOf(this.pages,this.currentPage));return(null==u?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=u?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==u?null!=l?"<title>"+mxUtils.htmlEntities(l)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=u?'<meta http-equiv="refresh" content="0;URL=\''+
@@ -13274,26 +13280,26 @@ u+"'\"/>\n":"")+'<meta charset="utf-8"/>\n</head>\n<body>\n<div class="mxgraph"
function(){var c=null!=this.fileNode?this.fileNode.getAttribute("vars"):null;if(c!==this.fileVarsStr&&(this.fileVarsStr=c,this.fileVars=null,null!=c&&0<c.length))try{this.fileVars=JSON.parse(c)}catch(g){}};EditorUi.prototype.setFileData=function(c,g){c=this.validateFileData(c);this.pages=this.fileNode=this.currentPage=null;g=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var l=Editor.extractParserError(g,mxResources.get("invalidOrMissingFile"));if(l)throw EditorUi.debug("EditorUi.setFileData ParserError",
[this],"data",[c],"node",[g],"cause",[l]),Error(mxResources.get("notADiagramFile")+" ("+l+")");c=null!=g?this.editor.extractGraphModel(g,!0):null;null!=c&&(g=c);if(null!=g&&"mxfile"==g.nodeName&&(c=g.getElementsByTagName("diagram"),l={},0<c.length)){var n=this.getHashObject(),u=null;this.fileNode=g;this.editor.graph.defaultExportLinkTarget=g.getAttribute("linkTarget");this.pages=[];for(var x=0;x<c.length;x++){null==c[x].getAttribute("id")&&c[x].setAttribute("id",x);g=new DiagramPage(c[x]);null==g.getName()&&
g.setName(mxResources.get("pageWithNumber",[x+1]));this.pages.push(g);if(null==n.pageId&&null!=urlParams["page-id"]&&g.getId()==urlParams["page-id"]||null!=n.pageId&&g.getId()==n.pageId)u=g;if(null==l[g.getId()])l[g.getId()]=g;else throw Error(g.getId()+": Duplicate page ID");}this.currentPage=null!=u?u:this.pages[Math.max(0,Math.min(this.pages.length-1,urlParams.page||0))];g=this.currentPage.node}null==this.fileNode&&null!=g&&(this.fileNode=g.ownerDocument.createElement("mxfile"),this.currentPage=
-new DiagramPage(g.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),this.pages=[this.currentPage]);this.editor.setGraphXml(g);null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,this.currentPage.setDiagramModified(!1),this.scrollToPage());if(null!=urlParams["layer-ids"])try{var B=decodeURIComponent(urlParams["layer-ids"]).split(" ");g={};for(x=0;x<B.length;x++)g[B[x]]=!0;var C=this.editor.graph.getModel(),F=C.getChildren(C.root);
-for(x=0;x<F.length;x++){var K=F[x];C.setVisible(K,g[K.id]||!1)}}catch(I){}};EditorUi.prototype.fileStats=function(c,g){try{if(null!=c&&5E5<c.getSize()&&""!==c.getHash()&&"draw.io"==this.getServiceName()){var l=g.getElementsByTagName("diagram");g={};g.modified=c.getLastModifiedDate();g.fileMode=c.getMode();g.fileSize=c.getSize();g.fileHash=c.getHash();g.pages=l.length;g.redundantStencils=0;g.redundantImages=0;g.redundantSize=0;g.stencils=0;g.images=0;for(var n=g.cells=0;n<l.length;n++){var u=l[n].getElementsByTagName("mxCell");
-g.cells+=u.length;for(var x={},B=0;B<u.length;B++){var C=u[B].getAttribute("style");if(null!=C)for(var F=C.split(";"),K=0;K<F.length;K++){var I=F[K];if(I.startsWith("image=data:")||I.startsWith("shape=stencil("))null==x[I]?x[I]=1:x[I]++}}for(var R in x){var W=x[R];R.startsWith("shape=stencil(")?g.stencils+=W:g.images+=W;1<W&&(g.redundantSize+=R.length*(W-1),R.startsWith("shape=stencil(")?g.redundantStencils+=W-1:g.redundantImages+=W-1)}}EditorUi.logEvent({category:c.getMode().toUpperCase()+"-FILE-STATS-"+
+new DiagramPage(g.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),this.pages=[this.currentPage]);this.editor.setGraphXml(g);null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,this.currentPage.setDiagramModified(!1),this.scrollToPage());if(null!=urlParams["layer-ids"])try{var B=decodeURIComponent(urlParams["layer-ids"]).split(" ");g={};for(x=0;x<B.length;x++)g[B[x]]=!0;var C=this.editor.graph.getModel(),E=C.getChildren(C.root);
+for(x=0;x<E.length;x++){var K=E[x];C.setVisible(K,g[K.id]||!1)}}catch(I){}};EditorUi.prototype.fileStats=function(c,g){try{if(null!=c&&5E5<c.getSize()&&""!==c.getHash()&&"draw.io"==this.getServiceName()){var l=g.getElementsByTagName("diagram");g={};g.modified=c.getLastModifiedDate();g.fileMode=c.getMode();g.fileSize=c.getSize();g.fileHash=c.getHash();g.pages=l.length;g.redundantStencils=0;g.redundantImages=0;g.redundantSize=0;g.stencils=0;g.images=0;for(var n=g.cells=0;n<l.length;n++){var u=l[n].getElementsByTagName("mxCell");
+g.cells+=u.length;for(var x={},B=0;B<u.length;B++){var C=u[B].getAttribute("style");if(null!=C)for(var E=C.split(";"),K=0;K<E.length;K++){var I=E[K];if(I.startsWith("image=data:")||I.startsWith("shape=stencil("))null==x[I]?x[I]=1:x[I]++}}for(var T in x){var W=x[T];T.startsWith("shape=stencil(")?g.stencils+=W:g.images+=W;1<W&&(g.redundantSize+=T.length*(W-1),T.startsWith("shape=stencil(")?g.redundantStencils+=W-1:g.redundantImages+=W-1)}}EditorUi.logEvent({category:c.getMode().toUpperCase()+"-FILE-STATS-"+
c.getHash(),action:"size_"+c.getSize(),label:JSON.stringify(g)})}}catch(q){}};EditorUi.prototype.getBaseFilename=function(c){var g=this.getCurrentFile();g=null!=g&&null!=g.getTitle()?g.getTitle():this.defaultFilename;if(/(\.xml)$/i.test(g)||/(\.html)$/i.test(g)||/(\.svg)$/i.test(g)||/(\.png)$/i.test(g))g=g.substring(0,g.lastIndexOf("."));/(\.drawio)$/i.test(g)&&(g=g.substring(0,g.lastIndexOf(".")));!c&&null!=this.pages&&1<this.pages.length&&null!=this.currentPage&&null!=this.currentPage.node.getAttribute("name")&&
-0<this.currentPage.getName().length&&(g=g+"-"+this.currentPage.getName());return g};EditorUi.prototype.downloadFile=function(c,g,l,n,u,x,B,C,F,K,I,R,W,q,z,L,N){try{n=null!=n?n:this.editor.graph.isSelectionEmpty();var M=this.getBaseFilename(!u),m=M+("xml"==c||"pdf"==c&&I?".drawio":"")+"."+c;if("xml"==c){var y=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,n,u,null,null,null,g);this.saveData(m,c,y,"text/xml")}else if("html"==c)y=this.getHtml2(this.getFileData(!0),this.editor.graph,M),
-this.saveData(m,c,y,"text/html");else if("svg"!=c&&"xmlsvg"!=c||!this.spinner.spin(document.body,mxResources.get("export")))if("xmlpng"==c?m=M+".png":"jpeg"==c&&(m=M+".jpg"),"1"==urlParams.embed&&"json"==urlParams.proto&&this.embedExportProtocol){var E=this.embedMessageSource||window.opener||window.parent;this.spinner.spin(document.body,mxResources.get("exporting"))&&this.createDownloadRequest(m,c,n,"1",B,u,C,F,K,I,R,void 0,void 0,!x,W,q,z,L,N).send(mxUtils.bind(this,function(Q){this.spinner.stop();
-if(200<=Q.getStatus()&&299>=Q.getStatus()){var S=this.createLoadMessage("export");S.format=c;S.filename=m;S.data="data:application/pdf;base64,"+Q.getText();S.xml=this.getFileData(!0);E.postMessage(JSON.stringify(S),"*")}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(){this.spinner.stop();this.handleError({message:mxResources.get("errorSavingFile")})}))}else this.saveRequest(m,c,mxUtils.bind(this,function(Q,S){try{return this.createDownloadRequest(Q,
-c,n,S,B,u,C,F,K,I,R,void 0,void 0,!x,W,q,z,L,N)}catch(U){this.handleError(U)}}));else{var P=null,O=mxUtils.bind(this,function(Q){Q.length<=MAX_REQUEST_SIZE?this.saveData(m,"svg",Q,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(P)}))});if("svg"==c){var T=this.editor.graph.background;if(B||T==mxConstants.NONE)T=null;var V=this.editor.graph.getSvg(T,null,null,null,null,n);l&&this.editor.graph.addSvgShadow(V);
-this.editor.convertImages(V,mxUtils.bind(this,mxUtils.bind(this,function(Q){this.spinner.stop();O(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(Q))})))}else m=M+".svg",P=this.getFileData(!1,!0,null,mxUtils.bind(this,function(Q){this.spinner.stop();O(Q)}),n)}}catch(Q){this.handleError(Q)}};EditorUi.prototype.createDownloadRequest=function(c,g,l,n,u,x,B,C,F,K,I,R,W,q,z,L,N,M,m){c=this.downloadRequestBuilder(c,g,l,n,u,x,B,C,F,K,I,R,W,q,z,L,N,M,m);g="";for(var y in c)l=c[y],null!=l&&
-(g+=y+"="+encodeURIComponent(l)+"&");return new mxXmlRequest(EXPORT_URL,g)};EditorUi.prototype.downloadRequestBuilder=function(c,g,l,n,u,x,B,C,F,K,I,R,W,q,z,L,N,M,m){var y=this.editor.graph,E=y.getGraphBounds();l=this.getFileData(!0,null,null,null,l,0==x?!1:"xmlpng"!=g,null,null,null,!Editor.defaultCompressed,"pdf"==g);var P=null,O=null,T=null;if(!EditorUi.isElectronApp&&(E.width*E.height>MAX_AREA||l.length>MAX_REQUEST_SIZE))throw{message:mxResources.get("drawingTooLarge")};K=K?"1":"0";"pdf"==g&&
-(null!=I?(P=I.from,O=I.to):0==x&&(T="1"));"xmlpng"==g&&(K="1",g="png");if(("xmlpng"==g||"svg"==g)&&null!=this.pages&&null!=this.currentPage)for(x=0;x<this.pages.length;x++)if(this.pages[x]==this.currentPage){P=x;break}x=y.background;"png"!=g&&"pdf"!=g&&"svg"!=g||!u?u||null!=x&&x!=mxConstants.NONE||(x="#ffffff"):x=mxConstants.NONE;u={globalVars:y.getExportVariables()};null!=I&&null!=I.from&&(u.globalVars.pagenumber=I.from+1);F&&(u.grid={size:y.gridSize,steps:y.view.gridSteps,color:Editor.isDarkMode()&&
-"pdf"==g?mxGraphView.prototype.defaultGridColor:y.view.gridColor});Graph.translateDiagram&&(u.diagramLanguage=Graph.diagramLanguage);F=this.getHiddenTagsMap();null!=F&&(u.hiddenTags=F);return{format:g,from:P,to:O,allPages:T,bg:null!=x?x:mxConstants.NONE,base64:n,embedXml:K,xml:l,filename:null!=c?c:"",extras:JSON.stringify(u),scale:B,border:C,pageMargin:z,w:R&&isFinite(R)?R:null,h:W&&isFinite(W)?W:null,crop:null!=q&&q?"1":"0",fit:null!=L&&L?"1":"0",shadows:null!=m&&m?"1":"0",sheetsAcross:N,sheetsDown:M}};
+0<this.currentPage.getName().length&&(g=g+"-"+this.currentPage.getName());return g};EditorUi.prototype.downloadFile=function(c,g,l,n,u,x,B,C,E,K,I,T,W,q,z,L,N){try{n=null!=n?n:this.editor.graph.isSelectionEmpty();var M=this.getBaseFilename(!u),m=M+("xml"==c||"pdf"==c&&I?".drawio":"")+"."+c;if("xml"==c){var y=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,n,u,null,null,null,g);this.saveData(m,c,y,"text/xml")}else if("html"==c)y=this.getHtml2(this.getFileData(!0),this.editor.graph,M),
+this.saveData(m,c,y,"text/html");else if("svg"!=c&&"xmlsvg"!=c||!this.spinner.spin(document.body,mxResources.get("export")))if("xmlpng"==c?m=M+".png":"jpeg"==c&&(m=M+".jpg"),"1"==urlParams.embed&&"json"==urlParams.proto&&this.embedExportProtocol){var F=this.embedMessageSource||window.opener||window.parent;this.spinner.spin(document.body,mxResources.get("exporting"))&&this.createDownloadRequest(m,c,n,"1",B,u,C,E,K,I,T,void 0,void 0,!x,W,q,z,L,N).send(mxUtils.bind(this,function(Q){this.spinner.stop();
+if(200<=Q.getStatus()&&299>=Q.getStatus()){var R=this.createLoadMessage("export");R.format=c;R.filename=m;R.data="data:application/pdf;base64,"+Q.getText();R.xml=this.getFileData(!0);F.postMessage(JSON.stringify(R),"*")}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(){this.spinner.stop();this.handleError({message:mxResources.get("errorSavingFile")})}))}else this.saveRequest(m,c,mxUtils.bind(this,function(Q,R){try{return this.createDownloadRequest(Q,
+c,n,R,B,u,C,E,K,I,T,void 0,void 0,!x,W,q,z,L,N)}catch(U){this.handleError(U)}}));else{var P=null,O=mxUtils.bind(this,function(Q){Q.length<=MAX_REQUEST_SIZE?this.saveData(m,"svg",Q,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(P)}))});if("svg"==c){var S=this.editor.graph.background;if(B||S==mxConstants.NONE)S=null;var V=this.editor.graph.getSvg(S,null,null,null,null,n);l&&this.editor.graph.addSvgShadow(V);
+this.editor.convertImages(V,mxUtils.bind(this,mxUtils.bind(this,function(Q){this.spinner.stop();O(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(Q))})))}else m=M+".svg",P=this.getFileData(!1,!0,null,mxUtils.bind(this,function(Q){this.spinner.stop();O(Q)}),n)}}catch(Q){this.handleError(Q)}};EditorUi.prototype.createDownloadRequest=function(c,g,l,n,u,x,B,C,E,K,I,T,W,q,z,L,N,M,m){c=this.downloadRequestBuilder(c,g,l,n,u,x,B,C,E,K,I,T,W,q,z,L,N,M,m);g="";for(var y in c)l=c[y],null!=l&&
+(g+=y+"="+encodeURIComponent(l)+"&");return new mxXmlRequest(EXPORT_URL,g)};EditorUi.prototype.downloadRequestBuilder=function(c,g,l,n,u,x,B,C,E,K,I,T,W,q,z,L,N,M,m){var y=this.editor.graph,F=y.getGraphBounds();l=this.getFileData(!0,null,null,null,l,0==x?!1:"xmlpng"!=g,null,null,null,!Editor.defaultCompressed,"pdf"==g);var P=null,O=null,S=null;if(!EditorUi.isElectronApp&&(F.width*F.height>MAX_AREA||l.length>MAX_REQUEST_SIZE))throw{message:mxResources.get("drawingTooLarge")};K=K?"1":"0";"pdf"==g&&
+(null!=I?(P=I.from,O=I.to):0==x&&(S="1"));"xmlpng"==g&&(K="1",g="png");if(("xmlpng"==g||"svg"==g)&&null!=this.pages&&null!=this.currentPage)for(x=0;x<this.pages.length;x++)if(this.pages[x]==this.currentPage){P=x;break}x=y.background;"png"!=g&&"pdf"!=g&&"svg"!=g||!u?u||null!=x&&x!=mxConstants.NONE||(x="#ffffff"):x=mxConstants.NONE;u={globalVars:y.getExportVariables()};null!=I&&null!=I.from&&(u.globalVars.pagenumber=I.from+1);E&&(u.grid={size:y.gridSize,steps:y.view.gridSteps,color:Editor.isDarkMode()&&
+"pdf"==g?mxGraphView.prototype.defaultGridColor:y.view.gridColor});Graph.translateDiagram&&(u.diagramLanguage=Graph.diagramLanguage);E=this.getHiddenTagsMap();null!=E&&(u.hiddenTags=E);return{format:g,from:P,to:O,allPages:S,bg:null!=x?x:mxConstants.NONE,base64:n,embedXml:K,xml:l,filename:null!=c?c:"",extras:JSON.stringify(u),scale:B,border:C,pageMargin:z,w:T&&isFinite(T)?T:null,h:W&&isFinite(W)?W:null,crop:null!=q&&q?"1":"0",fit:null!=L&&L?"1":"0",shadows:null!=m&&m?"1":"0",sheetsAcross:N,sheetsDown:M}};
EditorUi.prototype.getHiddenTagsMap=function(){var c=this.editor.graph,g={},l=!1;if(null!=this.pages)for(var n=0;n<this.pages.length;n++){var u=this.pages[n],x=u==this.currentPage?c.hiddenTags:null!=u.viewState?u.viewState.hiddenTags:null;null!=x&&0<x.length&&(g[u.getId()]=x,l=!0)}else null!=c.hiddenTags&&0<c.hiddenTags.length&&(g[0]=c.hiddenTags,l=!0);return l?g:null};EditorUi.prototype.setMode=function(c,g){this.mode=c};EditorUi.prototype.getDiagramId=function(){var c=window.location.hash;null!=
c&&0<c.length&&(c=c.substring(1));if(null!=c&&1<c.length){var g=c.indexOf("#");0<=g&&(c=c.substring(0,g))}return c};EditorUi.prototype.getHashObject=function(){var c=window.location.hash,g={};if(null!=c&&0<c.length){var l=c.lastIndexOf("#");if(0<l){c=decodeURIComponent(c.substring(l+1));try{g=JSON.parse(c)}catch(n){}}}return g};EditorUi.prototype.updateHashObject=function(){if(null!=this.currentFile&&null!=this.currentPage&&""!=this.currentFile.getHash()){var c=this.getHashObject();c.pageId=this.currentPage.getId();
this.setHashObject(c)}else this.setHashObject(null)};EditorUi.prototype.setHashObject=function(c){if(Editor.enableHashObjects){var g=window.location.hash;if(null==g||""==g)g="#";var l=g.lastIndexOf("#");0<l&&(g=g.substring(0,l));try{null==c||mxUtils.isEmptyObject(c)||(g=g+"#"+encodeURIComponent(JSON.stringify(c)))}catch(n){}0<l&&0<g.lastIndexOf("#")?window.location.hash=g:window.location.replace(g)}};EditorUi.prototype.loadDescriptor=function(c,g,l){var n=window.location.hash,u=mxUtils.bind(this,
-function(B){var C=null!=c.data?c.data:"";null!=B&&0<B.length&&(0<C.length&&(C+="\n"),C+=B);B=new LocalFile(this,"csv"!=c.format&&0<C.length?C:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);B.getHash=function(){return n};this.fileLoaded(B);"csv"==c.format&&this.importCsv(C,mxUtils.bind(this,function(W){this.editor.undoManager.clear();this.editor.setModified(!1);this.clearStatus()}));if(null!=c.update){var F=null!=c.interval?parseInt(c.interval):
-6E4,K=null,I=mxUtils.bind(this,function(){var W=this.currentPage;mxUtils.post(c.update,"xml="+encodeURIComponent(mxUtils.getXml(this.editor.getGraphXml())),mxUtils.bind(this,function(q){W===this.currentPage&&(200<=q.getStatus()&&300>=q.getStatus()?(this.updateDiagram(q.getText()),R()):this.handleError({message:mxResources.get("error")+" "+q.getStatus()}))}),mxUtils.bind(this,function(q){this.handleError(q)}))}),R=mxUtils.bind(this,function(){window.clearTimeout(K);K=window.setTimeout(I,F)});this.editor.addListener("pageSelected",
-mxUtils.bind(this,function(){R();I()}));R();I()}null!=g&&g()});if(null!=c.url&&0<c.url.length){var x=this.editor.getProxiedUrl(c.url);this.editor.loadUrl(x,mxUtils.bind(this,function(B){u(B)}),mxUtils.bind(this,function(B){null!=l&&l(B)}))}else u("")};EditorUi.prototype.updateDiagram=function(c){function g(y){var E=new mxCellOverlay(y.image||u.warningImage,y.tooltip,y.align,y.valign,y.offset);E.addListener(mxEvent.CLICK,function(P,O){n.alert(y.tooltip)});return E}var l=null,n=this;if(null!=c&&0<c.length&&
-(l=mxUtils.parseXml(c),c=null!=l?l.documentElement:null,null!=c&&"updates"==c.nodeName)){var u=this.editor.graph,x=u.getModel();x.beginUpdate();var B=null;try{for(c=c.firstChild;null!=c;){if("update"==c.nodeName){var C=x.getCell(c.getAttribute("id"));if(null!=C){try{var F=c.getAttribute("value");if(null!=F){var K=mxUtils.parseXml(F).documentElement;if(null!=K)if("1"==K.getAttribute("replace-value"))x.setValue(C,K);else for(var I=K.attributes,R=0;R<I.length;R++)u.setAttributeForCell(C,I[R].nodeName,
-0<I[R].nodeValue.length?I[R].nodeValue:null)}}catch(y){null!=window.console&&console.log("Error in value for "+C.id+": "+y)}try{var W=c.getAttribute("style");null!=W&&u.model.setStyle(C,W)}catch(y){null!=window.console&&console.log("Error in style for "+C.id+": "+y)}try{var q=c.getAttribute("icon");if(null!=q){var z=0<q.length?JSON.parse(q):null;null!=z&&z.append||u.removeCellOverlays(C);null!=z&&u.addCellOverlay(C,g(z))}}catch(y){null!=window.console&&console.log("Error in icon for "+C.id+": "+y)}try{var L=
+function(B){var C=null!=c.data?c.data:"";null!=B&&0<B.length&&(0<C.length&&(C+="\n"),C+=B);B=new LocalFile(this,"csv"!=c.format&&0<C.length?C:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);B.getHash=function(){return n};this.fileLoaded(B);"csv"==c.format&&this.importCsv(C,mxUtils.bind(this,function(W){this.editor.undoManager.clear();this.editor.setModified(!1);this.clearStatus()}));if(null!=c.update){var E=null!=c.interval?parseInt(c.interval):
+6E4,K=null,I=mxUtils.bind(this,function(){var W=this.currentPage;mxUtils.post(c.update,"xml="+encodeURIComponent(mxUtils.getXml(this.editor.getGraphXml())),mxUtils.bind(this,function(q){W===this.currentPage&&(200<=q.getStatus()&&300>=q.getStatus()?(this.updateDiagram(q.getText()),T()):this.handleError({message:mxResources.get("error")+" "+q.getStatus()}))}),mxUtils.bind(this,function(q){this.handleError(q)}))}),T=mxUtils.bind(this,function(){window.clearTimeout(K);K=window.setTimeout(I,E)});this.editor.addListener("pageSelected",
+mxUtils.bind(this,function(){T();I()}));T();I()}null!=g&&g()});if(null!=c.url&&0<c.url.length){var x=this.editor.getProxiedUrl(c.url);this.editor.loadUrl(x,mxUtils.bind(this,function(B){u(B)}),mxUtils.bind(this,function(B){null!=l&&l(B)}))}else u("")};EditorUi.prototype.updateDiagram=function(c){function g(y){var F=new mxCellOverlay(y.image||u.warningImage,y.tooltip,y.align,y.valign,y.offset);F.addListener(mxEvent.CLICK,function(P,O){n.alert(y.tooltip)});return F}var l=null,n=this;if(null!=c&&0<c.length&&
+(l=mxUtils.parseXml(c),c=null!=l?l.documentElement:null,null!=c&&"updates"==c.nodeName)){var u=this.editor.graph,x=u.getModel();x.beginUpdate();var B=null;try{for(c=c.firstChild;null!=c;){if("update"==c.nodeName){var C=x.getCell(c.getAttribute("id"));if(null!=C){try{var E=c.getAttribute("value");if(null!=E){var K=mxUtils.parseXml(E).documentElement;if(null!=K)if("1"==K.getAttribute("replace-value"))x.setValue(C,K);else for(var I=K.attributes,T=0;T<I.length;T++)u.setAttributeForCell(C,I[T].nodeName,
+0<I[T].nodeValue.length?I[T].nodeValue:null)}}catch(y){null!=window.console&&console.log("Error in value for "+C.id+": "+y)}try{var W=c.getAttribute("style");null!=W&&u.model.setStyle(C,W)}catch(y){null!=window.console&&console.log("Error in style for "+C.id+": "+y)}try{var q=c.getAttribute("icon");if(null!=q){var z=0<q.length?JSON.parse(q):null;null!=z&&z.append||u.removeCellOverlays(C);null!=z&&u.addCellOverlay(C,g(z))}}catch(y){null!=window.console&&console.log("Error in icon for "+C.id+": "+y)}try{var L=
c.getAttribute("geometry");if(null!=L){L=JSON.parse(L);var N=u.getCellGeometry(C);if(null!=N){N=N.clone();for(key in L){var M=parseFloat(L[key]);"dx"==key?N.x+=M:"dy"==key?N.y+=M:"dw"==key?N.width+=M:"dh"==key?N.height+=M:N[key]=parseFloat(L[key])}u.model.setGeometry(C,N)}}}catch(y){null!=window.console&&console.log("Error in icon for "+C.id+": "+y)}}}else if("model"==c.nodeName){for(var m=c.firstChild;null!=m&&m.nodeType!=mxConstants.NODETYPE_ELEMENT;)m=m.nextSibling;null!=m&&(new mxCodec(c.firstChild)).decode(m,
x)}else if("view"==c.nodeName){if(c.hasAttribute("scale")&&(u.view.scale=parseFloat(c.getAttribute("scale"))),c.hasAttribute("dx")||c.hasAttribute("dy"))u.view.translate=new mxPoint(parseFloat(c.getAttribute("dx")||0),parseFloat(c.getAttribute("dy")||0))}else"fit"==c.nodeName&&(B=c.hasAttribute("max-scale")?parseFloat(c.getAttribute("max-scale")):1);c=c.nextSibling}}finally{x.endUpdate()}null!=B&&this.chromelessResize&&this.chromelessResize(!0,B)}return l};EditorUi.prototype.getCopyFilename=function(c,
g){var l=null!=c&&null!=c.getTitle()?c.getTitle():this.defaultFilename;c="";var n=l.lastIndexOf(".");0<=n&&(c=l.substring(n),l=l.substring(0,n));if(g){g=l;var u=new Date;l=u.getFullYear();n=u.getMonth()+1;var x=u.getDate(),B=u.getHours(),C=u.getMinutes();u=u.getSeconds();l=g+(" "+(l+"-"+n+"-"+x+"-"+B+"-"+C+"-"+u))}return l=mxResources.get("copyOf",[l])+c};EditorUi.prototype.logIfModified=function(c,g){try{null!=c&&g&&EditorUi.debug("File.closed",[c])}catch(l){}};EditorUi.prototype.fileLoaded=function(c,
@@ -13302,9 +13308,9 @@ this.editor.undoManager.clear();this.setBackgroundImage(null);!g&&null!=window.l
this.descriptorChangedListener);c.open();delete this.openingFile;this.setGraphEnabled(!0);this.setMode(c.getMode());this.editor.graph.model.prefix=Editor.guid()+"-";this.editor.undoManager.clear();this.descriptorChanged();this.updateUi();c.isEditable()?c.isModified()?c.addUnsavedStatus():this.clearStatus():this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus('<div class="geStatusBox" title="'+mxUtils.htmlEntities(mxResources.get("readOnly"))+'">'+mxUtils.htmlEntities(mxResources.get("readOnly"))+
"</div>")}));!this.editor.isChromelessView()||this.editor.editable?(this.editor.graph.selectUnlockedLayer(),this.showLayersDialog(),this.restoreLibraries(),window.self===window.top||this.noAutoFocus||window.focus()):this.editor.graph.isLightboxView()&&this.lightboxFit();this.chromelessResize&&this.chromelessResize();null!=l&&l();this.editor.fireEvent(new mxEventObject("fileLoaded"));u=!0;if(!this.isOffline()&&null!=c.getMode()){var B="1"==urlParams.sketch?"sketch":uiTheme;if(null==B)B="default";else if("sketch"==
B||"min"==B)B+=Editor.isDarkMode()?"-dark":"-light";EditorUi.logEvent({category:c.getMode().toUpperCase()+"-OPEN-FILE-"+c.getHash(),action:"size_"+c.getSize(),label:"autosave_"+(this.editor.autosave?"on":"off")+"_theme_"+B})}EditorUi.debug("File.opened",[c]);"1"==urlParams.viewerOnlyMsg&&this.showAlert(mxResources.get("viewerOnlyMsg"));if(this.editor.editable&&this.mode==c.getMode()&&c.getMode()!=App.MODE_DEVICE&&null!=c.getMode())try{this.addRecent({id:c.getHash(),title:c.getTitle(),mode:c.getMode()})}catch(C){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+
-1),mxSettings.save()}catch(C){}}catch(C){this.fileLoadedError=C;if(null!=c)try{c.close()}catch(F){}c=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=n?this.fileLoaded(n)||x():x()});g?c():(null!=C.fallbackFileData&&(C.alternateAction={label:mxResources.get("makeCopy"),funct:mxUtils.bind(this,function(){this.hideDialog();var F=new LocalFile(this,C.fallbackFileData,this.defaultFilename,
-!0);this.fileLoaded(F)})}),this.handleError(C,mxResources.get("errorLoadingFile"),c,!0,null,null,!0))}else x();return u};EditorUi.prototype.getHashValueForPages=function(c,g){var l=0,n=new mxGraphModel,u=new mxCodec;null!=g&&(g.byteCount=0,g.attrCount=0,g.eltCount=0,g.nodeCount=0);for(var x=0;x<c.length;x++){this.updatePageRoot(c[x]);var B=c[x].node.cloneNode(!1);B.removeAttribute("name");n.root=c[x].root;var C=u.encode(n);this.editor.graph.saveViewState(c[x].viewState,C,!0);C.removeAttribute("pageWidth");
-C.removeAttribute("pageHeight");B.appendChild(C);null!=g&&(g.eltCount+=B.getElementsByTagName("*").length,g.nodeCount+=B.getElementsByTagName("mxCell").length);l=(l<<5)-l+this.hashValue(B,function(F,K,I,R){return!R||"mxGeometry"!=F.nodeName&&"mxPoint"!=F.nodeName||"x"!=K&&"y"!=K&&"width"!=K&&"height"!=K?R&&"mxCell"==F.nodeName&&"previous"==K?null:I:Math.round(I)},g)<<0}return l};EditorUi.prototype.hashValue=function(c,g,l){var n=0;if(null!=c&&"object"===typeof c&&"number"===typeof c.nodeType&&"string"===
+1),mxSettings.save()}catch(C){}}catch(C){this.fileLoadedError=C;if(null!=c)try{c.close()}catch(E){}c=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=n?this.fileLoaded(n)||x():x()});g?c():(null!=C.fallbackFileData&&(C.alternateAction={label:mxResources.get("makeCopy"),funct:mxUtils.bind(this,function(){this.hideDialog();var E=new LocalFile(this,C.fallbackFileData,this.defaultFilename,
+!0);this.fileLoaded(E)})}),this.handleError(C,mxResources.get("errorLoadingFile"),c,!0,null,null,!0))}else x();return u};EditorUi.prototype.getHashValueForPages=function(c,g){var l=0,n=new mxGraphModel,u=new mxCodec;null!=g&&(g.byteCount=0,g.attrCount=0,g.eltCount=0,g.nodeCount=0);for(var x=0;x<c.length;x++){this.updatePageRoot(c[x]);var B=c[x].node.cloneNode(!1);B.removeAttribute("name");n.root=c[x].root;var C=u.encode(n);this.editor.graph.saveViewState(c[x].viewState,C,!0);C.removeAttribute("pageWidth");
+C.removeAttribute("pageHeight");B.appendChild(C);null!=g&&(g.eltCount+=B.getElementsByTagName("*").length,g.nodeCount+=B.getElementsByTagName("mxCell").length);l=(l<<5)-l+this.hashValue(B,function(E,K,I,T){return!T||"mxGeometry"!=E.nodeName&&"mxPoint"!=E.nodeName||"x"!=K&&"y"!=K&&"width"!=K&&"height"!=K?T&&"mxCell"==E.nodeName&&"previous"==K?null:I:Math.round(I)},g)<<0}return l};EditorUi.prototype.hashValue=function(c,g,l){var n=0;if(null!=c&&"object"===typeof c&&"number"===typeof c.nodeType&&"string"===
typeof c.nodeName&&"function"===typeof c.getAttribute){null!=c.nodeName&&(n^=this.hashValue(c.nodeName,g,l));if(null!=c.attributes){null!=l&&(l.attrCount+=c.attributes.length);for(var u=0;u<c.attributes.length;u++){var x=c.attributes[u].name,B=null!=g?g(c,x,c.attributes[u].value,!0):c.attributes[u].value;null!=B&&(n^=this.hashValue(x,g,l)+this.hashValue(B,g,l))}}if(null!=c.childNodes)for(u=0;u<c.childNodes.length;u++)n=(n<<5)-n+this.hashValue(c.childNodes[u],g,l)<<0}else if(null!=c&&"function"!==
typeof c){c=String(c);g=0;null!=l&&(l.byteCount+=c.length);for(u=0;u<c.length;u++)g=(g<<5)-g+c.charCodeAt(u)<<0;n^=g}return n};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(c,g,l,n,u,x,B){};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(c){if(null==c||"<mxfile"==c.substring(0,7))c=this.emptyLibraryXml;this.loadLibrary(new StorageLibrary(this,c,".scratchpad"))})):this.closeLibrary(this.scratchpad))};EditorUi.prototype.createLibraryDataFromImages=function(c){if(!Editor.defaultCompressed)for(var g=0;g<c.length;g++)null!=c[g].xml&&"<"!=c[g].xml.charAt(0)&&(c[g].xml=mxUtils.trim(Graph.decompress(c[g].xml)));g=mxUtils.createXmlDocument();var l=g.createElement("mxlibrary");mxUtils.setTextContent(l,
@@ -13313,273 +13319,273 @@ function(c,g){var l=this.sidebar.getEntryContainer();if(!this.sidebar.appendCust
this.libraryLoaded(c,n,l.documentElement.getAttribute("title"),g,l.documentElement.getAttribute("tags"))}else throw{message:mxResources.get("notALibraryFile")};};EditorUi.prototype.getLibraryStorageHint=function(c){return""};EditorUi.prototype.showSidebar=function(){null!=this.sidebarWindow?this.sidebarWindow.window.setVisible(!0):this.toggleShapesPanel(!0)};EditorUi.prototype.showSearchWindow=function(c,g){var l=c?"findReplace":"find",n=l+"Window";if(null==this[n]){var u="min"==Editor.currentTheme||
"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme,x=c?u?330:300:240;this[n]=new FindWindow(this,document.body.offsetWidth-(x+20),100,x,c?u?304:288:180,c);this[n].window.addListener("show",function(){this.fireEvent(new mxEventObject(l))});this[n].window.addListener("hide",function(){this.fireEvent(new mxEventObject(l))});this[n].window.setVisible(!0)}else null==g&&this[n].window.setVisible(!this[n].window.isVisible());null!=g&&(this[n].doSearch(g),this[n].window.setVisible(!0))};EditorUi.prototype.libraryLoaded=
function(c,g,l,n,u){if(null!=this.sidebar){c.constructor!=LocalLibrary&&mxSettings.addCustomLibrary(c.getHash());var x=null;if(c.constructor!=StorageLibrary||".scratchpad"!=c.title){null==this.openLibraries&&(this.openLibraries=[]);for(var B=0;B<this.openLibraries.length;B++)if(this.openLibraries[B].file.getHash()==c.getHash()){mxUtils.remove(this.openLibraries[B],this.openLibraries);break}x={file:c,images:g,title:l,expand:n};this.openLibraries.push(x)}else this.scratchpad=c;B=this.sidebar.palettes[c.getHash()];
-B=null!=B?B[B.length-1].nextSibling:null;this.removeLibrarySidebar(c.getHash());var C=null,F=mxUtils.bind(this,function(m,y){0==m.length&&c.isEditable()?(null==C&&(C=document.createElement("div"),C.className="geDropTarget",mxUtils.write(C,mxResources.get("dragElementsHere"))),y.appendChild(C)):this.addLibraryEntries(m,y)});null!=this.sidebar&&null!=g&&(this.sidebar.setCurrentSearchEntryLibrary(c.getHash(),c.getHash()),this.sidebar.addEntries(g,u),this.sidebar.setCurrentSearchEntryLibrary());null==
-l&&(l=c.getTitle(),null!=l&&/(\.xml)$/i.test(l)&&(l=l.substring(0,l.lastIndexOf("."))));var K=this.sidebar.addPalette(c.getHash(),l,null!=n?n:!0,mxUtils.bind(this,function(m){F(g,m)}));null!=x&&(x.div=K);this.repositionLibrary(B,"L.scratchpad"!=c.getHash());n=K.parentNode.previousSibling;l=n.getAttribute("title");null!=l&&0<l.length&&".scratchpad"!=c.title&&n.setAttribute("title",this.getLibraryStorageHint(c)+"\n"+l);var I=document.createElement("div");I.style.backgroundColor="inherit";n.style.position=
-"relative";var R=document.createElement("img");R.className="geLibraryButton";R.setAttribute("src",Editor.crossImage);R.setAttribute("title",mxResources.get("close"));var W=null;if(".scratchpad"!=c.title||this.closableScratchpad)I.appendChild(R),mxEvent.addListener(R,"click",mxUtils.bind(this,function(m){if(!mxEvent.isConsumed(m)){var y=mxUtils.bind(this,function(){null!=x&&mxUtils.remove(x,this.openLibraries);this.closeLibrary(c)});null!=W?this.confirm(mxResources.get("allChangesLost"),null,y,mxResources.get("cancel"),
-mxResources.get("discardChanges")):y();mxEvent.consume(m)}}));if(c.isEditable()){var q=this.editor.graph,z=null;l=mxUtils.bind(this,function(m){this.showLibraryDialog(c.getTitle(),K,g,c,c.getMode());mxEvent.consume(m)});var L=mxUtils.bind(this,function(m){c.setModified(!0);c.isAutosave()?(null!=z&&null!=z.parentNode&&z.parentNode.removeChild(z),z=R.cloneNode(!1),z.setAttribute("src",Editor.spinImage),z.setAttribute("title",mxResources.get("saving")),z.style.cursor="default",z.style.marginRight="2px",
-z.style.marginTop="-2px",I.insertBefore(z,I.firstChild),this.saveLibrary(c.getTitle(),g,c,c.getMode(),!0,!0,function(){null!=z&&null!=z.parentNode&&z.parentNode.removeChild(z)})):null==W&&(W=R.cloneNode(!1),W.setAttribute("src",Editor.saveImage),W.setAttribute("title",mxResources.get("save")),I.insertBefore(W,I.firstChild),mxEvent.addListener(W,"click",mxUtils.bind(this,function(y){this.saveLibrary(c.getTitle(),g,c,c.getMode(),c.constructor==LocalLibrary,!0,function(){null==W||c.isModified()||(W.parentNode.removeChild(W),
-W=null)});mxEvent.consume(y)})))}),N=mxUtils.bind(this,function(m,y,E,P){m=q.cloneCells(mxUtils.sortCells(q.model.getTopmostCells(m)));for(var O=0;O<m.length;O++){var T=q.getCellGeometry(m[O]);null!=T&&T.translate(-y.x,-y.y)}K.appendChild(this.sidebar.createVertexTemplateFromCells(m,y.width,y.height,P||"",!0,null,!1));m=mxUtils.getXml(this.editor.graph.encodeCells(m));Editor.defaultCompressed&&(m=Graph.compress(m));y={xml:m,w:y.width,h:y.height};null!=P&&(y.title=P);g.push(y);L(E);null!=C&&null!=
-C.parentNode&&0<g.length&&(C.parentNode.removeChild(C),C=null)}),M=mxUtils.bind(this,function(m){if(q.isSelectionEmpty())q.getRubberband().isActive()?(q.getRubberband().execute(m),q.getRubberband().reset()):null!=m&&mxEvent.getSource(m).classList.contains("geLibraryButton")&&this.showError(mxResources.get("error"),mxResources.get("nothingIsSelected"),mxResources.get("ok"));else{var y=q.getSelectionCells(),E=q.view.getBounds(y);if(null!=E&&0<E.width&&0<E.height){var P=q.view.scale;E.x/=P;E.y/=P;E.width/=
-P;E.height/=P;E.x-=q.view.translate.x;E.y-=q.view.translate.y;N(y,E)}else this.showError(mxResources.get("error"),mxResources.get("invalidSel"),mxResources.get("ok"))}mxEvent.consume(m)});mxEvent.addGestureListeners(K,function(){},mxUtils.bind(this,function(m){q.isMouseDown&&null!=q.panningManager&&null!=q.graphHandler.first&&(q.graphHandler.suspend(),null!=q.graphHandler.hint&&(q.graphHandler.hint.style.visibility="hidden"),K.style.backgroundColor="light-dark(#fefefe, #000000)",K.style.cursor="copy",
+B=null!=B?B[B.length-1].nextSibling:null;this.removeLibrarySidebar(c.getHash());var C=null,E=mxUtils.bind(this,function(m,y){0==m.length&&c.isEditable()?(null==C&&(C=document.createElement("div"),C.className="geDropTarget",mxUtils.write(C,mxResources.get("dragElementsHere"))),y.appendChild(C)):this.addLibraryEntries(m,y)});null!=this.sidebar&&null!=g&&(this.sidebar.setCurrentSearchEntryLibrary(c.getHash(),c.getHash()),this.sidebar.addEntries(g,u),this.sidebar.setCurrentSearchEntryLibrary());null==
+l&&(l=c.getTitle(),null!=l&&/(\.xml)$/i.test(l)&&(l=l.substring(0,l.lastIndexOf("."))));var K=this.sidebar.addPalette(c.getHash(),l,null!=n?n:!0,mxUtils.bind(this,function(m){E(g,m)}));null!=x&&(x.div=K);this.repositionLibrary(B,"L.scratchpad"!=c.getHash());n=K.parentNode.previousSibling;l=n.getAttribute("title");null!=l&&0<l.length&&".scratchpad"!=c.title&&n.setAttribute("title",this.getLibraryStorageHint(c)+"\n"+l);var I=document.createElement("div");I.style.backgroundColor="inherit";n.style.position=
+"relative";var T=document.createElement("img");T.className="geLibraryButton";T.setAttribute("src",Editor.crossImage);T.setAttribute("title",mxResources.get("close"));var W=null;if(".scratchpad"!=c.title||this.closableScratchpad)I.appendChild(T),mxEvent.addListener(T,"click",mxUtils.bind(this,function(m){if(!mxEvent.isConsumed(m)){var y=mxUtils.bind(this,function(){null!=x&&mxUtils.remove(x,this.openLibraries);this.closeLibrary(c)});null!=W?this.confirm(mxResources.get("allChangesLost"),null,y,mxResources.get("cancel"),
+mxResources.get("discardChanges")):y();mxEvent.consume(m)}}));if(c.isEditable()){var q=this.editor.graph,z=null;l=mxUtils.bind(this,function(m){this.showLibraryDialog(c.getTitle(),K,g,c,c.getMode());mxEvent.consume(m)});var L=mxUtils.bind(this,function(m){c.setModified(!0);c.isAutosave()?(null!=z&&null!=z.parentNode&&z.parentNode.removeChild(z),z=T.cloneNode(!1),z.setAttribute("src",Editor.spinImage),z.setAttribute("title",mxResources.get("saving")),z.style.cursor="default",z.style.marginRight="2px",
+z.style.marginTop="-2px",I.insertBefore(z,I.firstChild),this.saveLibrary(c.getTitle(),g,c,c.getMode(),!0,!0,function(){null!=z&&null!=z.parentNode&&z.parentNode.removeChild(z)})):null==W&&(W=T.cloneNode(!1),W.setAttribute("src",Editor.saveImage),W.setAttribute("title",mxResources.get("save")),I.insertBefore(W,I.firstChild),mxEvent.addListener(W,"click",mxUtils.bind(this,function(y){this.saveLibrary(c.getTitle(),g,c,c.getMode(),c.constructor==LocalLibrary,!0,function(){null==W||c.isModified()||(W.parentNode.removeChild(W),
+W=null)});mxEvent.consume(y)})))}),N=mxUtils.bind(this,function(m,y,F,P){m=q.cloneCells(mxUtils.sortCells(q.model.getTopmostCells(m)));for(var O=0;O<m.length;O++){var S=q.getCellGeometry(m[O]);null!=S&&S.translate(-y.x,-y.y)}K.appendChild(this.sidebar.createVertexTemplateFromCells(m,y.width,y.height,P||"",!0,null,!1));m=mxUtils.getXml(this.editor.graph.encodeCells(m));Editor.defaultCompressed&&(m=Graph.compress(m));y={xml:m,w:y.width,h:y.height};null!=P&&(y.title=P);g.push(y);L(F);null!=C&&null!=
+C.parentNode&&0<g.length&&(C.parentNode.removeChild(C),C=null)}),M=mxUtils.bind(this,function(m){if(q.isSelectionEmpty())q.getRubberband().isActive()?(q.getRubberband().execute(m),q.getRubberband().reset()):null!=m&&mxEvent.getSource(m).classList.contains("geLibraryButton")&&this.showError(mxResources.get("error"),mxResources.get("nothingIsSelected"),mxResources.get("ok"));else{var y=q.getSelectionCells(),F=q.view.getBounds(y);if(null!=F&&0<F.width&&0<F.height){var P=q.view.scale;F.x/=P;F.y/=P;F.width/=
+P;F.height/=P;F.x-=q.view.translate.x;F.y-=q.view.translate.y;N(y,F)}else this.showError(mxResources.get("error"),mxResources.get("invalidSel"),mxResources.get("ok"))}mxEvent.consume(m)});mxEvent.addGestureListeners(K,function(){},mxUtils.bind(this,function(m){q.isMouseDown&&null!=q.panningManager&&null!=q.graphHandler.first&&(q.graphHandler.suspend(),null!=q.graphHandler.hint&&(q.graphHandler.hint.style.visibility="hidden"),K.style.backgroundColor="light-dark(#fefefe, #000000)",K.style.cursor="copy",
q.panningManager.stop(),q.autoScroll=!1,mxEvent.consume(m))}),mxUtils.bind(this,function(m){q.isMouseDown&&null!=q.panningManager&&null!=q.graphHandler&&(K.style.backgroundColor="",K.style.cursor="default",this.sidebar.showTooltips=!0,q.panningManager.stop(),q.graphHandler.reset(),q.isMouseDown=!1,q.autoScroll=!0,M(m),mxEvent.consume(m))}));mxEvent.addListener(K,"mouseleave",mxUtils.bind(this,function(m){q.isMouseDown&&null!=q.graphHandler.first&&(q.graphHandler.resume(),null!=q.graphHandler.hint&&
(q.graphHandler.hint.style.visibility="visible"),K.style.backgroundColor="",K.style.cursor="",q.autoScroll=!0)}));Graph.fileSupport&&(mxEvent.addListener(K,"dragover",mxUtils.bind(this,function(m){K.style.backgroundColor="light-dark(#fefefe, #000000)";m.dataTransfer.dropEffect="copy";K.style.cursor="copy";this.sidebar.hideTooltip();m.stopPropagation();m.preventDefault()})),mxEvent.addListener(K,"drop",mxUtils.bind(this,function(m){K.style.cursor="";K.style.backgroundColor="";0<m.dataTransfer.files.length&&
-this.importFiles(m.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(y,E,P,O,T,V,Q,S,U){if(null!=y&&"image/"==E.substring(0,6))y="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(y),y=[new mxCell("",new mxGeometry(0,0,T,V),y)],y[0].vertex=!0,N(y,new mxRectangle(0,0,T,V),m,mxEvent.isAltDown(m)?null:Q.substring(0,Q.lastIndexOf(".")).replace(/_/g," ")),null!=C&&null!=C.parentNode&&0<g.length&&(C.parentNode.removeChild(C),
-C=null);else{var Y=!1,X=mxUtils.bind(this,function(Z,aa){null!=Z&&"application/pdf"==aa&&(aa=Editor.extractGraphModelFromPdf(Z),null!=aa&&0<aa.length&&(Z=aa));if(null!=Z)if(Z=mxUtils.parseXml(Z),"mxlibrary"==Z.documentElement.nodeName)try{var da=JSON.parse(mxUtils.getTextContent(Z.documentElement));F(da,K);g=g.concat(da);L(m);this.spinner.stop();Y=!0}catch(la){}else if("mxfile"==Z.documentElement.nodeName)try{var fa=Z.documentElement.getElementsByTagName("diagram");for(da=0;da<fa.length;da++){var ba=
+this.importFiles(m.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(y,F,P,O,S,V,Q,R,U){if(null!=y&&"image/"==F.substring(0,6))y="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(y),y=[new mxCell("",new mxGeometry(0,0,S,V),y)],y[0].vertex=!0,N(y,new mxRectangle(0,0,S,V),m,mxEvent.isAltDown(m)?null:Q.substring(0,Q.lastIndexOf(".")).replace(/_/g," ")),null!=C&&null!=C.parentNode&&0<g.length&&(C.parentNode.removeChild(C),
+C=null);else{var Y=!1,X=mxUtils.bind(this,function(Z,aa){null!=Z&&"application/pdf"==aa&&(aa=Editor.extractGraphModelFromPdf(Z),null!=aa&&0<aa.length&&(Z=aa));if(null!=Z)if(Z=mxUtils.parseXml(Z),"mxlibrary"==Z.documentElement.nodeName)try{var da=JSON.parse(mxUtils.getTextContent(Z.documentElement));E(da,K);g=g.concat(da);L(m);this.spinner.stop();Y=!0}catch(la){}else if("mxfile"==Z.documentElement.nodeName)try{var fa=Z.documentElement.getElementsByTagName("diagram");for(da=0;da<fa.length;da++){var ba=
this.stringToCells(Editor.getDiagramNodeXml(fa[da])),ia=this.editor.graph.getBoundingBoxFromGeometry(ba);null!=ia&&N(ba,new mxRectangle(0,0,ia.width,ia.height),m)}Y=!0}catch(la){null!=window.console&&console.log("error in drop handler:",la)}Y||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));null!=C&&null!=C.parentNode&&0<g.length&&(C.parentNode.removeChild(C),C=null)});null!=U&&null!=Q&&EditorUi.isVisioFilename(Q)?this.importVisio(U,function(Z){X(Z,"text/xml")},
-null,Q):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(y,Q)&&null!=U?this.isExternalDataComms()?this.parseFile(U,mxUtils.bind(this,function(Z){4==Z.readyState&&(this.spinner.stop(),200<=Z.status&&299>=Z.status?X(Z.responseText,"text/xml"):this.handleError({message:mxResources.get(413==Z.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):X(y,E)}}));m.stopPropagation();
-m.preventDefault()})),mxEvent.addListener(K,"dragleave",function(m){K.style.cursor="";K.style.backgroundColor="";m.stopPropagation();m.preventDefault()}));R=R.cloneNode(!1);R.setAttribute("src",Editor.editImage);R.setAttribute("title",mxResources.get("edit"));I.insertBefore(R,I.firstChild);mxEvent.addListener(R,"click",l);l=R.cloneNode(!1);l.setAttribute("src",Editor.plusImage);l.setAttribute("title",mxResources.get("add"));I.insertBefore(l,I.firstChild);mxEvent.addListener(l,"click",M);".scratchpad"==
+null,Q):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(y,Q)&&null!=U?this.isExternalDataComms()?this.parseFile(U,mxUtils.bind(this,function(Z){4==Z.readyState&&(this.spinner.stop(),200<=Z.status&&299>=Z.status?X(Z.responseText,"text/xml"):this.handleError({message:mxResources.get(413==Z.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):X(y,F)}}));m.stopPropagation();
+m.preventDefault()})),mxEvent.addListener(K,"dragleave",function(m){K.style.cursor="";K.style.backgroundColor="";m.stopPropagation();m.preventDefault()}));T=T.cloneNode(!1);T.setAttribute("src",Editor.editImage);T.setAttribute("title",mxResources.get("edit"));I.insertBefore(T,I.firstChild);mxEvent.addListener(T,"click",l);l=T.cloneNode(!1);l.setAttribute("src",Editor.plusImage);l.setAttribute("title",mxResources.get("add"));I.insertBefore(l,I.firstChild);mxEvent.addListener(l,"click",M);".scratchpad"==
c.title&&(this.addSelectionToScratchpad=M);this.isOffline()||".scratchpad"!=c.title||null==EditorUi.scratchpadHelpLink||(l=this.createHelpIcon(EditorUi.scratchpadHelpLink,!0),l.className="geLibraryButton",I.insertBefore(l,I.firstChild))}n.appendChild(I);this.editor.fireEvent(new mxEventObject("libraryLoaded"))}};EditorUi.prototype.addLibraryEntries=function(c,g){for(var l=0;l<c.length;l++)try{var n=c[l],u=n.data;if(null!=u){u="data:"==u.substring(0,5)?this.convertDataUri(u):u;var x="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";
-"fixed"==n.aspect&&(x+="aspect=fixed;");x=x+"image="+u+";";null!=n.style&&(x+=n.style);g.appendChild(this.sidebar.createVertexTemplate(x,n.w,n.h,"",n.title||"",!1,null,!0))}else if(null!=n.xml){var B=this.stringToCells("<"==n.xml.charAt(0)?n.xml:Graph.decompress(n.xml)),C=0==B.length?mxResources.get("drawingEmpty"):null!=n.title?n.title:"";g.appendChild(this.sidebar.createVertexTemplateFromCells(B,n.w,n.h,C,!0,null,!0))}}catch(F){C=null!=F.message?mxResources.get("error")+": "+F.message:String(F),
+"fixed"==n.aspect&&(x+="aspect=fixed;");x=x+"image="+u+";";null!=n.style&&(x+=n.style);g.appendChild(this.sidebar.createVertexTemplate(x,n.w,n.h,"",n.title||"",!1,null,!0))}else if(null!=n.xml){var B=this.stringToCells("<"==n.xml.charAt(0)?n.xml:Graph.decompress(n.xml)),C=0==B.length?mxResources.get("drawingEmpty"):null!=n.title?n.title:"";g.appendChild(this.sidebar.createVertexTemplateFromCells(B,n.w,n.h,C,!0,null,!0))}}catch(E){C=null!=E.message?mxResources.get("error")+": "+E.message:String(E),
x=this.sidebar.createVertexTemplateFromCells(null,n.w,n.h,C,!0,null,!0),g.appendChild(x)}};EditorUi.prototype.getResource=function(c){return null!=c?c[mxLanguage]||c.main:null};"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64);EditorUi.initTheme=function(){"sketch"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD||(Editor.configurationKey=".sketch-configuration",Editor.settingsKey=".sketch-config")};EditorUi.initTheme();EditorUi.prototype.showImageDialog=
-function(c,g,l,n,u,x,B){c=new ImageDialog(this,c,g,l,n,u,x,B);this.showDialog(c.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);c.init()};EditorUi.prototype.showLocalStorageDialog=function(c,g,l,n,u,x){var B=localStorage.getItem(g);c=new TextareaDialog(this,c,null!=B?JSON.stringify(JSON.parse(B),null,2):"",mxUtils.bind(this,function(C){if(null!=C)try{if(null!=x&&x(C),C==B)this.hideDialog();else{if(0<C.length){var F=JSON.parse(C);localStorage.setItem(g,JSON.stringify(F))}else localStorage.removeItem(g);
-this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(K){this.handleError(K)}}),null,mxResources.get("close"),null,null,null,!0,null,null,u,l,n);this.showDialog(c.container,660,480,!0,!1,null,null,null,new mxRectangle(0,0,null!=l&&2<l.length?500:440,280));c.init()};EditorUi.prototype.showConfigurationEditorDialog=function(c,g,l,n,u,x){function B(Q,S){var U=document.createElement("div");U.style.padding="4px 16px";U.style.cursor="pointer";U.style.fontSize="13px";U.style.borderBottom=
-S?"2px solid #29b6f2":"2px solid transparent";U.style.fontWeight=S?"bold":"normal";U.style.color=S?"":"#888";U.style.userSelect="none";mxUtils.write(U,Q);return U}function C(Q){if(Q!==W){if("json"===Q)null!=R&&(P.value=JSON.stringify(R,null,2)),M.style.display="none",E.style.display="",L.style.borderBottomColor="#29b6f2",L.style.fontWeight="bold",L.style.color="",z.style.borderBottomColor="transparent",z.style.fontWeight="normal",z.style.color="#888",P.focus();else{try{var S=JSON.parse(P.value);R=
-S;null!=m.contentWindow&&m.contentWindow.postMessage({type:"setConfig",config:S},"*")}catch(U){}M.style.display="";E.style.display="none";z.style.borderBottomColor="#29b6f2";z.style.fontWeight="bold";z.style.color="";L.style.borderBottomColor="transparent";L.style.fontWeight="normal";L.style.color="#888"}W=Q}}var F=this,K=localStorage.getItem(g),I={};try{null!=K&&(I=JSON.parse(K))}catch(Q){}var R=I,W="editor";c=document.createElement("div");c.style.position="absolute";c.style.top="20px";c.style.bottom=
+function(c,g,l,n,u,x,B){c=new ImageDialog(this,c,g,l,n,u,x,B);this.showDialog(c.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);c.init()};EditorUi.prototype.showLocalStorageDialog=function(c,g,l,n,u,x){var B=localStorage.getItem(g);c=new TextareaDialog(this,c,null!=B?JSON.stringify(JSON.parse(B),null,2):"",mxUtils.bind(this,function(C){if(null!=C)try{if(null!=x&&x(C),C==B)this.hideDialog();else{if(0<C.length){var E=JSON.parse(C);localStorage.setItem(g,JSON.stringify(E))}else localStorage.removeItem(g);
+this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(K){this.handleError(K)}}),null,mxResources.get("close"),null,null,null,!0,null,null,u,l,n);this.showDialog(c.container,660,480,!0,!1,null,null,null,new mxRectangle(0,0,null!=l&&2<l.length?500:440,280));c.init()};EditorUi.prototype.showConfigurationEditorDialog=function(c,g,l,n,u,x){function B(Q,R){var U=document.createElement("div");U.style.padding="4px 16px";U.style.cursor="pointer";U.style.fontSize="13px";U.style.borderBottom=
+R?"2px solid #29b6f2":"2px solid transparent";U.style.fontWeight=R?"bold":"normal";U.style.color=R?"":"#888";U.style.userSelect="none";mxUtils.write(U,Q);return U}function C(Q){if(Q!==W){if("json"===Q)null!=T&&(P.value=JSON.stringify(T,null,2)),M.style.display="none",F.style.display="",L.style.borderBottomColor="#29b6f2",L.style.fontWeight="bold",L.style.color="",z.style.borderBottomColor="transparent",z.style.fontWeight="normal",z.style.color="#888",P.focus();else{try{var R=JSON.parse(P.value);T=
+R;null!=m.contentWindow&&m.contentWindow.postMessage({type:"setConfig",config:R},"*")}catch(U){}M.style.display="";F.style.display="none";z.style.borderBottomColor="#29b6f2";z.style.fontWeight="bold";z.style.color="";L.style.borderBottomColor="transparent";L.style.fontWeight="normal";L.style.color="#888"}W=Q}}var E=this,K=localStorage.getItem(g),I={};try{null!=K&&(I=JSON.parse(K))}catch(Q){}var T=I,W="editor";c=document.createElement("div");c.style.position="absolute";c.style.top="20px";c.style.bottom=
"20px";c.style.left="20px";c.style.right="20px";var q=document.createElement("div");q.style.position="absolute";q.style.left="0";q.style.right="0";q.style.top="0";q.style.height="28px";q.style.display="flex";q.style.alignItems="end";q.style.borderBottom="1px solid #d0d0d0";var z=B(mxResources.get("editor",null,"Editor"),!0),L=B("JSON",!1);q.appendChild(z);q.appendChild(L);if(null!=n){var N=document.createElement("div");N.style.marginLeft="auto";N.style.display="flex";N.style.alignItems="center";N.style.paddingRight=
-"4px";N.style.paddingBottom="2px";N.appendChild(n);q.appendChild(N)}c.appendChild(q);var M=document.createElement("div");M.style.position="absolute";M.style.left="0";M.style.right="0";M.style.top="30px";M.style.bottom="50px";var m=document.createElement("iframe");m.style.width="100%";m.style.height="100%";m.style.border="none";m.style.borderRadius="4px";n=window.DRAWIO_BASE_URL||"";0<n.length&&"/"===n.charAt(n.length-1)&&(n=n.substring(0,n.length-1));q={};try{var y=F.editor.graph;null!=y.currentVertexStyle&&
-(q.currentVertexStyle=y.currentVertexStyle);null!=y.currentEdgeStyle&&(q.currentEdgeStyle=y.currentEdgeStyle)}catch(Q){}m.src=n+"/config-editor.html#"+encodeURIComponent(JSON.stringify(q));M.appendChild(m);var E=document.createElement("div");E.style.position="absolute";E.style.left="0";E.style.right="0";E.style.top="30px";E.style.bottom="50px";E.style.display="none";var P=document.createElement("textarea");P.setAttribute("wrap","off");P.setAttribute("spellcheck","false");P.setAttribute("autocorrect",
-"off");P.setAttribute("autocomplete","off");P.setAttribute("autocapitalize","off");P.style.resize="none";P.style.outline="none";P.style.boxSizing="border-box";P.style.width="100%";P.style.height="100%";try{P.value=null!=K?JSON.stringify(JSON.parse(K),null,2):""}catch(Q){P.value=K||""}E.appendChild(P);c.appendChild(M);c.appendChild(E);mxEvent.addListener(z,"click",function(){C("editor")});mxEvent.addListener(L,"click",function(){C("json")});var O=function(Q){null!=m.contentWindow&&Q.source===m.contentWindow&&
-null!=Q.data&&("configChanged"===Q.data.type?R=Q.data.config:"ready"===Q.data.type&&(m.contentWindow.postMessage({type:"setConfig",config:I},"*"),null!=Editor.isDarkMode&&Editor.isDarkMode()&&m.contentWindow.postMessage({type:"setDarkMode",dark:!0},"*"),F.isHighContrast()&&m.contentWindow.postMessage({type:"setHighContrast",highContrast:!0},"*")))};window.addEventListener("message",O);var T=document.createElement("div");T.style.position="absolute";T.style.left="0";T.style.right="0";T.style.bottom=
-"0";T.style.height="46px";T.style.display="flex";T.style.whiteSpace="nowrap";T.style.alignItems="center";T.style.justifyContent="end";T.style.paddingTop="10px";T.style.paddingBottom="10px";T.style.boxSizing="border-box";null==u||F.isOffline()||T.appendChild(F.createHelpIcon(u));if(null!=l)for(u=0;u<l.length;u++)(function(Q,S,U){Q=mxUtils.button(Q,function(Y){"editor"===W&&null!=R&&(P.value=JSON.stringify(R,null,2));S(Y,P)});null!=U&&Q.setAttribute("title",U);Q.className="geBtn";T.appendChild(Q)})(l[u][0],
-l[u][1],l[u][2]);u=mxUtils.button(mxResources.get("close"),function(){F.hideDialog()});u.setAttribute("title","Escape");u.className="geBtn";var V=mxUtils.button(mxResources.get("apply"),function(){var Q="editor"===W?null!=R&&0<Object.keys(R).length?JSON.stringify(R,null,2):"":P.value;try{if(null!=x&&x(Q),Q==K)F.hideDialog();else{if(0<Q.length){var S=JSON.parse(Q);localStorage.setItem(g,JSON.stringify(S))}else localStorage.removeItem(g);F.hideDialog();F.alert(mxResources.get("restartForChangeRequired"))}}catch(U){F.handleError(U)}});
-V.className="geBtn gePrimaryBtn";F.editor.cancelFirst?(T.appendChild(u),T.appendChild(V)):(T.appendChild(V),T.appendChild(u));c.appendChild(T);mxEvent.addListener(c,"keydown",function(Q){13===Q.keyCode&&mxEvent.isControlDown(Q)&&V.click()});F.showDialog(c,800,600,!0,!1,function(){window.removeEventListener("message",O)},null,null,new mxRectangle(0,0,null!=l&&2<l.length?500:440,400));P.scrollTop=0};EditorUi.prototype.showBackgroundImageDialog=function(c,g,l,n){c=null!=c?c:mxUtils.bind(this,function(u,
+"4px";N.style.paddingBottom="2px";N.appendChild(n);q.appendChild(N)}c.appendChild(q);var M=document.createElement("div");M.style.position="absolute";M.style.left="0";M.style.right="0";M.style.top="30px";M.style.bottom="50px";var m=document.createElement("iframe");m.style.width="100%";m.style.height="100%";m.style.border="none";m.style.borderRadius="4px";n=window.DRAWIO_BASE_URL||"";0<n.length&&"/"===n.charAt(n.length-1)&&(n=n.substring(0,n.length-1));q={};try{var y=E.editor.graph;null!=y.currentVertexStyle&&
+(q.currentVertexStyle=y.currentVertexStyle);null!=y.currentEdgeStyle&&(q.currentEdgeStyle=y.currentEdgeStyle)}catch(Q){}m.src=n+"/config-editor.html#"+encodeURIComponent(JSON.stringify(q));M.appendChild(m);var F=document.createElement("div");F.style.position="absolute";F.style.left="0";F.style.right="0";F.style.top="30px";F.style.bottom="50px";F.style.display="none";var P=document.createElement("textarea");P.setAttribute("wrap","off");P.setAttribute("spellcheck","false");P.setAttribute("autocorrect",
+"off");P.setAttribute("autocomplete","off");P.setAttribute("autocapitalize","off");P.style.resize="none";P.style.outline="none";P.style.boxSizing="border-box";P.style.width="100%";P.style.height="100%";try{P.value=null!=K?JSON.stringify(JSON.parse(K),null,2):""}catch(Q){P.value=K||""}F.appendChild(P);c.appendChild(M);c.appendChild(F);mxEvent.addListener(z,"click",function(){C("editor")});mxEvent.addListener(L,"click",function(){C("json")});var O=function(Q){null!=m.contentWindow&&Q.source===m.contentWindow&&
+null!=Q.data&&("configChanged"===Q.data.type?T=Q.data.config:"ready"===Q.data.type&&(m.contentWindow.postMessage({type:"setConfig",config:I},"*"),null!=Editor.isDarkMode&&Editor.isDarkMode()&&m.contentWindow.postMessage({type:"setDarkMode",dark:!0},"*"),E.isHighContrast()&&m.contentWindow.postMessage({type:"setHighContrast",highContrast:!0},"*")))};window.addEventListener("message",O);var S=document.createElement("div");S.style.position="absolute";S.style.left="0";S.style.right="0";S.style.bottom=
+"0";S.style.height="46px";S.style.display="flex";S.style.whiteSpace="nowrap";S.style.alignItems="center";S.style.justifyContent="end";S.style.paddingTop="10px";S.style.paddingBottom="10px";S.style.boxSizing="border-box";null==u||E.isOffline()||S.appendChild(E.createHelpIcon(u));if(null!=l)for(u=0;u<l.length;u++)(function(Q,R,U){Q=mxUtils.button(Q,function(Y){"editor"===W&&null!=T&&(P.value=JSON.stringify(T,null,2));R(Y,P)});null!=U&&Q.setAttribute("title",U);Q.className="geBtn";S.appendChild(Q)})(l[u][0],
+l[u][1],l[u][2]);u=mxUtils.button(mxResources.get("close"),function(){E.hideDialog()});u.setAttribute("title","Escape");u.className="geBtn";var V=mxUtils.button(mxResources.get("apply"),function(){var Q="editor"===W?null!=T&&0<Object.keys(T).length?JSON.stringify(T,null,2):"":P.value;try{if(null!=x&&x(Q),Q==K)E.hideDialog();else{if(0<Q.length){var R=JSON.parse(Q);localStorage.setItem(g,JSON.stringify(R))}else localStorage.removeItem(g);E.hideDialog();E.alert(mxResources.get("restartForChangeRequired"))}}catch(U){E.handleError(U)}});
+V.className="geBtn gePrimaryBtn";E.editor.cancelFirst?(S.appendChild(u),S.appendChild(V)):(S.appendChild(V),S.appendChild(u));c.appendChild(S);mxEvent.addListener(c,"keydown",function(Q){13===Q.keyCode&&mxEvent.isControlDown(Q)&&V.click()});E.showDialog(c,800,600,!0,!1,function(){window.removeEventListener("message",O)},null,null,new mxRectangle(0,0,null!=l&&2<l.length?500:440,400));P.scrollTop=0};EditorUi.prototype.showBackgroundImageDialog=function(c,g,l,n){c=null!=c?c:mxUtils.bind(this,function(u,
x,B,C){x||(u=new ChangePageSetup(this,n?B:null,u),u.ignoreColor=!n,null!=C&&n&&(u.shadowVisible=C),this.editor.graph.model.execute(u))});c=new BackgroundImageDialog(this,c,g,l,n);this.showDialog(c.container,400,n?240:220,!0,!0);c.init()};EditorUi.prototype.showLibraryDialog=function(c,g,l,n,u){c=new LibraryDialog(this,c,g,l,n,u);this.showDialog(c.container,640,440,!0,!1,mxUtils.bind(this,function(x){x&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));c.init()};var k=EditorUi.prototype.createFormat;
-EditorUi.prototype.createFormat=function(c){var g=k.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(l){this.editor.graph.isSelectionEmpty()&&g.refresh()}));return g};EditorUi.prototype.handleError=function(c,g,l,n,u,x,B){var C=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},F=null!=c&&null!=c.error?c.error:c;if(null!=c&&("1"==urlParams.test||null!=c.stack)&&null!=c.message)try{B||EditorUi.logError("Caught: "+(""==c.message&&
-null!=c.name)?c.name:c.message,c.filename,c.lineNumber,c.columnNumber,c,"INFO"),"1"!=urlParams.test&&!B||null==window.console||console.error("EditorUi.handleError:",c)}catch(W){}if(null!=F||null!=g){B=mxUtils.htmlEntities(mxResources.get("unknownError"),!1);var K=mxResources.get("ok"),I=null;g=null!=g?g:mxResources.get("error");if(null!=F){null!=F.retry&&(K=mxResources.get("cancel"),I=function(){C();F.retry()});if(404==F.code||404==F.status||403==F.code){B=403==F.code?null!=F.message?mxUtils.htmlEntities(F.message,
-!1):mxUtils.htmlEntities(mxResources.get("accessDenied"),!1):null!=u?u:mxUtils.htmlEntities(mxResources.get("fileNotFoundOrDenied")+(null!=this.drive&&null!=this.drive.user?" ("+this.drive.user.email+")":""),!1);var R=null!=u?null:null!=x?x:window.location.hash;if(null!=R&&("#G"==R.substring(0,2)||"#Uhttps%3A%2F%2Fdrive.google.com%2Fuc%3Fid%3D"==R.substring(0,45))&&(null!=c&&null!=c.error&&(null!=c.error.errors&&0<c.error.errors.length&&"fileAccess"==c.error.errors[0].reason||null!=c.error.data&&
-0<c.error.data.length&&"fileAccess"==c.error.data[0].reason)||404==F.code||404==F.status)){R="#U"==R.substring(0,2)?R.substring(45,R.lastIndexOf("%26ex")):R.substring(2);this.showError(g,B,mxResources.get("tryOpeningViaThisPage"),mxUtils.bind(this,function(){this.editor.graph.openLink("https://drive.google.com/open?id="+R);null!=n&&n()}),I,mxResources.get("changeUser"),mxUtils.bind(this,function(){function W(){N.innerText="";for(var M=0;M<q.length;M++){var m=document.createElement("option");mxUtils.write(m,
+EditorUi.prototype.createFormat=function(c){var g=k.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(l){this.editor.graph.isSelectionEmpty()&&g.refresh()}));return g};EditorUi.prototype.handleError=function(c,g,l,n,u,x,B){var C=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},E=null!=c&&null!=c.error?c.error:c;if(null!=c&&("1"==urlParams.test||null!=c.stack)&&null!=c.message)try{B||EditorUi.logError("Caught: "+(""==c.message&&
+null!=c.name)?c.name:c.message,c.filename,c.lineNumber,c.columnNumber,c,"INFO"),"1"!=urlParams.test&&!B||null==window.console||console.error("EditorUi.handleError:",c)}catch(W){}if(null!=E||null!=g){B=mxUtils.htmlEntities(mxResources.get("unknownError"),!1);var K=mxResources.get("ok"),I=null;g=null!=g?g:mxResources.get("error");if(null!=E){null!=E.retry&&(K=mxResources.get("cancel"),I=function(){C();E.retry()});if(404==E.code||404==E.status||403==E.code){B=403==E.code?null!=E.message?mxUtils.htmlEntities(E.message,
+!1):mxUtils.htmlEntities(mxResources.get("accessDenied"),!1):null!=u?u:mxUtils.htmlEntities(mxResources.get("fileNotFoundOrDenied")+(null!=this.drive&&null!=this.drive.user?" ("+this.drive.user.email+")":""),!1);var T=null!=u?null:null!=x?x: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!=c&&null!=c.error&&(null!=c.error.errors&&0<c.error.errors.length&&"fileAccess"==c.error.errors[0].reason||null!=c.error.data&&
+0<c.error.data.length&&"fileAccess"==c.error.data[0].reason)||404==E.code||404==E.status)){T="#U"==T.substring(0,2)?T.substring(45,T.lastIndexOf("%26ex")):T.substring(2);this.showError(g,B,mxResources.get("tryOpeningViaThisPage"),mxUtils.bind(this,function(){this.editor.graph.openLink("https://drive.google.com/open?id="+T);null!=n&&n()}),I,mxResources.get("changeUser"),mxUtils.bind(this,function(){function W(){N.innerText="";for(var M=0;M<q.length;M++){var m=document.createElement("option");mxUtils.write(m,
q[M].displayName);m.value=M;N.appendChild(m);m=document.createElement("option");m.innerHTML="&nbsp;&nbsp;&nbsp;";mxUtils.write(m,"<"+q[M].email+">");m.setAttribute("disabled","disabled");N.appendChild(m)}m=document.createElement("option");mxUtils.write(m,mxResources.get("addAccount"));m.value=q.length;N.appendChild(m)}var q=this.drive.getUsersList(),z=document.createElement("div"),L=document.createElement("div");L.style.marginBottom="6px";mxUtils.write(L,mxResources.get("changeUser")+": ");z.appendChild(L);
var N=document.createElement("select");N.style.width="100%";W();mxEvent.addListener(N,"change",mxUtils.bind(this,function(){var M=N.value,m=q.length!=M;m&&this.drive.setUser(q[M]);this.drive.authorize(m,mxUtils.bind(this,function(){m||(q=this.drive.getUsersList(),W())}),mxUtils.bind(this,function(y){this.handleError(y)}),!0)}));z.appendChild(N);z=new CustomDialog(this,z,mxUtils.bind(this,function(){this.loadFile(window.location.hash.substr(1),!0)}));this.showDialog(z.container,300,100,!0,!0)}),mxResources.get("cancel"),
-mxUtils.bind(this,function(){this.hideDialog();null!=l&&l()}),520,150);return}}null!=F.message?B=""==F.message&&null!=F.name?mxUtils.htmlEntities(F.name,!1):mxUtils.htmlEntities(F.message,!1):null!=F.response&&null!=F.response.error?B=mxUtils.htmlEntities(F.response.error,!1):"undefined"!==typeof window.App&&(F.code==App.ERROR_TIMEOUT?B=mxUtils.htmlEntities(mxResources.get("timeout"),!1):F.code==App.ERROR_BUSY?B=mxUtils.htmlEntities(mxResources.get("busy"),!1):"string"===typeof F&&0<F.length&&(B=
-mxUtils.htmlEntities(F,!1)))}u=c=null;null!=F&&null!=F.helpLink?(c=mxResources.get("help"),u=mxUtils.bind(this,function(){return this.editor.graph.openLink(F.helpLink)})):null!=F&&null!=F.ownerEmail?(c=mxResources.get("contactOwner"),B+=mxUtils.htmlEntities(" ("+c+": "+F.ownerEmail+")",!1),u=mxUtils.bind(this,function(){return this.openLink("mailto:"+mxUtils.htmlEntities(F.ownerEmail))})):null!=F&&null!=F.alternateAction&&(c=F.alternateAction.label,u=F.alternateAction.funct);this.showError(g,B,K,
+mxUtils.bind(this,function(){this.hideDialog();null!=l&&l()}),520,150);return}}null!=E.message?B=""==E.message&&null!=E.name?mxUtils.htmlEntities(E.name,!1):mxUtils.htmlEntities(E.message,!1):null!=E.response&&null!=E.response.error?B=mxUtils.htmlEntities(E.response.error,!1):"undefined"!==typeof window.App&&(E.code==App.ERROR_TIMEOUT?B=mxUtils.htmlEntities(mxResources.get("timeout"),!1):E.code==App.ERROR_BUSY?B=mxUtils.htmlEntities(mxResources.get("busy"),!1):"string"===typeof E&&0<E.length&&(B=
+mxUtils.htmlEntities(E,!1)))}u=c=null;null!=E&&null!=E.helpLink?(c=mxResources.get("help"),u=mxUtils.bind(this,function(){return this.editor.graph.openLink(E.helpLink)})):null!=E&&null!=E.ownerEmail?(c=mxResources.get("contactOwner"),B+=mxUtils.htmlEntities(" ("+c+": "+E.ownerEmail+")",!1),u=mxUtils.bind(this,function(){return this.openLink("mailto:"+mxUtils.htmlEntities(E.ownerEmail))})):null!=E&&null!=E.alternateAction&&(c=E.alternateAction.label,u=E.alternateAction.funct);this.showError(g,B,K,
l,I,null,null,c,u,null,null,null,n?l:null)}else null!=l&&l()};EditorUi.prototype.alert=function(c,g,l){c=new ErrorDialog(this,null,c,mxResources.get("ok"),g);this.showDialog(c.container,l||340,100,!0,!1);c.init()};EditorUi.prototype.confirm=function(c,g,l,n,u,x){c=null!=c?c:"";var B=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},C=Math.min(220,28*Math.ceil(Math.max(1,c.length)/50));c=new ConfirmDialog(this,c,function(){B();null!=g&&g()},function(){B();null!=l&&l()},
-n,u,null,null,null,null,C);this.showDialog(c.container,340,46+C,!0,x);c.init()};EditorUi.prototype.showBanner=function(c,g,l,n,u,x,B,C,F){x=!1;if(!(this.bannerShowing||this["hideBanner"+c]||isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings["close"+c])){B=null!=B?B:"translate(-50%,120%)";C=null!=C?C:"translate(-50%,0%)";var K=document.createElement("div");K.className="geBtn gePrimaryBtn geBanner"+(u?" geSmallBanner":"");K.style.zIndex=mxPopupMenu.prototype.zIndex;mxUtils.setPrefixedStyle(K.style,
-"transform",B);mxUtils.setPrefixedStyle(K.style,"transition","all 1000ms ease");null!=F&&mxUtils.setPrefixedStyle(K.style,"transform-origin",F);F=F=document.createElement("img");F.setAttribute("src",Editor.crossImage);F.setAttribute("title",mxResources.get(n?"doNotShowAgain":"close"));F.setAttribute("border","0");u||(x=document.createElement("img"),x.setAttribute("src",IMAGE_PATH+"/logo.png"),x.setAttribute("border","0"),x.setAttribute("align","absmiddle"),x.style.cssText="margin-top:-4px;margin-left:8px;margin-right:12px;width:26px;height:26px;",
-K.appendChild(x),F.style.cssText=(u?"right:6px;top:9px;":"right:10px;top:12px;")+"position:absolute;filter:invert(1);padding:6px;margin:-6px;cursor:default;",K.appendChild(F));mxUtils.write(K,g);document.body.appendChild(K);this.bannerShowing=!0;u&&(F.className="geLibraryButton",K.appendChild(F));g=document.createElement("div");g.style.cssText="display:flex;align-items:center;justify-content:center;padding-top:6px;font-size:11px;text-align:center;font-weight:normal;";var I=document.createElement("input");
-I.setAttribute("type","checkbox");I.setAttribute("id","geDoNotShowAgainCheckbox");I.style.marginRight="6px";if(!n){g.appendChild(I);var R=document.createElement("label");R.setAttribute("for","geDoNotShowAgainCheckbox");mxUtils.write(R,mxResources.get("doNotShowAgain"));g.appendChild(R);K.style.paddingBottom=u?"16px":"30px";K.appendChild(g)}var W=mxUtils.bind(this,function(){null!=K.parentNode&&(K.parentNode.removeChild(K),this.bannerShowing=!1,I.checked||n)&&(this["hideBanner"+c]=!0,isLocalStorage&&
-null!=mxSettings.settings&&(mxSettings.settings["close"+c]=Date.now(),mxSettings.save()))});null!=F&&mxEvent.addListener(F,"click",mxUtils.bind(this,function(z){mxEvent.consume(z);W()}));var q=mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(K.style,"transform",B);window.setTimeout(mxUtils.bind(this,function(){W()}),1E3)});mxEvent.addListener(K,"click",mxUtils.bind(this,function(z){var L=mxEvent.getSource(z);L!=I&&L!=R?(null!=l&&l(),W(),mxEvent.consume(z)):q()}));window.setTimeout(mxUtils.bind(this,
+n,u,null,null,null,null,C);this.showDialog(c.container,340,46+C,!0,x);c.init()};EditorUi.prototype.showBanner=function(c,g,l,n,u,x,B,C,E){x=!1;if(!(this.bannerShowing||this["hideBanner"+c]||isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings["close"+c])){B=null!=B?B:"translate(-50%,120%)";C=null!=C?C:"translate(-50%,0%)";var K=document.createElement("div");K.className="geBtn gePrimaryBtn geBanner"+(u?" geSmallBanner":"");K.style.zIndex=mxPopupMenu.prototype.zIndex;mxUtils.setPrefixedStyle(K.style,
+"transform",B);mxUtils.setPrefixedStyle(K.style,"transition","all 1000ms ease");null!=E&&mxUtils.setPrefixedStyle(K.style,"transform-origin",E);E=E=document.createElement("img");E.setAttribute("src",Editor.crossImage);E.setAttribute("title",mxResources.get(n?"doNotShowAgain":"close"));E.setAttribute("border","0");u||(x=document.createElement("img"),x.setAttribute("src",IMAGE_PATH+"/logo.png"),x.setAttribute("border","0"),x.setAttribute("align","absmiddle"),x.style.cssText="margin-top:-4px;margin-left:8px;margin-right:12px;width:26px;height:26px;",
+K.appendChild(x),E.style.cssText=(u?"right:6px;top:9px;":"right:10px;top:12px;")+"position:absolute;filter:invert(1);padding:6px;margin:-6px;cursor:default;",K.appendChild(E));mxUtils.write(K,g);document.body.appendChild(K);this.bannerShowing=!0;u&&(E.className="geLibraryButton",K.appendChild(E));g=document.createElement("div");g.style.cssText="display:flex;align-items:center;justify-content:center;padding-top:6px;font-size:11px;text-align:center;font-weight:normal;";var I=document.createElement("input");
+I.setAttribute("type","checkbox");I.setAttribute("id","geDoNotShowAgainCheckbox");I.style.marginRight="6px";if(!n){g.appendChild(I);var T=document.createElement("label");T.setAttribute("for","geDoNotShowAgainCheckbox");mxUtils.write(T,mxResources.get("doNotShowAgain"));g.appendChild(T);K.style.paddingBottom=u?"16px":"30px";K.appendChild(g)}var W=mxUtils.bind(this,function(){null!=K.parentNode&&(K.parentNode.removeChild(K),this.bannerShowing=!1,I.checked||n)&&(this["hideBanner"+c]=!0,isLocalStorage&&
+null!=mxSettings.settings&&(mxSettings.settings["close"+c]=Date.now(),mxSettings.save()))});null!=E&&mxEvent.addListener(E,"click",mxUtils.bind(this,function(z){mxEvent.consume(z);W()}));var q=mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(K.style,"transform",B);window.setTimeout(mxUtils.bind(this,function(){W()}),1E3)});mxEvent.addListener(K,"click",mxUtils.bind(this,function(z){var L=mxEvent.getSource(z);L!=I&&L!=T?(null!=l&&l(),W(),mxEvent.consume(z)):q()}));window.setTimeout(mxUtils.bind(this,
function(){mxUtils.setPrefixedStyle(K.style,"transform",C)}),500);window.setTimeout(q,u?5E3:3E4);x=!0}return x};EditorUi.prototype.setCurrentFile=function(c){null!=c&&(c.opened=new Date);this.currentFile=c};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.createImageDataUri=function(c,g,l,n){c=c.toDataURL("image/"+l);if(null!=c&&6<c.length)null!=g&&(c=Editor.writeGraphModelToPng(c,"tEXt","mxfile",encodeURIComponent(g))),0<n&&(c=Editor.writeGraphModelToPng(c,
"pHYs","dpi",n));else throw{message:mxResources.get("unknownError")};return c};EditorUi.prototype.saveCanvas=function(c,g,l,n,u){var x="jpeg"==l?"jpg":l;n=this.getBaseFilename(n)+(null!=g?".drawio":"")+"."+x;c=this.createImageDataUri(c,g,l,u);this.saveData(n,x,c.substring(c.lastIndexOf(",")+1),"image/"+l,!0)};EditorUi.prototype.showAnimatedGifExportDialog=function(){var c=document.createElement("div");c.style.whiteSpace="nowrap";var g=document.createElement("h3");mxUtils.write(g,mxResources.get("formatAnimatedGif",
null,"Animated GIF"));g.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";c.appendChild(g);g=document.createElement("div");g.className="geDialogSection";var l=document.createElement("div");l.className="geDialogFormRow";var n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("speed",null,"Speed")+":");l.appendChild(n);var u=document.createElement("select"),x=[{label:mxResources.get("slow",null,"Slow"),value:8},{label:mxResources.get("medium",
null,"Medium"),value:15},{label:mxResources.get("fast",null,"Fast"),value:24}];for(n=0;n<x.length;n++){var B=document.createElement("option");mxUtils.write(B,x[n].label);B.setAttribute("value",x[n].value);15==x[n].value&&B.setAttribute("selected","selected");u.appendChild(B)}l.appendChild(u);g.appendChild(l);l=document.createElement("div");l.className="geDialogFormRow";n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("zoom")+":");l.appendChild(n);var C=
-document.createElement("input");C.setAttribute("type","text");C.value="100%";l.appendChild(C);g.appendChild(l);l=document.createElement("div");l.className="geDialogFormRow";n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("borderWidth",null,"Border Width")+":");l.appendChild(n);var F=document.createElement("input");F.setAttribute("type","text");F.value="0";l.appendChild(F);g.appendChild(l);l=document.createElement("div");l.className="geDialogFormRow";
+document.createElement("input");C.setAttribute("type","text");C.value="100%";l.appendChild(C);g.appendChild(l);l=document.createElement("div");l.className="geDialogFormRow";n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("borderWidth",null,"Border Width")+":");l.appendChild(n);var E=document.createElement("input");E.setAttribute("type","text");E.value="0";l.appendChild(E);g.appendChild(l);l=document.createElement("div");l.className="geDialogFormRow";
n=document.createElement("span");n.className="geDialogFormLabel";mxUtils.write(n,mxResources.get("loops",null,"Loops")+":");l.appendChild(n);var K=document.createElement("select");x=[{label:mxResources.get("forever",null,"Forever"),value:0},{label:"1",value:1},{label:"3",value:3},{label:"5",value:5}];for(n=0;n<x.length;n++)B=document.createElement("option"),mxUtils.write(B,x[n].label),B.setAttribute("value",x[n].value),0==x[n].value&&B.setAttribute("selected","selected"),K.appendChild(B);l.appendChild(K);
-g.appendChild(l);c.appendChild(g);g=document.createElement("div");g.className="geDialogSection";var I=this.addCheckbox(g,mxResources.get("transparentBackground",null,"Transparent Background"),!1);c.appendChild(g);c=new CustomDialog(this,c,mxUtils.bind(this,function(){var R=parseInt(C.value);if(isNaN(R)||0>=R)R=100;this.exportAnimatedGif({fps:parseInt(u.value),scale:R/100,border:parseInt(F.value)||0,repeat:parseInt(K.value),transparent:I.checked,background:I.checked?null:null!=this.editor.graph.background&&
+g.appendChild(l);c.appendChild(g);g=document.createElement("div");g.className="geDialogSection";var I=this.addCheckbox(g,mxResources.get("transparentBackground",null,"Transparent Background"),!1);c.appendChild(g);c=new CustomDialog(this,c,mxUtils.bind(this,function(){var T=parseInt(C.value);if(isNaN(T)||0>=T)T=100;this.exportAnimatedGif({fps:parseInt(u.value),scale:T/100,border:parseInt(E.value)||0,repeat:parseInt(K.value),transparent:I.checked,background:I.checked?null:null!=this.editor.graph.background&&
this.editor.graph.background!=mxConstants.NONE?this.editor.graph.background:"#ffffff"})}),null,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram");this.showDialog(c.container,360,null,!0,!0,null,null,null,null,!0)};EditorUi.prototype.exportAnimatedGif=function(c){if(this.spinner.spin(document.body,mxResources.get("exporting")))try{(new AnimatedGifExport(this)).doExport(c,mxUtils.bind(this,function(g){this.spinner.stop();if(null!=g){var l=this.getBaseFilename()+".gif";if("function"===
typeof navigator.msSaveBlob)navigator.msSaveBlob(g,l);else{var n=document.createElement("a");n.href=URL.createObjectURL(g);n.download=l;document.body.appendChild(n);n.click();setTimeout(function(){document.body.removeChild(n);URL.revokeObjectURL(n.href)},0)}}}),mxUtils.bind(this,function(g){this.spinner.stop();this.handleError(g)}))}catch(g){this.spinner.stop(),this.handleError(g)}};EditorUi.prototype.isLocalFileSave=function(){return"remote"!=urlParams.save&&"undefined"!==typeof window.Blob&&"undefined"!==
typeof window.URL||this.isOfflineApp()||mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(c,g){c=new TextareaDialog(this,c,g,null,null,mxResources.get("close"));this.showDialog(c.container,620,460,!0,!0,null,null,null,null,!0);c.init();document.execCommand("selectall",!1,null)};EditorUi.prototype.doSaveLocalFile=function(c,g,l,n,u,x){"text/xml"!=l||/(\.drawio)$/i.test(g)||/(\.xml)$/i.test(g)||/(\.svg)$/i.test(g)||/(\.html)$/i.test(g)||(g=g+"."+(null!=x?x:"drawio"));if(mxClient.IS_IOS&&this.isOffline())navigator.standalone||
null==l||"image/"!=l.substring(0,6)?this.showTextDialog(g+":",c):this.openInNewWindow(c,l,n);else{var B=document.createElement("a");x=(null==navigator.userAgent||0>navigator.userAgent.indexOf("PaleMoon/"))&&"undefined"!==typeof B.download;if(mxClient.IS_GC&&null!=navigator.userAgent){var C=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);x=65==(C?parseInt(C[2],10):!1)?!1:x}if(x||this.isOffline()){B.href=URL.createObjectURL(n?this.base64ToBlob(c,l):new Blob([c],{type:l}));x?B.download=g:B.setAttribute("target",
-"_blank");document.body.appendChild(B);try{window.setTimeout(function(){URL.revokeObjectURL(B.href)},2E4),B.click(),B.parentNode.removeChild(B)}catch(F){}}else this.createEchoRequest(c,g,l,n,u).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(c,g,l,n,u,x){c="xml="+encodeURIComponent(c);return new mxXmlRequest(SAVE_URL,c+(null!=l?"&mime="+l:"")+(null!=u?"&format="+u:"")+(null!=x?"&base64="+x:"")+(null!=g?"&filename="+encodeURIComponent(g):"")+(n?"&binary=1":""))};EditorUi.prototype.saveLocalFile=
-function(c,g,l,n,u,x,B,C,F){x=null!=x?x:!1;B=null!=B?B:"vsdx"!=u&&(!mxClient.IS_IOS||!navigator.standalone);var K=mxUtils.bind(this,function(R,W,q,z){try{if("_blank"==W)if(null!=l&&"image/"==l.substring(0,6))this.openInNewWindow(c,l,n);else if(null!=l&&"text/html"==l.substring(0,9)){var L=new EmbedDialog(this,c);this.showDialog(L.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));L.init()}else{var N=window.open("about:blank");null==N?mxUtils.popup(c,!0):(N.document.write("<pre>"+mxUtils.htmlEntities(c,
-!1)+"</pre>"),N.document.close())}else if(W==App.MODE_DEVICE||"download"==W)this.doSaveLocalFile(c,R,l,n,null,C);else if(null!=R&&0<R.length){var M=mxUtils.bind(this,function(m){try{this.exportFile(c,R,l,n,W,m)}catch(y){this.handleError(y)}});null!=z?M(z):this.pickFolder(W,M)}}catch(m){this.handleError(m)}});u=[];x||u.push(App.MODE_BROWSER);B||u.push("_blank");var I=new SaveDialog(this,g,mxUtils.bind(this,function(R,W,q){K(R.value,W,R,q);this.hideDialog(null,null,I.container)}),u,c,l,n,F);this.showDialog(I.container,
+"_blank");document.body.appendChild(B);try{window.setTimeout(function(){URL.revokeObjectURL(B.href)},2E4),B.click(),B.parentNode.removeChild(B)}catch(E){}}else this.createEchoRequest(c,g,l,n,u).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(c,g,l,n,u,x){c="xml="+encodeURIComponent(c);return new mxXmlRequest(SAVE_URL,c+(null!=l?"&mime="+l:"")+(null!=u?"&format="+u:"")+(null!=x?"&base64="+x:"")+(null!=g?"&filename="+encodeURIComponent(g):"")+(n?"&binary=1":""))};EditorUi.prototype.saveLocalFile=
+function(c,g,l,n,u,x,B,C,E){x=null!=x?x:!1;B=null!=B?B:"vsdx"!=u&&(!mxClient.IS_IOS||!navigator.standalone);var K=mxUtils.bind(this,function(T,W,q,z){try{if("_blank"==W)if(null!=l&&"image/"==l.substring(0,6))this.openInNewWindow(c,l,n);else if(null!=l&&"text/html"==l.substring(0,9)){var L=new EmbedDialog(this,c);this.showDialog(L.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));L.init()}else{var N=window.open("about:blank");null==N?mxUtils.popup(c,!0):(N.document.write("<pre>"+mxUtils.htmlEntities(c,
+!1)+"</pre>"),N.document.close())}else if(W==App.MODE_DEVICE||"download"==W)this.doSaveLocalFile(c,T,l,n,null,C);else if(null!=T&&0<T.length){var M=mxUtils.bind(this,function(m){try{this.exportFile(c,T,l,n,W,m)}catch(y){this.handleError(y)}});null!=z?M(z):this.pickFolder(W,M)}}catch(m){this.handleError(m)}});u=[];x||u.push(App.MODE_BROWSER);B||u.push("_blank");var I=new SaveDialog(this,g,mxUtils.bind(this,function(T,W,q){K(T.value,W,T,q);this.hideDialog(null,null,I.container)}),u,c,l,n,E);this.showDialog(I.container,
420,110,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));I.init()};EditorUi.prototype.openInNewWindow=function(c,g,l){var n=window.open("about:blank");if(null==n||null==n.document)mxUtils.popup(c,!0);else{var u="background: light-dark(rgb(255, 255, 255), rgb(18, 18, 18))";if("image/svg+xml"==g){var x=mxUtils.parseXml(c).documentElement.style.backgroundColor;""!=x&&(u="background: "+x+";")}u='<html><head><meta charset="UTF-8"></head><body style="color-scheme: light dark; '+u+'">';"image/svg+xml"!=
g||mxClient.IS_SVG?"image/svg+xml"!=g||l?(x=l?c:btoa(unescape(encodeURIComponent(c))),n.document.write(u+'<img style="max-width:100%;" src="data:'+g+";base64,"+x+'"/></body></html>')):n.document.write(u+c+"</body></html>"):n.document.write(u+"<pre>"+mxUtils.htmlEntities(c,!1)+"</pre></body></html>");n.document.close()}};var d=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(c){if(null!=urlParams.tags){var g=null;try{var l=urlParams.tags;try{l=decodeURIComponent(l)}catch(C){}g=JSON.parse(l)}catch(C){}if(null!=g){var n=this.editor.graph,u=mxUtils.bind(this,function(){var C=null!=this.currentPage?this.currentPage.getId():0;C=g[C];n.hiddenTags=null!=C&&0<C.length?C:[];n.refresh()});this.editor.addListener("fileLoaded",mxUtils.bind(this,function(){u();n.isLightboxView()&&
this.lightboxFit();this.chromelessResize&&this.chromelessResize()}));this.editor.addListener("pageSelected",u)}this.tagsDialog=this.tagsComponent=null;var x=c(mxUtils.bind(this,function(C){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.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,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),
-this.tagsDialog=null;else{this.tagsDialog=this.tagsComponent.div;mxEvent.addListener(this.tagsDialog,"mouseleave",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null)}));var F=x.getBoundingClientRect();this.tagsDialog.style.left=F.left+"px";this.tagsDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";F=mxUtils.getCurrentStyle(this.editor.graph.container);this.tagsDialog.style.zIndex=
-F.zIndex;document.body.appendChild(this.tagsDialog);this.tagsComponent.refresh();this.editor.fireEvent(new mxEventObject("tagsDialogShown"))}mxEvent.consume(C)}),Editor.tagsImage,mxResources.get("tags"));this.editor.graph.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var C=this.editor.graph.getAllTags();x.style.display=0<C.length?"":"none"}))}d.apply(this,arguments);this.editor.addListener("tagsDialogShown",mxUtils.bind(this,function(){null!=this.layersDialog&&(this.layersDialog.parentNode.removeChild(this.layersDialog),
+this.tagsDialog=null;else{this.tagsDialog=this.tagsComponent.div;mxEvent.addListener(this.tagsDialog,"mouseleave",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null)}));var E=x.getBoundingClientRect();this.tagsDialog.style.left=E.left+"px";this.tagsDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";E=mxUtils.getCurrentStyle(this.editor.graph.container);this.tagsDialog.style.zIndex=
+E.zIndex;document.body.appendChild(this.tagsDialog);this.tagsComponent.refresh();this.editor.fireEvent(new mxEventObject("tagsDialogShown"))}mxEvent.consume(C)}),Editor.tagsImage,mxResources.get("tags"));this.editor.graph.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var C=this.editor.graph.getAllTags();x.style.display=0<C.length?"":"none"}))}d.apply(this,arguments);this.editor.addListener("tagsDialogShown",mxUtils.bind(this,function(){null!=this.layersDialog&&(this.layersDialog.parentNode.removeChild(this.layersDialog),
this.layersDialog=null)}));this.editor.addListener("layersDialogShown",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null)}));this.editor.addListener("pageSelected",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null);null!=this.layersDialog&&(this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null)}));mxEvent.addListener(this.editor.graph.container,
-"click",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null);null!=this.layersDialog&&(this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null)}));if(this.editor.isExportToCanvas()&&this.isChromelessImageExportEnabled()&&"1"!=urlParams.noExport){this.exportDialog=null;var B=c(mxUtils.bind(this,function(C){var F=mxUtils.bind(this,function(){mxEvent.removeListener(this.editor.graph.container,"click",
-F);null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null)});if(null!=this.exportDialog)F.apply(this);else{this.exportDialog=document.createElement("div");var K=B.getBoundingClientRect();mxUtils.setPrefixedStyle(this.exportDialog.style,"borderRadius","5px");this.exportDialog.style.position="fixed";this.exportDialog.style.textAlign="center";this.exportDialog.style.fontFamily=Editor.defaultHtmlFont;this.exportDialog.style.backgroundColor="#000000";
+"click",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null);null!=this.layersDialog&&(this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null)}));if(this.editor.isExportToCanvas()&&this.isChromelessImageExportEnabled()&&"1"!=urlParams.noExport){this.exportDialog=null;var B=c(mxUtils.bind(this,function(C){var E=mxUtils.bind(this,function(){mxEvent.removeListener(this.editor.graph.container,"click",
+E);null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null)});if(null!=this.exportDialog)E.apply(this);else{this.exportDialog=document.createElement("div");var K=B.getBoundingClientRect();mxUtils.setPrefixedStyle(this.exportDialog.style,"borderRadius","5px");this.exportDialog.style.position="fixed";this.exportDialog.style.textAlign="center";this.exportDialog.style.fontFamily=Editor.defaultHtmlFont;this.exportDialog.style.backgroundColor="#000000";
this.exportDialog.style.width="50px";this.exportDialog.style.height="50px";this.exportDialog.style.padding="4px 2px 4px 2px";this.exportDialog.style.color="#ffffff";mxUtils.setOpacity(this.exportDialog,80);this.exportDialog.style.left=K.left+"px";this.exportDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";K=mxUtils.getCurrentStyle(this.editor.graph.container);this.exportDialog.style.zIndex=K.zIndex;var I=new Spinner({lines:8,length:6,width:5,
-radius:6,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"28px",zIndex:2E9});I.spin(this.exportDialog);document.body.appendChild(this.exportDialog);mxEvent.addListener(this.editor.graph.container,"click",F);this.editor.exportToCanvas(mxUtils.bind(this,function(R){I.stop();this.exportDialog.style.width="auto";this.exportDialog.style.height="auto";this.exportDialog.style.padding="10px";var W=this.createImageDataUri(R,null,"png");R=document.createElement("img");
-R.style.maxWidth="140px";R.style.maxHeight="140px";R.style.cursor="pointer";R.style.backgroundColor="white";R.setAttribute("title",mxResources.get("openInNewWindow"));R.setAttribute("border","0");R.setAttribute("src",W);this.exportDialog.appendChild(R);mxEvent.addListener(R,"click",mxUtils.bind(this,function(){this.openInNewWindow(W.substring(W.indexOf(",")+1),"image/png",!0);F.apply(this,arguments)}))}),null,this.thumbImageCache,null,mxUtils.bind(this,function(R){I.stop();null!=this.exportDialog&&
-null!=this.exportDialog.parentNode&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);this.handleError(R)}),null,null,null,null,null,null,null,Editor.defaultBorder)}mxEvent.consume(C)}),Editor.cameraImage,mxResources.get("export"))}};EditorUi.prototype.saveData=function(c,g,l,n,u,x){if("1"==urlParams.embed&&"json"==urlParams.proto&&this.embedExportProtocol){x=this.embedMessageSource||window.opener||window.parent;var B=this.createLoadMessage("export");B.format=g;
-B.filename=c;B.data=u?"data:"+n+";base64,"+l:l;B.xml=this.getFileData(!0);x.postMessage(JSON.stringify(B),"*")}else this.isLocalFileSave()?this.saveLocalFile(l,c,n,u,g,x):this.saveRequest(c,g,mxUtils.bind(this,function(C,F){return this.createEchoRequest(l,C,n,u,g,F)}),l,u,n)};EditorUi.prototype.saveRequest=function(c,g,l,n,u,x,B){B=null!=B?B:!mxClient.IS_IOS||!navigator.standalone;var C=mxUtils.bind(this,function(K,I,R,W){if("_blank"==I||null!=K&&0<K.length){var q=l("_blank"==I?null:K,I==App.MODE_DEVICE||
-"download"==I||null==I||"_blank"==I?"0":"1");null!=q&&(I==App.MODE_DEVICE||"download"==I||"_blank"==I?q.simulate(document,"_blank"):(R=mxUtils.bind(this,function(z){x=null!=x?x:"pdf"==g?"application/pdf":"image/"+g;if(null!=n)try{this.exportFile(n,K,x,!0,I,z)}catch(L){this.handleError(L)}else this.spinner.spin(document.body,mxResources.get("saving"))&&q.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=q.getStatus()&&299>=q.getStatus())try{this.exportFile(q.getText(),K,x,!0,I,z)}catch(L){this.handleError(L)}else this.handleError({message:mxResources.get("errorSavingFile")})}),
-mxUtils.bind(this,function(L){this.spinner.stop();this.handleError(L)}))}),null!=W?R(W):this.pickFolder(I,R)))}});u=[App.MODE_BROWSER];B||u.push("_blank");var F=new SaveDialog(this,c,mxUtils.bind(this,function(K,I,R){C(K.value,I,K,R);this.hideDialog(null,null,F.container)}),u,null,"application/pdf");this.showDialog(F.container,420,110,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));F.init()};EditorUi.prototype.isServices=function(c){return 1!=c};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};
-EditorUi.prototype.exportFile=function(c,g,l,n,u,x){};EditorUi.prototype.getServiceForName=function(c){return null};EditorUi.prototype.getTitleForService=function(c){return mxResources.get(c)};EditorUi.prototype.pickFolder=function(c,g,l){g(null)};EditorUi.prototype.exportSvg=function(c,g,l,n,u,x,B,C,F,K,I,R,W,q){if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(X){Editor.addRetryToError(X,mxUtils.bind(this,function(){this.exportSvg(c,g,l,n,u,x,B,C,F,K,I,R,
+radius:6,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"28px",zIndex:2E9});I.spin(this.exportDialog);document.body.appendChild(this.exportDialog);mxEvent.addListener(this.editor.graph.container,"click",E);this.editor.exportToCanvas(mxUtils.bind(this,function(T){I.stop();this.exportDialog.style.width="auto";this.exportDialog.style.height="auto";this.exportDialog.style.padding="10px";var W=this.createImageDataUri(T,null,"png");T=document.createElement("img");
+T.style.maxWidth="140px";T.style.maxHeight="140px";T.style.cursor="pointer";T.style.backgroundColor="white";T.setAttribute("title",mxResources.get("openInNewWindow"));T.setAttribute("border","0");T.setAttribute("src",W);this.exportDialog.appendChild(T);mxEvent.addListener(T,"click",mxUtils.bind(this,function(){this.openInNewWindow(W.substring(W.indexOf(",")+1),"image/png",!0);E.apply(this,arguments)}))}),null,this.thumbImageCache,null,mxUtils.bind(this,function(T){I.stop();null!=this.exportDialog&&
+null!=this.exportDialog.parentNode&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);this.handleError(T)}),null,null,null,null,null,null,null,Editor.defaultBorder)}mxEvent.consume(C)}),Editor.cameraImage,mxResources.get("export"))}};EditorUi.prototype.saveData=function(c,g,l,n,u,x){if("1"==urlParams.embed&&"json"==urlParams.proto&&this.embedExportProtocol){x=this.embedMessageSource||window.opener||window.parent;var B=this.createLoadMessage("export");B.format=g;
+B.filename=c;B.data=u?"data:"+n+";base64,"+l:l;B.xml=this.getFileData(!0);x.postMessage(JSON.stringify(B),"*")}else this.isLocalFileSave()?this.saveLocalFile(l,c,n,u,g,x):this.saveRequest(c,g,mxUtils.bind(this,function(C,E){return this.createEchoRequest(l,C,n,u,g,E)}),l,u,n)};EditorUi.prototype.saveRequest=function(c,g,l,n,u,x,B){B=null!=B?B:!mxClient.IS_IOS||!navigator.standalone;var C=mxUtils.bind(this,function(K,I,T,W){if("_blank"==I||null!=K&&0<K.length){var q=l("_blank"==I?null:K,I==App.MODE_DEVICE||
+"download"==I||null==I||"_blank"==I?"0":"1");null!=q&&(I==App.MODE_DEVICE||"download"==I||"_blank"==I?q.simulate(document,"_blank"):(T=mxUtils.bind(this,function(z){x=null!=x?x:"pdf"==g?"application/pdf":"image/"+g;if(null!=n)try{this.exportFile(n,K,x,!0,I,z)}catch(L){this.handleError(L)}else this.spinner.spin(document.body,mxResources.get("saving"))&&q.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=q.getStatus()&&299>=q.getStatus())try{this.exportFile(q.getText(),K,x,!0,I,z)}catch(L){this.handleError(L)}else this.handleError({message:mxResources.get("errorSavingFile")})}),
+mxUtils.bind(this,function(L){this.spinner.stop();this.handleError(L)}))}),null!=W?T(W):this.pickFolder(I,T)))}});u=[App.MODE_BROWSER];B||u.push("_blank");var E=new SaveDialog(this,c,mxUtils.bind(this,function(K,I,T){C(K.value,I,K,T);this.hideDialog(null,null,E.container)}),u,null,"application/pdf");this.showDialog(E.container,420,110,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));E.init()};EditorUi.prototype.isServices=function(c){return 1!=c};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};
+EditorUi.prototype.exportFile=function(c,g,l,n,u,x){};EditorUi.prototype.getServiceForName=function(c){return null};EditorUi.prototype.getTitleForService=function(c){return mxResources.get(c)};EditorUi.prototype.pickFolder=function(c,g,l){g(null)};EditorUi.prototype.exportSvg=function(c,g,l,n,u,x,B,C,E,K,I,T,W,q){if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(X){Editor.addRetryToError(X,mxUtils.bind(this,function(){this.exportSvg(c,g,l,n,u,x,B,C,E,K,I,T,
W,q)}));this.handleError(X)})))try{var z=this.editor.graph.isSelectionEmpty();l=null!=l?l:z;var L=g?null:this.editor.graph.background;L==mxConstants.NONE&&(L=null);null==L&&0==g&&(L=this.editor.graph.shapeBackgroundColor);var N=this.editor.graph.addForeignObjectWarning;Editor.foreignObjectImages&&(this.editor.graph.addForeignObjectWarning=function(){});var M=mxUtils.lightDarkColorSupported,m=mxUtils.preferDarkColor;if("light"==I||"dark"==I)mxUtils.lightDarkColorSupported=!1,mxUtils.preferDarkColor=
-"dark"==I;var y=Graph.addFont,E={};Graph.addFont=function(X,Z,aa,da){y.call(this,X,Z,aa,E)};var P=this.editor.graph.createSvgImageExport(u),O=P.drawCellState;P.drawCellState=function(X,Z){null!=X&&Graph.processFontStyle(X.style);O.apply(this,arguments)};var T=this.editor.graph.getSvg(L,c,B,C,null,l,null,P,"blank"==K?"_blank":"self"==K?"_top":null,null,!W,I,R);mxUtils.lightDarkColorSupported=M;mxUtils.preferDarkColor=m;this.editor.graph.addForeignObjectWarning=N;n&&this.editor.graph.addSvgShadow(T);
-var V=this.getBaseFilename()+(u?".drawio":"")+".svg";q=null!=q?q:mxUtils.bind(this,function(X){this.isLocalFileSave()||X.length<=MAX_REQUEST_SIZE?this.saveData(V,"svg",X,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(X)}))});var Q=mxUtils.bind(this,function(X){this.spinner.stop();u&&X.setAttribute("content",this.getFileData(!0,null,null,null,l,F,null,null,null,null,null,c,B));q(Graph.xmlDeclaration+
-"\n"+(u?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(X))});this.editor.graph.mathEnabled&&this.editor.addMathCss(T);var S=mxUtils.bind(this,function(X){Editor.replaceSvgDataUris&&x&&EditorUi.embedSvgImages(X);Editor.foreignObjectImages&&W?this.replaceAlternateContent(X,I,Q):Q(X)}),U=Graph.customFontElements;Graph.customFontElements=E;var Y=mxUtils.bind(this,function(X){Graph.customFontElements=U;Graph.addFont=y;x&&!this.isOffline()&&Editor.canvasSupported?(null==this.thumbImageCache&&
-(this.thumbImageCache={}),this.editor.convertImages(X,S,this.thumbImageCache)):S(X)});W?this.embedFonts(T,Y):(this.editor.addFontCss(T),Y(T))}catch(X){this.handleError(X)}};EditorUi.prototype.replaceAlternateContent=function(c,g,l){function n(R,W,q,z,L){var N=mxUtils.createElementNs(c.ownerDocument,mxConstants.NS_SVG,"image");N.setAttribute("x",W);N.setAttribute("y",q+.5);N.setAttribute("width",z.width);N.setAttribute("height",z.height);null==N.setAttributeNS?N.setAttribute("xlink:href",L):N.setAttributeNS(mxConstants.NS_XLINK,
-"xlink:href",L);R.replaceChild(N,R.lastChild);C()}function u(){if(B<I.length)I[B++](u)}var x="";g=c.getElementsByTagName("style");for(var B=0;B<g.length;B++)x+=g[B].innerHTML;g=c.getElementsByTagName("switch");counter=g.length;var C=mxUtils.bind(this,function(){counter--;0==counter&&l(c)}),F={},K={},I=[];for(B=0;B<g.length;B++)mxUtils.bind(this,function(R){var W=R.getElementsByTagName("div");if(0<W.length)try{var q=W[0].cloneNode(!0),z=parseInt(q.style.marginLeft),L=parseInt(q.style.paddingTop),N=
-q.getElementsByTagName("div")[1],M=W=!1,m=q.style.alignItems,y=q.style.justifyContent;if(null!=q.style.writingMode){var E=q.style.writingMode;M="vertical-"==E.substring(0,9);W="-rl"==E.substring(E.length-3)}var P=!M&&"1px"==q.style.width||M&&"1px"==q.style.height;if(!M&&"1px"==q.style.height||M&&"1px"==q.style.width)q.style.alignItems=M&&W?"unsafe flex-end":"unsafe flex-start";P&&(q.style.justifyContent="unsafe flex-start");q.style.paddingTop="";q.style.marginLeft="";var O=q.outerHTML,T=F[O];null==
-T&&(q.style.position="absolute",q.style.visibility="hidden",document.body.appendChild(q),E=1,E="1px"==q.style.width?N.offsetWidth:parseInt(q.style.width),P=1,P="1px"==q.style.height?N.offsetHeight:parseInt(q.style.height),document.body.removeChild(q),T=new mxRectangle(z,L,E,P),F[O]=T);"1px"==q.style.height&&("unsafe center"==m?L-=T.height/2:"unsafe flex-end"==m&&(L-=T.height));if("1px"==q.style.width)if(!M&&"unsafe center"==y||M&&"unsafe center"==m)z-=T.width/2;else if(!M&&"unsafe flex-end"==y||M&&
-(!W&&"unsafe flex-end"==m||W&&"unsafe flex-start"==m))z-=T.width;T=new mxRectangle(z,L,T.width,T.height+parseInt(N.style.fontSize)/4);I.push(mxUtils.bind(this,function(V){var Q=K[O];null==Q?Graph.htmlToPng(O,T.width,T.height,mxUtils.bind(this,function(S){n(R,z,L,T,S);K[O]=S;V()}),x):(n(R,z,L,T,Q),V())}))}catch(V){C()}else C()})(g[B]);0==counter&&l(c);B=0;u()};EditorUi.prototype.addRadiobox=function(c,g,l,n,u,x,B){return this.addCheckbox(c,l,n,u,x,B,!0,g)};EditorUi.prototype.addCheckbox=function(c,
-g,l,n,u,x,B,C,F){x=null!=x?x:!0;var K=document.createElement("input");K.style.marginRight="8px";K.setAttribute("type",B?"radio":"checkbox");B="geCheckbox-"+Editor.guid();K.id=B;null!=C&&K.setAttribute("name",C);l&&(K.setAttribute("checked","checked"),K.defaultChecked=!0);n&&K.setAttribute("disabled","disabled");x&&(F?(u=document.createElement("div"),u.className="geDialogCheckRow",u.appendChild(K),l=document.createElement("label"),mxUtils.write(l,g),l.setAttribute("for",B),u.appendChild(l),c.appendChild(u),
+"dark"==I;var y=Graph.addFont,F={};Graph.addFont=function(X,Z,aa,da){y.call(this,X,Z,aa,F)};var P=this.editor.graph.createSvgImageExport(u),O=P.drawCellState;P.drawCellState=function(X,Z){null!=X&&Graph.processFontStyle(X.style);O.apply(this,arguments)};var S=this.editor.graph.getSvg(L,c,B,C,null,l,null,P,"blank"==K?"_blank":"self"==K?"_top":null,null,!W,I,T);mxUtils.lightDarkColorSupported=M;mxUtils.preferDarkColor=m;this.editor.graph.addForeignObjectWarning=N;n&&this.editor.graph.addSvgShadow(S);
+var V=this.getBaseFilename()+(u?".drawio":"")+".svg";q=null!=q?q:mxUtils.bind(this,function(X){this.isLocalFileSave()||X.length<=MAX_REQUEST_SIZE?this.saveData(V,"svg",X,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(X)}))});var Q=mxUtils.bind(this,function(X){this.spinner.stop();u&&X.setAttribute("content",this.getFileData(!0,null,null,null,l,E,null,null,null,null,null,c,B));q(Graph.xmlDeclaration+
+"\n"+(u?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(X))});this.editor.graph.mathEnabled&&this.editor.addMathCss(S);var R=mxUtils.bind(this,function(X){Editor.replaceSvgDataUris&&x&&EditorUi.embedSvgImages(X);Editor.foreignObjectImages&&W?this.replaceAlternateContent(X,I,Q):Q(X)}),U=Graph.customFontElements;Graph.customFontElements=F;var Y=mxUtils.bind(this,function(X){Graph.customFontElements=U;Graph.addFont=y;x&&!this.isOffline()&&Editor.canvasSupported?(null==this.thumbImageCache&&
+(this.thumbImageCache={}),this.editor.convertImages(X,R,this.thumbImageCache)):R(X)});W?this.embedFonts(S,Y):(this.editor.addFontCss(S),Y(S))}catch(X){this.handleError(X)}};EditorUi.prototype.replaceAlternateContent=function(c,g,l){function n(T,W,q,z,L){var N=mxUtils.createElementNs(c.ownerDocument,mxConstants.NS_SVG,"image");N.setAttribute("x",W);N.setAttribute("y",q+.5);N.setAttribute("width",z.width);N.setAttribute("height",z.height);null==N.setAttributeNS?N.setAttribute("xlink:href",L):N.setAttributeNS(mxConstants.NS_XLINK,
+"xlink:href",L);T.replaceChild(N,T.lastChild);C()}function u(){if(B<I.length)I[B++](u)}var x="";g=c.getElementsByTagName("style");for(var B=0;B<g.length;B++)x+=g[B].innerHTML;g=c.getElementsByTagName("switch");counter=g.length;var C=mxUtils.bind(this,function(){counter--;0==counter&&l(c)}),E={},K={},I=[];for(B=0;B<g.length;B++)mxUtils.bind(this,function(T){var W=T.getElementsByTagName("div");if(0<W.length)try{var q=W[0].cloneNode(!0),z=parseInt(q.style.marginLeft),L=parseInt(q.style.paddingTop),N=
+q.getElementsByTagName("div")[1],M=W=!1,m=q.style.alignItems,y=q.style.justifyContent;if(null!=q.style.writingMode){var F=q.style.writingMode;M="vertical-"==F.substring(0,9);W="-rl"==F.substring(F.length-3)}var P=!M&&"1px"==q.style.width||M&&"1px"==q.style.height;if(!M&&"1px"==q.style.height||M&&"1px"==q.style.width)q.style.alignItems=M&&W?"unsafe flex-end":"unsafe flex-start";P&&(q.style.justifyContent="unsafe flex-start");q.style.paddingTop="";q.style.marginLeft="";var O=q.outerHTML,S=E[O];null==
+S&&(q.style.position="absolute",q.style.visibility="hidden",document.body.appendChild(q),F=1,F="1px"==q.style.width?N.offsetWidth:parseInt(q.style.width),P=1,P="1px"==q.style.height?N.offsetHeight:parseInt(q.style.height),document.body.removeChild(q),S=new mxRectangle(z,L,F,P),E[O]=S);"1px"==q.style.height&&("unsafe center"==m?L-=S.height/2:"unsafe flex-end"==m&&(L-=S.height));if("1px"==q.style.width)if(!M&&"unsafe center"==y||M&&"unsafe center"==m)z-=S.width/2;else if(!M&&"unsafe flex-end"==y||M&&
+(!W&&"unsafe flex-end"==m||W&&"unsafe flex-start"==m))z-=S.width;S=new mxRectangle(z,L,S.width,S.height+parseInt(N.style.fontSize)/4);I.push(mxUtils.bind(this,function(V){var Q=K[O];null==Q?Graph.htmlToPng(O,S.width,S.height,mxUtils.bind(this,function(R){n(T,z,L,S,R);K[O]=R;V()}),x):(n(T,z,L,S,Q),V())}))}catch(V){C()}else C()})(g[B]);0==counter&&l(c);B=0;u()};EditorUi.prototype.addRadiobox=function(c,g,l,n,u,x,B){return this.addCheckbox(c,l,n,u,x,B,!0,g)};EditorUi.prototype.addCheckbox=function(c,
+g,l,n,u,x,B,C,E){x=null!=x?x:!0;var K=document.createElement("input");K.style.marginRight="8px";K.setAttribute("type",B?"radio":"checkbox");B="geCheckbox-"+Editor.guid();K.id=B;null!=C&&K.setAttribute("name",C);l&&(K.setAttribute("checked","checked"),K.defaultChecked=!0);n&&K.setAttribute("disabled","disabled");x&&(E?(u=document.createElement("div"),u.className="geDialogCheckRow",u.appendChild(K),l=document.createElement("label"),mxUtils.write(l,g),l.setAttribute("for",B),u.appendChild(l),c.appendChild(u),
K.checkRow=u):(K.style.marginTop="16px",c.appendChild(K),l=document.createElement("label"),mxUtils.write(l,g),l.setAttribute("for",B),c.appendChild(l),u||mxUtils.br(c)));return K};EditorUi.prototype.addEditButton=function(c,g){var l=document.createElement("div");l.className="geDialogCheckRow";l.style.paddingLeft="24px";var n=this.addCheckbox(l,mxResources.get("edit")+":",!0,null,!0);n.style.marginTop="0px";n.indent="24px";var u=this.getCurrentFile(),x="";null!=u&&u.getMode()!=App.MODE_DEVICE&&u.getMode()!=
App.MODE_BROWSER&&(x=window.location.href);var B=document.createElement("select");B.style.maxWidth="200px";B.style.width="auto";B.style.marginLeft="8px";B.style.marginRight="10px";B.className="geBtn";u=document.createElement("option");u.setAttribute("value","blank");mxUtils.write(u,mxResources.get("makeCopy"));B.appendChild(u);var C=document.createElement("option");C.setAttribute("value","custom");mxUtils.write(C,mxResources.get("custom")+"...");B.appendChild(C);l.appendChild(B);c.appendChild(l);
-mxEvent.addListener(B,"change",mxUtils.bind(this,function(){if("custom"==B.value){var F=new FilenameDialog(this,x,mxResources.get("ok"),function(K){null!=K?(x=K,C.setAttribute("title",K)):(B.value="blank",C.removeAttribute("title"))},mxResources.get("url"),null,null,null,null,function(){B.value="blank"});this.showDialog(F.container,300,80,!0,!1);F.init()}}));mxEvent.addListener(n,"change",mxUtils.bind(this,function(){n.checked&&(null==g||g.checked)?B.removeAttribute("disabled"):B.setAttribute("disabled",
-"disabled")}));return{getLink:function(){return n.checked?"blank"===B.value?"_blank":x:null},getEditInput:function(){return n},getEditSelect:function(){return B},getEditRow:function(){return l}}};EditorUi.prototype.addLinkSection=function(c,g){function l(){var F=document.createElement("div");F.style.width="100%";F.style.height="100%";F.style.boxSizing="border-box";null!=B&&B!=mxConstants.NONE?(F.style.border="1px solid black",F.style.backgroundColor=B):(F.style.backgroundPosition="center center",
-F.style.backgroundRepeat="no-repeat",F.style.backgroundImage="url('"+Dialog.prototype.closeImage+"')");C.innerText="";C.appendChild(F)}var n=document.createElement("div");n.className="geDialogFormRow";var u=document.createElement("span");u.className="geDialogFormLabel";mxUtils.write(u,mxResources.get("links")+":");n.appendChild(u);var x=document.createElement("select");x.style.width="100px";x.style.padding="0px";x.style.marginRight="10px";x.className="geBtn";u=document.createElement("option");u.setAttribute("value",
+mxEvent.addListener(B,"change",mxUtils.bind(this,function(){if("custom"==B.value){var E=new FilenameDialog(this,x,mxResources.get("ok"),function(K){null!=K?(x=K,C.setAttribute("title",K)):(B.value="blank",C.removeAttribute("title"))},mxResources.get("url"),null,null,null,null,function(){B.value="blank"});this.showDialog(E.container,300,80,!0,!1);E.init()}}));mxEvent.addListener(n,"change",mxUtils.bind(this,function(){n.checked&&(null==g||g.checked)?B.removeAttribute("disabled"):B.setAttribute("disabled",
+"disabled")}));return{getLink:function(){return n.checked?"blank"===B.value?"_blank":x:null},getEditInput:function(){return n},getEditSelect:function(){return B},getEditRow:function(){return l}}};EditorUi.prototype.addLinkSection=function(c,g){function l(){var E=document.createElement("div");E.style.width="100%";E.style.height="100%";E.style.boxSizing="border-box";null!=B&&B!=mxConstants.NONE?(E.style.border="1px solid black",E.style.backgroundColor=B):(E.style.backgroundPosition="center center",
+E.style.backgroundRepeat="no-repeat",E.style.backgroundImage="url('"+Dialog.prototype.closeImage+"')");C.innerText="";C.appendChild(E)}var n=document.createElement("div");n.className="geDialogFormRow";var u=document.createElement("span");u.className="geDialogFormLabel";mxUtils.write(u,mxResources.get("links")+":");n.appendChild(u);var x=document.createElement("select");x.style.width="100px";x.style.padding="0px";x.style.marginRight="10px";x.className="geBtn";u=document.createElement("option");u.setAttribute("value",
"auto");mxUtils.write(u,mxResources.get("automatic"));x.appendChild(u);u=document.createElement("option");u.setAttribute("value","blank");mxUtils.write(u,mxResources.get("openInNewWindow"));x.appendChild(u);u=document.createElement("option");u.setAttribute("value","self");mxUtils.write(u,mxResources.get("openInThisWindow"));x.appendChild(u);g&&(g=document.createElement("option"),g.setAttribute("value","frame"),mxUtils.write(g,mxResources.get("openInThisWindow")+" ("+mxResources.get("iframe")+")"),
-x.appendChild(g));n.appendChild(x);g=document.createElement("span");mxUtils.write(g,mxResources.get("borderColor")+":");n.appendChild(g);var B="#0000ff",C=null;C=mxUtils.button("",mxUtils.bind(this,function(F){this.pickColor(B||"none",function(K){B=K;l()});mxEvent.consume(F)}));l();C.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";C.style.marginLeft="4px";C.style.height="22px";C.style.width="22px";C.style.position="relative";C.style.top="1px";C.className="geColorBtn";n.appendChild(C);c.appendChild(n);
+x.appendChild(g));n.appendChild(x);g=document.createElement("span");mxUtils.write(g,mxResources.get("borderColor")+":");n.appendChild(g);var B="#0000ff",C=null;C=mxUtils.button("",mxUtils.bind(this,function(E){this.pickColor(B||"none",function(K){B=K;l()});mxEvent.consume(E)}));l();C.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";C.style.marginLeft="4px";C.style.height="22px";C.style.width="22px";C.style.position="relative";C.style.top="1px";C.className="geColorBtn";n.appendChild(C);c.appendChild(n);
return{getColor:function(){return B},getTarget:function(){return x.value},focus:function(){x.focus()}}};EditorUi.prototype.createUrlParameters=function(c,g,l,n,u,x){x=null!=x?x:[];l&&(x.push("lightbox=1"),"auto"!=c&&x.push("target="+c),null!=g&&g!=mxConstants.NONE&&x.push("highlight="+("#"==g.charAt(0)?g.substring(1):g)),null!=n&&0<n.length&&x.push("edit="+encodeURIComponent(n)),u&&x.push("layers=1"),this.editor.graph.foldingEnabled&&x.push("nav=1"));return x};EditorUi.prototype.createLink=function(c,
-g,l,n,u,x,B,C,F,K,I,R,W){var q=this.getCurrentFile();F=this.createUrlParameters(c,g,n,u,x,F);c=!0;null!=B?l="#U"+encodeURIComponent(B):C||null==q||""==q.getHash()?l="#R"+encodeURIComponent(l?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(l="#"+q.getHash(),c=!1);c&&null!=q&&null!=q.getTitle()&&q.getTitle()!=this.defaultFilename&&F.push("title="+encodeURIComponent(q.getTitle()));K&&1<l.length&&(F.push("open="+l.substring(1)),
-l="");I&&null!=this.currentPage&&F.push("page-id="+this.currentPage.getId());R&&F.push("transparent=1");null!=W&&F.push("dark="+W);return(n&&(null!=B||null!=q&&q.getMode()!=App.MODE_GITHUB&&q.getMode()!=App.MODE_GITLAB)?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<F.length?"?"+F.join("&"):"")+l};EditorUi.prototype.createHtml=function(c,g,l,n,u,x,B,C,F,K,I,R,W,q){this.getBasenames();
-var z={};""!=u&&u!=mxConstants.NONE&&(z.highlight=u);"auto"!==n&&(z.target=n);K||(z.lightbox=!1);z.nav=this.editor.graph.foldingEnabled;l=parseInt(l);isNaN(l)||100==l||(z.zoom=l/100);l=[];B&&(l.push("pages"),z.resize=!0,null!=this.pages&&null!=this.currentPage&&(z.page=mxUtils.indexOf(this.pages,this.currentPage)));g&&(l.push("zoom"),z.resize=!0);C&&l.push("layers");F&&(l.push("tags"),q&&(g=this.getHiddenTagsMap(),null!=g&&(z.hiddenTags=g)));null!=W&&(z["dark-mode"]=W);0<l.length&&(K&&l.push("lightbox"),
-z.toolbar=l.join(" "));null!=I&&0<I.length&&(z.edit=I);null!=c?z.url=c:z.xml=this.getFileData(!0,null,null,null,null,!B);x='<div class="mxgraph" style="'+(x?"max-width:100%;":"")+(""!=l?"border:1px solid transparent;":"")+'" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(z))+'"></div>';c=null!=c?"&fetch="+encodeURIComponent(c):"";R(x,'<script type="text/javascript" src="'+(0<c.length?("1"==urlParams.dev?"https://test.draw.io/embed2.js?dev=1":EditorUi.lightboxHost+"/embed2.js?")+c:"1"==urlParams.dev?
+g,l,n,u,x,B,C,E,K,I,T,W){var q=this.getCurrentFile();E=this.createUrlParameters(c,g,n,u,x,E);c=!0;null!=B?l="#U"+encodeURIComponent(B):C||null==q||""==q.getHash()?l="#R"+encodeURIComponent(l?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(l="#"+q.getHash(),c=!1);c&&null!=q&&null!=q.getTitle()&&q.getTitle()!=this.defaultFilename&&E.push("title="+encodeURIComponent(q.getTitle()));K&&1<l.length&&(E.push("open="+l.substring(1)),
+l="");I&&null!=this.currentPage&&E.push("page-id="+this.currentPage.getId());T&&E.push("transparent=1");null!=W&&E.push("dark="+W);return(n&&(null!=B||null!=q&&q.getMode()!=App.MODE_GITHUB&&q.getMode()!=App.MODE_GITLAB)?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<E.length?"?"+E.join("&"):"")+l};EditorUi.prototype.createHtml=function(c,g,l,n,u,x,B,C,E,K,I,T,W,q){this.getBasenames();
+var z={};""!=u&&u!=mxConstants.NONE&&(z.highlight=u);"auto"!==n&&(z.target=n);K||(z.lightbox=!1);z.nav=this.editor.graph.foldingEnabled;l=parseInt(l);isNaN(l)||100==l||(z.zoom=l/100);l=[];B&&(l.push("pages"),z.resize=!0,null!=this.pages&&null!=this.currentPage&&(z.page=mxUtils.indexOf(this.pages,this.currentPage)));g&&(l.push("zoom"),z.resize=!0);C&&l.push("layers");E&&(l.push("tags"),q&&(g=this.getHiddenTagsMap(),null!=g&&(z.hiddenTags=g)));null!=W&&(z["dark-mode"]=W);0<l.length&&(K&&l.push("lightbox"),
+z.toolbar=l.join(" "));null!=I&&0<I.length&&(z.edit=I);null!=c?z.url=c:z.xml=this.getFileData(!0,null,null,null,null,!B);x='<div class="mxgraph" style="'+(x?"max-width:100%;":"")+(""!=l?"border:1px solid transparent;":"")+'" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(z))+'"></div>';c=null!=c?"&fetch="+encodeURIComponent(c):"";T(x,'<script type="text/javascript" src="'+(0<c.length?("1"==urlParams.dev?"https://test.draw.io/embed2.js?dev=1":EditorUi.lightboxHost+"/embed2.js?")+c:"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(c,g,l,n){var u=document.createElement("div");u.style.whiteSpace="nowrap";var x=document.createElement("h3");mxUtils.write(x,mxResources.get("html"));x.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";u.appendChild(x);var B=document.createElement("div");B.style.cssText=
-"border-bottom:1px solid lightGray;padding-bottom:8px;margin-bottom:12px;";var C=document.createElement("input");C.style.cssText="margin-right:8px;margin-top:8px;margin-bottom:8px;";C.setAttribute("value","url");C.setAttribute("type","radio");C.setAttribute("name","type-embedhtmldialog");x=C.cloneNode(!0);x.setAttribute("value","copy");B.appendChild(x);var F=document.createElement("span");mxUtils.write(F,mxResources.get("includeCopyOfMyDiagram"));B.appendChild(F);mxUtils.br(B);B.appendChild(C);F=
-document.createElement("span");mxUtils.write(F,mxResources.get("publicDiagramUrl"));B.appendChild(F);var K=this.getCurrentFile();null==l&&null!=K&&K.constructor==window.DriveFile&&(F=document.createElement("a"),F.style.paddingLeft="12px",F.style.color="gray",F.style.cursor="pointer",mxUtils.write(F,mxResources.get("share")),B.appendChild(F),mxEvent.addListener(F,"click",mxUtils.bind(this,function(){this.hideDialog();this.drive.showPermissions(K.getId(),K)})));x.setAttribute("checked","checked");null==
-l&&C.setAttribute("disabled","disabled");u.appendChild(B);B=document.createElement("div");B.className="geDialogSection";var I=this.addLinkSection(B),R=document.createElement("select");R.style.maxWidth="260px";F=document.createElement("option");F.setAttribute("value","light");mxUtils.write(F,mxResources.get("light"));R.appendChild(F);F=document.createElement("option");F.setAttribute("value","dark");mxUtils.write(F,mxResources.get("dark"));R.appendChild(F);F=document.createElement("option");F.setAttribute("value",
-"auto");mxUtils.write(F,mxResources.get("automatic"));F.setAttribute("selected","selected");R.appendChild(F);F=document.createElement("div");F.className="geDialogFormRow";var W=document.createElement("span");W.className="geDialogFormLabel";mxUtils.write(W,mxResources.get("appearance")+":");F.appendChild(W);F.appendChild(R);B.appendChild(F);F=document.createElement("div");F.className="geDialogCheckRow";var q=document.createElement("input");q.setAttribute("type","checkbox");q.setAttribute("checked",
-"checked");q.defaultChecked=!0;q.style.marginRight="8px";F.appendChild(q);W=document.createElement("label");mxUtils.write(W,mxResources.get("zoom")+":");F.appendChild(W);var z=document.createElement("input");z.setAttribute("type","text");z.style.width="60px";z.style.marginLeft="4px";z.value="100%";F.appendChild(z);B.appendChild(F);var L=this.addCheckbox(B,mxResources.get("fit"),!0,null,null,null,null,null,!0);F=null!=this.pages&&1<this.pages.length;var N=this.addCheckbox(B,mxResources.get("allPages"),
-F,!F,null,null,null,null,!0),M=this.addCheckbox(B,mxResources.get("layers"),!0,null,null,null,null,null,!0),m=this.addCheckbox(B,mxResources.get("tags"),!0,null,null,null,null,null,!0),y=this.addCheckbox(B,mxResources.get("useCurrentSettings"),!0,null,null,null,null,null,!0);y.checkRow.style.paddingLeft="24px";var E=this.addCheckbox(B,mxResources.get("lightbox"),!0,null,null,null,null,null,!0);mxEvent.addListener(m,"change",function(){m.checked?y.removeAttribute("disabled"):y.setAttribute("disabled",
-"disabled")});var P=null;if(EditorUi.enableHtmlEditOption){P=this.addEditButton(B,E);var O=P.getEditInput();mxEvent.addListener(E,"change",function(){E.checked?O.removeAttribute("disabled"):O.setAttribute("disabled","disabled");O.checked&&E.checked?P.getEditSelect().removeAttribute("disabled"):P.getEditSelect().setAttribute("disabled","disabled")})}u.appendChild(B);c=new CustomDialog(this,u,mxUtils.bind(this,function(){n(C.checked?l:null,q.checked,z.value,I.getTarget(),I.getColor(),L.checked,N.checked,
-M.checked,m.checked,E.checked,null!=P?P.getLink():null,null!=R?R.value:null,m.checked&&y.checked)}),null,c,g);this.showDialog(c.container,360,null,!0,!0);x.focus()};EditorUi.prototype.showPublishLinkDialog=function(c,g,l,n,u,x,B,C,F,K,I,R){var W=document.createElement("div");W.style.whiteSpace="nowrap";var q=document.createElement("h3");mxUtils.write(q,c||mxResources.get("publish"));q.style.width="100%";q.style.textAlign="center";q.style.marginTop="0px";q.style.marginBottom="10px";W.appendChild(q);
+"border-bottom:1px solid lightGray;padding-bottom:8px;margin-bottom:12px;";var C=document.createElement("input");C.style.cssText="margin-right:8px;margin-top:8px;margin-bottom:8px;";C.setAttribute("value","url");C.setAttribute("type","radio");C.setAttribute("name","type-embedhtmldialog");x=C.cloneNode(!0);x.setAttribute("value","copy");B.appendChild(x);var E=document.createElement("span");mxUtils.write(E,mxResources.get("includeCopyOfMyDiagram"));B.appendChild(E);mxUtils.br(B);B.appendChild(C);E=
+document.createElement("span");mxUtils.write(E,mxResources.get("publicDiagramUrl"));B.appendChild(E);var K=this.getCurrentFile();null==l&&null!=K&&K.constructor==window.DriveFile&&(E=document.createElement("a"),E.style.paddingLeft="12px",E.style.color="gray",E.style.cursor="pointer",mxUtils.write(E,mxResources.get("share")),B.appendChild(E),mxEvent.addListener(E,"click",mxUtils.bind(this,function(){this.hideDialog();this.drive.showPermissions(K.getId(),K)})));x.setAttribute("checked","checked");null==
+l&&C.setAttribute("disabled","disabled");u.appendChild(B);B=document.createElement("div");B.className="geDialogSection";var I=this.addLinkSection(B),T=document.createElement("select");T.style.maxWidth="260px";E=document.createElement("option");E.setAttribute("value","light");mxUtils.write(E,mxResources.get("light"));T.appendChild(E);E=document.createElement("option");E.setAttribute("value","dark");mxUtils.write(E,mxResources.get("dark"));T.appendChild(E);E=document.createElement("option");E.setAttribute("value",
+"auto");mxUtils.write(E,mxResources.get("automatic"));E.setAttribute("selected","selected");T.appendChild(E);E=document.createElement("div");E.className="geDialogFormRow";var W=document.createElement("span");W.className="geDialogFormLabel";mxUtils.write(W,mxResources.get("appearance")+":");E.appendChild(W);E.appendChild(T);B.appendChild(E);E=document.createElement("div");E.className="geDialogCheckRow";var q=document.createElement("input");q.setAttribute("type","checkbox");q.setAttribute("checked",
+"checked");q.defaultChecked=!0;q.style.marginRight="8px";E.appendChild(q);W=document.createElement("label");mxUtils.write(W,mxResources.get("zoom")+":");E.appendChild(W);var z=document.createElement("input");z.setAttribute("type","text");z.style.width="60px";z.style.marginLeft="4px";z.value="100%";E.appendChild(z);B.appendChild(E);var L=this.addCheckbox(B,mxResources.get("fit"),!0,null,null,null,null,null,!0);E=null!=this.pages&&1<this.pages.length;var N=this.addCheckbox(B,mxResources.get("allPages"),
+E,!E,null,null,null,null,!0),M=this.addCheckbox(B,mxResources.get("layers"),!0,null,null,null,null,null,!0),m=this.addCheckbox(B,mxResources.get("tags"),!0,null,null,null,null,null,!0),y=this.addCheckbox(B,mxResources.get("useCurrentSettings"),!0,null,null,null,null,null,!0);y.checkRow.style.paddingLeft="24px";var F=this.addCheckbox(B,mxResources.get("lightbox"),!0,null,null,null,null,null,!0);mxEvent.addListener(m,"change",function(){m.checked?y.removeAttribute("disabled"):y.setAttribute("disabled",
+"disabled")});var P=null;if(EditorUi.enableHtmlEditOption){P=this.addEditButton(B,F);var O=P.getEditInput();mxEvent.addListener(F,"change",function(){F.checked?O.removeAttribute("disabled"):O.setAttribute("disabled","disabled");O.checked&&F.checked?P.getEditSelect().removeAttribute("disabled"):P.getEditSelect().setAttribute("disabled","disabled")})}u.appendChild(B);c=new CustomDialog(this,u,mxUtils.bind(this,function(){n(C.checked?l:null,q.checked,z.value,I.getTarget(),I.getColor(),L.checked,N.checked,
+M.checked,m.checked,F.checked,null!=P?P.getLink():null,null!=T?T.value:null,m.checked&&y.checked)}),null,c,g);this.showDialog(c.container,360,null,!0,!0);x.focus()};EditorUi.prototype.showPublishLinkDialog=function(c,g,l,n,u,x,B,C,E,K,I,T){var W=document.createElement("div");W.style.whiteSpace="nowrap";var q=document.createElement("h3");mxUtils.write(q,c||mxResources.get("publish"));q.style.width="100%";q.style.textAlign="center";q.style.marginTop="0px";q.style.marginBottom="10px";W.appendChild(q);
var z=document.createElement("select");z.className="geBtn";z.style.marginBottom="8px";z.style.marginLeft="0px";z.style.width="100%";z.style.boxSizing="border-box";if(null==C||""==C.getHash())u=null!=u?u:"https://www.drawio.com/doc/faq/publish-diagram-as-link",c=document.createElement("option"),mxUtils.write(c,mxResources.get("makeCopy")),c.setAttribute("value","copy"),z.appendChild(c);c=document.createElement("option");mxUtils.write(c,mxResources.get("authorizationRequired"));c.setAttribute("value",
"auth");z.appendChild(c);null!=C&&""!=C.getHash()||c.setAttribute("disabled","disabled");C=document.createElement("option");C.setAttribute("value","public");z.appendChild(C);null!=B?(mxUtils.write(C,mxResources.get("publicDiagramUrl")),C.setAttribute("title",B),z.value="public"):(mxUtils.write(C,mxResources.get("publicDiagramUrl")+" ("+mxResources.get("diagramIsNotPublic")+")"),C.setAttribute("disabled","disabled"));W.appendChild(z);mxUtils.br(W);z.focus();B=document.createElement("div");B.className=
"geDialogSection";var L=null,N=null;if(null!=g||null!=l)g=document.createElement("div"),g.className="geDialogInlineFields",C=document.createElement("div"),C.className="geDialogInlineField",c=document.createElement("label"),mxUtils.write(c,mxResources.get("width")+":"),C.appendChild(c),L=document.createElement("input"),L.setAttribute("type","text"),L.value="100%",C.appendChild(L),g.appendChild(C),C=document.createElement("div"),C.className="geDialogInlineField",c=document.createElement("label"),mxUtils.write(c,
mxResources.get("height")+":"),C.appendChild(c),N=document.createElement("input"),N.setAttribute("type","text"),N.value=l+"px",C.appendChild(N),g.appendChild(C),B.appendChild(g);var M=this.addLinkSection(B,n),m=K?this.addCheckbox(B,mxResources.get("transparentBackground"),!1,null,null,null,null,null,!0):null,y=document.createElement("select");y.className="geBtn";l=document.createElement("option");mxUtils.write(l,mxResources.get("allPages"));l.setAttribute("value","allPages");y.appendChild(l);l=document.createElement("option");
-mxUtils.write(l,mxResources.get("currentPage"));l.setAttribute("value","currentPage");y.appendChild(l);var E=null;null!=this.pages&&null!=this.currentPage&&0<this.getPageIndex(this.currentPage)&&(l=null!=this.currentPage?this.currentPage.getName():"",16<l.length&&(l=l.substring(0,16)+"..."),R&&(R=document.createElement("div"),R.className="geDialogFormRow",K=document.createElement("span"),K.className="geDialogFormLabel",mxUtils.write(K,mxResources.get("pages")+":"),R.appendChild(K),R.appendChild(y),
-B.appendChild(R)),E=this.addCheckbox(B,mxResources.get("selectedPage")+": "+l,null,null,null,null,null,null,!0));var P=document.createElement("select");P.style.maxWidth="260px";R=document.createElement("option");R.setAttribute("value","0");mxUtils.write(R,mxResources.get("light"));P.appendChild(R);R=document.createElement("option");R.setAttribute("value","1");mxUtils.write(R,mxResources.get("dark"));P.appendChild(R);R=document.createElement("option");R.setAttribute("value","auto");mxUtils.write(R,
-mxResources.get("automatic"));R.setAttribute("selected","selected");P.appendChild(R);I&&(I=document.createElement("div"),I.className="geDialogFormRow",R=document.createElement("span"),R.className="geDialogFormLabel",mxUtils.write(R,mxResources.get("appearance")+":"),I.appendChild(R),I.appendChild(P),B.appendChild(I));var O=this.addCheckbox(B,mxResources.get("lightbox"),!0,null,null,!n,null,null,!0),T=this.addEditButton(B,O),V=T.getEditInput();n&&(null!=O.checkRow&&(O.checkRow.style.display="none"),
-dy-=20);var Q=this.addCheckbox(B,mxResources.get("layers"),!0,null,null,null,null,null,!0);Q.checkRow.style.paddingLeft="24px";var S=this.addCheckbox(B,mxResources.get("tags"),!0,null,null,null,null,null,!0);S.checkRow.style.paddingLeft="24px";var U=this.addCheckbox(B,mxResources.get("useCurrentSettings"),!0,null,null,null,null,null,!0);U.checkRow.style.paddingLeft="48px";W.appendChild(B);mxEvent.addListener(S,"change",function(){S.checked?U.removeAttribute("disabled"):U.setAttribute("disabled","disabled")});
-mxEvent.addListener(O,"change",function(){O.checked?(Q.removeAttribute("disabled"),V.removeAttribute("disabled"),S.removeAttribute("disabled"),S.checked&&U.removeAttribute("disabled")):(Q.setAttribute("disabled","disabled"),V.setAttribute("disabled","disabled"),S.setAttribute("disabled","disabled"),U.setAttribute("disabled","disabled"));V.checked&&O.checked?T.getEditSelect().removeAttribute("disabled"):T.getEditSelect().setAttribute("disabled","disabled")});n=new CustomDialog(this,W,mxUtils.bind(this,
-function(){F(M.getTarget(),M.getColor(),null==E?!1:E.checked,O.checked,T.getLink(),Q.checked,null!=L?L.value:null,null!=N?N.value:null,S.checked,z.value,null!=m?m.checked:!1,P.value,"allPages"==y.value,S.checked&&U.checked)}),null,mxResources.get("create"),u,x);this.showDialog(n.container,360,null,!0,!0);null!=L?(L.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?L.select():document.execCommand("selectAll",!1,null)):null==z.parentNode;M.focus()};EditorUi.prototype.showRemoteExportDialog=
+mxUtils.write(l,mxResources.get("currentPage"));l.setAttribute("value","currentPage");y.appendChild(l);var F=null;null!=this.pages&&null!=this.currentPage&&0<this.getPageIndex(this.currentPage)&&(l=null!=this.currentPage?this.currentPage.getName():"",16<l.length&&(l=l.substring(0,16)+"..."),T&&(T=document.createElement("div"),T.className="geDialogFormRow",K=document.createElement("span"),K.className="geDialogFormLabel",mxUtils.write(K,mxResources.get("pages")+":"),T.appendChild(K),T.appendChild(y),
+B.appendChild(T)),F=this.addCheckbox(B,mxResources.get("selectedPage")+": "+l,null,null,null,null,null,null,!0));var P=document.createElement("select");P.style.maxWidth="260px";T=document.createElement("option");T.setAttribute("value","0");mxUtils.write(T,mxResources.get("light"));P.appendChild(T);T=document.createElement("option");T.setAttribute("value","1");mxUtils.write(T,mxResources.get("dark"));P.appendChild(T);T=document.createElement("option");T.setAttribute("value","auto");mxUtils.write(T,
+mxResources.get("automatic"));T.setAttribute("selected","selected");P.appendChild(T);I&&(I=document.createElement("div"),I.className="geDialogFormRow",T=document.createElement("span"),T.className="geDialogFormLabel",mxUtils.write(T,mxResources.get("appearance")+":"),I.appendChild(T),I.appendChild(P),B.appendChild(I));var O=this.addCheckbox(B,mxResources.get("lightbox"),!0,null,null,!n,null,null,!0),S=this.addEditButton(B,O),V=S.getEditInput();n&&null!=O.checkRow&&(O.checkRow.style.display="none");
+var Q=this.addCheckbox(B,mxResources.get("layers"),!0,null,null,null,null,null,!0);Q.checkRow.style.paddingLeft="24px";var R=this.addCheckbox(B,mxResources.get("tags"),!0,null,null,null,null,null,!0);R.checkRow.style.paddingLeft="24px";var U=this.addCheckbox(B,mxResources.get("useCurrentSettings"),!0,null,null,null,null,null,!0);U.checkRow.style.paddingLeft="48px";W.appendChild(B);mxEvent.addListener(R,"change",function(){R.checked?U.removeAttribute("disabled"):U.setAttribute("disabled","disabled")});
+mxEvent.addListener(O,"change",function(){O.checked?(Q.removeAttribute("disabled"),V.removeAttribute("disabled"),R.removeAttribute("disabled"),R.checked&&U.removeAttribute("disabled")):(Q.setAttribute("disabled","disabled"),V.setAttribute("disabled","disabled"),R.setAttribute("disabled","disabled"),U.setAttribute("disabled","disabled"));V.checked&&O.checked?S.getEditSelect().removeAttribute("disabled"):S.getEditSelect().setAttribute("disabled","disabled")});n=new CustomDialog(this,W,mxUtils.bind(this,
+function(){E(M.getTarget(),M.getColor(),null==F?!1:F.checked,O.checked,S.getLink(),Q.checked,null!=L?L.value:null,null!=N?N.value:null,R.checked,z.value,null!=m?m.checked:!1,P.value,"allPages"==y.value,R.checked&&U.checked)}),null,mxResources.get("create"),u,x);this.showDialog(n.container,360,null,!0,!0);null!=L?(L.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?L.select():document.execCommand("selectAll",!1,null)):null==z.parentNode;M.focus()};EditorUi.prototype.showRemoteExportDialog=
function(c,g,l,n,u){var x=document.createElement("div");x.style.whiteSpace="nowrap";var B=document.createElement("h3");mxUtils.write(B,mxResources.get("image"));B.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";x.appendChild(B);if(u){u=document.createElement("div");u.className="geDialogSection";B=document.createElement("div");B.className="geDialogFormRow";var C=document.createElement("span");C.className="geDialogFormLabel";mxUtils.write(C,mxResources.get("zoom")+":");
-B.appendChild(C);var F=document.createElement("input");F.setAttribute("type","text");F.value=this.lastExportZoom||"100%";B.appendChild(F);u.appendChild(B);B=document.createElement("div");B.className="geDialogFormRow";C=document.createElement("span");C.className="geDialogFormLabel";mxUtils.write(C,mxResources.get("borderWidth")+":");B.appendChild(C);var K=document.createElement("input");K.setAttribute("type","text");K.value=this.lastExportBorder||"0";B.appendChild(K);u.appendChild(B);x.appendChild(u)}u=
-document.createElement("div");u.className="geDialogSection";var I=this.addCheckbox(u,mxResources.get("selectionOnly"),!1,this.editor.graph.isSelectionEmpty()),R=n?null:this.addCheckbox(u,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram);B=this.editor.graph;var W=n?null:this.addCheckbox(u,mxResources.get("transparentBackground"),B.background==mxConstants.NONE||null==B.background);x.appendChild(u);c=new CustomDialog(this,x,mxUtils.bind(this,function(){var q=parseInt(F.value)/100||
-1,z=parseInt(K.value)||0;l(!I.checked,null!=R?R.checked:!1,null!=W?W.checked:!1,q,z)}),null,c,g);this.showDialog(c.container,340,null,!0,!0)};EditorUi.prototype.showExportDialog=function(c,g,l,n,u,x,B,C,F){B=null!=B?B:Editor.defaultIncludeDiagram;var K=document.createElement("div");K.style.whiteSpace="nowrap";var I=this.editor.graph,R=document.createElement("h3");mxUtils.write(R,c);R.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";K.appendChild(R);c=document.createElement("div");
-c.className="geDialogSection";R=document.createElement("div");R.className="geDialogFormRow";var W=document.createElement("span");W.className="geDialogFormLabel";mxUtils.write(W,mxResources.get("zoom")+":");R.appendChild(W);var q=document.createElement("input");q.setAttribute("type","text");q.value=this.lastExportZoom||"100%";R.appendChild(q);c.appendChild(R);R=document.createElement("div");R.className="geDialogFormRow";W=document.createElement("span");W.className="geDialogFormLabel";mxUtils.write(W,
-mxResources.get("borderWidth")+":");R.appendChild(W);var z=document.createElement("input");z.setAttribute("type","text");z.value=this.lastExportBorder||"0";R.appendChild(z);c.appendChild(R);K.appendChild(c);c=document.createElement("div");c.className="geDialogSection";var L=this.addCheckbox(c,mxResources.get("selectionOnly"),!1,I.isSelectionEmpty()),N=document.createElement("input");N.setAttribute("disabled","disabled");N.setAttribute("type","checkbox");var M=document.createElement("select");M.style.marginLeft=
-"8px";R=["selectionOnly","diagram","page"];for(W=0;W<R.length;W++)if(!I.isSelectionEmpty()||"selectionOnly"!=R[W]){var m=document.createElement("option");mxUtils.write(m,mxResources.get(R[W]));m.setAttribute("value",R[W]);M.appendChild(m)}F?(x=document.createElement("div"),x.className="geDialogFormRow",R=document.createElement("span"),R.className="geDialogFormLabel",mxUtils.write(R,mxResources.get("size")+":"),x.appendChild(R),M.style.marginLeft="0",x.appendChild(M),c.appendChild(x),mxEvent.addListener(M,
-"change",function(){"selectionOnly"==M.value&&(L.checked=!0)})):x&&(x=document.createElement("div"),x.className="geDialogCheckRow",x.style.marginTop="8px",x.appendChild(N),R=document.createElement("label"),mxUtils.write(R,mxResources.get("crop")),x.appendChild(R),c.appendChild(x),mxEvent.addListener(L,"change",function(){L.checked?N.removeAttribute("disabled"):N.setAttribute("disabled","disabled")}));I.isSelectionEmpty()?F&&(L.style.display="none",L.nextSibling.style.display="none",L.nextSibling.nextSibling.style.display=
-"none"):(M.value="diagram",N.setAttribute("checked","checked"),N.defaultChecked=!0,mxEvent.addListener(L,"change",function(){M.value=L.checked?"selectionOnly":"diagram"}));var y=this.addCheckbox(c,mxResources.get("transparentBackground"),!1,null,null,"jpeg"!=C&&"webp"!=C),E=document.createElement("select");E.style.maxWidth="260px";F=document.createElement("option");F.setAttribute("value","light");mxUtils.write(F,mxResources.get("light"));E.appendChild(F);x=document.createElement("option");x.setAttribute("value",
-"dark");mxUtils.write(x,mxResources.get("dark"));E.appendChild(x);"svg"==C&&mxUtils.lightDarkColorSupported?(x=document.createElement("option"),x.setAttribute("value","auto"),mxUtils.write(x,mxResources.get("automatic")),x.setAttribute("selected","selected"),E.appendChild(x)):Editor.isDarkMode()?x.setAttribute("selected","selected"):F.setAttribute("selected","selected");F=document.createElement("div");F.className="geDialogFormRow";x=document.createElement("span");x.className="geDialogFormLabel";mxUtils.write(x,
-mxResources.get("appearance")+":");F.appendChild(x);F.appendChild(E);c.appendChild(F);var P=this.addCheckbox(c,mxResources.get("shadow"),I.shadowVisible),O=null;if("png"==C||"jpeg"==C||"webp"==C)O=this.addCheckbox(c,mxResources.get("grid"),!1,this.isOffline()||!Editor.canvasSupported,!1,!0);K.appendChild(c);I=document.createElement("div");I.className="geDialogSection";F=!1;c=null!=this.pages?this.pages.length:1;var T=this.addCheckbox(I,mxResources.get("includeCopyOfMyDiagram")+(1<c?":":""),B,null,
-null,"jpeg"!=C&&"webp"!=C,null,null,!0);"jpeg"!=C&&"webp"!=C&&(F=!0);var V=document.createElement("select");V.style.maxWidth="260px";if("png"==C||"svg"==C)B=function(){T.checked?V.removeAttribute("disabled"):V.setAttribute("disabled","disabled")},x=document.createElement("option"),x.setAttribute("value","allPages"),mxUtils.write(x,mxResources.get("allPages")),V.appendChild(x),x=document.createElement("option"),x.setAttribute("value","currentPage"),mxUtils.write(x,mxResources.get("currentPage")),V.appendChild(x),
-1<c&&(c=document.createElement("div"),c.style.paddingLeft="24px",c.appendChild(V),I.appendChild(c)),null!=this.lastEmbedInclude&&(V.value=this.lastEmbedInclude),mxEvent.addListener(T,"change",B),B();var Q=document.createElement("input");Q.setAttribute("type","checkbox");Q.id="geCheckbox-"+Editor.guid();var S=document.createElement("input");S.setAttribute("type","checkbox");S.id="geCheckbox-"+Editor.guid();g&&(Q.checked=null!=this.lastEmbedImages?this.lastEmbedImages:!0,F=document.createElement("div"),
-F.className="geDialogCheckRow",F.appendChild(Q),B=document.createElement("label"),mxUtils.write(B,mxResources.get("embedImages")),B.setAttribute("for",Q.id),F.appendChild(B),I.appendChild(F),S.checked=null!=this.lastEmbedFonts?this.lastEmbedImages:!0,F=document.createElement("div"),F.className="geDialogCheckRow",F.appendChild(S),B=document.createElement("label"),mxUtils.write(B,mxResources.get("embedFonts")),B.setAttribute("for",S.id),F.appendChild(B),I.appendChild(F),F=!0);var U=document.createElement("select");
+B.appendChild(C);var E=document.createElement("input");E.setAttribute("type","text");E.value=this.lastExportZoom||"100%";B.appendChild(E);u.appendChild(B);B=document.createElement("div");B.className="geDialogFormRow";C=document.createElement("span");C.className="geDialogFormLabel";mxUtils.write(C,mxResources.get("borderWidth")+":");B.appendChild(C);var K=document.createElement("input");K.setAttribute("type","text");K.value=this.lastExportBorder||"0";B.appendChild(K);u.appendChild(B);x.appendChild(u)}u=
+document.createElement("div");u.className="geDialogSection";var I=this.addCheckbox(u,mxResources.get("selectionOnly"),!1,this.editor.graph.isSelectionEmpty()),T=n?null:this.addCheckbox(u,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram);B=this.editor.graph;var W=n?null:this.addCheckbox(u,mxResources.get("transparentBackground"),B.background==mxConstants.NONE||null==B.background);x.appendChild(u);c=new CustomDialog(this,x,mxUtils.bind(this,function(){var q=parseInt(E.value)/100||
+1,z=parseInt(K.value)||0;l(!I.checked,null!=T?T.checked:!1,null!=W?W.checked:!1,q,z)}),null,c,g);this.showDialog(c.container,340,null,!0,!0)};EditorUi.prototype.showExportDialog=function(c,g,l,n,u,x,B,C,E){B=null!=B?B:Editor.defaultIncludeDiagram;var K=document.createElement("div");K.style.whiteSpace="nowrap";var I=this.editor.graph,T=document.createElement("h3");mxUtils.write(T,c);T.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";K.appendChild(T);c=document.createElement("div");
+c.className="geDialogSection";T=document.createElement("div");T.className="geDialogFormRow";var W=document.createElement("span");W.className="geDialogFormLabel";mxUtils.write(W,mxResources.get("zoom")+":");T.appendChild(W);var q=document.createElement("input");q.setAttribute("type","text");q.value=this.lastExportZoom||"100%";T.appendChild(q);c.appendChild(T);T=document.createElement("div");T.className="geDialogFormRow";W=document.createElement("span");W.className="geDialogFormLabel";mxUtils.write(W,
+mxResources.get("borderWidth")+":");T.appendChild(W);var z=document.createElement("input");z.setAttribute("type","text");z.value=this.lastExportBorder||"0";T.appendChild(z);c.appendChild(T);K.appendChild(c);c=document.createElement("div");c.className="geDialogSection";var L=this.addCheckbox(c,mxResources.get("selectionOnly"),!1,I.isSelectionEmpty()),N=document.createElement("input");N.setAttribute("disabled","disabled");N.setAttribute("type","checkbox");var M=document.createElement("select");M.style.marginLeft=
+"8px";T=["selectionOnly","diagram","page"];for(W=0;W<T.length;W++)if(!I.isSelectionEmpty()||"selectionOnly"!=T[W]){var m=document.createElement("option");mxUtils.write(m,mxResources.get(T[W]));m.setAttribute("value",T[W]);M.appendChild(m)}E?(x=document.createElement("div"),x.className="geDialogFormRow",T=document.createElement("span"),T.className="geDialogFormLabel",mxUtils.write(T,mxResources.get("size")+":"),x.appendChild(T),M.style.marginLeft="0",x.appendChild(M),c.appendChild(x),mxEvent.addListener(M,
+"change",function(){"selectionOnly"==M.value&&(L.checked=!0)})):x&&(x=document.createElement("div"),x.className="geDialogCheckRow",x.style.marginTop="8px",x.appendChild(N),T=document.createElement("label"),mxUtils.write(T,mxResources.get("crop")),x.appendChild(T),c.appendChild(x),mxEvent.addListener(L,"change",function(){L.checked?N.removeAttribute("disabled"):N.setAttribute("disabled","disabled")}));I.isSelectionEmpty()?E&&(L.style.display="none",L.nextSibling.style.display="none",L.nextSibling.nextSibling.style.display=
+"none"):(M.value="diagram",N.setAttribute("checked","checked"),N.defaultChecked=!0,mxEvent.addListener(L,"change",function(){M.value=L.checked?"selectionOnly":"diagram"}));var y=this.addCheckbox(c,mxResources.get("transparentBackground"),!1,null,null,"jpeg"!=C&&"webp"!=C),F=document.createElement("select");F.style.maxWidth="260px";E=document.createElement("option");E.setAttribute("value","light");mxUtils.write(E,mxResources.get("light"));F.appendChild(E);x=document.createElement("option");x.setAttribute("value",
+"dark");mxUtils.write(x,mxResources.get("dark"));F.appendChild(x);"svg"==C&&mxUtils.lightDarkColorSupported?(x=document.createElement("option"),x.setAttribute("value","auto"),mxUtils.write(x,mxResources.get("automatic")),x.setAttribute("selected","selected"),F.appendChild(x)):Editor.isDarkMode()?x.setAttribute("selected","selected"):E.setAttribute("selected","selected");E=document.createElement("div");E.className="geDialogFormRow";x=document.createElement("span");x.className="geDialogFormLabel";mxUtils.write(x,
+mxResources.get("appearance")+":");E.appendChild(x);E.appendChild(F);c.appendChild(E);var P=this.addCheckbox(c,mxResources.get("shadow"),I.shadowVisible),O=null;if("png"==C||"jpeg"==C||"webp"==C)O=this.addCheckbox(c,mxResources.get("grid"),!1,this.isOffline()||!Editor.canvasSupported,!1,!0);K.appendChild(c);I=document.createElement("div");I.className="geDialogSection";E=!1;c=null!=this.pages?this.pages.length:1;var S=this.addCheckbox(I,mxResources.get("includeCopyOfMyDiagram")+(1<c?":":""),B,null,
+null,"jpeg"!=C&&"webp"!=C,null,null,!0);"jpeg"!=C&&"webp"!=C&&(E=!0);var V=document.createElement("select");V.style.maxWidth="260px";if("png"==C||"svg"==C)B=function(){S.checked?V.removeAttribute("disabled"):V.setAttribute("disabled","disabled")},x=document.createElement("option"),x.setAttribute("value","allPages"),mxUtils.write(x,mxResources.get("allPages")),V.appendChild(x),x=document.createElement("option"),x.setAttribute("value","currentPage"),mxUtils.write(x,mxResources.get("currentPage")),V.appendChild(x),
+1<c&&(c=document.createElement("div"),c.style.paddingLeft="24px",c.appendChild(V),I.appendChild(c)),null!=this.lastEmbedInclude&&(V.value=this.lastEmbedInclude),mxEvent.addListener(S,"change",B),B();var Q=document.createElement("input");Q.setAttribute("type","checkbox");Q.id="geCheckbox-"+Editor.guid();var R=document.createElement("input");R.setAttribute("type","checkbox");R.id="geCheckbox-"+Editor.guid();g&&(Q.checked=null!=this.lastEmbedImages?this.lastEmbedImages:!0,E=document.createElement("div"),
+E.className="geDialogCheckRow",E.appendChild(Q),B=document.createElement("label"),mxUtils.write(B,mxResources.get("embedImages")),B.setAttribute("for",Q.id),E.appendChild(B),I.appendChild(E),R.checked=null!=this.lastEmbedFonts?this.lastEmbedImages:!0,E=document.createElement("div"),E.className="geDialogCheckRow",E.appendChild(R),B=document.createElement("label"),mxUtils.write(B,mxResources.get("embedFonts")),B.setAttribute("for",R.id),E.appendChild(B),I.appendChild(E),E=!0);var U=document.createElement("select");
U.style.maxWidth="260px";x=document.createElement("option");x.setAttribute("value","auto");mxUtils.write(x,mxResources.get("automatic"));U.appendChild(x);B=document.createElement("option");B.setAttribute("value","blank");mxUtils.write(B,mxResources.get("openInNewWindow"));U.appendChild(B);B=document.createElement("option");B.setAttribute("value","self");mxUtils.write(B,mxResources.get("openInThisWindow"));U.appendChild(B);B=document.createElement("div");mxUtils.write(B,mxResources.get("LinksLost"));
-B.style.margin="7px";B.style.display="none";"svg"==C&&(F=document.createElement("div"),F.className="geDialogFormRow",c=document.createElement("span"),c.className="geDialogFormLabel",mxUtils.write(c,mxResources.get("links")+":"),F.appendChild(c),F.appendChild(U),I.appendChild(F),I.appendChild(B),F=!0);F&&K.appendChild(I);l=new CustomDialog(this,K,mxUtils.bind(this,function(){this.lastExportBorder=z.value;this.lastExportZoom=q.value;this.lastEmbedImages=Q.checked;this.lastEmbedFonts=S.checked;this.lastEmbedInclude=
-V.value;u(q.value,y.checked,!L.checked,P.checked,T.checked,Q.checked&&g,z.value,N.checked,("png"==C||"svg"==C)&&"currentPage"==V.value,U.value,null!=O?O.checked:null,null!=E?E.value:null,M.value,S.checked)}),null,l,n);this.showDialog(l.container,360,null,!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(c,g,l,n,u){var x=document.createElement("div"),
-B=this.editor.graph;if(null!=g){var C=document.createElement("h3");mxUtils.write(C,g);C.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";x.appendChild(C)}g=document.createElement("div");g.className="geDialogSection";var F=this.addCheckbox(g,mxResources.get("fit"),!0,null,null,null,null,null,!0),K=this.addCheckbox(g,mxResources.get("shadow"),B.shadowVisible&&n,!n,null,null,null,null,!0),I=this.addCheckbox(g,l,!1,null,null,null,null,null,!0),R=this.addCheckbox(g,mxResources.get("lightbox"),
-!0,null,null,null,null,null,!0),W=this.addEditButton(g,R),q=W.getEditInput(),z=1<B.model.getChildCount(B.model.getRoot()),L=this.addCheckbox(g,mxResources.get("layers"),z,!z,null,null,null,null,!0);L.checkRow.style.paddingLeft="24px";x.appendChild(g);mxEvent.addListener(R,"change",function(){R.checked?(z&&L.removeAttribute("disabled"),q.removeAttribute("disabled")):(L.setAttribute("disabled","disabled"),q.setAttribute("disabled","disabled"));q.checked&&R.checked?W.getEditSelect().removeAttribute("disabled"):
-W.getEditSelect().setAttribute("disabled","disabled")});l=new CustomDialog(this,x,mxUtils.bind(this,function(){c(F.checked,K.checked,I.checked,R.checked,W.getLink(),L.checked)}),null,mxResources.get("embed"),u);this.showDialog(l.container,280,null,!0,!0)};EditorUi.prototype.createEmbedImage=function(c,g,l,n,u,x,B,C){function F(q){var z=" ",L="";n&&(z=" 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('"+
+B.style.margin="7px";B.style.display="none";"svg"==C&&(E=document.createElement("div"),E.className="geDialogFormRow",c=document.createElement("span"),c.className="geDialogFormLabel",mxUtils.write(c,mxResources.get("links")+":"),E.appendChild(c),E.appendChild(U),I.appendChild(E),I.appendChild(B),E=!0);E&&K.appendChild(I);l=new CustomDialog(this,K,mxUtils.bind(this,function(){this.lastExportBorder=z.value;this.lastExportZoom=q.value;this.lastEmbedImages=Q.checked;this.lastEmbedFonts=R.checked;this.lastEmbedInclude=
+V.value;u(q.value,y.checked,!L.checked,P.checked,S.checked,Q.checked&&g,z.value,N.checked,("png"==C||"svg"==C)&&"currentPage"==V.value,U.value,null!=O?O.checked:null,null!=F?F.value:null,M.value,R.checked)}),null,l,n);this.showDialog(l.container,360,null,!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(c,g,l,n,u){var x=document.createElement("div"),
+B=this.editor.graph;if(null!=g){var C=document.createElement("h3");mxUtils.write(C,g);C.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";x.appendChild(C)}g=document.createElement("div");g.className="geDialogSection";var E=this.addCheckbox(g,mxResources.get("fit"),!0,null,null,null,null,null,!0),K=this.addCheckbox(g,mxResources.get("shadow"),B.shadowVisible&&n,!n,null,null,null,null,!0),I=this.addCheckbox(g,l,!1,null,null,null,null,null,!0),T=this.addCheckbox(g,mxResources.get("lightbox"),
+!0,null,null,null,null,null,!0),W=this.addEditButton(g,T),q=W.getEditInput(),z=1<B.model.getChildCount(B.model.getRoot()),L=this.addCheckbox(g,mxResources.get("layers"),z,!z,null,null,null,null,!0);L.checkRow.style.paddingLeft="24px";x.appendChild(g);mxEvent.addListener(T,"change",function(){T.checked?(z&&L.removeAttribute("disabled"),q.removeAttribute("disabled")):(L.setAttribute("disabled","disabled"),q.setAttribute("disabled","disabled"));q.checked&&T.checked?W.getEditSelect().removeAttribute("disabled"):
+W.getEditSelect().setAttribute("disabled","disabled")});l=new CustomDialog(this,x,mxUtils.bind(this,function(){c(E.checked,K.checked,I.checked,T.checked,W.getLink(),L.checked)}),null,mxResources.get("embed"),u);this.showDialog(l.container,280,null,!0,!0)};EditorUi.prototype.createEmbedImage=function(c,g,l,n,u,x,B,C){function E(q){var z=" ",L="";n&&(z=" 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!=I?"&page="+I:"")+(u?"&edit=_blank":"")+(x?"&layers=1":"")+"');}})(this);\"",L+="cursor:pointer;");c&&(L+="max-width:100%;");var N="";l&&(N=' width="'+Math.round(K.width)+'" height="'+Math.round(K.height)+'"');B('<img src="'+q+'"'+N+(""!=L?' style="'+L+'"':"")+z+"/>")}var K=this.editor.graph.getGraphBounds(),I=this.getSelectedPageIndex();if(this.editor.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(q){var z=n?this.getFileData(!0):
-null;q=this.createImageDataUri(q,z,"png");F(q)}),null,null,null,mxUtils.bind(this,function(q){C({message:mxResources.get("unknownError")})}),null,!0,l?2:1,null,g,null,null,Editor.defaultBorder);else if(g=this.getFileData(!0),K.width*K.height<=MAX_AREA&&g.length<=MAX_REQUEST_SIZE){var R="";l&&(R="&w="+Math.round(2*K.width)+"&h="+Math.round(2*K.height));var W=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(n?"1":"0")+R+"&xml="+encodeURIComponent(g));W.send(mxUtils.bind(this,function(){200<=
-W.getStatus()&&299>=W.getStatus()?F("data:image/png;base64,"+W.getText()):C({message:mxResources.get("unknownError")})}))}else C({message:mxResources.get("drawingTooLarge")})};EditorUi.prototype.createEmbedSvg=function(c,g,l,n,u,x,B){var C=this.editor.graph.getSvg(null,null,null,null,null,null,null,null,null,null,!l,"auto"),F=C.getElementsByTagName("a");if(null!=F)for(var K=0;K<F.length;K++){var I=F[K].getAttribute("href");null!=I&&"#"==I.charAt(0)&&"_blank"==F[K].getAttribute("target")&&F[K].removeAttribute("target")}n&&
-C.setAttribute("content",this.getFileData(!0));g&&this.editor.graph.addSvgShadow(C);if(l){var R=" ",W="";n&&(R="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"+(u?"&edit=_blank":"")+(x?"&layers=1":
-"")+"');}})(this);\"",W+="cursor:pointer;");c&&(W+="max-width:100%;");this.editor.convertImages(C,mxUtils.bind(this,function(q){B('<img src="'+Editor.createSvgDataUri(mxUtils.getXml(q))+'"'+(""!=W?' style="'+W+'"':"")+R+"/>")}))}else W="",n&&(g=this.getSelectedPageIndex(),C.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('"+
+null;q=this.createImageDataUri(q,z,"png");E(q)}),null,null,null,mxUtils.bind(this,function(q){C({message:mxResources.get("unknownError")})}),null,!0,l?2:1,null,g,null,null,Editor.defaultBorder);else if(g=this.getFileData(!0),K.width*K.height<=MAX_AREA&&g.length<=MAX_REQUEST_SIZE){var T="";l&&(T="&w="+Math.round(2*K.width)+"&h="+Math.round(2*K.height));var W=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(n?"1":"0")+T+"&xml="+encodeURIComponent(g));W.send(mxUtils.bind(this,function(){200<=
+W.getStatus()&&299>=W.getStatus()?E("data:image/png;base64,"+W.getText()):C({message:mxResources.get("unknownError")})}))}else C({message:mxResources.get("drawingTooLarge")})};EditorUi.prototype.createEmbedSvg=function(c,g,l,n,u,x,B){var C=this.editor.graph.getSvg(null,null,null,null,null,null,null,null,null,null,!l,"auto"),E=C.getElementsByTagName("a");if(null!=E)for(var K=0;K<E.length;K++){var I=E[K].getAttribute("href");null!=I&&"#"==I.charAt(0)&&"_blank"==E[K].getAttribute("target")&&E[K].removeAttribute("target")}n&&
+C.setAttribute("content",this.getFileData(!0));g&&this.editor.graph.addSvgShadow(C);if(l){var T=" ",W="";n&&(T="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"+(u?"&edit=_blank":"")+(x?"&layers=1":
+"")+"');}})(this);\"",W+="cursor:pointer;");c&&(W+="max-width:100%;");this.editor.convertImages(C,mxUtils.bind(this,function(q){B('<img src="'+Editor.createSvgDataUri(mxUtils.getXml(q))+'"'+(""!=W?' style="'+W+'"':"")+T+"/>")}))}else W="",n&&(g=this.getSelectedPageIndex(),C.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!=g?"&page="+g:"")+(u?"&edit=_blank":"")+(x?"&layers=1":"")+"');}}})(this);"),W+="cursor:pointer;"),c&&(c=parseInt(C.getAttribute("width")),u=parseInt(C.getAttribute("height")),C.setAttribute("viewBox","-0.5 -0.5 "+c+" "+u),W+="max-width:100%;max-height:"+u+"px;",C.removeAttribute("height")),""!=W&&C.setAttribute("style",W),this.editor.addFontCss(C),this.editor.graph.mathEnabled&&this.editor.addMathCss(C),B(mxUtils.getXml(C))};EditorUi.prototype.timeSince=function(c){c=
Math.floor((new Date-c)/1E3);var g=Math.floor(c/31536E3);if(1<g)return g+" "+mxResources.get("years");g=Math.floor(c/2592E3);if(1<g)return g+" "+mxResources.get("months");g=Math.floor(c/86400);if(1<g)return g+" "+mxResources.get("days");g=Math.floor(c/3600);if(1<g)return g+" "+mxResources.get("hours");g=Math.floor(c/60);return 1<g?g+" "+mxResources.get("minutes"):1==g?g+" "+mxResources.get("minute"):null};EditorUi.prototype.decodeNodeIntoGraph=function(c,g){if(null!=c){var l=null;if("diagram"==c.nodeName)l=
c;else if("mxfile"==c.nodeName){var n=c.getElementsByTagName("diagram");if(0<n.length){l=n[0];var u=g.getGlobalVariable;g.getGlobalVariable=function(x){return"page"==x?l.getAttribute("name")||mxResources.get("pageWithNumber",[1]):"pagenumber"==x?1:u.apply(this,arguments)}}}null!=l&&(c=Editor.parseDiagramNode(l))}n=this.editor.graph;try{this.editor.graph=g,this.editor.setGraphXml(c)}catch(x){}finally{this.editor.graph=n}return c};EditorUi.prototype.getSvgFileProperties=function(c){return this.getPngFileProperties(c)};
EditorUi.prototype.getPngFileProperties=function(c){var g=1,l=0;if(null!=c){if(c.hasAttribute("scale")){var n=parseFloat(c.getAttribute("scale"));!isNaN(n)&&0<n&&(g=n)}c.hasAttribute("border")&&(n=parseInt(c.getAttribute("border")),!isNaN(n)&&0<n&&(l=n))}return{scale:g,border:l}};EditorUi.prototype.getEmbeddedPng=function(c,g,l,n,u){try{var x=this.editor.graph,B=null;if(null!=l&&0<l.length)x=this.createTemporaryGraph(x.getStylesheet()),document.body.appendChild(x.container),this.decodeNodeIntoGraph(this.editor.extractGraphModel(mxUtils.parseXml(l).documentElement,
-!0),x),B=l;else if(null!=this.pages&&this.currentPage!=this.pages[0]){x=this.createTemporaryGraph(x.getStylesheet());var C=x.getGlobalVariable;x.setBackgroundImage=this.editor.graph.setBackgroundImage;var F=this.pages[0];this.currentPage==F?x.setBackgroundImage(this.editor.graph.backgroundImage):null!=F.viewState&&null!=F.viewState&&x.setBackgroundImage(F.viewState.backgroundImage);x.getGlobalVariable=function(K){return"page"==K?F.getName():"pagenumber"==K?1:C.apply(this,arguments)};document.body.appendChild(x.container);
-x.model.setRoot(F.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(K){try{null==B&&(B=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var I=K.toDataURL("image/png");I=Editor.writeGraphModelToPng(I,"tEXt","mxfile",encodeURIComponent(B));c(I.substring(I.lastIndexOf(",")+1));x!=this.editor.graph&&x.container.parentNode.removeChild(x.container)}catch(R){null!=g&&g(R)}}),null,null,null,mxUtils.bind(this,function(K){null!=g&&g(K)}),null,null,n,null,x.shadowVisible,null,x,u,null,
-null,null,"diagram",null)}catch(K){null!=g&&g(K)}};EditorUi.prototype.getEmbeddedSvg=function(c,g,l,n,u,x,B,C,F,K,I,R,W){C=null!=C?C:!0;I=null!=I?I:0;B=null!=F?F:g.background;B==mxConstants.NONE&&(B=null);null==B&&"none"==g.getAdaptiveColors()&&(B="#ffffff");F=this.editor.graph.createSvgImageExport(null!=c);x=g.getSvg(B,K,I,null,null,x,null,F,null,g.shadowVisible||R,null,W,"diagram");(g.shadowVisible||R)&&g.addSvgShadow(x,null,null,0==I);null!=c&&x.setAttribute("content",c);null!=l&&x.setAttribute("resource",
+!0),x),B=l;else if(null!=this.pages&&this.currentPage!=this.pages[0]){x=this.createTemporaryGraph(x.getStylesheet());var C=x.getGlobalVariable;x.setBackgroundImage=this.editor.graph.setBackgroundImage;var E=this.pages[0];this.currentPage==E?x.setBackgroundImage(this.editor.graph.backgroundImage):null!=E.viewState&&null!=E.viewState&&x.setBackgroundImage(E.viewState.backgroundImage);x.getGlobalVariable=function(K){return"page"==K?E.getName():"pagenumber"==K?1:C.apply(this,arguments)};document.body.appendChild(x.container);
+x.model.setRoot(E.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(K){try{null==B&&(B=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var I=K.toDataURL("image/png");I=Editor.writeGraphModelToPng(I,"tEXt","mxfile",encodeURIComponent(B));c(I.substring(I.lastIndexOf(",")+1));x!=this.editor.graph&&x.container.parentNode.removeChild(x.container)}catch(T){null!=g&&g(T)}}),null,null,null,mxUtils.bind(this,function(K){null!=g&&g(K)}),null,null,n,null,x.shadowVisible,null,x,u,null,
+null,null,"diagram",null)}catch(K){null!=g&&g(K)}};EditorUi.prototype.getEmbeddedSvg=function(c,g,l,n,u,x,B,C,E,K,I,T,W){C=null!=C?C:!0;I=null!=I?I:0;B=null!=E?E:g.background;B==mxConstants.NONE&&(B=null);null==B&&"none"==g.getAdaptiveColors()&&(B="#ffffff");E=this.editor.graph.createSvgImageExport(null!=c);x=g.getSvg(B,K,I,null,null,x,null,E,null,g.shadowVisible||T,null,W,"diagram");(g.shadowVisible||T)&&g.addSvgShadow(x,null,null,0==I);null!=c&&x.setAttribute("content",c);null!=l&&x.setAttribute("resource",
l);var q=mxUtils.bind(this,function(z){z=(n?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(z);null!=u&&u(z);return z});g.mathEnabled&&this.editor.addMathCss(x);if(null!=u)this.embedFonts(x,mxUtils.bind(this,function(z){C?this.editor.convertImages(z,mxUtils.bind(this,function(L){q(L)})):q(z)}));else return q(x)};EditorUi.prototype.embedFonts=function(c,g){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&&this.editor.addFontCss(c,
-this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(l){try{null!=l&&this.editor.addFontCss(c,l),g(c)}catch(n){g(c)}}))}catch(l){g(c)}}))};EditorUi.prototype.exportImage=function(c,g,l,n,u,x,B,C,F,K,I,R,W){F=null!=F?F:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(z){Editor.addRetryToError(z,mxUtils.bind(this,function(){this.exportImage(c,g,l,n,u,x,B,C,F,K,I,R,W)}));this.handleError(z)}))){var q=this.editor.graph.isSelectionEmpty();
-l=null!=l?l:q;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,function(z){this.spinner.stop();try{this.saveCanvas(z,u?this.getFileData(!0,null,null,null,l,C,null,null,null,null,null,c,x):null,F,null==this.pages||0==this.pages.length,I)}catch(L){this.handleError(L)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(z){this.spinner.stop();this.handleError(z)}),null,l,c||1,g,n,null,null,x,B,K,R,W)}catch(z){this.spinner.stop(),this.handleError(z)}}};
+this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(l){try{null!=l&&this.editor.addFontCss(c,l),g(c)}catch(n){g(c)}}))}catch(l){g(c)}}))};EditorUi.prototype.exportImage=function(c,g,l,n,u,x,B,C,E,K,I,T,W){E=null!=E?E:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(z){Editor.addRetryToError(z,mxUtils.bind(this,function(){this.exportImage(c,g,l,n,u,x,B,C,E,K,I,T,W)}));this.handleError(z)}))){var q=this.editor.graph.isSelectionEmpty();
+l=null!=l?l:q;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,function(z){this.spinner.stop();try{this.saveCanvas(z,u?this.getFileData(!0,null,null,null,l,C,null,null,null,null,null,c,x):null,E,null==this.pages||0==this.pages.length,I)}catch(L){this.handleError(L)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(z){this.spinner.stop();this.handleError(z)}),null,l,c||1,g,n,null,null,x,B,K,T,W)}catch(z){this.spinner.stop(),this.handleError(z)}}};
EditorUi.prototype.isCorsEnabledForUrl=function(c){return this.editor.isCorsEnabledForUrl(c)};EditorUi.prototype.addLocalPagesToMapping=function(c){c=null!=c?c:{};if(null!=this.pages)for(var g=0;g<this.pages.length;g++)c[this.pages[g].getId()]=this.pages[g].getId();return c};EditorUi.prototype.importXml=function(c,g,l,n,u,x,B){EditorUi.debug("EditorUi.importXml",[this],"xml",[c],"dx",[g],"dy",[l],"crop",[n],"noErrorHandling",[u],"addNewPage",[x],"applyDefaultStyles",[B]);g=null!=g?g:0;l=null!=l?l:
-0;var C=[];try{if(null!=c&&0<c.length){var F=null!=this.pages?this.pages.length:0,K=this.isDiagramEmpty(),I=this.currentPage,R=this.editor.graph;R.model.beginUpdate();try{var W=mxUtils.parseXml(c);c={};var q=this.editor.extractGraphModel(W.documentElement,null!=this.pages);if(null!=q&&"mxfile"==q.nodeName&&null!=this.pages){var z=q.getElementsByTagName("diagram");if(0<z.length){W=[];var L=0;if(1==z.length&&!x){if(null!=this.currentPage&&(c[z[0].getAttribute("id")]=this.currentPage.getId(),this.isBlankFile())){var N=
-z[0].getAttribute("name");null!=N&&""!=N&&this.editor.graph.model.execute(new RenamePage(this,this.currentPage,N))}q=Editor.parseDiagramNode(z[0]);n=!1;L=1}for(;L<z.length;L++){var M=z[L].getAttribute("id");z[L].removeAttribute("id");var m=this.updatePageRoot(new DiagramPage(z[L]));c[M]=z[L].getAttribute("id");var y=this.pages.length;null==m.getName()&&m.setName(mxResources.get("pageWithNumber",[y+1]));R.model.execute(new ChangePage(this,m,m,y,0<L));W.push(m)}this.updatePageLinks(c,W)}}if(null!=q&&
-"mxGraphModel"===q.nodeName){C=R.importGraphModel(q,g,l,n);if(null!=C)for(this.addLocalPagesToMapping(c),L=0;L<C.length;L++)this.updatePageLinksForCell(c,C[L]);var E=R.parseBackgroundImage(q.getAttribute("backgroundImage"));if(null!=E&&null!=E.originalSrc&&this.updateBackgroundPageLink(c,E)){var P=new ChangePageSetup(this,null,E);P.ignoreColor=!0;R.model.execute(P)}}B&&R.pasteCellStyles(R.includeDescendants(C),R.defaultVertexStyle,R.defaultEdgeStyle);!x&&I!=this.currentPage&&null!=this.pages&&1<this.pages.length&&
-K&&1==F&&this.removePage(I)}finally{R.model.endUpdate()}}}catch(O){if(u)throw O;this.handleError(O)}return C};EditorUi.prototype.updatePageLinks=function(c,g){for(var l=0;l<g.length;l++)this.updatePageLinksForCell(c,g[l].root),g[l]!=this.currentPage&&(g[l].needsUpdate=!0),null!=g[l].viewState&&this.updateBackgroundPageLink(c,g[l].viewState.backgroundImage)&&(g[l]==this.currentPage&&this.editor.graph.setViewState(g[l].viewState,!0),g[l].needsUpdate=!0)};EditorUi.prototype.updateBackgroundPageLink=
+0;var C=[];try{if(null!=c&&0<c.length){var E=null!=this.pages?this.pages.length:0,K=this.isDiagramEmpty(),I=this.currentPage,T=this.editor.graph;T.model.beginUpdate();try{var W=mxUtils.parseXml(c);c={};var q=this.editor.extractGraphModel(W.documentElement,null!=this.pages);if(null!=q&&"mxfile"==q.nodeName&&null!=this.pages){var z=q.getElementsByTagName("diagram");if(0<z.length){W=[];var L=0;if(1==z.length&&!x){if(null!=this.currentPage&&(c[z[0].getAttribute("id")]=this.currentPage.getId(),this.isBlankFile())){var N=
+z[0].getAttribute("name");null!=N&&""!=N&&this.editor.graph.model.execute(new RenamePage(this,this.currentPage,N))}q=Editor.parseDiagramNode(z[0]);n=!1;L=1}for(;L<z.length;L++){var M=z[L].getAttribute("id");z[L].removeAttribute("id");var m=this.updatePageRoot(new DiagramPage(z[L]));c[M]=z[L].getAttribute("id");var y=this.pages.length;null==m.getName()&&m.setName(mxResources.get("pageWithNumber",[y+1]));T.model.execute(new ChangePage(this,m,m,y,0<L));W.push(m)}this.updatePageLinks(c,W)}}if(null!=q&&
+"mxGraphModel"===q.nodeName){C=T.importGraphModel(q,g,l,n);if(null!=C)for(this.addLocalPagesToMapping(c),L=0;L<C.length;L++)this.updatePageLinksForCell(c,C[L]);var F=T.parseBackgroundImage(q.getAttribute("backgroundImage"));if(null!=F&&null!=F.originalSrc&&this.updateBackgroundPageLink(c,F)){var P=new ChangePageSetup(this,null,F);P.ignoreColor=!0;T.model.execute(P)}}B&&T.pasteCellStyles(T.includeDescendants(C),T.defaultVertexStyle,T.defaultEdgeStyle);!x&&I!=this.currentPage&&null!=this.pages&&1<this.pages.length&&
+K&&1==E&&this.removePage(I)}finally{T.model.endUpdate()}}}catch(O){if(u)throw O;this.handleError(O)}return C};EditorUi.prototype.updatePageLinks=function(c,g){for(var l=0;l<g.length;l++)this.updatePageLinksForCell(c,g[l].root),g[l]!=this.currentPage&&(g[l].needsUpdate=!0),null!=g[l].viewState&&this.updateBackgroundPageLink(c,g[l].viewState.backgroundImage)&&(g[l]==this.currentPage&&this.editor.graph.setViewState(g[l].viewState,!0),g[l].needsUpdate=!0)};EditorUi.prototype.updateBackgroundPageLink=
function(c,g){var l=!1;try{if(null!=g&&Graph.isPageLink(g.originalSrc)){var n=c[g.originalSrc.substring(g.originalSrc.indexOf(",")+1)];null!=n&&(g.originalSrc="data:page/id,"+n,l=!0)}}catch(u){}return l};EditorUi.prototype.updatePageLinksForCell=function(c,g){var l=document.createElement("div"),n=this.editor.graph,u=n.getLinkForCell(g);null!=u&&n.setLinkForCell(g,this.updatePageLink(c,u));if(n.isHtmlLabel(g)){l.innerHTML=Graph.sanitizeHtml(n.getLabel(g));for(var x=l.getElementsByTagName("a"),B=!1,
C=0;C<x.length;C++)u=x[C].getAttribute("href"),null!=u&&(x[C].setAttribute("href",this.updatePageLink(c,u)),B=!0);B&&n.labelChanged(g,l.innerHTML)}for(C=0;C<n.model.getChildCount(g);C++)this.updatePageLinksForCell(c,n.model.getChildAt(g,C))};EditorUi.prototype.updatePageLink=function(c,g){if(Graph.isPageLink(g)){var l=c[g.substring(g.indexOf(",")+1)];g=null!=l?"data:page/id,"+l:null}else if("data:action/json,"==g.substring(0,17))try{var n=JSON.parse(g.substring(17));if(null!=n.actions){for(var u=
0;u<n.actions.length;u++){var x=n.actions[u];if(null!=x.open&&Graph.isPageLink(x.open)){var B=x.open.substring(x.open.indexOf(",")+1);l=c[B];null!=l?x.open="data:page/id,"+l:null==this.getPageById(B)&&delete x.open}}g="data:action/json,"+JSON.stringify(n)}}catch(C){}return g};EditorUi.prototype.isRemoteVisioFormat=function(c){return/(\.v(sd|dx))($|\?)/i.test(c)||/(\.vs(s|x))($|\?)/i.test(c)};EditorUi.prototype.importVisio=function(c,g,l,n,u){var x=mxUtils.bind(this,function(B){this.loadingExtensions=
-!1;null!=l?l(B):this.handleError(B)});this.createTimeout(null,mxUtils.bind(this,function(B){n=null!=n?n:c.name;var C=mxUtils.bind(this,function(K){B.clear()&&x(K)}),F=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(this.doImportVisio){var K=this.isRemoteVisioFormat(n);try{var I=n.lastIndexOf(".");if(0<=I&&I<n.length)n.substring(I+1).toUpperCase();else{var R=n.lastIndexOf("/");0<=R&&R<n.length&&(n=n.substring(R+1))}}catch(q){}if(K)if(null==VSS_CONVERT_URL||this.isOffline())/(\.vss|\.vsx)$/i.test(n)?
+!1;null!=l?l(B):this.handleError(B)});this.createTimeout(null,mxUtils.bind(this,function(B){n=null!=n?n:c.name;var C=mxUtils.bind(this,function(K){B.clear()&&x(K)}),E=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(this.doImportVisio){var K=this.isRemoteVisioFormat(n);try{var I=n.lastIndexOf(".");if(0<=I&&I<n.length)n.substring(I+1).toUpperCase();else{var T=n.lastIndexOf("/");0<=T&&T<n.length&&(n=n.substring(T+1))}}catch(q){}if(K)if(null==VSS_CONVERT_URL||this.isOffline())/(\.vss|\.vsx)$/i.test(n)?
C({message:mxResources.get("tryVssDraw",["https://vss.draw.io"])}):C({message:"draw.io"!=this.getServiceName()?mxResources.get("vsdNoConfig"):mxResources.get("serviceUnavailableOrBlocked")});else{K=new FormData;K.append("file1",c,n);var W=new XMLHttpRequest;W.open("POST",VSS_CONVERT_URL+(/(\.vss|\.vsx)$/.test(n)?"?stencil=1":""));W.responseType="blob";this.addRemoteServiceSecurityCheck(W);null!=u&&W.setRequestHeader("x-convert-custom",u);W.onreadystatechange=mxUtils.bind(this,function(){if(4==W.readyState&&
B.clear())if(200<=W.status&&299>=W.status)try{var q=W.response;if("text/xml"==q.type){var z=new FileReader;z.onload=mxUtils.bind(this,function(L){try{g(L.target.result)}catch(N){C({message:mxResources.get("errorLoadingFile")})}});z.readAsText(q)}else this.doImportVisio(q,g,C,n)}catch(L){C(L)}else try{""==W.responseType||"text"==W.responseType?C({message:W.responseText}):(z=new FileReader,z.onload=function(){try{C({message:JSON.parse(z.result).Message})}catch(L){null!=z.result&&0<z.result.length?C({message:z.result}):
-C(L)}},z.readAsText(W.response))}catch(L){C({})}});W.send(K)}else if(B.clear())try{this.doImportVisio(c,g,C,n)}catch(q){C(q)}}else C({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?F():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",F,null,null,null,C))}),x)};EditorUi.prototype.importGraphML=function(c,g,l){var n=mxUtils.bind(this,function(u){this.loadingExtensions=!1;null!=l?l(u):this.handleError(u)});
+C(L)}},z.readAsText(W.response))}catch(L){C({})}});W.send(K)}else if(B.clear())try{this.doImportVisio(c,g,C,n)}catch(q){C(q)}}else C({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?E():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",E,null,null,null,C))}),x)};EditorUi.prototype.importGraphML=function(c,g,l){var n=mxUtils.bind(this,function(u){this.loadingExtensions=!1;null!=l?l(u):this.handleError(u)});
this.createTimeout(null,mxUtils.bind(this,function(u){var x=mxUtils.bind(this,function(C){u.clear()&&n(C)}),B=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(u.clear())if(this.doImportGraphML)try{this.doImportGraphML(c,g,n)}catch(C){x(C)}else x({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportGraphML||this.loadingExtensions||this.isOffline(!0)?B():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",B,null,null,null,x))}),n)};EditorUi.prototype.exportVisio=
function(c){if(this.spinner.spin(document.body,mxResources.get("loading"))){var g=mxUtils.bind(this,function(l){this.loadingExtensions=!1;this.handleError(l)});this.vsdxExportEnabled()?this.createTimeout(null,mxUtils.bind(this,function(l){var n=mxUtils.bind(this,function(x){l.clear()&&g(x)}),u=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(l.clear())if("undefined"!==typeof VsdxExport)try{this.spinner.stop(),(new VsdxExport(this)).exportCurrentDiagrams(c)||n({message:mxResources.get("unknownError")})}catch(x){n(x)}else n({message:mxResources.get("serviceUnavailableOrBlocked")})});
"undefined"!==typeof VsdxExport||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(u,0):(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",u,null,null,null,n))}),g):g({message:mxResources.get("serviceUnavailableOrBlocked")})}};EditorUi.prototype.convertLucidChart=function(c,g,l){var n=mxUtils.bind(this,function(u){this.loadingExtensions=!1;null!=l?l(u):this.handleError(u)});this.createTimeout(null,mxUtils.bind(this,function(u){var x=mxUtils.bind(this,function(C){u.clear()&&
-n(C)}),B=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(u.clear())if("undefined"!==typeof window.LucidImporter)try{var C=JSON.parse(c);g(LucidImporter.importState(C));try{if(null!=window.console&&"1"==urlParams.test){var F=[(new Date).toISOString(),"convertLucidChart",C];null!=C.state&&F.push(JSON.parse(C.state));if(null!=C.svgThumbs)for(var K=0;K<C.svgThumbs.length;K++)F.push(Editor.createSvgDataUri(C.svgThumbs[K]));null!=C.thumb&&F.push(C.thumb);console.log.apply(console,F)}}catch(I){}}catch(I){null!=
+n(C)}),B=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(u.clear())if("undefined"!==typeof window.LucidImporter)try{var C=JSON.parse(c);g(LucidImporter.importState(C));try{if(null!=window.console&&"1"==urlParams.test){var E=[(new Date).toISOString(),"convertLucidChart",C];null!=C.state&&E.push(JSON.parse(C.state));if(null!=C.svgThumbs)for(var K=0;K<C.svgThumbs.length;K++)E.push(Editor.createSvgDataUri(C.svgThumbs[K]));null!=C.thumb&&E.push(C.thumb);console.log.apply(console,E)}}catch(I){}}catch(I){null!=
window.console&&console.error(I),x(I)}else x({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof window.LucidImporter||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(B,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",
B,null,null,null,x)},null,null,null,x)},null,null,null,x)},null,null,null,x)},null,null,null,x):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",B,null,null,null,x))}),n)};EditorUi.prototype.createMermaidXml=function(c,g,l,n,u,x){var B=new Graph(document.createElement("div"));l=B.insertVertex(null,null,null,0,0,n,u,"shape=image;noLabel=1;verticalAlign=top;imageAspect=1;image="+l+";");B.setAttributeForCell(l,"mermaidData",JSON.stringify({data:c,config:g},null,2));null!=x&&B.setAttributeForCell(l,
"templatePrompt",x);c=(new mxCodec).encode(B.getModel());return mxUtils.getXml(c)};EditorUi.prototype.getSvgForXml=function(c){var g=null,l=this.createTemporaryGraph(this.editor.graph.getStylesheet());try{document.body.appendChild(l.container),(new mxCodec(mxUtils.parseXml(c))).decode(mxUtils.parseXml(c).documentElement,l.getModel()),g=l.getSvg(null,null,null,null,null,null,null,null,null,null,null,null,null,null,!0,!0)}finally{document.body.removeChild(l.container)}return g};EditorUi.prototype.generateOpenAiMermaidDiagram=
-function(c,g,l,n,u){var x=0,B=mxUtils.bind(this,function(){this.createTimeout(this.editor.generateTimeout,mxUtils.bind(this,function(C){var F="";if(null!=this.drive&&null!=this.drive.getUser()){var K=this.drive.getUser();null!=K.email&&0<K.email.indexOf("@")&&(F=K.email.substring(K.email.indexOf("@")+1))}var I={prompt:c,driveDomain:F,options:null!=u?u:{}};EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram",[this],"enableParser",n,"data",[I],"url",["https://www.draw.io/generate/v3"]);var R=Date.now();
-F=new mxXmlRequest("https://www.draw.io/generate/v3",JSON.stringify(I),"POST");var W=mxUtils.bind(this,function(z){C.clear()&&(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram",[this],"data",[I],"error",[z],"time",Date.now()-R+" ms"),l(z))}),q=mxUtils.bind(this,function(z){3>x++?C.clear()&&B():W(z)});F.send(mxUtils.bind(this,function(z){if(C.isAlive())if(200<=z.getStatus()&&299>=z.getStatus())this.tryAndHandle(mxUtils.bind(this,function(){var N=z.getText();try{N=JSON.parse(N),result=N.result}catch(M){result=
-N}EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram",[this],"data",[I],"response",[N],"time",Date.now()-R+" ms");n?"<"==result.charAt(0)?C.clear()&&(N=Editor.extractGraphModelFromText(result),g(null!=N&&3==N.length?N[1]:result)):this.parseMermaidDiagram(result,null,mxUtils.bind(this,function(M){this.tryAndHandle(mxUtils.bind(this,function(){C.clear()&&g(M)}),W)}),W,q,!0):this.generateMermaidImage(result,null,mxUtils.bind(this,function(M,m,y){this.tryAndHandle(mxUtils.bind(this,function(){C.clear()&&
+function(c,g,l,n,u){var x=0,B=mxUtils.bind(this,function(){this.createTimeout(this.editor.generateTimeout,mxUtils.bind(this,function(C){var E="";if(null!=this.drive&&null!=this.drive.getUser()){var K=this.drive.getUser();null!=K.email&&0<K.email.indexOf("@")&&(E=K.email.substring(K.email.indexOf("@")+1))}var I={prompt:c,driveDomain:E,options:null!=u?u:{}};EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram",[this],"enableParser",n,"data",[I],"url",["https://www.draw.io/generate/v3"]);var T=Date.now();
+E=new mxXmlRequest("https://www.draw.io/generate/v3",JSON.stringify(I),"POST");var W=mxUtils.bind(this,function(z){C.clear()&&(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram",[this],"data",[I],"error",[z],"time",Date.now()-T+" ms"),l(z))}),q=mxUtils.bind(this,function(z){3>x++?C.clear()&&B():W(z)});E.send(mxUtils.bind(this,function(z){if(C.isAlive())if(200<=z.getStatus()&&299>=z.getStatus())this.tryAndHandle(mxUtils.bind(this,function(){var N=z.getText();try{N=JSON.parse(N),result=N.result}catch(M){result=
+N}EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram",[this],"data",[I],"response",[N],"time",Date.now()-T+" ms");n?"<"==result.charAt(0)?C.clear()&&(N=Editor.extractGraphModelFromText(result),g(null!=N&&3==N.length?N[1]:result)):this.parseMermaidDiagram(result,null,mxUtils.bind(this,function(M){this.tryAndHandle(mxUtils.bind(this,function(){C.clear()&&g(M)}),W)}),W,q,!0):this.generateMermaidImage(result,null,mxUtils.bind(this,function(M,m,y){this.tryAndHandle(mxUtils.bind(this,function(){C.clear()&&
g(result,M,m,y)}),W)}),W,q)}),W,!0);else{var L={message:mxResources.get("error")+" "+z.getStatus()};try{L=JSON.parse(z.getText()),null!=L.error&&(L.message=L.error)}catch(N){}W(L)}}),W)}),l)});B()};EditorUi.prototype.extractMermaidDeclaration=function(c){c=mxUtils.trim(c);"o\n\n"==c.substring(0,3)&&(c=c.substring(3));var g=c.split("```");g=1<g.length?g:c.split("<pre>");g=1<g.length?g:c.split("~~~");g=1<g.length?g:c.split("(Begins)");for(var l=mxUtils.trim(1>=g.length?c:g[1]),n=l.split("\n"),u=0;u<
n.length&&("mermaid"==n[u]||0==n[u].trim().length||"%%"==n[u].substring(0,2));)u++;l=[];for(var x=u;x<n.length;x++){var B=mxUtils.trim(n[x]);if("%%"!=B.substring(0,2)&&"classDef "!=B.substring(0,9))l.push(n[x]);else if("mermaid"==B)break}n=l;l=mxUtils.trim(n.join("\n"));x=1<n.length?n[0]:null;null!=x&&(B=x.indexOf("-"),0<B&&x.substring(0,B));x=n[0].split(" ")[0].replace(/:$/,"");B=x.indexOf("-");0<B&&(x=x.substring(0,B));EditorUi.debug("EditorUi.extractMermaidDeclaration","value",[c],"text",[l],"type",
[x],"startLine",u,"lines",n,"tokens",g);0>mxUtils.indexOf(EditorUi.mermaidDiagramTypes,x)&&(l=null);return l};EditorUi.prototype.isSupportedMermaidDiagramType=function(c){return"graph"==c||"flowchart"==c||"sequencediagram"==c||"classdiagram"==c||"statediagram-v2"==c||"statediagram"==c||"erdiagram"==c||"requirementdiagram"==c||"gitgraph"==c||"mindmap"==c||"journey"==c};EditorUi.prototype.getMermaidDiagramType=function(c){c=c.split("\n");for(var g=0;g<c.length&&(0==c[g].trim().length||"%%"==c[g].substring(0,
2));)g++;if("---"==c[g].trim()){do g++;while(g<c.length&&"---"!=c[g].trim());g++}c=c[g].trim().toLowerCase();g=c.indexOf(" ");return c.substring(0,0<g?g:c.length)};EditorUi.prototype.parseMermaidDiagram=function(c,g,l,n,u,x){var B=!1;x&&"undefined"!==typeof mxMermaidToDrawio&&this.isSupportedMermaidDiagramType(this.getMermaidDiagramType(c))&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(C){B||C==this.emptyDiagramXml||(B=!0,l(C))}));this.generateMermaidImage(c,g,mxUtils.bind(this,function(C,
-F,K){B||(B=!0,l(this.createMermaidXml(c,g,C,F,K)))}),n,u)};EditorUi.prototype.loadMermaid=function(c,g){var l=mxUtils.bind(this,function(u){this.loadingMermaid=!1;g(u)}),n=mxUtils.bind(this,function(){try{this.loadingMermaid=!1,c()}catch(u){l(u)}});"undefined"!==typeof mermaid||this.loadingMermaid||this.isOffline(!0)?window.setTimeout(n,0):(this.loadingMermaid=!0,"1"==urlParams.dev?mxscript("js/mermaid/mermaid.min.js",n,null,null,null,l):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",n,
-null,null,null,l))};EditorUi.prototype.mermaidSvgToDataUri=function(c,g,l,n){try{c=c.replace(/xlink:href/g,"href").replace(/<br>/g,"<br/>");var u=mxUtils.parseXml(c).getElementsByTagName("svg");if(0<u.length&&"error"!=u[0].getAttribute("aria-roledescription")){var x=parseFloat(u[0].getAttribute("width")),B=parseFloat(u[0].getAttribute("height"));if(isNaN(x)||isNaN(B))try{var C=u[0].getAttribute("viewBox").split(/\s+/);x=parseFloat(C[2]);B=parseFloat(C[3])}catch(F){x=x||100,B=B||100}g(this.convertDataUri(Editor.createSvgDataUri(c)),
-x,B)}else null!=n?n():l({message:mxResources.get("invalidInput")})}catch(F){l(F)}};EditorUi.prototype.getMermaidConfig=function(c,g){g=null!=g?g:mxUtils.clone(EditorUi.defaultMermaidConfig);g.securityLevel="strict";g.startOnLoad=!1;g.maxTextSize=9E5;"undefined"!==typeof mxMermaidToDrawio&&g.flowchart&&0<=c.indexOf("$$")&&(g.flowchart.htmlLabels=!0,mxMermaidToDrawio.htmlLabels=!0);Editor.isDarkMode()&&(g.theme="dark");return g};EditorUi.prototype.generateMermaidImage=function(c,g,l,n,u){var x=mxUtils.bind(this,
+E,K){B||(B=!0,l(this.createMermaidXml(c,g,C,E,K)))}),n,u)};EditorUi.prototype.loadMermaid=function(c,g){var l=mxUtils.bind(this,function(u){this.loadingMermaid=!1;g(u)}),n=mxUtils.bind(this,function(){try{this.loadingMermaid=!1,c()}catch(u){l(u)}});"undefined"!==typeof mermaid||this.loadingMermaid||this.isOffline(!0)?window.setTimeout(n,0):(this.loadingMermaid=!0,"1"==urlParams.dev?mxscript("js/mermaid/mermaid.min.js",n,null,null,null,l):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",n,
+null,null,null,l))};EditorUi.prototype.mermaidSvgToDataUri=function(c,g,l,n){try{c=c.replace(/xlink:href/g,"href").replace(/<br>/g,"<br/>");var u=mxUtils.parseXml(c).getElementsByTagName("svg");if(0<u.length&&"error"!=u[0].getAttribute("aria-roledescription")){var x=parseFloat(u[0].getAttribute("width")),B=parseFloat(u[0].getAttribute("height"));if(isNaN(x)||isNaN(B))try{var C=u[0].getAttribute("viewBox").split(/\s+/);x=parseFloat(C[2]);B=parseFloat(C[3])}catch(E){x=x||100,B=B||100}g(this.convertDataUri(Editor.createSvgDataUri(c)),
+x,B)}else null!=n?n():l({message:mxResources.get("invalidInput")})}catch(E){l(E)}};EditorUi.prototype.getMermaidConfig=function(c,g){g=null!=g?g:mxUtils.clone(EditorUi.defaultMermaidConfig);g.securityLevel="strict";g.startOnLoad=!1;g.maxTextSize=9E5;"undefined"!==typeof mxMermaidToDrawio&&g.flowchart&&0<=c.indexOf("$$")&&(g.flowchart.htmlLabels=!0,mxMermaidToDrawio.htmlLabels=!0);Editor.isDarkMode()&&(g.theme="dark");return g};EditorUi.prototype.generateMermaidImage=function(c,g,l,n,u){var x=mxUtils.bind(this,
function(B){null!=n?n(B):this.handleError(B)});this.loadMermaid(mxUtils.bind(this,function(){try{mermaid.mermaidAPI.initialize(this.getMermaidConfig(c,g)),mermaid.mermaidAPI.render("geMermaidOutput-"+(new Date).getTime(),c).then(mxUtils.bind(this,function(B){this.mermaidSvgToDataUri(B.svg,l,n,u)})).catch(mxUtils.bind(this,function(B){this.removeMermaidErrors();B=Error(B.toString()+"\n\n"+c);"undefined"!==typeof mxMermaidToDrawio&&mxMermaidToDrawio.resetListeners();null!=u?u(B):x(B)}))}catch(B){x(B)}}),
-x)};EditorUi.prototype.removeMermaidErrors=function(){for(var c=document.querySelectorAll('div[id*="dgeMermaidOutput-"]'),g=0;g<c.length;g++)null!=c[g].parentNode&&c[g].parentNode.removeChild(c[g])};EditorUi.prototype.generatePlantUmlImage=function(c,g,l,n){function u(C,F,K){c1=C>>2;c2=(C&3)<<4|F>>4;c3=(F&15)<<2|K>>6;c4=K&63;r="";r+=x(c1&63);r+=x(c2&63);r+=x(c3&63);return r+=x(c4&63)}function x(C){if(10>C)return String.fromCharCode(48+C);C-=10;if(26>C)return String.fromCharCode(65+C);C-=26;if(26>
+x)};EditorUi.prototype.removeMermaidErrors=function(){for(var c=document.querySelectorAll('div[id*="dgeMermaidOutput-"]'),g=0;g<c.length;g++)null!=c[g].parentNode&&c[g].parentNode.removeChild(c[g])};EditorUi.prototype.generatePlantUmlImage=function(c,g,l,n){function u(C,E,K){c1=C>>2;c2=(C&3)<<4|E>>4;c3=(E&15)<<2|K>>6;c4=K&63;r="";r+=x(c1&63);r+=x(c2&63);r+=x(c3&63);return r+=x(c4&63)}function x(C){if(10>C)return String.fromCharCode(48+C);C-=10;if(26>C)return String.fromCharCode(65+C);C-=26;if(26>
C)return String.fromCharCode(97+C);C-=26;return 0==C?"-":1==C?"_":"?"}var B=new XMLHttpRequest;B.open("GET",("txt"==g?PLANT_URL+"/txt/":"png"==g?PLANT_URL+"/png/":PLANT_URL+"/svg/")+function(C){r="";for(i=0;i<C.length;i+=3)r=i+2==C.length?r+u(C.charCodeAt(i),C.charCodeAt(i+1),0):i+1==C.length?r+u(C.charCodeAt(i),0,0):r+u(C.charCodeAt(i),C.charCodeAt(i+1),C.charCodeAt(i+2));return r}(Graph.arrayBufferToString(pako.deflateRaw(c))),!0);"txt"!=g&&(B.responseType="blob");B.onload=function(C){if(200<=this.status&&
-300>this.status)if("txt"==g)l(this.response);else{var F=new FileReader;F.readAsDataURL(this.response);F.onloadend=function(K){var I=new Image;I.onload=function(){try{var R=I.width,W=I.height;if(0==R&&0==W){var q=F.result,z=q.indexOf(","),L=decodeURIComponent(escape(atob(q.substring(z+1)))),N=mxUtils.parseXml(L).getElementsByTagName("svg");0<N.length&&(R=parseFloat(N[0].getAttribute("width")),W=parseFloat(N[0].getAttribute("height")))}l(F.result,R,W)}catch(M){n(M)}};I.src=F.result};F.onerror=function(K){n(K)}}else n(C)};
+300>this.status)if("txt"==g)l(this.response);else{var E=new FileReader;E.readAsDataURL(this.response);E.onloadend=function(K){var I=new Image;I.onload=function(){try{var T=I.width,W=I.height;if(0==T&&0==W){var q=E.result,z=q.indexOf(","),L=decodeURIComponent(escape(atob(q.substring(z+1)))),N=mxUtils.parseXml(L).getElementsByTagName("svg");0<N.length&&(T=parseFloat(N[0].getAttribute("width")),W=parseFloat(N[0].getAttribute("height")))}l(E.result,T,W)}catch(M){n(M)}};I.src=E.result};E.onerror=function(K){n(K)}}else n(C)};
B.onerror=function(C){n(C)};B.send()};EditorUi.prototype.insertAsPreText=function(c,g,l){var n=this.editor.graph,u=null;n.getModel().beginUpdate();try{u=n.insertVertex(null,null,"<pre>"+c+"</pre>",g,l,1,1,"text;html=1;align=left;verticalAlign=top;"),n.updateCellSize(u,!0)}finally{n.getModel().endUpdate()}return u};EditorUi.prototype.insertTextAt=function(c,g,l,n,u,x,B,C){x=null!=x?x:!0;B=null!=B?B:!0;if(null!=c)if(Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c))this.isOffline()?
-this.showError(mxResources.get("error"),mxResources.get("notInOffline")):this.parseFileData(c.replace(/\s+/g," "),mxUtils.bind(this,function(W){4==W.readyState&&200<=W.status&&299>=W.status&&this.editor.graph.setSelectionCells(this.insertTextAt(W.responseText,g,l,!0))}));else if("data:"==c.substring(0,5)||!this.isOffline()&&(u||/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c))){var F=this.editor.graph;if("data:application/pdf;base64,"==c.substring(0,28)){var K=Editor.extractGraphModelFromPdf(c);if(null!=
+this.showError(mxResources.get("error"),mxResources.get("notInOffline")):this.parseFileData(c.replace(/\s+/g," "),mxUtils.bind(this,function(W){4==W.readyState&&200<=W.status&&299>=W.status&&this.editor.graph.setSelectionCells(this.insertTextAt(W.responseText,g,l,!0))}));else if("data:"==c.substring(0,5)||!this.isOffline()&&(u||/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c))){var E=this.editor.graph;if("data:application/pdf;base64,"==c.substring(0,28)){var K=Editor.extractGraphModelFromPdf(c);if(null!=
K&&0<K.length)return this.importXml(K,g,l,x,!0,C)}if(Editor.isPngDataUrl(c)&&(K=Editor.extractGraphModelFromPng(c),null!=K&&0<K.length))return this.importXml(K,g,l,x,!0,C);if("data:image/svg+xml;"==c.substring(0,19))try{K=null;"data:image/svg+xml;base64,"==c.substring(0,26)?(K=c.substring(c.indexOf(",")+1),K=window.atob&&!mxClient.IS_SF?atob(K):Base64.decode(K,!0)):K=decodeURIComponent(c.substring(c.indexOf(",")+1));var I=this.importXml(K,g,l,x,!0,C);if(0<I.length)return I}catch(W){}this.loadImage(c,
-mxUtils.bind(this,function(W){if("data:"==c.substring(0,5))this.resizeImage(W,Editor.stripImageMetadata(c,Editor.removeImageMetadata),mxUtils.bind(this,function(L,N,M){F.setSelectionCell(F.insertVertex(null,null,"",F.snap(g),F.snap(l),N,M,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+this.convertDataUri(L)+";"))}),B,this.maxImageSize);else{var q=Math.min(1,Math.min(this.maxImageSize/W.width,this.maxImageSize/W.height)),
-z=Math.round(W.width*q);W=Math.round(W.height*q);F.setSelectionCell(F.insertVertex(null,null,"",F.snap(g),F.snap(l),z,W,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+c+";"))}}),mxUtils.bind(this,function(){var W=null;F.getModel().beginUpdate();try{W=F.insertVertex(F.getDefaultParent(),null,c,F.snap(g),F.snap(l),1,1,"text;"+(n?"html=1;":"")),F.updateCellSize(W),F.fireEvent(new mxEventObject("textInserted","cells",[W]))}finally{F.getModel().endUpdate()}F.setSelectionCell(W)}))}else{c=
-Graph.zapGremlins(mxUtils.trim(c));if(this.isCompatibleString(c))return this.importXml(c,g,l,x,null,C);if(0<c.length)if(this.isLucidChartData(c))this.convertLucidChart(c,mxUtils.bind(this,function(W){this.editor.graph.setSelectionCells(this.importXml(W,g,l,x,null,C))}),mxUtils.bind(this,function(W){this.handleError(W)}));else{F=this.editor.graph;u=null;F.getModel().beginUpdate();try{u=F.insertVertex(F.getDefaultParent(),null,"",F.snap(g),F.snap(l),1,1,"text;whiteSpace=wrap;"+(n?"html=1;":""));F.fireEvent(new mxEventObject("textInserted",
-"cells",[u]));n&&(c=F.sanitizeHtml(c));c.length>this.maxTextBytes&&(c=c.substring(0,this.maxTextBytes)+"...");u.value=c;F.updateCellSize(u);if(0<this.maxTextWidth&&u.geometry.width>this.maxTextWidth){var R=F.getPreferredSizeForCell(u,this.maxTextWidth);u.geometry.width=R.width;u.geometry.height=R.height}Graph.isLink(u.value)&&F.setLinkForCell(u,u.value);u.geometry.width+=F.gridSize;u.geometry.height+=F.gridSize}finally{F.getModel().endUpdate()}return[u]}}return[]};EditorUi.prototype.formatFileSize=
+mxUtils.bind(this,function(W){if("data:"==c.substring(0,5))this.resizeImage(W,Editor.stripImageMetadata(c,Editor.removeImageMetadata),mxUtils.bind(this,function(L,N,M){E.setSelectionCell(E.insertVertex(null,null,"",E.snap(g),E.snap(l),N,M,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+this.convertDataUri(L)+";"))}),B,this.maxImageSize);else{var q=Math.min(1,Math.min(this.maxImageSize/W.width,this.maxImageSize/W.height)),
+z=Math.round(W.width*q);W=Math.round(W.height*q);E.setSelectionCell(E.insertVertex(null,null,"",E.snap(g),E.snap(l),z,W,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+c+";"))}}),mxUtils.bind(this,function(){var W=null;E.getModel().beginUpdate();try{W=E.insertVertex(E.getDefaultParent(),null,c,E.snap(g),E.snap(l),1,1,"text;"+(n?"html=1;":"")),E.updateCellSize(W),E.fireEvent(new mxEventObject("textInserted","cells",[W]))}finally{E.getModel().endUpdate()}E.setSelectionCell(W)}))}else{c=
+Graph.zapGremlins(mxUtils.trim(c));if(this.isCompatibleString(c))return this.importXml(c,g,l,x,null,C);if(0<c.length)if(this.isLucidChartData(c))this.convertLucidChart(c,mxUtils.bind(this,function(W){this.editor.graph.setSelectionCells(this.importXml(W,g,l,x,null,C))}),mxUtils.bind(this,function(W){this.handleError(W)}));else{E=this.editor.graph;u=null;E.getModel().beginUpdate();try{u=E.insertVertex(E.getDefaultParent(),null,"",E.snap(g),E.snap(l),1,1,"text;whiteSpace=wrap;"+(n?"html=1;":""));E.fireEvent(new mxEventObject("textInserted",
+"cells",[u]));n&&(c=E.sanitizeHtml(c));c.length>this.maxTextBytes&&(c=c.substring(0,this.maxTextBytes)+"...");u.value=c;E.updateCellSize(u);if(0<this.maxTextWidth&&u.geometry.width>this.maxTextWidth){var T=E.getPreferredSizeForCell(u,this.maxTextWidth);u.geometry.width=T.width;u.geometry.height=T.height}Graph.isLink(u.value)&&E.setLinkForCell(u,u.value);u.geometry.width+=E.gridSize;u.geometry.height+=E.gridSize}finally{E.getModel().endUpdate()}return[u]}}return[]};EditorUi.prototype.formatFileSize=
function(c){var g=-1;do c/=1024,g++;while(1024<c);return Math.max(c,.1).toFixed(1)+" kB; MB; GB; TB;PB;EB;ZB;YB".split(";")[g]};EditorUi.prototype.convertDataUri=function(c){if("data:"==c.substring(0,5)){var g=c.indexOf(";");0<g&&(c=c.substring(0,g)+c.substring(c.indexOf(",",g+1)))}return c};EditorUi.prototype.isRemoteFileFormat=function(c,g){return/("contentType":\s*"application\/gliffy\+json")/.test(c)};EditorUi.prototype.isLucidChartData=function(c){return null!=c&&('{"state":"{\\"Properties\\":'==
c.substring(0,26)||'{"Properties":'==c.substring(0,14))};EditorUi.prototype.importLocalFile=function(c,g){if(c&&Graph.fileSupport){if(null==this.importFileInputElt){var l=document.createElement("input");l.setAttribute("type","file");mxEvent.addListener(l,"change",mxUtils.bind(this,function(){null!=l.files&&(this.importFiles(l.files,null,null,this.maxImageSize),l.type="",l.type="file",l.value="")}));l.style.display="none";document.body.appendChild(l);this.importFileInputElt=l}this.importFileInputElt.click()}else{window.openNew=
-!1;window.openKey="import";window.listBrowserFiles=mxUtils.bind(this,function(B,C){StorageFile.listFiles(this,"F",B,C)});window.openBrowserFile=mxUtils.bind(this,function(B,C,F){StorageFile.getFileContent(this,B,C,F)});window.deleteBrowserFile=mxUtils.bind(this,function(B,C,F){StorageFile.deleteFile(this,B,C,F)});if(!g){var n=Editor.useLocalStorage;Editor.useLocalStorage=!c}window.openFile=new OpenFile(mxUtils.bind(this,function(B){this.hideDialog(B)}));window.openFile.setConsumer(mxUtils.bind(this,
-function(B,C){null!=C&&Graph.fileSupport&&/(\.v(dx|sdx?))($|\?)/i.test(C)?(B=new Blob([B],{type:"application/octet-stream"}),this.importVisio(B,mxUtils.bind(this,function(F){this.importXml(F,0,0,!0)}),null,C)):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(!g){var u=this.dialog,x=u.close;this.dialog.close=mxUtils.bind(this,function(B){Editor.useLocalStorage=
-n;x.apply(u,arguments);B&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()})}}};EditorUi.prototype.importZipFile=function(c,g,l){var n=this,u=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?JSZip.loadAsync(c).then(function(x){if(mxUtils.isEmptyObject(x.files))l();else{var B=0,C,F=!1;x.forEach(function(K,I){K=I.name.toLowerCase();"diagram/diagram.xml"==K?(F=!0,I.async("string").then(function(R){0==R.indexOf("<mxfile ")?g(R):l()})):0==K.indexOf("versions/")&&
-(K=parseInt(K.substr(9)),K>B&&(B=K,C=I))});0<B?C.async("string").then(function(K){(new XMLHttpRequest).upload&&n.isRemoteFileFormat(K,c.name)?n.isOffline()?n.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,l):n.parseFileData(K,mxUtils.bind(this,function(I){4==I.readyState&&(200<=I.status&&299>=I.status?g(I.responseText):l())}),c.name):l()}):F||l()}},function(x){l(x)}):l()});"undefined"!==typeof JSZip||this.loadingExtensions||this.isOffline(!0)?u():(this.loadingExtensions=!0,
-mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",u,null,null,null,l))};EditorUi.prototype.importFile=function(c,g,l,n,u,x,B,C,F,K,I,R){K=null!=K?K:!0;var W=!1,q=null,z=mxUtils.bind(this,function(L){var N=null;null!=L&&"<mxlibrary"==L.substring(0,10)?(this.loadLibrary(new LocalLibrary(this,L,B)),this.showSidebar()):N=this.importXml(L,l,n,K,null,null!=R?mxEvent.isControlDown(R):null);null!=C&&C(N)});"image"==g.substring(0,5)?(F=!1,"image/png"==g.substring(0,9)&&(I=I?null:this.extractGraphModelFromPng(c),
-null!=I&&0<I.length&&(q=this.importXml(I,l,n,K,null,null!=R?mxEvent.isControlDown(R):null),F=!0)),F||(F=this.editor.graph,I=c.indexOf(";"),0<I&&(c=c.substring(0,I)+c.substring(c.indexOf(",",I+1))),K&&F.isGridEnabled()&&(l=F.snap(l),n=F.snap(n)),I="shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;","image/svg"==g.substring(0,9)&&(I+="editableCssRules=.*;"),q=[F.insertVertex(null,null,"",l,n,u,x,I+"image="+c+";")])):/(\.*<graphml )/.test(c)?
-(W=!0,this.importGraphML(c,z)):null!=F&&null!=B&&EditorUi.isVisioFilename(B)?(W=!0,this.importVisio(F,z)):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,B)?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):(W=!0,g=mxUtils.bind(this,function(L){4==L.readyState&&(200<=L.status&&299>=L.status?z(L.responseText):null!=C&&(C(null),this.showError(mxResources.get("error"),413==L.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))))}),
-null!=c?this.parseFileData(c,g,B):this.parseFile(F,g,B)):0==c.indexOf("PK")&&null!=F?(W=!0,this.importZipFile(F,z,mxUtils.bind(this,function(){q=this.insertTextAt(this.validateFileData(c),l,n,!0,null,K);C(q)}))):/(\.v(sd|dx))($|\?)/i.test(B)||/(\.vs(s|x))($|\?)/i.test(B)||(q=this.insertTextAt(this.validateFileData(c),l,n,!0,null,K,null,null!=R?mxEvent.isControlDown(R):null));W||null==C||C(q);return q};EditorUi.prototype.importFiles=function(c,g,l,n,u,x,B,C,F,K,I,R,W){n=null!=n?n:this.maxImageSize;
+!1;window.openKey="import";window.listBrowserFiles=mxUtils.bind(this,function(B,C){StorageFile.listFiles(this,"F",B,C)});window.openBrowserFile=mxUtils.bind(this,function(B,C,E){StorageFile.getFileContent(this,B,C,E)});window.deleteBrowserFile=mxUtils.bind(this,function(B,C,E){StorageFile.deleteFile(this,B,C,E)});if(!g){var n=Editor.useLocalStorage;Editor.useLocalStorage=!c}window.openFile=new OpenFile(mxUtils.bind(this,function(B){this.hideDialog(B)}));window.openFile.setConsumer(mxUtils.bind(this,
+function(B,C){null!=C&&Graph.fileSupport&&/(\.v(dx|sdx?))($|\?)/i.test(C)?(B=new Blob([B],{type:"application/octet-stream"}),this.importVisio(B,mxUtils.bind(this,function(E){this.importXml(E,0,0,!0)}),null,C)):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(!g){var u=this.dialog,x=u.close;this.dialog.close=mxUtils.bind(this,function(B){Editor.useLocalStorage=
+n;x.apply(u,arguments);B&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()})}}};EditorUi.prototype.importZipFile=function(c,g,l){var n=this,u=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?JSZip.loadAsync(c).then(function(x){if(mxUtils.isEmptyObject(x.files))l();else{var B=0,C,E=!1;x.forEach(function(K,I){K=I.name.toLowerCase();"diagram/diagram.xml"==K?(E=!0,I.async("string").then(function(T){0==T.indexOf("<mxfile ")?g(T):l()})):0==K.indexOf("versions/")&&
+(K=parseInt(K.substr(9)),K>B&&(B=K,C=I))});0<B?C.async("string").then(function(K){(new XMLHttpRequest).upload&&n.isRemoteFileFormat(K,c.name)?n.isOffline()?n.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,l):n.parseFileData(K,mxUtils.bind(this,function(I){4==I.readyState&&(200<=I.status&&299>=I.status?g(I.responseText):l())}),c.name):l()}):E||l()}},function(x){l(x)}):l()});"undefined"!==typeof JSZip||this.loadingExtensions||this.isOffline(!0)?u():(this.loadingExtensions=!0,
+mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",u,null,null,null,l))};EditorUi.prototype.importFile=function(c,g,l,n,u,x,B,C,E,K,I,T){K=null!=K?K:!0;var W=!1,q=null,z=mxUtils.bind(this,function(L){var N=null;null!=L&&"<mxlibrary"==L.substring(0,10)?(this.loadLibrary(new LocalLibrary(this,L,B)),this.showSidebar()):N=this.importXml(L,l,n,K,null,null!=T?mxEvent.isControlDown(T):null);null!=C&&C(N)});"image"==g.substring(0,5)?(E=!1,"image/png"==g.substring(0,9)&&(I=I?null:this.extractGraphModelFromPng(c),
+null!=I&&0<I.length&&(q=this.importXml(I,l,n,K,null,null!=T?mxEvent.isControlDown(T):null),E=!0)),E||(E=this.editor.graph,I=c.indexOf(";"),0<I&&(c=c.substring(0,I)+c.substring(c.indexOf(",",I+1))),K&&E.isGridEnabled()&&(l=E.snap(l),n=E.snap(n)),I="shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;","image/svg"==g.substring(0,9)&&(I+="editableCssRules=.*;"),q=[E.insertVertex(null,null,"",l,n,u,x,I+"image="+c+";")])):/(\.*<graphml )/.test(c)?
+(W=!0,this.importGraphML(c,z)):null!=E&&null!=B&&EditorUi.isVisioFilename(B)?(W=!0,this.importVisio(E,z)):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,B)?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):(W=!0,g=mxUtils.bind(this,function(L){4==L.readyState&&(200<=L.status&&299>=L.status?z(L.responseText):null!=C&&(C(null),this.showError(mxResources.get("error"),413==L.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))))}),
+null!=c?this.parseFileData(c,g,B):this.parseFile(E,g,B)):0==c.indexOf("PK")&&null!=E?(W=!0,this.importZipFile(E,z,mxUtils.bind(this,function(){q=this.insertTextAt(this.validateFileData(c),l,n,!0,null,K);C(q)}))):/(\.v(sd|dx))($|\?)/i.test(B)||/(\.vs(s|x))($|\?)/i.test(B)||(q=this.insertTextAt(this.validateFileData(c),l,n,!0,null,K,null,null!=T?mxEvent.isControlDown(T):null));W||null==C||C(q);return q};EditorUi.prototype.importFiles=function(c,g,l,n,u,x,B,C,E,K,I,T,W){n=null!=n?n:this.maxImageSize;
K=null!=K?K:this.maxImageBytes;var q=null!=g&&null!=l,z=!0;g=null!=g?g:0;l=null!=l?l:0;var L=!1;if(!mxClient.IS_CHROMEAPP&&null!=c)for(var N=I||this.resampleThreshold,M=0;M<c.length;M++)if("image/svg"!==c[M].type.substring(0,9)&&"image/"===c[M].type.substring(0,6)&&c[M].size>N){L=!0;break}EditorUi.debug("EditorUi.importFiles",[this],"files",[c],"x",[g],"y",[l],"maxSize",[n],"maxBytes",[K],"resampleThreshold",[this.resampleThreshold],"largeImages",[L],"crop",[q],"resizeImages",[z],"ignoreEmbeddedXml",
-[R],"evt",[W]);var m=mxUtils.bind(this,function(){var y=this.editor.graph,E=y.gridSize;u=null!=u?u:mxUtils.bind(this,function(U,Y,X,Z,aa,da,fa,ba,ia){try{if(null!=U&&"<mxlibrary"==U.substring(0,10))return this.spinner.stop(),this.loadLibrary(new LocalLibrary(this,U,fa)),this.showSidebar(),null;this.isCompatibleString(U)&&1==c.length&&null!=W&&"drop"==W.type&&this.isBlankFile()&&!this.canUndo()&&(q=!1,Z=X=0);return this.importFile(U,Y,X,Z,aa,da,fa,ba,ia,q,R,W)}catch(la){return this.handleError(la),
-null}});x=null!=x?x:mxUtils.bind(this,function(U){y.setSelectionCells(U)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var P=this.currentPage,O=c.length,T=O,V=[],Q=mxUtils.bind(this,function(U,Y){V[U]=Y;if(0==--T){this.spinner.stop();if(null!=C)C(V);else{var X=[];y.getModel().beginUpdate();try{for(U=0;U<V.length;U++){var Z=V[U]();null!=Z&&(X=X.concat(Z))}}finally{y.getModel().endUpdate()}}P!=this.currentPage&&window.setTimeout(mxUtils.bind(this,function(){this.actions.get("resetView").funct()}),
-0);x(X)}}),S=0;S<O;S++)mxUtils.bind(this,function(U){var Y=c[U];if(null!=Y){var X=new FileReader;X.onload=mxUtils.bind(this,function(Z){if(null==B||B(Y))try{if("image/"==Y.type.substring(0,6))if("image/svg"==Y.type.substring(0,9)){var aa=Graph.clipSvgDataUri(Z.target.result),da=aa.indexOf(","),fa=decodeURIComponent(escape(atob(aa.substring(da+1)))),ba=mxUtils.parseXml(fa),ia=ba.getElementsByTagName("svg");if(0<ia.length){var la=ia[0],ka=R?null:la.getAttribute("content");null!=ka&&"<"!=ka.charAt(0)&&
+[T],"evt",[W]);var m=mxUtils.bind(this,function(){var y=this.editor.graph,F=y.gridSize;u=null!=u?u:mxUtils.bind(this,function(U,Y,X,Z,aa,da,fa,ba,ia){try{if(null!=U&&"<mxlibrary"==U.substring(0,10))return this.spinner.stop(),this.loadLibrary(new LocalLibrary(this,U,fa)),this.showSidebar(),null;this.isCompatibleString(U)&&1==c.length&&null!=W&&"drop"==W.type&&this.isBlankFile()&&!this.canUndo()&&(q=!1,Z=X=0);return this.importFile(U,Y,X,Z,aa,da,fa,ba,ia,q,T,W)}catch(la){return this.handleError(la),
+null}});x=null!=x?x:mxUtils.bind(this,function(U){y.setSelectionCells(U)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var P=this.currentPage,O=c.length,S=O,V=[],Q=mxUtils.bind(this,function(U,Y){V[U]=Y;if(0==--S){this.spinner.stop();if(null!=C)C(V);else{var X=[];y.getModel().beginUpdate();try{for(U=0;U<V.length;U++){var Z=V[U]();null!=Z&&(X=X.concat(Z))}}finally{y.getModel().endUpdate()}}P!=this.currentPage&&window.setTimeout(mxUtils.bind(this,function(){this.actions.get("resetView").funct()}),
+0);x(X)}}),R=0;R<O;R++)mxUtils.bind(this,function(U){var Y=c[U];if(null!=Y){var X=new FileReader;X.onload=mxUtils.bind(this,function(Z){if(null==B||B(Y))try{if("image/"==Y.type.substring(0,6))if("image/svg"==Y.type.substring(0,9)){var aa=Graph.clipSvgDataUri(Z.target.result),da=aa.indexOf(","),fa=decodeURIComponent(escape(atob(aa.substring(da+1)))),ba=mxUtils.parseXml(fa),ia=ba.getElementsByTagName("svg");if(0<ia.length){var la=ia[0],ka=T?null:la.getAttribute("content");null!=ka&&"<"!=ka.charAt(0)&&
"%"!=ka.charAt(0)&&(ka=unescape(window.atob?atob(ka):Base64.decode(ka,!0)));null!=ka&&"%"==ka.charAt(0)&&(ka=decodeURIComponent(ka));null==ka||"<mxfile "!==ka.substring(0,8)&&"<mxGraphModel>"!==ka.substring(0,14)&&"<mxGraphModel "!==ka.substring(0,14)?Q(U,mxUtils.bind(this,function(){try{if(null!=ba){var sa=ba.getElementsByTagName("svg");if(0<sa.length){var ja=sa[0],ya=ja.getAttribute("width"),ua=ja.getAttribute("height");ya=null!=ya&&"%"!=ya.charAt(ya.length-1)?parseFloat(ya):NaN;ua=null!=ua&&"%"!=
-ua.charAt(ua.length-1)?parseFloat(ua):NaN;var za=ja.getAttribute("viewBox");if(null==za||0==za.length)ja.setAttribute("viewBox","0 0 "+ya+" "+ua);else if(isNaN(ya)||isNaN(ua)){var xa=za.split(" ");3<xa.length&&(ya=parseFloat(xa[2]),ua=parseFloat(xa[3]))}aa=Editor.createSvgDataUri(mxUtils.getXml(ja));var ma=Math.min(1,Math.min(n/Math.max(1,ya)),n/Math.max(1,ua)),Ca=u(aa,Y.type,g+U*E,l+U*E,Math.max(1,Math.round(ya*ma)),Math.max(1,Math.round(ua*ma)),Y.name);if(null!=Ca&&(isNaN(ya)||isNaN(ua))){var wa=
+ua.charAt(ua.length-1)?parseFloat(ua):NaN;var za=ja.getAttribute("viewBox");if(null==za||0==za.length)ja.setAttribute("viewBox","0 0 "+ya+" "+ua);else if(isNaN(ya)||isNaN(ua)){var xa=za.split(" ");3<xa.length&&(ya=parseFloat(xa[2]),ua=parseFloat(xa[3]))}aa=Editor.createSvgDataUri(mxUtils.getXml(ja));var ma=Math.min(1,Math.min(n/Math.max(1,ya)),n/Math.max(1,ua)),Ca=u(aa,Y.type,g+U*F,l+U*F,Math.max(1,Math.round(ya*ma)),Math.max(1,Math.round(ua*ma)),Y.name);if(null!=Ca&&(isNaN(ya)||isNaN(ua))){var wa=
new Image;wa.onload=mxUtils.bind(this,function(){ya=Math.max(1,wa.width);ua=Math.max(1,wa.height);Ca[0].geometry.width=ya;Ca[0].geometry.height=ua;ja.setAttribute("viewBox","0 0 "+ya+" "+ua);aa=Editor.createSvgDataUri(mxUtils.getXml(ja));var ha=aa.indexOf(";");0<ha&&(aa=aa.substring(0,ha)+aa.substring(aa.indexOf(",",ha+1)));y.setCellStyles("image",aa,[Ca[0]])});wa.src=Editor.createSvgDataUri(mxUtils.getXml(ja))}return Ca}}}catch(ha){}return null})):Q(U,mxUtils.bind(this,function(){return u(ka,"text/xml",
-g+U*E,l+U*E,0,0,Y.name)}))}else Q(U,mxUtils.bind(this,function(){return null}))}else{da=!1;if("image/png"==Y.type){var pa=R?null:this.extractGraphModelFromPng(Z.target.result);if(null!=pa&&0<pa.length){var Ba=new Image;Ba.src=Z.target.result;Q(U,mxUtils.bind(this,function(){return u(pa,"text/xml",g+U*E,l+U*E,Ba.width,Ba.height,Y.name)}));da=!0}}da||(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(Z.target.result,mxUtils.bind(this,function(sa){this.resizeImage(sa,Editor.stripImageMetadata(Z.target.result,Editor.removeImageMetadata),mxUtils.bind(this,function(ja,ya,ua){Q(U,mxUtils.bind(this,function(){if(null!=ja&&ja.length<K){var za=z&&this.isResampleImageSize(Y.size,I)?Math.min(1,Math.min(n/ya,n/ua)):1;return u(ja,Y.type,g+U*E,l+U*E,Math.round(ya*za),
-Math.round(ua*za),Y.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),z,n,I,Y.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else aa=Z.target.result,u(aa,Y.type,g+U*E,l+U*E,240,160,Y.name,function(sa){Q(U,function(){return sa})},Y)}catch(sa){Q(U,mxUtils.bind(this,function(){return null})),null!=window.console&&console.error(sa,Y)}else Q(U,mxUtils.bind(this,function(){return null}))});EditorUi.isVisioFilename(Y.name)?
-u(null,Y.type,g+U*E,l+U*E,240,160,Y.name,function(Z){Q(U,function(){return Z})},Y):"image"==Y.type.substring(0,5)||"application/pdf"==Y.type?X.readAsDataURL(Y):X.readAsText(Y)}})(S)});if(L){L=[];for(M=0;M<c.length;M++)L.push(c[M]);c=L;this.confirmImageResize(function(y){z=y;m()},F)}else m()};EditorUi.prototype.isBlankFile=function(){return null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=
+g+U*F,l+U*F,0,0,Y.name)}))}else Q(U,mxUtils.bind(this,function(){return null}))}else{da=!1;if("image/png"==Y.type){var pa=T?null:this.extractGraphModelFromPng(Z.target.result);if(null!=pa&&0<pa.length){var Ba=new Image;Ba.src=Z.target.result;Q(U,mxUtils.bind(this,function(){return u(pa,"text/xml",g+U*F,l+U*F,Ba.width,Ba.height,Y.name)}));da=!0}}da||(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(Z.target.result,mxUtils.bind(this,function(sa){this.resizeImage(sa,Editor.stripImageMetadata(Z.target.result,Editor.removeImageMetadata),mxUtils.bind(this,function(ja,ya,ua){Q(U,mxUtils.bind(this,function(){if(null!=ja&&ja.length<K){var za=z&&this.isResampleImageSize(Y.size,I)?Math.min(1,Math.min(n/ya,n/ua)):1;return u(ja,Y.type,g+U*F,l+U*F,Math.round(ya*za),
+Math.round(ua*za),Y.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),z,n,I,Y.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else aa=Z.target.result,u(aa,Y.type,g+U*F,l+U*F,240,160,Y.name,function(sa){Q(U,function(){return sa})},Y)}catch(sa){Q(U,mxUtils.bind(this,function(){return null})),null!=window.console&&console.error(sa,Y)}else Q(U,mxUtils.bind(this,function(){return null}))});EditorUi.isVisioFilename(Y.name)?
+u(null,Y.type,g+U*F,l+U*F,240,160,Y.name,function(Z){Q(U,function(){return Z})},Y):"image"==Y.type.substring(0,5)||"application/pdf"==Y.type?X.readAsDataURL(Y):X.readAsText(Y)}})(R)});if(L){L=[];for(M=0;M<c.length;M++)L.push(c[M]);c=L;this.confirmImageResize(function(y){z=y;m()},E)}else m()};EditorUi.prototype.isBlankFile=function(){return null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=
function(c,g){g=null!=g?g:!1;var l=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},n=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,u=function(x,B){if(x||g)mxSettings.setResizeImages(x?B:null),mxSettings.save();l();c(B)};null==n||g?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(x){u(x,!0)},function(x){u(x,!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?226:200,!0,!0):u(!1,n)};EditorUi.prototype.parseFile=function(c,g,l){l=null!=l?l:c.name;var n=new FileReader;n.onload=mxUtils.bind(this,function(){this.parseFileData(n.result,g,l)});n.readAsText(c)};EditorUi.prototype.parseFileData=function(c,g,l){var n=new XMLHttpRequest;n.open("POST",OPEN_URL);n.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
-n.onreadystatechange=function(){g(n)};n.send("format=xml&filename="+encodeURIComponent(l)+"&data="+encodeURIComponent(c));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(u){}};EditorUi.prototype.isResampleImageSize=function(c,g){g=null!=g?g:this.resampleThreshold;return c>g};EditorUi.prototype.resizeImage=function(c,g,l,n,u,x,B){u=null!=u?u:this.maxImageSize;var C=Math.max(1,c.width),F=Math.max(1,c.height),K=g;if(n&&this.isResampleImageSize(null!=B?B:g.length,
-x))try{var I=Math.max(C/u,F/u);if(1<I){var R=Math.round(C/I),W=Math.round(F/I),q=document.createElement("canvas");q.width=R;q.height=W;q.getContext("2d").drawImage(c,0,0,R,W);var z=q.toDataURL();if(z.length<g.length){var L=document.createElement("canvas");L.width=R;L.height=W;var N=L.toDataURL();z!==N&&(g=z,C=R,F=W)}}}catch(M){}n&&K!=g&&u>this.maxImageSize/2&&g.length>this.maxImageBytes?this.resizeImage(c,g,l,n,u/1.5,x,B):l(g,C,F)};EditorUi.prototype.extractGraphModelFromPng=function(c){return Editor.extractGraphModelFromPng(c)};
+n.onreadystatechange=function(){g(n)};n.send("format=xml&filename="+encodeURIComponent(l)+"&data="+encodeURIComponent(c));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(u){}};EditorUi.prototype.isResampleImageSize=function(c,g){g=null!=g?g:this.resampleThreshold;return c>g};EditorUi.prototype.resizeImage=function(c,g,l,n,u,x,B){u=null!=u?u:this.maxImageSize;var C=Math.max(1,c.width),E=Math.max(1,c.height),K=g;if(n&&this.isResampleImageSize(null!=B?B:g.length,
+x))try{var I=Math.max(C/u,E/u);if(1<I){var T=Math.round(C/I),W=Math.round(E/I),q=document.createElement("canvas");q.width=T;q.height=W;q.getContext("2d").drawImage(c,0,0,T,W);var z=q.toDataURL();if(z.length<g.length){var L=document.createElement("canvas");L.width=T;L.height=W;var N=L.toDataURL();z!==N&&(g=z,C=T,E=W)}}}catch(M){}n&&K!=g&&u>this.maxImageSize/2&&g.length>this.maxImageBytes?this.resizeImage(c,g,l,n,u/1.5,x,B):l(g,C,E)};EditorUi.prototype.extractGraphModelFromPng=function(c){return Editor.extractGraphModelFromPng(c)};
EditorUi.prototype.loadImage=function(c,g,l){try{var n=new Image;n.onload=function(){n.width=0<n.width?n.width:120;n.height=0<n.height?n.height:120;g(n)};null!=l&&(n.onerror=l);n.src=c}catch(u){if(null!=l)l(u);else throw u;}};EditorUi.prototype.getDefaultSketchMode=function(){var c="1"==urlParams.sketch;return"0"!=(null!=urlParams.rough?urlParams.rough:c)};var p=EditorUi.prototype.createUi;EditorUi.prototype.createUi=function(){Editor.isSettingsEnabled()&&(null!=mxSettings.settings.sidebarTitles&&
(Sidebar.prototype.sidebarTitles=mxSettings.settings.sidebarTitles),this.formatWidth=mxSettings.getFormatWidth());this.formatEnabled||(this.formatWidth=0);this.sidebarEnabled||(this.hsplitPosition=0);p.apply(this,arguments);Editor.isSettingsEnabled()&&this.doSetSketchMode(null!=mxSettings.settings.sketchMode&&null==urlParams.rough&&null==urlParams.sketch?mxSettings.settings.sketchMode:this.getDefaultSketchMode())};var t=EditorUi.prototype.init;EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=
-mxStencilRegistry.allowEval&&!this.isOfflineApp();var c=this,g=this.editor.graph,l=g.isEnabled;g.isEnabled=function(){return l.apply(this,arguments)&&!c.isLocked()};g.showLinkIcons=Editor.showLinkIcons;g.showTooltipIcons=Editor.showTooltipIcons;var n=this;g.editTooltip=function(Q){null!=Q&&n.actions.get("editTooltip").funct()};g.getLinkOverlayTooltip=function(Q){if(Graph.isPageLink(Q)&&null!=n.pages){var S=Q.substring(Q.indexOf(",")+1);S=n.getPageById(S);if(null!=S)return S.getName()||mxResources.get("pageWithNumber",
-[mxUtils.indexOf(n.pages,S)+1])}return Q};Graph.touchStyle&&(g.panningHandler.isPanningTrigger=function(Q){var S=Q.getEvent();return null==Q.getState()&&!mxEvent.isMouseEvent(S)&&!g.freehand.isDrawing()||mxEvent.isPopupTrigger(S)&&(null==Q.getState()||mxEvent.isControlDown(S)||mxEvent.isShiftDown(S))});g.cellEditor.editPlantUmlData=function(Q,S,U){var Y=JSON.parse(U);S=new SimpleTextareaDialog(c,Y.data,function(X){null!=X&&c.spinner.spin(document.body,mxResources.get("inserting"))&&c.generatePlantUmlImage(X,
-Y.format,function(Z,aa,da){c.spinner.stop();g.getModel().beginUpdate();try{if("txt"==Y.format)g.labelChanged(Q,"<pre>"+Z+"</pre>"),g.updateCellSize(Q,!0);else{g.setCellStyles("image",c.convertDataUri(Z),[Q]);var fa=g.model.getGeometry(Q);null!=fa&&(fa=fa.clone(),fa.width=aa,fa.height=da,g.cellsResized([Q],[fa],!1))}g.setAttributeForCell(Q,"plantUmlData",JSON.stringify({data:X,format:Y.format}))}finally{g.getModel().endUpdate()}},function(Z){c.handleError(Z)})});c.showDialog(S.container,640,420,!0,
-!0,null,null,null,new mxRectangle(0,0,320,280));S.init()};g.cellEditor.editMermaidData=function(Q,S,U){var Y=JSON.parse(U);S=new SimpleTextareaDialog(c,Y.data,function(X){null!=X&&c.spinner.spin(document.body,mxResources.get("inserting"))&&c.generateMermaidImage(X,Y.config,function(Z,aa,da){c.spinner.stop();g.getModel().beginUpdate();try{g.setCellStyles("image",Z,[Q]);var fa=g.model.getGeometry(Q);null!=fa&&(fa=fa.clone(),fa.width=Math.max(fa.width,aa),fa.height=Math.max(fa.height,da),g.cellsResized([Q],
-[fa],!1));g.setAttributeForCell(Q,"mermaidData",JSON.stringify({data:X,config:Y.config},null,2))}finally{g.getModel().endUpdate()}},function(Z){c.handleError(Z)})});c.showDialog(S.container,640,420,!0,!0,null,null,null,new mxRectangle(0,0,320,280));S.init()};var u=g.cellEditor.startEditing;g.cellEditor.startEditing=function(Q,S){try{var U=this.graph.getAttributeForCell(Q,"plantUmlData");if(null!=U)this.editPlantUmlData(Q,S,U);else if(U=this.graph.getAttributeForCell(Q,"mermaidData"),null!=U&&window.isMermaidEnabled)this.editMermaidData(Q,
-S,U);else{var Y=g.getCellStyle(Q);"1"==mxUtils.getValue(Y,"metaEdit","0")?c.showDataDialog(Q):u.apply(this,arguments)}}catch(X){c.handleError(X)}};g.getLinkTitle=function(Q){return c.getLinkTitle(Q)};g.customLinkClicked=function(Q,S){var U=!1;try{var Y=this.getGraphBounds();c.handleCustomLink(Q,S);U=!0;c.chromelessResize&&!Y.equals(this.getGraphBounds())&&(c.chromelessResize(),this.scrollCellToVisible(S))}catch(X){c.handleError(X)}return U};var x=g.parseBackgroundImage;g.parseBackgroundImage=function(Q){var S=
-x.apply(this,arguments);null!=S&&null!=S.src&&Graph.isPageLink(S.src)&&(S={originalSrc:S.src});return S};var B=g.setBackgroundImage;g.setBackgroundImage=function(Q){null!=Q&&null!=Q.originalSrc&&(Q=c.createImageForPageLink(Q.originalSrc,c.currentPage,this));B.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,function(){g.refreshBackgroundImage()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(){g.refreshBackgroundImage()}));this.editor.addListener("pagesPatched",
-mxUtils.bind(this,function(Q,S){Q=null!=g.backgroundImage?g.backgroundImage.originalSrc:null;if(null!=Q){var U=Q.indexOf(",");if(0<U)for(Q=Q.substring(U+1),S=S.getProperty("patches"),U=0;U<S.length;U++)if(null!=S[U][EditorUi.DIFF_UPDATE]&&null!=S[U][EditorUi.DIFF_UPDATE][Q]||null!=S[U][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(S[U][EditorUi.DIFF_REMOVE],Q)){g.refreshBackgroundImage();break}}}));var C=g.getBackgroundImageObject;g.getBackgroundImageObject=function(Q,S,U){var Y=C.apply(this,arguments);
-null!=Y&&null!=Y.originalSrc&&(Y=S?c.createImageForPageLink(Y.originalSrc,U,null,!0):{src:Y.originalSrc});return Y};this.isOffline()||"undefined"===typeof window.EditDataDialog||(EditDataDialog.placeholderHelpLink="https://www.drawio.com/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 F=c.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(Q){Q=
-null!=Q?Q:"";"1"==urlParams.dev&&(Q+=(0<Q.length?"&":"?")+"dev=1");"1"==urlParams.test&&(Q+=(0<Q.length?"&":"?")+"test=1");return F.apply(this,arguments)};var K=g.addClickHandler;g.addClickHandler=function(Q,S,U){var Y=S;S=function(X,Z,aa){if(null==Z){var da=mxEvent.getSource(X);"a"==da.nodeName.toLowerCase()&&(Z=da.getAttribute("href"))}null!=Z&&g.isCustomLink(Z)&&(mxEvent.isTouchEvent(X)||!mxEvent.isPopupTrigger(X))&&g.customLinkClicked(Z,aa)&&mxEvent.consume(X);null!=Y&&Y(X,Z,aa)};K.call(this,
-Q,S,U)};t.apply(this,arguments);this.editor.graph.addSvgShadow(g.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var I=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(Q,S,U){g.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(Q,["zoomIn","zoomOut","-"],null,U);if(Editor.passiveScroll&&null!=U){var Y=mxUtils.convertPoint(g.container,mxEvent.getClientX(U),mxEvent.getClientY(U));g._contextMenuPoint=new mxPoint(g.snap(Y.x/g.view.scale-g.view.translate.x),
+mxStencilRegistry.allowEval&&!this.isOfflineApp();var c=this,g=this.editor.graph,l=g.isEnabled;g.isEnabled=function(){return l.apply(this,arguments)&&!c.isLocked()};g.showLinkIcons=Editor.showLinkIcons;g.showTooltipIcons=Editor.showTooltipIcons;var n=this;g.editTooltip=function(Q){null!=Q&&n.actions.get("editTooltip").funct()};g.getLinkOverlayTooltip=function(Q){if(Graph.isPageLink(Q)&&null!=n.pages){var R=Q.substring(Q.indexOf(",")+1);R=n.getPageById(R);if(null!=R)return R.getName()||mxResources.get("pageWithNumber",
+[mxUtils.indexOf(n.pages,R)+1])}return Q};Graph.touchStyle&&(g.panningHandler.isPanningTrigger=function(Q){var R=Q.getEvent();return null==Q.getState()&&!mxEvent.isMouseEvent(R)&&!g.freehand.isDrawing()||mxEvent.isPopupTrigger(R)&&(null==Q.getState()||mxEvent.isControlDown(R)||mxEvent.isShiftDown(R))});g.cellEditor.editPlantUmlData=function(Q,R,U){var Y=JSON.parse(U);R=new SimpleTextareaDialog(c,Y.data,function(X){null!=X&&c.spinner.spin(document.body,mxResources.get("inserting"))&&c.generatePlantUmlImage(X,
+Y.format,function(Z,aa,da){c.spinner.stop();g.getModel().beginUpdate();try{if("txt"==Y.format)g.labelChanged(Q,"<pre>"+Z+"</pre>"),g.updateCellSize(Q,!0);else{g.setCellStyles("image",c.convertDataUri(Z),[Q]);var fa=g.model.getGeometry(Q);null!=fa&&(fa=fa.clone(),fa.width=aa,fa.height=da,g.cellsResized([Q],[fa],!1))}g.setAttributeForCell(Q,"plantUmlData",JSON.stringify({data:X,format:Y.format}))}finally{g.getModel().endUpdate()}},function(Z){c.handleError(Z)})});c.showDialog(R.container,640,420,!0,
+!0,null,null,null,new mxRectangle(0,0,320,280));R.init()};g.cellEditor.editMermaidData=function(Q,R,U){var Y=JSON.parse(U);R=new SimpleTextareaDialog(c,Y.data,function(X){null!=X&&c.spinner.spin(document.body,mxResources.get("inserting"))&&c.generateMermaidImage(X,Y.config,function(Z,aa,da){c.spinner.stop();g.getModel().beginUpdate();try{g.setCellStyles("image",Z,[Q]);var fa=g.model.getGeometry(Q);null!=fa&&(fa=fa.clone(),fa.width=Math.max(fa.width,aa),fa.height=Math.max(fa.height,da),g.cellsResized([Q],
+[fa],!1));g.setAttributeForCell(Q,"mermaidData",JSON.stringify({data:X,config:Y.config},null,2))}finally{g.getModel().endUpdate()}},function(Z){c.handleError(Z)})});c.showDialog(R.container,640,420,!0,!0,null,null,null,new mxRectangle(0,0,320,280));R.init()};var u=g.cellEditor.startEditing;g.cellEditor.startEditing=function(Q,R){try{var U=this.graph.getAttributeForCell(Q,"plantUmlData");if(null!=U)this.editPlantUmlData(Q,R,U);else if(U=this.graph.getAttributeForCell(Q,"mermaidData"),null!=U&&window.isMermaidEnabled)this.editMermaidData(Q,
+R,U);else{var Y=g.getCellStyle(Q);"1"==mxUtils.getValue(Y,"metaEdit","0")?c.showDataDialog(Q):u.apply(this,arguments)}}catch(X){c.handleError(X)}};g.getLinkTitle=function(Q){return c.getLinkTitle(Q)};g.customLinkClicked=function(Q,R){var U=!1;try{var Y=this.getGraphBounds();c.handleCustomLink(Q,R);U=!0;c.chromelessResize&&!Y.equals(this.getGraphBounds())&&(c.chromelessResize(),this.scrollCellToVisible(R))}catch(X){c.handleError(X)}return U};var x=g.parseBackgroundImage;g.parseBackgroundImage=function(Q){var R=
+x.apply(this,arguments);null!=R&&null!=R.src&&Graph.isPageLink(R.src)&&(R={originalSrc:R.src});return R};var B=g.setBackgroundImage;g.setBackgroundImage=function(Q){null!=Q&&null!=Q.originalSrc&&(Q=c.createImageForPageLink(Q.originalSrc,c.currentPage,this));B.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,function(){g.refreshBackgroundImage()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(){g.refreshBackgroundImage()}));this.editor.addListener("pagesPatched",
+mxUtils.bind(this,function(Q,R){Q=null!=g.backgroundImage?g.backgroundImage.originalSrc:null;if(null!=Q){var U=Q.indexOf(",");if(0<U)for(Q=Q.substring(U+1),R=R.getProperty("patches"),U=0;U<R.length;U++)if(null!=R[U][EditorUi.DIFF_UPDATE]&&null!=R[U][EditorUi.DIFF_UPDATE][Q]||null!=R[U][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(R[U][EditorUi.DIFF_REMOVE],Q)){g.refreshBackgroundImage();break}}}));var C=g.getBackgroundImageObject;g.getBackgroundImageObject=function(Q,R,U){var Y=C.apply(this,arguments);
+null!=Y&&null!=Y.originalSrc&&(Y=R?c.createImageForPageLink(Y.originalSrc,U,null,!0):{src:Y.originalSrc});return Y};this.isOffline()||"undefined"===typeof window.EditDataDialog||(EditDataDialog.placeholderHelpLink="https://www.drawio.com/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 E=c.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(Q){Q=
+null!=Q?Q:"";"1"==urlParams.dev&&(Q+=(0<Q.length?"&":"?")+"dev=1");"1"==urlParams.test&&(Q+=(0<Q.length?"&":"?")+"test=1");return E.apply(this,arguments)};var K=g.addClickHandler;g.addClickHandler=function(Q,R,U){var Y=R;R=function(X,Z,aa){if(null==Z){var da=mxEvent.getSource(X);"a"==da.nodeName.toLowerCase()&&(Z=da.getAttribute("href"))}null!=Z&&g.isCustomLink(Z)&&(mxEvent.isTouchEvent(X)||!mxEvent.isPopupTrigger(X))&&g.customLinkClicked(Z,aa)&&mxEvent.consume(X);null!=Y&&Y(X,Z,aa)};K.call(this,
+Q,R,U)};t.apply(this,arguments);this.editor.graph.addSvgShadow(g.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var I=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(Q,R,U){g.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(Q,["zoomIn","zoomOut","-"],null,U);if(Editor.passiveScroll&&null!=U){var Y=mxUtils.convertPoint(g.container,mxEvent.getClientX(U),mxEvent.getClientY(U));g._contextMenuPoint=new mxPoint(g.snap(Y.x/g.view.scale-g.view.translate.x),
g.snap(Y.y/g.view.scale-g.view.translate.y));g._contextMenuScreenPoint=mxUtils.convertPoint(g.container,mxEvent.getClientX(U),mxEvent.getClientY(U))}g.isSelectionEmpty()&&Editor.passiveScroll&&(this.addSubmenu("insert",Q,null),Q.addSeparator());I.apply(this,arguments);g.isSelectionEmpty()||null==c.addSelectionToScratchpad||Editor.passiveScroll||this.addMenuItems(Q,["-","addToScratchpad"],null,U);g.isSelectionEmpty()&&!this.isShowStyleItems()&&this.addMenuItems(Q,["-","exitGroup","home"],null,U)};
-var R=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=function(Q,S,U){if(c.editor.graph.isSelectionEmpty())R.apply(this,arguments),c.menus.addMenuItems(Q,["copyAsImage","copyAsSvg"],null,U);else if(this.isShowCellEditItems()?this.addPopupDeleteItem(Q,S,U):this.addPopupMenuArrangeItems(Q,S,U),this.addMenuItems(Q,"- cut copy copyAsImage copyAsSvg duplicate".split(" "),null,U),Editor.passiveScroll&&(1==g.getSelectionCount()?this.addMenuItems(Q,["-","copyStyle","pasteStyle"],null,
-U):this.addMenuItems(Q,["-","pasteStyle"],null,U)),this.addMenuItems(Q,["-"],null,U),this.isShowCellEditItems()||this.addPopupDeleteItem(Q,S,U),this.addMenuItems(Q,["lockUnlock","-"],null,U),!this.isShowStyleItems()){if(1==g.getSelectionCount()&&!g.isCellLocked(S)&&g.isCellEditable(S)&&(this.addSubmenu("editCell",Q,null,mxResources.get("edit")),Q.addSeparator(),g.getModel().isEdge(S))){this.addSubmenu("line",Q);var Y=g.getModel().getGeometry(S);null!=Y&&null!=Y.points&&0<Y.points.length&&this.addMenuItems(Q,
+var T=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=function(Q,R,U){if(c.editor.graph.isSelectionEmpty())T.apply(this,arguments),c.menus.addMenuItems(Q,["copyAsImage","copyAsSvg"],null,U);else if(this.isShowCellEditItems()?this.addPopupDeleteItem(Q,R,U):this.addPopupMenuArrangeItems(Q,R,U),this.addMenuItems(Q,"- cut copy copyAsImage copyAsSvg duplicate".split(" "),null,U),Editor.passiveScroll&&(1==g.getSelectionCount()?this.addMenuItems(Q,["-","copyStyle","pasteStyle"],null,
+U):this.addMenuItems(Q,["-","pasteStyle"],null,U)),this.addMenuItems(Q,["-"],null,U),this.isShowCellEditItems()||this.addPopupDeleteItem(Q,R,U),this.addMenuItems(Q,["lockUnlock","-"],null,U),!this.isShowStyleItems()){if(1==g.getSelectionCount()&&!g.isCellLocked(R)&&g.isCellEditable(R)&&(this.addSubmenu("editCell",Q,null,mxResources.get("edit")),Q.addSeparator(),g.getModel().isEdge(R))){this.addSubmenu("line",Q);var Y=g.getModel().getGeometry(R);null!=Y&&null!=Y.points&&0<Y.points.length&&this.addMenuItems(Q,
["clearWaypoints"],null,U)}1==g.getSelectionCount()&&this.addMenuItems(Q,["enterGroup"],null,U);Y=c.getSelectionState();null!=Y.mergeCell?this.addMenuItem(Q,"mergeCells"):(1<Y.style.colspan||1<Y.style.rowspan)&&this.addMenuItem(Q,"unmergeCells")}};this.menus.isShowStyleItems=function(){return"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme};this.menus.isShowHistoryItems=function(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems;
-this.menus.isShowCellEditItems=this.menus.isShowStyleItems}if(Editor.passiveScroll){var W=g.getCenterInsertPoint;g.getCenterInsertPoint=function(Q){if(null!=this._contextMenuPoint){var S=this._contextMenuPoint;Q=null!=Q?Q:new mxRectangle;return new mxPoint(g.snap(S.x-(Q.width||0)/2),g.snap(S.y-(Q.height||0)/2))}return W.apply(this,arguments)};var q=g.popupMenuHandler.hideMenu;g.popupMenuHandler.hideMenu=function(){q.apply(this,arguments);window.setTimeout(function(){g._contextMenuPoint=null;g._contextMenuScreenPoint=
-null},0)}}this.dependsOnLanguage(mxUtils.bind(this,function(){this.defaultFilename=mxResources.get("untitledDiagram");this.defaultLibraryName=mxResources.get("untitledLibrary")}));var z=g.getExportVariables;g.getExportVariables=function(){var Q=z.apply(this,arguments),S=c.getCurrentFile();null!=S&&(Q.filename=S.getTitle());c.updateFileVars();if(null!=c.fileVars)for(var U in c.fileVars)null==Q[U]&&(Q[U]=c.fileVars[U]);Q.pagecount=null!=c.pages?c.pages.length:1;Q.page=null!=c.currentPage?c.currentPage.getName():
-"";Q.pagenumber=null!=c.pages&&null!=c.currentPage?mxUtils.indexOf(c.pages,c.currentPage)+1:1;return Q};var L=g.getGlobalVariable;g.getGlobalVariable=function(Q){var S=c.getCurrentFile();if("filename"==Q&&null!=S)return S.getTitle();if("page"==Q&&null!=c.currentPage)return c.currentPage.getName();if("pagenumber"==Q)return null!=c.currentPage&&null!=c.pages?mxUtils.indexOf(c.pages,c.currentPage)+1:1;if("pagecount"==Q)return null!=c.pages?c.pages.length:1;S=L.apply(this,arguments);null==S&&(c.updateFileVars(),
-null!=c.fileVars&&(S=c.fileVars[Q]));return S};var N=null,M=null;this.addListener("fileDescriptorChanged",mxUtils.bind(this,function(){var Q=this.getCurrentFile(),S=null!=Q&&null!=Q.getTitle()?Q.getTitle():this.defaultFilename;N!=S&&Q==M&&(g.invalidateDescendantsWithPlaceholders(g.model.getRoot()),g.view.validate());N=S;M=Q}));var m=g.labelLinkClicked;g.labelLinkClicked=function(Q,S,U){var Y=S.getAttribute("href");if(null==Y||!g.isCustomLink(Y)||!mxEvent.isTouchEvent(U)&&mxEvent.isPopupTrigger(U))m.apply(this,
-arguments);else{if(!g.isEnabled()||null!=Q&&g.isCellLocked(Q.cell))g.customLinkClicked(Y),g.getRubberband().reset();mxEvent.consume(U)}};this.editor.getOrCreateFilename=function(){var Q=c.defaultFilename,S=c.getCurrentFile();null!=S&&(Q=null!=S.getTitle()?S.getTitle():Q);return Q};var y=this.actions.get("print");y.setEnabled(!mxClient.IS_IOS||!navigator.standalone);y.visible=y.isEnabled();if(!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(70,!0,"findReplace"),this.keyHandler.bindAction(77,
+this.menus.isShowCellEditItems=this.menus.isShowStyleItems}if(Editor.passiveScroll){var W=g.getCenterInsertPoint;g.getCenterInsertPoint=function(Q){if(null!=this._contextMenuPoint){var R=this._contextMenuPoint;Q=null!=Q?Q:new mxRectangle;return new mxPoint(g.snap(R.x-(Q.width||0)/2),g.snap(R.y-(Q.height||0)/2))}return W.apply(this,arguments)};var q=g.popupMenuHandler.hideMenu;g.popupMenuHandler.hideMenu=function(){q.apply(this,arguments);window.setTimeout(function(){g._contextMenuPoint=null;g._contextMenuScreenPoint=
+null},0)}}this.dependsOnLanguage(mxUtils.bind(this,function(){this.defaultFilename=mxResources.get("untitledDiagram");this.defaultLibraryName=mxResources.get("untitledLibrary")}));var z=g.getExportVariables;g.getExportVariables=function(){var Q=z.apply(this,arguments),R=c.getCurrentFile();null!=R&&(Q.filename=R.getTitle());c.updateFileVars();if(null!=c.fileVars)for(var U in c.fileVars)null==Q[U]&&(Q[U]=c.fileVars[U]);Q.pagecount=null!=c.pages?c.pages.length:1;Q.page=null!=c.currentPage?c.currentPage.getName():
+"";Q.pagenumber=null!=c.pages&&null!=c.currentPage?mxUtils.indexOf(c.pages,c.currentPage)+1:1;return Q};var L=g.getGlobalVariable;g.getGlobalVariable=function(Q){var R=c.getCurrentFile();if("filename"==Q&&null!=R)return R.getTitle();if("page"==Q&&null!=c.currentPage)return c.currentPage.getName();if("pagenumber"==Q)return null!=c.currentPage&&null!=c.pages?mxUtils.indexOf(c.pages,c.currentPage)+1:1;if("pagecount"==Q)return null!=c.pages?c.pages.length:1;R=L.apply(this,arguments);null==R&&(c.updateFileVars(),
+null!=c.fileVars&&(R=c.fileVars[Q]));return R};var N=null,M=null;this.addListener("fileDescriptorChanged",mxUtils.bind(this,function(){var Q=this.getCurrentFile(),R=null!=Q&&null!=Q.getTitle()?Q.getTitle():this.defaultFilename;N!=R&&Q==M&&(g.invalidateDescendantsWithPlaceholders(g.model.getRoot()),g.view.validate());N=R;M=Q}));var m=g.labelLinkClicked;g.labelLinkClicked=function(Q,R,U){var Y=R.getAttribute("href");if(null==Y||!g.isCustomLink(Y)||!mxEvent.isTouchEvent(U)&&mxEvent.isPopupTrigger(U))m.apply(this,
+arguments);else{if(!g.isEnabled()||null!=Q&&g.isCellLocked(Q.cell))g.customLinkClicked(Y),g.getRubberband().reset();mxEvent.consume(U)}};this.editor.getOrCreateFilename=function(){var Q=c.defaultFilename,R=c.getCurrentFile();null!=R&&(Q=null!=R.getTitle()?R.getTitle():Q);return Q};var y=this.actions.get("print");y.setEnabled(!mxClient.IS_IOS||!navigator.standalone);y.visible=y.isEnabled();if(!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(70,!0,"findReplace"),this.keyHandler.bindAction(77,
!0,"editGeometry",!0),this.keyHandler.bindAction(75,!0,"tags"),this.keyHandler.bindAction(65,!1,"insertText"),this.keyHandler.bindAction(83,!1,"insertNote"),this.keyHandler.bindAction(68,!1,"insertRectangle"),this.keyHandler.bindAction(70,!1,"insertEllipse"),this.keyHandler.bindAction(76,!1,"insertLink"),this.keyHandler.bindAction(82,!1,"insertRhombus"),this.keyHandler.bindAction(67,!1,"insertEdge"),this.keyHandler.bindAction(88,!1,"insertFreehand"),this.keyHandler.bindAction(75,!0,"toggleShapes",
-!0),this.keyHandler.bindAction(54,!0,"adaptiveColors",!0),this.altShiftActions[81]="copyStyle",this.altShiftActions[87]="pasteStyle",this.altShiftActions[83]="synchronize","1"==urlParams.embedInline&&(document.body.classList.add("geEmbedInline"),Editor.passiveScroll&&document.body.classList.add("geInlineNoUi"),Editor.passiveScroll||g.addListener(mxEvent.ESCAPE,function(Q,S){null!=S&&g.isEnabled()&&!g.isEditing()&&null!=S.getProperty("event")&&c.actions.get("exit").funct()})),this.installImagePasteHandler(),
-this.useInternalClipboard||this.installNativeClipboardHandler();this.spinner=null!=this.spinner?this.spinner:this.createSpinner(null,null,24);Graph.fileSupport&&g.addListener(mxEvent.EDITING_STARTED,mxUtils.bind(this,function(Q){var S=g.cellEditor.text2,U=null;null!=S&&(mxEvent.addListener(S,"dragleave",function(Y){null!=U&&(U.parentNode.removeChild(U),U=null);Y.stopPropagation();Y.preventDefault()}),mxEvent.addListener(S,"dragover",mxUtils.bind(this,function(Y){null==U&&(U=this.highlightElement(S));
-Y.stopPropagation();Y.preventDefault()})),mxEvent.addListener(S,"drop",mxUtils.bind(this,function(Y){null!=U&&(U.parentNode.removeChild(U),U=null);if(0<Y.dataTransfer.files.length)this.importFiles(Y.dataTransfer.files,0,0,this.maxImageSize,function(Z,aa,da,fa,ba,ia){g.insertImage(Z,ba,ia)},function(){},function(Z){return"image/"==Z.type.substring(0,6)},function(Z){for(var aa=0;aa<Z.length;aa++)Z[aa]()},mxEvent.isControlDown(Y));else if(0<=mxUtils.indexOf(Y.dataTransfer.types,"text/uri-list")){var X=
+!0),this.keyHandler.bindAction(54,!0,"adaptiveColors",!0),this.altShiftActions[81]="copyStyle",this.altShiftActions[87]="pasteStyle",this.altShiftActions[83]="synchronize","1"==urlParams.embedInline&&(document.body.classList.add("geEmbedInline"),Editor.passiveScroll&&document.body.classList.add("geInlineNoUi"),Editor.passiveScroll||g.addListener(mxEvent.ESCAPE,function(Q,R){null!=R&&g.isEnabled()&&!g.isEditing()&&null!=R.getProperty("event")&&c.actions.get("exit").funct()})),this.installImagePasteHandler(),
+this.useInternalClipboard||this.installNativeClipboardHandler();this.spinner=null!=this.spinner?this.spinner:this.createSpinner(null,null,24);Graph.fileSupport&&g.addListener(mxEvent.EDITING_STARTED,mxUtils.bind(this,function(Q){var R=g.cellEditor.text2,U=null;null!=R&&(mxEvent.addListener(R,"dragleave",function(Y){null!=U&&(U.parentNode.removeChild(U),U=null);Y.stopPropagation();Y.preventDefault()}),mxEvent.addListener(R,"dragover",mxUtils.bind(this,function(Y){null==U&&(U=this.highlightElement(R));
+Y.stopPropagation();Y.preventDefault()})),mxEvent.addListener(R,"drop",mxUtils.bind(this,function(Y){null!=U&&(U.parentNode.removeChild(U),U=null);if(0<Y.dataTransfer.files.length)this.importFiles(Y.dataTransfer.files,0,0,this.maxImageSize,function(Z,aa,da,fa,ba,ia){g.insertImage(Z,ba,ia)},function(){},function(Z){return"image/"==Z.type.substring(0,6)},function(Z){for(var aa=0;aa<Z.length;aa++)Z[aa]()},mxEvent.isControlDown(Y));else if(0<=mxUtils.indexOf(Y.dataTransfer.types,"text/uri-list")){var X=
Y.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(X)?this.loadImage(decodeURIComponent(X),mxUtils.bind(this,function(Z){var aa=Math.max(1,Z.width);Z=Math.max(1,Z.height);var da=this.maxImageSize;da=Math.min(1,Math.min(da/Math.max(1,aa)),da/Math.max(1,Z));g.insertImage(decodeURIComponent(X),aa*da,Z*da)})):document.execCommand("insertHTML",!1,Y.dataTransfer.getData("text/plain"))}else 0<=mxUtils.indexOf(Y.dataTransfer.types,"text/html")?document.execCommand("insertHTML",
-!1,Y.dataTransfer.getData("text/html")):0<=mxUtils.indexOf(Y.dataTransfer.types,"text/plain")&&document.execCommand("insertHTML",!1,Y.dataTransfer.getData("text/plain"));Y.stopPropagation();Y.preventDefault()})))}));if(Editor.isSettingsEnabled()){y=this.editor.graph.view;var E=mxSettings.getUnit();y.setUnit(E);Editor.pageSizeUnit=E==mxConstants.METERS?mxConstants.MILLIMETERS:E;y.addListener("unitChanged",function(Q,S){Q=S.getProperty("unit");mxSettings.setUnit(Q);mxSettings.save();Editor.pageSizeUnit=
+!1,Y.dataTransfer.getData("text/html")):0<=mxUtils.indexOf(Y.dataTransfer.types,"text/plain")&&document.execCommand("insertHTML",!1,Y.dataTransfer.getData("text/plain"));Y.stopPropagation();Y.preventDefault()})))}));if(Editor.isSettingsEnabled()){y=this.editor.graph.view;var F=mxSettings.getUnit();y.setUnit(F);Editor.pageSizeUnit=F==mxConstants.METERS?mxConstants.MILLIMETERS:F;y.addListener("unitChanged",function(Q,R){Q=R.getProperty("unit");mxSettings.setUnit(Q);mxSettings.save();Editor.pageSizeUnit=
Q==mxConstants.METERS?mxConstants.MILLIMETERS:Q});this.ruler=!Editor.canvasSupported||9==document.documentMode||"1"!=urlParams.ruler&&!mxSettings.isRulerOn()||this.editor.isChromelessView()&&!this.editor.editable?null:new mxDualRuler(this,y.unit);this.refresh()}if("1"==urlParams.styledev){y=document.getElementById("geFooter");null!=y&&(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)})),y.appendChild(this.styleInput),this.editor.graph.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(Q,S){0<this.editor.graph.getSelectionCount()?(Q=this.editor.graph.getSelectionCell(),
+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)})),y.appendChild(this.styleInput),this.editor.graph.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(Q,R){0<this.editor.graph.getSelectionCount()?(Q=this.editor.graph.getSelectionCell(),
Q=this.editor.graph.getModel().getStyle(Q),this.styleInput.value=Q||"",this.styleInput.style.visibility="visible"):this.styleInput.style.visibility="hidden"})));var P=this.isSelectionAllowed;this.isSelectionAllowed=function(Q){return mxEvent.getSource(Q)==this.styleInput?!0:P.apply(this,arguments)}}y=document.getElementById("geInfo");null!=y&&y.parentNode.removeChild(y);if(Graph.fileSupport&&(!this.editor.chromeless||this.editor.editable)){var O=null;mxEvent.addListener(g.container,"dragleave",function(Q){g.isEnabled()&&
-(null!=O&&(O.parentNode.removeChild(O),O=null),Q.stopPropagation(),Q.preventDefault())});mxEvent.addListener(g.container,"dragover",mxUtils.bind(this,function(Q){null==O&&(O=this.highlightElement(g.container));null!=this.sidebar&&this.sidebar.hideTooltip();Q.stopPropagation();Q.preventDefault()}));mxEvent.addListener(g.container,"drop",mxUtils.bind(this,function(Q){null!=O&&(O.parentNode.removeChild(O),O=null);if(g.isEnabled()){var S=mxUtils.convertPoint(g.container,mxEvent.getClientX(Q),mxEvent.getClientY(Q)),
-U=Q.dataTransfer.files,Y=g.view.translate,X=g.view.scale,Z=S.x/X-Y.x,aa=S.y/X-Y.y;if(0<U.length)S=this.isBlankFile()&&!this.canUndo(),Y=1==U.length&&(EditorUi.isVisioFilename(U[0].name)||/(\.drawio)$/i.test(U[0].name)||/(\.xml)$/i.test(U[0].name)),"1"!=urlParams.embed&&S&&(Y||mxEvent.isShiftDown(Q))?(S=this.getCurrentFile(),null!=S&&S.isModified()||this.fileLoaded(null,!0),this.openFiles(U,!0,mxUtils.bind(this,function(){var ka=this.getCurrentFile();null!=ka&&ka.fileChanged()}))):(mxEvent.isAltDown(Q)&&
+(null!=O&&(O.parentNode.removeChild(O),O=null),Q.stopPropagation(),Q.preventDefault())});mxEvent.addListener(g.container,"dragover",mxUtils.bind(this,function(Q){null==O&&(O=this.highlightElement(g.container));null!=this.sidebar&&this.sidebar.hideTooltip();Q.stopPropagation();Q.preventDefault()}));mxEvent.addListener(g.container,"drop",mxUtils.bind(this,function(Q){null!=O&&(O.parentNode.removeChild(O),O=null);if(g.isEnabled()){var R=mxUtils.convertPoint(g.container,mxEvent.getClientX(Q),mxEvent.getClientY(Q)),
+U=Q.dataTransfer.files,Y=g.view.translate,X=g.view.scale,Z=R.x/X-Y.x,aa=R.y/X-Y.y;if(0<U.length)R=this.isBlankFile()&&!this.canUndo(),Y=1==U.length&&(EditorUi.isVisioFilename(U[0].name)||/(\.drawio)$/i.test(U[0].name)||/(\.xml)$/i.test(U[0].name)),"1"!=urlParams.embed&&R&&(Y||mxEvent.isShiftDown(Q))?(R=this.getCurrentFile(),null!=R&&R.isModified()||this.fileLoaded(null,!0),this.openFiles(U,!0,mxUtils.bind(this,function(){var ka=this.getCurrentFile();null!=ka&&ka.fileChanged()}))):(mxEvent.isAltDown(Q)&&
(aa=Z=null),this.importFiles(U,Z,aa,this.maxImageSize,null,null,null,null,mxEvent.isControlDown(Q),null,null,mxEvent.isShiftDown(Q),Q));else{mxEvent.isAltDown(Q)&&(aa=Z=0);var da=0<=mxUtils.indexOf(Q.dataTransfer.types,"text/uri-list")?Q.dataTransfer.getData("text/uri-list"):null;U=this.extractGraphModelFromEvent(Q,null!=this.pages);if(null!=U)g.setSelectionCells(this.importXml(U,Z,aa,!0));else if(0<=mxUtils.indexOf(Q.dataTransfer.types,"text/html")){var fa=Q.dataTransfer.getData("text/html");U=document.createElement("div");
-U.innerHTML=Graph.sanitizeHtml(fa);var ba=null;S=U.getElementsByTagName("img");null!=S&&1==S.length?(fa=S[0].getAttribute("src"),null==fa&&(fa=S[0].getAttribute("srcset")),/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(fa)||(ba=!0)):(S=U.getElementsByTagName("a"),null!=S&&1==S.length?fa=S[0].getAttribute("href"):(U=U.getElementsByTagName("pre"),null!=U&&1==U.length&&(fa=mxUtils.getTextContent(U[0]))));var ia=!0,la=mxUtils.bind(this,function(){g.setSelectionCells(this.insertTextAt(fa,Z,aa,!0,ba,null,ia,mxEvent.isControlDown(Q)))});
+U.innerHTML=Graph.sanitizeHtml(fa);var ba=null;R=U.getElementsByTagName("img");null!=R&&1==R.length?(fa=R[0].getAttribute("src"),null==fa&&(fa=R[0].getAttribute("srcset")),/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(fa)||(ba=!0)):(R=U.getElementsByTagName("a"),null!=R&&1==R.length?fa=R[0].getAttribute("href"):(U=U.getElementsByTagName("pre"),null!=U&&1==U.length&&(fa=mxUtils.getTextContent(U[0]))));var ia=!0,la=mxUtils.bind(this,function(){g.setSelectionCells(this.insertTextAt(fa,Z,aa,!0,ba,null,ia,mxEvent.isControlDown(Q)))});
ba&&null!=fa&&fa.length>this.resampleThreshold?this.confirmImageResize(function(ka){ia=ka;la()},mxEvent.isControlDown(Q)):la()}else null!=da&&/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(da)?this.loadImage(decodeURIComponent(da),mxUtils.bind(this,function(ka){var pa=Math.max(1,ka.width);ka=Math.max(1,ka.height);var Ba=this.maxImageSize;Ba=Math.min(1,Math.min(Ba/Math.max(1,pa)),Ba/Math.max(1,ka));g.setSelectionCell(g.insertVertex(null,null,"",Z,aa,pa*Ba,ka*Ba,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+
da+";"))}),mxUtils.bind(this,function(ka){g.setSelectionCells(this.insertTextAt(da,Z,aa,!0))})):0<=mxUtils.indexOf(Q.dataTransfer.types,"text/plain")&&g.setSelectionCells(this.insertTextAt(Q.dataTransfer.getData("text/plain"),Z,aa,!0))}}Q.stopPropagation();Q.preventDefault()}),!1)}this.initPages();"1"==urlParams.embed&&this.initializeEmbedMode();this.addListener("currentThemeChanged",mxUtils.bind(this,function(){null!=this.sidebar&&this.sidebar.updateEntries();this.updateButtonContainer();this.updateDocumentTitle();
-this.refresh(!0)}));this.addListener("realtimeStateChanged",mxUtils.bind(this,function(){this.updateButtonContainer(!0)}));this.addListener("darkModeChanged",function(){mxClient.IS_SF&&g.view.validateBackground()});g.addListener("enabledChanged",mxUtils.bind(this,function(){g.isEnabled()||this.hideShapePicker();this.refresh()}));c=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==c.embedViewport)mxUtils.fit(this.div);else{var Q=parseInt(this.div.offsetLeft),S=parseInt(this.div.offsetWidth),
-U=c.embedViewport.x+c.embedViewport.width,Y=parseInt(this.div.offsetTop),X=parseInt(this.div.offsetHeight),Z=c.embedViewport.y+c.embedViewport.height;this.div.style.left=Math.max(c.embedViewport.x,Math.min(Q,U-S))+"px";this.div.style.top=Math.max(c.embedViewport.y,Math.min(Y,Z-X))+"px";this.div.style.height=Math.min(c.embedViewport.height,parseInt(this.div.style.height))+"px";this.div.style.width=Math.min(c.embedViewport.width,parseInt(this.div.style.width))+"px"}};var T=mxWindow.prototype.setLocation;
-mxWindow.prototype.setLocation=function(Q,S){T.call(this,Q,S);c.hideCurrentMenu()};var V=mxWindow.prototype.setSize;mxWindow.prototype.setSize=function(Q,S){V.call(this,Q,S);c.hideCurrentMenu()};if(!this.editor.chromeless||this.editor.editable){y=Editor.currentTheme;if("simple"==y||"sketch"==y)this.doSetCurrentTheme(y,!0),"1"==urlParams.embedInline?this.initializeInlineEmbedMode():(E=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,E<Editor.smallScreenWidth&&(this.formatWidth=
-0),"simple"==y&&E<Editor.smallScreenWidth-240&&(this.hsplitPosition=0),"simple"==y&&(this.lastWindowWidth=E)),this.fireEvent(new mxEventObject("themeInitialized"));"kennedy"==y&&(E=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,E<Editor.smallScreenWidth&&(this.formatWidth=0),E<Editor.smallScreenWidth-240&&(this.hsplitPosition=0),this.lastWindowWidth=E)}y=!1;if(null!=urlParams.dark)y=urlParams.dark;else if(!this.editor.chromeless||this.editor.editable)y="dark"==
+this.refresh(!0)}));this.addListener("realtimeStateChanged",mxUtils.bind(this,function(){this.updateButtonContainer(!0)}));this.addListener("darkModeChanged",function(){mxClient.IS_SF&&g.view.validateBackground()});g.addListener("enabledChanged",mxUtils.bind(this,function(){g.isEnabled()||this.hideShapePicker();this.refresh()}));c=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==c.embedViewport)mxUtils.fit(this.div);else{var Q=parseInt(this.div.offsetLeft),R=parseInt(this.div.offsetWidth),
+U=c.embedViewport.x+c.embedViewport.width,Y=parseInt(this.div.offsetTop),X=parseInt(this.div.offsetHeight),Z=c.embedViewport.y+c.embedViewport.height;this.div.style.left=Math.max(c.embedViewport.x,Math.min(Q,U-R))+"px";this.div.style.top=Math.max(c.embedViewport.y,Math.min(Y,Z-X))+"px";this.div.style.height=Math.min(c.embedViewport.height,parseInt(this.div.style.height))+"px";this.div.style.width=Math.min(c.embedViewport.width,parseInt(this.div.style.width))+"px"}};var S=mxWindow.prototype.setLocation;
+mxWindow.prototype.setLocation=function(Q,R){S.call(this,Q,R);c.hideCurrentMenu()};var V=mxWindow.prototype.setSize;mxWindow.prototype.setSize=function(Q,R){V.call(this,Q,R);c.hideCurrentMenu()};if(!this.editor.chromeless||this.editor.editable){y=Editor.currentTheme;if("simple"==y||"sketch"==y)this.doSetCurrentTheme(y,!0),"1"==urlParams.embedInline?this.initializeInlineEmbedMode():(F=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,F<Editor.smallScreenWidth&&(this.formatWidth=
+0),"simple"==y&&F<Editor.smallScreenWidth-240&&(this.hsplitPosition=0),"simple"==y&&(this.lastWindowWidth=F)),this.fireEvent(new mxEventObject("themeInitialized"));"kennedy"==y&&(F=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,F<Editor.smallScreenWidth&&(this.formatWidth=0),F<Editor.smallScreenWidth-240&&(this.hsplitPosition=0),this.lastWindowWidth=F)}y=!1;if(null!=urlParams.dark)y=urlParams.dark;else if(!this.editor.chromeless||this.editor.editable)y="dark"==
Editor.currentTheme,!Editor.isSettingsEnabled()||"1"==urlParams.embed||y&&"auto"!=mxSettings.settings.darkMode||(y=mxSettings.settings.darkMode);"auto"==y&&this.isAutoDarkModeSupported()&&(y=window.matchMedia("(prefers-color-scheme: dark)").matches);this.setDarkMode("string"===typeof y?"1"==y:y);if(this.isAutoDarkModeSupported())try{window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",mxUtils.bind(this,function(Q){this.isAutoDarkMode()&&this.setDarkMode(Q.matches)}))}catch(Q){this.actions.get("autoMode").setEnabled(!1)}"1"==
urlParams["high-contrast"]?this.setHighContrast(!0):Editor.isSettingsEnabled()&&!this.editor.graph.isLightboxView()&&null!=mxSettings.settings.highContrast?this.setHighContrast(mxSettings.settings.highContrast):null!=window.matchMedia&&window.matchMedia("(prefers-contrast: more)").matches&&this.setHighContrast(!0);Editor.isSettingsEnabled()&&(null!=mxSettings.settings.pages&&this.setTabContainerVisible(mxSettings.settings.pages),null!=mxSettings.settings.compactMode&&this.isDefaultTheme(Editor.currentTheme)&&
-this.setCompactMode(mxSettings.settings.compactMode));this.installSettings();this.addListener("enableAnimationsChanged",mxUtils.bind(this,function(Q,S){g.enableFlowAnimation=Editor.enableAnimations;g.refresh()}));g.enableFlowAnimation=Editor.enableAnimations;screen.width<=Editor.smallScreenWidth&&(this.formatWidth=0);"1"==urlParams.prefetchFonts&&c.editor.loadFonts();"atlas"==Editor.currentTheme&&document.body.classList.add("geAtlas")};var v=EditorUi.prototype.windowResized;EditorUi.prototype.windowResized=
+this.setCompactMode(mxSettings.settings.compactMode));this.installSettings();this.addListener("enableAnimationsChanged",mxUtils.bind(this,function(Q,R){g.enableFlowAnimation=Editor.enableAnimations;g.refresh()}));g.enableFlowAnimation=Editor.enableAnimations;screen.width<=Editor.smallScreenWidth&&(this.formatWidth=0);"1"==urlParams.prefetchFonts&&c.editor.loadFonts();"atlas"==Editor.currentTheme&&document.body.classList.add("geAtlas")};var v=EditorUi.prototype.windowResized;EditorUi.prototype.windowResized=
function(){if("simple"==Editor.currentTheme||"kennedy"==Editor.currentTheme){var c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,g=Editor.smallScreenWidth;null!=this.lastWindowWidth&&this.lastWindowWidth>=g&&c<g?this.isFormatPanelVisible()&&this.toggleFormatPanel(!1):null!=this.lastWindowWidth&&this.lastWindowWidth<g&&c>=g&&(this.isFormatPanelVisible()||this.toggleFormatPanel(!0));g=Editor.smallScreenWidth-160;null!=this.lastWindowWidth&&this.lastWindowWidth>=
g&&c<g?this.isShapesPanelVisible()&&this.toggleShapesPanel(!1,!0):null!=this.lastWindowWidth&&this.lastWindowWidth<g&&c>=g&&!this.isShapesPanelVisible()&&this.sidebarEnabled&&this.toggleShapesPanel(!0,!0);this.lastWindowWidth=c}v.apply(this,arguments);null!=this.updateFullscreenState&&this.updateFullscreenState()};EditorUi.prototype.initializeInlineEmbedMode=function(){var c=this.sketchFooterMenuElt,g=this.sketchMainMenuElt,l=this.sketchPickerMenuElt,n=this.editor.graph;l.style.transform="";mxEvent.addGestureListeners(this.diagramContainer.parentNode,
mxUtils.bind(this,function(K){mxEvent.getSource(K)==this.diagramContainer.parentNode&&(this.embedExitPoint=new mxPoint(mxEvent.getClientX(K),mxEvent.getClientY(K)),this.sendEmbeddedSvgExport())}));document.body.style.cursor="text";var u=document.createElement("div");u.style.position="absolute";u.style.width="10px";u.style.height="10px";u.style.borderRadius="5px";u.style.border="1px solid gray";u.style.background="#ffffff";u.style.cursor="row-resize";this.diagramContainer.parentNode.appendChild(u);
-this.bottomResizer=u;var x=null,B=null,C=null,F=null;mxEvent.addGestureListeners(u,mxUtils.bind(this,function(K){F=parseInt(this.diagramContainer.style.height);B=mxEvent.getClientY(K);n.popupMenuHandler.hideMenu();mxEvent.consume(K)}));u=u.cloneNode(!1);u.style.cursor="col-resize";this.diagramContainer.parentNode.appendChild(u);this.rightResizer=u;mxEvent.addGestureListeners(u,mxUtils.bind(this,function(K){C=parseInt(this.diagramContainer.style.width);x=mxEvent.getClientX(K);n.popupMenuHandler.hideMenu();
-mxEvent.consume(K)}));mxEvent.addGestureListeners(document.body,null,mxUtils.bind(this,function(K){var I=!1;null!=x&&(this.diagramContainer.style.width=Math.max(20,C+mxEvent.getClientX(K)-x)+"px",I=!0);null!=B&&(this.diagramContainer.style.height=Math.max(20,F+mxEvent.getClientY(K)-B)+"px",I=!0);I&&((this.embedMessageSource||window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:Editor.inlineFullscreen,rect:this.diagramContainer.getBoundingClientRect()}),"*"),this.inlineSizeChanged(),
+this.bottomResizer=u;var x=null,B=null,C=null,E=null;mxEvent.addGestureListeners(u,mxUtils.bind(this,function(K){E=parseInt(this.diagramContainer.style.height);B=mxEvent.getClientY(K);n.popupMenuHandler.hideMenu();mxEvent.consume(K)}));u=u.cloneNode(!1);u.style.cursor="col-resize";this.diagramContainer.parentNode.appendChild(u);this.rightResizer=u;mxEvent.addGestureListeners(u,mxUtils.bind(this,function(K){C=parseInt(this.diagramContainer.style.width);x=mxEvent.getClientX(K);n.popupMenuHandler.hideMenu();
+mxEvent.consume(K)}));mxEvent.addGestureListeners(document.body,null,mxUtils.bind(this,function(K){var I=!1;null!=x&&(this.diagramContainer.style.width=Math.max(20,C+mxEvent.getClientX(K)-x)+"px",I=!0);null!=B&&(this.diagramContainer.style.height=Math.max(20,E+mxEvent.getClientY(K)-B)+"px",I=!0);I&&((this.embedMessageSource||window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:Editor.inlineFullscreen,rect:this.diagramContainer.getBoundingClientRect()}),"*"),this.inlineSizeChanged(),
this.refresh())}),function(K){null==x&&null==B||mxEvent.consume(K);B=x=null});document.body.style.backgroundColor="transparent";this.diagramContainer.style.borderRadius="4px";this.bottomResizer.style.visibility="hidden";this.rightResizer.style.visibility="hidden";this.sketchMenubarElt.style.display="none";g.style.visibility="hidden";c.style.visibility="hidden";l.style.display="none";this.addListener("editInlineStart",mxUtils.bind(this,function(K){this.inlineSizeChanged();Editor.passiveScroll?this.hideWindows():
this.fitWindows()}));this.addListener("editInlineStop",mxUtils.bind(this,function(K){this.diagramContainer.style.width="10px";this.diagramContainer.style.height="10px";this.diagramContainer.style.border="";this.bottomResizer.style.visibility="hidden";this.rightResizer.style.visibility="hidden";g.style.visibility="hidden";c.style.visibility="hidden";l.style.display="none"}));this.windowResized=mxUtils.bind(this,function(){});this.inlineSizeChanged()};EditorUi.prototype.installNativeClipboardHandler=
function(){function c(){window.setTimeout(function(){l.innerHTML="&nbsp;";l.focus();document.execCommand("selectAll",!1,null)},0)}var g=this.editor.graph,l=document.createElement("div");l.setAttribute("autocomplete","off");l.setAttribute("autocorrect","off");l.setAttribute("autocapitalize","off");l.setAttribute("spellcheck","false");l.style.textRendering="optimizeSpeed";l.style.fontFamily="monospace";l.style.wordBreak="break-all";l.style.background="transparent";l.style.color="transparent";l.style.position=
@@ -13587,7 +13593,7 @@ function(){function c(){window.setTimeout(function(){l.innerHTML="&nbsp;";l.focu
null==g.container||!g.isEnabled()||g.isMouseDown||g.isEditing()||null!=this.dialog||"INPUT"==B.nodeName||"TEXTAREA"==B.nodeName&&B!==this.typingShim||"true"==B.contentEditable||224!=x.keyCode&&(mxClient.IS_MAC||17!=x.keyCode)&&(!mxClient.IS_MAC||91!=x.keyCode&&93!=x.keyCode)||n||(l.style.left=g.container.scrollLeft+10+"px",l.style.top=g.container.scrollTop+10+"px",x=g.container.scrollLeft,B=g.container.scrollTop,g.container.appendChild(l),n=!0,l.focus(),document.execCommand("selectAll",!1,null),g.container.scrollLeft=
x,g.container.scrollTop=B)}));mxEvent.addListener(document,"keyup",mxUtils.bind(this,function(x){var B=x.keyCode;window.setTimeout(mxUtils.bind(this,function(){!n||224!=B&&17!=B&&91!=B&&93!=B||(n=!1,g.isEditing()||null!=this.dialog||null==g.container||g.container.focus(),l.parentNode.removeChild(l),null==this.dialog&&mxUtils.clearSelection())}),0)}));mxEvent.addListener(l,"copy",mxUtils.bind(this,function(x){if(g.isEnabled())try{mxClipboard.copy(g),this.copyCells(l),c()}catch(B){this.handleError(B)}}));
mxEvent.addListener(l,"cut",mxUtils.bind(this,function(x){if(g.isEnabled())try{mxClipboard.copy(g),this.copyCells(l,!0),c()}catch(B){this.handleError(B)}}));mxEvent.addListener(l,"paste",mxUtils.bind(this,function(x){if(g.isEnabled()&&!g.isCellLocked(g.getDefaultParent()))try{if(l.innerHTML="&nbsp;",l.focus(),null!=x.clipboardData&&(Graph.removePasteFormatting(l.firstChild),this.pasteCells(x,l,!0,!0)),!mxEvent.isConsumed(x)){var B=g.container.scrollLeft,C=g.container.scrollTop;window.setTimeout(mxUtils.bind(this,
-function(){try{g.container.scrollLeft=B,g.container.scrollTop=C,Graph.removePasteFormatting(l.firstChild),this.pasteCells(x,l,!1,!0)}catch(F){this.handleError(F)}}),0)}}catch(F){this.handleError(F)}}),!0);var u=this.isSelectionAllowed;this.isSelectionAllowed=function(x){return mxEvent.getSource(x)==l?!0:u.apply(this,arguments)}};EditorUi.prototype.setCurrentTheme=function(c,g){mxSettings.setUi(c);(g=this.doSetCurrentTheme(c)||g)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=
+function(){try{g.container.scrollLeft=B,g.container.scrollTop=C,Graph.removePasteFormatting(l.firstChild),this.pasteCells(x,l,!1,!0)}catch(E){this.handleError(E)}}),0)}}catch(E){this.handleError(E)}}),!0);var u=this.isSelectionAllowed;this.isSelectionAllowed=function(x){return mxEvent.getSource(x)==l?!0:u.apply(this,arguments)}};EditorUi.prototype.setCurrentTheme=function(c,g){mxSettings.setUi(c);(g=this.doSetCurrentTheme(c)||g)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=
function(c){return""==c||"dark"==c||"default"==c||"kennedy"==c||null==c};EditorUi.prototype.doSetCurrentTheme=function(c,g){if(null==c||""==c)c=App.isSimpleThemePreferred()?"simple":"kennedy";var l="simple"==Editor.currentTheme&&this.isDefaultTheme(c)||this.isDefaultTheme(Editor.currentTheme)&&"simple"==c||c==Editor.currentTheme;if(l||g)g=this.saveScrollState(),this.editor.graph.stopEditing(!1),Editor.currentTheme=c,this.switchTheme(c),this.fireEvent(new mxEventObject("currentThemeChanged")),this.editor.fireEvent(new mxEventObject("statusChanged")),
this.restoreScrollState(g);return l};EditorUi.prototype.saveScrollState=function(c){var g=this.editor.graph.view.translate,l=this.diagramContainer.scrollLeft,n=this.diagramContainer.scrollTop;null!=this.embedViewport&&(Editor.inlineFullscreen?(l-=this.embedViewport.x,n-=this.embedViewport.y):(l+=this.embedViewport.x,n+=this.embedViewport.y));g={x:l,y:n,tx:g.x,ty:g.y};c&&(g.boundingRect=this.diagramContainer.getBoundingClientRect());return g};EditorUi.prototype.restoreScrollState=function(c){var g=
this.editor.graph.view.scale,l=this.editor.graph.view.translate;if(null!=c.boundingRect){var n=this.diagramContainer.getBoundingClientRect();c.x-=c.boundingRect.x-n.x;c.y-=c.boundingRect.y-n.y}this.diagramContainer.scrollLeft=c.x+(l.x-c.tx)*g;this.diagramContainer.scrollTop=c.y+(l.y-c.ty)*g};EditorUi.prototype.installStatusMinimizer=function(c){c=null!=c?c:this.statusContainer.parentNode;var g=!1;mxEvent.addListener(c,"mouseenter",mxUtils.bind(this,function(){"sketch"==Editor.currentTheme&&""!=this.editor.getStatus()&&
@@ -13599,18 +13605,18 @@ c.length;g++)null!=c[g]&&c[g].window.setVisible(!1)};EditorUi.prototype.destroyW
null);null!=this.actions.layersWindow&&(this.actions.layersWindow.destroy(),this.actions.layersWindow=null);null!=this.menus&&(null!=this.menus.chatWindow&&(this.menus.chatWindow.destroy(),this.menus.chatWindow=null),null!=this.menus.tagsWindow&&(this.menus.tagsWindow.destroy(),this.menus.tagsWindow=null),null!=this.menus.findWindow&&(this.menus.findWindow.destroy(),this.menus.findWindow=null),null!=this.menus.findReplaceWindow&&(this.menus.findReplaceWindow.destroy(),this.menus.findReplaceWindow=
null),null!=this.menus.commentsWindow&&(this.menus.commentsWindow.destroy(),this.menus.commentsWindow=null));null!=this.dockManager&&(this.dockManager.destroy(),this.dockManager=null);null!=this._dockResizeListener&&(mxEvent.removeListener(window,"resize",this._dockResizeListener),this._dockResizeListener=null)};EditorUi.prototype.createDockManager=function(){this.dockManager={windows:[],threshold:16,previewElement:null,getDockZone:function(c,g,l){var n=this.threshold,u=c<=n;c=c+l.offsetWidth>=(window.innerWidth||
document.documentElement.clientWidth||document.body.clientWidth)-n;var x=g<=n;g=g+l.offsetHeight>=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-n;return u&&x?"top-left":c&&x?"top-right":u&&g?"bottom-left":c&&g?"bottom-right":u?"left":c?"right":x?"top":g?"bottom":null},dock:function(c,g){var l=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,n=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,
-u=parseInt(c.div.style.width),x=parseInt(c.div.style.height),B=c.getX(),C=c.getY();c.dockState=g;c.div.classList.add("mxWindowDocked");var F=0<=g.indexOf("right"),K=0<=g.indexOf("bottom");0<=g.indexOf("left")?B=0:0<=g.indexOf("right")&&(B=l-u);0<=g.indexOf("top")?C=0:0<=g.indexOf("bottom")&&(C=n-x);F||(F=B+u/2>l/2);K||(K=C+x/2>n/2);c._dockAnchorRight=F;c._dockAnchorBottom=K;c._dockOffsetX=F?l-B-u:B;c._dockOffsetY=K?n-C-x:C;this.windows.push(c);this.pinToEdge(c);c.fireEvent(new mxEventObject(mxEvent.DOCK,
+u=parseInt(c.div.style.width),x=parseInt(c.div.style.height),B=c.getX(),C=c.getY();c.dockState=g;c.div.classList.add("mxWindowDocked");var E=0<=g.indexOf("right"),K=0<=g.indexOf("bottom");0<=g.indexOf("left")?B=0:0<=g.indexOf("right")&&(B=l-u);0<=g.indexOf("top")?C=0:0<=g.indexOf("bottom")&&(C=n-x);E||(E=B+u/2>l/2);K||(K=C+x/2>n/2);c._dockAnchorRight=E;c._dockAnchorBottom=K;c._dockOffsetX=E?l-B-u:B;c._dockOffsetY=K?n-C-x:C;this.windows.push(c);this.pinToEdge(c);c.fireEvent(new mxEventObject(mxEvent.DOCK,
"side",g))},undock:function(c){var g=c.dockState;if(null!=g){for(var l=0;l<this.windows.length;l++)if(this.windows[l]===c){this.windows.splice(l,1);break}c.div.classList.remove("mxWindowDocked");c.dockState=null;c._dockAnchorRight=null;c._dockAnchorBottom=null;c._dockOffsetX=null;c._dockOffsetY=null;c.fireEvent(new mxEventObject(mxEvent.UNDOCK,"side",g))}},pinToEdge:function(c){var g=c.dockState;if(null!=g){var l=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,n=
window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,u=parseInt(c.div.style.width),x=parseInt(c.div.style.height);var B=c._dockAnchorRight?l-u-(c._dockOffsetX||0):c._dockOffsetX||0;var C=c._dockAnchorBottom?n-x-(c._dockOffsetY||0):c._dockOffsetY||0;0<=g.indexOf("left")?B=0:0<=g.indexOf("right")&&(B=l-u);0<=g.indexOf("top")?C=0:0<=g.indexOf("bottom")&&(C=n-x);B=Math.max(0,Math.min(B,l-u));C=Math.max(0,Math.min(C,n-x));c._relayouting=!0;mxWindow.prototype.setLocation.call(c,
B,C);c._relayouting=!1}},layoutAll:function(){for(var c=0;c<this.windows.length;c++)this.pinToEdge(this.windows[c])},showPreview:function(c,g){null==this.previewElement&&(this.previewElement=document.createElement("div"),this.previewElement.className="geDockPreview",document.body.appendChild(this.previewElement));var l=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,n=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,u=this.previewElement,
x=g.div.offsetWidth,B=g.div.offsetHeight,C=g.getX();g=g.getY();0<=c.indexOf("left")?C=0:0<=c.indexOf("right")&&(C=l-x);0<=c.indexOf("top")?g=0:0<=c.indexOf("bottom")&&(g=n-B);C=Math.max(0,Math.min(C,l-x));g=Math.max(0,Math.min(g,n-B));u.style.display="block";u.style.left=C+"px";u.style.top=g+"px";u.style.width=x+"px";u.style.height=B+"px"},hidePreview:function(){null!=this.previewElement&&(this.previewElement.style.display="none")},removeWindow:function(c){for(var g=0;g<this.windows.length;g++)if(this.windows[g]===
c){this.windows.splice(g,1);break}},destroy:function(){null!=this.previewElement&&null!=this.previewElement.parentNode&&(this.previewElement.parentNode.removeChild(this.previewElement),this.previewElement=null)}};this._dockResizeListener=mxUtils.bind(this,function(){null!=this.dockManager&&this.dockManager.layoutAll()});mxEvent.addListener(window,"resize",this._dockResizeListener)};var A=EditorUi.prototype.installResizeHandler;EditorUi.prototype.installResizeHandler=function(c,g,l){A.apply(this,arguments);
-if(EditorUi.windowed&&Editor.enableWindowDocking){var n=c.window;null==this.dockManager&&this.createDockManager();var u=this.dockManager,x=!1,B=null,C=n.setLocation;n.setLocation=function(I,R){(null==this.dockState||this._undocking||this._relayouting)&&C.call(this,I,R)};var F=n.setSize;n.setSize=function(I,R){if(null!=this.dockState){mxWindow.prototype.setSize.call(this,I,R);I=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;R=window.innerHeight||document.documentElement.clientHeight||
-document.body.clientHeight;var W=parseInt(this.div.style.width),q=parseInt(this.div.style.height),z=this.getX(),L=this.getY();this._dockOffsetX=this._dockAnchorRight?I-z-W:z;this._dockOffsetY=this._dockAnchorBottom?R-L-q:L;u.pinToEdge(this)}else F.call(this,I,R)};n.addListener(mxEvent.MOVE_START,function(I,R){x=!0;B=null;null!=n.dockState&&(n._undocking=!0,u.undock(n),n._undocking=!1)});n.addListener(mxEvent.MOVE,function(I,R){x&&(I=u.getDockZone(n.getX(),n.getY(),n.div),I!=B&&(B=I,null!=I?u.showPreview(I,
-n):u.hidePreview()))});n.addListener(mxEvent.MOVE_END,function(I,R){x=!1;u.hidePreview();null!=B&&u.dock(n,B);B=null});n.addListener(mxEvent.DOCK,function(I,R){if(null!=n.resize){I=R.getProperty("side");var W=0<=I.indexOf("right"),q=0<=I.indexOf("bottom");if(W||q){I=n.resize;I.parentNode.removeChild(I);n.resize=null;I=document.createElement("img");I.style.position="absolute";I.style.zIndex="2";I.setAttribute("src",mxWindow.prototype.resizeImage);W?I.style.left="0px":I.style.right="0px";q?I.style.top=
-"0px":I.style.bottom="0px";I.style.cursor=W!=q?"nesw-resize":"nwse-resize";var z=null,L=null,N=null,M=null,m=function(E){if(null!=z&&null!=L){var P=mxEvent.getClientX(E)-z,O=mxEvent.getClientY(E)-L;n.setSize(W?N-P:N+P,q?M-O:M+O);n.fireEvent(new mxEventObject(mxEvent.RESIZE,"event",E));mxEvent.consume(E)}},y=function(E){null!=z&&null!=L&&(L=z=null,mxEvent.removeGestureListeners(document,null,m,y),n.fireEvent(new mxEventObject(mxEvent.RESIZE_END,"event",E)),mxEvent.consume(E))};mxEvent.addGestureListeners(I,
-function(E){n.activate();z=mxEvent.getClientX(E);L=mxEvent.getClientY(E);N=n.div.offsetWidth;M=n.div.offsetHeight;mxEvent.addGestureListeners(document,null,m,y);n.fireEvent(new mxEventObject(mxEvent.RESIZE_START,"event",E));mxEvent.consume(E)},m,y);n.div.appendChild(I);n.resize=I;n._dockResize=!0}}});n.addListener(mxEvent.UNDOCK,function(I,R){n._dockResize&&(null!=n.resize&&(n.resize.parentNode.removeChild(n.resize),n.resize=null),n.setResizable(!0),n._dockResize=!1)});n.addListener(mxEvent.NORMALIZE,
-function(I,R){null!=n.dockState&&u.pinToEdge(n)});n.addListener(mxEvent.MAXIMIZE,function(I,R){null!=n.dockState&&(n._undocking=!0,u.undock(n),n._undocking=!1)});n.addListener(mxEvent.SHOW,function(I,R){null!=n.dockState&&u.pinToEdge(n)});var K=c.destroy;c.destroy=function(){u.removeWindow(n);K.apply(this,arguments)}}};EditorUi.prototype.switchThemeConstants=function(c){var g=this.editor.graph;g.defaultEdgeLength=Graph.prototype.defaultEdgeLength;g.defaultGridEnabled=Graph.prototype.defaultGridEnabled;
+if(EditorUi.windowed&&Editor.enableWindowDocking){var n=c.window;null==this.dockManager&&this.createDockManager();var u=this.dockManager,x=!1,B=null,C=n.setLocation;n.setLocation=function(I,T){(null==this.dockState||this._undocking||this._relayouting)&&C.call(this,I,T)};var E=n.setSize;n.setSize=function(I,T){if(null!=this.dockState){mxWindow.prototype.setSize.call(this,I,T);I=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;T=window.innerHeight||document.documentElement.clientHeight||
+document.body.clientHeight;var W=parseInt(this.div.style.width),q=parseInt(this.div.style.height),z=this.getX(),L=this.getY();this._dockOffsetX=this._dockAnchorRight?I-z-W:z;this._dockOffsetY=this._dockAnchorBottom?T-L-q:L;u.pinToEdge(this)}else E.call(this,I,T)};n.addListener(mxEvent.MOVE_START,function(I,T){x=!0;B=null;null!=n.dockState&&(n._undocking=!0,u.undock(n),n._undocking=!1)});n.addListener(mxEvent.MOVE,function(I,T){x&&(I=u.getDockZone(n.getX(),n.getY(),n.div),I!=B&&(B=I,null!=I?u.showPreview(I,
+n):u.hidePreview()))});n.addListener(mxEvent.MOVE_END,function(I,T){x=!1;u.hidePreview();null!=B&&u.dock(n,B);B=null});n.addListener(mxEvent.DOCK,function(I,T){if(null!=n.resize){I=T.getProperty("side");var W=0<=I.indexOf("right"),q=0<=I.indexOf("bottom");if(W||q){I=n.resize;I.parentNode.removeChild(I);n.resize=null;I=document.createElement("img");I.style.position="absolute";I.style.zIndex="2";I.setAttribute("src",mxWindow.prototype.resizeImage);W?I.style.left="0px":I.style.right="0px";q?I.style.top=
+"0px":I.style.bottom="0px";I.style.cursor=W!=q?"nesw-resize":"nwse-resize";var z=null,L=null,N=null,M=null,m=function(F){if(null!=z&&null!=L){var P=mxEvent.getClientX(F)-z,O=mxEvent.getClientY(F)-L;n.setSize(W?N-P:N+P,q?M-O:M+O);n.fireEvent(new mxEventObject(mxEvent.RESIZE,"event",F));mxEvent.consume(F)}},y=function(F){null!=z&&null!=L&&(L=z=null,mxEvent.removeGestureListeners(document,null,m,y),n.fireEvent(new mxEventObject(mxEvent.RESIZE_END,"event",F)),mxEvent.consume(F))};mxEvent.addGestureListeners(I,
+function(F){n.activate();z=mxEvent.getClientX(F);L=mxEvent.getClientY(F);N=n.div.offsetWidth;M=n.div.offsetHeight;mxEvent.addGestureListeners(document,null,m,y);n.fireEvent(new mxEventObject(mxEvent.RESIZE_START,"event",F));mxEvent.consume(F)},m,y);n.div.appendChild(I);n.resize=I;n._dockResize=!0}}});n.addListener(mxEvent.UNDOCK,function(I,T){n._dockResize&&(null!=n.resize&&(n.resize.parentNode.removeChild(n.resize),n.resize=null),n.setResizable(!0),n._dockResize=!1)});n.addListener(mxEvent.NORMALIZE,
+function(I,T){null!=n.dockState&&u.pinToEdge(n)});n.addListener(mxEvent.MAXIMIZE,function(I,T){null!=n.dockState&&(n._undocking=!0,u.undock(n),n._undocking=!1)});n.addListener(mxEvent.SHOW,function(I,T){null!=n.dockState&&u.pinToEdge(n)});var K=c.destroy;c.destroy=function(){u.removeWindow(n);K.apply(this,arguments)}}};EditorUi.prototype.switchThemeConstants=function(c){var g=this.editor.graph;g.defaultEdgeLength=Graph.prototype.defaultEdgeLength;g.defaultGridEnabled=Graph.prototype.defaultGridEnabled;
g.defaultPageVisible=Graph.prototype.defaultPageVisible;null!=this.menus&&(this.menus.autoPopup="simple"!=c&&"sketch"!=c);if("simple"==c||"sketch"==c){Editor.fitWindowBorders=new mxRectangle(60,30,30,30);if(null==Editor.config||null==Editor.config.defaultEdgeLength)g.defaultEdgeLength=120;null==urlParams.grid&&(g.defaultGridEnabled=!1);null==urlParams.pv&&(g.defaultPageVisible=!1)}else Editor.fitWindowBorders=null};EditorUi.prototype.isPageMenuVisible=function(){return null!=this.pages&&("0"!=urlParams.pages||
1<this.pages.length||Editor.pagesVisible)};EditorUi.prototype.switchCssForTheme=function(c){};EditorUi.prototype.createMainMenuForTheme=function(c){};EditorUi.prototype.createFooterMenuForTheme=function(c){};EditorUi.prototype.createPickerMenuForTheme=function(c){};EditorUi.prototype.getNetworkStatus=function(){var c=null;if(this.isOffline(!0))c=mxResources.get("offline");else{var g=this.getCurrentFile();null!=g&&(g.invalidChecksum?c=mxResources.get("error")+": "+mxResources.get("checksum"):null==
g.sync||g.sync.enabled&&g.sync.isRealtimeActive()||"atlassian"==this.getServiceName()?null==g.sync||g.sync.isConnected()?g.isRealtimeEnabled()&&g.isRealtimeSupported()&&1<g.getRealtimeState()&&(c=g.getRealtimeError(),c=mxResources.get("realtimeCollaboration")+": "+(null!=c&&null!=c.message?c.message:mxResources.get("error"))):c=mxResources.get("notConnected"):c=mxResources.get("realtimeCollaboration")+": "+mxResources.get("disabled"))}return c};EditorUi.prototype.createMenubarForTheme=function(c){null!=
@@ -13624,7 +13630,7 @@ this.formatEnabled?window.setTimeout(mxUtils.bind(this,mxUtils.bind(this,functio
this.formatWindow;null!=g?g.window.setVisible(null!=c?c:!this.isFormatPanelVisible()):J.apply(this,arguments)};EditorUi.prototype.toggleShapesPanel=function(c,g){if(this.isShapesPanelVisible()!=c){var l=EditorUi.prototype.hsplitPosition;0==l&&(l=Math.min(this.diagramContainer.clientWidth,this.defaultSidebarWidth));var n=this.hsplitPosition,u=mxUtils.bind(this,function(){this.hsplitPosition=x;this.refresh();g||(this.diagramContainer.scrollLeft-=n-this.hsplitPosition)}),x=c?l:0,B=Editor.transitionDelay;
mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==x?"translateX(0)":"translateX(-100%)");0!=x&&u();window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==x?"translateX(-100%)":"translateX(0)");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition","transform "+B+"s ease-in-out");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin","top left");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,
"transition",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin",null);0==x&&u();this.fireEvent(new mxEventObject("shapesPanelChanged"))}),1E3*B)}),0)}};EditorUi.prototype.isShapesPanelVisible=function(){return 0<this.hsplitPosition};var H=EditorUi.prototype.isFormatPanelVisible;EditorUi.prototype.isFormatPanelVisible=function(){var c=this.formatWindow;return null!=c?c.window.isVisible():H.apply(this,
-arguments)};EditorUi.prototype.createShapesPanel=function(c){var g=mxUtils.bind(this,function(B,C){var F=this.menus.get(B);B=this.createMenuElement(C,mxUtils.bind(this,function(){F.funct.apply(this,arguments)}));B.setAttribute("title",C);B.style.cssText="position:absolute;border-style:solid;bottom:0px;margin:0;border-radius:0;border-width:1px 0 0 0;";B.className="geButton";c.parentNode.appendChild(B);return B});if(Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries))if(null!=
+arguments)};EditorUi.prototype.createShapesPanel=function(c){var g=mxUtils.bind(this,function(B,C){var E=this.menus.get(B);B=this.createMenuElement(C,mxUtils.bind(this,function(){E.funct.apply(this,arguments)}));B.setAttribute("title",C);B.style.cssText="position:absolute;border-style:solid;bottom:0px;margin:0;border-radius:0;border-width:1px 0 0 0;";B.className="geButton";c.parentNode.appendChild(B);return B});if(Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries))if(null!=
this.actions.get("newLibrary"))g=document.createElement("div"),g.style.cssText="position:absolute;border-style:solid;bottom:0px;margin:0;border-radius:0;border-width:1px 0 0 0;",g.className="geButton",g.style.left="0px",g.style.right="50%",mxUtils.write(g,mxResources.get("newLibrary")),c.appendChild(g),mxEvent.addListener(g,"click",this.actions.get("newLibrary").funct),g=g.cloneNode(!1),g.style.left="50%",g.style.right="0px",mxUtils.write(g,mxResources.get("openLibrary")),c.appendChild(g),mxEvent.addListener(g,
"click",this.actions.get("openLibrary").funct);else{var l=g("newLibrary","");l.style.left="0px";l.style.right="50%";var n=document.createElement("span");l.appendChild(n);var u=g("openLibraryFrom","");u.style.borderLeftWidth="1px";u.style.left="50%";u.style.right="0px";var x=document.createElement("span");u.appendChild(x);this.dependsOnLanguage(mxUtils.bind(this,function(){n.innerHTML="";mxUtils.write(n,mxResources.get("newLibrary"));l.setAttribute("title",mxResources.get("newLibrary"));x.innerHTML=
"";mxUtils.write(x,mxResources.get("openLibraryFrom"));u.setAttribute("title",mxResources.get("openLibraryFrom"))}))}c.appendChild(this.sidebar.container);c.style.overflow="hidden"};EditorUi.prototype.createShapesWindow=function(){if(null==this.sidebarWindow){var c=Math.min(this.diagramContainer.parentNode.clientWidth-10,218),g="1"==urlParams.embedInline?650:Math.min(this.diagramContainer.parentNode.clientHeight,650),l="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme;this.sidebarWindow=
@@ -13654,45 +13660,45 @@ mxUtils.bind(this,function(g,l){mxSettings.setCustomFonts(this.menus.customFonts
mxUtils.bind(this,function(g,l){mxSettings.setPageFormat(c.pageFormat);mxSettings.save()}));c.view.defaultDarkGridColor=mxSettings.getGridColor(!0);c.view.defaultGridColor=mxSettings.getGridColor(!1);c.view.gridColor="light-dark("+c.view.defaultGridColor+", "+c.view.defaultDarkGridColor+")";this.addListener("gridColorChanged",mxUtils.bind(this,function(g,l){mxSettings.setGridColor(c.view.defaultGridColor,!1);mxSettings.setGridColor(c.view.defaultDarkGridColor,!0);mxSettings.save()}));if(mxClient.IS_CHROMEAPP||
EditorUi.isElectronApp)this.editor.addListener("autosaveChanged",mxUtils.bind(this,function(g,l){mxSettings.setAutosave(this.editor.autosave);mxSettings.save()})),this.editor.autosave=mxSettings.getAutosave();if(!this.editor.chromeless||this.editor.editable)null!=mxSettings.settings.enableAnimations&&(Editor.enableAnimations=mxSettings.settings.enableAnimations),this.addListener("enableAnimationsChanged",mxUtils.bind(this,function(g,l){mxSettings.settings.enableAnimations=Editor.enableAnimations;
mxSettings.save()}));null!=this.sidebar&&(null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes?(this.sidebar.searchShapes(decodeURIComponent(urlParams["search-shapes"])),this.sidebar.showEntries("search")):(this.sidebar.showPalette("search",mxSettings.settings.search),this.editor.chromeless&&!this.editor.editable||!(mxSettings.settings.isNew||8>=parseInt(mxSettings.settings.version||0))||(this.toggleScratchpad(),mxSettings.save())));this.addListener("formatWidthChanged",function(){mxSettings.setFormatWidth(this.formatWidth);
-mxSettings.save()})}};EditorUi.prototype.writeImageToClipboard=function(c,g,l,n,u,x){n=null!=n?n:"image/png";var B=null==g||null==l?'<img src="'+c+'">':'<img src="'+c+'" width="'+g+'" height="'+l+'">',C={"text/html":new Blob([B],{type:"text/html"})};null!=ClipboardItem.supports&&ClipboardItem.supports(n)&&(C[n]=this.base64ToBlob(c.substring(c.indexOf(",")+1),n));var F=new ClipboardItem(C);navigator.clipboard.write([F]).then(u)["catch"](x);EditorUi.debug("EditorUi.writeImageToClipboard",[this],"dataUrl",
-[c],"w",g,"h",l,"type",n,"html",[B],"data",[C],"item",[F])};EditorUi.prototype.writeHtmlToClipboard=function(c,g){navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([Editor.convertHtmlToText(c)],{type:"text/plain"}),"text/html":new Blob([c],{type:"text/html"})})])["catch"](g)};EditorUi.prototype.writeTextToClipboard=function(c,g,l){navigator.clipboard.writeText(c)["catch"](g).then(function(){null!=l&&l()})};EditorUi.prototype.copySvg=function(c,g,l){try{if(null!=navigator.clipboard&&
+mxSettings.save()})}};EditorUi.prototype.writeImageToClipboard=function(c,g,l,n,u,x){n=null!=n?n:"image/png";var B=null==g||null==l?'<img src="'+c+'">':'<img src="'+c+'" width="'+g+'" height="'+l+'">',C={"text/html":new Blob([B],{type:"text/html"})};null!=ClipboardItem.supports&&ClipboardItem.supports(n)&&(C[n]=this.base64ToBlob(c.substring(c.indexOf(",")+1),n));var E=new ClipboardItem(C);navigator.clipboard.write([E]).then(u)["catch"](x);EditorUi.debug("EditorUi.writeImageToClipboard",[this],"dataUrl",
+[c],"w",g,"h",l,"type",n,"html",[B],"data",[C],"item",[E])};EditorUi.prototype.writeHtmlToClipboard=function(c,g){navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([Editor.convertHtmlToText(c)],{type:"text/plain"}),"text/html":new Blob([c],{type:"text/html"})})])["catch"](g)};EditorUi.prototype.writeTextToClipboard=function(c,g,l){navigator.clipboard.writeText(c)["catch"](g).then(function(){null!=l&&l()})};EditorUi.prototype.copySvg=function(c,g,l){try{if(null!=navigator.clipboard&&
"function"===typeof window.ClipboardItem){var n=this.editor.graph.getSvg(null,l,null,null,null,null,null,null,null,null,null,null,null,0<c.length?c:null);null!=g&&n.setAttribute("content",g);var u=Editor.createSvgDataUri(mxUtils.getXml(n)),x=parseInt(n.getAttribute("width")),B=parseInt(n.getAttribute("height"));this.writeImageToClipboard(u,x,B,"image/svg+xml",null,mxUtils.bind(this,function(C){this.handleError(C)}))}}catch(C){this.handleError(C)}};EditorUi.prototype.copyImage=function(c,g,l){try{l=
null!=l?l:4,null!=navigator.clipboard&&"function"===typeof window.ClipboardItem&&this.spinner.spin(document.body,mxResources.get("exporting"))&&this.editor.exportToCanvas(mxUtils.bind(this,function(n,u){try{this.spinner.stop();var x=this.createImageDataUri(n,g,"png"),B=Math.round(parseInt(u.getAttribute("width"))/l),C=Math.round(parseInt(u.getAttribute("height"))/l);EditorUi.debug("EditorUi.copyImage",[this],"cells",[c],"xml",[g],"scale",[l]);this.writeImageToClipboard(x,B,C,"image/png",null,mxUtils.bind(this,
-function(){if(this.isLocalFileSave()){var F=this.getBaseFilename(!1)+(null!=g?".drawio":"")+".png";this.saveLocalFile(x.substring(x.lastIndexOf(",")+1),F,"image/png",!0,"png",null,null,null,"copy")}else this.handleError(e)}))}catch(F){this.handleError(F)}}),null,null,null,mxUtils.bind(this,function(n){this.spinner.stop();this.handleError(n)}),null,null,l,null==this.editor.graph.background||this.editor.graph.background==mxConstants.NONE,null,null,null,10,null,null,!1,null,0<c.length?c:null)}catch(n){this.handleError(n)}};
+function(){if(this.isLocalFileSave()){var E=this.getBaseFilename(!1)+(null!=g?".drawio":"")+".png";this.saveLocalFile(x.substring(x.lastIndexOf(",")+1),E,"image/png",!0,"png",null,null,null,"copy")}else this.handleError(e)}))}catch(E){this.handleError(E)}}),null,null,null,mxUtils.bind(this,function(n){this.spinner.stop();this.handleError(n)}),null,null,l,null==this.editor.graph.background||this.editor.graph.background==mxConstants.NONE,null,null,null,10,null,null,!1,null,0<c.length?c:null)}catch(n){this.handleError(n)}};
EditorUi.prototype.copyCells=function(c,g){var l=this.editor.graph;if(l.isSelectionEmpty())c.innerText="";else{var n=mxUtils.sortCells(l.model.getTopmostCells(l.getSelectionCells())),u=mxUtils.getXml(l.encodeCells(n));mxUtils.setTextContent(c,encodeURIComponent(u));g?(l.removeCells(n,!1),l.lastPasteXml=null):(l.lastPasteXml=u,l.pasteCounter=0);c.focus();document.execCommand("selectAll",!1,null)}};EditorUi.prototype.copyXml=function(){var c=null;if(Editor.enableNativeClipboard){var g=this.editor.graph;
g.isSelectionEmpty()||(c=mxUtils.sortCells(g.getExportableCells(g.model.getTopmostCells(g.getSelectionCells()))),g=mxUtils.getXml(g.encodeCells(c)),navigator.clipboard.writeText(g))}return c};EditorUi.prototype.pasteXml=function(c,g,l,n,u,x){EditorUi.debug("EditorUi.pasteXml",[this],"xml",[c],"pasteAsLabel",[g],"compat",[l],"evt",[n],"html",[u],"pt",[x]);u=null!=u?u:!0;var B=this.editor.graph,C=null!=x?x:Editor.pasteAtMousePointer&&B.isMouseInsertPoint()?B.getInsertPoint():null;x=null;B.lastPasteXml==
-c?null==C&&B.pasteCounter++:(B.lastPasteXml=c,B.pasteCounter=0);var F=B.pasteCounter*B.gridSize;if(l||this.isCompatibleString(c)){B.model.beginUpdate();try{if(x=this.importXml(c,F,F),null!=C){var K=B.getBoundingBoxFromGeometry(x,!0);if(null!=K){var I=Math.round(B.snap(C.x)),R=Math.round(B.snap(C.y));B.cellsMoved(x,I-K.x,R-K.y)}}}finally{B.model.endUpdate()}B.setSelectionCells(x)}else if(g&&1==B.getSelectionCount()){g=B.getStartEditingCell(B.getSelectionCell(),n);if(/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c)&&
-"image"==B.getCurrentCellStyle(g)[mxConstants.STYLE_SHAPE])B.setCellStyles(mxConstants.STYLE_IMAGE,c,[g]);else{B.model.beginUpdate();try{B.labelChanged(g,c),Graph.isLink(c)&&B.setLinkForCell(g,c)}finally{B.model.endUpdate()}}B.setSelectionCell(g)}else C=null!=C?C:B.getInsertPoint(),B.isMouseInsertPoint()&&(F=0,B.lastPasteXml==c&&0<B.pasteCounter&&B.pasteCounter--),x=this.insertTextAt(c,C.x+F,C.y+F,u),B.setSelectionCells(x);B.isSelectionEmpty()||(B.scrollCellToVisible(B.getSelectionCell()),null!=this.hoverIcons&&
-this.hoverIcons.update(B.view.getState(B.getSelectionCell())));return x};EditorUi.prototype.pasteCells=function(c,g,l,n){if(!mxEvent.isConsumed(c)){var u=c.clipboardData,x=this.editor.graph,B=!1,C=g;if(l&&null!=u&&u.getData){var F=u.getData("text/plain"),K=!1;if(null!=F&&0<F.length&&"%3CmxGraphModel%3E"==F.substring(0,18))try{var I=decodeURIComponent(F);this.isCompatibleString(I)&&(K=!0,F=I)}catch(M){}K=K?null:u.getData("text/html");null!=K&&0<K.length?(C=this.parseHtmlData(K),B="text/plain"!=C.getAttribute("data-type")):
-null!=F&&0<F.length&&(C=document.createElement("div"),mxUtils.setTextContent(C,K))}F=C.getElementsByTagName("span");if(null!=F&&0<F.length&&"application/vnd.lucid.chart.objects"===F[0].getAttribute("data-lucid-type"))l=F[0].getAttribute("data-lucid-content"),null!=l&&0<l.length&&(this.convertLucidChart(l,mxUtils.bind(this,function(M){var m=this.editor.graph;m.lastPasteXml==M?m.pasteCounter++:(m.lastPasteXml=M,m.pasteCounter=0);var y=m.pasteCounter*m.gridSize;m.setSelectionCells(this.importXml(M,y,
-y));m.scrollCellToVisible(m.getSelectionCell())}),mxUtils.bind(this,function(M){this.handleError(M)})),mxEvent.consume(c));else{var R=!1,W="";W=B?null!=C.textContent&&"<mxfile"==C.textContent.substring(0,7)&&"</mxfile>"==C.textContent.substring(C.textContent.length-9)||"<mxGraphModel"==C.textContent.substring(0,13)&&"</mxGraphModel>"==C.textContent.substring(C.textContent.length-15)?C.textContent.replace(/\u00a0/g," "):C.innerHTML:mxUtils.trim(null==C.innerText?mxUtils.getTextContent(C):C.innerText);
-try{var q=W.lastIndexOf("%3E");0<=q&&q<W.length-3&&(W=W.substring(0,q+3))}catch(M){}try{F=C.getElementsByTagName("span"),(I=null!=F&&0<F.length?mxUtils.trim(decodeURIComponent(F[0].textContent)):decodeURIComponent(W))&&(this.isCompatibleString(I)||0==I.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":'))&&(R=!0,W=I)}catch(M){}I=null;try{if(!R&&""==C.textContent)for(q=0;q<u.items.length;q++){var z=u.items[q];if("file"===z.kind){I=z.getAsFile();break}}}catch(M){}EditorUi.debug("EditorUi.pasteCells",
-[this],"evt",[c],"realElt",[g.outerHTML],"elt",[C.outerHTML],"useEvent",l,"pasteAsLabel",n,"xml",[W],"compat",R,"asHtml",B,"data",u,"items",[u.items.length],"files",[u.files.length],"types",[JSON.stringify(u.types)],"blob",[I]);try{if(R||null==I)if(null!=W&&0<W.length){if(0==W.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":')){var N=mxUtils.bind(this,function(){try{W=(new MiroImporter).importMiroJson(JSON.parse(W)),this.pasteXml(W,n,R,c)}catch(M){console.log("Miro import error:",M)}});
-"undefined"===typeof MiroImporter?mxscript("js/diagramly/miro/MiroImporter.js",N):N()}else this.pasteXml(W,n,R,c,B);mxEvent.consume(c)}else l||(x.lastPasteXml=null,x.pasteCounter=0);else{var L=x.getInsertPoint();this.importFiles([I],L.x,L.y,this.maxImageSize);mxEvent.consume(c)}}catch(M){this.handleError(M)}}}g.innerHTML="&nbsp;"};EditorUi.prototype.pasteFromClipboard=function(c){var g=this.editor.graph;null==c&&Editor.pasteAtMousePointer&&g.isMouseInsertPoint()&&(c=g.getInsertPoint());if(g.isEnabled()&&
+c?null==C&&B.pasteCounter++:(B.lastPasteXml=c,B.pasteCounter=0);var E=B.pasteCounter*B.gridSize;if(l||this.isCompatibleString(c)){B.model.beginUpdate();try{if(x=this.importXml(c,E,E),null!=C){var K=B.getBoundingBoxFromGeometry(x,!0);if(null!=K){var I=Math.round(B.snap(C.x)),T=Math.round(B.snap(C.y));B.cellsMoved(x,I-K.x,T-K.y)}}}finally{B.model.endUpdate()}B.setSelectionCells(x)}else if(g&&1==B.getSelectionCount()){g=B.getStartEditingCell(B.getSelectionCell(),n);if(/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c)&&
+"image"==B.getCurrentCellStyle(g)[mxConstants.STYLE_SHAPE])B.setCellStyles(mxConstants.STYLE_IMAGE,c,[g]);else{B.model.beginUpdate();try{B.labelChanged(g,c),Graph.isLink(c)&&B.setLinkForCell(g,c)}finally{B.model.endUpdate()}}B.setSelectionCell(g)}else C=null!=C?C:B.getInsertPoint(),B.isMouseInsertPoint()&&(E=0,B.lastPasteXml==c&&0<B.pasteCounter&&B.pasteCounter--),x=this.insertTextAt(c,C.x+E,C.y+E,u),B.setSelectionCells(x);B.isSelectionEmpty()||(B.scrollCellToVisible(B.getSelectionCell()),null!=this.hoverIcons&&
+this.hoverIcons.update(B.view.getState(B.getSelectionCell())));return x};EditorUi.prototype.pasteCells=function(c,g,l,n){if(!mxEvent.isConsumed(c)){var u=c.clipboardData,x=this.editor.graph,B=!1,C=g;if(l&&null!=u&&u.getData){var E=u.getData("text/plain"),K=!1;if(null!=E&&0<E.length&&"%3CmxGraphModel%3E"==E.substring(0,18))try{var I=decodeURIComponent(E);this.isCompatibleString(I)&&(K=!0,E=I)}catch(M){}K=K?null:u.getData("text/html");null!=K&&0<K.length?(C=this.parseHtmlData(K),B="text/plain"!=C.getAttribute("data-type")):
+null!=E&&0<E.length&&(C=document.createElement("div"),mxUtils.setTextContent(C,K))}E=C.getElementsByTagName("span");if(null!=E&&0<E.length&&"application/vnd.lucid.chart.objects"===E[0].getAttribute("data-lucid-type"))l=E[0].getAttribute("data-lucid-content"),null!=l&&0<l.length&&(this.convertLucidChart(l,mxUtils.bind(this,function(M){var m=this.editor.graph;m.lastPasteXml==M?m.pasteCounter++:(m.lastPasteXml=M,m.pasteCounter=0);var y=m.pasteCounter*m.gridSize;m.setSelectionCells(this.importXml(M,y,
+y));m.scrollCellToVisible(m.getSelectionCell())}),mxUtils.bind(this,function(M){this.handleError(M)})),mxEvent.consume(c));else{var T=!1,W="";W=B?null!=C.textContent&&"<mxfile"==C.textContent.substring(0,7)&&"</mxfile>"==C.textContent.substring(C.textContent.length-9)||"<mxGraphModel"==C.textContent.substring(0,13)&&"</mxGraphModel>"==C.textContent.substring(C.textContent.length-15)?C.textContent.replace(/\u00a0/g," "):C.innerHTML:mxUtils.trim(null==C.innerText?mxUtils.getTextContent(C):C.innerText);
+try{var q=W.lastIndexOf("%3E");0<=q&&q<W.length-3&&(W=W.substring(0,q+3))}catch(M){}try{E=C.getElementsByTagName("span"),(I=null!=E&&0<E.length?mxUtils.trim(decodeURIComponent(E[0].textContent)):decodeURIComponent(W))&&(this.isCompatibleString(I)||0==I.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":'))&&(T=!0,W=I)}catch(M){}I=null;try{if(!T&&""==C.textContent)for(q=0;q<u.items.length;q++){var z=u.items[q];if("file"===z.kind){I=z.getAsFile();break}}}catch(M){}EditorUi.debug("EditorUi.pasteCells",
+[this],"evt",[c],"realElt",[g.outerHTML],"elt",[C.outerHTML],"useEvent",l,"pasteAsLabel",n,"xml",[W],"compat",T,"asHtml",B,"data",u,"items",[u.items.length],"files",[u.files.length],"types",[JSON.stringify(u.types)],"blob",[I]);try{if(T||null==I)if(null!=W&&0<W.length){if(0==W.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":')){var N=mxUtils.bind(this,function(){try{W=(new MiroImporter).importMiroJson(JSON.parse(W)),this.pasteXml(W,n,T,c)}catch(M){console.log("Miro import error:",M)}});
+"undefined"===typeof MiroImporter?mxscript("js/diagramly/miro/MiroImporter.js",N):N()}else this.pasteXml(W,n,T,c,B);mxEvent.consume(c)}else l||(x.lastPasteXml=null,x.pasteCounter=0);else{var L=x.getInsertPoint();this.importFiles([I],L.x,L.y,this.maxImageSize);mxEvent.consume(c)}}catch(M){this.handleError(M)}}}g.innerHTML="&nbsp;"};EditorUi.prototype.pasteFromClipboard=function(c){var g=this.editor.graph;null==c&&Editor.pasteAtMousePointer&&g.isMouseInsertPoint()&&(c=g.getInsertPoint());if(g.isEnabled()&&
!g.isCellLocked(g.getDefaultParent()))try{Editor.enableNativeClipboard?this.readGraphModelFromClipboard(mxUtils.bind(this,function(l,n,u,x,B){if(null!=l){g.getModel().beginUpdate();try{this.pasteXml(l,!0,null,null,null,c)}finally{g.getModel().endUpdate()}}else l=null!=n?n:null!=u?u:x,null!=l?(c=null!=c?c:g.getInsertPoint(),this.importFiles([l],c.x,c.y,this.maxImageSize)):this.pasteFromLocalClipboard(c)})):this.pasteFromLocalClipboard(c)}catch(l){}};EditorUi.prototype.pasteFromLocalClipboard=function(c){var g=
this.editor.graph;g.getModel().beginUpdate();try{g.moveCellsTo(mxClipboard.paste(g),c)}finally{g.getModel().endUpdate()}};EditorUi.prototype.installImagePasteHandler=function(){var c=this.editor.graph;c.container.addEventListener("paste",mxUtils.bind(this,function(g){for(var l=null!=g.clipboardData?g.clipboardData:g.originalEvent.clipboardData,n=!1,u=null,x=0;x<l.types.length;x++)if("text/"===l.types[x].substring(0,5)){n=!0;break}for(x=0;x<l.items.length;x++){var B=l.items[x];if("file"===B.kind){u=
-B.getAsFile();break}}EditorUi.debug("EditorUi.imagePasteHandler",[this],"evt",[g],"data",[l],"items",[l.items.length],"files",[l.files.length],"types",[JSON.stringify(l.types)],"containsText",n,"file",[u],"editing",c.isEditing());var C=mxUtils.bind(this,function(){try{if(!n&&null!=u){if(c.isEditing())this.importFiles([u],0,0,this.maxImageSize,function(K,I,R,W,q,z){c.insertImage(K,q,z)},function(){},function(K){return"image/"==K.type.substring(0,6)},function(K){for(var I=0;I<K.length;I++)K[I]()});
-else{var F=this.editor.graph.getInsertPoint();this.importFiles([u],F.x,F.y,this.maxImageSize)}mxEvent.consume(g)}}catch(K){}});if(!mxEvent.isConsumed(g)&&!n)if(Editor.enableNativeClipboard)navigator.clipboard.read().then(mxUtils.bind(this,function(F){this.readTypeFromClipboardData(F,"image/svg+xml",mxUtils.bind(this,function(K){if(null!=K){K=new Blob([K],{type:"image/svg+xml"});var I=this.editor.graph.getInsertPoint();this.importFiles([K],I.x,I.y,this.maxImageSize)}else C()}),"image")}))["catch"](C);
+B.getAsFile();break}}EditorUi.debug("EditorUi.imagePasteHandler",[this],"evt",[g],"data",[l],"items",[l.items.length],"files",[l.files.length],"types",[JSON.stringify(l.types)],"containsText",n,"file",[u],"editing",c.isEditing());var C=mxUtils.bind(this,function(){try{if(!n&&null!=u){if(c.isEditing())this.importFiles([u],0,0,this.maxImageSize,function(K,I,T,W,q,z){c.insertImage(K,q,z)},function(){},function(K){return"image/"==K.type.substring(0,6)},function(K){for(var I=0;I<K.length;I++)K[I]()});
+else{var E=this.editor.graph.getInsertPoint();this.importFiles([u],E.x,E.y,this.maxImageSize)}mxEvent.consume(g)}}catch(K){}});if(!mxEvent.isConsumed(g)&&!n)if(Editor.enableNativeClipboard)navigator.clipboard.read().then(mxUtils.bind(this,function(E){this.readTypeFromClipboardData(E,"image/svg+xml",mxUtils.bind(this,function(K){if(null!=K){K=new Blob([K],{type:"image/svg+xml"});var I=this.editor.graph.getInsertPoint();this.importFiles([K],I.x,I.y,this.maxImageSize)}else C()}),"image")}))["catch"](C);
else C()}),!1)};EditorUi.prototype.readGraphModelFromClipboard=function(c){navigator.clipboard.read().then(mxUtils.bind(this,function(g){try{EditorUi.debug("EditorUi.readGraphModelFromClipboard",[this],"data",g,"types",null!=g&&0<g.length?[JSON.stringify(g[0].types)]:[]),this.readGraphModelFromHtmlClipboardData(g,mxUtils.bind(this,function(l,n){null!=l?c(l):this.readGraphModelFromImageClipboardData(g,mxUtils.bind(this,function(u,x,B){null!=u?c(u):this.readTypeFromClipboardData(g,"text/plain",mxUtils.bind(this,
function(C){c(C,x,B,n,g)}))}))}))}catch(l){c(null)}}))["catch"](function(){c(null)})};EditorUi.prototype.readGraphModelFromHtmlClipboardData=function(c,g){this.readTypeFromClipboardData(c,"text/html",mxUtils.bind(this,function(l){var n=null,u=null;try{var x=this.parseHtmlData(l);if(null!=x){n="text/plain"!=x.getAttribute("data-type")?x.innerHTML:mxUtils.trim(null==x.innerText?mxUtils.getTextContent(x):x.innerText);try{var B=n.lastIndexOf("%3E");0<=B&&B<n.length-3&&(n=n.substring(0,B+3))}catch(K){}try{null==
-n&&(l=null,""==x.textContent&&1==x.children.length&&"IMG"==x.firstChild.nodeName&&(l=x.firstChild.getAttribute("src")),null!=l&&0<l.length&&("data:image/png;base64,"==l.substring(0,22)?u=this.base64ToBlob(l.substring(l.indexOf(",")+1),"image/png"):"data:image/svg+xml;base64,"==l.substring(0,26)&&(u=this.base64ToBlob(l.substring(l.indexOf(",")+1),"image/svg+xml"))))}catch(K){}try{var C=x.getElementsByTagName("span"),F=null!=C&&0<C.length?mxUtils.trim(decodeURIComponent(C[0].textContent)):decodeURIComponent(n);
-this.isCompatibleString(F)&&(n=F)}catch(K){}}}catch(K){}g(this.isCompatibleString(n)?n:null,u)}))};EditorUi.prototype.readGraphModelFromImageClipboardData=function(c,g){this.readTypeFromClipboardData(c,"image/svg+xml",mxUtils.bind(this,function(l,n){var u=null;try{null!=l&&(u=mxUtils.parseXml(l).documentElement.getAttribute("content"))}catch(x){}this.isCompatibleString(u)?g(u):this.readTypeFromClipboardData(c,"image/png",mxUtils.bind(this,function(x,B){u=Editor.extractGraphModelFromPng("data:image/png;base64,"+
+n&&(l=null,""==x.textContent&&1==x.children.length&&"IMG"==x.firstChild.nodeName&&(l=x.firstChild.getAttribute("src")),null!=l&&0<l.length&&("data:image/png;base64,"==l.substring(0,22)?u=this.base64ToBlob(l.substring(l.indexOf(",")+1),"image/png"):"data:image/svg+xml;base64,"==l.substring(0,26)&&(u=this.base64ToBlob(l.substring(l.indexOf(",")+1),"image/svg+xml"))))}catch(K){}try{var C=x.getElementsByTagName("span"),E=null!=C&&0<C.length?mxUtils.trim(decodeURIComponent(C[0].textContent)):decodeURIComponent(n);
+this.isCompatibleString(E)&&(n=E)}catch(K){}}}catch(K){}g(this.isCompatibleString(n)?n:null,u)}))};EditorUi.prototype.readGraphModelFromImageClipboardData=function(c,g){this.readTypeFromClipboardData(c,"image/svg+xml",mxUtils.bind(this,function(l,n){var u=null;try{null!=l&&(u=mxUtils.parseXml(l).documentElement.getAttribute("content"))}catch(x){}this.isCompatibleString(u)?g(u):this.readTypeFromClipboardData(c,"image/png",mxUtils.bind(this,function(x,B){u=Editor.extractGraphModelFromPng("data:image/png;base64,"+
x);this.isCompatibleString(u)?g(u):g(null,n,B)}))}))};EditorUi.prototype.readTypeFromClipboardData=function(c,g,l){var n=!1;if(null!=c&&0<c.length)for(var u=0;u<c.length&&!n;u++)(function(x){0<=mxUtils.indexOf(x.types,g)&&(n=!0,x.getType(g).then(mxUtils.bind(this,function(B){if("image/png"==g)B.arrayBuffer().then(function(C){l(btoa(Graph.arrayBufferToString(C)),B)})["catch"](function(){l(null)});else B.text().then(mxUtils.bind(this,function(C){EditorUi.debug("EditorUi.readTypeFromClipboardData",[this],
"data",[c],"type",[g],"result",[C]);l(C,B)}))["catch"](function(){l(null)})}))["catch"](function(){l(null)}))})(c[u]);n||l()};EditorUi.prototype.parseHtmlData=function(c){var g=null;if(null!=c&&0<c.length){var l="<meta "==c.substring(0,6);g=document.createElement("div");g.innerHTML=(l?'<meta charset="utf-8">':"")+Graph.sanitizeHtml(c);asHtml=!0;l=g.getElementsByTagName("style");if(null!=l)for(;0<l.length;)l[0].parentNode.removeChild(l[0]);if(null!=g.firstChild&&g.firstChild.nodeType==mxConstants.NODETYPE_ELEMENT&&
null!=g.firstChild.nextSibling&&g.firstChild.nextSibling.nodeType==mxConstants.NODETYPE_ELEMENT&&"META"==g.firstChild.nodeName&&"A"==g.firstChild.nextSibling.nodeName&&null==g.firstChild.nextSibling.nextSibling){var n=null==g.firstChild.nextSibling.innerText?mxUtils.getTextContent(g.firstChild.nextSibling):g.firstChild.nextSibling.innerText;n==g.firstChild.nextSibling.getAttribute("href")&&(mxUtils.setTextContent(g,n),asHtml=!1)}if(""==g.textContent&&(l=g.getElementsByTagName("img"),1==l.length&&
(n=l[0].getAttribute("src"),l=null,null!=n))){if(Editor.isPngDataUrl(n)){var u=Editor.extractGraphModelFromPng(n);null!=u&&0<u.length&&(l=u)}else if("data:image/svg+xml;base64,"==n.substring(0,26)){img=this.base64ToBlob(n.substring(n.indexOf(",")+1),"image/svg+xml");n=Graph.getSvgFromDataUri(n);try{u=mxUtils.parseXml(n).documentElement.getAttribute("content"),this.isCompatibleString(u)&&(l=u)}catch(x){}}null!=l&&(mxUtils.setTextContent(g,l),asHtml=!1)}asHtml?Graph.removePasteFormatting(g):g.setAttribute("data-type",
-"text/plain")}EditorUi.debug("EditorUi.parseHtmlData",[this],"data",[c],"elt",[g],"asHtml",asHtml);return g};EditorUi.prototype.showPrintDialog=function(c,g,l){this.showDialog((new PrintDialog(this,c,g,l)).container,360,null,!0,!0)};EditorUi.prototype.print=function(c,g){var l=this.editor,n=l.graph,u=this.getPageIndex(this.currentPage),x=null!=u?u+1:1,B=mxUtils.bind(this,function(M,m,y,E){var P=M.useCssTransforms,O=M.currentTranslate,T=M.currentScale,V=M.view.translate,Q=M.view.scale;M.useCssTransforms&&
-(M.useCssTransforms=!1,M.currentTranslate=new mxPoint(0,0),M.currentScale=1,M.view.translate=new mxPoint(0,0),M.view.scale=1);var S=M.getGraphBounds(),U=0,Y=0,X=mxRectangle.fromRectangle(M.pageFormat),Z=g.fit||g.crop||!M.pageVisible,aa=g.scale;X.width=Math.ceil(X.width*M.pageScale);X.height=Math.ceil(X.height*M.pageScale);var da=1;if(g.fit){da=g.sheetsAcross;var fa=g.sheetsDown;isNaN(aa)||(X.width=Math.ceil(X.width*aa),X.height=Math.ceil(X.height*aa));da=Math.min(X.height*fa/(S.height/M.view.scale),
-X.width*da/(S.width/M.view.scale))}else da=isNaN(aa)?1:aa;da*=1;!Z&&M.pageVisible?(aa=M.getPageLayout(),U-=aa.x*X.width,Y-=aa.y*X.height):Z=!0;g.crop&&(g.selection&&(S=n.getBoundingBox(n.getSelectionCells())),X.width=(S.width+1)*da/M.view.scale,X.height=(S.height+1)*da/M.view.scale);X.width=Math.ceil(1*X.width);X.height=Math.ceil(1*X.height);E=null!=E?"page/id,"+E:null;if(null==m){m=PrintDialog.createPrintPreview(M,da,null,0,U,Y,Z);m.title=this.getBaseFilename(!0);m.pageSelector=!1;m.mathEnabled=
+"text/plain")}EditorUi.debug("EditorUi.parseHtmlData",[this],"data",[c],"elt",[g],"asHtml",asHtml);return g};EditorUi.prototype.showPrintDialog=function(c,g,l){this.showDialog((new PrintDialog(this,c,g,l)).container,360,null,!0,!0)};EditorUi.prototype.print=function(c,g){var l=this.editor,n=l.graph,u=this.getPageIndex(this.currentPage),x=null!=u?u+1:1,B=mxUtils.bind(this,function(M,m,y,F){var P=M.useCssTransforms,O=M.currentTranslate,S=M.currentScale,V=M.view.translate,Q=M.view.scale;M.useCssTransforms&&
+(M.useCssTransforms=!1,M.currentTranslate=new mxPoint(0,0),M.currentScale=1,M.view.translate=new mxPoint(0,0),M.view.scale=1);var R=M.getGraphBounds(),U=0,Y=0,X=mxRectangle.fromRectangle(M.pageFormat),Z=g.fit||g.crop||!M.pageVisible,aa=g.scale;X.width=Math.ceil(X.width*M.pageScale);X.height=Math.ceil(X.height*M.pageScale);var da=1;if(g.fit){da=g.sheetsAcross;var fa=g.sheetsDown;isNaN(aa)||(X.width=Math.ceil(X.width*aa),X.height=Math.ceil(X.height*aa));da=Math.min(X.height*fa/(R.height/M.view.scale),
+X.width*da/(R.width/M.view.scale))}else da=isNaN(aa)?1:aa;da*=1;!Z&&M.pageVisible?(aa=M.getPageLayout(),U-=aa.x*X.width,Y-=aa.y*X.height):Z=!0;g.crop&&(g.selection&&(R=n.getBoundingBox(n.getSelectionCells())),X.width=(R.width+1)*da/M.view.scale,X.height=(R.height+1)*da/M.view.scale);X.width=Math.ceil(1*X.width);X.height=Math.ceil(1*X.height);F=null!=F?"page/id,"+F:null;if(null==m){m=PrintDialog.createPrintPreview(M,da,null,0,U,Y,Z);m.title=this.getBaseFilename(!0);m.pageSelector=!1;m.mathEnabled=
!1;U=g.border;isNaN(U)||(m.pageMargin=U);var ba=m.writeHead;m.writeHead=function(ka,pa){pa=null!=pa?pa:"";g.shadows||(pa+='g[style*="filter: drop-shadow("] {\n filter: none !important;{\n}\n');mxClient.IS_GC&&(pa+="@media print {\n .MathJax svg { shape-rendering: crispEdges; }\n}\n");null!=l.fontCss&&(pa+=l.fontCss);ba.apply(this,arguments);for(var Ba=M.getCustomFonts(),sa=0;sa<Ba.length;sa++){var ja=Ba[sa].name,ya=Ba[sa].url;Graph.isCssFontUrl(ya)?ka.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Graph.rewriteGoogleFontUrl(ya))+
'" charset="UTF-8" type="text/css">'):(ka.writeln('<style type="text/css">'),ka.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(ja)+'";\nsrc: url("'+mxUtils.htmlEntities(ya)+'");\n}'),ka.writeln("</style>"))}};if(Editor.replaceSvgDataUris){var ia=m.drawBackgroundImage;m.drawBackgroundImage=function(ka){ia.apply(this,arguments);null!=ka.node&&(EditorUi.embedSvgImages(ka.node),n.disableSvgLinks(ka.node,function(pa){pa.setAttribute("href","javascript:void(0)")}))}}var la=m.addGraphFragment;
m.addGraphFragment=function(ka,pa,Ba,sa,ja,ya){la.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:ja.classList.add("geDisableMathJax");if(this.graph.shadowVisible)for(var ua=ja.getElementsByTagName("svg"),za=0;za<ua.length;za++)M.addSvgShadow(ua[za])};g.grid&&(m.gridSize=M.gridSize,m.gridSteps=M.view.gridSteps,m.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:M.view.gridColor);m.isCellVisible=g.selection?function(ka){return M.isCellSelected(ka)&&
-M.isCellVisible(ka)}:function(ka){return M.isCellVisible(ka)};m.open(null,null,y,!0,E,X,g.selection?M.getSelectionCells():null)}else{S=M.background;if(null==S||""==S||S==mxConstants.NONE)S="#ffffff";m.backgroundColor=S;m.autoOrigin=Z;g.grid&&(m.gridSize=M.gridSize,m.gridSteps=M.view.gridSteps,m.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:M.view.gridColor);m.isCellVisible=g.selection?function(ka){return M.isCellSelected(ka)&&M.isCellVisible(ka)}:function(ka){return M.isCellVisible(ka)};
-m.appendGraph(M,da,U,Y,y,!0,E,X,g.selection?M.getSelectionCells():null);y=M.getCustomFonts();if(null!=m.wnd)for(X=0;X<y.length;X++)U=y[X].name,Y=y[X].url,Graph.isCssFontUrl(Y)?m.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Y)+'" charset="UTF-8" type="text/css">'):(m.wnd.document.writeln('<style type="text/css">'),m.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(U)+'";\nsrc: url("'+mxUtils.htmlEntities(Y)+'");\n}'),m.wnd.document.writeln("</style>"))}P&&
-(M.useCssTransforms=P,M.currentTranslate=O,M.currentScale=T,M.view.translate=V,M.view.scale=Q);return m}),C=g.pagesFrom,F=g.pagesTo,K=!g.allPages;u=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(this,g);else{K&&(K=g.selection||C==x&&F==x);if(!K&&null!=this.pages&&this.pages.length){K=0;x=this.pages.length-1;g.allPages||(K=parseInt(C)-1,x=parseInt(F)-1);for(var I=K;I<=x;I++){var R=this.pages[I];C=R==this.currentPage?n:null;if(null==C){C=this.createTemporaryGraph(n.stylesheet);C.shapeForegroundColor=
-n.shapeForegroundColor;C.shapeBackgroundColor=n.shapeBackgroundColor;F=!0;var W=K=!1,q=null,z=null;null==R.viewState&&null==R.root&&this.updatePageRoot(R);null!=R.viewState&&(F=R.viewState.pageVisible,K=R.viewState.mathEnabled,W=R.viewState.shadowVisible,q=R.viewState.background,z=R.viewState.backgroundImage,C.pageFormat=R.viewState.pageFormat,C.gridSize=R.viewState.gridSize,C.hiddenTags=R.viewState.hiddenTags||[]);null!=z&&null!=z.originalSrc&&(z=this.createImageForPageLink(z.originalSrc,R));C.background=
-q;C.backgroundImage=null!=z?new mxImage(z.src,z.width,z.height,z.x,z.y):null;C.pageVisible=F;C.mathEnabled=K;C.shadowVisible=W;var L=C.getGraphBounds;C.getGraphBounds=function(){var M=L.apply(this,arguments),m=this.backgroundImage;if(null!=m&&null!=m.width&&null!=m.height){var y=this.view.translate,E=this.view.scale;M=mxRectangle.fromRectangle(M);M.add(new mxRectangle((y.x+m.x)*E,(y.y+m.y)*E,m.width*E,m.height*E))}return M};var N=C.getGlobalVariable;C.getGlobalVariable=function(M){return"page"==M?
-R.getName():"pagenumber"==M?I+1:"pagecount"==M?null!=this.pages?this.pages.length:1:N.apply(this,arguments)};document.body.appendChild(C.container);this.updatePageRoot(R);C.model.setRoot(R.root)}u=B(C,u,I!=x,R.getId());C!=n&&C.container.parentNode.removeChild(C.container)}}else u=B(n);if(null==u||null==u.wnd)this.handleError({message:mxResources.get("errorUpdatingPreview")});else{u.mathEnabled&&(B=u.wnd.document,c||(u.wnd.IMMEDIATE_PRINT=!0),B.writeln('<script type="text/javascript" src="js/math-print.js">\x3c/script>'));
+M.isCellVisible(ka)}:function(ka){return M.isCellVisible(ka)};m.open(null,null,y,!0,F,X,g.selection?M.getSelectionCells():null)}else{R=M.background;if(null==R||""==R||R==mxConstants.NONE)R="#ffffff";m.backgroundColor=R;m.autoOrigin=Z;g.grid&&(m.gridSize=M.gridSize,m.gridSteps=M.view.gridSteps,m.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:M.view.gridColor);m.isCellVisible=g.selection?function(ka){return M.isCellSelected(ka)&&M.isCellVisible(ka)}:function(ka){return M.isCellVisible(ka)};
+m.appendGraph(M,da,U,Y,y,!0,F,X,g.selection?M.getSelectionCells():null);y=M.getCustomFonts();if(null!=m.wnd)for(X=0;X<y.length;X++)U=y[X].name,Y=y[X].url,Graph.isCssFontUrl(Y)?m.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Y)+'" charset="UTF-8" type="text/css">'):(m.wnd.document.writeln('<style type="text/css">'),m.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(U)+'";\nsrc: url("'+mxUtils.htmlEntities(Y)+'");\n}'),m.wnd.document.writeln("</style>"))}P&&
+(M.useCssTransforms=P,M.currentTranslate=O,M.currentScale=S,M.view.translate=V,M.view.scale=Q);return m}),C=g.pagesFrom,E=g.pagesTo,K=!g.allPages;u=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(this,g);else{K&&(K=g.selection||C==x&&E==x);if(!K&&null!=this.pages&&this.pages.length){K=0;x=this.pages.length-1;g.allPages||(K=parseInt(C)-1,x=parseInt(E)-1);for(var I=K;I<=x;I++){var T=this.pages[I];C=T==this.currentPage?n:null;if(null==C){C=this.createTemporaryGraph(n.stylesheet);C.shapeForegroundColor=
+n.shapeForegroundColor;C.shapeBackgroundColor=n.shapeBackgroundColor;E=!0;var W=K=!1,q=null,z=null;null==T.viewState&&null==T.root&&this.updatePageRoot(T);null!=T.viewState&&(E=T.viewState.pageVisible,K=T.viewState.mathEnabled,W=T.viewState.shadowVisible,q=T.viewState.background,z=T.viewState.backgroundImage,C.pageFormat=T.viewState.pageFormat,C.gridSize=T.viewState.gridSize,C.hiddenTags=T.viewState.hiddenTags||[]);null!=z&&null!=z.originalSrc&&(z=this.createImageForPageLink(z.originalSrc,T));C.background=
+q;C.backgroundImage=null!=z?new mxImage(z.src,z.width,z.height,z.x,z.y):null;C.pageVisible=E;C.mathEnabled=K;C.shadowVisible=W;var L=C.getGraphBounds;C.getGraphBounds=function(){var M=L.apply(this,arguments),m=this.backgroundImage;if(null!=m&&null!=m.width&&null!=m.height){var y=this.view.translate,F=this.view.scale;M=mxRectangle.fromRectangle(M);M.add(new mxRectangle((y.x+m.x)*F,(y.y+m.y)*F,m.width*F,m.height*F))}return M};var N=C.getGlobalVariable;C.getGlobalVariable=function(M){return"page"==M?
+T.getName():"pagenumber"==M?I+1:"pagecount"==M?null!=this.pages?this.pages.length:1:N.apply(this,arguments)};document.body.appendChild(C.container);this.updatePageRoot(T);C.model.setRoot(T.root)}u=B(C,u,I!=x,T.getId());C!=n&&C.container.parentNode.removeChild(C.container)}}else u=B(n);if(null==u||null==u.wnd)this.handleError({message:mxResources.get("errorUpdatingPreview")});else{u.mathEnabled&&(B=u.wnd.document,c||(u.wnd.IMMEDIATE_PRINT=!0),B.writeln('<script type="text/javascript" src="js/math-print.js">\x3c/script>'));
u.closeDocument();if(Editor.expandPatternsForPrint&&null!=u.wnd)for(B=u.wnd.document.getElementsByTagName("svg"),I=0;I<B.length;I++)Editor.expandSvgPatterns(B[I]);Graph.rewritePageLinks(u.wnd.document,!0);u.mathEnabled||c||PrintDialog.printPreview(u)}return u}};EditorUi.prototype.addFileDropHandler=function(c){if(Graph.fileSupport)for(var g=null,l=0;l<c.length;l++)mxEvent.addListener(c[l],"dragleave",function(n){null!=g&&(g.parentNode.removeChild(g),g=null);n.stopPropagation();n.preventDefault()}),
mxEvent.addListener(c[l],"dragover",mxUtils.bind(this,function(n){(this.editor.graph.isEnabled()||"1"!=urlParams.embed)&&null==g&&(g=this.highlightElement());n.stopPropagation();n.preventDefault()})),mxEvent.addListener(c[l],"drop",mxUtils.bind(this,function(n){null!=g&&(g.parentNode.removeChild(g),g=null);if(this.editor.graph.isEnabled()||"1"!=urlParams.embed)if(0<n.dataTransfer.files.length)this.hideDialog(),"1"==urlParams.embed?this.importFiles(n.dataTransfer.files,0,0,this.maxImageSize,null,null,
null,null,!mxEvent.isControlDown(n)&&!mxEvent.isShiftDown(n)):this.openFiles(n.dataTransfer.files,!0);else{var u=this.extractGraphModelFromEvent(n);if(null==u){var x=null!=n.dataTransfer?n.dataTransfer:n.clipboardData;null!=x&&(10==document.documentMode||11==document.documentMode?u=x.getData("Text"):(u=null,u=0<=mxUtils.indexOf(x.types,"text/uri-list")?n.dataTransfer.getData("text/uri-list"):0<=mxUtils.indexOf(x.types,"text/html")?x.getData("text/html"):null,null!=u&&0<u.length?(x=document.createElement("div"),
@@ -13704,31 +13710,31 @@ l))}return c};EditorUi.prototype.openFileHandle=function(c,g,l,n,u,x,B){if(null!
try{this.loadLibrary(new LocalLibrary(this,K,g)),this.showSidebar()}catch(I){this.handleError(I,mxResources.get("errorLoadingFile"))}}else this.openLocalFile(K,g,n,null,null,null,B)});if(EditorUi.isVisioFilename(g))this.importVisio(l,mxUtils.bind(this,function(K){this.spinner.stop();C(K)}));else if(/(\.*<graphml )/.test(c))this.importGraphML(c,mxUtils.bind(this,function(K){this.spinner.stop();C(K)}));else if(Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,g))this.isOffline()?
(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):this.parseFile(l,mxUtils.bind(this,function(K){4==K.readyState&&(this.spinner.stop(),200<=K.status&&299>=K.status?C(K.responseText):this.handleError({message:mxResources.get(413==K.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))}));else if(this.isLucidChartData(c))/(\.json)$/i.test(g)&&(g=g.substring(0,g.length-5)+".drawio"),this.convertLucidChart(c,mxUtils.bind(this,
function(K){this.spinner.stop();this.openLocalFile(K,g,n,null,null,null,B)}),mxUtils.bind(this,function(K){this.spinner.stop();this.handleError(K)}));else if("<mxlibrary"==c.substring(0,10)){this.spinner.stop();null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,n);try{this.loadLibrary(new LocalLibrary(this,c,l.name)),this.showSidebar()}catch(K){this.handleError(K,mxResources.get("errorLoadingFile"))}}else if(0==c.indexOf("PK"))this.importZipFile(l,
-mxUtils.bind(this,function(K){this.spinner.stop();C(K)}),mxUtils.bind(this,function(){this.spinner.stop();this.openLocalFile(c,g,n,null,null,null,B)}));else{if("image/png"==l.type.substring(0,9))c=this.extractGraphModelFromPng(c);else if("application/pdf"==l.type){var F=Editor.extractGraphModelFromPdf(c);null!=F&&(u=null,n=!0,c=F)}this.spinner.stop();this.openLocalFile(c,g,n,u,null!=u?l:null,x,B)}}};EditorUi.prototype.openFiles=function(c,g,l){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var n=
+mxUtils.bind(this,function(K){this.spinner.stop();C(K)}),mxUtils.bind(this,function(){this.spinner.stop();this.openLocalFile(c,g,n,null,null,null,B)}));else{if("image/png"==l.type.substring(0,9))c=this.extractGraphModelFromPng(c);else if("application/pdf"==l.type){var E=Editor.extractGraphModelFromPdf(c);null!=E&&(u=null,n=!0,c=E)}this.spinner.stop();this.openLocalFile(c,g,n,u,null!=u?l:null,x,B)}}};EditorUi.prototype.openFiles=function(c,g,l){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var n=
0;n<c.length;n++)mxUtils.bind(this,function(u){var x=new FileReader;x.onload=mxUtils.bind(this,function(B){try{this.openFileHandle(B.target.result,u.name,u,g,null,null,l)}catch(C){this.handleError(C)}});x.onerror=mxUtils.bind(this,function(B){this.spinner.stop();this.handleError(B);window.openFile=null});"image"!==u.type.substring(0,5)&&"application/pdf"!==u.type||"image/svg"===u.type.substring(0,9)?x.readAsText(u):x.readAsDataURL(u)})(c[n])};EditorUi.prototype.openLocalFile=function(c,g,l,n,u,x,
-B){var C=this.getCurrentFile(),F=mxUtils.bind(this,function(){window.openFile=null;if(null==g&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var I=mxUtils.parseXml(c);null!=I&&(this.editor.setGraphXml(I.documentElement),this.editor.graph.selectAll())}else this.fileLoaded(new LocalFile(this,c,g||this.defaultFilename,l,n,u,x));null!=B&&B()});if(null!=c&&0<c.length)if(null==C||!C.isModified()&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=n||this.isDiagramEmpty()))F();else if((mxClient.IS_CHROMEAPP||
-EditorUi.isElectronApp)&&null!=C&&C.isModified())this.confirm(mxResources.get("allChangesLost"),null,F,mxResources.get("cancel"),mxResources.get("discardChanges"));else{window.openFile=new OpenFile(function(){window.openFile=null});window.openFile.setData(c,g,l);var K=mxUtils.bind(this,function(){null!=C&&C.isModified()?this.confirm(mxResources.get("allChangesLost"),null,F,mxResources.get("cancel"),mxResources.get("discardChanges")):F()});"1"==urlParams.openInSameWin||navigator.standalone?K():this.showDialog((new PopupDialog(this,
+B){var C=this.getCurrentFile(),E=mxUtils.bind(this,function(){window.openFile=null;if(null==g&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var I=mxUtils.parseXml(c);null!=I&&(this.editor.setGraphXml(I.documentElement),this.editor.graph.selectAll())}else this.fileLoaded(new LocalFile(this,c,g||this.defaultFilename,l,n,u,x));null!=B&&B()});if(null!=c&&0<c.length)if(null==C||!C.isModified()&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=n||this.isDiagramEmpty()))E();else if((mxClient.IS_CHROMEAPP||
+EditorUi.isElectronApp)&&null!=C&&C.isModified())this.confirm(mxResources.get("allChangesLost"),null,E,mxResources.get("cancel"),mxResources.get("discardChanges"));else{window.openFile=new OpenFile(function(){window.openFile=null});window.openFile.setData(c,g,l);var K=mxUtils.bind(this,function(){null!=C&&C.isModified()?this.confirm(mxResources.get("allChangesLost"),null,E,mxResources.get("cancel"),mxResources.get("discardChanges")):E()});"1"==urlParams.openInSameWin||navigator.standalone?K():this.showDialog((new PopupDialog(this,
this.getUrl(),null,K)).container,340,140,!0,!0)}else throw Error(mxResources.get("notADiagramFile"));};EditorUi.prototype.getBasenames=function(){var c={};if(null!=this.pages)for(var g=0;g<this.pages.length;g++)this.updatePageRoot(this.pages[g]),this.addBasenamesForCell(this.pages[g].root,c);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),c);g=[];for(var l in c)g.push(l);return g};EditorUi.prototype.addBasenamesForCell=function(c,g){function l(B){if(null!=B){var C=B.lastIndexOf(".");
0<C&&(B=B.substring(C+1,B.length));null==g[B]&&(g[B]=!0)}}var n=this.editor.graph,u=n.getCellStyle(c);l(mxStencilRegistry.getBasenameForStencil(u[mxConstants.STYLE_SHAPE]));n.model.isEdge(c)&&(l(mxMarker.getPackageForType(u[mxConstants.STYLE_STARTARROW])),l(mxMarker.getPackageForType(u[mxConstants.STYLE_ENDARROW])));u=n.model.getChildCount(c);for(var x=0;x<u;x++)this.addBasenamesForCell(n.model.getChildAt(c,x),g)};EditorUi.prototype.setGraphEnabled=function(c){this.diagramContainer.style.visibility=
c?"":"hidden";this.formatContainer.style.visibility=this.diagramContainer.style.visibility;this.sidebarContainer.style.display=c?"":"none";this.hsplit.style.display=this.sidebarContainer.style.display;this.editor.graph.setEnabled(c);null!=this.tabContainer&&(this.tabContainer.style.visibility=this.diagramContainer.style.visibility);c||this.hideWindows();this.editor.graph.sizeDidChange();this.resetScrollbars()};EditorUi.prototype.initializeEmbedMode=function(){this.setGraphEnabled(!1);if((this.embedMessageSource||
window.opener||window.parent)!=window&&("1"!=urlParams.spin||this.spinner.spin(document.body,mxResources.get("loading")))){var c=!1;this.installMessageHandler(mxUtils.bind(this,function(g,l,n,u){c||(c=!0,this.spinner.stop(),this.addEmbedButtons(),this.setGraphEnabled(!0));if(null==g||0==g.length)g=this.emptyDiagramXml;this.setCurrentFile(new EmbedFile(this,g,{}));this.mode=App.MODE_EMBED;this.setFileData(g);Editor.fitDiagramOnLoad&&this.initialFitDiagram();if(u)try{var x=this.editor.graph;x.setGridEnabled(!1);
-x.pageVisible=!1;var B=x.model.cells,C;for(C in B){var F=B[C];null!=F&&null!=F.style&&(F.style+=";sketch=1;"+(-1==F.style.indexOf("fontFamily=")||-1<F.style.indexOf("fontFamily=Helvetica;")?"fontFamily=Architects Daughter;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter;":""))}}catch(K){console.log(K)}this.editor.isChromelessView()?this.editor.graph.isLightboxView()&&this.lightboxFit():this.showLayersDialog();this.chromelessResize&&this.chromelessResize();this.editor.undoManager.clear();
+x.pageVisible=!1;var B=x.model.cells,C;for(C in B){var E=B[C];null!=E&&null!=E.style&&(E.style+=";sketch=1;"+(-1==E.style.indexOf("fontFamily=")||-1<E.style.indexOf("fontFamily=Helvetica;")?"fontFamily=Architects Daughter;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter;":""))}}catch(K){console.log(K)}this.editor.isChromelessView()?this.editor.graph.isLightboxView()&&this.lightboxFit():this.showLayersDialog();this.chromelessResize&&this.chromelessResize();this.editor.undoManager.clear();
this.editor.modified=null!=n?n:!1;this.updateUi();window.self===window.top||this.noAutoFocus||window.focus();null!=this.format&&this.format.refresh()}))}};EditorUi.prototype.showLayersDialog=function(){1<this.editor.graph.getModel().getChildCount(this.editor.graph.getModel().getRoot())&&(null==this.actions.layersWindow?this.actions.get("layers").funct():this.actions.layersWindow.window.setVisible(!0))};EditorUi.prototype.getPublicUrl=function(c,g){null!=c?this.spinner.spin(document.body,mxResources.get("loading"))&&
c.getPublicUrl(mxUtils.bind(this,function(l){this.spinner.stop();g(l)})):g(null)};EditorUi.prototype.createLoadMessage=function(c){var g=this.editor.graph,l=g.getGraphBounds(),n=g.view.scale,u=g.view.translate;return{event:c,pageVisible:g.pageVisible,translate:u,bounds:l,currentPage:this.getSelectedPageIndex(),scale:n,page:g.view.getBackgroundPageBounds(),modelBounds:{x:l.x/n-u.x,y:l.y/n-u.y,width:l.width/n,height:l.height/n},containerSize:{width:g.container.clientWidth,height:g.container.clientHeight,
offsetWidth:g.container.offsetWidth,offsetHeight:g.container.offsetHeight}}};EditorUi.prototype.sendEmbeddedSvgExport=function(c){try{var g=this.editor.graph;g.isEditing()&&g.stopEditing(!g.isInvokesStopCellEditing());var l=this.embedMessageSource||window.opener||window.parent;if(this.editor.modified){var n=g.background;if(null==n||n==mxConstants.NONE)n=this.embedExportBackground;this.getEmbeddedSvg(this.getFileData(!0,null,null,null,null,null,null,null,null,!1),g,null,!0,mxUtils.bind(this,function(u){l.postMessage(JSON.stringify({event:"export",
point:this.embedExitPoint,exit:null!=c?!c:!0,data:Editor.createSvgDataUri(u)}),"*")}),null,null,!0,n,1,this.embedExportBorder,null,this.embedExportTheme)}else c||l.postMessage(JSON.stringify({event:"exit",point:this.embedExitPoint}),"*");c||(this.diagramContainer.removeAttribute("data-bounds"),Editor.inlineFullscreen=!1,g.model.clear(),this.editor.undoManager.clear(),this.setBackgroundImage(null),this.editor.modified=!1,"1"!=urlParams.embed&&this.fireEvent(new mxEventObject("editInlineStop")))}catch(u){c||
this.handleError(u)}};EditorUi.prototype.installMessageHandler=function(c){var g=null,l=!1,n=!1,u=null,x=null,B=mxUtils.bind(this,function(K,I){this.editor.modified&&"0"!=urlParams.modified?null!=urlParams.modified&&this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(urlParams.modified)))})):this.clearStatus()});this.editor.graph.model.addListener(mxEvent.CHANGE,B);mxEvent.addListener(window,"message",mxUtils.bind(this,function(K){if(K.source==
-(this.embedMessageSource||window.opener||window.parent)){var I=K.data,R=null,W=mxUtils.bind(this,function(ha){if(null!=ha&&"function"===typeof ha.charAt&&"<"!=ha.charAt(0))try{Editor.isPngDataUrl(ha)?ha=Editor.extractGraphModelFromPng(ha):"data:image/svg+xml;base64,"==ha.substring(0,26)?ha=atob(ha.substring(26)):"data:image/svg+xml;utf8,"==ha.substring(0,24)&&(ha=ha.substring(24)),null!=ha&&(""==ha.trim()?ha=null:"%"==ha.charAt(0)?ha=decodeURIComponent(ha):"<"!=ha.charAt(0)&&(ha=Graph.decompress(ha)))}catch(ta){}return ha});
+(this.embedMessageSource||window.opener||window.parent)){var I=K.data,T=null,W=mxUtils.bind(this,function(ha){if(null!=ha&&"function"===typeof ha.charAt&&"<"!=ha.charAt(0))try{Editor.isPngDataUrl(ha)?ha=Editor.extractGraphModelFromPng(ha):"data:image/svg+xml;base64,"==ha.substring(0,26)?ha=atob(ha.substring(26)):"data:image/svg+xml;utf8,"==ha.substring(0,24)&&(ha=ha.substring(24)),null!=ha&&(""==ha.trim()?ha=null:"%"==ha.charAt(0)?ha=decodeURIComponent(ha):"<"!=ha.charAt(0)&&(ha=Graph.decompress(ha)))}catch(ta){}return ha});
if("json"==urlParams.proto){var q=!1;try{I=JSON.parse(I),EditorUi.debug("EditorUi.installMessageHandler",[this],"evt",[K],"data",[I])}catch(ha){I=null}try{var z=I;if(null==I)return;if("dialog"==I.action){this.showError(null!=I.titleKey?mxResources.get(I.titleKey):I.title,null!=I.messageKey?mxResources.get(I.messageKey):mxUtils.htmlEntities(I.message),null!=I.buttonKey?mxResources.get(I.buttonKey):I.button);null!=I.modified&&(this.editor.modified=I.modified);return}if("layout"==I.action){this.executeLayouts(this.editor.graph.createLayouts(I.layouts));
return}if("prompt"==I.action){this.spinner.stop();var L=new FilenameDialog(this,I.defaultValue||"",null!=I.okKey?mxResources.get(I.okKey):I.ok,function(ha){null!=ha?C.postMessage(JSON.stringify({event:"prompt",value:ha,message:I}),"*"):C.postMessage(JSON.stringify({event:"prompt-cancel",message:I}),"*")},null!=I.titleKey?mxResources.get(I.titleKey):I.title,null,null,null,null,function(){C.postMessage(JSON.stringify({event:"prompt-cancel",message:I}),"*")});this.showDialog(L.container,300,80,!0,!1);
L.init();return}if("draft"==I.action){var N=W(I.xml);this.spinner.stop();L=new DraftDialog(this,mxResources.get("draftFound",[I.name||this.defaultFilename]),N,mxUtils.bind(this,function(){this.hideDialog();C.postMessage(JSON.stringify({event:"draft",result:"edit",message:I}),"*")}),mxUtils.bind(this,function(){this.hideDialog();C.postMessage(JSON.stringify({event:"draft",result:"discard",message:I}),"*")}),I.editKey?mxResources.get(I.editKey):null,I.discardKey?mxResources.get(I.discardKey):null,I.ignore?
mxUtils.bind(this,function(){this.hideDialog();C.postMessage(JSON.stringify({event:"draft",result:"ignore",message:I}),"*")}):null);this.showDialog(L.container,640,480,!0,!1,mxUtils.bind(this,function(ha){ha&&this.actions.get("exit").funct()}));try{L.init()}catch(ha){C.postMessage(JSON.stringify({event:"draft",error:ha.toString(),message:I}),"*")}return}if("template"==I.action){this.spinner.stop();var M=1==I.enableRecent,m=1==I.enableSearch,y=1==I.enableCustomTemp;L=new NewDialog(this,!1,I.templatesOnly?
!1:null!=I.callback,mxUtils.bind(this,function(ha,ta,Da,oa){ha=ha||this.emptyDiagramXml;null!=I.callback?C.postMessage(JSON.stringify({event:"template",xml:ha,blank:ha==this.emptyDiagramXml,name:ta,tempUrl:Da,libs:oa,builtIn:!0,message:I}),"*"):(c(ha,K,ha!=this.emptyDiagramXml,I.toSketch),this.editor.modified||this.clearStatus())}),null,null,null,null,null,null,null,M?mxUtils.bind(this,function(ha){this.remoteInvoke("getRecentDiagrams",[null],null,ha,function(){ha(null,"Network Error!")})}):null,
m?mxUtils.bind(this,function(ha,ta){this.remoteInvoke("searchDiagrams",[ha,null],null,ta,function(){ta(null,"Network Error!")})}):null,mxUtils.bind(this,function(ha,ta,Da){C.postMessage(JSON.stringify({event:"template",docUrl:ha,info:ta,name:Da}),"*")}),null,null,y?mxUtils.bind(this,function(ha){this.remoteInvoke("getCustomTemplates",null,null,ha,function(){ha({},0)})}):null,1==I.withoutType,null,I.templatesOnly);this.showDialog(L.container,620,460,!0,!1,mxUtils.bind(this,function(ha){null!=this.sidebar&&
-this.sidebar.hideTooltip();ha&&!I.noExitOnCancel&&this.actions.get("exit").funct()}));L.init();return}if("textContent"==I.action){var E=this.getDiagramTextContent();C.postMessage(JSON.stringify({event:"textContent",data:E,message:I}),"*");return}if("status"==I.action){this.updateStatus(mxUtils.bind(this,function(){null!=I.messageKey?this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(I.messageKey))):null!=I.message&&this.editor.setStatus(mxUtils.htmlEntities(I.message))}));null!=I.modified&&
-(this.editor.modified=I.modified);return}if("spinner"==I.action){var P=null!=I.messageKey?mxResources.get(I.messageKey):I.message;null==I.show||I.show?this.spinner.spin(document.body,P):this.spinner.stop();return}if("exit"==I.action){this.actions.get("exit").funct();return}if("viewport"==I.action){if(null!=I.viewport){var O=this.editor.graph,T=O.view.translate.x,V=O.view.translate.y;this.embedViewport=I.viewport;O.refresh();this.diagramContainer.scrollTop-=(V-O.view.translate.y)*O.view.scale;this.diagramContainer.scrollLeft-=
-(T-O.view.translate.x)*O.view.scale;this.fireEvent(new mxEventObject("embedViewportChanged"))}return}if("invokeAction"==I.action){var Q=this.actions.get(I.actionName);null!=Q&&Q.funct();return}if("resetEditor"==I.action){O=this.editor.graph;O.isEditing()&&O.stopEditing(!1);this.hideCurrentMenu();O.popupMenuHandler.hideMenu();O.clearSelection();return}if("fit"==I.action){O=this.editor.graph;var S=O.maxFitScale;O.maxFitScale=null!=I.maxScale?I.maxScale:1;O.fit(null!=I.border?I.border:16,null,null,null,
-null,!0);O.maxFitScale=S;P=this.createLoadMessage("fit");P.message=I;C.postMessage(JSON.stringify(P),"*");return}if("fullscreenChanged"==I.action){var U=null;try{var Y=this.diagramContainer.getAttribute("data-scrollState");null!=Y&&(this.diagramContainer.removeAttribute("data-scrollState"),U=JSON.parse(Y))}catch(ha){}Editor.inlineFullscreen=I.value;this.fireEvent(new mxEventObject("inlineFullscreenChanged"));null!=U&&this.restoreScrollState(U);return}if("snapshot"==I.action){this.sendEmbeddedSvgExport(!0);
+this.sidebar.hideTooltip();ha&&!I.noExitOnCancel&&this.actions.get("exit").funct()}));L.init();return}if("textContent"==I.action){var F=this.getDiagramTextContent();C.postMessage(JSON.stringify({event:"textContent",data:F,message:I}),"*");return}if("status"==I.action){this.updateStatus(mxUtils.bind(this,function(){null!=I.messageKey?this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(I.messageKey))):null!=I.message&&this.editor.setStatus(mxUtils.htmlEntities(I.message))}));null!=I.modified&&
+(this.editor.modified=I.modified);return}if("spinner"==I.action){var P=null!=I.messageKey?mxResources.get(I.messageKey):I.message;null==I.show||I.show?this.spinner.spin(document.body,P):this.spinner.stop();return}if("exit"==I.action){this.actions.get("exit").funct();return}if("viewport"==I.action){if(null!=I.viewport){var O=this.editor.graph,S=O.view.translate.x,V=O.view.translate.y;this.embedViewport=I.viewport;O.refresh();this.diagramContainer.scrollTop-=(V-O.view.translate.y)*O.view.scale;this.diagramContainer.scrollLeft-=
+(S-O.view.translate.x)*O.view.scale;this.fireEvent(new mxEventObject("embedViewportChanged"))}return}if("invokeAction"==I.action){var Q=this.actions.get(I.actionName);null!=Q&&Q.funct();return}if("resetEditor"==I.action){O=this.editor.graph;O.isEditing()&&O.stopEditing(!1);this.hideCurrentMenu();O.popupMenuHandler.hideMenu();O.clearSelection();return}if("fit"==I.action){O=this.editor.graph;var R=O.maxFitScale;O.maxFitScale=null!=I.maxScale?I.maxScale:1;O.fit(null!=I.border?I.border:16,null,null,null,
+null,!0);O.maxFitScale=R;P=this.createLoadMessage("fit");P.message=I;C.postMessage(JSON.stringify(P),"*");return}if("fullscreenChanged"==I.action){var U=null;try{var Y=this.diagramContainer.getAttribute("data-scrollState");null!=Y&&(this.diagramContainer.removeAttribute("data-scrollState"),U=JSON.parse(Y))}catch(ha){}Editor.inlineFullscreen=I.value;this.fireEvent(new mxEventObject("inlineFullscreenChanged"));null!=U&&this.restoreScrollState(U);return}if("snapshot"==I.action){this.sendEmbeddedSvgExport(!0);
return}if("export"==I.action){if("png"==I.format||"xmlpng"==I.format){if(null==I.spin&&null==I.spinKey||this.spinner.spin(document.body,null!=I.spinKey?mxResources.get(I.spinKey):I.spin)){var X=null!=I.xml?I.xml:this.getFileData(!0);this.editor.graph.setEnabled(!1);O=this.editor.graph;var Z=mxUtils.bind(this,function(ha,ta){if(I.withSvg)I.withSvg=!1,this.getEmbeddedSvg(X,this.editor.graph,null,!0,function(oa){Z(ha,oa)},null,null,I.embedImages,this.editor.graph.background,I.scale,I.border,I.shadow,
"auto");else{this.editor.graph.setEnabled(!0);this.spinner.stop();var Da=this.createLoadMessage("export");Da.format=I.format;Da.message=z;Da.data=ha;Da.svg=ta;Da.xml=X;C.postMessage(JSON.stringify(Da),"*")}}),aa=mxUtils.bind(this,function(ha){null==ha&&(ha=Editor.blankImage);"xmlpng"==I.format&&(ha=Editor.writeGraphModelToPng(ha,"tEXt","mxfile",encodeURIComponent(X)));O!=this.editor.graph&&O.container.parentNode.removeChild(O.container);Z(ha)}),da=I.pageId||(null!=this.pages?I.currentPage?this.currentPage.getId():
this.pages[0].getId():null);if(this.editor.isExportToCanvas()){var fa=mxUtils.bind(this,function(){if(null!=this.pages&&this.currentPage.getId()!=da){var ha=O.getGlobalVariable;O=this.createTemporaryGraph(O.getStylesheet());for(var ta,Da=0;Da<this.pages.length;Da++)if(this.pages[Da].getId()==da){ta=this.updatePageRoot(this.pages[Da]);break}null==ta&&(ta=this.currentPage);O.getGlobalVariable=function(qa){return"page"==qa?ta.getName():"pagenumber"==qa?1:ha.apply(this,arguments)};document.body.appendChild(O.container);
@@ -13741,9 +13747,9 @@ null!=I.spinKey?mxResources.get(I.spinKey):I.spin))this.editor.graph.setEnabled(
"*")}),null!=I.xml&&0<I.xml.length){if(this.editor.graph.mathEnabled){var ba=Editor.onMathJaxDone;Editor.onMathJaxDone=function(){ba.apply(this,arguments);fa()}}l=!0;this.setFileData(I.xml);l=!1;this.editor.graph.mathEnabled||fa()}else fa();return}if("load"==I.action){q=I.toSketch;n=1==I.autosave;this.embedDiffSync=null!=I.diffSync&&!1!==I.diffSync;this.embedDiffSyncPatchOnly="object"===typeof I.diffSync&&null!=I.diffSync&&1==I.diffSync.patchOnly;this.embedExportProtocol=1==I.exportProtocol;var ia=
I.sourceMetadata||null;this.hideDialog();null!=I.modified&&null==urlParams.modified&&(urlParams.modified=I.modified);null!=I.saveAndExit&&null==urlParams.saveAndExit&&(urlParams.saveAndExit=I.saveAndExit);if("1"==urlParams.saveAndExit||"1"==urlParams.publishClose)if(this.actions.get("save").shortcut=null,!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(83,!0,"saveAndExit"),"1"!=urlParams.noSaveBtn&&(this.actions.get("save").shortcut=Editor.ctrlKey+"+"+Editor.shiftKey+"+S",
this.keyHandler.bindAction(83,!0,"save",!0));null!=I.noSaveBtn&&null==urlParams.noSaveBtn&&(urlParams.noSaveBtn=I.noSaveBtn);if(null!=I.rough){var la=Editor.sketchMode;this.doSetSketchMode(I.rough);la!=Editor.sketchMode&&this.fireEvent(new mxEventObject("sketchModeChanged"))}null!=I.dark&&this.setDarkMode(I.dark);null!=I.border&&(this.embedExportBorder=I.border);null!=I.theme&&(this.embedExportTheme=I.theme);null!=I.background&&(this.embedExportBackground=I.background);null!=I.viewport&&(this.embedViewport=
-I.viewport);this.embedExitPoint=null;if(null!=I.scale){var ka=I.scale,pa=null!=I.scaleBorder?I.scaleBorder:this.embedExportBorder||0,Ba=null!=I.border?I.border:0;R=mxUtils.bind(this,function(){var ha=this.editor.graph,ta=ha.getGraphBounds();if(0<ta.width&&0<ta.height){var Da=ha.view.scale;ha.view.scaleAndTranslate(ka,ha.view.translate.x+Ba-ta.x/Da+pa/ka,ha.view.translate.y+Ba-ta.y/Da+pa/ka)}})}else if(null!=I.fit){var sa=null!=I.border?I.border:0,ja=I.maxFitScale||1;R=mxUtils.bind(this,function(){var ha=
+I.viewport);this.embedExitPoint=null;if(null!=I.scale){var ka=I.scale,pa=null!=I.scaleBorder?I.scaleBorder:this.embedExportBorder||0,Ba=null!=I.border?I.border:0;T=mxUtils.bind(this,function(){var ha=this.editor.graph,ta=ha.getGraphBounds();if(0<ta.width&&0<ta.height){var Da=ha.view.scale;ha.view.scaleAndTranslate(ka,ha.view.translate.x+Ba-ta.x/Da+pa/ka,ha.view.translate.y+Ba-ta.y/Da+pa/ka)}})}else if(null!=I.fit){var sa=null!=I.border?I.border:0,ja=I.maxFitScale||1;T=mxUtils.bind(this,function(){var ha=
this.editor.graph,ta=ha.maxFitScale;ha.maxFitScale=ja;ha.fit(sa,null,null,null,null,!0);ha.maxFitScale=ta})}if(null!=I.rect){Ba=this.embedExportBorder;this.diagramContainer.style.left=Math.max(60,I.rect.left)+"px";this.diagramContainer.style.top=Math.max(40,I.rect.top)+"px";this.minInlineWidth=I.minWidth;this.minInlineHeight=I.minHeight;this.diagramContainer.style.border="2px solid #295fcc";this.diagramContainer.style.bottom="";this.diagramContainer.style.right="";var ya=I.maxFitScale,ua=I.rect.width+
-2*Ba,za=I.rect.height+2*Ba;R=mxUtils.bind(this,function(){var ha=mxUtils.getDocumentSize();ua=Math.min(null!=this.minInlineWidth?Math.max(this.minInlineWidth,ua):ua,ha.width-80);ha=Math.min(null!=this.minInlineHeight?Math.max(this.minInlineHeight,za):za,ha.height-80);this.diagramContainer.style.width=ua+"px";this.diagramContainer.style.height=ha+"px";var ta=this.editor.graph;ha=ta.maxFitScale;ta.maxFitScale=ya;ta.fit(2*Ba,null,null,null,null,null,za);this.setPageVisible(!1);if(null!=this.minInlineWidth&&
+2*Ba,za=I.rect.height+2*Ba;T=mxUtils.bind(this,function(){var ha=mxUtils.getDocumentSize();ua=Math.min(null!=this.minInlineWidth?Math.max(this.minInlineWidth,ua):ua,ha.width-80);ha=Math.min(null!=this.minInlineHeight?Math.max(this.minInlineHeight,za):za,ha.height-80);this.diagramContainer.style.width=ua+"px";this.diagramContainer.style.height=ha+"px";var ta=this.editor.graph;ha=ta.maxFitScale;ta.maxFitScale=ya;ta.fit(2*Ba,null,null,null,null,null,za);this.setPageVisible(!1);if(null!=this.minInlineWidth&&
ta.getGraphBounds().width<this.minInlineWidth){var Da=ta.container.scrollTop;this.resetScrollbars();ta.container.scrollTop=Da}ta.maxFitScale=ha;ta.container.scrollTop-=Ba;ta.container.scrollLeft-=Ba;window.setTimeout(mxUtils.bind(this,function(){this.fireEvent(new mxEventObject("editInlineStart","data",[I]));ta.container.focus();null!=this.formatWindow&&null!=this.formatWindow.window&&this.formatWindow.window.isVisible()&&(this.formatWindow.window.div.style.top=ta.container.style.top);var oa=ta.getGraphBounds();
ta.container.clientWidth>oa.width+2*Ba&&(ta.container.scrollLeft=oa.x+(oa.width+Ba-ta.container.clientWidth)/2)}),10)})}null!=I.noExitBtn&&null==urlParams.noExitBtn&&(urlParams.noExitBtn=I.noExitBtn);null!=I.title&&null!=this.buttonContainer&&this.setEmbedTitle(I.title);try{I.libs&&this.sidebar.showEntries(I.libs)}catch(ha){}if(null!=I.xmlpng)I=this.extractGraphModelFromPng(I.xmlpng);else if(null!=I.descriptor){if(I=I.descriptor,"mermaid"==I.format){window.isMermaidEnabled?this.parseMermaidDiagram(I.data,
null,mxUtils.bind(this,function(ha){c(ha,K,null,q);ha=this.createLoadMessage("load");ha.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!0);ha.message=z;(this.embedMessageSource||window.opener||window.parent).postMessage(JSON.stringify(ha),"*");if(null!=ia&&null!=ia.key&&null!=ia.value){ha=this.editor.graph;var ta=ha.getModel().getRoot();if(null!=ta){ha.getModel().beginUpdate();try{ha.setAttributeForCell(ta,ia.key,ia.value)}finally{ha.getModel().endUpdate()}}}}),mxUtils.bind(this,
@@ -13753,11 +13759,11 @@ I.action){P={event:"getDiff",message:I};if(this.embedDiffSync&&null!=x){var ma=t
message:I,checksum:this.getHashValueForPages(this.pages)}),"*")}),function(ha){C.postMessage(JSON.stringify({event:"resetDiff",message:I,error:ha}),"*")})):(x=this.clonePages(this.pages),u=Ca(),C.postMessage(JSON.stringify({event:"resetDiff",message:I,checksum:this.getHashValueForPages(this.pages)}),"*"))):"remoteInvokeReady"==I.action?this.handleRemoteInvokeReady(C):"remoteInvoke"==I.action?this.handleRemoteInvoke(I,K.origin):"remoteInvokeResponse"==I.action?this.handleRemoteInvokeResponse(I):C.postMessage(JSON.stringify({error:"unknownMessage",
data:JSON.stringify(I)}),"*");return}}catch(ha){this.handleError(ha)}}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())}),wa=mxUtils.bind(this,function(ha,ta){l=!0;try{c(ha,ta,null,q)}catch(Da){this.handleError(Da)}l=!1;null!=urlParams.modified&&this.clearStatus();u=Ca();this.embedDiffSync&&(x=this.clonePages(this.pages));n&&null==g&&(g=mxUtils.bind(this,function(Da,oa){Da=Ca();if(Da!=
u&&!l){oa=this.createLoadMessage("autosave");oa.message=z;if(this.embedDiffSync&&null!=x){var ca=this.clonePages(this.pages),ea=this.diffPages(x,ca);mxUtils.isEmptyObject(ea)?oa.xml=Da:(oa.patch=ea,oa.checksum=this.getHashValueForPages(ca),this.embedDiffSyncPatchOnly||(oa.xml=Da));x=ca}else oa.xml=Da;(this.embedMessageSource||window.opener||window.parent).postMessage(JSON.stringify(oa),"*")}u=Da}),this.editor.graph.model.addListener(mxEvent.CHANGE,g),this.editor.graph.addListener("gridSizeChanged",
-g),this.editor.graph.addListener("shadowVisibleChanged",g),this.addListener("pageFormatChanged",g),this.addListener("pageScaleChanged",g),this.addListener("backgroundColorChanged",g),this.addListener("backgroundImageChanged",g),this.addListener("foldingEnabledChanged",g),this.addListener("mathEnabledChanged",g),this.addListener("gridEnabledChanged",g),this.addListener("guidesEnabledChanged",g),this.addListener("pageViewChanged",g));null!=R&&R();if("1"==urlParams.returnbounds||"json"==urlParams.proto)ta=
+g),this.editor.graph.addListener("shadowVisibleChanged",g),this.addListener("pageFormatChanged",g),this.addListener("pageScaleChanged",g),this.addListener("backgroundColorChanged",g),this.addListener("backgroundImageChanged",g),this.addListener("foldingEnabledChanged",g),this.addListener("mathEnabledChanged",g),this.addListener("gridEnabledChanged",g),this.addListener("guidesEnabledChanged",g),this.addListener("pageViewChanged",g));null!=T&&T();if("1"==urlParams.returnbounds||"json"==urlParams.proto)ta=
this.createLoadMessage("load"),ta.xml=ha,this.embedDiffSync&&null!=this.pages&&(ta.checksum=this.getHashValueForPages(this.pages)),C.postMessage(JSON.stringify(ta),"*")});null!=I&&"function"===typeof I.substring&&"data:application/vnd.visio;base64,"==I.substring(0,34)?(W="0M8R4KGxGuE"==I.substring(34,45)?"raw.vsd":"raw.vsdx",this.importVisio(this.base64ToBlob(I.substring(I.indexOf(",")+1)),function(ha){wa(ha,K)},mxUtils.bind(this,function(ha){this.handleError(ha)}),W)):null!=I&&"function"===typeof I.substring&&
(new XMLHttpRequest).upload&&this.isRemoteFileFormat(I,"")?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):this.parseFileData(I,mxUtils.bind(this,function(ha){4==ha.readyState&&(200<=ha.status&&299>=ha.status&&"<mxGraphModel"==ha.responseText.substring(0,13)?wa(ha.responseText,K):this.handleError({message:413==ha.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError")}))}),""):null!=I&&"function"===typeof I.substring&&this.isLucidChartData(I)?
this.convertLucidChart(I,mxUtils.bind(this,function(ha){wa(ha)}),mxUtils.bind(this,function(ha){this.handleError(ha)})):null==I||"object"!==typeof I||null==I.format||null==I.data&&null==I.url?(I=W(I),wa(I,K)):this.loadDescriptor(I,mxUtils.bind(this,function(ha){wa(Ca(),K)}),mxUtils.bind(this,function(ha){this.handleError(ha,mxResources.get("errorLoadingFile"))}))}}));var C=this.embedMessageSource||window.opener||window.parent;B="json"==urlParams.proto?JSON.stringify({event:"init"}):urlParams.ready||
-"ready";C.postMessage(B,"*");if("json"==urlParams.proto){var F=this.editor.graph.openLink;this.editor.graph.openLink=function(K,I,R){F.apply(this,arguments);C.postMessage(JSON.stringify({event:"openLink",href:K,target:I,allowOpener:R}),"*")}}};EditorUi.prototype.createEmbedButton=function(c,g,l,n){var u=document.createElement("button");u.className="geEmbedBtn geBtn";u.setAttribute("title",c+(null!=l?" ("+l+")":""));mxUtils.write(u,c);n&&u.classList.add("gePrimaryBtn");mxEvent.addListener(u,"click",
+"ready";C.postMessage(B,"*");if("json"==urlParams.proto){var E=this.editor.graph.openLink;this.editor.graph.openLink=function(K,I,T){E.apply(this,arguments);C.postMessage(JSON.stringify({event:"openLink",href:K,target:I,allowOpener:T}),"*")}}};EditorUi.prototype.createEmbedButton=function(c,g,l,n){var u=document.createElement("button");u.className="geEmbedBtn geBtn";u.setAttribute("title",c+(null!=l?" ("+l+")":""));mxUtils.write(u,c);n&&u.classList.add("gePrimaryBtn");mxEvent.addListener(u,"click",
g);return u};EditorUi.prototype.setEmbedTitle=function(c){c=this.createStatusDiv(c);null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode.removeChild(this.embedFilenameSpan);"kennedy"==Editor.currentTheme||"atlas"==Editor.currentTheme?this.menubarContainer.appendChild(c):this.buttonContainer.appendChild(c);this.embedFilenameSpan=c};EditorUi.prototype.addEmbedButtons=function(){this.dependsOnLanguage(mxUtils.bind(this,function(){var c=null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode==
this.buttonContainer;this.buttonContainer.innerText="";c&&this.buttonContainer.appendChild(this.embedFilenameSpan);this.commentsSupported()&&null!=this.commentButton&&this.buttonContainer.appendChild(this.commentButton);"1"==urlParams.noSaveBtn?"0"!=urlParams.saveAndExit&&this.buttonContainer.appendChild(this.createEmbedButton("1"==urlParams.publishClose?mxResources.get("publish"):mxResources.get("saveAndExit"),this.actions.get("saveAndExit").funct,Editor.ctrlKey+"+S",!0)):(this.buttonContainer.appendChild(this.createEmbedButton(mxResources.get("save"),
mxUtils.bind(this,function(){this.actions.get("save").funct(!1)}),"1"==urlParams.saveAndExit?Editor.ctrlKey+"+"+Editor.shiftKey+"+S":Editor.ctrlKey+"+S",!0)),"1"==urlParams.saveAndExit&&this.buttonContainer.appendChild(this.createEmbedButton(mxResources.get("saveAndExit"),this.actions.get("saveAndExit").funct,Editor.ctrlKey+"+S")));"1"!=urlParams.noExitBtn&&this.buttonContainer.appendChild(this.createEmbedButton("1"==urlParams.publishClose?mxResources.get("close"):mxResources.get("exit"),this.actions.get("exit").funct))}))};
@@ -13765,24 +13771,24 @@ EditorUi.prototype.showImportCsvDialog=function(){null==this.importCsvDialog&&(t
function(){var g=new TextareaDialog(this,mxResources.get("layout"),c,mxUtils.bind(this,function(l){if(0<l.length)try{var n=JSON.parse(l);this.executeLayouts(this.editor.graph.createLayouts(n));this.customLayoutConfig=n;this.hideDialog()}catch(u){this.handleError(u)}}),null,null,null,null,mxUtils.bind(this,function(l,n){var u=mxUtils.button(mxResources.get("copy"),mxUtils.bind(this,function(){try{var x=n.value;n.value=JSON.stringify(JSON.parse(x));n.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?
n.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");this.alert(mxResources.get("copiedToClipboard"));n.value=x}catch(B){this.handleError(B)}}));u.setAttribute("title","copy");u.className="geBtn";l.appendChild(u)}),!0,null,null,"https://www.drawio.com/doc/faq/apply-layouts");this.showDialog(g.container,620,460,!0,!0);g.init()}))};EditorUi.prototype.loadOrgChartLayouts=function(c,g){this.createTimeout(null,mxUtils.bind(this,function(l){var n=mxUtils.bind(this,function(){this.loadingOrgChart=
!1;l.clear()&&(Graph.layoutNames.push("mxOrgChartLayout"),this.spinner.stop(),c())}),u=mxUtils.bind(this,function(x){this.loadingOrgChart=!1;l.clear()&&this.handleError(x)});if("undefined"!==typeof mxOrgChartLayout||this.loadingOrgChart||this.isOffline(!0))n();else if(g||this.spinner.spin(document.body,mxResources.get("loading")))this.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",n,null,null,null,u)},null,null,null,u)},null,null,null,u)},null,null,null,u):mxscript(window.DRAWIO_SERVER_URL+"js/orgchart.min.js",n,null,null,null,u)}),onerror)};EditorUi.prototype.importCsv=function(c,g,l,n){this.loadOrgChartLayouts(mxUtils.bind(this,function(){this.doImportCsv(c,g,l)}),n)};EditorUi.prototype.doImportCsv=function(c,g,l){try{var n=c.split("\n"),u=[],x=[],B=[],C={};if(0<n.length){var F={};l=null!=l?l:this.editor.graph;var K=null,
-I=null,R=null,W=null,q=null,z=null,L=null,N="whiteSpace=wrap;html=1;",M=null,m=null,y="",E="auto",P="auto",O=!1,T=null,V=null,Q=40,S=40,U=100,Y=0,X=mxUtils.bind(this,function(){null!=g?g(na):(l.setSelectionCells(na),l.scrollCellToVisible(l.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),0)}),Z=l.getFreeInsertPoint(),aa=Z.x,da=Z.y;Z=da;var fa=null,ba="auto";m=null;for(var ia=[],la=null,ka=null,pa=0;pa<n.length&&"#"==n[pa].charAt(0);){c=
+function(){mxscript("js/orgchart/mxOrgChartLayout.js",n,null,null,null,u)},null,null,null,u)},null,null,null,u)},null,null,null,u):mxscript(window.DRAWIO_SERVER_URL+"js/orgchart.min.js",n,null,null,null,u)}),onerror)};EditorUi.prototype.importCsv=function(c,g,l,n){this.loadOrgChartLayouts(mxUtils.bind(this,function(){this.doImportCsv(c,g,l)}),n)};EditorUi.prototype.doImportCsv=function(c,g,l){try{var n=c.split("\n"),u=[],x=[],B=[],C={};if(0<n.length){var E={};l=null!=l?l:this.editor.graph;var K=null,
+I=null,T=null,W=null,q=null,z=null,L=null,N="whiteSpace=wrap;html=1;",M=null,m=null,y="",F="auto",P="auto",O=!1,S=null,V=null,Q=40,R=40,U=100,Y=0,X=mxUtils.bind(this,function(){null!=g?g(na):(l.setSelectionCells(na),l.scrollCellToVisible(l.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),0)}),Z=l.getFreeInsertPoint(),aa=Z.x,da=Z.y;Z=da;var fa=null,ba="auto";m=null;for(var ia=[],la=null,ka=null,pa=0;pa<n.length&&"#"==n[pa].charAt(0);){c=
n[pa].replace(/\r$/,"");for(pa++;pa<n.length&&"\\"==c.charAt(c.length-1)&&"#"==n[pa].charAt(0);)c=c.substring(0,c.length-1)+mxUtils.trim(n[pa].substring(1)),pa++;if("#"!=c.charAt(1)){var Ba=c.indexOf(":");if(0<Ba){var sa=mxUtils.trim(c.substring(1,Ba)),ja=mxUtils.trim(c.substring(Ba+1));"label"==sa?fa=Graph.sanitizeHtml(ja):"labelname"==sa&&0<ja.length&&"-"!=ja?q=ja:"labels"==sa&&0<ja.length&&"-"!=ja?L=JSON.parse(ja):"style"==sa?I=ja:"parentstyle"==sa?N=ja:"unknownStyle"==sa&&"-"!=ja?z=ja:"stylename"==
-sa&&0<ja.length&&"-"!=ja?W=ja:"styles"==sa&&0<ja.length&&"-"!=ja?R=JSON.parse(ja):"vars"==sa&&0<ja.length&&"-"!=ja?K=JSON.parse(ja):"identity"==sa&&0<ja.length&&"-"!=ja?M=ja:"parent"==sa&&0<ja.length&&"-"!=ja?m=ja:"namespace"==sa&&0<ja.length&&"-"!=ja?y=ja:"width"==sa?E=ja:"height"==sa?P=ja:"collapsed"==sa&&"-"!=ja?O="true"==ja:"left"==sa&&0<ja.length?T=ja:"top"==sa&&0<ja.length?V=ja:"ignore"==sa?ka=ja.split(","):"connect"==sa?ia.push(JSON.parse(ja)):"link"==sa?la=ja:"padding"==sa?Y=parseFloat(ja):
-"edgespacing"==sa?Q=parseFloat(ja):"nodespacing"==sa?S=parseFloat(ja):"levelspacing"==sa?U=parseFloat(ja):"layout"==sa&&(ba=ja)}}}if(null==n[pa])throw Error(mxResources.get("invalidOrMissingFile"));var ya=this.editor.csvToArray(n[pa].replace(/\r$/,""));Ba=c=null;sa=[];for(ja=0;ja<ya.length;ja++)M==ya[ja]&&(c=ja),m==ya[ja]&&(Ba=ja),sa.push(mxUtils.trim(ya[ja]).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,""));null==fa&&(fa="%"+sa[0]+"%");if(null!=ia)for(var ua=0;ua<ia.length;ua++)null==
-F[ia[ua].to]&&(F[ia[ua].to]={});M=[];for(ja=pa+1;ja<n.length;ja++){var za=this.editor.csvToArray(n[ja].replace(/\r$/,""));if(null==za){var xa=40<n[ja].length?n[ja].substring(0,40)+"...":n[ja];throw Error(xa+" ("+ja+"):\n"+mxResources.get("containsValidationErrors"));}0<za.length&&M.push(za)}l.model.beginUpdate();try{for(ja=0;ja<M.length;ja++){za=M[ja];var ma=null,Ca=null!=c?y+za[c]:null;n=!1;null!=Ca&&(ma=l.model.getCell(Ca),n=null==ma||0<=mxUtils.indexOf(u,ma));var wa=new mxCell(fa,new mxGeometry(aa,
-Z,0,0),I||"whiteSpace=wrap;html=1;");wa.collapsed=O;wa.vertex=!0;wa.id=Ca;null==ma||n||l.model.setCollapsed(ma,O);for(var ha=0;ha<za.length;ha++)l.setAttributeForCell(wa,sa[ha],za[ha]),null==ma||n||l.setAttributeForCell(ma,sa[ha],za[ha]);if(null!=q&&null!=L){var ta=L[wa.getAttribute(q)];null!=ta&&(l.labelChanged(wa,ta),null==ma||n||l.cellLabelChanged(ma,ta))}if(null!=W&&null!=R){var Da=R[wa.getAttribute(W)];null!=Da&&(wa.style=Da)}l.setAttributeForCell(wa,"placeholders","1");wa.style=l.replacePlaceholders(wa,
-wa.style,K);null==ma||n?l.fireEvent(new mxEventObject("cellsInserted","cells",[wa])):(l.model.setStyle(ma,wa.style),0>mxUtils.indexOf(B,ma)&&B.push(ma),l.fireEvent(new mxEventObject("cellsInserted","cells",[ma])));n=null!=ma;ma=wa;if(!n)for(ua=0;ua<ia.length;ua++)F[ia[ua].to][ma.getAttribute(ia[ua].to)]=ma;null!=la&&"link"!=la&&(l.setLinkForCell(ma,ma.getAttribute(la)),l.setAttributeForCell(ma,la,null));var oa=l.getPreferredSizeForCell(ma);m=null!=Ba?l.model.getCell(y+za[Ba]):null;if(ma.vertex){xa=
-null!=m?0:aa;pa=null!=m?0:da;null!=T&&null!=ma.getAttribute(T)&&(ma.geometry.x=xa+parseFloat(ma.getAttribute(T)));null!=V&&null!=ma.getAttribute(V)&&(ma.geometry.y=pa+parseFloat(ma.getAttribute(V)));var ca="@"==E.charAt(0)?ma.getAttribute(E.substring(1)):null;ma.geometry.width=null!=ca&&"auto"!=ca?parseFloat(ma.getAttribute(E.substring(1))):"auto"==E||"auto"==ca?oa.width+Y:parseFloat(E);var ea="@"==P.charAt(0)?ma.getAttribute(P.substring(1)):null;ma.geometry.height=null!=ea&&"auto"!=ea&&"width"!=
-P?parseFloat(ea):"auto"==P||"auto"==ea?oa.height+Y:"width"==P?ma.geometry.width:parseFloat(P);Z+=ma.geometry.height+S}n?(null==C[Ca]&&(C[Ca]=[]),C[Ca].push(ma)):(u.push(ma),null!=m?(m.style=l.replacePlaceholders(m,N,K),l.addCell(ma,m),x.push(m)):B.push(l.addCell(ma)))}for(ja=0;ja<x.length;ja++)ca="@"==E.charAt(0)?x[ja].getAttribute(E.substring(1)):null,ea="@"==P.charAt(0)?x[ja].getAttribute(P.substring(1)):null,"auto"!=E&&"auto"!=ca||"auto"!=P&&"auto"!=ea||l.updateGroupBounds([x[ja]],Y,!0);var qa=
-B.slice(),na=B.slice();for(ua=0;ua<ia.length;ua++){var va=ia[ua];for(ja=0;ja<u.length;ja++){ma=u[ja];var ra=mxUtils.bind(this,function(Sa,eb,Pa){var Ta=eb.getAttribute(Pa.from);if(null!=Ta&&""!=Ta){Ta=Ta.split(",");for(var lb=0;lb<Ta.length;lb++){var Xa=F[Pa.to][Ta[lb]];if(null==Xa&&null!=z){Xa=new mxCell(Ta[lb],new mxGeometry(aa,da,0,0),z);Xa.style=l.replacePlaceholders(eb,Xa.style,K);var ab=l.getPreferredSizeForCell(Xa);Xa.geometry.width=ab.width+Y;Xa.geometry.height=ab.height+Y;F[Pa.to][Ta[lb]]=
+sa&&0<ja.length&&"-"!=ja?W=ja:"styles"==sa&&0<ja.length&&"-"!=ja?T=JSON.parse(ja):"vars"==sa&&0<ja.length&&"-"!=ja?K=JSON.parse(ja):"identity"==sa&&0<ja.length&&"-"!=ja?M=ja:"parent"==sa&&0<ja.length&&"-"!=ja?m=ja:"namespace"==sa&&0<ja.length&&"-"!=ja?y=ja:"width"==sa?F=ja:"height"==sa?P=ja:"collapsed"==sa&&"-"!=ja?O="true"==ja:"left"==sa&&0<ja.length?S=ja:"top"==sa&&0<ja.length?V=ja:"ignore"==sa?ka=ja.split(","):"connect"==sa?ia.push(JSON.parse(ja)):"link"==sa?la=ja:"padding"==sa?Y=parseFloat(ja):
+"edgespacing"==sa?Q=parseFloat(ja):"nodespacing"==sa?R=parseFloat(ja):"levelspacing"==sa?U=parseFloat(ja):"layout"==sa&&(ba=ja)}}}if(null==n[pa])throw Error(mxResources.get("invalidOrMissingFile"));var ya=this.editor.csvToArray(n[pa].replace(/\r$/,""));Ba=c=null;sa=[];for(ja=0;ja<ya.length;ja++)M==ya[ja]&&(c=ja),m==ya[ja]&&(Ba=ja),sa.push(mxUtils.trim(ya[ja]).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,""));null==fa&&(fa="%"+sa[0]+"%");if(null!=ia)for(var ua=0;ua<ia.length;ua++)null==
+E[ia[ua].to]&&(E[ia[ua].to]={});M=[];for(ja=pa+1;ja<n.length;ja++){var za=this.editor.csvToArray(n[ja].replace(/\r$/,""));if(null==za){var xa=40<n[ja].length?n[ja].substring(0,40)+"...":n[ja];throw Error(xa+" ("+ja+"):\n"+mxResources.get("containsValidationErrors"));}0<za.length&&M.push(za)}l.model.beginUpdate();try{for(ja=0;ja<M.length;ja++){za=M[ja];var ma=null,Ca=null!=c?y+za[c]:null;n=!1;null!=Ca&&(ma=l.model.getCell(Ca),n=null==ma||0<=mxUtils.indexOf(u,ma));var wa=new mxCell(fa,new mxGeometry(aa,
+Z,0,0),I||"whiteSpace=wrap;html=1;");wa.collapsed=O;wa.vertex=!0;wa.id=Ca;null==ma||n||l.model.setCollapsed(ma,O);for(var ha=0;ha<za.length;ha++)l.setAttributeForCell(wa,sa[ha],za[ha]),null==ma||n||l.setAttributeForCell(ma,sa[ha],za[ha]);if(null!=q&&null!=L){var ta=L[wa.getAttribute(q)];null!=ta&&(l.labelChanged(wa,ta),null==ma||n||l.cellLabelChanged(ma,ta))}if(null!=W&&null!=T){var Da=T[wa.getAttribute(W)];null!=Da&&(wa.style=Da)}l.setAttributeForCell(wa,"placeholders","1");wa.style=l.replacePlaceholders(wa,
+wa.style,K);null==ma||n?l.fireEvent(new mxEventObject("cellsInserted","cells",[wa])):(l.model.setStyle(ma,wa.style),0>mxUtils.indexOf(B,ma)&&B.push(ma),l.fireEvent(new mxEventObject("cellsInserted","cells",[ma])));n=null!=ma;ma=wa;if(!n)for(ua=0;ua<ia.length;ua++)E[ia[ua].to][ma.getAttribute(ia[ua].to)]=ma;null!=la&&"link"!=la&&(l.setLinkForCell(ma,ma.getAttribute(la)),l.setAttributeForCell(ma,la,null));var oa=l.getPreferredSizeForCell(ma);m=null!=Ba?l.model.getCell(y+za[Ba]):null;if(ma.vertex){xa=
+null!=m?0:aa;pa=null!=m?0:da;null!=S&&null!=ma.getAttribute(S)&&(ma.geometry.x=xa+parseFloat(ma.getAttribute(S)));null!=V&&null!=ma.getAttribute(V)&&(ma.geometry.y=pa+parseFloat(ma.getAttribute(V)));var ca="@"==F.charAt(0)?ma.getAttribute(F.substring(1)):null;ma.geometry.width=null!=ca&&"auto"!=ca?parseFloat(ma.getAttribute(F.substring(1))):"auto"==F||"auto"==ca?oa.width+Y:parseFloat(F);var ea="@"==P.charAt(0)?ma.getAttribute(P.substring(1)):null;ma.geometry.height=null!=ea&&"auto"!=ea&&"width"!=
+P?parseFloat(ea):"auto"==P||"auto"==ea?oa.height+Y:"width"==P?ma.geometry.width:parseFloat(P);Z+=ma.geometry.height+R}n?(null==C[Ca]&&(C[Ca]=[]),C[Ca].push(ma)):(u.push(ma),null!=m?(m.style=l.replacePlaceholders(m,N,K),l.addCell(ma,m),x.push(m)):B.push(l.addCell(ma)))}for(ja=0;ja<x.length;ja++)ca="@"==F.charAt(0)?x[ja].getAttribute(F.substring(1)):null,ea="@"==P.charAt(0)?x[ja].getAttribute(P.substring(1)):null,"auto"!=F&&"auto"!=ca||"auto"!=P&&"auto"!=ea||l.updateGroupBounds([x[ja]],Y,!0);var qa=
+B.slice(),na=B.slice();for(ua=0;ua<ia.length;ua++){var va=ia[ua];for(ja=0;ja<u.length;ja++){ma=u[ja];var ra=mxUtils.bind(this,function(Sa,eb,Pa){var Ta=eb.getAttribute(Pa.from);if(null!=Ta&&""!=Ta){Ta=Ta.split(",");for(var lb=0;lb<Ta.length;lb++){var Xa=E[Pa.to][Ta[lb]];if(null==Xa&&null!=z){Xa=new mxCell(Ta[lb],new mxGeometry(aa,da,0,0),z);Xa.style=l.replacePlaceholders(eb,Xa.style,K);var ab=l.getPreferredSizeForCell(Xa);Xa.geometry.width=ab.width+Y;Xa.geometry.height=ab.height+Y;E[Pa.to][Ta[lb]]=
Xa;Xa.vertex=!0;Xa.id=Ta[lb];B.push(l.addCell(Xa))}if(null!=Xa){ab=Pa.label;null!=Pa.fromlabel&&(ab=(eb.getAttribute(Pa.fromlabel)||"")+(ab||""));null!=Pa.sourcelabel&&(ab=l.replacePlaceholders(eb,Pa.sourcelabel,K)+(ab||""));null!=Pa.tolabel&&(ab=(ab||"")+(Xa.getAttribute(Pa.tolabel)||""));null!=Pa.targetlabel&&(ab=(ab||"")+l.replacePlaceholders(Xa,Pa.targetlabel,K));var mb="target"==Pa.placeholders==!Pa.invert?Xa:Sa;mb=null!=Pa.style?l.replacePlaceholders(mb,Pa.style,K):l.createCurrentEdgeStyle();
ab=l.insertEdge(null,null,ab||"",Pa.invert?Xa:Sa,Pa.invert?Sa:Xa,mb);if(null!=Pa.labels)for(mb=0;mb<Pa.labels.length;mb++){var Va=Pa.labels[mb],gb=new mxCell(Va.label||mb,new mxGeometry(null!=Va.x?Va.x:0,null!=Va.y?Va.y:0,0,0),"resizable=0;html=1;");gb.vertex=!0;gb.connectable=!1;gb.geometry.relative=!0;null!=Va.placeholders&&(gb.value=l.replacePlaceholders("target"==Va.placeholders==!Pa.invert?Xa:Sa,gb.value,K));if(null!=Va.dx||null!=Va.dy)gb.geometry.offset=new mxPoint(null!=Va.dx?Va.dx:0,null!=
Va.dy?Va.dy:0);ab.insert(gb)}if(null!=Pa.data)for(var hb in Pa.data)l.setAttributeForCell(ab,hb,Pa.data[hb]);na.push(ab);mxUtils.remove(Pa.invert?Sa:Xa,qa)}}}});ra(ma,ma,va);if(null!=C[ma.id])for(ha=0;ha<C[ma.id].length;ha++)ra(ma,C[ma.id][ha],va)}}if(null!=ka)for(ja=0;ja<u.length;ja++)for(ma=u[ja],ha=0;ha<ka.length;ha++)l.setAttributeForCell(ma,mxUtils.trim(ka[ha]),null);if(0<B.length){var Aa=new mxParallelEdgeLayout(l);Aa.spacing=Q;Aa.checkOverlap=!0;var Ka=function(){0<Aa.spacing&&Aa.execute(l.getDefaultParent());
-for(var Sa=0;Sa<B.length;Sa++){var eb=l.getCellGeometry(B[Sa]);eb.x=Math.round(l.snap(eb.x));eb.y=Math.round(l.snap(eb.y));"auto"==E&&(eb.width=Math.round(l.snap(eb.width)));"auto"==P&&(eb.height=Math.round(l.snap(eb.height)))}};if("["==ba.charAt(0)){var Na=X;l.view.validate();this.executeLayouts(l.createLayouts(JSON.parse(ba)),function(){Ka();Na()});X=null}else if("circle"==ba){var La=new mxCircleLayout(l);La.disableEdgeStyle=!1;La.resetEdges=!1;var Za=La.isVertexIgnored;La.isVertexIgnored=function(Sa){return Za.apply(this,
-arguments)||0>mxUtils.indexOf(B,Sa)};this.executeLayout(function(){La.execute(l.getDefaultParent());Ka()},!0,X);X=null}else if("horizontaltree"==ba||"verticaltree"==ba||"auto"==ba&&na.length==2*B.length-1&&1==qa.length){l.view.validate();var Ra=new mxCompactTreeLayout(l,"horizontaltree"==ba);Ra.levelDistance=S;Ra.edgeRouting=!1;Ra.resetEdges=!1;Ra.sortEdges=!0;this.executeLayout(function(){Ra.execute(l.getDefaultParent(),0<qa.length?qa[0]:null)},!0,X);X=null}else if("horizontalflow"==ba||"verticalflow"==
-ba||"auto"==ba&&1==qa.length){l.view.validate();var Ua=new mxHierarchicalLayout(l,"horizontalflow"==ba?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);Ua.intraCellSpacing=S;Ua.parallelEdgeSpacing=Q;Ua.interRankCellSpacing=U;Ua.disableEdgeStyle=!1;this.executeLayout(function(){Ua.execute(l.getDefaultParent(),na);l.moveCells(na,aa,da)},!0,X);X=null}else if("orgchart"==ba){l.view.validate();var cb=new mxOrgChartLayout(l,2,U,S),fb=cb.isVertexIgnored;cb.isVertexIgnored=function(Sa){return fb.apply(this,
-arguments)||0>mxUtils.indexOf(B,Sa)};this.executeLayout(function(){cb.execute(l.getDefaultParent());Ka()},!0,X);X=null}else if("organic"==ba||"auto"==ba&&na.length>B.length){l.view.validate();var bb=new mxFastOrganicLayout(l);bb.forceConstant=3*S;bb.disableEdgeStyle=!1;bb.resetEdges=!1;var rb=bb.isVertexIgnored;bb.isVertexIgnored=function(Sa){return rb.apply(this,arguments)||0>mxUtils.indexOf(B,Sa)};this.executeLayout(function(){bb.execute(l.getDefaultParent());Ka()},!0,X);X=null}}this.hideDialog()}finally{l.model.endUpdate()}null!=
+for(var Sa=0;Sa<B.length;Sa++){var eb=l.getCellGeometry(B[Sa]);eb.x=Math.round(l.snap(eb.x));eb.y=Math.round(l.snap(eb.y));"auto"==F&&(eb.width=Math.round(l.snap(eb.width)));"auto"==P&&(eb.height=Math.round(l.snap(eb.height)))}};if("["==ba.charAt(0)){var Na=X;l.view.validate();this.executeLayouts(l.createLayouts(JSON.parse(ba)),function(){Ka();Na()});X=null}else if("circle"==ba){var La=new mxCircleLayout(l);La.disableEdgeStyle=!1;La.resetEdges=!1;var Za=La.isVertexIgnored;La.isVertexIgnored=function(Sa){return Za.apply(this,
+arguments)||0>mxUtils.indexOf(B,Sa)};this.executeLayout(function(){La.execute(l.getDefaultParent());Ka()},!0,X);X=null}else if("horizontaltree"==ba||"verticaltree"==ba||"auto"==ba&&na.length==2*B.length-1&&1==qa.length){l.view.validate();var Ra=new mxCompactTreeLayout(l,"horizontaltree"==ba);Ra.levelDistance=R;Ra.edgeRouting=!1;Ra.resetEdges=!1;Ra.sortEdges=!0;this.executeLayout(function(){Ra.execute(l.getDefaultParent(),0<qa.length?qa[0]:null)},!0,X);X=null}else if("horizontalflow"==ba||"verticalflow"==
+ba||"auto"==ba&&1==qa.length){l.view.validate();var Ua=new mxHierarchicalLayout(l,"horizontalflow"==ba?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);Ua.intraCellSpacing=R;Ua.parallelEdgeSpacing=Q;Ua.interRankCellSpacing=U;Ua.disableEdgeStyle=!1;this.executeLayout(function(){Ua.execute(l.getDefaultParent(),na);l.moveCells(na,aa,da)},!0,X);X=null}else if("orgchart"==ba){l.view.validate();var cb=new mxOrgChartLayout(l,2,U,R),fb=cb.isVertexIgnored;cb.isVertexIgnored=function(Sa){return fb.apply(this,
+arguments)||0>mxUtils.indexOf(B,Sa)};this.executeLayout(function(){cb.execute(l.getDefaultParent());Ka()},!0,X);X=null}else if("organic"==ba||"auto"==ba&&na.length>B.length){l.view.validate();var bb=new mxFastOrganicLayout(l);bb.forceConstant=3*R;bb.disableEdgeStyle=!1;bb.resetEdges=!1;var rb=bb.isVertexIgnored;bb.isVertexIgnored=function(Sa){return rb.apply(this,arguments)||0>mxUtils.indexOf(B,Sa)};this.executeLayout(function(){bb.execute(l.getDefaultParent());Ka()},!0,X);X=null}}this.hideDialog()}finally{l.model.endUpdate()}null!=
X&&X()}}catch(Sa){this.handleError(Sa)}};EditorUi.prototype.getSearch=function(c){var g="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=c&&0<window.location.search.length){var l="?",n;for(n in urlParams)0>mxUtils.indexOf(c,n)&&null!=urlParams[n]&&(g+=l+n+"="+urlParams[n],l="&")}else g=window.location.search;return g};EditorUi.prototype.getUrl=function(c){c=null!=c?c:window.location.pathname;var g=0<c.indexOf("?")?1:0;if("1"==urlParams.offline)c+=window.location.search;else{var l="tmp libs clibs state fileId code share notitle data url embed client create title splash".split(" "),
n;for(n in urlParams)0>mxUtils.indexOf(l,n)&&(c=0==g?c+"?":c+"&",null!=urlParams[n]&&(c+=n+"="+urlParams[n],g++))}return c};EditorUi.prototype.showLinkDialog=function(c,g,l,n,u){c=new LinkDialog(this,c,g,l,!0,n,u);this.showDialog(c.container,440,120,!0,!0);c.init()};EditorUi.prototype.getServiceCount=function(c){var g=1;null==this.drive&&"function"!==typeof window.DriveClient||g++;null==this.dropbox&&"function"!==typeof window.DropboxClient||g++;null==this.oneDrive&&"function"!==typeof window.OneDriveClient||
g++;null!=this.m365&&g++;null!=this.gitHub&&g++;null!=this.gitLab&&g++;c&&isLocalStorage&&"1"==urlParams.browser&&g++;return g};EditorUi.prototype.updateUi=function(){this.updateButtonContainer();this.updateActionStates();var c=this.getCurrentFile(),g=null!=c||"1"==urlParams.embed&&this.editor.graph.isEnabled();this.menus.get("viewPanels").setEnabled(g);this.menus.get("viewZoom").setEnabled(g);var l=("1"!=urlParams.embed||"1"==urlParams.embedRT||!this.editor.graph.isEnabled())&&(null==c||c.isRestricted());
@@ -13795,23 +13801,23 @@ l.image&&0<l.cells.length);this.actions.get("pageSetup").setEnabled(n);this.acti
this.actions.get("createShape").setEnabled(n);this.actions.get("createRevision").setEnabled(n);this.actions.get("moveToFolder").setEnabled(null!=g);this.actions.get("makeCopy").setEnabled(null!=g&&!g.isRestricted());this.actions.get("editDiagram").setEnabled(n&&(null==g||!g.isRestricted()));this.actions.get("publishLink").setEnabled(null!=g&&!g.isRestricted());this.actions.get("removeFormat").setEnabled(c.isEnabled()&&!c.isSelectionEmpty()&&!c.isEditing());this.actions.get("tags").setEnabled("none"!=
this.diagramContainer.style.display);this.actions.get("layers").setEnabled("none"!=this.diagramContainer.style.display);this.actions.get("outline").setEnabled("none"!=this.diagramContainer.style.display);this.actions.get("rename").setEnabled(null!=g&&g.isRenamable()||"1"==urlParams.embed);this.actions.get("close").setEnabled(null!=g);this.actions.get("properties").setEnabled(null!=g);this.menus.get("publish").setEnabled(null!=g&&!g.isRestricted());g=this.actions.get("findReplace");g.setEnabled("none"!=
this.diagramContainer.style.display);g.label=mxResources.get("find")+(c.isEnabled()?"/"+mxResources.get("replace"):"");c=c.view.getState(c.getSelectionCell());this.actions.get("editShape").setEnabled(n&&null!=c&&null!=c.shape&&null!=c.shape.stencil)};var D=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);D.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=
-!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=function(c,g,l,n,u,x,B,C){var F=c.editor.graph;if("xml"==l)c.hideDialog(),c.saveData(g,"xml",mxUtils.getXml(c.editor.getGraphXml()),"text/xml");else if("svg"==l)c.hideDialog(),c.saveData(g,"svg",mxUtils.getXml(F.getSvg(n,u,x)),"image/svg+xml");else{var K=c.getFileData(!0,null,null,null,null,!0),I=F.getGraphBounds(),R=Math.floor(I.width*u/F.view.scale),W=Math.floor(I.height*u/F.view.scale);if(K.length<=MAX_REQUEST_SIZE&&R*W<MAX_AREA)if(c.hideDialog(),
-"png"!=l&&"jpg"!=l&&"jpeg"!=l||!c.editor.isExportToCanvas()){var q={globalVars:F.getExportVariables()};C&&(q.grid={size:F.gridSize,steps:F.view.gridSteps,color:F.view.gridColor});c.saveRequest(g,l,function(z,L){return new mxXmlRequest(EXPORT_URL,"format="+l+"&base64="+(L||"0")+(null!=z?"&filename="+encodeURIComponent(z):"")+"&extras="+encodeURIComponent(JSON.stringify(q))+(0<B?"&dpi="+B:"")+"&bg="+(null!=n?n:"none")+"&w="+R+"&h="+W+"&border="+x+"&xml="+encodeURIComponent(K))})}else"png"==l?c.exportImage(u,
+!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=function(c,g,l,n,u,x,B,C){var E=c.editor.graph;if("xml"==l)c.hideDialog(),c.saveData(g,"xml",mxUtils.getXml(c.editor.getGraphXml()),"text/xml");else if("svg"==l)c.hideDialog(),c.saveData(g,"svg",mxUtils.getXml(E.getSvg(n,u,x)),"image/svg+xml");else{var K=c.getFileData(!0,null,null,null,null,!0),I=E.getGraphBounds(),T=Math.floor(I.width*u/E.view.scale),W=Math.floor(I.height*u/E.view.scale);if(K.length<=MAX_REQUEST_SIZE&&T*W<MAX_AREA)if(c.hideDialog(),
+"png"!=l&&"jpg"!=l&&"jpeg"!=l||!c.editor.isExportToCanvas()){var q={globalVars:E.getExportVariables()};C&&(q.grid={size:E.gridSize,steps:E.view.gridSteps,color:E.view.gridColor});c.saveRequest(g,l,function(z,L){return new mxXmlRequest(EXPORT_URL,"format="+l+"&base64="+(L||"0")+(null!=z?"&filename="+encodeURIComponent(z):"")+"&extras="+encodeURIComponent(JSON.stringify(q))+(0<B?"&dpi="+B:"")+"&bg="+(null!=n?n:"none")+"&w="+T+"&h="+W+"&border="+x+"&xml="+encodeURIComponent(K))})}else"png"==l?c.exportImage(u,
null==n||"none"==n,!0,!1,!1,x,!0,!1,null,C,B):c.exportImage(u,!1,!0,!1,!1,x,!0,!1,"jpeg",C);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);var c=this.editor.graph,g="";if(null!=this.pages)for(var l=0;l<this.pages.length;l++){var n=c;this.currentPage!=this.pages[l]&&(n=this.createTemporaryGraph(c.getStylesheet()),this.updatePageRoot(this.pages[l]),n.model.setRoot(this.pages[l].root));g+=this.pages[l].getName()+
" "+n.getIndexableText()+" "}else g=c.getIndexableText();this.editor.graph.setEnabled(!0);return g};EditorUi.prototype.showRemotelyStoredLibrary=function(c){var g={},l=document.createElement("div");l.style.whiteSpace="nowrap";var n=document.createElement("h3");mxUtils.write(n,mxUtils.htmlEntities(c));n.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";l.appendChild(n);var u=document.createElement("div");u.style.cssText="border:1px solid lightGray;overflow: auto;height:300px";
-u.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+IMAGE_PATH+'/spin.gif"></div>';var x={};try{var B=mxSettings.getCustomLibraries();for(c=0;c<B.length;c++){var C=B[c];if("R"==C.substring(0,1)){var F=JSON.parse(decodeURIComponent(C.substring(1)));x[F[0]]={id:F[0],title:F[1],downloadUrl:F[2]}}}}catch(K){}this.remoteInvoke("getCustomLibraries",null,null,function(K){u.innerText="";if(0==K.length)u.innerHTML='<div style="text-align:center;padding-top:20px;color:gray;">'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+
-"</div>";else for(var I=0;I<K.length;I++){var R=K[I];x[R.id]&&(g[R.id]=R);var W=this.addCheckbox(u,R.title,x[R.id]);(function(q,z){mxEvent.addListener(z,"change",function(){this.checked?g[q.id]=q:delete g[q.id]})})(R,W)}},mxUtils.bind(this,function(K){u.innerText="";var I=document.createElement("div");I.style.padding="8px";I.style.textAlign="center";mxUtils.write(I,mxResources.get("error")+": ");mxUtils.write(I,null!=K&&null!=K.message?K.message:mxResources.get("unknownError"));u.appendChild(I)}));
-l.appendChild(u);l=new CustomDialog(this,l,mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"));var K=0,I;for(I in g)null==x[I]&&(K++,mxUtils.bind(this,function(R){this.remoteInvoke("getFileContent",[R.downloadUrl],null,mxUtils.bind(this,function(W){K--;0==K&&this.spinner.stop();try{this.loadLibrary(new RemoteLibrary(this,W,R)),this.showSidebar()}catch(q){this.handleError(q,mxResources.get("errorLoadingFile"))}}),mxUtils.bind(this,function(){K--;0==K&&this.spinner.stop();
+u.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+IMAGE_PATH+'/spin.gif"></div>';var x={};try{var B=mxSettings.getCustomLibraries();for(c=0;c<B.length;c++){var C=B[c];if("R"==C.substring(0,1)){var E=JSON.parse(decodeURIComponent(C.substring(1)));x[E[0]]={id:E[0],title:E[1],downloadUrl:E[2]}}}}catch(K){}this.remoteInvoke("getCustomLibraries",null,null,function(K){u.innerText="";if(0==K.length)u.innerHTML='<div style="text-align:center;padding-top:20px;color:gray;">'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+
+"</div>";else for(var I=0;I<K.length;I++){var T=K[I];x[T.id]&&(g[T.id]=T);var W=this.addCheckbox(u,T.title,x[T.id]);(function(q,z){mxEvent.addListener(z,"change",function(){this.checked?g[q.id]=q:delete g[q.id]})})(T,W)}},mxUtils.bind(this,function(K){u.innerText="";var I=document.createElement("div");I.style.padding="8px";I.style.textAlign="center";mxUtils.write(I,mxResources.get("error")+": ");mxUtils.write(I,null!=K&&null!=K.message?K.message:mxResources.get("unknownError"));u.appendChild(I)}));
+l.appendChild(u);l=new CustomDialog(this,l,mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"));var K=0,I;for(I in g)null==x[I]&&(K++,mxUtils.bind(this,function(T){this.remoteInvoke("getFileContent",[T.downloadUrl],null,mxUtils.bind(this,function(W){K--;0==K&&this.spinner.stop();try{this.loadLibrary(new RemoteLibrary(this,W,T)),this.showSidebar()}catch(q){this.handleError(q,mxResources.get("errorLoadingFile"))}}),mxUtils.bind(this,function(){K--;0==K&&this.spinner.stop();
this.handleError(null,mxResources.get("errorLoadingFile"))}))})(g[I]));for(I in x)g[I]||this.closeLibrary(new RemoteLibrary(this,null,x[I]));0==K&&this.spinner.stop()}),null,null,"https://www.drawio.com/doc/faq/custom-libraries-confluence-cloud");this.showDialog(l.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(c){this.remoteWin=c;for(var g=0;g<this.remoteInvokeQueue.length;g++)c.postMessage(this.remoteInvokeQueue[g],"*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(c){var g=c.msgMarkers,l=this.remoteInvokeCallbacks[g.callbackId];if(null==l)throw Error("No callback for "+
-(null!=g?g.callbackId:"null"));c.error?l.error&&l.error(c.error.errResp):l.callback&&l.callback.apply(this,c.resp);this.remoteInvokeCallbacks[g.callbackId]=null};EditorUi.prototype.remoteInvoke=function(c,g,l,n,u){var x=!0,B=window.setTimeout(mxUtils.bind(this,function(){x=!1;u({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.timeout),C=mxUtils.bind(this,function(){window.clearTimeout(B);x&&n.apply(this,arguments)}),F=mxUtils.bind(this,function(){window.clearTimeout(B);x&&u.apply(this,
-arguments)});l=l||{};l.callbackId=this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:C,error:F});c=JSON.stringify({event:"remoteInvoke",funtionName:c,functionArgs:g,msgMarkers:l});null!=this.remoteWin?this.remoteWin.postMessage(c,"*"):this.remoteInvokeQueue.push(c)};EditorUi.prototype.handleRemoteInvoke=function(c,g){var l=mxUtils.bind(this,function(K,I){var R={event:"remoteInvokeResponse",msgMarkers:c.msgMarkers};null!=I?R.error={errResp:I}:null!=K&&(R.resp=K);this.remoteWin.postMessage(JSON.stringify(R),
-"*")});try{var n=c.funtionName,u=this.remoteInvokableFns[n];if(null!=u&&"function"===typeof this[n]){if(u.allowedDomains){for(var x=!1,B=0;B<u.allowedDomains.length;B++)if(g=="https://"+u.allowedDomains[B]){x=!0;break}if(!x){l(null,"Invalid Call: "+n+" is not allowed.");return}}var C=c.functionArgs;Array.isArray(C)||(C=[]);if(u.isAsync)C.push(function(){l(Array.prototype.slice.apply(arguments))}),C.push(function(K){l(null,K||"Unkown Error")}),this[n].apply(this,C);else{var F=this[n].apply(this,C);
-l([F])}}else l(null,"Invalid Call: "+n+" is not found.")}catch(K){l(null,"Invalid Call: An error occurred, "+K.message)}};EditorUi.prototype.openDatabase=function(c,g){if(null==this.database){var l=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB;if(null!=l)try{var n=l.open("database",2);n.onupgradeneeded=function(u){try{var x=n.result;1>u.oldVersion&&x.createObjectStore("objects",{keyPath:"key"});2>u.oldVersion&&(x.createObjectStore("files",{keyPath:"title"}),x.createObjectStore("filesInfo",
+(null!=g?g.callbackId:"null"));c.error?l.error&&l.error(c.error.errResp):l.callback&&l.callback.apply(this,c.resp);this.remoteInvokeCallbacks[g.callbackId]=null};EditorUi.prototype.remoteInvoke=function(c,g,l,n,u){var x=!0,B=window.setTimeout(mxUtils.bind(this,function(){x=!1;u({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.timeout),C=mxUtils.bind(this,function(){window.clearTimeout(B);x&&n.apply(this,arguments)}),E=mxUtils.bind(this,function(){window.clearTimeout(B);x&&u.apply(this,
+arguments)});l=l||{};l.callbackId=this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:C,error:E});c=JSON.stringify({event:"remoteInvoke",funtionName:c,functionArgs:g,msgMarkers:l});null!=this.remoteWin?this.remoteWin.postMessage(c,"*"):this.remoteInvokeQueue.push(c)};EditorUi.prototype.handleRemoteInvoke=function(c,g){var l=mxUtils.bind(this,function(K,I){var T={event:"remoteInvokeResponse",msgMarkers:c.msgMarkers};null!=I?T.error={errResp:I}:null!=K&&(T.resp=K);this.remoteWin.postMessage(JSON.stringify(T),
+"*")});try{var n=c.funtionName,u=this.remoteInvokableFns[n];if(null!=u&&"function"===typeof this[n]){if(u.allowedDomains){for(var x=!1,B=0;B<u.allowedDomains.length;B++)if(g=="https://"+u.allowedDomains[B]){x=!0;break}if(!x){l(null,"Invalid Call: "+n+" is not allowed.");return}}var C=c.functionArgs;Array.isArray(C)||(C=[]);if(u.isAsync)C.push(function(){l(Array.prototype.slice.apply(arguments))}),C.push(function(K){l(null,K||"Unkown Error")}),this[n].apply(this,C);else{var E=this[n].apply(this,C);
+l([E])}}else l(null,"Invalid Call: "+n+" is not found.")}catch(K){l(null,"Invalid Call: An error occurred, "+K.message)}};EditorUi.prototype.openDatabase=function(c,g){if(null==this.database){var l=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB;if(null!=l)try{var n=l.open("database",2);n.onupgradeneeded=function(u){try{var x=n.result;1>u.oldVersion&&x.createObjectStore("objects",{keyPath:"key"});2>u.oldVersion&&(x.createObjectStore("files",{keyPath:"title"}),x.createObjectStore("filesInfo",
{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(B){null!=g&&g(B)}};n.onsuccess=mxUtils.bind(this,function(u){try{var x=n.result;this.database=x;EditorUi.migrateStorageFiles&&(StorageFile.migrate(x),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)&&"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 F=!0,K=!1,I,R=0,W=mxUtils.bind(this,function(){K=!0;this.setDatabaseItem(".drawioMigrated3",!0);C.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),q=mxUtils.bind(this,function(){R++;z()}),z=mxUtils.bind(this,function(){try{if(R>=I.length)W();else{var N=I[R];StorageFile.getFileContent(this,
+C.style.display="none";C.setAttribute("src","https://www.draw.io?embed=1&proto=json&forceMigration="+urlParams.forceMigration);document.body.appendChild(C);var E=!0,K=!1,I,T=0,W=mxUtils.bind(this,function(){K=!0;this.setDatabaseItem(".drawioMigrated3",!0);C.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),q=mxUtils.bind(this,function(){T++;z()}),z=mxUtils.bind(this,function(){try{if(T>=I.length)W();else{var N=I[T];StorageFile.getFileContent(this,
N,mxUtils.bind(this,function(M){null==M||".scratchpad"==N&&M==this.emptyLibraryXml?C.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFile",functionArgs:[N]}),"*"):q()}),q)}}catch(M){console.log(M)}}),L=mxUtils.bind(this,function(N){try{this.setDatabaseItem(null,[{title:N.title,size:N.data.length,lastModified:Date.now(),type:N.isLib?"L":"F"},{title:N.title,data:N.data}],q,q,["filesInfo","files"])}catch(M){console.log(M)}});B=mxUtils.bind(this,function(N){try{if(N.source==
-C.contentWindow){var M={};try{M=JSON.parse(N.data)}catch(m){}"init"==M.event?(C.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),"*"),C.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFileNames"}),"*")):"remoteInvokeResponse"!=M.event||K||(F?null!=M.resp&&0<M.resp.length&&null!=M.resp[0]?(I=M.resp[0],F=!1,z()):W():null!=M.resp&&0<M.resp.length&&null!=M.resp[0]?L(M.resp[0]):q())}}catch(m){console.log(m)}});window.addEventListener("message",
+C.contentWindow){var M={};try{M=JSON.parse(N.data)}catch(m){}"init"==M.event?(C.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),"*"),C.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFileNames"}),"*")):"remoteInvokeResponse"!=M.event||K||(E?null!=M.resp&&0<M.resp.length&&null!=M.resp[0]?(I=M.resp[0],E=!1,z()):W():null!=M.resp&&0<M.resp.length&&null!=M.resp[0]?L(M.resp[0]):q())}}catch(m){console.log(m)}});window.addEventListener("message",
B)}})));c(x);x.onversionchange=function(){x.close()}}catch(B){null!=g?g(B):null!=window.console&&console.warn(B)}});n.onerror=g;n.onblocked=function(){}}catch(u){null!=g?g(u):null!=window.console&&console.error(u)}else null!=g&&g(Error("IndexedDB not supported"))}else c(this.database)};EditorUi.prototype.setDatabaseItem=function(c,g,l,n,u){this.openDatabase(mxUtils.bind(this,function(x){try{u=u||"objects";Array.isArray(u)||(u=[u],c=[c],g=[g]);var B=x.transaction(u,"readwrite");B.oncomplete=l;B.onerror=
n;for(x=0;x<u.length;x++)B.objectStore(u[x]).put(null!=c&&null!=c[x]?{key:c[x],data:g[x]}:g[x])}catch(C){null!=n&&n(C)}}),n)};EditorUi.prototype.removeDatabaseItem=function(c,g,l,n){this.openDatabase(mxUtils.bind(this,function(u){try{n=n||"objects";Array.isArray(n)||(n=[n],c=[c]);var x=u.transaction(n,"readwrite");x.oncomplete=g;x.onerror=l;for(u=0;u<n.length;u++)x.objectStore(n[u]).delete(c[u])}catch(B){null!=l&&l(B)}}),l)};EditorUi.prototype.getDatabaseItem=function(c,g,l,n){this.openDatabase(mxUtils.bind(this,
function(u){try{n=n||"objects";var x=u.transaction([n],"readonly").objectStore(n).get(c);x.onsuccess=function(){g(x.result)};x.onerror=l}catch(B){null!=l&&l(B)}}),l)};EditorUi.prototype.getDatabaseItems=function(c,g,l){this.openDatabase(mxUtils.bind(this,function(n){try{l=l||"objects";var u=n.transaction([l],"readonly").objectStore(l).openCursor(IDBKeyRange.lowerBound(0)),x=[];u.onsuccess=function(B){null==B.target.result?c(x):(x.push(B.target.result.value),B.target.result.continue())};u.onerror=
@@ -13820,30 +13826,30 @@ c?c.commentsRefreshNeeded():!0};EditorUi.prototype.commentsSaveNeeded=function()
function(){var c=this.getCurrentFile();return null!=c?c.canComment():!0};EditorUi.prototype.newComment=function(c,g){var l=this.getCurrentFile();return null!=l?l.newComment(c,g):new DrawioComment(this,null,c,Date.now(),Date.now(),!1,g)};EditorUi.prototype.isRevisionHistorySupported=function(){var c=this.getCurrentFile();return null!=c&&c.isRevisionHistorySupported()};EditorUi.prototype.getRevisions=function(c,g){var l=this.getCurrentFile();null!=l&&l.getRevisions?l.getRevisions(c,g):g({message:mxResources.get("unknownError")})};
EditorUi.prototype.isRevisionHistoryEnabled=function(){var c=this.getCurrentFile();return null!=c&&(c.constructor==DriveFile&&c.isEditable()||c.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.vsdxExportEnabled=function(){return"atlassian"==this.getServiceName()};EditorUi.prototype.addRemoteServiceSecurityCheck=function(c){c.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(c,g,l,n,u,x,B,C){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");
return this.editor.loadUrl(c,g,l,n,u,x,B,C)};EditorUi.prototype.loadFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(c)};EditorUi.prototype.createSvgDataUri=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(c)};EditorUi.prototype.embedCssFonts=function(c,g){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(c,g)};EditorUi.prototype.embedExtFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");
-return this.editor.embedExtFonts(c)};EditorUi.prototype.exportToCanvas=function(c,g,l,n,u,x,B,C,F,K,I,R,W,q,z,L){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(c,g,l,n,u,x,B,C,F,K,I,R,W,q,z,L)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(c,g,l,n){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");
+return this.editor.embedExtFonts(c)};EditorUi.prototype.exportToCanvas=function(c,g,l,n,u,x,B,C,E,K,I,T,W,q,z,L){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(c,g,l,n,u,x,B,C,E,K,I,T,W,q,z,L)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(c,g,l,n){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");
return this.editor.convertImages(c,g,l,n)};EditorUi.prototype.convertImageToDataUri=function(c,g){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(c,g)};EditorUi.prototype.base64Encode=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: base64Encode");return Editor.base64Encode(c)};EditorUi.prototype.updateCRC=function(c,g,l,n){EditorUi.logEvent("SHOULD NOT BE CALLED: updateCRC");return Editor.updateCRC(c,g,l,n)};EditorUi.prototype.crc32=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");
return Editor.crc32(c)};EditorUi.prototype.writeGraphModelToPng=function(c,g,l,n,u){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");return Editor.writeGraphModelToPng(c,g,l,n,u)};EditorUi.prototype.getLocalStorageFileNames=function(){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;for(var c=[],g=0;g<localStorage.length;g++){var l=localStorage.key(g),n=localStorage.getItem(l);if(0<l.length&&(".scratchpad"==l||"."!=l.charAt(0))&&0<n.length){var u=
"<mxfile "===n.substring(0,8)||"<?xml"===n.substring(0,5)||"\x3c!--[if IE]>"===n.substring(0,12);n="<mxlibrary>"===n.substring(0,11);(u||n)&&c.push(l)}}return c};EditorUi.prototype.getLocalStorageFile=function(c){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;var g=localStorage.getItem(c);return{title:c,data:g,isLib:"<mxlibrary>"===g.substring(0,11)}};EditorUi.prototype.setMigratedFlag=function(){localStorage.setItem(".localStorageMigrated","1")}})();
-var CommentsWindow=function(b,f,k,d,p,t){function v(){for(var z=B.getElementsByTagName("div"),L=0,N=0;N<z.length;N++)"none"!=z[N].style.display&&z[N].parentNode==B&&L++;C.style.display=0==L?"block":"none"}function A(z,L,N,M){function m(){L.removeChild(P);L.removeChild(O);E.style.display="block";y.style.display="block"}n={div:L,comment:z,saveCallback:N,deleteOnCancel:M};var y=L.querySelector(".geCommentTxt"),E=L.querySelector(".geCommentActionsList"),P=document.createElement("textarea");P.className=
-"geCommentEditTxtArea";P.style.minHeight=y.offsetHeight+"px";P.value=z.content;L.insertBefore(P,y);var O=document.createElement("div");O.className="geCommentEditBtns";var T=mxUtils.button(mxResources.get("cancel"),function(){M?(L.parentNode.removeChild(L),v()):m();n=null});T.className="geCommentEditBtn";O.appendChild(T);var V=mxUtils.button(mxResources.get("save"),function(){y.innerText="";z.content=P.value;mxUtils.write(y,z.content);m();N(z);n=null});mxEvent.addListener(P,"keydown",mxUtils.bind(this,
-function(Q){mxEvent.isConsumed(Q)||((mxEvent.isControlDown(Q)||mxClient.IS_MAC&&mxEvent.isMetaDown(Q))&&13==Q.keyCode?(V.click(),mxEvent.consume(Q)):27==Q.keyCode&&(T.click(),mxEvent.consume(Q)))}));V.focus();V.className="geCommentEditBtn gePrimaryBtn";O.appendChild(V);L.insertBefore(O,y);E.style.display="none";y.style.display="none";P.focus()}function J(z,L){L.innerText="";z=new Date(z.modifiedDate);var N=b.timeSince(z);null==N&&(N=mxResources.get("lessThanAMinute"));mxUtils.write(L,mxResources.get("timeAgo",
+var CommentsWindow=function(b,f,k,d,p,t){function v(){for(var z=B.getElementsByTagName("div"),L=0,N=0;N<z.length;N++)"none"!=z[N].style.display&&z[N].parentNode==B&&L++;C.style.display=0==L?"block":"none"}function A(z,L,N,M){function m(){L.removeChild(P);L.removeChild(O);F.style.display="block";y.style.display="block"}n={div:L,comment:z,saveCallback:N,deleteOnCancel:M};var y=L.querySelector(".geCommentTxt"),F=L.querySelector(".geCommentActionsList"),P=document.createElement("textarea");P.className=
+"geCommentEditTxtArea";P.style.minHeight=y.offsetHeight+"px";P.value=z.content;L.insertBefore(P,y);var O=document.createElement("div");O.className="geCommentEditBtns";var S=mxUtils.button(mxResources.get("cancel"),function(){M?(L.parentNode.removeChild(L),v()):m();n=null});S.className="geCommentEditBtn";O.appendChild(S);var V=mxUtils.button(mxResources.get("save"),function(){y.innerText="";z.content=P.value;mxUtils.write(y,z.content);m();N(z);n=null});mxEvent.addListener(P,"keydown",mxUtils.bind(this,
+function(Q){mxEvent.isConsumed(Q)||((mxEvent.isControlDown(Q)||mxClient.IS_MAC&&mxEvent.isMetaDown(Q))&&13==Q.keyCode?(V.click(),mxEvent.consume(Q)):27==Q.keyCode&&(S.click(),mxEvent.consume(Q)))}));V.focus();V.className="geCommentEditBtn gePrimaryBtn";O.appendChild(V);L.insertBefore(O,y);F.style.display="none";y.style.display="none";P.focus()}function J(z,L){L.innerText="";z=new Date(z.modifiedDate);var N=b.timeSince(z);null==N&&(N=mxResources.get("lessThanAMinute"));mxUtils.write(L,mxResources.get("timeAgo",
[N],"{1} ago"));L.setAttribute("title",z.toLocaleDateString()+" "+z.toLocaleTimeString())}function H(z){var L=document.createElement("img");L.className="geCommentBusyImg";L.src=IMAGE_PATH+"/spin.gif";z.appendChild(L);z.busyImg=L}function G(z){z.style.border="1px solid red";z.busyImg.parentNode==z&&z.removeChild(z.busyImg)}function D(z){z.style.border="";z.busyImg.parentNode==z&&z.removeChild(z.busyImg)}function c(z,L,N,M,m){function y(U,Y,X){var Z=document.createElement("li");Z.className="geCommentAction";
-var aa=document.createElement("a");aa.className="geCommentActionLnk";mxUtils.write(aa,U);Z.appendChild(aa);mxEvent.addListener(aa,"click",function(da){Y(da,z);da.preventDefault();mxEvent.consume(da)});S.appendChild(Z);X&&(Z.style.display="none")}function E(){function U(Z){Y.push(X);if(null!=Z.replies)for(var aa=0;aa<Z.replies.length;aa++)X=X.nextSibling,U(Z.replies[aa])}var Y=[],X=O;U(z);return{pdiv:X,replies:Y}}function P(U,Y,X,Z,aa){function da(){H(la);z.addReply(ia,function(ka){ia.id=ka;z.replies.push(ia);
-D(la);X&&X()},function(ka){fa();G(la);b.handleError(ka,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},Z,aa)}function fa(){A(ia,la,function(ka){da()},!0)}var ba=E().pdiv,ia=b.newComment(U,b.getCurrentUser());ia.pCommentId=z.id;null==z.replies&&(z.replies=[]);var la=c(ia,z.replies,ba,M+1);Y?fa():da()}if(m||!z.isResolved){C.style.display="none";var O=document.createElement("div");O.className="geCommentContainer";O.setAttribute("data-commentId",z.id);O.style.marginLeft=20*M+
-5+"px";z.isResolved&&(u.style.opacity="0.7");var T=document.createElement("div");T.className="geCommentHeader";var V=document.createElement("img");V.className="geCommentUserImg";V.src=null!=z.user&&null!=z.user.pictureUrl?z.user.pictureUrl:Editor.userImage;T.appendChild(V);V=document.createElement("div");V.className="geCommentHeaderTxt";T.appendChild(V);var Q=document.createElement("div");Q.className="geCommentUsername";mxUtils.write(Q,null!=z.user?z.user.displayName:mxResources.get("unknownUser"));
-V.appendChild(Q);Q=document.createElement("div");Q.className="geCommentDate";Q.setAttribute("data-commentId",z.id);J(z,Q);V.appendChild(Q);O.appendChild(T);T=document.createElement("div");T.className="geCommentTxt";mxUtils.write(T,z.content||"");O.appendChild(T);z.isLocked&&(O.style.opacity="0.5");T=document.createElement("div");T.className="geCommentActions";var S=document.createElement("ul");S.className="geCommentActionsList";T.appendChild(S);g||z.isLocked||0!=M&&!l||y(mxResources.get("reply"),
+var aa=document.createElement("a");aa.className="geCommentActionLnk";mxUtils.write(aa,U);Z.appendChild(aa);mxEvent.addListener(aa,"click",function(da){Y(da,z);da.preventDefault();mxEvent.consume(da)});R.appendChild(Z);X&&(Z.style.display="none")}function F(){function U(Z){Y.push(X);if(null!=Z.replies)for(var aa=0;aa<Z.replies.length;aa++)X=X.nextSibling,U(Z.replies[aa])}var Y=[],X=O;U(z);return{pdiv:X,replies:Y}}function P(U,Y,X,Z,aa){function da(){H(la);z.addReply(ia,function(ka){ia.id=ka;z.replies.push(ia);
+D(la);X&&X()},function(ka){fa();G(la);b.handleError(ka,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},Z,aa)}function fa(){A(ia,la,function(ka){da()},!0)}var ba=F().pdiv,ia=b.newComment(U,b.getCurrentUser());ia.pCommentId=z.id;null==z.replies&&(z.replies=[]);var la=c(ia,z.replies,ba,M+1);Y?fa():da()}if(m||!z.isResolved){C.style.display="none";var O=document.createElement("div");O.className="geCommentContainer";O.setAttribute("data-commentId",z.id);O.style.marginLeft=20*M+
+5+"px";z.isResolved&&(u.style.opacity="0.7");var S=document.createElement("div");S.className="geCommentHeader";var V=document.createElement("img");V.className="geCommentUserImg";V.src=null!=z.user&&null!=z.user.pictureUrl?z.user.pictureUrl:Editor.userImage;S.appendChild(V);V=document.createElement("div");V.className="geCommentHeaderTxt";S.appendChild(V);var Q=document.createElement("div");Q.className="geCommentUsername";mxUtils.write(Q,null!=z.user?z.user.displayName:mxResources.get("unknownUser"));
+V.appendChild(Q);Q=document.createElement("div");Q.className="geCommentDate";Q.setAttribute("data-commentId",z.id);J(z,Q);V.appendChild(Q);O.appendChild(S);S=document.createElement("div");S.className="geCommentTxt";mxUtils.write(S,z.content||"");O.appendChild(S);z.isLocked&&(O.style.opacity="0.5");S=document.createElement("div");S.className="geCommentActions";var R=document.createElement("ul");R.className="geCommentActionsList";S.appendChild(R);g||z.isLocked||0!=M&&!l||y(mxResources.get("reply"),
function(){P("",!0)},z.isResolved);V=b.getCurrentUser();null==V||null==z.user||V.id!=z.user.id||g||z.isLocked||(y(mxResources.get("edit"),function(){function U(){A(z,O,function(){H(O);z.editComment(z.content,function(){D(O)},function(Y){G(O);U();b.handleError(Y,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})}U()},z.isResolved),y(mxResources.get("delete"),function(){b.confirm(mxResources.get("areYouSure"),function(){H(O);z.deleteComment(function(U){if(!0===U){U=O.querySelector(".geCommentTxt");
-U.innerText="";mxUtils.write(U,mxResources.get("msgDeleted"));var Y=O.querySelectorAll(".geCommentAction");for(U=0;U<Y.length;U++)Y[U].parentNode.removeChild(Y[U]);D(O);O.style.opacity="0.5"}else{Y=E(z).replies;for(U=0;U<Y.length;U++)B.removeChild(Y[U]);for(U=0;U<L.length;U++)if(L[U]==z){L.splice(U,1);break}C.style.display=0==B.getElementsByTagName("div").length?"block":"none"}},function(U){G(O);b.handleError(U,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},z.isResolved));
-g||z.isLocked||0!=M||y(z.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(U){function Y(){var X=U.target;X.innerText="";z.isResolved=!z.isResolved;mxUtils.write(X,z.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var Z=z.isResolved?"none":"",aa=E(z).replies,da="light-dark("+(z.isResolved?"ghostWhite":"white")+", transparent)",fa=0;fa<aa.length;fa++){aa[fa].style.backgroundColor=da;for(var ba=aa[fa].querySelectorAll(".geCommentAction"),ia=0;ia<ba.length;ia++)ba[ia]!=
-X.parentNode&&(ba[ia].style.display=Z);R||(aa[fa].style.display="none")}v()}z.isResolved?P(mxResources.get("reOpened")+": ",!0,Y,!1,!0):P(mxResources.get("markedAsResolved"),!1,Y,!0)});O.appendChild(T);null!=N?B.insertBefore(O,N.nextSibling):B.appendChild(O);for(N=0;null!=z.replies&&N<z.replies.length;N++)T=z.replies[N],T.isResolved=z.isResolved,c(T,z.replies,null,M+1,m);null!=n&&(n.comment.id==z.id?(m=z.content,z.content=n.comment.content,A(z,O,n.saveCallback,n.deleteOnCancel),z.content=m):null==
+U.innerText="";mxUtils.write(U,mxResources.get("msgDeleted"));var Y=O.querySelectorAll(".geCommentAction");for(U=0;U<Y.length;U++)Y[U].parentNode.removeChild(Y[U]);D(O);O.style.opacity="0.5"}else{Y=F(z).replies;for(U=0;U<Y.length;U++)B.removeChild(Y[U]);for(U=0;U<L.length;U++)if(L[U]==z){L.splice(U,1);break}C.style.display=0==B.getElementsByTagName("div").length?"block":"none"}},function(U){G(O);b.handleError(U,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},z.isResolved));
+g||z.isLocked||0!=M||y(z.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(U){function Y(){var X=U.target;X.innerText="";z.isResolved=!z.isResolved;mxUtils.write(X,z.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var Z=z.isResolved?"none":"",aa=F(z).replies,da="light-dark("+(z.isResolved?"ghostWhite":"white")+", transparent)",fa=0;fa<aa.length;fa++){aa[fa].style.backgroundColor=da;for(var ba=aa[fa].querySelectorAll(".geCommentAction"),ia=0;ia<ba.length;ia++)ba[ia]!=
+X.parentNode&&(ba[ia].style.display=Z);T||(aa[fa].style.display="none")}v()}z.isResolved?P(mxResources.get("reOpened")+": ",!0,Y,!1,!0):P(mxResources.get("markedAsResolved"),!1,Y,!0)});O.appendChild(S);null!=N?B.insertBefore(O,N.nextSibling):B.appendChild(O);for(N=0;null!=z.replies&&N<z.replies.length;N++)S=z.replies[N],S.isResolved=z.isResolved,c(S,z.replies,null,M+1,m);null!=n&&(n.comment.id==z.id?(m=z.content,z.content=n.comment.content,A(z,O,n.saveCallback,n.deleteOnCancel),z.content=m):null==
n.comment.id&&n.comment.pCommentId==z.id&&(B.appendChild(n.div),A(n.comment,n.div,n.saveCallback,n.deleteOnCancel)));return O}}var g=!b.canComment(),l=b.canReplyToReplies(),n=null,u=document.createElement("div");u.className="geCommentsWin";var x=EditorUi.compactUi?"26px":"30px",B=document.createElement("div");B.className="geCommentsList";B.style.bottom=parseInt(x)+7+"px";u.appendChild(B);var C=document.createElement("span");C.style.cssText="display:none;padding-top:10px;text-align:center;";mxUtils.write(C,
-mxResources.get("noCommentsFound"));var F=document.createElement("div");F.className="geToolbarContainer geCommentsToolbar";F.style.height=x;F.style.padding="3px 4px 4px 4px";x=document.createElement("a");x.className="geButton";if(!g){var K=x.cloneNode();K.style.backgroundImage="url("+Editor.plusImage+")";K.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(K,"click",function(z){function L(){A(N,M,function(m){H(M);b.addComment(m,function(y){m.id=y;W.push(m);D(M)},function(y){G(M);
-L();b.handleError(y,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})},!0)}var N=b.newComment("",b.getCurrentUser()),M=c(N,W,null,0);L();z.preventDefault();mxEvent.consume(z)});F.appendChild(K)}var I=x.cloneNode();I.style.backgroundImage="url("+Editor.checkImage+")";I.setAttribute("title",mxResources.get("showResolved"));var R=!1;mxEvent.addListener(I,"click",function(z){(R=!R)?I.classList.add("geActiveItem"):I.classList.remove("geActiveItem");q();z.preventDefault();mxEvent.consume(z)});
-F.appendChild(I);b.commentsRefreshNeeded()&&(K=x.cloneNode(),K.style.backgroundImage="url("+Editor.refreshImage+")",K.setAttribute("title",mxResources.get("refresh")),mxEvent.addListener(K,"click",function(z){q();z.preventDefault();mxEvent.consume(z)}),F.appendChild(K));b.commentsSaveNeeded()&&(x=x.cloneNode(),x.innerHTML='<img src="'+IMAGE_PATH+'/save.png" style="width: 20px; padding: 2px;">',x.setAttribute("title",mxResources.get("save")),x.className="geButton geAdaptiveAsset",mxEvent.addListener(x,
-"click",function(z){t();z.preventDefault();mxEvent.consume(z)}),F.appendChild(x));u.appendChild(F);var W=[],q=mxUtils.bind(this,function(){this.hasError=!1;if(null!=n)try{n.div=n.div.cloneNode(!0);var z=n.div.querySelector(".geCommentEditTxtArea"),L=n.div.querySelector(".geCommentEditBtns");n.comment.content=z.value;z.parentNode.removeChild(z);L.parentNode.removeChild(L)}catch(N){b.handleError(N)}B.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH+'/spin.gif" valign="middle"> '+
-mxUtils.htmlEntities(mxResources.get("loading"))+"...</div>";l=b.canReplyToReplies();b.commentsSupported()?b.getComments(function(N){function M(m){if(null!=m){m.sort(function(E,P){return new Date(E.modifiedDate)-new Date(P.modifiedDate)});for(var y=0;y<m.length;y++)M(m[y].replies)}}N.sort(function(m,y){return new Date(m.modifiedDate)-new Date(y.modifiedDate)});B.innerText="";B.appendChild(C);C.style.display="block";W=N;for(N=0;N<W.length;N++)M(W[N].replies),c(W[N],W,null,0,R);null!=n&&null==n.comment.id&&
-null==n.comment.pCommentId&&(B.appendChild(n.div),A(n.comment,n.div,n.saveCallback,n.deleteOnCancel))},mxUtils.bind(this,function(N){B.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(N&&N.message?": "+N.message:""));this.hasError=!0})):B.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))});q();this.refreshComments=q;F=mxUtils.bind(this,function(){function z(y){var E=N[y.id];if(null!=E)for(J(y,E),E=0;null!=y.replies&&E<y.replies.length;E++)z(y.replies[E])}if(this.window.isVisible()){for(var L=
-B.querySelectorAll(".geCommentDate"),N={},M=0;M<L.length;M++){var m=L[M];N[m.getAttribute("data-commentId")]=m}for(M=0;M<W.length;M++)z(W[M])}});setInterval(F,6E4);this.refreshCommentsTime=F;this.window=new mxWindow(mxResources.get("comments"),u,f,k,d,p,!0,!0);this.window.minimumSize=new mxRectangle(0,0,260,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,
+mxResources.get("noCommentsFound"));var E=document.createElement("div");E.className="geToolbarContainer geCommentsToolbar";E.style.height=x;E.style.padding="3px 4px 4px 4px";x=document.createElement("a");x.className="geButton";if(!g){var K=x.cloneNode();K.style.backgroundImage="url("+Editor.plusImage+")";K.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(K,"click",function(z){function L(){A(N,M,function(m){H(M);b.addComment(m,function(y){m.id=y;W.push(m);D(M)},function(y){G(M);
+L();b.handleError(y,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})},!0)}var N=b.newComment("",b.getCurrentUser()),M=c(N,W,null,0);L();z.preventDefault();mxEvent.consume(z)});E.appendChild(K)}var I=x.cloneNode();I.style.backgroundImage="url("+Editor.checkImage+")";I.setAttribute("title",mxResources.get("showResolved"));var T=!1;mxEvent.addListener(I,"click",function(z){(T=!T)?I.classList.add("geActiveItem"):I.classList.remove("geActiveItem");q();z.preventDefault();mxEvent.consume(z)});
+E.appendChild(I);b.commentsRefreshNeeded()&&(K=x.cloneNode(),K.style.backgroundImage="url("+Editor.refreshImage+")",K.setAttribute("title",mxResources.get("refresh")),mxEvent.addListener(K,"click",function(z){q();z.preventDefault();mxEvent.consume(z)}),E.appendChild(K));b.commentsSaveNeeded()&&(x=x.cloneNode(),x.innerHTML='<img src="'+IMAGE_PATH+'/save.png" style="width: 20px; padding: 2px;">',x.setAttribute("title",mxResources.get("save")),x.className="geButton geAdaptiveAsset",mxEvent.addListener(x,
+"click",function(z){t();z.preventDefault();mxEvent.consume(z)}),E.appendChild(x));u.appendChild(E);var W=[],q=mxUtils.bind(this,function(){this.hasError=!1;if(null!=n)try{n.div=n.div.cloneNode(!0);var z=n.div.querySelector(".geCommentEditTxtArea"),L=n.div.querySelector(".geCommentEditBtns");n.comment.content=z.value;z.parentNode.removeChild(z);L.parentNode.removeChild(L)}catch(N){b.handleError(N)}B.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH+'/spin.gif" valign="middle"> '+
+mxUtils.htmlEntities(mxResources.get("loading"))+"...</div>";l=b.canReplyToReplies();b.commentsSupported()?b.getComments(function(N){function M(m){if(null!=m){m.sort(function(F,P){return new Date(F.modifiedDate)-new Date(P.modifiedDate)});for(var y=0;y<m.length;y++)M(m[y].replies)}}N.sort(function(m,y){return new Date(m.modifiedDate)-new Date(y.modifiedDate)});B.innerText="";B.appendChild(C);C.style.display="block";W=N;for(N=0;N<W.length;N++)M(W[N].replies),c(W[N],W,null,0,T);null!=n&&null==n.comment.id&&
+null==n.comment.pCommentId&&(B.appendChild(n.div),A(n.comment,n.div,n.saveCallback,n.deleteOnCancel))},mxUtils.bind(this,function(N){B.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(N&&N.message?": "+N.message:""));this.hasError=!0})):B.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))});q();this.refreshComments=q;E=mxUtils.bind(this,function(){function z(y){var F=N[y.id];if(null!=F)for(J(y,F),F=0;null!=y.replies&&F<y.replies.length;F++)z(y.replies[F])}if(this.window.isVisible()){for(var L=
+B.querySelectorAll(".geCommentDate"),N={},M=0;M<L.length;M++){var m=L[M];N[m.getAttribute("data-commentId")]=m}for(M=0;M<W.length;M++)z(W[M])}});setInterval(E,6E4);this.refreshCommentsTime=E;this.window=new mxWindow(mxResources.get("comments"),u,f,k,d,p,!0,!0);this.window.minimumSize=new mxRectangle(0,0,260,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()}));b.installResizeHandler(this,!0)},ConfirmDialog=function(b,f,k,d,p,t,v,A,J,H,G){var D=document.createElement("div");D.style.textAlign="center";G=null!=G?G:44;var c=document.createElement("div");c.style.padding="6px";c.style.overflow="auto";c.style.maxHeight=G+"px";c.style.lineHeight="1.2em";mxUtils.write(c,f);D.appendChild(c);null!=H&&(c=document.createElement("div"),c.style.padding="6px 0 6px 0",f=document.createElement("img"),f.setAttribute("src",H),c.appendChild(f),
D.appendChild(c));H=document.createElement("div");H.style.textAlign="center";H.style.whiteSpace="nowrap";var g=document.createElement("input");g.setAttribute("type","checkbox");t=mxUtils.button(t||mxResources.get("cancel"),function(){b.hideDialog();null!=d&&d(g.checked)});t.className="geBtn";null!=A&&(t.innerHTML=A+"<br>"+t.innerHTML,t.style.display="inline-block",t.style.paddingBottom="8px",t.style.paddingTop="8px",t.style.height="auto",t.style.width="40%");b.editor.cancelFirst&&H.appendChild(t);
var l=mxUtils.button(p||mxResources.get("ok"),function(){b.hideDialog();null!=k&&k(g.checked)});H.appendChild(l);null!=v?(l.innerHTML=v+"<br>"+l.innerHTML+"<br>",l.style.display="inline-block",l.style.paddingBottom="8px",l.style.paddingTop="8px",l.style.height="auto",l.className="geBtn",l.style.width="40%"):l.className="geBtn gePrimaryBtn";b.editor.cancelFirst||H.appendChild(t);D.appendChild(H);J?(H.style.marginTop="10px",c=document.createElement("p"),c.style.marginTop="20px",c.style.marginBottom=
@@ -13964,8 +13970,8 @@ DrawioFileSync.prototype.catchup=function(b,f,k,d,p){if(null!=b&&(null==d||!d())
document.hidden||"1"!=urlParams.test||"1"!=urlParams.checksum||null!=this.cleanupThread||this.testChecksum(),null!=f&&f(!0);else if(this.isValidState()){var A=this.file.getDescriptorChecksum(b),J=this.file.getDescriptorSecret(b);if(null!=A&&A==this.ui.getHashValueForPages(this.ui.pages))this.fastForward(b),null!=f&&f(!0);else if(Editor.enableRealtimeCache&&null!=J&&"1"!=urlParams.lockdown){var H=0,G=!1,D=mxUtils.bind(this,function(){if(null==d||!d())if(t!=this.file.getCurrentRevisionId())null!=f&&
f(!0);else if(this.isValidState()){this.scheduleCleanup(!0);var c=!0,g=window.setTimeout(mxUtils.bind(this,function(){c=!1;this.reload(f,k,d,null,p)}),this.ui.timeout);mxUtils.get(EditorUi.cacheUrl+"?id="+encodeURIComponent(this.channelId)+"&from="+encodeURIComponent(t)+"&to="+encodeURIComponent(v)+(null!=J?"&secret="+encodeURIComponent(J):""),mxUtils.bind(this,function(l){this.file.stats.bytesReceived+=l.getText().length;window.clearTimeout(g);if(c&&(null==d||!d()))if(t!=this.file.getCurrentRevisionId())null!=
f&&f(!0);else if(this.isValidState()){var n=null,u=[];EditorUi.debug("DrawioFileSync.doCatchup",[this],"request",[l],"status",l.getStatus(),"cacheReadyRetryCount",H,"maxCacheReadyRetries",this.maxCacheReadyRetries);if(200<=l.getStatus()&&299>=l.getStatus()&&0<l.getText().length)try{var x=JSON.parse(l.getText());if(null!=x&&0<x.length)for(var B=0;B<x.length;B++){var C=this.stringToObject(x[B]);if(C.v>DrawioFileSync.PROTOCOL){G=!0;u=[];break}else if(C.v===DrawioFileSync.PROTOCOL&&null!=C.d)n=C.d.checksum,
-u.push(C.d.patch);else{G=!0;u=[];break}}EditorUi.debug("DrawioFileSync.doCatchup",[this],"response",[x],"status",G?"failed":"ok","temp",u,"checksum",n)}catch(F){u=[],null!=window.console&&"1"==urlParams.test&&console.log(F)}try{0<u.length?(this.file.stats.cacheHits++,this.merge(u,n,b,f,k,d,p)):H<=this.maxCacheReadyRetries-1&&!G&&401!=l.getStatus()&&503!=l.getStatus()&&410!=l.getStatus()?(H++,this.file.stats.cacheMiss++,window.setTimeout(D,(H+1)*this.cacheReadyDelay)):(this.file.stats.cacheFail++,
-this.reload(f,k,d,null,p))}catch(F){null!=k&&k(F)}}else null!=k&&k()}),k)}else null!=k&&k()});window.setTimeout(D,this.cacheReadyDelay)}else this.reload(f,k,d,null,p)}else null!=k&&k()}};DrawioFileSync.prototype.reload=function(b,f,k,d,p){EditorUi.debug("DrawioFileSync.reload",[this],"immediate",p);this.file.updateFile(mxUtils.bind(this,function(){this.lastModified=this.file.getLastModifiedDate();this.updateStatus();this.start();null!=b&&b()}),mxUtils.bind(this,function(t){null!=f&&f(t)}),k,d,p)};
+u.push(C.d.patch);else{G=!0;u=[];break}}EditorUi.debug("DrawioFileSync.doCatchup",[this],"response",[x],"status",G?"failed":"ok","temp",u,"checksum",n)}catch(E){u=[],null!=window.console&&"1"==urlParams.test&&console.log(E)}try{0<u.length?(this.file.stats.cacheHits++,this.merge(u,n,b,f,k,d,p)):H<=this.maxCacheReadyRetries-1&&!G&&401!=l.getStatus()&&503!=l.getStatus()&&410!=l.getStatus()?(H++,this.file.stats.cacheMiss++,window.setTimeout(D,(H+1)*this.cacheReadyDelay)):(this.file.stats.cacheFail++,
+this.reload(f,k,d,null,p))}catch(E){null!=k&&k(E)}}else null!=k&&k()}),k)}else null!=k&&k()});window.setTimeout(D,this.cacheReadyDelay)}else this.reload(f,k,d,null,p)}else null!=k&&k()}};DrawioFileSync.prototype.reload=function(b,f,k,d,p){EditorUi.debug("DrawioFileSync.reload",[this],"immediate",p);this.file.updateFile(mxUtils.bind(this,function(){this.lastModified=this.file.getLastModifiedDate();this.updateStatus();this.start();null!=b&&b()}),mxUtils.bind(this,function(t){null!=f&&f(t)}),k,d,p)};
DrawioFileSync.prototype.descriptorChanged=function(b){this.lastModified=this.file.getLastModifiedDate();if(null!=this.channelId){var f=this.objectToString(this.createMessage({a:"desc",m:this.lastModified.getTime()})),k=this.file.getCurrentRevisionId(),d=this.objectToString({});mxUtils.post(EditorUi.cacheUrl,this.getIdParameters()+"&from="+encodeURIComponent(b)+"&to="+encodeURIComponent(k)+"&msg="+encodeURIComponent(f)+"&data="+encodeURIComponent(d));this.file.stats.bytesSent+=d.length;this.file.stats.msgSent++;
EditorUi.debug("DrawioFileSync.descriptorChanged",[this],"from",b,"to",k)}this.updateStatus()};DrawioFileSync.prototype.objectToString=function(b){b=Graph.compress(JSON.stringify(b));null!=this.key&&"undefined"!==typeof CryptoJS&&(b=CryptoJS.AES.encrypt(b,this.key).toString());return b};DrawioFileSync.prototype.stringToObject=function(b){null!=this.key&&"undefined"!==typeof CryptoJS&&(b=CryptoJS.AES.decrypt(b,this.key).toString(CryptoJS.enc.Utf8));return JSON.parse(Graph.decompress(b))};
DrawioFileSync.prototype.createToken=function(b,f,k){var d=!0,p=window.setTimeout(mxUtils.bind(this,function(){d=!1;k({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.ui.timeout);mxUtils.get(EditorUi.cacheUrl+"?id="+encodeURIComponent(this.channelId)+"&secret="+encodeURIComponent(b),mxUtils.bind(this,function(t){window.clearTimeout(p);d&&(200<=t.getStatus()&&299>=t.getStatus()?f(t.getText()):k({code:t.getStatus(),message:"Token Error "+t.getStatus()}))}),k)};
@@ -14025,8 +14031,8 @@ return new Uint8Array(D)};function AnimatedGifExport(b){this.editorUi=b}
AnimatedGifExport.prototype.doExport=function(b,f,k){var d=this.editorUi.editor.graph,p=this.editorUi.editor;b=b||{};var t=b.fps||15,v=b.scale||1,A=b.border||0,J=b.transparent||!1,H=null!=b.repeat?b.repeat:0,G=J?null:null!=b.background&&b.background!=mxConstants.NONE?b.background:"#ffffff",D=b.theme||null;try{var c=d.getSvg(G,v,A,!0,null,!0,null,null,null,d.shadowVisible,null,D),g=AnimatedGifExport.findAnimatedPaths(c);if(0==g.length)null!=k&&k(Error(mxResources.get("noAnimationsInDiagram")));else{var l=
b.duration||AnimatedGifExport.detectDuration(g)||1E3,n=Math.max(2,Math.round(t*l/1E3));AnimatedGifExport.removeAnimationCss(c,g);p.convertImages(c,mxUtils.bind(this,function(u){try{this.renderFrames(u,g,n,t,v,J,H,G,D,f,k)}catch(x){null!=k&&k(x)}}),null,p.createImageUrlConverter())}}catch(u){null!=k&&k(u)}};
AnimatedGifExport.prototype.renderFrames=function(b,f,k,d,p,t,v,A,J,H,G){var D=parseInt(b.getAttribute("width")),c=parseInt(b.getAttribute("height"));if(isNaN(D)||isNaN(c)||0>=D||0>=c)null!=G&&G(Error("Invalid SVG dimensions"));else{var g=this.editorUi.editor.getMaxCanvasScale(D,c,1);1>g&&(D=Math.ceil(D*g),c=Math.ceil(c*g));var l=new GifEncoder(D,c);l.setDelay(Math.round(1E3/d));l.setRepeat(v);l.setTransparent(t);var n=0,u=mxUtils.bind(this,function(){if(n>=k)try{var x=l.finish();H(x)}catch(I){null!=
-G&&G(I)}else{x=1<k?n/k:0;for(var B=0;B<f.length;B++){var C=f[B];if("alternate"===C.direction||"alternate-reverse"===C.direction){var F=.5>x?2*x:2*(1-x);F="alternate"===C.direction?C.dashSum*(1-F):C.dashSum*F}else F="reverse"===C.direction?C.dashSum*x:C.dashSum*(1-x);C.node.style.strokeDashoffset=F}x=Editor.createSvgDataUri(mxUtils.getXml(b));var K=new Image;K.onload=function(){try{var I=document.createElement("canvas");I.width=D;I.height=c;var R=I.getContext("2d");null!=A&&(R.fillStyle=A,R.fillRect(0,
-0,D,c));1>g&&R.scale(g,g);R.drawImage(K,0,0);l.addFrame(I);n++;setTimeout(u,0)}catch(W){null!=G&&G(W)}};K.onerror=function(){null!=G&&G(Error("Failed to render SVG frame"))};K.src=x}});u()}};
+G&&G(I)}else{x=1<k?n/k:0;for(var B=0;B<f.length;B++){var C=f[B];if("alternate"===C.direction||"alternate-reverse"===C.direction){var E=.5>x?2*x:2*(1-x);E="alternate"===C.direction?C.dashSum*(1-E):C.dashSum*E}else E="reverse"===C.direction?C.dashSum*x:C.dashSum*(1-x);C.node.style.strokeDashoffset=E}x=Editor.createSvgDataUri(mxUtils.getXml(b));var K=new Image;K.onload=function(){try{var I=document.createElement("canvas");I.width=D;I.height=c;var T=I.getContext("2d");null!=A&&(T.fillStyle=A,T.fillRect(0,
+0,D,c));1>g&&T.scale(g,g);T.drawImage(K,0,0);l.addFrame(I);n++;setTimeout(u,0)}catch(W){null!=G&&G(W)}};K.onerror=function(){null!=G&&G(Error("Failed to render SVG frame"))};K.src=x}});u()}};
AnimatedGifExport.findAnimatedPaths=function(b){var f=[];b=b.getElementsByTagName("path");for(var k=0;k<b.length;k++){var d=b[k],p=d.style.animation||d.getAttribute("style");if(null!=p&&0<=p.indexOf("ge-flow-animation")){var t=parseFloat(d.style.strokeDashoffset);isNaN(t)&&(t=parseFloat(d.getAttribute("stroke-dashoffset")));if(!isNaN(t)&&0<t){var v="normal";"string"===typeof p&&(0<=p.indexOf("alternate-reverse")?v="alternate-reverse":0<=p.indexOf("alternate")?v="alternate":0<=p.indexOf("reverse")&&
(v="reverse"));var A=500;p="string"===typeof p?p.match(/(\d+)ms/):null;null!=p&&(A=parseInt(p[1]));f.push({node:d,dashSum:t,duration:A,direction:v})}}}return f};AnimatedGifExport.detectDuration=function(b){for(var f=0,k=0;k<b.length;k++)b[k].duration>f&&(f=b[k].duration);return f};
AnimatedGifExport.removeAnimationCss=function(b,f){for(var k=0;k<f.length;k++)f[k].node.style.animation="",f[k].node.style.animationName="";k=b.getElementsByTagName("defs");if(0<k.length)for(b=k[0].getElementsByTagName("style"),k=b.length-1;0<=k;k--)null!=b[k].innerHTML&&0<=b[k].innerHTML.indexOf("ge-flow-animation")&&b[k].parentNode.removeChild(b[k])};DrawioClient=function(b,f){mxEventSource.call(this);this.ui=b;this.cookieName=f;this.token=this.getPersistentToken()};mxUtils.extend(DrawioClient,mxEventSource);DrawioClient.prototype.token=null;DrawioClient.prototype.user=null;DrawioClient.prototype.setUser=function(b){this.user=b;this.fireEvent(new mxEventObject("userChanged"))};DrawioClient.prototype.getUser=function(){return this.user};
@@ -14083,20 +14089,20 @@ d,p,!0,v):this.getXmlFile(A,d,p)}else p({message:mxResources.get("loggedOut")})}
mxUtils.bind(this,function(D){try{if(null==D)p({message:mxResources.get("invalidOrMissingFile")});else if(k.mimeType==this.libraryMimeType||v)k.mimeType!=this.libraryMimeType||v?d(new DriveLibrary(this.ui,D,k)):p({message:mxResources.get("notADiagramFile")});else{var c=!1;if(/\.png$/i.test(k.title)){var g=D.lastIndexOf(",");if(0<g){var l=this.ui.extractGraphModelFromPng(D);if(null!=l&&0<l.length)D=l;else try{l=D.substring(g+1);var n=window.atob?atob(l):Base64.decode(l),u=this.ui.editor.extractGraphModel(mxUtils.parseXml(n).documentElement,
!0);null==u||0<u.getElementsByTagName("parsererror").length?c=!0:D=n}catch(x){c=!0}}}else/\.pdf$/i.test(k.title)?(l=Editor.extractGraphModelFromPdf(D),null!=l&&0<l.length&&(c=!0,D=l)):"data:image/png;base64,PG14ZmlsZS"==D.substring(0,32)&&(n=D.substring(22),D=window.atob&&!mxClient.IS_SF?atob(n):Base64.decode(n));Graph.fileSupport&&(new XMLHttpRequest).upload&&this.ui.isRemoteFileFormat(D,J)?this.ui.parseFileData(D,mxUtils.bind(this,function(x){try{4==x.readyState&&(200<=x.status&&299>=x.status?d(new LocalFile(this.ui,
x.responseText,k.title+this.extension,!0)):null!=p&&p({message:mxResources.get("errorLoadingFile")}))}catch(B){if(null!=p)p(B);else throw B;}}),k.title):d(c?new LocalFile(this.ui,D,k.title,!0):new DriveFile(this.ui,D,k))}}catch(x){if(null!=p)p(x);else throw x;}}),mxUtils.bind(this,function(D,c){if(H<this.maxRetries&&null!=c&&403==c.getStatus())H++,window.setTimeout(G,2*H*this.coolOff*(1+.1*(Math.random()-.5)));else if(null!=p)p(D);else throw D;}),null!=k.mimeType&&"image/"==k.mimeType.substring(0,
-6)&&"image/svg"!=k.mimeType.substring(0,9)||/\.png$/i.test(k.title)||/\.jpe?g$/i.test(k.title)||/\.pdf$/i.test(k.title),null,null,null,A)});G()}}catch(D){if(null!=p)p(D);else throw D;}};DriveClient.prototype.saveFile=function(k,d,p,t,v,A,J,H,G){try{var D=0;k.saveLevel=1;var c=mxUtils.bind(this,function(R){if(null!=t)t(R);else throw R;}),g=mxUtils.bind(this,function(R){c(R);try{EditorUi.logError(R.message,null,null,null,R)}catch(W){}});if(k.isEditable()&&null!=k.desc){var l=Date.now(),n=k.desc.etag,
-u=k.desc.modifiedDate,x=k.desc.headRevisionId,B=Editor.useCanvasForExport&&/(\.png)$/i.test(k.getTitle());A=null!=A?A:!1;var C=null,F=!1,K={mimeType:k.desc.mimeType,title:k.getTitle()};if(this.isGoogleRealtimeMimeType(K.mimeType))K.mimeType=this.xmlMimeType,C=k.desc,F=d=!0;else if("application/octet-stream"==K.mimeType||"1"==urlParams["override-mime"]&&K.mimeType!=this.xmlMimeType)K.mimeType=this.xmlMimeType;var I=mxUtils.bind(this,function(R,W,q){try{k.saveLevel=3;var z=k.getData(),L=null,N=null;
-k.constructor==DriveFile&&(null==H&&(H=[]),null==k.getChannelId()&&H.push({key:"channel",value:Editor.guid(32)}),null==k.getChannelKey()&&H.push({key:"key",value:Editor.guid(32)}),G=null!=G?G:Editor.guid(32),H.push({key:"secret",value:G}),N=this.ui.getPagesForXml(z),L=this.ui.getHashValueForPages(N),H.push({key:"checksum",value:G+":"+L}));q||(null!=R||A||(R=this.placeholderThumbnail,W=this.placeholderMimeType),null!=R&&null!=W&&(K.thumbnail={image:R,mimeType:W}));var M=mxUtils.bind(this,function(E){try{if(k.saveDelay=
-Date.now()-l,k.saveLevel=null,p(E,z,N,L),null!=C){this.executeRequest({url:"/files/"+C.id+"/revisions/"+C.headRevisionId+"?supportsAllDrives=true"},mxUtils.bind(this,mxUtils.bind(this,function(P){P.pinned=!0;this.executeRequest({url:"/files/"+C.id+"/revisions/"+C.headRevisionId,method:"PUT",params:P})})));try{EditorUi.logEvent({category:k.convertedFrom+"-CONVERT-FILE-"+k.getHash(),action:"from_"+C.id+"."+C.headRevisionId+"-to_"+k.desc.id+"."+k.desc.headRevisionId,label:null!=this.user?"user_"+this.user.id:
-"nouser"+(null!=k.sync?"-client_"+k.sync.clientId:"nosync")})}catch(P){}}}catch(P){g(P)}}),m=mxUtils.bind(this,function(E,P){k.saveLevel=4;try{null!=H&&(K.properties=H);var O=J||k.constructor!=DriveFile||"manual"!=DrawioFile.SYNC&&"auto"!=DrawioFile.SYNC?null:k.getCurrentEtag(),T=mxUtils.bind(this,function(S){k.saveLevel=5;try{var U=k.desc.mimeType!=this.xmlMimeType&&k.desc.mimeType!=this.mimeType&&k.desc.mimeType!=this.libraryMimeType,Y=!0,X=null;try{X=window.setTimeout(mxUtils.bind(this,function(){Y=
-!1;c({code:App.ERROR_TIMEOUT})}),5*this.ui.timeout)}catch(Z){}this.executeRequest(this.createUploadRequest(k.getId(),K,E,d||S||U,P,S?null:O,F),mxUtils.bind(this,function(Z){window.clearTimeout(X);if(Y){var aa=null!=Z?(new Date(Z.modifiedDate)).getTime()-(new Date(u)).getTime():0;if(0>=aa||n==Z.etag||d&&x==Z.headRevisionId){var da=[];null==Z?da.push("Empty response"):(0>=aa&&da.push("Invalid modified time"),n==Z.etag&&da.push("Stale etag"),d&&x==Z.headRevisionId&&da.push("Stale revision"),O=Z.etag);
-0==da.length&&da.push(mxResources.get("unknownError"));aa=da.join(", ");if(D<this.staleEtagMaxRetries)D++,da=Math.round(Math.pow(2,D)*this.coolOff*(1+.1*(Math.random()-.5))),window.setTimeout(T,da),"1"==urlParams.test&&EditorUi.debug("DriveClient: Invalid response","retry",D,"delay",da,"rev",null!=Z?Z.headRevisionId:"null","errors",aa);else{k.saveLevel=12;c({message:mxResources.get("error")+": "+aa},Z);try{EditorUi.logError("Saving to Google Drive failed",null,"id-"+k.desc.id+"-from-"+x+"."+u+"-"+
+6)&&"image/svg"!=k.mimeType.substring(0,9)||/\.png$/i.test(k.title)||/\.jpe?g$/i.test(k.title)||/\.pdf$/i.test(k.title),null,null,null,A)});G()}}catch(D){if(null!=p)p(D);else throw D;}};DriveClient.prototype.saveFile=function(k,d,p,t,v,A,J,H,G){try{var D=0;k.saveLevel=1;var c=mxUtils.bind(this,function(T){if(null!=t)t(T);else throw T;}),g=mxUtils.bind(this,function(T){c(T);try{EditorUi.logError(T.message,null,null,null,T)}catch(W){}});if(k.isEditable()&&null!=k.desc){var l=Date.now(),n=k.desc.etag,
+u=k.desc.modifiedDate,x=k.desc.headRevisionId,B=Editor.useCanvasForExport&&/(\.png)$/i.test(k.getTitle());A=null!=A?A:!1;var C=null,E=!1,K={mimeType:k.desc.mimeType,title:k.getTitle()};if(this.isGoogleRealtimeMimeType(K.mimeType))K.mimeType=this.xmlMimeType,C=k.desc,E=d=!0;else if("application/octet-stream"==K.mimeType||"1"==urlParams["override-mime"]&&K.mimeType!=this.xmlMimeType)K.mimeType=this.xmlMimeType;var I=mxUtils.bind(this,function(T,W,q){try{k.saveLevel=3;var z=k.getData(),L=null,N=null;
+k.constructor==DriveFile&&(null==H&&(H=[]),null==k.getChannelId()&&H.push({key:"channel",value:Editor.guid(32)}),null==k.getChannelKey()&&H.push({key:"key",value:Editor.guid(32)}),G=null!=G?G:Editor.guid(32),H.push({key:"secret",value:G}),N=this.ui.getPagesForXml(z),L=this.ui.getHashValueForPages(N),H.push({key:"checksum",value:G+":"+L}));q||(null!=T||A||(T=this.placeholderThumbnail,W=this.placeholderMimeType),null!=T&&null!=W&&(K.thumbnail={image:T,mimeType:W}));var M=mxUtils.bind(this,function(F){try{if(k.saveDelay=
+Date.now()-l,k.saveLevel=null,p(F,z,N,L),null!=C){this.executeRequest({url:"/files/"+C.id+"/revisions/"+C.headRevisionId+"?supportsAllDrives=true"},mxUtils.bind(this,mxUtils.bind(this,function(P){P.pinned=!0;this.executeRequest({url:"/files/"+C.id+"/revisions/"+C.headRevisionId,method:"PUT",params:P})})));try{EditorUi.logEvent({category:k.convertedFrom+"-CONVERT-FILE-"+k.getHash(),action:"from_"+C.id+"."+C.headRevisionId+"-to_"+k.desc.id+"."+k.desc.headRevisionId,label:null!=this.user?"user_"+this.user.id:
+"nouser"+(null!=k.sync?"-client_"+k.sync.clientId:"nosync")})}catch(P){}}}catch(P){g(P)}}),m=mxUtils.bind(this,function(F,P){k.saveLevel=4;try{null!=H&&(K.properties=H);var O=J||k.constructor!=DriveFile||"manual"!=DrawioFile.SYNC&&"auto"!=DrawioFile.SYNC?null:k.getCurrentEtag(),S=mxUtils.bind(this,function(R){k.saveLevel=5;try{var U=k.desc.mimeType!=this.xmlMimeType&&k.desc.mimeType!=this.mimeType&&k.desc.mimeType!=this.libraryMimeType,Y=!0,X=null;try{X=window.setTimeout(mxUtils.bind(this,function(){Y=
+!1;c({code:App.ERROR_TIMEOUT})}),5*this.ui.timeout)}catch(Z){}this.executeRequest(this.createUploadRequest(k.getId(),K,F,d||R||U,P,R?null:O,E),mxUtils.bind(this,function(Z){window.clearTimeout(X);if(Y){var aa=null!=Z?(new Date(Z.modifiedDate)).getTime()-(new Date(u)).getTime():0;if(0>=aa||n==Z.etag||d&&x==Z.headRevisionId){var da=[];null==Z?da.push("Empty response"):(0>=aa&&da.push("Invalid modified time"),n==Z.etag&&da.push("Stale etag"),d&&x==Z.headRevisionId&&da.push("Stale revision"),O=Z.etag);
+0==da.length&&da.push(mxResources.get("unknownError"));aa=da.join(", ");if(D<this.staleEtagMaxRetries)D++,da=Math.round(Math.pow(2,D)*this.coolOff*(1+.1*(Math.random()-.5))),window.setTimeout(S,da),"1"==urlParams.test&&EditorUi.debug("DriveClient: Invalid response","retry",D,"delay",da,"rev",null!=Z?Z.headRevisionId:"null","errors",aa);else{k.saveLevel=12;c({message:mxResources.get("error")+": "+aa},Z);try{EditorUi.logError("Saving to Google Drive failed",null,"id-"+k.desc.id+"-from-"+x+"."+u+"-"+
this.ui.hashValue(n)+"-to-"+Z.headRevisionId+"."+Z.modifiedDate+"-"+this.ui.hashValue(Z.etag)+(0<aa.length?"-errors-"+aa:""),"user-"+(null!=this.user?this.user.id:"nouser")+(null!=k.sync?"-client_"+k.sync.clientId:"-nosync")+"-retries-"+D+"-delay-"+(Date.now()-l))}catch(fa){}}}else M(Z)}}),mxUtils.bind(this,function(Z){window.clearTimeout(X);if(Y){k.saveLevel=6;try{k.isConflict(Z)?this.executeRequest({url:"/files/"+k.getId()+"?supportsAllDrives=true&fields="+this.catchupFields},mxUtils.bind(this,
function(aa){k.saveLevel=7;try{if(null!=aa&&aa.etag==O)if(D<this.staleEtagMaxRetries){D++;var da=Math.round(2*D*this.coolOff*(1+.1*(Math.random()-.5)));window.setTimeout(V,da);"1"==urlParams.test&&EditorUi.debug("DriveClient: Stale Etag Detected","retry",D,"delay",da)}else{V(!0);try{EditorUi.logEvent({category:"STALE-ETAG-SAVE-FILE-"+k.getHash(),action:"rev_"+k.desc.headRevisionId+"-mod_"+k.desc.modifiedDate+"-size_"+k.getSize()+"-mime_"+k.desc.mimeType+(this.ui.editor.autosave?"":"-nosave")+(k.isAutosave()?
"":"-noauto")+(k.changeListenerEnabled?"":"-nolisten")+(k.inConflictState?"-conflict":"")+(k.invalidChecksum?"-invalid":""),label:(null!=this.user?"user_"+this.user.id:"nouser")+(null!=k.sync?"-client_"+k.sync.clientId:"-nosync")})}catch(fa){}}else"1"==urlParams.test&&aa.headRevisionId==x&&EditorUi.debug("DriveClient: Remote Etag Changed","local",O,"remote",aa.etag,"rev",k.desc.headRevisionId,"response",[aa],"file",[k]),c(Z,aa)}catch(fa){g(fa)}}),mxUtils.bind(this,function(){c(Z)})):c(Z)}catch(aa){g(aa)}}}))}catch(Z){g(Z)}}),
-V=mxUtils.bind(this,function(S){k.saveLevel=9;if(S||null==O)T(S);else{var U=!0,Y=null;try{Y=window.setTimeout(mxUtils.bind(this,function(){U=!1;c({code:App.ERROR_TIMEOUT})}),3*this.ui.timeout)}catch(X){}this.executeRequest({url:"/files/"+k.getId()+"?supportsAllDrives=true&fields="+this.catchupFields},mxUtils.bind(this,function(X){window.clearTimeout(Y);if(U){k.saveLevel=10;try{null!=X&&X.headRevisionId==x?("1"==urlParams.test&&O!=X.etag&&EditorUi.debug("DriveClient: Preflight Etag Update","from",
-O,"to",X.etag,"rev",k.desc.headRevisionId,"response",[X],"file",[k]),O=X.etag,T(S)):c({error:{code:412}},X)}catch(Z){g(Z)}}}),mxUtils.bind(this,function(X){window.clearTimeout(Y);U&&(k.saveLevel=11,c(X))}))}});if(B&&null==R){k.saveLevel=8;var Q=new Image;Q.onload=mxUtils.bind(this,function(){try{var S=this.thumbnailWidth/Q.width,U=document.createElement("canvas");U.width=this.thumbnailWidth;U.height=Math.floor(Q.height*S);U.getContext("2d").drawImage(Q,0,0,U.width,U.height);var Y=U.toDataURL();Y=
-Y.substring(Y.indexOf(",")+1).replace(/\+/g,"-").replace(/\//g,"_");K.thumbnail={image:Y,mimeType:"image/png"};V(!1)}catch(X){try{V(!1)}catch(Z){g(Z)}}});Q.src="data:image/png;base64,"+E}else V(!1)}catch(S){g(S)}});if(B){var y=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(E){m(E,!0)}),c,this.ui.getCurrentFile()!=k?z:null,y.scale,y.border)}else m(z,!1)}catch(E){g(E)}});try{k.saveLevel=2,(A||B||k.constructor==DriveLibrary||!this.enableThumbnails||"0"==
-urlParams.thumb||null!=K.mimeType&&"application/vnd.jgraph.mxfile"!=K.mimeType.substring(0,29)||!this.ui.getThumbnail(this.thumbnailWidth,mxUtils.bind(this,function(R){try{var W=null;try{null!=R&&(W=R.toDataURL("image/png")),null!=W&&(W=W.length>this.maxThumbnailSize?null:W.substring(W.indexOf(",")+1).replace(/\+/g,"-").replace(/\//g,"_"))}catch(q){W=null}I(W,"image/png")}catch(q){g(q)}}),20))&&I(null,null,k.constructor!=DriveLibrary)}catch(R){g(R)}}else this.ui.editor.graph.reset(),c({message:mxResources.get("readOnly")})}catch(R){g(R)}};
+V=mxUtils.bind(this,function(R){k.saveLevel=9;if(R||null==O)S(R);else{var U=!0,Y=null;try{Y=window.setTimeout(mxUtils.bind(this,function(){U=!1;c({code:App.ERROR_TIMEOUT})}),3*this.ui.timeout)}catch(X){}this.executeRequest({url:"/files/"+k.getId()+"?supportsAllDrives=true&fields="+this.catchupFields},mxUtils.bind(this,function(X){window.clearTimeout(Y);if(U){k.saveLevel=10;try{null!=X&&X.headRevisionId==x?("1"==urlParams.test&&O!=X.etag&&EditorUi.debug("DriveClient: Preflight Etag Update","from",
+O,"to",X.etag,"rev",k.desc.headRevisionId,"response",[X],"file",[k]),O=X.etag,S(R)):c({error:{code:412}},X)}catch(Z){g(Z)}}}),mxUtils.bind(this,function(X){window.clearTimeout(Y);U&&(k.saveLevel=11,c(X))}))}});if(B&&null==T){k.saveLevel=8;var Q=new Image;Q.onload=mxUtils.bind(this,function(){try{var R=this.thumbnailWidth/Q.width,U=document.createElement("canvas");U.width=this.thumbnailWidth;U.height=Math.floor(Q.height*R);U.getContext("2d").drawImage(Q,0,0,U.width,U.height);var Y=U.toDataURL();Y=
+Y.substring(Y.indexOf(",")+1).replace(/\+/g,"-").replace(/\//g,"_");K.thumbnail={image:Y,mimeType:"image/png"};V(!1)}catch(X){try{V(!1)}catch(Z){g(Z)}}});Q.src="data:image/png;base64,"+F}else V(!1)}catch(R){g(R)}});if(B){var y=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(F){m(F,!0)}),c,this.ui.getCurrentFile()!=k?z:null,y.scale,y.border)}else m(z,!1)}catch(F){g(F)}});try{k.saveLevel=2,(A||B||k.constructor==DriveLibrary||!this.enableThumbnails||"0"==
+urlParams.thumb||null!=K.mimeType&&"application/vnd.jgraph.mxfile"!=K.mimeType.substring(0,29)||!this.ui.getThumbnail(this.thumbnailWidth,mxUtils.bind(this,function(T){try{var W=null;try{null!=T&&(W=T.toDataURL("image/png")),null!=W&&(W=W.length>this.maxThumbnailSize?null:W.substring(W.indexOf(",")+1).replace(/\+/g,"-").replace(/\//g,"_"))}catch(q){W=null}I(W,"image/png")}catch(q){g(q)}}),20))&&I(null,null,k.constructor!=DriveLibrary)}catch(T){g(T)}}else this.ui.editor.graph.reset(),c({message:mxResources.get("readOnly")})}catch(T){g(T)}};
DriveClient.prototype.insertFile=function(k,d,p,t,v,A,J){A=null!=A?A:this.xmlMimeType;k={mimeType:A,title:k};null!=p&&(k.parents=[{kind:"drive#fileLink",id:p}]);this.executeRequest(this.createUploadRequest(null,k,d,!1,J),mxUtils.bind(this,function(H){A==this.libraryMimeType?t(new DriveLibrary(this.ui,d,H)):0==H?null!=v&&v({message:mxResources.get("errorSavingFile")}):t(new DriveFile(this.ui,d,H))}),v)};DriveClient.prototype.createUploadRequest=function(k,d,p,t,v,A,J){v=null!=v?v:!1;var H={"Content-Type":'multipart/mixed; boundary="-------314159265358979323846"'};
null!=A&&(H["If-Match"]=A);k={fullUrl:"https://content.googleapis.com/upload/drive/v2/files"+(null!=k?"/"+k:"")+"?uploadType=multipart&supportsAllDrives=true&enforceSingleParent=true&fields="+this.allFields,method:null!=k?"PUT":"POST",headers:H,params:"\r\n---------314159265358979323846\r\nContent-Type: application/json\r\n\r\n"+JSON.stringify(d)+"\r\n---------314159265358979323846\r\nContent-Type: application/octect-stream\r\nContent-Transfer-Encoding: base64\r\n\r\n"+(null!=p?v?p:window.btoa?Graph.base64EncodeUnicode(p):
Base64.encode(p):"")+"\r\n---------314159265358979323846--"};t||(k.fullUrl+="&newRevision=false");J&&(k.fullUrl+="&pinned=true");return k};DriveClient.prototype.createLinkPicker=function(){var k=f.linkPicker;if(null==k||f.linkPickerToken!=b){f.linkPickerToken=b;k=(new google.picker.DocsView(google.picker.ViewId.FOLDERS)).setParent("root").setIncludeFolders(!0).setSelectFolderEnabled(!0);var d=(new google.picker.DocsView).setIncludeFolders(!0).setSelectFolderEnabled(!0),p=(new google.picker.DocsView).setIncludeFolders(!0).setEnableDrives(!0).setSelectFolderEnabled(!0);
@@ -14169,33 +14175,33 @@ D||""===D)return!1;for(var c=0;c<this.invalidFilenameRegExs.length;c++)if(this.i
this.tokenRefreshThread&&(window.clearTimeout(this.tokenRefreshThread),this.tokenRefreshThread=null);0<D&&(this.tokenRefreshInterval=1E3*D,this.tokenRefreshThread=window.setTimeout(mxUtils.bind(this,function(){this.authenticate(this.emptyFn,this.emptyFn,!0,this.sharepointMode)}),900*D))};OneDriveClient.prototype.authenticate=function(D,c,g,l,n){this.isExtAuth?(window.oneDriveAuth?window.oneDriveAuth:window.parent.oneDriveAuth)(mxUtils.bind(this,function(u){this.updateAuthInfo(u,!0,null==this.endpointHint,
D,c)}),c,null!=window.urlParams&&"1"==urlParams.odAuthCancellable):(new mxXmlRequest(this.redirectUri+"?getState=1",null,"GET")).send(mxUtils.bind(this,function(u){200<=u.getStatus()&&299>=u.getStatus()?this.authenticateStep2(u.getText(),D,c,g,l,n):null!=c&&c({message:mxResources.get("error")+" "+u.getStatus()})}),c)};OneDriveClient.prototype.updateAuthInfo=function(D,c,g,l,n,u){g&&this.setUser(null);u?k=D.access_token:(b=D.access_token,this.sharepointMode&&(f=D.access_token));delete D.access_token;
D.expiresOn=Date.now()+1E3*D.expires_in;this.tokenExpiresOn=D.expiresOn;D.remember=c;this.setPersistentToken(JSON.stringify(D),!c);this.resetTokenRefresh(D.expires_in);g?this.getAccountTypeAndEndpoint(mxUtils.bind(this,function(){l()}),n):l()};OneDriveClient.prototype.authenticateStep2=function(D,c,g,l,n,u){if(null==window.onOneDriveCallback){var x=mxUtils.bind(this,function(){var B=!0,C=JSON.parse(this.getPersistentToken(!0));null!=C?(new mxXmlRequest(this.redirectUri+"?state="+encodeURIComponent("cId="+
-this.clientId+"&domain="+window.location.host+"&token="+D)+"&scopes="+encodeURIComponent(n?this.scopesSP:this.scopes),null,"GET")).send(mxUtils.bind(this,function(F){if(200<=F.getStatus()&&299>=F.getStatus())try{this.updateAuthInfo(JSON.parse(F.getText()),C.remember,u,mxUtils.bind(this,function(){n?this.authenticate(c,g,l,!1):c()}),g,n)}catch(K){g({message:mxResources.get("authFailed"),retry:x})}else this.clearPersistentToken(),this.setUser(null),b=null,this.sharepointMode&&(f=null),401!=F.getStatus()&&
-400!=F.getStatus()||l?g({message:mxResources.get("accessDenied"),retry:x}):x()}),g):this.ui.showAuthDialog(this,!0,mxUtils.bind(this,function(F,K){var I=this.authUrl+"/oauth2/v2.0/authorize?client_id="+this.clientId+"&response_type=code&prompt=select_account&redirect_uri="+encodeURIComponent(this.redirectUri)+"&scope="+encodeURIComponent((n?this.scopesSP:this.scopes)+(F?" offline_access":""))+"&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+D);I=window.open(I,
-"odauth",["width=525,height=525","top="+(window.screenY+Math.max(window.outerHeight-525,0)/2),"left="+(window.screenX+Math.max(window.outerWidth-525,0)/2),"status=no,resizable=yes,toolbar=no,menubar=no,scrollbars=yes"].join());null!=I&&(window.onOneDriveCallback=mxUtils.bind(this,function(R,W){if(B){window.onOneDriveCallback=null;B=!1;try{null==R?g({message:mxResources.get("accessDenied"),retry:x}):(null!=K&&K(),this.updateAuthInfo(R,F,!n,mxUtils.bind(this,function(){n?this.authenticate(c,g,l,!1,
+this.clientId+"&domain="+window.location.host+"&token="+D)+"&scopes="+encodeURIComponent(n?this.scopesSP:this.scopes),null,"GET")).send(mxUtils.bind(this,function(E){if(200<=E.getStatus()&&299>=E.getStatus())try{this.updateAuthInfo(JSON.parse(E.getText()),C.remember,u,mxUtils.bind(this,function(){n?this.authenticate(c,g,l,!1):c()}),g,n)}catch(K){g({message:mxResources.get("authFailed"),retry:x})}else this.clearPersistentToken(),this.setUser(null),b=null,this.sharepointMode&&(f=null),401!=E.getStatus()&&
+400!=E.getStatus()||l?g({message:mxResources.get("accessDenied"),retry:x}):x()}),g):this.ui.showAuthDialog(this,!0,mxUtils.bind(this,function(E,K){var I=this.authUrl+"/oauth2/v2.0/authorize?client_id="+this.clientId+"&response_type=code&prompt=select_account&redirect_uri="+encodeURIComponent(this.redirectUri)+"&scope="+encodeURIComponent((n?this.scopesSP:this.scopes)+(E?" offline_access":""))+"&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+D);I=window.open(I,
+"odauth",["width=525,height=525","top="+(window.screenY+Math.max(window.outerHeight-525,0)/2),"left="+(window.screenX+Math.max(window.outerWidth-525,0)/2),"status=no,resizable=yes,toolbar=no,menubar=no,scrollbars=yes"].join());null!=I&&(window.onOneDriveCallback=mxUtils.bind(this,function(T,W){if(B){window.onOneDriveCallback=null;B=!1;try{null==T?g({message:mxResources.get("accessDenied"),retry:x}):(null!=K&&K(),this.updateAuthInfo(T,E,!n,mxUtils.bind(this,function(){n?this.authenticate(c,g,l,!1,
!0):c()}),g,n))}catch(q){g(q)}finally{null!=W&&W.close()}}else null!=W&&W.close()}),I.focus())}),mxUtils.bind(this,function(){B&&(window.onOneDriveCallback=null,B=!1,g({message:mxResources.get("accessDenied"),retry:x}))}))});x()}else g({code:App.ERROR_BUSY})};OneDriveClient.prototype.getAccountTypeAndEndpoint=function(D,c){this.get(this.baseUrl+"/me/drive/root",mxUtils.bind(this,function(g){try{if(200<=g.getStatus()&&299>=g.getStatus()){var l=JSON.parse(g.getText());0<l.webUrl.indexOf(".sharepoint.com")?
this.endpointHint=l.webUrl.replace("/Documents","/_layouts/15/onedrive.aspx"):this.endpointHint=this.defEndpointHint;var n=JSON.parse(this.getPersistentToken(!0));null!=n&&(n.endpointHint=this.endpointHint,this.setPersistentToken(JSON.stringify(n),!n.remember));D();return}}catch(u){}c({message:mxResources.get("unknownError")+" (Code: "+g.getStatus()+")"})}),c)};OneDriveClient.prototype.executeRequest=function(D,c,g){this.sharepointMode&&(b=f);var l=mxUtils.bind(this,function(n){var u=!0,x=window.setTimeout(mxUtils.bind(this,
function(){u=!1;g({code:App.ERROR_TIMEOUT,retry:l})}),this.ui.timeout);this.get(D,mxUtils.bind(this,function(B){window.clearTimeout(x);u&&(200<=B.getStatus()&&299>=B.getStatus()||404==B.getStatus()?(null==this.user&&this.updateUser(this.emptyFn,this.emptyFn,!0),c(B)):n||401!==B.getStatus()&&400!==B.getStatus()?g(this.parseRequestText(B)):this.authenticate(function(){l(!0)},g,n,this.sharepointMode))}),mxUtils.bind(this,function(B){window.clearTimeout(x);u&&g(B)}))});null==b||6E4>this.tokenExpiresOn-
Date.now()?this.authenticate(function(){l(!0)},g,null,this.sharepointMode):l(!1)};OneDriveClient.prototype.checkToken=function(D,c){this.sharepointMode&&(b=f);null==b||null==this.tokenRefreshThread||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(D,null!=c?c:this.emptyFn,null,this.sharepointMode):D()};OneDriveClient.prototype.getItemRef=function(D){var c=D.split("/");return 1<c.length?{driveId:c[0],id:c[1]}:{id:D}};OneDriveClient.prototype.getItemURL=function(D,c){var g=D.split("/");return 1<
g.length?(D=g[1],(c?"":this.baseUrl)+"/drives/"+g[0]+("root"==D?"/root":"/items/"+D)):(c?"":this.baseUrl)+"/me/drive/items/"+D};OneDriveClient.prototype.getLibrary=function(D,c,g){this.getFile(D,c,g,!1,!0)};OneDriveClient.prototype.removeExtraHtmlContent=function(D){var c=D.lastIndexOf('<html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"><meta name="Robots" ');0<c&&(D=D.substring(0,c));return D};OneDriveClient.prototype.getFile=function(D,c,g,l,n){n=null!=n?n:!1;this.executeRequest(this.getItemURL(D),
-mxUtils.bind(this,function(u){if(200<=u.getStatus()&&299>=u.getStatus()){var x=JSON.parse(u.getText()),B=/\.png$/i.test(x.name);if(/\.v(dx|sdx?)$/i.test(x.name)||/\.gliffy$/i.test(x.name)||/\.pdf$/i.test(x.name)||!Editor.useCanvasForExport&&B)this.ui.convertFile(x["@microsoft.graph.downloadUrl"],x.name,null!=x.file?x.file.mimeType:null,this.extension,c,g);else{var C=!0,F=window.setTimeout(mxUtils.bind(this,function(){C=!1;g({code:App.ERROR_TIMEOUT})}),this.ui.timeout);this.ui.editor.loadUrl(x["@microsoft.graph.downloadUrl"],
-mxUtils.bind(this,function(K){try{if(window.clearTimeout(F),C){/\.html$/i.test(x.name)&&(K=this.removeExtraHtmlContent(K));var I=null;if(0<(B?K.lastIndexOf(","):-1)){var R=this.ui.extractGraphModelFromPng(K);null!=R&&0<R.length?K=R:I=new LocalFile(this.ui,K,x.name,!0)}else if("data:image/png;base64,PG14ZmlsZS"==K.substring(0,32)){var W=K.substring(22);K=window.atob&&!mxClient.IS_SF?atob(W):Base64.decode(W)}Graph.fileSupport&&(new XMLHttpRequest).upload&&this.ui.isRemoteFileFormat(K,x["@microsoft.graph.downloadUrl"])?
-this.ui.parseFileData(K,mxUtils.bind(this,function(q){try{4==q.readyState&&(200<=q.status&&299>=q.status?c(new LocalFile(this.ui,q.responseText,x.name+this.extension,!0)):null!=g&&g({message:mxResources.get("errorLoadingFile")}))}catch(z){if(null!=g)g(z);else throw z;}}),x.name):null!=I?c(I):n?c(new OneDriveLibrary(this.ui,K,x,this.sharepointMode)):c(new OneDriveFile(this.ui,K,x,this.sharepointMode))}}catch(q){if(null!=g)g(q);else throw q;}}),mxUtils.bind(this,function(K){window.clearTimeout(F);C&&
+mxUtils.bind(this,function(u){if(200<=u.getStatus()&&299>=u.getStatus()){var x=JSON.parse(u.getText()),B=/\.png$/i.test(x.name);if(/\.v(dx|sdx?)$/i.test(x.name)||/\.gliffy$/i.test(x.name)||/\.pdf$/i.test(x.name)||!Editor.useCanvasForExport&&B)this.ui.convertFile(x["@microsoft.graph.downloadUrl"],x.name,null!=x.file?x.file.mimeType:null,this.extension,c,g);else{var C=!0,E=window.setTimeout(mxUtils.bind(this,function(){C=!1;g({code:App.ERROR_TIMEOUT})}),this.ui.timeout);this.ui.editor.loadUrl(x["@microsoft.graph.downloadUrl"],
+mxUtils.bind(this,function(K){try{if(window.clearTimeout(E),C){/\.html$/i.test(x.name)&&(K=this.removeExtraHtmlContent(K));var I=null;if(0<(B?K.lastIndexOf(","):-1)){var T=this.ui.extractGraphModelFromPng(K);null!=T&&0<T.length?K=T:I=new LocalFile(this.ui,K,x.name,!0)}else if("data:image/png;base64,PG14ZmlsZS"==K.substring(0,32)){var W=K.substring(22);K=window.atob&&!mxClient.IS_SF?atob(W):Base64.decode(W)}Graph.fileSupport&&(new XMLHttpRequest).upload&&this.ui.isRemoteFileFormat(K,x["@microsoft.graph.downloadUrl"])?
+this.ui.parseFileData(K,mxUtils.bind(this,function(q){try{4==q.readyState&&(200<=q.status&&299>=q.status?c(new LocalFile(this.ui,q.responseText,x.name+this.extension,!0)):null!=g&&g({message:mxResources.get("errorLoadingFile")}))}catch(z){if(null!=g)g(z);else throw z;}}),x.name):null!=I?c(I):n?c(new OneDriveLibrary(this.ui,K,x,this.sharepointMode)):c(new OneDriveFile(this.ui,K,x,this.sharepointMode))}}catch(q){if(null!=g)g(q);else throw q;}}),mxUtils.bind(this,function(K){window.clearTimeout(E);C&&
g(this.parseRequestText(K))}),B||null!=x.file&&null!=x.file.mimeType&&("image/"==x.file.mimeType.substring(0,6)&&"image/svg"!=x.file.mimeType.substring(0,9)||"application/pdf"==x.file.mimeType))}}else this.isExtAuth?g({message:mxResources.get("fileNotFoundOrDenied"),ownerEmail:null!=window.urlParams?urlParams.ownerEml:null}):g(this.parseRequestText(u))}),function(u){null!=g&&(null!=u&&null!=u.error&&"ObjectHandle is Invalid"===u.error.message&&(u.error.message=mxResources.get("fileNotFoundOrDenied")),
g(u))})};OneDriveClient.prototype.renameFile=function(D,c,g,l){null!=D&&null!=c&&(this.isValidFilename(c)?this.checkExists(D.getParentId(),c,!1,mxUtils.bind(this,function(n){n?this.writeFile(this.getItemURL(D.getId()),JSON.stringify({name:c}),"PATCH","application/json",g,l):l()})):l({message:this.invalidFilenameRegExs[0].test(c)?mxResources.get("oneDriveCharsNotAllowed"):mxResources.get("oneDriveInvalidDeviceName")}))};OneDriveClient.prototype.moveFile=function(D,c,g,l){c=this.getItemRef(c);var n=
this.getItemRef(D);c.driveId!=n.driveId?l({message:mxResources.get("cannotMoveOneDrive",null,"Moving a file between accounts is not supported yet.")}):this.writeFile(this.getItemURL(D),JSON.stringify({parentReference:c}),"PATCH","application/json",g,l)};OneDriveClient.prototype.insertLibrary=function(D,c,g,l,n){this.insertFile(D,c,g,l,!0,n)};OneDriveClient.prototype.insertFile=function(D,c,g,l,n,u){this.isValidFilename(D)?(n=null!=n?n:!1,this.checkExists(u,D,!0,mxUtils.bind(this,function(x){if(x){x=
"/me/drive/root";null!=u&&(x=this.getItemURL(u,!0));var B=mxUtils.bind(this,function(C){n?g(new OneDriveLibrary(this.ui,c,C,this.sharepointMode)):g(new OneDriveFile(this.ui,c,C,this.sharepointMode))});x=this.baseUrl+x+"/children/"+encodeURIComponent(D)+"/content";4E6<=c.length?this.writeFile(x,"","PUT",null,mxUtils.bind(this,function(C){this.writeLargeFile(this.getItemURL(C.id),c,B,l)}),l):this.writeFile(x,c,"PUT",null,B,l)}else l()}))):l({message:this.invalidFilenameRegExs[0].test(D)?mxResources.get("oneDriveCharsNotAllowed"):
mxResources.get("oneDriveInvalidDeviceName")})};OneDriveClient.prototype.checkExists=function(D,c,g,l){var n="/me/drive/root";null!=D&&(n=this.getItemURL(D,!0));this.executeRequest(this.baseUrl+n+"/children/"+encodeURIComponent(c),mxUtils.bind(this,function(u){404==u.getStatus()?l(!0):g?(this.ui.spinner.stop(),this.ui.confirm(mxResources.get("replaceIt",[c]),function(){l(!0)},function(){l(!1)})):(this.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),mxResources.get("ok"),
-function(){l(!1)}))}),function(u){l(!1)},!0)};OneDriveClient.prototype.saveFile=function(D,c,g,l){try{var n=D.getData(),u=mxUtils.bind(this,function(B){var C=mxUtils.bind(this,function(K){c(K,n)}),F=this.getItemURL(D.getId());4E6<=B.length?this.writeLargeFile(F,B,C,g,l):this.writeFile(F+"/content/",B,"PUT",null,C,g,l)});if(Editor.useCanvasForExport&&/(\.png)$/i.test(D.meta.name)){var x=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(B){u(this.ui.base64ToBlob(B,
-"image/png"))}),g,this.ui.getCurrentFile()!=D?n:null,x.scale,x.border)}else u(n)}catch(B){g(B)}};OneDriveClient.prototype.writeLargeFile=function(D,c,g,l,n){this.sharepointMode&&(b=f);try{if(null!=c){var u=(new TextEncoder).encode(c).length,x=mxUtils.bind(this,function(C,F,K,I){try{I=I||0;var R=!0,W=null;W=window.setTimeout(mxUtils.bind(this,function(){R=!1;l({code:App.ERROR_TIMEOUT})}),this.ui.timeout);var q=c.substr(F,4194304),z=(new TextEncoder).encode(q).length,L=new mxXmlRequest(C,q,"PUT");L.setRequestHeaders=
-mxUtils.bind(this,function(N,M){N.setRequestHeader("Content-Range","bytes "+K+"-"+(K+z-1)+"/"+u)});L.send(mxUtils.bind(this,function(N){window.clearTimeout(W);if(R){var M=N.getStatus();200<=M&&299>=M?(M=F+q.length,M==c.length?g(JSON.parse(N.getText())):x(C,M,K+z,I)):500<=M&&599>=M&&2>I?(I++,x(C,F,K,I)):l(this.parseRequestText(N),N)}}),mxUtils.bind(this,function(N){window.clearTimeout(W);R&&l(this.parseRequestText(N))}))}catch(N){l(N)}}),B=mxUtils.bind(this,function(C){try{var F=!0,K=null;try{K=window.setTimeout(mxUtils.bind(this,
-function(){F=!1;l({code:App.ERROR_TIMEOUT})}),this.ui.timeout)}catch(R){}var I=new mxXmlRequest(D+"/createUploadSession","{}","POST");I.setRequestHeaders=mxUtils.bind(this,function(R,W){R.setRequestHeader("Content-Type","application/json");R.setRequestHeader("Authorization","Bearer "+b);null!=n&&R.setRequestHeader("If-Match",n)});I.send(mxUtils.bind(this,function(R){window.clearTimeout(K);F&&(200<=R.getStatus()&&299>=R.getStatus()?(R=JSON.parse(R.getText()),x(R.uploadUrl,0,0)):C||401!==R.getStatus()?
-l(this.parseRequestText(R),R):this.authenticate(function(){B(!0)},l,C,this.sharepointMode))}),mxUtils.bind(this,function(R){window.clearTimeout(K);F&&l(this.parseRequestText(R))}))}catch(R){l(R)}});null==b||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(function(){B(!0)},l,null,this.sharepointMode):B(!1)}else l({message:mxResources.get("unknownError")})}catch(C){l(C)}};OneDriveClient.prototype.writeFile=function(D,c,g,l,n,u,x){this.sharepointMode&&(b=f);try{if(null!=D&&null!=c){var B=mxUtils.bind(this,
-function(C){try{var F=!0,K=null;try{K=window.setTimeout(mxUtils.bind(this,function(){F=!1;u({code:App.ERROR_TIMEOUT})}),this.ui.timeout)}catch(R){}var I=new mxXmlRequest(D,c,g);I.setRequestHeaders=mxUtils.bind(this,function(R,W){R.setRequestHeader("Content-Type",l||" ");R.setRequestHeader("Authorization","Bearer "+b);null!=x&&R.setRequestHeader("If-Match",x)});I.send(mxUtils.bind(this,function(R){window.clearTimeout(K);F&&(200<=R.getStatus()&&299>=R.getStatus()?(null==this.user&&this.updateUser(this.emptyFn,
-this.emptyFn,!0),n(JSON.parse(R.getText()))):C||401!==R.getStatus()?u(this.parseRequestText(R),R):this.authenticate(function(){B(!0)},u,C,this.sharepointMode))}),mxUtils.bind(this,function(R){window.clearTimeout(K);F&&u(this.parseRequestText(R))}))}catch(R){u(R)}});null==b||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(function(){B(!0)},u,null,this.sharepointMode):B(!1)}else u({message:mxResources.get("unknownError")})}catch(C){u(C)}};OneDriveClient.prototype.parseRequestText=function(D){var c=
+function(){l(!1)}))}),function(u){l(!1)},!0)};OneDriveClient.prototype.saveFile=function(D,c,g,l){try{var n=D.getData(),u=mxUtils.bind(this,function(B){var C=mxUtils.bind(this,function(K){c(K,n)}),E=this.getItemURL(D.getId());4E6<=B.length?this.writeLargeFile(E,B,C,g,l):this.writeFile(E+"/content/",B,"PUT",null,C,g,l)});if(Editor.useCanvasForExport&&/(\.png)$/i.test(D.meta.name)){var x=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(B){u(this.ui.base64ToBlob(B,
+"image/png"))}),g,this.ui.getCurrentFile()!=D?n:null,x.scale,x.border)}else u(n)}catch(B){g(B)}};OneDriveClient.prototype.writeLargeFile=function(D,c,g,l,n){this.sharepointMode&&(b=f);try{if(null!=c){var u=(new TextEncoder).encode(c).length,x=mxUtils.bind(this,function(C,E,K,I){try{I=I||0;var T=!0,W=null;W=window.setTimeout(mxUtils.bind(this,function(){T=!1;l({code:App.ERROR_TIMEOUT})}),this.ui.timeout);var q=c.substr(E,4194304),z=(new TextEncoder).encode(q).length,L=new mxXmlRequest(C,q,"PUT");L.setRequestHeaders=
+mxUtils.bind(this,function(N,M){N.setRequestHeader("Content-Range","bytes "+K+"-"+(K+z-1)+"/"+u)});L.send(mxUtils.bind(this,function(N){window.clearTimeout(W);if(T){var M=N.getStatus();200<=M&&299>=M?(M=E+q.length,M==c.length?g(JSON.parse(N.getText())):x(C,M,K+z,I)):500<=M&&599>=M&&2>I?(I++,x(C,E,K,I)):l(this.parseRequestText(N),N)}}),mxUtils.bind(this,function(N){window.clearTimeout(W);T&&l(this.parseRequestText(N))}))}catch(N){l(N)}}),B=mxUtils.bind(this,function(C){try{var E=!0,K=null;try{K=window.setTimeout(mxUtils.bind(this,
+function(){E=!1;l({code:App.ERROR_TIMEOUT})}),this.ui.timeout)}catch(T){}var I=new mxXmlRequest(D+"/createUploadSession","{}","POST");I.setRequestHeaders=mxUtils.bind(this,function(T,W){T.setRequestHeader("Content-Type","application/json");T.setRequestHeader("Authorization","Bearer "+b);null!=n&&T.setRequestHeader("If-Match",n)});I.send(mxUtils.bind(this,function(T){window.clearTimeout(K);E&&(200<=T.getStatus()&&299>=T.getStatus()?(T=JSON.parse(T.getText()),x(T.uploadUrl,0,0)):C||401!==T.getStatus()?
+l(this.parseRequestText(T),T):this.authenticate(function(){B(!0)},l,C,this.sharepointMode))}),mxUtils.bind(this,function(T){window.clearTimeout(K);E&&l(this.parseRequestText(T))}))}catch(T){l(T)}});null==b||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(function(){B(!0)},l,null,this.sharepointMode):B(!1)}else l({message:mxResources.get("unknownError")})}catch(C){l(C)}};OneDriveClient.prototype.writeFile=function(D,c,g,l,n,u,x){this.sharepointMode&&(b=f);try{if(null!=D&&null!=c){var B=mxUtils.bind(this,
+function(C){try{var E=!0,K=null;try{K=window.setTimeout(mxUtils.bind(this,function(){E=!1;u({code:App.ERROR_TIMEOUT})}),this.ui.timeout)}catch(T){}var I=new mxXmlRequest(D,c,g);I.setRequestHeaders=mxUtils.bind(this,function(T,W){T.setRequestHeader("Content-Type",l||" ");T.setRequestHeader("Authorization","Bearer "+b);null!=x&&T.setRequestHeader("If-Match",x)});I.send(mxUtils.bind(this,function(T){window.clearTimeout(K);E&&(200<=T.getStatus()&&299>=T.getStatus()?(null==this.user&&this.updateUser(this.emptyFn,
+this.emptyFn,!0),n(JSON.parse(T.getText()))):C||401!==T.getStatus()?u(this.parseRequestText(T),T):this.authenticate(function(){B(!0)},u,C,this.sharepointMode))}),mxUtils.bind(this,function(T){window.clearTimeout(K);E&&u(this.parseRequestText(T))}))}catch(T){u(T)}});null==b||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(function(){B(!0)},u,null,this.sharepointMode):B(!1)}else u({message:mxResources.get("unknownError")})}catch(C){u(C)}};OneDriveClient.prototype.parseRequestText=function(D){var c=
{message:mxResources.get("unknownError")};try{c=JSON.parse(D.getText()),c.status=D.getStatus(),c.error&&(c.error.status=c.status,c.error.code=c.status)}catch(g){}return c};OneDriveClient.prototype.pickLibrary=function(D){this.pickFile(function(c){D(c)})};OneDriveClient.prototype.createInlinePicker=function(D,c,g){return mxUtils.bind(this,function(){var l=null,n=document.createElement("div");n.style.position="relative";var u=new CustomDialog(this.ui,n,mxUtils.bind(this,function(){var x=l.getSelectedItem();
if(null!=x)if(c&&"object"==typeof x.folder)D({value:[x]});else{if(!x.folder&&this.ui.spinner.spin(document.body,mxResources.get("loading"))){var B=OneDriveFile.prototype.getIdOf(x);this.executeRequest(this.getItemURL(B),mxUtils.bind(this,function(C){this.ui.spinner.stop();200<=C.getStatus()&&299>=C.getStatus()?(C=JSON.parse(C.getText()),D(B,{value:[C]})):this.ui.handleError({code:C.getStatus()})}),mxUtils.bind(this,function(C){this.ui.spinner.stop();this.ui.handleError(C)}))}}else return mxResources.get("invalidSel",
-null,"Invalid selection")}),null,mxResources.get(c?"select":"open"),null,null,null,null,!0);this.ui.showDialog(u.container,550,500,!0,!0);n.style.width=parseInt(u.container.parentNode.style.width)-60+"px";n.style.height=parseInt(u.container.parentNode.style.height)-120+"px";l=new mxODPicker(n,null,mxUtils.bind(this,function(x,B,C,F){this.executeRequest(F?x:this.baseUrl+x,function(K){B(JSON.parse(K.getText()))},C)}),mxUtils.bind(this,function(x,B,C,F){this.executeRequest(this.baseUrl+"/drives/"+B+
-"/items/"+x,function(K){C(JSON.parse(K.getText()))},F)}),null,null,function(x){c?D({value:[x]}):D(OneDriveFile.prototype.getIdOf(x))},mxUtils.bind(this,function(x){this.ui.showError(mxResources.get("error"),x)}),c,null,null,null,null,g)})};var J=function(){null!=A&&(clearInterval(A),A=null);if(null!=v){try{window.removeEventListener("message",v)}catch(D){}v=null}if(null!=p){try{p.close&&p.close()}catch(D){}p=null}if(null!=t)try{t.closed||t.close()}catch(D){}t=null},H=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,
+null,"Invalid selection")}),null,mxResources.get(c?"select":"open"),null,null,null,null,!0);this.ui.showDialog(u.container,550,500,!0,!0);n.style.width=parseInt(u.container.parentNode.style.width)-60+"px";n.style.height=parseInt(u.container.parentNode.style.height)-120+"px";l=new mxODPicker(n,null,mxUtils.bind(this,function(x,B,C,E){this.executeRequest(E?x:this.baseUrl+x,function(K){B(JSON.parse(K.getText()))},C)}),mxUtils.bind(this,function(x,B,C,E){this.executeRequest(this.baseUrl+"/drives/"+B+
+"/items/"+x,function(K){C(JSON.parse(K.getText()))},E)}),null,null,function(x){c?D({value:[x]}):D(OneDriveFile.prototype.getIdOf(x))},mxUtils.bind(this,function(x){this.ui.showError(mxResources.get("error"),x)}),c,null,null,null,null,g)})};var J=function(){null!=A&&(clearInterval(A),A=null);if(null!=v){try{window.removeEventListener("message",v)}catch(D){}v=null}if(null!=p){try{p.close&&p.close()}catch(D){}p=null}if(null!=t)try{t.closed||t.close()}catch(D){}t=null},H=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,
function(D){var c=16*Math.random()|0;return("x"===D?c:c&3|8).toString(16)})};OneDriveClient.prototype.createPickerConfig=function(D,c){return{sdk:this.PICKER_SDK_VERSION,entry:{sharePoint:{byPath:{web:c}}},authentication:{},messaging:{origin:location.origin,channelId:H()},typesAndSources:Object.assign({},{mode:D},"files"===D&&{filters:this.FILE_EXTENSIONS},{pivots:{oneDrive:!0,recent:!0,shared:!1,sharedLibraries:!0,myOrganization:!1,site:!0}}),selection:{mode:"single"},theme:Editor.isDarkMode()?"dark":
"default"}};OneDriveClient.prototype.setupPickerMessageListener=function(D,c){if(null!=v){try{window.removeEventListener("message",v)}catch(l){}v=null}var g=function(l){if(l.source&&l.source===t){var n=l.data;"initialize"===n.type&&n.channelId===D&&(p=l.ports[0],p.addEventListener("message",c),p.start(),p.postMessage({type:"activate"}))}};v=g;window.addEventListener("message",g)};var G=function(D,c){var g,l;return $jscomp.asyncExecutePromiseGeneratorProgram(function(n){p.postMessage({type:"acknowledge",
id:D.id});g=D.data;try{switch(g.command){case "authenticate":if(l=k)p.postMessage({type:"result",id:D.id,data:{result:"token",token:l}});else throw Error("Could not get auth token for command: "+JSON.stringify(g));break;case "close":J();break;case "pick":p.postMessage({type:"result",id:D.id,data:{result:"success"}});J();c(g);break;default:console.warn("Unsupported command: "+JSON.stringify(g)),p.postMessage({type:"result",id:D.id,data:{result:"error",error:{code:"unsupportedCommand",message:g.command},
@@ -14238,21 +14244,21 @@ function(f,k,d,p){var t=this.ui.spinner.pause();f=new FilenameDialog(this.ui,mxR
this.getSha(t,v,f,A,mxUtils.bind(this,function(J){if(k){var H=this.ui.spinner.pause();this.ui.confirm(mxResources.get("replaceIt",[f]),function(){H();d(!0,J)},function(){H();d(!1)})}else this.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),mxResources.get("ok"),function(){d(!1)})}),mxUtils.bind(this,function(J){d(!0)}),!0)};GitHubClient.prototype.saveFile=function(f,k,d,p,t){var v=f.meta.org,A=f.meta.repo,J=f.meta.ref,H=f.meta.path,G=mxUtils.bind(this,function(c,
g){this.writeFile(v,A,J,H,t,g,c,mxUtils.bind(this,function(l){delete f.meta.isNew;k(JSON.parse(l.getText()).content.sha)}),mxUtils.bind(this,function(l){d(l)}))}),D=mxUtils.bind(this,function(){if(Editor.useCanvasForExport&&/(\.png)$/i.test(H)){var c=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(g){G(f.meta.sha,g)}),d,this.ui.getCurrentFile()!=f?f.getData():null,c.scale,c.border)}else G(f.meta.sha,Base64.encode(f.getData()))});p?this.getSha(v,A,H,
J,mxUtils.bind(this,function(c){f.meta.sha=c;D()}),d):D()};GitHubClient.prototype.pickLibrary=function(f){this.pickFile(f)};GitHubClient.prototype.pickFolder=function(f){this.showGitHubDialog(!1,f,!0)};GitHubClient.prototype.pickFile=function(f){f=null!=f?f:mxUtils.bind(this,function(k){this.ui.loadFile("H"+encodeURIComponent(k))});this.showGitHubDialog(!0,f)};GitHubClient.prototype.showGitHubDialog=function(f,k,d){var p=null,t=null,v=null,A=null,J=document.createElement("div");J.style.whiteSpace=
-"nowrap";J.style.overflow="hidden";J.style.height="320px";var H=document.createElement("h3");mxUtils.write(H,mxResources.get(f?"selectFile":"selectFolder"));H.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";J.appendChild(H);H=this.ui.createToolbarButton(Editor.refreshImage,mxResources.get("refresh"),mxUtils.bind(this,function(){F()}));H.style.position="absolute";H.style.right="40px";H.style.top="26px";J.appendChild(H);var G=document.createElement("div");G.style.whiteSpace=
+"nowrap";J.style.overflow="hidden";J.style.height="320px";var H=document.createElement("h3");mxUtils.write(H,mxResources.get(f?"selectFile":"selectFolder"));H.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";J.appendChild(H);H=this.ui.createToolbarButton(Editor.refreshImage,mxResources.get("refresh"),mxUtils.bind(this,function(){E()}));H.style.position="absolute";H.style.right="40px";H.style.top="26px";J.appendChild(H);var G=document.createElement("div");G.style.whiteSpace=
"nowrap";G.style.border="1px solid lightgray";G.style.boxSizing="border-box";G.style.padding="4px";G.style.overflow="auto";G.style.lineHeight="1.2em";G.style.height="290px";J.appendChild(G);var D=document.createElement("div");D.style.textOverflow="ellipsis";D.style.boxSizing="border-box";D.style.overflow="hidden";D.style.padding="4px";D.style.width="100%";var c=new CustomDialog(this.ui,J,mxUtils.bind(this,function(){k(p+"/"+t+"/"+encodeURIComponent(v)+"/"+A)}),null,null,"https://www.drawio.com/blog/single-repository-diagrams",
-null,null,null,null,[[mxResources.get("authorize"),mxUtils.bind(this,function(){this.ui.openLink("test.draw.io"==window.location.hostname?"https://github.com/apps/diagrams-net-app-test":"https://github.com/apps/draw-io-app")})]],"16px");this.ui.showDialog(c.container,420,370,!0,!0);f&&c.okButton.parentNode.removeChild(c.okButton);var g=mxUtils.bind(this,function(K,I,R,W){var q=document.createElement("a");q.setAttribute("title",K);q.style.cursor="pointer";mxUtils.write(q,K);mxEvent.addListener(q,"click",
-I);W&&(q.style.textDecoration="underline");null!=R&&(K=D.cloneNode(),K.style.padding=R,K.appendChild(q),q=K);return q}),l=mxUtils.bind(this,function(K){var I=document.createElement("div");I.style.marginBottom="8px";I.appendChild(g(p+"/"+t,mxUtils.bind(this,function(){A=null;F()}),null,!0));K||(mxUtils.write(I," / "),I.appendChild(g(decodeURIComponent(v),mxUtils.bind(this,function(){A=null;C()}),null,!0)));if(null!=A&&0<A.length){var R=A.split("/");for(K=0;K<R.length;K++)(function(W){mxUtils.write(I,
-" / ");I.appendChild(g(R[W],mxUtils.bind(this,function(){A=R.slice(0,W+1).join("/");B()}),null,!0))})(K)}G.appendChild(I)}),n=mxUtils.bind(this,function(K){this.ui.handleError(K,null,mxUtils.bind(this,function(){this.ui.spinner.stop();null!=this.getUser()?(A=v=t=p=null,F()):this.ui.hideDialog()}),null,{})}),u=null,x=null,B=mxUtils.bind(this,function(K){null==K&&(G.innerText="",K=1);var I=new mxXmlRequest(this.baseUrl+"/repos/"+p+"/"+t+"/contents/"+A+"?ref="+encodeURIComponent(v)+"&per_page=100&page="+
-K,null,"GET");this.ui.spinner.spin(G,mxResources.get("loading"));c.okButton.removeAttribute("disabled");null!=x&&(mxEvent.removeListener(G,"scroll",x),x=null);null!=u&&null!=u.parentNode&&u.parentNode.removeChild(u);u=document.createElement("a");u.style.display="block";u.style.cursor="pointer";mxUtils.write(u,mxResources.get("more")+"...");var R=mxUtils.bind(this,function(){B(K+1)});mxEvent.addListener(u,"click",R);this.executeRequest(I,mxUtils.bind(this,function(W){this.ui.tryAndHandle(mxUtils.bind(this,
-function(){this.ui.spinner.stop();1==K&&(l(),G.appendChild(g("../ [Up]",mxUtils.bind(this,function(){if(""==A)A=null,F();else{var M=A.split("/");A=M.slice(0,M.length-1).join("/");B()}}),"4px")));var q=JSON.parse(W.getText());if(null==q||0==q.length)d||(mxUtils.br(G),mxUtils.write(G,mxResources.get("noFiles")));else{var z=!0,L=0,N=mxUtils.bind(this,function(M){for(var m=0;m<q.length;m++)mxUtils.bind(this,function(y,E){if(M==("dir"==y.type)){E=D.cloneNode();E.style.backgroundColor=z?Editor.isDarkMode()?
-"#000000":"#eeeeee":"";z=!z;var P=document.createElement("img");P.src=IMAGE_PATH+"/"+("dir"==y.type?"folder.png":"file.png");P.setAttribute("align","absmiddle");P.style.marginRight="4px";P.style.marginTop="-4px";P.width=20;E.appendChild(P);E.appendChild(g(y.name+("dir"==y.type?"/":""),mxUtils.bind(this,function(){"dir"==y.type?(A=y.path,B()):f&&"file"==y.type&&(this.ui.hideDialog(),k(p+"/"+t+"/"+encodeURIComponent(v)+"/"+y.path))})));G.appendChild(E);L++}})(q[m],m)});N(!0);f&&N(!1)}}))}),n,!0)}),
-C=mxUtils.bind(this,function(K,I){null==K&&(G.innerText="",K=1);var R=new mxXmlRequest(this.baseUrl+"/repos/"+p+"/"+t+"/branches?per_page=100&page="+K,null,"GET");c.okButton.setAttribute("disabled","disabled");this.ui.spinner.spin(G,mxResources.get("loading"));null!=x&&(mxEvent.removeListener(G,"scroll",x),x=null);null!=u&&null!=u.parentNode&&u.parentNode.removeChild(u);u=document.createElement("a");u.style.display="block";u.style.cursor="pointer";mxUtils.write(u,mxResources.get("more")+"...");var W=
-mxUtils.bind(this,function(){C(K+1)});mxEvent.addListener(u,"click",W);this.executeRequest(R,mxUtils.bind(this,function(q){this.ui.tryAndHandle(mxUtils.bind(this,function(){this.ui.spinner.stop();1==K&&(l(!0),G.appendChild(g("../ [Up]",mxUtils.bind(this,function(){A=null;F()}),"4px")));var z=JSON.parse(q.getText());if(null==z||0==z.length)mxUtils.br(G),mxUtils.write(G,mxResources.get("repositoryNotFound"));else if(1==z.length&&I)v=z[0].name,A="",B();else{for(var L=0;L<z.length;L++)mxUtils.bind(this,
-function(N,M){var m=D.cloneNode();m.style.backgroundColor=0==M%2?Editor.isDarkMode()?"#000000":"#eeeeee":"";m.appendChild(g(N.name,mxUtils.bind(this,function(){v=N.name;A="";B()})));G.appendChild(m)})(z[L],L);100==z.length&&(G.appendChild(u),x=function(){G.scrollTop>=G.scrollHeight-G.offsetHeight&&W()},mxEvent.addListener(G,"scroll",x))}}))}),n)}),F=mxUtils.bind(this,function(K){null==K&&(G.innerText="",K=1);var I=new mxXmlRequest(this.baseUrl+"/user/repos?per_page=100&page="+K,null,"GET");c.okButton.setAttribute("disabled",
-"disabled");this.ui.spinner.spin(G,mxResources.get("loading"));null!=x&&mxEvent.removeListener(G,"scroll",x);null!=u&&null!=u.parentNode&&u.parentNode.removeChild(u);u=document.createElement("a");u.style.display="block";u.style.cursor="pointer";mxUtils.write(u,mxResources.get("more")+"...");var R=mxUtils.bind(this,function(){F(K+1)});mxEvent.addListener(u,"click",R);this.executeRequest(I,mxUtils.bind(this,function(W){this.ui.tryAndHandle(mxUtils.bind(this,function(){this.ui.spinner.stop();var q=JSON.parse(W.getText());
+null,null,null,null,[[mxResources.get("authorize"),mxUtils.bind(this,function(){this.ui.openLink("test.draw.io"==window.location.hostname?"https://github.com/apps/diagrams-net-app-test":"https://github.com/apps/draw-io-app")})]],"16px");this.ui.showDialog(c.container,420,370,!0,!0);f&&c.okButton.parentNode.removeChild(c.okButton);var g=mxUtils.bind(this,function(K,I,T,W){var q=document.createElement("a");q.setAttribute("title",K);q.style.cursor="pointer";mxUtils.write(q,K);mxEvent.addListener(q,"click",
+I);W&&(q.style.textDecoration="underline");null!=T&&(K=D.cloneNode(),K.style.padding=T,K.appendChild(q),q=K);return q}),l=mxUtils.bind(this,function(K){var I=document.createElement("div");I.style.marginBottom="8px";I.appendChild(g(p+"/"+t,mxUtils.bind(this,function(){A=null;E()}),null,!0));K||(mxUtils.write(I," / "),I.appendChild(g(decodeURIComponent(v),mxUtils.bind(this,function(){A=null;C()}),null,!0)));if(null!=A&&0<A.length){var T=A.split("/");for(K=0;K<T.length;K++)(function(W){mxUtils.write(I,
+" / ");I.appendChild(g(T[W],mxUtils.bind(this,function(){A=T.slice(0,W+1).join("/");B()}),null,!0))})(K)}G.appendChild(I)}),n=mxUtils.bind(this,function(K){this.ui.handleError(K,null,mxUtils.bind(this,function(){this.ui.spinner.stop();null!=this.getUser()?(A=v=t=p=null,E()):this.ui.hideDialog()}),null,{})}),u=null,x=null,B=mxUtils.bind(this,function(K){null==K&&(G.innerText="",K=1);var I=new mxXmlRequest(this.baseUrl+"/repos/"+p+"/"+t+"/contents/"+A+"?ref="+encodeURIComponent(v)+"&per_page=100&page="+
+K,null,"GET");this.ui.spinner.spin(G,mxResources.get("loading"));c.okButton.removeAttribute("disabled");null!=x&&(mxEvent.removeListener(G,"scroll",x),x=null);null!=u&&null!=u.parentNode&&u.parentNode.removeChild(u);u=document.createElement("a");u.style.display="block";u.style.cursor="pointer";mxUtils.write(u,mxResources.get("more")+"...");var T=mxUtils.bind(this,function(){B(K+1)});mxEvent.addListener(u,"click",T);this.executeRequest(I,mxUtils.bind(this,function(W){this.ui.tryAndHandle(mxUtils.bind(this,
+function(){this.ui.spinner.stop();1==K&&(l(),G.appendChild(g("../ [Up]",mxUtils.bind(this,function(){if(""==A)A=null,E();else{var M=A.split("/");A=M.slice(0,M.length-1).join("/");B()}}),"4px")));var q=JSON.parse(W.getText());if(null==q||0==q.length)d||(mxUtils.br(G),mxUtils.write(G,mxResources.get("noFiles")));else{var z=!0,L=0,N=mxUtils.bind(this,function(M){for(var m=0;m<q.length;m++)mxUtils.bind(this,function(y,F){if(M==("dir"==y.type)){F=D.cloneNode();F.style.backgroundColor=z?Editor.isDarkMode()?
+"#000000":"#eeeeee":"";z=!z;var P=document.createElement("img");P.src=IMAGE_PATH+"/"+("dir"==y.type?"folder.png":"file.png");P.setAttribute("align","absmiddle");P.style.marginRight="4px";P.style.marginTop="-4px";P.width=20;F.appendChild(P);F.appendChild(g(y.name+("dir"==y.type?"/":""),mxUtils.bind(this,function(){"dir"==y.type?(A=y.path,B()):f&&"file"==y.type&&(this.ui.hideDialog(),k(p+"/"+t+"/"+encodeURIComponent(v)+"/"+y.path))})));G.appendChild(F);L++}})(q[m],m)});N(!0);f&&N(!1)}}))}),n,!0)}),
+C=mxUtils.bind(this,function(K,I){null==K&&(G.innerText="",K=1);var T=new mxXmlRequest(this.baseUrl+"/repos/"+p+"/"+t+"/branches?per_page=100&page="+K,null,"GET");c.okButton.setAttribute("disabled","disabled");this.ui.spinner.spin(G,mxResources.get("loading"));null!=x&&(mxEvent.removeListener(G,"scroll",x),x=null);null!=u&&null!=u.parentNode&&u.parentNode.removeChild(u);u=document.createElement("a");u.style.display="block";u.style.cursor="pointer";mxUtils.write(u,mxResources.get("more")+"...");var W=
+mxUtils.bind(this,function(){C(K+1)});mxEvent.addListener(u,"click",W);this.executeRequest(T,mxUtils.bind(this,function(q){this.ui.tryAndHandle(mxUtils.bind(this,function(){this.ui.spinner.stop();1==K&&(l(!0),G.appendChild(g("../ [Up]",mxUtils.bind(this,function(){A=null;E()}),"4px")));var z=JSON.parse(q.getText());if(null==z||0==z.length)mxUtils.br(G),mxUtils.write(G,mxResources.get("repositoryNotFound"));else if(1==z.length&&I)v=z[0].name,A="",B();else{for(var L=0;L<z.length;L++)mxUtils.bind(this,
+function(N,M){var m=D.cloneNode();m.style.backgroundColor=0==M%2?Editor.isDarkMode()?"#000000":"#eeeeee":"";m.appendChild(g(N.name,mxUtils.bind(this,function(){v=N.name;A="";B()})));G.appendChild(m)})(z[L],L);100==z.length&&(G.appendChild(u),x=function(){G.scrollTop>=G.scrollHeight-G.offsetHeight&&W()},mxEvent.addListener(G,"scroll",x))}}))}),n)}),E=mxUtils.bind(this,function(K){null==K&&(G.innerText="",K=1);var I=new mxXmlRequest(this.baseUrl+"/user/repos?per_page=100&page="+K,null,"GET");c.okButton.setAttribute("disabled",
+"disabled");this.ui.spinner.spin(G,mxResources.get("loading"));null!=x&&mxEvent.removeListener(G,"scroll",x);null!=u&&null!=u.parentNode&&u.parentNode.removeChild(u);u=document.createElement("a");u.style.display="block";u.style.cursor="pointer";mxUtils.write(u,mxResources.get("more")+"...");var T=mxUtils.bind(this,function(){E(K+1)});mxEvent.addListener(u,"click",T);this.executeRequest(I,mxUtils.bind(this,function(W){this.ui.tryAndHandle(mxUtils.bind(this,function(){this.ui.spinner.stop();var q=JSON.parse(W.getText());
if(null==q||0==q.length)mxUtils.br(G),mxUtils.write(G,mxResources.get("repositoryNotFound"));else{1==K&&(G.appendChild(g(mxResources.get("enterValue")+"...",mxUtils.bind(this,function(){var L=new FilenameDialog(this.ui,"org/repo/ref",mxResources.get("ok"),mxUtils.bind(this,function(N){if(null!=N){var M=N.split("/");if(1<M.length){N=M[0];var m=M[1];3>M.length?(p=N,t=m,A=v=null,C()):this.ui.spinner.spin(G,mxResources.get("loading"))&&(M=encodeURIComponent(M.slice(2,M.length).join("/")),this.getFile(N+
"/"+m+"/"+M,mxUtils.bind(this,function(y){this.ui.spinner.stop();p=y.meta.org;t=y.meta.repo;v=decodeURIComponent(y.meta.ref);A="";B()}),mxUtils.bind(this,function(y){this.ui.spinner.stop();this.ui.handleError({message:mxResources.get("fileNotFound")})})))}else this.ui.spinner.stop(),this.ui.handleError({message:mxResources.get("invalidName")})}}),mxResources.get("enterValue"));this.ui.showDialog(L.container,300,80,!0,!1);L.init()}))),mxUtils.br(G),mxUtils.br(G));for(var z=0;z<q.length;z++)mxUtils.bind(this,
-function(L,N){var M=D.cloneNode();M.style.backgroundColor=0==N%2?Editor.isDarkMode()?"#000000":"#eeeeee":"";M.appendChild(g(L.full_name,mxUtils.bind(this,function(){p=L.owner.login;t=L.name;A="";C(null,!0)})));G.appendChild(M)})(q[z],z)}100==q.length&&(G.appendChild(u),x=function(){G.scrollTop>=G.scrollHeight-G.offsetHeight&&R()},mxEvent.addListener(G,"scroll",x))}))}),n)});F()};GitHubClient.prototype.logout=function(){this.clearPersistentToken();this.setUser(null);b=null}})();TrelloFile=function(b,f,k){DrawioFile.call(this,b,f);this.meta=k;this.saveNeededCounter=0};mxUtils.extend(TrelloFile,DrawioFile);TrelloFile.prototype.getHash=function(){return"T"+encodeURIComponent(this.meta.compoundId)};TrelloFile.prototype.getMode=function(){return App.MODE_TRELLO};TrelloFile.prototype.isAutosave=function(){return!0};TrelloFile.prototype.getTitle=function(){return this.meta.name};TrelloFile.prototype.isRenamable=function(){return!1};TrelloFile.prototype.getSize=function(){return this.meta.bytes};
+function(L,N){var M=D.cloneNode();M.style.backgroundColor=0==N%2?Editor.isDarkMode()?"#000000":"#eeeeee":"";M.appendChild(g(L.full_name,mxUtils.bind(this,function(){p=L.owner.login;t=L.name;A="";C(null,!0)})));G.appendChild(M)})(q[z],z)}100==q.length&&(G.appendChild(u),x=function(){G.scrollTop>=G.scrollHeight-G.offsetHeight&&T()},mxEvent.addListener(G,"scroll",x))}))}),n)});E()};GitHubClient.prototype.logout=function(){this.clearPersistentToken();this.setUser(null);b=null}})();TrelloFile=function(b,f,k){DrawioFile.call(this,b,f);this.meta=k;this.saveNeededCounter=0};mxUtils.extend(TrelloFile,DrawioFile);TrelloFile.prototype.getHash=function(){return"T"+encodeURIComponent(this.meta.compoundId)};TrelloFile.prototype.getMode=function(){return App.MODE_TRELLO};TrelloFile.prototype.isAutosave=function(){return!0};TrelloFile.prototype.getTitle=function(){return this.meta.name};TrelloFile.prototype.isRenamable=function(){return!1};TrelloFile.prototype.getSize=function(){return this.meta.bytes};
TrelloFile.prototype.save=function(b,f,k){this.doSave(this.getTitle(),f,k)};TrelloFile.prototype.saveAs=function(b,f,k){this.doSave(b,f,k)};TrelloFile.prototype.doSave=function(b,f,k){var d=this.meta.name;this.meta.name=b;DrawioFile.prototype.save.apply(this,[null,mxUtils.bind(this,function(){this.meta.name=d;this.saveFile(b,!1,f,k)}),k])};
TrelloFile.prototype.saveFile=function(b,f,k,d){this.isEditable()?this.savingFile?null!=d&&(this.saveNeededCounter++,d({code:App.ERROR_BUSY})):(this.savingFileTime=new Date,this.setShadowModified(!1),this.savingFile=!0,this.getTitle()==b?this.ui.trello.saveFile(this,mxUtils.bind(this,function(p){this.setModified(this.getShadowModified());this.savingFile=!1;this.meta=p;this.contentChanged();null!=k&&k();0<this.saveNeededCounter&&(this.saveNeededCounter--,this.saveFile(b,f,k,d))}),mxUtils.bind(this,
function(p){this.savingFile=!1;null!=d&&d(p)})):this.ui.pickFolder(App.MODE_TRELLO,mxUtils.bind(this,function(p){this.ui.trello.insertFile(b,this.getData(),mxUtils.bind(this,function(t){this.savingFile=!1;null!=k&&k();this.ui.fileLoaded(t);0<this.saveNeededCounter&&(this.saveNeededCounter--,this.saveFile(b,f,k,d))}),mxUtils.bind(this,function(){this.savingFile=!1;null!=d&&d()}),!1,p)}))):null!=k&&k()};TrelloLibrary=function(b,f,k){TrelloFile.call(this,b,f,k)};mxUtils.extend(TrelloLibrary,TrelloFile);TrelloLibrary.prototype.doSave=function(b,f,k){this.saveFile(b,!1,f,k)};TrelloLibrary.prototype.open=function(){};TrelloClient=function(b){DrawioClient.call(this,b,"tauth");Trello.setKey(this.key)};mxUtils.extend(TrelloClient,DrawioClient);TrelloClient.prototype.key="e89d109082298ce91f6576f82f458551";TrelloClient.prototype.baseUrl="https://api.trello.com/1/";TrelloClient.prototype.SEPARATOR="|$|";TrelloClient.prototype.maxFileSize=1E7;TrelloClient.prototype.extension=".xml";
@@ -14272,7 +14278,7 @@ TrelloClient.prototype.showTrelloDialog=function(b,f){var k=null,d="@me",p=0,t=d
C.src=u.url;C.width=u.width;C.height=u.height;C.style="border: 1px solid black;margin:5px;vertical-align:middle";B.appendChild(C)}mxUtils.write(B,l);mxEvent.addListener(B,"click",n);x.appendChild(B);return x}),H=mxUtils.bind(this,function(l){this.ui.handleError(l,null,mxUtils.bind(this,function(){this.ui.spinner.stop();this.ui.hideDialog()}))}),G=mxUtils.bind(this,function(){p=0;A.innerText="";this.ui.spinner.spin(A,mxResources.get("loading"));var l=mxUtils.bind(this,function(){Trello.cards.get(k+
"/attachments",{fields:"id,name,previews"},mxUtils.bind(this,function(n){this.ui.spinner.stop();A.appendChild(J("../ [Up]",mxUtils.bind(this,function(){g()})));mxUtils.br(A);null==n||0==n.length?mxUtils.write(A,mxResources.get("noFiles")):mxUtils.bind(this,function(){for(var u=0;u<n.length;u++)mxUtils.bind(this,function(x){A.appendChild(J(x.name,mxUtils.bind(this,function(){this.ui.hideDialog();f(k+this.SEPARATOR+x.id)}),null!=x.previews?x.previews[0]:null))})(n[u])})()}),mxUtils.bind(this,function(n){401==
n.status?this.authenticate(l,H,!0):null!=H&&H(n)}))});l()}),D=null,c=null,g=mxUtils.bind(this,function(l){null==l&&(p=0,A.innerText="",l=1);this.ui.spinner.spin(A,mxResources.get("loading"));null!=D&&null!=D.parentNode&&D.parentNode.removeChild(D);D=document.createElement("a");D.style.display="block";D.style.cursor="pointer";mxUtils.write(D,mxResources.get("more")+"...");var n=mxUtils.bind(this,function(){mxEvent.removeListener(A,"scroll",c);g(l+1)});mxEvent.addListener(D,"click",n);var u=mxUtils.bind(this,
-function(){Trello.get("search",{query:""==mxUtils.trim(d)?"is:open":d,cards_limit:100,cards_page:l-1},mxUtils.bind(this,function(x){this.ui.spinner.stop();x=null!=x?x.cards:null;if(null==x||0==x.length)mxUtils.write(A,mxResources.get("noFiles"));else{1==l&&(A.appendChild(J(mxResources.get("filterCards")+"...",mxUtils.bind(this,function(){var C=new FilenameDialog(this.ui,d,mxResources.get("ok"),mxUtils.bind(this,function(F){null!=F&&(d=F,g())}),mxResources.get("filterCards"),null,null,"http://help.trello.com/article/808-searching-for-cards-all-boards");
+function(){Trello.get("search",{query:""==mxUtils.trim(d)?"is:open":d,cards_limit:100,cards_page:l-1},mxUtils.bind(this,function(x){this.ui.spinner.stop();x=null!=x?x.cards:null;if(null==x||0==x.length)mxUtils.write(A,mxResources.get("noFiles"));else{1==l&&(A.appendChild(J(mxResources.get("filterCards")+"...",mxUtils.bind(this,function(){var C=new FilenameDialog(this.ui,d,mxResources.get("ok"),mxUtils.bind(this,function(E){null!=E&&(d=E,g())}),mxResources.get("filterCards"),null,null,"http://help.trello.com/article/808-searching-for-cards-all-boards");
this.ui.showDialog(C.container,300,80,!0,!1);C.init()}))),mxUtils.br(A));for(var B=0;B<x.length;B++)mxUtils.bind(this,function(C){A.appendChild(J(C.name,mxUtils.bind(this,function(){b?(k=C.id,G()):(this.ui.hideDialog(),f(C.id))})))})(x[B]);100==x.length&&(A.appendChild(D),c=function(){A.scrollTop>=A.scrollHeight-A.offsetHeight&&n()},mxEvent.addListener(A,"scroll",c))}}),mxUtils.bind(this,function(x){401==x.status?this.authenticate(u,H,!0):null!=H&&H({message:x.responseText})}))});u()});g()};
TrelloClient.prototype.isAuthorized=function(){try{var b=localStorage.trello_token;null==b&&(b=localStorage.drawio_trello_token,null!=b&&localStorage.setItem("trello_token",b));return null!=b}catch(f){}return!1};TrelloClient.prototype.logout=function(){localStorage.removeItem("drawio_trello_token");Trello.deauthorize()};GitLabFile=function(b,f,k){GitHubFile.call(this,b,f,k);this.peer=this.ui.gitLab};mxUtils.extend(GitLabFile,GitHubFile);GitLabFile.prototype.getFileUrl=function(){return this.meta.html_url};GitLabFile.prototype.getFolderUrl=function(){var b=this.getFileUrl();return b.substring(0,b.lastIndexOf("/"))};GitLabFile.prototype.share=function(){this.ui.editor.graph.openLink(DRAWIO_GITLAB_URL+"/"+this.meta.org+"/"+encodeURIComponent(this.meta.repo)+"/-/project_members")};
GitLabFile.prototype.getId=function(){return this.meta.org+"/"+(null!=this.meta.repo?encodeURIComponent(this.meta.repo)+"/"+(null!=this.meta.ref?this.meta.ref+(null!=this.meta.path?"/"+this.meta.path:""):""):"")};GitLabFile.prototype.getHash=function(){return encodeURIComponent("A"+this.getId())};GitLabFile.prototype.isConflict=function(b){return null!=b&&400==b.status};GitLabFile.prototype.getMode=function(){return App.MODE_GITLAB};GitLabFile.prototype.getDescriptorEtag=function(b){return b.last_commit_id};
@@ -14296,44 +14302,44 @@ encodeURIComponent(p);G=new mxXmlRequest(f,JSON.stringify(d),G);this.executeRequ
null,f.meta.refPos)}),d)}),D=mxUtils.bind(this,function(){if(Editor.useCanvasForExport&&/(\.png)$/i.test(H)){var c=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(g){G(f.meta.last_commit_id,g)}),d,this.ui.getCurrentFile()!=f?f.getData():null,c.scale,c.border)}else G(f.meta.last_commit_id,Base64.encode(f.getData()))});p?this.getFile(v+"/"+A+"/"+J+"/"+H,mxUtils.bind(this,function(c){f.meta.last_commit_id=c.meta.last_commit_id;D()}),d):D()};GitLabClient.prototype.pickFolder=
function(f){this.showGitLabDialog(!1,f,!0)};GitLabClient.prototype.pickFile=function(f){f=null!=f?f:mxUtils.bind(this,function(k){this.ui.loadFile("A"+encodeURIComponent(k))});this.showGitLabDialog(!0,f)};GitLabClient.prototype.showGitLabDialog=function(f,k,d){var p=null,t=null,v=null,A=null,J=document.createElement("div");J.style.whiteSpace="nowrap";J.style.overflow="hidden";J.style.height="304px";var H=document.createElement("h3");mxUtils.write(H,mxResources.get(f?"selectFile":"selectFolder"));
H.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";J.appendChild(H);var G=document.createElement("div");G.style.whiteSpace="nowrap";G.style.border="1px solid lightgray";G.style.boxSizing="border-box";G.style.padding="4px";G.style.overflow="auto";G.style.lineHeight="1.2em";G.style.height="274px";J.appendChild(G);var D=document.createElement("div");D.style.textOverflow="ellipsis";D.style.boxSizing="border-box";D.style.overflow="hidden";D.style.padding="4px";D.style.width=
-"100%";var c=new CustomDialog(this.ui,J,mxUtils.bind(this,function(){k(p+"/"+t+"/"+encodeURIComponent(v)+"/"+A)}));this.ui.showDialog(c.container,420,370,!0,!0);f&&c.okButton.parentNode.removeChild(c.okButton);var g=mxUtils.bind(this,function(K,I,R,W){var q=document.createElement("a");q.setAttribute("title",K);q.style.cursor="pointer";mxUtils.write(q,K);mxEvent.addListener(q,"click",I);W&&(q.style.textDecoration="underline");null!=R&&(K=D.cloneNode(),K.style.padding=R,K.appendChild(q),q=K);return q}),
-l=mxUtils.bind(this,function(K){var I=document.createElement("div");I.style.marginBottom="8px";I.appendChild(g(p+"/"+t,mxUtils.bind(this,function(){A=null;F()}),null,!0));K||(mxUtils.write(I," / "),I.appendChild(g(decodeURIComponent(v),mxUtils.bind(this,function(){A=null;C()}),null,!0)));if(null!=A&&0<A.length){var R=A.split("/");for(K=0;K<R.length;K++)(function(W){mxUtils.write(I," / ");I.appendChild(g(R[W],mxUtils.bind(this,function(){A=R.slice(0,W+1).join("/");B()}),null,!0))})(K)}G.appendChild(I)}),
-n=mxUtils.bind(this,function(K){this.ui.handleError(K,null,mxUtils.bind(this,function(){this.ui.spinner.stop();null!=this.getUser()?(A=v=t=p=null,F()):this.ui.hideDialog()}))}),u=null,x=null,B=mxUtils.bind(this,function(K){null==K&&(G.innerText="",K=1);var I=new mxXmlRequest(this.baseUrl+"/projects/"+encodeURIComponent(p+"/"+t)+"/repository/tree?path="+A+"&ref="+v+"&per_page=100&page="+K,null,"GET");this.ui.spinner.spin(G,mxResources.get("loading"));c.okButton.removeAttribute("disabled");null!=x&&
-(mxEvent.removeListener(G,"scroll",x),x=null);null!=u&&null!=u.parentNode&&u.parentNode.removeChild(u);u=document.createElement("a");u.style.display="block";u.style.cursor="pointer";mxUtils.write(u,mxResources.get("more")+"...");var R=mxUtils.bind(this,function(){B(K+1)});mxEvent.addListener(u,"click",R);this.executeRequest(I,mxUtils.bind(this,function(W){this.ui.tryAndHandle(mxUtils.bind(this,function(){this.ui.spinner.stop();1==K&&(l(!v),G.appendChild(g("../ [Up]",mxUtils.bind(this,function(){if(""==
-A||null==A)A=null,F();else{var M=A.split("/");A=M.slice(0,M.length-1).join("/");B()}}),"4px")));var q=JSON.parse(W.getText());if(null==q||0==q.length)d||(mxUtils.br(G),mxUtils.write(G,mxResources.get("noFiles")));else{var z=!0,L=0,N=mxUtils.bind(this,function(M){for(var m=0;m<q.length;m++)mxUtils.bind(this,function(y){if(M==("tree"==y.type)){var E=D.cloneNode();E.style.backgroundColor=z?Editor.isDarkMode()?"#000000":"#eeeeee":"";z=!z;var P=document.createElement("img");P.src=IMAGE_PATH+"/"+("tree"==
-y.type?"folder.png":"file.png");P.setAttribute("align","absmiddle");P.style.marginRight="4px";P.style.marginTop="-4px";P.width=20;E.appendChild(P);E.appendChild(g(y.name+("tree"==y.type?"/":""),mxUtils.bind(this,function(){"tree"==y.type?(A=y.path,B()):f&&"blob"==y.type&&(this.ui.hideDialog(),k(p+"/"+t+"/"+v+"/"+y.path))})));G.appendChild(E);L++}})(q[m])});N(!0);f&&N(!1);100==L&&(G.appendChild(u),x=function(){G.scrollTop>=G.scrollHeight-G.offsetHeight&&R()},mxEvent.addListener(G,"scroll",x))}}))}),
-n,!0)}),C=mxUtils.bind(this,function(K,I){null==K&&(G.innerText="",K=1);var R=new mxXmlRequest(this.baseUrl+"/projects/"+encodeURIComponent(p+"/"+t)+"/repository/branches?per_page=100&page="+K,null,"GET");c.okButton.setAttribute("disabled","disabled");this.ui.spinner.spin(G,mxResources.get("loading"));null!=x&&(mxEvent.removeListener(G,"scroll",x),x=null);null!=u&&null!=u.parentNode&&u.parentNode.removeChild(u);u=document.createElement("a");u.style.display="block";u.style.cursor="pointer";mxUtils.write(u,
-mxResources.get("more")+"...");var W=mxUtils.bind(this,function(){C(K+1)});mxEvent.addListener(u,"click",W);this.executeRequest(R,mxUtils.bind(this,function(q){this.ui.tryAndHandle(mxUtils.bind(this,function(){this.ui.spinner.stop();1==K&&(l(!0),G.appendChild(g("../ [Up]",mxUtils.bind(this,function(){A=null;F()}),"4px")));var z=JSON.parse(q.getText());if(null==z||0==z.length)mxUtils.br(G),mxUtils.write(G,mxResources.get("repositoryNotFound"));else if(1==z.length&&I)v=z[0].name,A="",B();else{for(var L=
+"100%";var c=new CustomDialog(this.ui,J,mxUtils.bind(this,function(){k(p+"/"+t+"/"+encodeURIComponent(v)+"/"+A)}));this.ui.showDialog(c.container,420,370,!0,!0);f&&c.okButton.parentNode.removeChild(c.okButton);var g=mxUtils.bind(this,function(K,I,T,W){var q=document.createElement("a");q.setAttribute("title",K);q.style.cursor="pointer";mxUtils.write(q,K);mxEvent.addListener(q,"click",I);W&&(q.style.textDecoration="underline");null!=T&&(K=D.cloneNode(),K.style.padding=T,K.appendChild(q),q=K);return q}),
+l=mxUtils.bind(this,function(K){var I=document.createElement("div");I.style.marginBottom="8px";I.appendChild(g(p+"/"+t,mxUtils.bind(this,function(){A=null;E()}),null,!0));K||(mxUtils.write(I," / "),I.appendChild(g(decodeURIComponent(v),mxUtils.bind(this,function(){A=null;C()}),null,!0)));if(null!=A&&0<A.length){var T=A.split("/");for(K=0;K<T.length;K++)(function(W){mxUtils.write(I," / ");I.appendChild(g(T[W],mxUtils.bind(this,function(){A=T.slice(0,W+1).join("/");B()}),null,!0))})(K)}G.appendChild(I)}),
+n=mxUtils.bind(this,function(K){this.ui.handleError(K,null,mxUtils.bind(this,function(){this.ui.spinner.stop();null!=this.getUser()?(A=v=t=p=null,E()):this.ui.hideDialog()}))}),u=null,x=null,B=mxUtils.bind(this,function(K){null==K&&(G.innerText="",K=1);var I=new mxXmlRequest(this.baseUrl+"/projects/"+encodeURIComponent(p+"/"+t)+"/repository/tree?path="+A+"&ref="+v+"&per_page=100&page="+K,null,"GET");this.ui.spinner.spin(G,mxResources.get("loading"));c.okButton.removeAttribute("disabled");null!=x&&
+(mxEvent.removeListener(G,"scroll",x),x=null);null!=u&&null!=u.parentNode&&u.parentNode.removeChild(u);u=document.createElement("a");u.style.display="block";u.style.cursor="pointer";mxUtils.write(u,mxResources.get("more")+"...");var T=mxUtils.bind(this,function(){B(K+1)});mxEvent.addListener(u,"click",T);this.executeRequest(I,mxUtils.bind(this,function(W){this.ui.tryAndHandle(mxUtils.bind(this,function(){this.ui.spinner.stop();1==K&&(l(!v),G.appendChild(g("../ [Up]",mxUtils.bind(this,function(){if(""==
+A||null==A)A=null,E();else{var M=A.split("/");A=M.slice(0,M.length-1).join("/");B()}}),"4px")));var q=JSON.parse(W.getText());if(null==q||0==q.length)d||(mxUtils.br(G),mxUtils.write(G,mxResources.get("noFiles")));else{var z=!0,L=0,N=mxUtils.bind(this,function(M){for(var m=0;m<q.length;m++)mxUtils.bind(this,function(y){if(M==("tree"==y.type)){var F=D.cloneNode();F.style.backgroundColor=z?Editor.isDarkMode()?"#000000":"#eeeeee":"";z=!z;var P=document.createElement("img");P.src=IMAGE_PATH+"/"+("tree"==
+y.type?"folder.png":"file.png");P.setAttribute("align","absmiddle");P.style.marginRight="4px";P.style.marginTop="-4px";P.width=20;F.appendChild(P);F.appendChild(g(y.name+("tree"==y.type?"/":""),mxUtils.bind(this,function(){"tree"==y.type?(A=y.path,B()):f&&"blob"==y.type&&(this.ui.hideDialog(),k(p+"/"+t+"/"+v+"/"+y.path))})));G.appendChild(F);L++}})(q[m])});N(!0);f&&N(!1);100==L&&(G.appendChild(u),x=function(){G.scrollTop>=G.scrollHeight-G.offsetHeight&&T()},mxEvent.addListener(G,"scroll",x))}}))}),
+n,!0)}),C=mxUtils.bind(this,function(K,I){null==K&&(G.innerText="",K=1);var T=new mxXmlRequest(this.baseUrl+"/projects/"+encodeURIComponent(p+"/"+t)+"/repository/branches?per_page=100&page="+K,null,"GET");c.okButton.setAttribute("disabled","disabled");this.ui.spinner.spin(G,mxResources.get("loading"));null!=x&&(mxEvent.removeListener(G,"scroll",x),x=null);null!=u&&null!=u.parentNode&&u.parentNode.removeChild(u);u=document.createElement("a");u.style.display="block";u.style.cursor="pointer";mxUtils.write(u,
+mxResources.get("more")+"...");var W=mxUtils.bind(this,function(){C(K+1)});mxEvent.addListener(u,"click",W);this.executeRequest(T,mxUtils.bind(this,function(q){this.ui.tryAndHandle(mxUtils.bind(this,function(){this.ui.spinner.stop();1==K&&(l(!0),G.appendChild(g("../ [Up]",mxUtils.bind(this,function(){A=null;E()}),"4px")));var z=JSON.parse(q.getText());if(null==z||0==z.length)mxUtils.br(G),mxUtils.write(G,mxResources.get("repositoryNotFound"));else if(1==z.length&&I)v=z[0].name,A="",B();else{for(var L=
0;L<z.length;L++)mxUtils.bind(this,function(N,M){var m=D.cloneNode();m.style.backgroundColor=0==M%2?Editor.isDarkMode()?"#000000":"#eeeeee":"";m.appendChild(g(N.name,mxUtils.bind(this,function(){v=encodeURIComponent(N.name);A="";B()})));G.appendChild(m)})(z[L],L);100==z.length&&(G.appendChild(u),x=function(){G.scrollTop>=G.scrollHeight-G.offsetHeight&&W()},mxEvent.addListener(G,"scroll",x))}}))}),n)});c.okButton.setAttribute("disabled","disabled");this.ui.spinner.spin(G,mxResources.get("loading"));
-var F=mxUtils.bind(this,function(K){var I=this.ui.spinner,R=0;this.ui.spinner.stop();var W=function(){I.spin(G,mxResources.get("loading"));R+=1},q=function(){--R;0===R&&I.stop()};null==K&&(G.innerText="",K=1);null!=x&&(mxEvent.removeListener(G,"scroll",x),x=null);null!=u&&null!=u.parentNode&&u.parentNode.removeChild(u);u=document.createElement("a");u.style.display="block";u.style.cursor="pointer";mxUtils.write(u,mxResources.get("more")+"...");var z=mxUtils.bind(this,function(){0===R&&F(K+1)});mxEvent.addListener(u,
-"click",z);var L=mxUtils.bind(this,function(M){W();var m=new mxXmlRequest(this.baseUrl+"/groups?per_page=100",null,"GET");this.executeRequest(m,mxUtils.bind(this,function(y){this.ui.tryAndHandle(mxUtils.bind(this,function(){M(JSON.parse(y.getText()));q()}))}),n)}),N=mxUtils.bind(this,function(M,m){W();var y=new mxXmlRequest(this.baseUrl+"/groups/"+M.id+"/projects?per_page=100",null,"GET");this.executeRequest(y,mxUtils.bind(this,function(E){this.ui.tryAndHandle(mxUtils.bind(this,function(){404==E.getStatus()?
-m(M,[]):m(M,JSON.parse(E.getText()));q()}))}),n,!0)});L(mxUtils.bind(this,function(M){if(null==this.user)mxUtils.write(G,mxResources.get("loggedOut"));else{W();var m=new mxXmlRequest(this.baseUrl+"/users/"+this.user.id+"/projects?per_page=100&page="+K,null,"GET");this.executeRequest(m,mxUtils.bind(this,function(y){y=JSON.parse(y.getText());if(null!=y&&0!=y.length||null!=M&&0!=M.length){1==K&&(G.appendChild(g(mxResources.get("enterValue")+"...",mxUtils.bind(this,function(){if(0===R){var O=new FilenameDialog(this.ui,
-"group/project",mxResources.get("ok"),mxUtils.bind(this,function(T){null!=T&&(T=T.split("/"),1<T.length?(p=T.slice(0,T.length-1).join("/"),t=T[T.length-1],A="",C(null,!0)):(this.ui.spinner.stop(),this.ui.handleError({message:mxResources.get("invalidName")})))}),mxResources.get("enterValue"));this.ui.showDialog(O.container,300,80,!0,!1);O.init()}}))),mxUtils.br(G),mxUtils.br(G));for(var E=!0,P=0;P<y.length;P++)mxUtils.bind(this,function(O){var T=D.cloneNode();T.style.backgroundColor=E?Editor.isDarkMode()?
-"#000000":"#eeeeee":"";E=!E;T.appendChild(g(O.name_with_namespace,mxUtils.bind(this,function(){0===R&&(p=O.owner.username,t=O.path,A="",C(null,!0))})));G.appendChild(T)})(y[P]);for(P=0;P<M.length;P++)W(),N(M[P],mxUtils.bind(this,function(O,T){q();for(var V=0;V<T.length;V++){var Q=D.cloneNode();Q.style.backgroundColor=E?Editor.isDarkMode()?"#000000":"#eeeeee":"";E=!E;mxUtils.bind(this,function(S){Q.appendChild(g(S.name_with_namespace,mxUtils.bind(this,function(){0===R&&(p=O.full_path,t=S.path,A="",
-C(null,!0))})));G.appendChild(Q)})(T[V])}}));q()}else q(),mxUtils.br(G),mxUtils.write(G,mxResources.get("repositoryNotFound"));100==y.length&&(G.appendChild(u),x=function(){G.scrollTop>=G.scrollHeight-G.offsetHeight&&z()},mxEvent.addListener(G,"scroll",x))}),n)}}))});b?this.user?F():this.updateUser(function(){F()},n,!0):this.authenticate(mxUtils.bind(this,function(){this.updateUser(function(){F()},n,!0)}),n)};GitLabClient.prototype.logout=function(){this.ui.editor.loadUrl(this.redirectUri+"?doLogout=1&state="+
+var E=mxUtils.bind(this,function(K){var I=this.ui.spinner,T=0;this.ui.spinner.stop();var W=function(){I.spin(G,mxResources.get("loading"));T+=1},q=function(){--T;0===T&&I.stop()};null==K&&(G.innerText="",K=1);null!=x&&(mxEvent.removeListener(G,"scroll",x),x=null);null!=u&&null!=u.parentNode&&u.parentNode.removeChild(u);u=document.createElement("a");u.style.display="block";u.style.cursor="pointer";mxUtils.write(u,mxResources.get("more")+"...");var z=mxUtils.bind(this,function(){0===T&&E(K+1)});mxEvent.addListener(u,
+"click",z);var L=mxUtils.bind(this,function(M){W();var m=new mxXmlRequest(this.baseUrl+"/groups?per_page=100",null,"GET");this.executeRequest(m,mxUtils.bind(this,function(y){this.ui.tryAndHandle(mxUtils.bind(this,function(){M(JSON.parse(y.getText()));q()}))}),n)}),N=mxUtils.bind(this,function(M,m){W();var y=new mxXmlRequest(this.baseUrl+"/groups/"+M.id+"/projects?per_page=100",null,"GET");this.executeRequest(y,mxUtils.bind(this,function(F){this.ui.tryAndHandle(mxUtils.bind(this,function(){404==F.getStatus()?
+m(M,[]):m(M,JSON.parse(F.getText()));q()}))}),n,!0)});L(mxUtils.bind(this,function(M){if(null==this.user)mxUtils.write(G,mxResources.get("loggedOut"));else{W();var m=new mxXmlRequest(this.baseUrl+"/users/"+this.user.id+"/projects?per_page=100&page="+K,null,"GET");this.executeRequest(m,mxUtils.bind(this,function(y){y=JSON.parse(y.getText());if(null!=y&&0!=y.length||null!=M&&0!=M.length){1==K&&(G.appendChild(g(mxResources.get("enterValue")+"...",mxUtils.bind(this,function(){if(0===T){var O=new FilenameDialog(this.ui,
+"group/project",mxResources.get("ok"),mxUtils.bind(this,function(S){null!=S&&(S=S.split("/"),1<S.length?(p=S.slice(0,S.length-1).join("/"),t=S[S.length-1],A="",C(null,!0)):(this.ui.spinner.stop(),this.ui.handleError({message:mxResources.get("invalidName")})))}),mxResources.get("enterValue"));this.ui.showDialog(O.container,300,80,!0,!1);O.init()}}))),mxUtils.br(G),mxUtils.br(G));for(var F=!0,P=0;P<y.length;P++)mxUtils.bind(this,function(O){var S=D.cloneNode();S.style.backgroundColor=F?Editor.isDarkMode()?
+"#000000":"#eeeeee":"";F=!F;S.appendChild(g(O.name_with_namespace,mxUtils.bind(this,function(){0===T&&(p=O.owner.username,t=O.path,A="",C(null,!0))})));G.appendChild(S)})(y[P]);for(P=0;P<M.length;P++)W(),N(M[P],mxUtils.bind(this,function(O,S){q();for(var V=0;V<S.length;V++){var Q=D.cloneNode();Q.style.backgroundColor=F?Editor.isDarkMode()?"#000000":"#eeeeee":"";F=!F;mxUtils.bind(this,function(R){Q.appendChild(g(R.name_with_namespace,mxUtils.bind(this,function(){0===T&&(p=O.full_path,t=R.path,A="",
+C(null,!0))})));G.appendChild(Q)})(S[V])}}));q()}else q(),mxUtils.br(G),mxUtils.write(G,mxResources.get("repositoryNotFound"));100==y.length&&(G.appendChild(u),x=function(){G.scrollTop>=G.scrollHeight-G.offsetHeight&&z()},mxEvent.addListener(G,"scroll",x))}),n)}}))});b?this.user?E():this.updateUser(function(){E()},n,!0):this.authenticate(mxUtils.bind(this,function(){this.updateUser(function(){E()},n,!0)}),n)};GitLabClient.prototype.logout=function(){this.ui.editor.loadUrl(this.redirectUri+"?doLogout=1&state="+
encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host));this.clearPersistentToken();this.setUser(null);b=null;this.setToken(null)}})();DrawioComment=function(b,f,k,d,p,t,v){this.file=b;this.id=f;this.content=k;this.modifiedDate=d;this.createdDate=p;this.isResolved=t;this.user=v;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,f,k,d,p){f()};DrawioComment.prototype.editComment=function(b,f,k){f()};DrawioComment.prototype.deleteComment=function(b,f){b()};DriveComment=function(b,f,k,d,p,t,v,A){DrawioComment.call(this,b,f,k,d,p,t,v);this.pCommentId=A};mxUtils.extend(DriveComment,DrawioComment);DriveComment.prototype.addReply=function(b,f,k,d,p){b={content:b.content};d?b.verb="resolve":p&&(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(t){f(t.replyId)}),k)};
DriveComment.prototype.editComment=function(b,f,k){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"},f,k)};
DriveComment.prototype.deleteComment=function(b,f){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,f)};function mxODPicker(b,f,k,d,p,t,v,A,J,H,G,D,c,g){function l(U,Y){Y=Y||document;return Y.querySelector(U)}function n(U,Y,X){if(null==U["@microsoft.graph.downloadUrl"])if(null==U.parentReference)X();else{d(U.id,U.parentReference.driveId,function(da){n(da,Y,X)},X);return}var Z=new XMLHttpRequest;Z.open("GET",U["@microsoft.graph.downloadUrl"]);var aa=U.file?"image/png"==U.file.mimeType:!1;Z.onreadystatechange=function(){if(4==this.readyState){if(200<=this.status&&299>=this.status)try{var da=Z.responseText;
aa?(da="data:image/png;base64,"+Editor.base64Encode(da),da=Editor.extractGraphModelFromPng(da)):/\.pdf$/.test(U.name)&&(da="data:application/pdf;base64,"+Editor.base64Encode(da),da=Editor.extractGraphModelFromPdf(da));var fa=mxUtils.parseXml(da),ba="mxlibrary"==fa.documentElement.nodeName?fa.documentElement:Editor.extractGraphModel(fa.documentElement);if(null!=ba){Y(ba.ownerDocument);return}}catch(ia){}X()}};(aa||/\.pdf$/.test(U.name))&&Z.overrideMimeType&&Z.overrideMimeType("text/plain; charset=x-user-defined");
Z.send()}function u(){D&&null!=L?z.exportToCanvas(function(U){U=EditorUi.prototype.createImageDataUri(U,null,"png");v(N,U);t(N)},400,null,null,function(U){console.log(U)},600,null,null,null,null,null,L):(v(N,void 0),t(N))}function x(U){function Y(X){V.style.background="transparent";V.innerText="";var Z=document.createElement("div");Z.className="odPreviewStatus";mxUtils.write(Z,X);V.appendChild(Z);q.stop()}if(null!=V)if(V.style.background="transparent",V.innerText="",null==U||U.folder||/\.drawiolib$/.test(U.name))Y(mxResources.get("noPreview"));
else try{null!=U.remoteItem&&(U=U.remoteItem),P=U,q.spin(V),n(U,function(X){q.stop();if(P==U)if("mxlibrary"==X.documentElement.nodeName)Y(mxResources.get("noPreview"));else{var Z=X.getElementsByTagName("diagram");L=AspectDialog.prototype.createViewer(V,0==Z.length?X.documentElement:Z[0],null,"transparent")}},function(){N=null;Y(mxResources.get("notADiagramFile"))})}catch(X){N=null,Y(mxResources.get("notADiagramFile"))}}function B(){var U=l(".odFilesBreadcrumb");if(null!=U){U.innerText="";for(var Y=
-0;Y<y.length-1;Y++){var X=document.createElement("span");X.className="odBCFolder";X.innerHTML=mxUtils.htmlEntities(y[Y].name||mxResources.get("home"));U.appendChild(X);(function(aa,da){X.addEventListener("click",function(){f(null);y=y.slice(0,da);F(aa.driveId,aa.folderId,aa.siteId,aa.name)})})(y[Y],Y);var Z=document.createElement("span");Z.innerHTML=" &gt; ";U.appendChild(Z)}null!=y[y.length-1]&&(Y=document.createElement("span"),Y.innerHTML=mxUtils.htmlEntities(1==y.length?mxResources.get(J?"selectFolder":
-"officeSelDiag"):y[y.length-1].name||mxResources.get("home")),U.appendChild(Y))}}function C(){if(null!=N&&!m)if("sharepoint"==M)F("site",null,N.id,N.displayName);else if("site"==M)F("subsite",null,N.id,N.name);else{var U=N.folder;N=N.remoteItem?N.remoteItem:N;var Y=(N.parentReference?N.parentReference.driveId:null)||M,X=N.id;U?F(Y,X,null,N.name):u()}}function F(U,Y,X,Z,aa){function da(ua){q.stop();var za=document.createElement("table");za.className="odFileListGrid";for(var xa=null,ma=0,Ca=0;null!=
+0;Y<y.length-1;Y++){var X=document.createElement("span");X.className="odBCFolder";X.innerHTML=mxUtils.htmlEntities(y[Y].name||mxResources.get("home"));U.appendChild(X);(function(aa,da){X.addEventListener("click",function(){f(null);y=y.slice(0,da);E(aa.driveId,aa.folderId,aa.siteId,aa.name)})})(y[Y],Y);var Z=document.createElement("span");Z.innerHTML=" &gt; ";U.appendChild(Z)}null!=y[y.length-1]&&(Y=document.createElement("span"),Y.innerHTML=mxUtils.htmlEntities(1==y.length?mxResources.get(J?"selectFolder":
+"officeSelDiag"):y[y.length-1].name||mxResources.get("home")),U.appendChild(Y))}}function C(){if(null!=N&&!m)if("sharepoint"==M)E("site",null,N.id,N.displayName);else if("site"==M)E("subsite",null,N.id,N.name);else{var U=N.folder;N=N.remoteItem?N.remoteItem:N;var Y=(N.parentReference?N.parentReference.driveId:null)||M,X=N.id;U?E(Y,X,null,N.name):u()}}function E(U,Y,X,Z,aa){function da(ua){q.stop();var za=document.createElement("table");za.className="odFileListGrid";for(var xa=null,ma=0,Ca=0;null!=
ua&&Ca<ua.length;Ca++){var wa=ua[Ca];if(1!=ia||!wa.webUrl||0<wa.webUrl.indexOf("sharepoint.com/sites/")||0>wa.webUrl.indexOf("sharepoint.com/")){var ha=wa.displayName||wa.name,ta=mxUtils.htmlEntities(wa.description||ha);ia&&(wa.folder=2==ia?{isRoot:!0}:!0);var Da=null!=wa.folder;if(!J||Da){var oa=document.createElement("tr");oa.className=ma++%2?"odOddRow":"odEvenRow";var ca=document.createElement("td");ca.style.width="36px";var ea=document.createElement("img");ea.src="/images/"+(Da?"folder.png":"file.png");
ea.className="odFileImg";ca.appendChild(ea);oa.appendChild(ca);ca=document.createElement("td");Da=document.createElement("div");Da.className="odFileTitle";Da.innerHTML=mxUtils.htmlEntities(ha);Da.setAttribute("title",ta);ca.appendChild(Da);oa.appendChild(ca);za.appendChild(oa);null==xa&&(xa=oa,xa.className+=" odRowSelected",N=wa,M=U,g||f(N));(function(qa,na){oa.addEventListener("dblclick",C);oa.addEventListener("click",function(){xa!=na&&(xa.className=xa.className.replace("odRowSelected",""),xa=na,
xa.className+=" odRowSelected",N=qa,M=U,g||f(N))})})(wa,oa)}}}0==ma?(ua=document.createElement("div"),ua.className="odEmptyFolder",ua.innerHTML=mxUtils.htmlEntities(mxResources.get("folderEmpty",null,"Folder is empty!")),ka.appendChild(ua)):ka.appendChild(za);B();m=!1}function fa(ua){k(ua?ua:ja,function(za){if(ba){var xa=za.value||[];if(g||ia)Array.prototype.push.apply(ya,xa);else{for(var ma=0;ma<xa.length;ma++){var Ca=xa[ma],wa=Ca.file?Ca.file.mimeType:null;(Ca.folder||"text/html"==wa||"text/xml"==
wa||"application/xml"==wa||"image/png"==wa||/\.svg$/.test(Ca.name)||/\.html$/.test(Ca.name)||/\.xml$/.test(Ca.name)||/\.png$/.test(Ca.name)||/\.drawio$/.test(Ca.name)||/\.drawiolib$/.test(Ca.name)||/\.pdf$/.test(Ca.name))&&ya.push(Ca)}ya.sort(function(ha,ta){var Da=ha.name.toLowerCase(),oa=ta.name.toLowerCase();return ha.folder&&!ta.folder?-1:!ha.folder&&ta.folder?1:Da<oa?-1:Da>oa?1:0})}za["@odata.nextLink"]&&1E3>ya.length?fa(za["@odata.nextLink"]):(clearTimeout(la),da(ya))}},function(za){if(ba){clearTimeout(la);
-var xa=null;try{xa=JSON.parse(za.responseText).error.message}catch(ma){}A(mxResources.get("errorFetchingFolder",null,"Error fetching folder items")+(null!=xa?" ("+xa+")":""));m=!1;q.stop()}},null!=ua)}if(!m){l(".odCatsList").style.display="block";l(".odFilesSec").style.display="block";null!=V&&(V.innerText="",V.style.top="50%");var ba=m=!0,ia=0;E=arguments;var la=setTimeout(function(){m=ba=!1;q.stop();A(mxResources.get("timeout"))},2E4),ka=l(".odFilesList");ka.innerText="";q.spin(ka);switch(U){case "recent":y=
+var xa=null;try{xa=JSON.parse(za.responseText).error.message}catch(ma){}A(mxResources.get("errorFetchingFolder",null,"Error fetching folder items")+(null!=xa?" ("+xa+")":""));m=!1;q.stop()}},null!=ua)}if(!m){l(".odCatsList").style.display="block";l(".odFilesSec").style.display="block";null!=V&&(V.innerText="",V.style.top="50%");var ba=m=!0,ia=0;F=arguments;var la=setTimeout(function(){m=ba=!1;q.stop();A(mxResources.get("timeout"))},2E4),ka=l(".odFilesList");ka.innerText="";q.spin(ka);switch(U){case "recent":y=
[{name:mxResources.get("recent",null,"Recent"),driveId:U}];var pa=p()||{},Ba=[],sa;for(sa in pa)Ba.push(pa[sa]);clearTimeout(la);da(Ba);return;case "shared":var ja="/me/drive/sharedWithMe";y=[{name:mxResources.get("sharedWithMe",null,"Shared With Me"),driveId:U}];break;case "sharepoint":ja="/sites?search=";y=[{name:mxResources.get("sharepointSites",null,"Sharepoint Sites"),driveId:U}];ia=1;break;case "site":y.push({name:Z,driveId:U,folderId:Y,siteId:X});ja="/sites/"+X+"/drives";ia=2;break;case "subsite":y.push({name:Z,
driveId:U,folderId:Y,siteId:X});ja="/drives/"+X+(Y?"/items/"+Y:"/root")+"/children";break;case "search":U=M;y=[{driveId:U,name:mxResources.get("back",null,"Back")}];aa=encodeURIComponent(aa.replace(/'/g,"\\'"));ja=U?"/drives/"+U+"/root/search(q='"+aa+"')":"/me/drive/root/search(q='"+aa+"')";break;default:null==Y?y=[{driveId:U}]:y.push({name:Z,driveId:U,folderId:Y}),ja=(U?"/drives/"+U:"/me/drive")+(Y?"/items/"+Y:"/root")+"/children"}ia||(ja+=(0<ja.indexOf("?")?"&":"?")+"select=id,name,description,parentReference,file,createdBy,lastModifiedBy,lastModifiedDateTime,size,folder,remoteItem,@microsoft.graph.downloadUrl");
-var ya=[];fa()}}function K(U){Q.className=Q.className.replace("odCatSelected","");Q=U;Q.className+=" odCatSelected"}function I(U){m||(S=null,F("search",null,null,null,U))}var R="";null==f&&(f=x,R='<div style="text-align: center;" class="odPreview"></div>');null==p&&(p=function(){var U=null;try{U=JSON.parse(localStorage.getItem("mxODPickerRecentList"))}catch(Y){}return U});null==t&&(t=function(U){if(null!=U){var Y=p()||{};delete U["@microsoft.graph.downloadUrl"];Y[U.id]=U;localStorage.setItem("mxODPickerRecentList",
-JSON.stringify(Y))}});R='<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 class="geAdaptiveAsset" src="/images/update32.png" width="16" height="16" title="'+mxUtils.htmlEntities(mxResources.get("refresh"))+'Refresh" border="0"/></div><div class="odFilesList"></div></div>'+R+(H?'<div id="odBackBtn" class="odLinkBtn">&lt; '+mxUtils.htmlEntities(mxResources.get("back"))+"</div>":"")+(G?'<button id="odSubmitBtn" class="odSubmitBtn">'+
+var ya=[];fa()}}function K(U){Q.className=Q.className.replace("odCatSelected","");Q=U;Q.className+=" odCatSelected"}function I(U){m||(R=null,E("search",null,null,null,U))}var T="";null==f&&(f=x,T='<div style="text-align: center;" class="odPreview"></div>');null==p&&(p=function(){var U=null;try{U=JSON.parse(localStorage.getItem("mxODPickerRecentList"))}catch(Y){}return U});null==t&&(t=function(U){if(null!=U){var Y=p()||{};delete U["@microsoft.graph.downloadUrl"];Y[U.id]=U;localStorage.setItem("mxODPickerRecentList",
+JSON.stringify(Y))}});T='<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 class="geAdaptiveAsset" src="/images/update32.png" width="16" height="16" title="'+mxUtils.htmlEntities(mxResources.get("refresh"))+'Refresh" border="0"/></div><div class="odFilesList"></div></div>'+T+(H?'<div id="odBackBtn" class="odLinkBtn">&lt; '+mxUtils.htmlEntities(mxResources.get("back"))+"</div>":"")+(G?'<button id="odSubmitBtn" class="odSubmitBtn">'+
mxUtils.htmlEntities(mxResources.get(J?"select":"open"))+"</button>":"");var W=null!=window.Editor&&null!=Editor.isDarkMode&&Editor.isDarkMode();W=".odCatsList *, .odFilesSec * { user-select: none; }.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 {"+
(W?"":"\tbackground-color: #eeeeee;")+"}.odEvenRow {"+(W?"":"\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;}";
-var q=new Spinner({left:"50%",lines:12,length:8,width:3,radius:5,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1,trail:60,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2E9}),z=new Editor,L=null,N=null,M=null,m=!1,y=[],E=null,P=null;this.getSelectedItem=function(){null!=N&&t(N);return N};if(null==l("#mxODPickerCss")){var O=document.head||document.getElementsByTagName("head")[0],T=document.createElement("style");O.appendChild(T);T.type="text/css";T.id="mxODPickerCss";T.appendChild(document.createTextNode(W))}b.innerHTML=
-R;var V=l(".odPreview"),Q=l("#odFiles");b=function(U,Y){Y=Y||document;return Y.querySelectorAll(U)}(".odCatListTitle");for(R=0;R<b.length;R++)b[R].addEventListener("click",function(){N=P=null;if(!m)switch(K(this),this.id){case "odFiles":F();break;case "odRecent":F("recent");break;case "odShared":F("shared");break;case "odSharepoint":F("sharepoint")}});var S=null;l("#odSearchBox").addEventListener("keyup",function(U){var Y=this;null!=S&&clearTimeout(S);13==U.keyCode?I(Y.value):S=setTimeout(function(){I(Y.value)},
-500)});l("#refreshOD").addEventListener("click",function(){if(null!=E){f(null);var U=y.slice();F.apply(this,E);y=U}});H&&l("#odBackBtn").addEventListener("click",H);G&&l("#odSubmitBtn").addEventListener("click",u);null!=c?(H=c.pop(),"sharepoint"==c[0].driveId&&K(l("#odSharepoint")),y=c,F(H.driveId,H.folderId,H.siteId,H.name)):F()};App=function(b,f,k){EditorUi.call(this,b,f,null!=k?k:"1"==urlParams.lightbox||"min"==uiTheme&&"0"!=urlParams.chrome);this.editor.addListener("autosaveChanged",mxUtils.bind(this,function(){var d=this.getCurrentFile();null!=d&&EditorUi.logEvent({category:(this.editor.autosave?"ON":"OFF")+"-AUTOSAVE-FILE-"+d.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=":
+var q=new Spinner({left:"50%",lines:12,length:8,width:3,radius:5,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1,trail:60,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2E9}),z=new Editor,L=null,N=null,M=null,m=!1,y=[],F=null,P=null;this.getSelectedItem=function(){null!=N&&t(N);return N};if(null==l("#mxODPickerCss")){var O=document.head||document.getElementsByTagName("head")[0],S=document.createElement("style");O.appendChild(S);S.type="text/css";S.id="mxODPickerCss";S.appendChild(document.createTextNode(W))}b.innerHTML=
+T;var V=l(".odPreview"),Q=l("#odFiles");b=function(U,Y){Y=Y||document;return Y.querySelectorAll(U)}(".odCatListTitle");for(T=0;T<b.length;T++)b[T].addEventListener("click",function(){N=P=null;if(!m)switch(K(this),this.id){case "odFiles":E();break;case "odRecent":E("recent");break;case "odShared":E("shared");break;case "odSharepoint":E("sharepoint")}});var R=null;l("#odSearchBox").addEventListener("keyup",function(U){var Y=this;null!=R&&clearTimeout(R);13==U.keyCode?I(Y.value):R=setTimeout(function(){I(Y.value)},
+500)});l("#refreshOD").addEventListener("click",function(){if(null!=F){f(null);var U=y.slice();E.apply(this,F);y=U}});H&&l("#odBackBtn").addEventListener("click",H);G&&l("#odSubmitBtn").addEventListener("click",u);null!=c?(H=c.pop(),"sharepoint"==c[0].driveId&&K(l("#odSharepoint")),y=c,E(H.driveId,H.folderId,H.siteId,H.name)):E()};App=function(b,f,k){EditorUi.call(this,b,f,null!=k?k:"1"==urlParams.lightbox||"min"==uiTheme&&"0"!=urlParams.chrome);this.editor.addListener("autosaveChanged",mxUtils.bind(this,function(){var d=this.getCurrentFile();null!=d&&EditorUi.logEvent({category:(this.editor.autosave?"ON":"OFF")+"-AUTOSAVE-FILE-"+d.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=":
(new Image).src=mxGraph.prototype.warningImage.src;window.geOpenWindow=mxUtils.bind(this,function(d,p,t){if("1"==urlParams.openInSameWin||navigator.standalone)null!=t&&t();else{var v=null;try{v=window.open(d)}catch(A){}null==v||void 0===v?this.showDialog((new PopupDialog(this,d,p,t)).container,340,140,!0,!0):null!=p&&p()}});this.updateDocumentTitle();this.updateUi();window.showOpenAlert=mxUtils.bind(this,function(d){null!=window.openFile&&window.openFile.cancel(!0);this.handleError(d)});this.editor.chromeless&&
!this.editor.editable||this.addFileDropHandler([document]);if(null!=App.DrawPlugins){for(b=0;b<App.DrawPlugins.length;b++)try{App.DrawPlugins[b](this)}catch(d){null!=window.console&&console.log("Plugin Error:",d,App.DrawPlugins[b])}finally{App.embedModePluginsCount--,this.initializeEmbedMode()}window.Draw.loadPlugin=mxUtils.bind(this,function(d){try{d(this)}finally{App.embedModePluginsCount--,this.initializeEmbedMode()}});setTimeout(mxUtils.bind(this,function(){0<App.embedModePluginsCount&&(App.embedModePluginsCount=
0,this.initializeEmbedMode())}),5E3)}this.load()};App.ERROR_TIMEOUT="timeout";App.ERROR_BUSY="busy";App.ERROR_UNKNOWN="unknown";App.MODE_GOOGLE="google";App.MODE_DROPBOX="dropbox";App.MODE_ONEDRIVE="onedrive";App.MODE_M365="m365";App.MODE_GITHUB="github";App.MODE_GITLAB="gitlab";App.MODE_DEVICE="device";App.MODE_BROWSER="browser";App.MODE_TRELLO="trello";App.MODE_EMBED="embed";App.MODE_ATLAS="atlas";App.DROPBOX_APPKEY=window.DRAWIO_DROPBOX_ID;App.DROPBOX_URL="js/dropbox/Dropbox-sdk.min.js";
@@ -14410,8 +14416,8 @@ App.prototype.updateDocumentTitle=function(){var b=this.editor.appName,f=this.ge
App.prototype.getThumbnail=function(b,f,k){k=null!=k?k:0;var d=!1;try{var p=!0,t=window.setTimeout(mxUtils.bind(this,function(){p=!1;f(null)}),this.timeout),v=mxUtils.bind(this,function(W){window.clearTimeout(t);p&&f(W)});null==this.thumbImageCache&&(this.thumbImageCache={});var A=this.editor.graph,J=A.backgroundImage;if(null!=this.pages&&this.currentPage!=this.pages[0]){var H=A.getGlobalVariable;A=this.createTemporaryGraph(A.getStylesheet());A.setBackgroundImage=this.editor.graph.setBackgroundImage;
var G=this.pages[0];this.currentPage==G?A.setBackgroundImage(J):null!=G.viewState&&null!=G.viewState&&(J=G.viewState.backgroundImage,A.setBackgroundImage(J));A.getGlobalVariable=function(W){return"page"==W?G.getName():"pagenumber"==W?1:H.apply(this,arguments)};A.getGlobalVariable=H;document.body.appendChild(A.container);A.model.setRoot(G.root)}if(mxClient.IS_CHROMEAPP||Editor.useCanvasForExport)this.editor.exportToCanvas(mxUtils.bind(this,function(W){try{A!=this.editor.graph&&null!=A.container.parentNode&&
A.container.parentNode.removeChild(A.container)}catch(q){W=null}v(W)}),b,this.thumbImageCache,"#ffffff",function(){v()},null,null,null,null,null,null,A,k,null,null,null,"diagram",null),d=!0;else if(Editor.canvasSupported&&null!=this.getCurrentFile()){var D=document.createElement("canvas"),c=A.getGraphBounds(),g=A.view.translate,l=A.view.scale;null!=J&&(c=mxRectangle.fromRectangle(c),c.add(new mxRectangle((g.x+J.x)*l,(g.y+J.y)*l,J.width*l,J.height*l)));var n=b/c.width;n=Math.min(1,Math.min(3*b/(4*
-c.height),n));var u=Math.floor(c.x),x=Math.floor(c.y);D.setAttribute("width",Math.ceil(n*(c.width+4)));D.setAttribute("height",Math.ceil(n*(c.height+4)));var B=D.getContext("2d");B.scale(n,n);B.translate(-u,-x);var C=A.background;if(null==C||""==C||C==mxConstants.NONE)C="#ffffff";B.save();B.fillStyle=C;B.fillRect(u,x,Math.ceil(c.width+4),Math.ceil(c.height+4));B.restore();if(null!=J){var F=new Image;F.src=J.src;B.drawImage(F,J.x*n,J.y*n,J.width*n,J.height*n)}var K=new mxJsCanvas(D),I=new mxAsyncCanvas(this.thumbImageCache);
-K.images=this.thumbImageCache.images;var R=new mxImageExport;R.drawShape=function(W,q){W.shape instanceof mxShape&&W.shape.checkBounds()&&(q.save(),q.translate(.5,.5),W.shape.paint(q),q.translate(-.5,-.5),q.restore())};R.drawText=function(W,q){};R.drawState(A.getView().getState(A.model.root),I);I.finish(mxUtils.bind(this,function(){try{R.drawState(A.getView().getState(A.model.root),K),A!=this.editor.graph&&null!=A.container.parentNode&&A.container.parentNode.removeChild(A.container)}catch(W){D=null}v(D)}));
+c.height),n));var u=Math.floor(c.x),x=Math.floor(c.y);D.setAttribute("width",Math.ceil(n*(c.width+4)));D.setAttribute("height",Math.ceil(n*(c.height+4)));var B=D.getContext("2d");B.scale(n,n);B.translate(-u,-x);var C=A.background;if(null==C||""==C||C==mxConstants.NONE)C="#ffffff";B.save();B.fillStyle=C;B.fillRect(u,x,Math.ceil(c.width+4),Math.ceil(c.height+4));B.restore();if(null!=J){var E=new Image;E.src=J.src;B.drawImage(E,J.x*n,J.y*n,J.width*n,J.height*n)}var K=new mxJsCanvas(D),I=new mxAsyncCanvas(this.thumbImageCache);
+K.images=this.thumbImageCache.images;var T=new mxImageExport;T.drawShape=function(W,q){W.shape instanceof mxShape&&W.shape.checkBounds()&&(q.save(),q.translate(.5,.5),W.shape.paint(q),q.translate(-.5,-.5),q.restore())};T.drawText=function(W,q){};T.drawState(A.getView().getState(A.model.root),I);I.finish(mxUtils.bind(this,function(){try{T.drawState(A.getView().getState(A.model.root),K),A!=this.editor.graph&&null!=A.container.parentNode&&A.container.parentNode.removeChild(A.container)}catch(W){D=null}v(D)}));
d=!0}}catch(W){d=!1,null!=A&&A!=this.editor.graph&&null!=A.container.parentNode&&A.container.parentNode.removeChild(A.container)}d||window.clearTimeout(t);return d};
(function(){var b=EditorUi.prototype.setMode;App.prototype.setMode=function(f,k){b.apply(this,arguments);null!=this.mode&&(Editor.useLocalStorage=this.mode==App.MODE_BROWSER);if(null!=this.appIcon){var d=this.getCurrentFile();f=null!=d?d.getMode():f;null==this.updateTitleListener&&(this.updateTitleListener=mxUtils.bind(this,function(){f==App.MODE_GOOGLE?this.appIcon.setAttribute("title",mxResources.get("openIt",[mxResources.get("googleDrive")])):f==App.MODE_DROPBOX?this.appIcon.setAttribute("title",
mxResources.get("openIt",[mxResources.get("dropbox")])):f==App.MODE_ONEDRIVE?this.appIcon.setAttribute("title",mxResources.get("openIt",[mxResources.get("oneDrive")])):this.appIcon.removeAttribute("title")}),this.addListener("languageChanged",mxUtils.bind(this,function(){this.updateTitleListener()})));this.updateTitleListener()}if(k)try{if(isLocalStorage)localStorage.setItem(".mode",f);else if("undefined"!=typeof Storage){var p=new Date;p.setYear(p.getFullYear()+1);document.cookie="MODE="+f+"; expires="+
@@ -14441,9 +14447,10 @@ v?2:6<v?4:3;A=new CreateDialog(this,A,mxUtils.bind(this,function(H,G){if(null==G
["window.opener."+d]));}catch(v){this.handleError(v,mxResources.get("errorLoadingFile"))}else this.loadTemplate(d,function(v){t(v)},mxUtils.bind(this,function(v){this.handleError(v,mxResources.get("errorLoadingFile"),p)}))}else(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.state&&null!=this.stateArg&&"open"==this.stateArg.action?null!=this.stateArg.ids&&(window.history&&window.history.replaceState&&window.history.replaceState(null,null,window.location.pathname+this.getSearch(["state",
"splash"])),window.location.hash="G"+this.stateArg.ids[0]):(null==window.location.hash||1>=window.location.hash.length)&&null!=this.drive&&null!=this.stateArg&&"create"==this.stateArg.action?(window.history&&window.history.replaceState&&window.history.replaceState(null,null,window.location.pathname+this.getSearch(["state"])),this.setMode(App.MODE_GOOGLE),"0"==urlParams.splash?this.createFile(null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename):this.actions.get("new").funct()):
(null!=urlParams.open&&window.history&&window.history.replaceState&&(window.history.replaceState(null,null,window.location.pathname+this.getSearch(["open","sketch"])),window.location.hash=urlParams.open),k())}}catch(v){this.handleError(v)}};
-App.prototype.executeCreateObject=function(b,f){try{EditorUi.debug("App.executeCreateObject",[this],"value",[b]);var k=mxUtils.bind(this,function(t){this.spinner.stop();this.createFile(null!=b.filename?b.filename:this.defaultFilename,t,null,null,mxUtils.bind(this,function(){null!=urlParams.pv&&this.setPageVisible("1"==urlParams.pv);null!=urlParams.grid&&this.editor.graph.setGridEnabled("1"==urlParams.grid);this.initialFitDiagram(1.2);null!=f&&f();b.type="xml";b.compressed=!0;b.data=Graph.compress(t);
-window.location.hash="create="+encodeURIComponent(JSON.stringify(b))}),!0,null,!0)}),d=b.data;b.compressed&&(d=Graph.decompress(d));if("mermaid"==b.type)if(window.isMermaidEnabled)this.parseMermaidDiagram(d,null,mxUtils.bind(this,function(t){k(t)}),mxUtils.bind(this,function(t){this.handleError(t)}),null,!0);else throw Error(mxResources.get("serviceUnavailableOrBlocked"));else if("generate"==b.type&&this.spinner.spin(document.body,mxResources.get("generate")+" '"+d+"'"))this.generateOpenAiMermaidDiagram(d,
-function(t){k(t)},mxUtils.bind(this,function(t){this.handleError(t,mxResources.get("errorLoadingFile"))}),!0,{complexity:"high"});else if("csv"==b.type){var p=this.createTemporaryGraph(this.editor.graph.getStylesheet());this.importCsv(d,mxUtils.bind(this,function(){var t=new mxCodec;k(mxUtils.getXml(t.encode(p.getModel())))}),p,!0)}else if("xml"==b.type)k(d);else throw Error(mxResources.get("invalidCallFnNotFound",[b.type]));}catch(t){this.handleError(t,mxResources.get("errorLoadingFile"))}};
+App.prototype.executeCreateObject=function(b,f){try{EditorUi.debug("App.executeCreateObject",[this],"value",[b]);var k=mxUtils.bind(this,function(t){this.spinner.stop();this.createFile(null!=b.filename?b.filename:this.defaultFilename,t,null,null,mxUtils.bind(this,function(){null!=urlParams.pv&&this.setPageVisible("1"==urlParams.pv);null!=urlParams.grid&&this.editor.graph.setGridEnabled("1"==urlParams.grid);this.initialFitDiagram(1.2);if("pop"==b.effect){var v=this.editor.graph,A=v.model.getDescendants(v.model.getRoot()),
+J=v.getNodesForCells(A);Graph.setOpacityForNodes(J,0);window.setTimeout(mxUtils.bind(this,function(){var H=v.createPopAnimations(A,!0);v.executeAnimations(H)}),200)}null!=f&&f();b.type="xml";b.compressed=!0;b.data=Graph.compress(t);window.location.hash="create="+encodeURIComponent(JSON.stringify(b))}),!0,null,!0)}),d=b.data;b.compressed&&(d=Graph.decompress(d));if("mermaid"==b.type)if(window.isMermaidEnabled)this.parseMermaidDiagram(d,null,mxUtils.bind(this,function(t){k(t)}),mxUtils.bind(this,function(t){this.handleError(t)}),
+null,!0);else throw Error(mxResources.get("serviceUnavailableOrBlocked"));else if("generate"==b.type&&this.spinner.spin(document.body,mxResources.get("generate")+" '"+d+"'"))this.generateOpenAiMermaidDiagram(d,function(t){k(t)},mxUtils.bind(this,function(t){this.handleError(t,mxResources.get("errorLoadingFile"))}),!0,{complexity:"high"});else if("csv"==b.type){var p=this.createTemporaryGraph(this.editor.graph.getStylesheet());this.importCsv(d,mxUtils.bind(this,function(){var t=new mxCodec;k(mxUtils.getXml(t.encode(p.getModel())))}),
+p,!0)}else if("xml"==b.type)k(d);else throw Error(mxResources.get("invalidCallFnNotFound",[b.type]));}catch(t){this.handleError(t,mxResources.get("errorLoadingFile"))}};
App.prototype.openGenerateDialog=function(b){null==this.chatWindow?(this.chatWindow=new ChatWindow(this,224,104,360,480),this.chatWindow.window.addListener("show",mxUtils.bind(this,function(){this.fireEvent(new mxEventObject("chat"))})),this.chatWindow.window.addListener("hide",function(){this.fireEvent(new mxEventObject("chat"))}),this.chatWindow.window.setVisible(!0),this.fireEvent(new mxEventObject("chat"))):this.chatWindow.window.setVisible(!0);null!=b&&this.chatWindow.generate(b)};
App.prototype.openTemplateDialog=function(b){var f=this.editor.graph;f.isEnabled()&&!f.isCellLocked(f.getDefaultParent())&&(b=new NewDialog(this,null,!1,mxUtils.bind(this,function(k){this.hideDialog();if(null!=k){var d=this.editor.graph.getFreeInsertPoint(!0);f.setSelectionCells(this.importXml(k,Math.max(d.x,20),Math.max(d.y,20),!0,null,null,!0));f.scrollCellToVisible(f.getSelectionCell())}}),null,null,null,null,null,null,null,null,null,null,!1,mxResources.get("insert"),null,null,b),this.showDialog(b.container,
620,460,!0,!0,mxUtils.bind(this,function(){this.sidebar.hideTooltip()})),b.init())};App.prototype.loadDraft=function(b,f){this.createFile(this.defaultFilename,b,null,null,mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,function(){var k=this.getCurrentFile();null!=k&&(k.fileChanged(),null!=f&&f())}),0)}),null,null,!0)};
@@ -14502,11 +14509,11 @@ null!=d&&d();else if("S"==b.charAt(0))this.spinner.stop(),this.alert("[Deprecati
[this],"evt",[u]);if(u.source==G)try{"create"==u.data.action&&null!=u.data.data&&(mxEvent.removeListener(window,"message",D),this.executeCreateObject(u.data.data))}catch(x){c=null}});mxEvent.addListener(window,"message",D);G.postMessage(JSON.stringify({event:"ready"}),"*")}else this.executeCreateObject(H)}else if("R"==b.charAt(0)){this.spinner.stop();var c=decodeURIComponent(b.substring(1));"<"!=c.charAt(0)&&(c=Graph.decompress(c));H=new LocalFile(this,c,null!=urlParams.title?decodeURIComponent(urlParams.title):
this.defaultFilename,!0);H.getHash=function(){return b};this.fileLoaded(H);null!=d&&d()}else if("E"==b.charAt(0))null==this.getCurrentFile()?this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile")):this.remoteInvoke("getDraftFileContent",null,null,mxUtils.bind(this,function(u,x){this.spinner.stop();this.fileLoaded(new EmbedFile(this,u,x));null!=d&&d()}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},
mxResources.get("errorLoadingFile"))}));else if("U"==b.charAt(0)){var g=decodeURIComponent(b.substring(1)),l=mxUtils.bind(this,function(){if("https://drive.google.com/uc?id="!=g.substring(0,31)||null==this.drive&&"function"!==typeof window.DriveClient)return!1;this.hideDialog();var u=mxUtils.bind(this,function(){this.spinner.stop();if(null!=this.drive){var x=g.substring(31,g.lastIndexOf("&ex"));this.loadFile("G"+x,f,null,mxUtils.bind(this,function(){var B=this.getCurrentFile();null!=B&&this.editor.chromeless&&
-!this.editor.editable&&(B.getHash=function(){return"G"+x},window.location.hash="#"+B.getHash());null!=d&&d()}));return!0}return!1});!u()&&this.spinner.spin(document.body,mxResources.get("loading"))&&this.addListener("clientLoaded",u);return!0});this.loadTemplate(g,mxUtils.bind(this,function(u){this.spinner.stop();if(null!=u&&0<u.length){var x=this.defaultFilename;if(null==urlParams.title&&"1"!=urlParams.notitle){var B=g,C=g.lastIndexOf("."),F=B.lastIndexOf("/");C>F&&0<F&&(B=B.substring(F+1,C),C=g.substring(C),
+!this.editor.editable&&(B.getHash=function(){return"G"+x},window.location.hash="#"+B.getHash());null!=d&&d()}));return!0}return!1});!u()&&this.spinner.spin(document.body,mxResources.get("loading"))&&this.addListener("clientLoaded",u);return!0});this.loadTemplate(g,mxUtils.bind(this,function(u){this.spinner.stop();if(null!=u&&0<u.length){var x=this.defaultFilename;if(null==urlParams.title&&"1"!=urlParams.notitle){var B=g,C=g.lastIndexOf("."),E=B.lastIndexOf("/");C>E&&0<E&&(B=B.substring(E+1,C),C=g.substring(C),
Editor.useCanvasForExport||".png"!=C||(C=".drawio"),".svg"===C||".xml"===C||".html"===C||".png"===C||".drawio"===C)&&(x=B+C)}u=new LocalFile(this,u,null!=urlParams.title?decodeURIComponent(urlParams.title):x,!0);u.getHash=function(){return b};this.fileLoaded(u,!0)?null!=d&&d():l()||this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"))}else l()||this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"))}),mxUtils.bind(this,
function(){l()||(this.spinner.stop(),this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile")))}),null!=urlParams["template-filename"]?decodeURIComponent(urlParams["template-filename"]):null)}else{var n=this.getModeForChar(b.charAt(0));mxUtils.bind(this,function(){var u=this.getServiceForName(n);if(null==u)this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var B=this.getCurrentFile();
-window.location.hash=null!=B?B.getHash():""}));else{var x=b.charAt(0);b=decodeURIComponent(b.substring(1));u.getFile(b,mxUtils.bind(this,function(B){this.spinner.stop();this.fileLoaded(B);var C=this.getCurrentFile();if(null==C)window.location.hash="",this.showSplash();else if(this.editor.chromeless&&!this.editor.editable){C.getHash=function(){return x+b};B="#"+C.getHash();try{var F=this.getHashObject();null==F||mxUtils.isEmptyObject(F)||(B=B+"#"+encodeURIComponent(JSON.stringify(F)))}catch(K){}window.location.replace(B)}else B==
-C&&null==B.getMode()&&this.updateStatus(mxUtils.bind(this,function(){var K=mxResources.get("copyCreated");this.editor.setStatus('<div title="'+K+'" class="geStatusAlert">'+K+"</div>")}));null!=d&&d()}),mxUtils.bind(this,function(B){null!=window.console&&null!=B&&console.log("error in loadFile:",b,B);var C=mxUtils.bind(this,function(){var F=this.getCurrentFile();null==F?(window.location.hash="",this.showSplash()):window.location.hash="#"+F.getHash()});null==B||"AbortError"!=B.name?this.handleError(B,
+window.location.hash=null!=B?B.getHash():""}));else{var x=b.charAt(0);b=decodeURIComponent(b.substring(1));u.getFile(b,mxUtils.bind(this,function(B){this.spinner.stop();this.fileLoaded(B);var C=this.getCurrentFile();if(null==C)window.location.hash="",this.showSplash();else if(this.editor.chromeless&&!this.editor.editable){C.getHash=function(){return x+b};B="#"+C.getHash();try{var E=this.getHashObject();null==E||mxUtils.isEmptyObject(E)||(B=B+"#"+encodeURIComponent(JSON.stringify(E)))}catch(K){}window.location.replace(B)}else B==
+C&&null==B.getMode()&&this.updateStatus(mxUtils.bind(this,function(){var K=mxResources.get("copyCreated");this.editor.setStatus('<div title="'+K+'" class="geStatusAlert">'+K+"</div>")}));null!=d&&d()}),mxUtils.bind(this,function(B){null!=window.console&&null!=B&&console.log("error in loadFile:",b,B);var C=mxUtils.bind(this,function(){var E=this.getCurrentFile();null==E?(window.location.hash="",this.showSplash()):window.location.hash="#"+E.getHash()});null==B||"AbortError"!=B.name?this.handleError(B,
null!=B?mxResources.get("errorLoadingFile"):null,C,null,null,"#"+x+b):C()}))}})()}}),v=this.getCurrentFile(),A=mxUtils.bind(this,function(){p||null==v||!v.isModified()?t():this.confirm(mxResources.get("allChangesLost"),mxUtils.bind(this,function(){null!=v&&(window.location.hash=v.getHash())}),t,mxResources.get("cancel"),mxResources.get("discardChanges"))});null==b||0==b.length||null==f&&null!=v&&!v.isModified()&&this.isBlankFile()?A():null==v||f?A():this.showDialog((new PopupDialog(this,this.getUrl()+
"#"+b,null,A)).container,340,140,!0,!0)};
App.prototype.getLibraryStorageHint=function(b){var f=b.getTitle();b.constructor!=LocalLibrary&&(f+="\n"+b.getHash());b.constructor==DriveLibrary?f+=" ("+mxResources.get("googleDrive")+")":b.constructor==GitHubLibrary?f+=" ("+mxResources.get("github")+")":b.constructor==TrelloLibrary?f+=" ("+mxResources.get("trello")+")":b.constructor==DropboxLibrary?f+=" ("+mxResources.get("dropbox")+")":b.constructor==OneDriveLibrary?f+=" ("+mxResources.get("oneDrive")+")":b.constructor==StorageLibrary?f+=" ("+
@@ -14588,7 +14595,7 @@ App.prototype.getCurrentUser=function(){var b=null;null!=this.drive&&null!=this.
Editor.prototype.resetGraph=function(){editorResetGraph.apply(this,arguments);null==this.graph.defaultPageFormat&&(this.graph.pageFormat=mxSettings.getPageFormat())};(function(){var b=mxPopupMenu.prototype.showMenu;mxPopupMenu.prototype.showMenu=function(){this.div.style.overflowY="auto";this.div.style.overflowX="hidden";this.div.style.maxHeight=Math.max(document.body.clientHeight,document.documentElement.clientHeight)-(EditorUi.isElectronApp?50:10)+"px";b.apply(this,arguments)};Menus.prototype.createHelpLink=function(k){return this.editorUi.createHelpIcon(k)};Menus.prototype.addLinkToItem=function(k,d){null!=k&&k.firstChild.nextSibling.appendChild(this.createHelpLink(d))};
Menus.prototype.removeCustomFont=function(k,d){for(var p=0;p<this.customFonts.length;p++)if(this.customFonts[p].name==k&&this.customFonts[p].url==d){this.customFonts.splice(p,1);this.editorUi.fireEvent(new mxEventObject("customFontsChanged","customFonts",this.customFonts));break}};Menus.prototype.containsFont=function(k,d){for(var p=0;p<this.customFonts.length;p++)if(this.customFonts[p].name==k&&this.customFonts[p].url==d)return!0;for(p=0;p<this.defaultFonts.length;p++){var t=this.defaultFonts[p];
if("string"!==typeof t&&t.fontFamily==k&&t.fontUrl==d||"string"===typeof t&&t==k&&null==d)return!0}return!1};Menus.prototype.addCustomFont=function(k,d){null==k||this.containsFont(k,d)||(this.customFonts.push({name:k,url:d}),this.editorUi.fireEvent(new mxEventObject("customFontsChanged","customFonts",this.customFonts)))};var f=Menus.prototype.init;Menus.prototype.init=function(){function k(q,z,L){d.editor.isExportToCanvas()?d.showExportDialog(mxResources.get("image"),!1,mxResources.get("export"),
-"https://www.drawio.com/doc/faq/export-diagram",mxUtils.bind(this,function(N,M,m,y,E,P,O,T,V,Q,S,U,Y){var X=parseInt(N);!isNaN(X)&&0<X&&(d.exportImage(X/100,M&&"png"==q,m,y,E&&"png"==q,O,!T,V,q,S,null,U,Y),null!=L&&L(N,M,m,y,E,P,O,T,V,Q,S,U,Y))}),!0,z,q,!0):d.isOffline()||mxClient.IS_IOS&&navigator.standalone||d.showRemoteExportDialog(mxResources.get("export"),null,mxUtils.bind(this,function(N,M,m,y,E){d.downloadFile(M&&"png"==q?"xmlpng":q,null,null,N,null,null,m,y,E)}),!1,!0)}f.apply(this,arguments);
+"https://www.drawio.com/doc/faq/export-diagram",mxUtils.bind(this,function(N,M,m,y,F,P,O,S,V,Q,R,U,Y){var X=parseInt(N);!isNaN(X)&&0<X&&(d.exportImage(X/100,M&&"png"==q,m,y,F&&"png"==q,O,!S,V,q,R,null,U,Y),null!=L&&L(N,M,m,y,F,P,O,S,V,Q,R,U,Y))}),!0,z,q,!0):d.isOffline()||mxClient.IS_IOS&&navigator.standalone||d.showRemoteExportDialog(mxResources.get("export"),null,mxUtils.bind(this,function(N,M,m,y,F){d.downloadFile(M&&"png"==q?"xmlpng":q,null,null,N,null,null,m,y,F)}),!1,!0)}f.apply(this,arguments);
var d=this.editorUi,p=d.editor.graph,t=mxUtils.bind(p,p.isEnabled);"1"==urlParams.noFileMenu&&(this.defaultMenuItems=this.defaultMenuItems.filter(function(q){return"file"!=q}));d.actions.addAction("new...",function(){var q=d.isOffline(),z=new NewDialog(d,q,!(d.mode==App.MODE_DEVICE&&"chooseFileSystemEntries"in window));d.showDialog(z.container,q?350:620,q?70:460,!0,!0,function(L){null!=d.sidebar&&d.sidebar.hideTooltip();L&&null==d.getCurrentFile()&&d.showSplash()});z.init()});d.actions.put("insertTemplate",
new Action("template...",function(){d.openTemplateDialog()})).isEnabled=t;var v=d.actions.addAction("shareCursor",function(){d.setShareCursorPosition(!d.isShareCursorPosition())});v.setToggleAction(!0);v.setSelectedCallback(function(){return d.isShareCursorPosition()});v=d.actions.addAction("showRemoteCursors",function(){d.setShowRemoteCursors(!d.isShowRemoteCursors())});v.setToggleAction(!0);v.setSelectedCallback(function(){return d.isShowRemoteCursors()});v=d.actions.addAction("points",function(){d.editor.graph.view.setUnit(mxConstants.POINTS)});
v.setToggleAction(!0);v.setSelectedCallback(function(){return d.editor.graph.view.unit==mxConstants.POINTS});v=d.actions.addAction("inches",function(){d.editor.graph.view.setUnit(mxConstants.INCHES)});v.setToggleAction(!0);v.setSelectedCallback(function(){return d.editor.graph.view.unit==mxConstants.INCHES});v=d.actions.addAction("millimeters",function(){d.editor.graph.view.setUnit(mxConstants.MILLIMETERS)});v.setToggleAction(!0);v.setSelectedCallback(function(){return d.editor.graph.view.unit==mxConstants.MILLIMETERS});
@@ -14599,9 +14606,9 @@ new Action("light",function(q){d.setAndPersistDarkMode(!1)}));v.setToggleAction(
d.actions.addAction("properties...",function(){d.getPublicUrl(d.getCurrentFile(),function(q){q=new FilePropertiesDialog(d,q);d.showDialog(q.container,340,200,!0,!0);q.init()})}).isEnabled=t;window.mxFreehand&&(v=d.actions.put("insertFreehand",new Action("freehand",function(){p.isEnabled()&&(null==d.freehandWindow&&(d.freehandWindow=new FreehandWindow(d,document.body.offsetWidth-420,102,180,126,!0)),p.freehand.isDrawing()?p.freehand.stopDrawing():p.freehand.startDrawing(),d.freehandWindow.window.setVisible(p.freehand.isDrawing()))},
null,null,"X")),v.isEnabled=function(){return t()},v.setToggleAction(!0),v.setSelectedCallback(function(){return null!=d.freehandWindow&&d.freehandWindow.window.isVisible()}));d.actions.put("exportXml",new Action("formatXml...",function(){var q=document.createElement("div");q.style.whiteSpace="nowrap";var z=null==d.pages||1>=d.pages.length,L=document.createElement("h3");mxUtils.write(L,mxResources.get("formatXml"));L.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";q.appendChild(L);
L=document.createElement("div");L.className="geDialogSection";var N=d.addCheckbox(L,mxResources.get("selectionOnly"),!1,p.isSelectionEmpty()),M=d.addCheckbox(L,mxResources.get("compressed"),Editor.defaultCompressed),m=d.addCheckbox(L,mxResources.get("allPages"),!z,z);q.appendChild(L);mxEvent.addListener(N,"change",function(){N.checked?m.setAttribute("disabled","disabled"):m.removeAttribute("disabled")});q=new CustomDialog(d,q,mxUtils.bind(this,function(){d.downloadFile("xml",!M.checked,null,!N.checked,
-z||!m.checked)}),null,mxResources.get("export"));d.showDialog(q.container,300,200,!0,!0)}));Editor.enableExportUrl&&d.actions.put("exportUrl",new Action("url...",function(){d.showPublishLinkDialog(mxResources.get("url"),null,null,null,null,null,null,null,function(q,z,L,N,M,m,y,E,P,O,T,V,Q,S){y=[];N&&P&&(P=S?d.getHiddenTagsMap():null,y.push("tags="+encodeURIComponent(JSON.stringify(P||{}))));q=new EmbedDialog(d,d.createLink(q,z,Q,N,M,m,null,!0,y,null,L,null,V));d.showDialog(q.container,450,270,!0,
-!0,null,!1,null,new mxRectangle(0,0,400,250));q.init()},null,!0,!0)}));d.actions.put("exportHtml",new Action("formatHtmlEmbedded...",function(){d.getPublicUrl(d.getCurrentFile(),function(q){d.showHtmlDialog(mxResources.get("export"),null,q,function(z,L,N,M,m,y,E,P,O,T,V,Q,S){d.createHtml(z,L,N,M,m,y,E,P,O,T,V,mxUtils.bind(this,function(U,Y){var X=d.getBaseFilename(E);U='\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n<!DOCTYPE html>\n<html>\n<head>\n<title>'+
-mxUtils.htmlEntities(X)+'</title>\n<meta charset="utf-8"/>\n</head>\n<body>'+U+"\n"+Y+"\n</body>\n</html>";d.saveData(X+(".drawio"==X.substring(X.lenth-7)?"":".drawio")+".html","html",U,"text/html")}),Q,S)})})}));d.actions.put("exportPdf",new Action("formatPdf...",function(){d.showPrintDialog(mxResources.get("formatPdf"),EditorUi.isElectronApp||!d.isOffline()&&!d.printPdfExport?mxUtils.bind(this,function(q,z){q=null!=d.pages?d.pages.length:1;var L=null==d.pages||1>=d.pages.length,N=d.getPageIndex(d.currentPage);
+z||!m.checked)}),null,mxResources.get("export"));d.showDialog(q.container,300,200,!0,!0)}));Editor.enableExportUrl&&d.actions.put("exportUrl",new Action("url...",function(){d.showPublishLinkDialog(mxResources.get("url"),null,null,null,null,null,null,null,function(q,z,L,N,M,m,y,F,P,O,S,V,Q,R){y=[];N&&P&&(P=R?d.getHiddenTagsMap():null,y.push("tags="+encodeURIComponent(JSON.stringify(P||{}))));q=new EmbedDialog(d,d.createLink(q,z,Q,N,M,m,null,!0,y,null,L,null,V));d.showDialog(q.container,450,270,!0,
+!0,null,!1,null,new mxRectangle(0,0,400,250));q.init()},null,!0,!0)}));d.actions.put("exportHtml",new Action("formatHtmlEmbedded...",function(){d.getPublicUrl(d.getCurrentFile(),function(q){d.showHtmlDialog(mxResources.get("export"),null,q,function(z,L,N,M,m,y,F,P,O,S,V,Q,R){d.createHtml(z,L,N,M,m,y,F,P,O,S,V,mxUtils.bind(this,function(U,Y){var X=d.getBaseFilename(F);U='\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n<!DOCTYPE html>\n<html>\n<head>\n<title>'+
+mxUtils.htmlEntities(X)+'</title>\n<meta charset="utf-8"/>\n</head>\n<body>'+U+"\n"+Y+"\n</body>\n</html>";d.saveData(X+(".drawio"==X.substring(X.lenth-7)?"":".drawio")+".html","html",U,"text/html")}),Q,R)})})}));d.actions.put("exportPdf",new Action("formatPdf...",function(){d.showPrintDialog(mxResources.get("formatPdf"),EditorUi.isElectronApp||!d.isOffline()&&!d.printPdfExport?mxUtils.bind(this,function(q,z){q=null!=d.pages?d.pages.length:1;var L=null==d.pages||1>=d.pages.length,N=d.getPageIndex(d.currentPage);
N=null!=N?N+1:1;d.downloadFile("pdf",null,null,!z.selection,L||!z.allPages&&z.pagesFrom==N&&z.pagesTo==N,!z.crop,z.transparent,z.scale,null,z.grid,z.includeCopy,z.allPages||z.pagesFrom==N&&z.pagesTo==N?null:{from:Math.max(0,Math.min(q-1,z.pagesFrom-1)),to:Math.max(0,Math.min(q-1,z.pagesTo-1))},z.border,z.fit,z.sheetsAcross,z.sheetsDown,z.shadows)}):null,mxResources.get("export"))}));d.actions.addAction("open...",function(){d.pickFile()});d.actions.addAction("close",function(){function q(){null!=z&&
z.removeDraft();d.fileLoaded(new LocalFile(d,d.emptyDiagramXml,null,!0))}var z=d.getCurrentFile();null!=z&&z.isModified()?d.confirm(mxResources.get("allChangesLost"),null,q,mxResources.get("cancel"),mxResources.get("discardChanges")):q()});d.actions.addAction("editShape...",mxUtils.bind(this,function(){if(1==p.getSelectionCount()){var q=p.getSelectionCell(),z=p.view.getState(q);null!=z&&null!=z.shape&&null!=z.shape.stencil&&(q=new EditShapeDialog(d,q,mxResources.get("editShape")),d.showDialog(q.container,
640,480,!0,!1,null,null,null,new mxRectangle(0,0,300,200)),q.init())}}));d.actions.addAction("revisionHistory...",function(){d.isRevisionHistorySupported()?d.spinner.spin(document.body,mxResources.get("loading"))&&d.getRevisions(mxUtils.bind(this,function(q,z){d.spinner.stop();q=new RevisionDialog(d,q,z);d.showDialog(q.container,640,480,!0,!0);q.init()}),mxUtils.bind(this,function(q){d.handleError(null!=q?q:mxResources.get("notAvailable"))})):d.showError(mxResources.get("error"),mxResources.get("notAvailable"),
@@ -14612,8 +14619,8 @@ new ChangePageSetup(d);q.ignoreColor=!0;q.ignoreImage=!0;q.adaptiveColors="auto"
function(){var q=new ChangePageSetup(d);q.ignoreColor=!0;q.ignoreImage=!0;q.adaptiveColors="none";p.model.execute(q)}));v.setToggleAction(!0);v.setSelectedCallback(function(){return"none"==p.adaptiveColors});this.put("adaptiveColors",new Menu(mxUtils.bind(this,function(q,z){this.addMenuItems(q,["defaultAdaptiveColors","-","automaticAdaptiveColors","simpleAdaptiveColors","noAdaptiveColors"],z)})));isLocalStorage&&(v=d.actions.addAction("showStartScreen",function(){mxSettings.setShowStartScreen(!mxSettings.getShowStartScreen());
urlParams.splash=mxSettings.getShowStartScreen()?"1":"0";mxSettings.save()}),v.setToggleAction(!0),v.setSelectedCallback(function(){return mxSettings.getShowStartScreen()}));var A=d.actions.addAction("autosave",function(){d.editor.setAutosave(!d.editor.autosave)});A.setToggleAction(!0);A.setSelectedCallback(function(){return A.isEnabled()&&d.editor.autosave});d.actions.addAction("editGeometry...",function(){for(var q=p.getSelectionCells(),z=[],L=0;L<q.length;L++)p.getModel().isVertex(q[L])&&z.push(q[L]);
0<z.length&&(q=new EditGeometryDialog(d,z),d.showDialog(q.container,200,270,!0,!0),q.init())},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+M");d.actions.addAction("copyStyle",function(){if(p.isEnabled()&&1==p.getSelectionCount()){var q=p.getSelectionCell(),z=p.getCellStyle(q,!1);d.copiedStyle={};var L=[],N=[],M;for(M in z)L.push(z[M]),N.push(M);p.copyCellStyles([q],N,L,d.copiedStyle,d.copiedStyle,null,null,null,!0)}},null,null,Editor.altKey+"+C");d.actions.addAction("pasteStyle",function(){p.isEnabled()&&
-!p.isSelectionEmpty()&&null!=d.copiedStyle&&p.pasteCellStyles(p.includeDescendants(p.getSelectionCells()),d.copiedStyle,d.copiedStyle,!0)},null,null,Editor.altKey+"+V");d.actions.put("exportSvg",new Action("formatSvg...",function(){d.showExportDialog(mxResources.get("formatSvg"),!0,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram",mxUtils.bind(this,function(q,z,L,N,M,m,y,E,P,O,T,V,Q,S){q=parseInt(q);d.lastExportSvgEditable=M;!isNaN(q)&&0<q&&d.exportSvg(q/100,z,L,N,M,m,y,!E,
-P,O,V,Q,S)}),!0,d.lastExportSvgEditable,"svg",!0)}));d.actions.put("exportPng",new Action("formatPng...",function(){k("png",d.lastExportPngEditable,function(q,z,L,N,M){d.lastExportPngEditable=M})}));d.actions.put("exportJpg",new Action("formatJpg...",function(){k("jpeg")}));d.actions.put("exportWebp",new Action("formatWebp...",function(){k("webp")}));d.actions.put("exportAnimatedGif",new Action(mxResources.get("formatAnimatedGif",null,"Animated GIF")+"...",function(){d.showAnimatedGifExportDialog()}));
+!p.isSelectionEmpty()&&null!=d.copiedStyle&&p.pasteCellStyles(p.includeDescendants(p.getSelectionCells()),d.copiedStyle,d.copiedStyle,!0)},null,null,Editor.altKey+"+V");d.actions.put("exportSvg",new Action("formatSvg...",function(){d.showExportDialog(mxResources.get("formatSvg"),!0,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram",mxUtils.bind(this,function(q,z,L,N,M,m,y,F,P,O,S,V,Q,R){q=parseInt(q);d.lastExportSvgEditable=M;!isNaN(q)&&0<q&&d.exportSvg(q/100,z,L,N,M,m,y,!F,
+P,O,V,Q,R)}),!0,d.lastExportSvgEditable,"svg",!0)}));d.actions.put("exportPng",new Action("formatPng...",function(){k("png",d.lastExportPngEditable,function(q,z,L,N,M){d.lastExportPngEditable=M})}));d.actions.put("exportJpg",new Action("formatJpg...",function(){k("jpeg")}));d.actions.put("exportWebp",new Action("formatWebp...",function(){k("webp")}));d.actions.put("exportAnimatedGif",new Action(mxResources.get("formatAnimatedGif",null,"Animated GIF")+"...",function(){d.showAnimatedGifExportDialog()}));
v=d.actions.addAction("copyAsImage",mxUtils.bind(this,function(){var q=mxUtils.sortCells(p.model.getTopmostCells(p.getSelectionCells()));d.copyImage(q)}),null,null,Editor.ctrlKey+"+"+Editor.altKey+"+X");v.visible=Editor.enableNativeClipboard&&d.editor.isExportToCanvas();v=d.actions.addAction("copyAsSvg",mxUtils.bind(this,function(){var q=mxUtils.sortCells(p.model.getTopmostCells(p.getSelectionCells()));d.copySvg(q)}),null,null,Editor.ctrlKey+"+"+Editor.altKey+"+"+Editor.shiftKey+"+X");v.visible=Editor.enableNativeClipboard&&
d.editor.isExportToCanvas();v=d.actions.put("shadowVisible",new Action("shadow",function(){p.setShadowVisible(!p.shadowVisible)}));v.setToggleAction(!0);v.setSelectedCallback(function(){return p.shadowVisible});d.actions.put("about",new Action("v"+EditorUi.VERSION,function(q,z){mxEvent.isShiftDown(z)&&(EditorUi.isElectronApp||d.isOwnGDriveDomain())&&("1"==urlParams.test?(EditorUi.debug("Debug output disabled"),urlParams.test="0"):(urlParams.test="1",EditorUi.debug("Debug output enabled")))}));d.actions.addAction("support...",
function(){EditorUi.isElectronApp?d.openLink("https://github.com/jgraph/drawio-desktop/wiki/Getting-Support"):d.openLink("https://github.com/jgraph/drawio/wiki/Getting-Support")});d.actions.addAction("downloadDesktop...",function(){d.openLink("https://get.diagrams.net/")});d.actions.addAction("exportOptionsDisabled...",function(){d.handleError({message:mxResources.get("exportOptionsDisabledDetails")},mxResources.get("exportOptionsDisabled"))});d.actions.addAction("keyboardShortcuts...",function(){mxClient.IS_CHROMEAPP||
@@ -14625,15 +14632,15 @@ function(){var q=null==d.pages||1>=d.pages.length;if(q)d.exportVisio();else{var
null,mxResources.get("export"));d.showDialog(q.container,300,146,!0,!0)}});v.getTitle=function(){return mxResources.get("formatVsdx")+" (beta)..."};d.actions.put("exportVsdx",v);isLocalStorage&&null!=localStorage&&"1"!=urlParams.embed&&d.actions.addAction("configuration...",function(){var q=document.createElement("input");q.setAttribute("type","checkbox");q.style.marginRight="8px";q.checked=mxSettings.getShowStartScreen();q.defaultChecked=q.checked;if(Editor.isSettingsEnabled()&&("sketch"==Editor.currentTheme||
"simple"==Editor.currentTheme||"min"==Editor.currentTheme)){var z=document.createElement("span");z.style.display="flex";z.style.alignItems="center";z.style.cssFloat="right";z.style.cursor="pointer";z.style.userSelect="none";z.style.marginTop="-3px";z.appendChild(q);mxUtils.write(z,mxResources.get("showStartScreen"));mxEvent.addListener(z,"click",function(N){mxEvent.getSource(N)!=q&&(q.checked=!q.checked)});header=z}z=[[mxResources.get("reset"),function(){d.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.configurationKey),
d.hideDialog(),d.alert(mxResources.get("restartForChangeRequired"))}catch(N){d.handleError(N)}})}]];if(!d.isOfflineApp()&&isLocalStorage&&d.mode!=App.MODE_ATLAS){var L=d.actions.get("plugins");null==L||"sketch"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||z.push([mxResources.get("plugins"),L.funct])}EditorUi.isElectronApp||z.push([mxResources.get("link"),function(N,M){if(0<M.value.length)try{var m=JSON.parse(M.value),y=window.location.protocol+"//"+window.location.host+
-"/"+d.getSearch()+"#_CONFIG_"+Graph.compress(JSON.stringify(m)),E=new EmbedDialog(d,y);d.showDialog(E.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));E.init()}catch(P){d.handleError(P)}else d.handleError({message:mxResources.get("invalidInput")})}]);"atlassian"!=d.getServiceName()&&"1"!=urlParams.embed&&z.push([mxResources.get("preferences"),function(){d.showLocalStorageDialog(mxResources.get("preferences")+":",Editor.settingsKey,[[mxResources.get("reset"),function(){d.confirm(mxResources.get("areYouSure"),
+"/"+d.getSearch()+"#_CONFIG_"+Graph.compress(JSON.stringify(m)),F=new EmbedDialog(d,y);d.showDialog(F.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));F.init()}catch(P){d.handleError(P)}else d.handleError({message:mxResources.get("invalidInput")})}]);"atlassian"!=d.getServiceName()&&"1"!=urlParams.embed&&z.push([mxResources.get("preferences"),function(){d.showLocalStorageDialog(mxResources.get("preferences")+":",Editor.settingsKey,[[mxResources.get("reset"),function(){d.confirm(mxResources.get("areYouSure"),
function(){try{localStorage.removeItem(Editor.settingsKey),localStorage.removeItem(".drawio-config"),d.hideDialog(),d.alert(mxResources.get("restartForChangeRequired"))}catch(N){d.handleError(N)}})}]])}]);d.showConfigurationEditorDialog(mxResources.get("configuration")+":",Editor.configurationKey,z,q.parentNode,"https://www.drawio.com/doc/faq/configure-diagram-editor",function(){null!=q.parentNode&&(mxSettings.setShowStartScreen(q.checked),mxSettings.save())})});(mxClient.IS_CHROMEAPP||isLocalStorage)&&
-this.put("language",new Menu(mxUtils.bind(this,function(q,z){var L=mxLanguage;null==urlParams.lang&&isLocalStorage&&(L=mxSettings.settings.language);var N=mxUtils.bind(this,function(m){var y=""==m?mxResources.get("automatic"):mxLanguageMap[m],E=null;""!=y&&(E=q.addItem(y,null,mxUtils.bind(this,function(){d.setAndPersistLanguage(m)}),z),(m==L||""==m&&null==L)&&q.addCheckmark(E,Editor.checkmarkImage));return E});N("");q.addSeparator(z);for(var M in mxLanguageMap)N(M)})));d.customLayoutConfig=[{layout:"mxHierarchicalLayout",
+this.put("language",new Menu(mxUtils.bind(this,function(q,z){var L=mxLanguage;null==urlParams.lang&&isLocalStorage&&(L=mxSettings.settings.language);var N=mxUtils.bind(this,function(m){var y=""==m?mxResources.get("automatic"):mxLanguageMap[m],F=null;""!=y&&(F=q.addItem(y,null,mxUtils.bind(this,function(){d.setAndPersistLanguage(m)}),z),(m==L||""==m&&null==L)&&q.addCheckmark(F,Editor.checkmarkImage));return F});N("");q.addSeparator(z);for(var M in mxLanguageMap)N(M)})));d.customLayoutConfig=[{layout:"mxHierarchicalLayout",
config:{orientation:"west",intraCellSpacing:30,interRankCellSpacing:100,interHierarchySpacing:60,parallelEdgeSpacing:10}}];d.actions.addAction("runLayout",function(){d.showCustomLayoutDialog(JSON.stringify(d.customLayoutConfig,null,2))});d.actions.put("adaptiveColors",new Action("adaptiveColors",function(q){null==d.adaptiveColorsWindow&&(d.adaptiveColorsWindow=new AdaptiveColorsWindow(d,document.body.offsetWidth-520,80,200,160));d.adaptiveColorsWindow.window.setVisible(!0)}));v=this.get("viewZoom");
-var J=v.funct;v.funct=mxUtils.bind(this,function(q,z){J.apply(this,arguments);"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||this.addMenuItems(q,["-","outline","fullscreen"],z)});v=this.get("layout");var H=v.funct;v.funct=function(q,z){H.apply(this,arguments);q.addItem(mxResources.get("orgChart"),null,function(){var L=null,N=20,M=20,m=function(){"undefined"!==typeof mxOrgChartLayout&&null!=L&&d.tryAndHandle(mxUtils.bind(this,function(){var S=d.editor.graph,U=new mxOrgChartLayout(S,L,N,
-M),Y=S.getDefaultParent();1<S.model.getChildCount(S.getSelectionCell())&&(Y=S.getSelectionCell());U.execute(Y)}))},y=document.createElement("div"),E=document.createElement("div");E.style.marginTop="6px";E.style.display="inline-block";E.style.width="180px";mxUtils.write(E,mxResources.get("orgChartType")+": ");y.appendChild(E);var P=document.createElement("select");P.style.width="160px";P.style.boxSizing="border-box";E=[mxResources.get("linear"),mxResources.get("hanger2"),mxResources.get("hanger4"),
-mxResources.get("fishbone1"),mxResources.get("fishbone2"),mxResources.get("1ColumnLeft"),mxResources.get("1ColumnRight"),mxResources.get("smart")];for(var O=0;O<E.length;O++){var T=document.createElement("option");mxUtils.write(T,E[O]);T.value=O;2==O&&T.setAttribute("selected","selected");P.appendChild(T)}mxEvent.addListener(P,"change",function(){L=P.value});y.appendChild(P);E=document.createElement("div");E.style.marginTop="6px";E.style.display="inline-block";E.style.width="180px";mxUtils.write(E,
-mxResources.get("parentChildSpacing")+": ");y.appendChild(E);var V=document.createElement("input");V.type="number";V.value=N;V.style.width="160px";V.style.boxSizing="border-box";y.appendChild(V);mxEvent.addListener(V,"change",function(){N=V.value});E=document.createElement("div");E.style.marginTop="6px";E.style.display="inline-block";E.style.width="180px";mxUtils.write(E,mxResources.get("siblingSpacing")+": ");y.appendChild(E);var Q=document.createElement("input");Q.type="number";Q.value=M;Q.style.width=
-"160px";Q.style.boxSizing="border-box";y.appendChild(Q);mxEvent.addListener(Q,"change",function(){M=Q.value});E=mxUtils.button(mxResources.get("custom")+"...",function(){var S=[{layout:"mxOrgChartLayout",config:{branchOptimizer:parseInt(P.value),parentChildSpacing:parseInt(V.value),siblingSpacing:parseInt(Q.value)}}];d.hideDialog();d.showCustomLayoutDialog(JSON.stringify(S,null,2))});E.className="geBtn";y=new CustomDialog(d,y,function(){null==L&&(L=2);d.loadOrgChartLayouts(m)},null,null,null,E);d.showDialog(y.container,
+var J=v.funct;v.funct=mxUtils.bind(this,function(q,z){J.apply(this,arguments);"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||this.addMenuItems(q,["-","outline","fullscreen"],z)});v=this.get("layout");var H=v.funct;v.funct=function(q,z){H.apply(this,arguments);q.addItem(mxResources.get("orgChart"),null,function(){var L=null,N=20,M=20,m=function(){"undefined"!==typeof mxOrgChartLayout&&null!=L&&d.tryAndHandle(mxUtils.bind(this,function(){var R=d.editor.graph,U=new mxOrgChartLayout(R,L,N,
+M),Y=R.getDefaultParent();1<R.model.getChildCount(R.getSelectionCell())&&(Y=R.getSelectionCell());U.execute(Y)}))},y=document.createElement("div"),F=document.createElement("div");F.style.marginTop="6px";F.style.display="inline-block";F.style.width="180px";mxUtils.write(F,mxResources.get("orgChartType")+": ");y.appendChild(F);var P=document.createElement("select");P.style.width="160px";P.style.boxSizing="border-box";F=[mxResources.get("linear"),mxResources.get("hanger2"),mxResources.get("hanger4"),
+mxResources.get("fishbone1"),mxResources.get("fishbone2"),mxResources.get("1ColumnLeft"),mxResources.get("1ColumnRight"),mxResources.get("smart")];for(var O=0;O<F.length;O++){var S=document.createElement("option");mxUtils.write(S,F[O]);S.value=O;2==O&&S.setAttribute("selected","selected");P.appendChild(S)}mxEvent.addListener(P,"change",function(){L=P.value});y.appendChild(P);F=document.createElement("div");F.style.marginTop="6px";F.style.display="inline-block";F.style.width="180px";mxUtils.write(F,
+mxResources.get("parentChildSpacing")+": ");y.appendChild(F);var V=document.createElement("input");V.type="number";V.value=N;V.style.width="160px";V.style.boxSizing="border-box";y.appendChild(V);mxEvent.addListener(V,"change",function(){N=V.value});F=document.createElement("div");F.style.marginTop="6px";F.style.display="inline-block";F.style.width="180px";mxUtils.write(F,mxResources.get("siblingSpacing")+": ");y.appendChild(F);var Q=document.createElement("input");Q.type="number";Q.value=M;Q.style.width=
+"160px";Q.style.boxSizing="border-box";y.appendChild(Q);mxEvent.addListener(Q,"change",function(){M=Q.value});F=mxUtils.button(mxResources.get("custom")+"...",function(){var R=[{layout:"mxOrgChartLayout",config:{branchOptimizer:parseInt(P.value),parentChildSpacing:parseInt(V.value),siblingSpacing:parseInt(Q.value)}}];d.hideDialog();d.showCustomLayoutDialog(JSON.stringify(R,null,2))});F.className="geBtn";y=new CustomDialog(d,y,function(){null==L&&(L=2);d.loadOrgChartLayouts(m)},null,null,null,F);d.showDialog(y.container,
355,140,!0,!0)},z,null,t());q.addSeparator(z);q.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){d.tryAndHandle(mxUtils.bind(this,function(){var L=new mxParallelEdgeLayout(p);L.checkOverlap=!0;d.prompt(mxResources.get("spacing"),L.spacing,mxUtils.bind(this,function(N){d.tryAndHandle(mxUtils.bind(this,function(){L.spacing=N;d.executeLayout(function(){L.execute(p.getDefaultParent(),p.isSelectionEmpty()?null:p.getSelectionCells())},!1)}))}))}))}),z);q.addSeparator(z);d.menus.addMenuItem(q,
"runLayout",z,null,null,mxResources.get("custom")+"...")};this.put("help",new Menu(mxUtils.bind(this,function(q,z){if(mxClient.IS_CHROMEAPP||!d.isOffline()&&!navigator.standalone){var L=q.addItem(mxResources.get("search")+":",null,null,z,null,null,!1);L.style.cursor="default";var N=document.createElement("input");N.setAttribute("type","text");N.setAttribute("size","25");N.style.borderWidth="1px";N.style.marginLeft="8px";mxEvent.addListener(N,"keydown",mxUtils.bind(this,function(M){var m=mxUtils.trim(N.value);
13==M.keyCode&&0<m.length?(this.editorUi.searchHelp(m),N.value="",window.setTimeout(mxUtils.bind(this,function(){this.editorUi.hideCurrentMenu()}),0)):27==M.keyCode&&(N.value="")}));L.firstChild.nextSibling.appendChild(N);mxEvent.addGestureListeners(N,function(M){document.activeElement!=N&&N.focus();mxEvent.consume(M)},function(M){mxEvent.consume(M)},function(M){mxEvent.consume(M)});window.setTimeout(function(){N.focus()},0);EditorUi.isElectronApp?(d.actions.addAction("website...",function(){d.openLink("https://www.drawio.com")}),
@@ -14642,11 +14649,11 @@ d.actions.addAction("check4Updates",function(){d.checkForUpdates()}),d.actions.p
0<z.length?z:null,Graph.translateDiagram=!0,p.refresh())}),mxResources.get("languageCode"),null,null,"https://www.drawio.com/blog/translate-diagrams");d.showDialog(q.container,340,80,!0,!0);q.init()});this.put("diagramLanguage",new Menu(mxUtils.bind(this,function(q,z){this.addMenuItems(q,["languageCode","-"],z);z=q.addItem(mxResources.get("disabled"),null,function(){Graph.translateDiagram=!1;p.refresh()},z);Graph.translateDiagram||q.addCheckmark(z,Editor.checkmarkImage)})));if("1"==urlParams.test){mxResources.parse("testDevelop=Develop");
mxResources.parse("showBoundingBox=Show bounding box");mxResources.parse("createSidebarEntry=Create Sidebar Entry");mxResources.parse("testCheckFile=Check File");mxResources.parse("testDiff=Diff/Sync");mxResources.parse("testChecksum=Checksum");mxResources.parse("testCheckPages=Check Pages");mxResources.parse("testFixPages=Fix Pages");mxResources.parse("testInspect=Inspect");mxResources.parse("testShowConsole=Show Console");mxResources.parse("testXmlImageExport=XML Image Export");mxResources.parse("testOptimize=Remove Inline Images");
mxResources.parse("testPerformance=Performance");d.actions.addAction("createSidebarEntry",mxUtils.bind(this,function(){if(!p.isSelectionEmpty()){var q=p.cloneCells(p.getSelectionCells()),z=p.getBoundingBoxFromGeometry(q,!0);q=p.moveCells(q,-z.x,-z.y);d.showTextDialog("Create Sidebar Entry","this.addDataEntry('tag1 tag2', "+z.width+", "+z.height+", 'The Title', '"+Graph.compress(mxUtils.getXml(p.encodeCells(q)))+"'),")}}));d.actions.addAction("showBoundingBox",mxUtils.bind(this,function(){function q(y){return null==
-y||null==y.boundingBox||!isNaN(y.boundingBox.x)&&!isNaN(y.boundingBox.y)&&!isNaN(y.boundingBox.width)&&!isNaN(y.boundingBox.height)}var z=p.isSelectionEmpty()?p.getGraphBounds():p.getBoundingBox(p.getSelectionCells()),L=p.view.translate,N=p.view.scale;p.insertVertex(p.getDefaultParent(),null,"",z.x/N-L.x,z.y/N-L.y,z.width/N,z.height/N,"fillColor=none;strokeColor=red;");var M=0,m=0;p.view.states.visit(function(y,E){y=!0;q(E.shape)||(console.log("invalid shape",E.cell.id,E.shape),y=!1);q(E.text)||(console.log("invalid text",
-E.cell.id,E.text),y=!1);y||M++;m++});console.log("states checked",m,"invalid",M)}));d.actions.addAction("testCheckFile",mxUtils.bind(this,function(){var q=null!=d.pages&&null!=d.getCurrentFile()?d.getCurrentFile().getAnonymizedXmlForPages(d.pages):"";q=new TextareaDialog(d,"Paste Data:",q,function(z){if(0<z.length)try{var L=function(E){function P(aa){if(null==Z[aa]){if(Z[aa]=!0,null!=V[aa]){for(;0<V[aa].length;){var da=V[aa].pop();P(da)}delete V[aa]}}else mxLog.debug(O+": Visited: "+aa)}var O=E.parentNode.id,
-T=E.childNodes;E={};for(var V={},Q=null,S={},U=0;U<T.length;U++){var Y=T[U];if(null!=Y.id&&0<Y.id.length)if(null==E[Y.id]){E[Y.id]=Y.id;var X=Y.getAttribute("parent");null==X?null!=Q?mxLog.debug(O+": Multiple roots: "+Y.id):Q=Y.id:(null==V[X]&&(V[X]=[]),V[X].push(Y.id))}else S[Y.id]=Y.id}T=Object.keys(S);0<T.length?(T=O+": "+T.length+" Duplicates: "+T.join(", "),mxLog.debug(T+" (see console)")):mxLog.debug(O+": Checked");var Z={};null==Q?mxLog.debug(O+": No root"):(P(Q),Object.keys(Z).length!=Object.keys(E).length&&
-(mxLog.debug(O+": Invalid tree: (see console)"),console.log(O+": Invalid tree",V)))};"<"!=z.charAt(0)&&(z=Graph.decompress(z),mxLog.debug("See console for uncompressed XML"),console.log("xml",z));var N=mxUtils.parseXml(z),M=d.getPagesForNode(N.documentElement,"mxGraphModel");if(null!=M&&0<M.length)try{var m=d.getHashValueForPages(M);mxLog.debug("Checksum: ",m)}catch(E){mxLog.debug("Error: ",E.message)}else mxLog.debug("No pages found for checksum");var y=N.getElementsByTagName("root");for(z=0;z<y.length;z++)L(y[z]);
-mxLog.show()}catch(E){d.handleError(E),null!=window.console&&console.error(E)}});d.showDialog(q.container,620,460,!0,!0);q.init()}));var G=null;d.actions.addAction("testDiff",mxUtils.bind(this,function(){if(null!=d.pages){var q=new TextareaDialog(d,"Diff/Sync:","",function(z){var L=d.getCurrentFile();if(0<z.length&&null!=L)try{var N=JSON.parse(z);L.patch([N],null,!0,!0);d.hideDialog()}catch(M){d.handleError(M)}},null,"Close",null,null,null,!0,null,"Patch",null,[["Snapshot",function(z,L){G=d.getPagesForXml(d.getFileData(!0));
+y||null==y.boundingBox||!isNaN(y.boundingBox.x)&&!isNaN(y.boundingBox.y)&&!isNaN(y.boundingBox.width)&&!isNaN(y.boundingBox.height)}var z=p.isSelectionEmpty()?p.getGraphBounds():p.getBoundingBox(p.getSelectionCells()),L=p.view.translate,N=p.view.scale;p.insertVertex(p.getDefaultParent(),null,"",z.x/N-L.x,z.y/N-L.y,z.width/N,z.height/N,"fillColor=none;strokeColor=red;");var M=0,m=0;p.view.states.visit(function(y,F){y=!0;q(F.shape)||(console.log("invalid shape",F.cell.id,F.shape),y=!1);q(F.text)||(console.log("invalid text",
+F.cell.id,F.text),y=!1);y||M++;m++});console.log("states checked",m,"invalid",M)}));d.actions.addAction("testCheckFile",mxUtils.bind(this,function(){var q=null!=d.pages&&null!=d.getCurrentFile()?d.getCurrentFile().getAnonymizedXmlForPages(d.pages):"";q=new TextareaDialog(d,"Paste Data:",q,function(z){if(0<z.length)try{var L=function(F){function P(aa){if(null==Z[aa]){if(Z[aa]=!0,null!=V[aa]){for(;0<V[aa].length;){var da=V[aa].pop();P(da)}delete V[aa]}}else mxLog.debug(O+": Visited: "+aa)}var O=F.parentNode.id,
+S=F.childNodes;F={};for(var V={},Q=null,R={},U=0;U<S.length;U++){var Y=S[U];if(null!=Y.id&&0<Y.id.length)if(null==F[Y.id]){F[Y.id]=Y.id;var X=Y.getAttribute("parent");null==X?null!=Q?mxLog.debug(O+": Multiple roots: "+Y.id):Q=Y.id:(null==V[X]&&(V[X]=[]),V[X].push(Y.id))}else R[Y.id]=Y.id}S=Object.keys(R);0<S.length?(S=O+": "+S.length+" Duplicates: "+S.join(", "),mxLog.debug(S+" (see console)")):mxLog.debug(O+": Checked");var Z={};null==Q?mxLog.debug(O+": No root"):(P(Q),Object.keys(Z).length!=Object.keys(F).length&&
+(mxLog.debug(O+": Invalid tree: (see console)"),console.log(O+": Invalid tree",V)))};"<"!=z.charAt(0)&&(z=Graph.decompress(z),mxLog.debug("See console for uncompressed XML"),console.log("xml",z));var N=mxUtils.parseXml(z),M=d.getPagesForNode(N.documentElement,"mxGraphModel");if(null!=M&&0<M.length)try{var m=d.getHashValueForPages(M);mxLog.debug("Checksum: ",m)}catch(F){mxLog.debug("Error: ",F.message)}else mxLog.debug("No pages found for checksum");var y=N.getElementsByTagName("root");for(z=0;z<y.length;z++)L(y[z]);
+mxLog.show()}catch(F){d.handleError(F),null!=window.console&&console.error(F)}});d.showDialog(q.container,620,460,!0,!0);q.init()}));var G=null;d.actions.addAction("testDiff",mxUtils.bind(this,function(){if(null!=d.pages){var q=new TextareaDialog(d,"Diff/Sync:","",function(z){var L=d.getCurrentFile();if(0<z.length&&null!=L)try{var N=JSON.parse(z);L.patch([N],null,!0,!0);d.hideDialog()}catch(M){d.handleError(M)}},null,"Close",null,null,null,!0,null,"Patch",null,[["Snapshot",function(z,L){G=d.getPagesForXml(d.getFileData(!0));
q.textarea.value="Snapshot updated "+(new Date).toLocaleString()+" Checksum "+d.getHashValueForPages(G)}],["Diff",function(z,L){try{q.textarea.value=JSON.stringify(d.diffPages(G,d.pages),null,2)}catch(N){d.handleError(N)}}]]);null==G?(G=d.getPagesForXml(d.getFileData(!0)),q.textarea.value="Snapshot created "+(new Date).toLocaleString()+" Checksum "+d.getHashValueForPages(G)):q.textarea.value=JSON.stringify(d.diffPages(G,d.pages),null,2);d.showDialog(q.container,620,460,!0,!0);q.init()}else d.alert("No pages")}));
d.actions.addAction("testChecksum",mxUtils.bind(this,function(){var q=d.getCurrentFile();null!=d.pages&&null!=q?d.spinner.spin(document.body,mxResources.get("loading"))&&q.getLatestVersion(function(z){d.spinner.stop();var L=d.getHashValueForPages(d.pages),N=q.getCurrentRevisionId(),M=d.getHashValueForPages(z.getShadowPages()),m=z.getDescriptorChecksum(z.getDescriptor()),y=z.getCurrentRevisionId();console.log("Local File",[q],"modified",q.isModified(),"checksum",L);console.log("Remote File",[z],"rev",
y==N,"desc",m==M,"checksum",M);d.alert("Checksums "+(M==L?"match":"no not match"))},function(z){console.log("Error getLatestVersion",z);d.handleError(z)}):console.log("Checksum: no file or pages")}));d.actions.addAction("testCheckPages",mxUtils.bind(this,function(){var q=d.getCurrentFile();console.log("editorUi",d,"file",q);if(null!=q&&q.isRealtime()){console.log("Checksum ownPages",d.getHashValueForPages(q.ownPages));console.log("Checksum theirPages",d.getHashValueForPages(q.theirPages));console.log("diff ownPages/theirPages",
@@ -14654,25 +14661,25 @@ d.diffPages(q.ownPages,q.theirPages));var z=q.getShadowPages();null!=z&&(console
q.sync.snapshot)),console.log("diff theirPages/snapshot",d.diffPages(q.theirPages,q.sync.snapshot)),null!=d.pages&&console.log("diff snapshot/actualPages",d.diffPages(q.sync.snapshot,d.pages)));null!=d.pages&&(console.log("diff ownPages/actualPages",d.diffPages(q.ownPages,d.pages)),console.log("diff theirPages/actualPages",d.diffPages(q.theirPages,d.pages)))}null!=q&&console.log("Shadow pages",[d.getXmlForPages(q.getShadowPages())]);null!=d.pages&&console.log("Checksum actualPages",d.getHashValueForPages(d.pages))}));
d.actions.addAction("testFixPages",mxUtils.bind(this,function(){console.log("editorUi",d);var q=d.getCurrentFile();null!=q&&q.isRealtime()&&null!=q.shadowPages&&(console.log("patching actualPages to shadowPages",q.patch([d.diffPages(q.shadowPages,d.pages)])),q.ownPages=d.clonePages(d.pages),q.theirPages=d.clonePages(d.pages),q.shadowPages=d.clonePages(d.pages),null!=q.sync&&(q.sync.snapshot=d.clonePages(d.pages)))}));d.actions.addAction("testOptimize",mxUtils.bind(this,function(){p.model.beginUpdate();
try{var q=p.model.cells,z=0,L=[],N=[],M;for(M in q){var m=q[M],y=p.getCurrentCellStyle(m)[mxConstants.STYLE_IMAGE];null!=y&&"data:"==y.substring(0,5)&&(null==L[y]&&(L[y]=(L[y]||0)+1,z++),N.push(m))}p.setCellStyles(mxConstants.STYLE_IMAGE,null,N);console.log("Removed",z,"image(s) from",N.length,"cell(s): ",[N,L])}finally{p.model.endUpdate()}}));d.actions.addAction("testInspect",mxUtils.bind(this,function(){console.log(d,p.getModel())}));d.actions.addAction("testXmlImageExport",mxUtils.bind(this,function(){var q=
-new mxImageExport,z=p.getGraphBounds(),L=p.view.scale,N=mxUtils.createXmlDocument(),M=N.createElement("output");N.appendChild(M);N=new mxXmlCanvas2D(M);N.translate(Math.floor((1-z.x)/L),Math.floor((1-z.y)/L));N.scale(1/L);var m=0,y=N.save;N.save=function(){m++;y.apply(this,arguments)};var E=N.restore;N.restore=function(){m--;E.apply(this,arguments)};var P=q.drawShape;q.drawShape=function(O){mxLog.debug("entering shape",O,m);P.apply(this,arguments);mxLog.debug("leaving shape",O,m)};q.drawState(p.getView().getState(p.model.root),
+new mxImageExport,z=p.getGraphBounds(),L=p.view.scale,N=mxUtils.createXmlDocument(),M=N.createElement("output");N.appendChild(M);N=new mxXmlCanvas2D(M);N.translate(Math.floor((1-z.x)/L),Math.floor((1-z.y)/L));N.scale(1/L);var m=0,y=N.save;N.save=function(){m++;y.apply(this,arguments)};var F=N.restore;N.restore=function(){m--;F.apply(this,arguments)};var P=q.drawShape;q.drawShape=function(O){mxLog.debug("entering shape",O,m);P.apply(this,arguments);mxLog.debug("leaving shape",O,m)};q.drawState(p.getView().getState(p.model.root),
N);mxLog.show();mxLog.debug(mxUtils.getXml(M));mxLog.debug("stateCounter",m)}));d.actions.addAction("testShowConsole",function(){mxLog.isVisible()?mxLog.window.fit():mxLog.show();mxLog.window.div.style.zIndex=mxPopupMenu.prototype.zIndex-2});var D=null,c=null,g=null,l=null,n=null,u=null,x=null,B=null;d.actions.addAction("testPerformance",mxUtils.bind(this,function(){null!=D?(p.view.revalidate=D,D=null):(D=p.view.revalidate,p.view.revalidate=function(){var q=Date.now(),z=D.apply(this,arguments);EditorUi.debug("[Performance] mxGraphView.revalidate",
[this],"time",Date.now()-q+" ms","args",arguments);return z});null!=c?(d.selectPage=c,c=null):(c=d.selectPage,d.selectPage=function(){var q=Date.now(),z=c.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.selectPage",[this],"time",Date.now()-q+" ms","args",arguments);return z});null!=g?(d.diffPages=g,g=null):(g=d.diffPages,d.diffPages=function(){var q=Date.now(),z=g.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.diffPages",[this],"time",Date.now()-q+" ms","args",arguments);
return z});null!=l?(d.patchPages=l,l=null):(l=d.patchPages,d.patchPages=function(){var q=Date.now(),z=l.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.patchPages",[this],"time",Date.now()-q+" ms","args",arguments);return z});null!=n?(d.clonePages=n,n=null):(n=d.clonePages,d.clonePages=function(){var q=Date.now(),z=n.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.clonePages",[this],"time",Date.now()-q+" ms","args",arguments);return z});null!=x?(d.getHashValueForPages=x,
x=null):(x=d.getHashValueForPages,d.getHashValueForPages=function(){var q=Date.now(),z=x.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getHashValueForPages",[this],"time",Date.now()-q+" ms","args",arguments);return z});null!=B?(d.resolveCrossReferences=B,B=null):(B=d.resolveCrossReferences,d.resolveCrossReferences=function(){var q=Date.now(),z=B.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.resolveCrossReferences",[this],"time",Date.now()-q+" ms","args",arguments);return z});
null!=u?(d.getFileData=u,u=null):(u=d.getFileData,d.getFileData=function(){var q=Date.now(),z=u.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getFileData",[this],"time",Date.now()-q+" ms","args",arguments);return z});EditorUi.debug("[Performance]",null!=D?"Enabled":"Disabled")}));this.put("testDevelop",new Menu(mxUtils.bind(this,function(q,z){this.addMenuItems(q,"createSidebarEntry showBoundingBox - testCheckPages testChecksum testFixPages - testCheckFile testDiff - testInspect testOptimize - testXmlImageExport -".split(" "),
-z);var L=q.addItem(mxResources.get("testPerformance"),null,function(){d.actions.get("testPerformance").funct()},z);null!=D&&q.addCheckmark(L,Editor.checkmarkImage);this.addMenuItems(q,["-","testShowConsole"],z)})))}d.actions.put("shapes",new Action("moreShapes...",function(q){mxClient.IS_CHROMEAPP||!d.isOffline()?d.showDialog((new MoreShapesDialog(d,!0)).container,640,isLocalStorage?mxClient.IS_IOS?480:460:440,!0,!0):d.showDialog((new MoreShapesDialog(d,!1)).container,360,isLocalStorage?mxClient.IS_IOS?
+z);var L=q.addItem(mxResources.get("testPerformance"),null,function(){d.actions.get("testPerformance").funct()},z);null!=D&&q.addCheckmark(L,Editor.checkmarkImage);this.addMenuItems(q,["-","testShowConsole"],z)})))}d.actions.put("shapes",new Action("moreShapes...",function(q){mxClient.IS_CHROMEAPP||!d.isOffline()?d.showDialog((new MoreShapesDialog(d,!0)).container,680,isLocalStorage?mxClient.IS_IOS?500:480:460,!0,!0):d.showDialog((new MoreShapesDialog(d,!1)).container,360,isLocalStorage?mxClient.IS_IOS?
300:280:260,!0,!0)}));d.actions.put("createShape",new Action("shape...",function(q){p.isEnabled()&&(q=new mxCell("",new mxGeometry(0,0,120,120),d.defaultCustomShapeStyle),q.vertex=!0,q=new EditShapeDialog(d,q,mxResources.get("editShape")),d.showDialog(q.container,640,480,!0,!1,null,null,null,new mxRectangle(0,0,300,200)),q.init())})).isEnabled=t;d.isOffline()||("1"!=urlParams.embed&&(d.actions.put("embedNotion",new Action("notion...",function(){var q=document.createElement("div");q.style.position=
"absolute";q.style.bottom="30px";q.style.textAlign="center";q.style.width="100%";q.style.left="0px";var z=document.createElement("a");z.setAttribute("href","javascript:void(0);");z.setAttribute("target","_blank");z.style.cursor="pointer";mxUtils.write(z,mxResources.get("getNotionChromeExtension"));q.appendChild(z);mxUtils.setPrefixedStyle(z.style,"transition","all 1s ease");mxUtils.setOpacity(z,0);window.setTimeout(function(){mxUtils.setOpacity(z,100)},300);mxEvent.addListener(z,"click",function(L){d.openLink("https://chrome.google.com/webstore/detail/drawio-for-notion/plhaalebpkihaccllnkdaokdoeaokmle");
-mxEvent.consume(L)});d.getPublicUrl(d.getCurrentFile(),function(L){d.showPublishLinkDialog(mxResources.get("notion"),null,null,!0,"https://www.drawio.com/blog/drawio-notion",q,L,d.getCurrentFile(),function(N,M,m,y,E,P,O,T,V,Q,S,U,Y,X){O=["border=0"];V&&(V=X?d.getHiddenTagsMap():null,O.push("tags="+encodeURIComponent(JSON.stringify(V||{}))));N=new EmbedDialog(d,d.createLink(N,M,!0,y,E,P,"public"==Q?L:null,null,O,null,m,null,U));d.showDialog(N.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,
-0,400,250));N.init()},null,!0)})})),d.actions.addAction("microsoftOffice...",function(){d.openLink("https://office.draw.io")})),d.actions.put("embedHtml",new Action("html...",function(){d.getPublicUrl(d.getCurrentFile(),function(q){d.showHtmlDialog(mxResources.get("create"),"https://www.drawio.com/doc/faq/embed-html-options",q,function(z,L,N,M,m,y,E,P,O,T,V,Q){d.createHtml(z,L,N,M,m,y,E,P,O,T,V,mxUtils.bind(this,function(S,U){var Y=new EmbedDialog(d,"\x3c!-- "+d.editor.appName+" diagram --\x3e\n"+
-S+"\n"+U+"\n",null,null,function(){try{var X=window.open();if(null!=X&&null!=X.document){var Z=X.document;"CSS1Compat"===document.compatMode&&Z.writeln("<!DOCTYPE html>");Z.writeln("<html>");Z.writeln("<head><title>"+encodeURIComponent(mxResources.get("preview"))+'</title><meta charset="utf-8"></head>');Z.writeln("<body>");Z.writeln(S);var aa=mxClient.IS_EDGE;aa&&Z.writeln(U);Z.writeln("</body>");Z.writeln("</html>");Z.close();if(!aa){var da=X.document.createElement("div");da.marginLeft="26px";da.marginTop=
+mxEvent.consume(L)});d.getPublicUrl(d.getCurrentFile(),function(L){d.showPublishLinkDialog(mxResources.get("notion"),null,null,!0,"https://www.drawio.com/blog/drawio-notion",q,L,d.getCurrentFile(),function(N,M,m,y,F,P,O,S,V,Q,R,U,Y,X){O=["border=0"];V&&(V=X?d.getHiddenTagsMap():null,O.push("tags="+encodeURIComponent(JSON.stringify(V||{}))));N=new EmbedDialog(d,d.createLink(N,M,!0,y,F,P,"public"==Q?L:null,null,O,null,m,null,U));d.showDialog(N.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,
+0,400,250));N.init()},null,!0)})})),d.actions.addAction("microsoftOffice...",function(){d.openLink("https://office.draw.io")})),d.actions.put("embedHtml",new Action("html...",function(){d.getPublicUrl(d.getCurrentFile(),function(q){d.showHtmlDialog(mxResources.get("create"),"https://www.drawio.com/doc/faq/embed-html-options",q,function(z,L,N,M,m,y,F,P,O,S,V,Q){d.createHtml(z,L,N,M,m,y,F,P,O,S,V,mxUtils.bind(this,function(R,U){var Y=new EmbedDialog(d,"\x3c!-- "+d.editor.appName+" diagram --\x3e\n"+
+R+"\n"+U+"\n",null,null,function(){try{var X=window.open();if(null!=X&&null!=X.document){var Z=X.document;"CSS1Compat"===document.compatMode&&Z.writeln("<!DOCTYPE html>");Z.writeln("<html>");Z.writeln("<head><title>"+encodeURIComponent(mxResources.get("preview"))+'</title><meta charset="utf-8"></head>');Z.writeln("<body>");Z.writeln(R);var aa=mxClient.IS_EDGE;aa&&Z.writeln(U);Z.writeln("</body>");Z.writeln("</html>");Z.close();if(!aa){var da=X.document.createElement("div");da.marginLeft="26px";da.marginTop=
"26px";mxUtils.write(da,mxResources.get("updatingDocument"));var fa=X.document.createElement("img");fa.setAttribute("src",window.location.protocol+"//"+window.location.hostname+"/"+IMAGE_PATH+"/spin.gif");fa.style.marginLeft="6px";da.appendChild(fa);X.document.body.insertBefore(da,X.document.body.firstChild);window.setTimeout(function(){var ba=document.createElement("script");ba.type="text/javascript";ba.src=/<script.*?src="(.*?)"/.exec(U)[1];Z.body.appendChild(ba);da.parentNode.removeChild(da)},
20)}}else d.handleError({message:mxResources.get("errorUpdatingPreview")})}catch(ba){d.handleError(ba)}});d.showDialog(Y.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));Y.init()}),Q)})})})),d.actions.put("liveImage",new Action("Live image...",function(){var q=d.getCurrentFile();null!=q&&d.getPublicUrl(q,function(z){null!=z?(z=new EmbedDialog(d,'<img src="'+(q.constructor!=DriveFile?z:"https://drive.google.com/uc?id="+q.getId())+'"/>'),d.showDialog(z.container,450,270,!0,!0,null,
!1,null,new mxRectangle(0,0,400,250)),z.init()):d.handleError({message:mxResources.get("invalidPublicUrl")})})})),d.actions.put("embedImage",new Action("image...",function(){d.showEmbedImageDialog(function(q,z,L,N,M,m){d.spinner.spin(document.body,mxResources.get("loading"))&&d.createEmbedImage(q,z,L,N,M,m,function(y){d.spinner.stop();y=new EmbedDialog(d,y);d.showDialog(y.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));y.init()},function(y){d.spinner.stop();d.handleError(y)})},
mxResources.get("image"),mxResources.get("retina"),d.editor.isExportToCanvas())})),d.actions.put("embedSvg",new Action("formatSvg...",function(){d.showEmbedImageDialog(function(q,z,L,N,M,m){d.spinner.spin(document.body,mxResources.get("loading"))&&d.createEmbedSvg(q,z,L,N,M,m,function(y){d.spinner.stop();y=new EmbedDialog(d,y);d.showDialog(y.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));y.init()},function(y){d.spinner.stop();d.handleError(y)})},mxResources.get("formatSvg"),mxResources.get("image"),
-!0,"https://www.drawio.com/doc/faq/embed-svg.html")})),d.actions.put("embedIframe",new Action("iframe...",function(){d.getPublicUrl(d.getCurrentFile(),function(q){var z=p.getGraphBounds();d.showPublishLinkDialog(mxResources.get("iframe"),"100%",Math.ceil(Math.max(100,z.height/p.view.scale))+2,null,null,null,q,d.getCurrentFile(),function(L,N,M,m,y,E,P,O,T,V,Q,S,U,Y){U=[];T&&(T=Y?d.getHiddenTagsMap():null,U.push("tags="+encodeURIComponent(JSON.stringify(T||{}))));L=new EmbedDialog(d,'<iframe frameborder="0" style="width:'+
-P+";height:"+O+';" src="'+d.createLink(L,N,!0,m,y,E,"public"==V?q:null,null,U,null,M,Q,S)+'"'+(Q?' allowtransparency="true"':"")+"></iframe>");d.showDialog(L.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));L.init()},!0,!0)})})));d.actions.put("publishLink",new Action("link...",function(){d.getPublicUrl(d.getCurrentFile(),function(q){d.showPublishLinkDialog(null,null,null,null,null,null,q,d.getCurrentFile(),function(z,L,N,M,m,y,E,P,O,T,V,Q,S,U){E=[];M&&O&&(O=U?d.getHiddenTagsMap():
-null,E.push("tags="+encodeURIComponent(JSON.stringify(O||{}))));z=new EmbedDialog(d,d.createLink(z,L,!0,M,m,y,"public"==T?q:null,null,E,null,N,null,Q));d.showDialog(z.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));z.init()},null,!0)})},null,null,null,!d.isOffline()));if(isLocalStorage||mxClient.IS_CHROMEAPP)v=d.actions.addAction("scratchpad",function(){d.toggleScratchpad()}),v.setToggleAction(!0),v.setSelectedCallback(function(){return null!=d.scratchpad}),"0"!=urlParams.plugins&&
+!0,"https://www.drawio.com/doc/faq/embed-svg.html")})),d.actions.put("embedIframe",new Action("iframe...",function(){d.getPublicUrl(d.getCurrentFile(),function(q){var z=p.getGraphBounds();d.showPublishLinkDialog(mxResources.get("iframe"),"100%",Math.ceil(Math.max(100,z.height/p.view.scale))+2,null,null,null,q,d.getCurrentFile(),function(L,N,M,m,y,F,P,O,S,V,Q,R,U,Y){U=[];S&&(S=Y?d.getHiddenTagsMap():null,U.push("tags="+encodeURIComponent(JSON.stringify(S||{}))));L=new EmbedDialog(d,'<iframe frameborder="0" style="width:'+
+P+";height:"+O+';" src="'+d.createLink(L,N,!0,m,y,F,"public"==V?q:null,null,U,null,M,Q,R)+'"'+(Q?' allowtransparency="true"':"")+"></iframe>");d.showDialog(L.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));L.init()},!0,!0)})})));d.actions.put("publishLink",new Action("link...",function(){d.getPublicUrl(d.getCurrentFile(),function(q){d.showPublishLinkDialog(null,null,null,null,null,null,q,d.getCurrentFile(),function(z,L,N,M,m,y,F,P,O,S,V,Q,R,U){F=[];M&&O&&(O=U?d.getHiddenTagsMap():
+null,F.push("tags="+encodeURIComponent(JSON.stringify(O||{}))));z=new EmbedDialog(d,d.createLink(z,L,!0,M,m,y,"public"==S?q:null,null,F,null,N,null,Q));d.showDialog(z.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));z.init()},null,!0)})},null,null,null,!d.isOffline()));if(isLocalStorage||mxClient.IS_CHROMEAPP)v=d.actions.addAction("scratchpad",function(){d.toggleScratchpad()}),v.setToggleAction(!0),v.setSelectedCallback(function(){return null!=d.scratchpad}),"0"!=urlParams.plugins&&
d.actions.addAction("plugins...",function(){d.showDialog((new PluginsDialog(d)).container,380,240,!0,!1)});window.matchMedia&&null!=document.getElementById("high-contrast-stylesheet")&&(v=d.actions.addAction("highContrast",function(){d.setAndPersistHighContrast(!d.isHighContrast())}),v.setToggleAction(!0),v.setSelectedCallback(function(){return d.isHighContrast()}));v=d.actions.addAction("search",function(){if(null!=d.sidebar){var q=d.sidebar.isEntryVisible("search");d.sidebar.showPalette("search",
!q);Editor.isSettingsEnabled()&&(mxSettings.settings.search=!q,mxSettings.save())}});v.label=mxResources.get("searchShapes");v.setToggleAction(!0);v.setSelectedCallback(function(){return null!=d.sidebar&&d.sidebar.isEntryVisible("search")});d.actions.get("clearDefaultStyle").funct=function(q){p.isEnabled()&&(d.clearDefaultStyle(),Editor.sketchMode&&d.setSketchMode(!1))};"1"==urlParams.embed&&(d.actions.get("saveAs").setEnabled(!1),d.actions.get("save").funct=function(q){p.isEditing()&&p.stopEditing();
var z="0"!=urlParams.pages||null!=d.pages&&1<d.pages.length?d.getFileData(!0):mxUtils.getXml(d.editor.getGraphXml());if("json"==urlParams.proto){var L=d.createLoadMessage("save");L.xml=z;!0!==q||"1"!=urlParams.saveAndExit&&"1"!=urlParams.publishClose||(L.exit=!0);z=JSON.stringify(L)}(window.opener||window.parent).postMessage(z,"*");"0"!=urlParams.modified&&"1"!=urlParams.keepmodified&&(d.editor.modified=!1,d.clearStatus());q=d.getCurrentFile();null==q||q.constructor==EmbedFile||q.constructor==LocalFile&&
@@ -14680,17 +14687,17 @@ null==q.mode||d.saveFile()},d.actions.addAction("saveAndExit",function(){"1"==ur
"";(window.opener||window.parent).postMessage(z,"*")};d.editor.modified?d.confirm(mxResources.get("allChangesLost"),null,q,mxResources.get("cancel"),mxResources.get("discardChanges")):q()}},null,null,"1"==urlParams.embedInline?"Escape":null));this.put("exportAs",new Menu(mxUtils.bind(this,function(q,z){d.editor.isExportToCanvas()?(this.addMenuItems(q,["exportPng"],z),Editor.jpgSupported&&this.addMenuItems(q,["exportJpg"],z),Editor.webpSupported&&this.addMenuItems(q,["exportWebp"],z)):d.isOffline()||
mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(q,["exportPng","exportJpg"],z);d.editor.isExportToCanvas()&&this.addMenuItems(q,["exportAnimatedGif"],z);this.addMenuItems(q,["exportSvg","-"],z);d.isOffline()||d.printPdfExport?this.addMenuItems(q,["exportPdf"],z):d.isOffline()||mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(q,["exportPdf"],z);!d.vsdxExportEnabled()||"undefined"===typeof VsdxExport&&d.isOffline()||this.addMenuItems(q,["exportVsdx"],z);var L=["-","exportHtml","exportXml"];
Editor.enableExportUrl&&L.push("exportUrl");this.addMenuItems(q,L,z);d.isOffline()||(q.addSeparator(z),this.addMenuItem(q,"export",z).firstChild.nextSibling.innerHTML=mxResources.get("advanced")+"...");mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"min"!=Editor.currentTheme||d.isOffline()||this.addMenuItems(q,["publishLink"],z);d.mode==App.MODE_ATLAS||"1"==urlParams.extAuth||"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||d.isOffline()||(q.addSeparator(z),
-d.menus.addSubmenu("embed",q,z))})));this.put("importFrom",new Menu(mxUtils.bind(this,function(q,z){function L(m){m.pickFile(function(y){d.spinner.spin(document.body,mxResources.get("loading"))&&m.getFile(y,function(E){var P="data:image/"==E.getData().substring(0,11)?M(E.getTitle()):"text/xml";/\.svg$/i.test(E.getTitle())&&!d.editor.isDataSvg(E.getData())&&(E.setData(Editor.createSvgDataUri(E.getData())),P="image/svg+xml");N(E.getData(),P,E.getTitle())},function(E){d.handleError(E,null!=E?mxResources.get("errorLoadingFile"):
-null)},m==d.drive)},!0)}var N=mxUtils.bind(this,function(m,y,E){var P=p.view,O=p.getGraphBounds(),T=p.snap(Math.ceil(Math.max(0,O.x/P.scale-P.translate.x)+4*p.gridSize)),V=p.snap(Math.ceil(Math.max(0,(O.y+O.height)/P.scale-P.translate.y)+4*p.gridSize));"data:image/"==m.substring(0,11)?d.loadImage(m,mxUtils.bind(this,function(Q){var S=!0,U=mxUtils.bind(this,function(){d.resizeImage(Q,m,mxUtils.bind(this,function(Y,X,Z){Y=S?Math.min(1,Math.min(d.maxImageSize/X,d.maxImageSize/Z)):1;d.importFile(m,y,
-T,V,Math.round(X*Y),Math.round(Z*Y),E,function(aa){d.spinner.stop();p.setSelectionCells(aa);p.scrollCellToVisible(p.getSelectionCell())})}),S)});m.length>d.resampleThreshold?d.confirmImageResize(function(Y){S=Y;U()}):U()}),mxUtils.bind(this,function(){d.handleError({message:mxResources.get("cannotOpenFile")})})):d.importFile(m,y,T,V,0,0,E,function(Q){d.spinner.stop();p.setSelectionCells(Q);p.scrollCellToVisible(p.getSelectionCell())})}),M=mxUtils.bind(this,function(m){var y="text/xml";/\.png$/i.test(m)?
+d.menus.addSubmenu("embed",q,z))})));this.put("importFrom",new Menu(mxUtils.bind(this,function(q,z){function L(m){m.pickFile(function(y){d.spinner.spin(document.body,mxResources.get("loading"))&&m.getFile(y,function(F){var P="data:image/"==F.getData().substring(0,11)?M(F.getTitle()):"text/xml";/\.svg$/i.test(F.getTitle())&&!d.editor.isDataSvg(F.getData())&&(F.setData(Editor.createSvgDataUri(F.getData())),P="image/svg+xml");N(F.getData(),P,F.getTitle())},function(F){d.handleError(F,null!=F?mxResources.get("errorLoadingFile"):
+null)},m==d.drive)},!0)}var N=mxUtils.bind(this,function(m,y,F){var P=p.view,O=p.getGraphBounds(),S=p.snap(Math.ceil(Math.max(0,O.x/P.scale-P.translate.x)+4*p.gridSize)),V=p.snap(Math.ceil(Math.max(0,(O.y+O.height)/P.scale-P.translate.y)+4*p.gridSize));"data:image/"==m.substring(0,11)?d.loadImage(m,mxUtils.bind(this,function(Q){var R=!0,U=mxUtils.bind(this,function(){d.resizeImage(Q,m,mxUtils.bind(this,function(Y,X,Z){Y=R?Math.min(1,Math.min(d.maxImageSize/X,d.maxImageSize/Z)):1;d.importFile(m,y,
+S,V,Math.round(X*Y),Math.round(Z*Y),F,function(aa){d.spinner.stop();p.setSelectionCells(aa);p.scrollCellToVisible(p.getSelectionCell())})}),R)});m.length>d.resampleThreshold?d.confirmImageResize(function(Y){R=Y;U()}):U()}),mxUtils.bind(this,function(){d.handleError({message:mxResources.get("cannotOpenFile")})})):d.importFile(m,y,S,V,0,0,F,function(Q){d.spinner.stop();p.setSelectionCells(Q);p.scrollCellToVisible(p.getSelectionCell())})}),M=mxUtils.bind(this,function(m){var y="text/xml";/\.png$/i.test(m)?
y="image/png":/\.jpe?g$/i.test(m)?y="image/jpg":/\.gif$/i.test(m)?y="image/gif":/\.pdf$/i.test(m)&&(y="application/pdf");return y});"undefined"!=typeof google&&"undefined"!=typeof google.picker&&(null!=d.drive?q.addItem(mxResources.get("googleDrive")+"...",null,function(){L(d.drive)},z):d.isModeEnabled(App.MODE_GOOGLE)&&q.addItem(mxResources.get("googleDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},z,null,!1));d.isModeReady(App.MODE_ONEDRIVE)?q.addItem(mxResources.get("oneDrive")+
"...",null,function(){L(d.oneDrive)},z):d.isModeEnabled(App.MODE_ONEDRIVE)&&q.addItem(mxResources.get("oneDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},z,null,!1);d.isModeReady(App.MODE_DROPBOX)?q.addItem(mxResources.get("dropbox")+"...",null,function(){L(d.dropbox)},z):d.isModeEnabled(App.MODE_DROPBOX)&&q.addItem(mxResources.get("dropbox")+" ("+mxResources.get("loading")+"...)",null,function(){},z,null,!1);q.addSeparator(z);d.isModeReady(App.MODE_GITHUB)&&q.addItem(mxResources.get("github")+
"...",null,function(){L(d.gitHub)},z);d.isModeReady(App.MODE_GITLAB)&&q.addItem(mxResources.get("gitlab")+"...",null,function(){L(d.gitLab)},z);d.isModeReady(App.MODE_TRELLO)?q.addItem(mxResources.get("trello")+"...",null,function(){L(d.trello)},z):d.isModeEnabled(App.MODE_TRELLO)&&q.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+"...)",null,function(){},z,null,!1);q.addSeparator(z);isLocalStorage&&"0"!=urlParams.browser&&q.addItem(mxResources.get("browser")+"...",null,function(){d.importLocalFile(!1)},
-z);"1"!=urlParams.noDevice&&q.addItem(mxResources.get("device")+"...",null,function(){d.importLocalFile(!0)},z);d.isOffline()||(q.addSeparator(z),q.addItem(mxResources.get("url")+"...",null,function(){var m=new FilenameDialog(d,"",mxResources.get("import"),function(y){if(null!=y&&0<y.length&&d.spinner.spin(document.body,mxResources.get("loading"))){var E=/(\.png)($|\?)/i.test(y)?"image/png":"text/xml";d.editor.loadUrl(PROXY_URL+"?url="+encodeURIComponent(y),function(P){N(P,E,y)},function(){d.spinner.stop();
-d.handleError(null,mxResources.get("errorLoadingFile"))},"image/png"==E)}},mxResources.get("url"));d.showDialog(m.container,300,80,!0,!0);m.init()},z))}))).isEnabled=t;this.put("dynamicAppearance",new Menu(mxUtils.bind(this,function(q,z){var L=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;"simple"==Editor.currentTheme&&(750>L&&this.addSubmenu("viewZoom",q,z,mxResources.get("zoom")),460>L&&d.isPageMenuVisible()&&this.addSubmenu("pages",q,z),320>L&&this.addSubmenu("insert",
+z);"1"!=urlParams.noDevice&&q.addItem(mxResources.get("device")+"...",null,function(){d.importLocalFile(!0)},z);d.isOffline()||(q.addSeparator(z),q.addItem(mxResources.get("url")+"...",null,function(){var m=new FilenameDialog(d,"",mxResources.get("import"),function(y){if(null!=y&&0<y.length&&d.spinner.spin(document.body,mxResources.get("loading"))){var F=/(\.png)($|\?)/i.test(y)?"image/png":"text/xml";d.editor.loadUrl(PROXY_URL+"?url="+encodeURIComponent(y),function(P){N(P,F,y)},function(){d.spinner.stop();
+d.handleError(null,mxResources.get("errorLoadingFile"))},"image/png"==F)}},mxResources.get("url"));d.showDialog(m.container,300,80,!0,!0);m.init()},z))}))).isEnabled=t;this.put("dynamicAppearance",new Menu(mxUtils.bind(this,function(q,z){var L=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;"simple"==Editor.currentTheme&&(750>L&&this.addSubmenu("viewZoom",q,z,mxResources.get("zoom")),460>L&&d.isPageMenuVisible()&&this.addSubmenu("pages",q,z),320>L&&this.addSubmenu("insert",
q,z),360>L&&"1"!=urlParams.embed&&"draw.io"==d.getServiceName()&&this.addSubmenu("share",q,z))})));this.put("appearance",new Menu(mxUtils.bind(this,function(q,z){if(d.isAutoDarkModeSupported()){var L=d.menus.addMenuItem(q,"autoMode",z);null!=L&&L.setAttribute("title",mxResources.get("automatic")+" ("+mxResources.get(Editor.isDarkMode()?"dark":"light")+")")}this.addMenuItems(q,["lightMode","darkMode","-"],z);L=d.menus.addMenuItem(q,"highContrast",z);(!d.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&
d.menus.addLinkToItem(L,"https://github.com/jgraph/drawio/issues/4296")})));d.actions.addAction("addToScratchpad",function(q){p.isSelectionEmpty()||null==d.addSelectionToScratchpad||d.addSelectionToScratchpad(q)});d.actions.addAction("accounts...",function(){d.toggleUserPanel();d.userPanel.style.right="10px";d.userPanel.style.top="10px"});this.put("theme",new Menu(mxUtils.bind(this,function(q,z){var L="1"==urlParams.sketch?"sketch":mxSettings.getUi(),N=q.addItem(mxResources.get("automatic"),null,
-function(){d.setCurrentTheme("")},z),M=q.addItem(mxResources.get("classic"),null,function(){d.setCurrentTheme("kennedy")},z),m=!1;if("kennedy"==L||"dark"==L)q.addCheckmark(M,Editor.checkmarkImage),m=!0;for(var y=0;y<Editor.themes.length;y++)mxUtils.bind(this,function(E){M=q.addItem(mxResources.get("min"==E?"minimal":E),null,function(){d.setCurrentTheme(E)},z);L==E&&(q.addCheckmark(M,Editor.checkmarkImage),m=!0);"simple"==E&&q.addSeparator(z)})(Editor.themes[y]);m||q.addCheckmark(N,Editor.checkmarkImage)})));
+function(){d.setCurrentTheme("")},z),M=q.addItem(mxResources.get("classic"),null,function(){d.setCurrentTheme("kennedy")},z),m=!1;if("kennedy"==L||"dark"==L)q.addCheckmark(M,Editor.checkmarkImage),m=!0;for(var y=0;y<Editor.themes.length;y++)mxUtils.bind(this,function(F){M=q.addItem(mxResources.get("min"==F?"minimal":F),null,function(){d.setCurrentTheme(F)},z);L==F&&(q.addCheckmark(M,Editor.checkmarkImage),m=!0);"simple"==F&&q.addSeparator(z)})(Editor.themes[y]);m||q.addCheckmark(N,Editor.checkmarkImage)})));
v=this.editorUi.actions.addAction("rename...",mxUtils.bind(this,function(){var q=this.editorUi.getCurrentFile();if(null!=q)if(q.constructor==LocalFile&&null!=q.fileHandle)d.showSaveFilePicker(mxUtils.bind(d,function(L,N){q.invalidFileHandle=null;q.fileHandle=L;q.title=N.name;q.desc=N;d.save(N.name)}),null,d.createFileSystemOptions(q.getTitle()));else{var z=null!=q.getTitle()?q.getTitle():this.editorUi.defaultFilename;z=new FilenameDialog(this.editorUi,z,mxResources.get("rename"),mxUtils.bind(this,
function(L){null!=L&&0<L.length&&null!=q&&L!=q.getTitle()&&this.editorUi.spinner.spin(document.body,mxResources.get("renaming"))&&q.rename(L,mxUtils.bind(this,function(N){this.editorUi.spinner.stop()}),mxUtils.bind(this,function(N){this.editorUi.handleError(N,null!=N?mxResources.get("errorRenamingFile"):null)}))}),q.constructor==DriveFile||q.constructor==StorageFile?mxResources.get("diagramName"):null,function(L){if(null!=L&&0<L.length)return!0;d.showError(mxResources.get("error"),mxResources.get("invalidName"),
mxResources.get("ok"));return!1},null,FilenameDialog.filenameHelpLink,null,null,d.editor.fileExtensions);this.editorUi.showDialog(z.container,340,100,!0,!0);z.init()}}));v.isEnabled=function(){return this.enabled&&t.apply(this,arguments)};v.visible="1"!=urlParams.embed;d.actions.addAction("makeCopy...",mxUtils.bind(this,function(){var q=d.getCurrentFile();if(null!=q){var z=d.getCopyFilename(q);q.constructor==DriveFile?(z=new SaveDialog(d,z,mxUtils.bind(this,function(L,N,M){d.hideDialog();q.copyFile(mxUtils.bind(this,
@@ -14701,10 +14708,10 @@ new Action("presentationMode...",function(){var q=null!=d.getCurrentFile()?d.get
!/(\.png)$/i.test(L.getTitle())||this.addMenuItems(q,["liveImage","-"],z);this.addMenuItems(q,["embedImage","embedSvg","-","embedHtml"],z);navigator.standalone||d.isOffline()||this.addMenuItems(q,["embedIframe"],z);this.addMenuItems(q,["-","microsoftOffice","-","embedNotion"],z)})));v=function(q){var z=mxResources.get(q)+"...";d.actions.put(q,new Action(z,function(L){if("fromText"==q||"formatSql"==q||"plantUml"==q||"mermaid"==q){var N=new ParseDialog(d,z,q);d.showDialog(N.container,640,420,!0,!1,
null,null,null,new mxRectangle(0,0,440,280))}else N=new CreateGraphDialog(d,z,q),d.showDialog(N.container,620,420,!0,!1,function(M,m){if(m)return d.confirm(mxResources.get("areYouSure"),function(){d.hideDialog()}),!1;null!=N.graph&&(null!=N.graph.container.parentNode&&N.graph.container.parentNode.removeChild(N.graph.container),N.graph.destroy(),N.graph=null)});N.init()})).isEnabled=t};v("mermaid");v("horizontalFlow");v("verticalFlow");v("horizontalTree");v("verticalTree");v("radialTree");v("organic");
v("circle");v("fromText");v("formatSql");("https://plant-aws.diagrams.net"!=window.PLANT_URL||EditorUi.enablePlantUml&&!d.isOffline())&&v("plantUml");var C=function(q){p.getModel().beginUpdate();try{q=p.addCell(q),p.fireEvent(new mxEventObject("cellsInserted","cells",[q])),p.model.isVertex(q)&&p.isAutoSizeCell(q)&&p.updateCellSize(q)}finally{p.getModel().endUpdate()}p.scrollCellToVisible(q);p.setSelectionCell(q);p.container.focus();p.editAfterInsert&&p.startEditing(q);window.setTimeout(function(){null!=
-d.hoverIcons&&d.hoverIcons.update(p.view.getState(q))},0);return q},F=function(q,z,L,N,M){q=new mxCell(q,new mxGeometry(0,0,z,L),N);q.vertex=!0;null==M&&(M=p.getCenterInsertPoint(p.getBoundingBoxFromGeometry([q],!0)));q.geometry.x=M.x;q.geometry.y=M.y;return C(q)};d.actions.put("insertText",new Action("text",function(q){p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())&&p.startEditingAtCell(F("Text",60,30,p.appendFontSize(Editor.defaultTextStyle,p.vertexFontSize),null==q||mxEvent.isControlDown(q)||
-mxEvent.isMetaDown(q)||!p.isMouseInsertPoint()?null:p.getInsertPoint()))},null,null,"A")).isEnabled=t;d.actions.put("insertRectangle",new Action("rectangle",function(q){p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())&&F("",120,60,"whiteSpace=wrap;html=1;",null==q||mxEvent.isControlDown(q)||mxEvent.isMetaDown(q)||!p.isMouseInsertPoint()?null:p.getInsertPoint())},null,null,"D")).isEnabled=t;d.actions.put("insertNote",new Action("note",function(q){p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())&&
-F("",160,160,Editor.defaultNoteStyle,null==q||mxEvent.isControlDown(q)||mxEvent.isMetaDown(q)||!p.isMouseInsertPoint()?null:p.getInsertPoint())},null,null,"S")).isEnabled=t;d.actions.put("insertEllipse",new Action("ellipse",function(q){p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())&&F("",80,80,"ellipse;whiteSpace=wrap;html=1;",null==q||mxEvent.isControlDown(q)||mxEvent.isMetaDown(q)||!p.isMouseInsertPoint()?null:p.getInsertPoint())},null,null,"F")).isEnabled=t;d.actions.put("insertRhombus",
-new Action("rhombus",function(q){p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())&&F("",80,80,"rhombus;whiteSpace=wrap;html=1;",null==q||mxEvent.isControlDown(q)||mxEvent.isMetaDown(q)||!p.isMouseInsertPoint()?null:p.getInsertPoint())},null,null,"R")).isEnabled=t;d.actions.put("insertEdge",new Action("line",function(q){if(p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())){var z=p.defaultEdgeLength;q=null==q||mxEvent.isControlDown(q)||mxEvent.isMetaDown(q)||!p.isMouseInsertPoint()?null:p.getInsertPoint();
+d.hoverIcons&&d.hoverIcons.update(p.view.getState(q))},0);return q},E=function(q,z,L,N,M){q=new mxCell(q,new mxGeometry(0,0,z,L),N);q.vertex=!0;null==M&&(M=p.getCenterInsertPoint(p.getBoundingBoxFromGeometry([q],!0)));q.geometry.x=M.x;q.geometry.y=M.y;return C(q)};d.actions.put("insertText",new Action("text",function(q){p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())&&p.startEditingAtCell(E("Text",60,30,p.appendFontSize(Editor.defaultTextStyle,p.vertexFontSize),null==q||mxEvent.isControlDown(q)||
+mxEvent.isMetaDown(q)||!p.isMouseInsertPoint()?null:p.getInsertPoint()))},null,null,"A")).isEnabled=t;d.actions.put("insertRectangle",new Action("rectangle",function(q){p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())&&E("",120,60,"whiteSpace=wrap;html=1;",null==q||mxEvent.isControlDown(q)||mxEvent.isMetaDown(q)||!p.isMouseInsertPoint()?null:p.getInsertPoint())},null,null,"D")).isEnabled=t;d.actions.put("insertNote",new Action("note",function(q){p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())&&
+E("",160,160,Editor.defaultNoteStyle,null==q||mxEvent.isControlDown(q)||mxEvent.isMetaDown(q)||!p.isMouseInsertPoint()?null:p.getInsertPoint())},null,null,"S")).isEnabled=t;d.actions.put("insertEllipse",new Action("ellipse",function(q){p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())&&E("",80,80,"ellipse;whiteSpace=wrap;html=1;",null==q||mxEvent.isControlDown(q)||mxEvent.isMetaDown(q)||!p.isMouseInsertPoint()?null:p.getInsertPoint())},null,null,"F")).isEnabled=t;d.actions.put("insertRhombus",
+new Action("rhombus",function(q){p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())&&E("",80,80,"rhombus;whiteSpace=wrap;html=1;",null==q||mxEvent.isControlDown(q)||mxEvent.isMetaDown(q)||!p.isMouseInsertPoint()?null:p.getInsertPoint())},null,null,"R")).isEnabled=t;d.actions.put("insertEdge",new Action("line",function(q){if(p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())){var z=p.defaultEdgeLength;q=null==q||mxEvent.isControlDown(q)||mxEvent.isMetaDown(q)||!p.isMouseInsertPoint()?null:p.getInsertPoint();
null==q&&(q=p.getCenterInsertPoint(p.getBoundingBoxFromGeometry([L],!0)));var L=new mxCell("",new mxGeometry(0,0,z,0),"edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;");L.geometry.setTerminalPoint(q,!0);L.geometry.setTerminalPoint(new mxPoint(q.x+L.geometry.width,q.y),!1);L.geometry.points=[];L.geometry.relative=!0;L.edge=!0;C(L)}},null,null,"C")).isEnabled=t;d.actions.put("insertPolygon",new Action("polygon...",function(q){if(p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())){var z=new PolygonDialog(d,
null,function(L){L=new mxCell("",new mxGeometry(0,0,80,80),L);L.vertex=!0;var N=null==q||mxEvent.isControlDown(q)||mxEvent.isMetaDown(q)||!p.isMouseInsertPoint()?null:p.getInsertPoint();null==N&&(N=p.getCenterInsertPoint(p.getBoundingBoxFromGeometry([L],!0)));L.geometry.x=N.x;L.geometry.y=N.y;return C(L)});d.showDialog(z.container,680,540,!0,!0,function(){z.destroy()},null,null,new mxRectangle(0,0,740,600));z.init()}})).isEnabled=t;v=d.actions.put("toggleShapes",new Action("shapes",function(){null!=
d.sidebarWindow?d.sidebarWindow.window.setVisible(!d.sidebarWindow.window.isVisible()):d.toggleShapesPanel(!d.isShapesPanelVisible())},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+K"));v.setToggleAction(!0);v.setSelectedCallback(mxUtils.bind(this,function(){return null!=d.sidebarWindow&&d.sidebarWindow.window.isVisible()||null==d.sidebarWindow&&0<d.hsplitPosition}));d.actions.put("showShapePicker",new Action(mxResources.get("shapes")+"...",function(){var q=p._contextMenuScreenPoint;d.showShapePicker(null!=
@@ -14738,7 +14745,7 @@ z)})));this.put("currentPage",new Menu(mxUtils.bind(this,function(q,z){var L=d.c
mxResources.get("copyOf",[L.getName()]))}),z),1!=urlParams.embed&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=d.getServiceName()||q.addItem(mxResources.get("openInNewWindow"),null,mxUtils.bind(this,function(){d.editor.editAsNew(d.getFileData(!0,null,null,null,!0,!0))}),z)))})));this.put("pages",new Menu(mxUtils.bind(this,function(q,z){var L=d.currentPage;d.editor.graph.isLightboxView()||(q.addItem(mxResources.get("insertPage"),null,mxUtils.bind(this,function(){try{d.insertPage()}catch(M){d.handleError(M)}}),
z,null,d.editor.graph.isEnabled()),q.addSeparator(z));if(null!=d.pages){for(var N=0;N<d.pages.length;N++)mxUtils.bind(this,function(M){var m=null;m=d.pages[M]==L&&!d.editor.graph.isLightboxView()&&d.editor.graph.isEnabled()?d.menus.addSubmenu("currentPage",q,z,d.getShortPageName(L)):q.addItem(d.getShortPageName(d.pages[M]),null,mxUtils.bind(this,function(){d.selectPage(d.pages[M])}),z);var y=d.pages[M].getId();m.setAttribute("title",d.pages[M].getName()+" ("+(M+1)+"/"+d.pages.length+")"+(null!=y?
" ["+y+"]":""));d.pages[M]==L&&q.addCheckmark(m,Editor.checkmarkImage)})(N);q.addSeparator(z);q.addItem(mxResources.get("deleteAll"),null,mxUtils.bind(this,function(){p.getModel().beginUpdate();try{for(var M=d.pages.length;0<=M;M--)d.removePage(d.pages[M])}catch(m){d.handleError(m)}finally{p.getModel().endUpdate()}d.actions.get("resetView").funct()}),z,null,d.editor.graph.isEnabled())}})));if(EditorUi.isElectronApp){var K="1"==urlParams.enableSpellCheck;v=d.actions.addAction("spellCheck",function(){d.toggleSpellCheck();
-K=!K;d.alert(mxResources.get("restartForChangeRequired"))});v.setToggleAction(!0);v.setSelectedCallback(function(){return K});var I="1"==urlParams.enableStoreBkp;v=d.actions.addAction("autoBkp",function(){d.toggleStoreBkp();I=!I});v.setToggleAction(!0);v.setSelectedCallback(function(){return I});var R="1"==urlParams.isGoogleFontsEnabled;v=d.actions.addAction("googleFonts",function(){d.toggleGoogleFonts();R=!R;d.alert(mxResources.get("restartForChangeRequired"))});v.setToggleAction(!0);v.setSelectedCallback(function(){return R});
+K=!K;d.alert(mxResources.get("restartForChangeRequired"))});v.setToggleAction(!0);v.setSelectedCallback(function(){return K});var I="1"==urlParams.enableStoreBkp;v=d.actions.addAction("autoBkp",function(){d.toggleStoreBkp();I=!I});v.setToggleAction(!0);v.setSelectedCallback(function(){return I});var T="1"==urlParams.isGoogleFontsEnabled;v=d.actions.addAction("googleFonts",function(){d.toggleGoogleFonts();T=!T;d.alert(mxResources.get("restartForChangeRequired"))});v.setToggleAction(!0);v.setSelectedCallback(function(){return T});
d.actions.addAction("openDevTools",function(){d.openDevTools()});d.actions.addAction("drafts...",function(){var q=new FilenameDialog(d,EditorUi.draftSaveDelay/1E3+"",mxResources.get("apply"),mxUtils.bind(this,function(z){z=parseInt(z);0<=z&&(EditorUi.draftSaveDelay=1E3*z,EditorUi.enableDrafts=0<z,mxSettings.setDraftSaveDelay(z),mxSettings.save())}),mxResources.get("draftSaveInt"));d.showDialog(q.container,320,80,!0,!0);q.init()})}var W=this.get("language");this.put("extras",new Menu(mxUtils.bind(this,
function(q,z){if("simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme){null==W||"1"==urlParams.embed&&null!=urlParams.lang||d.menus.addSubmenu("language",q,z);"1"==urlParams.embed&&"1"!=urlParams.atlas||"1"==urlParams.extAuth||"1"==urlParams.embedInline||d.menus.addSubmenu("appearance",q,z);"1"!=urlParams.embed&&"1"!=urlParams.extAuth&&d.mode!=App.MODE_ATLAS&&d.menus.addSubmenu("theme",q,z);q.addSeparator(z);d.menus.addSubmenu("units",q,z);d.menus.addMenuItems(q,
"- copyConnect collapseExpand - tooltips animations -".split(" "),z);var L=d.getCurrentFile();"simple"!=Editor.currentTheme&&(null!=L&&L.isRealtimeEnabled()&&L.isRealtimeSupported()&&this.addMenuItems(q,["showRemoteCursors"],z),d.menus.addMenuItems(q,["ruler","-"],z));EditorUi.isElectronApp&&d.menus.addMenuItems(q,"- googleFonts spellCheck autoBkp drafts -".split(" "),z);this.addSubmenu("diagramLanguage",q,z);q.addSeparator(z);d.mode!=App.MODE_ATLAS&&d.menus.addMenuItem(q,"configuration",z);q.addSeparator(z)}else"1"==
@@ -14762,14 +14769,14 @@ null!=L&&L.isRevisionHistorySupported()&&d.menus.addMenuItems(q,["revisionHistor
EditorUi.isElectronApp||null==L||L.constructor==LocalFile&&null==L.fileHandle||(q.addSeparator(z),N=this.addMenuItem(q,"synchronize",z),(!d.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&this.addLinkToItem(N,"https://www.drawio.com/doc/faq/synchronize")),this.addMenuItems(q,["-","save","saveAs","-"],z),mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=d.getServiceName()||d.isOfflineApp()||null==L||this.addMenuItems(q,["share","-"],z),null!=L&&L.isRenamable()&&this.addMenuItems(q,
["rename"],z),d.isOfflineApp()?this.addMenuItems(q,["upload"],z):(this.addMenuItems(q,["makeCopy"],z),null!=L&&(L.constructor==OneDriveFile&&this.addMenuItems(q,["moveToFolder"],z),null!=L.getFolderUrl()&&d.menus.addMenuItems(q,["openFolder"],z)))),q.addSeparator(z),this.addSubmenu("importFrom",q,z),this.addSubmenu("exportAs",q,z),d.isOffline()||(q.addSeparator(z),this.addSubmenu("embed",q,z),this.addSubmenu("publish",q,z)),q.addSeparator(z),this.addSubmenu("newLibrary",q,z),this.addSubmenu("openLibraryFrom",
q,z),d.isRevisionHistorySupported()&&this.addMenuItems(q,["-","revisionHistory"],z),null!=L&&null!=d.fileNode&&"1"!=urlParams.embedInline&&(N=null!=L.getTitle()?L.getTitle():d.defaultFilename,(L.constructor==DriveFile&&null!=L.sync&&L.sync.isConnected()||!/(\.html)$/i.test(N))&&this.addMenuItems(q,["-","properties"])),this.addMenuItems(q,["-","pageSetup"],z),mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(q,["print"],z),this.addMenuItems(q,["-","close"])})));this.put("fontFamily",new Menu(mxUtils.bind(this,
-function(q,z){function L(T){var V=encodeURIComponent(T.name)+(null==T.url?"":"@"+encodeURIComponent(T.url));if(!M[V]){for(var Q=T.name,S=0;null!=P[Q.toLowerCase()];)Q=T.name+" ("+ ++S+")";null==E[V]&&(O.push({name:T.name,url:T.url,label:Q,title:T.url}),P[Q.toLowerCase()]=T,E[V]=T)}}for(var N=mxUtils.bind(this,function(T,V,Q,S,U){var Y=d.editor.graph,X=this.styleChange(q,null!=S?S:T,[mxConstants.STYLE_FONTFAMILY,"fontSource","FType"],[T,null!=V?encodeURIComponent(V):null,null],null,z,function(){Y.setFont(T,
-V);d.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTFAMILY,"fontSource","FType"],"values",[T,null!=V?encodeURIComponent(V):null,null],"cells",[Y.cellEditor.getEditingCell()]))},function(){Y.updateLabelElements(Y.getSelectionCells(),function(Z){Z.removeAttribute("face");Z.style.fontFamily=null;"PRE"==Z.nodeName&&Y.replaceElement(Z,"div")})});Q&&(Q=document.createElement("img"),Q.className="geAdaptiveAsset",Q.setAttribute("src",Editor.crossImage),Q.setAttribute("title",mxResources.get("delete")),
-Q.setAttribute("valign","absmiddle"),Q.setAttribute("border","0"),Q.style.position="relative",Q.style.top="2px",Q.style.width="14px",Q.style.cursor="default",Q.style.margin="0 3px",X.firstChild.nextSibling.nextSibling.appendChild(Q),mxEvent.addListener(Q,mxClient.IS_POINTER?"pointerup":"mouseup",mxUtils.bind(this,function(Z){this.removeCustomFont(T,V);this.editorUi.hideCurrentMenu();mxEvent.consume(Z)})));Graph.addFont(T,V);X.firstChild.nextSibling.style.fontFamily=T;U=null!=S?S:T;null!=V&&(U+=" ("+
-V+")");X.setAttribute("title",U)}),M={},m=0;m<this.defaultFonts.length;m++){var y=this.defaultFonts[m];"string"===typeof y?N(y):null!=y.fontFamily&&null!=y.fontUrl&&(M[encodeURIComponent(y.fontFamily)+"@"+encodeURIComponent(y.fontUrl)]=!0,N(y.fontFamily,y.fontUrl))}q.addSeparator(z);var E={},P={},O=[];for(m=0;m<this.customFonts.length;m++)L(this.customFonts[m]);O.sort(function(T,V){return T.label<V.label?-1:T.label>V.label?1:0});if(0<O.length){for(m=0;m<O.length;m++)N(O[m].name,O[m].url,!0,O[m].label);
-q.addSeparator(z)}q.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFonts=[];d.fireEvent(new mxEventObject("customFontsChanged"))}),z);q.addSeparator(z);q.addItem(mxResources.get("custom")+"...",null,mxUtils.bind(this,function(){var T=this.editorUi.editor.graph,V=T.getStylesheet().getDefaultVertexStyle()[mxConstants.STYLE_FONTFAMILY],Q="s",S=null;if(T.isEditing()){var U=T.getSelectedEditingElement();if(null!=U){var Y=mxUtils.getCurrentStyle(U);if(null!=Y){V=mxUtils.getCssFontFamily(Y.fontFamily);
-Y=T.getView().getState(T.cellEditor.getEditingCell());S=null!=Y?Y.style.fontSource:null;for(null!=S&&(S=decodeURIComponent(S));null!=U&&U!=T.cellEditor.textarea;){if(U.nodeType==mxConstants.NODETYPE_ELEMENT)if(null!=U.getAttribute("data-font-src")){S=U.getAttribute("data-font-src");break}else if(U.getAttribute("face")==V){S=null;break}U=U.parentNode}null!=S&&(Graph.isGoogleFontUrl(S)?(S=null,Q="g"):Q="w")}}}else Y=T.getView().getState(T.getSelectionCell()),null!=Y&&(V=Y.style[mxConstants.STYLE_FONTFAMILY]||
-V,U=Y.style.fontSource,null!=U&&(U=decodeURIComponent(U),Graph.isGoogleFontUrl(U)?Q="g":(Q="w",S=U)));null!=S&&S.substring(0,PROXY_URL.length)==PROXY_URL&&(S=decodeURIComponent(S.substr((PROXY_URL+"?url=").length)));var X=null;document.activeElement==T.cellEditor.textarea&&(X=T.cellEditor.saveSelection());V=new FontDialog(this.editorUi,V,S,Q,mxUtils.bind(this,function(Z,aa,da){null!=X&&(T.cellEditor.restoreSelection(X),X=null);if(null!=Z&&0<Z.length)if(this.addCustomFont(Z,aa),T.isEditing())T.setFont(Z,
-aa);else{T.getModel().beginUpdate();try{T.stopEditing(!1),T.setCellStyles(mxConstants.STYLE_FONTFAMILY,Z),T.setCellStyles("fontSource",null!=aa?encodeURIComponent(aa):null),T.setCellStyles("FType",null)}finally{T.getModel().endUpdate()}}}));this.editorUi.showDialog(V.container,380,130+(Editor.enableWebFonts?70:0)+("0"!=urlParams.isGoogleFontsEnabled?50:0),!0,!0);V.init()}),z,null,!0)})))}})();function DiagramPage(b,f){this.node=b;null!=f?this.node.setAttribute("id",f):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.diagramModified=!1;DiagramPage.prototype.getId=function(){return this.node.getAttribute("id")};DiagramPage.prototype.getName=function(){return this.node.getAttribute("name")};
+function(q,z){function L(S){var V=encodeURIComponent(S.name)+(null==S.url?"":"@"+encodeURIComponent(S.url));if(!M[V]){for(var Q=S.name,R=0;null!=P[Q.toLowerCase()];)Q=S.name+" ("+ ++R+")";null==F[V]&&(O.push({name:S.name,url:S.url,label:Q,title:S.url}),P[Q.toLowerCase()]=S,F[V]=S)}}for(var N=mxUtils.bind(this,function(S,V,Q,R,U){var Y=d.editor.graph,X=this.styleChange(q,null!=R?R:S,[mxConstants.STYLE_FONTFAMILY,"fontSource","FType"],[S,null!=V?encodeURIComponent(V):null,null],null,z,function(){Y.setFont(S,
+V);d.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTFAMILY,"fontSource","FType"],"values",[S,null!=V?encodeURIComponent(V):null,null],"cells",[Y.cellEditor.getEditingCell()]))},function(){Y.updateLabelElements(Y.getSelectionCells(),function(Z){Z.removeAttribute("face");Z.style.fontFamily=null;"PRE"==Z.nodeName&&Y.replaceElement(Z,"div")})});Q&&(Q=document.createElement("img"),Q.className="geAdaptiveAsset",Q.setAttribute("src",Editor.crossImage),Q.setAttribute("title",mxResources.get("delete")),
+Q.setAttribute("valign","absmiddle"),Q.setAttribute("border","0"),Q.style.position="relative",Q.style.top="2px",Q.style.width="14px",Q.style.cursor="default",Q.style.margin="0 3px",X.firstChild.nextSibling.nextSibling.appendChild(Q),mxEvent.addListener(Q,mxClient.IS_POINTER?"pointerup":"mouseup",mxUtils.bind(this,function(Z){this.removeCustomFont(S,V);this.editorUi.hideCurrentMenu();mxEvent.consume(Z)})));Graph.addFont(S,V);X.firstChild.nextSibling.style.fontFamily=S;U=null!=R?R:S;null!=V&&(U+=" ("+
+V+")");X.setAttribute("title",U)}),M={},m=0;m<this.defaultFonts.length;m++){var y=this.defaultFonts[m];"string"===typeof y?N(y):null!=y.fontFamily&&null!=y.fontUrl&&(M[encodeURIComponent(y.fontFamily)+"@"+encodeURIComponent(y.fontUrl)]=!0,N(y.fontFamily,y.fontUrl))}q.addSeparator(z);var F={},P={},O=[];for(m=0;m<this.customFonts.length;m++)L(this.customFonts[m]);O.sort(function(S,V){return S.label<V.label?-1:S.label>V.label?1:0});if(0<O.length){for(m=0;m<O.length;m++)N(O[m].name,O[m].url,!0,O[m].label);
+q.addSeparator(z)}q.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFonts=[];d.fireEvent(new mxEventObject("customFontsChanged"))}),z);q.addSeparator(z);q.addItem(mxResources.get("custom")+"...",null,mxUtils.bind(this,function(){var S=this.editorUi.editor.graph,V=S.getStylesheet().getDefaultVertexStyle()[mxConstants.STYLE_FONTFAMILY],Q="s",R=null;if(S.isEditing()){var U=S.getSelectedEditingElement();if(null!=U){var Y=mxUtils.getCurrentStyle(U);if(null!=Y){V=mxUtils.getCssFontFamily(Y.fontFamily);
+Y=S.getView().getState(S.cellEditor.getEditingCell());R=null!=Y?Y.style.fontSource:null;for(null!=R&&(R=decodeURIComponent(R));null!=U&&U!=S.cellEditor.textarea;){if(U.nodeType==mxConstants.NODETYPE_ELEMENT)if(null!=U.getAttribute("data-font-src")){R=U.getAttribute("data-font-src");break}else if(U.getAttribute("face")==V){R=null;break}U=U.parentNode}null!=R&&(Graph.isGoogleFontUrl(R)?(R=null,Q="g"):Q="w")}}}else Y=S.getView().getState(S.getSelectionCell()),null!=Y&&(V=Y.style[mxConstants.STYLE_FONTFAMILY]||
+V,U=Y.style.fontSource,null!=U&&(U=decodeURIComponent(U),Graph.isGoogleFontUrl(U)?Q="g":(Q="w",R=U)));null!=R&&R.substring(0,PROXY_URL.length)==PROXY_URL&&(R=decodeURIComponent(R.substr((PROXY_URL+"?url=").length)));var X=null;document.activeElement==S.cellEditor.textarea&&(X=S.cellEditor.saveSelection());V=new FontDialog(this.editorUi,V,R,Q,mxUtils.bind(this,function(Z,aa,da){null!=X&&(S.cellEditor.restoreSelection(X),X=null);if(null!=Z&&0<Z.length)if(this.addCustomFont(Z,aa),S.isEditing())S.setFont(Z,
+aa);else{S.getModel().beginUpdate();try{S.stopEditing(!1),S.setCellStyles(mxConstants.STYLE_FONTFAMILY,Z),S.setCellStyles("fontSource",null!=aa?encodeURIComponent(aa):null),S.setCellStyles("FType",null)}finally{S.getModel().endUpdate()}}}));this.editorUi.showDialog(V.container,380,130+(Editor.enableWebFonts?70:0)+("0"!=urlParams.isGoogleFontsEnabled?50:0),!0,!0);V.init()}),z,null,!0)})))}})();function DiagramPage(b,f){this.node=b;null!=f?this.node.setAttribute("id",f):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.diagramModified=!1;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)};DiagramPage.prototype.setDiagramModified=function(b){this.diagramModified=b};DiagramPage.prototype.isDiagramModified=function(){return this.diagramModified};function RenamePage(b,f,k){this.ui=b;this.page=f;this.previous=this.name=k}
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,f,k){this.ui=b;this.oldIndex=f;this.newIndex=k}
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,f,k){this.ui=b;this.previousPage=this.page=f;null!=f&&(this.ui.updatePageRoot(f),null!=k&&(f.viewState=k))}
@@ -14842,30 +14849,30 @@ EditorUi.prototype.createPageMenu=function(b,f){return mxUtils.bind(this,functio
[];this.traverse(p,!0,mxUtils.bind(this,function(A,J){var H=null!=J&&this.isTreeEdge(J);H&&t.push(J);A==p||null!=J&&!H||t.push(A);return(null==J||H)&&(A==p||!this.model.isCollapsed(A))}));this.model.setCollapsed(p,d);for(var v=0;v<t.length;v++)this.model.setVisible(t[v],!d)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(d){return!this.isEdgeIgnored(d)};Graph.prototype.getTreeEdges=function(d,p,t,v,A,J){return this.model.filterCells(this.getEdges(d,p,t,v,A,J),mxUtils.bind(this,
function(H){return this.isTreeEdge(H)}))};Graph.prototype.getIncomingTreeEdges=function(d,p){return this.getTreeEdges(d,p,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(d,p){return this.getTreeEdges(d,p,!1,!0,!1)};var f=EditorUi.prototype.init;EditorUi.prototype.init=function(){f.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function d(M){return n.isVertex(M)&&t(M)}function p(M){var m=!1;null!=M&&(m="1"==
l.getCurrentCellStyle(M).treeMoving);return m}function t(M){var m=!1;null!=M&&(M=n.getParent(M),m=l.view.getState(M),m="tree"==(null!=m?m.style:l.getCellStyle(M)).containerType);return m}function v(M){var m=!1;null!=M&&(M=n.getParent(M),m=l.view.getState(M),l.view.getState(M),m=null!=(null!=m?m.style:l.getCellStyle(M)).childLayout);return m}function A(M){M=l.view.getState(M);if(null!=M){var m=l.getIncomingTreeEdges(M.cell);if(0<m.length&&(m=l.view.getState(m[0]),null!=m&&(m=m.absolutePoints,null!=
-m&&0<m.length&&(m=m[m.length-1],null!=m)))){if(m.y==M.y&&Math.abs(m.x-M.getCenterX())<M.width/2)return mxConstants.DIRECTION_SOUTH;if(m.y==M.y+M.height&&Math.abs(m.x-M.getCenterX())<M.width/2)return mxConstants.DIRECTION_NORTH;if(m.x>M.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function J(M,m){m=null!=m?m:!0;l.model.beginUpdate();try{var y=l.model.getParent(M),E=l.getIncomingTreeEdges(M),P=l.cloneCells([E[0],M]);l.model.setTerminal(P[0],l.model.getTerminal(E[0],
-!0),!0);var O=A(M),T=y.geometry;O==mxConstants.DIRECTION_SOUTH||O==mxConstants.DIRECTION_NORTH?P[1].geometry.x+=m?M.geometry.width+10:-P[1].geometry.width-10:P[1].geometry.y+=m?M.geometry.height+10:-P[1].geometry.height-10;l.view.currentRoot!=y&&(P[1].geometry.x-=T.x,P[1].geometry.y-=T.y);var V=l.view.getState(M),Q=l.view.scale;if(null!=V){var S=mxRectangle.fromRectangle(V);O==mxConstants.DIRECTION_SOUTH||O==mxConstants.DIRECTION_NORTH?S.x+=(m?M.geometry.width+10:-P[1].geometry.width-10)*Q:S.y+=(m?
-M.geometry.height+10:-P[1].geometry.height-10)*Q;var U=l.getOutgoingTreeEdges(l.model.getTerminal(E[0],!0));if(null!=U){for(var Y=O==mxConstants.DIRECTION_SOUTH||O==mxConstants.DIRECTION_NORTH,X=T=E=0;X<U.length;X++){var Z=l.model.getTerminal(U[X],!1);if(O==A(Z)){var aa=l.view.getState(Z);Z!=M&&null!=aa&&(Y&&m!=aa.getCenterX()<V.getCenterX()||!Y&&m!=aa.getCenterY()<V.getCenterY())&&mxUtils.intersects(S,aa)&&(E=10+Math.max(E,(Math.min(S.x+S.width,aa.x+aa.width)-Math.max(S.x,aa.x))/Q),T=10+Math.max(T,
-(Math.min(S.y+S.height,aa.y+aa.height)-Math.max(S.y,aa.y))/Q))}}Y?T=0:E=0;for(X=0;X<U.length;X++)if(Z=l.model.getTerminal(U[X],!1),O==A(Z)&&(aa=l.view.getState(Z),Z!=M&&null!=aa&&(Y&&m!=aa.getCenterX()<V.getCenterX()||!Y&&m!=aa.getCenterY()<V.getCenterY()))){var da=[];l.traverse(aa.cell,!0,function(fa,ba){var ia=null!=ba&&l.isTreeEdge(ba);ia&&da.push(ba);(null==ba||ia)&&da.push(fa);return null==ba||ia});l.moveCells(da,(m?1:-1)*E,(m?1:-1)*T)}}}return l.addCells(P,y)}finally{l.model.endUpdate()}}function H(M){l.model.beginUpdate();
-try{var m=A(M),y=l.getIncomingTreeEdges(M),E=l.cloneCells([y[0],M]);l.model.setTerminal(y[0],E[1],!1);l.model.setTerminal(E[0],E[1],!0);l.model.setTerminal(E[0],M,!1);var P=l.model.getParent(M),O=P.geometry,T=[];l.view.currentRoot!=P&&(E[1].geometry.x-=O.x,E[1].geometry.y-=O.y);l.traverse(M,!0,function(S,U){var Y=null!=U&&l.isTreeEdge(U);Y&&T.push(U);(null==U||Y)&&T.push(S);return null==U||Y});var V=M.geometry.width+40,Q=M.geometry.height+40;m==mxConstants.DIRECTION_SOUTH?V=0:m==mxConstants.DIRECTION_NORTH?
-(V=0,Q=-Q):m==mxConstants.DIRECTION_WEST?(V=-V,Q=0):m==mxConstants.DIRECTION_EAST&&(Q=0);l.moveCells(T,V,Q);return l.addCells(E,P)}finally{l.model.endUpdate()}}function G(M,m){l.model.beginUpdate();try{var y=l.model.getParent(M),E=l.getIncomingTreeEdges(M),P=A(M);0==E.length&&(E=[l.createEdge(y,null,"",null,null,l.createCurrentEdgeStyle())],P=m);var O=l.cloneCells([E[0],M]);l.model.setTerminal(O[0],M,!0);null==l.model.getTerminal(O[0],!1)&&(l.model.setTerminal(O[0],O[1],!1),l.applyNewEdgeStyle(O[1],
-[O[0]],P));E=l.getOutgoingTreeEdges(M);var T=y.geometry;m=[];l.view.currentRoot==y&&(T=new mxRectangle);for(var V=0;V<E.length;V++){var Q=l.model.getTerminal(E[V],!1);null!=Q&&m.push(Q)}var S=l.view.getBounds(m),U=l.view.translate,Y=l.view.scale;P==mxConstants.DIRECTION_SOUTH?(O[1].geometry.x=null==S?M.geometry.x+(M.geometry.width-O[1].geometry.width)/2:(S.x+S.width)/Y-U.x-T.x+10,O[1].geometry.y+=O[1].geometry.height-T.y+40):P==mxConstants.DIRECTION_NORTH?(O[1].geometry.x=null==S?M.geometry.x+(M.geometry.width-
-O[1].geometry.width)/2:(S.x+S.width)/Y-U.x+-T.x+10,O[1].geometry.y-=O[1].geometry.height+T.y+40):(O[1].geometry.x=P==mxConstants.DIRECTION_WEST?O[1].geometry.x-(O[1].geometry.width+T.x+40):O[1].geometry.x+(O[1].geometry.width-T.x+40),O[1].geometry.y=null==S?M.geometry.y+(M.geometry.height-O[1].geometry.height)/2:(S.y+S.height)/Y-U.y+-T.y+10);return l.addCells(O,y)}finally{l.model.endUpdate()}}function D(M,m,y){M=l.getOutgoingTreeEdges(M);y=l.view.getState(y);var E=[];if(null!=y&&null!=M){for(var P=
-0;P<M.length;P++){var O=l.view.getState(l.model.getTerminal(M[P],!1));null!=O&&(!m&&Math.min(O.x+O.width,y.x+y.width)>=Math.max(O.x,y.x)||m&&Math.min(O.y+O.height,y.y+y.height)>=Math.max(O.y,y.y))&&E.push(O)}E.sort(function(T,V){return m?T.x+T.width-V.x-V.width:T.y+T.height-V.y-V.height})}return E}function c(M,m){var y=A(M),E=m==mxConstants.DIRECTION_EAST||m==mxConstants.DIRECTION_WEST;(y==mxConstants.DIRECTION_EAST||y==mxConstants.DIRECTION_WEST)==E&&y!=m?g.actions.get("selectParent").funct():y==
-m?(m=l.getOutgoingTreeEdges(M),null!=m&&0<m.length&&l.setSelectionCell(l.model.getTerminal(m[0],!1))):(y=l.getIncomingTreeEdges(M),null!=y&&0<y.length&&(E=D(l.model.getTerminal(y[0],!0),E,M),M=l.view.getState(M),null!=M&&(M=mxUtils.indexOf(E,M),0<=M&&(M+=m==mxConstants.DIRECTION_NORTH||m==mxConstants.DIRECTION_WEST?-1:1,0<=M&&M<=E.length-1&&l.setSelectionCell(E[M].cell)))))}var g=this,l=g.editor.graph,n=l.getModel(),u=g.menus.createPopupMenu;g.menus.createPopupMenu=function(M,m,y){u.apply(this,arguments);
-if(1==l.getSelectionCount()){m=l.getSelectionCell();var E=l.getOutgoingTreeEdges(m);M.addSeparator();0<E.length&&(d(l.getSelectionCell())&&this.addMenuItems(M,["selectChildren"],null,y),this.addMenuItems(M,["selectDescendants"],null,y));d(l.getSelectionCell())?(M.addSeparator(),0<l.getIncomingTreeEdges(m).length&&this.addMenuItems(M,["selectSiblings","selectParent"],null,y)):0<l.model.getEdgeCount(m)&&this.addMenuItems(M,["selectConnections"],null,y)}};g.actions.addAction("selectChildren",function(M){if(l.isEnabled()&&
-1==l.getSelectionCount()){var m=l.getSelectionCell();M=mxEvent.isControlDown(M)?null:l.getOutgoingTreeEdges(m);if(null!=M&&0<M.length){m=[];for(var y=0;y<M.length;y++)m.push(l.model.getTerminal(M[y],!1));l.setSelectionCells(m)}else l.setSelectionCells(l.model.getChildren(m))}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+C");g.actions.addAction("selectDescendants",function(M){var m=l.getSelectionCell();if(l.isEnabled()&&null!=m){var y=[];mxEvent.isControlDown(M)||l.traverse(m,!0,function(E,P){var O=
-null!=P&&l.isTreeEdge(P);O&&mxEvent.isControlDown(M)&&y.push(P);(null==P||O)&&y.push(E);return null==P||O});if(0==y.length||1==y.length&&y[0]==m)y=l.model.getDescendants(m);l.setSelectionCells(y)}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+X");g.actions.addAction("selectParent",function(M){var m=l.getSelectionCell();l.isEnabled()&&null!=m&&(M=mxEvent.isControlDown(M)?null:l.getIncomingTreeEdges(m),null!=M&&0<M.length?l.setSelectionCell(l.model.getTerminal(M[0],!0)):l.selectParentCell())},null,
-null,Editor.altKey+"+"+Editor.shiftKey+"+P");g.actions.addAction("selectSiblings",function(M){if(l.isEnabled()&&1==l.getSelectionCount()){var m=l.getSelectionCell(),y=mxEvent.isControlDown(M)?null:l.getIncomingTreeEdges(m);M=[];if(null!=y&&0<y.length&&(y=l.getOutgoingTreeEdges(l.model.getTerminal(y[0],!0)),null!=y))for(var E=0;E<y.length;E++)M.push(l.model.getTerminal(y[E],!1));0==M.length&&(M=l.model.getChildren(l.model.getParent(m)));l.setSelectionCells(M)}},null,null,Editor.altKey+"+"+Editor.shiftKey+
-"+S");var x=l.removeCells;l.removeCells=function(M,m){m=null!=m?m:!0;null==M&&(M=this.getDeletableCells(this.getSelectionCells()));m&&(M=this.getDeletableCells(this.addAllEdges(M)));for(var y=[],E=0;E<M.length;E++){var P=M[E];n.isEdge(P)&&t(P)&&(y.push(P),P=n.getTerminal(P,!1));if(d(P)){var O=[];l.traverse(P,!0,function(T,V){var Q=null!=V&&l.isTreeEdge(V);Q&&O.push(V);(null==V||Q)&&O.push(T);return null==V||Q});0<O.length&&(y=y.concat(O),P=l.getIncomingTreeEdges(M[E]),M=M.concat(P))}else null!=P&&
-y.push(M[E])}M=y;return x.apply(this,arguments)};g.hoverIcons.getStateAt=function(M,m,y){return d(M.cell)?null:this.graph.view.getState(this.graph.getCellAt(m,y))};var B=l.duplicateCells;l.duplicateCells=function(M,m){M=null!=M?M:this.getSelectionCells();for(var y=M.slice(0),E=0;E<y.length;E++){var P=l.view.getState(y[E]);if(null!=P&&d(P.cell)){var O=l.getIncomingTreeEdges(P.cell);for(P=0;P<O.length;P++)mxUtils.remove(O[P],M)}}this.model.beginUpdate();try{var T=B.call(this,M,m);if(T.length==M.length)for(E=
-0;E<M.length;E++)if(d(M[E])){var V=l.getIncomingTreeEdges(T[E]);O=l.getIncomingTreeEdges(M[E]);if(0==V.length&&0<O.length){var Q=this.cloneCell(O[0]);this.addEdge(Q,l.getDefaultParent(),this.model.getTerminal(O[0],!0),T[E])}}}finally{this.model.endUpdate()}return T};var C=l.moveCells;l.moveCells=function(M,m,y,E,P,O,T){for(var V=null,Q=[],S=0;S<M.length;S++)(p(M[S])||d(M[S]))&&!v(M[S])&&this.isCellCollapsed(M[S])?Q=Q.concat(this.getSubtree(M[S])):Q.push(M[S]);M=mxUtils.removeDuplicates(Q);this.model.beginUpdate();
-try{Q=P;var U=this.getCurrentCellStyle(P);if(null!=M&&d(P)&&"1"==mxUtils.getValue(U,"treeFolding","0")){for(S=0;S<M.length;S++)if(d(M[S])||l.model.isEdge(M[S])&&null==l.model.getTerminal(M[S],!0)){P=l.model.getParent(M[S]);break}if(null!=Q&&P!=Q&&null!=this.view.getState(M[0])){var Y=l.getIncomingTreeEdges(M[0]);if(0<Y.length){var X=l.view.getState(l.model.getTerminal(Y[0],!0));if(null!=X){var Z=l.view.getState(Q);null!=Z&&(m=(Z.getCenterX()-X.getCenterX())/l.view.scale,y=(Z.getCenterY()-X.getCenterY())/
-l.view.scale)}}}}V=C.apply(this,arguments);if(null!=V&&null!=M&&V.length==M.length)for(S=0;S<V.length;S++)if(this.model.isEdge(V[S]))d(Q)&&0>mxUtils.indexOf(V,this.model.getTerminal(V[S],!0))&&this.model.setTerminal(V[S],Q,!0);else if(d(M[S])&&(Y=l.getIncomingTreeEdges(M[S]),0<Y.length))if(!E)d(Q)&&0>mxUtils.indexOf(M,this.model.getTerminal(Y[0],!0))&&this.model.setTerminal(Y[0],Q,!0);else if(0==l.getIncomingTreeEdges(V[S]).length){U=Q;if(null==U||U==l.model.getParent(M[S]))U=l.model.getTerminal(Y[0],
-!0);E=this.cloneCell(Y[0]);this.addEdge(E,l.getDefaultParent(),U,V[S])}}finally{this.model.endUpdate()}return V};if(null!=g.sidebar){var F=g.sidebar.dropAndConnect;g.sidebar.dropAndConnect=function(M,m,y,E){var P=l.model,O=null;P.beginUpdate();try{if(O=F.apply(this,arguments),d(M))for(var T=0;T<O.length;T++)if(P.isEdge(O[T])&&null==P.getTerminal(O[T],!0)){P.setTerminal(O[T],M,!0);var V=l.getCellGeometry(O[T]);V.points=null;null!=V.getTerminalPoint(!0)&&V.setTerminalPoint(null,!0)}}finally{P.endUpdate()}return O}}var K=
-{67:g.actions.get("selectChildren"),88:g.actions.get("selectDescendants"),80:g.actions.get("selectParent"),83:g.actions.get("selectSiblings")},I={67:g.actions.get("copyStyle"),86:g.actions.get("pasteStyle")},R=g.onKeyDown;g.onKeyDown=function(M){try{var m=l.getSelectionCell();if(l.isEnabled()&&!l.isEditing()&&null!=m){var y=mxEvent.isAltDown(M)&&mxEvent.isShiftDown(M)?K[M.keyCode]:mxEvent.isAltDown(M)?I[M.keyCode]:null;null!=y?(y.funct(M),mxEvent.consume(M)):d(m)&&(y=null,0<l.getIncomingTreeEdges(m).length&&
+m&&0<m.length&&(m=m[m.length-1],null!=m)))){if(m.y==M.y&&Math.abs(m.x-M.getCenterX())<M.width/2)return mxConstants.DIRECTION_SOUTH;if(m.y==M.y+M.height&&Math.abs(m.x-M.getCenterX())<M.width/2)return mxConstants.DIRECTION_NORTH;if(m.x>M.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function J(M,m){m=null!=m?m:!0;l.model.beginUpdate();try{var y=l.model.getParent(M),F=l.getIncomingTreeEdges(M),P=l.cloneCells([F[0],M]);l.model.setTerminal(P[0],l.model.getTerminal(F[0],
+!0),!0);var O=A(M),S=y.geometry;O==mxConstants.DIRECTION_SOUTH||O==mxConstants.DIRECTION_NORTH?P[1].geometry.x+=m?M.geometry.width+10:-P[1].geometry.width-10:P[1].geometry.y+=m?M.geometry.height+10:-P[1].geometry.height-10;l.view.currentRoot!=y&&(P[1].geometry.x-=S.x,P[1].geometry.y-=S.y);var V=l.view.getState(M),Q=l.view.scale;if(null!=V){var R=mxRectangle.fromRectangle(V);O==mxConstants.DIRECTION_SOUTH||O==mxConstants.DIRECTION_NORTH?R.x+=(m?M.geometry.width+10:-P[1].geometry.width-10)*Q:R.y+=(m?
+M.geometry.height+10:-P[1].geometry.height-10)*Q;var U=l.getOutgoingTreeEdges(l.model.getTerminal(F[0],!0));if(null!=U){for(var Y=O==mxConstants.DIRECTION_SOUTH||O==mxConstants.DIRECTION_NORTH,X=S=F=0;X<U.length;X++){var Z=l.model.getTerminal(U[X],!1);if(O==A(Z)){var aa=l.view.getState(Z);Z!=M&&null!=aa&&(Y&&m!=aa.getCenterX()<V.getCenterX()||!Y&&m!=aa.getCenterY()<V.getCenterY())&&mxUtils.intersects(R,aa)&&(F=10+Math.max(F,(Math.min(R.x+R.width,aa.x+aa.width)-Math.max(R.x,aa.x))/Q),S=10+Math.max(S,
+(Math.min(R.y+R.height,aa.y+aa.height)-Math.max(R.y,aa.y))/Q))}}Y?S=0:F=0;for(X=0;X<U.length;X++)if(Z=l.model.getTerminal(U[X],!1),O==A(Z)&&(aa=l.view.getState(Z),Z!=M&&null!=aa&&(Y&&m!=aa.getCenterX()<V.getCenterX()||!Y&&m!=aa.getCenterY()<V.getCenterY()))){var da=[];l.traverse(aa.cell,!0,function(fa,ba){var ia=null!=ba&&l.isTreeEdge(ba);ia&&da.push(ba);(null==ba||ia)&&da.push(fa);return null==ba||ia});l.moveCells(da,(m?1:-1)*F,(m?1:-1)*S)}}}return l.addCells(P,y)}finally{l.model.endUpdate()}}function H(M){l.model.beginUpdate();
+try{var m=A(M),y=l.getIncomingTreeEdges(M),F=l.cloneCells([y[0],M]);l.model.setTerminal(y[0],F[1],!1);l.model.setTerminal(F[0],F[1],!0);l.model.setTerminal(F[0],M,!1);var P=l.model.getParent(M),O=P.geometry,S=[];l.view.currentRoot!=P&&(F[1].geometry.x-=O.x,F[1].geometry.y-=O.y);l.traverse(M,!0,function(R,U){var Y=null!=U&&l.isTreeEdge(U);Y&&S.push(U);(null==U||Y)&&S.push(R);return null==U||Y});var V=M.geometry.width+40,Q=M.geometry.height+40;m==mxConstants.DIRECTION_SOUTH?V=0:m==mxConstants.DIRECTION_NORTH?
+(V=0,Q=-Q):m==mxConstants.DIRECTION_WEST?(V=-V,Q=0):m==mxConstants.DIRECTION_EAST&&(Q=0);l.moveCells(S,V,Q);return l.addCells(F,P)}finally{l.model.endUpdate()}}function G(M,m){l.model.beginUpdate();try{var y=l.model.getParent(M),F=l.getIncomingTreeEdges(M),P=A(M);0==F.length&&(F=[l.createEdge(y,null,"",null,null,l.createCurrentEdgeStyle())],P=m);var O=l.cloneCells([F[0],M]);l.model.setTerminal(O[0],M,!0);null==l.model.getTerminal(O[0],!1)&&(l.model.setTerminal(O[0],O[1],!1),l.applyNewEdgeStyle(O[1],
+[O[0]],P));F=l.getOutgoingTreeEdges(M);var S=y.geometry;m=[];l.view.currentRoot==y&&(S=new mxRectangle);for(var V=0;V<F.length;V++){var Q=l.model.getTerminal(F[V],!1);null!=Q&&m.push(Q)}var R=l.view.getBounds(m),U=l.view.translate,Y=l.view.scale;P==mxConstants.DIRECTION_SOUTH?(O[1].geometry.x=null==R?M.geometry.x+(M.geometry.width-O[1].geometry.width)/2:(R.x+R.width)/Y-U.x-S.x+10,O[1].geometry.y+=O[1].geometry.height-S.y+40):P==mxConstants.DIRECTION_NORTH?(O[1].geometry.x=null==R?M.geometry.x+(M.geometry.width-
+O[1].geometry.width)/2:(R.x+R.width)/Y-U.x+-S.x+10,O[1].geometry.y-=O[1].geometry.height+S.y+40):(O[1].geometry.x=P==mxConstants.DIRECTION_WEST?O[1].geometry.x-(O[1].geometry.width+S.x+40):O[1].geometry.x+(O[1].geometry.width-S.x+40),O[1].geometry.y=null==R?M.geometry.y+(M.geometry.height-O[1].geometry.height)/2:(R.y+R.height)/Y-U.y+-S.y+10);return l.addCells(O,y)}finally{l.model.endUpdate()}}function D(M,m,y){M=l.getOutgoingTreeEdges(M);y=l.view.getState(y);var F=[];if(null!=y&&null!=M){for(var P=
+0;P<M.length;P++){var O=l.view.getState(l.model.getTerminal(M[P],!1));null!=O&&(!m&&Math.min(O.x+O.width,y.x+y.width)>=Math.max(O.x,y.x)||m&&Math.min(O.y+O.height,y.y+y.height)>=Math.max(O.y,y.y))&&F.push(O)}F.sort(function(S,V){return m?S.x+S.width-V.x-V.width:S.y+S.height-V.y-V.height})}return F}function c(M,m){var y=A(M),F=m==mxConstants.DIRECTION_EAST||m==mxConstants.DIRECTION_WEST;(y==mxConstants.DIRECTION_EAST||y==mxConstants.DIRECTION_WEST)==F&&y!=m?g.actions.get("selectParent").funct():y==
+m?(m=l.getOutgoingTreeEdges(M),null!=m&&0<m.length&&l.setSelectionCell(l.model.getTerminal(m[0],!1))):(y=l.getIncomingTreeEdges(M),null!=y&&0<y.length&&(F=D(l.model.getTerminal(y[0],!0),F,M),M=l.view.getState(M),null!=M&&(M=mxUtils.indexOf(F,M),0<=M&&(M+=m==mxConstants.DIRECTION_NORTH||m==mxConstants.DIRECTION_WEST?-1:1,0<=M&&M<=F.length-1&&l.setSelectionCell(F[M].cell)))))}var g=this,l=g.editor.graph,n=l.getModel(),u=g.menus.createPopupMenu;g.menus.createPopupMenu=function(M,m,y){u.apply(this,arguments);
+if(1==l.getSelectionCount()){m=l.getSelectionCell();var F=l.getOutgoingTreeEdges(m);M.addSeparator();0<F.length&&(d(l.getSelectionCell())&&this.addMenuItems(M,["selectChildren"],null,y),this.addMenuItems(M,["selectDescendants"],null,y));d(l.getSelectionCell())?(M.addSeparator(),0<l.getIncomingTreeEdges(m).length&&this.addMenuItems(M,["selectSiblings","selectParent"],null,y)):0<l.model.getEdgeCount(m)&&this.addMenuItems(M,["selectConnections"],null,y)}};g.actions.addAction("selectChildren",function(M){if(l.isEnabled()&&
+1==l.getSelectionCount()){var m=l.getSelectionCell();M=mxEvent.isControlDown(M)?null:l.getOutgoingTreeEdges(m);if(null!=M&&0<M.length){m=[];for(var y=0;y<M.length;y++)m.push(l.model.getTerminal(M[y],!1));l.setSelectionCells(m)}else l.setSelectionCells(l.model.getChildren(m))}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+C");g.actions.addAction("selectDescendants",function(M){var m=l.getSelectionCell();if(l.isEnabled()&&null!=m){var y=[];mxEvent.isControlDown(M)||l.traverse(m,!0,function(F,P){var O=
+null!=P&&l.isTreeEdge(P);O&&mxEvent.isControlDown(M)&&y.push(P);(null==P||O)&&y.push(F);return null==P||O});if(0==y.length||1==y.length&&y[0]==m)y=l.model.getDescendants(m);l.setSelectionCells(y)}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+X");g.actions.addAction("selectParent",function(M){var m=l.getSelectionCell();l.isEnabled()&&null!=m&&(M=mxEvent.isControlDown(M)?null:l.getIncomingTreeEdges(m),null!=M&&0<M.length?l.setSelectionCell(l.model.getTerminal(M[0],!0)):l.selectParentCell())},null,
+null,Editor.altKey+"+"+Editor.shiftKey+"+P");g.actions.addAction("selectSiblings",function(M){if(l.isEnabled()&&1==l.getSelectionCount()){var m=l.getSelectionCell(),y=mxEvent.isControlDown(M)?null:l.getIncomingTreeEdges(m);M=[];if(null!=y&&0<y.length&&(y=l.getOutgoingTreeEdges(l.model.getTerminal(y[0],!0)),null!=y))for(var F=0;F<y.length;F++)M.push(l.model.getTerminal(y[F],!1));0==M.length&&(M=l.model.getChildren(l.model.getParent(m)));l.setSelectionCells(M)}},null,null,Editor.altKey+"+"+Editor.shiftKey+
+"+S");var x=l.removeCells;l.removeCells=function(M,m){m=null!=m?m:!0;null==M&&(M=this.getDeletableCells(this.getSelectionCells()));m&&(M=this.getDeletableCells(this.addAllEdges(M)));for(var y=[],F=0;F<M.length;F++){var P=M[F];n.isEdge(P)&&t(P)&&(y.push(P),P=n.getTerminal(P,!1));if(d(P)){var O=[];l.traverse(P,!0,function(S,V){var Q=null!=V&&l.isTreeEdge(V);Q&&O.push(V);(null==V||Q)&&O.push(S);return null==V||Q});0<O.length&&(y=y.concat(O),P=l.getIncomingTreeEdges(M[F]),M=M.concat(P))}else null!=P&&
+y.push(M[F])}M=y;return x.apply(this,arguments)};g.hoverIcons.getStateAt=function(M,m,y){return d(M.cell)?null:this.graph.view.getState(this.graph.getCellAt(m,y))};var B=l.duplicateCells;l.duplicateCells=function(M,m){M=null!=M?M:this.getSelectionCells();for(var y=M.slice(0),F=0;F<y.length;F++){var P=l.view.getState(y[F]);if(null!=P&&d(P.cell)){var O=l.getIncomingTreeEdges(P.cell);for(P=0;P<O.length;P++)mxUtils.remove(O[P],M)}}this.model.beginUpdate();try{var S=B.call(this,M,m);if(S.length==M.length)for(F=
+0;F<M.length;F++)if(d(M[F])){var V=l.getIncomingTreeEdges(S[F]);O=l.getIncomingTreeEdges(M[F]);if(0==V.length&&0<O.length){var Q=this.cloneCell(O[0]);this.addEdge(Q,l.getDefaultParent(),this.model.getTerminal(O[0],!0),S[F])}}}finally{this.model.endUpdate()}return S};var C=l.moveCells;l.moveCells=function(M,m,y,F,P,O,S){for(var V=null,Q=[],R=0;R<M.length;R++)(p(M[R])||d(M[R]))&&!v(M[R])&&this.isCellCollapsed(M[R])?Q=Q.concat(this.getSubtree(M[R])):Q.push(M[R]);M=mxUtils.removeDuplicates(Q);this.model.beginUpdate();
+try{Q=P;var U=this.getCurrentCellStyle(P);if(null!=M&&d(P)&&"1"==mxUtils.getValue(U,"treeFolding","0")){for(R=0;R<M.length;R++)if(d(M[R])||l.model.isEdge(M[R])&&null==l.model.getTerminal(M[R],!0)){P=l.model.getParent(M[R]);break}if(null!=Q&&P!=Q&&null!=this.view.getState(M[0])){var Y=l.getIncomingTreeEdges(M[0]);if(0<Y.length){var X=l.view.getState(l.model.getTerminal(Y[0],!0));if(null!=X){var Z=l.view.getState(Q);null!=Z&&(m=(Z.getCenterX()-X.getCenterX())/l.view.scale,y=(Z.getCenterY()-X.getCenterY())/
+l.view.scale)}}}}V=C.apply(this,arguments);if(null!=V&&null!=M&&V.length==M.length)for(R=0;R<V.length;R++)if(this.model.isEdge(V[R]))d(Q)&&0>mxUtils.indexOf(V,this.model.getTerminal(V[R],!0))&&this.model.setTerminal(V[R],Q,!0);else if(d(M[R])&&(Y=l.getIncomingTreeEdges(M[R]),0<Y.length))if(!F)d(Q)&&0>mxUtils.indexOf(M,this.model.getTerminal(Y[0],!0))&&this.model.setTerminal(Y[0],Q,!0);else if(0==l.getIncomingTreeEdges(V[R]).length){U=Q;if(null==U||U==l.model.getParent(M[R]))U=l.model.getTerminal(Y[0],
+!0);F=this.cloneCell(Y[0]);this.addEdge(F,l.getDefaultParent(),U,V[R])}}finally{this.model.endUpdate()}return V};if(null!=g.sidebar){var E=g.sidebar.dropAndConnect;g.sidebar.dropAndConnect=function(M,m,y,F){var P=l.model,O=null;P.beginUpdate();try{if(O=E.apply(this,arguments),d(M))for(var S=0;S<O.length;S++)if(P.isEdge(O[S])&&null==P.getTerminal(O[S],!0)){P.setTerminal(O[S],M,!0);var V=l.getCellGeometry(O[S]);V.points=null;null!=V.getTerminalPoint(!0)&&V.setTerminalPoint(null,!0)}}finally{P.endUpdate()}return O}}var K=
+{67:g.actions.get("selectChildren"),88:g.actions.get("selectDescendants"),80:g.actions.get("selectParent"),83:g.actions.get("selectSiblings")},I={67:g.actions.get("copyStyle"),86:g.actions.get("pasteStyle")},T=g.onKeyDown;g.onKeyDown=function(M){try{var m=l.getSelectionCell();if(l.isEnabled()&&!l.isEditing()&&null!=m){var y=mxEvent.isAltDown(M)&&mxEvent.isShiftDown(M)?K[M.keyCode]:mxEvent.isAltDown(M)?I[M.keyCode]:null;null!=y?(y.funct(M),mxEvent.consume(M)):d(m)&&(y=null,0<l.getIncomingTreeEdges(m).length&&
(9==M.which?y=mxEvent.isShiftDown(M)?H(m):G(m):13==M.which&&(y=J(m,!mxEvent.isShiftDown(M)))),null!=y&&0<y.length?(1==y.length&&l.model.isEdge(y[0])?l.setSelectionCell(l.model.getTerminal(y[0],!1)):l.setSelectionCell(y[y.length-1]),null!=g.hoverIcons&&g.hoverIcons.update(l.view.getState(m)),l.startEditingAtCell(m),mxEvent.consume(M)):37==M.keyCode?(c(m,mxConstants.DIRECTION_WEST),mxEvent.consume(M)):38==M.keyCode?(c(m,mxConstants.DIRECTION_NORTH),mxEvent.consume(M)):39==M.keyCode?(c(m,mxConstants.DIRECTION_EAST),
-mxEvent.consume(M)):40==M.keyCode&&(c(m,mxConstants.DIRECTION_SOUTH),mxEvent.consume(M)))}}catch(E){g.handleError(E)}mxEvent.isConsumed(M)||R.apply(this,arguments)};var W=l.connectVertex;l.connectVertex=function(M,m,y,E,P,O,T){var V=l.getIncomingTreeEdges(M);if(d(M)){var Q=A(M),S=Q==mxConstants.DIRECTION_EAST||Q==mxConstants.DIRECTION_WEST,U=m==mxConstants.DIRECTION_EAST||m==mxConstants.DIRECTION_WEST;return Q==m||0==V.length?G(M,m):S==U?H(M):J(M,m!=mxConstants.DIRECTION_NORTH&&m!=mxConstants.DIRECTION_WEST)}return W.apply(this,
-arguments)};l.getSubtree=function(M){var m=[M];!p(M)&&!d(M)||v(M)||l.traverse(M,!0,function(y,E){var P=null!=E&&l.isTreeEdge(E);P&&0>mxUtils.indexOf(m,E)&&m.push(E);(null==E||P)&&0>mxUtils.indexOf(m,y)&&m.push(y);return null==E||P});return m};var q=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){q.apply(this,arguments);(p(this.state.cell)||d(this.state.cell))&&!v(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&!this.graph.isCellCollapsed(this.state.cell)?
+mxEvent.consume(M)):40==M.keyCode&&(c(m,mxConstants.DIRECTION_SOUTH),mxEvent.consume(M)))}}catch(F){g.handleError(F)}mxEvent.isConsumed(M)||T.apply(this,arguments)};var W=l.connectVertex;l.connectVertex=function(M,m,y,F,P,O,S){var V=l.getIncomingTreeEdges(M);if(d(M)){var Q=A(M),R=Q==mxConstants.DIRECTION_EAST||Q==mxConstants.DIRECTION_WEST,U=m==mxConstants.DIRECTION_EAST||m==mxConstants.DIRECTION_WEST;return Q==m||0==V.length?G(M,m):R==U?H(M):J(M,m!=mxConstants.DIRECTION_NORTH&&m!=mxConstants.DIRECTION_WEST)}return W.apply(this,
+arguments)};l.getSubtree=function(M){var m=[M];!p(M)&&!d(M)||v(M)||l.traverse(M,!0,function(y,F){var P=null!=F&&l.isTreeEdge(F);P&&0>mxUtils.indexOf(m,F)&&m.push(F);(null==F||P)&&0>mxUtils.indexOf(m,y)&&m.push(y);return null==F||P});return m};var q=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){q.apply(this,arguments);(p(this.state.cell)||d(this.state.cell))&&!v(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&!this.graph.isCellCollapsed(this.state.cell)?
null==this.moveHandle&&(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),this.redrawMoveHandle(),mxEvent.addGestureListeners(this.moveHandle,mxUtils.bind(this,function(M){this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(M),mxEvent.getClientY(M),
this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=mxEvent.isMouseEvent(M);this.graph.isMouseDown=!0;g.hoverIcons.reset();mxEvent.consume(M)}))):null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)};var z=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){z.apply(this,arguments);this.redrawMoveHandle()};mxVertexHandler.prototype.redrawMoveHandle=function(){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 L=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(M){L.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.display=M?"":"none")};var N=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(M,m){N.apply(this,
@@ -14899,75 +14906,75 @@ function(H){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=H?
arguments);if(H){var G=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;1E3<=G&&null!=this.sidebarWindow&&this.sidebarEnabled&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&1E3<=G&&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(){};EditorUi.prototype.installFormatToolbar=
function(H){var G=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%;";G.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(c,g){0<G.getSelectionCount()?(H.appendChild(D),D.innerHTML="Selected: "+G.getSelectionCount()):null!=D.parentNode&&D.parentNode.removeChild(D)}))};var A=!1;EditorUi.prototype.initFormatWindow=
function(){if(!A&&null!=this.formatWindow){A=!0;var H=this.formatWindow.window.toggleMinimized,G=240;this.formatWindow.window.toggleMinimized=function(){H.apply(this,arguments);this.minimized?(G=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+G-140+"px"):(this.div.style.width=G+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-G+140)+"px");this.fit()};
-mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(D){mxEvent.getSource(D)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var J=EditorUi.prototype.init;EditorUi.prototype.init=function(){function H(E,P,O){var T=l.menus.get(E);P=x.addMenu(mxResources.get(E),mxUtils.bind(this,function(){T.funct.apply(this,arguments)}));P.className="geButton";P.setAttribute("title",mxResources.get(E));l.menus.menuCreated(T,P,"geButton");null!=O&&
-(P.style.backgroundImage="url("+O+")",P.innerText="");return P}function G(E,P,O,T,V,Q){var S=document.createElement("a");S.className="geButton";u.appendChild(S);null!=Q?S.style.backgroundImage="url("+Q+")":mxUtils.write(S,E);mxEvent.addListener(S,"click",function(U){"disabled"!=S.getAttribute("disabled")&&P(U);mxEvent.consume(U)});mxEvent.preventDefault(S);null!=T&&S.setAttribute("title",T);null!=V&&(E=function(){V.isEnabled()?S.removeAttribute("disabled"):S.setAttribute("disabled","disabled")},V.addListener("stateChanged",
-E),n.addListener("enabledChanged",E),E());return S}function D(E,P,O){P=document.createElement("div");P.className="geButtonGroup";for(O=0;O<E.length;O++)null!=E[O]&&P.appendChild(E[O]);u.appendChild(P);return P}function c(){k=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var E=0;"1"==urlParams.embed&&null!=l.buttonContainer&&(E=l.buttonContainer.offsetWidth||300);u.innerHTML="";var P=k<1E3+E,O=H("diagram",null,P?Editor.menuImage:null);D([O,G(mxResources.get("shapes"),
+mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(D){mxEvent.getSource(D)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var J=EditorUi.prototype.init;EditorUi.prototype.init=function(){function H(F,P,O){var S=l.menus.get(F);P=x.addMenu(mxResources.get(F),mxUtils.bind(this,function(){S.funct.apply(this,arguments)}));P.className="geButton";P.setAttribute("title",mxResources.get(F));l.menus.menuCreated(S,P,"geButton");null!=O&&
+(P.style.backgroundImage="url("+O+")",P.innerText="");return P}function G(F,P,O,S,V,Q){var R=document.createElement("a");R.className="geButton";u.appendChild(R);null!=Q?R.style.backgroundImage="url("+Q+")":mxUtils.write(R,F);mxEvent.addListener(R,"click",function(U){"disabled"!=R.getAttribute("disabled")&&P(U);mxEvent.consume(U)});mxEvent.preventDefault(R);null!=S&&R.setAttribute("title",S);null!=V&&(F=function(){V.isEnabled()?R.removeAttribute("disabled"):R.setAttribute("disabled","disabled")},V.addListener("stateChanged",
+F),n.addListener("enabledChanged",F),F());return R}function D(F,P,O){P=document.createElement("div");P.className="geButtonGroup";for(O=0;O<F.length;O++)null!=F[O]&&P.appendChild(F[O]);u.appendChild(P);return P}function c(){k=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var F=0;"1"==urlParams.embed&&null!=l.buttonContainer&&(F=l.buttonContainer.offsetWidth||300);u.innerHTML="";var P=k<1E3+F,O=H("diagram",null,P?Editor.menuImage:null);D([O,G(mxResources.get("shapes"),
l.actions.get("toggleShapes").funct,null,mxResources.get("shapes"),l.actions.get("image"),P?Editor.shapesImage:null),G(mxResources.get("format"),l.actions.get("format").funct,null,mxResources.get("format")+" ("+l.actions.get("format").shortcut+")",l.actions.get("image"),P?Editor.formatImage:null)]);O=H("insert",!0,P?I:null);D([O,G(mxResources.get("delete"),l.actions.get("delete").funct,null,mxResources.get("delete"),l.actions.get("delete"),P?Editor.trashImage:null)]);n.isEnabled()||O.setAttribute("disabled",
-"disabled");M.setAttribute("title",mxResources.get("undo")+" ("+L.shortcut+")");m.setAttribute("title",mxResources.get("redo")+" ("+N.shortcut+")");y.setAttribute("title",mxResources.get("fit")+" ("+Editor.ctrlKey+"+H)");k>=411+E&&(D([M,m]),k>=520+E&&D([y,k>=640+E?G("",q.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +)",q,Editor.zoomInImage):null,k>=640+E?G("",z.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",z,Editor.zoomOutImage):null]));u.appendChild(l.statusContainer);
+"disabled");M.setAttribute("title",mxResources.get("undo")+" ("+L.shortcut+")");m.setAttribute("title",mxResources.get("redo")+" ("+N.shortcut+")");y.setAttribute("title",mxResources.get("fit")+" ("+Editor.ctrlKey+"+H)");k>=411+F&&(D([M,m]),k>=520+F&&D([y,k>=640+F?G("",q.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +)",q,Editor.zoomInImage):null,k>=640+F?G("",z.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",z,Editor.zoomOutImage):null]));u.appendChild(l.statusContainer);
u.appendChild(l.buttonContainer)}J.apply(this,arguments);var g=mxUtils.isAncestorNode(document.body,this.container)?this.container:this.editor.graph.container;null!=g&&(g.classList.add("geSimple"),g.classList.add("geMinimal"),g.classList.remove("geClassic"));this.sidebar=this.createSidebar(this.sidebarContainer);"0"!=urlParams.sidebar&&(1E3<=k||null!=urlParams.clibs||null!=urlParams.libs||null!=urlParams["search-shapes"])&&(f(this,!0),null!=this.sidebar&&null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes&&
(this.sidebar.searchShapes(urlParams["search-shapes"]),this.sidebar.showEntries("search")));this.formatEnabled&&EditorUi.windowed&&1E3<=k&&(b(this,!0),this.formatWindow.window.setVisible(!0));var l=this,n=l.editor.graph;l.toolbar=this.createToolbar(l.createDiv("geToolbar"));var u=document.createElement("div");u.className="geMenubarContainer";var x=new Menubar(l,u),B=l.hideCurrentMenu;l.hideCurrentMenu=function(){B.apply(this,arguments);this.editor.graph.popupMenuHandler.hideMenu()};var C=l.descriptorChanged;
-l.descriptorChanged=function(){C.apply(this,arguments);var E=l.getCurrentFile();if(null!=E&&null!=E.getTitle()){var P=E.getMode();"google"==P?P="googleDrive":"github"==P?P="gitHub":"gitlab"==P?P="gitLab":"onedrive"==P&&(P="oneDrive");P=mxResources.get(P);u.setAttribute("title",E.getTitle()+(null!=P?" ("+P+")":""))}else u.removeAttribute("title")};l.setStatusText(l.editor.getStatus());u.appendChild(l.statusContainer);l.buttonContainer=this.createButtonContainer();u.appendChild(l.buttonContainer);l.menubarContainer=
-l.buttonContainer;l.tabContainer=this.createTabContainer();var F=this.createZoomInput(!0),K=l.updateTabContainer;l.updateTabContainer=function(){K.apply(this,arguments);l.tabContainer.appendChild(F)};var I=Editor.addBoxImage;if(null!=l.hoverIcons){var R=l.hoverIcons.update;l.hoverIcons.update=function(){n.freehand.isDrawing()||R.apply(this,arguments)}}if(null!=n.freehand){var W=n.freehand.createStyle;n.freehand.createStyle=function(E){return W.apply(this,arguments)+"sketch=0;"}}l.editor.addListener("statusChanged",
-mxUtils.bind(this,function(){l.setStatusText(l.editor.getStatus())}));l.setStatusText(l.editor.getStatus());var q=l.actions.get("zoomIn"),z=l.actions.get("zoomOut");g=l.actions.get("resetView");var L=l.actions.get("undo"),N=l.actions.get("redo"),M=G("",L.funct,null,"",L,Editor.undoImage),m=G("",N.funct,null,"",N,Editor.redoImage),y=G("",function(E){mxEvent.isAltDown(E)?(l.hideCurrentMenu(),l.actions.get("customZoom").funct()):(l.hideCurrentMenu(),l.actions.get("smartFit").funct());mxEvent.consume(E)},
+l.descriptorChanged=function(){C.apply(this,arguments);var F=l.getCurrentFile();if(null!=F&&null!=F.getTitle()){var P=F.getMode();"google"==P?P="googleDrive":"github"==P?P="gitHub":"gitlab"==P?P="gitLab":"onedrive"==P&&(P="oneDrive");P=mxResources.get(P);u.setAttribute("title",F.getTitle()+(null!=P?" ("+P+")":""))}else u.removeAttribute("title")};l.setStatusText(l.editor.getStatus());u.appendChild(l.statusContainer);l.buttonContainer=this.createButtonContainer();u.appendChild(l.buttonContainer);l.menubarContainer=
+l.buttonContainer;l.tabContainer=this.createTabContainer();var E=this.createZoomInput(!0),K=l.updateTabContainer;l.updateTabContainer=function(){K.apply(this,arguments);l.tabContainer.appendChild(E)};var I=Editor.addBoxImage;if(null!=l.hoverIcons){var T=l.hoverIcons.update;l.hoverIcons.update=function(){n.freehand.isDrawing()||T.apply(this,arguments)}}if(null!=n.freehand){var W=n.freehand.createStyle;n.freehand.createStyle=function(F){return W.apply(this,arguments)+"sketch=0;"}}l.editor.addListener("statusChanged",
+mxUtils.bind(this,function(){l.setStatusText(l.editor.getStatus())}));l.setStatusText(l.editor.getStatus());var q=l.actions.get("zoomIn"),z=l.actions.get("zoomOut");g=l.actions.get("resetView");var L=l.actions.get("undo"),N=l.actions.get("redo"),M=G("",L.funct,null,"",L,Editor.undoImage),m=G("",N.funct,null,"",N,Editor.redoImage),y=G("",function(F){mxEvent.isAltDown(F)?(l.hideCurrentMenu(),l.actions.get("customZoom").funct()):(l.hideCurrentMenu(),l.actions.get("smartFit").funct());mxEvent.consume(F)},
!0,"",g,Editor.zoomFitImage);l.actions.get("toggleShapes").funct=mxUtils.bind(this,function(){f(l,null)});l.container.appendChild(l.tabContainer);l.container.appendChild(u);l.updateTabContainer();this.formatEnabled&&!EditorUi.windowed&&1E3<=k&&b(this,!0);c();l.addListener("lockedChanged",c);l.addListener("languageChanged",c);l.editor.graph.addListener("enabledChanged",c);mxEvent.addListener(window,"resize",function(){c();null!=l.sidebarWindow&&l.sidebarWindow.window.fit();null!=l.formatWindow&&l.formatWindow.window.fit();
null!=l.actions.outlineWindow&&l.actions.outlineWindow.window.fit();null!=l.actions.layersWindow&&l.actions.layersWindow.window.fit();null!=l.menus.chatWindow&&l.menus.chatWindow.window.fit();null!=l.menus.tagsWindow&&l.menus.tagsWindow.window.fit();null!=l.menus.findWindow&&l.menus.findWindow.window.fit();null!=l.menus.findReplaceWindow&&l.menus.findReplaceWindow.window.fit()})}}};
(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var f=EditorUi.initTheme;EditorUi.initTheme=function(){f.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();(function(){var b=mxGuide.prototype.move;mxGuide.prototype.move=function(d,p,t,v){var A=p.y,J=p.x,H=!1,G=!1;if(null!=this.states&&null!=d&&null!=p){var D=this,c=new mxCellState,g=this.graph.getView().scale,l=Math.max(2,this.getGuideTolerance()/2);c.x=d.x+J;c.y=d.y+A;c.width=d.width;c.height=d.height;for(var n=[],u=[],x=0;x<this.states.length;x++){var B=this.states[x];B instanceof mxCellState&&(v||!this.graph.isCellSelected(B.cell))&&((c.x>=B.x&&c.x<=B.x+B.width||B.x>=c.x&&B.x<=c.x+c.width)&&(c.y>
-B.y+B.height+4||c.y+c.height+4<B.y)?n.push(B):(c.y>=B.y&&c.y<=B.y+B.height||B.y>=c.y&&B.y<=c.y+c.height)&&(c.x>B.x+B.width+4||c.x+c.width+4<B.x)&&u.push(B))}var C=0,F=0,K=B=0,I=0,R=0,W=0,q=0,z=5*g;if(1<n.length){n.push(c);n.sort(function(m,y){return m.y-y.y});var L=!1;x=c==n[0];g=c==n[n.length-1];if(!x&&!g)for(x=1;x<n.length-1;x++)if(c==n[x]){g=n[x-1];x=n[x+1];B=F=K=(x.y-g.y-g.height-c.height)/2;break}for(x=0;x<n.length-1;x++){g=n[x];var N=n[x+1],M=c==g||c==N;N=N.y-g.y-g.height;L|=c==g;if(0==F&&0==
-C)F=N,C=1;else if(Math.abs(F-N)<=(M||1==x&&L?l:0))C+=1;else if(1<C&&L){n=n.slice(0,x+1);break}else if(3<=n.length-x&&!L)C=0,B=F=0!=K?K:0,n.splice(0,0==x?1:x),x=-1;else break;0!=B||M||(F=B=N)}3==n.length&&n[1]==c&&(B=0)}if(1<u.length){u.push(c);u.sort(function(m,y){return m.x-y.x});L=!1;x=c==u[0];g=c==u[u.length-1];if(!x&&!g)for(x=1;x<u.length-1;x++)if(c==u[x]){g=u[x-1];x=u[x+1];W=R=q=(x.x-g.x-g.width-c.width)/2;break}for(x=0;x<u.length-1;x++){g=u[x];N=u[x+1];M=c==g||c==N;N=N.x-g.x-g.width;L|=c==g;
-if(0==R&&0==I)R=N,I=1;else if(Math.abs(R-N)<=(M||1==x&&L?l:0))I+=1;else if(1<I&&L){u=u.slice(0,x+1);break}else if(3<=u.length-x&&!L)I=0,W=R=0!=q?q:0,u.splice(0,0==x?1:x),x=-1;else break;0!=W||M||(R=W=N)}3==u.length&&u[1]==c&&(W=0)}l=function(m,y,E,P){var O=[];if(P){P=z;var T=0}else P=0,T=z;O.push(new mxPoint(m.x-P,m.y-T));O.push(new mxPoint(m.x+P,m.y+T));O.push(m);O.push(y);O.push(new mxPoint(y.x-P,y.y-T));O.push(new mxPoint(y.x+P,y.y+T));if(null!=E)return E.points=O,E;m=new mxPolyline(O,mxConstants.GUIDE_COLOR,
-mxConstants.GUIDE_STROKEWIDTH);m.dialect=mxConstants.DIALECT_SVG;m.pointerEvents=!1;m.init(D.graph.getView().getOverlayPane());return m};R=function(m,y){if(m&&null!=D.guidesArrHor)for(m=0;m<D.guidesArrHor.length;m++)D.guidesArrHor[m].node.style.visibility="hidden";if(y&&null!=D.guidesArrVer)for(m=0;m<D.guidesArrVer.length;m++)D.guidesArrVer[m].node.style.visibility="hidden"};if(1<I&&I==u.length-1){I=[];q=D.guidesArrHor;H=[];J=0;x=u[0]==c?1:0;L=u[x].y+u[x].height;if(0<W)for(x=0;x<u.length-1;x++)g=
+B.y+B.height+4||c.y+c.height+4<B.y)?n.push(B):(c.y>=B.y&&c.y<=B.y+B.height||B.y>=c.y&&B.y<=c.y+c.height)&&(c.x>B.x+B.width+4||c.x+c.width+4<B.x)&&u.push(B))}var C=0,E=0,K=B=0,I=0,T=0,W=0,q=0,z=5*g;if(1<n.length){n.push(c);n.sort(function(m,y){return m.y-y.y});var L=!1;x=c==n[0];g=c==n[n.length-1];if(!x&&!g)for(x=1;x<n.length-1;x++)if(c==n[x]){g=n[x-1];x=n[x+1];B=E=K=(x.y-g.y-g.height-c.height)/2;break}for(x=0;x<n.length-1;x++){g=n[x];var N=n[x+1],M=c==g||c==N;N=N.y-g.y-g.height;L|=c==g;if(0==E&&0==
+C)E=N,C=1;else if(Math.abs(E-N)<=(M||1==x&&L?l:0))C+=1;else if(1<C&&L){n=n.slice(0,x+1);break}else if(3<=n.length-x&&!L)C=0,B=E=0!=K?K:0,n.splice(0,0==x?1:x),x=-1;else break;0!=B||M||(E=B=N)}3==n.length&&n[1]==c&&(B=0)}if(1<u.length){u.push(c);u.sort(function(m,y){return m.x-y.x});L=!1;x=c==u[0];g=c==u[u.length-1];if(!x&&!g)for(x=1;x<u.length-1;x++)if(c==u[x]){g=u[x-1];x=u[x+1];W=T=q=(x.x-g.x-g.width-c.width)/2;break}for(x=0;x<u.length-1;x++){g=u[x];N=u[x+1];M=c==g||c==N;N=N.x-g.x-g.width;L|=c==g;
+if(0==T&&0==I)T=N,I=1;else if(Math.abs(T-N)<=(M||1==x&&L?l:0))I+=1;else if(1<I&&L){u=u.slice(0,x+1);break}else if(3<=u.length-x&&!L)I=0,W=T=0!=q?q:0,u.splice(0,0==x?1:x),x=-1;else break;0!=W||M||(T=W=N)}3==u.length&&u[1]==c&&(W=0)}l=function(m,y,F,P){var O=[];if(P){P=z;var S=0}else P=0,S=z;O.push(new mxPoint(m.x-P,m.y-S));O.push(new mxPoint(m.x+P,m.y+S));O.push(m);O.push(y);O.push(new mxPoint(y.x-P,y.y-S));O.push(new mxPoint(y.x+P,y.y+S));if(null!=F)return F.points=O,F;m=new mxPolyline(O,mxConstants.GUIDE_COLOR,
+mxConstants.GUIDE_STROKEWIDTH);m.dialect=mxConstants.DIALECT_SVG;m.pointerEvents=!1;m.init(D.graph.getView().getOverlayPane());return m};T=function(m,y){if(m&&null!=D.guidesArrHor)for(m=0;m<D.guidesArrHor.length;m++)D.guidesArrHor[m].node.style.visibility="hidden";if(y&&null!=D.guidesArrVer)for(m=0;m<D.guidesArrVer.length;m++)D.guidesArrVer[m].node.style.visibility="hidden"};if(1<I&&I==u.length-1){I=[];q=D.guidesArrHor;H=[];J=0;x=u[0]==c?1:0;L=u[x].y+u[x].height;if(0<W)for(x=0;x<u.length-1;x++)g=
u[x],N=u[x+1],c==g?(J=N.x-g.width-W,H.push(new mxPoint(J+g.width+z,L)),H.push(new mxPoint(N.x-z,L))):c==N?(H.push(new mxPoint(g.x+g.width+z,L)),J=g.x+g.width+W,H.push(new mxPoint(J-z,L))):(H.push(new mxPoint(g.x+g.width+z,L)),H.push(new mxPoint(N.x-z,L)));else g=u[0],x=u[2],J=g.x+g.width+(x.x-g.x-g.width-c.width)/2,H.push(new mxPoint(g.x+g.width+z,L)),H.push(new mxPoint(J-z,L)),H.push(new mxPoint(J+c.width+z,L)),H.push(new mxPoint(x.x-z,L));for(x=0;x<H.length;x+=2)u=H[x],W=H[x+1],u=l(u,W,null!=q?
-q[x/2]:null),u.node.style.visibility="visible",u.redraw(),I.push(u);for(x=H.length/2;null!=q&&x<q.length;x++)q[x].destroy();D.guidesArrHor=I;J-=d.x;H=!0}else R(!0);if(1<C&&C==n.length-1){I=[];q=D.guidesArrVer;G=[];A=0;x=n[0]==c?1:0;C=n[x].x+n[x].width;if(0<B)for(x=0;x<n.length-1;x++)g=n[x],N=n[x+1],c==g?(A=N.y-g.height-B,G.push(new mxPoint(C,A+g.height+z)),G.push(new mxPoint(C,N.y-z))):c==N?(G.push(new mxPoint(C,g.y+g.height+z)),A=g.y+g.height+B,G.push(new mxPoint(C,A-z))):(G.push(new mxPoint(C,g.y+
-g.height+z)),G.push(new mxPoint(C,N.y-z)));else g=n[0],x=n[2],A=g.y+g.height+(x.y-g.y-g.height-c.height)/2,G.push(new mxPoint(C,g.y+g.height+z)),G.push(new mxPoint(C,A-z)),G.push(new mxPoint(C,A+c.height+z)),G.push(new mxPoint(C,x.y-z));for(x=0;x<G.length;x+=2)u=G[x],W=G[x+1],u=l(u,W,null!=q?q[x/2]:null,!0),u.node.style.visibility="visible",u.redraw(),I.push(u);for(x=G.length/2;null!=q&&x<q.length;x++)q[x].destroy();D.guidesArrVer=I;A-=d.y;G=!0}else R(!1,!0)}if(H||G)return c=new mxPoint(J,A),n=b.call(this,
-d,c,t,v),H&&!G?c.y=n.y:G&&!H&&(c.x=n.x),n.y!=c.y&&null!=this.guideY&&null!=this.guideY.node&&(this.guideY.node.style.visibility="hidden"),n.x!=c.x&&null!=this.guideX&&null!=this.guideX.node&&(this.guideX.node.style.visibility="hidden"),c;R(!0,!0);return b.apply(this,arguments)};var f=mxGuide.prototype.setVisible;mxGuide.prototype.setVisible=function(d){f.call(this,d);var p=this.guidesArrVer,t=this.guidesArrHor;if(null!=p)for(var v=0;v<p.length;v++)p[v].node.style.visibility=d?"visible":"hidden";if(null!=
-t)for(v=0;v<t.length;v++)t[v].node.style.visibility=d?"visible":"hidden"};var k=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){k.call(this);var d=this.guidesArrVer,p=this.guidesArrHor;if(null!=d){for(var t=0;t<d.length;t++)d[t].destroy();this.guidesArrVer=null}if(null!=p){for(t=0;t<p.length;t++)p[t].destroy();this.guidesArrHor=null}}})();function mxRuler(b,f,k,d){function p(){var C=b.getDiagramContainerOffset(),F=b.diagramContainer;D.style.top=F.offsetTop-C.y+"px";D.style.left=F.offsetLeft-C.x+"px";D.style.width=(k?0:F.offsetWidth)+J+"px";D.style.height=(k?F.offsetHeight:0)+J+"px"}function t(C,F,K){if(null!=v)return C;var I;return function(){var R=this,W=arguments,q=K&&!I;clearTimeout(I);I=setTimeout(function(){I=null;K||C.apply(R,W)},F);q&&C.apply(R,W)}}var v=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||
+q[x/2]:null),u.node.style.visibility="visible",u.redraw(),I.push(u);for(x=H.length/2;null!=q&&x<q.length;x++)q[x].destroy();D.guidesArrHor=I;J-=d.x;H=!0}else T(!0);if(1<C&&C==n.length-1){I=[];q=D.guidesArrVer;G=[];A=0;x=n[0]==c?1:0;C=n[x].x+n[x].width;if(0<B)for(x=0;x<n.length-1;x++)g=n[x],N=n[x+1],c==g?(A=N.y-g.height-B,G.push(new mxPoint(C,A+g.height+z)),G.push(new mxPoint(C,N.y-z))):c==N?(G.push(new mxPoint(C,g.y+g.height+z)),A=g.y+g.height+B,G.push(new mxPoint(C,A-z))):(G.push(new mxPoint(C,g.y+
+g.height+z)),G.push(new mxPoint(C,N.y-z)));else g=n[0],x=n[2],A=g.y+g.height+(x.y-g.y-g.height-c.height)/2,G.push(new mxPoint(C,g.y+g.height+z)),G.push(new mxPoint(C,A-z)),G.push(new mxPoint(C,A+c.height+z)),G.push(new mxPoint(C,x.y-z));for(x=0;x<G.length;x+=2)u=G[x],W=G[x+1],u=l(u,W,null!=q?q[x/2]:null,!0),u.node.style.visibility="visible",u.redraw(),I.push(u);for(x=G.length/2;null!=q&&x<q.length;x++)q[x].destroy();D.guidesArrVer=I;A-=d.y;G=!0}else T(!1,!0)}if(H||G)return c=new mxPoint(J,A),n=b.call(this,
+d,c,t,v),H&&!G?c.y=n.y:G&&!H&&(c.x=n.x),n.y!=c.y&&null!=this.guideY&&null!=this.guideY.node&&(this.guideY.node.style.visibility="hidden"),n.x!=c.x&&null!=this.guideX&&null!=this.guideX.node&&(this.guideX.node.style.visibility="hidden"),c;T(!0,!0);return b.apply(this,arguments)};var f=mxGuide.prototype.setVisible;mxGuide.prototype.setVisible=function(d){f.call(this,d);var p=this.guidesArrVer,t=this.guidesArrHor;if(null!=p)for(var v=0;v<p.length;v++)p[v].node.style.visibility=d?"visible":"hidden";if(null!=
+t)for(v=0;v<t.length;v++)t[v].node.style.visibility=d?"visible":"hidden"};var k=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){k.call(this);var d=this.guidesArrVer,p=this.guidesArrHor;if(null!=d){for(var t=0;t<d.length;t++)d[t].destroy();this.guidesArrVer=null}if(null!=p){for(t=0;t<p.length;t++)p[t].destroy();this.guidesArrHor=null}}})();function mxRuler(b,f,k,d){function p(){var C=b.getDiagramContainerOffset(),E=b.diagramContainer;D.style.top=E.offsetTop-C.y+"px";D.style.left=E.offsetLeft-C.x+"px";D.style.width=(k?0:E.offsetWidth)+J+"px";D.style.height=(k?E.offsetHeight:0)+J+"px"}function t(C,E,K){if(null!=v)return C;var I;return function(){var T=this,W=arguments,q=K&&!I;clearTimeout(I);I=setTimeout(function(){I=null;K||C.apply(T,W)},E);q&&C.apply(T,W)}}var v=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||
window.msRequestAnimationFrame,A=window.cancelAnimationFrame||window.mozCancelAnimationFrame,J=this.RULER_THICKNESS,H=this;this.unit=f;var G=Editor.isDarkMode()?{bkgClr:"#202020",outBkgClr:"#1B1D1E",cornerClr:"#1B1D1E",strokeClr:"#505759",fontClr:"#BBBBBB",guideClr:"#0088cf"}:{bkgClr:"#ffffff",outBkgClr:"#f1f3f4",cornerClr:"#f1f3f4",strokeClr:"#dadce0",fontClr:"#BBBBBB",guideClr:"#0000BB"},D=document.createElement("div");D.className="geRuler";D.style.position="fixed";this.updateStyle=mxUtils.bind(this,
function(){G=Editor.isDarkMode()?{outBkgClr:"#1B1D1E",cornerClr:"#1B1D1E",strokeClr:"#505759",fontClr:"#BBBBBB",guideClr:"#0088cf"}:{outBkgClr:"#f1f3f4",cornerClr:"#f1f3f4",strokeClr:"#dadce0",fontClr:"#BBBBBB",guideClr:"#0000BB"};D.style[k?"borderRight":"borderBottom"]="0.5px solid "+G.strokeClr;D.style.borderLeft="0.5px solid "+G.strokeClr});this.updateStyle();b.diagramContainer.appendChild(D);mxEvent.disableContextMenu(D);this.editorUiRefresh=b.refresh;b.refresh=function(C){H.editorUiRefresh.apply(b,
-arguments);p()};p();var c=document.createElement("canvas");c.width=D.offsetWidth;c.height=D.offsetHeight;D.style.overflow="hidden";c.style.position="relative";D.appendChild(c);var g=c.getContext("2d");this.ui=b;var l=b.editor.graph;this.graph=l;this.container=D;this.canvas=c;var n=function(C,F,K,I,R){C=Math.round(C);F=Math.round(F);K=Math.round(K);I=Math.round(I);g.beginPath();g.moveTo(C+.5,F+.5);g.lineTo(K+.5,I+.5);g.stroke();R&&(k?(g.save(),g.translate(C,F),g.rotate(-Math.PI/2),g.fillText(R,0,0),
-g.restore()):g.fillText(R,C,F))},u=function(){g.clearRect(0,0,c.width,c.height);g.beginPath();g.lineWidth=.7;g.strokeStyle=G.strokeClr;g.setLineDash([]);g.font="9px Arial";g.textAlign="center";var C=l.view.scale,F=l.view.getBackgroundPageBounds(),K=l.view.translate,I=l.pageVisible;K=I?J+(k?F.y-l.container.scrollTop:F.x-l.container.scrollLeft):J+(k?K.y*C-l.container.scrollTop:K.x*C-l.container.scrollLeft);var R=0;I&&(R=l.getPageLayout(),R=k?R.y*l.pageFormat.height:R.x*l.pageFormat.width);var W;switch(H.unit){case mxConstants.POINTS:var q=
-W=10;var z=[3,5,5,5,5,10,5,5,5,5];break;case mxConstants.MILLIMETERS:W=10;q=mxConstants.PIXELS_PER_MM;z=[5,3,3,3,3,6,3,3,3,3];break;case mxConstants.METERS:W=20;q=mxConstants.PIXELS_PER_MM;z=[5,3,3,3,3,6,3,3,3,3,10,3,3,3,3,6,3,3,3,3];break;case mxConstants.INCHES:W=.5>=C||4<=C?8:16,q=mxConstants.PIXELS_PER_INCH/W,z=[5,3,5,3,7,3,5,3,7,3,5,3,7,3,5,3]}var L=q;2<=C?L=q/(2*Math.floor(C/2)):.5>=C&&(L=q*Math.floor(1/C/2)*(H.unit==mxConstants.MILLIMETERS?2:1));q=null;F=I?Math.min(K+(k?F.height:F.width),k?
-c.height:c.width):k?c.height:c.width;if(I)if(g.fillStyle=G.outBkgClr,k){var N=K-J;0<N&&g.fillRect(0,J,J,N);F<c.height&&g.fillRect(0,F,J,c.height)}else N=K-J,0<N&&g.fillRect(J,0,N,J),F<c.width&&g.fillRect(F,0,c.width,J);g.fillStyle=G.fontClr;for(I=I?K:K%(L*C);I<=F;I+=L*C)if(N=Math.round((I-K)/C/L),!(I<J||N==q)){q=N;var M=null;0==N%W&&(M=H.formatText(R+N*L)+"");k?n(J-z[Math.abs(N)%W],I,J,I,M):n(I,J-z[Math.abs(N)%W],I,J,M)}g.lineWidth=1;n(k?0:J,k?J:0,J,J);g.fillStyle=G.cornerClr;g.fillRect(0,0,J,J)},
-x=-1,B=function(){null!=v?(null!=A&&A(x),x=v(u)):u()};this.drawRuler=B;this.sizeListener=f=t(function(){var C=l.container;k?(C=C.offsetHeight+J,c.height!=C&&(c.height=C,D.style.height=C+"px",B())):(C=C.offsetWidth+J,c.width!=C&&(c.width=C,D.style.width=C+"px",B()))},10);this.pageListener=function(){B()};this.scrollListener=d=t(function(){var C=k?l.container.scrollTop:l.container.scrollLeft;H.lastScroll!=C&&(H.lastScroll=C,B())},10);this.unitListener=function(C,F){H.setUnit(F.getProperty("unit"))};
-l.addListener(mxEvent.SIZE,f);l.container.addEventListener("scroll",d);l.view.addListener("unitChanged",this.unitListener);b.addListener("pageViewChanged",this.pageListener);b.addListener("pageScaleChanged",this.pageListener);b.addListener("pageFormatChanged",this.pageListener);this.setStyle=function(C){G=C;D.style.background=G.bkgClr;u()};this.origGuideMove=mxGuide.prototype.move;mxGuide.prototype.move=function(C,F,K,I){if(k&&4<C.height||!k&&4<C.width){if(null!=H.guidePart)try{g.putImageData(H.guidePart.imgData1,
-H.guidePart.x1,H.guidePart.y1),g.putImageData(H.guidePart.imgData2,H.guidePart.x2,H.guidePart.y2),g.putImageData(H.guidePart.imgData3,H.guidePart.x3,H.guidePart.y3)}catch(P){}var R=H.origGuideMove.apply(this,arguments);try{g.lineWidth=.5;g.strokeStyle=G.guideClr;g.setLineDash([2]);if(k){var W=C.y+R.y+J-this.graph.container.scrollTop;var q=0;var z=W+C.height/2;var L=J/2;var N=W+C.height;var M=0;var m=g.getImageData(q,W-1,J,3);n(q,W,J,W);W--;var y=g.getImageData(L,z-1,J,3);n(L,z,J,z);z--;var E=g.getImageData(M,
-N-1,J,3);n(M,N,J,N);N--}else W=0,q=C.x+R.x+J-this.graph.container.scrollLeft,z=J/2,L=q+C.width/2,N=0,M=q+C.width,m=g.getImageData(q-1,W,3,J),n(q,W,q,J),q--,y=g.getImageData(L-1,z,3,J),n(L,z,L,J),L--,E=g.getImageData(M-1,N,3,J),n(M,N,M,J),M--;if(null==H.guidePart||H.guidePart.x1!=q||H.guidePart.y1!=W)H.guidePart={imgData1:m,x1:q,y1:W,imgData2:y,x2:L,y2:z,imgData3:E,x3:M,y3:N}}catch(P){}}else R=H.origGuideMove.apply(this,arguments);return R};this.origGuideDestroy=mxGuide.prototype.destroy;mxGuide.prototype.destroy=
-function(){var C=H.origGuideDestroy.apply(this,arguments);if(null!=H.guidePart)try{g.putImageData(H.guidePart.imgData1,H.guidePart.x1,H.guidePart.y1),g.putImageData(H.guidePart.imgData2,H.guidePart.x2,H.guidePart.y2),g.putImageData(H.guidePart.imgData3,H.guidePart.x3,H.guidePart.y3),H.guidePart=null}catch(F){}return C}}mxRuler.prototype.RULER_THICKNESS=14;mxRuler.prototype.unit=mxConstants.POINTS;mxRuler.prototype.setUnit=function(b){this.unit=b;this.drawRuler()};
+arguments);p()};p();var c=document.createElement("canvas");c.width=D.offsetWidth;c.height=D.offsetHeight;D.style.overflow="hidden";c.style.position="relative";D.appendChild(c);var g=c.getContext("2d");this.ui=b;var l=b.editor.graph;this.graph=l;this.container=D;this.canvas=c;var n=function(C,E,K,I,T){C=Math.round(C);E=Math.round(E);K=Math.round(K);I=Math.round(I);g.beginPath();g.moveTo(C+.5,E+.5);g.lineTo(K+.5,I+.5);g.stroke();T&&(k?(g.save(),g.translate(C,E),g.rotate(-Math.PI/2),g.fillText(T,0,0),
+g.restore()):g.fillText(T,C,E))},u=function(){g.clearRect(0,0,c.width,c.height);g.beginPath();g.lineWidth=.7;g.strokeStyle=G.strokeClr;g.setLineDash([]);g.font="9px Arial";g.textAlign="center";var C=l.view.scale,E=l.view.getBackgroundPageBounds(),K=l.view.translate,I=l.pageVisible;K=I?J+(k?E.y-l.container.scrollTop:E.x-l.container.scrollLeft):J+(k?K.y*C-l.container.scrollTop:K.x*C-l.container.scrollLeft);var T=0;I&&(T=l.getPageLayout(),T=k?T.y*l.pageFormat.height:T.x*l.pageFormat.width);var W;switch(H.unit){case mxConstants.POINTS:var q=
+W=10;var z=[3,5,5,5,5,10,5,5,5,5];break;case mxConstants.MILLIMETERS:W=10;q=mxConstants.PIXELS_PER_MM;z=[5,3,3,3,3,6,3,3,3,3];break;case mxConstants.METERS:W=20;q=mxConstants.PIXELS_PER_MM;z=[5,3,3,3,3,6,3,3,3,3,10,3,3,3,3,6,3,3,3,3];break;case mxConstants.INCHES:W=.5>=C||4<=C?8:16,q=mxConstants.PIXELS_PER_INCH/W,z=[5,3,5,3,7,3,5,3,7,3,5,3,7,3,5,3]}var L=q;2<=C?L=q/(2*Math.floor(C/2)):.5>=C&&(L=q*Math.floor(1/C/2)*(H.unit==mxConstants.MILLIMETERS?2:1));q=null;E=I?Math.min(K+(k?E.height:E.width),k?
+c.height:c.width):k?c.height:c.width;if(I)if(g.fillStyle=G.outBkgClr,k){var N=K-J;0<N&&g.fillRect(0,J,J,N);E<c.height&&g.fillRect(0,E,J,c.height)}else N=K-J,0<N&&g.fillRect(J,0,N,J),E<c.width&&g.fillRect(E,0,c.width,J);g.fillStyle=G.fontClr;for(I=I?K:K%(L*C);I<=E;I+=L*C)if(N=Math.round((I-K)/C/L),!(I<J||N==q)){q=N;var M=null;0==N%W&&(M=H.formatText(T+N*L)+"");k?n(J-z[Math.abs(N)%W],I,J,I,M):n(I,J-z[Math.abs(N)%W],I,J,M)}g.lineWidth=1;n(k?0:J,k?J:0,J,J);g.fillStyle=G.cornerClr;g.fillRect(0,0,J,J)},
+x=-1,B=function(){null!=v?(null!=A&&A(x),x=v(u)):u()};this.drawRuler=B;this.sizeListener=f=t(function(){var C=l.container;k?(C=C.offsetHeight+J,c.height!=C&&(c.height=C,D.style.height=C+"px",B())):(C=C.offsetWidth+J,c.width!=C&&(c.width=C,D.style.width=C+"px",B()))},10);this.pageListener=function(){B()};this.scrollListener=d=t(function(){var C=k?l.container.scrollTop:l.container.scrollLeft;H.lastScroll!=C&&(H.lastScroll=C,B())},10);this.unitListener=function(C,E){H.setUnit(E.getProperty("unit"))};
+l.addListener(mxEvent.SIZE,f);l.container.addEventListener("scroll",d);l.view.addListener("unitChanged",this.unitListener);b.addListener("pageViewChanged",this.pageListener);b.addListener("pageScaleChanged",this.pageListener);b.addListener("pageFormatChanged",this.pageListener);this.setStyle=function(C){G=C;D.style.background=G.bkgClr;u()};this.origGuideMove=mxGuide.prototype.move;mxGuide.prototype.move=function(C,E,K,I){if(k&&4<C.height||!k&&4<C.width){if(null!=H.guidePart)try{g.putImageData(H.guidePart.imgData1,
+H.guidePart.x1,H.guidePart.y1),g.putImageData(H.guidePart.imgData2,H.guidePart.x2,H.guidePart.y2),g.putImageData(H.guidePart.imgData3,H.guidePart.x3,H.guidePart.y3)}catch(P){}var T=H.origGuideMove.apply(this,arguments);try{g.lineWidth=.5;g.strokeStyle=G.guideClr;g.setLineDash([2]);if(k){var W=C.y+T.y+J-this.graph.container.scrollTop;var q=0;var z=W+C.height/2;var L=J/2;var N=W+C.height;var M=0;var m=g.getImageData(q,W-1,J,3);n(q,W,J,W);W--;var y=g.getImageData(L,z-1,J,3);n(L,z,J,z);z--;var F=g.getImageData(M,
+N-1,J,3);n(M,N,J,N);N--}else W=0,q=C.x+T.x+J-this.graph.container.scrollLeft,z=J/2,L=q+C.width/2,N=0,M=q+C.width,m=g.getImageData(q-1,W,3,J),n(q,W,q,J),q--,y=g.getImageData(L-1,z,3,J),n(L,z,L,J),L--,F=g.getImageData(M-1,N,3,J),n(M,N,M,J),M--;if(null==H.guidePart||H.guidePart.x1!=q||H.guidePart.y1!=W)H.guidePart={imgData1:m,x1:q,y1:W,imgData2:y,x2:L,y2:z,imgData3:F,x3:M,y3:N}}catch(P){}}else T=H.origGuideMove.apply(this,arguments);return T};this.origGuideDestroy=mxGuide.prototype.destroy;mxGuide.prototype.destroy=
+function(){var C=H.origGuideDestroy.apply(this,arguments);if(null!=H.guidePart)try{g.putImageData(H.guidePart.imgData1,H.guidePart.x1,H.guidePart.y1),g.putImageData(H.guidePart.imgData2,H.guidePart.x2,H.guidePart.y2),g.putImageData(H.guidePart.imgData3,H.guidePart.x3,H.guidePart.y3),H.guidePart=null}catch(E){}return C}}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(this.unitListener);this.ui.removeListener(this.pageListener);null!=this.container&&this.container.parentNode.removeChild(this.container)};
function mxDualRuler(b,f){var k=new mxPoint(mxRuler.prototype.RULER_THICKNESS,mxRuler.prototype.RULER_THICKNESS);this.editorUiGetDiagContOffset=b.getDiagramContainerOffset;b.getDiagramContainerOffset=function(){return k};this.editorUiRefresh=b.refresh;this.ui=b;this.origGuideMove=mxGuide.prototype.move;this.origGuideDestroy=mxGuide.prototype.destroy;this.vRuler=new mxRuler(b,f,!0);this.hRuler=new mxRuler(b,f,!1,!0);f=mxUtils.bind(this,function(d){var p=!1;mxEvent.addGestureListeners(d,mxUtils.bind(this,
function(t){p=null!=b.currentMenu;mxEvent.consume(t)}),null,mxUtils.bind(this,function(t){if(b.editor.graph.isEnabled()&&!b.editor.graph.isMouseDown&&(mxEvent.isTouchEvent(t)||mxEvent.isPopupTrigger(t))){b.editor.graph.popupMenuHandler.hideMenu();b.hideCurrentMenu();if(!mxEvent.isTouchEvent(t)||!p){var v=new mxPopupMenu(mxUtils.bind(this,function(H,G){b.menus.addMenuItems(H,["points","inches","millimeters","meters"],G)}));v.smartSeparators=!0;v.showDisabled=!0;v.autoExpand=!0;v.hideMenu=mxUtils.bind(this,
function(){mxPopupMenu.prototype.hideMenu.apply(v,arguments);b.resetCurrentMenu();v.destroy()});var A=mxEvent.getClientX(t),J=mxEvent.getClientY(t);v.popup(A,J,null,t);b.setCurrentMenu(v,d)}mxEvent.consume(t)}}))});f(this.hRuler.container);f(this.vRuler.container);this.vRuler.drawRuler();this.hRuler.drawRuler()}mxDualRuler.prototype.updateStyle=function(){this.vRuler.updateStyle();this.hRuler.updateStyle();this.vRuler.drawRuler();this.hRuler.drawRuler()};
mxDualRuler.prototype.setUnit=function(b){this.vRuler.setUnit(b);this.hRuler.setUnit(b)};mxDualRuler.prototype.setStyle=function(b){this.vRuler.setStyle(b);this.hRuler.setStyle(b)};mxDualRuler.prototype.destroy=function(){this.vRuler.destroy();this.hRuler.destroy();this.ui.refresh=this.editorUiRefresh;mxGuide.prototype.move=this.origGuideMove;mxGuide.prototype.destroy=this.origGuideDestroy;this.ui.getDiagramContainerOffset=this.editorUiGetDiagContOffset};function mxFreehand(b){var f=null!=b.view&&null!=b.view.canvas?b.view.canvas.ownerSVGElement:null;if(null!=b.container&&null!=f){b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){this.stopDrawing()}));var k=mxFreehand.prototype.MILD_SMOOTHING,d=null,p=[],t,v=[],A,J=!1,H=!0,G=!0,D=!0,c=!0,g=[],l=!1,n=!1,u=!1,x="default",B={size:5,thinning:.5,smoothing:.5,streamline:.5,start:{taper:0,cap:!0},end:{taper:0,cap:!0}},C=!0;this.setClosedPath=function(z){J=z};this.setAutoClose=function(z){H=z};this.setAutoInsert=
-function(z){G=z};this.setAutoScroll=function(z){D=z};this.setOpenFill=function(z){c=z};this.setStopClickEnabled=function(z){n=z};this.setSelectInserted=function(z){u=z};this.setSmoothing=function(z){k=z};this.getSmoothing=function(){return k};this.setPerfectFreehandMode=function(z){C=z};this.isPerfectFreehandMode=function(){return C};this.setBrushSize=function(z){B.size=z};this.getBrushSize=function(){return B.size};var F=function(z){l=z;b.getRubberband().setEnabled(!z);b.graphHandler.setSelectEnabled(!z);
-b.graphHandler.setMoveEnabled(!z);b.panningHandler.setPinchEnabled(!z);z?b.container.classList.add("geFreehandMode"):b.container.classList.remove("geFreehandMode");b.fireEvent(new mxEventObject("freehandStateChanged"))};this.startDrawing=function(){F(!0)};this.isDrawing=function(){return l};this.isActive=function(){return null!=d};var K=mxUtils.bind(this,function(z){if(d){var L=A.length,N=n&&0<v.length&&null!=A&&2>A.length;N||v.push.apply(v,A);A=[];v.push(null);p.push(d);d=null;(N||G)&&this.stopDrawing();
+function(z){G=z};this.setAutoScroll=function(z){D=z};this.setOpenFill=function(z){c=z};this.setStopClickEnabled=function(z){n=z};this.setSelectInserted=function(z){u=z};this.setSmoothing=function(z){k=z};this.getSmoothing=function(){return k};this.setPerfectFreehandMode=function(z){C=z};this.isPerfectFreehandMode=function(){return C};this.setBrushSize=function(z){B.size=z};this.getBrushSize=function(){return B.size};var E=function(z){l=z;b.getRubberband().setEnabled(!z);b.graphHandler.setSelectEnabled(!z);
+b.graphHandler.setMoveEnabled(!z);b.panningHandler.setPinchEnabled(!z);z?b.container.classList.add("geFreehandMode"):b.container.classList.remove("geFreehandMode");b.fireEvent(new mxEventObject("freehandStateChanged"))};this.startDrawing=function(){E(!0)};this.isDrawing=function(){return l};this.isActive=function(){return null!=d};var K=mxUtils.bind(this,function(z){if(d){var L=A.length,N=n&&0<v.length&&null!=A&&2>A.length;N||v.push.apply(v,A);A=[];v.push(null);p.push(d);d=null;(N||G)&&this.stopDrawing();
G&&(!N||2<=L)&&this.startDrawing();mxEvent.consume(z)}}),I=new mxCell;I.edge=!0;this.getStrokeColor=function(z){var L=null!=x?x:mxUtils.getValue(b.currentVertexStyle,mxConstants.STYLE_STROKECOLOR,mxUtils.getValue(b.getCurrentCellStyle(I),mxConstants.STYLE_STROKECOLOR,"#000"));"default"!=L||z||(L=b.shapeForegroundColor);return L};this.setStrokeColor=function(z){x=z};this.createStyle=function(z){var L=";fillColor=none;";C&&(L=";lineShape=1;");L+="strokeColor="+this.getStrokeColor(!0)+";";return mxConstants.STYLE_SHAPE+
-"="+z+L};this.stopDrawing=function(){if(0<p.length){if(C){for(var z=[],L=0;L<v.length;L++)null!=v[L]&&z.push([v[L].x,v[L].y]);z=PerfectFreehand.getStroke(z,B);v=[];for(L=0;L<z.length;L++)v.push({x:z[L][0],y:z[L][1]});v.push(null)}z=v[0].x;var N=v[0].x,M=v[0].y,m=v[0].y;for(L=1;L<v.length;L++)null!=v[L]&&(z=Math.max(z,v[L].x),N=Math.min(N,v[L].x),M=Math.max(M,v[L].y),m=Math.min(m,v[L].y));z-=N;M-=m;if(0<z&&0<M){var y=100/z,E=100/M;v.map(function(Q){if(null==Q)return Q;Q.x=(Q.x-N)*y;Q.y=(Q.y-m)*E;return Q});
-var P='<shape strokewidth="inherit"><foreground>',O=0;for(L=0;L<v.length;L++){var T=v[L];if(null==T){T=!1;O=v[O];var V=v[L-1];!J&&H&&(T=O.x-V.x,V=O.y-V.y,T=Math.sqrt(T*T+V*V)<=b.tolerance);if(J||T)P+='<line x="'+O.x.toFixed(2)+'" y="'+O.y.toFixed(2)+'"/>';P+="</path>"+(c||J||T?"<fillstroke/>":"<stroke/>");O=L+1}else P=L==O?P+('<path><move x="'+T.x.toFixed(2)+'" y="'+T.y.toFixed(2)+'"/>'):P+('<line x="'+T.x.toFixed(2)+'" y="'+T.y.toFixed(2)+'"/>')}P+="</foreground></shape>";if(b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())){L=
-this.createStyle("stencil("+Graph.compress(P)+")");P=b.view.scale;O=b.view.translate;L=new mxCell("",new mxGeometry(N/P-O.x,m/P-O.y,z/P,M/P),L);L.vertex=1;b.model.beginUpdate();try{L=b.addCell(L),b.fireEvent(new mxEventObject("cellsInserted","cells",[L])),b.fireEvent(new mxEventObject("freehandInserted","cell",L))}finally{b.model.endUpdate()}u&&b.setSelectionCells([L])}}for(L=0;L<p.length;L++)p[L].parentNode.removeChild(p[L]);d=null;p=[];v=[]}F(!1)};b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,
+"="+z+L};this.stopDrawing=function(){if(0<p.length){if(C){for(var z=[],L=0;L<v.length;L++)null!=v[L]&&z.push([v[L].x,v[L].y]);z=PerfectFreehand.getStroke(z,B);v=[];for(L=0;L<z.length;L++)v.push({x:z[L][0],y:z[L][1]});v.push(null)}z=v[0].x;var N=v[0].x,M=v[0].y,m=v[0].y;for(L=1;L<v.length;L++)null!=v[L]&&(z=Math.max(z,v[L].x),N=Math.min(N,v[L].x),M=Math.max(M,v[L].y),m=Math.min(m,v[L].y));z-=N;M-=m;if(0<z&&0<M){var y=100/z,F=100/M;v.map(function(Q){if(null==Q)return Q;Q.x=(Q.x-N)*y;Q.y=(Q.y-m)*F;return Q});
+var P='<shape strokewidth="inherit"><foreground>',O=0;for(L=0;L<v.length;L++){var S=v[L];if(null==S){S=!1;O=v[O];var V=v[L-1];!J&&H&&(S=O.x-V.x,V=O.y-V.y,S=Math.sqrt(S*S+V*V)<=b.tolerance);if(J||S)P+='<line x="'+O.x.toFixed(2)+'" y="'+O.y.toFixed(2)+'"/>';P+="</path>"+(c||J||S?"<fillstroke/>":"<stroke/>");O=L+1}else P=L==O?P+('<path><move x="'+S.x.toFixed(2)+'" y="'+S.y.toFixed(2)+'"/>'):P+('<line x="'+S.x.toFixed(2)+'" y="'+S.y.toFixed(2)+'"/>')}P+="</foreground></shape>";if(b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())){L=
+this.createStyle("stencil("+Graph.compress(P)+")");P=b.view.scale;O=b.view.translate;L=new mxCell("",new mxGeometry(N/P-O.x,m/P-O.y,z/P,M/P),L);L.vertex=1;b.model.beginUpdate();try{L=b.addCell(L),b.fireEvent(new mxEventObject("cellsInserted","cells",[L])),b.fireEvent(new mxEventObject("freehandInserted","cell",L))}finally{b.model.endUpdate()}u&&b.setSelectionCells([L])}}for(L=0;L<p.length;L++)p[L].parentNode.removeChild(p[L]);d=null;p=[];v=[]}E(!1)};b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,
function(z,L){l&&L.getProperty("event").consume()}));b.addListener(mxEvent.GESTURE,mxUtils.bind(this,function(z,L){l&&mxEvent.consume(L.getProperty("event"))}));b.addMouseListener({mouseDown:mxUtils.bind(this,function(z,L){if(b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())&&(z=L.getEvent(),l&&!mxEvent.isPopupTrigger(z)&&!mxEvent.isMiddleMouseButton(z)&&!mxEvent.isMultiTouchEvent(z))){var N=parseFloat(b.currentVertexStyle[mxConstants.STYLE_STROKEWIDTH]||1);N=Math.max(1,N*b.view.scale);var M=this.getStrokeColor();
-d=document.createElementNS("http://www.w3.org/2000/svg","path");d.setAttribute("fill",C?M:"none");d.setAttribute("pointer-events","none");d.setAttribute("stroke",M);d.setAttribute("stroke-width",N);"1"==b.currentVertexStyle[mxConstants.STYLE_DASHED]&&(M=b.currentVertexStyle[mxConstants.STYLE_DASH_PATTERN]||"3 3",M=M.split(" ").map(function(m){return parseFloat(m)*N}).join(" "),d.setAttribute("stroke-dasharray",M));g=[];z=R(z);W(z);t="M"+z.x+" "+z.y;v.push(z);A=[];d.setAttribute("d",C?PerfectFreehand.getSvgPathFromStroke([[z.x,
-z.y]],B):t);f.appendChild(d);L.consume()}}),mouseMove:mxUtils.bind(this,function(z,L){if(null!=d&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())){z=L.getEvent();z=R(z);W(z);var N=q(0);if(N)if(v.push(N),C){var M=[];for(N=0;N<v.length;N++)M.push([v[N].x,v[N].y]);A=[];for(var m=2;m<g.length;m+=2)N=q(m),M.push([N.x,N.y]),A.push(N);d.setAttribute("d",PerfectFreehand.getSvgPathFromStroke(M,B))}else{t+=" L"+N.x+" "+N.y;M="";A=[];for(m=2;m<g.length;m+=2)N=q(m),M+=" L"+N.x+" "+N.y,A.push(N);d.setAttribute("d",
-t+M)}D&&(N=b.view.translate,b.scrollRectToVisible((new mxRectangle(z.x-N.x,z.y-N.y)).grow(20)));L.consume()}}),mouseUp:mxUtils.bind(this,function(z,L){null!=d&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())&&(K(L.getEvent()),L.consume())})});var R=function(z){return mxUtils.convertPoint(b.container,mxEvent.getClientX(z),mxEvent.getClientY(z))},W=function(z){for(g.push(z);g.length>k;)g.shift()},q=function(z){var L=g.length;if(1===L%2||L>=k){var N=0,M=0,m,y=0;for(m=z;m<L;m++)y++,z=g[m],N+=z.x,
-M+=z.y;return{x:N/y,y:M/y}}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;function P2PCollab(b,f,k){function d(O,T){try{if(!q){var V=f.file.getCurrentUser();if(W&&null!=V&&null!=V.displayName){var Q={from:F,id:n,type:O,sessionId:f.clientId,userId:V.id,username:V.displayName,data:T,protocol:DrawioFileSync.PROTOCOL,editor:EditorUi.VERSION};Q={bytes:f.objectToString(Q),data:"aes"};Q=JSON.stringify(Q);z&&"cursor"!=O&&EditorUi.debug("P2PCollab: sending to socket server",[Q]);n++;V=!z&&("cursor"==O||"selectionChange"==O);R&&!V&&m("message",Q);if(V)for(p2pId in I)I[p2pId].send(Q)}}}catch(S){null!=
-window.console&&console.error(S,O,T)}}function p(O){if(b.shareCursorPosition&&!G.isMouseDown){var T=mxUtils.getOffset(G.container),V=G.view.translate,Q=G.view.scale,S=null!=b.currentPage?b.currentPage.getId():null;d("cursor",{pageId:S,x:Math.round((O.getX()-T.x+G.container.scrollLeft)/Q-V.x),y:Math.round((O.getY()-T.y+G.container.scrollTop)/Q-V.y)})}}function t(O,T){var V=null!=b.currentPage?b.currentPage.getId():null;if(null!=O&&null!=O.cursor&&null!=O.lastCursor)if(null!=O.lastCursor.hide||!b.isShowRemoteCursors()||
-null!=O.lastCursor.pageId&&O.lastCursor.pageId!=V)O.cursor.style.display="none";else{V=function(){var Z=Math.max(G.container.scrollLeft,Math.min(G.container.scrollLeft+G.container.clientWidth-O.cursor.clientWidth,U)),aa=Math.max(G.container.scrollTop-22,Math.min(G.container.scrollTop+G.container.clientHeight-O.cursor.clientHeight,Y));X.style.opacity=Z!=U||aa!=Y?0:1;O.cursor.style.left=Z+"px";O.cursor.style.top=aa+"px";O.cursor.style.display=""};var Q=G.view.translate,S=G.view.scale,U=(Q.x+O.lastCursor.x)*
-S+8,Y=(Q.y+O.lastCursor.y)*S-12,X=O.cursor.getElementsByTagName("img")[0];T?(mxUtils.setPrefixedStyle(O.cursor.style,"transition","all 900ms ease-out"),mxUtils.setPrefixedStyle(X.style,"transition","all 900ms ease-out"),window.setTimeout(V,0)):(mxUtils.setPrefixedStyle(O.cursor.style,"transition",null),mxUtils.setPrefixedStyle(X.style,"transition",null),V())}}function v(O,T){try{var V=function(){if(null==l[S]){var ba=C[S];null==ba&&(ba=D%g.length,C[S]=ba,D++);var ia=g[ba];ba=11<ba?"black":"white";
-l[S]={cursor:document.createElement("div"),color:ia,selection:{}};x[T]=S;U=l[S].cursor;U.style.pointerEvents="none";U.style.position="absolute";U.style.display="none";U.style.opacity="0.9";var la=document.createElement("img");mxUtils.setPrefixedStyle(la.style,"transform","rotate(-45deg)translateX(-14px)");la.setAttribute("src",Graph.createSvgImage(8,12,'<path d="M 4 0 L 8 12 L 4 10 L 0 12 Z" stroke="'+ia+'" fill="'+ia+'"/>').src);la.style.width="10px";U.appendChild(la);la=document.createElement("div");
-la.style.backgroundColor=ia;la.style.color=ba;la.style.fontSize="9pt";la.style.padding="3px 7px";la.style.marginTop="8px";la.style.borderRadius="10px";la.style.maxWidth="100px";la.style.overflow="hidden";la.style.textOverflow="ellipsis";la.style.whiteSpace="nowrap";mxUtils.write(la,Q);U.appendChild(la);b.diagramContainer.appendChild(U)}else U=l[S].cursor;Y=l[S].selection};if(!q){O=JSON.parse(O);null!=O.bytes&&(O=f.stringToObject(O.bytes));z&&"cursor"!=O.type&&EditorUi.debug("P2PCollab: msg received",
-[O]);if(null!=T){if(O.from==F||u[O.from]>=O.id){EditorUi.debug("P2PCollab: Dropped Message",O,F,u[O.from]);return}u[O.from]=O.id}var Q=O.username?O.username:"Anonymous",S=O.sessionId,U,Y;null!=l[S]&&(clearTimeout(l[S].inactiveTO),l[S].inactiveTO=setTimeout(function(){J(null,S)},12E4));var X=O.data;switch(O.type){case "cursor":V();l[S].lastCursor=X;t(l[S],!0);break;case "diff":try{O=null!=X.patch?f.stringToObject(decodeURIComponent(X.patch)):X.diff,f.receiveRemoteChanges(O.d)}catch(ba){EditorUi.debug("P2PCollab: Diff msg error",
-ba)}break;case "selectionChange":if("0"!=urlParams["remote-selection"]){var Z=null!=b.currentPage?b.currentPage.getId():null;if(null==Z||null!=X.pageId&&X.pageId==Z){V();for(V=0;V<X.removed.length;V++){var aa=X.removed[V];if(null!=aa){var da=Y[aa];delete Y[aa];null!=da&&da.destroy()}}for(V=0;V<X.added.length;V++)if(aa=X.added[V],null!=aa){var fa=G.model.getCell(aa);null!=fa&&(Y[aa]=G.highlightCell(fa,l[S].color,6E4,70,3))}}}break;case "notify":O=null!=X.data?f.stringToObject(decodeURIComponent(X.data)):
-X.msg,f.handleMessageData(O.d)}f.file.fireEvent(new mxEventObject("realtimeMessage","message",O))}}catch(ba){null!=window.console&&console.warn(ba,O,T)}}function A(O,T){if(!z&&SimplePeer.WEBRTC_SUPPORT){var V=new SimplePeer({initiator:T,config:{iceServers:[{urls:"stun:54.89.235.160:3478"}]}});V.on("signal",function(Q){m("sendSignal",{to:O,from:F,signal:Q})});V.on("error",function(Q){delete K[O];EditorUi.debug("P2PCollab: p2p socket error",Q);!q&&T&&V.destroyed&&B[O]&&(EditorUi.debug("P2PCollab: p2p socket reconnecting",
-O),A(O,!0))});V.on("connect",function(){delete K[O];null==I[O]||I[O].destroyed?(I[O]=V,B[O]=!0,EditorUi.debug("P2PCollab: p2p socket connected",O)):(V.noP2PMapDel=!0,V.destroy(),EditorUi.debug("P2PCollab: p2p socket duplicate",O))});V.on("close",function(){V.noP2PMapDel||(EditorUi.debug("P2PCollab: p2p socket closed",O),H(x[O]),delete I[O])});V.on("data",v);return K[O]=V}}function J(O,T){H(T||x[O]);null!=O&&(delete x[O],B[O]=!1)}function H(O){var T=l[O];if(null!=T){var V=T.selection,Q;for(Q in V)null!=
-V[Q]&&V[Q].destroy();null!=T.cursor&&null!=T.cursor.parentNode&&T.cursor.parentNode.removeChild(T.cursor);clearTimeout(T.inactiveTO);delete l[O]}}var G=b.editor.graph,D=0,c=null,g="#e6194b #3cb44b #4363d8 #f58231 #911eb4 #f032e6 #469990 #9A6324 #800000 #808000 #000075 #a9a9a9 #ffe119 #42d4f4 #bfef45 #fabed4 #dcbeff #fffac8 #aaffc3 #ffd8b1".split(" "),l={},n=1,u={},x={},B={},C={},F,K={},I={},R=!0,W=!1,q=!1,z="0"!=urlParams["no-p2p"],L=!1,N=0,M=null,m=mxUtils.bind(this,function(O,T){if(!q)try{null!=
-c?(c.send(JSON.stringify({action:O,msg:T})),z||EditorUi.debug("P2PCollab: sending to socket server",[O],[T])):this.joinFile(!0)}catch(V){M=V,f.file.fireEvent(new mxEventObject("realtimeStateChanged")),EditorUi.debug("P2PCollab:","sendReply error",arguments,V)}});this.sendMessage=d;this.sendDiff=function(O){this.sendMessage("diff",{diff:O})};this.sendNotification=function(O){this.sendMessage("notify",{msg:O})};this.getState=function(){return null!=c?c.readyState:3};this.getLastError=function(){return M};
-this.mouseListeners={startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(O,T){},mouseMove:function(O,T){var V,Q=-1;return function(){clearTimeout(V);var S=this,U=arguments,Y=function(){V=null;Q=Date.now();O.apply(S,U)};Date.now()-Q>T?Y():V=setTimeout(Y,T)}}(function(O,T){p(T)},300),mouseUp:function(O,T){p(T)}};G.addMouseListener(this.mouseListeners);this.shareCursorPositionListener=function(){b.isShareCursorPosition()||d("cursor",{hide:!0})};b.addListener("shareCursorPositionChanged",this.shareCursorPositionListener);
-var y=mxGraphHandler.prototype.maxCells,E=null,P={};this.selectionChangeListener=function(O,T){var V=function(Q){return null!=Q?Q.id:null};null!=E&&window.clearTimeout(E);E=window.setTimeout(function(){for(var Q=G.getSelectionCount()>y?[]:G.getSelectionCells().map(V),S=null!=b.currentPage?b.currentPage.getId():null,U={},Y=[],X=[],Z=0;Z<Q.length;Z++){var aa=Q[Z];null!=aa&&(U[aa]=!0,null==P[aa]&&X.push(aa))}for(aa in P)U[aa]||Y.push(aa);P=U;d("selectionChange",{pageId:S,removed:Y,added:X})},300)};G.getSelectionModel().addListener(mxEvent.CHANGE,
+d=document.createElementNS("http://www.w3.org/2000/svg","path");d.setAttribute("fill",C?M:"none");d.setAttribute("pointer-events","none");d.setAttribute("stroke",M);d.setAttribute("stroke-width",N);"1"==b.currentVertexStyle[mxConstants.STYLE_DASHED]&&(M=b.currentVertexStyle[mxConstants.STYLE_DASH_PATTERN]||"3 3",M=M.split(" ").map(function(m){return parseFloat(m)*N}).join(" "),d.setAttribute("stroke-dasharray",M));g=[];z=T(z);W(z);t="M"+z.x+" "+z.y;v.push(z);A=[];d.setAttribute("d",C?PerfectFreehand.getSvgPathFromStroke([[z.x,
+z.y]],B):t);f.appendChild(d);L.consume()}}),mouseMove:mxUtils.bind(this,function(z,L){if(null!=d&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())){z=L.getEvent();z=T(z);W(z);var N=q(0);if(N)if(v.push(N),C){var M=[];for(N=0;N<v.length;N++)M.push([v[N].x,v[N].y]);A=[];for(var m=2;m<g.length;m+=2)N=q(m),M.push([N.x,N.y]),A.push(N);d.setAttribute("d",PerfectFreehand.getSvgPathFromStroke(M,B))}else{t+=" L"+N.x+" "+N.y;M="";A=[];for(m=2;m<g.length;m+=2)N=q(m),M+=" L"+N.x+" "+N.y,A.push(N);d.setAttribute("d",
+t+M)}D&&(N=b.view.translate,b.scrollRectToVisible((new mxRectangle(z.x-N.x,z.y-N.y)).grow(20)));L.consume()}}),mouseUp:mxUtils.bind(this,function(z,L){null!=d&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())&&(K(L.getEvent()),L.consume())})});var T=function(z){return mxUtils.convertPoint(b.container,mxEvent.getClientX(z),mxEvent.getClientY(z))},W=function(z){for(g.push(z);g.length>k;)g.shift()},q=function(z){var L=g.length;if(1===L%2||L>=k){var N=0,M=0,m,y=0;for(m=z;m<L;m++)y++,z=g[m],N+=z.x,
+M+=z.y;return{x:N/y,y:M/y}}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;function P2PCollab(b,f,k){function d(O,S){try{if(!q){var V=f.file.getCurrentUser();if(W&&null!=V&&null!=V.displayName){var Q={from:E,id:n,type:O,sessionId:f.clientId,userId:V.id,username:V.displayName,data:S,protocol:DrawioFileSync.PROTOCOL,editor:EditorUi.VERSION};Q={bytes:f.objectToString(Q),data:"aes"};Q=JSON.stringify(Q);z&&"cursor"!=O&&EditorUi.debug("P2PCollab: sending to socket server",[Q]);n++;V=!z&&("cursor"==O||"selectionChange"==O);T&&!V&&m("message",Q);if(V)for(p2pId in I)I[p2pId].send(Q)}}}catch(R){null!=
+window.console&&console.error(R,O,S)}}function p(O){if(b.shareCursorPosition&&!G.isMouseDown){var S=mxUtils.getOffset(G.container),V=G.view.translate,Q=G.view.scale,R=null!=b.currentPage?b.currentPage.getId():null;d("cursor",{pageId:R,x:Math.round((O.getX()-S.x+G.container.scrollLeft)/Q-V.x),y:Math.round((O.getY()-S.y+G.container.scrollTop)/Q-V.y)})}}function t(O,S){var V=null!=b.currentPage?b.currentPage.getId():null;if(null!=O&&null!=O.cursor&&null!=O.lastCursor)if(null!=O.lastCursor.hide||!b.isShowRemoteCursors()||
+null!=O.lastCursor.pageId&&O.lastCursor.pageId!=V)O.cursor.style.display="none";else{V=function(){var Z=Math.max(G.container.scrollLeft,Math.min(G.container.scrollLeft+G.container.clientWidth-O.cursor.clientWidth,U)),aa=Math.max(G.container.scrollTop-22,Math.min(G.container.scrollTop+G.container.clientHeight-O.cursor.clientHeight,Y));X.style.opacity=Z!=U||aa!=Y?0:1;O.cursor.style.left=Z+"px";O.cursor.style.top=aa+"px";O.cursor.style.display=""};var Q=G.view.translate,R=G.view.scale,U=(Q.x+O.lastCursor.x)*
+R+8,Y=(Q.y+O.lastCursor.y)*R-12,X=O.cursor.getElementsByTagName("img")[0];S?(mxUtils.setPrefixedStyle(O.cursor.style,"transition","all 900ms ease-out"),mxUtils.setPrefixedStyle(X.style,"transition","all 900ms ease-out"),window.setTimeout(V,0)):(mxUtils.setPrefixedStyle(O.cursor.style,"transition",null),mxUtils.setPrefixedStyle(X.style,"transition",null),V())}}function v(O,S){try{var V=function(){if(null==l[R]){var ba=C[R];null==ba&&(ba=D%g.length,C[R]=ba,D++);var ia=g[ba];ba=11<ba?"black":"white";
+l[R]={cursor:document.createElement("div"),color:ia,selection:{}};x[S]=R;U=l[R].cursor;U.style.pointerEvents="none";U.style.position="absolute";U.style.display="none";U.style.opacity="0.9";var la=document.createElement("img");mxUtils.setPrefixedStyle(la.style,"transform","rotate(-45deg)translateX(-14px)");la.setAttribute("src",Graph.createSvgImage(8,12,'<path d="M 4 0 L 8 12 L 4 10 L 0 12 Z" stroke="'+ia+'" fill="'+ia+'"/>').src);la.style.width="10px";U.appendChild(la);la=document.createElement("div");
+la.style.backgroundColor=ia;la.style.color=ba;la.style.fontSize="9pt";la.style.padding="3px 7px";la.style.marginTop="8px";la.style.borderRadius="10px";la.style.maxWidth="100px";la.style.overflow="hidden";la.style.textOverflow="ellipsis";la.style.whiteSpace="nowrap";mxUtils.write(la,Q);U.appendChild(la);b.diagramContainer.appendChild(U)}else U=l[R].cursor;Y=l[R].selection};if(!q){O=JSON.parse(O);null!=O.bytes&&(O=f.stringToObject(O.bytes));z&&"cursor"!=O.type&&EditorUi.debug("P2PCollab: msg received",
+[O]);if(null!=S){if(O.from==E||u[O.from]>=O.id){EditorUi.debug("P2PCollab: Dropped Message",O,E,u[O.from]);return}u[O.from]=O.id}var Q=O.username?O.username:"Anonymous",R=O.sessionId,U,Y;null!=l[R]&&(clearTimeout(l[R].inactiveTO),l[R].inactiveTO=setTimeout(function(){J(null,R)},12E4));var X=O.data;switch(O.type){case "cursor":V();l[R].lastCursor=X;t(l[R],!0);break;case "diff":try{O=null!=X.patch?f.stringToObject(decodeURIComponent(X.patch)):X.diff,f.receiveRemoteChanges(O.d)}catch(ba){EditorUi.debug("P2PCollab: Diff msg error",
+ba)}break;case "selectionChange":if("0"!=urlParams["remote-selection"]){var Z=null!=b.currentPage?b.currentPage.getId():null;if(null==Z||null!=X.pageId&&X.pageId==Z){V();for(V=0;V<X.removed.length;V++){var aa=X.removed[V];if(null!=aa){var da=Y[aa];delete Y[aa];null!=da&&da.destroy()}}for(V=0;V<X.added.length;V++)if(aa=X.added[V],null!=aa){var fa=G.model.getCell(aa);null!=fa&&(Y[aa]=G.highlightCell(fa,l[R].color,6E4,70,3))}}}break;case "notify":O=null!=X.data?f.stringToObject(decodeURIComponent(X.data)):
+X.msg,f.handleMessageData(O.d)}f.file.fireEvent(new mxEventObject("realtimeMessage","message",O))}}catch(ba){null!=window.console&&console.warn(ba,O,S)}}function A(O,S){if(!z&&SimplePeer.WEBRTC_SUPPORT){var V=new SimplePeer({initiator:S,config:{iceServers:[{urls:"stun:54.89.235.160:3478"}]}});V.on("signal",function(Q){m("sendSignal",{to:O,from:E,signal:Q})});V.on("error",function(Q){delete K[O];EditorUi.debug("P2PCollab: p2p socket error",Q);!q&&S&&V.destroyed&&B[O]&&(EditorUi.debug("P2PCollab: p2p socket reconnecting",
+O),A(O,!0))});V.on("connect",function(){delete K[O];null==I[O]||I[O].destroyed?(I[O]=V,B[O]=!0,EditorUi.debug("P2PCollab: p2p socket connected",O)):(V.noP2PMapDel=!0,V.destroy(),EditorUi.debug("P2PCollab: p2p socket duplicate",O))});V.on("close",function(){V.noP2PMapDel||(EditorUi.debug("P2PCollab: p2p socket closed",O),H(x[O]),delete I[O])});V.on("data",v);return K[O]=V}}function J(O,S){H(S||x[O]);null!=O&&(delete x[O],B[O]=!1)}function H(O){var S=l[O];if(null!=S){var V=S.selection,Q;for(Q in V)null!=
+V[Q]&&V[Q].destroy();null!=S.cursor&&null!=S.cursor.parentNode&&S.cursor.parentNode.removeChild(S.cursor);clearTimeout(S.inactiveTO);delete l[O]}}var G=b.editor.graph,D=0,c=null,g="#e6194b #3cb44b #4363d8 #f58231 #911eb4 #f032e6 #469990 #9A6324 #800000 #808000 #000075 #a9a9a9 #ffe119 #42d4f4 #bfef45 #fabed4 #dcbeff #fffac8 #aaffc3 #ffd8b1".split(" "),l={},n=1,u={},x={},B={},C={},E,K={},I={},T=!0,W=!1,q=!1,z="0"!=urlParams["no-p2p"],L=!1,N=0,M=null,m=mxUtils.bind(this,function(O,S){if(!q)try{null!=
+c?(c.send(JSON.stringify({action:O,msg:S})),z||EditorUi.debug("P2PCollab: sending to socket server",[O],[S])):this.joinFile(!0)}catch(V){M=V,f.file.fireEvent(new mxEventObject("realtimeStateChanged")),EditorUi.debug("P2PCollab:","sendReply error",arguments,V)}});this.sendMessage=d;this.sendDiff=function(O){this.sendMessage("diff",{diff:O})};this.sendNotification=function(O){this.sendMessage("notify",{msg:O})};this.getState=function(){return null!=c?c.readyState:3};this.getLastError=function(){return M};
+this.mouseListeners={startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(O,S){},mouseMove:function(O,S){var V,Q=-1;return function(){clearTimeout(V);var R=this,U=arguments,Y=function(){V=null;Q=Date.now();O.apply(R,U)};Date.now()-Q>S?Y():V=setTimeout(Y,S)}}(function(O,S){p(S)},300),mouseUp:function(O,S){p(S)}};G.addMouseListener(this.mouseListeners);this.shareCursorPositionListener=function(){b.isShareCursorPosition()||d("cursor",{hide:!0})};b.addListener("shareCursorPositionChanged",this.shareCursorPositionListener);
+var y=mxGraphHandler.prototype.maxCells,F=null,P={};this.selectionChangeListener=function(O,S){var V=function(Q){return null!=Q?Q.id:null};null!=F&&window.clearTimeout(F);F=window.setTimeout(function(){for(var Q=G.getSelectionCount()>y?[]:G.getSelectionCells().map(V),R=null!=b.currentPage?b.currentPage.getId():null,U={},Y=[],X=[],Z=0;Z<Q.length;Z++){var aa=Q[Z];null!=aa&&(U[aa]=!0,null==P[aa]&&X.push(aa))}for(aa in P)U[aa]||Y.push(aa);P=U;d("selectionChange",{pageId:R,removed:Y,added:X})},300)};G.getSelectionModel().addListener(mxEvent.CHANGE,
this.selectionChangeListener);this.cursorHandler=mxUtils.bind(this,function(){for(var O in l)t(l[O])});mxEvent.addListener(G.container,"scroll",this.cursorHandler);G.getView().addListener(mxEvent.SCALE,this.cursorHandler);G.getView().addListener(mxEvent.TRANSLATE,this.cursorHandler);G.getView().addListener(mxEvent.SCALE_AND_TRANSLATE,this.cursorHandler);b.addListener("showRemoteCursorsChanged",this.cursorHandler);b.editor.addListener("pageSelected",this.cursorHandler);this.joinFile=function(O){if(!q)try{L&&
-(EditorUi.debug("P2PCollab: joinInProgress on",L),M="busy");L=++N;try{null!=c&&1==c.readyState&&(EditorUi.debug("P2PCollab: force closing socket on",c.joinId),c.close(1E3),c=null)}catch(Q){EditorUi.debug("P2PCollab: closing socket error",Q)}var T=new WebSocket(window.RT_WEBSOCKET_URL+"?id="+k);null==c&&(c=T);T.addEventListener("open",function(Q){c=T;c.joinId=L;L=!1;f.file.fireEvent(new mxEventObject("realtimeStateChanged"));EditorUi.debug("P2PCollab: open socket",c.joinId);Editor.enableRealtimeCache||
-window.setTimeout(function(){f.sendJoinMessage()},0);O&&f.scheduleCleanup()});T.addEventListener("message",function(Q){try{z||EditorUi.debug("P2PCollab: msg received",[Q]);var S=JSON.parse(Q.data);z&&"message"!=S.action&&EditorUi.debug("P2PCollab: msg received",[Q]);switch(S.action){case "message":v(S.msg,S.from);break;case "clientsList":var U=S.msg;F=U.cId;W=!0;for(S=0;S<U.list.length;S++)A(U.list[S],!0);break;case "signal":var Y=S.msg;if(!z){if(K[Y.from])var X=K[Y.from];else X=A(Y.from,!1),R=!0;
-X.signal(Y.signal)}break;case "newClient":R=!0;break;case "clientLeft":J(S.msg);break;case "sendSignalFailed":var Z=S.msg;EditorUi.debug("P2PCollab: signal failed (socket not found on server)",Z);delete K[Z.to];B[Z.to]=!1}}catch(aa){null!=window.console&&console.warn(aa,Q)}});var V=!1;T.addEventListener("close",mxUtils.bind(this,function(Q){EditorUi.debug("P2PCollab: WebSocket closed",T.joinId,"reconnecting",Q.code,Q.reason);EditorUi.debug("P2PCollab: closing socket on",T.joinId);q||1E3==Q.code||
-N!=T.joinId||(L==N&&(EditorUi.debug("P2PCollab: joinInProgress in close on",T.joinId),L=!1),V||(EditorUi.debug("P2PCollab: calling rejoin on",T.joinId),window.setTimeout(mxUtils.bind(this,function(){V=!0;this.joinFile(!0)}),500)));f.file.fireEvent(new mxEventObject("realtimeStateChanged"))}));T.addEventListener("error",mxUtils.bind(this,function(Q){EditorUi.debug("P2PCollab: WebSocket error, reconnecting",Q);EditorUi.debug("P2PCollab: error socket on",T.joinId);q||N!=T.joinId||(L==N&&(EditorUi.debug("P2PCollab: joinInProgress in error on",
-T.joinId),L=!1),V||(EditorUi.debug("P2PCollab: calling rejoin on",T.joinId),V=!0,this.joinFile(!0)));f.file.fireEvent(new mxEventObject("realtimeStateChanged"))}));f.file.fireEvent(new mxEventObject("realtimeStateChanged"))}catch(Q){M=Q,f.file.fireEvent(new mxEventObject("realtimeStateChanged"))}};this.destroy=function(){if(!q){EditorUi.debug("P2PCollab: destroyed");q=!0;for(sessionId in l)H(sessionId);null!=this.mouseListeners&&G.removeMouseListener(this.mouseListeners);null!=this.selectionChangeListener&&
+(EditorUi.debug("P2PCollab: joinInProgress on",L),M="busy");L=++N;try{null!=c&&1==c.readyState&&(EditorUi.debug("P2PCollab: force closing socket on",c.joinId),c.close(1E3),c=null)}catch(Q){EditorUi.debug("P2PCollab: closing socket error",Q)}var S=new WebSocket(window.RT_WEBSOCKET_URL+"?id="+k);null==c&&(c=S);S.addEventListener("open",function(Q){c=S;c.joinId=L;L=!1;f.file.fireEvent(new mxEventObject("realtimeStateChanged"));EditorUi.debug("P2PCollab: open socket",c.joinId);Editor.enableRealtimeCache||
+window.setTimeout(function(){f.sendJoinMessage()},0);O&&f.scheduleCleanup()});S.addEventListener("message",function(Q){try{z||EditorUi.debug("P2PCollab: msg received",[Q]);var R=JSON.parse(Q.data);z&&"message"!=R.action&&EditorUi.debug("P2PCollab: msg received",[Q]);switch(R.action){case "message":v(R.msg,R.from);break;case "clientsList":var U=R.msg;E=U.cId;W=!0;for(R=0;R<U.list.length;R++)A(U.list[R],!0);break;case "signal":var Y=R.msg;if(!z){if(K[Y.from])var X=K[Y.from];else X=A(Y.from,!1),T=!0;
+X.signal(Y.signal)}break;case "newClient":T=!0;break;case "clientLeft":J(R.msg);break;case "sendSignalFailed":var Z=R.msg;EditorUi.debug("P2PCollab: signal failed (socket not found on server)",Z);delete K[Z.to];B[Z.to]=!1}}catch(aa){null!=window.console&&console.warn(aa,Q)}});var V=!1;S.addEventListener("close",mxUtils.bind(this,function(Q){EditorUi.debug("P2PCollab: WebSocket closed",S.joinId,"reconnecting",Q.code,Q.reason);EditorUi.debug("P2PCollab: closing socket on",S.joinId);q||1E3==Q.code||
+N!=S.joinId||(L==N&&(EditorUi.debug("P2PCollab: joinInProgress in close on",S.joinId),L=!1),V||(EditorUi.debug("P2PCollab: calling rejoin on",S.joinId),window.setTimeout(mxUtils.bind(this,function(){V=!0;this.joinFile(!0)}),500)));f.file.fireEvent(new mxEventObject("realtimeStateChanged"))}));S.addEventListener("error",mxUtils.bind(this,function(Q){EditorUi.debug("P2PCollab: WebSocket error, reconnecting",Q);EditorUi.debug("P2PCollab: error socket on",S.joinId);q||N!=S.joinId||(L==N&&(EditorUi.debug("P2PCollab: joinInProgress in error on",
+S.joinId),L=!1),V||(EditorUi.debug("P2PCollab: calling rejoin on",S.joinId),V=!0,this.joinFile(!0)));f.file.fireEvent(new mxEventObject("realtimeStateChanged"))}));f.file.fireEvent(new mxEventObject("realtimeStateChanged"))}catch(Q){M=Q,f.file.fireEvent(new mxEventObject("realtimeStateChanged"))}};this.destroy=function(){if(!q){EditorUi.debug("P2PCollab: destroyed");q=!0;for(sessionId in l)H(sessionId);null!=this.mouseListeners&&G.removeMouseListener(this.mouseListeners);null!=this.selectionChangeListener&&
G.getSelectionModel().removeListener(this.selectionChangeListener);null!=this.shareCursorPositionListener&&b.removeListener(this.shareCursorPositionListener);null!=this.cursorHandler&&(mxEvent.removeListener(G.container,"scroll",this.cursorHandler),G.view.removeListener(this.cursorHandler),b.editor.removeListener(this.cursorHandler),b.removeListener(this.cursorHandler));null!=c&&1<=c.readyState&&(c.close(1E3),c=null);for(var O in I)null!=I[O]&&I[O].destroy();f.file.fireEvent(new mxEventObject("realtimeStateChanged"))}}}
;Editor.themes.unshift("simple");Editor.themes.push("sketch");Editor.themes.push("atlas");
(function(){EditorUi.prototype.switchCssForTheme=function(p){var t=mxUtils.isAncestorNode(document.body,this.container)?this.container:this.editor.graph.container;null!=t&&("kennedy"==p?t.classList.add("geClassic"):t.classList.remove("geClassic"),"sketch"==p&&t.classList.add("geSketch"),"simple"==p||"sketch"==p?t.classList.add("geSimple"):t.classList.remove("geSimple"))};var b=EditorUi.prototype.createMainMenuForTheme;EditorUi.prototype.createMainMenuForTheme=function(p){if("simple"==p||"sketch"==
@@ -14976,17 +14983,17 @@ mxResources.get("delete"));A.setAttribute("title",mxResources.get("undo"));J.set
arguments)};var f=EditorUi.prototype.createFooterMenuForTheme;EditorUi.prototype.createFooterMenuForTheme=function(p){if("simple"==p||"sketch"==p){if(null==this.sketchFooterMenuElt){var t=this.createPageMenuTab(!1,"simple"!=p),v=this.createMenu("pages",Editor.thinNoteImage),A=this.createMenuItem("undo",Editor.thinUndoImage),J=this.createMenuItem("redo",Editor.thinRedoImage),H=this.createMenuItem("delete",Editor.thinDeleteImage),G=this.createMenuItem("zoomOut",Editor.zoomOutImage),D=this.createMenuItem("zoomIn",
Editor.zoomInImage),c=this.createMenuItem("fullscreen",Editor.fullscreenImage),g=this.createMenuItem("exit",Editor.closeImage);this.dependsOnLanguage(mxUtils.bind(this,function(){v.setAttribute("title",mxResources.get("pages"));A.setAttribute("title",mxResources.get("undo"));J.setAttribute("title",mxResources.get("redo"));H.setAttribute("title",mxResources.get("delete"));G.setAttribute("title",mxResources.get("zoomOut"));D.setAttribute("title",mxResources.get("zoomIn"));c.setAttribute("title",mxResources.get("fullscreen"));
g.setAttribute("title",mxResources.get("exit"))}));this.sketchFooterMenuElt=document.createElement("div");this.sketchFooterMenuElt.className="geToolbarContainer geFooterToolbar";var l=this.sketchFooterMenuElt;if("simple"!=p){t.className="geButton gePageMenu";t.style.backgroundImage="url("+Editor.arrowDownImage+")";l.appendChild(t);var n=document.createElement("span");t.innerText="";t.appendChild(n);var u=mxUtils.bind(this,function(){n.innerText="";if(null!=this.currentPage){mxUtils.write(n,this.currentPage.getName());
-var F=null!=this.pages?this.pages.length:1,K=this.getPageIndex(this.currentPage);K=null!=K?K+1:1;var I=this.currentPage.getId();t.setAttribute("title",this.currentPage.getName()+" ("+K+"/"+F+")"+(null!=I?" ["+I+"]":""))}});this.editor.addListener("pagesPatched",u);this.editor.addListener("pageSelected",u);this.editor.addListener("pageRenamed",u);this.editor.addListener("fileLoaded",u);u();var x=mxUtils.bind(this,function(){t.style.display=this.isPageMenuVisible()?"":"none"});this.addListener("editInlineStart",
-mxUtils.bind(this,function(){x();u()}));this.addListener("fileDescriptorChanged",x);this.addListener("pagesVisibleChanged",x);this.editor.addListener("pagesPatched",x);x();l.appendChild(G)}var B=this.createZoomInput("simple"!=p);l.appendChild(B);if("simple"==p){A.style.marginLeft="auto";l.appendChild(v);l.appendChild(A);l.appendChild(J);l.appendChild(H);var C=mxUtils.bind(this,function(){var F=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,K="1"==urlParams.embed&&
-null!=this.buttonContainer?this.buttonContainer.offsetWidth||300:0;v.style.display=F<480+K?"none":"";B.style.display=F<750+K?"none":"";H.style.display=F<290+K?"none":"";A.style.display=F<360+K?"none":"";J.style.display=F<360+K?"none":""});mxEvent.addListener(window,"resize",C);C()}"simple"!=p&&l.appendChild(D);"1"==urlParams.embedInline&&(l.appendChild(c),C=mxUtils.bind(this,function(){c.style.backgroundImage="url("+(Editor.inlineFullscreen?Editor.fullscreenExitImage:Editor.fullscreenImage)+")";this.inlineSizeChanged();
+var E=null!=this.pages?this.pages.length:1,K=this.getPageIndex(this.currentPage);K=null!=K?K+1:1;var I=this.currentPage.getId();t.setAttribute("title",this.currentPage.getName()+" ("+K+"/"+E+")"+(null!=I?" ["+I+"]":""))}});this.editor.addListener("pagesPatched",u);this.editor.addListener("pageSelected",u);this.editor.addListener("pageRenamed",u);this.editor.addListener("fileLoaded",u);u();var x=mxUtils.bind(this,function(){t.style.display=this.isPageMenuVisible()?"":"none"});this.addListener("editInlineStart",
+mxUtils.bind(this,function(){x();u()}));this.addListener("fileDescriptorChanged",x);this.addListener("pagesVisibleChanged",x);this.editor.addListener("pagesPatched",x);x();l.appendChild(G)}var B=this.createZoomInput("simple"!=p);l.appendChild(B);if("simple"==p){A.style.marginLeft="auto";l.appendChild(v);l.appendChild(A);l.appendChild(J);l.appendChild(H);var C=mxUtils.bind(this,function(){var E=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,K="1"==urlParams.embed&&
+null!=this.buttonContainer?this.buttonContainer.offsetWidth||300:0;v.style.display=E<480+K?"none":"";B.style.display=E<750+K?"none":"";H.style.display=E<290+K?"none":"";A.style.display=E<360+K?"none":"";J.style.display=E<360+K?"none":""});mxEvent.addListener(window,"resize",C);C()}"simple"!=p&&l.appendChild(D);"1"==urlParams.embedInline&&(l.appendChild(c),C=mxUtils.bind(this,function(){c.style.backgroundImage="url("+(Editor.inlineFullscreen?Editor.fullscreenExitImage:Editor.fullscreenImage)+")";this.inlineSizeChanged();
this.editor.graph.refresh();this.fitWindows()}),this.addListener("editInlineStart",mxUtils.bind(this,function(){c.style.backgroundImage="url("+(Editor.inlineFullscreen?Editor.fullscreenExitImage:Editor.fullscreenImage)+")"})),this.addListener("inlineFullscreenChanged",C),l.appendChild(g));"simple"==p?(this.sketchFooterMenuElt.style.cssText="position:relative;gap:6px;flex-shrink:0;flex-grow:0.5;",this.sketchMainMenuElt.appendChild(this.sketchFooterMenuElt)):this.container.appendChild(this.sketchFooterMenuElt)}}else f.apply(this,
arguments)};var k=EditorUi.prototype.createPickerMenuForTheme;EditorUi.prototype.createPickerMenuForTheme=function(p){if("simple"==p||"sketch"==p){if(null==this.sketchPickerMenuElt){var t=this.editor.graph;this.sketchPickerMenuElt=document.createElement("div");this.sketchPickerMenuElt.className="geToolbarContainer";"sketch"==p&&this.sketchPickerMenuElt.classList.add("geVerticalToolbar");var v=this.sketchPickerMenuElt,A=document.createElement("a");A.className="geButton";A.style.height="18px";A.style.opacity=
"0.4";A.style.backgroundImage="url("+Editor.expandMoreImage+")";A.setAttribute("title",mxResources.get("collapseExpand"));var J=this.createMenuItem("insertFreehand","simple"==p?Editor.thinGestureImage:Editor.freehandImage,!0),H=this.createMenuItem("generate","simple"==p?Editor.thinSparklesImage:Editor.sparklesImage,!0),G=this.createMenu("insert","simple"==p?Editor.thinAddCircleImage:Editor.addBoxImage),D=this.createMenu("table",Editor.thinTableImage),c=G.cloneNode(!0);c.style.backgroundImage="url("+
-("simple"==p?Editor.thinShapesImage:Editor.shapesImage)+")";c.setAttribute("title",mxResources.get("shapes"));this.addShapePicker(c,"simple"==p);var g=!1,l=mxUtils.bind(this,function(x){if(x||null!=document.body&&document.body.contains(v)){x=function(K,I,R,W,q,z){null!=I&&K.setAttribute("title",I);v.appendChild(K);"simple"!=p&&null!=W&&null!=K&&null==K.querySelector(".geShortcutKey")&&(I=document.createElement("div"),I.className="geShortcutKey",mxUtils.write(I,W),K.appendChild(I));t.isEnabled()||
+("simple"==p?Editor.thinShapesImage:Editor.shapesImage)+")";c.setAttribute("title",mxResources.get("shapes"));this.addShapePicker(c,"simple"==p);var g=!1,l=mxUtils.bind(this,function(x){if(x||null!=document.body&&document.body.contains(v)){x=function(K,I,T,W,q,z){null!=I&&K.setAttribute("title",I);v.appendChild(K);"simple"!=p&&null!=W&&null!=K&&null==K.querySelector(".geShortcutKey")&&(I=document.createElement("div"),I.className="geShortcutKey",mxUtils.write(I,W),K.appendChild(I));t.isEnabled()||
"1"==urlParams.embedInline||K.classList.add("mxDisabled");return K};t.isEnabled()||"1"==urlParams.embedInline?(J.classList.remove("mxDisabled"),G.classList.remove("mxDisabled"),D.classList.remove("mxDisabled"),c.classList.remove("mxDisabled")):(J.classList.add("mxDisabled"),G.classList.add("mxDisabled"),D.classList.add("mxDisabled"),c.classList.add("mxDisabled"));v.innerText="";if(!g){var B=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,C="1"==urlParams.embed&&
-null!=this.buttonContainer?this.buttonContainer.offsetWidth||300:0;"simple"==p&&(this.sidebar.graph.cellRenderer.minSvgStrokeWidth=.9);if("simple"!=p||B>=660+C){var F=this.sidebar.createVertexTemplate(t.appendFontSize(Editor.defaultTextStyle,t.vertexFontSize),60,30,"Text",mxResources.get("text")+" (A)",!0,!1,null,"simple"!=p,null,28,28,"simple"==p?Editor.thinTextImage:null,!0);x(F,mxResources.get("text")+" (A)",null,"A",32)}F=this.sidebar.createVertexTemplate("rounded=0;whiteSpace=wrap;html=1;",160,
-80,"",mxResources.get("rectangle")+" (D)",!0,!1,null,"simple"!=p,null,28,28,"simple"==p?Editor.thinRectangleImage:null);"simple"==p?(B>=600+C&&x(F,mxResources.get("rectangle")+" (D)",null,"D"),B>=400+C&&this.sketchPickerMenuElt.appendChild(c),B>=460+C&&x(J,mxResources.get("freehand")+" (X)",null,"X"),B>=500+C&&x(H,mxResources.get("generate")),B>=540+C&&this.sketchPickerMenuElt.appendChild(D)):(x(this.sidebar.createVertexTemplate(Editor.defaultNoteStyle,160,160,"",mxResources.get("note")+" (S)",!0,
-!1,null,!0,null,28,28),mxResources.get("note")+" (S)",null,"S"),x(F,mxResources.get("rectangle")+" (D)",null,"D"),x(this.sidebar.createVertexTemplate("ellipse;whiteSpace=wrap;html=1;",160,100,"",mxResources.get("ellipse")+" (F)",!0,!1,null,!0,null,28,28),mxResources.get("ellipse")+" (F)",null,"F"),C=new mxCell("",new mxGeometry(0,0,this.editor.graph.defaultEdgeLength+20,0),"edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;"),C.geometry.setTerminalPoint(new mxPoint(0,0),!0),C.geometry.setTerminalPoint(new mxPoint(C.geometry.width,
+null!=this.buttonContainer?this.buttonContainer.offsetWidth||300:0;"simple"==p&&(this.sidebar.graph.cellRenderer.minSvgStrokeWidth=.9);if("simple"!=p||B>=660+C){var E=this.sidebar.createVertexTemplate(t.appendFontSize(Editor.defaultTextStyle,t.vertexFontSize),60,30,"Text",mxResources.get("text")+" (A)",!0,!1,null,"simple"!=p,null,28,28,"simple"==p?Editor.thinTextImage:null,!0);x(E,mxResources.get("text")+" (A)",null,"A",32)}E=this.sidebar.createVertexTemplate("rounded=0;whiteSpace=wrap;html=1;",160,
+80,"",mxResources.get("rectangle")+" (D)",!0,!1,null,"simple"!=p,null,28,28,"simple"==p?Editor.thinRectangleImage:null);"simple"==p?(B>=600+C&&x(E,mxResources.get("rectangle")+" (D)",null,"D"),B>=400+C&&this.sketchPickerMenuElt.appendChild(c),B>=460+C&&x(J,mxResources.get("freehand")+" (X)",null,"X"),B>=500+C&&x(H,mxResources.get("generate")),B>=540+C&&this.sketchPickerMenuElt.appendChild(D)):(x(this.sidebar.createVertexTemplate(Editor.defaultNoteStyle,160,160,"",mxResources.get("note")+" (S)",!0,
+!1,null,!0,null,28,28),mxResources.get("note")+" (S)",null,"S"),x(E,mxResources.get("rectangle")+" (D)",null,"D"),x(this.sidebar.createVertexTemplate("ellipse;whiteSpace=wrap;html=1;",160,100,"",mxResources.get("ellipse")+" (F)",!0,!1,null,!0,null,28,28),mxResources.get("ellipse")+" (F)",null,"F"),C=new mxCell("",new mxGeometry(0,0,this.editor.graph.defaultEdgeLength+20,0),"edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;"),C.geometry.setTerminalPoint(new mxPoint(0,0),!0),C.geometry.setTerminalPoint(new mxPoint(C.geometry.width,
0),!1),C.geometry.points=[],C.geometry.relative=!0,C.edge=!0,x(this.sidebar.createEdgeTemplateFromCells([C],C.geometry.width,C.geometry.height,mxResources.get("line")+" (C)",!0,null,"simple"!=p,!1,null,28,28),mxResources.get("line")+" (C)",null,"C"),C=C.clone(),C.style="edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;shape=flexArrow;rounded=1;startSize=8;endSize=8;",C.geometry.width=this.editor.graph.defaultEdgeLength+20,C.geometry.setTerminalPoint(new mxPoint(0,20),!0),C.geometry.setTerminalPoint(new mxPoint(C.geometry.width,
20),!1),x(this.sidebar.createEdgeTemplateFromCells([C],C.geometry.width,40,mxResources.get("arrow"),!0,null,!0,!1,null,28,28),mxResources.get("arrow")),x(J,mxResources.get("freehand")+" (X)",null,"X"),x(H,mxResources.get("generate")),this.sketchPickerMenuElt.appendChild(c));("simple"!=p||320<B)&&this.sketchPickerMenuElt.appendChild(G)}"simple"!=p&&"1"!=urlParams.embedInline&&v.appendChild(A);this.sidebar.graph.cellRenderer.minSvgStrokeWidth=this.sidebar.minThumbStrokeWidth}});mxEvent.addListener(A,
"click",mxUtils.bind(this,function(){g?(v.classList.remove("geCollapsedToolbar"),A.style.backgroundImage="url("+Editor.expandMoreImage+")",g=!1,l()):(v.innerText="",v.appendChild(A),v.classList.add("geCollapsedToolbar"),A.style.backgroundImage="url("+Editor.expandLessImage+")",g=!0)}));var n=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,u=null;mxEvent.addListener(window,"resize",function(){var x=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;
diff --git a/src/main/webapp/js/diagramly/App.js b/src/main/webapp/js/diagramly/App.js
index 1ff2e613a..2771e363e 100644
--- a/src/main/webapp/js/diagramly/App.js
+++ b/src/main/webapp/js/diagramly/App.js
@@ -3704,13 +3704,30 @@ App.prototype.executeCreateObject = function(value, done)
// Fits diagram to window
this.initialFitDiagram(1.2);
+ // Easter egg: pop effect animates all cells on load
+ if (value.effect == 'pop')
+ {
+ var graph = this.editor.graph;
+ var cells = graph.model.getDescendants(
+ graph.model.getRoot());
+ var nodes = graph.getNodesForCells(cells);
+ Graph.setOpacityForNodes(nodes, 0);
+
+ window.setTimeout(mxUtils.bind(this, function()
+ {
+ var animations = graph.createPopAnimations(
+ cells, true);
+ graph.executeAnimations(animations);
+ }), 200);
+ }
+
// Needs to go before upate of hash if
// it replaces the history state
if (done != null)
{
done();
}
-
+
// Sets create value with compressed XML
value.type = 'xml';
value.compressed = true;
diff --git a/src/main/webapp/js/diagramly/Dialogs.js b/src/main/webapp/js/diagramly/Dialogs.js
index a9dfc828b..d1d79f047 100644
--- a/src/main/webapp/js/diagramly/Dialogs.js
+++ b/src/main/webapp/js/diagramly/Dialogs.js
@@ -10275,10 +10275,8 @@ var MoreShapesDialog = function(editorUi, expanded, entries)
{
(function(section)
{
- var title = listEntry.cloneNode(false);
- title.style.fontWeight = 'bold';
- title.style.backgroundColor = 'light-dark(#e5e5e5, #505759)';
- title.style.padding = '6px 0px 6px 20px';
+ var title = document.createElement('div');
+ title.className = 'geMoreShapesSectionHeader';
mxUtils.write(title, section.title);
list.appendChild(title);
@@ -10286,20 +10284,18 @@ var MoreShapesDialog = function(editorUi, expanded, entries)
{
(function(entry)
{
- var option = listEntry.cloneNode(false);
- option.style.cursor = 'pointer';
- option.style.padding = '4px 0px 4px 20px';
- option.style.whiteSpace = 'nowrap';
- option.style.overflow = 'hidden';
- option.style.textOverflow = 'ellipsis';
+ var option = document.createElement('div');
+ option.className = 'geMoreShapesItem';
option.setAttribute('title', entry.title + ' (' + entry.id + ')');
-
+
var checkbox = document.createElement('input');
checkbox.setAttribute('type', 'checkbox');
checkbox.checked = editorUi.sidebar.isEntryVisible(entry.id);
checkbox.defaultChecked = checkbox.checked;
option.appendChild(checkbox);
- mxUtils.write(option, ' ' + entry.title);
+ var label = document.createElement('span');
+ mxUtils.write(label, entry.title);
+ option.appendChild(label);
list.appendChild(option);
@@ -10345,11 +10341,11 @@ var MoreShapesDialog = function(editorUi, expanded, entries)
if (currentListItem != null)
{
- currentListItem.style.backgroundColor = '';
+ currentListItem.classList.remove('geMoreShapesItemSelected');
}
-
+
currentListItem = option;
- currentListItem.style.backgroundColor = 'light-dark(#ebf2f9, #000000)';
+ currentListItem.classList.add('geMoreShapesItemSelected');
if (evt != null)
{
@@ -10397,30 +10393,23 @@ var MoreShapesDialog = function(editorUi, expanded, entries)
list.style.position = 'absolute';
list.style.top = '40px';
list.style.left = '0px';
- list.style.width = '202px';
- list.style.bottom = '60px';
+ list.style.width = '220px';
+ list.style.bottom = '70px';
list.style.overflow = 'auto';
-
+
+ preview.className = 'geMoreShapesPreview';
preview.style.position = 'absolute';
- preview.style.left = '202px';
+ preview.style.left = '220px';
preview.style.right = '0px';
preview.style.top = '40px';
- preview.style.bottom = '60px';
+ preview.style.bottom = '70px';
preview.style.overflow = 'auto';
- preview.style.borderLeftStyle = 'solid';
- preview.style.borderLeftWidth = '1px';
preview.style.textAlign = 'center';
-
+
var currentListItem = null;
var applyFunctions = [];
-
- var listEntry = document.createElement('div');
- listEntry.style.position = 'relative';
- listEntry.style.left = '0px';
- listEntry.style.right = '0px';
-
+
addEntries(entries);
- div.style.padding = '30px';
div.appendChild(hd);
div.appendChild(list);
@@ -10429,56 +10418,47 @@ var MoreShapesDialog = function(editorUi, expanded, entries)
var buttons = document.createElement('div');
buttons.className = 'geDialogFooter';
buttons.style.position = 'absolute';
+ buttons.style.display = 'flex';
+ buttons.style.alignItems = 'center';
buttons.style.paddingRight = '16px';
+ buttons.style.paddingLeft = '16px';
buttons.style.left = '0px';
buttons.style.right = '0px';
buttons.style.bottom = '0px';
- buttons.style.height = '60px';
- buttons.style.lineHeight = '52px';
-
+ buttons.style.height = '70px';
+
+ var checksDiv = document.createElement('div');
+ checksDiv.className = 'geMoreShapesFooterChecks';
+
+ var labelsLabel = document.createElement('label');
+ labelsLabel.className = 'geMoreShapesFooterCheck';
var labels = document.createElement('input');
labels.setAttribute('type', 'checkbox');
- labels.style.position = 'relative';
- labels.style.top = '1px';
labels.checked = editorUi.sidebar.sidebarTitles;
labels.defaultChecked = labels.checked;
- buttons.appendChild(labels);
- var span = document.createElement('span');
- mxUtils.write(span, ' ' + mxResources.get('labels'));
- span.style.paddingRight = '20px';
- buttons.appendChild(span);
-
- mxEvent.addListener(span, 'click', function(evt)
- {
- labels.checked = !labels.checked;
- mxEvent.consume(evt);
- });
+ labelsLabel.appendChild(labels);
+ var labelsText = document.createElement('span');
+ mxUtils.write(labelsText, mxResources.get('labels'));
+ labelsLabel.appendChild(labelsText);
+ checksDiv.appendChild(labelsLabel);
var cb = document.createElement('input');
cb.setAttribute('type', 'checkbox');
-
+
if (isLocalStorage || mxClient.IS_CHROMEAPP)
{
- var span = document.createElement('span');
- span.style.paddingRight = '20px';
- span.appendChild(cb);
- mxUtils.write(span, ' ' + mxResources.get('rememberThisSetting'));
- cb.style.position = 'relative';
- cb.style.top = '1px';
+ var rememberLabel = document.createElement('label');
+ rememberLabel.className = 'geMoreShapesFooterCheck';
cb.checked = true;
cb.defaultChecked = true;
-
- mxEvent.addListener(span, 'click', function(evt)
- {
- if (mxEvent.getSource(evt) != cb)
- {
- cb.checked = !cb.checked;
- mxEvent.consume(evt);
- }
- });
-
- buttons.appendChild(span);
+ rememberLabel.appendChild(cb);
+ var rememberText = document.createElement('span');
+ mxUtils.write(rememberText, mxResources.get('rememberThisSetting'));
+ rememberLabel.appendChild(rememberText);
+ checksDiv.appendChild(rememberLabel);
}
+
+ buttons.appendChild(checksDiv);
var cancelBtn = mxUtils.button(mxResources.get('cancel'), function()
{
@@ -10529,18 +10509,24 @@ var MoreShapesDialog = function(editorUi, expanded, entries)
editorUi.setSidebarTitles(labels.checked, cb.checked);
});
applyBtn.className = 'geBtn gePrimaryBtn';
-
+
+ var btnsRight = document.createElement('div');
+ btnsRight.style.flex = '1';
+ btnsRight.style.textAlign = 'right';
+
if (editorUi.editor.cancelFirst)
{
- buttons.appendChild(cancelBtn);
- buttons.appendChild(applyBtn);
+ btnsRight.appendChild(cancelBtn);
+ btnsRight.appendChild(applyBtn);
}
else
{
- buttons.appendChild(applyBtn);
- buttons.appendChild(cancelBtn);
+ btnsRight.appendChild(applyBtn);
+ btnsRight.appendChild(cancelBtn);
}
-
+
+ buttons.appendChild(btnsRight);
+
div.appendChild(buttons);
}
else
diff --git a/src/main/webapp/js/diagramly/Editor.js b/src/main/webapp/js/diagramly/Editor.js
index 3d999232b..44571e25a 100644
--- a/src/main/webapp/js/diagramly/Editor.js
+++ b/src/main/webapp/js/diagramly/Editor.js
@@ -8465,6 +8465,18 @@
this.getCellsForAction(action.wipeOut, true), false));
}
+ if (action.popIn != null)
+ {
+ animations = animations.concat(this.createPopAnimations(
+ this.getCellsForAction(action.popIn, true), true));
+ }
+
+ if (action.popOut != null)
+ {
+ animations = animations.concat(this.createPopAnimations(
+ this.getCellsForAction(action.popOut, true), false));
+ }
+
// Executes all actions that change cell states
if (action.toggle != null)
{
@@ -9630,7 +9642,7 @@
{
div.appendChild(pagesSection);
}
-
+
// Selection only
var selectionSection = document.createElement('div');
selectionSection.className = 'geDialogCheckRow';
@@ -9656,7 +9668,17 @@
if (graph.isEnabled())
{
- pagesSection.appendChild(selectionSection);
+ if (pageCount > 1)
+ {
+ pagesSection.appendChild(selectionSection);
+ }
+ else
+ {
+ var selectionWrapper = document.createElement('div');
+ selectionWrapper.className = 'geDialogSection';
+ selectionWrapper.appendChild(selectionSection);
+ div.appendChild(selectionWrapper);
+ }
}
if (!editorUi.isPagesEnabled() || editorUi.lastPrintPagesRadioChecked)
diff --git a/src/main/webapp/js/diagramly/EditorUi.js b/src/main/webapp/js/diagramly/EditorUi.js
index 2ca4e0a6f..c3c4b7e6a 100644
--- a/src/main/webapp/js/diagramly/EditorUi.js
+++ b/src/main/webapp/js/diagramly/EditorUi.js
@@ -7962,14 +7962,9 @@
var edit = editSection.getEditInput();
// Cannot disable lightbox in iframes
- if (showFrameOption)
+ if (showFrameOption && lightbox.checkRow != null)
{
- if (lightbox.checkRow != null)
- {
- lightbox.checkRow.style.display = 'none';
- }
-
- dy -= 20;
+ lightbox.checkRow.style.display = 'none';
}
var layers = this.addCheckbox(optSection, mxResources.get('layers'),
diff --git a/src/main/webapp/js/diagramly/GraphViewer.js b/src/main/webapp/js/diagramly/GraphViewer.js
index 30a95126b..84030d0ee 100644
--- a/src/main/webapp/js/diagramly/GraphViewer.js
+++ b/src/main/webapp/js/diagramly/GraphViewer.js
@@ -1,3149 +1,3154 @@
-/**
- * Copyright (c) 2006-2016, JGraph Holdings Ltd
- */
-// Disables theme in viewer and lightbox
-Editor.currentTheme = '';
-window.uiTheme = '';
-
-/**
- * No CSS and resources available in embed mode. Parameters and docs:
- * https://www.drawio.com/doc/faq/embed-html-options
- */
-GraphViewer = function(container, xmlNode, graphConfig)
-{
- this.init(container, xmlNode, graphConfig);
-};
-
-// Editor inherits from mxEventSource
-mxUtils.extend(GraphViewer, mxEventSource);
-
-/**
- * Redirects editing to absolue URLs.
- */
-GraphViewer.prototype.editBlankUrl = (urlParams['dev'] == '1') ?
- 'https://test.draw.io/' : 'https://app.diagrams.net/';
-
-/**
- * Base URL for relative images.
- */
-GraphViewer.prototype.imageBaseUrl = window.DRAWIO_BASE_URL + '/';
-
-/**
- * Redirects editing to absolue URLs.
- */
-GraphViewer.prototype.toolbarHeight = (document.compatMode == 'BackCompat') ? 24 : 26;
-
-/**
- * Redirects editing to absolue URLs.
- */
-GraphViewer.prototype.lightboxChrome = true;
-
-/**
- * Redirects editing to absolue URLs.
- */
-GraphViewer.prototype.lightboxZIndex = 999;
-
-/**
- * Redirects editing to absolue URLs.
- */
-GraphViewer.prototype.toolbarZIndex = 999;
-
-/**
- * If automatic fit should be enabled if zoom is disabled. Default is true.
- */
-GraphViewer.prototype.autoFit = false;
-
-/**
- * If automatic crop should be enabled when layers are toggled. Default is false.
- */
-GraphViewer.prototype.autoCrop = false;
-
-/**
- * Specifies if the graph should be moved if a layer is made visible that
- * extends the graph beyong the top left corner. Default is true. Is this is
- * false then the viewport of the viewer will include all cells in all layers
- * regardless of their initial visible state.
- */
-GraphViewer.prototype.autoOrigin = true;
-
-/**
- * If the diagram should be centered. Default is false.
- */
-GraphViewer.prototype.center = false;
-
-/**
- * Force centering of the diagram. Default is false.
- */
-GraphViewer.prototype.forceCenter = false;
-
-/**
- * Specifies if zooming in for auto fit is allowed. Default is false.
- */
-GraphViewer.prototype.allowZoomIn = false;
-
-/**
- * Specifies if zooming out for auto fit is allowed. Default is true.
- * If toolbar-nohide is true then overflow content is visible.
- */
-GraphViewer.prototype.allowZoomOut = true;
-
-/**
- * Whether the title should be shown as a tooltip if the toolbar is disabled.
- * Default is false.
- */
-GraphViewer.prototype.showTitleAsTooltip = false;
-
-/**
- * Specifies if the constructur should delay the rendering if the container
- * is not visible by default.
- */
-GraphViewer.prototype.checkVisibleState = true;
-
-/**
- * Defines the minimum height of the container. Default is 28.
- */
-GraphViewer.prototype.minHeight = 28;
-
-/**
- * Defines the minimum width of the container. Default is 100.
- */
-GraphViewer.prototype.minWidth = 100;
-
-/**
- * Implements viewBox to keep the contents inside the bounding box
- * of the container. This is currently not supported in Safari (due
- * to clipping in labels with viewBox) and all browsers that do not
- * support foreignObjects (eg. IE11).
- */
-GraphViewer.prototype.responsive = false;
-
-/**
- * Dark mode can be one of null, "light", "dark" or "auto".
- */
-GraphViewer.prototype.darkMode = null;
-
-/**
- * Specifies if link icons should be shown on shapes. Default is false.
- */
-GraphViewer.prototype.showLinkIcons = false;
-
-/**
- * Specifies if tooltip icons should be shown on shapes. Default is false.
- */
-GraphViewer.prototype.showTooltipIcons = false;
-
-/**
- * Initializes the viewer.
- */
-GraphViewer.prototype.init = function(container, xmlNode, graphConfig)
-{
- GraphViewer.initCss();
- this.graphConfig = (graphConfig != null) ? graphConfig : {};
- this.autoFit = (this.graphConfig['auto-fit'] != null) ?
- this.graphConfig['auto-fit'] : this.autoFit;
- this.autoCrop = (this.graphConfig['auto-crop'] != null) ?
- this.graphConfig['auto-crop'] : this.autoCrop;
- this.autoOrigin = (this.graphConfig['auto-origin'] != null) ?
- this.graphConfig['auto-origin'] : this.autoOrigin;
- this.allowZoomOut = (this.graphConfig['allow-zoom-out'] != null) ?
- this.graphConfig['allow-zoom-out'] : this.allowZoomOut;
- this.allowZoomIn = (this.graphConfig['allow-zoom-in'] != null) ?
- this.graphConfig['allow-zoom-in'] : this.allowZoomIn;
- this.forceCenter = (this.graphConfig['forceCenter'] != null) ?
- this.graphConfig['forceCenter'] : this.forceCenter;
- this.hCenterOnly = (this.graphConfig['hCenterOnly'] != null) ?
- this.graphConfig['hCenterOnly'] : this.hCenterOnly;
- this.center = (this.graphConfig['center'] != null) ?
- this.graphConfig['center'] : (this.center || this.forceCenter);
- this.checkVisibleState = (this.graphConfig['check-visible-state'] != null) ?
- this.graphConfig['check-visible-state'] : this.checkVisibleState;
- this.darkMode = (this.graphConfig['dark-mode'] != null) ?
- this.graphConfig['dark-mode'] : this.darkMode;
- this.showLinkIcons = (this.graphConfig['show-link-icons'] != null) ?
- this.graphConfig['show-link-icons'] : this.showLinkIcons;
- this.showTooltipIcons = (this.graphConfig['show-tooltip-icons'] != null) ?
- this.graphConfig['show-tooltip-icons'] : this.showTooltipIcons;
- this.toolbarItems = (this.graphConfig.toolbar != null) ?
- this.graphConfig.toolbar.split(' ') : [];
- this.zoomEnabled = mxUtils.indexOf(this.toolbarItems, 'zoom') >= 0;
- this.layersEnabled = mxUtils.indexOf(this.toolbarItems, 'layers') >= 0;
- this.tagsEnabled = mxUtils.indexOf(this.toolbarItems, 'tags') >= 0;
- this.lightboxEnabled = mxUtils.indexOf(this.toolbarItems, 'lightbox') >= 0;
- this.lightboxClickEnabled = this.graphConfig.lightbox != false;
- this.initialOverflow = document.body.style.overflow;
- this.initialWidth = (container != null) ? container.style.width : null;
- this.widthIsEmpty = (this.initialWidth != null) ? this.initialWidth == '' : true;
- this.currentPage = parseInt(this.graphConfig.page) || 0;
- this.responsive = ((this.graphConfig['responsive'] != null) ?
- this.graphConfig['responsive'] : this.responsive) &&
- !this.zoomEnabled && !mxClient.NO_FO && !mxClient.IS_SF;
- this.pageId = this.graphConfig.pageId;
- this.editor = null;
- var self = this;
-
- if (this.graphConfig['toolbar-position'] == 'inline')
- {
- this.minHeight += this.toolbarHeight;
- }
-
- if (xmlNode != null)
- {
- this.xmlDocument = xmlNode.ownerDocument;
- this.xmlNode = xmlNode;
- this.xml = mxUtils.getXml(xmlNode);
-
- if (container != null)
- {
- var render = mxUtils.bind(this, function()
- {
- this.graph = new Graph(container);
- this.graph.enableFlowAnimation = true;
- this.installDarkModeListener();
-
- if (this.responsive && this.graph.dialect == mxConstants.DIALECT_SVG)
- {
- var root = this.graph.view.getDrawPane().ownerSVGElement;
-
- // Border is applied as CSS padding on the container so that
- // it stays at a fixed pixel size when the diagram is scaled
- // down. This matches graph.fit(border) in the draw.io editor,
- // which also reserves a fixed-pixel border before scaling.
- var responsiveBorder = 0;
-
- if (this.graphConfig.border != null)
- {
- responsiveBorder = this.graphConfig.border;
- }
- else if (container.style.padding == '')
- {
- responsiveBorder = 8;
- }
-
- if (responsiveBorder > 0)
- {
- container.style.padding = responsiveBorder + 'px';
- container.style.boxSizing = 'border-box';
- }
-
- root.style.forcedColorAdjust = 'none';
- root.style.boxSizing = 'border-box';
- root.style.overflow = 'visible';
-
- this.graph.fit = function()
- {
- // Automatic
- };
-
- var maxScale = parseFloat(this.graphConfig['responsive-max-scale']);
-
- // Capture any pre-existing maxWidth on the container (e.g. set
- // by the host page to constrain the diagram) so we can honour
- // it as an upper bound when responsive-max-scale adjusts the width.
- var presetMaxWidth = parseFloat(container.style.maxWidth);
-
- this.graph.sizeDidChange = function()
- {
- var bounds = this.view.graphBounds;
- var tr = this.view.translate;
-
- root.setAttribute('viewBox',
- (bounds.x + tr.x - this.panDx) + ' ' +
- (bounds.y + tr.y - this.panDy) + ' ' +
- (bounds.width + 1) + ' ' +
- (bounds.height + 1));
- this.container.style.backgroundColor =
- root.style.backgroundColor;
-
- if (!isNaN(maxScale))
- {
- var naturalWidth = Math.round(
- (bounds.width + 1) * maxScale + 2 * responsiveBorder);
- var finalMaxWidth = !isNaN(presetMaxWidth) ?
- Math.min(naturalWidth, presetMaxWidth) : naturalWidth;
- this.container.style.maxWidth = finalMaxWidth + 'px';
- }
-
- this.fireEvent(new mxEventObject(mxEvent.SIZE, 'bounds', bounds));
- };
- }
-
- if (this.graphConfig.move)
- {
- this.graph.isMoveCellsEvent = function(evt)
- {
- return true;
- };
- }
-
- // Adds lightbox and link handling for shapes
- if (this.lightboxClickEnabled)
- {
- container.style.cursor = 'pointer';
- }
-
- // Hack for using EditorUi methods on the graph instance
- this.editor = new Editor(true, null, null, this.graph);
- this.editor.editBlankUrl = this.editBlankUrl;
- this.graph.lightbox = true;
- this.graph.centerZoom = false;
- this.graph.autoExtend = false;
- this.graph.autoScroll = false;
- this.graph.showLinkIcons = this.showLinkIcons;
- this.graph.showTooltipIcons = this.showTooltipIcons;
- this.graph.setEnabled(false);
-
- if (this.graphConfig['toolbar-nohide'] == true)
- {
- this.editor.defaultGraphOverflow = 'visible';
- }
-
- // Extract graph model from html & svg formats
- var temp = this.editor.extractGraphModel(this.xmlNode, true);
-
- if (temp != null && temp != xmlNode)
- {
- try
- {
- this.xml = mxUtils.getXml(temp);
- this.xmlNode = temp;
- this.xmlDocument = temp.ownerDocument;
- }
- catch (e)
- {
- // ignore
- }
- }
-
- // Handles relative images
- this.graph.getImageFromBundles = function(key)
- {
- return self.getImageUrl(key);
- };
-
- this.graph.addSvgShadow(this.graph.view.canvas.ownerSVGElement, null, true);
-
- // Adds page placeholders
- if (this.xmlNode.nodeName == 'mxfile')
- {
- var diagrams = this.xmlNode.getElementsByTagName('diagram');
-
- if (diagrams.length > 0)
- {
- // Finds index for given page ID
- if (this.pageId != null)
- {
- for (var i = 0; i < diagrams.length; i++)
- {
- if (this.pageId == diagrams[i].getAttribute('id'))
- {
- this.currentPage = i;
- break;
- }
- }
- }
-
- var graphGetGlobalVariable = this.graph.getGlobalVariable;
- var cachedFileVars = null;
-
- try
- {
- var varsStr = self.xmlNode.getAttribute('vars');
-
- if (varsStr != null && varsStr.length > 0)
- {
- cachedFileVars = JSON.parse(varsStr);
- }
- }
- catch (e)
- {
- // ignore
- }
-
- this.graph.getGlobalVariable = function(name)
- {
- var diagram = diagrams[self.currentPage];
-
- if (name == 'page')
- {
- return diagram.getAttribute('name') || 'Page-' + (self.currentPage + 1);
- }
- else if (name == 'pagenumber')
- {
- return self.currentPage + 1;
- }
- else if (name == 'pagecount')
- {
- return diagrams.length;
- }
-
- var val = graphGetGlobalVariable.apply(this, arguments);
-
- if (val == null && cachedFileVars != null)
- {
- val = cachedFileVars[name];
- }
-
- return val;
- };
- }
- }
-
- this.diagrams = [];
- var lastXmlNode = null;
-
- this.selectPage = function(number)
- {
- if(this.handlingResize)
- return;
-
- // Saves current page's hidden tags before switching
- if (this.tagsEnabled && this.graphConfig.hiddenTags != null)
- {
- var curPageId = this.diagrams[this.currentPage].getAttribute('id');
- this.graphConfig.hiddenTags[curPageId] =
- (this.graph.hiddenTags.length > 0) ? this.graph.hiddenTags.slice() : null;
- }
-
- this.currentPage = mxUtils.mod(number, this.diagrams.length);
-
- // Applies hidden tags before updating XML so that
- // positionGraph uses the correct tag visibility
- if (this.tagsEnabled && this.graphConfig.hiddenTags != null)
- {
- var pageId = this.diagrams[this.currentPage].getAttribute('id');
- var pageTags = this.graphConfig.hiddenTags[pageId];
- this.graph.hiddenTags = (pageTags != null && pageTags.length > 0) ? pageTags : [];
- }
-
- this.updateGraphXml(Editor.parseDiagramNode(this.diagrams[this.currentPage]));
- };
-
- this.selectPageById = function(id)
- {
- var index = this.getIndexById(id);
- var found = index >= 0;
-
- if (found)
- {
- this.selectPage(index);
- }
-
- return found;
- };
-
- var update = mxUtils.bind(this, function()
- {
- if (this.xmlNode == null || this.xmlNode.nodeName != 'mxfile')
- {
- this.diagrams = [];
- }
- if (this.xmlNode != lastXmlNode)
- {
- this.diagrams = this.xmlNode.getElementsByTagName('diagram');
- lastXmlNode = this.xmlNode;
- }
- });
-
- // Replaces background page reference with SVG
- var graphSetBackgroundImage = this.graph.setBackgroundImage;
-
- this.graph.setBackgroundImage = function(img)
- {
- if (img != null && Graph.isPageLink(img.src))
- {
- var src = img.src;
- var comma = src.indexOf(',');
-
- if (comma > 0)
- {
- var index = self.getIndexById(src.substring(comma + 1));
-
- if (index >= 0)
- {
- img = self.getImageForGraphModel(
- Editor.parseDiagramNode(
- self.diagrams[index]));
- img.originalSrc = src;
- }
- }
- }
-
- graphSetBackgroundImage.apply(this, arguments);
- };
-
- // Overrides graph bounds to include background pages
- var graphGetGraphBounds = this.graph.getGraphBounds;
-
- this.graph.getGraphBounds = function(img)
- {
- var bounds = graphGetGraphBounds.apply(this, arguments);
- var img = this.backgroundImage;
-
- // Check img.originalSrc to ignore background
- // images but not background pages
- if (img != null)
- {
- var t = this.view.translate;
- var s = this.view.scale;
-
- bounds = mxRectangle.fromRectangle(bounds);
- bounds.add(new mxRectangle(
- (t.x + img.x) * s, (t.y + img.y) * s,
- img.width * s, img.height * s));
- }
-
- return bounds;
- };
-
- // LATER: Add event for setGraphXml
- this.addListener('xmlNodeChanged', update);
- update();
-
- // Passes current page via urlParams global variable
- // to let the parser know which page we're using
- urlParams['page'] = self.currentPage;
- var visible = null;
-
- this.graph.getModel().beginUpdate();
- try
- {
- // Required for correct parsing of fold parameter
- urlParams['nav'] = (this.graphConfig.nav != false) ? '1' : '0';
-
- this.editor.setGraphXml(this.xmlNode);
- this.graph.view.scale = this.graphConfig.zoom || 1;
- visible = this.setLayersVisible();
-
- // Applies initial hidden tags from config
- if (this.tagsEnabled && this.graphConfig.hiddenTags != null &&
- this.diagrams != null && this.diagrams[this.currentPage] != null)
- {
- var pageId = this.diagrams[this.currentPage].getAttribute('id');
- var pageTags = this.graphConfig.hiddenTags[pageId];
-
- if (pageTags != null && pageTags.length > 0)
- {
- this.graph.hiddenTags = pageTags;
- }
- }
-
- this.fireEvent(new mxEventObject('graphInitialized'));
-
- if (!this.responsive)
- {
- this.graph.border = (this.graphConfig.border != null) ? this.graphConfig.border : 8;
- }
-
- this.installBackgroundColorHandler();
- GraphViewer.viewerInitialized(this);
- }
- finally
- {
- this.graph.getModel().endUpdate();
- }
-
- // Adds left-button panning only if scrollbars are visible
- if (!this.responsive)
- {
- this.graph.panningHandler.isForcePanningEvent = function(me)
- {
- return !mxEvent.isPopupTrigger(me.getEvent()) &&
- this.graph.container.style.overflow == 'auto';
- };
-
- this.graph.panningHandler.useLeftButtonForPanning = true;
- this.graph.panningHandler.ignoreCell = true;
- this.graph.panningHandler.usePopupTrigger = false;
- this.graph.panningHandler.pinchEnabled = false;
- }
-
- this.graph.setPanning(false);
-
- if (this.graphConfig.toolbar != null)
- {
- this.addToolbar();
- }
- else if (this.graphConfig.title != null && this.showTitleAsTooltip)
- {
- container.setAttribute('title', this.graphConfig.titleTooltip || this.graphConfig.title);
- }
-
- if (!this.responsive)
- {
- this.addSizeHandler();
- }
-
- // Crops to visible layers if no layers toolbar button
- if (this.showLayers(this.graph) && !this.forceCenter && (!this.layersEnabled || this.autoCrop))
- {
- this.crop();
- }
-
- this.addClickHandler(this.graph);
- this.graph.initialViewState = {
- translate: this.graph.view.translate.clone(),
- scale: this.graph.view.scale
- };
-
- if (visible != null)
- {
- this.setLayersVisible(visible);
- }
-
- this.graph.customLinkClicked = function(href, associatedCell)
- {
- try
- {
- if (Graph.isPageLink(href))
- {
- var comma = href.indexOf(',');
-
- if (!self.selectPageById(href.substring(comma + 1)))
- {
- alert(mxResources.get('pageNotFound') || 'Page not found');
- }
- }
- else
- {
- var bounds = this.getGraphBounds();
- this.handleCustomLink(href, associatedCell);
-
- if (!bounds.equals(this.getGraphBounds()))
- {
- self.crop();
- }
- }
- }
- catch (e)
- {
- alert(e.message);
- }
-
- return true;
- };
-
- // Updates origin after tree cell folding
- var graphFoldTreeCell = this.graph.foldTreeCell;
-
- this.graph.foldTreeCell = mxUtils.bind(this, function()
- {
- this.treeCellFolded = true;
-
- return graphFoldTreeCell.apply(this.graph, arguments);
- });
-
- this.fireEvent(new mxEventObject('render'));
- });
-
- var MutObs = window.MutationObserver ||
- window.WebKitMutationObserver ||
- window.MozMutationObserver;
-
- if (this.checkVisibleState && container.offsetWidth == 0 &&
- this.getAncestorDetails(container) == null &&
- typeof MutObs !== 'undefined')
- {
- // Delayed rendering if inside hidden container and event available
- var par = this.getObservableParent(container);
-
- var observer = new MutObs(mxUtils.bind(this, function(mutation)
- {
- if (container.offsetWidth > 0)
- {
- observer.disconnect();
- render();
- }
- }));
-
- observer.observe(par, {attributes: true});
- }
- else
- {
- // Immediate rendering in all other cases
- render();
- }
- }
- }
-};
-
-/**
- *
- */
-GraphViewer.prototype.installBackgroundColorHandler = function()
-{
- var graph = this.graph;
-
- if (graph != null)
- {
- if (GraphViewer.shapeBackgroundColor != null)
- {
- graph.shapeBackgroundColor = GraphViewer.shapeBackgroundColor;
- }
-
- graph.defaultPageBackgroundColor = 'transparent';
- graph.diagramBackgroundColor = 'transparent';
- graph.transparentBackground = false;
-
- var originalBackground = graph.background;
-
- var updateBackground = mxUtils.bind(this, function(validate)
- {
- if (graph.getAdaptiveColors() == 'none' &&
- originalBackground == null)
- {
- if (this.isDarkMode())
- {
- graph.background = '#ffffff';
- }
- else
- {
- graph.background = null;
- }
-
- if (validate)
- {
- graph.view.validateBackground();
- }
- }
- });
-
- // Called when pages are changed
- this.addListener('graphChanged', function()
- {
- originalBackground = graph.background;
- updateBackground(true);
- });
-
- // Called when the theme changes
- this.addListener('darkModeChanged', function()
- {
- updateBackground(true);
- });
-
- // Sets initial state
- updateBackground(false);
- }
-};
-
-/**
- *
- */
-GraphViewer.prototype.installDarkModeListener = function()
-{
- if (window.matchMedia != null)
- {
- window.matchMedia('(prefers-color-scheme: dark)')
- .addEventListener('change', mxUtils.bind(this, function()
- {
- this.darkModeChanged();
- this.fireEvent(new mxEventObject('darkModeChanged'));
- }));
- }
-
- this.darkModeChanged();
-};
-
-/**
- *
- */
-GraphViewer.prototype.darkModeChanged = function()
-{
- if (this.graph != null)
- {
- var container = this.graph.container;
- var dark = this.isDarkMode();
-
- if (dark)
- {
- container.classList.add('geDarkMode');
- }
- else
- {
- container.classList.remove('geDarkMode');
- }
-
- container.style.colorScheme = (dark) ? 'dark' : 'light';
- }
-};
-
-/**
- *
- */
-GraphViewer.prototype.getAncestorDetails = function(container)
-{
- while (container != null)
- {
- if (container.nodeName == 'DETAILS')
- {
- return container;
- }
-
- container = container.parentNode;
- }
-
- return null;
-};
-
-/**
- *
- */
-GraphViewer.prototype.getObservableParent = function(container)
-{
- var node = container.parentNode;
-
- while (node != document.body && node.parentNode != null &&
- mxUtils.getCurrentStyle(node).display !== 'none')
- {
- node = node.parentNode;
- }
-
- return node;
-};
-
-/**
- *
- */
-GraphViewer.prototype.getImageUrl = function(url)
-{
- if (url != null && url.substring(0, 7) != 'http://' &&
- url.substring(0, 8) != 'https://' && url.substring(0, 10) != 'data:image')
- {
- if (url.charAt(0) == '/')
- {
- url = url.substring(1, url.length);
- }
-
- url = this.imageBaseUrl + url;
- }
-
- return url;
-};
-
-/**
- *
- */
-GraphViewer.prototype.getImageForGraphModel = function(node)
-{
- var graph = Graph.createOffscreenGraph(this.graph.getStylesheet());
- graph.getGlobalVariable = this.graph.getGlobalVariable;
- document.body.appendChild(graph.container);
-
- var codec = new mxCodec(node.ownerDocument);
- var root = codec.decode(node).root;
- graph.model.setRoot(root);
-
- var svgRoot = graph.getSvg();
- var bounds = graph.getGraphBounds();
- document.body.removeChild(graph.container);
-
- return new mxImage(Editor.createSvgDataUri(mxUtils.getXml(svgRoot)),
- bounds.width, bounds.height, bounds.x, bounds.y);
-};
-
-/**
- *
- */
-GraphViewer.prototype.getIndexById = function(id)
-{
- if (this.diagrams != null)
- {
- for (var i = 0; i < this.diagrams.length; i++)
- {
- if (this.diagrams[i].getAttribute('id') == id)
- {
- return i;
- }
- }
- }
-
- return -1;
-};
-
-/**
- *
- */
-GraphViewer.prototype.setXmlNode = function(xmlNode)
-{
- //Extract graph model from html & svg formats
- xmlNode = this.editor.extractGraphModel(xmlNode, true);
-
- this.xmlDocument = xmlNode.ownerDocument;
- this.xml = mxUtils.getXml(xmlNode);
- this.xmlNode = xmlNode;
-
- this.updateGraphXml(xmlNode);
- this.fireEvent(new mxEventObject('xmlNodeChanged'));
-};
-
-/**
- *
- */
-GraphViewer.prototype.setFileNode = function(xmlNode)
-{
- if (this.xmlNode == null)
- {
- this.xmlDocument = xmlNode.ownerDocument;
- this.xml = mxUtils.getXml(xmlNode);
- this.xmlNode = xmlNode;
- }
-
- this.setGraphXml(xmlNode);
-};
-
-/**
- *
- */
-GraphViewer.prototype.updateGraphXml = function(xmlNode)
-{
- this.setGraphXml(xmlNode);
- this.fireEvent(new mxEventObject('graphChanged'));
-};
-
-/**
- *
- */
-GraphViewer.prototype.setLayersVisible = function(visible)
-{
- var allVisible = true;
-
- if (!this.autoOrigin)
- {
- var result = [];
- var model = this.graph.getModel();
-
- model.beginUpdate();
- try
- {
- for (var i = 0; i < model.getChildCount(model.root); i++)
- {
- var layer = model.getChildAt(model.root, i);
- allVisible = allVisible && model.isVisible(layer);
- result.push(model.isVisible(layer));
- model.setVisible(layer, (visible != null) ? visible[i] : true);
- }
- }
- finally
- {
- model.endUpdate();
- }
- }
-
- return (allVisible) ? null : result;
-};
-
-/**
- *
- */
-GraphViewer.prototype.setGraphXml = function(xmlNode)
-{
- if (this.graph != null)
- {
- this.graph.view.translate = new mxPoint();
- this.graph.view.scale = 1;
- var visible = null;
-
- this.graph.getModel().beginUpdate();
- try
- {
- this.graph.getModel().clear();
- this.editor.setGraphXml(xmlNode);
- visible = this.setLayersVisible(true);
- }
- finally
- {
- this.graph.getModel().endUpdate();
- }
-
- if (!this.responsive)
- {
- // Restores initial CSS state
- if (this.widthIsEmpty)
- {
- this.graph.container.style.width = '';
- this.graph.container.style.height = '';
- }
- else
- {
- this.graph.container.style.width = this.initialWidth;
- }
-
- this.positionGraph();
- }
-
- this.graph.initialViewState = {
- translate: this.graph.view.translate.clone(),
- scale: this.graph.view.scale
- };
-
- if (visible)
- {
- this.setLayersVisible(visible);
- }
- }
-};
-
-/**
- *
- */
-GraphViewer.prototype.isDarkMode = function()
-{
- return this.darkMode == 'dark' || (this.darkMode == 'auto' && window.matchMedia &&
- window.matchMedia('(prefers-color-scheme: dark)').matches);
-};
-
-/**
- *
- */
-GraphViewer.prototype.addSizeHandler = function()
-{
- var container = this.graph.container;
- var bounds = this.graph.getGraphBounds();
- var updatingOverflow = false;
-
- if (this.graphConfig['toolbar-nohide'] != true)
- {
- container.style.overflow = 'hidden';
- }
- else
- {
- container.style.overflow = 'visible';
- }
-
- var updateOverflow = mxUtils.bind(this, function()
- {
- if (!updatingOverflow)
- {
- updatingOverflow = true;
- var tmp = this.graph.getGraphBounds();
-
- if (this.graphConfig['toolbar-nohide'] != true)
- {
- // Shows scrollbars if graph is larger than available width
- if (tmp.width + 2 * this.graph.border > container.offsetWidth - 2)
- {
- container.style.overflow = 'auto';
- }
- else
- {
- container.style.overflow = 'hidden';
- }
- }
- else
- {
- container.style.overflow = 'visible';
- }
-
- if (this.toolbar != null && this.graphConfig['toolbar-nohide'] != true)
- {
- var r = container.getBoundingClientRect();
-
- // Workaround for position:relative set in ResizeSensor
- var origin = mxUtils.getScrollOrigin(document.body)
- var b = (document.body.style.position === 'relative') ?
- document.body.getBoundingClientRect() :
- {left: -origin.x, top: -origin.y};
- r = {left: r.left - b.left, top: r.top - b.top, bottom: r.bottom - b.top, right: r.right - b.left};
-
- this.toolbar.style.left = r.left + 'px';
-
- if (this.graphConfig['toolbar-position'] == 'bottom')
- {
- this.toolbar.style.top = r.bottom - 1 + 'px';
- }
- else
- {
- if (this.graphConfig['toolbar-position'] != 'inline')
- {
- this.toolbar.style.width = Math.max(this.minToolbarWidth, container.offsetWidth) + 'px';
- this.toolbar.style.top = r.top + 1 + 'px';
- }
- else
- {
- this.toolbar.style.top = r.top + 'px';
- }
- }
- }
- else if (this.toolbar != null)
- {
- this.toolbar.style.width = Math.max(this.minToolbarWidth, container.offsetWidth) + 'px';
- }
-
- // Updates origin after tree cell folding
- if (this.treeCellFolded)
- {
- this.treeCellFolded = false;
- this.positionGraph(this.graph.view.translate);
- this.graph.initialViewState.translate = this.graph.view.translate.clone();
- }
-
- updatingOverflow = false;
- }
- });
-
- var lastOffsetWidth = null;
- var cachedOffsetWidth = null;
- this.handlingResize = false;
-
- // Installs function on instance
- this.fitGraph = mxUtils.bind(this, function(maxScale)
- {
- var cachedOffsetWidth = container.offsetWidth;
-
- if (cachedOffsetWidth != lastOffsetWidth && !this.handlingResize)
- {
- this.handlingResize = true;
-
- // Hides scrollbars to force update of translate
- if (container.style.overflow == 'auto')
- {
- container.style.overflow = 'hidden';
- }
-
- this.graph.maxFitScale = (maxScale != null) ? maxScale : (this.graphConfig.zoom ||
- ((this.allowZoomIn) ? null : 1));
- this.graph.fit(null, null, null, null, null, true);
-
- if (this.center || !(this.graphConfig.resize != false || container.style.height == ''))
- {
- this.graph.center(true, this.hCenterOnly? false : true);
- }
-
- this.graph.maxFitScale = null;
-
- if (this.graphConfig.resize != false || container.style.height == '' || this.hCenterOnly)
- {
- this.updateContainerHeight(container, Math.max(this.minHeight,
- this.graph.getGraphBounds().height +
- 2 * this.graph.border + 1));
- }
-
- this.graph.initialViewState = {
- translate: this.graph.view.translate.clone(),
- scale: this.graph.view.scale
- };
-
- lastOffsetWidth = cachedOffsetWidth;
-
- // Workaround for fit triggering scrollbars triggering doResize (infinite loop)
- window.setTimeout(mxUtils.bind(this, function()
- {
- this.handlingResize = false;
- }), 0);
- }
- });
-
- if (GraphViewer.useResizeSensor)
- {
- if (document.documentMode <= 9)
- {
- mxEvent.addListener(window, 'resize', updateOverflow);
- this.graph.addListener('size', updateOverflow);
- }
- else
- {
- new ResizeSensor(this.graph.container, updateOverflow);
- }
- }
-
- if (this.graphConfig.resize || ((this.zoomEnabled || !this.autoFit) && this.graphConfig.resize != false))
- {
- this.graph.minimumContainerSize = new mxRectangle(0, 0, this.minWidth, this.minHeight);
- this.graph.resizeContainer = true;
- }
- else
- {
- // Sets initial size for responsive diagram to stop at actual size
- if (this.widthIsEmpty && !(container.style.height != '' && this.autoFit))
- {
- this.updateContainerWidth(container, bounds.width + 2 * this.graph.border);
- }
-
- if (this.graphConfig.resize != false || container.style.height == '')
- {
- this.updateContainerHeight(container, Math.max(this.minHeight, bounds.height + 2 * this.graph.border + 1));
- }
-
- if (!this.zoomEnabled && this.autoFit)
- {
- var lastOffsetWidth = null;
- var scheduledResize = null;
-
- var doResize = mxUtils.bind(this, function()
- {
- window.clearTimeout(scheduledResize);
-
- if (!this.handlingResize)
- {
- scheduledResize = window.setTimeout(mxUtils.bind(this, this.fitGraph), 100);
- }
- });
-
- if (GraphViewer.useResizeSensor)
- {
- if (document.documentMode <= 9)
- {
- mxEvent.addListener(window, 'resize', doResize);
- }
- else
- {
- new ResizeSensor(this.graph.container, doResize);
- }
- }
- }
- else if (!(document.documentMode <= 9))
- {
- this.graph.addListener('size', updateOverflow);
- }
- }
-
- var positionGraph = mxUtils.bind(this, function(origin)
- {
- // Allocates maximum width while setting initial view state
- var prev = container.style.minWidth;
-
- if (this.widthIsEmpty)
- {
- container.style.minWidth = '100%';
- }
-
- var maxHeight = (this.graphConfig['max-height'] != null) ? this.graphConfig['max-height'] :
- ((container.style.height != '' && this.autoFit) ? container.offsetHeight : undefined);
-
- if (container.offsetWidth > 0 && origin == null && this.allowZoomOut && (this.allowZoomIn ||
- bounds.width + 2 * this.graph.border > container.offsetWidth ||
- bounds.height + 2 * this.graph.border > maxHeight))
- {
- var maxScale = null;
-
- if (maxHeight != null && bounds.height + 2 * this.graph.border > maxHeight - 2)
- {
- maxScale = (maxHeight - 2 * this.graph.border - 2) / bounds.height;
- }
-
- this.fitGraph(maxScale);
- }
- else if (!this.widthIsEmpty && origin == null && !(this.graphConfig.resize != false || container.style.height == ''))
- {
- this.graph.center((!this.widthIsEmpty || bounds.width < this.minWidth) && this.graphConfig.resize != true);
- }
- else
- {
- origin = (origin != null) ? origin : new mxPoint();
-
- this.graph.view.setTranslate(Math.floor(this.graph.border - bounds.x / this.graph.view.scale) + origin.x,
- Math.floor(this.graph.border - bounds.y / this.graph.view.scale) + origin.y);
- lastOffsetWidth = container.offsetWidth;
- }
-
- container.style.minWidth = prev
- });
-
- if (document.documentMode == 8)
- {
- window.setTimeout(positionGraph, 0);
- }
- else
- {
- positionGraph();
- }
-
- // Installs function on instance
- this.positionGraph = function(origin)
- {
- bounds = this.graph.getGraphBounds();
- lastOffsetWidth = null;
- positionGraph(origin);
- };
-};
-
-/**
- * Moves the origin of the graph to the top, right corner.
- */
-GraphViewer.prototype.crop = function()
-{
- var graph = this.graph;
- var bounds = graph.getGraphBounds();
- var border = graph.border;
- var s = graph.view.scale;
- var x0 = (bounds.x != null) ? Math.floor(graph.view.translate.x - bounds.x / s + border) : border;
- var y0 = (bounds.y != null) ? Math.floor(graph.view.translate.y - bounds.y / s + border) : border;
-
- graph.view.setTranslate(x0, y0);
-};
-
-/**
- *
- */
-GraphViewer.prototype.updateContainerWidth = function(container, width)
-{
- container.style.width = width + 'px';
-};
-
-/**
- *
- */
-GraphViewer.prototype.updateContainerHeight = function(container, height)
-{
- if (this.forceCenter || this.zoomEnabled || !this.autoFit || document.compatMode == 'BackCompat' ||
- document.documentMode == 8)
- {
- container.style.height = height + 'px';
- }
-};
-
-/**
- * Shows the
- */
-GraphViewer.prototype.showLayers = function(graph, sourceGraph)
-{
- var layers = this.graphConfig.layers;
- var idx = (layers != null && layers.length > 0) ? layers.split(' ') : [];
- var layerIds = this.graphConfig.layerIds;
- var hasLayerIds = layerIds != null && layerIds.length > 0;
- var result = false;
-
- if (idx.length > 0 || hasLayerIds || sourceGraph != null)
- {
- var source = (sourceGraph != null) ? sourceGraph.getModel() : null;
- var model = graph.getModel();
- model.beginUpdate();
-
- try
- {
- var childCount = model.getChildCount(model.root);
-
- // Shows specified layers (eg. 0 1 3)
- if (source == null)
- {
- var layersFound = false, visibleLayers = {};
-
- if (hasLayerIds)
- {
- for (var i = 0; i < layerIds.length; i++)
- {
- var layer = model.getCell(layerIds[i]);
-
- if (layer != null)
- {
- layersFound = true;
- visibleLayers[layer.id] = true;
- }
- }
- }
- else
- {
- for (var i = 0; i < idx.length; i++)
- {
- var layer = model.getChildAt(model.root, parseInt(idx[i]));
-
- if (layer != null)
- {
- layersFound = true;
- visibleLayers[layer.id] = true;
- }
- }
- }
-
- //To prevent hiding all layers, only apply if the specified layers are found
- //This prevents incorrect settings from showing an empty viewer
- for (var i = 0; layersFound && i < childCount; i++)
- {
- var layer = model.getChildAt(model.root, i);
- model.setVisible(layer, visibleLayers[layer.id] || false);
- }
- }
- else
- {
- // Match visible layers in source graph
- for (var i = 0; i < childCount; i++)
- {
- model.setVisible(model.getChildAt(model.root, i),
- source.isVisible(source.getChildAt(source.root, i)));
- }
- }
- }
- finally
- {
- model.endUpdate();
- }
-
- result = true;
- }
-
- return result;
-};
-
-/**
- *
- */
-GraphViewer.prototype.addToolbar = function()
-{
- var container = this.graph.container;
-
- if (this.graphConfig['toolbar-position'] == 'bottom')
- {
- container.style.marginBottom = this.toolbarHeight + 'px';
- }
- else if (this.graphConfig['toolbar-position'] != 'inline')
- {
- container.style.marginTop = this.toolbarHeight + 'px';
- }
-
- // Creates toolbar for viewer
- var toolbar = container.ownerDocument.createElement('div');
- toolbar.style.display = 'flex';
- toolbar.style.alignItems = 'center';
- toolbar.style.position = 'absolute';
- toolbar.style.overflow = 'hidden';
- toolbar.style.boxSizing = 'border-box';
- toolbar.style.whiteSpace = 'nowrap';
- toolbar.style.textAlign = 'left';
- toolbar.style.zIndex = this.toolbarZIndex;
- toolbar.style.backgroundColor = 'light-dark(#eeeeee, ' + GraphViewer.darkBackgroundColor + ')';
- toolbar.style.height = this.toolbarHeight + 'px';
-
- var updateDarkMode = mxUtils.bind(this, function()
- {
- if (this.isDarkMode())
- {
- toolbar.classList.add('geDarkMode');
- toolbar.style.colorScheme = 'dark';
- }
- else
- {
- toolbar.classList.remove('geDarkMode');
- toolbar.style.colorScheme = 'light';
- }
- });
-
- this.addListener('darkModeChanged', updateDarkMode);
- this.toolbar = toolbar;
- updateDarkMode();
-
- if (this.graphConfig['toolbar-position'] == 'inline')
- {
- mxUtils.setPrefixedStyle(toolbar.style, 'transition', 'opacity 100ms ease-in-out');
- mxUtils.setOpacity(toolbar, 30);
-
- // Changes toolbar opacity on hover
- var fadeThread = null;
- var fadeThread2 = null;
-
- var fadeOut = mxUtils.bind(this, function(delay)
- {
- if (fadeThread != null)
- {
- window.clearTimeout(fadeThread);
- fadeThead = null;
- }
-
- if (fadeThread2 != null)
- {
- window.clearTimeout(fadeThread2);
- fadeThead2 = null;
- }
-
- fadeThread = window.setTimeout(mxUtils.bind(this, function()
- {
- mxUtils.setOpacity(toolbar, 0);
- fadeThread = null;
-
- fadeThread2 = window.setTimeout(mxUtils.bind(this, function()
- {
- toolbar.style.display = 'none';
- fadeThread2 = null;
- }), 100);
- }), delay || 200);
- });
-
- var fadeIn = mxUtils.bind(this, function(opacity)
- {
- if (fadeThread != null)
- {
- window.clearTimeout(fadeThread);
- fadeThead = null;
- }
-
- if (fadeThread2 != null)
- {
- window.clearTimeout(fadeThread2);
- fadeThead2 = null;
- }
-
- toolbar.style.display = 'flex';
- mxUtils.setOpacity(toolbar, opacity || 30);
- });
-
- mxEvent.addListener(this.graph.container, (mxClient.IS_POINTER) ? 'pointermove' : 'mousemove', mxUtils.bind(this, function(evt)
- {
- if (!mxEvent.isTouchEvent(evt))
- {
- fadeIn(30);
- fadeOut();
- }
- }));
-
- mxEvent.addListener(toolbar, (mxClient.IS_POINTER) ? 'pointermove' : 'mousemove', function(evt)
- {
- mxEvent.consume(evt);
- });
-
- mxEvent.addListener(toolbar, 'mouseenter', mxUtils.bind(this, function(evt)
- {
- fadeIn(100);
- }));
-
- mxEvent.addListener(toolbar, 'mousemove', mxUtils.bind(this, function(evt)
- {
- fadeIn(100);
- mxEvent.consume(evt);
- }));
-
- mxEvent.addListener(toolbar, 'mouseleave', mxUtils.bind(this, function(evt)
- {
- if (!mxEvent.isTouchEvent(evt))
- {
- fadeIn(30);
- }
- }));
-
- // Shows/hides toolbar for touch devices
- var graph = this.graph;
- var tol = graph.getTolerance();
-
- graph.addMouseListener(
- {
- startX: 0,
- startY: 0,
- scrollLeft: 0,
- scrollTop: 0,
- mouseDown: function(sender, me)
- {
- this.startX = me.getGraphX();
- this.startY = me.getGraphY();
- this.scrollLeft = graph.container.scrollLeft;
- this.scrollTop = graph.container.scrollTop;
- },
- mouseMove: function(sender, me) {},
- mouseUp: function(sender, me)
- {
- if (mxEvent.isTouchEvent(me.getEvent()))
- {
- if ((Math.abs(this.scrollLeft - graph.container.scrollLeft) < tol &&
- Math.abs(this.scrollTop - graph.container.scrollTop) < tol) &&
- (Math.abs(this.startX - me.getGraphX()) < tol &&
- Math.abs(this.startY - me.getGraphY()) < tol))
- {
- if (parseFloat(toolbar.style.opacity || 0) > 0)
- {
- fadeOut();
- }
- else
- {
- fadeIn(30);
- }
- }
- }
- }
- });
- }
-
- var tokens = this.toolbarItems;
- var buttonCount = 0;
-
- var addButton = mxUtils.bind(this, function(fn, imgSrc, tip, enabled)
- {
- var a = this.createToolbarButton(fn, imgSrc, tip, enabled);
- toolbar.appendChild(a);
-
- buttonCount++;
-
- return a;
- });
-
- var model = this.graph.getModel();
- var layersDialog = null;
- var tagsComponent = null;
- var tagsDialog = null;
- var pageInfo = null;
-
- for (var i = 0; i < tokens.length; i++)
- {
- var token = tokens[i];
-
- if (token == 'pages')
- {
- pageInfo = container.ownerDocument.createElement('div');
- pageInfo.style.display = 'inline-flex';
- pageInfo.style.position = 'relative';
- pageInfo.style.alignItems = 'center';
- pageInfo.style.padding = '4px';
- pageInfo.style.fontFamily = GraphViewer.cssFontFamily;
- pageInfo.style.fontSize = '12px';
- pageInfo.style.cursor = 'default';
- pageInfo.style.color = 'light-dark(#000000, #ffffff)';
- mxUtils.setOpacity(pageInfo, 70);
-
- var prevButton = addButton(mxUtils.bind(this, function()
- {
- this.selectPage(this.currentPage - 1);
- }), Editor.chevronLeftImage, mxResources.get('previousPage') || 'Previous Page');
-
- prevButton.style.borderRightStyle = 'none';
- prevButton.style.paddingLeft = '0px';
- prevButton.style.paddingRight = '0px';
- toolbar.appendChild(pageInfo);
-
- var nextButton = addButton(mxUtils.bind(this, function()
- {
- this.selectPage(this.currentPage + 1);
- }), Editor.chevronRightImage, mxResources.get('nextPage') || 'Next Page');
-
- nextButton.style.paddingLeft = '0px';
- nextButton.style.paddingRight = '0px';
-
- var update = mxUtils.bind(this, function()
- {
- pageInfo.innerText = '';
- mxUtils.write(pageInfo, (this.currentPage + 1) + ' / ' + this.diagrams.length);
- pageInfo.style.display = (this.diagrams.length > 1) ? 'inline-flex' : 'none';
- prevButton.style.display = pageInfo.style.display;
- nextButton.style.display = pageInfo.style.display;
- });
-
- // LATER: Add event for setGraphXml
- this.addListener('graphChanged', update);
- update();
- }
- else if (token == 'zoom')
- {
- if (this.zoomEnabled)
- {
- addButton(mxUtils.bind(this, function()
- {
- this.graph.zoomOut();
- }), Editor.zoomOutImage, mxResources.get('zoomOut') || 'Zoom Out');
-
- addButton(mxUtils.bind(this, function()
- {
- this.graph.zoomIn();
- }), Editor.zoomInImage, mxResources.get('zoomIn') || 'Zoom In');
-
- addButton(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 (token == 'layers')
- {
- if (this.layersEnabled)
- {
- var layersButton = addButton(mxUtils.bind(this, function(evt)
- {
- if (layersDialog != null)
- {
- layersDialog.parentNode.removeChild(layersDialog);
- layersDialog = null;
- }
- else
- {
- layersDialog = this.graph.createLayersDialog(mxUtils.bind(this, function()
- {
- if (this.autoCrop)
- {
- this.crop();
- }
- else if (this.autoOrigin)
- {
- var bounds = this.graph.getGraphBounds();
- var v = this.graph.view;
-
- if (bounds.x < 0 || bounds.y < 0)
- {
- this.crop();
- this.graph.originalViewState = this.graph.initialViewState;
-
- this.graph.initialViewState = {
- translate: v.translate.clone(),
- scale: v.scale
- };
- }
- else if (this.graph.originalViewState != null &&
- bounds.x / v.scale + this.graph.originalViewState.translate.x - v.translate.x > 0 &&
- bounds.y / v.scale + this.graph.originalViewState.translate.y - v.translate.y > 0)
- {
- v.setTranslate(this.graph.originalViewState.translate.x,
- this.graph.originalViewState.translate.y);
- this.graph.originalViewState = null;
-
- this.graph.initialViewState = {
- translate: v.translate.clone(),
- scale: v.scale
- };
- }
- }
- }));
-
- mxEvent.addListener(layersDialog, 'mouseleave', function()
- {
- layersDialog.parentNode.removeChild(layersDialog);
- layersDialog = null;
- });
-
- var r = layersButton.getBoundingClientRect();
-
- layersDialog.style.width = '140px';
- layersDialog.style.padding = '2px 0px 2px 0px';
- layersDialog.style.border = '1px solid #d0d0d0';
- layersDialog.style.backgroundColor = '#eee';
- layersDialog.style.fontFamily = GraphViewer.cssFontFamily;
- layersDialog.style.fontSize = '11px';
- layersDialog.style.overflowY = 'auto';
- layersDialog.style.maxHeight = (this.graph.container.clientHeight - this.toolbarHeight - 10) + 'px'
- layersDialog.style.zIndex = this.toolbarZIndex + 1;
- layersDialog.style.color = '#000';
- mxUtils.setOpacity(layersDialog, 85);
- var origin = mxUtils.getDocumentScrollOrigin(document);
- layersDialog.style.left = origin.x + r.left - 1 + 'px';
- layersDialog.style.top = origin.y + r.bottom - 2 + 'px';
-
- if (this.isDarkMode())
- {
- layersDialog.style.filter = 'invert(93%) hue-rotate(180deg)';
- }
-
- document.body.appendChild(layersDialog);
- }
- }), Editor.layersImage, mxResources.get('layers') || 'Layers');
-
- model.addListener(mxEvent.CHANGE, function()
- {
- layersButton.style.display = (model.getChildCount(model.root) > 1) ? 'inline-flex' : 'none';
- });
-
- layersButton.style.display = (model.getChildCount(model.root) > 1) ? 'inline-flex' : 'none';
- }
- }
- else if (token == 'tags')
- {
- if (this.tagsEnabled)
- {
- var tagsButton = addButton(mxUtils.bind(this, function(evt)
- {
- if (tagsComponent == null)
- {
- tagsComponent = this.graph.createTagsDialog(mxUtils.bind(this, function()
- {
- return true;
- }));
-
- this.graph.addListener(mxEvent.REFRESH, mxUtils.bind(this, function()
- {
- if (this.autoCrop)
- {
- this.crop();
- }
- else if (this.autoOrigin)
- {
- var bounds = this.graph.getGraphBounds();
- var v = this.graph.view;
-
- if (bounds.x < 0 || bounds.y < 0)
- {
- this.crop();
- this.graph.originalViewState = this.graph.initialViewState;
-
- this.graph.initialViewState = {
- translate: v.translate.clone(),
- scale: v.scale
- };
- }
- else if (this.graph.originalViewState != null &&
- bounds.x / v.scale + this.graph.originalViewState.translate.x - v.translate.x > 0 &&
- bounds.y / v.scale + this.graph.originalViewState.translate.y - v.translate.y > 0)
- {
- v.setTranslate(this.graph.originalViewState.translate.x,
- this.graph.originalViewState.translate.y);
- this.graph.originalViewState = null;
-
- this.graph.initialViewState = {
- translate: v.translate.clone(),
- scale: v.scale
- };
- }
- }
- }));
-
- tagsComponent.div.getElementsByTagName('div')[0].style.position = '';
- tagsComponent.div.style.maxHeight = '160px';
- tagsComponent.div.style.maxWidth = '120px';
- tagsComponent.div.style.padding = '2px';
- tagsComponent.div.style.overflow = 'auto';
- tagsComponent.div.style.height = 'auto';
- tagsComponent.div.style.position = 'fixed';
- tagsComponent.div.style.fontFamily = GraphViewer.cssFontFamily;
- tagsComponent.div.style.fontSize = '11px';
- tagsComponent.div.style.backgroundColor = '#eee';
- tagsComponent.div.style.color = '#000';
- tagsComponent.div.style.border = '1px solid #d0d0d0';
- tagsComponent.div.style.zIndex = this.toolbarZIndex + 1;
-
- if (this.isDarkMode())
- {
- tagsComponent.div.style.filter = 'invert(93%) hue-rotate(180deg)';
- }
-
- mxUtils.setOpacity(tagsComponent.div, 85);
- }
-
- if (tagsDialog != null)
- {
- tagsDialog.parentNode.removeChild(tagsDialog);
- tagsDialog = null;
- }
- else
- {
- tagsDialog = tagsComponent.div;
- tagsDialog.style.position = 'absolute';
-
- mxEvent.addListener(tagsDialog, 'mouseleave', function()
- {
- if (tagsDialog != null)
- {
- tagsDialog.parentNode.removeChild(tagsDialog);
- tagsDialog = null;
- }
- });
-
- var r = tagsButton.getBoundingClientRect();
- var origin = mxUtils.getDocumentScrollOrigin(document);
- tagsDialog.style.left = origin.x + r.left - 1 + 'px';
- tagsDialog.style.top = origin.y + r.bottom - 2 + 'px';
- document.body.appendChild(tagsDialog);
- tagsComponent.refresh();
- }
- }), Editor.tagsImage, mxResources.get('tags') || 'Tags');
-
- model.addListener(mxEvent.CHANGE, mxUtils.bind(this, function()
- {
- tagsButton.style.display = (this.graph.getAllTags().length > 0) ? 'inline-flex' : 'none';
-
- if (tagsDialog != null && this.graph.getAllTags().length == 0)
- {
- tagsDialog.parentNode.removeChild(tagsDialog);
- tagsDialog = null;
- }
- }));
-
- tagsButton.style.display = (this.graph.getAllTags().length > 0) ? 'inline-flex' : 'none';
- }
- }
- else if (token == 'lightbox')
- {
- if (this.lightboxEnabled)
- {
- addButton(mxUtils.bind(this, function()
- {
- try
- {
- this.showLightbox();
- }
- catch (e)
- {
- alert(e.message);
- }
- }), Editor.fullscreenImage, (mxResources.get('fullscreen') || 'Fullscreen'));
- }
- }
- else if (this.graphConfig['toolbar-buttons'] != null)
- {
- var def = this.graphConfig['toolbar-buttons'][token];
-
- if (def != null)
- {
- def.elem = addButton((def.enabled == null || def.enabled) ? def.handler : function() {},
- def.image, def.title, def.enabled);
- }
- }
- }
-
- if (this.graph.minimumContainerSize != null)
- {
- this.graph.minimumContainerSize.width = buttonCount * 34;
- }
-
- if (this.graphConfig.title != null)
- {
- var filename = container.ownerDocument.createElement('div');
- filename.style.display = 'inline-flex';
- filename.style.position = 'relative';
- filename.style.alignItems = 'center';
- filename.style.padding = '6px';
- filename.style.fontFamily = GraphViewer.cssFontFamily;
- filename.style.fontSize = '12px';
- filename.style.cursor = 'default';
- filename.style.color = 'light-dark(#000000, #ffffff)';
- filename.setAttribute('title', this.graphConfig.titleTooltip || this.graphConfig.title);
- mxUtils.write(filename, this.graphConfig.title);
- mxUtils.setOpacity(filename, 70);
-
- toolbar.appendChild(filename);
- this.filename = filename;
- }
-
- this.minToolbarWidth = buttonCount * 34;
- var prevBorder = container.style.border;
-
- var enter = mxUtils.bind(this, function()
- {
- toolbar.style.width = (this.graphConfig['toolbar-position'] == 'inline') ? 'auto' :
- Math.max(this.minToolbarWidth, container.offsetWidth) + 'px';
- toolbar.style.border = '1px solid #d0d0d0';
-
- if (this.graphConfig['toolbar-nohide'] != true)
- {
- var r = container.getBoundingClientRect();
-
- // Workaround for position:relative set in ResizeSensor
- var origin = mxUtils.getScrollOrigin(document.body)
- var b = (document.body.style.position === 'relative') ?
- document.body.getBoundingClientRect() :
- {left: -origin.x, top: -origin.y};
- r = {left: r.left - b.left, top: r.top - b.top,
- bottom: r.bottom - b.top, right: r.right - b.left};
-
- toolbar.style.left = r.left + 'px';
-
- if (this.graphConfig['toolbar-position'] == 'bottom')
- {
- toolbar.style.top = r.bottom - 1 + 'px';
- }
- else
- {
- if (this.graphConfig['toolbar-position'] != 'inline')
- {
- toolbar.style.marginTop = -this.toolbarHeight + 'px';
- toolbar.style.top = r.top + 1 + 'px';
- }
- else
- {
- toolbar.style.top = r.top + 'px';
- }
- }
-
- if (prevBorder == '1px solid transparent')
- {
- container.style.border = '1px solid #d0d0d0';
- }
-
- document.body.appendChild(toolbar);
-
- var hideToolbar = mxUtils.bind(this, function()
- {
- if (toolbar.parentNode != null)
- {
- toolbar.parentNode.removeChild(toolbar);
- }
-
- if (tagsDialog != null)
- {
- tagsDialog.parentNode.removeChild(tagsDialog);
- tagsDialog = null;
- }
-
- if (layersDialog != null)
- {
- layersDialog.parentNode.removeChild(layersDialog);
- layersDialog = null;
- }
-
- container.style.border = prevBorder;
- });
-
- mxEvent.addListener(document, 'mousemove', function(evt)
- {
- var source = mxEvent.getSource(evt);
-
- while (source != null)
- {
- if (source == container ||
- source == toolbar ||
- source == layersDialog ||
- source == tagsDialog)
- {
- return;
- }
-
- source = source.parentNode;
- }
-
- hideToolbar();
- });
-
- mxEvent.addListener(document.body, 'mouseleave', function(evt)
- {
- hideToolbar();
- });
- }
- else
- {
- toolbar.style.top = -this.toolbarHeight + 'px';
- container.appendChild(toolbar);
- }
- });
-
- if (this.graphConfig['toolbar-nohide'] != true)
- {
- mxEvent.addListener(container, 'mouseenter', enter);
- }
- else
- {
- enter();
- }
-
- if (this.responsive && typeof ResizeObserver !== 'undefined')
- {
- new ResizeObserver(function()
- {
- if (toolbar.parentNode != null)
- {
- enter();
- }
- }).observe(container)
- }
-};
-
-/**
- *
- */
-GraphViewer.prototype.createToolbarButton = function(fn, imgSrc, tip, enabled)
-{
- var a = document.createElement('div');
- a.style.borderRight = '1px solid #d0d0d0';
- a.style.display = 'inline-flex';
- a.style.alignItems = 'center';
- a.style.padding = '6px';
-
- mxEvent.addListener(a, 'click', fn);
-
- if (tip != null)
- {
- a.setAttribute('title', tip);
- }
-
- var img = document.createElement('img');
- img.setAttribute('border', '0');
- img.setAttribute('src', imgSrc);
- img.style.width = '18px';
- img.className = 'geAdaptiveAsset';
-
- if (enabled == null || enabled)
- {
- mxEvent.addListener(a, 'mouseenter', function()
- {
- a.style.backgroundColor = 'light-dark(#dddddd,#333333)';
- });
-
- mxEvent.addListener(a, 'mouseleave', function()
- {
- a.style.backgroundColor = 'transparent';
- });
-
- mxUtils.setOpacity(img, 60);
- a.style.cursor = 'pointer';
- }
- else
- {
- mxUtils.setOpacity(a, 30);
- }
-
- a.appendChild(img);
-
- return a;
-};
-
-GraphViewer.prototype.disableButton = function(token, tooltip)
-{
- var def = this.graphConfig['toolbar-buttons']? this.graphConfig['toolbar-buttons'][token] : null;
-
- if (def != null)
- {
- mxUtils.setOpacity(def.elem, 30);
- mxEvent.removeListener(def.elem, 'click', def.handler);
- //Workaround to stop highlighting the disabled button
- mxEvent.addListener(def.elem, 'mouseenter', function()
- {
- def.elem.style.backgroundColor = '#eee';
- });
-
- if (tooltip)
- {
- def.elem.setAttribute('title', tooltip);
- }
- }
-};
-
-/**
- * Adds event handler for links and lightbox.
- */
-GraphViewer.prototype.addClickHandler = function(graph, ui)
-{
- graph.linkPolicy = this.graphConfig.target || graph.linkPolicy;
-
- graph.addClickHandler(this.graphConfig.highlight, mxUtils.bind(this, function(evt, href, associatedCell)
- {
- if (href == null)
- {
- var source = mxEvent.getSource(evt);
-
- while (source != graph.container && source != null && href == null)
- {
- if (source.nodeName.toLowerCase() == 'a')
- {
- href = source.getAttribute('href');
- }
-
- source = source.parentNode;
- }
- }
-
- if (ui != null)
- {
- if (href == null || graph.isCustomLink(href))
- {
- mxEvent.consume(evt);
- }
- else if (!graph.isExternalProtocol(href) &&
- !graph.isBlankLink(href))
- {
- // Hides lightbox if any links are clicked
- // Async handling needed for anchors to work
- window.setTimeout(function()
- {
- ui.destroy();
- }, 0);
- }
- }
- else if (href != null && ui == null && graph.isCustomLink(href) &&
- (mxEvent.isTouchEvent(evt) || !mxEvent.isPopupTrigger(evt)) &&
- graph.customLinkClicked(href, associatedCell))
- {
- // Workaround for text selection in Firefox on Windows
- mxUtils.clearSelection();
- mxEvent.consume(evt);
- }
- }), mxUtils.bind(this, function(evt)
- {
- if (ui == null && this.lightboxClickEnabled &&
- (!mxEvent.isTouchEvent(evt) ||
- this.toolbarItems.length == 0))
- {
- try
- {
- this.showLightbox();
- }
- catch (e)
- {
- alert(e.message);
- }
- }
- }));
-};
-
-/**
- * Adds the given array of stencils to avoid dynamic loading of shapes.
- */
-GraphViewer.prototype.showLightbox = function(editable, closable, target)
-{
- if (this.graphConfig.lightbox == 'open' || window.self !== window.top)
- {
- if (this.lightboxWindow != null && !this.lightboxWindow.closed)
- {
- this.lightboxWindow.focus();
- }
- else
- {
- editable = (editable != null) ? editable :
- ((this.graphConfig.editable != null) ?
- this.graphConfig.editable : true);
- closable = (closable != null) ? closable : true;
- target = (target != null) ? target : 'blank';
-
- var param = {'client': 1, 'target': target};
-
- if (editable)
- {
- param.edit = this.graphConfig.edit || '_blank';
- }
-
- if (closable)
- {
- param.close = 1;
- }
-
- if (this.layersEnabled)
- {
- param.layers = 1;
- }
-
- if (this.tagsEnabled)
- {
- // Saves current page's hidden tags before passing to lightbox
- var curPageId = this.diagrams[this.currentPage].getAttribute('id');
-
- if (this.graphConfig.hiddenTags == null)
- {
- this.graphConfig.hiddenTags = {};
- }
-
- this.graphConfig.hiddenTags[curPageId] =
- (this.graph.hiddenTags.length > 0) ? this.graph.hiddenTags.slice() : null;
- param.tags = this.graphConfig.hiddenTags;
- }
-
- if (this.graphConfig != null && this.graphConfig.nav != false)
- {
- param.nav = 1;
- }
-
- if (this.graphConfig != null && this.graphConfig.highlight != null)
- {
- param.highlight = this.graphConfig.highlight.substring(1);
- }
-
- if (this.currentPage != null && this.currentPage > 0)
- {
- param.page = this.currentPage;
- }
-
- if (typeof window.postMessage !== 'undefined' && (document.documentMode == null || document.documentMode >= 10))
- {
- if (this.lightboxWindow == null)
- {
- mxEvent.addListener(window, 'message', mxUtils.bind(this, function(evt)
- {
- if (evt.data == 'ready' && evt.source == this.lightboxWindow)
- {
- this.lightboxWindow.postMessage(this.xml, '*');
- }
- }));
- }
- }
- else
- {
- // Data is pulled from global variable after tab loads
- param.data = encodeURIComponent(this.xml);
- }
-
- if (urlParams['dev'] == '1')
- {
- param.dev = '1';
- }
-
- this.lightboxWindow = window.open(((urlParams['dev'] != '1') ?
- EditorUi.lightboxHost : 'https://test.draw.io') +
- '/#P' + encodeURIComponent(JSON.stringify(param)));
- }
- }
- else
- {
- this.showLocalLightbox();
- }
-};
-
-/**
- * Adds the given array of stencils to avoid dynamic loading of shapes.
- */
-GraphViewer.prototype.showLocalLightbox = function(container)
-{
- var backdrop = document.createElement('div');
- backdrop.style.position = 'fixed';
- backdrop.style.top = '0';
- backdrop.style.left = '0';
- backdrop.style.bottom = '0';
- backdrop.style.right = '0';
- backdrop.style.zIndex = this.lightboxZIndex;
- backdrop.style.backgroundColor = '#000000';
- mxUtils.setOpacity(backdrop, 70);
-
- document.body.appendChild(backdrop);
-
- var closeImg = document.createElement('img');
- closeImg.setAttribute('border', '0');
- closeImg.setAttribute('src', Editor.closeBlackImage);
- closeImg.style.position = 'fixed';
- closeImg.style.top = '32px';
- closeImg.style.right = '32px';
- closeImg.style.cursor = 'pointer';
- closeImg.className = 'geAdaptiveAsset';
-
- var updateDarkMode = mxUtils.bind(this, function()
- {
- ui.setDarkMode(this.isDarkMode());
- });
-
- mxEvent.addListener(closeImg, 'click', mxUtils.bind(this, function()
- {
- this.removeListener('darkModeChanged', updateDarkMode);
- ui.destroy();
- }));
-
- // LATER: Make possible to assign after instance was created
- urlParams['pages'] = '1';
- urlParams['page'] = this.currentPage;
- urlParams['page-id'] = this.graphConfig.pageId;
- urlParams['layer-ids'] = (this.graphConfig.layerIds != null && this.graphConfig.layerIds.length > 0)
- ? this.graphConfig.layerIds.join(' ') : null;
- urlParams['nav'] = (this.graphConfig.nav != false) ? '1' : '0';
- urlParams['layers'] = (this.layersEnabled) ? '1' : '0';
- urlParams['dark'] = (this.isDarkMode()) ? '1' : '0';
-
- if (this.tagsEnabled)
- {
- // Saves current page's hidden tags before passing to lightbox
- var curPageId = this.diagrams[this.currentPage].getAttribute('id');
-
- if (this.graphConfig.hiddenTags == null)
- {
- this.graphConfig.hiddenTags = {};
- }
-
- this.graphConfig.hiddenTags[curPageId] =
- (this.graph.hiddenTags.length > 0) ? this.graph.hiddenTags.slice() : null;
- urlParams['tags'] = JSON.stringify(this.graphConfig.hiddenTags);
- }
-
- if (container != null)
- {
- try
- {
- var toolbarConfig = JSON.parse(decodeURIComponent(urlParams['toolbar-config'] || '{}'));
- toolbarConfig.noCloseBtn = true;
- urlParams['toolbar-config'] = encodeURIComponent(JSON.stringify(toolbarConfig));
- }
- catch (e) {}
- }
-
- // PostMessage not working and Permission denied for opened access in IE9-
- if (document.documentMode == null || document.documentMode >= 10)
- {
- Editor.prototype.editButtonLink = this.graphConfig.edit;
- Editor.prototype.editButtonFunc = this.graphConfig.editFunc;
- }
-
- EditorUi.prototype.updateActionStates = function() {};
- EditorUi.prototype.addBeforeUnloadListener = function() {};
- EditorUi.prototype.addChromelessClickHandler = function() {};
-
- var ui = new EditorUi(new Editor(true), document.createElement('div'), true);
- this.addListener('darkModeChanged', updateDarkMode);
- ui.editor.editBlankUrl = this.editBlankUrl;
-
- // Disables refresh
- ui.refresh = function() {};
-
- // Handles escape keystroke
- var keydownHandler = mxUtils.bind(this, function(evt)
- {
- if (evt.keyCode == 27 /* Escape */)
- {
- ui.destroy();
- }
- });
-
- var overflow = this.initialOverflow;
- var destroy = ui.destroy;
-
- ui.destroy = function()
- {
- if (container == null)
- {
- mxEvent.removeListener(document.documentElement, 'keydown', keydownHandler);
- document.body.removeChild(backdrop);
- document.body.removeChild(closeImg);
- document.body.style.overflow = overflow;
- GraphViewer.resizeSensorEnabled = true;
-
- destroy.apply(this, arguments);
- }
- };
-
- var graph = ui.editor.graph;
- var lightbox = graph.container;
- lightbox.style.overflow = 'hidden';
- lightbox.style.inset = '0';
-
- if (this.lightboxChrome && container == null)
- {
- lightbox.style.border = '1px solid #c0c0c0';
- lightbox.style.margin = '40px';
-
- // Installs the keystroke listener in the target
- mxEvent.addListener(document.documentElement, 'keydown', keydownHandler);
- }
- else
- {
- backdrop.style.display = 'none';
- closeImg.style.display = 'none';
- }
-
- // Handles relative images
- var self = this;
-
- graph.getImageFromBundles = function(key)
- {
- return self.getImageUrl(key);
- };
-
- // Handles relative images in print output and temporary graphs
- var uiCreateTemporaryGraph = ui.createTemporaryGraph;
-
- ui.createTemporaryGraph = function()
- {
- var newGraph = uiCreateTemporaryGraph.apply(this, arguments);
-
- newGraph.getImageFromBundles = function(key)
- {
- return self.getImageUrl(key);
- };
-
- return newGraph;
- };
-
- if (this.graphConfig.move)
- {
- graph.isMoveCellsEvent = function(evt)
- {
- return true;
- };
- }
-
- mxUtils.setPrefixedStyle(lightbox.style, 'border-radius', '4px');
- lightbox.style.position = 'fixed';
-
- GraphViewer.resizeSensorEnabled = false;
- document.body.style.overflow = 'hidden';
- this.addClickHandler(graph, ui);
-
- window.setTimeout(mxUtils.bind(this, function()
- {
- try
- {
- // Click on backdrop closes lightbox
- mxEvent.addListener(backdrop, 'click', function()
- {
- ui.destroy();
- });
-
- // Disables focus border in Chrome
- lightbox.style.outline = 'none';
- lightbox.style.zIndex = this.lightboxZIndex;
- closeImg.style.zIndex = this.lightboxZIndex;
-
- if (container != null)
- {
- container.innerHTML = '';
- container.appendChild(lightbox);
- }
- else
- {
- document.body.appendChild(lightbox);
- document.body.appendChild(closeImg);
- }
-
- ui.setFileData(this.xml);
-
- // Applies initial hidden tags for the current page before
- // lightboxFit so that the view fits the visible cells
- if (this.tagsEnabled && this.graphConfig.hiddenTags != null &&
- ui.currentPage != null)
- {
- var pageId = ui.currentPage.getId();
- var pageTags = this.graphConfig.hiddenTags[pageId];
- graph.hiddenTags = (pageTags != null && pageTags.length > 0) ? pageTags : [];
- graph.refresh();
- }
-
- mxUtils.setPrefixedStyle(lightbox.style, 'transform', 'rotateY(0deg)');
- ui.chromelessToolbar.style.bottom = 60 + 'px';
- ui.chromelessToolbar.style.zIndex = this.lightboxZIndex;
-
- // Workaround for clipping in IE11-
- (container || document.body).appendChild(ui.chromelessToolbar);
-
- ui.getEditBlankXml = mxUtils.bind(this, function()
- {
- return this.xml;
- });
-
- this.showLayers(graph, this.graph);
- ui.lightboxFit();
- ui.chromelessResize();
- }
- catch (e)
- {
- ui.handleError(e, null, function()
- {
- ui.destroy();
- });
- }
- }), 0);
-
- return ui;
-};
-
-/**
- * Removes the dialog from the DOM.
- */
-Dialog.prototype.getDocumentSize = function()
-{
- var vw = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0)
- var vh = Math.max(document.documentElement.clientHeight || 0, window.innerHeight || 0)
-
- return new mxRectangle(0, 0, vw, vh);
-};
-
-/**
- *
- */
-GraphViewer.prototype.updateTitle = function(title, titleTooltip)
-{
- title = title || '';
-
- if (this.showTitleAsTooltip && this.graph != null && this.graph.container != null)
- {
- this.graph.container.setAttribute('title', titleTooltip || title);
- }
-
- if (this.filename != null)
- {
- this.filename.innerText = '';
- mxUtils.write(this.filename, title);
- this.filename.setAttribute('title', titleTooltip || title);
- }
-};
-
-/**
- *
- */
-GraphViewer.processElements = function(classname)
-{
- mxUtils.forEach(GraphViewer.getElementsByClassName(classname || 'mxgraph'), function(div)
- {
- try
- {
- div.innerText = '';
- GraphViewer.createViewerForElement(div);
- }
- catch (e)
- {
- div.innerText = e.message;
-
- if (window.console != null)
- {
- console.error(e);
- }
- }
- });
-};
-
-/**
- * Adds the given array of stencils to avoid dynamic loading of shapes.
- */
-GraphViewer.getElementsByClassName = function(classname)
-{
- if (document.getElementsByClassName)
- {
- var divs = document.getElementsByClassName(classname);
-
- // Workaround for changing divs while processing
- var result = [];
-
- for (var i = 0; i < divs.length; i++)
- {
- result.push(divs[i]);
- }
-
- return result;
- }
- else
- {
- var tmp = document.getElementsByTagName('*');
- var divs = [];
-
- for (var i = 0; i < tmp.length; i++)
- {
- var cls = tmp[i].className;
-
- if (cls != null && cls.length > 0)
- {
- var tokens = cls.split(' ');
-
- if (mxUtils.indexOf(tokens, classname) >= 0)
- {
- divs.push(tmp[i]);
- }
- }
- }
-
- return divs;
- }
-};
-
-/**
- * Adds the given array of stencils to avoid dynamic loading of shapes.
- */
-GraphViewer.createViewerForElement = function(element, callback)
-{
- var data = element.getAttribute('data-mxgraph');
-
- if (data != null)
- {
- var config = JSON.parse(data);
-
- var createViewer = function(xml)
- {
- var xmlDoc = mxUtils.parseXml(xml);
- var viewer = new GraphViewer(element, xmlDoc.documentElement, config);
-
- if (callback != null)
- {
- callback(viewer);
- }
- };
-
- if (config.url != null)
- {
- GraphViewer.getUrl(config.url, function(xml)
- {
- createViewer(xml);
- });
- }
- else
- {
- createViewer(config.xml);
- }
- }
-};
-
-/**
- *
- */
-GraphViewer.blockedAncestorFrames = function()
-{
- try
- {
- if (window.location.ancestorOrigins && window.location.hostname &&
- window.location.ancestorOrigins.length && window.location.ancestorOrigins.length > 0)
- {
- var hostname = window.location.hostname;
-
- if (hostname && hostname.length > 1 && hostname.charAt(hostname.length - 1) == '/')
- {
- hostname = hostname.substring(0, hostname.length - 1)
- }
-
- var message = '';
-
- for (var i = 0; i < window.location.ancestorOrigins.length; i++)
- {
- message += ' -> ' + window.location.ancestorOrigins[i];
-
- // Running commercial, competing services using our infrastructure isn't allowed.
- if (message.endsWith('dan6v7pm1f1a1.cloudfront.net') || message.endsWith('confluence-cloud-excalidraw-ll3likebca-uc.a.run.app'))
- {
- return true;
- }
- }
-
- if ((hostname.endsWith('ac.draw.io') || hostname.endsWith('aj.draw.io')) && window.location.ancestorOrigins.length == 1 &&
- window.location.ancestorOrigins[0] && window.location.ancestorOrigins[0].endsWith('.atlassian.net'))
- {
- // do not log *.draw.io domains embedded directly into atlassian.net
- }
- // else if (window.location.ancestorOrigins.length > 0)
- // {
- // var img = new Image();
- // img.src = 'https://log.diagrams.net/images/1x1.png?src=ViewerAncestorFrames' +
- // ((typeof window.EditorUi !== 'undefined') ? '&v=' + encodeURIComponent(EditorUi.VERSION) : '') +
- // '&data=' + encodeURIComponent(message);
- // }
- }
- }
- catch (e)
- {
- // ignore
- }
-
- return false;
-};
-
-/**
- * Default dark background color.
- */
-GraphViewer.darkBackgroundColor = Editor.darkColor;
-
-/**
- * Default CSS font family.
- */
-GraphViewer.cssFontFamily = Editor.defaultHtmlFont;
-
-/**
- * Dark Colors
- */
-GraphViewer.shapeBackgroundColor = null;
-
-/**
- * Invoked when the given viewer was initialized.
- */
-GraphViewer.viewerInitialized = function(graphViewer)
-{
- // Hook for subclassers
-};
-
-/**
- * Adds event if grid size is changed.
- */
-GraphViewer.initCss = function()
-{
- try
- {
- if (GraphViewer.styleElement == null)
- {
- GraphViewer.styleElement = document.createElement('style')
- GraphViewer.styleElement.setAttribute('type', 'text/css');
- GraphViewer.styleElement.innerHTML = GraphViewer.getCss();
-
- if (!GraphViewer.blockedAncestorFrames())
- {
- document.getElementsByTagName('head')[0].appendChild(GraphViewer.styleElement);
- }
- }
- }
- catch (e)
- {
- // ignore
- }
-};
-
-/**
- * Redirects editing to absolue URLs.
- */
-GraphViewer.getCss = function()
-{
- return [
- '.geDarkMode img {',
- ' filter: invert(1);',
- '}',
- 'div.mxTooltip {',
- ' box-shadow: 3px 3px 12px light-dark(#c0c0c0, transparent);',
- ' background: light-dark(#ffffcc, ' + GraphViewer.darkBackgroundColor + ');',
- ' border-style: solid;',
- ' border-width: 1px;',
- ' border-color: black;',
- ' font-family: ' + GraphViewer.cssFontFamily + ';',
- ' font-size: 8pt;',
- ' position: absolute;',
- ' cursor: default;',
- ' padding: 4px;',
- ' color: black;',
- '}',
- 'td.mxPopupMenuIcon div {',
- ' width: 16px;',
- ' height: 16px;',
- '}',
- 'div.mxPopupMenu {',
- ' box-shadow: 2px 2px 3px light-dark(#d5d5d5, transparent);',
- ' background: white;',
- ' position: absolute;',
- ' border: 3px solid #e7e7e7;',
- ' padding: 3px;',
- '}',
- 'table.mxPopupMenu {',
- ' border-collapse: collapse;',
- ' margin: 0px;',
- '}',
- 'td.mxPopupMenuItem {',
- ' padding: 7px 30px;',
- ' font-family: ' + GraphViewer.cssFontFamily + ';',
- ' font-size: 10pt;',
- '}',
- 'td.mxPopupMenuIcon {',
- ' background-color: light-dark(#ffffff, ' + GraphViewer.darkBackgroundColor + ');',
- ' padding: 0px;',
- '}',
- 'tr.mxPopupMenuItemHover {',
- ' background-color: #eeeeee;',
- ' color: black;',
- '}',
- 'table.mxPopupMenu hr {',
- ' color: #cccccc;',
- ' background-color: #cccccc;',
- ' border: none;',
- ' height: 1px;',
- '}',
- 'table.mxPopupMenu tr {',
- ' font-size: 4pt;',
- '}',
- // Modified to only apply to the print dialog
- '.geDialog, .geDialog table {',
- ' font-family: ' + GraphViewer.cssFontFamily + ';',
- ' font-size: 10pt;',
- ' border: none;',
- ' margin: 0px;',
- '}',
- // These are required for the print dialog
- '.geDialog {',
- ' position: fixed;',
- ' background: light-dark(#ffffff, ' + GraphViewer.darkBackgroundColor + ');',
- ' color: light-dark(#3f3f3f, #c0c0c0);',
- ' box-shadow: 0px 0px 2px 2px light-dark(#d5d5d5, transparent);',
- ' border: 1px solid light-dark(#dadada, #565656);',
- ' overflow: hidden;',
- ' padding: 30px;',
- ' left: 50%;',
- ' top: 50%;',
- ' max-height: 100%;',
- ' max-width: 100%;',
- ' box-sizing: border-box;',
- ' transform: translate(-50%, -50%);',
- ' z-index: ' + (GraphViewer.prototype.lightboxZIndex + 2) + ';',
- '}',
- '.geBackground {',
- ' background-color: light-dark(#ffffff, ' + GraphViewer.darkBackgroundColor + ');',
- ' position: fixed;',
- ' left: 0px;',
- ' top: 0px;',
- ' right: 0px;',
- ' bottom: 0px;',
- ' opacity: 0.9;',
- ' z-index: ' + (GraphViewer.prototype.lightboxZIndex + 1) + ';',
- '}',
- '.geDialogTitle {',
- ' box-sizing: border-box;',
- ' white-space: nowrap;',
- ' background: light-dark(#f1f3f4, ' + GraphViewer.darkBackgroundColor + ');',
- ' border-bottom: 1px solid rgb(192, 192, 192);',
- ' font-size: 15px;',
- ' font-weight: bold;',
- ' text-align: center;',
- ' color: rgb(35, 86, 149);',
- '}',
- '.geDialogFooter {',
- ' background: light-dark(#f1f3f4, ' + GraphViewer.darkBackgroundColor + ');',
- ' white-space: nowrap;',
- ' text-align: right;',
- ' box-sizing: border-box;',
- ' border-top: 1px solid #e5e5e5;',
- ' color: darkGray;',
- '}',
- '.geHelpIcon {',
- ' width: 16px;',
- ' margin: 0 4px;',
- ' vertical-align: text-bottom;',
- '}',
- '.geBtn, .mxWindow .geBtn {',
- ' background-color: light-dark(#eeeeee, #1b1d1e);',
- ' border: 1px solid light-dark(#d8d8d8, #333333);',
- ' color: light-dark(#3f3f3f, #c0c0c0);',
- ' font-size: 13px;',
- ' font-weight: 500;',
- ' border-radius: 4px;',
- ' height: 30px;',
- ' margin: 0 0 0 8px;',
- ' min-width: 72px;',
- ' outline: 0;',
- ' padding: 0 8px;',
- ' text-overflow: ellipsis;',
- ' white-space: nowrap;',
- ' overflow: hidden;',
- '}',
- '.geBtn:hover:not(.gePrimaryBtn), .geBtn:focus {',
- ' border: 1px solid light-dark(#c6c6c6, #333333);',
- ' background: light-dark(#dadada, #333333);',
- '}',
- '.geBtn:disabled {',
- ' opacity: .5;',
- '}',
- '.gePrimaryBtn {',
- ' background: linear-gradient(light-dark(#4d90fe, #003555) 0px, light-dark(#4787ed, #003555) 100%);',
- ' border: 1px solid light-dark(#3079ed, transparent);',
- ' color: light-dark(#ffffff, #c0c0c0);',
- '}',
- '.gePrimaryBtn:hover:not([disabled]) {',
- ' background: linear-gradient(light-dark(#4d90fe, #004a77) 0px, light-dark(#357ae8, #004a77) 100%);',
- ' border: 1px solid light-dark(#2f5bb7, transparent);',
- '}',
- '.geBtn:disabled {',
- ' opacity: .5;',
- '}'
- ].join('\n');
-};
-
-/**
- * Lookup for URLs.
- */
-GraphViewer.cachedUrls = {};
-
-/**
- * Workaround for unsupported CORS in IE9 XHR
- */
-GraphViewer.getUrl = function(url, onload, onerror)
-{
- if (GraphViewer.cachedUrls[url] != null)
- {
- onload(GraphViewer.cachedUrls[url]);
- }
- else
- {
- var xhr = (navigator.userAgent != null && navigator.userAgent.indexOf('MSIE 9') > 0) ?
- new XDomainRequest() : new XMLHttpRequest();
- xhr.open('GET', url);
-
- xhr.onload = function()
- {
- onload((xhr.getText != null) ? xhr.getText() : xhr.responseText);
- };
-
- xhr.onerror = onerror;
- xhr.send();
- }
-};
-
-/**
- * Redirects editing to absolue URLs.
- */
-GraphViewer.resizeSensorEnabled = true;
-
-/**
- * Specifies if ResizeObserver should be used instead of ResizeSensor.
- * Default is true.
- */
-GraphViewer.useResizeObserver = true;
-
-/**
- * Redirects editing to absolue URLs.
- */
-GraphViewer.useResizeSensor = true;
-
-/**
- * Copyright Marc J. Schmidt. See the LICENSE file at the top-level
- * directory of this distribution and at
- * https://github.com/marcj/css-element-queries/blob/master/LICENSE.
- */
-(function() {
-
- // Only used for the dirty checking, so the event callback count is limted to max 1 call per fps per sensor.
- // In combination with the event based resize sensor this saves cpu time, because the sensor is too fast and
- // would generate too many unnecessary events.
- var requestAnimationFrame = window.requestAnimationFrame ||
- window.mozRequestAnimationFrame ||
- window.webkitRequestAnimationFrame ||
- function (fn) {
- return window.setTimeout(fn, 20);
- };
-
- /**
- * Class for dimension change detection.
- *
- * @param {Element|Element[]|Elements|jQuery} element
- * @param {Function} callback
- *
- * @constructor
- */
- var ResizeSensor = function(element, fn) {
-
- var callback = function()
- {
- if (GraphViewer.resizeSensorEnabled)
- {
- fn();
- }
- };
-
- // Uses ResizeObserver, if available
- if (GraphViewer.useResizeObserver && typeof ResizeObserver !== 'undefined')
- {
- var callbackThread = null;
- var active = false;
-
- new ResizeObserver(function()
- {
- if (!active)
- {
- if (callbackThread != null)
- {
- window.clearTimeout(callbackThread);
- }
-
- callbackThread = window.setTimeout(function()
- {
- active = true;
- callback();
- callbackThread = null;
- active = false;
- }, 200);
- }
- }).observe(element)
-
- return
- }
- /** *
- * @constructor
- */
- function EventQueue() {
- this.q = [];
- this.add = function(ev) {
- this.q.push(ev);
- };
-
- var i, j;
- this.call = function() {
- for (i = 0, j = this.q.length; i < j; i++) {
- this.q[i].call();
- }
- };
- }
-/** * @param {HTMLElement} element
- * @param {String} prop
- * @returns {String|Number}
- */
- function getComputedStyle(element, prop) {
- if (element.currentStyle) {
- return element.currentStyle[prop];
- } else if (window.getComputedStyle) {
- return window.getComputedStyle(element, null).getPropertyValue(prop);
- } else {
- return element.style[prop];
- }
- }
-/** *
- * @param {HTMLElement} element
- * @param {Function} resized
- */
- function attachResizeEvent(element, resized) {
- if (!element.resizedAttached) {
- element.resizedAttached = new EventQueue();
- element.resizedAttached.add(resized);
- } else if (element.resizedAttached) {
- element.resizedAttached.add(resized);
- return;
- }
-
- element.resizeSensor = document.createElement('div');
- element.resizeSensor.className = 'resize-sensor';
- var style = 'position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;';
- var styleChild = 'position: absolute; left: 0; top: 0; transition: 0s;';
-
- element.resizeSensor.style.cssText = style;
- element.resizeSensor.innerHTML =
- '<div class="resize-sensor-expand" style="' + style + '">' +
- '<div style="' + styleChild + '"></div>' +
- '</div>' +
- '<div class="resize-sensor-shrink" style="' + style + '">' +
- '<div style="' + styleChild + ' width: 200%; height: 200%"></div>' +
- '</div>';
- element.appendChild(element.resizeSensor);
-
- // FIXME: Should not change element style
- if (getComputedStyle(element, 'position') == 'static') {
- element.style.position = 'relative';
- }
-
- var expand = element.resizeSensor.childNodes[0];
- var expandChild = expand.childNodes[0];
- var shrink = element.resizeSensor.childNodes[1];
-
- var reset = function() {
- expandChild.style.width = 100000 + 'px';
- expandChild.style.height = 100000 + 'px';
-
- expand.scrollLeft = 100000;
- expand.scrollTop = 100000;
-
- shrink.scrollLeft = 100000;
- shrink.scrollTop = 100000;
- };
-
- reset();
- var dirty = false;
-
- var dirtyChecking = function(){
- if (!element.resizedAttached) return;
-
- if (dirty) {
- element.resizedAttached.call();
- dirty = false;
- }
-
- requestAnimationFrame(dirtyChecking);
- };
-
- requestAnimationFrame(dirtyChecking);
- var lastWidth, lastHeight;
- var cachedWidth, cachedHeight; //useful to not query offsetWidth twice
-
- var onScroll = function() {
- if ((cachedWidth = element.offsetWidth) != lastWidth || (cachedHeight = element.offsetHeight) != lastHeight) {
- dirty = true;
-
- lastWidth = cachedWidth;
- lastHeight = cachedHeight;
- }
- reset();
- };
-
- var addEvent = function(el, name, cb) {
- if (el.attachEvent) {
- el.attachEvent('on' + name, cb);
- } else {
- el.addEventListener(name, cb);
- }
- };
-
- addEvent(expand, 'scroll', onScroll);
- addEvent(shrink, 'scroll', onScroll);
- }
-
- var elementType = Object.prototype.toString.call(element);
- var isCollectionTyped = ('[object Array]' === elementType
- || ('[object NodeList]' === elementType)
- || ('[object HTMLCollection]' === elementType)
- || ('undefined' !== typeof jQuery && element instanceof jQuery) //jquery
- || ('undefined' !== typeof Elements && element instanceof Elements) //mootools
- );
-
- if (isCollectionTyped) {
- var i = 0, j = element.length;
- for (; i < j; i++) {
- attachResizeEvent(element[i], callback);
- }
- } else {
- attachResizeEvent(element, callback);
- }
-
- this.detach = function() {
- if (isCollectionTyped) {
- var i = 0, j = element.length;
- for (; i < j; i++) {
- ResizeSensor.detach(element[i]);
- }
- } else {
- ResizeSensor.detach(element);
- }
- };
- };
-
- ResizeSensor.detach = function(element) {
- if (element.resizeSensor) {
- element.removeChild(element.resizeSensor);
- delete element.resizeSensor;
- delete element.resizedAttached;
- }
- };
-
- window.ResizeSensor = ResizeSensor;
-})();
+/**
+ * Copyright (c) 2006-2016, JGraph Holdings Ltd
+ */
+// Disables theme in viewer and lightbox
+Editor.currentTheme = '';
+window.uiTheme = '';
+
+/**
+ * No CSS and resources available in embed mode. Parameters and docs:
+ * https://www.drawio.com/doc/faq/embed-html-options
+ */
+GraphViewer = function(container, xmlNode, graphConfig)
+{
+ this.init(container, xmlNode, graphConfig);
+};
+
+// Editor inherits from mxEventSource
+mxUtils.extend(GraphViewer, mxEventSource);
+
+/**
+ * Redirects editing to absolue URLs.
+ */
+GraphViewer.prototype.editBlankUrl = (urlParams['dev'] == '1') ?
+ 'https://test.draw.io/' : 'https://app.diagrams.net/';
+
+/**
+ * Base URL for relative images.
+ */
+GraphViewer.prototype.imageBaseUrl = window.DRAWIO_BASE_URL + '/';
+
+/**
+ * Redirects editing to absolue URLs.
+ */
+GraphViewer.prototype.toolbarHeight = (document.compatMode == 'BackCompat') ? 24 : 26;
+
+/**
+ * Redirects editing to absolue URLs.
+ */
+GraphViewer.prototype.lightboxChrome = true;
+
+/**
+ * Redirects editing to absolue URLs.
+ */
+GraphViewer.prototype.lightboxZIndex = 999;
+
+/**
+ * Redirects editing to absolue URLs.
+ */
+GraphViewer.prototype.toolbarZIndex = 999;
+
+/**
+ * If automatic fit should be enabled if zoom is disabled. Default is true.
+ */
+GraphViewer.prototype.autoFit = false;
+
+/**
+ * If automatic crop should be enabled when layers are toggled. Default is false.
+ */
+GraphViewer.prototype.autoCrop = false;
+
+/**
+ * Specifies if the graph should be moved if a layer is made visible that
+ * extends the graph beyong the top left corner. Default is true. Is this is
+ * false then the viewport of the viewer will include all cells in all layers
+ * regardless of their initial visible state.
+ */
+GraphViewer.prototype.autoOrigin = true;
+
+/**
+ * If the diagram should be centered. Default is false.
+ */
+GraphViewer.prototype.center = false;
+
+/**
+ * Force centering of the diagram. Default is false.
+ */
+GraphViewer.prototype.forceCenter = false;
+
+/**
+ * Specifies if zooming in for auto fit is allowed. Default is false.
+ */
+GraphViewer.prototype.allowZoomIn = false;
+
+/**
+ * Specifies if zooming out for auto fit is allowed. Default is true.
+ * If toolbar-nohide is true then overflow content is visible.
+ */
+GraphViewer.prototype.allowZoomOut = true;
+
+/**
+ * Whether the title should be shown as a tooltip if the toolbar is disabled.
+ * Default is false.
+ */
+GraphViewer.prototype.showTitleAsTooltip = false;
+
+/**
+ * Specifies if the constructur should delay the rendering if the container
+ * is not visible by default.
+ */
+GraphViewer.prototype.checkVisibleState = true;
+
+/**
+ * Defines the minimum height of the container. Default is 28.
+ */
+GraphViewer.prototype.minHeight = 28;
+
+/**
+ * Defines the minimum width of the container. Default is 100.
+ */
+GraphViewer.prototype.minWidth = 100;
+
+/**
+ * Implements viewBox to keep the contents inside the bounding box
+ * of the container. This is currently not supported in Safari (due
+ * to clipping in labels with viewBox) and all browsers that do not
+ * support foreignObjects (eg. IE11).
+ */
+GraphViewer.prototype.responsive = false;
+
+/**
+ * Dark mode can be one of null, "light", "dark" or "auto".
+ */
+GraphViewer.prototype.darkMode = null;
+
+/**
+ * Specifies if link icons should be shown on shapes. Default is false.
+ */
+GraphViewer.prototype.showLinkIcons = false;
+
+/**
+ * Specifies if tooltip icons should be shown on shapes. Default is false.
+ */
+GraphViewer.prototype.showTooltipIcons = false;
+
+/**
+ * Initializes the viewer.
+ */
+GraphViewer.prototype.init = function(container, xmlNode, graphConfig)
+{
+ GraphViewer.initCss();
+ this.graphConfig = (graphConfig != null) ? graphConfig : {};
+ this.autoFit = (this.graphConfig['auto-fit'] != null) ?
+ this.graphConfig['auto-fit'] : this.autoFit;
+ this.autoCrop = (this.graphConfig['auto-crop'] != null) ?
+ this.graphConfig['auto-crop'] : this.autoCrop;
+ this.autoOrigin = (this.graphConfig['auto-origin'] != null) ?
+ this.graphConfig['auto-origin'] : this.autoOrigin;
+ this.allowZoomOut = (this.graphConfig['allow-zoom-out'] != null) ?
+ this.graphConfig['allow-zoom-out'] : this.allowZoomOut;
+ this.allowZoomIn = (this.graphConfig['allow-zoom-in'] != null) ?
+ this.graphConfig['allow-zoom-in'] : this.allowZoomIn;
+ this.forceCenter = (this.graphConfig['forceCenter'] != null) ?
+ this.graphConfig['forceCenter'] : this.forceCenter;
+ this.hCenterOnly = (this.graphConfig['hCenterOnly'] != null) ?
+ this.graphConfig['hCenterOnly'] : this.hCenterOnly;
+ this.center = (this.graphConfig['center'] != null) ?
+ this.graphConfig['center'] : (this.center || this.forceCenter);
+ this.checkVisibleState = (this.graphConfig['check-visible-state'] != null) ?
+ this.graphConfig['check-visible-state'] : this.checkVisibleState;
+ this.darkMode = (this.graphConfig['dark-mode'] != null) ?
+ this.graphConfig['dark-mode'] : this.darkMode;
+ this.showLinkIcons = (this.graphConfig['show-link-icons'] != null) ?
+ this.graphConfig['show-link-icons'] : this.showLinkIcons;
+ this.showTooltipIcons = (this.graphConfig['show-tooltip-icons'] != null) ?
+ this.graphConfig['show-tooltip-icons'] : this.showTooltipIcons;
+ this.toolbarItems = (this.graphConfig.toolbar != null) ?
+ this.graphConfig.toolbar.split(' ') : [];
+ this.zoomEnabled = mxUtils.indexOf(this.toolbarItems, 'zoom') >= 0;
+ this.layersEnabled = mxUtils.indexOf(this.toolbarItems, 'layers') >= 0;
+ this.tagsEnabled = mxUtils.indexOf(this.toolbarItems, 'tags') >= 0;
+ this.lightboxEnabled = mxUtils.indexOf(this.toolbarItems, 'lightbox') >= 0;
+ this.lightboxClickEnabled = this.graphConfig.lightbox != false;
+ this.initialOverflow = document.body.style.overflow;
+ this.initialWidth = (container != null) ? container.style.width : null;
+ this.widthIsEmpty = (this.initialWidth != null) ? this.initialWidth == '' : true;
+ this.currentPage = parseInt(this.graphConfig.page) || 0;
+ this.responsive = ((this.graphConfig['responsive'] != null) ?
+ this.graphConfig['responsive'] : this.responsive) &&
+ !this.zoomEnabled && !mxClient.NO_FO && !mxClient.IS_SF;
+ this.pageId = this.graphConfig.pageId;
+ this.editor = null;
+ var self = this;
+
+ if (this.graphConfig['toolbar-position'] == 'inline')
+ {
+ this.minHeight += this.toolbarHeight;
+ }
+
+ if (xmlNode != null)
+ {
+ this.xmlDocument = xmlNode.ownerDocument;
+ this.xmlNode = xmlNode;
+ this.xml = mxUtils.getXml(xmlNode);
+
+ if (container != null)
+ {
+ var render = mxUtils.bind(this, function()
+ {
+ this.graph = new Graph(container);
+ this.graph.enableFlowAnimation = true;
+ this.installDarkModeListener();
+
+ if (this.responsive && this.graph.dialect == mxConstants.DIALECT_SVG)
+ {
+ var root = this.graph.view.getDrawPane().ownerSVGElement;
+
+ // Border is applied as CSS padding on the container so that
+ // it stays at a fixed pixel size when the diagram is scaled
+ // down. This matches graph.fit(border) in the draw.io editor,
+ // which also reserves a fixed-pixel border before scaling.
+ var responsiveBorder = 0;
+
+ if (this.graphConfig.border != null)
+ {
+ responsiveBorder = this.graphConfig.border;
+ }
+ else if (container.style.padding == '')
+ {
+ responsiveBorder = 8;
+ }
+
+ if (responsiveBorder > 0)
+ {
+ container.style.padding = responsiveBorder + 'px';
+ container.style.boxSizing = 'border-box';
+ }
+
+ root.style.forcedColorAdjust = 'none';
+ root.style.boxSizing = 'border-box';
+ root.style.overflow = 'visible';
+
+ this.graph.fit = function()
+ {
+ // Automatic
+ };
+
+ var maxScale = parseFloat(this.graphConfig['responsive-max-scale']);
+
+ // Capture any pre-existing maxWidth on the container (e.g. set
+ // by the host page to constrain the diagram) so we can honour
+ // it as an upper bound when responsive-max-scale adjusts the width.
+ var presetMaxWidth = parseFloat(container.style.maxWidth);
+
+ this.graph.sizeDidChange = function()
+ {
+ var bounds = this.view.graphBounds;
+ var tr = this.view.translate;
+
+ root.setAttribute('viewBox',
+ (bounds.x + tr.x - this.panDx) + ' ' +
+ (bounds.y + tr.y - this.panDy) + ' ' +
+ (bounds.width + 1) + ' ' +
+ (bounds.height + 1));
+ this.container.style.backgroundColor =
+ root.style.backgroundColor;
+
+ if (!isNaN(maxScale))
+ {
+ var naturalWidth = Math.round(
+ (bounds.width + 1) * maxScale + 2 * responsiveBorder);
+ var finalMaxWidth = !isNaN(presetMaxWidth) ?
+ Math.min(naturalWidth, presetMaxWidth) : naturalWidth;
+ this.container.style.maxWidth = finalMaxWidth + 'px';
+ }
+
+ this.fireEvent(new mxEventObject(mxEvent.SIZE, 'bounds', bounds));
+ };
+ }
+
+ if (this.graphConfig.move)
+ {
+ this.graph.isMoveCellsEvent = function(evt)
+ {
+ return true;
+ };
+ }
+
+ // Adds lightbox and link handling for shapes
+ if (this.lightboxClickEnabled)
+ {
+ container.style.cursor = 'pointer';
+ }
+
+ // Hack for using EditorUi methods on the graph instance
+ this.editor = new Editor(true, null, null, this.graph);
+ this.editor.editBlankUrl = this.editBlankUrl;
+ this.graph.lightbox = true;
+ this.graph.centerZoom = false;
+ this.graph.autoExtend = false;
+ this.graph.autoScroll = false;
+ this.graph.showLinkIcons = this.showLinkIcons;
+ this.graph.showTooltipIcons = this.showTooltipIcons;
+ this.graph.setEnabled(false);
+
+ if (this.graphConfig['toolbar-nohide'] == true)
+ {
+ this.editor.defaultGraphOverflow = 'visible';
+ }
+
+ // Extract graph model from html & svg formats
+ var temp = this.editor.extractGraphModel(this.xmlNode, true);
+
+ if (temp != null && temp != xmlNode)
+ {
+ try
+ {
+ this.xml = mxUtils.getXml(temp);
+ this.xmlNode = temp;
+ this.xmlDocument = temp.ownerDocument;
+ }
+ catch (e)
+ {
+ // ignore
+ }
+ }
+
+ // Handles relative images
+ this.graph.getImageFromBundles = function(key)
+ {
+ return self.getImageUrl(key);
+ };
+
+ this.graph.addSvgShadow(this.graph.view.canvas.ownerSVGElement, null, true);
+
+ // Adds page placeholders
+ if (this.xmlNode.nodeName == 'mxfile')
+ {
+ var diagrams = this.xmlNode.getElementsByTagName('diagram');
+
+ if (diagrams.length > 0)
+ {
+ // Finds index for given page ID
+ if (this.pageId != null)
+ {
+ for (var i = 0; i < diagrams.length; i++)
+ {
+ if (this.pageId == diagrams[i].getAttribute('id'))
+ {
+ this.currentPage = i;
+ break;
+ }
+ }
+ }
+
+ var graphGetGlobalVariable = this.graph.getGlobalVariable;
+ var cachedFileVars = null;
+
+ try
+ {
+ var varsStr = self.xmlNode.getAttribute('vars');
+
+ if (varsStr != null && varsStr.length > 0)
+ {
+ cachedFileVars = JSON.parse(varsStr);
+ }
+ }
+ catch (e)
+ {
+ // ignore
+ }
+
+ this.graph.getGlobalVariable = function(name)
+ {
+ var diagram = diagrams[self.currentPage];
+
+ if (name == 'page')
+ {
+ return diagram.getAttribute('name') || 'Page-' + (self.currentPage + 1);
+ }
+ else if (name == 'pagenumber')
+ {
+ return self.currentPage + 1;
+ }
+ else if (name == 'pagecount')
+ {
+ return diagrams.length;
+ }
+
+ var val = graphGetGlobalVariable.apply(this, arguments);
+
+ if (val == null && cachedFileVars != null)
+ {
+ val = cachedFileVars[name];
+ }
+
+ return val;
+ };
+ }
+ }
+
+ this.diagrams = [];
+ var lastXmlNode = null;
+
+ this.selectPage = function(number)
+ {
+ if(this.handlingResize)
+ return;
+
+ // Saves current page's hidden tags before switching
+ if (this.tagsEnabled && this.graphConfig.hiddenTags != null &&
+ this.diagrams[this.currentPage] != null)
+ {
+ var curPageId = this.diagrams[this.currentPage].getAttribute('id');
+ this.graphConfig.hiddenTags[curPageId] =
+ (this.graph.hiddenTags.length > 0) ? this.graph.hiddenTags.slice() : null;
+ }
+
+ this.currentPage = mxUtils.mod(number, this.diagrams.length);
+
+ // Applies hidden tags before updating XML so that
+ // positionGraph uses the correct tag visibility
+ if (this.tagsEnabled && this.graphConfig.hiddenTags != null &&
+ this.diagrams[this.currentPage] != null)
+ {
+ var pageId = this.diagrams[this.currentPage].getAttribute('id');
+ var pageTags = this.graphConfig.hiddenTags[pageId];
+ this.graph.hiddenTags = (pageTags != null && pageTags.length > 0) ? pageTags : [];
+ }
+
+ this.updateGraphXml(Editor.parseDiagramNode(this.diagrams[this.currentPage]));
+ };
+
+ this.selectPageById = function(id)
+ {
+ var index = this.getIndexById(id);
+ var found = index >= 0;
+
+ if (found)
+ {
+ this.selectPage(index);
+ }
+
+ return found;
+ };
+
+ var update = mxUtils.bind(this, function()
+ {
+ if (this.xmlNode == null || this.xmlNode.nodeName != 'mxfile')
+ {
+ this.diagrams = [];
+ }
+ if (this.xmlNode != lastXmlNode)
+ {
+ this.diagrams = this.xmlNode.getElementsByTagName('diagram');
+ lastXmlNode = this.xmlNode;
+ }
+ });
+
+ // Replaces background page reference with SVG
+ var graphSetBackgroundImage = this.graph.setBackgroundImage;
+
+ this.graph.setBackgroundImage = function(img)
+ {
+ if (img != null && Graph.isPageLink(img.src))
+ {
+ var src = img.src;
+ var comma = src.indexOf(',');
+
+ if (comma > 0)
+ {
+ var index = self.getIndexById(src.substring(comma + 1));
+
+ if (index >= 0)
+ {
+ img = self.getImageForGraphModel(
+ Editor.parseDiagramNode(
+ self.diagrams[index]));
+ img.originalSrc = src;
+ }
+ }
+ }
+
+ graphSetBackgroundImage.apply(this, arguments);
+ };
+
+ // Overrides graph bounds to include background pages
+ var graphGetGraphBounds = this.graph.getGraphBounds;
+
+ this.graph.getGraphBounds = function(img)
+ {
+ var bounds = graphGetGraphBounds.apply(this, arguments);
+ var img = this.backgroundImage;
+
+ // Check img.originalSrc to ignore background
+ // images but not background pages
+ if (img != null)
+ {
+ var t = this.view.translate;
+ var s = this.view.scale;
+
+ bounds = mxRectangle.fromRectangle(bounds);
+ bounds.add(new mxRectangle(
+ (t.x + img.x) * s, (t.y + img.y) * s,
+ img.width * s, img.height * s));
+ }
+
+ return bounds;
+ };
+
+ // LATER: Add event for setGraphXml
+ this.addListener('xmlNodeChanged', update);
+ update();
+
+ // Passes current page via urlParams global variable
+ // to let the parser know which page we're using
+ urlParams['page'] = self.currentPage;
+ var visible = null;
+
+ this.graph.getModel().beginUpdate();
+ try
+ {
+ // Required for correct parsing of fold parameter
+ urlParams['nav'] = (this.graphConfig.nav != false) ? '1' : '0';
+
+ this.editor.setGraphXml(this.xmlNode);
+ this.graph.view.scale = this.graphConfig.zoom || 1;
+ visible = this.setLayersVisible();
+
+ // Applies initial hidden tags from config
+ if (this.tagsEnabled && this.graphConfig.hiddenTags != null &&
+ this.diagrams != null && this.diagrams[this.currentPage] != null)
+ {
+ var pageId = this.diagrams[this.currentPage].getAttribute('id');
+ var pageTags = this.graphConfig.hiddenTags[pageId];
+
+ if (pageTags != null && pageTags.length > 0)
+ {
+ this.graph.hiddenTags = pageTags;
+ }
+ }
+
+ this.fireEvent(new mxEventObject('graphInitialized'));
+
+ if (!this.responsive)
+ {
+ this.graph.border = (this.graphConfig.border != null) ? this.graphConfig.border : 8;
+ }
+
+ this.installBackgroundColorHandler();
+ GraphViewer.viewerInitialized(this);
+ }
+ finally
+ {
+ this.graph.getModel().endUpdate();
+ }
+
+ // Adds left-button panning only if scrollbars are visible
+ if (!this.responsive)
+ {
+ this.graph.panningHandler.isForcePanningEvent = function(me)
+ {
+ return !mxEvent.isPopupTrigger(me.getEvent()) &&
+ this.graph.container.style.overflow == 'auto';
+ };
+
+ this.graph.panningHandler.useLeftButtonForPanning = true;
+ this.graph.panningHandler.ignoreCell = true;
+ this.graph.panningHandler.usePopupTrigger = false;
+ this.graph.panningHandler.pinchEnabled = false;
+ }
+
+ this.graph.setPanning(false);
+
+ if (this.graphConfig.toolbar != null)
+ {
+ this.addToolbar();
+ }
+ else if (this.graphConfig.title != null && this.showTitleAsTooltip)
+ {
+ container.setAttribute('title', this.graphConfig.titleTooltip || this.graphConfig.title);
+ }
+
+ if (!this.responsive)
+ {
+ this.addSizeHandler();
+ }
+
+ // Crops to visible layers if no layers toolbar button
+ if (this.showLayers(this.graph) && !this.forceCenter && (!this.layersEnabled || this.autoCrop))
+ {
+ this.crop();
+ }
+
+ this.addClickHandler(this.graph);
+ this.graph.initialViewState = {
+ translate: this.graph.view.translate.clone(),
+ scale: this.graph.view.scale
+ };
+
+ if (visible != null)
+ {
+ this.setLayersVisible(visible);
+ }
+
+ this.graph.customLinkClicked = function(href, associatedCell)
+ {
+ try
+ {
+ if (Graph.isPageLink(href))
+ {
+ var comma = href.indexOf(',');
+
+ if (!self.selectPageById(href.substring(comma + 1)))
+ {
+ alert(mxResources.get('pageNotFound') || 'Page not found');
+ }
+ }
+ else
+ {
+ var bounds = this.getGraphBounds();
+ this.handleCustomLink(href, associatedCell);
+
+ if (!bounds.equals(this.getGraphBounds()))
+ {
+ self.crop();
+ }
+ }
+ }
+ catch (e)
+ {
+ alert(e.message);
+ }
+
+ return true;
+ };
+
+ // Updates origin after tree cell folding
+ var graphFoldTreeCell = this.graph.foldTreeCell;
+
+ this.graph.foldTreeCell = mxUtils.bind(this, function()
+ {
+ this.treeCellFolded = true;
+
+ return graphFoldTreeCell.apply(this.graph, arguments);
+ });
+
+ this.fireEvent(new mxEventObject('render'));
+ });
+
+ var MutObs = window.MutationObserver ||
+ window.WebKitMutationObserver ||
+ window.MozMutationObserver;
+
+ if (this.checkVisibleState && container.offsetWidth == 0 &&
+ this.getAncestorDetails(container) == null &&
+ typeof MutObs !== 'undefined')
+ {
+ // Delayed rendering if inside hidden container and event available
+ var par = this.getObservableParent(container);
+
+ var observer = new MutObs(mxUtils.bind(this, function(mutation)
+ {
+ if (container.offsetWidth > 0)
+ {
+ observer.disconnect();
+ render();
+ }
+ }));
+
+ observer.observe(par, {attributes: true});
+ }
+ else
+ {
+ // Immediate rendering in all other cases
+ render();
+ }
+ }
+ }
+};
+
+/**
+ *
+ */
+GraphViewer.prototype.installBackgroundColorHandler = function()
+{
+ var graph = this.graph;
+
+ if (graph != null)
+ {
+ if (GraphViewer.shapeBackgroundColor != null)
+ {
+ graph.shapeBackgroundColor = GraphViewer.shapeBackgroundColor;
+ }
+
+ graph.defaultPageBackgroundColor = 'transparent';
+ graph.diagramBackgroundColor = 'transparent';
+ graph.transparentBackground = false;
+
+ var originalBackground = graph.background;
+
+ var updateBackground = mxUtils.bind(this, function(validate)
+ {
+ if (graph.getAdaptiveColors() == 'none' &&
+ originalBackground == null)
+ {
+ if (this.isDarkMode())
+ {
+ graph.background = '#ffffff';
+ }
+ else
+ {
+ graph.background = null;
+ }
+
+ if (validate)
+ {
+ graph.view.validateBackground();
+ }
+ }
+ });
+
+ // Called when pages are changed
+ this.addListener('graphChanged', function()
+ {
+ originalBackground = graph.background;
+ updateBackground(true);
+ });
+
+ // Called when the theme changes
+ this.addListener('darkModeChanged', function()
+ {
+ updateBackground(true);
+ });
+
+ // Sets initial state
+ updateBackground(false);
+ }
+};
+
+/**
+ *
+ */
+GraphViewer.prototype.installDarkModeListener = function()
+{
+ if (window.matchMedia != null)
+ {
+ window.matchMedia('(prefers-color-scheme: dark)')
+ .addEventListener('change', mxUtils.bind(this, function()
+ {
+ this.darkModeChanged();
+ this.fireEvent(new mxEventObject('darkModeChanged'));
+ }));
+ }
+
+ this.darkModeChanged();
+};
+
+/**
+ *
+ */
+GraphViewer.prototype.darkModeChanged = function()
+{
+ if (this.graph != null)
+ {
+ var container = this.graph.container;
+ var dark = this.isDarkMode();
+
+ if (dark)
+ {
+ container.classList.add('geDarkMode');
+ }
+ else
+ {
+ container.classList.remove('geDarkMode');
+ }
+
+ container.style.colorScheme = (dark) ? 'dark' : 'light';
+ }
+};
+
+/**
+ *
+ */
+GraphViewer.prototype.getAncestorDetails = function(container)
+{
+ while (container != null)
+ {
+ if (container.nodeName == 'DETAILS')
+ {
+ return container;
+ }
+
+ container = container.parentNode;
+ }
+
+ return null;
+};
+
+/**
+ *
+ */
+GraphViewer.prototype.getObservableParent = function(container)
+{
+ var node = container.parentNode;
+
+ while (node != document.body && node.parentNode != null &&
+ mxUtils.getCurrentStyle(node).display !== 'none')
+ {
+ node = node.parentNode;
+ }
+
+ return node;
+};
+
+/**
+ *
+ */
+GraphViewer.prototype.getImageUrl = function(url)
+{
+ if (url != null && url.substring(0, 7) != 'http://' &&
+ url.substring(0, 8) != 'https://' && url.substring(0, 10) != 'data:image')
+ {
+ if (url.charAt(0) == '/')
+ {
+ url = url.substring(1, url.length);
+ }
+
+ url = this.imageBaseUrl + url;
+ }
+
+ return url;
+};
+
+/**
+ *
+ */
+GraphViewer.prototype.getImageForGraphModel = function(node)
+{
+ var graph = Graph.createOffscreenGraph(this.graph.getStylesheet());
+ graph.getGlobalVariable = this.graph.getGlobalVariable;
+ document.body.appendChild(graph.container);
+
+ var codec = new mxCodec(node.ownerDocument);
+ var root = codec.decode(node).root;
+ graph.model.setRoot(root);
+
+ var svgRoot = graph.getSvg();
+ var bounds = graph.getGraphBounds();
+ document.body.removeChild(graph.container);
+
+ return new mxImage(Editor.createSvgDataUri(mxUtils.getXml(svgRoot)),
+ bounds.width, bounds.height, bounds.x, bounds.y);
+};
+
+/**
+ *
+ */
+GraphViewer.prototype.getIndexById = function(id)
+{
+ if (this.diagrams != null)
+ {
+ for (var i = 0; i < this.diagrams.length; i++)
+ {
+ if (this.diagrams[i].getAttribute('id') == id)
+ {
+ return i;
+ }
+ }
+ }
+
+ return -1;
+};
+
+/**
+ *
+ */
+GraphViewer.prototype.setXmlNode = function(xmlNode)
+{
+ //Extract graph model from html & svg formats
+ xmlNode = this.editor.extractGraphModel(xmlNode, true);
+
+ this.xmlDocument = xmlNode.ownerDocument;
+ this.xml = mxUtils.getXml(xmlNode);
+ this.xmlNode = xmlNode;
+
+ this.updateGraphXml(xmlNode);
+ this.fireEvent(new mxEventObject('xmlNodeChanged'));
+};
+
+/**
+ *
+ */
+GraphViewer.prototype.setFileNode = function(xmlNode)
+{
+ if (this.xmlNode == null)
+ {
+ this.xmlDocument = xmlNode.ownerDocument;
+ this.xml = mxUtils.getXml(xmlNode);
+ this.xmlNode = xmlNode;
+ }
+
+ this.setGraphXml(xmlNode);
+};
+
+/**
+ *
+ */
+GraphViewer.prototype.updateGraphXml = function(xmlNode)
+{
+ this.setGraphXml(xmlNode);
+ this.fireEvent(new mxEventObject('graphChanged'));
+};
+
+
+/**
+ *
+ */
+GraphViewer.prototype.setLayersVisible = function(visible)
+{
+ var allVisible = true;
+
+ if (!this.autoOrigin)
+ {
+ var result = [];
+ var model = this.graph.getModel();
+
+ model.beginUpdate();
+ try
+ {
+ for (var i = 0; i < model.getChildCount(model.root); i++)
+ {
+ var layer = model.getChildAt(model.root, i);
+ allVisible = allVisible && model.isVisible(layer);
+ result.push(model.isVisible(layer));
+ model.setVisible(layer, (visible != null) ? visible[i] : true);
+ }
+ }
+ finally
+ {
+ model.endUpdate();
+ }
+ }
+
+ return (allVisible) ? null : result;
+};
+
+/**
+ *
+ */
+GraphViewer.prototype.setGraphXml = function(xmlNode)
+{
+ if (this.graph != null)
+ {
+ this.graph.view.translate = new mxPoint();
+ this.graph.view.scale = 1;
+ var visible = null;
+
+ this.graph.getModel().beginUpdate();
+ try
+ {
+ this.graph.getModel().clear();
+ this.editor.setGraphXml(xmlNode);
+ visible = this.setLayersVisible(true);
+ }
+ finally
+ {
+ this.graph.getModel().endUpdate();
+ }
+
+ if (!this.responsive)
+ {
+ // Restores initial CSS state
+ if (this.widthIsEmpty)
+ {
+ this.graph.container.style.width = '';
+ this.graph.container.style.height = '';
+ }
+ else
+ {
+ this.graph.container.style.width = this.initialWidth;
+ }
+
+ this.positionGraph();
+ }
+
+ this.graph.initialViewState = {
+ translate: this.graph.view.translate.clone(),
+ scale: this.graph.view.scale
+ };
+
+ if (visible)
+ {
+ this.setLayersVisible(visible);
+ }
+ }
+};
+
+/**
+ *
+ */
+GraphViewer.prototype.isDarkMode = function()
+{
+ return this.darkMode == 'dark' || (this.darkMode == 'auto' && window.matchMedia &&
+ window.matchMedia('(prefers-color-scheme: dark)').matches);
+};
+
+/**
+ *
+ */
+GraphViewer.prototype.addSizeHandler = function()
+{
+ var container = this.graph.container;
+ var bounds = this.graph.getGraphBounds();
+ var updatingOverflow = false;
+
+ if (this.graphConfig['toolbar-nohide'] != true)
+ {
+ container.style.overflow = 'hidden';
+ }
+ else
+ {
+ container.style.overflow = 'visible';
+ }
+
+ var updateOverflow = mxUtils.bind(this, function()
+ {
+ if (!updatingOverflow)
+ {
+ updatingOverflow = true;
+ var tmp = this.graph.getGraphBounds();
+
+ if (this.graphConfig['toolbar-nohide'] != true)
+ {
+ // Shows scrollbars if graph is larger than available width
+ if (tmp.width + 2 * this.graph.border > container.offsetWidth - 2)
+ {
+ container.style.overflow = 'auto';
+ }
+ else
+ {
+ container.style.overflow = 'hidden';
+ }
+ }
+ else
+ {
+ container.style.overflow = 'visible';
+ }
+
+ if (this.toolbar != null && this.graphConfig['toolbar-nohide'] != true)
+ {
+ var r = container.getBoundingClientRect();
+
+ // Workaround for position:relative set in ResizeSensor
+ var origin = mxUtils.getScrollOrigin(document.body)
+ var b = (document.body.style.position === 'relative') ?
+ document.body.getBoundingClientRect() :
+ {left: -origin.x, top: -origin.y};
+ r = {left: r.left - b.left, top: r.top - b.top, bottom: r.bottom - b.top, right: r.right - b.left};
+
+ this.toolbar.style.left = r.left + 'px';
+
+ if (this.graphConfig['toolbar-position'] == 'bottom')
+ {
+ this.toolbar.style.top = r.bottom - 1 + 'px';
+ }
+ else
+ {
+ if (this.graphConfig['toolbar-position'] != 'inline')
+ {
+ this.toolbar.style.width = Math.max(this.minToolbarWidth, container.offsetWidth) + 'px';
+ this.toolbar.style.top = r.top + 1 + 'px';
+ }
+ else
+ {
+ this.toolbar.style.top = r.top + 'px';
+ }
+ }
+ }
+ else if (this.toolbar != null)
+ {
+ this.toolbar.style.width = Math.max(this.minToolbarWidth, container.offsetWidth) + 'px';
+ }
+
+ // Updates origin after tree cell folding
+ if (this.treeCellFolded)
+ {
+ this.treeCellFolded = false;
+ this.positionGraph(this.graph.view.translate);
+ this.graph.initialViewState.translate = this.graph.view.translate.clone();
+ }
+
+ updatingOverflow = false;
+ }
+ });
+
+ var lastOffsetWidth = null;
+ var cachedOffsetWidth = null;
+ this.handlingResize = false;
+
+ // Installs function on instance
+ this.fitGraph = mxUtils.bind(this, function(maxScale)
+ {
+ var cachedOffsetWidth = container.offsetWidth;
+
+ if (cachedOffsetWidth != lastOffsetWidth && !this.handlingResize)
+ {
+ this.handlingResize = true;
+
+ // Hides scrollbars to force update of translate
+ if (container.style.overflow == 'auto')
+ {
+ container.style.overflow = 'hidden';
+ }
+
+ this.graph.maxFitScale = (maxScale != null) ? maxScale : (this.graphConfig.zoom ||
+ ((this.allowZoomIn) ? null : 1));
+ this.graph.fit(null, null, null, null, null, true);
+
+ if (this.center || !(this.graphConfig.resize != false || container.style.height == ''))
+ {
+ this.graph.center(true, this.hCenterOnly? false : true);
+ }
+
+ this.graph.maxFitScale = null;
+
+ if (this.graphConfig.resize != false || container.style.height == '' || this.hCenterOnly)
+ {
+ this.updateContainerHeight(container, Math.max(this.minHeight,
+ this.graph.getGraphBounds().height +
+ 2 * this.graph.border + 1));
+ }
+
+ this.graph.initialViewState = {
+ translate: this.graph.view.translate.clone(),
+ scale: this.graph.view.scale
+ };
+
+ lastOffsetWidth = cachedOffsetWidth;
+
+ // Workaround for fit triggering scrollbars triggering doResize (infinite loop)
+ window.setTimeout(mxUtils.bind(this, function()
+ {
+ this.handlingResize = false;
+ }), 0);
+ }
+ });
+
+ if (GraphViewer.useResizeSensor)
+ {
+ if (document.documentMode <= 9)
+ {
+ mxEvent.addListener(window, 'resize', updateOverflow);
+ this.graph.addListener('size', updateOverflow);
+ }
+ else
+ {
+ new ResizeSensor(this.graph.container, updateOverflow);
+ }
+ }
+
+ if (this.graphConfig.resize || ((this.zoomEnabled || !this.autoFit) && this.graphConfig.resize != false))
+ {
+ this.graph.minimumContainerSize = new mxRectangle(0, 0, this.minWidth, this.minHeight);
+ this.graph.resizeContainer = true;
+ }
+ else
+ {
+ // Sets initial size for responsive diagram to stop at actual size
+ if (this.widthIsEmpty && !(container.style.height != '' && this.autoFit))
+ {
+ this.updateContainerWidth(container, bounds.width + 2 * this.graph.border);
+ }
+
+ if (this.graphConfig.resize != false || container.style.height == '')
+ {
+ this.updateContainerHeight(container, Math.max(this.minHeight, bounds.height + 2 * this.graph.border + 1));
+ }
+
+ if (!this.zoomEnabled && this.autoFit)
+ {
+ var lastOffsetWidth = null;
+ var scheduledResize = null;
+
+ var doResize = mxUtils.bind(this, function()
+ {
+ window.clearTimeout(scheduledResize);
+
+ if (!this.handlingResize)
+ {
+ scheduledResize = window.setTimeout(mxUtils.bind(this, this.fitGraph), 100);
+ }
+ });
+
+ if (GraphViewer.useResizeSensor)
+ {
+ if (document.documentMode <= 9)
+ {
+ mxEvent.addListener(window, 'resize', doResize);
+ }
+ else
+ {
+ new ResizeSensor(this.graph.container, doResize);
+ }
+ }
+ }
+ else if (!(document.documentMode <= 9))
+ {
+ this.graph.addListener('size', updateOverflow);
+ }
+ }
+
+ var positionGraph = mxUtils.bind(this, function(origin)
+ {
+ // Allocates maximum width while setting initial view state
+ var prev = container.style.minWidth;
+
+ if (this.widthIsEmpty)
+ {
+ container.style.minWidth = '100%';
+ }
+
+ var maxHeight = (this.graphConfig['max-height'] != null) ? this.graphConfig['max-height'] :
+ ((container.style.height != '' && this.autoFit) ? container.offsetHeight : undefined);
+
+ if (container.offsetWidth > 0 && origin == null && this.allowZoomOut && (this.allowZoomIn ||
+ bounds.width + 2 * this.graph.border > container.offsetWidth ||
+ bounds.height + 2 * this.graph.border > maxHeight))
+ {
+ var maxScale = null;
+
+ if (maxHeight != null && bounds.height + 2 * this.graph.border > maxHeight - 2)
+ {
+ maxScale = (maxHeight - 2 * this.graph.border - 2) / bounds.height;
+ }
+
+ this.fitGraph(maxScale);
+ }
+ else if (!this.widthIsEmpty && origin == null && !(this.graphConfig.resize != false || container.style.height == ''))
+ {
+ this.graph.center((!this.widthIsEmpty || bounds.width < this.minWidth) && this.graphConfig.resize != true);
+ }
+ else
+ {
+ origin = (origin != null) ? origin : new mxPoint();
+
+ this.graph.view.setTranslate(Math.floor(this.graph.border - bounds.x / this.graph.view.scale) + origin.x,
+ Math.floor(this.graph.border - bounds.y / this.graph.view.scale) + origin.y);
+ lastOffsetWidth = container.offsetWidth;
+ }
+
+ container.style.minWidth = prev
+ });
+
+ if (document.documentMode == 8)
+ {
+ window.setTimeout(positionGraph, 0);
+ }
+ else
+ {
+ positionGraph();
+ }
+
+ // Installs function on instance
+ this.positionGraph = function(origin)
+ {
+ bounds = this.graph.getGraphBounds();
+ lastOffsetWidth = null;
+ positionGraph(origin);
+ };
+};
+
+/**
+ * Moves the origin of the graph to the top, right corner.
+ */
+GraphViewer.prototype.crop = function()
+{
+ var graph = this.graph;
+ var bounds = graph.getGraphBounds();
+ var border = graph.border;
+ var s = graph.view.scale;
+ var x0 = (bounds.x != null) ? Math.floor(graph.view.translate.x - bounds.x / s + border) : border;
+ var y0 = (bounds.y != null) ? Math.floor(graph.view.translate.y - bounds.y / s + border) : border;
+
+ graph.view.setTranslate(x0, y0);
+};
+
+/**
+ *
+ */
+GraphViewer.prototype.updateContainerWidth = function(container, width)
+{
+ container.style.width = width + 'px';
+};
+
+/**
+ *
+ */
+GraphViewer.prototype.updateContainerHeight = function(container, height)
+{
+ if (this.forceCenter || this.zoomEnabled || !this.autoFit || document.compatMode == 'BackCompat' ||
+ document.documentMode == 8)
+ {
+ container.style.height = height + 'px';
+ }
+};
+
+/**
+ * Shows the
+ */
+GraphViewer.prototype.showLayers = function(graph, sourceGraph)
+{
+ var layers = this.graphConfig.layers;
+ var idx = (layers != null && layers.length > 0) ? layers.split(' ') : [];
+ var layerIds = this.graphConfig.layerIds;
+ var hasLayerIds = layerIds != null && layerIds.length > 0;
+ var result = false;
+
+ if (idx.length > 0 || hasLayerIds || sourceGraph != null)
+ {
+ var source = (sourceGraph != null) ? sourceGraph.getModel() : null;
+ var model = graph.getModel();
+ model.beginUpdate();
+
+ try
+ {
+ var childCount = model.getChildCount(model.root);
+
+ // Shows specified layers (eg. 0 1 3)
+ if (source == null)
+ {
+ var layersFound = false, visibleLayers = {};
+
+ if (hasLayerIds)
+ {
+ for (var i = 0; i < layerIds.length; i++)
+ {
+ var layer = model.getCell(layerIds[i]);
+
+ if (layer != null)
+ {
+ layersFound = true;
+ visibleLayers[layer.id] = true;
+ }
+ }
+ }
+ else
+ {
+ for (var i = 0; i < idx.length; i++)
+ {
+ var layer = model.getChildAt(model.root, parseInt(idx[i]));
+
+ if (layer != null)
+ {
+ layersFound = true;
+ visibleLayers[layer.id] = true;
+ }
+ }
+ }
+
+ //To prevent hiding all layers, only apply if the specified layers are found
+ //This prevents incorrect settings from showing an empty viewer
+ for (var i = 0; layersFound && i < childCount; i++)
+ {
+ var layer = model.getChildAt(model.root, i);
+ model.setVisible(layer, visibleLayers[layer.id] || false);
+ }
+ }
+ else
+ {
+ // Match visible layers in source graph
+ for (var i = 0; i < childCount; i++)
+ {
+ model.setVisible(model.getChildAt(model.root, i),
+ source.isVisible(source.getChildAt(source.root, i)));
+ }
+ }
+ }
+ finally
+ {
+ model.endUpdate();
+ }
+
+ result = true;
+ }
+
+ return result;
+};
+
+/**
+ *
+ */
+GraphViewer.prototype.addToolbar = function()
+{
+ var container = this.graph.container;
+
+ if (this.graphConfig['toolbar-position'] == 'bottom')
+ {
+ container.style.marginBottom = this.toolbarHeight + 'px';
+ }
+ else if (this.graphConfig['toolbar-position'] != 'inline')
+ {
+ container.style.marginTop = this.toolbarHeight + 'px';
+ }
+
+ // Creates toolbar for viewer
+ var toolbar = container.ownerDocument.createElement('div');
+ toolbar.style.display = 'flex';
+ toolbar.style.alignItems = 'center';
+ toolbar.style.position = 'absolute';
+ toolbar.style.overflow = 'hidden';
+ toolbar.style.boxSizing = 'border-box';
+ toolbar.style.whiteSpace = 'nowrap';
+ toolbar.style.textAlign = 'left';
+ toolbar.style.zIndex = this.toolbarZIndex;
+ toolbar.style.backgroundColor = 'light-dark(#eeeeee, ' + GraphViewer.darkBackgroundColor + ')';
+ toolbar.style.height = this.toolbarHeight + 'px';
+
+ var updateDarkMode = mxUtils.bind(this, function()
+ {
+ if (this.isDarkMode())
+ {
+ toolbar.classList.add('geDarkMode');
+ toolbar.style.colorScheme = 'dark';
+ }
+ else
+ {
+ toolbar.classList.remove('geDarkMode');
+ toolbar.style.colorScheme = 'light';
+ }
+ });
+
+ this.addListener('darkModeChanged', updateDarkMode);
+ this.toolbar = toolbar;
+ updateDarkMode();
+
+ if (this.graphConfig['toolbar-position'] == 'inline')
+ {
+ mxUtils.setPrefixedStyle(toolbar.style, 'transition', 'opacity 100ms ease-in-out');
+ mxUtils.setOpacity(toolbar, 30);
+
+ // Changes toolbar opacity on hover
+ var fadeThread = null;
+ var fadeThread2 = null;
+
+ var fadeOut = mxUtils.bind(this, function(delay)
+ {
+ if (fadeThread != null)
+ {
+ window.clearTimeout(fadeThread);
+ fadeThead = null;
+ }
+
+ if (fadeThread2 != null)
+ {
+ window.clearTimeout(fadeThread2);
+ fadeThead2 = null;
+ }
+
+ fadeThread = window.setTimeout(mxUtils.bind(this, function()
+ {
+ mxUtils.setOpacity(toolbar, 0);
+ fadeThread = null;
+
+ fadeThread2 = window.setTimeout(mxUtils.bind(this, function()
+ {
+ toolbar.style.display = 'none';
+ fadeThread2 = null;
+ }), 100);
+ }), delay || 200);
+ });
+
+ var fadeIn = mxUtils.bind(this, function(opacity)
+ {
+ if (fadeThread != null)
+ {
+ window.clearTimeout(fadeThread);
+ fadeThead = null;
+ }
+
+ if (fadeThread2 != null)
+ {
+ window.clearTimeout(fadeThread2);
+ fadeThead2 = null;
+ }
+
+ toolbar.style.display = 'flex';
+ mxUtils.setOpacity(toolbar, opacity || 30);
+ });
+
+ mxEvent.addListener(this.graph.container, (mxClient.IS_POINTER) ? 'pointermove' : 'mousemove', mxUtils.bind(this, function(evt)
+ {
+ if (!mxEvent.isTouchEvent(evt))
+ {
+ fadeIn(30);
+ fadeOut();
+ }
+ }));
+
+ mxEvent.addListener(toolbar, (mxClient.IS_POINTER) ? 'pointermove' : 'mousemove', function(evt)
+ {
+ mxEvent.consume(evt);
+ });
+
+ mxEvent.addListener(toolbar, 'mouseenter', mxUtils.bind(this, function(evt)
+ {
+ fadeIn(100);
+ }));
+
+ mxEvent.addListener(toolbar, 'mousemove', mxUtils.bind(this, function(evt)
+ {
+ fadeIn(100);
+ mxEvent.consume(evt);
+ }));
+
+ mxEvent.addListener(toolbar, 'mouseleave', mxUtils.bind(this, function(evt)
+ {
+ if (!mxEvent.isTouchEvent(evt))
+ {
+ fadeIn(30);
+ }
+ }));
+
+ // Shows/hides toolbar for touch devices
+ var graph = this.graph;
+ var tol = graph.getTolerance();
+
+ graph.addMouseListener(
+ {
+ startX: 0,
+ startY: 0,
+ scrollLeft: 0,
+ scrollTop: 0,
+ mouseDown: function(sender, me)
+ {
+ this.startX = me.getGraphX();
+ this.startY = me.getGraphY();
+ this.scrollLeft = graph.container.scrollLeft;
+ this.scrollTop = graph.container.scrollTop;
+ },
+ mouseMove: function(sender, me) {},
+ mouseUp: function(sender, me)
+ {
+ if (mxEvent.isTouchEvent(me.getEvent()))
+ {
+ if ((Math.abs(this.scrollLeft - graph.container.scrollLeft) < tol &&
+ Math.abs(this.scrollTop - graph.container.scrollTop) < tol) &&
+ (Math.abs(this.startX - me.getGraphX()) < tol &&
+ Math.abs(this.startY - me.getGraphY()) < tol))
+ {
+ if (parseFloat(toolbar.style.opacity || 0) > 0)
+ {
+ fadeOut();
+ }
+ else
+ {
+ fadeIn(30);
+ }
+ }
+ }
+ }
+ });
+ }
+
+ var tokens = this.toolbarItems;
+ var buttonCount = 0;
+
+ var addButton = mxUtils.bind(this, function(fn, imgSrc, tip, enabled)
+ {
+ var a = this.createToolbarButton(fn, imgSrc, tip, enabled);
+ toolbar.appendChild(a);
+
+ buttonCount++;
+
+ return a;
+ });
+
+ var model = this.graph.getModel();
+ var layersDialog = null;
+ var tagsComponent = null;
+ var tagsDialog = null;
+ var pageInfo = null;
+
+ for (var i = 0; i < tokens.length; i++)
+ {
+ var token = tokens[i];
+
+ if (token == 'pages')
+ {
+ pageInfo = container.ownerDocument.createElement('div');
+ pageInfo.style.display = 'inline-flex';
+ pageInfo.style.position = 'relative';
+ pageInfo.style.alignItems = 'center';
+ pageInfo.style.padding = '4px';
+ pageInfo.style.fontFamily = GraphViewer.cssFontFamily;
+ pageInfo.style.fontSize = '12px';
+ pageInfo.style.cursor = 'default';
+ pageInfo.style.color = 'light-dark(#000000, #ffffff)';
+ mxUtils.setOpacity(pageInfo, 70);
+
+ var prevButton = addButton(mxUtils.bind(this, function()
+ {
+ this.selectPage(this.currentPage - 1);
+ }), Editor.chevronLeftImage, mxResources.get('previousPage') || 'Previous Page');
+
+ prevButton.style.borderRightStyle = 'none';
+ prevButton.style.paddingLeft = '0px';
+ prevButton.style.paddingRight = '0px';
+ toolbar.appendChild(pageInfo);
+
+ var nextButton = addButton(mxUtils.bind(this, function()
+ {
+ this.selectPage(this.currentPage + 1);
+ }), Editor.chevronRightImage, mxResources.get('nextPage') || 'Next Page');
+
+ nextButton.style.paddingLeft = '0px';
+ nextButton.style.paddingRight = '0px';
+
+ var update = mxUtils.bind(this, function()
+ {
+ pageInfo.innerText = '';
+ mxUtils.write(pageInfo, (this.currentPage + 1) + ' / ' + this.diagrams.length);
+ pageInfo.style.display = (this.diagrams.length > 1) ? 'inline-flex' : 'none';
+ prevButton.style.display = pageInfo.style.display;
+ nextButton.style.display = pageInfo.style.display;
+ });
+
+ // LATER: Add event for setGraphXml
+ this.addListener('graphChanged', update);
+ update();
+ }
+ else if (token == 'zoom')
+ {
+ if (this.zoomEnabled)
+ {
+ addButton(mxUtils.bind(this, function()
+ {
+ this.graph.zoomOut();
+ }), Editor.zoomOutImage, mxResources.get('zoomOut') || 'Zoom Out');
+
+ addButton(mxUtils.bind(this, function()
+ {
+ this.graph.zoomIn();
+ }), Editor.zoomInImage, mxResources.get('zoomIn') || 'Zoom In');
+
+ addButton(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 (token == 'layers')
+ {
+ if (this.layersEnabled)
+ {
+ var layersButton = addButton(mxUtils.bind(this, function(evt)
+ {
+ if (layersDialog != null)
+ {
+ layersDialog.parentNode.removeChild(layersDialog);
+ layersDialog = null;
+ }
+ else
+ {
+ layersDialog = this.graph.createLayersDialog(mxUtils.bind(this, function()
+ {
+ if (this.autoCrop)
+ {
+ this.crop();
+ }
+ else if (this.autoOrigin)
+ {
+ var bounds = this.graph.getGraphBounds();
+ var v = this.graph.view;
+
+ if (bounds.x < 0 || bounds.y < 0)
+ {
+ this.crop();
+ this.graph.originalViewState = this.graph.initialViewState;
+
+ this.graph.initialViewState = {
+ translate: v.translate.clone(),
+ scale: v.scale
+ };
+ }
+ else if (this.graph.originalViewState != null &&
+ bounds.x / v.scale + this.graph.originalViewState.translate.x - v.translate.x > 0 &&
+ bounds.y / v.scale + this.graph.originalViewState.translate.y - v.translate.y > 0)
+ {
+ v.setTranslate(this.graph.originalViewState.translate.x,
+ this.graph.originalViewState.translate.y);
+ this.graph.originalViewState = null;
+
+ this.graph.initialViewState = {
+ translate: v.translate.clone(),
+ scale: v.scale
+ };
+ }
+ }
+ }));
+
+ mxEvent.addListener(layersDialog, 'mouseleave', function()
+ {
+ layersDialog.parentNode.removeChild(layersDialog);
+ layersDialog = null;
+ });
+
+ var r = layersButton.getBoundingClientRect();
+
+ layersDialog.style.width = '140px';
+ layersDialog.style.padding = '2px 0px 2px 0px';
+ layersDialog.style.border = '1px solid #d0d0d0';
+ layersDialog.style.backgroundColor = '#eee';
+ layersDialog.style.fontFamily = GraphViewer.cssFontFamily;
+ layersDialog.style.fontSize = '11px';
+ layersDialog.style.overflowY = 'auto';
+ layersDialog.style.maxHeight = (this.graph.container.clientHeight - this.toolbarHeight - 10) + 'px'
+ layersDialog.style.zIndex = this.toolbarZIndex + 1;
+ layersDialog.style.color = '#000';
+ mxUtils.setOpacity(layersDialog, 85);
+ var origin = mxUtils.getDocumentScrollOrigin(document);
+ layersDialog.style.left = origin.x + r.left - 1 + 'px';
+ layersDialog.style.top = origin.y + r.bottom - 2 + 'px';
+
+ if (this.isDarkMode())
+ {
+ layersDialog.style.filter = 'invert(93%) hue-rotate(180deg)';
+ }
+
+ document.body.appendChild(layersDialog);
+ }
+ }), Editor.layersImage, mxResources.get('layers') || 'Layers');
+
+ model.addListener(mxEvent.CHANGE, function()
+ {
+ layersButton.style.display = (model.getChildCount(model.root) > 1) ? 'inline-flex' : 'none';
+ });
+
+ layersButton.style.display = (model.getChildCount(model.root) > 1) ? 'inline-flex' : 'none';
+ }
+ }
+ else if (token == 'tags')
+ {
+ if (this.tagsEnabled)
+ {
+ var tagsButton = addButton(mxUtils.bind(this, function(evt)
+ {
+ if (tagsComponent == null)
+ {
+ tagsComponent = this.graph.createTagsDialog(mxUtils.bind(this, function()
+ {
+ return true;
+ }));
+
+ this.graph.addListener(mxEvent.REFRESH, mxUtils.bind(this, function()
+ {
+ if (this.autoCrop)
+ {
+ this.crop();
+ }
+ else if (this.autoOrigin)
+ {
+ var bounds = this.graph.getGraphBounds();
+ var v = this.graph.view;
+
+ if (bounds.x < 0 || bounds.y < 0)
+ {
+ this.crop();
+ this.graph.originalViewState = this.graph.initialViewState;
+
+ this.graph.initialViewState = {
+ translate: v.translate.clone(),
+ scale: v.scale
+ };
+ }
+ else if (this.graph.originalViewState != null &&
+ bounds.x / v.scale + this.graph.originalViewState.translate.x - v.translate.x > 0 &&
+ bounds.y / v.scale + this.graph.originalViewState.translate.y - v.translate.y > 0)
+ {
+ v.setTranslate(this.graph.originalViewState.translate.x,
+ this.graph.originalViewState.translate.y);
+ this.graph.originalViewState = null;
+
+ this.graph.initialViewState = {
+ translate: v.translate.clone(),
+ scale: v.scale
+ };
+ }
+ }
+ }));
+
+ tagsComponent.div.getElementsByTagName('div')[0].style.position = '';
+ tagsComponent.div.style.maxHeight = '160px';
+ tagsComponent.div.style.maxWidth = '120px';
+ tagsComponent.div.style.padding = '2px';
+ tagsComponent.div.style.overflow = 'auto';
+ tagsComponent.div.style.height = 'auto';
+ tagsComponent.div.style.position = 'fixed';
+ tagsComponent.div.style.fontFamily = GraphViewer.cssFontFamily;
+ tagsComponent.div.style.fontSize = '11px';
+ tagsComponent.div.style.backgroundColor = '#eee';
+ tagsComponent.div.style.color = '#000';
+ tagsComponent.div.style.border = '1px solid #d0d0d0';
+ tagsComponent.div.style.zIndex = this.toolbarZIndex + 1;
+
+ if (this.isDarkMode())
+ {
+ tagsComponent.div.style.filter = 'invert(93%) hue-rotate(180deg)';
+ }
+
+ mxUtils.setOpacity(tagsComponent.div, 85);
+ }
+
+ if (tagsDialog != null)
+ {
+ tagsDialog.parentNode.removeChild(tagsDialog);
+ tagsDialog = null;
+ }
+ else
+ {
+ tagsDialog = tagsComponent.div;
+ tagsDialog.style.position = 'absolute';
+
+ mxEvent.addListener(tagsDialog, 'mouseleave', function()
+ {
+ if (tagsDialog != null)
+ {
+ tagsDialog.parentNode.removeChild(tagsDialog);
+ tagsDialog = null;
+ }
+ });
+
+ var r = tagsButton.getBoundingClientRect();
+ var origin = mxUtils.getDocumentScrollOrigin(document);
+ tagsDialog.style.left = origin.x + r.left - 1 + 'px';
+ tagsDialog.style.top = origin.y + r.bottom - 2 + 'px';
+ document.body.appendChild(tagsDialog);
+ tagsComponent.refresh();
+ }
+ }), Editor.tagsImage, mxResources.get('tags') || 'Tags');
+
+ model.addListener(mxEvent.CHANGE, mxUtils.bind(this, function()
+ {
+ tagsButton.style.display = (this.graph.getAllTags().length > 0) ? 'inline-flex' : 'none';
+
+ if (tagsDialog != null && this.graph.getAllTags().length == 0)
+ {
+ tagsDialog.parentNode.removeChild(tagsDialog);
+ tagsDialog = null;
+ }
+ }));
+
+ tagsButton.style.display = (this.graph.getAllTags().length > 0) ? 'inline-flex' : 'none';
+ }
+ }
+ else if (token == 'lightbox')
+ {
+ if (this.lightboxEnabled)
+ {
+ addButton(mxUtils.bind(this, function()
+ {
+ try
+ {
+ this.showLightbox();
+ }
+ catch (e)
+ {
+ alert(e.message);
+ }
+ }), Editor.fullscreenImage, (mxResources.get('fullscreen') || 'Fullscreen'));
+ }
+ }
+ else if (this.graphConfig['toolbar-buttons'] != null)
+ {
+ var def = this.graphConfig['toolbar-buttons'][token];
+
+ if (def != null)
+ {
+ def.elem = addButton((def.enabled == null || def.enabled) ? def.handler : function() {},
+ def.image, def.title, def.enabled);
+ }
+ }
+ }
+
+ if (this.graph.minimumContainerSize != null)
+ {
+ this.graph.minimumContainerSize.width = buttonCount * 34;
+ }
+
+ if (this.graphConfig.title != null)
+ {
+ var filename = container.ownerDocument.createElement('div');
+ filename.style.display = 'inline-flex';
+ filename.style.position = 'relative';
+ filename.style.alignItems = 'center';
+ filename.style.padding = '6px';
+ filename.style.fontFamily = GraphViewer.cssFontFamily;
+ filename.style.fontSize = '12px';
+ filename.style.cursor = 'default';
+ filename.style.color = 'light-dark(#000000, #ffffff)';
+ filename.setAttribute('title', this.graphConfig.titleTooltip || this.graphConfig.title);
+ mxUtils.write(filename, this.graphConfig.title);
+ mxUtils.setOpacity(filename, 70);
+
+ toolbar.appendChild(filename);
+ this.filename = filename;
+ }
+
+ this.minToolbarWidth = buttonCount * 34;
+ var prevBorder = container.style.border;
+
+ var enter = mxUtils.bind(this, function()
+ {
+ toolbar.style.width = (this.graphConfig['toolbar-position'] == 'inline') ? 'auto' :
+ Math.max(this.minToolbarWidth, container.offsetWidth) + 'px';
+ toolbar.style.border = '1px solid #d0d0d0';
+
+ if (this.graphConfig['toolbar-nohide'] != true)
+ {
+ var r = container.getBoundingClientRect();
+
+ // Workaround for position:relative set in ResizeSensor
+ var origin = mxUtils.getScrollOrigin(document.body)
+ var b = (document.body.style.position === 'relative') ?
+ document.body.getBoundingClientRect() :
+ {left: -origin.x, top: -origin.y};
+ r = {left: r.left - b.left, top: r.top - b.top,
+ bottom: r.bottom - b.top, right: r.right - b.left};
+
+ toolbar.style.left = r.left + 'px';
+
+ if (this.graphConfig['toolbar-position'] == 'bottom')
+ {
+ toolbar.style.top = r.bottom - 1 + 'px';
+ }
+ else
+ {
+ if (this.graphConfig['toolbar-position'] != 'inline')
+ {
+ toolbar.style.marginTop = -this.toolbarHeight + 'px';
+ toolbar.style.top = r.top + 1 + 'px';
+ }
+ else
+ {
+ toolbar.style.top = r.top + 'px';
+ }
+ }
+
+ if (prevBorder == '1px solid transparent')
+ {
+ container.style.border = '1px solid #d0d0d0';
+ }
+
+ document.body.appendChild(toolbar);
+
+ var hideToolbar = mxUtils.bind(this, function()
+ {
+ if (toolbar.parentNode != null)
+ {
+ toolbar.parentNode.removeChild(toolbar);
+ }
+
+ if (tagsDialog != null)
+ {
+ tagsDialog.parentNode.removeChild(tagsDialog);
+ tagsDialog = null;
+ }
+
+ if (layersDialog != null)
+ {
+ layersDialog.parentNode.removeChild(layersDialog);
+ layersDialog = null;
+ }
+
+ container.style.border = prevBorder;
+ });
+
+ mxEvent.addListener(document, 'mousemove', function(evt)
+ {
+ var source = mxEvent.getSource(evt);
+
+ while (source != null)
+ {
+ if (source == container ||
+ source == toolbar ||
+ source == layersDialog ||
+ source == tagsDialog)
+ {
+ return;
+ }
+
+ source = source.parentNode;
+ }
+
+ hideToolbar();
+ });
+
+ mxEvent.addListener(document.body, 'mouseleave', function(evt)
+ {
+ hideToolbar();
+ });
+ }
+ else
+ {
+ toolbar.style.top = -this.toolbarHeight + 'px';
+ container.appendChild(toolbar);
+ }
+ });
+
+ if (this.graphConfig['toolbar-nohide'] != true)
+ {
+ mxEvent.addListener(container, 'mouseenter', enter);
+ }
+ else
+ {
+ enter();
+ }
+
+ if (this.responsive && typeof ResizeObserver !== 'undefined')
+ {
+ new ResizeObserver(function()
+ {
+ if (toolbar.parentNode != null)
+ {
+ enter();
+ }
+ }).observe(container)
+ }
+};
+
+/**
+ *
+ */
+GraphViewer.prototype.createToolbarButton = function(fn, imgSrc, tip, enabled)
+{
+ var a = document.createElement('div');
+ a.style.borderRight = '1px solid #d0d0d0';
+ a.style.display = 'inline-flex';
+ a.style.alignItems = 'center';
+ a.style.padding = '6px';
+
+ mxEvent.addListener(a, 'click', fn);
+
+ if (tip != null)
+ {
+ a.setAttribute('title', tip);
+ }
+
+ var img = document.createElement('img');
+ img.setAttribute('border', '0');
+ img.setAttribute('src', imgSrc);
+ img.style.width = '18px';
+ img.className = 'geAdaptiveAsset';
+
+ if (enabled == null || enabled)
+ {
+ mxEvent.addListener(a, 'mouseenter', function()
+ {
+ a.style.backgroundColor = 'light-dark(#dddddd,#333333)';
+ });
+
+ mxEvent.addListener(a, 'mouseleave', function()
+ {
+ a.style.backgroundColor = 'transparent';
+ });
+
+ mxUtils.setOpacity(img, 60);
+ a.style.cursor = 'pointer';
+ }
+ else
+ {
+ mxUtils.setOpacity(a, 30);
+ }
+
+ a.appendChild(img);
+
+ return a;
+};
+
+GraphViewer.prototype.disableButton = function(token, tooltip)
+{
+ var def = this.graphConfig['toolbar-buttons']? this.graphConfig['toolbar-buttons'][token] : null;
+
+ if (def != null)
+ {
+ mxUtils.setOpacity(def.elem, 30);
+ mxEvent.removeListener(def.elem, 'click', def.handler);
+ //Workaround to stop highlighting the disabled button
+ mxEvent.addListener(def.elem, 'mouseenter', function()
+ {
+ def.elem.style.backgroundColor = '#eee';
+ });
+
+ if (tooltip)
+ {
+ def.elem.setAttribute('title', tooltip);
+ }
+ }
+};
+
+/**
+ * Adds event handler for links and lightbox.
+ */
+GraphViewer.prototype.addClickHandler = function(graph, ui)
+{
+ graph.linkPolicy = this.graphConfig.target || graph.linkPolicy;
+
+ graph.addClickHandler(this.graphConfig.highlight, mxUtils.bind(this, function(evt, href, associatedCell)
+ {
+ if (href == null)
+ {
+ var source = mxEvent.getSource(evt);
+
+ while (source != graph.container && source != null && href == null)
+ {
+ if (source.nodeName.toLowerCase() == 'a')
+ {
+ href = source.getAttribute('href');
+ }
+
+ source = source.parentNode;
+ }
+ }
+
+ if (ui != null)
+ {
+ if (href == null || graph.isCustomLink(href))
+ {
+ mxEvent.consume(evt);
+ }
+ else if (!graph.isExternalProtocol(href) &&
+ !graph.isBlankLink(href))
+ {
+ // Hides lightbox if any links are clicked
+ // Async handling needed for anchors to work
+ window.setTimeout(function()
+ {
+ ui.destroy();
+ }, 0);
+ }
+ }
+ else if (href != null && ui == null && graph.isCustomLink(href) &&
+ (mxEvent.isTouchEvent(evt) || !mxEvent.isPopupTrigger(evt)) &&
+ graph.customLinkClicked(href, associatedCell))
+ {
+ // Workaround for text selection in Firefox on Windows
+ mxUtils.clearSelection();
+ mxEvent.consume(evt);
+ }
+ }), mxUtils.bind(this, function(evt)
+ {
+ if (ui == null && this.lightboxClickEnabled &&
+ (!mxEvent.isTouchEvent(evt) ||
+ this.toolbarItems.length == 0))
+ {
+ try
+ {
+ this.showLightbox();
+ }
+ catch (e)
+ {
+ alert(e.message);
+ }
+ }
+ }));
+};
+
+/**
+ * Adds the given array of stencils to avoid dynamic loading of shapes.
+ */
+GraphViewer.prototype.showLightbox = function(editable, closable, target)
+{
+ if (this.graphConfig.lightbox == 'open' || window.self !== window.top)
+ {
+ if (this.lightboxWindow != null && !this.lightboxWindow.closed)
+ {
+ this.lightboxWindow.focus();
+ }
+ else
+ {
+ editable = (editable != null) ? editable :
+ ((this.graphConfig.editable != null) ?
+ this.graphConfig.editable : true);
+ closable = (closable != null) ? closable : true;
+ target = (target != null) ? target : 'blank';
+
+ var param = {'client': 1, 'target': target};
+
+ if (editable)
+ {
+ param.edit = this.graphConfig.edit || '_blank';
+ }
+
+ if (closable)
+ {
+ param.close = 1;
+ }
+
+ if (this.layersEnabled)
+ {
+ param.layers = 1;
+ }
+
+ if (this.tagsEnabled && this.diagrams != null &&
+ this.diagrams[this.currentPage] != null)
+ {
+ // Saves current page's hidden tags before passing to lightbox
+ var curPageId = this.diagrams[this.currentPage].getAttribute('id');
+
+ if (this.graphConfig.hiddenTags == null)
+ {
+ this.graphConfig.hiddenTags = {};
+ }
+
+ this.graphConfig.hiddenTags[curPageId] =
+ (this.graph.hiddenTags.length > 0) ? this.graph.hiddenTags.slice() : null;
+ param.tags = this.graphConfig.hiddenTags;
+ }
+
+ if (this.graphConfig != null && this.graphConfig.nav != false)
+ {
+ param.nav = 1;
+ }
+
+ if (this.graphConfig != null && this.graphConfig.highlight != null)
+ {
+ param.highlight = this.graphConfig.highlight.substring(1);
+ }
+
+ if (this.currentPage != null && this.currentPage > 0)
+ {
+ param.page = this.currentPage;
+ }
+
+ if (typeof window.postMessage !== 'undefined' && (document.documentMode == null || document.documentMode >= 10))
+ {
+ if (this.lightboxWindow == null)
+ {
+ mxEvent.addListener(window, 'message', mxUtils.bind(this, function(evt)
+ {
+ if (evt.data == 'ready' && evt.source == this.lightboxWindow)
+ {
+ this.lightboxWindow.postMessage(this.xml, '*');
+ }
+ }));
+ }
+ }
+ else
+ {
+ // Data is pulled from global variable after tab loads
+ param.data = encodeURIComponent(this.xml);
+ }
+
+ if (urlParams['dev'] == '1')
+ {
+ param.dev = '1';
+ }
+
+ this.lightboxWindow = window.open(((urlParams['dev'] != '1') ?
+ EditorUi.lightboxHost : 'https://test.draw.io') +
+ '/#P' + encodeURIComponent(JSON.stringify(param)));
+ }
+ }
+ else
+ {
+ this.showLocalLightbox();
+ }
+};
+
+/**
+ * Adds the given array of stencils to avoid dynamic loading of shapes.
+ */
+GraphViewer.prototype.showLocalLightbox = function(container)
+{
+ var backdrop = document.createElement('div');
+ backdrop.style.position = 'fixed';
+ backdrop.style.top = '0';
+ backdrop.style.left = '0';
+ backdrop.style.bottom = '0';
+ backdrop.style.right = '0';
+ backdrop.style.zIndex = this.lightboxZIndex;
+ backdrop.style.backgroundColor = '#000000';
+ mxUtils.setOpacity(backdrop, 70);
+
+ document.body.appendChild(backdrop);
+
+ var closeImg = document.createElement('img');
+ closeImg.setAttribute('border', '0');
+ closeImg.setAttribute('src', Editor.closeBlackImage);
+ closeImg.style.position = 'fixed';
+ closeImg.style.top = '32px';
+ closeImg.style.right = '32px';
+ closeImg.style.cursor = 'pointer';
+ closeImg.className = 'geAdaptiveAsset';
+
+ var updateDarkMode = mxUtils.bind(this, function()
+ {
+ ui.setDarkMode(this.isDarkMode());
+ });
+
+ mxEvent.addListener(closeImg, 'click', mxUtils.bind(this, function()
+ {
+ this.removeListener('darkModeChanged', updateDarkMode);
+ ui.destroy();
+ }));
+
+ // LATER: Make possible to assign after instance was created
+ urlParams['pages'] = '1';
+ urlParams['page'] = this.currentPage;
+ urlParams['page-id'] = this.graphConfig.pageId;
+ urlParams['layer-ids'] = (this.graphConfig.layerIds != null && this.graphConfig.layerIds.length > 0)
+ ? this.graphConfig.layerIds.join(' ') : null;
+ urlParams['nav'] = (this.graphConfig.nav != false) ? '1' : '0';
+ urlParams['layers'] = (this.layersEnabled) ? '1' : '0';
+ urlParams['dark'] = (this.isDarkMode()) ? '1' : '0';
+
+ if (this.tagsEnabled && this.diagrams != null &&
+ this.diagrams[this.currentPage] != null)
+ {
+ // Saves current page's hidden tags before passing to lightbox
+ var curPageId = this.diagrams[this.currentPage].getAttribute('id');
+
+ if (this.graphConfig.hiddenTags == null)
+ {
+ this.graphConfig.hiddenTags = {};
+ }
+
+ this.graphConfig.hiddenTags[curPageId] =
+ (this.graph.hiddenTags.length > 0) ? this.graph.hiddenTags.slice() : null;
+ urlParams['tags'] = JSON.stringify(this.graphConfig.hiddenTags);
+ }
+
+ if (container != null)
+ {
+ try
+ {
+ var toolbarConfig = JSON.parse(decodeURIComponent(urlParams['toolbar-config'] || '{}'));
+ toolbarConfig.noCloseBtn = true;
+ urlParams['toolbar-config'] = encodeURIComponent(JSON.stringify(toolbarConfig));
+ }
+ catch (e) {}
+ }
+
+ // PostMessage not working and Permission denied for opened access in IE9-
+ if (document.documentMode == null || document.documentMode >= 10)
+ {
+ Editor.prototype.editButtonLink = this.graphConfig.edit;
+ Editor.prototype.editButtonFunc = this.graphConfig.editFunc;
+ }
+
+ EditorUi.prototype.updateActionStates = function() {};
+ EditorUi.prototype.addBeforeUnloadListener = function() {};
+ EditorUi.prototype.addChromelessClickHandler = function() {};
+
+ var ui = new EditorUi(new Editor(true), document.createElement('div'), true);
+ this.addListener('darkModeChanged', updateDarkMode);
+ ui.editor.editBlankUrl = this.editBlankUrl;
+
+ // Disables refresh
+ ui.refresh = function() {};
+
+ // Handles escape keystroke
+ var keydownHandler = mxUtils.bind(this, function(evt)
+ {
+ if (evt.keyCode == 27 /* Escape */)
+ {
+ ui.destroy();
+ }
+ });
+
+ var overflow = this.initialOverflow;
+ var destroy = ui.destroy;
+
+ ui.destroy = function()
+ {
+ if (container == null)
+ {
+ mxEvent.removeListener(document.documentElement, 'keydown', keydownHandler);
+ document.body.removeChild(backdrop);
+ document.body.removeChild(closeImg);
+ document.body.style.overflow = overflow;
+ GraphViewer.resizeSensorEnabled = true;
+
+ destroy.apply(this, arguments);
+ }
+ };
+
+ var graph = ui.editor.graph;
+ var lightbox = graph.container;
+ lightbox.style.overflow = 'hidden';
+ lightbox.style.inset = '0';
+
+ if (this.lightboxChrome && container == null)
+ {
+ lightbox.style.border = '1px solid #c0c0c0';
+ lightbox.style.margin = '40px';
+
+ // Installs the keystroke listener in the target
+ mxEvent.addListener(document.documentElement, 'keydown', keydownHandler);
+ }
+ else
+ {
+ backdrop.style.display = 'none';
+ closeImg.style.display = 'none';
+ }
+
+ // Handles relative images
+ var self = this;
+
+ graph.getImageFromBundles = function(key)
+ {
+ return self.getImageUrl(key);
+ };
+
+ // Handles relative images in print output and temporary graphs
+ var uiCreateTemporaryGraph = ui.createTemporaryGraph;
+
+ ui.createTemporaryGraph = function()
+ {
+ var newGraph = uiCreateTemporaryGraph.apply(this, arguments);
+
+ newGraph.getImageFromBundles = function(key)
+ {
+ return self.getImageUrl(key);
+ };
+
+ return newGraph;
+ };
+
+ if (this.graphConfig.move)
+ {
+ graph.isMoveCellsEvent = function(evt)
+ {
+ return true;
+ };
+ }
+
+ mxUtils.setPrefixedStyle(lightbox.style, 'border-radius', '4px');
+ lightbox.style.position = 'fixed';
+
+ GraphViewer.resizeSensorEnabled = false;
+ document.body.style.overflow = 'hidden';
+ this.addClickHandler(graph, ui);
+
+ window.setTimeout(mxUtils.bind(this, function()
+ {
+ try
+ {
+ // Click on backdrop closes lightbox
+ mxEvent.addListener(backdrop, 'click', function()
+ {
+ ui.destroy();
+ });
+
+ // Disables focus border in Chrome
+ lightbox.style.outline = 'none';
+ lightbox.style.zIndex = this.lightboxZIndex;
+ closeImg.style.zIndex = this.lightboxZIndex;
+
+ if (container != null)
+ {
+ container.innerHTML = '';
+ container.appendChild(lightbox);
+ }
+ else
+ {
+ document.body.appendChild(lightbox);
+ document.body.appendChild(closeImg);
+ }
+
+ ui.setFileData(this.xml);
+
+ // Applies initial hidden tags for the current page before
+ // lightboxFit so that the view fits the visible cells
+ if (this.tagsEnabled && this.graphConfig.hiddenTags != null &&
+ ui.currentPage != null)
+ {
+ var pageId = ui.currentPage.getId();
+ var pageTags = this.graphConfig.hiddenTags[pageId];
+ graph.hiddenTags = (pageTags != null && pageTags.length > 0) ? pageTags : [];
+ graph.refresh();
+ }
+
+ mxUtils.setPrefixedStyle(lightbox.style, 'transform', 'rotateY(0deg)');
+ ui.chromelessToolbar.style.bottom = 60 + 'px';
+ ui.chromelessToolbar.style.zIndex = this.lightboxZIndex;
+
+ // Workaround for clipping in IE11-
+ (container || document.body).appendChild(ui.chromelessToolbar);
+
+ ui.getEditBlankXml = mxUtils.bind(this, function()
+ {
+ return this.xml;
+ });
+
+ this.showLayers(graph, this.graph);
+ ui.lightboxFit();
+ ui.chromelessResize();
+ }
+ catch (e)
+ {
+ ui.handleError(e, null, function()
+ {
+ ui.destroy();
+ });
+ }
+ }), 0);
+
+ return ui;
+};
+
+/**
+ * Removes the dialog from the DOM.
+ */
+Dialog.prototype.getDocumentSize = function()
+{
+ var vw = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0)
+ var vh = Math.max(document.documentElement.clientHeight || 0, window.innerHeight || 0)
+
+ return new mxRectangle(0, 0, vw, vh);
+};
+
+/**
+ *
+ */
+GraphViewer.prototype.updateTitle = function(title, titleTooltip)
+{
+ title = title || '';
+
+ if (this.showTitleAsTooltip && this.graph != null && this.graph.container != null)
+ {
+ this.graph.container.setAttribute('title', titleTooltip || title);
+ }
+
+ if (this.filename != null)
+ {
+ this.filename.innerText = '';
+ mxUtils.write(this.filename, title);
+ this.filename.setAttribute('title', titleTooltip || title);
+ }
+};
+
+/**
+ *
+ */
+GraphViewer.processElements = function(classname)
+{
+ mxUtils.forEach(GraphViewer.getElementsByClassName(classname || 'mxgraph'), function(div)
+ {
+ try
+ {
+ div.innerText = '';
+ GraphViewer.createViewerForElement(div);
+ }
+ catch (e)
+ {
+ div.innerText = e.message;
+
+ if (window.console != null)
+ {
+ console.error(e);
+ }
+ }
+ });
+};
+
+/**
+ * Adds the given array of stencils to avoid dynamic loading of shapes.
+ */
+GraphViewer.getElementsByClassName = function(classname)
+{
+ if (document.getElementsByClassName)
+ {
+ var divs = document.getElementsByClassName(classname);
+
+ // Workaround for changing divs while processing
+ var result = [];
+
+ for (var i = 0; i < divs.length; i++)
+ {
+ result.push(divs[i]);
+ }
+
+ return result;
+ }
+ else
+ {
+ var tmp = document.getElementsByTagName('*');
+ var divs = [];
+
+ for (var i = 0; i < tmp.length; i++)
+ {
+ var cls = tmp[i].className;
+
+ if (cls != null && cls.length > 0)
+ {
+ var tokens = cls.split(' ');
+
+ if (mxUtils.indexOf(tokens, classname) >= 0)
+ {
+ divs.push(tmp[i]);
+ }
+ }
+ }
+
+ return divs;
+ }
+};
+
+/**
+ * Adds the given array of stencils to avoid dynamic loading of shapes.
+ */
+GraphViewer.createViewerForElement = function(element, callback)
+{
+ var data = element.getAttribute('data-mxgraph');
+
+ if (data != null)
+ {
+ var config = JSON.parse(data);
+
+ var createViewer = function(xml)
+ {
+ var xmlDoc = mxUtils.parseXml(xml);
+ var viewer = new GraphViewer(element, xmlDoc.documentElement, config);
+
+ if (callback != null)
+ {
+ callback(viewer);
+ }
+ };
+
+ if (config.url != null)
+ {
+ GraphViewer.getUrl(config.url, function(xml)
+ {
+ createViewer(xml);
+ });
+ }
+ else
+ {
+ createViewer(config.xml);
+ }
+ }
+};
+
+/**
+ *
+ */
+GraphViewer.blockedAncestorFrames = function()
+{
+ try
+ {
+ if (window.location.ancestorOrigins && window.location.hostname &&
+ window.location.ancestorOrigins.length && window.location.ancestorOrigins.length > 0)
+ {
+ var hostname = window.location.hostname;
+
+ if (hostname && hostname.length > 1 && hostname.charAt(hostname.length - 1) == '/')
+ {
+ hostname = hostname.substring(0, hostname.length - 1)
+ }
+
+ var message = '';
+
+ for (var i = 0; i < window.location.ancestorOrigins.length; i++)
+ {
+ message += ' -> ' + window.location.ancestorOrigins[i];
+
+ // Running commercial, competing services using our infrastructure isn't allowed.
+ if (message.endsWith('dan6v7pm1f1a1.cloudfront.net') || message.endsWith('confluence-cloud-excalidraw-ll3likebca-uc.a.run.app'))
+ {
+ return true;
+ }
+ }
+
+ if ((hostname.endsWith('ac.draw.io') || hostname.endsWith('aj.draw.io')) && window.location.ancestorOrigins.length == 1 &&
+ window.location.ancestorOrigins[0] && window.location.ancestorOrigins[0].endsWith('.atlassian.net'))
+ {
+ // do not log *.draw.io domains embedded directly into atlassian.net
+ }
+ // else if (window.location.ancestorOrigins.length > 0)
+ // {
+ // var img = new Image();
+ // img.src = 'https://log.diagrams.net/images/1x1.png?src=ViewerAncestorFrames' +
+ // ((typeof window.EditorUi !== 'undefined') ? '&v=' + encodeURIComponent(EditorUi.VERSION) : '') +
+ // '&data=' + encodeURIComponent(message);
+ // }
+ }
+ }
+ catch (e)
+ {
+ // ignore
+ }
+
+ return false;
+};
+
+/**
+ * Default dark background color.
+ */
+GraphViewer.darkBackgroundColor = Editor.darkColor;
+
+/**
+ * Default CSS font family.
+ */
+GraphViewer.cssFontFamily = Editor.defaultHtmlFont;
+
+/**
+ * Dark Colors
+ */
+GraphViewer.shapeBackgroundColor = null;
+
+/**
+ * Invoked when the given viewer was initialized.
+ */
+GraphViewer.viewerInitialized = function(graphViewer)
+{
+ // Hook for subclassers
+};
+
+/**
+ * Adds event if grid size is changed.
+ */
+GraphViewer.initCss = function()
+{
+ try
+ {
+ if (GraphViewer.styleElement == null)
+ {
+ GraphViewer.styleElement = document.createElement('style')
+ GraphViewer.styleElement.setAttribute('type', 'text/css');
+ GraphViewer.styleElement.innerHTML = GraphViewer.getCss();
+
+ if (!GraphViewer.blockedAncestorFrames())
+ {
+ document.getElementsByTagName('head')[0].appendChild(GraphViewer.styleElement);
+ }
+ }
+ }
+ catch (e)
+ {
+ // ignore
+ }
+};
+
+/**
+ * Redirects editing to absolue URLs.
+ */
+GraphViewer.getCss = function()
+{
+ return [
+ '.geDarkMode img {',
+ ' filter: invert(1);',
+ '}',
+ 'div.mxTooltip {',
+ ' box-shadow: 3px 3px 12px light-dark(#c0c0c0, transparent);',
+ ' background: light-dark(#ffffcc, ' + GraphViewer.darkBackgroundColor + ');',
+ ' border-style: solid;',
+ ' border-width: 1px;',
+ ' border-color: black;',
+ ' font-family: ' + GraphViewer.cssFontFamily + ';',
+ ' font-size: 8pt;',
+ ' position: absolute;',
+ ' cursor: default;',
+ ' padding: 4px;',
+ ' color: black;',
+ '}',
+ 'td.mxPopupMenuIcon div {',
+ ' width: 16px;',
+ ' height: 16px;',
+ '}',
+ 'div.mxPopupMenu {',
+ ' box-shadow: 2px 2px 3px light-dark(#d5d5d5, transparent);',
+ ' background: white;',
+ ' position: absolute;',
+ ' border: 3px solid #e7e7e7;',
+ ' padding: 3px;',
+ '}',
+ 'table.mxPopupMenu {',
+ ' border-collapse: collapse;',
+ ' margin: 0px;',
+ '}',
+ 'td.mxPopupMenuItem {',
+ ' padding: 7px 30px;',
+ ' font-family: ' + GraphViewer.cssFontFamily + ';',
+ ' font-size: 10pt;',
+ '}',
+ 'td.mxPopupMenuIcon {',
+ ' background-color: light-dark(#ffffff, ' + GraphViewer.darkBackgroundColor + ');',
+ ' padding: 0px;',
+ '}',
+ 'tr.mxPopupMenuItemHover {',
+ ' background-color: #eeeeee;',
+ ' color: black;',
+ '}',
+ 'table.mxPopupMenu hr {',
+ ' color: #cccccc;',
+ ' background-color: #cccccc;',
+ ' border: none;',
+ ' height: 1px;',
+ '}',
+ 'table.mxPopupMenu tr {',
+ ' font-size: 4pt;',
+ '}',
+ // Modified to only apply to the print dialog
+ '.geDialog, .geDialog table {',
+ ' font-family: ' + GraphViewer.cssFontFamily + ';',
+ ' font-size: 10pt;',
+ ' border: none;',
+ ' margin: 0px;',
+ '}',
+ // These are required for the print dialog
+ '.geDialog {',
+ ' position: fixed;',
+ ' background: light-dark(#ffffff, ' + GraphViewer.darkBackgroundColor + ');',
+ ' color: light-dark(#3f3f3f, #c0c0c0);',
+ ' box-shadow: 0px 0px 2px 2px light-dark(#d5d5d5, transparent);',
+ ' border: 1px solid light-dark(#dadada, #565656);',
+ ' overflow: hidden;',
+ ' padding: 30px;',
+ ' left: 50%;',
+ ' top: 50%;',
+ ' max-height: 100%;',
+ ' max-width: 100%;',
+ ' box-sizing: border-box;',
+ ' transform: translate(-50%, -50%);',
+ ' z-index: ' + (GraphViewer.prototype.lightboxZIndex + 2) + ';',
+ '}',
+ '.geBackground {',
+ ' background-color: light-dark(#ffffff, ' + GraphViewer.darkBackgroundColor + ');',
+ ' position: fixed;',
+ ' left: 0px;',
+ ' top: 0px;',
+ ' right: 0px;',
+ ' bottom: 0px;',
+ ' opacity: 0.9;',
+ ' z-index: ' + (GraphViewer.prototype.lightboxZIndex + 1) + ';',
+ '}',
+ '.geDialogTitle {',
+ ' box-sizing: border-box;',
+ ' white-space: nowrap;',
+ ' background: light-dark(#f1f3f4, ' + GraphViewer.darkBackgroundColor + ');',
+ ' border-bottom: 1px solid rgb(192, 192, 192);',
+ ' font-size: 15px;',
+ ' font-weight: bold;',
+ ' text-align: center;',
+ ' color: rgb(35, 86, 149);',
+ '}',
+ '.geDialogFooter {',
+ ' background: light-dark(#f1f3f4, ' + GraphViewer.darkBackgroundColor + ');',
+ ' white-space: nowrap;',
+ ' text-align: right;',
+ ' box-sizing: border-box;',
+ ' border-top: 1px solid #e5e5e5;',
+ ' color: darkGray;',
+ '}',
+ '.geHelpIcon {',
+ ' width: 16px;',
+ ' margin: 0 4px;',
+ ' vertical-align: text-bottom;',
+ '}',
+ '.geBtn, .mxWindow .geBtn {',
+ ' background-color: light-dark(#eeeeee, #1b1d1e);',
+ ' border: 1px solid light-dark(#d8d8d8, #333333);',
+ ' color: light-dark(#3f3f3f, #c0c0c0);',
+ ' font-size: 13px;',
+ ' font-weight: 500;',
+ ' border-radius: 4px;',
+ ' height: 30px;',
+ ' margin: 0 0 0 8px;',
+ ' min-width: 72px;',
+ ' outline: 0;',
+ ' padding: 0 8px;',
+ ' text-overflow: ellipsis;',
+ ' white-space: nowrap;',
+ ' overflow: hidden;',
+ '}',
+ '.geBtn:hover:not(.gePrimaryBtn), .geBtn:focus {',
+ ' border: 1px solid light-dark(#c6c6c6, #333333);',
+ ' background: light-dark(#dadada, #333333);',
+ '}',
+ '.geBtn:disabled {',
+ ' opacity: .5;',
+ '}',
+ '.gePrimaryBtn {',
+ ' background: linear-gradient(light-dark(#4d90fe, #003555) 0px, light-dark(#4787ed, #003555) 100%);',
+ ' border: 1px solid light-dark(#3079ed, transparent);',
+ ' color: light-dark(#ffffff, #c0c0c0);',
+ '}',
+ '.gePrimaryBtn:hover:not([disabled]) {',
+ ' background: linear-gradient(light-dark(#4d90fe, #004a77) 0px, light-dark(#357ae8, #004a77) 100%);',
+ ' border: 1px solid light-dark(#2f5bb7, transparent);',
+ '}',
+ '.geBtn:disabled {',
+ ' opacity: .5;',
+ '}'
+ ].join('\n');
+};
+
+/**
+ * Lookup for URLs.
+ */
+GraphViewer.cachedUrls = {};
+
+/**
+ * Workaround for unsupported CORS in IE9 XHR
+ */
+GraphViewer.getUrl = function(url, onload, onerror)
+{
+ if (GraphViewer.cachedUrls[url] != null)
+ {
+ onload(GraphViewer.cachedUrls[url]);
+ }
+ else
+ {
+ var xhr = (navigator.userAgent != null && navigator.userAgent.indexOf('MSIE 9') > 0) ?
+ new XDomainRequest() : new XMLHttpRequest();
+ xhr.open('GET', url);
+
+ xhr.onload = function()
+ {
+ onload((xhr.getText != null) ? xhr.getText() : xhr.responseText);
+ };
+
+ xhr.onerror = onerror;
+ xhr.send();
+ }
+};
+
+/**
+ * Redirects editing to absolue URLs.
+ */
+GraphViewer.resizeSensorEnabled = true;
+
+/**
+ * Specifies if ResizeObserver should be used instead of ResizeSensor.
+ * Default is true.
+ */
+GraphViewer.useResizeObserver = true;
+
+/**
+ * Redirects editing to absolue URLs.
+ */
+GraphViewer.useResizeSensor = true;
+
+/**
+ * Copyright Marc J. Schmidt. See the LICENSE file at the top-level
+ * directory of this distribution and at
+ * https://github.com/marcj/css-element-queries/blob/master/LICENSE.
+ */
+(function() {
+
+ // Only used for the dirty checking, so the event callback count is limted to max 1 call per fps per sensor.
+ // In combination with the event based resize sensor this saves cpu time, because the sensor is too fast and
+ // would generate too many unnecessary events.
+ var requestAnimationFrame = window.requestAnimationFrame ||
+ window.mozRequestAnimationFrame ||
+ window.webkitRequestAnimationFrame ||
+ function (fn) {
+ return window.setTimeout(fn, 20);
+ };
+
+ /**
+ * Class for dimension change detection.
+ *
+ * @param {Element|Element[]|Elements|jQuery} element
+ * @param {Function} callback
+ *
+ * @constructor
+ */
+ var ResizeSensor = function(element, fn) {
+
+ var callback = function()
+ {
+ if (GraphViewer.resizeSensorEnabled)
+ {
+ fn();
+ }
+ };
+
+ // Uses ResizeObserver, if available
+ if (GraphViewer.useResizeObserver && typeof ResizeObserver !== 'undefined')
+ {
+ var callbackThread = null;
+ var active = false;
+
+ new ResizeObserver(function()
+ {
+ if (!active)
+ {
+ if (callbackThread != null)
+ {
+ window.clearTimeout(callbackThread);
+ }
+
+ callbackThread = window.setTimeout(function()
+ {
+ active = true;
+ callback();
+ callbackThread = null;
+ active = false;
+ }, 200);
+ }
+ }).observe(element)
+
+ return
+ }
+ /** *
+ * @constructor
+ */
+ function EventQueue() {
+ this.q = [];
+ this.add = function(ev) {
+ this.q.push(ev);
+ };
+
+ var i, j;
+ this.call = function() {
+ for (i = 0, j = this.q.length; i < j; i++) {
+ this.q[i].call();
+ }
+ };
+ }
+/** * @param {HTMLElement} element
+ * @param {String} prop
+ * @returns {String|Number}
+ */
+ function getComputedStyle(element, prop) {
+ if (element.currentStyle) {
+ return element.currentStyle[prop];
+ } else if (window.getComputedStyle) {
+ return window.getComputedStyle(element, null).getPropertyValue(prop);
+ } else {
+ return element.style[prop];
+ }
+ }
+/** *
+ * @param {HTMLElement} element
+ * @param {Function} resized
+ */
+ function attachResizeEvent(element, resized) {
+ if (!element.resizedAttached) {
+ element.resizedAttached = new EventQueue();
+ element.resizedAttached.add(resized);
+ } else if (element.resizedAttached) {
+ element.resizedAttached.add(resized);
+ return;
+ }
+
+ element.resizeSensor = document.createElement('div');
+ element.resizeSensor.className = 'resize-sensor';
+ var style = 'position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;';
+ var styleChild = 'position: absolute; left: 0; top: 0; transition: 0s;';
+
+ element.resizeSensor.style.cssText = style;
+ element.resizeSensor.innerHTML =
+ '<div class="resize-sensor-expand" style="' + style + '">' +
+ '<div style="' + styleChild + '"></div>' +
+ '</div>' +
+ '<div class="resize-sensor-shrink" style="' + style + '">' +
+ '<div style="' + styleChild + ' width: 200%; height: 200%"></div>' +
+ '</div>';
+ element.appendChild(element.resizeSensor);
+
+ // FIXME: Should not change element style
+ if (getComputedStyle(element, 'position') == 'static') {
+ element.style.position = 'relative';
+ }
+
+ var expand = element.resizeSensor.childNodes[0];
+ var expandChild = expand.childNodes[0];
+ var shrink = element.resizeSensor.childNodes[1];
+
+ var reset = function() {
+ expandChild.style.width = 100000 + 'px';
+ expandChild.style.height = 100000 + 'px';
+
+ expand.scrollLeft = 100000;
+ expand.scrollTop = 100000;
+
+ shrink.scrollLeft = 100000;
+ shrink.scrollTop = 100000;
+ };
+
+ reset();
+ var dirty = false;
+
+ var dirtyChecking = function(){
+ if (!element.resizedAttached) return;
+
+ if (dirty) {
+ element.resizedAttached.call();
+ dirty = false;
+ }
+
+ requestAnimationFrame(dirtyChecking);
+ };
+
+ requestAnimationFrame(dirtyChecking);
+ var lastWidth, lastHeight;
+ var cachedWidth, cachedHeight; //useful to not query offsetWidth twice
+
+ var onScroll = function() {
+ if ((cachedWidth = element.offsetWidth) != lastWidth || (cachedHeight = element.offsetHeight) != lastHeight) {
+ dirty = true;
+
+ lastWidth = cachedWidth;
+ lastHeight = cachedHeight;
+ }
+ reset();
+ };
+
+ var addEvent = function(el, name, cb) {
+ if (el.attachEvent) {
+ el.attachEvent('on' + name, cb);
+ } else {
+ el.addEventListener(name, cb);
+ }
+ };
+
+ addEvent(expand, 'scroll', onScroll);
+ addEvent(shrink, 'scroll', onScroll);
+ }
+
+ var elementType = Object.prototype.toString.call(element);
+ var isCollectionTyped = ('[object Array]' === elementType
+ || ('[object NodeList]' === elementType)
+ || ('[object HTMLCollection]' === elementType)
+ || ('undefined' !== typeof jQuery && element instanceof jQuery) //jquery
+ || ('undefined' !== typeof Elements && element instanceof Elements) //mootools
+ );
+
+ if (isCollectionTyped) {
+ var i = 0, j = element.length;
+ for (; i < j; i++) {
+ attachResizeEvent(element[i], callback);
+ }
+ } else {
+ attachResizeEvent(element, callback);
+ }
+
+ this.detach = function() {
+ if (isCollectionTyped) {
+ var i = 0, j = element.length;
+ for (; i < j; i++) {
+ ResizeSensor.detach(element[i]);
+ }
+ } else {
+ ResizeSensor.detach(element);
+ }
+ };
+ };
+
+ ResizeSensor.detach = function(element) {
+ if (element.resizeSensor) {
+ element.removeChild(element.resizeSensor);
+ delete element.resizeSensor;
+ delete element.resizedAttached;
+ }
+ };
+
+ window.ResizeSensor = ResizeSensor;
+})();
diff --git a/src/main/webapp/js/diagramly/Menus.js b/src/main/webapp/js/diagramly/Menus.js
index 155acfbaf..c871f6a2e 100644
--- a/src/main/webapp/js/diagramly/Menus.js
+++ b/src/main/webapp/js/diagramly/Menus.js
@@ -2314,8 +2314,8 @@
{
if (mxClient.IS_CHROMEAPP || !editorUi.isOffline())
{
- editorUi.showDialog(new MoreShapesDialog(editorUi, true).container, 640, (isLocalStorage) ?
- ((mxClient.IS_IOS) ? 480 : 460) : 440, true, true);
+ editorUi.showDialog(new MoreShapesDialog(editorUi, true).container, 680, (isLocalStorage) ?
+ ((mxClient.IS_IOS) ? 500 : 480) : 460, true, true);
}
else
{
diff --git a/src/main/webapp/js/grapheditor/EditorUi.js b/src/main/webapp/js/grapheditor/EditorUi.js
index b0ba4f5ef..a4432de69 100644
--- a/src/main/webapp/js/grapheditor/EditorUi.js
+++ b/src/main/webapp/js/grapheditor/EditorUi.js
@@ -465,13 +465,14 @@ EditorUi = function(editor, container, lightbox)
}
else if (evt.which == 32 /* Space */ && !graph.isEditing())
{
- this.spaceDown = true;
- this.hoverIcons.reset();
- graph.container.style.cursor = 'move';
-
- // Disables scroll after space keystroke with scrollbars
- if (!graph.isEditing())
+ var source = mxEvent.getSource(evt);
+
+ if (source.nodeName != 'INPUT' && source.nodeName != 'TEXTAREA' &&
+ source.nodeName != 'SELECT' && !source.isContentEditable)
{
+ this.spaceDown = true;
+ this.hoverIcons.reset();
+ graph.container.style.cursor = 'move';
mxEvent.consume(evt);
}
}
@@ -1128,7 +1129,7 @@ EditorUi.prototype.formatWidth = 240;
* Specifies the default sidebar width.
*/
EditorUi.prototype.defaultSidebarWidth = Math.min(screen.width / 2,
- (urlParams['sidebar-entries'] != 'large') ? 220 : 230);
+ (urlParams['sidebar-entries'] != 'large') ? 232 : 242);
/**
* Specifies the position of the horizontal split bar.
diff --git a/src/main/webapp/js/grapheditor/Format.js b/src/main/webapp/js/grapheditor/Format.js
index b31405feb..263d12fa0 100644
--- a/src/main/webapp/js/grapheditor/Format.js
+++ b/src/main/webapp/js/grapheditor/Format.js
@@ -5,6 +5,7 @@ Format = function(editorUi, container)
{
this.editorUi = editorUi;
this.container = container;
+ this.collapsedSections = {};
};
/**
@@ -542,7 +543,65 @@ BaseFormatPanel.prototype.createTitle = function(title)
};
/**
- *
+ * Creates a collapsible section with a toggle chevron.
+ * Returns {wrapper, contentDiv} where contentDiv is the
+ * container for section content.
+ */
+BaseFormatPanel.prototype.createCollapsibleSection = function(title, defaultCollapsed)
+{
+ var state = this.format.collapsedSections;
+
+ // Use stored state if available, otherwise use default
+ var collapsed = (state[title] != null) ? state[title] : defaultCollapsed;
+
+ var wrapper = document.createElement('div');
+ wrapper.className = 'geFormatSection';
+
+ var titleDiv = document.createElement('div');
+ titleDiv.className = 'geCollapsibleTitle' + (collapsed ? '' : ' geExpanded');
+ titleDiv.setAttribute('title', title);
+ mxUtils.write(titleDiv, title);
+ wrapper.appendChild(titleDiv);
+
+ var contentDiv = document.createElement('div');
+ contentDiv.className = 'geCollapsibleContent' + (collapsed ? ' geCollapsed' : '');
+ wrapper.appendChild(contentDiv);
+
+ mxEvent.addListener(titleDiv, 'click', function()
+ {
+ titleDiv.classList.toggle('geExpanded');
+ contentDiv.classList.toggle('geCollapsed');
+ state[title] = !titleDiv.classList.contains('geExpanded');
+ });
+
+ return {wrapper: wrapper, contentDiv: contentDiv};
+};
+
+/**
+ * Hides the collapsible wrapper if inner panel is hidden (display none)
+ * or has no visible children. Also observes style changes to keep in sync.
+ */
+BaseFormatPanel.prototype.syncCollapsibleVisibility = function(wrapper, innerPanel)
+{
+ var update = function()
+ {
+ wrapper.style.display = (innerPanel.style.display == 'none') ? 'none' : '';
+ };
+
+ // Initial check
+ update();
+
+ // Observe attribute changes on inner panel for dynamic display toggling
+ if (typeof MutationObserver !== 'undefined')
+ {
+ var observer = new MutationObserver(update);
+ observer.observe(innerPanel, {attributes: true, attributeFilter: ['style']});
+ this.listeners.push({destroy: function() { observer.disconnect(); }});
+ }
+};
+
+/**
+ *
*/
BaseFormatPanel.prototype.addAction = function(div, name)
{
@@ -1592,31 +1651,52 @@ ArrangePanel.prototype.init = function()
if (ss.cells.length > 0)
{
this.container.appendChild(this.addLayerOps(this.createPanel()));
-
+
// Special case that adds two panels
- this.addGeometry(this.container);
- this.addEdgeGeometry(this.container);
-
+ var geoSec = this.createCollapsibleSection(mxResources.get('size') +
+ ' / ' + mxResources.get('position'), false);
+ this.addGeometry(geoSec.contentDiv);
+
+ if (geoSec.contentDiv.childNodes.length > 0)
+ {
+ this.container.appendChild(geoSec.wrapper);
+ }
+
+ if (ss.edges.length > 0)
+ {
+ var edgeGeoSec = this.createCollapsibleSection(mxResources.get('waypoints', null, 'Waypoints'), false);
+ this.addEdgeGeometry(edgeGeoSec.contentDiv);
+ this.container.appendChild(edgeGeoSec.wrapper);
+ }
+
if (!ss.containsLabel || ss.edges.length == 0)
{
- this.container.appendChild(this.addAngle(this.createPanel()));
+ var angleSec = this.createCollapsibleSection(mxResources.get('rotation'), true);
+ angleSec.contentDiv.appendChild(this.addAngle(this.createPanel()));
+ this.container.appendChild(angleSec.wrapper);
}
-
+
if (!ss.containsLabel)
{
- this.container.appendChild(this.addFlip(this.createPanel()));
+ var flipSec = this.createCollapsibleSection(mxResources.get('flip'), true);
+ flipSec.contentDiv.appendChild(this.addFlip(this.createPanel()));
+ this.container.appendChild(flipSec.wrapper);
}
this.container.appendChild(this.addAlign(this.createPanel()));
-
+
if (ss.vertices.length > 1 && !ss.cell && !ss.row)
{
this.container.appendChild(this.addDistribute(this.createPanel()));
}
- this.container.appendChild(this.addTable(this.createPanel()));
+ var tablePanel = this.addTable(this.createPanel());
+ var tableSec = this.createCollapsibleSection(mxResources.get('table'), true);
+ tableSec.contentDiv.appendChild(tablePanel);
+ this.container.appendChild(tableSec.wrapper);
+ this.syncCollapsibleVisibility(tableSec.wrapper, tablePanel);
}
-
+
// Allows to lock/unload button to be added
this.container.appendChild(this.addGroupOps(this.createPanel()));
};
@@ -1629,9 +1709,7 @@ ArrangePanel.prototype.addTable = function(div)
var ui = this.editorUi;
var editor = ui.editor;
var graph = editor.graph;
- var ss = ui.getSelectionState();
- div.appendChild(this.createTitle(mxResources.get('table')));
-
+ var ss = ui.getSelectionState();
var panel = document.createElement('div');
panel.style.position = 'relative';
panel.style.paddingLeft = '0px';
@@ -3740,15 +3818,6 @@ TextFormatPanel.prototype.addFont = function(container)
var spacingPanel = this.createPanel();
spacingPanel.style.height = '86px';
-
- var span = document.createElement('div');
- span.style.position = 'absolute';
- span.style.width = '70px';
- span.style.marginTop = '0px';
- span.style.fontWeight = 'bold';
- mxUtils.write(span, mxResources.get('spacing'));
- span.setAttribute('title', mxResources.get('spacing'));
- spacingPanel.appendChild(span);
var topUpdate, globalUpdate, leftUpdate, bottomUpdate, rightUpdate;
var topSpacing = this.addUnitInput(spacingPanel, this.getUnit(), 87, 52, function()
@@ -3793,7 +3862,9 @@ TextFormatPanel.prototype.addFont = function(container)
{
container.appendChild(extraPanel);
container.appendChild(this.createRelativeOption(mxResources.get('opacity'), mxConstants.STYLE_TEXT_OPACITY));
- container.appendChild(spacingPanel);
+ var spacingSec = this.createCollapsibleSection(mxResources.get('spacing'), true);
+ spacingSec.contentDiv.appendChild(spacingPanel);
+ container.appendChild(spacingSec.wrapper);
}
else
{
@@ -4629,22 +4700,35 @@ StyleFormatPanel.prototype.init = function()
if (ss.fill)
{
- this.container.appendChild(this.addFill(this.createPanel()));
+ var fillSec = this.createCollapsibleSection(mxResources.get('fill'), false);
+ fillSec.contentDiv.appendChild(this.addFill(this.createPanel()));
+ this.container.appendChild(fillSec.wrapper);
}
-
- this.container.appendChild(this.addStroke(this.createPanel()));
- this.container.appendChild(this.addLineJumps(this.createPanel()));
+
+ var strokeSec = this.createCollapsibleSection(mxResources.get('line'), false);
+ strokeSec.contentDiv.appendChild(this.addStroke(this.createPanel()));
+ this.container.appendChild(strokeSec.wrapper);
+
+ var lineJumpsPanel = this.addLineJumps(this.createPanel());
+ var jumpsSec = this.createCollapsibleSection(mxResources.get('lineJumps'), true);
+ jumpsSec.contentDiv.appendChild(lineJumpsPanel);
+ this.container.appendChild(jumpsSec.wrapper);
+ this.syncCollapsibleVisibility(jumpsSec.wrapper, lineJumpsPanel);
+
var opacityPanel = this.createRelativeOption(mxResources.get('opacity'), mxConstants.STYLE_OPACITY);
this.container.appendChild(opacityPanel);
- this.container.appendChild(this.addEffects(this.createPanel()));
+
+ var effectsSec = this.createCollapsibleSection(mxResources.get('effects'), true);
+ effectsSec.contentDiv.appendChild(this.addEffects(this.createPanel()));
+ this.container.appendChild(effectsSec.wrapper);
}
var opsPanel = this.createPanel();
-
+
if (ss.cells.length == 1)
{
this.addEditOps(opsPanel);
-
+
if (opsPanel.firstChild != null)
{
mxUtils.br(opsPanel);
@@ -7079,8 +7163,14 @@ DiagramFormatPanel.prototype.init = function()
if (graph.isEnabled())
{
- this.container.appendChild(this.addOptions(this.createPanel()));
- this.container.appendChild(this.addPaperSize(this.createPanel()));
+ var optSec = this.createCollapsibleSection(mxResources.get('options'), false);
+ optSec.contentDiv.appendChild(this.addOptions(this.createPanel()));
+ this.container.appendChild(optSec.wrapper);
+
+ var paperSec = this.createCollapsibleSection(mxResources.get('paperSize'), true);
+ paperSec.contentDiv.appendChild(this.addPaperSize(this.createPanel()));
+ this.container.appendChild(paperSec.wrapper);
+
this.container.appendChild(this.addStyleOps(this.createPanel()));
}
};
@@ -7253,8 +7343,6 @@ DiagramFormatPanel.prototype.addOptions = function(div)
var editor = ui.editor;
var graph = editor.graph;
- div.appendChild(this.createTitle(mxResources.get('options')));
-
if (graph.isEnabled())
{
// Connection arrows
@@ -7469,8 +7557,6 @@ DiagramFormatPanel.prototype.addPaperSize = function(div)
var editor = ui.editor;
var graph = editor.graph;
- div.appendChild(this.createTitle(mxResources.get('paperSize')));
-
var accessor = PageSetupDialog.addPageFormatPanel(div, 'formatpanel', graph.pageFormat, function(pageFormat)
{
if (graph.pageFormat == null || graph.pageFormat.width != pageFormat.width ||
diff --git a/src/main/webapp/js/grapheditor/Graph.js b/src/main/webapp/js/grapheditor/Graph.js
index 4abfed3b6..63f457fea 100644
--- a/src/main/webapp/js/grapheditor/Graph.js
+++ b/src/main/webapp/js/grapheditor/Graph.js
@@ -5171,6 +5171,102 @@ Graph.prototype.createVertexWipeAnimation = function(state, wipeIn)
};
};
+/**
+ * Creates a popup animation for the given vertex cell state using a
+ * damped spring that overshoots and oscillates around scale 1.0.
+ * The popIn parameter controls direction (true = appear, false = disappear).
+ */
+Graph.prototype.createVertexPopAnimation = function(state, popIn)
+{
+ var bds = new mxRectangle.fromRectangle(state.shape.bounds);
+ var cx = bds.getCenterX();
+ var cy = bds.getCenterY();
+
+ return {
+ execute: mxUtils.bind(this, function(step, steps)
+ {
+ if (state.shape != null)
+ {
+ var t = step / steps;
+
+ if (!popIn)
+ {
+ t = 1 - t;
+ }
+
+ // Damped spring: s = 1 - e^(-5t) * cos(5*PI*t)
+ var s = 1 - Math.exp(-5 * t) * Math.cos(5 * Math.PI * t);
+
+ state.shape.bounds = new mxRectangle(
+ cx - bds.width * s / 2,
+ cy - bds.height * s / 2,
+ bds.width * s,
+ bds.height * s);
+ state.shape.redraw();
+
+ if (step == 0)
+ {
+ Graph.setOpacityForNodes(
+ this.getNodesForCells([state.cell]), 1);
+ }
+
+ if (state.text != null && state.text.node != null)
+ {
+ state.text.node.style.opacity = Math.min(1, t * 3);
+ }
+ }
+ }),
+ stop: mxUtils.bind(this, function()
+ {
+ if (state.shape != null)
+ {
+ state.shape.bounds = bds;
+ state.shape.redraw();
+
+ if (state.text != null && state.text.node != null)
+ {
+ state.text.node.style.opacity = '';
+ }
+
+ Graph.setOpacityForNodes(
+ this.getNodesForCells([state.cell]),
+ (popIn) ? 1 : 0);
+ }
+ })
+ };
+};
+
+/**
+ * Creates pop animations for the given cells. Vertices use the elastic
+ * pop effect, edges use the existing wipe animation.
+ */
+Graph.prototype.createPopAnimations = function(cells, popIn)
+{
+ var animations = [];
+
+ for (var i = 0; i < cells.length; i++)
+ {
+ var state = this.view.getState(cells[i]);
+
+ if (state != null && state.shape != null)
+ {
+ if (this.model.isEdge(state.cell) &&
+ state.absolutePoints != null &&
+ state.absolutePoints.length > 1)
+ {
+ animations.push(this.createEdgeWipeAnimation(state, popIn));
+ }
+ else if (this.model.isVertex(state.cell) &&
+ state.shape.bounds != null)
+ {
+ animations.push(this.createVertexPopAnimation(state, popIn));
+ }
+ }
+ }
+
+ return animations;
+};
+
/**
* Runs the animations for the given cells.
*/
diff --git a/src/main/webapp/js/integrate.min.js b/src/main/webapp/js/integrate.min.js
index a4a0eb3fb..cd3a88862 100644
--- a/src/main/webapp/js/integrate.min.js
+++ b/src/main/webapp/js/integrate.min.js
@@ -69,7 +69,7 @@ b),-1!==c&&c===b&&(window.DRAWIO_LOG_URL="https://log.draw.io"))}})();"1"==urlPa
"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);"function"!==typeof window.structuredClone&&(window.structuredClone=function(a){return a});window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use","foreignObject"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,HTML_INTEGRATION_POINTS:{foreignobject:!0},ADD_ATTR:["target","content","pointer-events","requiredFeatures"]};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:"29.6.7",IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),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.")&&
+window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"29.6.10",IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),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:-1<navigator.userAgent.toLowerCase().indexOf("firefox"),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]"!==document.createElementNS("http://www.w3.org/2000/svg","foreignObject").toString()||0<=navigator.userAgent.indexOf("Opera/"),IS_WIN:0<navigator.appVersion.indexOf("Win"),IS_MAC:0<navigator.appVersion.indexOf("Mac"),IS_CHROMEOS:/\bCrOS\b/.test(navigator.appVersion),
@@ -1327,8 +1327,8 @@ mxGraph.prototype.moveCells=function(a,b,c,d,e,f,g){b=null!=b?b:0;c=null!=c?c:0;
!0);if(d)for(m=0;m<a.length;m++)q=this.getCellGeometry(a[m]),r=this.model.getParent(k[m]),null!=q&&q.relative&&this.model.isEdge(r)&&this.model.contains(r)&&this.model.add(r,a[m])}this.fireEvent(new mxEventObject(mxEvent.MOVE_CELLS,"cells",a,"dx",b,"dy",c,"clone",d,"target",e,"event",f))}finally{this.model.endUpdate()}}return a};
mxGraph.prototype.cellsMoved=function(a,b,c,d,e,f){if(null!=a&&(0!=b||0!=c)){f=null!=f?f:!1;this.model.beginUpdate();try{d&&this.disconnectGraph(a);for(var g=0;g<a.length;g++)this.translateCell(a[g],b,c),f&&this.isExtendParent(a[g])?this.extendParent(a[g]):e&&this.constrainChild(a[g]),this.isContractParentsOnMove()&&this.isContractParent(a[g])&&this.contractParent(a[g]);this.resetEdgesOnMove&&this.resetEdges(a);this.fireEvent(new mxEventObject(mxEvent.CELLS_MOVED,"cells",a,"dx",b,"dy",c,"disconnect",
d))}finally{this.model.endUpdate()}}};
-mxGraph.prototype.translateCell=function(a,b,c){var d=this.model.getGeometry(a);if(null!=d){b=parseFloat(b);c=parseFloat(c);d=d.clone();d.translate(b,c,this.model.isEdge(a));d.relative||!this.model.isVertex(a)||this.isAllowNegativeCoordinates()||(d.x=Math.max(0,parseFloat(d.x)),d.y=Math.max(0,parseFloat(d.y)));if(d.relative&&!this.model.isEdge(a)){var e=this.model.getParent(a),f=0;this.model.isVertex(e)&&(e=this.getCurrentCellStyle(e),f=mxUtils.getValue(e,mxConstants.STYLE_ROTATION,0));0!=f&&(f=mxUtils.toRadians(-f),
-e=Math.cos(f),f=Math.sin(f),c=mxUtils.getRotatedPoint(new mxPoint(b,c),e,f,new mxPoint(0,0)),b=c.x,c=c.y);null==d.offset?d.offset=new mxPoint(Math.round(b),Math.round(c)):(d.offset.x=Math.round(parseFloat(d.offset.x+b)),d.offset.y=Math.round(parseFloat(d.offset.y+c)))}this.model.setGeometry(a,d)}};
+mxGraph.prototype.translateCell=function(a,b,c){var d=this.model.getGeometry(a);if(null!=d&&"function"===typeof d.translate){b=parseFloat(b);c=parseFloat(c);d=d.clone();d.translate(b,c,this.model.isEdge(a));d.relative||!this.model.isVertex(a)||this.isAllowNegativeCoordinates()||(d.x=Math.max(0,parseFloat(d.x)),d.y=Math.max(0,parseFloat(d.y)));if(d.relative&&!this.model.isEdge(a)){var e=this.model.getParent(a),f=0;this.model.isVertex(e)&&(e=this.getCurrentCellStyle(e),f=mxUtils.getValue(e,mxConstants.STYLE_ROTATION,
+0));0!=f&&(f=mxUtils.toRadians(-f),e=Math.cos(f),f=Math.sin(f),c=mxUtils.getRotatedPoint(new mxPoint(b,c),e,f,new mxPoint(0,0)),b=c.x,c=c.y);null==d.offset?d.offset=new mxPoint(Math.round(b),Math.round(c)):(d.offset.x=Math.round(parseFloat(d.offset.x+b)),d.offset.y=Math.round(parseFloat(d.offset.y+c)))}this.model.setGeometry(a,d)}};
mxGraph.prototype.getCellContainmentArea=function(a){if(null!=a&&!this.model.isEdge(a)){var b=this.model.getParent(a);if(null!=b&&b!=this.getDefaultParent()){var c=this.model.getGeometry(b);if(null!=c){var d=a=0,e=c.width;c=c.height;if(this.isSwimlane(b)){var f=this.getStartSize(b),g=this.getCurrentCellStyle(b);b=mxUtils.getValue(g,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST);var k=1==mxUtils.getValue(g,mxConstants.STYLE_FLIPH,0);g=1==mxUtils.getValue(g,mxConstants.STYLE_FLIPV,0);if(b==
mxConstants.DIRECTION_SOUTH||b==mxConstants.DIRECTION_NORTH){var l=f.width;f.width=f.height;f.height=l}if(b==mxConstants.DIRECTION_EAST&&!g||b==mxConstants.DIRECTION_NORTH&&!k||b==mxConstants.DIRECTION_WEST&&g||b==mxConstants.DIRECTION_SOUTH&&k)a=f.width,d=f.height;e-=f.width;c-=f.height}return new mxRectangle(a,d,e,c)}}}return null};mxGraph.prototype.getMaximumGraphBounds=function(){return this.maximumGraphBounds};
mxGraph.prototype.constrainChild=function(a,b){if(null!=a&&(b=this.getCellGeometry(a),null!=b&&(this.isConstrainRelativeChildren()||!b.relative))){var c=this.model.getParent(a);this.getCellGeometry(c);var d=this.getMaximumGraphBounds();null!=d&&(c=this.getBoundingBoxFromGeometry([c],!1),null!=c&&(d=mxRectangle.fromRectangle(d),d.x-=c.x,d.y-=c.y));if(this.isConstrainChild(a)&&(c=this.getCellContainmentArea(a),null!=c)){var e=this.getOverlap(a);0<e&&(c=mxRectangle.fromRectangle(c),c.x-=c.width*e,c.y-=
@@ -2154,24 +2154,24 @@ Editor.enableInlineToolbar?this.createInlineToolbar():null;this.editor.graph.add
null!=f.inlineToolbar&&null!=S&&f.inlineToolbar.hide();v.apply(this,arguments)};var u=g.graphHandler.mouseUp;g.graphHandler.mouseUp=function(){u.apply(this,arguments);null!=f.inlineToolbar&&f.inlineToolbar.updateSelection()}}var x=mxVertexHandler.prototype.start;mxVertexHandler.prototype.start=function(){null!=f.inlineToolbar&&f.inlineToolbar.hide();x.apply(this,arguments)};var z=mxVertexHandler.prototype.mouseUp;mxVertexHandler.prototype.mouseUp=function(){z.apply(this,arguments);null!=f.inlineToolbar&&
f.inlineToolbar.updateSelection()};var E=mxEdgeHandler.prototype.start;mxEdgeHandler.prototype.start=function(){null!=f.inlineToolbar&&f.inlineToolbar.hide();E.apply(this,arguments)};var D=mxEdgeHandler.prototype.mouseUp;mxEdgeHandler.prototype.mouseUp=function(){D.apply(this,arguments);null!=f.inlineToolbar&&f.inlineToolbar.updateSelection()};mxEvent.addListener(this.diagramContainer,"mousemove",mxUtils.bind(this,function(S){var Y=mxUtils.getOffset(this.diagramContainer);0<mxEvent.getClientX(S)-
Y.x-this.diagramContainer.clientWidth||0<mxEvent.getClientY(S)-Y.y-this.diagramContainer.clientHeight?this.diagramContainer.setAttribute("title",mxResources.get("panTooltip")):this.diagramContainer.removeAttribute("title")}));var G=this.hoverIcons.isResetEvent;this.hoverIcons.isResetEvent=function(S,Y){return f.isSpaceDown()||G.apply(this,arguments)};this.keydownHandler=mxUtils.bind(this,function(S){if(Editor.passiveScroll){var Y=mxEvent.getSource(S);if(Y!=g.container&&!g.container.contains(Y)&&!g.isEditing())return}16==
-S.which?this.shiftDown=!0:32!=S.which||g.isEditing()?mxEvent.isConsumed(S)||27!=S.keyCode||this.hideDialog(null,!0):(this.spaceDown=!0,this.hoverIcons.reset(),g.container.style.cursor="move",g.isEditing()||mxEvent.consume(S))});mxEvent.addListener(document,"keydown",this.keydownHandler);this.keyupHandler=mxUtils.bind(this,function(S){g.container.style.cursor="";this.shiftDown=this.spaceDown=!1});mxEvent.addListener(document,"keyup",this.keyupHandler);var H=g.panningHandler.isForcePanningEvent;g.panningHandler.isForcePanningEvent=
-function(S){return null!=g.freehand&&g.freehand.isActive()?!1:H.apply(this,arguments)||f.isSpaceDown()||mxEvent.isMouseEvent(S.getEvent())&&(this.usePopupTrigger||!mxEvent.isPopupTrigger(S.getEvent()))&&(!mxEvent.isControlDown(S.getEvent())&&mxEvent.isRightMouseButton(S.getEvent())||mxEvent.isMiddleMouseButton(S.getEvent()))};var L=g.cellEditor.isStopEditingEvent;g.cellEditor.isStopEditingEvent=function(S){return L.apply(this,arguments)||13==S.keyCode&&(!mxClient.IS_SF&&mxEvent.isControlDown(S)||
-mxClient.IS_MAC&&mxEvent.isMetaDown(S)||mxClient.IS_SF&&mxEvent.isShiftDown(S))};var N=g.isZoomWheelEvent;g.isZoomWheelEvent=function(){return f.isSpaceDown()||N.apply(this,arguments)};var K=mxUtils.bind(this,function(){if(null!=this.toolbar)for(var S=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,Y=this.toolbar.container.firstChild;null!=Y;){var na=Y.getAttribute("data-min-width");null!=na&&parseInt(na)>S?Y.style.display="none":Y.style.display="";Y=Y.nextSibling}}),
-R=!1,V=null,U=null,W=null,ka=mxUtils.bind(this,function(){if(null!=this.toolbar&&R!=g.cellEditor.isContentEditing()){for(var S=this.toolbar.container.firstChild,Y=[];null!=S;){var na=S.nextSibling;S.parentNode.removeChild(S);Y.push(S);S=na}S=this.toolbar.fontMenu;na=this.toolbar.sizeMenu;if(null==W)this.toolbar.createTextToolbar();else{for(var Z=0;Z<W.length;Z++)this.toolbar.container.appendChild(W[Z]);this.toolbar.fontMenu=V;this.toolbar.sizeMenu=U}R=g.cellEditor.isContentEditing();V=S;U=na;W=Y;
-K()}});this.addListener("languageChanged",mxUtils.bind(this,function(){this.destroyWindows(!0);this.descriptorChanged();this.updateStatusAgain();ka()}));this.addListener("currentThemeChanged",K);mxEvent.addListener(window,"resize",K);K();g.isTouchPopupMenuEnabled=function(){return null==f.dialog};var aa=g.cellEditor.startEditing;g.cellEditor.startEditing=function(){aa.apply(this,arguments);ka();if(g.cellEditor.isContentEditing()){var S=!1,Y=function(){S||(S=!0,window.setTimeout(function(){var na=
-g.getSelectedEditingElement();null!=na&&(na=mxUtils.getCurrentStyle(na),null!=na&&null!=f.toolbar&&(f.toolbar.setFontName(mxUtils.getCssFontFamily(na.fontFamily)),f.toolbar.setFontSize(parseInt(na.fontSize))));S=!1},0))};mxEvent.addListener(g.cellEditor.textarea,"input",Y);mxEvent.addListener(g.cellEditor.textarea,"touchend",Y);mxEvent.addListener(g.cellEditor.textarea,"mouseup",Y);mxEvent.addListener(g.cellEditor.textarea,"keyup",Y);Y()}};var ea=g.cellEditor.stopEditing;g.cellEditor.stopEditing=
-function(S,Y){try{ea.apply(this,arguments),ka()}catch(na){f.handleError(na)}};g.container.setAttribute("tabindex","0");g.container.style.cursor="default";if(window.self===window.top&&null!=g.container.parentNode)try{g.container.focus()}catch(S){}var ca=g.fireMouseEvent;g.fireMouseEvent=function(S,Y,na){try{S==mxEvent.MOUSE_DOWN&&this.container.focus(),ca.apply(this,arguments)}catch(Z){f.handleError(Z)}};var pa=g.foldCells;g.foldCells=function(S,Y,na,Z,ja){try{pa.apply(this,arguments)}catch(ha){f.handleError(ha)}};
-g.popupMenuHandler.autoExpand=!0;null!=this.menus&&(g.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(S,Y,na){this.menus.createPopupMenu(S,Y,na)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(S){g.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(a);this.getKeyHandler=function(){return keyHandler};g.connectionHandler.addListener(mxEvent.CONNECT,function(S,Y){var na=[Y.getProperty("cell")];Y.getProperty("terminalInserted")&&(na.push(Y.getProperty("terminal")),
-window.setTimeout(function(){null!=f.hoverIcons&&f.hoverIcons.update(g.view.getState(na[na.length-1]))},0));g.pasteCellStyles(na)});var O=null,T=null;a=mxUtils.bind(this,function(){if(null!=this.toolbar){var S=this.getSelectionState();if(g.isEnabled()&&0<S.edges.length){if(null!=this.toolbar.edgeStyleMenu){var Y=this.getImageForEdgeStyle(S.style);1==S.edges.length&&"arrow"==S.style[mxConstants.STYLE_SHAPE]&&(Y=Format.straightImage.src);this.toolbar.edgeStyleMenu.style.backgroundImage="url("+Y+")"}null!=
-this.toolbar.edgeShapeMenu&&(this.toolbar.edgeShapeMenu.style.backgroundImage="url("+this.getImageForEdgeShape(S.style)+")")}else null!=this.toolbar.edgeStyleMenu&&(this.toolbar.edgeStyleMenu.style.backgroundImage="url("+O+")"),null!=this.toolbar.edgeShapeMenu&&(this.toolbar.edgeShapeMenu.style.backgroundImage="url("+T+")")}});g.selectionModel.addListener(mxEvent.CHANGE,a);g.getModel().addListener(mxEvent.CHANGE,a);this.addListener("styleChanged",mxUtils.bind(this,function(S,Y){S=Y.getProperty("force");
-(this.updateDefaultStyle||S)&&g.copyCellStyles(Y.getProperty("cells"),Y.getProperty("keys"),Y.getProperty("values"),g.currentVertexStyle,g.currentEdgeStyle,l,p);null!=this.toolbar&&(this.toolbar.setFontName(g.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(g.currentVertexStyle.fontSize||Menus.prototype.defaultFontSize),Y=this.getSelectionState(),null!=this.toolbar.edgeStyleMenu&&(O=this.getImageForEdgeStyle(g.currentEdgeStyle),0==Y.edges.length&&(this.toolbar.edgeStyleMenu.style.backgroundImage=
-"url("+O+")")),null!=this.toolbar.edgeShapeMenu&&(T=this.getImageForEdgeShape(g.currentEdgeStyle),0==Y.edges.length&&(this.toolbar.edgeShapeMenu.style.backgroundImage="url("+T+")")))}));null!=this.toolbar&&(a=mxUtils.bind(this,function(){var S=g.currentVertexStyle.fontFamily||"Helvetica",Y=String(g.currentVertexStyle.fontSize||"12"),na=g.getView().getState(g.getSelectionCell());null!=na&&(S=na.style[mxConstants.STYLE_FONTFAMILY]||S,Y=na.style[mxConstants.STYLE_FONTSIZE]||Y,10<S.length&&(S=S.substring(0,
-8)+"..."));this.toolbar.setFontName(S);this.toolbar.setFontSize(Y)}),g.getSelectionModel().addListener(mxEvent.CHANGE,a),g.getModel().addListener(mxEvent.CHANGE,a));g.addListener(mxEvent.CELLS_ADDED,function(S,Y){S=Y.getProperty("cells");Y=Y.getProperty("parent");null!=Y&&g.getModel().isLayer(Y)&&!g.isCellVisible(Y)&&null!=S&&0<S.length&&g.getModel().setVisible(Y,!0)});Graph.selectParentLayer&&g.selectionModel.addListener(mxEvent.CHANGE,function(){if(g.isEnabled()&&!g.isSelectionEmpty()){var S=g.getLayerForCells(g.getSelectionCells());
-null!=S&&g.setDefaultParent(S)}});this.gestureHandler=mxUtils.bind(this,function(S){this.isHideCurrentMenuEvent(S)&&this.hideCurrentMenu()});mxEvent.addGestureListeners(document,this.gestureHandler);var ba=null;this.resizeHandler=mxUtils.bind(this,function(){null!=ba&&window.clearTimeout(ba);ba=window.setTimeout(mxUtils.bind(this,function(){ba=null;this.windowResized()}),100)});mxEvent.addListener(window,"resize",this.resizeHandler);this.orientationChangeHandler=mxUtils.bind(this,function(){this.refresh()});
-mxEvent.addListener(window,"orientationchange",this.orientationChangeHandler);mxClient.IS_IOS&&!window.navigator.standalone&&"undefined"!==typeof Menus&&(this.scrollHandler=mxUtils.bind(this,function(){window.scrollTo(0,0)}),mxEvent.addListener(window,"scroll",this.scrollHandler));this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.resetScrollbars()}));this.addListener("gridEnabledChanged",mxUtils.bind(this,function(){g.view.validateBackground()}));this.addListener("backgroundColorChanged",
-mxUtils.bind(this,function(){g.view.validateBackground()}));g.addListener("gridSizeChanged",mxUtils.bind(this,function(){g.isGridEnabled()&&g.view.validateBackground()}));this.editor.resetGraph()}this.init();g.standalone||this.open()};EditorUi.compactUi=!0;
+S.which?this.shiftDown=!0:32!=S.which||g.isEditing()?mxEvent.isConsumed(S)||27!=S.keyCode||this.hideDialog(null,!0):(Y=mxEvent.getSource(S),"INPUT"==Y.nodeName||"TEXTAREA"==Y.nodeName||"SELECT"==Y.nodeName||Y.isContentEditable||(this.spaceDown=!0,this.hoverIcons.reset(),g.container.style.cursor="move",mxEvent.consume(S)))});mxEvent.addListener(document,"keydown",this.keydownHandler);this.keyupHandler=mxUtils.bind(this,function(S){g.container.style.cursor="";this.shiftDown=this.spaceDown=!1});mxEvent.addListener(document,
+"keyup",this.keyupHandler);var H=g.panningHandler.isForcePanningEvent;g.panningHandler.isForcePanningEvent=function(S){return null!=g.freehand&&g.freehand.isActive()?!1:H.apply(this,arguments)||f.isSpaceDown()||mxEvent.isMouseEvent(S.getEvent())&&(this.usePopupTrigger||!mxEvent.isPopupTrigger(S.getEvent()))&&(!mxEvent.isControlDown(S.getEvent())&&mxEvent.isRightMouseButton(S.getEvent())||mxEvent.isMiddleMouseButton(S.getEvent()))};var L=g.cellEditor.isStopEditingEvent;g.cellEditor.isStopEditingEvent=
+function(S){return L.apply(this,arguments)||13==S.keyCode&&(!mxClient.IS_SF&&mxEvent.isControlDown(S)||mxClient.IS_MAC&&mxEvent.isMetaDown(S)||mxClient.IS_SF&&mxEvent.isShiftDown(S))};var N=g.isZoomWheelEvent;g.isZoomWheelEvent=function(){return f.isSpaceDown()||N.apply(this,arguments)};var K=mxUtils.bind(this,function(){if(null!=this.toolbar)for(var S=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,Y=this.toolbar.container.firstChild;null!=Y;){var na=Y.getAttribute("data-min-width");
+null!=na&&parseInt(na)>S?Y.style.display="none":Y.style.display="";Y=Y.nextSibling}}),R=!1,V=null,U=null,W=null,ka=mxUtils.bind(this,function(){if(null!=this.toolbar&&R!=g.cellEditor.isContentEditing()){for(var S=this.toolbar.container.firstChild,Y=[];null!=S;){var na=S.nextSibling;S.parentNode.removeChild(S);Y.push(S);S=na}S=this.toolbar.fontMenu;na=this.toolbar.sizeMenu;if(null==W)this.toolbar.createTextToolbar();else{for(var Z=0;Z<W.length;Z++)this.toolbar.container.appendChild(W[Z]);this.toolbar.fontMenu=
+V;this.toolbar.sizeMenu=U}R=g.cellEditor.isContentEditing();V=S;U=na;W=Y;K()}});this.addListener("languageChanged",mxUtils.bind(this,function(){this.destroyWindows(!0);this.descriptorChanged();this.updateStatusAgain();ka()}));this.addListener("currentThemeChanged",K);mxEvent.addListener(window,"resize",K);K();g.isTouchPopupMenuEnabled=function(){return null==f.dialog};var aa=g.cellEditor.startEditing;g.cellEditor.startEditing=function(){aa.apply(this,arguments);ka();if(g.cellEditor.isContentEditing()){var S=
+!1,Y=function(){S||(S=!0,window.setTimeout(function(){var na=g.getSelectedEditingElement();null!=na&&(na=mxUtils.getCurrentStyle(na),null!=na&&null!=f.toolbar&&(f.toolbar.setFontName(mxUtils.getCssFontFamily(na.fontFamily)),f.toolbar.setFontSize(parseInt(na.fontSize))));S=!1},0))};mxEvent.addListener(g.cellEditor.textarea,"input",Y);mxEvent.addListener(g.cellEditor.textarea,"touchend",Y);mxEvent.addListener(g.cellEditor.textarea,"mouseup",Y);mxEvent.addListener(g.cellEditor.textarea,"keyup",Y);Y()}};
+var ea=g.cellEditor.stopEditing;g.cellEditor.stopEditing=function(S,Y){try{ea.apply(this,arguments),ka()}catch(na){f.handleError(na)}};g.container.setAttribute("tabindex","0");g.container.style.cursor="default";if(window.self===window.top&&null!=g.container.parentNode)try{g.container.focus()}catch(S){}var ca=g.fireMouseEvent;g.fireMouseEvent=function(S,Y,na){try{S==mxEvent.MOUSE_DOWN&&this.container.focus(),ca.apply(this,arguments)}catch(Z){f.handleError(Z)}};var pa=g.foldCells;g.foldCells=function(S,
+Y,na,Z,ja){try{pa.apply(this,arguments)}catch(ha){f.handleError(ha)}};g.popupMenuHandler.autoExpand=!0;null!=this.menus&&(g.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(S,Y,na){this.menus.createPopupMenu(S,Y,na)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(S){g.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(a);this.getKeyHandler=function(){return keyHandler};g.connectionHandler.addListener(mxEvent.CONNECT,function(S,Y){var na=[Y.getProperty("cell")];
+Y.getProperty("terminalInserted")&&(na.push(Y.getProperty("terminal")),window.setTimeout(function(){null!=f.hoverIcons&&f.hoverIcons.update(g.view.getState(na[na.length-1]))},0));g.pasteCellStyles(na)});var O=null,T=null;a=mxUtils.bind(this,function(){if(null!=this.toolbar){var S=this.getSelectionState();if(g.isEnabled()&&0<S.edges.length){if(null!=this.toolbar.edgeStyleMenu){var Y=this.getImageForEdgeStyle(S.style);1==S.edges.length&&"arrow"==S.style[mxConstants.STYLE_SHAPE]&&(Y=Format.straightImage.src);
+this.toolbar.edgeStyleMenu.style.backgroundImage="url("+Y+")"}null!=this.toolbar.edgeShapeMenu&&(this.toolbar.edgeShapeMenu.style.backgroundImage="url("+this.getImageForEdgeShape(S.style)+")")}else null!=this.toolbar.edgeStyleMenu&&(this.toolbar.edgeStyleMenu.style.backgroundImage="url("+O+")"),null!=this.toolbar.edgeShapeMenu&&(this.toolbar.edgeShapeMenu.style.backgroundImage="url("+T+")")}});g.selectionModel.addListener(mxEvent.CHANGE,a);g.getModel().addListener(mxEvent.CHANGE,a);this.addListener("styleChanged",
+mxUtils.bind(this,function(S,Y){S=Y.getProperty("force");(this.updateDefaultStyle||S)&&g.copyCellStyles(Y.getProperty("cells"),Y.getProperty("keys"),Y.getProperty("values"),g.currentVertexStyle,g.currentEdgeStyle,l,p);null!=this.toolbar&&(this.toolbar.setFontName(g.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(g.currentVertexStyle.fontSize||Menus.prototype.defaultFontSize),Y=this.getSelectionState(),null!=this.toolbar.edgeStyleMenu&&(O=this.getImageForEdgeStyle(g.currentEdgeStyle),
+0==Y.edges.length&&(this.toolbar.edgeStyleMenu.style.backgroundImage="url("+O+")")),null!=this.toolbar.edgeShapeMenu&&(T=this.getImageForEdgeShape(g.currentEdgeStyle),0==Y.edges.length&&(this.toolbar.edgeShapeMenu.style.backgroundImage="url("+T+")")))}));null!=this.toolbar&&(a=mxUtils.bind(this,function(){var S=g.currentVertexStyle.fontFamily||"Helvetica",Y=String(g.currentVertexStyle.fontSize||"12"),na=g.getView().getState(g.getSelectionCell());null!=na&&(S=na.style[mxConstants.STYLE_FONTFAMILY]||
+S,Y=na.style[mxConstants.STYLE_FONTSIZE]||Y,10<S.length&&(S=S.substring(0,8)+"..."));this.toolbar.setFontName(S);this.toolbar.setFontSize(Y)}),g.getSelectionModel().addListener(mxEvent.CHANGE,a),g.getModel().addListener(mxEvent.CHANGE,a));g.addListener(mxEvent.CELLS_ADDED,function(S,Y){S=Y.getProperty("cells");Y=Y.getProperty("parent");null!=Y&&g.getModel().isLayer(Y)&&!g.isCellVisible(Y)&&null!=S&&0<S.length&&g.getModel().setVisible(Y,!0)});Graph.selectParentLayer&&g.selectionModel.addListener(mxEvent.CHANGE,
+function(){if(g.isEnabled()&&!g.isSelectionEmpty()){var S=g.getLayerForCells(g.getSelectionCells());null!=S&&g.setDefaultParent(S)}});this.gestureHandler=mxUtils.bind(this,function(S){this.isHideCurrentMenuEvent(S)&&this.hideCurrentMenu()});mxEvent.addGestureListeners(document,this.gestureHandler);var ba=null;this.resizeHandler=mxUtils.bind(this,function(){null!=ba&&window.clearTimeout(ba);ba=window.setTimeout(mxUtils.bind(this,function(){ba=null;this.windowResized()}),100)});mxEvent.addListener(window,
+"resize",this.resizeHandler);this.orientationChangeHandler=mxUtils.bind(this,function(){this.refresh()});mxEvent.addListener(window,"orientationchange",this.orientationChangeHandler);mxClient.IS_IOS&&!window.navigator.standalone&&"undefined"!==typeof Menus&&(this.scrollHandler=mxUtils.bind(this,function(){window.scrollTo(0,0)}),mxEvent.addListener(window,"scroll",this.scrollHandler));this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.resetScrollbars()}));this.addListener("gridEnabledChanged",
+mxUtils.bind(this,function(){g.view.validateBackground()}));this.addListener("backgroundColorChanged",mxUtils.bind(this,function(){g.view.validateBackground()}));g.addListener("gridSizeChanged",mxUtils.bind(this,function(){g.isGridEnabled()&&g.view.validateBackground()}));this.editor.resetGraph()}this.init();g.standalone||this.open()};EditorUi.compactUi=!0;
EditorUi.parsePng=function(a,b,e){function f(l,p){var k=d;d+=p;return l.substring(k,d)}function g(l){l=f(l,4);return l.charCodeAt(3)+(l.charCodeAt(2)<<8)+(l.charCodeAt(1)<<16)+(l.charCodeAt(0)<<24)}var d=0;if(f(a,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=e&&e();else if(f(a,4),"IHDR"!=f(a,4))null!=e&&e();else{f(a,17);do{e=g(a);var h=f(a,4);if(null!=b&&b(d-8,h,e))break;value=f(a,e);f(a,4);if("IEND"==h)break}while(e)}};mxUtils.extend(EditorUi,mxEventSource);
-EditorUi.prototype.splitSize=mxClient.IS_TOUCH||mxClient.IS_POINTER?12:8;EditorUi.prototype.formatEnabled=!0;EditorUi.prototype.formatWidth=240;EditorUi.prototype.defaultSidebarWidth=Math.min(screen.width/2,"large"!=urlParams["sidebar-entries"]?220:230);EditorUi.prototype.hsplitPosition=screen.width<=Editor.smallScreenWidth?0:EditorUi.prototype.defaultSidebarWidth;EditorUi.prototype.allowAnimation=!0;EditorUi.prototype.lightboxMaxFitScale=2;EditorUi.prototype.lightboxVerticalDivider=4;
+EditorUi.prototype.splitSize=mxClient.IS_TOUCH||mxClient.IS_POINTER?12:8;EditorUi.prototype.formatEnabled=!0;EditorUi.prototype.formatWidth=240;EditorUi.prototype.defaultSidebarWidth=Math.min(screen.width/2,"large"!=urlParams["sidebar-entries"]?232:242);EditorUi.prototype.hsplitPosition=screen.width<=Editor.smallScreenWidth?0:EditorUi.prototype.defaultSidebarWidth;EditorUi.prototype.allowAnimation=!0;EditorUi.prototype.lightboxMaxFitScale=2;EditorUi.prototype.lightboxVerticalDivider=4;
EditorUi.prototype.hsplitClickEnabled=!1;EditorUi.prototype.updateDefaultStyle=!1;EditorUi.prototype.spaceDown=!1;EditorUi.prototype.shiftDown=!1;
EditorUi.prototype.init=function(){var a=this.editor.graph;if(!a.standalone){"0"!=urlParams["shape-picker"]&&this.installShapePicker();mxEvent.addListener(a.container,"scroll",mxUtils.bind(this,function(){a.tooltipHandler.hide();null!=a.connectionHandler&&null!=a.connectionHandler.constraintHandler&&a.connectionHandler.constraintHandler.reset()}));a.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){a.tooltipHandler.hide();var f=a.getRubberband();null!=f&&f.cancel()}));mxEvent.addListener(a.container,
"keydown",mxUtils.bind(this,function(f){this.onKeyDown(f);this.onKeyPress(f)}));this.installTypingShim();this.addUndoListener();this.addBeforeUnloadListener();a.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.updateActionStates()}));a.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.updateActionStates()}));var b=a.setDefaultParent,e=this;this.editor.graph.setDefaultParent=function(){b.apply(this,arguments);e.updateActionStates()};a.showLinkDialog=
@@ -2747,7 +2747,11 @@ Graph.prototype.createWipeAnimations=function(a,b){for(var e=[],f=0;f<a.length;f
Graph.prototype.createEdgeWipeAnimation=function(a,b){var e=a.absolutePoints.slice(),f=a.segments,g=a.length,d=e.length;return{execute:mxUtils.bind(this,function(h,l){if(null!=a.shape){var p=[e[0]];l=h/l;b||(l=1-l);for(var k=g*l,v=1;v<d;v++)if(k<=f[v-1]){p.push(new mxPoint(e[v-1].x+(e[v].x-e[v-1].x)*k/f[v-1],e[v-1].y+(e[v].y-e[v-1].y)*k/f[v-1]));break}else k-=f[v-1],p.push(e[v]);a.shape.points=p;a.shape.redraw();0==h&&Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),1);null!=a.text&&null!=
a.text.node&&(a.text.node.style.opacity=l)}}),stop:mxUtils.bind(this,function(){null!=a.shape&&(a.shape.points=e,a.shape.redraw(),null!=a.text&&null!=a.text.node&&(a.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),b?1:0))})}};
Graph.prototype.createVertexWipeAnimation=function(a,b){var e=new mxRectangle.fromRectangle(a.shape.bounds);return{execute:mxUtils.bind(this,function(f,g){null!=a.shape&&(g=f/g,b||(g=1-g),a.shape.bounds=new mxRectangle(e.x,e.y,e.width*g,e.height),a.shape.redraw(),0==f&&Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),1),null!=a.text&&null!=a.text.node&&(a.text.node.style.opacity=g))}),stop:mxUtils.bind(this,function(){null!=a.shape&&(a.shape.bounds=e,a.shape.redraw(),null!=a.text&&null!=a.text.node&&
-(a.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),b?1:0))})}};Graph.prototype.executeAnimations=function(a,b,e,f){e=null!=e?e:30;f=null!=f?f:30;var g=null,d=0,h=mxUtils.bind(this,function(){if(d==e||this.stoppingCustomActions){window.clearInterval(g);for(var l=0;l<a.length;l++)a[l].stop();null!=b&&b()}else for(l=0;l<a.length;l++)a[l].execute(d,e);d++});g=window.setInterval(h,f);h()};
+(a.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),b?1:0))})}};
+Graph.prototype.createVertexPopAnimation=function(a,b){var e=new mxRectangle.fromRectangle(a.shape.bounds),f=e.getCenterX(),g=e.getCenterY();return{execute:mxUtils.bind(this,function(d,h){if(null!=a.shape){h=d/h;b||(h=1-h);var l=1-Math.exp(-5*h)*Math.cos(5*Math.PI*h);a.shape.bounds=new mxRectangle(f-e.width*l/2,g-e.height*l/2,e.width*l,e.height*l);a.shape.redraw();0==d&&Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),1);null!=a.text&&null!=a.text.node&&(a.text.node.style.opacity=Math.min(1,
+3*h))}}),stop:mxUtils.bind(this,function(){null!=a.shape&&(a.shape.bounds=e,a.shape.redraw(),null!=a.text&&null!=a.text.node&&(a.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),b?1:0))})}};
+Graph.prototype.createPopAnimations=function(a,b){for(var e=[],f=0;f<a.length;f++){var g=this.view.getState(a[f]);null!=g&&null!=g.shape&&(this.model.isEdge(g.cell)&&null!=g.absolutePoints&&1<g.absolutePoints.length?e.push(this.createEdgeWipeAnimation(g,b)):this.model.isVertex(g.cell)&&null!=g.shape.bounds&&e.push(this.createVertexPopAnimation(g,b)))}return e};
+Graph.prototype.executeAnimations=function(a,b,e,f){e=null!=e?e:30;f=null!=f?f:30;var g=null,d=0,h=mxUtils.bind(this,function(){if(d==e||this.stoppingCustomActions){window.clearInterval(g);for(var l=0;l<a.length;l++)a[l].stop();null!=b&&b()}else for(l=0;l<a.length;l++)a[l].execute(d,e);d++});g=window.setInterval(h,f);h()};
Graph.prototype.executeAnimationsStepped=function(a,b,e,f){b=null!=b?b:30;var g=0,d=mxUtils.bind(this,function(){if(g<=b){for(var h=0;h<a.length;h++)a[h].execute(g,b);e(g,b,function(){g++;d()})}else{for(h=0;h<a.length;h++)a[h].stop();null!=f&&f()}});d()};Graph.prototype.getPageSize=function(){return this.pageVisible&&null!=this.pageFormat?new mxRectangle(0,0,this.pageFormat.width*this.pageScale,this.pageFormat.height*this.pageScale):this.scrollTileSize};
Graph.prototype.getPageLayout=function(a,b,e){a=null!=a?a:this.getGraphBounds();b=null!=b?b:this.view.translate;e=null!=e?e:this.view.scale;var f=this.getPageSize();if(0==a.width||0==a.height)return new mxRectangle(0,0,1,1);var g=Math.floor(Math.ceil(a.x/e-b.x)/f.width),d=Math.floor(Math.ceil(a.y/e-b.y)/f.height);return new mxRectangle(g,d,Math.ceil((Math.floor((a.x+a.width)/e)-b.x)/f.width)-g,Math.ceil((Math.floor((a.y+a.height)/e)-b.y)/f.height)-d)};
Graph.prototype.getDefaultTranslate=function(a){var b=this.getPagePadding(),e=this.getPageSize();return new mxPoint(b.x-a.x*e.width,b.y-a.y*e.height)};Graph.prototype.updateMinimumSize=function(){var a=this.getPageLayout(),b=this.getPagePadding(),e=this.getPageSize(),f=Math.ceil(2*b.x+a.width*e.width);a=Math.ceil(2*b.y+a.height*e.height);if(null==this.minimumGraphSize||this.minimumGraphSize.width!=f||this.minimumGraphSize.height!=a)this.minimumGraphSize=new mxRectangle(0,0,f,a)};
@@ -3142,7 +3146,7 @@ this.linkHint&&(q=new mxPoint(this.state.getCenterX(),this.state.getCenterY()),B
q.x+q.width/2+"px",this.linkHint.style.top=Math.round(C+this.verticalOffset/2+Editor.hintOffset)+"px",this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":"")};var Aa=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(){Aa.apply(this,arguments);this.destroyMoveHandles();this.destroyCornerHandles();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 ya=mxEdgeHandler.prototype.redrawHandles;mxEdgeHandler.prototype.redrawHandles=function(){if(null!=this.marker&&(ya.apply(this),null!=this.state&&null!=this.linkHint)){var q=this.state;null!=this.state.text&&null!=this.state.text.bounds&&(q=new mxRectangle(q.x,q.y,q.width,q.height),q.add(this.state.text.bounds));
this.linkHint.style.left=q.x+q.width/2+"px";this.linkHint.style.top=Math.round(q.y+q.height+Editor.hintOffset)+"px";this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":""}};var Wa=mxEdgeHandler.prototype.reset;mxEdgeHandler.prototype.reset=function(){Wa.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility="")};var Ta=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){Ta.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)}}();Format=function(a,b){this.editorUi=a;this.container=b};Format.noMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2.5" d="M 0 8 L 24 8" stroke="black" fill="black"/>',32,20);Format.classicFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2.5" d="M 0 8 L 10 2 L 5 8 L 10 14 Z M 0 8 L 24 8" stroke="black" fill="black"/>',32,20);
+this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();Format=function(a,b){this.editorUi=a;this.container=b;this.collapsedSections={}};Format.noMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2.5" d="M 0 8 L 24 8" stroke="black" fill="black"/>',32,20);Format.classicFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2.5" d="M 0 8 L 10 2 L 5 8 L 10 14 Z M 0 8 L 24 8" stroke="black" fill="black"/>',32,20);
Format.classicThinFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2.5" d="M 0 8 L 8 4 L 3 8 L 8 12 Z M 0 8 L 24 8" stroke="black" fill="black"/>',32,20);Format.openFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2.5" d="M 8 0 L 0 8 L 8 16 M 0 8 L 24 8" stroke="black" fill="transparent"/>',32,20);
Format.openThinFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2.5" d="M 8 4 L 0 8 L 8 12 M 0 8 L 24 8" stroke="black" fill="transparent"/>',32,20);Format.openAsyncFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2.5" d="M 8 4 L 0 8 L 24 8" stroke="black" fill="transparent"/>',32,20);
Format.blockFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2.5" d="M 0 8 L 8 2 L 8 14 Z M 0 8 L 24 8" stroke="black" fill="black"/>',32,20);Format.blockThinFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2.5" d="M 0 8 L 8 4 L 8 12 Z M 0 8 L 24 8" stroke="black" fill="black"/>',32,20);
@@ -3185,6 +3189,8 @@ BaseFormatPanel.prototype.installInputHandler=function(a,b,e,f,g,d,h,l,p){d=null
u=null),h(G),a.value=(p?this.inUnit(G):G)+d,x=!1);else if(G!=mxUtils.getValue(k.getSelectionState().style,b,e)){v.isEditing()&&v.stopEditing(!0);v.getModel().beginUpdate();try{var H=k.getSelectionState().cells;v.setCellStyles(b,G,H);b==mxConstants.STYLE_FONTSIZE&&v.updateLabelElements(H,function(N){N.removeAttribute("size");N.style.fontSize="";""==N.getAttribute("style")&&N.removeAttribute("style")});for(var L=0;L<H.length;L++)0==v.model.getChildCount(H[L])&&v.autoSizeCell(H[L],!1),b!=mxConstants.STYLE_FONTSIZE&&
v.isAutosizeTextCell(H[L])&&v.model.isVertex(H[L])&&v.updateAutosizeTextFontSize(H[L],v.getCurrentCellStyle(H[L],!0));k.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[G],"cells",H))}finally{v.getModel().endUpdate()}}a.value=(p?this.inUnit(G):G)+d}mxEvent.consume(D)});h&&v.cellEditor.isContentEditing()&&mxEvent.addGestureListeners(a,mxUtils.bind(this,function(D){document.activeElement==v.cellEditor.textarea&&(u=v.cellEditor.saveSelection())}));mxEvent.addListener(a,"change",E);mxEvent.addListener(a,
"blur",E);return E};BaseFormatPanel.prototype.createPanel=function(){var a=document.createElement("div");a.className="geFormatSection";return a};BaseFormatPanel.prototype.createTitle=function(a){var b=document.createElement("div");b.className="geFormatSectionTitle";b.setAttribute("title",a);mxUtils.write(b,a);return b};
+BaseFormatPanel.prototype.createCollapsibleSection=function(a,b){var e=this.format.collapsedSections;b=null!=e[a]?e[a]:b;var f=document.createElement("div");f.className="geFormatSection";var g=document.createElement("div");g.className="geCollapsibleTitle"+(b?"":" geExpanded");g.setAttribute("title",a);mxUtils.write(g,a);f.appendChild(g);var d=document.createElement("div");d.className="geCollapsibleContent"+(b?" geCollapsed":"");f.appendChild(d);mxEvent.addListener(g,"click",function(){g.classList.toggle("geExpanded");
+d.classList.toggle("geCollapsed");e[a]=!g.classList.contains("geExpanded")});return{wrapper:f,contentDiv:d}};BaseFormatPanel.prototype.syncCollapsibleVisibility=function(a,b){var e=function(){a.style.display="none"==b.style.display?"none":""};e();if("undefined"!==typeof MutationObserver){var f=new MutationObserver(e);f.observe(b,{attributes:!0,attributeFilter:["style"]});this.listeners.push({destroy:function(){f.disconnect()}})}};
BaseFormatPanel.prototype.addAction=function(a,b){var e=this.editorUi.actions.get(b);b=null;if(null!=e&&e.isEnabled()){b=mxUtils.button(e.getTitle(),mxUtils.bind(this,function(g){try{e.funct(g,g)}catch(d){this.editorUi.handleError(d)}}));var f=null!=e.shortcut?" ("+e.shortcut+")":"";b.setAttribute("title",e.getTitle()+f);b.style.marginBottom="2px";b.className="geFullWidthElement";a.appendChild(b)}return b};
BaseFormatPanel.prototype.addActions=function(a,b){for(var e=null,f=null,g=0,d=0;d<b.length;d++){var h=this.addAction(a,b[d]);null!=h&&(g++,0==mxUtils.mod(g,2)&&(f.style.marginRight="4px",f.style.width="104px",h.style.width="104px",e.parentNode.removeChild(e)),e=mxUtils.br(a),f=h)}return g};
BaseFormatPanel.prototype.createStepper=function(a,b,e,f,g,d,h){function l(x,z,E){""==a.value&&(a.value=null!=d?d:z);z=h?parseFloat(a.value):parseInt(a.value);isNaN(z)||(a.value=z+x,null!=b&&b(E))}e=null!=e?e:1;var p=10*e;f=document.createElement("div");f.className="geBtnStepper";f.style.position="absolute";f.style.left="200px";var k=document.createElement("div");k.style.height="9px";k.style.backgroundImage="url("+Editor.arrowUpImage+")";k.style.width="10px";f.appendChild(k);var v=k.cloneNode(!1);
@@ -3216,13 +3222,14 @@ mxEvent.consume(u)):27==u.keyCode&&(v(null,null,!0),h.container.focus(),mxEvent.
BaseFormatPanel.prototype.addLabel=function(a,b,e,f){f=null!=f?f:61;var g=document.createElement("div");mxUtils.write(g,b);g.setAttribute("title",b);g.style.position="absolute";g.style.left=226-e-f+"px";g.style.width=f+"px";g.style.marginTop="10px";g.style.display="flex";g.style.justifyContent="center";a.appendChild(g);return g};
BaseFormatPanel.prototype.addKeyHandler=function(a,b){mxEvent.addListener(a,"keydown",mxUtils.bind(this,function(e){13==e.keyCode?(this.editorUi.editor.graph.container.focus(),mxEvent.consume(e)):27==e.keyCode&&(null!=b&&b(null,null,!0),this.editorUi.editor.graph.container.focus(),mxEvent.consume(e))}))};BaseFormatPanel.prototype.destroy=function(){if(null!=this.listeners){for(var a=0;a<this.listeners.length;a++)this.listeners[a].destroy();this.listeners=null}};
ArrangePanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};mxUtils.extend(ArrangePanel,BaseFormatPanel);
-ArrangePanel.prototype.init=function(){var a=this.editorUi.getSelectionState();0<a.cells.length&&(this.container.appendChild(this.addLayerOps(this.createPanel())),this.addGeometry(this.container),this.addEdgeGeometry(this.container),a.containsLabel&&0!=a.edges.length||this.container.appendChild(this.addAngle(this.createPanel())),a.containsLabel||this.container.appendChild(this.addFlip(this.createPanel())),this.container.appendChild(this.addAlign(this.createPanel())),1<a.vertices.length&&!a.cell&&
-!a.row&&this.container.appendChild(this.addDistribute(this.createPanel())),this.container.appendChild(this.addTable(this.createPanel())));this.container.appendChild(this.addGroupOps(this.createPanel()))};
-ArrangePanel.prototype.addTable=function(a){var b=this.editorUi,e=b.editor.graph,f=b.getSelectionState();a.appendChild(this.createTitle(mxResources.get("table")));var g=document.createElement("div");g.style.position="relative";g.style.paddingLeft="0px";g.style.borderWidth="0px";g.style.width="220px";g.className="geToolbarContainer";var d=f.vertices[0];1<e.getSelectionCount()&&(e.isTableCell(d)&&(d=e.model.getParent(d)),e.isTableRow(d)&&(d=e.model.getParent(d)));var h=f.table||f.row||f.cell,l=e.isStack(d)||
-e.isStackChild(d),p=h;l&&(h="0"==(e.isStack(d)?f.style:e.getCellStyle(e.model.getParent(d))).horizontalStack,p=!h);var k=[];p&&(k=k.concat([b.addButton(Editor.addColumnLeftImage,mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{l?e.insertLane(d,!0):e.insertTableColumn(d,!0)}catch(v){b.handleError(v)}}),g),b.addButton(Editor.addColumnRightImage,mxResources.get("insertColumnAfter"),mxUtils.bind(this,function(){try{l?e.insertLane(d,!1):e.insertTableColumn(d,!1)}catch(v){b.handleError(v)}}),
-g),b.addButton(Editor.removeColumnImage,mxResources.get("deleteColumn"),mxUtils.bind(this,function(){try{l?e.deleteLane(d):e.deleteTableColumn(d)}catch(v){b.handleError(v)}}),g)]));h&&(k=k.concat([b.addButton(Editor.addRowAboveImage,mxResources.get("insertRowBefore"),mxUtils.bind(this,function(){try{l?e.insertLane(d,!0):e.insertTableRow(d,!0)}catch(v){b.handleError(v)}}),g),b.addButton(Editor.addRowBelowImage,mxResources.get("insertRowAfter"),mxUtils.bind(this,function(){try{l?e.insertLane(d,!1):
-e.insertTableRow(d,!1)}catch(v){b.handleError(v)}}),g),b.addButton(Editor.removeRowImage,mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{l?e.deleteLane(d):e.deleteTableRow(d)}catch(v){b.handleError(v)}}),g)]));if(0<k.length){a.appendChild(g);3<k.length&&(k[2].style.marginRight="10px");p=0;if(null!=f.mergeCell)p+=this.addActions(a,["mergeCells"]);else if(1<f.style.colspan||1<f.style.rowspan)p+=this.addActions(a,["unmergeCells"]);0<p&&(g.style.paddingBottom="2px")}else a.style.display=
-"none";return a};ArrangePanel.prototype.addLayerOps=function(a){this.addActions(a,["toFront","toBack"]);this.addActions(a,["bringForward","sendBackward"]);return a};
+ArrangePanel.prototype.init=function(){var a=this.editorUi.getSelectionState();if(0<a.cells.length){this.container.appendChild(this.addLayerOps(this.createPanel()));var b=this.createCollapsibleSection(mxResources.get("size")+" / "+mxResources.get("position"),!1);this.addGeometry(b.contentDiv);0<b.contentDiv.childNodes.length&&this.container.appendChild(b.wrapper);0<a.edges.length&&(b=this.createCollapsibleSection(mxResources.get("waypoints",null,"Waypoints"),!1),this.addEdgeGeometry(b.contentDiv),
+this.container.appendChild(b.wrapper));a.containsLabel&&0!=a.edges.length||(b=this.createCollapsibleSection(mxResources.get("rotation"),!0),b.contentDiv.appendChild(this.addAngle(this.createPanel())),this.container.appendChild(b.wrapper));a.containsLabel||(b=this.createCollapsibleSection(mxResources.get("flip"),!0),b.contentDiv.appendChild(this.addFlip(this.createPanel())),this.container.appendChild(b.wrapper));this.container.appendChild(this.addAlign(this.createPanel()));1<a.vertices.length&&!a.cell&&
+!a.row&&this.container.appendChild(this.addDistribute(this.createPanel()));a=this.addTable(this.createPanel());b=this.createCollapsibleSection(mxResources.get("table"),!0);b.contentDiv.appendChild(a);this.container.appendChild(b.wrapper);this.syncCollapsibleVisibility(b.wrapper,a)}this.container.appendChild(this.addGroupOps(this.createPanel()))};
+ArrangePanel.prototype.addTable=function(a){var b=this.editorUi,e=b.editor.graph,f=b.getSelectionState(),g=document.createElement("div");g.style.position="relative";g.style.paddingLeft="0px";g.style.borderWidth="0px";g.style.width="220px";g.className="geToolbarContainer";var d=f.vertices[0];1<e.getSelectionCount()&&(e.isTableCell(d)&&(d=e.model.getParent(d)),e.isTableRow(d)&&(d=e.model.getParent(d)));var h=f.table||f.row||f.cell,l=e.isStack(d)||e.isStackChild(d),p=h;l&&(h="0"==(e.isStack(d)?f.style:
+e.getCellStyle(e.model.getParent(d))).horizontalStack,p=!h);var k=[];p&&(k=k.concat([b.addButton(Editor.addColumnLeftImage,mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{l?e.insertLane(d,!0):e.insertTableColumn(d,!0)}catch(v){b.handleError(v)}}),g),b.addButton(Editor.addColumnRightImage,mxResources.get("insertColumnAfter"),mxUtils.bind(this,function(){try{l?e.insertLane(d,!1):e.insertTableColumn(d,!1)}catch(v){b.handleError(v)}}),g),b.addButton(Editor.removeColumnImage,mxResources.get("deleteColumn"),
+mxUtils.bind(this,function(){try{l?e.deleteLane(d):e.deleteTableColumn(d)}catch(v){b.handleError(v)}}),g)]));h&&(k=k.concat([b.addButton(Editor.addRowAboveImage,mxResources.get("insertRowBefore"),mxUtils.bind(this,function(){try{l?e.insertLane(d,!0):e.insertTableRow(d,!0)}catch(v){b.handleError(v)}}),g),b.addButton(Editor.addRowBelowImage,mxResources.get("insertRowAfter"),mxUtils.bind(this,function(){try{l?e.insertLane(d,!1):e.insertTableRow(d,!1)}catch(v){b.handleError(v)}}),g),b.addButton(Editor.removeRowImage,
+mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{l?e.deleteLane(d):e.deleteTableRow(d)}catch(v){b.handleError(v)}}),g)]));if(0<k.length){a.appendChild(g);3<k.length&&(k[2].style.marginRight="10px");p=0;if(null!=f.mergeCell)p+=this.addActions(a,["mergeCells"]);else if(1<f.style.colspan||1<f.style.rowspan)p+=this.addActions(a,["unmergeCells"]);0<p&&(g.style.paddingBottom="2px")}else a.style.display="none";return a};
+ArrangePanel.prototype.addLayerOps=function(a){this.addActions(a,["toFront","toBack"]);this.addActions(a,["bringForward","sendBackward"]);return a};
ArrangePanel.prototype.addGroupOps=function(a){var b=this.editorUi,e=b.editor.graph;b=b.getSelectionState();var f=this.addActions(a,["group","ungroup"])+this.addActions(a,["removeFromGroup"]);b.cell||b.row||(f+=this.addActions(a,["copySize","pasteSize","swap"]));var g=document.createElement("select");g.style.position="relative";g.className="geFullWidthElement";g.style.marginBottom="2px";for(var d=[{label:mxResources.get("reset")+"...",action:"reset"},{label:mxResources.get("waypoints"),action:"clearWaypoints"},
{label:mxResources.get("connectionPoints"),action:"clearAnchors"}],h=0;h<d.length;h++){var l=this.editorUi.actions.get(d[h].action);if(null==l||l.enabled){var p=document.createElement("option");p.setAttribute("value",d[h].action);p.setAttribute("title",d[h].label+(null!=l&&null!=l.shortcut?" ("+l.shortcut+")":""));mxUtils.write(p,d[h].label);g.appendChild(p)}}1<g.children.length&&(g.value="reset",a.appendChild(g),mxUtils.br(a),f++,mxEvent.addListener(g,"change",mxUtils.bind(this,function(k){k=this.editorUi.actions.get(g.value);
g.value="reset";null!=k&&k.funct()})));f+=this.addActions(a,["lockUnlock"]);1==b.vertices.length&&0==b.edges.length&&0<e.getOpposites(e.getEdges(b.vertices[0]),b.vertices[0]).length&&(f+=this.addActions(a,["explore"]));0==f&&(a.style.display="none");return a};
@@ -3295,38 +3302,37 @@ null!=E&&null!=E.text&&null!=E.text.node&&0==E.text.node.getElementsByTagName("f
"convertToSvg","0",null,null,function(ma,Aa){for(var ya=0;ya<ma.length;ya++){var Wa=d.getCurrentCellStyle(ma[ya]);Aa?"wrap"==Wa[mxConstants.STYLE_WHITE_SPACE]&&d.setCellStyles("svgWhiteSpace","wrap",[ma[ya]]):"wrap"==Wa.svgWhiteSpace&&d.setCellStyles(mxConstants.STYLE_WHITE_SPACE,"wrap",[ma[ya]])}});u.style.fontWeight="bold";p.appendChild(u);if(k){pa={H1:1,H2:1,H3:1,H4:1,H5:1,H6:1,P:1,PRE:1,BLOCKQUOTE:1,DIV:1,SUP:1,SUB:1,B:1,I:1,SPAN:1,FONT:1,STRIKE:1,U:1,BR:1};T=!1;Y=d.getSelectionCells();for(k=
0;k<Y.length&&!T;k++){var xa=d.getLabel(Y[k]);if(null!=xa&&0<xa.length)for(E=document.createElement("div"),E.innerHTML=xa,E=E.getElementsByTagName("*"),xa=0;xa<E.length;xa++)if(null==pa[E[xa].nodeName]||null!=E[xa].style&&""!=E[xa].style.backgroundColor){T=!0;break}}T&&(u.style.opacity="0.5",u.getElementsByTagName("input")[0].setAttribute("disabled","disabled"),u.setAttribute("title","Label contains unsupported HTML for SVG conversion. Supported: H1-H6, P, PRE, BLOCKQUOTE, DIV, B, I, U, STRIKE, SUP, SUB, SPAN, FONT, BR (without background color)."))}else u.style.opacity=
"0.5",u.getElementsByTagName("input")[0].setAttribute("disabled","disabled");k=this.createCellOption(mxResources.get("autosizeText"),"autosizeText","0",null,null,mxUtils.bind(this,function(ma,Aa){if(Aa)for(Aa=0;Aa<ma.length;Aa++)d.model.isVertex(ma[Aa])&&d.updateAutosizeTextFontSize(ma[Aa])}));k.style.fontWeight="bold";0<h.vertices.length&&p.appendChild(k);if(!g.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)u.getElementsByTagName("span")[0].style.maxWidth="172px",u.appendChild(g.menus.createHelpLink("https://github.com/jgraph/drawio/discussions/5165"));
-k=this.createPanel();k.style.height="86px";u=document.createElement("div");u.style.position="absolute";u.style.width="70px";u.style.marginTop="0px";u.style.fontWeight="bold";mxUtils.write(u,mxResources.get("spacing"));u.setAttribute("title",mxResources.get("spacing"));k.appendChild(u);var Na=this.addUnitInput(k,this.getUnit(),87,52,function(){tb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());Na.setAttribute("title",mxResources.get("top"));var Oa=this.addUnitInput(k,this.getUnit(),
-16,52,function(){hb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());Oa.setAttribute("title",mxResources.get("global"));mxUtils.br(k);this.addLabel(k,mxResources.get("top"),87,64);this.addLabel(k,mxResources.get("global"),16,64);mxUtils.br(k);mxUtils.br(k);var Ka=this.addUnitInput(k,this.getUnit(),158,52,function(){pb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());Ka.setAttribute("title",mxResources.get("left"));var Ma=this.addUnitInput(k,this.getUnit(),
-87,52,function(){eb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());Ma.setAttribute("title",mxResources.get("bottom"));var wa=this.addUnitInput(k,this.getUnit(),16,52,function(){gb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());wa.setAttribute("title",mxResources.get("right"));mxUtils.br(k);this.addLabel(k,mxResources.get("left"),158,64);this.addLabel(k,mxResources.get("bottom"),87,64);this.addLabel(k,mxResources.get("right"),16,64);if(d.cellEditor.isContentEditing()){var Ga=
-null,Za=null;a.appendChild(this.createRelativeOption(mxResources.get("lineheight"),null,null,function(ma){var Aa=""==ma.value?120:parseInt(ma.value);Aa=Math.max(0,isNaN(Aa)?120:Aa);if(window.getSelection){null!=Ga&&(d.cellEditor.restoreSelection(Ga),Ga=null);var ya=d.getSelectedEditingElement();if(null!=d.cellEditor.textarea&&ya==d.cellEditor.textarea){var Wa=window.getSelection();if(Wa.getRangeAt&&0<Wa.rangeCount){var Ta=Wa.getRangeAt(0);ya=document.createElement("div");ya.appendChild(Ta.extractContents());
-d.cellEditor.textarea.innerHTML="";d.cellEditor.textarea.appendChild(ya);Wa.removeAllRanges();Ta=new Range;Ta.selectNodeContents(ya);Wa.addRange(Ta)}}if(null!=ya)for(ya!=d.cellEditor.textarea&&e(ya,Aa),ya=ya.getElementsByTagName("*"),Wa=window.getSelection(),Ta=0;Ta<ya.length;Ta++)Wa.containsNode(ya[Ta],!0)&&e(ya[Ta],Aa)}ma.value=Aa+" %"},function(ma){Za=ma;mxEvent.addGestureListeners(ma,mxUtils.bind(this,function(Aa){document.activeElement==d.cellEditor.textarea&&(Ga=d.cellEditor.saveSelection())}));
-mxEvent.addListener(ma,"touchstart",function(){document.activeElement==d.cellEditor.textarea&&(Ga=d.cellEditor.saveSelection())});ma.value="120 %"}));p=l.cloneNode(!1);g.toolbar.addItems(["link","image"],p,!0,[Editor.linkImage,Editor.imageImage]);k=[g.addButton(Editor.horizontalRuleImage,mxResources.get("insertHorizontalRule"),function(){document.execCommand("inserthorizontalrule",!1)},p),g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(ma){g.menus.addInsertTableItem(ma,null,null,!1)})),null,
-Editor.tableImage,p)];k=this.createPanel();k.appendChild(this.createTitle(mxResources.get("insert")));k.appendChild(p);a.appendChild(k);u=l.cloneNode(!1);k=[g.addButton(Editor.addColumnLeftImage,mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{null!=V&&d.insertColumn(V,null!=U?U.cellIndex:0)}catch(ma){g.handleError(ma)}}),u),g.addButton(Editor.addColumnRightImage,mxResources.get("insertColumnAfter"),mxUtils.bind(this,function(){try{null!=V&&d.insertColumn(V,null!=U?U.cellIndex+
-1:-1)}catch(ma){g.handleError(ma)}}),u),g.addButton(Editor.removeColumnImage,mxResources.get("deleteColumn"),mxUtils.bind(this,function(){try{null!=V&&null!=U&&d.deleteColumn(V,U.cellIndex)}catch(ma){g.handleError(ma)}}),u),g.addButton(Editor.addRowAboveImage,mxResources.get("insertRowBefore"),mxUtils.bind(this,function(){try{null!=V&&null!=W&&d.insertRow(V,W.sectionRowIndex)}catch(ma){g.handleError(ma)}}),u),g.addButton(Editor.addRowBelowImage,mxResources.get("insertRowAfter"),mxUtils.bind(this,
-function(){try{null!=V&&null!=W&&d.insertRow(V,W.sectionRowIndex+1)}catch(ma){g.handleError(ma)}}),u),g.addButton(Editor.removeRowImage,mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{null!=V&&null!=W&&d.deleteRow(V,W.sectionRowIndex)}catch(ma){g.handleError(ma)}}),u)];k[2].style.marginRight="10px";p=this.createPanel();p.appendChild(this.createTitle(mxResources.get("table")));p.appendChild(u);l=l.cloneNode(!1);k=[g.addButton(Editor.strokeColorImage,mxResources.get("borderColor"),mxUtils.bind(this,
-function(ma){if(null!=V){var Aa=V.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(ya,Wa,Ta,q){return"#"+("0"+Number(Wa).toString(16)).substr(-2)+("0"+Number(Ta).toString(16)).substr(-2)+("0"+Number(q).toString(16)).substr(-2)});g.pickColor(Aa,function(ya){var Wa=null==U||null!=ma&&mxEvent.isShiftDown(ma)?V:U;d.processElements(Wa,function(Ta){Ta.style.border=null});null==ya||ya==mxConstants.NONE?(Wa.removeAttribute("border"),Wa.style.border="",Wa.style.borderCollapse=
-""):(Wa.setAttribute("border","1"),Wa.style.border="1px solid "+ya,Wa.style.borderCollapse="collapse")})}}),l),g.addButton(Editor.fillColorImage,mxResources.get("backgroundColor"),mxUtils.bind(this,function(ma){if(null!=V){var Aa=V.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(ya,Wa,Ta,q){return"#"+("0"+Number(Wa).toString(16)).substr(-2)+("0"+Number(Ta).toString(16)).substr(-2)+("0"+Number(q).toString(16)).substr(-2)});g.pickColor(Aa,function(ya){var Wa=
-null==U||null!=ma&&mxEvent.isShiftDown(ma)?V:U;d.processElements(Wa,function(Ta){Ta.style.backgroundColor=null});Wa.style.backgroundColor=null==ya||ya==mxConstants.NONE?"":ya})}}),l),g.addButton(Editor.spacingImage,mxResources.get("spacing"),function(){if(null!=V){var ma=V.getAttribute("cellPadding")||0;ma=new FilenameDialog(g,ma,mxResources.get("apply"),mxUtils.bind(this,function(Aa){null!=Aa&&0<Aa.length?V.setAttribute("cellPadding",Aa):V.removeAttribute("cellPadding")}),mxResources.get("spacing"));
-g.showDialog(ma.container,300,80,!0,!0);ma.init()}},l),g.addButton(Editor.alignLeftImage,mxResources.get("left"),function(){null!=V&&V.setAttribute("align","left")},l),g.addButton(Editor.alignCenterImage,mxResources.get("center"),function(){null!=V&&V.setAttribute("align","center")},l),g.addButton(Editor.alignRightImage,mxResources.get("right"),function(){null!=V&&V.setAttribute("align","right")},l)];k[2].style.marginRight="10px";p.appendChild(l);a.appendChild(p);var db=p}else a.appendChild(p),a.appendChild(this.createRelativeOption(mxResources.get("opacity"),
-mxConstants.STYLE_TEXT_OPACITY)),a.appendChild(k);for(k=0;3>k;k++)(function(ma){mxEvent.addListener(x[ma],"click",function(){f(x[ma],""==x[ma].style.backgroundImage)})})(k);var ab=mxUtils.bind(this,function(ma,Aa,ya){h=g.getSelectionState();ma=mxUtils.getValue(h.style,mxConstants.STYLE_FONTSTYLE,0);f(x[0],(ma&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD);f(x[1],(ma&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC);f(x[2],(ma&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE);g.toolbar.setMenuText(v,
-mxUtils.getValue(h.style,mxConstants.STYLE_FONTFAMILY,Menus.prototype.defaultFont));f(z,"0"==mxUtils.getValue(h.style,mxConstants.STYLE_HORIZONTAL,"1"));if(ya||document.activeElement!=na)ma=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_FONTSIZE,Menus.prototype.defaultFontSize)),na.value=isNaN(ma)?"":ma+" "+Editor.fontSizeUnit;ma=mxUtils.getValue(h.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER);f(D,ma==mxConstants.ALIGN_LEFT);f(G,ma==mxConstants.ALIGN_CENTER);f(H,ma==mxConstants.ALIGN_RIGHT);
-ma=mxUtils.getValue(h.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE);f(L,ma==mxConstants.ALIGN_TOP);f(N,ma==mxConstants.ALIGN_MIDDLE);f(K,ma==mxConstants.ALIGN_BOTTOM);ma=mxUtils.getValue(h.style,mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER);Aa=mxUtils.getValue(h.style,mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);ca.value=ma==mxConstants.ALIGN_LEFT&&Aa==mxConstants.ALIGN_TOP?"topLeft":ma==mxConstants.ALIGN_CENTER&&Aa==mxConstants.ALIGN_TOP?"top":
-ma==mxConstants.ALIGN_RIGHT&&Aa==mxConstants.ALIGN_TOP?"topRight":ma==mxConstants.ALIGN_LEFT&&Aa==mxConstants.ALIGN_BOTTOM?"bottomLeft":ma==mxConstants.ALIGN_CENTER&&Aa==mxConstants.ALIGN_BOTTOM?"bottom":ma==mxConstants.ALIGN_RIGHT&&Aa==mxConstants.ALIGN_BOTTOM?"bottomRight":ma==mxConstants.ALIGN_LEFT?"left":ma==mxConstants.ALIGN_RIGHT?"right":"center";ma=mxUtils.getValue(h.style,mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);ma==mxConstants.TEXT_DIRECTION_RTL?ba.value="rightToLeft":
-ma==mxConstants.TEXT_DIRECTION_LTR?ba.value="leftToRight":ma!=mxConstants.TEXT_DIRECTION_AUTO&&h.html?ma==mxConstants.TEXT_DIRECTION_VERTICAL_LR?ba.value="vertical-leftToRight":ma==mxConstants.TEXT_DIRECTION_VERTICAL_RL&&(ba.value="vertical-rightToLeft"):ba.value="automatic";if(ya||document.activeElement!=Oa)ma=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING,2)),Oa.value=isNaN(ma)?"":this.inUnit(ma)+" "+this.getUnit();if(ya||document.activeElement!=Na)ma=parseFloat(mxUtils.getValue(h.style,
-mxConstants.STYLE_SPACING_TOP,0)),Na.value=isNaN(ma)?"":this.inUnit(ma)+" "+this.getUnit();if(ya||document.activeElement!=wa)ma=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_RIGHT,0)),wa.value=isNaN(ma)?"":this.inUnit(ma)+" "+this.getUnit();if(ya||document.activeElement!=Ma)ma=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_BOTTOM,0)),Ma.value=isNaN(ma)?"":this.inUnit(ma)+" "+this.getUnit();if(ya||document.activeElement!=Ka)ma=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_LEFT,
-0)),Ka.value=isNaN(ma)?"":this.inUnit(ma)+" "+this.getUnit()});var hb=this.installInputHandler(Oa,mxConstants.STYLE_SPACING,2,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var tb=this.installInputHandler(Na,mxConstants.STYLE_SPACING_TOP,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var gb=this.installInputHandler(wa,mxConstants.STYLE_SPACING_RIGHT,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var eb=this.installInputHandler(Ma,mxConstants.STYLE_SPACING_BOTTOM,0,-999,
-999,this.getUnit(" "),null,this.isFloatUnit(),!0);var pb=this.installInputHandler(Ka,mxConstants.STYLE_SPACING_LEFT,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);this.addKeyHandler(na,ab);this.addKeyHandler(Oa,ab);this.addKeyHandler(Na,ab);this.addKeyHandler(wa,ab);this.addKeyHandler(Ma,ab);this.addKeyHandler(Ka,ab);d.getModel().addListener(mxEvent.CHANGE,ab);this.listeners.push({destroy:function(){d.getModel().removeListener(ab)}});ab();if(d.cellEditor.isContentEditing()){var fb=null,
-mb=!1;l=mxUtils.bind(this,function(){mb||(mb=!0,window.setTimeout(mxUtils.bind(this,function(){var ma=d.getSelectedEditingElement();if(null!=ma&&null!=d.cellEditor.textarea){var Aa=function(da,ia){if(null!=da&&null!=ia){if(da==ia)return!0;if(da.length>ia.length+1)return da.substring(da.length-ia.length-1,da.length)=="-"+ia}return!1},ya=function(da){if(null!=d.getParentByName(ma,da,d.cellEditor.textarea))return!0;for(var ia=ma;null!=ia&&1==ia.childNodes.length;)if(ia=ia.childNodes[0],ia.nodeName==
-da)return!0;return!1},Wa=function(da){for(;null!=da&&da!=d.cellEditor.textarea;){if("block"==mxUtils.getCurrentStyle(da).display)return da;da=da.parentNode}return null},Ta=mxUtils.getCurrentStyle(ma),q=ma==d.cellEditor.textarea||""==ma.style.lineHeight?null:ma.style.lineHeight,B=ma==d.cellEditor.textarea||""==ma.style.fontSize?null:b(Ta);if(window.getSelection)for(var C=ma.getElementsByTagName("*"),F=window.getSelection(),J=0;J<C.length&&(!F.containsNode(C[J],!0)||null==C[J].style||(null==B&&""!=
-C[J].style.fontSize&&(B=parseFloat(C[J].style.fontSize)),null==q&&""!=C[J].style.lineHeight&&(q=C[J].style.lineHeight),null==B||null==q));J++);null==B&&(B=b(Ta));if(null==q)for(C=ma;null!=C&&C!=d.cellEditor.textarea.parentNode;){if(null!=C.style&&""!=C.style.lineHeight){q=C.style.lineHeight;break}C=C.parentNode}if(null!=Ta){f(x[0],"bold"==Ta.fontWeight||400<Ta.fontWeight||ya("B")||ya("STRONG"));f(x[1],"italic"==Ta.fontStyle||ya("I")||ya("EM"));f(x[2],"underline"==Ta.textDecorationLine||ya("U"));f(R,
-"line-through"==Ta.textDecorationLine||ya("STRIKE"));f(ea,ya("SUP"));f(aa,ya("SUB"));var P=Wa(ma);if(null!=P){ya=function(da,ia){oa.push({name:da,dispName:ia,type:"string",getValue:function(){return X[da]},valueChanged:function(za,Ca){var Fa=P.style,Pa=za;parseInt(Pa)==Pa&&(Pa+="px",null!=Ca&&(Ca.value=Pa));Fa[da]=Pa;""==za&&null!=Ca&&(Ca.value=X[da])}})};var X=mxUtils.getCurrentStyle(P),oa=[];ya("paddingTop","Padding Top");ya("paddingRight","Padding Right");ya("paddingLeft","Padding Left");ya("paddingBottom",
-"Padding Bottom");ya("marginTop","Margin Top");ya("marginRight","Margin Right");ya("marginLeft","Margin Left");ya("marginBottom","Margin Bottom");ya=this.createPanel();this.addProperties(ya,oa,h,!0);null!=fb?fb.parentNode.replaceChild(ya,fb):a.appendChild(ya);fb=ya}d.cellEditor.isTableSelected()?(f(ka,Aa(Ta.textAlign,"justify")),f(D,Aa(Ta.textAlign,"left")),f(G,Aa(Ta.textAlign,"center")),f(H,Aa(Ta.textAlign,"right"))):(ya=d.cellEditor.align||mxUtils.getValue(h.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),
-Aa(Ta.textAlign,"justify")?(f(ka,Aa(Ta.textAlign,"justify")),f(D,!1),f(G,!1),f(H,!1)):(f(ka,!1),f(D,ya==mxConstants.ALIGN_LEFT),f(G,ya==mxConstants.ALIGN_CENTER),f(H,ya==mxConstants.ALIGN_RIGHT)));V=d.getParentByName(ma,"TABLE",d.cellEditor.textarea);W=null==V?null:d.getParentByName(ma,"TR",V);U=null==V?null:d.getParentByNames(ma,["TD","TH"],V);db.style.display=null!=V?"":"none";document.activeElement!=na&&(na.value=isNaN(B)?"":B+" "+Editor.fontSizeUnit,"string"===typeof q&&0<q.indexOf("%")?Za.value=
-q.replace("%"," %"):(Aa=parseFloat(q),isNaN(Aa)?Za.value="120 %":Za.value=Math.round(100*Aa)+" %"));null!=ha&&(M=d.getTextColor(ma,!0),ha(M,!0));null!=Z&&(ja=d.getTextColor(ma,!1),Z(ja,!0));g.toolbar.setMenuText(v,mxUtils.getCssFontFamily(Ta.fontFamily))}}mb=!1}),0))});mxEvent.addListener(d.cellEditor.textarea,"input",l);mxEvent.addListener(d.cellEditor.textarea,"touchend",l);mxEvent.addListener(d.cellEditor.textarea,"mouseup",l);mxEvent.addListener(d.cellEditor.textarea,"keyup",l);this.listeners.push({destroy:function(){}});
-l()}return a};StyleFormatPanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};mxUtils.extend(StyleFormatPanel,BaseFormatPanel);
-StyleFormatPanel.prototype.init=function(){var a=this.editorUi.getSelectionState();if(!a.containsLabel&&0<a.cells.length){a.containsImage&&1==a.vertices.length&&"image"==a.style.shape&&null!=a.style.image&&"data:image/svg+xml;"==String(a.style.image).substring(0,19)&&this.container.appendChild(this.addSvgStyles(this.createPanel()));a.fill&&this.container.appendChild(this.addFill(this.createPanel()));this.container.appendChild(this.addStroke(this.createPanel()));this.container.appendChild(this.addLineJumps(this.createPanel()));
-var b=this.createRelativeOption(mxResources.get("opacity"),mxConstants.STYLE_OPACITY);this.container.appendChild(b);this.container.appendChild(this.addEffects(this.createPanel()))}b=this.createPanel();1==a.cells.length&&(this.addEditOps(b),null!=b.firstChild&&mxUtils.br(b));1<=a.cells.length&&this.addStyleOps(b);null!=b.firstChild&&this.container.appendChild(b)};
-StyleFormatPanel.prototype.getCssRules=function(a){var b=document.implementation.createHTMLDocument(""),e=document.createElement("style");mxUtils.setTextContent(e,a);b.body.appendChild(e);return e.sheet.cssRules};
+k=this.createPanel();k.style.height="86px";var Na=this.addUnitInput(k,this.getUnit(),87,52,function(){tb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());Na.setAttribute("title",mxResources.get("top"));var Oa=this.addUnitInput(k,this.getUnit(),16,52,function(){hb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());Oa.setAttribute("title",mxResources.get("global"));mxUtils.br(k);this.addLabel(k,mxResources.get("top"),87,64);this.addLabel(k,mxResources.get("global"),
+16,64);mxUtils.br(k);mxUtils.br(k);var Ka=this.addUnitInput(k,this.getUnit(),158,52,function(){pb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());Ka.setAttribute("title",mxResources.get("left"));var Ma=this.addUnitInput(k,this.getUnit(),87,52,function(){eb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());Ma.setAttribute("title",mxResources.get("bottom"));var wa=this.addUnitInput(k,this.getUnit(),16,52,function(){gb.apply(this,arguments)},this.getUnitStep(),
+null,null,this.isFloatUnit());wa.setAttribute("title",mxResources.get("right"));mxUtils.br(k);this.addLabel(k,mxResources.get("left"),158,64);this.addLabel(k,mxResources.get("bottom"),87,64);this.addLabel(k,mxResources.get("right"),16,64);if(d.cellEditor.isContentEditing()){var Ga=null,Za=null;a.appendChild(this.createRelativeOption(mxResources.get("lineheight"),null,null,function(ma){var Aa=""==ma.value?120:parseInt(ma.value);Aa=Math.max(0,isNaN(Aa)?120:Aa);if(window.getSelection){null!=Ga&&(d.cellEditor.restoreSelection(Ga),
+Ga=null);var ya=d.getSelectedEditingElement();if(null!=d.cellEditor.textarea&&ya==d.cellEditor.textarea){var Wa=window.getSelection();if(Wa.getRangeAt&&0<Wa.rangeCount){var Ta=Wa.getRangeAt(0);ya=document.createElement("div");ya.appendChild(Ta.extractContents());d.cellEditor.textarea.innerHTML="";d.cellEditor.textarea.appendChild(ya);Wa.removeAllRanges();Ta=new Range;Ta.selectNodeContents(ya);Wa.addRange(Ta)}}if(null!=ya)for(ya!=d.cellEditor.textarea&&e(ya,Aa),ya=ya.getElementsByTagName("*"),Wa=window.getSelection(),
+Ta=0;Ta<ya.length;Ta++)Wa.containsNode(ya[Ta],!0)&&e(ya[Ta],Aa)}ma.value=Aa+" %"},function(ma){Za=ma;mxEvent.addGestureListeners(ma,mxUtils.bind(this,function(Aa){document.activeElement==d.cellEditor.textarea&&(Ga=d.cellEditor.saveSelection())}));mxEvent.addListener(ma,"touchstart",function(){document.activeElement==d.cellEditor.textarea&&(Ga=d.cellEditor.saveSelection())});ma.value="120 %"}));p=l.cloneNode(!1);g.toolbar.addItems(["link","image"],p,!0,[Editor.linkImage,Editor.imageImage]);k=[g.addButton(Editor.horizontalRuleImage,
+mxResources.get("insertHorizontalRule"),function(){document.execCommand("inserthorizontalrule",!1)},p),g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(ma){g.menus.addInsertTableItem(ma,null,null,!1)})),null,Editor.tableImage,p)];k=this.createPanel();k.appendChild(this.createTitle(mxResources.get("insert")));k.appendChild(p);a.appendChild(k);u=l.cloneNode(!1);k=[g.addButton(Editor.addColumnLeftImage,mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{null!=V&&d.insertColumn(V,
+null!=U?U.cellIndex:0)}catch(ma){g.handleError(ma)}}),u),g.addButton(Editor.addColumnRightImage,mxResources.get("insertColumnAfter"),mxUtils.bind(this,function(){try{null!=V&&d.insertColumn(V,null!=U?U.cellIndex+1:-1)}catch(ma){g.handleError(ma)}}),u),g.addButton(Editor.removeColumnImage,mxResources.get("deleteColumn"),mxUtils.bind(this,function(){try{null!=V&&null!=U&&d.deleteColumn(V,U.cellIndex)}catch(ma){g.handleError(ma)}}),u),g.addButton(Editor.addRowAboveImage,mxResources.get("insertRowBefore"),
+mxUtils.bind(this,function(){try{null!=V&&null!=W&&d.insertRow(V,W.sectionRowIndex)}catch(ma){g.handleError(ma)}}),u),g.addButton(Editor.addRowBelowImage,mxResources.get("insertRowAfter"),mxUtils.bind(this,function(){try{null!=V&&null!=W&&d.insertRow(V,W.sectionRowIndex+1)}catch(ma){g.handleError(ma)}}),u),g.addButton(Editor.removeRowImage,mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{null!=V&&null!=W&&d.deleteRow(V,W.sectionRowIndex)}catch(ma){g.handleError(ma)}}),u)];k[2].style.marginRight=
+"10px";p=this.createPanel();p.appendChild(this.createTitle(mxResources.get("table")));p.appendChild(u);l=l.cloneNode(!1);k=[g.addButton(Editor.strokeColorImage,mxResources.get("borderColor"),mxUtils.bind(this,function(ma){if(null!=V){var Aa=V.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(ya,Wa,Ta,q){return"#"+("0"+Number(Wa).toString(16)).substr(-2)+("0"+Number(Ta).toString(16)).substr(-2)+("0"+Number(q).toString(16)).substr(-2)});g.pickColor(Aa,function(ya){var Wa=
+null==U||null!=ma&&mxEvent.isShiftDown(ma)?V:U;d.processElements(Wa,function(Ta){Ta.style.border=null});null==ya||ya==mxConstants.NONE?(Wa.removeAttribute("border"),Wa.style.border="",Wa.style.borderCollapse=""):(Wa.setAttribute("border","1"),Wa.style.border="1px solid "+ya,Wa.style.borderCollapse="collapse")})}}),l),g.addButton(Editor.fillColorImage,mxResources.get("backgroundColor"),mxUtils.bind(this,function(ma){if(null!=V){var Aa=V.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,
+function(ya,Wa,Ta,q){return"#"+("0"+Number(Wa).toString(16)).substr(-2)+("0"+Number(Ta).toString(16)).substr(-2)+("0"+Number(q).toString(16)).substr(-2)});g.pickColor(Aa,function(ya){var Wa=null==U||null!=ma&&mxEvent.isShiftDown(ma)?V:U;d.processElements(Wa,function(Ta){Ta.style.backgroundColor=null});Wa.style.backgroundColor=null==ya||ya==mxConstants.NONE?"":ya})}}),l),g.addButton(Editor.spacingImage,mxResources.get("spacing"),function(){if(null!=V){var ma=V.getAttribute("cellPadding")||0;ma=new FilenameDialog(g,
+ma,mxResources.get("apply"),mxUtils.bind(this,function(Aa){null!=Aa&&0<Aa.length?V.setAttribute("cellPadding",Aa):V.removeAttribute("cellPadding")}),mxResources.get("spacing"));g.showDialog(ma.container,300,80,!0,!0);ma.init()}},l),g.addButton(Editor.alignLeftImage,mxResources.get("left"),function(){null!=V&&V.setAttribute("align","left")},l),g.addButton(Editor.alignCenterImage,mxResources.get("center"),function(){null!=V&&V.setAttribute("align","center")},l),g.addButton(Editor.alignRightImage,mxResources.get("right"),
+function(){null!=V&&V.setAttribute("align","right")},l)];k[2].style.marginRight="10px";p.appendChild(l);a.appendChild(p);var db=p}else a.appendChild(p),a.appendChild(this.createRelativeOption(mxResources.get("opacity"),mxConstants.STYLE_TEXT_OPACITY)),l=this.createCollapsibleSection(mxResources.get("spacing"),!0),l.contentDiv.appendChild(k),a.appendChild(l.wrapper);for(k=0;3>k;k++)(function(ma){mxEvent.addListener(x[ma],"click",function(){f(x[ma],""==x[ma].style.backgroundImage)})})(k);var ab=mxUtils.bind(this,
+function(ma,Aa,ya){h=g.getSelectionState();ma=mxUtils.getValue(h.style,mxConstants.STYLE_FONTSTYLE,0);f(x[0],(ma&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD);f(x[1],(ma&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC);f(x[2],(ma&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE);g.toolbar.setMenuText(v,mxUtils.getValue(h.style,mxConstants.STYLE_FONTFAMILY,Menus.prototype.defaultFont));f(z,"0"==mxUtils.getValue(h.style,mxConstants.STYLE_HORIZONTAL,"1"));if(ya||document.activeElement!=na)ma=
+parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_FONTSIZE,Menus.prototype.defaultFontSize)),na.value=isNaN(ma)?"":ma+" "+Editor.fontSizeUnit;ma=mxUtils.getValue(h.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER);f(D,ma==mxConstants.ALIGN_LEFT);f(G,ma==mxConstants.ALIGN_CENTER);f(H,ma==mxConstants.ALIGN_RIGHT);ma=mxUtils.getValue(h.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE);f(L,ma==mxConstants.ALIGN_TOP);f(N,ma==mxConstants.ALIGN_MIDDLE);f(K,ma==mxConstants.ALIGN_BOTTOM);
+ma=mxUtils.getValue(h.style,mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER);Aa=mxUtils.getValue(h.style,mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);ca.value=ma==mxConstants.ALIGN_LEFT&&Aa==mxConstants.ALIGN_TOP?"topLeft":ma==mxConstants.ALIGN_CENTER&&Aa==mxConstants.ALIGN_TOP?"top":ma==mxConstants.ALIGN_RIGHT&&Aa==mxConstants.ALIGN_TOP?"topRight":ma==mxConstants.ALIGN_LEFT&&Aa==mxConstants.ALIGN_BOTTOM?"bottomLeft":ma==mxConstants.ALIGN_CENTER&&Aa==mxConstants.ALIGN_BOTTOM?
+"bottom":ma==mxConstants.ALIGN_RIGHT&&Aa==mxConstants.ALIGN_BOTTOM?"bottomRight":ma==mxConstants.ALIGN_LEFT?"left":ma==mxConstants.ALIGN_RIGHT?"right":"center";ma=mxUtils.getValue(h.style,mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);ma==mxConstants.TEXT_DIRECTION_RTL?ba.value="rightToLeft":ma==mxConstants.TEXT_DIRECTION_LTR?ba.value="leftToRight":ma!=mxConstants.TEXT_DIRECTION_AUTO&&h.html?ma==mxConstants.TEXT_DIRECTION_VERTICAL_LR?ba.value="vertical-leftToRight":ma==mxConstants.TEXT_DIRECTION_VERTICAL_RL&&
+(ba.value="vertical-rightToLeft"):ba.value="automatic";if(ya||document.activeElement!=Oa)ma=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING,2)),Oa.value=isNaN(ma)?"":this.inUnit(ma)+" "+this.getUnit();if(ya||document.activeElement!=Na)ma=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_TOP,0)),Na.value=isNaN(ma)?"":this.inUnit(ma)+" "+this.getUnit();if(ya||document.activeElement!=wa)ma=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_RIGHT,0)),wa.value=isNaN(ma)?
+"":this.inUnit(ma)+" "+this.getUnit();if(ya||document.activeElement!=Ma)ma=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_BOTTOM,0)),Ma.value=isNaN(ma)?"":this.inUnit(ma)+" "+this.getUnit();if(ya||document.activeElement!=Ka)ma=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_LEFT,0)),Ka.value=isNaN(ma)?"":this.inUnit(ma)+" "+this.getUnit()});var hb=this.installInputHandler(Oa,mxConstants.STYLE_SPACING,2,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var tb=this.installInputHandler(Na,
+mxConstants.STYLE_SPACING_TOP,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var gb=this.installInputHandler(wa,mxConstants.STYLE_SPACING_RIGHT,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var eb=this.installInputHandler(Ma,mxConstants.STYLE_SPACING_BOTTOM,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var pb=this.installInputHandler(Ka,mxConstants.STYLE_SPACING_LEFT,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);this.addKeyHandler(na,ab);this.addKeyHandler(Oa,
+ab);this.addKeyHandler(Na,ab);this.addKeyHandler(wa,ab);this.addKeyHandler(Ma,ab);this.addKeyHandler(Ka,ab);d.getModel().addListener(mxEvent.CHANGE,ab);this.listeners.push({destroy:function(){d.getModel().removeListener(ab)}});ab();if(d.cellEditor.isContentEditing()){var fb=null,mb=!1;l=mxUtils.bind(this,function(){mb||(mb=!0,window.setTimeout(mxUtils.bind(this,function(){var ma=d.getSelectedEditingElement();if(null!=ma&&null!=d.cellEditor.textarea){var Aa=function(da,ia){if(null!=da&&null!=ia){if(da==
+ia)return!0;if(da.length>ia.length+1)return da.substring(da.length-ia.length-1,da.length)=="-"+ia}return!1},ya=function(da){if(null!=d.getParentByName(ma,da,d.cellEditor.textarea))return!0;for(var ia=ma;null!=ia&&1==ia.childNodes.length;)if(ia=ia.childNodes[0],ia.nodeName==da)return!0;return!1},Wa=function(da){for(;null!=da&&da!=d.cellEditor.textarea;){if("block"==mxUtils.getCurrentStyle(da).display)return da;da=da.parentNode}return null},Ta=mxUtils.getCurrentStyle(ma),q=ma==d.cellEditor.textarea||
+""==ma.style.lineHeight?null:ma.style.lineHeight,B=ma==d.cellEditor.textarea||""==ma.style.fontSize?null:b(Ta);if(window.getSelection)for(var C=ma.getElementsByTagName("*"),F=window.getSelection(),J=0;J<C.length&&(!F.containsNode(C[J],!0)||null==C[J].style||(null==B&&""!=C[J].style.fontSize&&(B=parseFloat(C[J].style.fontSize)),null==q&&""!=C[J].style.lineHeight&&(q=C[J].style.lineHeight),null==B||null==q));J++);null==B&&(B=b(Ta));if(null==q)for(C=ma;null!=C&&C!=d.cellEditor.textarea.parentNode;){if(null!=
+C.style&&""!=C.style.lineHeight){q=C.style.lineHeight;break}C=C.parentNode}if(null!=Ta){f(x[0],"bold"==Ta.fontWeight||400<Ta.fontWeight||ya("B")||ya("STRONG"));f(x[1],"italic"==Ta.fontStyle||ya("I")||ya("EM"));f(x[2],"underline"==Ta.textDecorationLine||ya("U"));f(R,"line-through"==Ta.textDecorationLine||ya("STRIKE"));f(ea,ya("SUP"));f(aa,ya("SUB"));var P=Wa(ma);if(null!=P){ya=function(da,ia){oa.push({name:da,dispName:ia,type:"string",getValue:function(){return X[da]},valueChanged:function(za,Ca){var Fa=
+P.style,Pa=za;parseInt(Pa)==Pa&&(Pa+="px",null!=Ca&&(Ca.value=Pa));Fa[da]=Pa;""==za&&null!=Ca&&(Ca.value=X[da])}})};var X=mxUtils.getCurrentStyle(P),oa=[];ya("paddingTop","Padding Top");ya("paddingRight","Padding Right");ya("paddingLeft","Padding Left");ya("paddingBottom","Padding Bottom");ya("marginTop","Margin Top");ya("marginRight","Margin Right");ya("marginLeft","Margin Left");ya("marginBottom","Margin Bottom");ya=this.createPanel();this.addProperties(ya,oa,h,!0);null!=fb?fb.parentNode.replaceChild(ya,
+fb):a.appendChild(ya);fb=ya}d.cellEditor.isTableSelected()?(f(ka,Aa(Ta.textAlign,"justify")),f(D,Aa(Ta.textAlign,"left")),f(G,Aa(Ta.textAlign,"center")),f(H,Aa(Ta.textAlign,"right"))):(ya=d.cellEditor.align||mxUtils.getValue(h.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),Aa(Ta.textAlign,"justify")?(f(ka,Aa(Ta.textAlign,"justify")),f(D,!1),f(G,!1),f(H,!1)):(f(ka,!1),f(D,ya==mxConstants.ALIGN_LEFT),f(G,ya==mxConstants.ALIGN_CENTER),f(H,ya==mxConstants.ALIGN_RIGHT)));V=d.getParentByName(ma,
+"TABLE",d.cellEditor.textarea);W=null==V?null:d.getParentByName(ma,"TR",V);U=null==V?null:d.getParentByNames(ma,["TD","TH"],V);db.style.display=null!=V?"":"none";document.activeElement!=na&&(na.value=isNaN(B)?"":B+" "+Editor.fontSizeUnit,"string"===typeof q&&0<q.indexOf("%")?Za.value=q.replace("%"," %"):(Aa=parseFloat(q),isNaN(Aa)?Za.value="120 %":Za.value=Math.round(100*Aa)+" %"));null!=ha&&(M=d.getTextColor(ma,!0),ha(M,!0));null!=Z&&(ja=d.getTextColor(ma,!1),Z(ja,!0));g.toolbar.setMenuText(v,mxUtils.getCssFontFamily(Ta.fontFamily))}}mb=
+!1}),0))});mxEvent.addListener(d.cellEditor.textarea,"input",l);mxEvent.addListener(d.cellEditor.textarea,"touchend",l);mxEvent.addListener(d.cellEditor.textarea,"mouseup",l);mxEvent.addListener(d.cellEditor.textarea,"keyup",l);this.listeners.push({destroy:function(){}});l()}return a};StyleFormatPanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};mxUtils.extend(StyleFormatPanel,BaseFormatPanel);
+StyleFormatPanel.prototype.init=function(){var a=this.editorUi.getSelectionState();if(!a.containsLabel&&0<a.cells.length){a.containsImage&&1==a.vertices.length&&"image"==a.style.shape&&null!=a.style.image&&"data:image/svg+xml;"==String(a.style.image).substring(0,19)&&this.container.appendChild(this.addSvgStyles(this.createPanel()));if(a.fill){var b=this.createCollapsibleSection(mxResources.get("fill"),!1);b.contentDiv.appendChild(this.addFill(this.createPanel()));this.container.appendChild(b.wrapper)}b=
+this.createCollapsibleSection(mxResources.get("line"),!1);b.contentDiv.appendChild(this.addStroke(this.createPanel()));this.container.appendChild(b.wrapper);b=this.addLineJumps(this.createPanel());var e=this.createCollapsibleSection(mxResources.get("lineJumps"),!0);e.contentDiv.appendChild(b);this.container.appendChild(e.wrapper);this.syncCollapsibleVisibility(e.wrapper,b);b=this.createRelativeOption(mxResources.get("opacity"),mxConstants.STYLE_OPACITY);this.container.appendChild(b);b=this.createCollapsibleSection(mxResources.get("effects"),
+!0);b.contentDiv.appendChild(this.addEffects(this.createPanel()));this.container.appendChild(b.wrapper)}b=this.createPanel();1==a.cells.length&&(this.addEditOps(b),null!=b.firstChild&&mxUtils.br(b));1<=a.cells.length&&this.addStyleOps(b);null!=b.firstChild&&this.container.appendChild(b)};StyleFormatPanel.prototype.getCssRules=function(a){var b=document.implementation.createHTMLDocument(""),e=document.createElement("style");mxUtils.setTextContent(e,a);b.body.appendChild(e);return e.sheet.cssRules};
StyleFormatPanel.prototype.addSvgStyles=function(a){var b=this.editorUi.getSelectionState();a.style.paddingTop="6px";a.style.paddingBottom="6px";a.style.fontWeight="bold";a.style.display="none";try{var e=b.style.editableCssRules;if(null!=e){var f=new RegExp(e),g=b.style.image.substring(b.style.image.indexOf(",")+1),d=window.atob?decodeURIComponent(escape(atob(g))):Base64.decode(g,!0),h=mxUtils.parseXml(d);if(null!=h){var l="light"==h.documentElement.style.colorScheme||"0"==mxUtils.getValue(b.style,
"darkMode",null),p=""==h.documentElement.style.colorScheme,k=h.getElementsByTagName("style");for(b=0;b<k.length;b++){var v=this.getCssRules(mxUtils.getTextContent(k[b]));for(e=0;e<v.length;e++)this.addSvgRule(a,v[e],h,k[b],v,e,f,l,p)}}}}catch(u){}return a};StyleFormatPanel.prototype.getColorSchemeFromCss=function(a){return(a=a.match(/color-scheme\s*:\s*([^;]+)/i))?a[1].trim():null};
StyleFormatPanel.prototype.addSvgRule=function(a,b,e,f,g,d,h,l,p){var k=this.editorUi,v=k.editor.graph;h.test(b.selectorText)&&(h=mxUtils.bind(this,function(u,x,z,E){var D=mxUtils.trim(u.style.getPropertyValue(x));if(""!=D&&"url("!=D.substring(0,4)){var G=D;"transparent"==G?G=mxConstants.NONE:(D=mxUtils.isLightDarkColor(G))&&E?E=!1:D||E||(G="light-dark("+G+", "+G+")");u=this.createColorOption(z+" "+u.selectorText,function(){return G},mxUtils.bind(this,function(H){g[d].style.setProperty(x,H==mxConstants.NONE?
@@ -3443,22 +3449,22 @@ O,W);T&&(ba=this.postProcessCellStyle(O,ba));return ba};e.refresh();e.getCellSty
"#84d7ff");for(var R=10*this.format.currentStylePage;R<Math.min(10*(this.format.currentStylePage+1),Editor.styles.length);R++){var V=Editor.styles[R];x(V.commonStyle,V.vertexStyle,V.edgeStyle,V.graph,R)}}),G=mxUtils.bind(this,function(R){0<=R&&R<z&&(E[this.format.currentStylePage].style.background="transparent",u.innerText="",this.format.currentStylePage=R,D())});if(1<z){var H=document.createElement("div");H.className="geSwitcher";H.style.width="200px";for(var L=0;L<z;L++){var N=document.createElement("div");
N.className="geSwitcherDot";mxUtils.bind(this,function(R,V){mxEvent.addListener(N,"click",mxUtils.bind(this,function(){G(R)}))})(L,N);H.appendChild(N);E.push(N)}a.appendChild(H);D();if(15>z&&0<E.length){L=document.createElement("div");L.className="geButton";L.style.backgroundImage="url("+Editor.chevronLeftImage+")";var K=L.cloneNode(!1);K.style.backgroundImage="url("+Editor.chevronRightImage+")";H.insertBefore(L,E[0]);H.appendChild(K);mxEvent.addListener(L,"click",mxUtils.bind(this,function(){G(mxUtils.mod(this.format.currentStylePage-
1,z))}));mxEvent.addListener(K,"click",mxUtils.bind(this,function(){G(mxUtils.mod(this.format.currentStylePage+1,z))}))}}else D();return a};DiagramFormatPanel=function(a,b,e){BaseFormatPanel.call(this,a,b,e);this.init()};mxUtils.extend(DiagramFormatPanel,BaseFormatPanel);DiagramFormatPanel.showPageView=!0;DiagramFormatPanel.prototype.showBackgroundImageOption=!0;
-DiagramFormatPanel.prototype.init=function(){var a=this.editorUi.editor.graph;this.container.appendChild(this.addView(this.createPanel()));a.isEnabled()&&(this.container.appendChild(this.addOptions(this.createPanel())),this.container.appendChild(this.addPaperSize(this.createPanel())),this.container.appendChild(this.addStyleOps(this.createPanel())))};
+DiagramFormatPanel.prototype.init=function(){var a=this.editorUi.editor.graph;this.container.appendChild(this.addView(this.createPanel()));a.isEnabled()&&(a=this.createCollapsibleSection(mxResources.get("options"),!1),a.contentDiv.appendChild(this.addOptions(this.createPanel())),this.container.appendChild(a.wrapper),a=this.createCollapsibleSection(mxResources.get("paperSize"),!0),a.contentDiv.appendChild(this.addPaperSize(this.createPanel())),this.container.appendChild(a.wrapper),this.container.appendChild(this.addStyleOps(this.createPanel())))};
DiagramFormatPanel.prototype.addView=function(a){var b=this.editorUi,e=b.editor.graph;a.appendChild(this.createTitle(mxResources.get("view")));this.addGridOption(a);DiagramFormatPanel.showPageView&&a.appendChild(this.createOption(mxResources.get("pageView"),function(){return e.pageVisible},function(d){b.actions.get("pageView").funct()},{install:function(d){this.listener=function(){d(e.pageVisible)};b.addListener("pageViewChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}}));
if(e.isEnabled()){if(this.showBackgroundImageOption){var f=this.createOption(mxResources.get("background"),function(){return null!=e.backgroundImage},function(d){d||(d=new ChangePageSetup(b,null,null),d.ignoreColor=!0,e.model.execute(d))},{install:function(d){this.listener=function(){d(null!=e.backgroundImage)};b.addListener("backgroundImageChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}}),g=f.getElementsByTagName("input")[0];null!=g&&(g.style.visibility=null!=e.backgroundImage?
"visible":"hidden");g=f.getElementsByTagName("span")[0];null!=g&&(g.style.maxWidth="80px");g=mxUtils.button(mxResources.get("change")+"...",function(d){b.showBackgroundImageDialog(null,b.editor.graph.backgroundImage,b.editor.graph.background);mxEvent.consume(d)});g.style.position="absolute";g.style.height="22px";g.style.left="102px";g.style.width="110px";g.style.maxWidth=g.style.width;f.appendChild(g);a.appendChild(f)}f=this.createColorOption(mxResources.get("backgroundColor"),function(){return e.background},
function(d){d=new ChangePageSetup(b,d);d.ignoreImage=!0;e.model.execute(d)},"#ffffff");a.appendChild(f);f=this.createOption(mxResources.get("shadow"),function(){return e.shadowVisible},function(d){var h=new ChangePageSetup(b);h.ignoreColor=!0;h.ignoreImage=!0;h.shadowVisible=d;e.model.execute(h)},{install:function(d){this.listener=function(){d(e.shadowVisible)};b.addListener("shadowVisibleChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}});Editor.enableShadowOption||(f.getElementsByTagName("input")[0].setAttribute("disabled",
"disabled"),mxUtils.setOpacity(f,60));a.appendChild(f)}return a};
-DiagramFormatPanel.prototype.addOptions=function(a){var b=this.editorUi,e=b.editor.graph;a.appendChild(this.createTitle(mxResources.get("options")));e.isEnabled()&&(a.appendChild(this.createOption(mxResources.get("connectionArrows"),function(){return e.connectionArrowsEnabled},function(f){b.actions.get("connectionArrows").funct()},{install:function(f){this.listener=function(){f(e.connectionArrowsEnabled)};b.addListener("connectionArrowsChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}})),
-a.appendChild(this.createOption(mxResources.get("connectionPoints"),function(){return e.connectionHandler.isEnabled()},function(f){b.actions.get("connectionPoints").funct()},{install:function(f){this.listener=function(){f(e.connectionHandler.isEnabled())};b.addListener("connectionPointsChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}})),a.appendChild(this.createOption(mxResources.get("guides"),function(){return e.graphHandler.guidesEnabled},function(f){b.actions.get("guides").funct()},
-{install:function(f){this.listener=function(){f(e.graphHandler.guidesEnabled)};b.addListener("guidesEnabledChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}})));return a};
+DiagramFormatPanel.prototype.addOptions=function(a){var b=this.editorUi,e=b.editor.graph;e.isEnabled()&&(a.appendChild(this.createOption(mxResources.get("connectionArrows"),function(){return e.connectionArrowsEnabled},function(f){b.actions.get("connectionArrows").funct()},{install:function(f){this.listener=function(){f(e.connectionArrowsEnabled)};b.addListener("connectionArrowsChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}})),a.appendChild(this.createOption(mxResources.get("connectionPoints"),
+function(){return e.connectionHandler.isEnabled()},function(f){b.actions.get("connectionPoints").funct()},{install:function(f){this.listener=function(){f(e.connectionHandler.isEnabled())};b.addListener("connectionPointsChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}})),a.appendChild(this.createOption(mxResources.get("guides"),function(){return e.graphHandler.guidesEnabled},function(f){b.actions.get("guides").funct()},{install:function(f){this.listener=function(){f(e.graphHandler.guidesEnabled)};
+b.addListener("guidesEnabledChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}})));return a};
DiagramFormatPanel.prototype.addGridOption=function(a){function b(k){var v=e.isFloatUnit()?parseFloat(d.value):parseInt(d.value);v=e.fromUnit(Math.max(e.inUnit(1),isNaN(v)?e.inUnit(10):v));v!=g.getGridSize()&&(mxGraph.prototype.gridSize=v,g.setGridSize(v));d.value=e.inUnit(v)+" "+e.getUnit();mxEvent.consume(k)}var e=this,f=this.editorUi,g=f.editor.graph,d=document.createElement("input");d.style.position="absolute";d.style.width="50px";d.setAttribute("title",mxResources.get("gridSize"));d.value=this.inUnit(g.getGridSize())+
" "+this.getUnit();var h=this.createStepper(d,b,this.getUnitStep(),null,null,this.isFloatUnit());d.style.display=g.isGridEnabled()?"":"none";h.style.display=d.style.display;mxEvent.addListener(d,"keydown",function(k){13==k.keyCode?(g.container.focus(),mxEvent.consume(k)):27==k.keyCode&&(d.value=g.getGridSize(),g.container.focus(),mxEvent.consume(k))});mxEvent.addListener(d,"blur",b);mxEvent.addListener(d,"change",b);d.style.left="100px";h.style.left="150px";var l=function(){return"none"!=g.getAdaptiveColors()&&
Editor.isDarkMode()},p="light-dark("+mxGraphView.prototype.defaultGridColor+","+mxGraphView.prototype.defaultDarkGridColor+")";p=this.createColorOption(mxResources.get("grid"),function(){return g.isGridEnabled()?g.view.gridColor:null},function(k){var v=g.isGridEnabled();k==mxConstants.NONE?g.setGridEnabled(!1):(g.setGridEnabled(!0),f.setGridColor(k,l()));d.style.display=g.isGridEnabled()?"":"none";h.style.display=d.style.display;v!=g.isGridEnabled()&&(g.defaultGridEnabled=g.isGridEnabled(),f.fireEvent(new mxEventObject("gridEnabledChanged")))},
g.view.gridColor,{install:function(k){this.listener=function(){k(g.isGridEnabled()?g.view.gridColor:mxConstants.NONE)};f.addListener("darkModeChanged",this.listener);f.addListener("gridColorChanged",this.listener);f.addListener("gridEnabledChanged",this.listener)},destroy:function(){f.removeListener(this.listener)}},null,null,p,!0,l);p.appendChild(d);p.appendChild(h);a.appendChild(p)};
DiagramFormatPanel.prototype.addDocumentProperties=function(a){a.appendChild(this.createTitle(mxResources.get("options")));return a};
-DiagramFormatPanel.prototype.addPaperSize=function(a){var b=this.editorUi,e=b.editor.graph;a.appendChild(this.createTitle(mxResources.get("paperSize")));var f=PageSetupDialog.addPageFormatPanel(a,"formatpanel",e.pageFormat,function(d){if(null==e.pageFormat||e.pageFormat.width!=d.width||e.pageFormat.height!=d.height)d=new ChangePageSetup(b,null,null,d),d.ignoreColor=!0,d.ignoreImage=!0,e.model.execute(d)});this.addKeyHandler(f.widthInput,function(){f.set(e.pageFormat)});this.addKeyHandler(f.heightInput,
-function(){f.set(e.pageFormat)});var g=function(){f.set(e.pageFormat)};b.addListener("pageFormatChanged",g);this.listeners.push({destroy:function(){b.removeListener(g)}});e.getModel().addListener(mxEvent.CHANGE,g);this.listeners.push({destroy:function(){e.getModel().removeListener(g)}});return a};DiagramFormatPanel.prototype.addStyleOps=function(a){this.addActions(a,["editData"]);this.addActions(a,["clearDefaultStyle"]);return a};
+DiagramFormatPanel.prototype.addPaperSize=function(a){var b=this.editorUi,e=b.editor.graph,f=PageSetupDialog.addPageFormatPanel(a,"formatpanel",e.pageFormat,function(d){if(null==e.pageFormat||e.pageFormat.width!=d.width||e.pageFormat.height!=d.height)d=new ChangePageSetup(b,null,null,d),d.ignoreColor=!0,d.ignoreImage=!0,e.model.execute(d)});this.addKeyHandler(f.widthInput,function(){f.set(e.pageFormat)});this.addKeyHandler(f.heightInput,function(){f.set(e.pageFormat)});var g=function(){f.set(e.pageFormat)};
+b.addListener("pageFormatChanged",g);this.listeners.push({destroy:function(){b.removeListener(g)}});e.getModel().addListener(mxEvent.CHANGE,g);this.listeners.push({destroy:function(){e.getModel().removeListener(g)}});return a};DiagramFormatPanel.prototype.addStyleOps=function(a){this.addActions(a,["editData"]);this.addActions(a,["clearDefaultStyle"]);return a};
DiagramFormatPanel.prototype.destroy=function(){BaseFormatPanel.prototype.destroy.apply(this,arguments);this.gridEnabledListener&&(this.editorUi.removeListener(this.gridEnabledListener),this.gridEnabledListener=null)};(function(){function a(c,m,r){mxShape.call(this);this.line=c;this.stroke=m;this.strokewidth=null!=r?r:1;this.updateBoundsFromLine()}function b(){mxSwimlane.call(this)}function e(){mxSwimlane.call(this)}function f(){mxCylinder.call(this)}function g(){mxConnector.call(this)}function d(){mxCylinder.call(this)}function h(){mxActor.call(this)}function l(){mxCylinder.call(this)}function p(){mxCylinder.call(this)}function k(){mxCylinder.call(this)}function v(){mxCylinder.call(this)}function u(){mxShape.call(this)}
function x(){mxShape.call(this)}function z(c,m,r,n){mxShape.call(this);this.bounds=c;this.fill=m;this.stroke=r;this.strokewidth=null!=n?n:1}function E(){mxActor.call(this)}function D(){mxCylinder.call(this)}function G(){mxCylinder.call(this)}function H(){mxActor.call(this)}function L(){mxActor.call(this)}function N(){mxActor.call(this)}function K(){mxActor.call(this)}function R(){mxActor.call(this)}function V(){mxActor.call(this)}function U(){mxActor.call(this)}function W(c,m){this.canvas=c;this.canvas.setLineJoin("round");
this.canvas.setLineCap("round");this.defaultVariation=m;this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,W.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,W.prototype.moveTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,W.prototype.close);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,W.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=mxUtils.bind(this,
@@ -12320,7 +12326,7 @@ this.descriptorChanged();null!=l&&l()}}catch(v){this.invalidChecksum=this.inConf
DrawioFile.prototype.getAnonymizedXmlForPages=function(b){var l=new mxCodec(mxUtils.createXmlDocument()),n=l.document.createElement("mxfile");if(null!=b)for(var f=0;f<b.length;f++){var x=l.encode(new mxGraphModel(b[f].root));"1"!=urlParams.dev&&(x=this.ui.anonymizeNode(x,!0));x.setAttribute("id",b[f].getId());b[f].viewState&&this.ui.editor.graph.saveViewState(b[f].viewState,x,!0);n.appendChild(x)}return mxUtils.getPrettyXml(n)};
DrawioFile.prototype.compressReportData=function(b,l,n){l=null!=l?l:1E4;null!=n&&null!=b&&b.length>n?b=b.substring(0,n)+"[...]":null!=b&&b.length>l&&(b=Graph.compress(b)+"\n");return b};
DrawioFile.prototype.checksumError=function(b,l,n,f,x,z,y,E){this.stats.checksumErrors++;this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=b&&b();try{var M=this.getCurrentUser(),L=null!=M?M.id:"unknown",O=""!=this.getId()?this.getId():"("+this.ui.hashValue(this.getTitle())+")",R=JSON.stringify(l).length,c=null;if(null!=l&&1E3>R){b=[];for(n=0;n<l.length;n++)b.push(this.ui.anonymizePatch(l[n]));c=JSON.stringify(b);c=null!=c&&1E3>
-c.length?Graph.compress(c):null}this.getLatestVersion(mxUtils.bind(this,function(d){try{var k=null!=c?"report":"error",m=this.ui.getHashValueForPages(d.getShadowPages()),q="unknown",v="unknown",A="unknown";try{var C=null!=d.initialData&&0<d.initialData.length?mxUtils.parseXml(d.initialData).documentElement:null;null!=C&&(null!=C.getAttribute("version")&&(q=C.getAttribute("version")),null!=C.getAttribute("agent")&&(v=C.getAttribute("agent")),null!=C.getAttribute("type")&&(A=C.getAttribute("type")))}catch(D){}EditorUi.logError("Checksum "+
+c.length?Graph.compress(c):null}this.getLatestVersion(mxUtils.bind(this,function(d){try{var k=null!=c?"report":"error",m=this.ui.getHashValueForPages(d.getShadowPages()),q="unknown",v="unknown",A="unknown";try{var B=null!=d.initialData&&0<d.initialData.length?mxUtils.parseXml(d.initialData).documentElement:null;null!=B&&(null!=B.getAttribute("version")&&(q=B.getAttribute("version")),null!=B.getAttribute("agent")&&(v=B.getAttribute("agent")),null!=B.getAttribute("type")&&(A=B.getAttribute("type")))}catch(D){}EditorUi.logError("Checksum "+
k+" in "+x,null,this.getMode()+"."+O,"user_"+L+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+R+"-patches_"+l.length+(null!=c?"-json_"+c:"")+"-size_"+this.getSize()+(null!=z?"-expected_"+z:"")+(null!=y?"-current_"+y:"")+(null!=E?"-rev_"+this.ui.hashValue(E):"")+(null!=m?"-latest_"+m:"")+"-latestRev_"+this.ui.hashValue(d.getCurrentRevisionId())+("-latestVersion_"+q)+("-latestAgent_"+v)+("-latestType_"+A));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+O,action:x,label:"user_"+
L+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+R+"-patches_"+l.length+"-size_"+this.getSize()})}catch(D){}}),function(){})}catch(d){}};
DrawioFile.prototype.sendErrorReport=function(b,l,n,f){try{var x=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),z=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),y=this.getCurrentUser(),E=null!=y?this.ui.hashValue(y.id):"unknown",M=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",L=this.getTitle(),O=L.lastIndexOf(".");y="xml";0<O&&(y=L.substring(O));var R=null!=n?n.stack:Error().stack;EditorUi.sendReport(b+" "+(new Date).toISOString()+
@@ -12414,10 +12420,10 @@ StorageLibrary.prototype.getTitle=function(){return".scratchpad"==this.title?mxR
RemoteLibrary.prototype.saveAs=function(b,l,n){};RemoteLibrary.prototype.updateFileData=function(){};RemoteLibrary.prototype.open=function(){};UrlLibrary=function(b,l,n){StorageFile.call(this,b,l,n);b=n;l=b.lastIndexOf("/");0<=l&&(b=b.substring(l+1));this.fname=b};mxUtils.extend(UrlLibrary,StorageFile);UrlLibrary.prototype.getHash=function(){return"U"+encodeURIComponent(this.title)};UrlLibrary.prototype.getTitle=function(){return this.fname};UrlLibrary.prototype.isAutosave=function(){return!1};UrlLibrary.prototype.isEditable=function(b,l,n){return!1};UrlLibrary.prototype.saveAs=function(b,l,n){};UrlLibrary.prototype.open=function(){};EmbedFile=function(b,l,n){DrawioFile.call(this,b,l);this.desc=n||{};this.mode=App.MODE_EMBED};mxUtils.extend(EmbedFile,DrawioFile);EmbedFile.prototype.getMode=function(){return this.mode};EmbedFile.prototype.getTitle=function(){return this.desc.title||""};/*
mxClient.IS_IOS || */
var StorageDialog=function(b,l,n){function f(R,c,d,k,m,q){function v(){mxEvent.addListener(A,"click",null!=q?q:function(){d==App.MODE_GOOGLE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.drive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(d,!0);l()})):d==App.MODE_ONEDRIVE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.oneDrive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(d,!0);l()}),function(T){b.spinner.stop();b.handleError(T)}):
-(b.setMode(d,!0),l())})}E++;++y>n&&(mxUtils.br(M),y=1);var A=document.createElement("a");A.style.overflow="hidden";A.style.display="inline-block";A.className="geBaseButton";A.style.boxSizing="border-box";A.style.fontSize="11px";A.style.position="relative";A.style.margin="4px";A.style.marginTop="8px";A.style.marginBottom="0px";A.style.padding="8px 10px 8px 10px";A.style.width="88px";A.style.height="100px";A.style.whiteSpace="nowrap";A.setAttribute("title",c);var C=document.createElement("div");C.style.textOverflow=
-"ellipsis";C.style.overflow="hidden";C.style.position="absolute";C.style.bottom="8px";C.style.left="0px";C.style.right="0px";mxUtils.write(C,c);A.appendChild(C);if(null!=R){var D=document.createElement("img");D.setAttribute("src",R);D.setAttribute("border","0");D.setAttribute("align","absmiddle");D.style.width="60px";D.style.height="60px";D.style.paddingBottom="6px";A.appendChild(D)}else C.style.paddingTop="5px",C.style.whiteSpace="normal",mxClient.IS_IOS?(A.style.padding="0px 10px 20px 10px",A.style.top=
-"6px"):mxClient.IS_FF&&(C.style.paddingTop="0px",C.style.marginTop="-2px");if(null!=m)for(R=0;R<m.length;R++)mxUtils.br(C),mxUtils.write(C,m[R]);if(null!=k&&null==b[k]){D.style.visibility="hidden";mxUtils.setOpacity(C,10);var J=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});J.spin(A);var F=window.setTimeout(function(){null==b[k]&&(J.stop(),A.style.display="none")},3E4);b.addListener("clientLoaded",
-mxUtils.bind(this,function(T,W){null!=b[k]&&W.getProperty("client")==b[k]&&(window.clearTimeout(F),mxUtils.setOpacity(C,100),D.style.visibility="",J.stop(),v(),"drive"==k&&null!=L.parentNode&&L.parentNode.removeChild(L))}))}else v();M.appendChild(A)}n=null!=n?n:2;var x=document.createElement("div");x.style.textAlign="center";x.style.whiteSpace="nowrap";x.style.paddingTop="0px";x.style.paddingBottom="20px";var z=document.createElement("div");z.style.border="1px solid #d3d3d3";z.style.borderWidth="1px 0px 1px 0px";
+(b.setMode(d,!0),l())})}E++;++y>n&&(mxUtils.br(M),y=1);var A=document.createElement("a");A.style.overflow="hidden";A.style.display="inline-block";A.className="geBaseButton";A.style.boxSizing="border-box";A.style.fontSize="11px";A.style.position="relative";A.style.margin="4px";A.style.marginTop="8px";A.style.marginBottom="0px";A.style.padding="8px 10px 8px 10px";A.style.width="88px";A.style.height="100px";A.style.whiteSpace="nowrap";A.setAttribute("title",c);var B=document.createElement("div");B.style.textOverflow=
+"ellipsis";B.style.overflow="hidden";B.style.position="absolute";B.style.bottom="8px";B.style.left="0px";B.style.right="0px";mxUtils.write(B,c);A.appendChild(B);if(null!=R){var D=document.createElement("img");D.setAttribute("src",R);D.setAttribute("border","0");D.setAttribute("align","absmiddle");D.style.width="60px";D.style.height="60px";D.style.paddingBottom="6px";A.appendChild(D)}else B.style.paddingTop="5px",B.style.whiteSpace="normal",mxClient.IS_IOS?(A.style.padding="0px 10px 20px 10px",A.style.top=
+"6px"):mxClient.IS_FF&&(B.style.paddingTop="0px",B.style.marginTop="-2px");if(null!=m)for(R=0;R<m.length;R++)mxUtils.br(B),mxUtils.write(B,m[R]);if(null!=k&&null==b[k]){D.style.visibility="hidden";mxUtils.setOpacity(B,10);var J=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});J.spin(A);var F=window.setTimeout(function(){null==b[k]&&(J.stop(),A.style.display="none")},3E4);b.addListener("clientLoaded",
+mxUtils.bind(this,function(T,W){null!=b[k]&&W.getProperty("client")==b[k]&&(window.clearTimeout(F),mxUtils.setOpacity(B,100),D.style.visibility="",J.stop(),v(),"drive"==k&&null!=L.parentNode&&L.parentNode.removeChild(L))}))}else v();M.appendChild(A)}n=null!=n?n:2;var x=document.createElement("div");x.style.textAlign="center";x.style.whiteSpace="nowrap";x.style.paddingTop="0px";x.style.paddingBottom="20px";var z=document.createElement("div");z.style.border="1px solid #d3d3d3";z.style.borderWidth="1px 0px 1px 0px";
z.style.padding="10px 0px 20px 0px";var y=0,E=0,M=document.createElement("div");M.style.paddingTop="2px";z.appendChild(M);var L=document.createElement("p"),O=document.createElement("p");O.style.cssText="font-size:22px;padding:4px 0 16px 0;margin:0;color:gray;";mxUtils.write(O,mxResources.get("saveDiagramsTo")+":");x.appendChild(O);x.appendChild(z);y=0;"function"===typeof window.DriveClient&&f(IMAGE_PATH+"/google-drive-logo.svg",mxResources.get("googleDrive"),App.MODE_GOOGLE,"drive");null!=b.m365&&
f(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("m365"),App.MODE_M365,"m365");"1"!=urlParams.noDevice&&f(IMAGE_PATH+"/osa_drive-harddisk.png",mxResources.get("device"),App.MODE_DEVICE);!isLocalStorage||"1"!=urlParams.browser&&"1"!=urlParams.offline||f(IMAGE_PATH+"/osa_database.png",mxResources.get("browser"),App.MODE_BROWSER);"function"===typeof window.OneDriveClient&&f(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"),App.MODE_ONEDRIVE,"oneDrive");null!=b.gitHub&&f(IMAGE_PATH+"/github-logo.svg",
mxResources.get("github"),App.MODE_GITHUB,"gitHub");null!=b.gitLab&&f(IMAGE_PATH+"/gitlab-logo.svg",mxResources.get("gitlab"),App.MODE_GITLAB,"gitLab");z=document.createElement("span");z.style.position="absolute";z.style.cursor="pointer";z.style.bottom="27px";z.style.color="gray";z.style.userSelect="none";z.style.textAlign="center";z.style.left="50%";mxUtils.setPrefixedStyle(z.style,"transform","translate(-50%,0)");mxUtils.write(z,mxResources.get("decideLater"));x.appendChild(z);mxEvent.addListener(z,
@@ -12445,7 +12451,7 @@ EmbedDialog.showPreviewOption=!0;
var CreateGraphDialog=function(b,l,n){var f=document.createElement("div");f.style.textAlign="right";this.init=function(){var x=document.createElement("div");x.style.position="relative";x.style.border="1px solid gray";x.style.boxSizing="border-box";x.style.width="100%";x.style.height="360px";x.style.overflow="hidden";x.style.marginBottom="16px";mxEvent.disableContextMenu(x);f.appendChild(x);var z=new Graph(x);z.setCellsCloneable(!0);z.setPanning(!0);z.setAllowDanglingEdges(!1);z.connectionHandler.select=
!1;z.view.setTranslate(20,20);z.border=20;z.panningHandler.useLeftButtonForPanning=!0;mxClient.IS_SVG&&null!=z.view.getDrawPane()&&(x=z.view.getDrawPane().ownerSVGElement,null!=x&&(x.style.position="absolute"));var y="curved=1;";z.cellRenderer.installCellOverlayListeners=function(k,m,q){mxCellRenderer.prototype.installCellOverlayListeners.apply(this,arguments);mxEvent.addListener(q.node,mxClient.IS_POINTER?"pointerdown":"mousedown",function(v){m.fireEvent(new mxEventObject("pointerdown","event",v,
"state",k))});!mxClient.IS_POINTER&&mxClient.IS_TOUCH&&mxEvent.addListener(q.node,"touchstart",function(v){m.fireEvent(new mxEventObject("pointerdown","event",v,"state",k))})};z.getAllConnectionConstraints=function(){return null};z.connectionHandler.marker.highlight.keepOnTop=!1;z.connectionHandler.createEdgeState=function(k){k=z.createEdge(null,null,null,null,null,y);return new mxCellState(this.graph.view,k,this.graph.getCellStyle(k))};var E=z.getDefaultParent(),M=mxUtils.bind(this,function(k){var m=
-new mxCellOverlay(this.connectImage,"Add outgoing");m.cursor="hand";m.addListener(mxEvent.CLICK,function(q,v){z.connectionHandler.reset();z.clearSelection();var A=z.getCellGeometry(k),C;R(function(){C=z.insertVertex(E,null,"Entry",A.x,A.y,80,30,"rounded=1;");M(C);z.view.refresh(C);z.insertEdge(E,null,"",k,C,y)},function(){z.scrollCellToVisible(C)})});m.addListener("pointerdown",function(q,v){q=v.getProperty("event");v=v.getProperty("state");z.popupMenuHandler.hideMenu();z.stopEditing(!1);var A=mxUtils.convertPoint(z.container,
+new mxCellOverlay(this.connectImage,"Add outgoing");m.cursor="hand";m.addListener(mxEvent.CLICK,function(q,v){z.connectionHandler.reset();z.clearSelection();var A=z.getCellGeometry(k),B;R(function(){B=z.insertVertex(E,null,"Entry",A.x,A.y,80,30,"rounded=1;");M(B);z.view.refresh(B);z.insertEdge(E,null,"",k,B,y)},function(){z.scrollCellToVisible(B)})});m.addListener("pointerdown",function(q,v){q=v.getProperty("event");v=v.getProperty("state");z.popupMenuHandler.hideMenu();z.stopEditing(!1);var A=mxUtils.convertPoint(z.container,
mxEvent.getClientX(q),mxEvent.getClientY(q));z.connectionHandler.start(v,A.x,A.y);z.isMouseDown=!0;z.isMouseTrigger=mxEvent.isMouseEvent(q);mxEvent.consume(q)});z.addCellOverlay(k,m)});z.getModel().beginUpdate();try{var L=z.insertVertex(E,null,"Start",0,0,80,30,"ellipse");M(L)}finally{z.getModel().endUpdate()}if("horizontalTree"==n){var O=new mxCompactTreeLayout(z);O.edgeRouting=!1;O.levelDistance=30;O.sortEdges=!0;y="edgeStyle=elbowEdgeStyle;elbow=horizontal;"}else"verticalTree"==n?(O=new mxCompactTreeLayout(z,
!1),O.edgeRouting=!1,O.levelDistance=30,O.sortEdges=!0,y="edgeStyle=elbowEdgeStyle;elbow=vertical;"):"radialTree"==n?(O=new mxRadialTreeLayout(z,!1),O.edgeRouting=!1,O.levelDistance=80):"verticalFlow"==n?O=new mxHierarchicalLayout(z,mxConstants.DIRECTION_NORTH):"horizontalFlow"==n?O=new mxHierarchicalLayout(z,mxConstants.DIRECTION_WEST):"circle"==n?O=new mxCircleLayout(z):(O=new mxFastOrganicLayout(z,!1),O.forceConstant=80);if(null!=O){var R=function(k,m){z.getModel().beginUpdate();try{null!=k&&k(),
O.execute(z.getDefaultParent(),L)}catch(q){throw q;}finally{k=new mxMorphing(z),k.addListener(mxEvent.DONE,mxUtils.bind(this,function(){z.getModel().endUpdate();null!=m&&m()})),k.startAnimation()}},c=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(k,m,q,v,A){c.apply(this,arguments);R()};z.resizeCell=function(){mxGraph.prototype.resizeCell.apply(this,arguments);R()};z.connectionHandler.addListener(mxEvent.CONNECT,function(){R()})}x=mxUtils.button(mxResources.get("close"),function(){b.confirm(mxResources.get("areYouSure"),
@@ -12456,32 +12462,32 @@ CreateGraphDialog.prototype.connectImage=new mxImage("data:image/png;base64,iVBO
var BackgroundImageDialog=function(b,l,n,f,x){function z(){null==u||u==mxConstants.NONE?(p.style.display="none",T.checked=!1):(p.style.backgroundColor=u,p.style.display="",T.checked=!0)}var y=b.editor.graph,E=document.createElement("div");E.style.whiteSpace="nowrap";var M=document.createElement("h2");mxUtils.write(M,mxResources.get("background"));M.style.marginTop="0px";E.appendChild(M);var L=null!=n&&null!=n.originalSrc;M=!1;var O=document.createElement("input");O.style.cssText="margin-right:8px;margin-bottom:8px;";O.setAttribute("value",
"url");O.setAttribute("type","radio");O.setAttribute("name","geBackgroundImageDialogOption");var R=document.createElement("input");R.style.cssText="margin-right:8px;margin-bottom:8px;";R.setAttribute("value","url");R.setAttribute("type","radio");R.setAttribute("name","geBackgroundImageDialogOption");var c=document.createElement("input");c.setAttribute("type","text");c.style.marginBottom="8px";c.style.width="360px";c.value=L||null==n?"":n.src;var d=document.createElement("select");d.style.width="360px";
if(null!=b.pages)for(var k=0;k<b.pages.length;k++){var m=document.createElement("option");mxUtils.write(m,b.pages[k].getName()||mxResources.get("pageWithNumber",[k+1]));m.setAttribute("value","data:page/id,"+b.pages[k].getId());b.pages[k]==b.currentPage&&m.setAttribute("disabled","disabled");null!=n&&n.originalSrc==m.getAttribute("value")&&(m.setAttribute("selected","selected"),M=!0);d.appendChild(m)}L||null!=b.pages&&1!=b.pages.length||(O.style.display="none",R.style.display="none",d.style.display=
-"none");var q=document.createElement("option"),v=!1,A=!1,C=function(I,H){v||null!=I&&A||(R.checked?null!=H&&H(q.selected?null:d.value):""==c.value||b.isOffline()?(J.value="",F.value="",null!=H&&H("")):(c.value=mxUtils.trim(c.value),b.loadImage(c.value,function(g){J.value=g.width;F.value=g.height;null!=H&&H(c.value)},function(){b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"));J.value="";F.value="";null!=H&&H(null)})))},D=mxUtils.bind(this,function(I){b.importFiles(I,
-0,0,b.maxBackgroundSize,function(H,g,t,B,K,Q){c.value=H;C();c.focus()},function(){},function(H){return"image/"==H.type.substring(0,6)},function(H){for(var g=0;g<H.length;g++)H[g]()},!0,b.maxBackgroundBytes,b.maxBackgroundBytes,!0)});this.init=function(){L?d.focus():c.focus();mxEvent.addListener(d,"focus",function(){O.removeAttribute("checked");R.setAttribute("checked","checked");R.checked=!0});mxEvent.addListener(c,"focus",function(){R.removeAttribute("checked");O.setAttribute("checked","checked");
+"none");var q=document.createElement("option"),v=!1,A=!1,B=function(I,H){v||null!=I&&A||(R.checked?null!=H&&H(q.selected?null:d.value):""==c.value||b.isOffline()?(J.value="",F.value="",null!=H&&H("")):(c.value=mxUtils.trim(c.value),b.loadImage(c.value,function(g){J.value=g.width;F.value=g.height;null!=H&&H(c.value)},function(){b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"));J.value="";F.value="";null!=H&&H(null)})))},D=mxUtils.bind(this,function(I){b.importFiles(I,
+0,0,b.maxBackgroundSize,function(H,g,t,C,K,Q){c.value=H;B();c.focus()},function(){},function(H){return"image/"==H.type.substring(0,6)},function(H){for(var g=0;g<H.length;g++)H[g]()},!0,b.maxBackgroundBytes,b.maxBackgroundBytes,!0)});this.init=function(){L?d.focus():c.focus();mxEvent.addListener(d,"focus",function(){O.removeAttribute("checked");R.setAttribute("checked","checked");R.checked=!0});mxEvent.addListener(c,"focus",function(){R.removeAttribute("checked");O.setAttribute("checked","checked");
O.checked=!0});if(Graph.fileSupport){c.setAttribute("placeholder",mxResources.get("dragImagesHere"));var I=E.parentNode,H=null;mxEvent.addListener(I,"dragleave",function(g){null!=H&&(H.parentNode.removeChild(H),H=null);g.stopPropagation();g.preventDefault()});mxEvent.addListener(I,"dragover",mxUtils.bind(this,function(g){null==H&&(H=b.highlightElement(I));g.stopPropagation();g.preventDefault()}));mxEvent.addListener(I,"drop",mxUtils.bind(this,function(g){null!=H&&(H.parentNode.removeChild(H),H=null);
-if(0<g.dataTransfer.files.length)D(g.dataTransfer.files);else if(0<=mxUtils.indexOf(g.dataTransfer.types,"text/uri-list")){var t=g.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(t)&&(c.value=decodeURIComponent(t),C())}g.stopPropagation();g.preventDefault()}),!1)}};E.appendChild(O);E.appendChild(c);mxUtils.br(E);k=document.createElement("span");k.style.marginLeft="30px";mxUtils.write(k,mxResources.get("width")+":");E.appendChild(k);var J=document.createElement("input");
-J.setAttribute("type","text");J.style.width="60px";J.style.marginLeft="8px";J.style.marginRight="16px";J.value=null==n||L?"":n.width;E.appendChild(J);mxUtils.write(E,mxResources.get("height")+":");var F=document.createElement("input");F.setAttribute("type","text");F.style.width="60px";F.style.marginLeft="8px";F.style.marginRight="16px";F.value=null==n||L?"":n.height;E.appendChild(F);mxUtils.br(E);mxUtils.br(E);mxEvent.addListener(c,"change",C);ImageDialog.filePicked=function(I){I.action==google.picker.Action.PICKED&&
-null!=I.docs[0].thumbnails&&(I=I.docs[0].thumbnails[I.docs[0].thumbnails.length-1],null!=I&&(c.value=I.url,C()));c.focus()};E.appendChild(R);E.appendChild(d);mxUtils.br(E);mxUtils.br(E);L?(R.setAttribute("checked","checked"),R.checked=!0):(O.setAttribute("checked","checked"),O.checked=!0);!M&&R.checked&&(mxUtils.write(q,mxResources.get("pageNotFound")),q.setAttribute("disabled","disabled"),q.setAttribute("selected","selected"),q.setAttribute("value","pageNotFound"),d.appendChild(q),mxEvent.addListener(d,
+if(0<g.dataTransfer.files.length)D(g.dataTransfer.files);else if(0<=mxUtils.indexOf(g.dataTransfer.types,"text/uri-list")){var t=g.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(t)&&(c.value=decodeURIComponent(t),B())}g.stopPropagation();g.preventDefault()}),!1)}};E.appendChild(O);E.appendChild(c);mxUtils.br(E);k=document.createElement("span");k.style.marginLeft="30px";mxUtils.write(k,mxResources.get("width")+":");E.appendChild(k);var J=document.createElement("input");
+J.setAttribute("type","text");J.style.width="60px";J.style.marginLeft="8px";J.style.marginRight="16px";J.value=null==n||L?"":n.width;E.appendChild(J);mxUtils.write(E,mxResources.get("height")+":");var F=document.createElement("input");F.setAttribute("type","text");F.style.width="60px";F.style.marginLeft="8px";F.style.marginRight="16px";F.value=null==n||L?"":n.height;E.appendChild(F);mxUtils.br(E);mxUtils.br(E);mxEvent.addListener(c,"change",B);ImageDialog.filePicked=function(I){I.action==google.picker.Action.PICKED&&
+null!=I.docs[0].thumbnails&&(I=I.docs[0].thumbnails[I.docs[0].thumbnails.length-1],null!=I&&(c.value=I.url,B()));c.focus()};E.appendChild(R);E.appendChild(d);mxUtils.br(E);mxUtils.br(E);L?(R.setAttribute("checked","checked"),R.checked=!0):(O.setAttribute("checked","checked"),O.checked=!0);!M&&R.checked&&(mxUtils.write(q,mxResources.get("pageNotFound")),q.setAttribute("disabled","disabled"),q.setAttribute("selected","selected"),q.setAttribute("value","pageNotFound"),d.appendChild(q),mxEvent.addListener(d,
"change",function(){null==q.parentNode||q.selected||q.parentNode.removeChild(q)}));n=document.createElement("div");n.style.display=x?"inline-flex":"none";n.style.alignItems="center";n.style.cursor="default";n.style.minWidth="40%";n.style.height="20px";var T=document.createElement("input");T.setAttribute("type","checkbox");T.style.margin="0px 10px 0px 4px";T.style.verticalAlign="bottom";T.defaultChecked=f!=mxConstants.NONE&&null!=f;T.checked=T.defaultChecked;n.appendChild(T);mxUtils.write(n,mxResources.get("fillColor"));
x=n.cloneNode(!1);var W=document.createElement("input");W.setAttribute("type","checkbox");W.style.margin="0px 10px 0px 30px";W.style.verticalAlign="bottom";W.defaultChecked=y.shadowVisible;W.checked=W.defaultChecked;x.appendChild(W);mxUtils.write(x,mxResources.get("shadow"));mxClient.IS_SVG&&!mxClient.IS_SF||W.setAttribute("disabled","disabled");mxEvent.addListener(x,"click",function(I){mxEvent.getSource(I)!=W&&(W.checked=!W.checked)});var p=document.createElement("button");p.style.width="36px";p.style.height=
"18px";p.style.cursor="pointer";p.style.marginLeft="10px";p.style.backgroundPosition="center center";p.style.backgroundRepeat="no-repeat";p.style.verticalAlign="bottom";p.className="geColorBtn";var u=f;z();mxEvent.addListener(n,"click",function(I){mxEvent.getSource(I)!=T&&(T.checked=!T.checked);u=T.checked?"#ffffff":null;z()});mxEvent.addListener(p,"click",function(I){b.pickColor(u||"none",function(H){u=H;z()});mxEvent.consume(I)});n.appendChild(p);E.appendChild(n);E.appendChild(x);mxUtils.br(E);
f=document.createElement("div");f.style.marginTop="30px";f.style.textAlign="right";y=mxUtils.button(mxResources.get("cancel"),function(){v=!0;b.hideDialog()});y.className="geBtn";b.editor.cancelFirst&&f.appendChild(y);x=mxUtils.button(mxResources.get("reset"),function(){c.value="";J.value="";F.value="";O.checked=!0;u=mxConstants.NONE;z();v=!1});mxEvent.addGestureListeners(x,function(){v=!0});x.className="geBtn";x.width="100";f.appendChild(x);if(Graph.fileSupport){var G=document.createElement("input");
-G.setAttribute("multiple","multiple");G.setAttribute("type","file");mxEvent.addListener(G,"change",function(I){null!=G.files&&(D(G.files),G.type="",G.type="file",G.value="")});G.style.display="none";E.appendChild(G);x=mxUtils.button(mxResources.get("open"),function(){G.click()});x.className="geBtn";f.appendChild(x)}applyBtn=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();C(null,function(I){l(""!=I&&null!=I?new mxImage(I,J.value,F.value):null,null==I,u,!mxClient.IS_SVG||mxClient.IS_SF?
-null:W.checked)})});mxEvent.addGestureListeners(applyBtn,function(){A=!0});applyBtn.className="geBtn gePrimaryBtn";f.appendChild(applyBtn);b.editor.cancelFirst||f.appendChild(y);E.appendChild(f);this.container=E},ParseDialog=function(b,l,n){function f(d,k,m){if("plantUmlPng"==k||"plantUmlSvg"==k||"plantUmlTxt"==k){if(b.spinner.spin(document.body,mxResources.get("inserting"))){var q=function(H,g,t,B,K){var Q=null;v.getModel().beginUpdate();try{Q="txt"==g?b.insertAsPreText(t,z.x,z.y):v.insertVertex(null,
-null,null,z.x,z.y,B,K,"shape=image;noLabel=1;verticalAlign=top;aspect=fixed;imageAspect=0;image="+b.convertDataUri(t)+";"),v.setAttributeForCell(Q,"plantUmlData",JSON.stringify({data:H,format:g},null,2))}finally{v.getModel().endUpdate()}null!=Q&&(v.setSelectionCell(Q),v.scrollCellToVisible(Q))},v=b.editor.graph,A="plantUmlTxt"==k?"txt":"plantUmlPng"==k?"png":"svg";"@startuml\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml"==
+G.setAttribute("multiple","multiple");G.setAttribute("type","file");mxEvent.addListener(G,"change",function(I){null!=G.files&&(D(G.files),G.type="",G.type="file",G.value="")});G.style.display="none";E.appendChild(G);x=mxUtils.button(mxResources.get("open"),function(){G.click()});x.className="geBtn";f.appendChild(x)}applyBtn=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();B(null,function(I){l(""!=I&&null!=I?new mxImage(I,J.value,F.value):null,null==I,u,!mxClient.IS_SVG||mxClient.IS_SF?
+null:W.checked)})});mxEvent.addGestureListeners(applyBtn,function(){A=!0});applyBtn.className="geBtn gePrimaryBtn";f.appendChild(applyBtn);b.editor.cancelFirst||f.appendChild(y);E.appendChild(f);this.container=E},ParseDialog=function(b,l,n){function f(d,k,m){if("plantUmlPng"==k||"plantUmlSvg"==k||"plantUmlTxt"==k){if(b.spinner.spin(document.body,mxResources.get("inserting"))){var q=function(H,g,t,C,K){var Q=null;v.getModel().beginUpdate();try{Q="txt"==g?b.insertAsPreText(t,z.x,z.y):v.insertVertex(null,
+null,null,z.x,z.y,C,K,"shape=image;noLabel=1;verticalAlign=top;aspect=fixed;imageAspect=0;image="+b.convertDataUri(t)+";"),v.setAttributeForCell(Q,"plantUmlData",JSON.stringify({data:H,format:g},null,2))}finally{v.getModel().endUpdate()}null!=Q&&(v.setSelectionCell(Q),v.scrollCellToVisible(Q))},v=b.editor.graph,A="plantUmlTxt"==k?"txt":"plantUmlPng"==k?"png":"svg";"@startuml\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml"==
d&&"svg"==A?window.setTimeout(function(){b.spinner.stop();q(d,A,"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBjb250ZW50U2NyaXB0VHlwZT0iYXBwbGljYXRpb24vZWNtYXNjcmlwdCIgY29udGVudFN0eWxlVHlwZT0idGV4dC9jc3MiIGhlaWdodD0iMjEycHgiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHN0eWxlPSJ3aWR0aDoyOTVweDtoZWlnaHQ6MjEycHg7IiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyOTUgMjEyIiB3aWR0aD0iMjk1cHgiIHpvb21BbmRQYW49Im1hZ25pZnkiPjxkZWZzLz48Zz48bGluZSBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsgc3Ryb2tlLWRhc2hhcnJheTogNS4wLDUuMDsiIHgxPSIzMSIgeDI9IjMxIiB5MT0iMzQuNDg4MyIgeTI9IjE3MS43MzA1Ii8+PGxpbmUgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjA7IHN0cm9rZS1kYXNoYXJyYXk6IDUuMCw1LjA7IiB4MT0iMjY0LjUiIHgyPSIyNjQuNSIgeTE9IjM0LjQ4ODMiIHkyPSIxNzEuNzMwNSIvPjxyZWN0IGZpbGw9IiNGRUZFQ0UiIGhlaWdodD0iMzAuNDg4MyIgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjU7IiB3aWR0aD0iNDciIHg9IjgiIHk9IjMiLz48dGV4dCBmaWxsPSIjMDAwMDAwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNCIgbGVuZ3RoQWRqdXN0PSJzcGFjaW5nQW5kR2x5cGhzIiB0ZXh0TGVuZ3RoPSIzMyIgeD0iMTUiIHk9IjIzLjUzNTIiPkFsaWNlPC90ZXh0PjxyZWN0IGZpbGw9IiNGRUZFQ0UiIGhlaWdodD0iMzAuNDg4MyIgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjU7IiB3aWR0aD0iNDciIHg9IjgiIHk9IjE3MC43MzA1Ii8+PHRleHQgZmlsbD0iIzAwMDAwMCIgZm9udC1mYW1pbHk9InNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTQiIGxlbmd0aEFkanVzdD0ic3BhY2luZ0FuZEdseXBocyIgdGV4dExlbmd0aD0iMzMiIHg9IjE1IiB5PSIxOTEuMjY1NiI+QWxpY2U8L3RleHQ+PHJlY3QgZmlsbD0iI0ZFRkVDRSIgaGVpZ2h0PSIzMC40ODgzIiBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuNTsiIHdpZHRoPSI0MCIgeD0iMjQ0LjUiIHk9IjMiLz48dGV4dCBmaWxsPSIjMDAwMDAwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNCIgbGVuZ3RoQWRqdXN0PSJzcGFjaW5nQW5kR2x5cGhzIiB0ZXh0TGVuZ3RoPSIyNiIgeD0iMjUxLjUiIHk9IjIzLjUzNTIiPkJvYjwvdGV4dD48cmVjdCBmaWxsPSIjRkVGRUNFIiBoZWlnaHQ9IjMwLjQ4ODMiIHN0eWxlPSJzdHJva2U6ICNBODAwMzY7IHN0cm9rZS13aWR0aDogMS41OyIgd2lkdGg9IjQwIiB4PSIyNDQuNSIgeT0iMTcwLjczMDUiLz48dGV4dCBmaWxsPSIjMDAwMDAwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNCIgbGVuZ3RoQWRqdXN0PSJzcGFjaW5nQW5kR2x5cGhzIiB0ZXh0TGVuZ3RoPSIyNiIgeD0iMjUxLjUiIHk9IjE5MS4yNjU2Ij5Cb2I8L3RleHQ+PHBvbHlnb24gZmlsbD0iI0E4MDAzNiIgcG9pbnRzPSIyNTIuNSw2MS43OTg4LDI2Mi41LDY1Ljc5ODgsMjUyLjUsNjkuNzk4OCwyNTYuNSw2NS43OTg4IiBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsiLz48bGluZSBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsiIHgxPSIzMS41IiB4Mj0iMjU4LjUiIHkxPSI2NS43OTg4IiB5Mj0iNjUuNzk4OCIvPjx0ZXh0IGZpbGw9IiMwMDAwMDAiIGZvbnQtZmFtaWx5PSJzYW5zLXNlcmlmIiBmb250LXNpemU9IjEzIiBsZW5ndGhBZGp1c3Q9InNwYWNpbmdBbmRHbHlwaHMiIHRleHRMZW5ndGg9IjE0NyIgeD0iMzguNSIgeT0iNjEuMDU2NiI+QXV0aGVudGljYXRpb24gUmVxdWVzdDwvdGV4dD48cG9seWdvbiBmaWxsPSIjQTgwMDM2IiBwb2ludHM9IjQyLjUsOTEuMTA5NCwzMi41LDk1LjEwOTQsNDIuNSw5OS4xMDk0LDM4LjUsOTUuMTA5NCIgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjA7Ii8+PGxpbmUgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjA7IHN0cm9rZS1kYXNoYXJyYXk6IDIuMCwyLjA7IiB4MT0iMzYuNSIgeDI9IjI2My41IiB5MT0iOTUuMTA5NCIgeTI9Ijk1LjEwOTQiLz48dGV4dCBmaWxsPSIjMDAwMDAwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxMyIgbGVuZ3RoQWRqdXN0PSJzcGFjaW5nQW5kR2x5cGhzIiB0ZXh0TGVuZ3RoPSIxNTciIHg9IjQ4LjUiIHk9IjkwLjM2NzIiPkF1dGhlbnRpY2F0aW9uIFJlc3BvbnNlPC90ZXh0Pjxwb2x5Z29uIGZpbGw9IiNBODAwMzYiIHBvaW50cz0iMjUyLjUsMTIwLjQxOTksMjYyLjUsMTI0LjQxOTksMjUyLjUsMTI4LjQxOTksMjU2LjUsMTI0LjQxOTkiIHN0eWxlPSJzdHJva2U6ICNBODAwMzY7IHN0cm9rZS13aWR0aDogMS4wOyIvPjxsaW5lIHN0eWxlPSJzdHJva2U6ICNBODAwMzY7IHN0cm9rZS13aWR0aDogMS4wOyIgeDE9IjMxLjUiIHgyPSIyNTguNSIgeTE9IjEyNC40MTk5IiB5Mj0iMTI0LjQxOTkiLz48dGV4dCBmaWxsPSIjMDAwMDAwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxMyIgbGVuZ3RoQWRqdXN0PSJzcGFjaW5nQW5kR2x5cGhzIiB0ZXh0TGVuZ3RoPSIxOTkiIHg9IjM4LjUiIHk9IjExOS42Nzc3Ij5Bbm90aGVyIGF1dGhlbnRpY2F0aW9uIFJlcXVlc3Q8L3RleHQ+PHBvbHlnb24gZmlsbD0iI0E4MDAzNiIgcG9pbnRzPSI0Mi41LDE0OS43MzA1LDMyLjUsMTUzLjczMDUsNDIuNSwxNTcuNzMwNSwzOC41LDE1My43MzA1IiBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsiLz48bGluZSBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsgc3Ryb2tlLWRhc2hhcnJheTogMi4wLDIuMDsiIHgxPSIzNi41IiB4Mj0iMjYzLjUiIHkxPSIxNTMuNzMwNSIgeTI9IjE1My43MzA1Ii8+PHRleHQgZmlsbD0iIzAwMDAwMCIgZm9udC1mYW1pbHk9InNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTMiIGxlbmd0aEFkanVzdD0ic3BhY2luZ0FuZEdseXBocyIgdGV4dExlbmd0aD0iMjA5IiB4PSI0OC41IiB5PSIxNDguOTg4MyI+QW5vdGhlciBhdXRoZW50aWNhdGlvbiBSZXNwb25zZTwvdGV4dD48IS0tTUQ1PVs3ZjNlNGQwYzkwMWVmZGJjNTdlYjQ0MjQ5YTNiODE5N10KQHN0YXJ0dW1sDQpza2lucGFyYW0gc2hhZG93aW5nIGZhbHNlDQpBbGljZSAtPiBCb2I6IEF1dGhlbnRpY2F0aW9uIFJlcXVlc3QNCkJvYiAtIC0+IEFsaWNlOiBBdXRoZW50aWNhdGlvbiBSZXNwb25zZQ0KDQpBbGljZSAtPiBCb2I6IEFub3RoZXIgYXV0aGVudGljYXRpb24gUmVxdWVzdA0KQWxpY2UgPC0gLSBCb2I6IEFub3RoZXIgYXV0aGVudGljYXRpb24gUmVzcG9uc2UNCkBlbmR1bWwNCgpQbGFudFVNTCB2ZXJzaW9uIDEuMjAyMC4wMihTdW4gTWFyIDAxIDA0OjIyOjA3IENTVCAyMDIwKQooTUlUIHNvdXJjZSBkaXN0cmlidXRpb24pCkphdmEgUnVudGltZTogT3BlbkpESyBSdW50aW1lIEVudmlyb25tZW50CkpWTTogT3BlbkpESyA2NC1CaXQgU2VydmVyIFZNCkphdmEgVmVyc2lvbjogMTIrMzMKT3BlcmF0aW5nIFN5c3RlbTogTWFjIE9TIFgKRGVmYXVsdCBFbmNvZGluZzogVVRGLTgKTGFuZ3VhZ2U6IGVuCkNvdW50cnk6IFVTCi0tPjwvZz48L3N2Zz4=",
295,212)},200):b.generatePlantUmlImage(d,A,function(H,g,t){b.spinner.stop();q(d,A,H,g,t)},function(H){b.handleError(H)})}}else if("mermaid"==k||"mermaid2drawio"==k)b.spinner.spin(document.body,mxResources.get("inserting"))&&b.parseMermaidDiagram(d,null,mxUtils.bind(this,function(H){b.spinner.stop();var g=b.editor.graph;g.setSelectionCells(b.importXml(H,Math.max(z.x,20),Math.max(z.y,20),!0,null,null,!0));g.scrollCellToVisible(g.getSelectionCell())}),mxUtils.bind(this,function(H){b.handleError(H)}),
-null,"mermaid2drawio"==k);else if("table"==k){var C=d.split("\n");k=null;var D=[],J=0,F={};for(m=0;m<C.length;m++){var T=mxUtils.trim(C[m]);if("primary key"==T.substring(0,11).toLowerCase()){var W=T.match(/\((.+)\)/);W&&W[1]&&(F[W[1]]=!0);C.splice(m,1)}else 0<T.toLowerCase().indexOf("primary key")&&(F[T.split(" ")[0]]=!0,C[m]=mxUtils.trim(T.replace(/primary key/i,"")))}for(m=0;m<C.length;m++)if(T=mxUtils.trim(C[m]),"create table"==T.substring(0,12).toLowerCase())T=mxUtils.trim(T.substring(12)),"("==
+null,"mermaid2drawio"==k);else if("table"==k){var B=d.split("\n");k=null;var D=[],J=0,F={};for(m=0;m<B.length;m++){var T=mxUtils.trim(B[m]);if("primary key"==T.substring(0,11).toLowerCase()){var W=T.match(/\((.+)\)/);W&&W[1]&&(F[W[1]]=!0);B.splice(m,1)}else 0<T.toLowerCase().indexOf("primary key")&&(F[T.split(" ")[0]]=!0,B[m]=mxUtils.trim(T.replace(/primary key/i,"")))}for(m=0;m<B.length;m++)if(T=mxUtils.trim(B[m]),"create table"==T.substring(0,12).toLowerCase())T=mxUtils.trim(T.substring(12)),"("==
T.charAt(T.length-1)&&(T=mxUtils.trim(T.substring(0,T.length-1))),k=new mxCell(T,new mxGeometry(J,0,160,30),"shape=table;startSize=30;container=1;collapsible=1;childLayout=tableLayout;fixedRows=1;rowLines=0;fontStyle=1;align=center;resizeLast=1;"),k.vertex=!0,D.push(k),T=b.editor.graph.getPreferredSizeForCell(p),null!=T&&(k.geometry.width=T.width+10);else if(null!=k&&")"==T.charAt(0))J+=k.geometry.width+40,k=null;else if("("!=T&&null!=k){T=T.substring(0,","==T.charAt(T.length-1)?T.length-1:T.length);
W=F[T.split(" ")[0]];var p=new mxCell("",new mxGeometry(0,0,160,30),"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;strokeColor=inherit;top=0;left=0;right=0;bottom="+(W?"1":"0")+";");p.vertex=!0;var u=new mxCell(W?"PK":"",new mxGeometry(0,0,30,30),"shape=partialRectangle;overflow=hidden;connectable=0;fillColor=none;strokeColor=inherit;top=0;left=0;bottom=0;right=0;"+(W?"fontStyle=1;":
""));u.vertex=!0;p.insert(u);T=new mxCell(T,new mxGeometry(30,0,130,30),"shape=partialRectangle;overflow=hidden;connectable=0;fillColor=none;align=left;strokeColor=inherit;top=0;left=0;bottom=0;right=0;spacingLeft=6;"+(W?"fontStyle=5;":""));T.vertex=!0;p.insert(T);T=b.editor.graph.getPreferredSizeForCell(T);null!=T&&k.geometry.width<T.width+30&&(k.geometry.width=Math.min(320,Math.max(k.geometry.width,T.width+30)));k.insert(p,W?0:null);k.geometry.height+=30}0<D.length&&(v=b.editor.graph,v.setSelectionCells(v.importCells(D,
-z.x,z.y)),v.scrollCellToVisible(v.getSelectionCell()))}else if("list"==k){if(C=d.split("\n"),0<C.length){v=b.editor.graph;p=null;D=[];for(m=k=0;m<C.length;m++)";"!=C[m].charAt(0)&&(0==C[m].length?p=null:null==p?(p=new mxCell(C[m],new mxGeometry(k,0,160,30),"swimlane;fontStyle=1;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"),p.vertex=!0,D.push(p),T=v.getPreferredSizeForCell(p),null!=T&&p.geometry.width<
-T.width+10&&(p.geometry.width=T.width+10),k+=p.geometry.width+40):"--"==C[m]?(T=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;"),T.vertex=!0,p.geometry.height+=T.geometry.height,p.insert(T)):0<C[m].length&&(J=new mxCell(C[m],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;"),
+z.x,z.y)),v.scrollCellToVisible(v.getSelectionCell()))}else if("list"==k){if(B=d.split("\n"),0<B.length){v=b.editor.graph;p=null;D=[];for(m=k=0;m<B.length;m++)";"!=B[m].charAt(0)&&(0==B[m].length?p=null:null==p?(p=new mxCell(B[m],new mxGeometry(k,0,160,30),"swimlane;fontStyle=1;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"),p.vertex=!0,D.push(p),T=v.getPreferredSizeForCell(p),null!=T&&p.geometry.width<
+T.width+10&&(p.geometry.width=T.width+10),k+=p.geometry.width+40):"--"==B[m]?(T=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;"),T.vertex=!0,p.geometry.height+=T.geometry.height,p.insert(T)):0<B[m].length&&(J=new mxCell(B[m],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;"),
J.vertex=!0,T=v.getPreferredSizeForCell(J),null!=T&&J.geometry.width<T.width&&(J.geometry.width=T.width),p.geometry.width=Math.max(p.geometry.width,J.geometry.width),p.geometry.height+=J.geometry.height,p.insert(J)));if(0<D.length){v.getModel().beginUpdate();try{D=v.importCells(D,z.x,z.y);T=[];for(m=0;m<D.length;m++)T.push(D[m]),T=T.concat(D[m].children);v.fireEvent(new mxEventObject("cellsInserted","cells",T))}finally{v.getModel().endUpdate()}v.setSelectionCells(D);v.scrollCellToVisible(v.getSelectionCell())}}}else{p=
-function(H){var g=G[H];null==g&&(g=new mxCell(H,new mxGeometry(0,0,80,30),"whiteSpace=wrap;html=1;"),g.vertex=!0,G[H]=g,D.push(g));return g};C=d.split("\n");var G={};D=[];for(m=0;m<C.length;m++)if(";"!=C[m].charAt(0)){var I=C[m].split("->");2<=I.length&&(W=p(I[0]),u=p(I[I.length-1]),I=new mxCell(2<I.length?I[1]:"",new mxGeometry),I.edge=!0,I.geometry.relative=!0,W.insertEdge(I,!0),u.insertEdge(I,!1),D.push(I))}if(0<D.length){C=document.createElement("div");C.style.visibility="hidden";document.body.appendChild(C);
-v=new Graph(C);v.getModel().beginUpdate();try{D=v.importCells(D);for(m=0;m<D.length;m++)v.getModel().isVertex(D[m])&&(T=v.getPreferredSizeForCell(D[m]),D[m].geometry.width=Math.max(D[m].geometry.width,T.width),D[m].geometry.height=Math.max(D[m].geometry.height,T.height));m=!0;"horizontalFlow"==k||"verticalFlow"==k?((new mxHierarchicalLayout(v,"horizontalFlow"==k?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH)).execute(v.getDefaultParent(),D),m=!1):"circle"==k?(new mxCircleLayout(v)).execute(v.getDefaultParent()):
+function(H){var g=G[H];null==g&&(g=new mxCell(H,new mxGeometry(0,0,80,30),"whiteSpace=wrap;html=1;"),g.vertex=!0,G[H]=g,D.push(g));return g};B=d.split("\n");var G={};D=[];for(m=0;m<B.length;m++)if(";"!=B[m].charAt(0)){var I=B[m].split("->");2<=I.length&&(W=p(I[0]),u=p(I[I.length-1]),I=new mxCell(2<I.length?I[1]:"",new mxGeometry),I.edge=!0,I.geometry.relative=!0,W.insertEdge(I,!0),u.insertEdge(I,!1),D.push(I))}if(0<D.length){B=document.createElement("div");B.style.visibility="hidden";document.body.appendChild(B);
+v=new Graph(B);v.getModel().beginUpdate();try{D=v.importCells(D);for(m=0;m<D.length;m++)v.getModel().isVertex(D[m])&&(T=v.getPreferredSizeForCell(D[m]),D[m].geometry.width=Math.max(D[m].geometry.width,T.width),D[m].geometry.height=Math.max(D[m].geometry.height,T.height));m=!0;"horizontalFlow"==k||"verticalFlow"==k?((new mxHierarchicalLayout(v,"horizontalFlow"==k?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH)).execute(v.getDefaultParent(),D),m=!1):"circle"==k?(new mxCircleLayout(v)).execute(v.getDefaultParent()):
(J=new mxFastOrganicLayout(v),J.disableEdgeStyle=!1,J.forceConstant=180,J.execute(v.getDefaultParent()));m&&(F=new mxParallelEdgeLayout(v),F.spacing=30,F.execute(v.getDefaultParent()))}finally{v.getModel().endUpdate()}v.clearCellOverlays();T=[];b.editor.graph.getModel().beginUpdate();try{D=v.getModel().getChildren(v.getDefaultParent()),T=b.editor.graph.importCells(D,z.x,z.y),b.editor.graph.fireEvent(new mxEventObject("cellsInserted","cells",T))}finally{b.editor.graph.getModel().endUpdate()}b.editor.graph.setSelectionCells(T);
-b.editor.graph.scrollCellToVisible(b.editor.graph.getSelectionCell());v.destroy();C.parentNode.removeChild(C)}}}function x(){return"list"==E.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"==E.value||"mermaid2drawio"==E.value?"graph TD;\n A--\x3eB;\n A--\x3eC;\n B--\x3eD;\n C--\x3eD;":"table"==E.value?"CREATE TABLE Suppliers\n(\nsupplier_id int NOT NULL PRIMARY KEY,\nsupplier_name char(50) NOT NULL,\ncontact_name char(50),\n);\nCREATE TABLE Customers\n(\ncustomer_id int NOT NULL PRIMARY KEY,\ncustomer_name char(50) NOT NULL,\naddress char(50),\ncity char(50),\nstate char(25),\nzip_code char(10)\n);\n":
+b.editor.graph.scrollCellToVisible(b.editor.graph.getSelectionCell());v.destroy();B.parentNode.removeChild(B)}}}function x(){return"list"==E.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"==E.value||"mermaid2drawio"==E.value?"graph TD;\n A--\x3eB;\n A--\x3eC;\n B--\x3eD;\n C--\x3eD;":"table"==E.value?"CREATE TABLE Suppliers\n(\nsupplier_id int NOT NULL PRIMARY KEY,\nsupplier_name char(50) NOT NULL,\ncontact_name char(50),\n);\nCREATE TABLE Customers\n(\ncustomer_id int NOT NULL PRIMARY KEY,\ncustomer_name char(50) NOT NULL,\naddress char(50),\ncity char(50),\nstate char(25),\nzip_code char(10)\n);\n":
"plantUmlPng"==E.value?"@startuml\nskinparam backgroundcolor transparent\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml":"plantUmlSvg"==E.value||"plantUmlTxt"==E.value?"@startuml\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml":
";Example:\na->b\nb->edge label->c\nc->a\n"}var z=b.editor.graph.getFreeInsertPoint();l=document.createElement("div");var y=document.createElement("textarea");y.style.position="absolute";y.style.left="30px";y.style.right="30px";y.style.top="30px";y.style.bottom="100px";y.style.resize="none";y.setAttribute("wrap","off");y.setAttribute("spellcheck","false");y.setAttribute("autocorrect","off");y.setAttribute("autocomplete","off");y.setAttribute("autocapitalize","off");var E=document.createElement("select");
E.className="geBtn";if("formatSql"==n||"mermaid"==n&&"draw.io"!=b.getServiceName()&&"atlassian"!=b.getServiceName())E.style.display="none";var M=document.createElement("option");M.setAttribute("value","list");mxUtils.write(M,mxResources.get("list"));"plantUml"!=n&&"mermaid"!=n&&E.appendChild(M);null!=n&&"fromText"!=n||M.setAttribute("selected","selected");M=document.createElement("option");M.setAttribute("value","table");mxUtils.write(M,mxResources.get("formatSql"));"formatSql"==n&&(E.appendChild(M),
@@ -12491,7 +12497,7 @@ M=document.createElement("option");M.setAttribute("value","plantUmlSvg");mxUtils
")");EditorUi.enablePlantUml&&Graph.fileSupport&&!b.isOffline()&&"plantUml"==n&&(E.appendChild(M),E.appendChild(L),E.appendChild(O));var c=x();y.value=c;l.appendChild(y);M=document.createElement("div");M.style.position="absolute";M.style.bottom="46px";M.style.right="30px";M.style.left="30px";M.style.justifyContent="end";M.style.display="flex";this.init=function(){y.focus()};Graph.fileSupport&&(y.addEventListener("dragover",function(d){d.stopPropagation();d.preventDefault()},!1),y.addEventListener("drop",
function(d){d.stopPropagation();d.preventDefault();if(0<d.dataTransfer.files.length){d=d.dataTransfer.files[0];var k=new FileReader;k.onload=function(m){y.value=m.target.result};k.readAsText(d)}},!1));"plantUml"==n&&"https://plant-aws.diagrams.net"==window.PLANT_URL&&(L=document.createElement("div"),L.style.display="inline-block",L.style.color="#c00",L.style.fontSize="12px",L.style.marginRight="10px",L.style.display="flex",L.style.alignItems="center",L.innerHTML='<a href="https://github.com/jgraph/plantuml-converter/tree/main/plantuml-to-drawio" target="_blank" rel="noopener noreferrer">PlantUML project changes in 2026</a>',
M.appendChild(L));b.isOffline()&&!mxClient.IS_CHROMEAPP||"mermaid"!=n&&"plantUml"!=n||M.appendChild(b.createHelpIcon("mermaid"==n?"https://mermaid.js.org/intro/":"https://plantuml.com/"));M.appendChild(E);mxEvent.addListener(E,"change",function(){var d=x();if(0==y.value.length||y.value==c)c=d,y.value=c});n=mxUtils.button(mxResources.get("close"),function(){y.value==c?b.hideDialog():b.confirm(mxResources.get("areYouSure"),function(){b.hideDialog()})});n.className="geBtn";b.editor.cancelFirst&&M.appendChild(n);
-L=mxUtils.button(mxResources.get("insert"),function(d){try{b.hideDialog(),f(y.value,E.value,d)}catch(k){b.handleError(k)}});L.className="geBtn gePrimaryBtn";M.appendChild(L);b.editor.cancelFirst||M.appendChild(n);l.appendChild(M);this.container=l},NewDialog=function(b,l,n,f,x,z,y,E,M,L,O,R,c,d,k,m,q,v,A,C){function D(Ca){null!=Ca&&(Ka=Na=Ca?135:140);Ca=!0;if(null!=hb)for(;P<hb.length&&(Ca||0!=mxUtils.mod(P,30));){var Ia=hb[P++];Ia=G(Ia.url,Ia.libs,Ia.title,Ia.tooltip?Ia.tooltip:Ia.title,Ia.select,
+L=mxUtils.button(mxResources.get("insert"),function(d){try{b.hideDialog(),f(y.value,E.value,d)}catch(k){b.handleError(k)}});L.className="geBtn gePrimaryBtn";M.appendChild(L);b.editor.cancelFirst||M.appendChild(n);l.appendChild(M);this.container=l},NewDialog=function(b,l,n,f,x,z,y,E,M,L,O,R,c,d,k,m,q,v,A,B){function D(Ca){null!=Ca&&(Ka=Na=Ca?135:140);Ca=!0;if(null!=hb)for(;P<hb.length&&(Ca||0!=mxUtils.mod(P,30));){var Ia=hb[P++];Ia=G(Ia.url,Ia.libs,Ia.title,Ia.tooltip?Ia.tooltip:Ia.title,Ia.select,
Ia.imgUrl,Ia.info,Ia.onClick,Ia.preview,Ia.noImg,Ia.clibs,Ia.type);Ca&&Ia.click();Ca=!1}}function J(Ca,Ia,Fa,Ja,Ga,Ha){if(null!=Ca&&mxUtils.isAncestorNode(document.body,Ja)){Ca=mxUtils.parseXml(Ca);Ca=Editor.parseDiagramNode(Ca.documentElement,null,!0);var Oa=new mxCodec(Ca.ownerDocument),Qa=new mxGraphModel;Oa.decode(Ca,Qa);b.sidebar.createTooltip(Ja,Qa.root.children,Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-120,1E3),Math.min((window.innerHeight||
document.documentElement.clientHeight||document.body.clientHeight)-120,800),null!=Ga?mxResources.get(Ga):null,!0,new mxPoint(Ia,Fa),!0,function(){ea=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display;null!=Ha&&T(Ja,null,null,Ha,infoObj,clibs)},!0,!1)}}function F(){if(xa==La&&null==Ea&&null!=fb&&null!=cb)f&&b.spinner.spin(document.body,mxResources.get("generate")+" '"+cb.value+"'")&&(g=!0,b.hideDialog()),fb.click();else if(g&&b.spinner.stop(),fa&&null!=d)n||g||b.hideDialog(),d(fa,Da,
S.value);else if(f)n||g||b.hideDialog(),f(Ea,S.value,ua,Aa);else{var Ca=S.value;if(null!=Ca&&0<Ca.length){var Ia=function(Ja,Ga,Ha){b.createFile(Ha,Ea,null!=Aa&&0<Aa.length?Aa:null,Ja,function(){g||b.hideDialog()},null,Ga,null,null!=ma&&0<ma.length?ma:null)};if(b.mode==App.MODE_GOOGLE||b.mode==App.MODE_ONEDRIVE){var Fa=new SaveDialog(b,Ca,mxUtils.bind(this,function(Ja,Ga,Ha){Ia(Ga,Ha,Ja.value)}),null,null,null,null,b.mode);b.showDialog(Fa.container,420,150,!0,!1);Fa.init()}else b.pickFolder(b.mode,
@@ -12511,11 +12517,11 @@ Ga.setAttribute("title",Fa+" ("+Ha.length+")");mxUtils.write(Ga,Ga.getAttribute(
Ha=null;if(null!=Ta[Ja].content)Ga=document.createElement(Oa?"ul":"div"),Fa=Ca(Ja),Ga.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;",Ga.setAttribute("title",Fa),mxUtils.write(Ga,Fa),za.appendChild(Ga),Fa=Ga;else{var Oa=lb[Ja];Fa=Ga=document.createElement(Oa?"ul":"div");Ha=Ta[Ja];var Qa=Ca(Ja,Ha);if(null!=Oa){Ha=document.createElement("li");var Ya=document.createElement("div");
Ya.className="geTempTreeCaret";Ya.setAttribute("title",Qa);mxUtils.write(Ya,Qa);Fa=Ya;Ha.appendChild(Ya);Qa=document.createElement("ul");Qa.className="geTempTreeNested";Qa.style.visibility="hidden";for(var jb in Oa){var db=document.createElement("li"),nb=Ca(jb,Oa[jb]);db.setAttribute("title",nb);mxUtils.write(db,nb);Ia(Ja,db,jb);Qa.appendChild(db)}Ha.appendChild(Qa);Ga.className="geTempTree";Ga.appendChild(Ha);(function(Wa,ib){mxEvent.addListener(ib,"click",function(){Wa.style.visibility="visible";
Wa.classList.toggle("geTempTreeActive");Wa.classList.toggle("geTempTreeNested")&&setTimeout(function(){Wa.style.visibility="hidden"},550);ib.classList.toggle("geTempTreeCaret-down")})})(Qa,Ya)}else Ga.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;",Ga.setAttribute("title",Qa),mxUtils.write(Ga,Qa);null!=L&&(Ga.style.padding=L);za.appendChild(Ga)}Ia(Ja,Fa);null==Va&&Fa.click()}D(!1)}
-var H=500>(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth);n=null!=n?n:!0;x=null!=x?x:!1;y=null!=y?y:"light-dark(#ebf2f9, "+Editor.darkColor+")";O=null!=O?O:EditorUi.templateFile;var g=!1,t=document.createElement("div");t.style.userSelect="none";t.style.height="100%";var B=document.createElement("div");B.style.whiteSpace="nowrap";B.style.height="46px";n&&t.appendChild(B);var K=document.createElement("img");K.setAttribute("border","0");K.setAttribute("align","absmiddle");
+var H=500>(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth);n=null!=n?n:!0;x=null!=x?x:!1;y=null!=y?y:"light-dark(#ebf2f9, "+Editor.darkColor+")";O=null!=O?O:EditorUi.templateFile;var g=!1,t=document.createElement("div");t.style.userSelect="none";t.style.height="100%";var C=document.createElement("div");C.style.whiteSpace="nowrap";C.style.height="46px";n&&t.appendChild(C);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_M365?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_TRELLO?IMAGE_PATH+"/trello-logo.svg":b.mode==
-App.MODE_BROWSER?IMAGE_PATH+"/osa_database.png":IMAGE_PATH+"/osa_drive-harddisk.png";l||H||!n||B.appendChild(K);n&&mxUtils.write(B,(H?mxResources.get("name"):null==b.mode||b.mode==App.MODE_GOOGLE||b.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"))+":");var Q=".drawio";b.mode==App.MODE_GOOGLE&&null!=b.drive?Q=b.drive.extension:b.mode==App.MODE_DROPBOX&&null!=b.dropbox?Q=b.dropbox.extension:b.mode==App.MODE_ONEDRIVE&&null!=b.oneDrive?Q=b.oneDrive.extension:b.mode==
+App.MODE_BROWSER?IMAGE_PATH+"/osa_database.png":IMAGE_PATH+"/osa_drive-harddisk.png";l||H||!n||C.appendChild(K);n&&mxUtils.write(C,(H?mxResources.get("name"):null==b.mode||b.mode==App.MODE_GOOGLE||b.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"))+":");var Q=".drawio";b.mode==App.MODE_GOOGLE&&null!=b.drive?Q=b.drive.extension:b.mode==App.MODE_DROPBOX&&null!=b.dropbox?Q=b.dropbox.extension:b.mode==App.MODE_ONEDRIVE&&null!=b.oneDrive?Q=b.oneDrive.extension:b.mode==
App.MODE_GITHUB&&null!=b.gitHub?Q=b.gitHub.extension:b.mode==App.MODE_GITLAB&&null!=b.gitLab?Q=b.gitLab.extension:b.mode==App.MODE_TRELLO&&null!=b.trello&&(Q=b.trello.extension);var S=document.createElement("input");S.setAttribute("value",b.defaultFilename+Q);S.style.marginLeft="10px";S.style.width=l||H?"144px":"244px";this.init=function(){n&&Editor.selectFilename(S);null!=da.parentNode&&null!=da.parentNode.parentNode&&mxEvent.addGestureListeners(da.parentNode.parentNode,mxUtils.bind(this,function(Ca){null!=
-b.sidebar&&b.sidebar.hideTooltip()}),null,null)};if(n)if(B.appendChild(S),v)S.style.width=l||H?"350px":"450px";else if(null!=b.editor.diagramFileTypes){var U=FilenameDialog.createFileTypes(b,S,b.editor.diagramFileTypes);U.style.marginLeft="6px";U.style.width=l||H?"80px":"180px";B.appendChild(U)}var N=!1,P=0,V=new Spinner({lines:12,length:10,width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9}),Y=mxUtils.button(m||mxResources.get("create"),
+b.sidebar&&b.sidebar.hideTooltip()}),null,null)};if(n)if(C.appendChild(S),v)S.style.width=l||H?"350px":"450px";else if(null!=b.editor.diagramFileTypes){var U=FilenameDialog.createFileTypes(b,S,b.editor.diagramFileTypes);U.style.marginLeft="6px";U.style.width=l||H?"80px":"180px";C.appendChild(U)}var N=!1,P=0,V=new Spinner({lines:12,length:10,width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9}),Y=mxUtils.button(m||mxResources.get("create"),
function(){Y.setAttribute("disabled","disabled");F();Y.removeAttribute("disabled")});Y.className="geBtn gePrimaryBtn";var X=document.createElement("img");X.setAttribute("src",Editor.magnifyImage);X.setAttribute("title",mxResources.get("preview"));X.className="geButton geRoundButton";var Z=!1,aa=null,ea=!1;if(R||c){var ha=[],ba=null,ia=null,la=null,ka=function(Ca){Y.setAttribute("disabled","disabled");for(var Ia=0;Ia<ha.length;Ia++)ha[Ia].className=Ia==Ca?"geBtn gePrimaryBtn":"geBtn"};N=!0;var pa=
document.createElement("div");pa.style.whiteSpace="nowrap";pa.style.height="30px";t.appendChild(pa);var Ba=mxUtils.button(mxResources.get("Templates",null,"Templates"),function(){za.style.display="";na.style.display="";da.style.left="160px";ka(0);da.scrollTop=0;da.innerText="";P=0;ba!=hb&&(hb=ba,Ta=ia,ab=la,za.innerText="",I(),ba=null)});ha.push(Ba);pa.appendChild(Ba);var sa=function(Ca){za.style.display="none";na.style.display="none";da.style.left="30px";ka(Ca?-1:1);null==ba&&(ba=hb);da.scrollTop=
0;da.innerText="";V.spin(da);var Ia=function(Fa,Ja,Ga){P=0;V.stop();hb=Fa;Ga=Ga||{};var Ha=0,Oa;for(Oa in Ga)Ha+=Ga[Oa].length;if(Ja)da.innerText=Ja;else if(0==Fa.length&&0==Ha)da.innerText=mxResources.get("noDiagrams",null,"No Diagrams Found");else if(da.innerText="",0<Ha){za.style.display="";da.style.left="160px";za.innerText="";ab=0;Ta={"draw.io":Fa};for(Oa in Ga)Ta[Oa]=Ga[Oa];I()}else D(!0)};Ca?c(va.value,Ia):R(Ia)};if(R){var ja=mxUtils.button(mxResources.get("Recent",null,"Recent"),function(){sa()});
@@ -12530,34 +12536,34 @@ za.style.cssText="position:absolute;left:30px;width:128px;top:"+oa+"px;bottom:68
Ua.style.backgroundImage=Za;var cb=document.createElement("textarea");cb.setAttribute("placeholder",mxResources.get("describeYourDiagram"));cb.className="geGenerateDiagramDescription";var fb=document.createElement("button");fb.className="geBtn gePrimaryBtn geGenerateDiagramButton";fb.setAttribute("disabled","disabled");fb.setAttribute("title",mxResources.get("ok"));mxUtils.write(fb,mxResources.get("ok"));var bb=X.cloneNode(!0);bb.style.display="none";var rb=!1;mxEvent.addGestureListeners(bb,function(Ca){rb=
null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display},null,function(Ca){if(!rb&&null!=ra){var Ia="<mxfile><diagram>"+Graph.compress(ra)+"</diagram></mxfile>";J(Ia,mxEvent.getClientX(Ca),mxEvent.getClientY(Ca),La,ca)}});var Sa=X.cloneNode(!0);Sa.setAttribute("src",Editor.editImage);Sa.setAttribute("title",mxResources.get("edit"));Sa.style.visibility="hidden";Sa.style.left="0px";var eb=X.cloneNode(!0);eb.setAttribute("src",Editor.helpImage);eb.setAttribute("title",mxResources.get("help"));
mxEvent.addListener(eb,"click",function(Ca){b.openLink("https://www.drawio.com/blog/write-query-generate-diagram");mxEvent.consume(Ca)});Ra.appendChild(cb);Ra.appendChild(fb);Ra.appendChild(eb);Ra.style.display="none";mxEvent.addListener(Sa,"click",W);mxEvent.addListener(cb,"input",function(){""!=cb.value?fb.removeAttribute("disabled"):fb.setAttribute("disabled","disabled")});var Pa=!1;mxEvent.addListener(fb,"click",function(){u()});mxEvent.addListener(cb,"keydown",function(Ca){13!=Ca.keyCode||mxEvent.isShiftDown(Ca)?
-27==Ca.keyCode&&(u(!0),mxEvent.consume(Ca)):(u(),mxEvent.consume(Ca))});var Ta={},lb={},Xa={},ab=0,mb=!0,Va=null,gb=null;Ta.basic=C?[]:[{title:"blankDiagram"}];var hb=Ta.basic;Editor.enableAi&&b.isExternalDataComms()&&"draw.io"==b.getServiceName()&&"undefined"!==typeof mxMermaidToDrawio&&window.isMermaidEnabled&&Ta.basic.push({title:"generate",type:"generative"});if(!l){var vb=function(){mxUtils.get(sb,function(Ca){if(!zb){zb=!0;Ca=Ca.getXml().documentElement.firstChild;for(var Ia={};null!=Ca;){if("undefined"!==
+27==Ca.keyCode&&(u(!0),mxEvent.consume(Ca)):(u(),mxEvent.consume(Ca))});var Ta={},lb={},Xa={},ab=0,mb=!0,Va=null,gb=null;Ta.basic=B?[]:[{title:"blankDiagram"}];var hb=Ta.basic;Editor.enableAi&&b.isExternalDataComms()&&"draw.io"==b.getServiceName()&&"undefined"!==typeof mxMermaidToDrawio&&window.isMermaidEnabled&&Ta.basic.push({title:"generate",type:"generative"});if(!l){var vb=function(){mxUtils.get(sb,function(Ca){if(!zb){zb=!0;Ca=Ca.getXml().documentElement.firstChild;for(var Ia={};null!=Ca;){if("undefined"!==
typeof Ca.getAttribute)if("parsererror"==Ca.nodeName)null!=window.console&&console.log("Parser error in "+O+": "+Ca.textContent);else if("clibs"==Ca.nodeName){for(var Fa=Ca.getAttribute("name"),Ja=Ca.getElementsByTagName("add"),Ga=[],Ha=0;Ha<Ja.length;Ha++)Ga.push(encodeURIComponent(mxUtils.getTextContent(Ja[Ha])));null!=Fa&&0<Ga.length&&(Ia[Fa]=Ga.join(";"))}else if(Ga=Ca.getAttribute("url"),null!=Ga){Ja=Ca.getAttribute("section");Fa=Ca.getAttribute("subsection");if(null==Ja&&(Ha=Ga.indexOf("/"),
Ja=Ga.substring(0,Ha),null==Fa)){var Oa=Ga.indexOf("/",Ha+1);-1<Oa&&(Fa=Ga.substring(Ha+1,Oa))}Ha=Ta[Ja];null==Ha&&(Ha=[],Ta[Ja]=Ha);Ga=Ca.getAttribute("clibs");null!=Ia[Ga]&&(Ga=Ia[Ga]);Ga={url:Ca.getAttribute("url"),libs:Ca.getAttribute("libs"),title:Ca.getAttribute("title"),tooltip:Ca.getAttribute("name")||Ca.getAttribute("url"),preview:Ca.getAttribute("preview"),clibs:Ga,tags:Ca.getAttribute("tags")};Ha.push(Ga);null!=Fa&&(Ha=lb[Ja],null==Ha&&(Ha={},lb[Ja]=Ha),Ja=Ha[Fa],null==Ja&&(Ja=[],Ha[Fa]=
Ja),Ja.push(Ga))}Ca=Ca.nextSibling}V.stop();I()}})};t.appendChild(na);t.appendChild(za);t.appendChild(da);var zb=!1,sb=O;/^https?:\/\//.test(sb)&&!b.editor.isCorsEnabledForUrl(sb)&&(sb=PROXY_URL+"?url="+encodeURIComponent(sb));V.spin(da);null!=q?q(function(Ca,Ia){Xa=Ca;la=ab=Ia;vb()},vb):vb();ia=Ta}mxEvent.addListener(S,"keypress",function(Ca){b.dialog.container.firstChild==t&&13==Ca.keyCode&&F()});var kb=document.createElement("div");kb.style.marginTop=l?"4px":"16px";kb.style.textAlign="right";kb.style.position=
"absolute";kb.style.left="40px";kb.style.bottom="24px";kb.style.right="40px";var wb=mxUtils.button(mxResources.get("cancel"),function(){null!=z&&z();b.hideDialog(!0)});wb.className="geBtn";!b.editor.cancelFirst||x&&null==z||kb.appendChild(wb);if(!(l||"1"==urlParams.embed||x||mxClient.IS_ANDROID||mxClient.IS_IOS)&&"1"!=urlParams.noDevice){var Ab=mxUtils.button(mxResources.get("fromTemplateUrl"),function(){var Ca=new FilenameDialog(b,"",mxResources.get("create"),function(Ia){null!=Ia&&0<Ia.length&&
b.editor.loadUrl(b.editor.getProxiedUrl(Ia),function(Fa){Ea=Fa;Aa=null;templateRealURl=Ia;b.hideDialog();F()},function(Fa){b.handleError(Fa)})},mxResources.get("url"),null,null,null,!1);b.showDialog(Ca.container,300,80,!0,!0);Ca.init()});Ab.className="geBtn";kb.appendChild(Ab)}if(Graph.fileSupport&&k){var Bb=mxUtils.button(mxResources.get("import"),function(){if(null==b.newDlgFileInputElt){var Ca=document.createElement("input");Ca.setAttribute("multiple","multiple");Ca.setAttribute("type","file");
mxEvent.addListener(Ca,"change",function(Ia){b.openFiles(Ca.files,!0);Ca.value=""});Ca.style.display="none";document.body.appendChild(Ca);b.newDlgFileInputElt=Ca}b.newDlgFileInputElt.click()});Bb.className="geBtn";kb.appendChild(Bb)}kb.appendChild(Y);b.editor.cancelFirst||null!=f||x&&null==z||kb.appendChild(wb);t.appendChild(kb);this.container=t};NewDialog.tagsList={};
-var SaveDialog=function(b,l,n,f,x,z,y,E,M,L,O){function R(g,t,B,K,Q,S){var U=null;if((null==f||0>mxUtils.indexOf(f,g))&&(null==M||g==M)&&(null==L||0<=mxUtils.indexOf(L,g))){Q=null!=Q?Q:b.getTitleForService(g);var N=0<=mxUtils.indexOf(u,g);if(N||null!=b.getServiceForName(g)){U=document.createElement("option");var P="";!N&&b.isOffline(g==App.MODE_GOOGLE&&"1"==urlParams["gapi-stealth"])&&(U.setAttribute("disabled","disabled"),P=" ("+mxResources.get("offline")+")");if("pick"==S)U.innerHTML=mxUtils.htmlEntities(Q)+
-"&nbsp;&nbsp;&#8211&nbsp;&nbsp;"+mxUtils.htmlEntities(mxResources.get("pickFolder"))+"..."+P,U.setAttribute("value","pickFolder-"+g),U.setAttribute("title",Q+" - "+mxResources.get("pickFolder")+"...");else{N=g+(null!=B?"-"+B:"");var V=I[N];null!=V&&null!=V.option&&V.option.parentNode.removeChild(V.option);V=null;if(null!=t){"/"==t.charAt(t.length-1)&&(t=t.substring(0,t.length-1));"/"==t.charAt(0)&&(t=t.substring(1));V=t;if(g!=App.MODE_GITHUB&&g==App.MODE_GITLAB){var Y=V.lastIndexOf("/");0<=Y&&(V=
-V.substring(Y+1))}40<V.length&&(V=V.substring(0,20)+"..."+V.substring(V.length-20))}U.innerHTML=mxUtils.htmlEntities(Q)+(null!=V?"&nbsp;&nbsp;&#8211&nbsp;&nbsp;"+mxUtils.htmlEntities(V):"")+P;U.setAttribute("title",Q+(null!=t?" ("+t+")":"")+(null!=B&&decodeURIComponent(B)!=t?" ["+B+"]":""));U.setAttribute("value",N);I[N]={option:U,mode:g,path:t,id:B};SaveDialog.lastValue==N&&null==E&&"disabled"==!U.getAttribute("disabled")?K=!0:null==K&&("root"==S?K=null==E&&b.mode==g||null!=g&&g==E:"pickFolder-"==
-p.value.substring(0,11)&&(K=!0));K&&U.setAttribute("selected","selected")}p.appendChild(U)}}return U}function c(g){b.pickFolder(g,function(t){var B=null;g==App.MODE_GOOGLE&&null!=t.docs&&0<t.docs.length?B={mode:g,path:t.docs[0].name,id:t.docs[0].id}:g==App.MODE_ONEDRIVE&&null!=t.value&&0<t.value.length?B={mode:g,path:t.value[0].name,id:OneDriveFile.prototype.getIdOf(t.value[0])}:g==App.MODE_M365&&null!=t.value&&0<t.value.length?B={mode:g,path:t.value[0].name,id:OneDriveFile.prototype.getIdOf(t.value[0])}:
-(g==App.MODE_GITHUB||g==App.MODE_GITLAB)&&null!=t&&0<t.length&&(B={mode:g,path:decodeURIComponent(t),id:t});null!=B&&(b.addRecent(B,"Folders",5),t=R(B.mode,B.path,B.id,!0),p.innerHTML="",I={},d(),B=p.selectedIndex,p.value=t.value,0>p.selectedIndex&&(p.selectedIndex=B))},!0,!0,!0,!0)}function d(){var g=b.getRecent("Folders"),t=0;if(null!=g&&0<g.length)for(var B=0;B<g.length;B++)null!=R(g[B].mode,g[B].path,g[B].id)&&t++;R(App.MODE_GOOGLE,mxResources.get("myDrive"),"root",null,null,"root");R(App.MODE_GOOGLE,
+var SaveDialog=function(b,l,n,f,x,z,y,E,M,L,O){function R(g,t,C,K,Q,S){var U=null;if((null==f||0>mxUtils.indexOf(f,g))&&(null==M||g==M)&&(null==L||0<=mxUtils.indexOf(L,g))){Q=null!=Q?Q:b.getTitleForService(g);var N=0<=mxUtils.indexOf(u,g);if(N||null!=b.getServiceForName(g)){U=document.createElement("option");var P="";!N&&b.isOffline(g==App.MODE_GOOGLE&&"1"==urlParams["gapi-stealth"])&&(U.setAttribute("disabled","disabled"),P=" ("+mxResources.get("offline")+")");if("pick"==S)U.innerHTML=mxUtils.htmlEntities(Q)+
+"&nbsp;&nbsp;&#8211&nbsp;&nbsp;"+mxUtils.htmlEntities(mxResources.get("pickFolder"))+"..."+P,U.setAttribute("value","pickFolder-"+g),U.setAttribute("title",Q+" - "+mxResources.get("pickFolder")+"...");else{N=g+(null!=C?"-"+C:"");var V=I[N];null!=V&&null!=V.option&&V.option.parentNode.removeChild(V.option);V=null;if(null!=t){"/"==t.charAt(t.length-1)&&(t=t.substring(0,t.length-1));"/"==t.charAt(0)&&(t=t.substring(1));V=t;if(g!=App.MODE_GITHUB&&g==App.MODE_GITLAB){var Y=V.lastIndexOf("/");0<=Y&&(V=
+V.substring(Y+1))}40<V.length&&(V=V.substring(0,20)+"..."+V.substring(V.length-20))}U.innerHTML=mxUtils.htmlEntities(Q)+(null!=V?"&nbsp;&nbsp;&#8211&nbsp;&nbsp;"+mxUtils.htmlEntities(V):"")+P;U.setAttribute("title",Q+(null!=t?" ("+t+")":"")+(null!=C&&decodeURIComponent(C)!=t?" ["+C+"]":""));U.setAttribute("value",N);I[N]={option:U,mode:g,path:t,id:C};SaveDialog.lastValue==N&&null==E&&"disabled"==!U.getAttribute("disabled")?K=!0:null==K&&("root"==S?K=null==E&&b.mode==g||null!=g&&g==E:"pickFolder-"==
+p.value.substring(0,11)&&(K=!0));K&&U.setAttribute("selected","selected")}p.appendChild(U)}}return U}function c(g){b.pickFolder(g,function(t){var C=null;g==App.MODE_GOOGLE&&null!=t.docs&&0<t.docs.length?C={mode:g,path:t.docs[0].name,id:t.docs[0].id}:g==App.MODE_ONEDRIVE&&null!=t.value&&0<t.value.length?C={mode:g,path:t.value[0].name,id:OneDriveFile.prototype.getIdOf(t.value[0])}:g==App.MODE_M365&&null!=t.value&&0<t.value.length?C={mode:g,path:t.value[0].name,id:OneDriveFile.prototype.getIdOf(t.value[0])}:
+(g==App.MODE_GITHUB||g==App.MODE_GITLAB)&&null!=t&&0<t.length&&(C={mode:g,path:decodeURIComponent(t),id:t});null!=C&&(b.addRecent(C,"Folders",5),t=R(C.mode,C.path,C.id,!0),p.innerHTML="",I={},d(),C=p.selectedIndex,p.value=t.value,0>p.selectedIndex&&(p.selectedIndex=C))},!0,!0,!0,!0)}function d(){var g=b.getRecent("Folders"),t=0;if(null!=g&&0<g.length)for(var C=0;C<g.length;C++)null!=R(g[C].mode,g[C].path,g[C].id)&&t++;R(App.MODE_GOOGLE,mxResources.get("myDrive"),"root",null,null,"root");R(App.MODE_GOOGLE,
null,null,null,null,"pick");null!=b.oneDrive&&(R(App.MODE_ONEDRIVE,mxResources.get("myFiles"),OneDriveFile.prototype.getIdOf(b.oneDrive.rootId),null,null,"root"),R(App.MODE_ONEDRIVE,null,null,null,null,"pick"));null!=b.m365&&R(App.MODE_M365,null,null,null,null,"pick");null!=b.dropbox&&R(App.MODE_DROPBOX,"Apps"+b.dropbox.appPath);R(App.MODE_GITHUB,null,null,null,null,"pick");R(App.MODE_GITLAB,null,null,null,null,"pick");R(App.MODE_TRELLO);g=!Editor.useLocalStorage||"device"==urlParams.storage||null!=
b.getCurrentFile()&&"1"!=urlParams.noDevice;EditorUi.nativeFileSupport&&g&&R(App.MODE_DEVICE,null,null,b.mode==App.MODE_DEVICE||null!=f&&0<=mxUtils.indexOf(f,App.MODE_BROWSER)?!0:null);isLocalStorage&&"0"!=urlParams.browser&&R(App.MODE_BROWSER);g&&R("download");Editor.popupsAllowed&&R("_blank",null,null,null,mxResources.get("openInNewWindow"));"pickFolder-"==p.value.substring(0,11)&&(g=document.createElement("option"),g.setAttribute("value",""),g.setAttribute("selected","selected"),mxUtils.write(g,
mxResources.get("pickFolder")+"..."),p.insertBefore(g,p.firstChild));G=p.value}function k(){if("pickFolder-"==p.value.substring(0,11)){var g=p.value.substring(11);p.value=G;c(g)}else if(null!=W&&null!=I[p.value]&&null!=b.editor.diagramFileTypes&&"drawio"==b.editor.diagramFileTypes[W.value].extension){g=b.getExtensionForService(I[p.value].mode);var t=T.value;null!=g&&0>l.indexOf(".")&&0>t.indexOf(".")&&(T.value=t+g)}H.innerHTML="";mxUtils.write(H,null!=O?O:mxResources.get("download"==p.value||"_blank"==
p.value||null!=M?"ok":"save"));""==p.value?H.setAttribute("disabled","disabled"):H.removeAttribute("disabled")}var m=document.createElement("div");m.style.display="flex";m.style.flexWrap="wrap";m.style.whiteSpace="nowrap";var q=document.createElement("div");q.style.display="grid";q.style.gap="5px 8px";q.style.gridAutoRows="auto auto 44px";q.style.gridAutoColumns="0fr minmax(0,1fr)";q.style.width="100%";var v=null,A=null;if(null!=x&&null!=z&&"image/"==z.substring(0,6)&&("image/svg"!=z.substring(0,
-9)||mxClient.IS_SVG)){q.style.display="inline-grid";q.style.flexBasis="75%";v=document.createElement("div");v.style.display="inline-block";v.style.height="auto";v.style.maxWidth="25%";v.style.margin="auto";var C=document.createElement("img"),D=y?x:btoa(unescape(encodeURIComponent(x))),J="data:"+z+";base64,"+D;C.setAttribute("src",J);C.style.boxSizing="border-box";C.style.maxHeight="50px";C.style.maxWidth="100%";C.style.paddingLeft="10px";v.appendChild(C);"image/png"!=z&&"image/svg+xml"!=z||"function"!==
+9)||mxClient.IS_SVG)){q.style.display="inline-grid";q.style.flexBasis="75%";v=document.createElement("div");v.style.display="inline-block";v.style.height="auto";v.style.maxWidth="25%";v.style.margin="auto";var B=document.createElement("img"),D=y?x:btoa(unescape(encodeURIComponent(x))),J="data:"+z+";base64,"+D;B.setAttribute("src",J);B.style.boxSizing="border-box";B.style.maxHeight="50px";B.style.maxWidth="100%";B.style.paddingLeft="10px";v.appendChild(B);"image/png"!=z&&"image/svg+xml"!=z||"function"!==
typeof window.ClipboardItem||null==navigator.clipboard||(A=mxUtils.button(mxResources.get("copy"),function(){b.writeImageToClipboard(J,null,null,z,mxUtils.bind(this,function(){"copy"==E?b.hideDialog():b.alert(mxResources.get("copiedToClipboard"))}),mxUtils.bind(this,function(g){b.handleError(g)}))},null,"geBtn"));Editor.popupsAllowed&&(null==f||0>mxUtils.indexOf(f,"_blank"))?(v.setAttribute("title",mxResources.get("openInNewWindow")),v.style.cursor="pointer",mxEvent.addGestureListeners(v,null,null,
function(g){mxEvent.isPopupTrigger(g)||b.openInNewWindow(x,z,y)})):v.setAttribute("title",mxResources.get("preview"))}D=document.createElement("div");D.style.display="flex";D.style.padding="1px";D.style.alignItems="center";D.style.justifyContent="flex-end";D.style.gridColumn="1";D.style.whiteSpace="nowrap";var F=document.createElement("div");F.style.display="grid";F.style.padding="1px";F.style.alignItems="center";F.style.gridColumn="2";F.style.gridAutoColumns="minmax(0,1fr) auto";F.style.gap="6px";
mxUtils.write(D,mxResources.get("saveAs")+":");var T=document.createElement("input");T.setAttribute("type","text");T.setAttribute("value",l);T.style.boxSizing="border-box";T.style.width="100%";F.appendChild(T);null==M&&(q.appendChild(D),q.appendChild(F));var W=null;null!=b.editor.diagramFileTypes&&null==z&&null==M&&(D=D.cloneNode(!1),F=F.cloneNode(!1),mxUtils.write(D,mxResources.get("type")+":"),W=FilenameDialog.createFileTypes(b,T,b.editor.diagramFileTypes),W.style.boxSizing="border-box",W.style.width=
-"100%",F.appendChild(W),q.appendChild(D),q.appendChild(F));D=D.cloneNode(!1);F=F.cloneNode(!1);mxUtils.write(D,mxResources.get("where")+":");var p=document.createElement("select");p.style.textOverflow="ellipsis";p.style.gridColumn="1";var u=["browser","device","download","_blank"],G=null,I={};C=mxUtils.button(mxResources.get("reset"),function(){T.value=l;T.dispatchEvent(new Event("change"));b.resetRecent("Folders");p.innerHTML="";p.value="";pickFolderOption=null;I={};d()},null,"geBtn");var H=mxUtils.button("",
+"100%",F.appendChild(W),q.appendChild(D),q.appendChild(F));D=D.cloneNode(!1);F=F.cloneNode(!1);mxUtils.write(D,mxResources.get("where")+":");var p=document.createElement("select");p.style.textOverflow="ellipsis";p.style.gridColumn="1";var u=["browser","device","download","_blank"],G=null,I={};B=mxUtils.button(mxResources.get("reset"),function(){T.value=l;T.dispatchEvent(new Event("change"));b.resetRecent("Folders");p.innerHTML="";p.value="";pickFolderOption=null;I={};d()},null,"geBtn");var H=mxUtils.button("",
function(){SaveDialog.lastValue=p.value;var g=I[SaveDialog.lastValue];null!=g&&n(T,g.mode,g.id)},null,"geBtn gePrimaryBtn");mxEvent.addListener(T,"keypress",function(g){13==g.keyCode&&("copy"==E&&null!=A?A.click():H.click())});mxEvent.addListener(p,"change",k);d();F.appendChild(p);null!=SaveDialog.lastValue&&null!=I[SaveDialog.lastValue]&&(p.value=SaveDialog.lastValue);k();q.appendChild(D);q.appendChild(F);m.appendChild(q);null!=v&&m.appendChild(v);q=document.createElement("div");q.style.flexBasis=
-"100%";q.style.textAlign="right";q.style.marginTop=null!=z?"16px":"8px";b.isOffline()&&!mxClient.IS_CHROMEAPP||q.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/save-file-formats"));v=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()},null,"geBtn");b.editor.cancelFirst&&q.appendChild(v);q.appendChild(C);"copy"==E&&null!=A?(A.className="geBtn gePrimaryBtn",H.className="geBtn",q.appendChild(H),q.appendChild(A)):(null!=A&&q.appendChild(A),q.appendChild(H));b.editor.cancelFirst||
+"100%";q.style.textAlign="right";q.style.marginTop=null!=z?"16px":"8px";b.isOffline()&&!mxClient.IS_CHROMEAPP||q.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/save-file-formats"));v=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()},null,"geBtn");b.editor.cancelFirst&&q.appendChild(v);q.appendChild(B);"copy"==E&&null!=A?(A.className="geBtn gePrimaryBtn",H.className="geBtn",q.appendChild(H),q.appendChild(A)):(null!=A&&q.appendChild(A),q.appendChild(H));b.editor.cancelFirst||
q.appendChild(v);m.appendChild(q);this.init=function(){Editor.selectFilename(T)};this.container=m},CreateDialog=function(b,l,n,f,x,z,y,E,M,L,O,R,c,d,k,m,q){function v(p,u,G,I){function H(){mxEvent.addListener(g,"click",function(){var S=G;if(y){var U=D.value,N=U.lastIndexOf(".");if(0>l.lastIndexOf(".")&&0>N){S=null!=S?S:W.value;var P="";S==App.MODE_GOOGLE?P=b.drive.extension:S==App.MODE_GITHUB?P=b.gitHub.extension:S==App.MODE_GITLAB?P=b.gitLab.extension:S==App.MODE_TRELLO?P=b.trello.extension:S==App.MODE_DROPBOX?
P=b.dropbox.extension:S==App.MODE_ONEDRIVE?P=b.oneDrive.extension:S==App.MODE_DEVICE&&(P=".drawio");0<=N&&(U=U.substring(0,N));D.value=U+P}}A(G)})}var g=document.createElement("a");g.style.overflow="hidden";var t=document.createElement("img");t.src=p;t.setAttribute("border","0");t.setAttribute("align","absmiddle");t.style.width="60px";t.style.height="60px";t.style.paddingBottom="6px";g.style.display="inline-block";g.className="geBaseButton";g.style.position="relative";g.style.margin="4px";g.style.padding=
-"8px 8px 10px 8px";g.style.whiteSpace="nowrap";g.appendChild(t);g.style.color="gray";g.style.fontSize="11px";var B=document.createElement("div");g.appendChild(B);mxUtils.write(B,u);if(null!=I&&null==b[I]){t.style.visibility="hidden";mxUtils.setOpacity(B,10);var K=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});K.spin(g);var Q=window.setTimeout(function(){null==b[I]&&(K.stop(),g.style.display=
-"none")},3E4);b.addListener("clientLoaded",mxUtils.bind(this,function(){null!=b[I]&&(window.clearTimeout(Q),mxUtils.setOpacity(B,100),t.style.visibility="",K.stop(),H())}))}else H();F.appendChild(g);++T==R&&(mxUtils.br(F),T=0)}function A(p){var u=D.value;if(null==p||null!=u&&0<u.length)q&&b.hideDialog(),n(u,p,D)}O="1"==urlParams.noDevice?!1:O;y=null!=y?y:!0;E=null!=E?E:!0;R=null!=R?R:4;q=null!=q?q:!0;z=document.createElement("div");z.style.whiteSpace="nowrap";null==f&&b.addLanguageMenu(z);var C=document.createElement("h2");
-mxUtils.write(C,x||mxResources.get("create"));C.style.marginTop="0px";C.style.marginBottom="24px";z.appendChild(C);x=document.createElement("span");mxUtils.write(x,mxResources.get("filename")+":");x.style.maxWidth="106px";x.style.overflow="hidden";x.style.textOverflow="ellipsis";x.style.display="inline-block";z.appendChild(x);var D=document.createElement("input");D.setAttribute("value",l);D.style.width="180px";D.style.marginLeft="10px";D.style.marginBottom="20px";D.style.maxWidth="70%";this.init=
+"8px 8px 10px 8px";g.style.whiteSpace="nowrap";g.appendChild(t);g.style.color="gray";g.style.fontSize="11px";var C=document.createElement("div");g.appendChild(C);mxUtils.write(C,u);if(null!=I&&null==b[I]){t.style.visibility="hidden";mxUtils.setOpacity(C,10);var K=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});K.spin(g);var Q=window.setTimeout(function(){null==b[I]&&(K.stop(),g.style.display=
+"none")},3E4);b.addListener("clientLoaded",mxUtils.bind(this,function(){null!=b[I]&&(window.clearTimeout(Q),mxUtils.setOpacity(C,100),t.style.visibility="",K.stop(),H())}))}else H();F.appendChild(g);++T==R&&(mxUtils.br(F),T=0)}function A(p){var u=D.value;if(null==p||null!=u&&0<u.length)q&&b.hideDialog(),n(u,p,D)}O="1"==urlParams.noDevice?!1:O;y=null!=y?y:!0;E=null!=E?E:!0;R=null!=R?R:4;q=null!=q?q:!0;z=document.createElement("div");z.style.whiteSpace="nowrap";null==f&&b.addLanguageMenu(z);var B=document.createElement("h2");
+mxUtils.write(B,x||mxResources.get("create"));B.style.marginTop="0px";B.style.marginBottom="24px";z.appendChild(B);x=document.createElement("span");mxUtils.write(x,mxResources.get("filename")+":");x.style.maxWidth="106px";x.style.overflow="hidden";x.style.textOverflow="ellipsis";x.style.display="inline-block";z.appendChild(x);var D=document.createElement("input");D.setAttribute("value",l);D.style.width="180px";D.style.marginLeft="10px";D.style.marginBottom="20px";D.style.maxWidth="70%";this.init=
function(){Editor.selectFilename(D)};z.appendChild(D);null!=m&&null!=b.editor.diagramFileTypes&&(m=FilenameDialog.createFileTypes(b,D,b.editor.diagramFileTypes),m.style.marginLeft="6px",m.style.width="90px",z.appendChild(m));m=null;if("1"!=urlParams.noDevice&&null!=c&&null!=d&&"image/"==d.substring(0,6)&&("image/svg"!=d.substring(0,9)||mxClient.IS_SVG)){D.style.width="160px";x=document.createElement("img");var J=k?c:btoa(unescape(encodeURIComponent(c)));x.setAttribute("src","data:"+d+";base64,"+J);
x.style.position="absolute";x.style.top="70px";x.style.right="100px";x.style.maxWidth="120px";x.style.maxHeight="80px";mxUtils.setPrefixedStyle(x.style,"transform","translate(50%,-50%)");z.appendChild(x);mxClient.IS_FF||"image/png"!=d||null==navigator.clipboard||"function"!==typeof window.ClipboardItem||(m=mxUtils.button(mxResources.get("copy"),function(p){p=b.base64ToBlob(J,"image/png");p=new ClipboardItem({"image/png":p,"text/html":new Blob(['<img src="data:'+d+";base64,"+J+'">'],{type:"text/html"})});
navigator.clipboard.write([p]).then(mxUtils.bind(this,function(){b.alert(mxResources.get("copiedToClipboard"))}))["catch"](mxUtils.bind(this,function(u){b.handleError(u)}))}),m.style.marginTop="6px",m.className="geBtn");M&&Editor.popupsAllowed&&(x.style.cursor="pointer",mxEvent.addGestureListeners(x,null,null,function(p){mxEvent.isPopupTrigger(p)||A("_blank")}))}mxUtils.br(z);var F=document.createElement("div");F.style.textAlign="center";var T=0;F.style.marginTop="6px";z.appendChild(F);var W=document.createElement("select");
@@ -12570,7 +12576,7 @@ App.MODE_BROWSER),mxUtils.write(E,mxResources.get("browser")),W.appendChild(E),b
(b.fileLoaded(null),b.hideDialog(),window.close(),window.location.href=b.getUrl())});O.className="geBtn";b.editor.cancelFirst&&null==f&&E.appendChild(O);null==f&&(c=mxUtils.button(mxResources.get("decideLater"),function(){A(null)}),c.className="geBtn",E.appendChild(c));M&&Editor.popupsAllowed&&(M=mxUtils.button(mxResources.get("openInNewWindow"),function(){A("_blank")}),M.className="geBtn",E.appendChild(M));CreateDialog.showDownloadButton&&(M=mxUtils.button(mxResources.get("download"),function(){A("download")}),
M.className="geBtn",E.appendChild(M),null!=m&&(M.style.marginTop="6px",E.style.marginTop="6px"));null!=m&&(mxUtils.br(E),E.appendChild(m));b.editor.cancelFirst&&null==f||E.appendChild(O);mxEvent.addListener(D,"keypress",function(p){13==p.keyCode?A(App.MODE_DEVICE):27==p.keyCode&&(b.fileLoaded(null),b.hideDialog(),window.close())});z.appendChild(E);this.container=z};CreateDialog.showDownloadButton="1"!=urlParams.noDevice;
var PopupDialog=function(b,l,n,f,x){x=null!=x?x:!0;var z=document.createElement("div");z.style.textAlign="center";z.style.height="100%";mxUtils.write(z,mxResources.get("fileOpenLocation"));mxUtils.br(z);mxUtils.br(z);var y=mxUtils.button(mxResources.get("openInThisWindow"),function(){x&&b.hideDialog();null!=f&&f()});y.className="geBtn";y.style.marginBottom="8px";y.style.width="280px";z.appendChild(y);mxUtils.br(z);var E=mxUtils.button(mxResources.get("openInNewWindow"),function(){x&&b.hideDialog();
-null!=n&&n();b.openLink(l,null,!0)});E.className="geBtn gePrimaryBtn";E.style.width=y.style.width;z.appendChild(E);mxUtils.br(z);mxUtils.br(z);mxUtils.write(z,mxResources.get("allowPopups"));this.container=z},ImageDialog=function(b,l,n,f,x,z,y,E){function M(){0<R.value.length?A.removeAttribute("disabled"):A.setAttribute("disabled","disabled");"data:"!=R.value.substring(0,5)?C.removeAttribute("disabled"):C.setAttribute("disabled","disabled")}z=null!=z?z:!0;var L=b.editor.graph,O=document.createElement("div");
+null!=n&&n();b.openLink(l,null,!0)});E.className="geBtn gePrimaryBtn";E.style.width=y.style.width;z.appendChild(E);mxUtils.br(z);mxUtils.br(z);mxUtils.write(z,mxResources.get("allowPopups"));this.container=z},ImageDialog=function(b,l,n,f,x,z,y,E){function M(){0<R.value.length?A.removeAttribute("disabled"):A.setAttribute("disabled","disabled");"data:"!=R.value.substring(0,5)?B.removeAttribute("disabled"):B.setAttribute("disabled","disabled")}z=null!=z?z:!0;var L=b.editor.graph,O=document.createElement("div");
mxUtils.write(O,l);l=document.createElement("div");l.className="geTitle";l.style.backgroundColor="transparent";l.style.borderColor="transparent";l.style.whiteSpace="nowrap";l.style.textOverflow="clip";l.style.cursor="default";l.style.paddingRight="20px";var R=document.createElement("input");R.setAttribute("value",n);R.setAttribute("type","text");R.setAttribute("spellcheck","false");R.setAttribute("autocorrect","off");R.setAttribute("autocomplete","off");R.setAttribute("autocapitalize","off");R.style.marginTop=
"6px";R.style.width=(Graph.fileSupport?460:340)-20+"px";R.style.backgroundImage="url('"+Editor.crossImage+"')";R.style.backgroundRepeat="no-repeat";R.style.backgroundPosition="100% 50%";R.style.paddingRight="14px";n=document.createElement("div");n.setAttribute("title",mxResources.get("reset"));n.style.position="relative";n.style.left="-16px";n.style.width="12px";n.style.height="14px";n.style.cursor="pointer";n.style.display="inline-block";n.style.top="3px";n.style.background="url('"+b.editor.transparentImage+
"')";mxEvent.addListener(n,"click",function(){R.value="";R.focus()});l.appendChild(R);l.appendChild(n);O.appendChild(l);var c=E,d,k,m=function(D,J,F,T){var W="data:"==D.substring(0,5);!b.isOffline()||W&&"undefined"===typeof chrome?0<D.length&&b.spinner.spin(document.body,mxResources.get("inserting"))?b.loadImage(D,function(p){b.spinner.stop();b.hideDialog();var u=!1===T?1:null!=J&&null!=F?Math.max(J/p.width,F/p.height):Math.min(1,Math.min(520/p.width,520/p.height));z&&(D=b.convertDataUri(D));f(D,
@@ -12579,10 +12585,10 @@ if(Graph.fileSupport){R.setAttribute("placeholder",mxResources.get("dragImagesHe
0,0,b.maxImageSize,function(W,p,u,G,I,H,g,t){q(W,t)},function(){},function(W){return"image/"==W.type.substring(0,6)},function(W){for(var p=0;p<W.length;p++)W[p]()},!mxEvent.isControlDown(F),null,null,!0);else if(0<=mxUtils.indexOf(F.dataTransfer.types,"text/uri-list")){var T=F.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)($|\?)/i.test(T)&&q(decodeURIComponent(T))}F.stopPropagation();F.preventDefault()}),!1)}};E=document.createElement("div");E.style.marginTop="14px";E.style.textAlign=
"center";n=mxUtils.button(mxResources.get("cancel"),function(){b.spinner.stop();b.hideDialog()});n.className="geBtn";b.editor.cancelFirst&&E.appendChild(n);ImageDialog.filePicked=function(D){D.action==google.picker.Action.PICKED&&null!=D.docs[0].thumbnails&&(D=D.docs[0].thumbnails[D.docs[0].thumbnails.length-1],null!=D&&(R.value=D.url));R.focus()};if(Graph.fileSupport){if(null==b.imgDlgFileInputElt){var v=document.createElement("input");v.setAttribute("multiple","multiple");v.setAttribute("type",
"file");mxEvent.addListener(v,"change",function(D){null!=v.files&&(b.importFiles(v.files,0,0,b.maxImageSize,function(J,F,T,W,p,u){q(J)},function(){},function(J){return"image/"==J.type.substring(0,6)},function(J){for(var F=0;F<J.length;F++)J[F]()},!0),v.type="",v.type="file",v.value="")});v.style.display="none";document.body.appendChild(v);b.imgDlgFileInputElt=v}l=mxUtils.button(mxResources.get("open"),function(){b.imgDlgFileInputElt.click()});l.className="geBtn";E.appendChild(l)}mxEvent.addListener(R,
-"keypress",function(D){13==D.keyCode&&q(R.value)});var A=mxUtils.button(mxResources.get("crop"),function(){var D=new CropImageDialog(b,R.value,c,function(J,F,T){c=J;d=F;k=T});b.showDialog(D.container,380,390,!0,!0,null,null,null,new mxRectangle(0,0,440,450))});y&&(A.className="geBtn",E.appendChild(A));var C=mxUtils.button(mxResources.get("embed"),function(){if("data:"!=R.value.substring(0,5)&&b.spinner.spin(document.body,mxResources.get("loading"))){var D=b.editor.createImageUrlConverter().convert(R.value),
+"keypress",function(D){13==D.keyCode&&q(R.value)});var A=mxUtils.button(mxResources.get("crop"),function(){var D=new CropImageDialog(b,R.value,c,function(J,F,T){c=J;d=F;k=T});b.showDialog(D.container,380,390,!0,!0,null,null,null,new mxRectangle(0,0,440,450))});y&&(A.className="geBtn",E.appendChild(A));var B=mxUtils.button(mxResources.get("embed"),function(){if("data:"!=R.value.substring(0,5)&&b.spinner.spin(document.body,mxResources.get("loading"))){var D=b.editor.createImageUrlConverter().convert(R.value),
J=new Image;J.onload=function(){b.editor.convertImageToDataUri(D,function(F){b.confirmImageResize(function(T){b.resizeImage(J,F,mxUtils.bind(this,function(W,p,u){b.spinner.stop();null!=W&&W.length<b.maxImageBytes?(R.value=W,M()):b.handleError({message:mxResources.get("imageTooBig")})}),T,b.maxImageSize)},J.width>b.maxImageSize||J.height>b.maxImageSize||F.length>b.maxImageBytes)},mxUtils.bind(this,function(){b.handleError({message:mxResources.get("fileNotFound")})}))};J.onerror=function(){b.spinner.stop();
-b.handleError({message:mxResources.get("fileNotFound")})};J.src=D}});C.className="geBtn";mxEvent.addListener(R,"change",function(D){c=null;M()});M();E.appendChild(C);y=mxUtils.button(mxResources.get("apply"),function(){q(R.value)});y.className="geBtn gePrimaryBtn";E.appendChild(y);b.editor.cancelFirst||E.appendChild(n);Graph.fileSupport&&(E.style.marginTop="120px",O.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",O.style.backgroundPosition="center 65%",O.style.backgroundRepeat="no-repeat",
-y=document.createElement("div"),y.style.position="absolute",y.style.width="420px",y.style.top="58%",y.style.textAlign="center",y.style.fontSize="18px",y.style.color="#a0c3ff",mxUtils.write(y,mxResources.get("dragImagesHere")),O.appendChild(y));O.appendChild(E);this.container=O},LinkDialog=function(b,l,n,f,x,z,y){function E(D,J){var F=document.createElement("option");mxUtils.write(F,mxResources.get(D));F.value=D;A.appendChild(F);C[D]=J}var M=document.createElement("div");M.style.height="100%";mxUtils.write(M,
+b.handleError({message:mxResources.get("fileNotFound")})};J.src=D}});B.className="geBtn";mxEvent.addListener(R,"change",function(D){c=null;M()});M();E.appendChild(B);y=mxUtils.button(mxResources.get("apply"),function(){q(R.value)});y.className="geBtn gePrimaryBtn";E.appendChild(y);b.editor.cancelFirst||E.appendChild(n);Graph.fileSupport&&(E.style.marginTop="120px",O.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",O.style.backgroundPosition="center 65%",O.style.backgroundRepeat="no-repeat",
+y=document.createElement("div"),y.style.position="absolute",y.style.width="420px",y.style.top="58%",y.style.textAlign="center",y.style.fontSize="18px",y.style.color="#a0c3ff",mxUtils.write(y,mxResources.get("dragImagesHere")),O.appendChild(y));O.appendChild(E);this.container=O},LinkDialog=function(b,l,n,f,x,z,y){function E(D,J){var F=document.createElement("option");mxUtils.write(F,mxResources.get(D));F.value=D;A.appendChild(F);B[D]=J}var M=document.createElement("div");M.style.height="100%";mxUtils.write(M,
mxResources.get("editLink")+":");var L=document.createElement("div");L.className="geUrlLinkContainer";L.style.backgroundColor="transparent";L.style.borderColor="transparent";L.style.whiteSpace="nowrap";L.style.textOverflow="clip";L.style.cursor="default";var O=document.createElement("input");O.setAttribute("placeholder",mxResources.get("dragUrlsHere"));O.setAttribute("type","text");O.style.marginTop="6px";O.style.width="414px";O.style.boxSizing="border-box";O.style.backgroundRepeat="no-repeat";O.style.backgroundPosition=
"100% 50%";O.style.paddingRight="16px";O.style.marginBottom="4px";var R=document.createElement("div");R.setAttribute("title",mxResources.get("reset"));R.style.backgroundImage="url("+Editor.crossImage+")";R.className="geAdaptiveAsset";R.style.display="inline-block";R.style.position="relative";R.style.top="3px";R.style.left="-16px";R.style.width="12px";R.style.height="14px";R.style.cursor="pointer";mxEvent.addListener(R,"click",function(){O.value="";O.focus()});var c=document.createElement("input");
c.style.cssText="margin-right:8px;margin-bottom:8px;";c.setAttribute("value","url");c.setAttribute("type","radio");c.setAttribute("name","geLinkDialogOption");var d=document.createElement("input");d.style.cssText="margin-right:8px;margin-bottom:8px;";d.setAttribute("value","url");d.setAttribute("type","radio");d.setAttribute("name","geLinkDialogOption");var k=document.createElement("select");k.style.width="414px";var m=document.createElement("input");m.setAttribute("type","checkbox");m.style.margin=
@@ -12592,65 +12598,65 @@ x=!1;for(z=0;z<b.pages.length;z++)R=document.createElement("option"),mxUtils.wri
mxClient.IS_FF||5<=document.documentMode?O.select():document.execCommand("selectAll",!1,null));mxEvent.addListener(k,"focus",function(){c.removeAttribute("checked");d.setAttribute("checked","checked");d.checked=!0});mxEvent.addListener(O,"focus",function(){d.removeAttribute("checked");c.setAttribute("checked","checked");c.checked=!0});if(Graph.fileSupport){var D=M.parentNode,J=null;mxEvent.addListener(D,"dragleave",function(F){null!=J&&(J.parentNode.removeChild(J),J=null);F.stopPropagation();F.preventDefault()});
mxEvent.addListener(D,"dragover",mxUtils.bind(this,function(F){null==J&&(J=b.highlightElement(D));F.stopPropagation();F.preventDefault()}));mxEvent.addListener(D,"drop",mxUtils.bind(this,function(F){try{null!=J&&(J.parentNode.removeChild(J),J=null),0<=mxUtils.indexOf(F.dataTransfer.types,"text/uri-list")&&(O.value=decodeURIComponent(F.dataTransfer.getData("text/uri-list")),c.setAttribute("checked","checked"),c.checked=!0,v.click())}catch(T){b.handleError(T)}F.stopPropagation();F.preventDefault()}),
!1)}};n=document.createElement("div");n.style.marginTop="16px";n.style.textAlign="right";b.isOffline()||n.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/custom-links"));L=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});L.style.verticalAlign="middle";L.className="geBtn";b.editor.cancelFirst&&n.appendChild(L);LinkDialog.selectedDocs=null;LinkDialog.filePicked=function(D){if(D.action==google.picker.Action.PICKED){LinkDialog.selectedDocs=D.docs;var J=D.docs[0].url;"application/mxe"==
-D.docs[0].mimeType||null!=D.docs[0].mimeType&&"application/vnd.jgraph."==D.docs[0].mimeType.substring(0,23)?J="https://app.diagrams.net/#G"+D.docs[0].id:"application/vnd.google-apps.folder"==D.docs[0].mimeType&&(J="https://drive.google.com/#folders/"+D.docs[0].id);O.value=J;O.focus()}else LinkDialog.selectedDocs=null;O.focus()};var A=document.createElement("select");A.className="geBtn";A.style.position="relative";A.style.top="1px";A.style.maxWidth="120px";var C={};x=document.createElement("option");
+D.docs[0].mimeType||null!=D.docs[0].mimeType&&"application/vnd.jgraph."==D.docs[0].mimeType.substring(0,23)?J="https://app.diagrams.net/#G"+D.docs[0].id:"application/vnd.google-apps.folder"==D.docs[0].mimeType&&(J="https://drive.google.com/#folders/"+D.docs[0].id);O.value=J;O.focus()}else LinkDialog.selectedDocs=null;O.focus()};var A=document.createElement("select");A.className="geBtn";A.style.position="relative";A.style.top="1px";A.style.maxWidth="120px";var B={};x=document.createElement("option");
mxUtils.write(x,mxResources.get("select")+"...");x.value="";A.appendChild(x);"undefined"!=typeof google&&"undefined"!=typeof google.picker&&null!=b.drive&&E("googleDrive",function(){b.spinner.spin(document.body,mxResources.get("authorizing"))&&b.drive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();if(null==b.linkPicker){var D=b.drive.createLinkPicker();b.linkPicker=D.setCallback(function(J){LinkDialog.filePicked(J)}).build()}b.linkPicker.setVisible(!0)}))});"undefined"!=typeof Dropbox&&
"undefined"!=typeof Dropbox.choose&&E("dropbox",function(){Dropbox.choose({linkType:"direct",cancel:function(){},success:function(D){O.value=D[0].link;O.focus()}})});null!=b.oneDrive&&E("oneDrive",function(){b.oneDrive.pickFile(function(D,J){null!=J&&null!=J.value&&0<J.value.length&&(O.value=J.value[0].webUrl,O.focus())},!0)});null!=b.gitHub&&E("github",function(){b.gitHub.pickFile(function(D){if(null!=D){D=D.split("/");var J=D[0],F=D[1],T=D[2];D=D.slice(3,D.length).join("/");O.value="https://github.com/"+
-J+"/"+F+"/blob/"+T+"/"+D;O.focus()}})});null!=b.gitLab&&E("gitlab",function(){b.gitLab.pickFile(function(D){if(null!=D){D=D.split("/");var J=D[0],F=D[1],T=D[2];D=D.slice(3,D.length).join("/");O.value=DRAWIO_GITLAB_URL+"/"+J+"/"+F+"/blob/"+T+"/"+D;O.focus()}})});1<A.children.length&&(n.appendChild(A),mxEvent.addListener(A,"change",function(D){null!=C[A.value]&&(C[A.value](),A.value="")}));mxEvent.addListener(O,"keypress",function(D){13==D.keyCode&&v.click()});n.appendChild(v);b.editor.cancelFirst||
+J+"/"+F+"/blob/"+T+"/"+D;O.focus()}})});null!=b.gitLab&&E("gitlab",function(){b.gitLab.pickFile(function(D){if(null!=D){D=D.split("/");var J=D[0],F=D[1],T=D[2];D=D.slice(3,D.length).join("/");O.value=DRAWIO_GITLAB_URL+"/"+J+"/"+F+"/blob/"+T+"/"+D;O.focus()}})});1<A.children.length&&(n.appendChild(A),mxEvent.addListener(A,"change",function(D){null!=B[A.value]&&(B[A.value](),A.value="")}));mxEvent.addListener(O,"keypress",function(D){13==D.keyCode&&v.click()});n.appendChild(v);b.editor.cancelFirst||
n.appendChild(L);M.appendChild(n);this.container=M},RevisionDialog=function(b,l,n){var f=document.createElement("div"),x=document.createElement("h3");x.style.marginTop="3px";mxUtils.write(x,mxResources.get("revisionHistory"));f.appendChild(x);x=document.createElement("div");x.style.position="absolute";x.style.overflow="auto";x.style.width="170px";x.style.height="378px";f.appendChild(x);var z=document.createElement("div");z.style.position="absolute";z.style.left="200px";z.style.width="470px";z.style.height=
"376px";z.style.overflow="hidden";z.style.borderWidth="1px";z.style.borderStyle="solid";var y=document.createElement("div");y.style.position="absolute";y.style.display="none";y.style.textAlign="center";y.style.padding="8px";y.style.borderRadius="8px";y.style.left="50%";y.style.top="50%";y.style.whiteSpace="nowrap";y.style.transform="translate(-50%, -50%)";y.style.background="inherit";y.style.border="1px solid";z.appendChild(y);mxEvent.disableContextMenu(z);f.appendChild(z);var E=new Graph(z);E.setTooltips(!1);
E.setEnabled(!1);E.setPanning(!0);E.panningHandler.ignoreCell=!0;E.panningHandler.useLeftButtonForPanning=!0;E.minFitScale=null;E.maxFitScale=null;E.centerZoom=!0;var M=0,L=null,O=0,R=E.getGlobalVariable;E.getGlobalVariable=function(X){return"page"==X&&null!=L&&null!=L[O]?L[O].getAttribute("name"):"pagenumber"==X?O+1:"pagecount"==X?null!=L?L.length:1:R.apply(this,arguments)};E.getLinkForCell=function(){return null};for(var c=new Spinner({lines:11,length:15,width:6,radius:10,corners:1,rotate:0,direction:1,
-color:"light-dark(#000000, #C0C0C0)",speed:1.4,trail:60,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2E9,top:"50%",left:"50%"}),d=b.getCurrentFile(),k=b.getXmlFileData(!0,!1,!0).getElementsByTagName("diagram"),m={},q=0;q<k.length;q++)m[k[q].getAttribute("id")]=k[q];var v=null,A=null,C=null,D=null,J=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){null!=C&&E.zoomIn()},20);J.setAttribute("disabled","disabled");var F=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),
-function(){null!=C&&E.zoomOut()},20);F.setAttribute("disabled","disabled");var T=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){null!=C&&(1==E.view.scale?(E.maxFitScale=8,E.fit(8)):E.zoomActual(),E.center())},20);T.setAttribute("disabled","disabled");var W=b.createToolbarButton(Editor.compareImage,mxResources.get("compare"));W.setAttribute("disabled","disabled");var p=b.createToolbarButton(Editor.thinDataImage,mxResources.get("merge"));p.setAttribute("disabled","disabled");
+color:"light-dark(#000000, #C0C0C0)",speed:1.4,trail:60,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2E9,top:"50%",left:"50%"}),d=b.getCurrentFile(),k=b.getXmlFileData(!0,!1,!0).getElementsByTagName("diagram"),m={},q=0;q<k.length;q++)m[k[q].getAttribute("id")]=k[q];var v=null,A=null,B=null,D=null,J=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){null!=B&&E.zoomIn()},20);J.setAttribute("disabled","disabled");var F=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),
+function(){null!=B&&E.zoomOut()},20);F.setAttribute("disabled","disabled");var T=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){null!=B&&(1==E.view.scale?(E.maxFitScale=8,E.fit(8)):E.zoomActual(),E.center())},20);T.setAttribute("disabled","disabled");var W=b.createToolbarButton(Editor.compareImage,mxResources.get("compare"));W.setAttribute("disabled","disabled");var p=b.createToolbarButton(Editor.thinDataImage,mxResources.get("merge"));p.setAttribute("disabled","disabled");
var u=z.cloneNode(!1);u.style.pointerEvent="none";z.parentNode.appendChild(u);var G=new Graph(u);G.setTooltips(!1);G.setEnabled(!1);G.setPanning(!0);G.panningHandler.ignoreCell=!0;G.panningHandler.useLeftButtonForPanning=!0;G.minFitScale=null;G.maxFitScale=null;G.centerZoom=!0;var I=document.createElement("div");I.style.textAlign="left";I.style.color="gray";I.style.backgroundColor="transparent";I.style.overflow="hidden";I.style.textOverflow="ellipsis";I.style.whiteSpace="nowrap";I.style.cursor="default";
I.style.height="100%";I.style.display="inline-flex";I.style.alignItems="center";I.style.flexGrow="1";mxEvent.addListener(I,"click",function(){var X=mxUtils.getTextContent(I);""!=X&&b.alert(X)});var H=null;mxEvent.addGestureListeners(W,function(X){try{var Z=null!=L[M]?m[L[M].getAttribute("id")]:null;mxUtils.setOpacity(W,20);y.innerText="";if(null==Z)y.style.display="inline-block",mxUtils.write(y,mxResources.get("pageNotFound"));else{H=I.innerHTML;I.innerHTML=mxResources.get("current");z.style.display=
"none";u.style.display="";u.style.backgroundColor=z.style.backgroundColor;var aa=Editor.parseDiagramNode(Z);(new mxCodec(aa.ownerDocument)).decode(aa,G.getModel());G.view.scaleAndTranslate(E.view.scale,E.view.translate.x,E.view.translate.y);G.mathEnabled="1"==aa.getAttribute("math");G.setAdaptiveColors(aa.getAttribute("adaptiveColors"));Editor.MathJaxRender&&G.mathEnabled&&Editor.MathJaxRender(G.container)}}catch(ea){y.style.display="inline-block",y.innerText="",mxUtils.write(y,mxResources.get("pageNotFound")+
-": "+ea.message)}},null,function(){mxUtils.setOpacity(W,60);y.style.display="none";y.innerText="";"none"==z.style.display&&(z.style.display="",I.innerHTML=H,u.style.display="none")});mxEvent.addListener(p,"click",mxUtils.bind(this,function(X){if(null!=C){X=b.getPagesForNode(C.documentElement);var Z=b.diffPages(b.pages,X);X=new TextareaDialog(b,mxResources.get("merge")+":",JSON.stringify(Z,null,2),function(aa){try{if(0<aa.length&&b.editor.graph.isEnabled()){var ea=[JSON.parse(aa)];b.confirm(mxResources.get("areYouSure"),
+": "+ea.message)}},null,function(){mxUtils.setOpacity(W,60);y.style.display="none";y.innerText="";"none"==z.style.display&&(z.style.display="",I.innerHTML=H,u.style.display="none")});mxEvent.addListener(p,"click",mxUtils.bind(this,function(X){if(null!=B){X=b.getPagesForNode(B.documentElement);var Z=b.diffPages(b.pages,X);X=new TextareaDialog(b,mxResources.get("merge")+":",JSON.stringify(Z,null,2),function(aa){try{if(0<aa.length&&b.editor.graph.isEnabled()){var ea=[JSON.parse(aa)];b.confirm(mxResources.get("areYouSure"),
function(){try{d.patch(ea,null,!0,!0),b.hideDialog(),b.hideDialog()}catch(ha){b.handleError(ha)}})}else b.hideDialog()}catch(ha){b.handleError(ha)}},null,null,null,null,function(aa,ea){if(null!=Z[EditorUi.DIFF_UPDATE]){var ha=document.createElement("select"),ba=document.createElement("option");mxUtils.write(ba,mxResources.get("allPages"));ba.setAttribute("value","allPages");ha.appendChild(ba);for(var ia in Z[EditorUi.DIFF_UPDATE]){ba=document.createElement("option");var la=b.getPageById(ia);null!=
la&&(mxUtils.write(ba,la.getName()),ba.setAttribute("value","page-"+ia),ha.appendChild(ba))}ha.style.marginRight="8px";ha.style.order="-1";mxEvent.addListener(ha,"change",function(ka){ka=null;if("allPages"!=ha.value){var pa=ha.value.substring(5);null!=Z[EditorUi.DIFF_UPDATE][pa]&&(ka={},ka[EditorUi.DIFF_UPDATE]={},ka[EditorUi.DIFF_UPDATE][pa]=Z[EditorUi.DIFF_UPDATE][pa])}ea.value=JSON.stringify(null==ka?Z:ka,null,2)});2<ha.children.length&&aa.appendChild(ha)}},!0,null,mxResources.get(b.editor.graph.isEnabled()?
-"merge":"close"));b.showDialog(X.container,620,460,!0,!0);X.init()}}));var g=mxUtils.button(mxResources.get("restore"),function(X){null!=C&&null!=D&&b.confirm(mxResources.get("areYouSure"),function(){null!=n?n(D):b.spinner.spin(document.body,mxResources.get("restoring"))&&(g.setAttribute("disabled","disabled"),d.save(!0,function(Z){b.spinner.stop();g.removeAttribute("disabled");b.replaceFileData(D);b.hideDialog()},function(Z){b.spinner.stop();g.removeAttribute("disabled");b.clearStatus();b.handleError(Z,
-null!=Z?mxResources.get("errorSavingFile"):null)}))})});g.className="geBtn gePrimaryBtn";g.setAttribute("disabled","disabled");var t=document.createElement("select");t.setAttribute("disabled","disabled");t.style.userSelect="none";t.style.maxWidth="100px";t.style.marginLeft="10px";t.style.display="none";var B=null;mxEvent.addListener(t,"change",function(X){null!=B&&(B(X),mxEvent.consume(X))});var K=mxUtils.button(mxResources.get("open"),function(){null!=C&&(window.openFile=new OpenFile(function(){window.openFile=
-null}),window.openFile.setData(mxUtils.getXml(C.documentElement)),b.openLink(b.getUrl(),null,!0))});K.className="geBtn";K.setAttribute("disabled","disabled");var Q=mxUtils.button(mxResources.get("createRevision"),function(){b.actions.get("save").funct(!1)});Q.className="geBtn";Q.setAttribute("disabled","disabled");null!=n&&(K.style.display="none");k=document.createElement("div");k.style.position="absolute";k.style.top="482px";k.style.right="28px";k.style.left="32px";k.style.justifyContent="end";k.style.display=
+"merge":"close"));b.showDialog(X.container,620,460,!0,!0);X.init()}}));var g=mxUtils.button(mxResources.get("restore"),function(X){null!=B&&null!=D&&b.confirm(mxResources.get("areYouSure"),function(){null!=n?n(D):b.spinner.spin(document.body,mxResources.get("restoring"))&&(g.setAttribute("disabled","disabled"),d.save(!0,function(Z){b.spinner.stop();g.removeAttribute("disabled");b.replaceFileData(D);b.hideDialog()},function(Z){b.spinner.stop();g.removeAttribute("disabled");b.clearStatus();b.handleError(Z,
+null!=Z?mxResources.get("errorSavingFile"):null)}))})});g.className="geBtn gePrimaryBtn";g.setAttribute("disabled","disabled");var t=document.createElement("select");t.setAttribute("disabled","disabled");t.style.userSelect="none";t.style.maxWidth="100px";t.style.marginLeft="10px";t.style.display="none";var C=null;mxEvent.addListener(t,"change",function(X){null!=C&&(C(X),mxEvent.consume(X))});var K=mxUtils.button(mxResources.get("open"),function(){null!=B&&(window.openFile=new OpenFile(function(){window.openFile=
+null}),window.openFile.setData(mxUtils.getXml(B.documentElement)),b.openLink(b.getUrl(),null,!0))});K.className="geBtn";K.setAttribute("disabled","disabled");var Q=mxUtils.button(mxResources.get("createRevision"),function(){b.actions.get("save").funct(!1)});Q.className="geBtn";Q.setAttribute("disabled","disabled");null!=n&&(K.style.display="none");k=document.createElement("div");k.style.position="absolute";k.style.top="482px";k.style.right="28px";k.style.left="32px";k.style.justifyContent="end";k.style.display=
"flex";var S=document.createElement("div");S.className="geToolbarContainer";S.style.backgroundColor="transparent";S.style.left="32px";S.style.right="32px";S.style.border="none";S.style.top="442px";var U=null;if(null!=l&&0<l.length){z.style.cursor="move";var N=document.createElement("table");N.style.borderWidth="1px";N.style.borderStyle="solid";N.style.borderCollapse="collapse";N.style.borderSpacing="0px";N.style.width="100%";var P=document.createElement("tbody"),V=(new Date).toDateString();null!=
b.currentPage&&null!=b.pages&&(M=mxUtils.indexOf(b.pages,b.currentPage));for(q=l.length-1;0<=q;q--){var Y=function(X){var Z=new Date(X.modifiedDate),aa=null;if(0<=Z.getTime()){var ea=function(ba){c.stop();y.innerText="";var ia=mxUtils.parseXml(ba),la=b.editor.extractGraphModel(ia.documentElement,!0);if(null!=la){var ka=function(wa){null!=wa&&(wa=pa(Editor.parseDiagramNode(wa)));return wa},pa=function(wa){var va=wa.getAttribute("background");if(null==va||""==va||va==mxConstants.NONE)va=E.defaultPageBackgroundColor;
-z.style.backgroundColor=mxUtils.getLightDarkColor(va);(new mxCodec(wa.ownerDocument)).decode(wa,E.getModel());E.maxFitScale=1;E.fit(8);E.center();E.mathEnabled="1"==wa.getAttribute("math");E.setAdaptiveColors(wa.getAttribute("adaptiveColors"));Editor.MathJaxRender&&E.mathEnabled&&Editor.MathJaxRender(E.container);return wa};t.style.display="none";t.innerText="";C=ia;D=ba;L=parseSelectFunction=null;O=0;if("mxfile"==la.nodeName){ia=la.getElementsByTagName("diagram");L=[];for(ba=0;ba<ia.length;ba++)L.push(ia[ba]);
+z.style.backgroundColor=mxUtils.getLightDarkColor(va);(new mxCodec(wa.ownerDocument)).decode(wa,E.getModel());E.maxFitScale=1;E.fit(8);E.center();E.mathEnabled="1"==wa.getAttribute("math");E.setAdaptiveColors(wa.getAttribute("adaptiveColors"));Editor.MathJaxRender&&E.mathEnabled&&Editor.MathJaxRender(E.container);return wa};t.style.display="none";t.innerText="";B=ia;D=ba;L=parseSelectFunction=null;O=0;if("mxfile"==la.nodeName){ia=la.getElementsByTagName("diagram");L=[];for(ba=0;ba<ia.length;ba++)L.push(ia[ba]);
O=Math.min(M,L.length-1);0<L.length&&ka(L[O]);if(1<L.length)for(t.removeAttribute("disabled"),t.style.display="",ba=0;ba<L.length;ba++){ia=document.createElement("option");ia.setAttribute("title",Ba+" ("+L[ba].getAttribute("id")+")");ia.setAttribute("value",ba);var Ba=L[ba].getAttribute("name")||mxResources.get("pageWithNumber",[ba+1]);la=b.getPageById(L[ba].getAttribute("id"));var sa="";if(null!=la){var ja=new DiagramPage(L[ba]);b.getHashValueForPages([la])!=b.getHashValueForPages([ja])&&(sa=" (M)")}else sa=
-" (X)";mxUtils.write(ia,Ba+sa);ba==O&&ia.setAttribute("selected","selected");t.appendChild(ia)}B=function(){try{var wa=parseInt(t.value);O=M=wa;ka(L[wa])}catch(va){t.value=M,b.handleError(va)}}}else pa(la);Ba=X.lastModifyingUserName;null!=Ba&&20<Ba.length&&(Ba=Ba.substring(0,20)+"...");I.innerText="";mxUtils.write(I,(null!=Ba?Ba+" ":"")+Z.toLocaleDateString()+" "+Z.toLocaleTimeString());I.setAttribute("title",aa.getAttribute("title"));J.removeAttribute("disabled");F.removeAttribute("disabled");T.removeAttribute("disabled");
+" (X)";mxUtils.write(ia,Ba+sa);ba==O&&ia.setAttribute("selected","selected");t.appendChild(ia)}C=function(){try{var wa=parseInt(t.value);O=M=wa;ka(L[wa])}catch(va){t.value=M,b.handleError(va)}}}else pa(la);Ba=X.lastModifyingUserName;null!=Ba&&20<Ba.length&&(Ba=Ba.substring(0,20)+"...");I.innerText="";mxUtils.write(I,(null!=Ba?Ba+" ":"")+Z.toLocaleDateString()+" "+Z.toLocaleTimeString());I.setAttribute("title",aa.getAttribute("title"));J.removeAttribute("disabled");F.removeAttribute("disabled");T.removeAttribute("disabled");
W.removeAttribute("disabled");p.removeAttribute("disabled");null!=d&&d.isRestricted()||(b.editor.graph.isEnabled()&&g.removeAttribute("disabled"),K.removeAttribute("disabled"),Q.removeAttribute("disabled"));mxUtils.setOpacity(J,60);mxUtils.setOpacity(F,60);mxUtils.setOpacity(T,60);mxUtils.setOpacity(W,60);mxUtils.setOpacity(p,60)}else t.style.display="none",t.innerText="",I.innerText="",y.innerText="",mxUtils.write(I,mxResources.get("errorLoadingFile")),mxUtils.write(y,mxResources.get("errorLoadingFile"))};
aa=document.createElement("tr");aa.style.borderBottomWidth="1px";aa.style.borderBottomStyle="solid";aa.style.fontSize="12px";aa.style.cursor="pointer";var ha=document.createElement("td");ha.style.padding="6px";ha.style.whiteSpace="nowrap";X==l[l.length-1]?mxUtils.write(ha,mxResources.get("current")):Z.toDateString()===V?mxUtils.write(ha,Z.toLocaleTimeString()):mxUtils.write(ha,Z.toLocaleDateString()+" "+Z.toLocaleTimeString());aa.appendChild(ha);aa.setAttribute("title",Z.toLocaleDateString()+" "+
-Z.toLocaleTimeString()+(null!=X.fileSize?" "+b.formatFileSize(parseInt(X.fileSize)):"")+(null!=X.lastModifyingUserName?" "+X.lastModifyingUserName:""));mxEvent.addListener(aa,"click",function(ba){A!=X&&(c.stop(),null!=v&&(v.style.backgroundColor=""),A=X,v=aa,v.style.backgroundColor="light-dark(#ebf2f9, #000000)",D=C=null,I.removeAttribute("title"),I.innerText=mxResources.get("loading")+"...",z.style.backgroundColor=E.defaultPageBackgroundColor,y.innerText="",E.getModel().clear(),g.setAttribute("disabled",
+Z.toLocaleTimeString()+(null!=X.fileSize?" "+b.formatFileSize(parseInt(X.fileSize)):"")+(null!=X.lastModifyingUserName?" "+X.lastModifyingUserName:""));mxEvent.addListener(aa,"click",function(ba){A!=X&&(c.stop(),null!=v&&(v.style.backgroundColor=""),A=X,v=aa,v.style.backgroundColor="light-dark(#ebf2f9, #000000)",D=B=null,I.removeAttribute("title"),I.innerText=mxResources.get("loading")+"...",z.style.backgroundColor=E.defaultPageBackgroundColor,y.innerText="",E.getModel().clear(),g.setAttribute("disabled",
"disabled"),J.setAttribute("disabled","disabled"),F.setAttribute("disabled","disabled"),T.setAttribute("disabled","disabled"),W.setAttribute("disabled","disabled"),p.setAttribute("disabled","disabled"),K.setAttribute("disabled","disabled"),t.setAttribute("disabled","disabled"),mxUtils.setOpacity(J,20),mxUtils.setOpacity(F,20),mxUtils.setOpacity(T,20),mxUtils.setOpacity(W,20),mxUtils.setOpacity(p,20),c.spin(z),X.getXml(function(ia){if(A==X)try{ea(ia)}catch(la){I.innerText=mxResources.get("error")+
": "+la.message}},function(ia){c.stop();t.style.display="none";t.innerText="";I.innerText="";mxUtils.write(I,mxResources.get("errorLoadingFile"));mxUtils.write(y,mxResources.get("errorLoadingFile"))}),mxEvent.consume(ba))});mxEvent.addListener(aa,"dblclick",function(ba){K.click();window.getSelection?window.getSelection().removeAllRanges():document.selection&&document.selection.empty();mxEvent.consume(ba)},!1);P.appendChild(aa)}return aa}(l[q]);null!=Y&&q==l.length-1&&(U=Y)}N.appendChild(P);x.appendChild(N)}else null==
d||null==b.drive&&d.constructor==window.DriveFile||null==b.dropbox&&d.constructor==window.DropboxFile?(z.style.display="none",S.style.display="none",mxUtils.write(x,mxResources.get("notAvailable"))):(z.style.display="none",S.style.display="none",mxUtils.write(x,mxResources.get("noRevisions")));this.init=function(){null!=U&&U.click()};x=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});x.className="geBtn";S.appendChild(I);S.appendChild(W);S.appendChild(F);S.appendChild(T);S.appendChild(J);
S.appendChild(t);S.appendChild(p);b.editor.cancelFirst&&k.appendChild(x);k.appendChild(K);null!=d&&d.constructor==DriveFile&&k.appendChild(Q);k.appendChild(g);b.editor.cancelFirst||k.appendChild(x);f.appendChild(k);f.appendChild(S);this.container=f},DraftDialog=function(b,l,n,f,x,z,y,E,M){var L=document.createElement("div"),O=document.createElement("div");O.style.marginTop="0px";O.style.whiteSpace="nowrap";O.style.overflow="auto";O.style.lineHeight="normal";mxUtils.write(O,l);L.appendChild(O);var R=
-document.createElement("select"),c=mxUtils.bind(this,function(){"-1"==R.value?(R.value=R.options[0].value,c(),b.confirm(mxResources.get("areYouSure"),null,mxUtils.bind(this,function(){var W=this,p;return $jscomp.asyncExecutePromiseGeneratorProgram(function(u){for(p=0;p<M.length;p++)x.apply(W,[p,mxUtils.bind(W,function(){})]);b.hideDialog(!0);u.jumpToEnd()})}),mxResources.get("no"),mxResources.get("yes"))):(A=mxUtils.parseXml(M[R.value].data),C=b.editor.extractGraphModel(A.documentElement,!0),D=0,
+document.createElement("select"),c=mxUtils.bind(this,function(){"-1"==R.value?(R.value=R.options[0].value,c(),b.confirm(mxResources.get("areYouSure"),null,mxUtils.bind(this,function(){var W=this,p;return $jscomp.asyncExecutePromiseGeneratorProgram(function(u){for(p=0;p<M.length;p++)x.apply(W,[p,mxUtils.bind(W,function(){})]);b.hideDialog(!0);u.jumpToEnd()})}),mxResources.get("no"),mxResources.get("yes"))):(A=mxUtils.parseXml(M[R.value].data),B=b.editor.extractGraphModel(A.documentElement,!0),D=0,
this.init())});if(null!=M){R.style.marginLeft="4px";for(l=0;l<M.length;l++){var d=document.createElement("option");d.setAttribute("value",l);var k=new Date(M[l].created),m=new Date(M[l].modified);mxUtils.write(d,k.toLocaleDateString()+" "+k.toLocaleTimeString()+" - "+(k.toDateString(),m.toDateString(),m.toLocaleDateString())+" "+m.toLocaleTimeString());R.appendChild(d)}d=document.createElement("option");d.setAttribute("value","-1");mxUtils.write(d,mxResources.get("deleteAll"));R.appendChild(d);O.appendChild(R);
mxEvent.addListener(R,"change",c)}null==n&&(n=M[0].data);var q=document.createElement("div");q.style.position="absolute";q.style.border="1px solid lightGray";q.style.marginTop="10px";q.style.left="40px";q.style.right="40px";q.style.top="46px";q.style.bottom="74px";q.style.overflow="hidden";mxEvent.disableContextMenu(q);L.appendChild(q);var v=new Graph(q);v.setEnabled(!1);v.setPanning(!0);v.shapeBackgroundColor="light-dark(#ffffff, #2a252f)";v.panningHandler.ignoreCell=!0;v.panningHandler.useLeftButtonForPanning=
-!0;v.minFitScale=null;v.maxFitScale=null;v.centerZoom=!0;var A=mxUtils.parseXml(n),C=b.editor.extractGraphModel(A.documentElement,!0),D=0,J=null,F=v.getGlobalVariable;v.getGlobalVariable=function(W){return"page"==W&&null!=J&&null!=J[D]?J[D].getAttribute("name"):"pagenumber"==W?D+1:"pagecount"==W?null!=J?J.length:1:F.apply(this,arguments)};v.getLinkForCell=function(){return null};n=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){v.zoomIn()},20);O=b.createToolbarButton(Editor.zoomOutImage,
+!0;v.minFitScale=null;v.maxFitScale=null;v.centerZoom=!0;var A=mxUtils.parseXml(n),B=b.editor.extractGraphModel(A.documentElement,!0),D=0,J=null,F=v.getGlobalVariable;v.getGlobalVariable=function(W){return"page"==W&&null!=J&&null!=J[D]?J[D].getAttribute("name"):"pagenumber"==W?D+1:"pagecount"==W?null!=J?J.length:1:F.apply(this,arguments)};v.getLinkForCell=function(){return null};n=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){v.zoomIn()},20);O=b.createToolbarButton(Editor.zoomOutImage,
mxResources.get("zoomOut"),function(){v.zoomOut()},20);l=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){1==v.view.scale?(v.maxFitScale=8,v.fit(8)):v.zoomActual();v.center()},20);y=mxUtils.button(y||mxResources.get("discard"),function(){b.confirm(mxResources.get("areYouSure"),null,mxUtils.bind(this,function(){var W=this;return $jscomp.asyncExecutePromiseGeneratorProgram(function(p){x.apply(W,[R.value,mxUtils.bind(W,function(){null!=R.parentNode&&(R.options[R.selectedIndex].parentNode.removeChild(R.options[R.selectedIndex]),
1<R.options.length?(R.value=R.options[0].value,c()):b.hideDialog(!0))})]);p.jumpToEnd()})}),mxResources.get("no"),mxResources.get("yes"))});y.className="geBtn";var T=document.createElement("select");T.style.maxWidth="80px";T.style.position="relative";T.style.top="-2px";T.style.verticalAlign="bottom";T.style.marginRight="6px";T.style.display="none";z=mxUtils.button(z||mxResources.get("edit"),function(){f.apply(this,[R.value])});z.className="geBtn gePrimaryBtn";d=document.createElement("div");d.style.position=
"absolute";d.style.bottom="30px";d.style.right="40px";d.style.textAlign="right";k=document.createElement("div");k.className="geToolbarContainer";k.style.cssText="box-shadow:none !important;background-color:transparent;padding:2px;border-style:none !important;bottom:30px;";this.init=function(){function W(I){if(null!=I){var H=I.getAttribute("background");if(null==H||""==H||H==mxConstants.NONE)H="light-dark(#ffffff, transparent)";q.style.backgroundColor=H;(new mxCodec(I.ownerDocument)).decode(I,v.getModel());
-v.maxFitScale=1;v.fit(8);v.center()}return I}function p(I){null!=I&&(I=W(Editor.parseDiagramNode(I)));return I}mxEvent.addListener(T,"change",function(I){D=parseInt(T.value);p(J[D]);mxEvent.consume(I)});if("mxfile"==C.nodeName){var u=C.getElementsByTagName("diagram");J=[];for(var G=0;G<u.length;G++)J.push(u[G]);0<J.length&&p(J[D]);T.innerText="";if(1<J.length)for(T.style.display="",G=0;G<J.length;G++)u=document.createElement("option"),mxUtils.write(u,J[G].getAttribute("name")||mxResources.get("pageWithNumber",
-[G+1])),u.setAttribute("value",G),G==D&&u.setAttribute("selected","selected"),T.appendChild(u);else T.style.display="none"}else W(C)};k.appendChild(T);k.appendChild(n);k.appendChild(O);k.appendChild(l);n=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});n.className="geBtn";E=null!=E?mxUtils.button(mxResources.get("ignore"),E):null;null!=E&&(E.className="geBtn");b.editor.cancelFirst?(d.appendChild(n),null!=E&&d.appendChild(E),d.appendChild(y),d.appendChild(z)):(d.appendChild(z),
-d.appendChild(y),null!=E&&d.appendChild(E),d.appendChild(n));L.appendChild(d);L.appendChild(k);this.container=L},FindWindow=function(b,l,n,f,x,z){function y(B,K,Q){if("object"===typeof K.value&&null!=K.value.attributes){K=K.value.attributes;for(var S=0;S<K.length;S++)if("label"!=K[S].nodeName){var U=mxUtils.trim(K[S].nodeValue.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();if(null==B&&0<=U.indexOf(Q)||null!=B&&B.test(U))return!0}}return!1}function E(){d?(H.removeAttribute("disabled"),g.removeAttribute("disabled")):
-(H.setAttribute("disabled","disabled"),g.setAttribute("disabled","disabled"));D.value?t.removeAttribute("disabled"):t.setAttribute("disabled","disabled")}function M(B,K,Q){G.innerText="";var S=O.model.getDescendants(O.model.getRoot()),U=D.value.toLowerCase(),N=F.checked?new RegExp(U):null,P=null;m=null;R!=U&&(R=U,c=null,k=!1);var V=null==c;if(0<U.length){if(k){k=!1;for(var Y,X=0;X<b.pages.length;X++)if(b.currentPage==b.pages[X]){Y=X;break}B=(Y+1)%b.pages.length;c=null;do k=!1,S=b.pages[B],O=b.createTemporaryGraph(O.getStylesheet()),
-b.updatePageRoot(S),O.model.setRoot(S.root),B=(B+1)%b.pages.length;while(!M(!0,K,Q)&&B!=Y);c&&(c=null,Q?b.editor.graph.model.execute(new SelectPage(b,S)):b.selectPage(S));k=!1;O=b.editor.graph;return M(!0,K,Q)}for(X=0;X<S.length;X++){Y=O.view.getState(S[X]);K&&(V=V||Y==c);if(null!=Y&&null!=Y.cell.value&&(V||null==P)&&(O.model.isVertex(Y.cell)||O.model.isEdge(Y.cell))){null!=Y.style&&"1"==Y.style.html?(W.innerHTML=O.sanitizeHtml(O.getLabel(Y.cell)),label=mxUtils.extractTextWithWhitespace([W])):label=
+v.maxFitScale=1;v.fit(8);v.center()}return I}function p(I){null!=I&&(I=W(Editor.parseDiagramNode(I)));return I}mxEvent.addListener(T,"change",function(I){D=parseInt(T.value);p(J[D]);mxEvent.consume(I)});if("mxfile"==B.nodeName){var u=B.getElementsByTagName("diagram");J=[];for(var G=0;G<u.length;G++)J.push(u[G]);0<J.length&&p(J[D]);T.innerText="";if(1<J.length)for(T.style.display="",G=0;G<J.length;G++)u=document.createElement("option"),mxUtils.write(u,J[G].getAttribute("name")||mxResources.get("pageWithNumber",
+[G+1])),u.setAttribute("value",G),G==D&&u.setAttribute("selected","selected"),T.appendChild(u);else T.style.display="none"}else W(B)};k.appendChild(T);k.appendChild(n);k.appendChild(O);k.appendChild(l);n=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});n.className="geBtn";E=null!=E?mxUtils.button(mxResources.get("ignore"),E):null;null!=E&&(E.className="geBtn");b.editor.cancelFirst?(d.appendChild(n),null!=E&&d.appendChild(E),d.appendChild(y),d.appendChild(z)):(d.appendChild(z),
+d.appendChild(y),null!=E&&d.appendChild(E),d.appendChild(n));L.appendChild(d);L.appendChild(k);this.container=L},FindWindow=function(b,l,n,f,x,z){function y(C,K,Q){if("object"===typeof K.value&&null!=K.value.attributes){K=K.value.attributes;for(var S=0;S<K.length;S++)if("label"!=K[S].nodeName){var U=mxUtils.trim(K[S].nodeValue.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();if(null==C&&0<=U.indexOf(Q)||null!=C&&C.test(U))return!0}}return!1}function E(){d?(H.removeAttribute("disabled"),g.removeAttribute("disabled")):
+(H.setAttribute("disabled","disabled"),g.setAttribute("disabled","disabled"));D.value?t.removeAttribute("disabled"):t.setAttribute("disabled","disabled")}function M(C,K,Q){G.innerText="";var S=O.model.getDescendants(O.model.getRoot()),U=D.value.toLowerCase(),N=F.checked?new RegExp(U):null,P=null;m=null;R!=U&&(R=U,c=null,k=!1);var V=null==c;if(0<U.length){if(k){k=!1;for(var Y,X=0;X<b.pages.length;X++)if(b.currentPage==b.pages[X]){Y=X;break}C=(Y+1)%b.pages.length;c=null;do k=!1,S=b.pages[C],O=b.createTemporaryGraph(O.getStylesheet()),
+b.updatePageRoot(S),O.model.setRoot(S.root),C=(C+1)%b.pages.length;while(!M(!0,K,Q)&&C!=Y);c&&(c=null,Q?b.editor.graph.model.execute(new SelectPage(b,S)):b.selectPage(S));k=!1;O=b.editor.graph;return M(!0,K,Q)}for(X=0;X<S.length;X++){Y=O.view.getState(S[X]);K&&(V=V||Y==c);if(null!=Y&&null!=Y.cell.value&&(V||null==P)&&(O.model.isVertex(Y.cell)||O.model.isEdge(Y.cell))){null!=Y.style&&"1"==Y.style.html?(W.innerHTML=O.sanitizeHtml(O.getLabel(Y.cell)),label=mxUtils.extractTextWithWhitespace([W])):label=
O.getLabel(Y.cell);label=mxUtils.trim(label.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();var Z=0;K&&z&&Y==c&&(label=label.substr(q),Z=q);var aa=null==J||""==J.value;if(null==N&&(0<=label.indexOf(U)||aa&&y(N,Y.cell,U))||null!=N&&(N.test(label)||aa&&y(N,Y.cell,U)))if(z&&(null!=N?(aa=label.match(N),null!=aa&&0<aa.length&&(m=aa[0].toLowerCase(),q=Z+aa.index+m.length)):(m=U,q=Z+label.indexOf(U)+m.length)),V){P=Y;break}else null==P&&(P=Y)}V=V||Y==c}}if(null!=P){if(X==S.length&&T.checked)return c=
-null,k=!0,M(!0,K,Q);c=P;O.scrollCellToVisible(c.cell);O.isEnabled()&&!O.isCellLocked(c.cell)?Q||O.getSelectionCell()==c.cell&&1==O.getSelectionCount()||O.setSelectionCell(c.cell):O.highlightCell(c.cell)}else{if(!B&&T.checked)return k=!0,M(!0,K,Q);O.isEnabled()&&!Q&&O.clearSelection()}d=null!=P;z&&!B&&E();return 0==U.length||null!=P}var L=b.actions.get("findReplace"),O=b.editor.graph,R=null,c=null,d=!1,k=!1,m=null,q=0,v=1,A=document.createElement("div");A.style.userSelect="none";A.style.overflow="hidden";
-A.style.padding="10px";A.style.height="100%";var C=z?"260px":"200px",D=document.createElement("input");D.setAttribute("placeholder",mxResources.get("find"));D.setAttribute("type","text");D.style.marginTop="4px";D.style.marginBottom="6px";D.style.width=C;D.style.fontSize="12px";D.style.borderRadius="4px";D.style.padding="6px";A.appendChild(D);mxUtils.br(A);if(z){var J=document.createElement("input");J.setAttribute("placeholder",mxResources.get("replaceWith"));J.setAttribute("type","text");J.style.marginTop=
-"4px";J.style.marginBottom="6px";J.style.width=C;J.style.fontSize="12px";J.style.borderRadius="4px";J.style.padding="6px";A.appendChild(J);mxUtils.br(A);mxEvent.addListener(J,"input",E)}var F=document.createElement("input");F.setAttribute("id","geFindWinRegExChck");F.setAttribute("type","checkbox");F.style.marginRight="4px";A.appendChild(F);C=document.createElement("label");C.setAttribute("for","geFindWinRegExChck");A.appendChild(C);mxUtils.write(C,mxResources.get("regularExpression"));A.appendChild(C);
-C=b.menus.createHelpLink("https://www.drawio.com/doc/faq/find-shapes");C.style.position="relative";C.style.marginLeft="6px";A.appendChild(C);mxUtils.br(A);var T=document.createElement("input");T.setAttribute("id","geFindWinAllPagesChck");T.setAttribute("type","checkbox");T.style.marginRight="4px";A.appendChild(T);C=document.createElement("label");C.setAttribute("for","geFindWinAllPagesChck");A.appendChild(C);mxUtils.write(C,mxResources.get("allPages"));A.appendChild(C);var W=document.createElement("div");
-mxUtils.br(A);C=document.createElement("div");C.style.left="0px";C.style.right="0px";C.style.marginTop="6px";C.style.padding="0 6px 0 6px";A.appendChild(C);var p=mxUtils.button(mxResources.get("reset"),function(){G.innerText="";D.value="";D.style.backgroundColor="";z&&(J.value="",E());R=c=null;k=!1;D.focus()});p.setAttribute("title",mxResources.get("reset"));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";z||C.appendChild(p);var u=mxUtils.button(mxResources.get("find"),function(){try{D.style.backgroundColor=M()?"":"light-dark(#ffcfcf, #ff0000)"}catch(B){b.handleError(B)}});u.setAttribute("title",mxResources.get("find")+" (Enter)");u.style.float="none";u.style.width="120px";u.style.marginTop="6px";u.style.marginLeft="8px";u.style.overflow="hidden";u.style.textOverflow="ellipsis";u.className="geBtn gePrimaryBtn";C.appendChild(u);var G=document.createElement("div");G.style.marginTop=
-"10px";if(z){var I=function(B,K,Q,S,U){if(null==U||"1"!=U.html)return S=B.toLowerCase().indexOf(K,S),0>S?B:B.substr(0,S)+Q+B.substr(S+K.length);var N=B;K=mxUtils.htmlEntities(K,!1,!1,!1);U=[];var P=-1;for(B=B.replace(/<br>/ig,"\n").replace(/(\s|\S)(<(BLOCKQUOTE|DIV|H1|H2|H3|H4|H5|H6|OL|P|PRE|TABLE|UL)[^>]*>)/ig,"$1\n$2");-1<(P=B.indexOf("<",P+1));)U.push(P);P=B.match(/<[^>]*>/g);B=B.replace(/<[^>]*>/g,"");S=B.toLowerCase().indexOf(K,S);if(0>S)return N;N=S+K.length;Q=mxUtils.htmlEntities(Q);B=B.substr(0,
-S)+Q+B.substr(N);for(var V=0,Y=0;Y<U.length;Y++){if(U[Y]-V<S)B=B.substr(0,U[Y])+P[Y]+B.substr(U[Y]);else{var X=U[Y]-V<N?S+V:U[Y]+(Q.length-K.length);B=B.substr(0,X)+P[Y]+B.substr(X)}V+=P[Y].length}return B.replace(/\n(<(BLOCKQUOTE|DIV|H1|H2|H3|H4|H5|H6|OL|P|PRE|TABLE|UL)[^>]*>)/ig,"$1").replace(/\n/g,"<br>")};C.style.textAlign="center";var H=mxUtils.button(mxResources.get("replFind"),function(){try{if(null!=m&&null!=c){var B=c.cell,K=O.getLabel(B);O.isCellEditable(B)&&O.model.setValue(B,I(K,m,J.value,
-q-m.length,O.getCurrentCellStyle(B)));D.style.backgroundColor=M(!1,!0)?"":"light-dark(#ffcfcf, #ff0000)"}}catch(Q){b.handleError(Q)}});H.setAttribute("title",mxResources.get("replFind"));H.style.float="none";H.style.width="120px";H.style.marginTop="6px";H.style.marginLeft="8px";H.style.overflow="hidden";H.style.textOverflow="ellipsis";H.className="geBtn gePrimaryBtn";H.setAttribute("disabled","disabled");C.appendChild(H);mxUtils.br(C);var g=mxUtils.button(mxResources.get("replace"),function(){try{if(null!=
-m&&null!=c){var B=c.cell,K=O.getLabel(B);O.model.setValue(B,I(K,m,J.value,q-m.length,O.getCurrentCellStyle(B)));H.setAttribute("disabled","disabled");g.setAttribute("disabled","disabled")}}catch(Q){b.handleError(Q)}});g.setAttribute("title",mxResources.get("replace"));g.style.float="none";g.style.width="120px";g.style.marginTop="6px";g.style.marginLeft="8px";g.style.overflow="hidden";g.style.textOverflow="ellipsis";g.className="geBtn gePrimaryBtn";g.setAttribute("disabled","disabled");C.appendChild(g);
-var t=mxUtils.button(mxResources.get("replaceAll"),function(){G.innerText="";R=null;var B=b.currentPage,K=b.editor.graph.getSelectionCells();b.editor.graph.rendering=!1;O.getModel().beginUpdate();try{for(var Q=0,S={};M(!1,!0,!0)&&100>Q;){var U=c.cell,N=O.getLabel(U),P=S[U.id];if(P&&P.replAllMrk==v&&P.replAllPos>=q)break;S[U.id]={replAllMrk:v,replAllPos:q};O.isCellEditable(U)&&(O.model.setValue(U,I(N,m,J.value,q-m.length,O.getCurrentCellStyle(U))),Q++)}B!=b.currentPage&&b.editor.graph.model.execute(new SelectPage(b,
-B));mxUtils.write(G,mxResources.get("matchesRepl",[Q]))}catch(V){b.handleError(V)}finally{O.getModel().endUpdate(),b.editor.graph.setSelectionCells(K),b.editor.graph.rendering=!0}v++});t.setAttribute("title",mxResources.get("replaceAll"));t.style.float="none";t.style.width="120px";t.style.marginTop="6px";t.style.marginLeft="8px";t.style.overflow="hidden";t.style.textOverflow="ellipsis";t.className="geBtn gePrimaryBtn";t.setAttribute("disabled","disabled");C.appendChild(t);mxUtils.br(C);C.appendChild(p);
-p=mxUtils.button(mxResources.get("close"),mxUtils.bind(this,function(){this.window.setVisible(!1)}));p.setAttribute("title",mxResources.get("close"));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";C.appendChild(p);mxUtils.br(C);C.appendChild(G)}else C.style.display="flex",C.style.alignItems="center",p.style.width="",u.style.width="";mxEvent.addListener(D,"keyup",function(B){if(91==
-B.keyCode||93==B.keyCode||17==B.keyCode)mxEvent.consume(B);else if(27==B.keyCode)L.funct();else if(R!=D.value.toLowerCase()||13==B.keyCode)try{D.style.backgroundColor=M()?"":"light-dark(#ffcfcf, #ff0000)"}catch(K){D.style.backgroundColor="light-dark(#ffcfcf, #ff0000)"}});mxEvent.addListener(A,"keydown",function(B){70==B.keyCode&&b.keyHandler.isControlDown(B)&&!mxEvent.isShiftDown(B)&&(L.funct(),mxEvent.consume(B))});this.window=new mxWindow(mxResources.get("find")+(z?"/"+mxResources.get("replace"):
+null,k=!0,M(!0,K,Q);c=P;O.scrollCellToVisible(c.cell);O.isEnabled()&&!O.isCellLocked(c.cell)?Q||O.getSelectionCell()==c.cell&&1==O.getSelectionCount()||O.setSelectionCell(c.cell):O.highlightCell(c.cell)}else{if(!C&&T.checked)return k=!0,M(!0,K,Q);O.isEnabled()&&!Q&&O.clearSelection()}d=null!=P;z&&!C&&E();return 0==U.length||null!=P}var L=b.actions.get("findReplace"),O=b.editor.graph,R=null,c=null,d=!1,k=!1,m=null,q=0,v=1,A=document.createElement("div");A.style.userSelect="none";A.style.overflow="hidden";
+A.style.padding="10px";A.style.height="100%";var B=z?"260px":"200px",D=document.createElement("input");D.setAttribute("placeholder",mxResources.get("find"));D.setAttribute("type","text");D.style.marginTop="4px";D.style.marginBottom="6px";D.style.width=B;D.style.fontSize="12px";D.style.borderRadius="4px";D.style.padding="6px";A.appendChild(D);mxUtils.br(A);if(z){var J=document.createElement("input");J.setAttribute("placeholder",mxResources.get("replaceWith"));J.setAttribute("type","text");J.style.marginTop=
+"4px";J.style.marginBottom="6px";J.style.width=B;J.style.fontSize="12px";J.style.borderRadius="4px";J.style.padding="6px";A.appendChild(J);mxUtils.br(A);mxEvent.addListener(J,"input",E)}var F=document.createElement("input");F.setAttribute("id","geFindWinRegExChck");F.setAttribute("type","checkbox");F.style.marginRight="4px";A.appendChild(F);B=document.createElement("label");B.setAttribute("for","geFindWinRegExChck");A.appendChild(B);mxUtils.write(B,mxResources.get("regularExpression"));A.appendChild(B);
+B=b.menus.createHelpLink("https://www.drawio.com/doc/faq/find-shapes");B.style.position="relative";B.style.marginLeft="6px";A.appendChild(B);mxUtils.br(A);var T=document.createElement("input");T.setAttribute("id","geFindWinAllPagesChck");T.setAttribute("type","checkbox");T.style.marginRight="4px";A.appendChild(T);B=document.createElement("label");B.setAttribute("for","geFindWinAllPagesChck");A.appendChild(B);mxUtils.write(B,mxResources.get("allPages"));A.appendChild(B);var W=document.createElement("div");
+mxUtils.br(A);B=document.createElement("div");B.style.left="0px";B.style.right="0px";B.style.marginTop="6px";B.style.padding="0 6px 0 6px";A.appendChild(B);var p=mxUtils.button(mxResources.get("reset"),function(){G.innerText="";D.value="";D.style.backgroundColor="";z&&(J.value="",E());R=c=null;k=!1;D.focus()});p.setAttribute("title",mxResources.get("reset"));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";z||B.appendChild(p);var u=mxUtils.button(mxResources.get("find"),function(){try{D.style.backgroundColor=M()?"":"light-dark(#ffcfcf, #ff0000)"}catch(C){b.handleError(C)}});u.setAttribute("title",mxResources.get("find")+" (Enter)");u.style.float="none";u.style.width="120px";u.style.marginTop="6px";u.style.marginLeft="8px";u.style.overflow="hidden";u.style.textOverflow="ellipsis";u.className="geBtn gePrimaryBtn";B.appendChild(u);var G=document.createElement("div");G.style.marginTop=
+"10px";if(z){var I=function(C,K,Q,S,U){if(null==U||"1"!=U.html)return S=C.toLowerCase().indexOf(K,S),0>S?C:C.substr(0,S)+Q+C.substr(S+K.length);var N=C;K=mxUtils.htmlEntities(K,!1,!1,!1);U=[];var P=-1;for(C=C.replace(/<br>/ig,"\n").replace(/(\s|\S)(<(BLOCKQUOTE|DIV|H1|H2|H3|H4|H5|H6|OL|P|PRE|TABLE|UL)[^>]*>)/ig,"$1\n$2");-1<(P=C.indexOf("<",P+1));)U.push(P);P=C.match(/<[^>]*>/g);C=C.replace(/<[^>]*>/g,"");S=C.toLowerCase().indexOf(K,S);if(0>S)return N;N=S+K.length;Q=mxUtils.htmlEntities(Q);C=C.substr(0,
+S)+Q+C.substr(N);for(var V=0,Y=0;Y<U.length;Y++){if(U[Y]-V<S)C=C.substr(0,U[Y])+P[Y]+C.substr(U[Y]);else{var X=U[Y]-V<N?S+V:U[Y]+(Q.length-K.length);C=C.substr(0,X)+P[Y]+C.substr(X)}V+=P[Y].length}return C.replace(/\n(<(BLOCKQUOTE|DIV|H1|H2|H3|H4|H5|H6|OL|P|PRE|TABLE|UL)[^>]*>)/ig,"$1").replace(/\n/g,"<br>")};B.style.textAlign="center";var H=mxUtils.button(mxResources.get("replFind"),function(){try{if(null!=m&&null!=c){var C=c.cell,K=O.getLabel(C);O.isCellEditable(C)&&O.model.setValue(C,I(K,m,J.value,
+q-m.length,O.getCurrentCellStyle(C)));D.style.backgroundColor=M(!1,!0)?"":"light-dark(#ffcfcf, #ff0000)"}}catch(Q){b.handleError(Q)}});H.setAttribute("title",mxResources.get("replFind"));H.style.float="none";H.style.width="120px";H.style.marginTop="6px";H.style.marginLeft="8px";H.style.overflow="hidden";H.style.textOverflow="ellipsis";H.className="geBtn gePrimaryBtn";H.setAttribute("disabled","disabled");B.appendChild(H);mxUtils.br(B);var g=mxUtils.button(mxResources.get("replace"),function(){try{if(null!=
+m&&null!=c){var C=c.cell,K=O.getLabel(C);O.model.setValue(C,I(K,m,J.value,q-m.length,O.getCurrentCellStyle(C)));H.setAttribute("disabled","disabled");g.setAttribute("disabled","disabled")}}catch(Q){b.handleError(Q)}});g.setAttribute("title",mxResources.get("replace"));g.style.float="none";g.style.width="120px";g.style.marginTop="6px";g.style.marginLeft="8px";g.style.overflow="hidden";g.style.textOverflow="ellipsis";g.className="geBtn gePrimaryBtn";g.setAttribute("disabled","disabled");B.appendChild(g);
+var t=mxUtils.button(mxResources.get("replaceAll"),function(){G.innerText="";R=null;var C=b.currentPage,K=b.editor.graph.getSelectionCells();b.editor.graph.rendering=!1;O.getModel().beginUpdate();try{for(var Q=0,S={};M(!1,!0,!0)&&100>Q;){var U=c.cell,N=O.getLabel(U),P=S[U.id];if(P&&P.replAllMrk==v&&P.replAllPos>=q)break;S[U.id]={replAllMrk:v,replAllPos:q};O.isCellEditable(U)&&(O.model.setValue(U,I(N,m,J.value,q-m.length,O.getCurrentCellStyle(U))),Q++)}C!=b.currentPage&&b.editor.graph.model.execute(new SelectPage(b,
+C));mxUtils.write(G,mxResources.get("matchesRepl",[Q]))}catch(V){b.handleError(V)}finally{O.getModel().endUpdate(),b.editor.graph.setSelectionCells(K),b.editor.graph.rendering=!0}v++});t.setAttribute("title",mxResources.get("replaceAll"));t.style.float="none";t.style.width="120px";t.style.marginTop="6px";t.style.marginLeft="8px";t.style.overflow="hidden";t.style.textOverflow="ellipsis";t.className="geBtn gePrimaryBtn";t.setAttribute("disabled","disabled");B.appendChild(t);mxUtils.br(B);B.appendChild(p);
+p=mxUtils.button(mxResources.get("close"),mxUtils.bind(this,function(){this.window.setVisible(!1)}));p.setAttribute("title",mxResources.get("close"));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";B.appendChild(p);mxUtils.br(B);B.appendChild(G)}else B.style.display="flex",B.style.alignItems="center",p.style.width="",u.style.width="";mxEvent.addListener(D,"keyup",function(C){if(91==
+C.keyCode||93==C.keyCode||17==C.keyCode)mxEvent.consume(C);else if(27==C.keyCode)L.funct();else if(R!=D.value.toLowerCase()||13==C.keyCode)try{D.style.backgroundColor=M()?"":"light-dark(#ffcfcf, #ff0000)"}catch(K){D.style.backgroundColor="light-dark(#ffcfcf, #ff0000)"}});mxEvent.addListener(A,"keydown",function(C){70==C.keyCode&&b.keyHandler.isControlDown(C)&&!mxEvent.isShiftDown(C)&&(L.funct(),mxEvent.consume(C))});this.window=new mxWindow(mxResources.get("find")+(z?"/"+mxResources.get("replace"):
""),A,l,n,f,x,!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()?(D.focus(),mxClient.IS_GC||mxClient.IS_FF?D.select():document.execCommand("selectAll",!1,null),null!=b.pages&&1<b.pages.length?T.removeAttribute("disabled"):(T.checked=!1,T.setAttribute("disabled","disabled"))):O.container.focus()}));b.installResizeHandler(this,
-!1);this.doSearch=function(B){D.focus();D.value=B;u.click()}},FreehandWindow=function(b,l,n,f,x,z){var y=b.editor.graph,E=document.createElement("div");E.style.textAlign="center";E.style.userSelect="none";E.style.overflow="hidden";E.style.height="100%";if(z){var M=function(){var d=y.freehand.getStrokeColor(!0);null!=d&&d!=mxConstants.NONE&&1<d.length&&"string"===typeof d&&("default"==d?d=mxResources.get("useBlackAndWhite"):(d="#"==d.charAt(0)?d.substring(1).toUpperCase():d,d=ColorDialog.prototype.colorNames[d]),
+!1);this.doSearch=function(C){D.focus();D.value=C;u.click()}},FreehandWindow=function(b,l,n,f,x,z){var y=b.editor.graph,E=document.createElement("div");E.style.textAlign="center";E.style.userSelect="none";E.style.overflow="hidden";E.style.height="100%";if(z){var M=function(){var d=y.freehand.getStrokeColor(!0);null!=d&&d!=mxConstants.NONE&&1<d.length&&"string"===typeof d&&("default"==d?d=mxResources.get("useBlackAndWhite"):(d="#"==d.charAt(0)?d.substring(1).toUpperCase():d,d=ColorDialog.prototype.colorNames[d]),
null!=d&&O.setAttribute("title",d))},L=document.createElement("input");L.setAttribute("id","geFreehandBrush");L.setAttribute("type","checkbox");L.checked=y.freehand.isPerfectFreehandMode();L.style.margin="10px 5px 0px 10px";L.style.float="left";E.appendChild(L);y.freehand.setPerfectFreehandMode(L.checked);z=document.createElement("label");z.setAttribute("for","geFreehandBrush");z.style.float="left";z.style.marginTop="10px";E.appendChild(z);mxUtils.write(z,mxResources.get("brush"));E.appendChild(z);
var O=document.createElement("tempDiv");O.style.display="block";O.style.width="100%";O.style.height="100%";O.style.borderRadius="2px";O.style.boxSizing="border-box";O.style.border="1px solid black";O.style.backgroundColor=y.freehand.getStrokeColor();b.addListener("darkModeChanged",function(){O.style.backgroundColor=y.freehand.getStrokeColor()});M();z=mxUtils.button("",mxUtils.bind(this,function(d){b.pickColor(y.freehand.getStrokeColor(!0),function(k){y.freehand.setStrokeColor(k);O.style.backgroundColor=
y.freehand.getStrokeColor();M()},"default");mxEvent.consume(d)}));z.style.position="absolute";z.style.boxSizing="border-box";z.style.padding="2px";z.style.top="8px";z.style.right="8px";z.style.width="28px";z.style.height="18px";z.className="geColorBtn";z.innerText="";z.appendChild(O);E.appendChild(z);z=document.createElement("img");z.setAttribute("title",mxResources.get("settings"));z.setAttribute("src",Editor.gearImage);z.className="geButton";z.style.position="absolute";z.style.boxSizing="border-box";
@@ -12673,7 +12679,7 @@ mxUtils.bind(this,function(){var ya=(new mxCodec(mxUtils.createXmlDocument())).e
0<ja.cells.length&&E(wa,ia,ja.cells,ja.element,sa);var va=document.createElement("img");va.className="geAdaptiveAsset geLibraryButton";va.setAttribute("src",Editor.checkImage);va.setAttribute("title",mxResources.get("apply"));wa.appendChild(va);mxEvent.addListener(va,"click",function(ya){Ba();mxEvent.consume(ya)});A.appendChild(wa);wa.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})}catch(ya){b.handleError(ya)}}))["catch"](function(ha){b.handleError(ha)})}catch(ha){b.handleError(ha)}else if("insertDiagram"==
X)try{navigator.clipboard.readText().then(mxUtils.bind(this,function(ha){try{var ba=Editor.extractGraphModelFromText(ha),ia=0<ba[1].length?ba[1]:ha;if("mxGraphModel"!=mxUtils.parseXml(ia).documentElement.nodeName)throw Error(mxResources.get("invalidInput"));ha=[];var la=mxResources.get("insertDiagramFromClipboard"),ka=z(la,ia,ha),pa=document.createElement("div");pa.style.display="flex";ha.push(pa);null!=ka.cells&&0<ka.cells.length&&E(pa,ia,ka.cells,ka.element,la);A.appendChild(pa);pa.scrollIntoView({behavior:"smooth",
block:"end",inline:"nearest"});if(null!=ka.cells&&0<ka.cells.length){q.model.beginUpdate();try{var Ba=q.getFreeInsertPoint();q.setSelectionCells(q.importCells(ka.cells,Ba.x,Ba.y))}finally{q.model.endUpdate()}q.scrollCellToVisible(q.getSelectionCell())}}catch(sa){b.handleError(sa)}}))["catch"](function(ha){b.handleError(ha)})}catch(ha){b.handleError(ha)}}function L(){if(!N){if(V(J.value)){M(J.value);J.value=P;return}if("resetHistory"==J.value){J.value=P;b.confirm(mxResources.get("areYouSure"),function(){A.innerHTML=
-""});return}P=J.value;Y()}B.style.display="createPublic"==J.value?"none":""}function O(){N=!0;J.value=P;q.isSelectionEmpty()?(W.setAttribute("disabled","disabled"),H.setAttribute("disabled","disabled"),"selectionOnly"==J.value&&(J.value="includeCopyOfMyDiagram")):(W.removeAttribute("disabled"),H.removeAttribute("disabled"));b.isDiagramEmpty()?(T.setAttribute("disabled","disabled"),I.setAttribute("disabled","disabled"),"includeCopyOfMyDiagram"==J.value&&(J.value="help")):(T.removeAttribute("disabled"),
+""});return}P=J.value;Y()}C.style.display="createPublic"==J.value?"none":""}function O(){N=!0;J.value=P;q.isSelectionEmpty()?(W.setAttribute("disabled","disabled"),H.setAttribute("disabled","disabled"),"selectionOnly"==J.value&&(J.value="includeCopyOfMyDiagram")):(W.removeAttribute("disabled"),H.removeAttribute("disabled"));b.isDiagramEmpty()?(T.setAttribute("disabled","disabled"),I.setAttribute("disabled","disabled"),"includeCopyOfMyDiagram"==J.value&&(J.value="help")):(T.removeAttribute("disabled"),
I.removeAttribute("disabled"));N=!1}function R(){try{navigator.clipboard.readText().then(function(X){try{var Z=Editor.extractGraphModelFromText(X);"mxGraphModel"==mxUtils.parseXml(0<Z[1].length?Z[1]:X).documentElement.nodeName?(g.removeAttribute("disabled"),t.removeAttribute("disabled")):(g.setAttribute("disabled","disabled"),t.setAttribute("disabled","disabled"))}catch(aa){g.setAttribute("disabled","disabled"),t.setAttribute("disabled","disabled")}})["catch"](function(){g.setAttribute("disabled",
"disabled");t.setAttribute("disabled","disabled")})}catch(X){g.setAttribute("disabled","disabled"),t.setAttribute("disabled","disabled")}}function c(){var X=document.createElement("div");X.style.textAlign="left";X.style.padding="6px";X.style.margin="6px 0";return X}function d(X){var Z=c();mxUtils.write(Z,X);A.appendChild(Z);return Z}function k(X){function Z(ra){var ca=document.createElement("div");ca.style.display="flex";var da=document.createElement("img");da.className="geAdaptiveAsset geLibraryButton";
da.setAttribute("src",Editor.refreshImage);da.setAttribute("title",null!=ra?ra:mxResources.get("tryAgain"));ca.appendChild(da);mxEvent.addListener(da,"click",Da);return ca}function aa(ra){var ca=document.createElement("div");ca.style.whiteSpace="pre-wrap";ca.style.overflow="auto";ca.innerHTML=Graph.sanitizeHtml(mxUtils.htmlEntities(ra,!1).replace(/\n*^##### (.+)$\n*/gm,"<h5>$1</h5>").replace(/\n*^#### (.+)$\n*/gm,"<h4>$1</h4>").replace(/\n*^### (.+)$\n*/gm,"<h3>$1</h3>").replace(/\n*^## (.+)$\n*/gm,
@@ -12681,7 +12687,7 @@ da.setAttribute("src",Editor.refreshImage);da.setAttribute("title",null!=ra?ra:m
"10px";ba.style.backgroundColor="light-dark(#e0e0e0, #3a3a3a)";var ia=document.createElement("div");ia.className="geInlineButtons";ia.style.display="flex";ia.style.justifyContent="end";ha.push(ia);var la=document.createElement("img");la.className="geAdaptiveAsset geLibraryButton";la.setAttribute("src",Editor.trashImage);la.setAttribute("title",mxResources.get("remove"));ia.appendChild(la);mxEvent.addListener(la,"click",mxUtils.bind(this,function(ra){if(mxEvent.isShiftDown(ra))A.innerHTML="";else{for(ra=
0;ra<ha.length;ra++)null!=ha[ra].parentNode&&ha[ra].parentNode.removeChild(ha[ra]);ha=[]}}));la=la.cloneNode();la.setAttribute("src",Editor.copyImage);la.setAttribute("title",mxResources.get("copy"));mxEvent.addListener(la,"click",mxUtils.bind(this,function(){b.writeTextToClipboard(X,mxUtils.bind(this,function(ra){b.handleError(ra)}),function(){b.alert(mxResources.get("copiedToClipboard"))})}));ia.appendChild(la);la=la.cloneNode();la.setAttribute("src",Editor.editImage);la.setAttribute("title",mxResources.get("edit"));
ia.appendChild(la);mxEvent.addListener(la,"click",mxUtils.bind(this,function(){U.value=X;U.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?U.select():document.execCommand("selectAll",!1,null)}));A.appendChild(ia);var ka=d("");ka.className="geSidebar";ka.style.marginTop="2px";var pa=mxUtils.bind(this,function(ra){ka.innerHTML="";ka.appendChild(ea(ra.message));ka.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"});EditorUi.debug("EditorUi.ChatWindow.handleError","error",
-ra);null!=window.console&&console.error(ra)}),Ba=b.currentPage,sa=B.value,ja=J.value,wa=null;for(ia=0;ia<Editor.aiModels.length;ia++)if(la=Editor.aiModels[ia],la.name==sa){wa=la;break}if("createPublic"==ja||null!=wa&&null!=Editor.aiConfigs[wa.config]){var va=null!=wa?Editor.aiConfigs[wa.config]:null,ya=null,Aa=Date.now(),ma=null,Ea=null;if("includeCopyOfMyDiagram"==ja||"selectionOnly"==ja)ia=new mxCodec(mxUtils.createXmlDocument()),"selectionOnly"==ja&&(ia.isObjectIgnored=function(ra){return ra.constructor==
+ra);null!=window.console&&console.error(ra)}),Ba=b.currentPage,sa=C.value,ja=J.value,wa=null;for(ia=0;ia<Editor.aiModels.length;ia++)if(la=Editor.aiModels[ia],la.name==sa){wa=la;break}if("createPublic"==ja||null!=wa&&null!=Editor.aiConfigs[wa.config]){var va=null!=wa?Editor.aiConfigs[wa.config]:null,ya=null,Aa=Date.now(),ma=null,Ea=null;if("includeCopyOfMyDiagram"==ja||"selectionOnly"==ja)ia=new mxCodec(mxUtils.createXmlDocument()),"selectionOnly"==ja&&(ia.isObjectIgnored=function(ra){return ra.constructor==
mxCell&&!q.model.isRoot(ra)&&!q.model.isLayer(ra)&&!q.isCellSelected(ra)&&!q.isAncestorSelected(ra)}),Ea=ia.encode(q.getModel()),Ea.ownerDocument.appendChild(Ea),ma=mxUtils.getXml(Ea);var xa=function(ra){var ca=null;"prompt"==ra?ca=X:"data"==ra&&null!=Ea?ca=ma:"model"==ra?ca=wa.model:"apiKey"==ra?ra=va.apiKey:"action"==ra&&(ra="selectionOnly"==ja||"includeCopyOfMyDiagram"==ja?"update":ja);null==ca&&(ca=Editor.replacePlaceholders(Editor.aiGlobals[ra],xa));return ca},fa=function(ra,ca){null==ca&&(ca=
new ra.constructor);for(var da in ra){var oa=ra[da];ca[da]="object"===typeof oa?fa(oa):"string"===typeof oa?Editor.replacePlaceholders(oa,xa):oa}return ca},ua=null!=va?fa(va.request):null,Da=mxUtils.bind(this,function(){ka.innerHTML="";ha.push(ka);var ra=document.createElement("div");ra.style.display="flex";ra.style.alignItems="center";mxUtils.write(ra,mxResources.get("loading")+"...");var ca=document.createElement("img");ca.className="geAdaptiveAsset";ca.setAttribute("src",Editor.svgSpinImage);ca.style.width=
"16px";ca.style.height="16px";ca.style.marginLeft="6px";ra.appendChild(ca);ka.appendChild(ra);ka.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"});var da=mxUtils.bind(this,function(oa,na){var ta=Date.now()-Aa;EditorUi.debug("EditorUi.ChatWindow.handleResponse","data",oa,"prompt",[na],"time",ta);var qa=null;if(null!=oa&&1<oa.length&&0<oa[1].length)try{qa=b.stringToCells(oa[1])}catch(Za){throw Error(Za.toString()+"\n\n"+oa[1]);}if(null!=qa&&0<qa.length){var za=q.getBoundingBoxFromGeometry(qa);
@@ -12696,16 +12702,16 @@ mxResources.get("insert")));ta.appendChild(za);mxEvent.addListener(za,"click",Ka
xa))});EditorUi.debug("EditorUi.ChatWindow.addMessage send","url",ta,"params",ua,"aiModel",wa,"config",va);qa.send(mxUtils.bind(this,function(za){if(oa.clear())try{if(200<=za.getStatus()&&299>=za.getStatus()){var Ka=JSON.parse(za.getText()),Na=Editor.executeSimpleJsonPath(Ka,va.responsePath),La=mxUtils.trim(0<Na.length?Na[0]:za.getText()),Za=b.extractMermaidDeclaration(La);EditorUi.debug("EditorUi.ChatWindow.addMessage response","params",ua,"response",Ka,"text",[La],"mermaid",[Za]);null==Za?da(Editor.extractGraphModelFromText(La),
X):b.parseMermaidDiagram(Za,null,mxUtils.bind(this,function(Ua){da(["",Ua,""],X)}),mxUtils.bind(this,function(Ua){na(Ua)}),null,!0)}else{Na="Error: "+za.getStatus();try{var Ra=JSON.parse(za.getText());null!=Ra&&null!=Ra.error&&null!=Ra.error.message&&(Na=Ra.error.message)}catch(Ua){}ka.innerHTML="";mxUtils.write(ka,Na);ka.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})}}catch(Ua){na(Ua)}}),na)}),function(oa){ka.innerHTML="";ka.appendChild(ea(oa.message));ka.scrollIntoView({behavior:"smooth",
block:"end",inline:"nearest"});EditorUi.debug("EditorUi.ChatWindow.addMessage","error",oa)})});Da()}else pa({message:mxResources.get("invalidCallFnNotFound",[sa])})}function m(){if(""!=mxUtils.trim(U.value))try{k(U.value),U.value=""}catch(X){EditorUi.debug("EditorUi.ChatWindow.send","error",X)}}var q=b.editor.graph,v=document.createElement("div");v.style.display="flex";v.style.flexDirection="column";v.style.overflow="hidden";v.style.height="100%";v.style.padding="10px 12px 20px 12px";v.style.boxSizing=
-"border-box";mxEvent.addGestureListeners(v,mxUtils.bind(this,function(X){null!=b.sidebar&&b.sidebar.hideTooltip()}),null,null);var A=document.createElement("div");A.style.flexGrow="1";A.style.overflow="auto";A.style.fontSize="12px";A.style.marginRight="-8px";A.style.paddingRight="8px";mxEvent.addListener(A,"scroll",function(){null!=b.sidebar&&b.sidebar.hideTooltip()});v.appendChild(A);var C=document.createElement("div");C.style.borderRadius="20px";C.style.backgroundColor="light-dark(#e0e0e0, #3a3a3a)";
-C.style.padding="8px";C.style.marginTop="8px";var D=document.createElement("div");D.style.display="flex";D.style.gap="6px";D.style.paddingRight="8px";D.style.justifyContent="start";var J=document.createElement("select");J.style.borderColor="transparent";J.style.textOverflow="ellipsis";J.style.padding="5px";J.style.minWidth="0";J.style.flexGrow="1";var F=document.createElement("option"),T=document.createElement("option"),W=document.createElement("option"),p=document.createElement("option"),u=document.createElement("option");
+"border-box";mxEvent.addGestureListeners(v,mxUtils.bind(this,function(X){null!=b.sidebar&&b.sidebar.hideTooltip()}),null,null);var A=document.createElement("div");A.style.flexGrow="1";A.style.overflow="auto";A.style.fontSize="12px";A.style.marginRight="-8px";A.style.paddingRight="8px";mxEvent.addListener(A,"scroll",function(){null!=b.sidebar&&b.sidebar.hideTooltip()});v.appendChild(A);var B=document.createElement("div");B.style.borderRadius="20px";B.style.backgroundColor="light-dark(#e0e0e0, #3a3a3a)";
+B.style.padding="8px";B.style.marginTop="8px";var D=document.createElement("div");D.style.display="flex";D.style.gap="6px";D.style.paddingRight="8px";D.style.justifyContent="start";var J=document.createElement("select");J.style.borderColor="transparent";J.style.textOverflow="ellipsis";J.style.padding="5px";J.style.minWidth="0";J.style.flexGrow="1";var F=document.createElement("option"),T=document.createElement("option"),W=document.createElement("option"),p=document.createElement("option"),u=document.createElement("option");
if(b.isExternalDataComms()&&"undefined"!==typeof mxMermaidToDrawio&&window.isMermaidEnabled&&0<=mxUtils.indexOf(Editor.aiActions,"createPublic")){F.setAttribute("value","createPublic");mxUtils.write(F,mxResources.get("createDiagram")+" ("+mxResources.get("draw.io")+")");J.appendChild(F);var G=document.createElement("option");G.setAttribute("disabled","disabled");mxUtils.write(G,"──────");J.appendChild(G)}var I=document.createElement("option");I.setAttribute("value","copyOfDrawing");mxUtils.write(I,
mxResources.get("copyDiagramToClipboard"));J.appendChild(I);var H=document.createElement("option");H.setAttribute("value","copyOfSelection");mxUtils.write(H,mxResources.get("copySelectionToClipboard"));J.appendChild(H);var g=document.createElement("option");g.setAttribute("value","pasteDiagram");g.setAttribute("disabled","disabled");mxUtils.write(g,mxResources.get("updateDiagramFromClipboard"));J.appendChild(g);var t=document.createElement("option");t.setAttribute("value","insertDiagram");t.setAttribute("disabled",
-"disabled");mxUtils.write(t,mxResources.get("insertDiagramFromClipboard"));J.appendChild(t);var B=J.cloneNode(!1);for(G=0;G<Editor.aiModels.length;G++){var K=Editor.aiModels[G];if(Editor.aiConfigs[K.config]&&null!=Editor.aiGlobals[Editor.aiConfigs[K.config].apiKey]){var Q=document.createElement("option");Q.setAttribute("value",K.name);mxUtils.write(Q,K.name);B.appendChild(Q)}}var S=0==B.children.length;S||(G=document.createElement("option"),G.setAttribute("disabled","disabled"),mxUtils.write(G,"──────"),
+"disabled");mxUtils.write(t,mxResources.get("insertDiagramFromClipboard"));J.appendChild(t);var C=J.cloneNode(!1);for(G=0;G<Editor.aiModels.length;G++){var K=Editor.aiModels[G];if(Editor.aiConfigs[K.config]&&null!=Editor.aiGlobals[Editor.aiConfigs[K.config].apiKey]){var Q=document.createElement("option");Q.setAttribute("value",K.name);mxUtils.write(Q,K.name);C.appendChild(Q)}}var S=0==C.children.length;S||(G=document.createElement("option"),G.setAttribute("disabled","disabled"),mxUtils.write(G,"──────"),
J.appendChild(G),"undefined"!==typeof mxMermaidToDrawio&&window.isMermaidEnabled&&0<=mxUtils.indexOf(Editor.aiActions,"create")&&(p.setAttribute("value","create"),mxUtils.write(p,mxResources.get("createDiagram")),J.appendChild(p)),0<=mxUtils.indexOf(Editor.aiActions,"update")&&(T.setAttribute("value","includeCopyOfMyDiagram"),mxUtils.write(T,mxResources.get("promptWithDiagram")),J.appendChild(T),W.setAttribute("value","selectionOnly"),mxUtils.write(W,mxResources.get("promptWithSelection")),J.appendChild(W)),
0<=mxUtils.indexOf(Editor.aiActions,"assist")&&(u.setAttribute("value","assist"),mxUtils.write(u,mxResources.get("promptOnly")),J.appendChild(u)));p=document.createElement("option");p.setAttribute("disabled","disabled");mxUtils.write(p,"──────");J.appendChild(p);p=document.createElement("option");p.setAttribute("value","resetHistory");mxUtils.write(p,mxResources.get("reset"));J.appendChild(p);u=document.createElement("div");u.style.whiteSpace="nowrap";u.style.textOverflow="clip";u.style.cursor="default";
var U=document.createElement("input");U.setAttribute("type","text");U.style.width="100%";U.style.outline="none";U.style.border="none";U.style.background="transparent";U.style.padding="6px 30px 6px 10px";U.style.boxSizing="border-box";u.appendChild(U);p=document.createElement("img");p.setAttribute("src",Editor.sendImage);p.setAttribute("title",mxResources.get("sendMessage"));p.className="geAdaptiveAsset";p.style.position="relative";p.style.cursor="pointer";p.style.opacity="0.5";p.style.height="19px";
-p.style.left="-28px";p.style.top="5px";u.appendChild(p);C.appendChild(u);S||1==urlParams.test||null==F.parentNode||F.parentNode.removeChild(F);D.appendChild(J);!S&&1<B.children.length&&D.appendChild(B);C.appendChild(D);S&&null==F.parentNode&&(u.style.display="none",D=document.createElement("option"),D.setAttribute("value","select"),mxUtils.write(D,mxResources.get("select")+"..."),J.insertBefore(D,J.firstChild));0<J.children.length&&(J.value=J.children[0].value);var N=!1,P=J.value,V=function(X){return"copyOfDrawing"==
-X||"copyOfSelection"==X||"pasteDiagram"==X||"insertDiagram"==X},Y=function(){U.setAttribute("placeholder",mxResources.get("create"==J.value||"createPublic"==J.value?"describeYourDiagram":"askMeAnything"))};Y();mxEvent.addListener(J,"change",L);L();q.selectionModel.addListener(mxEvent.CHANGE,O);q.getModel().addListener(mxEvent.CHANGE,O);O();R();mxEvent.addListener(window,"focus",R);v.appendChild(C);mxEvent.addListener(p,"click",m);mxEvent.addListener(U,"keydown",function(X){13!=X.keyCode||mxEvent.isShiftDown(X)||
+p.style.left="-28px";p.style.top="5px";u.appendChild(p);B.appendChild(u);S||1==urlParams.test||null==F.parentNode||F.parentNode.removeChild(F);D.appendChild(J);!S&&1<C.children.length&&D.appendChild(C);B.appendChild(D);S&&null==F.parentNode&&(u.style.display="none",D=document.createElement("option"),D.setAttribute("value","select"),mxUtils.write(D,mxResources.get("select")+"..."),J.insertBefore(D,J.firstChild));0<J.children.length&&(J.value=J.children[0].value);var N=!1,P=J.value,V=function(X){return"copyOfDrawing"==
+X||"copyOfSelection"==X||"pasteDiagram"==X||"insertDiagram"==X},Y=function(){U.setAttribute("placeholder",mxResources.get("create"==J.value||"createPublic"==J.value?"describeYourDiagram":"askMeAnything"))};Y();mxEvent.addListener(J,"change",L);L();q.selectionModel.addListener(mxEvent.CHANGE,O);q.getModel().addListener(mxEvent.CHANGE,O);O();R();mxEvent.addListener(window,"focus",R);v.appendChild(B);mxEvent.addListener(p,"click",m);mxEvent.addListener(U,"keydown",function(X){13!=X.keyCode||mxEvent.isShiftDown(X)||
m()});this.generate=mxUtils.bind(this,function(X){U.value=X;m()});this.window=new mxWindow(mxResources.get("generate"),v,l,n,f,x,!0,!0);this.window.minimumSize=new mxRectangle(0,0,120,100);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);b.isOffline()||(l=b.createHelpIcon("https://www.drawio.com/doc/faq/configure-ai-options"),l.style.cursor="help",l.style.opacity="0.5",this.window.buttons.insertBefore(l,this.window.buttons.firstChild));
this.window.addListener(mxEvent.DESTROY,mxUtils.bind(this,function(){q.getModel().removeListener(O);mxEvent.removeListener(window,"focus",R)}));this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit();U.focus()}));b.installResizeHandler(this,!0)},TagsWindow=function(b,l,n,f,x){var z=b.editor.graph,y=null;if(!b.isOffline()||mxClient.IS_CHROMEAPP)y=b.menus.createHelpLink("https://www.drawio.com/blog/tags-in-diagrams");var E=b.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return this.window.isVisible()}),
null,function(M,L){if(z.isEnabled()){var O=new FilenameDialog(b,"",mxResources.get("add"),function(R){b.hideDialog();if(null!=R&&0<R.length){R=R.split(" ");for(var c=[],d=[],k=0;k<R.length;k++){var m=mxUtils.trim(R[k]);""!=m&&(d.push(m),0>mxUtils.indexOf(M,m)&&c.push(m))}z.isSelectionEmpty()?L(M.concat(c)):z.addTagsForCells(z.getSelectionCells(),d)}},mxResources.get("tags"),null,null,"https://www.drawio.com/blog/tags-in-diagrams");b.showDialog(O.container,320,80,!0,!0);O.init()}},y);y=E.div;this.window=
@@ -12714,70 +12720,70 @@ z.style.padding="0px";z.style.margin="0px";z.style.color="gray";mxUtils.write(z,
"/onedrive-logo-white.svg"):l==b.gitHub?(y=mxResources.get("github"),E.src=IMAGE_PATH+"/github-logo-white.svg"):l==b.gitLab?(y=mxResources.get("gitlab"),E.src=IMAGE_PATH+"/gitlab-logo.svg",E.style.width="32px"):l==b.trello?(y=mxResources.get("trello"),E.src=IMAGE_PATH+"/trello-logo-white.svg"):l==b.m365&&(y=mxResources.get("m365"),E.src=IMAGE_PATH+"/onedrive-logo-white.svg");b=document.createElement("p");mxUtils.write(b,mxResources.get("authorizeThisAppIn",[y]));var M=document.createElement("input");
M.setAttribute("type","checkbox");y=mxUtils.button(mxResources.get("authorize"),function(){f(M.checked)});y.insertBefore(E,y.firstChild);y.style.marginTop="6px";y.className="geBigButton";y.style.fontSize="18px";y.style.padding="14px";x.appendChild(z);x.appendChild(b);x.appendChild(y);n&&(n=document.createElement("p"),n.style.marginTop="20px",n.appendChild(M),z=document.createElement("span"),mxUtils.write(z," "+mxResources.get("rememberMe")),n.appendChild(z),x.appendChild(n),M.checked=!0,M.defaultChecked=
!0,mxEvent.addListener(z,"click",function(L){M.checked=!M.checked;mxEvent.consume(L)}));this.container=x},MoreShapesDialog=function(b,l,n){n=null!=n?n:b.sidebar.entries;var f=document.createElement("div"),x=[];if(null!=b.sidebar.customEntries)for(var z=0;z<b.sidebar.customEntries.length;z++){for(var y=b.sidebar.customEntries[z]||{},E={title:b.getResource(y.title),entries:[]},M=0;null!=y.entries&&M<y.entries.length;M++){var L=y.entries[M];E.entries.push({id:L.id,title:b.getResource(L.title),desc:b.getResource(L.desc),
-image:L.preview})}0<E.entries.length&&x.push(E)}for(z=0;z<n.length;z++)if(null==b.sidebar.enabledLibraries)x.push(n[z]);else{E={title:n[z].title,entries:[]};for(M=0;M<n[z].entries.length;M++)0<=mxUtils.indexOf(b.sidebar.enabledLibraries,n[z].entries[M].id)&&E.entries.push(n[z].entries[M]);0<E.entries.length&&x.push(E)}n=x;if(l){z=mxUtils.bind(this,function(F){for(var T=0;T<F.length;T++)(function(W){var p=k.cloneNode(!1);p.style.fontWeight="bold";p.style.backgroundColor="light-dark(#e5e5e5, #505759)";
-p.style.padding="6px 0px 6px 20px";mxUtils.write(p,W.title);O.appendChild(p);for(var u=0;u<W.entries.length;u++)(function(G){var I=k.cloneNode(!1);I.style.cursor="pointer";I.style.padding="4px 0px 4px 20px";I.style.whiteSpace="nowrap";I.style.overflow="hidden";I.style.textOverflow="ellipsis";I.setAttribute("title",G.title+" ("+G.id+")");var H=document.createElement("input");H.setAttribute("type","checkbox");H.checked=b.sidebar.isEntryVisible(G.id);H.defaultChecked=H.checked;I.appendChild(H);mxUtils.write(I,
-" "+G.title);O.appendChild(I);var g=function(t){if(null==t||"INPUT"!=mxEvent.getSource(t).nodeName){R.style.textAlign="center";R.style.padding="0px";R.style.color="";R.innerText="";if(null!=G.desc){var B=document.createElement("pre");B.style.boxSizing="border-box";B.style.fontFamily="inherit";B.style.margin="20px";B.style.right="0px";B.style.textAlign="left";mxUtils.write(B,G.desc);R.appendChild(B)}null!=G.imageCallback?G.imageCallback(R):null!=G.image?(B=document.createElement("img"),B.setAttribute("border",
-"0"),B.style.maxWidth="100%",B.setAttribute("src",G.image),R.appendChild(B)):null==G.desc&&(R.style.padding="20px",R.style.color="rgb(179, 179, 179)",mxUtils.write(R,mxResources.get("noPreview")));null!=c&&(c.style.backgroundColor="");c=I;c.style.backgroundColor="light-dark(#ebf2f9, #000000)";null!=t&&mxEvent.consume(t)}};mxEvent.addListener(I,"click",g);mxEvent.addListener(I,"dblclick",function(t){H.checked=!H.checked;mxEvent.consume(t)});d.push(function(){return H.checked?G.id:null});0==T&&0==u&&
-g()})(W.entries[u])})(F[T])});M=document.createElement("div");M.className="geDialogTitle";mxUtils.write(M,mxResources.get("shapes"));M.style.position="absolute";M.style.top="0px";M.style.left="0px";M.style.lineHeight="40px";M.style.height="40px";M.style.right="0px";var O=document.createElement("div"),R=document.createElement("div");O.style.position="absolute";O.style.top="40px";O.style.left="0px";O.style.width="202px";O.style.bottom="60px";O.style.overflow="auto";R.style.position="absolute";R.style.left=
-"202px";R.style.right="0px";R.style.top="40px";R.style.bottom="60px";R.style.overflow="auto";R.style.borderLeftStyle="solid";R.style.borderLeftWidth="1px";R.style.textAlign="center";var c=null,d=[],k=document.createElement("div");k.style.position="relative";k.style.left="0px";k.style.right="0px";z(n);f.style.padding="30px";f.appendChild(M);f.appendChild(O);f.appendChild(R);n=document.createElement("div");n.className="geDialogFooter";n.style.position="absolute";n.style.paddingRight="16px";n.style.left=
-"0px";n.style.right="0px";n.style.bottom="0px";n.style.height="60px";n.style.lineHeight="52px";var m=document.createElement("input");m.setAttribute("type","checkbox");m.style.position="relative";m.style.top="1px";m.checked=b.sidebar.sidebarTitles;m.defaultChecked=m.checked;n.appendChild(m);z=document.createElement("span");mxUtils.write(z," "+mxResources.get("labels"));z.style.paddingRight="20px";n.appendChild(z);mxEvent.addListener(z,"click",function(F){m.checked=!m.checked;mxEvent.consume(F)});var q=
-document.createElement("input");q.setAttribute("type","checkbox");if(isLocalStorage||mxClient.IS_CHROMEAPP)z=document.createElement("span"),z.style.paddingRight="20px",z.appendChild(q),mxUtils.write(z," "+mxResources.get("rememberThisSetting")),q.style.position="relative",q.style.top="1px",q.checked=!0,q.defaultChecked=!0,mxEvent.addListener(z,"click",function(F){mxEvent.getSource(F)!=q&&(q.checked=!q.checked,mxEvent.consume(F))}),n.appendChild(z);z=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});
-z.className="geBtn";M=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();for(var F=[],T=0;T<d.length;T++){var W=d[T].apply(this,arguments);null!=W&&F.push(W)}"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||!Editor.isSettingsEnabled()||(T=mxUtils.indexOf(F,".scratchpad"),null!=b.scratchpad!=(0<=T&&0<F.splice(T,1).length)&&b.toggleScratchpad(),T=mxUtils.indexOf(F,"search"),mxSettings.settings.search=0<=T&&0<F.splice(T,1).length,b.sidebar.showPalette("search",
-mxSettings.settings.search),q.checked&&mxSettings.save());b.sidebar.showEntries(F.join(";"),q.checked,!0);b.setSidebarTitles(m.checked,q.checked)});M.className="geBtn gePrimaryBtn"}else{var v=document.createElement("table");z=document.createElement("tbody");f.style.height="100%";f.style.overflow="auto";M=document.createElement("tr");v.style.width="100%";l=document.createElement("td");x=document.createElement("td");y=document.createElement("td");var A=mxUtils.bind(this,function(F,T,W){var p=document.createElement("input");
-p.type="checkbox";v.appendChild(p);p.checked=b.sidebar.isEntryVisible(W);var u=document.createElement("span");mxUtils.write(u,T);T=document.createElement("div");T.style.display="block";T.appendChild(p);T.appendChild(u);mxEvent.addListener(u,"click",function(G){p.checked=!p.checked;mxEvent.consume(G)});F.appendChild(T);return function(){return p.checked?W:null}});M.appendChild(l);M.appendChild(x);M.appendChild(y);z.appendChild(M);v.appendChild(z);d=[];var C=0;for(z=0;z<n.length;z++)for(M=0;M<n[z].entries.length;M++)C++;
-var D=[l,x,y],J=0;for(z=0;z<n.length;z++)(function(F){for(var T=0;T<F.entries.length;T++){var W=F.entries[T];d.push(A(D[Math.floor(J/(C/3))],W.title,W.id));J++}})(n[z]);f.appendChild(v);n=document.createElement("div");n.style.marginTop="18px";n.style.textAlign="center";q=document.createElement("input");isLocalStorage&&(q.setAttribute("type","checkbox"),q.checked=!0,q.defaultChecked=!0,n.appendChild(q),z=document.createElement("span"),mxUtils.write(z," "+mxResources.get("rememberThisSetting")),n.appendChild(z),
-mxEvent.addListener(z,"click",function(F){q.checked=!q.checked;mxEvent.consume(F)}));f.appendChild(n);z=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});z.className="geBtn";M=mxUtils.button(mxResources.get("apply"),function(){for(var F=["search"],T=0;T<d.length;T++){var W=d[T].apply(this,arguments);null!=W&&F.push(W)}b.sidebar.showEntries(0<F.length?F.join(";"):"",q.checked);b.hideDialog()});M.className="geBtn gePrimaryBtn";n=document.createElement("div");n.style.marginTop="26px";
-n.style.textAlign="right"}b.editor.cancelFirst?(n.appendChild(z),n.appendChild(M)):(n.appendChild(M),n.appendChild(z));f.appendChild(n);this.container=f},PluginsDialog=function(b,l,n,f){function x(){M=!0;if(0==E.length)y.innerText=mxResources.get("noPlugins");else{y.innerText="";for(var d=0;d<E.length;d++){var k=document.createElement("span");k.style.display="flex";k.style.alignItems="center";k.style.whiteSpace="nowrap";var m=document.createElement("img");m.src=Editor.trashImage;m.style.position=
-"relative";m.style.cursor="pointer";m.style.marginRight="4px";m.style.display="inline-block";m.style.width="18px";m.setAttribute("title",mxResources.get("delete"));k.appendChild(m);mxUtils.write(k,E[d]);y.appendChild(k);mxUtils.br(y);mxEvent.addListener(m,"click",function(q){return function(){b.confirm(mxResources.get("delete")+' "'+E[q]+'"?',function(){null!=n&&n(E[q]);E.splice(q,1);x()})}}(d))}}}var z=document.createElement("div"),y=document.createElement("div");y.style.height="180px";y.style.overflow=
-"auto";var E=mxSettings.getPlugins().slice(),M=!1;z.appendChild(y);x();M=!1;var L=mxUtils.button(mxResources.get("add"),null!=l?function(){l(function(d){d&&0>mxUtils.indexOf(E,d)&&E.push(d);x()})}:function(){var d=document.createElement("div"),k=document.createElement("span");k.style.marginTop="6px";mxUtils.write(k,mxResources.get("builtinPlugins")+": ");d.appendChild(k);var m=document.createElement("select");m.style.width="150px";for(k=0;k<App.publicPlugin.length;k++){var q=document.createElement("option");
-mxUtils.write(q,App.publicPlugin[k]);q.value=App.publicPlugin[k];m.appendChild(q)}d.appendChild(m);mxUtils.br(d);mxUtils.br(d);k=mxUtils.button(mxResources.get("custom")+"...",function(){var v=new FilenameDialog(b,"",mxResources.get("add"),function(A){b.hideDialog();if(null!=A&&0<A.length){A=A.split(";");for(var C=0;C<A.length;C++){var D=A[C],J=App.pluginRegistry[D];null!=J&&(D=J);0<D.length&&0>mxUtils.indexOf(E,D)&&E.push(D)}x()}},mxResources.get("enterValue")+" ("+mxResources.get("url")+")");b.showDialog(v.container,
-300,80,!0,!0);v.init()});k.className="geBtn";ALLOW_CUSTOM_PLUGINS||(k.style.display="none");d=new CustomDialog(b,d,mxUtils.bind(this,function(){var v=App.pluginRegistry[m.value];0>mxUtils.indexOf(E,v)&&(E.push(v),x())}),null,null,null,k);b.showDialog(d.container,360,100,!0,!0)});L.className="geBtn";var O=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});O.className="geBtn";var R=mxUtils.button(f?mxResources.get("close"):mxResources.get("apply"),function(){M?(mxSettings.setPlugins(E),
-mxSettings.save(),b.hideDialog(),b.alert(mxResources.get("restartForChangeRequired"))):b.hideDialog()});R.className="geBtn gePrimaryBtn";var c=document.createElement("div");c.style.marginTop="14px";c.style.textAlign="right";b.isOffline()||c.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/plugins"));b.editor.cancelFirst?(f||c.appendChild(O),c.appendChild(L),c.appendChild(R)):(c.appendChild(L),c.appendChild(R),f||c.appendChild(O));z.appendChild(c);this.container=z},CropImageDialog=function(b,
-l,n,f){function x(){null!=d&&(R.style.overflow="hidden",d.maxFitScale=null,d.fit(8),d.center(),R.style.overflow="auto")}function z(U){var N=document.createElement("span");N.style.marginLeft="6px";N.style.fontSize="11px";mxUtils.write(N,U);W.appendChild(N);U=document.createElement("input");U.setAttribute("type","text");U.style.cssText="width:46px;margin:0 2px;text-align:right;";W.appendChild(U);return U}function y(){var U=v.geometry;u.value=Math.round(U.x);G.value=Math.round(U.y);I.value=Math.round(U.width);
-H.value=Math.round(U.height)}function E(){if(null!=d){var U=parseFloat(u.value),N=parseFloat(G.value),P=parseFloat(I.value),V=parseFloat(H.value);if(isFinite(U)&&isFinite(N)&&isFinite(P)&&isFinite(V)&&0<P&&0<V){var Y=v.geometry.clone();Y.x=U;Y.y=N;Y.width=P;Y.height=V;d.model.setGeometry(v,Y);d.model.setStyle(v,D+M());d.selectAll()}}}function M(){var U=t.checked,N=B.checked,P=v.geometry;0>P.x?(P.width+=P.x,P.x=0):P.x+P.width>A&&(P.width=A-P.x,P.x=Math.min(P.x,A));0>P.y?(P.height+=P.y,P.y=0):P.y+P.height>
-C&&(P.height=C-P.y,P.y=Math.min(P.y,C));var V=P.x/A*100,Y=100-(P.x+P.width)/A*100,X=100-(P.y+P.height)/C*100;return"inset("+mxUtils.format(P.y/C*100)+"% "+mxUtils.format(Y)+"% "+mxUtils.format(X)+"% "+mxUtils.format(V)+"%"+(U?" round "+q+"%":N?" round 50%":"")+")"}function L(U){null!=d&&(!0!==U&&(d.model.setGeometry(v,m.clone()),q=5,Q.value=q),d.model.setStyle(v,D+M()),d.selectAll(),y(),K.style.visibility=t.checked?"visible":"hidden")}var O=document.createElement("div");O.style.display="flex";O.style.flexDirection=
-"column";O.style.height="100%";var R=document.createElement("div");R.style.flex="1";R.style.minHeight="0";R.style.overflow="auto";R.style.border="1px solid";O.appendChild(R);var c=l.replace(";base64",""),d=null,k=null,m=null,q=5,v=new mxCell("",new mxGeometry(0,0,1,1),""),A=0,C=0,D="shape=image;fillColor=none;rotatable=0;cloneable=0;deletable=0;image="+c+";clipPath=",J="shape=image;fillColor=none;movable=0;resizable=0;editable=0;connectable=0;rotatable=0;deletable=0;opacity=40;image="+c+";",F="shape=image;fillColor=none;movable=0;resizable=0;editable=0;connectable=0;rotatable=0;deletable=0;image="+
-c+";",T=new Image;T.onload=function(){function U(){d.model.setStyle(v,D+M());y()}A=T.naturalWidth;C=T.naturalHeight;m=new mxGeometry(.15*A,.15*C,.7*A,.7*C);v.geometry=m.clone();d=new Graph(R);d.autoExtend=!1;d.autoScroll=!1;d.setGridEnabled(!1);d.setEnabled(!0);d.setPanning(!0);d.setConnectable(!1);d.getRubberband().setEnabled(!1);d.graphHandler.allowLivePreview=!1;d.centerZoom=!0;d.background="#ffffff";var N=d.createVertexHandler;d.createVertexHandler=function(){var la=N.apply(this,arguments);la.livePreview=
-!1;return la};var P=d.isCellSelectable;d.isCellSelectable=function(la){return la===v&&P.apply(this,arguments)};k=new mxCell("",new mxGeometry(0,0,A,C),J);k.vertex=!0;d.addCell(k);if(null!=n)try{if("inset"==n.substring(0,5)){var V=v.geometry,Y=n.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),X=parseFloat(Y[0]),Z=parseFloat(Y[1]),aa=parseFloat(Y[2]),ea=parseFloat(Y[3]);isFinite(X)&&isFinite(Z)&&isFinite(aa)&&isFinite(ea)?(V.x=ea/100*A,V.y=X/100*C,V.width=(100-Z)/100*A-V.x,V.height=(100-aa)/100*C-V.y,"round"==
-Y[4]?"50%"==Y[5]?B.setAttribute("checked","checked"):(q=parseInt(Y[5]),Q.value=q,t.setAttribute("checked","checked"),K.style.visibility="visible"):g.setAttribute("checked","checked")):n=null}else n=null}catch(la){}v.style=D+(n?n:M());v.vertex=!0;d.addCell(v);d.selectAll();d.addListener(mxEvent.CELLS_MOVED,U);d.addListener(mxEvent.CELLS_RESIZED,U);var ha=d.graphHandler.mouseUp,ba=d.graphHandler.mouseDown;d.graphHandler.mouseUp=function(){ha.apply(this,arguments);null!=k&&d.model.setStyle(k,J)};d.graphHandler.mouseDown=
+image:L.preview})}0<E.entries.length&&x.push(E)}for(z=0;z<n.length;z++)if(null==b.sidebar.enabledLibraries)x.push(n[z]);else{E={title:n[z].title,entries:[]};for(M=0;M<n[z].entries.length;M++)0<=mxUtils.indexOf(b.sidebar.enabledLibraries,n[z].entries[M].id)&&E.entries.push(n[z].entries[M]);0<E.entries.length&&x.push(E)}n=x;if(l){z=mxUtils.bind(this,function(J){for(var F=0;F<J.length;F++)(function(T){var W=document.createElement("div");W.className="geMoreShapesSectionHeader";mxUtils.write(W,T.title);
+O.appendChild(W);for(var p=0;p<T.entries.length;p++)(function(u){var G=document.createElement("div");G.className="geMoreShapesItem";G.setAttribute("title",u.title+" ("+u.id+")");var I=document.createElement("input");I.setAttribute("type","checkbox");I.checked=b.sidebar.isEntryVisible(u.id);I.defaultChecked=I.checked;G.appendChild(I);var H=document.createElement("span");mxUtils.write(H,u.title);G.appendChild(H);O.appendChild(G);H=function(g){if(null==g||"INPUT"!=mxEvent.getSource(g).nodeName){R.style.textAlign=
+"center";R.style.padding="0px";R.style.color="";R.innerText="";if(null!=u.desc){var t=document.createElement("pre");t.style.boxSizing="border-box";t.style.fontFamily="inherit";t.style.margin="20px";t.style.right="0px";t.style.textAlign="left";mxUtils.write(t,u.desc);R.appendChild(t)}null!=u.imageCallback?u.imageCallback(R):null!=u.image?(t=document.createElement("img"),t.setAttribute("border","0"),t.style.maxWidth="100%",t.setAttribute("src",u.image),R.appendChild(t)):null==u.desc&&(R.style.padding=
+"20px",R.style.color="rgb(179, 179, 179)",mxUtils.write(R,mxResources.get("noPreview")));null!=c&&c.classList.remove("geMoreShapesItemSelected");c=G;c.classList.add("geMoreShapesItemSelected");null!=g&&mxEvent.consume(g)}};mxEvent.addListener(G,"click",H);mxEvent.addListener(G,"dblclick",function(g){I.checked=!I.checked;mxEvent.consume(g)});d.push(function(){return I.checked?u.id:null});0==F&&0==p&&H()})(T.entries[p])})(J[F])});M=document.createElement("div");M.className="geDialogTitle";mxUtils.write(M,
+mxResources.get("shapes"));M.style.position="absolute";M.style.top="0px";M.style.left="0px";M.style.lineHeight="40px";M.style.height="40px";M.style.right="0px";var O=document.createElement("div"),R=document.createElement("div");O.style.position="absolute";O.style.top="40px";O.style.left="0px";O.style.width="220px";O.style.bottom="70px";O.style.overflow="auto";R.className="geMoreShapesPreview";R.style.position="absolute";R.style.left="220px";R.style.right="0px";R.style.top="40px";R.style.bottom="70px";
+R.style.overflow="auto";R.style.textAlign="center";var c=null,d=[];z(n);f.appendChild(M);f.appendChild(O);f.appendChild(R);n=document.createElement("div");n.className="geDialogFooter";n.style.position="absolute";n.style.display="flex";n.style.alignItems="center";n.style.paddingRight="16px";n.style.paddingLeft="16px";n.style.left="0px";n.style.right="0px";n.style.bottom="0px";n.style.height="70px";z=document.createElement("div");z.className="geMoreShapesFooterChecks";M=document.createElement("label");
+M.className="geMoreShapesFooterCheck";var k=document.createElement("input");k.setAttribute("type","checkbox");k.checked=b.sidebar.sidebarTitles;k.defaultChecked=k.checked;M.appendChild(k);l=document.createElement("span");mxUtils.write(l,mxResources.get("labels"));M.appendChild(l);z.appendChild(M);var m=document.createElement("input");m.setAttribute("type","checkbox");if(isLocalStorage||mxClient.IS_CHROMEAPP)M=document.createElement("label"),M.className="geMoreShapesFooterCheck",m.checked=!0,m.defaultChecked=
+!0,M.appendChild(m),l=document.createElement("span"),mxUtils.write(l,mxResources.get("rememberThisSetting")),M.appendChild(l),z.appendChild(M);n.appendChild(z);z=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});z.className="geBtn";M=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();for(var J=[],F=0;F<d.length;F++){var T=d[F].apply(this,arguments);null!=T&&J.push(T)}"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||!Editor.isSettingsEnabled()||
+(F=mxUtils.indexOf(J,".scratchpad"),null!=b.scratchpad!=(0<=F&&0<J.splice(F,1).length)&&b.toggleScratchpad(),F=mxUtils.indexOf(J,"search"),mxSettings.settings.search=0<=F&&0<J.splice(F,1).length,b.sidebar.showPalette("search",mxSettings.settings.search),m.checked&&mxSettings.save());b.sidebar.showEntries(J.join(";"),m.checked,!0);b.setSidebarTitles(k.checked,m.checked)});M.className="geBtn gePrimaryBtn";l=document.createElement("div");l.style.flex="1";l.style.textAlign="right";b.editor.cancelFirst?
+(l.appendChild(z),l.appendChild(M)):(l.appendChild(M),l.appendChild(z));n.appendChild(l)}else{var q=document.createElement("table");z=document.createElement("tbody");f.style.height="100%";f.style.overflow="auto";M=document.createElement("tr");q.style.width="100%";l=document.createElement("td");x=document.createElement("td");y=document.createElement("td");var v=mxUtils.bind(this,function(J,F,T){var W=document.createElement("input");W.type="checkbox";q.appendChild(W);W.checked=b.sidebar.isEntryVisible(T);
+var p=document.createElement("span");mxUtils.write(p,F);F=document.createElement("div");F.style.display="block";F.appendChild(W);F.appendChild(p);mxEvent.addListener(p,"click",function(u){W.checked=!W.checked;mxEvent.consume(u)});J.appendChild(F);return function(){return W.checked?T:null}});M.appendChild(l);M.appendChild(x);M.appendChild(y);z.appendChild(M);q.appendChild(z);d=[];var A=0;for(z=0;z<n.length;z++)for(M=0;M<n[z].entries.length;M++)A++;var B=[l,x,y],D=0;for(z=0;z<n.length;z++)(function(J){for(var F=
+0;F<J.entries.length;F++){var T=J.entries[F];d.push(v(B[Math.floor(D/(A/3))],T.title,T.id));D++}})(n[z]);f.appendChild(q);n=document.createElement("div");n.style.marginTop="18px";n.style.textAlign="center";m=document.createElement("input");isLocalStorage&&(m.setAttribute("type","checkbox"),m.checked=!0,m.defaultChecked=!0,n.appendChild(m),z=document.createElement("span"),mxUtils.write(z," "+mxResources.get("rememberThisSetting")),n.appendChild(z),mxEvent.addListener(z,"click",function(J){m.checked=
+!m.checked;mxEvent.consume(J)}));f.appendChild(n);z=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});z.className="geBtn";M=mxUtils.button(mxResources.get("apply"),function(){for(var J=["search"],F=0;F<d.length;F++){var T=d[F].apply(this,arguments);null!=T&&J.push(T)}b.sidebar.showEntries(0<J.length?J.join(";"):"",m.checked);b.hideDialog()});M.className="geBtn gePrimaryBtn";n=document.createElement("div");n.style.marginTop="26px";n.style.textAlign="right";b.editor.cancelFirst?(n.appendChild(z),
+n.appendChild(M)):(n.appendChild(M),n.appendChild(z))}f.appendChild(n);this.container=f},PluginsDialog=function(b,l,n,f){function x(){M=!0;if(0==E.length)y.innerText=mxResources.get("noPlugins");else{y.innerText="";for(var d=0;d<E.length;d++){var k=document.createElement("span");k.style.display="flex";k.style.alignItems="center";k.style.whiteSpace="nowrap";var m=document.createElement("img");m.src=Editor.trashImage;m.style.position="relative";m.style.cursor="pointer";m.style.marginRight="4px";m.style.display=
+"inline-block";m.style.width="18px";m.setAttribute("title",mxResources.get("delete"));k.appendChild(m);mxUtils.write(k,E[d]);y.appendChild(k);mxUtils.br(y);mxEvent.addListener(m,"click",function(q){return function(){b.confirm(mxResources.get("delete")+' "'+E[q]+'"?',function(){null!=n&&n(E[q]);E.splice(q,1);x()})}}(d))}}}var z=document.createElement("div"),y=document.createElement("div");y.style.height="180px";y.style.overflow="auto";var E=mxSettings.getPlugins().slice(),M=!1;z.appendChild(y);x();
+M=!1;var L=mxUtils.button(mxResources.get("add"),null!=l?function(){l(function(d){d&&0>mxUtils.indexOf(E,d)&&E.push(d);x()})}:function(){var d=document.createElement("div"),k=document.createElement("span");k.style.marginTop="6px";mxUtils.write(k,mxResources.get("builtinPlugins")+": ");d.appendChild(k);var m=document.createElement("select");m.style.width="150px";for(k=0;k<App.publicPlugin.length;k++){var q=document.createElement("option");mxUtils.write(q,App.publicPlugin[k]);q.value=App.publicPlugin[k];
+m.appendChild(q)}d.appendChild(m);mxUtils.br(d);mxUtils.br(d);k=mxUtils.button(mxResources.get("custom")+"...",function(){var v=new FilenameDialog(b,"",mxResources.get("add"),function(A){b.hideDialog();if(null!=A&&0<A.length){A=A.split(";");for(var B=0;B<A.length;B++){var D=A[B],J=App.pluginRegistry[D];null!=J&&(D=J);0<D.length&&0>mxUtils.indexOf(E,D)&&E.push(D)}x()}},mxResources.get("enterValue")+" ("+mxResources.get("url")+")");b.showDialog(v.container,300,80,!0,!0);v.init()});k.className="geBtn";
+ALLOW_CUSTOM_PLUGINS||(k.style.display="none");d=new CustomDialog(b,d,mxUtils.bind(this,function(){var v=App.pluginRegistry[m.value];0>mxUtils.indexOf(E,v)&&(E.push(v),x())}),null,null,null,k);b.showDialog(d.container,360,100,!0,!0)});L.className="geBtn";var O=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});O.className="geBtn";var R=mxUtils.button(f?mxResources.get("close"):mxResources.get("apply"),function(){M?(mxSettings.setPlugins(E),mxSettings.save(),b.hideDialog(),b.alert(mxResources.get("restartForChangeRequired"))):
+b.hideDialog()});R.className="geBtn gePrimaryBtn";var c=document.createElement("div");c.style.marginTop="14px";c.style.textAlign="right";b.isOffline()||c.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/plugins"));b.editor.cancelFirst?(f||c.appendChild(O),c.appendChild(L),c.appendChild(R)):(c.appendChild(L),c.appendChild(R),f||c.appendChild(O));z.appendChild(c);this.container=z},CropImageDialog=function(b,l,n,f){function x(){null!=d&&(R.style.overflow="hidden",d.maxFitScale=null,d.fit(8),
+d.center(),R.style.overflow="auto")}function z(U){var N=document.createElement("span");N.style.marginLeft="6px";N.style.fontSize="11px";mxUtils.write(N,U);W.appendChild(N);U=document.createElement("input");U.setAttribute("type","text");U.style.cssText="width:46px;margin:0 2px;text-align:right;";W.appendChild(U);return U}function y(){var U=v.geometry;u.value=Math.round(U.x);G.value=Math.round(U.y);I.value=Math.round(U.width);H.value=Math.round(U.height)}function E(){if(null!=d){var U=parseFloat(u.value),
+N=parseFloat(G.value),P=parseFloat(I.value),V=parseFloat(H.value);if(isFinite(U)&&isFinite(N)&&isFinite(P)&&isFinite(V)&&0<P&&0<V){var Y=v.geometry.clone();Y.x=U;Y.y=N;Y.width=P;Y.height=V;d.model.setGeometry(v,Y);d.model.setStyle(v,D+M());d.selectAll()}}}function M(){var U=t.checked,N=C.checked,P=v.geometry;0>P.x?(P.width+=P.x,P.x=0):P.x+P.width>A&&(P.width=A-P.x,P.x=Math.min(P.x,A));0>P.y?(P.height+=P.y,P.y=0):P.y+P.height>B&&(P.height=B-P.y,P.y=Math.min(P.y,B));var V=P.x/A*100,Y=100-(P.x+P.width)/
+A*100,X=100-(P.y+P.height)/B*100;return"inset("+mxUtils.format(P.y/B*100)+"% "+mxUtils.format(Y)+"% "+mxUtils.format(X)+"% "+mxUtils.format(V)+"%"+(U?" round "+q+"%":N?" round 50%":"")+")"}function L(U){null!=d&&(!0!==U&&(d.model.setGeometry(v,m.clone()),q=5,Q.value=q),d.model.setStyle(v,D+M()),d.selectAll(),y(),K.style.visibility=t.checked?"visible":"hidden")}var O=document.createElement("div");O.style.display="flex";O.style.flexDirection="column";O.style.height="100%";var R=document.createElement("div");
+R.style.flex="1";R.style.minHeight="0";R.style.overflow="auto";R.style.border="1px solid";O.appendChild(R);var c=l.replace(";base64",""),d=null,k=null,m=null,q=5,v=new mxCell("",new mxGeometry(0,0,1,1),""),A=0,B=0,D="shape=image;fillColor=none;rotatable=0;cloneable=0;deletable=0;image="+c+";clipPath=",J="shape=image;fillColor=none;movable=0;resizable=0;editable=0;connectable=0;rotatable=0;deletable=0;opacity=40;image="+c+";",F="shape=image;fillColor=none;movable=0;resizable=0;editable=0;connectable=0;rotatable=0;deletable=0;image="+
+c+";",T=new Image;T.onload=function(){function U(){d.model.setStyle(v,D+M());y()}A=T.naturalWidth;B=T.naturalHeight;m=new mxGeometry(.15*A,.15*B,.7*A,.7*B);v.geometry=m.clone();d=new Graph(R);d.autoExtend=!1;d.autoScroll=!1;d.setGridEnabled(!1);d.setEnabled(!0);d.setPanning(!0);d.setConnectable(!1);d.getRubberband().setEnabled(!1);d.graphHandler.allowLivePreview=!1;d.centerZoom=!0;d.background="#ffffff";var N=d.createVertexHandler;d.createVertexHandler=function(){var la=N.apply(this,arguments);la.livePreview=
+!1;return la};var P=d.isCellSelectable;d.isCellSelectable=function(la){return la===v&&P.apply(this,arguments)};k=new mxCell("",new mxGeometry(0,0,A,B),J);k.vertex=!0;d.addCell(k);if(null!=n)try{if("inset"==n.substring(0,5)){var V=v.geometry,Y=n.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),X=parseFloat(Y[0]),Z=parseFloat(Y[1]),aa=parseFloat(Y[2]),ea=parseFloat(Y[3]);isFinite(X)&&isFinite(Z)&&isFinite(aa)&&isFinite(ea)?(V.x=ea/100*A,V.y=X/100*B,V.width=(100-Z)/100*A-V.x,V.height=(100-aa)/100*B-V.y,"round"==
+Y[4]?"50%"==Y[5]?C.setAttribute("checked","checked"):(q=parseInt(Y[5]),Q.value=q,t.setAttribute("checked","checked"),K.style.visibility="visible"):g.setAttribute("checked","checked")):n=null}else n=null}catch(la){}v.style=D+(n?n:M());v.vertex=!0;d.addCell(v);d.selectAll();d.addListener(mxEvent.CELLS_MOVED,U);d.addListener(mxEvent.CELLS_RESIZED,U);var ha=d.graphHandler.mouseUp,ba=d.graphHandler.mouseDown;d.graphHandler.mouseUp=function(){ha.apply(this,arguments);null!=k&&d.model.setStyle(k,J)};d.graphHandler.mouseDown=
function(){ba.apply(this,arguments);null!=k&&d.model.setStyle(k,F)};d.dblClick=function(){};var ia=d.getSelectionModel().changeSelection;d.getSelectionModel().changeSelection=function(){ia.call(this,[v],[v])};y();x()};T.onerror=function(){T.onload=null;T.src=Editor.errorImage};T.src=l;var W=document.createElement("div");W.style.display="flex";W.style.flexShrink="0";W.style.alignItems="center";W.style.justifyContent="center";W.style.paddingTop="6px";l=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),
function(){null!=d&&d.zoomIn()});c=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),function(){null!=d&&d.zoomOut()});var p=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){x()});W.appendChild(l);W.appendChild(c);W.appendChild(p);var u=z("X"),G=z("Y"),I=z("W"),H=z("H");mxEvent.addListener(u,"change",E);mxEvent.addListener(G,"change",E);mxEvent.addListener(I,"change",E);mxEvent.addListener(H,"change",E);O.appendChild(W);l=document.createElement("div");
l.style.whiteSpace="nowrap";l.style.display="flex";l.style.flexShrink="0";l.style.alignItems="center";l.style.justifyContent="center";var g=document.createElement("input");g.setAttribute("type","radio");g.setAttribute("id","croppingRect");g.setAttribute("name","croppingShape");g.setAttribute("checked","checked");g.style.margin="5px";l.appendChild(g);c=document.createElement("label");c.setAttribute("for","croppingRect");c.style.overflow="hidden";c.style.textOverflow="ellipsis";c.style.padding="3px";
-mxUtils.write(c,mxResources.get("rectangle"));l.appendChild(c);var t=document.createElement("input");t.setAttribute("type","radio");t.setAttribute("id","croppingRounded");t.setAttribute("name","croppingShape");t.style.margin="5px";l.appendChild(t);c=document.createElement("label");c.setAttribute("for","croppingRounded");c.style.overflow="hidden";c.style.textOverflow="ellipsis";c.style.padding="3px";mxUtils.write(c,mxResources.get("rounded"));l.appendChild(c);var B=document.createElement("input");
-B.setAttribute("type","radio");B.setAttribute("id","croppingEllipse");B.setAttribute("name","croppingShape");B.style.margin="5px";l.appendChild(B);c=document.createElement("label");c.setAttribute("for","croppingEllipse");c.style.overflow="hidden";c.style.textOverflow="ellipsis";c.style.padding="3px";mxUtils.write(c,mxResources.get("ellipse"));l.appendChild(c);O.appendChild(l);mxEvent.addListener(g,"change",L);mxEvent.addListener(t,"change",L);mxEvent.addListener(B,"change",L);var K=document.createElement("div");
+mxUtils.write(c,mxResources.get("rectangle"));l.appendChild(c);var t=document.createElement("input");t.setAttribute("type","radio");t.setAttribute("id","croppingRounded");t.setAttribute("name","croppingShape");t.style.margin="5px";l.appendChild(t);c=document.createElement("label");c.setAttribute("for","croppingRounded");c.style.overflow="hidden";c.style.textOverflow="ellipsis";c.style.padding="3px";mxUtils.write(c,mxResources.get("rounded"));l.appendChild(c);var C=document.createElement("input");
+C.setAttribute("type","radio");C.setAttribute("id","croppingEllipse");C.setAttribute("name","croppingShape");C.style.margin="5px";l.appendChild(C);c=document.createElement("label");c.setAttribute("for","croppingEllipse");c.style.overflow="hidden";c.style.textOverflow="ellipsis";c.style.padding="3px";mxUtils.write(c,mxResources.get("ellipse"));l.appendChild(c);O.appendChild(l);mxEvent.addListener(g,"change",L);mxEvent.addListener(t,"change",L);mxEvent.addListener(C,"change",L);var K=document.createElement("div");
K.style.textAlign="center";K.style.flexShrink="0";K.style.visibility="hidden";var Q=document.createElement("input");Q.setAttribute("type","range");Q.setAttribute("min","1");Q.setAttribute("max","49");Q.setAttribute("value",q);Q.setAttribute("title",mxResources.get("arcSize"));K.appendChild(Q);O.appendChild(K);mxEvent.addListener(Q,"change",function(){q=this.value;L(!0)});l=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});l.className="geBtn";c=mxUtils.button(mxResources.get("apply"),
-function(){f(M(),v.geometry.width,v.geometry.height);b.hideDialog()});c.className="geBtn gePrimaryBtn";p=mxUtils.button(mxResources.get("reset"),function(){f(null,A,C);b.hideDialog()});p.className="geBtn";var S=document.createElement("div");S.style.flexShrink="0";S.style.marginTop="10px";S.style.whiteSpace="nowrap";S.style.display="flex";S.style.justifyContent="flex-end";b.editor.cancelFirst?(S.appendChild(l),S.appendChild(p),S.appendChild(c)):(S.appendChild(p),S.appendChild(c),S.appendChild(l));
+function(){f(M(),v.geometry.width,v.geometry.height);b.hideDialog()});c.className="geBtn gePrimaryBtn";p=mxUtils.button(mxResources.get("reset"),function(){f(null,A,B);b.hideDialog()});p.className="geBtn";var S=document.createElement("div");S.style.flexShrink="0";S.style.marginTop="10px";S.style.whiteSpace="nowrap";S.style.display="flex";S.style.justifyContent="flex-end";b.editor.cancelFirst?(S.appendChild(l),S.appendChild(p),S.appendChild(c)):(S.appendChild(p),S.appendChild(c),S.appendChild(l));
O.appendChild(S);this.container=O},EditGeometryDialog=function(b,l){var n=b.editor.graph,f=1==l.length?n.getCellGeometry(l[0]):null,x=document.createElement("div"),z=document.createElement("table"),y=document.createElement("tbody"),E=document.createElement("tr"),M=document.createElement("td"),L=document.createElement("td");z.style.paddingLeft="6px";mxUtils.write(M,mxResources.get("relative")+":");var O=document.createElement("input");O.setAttribute("type","checkbox");null!=f&&f.relative&&(O.setAttribute("checked",
"checked"),O.defaultChecked=!0);this.init=function(){O.focus()};L.appendChild(O);E.appendChild(M);E.appendChild(L);y.appendChild(E);E=document.createElement("tr");M=document.createElement("td");L=document.createElement("td");mxUtils.write(M,mxResources.get("left")+":");var R=document.createElement("input");R.setAttribute("type","text");R.style.width="100px";R.value=null!=f?f.x:"";L.appendChild(R);E.appendChild(M);E.appendChild(L);y.appendChild(E);E=document.createElement("tr");M=document.createElement("td");
L=document.createElement("td");mxUtils.write(M,mxResources.get("top")+":");var c=document.createElement("input");c.setAttribute("type","text");c.style.width="100px";c.value=null!=f?f.y:"";L.appendChild(c);E.appendChild(M);E.appendChild(L);y.appendChild(E);E=document.createElement("tr");M=document.createElement("td");L=document.createElement("td");mxUtils.write(M,mxResources.get("dx")+":");var d=document.createElement("input");d.setAttribute("type","text");d.style.width="100px";d.value=null!=f&&null!=
f.offset?f.offset.x:"";L.appendChild(d);E.appendChild(M);E.appendChild(L);y.appendChild(E);E=document.createElement("tr");M=document.createElement("td");L=document.createElement("td");mxUtils.write(M,mxResources.get("dy")+":");var k=document.createElement("input");k.setAttribute("type","text");k.style.width="100px";k.value=null!=f&&null!=f.offset?f.offset.y:"";L.appendChild(k);E.appendChild(M);E.appendChild(L);y.appendChild(E);E=document.createElement("tr");M=document.createElement("td");L=document.createElement("td");
mxUtils.write(M,mxResources.get("width")+":");var m=document.createElement("input");m.setAttribute("type","text");m.style.width="100px";m.value=null!=f?f.width:"";L.appendChild(m);E.appendChild(M);E.appendChild(L);y.appendChild(E);E=document.createElement("tr");M=document.createElement("td");L=document.createElement("td");mxUtils.write(M,mxResources.get("height")+":");var q=document.createElement("input");q.setAttribute("type","text");q.style.width="100px";q.value=null!=f?f.height:"";L.appendChild(q);
E.appendChild(M);E.appendChild(L);y.appendChild(E);E=document.createElement("tr");M=document.createElement("td");L=document.createElement("td");mxUtils.write(M,mxResources.get("rotation")+":");var v=document.createElement("input");v.setAttribute("type","text");v.style.width="100px";v.value=1==l.length?mxUtils.getValue(n.getCellStyle(l[0]),mxConstants.STYLE_ROTATION,0):"";L.appendChild(v);E.appendChild(M);E.appendChild(L);y.appendChild(E);z.appendChild(y);x.appendChild(z);f=mxUtils.button(mxResources.get("cancel"),
-function(){b.hideDialog()});f.className="geBtn";var A=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();n.getModel().beginUpdate();try{for(var C=0;C<l.length;C++){var D=n.getCellGeometry(l[C]);null!=D&&(D=D.clone(),n.isCellMovable(l[C])&&(D.relative=O.checked,0<mxUtils.trim(R.value).length&&(D.x=Number(R.value)),0<mxUtils.trim(c.value).length&&(D.y=Number(c.value)),0<mxUtils.trim(d.value).length&&(null==D.offset&&(D.offset=new mxPoint),D.offset.x=Number(d.value)),0<mxUtils.trim(k.value).length&&
-(null==D.offset&&(D.offset=new mxPoint),D.offset.y=Number(k.value))),n.isCellResizable(l[C])&&(0<mxUtils.trim(m.value).length&&(D.width=Number(m.value)),0<mxUtils.trim(q.value).length&&(D.height=Number(q.value))),n.getModel().setGeometry(l[C],D));0<mxUtils.trim(v.value).length&&n.setCellStyles(mxConstants.STYLE_ROTATION,Number(v.value),[l[C]])}}finally{n.getModel().endUpdate()}});A.className="geBtn gePrimaryBtn";mxEvent.addListener(x,"keypress",function(C){13==C.keyCode&&A.click()});z=document.createElement("div");
-z.style.marginTop="20px";z.style.textAlign="right";b.editor.cancelFirst?(z.appendChild(f),z.appendChild(A)):(z.appendChild(A),z.appendChild(f));x.appendChild(z);this.container=x},LibraryDialog=function(b,l,n,f,x,z,y){function E(p){for(p=document.elementFromPoint(p.clientX,p.clientY);null!=p&&p.parentNode!=m;)p=p.parentNode;var u=null;if(null!=p){var G=m.firstChild;for(u=0;null!=G&&G!=p;)G=G.nextSibling,u++}return u}function M(p,u,G,I,H,g,t,B,K){try{if(b.spinner.stop(),null==u||"image/"==u.substring(0,
+function(){b.hideDialog()});f.className="geBtn";var A=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();n.getModel().beginUpdate();try{for(var B=0;B<l.length;B++){var D=n.getCellGeometry(l[B]);null!=D&&(D=D.clone(),n.isCellMovable(l[B])&&(D.relative=O.checked,0<mxUtils.trim(R.value).length&&(D.x=Number(R.value)),0<mxUtils.trim(c.value).length&&(D.y=Number(c.value)),0<mxUtils.trim(d.value).length&&(null==D.offset&&(D.offset=new mxPoint),D.offset.x=Number(d.value)),0<mxUtils.trim(k.value).length&&
+(null==D.offset&&(D.offset=new mxPoint),D.offset.y=Number(k.value))),n.isCellResizable(l[B])&&(0<mxUtils.trim(m.value).length&&(D.width=Number(m.value)),0<mxUtils.trim(q.value).length&&(D.height=Number(q.value))),n.getModel().setGeometry(l[B],D));0<mxUtils.trim(v.value).length&&n.setCellStyles(mxConstants.STYLE_ROTATION,Number(v.value),[l[B]])}}finally{n.getModel().endUpdate()}});A.className="geBtn gePrimaryBtn";mxEvent.addListener(x,"keypress",function(B){13==B.keyCode&&A.click()});z=document.createElement("div");
+z.style.marginTop="20px";z.style.textAlign="right";b.editor.cancelFirst?(z.appendChild(f),z.appendChild(A)):(z.appendChild(A),z.appendChild(f));x.appendChild(z);this.container=x},LibraryDialog=function(b,l,n,f,x,z,y){function E(p){for(p=document.elementFromPoint(p.clientX,p.clientY);null!=p&&p.parentNode!=m;)p=p.parentNode;var u=null;if(null!=p){var G=m.firstChild;for(u=0;null!=G&&G!=p;)G=G.nextSibling,u++}return u}function M(p,u,G,I,H,g,t,C,K){try{if(b.spinner.stop(),null==u||"image/"==u.substring(0,
6))if(null==p&&null!=t||null==v[p]){var Q=function(){Z.innerText="";Z.style.cursor="pointer";Z.style.whiteSpace="nowrap";Z.style.textOverflow="ellipsis";mxUtils.write(Z,null!=aa.title&&0<aa.title.length?aa.title:mxResources.get("untitled"));Z.style.color=null==aa.title||0==aa.title.length?"#d0d0d0":""};m.style.backgroundImage="";q.style.display="none";var S=H,U=g;if(H>b.maxImageSize||g>b.maxImageSize){var N=Math.min(1,Math.min(b.maxImageSize/Math.max(1,H)),b.maxImageSize/Math.max(1,g));H*=N;g*=N}S>
U?(U=Math.round(100*U/S),S=100):(S=Math.round(100*S/U),U=100);var P=document.createElement("div");P.setAttribute("draggable","true");P.style.display="inline-block";P.style.position="relative";P.style.padding="0 12px";P.style.cursor="move";mxUtils.setPrefixedStyle(P.style,"transition","transform .1s ease-in-out");if(null!=p){var V=document.createElement("img");V.setAttribute("src",J.convert(p));V.style.width=S+"px";V.style.height=U+"px";V.style.margin="10px";V.style.paddingBottom=Math.floor((100-U)/
2)+"px";V.style.paddingLeft=Math.floor((100-S)/2)+"px";P.appendChild(V)}else if(null!=t){var Y=b.stringToCells("<"==t.xml.charAt(0)?t.xml:Graph.decompress(t.xml));0<Y.length&&(b.sidebar.createThumb(Y,100,100,P,null,!0,!1,null,null,c.shapeBackgroundColor),P.firstChild.style.display="inline-block",P.firstChild.style.cursor="")}var X=document.createElement("img");X.setAttribute("src",Editor.closeBlackImage);X.setAttribute("border","0");X.setAttribute("title",mxResources.get("delete"));X.setAttribute("align",
"top");X.style.paddingTop="4px";X.style.position="absolute";X.style.marginLeft="-12px";X.style.zIndex="1";X.style.cursor="pointer";mxEvent.addListener(X,"dragstart",function(la){mxEvent.consume(la)});(function(la,ka,pa){mxEvent.addListener(X,"click",function(Ba){v[ka]=null;for(var sa=0;sa<R.length;sa++)if(null!=R[sa].data&&R[sa].data==ka||null!=R[sa].xml&&null!=pa&&R[sa].xml==pa.xml){R.splice(sa,1);break}P.parentNode.removeChild(la);0==R.length&&(m.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",
q.style.display="");mxEvent.consume(Ba)});mxEvent.addListener(X,"dblclick",function(Ba){mxEvent.consume(Ba)})})(P,p,t);P.appendChild(X);P.style.marginBottom="30px";var Z=document.createElement("div");Z.style.position="absolute";Z.style.boxSizing="border-box";Z.style.bottom="-18px";Z.style.left="10px";Z.style.right="10px";Z.style.backgroundColor="light-dark(#ffffff, transparent)";Z.style.overflow="hidden";Z.style.textAlign="center";Z.setAttribute("title",mxResources.get("rename"));var aa=null;null!=
-p?(aa={data:p,w:H,h:g,title:K},null!=B&&(aa.aspect=B),v[p]=V,R.push(aa)):null!=t&&(t.aspect="fixed",R.push(t),aa=t);mxEvent.addListener(Z,"keydown",function(la){13==la.keyCode&&null!=D&&(D(),D=null,mxEvent.consume(la))});Q();P.appendChild(Z);mxEvent.addListener(Z,"mousedown",function(la){"true"!=Z.getAttribute("contentEditable")&&mxEvent.consume(la)});Y=function(la){if(mxClient.IS_IOS||mxClient.IS_FF||!(null==document.documentMode||9<document.documentMode)){var ka=new FilenameDialog(b,aa.title||"",
+p?(aa={data:p,w:H,h:g,title:K},null!=C&&(aa.aspect=C),v[p]=V,R.push(aa)):null!=t&&(t.aspect="fixed",R.push(t),aa=t);mxEvent.addListener(Z,"keydown",function(la){13==la.keyCode&&null!=D&&(D(),D=null,mxEvent.consume(la))});Q();P.appendChild(Z);mxEvent.addListener(Z,"mousedown",function(la){"true"!=Z.getAttribute("contentEditable")&&mxEvent.consume(la)});Y=function(la){if(mxClient.IS_IOS||mxClient.IS_FF||!(null==document.documentMode||9<document.documentMode)){var ka=new FilenameDialog(b,aa.title||"",
mxResources.get("ok"),function(pa){null!=pa&&(aa.title=pa,Q())},mxResources.get("enterValue"));b.showDialog(ka.container,300,80,!0,!0);ka.init();mxEvent.consume(la)}else if("true"!=Z.getAttribute("contentEditable")){null!=D&&(D(),D=null);if(null==aa.title||0==aa.title.length)Z.innerText="";Z.style.textOverflow="";Z.style.whiteSpace="";Z.style.cursor="text";Z.style.color="";Z.setAttribute("contentEditable","true");mxUtils.setPrefixedStyle(Z.style,"user-select","text");Z.focus();document.execCommand("selectAll",
!1,null);D=function(){Z.removeAttribute("contentEditable");Z.style.cursor="pointer";aa.title=mxUtils.getTextContent(Z);Q()};mxEvent.consume(la)}};mxEvent.addListener(Z,"click",Y);mxEvent.addListener(P,"dblclick",Y);m.appendChild(P);mxEvent.addListener(P,"dragstart",function(la){null==D&&(null==p&&null!=t&&(X.style.visibility="hidden",Z.style.visibility="hidden"),mxClient.IS_FF&&null!=t.xml&&la.dataTransfer.setData("Text",t.xml),A=E(la),mxClient.IS_GC&&(P.style.opacity="0.9"),window.setTimeout(function(){mxUtils.setPrefixedStyle(P.style,
"transform","scale(0.5,0.5)");mxUtils.setOpacity(P,30);X.style.visibility="";Z.style.visibility=""},0))});mxEvent.addListener(P,"dragend",function(la){"hidden"==X.style.visibility&&(X.style.visibility="",Z.style.visibility="");A=null;mxUtils.setOpacity(P,100);mxUtils.setPrefixedStyle(P.style,"transform",null)})}else F||(F=!0,b.handleError({message:mxResources.get("fileExists")}));else{H=!1;try{if(S=mxUtils.parseXml(p),"mxlibrary"==S.documentElement.nodeName){U=JSON.parse(mxUtils.getTextContent(S.documentElement));
if(null!=U&&0<U.length)for(var ea=0;ea<U.length;ea++)null!=U[ea].xml?M(null,null,0,0,0,0,U[ea]):M(U[ea].data,null,0,0,U[ea].w,U[ea].h,null,"fixed",U[ea].title);H=!0}else if("mxfile"==S.documentElement.nodeName){var ha=S.documentElement.getElementsByTagName("diagram");for(ea=0;ea<ha.length;ea++){var ba=Editor.getDiagramNodeXml(ha[ea]);Y=b.stringToCells(ba);if(0<Y.length){var ia=b.editor.graph.getBoundingBoxFromGeometry(Y);null!=ia&&M(null,null,0,0,0,0,{xml:ba,w:ia.width,h:ia.height})}}H=!0}}catch(la){null!=
-window.console&&console.error("Error in library dialog: "+la)}H||(b.spinner.stop(),b.handleError({message:mxResources.get("errorLoadingFile")}))}}catch(la){null!=window.console&&console.log("Error in library dialog: "+la)}return null}function L(p){p.dataTransfer.dropEffect=null!=A?"move":"copy";p.stopPropagation();p.preventDefault()}function O(p){p.stopPropagation();p.preventDefault();F=!1;C=E(p);if(null!=A)null!=C&&C<m.children.length?(R.splice(C>A?C-1:C,0,R.splice(A,1)[0]),m.insertBefore(m.children[A],
-m.children[C])):(R.push(R.splice(A,1)[0]),m.appendChild(m.children[A]));else if(0<p.dataTransfer.files.length)b.importFiles(p.dataTransfer.files,0,0,b.maxImageSize,T(p));else if(0<=mxUtils.indexOf(p.dataTransfer.types,"text/uri-list")){var u=decodeURIComponent(p.dataTransfer.getData("text/uri-list"));(/(\.jpg)($|\?)/i.test(u)||/(\.png)($|\?)/i.test(u)||/(\.gif)($|\?)/i.test(u)||/(\.svg)($|\?)/i.test(u))&&b.loadImage(u,function(G){M(u,null,0,0,G.width,G.height);m.scrollTop=m.scrollHeight})}p.stopPropagation();
+window.console&&console.error("Error in library dialog: "+la)}H||(b.spinner.stop(),b.handleError({message:mxResources.get("errorLoadingFile")}))}}catch(la){null!=window.console&&console.log("Error in library dialog: "+la)}return null}function L(p){p.dataTransfer.dropEffect=null!=A?"move":"copy";p.stopPropagation();p.preventDefault()}function O(p){p.stopPropagation();p.preventDefault();F=!1;B=E(p);if(null!=A)null!=B&&B<m.children.length?(R.splice(B>A?B-1:B,0,R.splice(A,1)[0]),m.insertBefore(m.children[A],
+m.children[B])):(R.push(R.splice(A,1)[0]),m.appendChild(m.children[A]));else if(0<p.dataTransfer.files.length)b.importFiles(p.dataTransfer.files,0,0,b.maxImageSize,T(p));else if(0<=mxUtils.indexOf(p.dataTransfer.types,"text/uri-list")){var u=decodeURIComponent(p.dataTransfer.getData("text/uri-list"));(/(\.jpg)($|\?)/i.test(u)||/(\.png)($|\?)/i.test(u)||/(\.gif)($|\?)/i.test(u)||/(\.svg)($|\?)/i.test(u))&&b.loadImage(u,function(G){M(u,null,0,0,G.width,G.height);m.scrollTop=m.scrollHeight})}p.stopPropagation();
p.preventDefault()}var R=[],c=b.editor.graph;n=document.createElement("div");n.style.height="100%";var d=document.createElement("div");d.style.whiteSpace="nowrap";d.style.height="40px";n.appendChild(d);mxUtils.write(d,mxResources.get("filename")+":");null==l&&(l=b.defaultLibraryName+".xml");var k=document.createElement("input");k.setAttribute("value",l);k.style.marginRight="20px";k.style.marginLeft="10px";k.style.width="500px";null==x||x.isRenamable()||k.setAttribute("disabled","true");this.init=
function(){if(null==x||x.isRenamable())k.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?k.select():document.execCommand("selectAll",!1,null)};d.appendChild(k);Editor.enableUncompressedLibraries&&(k.style.width="420px",l=document.createElement("input"),l.setAttribute("type","checkbox"),l.style.marginRight="10px",d.appendChild(l),mxUtils.write(d,mxResources.get("compressed")));var m=document.createElement("div");m.style.borderWidth="1px 0px 1px 0px";m.style.borderColor="#d3d3d3";m.style.borderStyle=
"solid";m.style.marginTop="6px";m.style.overflow="auto";m.style.height="340px";m.style.backgroundPosition="center center";m.style.backgroundRepeat="no-repeat";0==R.length&&Graph.fileSupport&&(m.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')");var q=document.createElement("div");q.style.position="absolute";q.style.width="640px";q.style.top="260px";q.style.textAlign="center";q.style.fontSize="22px";q.style.color="#a0c3ff";mxUtils.write(q,mxResources.get("dragImagesHere"));n.appendChild(q);
-var v={},A=null,C=null,D=null;d=function(p){"true"!=mxEvent.getSource(p).getAttribute("contentEditable")&&null!=D&&(D(),D=null,mxEvent.consume(p))};mxEvent.addListener(m,"mousedown",d);mxEvent.addListener(m,"pointerdown",d);mxEvent.addListener(m,"touchstart",d);var J=new mxUrlConverter,F=!1;if(null!=f)for(d=0;d<f.length;d++)l=f[d],M(l.data,null,0,0,l.w,l.h,l,l.aspect,l.title);mxEvent.addListener(m,"dragleave",function(p){q.style.cursor="";for(var u=mxEvent.getSource(p);null!=u;){if(u==m||u==q){p.stopPropagation();
-p.preventDefault();break}u=u.parentNode}});var T=function(p){return function(u,G,I,H,g,t,B,K,Q){null!=Q&&EditorUi.isVisioFilename(Q.name)?b.importVisio(Q,mxUtils.bind(this,function(S){M(S,G,I,H,g,t,B,"fixed",mxEvent.isAltDown(p)?null:B.substring(0,B.lastIndexOf(".")).replace(/_/g," "))})):null!=Q&&(new XMLHttpRequest).upload&&b.isRemoteFileFormat(u,Q.name)?b.isExternalDataComms()?b.parseFile(Q,mxUtils.bind(this,function(S){4==S.readyState&&(b.spinner.stop(),200<=S.status&&299>=S.status&&(M(S.responseText,
-G,I,H,g,t,B,"fixed",mxEvent.isAltDown(p)?null:B.substring(0,B.lastIndexOf(".")).replace(/_/g," ")),m.scrollTop=m.scrollHeight))})):(b.spinner.stop(),b.showError(mxResources.get("error"),mxResources.get("notInOffline"))):(M(u,G,I,H,g,t,B,"fixed",mxEvent.isAltDown(p)?null:B.substring(0,B.lastIndexOf(".")).replace(/_/g," ")),m.scrollTop=m.scrollHeight)}};mxEvent.addListener(m,"dragover",L);mxEvent.addListener(m,"drop",O);mxEvent.addListener(q,"dragover",L);mxEvent.addListener(q,"drop",O);n.appendChild(m);
+var v={},A=null,B=null,D=null;d=function(p){"true"!=mxEvent.getSource(p).getAttribute("contentEditable")&&null!=D&&(D(),D=null,mxEvent.consume(p))};mxEvent.addListener(m,"mousedown",d);mxEvent.addListener(m,"pointerdown",d);mxEvent.addListener(m,"touchstart",d);var J=new mxUrlConverter,F=!1;if(null!=f)for(d=0;d<f.length;d++)l=f[d],M(l.data,null,0,0,l.w,l.h,l,l.aspect,l.title);mxEvent.addListener(m,"dragleave",function(p){q.style.cursor="";for(var u=mxEvent.getSource(p);null!=u;){if(u==m||u==q){p.stopPropagation();
+p.preventDefault();break}u=u.parentNode}});var T=function(p){return function(u,G,I,H,g,t,C,K,Q){null!=Q&&EditorUi.isVisioFilename(Q.name)?b.importVisio(Q,mxUtils.bind(this,function(S){M(S,G,I,H,g,t,C,"fixed",mxEvent.isAltDown(p)?null:C.substring(0,C.lastIndexOf(".")).replace(/_/g," "))})):null!=Q&&(new XMLHttpRequest).upload&&b.isRemoteFileFormat(u,Q.name)?b.isExternalDataComms()?b.parseFile(Q,mxUtils.bind(this,function(S){4==S.readyState&&(b.spinner.stop(),200<=S.status&&299>=S.status&&(M(S.responseText,
+G,I,H,g,t,C,"fixed",mxEvent.isAltDown(p)?null:C.substring(0,C.lastIndexOf(".")).replace(/_/g," ")),m.scrollTop=m.scrollHeight))})):(b.spinner.stop(),b.showError(mxResources.get("error"),mxResources.get("notInOffline"))):(M(u,G,I,H,g,t,C,"fixed",mxEvent.isAltDown(p)?null:C.substring(0,C.lastIndexOf(".")).replace(/_/g," ")),m.scrollTop=m.scrollHeight)}};mxEvent.addListener(m,"dragover",L);mxEvent.addListener(m,"drop",O);mxEvent.addListener(q,"dragover",L);mxEvent.addListener(q,"drop",O);n.appendChild(m);
f=document.createElement("div");f.style.textAlign="right";f.style.marginTop="20px";d=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});d.setAttribute("id","btnCancel");d.className="geBtn";b.editor.cancelFirst&&f.appendChild(d);"draw.io"!=b.getServiceName()||null==x||x.constructor!=DriveLibrary&&x.constructor!=GitHubLibrary||(l=mxUtils.button(mxResources.get("link"),function(){b.getPublicUrl(x,function(p){if(null!=p){var u=b.getSearch("create title mode url drive splash state clibs ui".split(" "));
u+=(0==u.length?"?":"&")+"splash=0&clibs=U"+encodeURIComponent(p);p=new EmbedDialog(b,window.location.protocol+"//"+window.location.host+"/"+u,null,null,null,null,"Check out the library I made using @drawio");b.showDialog(p.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));p.init()}else x.constructor==DriveLibrary?b.showError(mxResources.get("error"),mxResources.get("diagramIsNotPublic"),mxResources.get("share"),mxUtils.bind(this,function(){b.drive.showPermissions(x.getId(),x)}),
null,mxResources.get("ok"),mxUtils.bind(this,function(){})):b.handleError({message:mxResources.get("diagramIsNotPublic")})})}),l.className="geBtn",f.appendChild(l));l=mxUtils.button(mxResources.get("export"),function(){var p=b.createLibraryDataFromImages(R),u=k.value;/(\.xml)$/i.test(u)||(u+=".xml");b.isLocalFileSave()?b.saveLocalFile(p,u,"text/xml",null,null,null!=y?y:!0,null,"xml"):(new mxXmlRequest(SAVE_URL,"filename="+encodeURIComponent(u)+"&format=xml&xml="+encodeURIComponent(p))).simulate(document,
-"_blank")});l.setAttribute("id","btnDownload");l.className="geBtn";f.appendChild(l);if(Graph.fileSupport){if(null==b.libDlgFileInputElt){var W=document.createElement("input");W.setAttribute("multiple","multiple");W.setAttribute("type","file");mxEvent.addListener(W,"change",function(p){F=!1;b.importFiles(W.files,0,0,b.maxImageSize,function(u,G,I,H,g,t,B,K,Q){null!=W.files&&(T(p)(u,G,I,H,g,t,B,K,Q),W.type="",W.type="file",W.value="")});m.scrollTop=m.scrollHeight});W.style.display="none";document.body.appendChild(W);
+"_blank")});l.setAttribute("id","btnDownload");l.className="geBtn";f.appendChild(l);if(Graph.fileSupport){if(null==b.libDlgFileInputElt){var W=document.createElement("input");W.setAttribute("multiple","multiple");W.setAttribute("type","file");mxEvent.addListener(W,"change",function(p){F=!1;b.importFiles(W.files,0,0,b.maxImageSize,function(u,G,I,H,g,t,C,K,Q){null!=W.files&&(T(p)(u,G,I,H,g,t,C,K,Q),W.type="",W.type="file",W.value="")});m.scrollTop=m.scrollHeight});W.style.display="none";document.body.appendChild(W);
b.libDlgFileInputElt=W}l=mxUtils.button(mxResources.get("import"),function(){null!=D&&(D(),D=null);b.libDlgFileInputElt.click()});l.setAttribute("id","btnAddImage");l.className="geBtn";f.appendChild(l)}l=mxUtils.button(mxResources.get("addImages"),function(){null!=D&&(D(),D=null);b.showImageDialog(mxResources.get("addImageUrl"),"",function(p,u,G){F=!1;if(null!=p){if("data:image/"==p.substring(0,11)){var I=p.indexOf(",");0<I&&(p=p.substring(0,I)+";base64,"+p.substring(I+1))}M(p,null,0,0,u,G);m.scrollTop=
m.scrollHeight}})});l.setAttribute("id","btnAddImageUrl");l.className="geBtn";f.appendChild(l);this.saveBtnClickHandler=function(p,u,G,I){b.saveLibrary(p,u,G,I)};l=mxUtils.button(mxResources.get("save"),mxUtils.bind(this,function(){null!=D&&(D(),D=null);this.saveBtnClickHandler(k.value,R,x,z)}));l.setAttribute("id","btnSave");l.className="geBtn gePrimaryBtn";f.appendChild(l);b.editor.cancelFirst||f.appendChild(d);n.appendChild(f);this.container=n},EditShapeDialog=function(b,l,n){var f=document.createElement("div");
f.style.position="absolute";f.style.left="30px";f.style.right="30px";f.style.top="30px";f.style.bottom="30px";var x=document.createElement("div");x.style.position="absolute";x.style.top="0px";mxUtils.write(x,n);f.appendChild(x);n=document.createElement("div");n.style.position="absolute";n.style.width="100%";n.style.display="flex";n.style.alignItems="stretch";n.style.top="24px";n.style.bottom="50px";var z=document.createElement("textarea");z.style.outline="none";z.style.resize="horizontal";z.style.width=
@@ -12789,7 +12795,7 @@ this.container=f},CustomDialog=function(b,l,n,f,x,z,y,E,M,L,O,R){var c=document.
x=mxUtils.button(x||mxResources.get("ok"),mxUtils.bind(this,function(){L||b.hideDialog(null,null,this.container);if(null!=n){var k=n();if("string"===typeof k){b.showError(mxResources.get("error"),k);return}}L&&b.hideDialog(null,null,this.container)}));d.appendChild(x);x.className="geBtn gePrimaryBtn";b.editor.cancelFirst||d.appendChild(l);if(null!=O)for(E=0;E<O.length;E++)(function(k,m,q){k=mxUtils.button(k,function(v){m(v)});null!=q&&k.setAttribute("title",q);k.className="geBtn";d.appendChild(k)})(O[E][0],
O[E][1],O[E][2]);c.appendChild(d);this.cancelBtn=l;this.okButton=x;this.container=c},BtnDialog=function(b,l,n,f){var x=document.createElement("div");x.style.textAlign="center";var z=document.createElement("p");z.style.fontSize="16pt";z.style.padding="0px";z.style.margin="0px";z.style.color="gray";mxUtils.write(z,mxResources.get("done"));var y="Unknown",E=document.createElement("img");E.setAttribute("border","0");E.setAttribute("align","absmiddle");E.style.marginRight="10px";l==b.drive?(y=mxResources.get("googleDrive"),
E.src=IMAGE_PATH+"/google-drive-logo-white.svg"):l==b.dropbox?(y=mxResources.get("dropbox"),E.src=IMAGE_PATH+"/dropbox-logo-white.svg"):l==b.oneDrive?(y=mxResources.get("oneDrive"),E.src=IMAGE_PATH+"/onedrive-logo-white.svg"):l==b.gitHub?(y=mxResources.get("github"),E.src=IMAGE_PATH+"/github-logo-white.svg"):l==b.gitLab?(y=mxResources.get("gitlab"),E.src=IMAGE_PATH+"/gitlab-logo.svg"):l==b.trello&&(y=mxResources.get("trello"),E.src=IMAGE_PATH+"/trello-logo-white.svg");b=document.createElement("p");
-mxUtils.write(b,mxResources.get("authorizedIn",[y],"You are now authorized in {1}"));n=mxUtils.button(n,f);n.insertBefore(E,n.firstChild);n.style.marginTop="6px";n.className="geBigButton";n.style.fontSize="18px";n.style.padding="14px";x.appendChild(z);x.appendChild(b);x.appendChild(n);this.container=x},FontDialog=function(b,l,n,f,x){function z(D){this.style.border="";13==D.keyCode&&C.click()}var y=document.createElement("table"),E=document.createElement("tbody");y.style.marginTop="8px";var M=document.createElement("tr");
+mxUtils.write(b,mxResources.get("authorizedIn",[y],"You are now authorized in {1}"));n=mxUtils.button(n,f);n.insertBefore(E,n.firstChild);n.style.marginTop="6px";n.className="geBigButton";n.style.fontSize="18px";n.style.padding="14px";x.appendChild(z);x.appendChild(b);x.appendChild(n);this.container=x},FontDialog=function(b,l,n,f,x){function z(D){this.style.border="";13==D.keyCode&&B.click()}var y=document.createElement("table"),E=document.createElement("tbody");y.style.marginTop="8px";var M=document.createElement("tr");
var L=document.createElement("td");L.colSpan=2;L.style.whiteSpace="nowrap";L.style.fontSize="10pt";L.style.fontWeight="bold";var O=document.createElement("input");O.style.cssText="margin-right:8px;margin-bottom:8px;";O.setAttribute("value","sysfonts");O.setAttribute("type","radio");O.setAttribute("name","current-fontdialog");O.setAttribute("id","fontdialog-sysfonts");L.appendChild(O);var R=document.createElement("label");R.setAttribute("for","fontdialog-sysfonts");mxUtils.write(R,mxResources.get("sysFonts",
null,"System Fonts"));L.appendChild(R);M.appendChild(L);E.appendChild(M);M=document.createElement("tr");L=document.createElement("td");L.style.whiteSpace="nowrap";L.style.fontSize="10pt";L.style.width="120px";L.style.paddingLeft="15px";mxUtils.write(L,mxResources.get("fontname",null,"Font Name")+":");M.appendChild(L);var c=document.createElement("input");"s"==f&&c.setAttribute("value",l);c.style.marginLeft="4px";c.style.width="250px";c.className="dlg_fontName_s";if(null!=Editor.localFonts){var d=
document.createElement("datalist");d.id="fontdialog-localfonts";for(L=0;L<Editor.localFonts.length;L++)R=document.createElement("option"),R.value=Editor.localFonts[L],d.appendChild(R);c.setAttribute("list","fontdialog-localfonts")}L=document.createElement("td");L.appendChild(c);null!=d&&L.appendChild(d);M.appendChild(L);E.appendChild(M);M=document.createElement("tr");L=document.createElement("td");L.colSpan=2;L.style.whiteSpace="nowrap";L.style.fontSize="10pt";L.style.fontWeight="bold";var k=document.createElement("input");
@@ -12799,9 +12805,9 @@ M.appendChild(L);"0"!=urlParams.isGoogleFontsEnabled&&E.appendChild(M);M=documen
R.setAttribute("for","fontdialog-webfonts");mxUtils.write(R,mxResources.get("webfonts",null,"Web Fonts"));L.appendChild(R);M.appendChild(L);Editor.enableWebFonts&&E.appendChild(M);M=document.createElement("tr");L=document.createElement("td");L.style.whiteSpace="nowrap";L.style.fontSize="10pt";L.style.width="120px";L.style.paddingLeft="15px";mxUtils.write(L,mxResources.get("fontname",null,"Font Name")+":");M.appendChild(L);var v=document.createElement("input");"w"==f&&(Editor.enableWebFonts?v.setAttribute("value",
l):c.setAttribute("value",l));v.style.marginLeft="4px";v.style.width="250px";v.className="dlg_fontName_w";L=document.createElement("td");L.appendChild(v);M.appendChild(L);Editor.enableWebFonts&&E.appendChild(M);M=document.createElement("tr");L=document.createElement("td");L.style.whiteSpace="nowrap";L.style.fontSize="10pt";L.style.width="120px";L.style.paddingLeft="15px";mxUtils.write(L,mxResources.get("fontUrl",null,"Font URL")+":");M.appendChild(L);var A=document.createElement("input");A.setAttribute("value",
n||"");A.style.marginLeft="4px";A.style.width="250px";A.className="dlg_fontUrl";L=document.createElement("td");L.appendChild(A);M.appendChild(L);Editor.enableWebFonts&&E.appendChild(M);this.init=function(){var D=c;"g"==f?D=m:"w"==f&&Editor.enableWebFonts&&(D=v);D.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?D.select():document.execCommand("selectAll",!1,null)};M=document.createElement("tr");L=document.createElement("td");L.colSpan=2;L.style.paddingTop="20px";L.style.whiteSpace=
-"nowrap";L.setAttribute("align","right");b.isOffline()||L.appendChild(b.createHelpIcon("https://www.drawio.com/blog/external-fonts"));l=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();x()});l.className="geBtn";b.editor.cancelFirst&&L.appendChild(l);var C=mxUtils.button(mxResources.get("apply"),function(){if(O.checked){var D=c.value;var J="s"}else if(k.checked){D=m.value;var F=Editor.GOOGLE_FONTS+encodeURIComponent(D).replace(/%20/g,"+");J="g"}else q.checked&&(D=v.value,F=A.value,
-J="w");var T=D;var W=F,p=J,u=/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/,G=y.querySelector(".dlg_fontName_"+p);null==G||null!=T&&0!=T.length?(G=y.querySelector(".dlg_fontUrl"),null==G||"w"!=p||u.test(W)?T=!0:(G.style.border="1px solid red",T=!1)):(G.style.border="1px solid red",T=!1);T&&(x(D,F,J),b.hideDialog())});C.className="geBtn gePrimaryBtn";mxEvent.addListener(c,"keypress",z);mxEvent.addListener(m,"keypress",z);mxEvent.addListener(v,"keypress",z);mxEvent.addListener(A,
-"keypress",z);mxEvent.addListener(c,"focus",function(){O.setAttribute("checked","checked");O.checked=!0});mxEvent.addListener(m,"focus",function(){k.setAttribute("checked","checked");k.checked=!0});mxEvent.addListener(v,"focus",function(){q.setAttribute("checked","checked");q.checked=!0});mxEvent.addListener(A,"focus",function(){q.setAttribute("checked","checked");q.checked=!0});L.appendChild(C);b.editor.cancelFirst||L.appendChild(l);M.appendChild(L);E.appendChild(M);y.appendChild(E);this.container=
+"nowrap";L.setAttribute("align","right");b.isOffline()||L.appendChild(b.createHelpIcon("https://www.drawio.com/blog/external-fonts"));l=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();x()});l.className="geBtn";b.editor.cancelFirst&&L.appendChild(l);var B=mxUtils.button(mxResources.get("apply"),function(){if(O.checked){var D=c.value;var J="s"}else if(k.checked){D=m.value;var F=Editor.GOOGLE_FONTS+encodeURIComponent(D).replace(/%20/g,"+");J="g"}else q.checked&&(D=v.value,F=A.value,
+J="w");var T=D;var W=F,p=J,u=/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/,G=y.querySelector(".dlg_fontName_"+p);null==G||null!=T&&0!=T.length?(G=y.querySelector(".dlg_fontUrl"),null==G||"w"!=p||u.test(W)?T=!0:(G.style.border="1px solid red",T=!1)):(G.style.border="1px solid red",T=!1);T&&(x(D,F,J),b.hideDialog())});B.className="geBtn gePrimaryBtn";mxEvent.addListener(c,"keypress",z);mxEvent.addListener(m,"keypress",z);mxEvent.addListener(v,"keypress",z);mxEvent.addListener(A,
+"keypress",z);mxEvent.addListener(c,"focus",function(){O.setAttribute("checked","checked");O.checked=!0});mxEvent.addListener(m,"focus",function(){k.setAttribute("checked","checked");k.checked=!0});mxEvent.addListener(v,"focus",function(){q.setAttribute("checked","checked");q.checked=!0});mxEvent.addListener(A,"focus",function(){q.setAttribute("checked","checked");q.checked=!0});L.appendChild(B);b.editor.cancelFirst||L.appendChild(l);M.appendChild(L);E.appendChild(M);y.appendChild(E);this.container=
y};
function AspectDialog(b,l,n,f,x){this.aspect={pageId:l||(b.pages?b.pages[0].getId():null),layerIds:n||[]};l=document.createElement("div");var z=document.createElement("h5");z.style.margin="0 0 10px";mxUtils.write(z,mxResources.get("pages"));l.appendChild(z);n=document.createElement("div");n.className="geAspectDlgList";l.appendChild(n);z=document.createElement("h5");z.style.margin="0 0 10px";mxUtils.write(z,mxResources.get("layers"));l.appendChild(z);z=document.createElement("div");z.className="geAspectDlgList";
l.appendChild(z);this.pagesContainer=n;this.layersContainer=z;this.ui=b;n=document.createElement("div");n.style.marginTop="16px";n.style.textAlign="center";z=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();null!=x&&x()});z.className="geBtn";b.editor.cancelFirst&&n.appendChild(z);var y=mxUtils.button(mxResources.get("ok"),mxUtils.bind(this,function(){b.hideDialog();f({pageId:this.selectedPage,layerIds:Object.keys(this.selectedLayers)})}));n.appendChild(y);y.className="geBtn gePrimaryBtn";
@@ -12819,7 +12825,7 @@ z&&z.setLocked(d.checked);D()},0):D()});if(E||M){y=1;E=0;R=b.fileNode;null!=R&&(
x.appendChild(R);this.init=this.init||function(){k.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?k.select():document.execCommand("selectAll",!1,null)};n(function(D,J){null!=b.fileNode&&(b.fileNode.setAttribute("scale",Math.max(0,parseInt(k.value)/100)),b.fileNode.setAttribute("border",Math.max(0,parseInt(m.value))),null!=z&&z.fileChanged());D()})}else if(!/(\.html)$/i.test(y)&&!/(\.svg)$/i.test(y)){var q=null!=z?z.isCompressed():Editor.defaultCompressed;R=document.createElement("tr");
c=document.createElement("td");c.style.whiteSpace="nowrap";c.style.overflow="hidden";c.style.textOverflow="ellipsis";c.style.fontSize="10pt";mxUtils.write(c,mxResources.get("compressed")+":");R.appendChild(c);var v=document.createElement("input");v.setAttribute("type","checkbox");q&&(v.setAttribute("checked","checked"),v.defaultChecked=!0);c=document.createElement("td");c.style.whiteSpace="nowrap";c.appendChild(v);R.appendChild(c);x.appendChild(R);this.init=this.init||function(){v.focus()};n(function(D,
J){null!=b.fileNode&&q!=v.checked?window.setTimeout(function(){b.fileNode.setAttribute("compressed",v.checked?"true":"false");null!=z&&(z.compressionChanged(v.checked),z.fileChanged());D()},0):D()})}if(null!=z&&z.isRealtimeOptional()){R=document.createElement("tr");c=document.createElement("td");c.style.whiteSpace="nowrap";c.style.overflow="hidden";c.style.textOverflow="ellipsis";c.style.fontSize="10pt";mxUtils.write(c,mxResources.get("realtimeCollaboration")+":");R.appendChild(c);var A=document.createElement("input");
-A.setAttribute("type","checkbox");var C=z.isRealtimeEnabled();if(C="disabled"!=b.drive.getCustomProperty(z.desc,"collaboration"))A.setAttribute("checked","checked"),A.defaultChecked=!0;n(function(D,J){A.checked!=C?z.setRealtimeEnabled(A.checked,D,J):D()});this.init=null!=this.init?this.init:function(){A.focus()};c=document.createElement("td");c.style.whiteSpace="nowrap";y=document.createElement("div");y.style.display="flex";y.style.alignItems="center";y.style.justifyContent="start";y.appendChild(A);
+A.setAttribute("type","checkbox");var B=z.isRealtimeEnabled();if(B="disabled"!=b.drive.getCustomProperty(z.desc,"collaboration"))A.setAttribute("checked","checked"),A.defaultChecked=!0;n(function(D,J){A.checked!=B?z.setRealtimeEnabled(A.checked,D,J):D()});this.init=null!=this.init?this.init:function(){A.focus()};c=document.createElement("td");c.style.whiteSpace="nowrap";y=document.createElement("div");y.style.display="flex";y.style.alignItems="center";y.style.justifyContent="start";y.appendChild(A);
y.appendChild(b.menus.createHelpLink("https://github.com/jgraph/drawio/discussions/2672"));c.appendChild(y);R.appendChild(c);x.appendChild(R)}null!=z&&"draw.io"==b.getServiceName()&&0<z.getSize()&&"1"!=urlParams.embed&&(R=document.createElement("tr"),c=document.createElement("td"),c.style.whiteSpace="nowrap",c.style.overflow="hidden",c.style.textOverflow="ellipsis",c.style.fontSize="10pt",mxUtils.write(c,mxResources.get("size")+":"),R.appendChild(c),c=b.formatFileSize(z.getSize()),y=document.createElement("input"),
y.setAttribute("title",c),y.setAttribute("value",c),y.setAttribute("disabled","disabled"),y.style.boxSizing="border-box",y.style.width="100%",c=document.createElement("td"),c.style.whiteSpace="nowrap",c.appendChild(y),R.appendChild(c),x.appendChild(R));null!=l&&(R=document.createElement("tr"),c=document.createElement("td"),c.style.whiteSpace="nowrap",c.style.overflow="hidden",c.style.textOverflow="ellipsis",c.style.fontSize="10pt",mxUtils.write(c,mxResources.get("publicDiagramUrl")+":"),R.appendChild(c),
y=document.createElement("a"),y.setAttribute("href",l),y.setAttribute("title",l),y.style.whiteSpace="nowrap",y.style.overflow="hidden",y.style.textOverflow="ellipsis",y.style.display="block",y.style.margin="2px",y.style.fontSize="10pt",mxUtils.write(y,l),mxEvent.addListener(y,"click",function(D){b.openLink(l);mxEvent.consume(D)}),c=document.createElement("td"),c.appendChild(y),R.appendChild(c),x.appendChild(R));null!=z&&null!=z.fileObject&&null!=z.fileObject.path&&(R=document.createElement("tr"),
@@ -12829,23 +12835,23 @@ function(){b.hideDialog()});E.className="geBtn";b.editor.cancelFirst&&c.appendCh
T);D.getModel().addListener(mxEvent.CHANGE,function(W,p){W=p.getProperty("edit").changes;for(p=0;p<W.length;p++)if(W[p]instanceof mxValueChange&&W[p].cell===T){for(var u={},G=W[p].value.attributes,I=0;I<G.length;I++)"label"!=G[I].nodeName&&(u[G[I].nodeName]=G[I].nodeValue);u=JSON.stringify(u);"{}"==u?b.fileNode.removeAttribute("vars"):b.fileNode.setAttribute("vars",u);b.updateFileVars();b.editor.graph.refresh();u=b.getCurrentFile();null!=u&&u.fileChanged()}});D=new EditDataDialog(b,T,D);b.showDialog(D.container,
480,420,!0,!1,null,!1,null,new mxRectangle(0,0,440,220));D.init()}),M.className="geBtn",c.appendChild(M));c.appendChild(y);b.editor.cancelFirst||c.appendChild(E);R.appendChild(c);x.appendChild(R);f.appendChild(x);this.container=f},ConnectionPointsDialog=function(b,l){function n(){null!=x&&x.destroy()}var f=document.createElement("div");f.style.userSelect="none";f.style.display="flex";f.style.flexDirection="column";f.style.height="100%";var x=null;this.init=function(){function z(I,H,g){var t="shape=image;points=[];rotatable=0;resizable=0;connectable=0;editable=0;image="+
b.convertDataUri(mxConstraintHandler.prototype.pointImage.src)+";";I=new mxCell("",new mxGeometry(I,H,6,6),t);I.vertex=!0;I.cp=!0;I.constObj=g;return R.addCell(I)}function y(I){I=R.getSelectionCells();R.deleteCells(I)}function E(){var I=parseInt(W.value)||0;I=0>I?0:100<I?100:I;W.value=I;var H=parseInt(u.value)||0;H=0>H?0:100<H?100:H;u.value=H;var g=parseInt(p.value)||0,t=parseInt(G.value)||0;g=new mxConnectionConstraint(new mxPoint(I/100,H/100),!1,null,g,t);I=R.getConnectionPoint(k,g);H=R.getSelectionCell();
-if(null!=H){H.constObj=g;g=H.geometry.clone();t=R.view.scale;var B=R.view.translate;g.x=(I.x-3*t)/t-B.x;g.y=(I.y-3*t)/t-B.y;R.model.setGeometry(H,g)}}function M(I){if(I.constObj)return{x:I.constObj.point.x,y:I.constObj.point.y,dx:I.constObj.dx,dy:I.constObj.dy};var H=0,g=0,t=c.geometry,B=mxUtils.format((I.geometry.x+3-t.x)/t.width);I=mxUtils.format((I.geometry.y+3-t.y)/t.height);0>B?(H=B*t.width,B=0):1<B&&(H=(B-1)*t.width,B=1);0>I?(g=I*t.height,I=0):1<I&&(g=(I-1)*t.height,I=1);return{x:B,y:I,dx:parseInt(H),
+if(null!=H){H.constObj=g;g=H.geometry.clone();t=R.view.scale;var C=R.view.translate;g.x=(I.x-3*t)/t-C.x;g.y=(I.y-3*t)/t-C.y;R.model.setGeometry(H,g)}}function M(I){if(I.constObj)return{x:I.constObj.point.x,y:I.constObj.point.y,dx:I.constObj.dx,dy:I.constObj.dy};var H=0,g=0,t=c.geometry,C=mxUtils.format((I.geometry.x+3-t.x)/t.width);I=mxUtils.format((I.geometry.y+3-t.y)/t.height);0>C?(H=C*t.width,C=0):1<C&&(H=(C-1)*t.width,C=1);0>I?(g=I*t.height,I=0):1<I&&(g=(I-1)*t.height,I=1);return{x:C,y:I,dx:parseInt(H),
dy:parseInt(g)}}function L(I){if(1==R.getSelectionCount()){var H=R.getSelectionCell();I&&(H.constObj=null);I=M(H);W.value=100*I.x;u.value=100*I.y;p.value=I.dx;G.value=I.dy;T.style.visibility=""}else T.style.visibility="hidden"}var O=document.createElement("div");O.style.flex="1";O.style.minHeight="0";O.style.overflow="hidden";O.style.borderStyle="solid";O.style.borderWidth="1px";O.style.boxSizing="border-box";mxEvent.disableContextMenu(O);f.appendChild(O);var R=new Graph(O);R.transparentBackground=
!1;R.autoExtend=!1;R.autoScroll=!1;R.setGridEnabled(!1);R.setEnabled(!0);R.setPanning(!0);R.setConnectable(!1);R.setTooltips(!1);R.minFitScale=null;R.maxFitScale=null;R.centerZoom=!0;R.maxFitScale=2;O=l.geometry;var c=new mxCell(l.value,new mxGeometry(0,0,O.width,O.height),l.style+";rotatable=0;resizable=0;connectable=0;editable=0;movable=0;opacity=50;");c.vertex=!0;R.addCell(c);R.dblClick=function(I,H){if(null!=H&&H!=c)R.setSelectionCell(H);else{H=mxUtils.convertPoint(R.container,mxEvent.getClientX(I),
mxEvent.getClientY(I));mxEvent.consume(I);I=R.view.scale;var g=R.view.translate;R.setSelectionCell(z((H.x-3*I)/I-g.x,(H.y-3*I)/I-g.y))}};x=new mxKeyHandler(R);x.bindKey(46,y);x.bindKey(8,y);R.getRubberband().isForceRubberbandEvent=function(I){return 0==I.evt.button&&(null==I.getCell()||I.getCell()==c)};R.panningHandler.isForcePanningEvent=function(I){return 2==I.evt.button};var d=R.isCellSelectable;R.isCellSelectable=function(I){return I==c?!1:d.apply(this,arguments)};R.getLinkForCell=function(){return null};
var k=R.view.getState(c);O=R.getAllConnectionConstraints(k);for(var m=0;null!=O&&m<O.length;m++){var q=R.getConnectionPoint(k,O[m]);z(q.x-3,q.y-3,O[m])}m=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){R.zoomIn()});q=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),function(){R.zoomOut()});var v=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){1==R.view.scale?(R.maxFitScale=8,R.fit(8)):R.zoomActual();R.center()}),A=function(){b.prompt(mxResources.get("gridSize"),
-R.gridSize,function(I){!isNaN(I)&&0<I&&(R.setGridSize(I),R.setGridEnabled(!0),R.refresh())})},C=b.createToolbarButton(Editor.thinGridImage,mxResources.get("grid"),function(I){mxEvent.isShiftDown(I)?A():(R.setGridEnabled(!R.isGridEnabled()),R.refresh())});mxEvent.addListener(C,"dblclick",A);var D=b.createToolbarButton(Editor.trashImage,mxResources.get("delete"),y);mxUtils.setOpacity(D,10);O=document.createElement("div");O.style.display="flex";O.style.flexShrink="0";O.style.alignItems="center";O.style.paddingTop=
-"6px";O.appendChild(m);O.appendChild(q);O.appendChild(v);O.appendChild(C);O.appendChild(D);f.appendChild(O);var J=document.createElement("input");J.setAttribute("type","number");J.setAttribute("min","1");J.setAttribute("value","1");J.style.width="45px";J.style.position="relative";J.style.margin="0 4px 0 4px";var F=document.createElement("select");F.style.position="relative";q=["left","right","top","bottom"];for(m=0;m<q.length;m++)v=q[m],C=document.createElement("option"),mxUtils.write(C,mxResources.get(v)),
-C.value=v,F.appendChild(C);m=mxUtils.button(mxResources.get("add"),function(){var I=parseInt(J.value);I=1>I?1:100<I?100:I;J.value=I;for(var H=F.value,g=c.geometry,t=[],B=0;B<I;B++){switch(H){case "left":var K=g.x;var Q=g.y+(B+1)*g.height/(I+1);break;case "right":K=g.x+g.width;Q=g.y+(B+1)*g.height/(I+1);break;case "top":K=g.x+(B+1)*g.width/(I+1);Q=g.y;break;case "bottom":K=g.x+(B+1)*g.width/(I+1),Q=g.y+g.height}t.push(z(K-3,Q-3))}R.setSelectionCells(t)});m.style.marginLeft="auto";O.appendChild(m);
+R.gridSize,function(I){!isNaN(I)&&0<I&&(R.setGridSize(I),R.setGridEnabled(!0),R.refresh())})},B=b.createToolbarButton(Editor.thinGridImage,mxResources.get("grid"),function(I){mxEvent.isShiftDown(I)?A():(R.setGridEnabled(!R.isGridEnabled()),R.refresh())});mxEvent.addListener(B,"dblclick",A);var D=b.createToolbarButton(Editor.trashImage,mxResources.get("delete"),y);mxUtils.setOpacity(D,10);O=document.createElement("div");O.style.display="flex";O.style.flexShrink="0";O.style.alignItems="center";O.style.paddingTop=
+"6px";O.appendChild(m);O.appendChild(q);O.appendChild(v);O.appendChild(B);O.appendChild(D);f.appendChild(O);var J=document.createElement("input");J.setAttribute("type","number");J.setAttribute("min","1");J.setAttribute("value","1");J.style.width="45px";J.style.position="relative";J.style.margin="0 4px 0 4px";var F=document.createElement("select");F.style.position="relative";q=["left","right","top","bottom"];for(m=0;m<q.length;m++)v=q[m],B=document.createElement("option"),mxUtils.write(B,mxResources.get(v)),
+B.value=v,F.appendChild(B);m=mxUtils.button(mxResources.get("add"),function(){var I=parseInt(J.value);I=1>I?1:100<I?100:I;J.value=I;for(var H=F.value,g=c.geometry,t=[],C=0;C<I;C++){switch(H){case "left":var K=g.x;var Q=g.y+(C+1)*g.height/(I+1);break;case "right":K=g.x+g.width;Q=g.y+(C+1)*g.height/(I+1);break;case "top":K=g.x+(C+1)*g.width/(I+1);Q=g.y;break;case "bottom":K=g.x+(C+1)*g.width/(I+1),Q=g.y+g.height}t.push(z(K-3,Q-3))}R.setSelectionCells(t)});m.style.marginLeft="auto";O.appendChild(m);
O.appendChild(J);O.appendChild(F);var T=document.createElement("div");T.style.flexShrink="0";T.style.margin="4px 0px 8px 0px";T.style.whiteSpace="nowrap";T.style.height="24px";O=document.createElement("span");mxUtils.write(O,mxResources.get("dx"));T.appendChild(O);var W=document.createElement("input");W.setAttribute("type","number");W.setAttribute("min","0");W.setAttribute("max","100");W.style.width="45px";W.style.margin="0 4px 0 4px";T.appendChild(W);mxUtils.write(T,"%");var p=document.createElement("input");
p.setAttribute("type","number");p.style.width="45px";p.style.margin="0 4px 0 4px";T.appendChild(p);mxUtils.write(T,"pt");O=document.createElement("span");mxUtils.write(O,mxResources.get("dy"));O.style.marginLeft="12px";T.appendChild(O);var u=document.createElement("input");u.setAttribute("type","number");u.setAttribute("min","0");u.setAttribute("max","100");u.style.width="45px";u.style.margin="0 4px 0 4px";T.appendChild(u);mxUtils.write(T,"%");var G=document.createElement("input");G.setAttribute("type",
"number");G.style.width="45px";G.style.margin="0 4px 0 4px";T.appendChild(G);mxUtils.write(T,"pt");f.appendChild(T);L();R.getSelectionModel().addListener(mxEvent.CHANGE,function(){0<R.getSelectionCount()?mxUtils.setOpacity(D,60):mxUtils.setOpacity(D,10);L()});R.addListener(mxEvent.CELLS_MOVED,L);mxEvent.addListener(W,"change",E);mxEvent.addListener(u,"change",E);mxEvent.addListener(p,"change",E);mxEvent.addListener(G,"change",E);O=mxUtils.button(mxResources.get("cancel"),function(){n();b.hideDialog()});
-O.className="geBtn";m=mxUtils.button(mxResources.get("apply"),function(){var I=R.model.cells,H=[],g=[],t;for(t in I){var B=I[t];B.cp&&g.push(M(B))}g.sort(function(K,Q){return K.x!=Q.x?K.x-Q.x:K.y!=Q.y?K.y-Q.y:K.dx!=Q.dx?K.dx-Q.dx:K.dy-Q.dy});for(I=0;I<g.length;I++)0<I&&g[I].x==g[I-1].x&&g[I].y==g[I-1].y&&g[I].dx==g[I-1].dx&&g[I].dy==g[I-1].dy||H.push("["+g[I].x+","+g[I].y+",0,"+g[I].dx+","+g[I].dy+"]");b.editor.graph.setCellStyles("points","["+H.join(",")+"]",[l]);n();b.hideDialog()});m.className=
+O.className="geBtn";m=mxUtils.button(mxResources.get("apply"),function(){var I=R.model.cells,H=[],g=[],t;for(t in I){var C=I[t];C.cp&&g.push(M(C))}g.sort(function(K,Q){return K.x!=Q.x?K.x-Q.x:K.y!=Q.y?K.y-Q.y:K.dx!=Q.dx?K.dx-Q.dx:K.dy-Q.dy});for(I=0;I<g.length;I++)0<I&&g[I].x==g[I-1].x&&g[I].y==g[I-1].y&&g[I].dx==g[I-1].dx&&g[I].dy==g[I-1].dy||H.push("["+g[I].x+","+g[I].y+",0,"+g[I].dx+","+g[I].dy+"]");b.editor.graph.setCellStyles("points","["+H.join(",")+"]",[l]);n();b.hideDialog()});m.className=
"geBtn gePrimaryBtn";q=mxUtils.button(mxResources.get("reset"),function(){b.editor.graph.setCellStyles("points",null,[l]);n();b.hideDialog()});q.className="geBtn";v=document.createElement("div");v.style.flexShrink="0";v.style.marginTop="10px";v.style.textAlign="right";b.isOffline()||v.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/shape-connection-points-customise"));b.editor.cancelFirst&&v.appendChild(O);v.appendChild(q);v.appendChild(m);b.editor.cancelFirst||v.appendChild(O);f.appendChild(v);
R.fit(8);R.center()};this.destroy=n;this.container=f},PolygonDialog=function(b,l,n){function f(ca){var da=ea.getBoundingClientRect();if(0<da.width&&0<da.height){var oa=p+G/2,na=u+I/2;H=Math.max(.05,Math.min(5,ca));G=da.width*H;I=da.height*H;p=oa-G/2;u=na-I/2;x()}}function x(){ea.setAttribute("viewBox",p+" "+u+" "+G+" "+I);var ca=aa.getBoundingClientRect();if(!(0>=ca.width||0>=ca.height)){var da=ca.width-12,oa=Math.max(20,da*Math.min(1,G/1200)),na=1200-G;na=0<na?(p- -400)/na:.5;na=Math.max(0,Math.min(1,
na));Ba.style.width=oa+"px";Ba.style.left=na*(da-oa)+"px";ca=ca.height-12;da=Math.max(20,ca*Math.min(1,I/1200));oa=1200-I;oa=0<oa?(u- -400)/oa:.5;oa=Math.max(0,Math.min(1,oa));ja.style.height=da+"px";ja.style.top=oa*(ca-da)+"px"}}function z(ca){return A?20*Math.round(ca/20):Math.round(ca)}function y(ca){var da=ea.getBoundingClientRect(),oa=u+((null!=ca.touches?ca.touches[0].clientY:ca.clientY)-da.top)/da.height*I;return{x:z(p+((null!=ca.touches?ca.touches[0].clientX:ca.clientX)-da.left)/da.width*
G),y:z(oa)}}function E(ca){var da=ea.getBoundingClientRect(),oa=p+((null!=ca.touches?ca.touches[0].clientX:ca.clientX)-da.left)/da.width*G;ca=u+((null!=ca.touches?ca.touches[0].clientY:ca.clientY)-da.top)/da.height*I;da=G/400*9;if(v&&2<m.length&&"Q"===m[0].type){var na=m[0].cx-oa,ta=m[0].cy-ca;if(Math.sqrt(na*na+ta*ta)<=da)return{type:"control",index:0}}for(var qa=1;qa<m.length;qa++)if("Q"===m[qa].type&&(na=m[qa].cx-oa,ta=m[qa].cy-ca,Math.sqrt(na*na+ta*ta)<=da))return{type:"control",index:qa};for(qa=
-0;qa<m.length;qa++)if(na=m[qa].x-oa,ta=m[qa].y-ca,Math.sqrt(na*na+ta*ta)<=da)return{type:"vertex",index:qa};return null}function M(){C.push(JSON.stringify(m));D=[];R()}function L(){0<C.length&&(D.push(JSON.stringify(m)),m=JSON.parse(C.pop()),q=Math.min(q,m.length-1),c(),R())}function O(){0<D.length&&(C.push(JSON.stringify(m)),m=JSON.parse(D.pop()),q=Math.min(q,m.length-1),c(),R())}function R(){null!=Da&&(Da.style.opacity=0<C.length?"1":"0.3",Da.style.pointerEvents=0<C.length?"":"none");null!=ra&&
+0;qa<m.length;qa++)if(na=m[qa].x-oa,ta=m[qa].y-ca,Math.sqrt(na*na+ta*ta)<=da)return{type:"vertex",index:qa};return null}function M(){B.push(JSON.stringify(m));D=[];R()}function L(){0<B.length&&(D.push(JSON.stringify(m)),m=JSON.parse(B.pop()),q=Math.min(q,m.length-1),c(),R())}function O(){0<D.length&&(B.push(JSON.stringify(m)),m=JSON.parse(D.pop()),q=Math.min(q,m.length-1),c(),R())}function R(){null!=Da&&(Da.style.opacity=0<B.length?"1":"0.3",Da.style.pointerEvents=0<B.length?"":"none");null!=ra&&
(ra.style.opacity=0<D.length?"1":"0.3",ra.style.pointerEvents=0<D.length?"":"none")}function c(){for(var ca="",da=0;da<m.length;da++)ca=0===da?ca+("M"+m[da].x+" "+m[da].y):"Q"===m[da].type?ca+("Q"+m[da].cx+" "+m[da].cy+" "+m[da].x+" "+m[da].y):ca+("L"+m[da].x+" "+m[da].y);v&&2<m.length&&("Q"===m[0].type&&(ca+="Q"+m[0].cx+" "+m[0].cy+" "+m[0].x+" "+m[0].y),ca+="Z");ba.setAttribute("d",ca);for(ba.setAttribute("fill",v&&2<m.length?"rgba(66, 133, 244, 0.1)":"none");ia.firstChild;)ia.removeChild(ia.firstChild);
for(da=1;da<m.length;da++)"Q"===m[da].type&&(ca=document.createElementNS("http://www.w3.org/2000/svg","polyline"),ca.setAttribute("points",m[da-1].x+","+m[da-1].y+" "+m[da].cx+","+m[da].cy+" "+m[da].x+","+m[da].y),ca.setAttribute("fill","none"),ca.setAttribute("stroke","#f0a030"),ca.setAttribute("stroke-width","1"),ca.setAttribute("stroke-dasharray","4,3"),ia.appendChild(ca));v&&2<m.length&&"Q"===m[0].type&&(da=document.createElementNS("http://www.w3.org/2000/svg","polyline"),da.setAttribute("points",
m[m.length-1].x+","+m[m.length-1].y+" "+m[0].cx+","+m[0].cy+" "+m[0].x+","+m[0].y),da.setAttribute("fill","none"),da.setAttribute("stroke","#f0a030"),da.setAttribute("stroke-width","1"),da.setAttribute("stroke-dasharray","4,3"),ia.appendChild(da));for(;la.firstChild;)la.removeChild(la.firstChild);for(da=0;da<m.length;da++)ca=document.createElementNS("http://www.w3.org/2000/svg","circle"),ca.setAttribute("cx",m[da].x),ca.setAttribute("cy",m[da].y),ca.setAttribute("r",5),ca.setAttribute("fill",da===
@@ -12858,7 +12864,7 @@ function(){M();m[da].y=parseInt(this.value)||0;c()});mxEvent.addListener(na,"cli
mxEvent.addListener(ta,"change",function(){M();if("Q"===m[da].type)m[da].type="L",delete m[da].cx,delete m[da].cy;else{var qa=0<da?m[da-1]:m[m.length-1];var za=m[da];var Ka=(qa.x+za.x)/2;var Na=(qa.y+za.y)/2;var La=za.x-qa.x,Za=za.y-qa.y;qa=Math.sqrt(La*La+Za*Za);0!==qa&&(za=.25*qa,Ka=Math.round(Ka+-Za/qa*za),Na=Math.round(Na+La/qa*za));m[da].type="Q";m[da].cx=Ka;m[da].cy=Na}c()});na.appendChild(ta);oa.appendChild(na)}na=document.createElement("img");na.setAttribute("src",Editor.trashImage);na.style.cursor=
"pointer";na.style.marginLeft="auto";na.style.width="14px";na.style.height="14px";na.style.opacity="0.5";na.style.flexShrink="0";na.title=mxResources.get("delete");Editor.isDarkMode()&&(na.style.filter="invert(1)");mxEvent.addListener(na,"click",function(qa){qa.stopPropagation();M();m.splice(da,1);q>=m.length&&(q=m.length-1);c()});oa.appendChild(na);mxEvent.addListener(oa,"dragstart",function(qa){U=da;oa.style.opacity="0.4";qa.dataTransfer.effectAllowed="move";qa.dataTransfer.setData("text/plain",
""+da);qa.stopPropagation()});mxEvent.addListener(oa,"dragover",function(qa){qa.preventDefault();qa.stopPropagation();qa.dataTransfer.dropEffect="move";qa=parseInt(oa.getAttribute("data-idx"));null!==U&&qa!==U&&(oa.style.borderTop=qa<U?"2px solid #4285f4":"",oa.style.borderBottom=qa>U?"2px solid #4285f4":"")});mxEvent.addListener(oa,"dragleave",function(qa){oa.style.borderTop="";oa.style.borderBottom=""});mxEvent.addListener(oa,"drop",function(qa){qa.preventDefault();qa.stopPropagation();oa.style.borderTop=
-"";oa.style.borderBottom="";var za=parseInt(oa.getAttribute("data-idx"));null!==U&&za!==U&&(M(),qa=m.splice(U,1)[0],za=za>U?za-1:za,m.splice(za,0,qa),q===U?q=za:U<q&&za>=q?q--:U>q&&za<=q&&q++,c());U=null});mxEvent.addListener(oa,"dragend",function(qa){oa.style.opacity="";oa.style.borderTop="";oa.style.borderBottom="";U=null});xa.appendChild(oa)})(ca)}var k=b.editor.graph,m=[],q=-1,v=!0,A=!0,C=[],D=[],J=-1,F=null,T=!1,W=!1,p=0,u=0,G=400,I=400,H=1,g=!1,t=0,B=0,K=0,Q=0,S=!1,U=null,N=k.view.getState(l);
+"";oa.style.borderBottom="";var za=parseInt(oa.getAttribute("data-idx"));null!==U&&za!==U&&(M(),qa=m.splice(U,1)[0],za=za>U?za-1:za,m.splice(za,0,qa),q===U?q=za:U<q&&za>=q?q--:U>q&&za<=q&&q++,c());U=null});mxEvent.addListener(oa,"dragend",function(qa){oa.style.opacity="";oa.style.borderTop="";oa.style.borderBottom="";U=null});xa.appendChild(oa)})(ca)}var k=b.editor.graph,m=[],q=-1,v=!0,A=!0,B=[],D=[],J=-1,F=null,T=!1,W=!1,p=0,u=0,G=400,I=400,H=1,g=!1,t=0,C=0,K=0,Q=0,S=!1,U=null,N=k.view.getState(l);
if(null!=N)try{var P=JSON.parse(mxUtils.getValue(N.style,"polyCoords","[]")),V=JSON.parse(mxUtils.getValue(N.style,"polyCurves","[]")),Y=mxUtils.getValue(N.style,"polyline",0);v=!(1==Y||!0===Y||"true"===Y||"1"===Y);for(N=0;N<P.length;N++){var X={x:Math.round(400*P[N][0]),y:Math.round(400*P[N][1]),type:"L"};0<N&&V.length>N-1&&null!=V[N-1]&&3<=V[N-1].length&&"Q"===V[N-1][0]&&(X.type="Q",X.cx=Math.round(400*V[N-1][1]),X.cy=Math.round(400*V[N-1][2]));m.push(X)}v&&2<P.length&&V.length>=P.length&&null!=
V[P.length-1]&&3<=V[P.length-1].length&&"Q"===V[P.length-1][0]&&(m[0].type="Q",m[0].cx=Math.round(400*V[P.length-1][1]),m[0].cy=Math.round(400*V[P.length-1][2]))}catch(ca){}var Z=document.createElement("div");Z.style.userSelect="none";Z.setAttribute("tabindex","0");Z.style.outline="none";Z.style.position="absolute";Z.style.left="30px";Z.style.right="30px";Z.style.top="30px";Z.style.bottom="30px";P=document.createElement("div");P.style.display="flex";P.style.gap="10px";P.style.position="absolute";
P.style.left="0px";P.style.right="0px";P.style.top="0px";P.style.bottom="40px";Z.appendChild(P);var aa=document.createElement("div");aa.style.border="1px solid";aa.style.borderColor="inherit";aa.style.borderRadius="4px";aa.style.flexGrow="1";aa.style.flexShrink="1";aa.style.minWidth="200px";aa.style.position="relative";aa.style.overflow="hidden";P.appendChild(aa);var ea=document.createElementNS("http://www.w3.org/2000/svg","svg");ea.setAttribute("width","100%");ea.setAttribute("height","100%");ea.setAttribute("viewBox",
@@ -12872,7 +12878,7 @@ aa.getBoundingClientRect().width-12,oa=parseFloat(Ba.style.width)||20,na=1200-G;
ea.getBoundingClientRect();if(0<ca.width&&0<ca.height){var da=p+G/2,oa=u+I/2;G=ca.width*H;I=ca.height*H;p=da-G/2;u=oa-I/2;x()}})).observe(aa);var xa=document.createElement("div");xa.style.width="200px";xa.style.flexShrink="0";xa.style.overflowY="auto";xa.style.border="1px solid";xa.style.borderColor="inherit";xa.style.borderRadius="4px";xa.style.padding="4px";P.appendChild(xa);mxEvent.addGestureListeners(ea,function(ca){if(!S&&1!==ca.button&&2!==ca.button){var da=E(ca);if(null!=da)J=da.index,F=da.type,
T=!0,W=!1,q=da.index;else{da=y(ca);M();if(2>m.length)m.push({x:da.x,y:da.y,type:"L"}),q=m.length-1;else{for(var oa=Infinity,na=m.length-1,ta=v?m.length:m.length-1,qa=0;qa<ta;qa++){var za=(qa+1)%m.length;za=mxUtils.ptSegDistSq(m[qa].x,m[qa].y,m[za].x,m[za].y,da.x,da.y);za<oa&&(oa=za,na=qa)}m.splice(na+1,0,{x:da.x,y:da.y,type:"L"});q=na+1}J=q;F="vertex";W=T=!0}c();mxEvent.consume(ca)}},function(ca){if(T&&0<=J){W||(M(),W=!0);var da=y(ca);"control"===F?(m[J].cx=da.x,m[J].cy=da.y):(m[J].x=da.x,m[J].y=
da.y);c();mxEvent.consume(ca)}},function(ca){!S&&1!==ca.button&&2!==ca.button&&T&&0<=J&&(T=!1,J=-1,F=null,mxEvent.consume(ca))});mxEvent.addListener(ea,"wheel",function(ca){ca.preventDefault();var da=ea.getBoundingClientRect(),oa=(ca.clientX-da.left)/da.width,na=(ca.clientY-da.top)/da.height,ta=p+oa*G,qa=u+na*I;H=Math.max(.05,Math.min(5,H*(0<ca.deltaY?1.15:1/1.15)));G=da.width*H;I=da.height*H;p=ta-oa*G;u=qa-na*I;x()});mxEvent.addListener(ea,"contextmenu",function(ca){ca.preventDefault()});mxEvent.addListener(ea,
-"mousedown",function(ca){if(1===ca.button||2===ca.button||0===ca.button&&S)g=!0,t=ca.clientX,B=ca.clientY,K=p,Q=u,ea.style.cursor="grabbing",ca.preventDefault()});var fa=function(ca){if(g){var da=ea.getBoundingClientRect();p=K-(ca.clientX-t)/da.width*G;u=Q-(ca.clientY-B)/da.height*I;x();ca.preventDefault()}},ua=function(ca){g&&(g=!1,ea.style.cursor=S?"grab":"crosshair")};mxEvent.addListener(document,"mousemove",fa);mxEvent.addListener(document,"mouseup",ua);P=document.createElement("div");P.style.display=
+"mousedown",function(ca){if(1===ca.button||2===ca.button||0===ca.button&&S)g=!0,t=ca.clientX,C=ca.clientY,K=p,Q=u,ea.style.cursor="grabbing",ca.preventDefault()});var fa=function(ca){if(g){var da=ea.getBoundingClientRect();p=K-(ca.clientX-t)/da.width*G;u=Q-(ca.clientY-C)/da.height*I;x();ca.preventDefault()}},ua=function(ca){g&&(g=!1,ea.style.cursor=S?"grab":"crosshair")};mxEvent.addListener(document,"mousemove",fa);mxEvent.addListener(document,"mouseup",ua);P=document.createElement("div");P.style.display=
"flex";P.style.alignItems="center";P.style.gap="6px";P.style.position="absolute";P.style.left="0px";P.style.right="0px";P.style.bottom="0px";P.style.height="34px";var Da=b.createToolbarButton(Editor.undoImage,mxResources.get("undo"),function(){L()});P.appendChild(Da);var ra=b.createToolbarButton(Editor.redoImage,mxResources.get("redo"),function(){O()});P.appendChild(ra);V=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){f(H/1.15)});P.appendChild(V);V=b.createToolbarButton(Editor.zoomOutImage,
mxResources.get("zoomOut"),function(){f(1.15*H)});P.appendChild(V);V=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){var ca=ea.getBoundingClientRect();if(0<ca.width&&0<ca.height){if(1==H)if(0<m.length){for(var da=m[0].x,oa=m[0].y,na=m[0].x,ta=m[0].y,qa=1;qa<m.length;qa++)da=Math.min(da,m[qa].x),oa=Math.min(oa,m[qa].y),na=Math.max(na,m[qa].x),ta=Math.max(ta,m[qa].y),"Q"===m[qa].type&&(da=Math.min(da,m[qa].cx),oa=Math.min(oa,m[qa].cy),na=Math.max(na,m[qa].cx),ta=Math.max(ta,
m[qa].cy));na=na-da+40;ta=ta-oa+40;H=1/Math.min(ca.width/na,ca.height/ta);G=ca.width*H;I=ca.height*H;p=da-20+(na-G)/2;u=oa-20+(ta-I)/2}else H=1,G=ca.width,I=ca.height,p=(400-G)/2,u=(400-I)/2;else H=1,G=ca.width*H,I=ca.height*H,p=(400-G)/2,u=(400-I)/2;x()}});P.appendChild(V);V=mxUtils.button(mxResources.get("deleteAll"),function(){0<m.length&&(M(),m=[],q=-1,c())});V.className="geBtn";V.style.padding="2px 10px";V.style.fontSize="12px";P.appendChild(V);V=document.createElement("span");V.style.flexGrow=
@@ -12937,7 +12943,7 @@ update:"You are a helpful assistant that helps with the following draw.io diagra
endpoint:Editor.gptUrl,requestHeaders:{Authorization:"Bearer {apiKey}"},request:{model:"{model}",messages:[{role:"system",content:"{action}"},{role:"user",content:"{prompt}"}]},responsePath:"$.choices[0].message.content"},gemini:{apiKey:"geminiApiKey",endpoint:"https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent",requestHeaders:{"X-Goog-Api-Key":"{apiKey}"},request:{system_instruction:{parts:[{text:"{action}"}]},contents:[{parts:[{text:"{prompt}"}]}]},responsePath:"$.candidates[0].content.parts[0].text"},
claude:{apiKey:"claudeApiKey",endpoint:"https://api.anthropic.com/v1/messages",requestHeaders:{"X-API-Key":"{apiKey}","Anthropic-Version":"2023-06-01","Anthropic-Dangerous-Direct-Browser-Access":"true"},request:{max_tokens:8192,model:"{model}",messages:[{role:"assistant",content:"{action}"},{role:"user",content:"{prompt}"}]},responsePath:"$.content[0].text"}};Editor.aiModels=[{name:"Claude 4.6 Opus",model:"claude-opus-4-6",config:"claude"},{name:"Claude 4.6 Sonnet",model:"claude-sonnet-4-6",config:"claude"},
{name:"Gemini 3 Pro Preview",model:"gemini-3-pro-preview",config:"gemini"},{name:"Gemini 2.5 Pro",model:"gemini-2.5-pro",config:"gemini"},{name:"GPT-5.1",model:"gpt-5.1-2025-11-13",config:"gpt"},{name:"GPT-4.1",model:"gpt-4.1-2025-04-14",config:"gpt"}];Editor.replaceSvgDataUris=!0;Editor.foreignObjectImages=!0;Editor.svgFileTheme="auto";Editor.svgRasterScale=4;Editor.htmlRasterScale=4;Editor.config=null;Editor.configVersion=null;Editor.createInheritProperty=function(g,t){return{name:t,dispName:g,
-type:"bool",defVal:!1,isVisible:function(B,K){return 1==B.vertices.length?(K=K.editorUi.editor.graph.model,B=K.getParent(B.vertices[0]),K.isEdge(B)||K.isVertex(B)):!1},getValue:function(B,K){return"inherit"==mxUtils.getValue(B.style,t)},valueChanged:function(B,K,Q,S){K=S.editorUi.editor.graph;"1"==B?K.setCellStyles(t,"inherit",Q.vertices):K.setCellStyles(t,null,Q.vertices)}}};Editor.commonProperties=[{name:"enumerate",dispName:"Enumerate",type:"bool",defVal:!1,onChange:function(g){g.refresh()}},{name:"enumerateValue",
+type:"bool",defVal:!1,isVisible:function(C,K){return 1==C.vertices.length?(K=K.editorUi.editor.graph.model,C=K.getParent(C.vertices[0]),K.isEdge(C)||K.isVertex(C)):!1},getValue:function(C,K){return"inherit"==mxUtils.getValue(C.style,t)},valueChanged:function(C,K,Q,S){K=S.editorUi.editor.graph;"1"==C?K.setCellStyles(t,"inherit",Q.vertices):K.setCellStyles(t,null,Q.vertices)}}};Editor.commonProperties=[{name:"enumerate",dispName:"Enumerate",type:"bool",defVal:!1,onChange:function(g){g.refresh()}},{name:"enumerateValue",
dispName:"Enumerate Value",type:"string",defVal:"",isVisible:function(g,t){return"1"==mxUtils.getValue(g.style,"enumerate","0")}},{name:"comic",dispName:"Comic",type:"bool",defVal:!1,isVisible:function(g,t){return"1"!=mxUtils.getValue(g.style,"sketch","0")}},{name:"jiggle",dispName:"Jiggle",type:"float",min:0,defVal:1,isVisible:function(g,t){return"1"==mxUtils.getValue(g.style,"comic","0")||"1"==mxUtils.getValue(g.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"fillWeight",dispName:"Fill Weight",
type:"int",defVal:-1,isVisible:function(g,t){return"1"==mxUtils.getValue(g.style,"sketch","1"==urlParams.rough?"1":"0")&&0<g.vertices.length}},{name:"hachureGap",dispName:"Hachure Gap",type:"int",defVal:-1,isVisible:function(g,t){return"1"==mxUtils.getValue(g.style,"sketch","1"==urlParams.rough?"1":"0")&&0<g.vertices.length}},{name:"hachureAngle",dispName:"Hachure Angle",type:"int",defVal:-41,isVisible:function(g,t){return"1"==mxUtils.getValue(g.style,"sketch","1"==urlParams.rough?"1":"0")&&0<g.vertices.length}},
{name:"curveFitting",dispName:"Curve Fitting",type:"float",defVal:.95,isVisible:function(g,t){return"1"==mxUtils.getValue(g.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"simplification",dispName:"Simplification",type:"float",defVal:0,min:0,max:1,isVisible:function(g,t){return"1"==mxUtils.getValue(g.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"disableMultiStroke",dispName:"Disable Multi Stroke",type:"bool",defVal:!1,isVisible:function(g,t){return"1"==mxUtils.getValue(g.style,"sketch",
@@ -12961,21 +12967,21 @@ type:"bool",defVal:!1},{name:"labelPadding",dispName:"Label Padding",type:"float
dispName:"West"}]},{name:"portConstraintRotation",dispName:"Rotate Constraint",type:"bool",defVal:!1},{name:"connectable",dispName:"Connectable",type:"bool",getDefaultValue:function(g,t){return t.editorUi.editor.graph.isCellConnectable(0<g.vertices.length&&0==g.edges.length?g.vertices[0]:null)},isVisible:function(g,t){return 0<g.vertices.length&&0==g.edges.length}},{name:"allowArrows",dispName:"Allow Arrows",type:"bool",defVal:!0},{name:"snapToPoint",dispName:"Snap to Point",type:"bool",defVal:!1},
{name:"perimeter",dispName:"Perimeter",defVal:"none",type:"enum",enumList:[{val:"none",dispName:"None"},{val:"rectanglePerimeter",dispName:"Rectangle"},{val:"ellipsePerimeter",dispName:"Ellipse"},{val:"rhombusPerimeter",dispName:"Rhombus"},{val:"trianglePerimeter",dispName:"Triangle"},{val:"hexagonPerimeter2",dispName:"Hexagon"},{val:"lifelinePerimeter",dispName:"Lifeline"},{val:"orthogonalPerimeter",dispName:"Orthogonal"},{val:"backbonePerimeter",dispName:"Backbone"},{val:"calloutPerimeter",dispName:"Callout"},
{val:"parallelogramPerimeter",dispName:"Parallelogram"},{val:"trapezoidPerimeter",dispName:"Trapezoid"},{val:"stepPerimeter",dispName:"Step"},{val:"centerPerimeter",dispName:"Center"}]},{name:"fixDash",dispName:"Fixed Dash",type:"bool",defVal:!1},{name:"container",dispName:"Container",type:"bool",getDefaultValue:function(g,t){g=0<g.vertices.length&&0==g.edges.length?g.vertices[0]:null;t=t.editorUi.editor.graph;return null!=g&&t.isSwimlane(g)},isVisible:function(g,t){return 0<g.vertices.length&&0==
-g.edges.length}},{name:"dropTarget",dispName:"Drop Target",type:"bool",getDefaultValue:function(g,t){g=1==g.vertices.length&&0==g.edges.length?g.vertices[0]:null;t=t.editorUi.editor.graph;return null!=g&&(t.isSwimlane(g)||0<t.model.getChildCount(g))},isVisible:function(g,t){return 1==g.vertices.length&&0==g.edges.length}},{name:"collapsible",dispName:"Collapsible",type:"bool",getDefaultValue:function(g,t){var B=1==g.vertices.length&&0==g.edges.length?g.vertices[0]:null;t=t.editorUi.editor.graph;return null!=
-B&&(t.isContainer(B)&&"0"!=g.style.collapsible||!t.isContainer(B)&&"1"==g.style.collapsible)},isVisible:function(g,t){return 1==g.vertices.length&&0==g.edges.length}},{name:"recursiveResize",dispName:"Resize Children",type:"bool",defVal:!0,isVisible:function(g,t){return 1==g.vertices.length&&0==g.edges.length&&!t.editorUi.editor.graph.isSwimlane(g.vertices[0])&&null==mxUtils.getValue(g.style,"childLayout",null)}},{name:"expand",dispName:"Expand",type:"bool",defVal:!0},{name:"contract",dispName:"Contract",
+g.edges.length}},{name:"dropTarget",dispName:"Drop Target",type:"bool",getDefaultValue:function(g,t){g=1==g.vertices.length&&0==g.edges.length?g.vertices[0]:null;t=t.editorUi.editor.graph;return null!=g&&(t.isSwimlane(g)||0<t.model.getChildCount(g))},isVisible:function(g,t){return 1==g.vertices.length&&0==g.edges.length}},{name:"collapsible",dispName:"Collapsible",type:"bool",getDefaultValue:function(g,t){var C=1==g.vertices.length&&0==g.edges.length?g.vertices[0]:null;t=t.editorUi.editor.graph;return null!=
+C&&(t.isContainer(C)&&"0"!=g.style.collapsible||!t.isContainer(C)&&"1"==g.style.collapsible)},isVisible:function(g,t){return 1==g.vertices.length&&0==g.edges.length}},{name:"recursiveResize",dispName:"Resize Children",type:"bool",defVal:!0,isVisible:function(g,t){return 1==g.vertices.length&&0==g.edges.length&&!t.editorUi.editor.graph.isSwimlane(g.vertices[0])&&null==mxUtils.getValue(g.style,"childLayout",null)}},{name:"expand",dispName:"Expand",type:"bool",defVal:!0},{name:"contract",dispName:"Contract",
type:"bool",defVal:!1},{name:"groupPadding",dispName:"Group Padding",type:"int",defVal:0,min:0},{name:"part",dispName:"Part",type:"bool",defVal:!1,isVisible:function(g,t){t=t.editorUi.editor.graph.model;return 0<g.vertices.length?t.isVertex(t.getParent(g.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(g,t){g=0<g.vertices.length?t.editorUi.editor.graph.getCellGeometry(g.vertices[0]):null;return null!=g&&!g.relative}},{name:"autosize",dispName:"Autosize",type:"bool",defVal:!1},{name:"autosizeGrid",dispName:"Autosize Grid",type:"enum",defVal:null,enumList:[{val:null,dispName:"Default"},{val:"1",dispName:"Enabled"},{val:"0",dispName:"Disabled"}],isVisible:function(g,t){return 0<g.vertices.length&&
t.editorUi.editor.graph.isAutoSizeCell(g.vertices[0])}},{name:"fixedWidth",dispName:"Fixed Width",type:"bool",defVal:!1},{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(g,t){var B=mxUtils.getValue(g.style,mxConstants.STYLE_FILLCOLOR,null);return!mxShape.forceFilledPointerEvents||t.editorUi.editor.graph.isSwimlane(g.vertices[0])||null==B||B==mxConstants.NONE||0==mxUtils.getValue(g.style,mxConstants.STYLE_FILL_OPACITY,100)||0==mxUtils.getValue(g.style,
+{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(g,t){var C=mxUtils.getValue(g.style,mxConstants.STYLE_FILLCOLOR,null);return!mxShape.forceFilledPointerEvents||t.editorUi.editor.graph.isSwimlane(g.vertices[0])||null==C||C==mxConstants.NONE||0==mxUtils.getValue(g.style,mxConstants.STYLE_FILL_OPACITY,100)||0==mxUtils.getValue(g.style,
mxConstants.STYLE_OPACITY,100)||null!=g.style.pointerEvents}},{name:"moveCells",dispName:"Move Cells on Fold",type:"bool",defVal:!1,isVisible:function(g,t){return 0<g.vertices.length&&t.editorUi.editor.graph.isContainer(g.vertices[0])}},{name:"expandToFront",dispName:"Expand to Front",type:"bool",defVal:!1,isVisible:function(g,t){return 0<g.vertices.length&&t.editorUi.editor.graph.isContainer(g.vertices[0])}},Editor.createInheritProperty("Inherit Font Family",mxConstants.STYLE_FONTFAMILY),Editor.createInheritProperty("Inherit Font Size",
mxConstants.STYLE_FONTSIZE),Editor.createInheritProperty("Inherit Font Color",mxConstants.STYLE_FONTCOLOR),Editor.createInheritProperty("Inherit Fill Color",mxConstants.STYLE_FILLCOLOR),Editor.createInheritProperty("Inherit Stroke Color",mxConstants.STYLE_STROKECOLOR)].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## An optional data object can be specified to define the metadata for the connector.\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, width 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## Collapsed state for vertices. Possible values are true or false. Default is false.\n#\n# collapsed: false\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, orgchart or a JSON string as used in\n## Layout, Apply. 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,,[email protected],default,#6c8ebf,,https://app.diagrams.net,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-3-128.png\nEdward Morrison,Brand Manager,emo,Office 2,Tessa Miller,[email protected],default,#82b366,,https://app.diagrams.net,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-10-3-128.png\nAlison Donovan,System Admin,rdo,Office 3,Tessa Miller,[email protected],default,#82b366,"emo,tva",https://app.diagrams.net,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-2-128.png\nEvan Valet,HR Director,tva,Office 4,Tessa Miller,[email protected],default,#82b366,,https://app.diagrams.net,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-9-2-128.png\n';
-Editor.canvasSupported=!1;(function(){try{var g=document.createElement("canvas");Editor.canvasSupported=!(!g.getContext||!g.getContext("2d"))}catch(t){}})();Editor.useCanvasForExport=!1;(function(){try{var g=document.createElement("canvas"),t=new Image;t.onload=function(){try{g.getContext("2d").drawImage(t,0,0);var B=g.toDataURL("image/png");Editor.useCanvasForExport=null!=B&&6<B.length}catch(K){}};t.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(B){}})();
-Editor.jpgSupported=!1;Editor.webpSupported=!1;(function(){try{var g=document.createElement("canvas");g.width=g.height=1;var t=g.toDataURL("image/jpeg");Editor.jpgSupported=null!==t.match("image/jpeg");t=g.toDataURL("image/webp");Editor.webpSupported=null!==t.match("image/webp")}catch(B){}})();Editor.loadCompatibleCss=function(g){mxUtils.lightDarkColorSupported||mxUtils.get(g||"styles/grapheditor.css",mxUtils.bind(this,function(t){if(200<=t.getStatus()&&299>=t.getStatus()){var B=document.createElement("style");
-B.type="text/css";var K=B.appendChild,Q=document,S=Q.createTextNode;t=t.getText().replace(/light-dark\(\s*(var\([^\)]+\)|[^,]+)\s*,\s*(var\([^\)]+\)|[^)]+)\s*\)/g,"$1");try{CSS.supports("selector(:has(*))")||(t=t.replace(/:has\(/g,":not(")+"\n.geFormatTitleContainer { overflow: hidden !important; }\n.geRuler+.geRuler { margin-top: 14px !important; }\n.geDiagramContainer { margin: 0 !important; }")}catch(U){}K.call(B,S.call(Q,t));document.head.appendChild(B)}}))};Editor.replacePlaceholders=function(g,
-t){var B=[];if(null!=g&&null!=t){for(var K=RegExp("{([^{}\"'=;]+)}","g"),Q,S=0;Q=K.exec(g);){var U=Q[0];if(2<U.length){var N=t(U.substring(1,U.length-1)),P=U;null!=N&&(P=N);B.push(g.substring(S,Q.index)+P);S=Q.index+U.length}}B.push(g.substring(S))}return B.join("")};Editor.executeSimpleJsonPath=function(g,t){t=t.replace(/^\$\.?/,"").split(".");t=$jscomp.makeIterator(t);for(var B=t.next();!B.done;B=t.next()){var K=B.value;if(!g)return[];if(B=K.match(/([^\[]+)\[(\d+)\]/))if(K=B[1],B=parseInt(B[2]),
-g=g[K],Array.isArray(g)&&B<g.length)g=g[B];else return[];else g=g[K]}return void 0!==g?[g]:[]};Editor.createRoughCanvas=function(g){var t=rough.canvas({getContext:function(){return g}});t.draw=function(B){var K=B.sets||[];B=B.options||this.getDefaultOptions();for(var Q=0;Q<K.length;Q++){var S=K[Q];switch(S.type){case "path":null!=B.stroke&&this._drawToContext(g,S,B);break;case "fillPath":this._drawToContext(g,S,B);break;case "fillSketch":this.fillSketch(g,S,B)}}};t.fillSketch=function(B,K,Q){var S=
-g.state.strokeColor,U=g.state.strokeWidth,N=g.state.strokeAlpha,P=g.state.dashed,V=Q.fillWeight;0>V&&(V=Q.strokeWidth/2);g.setStrokeAlpha(g.state.fillAlpha);g.setStrokeColor(Q.fill||"");g.setStrokeWidth(V);g.setDashed(!1);this._drawToContext(B,K,Q);g.setDashed(P);g.setStrokeWidth(U);g.setStrokeColor(S);g.setStrokeAlpha(N)};t._drawToContext=function(B,K,Q){B.begin();for(var S=0;S<K.ops.length;S++){var U=K.ops[S],N=U.data;switch(U.op){case "move":B.moveTo(N[0],N[1]);break;case "bcurveTo":B.curveTo(N[0],
-N[1],N[2],N[3],N[4],N[5]);break;case "lineTo":B.lineTo(N[0],N[1])}}B.end();"fillPath"===K.type&&Q.filled?B.fill():B.stroke()};return t};(function(){function g(S,U,N){this.canvas=S;this.rc=U;this.shape=N;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,g.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,g.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,
+Editor.canvasSupported=!1;(function(){try{var g=document.createElement("canvas");Editor.canvasSupported=!(!g.getContext||!g.getContext("2d"))}catch(t){}})();Editor.useCanvasForExport=!1;(function(){try{var g=document.createElement("canvas"),t=new Image;t.onload=function(){try{g.getContext("2d").drawImage(t,0,0);var C=g.toDataURL("image/png");Editor.useCanvasForExport=null!=C&&6<C.length}catch(K){}};t.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(C){}})();
+Editor.jpgSupported=!1;Editor.webpSupported=!1;(function(){try{var g=document.createElement("canvas");g.width=g.height=1;var t=g.toDataURL("image/jpeg");Editor.jpgSupported=null!==t.match("image/jpeg");t=g.toDataURL("image/webp");Editor.webpSupported=null!==t.match("image/webp")}catch(C){}})();Editor.loadCompatibleCss=function(g){mxUtils.lightDarkColorSupported||mxUtils.get(g||"styles/grapheditor.css",mxUtils.bind(this,function(t){if(200<=t.getStatus()&&299>=t.getStatus()){var C=document.createElement("style");
+C.type="text/css";var K=C.appendChild,Q=document,S=Q.createTextNode;t=t.getText().replace(/light-dark\(\s*(var\([^\)]+\)|[^,]+)\s*,\s*(var\([^\)]+\)|[^)]+)\s*\)/g,"$1");try{CSS.supports("selector(:has(*))")||(t=t.replace(/:has\(/g,":not(")+"\n.geFormatTitleContainer { overflow: hidden !important; }\n.geRuler+.geRuler { margin-top: 14px !important; }\n.geDiagramContainer { margin: 0 !important; }")}catch(U){}K.call(C,S.call(Q,t));document.head.appendChild(C)}}))};Editor.replacePlaceholders=function(g,
+t){var C=[];if(null!=g&&null!=t){for(var K=RegExp("{([^{}\"'=;]+)}","g"),Q,S=0;Q=K.exec(g);){var U=Q[0];if(2<U.length){var N=t(U.substring(1,U.length-1)),P=U;null!=N&&(P=N);C.push(g.substring(S,Q.index)+P);S=Q.index+U.length}}C.push(g.substring(S))}return C.join("")};Editor.executeSimpleJsonPath=function(g,t){t=t.replace(/^\$\.?/,"").split(".");t=$jscomp.makeIterator(t);for(var C=t.next();!C.done;C=t.next()){var K=C.value;if(!g)return[];if(C=K.match(/([^\[]+)\[(\d+)\]/))if(K=C[1],C=parseInt(C[2]),
+g=g[K],Array.isArray(g)&&C<g.length)g=g[C];else return[];else g=g[K]}return void 0!==g?[g]:[]};Editor.createRoughCanvas=function(g){var t=rough.canvas({getContext:function(){return g}});t.draw=function(C){var K=C.sets||[];C=C.options||this.getDefaultOptions();for(var Q=0;Q<K.length;Q++){var S=K[Q];switch(S.type){case "path":null!=C.stroke&&this._drawToContext(g,S,C);break;case "fillPath":this._drawToContext(g,S,C);break;case "fillSketch":this.fillSketch(g,S,C)}}};t.fillSketch=function(C,K,Q){var S=
+g.state.strokeColor,U=g.state.strokeWidth,N=g.state.strokeAlpha,P=g.state.dashed,V=Q.fillWeight;0>V&&(V=Q.strokeWidth/2);g.setStrokeAlpha(g.state.fillAlpha);g.setStrokeColor(Q.fill||"");g.setStrokeWidth(V);g.setDashed(!1);this._drawToContext(C,K,Q);g.setDashed(P);g.setStrokeWidth(U);g.setStrokeColor(S);g.setStrokeAlpha(N)};t._drawToContext=function(C,K,Q){C.begin();for(var S=0;S<K.ops.length;S++){var U=K.ops[S],N=U.data;switch(U.op){case "move":C.moveTo(N[0],N[1]);break;case "bcurveTo":C.curveTo(N[0],
+N[1],N[2],N[3],N[4],N[5]);break;case "lineTo":C.lineTo(N[0],N[1])}}C.end();"fillPath"===K.type&&Q.filled?C.fill():C.stroke()};return t};(function(){function g(S,U,N){this.canvas=S;this.rc=U;this.shape=N;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,g.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,g.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,
g.prototype.rect);this.originalRoundrect=this.canvas.roundrect;this.canvas.roundrect=mxUtils.bind(this,g.prototype.roundrect);this.originalEllipse=this.canvas.ellipse;this.canvas.ellipse=mxUtils.bind(this,g.prototype.ellipse);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.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);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,g.prototype.close);this.originalFill=this.canvas.fill;this.canvas.fill=mxUtils.bind(this,g.prototype.fill);this.originalStroke=this.canvas.stroke;this.canvas.stroke=mxUtils.bind(this,g.prototype.stroke);this.originalFillAndStroke=this.canvas.fillAndStroke;
this.canvas.fillAndStroke=mxUtils.bind(this,g.prototype.fillAndStroke);this.path=[];this.passThrough=!1}g.prototype.moveOp="M";g.prototype.lineOp="L";g.prototype.quadOp="Q";g.prototype.curveOp="C";g.prototype.closeOp="Z";g.prototype.getStyle=function(S,U){var N=1;if(null!=this.shape.state){var P=this.shape.state.cell.id;if(null!=P)for(var V=0;V<P.length;V++)N=(N<<5)-N+P.charCodeAt(V)<<0}N={strokeWidth:this.canvas.state.strokeWidth,seed:N,preserveVertices:!0};P=this.rc.getDefaultOptions();N.stroke=
@@ -12990,18 +12996,18 @@ N/2,U+P/2,N,P,this.getStyle(!0,!0)))};g.prototype.roundrect=function(S,U,N,P,V,Y
!1}else if(null!=this.nextShape){for(var U in S)this.nextShape.options[U]=S[U];S.stroke!=mxConstants.NONE&&null!=S.stroke||delete this.nextShape.options.stroke;S.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};g.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!1))};g.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):
this.drawPath(this.getStyle(!1,!0))};g.prototype.fillAndStroke=function(){this.passThrough?this.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};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;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(S){return new g(S,Editor.createRoughCanvas(S),this)};var t=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=function(S){return this.outline||
-null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?t.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(S):this.createRoughCanvas(S)};var B=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(S,U,N,P,V){null!=S.handJiggle&&S.handJiggle.passThrough||B.apply(this,arguments)};var K=mxShape.prototype.paint;mxShape.prototype.paint=function(S){var U=S.addTolerance,N=!0;null!=this.style&&(N="1"==mxUtils.getValue(this.style,
+null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?t.apply(this,arguments):"comic"==mxUtils.getValue(this.style,"sketchStyle","rough")?this.createComicCanvas(S):this.createRoughCanvas(S)};var C=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(S,U,N,P,V){null!=S.handJiggle&&S.handJiggle.passThrough||C.apply(this,arguments)};var K=mxShape.prototype.paint;mxShape.prototype.paint=function(S){var U=S.addTolerance,N=!0;null!=this.style&&(N="1"==mxUtils.getValue(this.style,
mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=S.handJiggle&&S.handJiggle.constructor==g&&!this.outline){S.save();var P=this.fill,V=this.stroke;this.stroke=this.fill=null;var Y=this.configurePointerEvents,X=S.setStrokeColor;S.setStrokeColor=function(){};var Z=S.setFillColor;S.setFillColor=function(){};N||null==P||(this.configurePointerEvents=function(){});S.handJiggle.passThrough=!0;K.apply(this,arguments);S.handJiggle.passThrough=!1;S.setFillColor=Z;S.setStrokeColor=X;this.configurePointerEvents=
Y;this.stroke=V;this.fill=P;S.restore();N&&null!=P&&(S.addTolerance=function(){})}K.apply(this,arguments);S.addTolerance=U};var Q=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(S,U,N,P,V,Y){null!=S.handJiggle&&S.handJiggle.constructor==g?(S.handJiggle.passThrough=!0,Q.apply(this,arguments),S.handJiggle.passThrough=!1):Q.apply(this,arguments)}})();Editor.fastCompress=function(g){return null==g||0==g.length||"undefined"===typeof pako?g:Graph.arrayBufferToString(pako.deflateRaw(g))};
-Editor.fastDecompress=function(g){return null==g||0==g.length||"undefined"===typeof pako?g:pako.inflateRaw(Graph.stringToArrayBuffer(atob(g)),{to:"string"})};Editor.extractGraphModel=function(g,t,B){if(null!=g&&"undefined"!==typeof pako){var K=g.ownerDocument.getElementsByTagName("div"),Q=[];if(null!=K&&0<K.length)for(var S=0;S<K.length;S++)if("mxgraph"==K[S].getAttribute("class")){Q.push(K[S]);break}0<Q.length&&(K=Q[0].getAttribute("data-mxgraph"),null!=K?(Q=JSON.parse(K),null!=Q&&null!=Q.xml&&(g=
-mxUtils.parseXml(Q.xml),g=g.documentElement)):(Q=Q[0].getElementsByTagName("div"),0<Q.length&&(K=mxUtils.getTextContent(Q[0]),K=Graph.decompress(K,null,B),0<K.length&&(g=mxUtils.parseXml(K),g=g.documentElement))))}if(null!=g&&"svg"==g.nodeName)if(K=g.getAttribute("content"),null!=K&&"<"!=K.charAt(0)&&"%"!=K.charAt(0)&&(K=unescape(window.atob?atob(K):Base64.decode(cont,K))),null!=K&&"%"==K.charAt(0)&&(K=decodeURIComponent(K)),null!=K&&0<K.length)g=mxUtils.parseXml(K).documentElement;else throw{message:mxResources.get("notADiagramFile")};
-null==g||t||(Q=null,"diagram"==g.nodeName?Q=g:"mxfile"==g.nodeName&&(K=g.getElementsByTagName("diagram"),0<K.length&&(Q=K[Math.max(0,Math.min(K.length-1,urlParams.page||0))])),null!=Q&&(g=Editor.parseDiagramNode(Q,B)));null==g||"mxGraphModel"==g.nodeName||t&&"mxfile"==g.nodeName||(g=null);return g};Editor.parseDiagramNode=function(g,t,B){Editor.validateDiagramNode(g);var K=mxUtils.trim(mxUtils.getTextContent(g)),Q=null;0<K.length?(t=Graph.decompress(K,null,t),null!=t&&0<t.length&&(Q=mxUtils.parseXml(t).documentElement)):
-(g=mxUtils.getChildNodes(g),0<g.length&&(Q=g[0],B&&(Q=Editor.parseDiagramNode(Q,t,!1)),t=mxUtils.createXmlDocument(),t.appendChild(t.importNode(Q,!0)),Q=t.documentElement));return Q};Editor.getDiagramNodeXml=function(g){Editor.validateDiagramNode(g);var t=mxUtils.getNodeValue(g),B=null;0<t.length?B=Graph.decompress(t):(g=g.getElementsByTagName("mxGraphModel"),null!=g&&0<g.length&&(B=mxUtils.getXml(g[0])));return B};Editor.validateDiagramNode=function(g){if(0==mxUtils.trim(mxUtils.getTextContent(g)).length&&
-0==mxUtils.getChildNodes(g).length){var t=new mxCodec,B=new mxGraphModel;g.appendChild(t.encode(B))}return g};Editor.extractGraphModelFromPdf=function(g){var t=null;g=g.substring(g.indexOf(",")+1);g=window.atob&&!mxClient.IS_SF?atob(g):Base64.decode(g,!0);if("%PDF-1.7"==g.substring(0,8)){var B=g.indexOf("EmbeddedFile");if(-1<B){var K=g.indexOf("stream",B)+9;if(0<g.substring(B,K).indexOf("application#2Fvnd.jgraph.mxfile")){var Q=g.indexOf("endstream",K-1);return pako.inflateRaw(Graph.stringToArrayBuffer(g.substring(K,
-Q)),{to:"string"})}}for(B=g.indexOf("/ObjStm");0<B;){K=g.indexOf("stream",B)+9;Q=g.indexOf("endstream",K-1);K=pako.inflateRaw(Graph.stringToArrayBuffer(g.substring(K,Q)),{to:"string"});Q=K.indexOf("/Subject <");if(0<Q){B=K.substring(Q+14,K.indexOf(">",Q));if(null!=B){t=B;B=[];for(K=0;K<t.length;K+=2)Q=t.substr(K,2),"00"!=Q&&B.push(String.fromCharCode(parseInt(Q,16)));t=B.join("")}break}B=g.indexOf("/ObjStm",B+1)}}if(null==t&&"%PDF-1.4"==g.substring(0,8)){B="";Q=K=0;for(var S=[],U=null;Q<g.length;){var N=
-g.charCodeAt(Q);Q+=1;10!=N&&(B+=String.fromCharCode(N));N=="/Subject (%3Cmxfile".charCodeAt(K)?K++:K=0;if(19==K){var P=g.indexOf("%3C%2Fmxfile%3E",Q)+15;Q-=9;if(P>Q){t=g.substring(Q,P);break}}10==N&&("endobj"==B?U=null:"obj"==B.substring(B.length-3,B.length)||"xref"==B||"trailer"==B?(U=[],S[B.split(" ")[0]]=U):null!=U&&U.push(B),B="")}}null==t&&null!=S&&(t=Editor.extractGraphModelFromXref(S));null!=t&&(t=decodeURIComponent(t.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return t};Editor.extractGraphModelFromXref=
-function(g){var t=g.trailer,B=null;null!=t&&(t=/.* \/Info (\d+) (\d+) R/g.exec(t.join("\n")),null!=t&&0<t.length&&(t=g[t[1]],null!=t&&(t=/.* \/Subject (\d+) (\d+) R/g.exec(t.join("\n")),null!=t&&0<t.length&&(g=g[t[1]],null!=g&&(g=g.join("\n"),B=g.substring(1,g.length-1))))));return B};Editor.extractParserError=function(g,t){var B=null;g=null!=g?g.getElementsByTagName("parsererror"):null;null!=g&&0<g.length&&(B=t||mxResources.get("invalidChars"),t=g[0].getElementsByTagName("div"),0<t.length&&(B=mxUtils.getTextContent(t[0])));
-return null!=B?mxUtils.trim(B):B};Editor.addRetryToError=function(g,t){null!=g&&(g=null!=g.error?g.error:g,null==g.retry&&(g.retry=t))};Editor.mermaidToDrawio=function(g,t,B){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(g,t,B)};Editor.configure=function(g){if(null!=g){Editor.config=g;Editor.configVersion=g.version;g.debug&&(urlParams.test="1");g.passiveScroll&&(Editor.passiveScroll=!0);g.noResizers&&(Editor.noResizers=!0);g.preserveViewState&&(Editor.preserveViewState=!0);g.useInternalClipboard&&
+Editor.fastDecompress=function(g){return null==g||0==g.length||"undefined"===typeof pako?g:pako.inflateRaw(Graph.stringToArrayBuffer(atob(g)),{to:"string"})};Editor.extractGraphModel=function(g,t,C){if(null!=g&&"undefined"!==typeof pako){var K=g.ownerDocument.getElementsByTagName("div"),Q=[];if(null!=K&&0<K.length)for(var S=0;S<K.length;S++)if("mxgraph"==K[S].getAttribute("class")){Q.push(K[S]);break}0<Q.length&&(K=Q[0].getAttribute("data-mxgraph"),null!=K?(Q=JSON.parse(K),null!=Q&&null!=Q.xml&&(g=
+mxUtils.parseXml(Q.xml),g=g.documentElement)):(Q=Q[0].getElementsByTagName("div"),0<Q.length&&(K=mxUtils.getTextContent(Q[0]),K=Graph.decompress(K,null,C),0<K.length&&(g=mxUtils.parseXml(K),g=g.documentElement))))}if(null!=g&&"svg"==g.nodeName)if(K=g.getAttribute("content"),null!=K&&"<"!=K.charAt(0)&&"%"!=K.charAt(0)&&(K=unescape(window.atob?atob(K):Base64.decode(cont,K))),null!=K&&"%"==K.charAt(0)&&(K=decodeURIComponent(K)),null!=K&&0<K.length)g=mxUtils.parseXml(K).documentElement;else throw{message:mxResources.get("notADiagramFile")};
+null==g||t||(Q=null,"diagram"==g.nodeName?Q=g:"mxfile"==g.nodeName&&(K=g.getElementsByTagName("diagram"),0<K.length&&(Q=K[Math.max(0,Math.min(K.length-1,urlParams.page||0))])),null!=Q&&(g=Editor.parseDiagramNode(Q,C)));null==g||"mxGraphModel"==g.nodeName||t&&"mxfile"==g.nodeName||(g=null);return g};Editor.parseDiagramNode=function(g,t,C){Editor.validateDiagramNode(g);var K=mxUtils.trim(mxUtils.getTextContent(g)),Q=null;0<K.length?(t=Graph.decompress(K,null,t),null!=t&&0<t.length&&(Q=mxUtils.parseXml(t).documentElement)):
+(g=mxUtils.getChildNodes(g),0<g.length&&(Q=g[0],C&&(Q=Editor.parseDiagramNode(Q,t,!1)),t=mxUtils.createXmlDocument(),t.appendChild(t.importNode(Q,!0)),Q=t.documentElement));return Q};Editor.getDiagramNodeXml=function(g){Editor.validateDiagramNode(g);var t=mxUtils.getNodeValue(g),C=null;0<t.length?C=Graph.decompress(t):(g=g.getElementsByTagName("mxGraphModel"),null!=g&&0<g.length&&(C=mxUtils.getXml(g[0])));return C};Editor.validateDiagramNode=function(g){if(0==mxUtils.trim(mxUtils.getTextContent(g)).length&&
+0==mxUtils.getChildNodes(g).length){var t=new mxCodec,C=new mxGraphModel;g.appendChild(t.encode(C))}return g};Editor.extractGraphModelFromPdf=function(g){var t=null;g=g.substring(g.indexOf(",")+1);g=window.atob&&!mxClient.IS_SF?atob(g):Base64.decode(g,!0);if("%PDF-1.7"==g.substring(0,8)){var C=g.indexOf("EmbeddedFile");if(-1<C){var K=g.indexOf("stream",C)+9;if(0<g.substring(C,K).indexOf("application#2Fvnd.jgraph.mxfile")){var Q=g.indexOf("endstream",K-1);return pako.inflateRaw(Graph.stringToArrayBuffer(g.substring(K,
+Q)),{to:"string"})}}for(C=g.indexOf("/ObjStm");0<C;){K=g.indexOf("stream",C)+9;Q=g.indexOf("endstream",K-1);K=pako.inflateRaw(Graph.stringToArrayBuffer(g.substring(K,Q)),{to:"string"});Q=K.indexOf("/Subject <");if(0<Q){C=K.substring(Q+14,K.indexOf(">",Q));if(null!=C){t=C;C=[];for(K=0;K<t.length;K+=2)Q=t.substr(K,2),"00"!=Q&&C.push(String.fromCharCode(parseInt(Q,16)));t=C.join("")}break}C=g.indexOf("/ObjStm",C+1)}}if(null==t&&"%PDF-1.4"==g.substring(0,8)){C="";Q=K=0;for(var S=[],U=null;Q<g.length;){var N=
+g.charCodeAt(Q);Q+=1;10!=N&&(C+=String.fromCharCode(N));N=="/Subject (%3Cmxfile".charCodeAt(K)?K++:K=0;if(19==K){var P=g.indexOf("%3C%2Fmxfile%3E",Q)+15;Q-=9;if(P>Q){t=g.substring(Q,P);break}}10==N&&("endobj"==C?U=null:"obj"==C.substring(C.length-3,C.length)||"xref"==C||"trailer"==C?(U=[],S[C.split(" ")[0]]=U):null!=U&&U.push(C),C="")}}null==t&&null!=S&&(t=Editor.extractGraphModelFromXref(S));null!=t&&(t=decodeURIComponent(t.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return t};Editor.extractGraphModelFromXref=
+function(g){var t=g.trailer,C=null;null!=t&&(t=/.* \/Info (\d+) (\d+) R/g.exec(t.join("\n")),null!=t&&0<t.length&&(t=g[t[1]],null!=t&&(t=/.* \/Subject (\d+) (\d+) R/g.exec(t.join("\n")),null!=t&&0<t.length&&(g=g[t[1]],null!=g&&(g=g.join("\n"),C=g.substring(1,g.length-1))))));return C};Editor.extractParserError=function(g,t){var C=null;g=null!=g?g.getElementsByTagName("parsererror"):null;null!=g&&0<g.length&&(C=t||mxResources.get("invalidChars"),t=g[0].getElementsByTagName("div"),0<t.length&&(C=mxUtils.getTextContent(t[0])));
+return null!=C?mxUtils.trim(C):C};Editor.addRetryToError=function(g,t){null!=g&&(g=null!=g.error?g.error:g,null==g.retry&&(g.retry=t))};Editor.mermaidToDrawio=function(g,t,C){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(g,t,C)};Editor.configure=function(g){if(null!=g){Editor.config=g;Editor.configVersion=g.version;g.debug&&(urlParams.test="1");g.passiveScroll&&(Editor.passiveScroll=!0);g.noResizers&&(Editor.noResizers=!0);g.preserveViewState&&(Editor.preserveViewState=!0);g.useInternalClipboard&&
(EditorUi.prototype.useInternalClipboard=g.useInternalClipboard);if(null!=g.customCss){var t=document.createElement("style");t.type="text/css";t.appendChild(document.createTextNode(g.customCss));document.head.appendChild(t)}null!=g.enableLocalFonts&&(Editor.enableLocalFonts=g.enableLocalFonts);null!=g.defaultFonts&&(Menus.prototype.defaultFonts=g.defaultFonts);null!=g.presetColors&&(ColorDialog.prototype.presetColors=g.presetColors);null!=g.defaultColors&&(ColorDialog.prototype.defaultColors=g.defaultColors);
null!=g.colorNames&&(ColorDialog.prototype.colorNames=g.colorNames);null!=g.defaultColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=g.defaultColorSchemes);null!=g.defaultEdgeLength&&(Graph.prototype.defaultEdgeLength=g.defaultEdgeLength);null!=g.selectParentLayer&&(Graph.selectParentLayer=g.selectParentLayer);null!=g.intersectionSelect&&(Graph.intersectionSelect=g.intersectionSelect);null!=g.autosaveDelay&&(DrawioFile.prototype.autosaveDelay=g.autosaveDelay);null!=g.templateFile&&(EditorUi.templateFile=
g.templateFile);null!=g.styles&&(Array.isArray(g.styles)?Editor.styles=g.styles:EditorUi.debug("Configuration Error: Array expected for styles"));null!=g.globalVars&&(Editor.globalVars=g.globalVars);null!=g.defaultFileType&&(Editor.defaultFileType=g.defaultFileType);null!=g.compressXml&&(Editor.defaultCompressed=g.compressXml,Editor.compressXml=g.compressXml);null!=g.includeDiagram&&(Editor.defaultIncludeDiagram=g.includeDiagram);null!=g.simpleLabels&&(Editor.simpleLabels=g.simpleLabels);null!=g.optimizeHtmlLabels&&
@@ -13009,11 +13015,11 @@ g.templateFile);null!=g.styles&&(Array.isArray(g.styles)?Editor.styles=g.styles:
(Editor.showConnectHandle=g.showConnectHandle);null!=g.enableInlineToolbar&&(Editor.enableInlineToolbar=g.enableInlineToolbar);null!=g.oneDriveInlinePicker&&(Editor.oneDriveInlinePicker=g.oneDriveInlinePicker);null!=g.enableNativeClipboard&&(Editor.enableNativeClipboard=g.enableNativeClipboard);null!=g.enableExportUrl&&(Editor.enableExportUrl=g.enableExportUrl);null!=g.defaultAdaptiveColors?Graph.defaultAdaptiveColors=g.defaultAdaptiveColors:0==g.enableCssDarkMode&&(Graph.defaultAdaptiveColors="simple");
null!=g.enableLightDarkColors&&(mxUtils.lightDarkColorSupported=g.enableLightDarkColors);null!=g.darkColor&&(Editor.darkColor=g.darkColor);null!=g.darkColorVar&&(Editor.darkColorVar=g.darkColorVar);Graph.prototype.defaultPageBackgroundColor="light-dark(#ffffff, "+Editor.darkColor+")";Graph.prototype.shapeBackgroundColor="light-dark(#ffffff, var("+Editor.darkColorVar+", "+Editor.darkColor+"))";null!=g.settingsName&&(Editor.configurationKey="."+g.settingsName+"-configuration",Editor.settingsKey="."+
g.settingsName+"-config",mxSettings.key=Editor.settingsKey);null!=g.customFonts&&(Menus.prototype.defaultFonts=g.customFonts.concat(Menus.prototype.defaultFonts));null!=g.customPresetColors&&(ColorDialog.prototype.presetColors=g.customPresetColors.concat(ColorDialog.prototype.presetColors));null!=g.customColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=g.customColorSchemes.concat(StyleFormatPanel.prototype.defaultColorSchemes));if(null!=g.css){t=document.createElement("style");t.setAttribute("type",
-"text/css");t.appendChild(document.createTextNode(g.css));var B=document.getElementsByTagName("script")[0];B.parentNode.insertBefore(t,B)}null!=g.expandLibraries&&(Sidebar.prototype.expandLibraries=g.expandLibraries);null!=g.appendCustomLibraries&&(Sidebar.prototype.appendCustomLibraries=g.appendCustomLibraries);null!=g.libraries&&(Sidebar.prototype.customEntries=g.libraries);null!=g.enabledLibraries&&(Array.isArray(g.enabledLibraries)?Sidebar.prototype.enabledLibraries=g.enabledLibraries:EditorUi.debug("Configuration Error: Array expected for enabledLibraries"));
+"text/css");t.appendChild(document.createTextNode(g.css));var C=document.getElementsByTagName("script")[0];C.parentNode.insertBefore(t,C)}null!=g.expandLibraries&&(Sidebar.prototype.expandLibraries=g.expandLibraries);null!=g.appendCustomLibraries&&(Sidebar.prototype.appendCustomLibraries=g.appendCustomLibraries);null!=g.libraries&&(Sidebar.prototype.customEntries=g.libraries);null!=g.enabledLibraries&&(Array.isArray(g.enabledLibraries)?Sidebar.prototype.enabledLibraries=g.enabledLibraries:EditorUi.debug("Configuration Error: Array expected for enabledLibraries"));
null!=g.defaultLibraries&&(Sidebar.prototype.defaultEntries=g.defaultLibraries);null!=g.defaultCustomLibraries&&(Editor.defaultCustomLibraries=g.defaultCustomLibraries);null!=g.enableCustomLibraries&&(Editor.enableCustomLibraries=g.enableCustomLibraries);null!=g.defaultVertexStyle&&(Graph.prototype.defaultVertexStyle=g.defaultVertexStyle);null!=g.defaultEdgeStyle&&(Graph.prototype.defaultEdgeStyle=g.defaultEdgeStyle);null!=g.shapePicker&&(EditorUi.prototype.defaultShapePickerEntries=g.shapePicker.shapes);
null!=g.defaultPageVisible&&(Graph.prototype.defaultPageVisible=g.defaultPageVisible);null!=g.defaultGridEnabled&&(Graph.prototype.defaultGridEnabled=g.defaultGridEnabled);null!=g.defaultConnectionArrowsEnabled&&(Graph.prototype.defaultConnectionArrowsEnabled=g.defaultConnectionArrowsEnabled,Graph.prototype.connectionArrowsEnabled=g.defaultConnectionArrowsEnabled);null!=g.defaultConnectable&&(Graph.prototype.defaultConnectable=g.defaultConnectable);null!=g.defaultFoldingEnabled&&(Graph.prototype.defaultFoldingEnabled=
g.defaultFoldingEnabled);null!=g.zoomWheel&&(Graph.zoomWheel=g.zoomWheel);null!=g.zoomFactor&&(t=parseFloat(g.zoomFactor),!isNaN(t)&&1<t?Graph.prototype.zoomFactor=t:EditorUi.debug("Configuration Error: Float > 1 expected for zoomFactor"));null!=g.defaultGridSize&&(t=parseInt(g.defaultGridSize),!isNaN(t)&&0<t?mxGraph.prototype.gridSize=t:EditorUi.debug("Configuration Error: Int > 0 expected for defaultGridSize"));null!=g.gridSteps&&(t=parseInt(g.gridSteps),!isNaN(t)&&0<t?mxGraphView.prototype.gridSteps=
-t:EditorUi.debug("Configuration Error: Int > 0 expected for gridSteps"));null!=g.pageFormat&&(t=parseInt(g.pageFormat.width),B=parseInt(g.pageFormat.height),!isNaN(t)&&0<t&&!isNaN(B)&&0<B?(mxGraph.prototype.defaultPageFormat=new mxRectangle(0,0,t,B),mxGraph.prototype.pageFormat=mxGraph.prototype.defaultPageFormat):EditorUi.debug("Configuration Error: {width: int, height: int} expected for pageFormat"));null!=g.thumbWidth&&(Sidebar.prototype.thumbWidth=g.thumbWidth);null!=g.thumbHeight&&(Sidebar.prototype.thumbHeight=
+t:EditorUi.debug("Configuration Error: Int > 0 expected for gridSteps"));null!=g.pageFormat&&(t=parseInt(g.pageFormat.width),C=parseInt(g.pageFormat.height),!isNaN(t)&&0<t&&!isNaN(C)&&0<C?(mxGraph.prototype.defaultPageFormat=new mxRectangle(0,0,t,C),mxGraph.prototype.pageFormat=mxGraph.prototype.defaultPageFormat):EditorUi.debug("Configuration Error: {width: int, height: int} expected for pageFormat"));null!=g.thumbWidth&&(Sidebar.prototype.thumbWidth=g.thumbWidth);null!=g.thumbHeight&&(Sidebar.prototype.thumbHeight=
g.thumbHeight);null!=g.emptyLibraryXml&&(EditorUi.prototype.emptyLibraryXml=g.emptyLibraryXml);null!=g.emptyDiagramXml&&(EditorUi.prototype.emptyDiagramXml=g.emptyDiagramXml);null!=g.sidebarWidth&&(EditorUi.prototype.hsplitPosition=g.sidebarWidth);null!=g.updateDefaultStyle&&(EditorUi.prototype.updateDefaultStyle=g.updateDefaultStyle);null!=g.sidebarTitles&&(Sidebar.prototype.sidebarTitles=g.sidebarTitles);null!=g.sidebarTitleSize&&(t=parseInt(g.sidebarTitleSize),!isNaN(t)&&0<t?Sidebar.prototype.sidebarTitleSize=
t:EditorUi.debug("Configuration Error: Int > 0 expected for sidebarTitleSize"));null!=g.fontCss&&("string"===typeof g.fontCss?Editor.configureFontCss(g.fontCss):EditorUi.debug("Configuration Error: String expected for fontCss"));null!=g.autosaveDelay&&(t=parseInt(g.autosaveDelay),!isNaN(t)&&0<t?DrawioFile.prototype.autosaveDelay=t:EditorUi.debug("Configuration Error: Int > 0 expected for autosaveDelay"));null!=g.maxImageBytes&&(EditorUi.prototype.maxImageBytes=g.maxImageBytes);null!=g.maxImageSize&&
(EditorUi.prototype.maxImageSize=g.maxImageSize);null!=g.shareCursorPosition&&(EditorUi.prototype.shareCursorPosition=g.shareCursorPosition);null!=g.showRemoteCursors&&(EditorUi.prototype.showRemoteCursors=g.showRemoteCursors);null!=g.restrictExport&&(DrawioFile.RESTRICT_EXPORT=g.restrictExport);null!=g.removeImageMetadata&&(Editor.removeImageMetadata=g.removeImageMetadata);null!=g.defaultTextStyle&&(Editor.defaultTextStyle=g.defaultTextStyle);null!=g.replaceSvgDataUris&&(Editor.replaceSvgDataUris=
@@ -13021,58 +13027,58 @@ g.replaceSvgDataUris);null!=g.foreignObjectImages&&(Editor.foreignObjectImages=g
g.enableWindowDocking&&(Editor.enableWindowDocking=g.enableWindowDocking);null!=g.compact&&(EditorUi.prototype.defaultCompact=g.compact);null!=g.noAutoFocus&&(EditorUi.prototype.noAutoFocus=g.noAutoFocus);if(null!=g.hideMenuItems)if(Array.isArray(g.hideMenuItems))for(Menus.prototype.hiddenMenuItems={},t=0;t<g.hideMenuItems.length;t++)Menus.prototype.hiddenMenuItems[g.hideMenuItems[t]]=!0;else EditorUi.debug("Configuration Error: Array expected for hideMenuItems");if(null!=g.hideMenus)if(Array.isArray(g.hideMenus)){var K=
{};for(t=0;t<g.hideMenus.length;t++)K[g.hideMenus[t]]=!0;Menus.prototype.defaultMenuItems=Menus.prototype.defaultMenuItems.filter(function(Q){return!K[Q]})}else EditorUi.debug("Configuration Error: Array expected for hideMenus");null!=g.enableAi&&(Editor.enableAi=g.enableAi);null!=g.enableChatGpt&&(Editor.enableAi=g.enableChatGpt);null!=g.gptApiKey&&(Editor.aiGlobals.gptApiKey=g.gptApiKey);null!=g.geminiApiKey&&(Editor.aiGlobals.geminiApiKey=g.geminiApiKey);null!=g.claudeApiKey&&(Editor.aiGlobals.claudeApiKey=
g.claudeApiKey);null!=g.gptUrl&&null!=Editor.aiConfigs.gpt&&(Editor.aiConfigs.gpt.endpoint=g.gptUrl);null!=g.aiActions&&(Editor.aiActions=g.aiActions);null!=g.aiGlobals&&(Editor.aiGlobals=g.aiGlobals);null!=g.aiConfigs&&(Editor.aiConfigs=g.aiConfigs);null!=g.aiModels&&(Editor.aiModels=g.aiModels)}};Editor.isSettingsEnabled=function(){return"undefined"!==typeof window.mxSettings&&(isLocalStorage||mxClient.IS_CHROMEAPP)};Editor.expandSvgPatterns=function(g){function t(N,P){N=N.getAttribute("fill");
-if(null==N||0!==N.indexOf("url("))return null;N=N.match(/url\([^#]*#([^)"]+)\)?/);if(null==N)return null;N=N[1];try{var V=P.querySelector("#"+CSS.escape(N));return null!=V&&"pattern"===V.nodeName?V:null}catch(Y){return null}}function B(N,P,V){var Y,X,Z;try{var aa=N.getBBox()}catch(ma){return}if(0!==aa.width&&0!==aa.height){var ea=parseFloat(P.getAttribute("width")),ha=parseFloat(P.getAttribute("height"));if(!(isNaN(ea)||isNaN(ha)||0>=ea||0>=ha)){var ba=P.getAttribute("patternTransform");var ia=X=
+if(null==N||0!==N.indexOf("url("))return null;N=N.match(/url\([^#]*#([^)"]+)\)?/);if(null==N)return null;N=N[1];try{var V=P.querySelector("#"+CSS.escape(N));return null!=V&&"pattern"===V.nodeName?V:null}catch(Y){return null}}function C(N,P,V){var Y,X,Z;try{var aa=N.getBBox()}catch(ma){return}if(0!==aa.width&&0!==aa.height){var ea=parseFloat(P.getAttribute("width")),ha=parseFloat(P.getAttribute("height"));if(!(isNaN(ea)||isNaN(ha)||0>=ea||0>=ha)){var ba=P.getAttribute("patternTransform");var ia=X=
Y=0;var la=Z=1;if(null!=ba){var ka=ba.match(/translate\(\s*([^,\s]+)[,\s]+([^)]+)\)/);null!=ka&&(Y=parseFloat(ka[1]),X=parseFloat(ka[2]));ka=ba.match(/rotate\(\s*([^)]+)\)/);null!=ka&&(ia=parseFloat(ka[1])*Math.PI/180);ba=ba.match(/scale\(\s*([^,\s)]+)(?:[,\s]+([^)]+))?\)/);null!=ba&&(Z=parseFloat(ba[1]),la=null!=ba[2]?parseFloat(ba[2]):Z)}ba=[];for(ka=N;null!=ka&&ka!==V&&1===ka.nodeType;){var pa=ka.getAttribute("transform");null!=pa&&0<pa.length&&ba.unshift(pa);ka=ka.parentNode}ba=0<ba.length?ba.join(" "):
null;aa=[{x:aa.x,y:aa.y},{x:aa.x+aa.width,y:aa.y},{x:aa.x+aa.width,y:aa.y+aa.height},{x:aa.x,y:aa.y+aa.height}];if(null!=ba)try{var Ba=N.getCTM(),sa=(V.getCTM()||V.createSVGMatrix()).inverse().multiply(Ba);for(ba=0;ba<aa.length;ba++){var ja=V.createSVGPoint();ja.x=aa[ba].x;ja.y=aa[ba].y;ja=ja.matrixTransform(sa);aa[ba]={x:ja.x,y:ja.y}}}catch(ma){}sa=pa=Infinity;Ba=ja=-Infinity;for(ba=0;ba<aa.length;ba++){var wa=aa[ba].x-Y;var va=aa[ba].y-X,ya=Math.cos(-ia),Aa=Math.sin(-ia);ka=(wa*ya-va*Aa)/Z;wa=(wa*
Aa+va*ya)/la;pa=Math.min(pa,ka);sa=Math.min(sa,wa);ja=Math.max(ja,ka);Ba=Math.max(Ba,wa)}ka=Math.floor(pa/ea)-1;sa=Math.floor(sa/ha)-1;ja=Math.ceil(ja/ea)+1;aa=Math.ceil(Ba/ha)+1;if(!(1E4<(ja-ka)*(aa-sa))){pa="expand-pattern-clip-"+ ++K;Ba=V.ownerDocument.createElementNS("http://www.w3.org/2000/svg","clipPath");Ba.setAttribute("id",pa);ba=N.cloneNode(!0);ba.removeAttribute("fill");ba.removeAttribute("fill-opacity");ba.removeAttribute("stroke");ba.removeAttribute("stroke-width");ba.removeAttribute("stroke-opacity");
ba.removeAttribute("style");ba.removeAttribute("pointer-events");ba.setAttribute("fill","black");Ba.appendChild(ba);ba=V.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");ba.setAttribute("clip-path","url(#"+pa+")");pa=N.getAttribute("fill-opacity");null!=pa&&ba.setAttribute("opacity",pa);pa=V.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");pa.setAttribute("transform","translate("+Y+","+X+")"+(0!==ia?" rotate("+180*ia/Math.PI+")":"")+" scale("+Z+(la!==Z?","+la:"")+")");
P=P.childNodes;for(Y=ka;Y<ja;Y++)for(X=sa;X<aa;X++){ia=V.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");ia.setAttribute("transform","translate("+Y*ea+","+X*ha+")");for(Z=0;Z<P.length;Z++)1===P[Z].nodeType&&ia.appendChild(P[Z].cloneNode(!0));pa.appendChild(ia)}ba.appendChild(pa);ea=V.querySelector("defs");null==ea&&(ea=V.ownerDocument.createElementNS("http://www.w3.org/2000/svg","defs"),V.insertBefore(ea,V.firstChild));ea.appendChild(Ba);N.parentNode.insertBefore(ba,N.nextSibling);
-N.setAttribute("fill","none");N.style.fill=""}}}}for(var K=0,Q=g.querySelectorAll('[fill^="url("]'),S=0;S<Q.length;S++){var U=t(Q[S],g);null!=U&&B(Q[S],U,g)}Q=g.querySelectorAll("[style]");for(S=0;S<Q.length;S++)U=Q[S].getAttribute("style"),null!=U&&-1!==U.indexOf("url(")&&(U=t(Q[S],g),null!=U&&B(Q[S],U,g))};Editor.configureFontCss=function(g){if(null!=g){Editor.prototype.fontCss=g;var t=document.getElementsByTagName("script")[0];if(null!=t&&null!=t.parentNode){var B=document.createElement("style");
-B.setAttribute("type","text/css");B.appendChild(document.createTextNode(g));t.parentNode.insertBefore(B,t);g=g.split("url(");for(B=1;B<g.length;B++){var K=g[B].indexOf(")");K=Editor.trimCssUrl(g[B].substring(0,K));var Q=document.createElement("link");Q.setAttribute("rel","preload");Q.setAttribute("href",K);Q.setAttribute("as","font");Q.setAttribute("crossorigin","");t.parentNode.insertBefore(Q,t)}}}};Editor.trimCssUrl=function(g){return g.replace(RegExp("^[\\s\"']+","g"),"").replace(RegExp("[\\s\"']+$",
-"g"),"")};Editor.GOOGLE_FONTS="https://fonts.googleapis.com/css?family=";Editor.GOOGLE_FONTS_CSS2="https://fonts.googleapis.com/css2?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(g){g=null!=g?g:Editor.GUID_LENGTH;for(var t=[],B=0;B<g;B++)t.push(Editor.GUID_ALPHABET.charAt(Math.floor(Math.random()*Editor.GUID_ALPHABET.length)));return t.join("")};Editor.updateStatusInterval=1E4;Editor.prototype.appName="draw.io";
+N.setAttribute("fill","none");N.style.fill=""}}}}for(var K=0,Q=g.querySelectorAll('[fill^="url("]'),S=0;S<Q.length;S++){var U=t(Q[S],g);null!=U&&C(Q[S],U,g)}Q=g.querySelectorAll("[style]");for(S=0;S<Q.length;S++)U=Q[S].getAttribute("style"),null!=U&&-1!==U.indexOf("url(")&&(U=t(Q[S],g),null!=U&&C(Q[S],U,g))};Editor.configureFontCss=function(g){if(null!=g){Editor.prototype.fontCss=g;var t=document.getElementsByTagName("script")[0];if(null!=t&&null!=t.parentNode){var C=document.createElement("style");
+C.setAttribute("type","text/css");C.appendChild(document.createTextNode(g));t.parentNode.insertBefore(C,t);g=g.split("url(");for(C=1;C<g.length;C++){var K=g[C].indexOf(")");K=Editor.trimCssUrl(g[C].substring(0,K));var Q=document.createElement("link");Q.setAttribute("rel","preload");Q.setAttribute("href",K);Q.setAttribute("as","font");Q.setAttribute("crossorigin","");t.parentNode.insertBefore(Q,t)}}}};Editor.trimCssUrl=function(g){return g.replace(RegExp("^[\\s\"']+","g"),"").replace(RegExp("[\\s\"']+$",
+"g"),"")};Editor.GOOGLE_FONTS="https://fonts.googleapis.com/css?family=";Editor.GOOGLE_FONTS_CSS2="https://fonts.googleapis.com/css2?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(g){g=null!=g?g:Editor.GUID_LENGTH;for(var t=[],C=0;C<g;C++)t.push(Editor.GUID_ALPHABET.charAt(Math.floor(Math.random()*Editor.GUID_ALPHABET.length)));return t.join("")};Editor.updateStatusInterval=1E4;Editor.prototype.appName="draw.io";
Editor.prototype.diagramFileTypes=[{description:"diagramXmlDesc",extension:"drawio",mimeType:"text/xml"},{description:"diagramPngDesc",extension:"png",mimeType:"image/png"},{description:"diagramSvgDesc",extension:"svg",mimeType:"image/svg"},{description:"diagramHtmlDesc",extension:"html",mimeType:"text/html"}];Editor.prototype.libraryFileTypes=[{description:"Library (.drawiolib, .xml)",extensions:["drawiolib","xml"]}];Editor.prototype.fileExtensions=[{ext:"html",title:"filetypeHtml"},{ext:"png",title:"filetypePng"},
{ext:"svg",title:"filetypeSvg"}];Editor.prototype.timeout=25E3;Editor.prototype.generateTimeout=6E4;Editor.prototype.editButtonLink=null!=urlParams.edit?decodeURIComponent(urlParams.edit):null;Editor.prototype.crossOriginImages=!0;var b=Editor.prototype.setGraphXml;Editor.prototype.setGraphXml=function(g){g=null!=g&&"mxlibrary"!=g.nodeName?this.extractGraphModel(g):null;if(null!=g){var t=Editor.extractParserError(g,mxResources.get("invalidOrMissingFile"));if(t)throw EditorUi.debug("Editor.setGraphXml ParserError",
-[this],"node",[g],"cause",[t]),Error(mxResources.get("notADiagramFile")+" ("+t+")");if("mxGraphModel"==g.nodeName){t=g.getAttribute("style")||"default-style2";if("1"==urlParams.embed||null!=t&&""!=t)t!=this.graph.currentStyle&&(B=null!=this.graph.themes?this.graph.themes[t]:mxUtils.load(STYLE_PATH+"/"+t+".xml").getDocumentElement(),null!=B&&(K=new mxCodec(B.ownerDocument),K.decode(B,this.graph.getStylesheet())));else{var B=null!=this.graph.themes?this.graph.themes["default-old"]:mxUtils.load(STYLE_PATH+
-"/default-old.xml").getDocumentElement();if(null!=B){var K=new mxCodec(B.ownerDocument);K.decode(B,this.graph.getStylesheet())}}this.graph.currentStyle=t;this.graph.mathEnabled="1"==urlParams.math||"1"==g.getAttribute("math");this.graph.setAdaptiveColors(g.getAttribute("adaptiveColors"));t=g.getAttribute("backgroundImage");null!=t?this.graph.setBackgroundImage(this.graph.parseBackgroundImage(t)):this.graph.setBackgroundImage(null);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&
-this.graph.isCssTransformsSupported();this.graph.updateCssTransform();this.graph.setShadowVisible("1"==g.getAttribute("shadow"),!1);if(t=g.getAttribute("extFonts"))try{for(t=t.split("|").map(function(Q){Q=Q.split("^");return{name:Q[0],url:Q[1]}}),B=0;B<t.length;B++)this.graph.addExtFont(t[B].name,t[B].url)}catch(Q){console.log("ExtFonts format error: "+Q.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 l=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=function(g,t){g=null!=g?g:!0;var B=l.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&B.setAttribute("style",this.graph.currentStyle);var K=this.graph.getBackgroundImageObject(this.graph.backgroundImage,t);null!=K&&B.setAttribute("backgroundImage",JSON.stringify(K));B.setAttribute("math",this.graph.mathEnabled?"1":"0");B.setAttribute("shadow",
-this.graph.shadowVisible?"1":"0");null!=this.graph.adaptiveColors?B.setAttribute("adaptiveColors",this.graph.adaptiveColors):B.removeAttribute("adaptiveColors");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(K=this.graph.extFonts.map(function(Q){return Q.name+"^"+Q.url}),B.setAttribute("extFonts",K.join("|")));return B};Editor.prototype.isDataSvg=function(g){try{var t=mxUtils.parseXml(g).documentElement.getAttribute("content");if(null!=t&&(null!=t&&"<"!=t.charAt(0)&&"%"!=t.charAt(0)&&(t=
-unescape(window.atob?atob(t):Base64.decode(cont,t))),null!=t&&"%"==t.charAt(0)&&(t=decodeURIComponent(t)),null!=t&&0<t.length)){var B=mxUtils.parseXml(t).documentElement;return"mxfile"==B.nodeName||"mxGraphModel"==B.nodeName}}catch(K){}return!1};Editor.prototype.extractGraphModel=function(g,t,B){return Editor.extractGraphModel.apply(this,arguments)};var n=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.graph.setAdaptiveColors(null);
+[this],"node",[g],"cause",[t]),Error(mxResources.get("notADiagramFile")+" ("+t+")");if("mxGraphModel"==g.nodeName){t=g.getAttribute("style")||"default-style2";if("1"==urlParams.embed||null!=t&&""!=t)t!=this.graph.currentStyle&&(C=null!=this.graph.themes?this.graph.themes[t]:mxUtils.load(STYLE_PATH+"/"+t+".xml").getDocumentElement(),null!=C&&(K=new mxCodec(C.ownerDocument),K.decode(C,this.graph.getStylesheet())));else{var C=null!=this.graph.themes?this.graph.themes["default-old"]:mxUtils.load(STYLE_PATH+
+"/default-old.xml").getDocumentElement();if(null!=C){var K=new mxCodec(C.ownerDocument);K.decode(C,this.graph.getStylesheet())}}this.graph.currentStyle=t;this.graph.mathEnabled="1"==urlParams.math||"1"==g.getAttribute("math");this.graph.setAdaptiveColors(g.getAttribute("adaptiveColors"));t=g.getAttribute("backgroundImage");null!=t?this.graph.setBackgroundImage(this.graph.parseBackgroundImage(t)):this.graph.setBackgroundImage(null);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&
+this.graph.isCssTransformsSupported();this.graph.updateCssTransform();this.graph.setShadowVisible("1"==g.getAttribute("shadow"),!1);if(t=g.getAttribute("extFonts"))try{for(t=t.split("|").map(function(Q){Q=Q.split("^");return{name:Q[0],url:Q[1]}}),C=0;C<t.length;C++)this.graph.addExtFont(t[C].name,t[C].url)}catch(Q){console.log("ExtFonts format error: "+Q.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 l=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=function(g,t){g=null!=g?g:!0;var C=l.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&C.setAttribute("style",this.graph.currentStyle);var K=this.graph.getBackgroundImageObject(this.graph.backgroundImage,t);null!=K&&C.setAttribute("backgroundImage",JSON.stringify(K));C.setAttribute("math",this.graph.mathEnabled?"1":"0");C.setAttribute("shadow",
+this.graph.shadowVisible?"1":"0");null!=this.graph.adaptiveColors?C.setAttribute("adaptiveColors",this.graph.adaptiveColors):C.removeAttribute("adaptiveColors");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(K=this.graph.extFonts.map(function(Q){return Q.name+"^"+Q.url}),C.setAttribute("extFonts",K.join("|")));return C};Editor.prototype.isDataSvg=function(g){try{var t=mxUtils.parseXml(g).documentElement.getAttribute("content");if(null!=t&&(null!=t&&"<"!=t.charAt(0)&&"%"!=t.charAt(0)&&(t=
+unescape(window.atob?atob(t):Base64.decode(cont,t))),null!=t&&"%"==t.charAt(0)&&(t=decodeURIComponent(t)),null!=t&&0<t.length)){var C=mxUtils.parseXml(t).documentElement;return"mxfile"==C.nodeName||"mxGraphModel"==C.nodeName}}catch(K){}return!1};Editor.prototype.extractGraphModel=function(g,t,C){return Editor.extractGraphModel.apply(this,arguments)};var n=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.graph.setAdaptiveColors(null);
this.graph.view.x0=null;this.graph.view.y0=null;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();n.apply(this,arguments)};var f=Editor.prototype.updateGraphComponents;Editor.prototype.updateGraphComponents=function(){f.apply(this,arguments);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.initMath=function(g,t){if("undefined"===
-typeof window.MathJax){var B=function(){K=null;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()};g=null!=g?g:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var K=null;Editor.doMathJaxRender=function(U){null!=MathJax.startup&&null!=MathJax.startup.output&&null!=MathJax.startup.output.options&&null!=MathJax.startup.output.options.linebreaks&&(MathJax.startup.output.options.linebreaks.inline=!1);try{null==K?(MathJax.typesetClear([U]),
-MathJax.typeset([U]),B()):K!=U&&Editor.mathJaxQueue.push(U)}catch(N){MathJax.typesetClear([U]),null!=N.retry?(K=U,N.retry.then(function(){MathJax.typesetPromise([U]).then(B)["catch"](function(P){console.log("Error in MathJax.typesetPromise: "+P.toString());B()})})["catch"](function(P){console.log("Error in MathJax.retry: "+P.toString());B()})):null!=window.console&&console.log("Error in MathJax.typeset: "+N.toString())}};window.MathJax=null!=t?t:{options:{skipHtmlTags:{"[+]":["text"]},ignoreHtmlClass:"geDisableMathJax"},
+typeof window.MathJax){var C=function(){K=null;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()};g=null!=g?g:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var K=null;Editor.doMathJaxRender=function(U){null!=MathJax.startup&&null!=MathJax.startup.output&&null!=MathJax.startup.output.options&&null!=MathJax.startup.output.options.linebreaks&&(MathJax.startup.output.options.linebreaks.inline=!1);try{null==K?(MathJax.typesetClear([U]),
+MathJax.typeset([U]),C()):K!=U&&Editor.mathJaxQueue.push(U)}catch(N){MathJax.typesetClear([U]),null!=N.retry?(K=U,N.retry.then(function(){MathJax.typesetPromise([U]).then(C)["catch"](function(P){console.log("Error in MathJax.typesetPromise: "+P.toString());C()})})["catch"](function(P){console.log("Error in MathJax.retry: "+P.toString());C()})):null!=window.console&&console.log("Error in MathJax.typeset: "+N.toString())}};window.MathJax=null!=t?t:{options:{skipHtmlTags:{"[+]":["text"]},ignoreHtmlClass:"geDisableMathJax"},
loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/svg","input/tex","input/asciimath","ui/safe"],paths:{fonts:DRAW_MATH_URL+"/fonts"}},output:{font:"mathjax-tex"},startup:{pageReady:function(){for(var U=0;U<Editor.mathJaxQueue.length;U++)Editor.doMathJaxRender(Editor.mathJaxQueue[U])}}};Editor.MathJaxRender=function(U){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(U):Editor.mathJaxQueue.push(U)};Editor.onMathJaxDone=function(){};var Q=
Editor.prototype.init;Editor.prototype.init=function(){Q.apply(this,arguments);var U=mxUtils.bind(this,function(N,P){null!=this.graph.container&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,U);this.graph.addListener(mxEvent.REFRESH,U)};t=document.getElementsByTagName("script");if(null!=t&&0<t.length){var S=document.createElement("script");S.setAttribute("type","text/javascript");S.setAttribute("src",g);t[0].parentNode.appendChild(S)}}};
-Editor.prototype.csvToArray=function(g){if(0<g.length){var t="",B=[""],K=0,Q=!0,S;g=$jscomp.makeIterator(g);for(S=g.next();!S.done;S=g.next())S=S.value,'"'===S?(Q&&S===t&&(B[K]+=S),Q=!Q):","===S&&Q?S=B[++K]="":B[K]+=S,t=S;return B}return[]};Editor.prototype.getProxiedUrl=function(g){if((/test\.draw\.io$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname))&&!this.isCorsEnabledForUrl(g)){var t=EditorUi.isVisioFilename(g);t=/\.png$/i.test(g)||/\.pdf$/i.test(g)||t;var B=
-"t="+(new Date).getTime();g=PROXY_URL+"?url="+encodeURIComponent(g)+"&"+B+(t?"&base64=1":"")}return g};Editor.prototype.isCorsEnabledForUrl=function(g){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||g.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(g)||"https://raw.githubusercontent.com/"===g.substring(0,34)||
-"https://fonts.googleapis.com/"===g.substring(0,29)||"https://fonts.gstatic.com/"===g.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var g=new mxUrlConverter;g.updateBaseUrl();var t=g.convert,B=this;g.convert=function(K){null!=K&&navigator.onLine&&("http://"!=K.substring(0,7)&&"https://"!=K.substring(0,8)||K.substring(0,g.baseUrl.length)==g.baseUrl||B.crossOriginImages&&B.isCorsEnabledForUrl(K)?"chrome-extension://"!=K.substring(0,19)&&(K=t.apply(this,arguments)):K=PROXY_URL+
-"?url="+encodeURIComponent(K));return K};return g};Editor.createSvgDataUri=function(g){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(g)))};Editor.prototype.convertImageToDataUri=function(g,t,B,K,Q){try{var S=!0,U=window.setTimeout(mxUtils.bind(this,function(){S=!1;t(g)}),this.timeout),N=mxUtils.bind(this,function(){null!=K?this.convertImageToDataUri(g,t,B,K,!0):t(g)});if(/(\.svg)$/i.test(g)&&!Q)mxUtils.get(g,mxUtils.bind(this,function(V){window.clearTimeout(U);S&&(200>V.getStatus()||
-299<V.getStatus()?N():t(Editor.createSvgDataUri(V.getText())))}),mxUtils.bind(this,function(){window.clearTimeout(U);S&&N()}));else{var P=new Image;this.crossOriginImages&&(P.crossOrigin="anonymous");P.onload=function(){window.clearTimeout(U);if(S)try{K=null!=K&&Q?K:1;var V=document.createElement("canvas");V.height=P.height*K;V.width=P.width*K;var Y=V.getContext("2d");Y.scale(K,K);Y.drawImage(P,0,0);t(V.toDataURL())}catch(X){t(g)}};P.onerror=function(){window.clearTimeout(U);S&&(null!=B?B():t(g))};
-P.src=g}}catch(V){null!=B?B():t(g)}};Editor.prototype.convertImages=function(g,t,B,K){function Q(){0<S.length?S.shift()():t(g)}null==K&&(K=this.createImageUrlConverter());var S=[],U=B||{};B=mxUtils.bind(this,function(N,P){N=g.getElementsByTagName(N);for(var V=0;V<N.length;V++)mxUtils.bind(this,function(Y){S.push(mxUtils.bind(this,function(){try{if(null!=Y){var X=K.convert(Y.getAttribute(P));if(null!=X&&"data:"!=X.substring(0,5)){var Z=U[X];null==Z?this.convertImageToDataUri(X,function(aa){null!=aa&&
-(U[X]=aa,Y.setAttribute(P,aa));Q()},null,Editor.svgRasterScale):(Y.setAttribute(P,Z),Q())}else null!=X&&Y.setAttribute(P,X),Q()}}catch(aa){Q()}}))})(N[V])});B("image","xlink:href");B("img","src");Q()};Editor.base64Encode=function(g){for(var t="",B=0,K=g.length,Q,S,U;B<K;){Q=g.charCodeAt(B++)&255;if(B==K){t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(Q>>2);t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((Q&3)<<4);t+="==";break}S=g.charCodeAt(B++);
-if(B==K){t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(Q>>2);t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((Q&3)<<4|(S&240)>>4);t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((S&15)<<2);t+="=";break}U=g.charCodeAt(B++);t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(Q>>2);t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((Q&3)<<4|(S&240)>>4);t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((S&
-15)<<2|(U&192)>>6);t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(U&63)}return t};Editor.prototype.loadUrl=function(g,t,B,K,Q,S,U,N){try{var P=!U&&(K||/(\.png)($|\?)/i.test(g)||/(\.jpe?g)($|\?)/i.test(g)||/(\.gif)($|\?)/i.test(g)||/(\.pdf)($|\?)/i.test(g));Q=null!=Q?Q:!0;var V=mxUtils.bind(this,function(){mxUtils.get(g,mxUtils.bind(this,function(Y){200<=Y.getStatus()&&299>=Y.getStatus()?null!=t&&(Y=Y.getText(),P&&(S=null!=S?S:"data:image/png;base64,",Y=S+Editor.base64Encode(Y)),
-t(Y)):null!=B&&(0==Y.getStatus()?B({message:mxResources.get("accessDenied")},Y):404==Y.getStatus()?B({message:mxResources.get("fileNotFound"),code:Y.getStatus()},Y):B({message:this.getErrorMessage(Y)},Y))}),function(Y){null!=B&&B({message:mxResources.get("error")+" "+Y.getStatus()})},P,this.timeout,function(){Q&&null!=B&&B({code:App.ERROR_TIMEOUT,retry:V})},N)});V()}catch(Y){null!=B&&B(Y)}};Editor.prototype.getErrorMessage=function(g){var t=mxResources.get("error")+" "+g.getStatus();try{var B=g.getText(),
-K=JSON.parse(B);null!=K&&null!=K.error&&null!=K.error.message&&(t=K.error.message+" ("+t+")")}catch(Q){}return t};Editor.prototype.absoluteCssFonts=function(g){var t=null;if(null!=g){var B=g.split("url(");if(0<B.length){t=[B[0]];g=window.location.pathname;var K=null!=g?g.lastIndexOf("/"):-1;0<=K&&(g=g.substring(0,K+1));K=document.getElementsByTagName("base");var Q=null;null!=K&&0<K.length&&(Q=K[0].getAttribute("href"));for(var S=1;S<B.length;S++)if(K=B[S].indexOf(")"),0<K){var U=Editor.trimCssUrl(B[S].substring(0,
-K));this.graph.isRelativeUrl(U)&&(U=null!=Q?Q+U:window.location.protocol+"//"+window.location.hostname+("/"==U.charAt(0)?"":g)+U);t.push('url("'+U+'"'+B[S].substring(K))}else t.push(B[S])}else t=[g]}return null!=t?t.join(""):null};Editor.prototype.mapFontUrl=function(g,t,B){/^https?:\/\//.test(t)&&!this.isCorsEnabledForUrl(t)&&(t=PROXY_URL+"?url="+encodeURIComponent(t));B(g,t)};Editor.prototype.embedCssFonts=function(g,t){var B=g.split("url("),K=0;null==this.cachedFonts&&(this.cachedFonts={});var Q=
-mxUtils.bind(this,function(){if(0==K){for(var P=[B[0]],V=1;V<B.length;V++){var Y=B[V].indexOf(")");P.push('url("');P.push(this.cachedFonts[Editor.trimCssUrl(B[V].substring(0,Y))]);P.push('"'+B[V].substring(Y))}t(P.join(""))}});if(0<B.length){for(g=1;g<B.length;g++){var S=B[g].indexOf(")"),U=null,N=B[g].indexOf("format(",S);0<N&&(U=Editor.trimCssUrl(B[g].substring(N+7,B[g].indexOf(")",N))));mxUtils.bind(this,function(P){if(null==this.cachedFonts[P]){this.cachedFonts[P]=P;K++;var V="application/x-font-ttf";
+Editor.prototype.csvToArray=function(g){if(0<g.length){var t="",C=[""],K=0,Q=!0,S;g=$jscomp.makeIterator(g);for(S=g.next();!S.done;S=g.next())S=S.value,'"'===S?(Q&&S===t&&(C[K]+=S),Q=!Q):","===S&&Q?S=C[++K]="":C[K]+=S,t=S;return C}return[]};Editor.prototype.getProxiedUrl=function(g){if((/test\.draw\.io$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname))&&!this.isCorsEnabledForUrl(g)){var t=EditorUi.isVisioFilename(g);t=/\.png$/i.test(g)||/\.pdf$/i.test(g)||t;var C=
+"t="+(new Date).getTime();g=PROXY_URL+"?url="+encodeURIComponent(g)+"&"+C+(t?"&base64=1":"")}return g};Editor.prototype.isCorsEnabledForUrl=function(g){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||g.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(g)||"https://raw.githubusercontent.com/"===g.substring(0,34)||
+"https://fonts.googleapis.com/"===g.substring(0,29)||"https://fonts.gstatic.com/"===g.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var g=new mxUrlConverter;g.updateBaseUrl();var t=g.convert,C=this;g.convert=function(K){null!=K&&navigator.onLine&&("http://"!=K.substring(0,7)&&"https://"!=K.substring(0,8)||K.substring(0,g.baseUrl.length)==g.baseUrl||C.crossOriginImages&&C.isCorsEnabledForUrl(K)?"chrome-extension://"!=K.substring(0,19)&&(K=t.apply(this,arguments)):K=PROXY_URL+
+"?url="+encodeURIComponent(K));return K};return g};Editor.createSvgDataUri=function(g){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(g)))};Editor.prototype.convertImageToDataUri=function(g,t,C,K,Q){try{var S=!0,U=window.setTimeout(mxUtils.bind(this,function(){S=!1;t(g)}),this.timeout),N=mxUtils.bind(this,function(){null!=K?this.convertImageToDataUri(g,t,C,K,!0):t(g)});if(/(\.svg)$/i.test(g)&&!Q)mxUtils.get(g,mxUtils.bind(this,function(V){window.clearTimeout(U);S&&(200>V.getStatus()||
+299<V.getStatus()?N():t(Editor.createSvgDataUri(V.getText())))}),mxUtils.bind(this,function(){window.clearTimeout(U);S&&N()}));else{var P=new Image;this.crossOriginImages&&(P.crossOrigin="anonymous");P.onload=function(){window.clearTimeout(U);if(S)try{K=null!=K&&Q?K:1;var V=document.createElement("canvas");V.height=P.height*K;V.width=P.width*K;var Y=V.getContext("2d");Y.scale(K,K);Y.drawImage(P,0,0);t(V.toDataURL())}catch(X){t(g)}};P.onerror=function(){window.clearTimeout(U);S&&(null!=C?C():t(g))};
+P.src=g}}catch(V){null!=C?C():t(g)}};Editor.prototype.convertImages=function(g,t,C,K){function Q(){0<S.length?S.shift()():t(g)}null==K&&(K=this.createImageUrlConverter());var S=[],U=C||{};C=mxUtils.bind(this,function(N,P){N=g.getElementsByTagName(N);for(var V=0;V<N.length;V++)mxUtils.bind(this,function(Y){S.push(mxUtils.bind(this,function(){try{if(null!=Y){var X=K.convert(Y.getAttribute(P));if(null!=X&&"data:"!=X.substring(0,5)){var Z=U[X];null==Z?this.convertImageToDataUri(X,function(aa){null!=aa&&
+(U[X]=aa,Y.setAttribute(P,aa));Q()},null,Editor.svgRasterScale):(Y.setAttribute(P,Z),Q())}else null!=X&&Y.setAttribute(P,X),Q()}}catch(aa){Q()}}))})(N[V])});C("image","xlink:href");C("img","src");Q()};Editor.base64Encode=function(g){for(var t="",C=0,K=g.length,Q,S,U;C<K;){Q=g.charCodeAt(C++)&255;if(C==K){t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(Q>>2);t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((Q&3)<<4);t+="==";break}S=g.charCodeAt(C++);
+if(C==K){t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(Q>>2);t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((Q&3)<<4|(S&240)>>4);t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((S&15)<<2);t+="=";break}U=g.charCodeAt(C++);t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(Q>>2);t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((Q&3)<<4|(S&240)>>4);t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((S&
+15)<<2|(U&192)>>6);t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(U&63)}return t};Editor.prototype.loadUrl=function(g,t,C,K,Q,S,U,N){try{var P=!U&&(K||/(\.png)($|\?)/i.test(g)||/(\.jpe?g)($|\?)/i.test(g)||/(\.gif)($|\?)/i.test(g)||/(\.pdf)($|\?)/i.test(g));Q=null!=Q?Q:!0;var V=mxUtils.bind(this,function(){mxUtils.get(g,mxUtils.bind(this,function(Y){200<=Y.getStatus()&&299>=Y.getStatus()?null!=t&&(Y=Y.getText(),P&&(S=null!=S?S:"data:image/png;base64,",Y=S+Editor.base64Encode(Y)),
+t(Y)):null!=C&&(0==Y.getStatus()?C({message:mxResources.get("accessDenied")},Y):404==Y.getStatus()?C({message:mxResources.get("fileNotFound"),code:Y.getStatus()},Y):C({message:this.getErrorMessage(Y)},Y))}),function(Y){null!=C&&C({message:mxResources.get("error")+" "+Y.getStatus()})},P,this.timeout,function(){Q&&null!=C&&C({code:App.ERROR_TIMEOUT,retry:V})},N)});V()}catch(Y){null!=C&&C(Y)}};Editor.prototype.getErrorMessage=function(g){var t=mxResources.get("error")+" "+g.getStatus();try{var C=g.getText(),
+K=JSON.parse(C);null!=K&&null!=K.error&&null!=K.error.message&&(t=K.error.message+" ("+t+")")}catch(Q){}return t};Editor.prototype.absoluteCssFonts=function(g){var t=null;if(null!=g){var C=g.split("url(");if(0<C.length){t=[C[0]];g=window.location.pathname;var K=null!=g?g.lastIndexOf("/"):-1;0<=K&&(g=g.substring(0,K+1));K=document.getElementsByTagName("base");var Q=null;null!=K&&0<K.length&&(Q=K[0].getAttribute("href"));for(var S=1;S<C.length;S++)if(K=C[S].indexOf(")"),0<K){var U=Editor.trimCssUrl(C[S].substring(0,
+K));this.graph.isRelativeUrl(U)&&(U=null!=Q?Q+U:window.location.protocol+"//"+window.location.hostname+("/"==U.charAt(0)?"":g)+U);t.push('url("'+U+'"'+C[S].substring(K))}else t.push(C[S])}else t=[g]}return null!=t?t.join(""):null};Editor.prototype.mapFontUrl=function(g,t,C){/^https?:\/\//.test(t)&&!this.isCorsEnabledForUrl(t)&&(t=PROXY_URL+"?url="+encodeURIComponent(t));C(g,t)};Editor.prototype.embedCssFonts=function(g,t){var C=g.split("url("),K=0;null==this.cachedFonts&&(this.cachedFonts={});var Q=
+mxUtils.bind(this,function(){if(0==K){for(var P=[C[0]],V=1;V<C.length;V++){var Y=C[V].indexOf(")");P.push('url("');P.push(this.cachedFonts[Editor.trimCssUrl(C[V].substring(0,Y))]);P.push('"'+C[V].substring(Y))}t(P.join(""))}});if(0<C.length){for(g=1;g<C.length;g++){var S=C[g].indexOf(")"),U=null,N=C[g].indexOf("format(",S);0<N&&(U=Editor.trimCssUrl(C[g].substring(N+7,C[g].indexOf(")",N))));mxUtils.bind(this,function(P){if(null==this.cachedFonts[P]){this.cachedFonts[P]=P;K++;var V="application/x-font-ttf";
if("svg"==U||/(\.svg)($|\?)/i.test(P))V="image/svg+xml";else if("otf"==U||"embedded-opentype"==U||/(\.otf)($|\?)/i.test(P))V="application/x-font-opentype";else if("woff"==U||/(\.woff)($|\?)/i.test(P))V="application/font-woff";else if("woff2"==U||/(\.woff2)($|\?)/i.test(P))V="application/font-woff2";else if("eot"==U||/(\.eot)($|\?)/i.test(P))V="application/vnd.ms-fontobject";else if("sfnt"==U||/(\.sfnt)($|\?)/i.test(P))V="application/font-sfnt";this.mapFontUrl(V,P,mxUtils.bind(this,function(Y,X){this.loadUrl(X,
-mxUtils.bind(this,function(Z){this.cachedFonts[P]=Z;K--;Q()}),mxUtils.bind(this,function(Z){K--;Q()}),!0,null,"data:"+Y+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(B[g].substring(0,S)),U)}Q()}else t(g)};Editor.prototype.loadFonts=function(g){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,function(t){this.resolvedFontCss=t;null!=g&&g()})):null!=g&&g()};Editor.prototype.createGoogleFontCache=function(){var g={},t;for(t in Graph.fontMapping)Graph.isCssFontUrl(t)&&
-(g[t]=Graph.fontMapping[t]);return g};Editor.prototype.embedExtFonts=function(g){var t=this.graph.getCustomFonts();if(0<t.length){var B=[],K=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var Q=mxUtils.bind(this,function(){0==K&&this.embedCssFonts(B.join(""),g)}),S=0;S<t.length;S++)mxUtils.bind(this,function(U,N){Graph.isCssFontUrl(N)?null==this.cachedGoogleFonts[N]?(K++,this.loadUrl(Graph.rewriteGoogleFontUrl(N),mxUtils.bind(this,function(P){this.cachedGoogleFonts[N]=
-P;B.push(P+"\n");K--;Q()}),mxUtils.bind(this,function(P){K--;B.push("@import url("+N+");\n");Q()}))):B.push(this.cachedGoogleFonts[N]+"\n"):B.push('@font-face {font-family: "'+U+'";src: url("'+N+'")}\n')})(t[S].name,t[S].url);Q()}else g()};Editor.prototype.addMathCss=function(g){g=g.getElementsByTagName("defs");if(null!=g&&0<g.length)for(var t=document.getElementsByTagName("style"),B=0;B<t.length;B++){var K=mxUtils.getTextContent(t[B]);0>K.indexOf("mxPageSelector")&&0<K.indexOf("MathJax")&&g[0].appendChild(t[B].cloneNode(!0))}};
-Editor.prototype.addFontCss=function(g,t){t=null!=t?t:this.absoluteCssFonts(this.fontCss);if(null!=t){var B=mxUtils.getSvgDefs(g),K=t.split("\n");t=[];for(var Q=[],S=0;S<K.length;S++)"@import"==K[S].substring(0,7)?t.push(K[S]):Q.push(K[S]);g=g.ownerDocument;g=null!=g.createElementNS?g.createElementNS(mxConstants.NS_SVG,"style"):g.createElement("style");g.setAttribute("type","text/css");0<t.length&&(mxUtils.setTextContent(g,t.join("\n")),B.appendChild(g));0<Q.length&&(g=g.cloneNode(!1),mxUtils.setTextContent(g,
-Q.join("\n")),B.appendChild(g))}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||Editor.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(g,t,B){var K=mxClient.IS_FF?8192:16384;return Math.min(B,Math.min(K/g,K/t))};Editor.prototype.exportToCanvas=function(g,t,B,K,Q,S,U,N,P,V,Y,X,Z,aa,ea,ha,ba,ia){try{S=null!=S?S:!0;U=null!=U?U:!0;X=null!=X?X:this.graph;Z=null!=Z?Z:0;var la=P?null:X.background;la==mxConstants.NONE&&(la=null);null==la&&(la=K);null==la&&0==P&&
+mxUtils.bind(this,function(Z){this.cachedFonts[P]=Z;K--;Q()}),mxUtils.bind(this,function(Z){K--;Q()}),!0,null,"data:"+Y+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(C[g].substring(0,S)),U)}Q()}else t(g)};Editor.prototype.loadFonts=function(g){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,function(t){this.resolvedFontCss=t;null!=g&&g()})):null!=g&&g()};Editor.prototype.createGoogleFontCache=function(){var g={},t;for(t in Graph.fontMapping)Graph.isCssFontUrl(t)&&
+(g[t]=Graph.fontMapping[t]);return g};Editor.prototype.embedExtFonts=function(g){var t=this.graph.getCustomFonts();if(0<t.length){var C=[],K=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var Q=mxUtils.bind(this,function(){0==K&&this.embedCssFonts(C.join(""),g)}),S=0;S<t.length;S++)mxUtils.bind(this,function(U,N){Graph.isCssFontUrl(N)?null==this.cachedGoogleFonts[N]?(K++,this.loadUrl(Graph.rewriteGoogleFontUrl(N),mxUtils.bind(this,function(P){this.cachedGoogleFonts[N]=
+P;C.push(P+"\n");K--;Q()}),mxUtils.bind(this,function(P){K--;C.push("@import url("+N+");\n");Q()}))):C.push(this.cachedGoogleFonts[N]+"\n"):C.push('@font-face {font-family: "'+U+'";src: url("'+N+'")}\n')})(t[S].name,t[S].url);Q()}else g()};Editor.prototype.addMathCss=function(g){g=g.getElementsByTagName("defs");if(null!=g&&0<g.length)for(var t=document.getElementsByTagName("style"),C=0;C<t.length;C++){var K=mxUtils.getTextContent(t[C]);0>K.indexOf("mxPageSelector")&&0<K.indexOf("MathJax")&&g[0].appendChild(t[C].cloneNode(!0))}};
+Editor.prototype.addFontCss=function(g,t){t=null!=t?t:this.absoluteCssFonts(this.fontCss);if(null!=t){var C=mxUtils.getSvgDefs(g),K=t.split("\n");t=[];for(var Q=[],S=0;S<K.length;S++)"@import"==K[S].substring(0,7)?t.push(K[S]):Q.push(K[S]);g=g.ownerDocument;g=null!=g.createElementNS?g.createElementNS(mxConstants.NS_SVG,"style"):g.createElement("style");g.setAttribute("type","text/css");0<t.length&&(mxUtils.setTextContent(g,t.join("\n")),C.appendChild(g));0<Q.length&&(g=g.cloneNode(!1),mxUtils.setTextContent(g,
+Q.join("\n")),C.appendChild(g))}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||Editor.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(g,t,C){var K=mxClient.IS_FF?8192:16384;return Math.min(C,Math.min(K/g,K/t))};Editor.prototype.exportToCanvas=function(g,t,C,K,Q,S,U,N,P,V,Y,X,Z,aa,ea,ha,ba,ia){try{S=null!=S?S:!0;U=null!=U?U:!0;X=null!=X?X:this.graph;Z=null!=Z?Z:0;var la=P?null:X.background;la==mxConstants.NONE&&(la=null);null==la&&(la=K);null==la&&0==P&&
(la="light-dark(#ffffff,"+Editor.darkColor+")");this.convertImages(X.getSvg(null,null,Z,aa,null,U,null,null,null,V,null,ha,ba,ia),mxUtils.bind(this,function(ka){try{ka.style.setProperty("-webkit-font-smoothing","antialiased");ka.style.setProperty("-moz-osx-font-smoothing","grayscale");var pa=new Image;pa.onload=mxUtils.bind(this,function(){try{var sa=function(){mxClient.IS_SF?window.setTimeout(function(){ya.drawImage(pa,0,0);g(ja,ka)},0):(ya.drawImage(pa,0,0),g(ja,ka))},ja=document.createElement("canvas"),
wa=parseInt(ka.getAttribute("width")),va=parseInt(ka.getAttribute("height"));N=null!=N?N:1;null!=t&&(N=S?Math.min(1,Math.min(3*t/(4*va),t/wa)):t/wa);N=this.getMaxCanvasScale(wa,va,N);wa=Math.ceil(N*wa);va=Math.ceil(N*va);ja.setAttribute("width",wa);ja.setAttribute("height",va);var ya=ja.getContext("2d");if(null!=la){var Aa=mxUtils.getLightDarkColor(la);ya.beginPath();ya.rect(0,0,wa,va);ya.fillStyle="dark"==ha&&"none"!=X.getAdaptiveColors()?Aa.dark:Aa.light;ya.fill()}1!=N&&ya.scale(N,N);if(ea){var ma=
X.view,Ea=ma.scale;ma.scale=1;var xa=btoa(unescape(encodeURIComponent(ma.createSvgGrid(ma.gridColor))));ma.scale=Ea;xa="data:image/svg+xml;base64,"+xa;var fa=X.gridSize*ma.gridSteps*N,ua=X.getGraphBounds(),Da=ma.translate.x*Ea,ra=ma.translate.y*Ea,ca=Da+(ua.x-Da)/Ea-Z,da=ra+(ua.y-ra)/Ea-Z,oa=new Image;oa.onload=function(){try{for(var na=-Math.round(fa-mxUtils.mod((Da-ca)*N,fa)),ta=-Math.round(fa-mxUtils.mod((ra-da)*N,fa));na<wa;na+=fa)for(var qa=ta;qa<va;qa+=fa)ya.drawImage(oa,na/N,qa/N);sa()}catch(za){null!=
Q&&Q(za)}};oa.onerror=function(na){null!=Q&&Q(na)};oa.src=xa}else sa()}catch(na){null!=Q&&Q(na)}});pa.onerror=function(sa){null!=Q&&Q(sa)};V&&this.graph.addSvgShadow(ka);this.graph.mathEnabled&&this.addMathCss(ka);var Ba=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(ka,this.resolvedFontCss),pa.src=Editor.createSvgDataUri(mxUtils.getXml(ka))}catch(sa){null!=Q&&Q(sa)}});this.embedExtFonts(mxUtils.bind(this,function(sa){try{null!=sa&&this.addFontCss(ka,sa),this.loadFonts(Ba)}catch(ja){null!=
-Q&&Q(ja)}}))}catch(sa){null!=Q&&Q(sa)}}),B,Y)}catch(ka){null!=Q&&Q(ka)}};Editor.crcTable=[];for(var x=0;256>x;x++)for(var z=x,y=0;8>y;y++)z=1==(z&1)?3988292384^z>>>1:z>>>1,Editor.crcTable[x]=z;Editor.updateCRC=function(g,t,B,K){for(var Q=0;Q<K;Q++)g=Editor.crcTable[(g^t.charCodeAt(B+Q))&255]^g>>>8;return g};Editor.crc32=function(g){for(var t=-1,B=0;B<g.length;B++)t=t>>>8^Editor.crcTable[(t^g.charCodeAt(B))&255];return(t^-1)>>>0};Editor.writeGraphModelToPng=function(g,t,B,K,Q){function S(Y,X){var Z=
+Q&&Q(ja)}}))}catch(sa){null!=Q&&Q(sa)}}),C,Y)}catch(ka){null!=Q&&Q(ka)}};Editor.crcTable=[];for(var x=0;256>x;x++)for(var z=x,y=0;8>y;y++)z=1==(z&1)?3988292384^z>>>1:z>>>1,Editor.crcTable[x]=z;Editor.updateCRC=function(g,t,C,K){for(var Q=0;Q<K;Q++)g=Editor.crcTable[(g^t.charCodeAt(C+Q))&255]^g>>>8;return g};Editor.crc32=function(g){for(var t=-1,C=0;C<g.length;C++)t=t>>>8^Editor.crcTable[(t^g.charCodeAt(C))&255];return(t^-1)>>>0};Editor.writeGraphModelToPng=function(g,t,C,K,Q){function S(Y,X){var Z=
P;P+=X;return Y.substring(Z,P)}function U(Y){Y=S(Y,4);return Y.charCodeAt(3)+(Y.charCodeAt(2)<<8)+(Y.charCodeAt(1)<<16)+(Y.charCodeAt(0)<<24)}function N(Y){return String.fromCharCode(Y>>24&255,Y>>16&255,Y>>8&255,Y&255)}g=g.substring(g.indexOf(",")+1);g=window.atob?atob(g):Base64.decode(g,!0);var P=0;if(S(g,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=Q&&Q();else if(S(g,4),"IHDR"!=S(g,4))null!=Q&&Q();else{S(g,17);Q=g.substring(0,P);do{var V=U(g);if("IDAT"==S(g,4)){Q=g.substring(0,
-P-8);"pHYs"==t&&"dpi"==B?(B=Math.round(K/.0254),B=N(B)+N(B)+String.fromCharCode(1)):B=B+String.fromCharCode(0)+("zTXt"==t?String.fromCharCode(0):"")+K;K=4294967295;K=Editor.updateCRC(K,t,0,4);K=Editor.updateCRC(K,B,0,B.length);Q+=N(B.length)+t+B+N(K^4294967295);Q+=g.substring(P-8,g.length);break}Q+=g.substring(P-8,P-4+V);S(g,V);S(g,4)}while(V);return"data:image/png;base64,"+(window.btoa?btoa(Q):Base64.encode(Q,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";
-var E=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(g,t){E.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var M=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){M.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(g,t,B){var K=null;if(null!=B)return null;null!=g.editor.graph.getModel().getParent(t)?
+P-8);"pHYs"==t&&"dpi"==C?(C=Math.round(K/.0254),C=N(C)+N(C)+String.fromCharCode(1)):C=C+String.fromCharCode(0)+("zTXt"==t?String.fromCharCode(0):"")+K;K=4294967295;K=Editor.updateCRC(K,t,0,4);K=Editor.updateCRC(K,C,0,C.length);Q+=N(C.length)+t+C+N(K^4294967295);Q+=g.substring(P-8,g.length);break}Q+=g.substring(P-8,P-4+V);S(g,V);S(g,4)}while(V);return"data:image/png;base64,"+(window.btoa?btoa(Q):Base64.encode(Q,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";
+var E=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(g,t){E.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var M=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){M.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(g,t,C){var K=null;if(null!=C)return null;null!=g.editor.graph.getModel().getParent(t)?
K=t.getId():null!=g.currentPage&&(K=g.currentPage.getId());return K});if(null!=window.StyleFormatPanel){var L=Format.prototype.init;Format.prototype.init=function(){L.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded",this.update)};var O=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?O.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(g){return"simple"==
-Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var R=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(g){g=R.apply(this,arguments);var t=this.editorUi,B=t.editor.graph;if(B.isEnabled()){var K=t.getCurrentFile();null!=K&&K.isAutosaveOptional()&&g.appendChild(this.createOption(mxResources.get("autosave"),function(){return t.editor.autosave},function(S){t.editor.setAutosave(S);t.editor.autosave&&K.isModified()&&K.fileChanged()},
-{install:function(S){this.listener=function(){S(t.editor.autosave)};t.editor.addListener("autosaveChanged",this.listener)},destroy:function(){t.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&B.isEnabled()&&"undefined"!==typeof MathJax){var Q=this.createOption(mxResources.get("mathematicalTypesetting"),function(){return B.mathEnabled},function(S){t.actions.get("mathematicalTypesetting").funct()},{install:function(S){this.listener=function(){S(B.mathEnabled)};t.addListener("mathEnabledChanged",
+Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var R=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(g){g=R.apply(this,arguments);var t=this.editorUi,C=t.editor.graph;if(C.isEnabled()){var K=t.getCurrentFile();null!=K&&K.isAutosaveOptional()&&g.appendChild(this.createOption(mxResources.get("autosave"),function(){return t.editor.autosave},function(S){t.editor.setAutosave(S);t.editor.autosave&&K.isModified()&&K.fileChanged()},
+{install:function(S){this.listener=function(){S(t.editor.autosave)};t.editor.addListener("autosaveChanged",this.listener)},destroy:function(){t.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&C.isEnabled()&&"undefined"!==typeof MathJax){var Q=this.createOption(mxResources.get("mathematicalTypesetting"),function(){return C.mathEnabled},function(S){t.actions.get("mathematicalTypesetting").funct()},{install:function(S){this.listener=function(){S(C.mathEnabled)};t.addListener("mathEnabledChanged",
this.listener)},destroy:function(){t.removeListener(this.listener)}});g.appendChild(Q);(!t.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&Q.appendChild(t.menus.createHelpLink("https://www.drawio.com/doc/faq/math-typesetting"))}return g};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.zigzag.prototype.customProperties=[{name:"size",dispName:"Size",type:"float",min:5,defVal:20}];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",min:0,max:.5,defVal:.1}];mxCellRenderer.defaultShapes.rhombus.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,max:50,defVal:mxConstants.LINE_ARCSIZE},{name:"double",dispName:"Double",type:"bool",defVal:!1}];mxCellRenderer.defaultShapes.partialRectangle.prototype.customProperties=[{name:"top",dispName:"Top Line",type:"bool",defVal:!0},{name:"bottom",dispName:"Bottom Line",type:"bool",defVal:!0},{name:"left",dispName:"Left Line",
@@ -13099,7 +13105,7 @@ font:"#000000"},{fill:"#e3c800",stroke:"#B09500",font:"#000000"},{fill:"#6d8764"
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;var c=StyleFormatPanel.prototype.init;StyleFormatPanel.prototype.init=function(){var g=this.editorUi.getSelectionState();null!=this.defaultColorSchemes&&0<this.defaultColorSchemes.length&&"image"!=g.style.shape&&!g.containsLabel&&0<g.cells.length&&this.container.appendChild(this.addStyles(this.createPanel()));
c.apply(this,arguments);null!=g.customProperties&&this.container.appendChild(this.addProperties(this.createPanel(),g.customProperties,g))};var d=StyleFormatPanel.prototype.addStyleOps;StyleFormatPanel.prototype.addStyleOps=function(g){var t=this.editorUi.getSelectionState();1==t.cells.length?this.addActions(g,["copyStyle","pasteStyle"]):1<=t.cells.length&&this.addActions(g,["pasteStyle","pasteData"]);d.apply(this,arguments);return g};EditorUi.prototype.propertiesCollapsed=!0;BaseFormatPanel.prototype.addProperties=
-function(g,t,B,K){function Q(ya,Aa,ma,Ea,xa){if(null!=ma.valueChanged)ma.valueChanged(Aa,xa,B,X);else{Z.getModel().beginUpdate();try{xa=[];var fa=[];if(null!=ma.index){for(var ua=[],Da=ma.parentRow.nextSibling;Da&&Da.getAttribute("data-pName")==ya;)ua.push(Da.getAttribute("data-pValue")),Da=Da.nextSibling;ma.index<ua.length?null!=Ea?ua.splice(Ea,1):ua[ma.index]=Aa:ua.push(Aa);null!=ma.size&&ua.length>ma.size&&(ua=ua.slice(0,ma.size));Aa=ua.join(",");null!=ma.countProperty&&(Z.setCellStyles(ma.countProperty,
+function(g,t,C,K){function Q(ya,Aa,ma,Ea,xa){if(null!=ma.valueChanged)ma.valueChanged(Aa,xa,C,X);else{Z.getModel().beginUpdate();try{xa=[];var fa=[];if(null!=ma.index){for(var ua=[],Da=ma.parentRow.nextSibling;Da&&Da.getAttribute("data-pName")==ya;)ua.push(Da.getAttribute("data-pValue")),Da=Da.nextSibling;ma.index<ua.length?null!=Ea?ua.splice(Ea,1):ua[ma.index]=Aa:ua.push(Aa);null!=ma.size&&ua.length>ma.size&&(ua=ua.slice(0,ma.size));Aa=ua.join(",");null!=ma.countProperty&&(Z.setCellStyles(ma.countProperty,
ua.length,Z.getSelectionCells()),xa.push(ma.countProperty),fa.push(ua.length))}Z.setCellStyles(ya,Aa,Z.getSelectionCells());xa.push(ya);fa.push(Aa);if(null!=ma.dependentProps)for(ya=0;ya<ma.dependentProps.length;ya++){var ra=ma.dependentPropsDefVal[ya],ca=ma.dependentPropsVals[ya];if(ca.length>Aa)ca=ca.slice(0,Aa);else for(var da=ca.length;da<Aa;da++)ca.push(ra);ca=ca.join(",");Z.setCellStyles(ma.dependentProps[ya],ca,Z.getSelectionCells());xa.push(ma.dependentProps[ya]);fa.push(ca)}if("function"==
typeof ma.onChange)ma.onChange(Z,Aa);X.editorUi.fireEvent(new mxEventObject("styleChanged","keys",xa,"values",fa,"cells",Z.getSelectionCells()))}finally{Z.getModel().endUpdate()}}}function S(ya,Aa){Aa.style.left="0px";Aa.style.top="0px";Aa.style.position="relative";Aa.style.right="0px";Aa.style.bottom="0px";Aa.style.width="100%";Aa.style.maxWidth="100%";Aa.style.maxHeight="100%";Aa.style.textAlign="left"}function U(ya,Aa,ma){function Ea(fa){if(null==fa||fa==mxConstants.NONE)xa.style.background="url('"+
Dialog.prototype.noColorImage+"')";else if("default"==fa)xa.style.background="";else{var ua=mxUtils.getLightDarkColor(fa);mxUtils.isLightDarkColor(fa)&&ua.light!=ua.dark?xa.style.background="linear-gradient(to right bottom, "+ua.cssText+" 50%, "+mxUtils.invertLightDarkColor(ua).cssText+" 50.3%)":xa.style.background=fa}}var xa=document.createElement("div");xa.style.width="32px";xa.style.height="8px";xa.style.margin="2px";xa.style.borderStyle="solid";xa.style.borderWidth="1px";Ea(Aa);btn=mxUtils.button("",
@@ -13116,30 +13122,30 @@ ua?0:Ka;ma.allowAuto&&(null!=Ka.trim&&"auto"==Ka.trim().toLowerCase()?(Ka="auto"
decodeURIComponent(Aa);za.className="gePropEditor";"int"!=ua&&"float"!=ua||ma.allowAuto||(za.type="number",za.step="int"==ua?"1":"any",null!=ma.min&&(za.min=parseFloat(ma.min)),null!=ma.max&&(za.max=parseFloat(ma.max)));oa.appendChild(za);mxEvent.addListener(za,"keypress",function(Ka){13==Ka.keyCode&&ta()});za.focus();mxEvent.addListener(za,"blur",function(){ta()})}}))}ma.isDeletable&&(xa=mxUtils.button("-",mxUtils.bind(X,function(na){Q(ya,"",ma,ma.index);mxEvent.consume(na)})),xa.style.height="16px",
xa.style.width="25px",xa.style.float="right",xa.className="geColorBtn",ra.appendChild(xa));Da.appendChild(ra);return Da}var X=this,Z=this.editorUi.editor.graph,aa=[],ea=document.createElement("table");ea.className="geProperties geFullWidthElement";var ha=document.createElement("tr");ha.className="gePropHeader";var ba=document.createElement("th");ba.className="gePropHeaderCell";ba.style.paddingLeft="16px";ba.style.backgroundRepeat="no-repeat";ba.style.backgroundPosition="-2px 50%";ba.style.backgroundSize=
"20px";mxUtils.write(ba,mxResources.get("property"));ha.style.cursor="pointer";var ia=function(){var ya=ea.querySelectorAll(".gePropNonHeaderRow");if(X.editorUi.propertiesCollapsed){ba.style.backgroundImage="url('"+Editor.arrowRightImage+"')";var Aa="none";for(var ma=g.childNodes.length-1;0<=ma;ma--)try{var Ea=g.childNodes[ma],xa=Ea.nodeName.toUpperCase();"INPUT"!=xa&&"SELECT"!=xa||g.removeChild(Ea)}catch(fa){}}else ba.style.backgroundImage="url('"+Editor.arrowDownImage+"')",Aa="";for(ma=0;ma<ya.length;ma++)ya[ma].style.display=
-Aa};mxEvent.addListener(ha,"click",function(){X.editorUi.propertiesCollapsed=!X.editorUi.propertiesCollapsed;ia()});ha.appendChild(ba);var la=document.createElement("th");la.className="gePropHeaderCell";la.style.paddingLeft="4px";mxUtils.write(la,mxResources.get("value"));ha.appendChild(la);ea.appendChild(ha);var ka=la=!1;ha=null;1==B.vertices.length&&0==B.edges.length?ha=B.vertices[0].id:0==B.vertices.length&&1==B.edges.length&&(ha=B.edges[0].id);null==ha||K||(ea.appendChild(Y("id",mxUtils.htmlEntities(ha),
-{dispName:"id",type:"readOnly"},!0,!1)),null!=B.style&&null!=B.style.shape&&ea.appendChild(Y("shape",mxUtils.htmlEntities(B.style.shape),{dispName:"shape",type:"readOnly"},!0,!1)));for(var pa in t)if(K=t[pa],("function"!=typeof K.isVisible||K.isVisible(B,this))&&!K.primary){var Ba=null!=K.getValue?K.getValue(B,this):null!=B.style[pa]?mxUtils.htmlEntities(B.style[pa]+""):null!=K.getDefaultValue?K.getDefaultValue(B,this):K.defVal;if("separator"==K.type)ka=!ka;else{if("staticArr"==K.type)K.size=parseInt(B.style[K.sizeProperty]||
-t[K.sizeProperty].defVal)||0;else if(null!=K.dependentProps){var sa=K.dependentProps,ja=[],wa=[];for(ha=0;ha<sa.length;ha++)if(null!=t[sa[ha]]){var va=B.style[sa[ha]];wa.push(t[sa[ha]].subDefVal);ja.push(null!=va?va.split(","):[])}K.dependentPropsDefVal=wa;K.dependentPropsVals=ja}ea.appendChild(Y(pa,Ba,K,la,ka));la=!la}}for(ha=0;ha<aa.length;ha++)for(K=aa[ha],t=K.parentRow,pa=0;pa<K.values.length;pa++)la=Y(K.name,K.values[pa],{type:K.type,parentRow:K.parentRow,isDeletable:K.isDeletable,index:pa,defVal:K.defVal,
-countProperty:K.countProperty,size:K.size},0==pa%2,K.flipBkg),t.parentNode.insertBefore(la,t.nextSibling),t=la;g.appendChild(ea);ia();return g};StyleFormatPanel.prototype.addStyles=function(g){if(null!=this.defaultColorSchemes){var t=this.editorUi,B=t.editor.graph,K=document.createElement("div");K.style.padding="6px 20px 0 24px";g.appendChild(K);var Q=document.createElement("div");Q.className="geSwitcher";Q.style.padding="4px 18px 6px 0px";for(var S=[],U=0;U<this.defaultColorSchemes.length;U++){var N=
+Aa};mxEvent.addListener(ha,"click",function(){X.editorUi.propertiesCollapsed=!X.editorUi.propertiesCollapsed;ia()});ha.appendChild(ba);var la=document.createElement("th");la.className="gePropHeaderCell";la.style.paddingLeft="4px";mxUtils.write(la,mxResources.get("value"));ha.appendChild(la);ea.appendChild(ha);var ka=la=!1;ha=null;1==C.vertices.length&&0==C.edges.length?ha=C.vertices[0].id:0==C.vertices.length&&1==C.edges.length&&(ha=C.edges[0].id);null==ha||K||(ea.appendChild(Y("id",mxUtils.htmlEntities(ha),
+{dispName:"id",type:"readOnly"},!0,!1)),null!=C.style&&null!=C.style.shape&&ea.appendChild(Y("shape",mxUtils.htmlEntities(C.style.shape),{dispName:"shape",type:"readOnly"},!0,!1)));for(var pa in t)if(K=t[pa],("function"!=typeof K.isVisible||K.isVisible(C,this))&&!K.primary){var Ba=null!=K.getValue?K.getValue(C,this):null!=C.style[pa]?mxUtils.htmlEntities(C.style[pa]+""):null!=K.getDefaultValue?K.getDefaultValue(C,this):K.defVal;if("separator"==K.type)ka=!ka;else{if("staticArr"==K.type)K.size=parseInt(C.style[K.sizeProperty]||
+t[K.sizeProperty].defVal)||0;else if(null!=K.dependentProps){var sa=K.dependentProps,ja=[],wa=[];for(ha=0;ha<sa.length;ha++)if(null!=t[sa[ha]]){var va=C.style[sa[ha]];wa.push(t[sa[ha]].subDefVal);ja.push(null!=va?va.split(","):[])}K.dependentPropsDefVal=wa;K.dependentPropsVals=ja}ea.appendChild(Y(pa,Ba,K,la,ka));la=!la}}for(ha=0;ha<aa.length;ha++)for(K=aa[ha],t=K.parentRow,pa=0;pa<K.values.length;pa++)la=Y(K.name,K.values[pa],{type:K.type,parentRow:K.parentRow,isDeletable:K.isDeletable,index:pa,defVal:K.defVal,
+countProperty:K.countProperty,size:K.size},0==pa%2,K.flipBkg),t.parentNode.insertBefore(la,t.nextSibling),t=la;g.appendChild(ea);ia();return g};StyleFormatPanel.prototype.addStyles=function(g){if(null!=this.defaultColorSchemes){var t=this.editorUi,C=t.editor.graph,K=document.createElement("div");K.style.padding="6px 20px 0 24px";g.appendChild(K);var Q=document.createElement("div");Q.className="geSwitcher";Q.style.padding="4px 18px 6px 0px";for(var S=[],U=0;U<this.defaultColorSchemes.length;U++){var N=
document.createElement("div");N.className="geSwitcherDot";mxUtils.bind(this,function(Z){mxEvent.addListener(N,"click",mxUtils.bind(this,function(){P(Z)}))})(U);S.push(N);Q.appendChild(N)}var P=mxUtils.bind(this,function(Z){null!=S[Z]&&(null!=this.format.currentScheme&&null!=S[this.format.currentScheme]&&(S[this.format.currentScheme].style.background="transparent"),this.format.currentScheme=Z,V(this.defaultColorSchemes[this.format.currentScheme]),S[this.format.currentScheme].style.background="#84d7ff")}),
-V=mxUtils.bind(this,function(Z){var aa=mxUtils.clone(B.defaultVertexStyle);aa[mxConstants.STYLE_STROKECOLOR]=null!=aa[mxConstants.STYLE_STROKECOLOR]?aa[mxConstants.STYLE_STROKECOLOR]:"default";aa[mxConstants.STYLE_FILLCOLOR]=null!=aa[mxConstants.STYLE_FILLCOLOR]?aa[mxConstants.STYLE_FILLCOLOR]:"default";aa[mxConstants.STYLE_FONTCOLOR]=null!=aa[mxConstants.STYLE_FONTCOLOR]?aa[mxConstants.STYLE_FONTCOLOR]:"default";B.replaceDefaultColors(new mxCell,aa);var ea=mxUtils.bind(this,function(ba){var ia=mxUtils.button("",
-mxUtils.bind(this,function(pa){B.getModel().beginUpdate();try{for(var Ba=t.getSelectionState().cells,sa=0;sa<Ba.length;sa++){var ja=B.getModel().getStyle(Ba[sa]);null!=ba?(mxEvent.isShiftDown(pa)||(ja=""==ba.fill||null==ba.fill?mxUtils.setStyle(ja,mxConstants.STYLE_FILLCOLOR,null):mxUtils.setStyle(ja,mxConstants.STYLE_FILLCOLOR,ba.fill),ja=""==ba.gradient||null==ba.gradient?mxUtils.setStyle(ja,mxConstants.STYLE_GRADIENTCOLOR,null):mxUtils.setStyle(ja,mxConstants.STYLE_GRADIENTCOLOR,ba.gradient),mxEvent.isControlDown(pa)||
-mxClient.IS_MAC&&mxEvent.isMetaDown(pa)||!B.getModel().isVertex(Ba[sa])||(ja=""==ba.font||null==ba.font?mxUtils.setStyle(ja,mxConstants.STYLE_FONTCOLOR,null):mxUtils.setStyle(ja,mxConstants.STYLE_FONTCOLOR,ba.font))),mxEvent.isAltDown(pa)||(ja=""==ba.stroke||null==ba.fill?mxUtils.setStyle(ja,mxConstants.STYLE_STROKECOLOR,null):mxUtils.setStyle(ja,mxConstants.STYLE_STROKECOLOR,ba.stroke))):(ja=mxUtils.setStyle(ja,mxConstants.STYLE_FILLCOLOR,null),ja=mxUtils.setStyle(ja,mxConstants.STYLE_STROKECOLOR,
-null),ja=mxUtils.setStyle(ja,mxConstants.STYLE_GRADIENTCOLOR,null),B.getModel().isVertex(Ba[sa])&&(ja=mxUtils.setStyle(ja,mxConstants.STYLE_FONTCOLOR,null)));B.getModel().setStyle(Ba[sa],ja)}}finally{B.getModel().endUpdate()}}));ia.className="geStyleButton";ia.style.width="36px";ia.style.height=10>=this.defaultColorSchemes.length?"24px":"30px";ia.style.margin="0px 6px 6px 0px";if(null!=ba){var la="1px solid";null!=ba.border&&(la=ba.border);if(null!=ba.gradient)ia.style.backgroundImage="linear-gradient("+
+V=mxUtils.bind(this,function(Z){var aa=mxUtils.clone(C.defaultVertexStyle);aa[mxConstants.STYLE_STROKECOLOR]=null!=aa[mxConstants.STYLE_STROKECOLOR]?aa[mxConstants.STYLE_STROKECOLOR]:"default";aa[mxConstants.STYLE_FILLCOLOR]=null!=aa[mxConstants.STYLE_FILLCOLOR]?aa[mxConstants.STYLE_FILLCOLOR]:"default";aa[mxConstants.STYLE_FONTCOLOR]=null!=aa[mxConstants.STYLE_FONTCOLOR]?aa[mxConstants.STYLE_FONTCOLOR]:"default";C.replaceDefaultColors(new mxCell,aa);var ea=mxUtils.bind(this,function(ba){var ia=mxUtils.button("",
+mxUtils.bind(this,function(pa){C.getModel().beginUpdate();try{for(var Ba=t.getSelectionState().cells,sa=0;sa<Ba.length;sa++){var ja=C.getModel().getStyle(Ba[sa]);null!=ba?(mxEvent.isShiftDown(pa)||(ja=""==ba.fill||null==ba.fill?mxUtils.setStyle(ja,mxConstants.STYLE_FILLCOLOR,null):mxUtils.setStyle(ja,mxConstants.STYLE_FILLCOLOR,ba.fill),ja=""==ba.gradient||null==ba.gradient?mxUtils.setStyle(ja,mxConstants.STYLE_GRADIENTCOLOR,null):mxUtils.setStyle(ja,mxConstants.STYLE_GRADIENTCOLOR,ba.gradient),mxEvent.isControlDown(pa)||
+mxClient.IS_MAC&&mxEvent.isMetaDown(pa)||!C.getModel().isVertex(Ba[sa])||(ja=""==ba.font||null==ba.font?mxUtils.setStyle(ja,mxConstants.STYLE_FONTCOLOR,null):mxUtils.setStyle(ja,mxConstants.STYLE_FONTCOLOR,ba.font))),mxEvent.isAltDown(pa)||(ja=""==ba.stroke||null==ba.fill?mxUtils.setStyle(ja,mxConstants.STYLE_STROKECOLOR,null):mxUtils.setStyle(ja,mxConstants.STYLE_STROKECOLOR,ba.stroke))):(ja=mxUtils.setStyle(ja,mxConstants.STYLE_FILLCOLOR,null),ja=mxUtils.setStyle(ja,mxConstants.STYLE_STROKECOLOR,
+null),ja=mxUtils.setStyle(ja,mxConstants.STYLE_GRADIENTCOLOR,null),C.getModel().isVertex(Ba[sa])&&(ja=mxUtils.setStyle(ja,mxConstants.STYLE_FONTCOLOR,null)));C.getModel().setStyle(Ba[sa],ja)}}finally{C.getModel().endUpdate()}}));ia.className="geStyleButton";ia.style.width="36px";ia.style.height=10>=this.defaultColorSchemes.length?"24px":"30px";ia.style.margin="0px 6px 6px 0px";if(null!=ba){var la="1px solid";null!=ba.border&&(la=ba.border);if(null!=ba.gradient)ia.style.backgroundImage="linear-gradient("+
mxUtils.getLightDarkColor(ba.fill).cssText+" 0px,"+mxUtils.getLightDarkColor(ba.gradient).cssText+" 100%)";else if(ba.fill==mxConstants.NONE)ia.style.background="url('"+Dialog.prototype.noColorImage+"')";else if(null==ba.fill||""==ba.fill)ia.style.backgroundColor=mxUtils.getLightDarkColor(mxUtils.getValue(aa,mxConstants.STYLE_FILLCOLOR,"#ffffff")).cssText;else{var ka=mxUtils.getLightDarkColor(ba.fill);ia.style.backgroundImage="linear-gradient(to right bottom, "+ka.cssText+" 50%, "+ka.light+" 50.3%)"}null==
ba.stroke||ba.stroke==mxConstants.NONE?ia.style.border=la+" transparent":""==ba.stroke?ia.style.border="1px solid "+mxUtils.getLightDarkColor(mxUtils.getValue(aa,mxConstants.STYLE_STROKECOLOR,"#000000")).cssText:(ka=mxUtils.getLightDarkColor(ba.stroke),ia.style.border=la+" "+ka.cssText,ia.style.borderRightColor=ka.light,ia.style.borderBottomColor=ia.style.borderRightColor);null!=ba.title&&ia.setAttribute("title",ba.title)}else la=mxUtils.getValue(aa,mxConstants.STYLE_FILLCOLOR,"#ffffff"),ka=mxUtils.getValue(aa,
mxConstants.STYLE_STROKECOLOR,"#000000"),ia.style.backgroundColor=la,ia.style.border="1px solid "+ka;ia.style.borderRadius="0";K.appendChild(ia);null!=ba&&null!=ba.gradient&&(la=ia.cloneNode(!1),la.style.backgroundImage="linear-gradient(light-dark(transparent, "+mxUtils.getLightDarkColor(ba.fill).light+") 0px, light-dark(transparent, "+mxUtils.getLightDarkColor(ba.gradient).light+") 100%)",la.style.clipPath="polygon(0 100%, 100% 0, 100% 100%)",la.style.backgroundColor="transparent",K.appendChild(la),
la.style.marginLeft="-42px",mxEvent.addListener(la,"click",function(){ia.click()}))});K.innerText="";if(null!=Z)for(var ha=0;ha<Z.length;ha++)0<ha&&0==mxUtils.mod(ha,4)&&mxUtils.br(K),ea(Z[ha])});null==this.format.currentScheme?P(Math.min(S.length-1,Editor.isDarkMode()?1:"1"==urlParams.sketch?5:0)):P(this.format.currentScheme);U=10>=this.defaultColorSchemes.length?43:23;var Y=document.createElement("div");Y.className="geButton";Y.style.cssText="position:absolute;left:0px;bottom:"+U+"px;width:20px;background-image:url("+
Editor.chevronLeftImage+");";mxEvent.addListener(Y,"click",mxUtils.bind(this,function(){P(mxUtils.mod(this.format.currentScheme-1,this.defaultColorSchemes.length))}));var X=document.createElement("div");X.className="geButton";X.style.cssText="position:absolute;left:186px;bottom:"+U+"px;width:20px;background-image:url("+Editor.chevronRightImage+");";1<this.defaultColorSchemes.length&&(g.appendChild(Y),g.appendChild(X));mxEvent.addListener(X,"click",mxUtils.bind(this,function(){P(mxUtils.mod(this.format.currentScheme+
1,this.defaultColorSchemes.length))}));V(this.defaultColorSchemes[this.format.currentScheme]);10>=this.defaultColorSchemes.length&&g.appendChild(Q)}return g}}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.isGoogleFontUrl=function(g){return g.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS||
-g.substring(0,Editor.GOOGLE_FONTS_CSS2.length)==Editor.GOOGLE_FONTS_CSS2};Graph.isCssFontUrl=function(g){return Graph.isGoogleFontUrl(g)};Graph.rewriteGoogleFontUrl=function(g){null!=g&&g.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS&&(g=Editor.GOOGLE_FONTS_CSS2+g.substring(Editor.GOOGLE_FONTS.length)+":wght@400;500");return g};Graph.createFontElement=function(g,t){var B=Graph.fontMapping[t];null==B&&Graph.isCssFontUrl(t)?(g=document.createElement("link"),g.setAttribute("rel","stylesheet"),
-g.setAttribute("type","text/css"),g.setAttribute("charset","UTF-8"),g.setAttribute("href",Graph.rewriteGoogleFontUrl(t))):(null==B&&(B='@font-face {\nfont-family: "'+g+'";\nsrc: url("'+t+'");\n}'),g=document.createElement("style"),mxUtils.write(g,B));return g};Graph.addRecentCustomFont=function(g,t){};Graph.addFont=function(g,t,B,K){if(null!=g&&0<g.length&&null!=t&&0<t.length){K=null!=K?K:Graph.customFontElements;var Q=g.toLowerCase();if("helvetica"!=Q&&"arial"!=g&&"sans-serif"!=Q){var S=K[Q];null!=
-S&&S.url!=t&&(S.elt.parentNode.removeChild(S.elt),S=null);null==S?(S=t,"http:"==t.substring(0,5)&&(S=PROXY_URL+"?url="+encodeURIComponent(t)),S={name:g,url:t,elt:Graph.createFontElement(g,S)},K[Q]=S,t=K==Graph.customFontElements?document.getElementsByTagName("head")[0]:null,null!=B&&("link"==S.elt.nodeName.toLowerCase()?(S.elt.onload=B,S.elt.onerror=B):B()),null!=t&&t.appendChild(S.elt)):null!=B&&B()}else null!=B&&B()}else null!=B&&B();return g};Graph.getFontUrl=function(g,t){g=Graph.customFontElements[g.toLowerCase()];
-null!=g&&(t=g.url);return t};Graph.processFontAttributes=function(g){g=g.getElementsByTagName("*");for(var t=0;t<g.length;t++){var B=g[t].getAttribute("data-font-src");if(null!=B){var K="FONT"==g[t].nodeName?g[t].getAttribute("face"):g[t].style.fontFamily;null!=K&&Graph.addFont(K,B)}}};Graph.processFontStyle=function(g){if(null!=g){var t=mxUtils.getValue(g,"fontSource",null);if(null!=t){var B=mxUtils.getValue(g,mxConstants.STYLE_FONTFAMILY,null);if(null!=B)try{Graph.addFont(B,decodeURIComponent(t))}catch(K){}}}return g};
+g.substring(0,Editor.GOOGLE_FONTS_CSS2.length)==Editor.GOOGLE_FONTS_CSS2};Graph.isCssFontUrl=function(g){return Graph.isGoogleFontUrl(g)};Graph.rewriteGoogleFontUrl=function(g){null!=g&&g.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS&&(g=Editor.GOOGLE_FONTS_CSS2+g.substring(Editor.GOOGLE_FONTS.length)+":wght@400;500");return g};Graph.createFontElement=function(g,t){var C=Graph.fontMapping[t];null==C&&Graph.isCssFontUrl(t)?(g=document.createElement("link"),g.setAttribute("rel","stylesheet"),
+g.setAttribute("type","text/css"),g.setAttribute("charset","UTF-8"),g.setAttribute("href",Graph.rewriteGoogleFontUrl(t))):(null==C&&(C='@font-face {\nfont-family: "'+g+'";\nsrc: url("'+t+'");\n}'),g=document.createElement("style"),mxUtils.write(g,C));return g};Graph.addRecentCustomFont=function(g,t){};Graph.addFont=function(g,t,C,K){if(null!=g&&0<g.length&&null!=t&&0<t.length){K=null!=K?K:Graph.customFontElements;var Q=g.toLowerCase();if("helvetica"!=Q&&"arial"!=g&&"sans-serif"!=Q){var S=K[Q];null!=
+S&&S.url!=t&&(S.elt.parentNode.removeChild(S.elt),S=null);null==S?(S=t,"http:"==t.substring(0,5)&&(S=PROXY_URL+"?url="+encodeURIComponent(t)),S={name:g,url:t,elt:Graph.createFontElement(g,S)},K[Q]=S,t=K==Graph.customFontElements?document.getElementsByTagName("head")[0]:null,null!=C&&("link"==S.elt.nodeName.toLowerCase()?(S.elt.onload=C,S.elt.onerror=C):C()),null!=t&&t.appendChild(S.elt)):null!=C&&C()}else null!=C&&C()}else null!=C&&C();return g};Graph.getFontUrl=function(g,t){g=Graph.customFontElements[g.toLowerCase()];
+null!=g&&(t=g.url);return t};Graph.processFontAttributes=function(g){g=g.getElementsByTagName("*");for(var t=0;t<g.length;t++){var C=g[t].getAttribute("data-font-src");if(null!=C){var K="FONT"==g[t].nodeName?g[t].getAttribute("face"):g[t].style.fontFamily;null!=K&&Graph.addFont(K,C)}}};Graph.processFontStyle=function(g){if(null!=g){var t=mxUtils.getValue(g,"fontSource",null);if(null!=t){var C=mxUtils.getValue(g,mxConstants.STYLE_FONTFAMILY,null);if(null!=C)try{Graph.addFont(C,decodeURIComponent(t))}catch(K){}}}return g};
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.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowBlur="1.7";Graph.prototype.svgShadowSize="3";Graph.prototype.hiddenTags=[];Graph.prototype.defaultMathEnabled=!1;var k=Graph.prototype.init;Graph.prototype.init=function(){function g(Q){t=
-Q}k.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var t=null;mxEvent.addListener(this.container,"mouseenter",g);mxEvent.addListener(this.container,"mousemove",g);mxEvent.addListener(this.container,"mouseleave",function(Q){t=null});this.isMouseInsertPoint=function(){return null!=t};var B=this.getInsertPoint;this.getInsertPoint=function(Q){return null==t||Q?B.apply(this,arguments):this.getPointForEvent(t)};var K=this.layoutManager.getLayout;this.layoutManager.getLayout=
+Q}k.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var t=null;mxEvent.addListener(this.container,"mouseenter",g);mxEvent.addListener(this.container,"mousemove",g);mxEvent.addListener(this.container,"mouseleave",function(Q){t=null});this.isMouseInsertPoint=function(){return null!=t};var C=this.getInsertPoint;this.getInsertPoint=function(Q){return null==t||Q?C.apply(this,arguments):this.getPointForEvent(t)};var K=this.layoutManager.getLayout;this.layoutManager.getLayout=
function(Q){var S=this.graph.getCellStyle(Q);if(null!=S&&"rack"==S.childLayout){var U=new mxStackLayout(this.graph,!1);U.gridSize=null!=S.rackUnitSize?parseFloat(S.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;U.marginLeft=S.marginLeft||0;U.marginRight=S.marginRight||0;U.marginTop=S.marginTop||0;U.marginBottom=S.marginBottom||0;U.allowGaps=S.allowGaps||0;U.horizontal="1"==mxUtils.getValue(S,"horizontalRack","0");U.resizeParent=!1;U.fill=!0;return U}return K.apply(this,
-arguments)};this.updateGlobalUrlVariables()};var m=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(g,t){return Graph.processFontStyle(m.apply(this,arguments))};var q=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(g,t,B,K,Q,S,U,N,P,V,Y,X){q.apply(this,arguments);Graph.processFontAttributes(X)};var v=mxText.prototype.redraw;mxText.prototype.redraw=function(){v.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&
-Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(g,t,B,K){function Q(){for(var ha=N.getSelectionCells(),ba=[],ia=0;ia<ha.length;ia++)N.isCellVisible(ha[ia])&&ba.push(ha[ia]);N.setSelectionCells(ba)}function S(ha){N.setHiddenTags(ha?[]:P.slice());Q();N.refresh()}function U(ha,ba){Y.innerText="";if(0<ha.length){var ia=document.createElement("table");ia.setAttribute("cellpadding","2");ia.style.boxSizing="border-box";ia.style.tableLayout="fixed";ia.style.width="100%";
+arguments)};this.updateGlobalUrlVariables()};var m=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(g,t){return Graph.processFontStyle(m.apply(this,arguments))};var q=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(g,t,C,K,Q,S,U,N,P,V,Y,X){q.apply(this,arguments);Graph.processFontAttributes(X)};var v=mxText.prototype.redraw;mxText.prototype.redraw=function(){v.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&
+Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(g,t,C,K){function Q(){for(var ha=N.getSelectionCells(),ba=[],ia=0;ia<ha.length;ia++)N.isCellVisible(ha[ia])&&ba.push(ha[ia]);N.setSelectionCells(ba)}function S(ha){N.setHiddenTags(ha?[]:P.slice());Q();N.refresh()}function U(ha,ba){Y.innerText="";if(0<ha.length){var ia=document.createElement("table");ia.setAttribute("cellpadding","2");ia.style.boxSizing="border-box";ia.style.tableLayout="fixed";ia.style.width="100%";
var la=document.createElement("tbody");if(null!=ha&&0<ha.length)for(var ka=0;ka<ha.length;ka++)(function(pa){function Ba(){var Aa=N.getCellsForTags([pa],null,null,!0);N.isEnabled()?N.setSelectionCells(Aa):N.highlightCells(Aa,null,null,70)}var sa=0>mxUtils.indexOf(N.hiddenTags,pa),ja=document.createElement("tr"),wa=document.createElement("td");wa.style.align="center";wa.style.width="16px";var va=document.createElement("img");va.setAttribute("src",sa?Editor.visibleImage:Editor.hiddenImage);va.setAttribute("title",
mxResources.get(sa?"hideIt":"show",[pa]));mxUtils.setOpacity(va,sa?75:25);va.className="geAdaptiveAsset";va.style.verticalAlign="middle";va.style.cursor="pointer";va.style.width="16px";if(t||Editor.isDarkMode())va.style.filter="invert(100%)";wa.appendChild(va);mxEvent.addListener(va,"click",function(Aa){mxEvent.isShiftDown(Aa)?S(0<=mxUtils.indexOf(N.hiddenTags,pa)):(N.toggleHiddenTag(pa),Q(),N.refresh());mxEvent.consume(Aa)});ja.appendChild(wa);wa=document.createElement("td");wa.style.align="center";
wa.style.width="16px";va=document.createElement("img");va.setAttribute("src",Editor.selectImage);va.setAttribute("title",mxResources.get("select"));mxUtils.setOpacity(va,sa?75:25);va.className="geAdaptiveAsset";va.style.verticalAlign="middle";va.style.cursor="pointer";va.style.width="16px";if(t||Editor.isDarkMode())va.style.filter="invert(100%)";mxEvent.addListener(va,"click",function(Aa){S(!0);Ba();mxEvent.consume(Aa)});wa.appendChild(va);ja.appendChild(wa);wa=document.createElement("td");wa.style.overflow=
@@ -13149,87 +13155,87 @@ N.setHiddenTags(ma);Q();N.refresh()}mxEvent.consume(Aa)});ja.appendChild(wa);if(
"transparent";ya.setAttribute("title",mxResources.get(ya.defaultChecked?"removeIt":"add",[pa]));mxEvent.addListener(ya,"change",function(Aa){ya.checked?N.addTagsForCells(N.getSelectionCells(),[pa]):N.removeTagsForCells(N.getSelectionCells(),[pa]);mxEvent.consume(Aa)});wa.appendChild(ya)}ja.appendChild(wa)}la.appendChild(ja)})(ha[ka]);ia.appendChild(la);Y.appendChild(ia)}}var N=this,P=N.hiddenTags.slice(),V=document.createElement("div");V.style.userSelect="none";V.style.overflow="hidden";V.style.padding=
"10px";V.style.height="100%";var Y=document.createElement("div");Y.style.position="absolute";Y.style.boxSizing="border-box";Y.style.userSelect="none";Y.style.overflow="auto";Y.style.padding="3px";Y.style.left="0px";Y.style.right="0px";Y.style.top="0px";Y.style.bottom="0px";V.appendChild(Y);N.addListener(mxEvent.ROOT,function(){P=N.hiddenTags.slice()});var X=mxUtils.bind(this,function(ha,ba){if(g()){ha=N.getAllTags();for(ba=0;ba<ha.length;ba++)0>mxUtils.indexOf(P,ha[ba])&&P.push(ha[ba]);P.sort();N.isSelectionEmpty()?
U(P):U(P,N.getCommonTagsForCells(N.getSelectionCells()))}});N.selectionModel.addListener(mxEvent.CHANGE,X);N.model.addListener(mxEvent.CHANGE,X);N.addListener(mxEvent.REFRESH,X);var Z=document.createElement("div");Z.className="geToolbarContainer geDialogToolbar";Z.style.position="absolute";Z.style.display="flex";Z.style.bottom="0px";Z.style.left="0px";Z.style.right="0px";Z.style.height="32px";Z.style.overflow="hidden";Z.style.padding="3px 4px 4px 4px";Z.style.borderWidth="1px 0px 0px 0px";Z.style.borderStyle=
-"solid";Z.style.whiteSpace="nowrap";if(N.isEnabled()){Y.style.bottom="32px";var aa=document.createElement("a");aa.className="geButton";var ea=aa.cloneNode(!1);ea.style.backgroundImage="url("+Editor.visibleImage+")";ea.setAttribute("title",mxResources.get("reset"));mxEvent.addListener(ea,"click",function(ha){N.setHiddenTags([]);mxEvent.isShiftDown(ha)||(P=N.hiddenTags.slice());Q();N.refresh();mxEvent.consume(ha)});Z.appendChild(ea);null!=B&&(aa=aa.cloneNode(!1),aa.style.backgroundImage="url("+Editor.plusImage+
-")",aa.setAttribute("title",mxResources.get("add")),mxEvent.addListener(aa,"click",function(ha){B(P,function(ba){P=ba;X()});mxEvent.consume(ha)}),Z.appendChild(aa));V.appendChild(Z)}null!=K&&Z.appendChild(K);return{div:V,refresh:X}};Graph.prototype.getCustomFonts=function(){var g=this.extFonts;g=null!=g?g.slice():[];for(var t in Graph.customFontElements){var B=Graph.customFontElements[t];g.push({name:B.name,url:B.url})}return g};Graph.prototype.setFont=function(g,t){Graph.addFont(g,t);var B=Editor.guid();
-document.execCommand("fontname",!1,B);for(var K=this.cellEditor.textarea.getElementsByTagName("font"),Q=!1,S=0;S<K.length;S++)K[S].getAttribute("face")==B&&(Q=!0,K[S].setAttribute("face",g),null!=t?K[S].setAttribute("data-font-src",t):K[S].removeAttribute("data-font-src"));Q||document.execCommand("fontname",!1,g)};var A=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return A.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 g=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=g)for(var t in g)this.globalVars[t]=g[t]}catch(B){null!=window.console&&console.log("Error in vars URL parameter: "+B)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var C=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=
-function(g){var t=C.apply(this,arguments);null==t&&null!=this.globalVars&&(t=this.globalVars[g]);return t};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var g=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(g.ownerDocument)).decode(g)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var D=Graph.prototype.getSvg;Graph.prototype.getSvg=function(g,t,B,K,Q,S,U,N,P,V,Y,X,Z,aa,ea,ha){var ba=D.apply(this,arguments);
+"solid";Z.style.whiteSpace="nowrap";if(N.isEnabled()){Y.style.bottom="32px";var aa=document.createElement("a");aa.className="geButton";var ea=aa.cloneNode(!1);ea.style.backgroundImage="url("+Editor.visibleImage+")";ea.setAttribute("title",mxResources.get("reset"));mxEvent.addListener(ea,"click",function(ha){N.setHiddenTags([]);mxEvent.isShiftDown(ha)||(P=N.hiddenTags.slice());Q();N.refresh();mxEvent.consume(ha)});Z.appendChild(ea);null!=C&&(aa=aa.cloneNode(!1),aa.style.backgroundImage="url("+Editor.plusImage+
+")",aa.setAttribute("title",mxResources.get("add")),mxEvent.addListener(aa,"click",function(ha){C(P,function(ba){P=ba;X()});mxEvent.consume(ha)}),Z.appendChild(aa));V.appendChild(Z)}null!=K&&Z.appendChild(K);return{div:V,refresh:X}};Graph.prototype.getCustomFonts=function(){var g=this.extFonts;g=null!=g?g.slice():[];for(var t in Graph.customFontElements){var C=Graph.customFontElements[t];g.push({name:C.name,url:C.url})}return g};Graph.prototype.setFont=function(g,t){Graph.addFont(g,t);var C=Editor.guid();
+document.execCommand("fontname",!1,C);for(var K=this.cellEditor.textarea.getElementsByTagName("font"),Q=!1,S=0;S<K.length;S++)K[S].getAttribute("face")==C&&(Q=!0,K[S].setAttribute("face",g),null!=t?K[S].setAttribute("data-font-src",t):K[S].removeAttribute("data-font-src"));Q||document.execCommand("fontname",!1,g)};var A=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return A.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 g=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=g)for(var t in g)this.globalVars[t]=g[t]}catch(C){null!=window.console&&console.log("Error in vars URL parameter: "+C)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var B=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=
+function(g){var t=B.apply(this,arguments);null==t&&null!=this.globalVars&&(t=this.globalVars[g]);return t};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var g=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(g.ownerDocument)).decode(g)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var D=Graph.prototype.getSvg;Graph.prototype.getSvg=function(g,t,C,K,Q,S,U,N,P,V,Y,X,Z,aa,ea,ha){var ba=D.apply(this,arguments);
if(null!=X){var ia=ba.getAttribute("style");null==ia&&(ia="");X="auto"==X||"none"==this.getAdaptiveColors()?"none"==this.getAdaptiveColors()?"light":"light dark":X;ba.setAttribute("style",ia+(" color-scheme: "+X+";"))}var la=this.getCustomFonts();if(Y&&0<la.length){var ka=ba.ownerDocument;ia=null!=ka.createElementNS?ka.createElementNS(mxConstants.NS_SVG,"style"):ka.createElement("style");null!=ka.setAttributeNS?ia.setAttributeNS("type","text/css"):ia.setAttribute("type","text/css");for(var pa="",
Ba="",sa=0;sa<la.length;sa++){var ja=la[sa].name,wa=la[sa].url;Graph.isCssFontUrl(wa)?pa+="@import url("+Graph.rewriteGoogleFontUrl(wa)+");\n":Ba+='@font-face {\nfont-family: "'+ja+'";\nsrc: url("'+wa+'");\n}\n'}ia.appendChild(ka.createTextNode(pa+Ba));ba.getElementsByTagName("defs")[0].appendChild(ia)}Editor.replaceSvgDataUris&&null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&EditorUi.embedSvgImages(ba);this.mathEnabled&&(document.body.appendChild(ba),Editor.MathJaxRender(ba),
ba.parentNode.removeChild(ba),ia=ba.ownerDocument.getElementById("MJX-SVG-styles"),null!=ia&&ba.getElementsByTagName("defs")[0].appendChild(ia.cloneNode(!0)));return ba};var J=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(g){J.apply(this,arguments);null!=g.secondLabel&&(g.secondLabel.destroy(),g.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(g){return[g.shape,g.text,g.secondLabel,g.control]};var F=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=
function(){F.apply(this,arguments);this.enumerationState=0};var T=mxGraphView.prototype.stateValidated;mxGraphView.prototype.stateValidated=function(g){null!=g.shape&&this.redrawEnumerationState(g);return T.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(g){g=decodeURIComponent(mxUtils.getValue(g.style,"enumerateValue",""));""==g&&(g=++this.enumerationState);return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(g)+
-"</div>"};mxGraphView.prototype.redrawEnumerationState=function(g){var t="1"==mxUtils.getValue(g.style,"enumerate",0);t&&null==g.secondLabel?(g.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),g.secondLabel.size=12,g.secondLabel.state=g,g.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(g,g.secondLabel)):t||null==g.secondLabel||(g.secondLabel.destroy(),g.secondLabel=null);t=g.secondLabel;if(null!=t){var B=g.view.scale,
-K=this.createEnumerationValue(g);g=this.graph.model.isVertex(g.cell)?new mxRectangle(g.x+g.width-4*B,g.y+4*B,0,0):mxRectangle.fromPoint(g.view.getPoint(g));t.bounds.equals(g)&&t.value==K&&t.scale==B||(t.bounds=g,t.value=K,t.scale=B,t.redraw())}};var W=Graph.prototype.refresh;Graph.prototype.refresh=function(){this.refreshBackgroundImage();W.apply(this,arguments)};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(g,t){"data:action/json,"==g.substring(0,17)&&(g=JSON.parse(g.substring(17)),null!=g.actions&&this.executeCustomActions(g.actions,null,t))};Graph.prototype.executeCustomActions=function(g,t,B){if(this.executingCustomActions)this.stoppingCustomActions=!0,null!=this.pendingWaitThread&&
+"</div>"};mxGraphView.prototype.redrawEnumerationState=function(g){var t="1"==mxUtils.getValue(g.style,"enumerate",0);t&&null==g.secondLabel?(g.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),g.secondLabel.size=12,g.secondLabel.state=g,g.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(g,g.secondLabel)):t||null==g.secondLabel||(g.secondLabel.destroy(),g.secondLabel=null);t=g.secondLabel;if(null!=t){var C=g.view.scale,
+K=this.createEnumerationValue(g);g=this.graph.model.isVertex(g.cell)?new mxRectangle(g.x+g.width-4*C,g.y+4*C,0,0):mxRectangle.fromPoint(g.view.getPoint(g));t.bounds.equals(g)&&t.value==K&&t.scale==C||(t.bounds=g,t.value=K,t.scale=C,t.redraw())}};var W=Graph.prototype.refresh;Graph.prototype.refresh=function(){this.refreshBackgroundImage();W.apply(this,arguments)};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(g,t){"data:action/json,"==g.substring(0,17)&&(g=JSON.parse(g.substring(17)),null!=g.actions&&this.executeCustomActions(g.actions,null,t))};Graph.prototype.executeCustomActions=function(g,t,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 K=!1,Q=0,S=0,U=mxUtils.bind(this,function(){K||(K=!0,this.model.beginUpdate())}),N=mxUtils.bind(this,function(){K&&(K=!1,this.model.endUpdate())}),P=mxUtils.bind(this,function(){0<Q&&Q--;0==Q&&V()}),V=mxUtils.bind(this,function(){if(S<g.length){var Y=this.stoppingCustomActions,X=g[S++],
-Z=[];if(null!=X.open)if(N(),this.isCustomLink(X.open)){if(!this.customLinkClicked(X.open,B))return}else this.openLink(X.open);null==X.wait||Y||(this.pendingExecuteNextAction=mxUtils.bind(this,function(){this.pendingWaitThread=this.pendingExecuteNextAction=null;P()}),Q++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,""!=X.wait?parseInt(X.wait):1E3),N());null!=X.opacity&&null!=X.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(X.opacity,!0)),
-X.opacity.value);null!=X.fadeIn&&(Q++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(X.fadeIn,!0)),0,1,P,Y?0:X.fadeIn.delay));null!=X.fadeOut&&(Q++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(X.fadeOut,!0)),1,0,P,Y?0:X.fadeOut.delay));null!=X.wipeIn&&(Z=Z.concat(this.createWipeAnimations(this.getCellsForAction(X.wipeIn,!0),!0)));null!=X.wipeOut&&(Z=Z.concat(this.createWipeAnimations(this.getCellsForAction(X.wipeOut,!0),!1)));null!=X.toggle&&(U(),this.toggleCells(this.getCellsForAction(X.toggle,
-!0)));if(null!=X.show){U();var aa=this.getCellsForAction(X.show,!0);Graph.setOpacityForNodes(this.getNodesForCells(aa),1);this.setCellsVisible(aa,!0)}null!=X.hide&&(U(),aa=this.getCellsForAction(X.hide,!0),Graph.setOpacityForNodes(this.getNodesForCells(aa),0),this.setCellsVisible(aa,!1));null!=X.toggleStyle&&null!=X.toggleStyle.key&&(U(),this.toggleCellStyles(X.toggleStyle.key,null!=X.toggleStyle.defaultValue?X.toggleStyle.defaultValue:"0",this.getCellsForAction(X.toggleStyle,!0)));null!=X.style&&
-null!=X.style.key&&(U(),this.setCellStyles(X.style.key,X.style.value,this.getCellsForAction(X.style,!0)));aa=[];null!=X.select&&this.isEnabled()&&(aa=this.getCellsForAction(X.select),this.setSelectionCells(aa));null!=X.highlight&&(aa=this.getCellsForAction(X.highlight),this.highlightCells(aa,X.highlight.color,X.highlight.duration,X.highlight.opacity));null!=X.scroll&&(aa=this.getCellsForAction(X.scroll));null!=X.viewbox&&this.fitWindow(X.viewbox,X.viewbox.border);0<aa.length&&this.scrollCellToVisible(aa[0]);
-null!=B&&null!=X.explore&&Graph.exploreFromCell(this,B,X.explore);if(null!=X.tags){if(null!=X.tags.toggle){var ea=X.tags.toggle;0==ea.length&&(ea=this.getAllTags());for(aa=0;aa<ea.length;aa++)this.toggleHiddenTag(ea[aa])}ea=null;null!=X.tags.hidden&&(null==ea&&(ea=[]),ea=ea.concat(X.tags.hidden));if(null!=X.tags.visible){null==ea&&(ea=[]);var ha=this.getAllTags();for(aa=0;aa<ha.length;aa++)0>mxUtils.indexOf(X.tags.visible,ha[aa])&&0>mxUtils.indexOf(ea,ha[aa])&&ea.push(ha[aa])}null!=ea&&this.setHiddenTags(ea);
-this.refresh()}0<Z.length&&(Q++,this.executeAnimations(Z,P,Y?1:X.steps,Y?0:X.delay));0==Q?V():N()}else this.stoppingCustomActions=this.executingCustomActions=!1,N(),null!=t&&t()});V()}};Graph.prototype.doUpdateCustomLinksForCell=function(g,t){var B=this.getLinkForCell(t);null!=B&&"data:action/json,"==B.substring(0,17)&&this.setLinkForCell(t,this.updateCustomLink(g,B));if(this.isHtmlLabel(t)){var K=document.createElement("div");K.innerHTML=Graph.sanitizeHtml(this.getLabel(t));for(var Q=K.getElementsByTagName("a"),
-S=!1,U=0;U<Q.length;U++)B=Q[U].getAttribute("href"),null!=B&&"data:action/json,"==B.substring(0,17)&&(Q[U].setAttribute("href",this.updateCustomLink(g,B)),S=!0);S&&this.labelChanged(t,K.innerHTML)}};Graph.prototype.updateCustomLink=function(g,t){if("data:action/json,"==t.substring(0,17))try{var B=JSON.parse(t.substring(17));null!=B.actions&&(this.updateCustomLinkActions(g,B.actions),t="data:action/json,"+JSON.stringify(B))}catch(K){}return t};Graph.prototype.updateCustomLinkActions=function(g,t){for(var B=
-0;B<t.length;B++){var K=t[B],Q;for(Q in K)this.updateCustomLinkAction(g,K[Q],"cells"),this.updateCustomLinkAction(g,K[Q],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(g,t,B){if(null!=t&&null!=t[B]){for(var K=[],Q=0;Q<t[B].length;Q++)if("*"==t[B][Q])K.push(t[B][Q]);else{var S=g[t[B][Q]];null!=S?""!=S&&K.push(S):K.push(t[B][Q])}t[B]=K}};Graph.prototype.getCellsForAction=function(g,t){t=this.getCellsById(g.cells).concat(this.getCellsForTags(g.tags,null,t));if(null!=g.excludeCells){for(var B=
-[],K=0;K<t.length;K++)0>g.excludeCells.indexOf(t[K].id)&&B.push(t[K]);t=B}return t};Graph.prototype.getCellsById=function(g){var t=[];if(null!=g)for(var B=0;B<g.length;B++)if("*"==g[B]){var K=this.model.getRoot();t=t.concat(this.model.filterDescendants(function(S){return S!=K},K))}else{var Q=this.model.getCell(g[B]);null!=Q&&t.push(Q)}return t};var u=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(g){return u.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(g))};
-Graph.prototype.setHiddenTags=function(g){this.hiddenTags=g;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(g){var t=mxUtils.indexOf(this.hiddenTags,g);0>t?this.hiddenTags.push(g):0<=t&&this.hiddenTags.splice(t,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.isAllTagsHidden=function(g){if(null==g||0==g.length||0==this.hiddenTags.length)return!1;g=g.split(" ");if(g.length>this.hiddenTags.length)return!1;for(var t=0;t<g.length;t++)if(0>
-mxUtils.indexOf(this.hiddenTags,g[t]))return!1;return!0};Graph.prototype.getCellsForTags=function(g,t,B,K){var Q=[];if(null!=g){t=null!=t?t:this.model.getDescendants(this.model.getRoot());for(var S=0,U={},N=0;N<g.length;N++)0<g[N].length&&(U[g[N]]=!0,S++);for(N=0;N<t.length;N++)if(B&&this.model.getParent(t[N])==this.model.root||this.model.isVertex(t[N])||this.model.isEdge(t[N])){var P=this.getTagsForCell(t[N]),V=!1;if(0<P.length&&(P=P.split(" "),P.length>=g.length)){for(var Y=V=0;Y<P.length&&V<S;Y++)null!=
-U[P[Y]]&&V++;V=V==S}V&&(1!=K||this.isCellVisible(t[N]))&&Q.push(t[N])}}return Q};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(g){for(var t=null,B=[],K=0;K<g.length;K++){var Q=this.getTagsForCell(g[K]);B=[];if(0<Q.length){Q=Q.split(" ");for(var S={},U=0;U<Q.length;U++)if(null==t||null!=t[Q[U]])S[Q[U]]=!0,B.push(Q[U]);t=S}else return[]}return B};Graph.prototype.getTagsForCells=function(g){for(var t=
-[],B={},K=0;K<g.length;K++){var Q=this.getTagsForCell(g[K]);if(0<Q.length){Q=Q.split(" ");for(var S=0;S<Q.length;S++)null==B[Q[S]]&&(B[Q[S]]=!0,t.push(Q[S]))}}return t};Graph.prototype.getTagsForCell=function(g){return this.getAttributeForCell(g,"tags","")};Graph.prototype.addTagsForCells=function(g,t){if(0<g.length&&0<t.length){this.model.beginUpdate();try{for(var B=0;B<g.length;B++){for(var K=this.getTagsForCell(g[B]),Q=K.split(" "),S=!1,U=0;U<t.length;U++){var N=mxUtils.trim(t[U]);""!=N&&0>mxUtils.indexOf(Q,
-N)&&(K=0<K.length?K+" "+N:N,S=!0)}S&&this.setAttributeForCell(g[B],"tags",K)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(g,t){if(0<g.length&&0<t.length){this.model.beginUpdate();try{for(var B=0;B<g.length;B++){var K=this.getTagsForCell(g[B]);if(0<K.length){for(var Q=K.split(" "),S=!1,U=0;U<t.length;U++){var N=mxUtils.indexOf(Q,t[U]);0<=N&&(Q.splice(N,1),S=!0)}S&&this.setAttributeForCell(g[B],"tags",Q.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=
-function(g){this.model.beginUpdate();try{for(var t=0;t<g.length;t++)this.model.setVisible(g[t],!this.model.isVisible(g[t]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(g,t){this.model.beginUpdate();try{for(var B=0;B<g.length;B++)this.model.setVisible(g[B],t)}finally{this.model.endUpdate()}};Graph.prototype.highlightCells=function(g,t,B,K){for(var Q=0;Q<g.length;Q++)this.highlightCell(g[Q],t,B,K)};Graph.prototype.highlightCell=function(g,t,B,K,Q){t=null!=t?t:mxConstants.DEFAULT_VALID_COLOR;
-B=null!=B?B:1E3;g=this.view.getState(g);var S=null;null!=g&&(Q=null!=Q?Q:4,Q=Math.max(Q+1,mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)+Q),S=new mxCellHighlight(this,t,Q,!1),null!=K&&(S.opacity=K),S.highlight(g),window.setTimeout(function(){null!=S.shape&&(mxUtils.setPrefixedStyle(S.shape.node.style,"transition","all 1200ms ease-in-out"),S.shape.node.style.opacity=0);window.setTimeout(function(){S.destroy()},1200)},B));return S};Graph.prototype.addSvgShadow=function(g,t,B,K){K=null!=K?
-K:!0;var Q=Math.ceil(this.svgShadowSize*this.svgShadowBlur);null!=B&&B||(t=null!=t?t:g.getElementsByTagName("g")[0],null!=t&&(this.updateShadowFilter(t,!0),!isNaN(parseInt(g.getAttribute("width")))&&K&&(g.setAttribute("width",parseInt(g.getAttribute("width"))+Q),g.setAttribute("height",parseInt(g.getAttribute("height"))+Q),t=g.getAttribute("viewBox"),null!=t&&0<t.length&&(t=t.split(" "),3<t.length&&(w=parseFloat(t[2])+Q,h=parseFloat(t[3])+Q,g.setAttribute("viewBox",t[0]+" "+t[1]+" "+w+" "+h))))));
-return Q};Graph.prototype.updateShadowFilter=function(g,t){mxClient.IS_SF||(t?(t=mxUtils.getLightDarkColor(this.svgShadowColor,this.svgShadowOpacity),g.style.filter="drop-shadow("+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowBlur)/100+"px "+t.cssText+")"):g.style.filter="")};Graph.prototype.setShadowVisible=function(g,t){t=null!=t?t:!0;this.shadowVisible=g;this.updateShadowFilter(this.view.getDrawPane(),this.shadowVisible);
-t&&this.fireEvent(new mxEventObject("shadowVisibleChanged"))};Graph.prototype.checkDefaultParent=function(){null==this.defaultParent||this.model.contains(this.defaultParent)||(this.setDefaultParent(null),this.selectUnlockedLayer())};Graph.prototype.selectUnlockedLayer=function(){if(null==this.defaultParent){var g=this.model.getChildCount(this.model.root),t=0;do var B=this.model.getChildAt(this.model.root,t);while(t++<g&&"1"==mxUtils.getValue(this.getCellStyle(B),"locked","0"));null!=B&&this.setDefaultParent(B)}};
-mxStencilRegistry.libraries.mockup=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries.arrows2=[SHAPES_PATH+"/mxArrows.js"];mxStencilRegistry.libraries.atlassian=[STENCIL_PATH+"/atlassian.xml",SHAPES_PATH+"/mxAtlassian.js"];mxStencilRegistry.libraries.bpmn=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.bpmn2=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.c4=
-[SHAPES_PATH+"/mxC4.js"];mxStencilRegistry.libraries.cisco19=[SHAPES_PATH+"/mxCisco19.js",STENCIL_PATH+"/cisco19.xml"];mxStencilRegistry.libraries.cisco_safe=[SHAPES_PATH+"/mxCiscoSafe.js",STENCIL_PATH+"/cisco_safe/architecture.xml",STENCIL_PATH+"/cisco_safe/business_icons.xml",STENCIL_PATH+"/cisco_safe/capability.xml",STENCIL_PATH+"/cisco_safe/design.xml",STENCIL_PATH+"/cisco_safe/iot_things_icons.xml",STENCIL_PATH+"/cisco_safe/people_places_things_icons.xml",STENCIL_PATH+"/cisco_safe/security_icons.xml",
-STENCIL_PATH+"/cisco_safe/technology_icons.xml",STENCIL_PATH+"/cisco_safe/threat.xml"];mxStencilRegistry.libraries.dfd=[SHAPES_PATH+"/mxDFD.js"];mxStencilRegistry.libraries.er=[SHAPES_PATH+"/er/mxER.js"];mxStencilRegistry.libraries.kubernetes=[SHAPES_PATH+"/mxKubernetes.js",STENCIL_PATH+"/kubernetes.xml",STENCIL_PATH+"/kubernetes2.xml"];mxStencilRegistry.libraries.flowchart=[SHAPES_PATH+"/mxFlowchart.js",STENCIL_PATH+"/flowchart.xml"];mxStencilRegistry.libraries.ios=[SHAPES_PATH+"/mockup/mxMockupiOS.js"];
-mxStencilRegistry.libraries.rackGeneral=[SHAPES_PATH+"/rack/mxRack.js",STENCIL_PATH+"/rack/general.xml"];mxStencilRegistry.libraries.rackF5=[STENCIL_PATH+"/rack/f5.xml"];mxStencilRegistry.libraries.lean_mapping=[SHAPES_PATH+"/mxLeanMap.js",STENCIL_PATH+"/lean_mapping.xml"];mxStencilRegistry.libraries.basic=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/basic.xml"];mxStencilRegistry.libraries.ios7icons=[STENCIL_PATH+"/ios7/icons.xml"];mxStencilRegistry.libraries.ios7ui=[SHAPES_PATH+"/ios7/mxIOS7Ui.js",
-STENCIL_PATH+"/ios7/misc.xml"];mxStencilRegistry.libraries.android=[SHAPES_PATH+"/mxAndroid.js",STENCIL_PATH+"/android/android.xml"];mxStencilRegistry.libraries["electrical/abstract"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/abstract.xml"];mxStencilRegistry.libraries["electrical/logic_gates"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/logic_gates.xml"];mxStencilRegistry.libraries["electrical/miscellaneous"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/miscellaneous.xml"];
-mxStencilRegistry.libraries["electrical/signal_sources"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/signal_sources.xml"];mxStencilRegistry.libraries["electrical/electro-mechanical"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/electro-mechanical.xml"];mxStencilRegistry.libraries["electrical/transmission"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/transmission.xml"];mxStencilRegistry.libraries.infographic=[SHAPES_PATH+"/mxInfographic.js"];mxStencilRegistry.libraries["mockup/buttons"]=
-[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries["mockup/containers"]=[SHAPES_PATH+"/mockup/mxMockupContainers.js"];mxStencilRegistry.libraries["mockup/forms"]=[SHAPES_PATH+"/mockup/mxMockupForms.js"];mxStencilRegistry.libraries["mockup/graphics"]=[SHAPES_PATH+"/mockup/mxMockupGraphics.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[SHAPES_PATH+"/mockup/mxMockupMarkup.js"];mxStencilRegistry.libraries["mockup/misc"]=[SHAPES_PATH+"/mockup/mxMockupMisc.js",
-STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/navigation"]=[SHAPES_PATH+"/mockup/mxMockupNavigation.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/text"]=[SHAPES_PATH+"/mockup/mxMockupText.js"];mxStencilRegistry.libraries.floorplan=[SHAPES_PATH+"/mxFloorplan.js",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.ibmcloud=[STENCIL_PATH+"/ibm_cloud.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.networks2=[SHAPES_PATH+"/mxNetworks2.js",STENCIL_PATH+"/networks2.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"];mxStencilRegistry.libraries.salesforce=[STENCIL_PATH+"/salesforce.xml"];mxStencilRegistry.libraries.sap=[SHAPES_PATH+"/mxSAP.js",STENCIL_PATH+"/sap.xml"];mxStencilRegistry.libraries.emoji=[SHAPES_PATH+"/emoji/mxEmoji.js"];mxMarker.getPackageForType=
-function(g){var t=null;null!=g&&0<g.length&&("ER"==g.substring(0,2)?t="mxgraph.er":"sysML"==g.substring(0,5)&&(t="mxgraph.sysml"));return t};var G=mxMarker.createMarker;mxMarker.createMarker=function(g,t,B,K,Q,S,U,N,P,V){if(null!=B&&null==mxMarker.markers[B]){var Y=this.getPackageForType(B);null!=Y&&mxStencilRegistry.getStencil(Y)}return G.apply(this,arguments)};var I=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(g,t,B,K,Q,S){"1"==mxUtils.getValue(t.style,"lineShape",null)&&
-g.setFillColor(mxUtils.getValue(t.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return I.apply(this,arguments)};PrintDialog.prototype.create=function(g,t,B,K){function Q(){ha.value=Math.max(1,Math.min(Y,Math.max(parseInt(ha.value),parseInt(ea.value))));ea.value=Math.max(1,Math.min(Y,Math.min(parseInt(ha.value),parseInt(ea.value))))}function S(ta){g.lastPrintPagesRadioChecked=aa.checked;g.lastPrintSelectionOnlyChecked=ia.checked;g.lastPrintCropRadioChecked=ka.checked;g.lastPrintFitRadioChecked=
-pa.checked;aa.checked&&ea.value<ha.value?(g.lastPrintPagesFromInput=ea.value,g.lastPrintPagesToInput=ha.value):(g.lastPrintPagesFromInput=null,g.lastPrintPagesToInput=null);ua.value=Math.max(1,Math.min(1600,parseInt(ua.value)))+"%";g.lastPrintZoom=ua.value;g.lastPrintBorder=fa.value;g.lastPrintGrid=Da.checked;g.lastPrintTransparent=ca.checked;g.lastPrintInclude=da.checked;g.lastPrintSheetsAcross=Ea.value;g.lastPrintSheetsDown=xa.value;var qa={};qa.border=parseInt(fa.value);qa.scale=parseInt(ua.value)/
-100;qa.grid=Da.checked;qa.shadows=ra.checked;qa.transparent=ca.checked;qa.includeCopy=da.checked;qa.sheetsAcross=parseInt(Ea.value);qa.sheetsDown=parseInt(xa.value);qa.pagesFrom=parseInt(ea.value);qa.pagesTo=parseInt(ha.value);qa.allPages=X.checked;qa.selection=ia.checked;qa.pageView=la.checked;qa.crop=ka.checked;qa.fit=pa.checked;return null!=B?B(!ta,qa):g.print(!ta,qa)}var U=g.editor.graph,N=document.createElement("div"),P=document.createElement("h3");P.style.width="100%";P.style.textAlign="center";
-P.style.marginTop="0px";P.style.marginBottom="10px";mxUtils.write(P,t||mxResources.get("print"));N.appendChild(P);var V=1,Y=1;P=document.createElement("div");P.className="geDialogSection";P.style.whiteSpace="nowrap";var X=document.createElement("input");X.style.marginRight="8px";X.setAttribute("type","radio");X.setAttribute("name","pages-printdialog");var Z=document.createElement("div");Z.className="geDialogCheckRow";Z.appendChild(X);t=document.createElement("span");mxUtils.write(t,mxResources.get("allPages"));
-mxEvent.addListener(t,"click",function(){X.checked=!0});Z.appendChild(t);P.appendChild(Z);var aa=document.createElement("input");aa.style.marginRight="8px";aa.setAttribute("type","radio");aa.setAttribute("name","pages-printdialog");Z=document.createElement("div");Z.className="geDialogCheckRow";Z.appendChild(aa);t=document.createElement("span");mxUtils.write(t,mxResources.get("pages")+":");Z.appendChild(t);mxEvent.addListener(t,"click",function(){aa.checked=!0});var ea=document.createElement("input");
-ea.style.margin="0 4px";ea.setAttribute("value","1");ea.setAttribute("type","number");ea.setAttribute("min","1");ea.style.width="40px";Z.appendChild(ea);t=document.createElement("span");mxUtils.write(t,mxResources.get("to"));Z.appendChild(t);var ha=ea.cloneNode(!0);Z.appendChild(ha);mxEvent.addListener(ea,"focus",function(){aa.checked=!0});mxEvent.addListener(ha,"focus",function(){aa.checked=!0});mxEvent.addListener(ea,"change",Q);mxEvent.addListener(ha,"change",Q);if(null!=g.pages&&(Y=g.pages.length,
-null!=g.currentPage))for(var ba=0;ba<Y;ba++)if(g.currentPage==g.pages[ba]){V=ba+1;break}null!=g.lastPrintPagesFromInput&&null!=g.lastPrintPagesToInput?(ea.value=Math.min(Y,Math.max(1,g.lastPrintPagesFromInput)),ha.value=Math.min(Y,Math.max(1,g.lastPrintPagesToInput))):(ea.value=V,ha.value=V);ea.setAttribute("max",Y);ha.setAttribute("max",Y);ba=mxUtils.button(mxResources.get("currentPage"),function(ta){ea.value=V;ha.value=V;aa.checked=!0});ba.setAttribute("title",mxResources.get("currentPage"));ba.style.marginLeft=
-"4px";ba.style.maxWidth="100px";ba.style.overflow="hidden";ba.style.textOverflow="ellipsis";ba.style.whiteSpace="nowrap";Z.appendChild(ba);P.appendChild(Z);1<Y&&N.appendChild(P);Z=document.createElement("div");Z.className="geDialogCheckRow";var ia=document.createElement("input");ia.setAttribute("name","pages-printdialog");ia.setAttribute("type",1==Y?"checkbox":"radio");ia.style.marginRight="8px";U.isSelectionEmpty()&&ia.setAttribute("disabled","disabled");U.isEnabled()&&(Z.appendChild(ia),t=document.createElement("span"),
-mxUtils.write(t,mxResources.get("selectionOnly")),Z.appendChild(t));U.isEnabled()&&P.appendChild(Z);!g.isPagesEnabled()||g.lastPrintPagesRadioChecked?aa.checked=!0:!U.isSelectionEmpty()&&g.lastPrintSelectionOnlyChecked?ia.checked=!0:X.checked=!0;U.isSelectionEmpty()||mxEvent.addListener(t,"click",function(){ia.checked=!ia.checked});U=document.createElement("div");U.className="geDialogSection";P=document.createElement("div");P.className="geDialogCheckRow";var la=document.createElement("input");la.style.marginRight=
-"8px";la.setAttribute("type","radio");la.setAttribute("name","printSize");P.appendChild(la);t=document.createElement("span");mxUtils.write(t,mxResources.get("pageView"));P.appendChild(t);mxEvent.addListener(P,"click",function(){la.checked=!0});U.appendChild(P);P=document.createElement("div");P.className="geDialogCheckRow";var ka=document.createElement("input");ka.style.marginRight="8px";ka.setAttribute("type","radio");ka.setAttribute("name","printSize");P.appendChild(ka);t=document.createElement("span");
-mxUtils.write(t,mxResources.get("crop"));P.appendChild(t);mxEvent.addListener(P,"click",function(){ka.checked=!0});U.appendChild(P);P=document.createElement("div");P.className="geDialogCheckRow";P.style.alignItems="flex-start";var pa=document.createElement("input");pa.style.marginTop="4px";pa.setAttribute("type","radio");pa.setAttribute("name","printSize");P.appendChild(pa);Z=document.createElement("table");Z.style.display="inline-block";Z.style.borderSpacing="0";ba=document.createElement("tbody");
-var Ba=document.createElement("tr"),sa=Ba.cloneNode(!0),ja=document.createElement("td"),wa=ja.cloneNode(!0),va=ja.cloneNode(!0),ya=ja.cloneNode(!0),Aa=ja.cloneNode(!0),ma=ja.cloneNode(!0);ja.style.textAlign="right";ya.style.textAlign="right";mxUtils.write(ja,mxResources.get("fitTo"));mxEvent.addListener(P,"click",function(ta){mxEvent.getSource(ta)!=pa&&(pa.checked=!pa.checked)});var Ea=document.createElement("input");Ea.style.margin="0 2px";Ea.style.boxSizing="border-box";Ea.setAttribute("value",
-g.lastPrintSheetsAcross||"1");Ea.setAttribute("min","1");Ea.setAttribute("type","number");Ea.style.width="40px";wa.appendChild(Ea);t=document.createElement("span");mxUtils.write(t,mxResources.get("fitToSheetsAcross"));va.appendChild(t);mxUtils.write(ya,mxResources.get("fitToBy"));var xa=Ea.cloneNode(!0);xa.setAttribute("value",g.lastPrintSheetsDown||"1");Aa.appendChild(xa);mxEvent.addListener(Ea,"click",function(ta){pa.checked=!0;mxEvent.consume(ta)});mxEvent.addListener(xa,"click",function(ta){pa.checked=
-!0;mxEvent.consume(ta)});g.lastPrintCropRadioChecked?ka.checked=!0:g.lastPrintFitRadioChecked?pa.checked=!0:la.checked=!0;t=document.createElement("span");mxUtils.write(t,mxResources.get("fitToSheetsDown"));ma.appendChild(t);Ba.appendChild(ja);Ba.appendChild(wa);Ba.appendChild(va);sa.appendChild(ya);sa.appendChild(Aa);sa.appendChild(ma);ba.appendChild(Ba);ba.appendChild(sa);Z.appendChild(ba);P.appendChild(Z);U.appendChild(P);N.appendChild(U);U=document.createElement("div");U.className="geDialogSection";
-t=document.createElement("div");t.className="geDialogFormRow";P=document.createElement("label");P.className="geDialogFormLabel";mxUtils.write(P,mxResources.get("borderWidth"));t.appendChild(P);var fa=document.createElement("input");fa.setAttribute("type","number");fa.setAttribute("min","0");fa.style.width="40px";fa.value=null!=g.lastPrintBorder?g.lastPrintBorder:mxPrintPreview.prototype.pageMargin;t.appendChild(fa);P=document.createElement("label");P.style.marginLeft="12px";P.style.marginRight="4px";
-mxUtils.write(P,mxResources.get("zoom"));t.appendChild(P);var ua=document.createElement("input");ua.style.width="60px";ua.value=null!=g.lastPrintZoom?g.lastPrintZoom:"100%";t.appendChild(ua);U.appendChild(t);P=document.createElement("div");P.className="geDialogCheckRow";var Da=document.createElement("input");Da.setAttribute("type","checkbox");Da.style.marginRight="8px";Da.checked=null!=g.lastPrintGrid?g.lastPrintGrid:!1;P.appendChild(Da);t=document.createElement("span");mxUtils.write(t,mxResources.get("grid"));
-P.appendChild(t);mxEvent.addListener(t,"click",function(ta){Da.checked=!0;mxEvent.consume(ta)});U.appendChild(P);P=document.createElement("div");P.className="geDialogCheckRow";var ra=document.createElement("input");ra.setAttribute("type","checkbox");ra.style.marginRight="8px";ra.checked=null!=g.lastPrintShadow?g.lastPrintShadow:!1;P.appendChild(ra);t=document.createElement("span");mxUtils.write(t,mxResources.get("shadows"));P.appendChild(t);g.isOffline()&&!mxClient.IS_CHROMEAPP||t.appendChild(g.createHelpIcon("https://github.com/jgraph/drawio/discussions/5136"));
-mxEvent.addListener(t,"click",function(ta){"IMG"!=mxEvent.getSource(ta).nodeName&&(ra.checked=!0,mxEvent.consume(ta))});Editor.enableShadowOption||(P.style.display="none");U.appendChild(P);var ca=document.createElement("input");ca.setAttribute("type","checkbox");ca.style.marginRight="8px";ca.checked=null!=g.lastPrintTransparent?g.lastPrintTransparent:!1;null!=B&&(P=document.createElement("div"),P.className="geDialogCheckRow",P.appendChild(ca),t=document.createElement("span"),mxUtils.write(t,mxResources.get("transparentBackground")),
-P.appendChild(t),mxEvent.addListener(t,"click",function(ta){ca.checked=!0;mxEvent.consume(ta)}),U.appendChild(P));var da=document.createElement("input");da.setAttribute("type","checkbox");da.style.marginRight="8px";da.checked=null!=g.lastPrintInclude?g.lastPrintInclude:Editor.defaultIncludeDiagram;null==B||mxClient.IS_CHROMEAPP||"draw.io"!=g.getServiceName()||(P=document.createElement("div"),P.className="geDialogCheckRow",P.appendChild(da),t=document.createElement("span"),mxUtils.write(t,mxResources.get("includeCopyOfMyDiagram")),
-P.appendChild(t),mxEvent.addListener(t,"click",function(ta){da.checked=!0;mxEvent.consume(ta)}),U.appendChild(P));N.appendChild(U);t=document.createElement("div");t.style.marginTop="16px";t.style.textAlign="right";t.style.whiteSpace="nowrap";g.isOffline()&&!mxClient.IS_CHROMEAPP||null!=B||t.appendChild(g.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));U=mxUtils.button(mxResources.get("cancel"),function(){g.hideDialog()});U.className="geBtn";g.editor.cancelFirst&&t.appendChild(U);PrintDialog.previewEnabled&&
-null==B&&(P=mxUtils.button(mxResources.get("preview"),function(){try{g.hideDialog(),S(!1)}catch(ta){g.handleError(ta)}}),P.className="geBtn",t.appendChild(P));K=null!=K?K:null!=B?"export":PrintDialog.previewEnabled?"print":"ok";K=mxUtils.button(mxResources.get(K),function(){try{g.hideDialog(),S(!0)}catch(ta){g.handleError(ta)}});K.className="geBtn gePrimaryBtn";t.appendChild(K);g.editor.cancelFirst||t.appendChild(U);N.appendChild(t);if(g.editor.isChromelessView()){var oa=function(){Editor.isDarkMode()?
-(N.classList.add("geDarkMode"),N.style.colorScheme="dark"):(N.classList.remove("geDarkMode"),N.style.colorScheme="light")};g.addListener("darkModeChanged",oa);oa();var na=function(ta,qa){ta=qa.getProperty("dialog");N.parentNode==ta.container&&(g.editor.removeListener(na),g.removeListener(oa))};g.editor.addListener("hideDialog",na)}this.container=N};var H=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 g=this.image;null!=g&&null!=g.src&&Graph.isPageLink(g.src)&&(g={originalSrc:g.src});this.page.viewState.backgroundImage=g}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.adaptiveColors&&(this.page.viewState.adaptiveColors=this.adaptiveColors);null!=this.shadowVisible&&(this.page.viewState.shadowVisible=
-this.shadowVisible)}}else H.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.adaptiveColors&&this.adaptiveColors!=this.ui.editor.graph.adaptiveColors&&(g=this.ui.editor.graph.adaptiveColors,this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=g?g:"default"),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),
-this.shadowVisible=!this.shadowVisible)}})();(function(){EditorUi.VERSION="29.6.7";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;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)||/.*\.cdn\.prod\.atlassian-dev\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&
+Z=[];if(null!=X.open)if(N(),this.isCustomLink(X.open)){if(!this.customLinkClicked(X.open,C))return}else this.openLink(X.open);null==X.wait||Y||(this.pendingExecuteNextAction=mxUtils.bind(this,function(){this.pendingWaitThread=this.pendingExecuteNextAction=null;P()}),Q++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,""!=X.wait?parseInt(X.wait):1E3),N());null!=X.opacity&&null!=X.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(X.opacity,!0)),
+X.opacity.value);null!=X.fadeIn&&(Q++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(X.fadeIn,!0)),0,1,P,Y?0:X.fadeIn.delay));null!=X.fadeOut&&(Q++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(X.fadeOut,!0)),1,0,P,Y?0:X.fadeOut.delay));null!=X.wipeIn&&(Z=Z.concat(this.createWipeAnimations(this.getCellsForAction(X.wipeIn,!0),!0)));null!=X.wipeOut&&(Z=Z.concat(this.createWipeAnimations(this.getCellsForAction(X.wipeOut,!0),!1)));null!=X.popIn&&(Z=Z.concat(this.createPopAnimations(this.getCellsForAction(X.popIn,
+!0),!0)));null!=X.popOut&&(Z=Z.concat(this.createPopAnimations(this.getCellsForAction(X.popOut,!0),!1)));null!=X.toggle&&(U(),this.toggleCells(this.getCellsForAction(X.toggle,!0)));if(null!=X.show){U();var aa=this.getCellsForAction(X.show,!0);Graph.setOpacityForNodes(this.getNodesForCells(aa),1);this.setCellsVisible(aa,!0)}null!=X.hide&&(U(),aa=this.getCellsForAction(X.hide,!0),Graph.setOpacityForNodes(this.getNodesForCells(aa),0),this.setCellsVisible(aa,!1));null!=X.toggleStyle&&null!=X.toggleStyle.key&&
+(U(),this.toggleCellStyles(X.toggleStyle.key,null!=X.toggleStyle.defaultValue?X.toggleStyle.defaultValue:"0",this.getCellsForAction(X.toggleStyle,!0)));null!=X.style&&null!=X.style.key&&(U(),this.setCellStyles(X.style.key,X.style.value,this.getCellsForAction(X.style,!0)));aa=[];null!=X.select&&this.isEnabled()&&(aa=this.getCellsForAction(X.select),this.setSelectionCells(aa));null!=X.highlight&&(aa=this.getCellsForAction(X.highlight),this.highlightCells(aa,X.highlight.color,X.highlight.duration,X.highlight.opacity));
+null!=X.scroll&&(aa=this.getCellsForAction(X.scroll));null!=X.viewbox&&this.fitWindow(X.viewbox,X.viewbox.border);0<aa.length&&this.scrollCellToVisible(aa[0]);null!=C&&null!=X.explore&&Graph.exploreFromCell(this,C,X.explore);if(null!=X.tags){if(null!=X.tags.toggle){var ea=X.tags.toggle;0==ea.length&&(ea=this.getAllTags());for(aa=0;aa<ea.length;aa++)this.toggleHiddenTag(ea[aa])}ea=null;null!=X.tags.hidden&&(null==ea&&(ea=[]),ea=ea.concat(X.tags.hidden));if(null!=X.tags.visible){null==ea&&(ea=[]);var ha=
+this.getAllTags();for(aa=0;aa<ha.length;aa++)0>mxUtils.indexOf(X.tags.visible,ha[aa])&&0>mxUtils.indexOf(ea,ha[aa])&&ea.push(ha[aa])}null!=ea&&this.setHiddenTags(ea);this.refresh()}0<Z.length&&(Q++,this.executeAnimations(Z,P,Y?1:X.steps,Y?0:X.delay));0==Q?V():N()}else this.stoppingCustomActions=this.executingCustomActions=!1,N(),null!=t&&t()});V()}};Graph.prototype.doUpdateCustomLinksForCell=function(g,t){var C=this.getLinkForCell(t);null!=C&&"data:action/json,"==C.substring(0,17)&&this.setLinkForCell(t,
+this.updateCustomLink(g,C));if(this.isHtmlLabel(t)){var K=document.createElement("div");K.innerHTML=Graph.sanitizeHtml(this.getLabel(t));for(var Q=K.getElementsByTagName("a"),S=!1,U=0;U<Q.length;U++)C=Q[U].getAttribute("href"),null!=C&&"data:action/json,"==C.substring(0,17)&&(Q[U].setAttribute("href",this.updateCustomLink(g,C)),S=!0);S&&this.labelChanged(t,K.innerHTML)}};Graph.prototype.updateCustomLink=function(g,t){if("data:action/json,"==t.substring(0,17))try{var C=JSON.parse(t.substring(17));
+null!=C.actions&&(this.updateCustomLinkActions(g,C.actions),t="data:action/json,"+JSON.stringify(C))}catch(K){}return t};Graph.prototype.updateCustomLinkActions=function(g,t){for(var C=0;C<t.length;C++){var K=t[C],Q;for(Q in K)this.updateCustomLinkAction(g,K[Q],"cells"),this.updateCustomLinkAction(g,K[Q],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(g,t,C){if(null!=t&&null!=t[C]){for(var K=[],Q=0;Q<t[C].length;Q++)if("*"==t[C][Q])K.push(t[C][Q]);else{var S=g[t[C][Q]];null!=S?""!=
+S&&K.push(S):K.push(t[C][Q])}t[C]=K}};Graph.prototype.getCellsForAction=function(g,t){t=this.getCellsById(g.cells).concat(this.getCellsForTags(g.tags,null,t));if(null!=g.excludeCells){for(var C=[],K=0;K<t.length;K++)0>g.excludeCells.indexOf(t[K].id)&&C.push(t[K]);t=C}return t};Graph.prototype.getCellsById=function(g){var t=[];if(null!=g)for(var C=0;C<g.length;C++)if("*"==g[C]){var K=this.model.getRoot();t=t.concat(this.model.filterDescendants(function(S){return S!=K},K))}else{var Q=this.model.getCell(g[C]);
+null!=Q&&t.push(Q)}return t};var u=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(g){return u.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(g))};Graph.prototype.setHiddenTags=function(g){this.hiddenTags=g;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(g){var t=mxUtils.indexOf(this.hiddenTags,g);0>t?this.hiddenTags.push(g):0<=t&&this.hiddenTags.splice(t,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};
+Graph.prototype.isAllTagsHidden=function(g){if(null==g||0==g.length||0==this.hiddenTags.length)return!1;g=g.split(" ");if(g.length>this.hiddenTags.length)return!1;for(var t=0;t<g.length;t++)if(0>mxUtils.indexOf(this.hiddenTags,g[t]))return!1;return!0};Graph.prototype.getCellsForTags=function(g,t,C,K){var Q=[];if(null!=g){t=null!=t?t:this.model.getDescendants(this.model.getRoot());for(var S=0,U={},N=0;N<g.length;N++)0<g[N].length&&(U[g[N]]=!0,S++);for(N=0;N<t.length;N++)if(C&&this.model.getParent(t[N])==
+this.model.root||this.model.isVertex(t[N])||this.model.isEdge(t[N])){var P=this.getTagsForCell(t[N]),V=!1;if(0<P.length&&(P=P.split(" "),P.length>=g.length)){for(var Y=V=0;Y<P.length&&V<S;Y++)null!=U[P[Y]]&&V++;V=V==S}V&&(1!=K||this.isCellVisible(t[N]))&&Q.push(t[N])}}return Q};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(g){for(var t=null,C=[],K=0;K<g.length;K++){var Q=this.getTagsForCell(g[K]);
+C=[];if(0<Q.length){Q=Q.split(" ");for(var S={},U=0;U<Q.length;U++)if(null==t||null!=t[Q[U]])S[Q[U]]=!0,C.push(Q[U]);t=S}else return[]}return C};Graph.prototype.getTagsForCells=function(g){for(var t=[],C={},K=0;K<g.length;K++){var Q=this.getTagsForCell(g[K]);if(0<Q.length){Q=Q.split(" ");for(var S=0;S<Q.length;S++)null==C[Q[S]]&&(C[Q[S]]=!0,t.push(Q[S]))}}return t};Graph.prototype.getTagsForCell=function(g){return this.getAttributeForCell(g,"tags","")};Graph.prototype.addTagsForCells=function(g,t){if(0<
+g.length&&0<t.length){this.model.beginUpdate();try{for(var C=0;C<g.length;C++){for(var K=this.getTagsForCell(g[C]),Q=K.split(" "),S=!1,U=0;U<t.length;U++){var N=mxUtils.trim(t[U]);""!=N&&0>mxUtils.indexOf(Q,N)&&(K=0<K.length?K+" "+N:N,S=!0)}S&&this.setAttributeForCell(g[C],"tags",K)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(g,t){if(0<g.length&&0<t.length){this.model.beginUpdate();try{for(var C=0;C<g.length;C++){var K=this.getTagsForCell(g[C]);if(0<K.length){for(var Q=
+K.split(" "),S=!1,U=0;U<t.length;U++){var N=mxUtils.indexOf(Q,t[U]);0<=N&&(Q.splice(N,1),S=!0)}S&&this.setAttributeForCell(g[C],"tags",Q.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=function(g){this.model.beginUpdate();try{for(var t=0;t<g.length;t++)this.model.setVisible(g[t],!this.model.isVisible(g[t]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(g,t){this.model.beginUpdate();try{for(var C=0;C<g.length;C++)this.model.setVisible(g[C],t)}finally{this.model.endUpdate()}};
+Graph.prototype.highlightCells=function(g,t,C,K){for(var Q=0;Q<g.length;Q++)this.highlightCell(g[Q],t,C,K)};Graph.prototype.highlightCell=function(g,t,C,K,Q){t=null!=t?t:mxConstants.DEFAULT_VALID_COLOR;C=null!=C?C:1E3;g=this.view.getState(g);var S=null;null!=g&&(Q=null!=Q?Q:4,Q=Math.max(Q+1,mxUtils.getValue(g.style,mxConstants.STYLE_STROKEWIDTH,1)+Q),S=new mxCellHighlight(this,t,Q,!1),null!=K&&(S.opacity=K),S.highlight(g),window.setTimeout(function(){null!=S.shape&&(mxUtils.setPrefixedStyle(S.shape.node.style,
+"transition","all 1200ms ease-in-out"),S.shape.node.style.opacity=0);window.setTimeout(function(){S.destroy()},1200)},C));return S};Graph.prototype.addSvgShadow=function(g,t,C,K){K=null!=K?K:!0;var Q=Math.ceil(this.svgShadowSize*this.svgShadowBlur);null!=C&&C||(t=null!=t?t:g.getElementsByTagName("g")[0],null!=t&&(this.updateShadowFilter(t,!0),!isNaN(parseInt(g.getAttribute("width")))&&K&&(g.setAttribute("width",parseInt(g.getAttribute("width"))+Q),g.setAttribute("height",parseInt(g.getAttribute("height"))+
+Q),t=g.getAttribute("viewBox"),null!=t&&0<t.length&&(t=t.split(" "),3<t.length&&(w=parseFloat(t[2])+Q,h=parseFloat(t[3])+Q,g.setAttribute("viewBox",t[0]+" "+t[1]+" "+w+" "+h))))));return Q};Graph.prototype.updateShadowFilter=function(g,t){mxClient.IS_SF||(t?(t=mxUtils.getLightDarkColor(this.svgShadowColor,this.svgShadowOpacity),g.style.filter="drop-shadow("+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowBlur)/100+"px "+t.cssText+
+")"):g.style.filter="")};Graph.prototype.setShadowVisible=function(g,t){t=null!=t?t:!0;this.shadowVisible=g;this.updateShadowFilter(this.view.getDrawPane(),this.shadowVisible);t&&this.fireEvent(new mxEventObject("shadowVisibleChanged"))};Graph.prototype.checkDefaultParent=function(){null==this.defaultParent||this.model.contains(this.defaultParent)||(this.setDefaultParent(null),this.selectUnlockedLayer())};Graph.prototype.selectUnlockedLayer=function(){if(null==this.defaultParent){var g=this.model.getChildCount(this.model.root),
+t=0;do var C=this.model.getChildAt(this.model.root,t);while(t++<g&&"1"==mxUtils.getValue(this.getCellStyle(C),"locked","0"));null!=C&&this.setDefaultParent(C)}};mxStencilRegistry.libraries.mockup=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries.arrows2=[SHAPES_PATH+"/mxArrows.js"];mxStencilRegistry.libraries.atlassian=[STENCIL_PATH+"/atlassian.xml",SHAPES_PATH+"/mxAtlassian.js"];mxStencilRegistry.libraries.bpmn=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+
+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.bpmn2=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.c4=[SHAPES_PATH+"/mxC4.js"];mxStencilRegistry.libraries.cisco19=[SHAPES_PATH+"/mxCisco19.js",STENCIL_PATH+"/cisco19.xml"];mxStencilRegistry.libraries.cisco_safe=[SHAPES_PATH+"/mxCiscoSafe.js",STENCIL_PATH+"/cisco_safe/architecture.xml",STENCIL_PATH+"/cisco_safe/business_icons.xml",STENCIL_PATH+"/cisco_safe/capability.xml",STENCIL_PATH+
+"/cisco_safe/design.xml",STENCIL_PATH+"/cisco_safe/iot_things_icons.xml",STENCIL_PATH+"/cisco_safe/people_places_things_icons.xml",STENCIL_PATH+"/cisco_safe/security_icons.xml",STENCIL_PATH+"/cisco_safe/technology_icons.xml",STENCIL_PATH+"/cisco_safe/threat.xml"];mxStencilRegistry.libraries.dfd=[SHAPES_PATH+"/mxDFD.js"];mxStencilRegistry.libraries.er=[SHAPES_PATH+"/er/mxER.js"];mxStencilRegistry.libraries.kubernetes=[SHAPES_PATH+"/mxKubernetes.js",STENCIL_PATH+"/kubernetes.xml",STENCIL_PATH+"/kubernetes2.xml"];
+mxStencilRegistry.libraries.flowchart=[SHAPES_PATH+"/mxFlowchart.js",STENCIL_PATH+"/flowchart.xml"];mxStencilRegistry.libraries.ios=[SHAPES_PATH+"/mockup/mxMockupiOS.js"];mxStencilRegistry.libraries.rackGeneral=[SHAPES_PATH+"/rack/mxRack.js",STENCIL_PATH+"/rack/general.xml"];mxStencilRegistry.libraries.rackF5=[STENCIL_PATH+"/rack/f5.xml"];mxStencilRegistry.libraries.lean_mapping=[SHAPES_PATH+"/mxLeanMap.js",STENCIL_PATH+"/lean_mapping.xml"];mxStencilRegistry.libraries.basic=[SHAPES_PATH+"/mxBasic.js",
+STENCIL_PATH+"/basic.xml"];mxStencilRegistry.libraries.ios7icons=[STENCIL_PATH+"/ios7/icons.xml"];mxStencilRegistry.libraries.ios7ui=[SHAPES_PATH+"/ios7/mxIOS7Ui.js",STENCIL_PATH+"/ios7/misc.xml"];mxStencilRegistry.libraries.android=[SHAPES_PATH+"/mxAndroid.js",STENCIL_PATH+"/android/android.xml"];mxStencilRegistry.libraries["electrical/abstract"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/abstract.xml"];mxStencilRegistry.libraries["electrical/logic_gates"]=[SHAPES_PATH+"/mxElectrical.js",
+STENCIL_PATH+"/electrical/logic_gates.xml"];mxStencilRegistry.libraries["electrical/miscellaneous"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/miscellaneous.xml"];mxStencilRegistry.libraries["electrical/signal_sources"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/signal_sources.xml"];mxStencilRegistry.libraries["electrical/electro-mechanical"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/electro-mechanical.xml"];mxStencilRegistry.libraries["electrical/transmission"]=
+[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/transmission.xml"];mxStencilRegistry.libraries.infographic=[SHAPES_PATH+"/mxInfographic.js"];mxStencilRegistry.libraries["mockup/buttons"]=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries["mockup/containers"]=[SHAPES_PATH+"/mockup/mxMockupContainers.js"];mxStencilRegistry.libraries["mockup/forms"]=[SHAPES_PATH+"/mockup/mxMockupForms.js"];mxStencilRegistry.libraries["mockup/graphics"]=[SHAPES_PATH+"/mockup/mxMockupGraphics.js",
+STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[SHAPES_PATH+"/mockup/mxMockupMarkup.js"];mxStencilRegistry.libraries["mockup/misc"]=[SHAPES_PATH+"/mockup/mxMockupMisc.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/navigation"]=[SHAPES_PATH+"/mockup/mxMockupNavigation.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/text"]=[SHAPES_PATH+"/mockup/mxMockupText.js"];mxStencilRegistry.libraries.floorplan=[SHAPES_PATH+"/mxFloorplan.js",
+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.ibmcloud=[STENCIL_PATH+"/ibm_cloud.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.networks2=[SHAPES_PATH+"/mxNetworks2.js",
+STENCIL_PATH+"/networks2.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"];mxStencilRegistry.libraries.salesforce=[STENCIL_PATH+"/salesforce.xml"];
+mxStencilRegistry.libraries.sap=[SHAPES_PATH+"/mxSAP.js",STENCIL_PATH+"/sap.xml"];mxStencilRegistry.libraries.emoji=[SHAPES_PATH+"/emoji/mxEmoji.js"];mxMarker.getPackageForType=function(g){var t=null;null!=g&&0<g.length&&("ER"==g.substring(0,2)?t="mxgraph.er":"sysML"==g.substring(0,5)&&(t="mxgraph.sysml"));return t};var G=mxMarker.createMarker;mxMarker.createMarker=function(g,t,C,K,Q,S,U,N,P,V){if(null!=C&&null==mxMarker.markers[C]){var Y=this.getPackageForType(C);null!=Y&&mxStencilRegistry.getStencil(Y)}return G.apply(this,
+arguments)};var I=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(g,t,C,K,Q,S){"1"==mxUtils.getValue(t.style,"lineShape",null)&&g.setFillColor(mxUtils.getValue(t.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return I.apply(this,arguments)};PrintDialog.prototype.create=function(g,t,C,K){function Q(){ha.value=Math.max(1,Math.min(Y,Math.max(parseInt(ha.value),parseInt(ea.value))));ea.value=Math.max(1,Math.min(Y,Math.min(parseInt(ha.value),parseInt(ea.value))))}function S(ta){g.lastPrintPagesRadioChecked=
+aa.checked;g.lastPrintSelectionOnlyChecked=ia.checked;g.lastPrintCropRadioChecked=ka.checked;g.lastPrintFitRadioChecked=pa.checked;aa.checked&&ea.value<ha.value?(g.lastPrintPagesFromInput=ea.value,g.lastPrintPagesToInput=ha.value):(g.lastPrintPagesFromInput=null,g.lastPrintPagesToInput=null);ua.value=Math.max(1,Math.min(1600,parseInt(ua.value)))+"%";g.lastPrintZoom=ua.value;g.lastPrintBorder=fa.value;g.lastPrintGrid=Da.checked;g.lastPrintTransparent=ca.checked;g.lastPrintInclude=da.checked;g.lastPrintSheetsAcross=
+Ea.value;g.lastPrintSheetsDown=xa.value;var qa={};qa.border=parseInt(fa.value);qa.scale=parseInt(ua.value)/100;qa.grid=Da.checked;qa.shadows=ra.checked;qa.transparent=ca.checked;qa.includeCopy=da.checked;qa.sheetsAcross=parseInt(Ea.value);qa.sheetsDown=parseInt(xa.value);qa.pagesFrom=parseInt(ea.value);qa.pagesTo=parseInt(ha.value);qa.allPages=X.checked;qa.selection=ia.checked;qa.pageView=la.checked;qa.crop=ka.checked;qa.fit=pa.checked;return null!=C?C(!ta,qa):g.print(!ta,qa)}var U=g.editor.graph,
+N=document.createElement("div"),P=document.createElement("h3");P.style.width="100%";P.style.textAlign="center";P.style.marginTop="0px";P.style.marginBottom="10px";mxUtils.write(P,t||mxResources.get("print"));N.appendChild(P);var V=1,Y=1;P=document.createElement("div");P.className="geDialogSection";P.style.whiteSpace="nowrap";var X=document.createElement("input");X.style.marginRight="8px";X.setAttribute("type","radio");X.setAttribute("name","pages-printdialog");var Z=document.createElement("div");
+Z.className="geDialogCheckRow";Z.appendChild(X);t=document.createElement("span");mxUtils.write(t,mxResources.get("allPages"));mxEvent.addListener(t,"click",function(){X.checked=!0});Z.appendChild(t);P.appendChild(Z);var aa=document.createElement("input");aa.style.marginRight="8px";aa.setAttribute("type","radio");aa.setAttribute("name","pages-printdialog");Z=document.createElement("div");Z.className="geDialogCheckRow";Z.appendChild(aa);t=document.createElement("span");mxUtils.write(t,mxResources.get("pages")+
+":");Z.appendChild(t);mxEvent.addListener(t,"click",function(){aa.checked=!0});var ea=document.createElement("input");ea.style.margin="0 4px";ea.setAttribute("value","1");ea.setAttribute("type","number");ea.setAttribute("min","1");ea.style.width="40px";Z.appendChild(ea);t=document.createElement("span");mxUtils.write(t,mxResources.get("to"));Z.appendChild(t);var ha=ea.cloneNode(!0);Z.appendChild(ha);mxEvent.addListener(ea,"focus",function(){aa.checked=!0});mxEvent.addListener(ha,"focus",function(){aa.checked=
+!0});mxEvent.addListener(ea,"change",Q);mxEvent.addListener(ha,"change",Q);if(null!=g.pages&&(Y=g.pages.length,null!=g.currentPage))for(var ba=0;ba<Y;ba++)if(g.currentPage==g.pages[ba]){V=ba+1;break}null!=g.lastPrintPagesFromInput&&null!=g.lastPrintPagesToInput?(ea.value=Math.min(Y,Math.max(1,g.lastPrintPagesFromInput)),ha.value=Math.min(Y,Math.max(1,g.lastPrintPagesToInput))):(ea.value=V,ha.value=V);ea.setAttribute("max",Y);ha.setAttribute("max",Y);ba=mxUtils.button(mxResources.get("currentPage"),
+function(ta){ea.value=V;ha.value=V;aa.checked=!0});ba.setAttribute("title",mxResources.get("currentPage"));ba.style.marginLeft="4px";ba.style.maxWidth="100px";ba.style.overflow="hidden";ba.style.textOverflow="ellipsis";ba.style.whiteSpace="nowrap";Z.appendChild(ba);P.appendChild(Z);1<Y&&N.appendChild(P);Z=document.createElement("div");Z.className="geDialogCheckRow";var ia=document.createElement("input");ia.setAttribute("name","pages-printdialog");ia.setAttribute("type",1==Y?"checkbox":"radio");ia.style.marginRight=
+"8px";U.isSelectionEmpty()&&ia.setAttribute("disabled","disabled");U.isEnabled()&&(Z.appendChild(ia),t=document.createElement("span"),mxUtils.write(t,mxResources.get("selectionOnly")),Z.appendChild(t));U.isEnabled()&&(1<Y?P.appendChild(Z):(P=document.createElement("div"),P.className="geDialogSection",P.appendChild(Z),N.appendChild(P)));!g.isPagesEnabled()||g.lastPrintPagesRadioChecked?aa.checked=!0:!U.isSelectionEmpty()&&g.lastPrintSelectionOnlyChecked?ia.checked=!0:X.checked=!0;U.isSelectionEmpty()||
+mxEvent.addListener(t,"click",function(){ia.checked=!ia.checked});U=document.createElement("div");U.className="geDialogSection";P=document.createElement("div");P.className="geDialogCheckRow";var la=document.createElement("input");la.style.marginRight="8px";la.setAttribute("type","radio");la.setAttribute("name","printSize");P.appendChild(la);t=document.createElement("span");mxUtils.write(t,mxResources.get("pageView"));P.appendChild(t);mxEvent.addListener(P,"click",function(){la.checked=!0});U.appendChild(P);
+P=document.createElement("div");P.className="geDialogCheckRow";var ka=document.createElement("input");ka.style.marginRight="8px";ka.setAttribute("type","radio");ka.setAttribute("name","printSize");P.appendChild(ka);t=document.createElement("span");mxUtils.write(t,mxResources.get("crop"));P.appendChild(t);mxEvent.addListener(P,"click",function(){ka.checked=!0});U.appendChild(P);P=document.createElement("div");P.className="geDialogCheckRow";P.style.alignItems="flex-start";var pa=document.createElement("input");
+pa.style.marginTop="4px";pa.setAttribute("type","radio");pa.setAttribute("name","printSize");P.appendChild(pa);Z=document.createElement("table");Z.style.display="inline-block";Z.style.borderSpacing="0";ba=document.createElement("tbody");var Ba=document.createElement("tr"),sa=Ba.cloneNode(!0),ja=document.createElement("td"),wa=ja.cloneNode(!0),va=ja.cloneNode(!0),ya=ja.cloneNode(!0),Aa=ja.cloneNode(!0),ma=ja.cloneNode(!0);ja.style.textAlign="right";ya.style.textAlign="right";mxUtils.write(ja,mxResources.get("fitTo"));
+mxEvent.addListener(P,"click",function(ta){mxEvent.getSource(ta)!=pa&&(pa.checked=!pa.checked)});var Ea=document.createElement("input");Ea.style.margin="0 2px";Ea.style.boxSizing="border-box";Ea.setAttribute("value",g.lastPrintSheetsAcross||"1");Ea.setAttribute("min","1");Ea.setAttribute("type","number");Ea.style.width="40px";wa.appendChild(Ea);t=document.createElement("span");mxUtils.write(t,mxResources.get("fitToSheetsAcross"));va.appendChild(t);mxUtils.write(ya,mxResources.get("fitToBy"));var xa=
+Ea.cloneNode(!0);xa.setAttribute("value",g.lastPrintSheetsDown||"1");Aa.appendChild(xa);mxEvent.addListener(Ea,"click",function(ta){pa.checked=!0;mxEvent.consume(ta)});mxEvent.addListener(xa,"click",function(ta){pa.checked=!0;mxEvent.consume(ta)});g.lastPrintCropRadioChecked?ka.checked=!0:g.lastPrintFitRadioChecked?pa.checked=!0:la.checked=!0;t=document.createElement("span");mxUtils.write(t,mxResources.get("fitToSheetsDown"));ma.appendChild(t);Ba.appendChild(ja);Ba.appendChild(wa);Ba.appendChild(va);
+sa.appendChild(ya);sa.appendChild(Aa);sa.appendChild(ma);ba.appendChild(Ba);ba.appendChild(sa);Z.appendChild(ba);P.appendChild(Z);U.appendChild(P);N.appendChild(U);U=document.createElement("div");U.className="geDialogSection";t=document.createElement("div");t.className="geDialogFormRow";P=document.createElement("label");P.className="geDialogFormLabel";mxUtils.write(P,mxResources.get("borderWidth"));t.appendChild(P);var fa=document.createElement("input");fa.setAttribute("type","number");fa.setAttribute("min",
+"0");fa.style.width="40px";fa.value=null!=g.lastPrintBorder?g.lastPrintBorder:mxPrintPreview.prototype.pageMargin;t.appendChild(fa);P=document.createElement("label");P.style.marginLeft="12px";P.style.marginRight="4px";mxUtils.write(P,mxResources.get("zoom"));t.appendChild(P);var ua=document.createElement("input");ua.style.width="60px";ua.value=null!=g.lastPrintZoom?g.lastPrintZoom:"100%";t.appendChild(ua);U.appendChild(t);P=document.createElement("div");P.className="geDialogCheckRow";var Da=document.createElement("input");
+Da.setAttribute("type","checkbox");Da.style.marginRight="8px";Da.checked=null!=g.lastPrintGrid?g.lastPrintGrid:!1;P.appendChild(Da);t=document.createElement("span");mxUtils.write(t,mxResources.get("grid"));P.appendChild(t);mxEvent.addListener(t,"click",function(ta){Da.checked=!0;mxEvent.consume(ta)});U.appendChild(P);P=document.createElement("div");P.className="geDialogCheckRow";var ra=document.createElement("input");ra.setAttribute("type","checkbox");ra.style.marginRight="8px";ra.checked=null!=g.lastPrintShadow?
+g.lastPrintShadow:!1;P.appendChild(ra);t=document.createElement("span");mxUtils.write(t,mxResources.get("shadows"));P.appendChild(t);g.isOffline()&&!mxClient.IS_CHROMEAPP||t.appendChild(g.createHelpIcon("https://github.com/jgraph/drawio/discussions/5136"));mxEvent.addListener(t,"click",function(ta){"IMG"!=mxEvent.getSource(ta).nodeName&&(ra.checked=!0,mxEvent.consume(ta))});Editor.enableShadowOption||(P.style.display="none");U.appendChild(P);var ca=document.createElement("input");ca.setAttribute("type",
+"checkbox");ca.style.marginRight="8px";ca.checked=null!=g.lastPrintTransparent?g.lastPrintTransparent:!1;null!=C&&(P=document.createElement("div"),P.className="geDialogCheckRow",P.appendChild(ca),t=document.createElement("span"),mxUtils.write(t,mxResources.get("transparentBackground")),P.appendChild(t),mxEvent.addListener(t,"click",function(ta){ca.checked=!0;mxEvent.consume(ta)}),U.appendChild(P));var da=document.createElement("input");da.setAttribute("type","checkbox");da.style.marginRight="8px";
+da.checked=null!=g.lastPrintInclude?g.lastPrintInclude:Editor.defaultIncludeDiagram;null==C||mxClient.IS_CHROMEAPP||"draw.io"!=g.getServiceName()||(P=document.createElement("div"),P.className="geDialogCheckRow",P.appendChild(da),t=document.createElement("span"),mxUtils.write(t,mxResources.get("includeCopyOfMyDiagram")),P.appendChild(t),mxEvent.addListener(t,"click",function(ta){da.checked=!0;mxEvent.consume(ta)}),U.appendChild(P));N.appendChild(U);t=document.createElement("div");t.style.marginTop=
+"16px";t.style.textAlign="right";t.style.whiteSpace="nowrap";g.isOffline()&&!mxClient.IS_CHROMEAPP||null!=C||t.appendChild(g.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));U=mxUtils.button(mxResources.get("cancel"),function(){g.hideDialog()});U.className="geBtn";g.editor.cancelFirst&&t.appendChild(U);PrintDialog.previewEnabled&&null==C&&(P=mxUtils.button(mxResources.get("preview"),function(){try{g.hideDialog(),S(!1)}catch(ta){g.handleError(ta)}}),P.className="geBtn",t.appendChild(P));
+K=null!=K?K:null!=C?"export":PrintDialog.previewEnabled?"print":"ok";K=mxUtils.button(mxResources.get(K),function(){try{g.hideDialog(),S(!0)}catch(ta){g.handleError(ta)}});K.className="geBtn gePrimaryBtn";t.appendChild(K);g.editor.cancelFirst||t.appendChild(U);N.appendChild(t);if(g.editor.isChromelessView()){var oa=function(){Editor.isDarkMode()?(N.classList.add("geDarkMode"),N.style.colorScheme="dark"):(N.classList.remove("geDarkMode"),N.style.colorScheme="light")};g.addListener("darkModeChanged",
+oa);oa();var na=function(ta,qa){ta=qa.getProperty("dialog");N.parentNode==ta.container&&(g.editor.removeListener(na),g.removeListener(oa))};g.editor.addListener("hideDialog",na)}this.container=N};var H=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 g=this.image;null!=
+g&&null!=g.src&&Graph.isPageLink(g.src)&&(g={originalSrc:g.src});this.page.viewState.backgroundImage=g}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.adaptiveColors&&(this.page.viewState.adaptiveColors=this.adaptiveColors);null!=this.shadowVisible&&(this.page.viewState.shadowVisible=this.shadowVisible)}}else H.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&
+(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.adaptiveColors&&this.adaptiveColors!=this.ui.editor.graph.adaptiveColors&&(g=this.ui.editor.graph.adaptiveColors,this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=g?g:"default"),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)}})();(function(){EditorUi.VERSION="29.6.10";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;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)||/.*\.cdn\.prod\.atlassian-dev\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&
"support.draw.io"!=window.location.hostname&&"test.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=window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.enablePlantUml=EditorUi.enableLogging||
"1"==urlParams.dev;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.drawio.com/doc/faq/scratchpad";EditorUi.enableHtmlEditOption=!0;EditorUi.mermaidDiagramTypes=
"flowchart classDiagram sequenceDiagram stateDiagram mindmap graph erDiagram requirementDiagram journey gantt pie gitGraph".split(" ");EditorUi.defaultMermaidConfig={theme:"neutral",arrowMarkerAbsolute:!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:{useWidth:1E3,useMaxWidth:!0,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(c,d,k,m,q,v,A){if(null!=c){q=null!=q?q:Error(c);q.stack=null!=q.stack?q.stack:"";v=null!=v?v:0>c.indexOf("NetworkError")&&0>c.indexOf("SecurityError")&&0>c.indexOf("NS_ERROR_FAILURE")&&0>c.indexOf("out of memory")?"SEVERE":"CONFIG";try{EditorUi.enableLogging&&"1"!=urlParams.dev&&c!=EditorUi.lastErrorMessage&&0>c.indexOf("extension:")&&
0>c.indexOf("ResizeObserver loop completed with undelivered notifications")&&0>q.stack.indexOf("extension:")&&0>q.stack.indexOf("<anonymous>:")&&0>q.stack.indexOf("/math4/es5/")&&(EditorUi.lastErrorMessage=c,(new Image).src=(null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"")+"/log?severity="+v+"&v="+encodeURIComponent(EditorUi.VERSION)+"&msg=clientError:"+encodeURIComponent(c)+":url:"+encodeURIComponent(window.location.href)+":lnum:"+encodeURIComponent(k)+(null!=m?":colno:"+encodeURIComponent(m):
-"")+(""!=q.stack?"&stack="+encodeURIComponent(q.stack):""))}catch(C){}try{A||null==window.console||console.error(v,c,d,k,m,q)}catch(C){}}};EditorUi.logEvent=function(c){if("1"==urlParams.dev)EditorUi.debug("logEvent",c);else if(EditorUi.enableLogging)try{var d=null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"";(new Image).src=d+"/images/1x1.png?v="+encodeURIComponent(EditorUi.VERSION)+(null!=c?"&data="+encodeURIComponent(JSON.stringify(c)):"")}catch(k){}};EditorUi.sendReport=function(c,d){if("1"==
+"")+(""!=q.stack?"&stack="+encodeURIComponent(q.stack):""))}catch(B){}try{A||null==window.console||console.error(v,c,d,k,m,q)}catch(B){}}};EditorUi.logEvent=function(c){if("1"==urlParams.dev)EditorUi.debug("logEvent",c);else if(EditorUi.enableLogging)try{var d=null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"";(new Image).src=d+"/images/1x1.png?v="+encodeURIComponent(EditorUi.VERSION)+(null!=c?"&data="+encodeURIComponent(JSON.stringify(c)):"")}catch(k){}};EditorUi.sendReport=function(c,d){if("1"==
urlParams.dev)EditorUi.debug("sendReport",c);else if(EditorUi.enableLogging)try{d=null!=d?d:5E4,c.length>d&&(c=c.substring(0,d)+"\n...[SHORTENED]"),mxUtils.post("/email","version="+encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&data="+encodeURIComponent(c))}catch(k){}};EditorUi.debug=function(){try{if(null!=window.console&&"1"==urlParams.test){for(var c=[(new Date).toISOString()],d=0;d<arguments.length;d++)c.push(arguments[d]);mxClient.IS_IOS?(mxLog.show(),
mxLog.debug(c.join(" "))):console.log.apply(console,c)}}catch(k){}};EditorUi.removeChildNodes=function(c){for(;null!=c.firstChild;)c.removeChild(c.firstChild)};EditorUi.embedSvgImages=function(c){c=c.getElementsByTagName("image");for(var d=[],k=0;k<c.length;k++)d.push(c[k]);for(k=0;k<d.length;k++)EditorUi.replaceSvgImage(d[k])};EditorUi.replaceSvgImage=function(c){try{var d=null;d=null==c.getAttributeNS?c.getAttribute("xlink:href"):c.getAttributeNS(mxConstants.NS_XLINK,"href");var k=EditorUi.getSvgSubtree(d);
if(null!=k&&"svg"==k.nodeName){var m=k.getAttribute("width"),q=k.getAttribute("height");k.setAttribute("x",c.getAttribute("x"));k.setAttribute("y",c.getAttribute("y"));k.setAttribute("width",c.getAttribute("width"));k.setAttribute("height",c.getAttribute("height"));k.style.fontFamily="initial";0<m&&0<q&&null==k.getAttribute("viewBox")&&k.setAttribute("viewBox","0 0 "+m+" "+q);var v=mxUtils.createElementNs(k.ownerDocument,mxConstants.NS_SVG,"g");v.appendChild(k);c.hasAttribute("transform")&&v.setAttribute("transform",
-c.getAttribute("transform"));c.parentNode.replaceChild(v,c)}}catch(A){}};EditorUi.getSvgSubtree=function(c){var d=Graph.getSvgFromDataUri(c);c=null;if(null!=d){c=Graph.sanitizeNode(mxUtils.parseXml(d).documentElement);d=c.getElementsByTagName("style");if(0<d.length){var k="svg-image-"+Editor.guid();c.setAttribute("id",k);for(var m=document.implementation.createHTMLDocument(""),q=document.createElement("style"),v=0;v<d.length;v++){q.textContent=d[v].textContent;m.body.appendChild(q);for(var A="",C=
-0;C<q.sheet.cssRules.length;C++){var D=q.sheet.cssRules[C];if(null!=D.selectorText){for(var J=D.selectorText.split(","),F=0;F<J.length;F++)J[F]="#"+k+" "+J[F];D.selectorText=J.join(",")}A+=D.cssText+"\n"}d[v].textContent=A}}null!=c.style&&"light dark"==c.style.getPropertyValue("color-scheme")&&c.style.removeProperty("color-scheme");d=c.getElementsByTagName("*");for(k=0;k<d.length;k++)d[k].removeAttribute("data-cell-id")}return c};EditorUi.prototype.emptyDiagramXml='<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>';
+c.getAttribute("transform"));c.parentNode.replaceChild(v,c)}}catch(A){}};EditorUi.getSvgSubtree=function(c){var d=Graph.getSvgFromDataUri(c);c=null;if(null!=d){c=Graph.sanitizeNode(mxUtils.parseXml(d).documentElement);d=c.getElementsByTagName("style");if(0<d.length){var k="svg-image-"+Editor.guid();c.setAttribute("id",k);for(var m=document.implementation.createHTMLDocument(""),q=document.createElement("style"),v=0;v<d.length;v++){q.textContent=d[v].textContent;m.body.appendChild(q);for(var A="",B=
+0;B<q.sheet.cssRules.length;B++){var D=q.sheet.cssRules[B];if(null!=D.selectorText){for(var J=D.selectorText.split(","),F=0;F<J.length;F++)J[F]="#"+k+" "+J[F];D.selectorText=J.join(",")}A+=D.cssText+"\n"}d[v].textContent=A}}null!=c.style&&"light dark"==c.style.getPropertyValue("color-scheme")&&c.style.removeProperty("color-scheme");d=c.getElementsByTagName("*");for(k=0;k<d.length;k++)d[k].removeAttribute("data-cell-id")}return c};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.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=1200;EditorUi.prototype.maxTextWidth=520;EditorUi.prototype.resampleThreshold=1E5;EditorUi.prototype.maxImageBytes=2E6;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.sidebarEnabled="0"!=urlParams.sidebar;EditorUi.prototype.insertTemplateEnabled=
!0;EditorUi.prototype.closableScratchpad=!0;EditorUi.prototype.embedMessageSource=null;EditorUi.prototype.defaultCompact=!1;EditorUi.prototype.noAutoFocus=!1;EditorUi.prototype.embedExportBorder=8;EditorUi.prototype.embedExportTheme="auto";EditorUi.prototype.embedExportBackground=null;EditorUi.prototype.shareCursorPosition=!0;EditorUi.prototype.showRemoteCursors=!0;EditorUi.prototype.createButtonContainer=function(){var c=document.createElement("div");c.className="geButtonContainer";return c};EditorUi.prototype.openLink=
@@ -13237,10 +13243,10 @@ function(c,d,k){return this.editor.graph.openLink(c,d,k)};EditorUi.prototype.sho
c;this.fireEvent(new mxEventObject("shareCursorPositionChanged"))};EditorUi.prototype.isShareCursorPosition=function(){return this.shareCursorPosition};EditorUi.prototype.setShowRemoteCursors=function(c){this.showRemoteCursors=c;this.fireEvent(new mxEventObject("showRemoteCursorsChanged"))};EditorUi.prototype.isShowRemoteCursors=function(){return this.showRemoteCursors};EditorUi.prototype.setMathEnabled=function(c){var d=this.editor.graph;d.mathEnabled=c;null!=d.view.backgroundImage&&(d.view.backgroundImage.destroy(),
d.view.backgroundImage=null);this.editor.updateGraphComponents();d.refresh();d.defaultMathEnabled=c;this.fireEvent(new mxEventObject("mathEnabledChanged"))};EditorUi.prototype.isMathEnabled=function(c){return this.editor.graph.mathEnabled};EditorUi.prototype.setAdaptiveColors=function(c){this.editor.graph.setAdaptiveColors(c);this.editor.graph.view.clear();this.fireEvent(new mxEventObject("adaptiveColorsChanged"))};EditorUi.prototype.isStandaloneApp=function(){return mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||
this.isOfflineApp()};EditorUi.prototype.isOfflineApp=function(){return"1"==urlParams.offline};EditorUi.prototype.isOffline=function(c){return this.isOfflineApp()||!navigator.onLine||!c&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(c,d,k){var m=null==c||null==d;k=null!=k?k:24;var q=new Spinner({lines:12,length:k,width:Math.round(k/
-3),radius:Math.round(k/2),rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),v=this.timeout,A=q.spin,C=null,D=null,J=mxUtils.bind(this,function(W){null!=W&&W()}),F=this;q.spin=function(W,p,u,G){G=null!=G?G:v;var I=!1;if(!this.active){var H=Date.now();null!=u&&(C=window.setTimeout(function(){q.stop();C=null;u({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:D})},G));m&&(d=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||
+3),radius:Math.round(k/2),rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),v=this.timeout,A=q.spin,B=null,D=null,J=mxUtils.bind(this,function(W){null!=W&&W()}),F=this;q.spin=function(W,p,u,G){G=null!=G?G:v;var I=!1;if(!this.active){var H=Date.now();null!=u&&(B=window.setTimeout(function(){q.stop();B=null;u({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:D})},G));m&&(d=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||
0)/2,c=document.body.clientWidth/2-2);W==document.body&&"1"==urlParams.embedInline&&(W=F.diagramContainer,c=W.scrollLeft+W.clientWidth/2,d=W.scrollTop+W.clientHeight/2);A.call(this,W);"1"==urlParams.embedInline&&null!=q.el&&(q.el.style.marginTop=W.scrollTop+"px",q.el.style.marginLeft=W.scrollLeft+"px");this.active=!0;null!=p&&(I=document.createElement("div"),I.className="geSpinnerStatus",I.setAttribute("title",p),W==document.body?(I.style.left=Math.max(0,c)+"px",I.style.top=Math.max(0,d+66)+"px"):
-(I.style.left="50%",I.style.top="50%",I.style.marginTop="70px"),"..."!=p.substring(p.length-3,p.length)&&"!"!=p.charAt(p.length-1)&&(p+="..."),I.innerText=p,W.appendChild(I),q.status=I);this.pause=mxUtils.bind(this,function(){var g=J;this.active&&(G=Math.max(0,G-(Date.now()-H)),g=mxUtils.bind(this,function(t){this.spin(W,p,u,G);if(null!=t)try{t(),D=mxUtils.bind(this,function(){this.spin(W,p,u,G);try{t()}catch(B){null!=u&&u(B)}})}catch(B){null!=u&&u(B)}}));this.stop();return g});I=!0}return I};var T=
-q.stop;q.stop=function(){T.call(this);this.active&&(this.active=!1,null!=C&&(window.clearTimeout(C),C=null),null!=q.status&&null!=q.status.parentNode&&q.status.parentNode.removeChild(q.status),q.status=null)};q.pause=function(){return J};return q};EditorUi.prototype.isCompatibleString=function(c){try{if(c=mxUtils.trim(c),"<"==c.charAt(0)){var d=mxUtils.parseXml(c),k=this.editor.extractGraphModel(d.documentElement,!0);return null!=k&&0==k.getElementsByTagName("parsererror").length}}catch(m){}return!1};
+(I.style.left="50%",I.style.top="50%",I.style.marginTop="70px"),"..."!=p.substring(p.length-3,p.length)&&"!"!=p.charAt(p.length-1)&&(p+="..."),I.innerText=p,W.appendChild(I),q.status=I);this.pause=mxUtils.bind(this,function(){var g=J;this.active&&(G=Math.max(0,G-(Date.now()-H)),g=mxUtils.bind(this,function(t){this.spin(W,p,u,G);if(null!=t)try{t(),D=mxUtils.bind(this,function(){this.spin(W,p,u,G);try{t()}catch(C){null!=u&&u(C)}})}catch(C){null!=u&&u(C)}}));this.stop();return g});I=!0}return I};var T=
+q.stop;q.stop=function(){T.call(this);this.active&&(this.active=!1,null!=B&&(window.clearTimeout(B),B=null),null!=q.status&&null!=q.status.parentNode&&q.status.parentNode.removeChild(q.status),q.status=null)};q.pause=function(){return J};return q};EditorUi.prototype.isCompatibleString=function(c){try{if(c=mxUtils.trim(c),"<"==c.charAt(0)){var d=mxUtils.parseXml(c),k=this.editor.extractGraphModel(d.documentElement,!0);return null!=k&&0==k.getElementsByTagName("parsererror").length}}catch(m){}return!1};
EditorUi.isVisioFilename=function(c){return/(\.v(dx|sdx?))($|\?)/i.test(c)||/(\.vs(x|sx?))($|\?)/i.test(c)};EditorUi.prototype.isVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&4==c.charCodeAt(3)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&6==c.charCodeAt(3))};
EditorUi.prototype.isRemoteVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||60==c.charCodeAt(0)&&63==c.charCodeAt(1)&&120==c.charCodeAt(2)&&109==c.charCodeAt(3)&&108==c.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(c){var d=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var k=
d.getFunction,m=this.editor.graph,q=this;d.getFunction=function(v){if(m.isSelectionEmpty()&&null!=q.pages&&0<q.pages.length){var A=q.getSelectedPageIndex();if(mxEvent.isShiftDown(v)){if(37==v.keyCode)return function(){0<A&&q.movePage(A,A-1)};if(38==v.keyCode)return function(){0<A&&q.movePage(A,0)};if(39==v.keyCode)return function(){A<q.pages.length-1&&q.movePage(A,A+1)};if(40==v.keyCode)return function(){A<q.pages.length-1&&q.movePage(A,q.pages.length-1)}}else if(mxEvent.isControlDown(v)||mxClient.IS_MAC&&
@@ -13249,61 +13255,61 @@ arguments):null}}return d};var l=EditorUi.prototype.extractGraphModelFromHtml;Ed
d=null!=v?mxUtils.getXml(v):""}}catch(A){}return d};EditorUi.prototype.validateFileData=function(c){if(null!=c&&0<c.length){var d=c.indexOf('<meta charset="utf-8">');0<=d&&(c=c.slice(0,d)+'<meta charset="utf-8"/>'+c.slice(d+23-1,c.length));c=Graph.zapGremlins(c)}return c};EditorUi.prototype.replaceFileData=function(c,d){EditorUi.debug("EditorUi.replaceFileData",[this],"data",[c],"patches",d);c=this.validateFileData(c);c=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var k=null!=c?this.editor.extractGraphModel(c,
!0):null;null!=k&&(c=k);if(null!=c){k=this.editor.graph;k.model.beginUpdate();try{var m=null!=this.pages?this.pages.slice():null,q=c.getElementsByTagName("diagram");if(1<q.length||1==q.length&&q[0].hasAttribute("name")){this.fileNode=c;k.defaultExportLinkTarget=c.getAttribute("linkTarget");this.pages=null!=this.pages?this.pages:[];for(var v=q.length-1;0<=v;v--){var A=this.updatePageRoot(new DiagramPage(q[v]));null==A.getName()&&A.setName(mxResources.get("pageWithNumber",[v+1]));k.model.execute(new ChangePage(this,
A,0==v?A:null,0))}}else null==this.fileNode&&(this.fileNode=c.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(c.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),k.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0))),this.editor.setGraphXml(c),null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,k.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0)));if(null!=
-m)for(v=0;v<m.length;v++)k.model.execute(new ChangePage(this,m[v],null));var C=this.getCurrentFile();null!=C&&C.fileReplaced(d)}finally{k.model.endUpdate()}}};EditorUi.prototype.createFileData=function(c,d,k,m,q,v,A,C,D,J,F,T,W){d=null!=d?d:this.editor.graph;q=null!=q?q:!1;D=null!=D?D:!0;J=null!=J?J:this.defaultCompact;F=null!=F?F:!Editor.defaultCompressed;var p=null;if(null==k||k.getMode()==App.MODE_DEVICE||k.getMode()==App.MODE_BROWSER)var u="_blank";else p=u=m;if(null==c)return"";var G=c;if("mxfile"!=
+m)for(v=0;v<m.length;v++)k.model.execute(new ChangePage(this,m[v],null));var B=this.getCurrentFile();null!=B&&B.fileReplaced(d)}finally{k.model.endUpdate()}}};EditorUi.prototype.createFileData=function(c,d,k,m,q,v,A,B,D,J,F,T,W){d=null!=d?d:this.editor.graph;q=null!=q?q:!1;D=null!=D?D:!0;J=null!=J?J:this.defaultCompact;F=null!=F?F:!Editor.defaultCompressed;var p=null;if(null==k||k.getMode()==App.MODE_DEVICE||k.getMode()==App.MODE_BROWSER)var u="_blank";else p=u=m;if(null==c)return"";var G=c;if("mxfile"!=
G.nodeName.toLowerCase()){if(F){var I=c.ownerDocument.createElement("diagram");I.setAttribute("name",mxResources.get("pageWithNumber",[1]));I.setAttribute("id",Editor.guid());I.appendChild(c)}else{I=Graph.zapGremlins(mxUtils.getXml(c));G=Graph.compress(I);if(Graph.decompress(G)!=I)return I;I=c.ownerDocument.createElement("diagram");I.setAttribute("name",mxResources.get("pageWithNumber",[1]));I.setAttribute("id",Editor.guid());mxUtils.setTextContent(I,G)}G=c.ownerDocument.createElement("mxfile");G.appendChild(I)}J?
(G=G.cloneNode(!0),G.removeAttribute("modified"),G.removeAttribute("host"),G.removeAttribute("agent"),G.removeAttribute("etag"),G.removeAttribute("userAgent"),G.removeAttribute("version"),G.removeAttribute("editor"),G.removeAttribute("type")):(G.removeAttribute("userAgent"),G.removeAttribute("modified"),G.removeAttribute("version"),G.removeAttribute("editor"),G.removeAttribute("pages"),G.removeAttribute("type"),G.removeAttribute("etag"),mxClient.IS_CHROMEAPP?G.setAttribute("host","Chrome"):EditorUi.isElectronApp?
G.setAttribute("host","Electron"):G.setAttribute("host",window.location.hostname),1<G.getElementsByTagName("diagram").length&&null!=this.pages&&G.setAttribute("pages",this.pages.length));null!=T&&(G=G.cloneNode(!0),G.setAttribute("scale",T));null!=W&&(G=G.cloneNode(!0),G.setAttribute("border",W));c=F?mxUtils.getPrettyXml(G):mxUtils.getXml(G);if(!v&&!q&&(A||null!=k&&/(\.html)$/i.test(k.getTitle())))c=this.getHtml2(mxUtils.getXml(G),d,null!=k?k.getTitle():null,u,p);else if(v||!q&&null!=k&&/(\.svg)$/i.test(k.getTitle()))null==
-k||k.getMode()!=App.MODE_DEVICE&&k.getMode()!=App.MODE_BROWSER||(m=null),k=this.getSvgFileProperties(G),c=this.getEmbeddedSvg(c,d,m,null,C,D,p,null,null,k.scale,k.border,null,Editor.svgFileTheme);return c};EditorUi.prototype.getXmlFileData=function(c,d,k,m){c=null!=c?c:!0;d=null!=d?d:!1;k=null!=k?k:!Editor.defaultCompressed;var q=this.editor.getGraphXml(c,m);if(c&&null!=this.fileNode&&null!=this.currentPage)if(c=function(D){var J=D.getElementsByTagName("mxGraphModel"),F=0<J.length?J[0]:null;J=D;null==
-F&&k?(F=mxUtils.getNodeValue(D),0<F.length&&(F=Graph.decompress(F),null!=F&&0<F.length&&(J=D.cloneNode(!1),J.appendChild(mxUtils.parseXml(F).documentElement)))):null==F||k?J=D.cloneNode(!0):(J=D.cloneNode(!1),mxUtils.setTextContent(J,Graph.compressNode(F)));q.appendChild(J)},EditorUi.removeChildNodes(this.currentPage.node),this.currentPage.node.appendChild(q),q=this.fileNode.cloneNode(!1),d)c(this.currentPage.node);else for(d=0;d<this.pages.length;d++){var v=this.pages[d],A=v.node;if(v!=this.currentPage)if(v.needsUpdate){var C=
-new mxCodec(mxUtils.createXmlDocument());C=C.encode(new mxGraphModel(v.root));this.editor.graph.saveViewState(v.viewState,C,null,m);EditorUi.removeChildNodes(A);A.appendChild(C);delete v.needsUpdate}else m&&(this.updatePageRoot(v),null!=v.viewState.backgroundImage&&null!=v.viewState.backgroundImage.originalSrc&&(C=new mxCodec(mxUtils.createXmlDocument()),C=C.encode(new mxGraphModel(v.root)),this.editor.graph.saveViewState(v.viewState,C,null,m,v),A=A.cloneNode(!1),A.appendChild(C)));c(A)}return q};
+k||k.getMode()!=App.MODE_DEVICE&&k.getMode()!=App.MODE_BROWSER||(m=null),k=this.getSvgFileProperties(G),c=this.getEmbeddedSvg(c,d,m,null,B,D,p,null,null,k.scale,k.border,null,Editor.svgFileTheme);return c};EditorUi.prototype.getXmlFileData=function(c,d,k,m){c=null!=c?c:!0;d=null!=d?d:!1;k=null!=k?k:!Editor.defaultCompressed;var q=this.editor.getGraphXml(c,m);if(c&&null!=this.fileNode&&null!=this.currentPage)if(c=function(D){var J=D.getElementsByTagName("mxGraphModel"),F=0<J.length?J[0]:null;J=D;null==
+F&&k?(F=mxUtils.getNodeValue(D),0<F.length&&(F=Graph.decompress(F),null!=F&&0<F.length&&(J=D.cloneNode(!1),J.appendChild(mxUtils.parseXml(F).documentElement)))):null==F||k?J=D.cloneNode(!0):(J=D.cloneNode(!1),mxUtils.setTextContent(J,Graph.compressNode(F)));q.appendChild(J)},EditorUi.removeChildNodes(this.currentPage.node),this.currentPage.node.appendChild(q),q=this.fileNode.cloneNode(!1),d)c(this.currentPage.node);else for(d=0;d<this.pages.length;d++){var v=this.pages[d],A=v.node;if(v!=this.currentPage)if(v.needsUpdate){var B=
+new mxCodec(mxUtils.createXmlDocument());B=B.encode(new mxGraphModel(v.root));this.editor.graph.saveViewState(v.viewState,B,null,m);EditorUi.removeChildNodes(A);A.appendChild(B);delete v.needsUpdate}else m&&(this.updatePageRoot(v),null!=v.viewState.backgroundImage&&null!=v.viewState.backgroundImage.originalSrc&&(B=new mxCodec(mxUtils.createXmlDocument()),B=B.encode(new mxGraphModel(v.root)),this.editor.graph.saveViewState(v.viewState,B,null,m,v),A=A.cloneNode(!1),A.appendChild(B)));c(A)}return q};
EditorUi.prototype.anonymizeString=function(c,d){for(var k=[],m=0;m<c.length;m++){var q=c.charAt(m);0<=EditorUi.ignoredAnonymizedChars.indexOf(q)?k.push(q):isNaN(parseInt(q))?q.toLowerCase()!=q?k.push(String.fromCharCode(65+Math.round(25*Math.random()))):q.toUpperCase()!=q?k.push(String.fromCharCode(97+Math.round(25*Math.random()))):/\s/.test(q)?k.push(" "):k.push("?"):k.push(d?"0":Math.round(9*Math.random()))}return k.join("")};EditorUi.prototype.anonymizePatch=function(c){c=mxUtils.clone(c);if(null!=
c[EditorUi.DIFF_INSERT])for(var d=0;d<c[EditorUi.DIFF_INSERT].length;d++)try{var k=mxUtils.parseXml(c[EditorUi.DIFF_INSERT][d].data).documentElement.cloneNode(!1);null!=k.getAttribute("name")&&k.setAttribute("name",this.anonymizeString(k.getAttribute("name")));c[EditorUi.DIFF_INSERT][d].data=mxUtils.getXml(k)}catch(v){c[EditorUi.DIFF_INSERT][d].data=v.message}if(null!=c[EditorUi.DIFF_UPDATE]){for(var m in c[EditorUi.DIFF_UPDATE]){var q=c[EditorUi.DIFF_UPDATE][m];null!=q.name&&(q.name=this.anonymizeString(q.name));
-null!=q.cells&&(d=mxUtils.bind(this,function(v){var A=q.cells[v];if(null!=A){for(var C in A)null!=A[C].value&&(A[C].value="["+A[C].value.length+"]"),null!=A[C].xmlValue&&(A[C].xmlValue="["+A[C].xmlValue.length+"]"),null!=A[C].style&&(A[C].style="["+A[C].style.length+"]"),mxUtils.isEmptyObject(A[C])&&delete A[C];mxUtils.isEmptyObject(A)&&delete q.cells[v]}}),d(EditorUi.DIFF_INSERT),d(EditorUi.DIFF_UPDATE),mxUtils.isEmptyObject(q.cells)&&delete q.cells);mxUtils.isEmptyObject(q)&&delete c[EditorUi.DIFF_UPDATE][m]}mxUtils.isEmptyObject(c[EditorUi.DIFF_UPDATE])&&
+null!=q.cells&&(d=mxUtils.bind(this,function(v){var A=q.cells[v];if(null!=A){for(var B in A)null!=A[B].value&&(A[B].value="["+A[B].value.length+"]"),null!=A[B].xmlValue&&(A[B].xmlValue="["+A[B].xmlValue.length+"]"),null!=A[B].style&&(A[B].style="["+A[B].style.length+"]"),mxUtils.isEmptyObject(A[B])&&delete A[B];mxUtils.isEmptyObject(A)&&delete q.cells[v]}}),d(EditorUi.DIFF_INSERT),d(EditorUi.DIFF_UPDATE),mxUtils.isEmptyObject(q.cells)&&delete q.cells);mxUtils.isEmptyObject(q)&&delete c[EditorUi.DIFF_UPDATE][m]}mxUtils.isEmptyObject(c[EditorUi.DIFF_UPDATE])&&
delete c[EditorUi.DIFF_UPDATE]}return c};EditorUi.prototype.anonymizeAttributes=function(c,d){if(null!=c.attributes)for(var k=0;k<c.attributes.length;k++)"as"!=c.attributes[k].name&&c.setAttribute(c.attributes[k].name,this.anonymizeString(c.attributes[k].value,d));if(null!=c.childNodes)for(k=0;k<c.childNodes.length;k++)this.anonymizeAttributes(c.childNodes[k],d)};EditorUi.prototype.anonymizeNode=function(c,d){d=c.getElementsByTagName("mxCell");for(var k=0;k<d.length;k++)null!=d[k].getAttribute("value")&&
d[k].setAttribute("value","["+d[k].getAttribute("value").length+"]"),null!=d[k].getAttribute("xmlValue")&&d[k].setAttribute("xmlValue","["+d[k].getAttribute("xmlValue").length+"]"),null!=d[k].getAttribute("style")&&d[k].setAttribute("style","["+d[k].getAttribute("style").length+"]"),null!=d[k].parentNode&&"root"!=d[k].parentNode.nodeName&&null!=d[k].parentNode.parentNode&&(d[k].setAttribute("id",d[k].parentNode.getAttribute("id")),d[k].parentNode.parentNode.replaceChild(d[k],d[k].parentNode));return c};
EditorUi.prototype.synchronizeCurrentFile=function(c){var d=this.getCurrentFile();null!=d&&(d.savingFile?this.handleError({message:mxResources.get("busy")}):!c&&d.invalidChecksum?d.handleFileError(null,!0):this.spinner.spin(document.body,mxResources.get("updatingDocument"))&&(d.clearAutosave(),this.clearStatus(),c?d.reloadFile(mxUtils.bind(this,function(){this.spinner.stop();d.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(k){this.spinner.stop();d.handleFileError(k,!0)})):
-d.synchronizeFile(mxUtils.bind(this,function(){d.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(k){d.handleFileError(k,!0)}))))};EditorUi.prototype.getFileData=function(c,d,k,m,q,v,A,C,D,J,F,T,W){q=null!=q?q:!0;v=null!=v?v:!1;J=null!=J?J:!Editor.defaultCompressed;var p=this.editor.graph;if((d||!c&&null!=D&&/(\.svg)$/i.test(D.getTitle()))&&null!=this.pages&&this.currentPage!=this.pages[0]){var u=p.getGlobalVariable;p=this.createTemporaryGraph(p.getStylesheet());p.setBackgroundImage=
+d.synchronizeFile(mxUtils.bind(this,function(){d.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(k){d.handleFileError(k,!0)}))))};EditorUi.prototype.getFileData=function(c,d,k,m,q,v,A,B,D,J,F,T,W){q=null!=q?q:!0;v=null!=v?v:!1;J=null!=J?J:!Editor.defaultCompressed;var p=this.editor.graph;if((d||!c&&null!=D&&/(\.svg)$/i.test(D.getTitle()))&&null!=this.pages&&this.currentPage!=this.pages[0]){var u=p.getGlobalVariable;p=this.createTemporaryGraph(p.getStylesheet());p.setBackgroundImage=
this.editor.graph.setBackgroundImage;p.background=this.editor.graph.background;var G=null!=this.pages?this.pages[0]:null;null==G||this.currentPage==G?p.setBackgroundImage(this.editor.graph.backgroundImage):null!=G.viewState&&null!=G.viewState&&p.setBackgroundImage(G.viewState.backgroundImage);p.getGlobalVariable=function(I){return"page"==I&&null!=G?G.getName():"pagenumber"==I?1:u.apply(this,arguments)};document.body.appendChild(p.container);null!=G&&p.model.setRoot(G.root)}A=null!=A?A:this.getXmlFileData(q,
-v,J,F);D=null!=D?D:this.getCurrentFile();c=this.createFileData(A,p,D,window.location.href,c,d,k,m,q,C,J,T,W);p!=this.editor.graph&&p.container.parentNode.removeChild(p.container);return c};EditorUi.prototype.getHtml=function(c,d,k,m,q,v){v=null!=v?v:!0;var A=null,C=EditorUi.drawHost+"/js/embed-static.min.js";if(null!=d){A=v?d.getGraphBounds():d.getBoundingBox(d.getSelectionCells());var D=d.view.scale;v=Math.floor(A.x/D-d.view.translate.x);D=Math.floor(A.y/D-d.view.translate.y);A=d.background;null==
-q&&(d=this.getBasenames().join(";"),0<d.length&&(C=EditorUi.drawHost+"/embed.js?s="+d));c.setAttribute("x0",v);c.setAttribute("y0",D)}null!=c&&(c.setAttribute("pan","1"),c.setAttribute("zoom","1"),c.setAttribute("resize","0"),c.setAttribute("fit","0"),c.setAttribute("border","20"),c.setAttribute("links","1"),null!=m&&c.setAttribute("edit",m));null!=q&&(q=q.replace(/&/g,"&amp;"));c=null!=c?Graph.zapGremlins(mxUtils.getXml(c)):"";m=Graph.compress(c);Graph.decompress(m)!=c&&(m=encodeURIComponent(c));
+v,J,F);D=null!=D?D:this.getCurrentFile();c=this.createFileData(A,p,D,window.location.href,c,d,k,m,q,B,J,T,W);p!=this.editor.graph&&p.container.parentNode.removeChild(p.container);return c};EditorUi.prototype.getHtml=function(c,d,k,m,q,v){v=null!=v?v:!0;var A=null,B=EditorUi.drawHost+"/js/embed-static.min.js";if(null!=d){A=v?d.getGraphBounds():d.getBoundingBox(d.getSelectionCells());var D=d.view.scale;v=Math.floor(A.x/D-d.view.translate.x);D=Math.floor(A.y/D-d.view.translate.y);A=d.background;null==
+q&&(d=this.getBasenames().join(";"),0<d.length&&(B=EditorUi.drawHost+"/embed.js?s="+d));c.setAttribute("x0",v);c.setAttribute("y0",D)}null!=c&&(c.setAttribute("pan","1"),c.setAttribute("zoom","1"),c.setAttribute("resize","0"),c.setAttribute("fit","0"),c.setAttribute("border","20"),c.setAttribute("links","1"),null!=m&&c.setAttribute("edit",m));null!=q&&(q=q.replace(/&/g,"&amp;"));c=null!=c?Graph.zapGremlins(mxUtils.getXml(c)):"";m=Graph.compress(c);Graph.decompress(m)!=c&&(m=encodeURIComponent(c));
return(null==q?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=q?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==q?null!=k?"<title>"+mxUtils.htmlEntities(k)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=q?'<meta http-equiv="refresh" content="0;URL=\''+q+"'\"/>\n":"")+"</head>\n<body"+(null==q&&null!=A&&A!=mxConstants.NONE?' style="background-color:'+A+';">':">")+'\n<div class="mxgraph" style="position:relative;overflow:auto;width:100%;">\n<div style="width:1px;height:1px;overflow:hidden;">'+
-m+"</div>\n</div>\n"+(null==q?'<script type="text/javascript" src="'+C+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+q+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.getHtml2=function(c,d,k,m,q){d=window.DRAWIO_VIEWER_URL||EditorUi.drawHost+"/js/viewer-static.min.js";null!=q&&(q=q.replace(/&/g,"&amp;"));c={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,
+m+"</div>\n</div>\n"+(null==q?'<script type="text/javascript" src="'+B+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+q+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.getHtml2=function(c,d,k,m,q){d=window.DRAWIO_VIEWER_URL||EditorUi.drawHost+"/js/viewer-static.min.js";null!=q&&(q=q.replace(/&/g,"&amp;"));c={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,
resize:!0,xml:Graph.zapGremlins(c),toolbar:"pages zoom layers lightbox"};null!=this.pages&&null!=this.currentPage&&(c.page=mxUtils.indexOf(this.pages,this.currentPage));return(null==q?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=q?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==q?null!=k?"<title>"+mxUtils.htmlEntities(k)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=q?'<meta http-equiv="refresh" content="0;URL=\''+
q+"'\"/>\n":"")+'<meta charset="utf-8"/>\n</head>\n<body>\n<div class="mxgraph" style="max-width:100%;border:1px solid transparent;" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(c))+'"></div>\n'+(null==q?'<script type="text/javascript" src="'+d+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+q+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.updateFileVars=
function(){var c=null!=this.fileNode?this.fileNode.getAttribute("vars"):null;if(c!==this.fileVarsStr&&(this.fileVarsStr=c,this.fileVars=null,null!=c&&0<c.length))try{this.fileVars=JSON.parse(c)}catch(d){}};EditorUi.prototype.setFileData=function(c,d){c=this.validateFileData(c);this.pages=this.fileNode=this.currentPage=null;d=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var k=Editor.extractParserError(d,mxResources.get("invalidOrMissingFile"));if(k)throw EditorUi.debug("EditorUi.setFileData ParserError",
[this],"data",[c],"node",[d],"cause",[k]),Error(mxResources.get("notADiagramFile")+" ("+k+")");c=null!=d?this.editor.extractGraphModel(d,!0):null;null!=c&&(d=c);if(null!=d&&"mxfile"==d.nodeName&&(c=d.getElementsByTagName("diagram"),k={},0<c.length)){var m=this.getHashObject(),q=null;this.fileNode=d;this.editor.graph.defaultExportLinkTarget=d.getAttribute("linkTarget");this.pages=[];for(var v=0;v<c.length;v++){null==c[v].getAttribute("id")&&c[v].setAttribute("id",v);d=new DiagramPage(c[v]);null==d.getName()&&
d.setName(mxResources.get("pageWithNumber",[v+1]));this.pages.push(d);if(null==m.pageId&&null!=urlParams["page-id"]&&d.getId()==urlParams["page-id"]||null!=m.pageId&&d.getId()==m.pageId)q=d;if(null==k[d.getId()])k[d.getId()]=d;else throw Error(d.getId()+": Duplicate page ID");}this.currentPage=null!=q?q:this.pages[Math.max(0,Math.min(this.pages.length-1,urlParams.page||0))];d=this.currentPage.node}null==this.fileNode&&null!=d&&(this.fileNode=d.ownerDocument.createElement("mxfile"),this.currentPage=
-new DiagramPage(d.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),this.pages=[this.currentPage]);this.editor.setGraphXml(d);null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,this.currentPage.setDiagramModified(!1),this.scrollToPage());if(null!=urlParams["layer-ids"])try{var A=decodeURIComponent(urlParams["layer-ids"]).split(" ");d={};for(v=0;v<A.length;v++)d[A[v]]=!0;var C=this.editor.graph.getModel(),D=C.getChildren(C.root);
-for(v=0;v<D.length;v++){var J=D[v];C.setVisible(J,d[J.id]||!1)}}catch(F){}};EditorUi.prototype.fileStats=function(c,d){try{if(null!=c&&5E5<c.getSize()&&""!==c.getHash()&&"draw.io"==this.getServiceName()){var k=d.getElementsByTagName("diagram");d={};d.modified=c.getLastModifiedDate();d.fileMode=c.getMode();d.fileSize=c.getSize();d.fileHash=c.getHash();d.pages=k.length;d.redundantStencils=0;d.redundantImages=0;d.redundantSize=0;d.stencils=0;d.images=0;for(var m=d.cells=0;m<k.length;m++){var q=k[m].getElementsByTagName("mxCell");
-d.cells+=q.length;for(var v={},A=0;A<q.length;A++){var C=q[A].getAttribute("style");if(null!=C)for(var D=C.split(";"),J=0;J<D.length;J++){var F=D[J];if(F.startsWith("image=data:")||F.startsWith("shape=stencil("))null==v[F]?v[F]=1:v[F]++}}for(var T in v){var W=v[T];T.startsWith("shape=stencil(")?d.stencils+=W:d.images+=W;1<W&&(d.redundantSize+=T.length*(W-1),T.startsWith("shape=stencil(")?d.redundantStencils+=W-1:d.redundantImages+=W-1)}}EditorUi.logEvent({category:c.getMode().toUpperCase()+"-FILE-STATS-"+
+new DiagramPage(d.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),this.pages=[this.currentPage]);this.editor.setGraphXml(d);null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,this.currentPage.setDiagramModified(!1),this.scrollToPage());if(null!=urlParams["layer-ids"])try{var A=decodeURIComponent(urlParams["layer-ids"]).split(" ");d={};for(v=0;v<A.length;v++)d[A[v]]=!0;var B=this.editor.graph.getModel(),D=B.getChildren(B.root);
+for(v=0;v<D.length;v++){var J=D[v];B.setVisible(J,d[J.id]||!1)}}catch(F){}};EditorUi.prototype.fileStats=function(c,d){try{if(null!=c&&5E5<c.getSize()&&""!==c.getHash()&&"draw.io"==this.getServiceName()){var k=d.getElementsByTagName("diagram");d={};d.modified=c.getLastModifiedDate();d.fileMode=c.getMode();d.fileSize=c.getSize();d.fileHash=c.getHash();d.pages=k.length;d.redundantStencils=0;d.redundantImages=0;d.redundantSize=0;d.stencils=0;d.images=0;for(var m=d.cells=0;m<k.length;m++){var q=k[m].getElementsByTagName("mxCell");
+d.cells+=q.length;for(var v={},A=0;A<q.length;A++){var B=q[A].getAttribute("style");if(null!=B)for(var D=B.split(";"),J=0;J<D.length;J++){var F=D[J];if(F.startsWith("image=data:")||F.startsWith("shape=stencil("))null==v[F]?v[F]=1:v[F]++}}for(var T in v){var W=v[T];T.startsWith("shape=stencil(")?d.stencils+=W:d.images+=W;1<W&&(d.redundantSize+=T.length*(W-1),T.startsWith("shape=stencil(")?d.redundantStencils+=W-1:d.redundantImages+=W-1)}}EditorUi.logEvent({category:c.getMode().toUpperCase()+"-FILE-STATS-"+
c.getHash(),action:"size_"+c.getSize(),label:JSON.stringify(d)})}}catch(p){}};EditorUi.prototype.getBaseFilename=function(c){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(".")));!c&&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(c,d,k,m,q,v,A,C,D,J,F,T,W,p,u,G,I){try{m=null!=m?m:this.editor.graph.isSelectionEmpty();var H=this.getBaseFilename(!q),g=H+("xml"==c||"pdf"==c&&F?".drawio":"")+"."+c;if("xml"==c){var t=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,m,q,null,null,null,d);this.saveData(g,c,t,"text/xml")}else if("html"==c)t=this.getHtml2(this.getFileData(!0),this.editor.graph,H),
-this.saveData(g,c,t,"text/html");else if("svg"!=c&&"xmlsvg"!=c||!this.spinner.spin(document.body,mxResources.get("export")))if("xmlpng"==c?g=H+".png":"jpeg"==c&&(g=H+".jpg"),"1"==urlParams.embed&&"json"==urlParams.proto&&this.embedExportProtocol){var B=this.embedMessageSource||window.opener||window.parent;this.spinner.spin(document.body,mxResources.get("exporting"))&&this.createDownloadRequest(g,c,m,"1",A,q,C,D,J,F,T,void 0,void 0,!v,W,p,u,G,I).send(mxUtils.bind(this,function(N){this.spinner.stop();
-if(200<=N.getStatus()&&299>=N.getStatus()){var P=this.createLoadMessage("export");P.format=c;P.filename=g;P.data="data:application/pdf;base64,"+N.getText();P.xml=this.getFileData(!0);B.postMessage(JSON.stringify(P),"*")}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(){this.spinner.stop();this.handleError({message:mxResources.get("errorSavingFile")})}))}else this.saveRequest(g,c,mxUtils.bind(this,function(N,P){try{return this.createDownloadRequest(N,
-c,m,P,A,q,C,D,J,F,T,void 0,void 0,!v,W,p,u,G,I)}catch(V){this.handleError(V)}}));else{var K=null,Q=mxUtils.bind(this,function(N){N.length<=MAX_REQUEST_SIZE?this.saveData(g,"svg",N,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(K)}))});if("svg"==c){var S=this.editor.graph.background;if(A||S==mxConstants.NONE)S=null;var U=this.editor.graph.getSvg(S,null,null,null,null,m);k&&this.editor.graph.addSvgShadow(U);
-this.editor.convertImages(U,mxUtils.bind(this,mxUtils.bind(this,function(N){this.spinner.stop();Q(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(N))})))}else g=H+".svg",K=this.getFileData(!1,!0,null,mxUtils.bind(this,function(N){this.spinner.stop();Q(N)}),m)}}catch(N){this.handleError(N)}};EditorUi.prototype.createDownloadRequest=function(c,d,k,m,q,v,A,C,D,J,F,T,W,p,u,G,I,H,g){c=this.downloadRequestBuilder(c,d,k,m,q,v,A,C,D,J,F,T,W,p,u,G,I,H,g);d="";for(var t in c)k=c[t],null!=k&&
-(d+=t+"="+encodeURIComponent(k)+"&");return new mxXmlRequest(EXPORT_URL,d)};EditorUi.prototype.downloadRequestBuilder=function(c,d,k,m,q,v,A,C,D,J,F,T,W,p,u,G,I,H,g){var t=this.editor.graph,B=t.getGraphBounds();k=this.getFileData(!0,null,null,null,k,0==v?!1:"xmlpng"!=d,null,null,null,!Editor.defaultCompressed,"pdf"==d);var K=null,Q=null,S=null;if(!EditorUi.isElectronApp&&(B.width*B.height>MAX_AREA||k.length>MAX_REQUEST_SIZE))throw{message:mxResources.get("drawingTooLarge")};J=J?"1":"0";"pdf"==d&&
+0<this.currentPage.getName().length&&(d=d+"-"+this.currentPage.getName());return d};EditorUi.prototype.downloadFile=function(c,d,k,m,q,v,A,B,D,J,F,T,W,p,u,G,I){try{m=null!=m?m:this.editor.graph.isSelectionEmpty();var H=this.getBaseFilename(!q),g=H+("xml"==c||"pdf"==c&&F?".drawio":"")+"."+c;if("xml"==c){var t=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,m,q,null,null,null,d);this.saveData(g,c,t,"text/xml")}else if("html"==c)t=this.getHtml2(this.getFileData(!0),this.editor.graph,H),
+this.saveData(g,c,t,"text/html");else if("svg"!=c&&"xmlsvg"!=c||!this.spinner.spin(document.body,mxResources.get("export")))if("xmlpng"==c?g=H+".png":"jpeg"==c&&(g=H+".jpg"),"1"==urlParams.embed&&"json"==urlParams.proto&&this.embedExportProtocol){var C=this.embedMessageSource||window.opener||window.parent;this.spinner.spin(document.body,mxResources.get("exporting"))&&this.createDownloadRequest(g,c,m,"1",A,q,B,D,J,F,T,void 0,void 0,!v,W,p,u,G,I).send(mxUtils.bind(this,function(N){this.spinner.stop();
+if(200<=N.getStatus()&&299>=N.getStatus()){var P=this.createLoadMessage("export");P.format=c;P.filename=g;P.data="data:application/pdf;base64,"+N.getText();P.xml=this.getFileData(!0);C.postMessage(JSON.stringify(P),"*")}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(){this.spinner.stop();this.handleError({message:mxResources.get("errorSavingFile")})}))}else this.saveRequest(g,c,mxUtils.bind(this,function(N,P){try{return this.createDownloadRequest(N,
+c,m,P,A,q,B,D,J,F,T,void 0,void 0,!v,W,p,u,G,I)}catch(V){this.handleError(V)}}));else{var K=null,Q=mxUtils.bind(this,function(N){N.length<=MAX_REQUEST_SIZE?this.saveData(g,"svg",N,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(K)}))});if("svg"==c){var S=this.editor.graph.background;if(A||S==mxConstants.NONE)S=null;var U=this.editor.graph.getSvg(S,null,null,null,null,m);k&&this.editor.graph.addSvgShadow(U);
+this.editor.convertImages(U,mxUtils.bind(this,mxUtils.bind(this,function(N){this.spinner.stop();Q(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(N))})))}else g=H+".svg",K=this.getFileData(!1,!0,null,mxUtils.bind(this,function(N){this.spinner.stop();Q(N)}),m)}}catch(N){this.handleError(N)}};EditorUi.prototype.createDownloadRequest=function(c,d,k,m,q,v,A,B,D,J,F,T,W,p,u,G,I,H,g){c=this.downloadRequestBuilder(c,d,k,m,q,v,A,B,D,J,F,T,W,p,u,G,I,H,g);d="";for(var t in c)k=c[t],null!=k&&
+(d+=t+"="+encodeURIComponent(k)+"&");return new mxXmlRequest(EXPORT_URL,d)};EditorUi.prototype.downloadRequestBuilder=function(c,d,k,m,q,v,A,B,D,J,F,T,W,p,u,G,I,H,g){var t=this.editor.graph,C=t.getGraphBounds();k=this.getFileData(!0,null,null,null,k,0==v?!1:"xmlpng"!=d,null,null,null,!Editor.defaultCompressed,"pdf"==d);var K=null,Q=null,S=null;if(!EditorUi.isElectronApp&&(C.width*C.height>MAX_AREA||k.length>MAX_REQUEST_SIZE))throw{message:mxResources.get("drawingTooLarge")};J=J?"1":"0";"pdf"==d&&
(null!=F?(K=F.from,Q=F.to):0==v&&(S="1"));"xmlpng"==d&&(J="1",d="png");if(("xmlpng"==d||"svg"==d)&&null!=this.pages&&null!=this.currentPage)for(v=0;v<this.pages.length;v++)if(this.pages[v]==this.currentPage){K=v;break}v=t.background;"png"!=d&&"pdf"!=d&&"svg"!=d||!q?q||null!=v&&v!=mxConstants.NONE||(v="#ffffff"):v=mxConstants.NONE;q={globalVars:t.getExportVariables()};null!=F&&null!=F.from&&(q.globalVars.pagenumber=F.from+1);D&&(q.grid={size:t.gridSize,steps:t.view.gridSteps,color:Editor.isDarkMode()&&
-"pdf"==d?mxGraphView.prototype.defaultGridColor:t.view.gridColor});Graph.translateDiagram&&(q.diagramLanguage=Graph.diagramLanguage);D=this.getHiddenTagsMap();null!=D&&(q.hiddenTags=D);return{format:d,from:K,to:Q,allPages:S,bg:null!=v?v:mxConstants.NONE,base64:m,embedXml:J,xml:k,filename:null!=c?c:"",extras:JSON.stringify(q),scale:A,border:C,pageMargin:u,w:T&&isFinite(T)?T:null,h:W&&isFinite(W)?W:null,crop:null!=p&&p?"1":"0",fit:null!=G&&G?"1":"0",shadows:null!=g&&g?"1":"0",sheetsAcross:I,sheetsDown:H}};
+"pdf"==d?mxGraphView.prototype.defaultGridColor:t.view.gridColor});Graph.translateDiagram&&(q.diagramLanguage=Graph.diagramLanguage);D=this.getHiddenTagsMap();null!=D&&(q.hiddenTags=D);return{format:d,from:K,to:Q,allPages:S,bg:null!=v?v:mxConstants.NONE,base64:m,embedXml:J,xml:k,filename:null!=c?c:"",extras:JSON.stringify(q),scale:A,border:B,pageMargin:u,w:T&&isFinite(T)?T:null,h:W&&isFinite(W)?W:null,crop:null!=p&&p?"1":"0",fit:null!=G&&G?"1":"0",shadows:null!=g&&g?"1":"0",sheetsAcross:I,sheetsDown:H}};
EditorUi.prototype.getHiddenTagsMap=function(){var c=this.editor.graph,d={},k=!1;if(null!=this.pages)for(var m=0;m<this.pages.length;m++){var q=this.pages[m],v=q==this.currentPage?c.hiddenTags:null!=q.viewState?q.viewState.hiddenTags:null;null!=v&&0<v.length&&(d[q.getId()]=v,k=!0)}else null!=c.hiddenTags&&0<c.hiddenTags.length&&(d[0]=c.hiddenTags,k=!0);return k?d:null};EditorUi.prototype.setMode=function(c,d){this.mode=c};EditorUi.prototype.getDiagramId=function(){var c=window.location.hash;null!=
c&&0<c.length&&(c=c.substring(1));if(null!=c&&1<c.length){var d=c.indexOf("#");0<=d&&(c=c.substring(0,d))}return c};EditorUi.prototype.getHashObject=function(){var c=window.location.hash,d={};if(null!=c&&0<c.length){var k=c.lastIndexOf("#");if(0<k){c=decodeURIComponent(c.substring(k+1));try{d=JSON.parse(c)}catch(m){}}}return d};EditorUi.prototype.updateHashObject=function(){if(null!=this.currentFile&&null!=this.currentPage&&""!=this.currentFile.getHash()){var c=this.getHashObject();c.pageId=this.currentPage.getId();
this.setHashObject(c)}else this.setHashObject(null)};EditorUi.prototype.setHashObject=function(c){if(Editor.enableHashObjects){var d=window.location.hash;if(null==d||""==d)d="#";var k=d.lastIndexOf("#");0<k&&(d=d.substring(0,k));try{null==c||mxUtils.isEmptyObject(c)||(d=d+"#"+encodeURIComponent(JSON.stringify(c)))}catch(m){}0<k&&0<d.lastIndexOf("#")?window.location.hash=d:window.location.replace(d)}};EditorUi.prototype.loadDescriptor=function(c,d,k){var m=window.location.hash,q=mxUtils.bind(this,
-function(A){var C=null!=c.data?c.data:"";null!=A&&0<A.length&&(0<C.length&&(C+="\n"),C+=A);A=new LocalFile(this,"csv"!=c.format&&0<C.length?C:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);A.getHash=function(){return m};this.fileLoaded(A);"csv"==c.format&&this.importCsv(C,mxUtils.bind(this,function(W){this.editor.undoManager.clear();this.editor.setModified(!1);this.clearStatus()}));if(null!=c.update){var D=null!=c.interval?parseInt(c.interval):
+function(A){var B=null!=c.data?c.data:"";null!=A&&0<A.length&&(0<B.length&&(B+="\n"),B+=A);A=new LocalFile(this,"csv"!=c.format&&0<B.length?B:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);A.getHash=function(){return m};this.fileLoaded(A);"csv"==c.format&&this.importCsv(B,mxUtils.bind(this,function(W){this.editor.undoManager.clear();this.editor.setModified(!1);this.clearStatus()}));if(null!=c.update){var D=null!=c.interval?parseInt(c.interval):
6E4,J=null,F=mxUtils.bind(this,function(){var W=this.currentPage;mxUtils.post(c.update,"xml="+encodeURIComponent(mxUtils.getXml(this.editor.getGraphXml())),mxUtils.bind(this,function(p){W===this.currentPage&&(200<=p.getStatus()&&300>=p.getStatus()?(this.updateDiagram(p.getText()),T()):this.handleError({message:mxResources.get("error")+" "+p.getStatus()}))}),mxUtils.bind(this,function(p){this.handleError(p)}))}),T=mxUtils.bind(this,function(){window.clearTimeout(J);J=window.setTimeout(F,D)});this.editor.addListener("pageSelected",
-mxUtils.bind(this,function(){T();F()}));T();F()}null!=d&&d()});if(null!=c.url&&0<c.url.length){var v=this.editor.getProxiedUrl(c.url);this.editor.loadUrl(v,mxUtils.bind(this,function(A){q(A)}),mxUtils.bind(this,function(A){null!=k&&k(A)}))}else q("")};EditorUi.prototype.updateDiagram=function(c){function d(t){var B=new mxCellOverlay(t.image||q.warningImage,t.tooltip,t.align,t.valign,t.offset);B.addListener(mxEvent.CLICK,function(K,Q){m.alert(t.tooltip)});return B}var k=null,m=this;if(null!=c&&0<c.length&&
-(k=mxUtils.parseXml(c),c=null!=k?k.documentElement:null,null!=c&&"updates"==c.nodeName)){var q=this.editor.graph,v=q.getModel();v.beginUpdate();var A=null;try{for(c=c.firstChild;null!=c;){if("update"==c.nodeName){var C=v.getCell(c.getAttribute("id"));if(null!=C){try{var D=c.getAttribute("value");if(null!=D){var J=mxUtils.parseXml(D).documentElement;if(null!=J)if("1"==J.getAttribute("replace-value"))v.setValue(C,J);else for(var F=J.attributes,T=0;T<F.length;T++)q.setAttributeForCell(C,F[T].nodeName,
-0<F[T].nodeValue.length?F[T].nodeValue:null)}}catch(t){null!=window.console&&console.log("Error in value for "+C.id+": "+t)}try{var W=c.getAttribute("style");null!=W&&q.model.setStyle(C,W)}catch(t){null!=window.console&&console.log("Error in style for "+C.id+": "+t)}try{var p=c.getAttribute("icon");if(null!=p){var u=0<p.length?JSON.parse(p):null;null!=u&&u.append||q.removeCellOverlays(C);null!=u&&q.addCellOverlay(C,d(u))}}catch(t){null!=window.console&&console.log("Error in icon for "+C.id+": "+t)}try{var G=
-c.getAttribute("geometry");if(null!=G){G=JSON.parse(G);var I=q.getCellGeometry(C);if(null!=I){I=I.clone();for(key in G){var H=parseFloat(G[key]);"dx"==key?I.x+=H:"dy"==key?I.y+=H:"dw"==key?I.width+=H:"dh"==key?I.height+=H:I[key]=parseFloat(G[key])}q.model.setGeometry(C,I)}}}catch(t){null!=window.console&&console.log("Error in icon for "+C.id+": "+t)}}}else if("model"==c.nodeName){for(var g=c.firstChild;null!=g&&g.nodeType!=mxConstants.NODETYPE_ELEMENT;)g=g.nextSibling;null!=g&&(new mxCodec(c.firstChild)).decode(g,
+mxUtils.bind(this,function(){T();F()}));T();F()}null!=d&&d()});if(null!=c.url&&0<c.url.length){var v=this.editor.getProxiedUrl(c.url);this.editor.loadUrl(v,mxUtils.bind(this,function(A){q(A)}),mxUtils.bind(this,function(A){null!=k&&k(A)}))}else q("")};EditorUi.prototype.updateDiagram=function(c){function d(t){var C=new mxCellOverlay(t.image||q.warningImage,t.tooltip,t.align,t.valign,t.offset);C.addListener(mxEvent.CLICK,function(K,Q){m.alert(t.tooltip)});return C}var k=null,m=this;if(null!=c&&0<c.length&&
+(k=mxUtils.parseXml(c),c=null!=k?k.documentElement:null,null!=c&&"updates"==c.nodeName)){var q=this.editor.graph,v=q.getModel();v.beginUpdate();var A=null;try{for(c=c.firstChild;null!=c;){if("update"==c.nodeName){var B=v.getCell(c.getAttribute("id"));if(null!=B){try{var D=c.getAttribute("value");if(null!=D){var J=mxUtils.parseXml(D).documentElement;if(null!=J)if("1"==J.getAttribute("replace-value"))v.setValue(B,J);else for(var F=J.attributes,T=0;T<F.length;T++)q.setAttributeForCell(B,F[T].nodeName,
+0<F[T].nodeValue.length?F[T].nodeValue:null)}}catch(t){null!=window.console&&console.log("Error in value for "+B.id+": "+t)}try{var W=c.getAttribute("style");null!=W&&q.model.setStyle(B,W)}catch(t){null!=window.console&&console.log("Error in style for "+B.id+": "+t)}try{var p=c.getAttribute("icon");if(null!=p){var u=0<p.length?JSON.parse(p):null;null!=u&&u.append||q.removeCellOverlays(B);null!=u&&q.addCellOverlay(B,d(u))}}catch(t){null!=window.console&&console.log("Error in icon for "+B.id+": "+t)}try{var G=
+c.getAttribute("geometry");if(null!=G){G=JSON.parse(G);var I=q.getCellGeometry(B);if(null!=I){I=I.clone();for(key in G){var H=parseFloat(G[key]);"dx"==key?I.x+=H:"dy"==key?I.y+=H:"dw"==key?I.width+=H:"dh"==key?I.height+=H:I[key]=parseFloat(G[key])}q.model.setGeometry(B,I)}}}catch(t){null!=window.console&&console.log("Error in icon for "+B.id+": "+t)}}}else if("model"==c.nodeName){for(var g=c.firstChild;null!=g&&g.nodeType!=mxConstants.NODETYPE_ELEMENT;)g=g.nextSibling;null!=g&&(new mxCodec(c.firstChild)).decode(g,
v)}else if("view"==c.nodeName){if(c.hasAttribute("scale")&&(q.view.scale=parseFloat(c.getAttribute("scale"))),c.hasAttribute("dx")||c.hasAttribute("dy"))q.view.translate=new mxPoint(parseFloat(c.getAttribute("dx")||0),parseFloat(c.getAttribute("dy")||0))}else"fit"==c.nodeName&&(A=c.hasAttribute("max-scale")?parseFloat(c.getAttribute("max-scale")):1);c=c.nextSibling}}finally{v.endUpdate()}null!=A&&this.chromelessResize&&this.chromelessResize(!0,A)}return k};EditorUi.prototype.getCopyFilename=function(c,
-d){var k=null!=c&&null!=c.getTitle()?c.getTitle():this.defaultFilename;c="";var m=k.lastIndexOf(".");0<=m&&(c=k.substring(m),k=k.substring(0,m));if(d){d=k;var q=new Date;k=q.getFullYear();m=q.getMonth()+1;var v=q.getDate(),A=q.getHours(),C=q.getMinutes();q=q.getSeconds();k=d+(" "+(k+"-"+m+"-"+v+"-"+A+"-"+C+"-"+q))}return k=mxResources.get("copyOf",[k])+c};EditorUi.prototype.logIfModified=function(c,d){try{null!=c&&d&&EditorUi.debug("File.closed",[c])}catch(k){}};EditorUi.prototype.fileLoaded=function(c,
+d){var k=null!=c&&null!=c.getTitle()?c.getTitle():this.defaultFilename;c="";var m=k.lastIndexOf(".");0<=m&&(c=k.substring(m),k=k.substring(0,m));if(d){d=k;var q=new Date;k=q.getFullYear();m=q.getMonth()+1;var v=q.getDate(),A=q.getHours(),B=q.getMinutes();q=q.getSeconds();k=d+(" "+(k+"-"+m+"-"+v+"-"+A+"-"+B+"-"+q))}return k=mxResources.get("copyOf",[k])+c};EditorUi.prototype.logIfModified=function(c,d){try{null!=c&&d&&EditorUi.debug("File.closed",[c])}catch(k){}};EditorUi.prototype.fileLoaded=function(c,
d,k){EditorUi.debug("EditorUi.fileLoaded",[this],"file",[c],"noDialogs",[d]);var m=this.getCurrentFile();this.fileEditable=this.fileLoadedError=null;this.setCurrentFile(null);var q=!1;this.hideDialog();null!=m&&(m.removeListener(this.descriptorChangedListener),this.logIfModified(m,!0),m.close());this.editor.graph.model.clear();this.editor.undoManager.clear();var v=mxUtils.bind(this,function(){this.setGraphEnabled(!1);this.setCurrentFile(null);null!=m&&this.updateDocumentTitle();this.editor.graph.model.clear();
this.editor.undoManager.clear();this.setBackgroundImage(null);!d&&null!=window.location.hash&&0<window.location.hash.length&&(window.location.hash="");null!=this.fname&&(this.fname.innerText="");this.clearStatus();this.updateUi();d||("0"!=urlParams.splash?this.showSplash():this.createFile(this.defaultFilename,this.getFileData(),null,null,null,null,null,!0))});if(null!=c)try{this.openingFile=!0;this.setCurrentFile(c);c.addListener("descriptorChanged",this.descriptorChangedListener);c.addListener("contentChanged",
this.descriptorChangedListener);c.open();delete this.openingFile;this.setGraphEnabled(!0);this.setMode(c.getMode());this.editor.graph.model.prefix=Editor.guid()+"-";this.editor.undoManager.clear();this.descriptorChanged();this.updateUi();c.isEditable()?c.isModified()?c.addUnsavedStatus():this.clearStatus():this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus('<div class="geStatusBox" title="'+mxUtils.htmlEntities(mxResources.get("readOnly"))+'">'+mxUtils.htmlEntities(mxResources.get("readOnly"))+
"</div>")}));!this.editor.isChromelessView()||this.editor.editable?(this.editor.graph.selectUnlockedLayer(),this.showLayersDialog(),this.restoreLibraries(),window.self===window.top||this.noAutoFocus||window.focus()):this.editor.graph.isLightboxView()&&this.lightboxFit();this.chromelessResize&&this.chromelessResize();null!=k&&k();this.editor.fireEvent(new mxEventObject("fileLoaded"));q=!0;if(!this.isOffline()&&null!=c.getMode()){var A="1"==urlParams.sketch?"sketch":uiTheme;if(null==A)A="default";else if("sketch"==
-A||"min"==A)A+=Editor.isDarkMode()?"-dark":"-light";EditorUi.logEvent({category:c.getMode().toUpperCase()+"-OPEN-FILE-"+c.getHash(),action:"size_"+c.getSize(),label:"autosave_"+(this.editor.autosave?"on":"off")+"_theme_"+A})}EditorUi.debug("File.opened",[c]);"1"==urlParams.viewerOnlyMsg&&this.showAlert(mxResources.get("viewerOnlyMsg"));if(this.editor.editable&&this.mode==c.getMode()&&c.getMode()!=App.MODE_DEVICE&&null!=c.getMode())try{this.addRecent({id:c.getHash(),title:c.getTitle(),mode:c.getMode()})}catch(C){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+
-1),mxSettings.save()}catch(C){}}catch(C){this.fileLoadedError=C;if(null!=c)try{c.close()}catch(D){}c=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=m?this.fileLoaded(m)||v():v()});d?c():(null!=C.fallbackFileData&&(C.alternateAction={label:mxResources.get("makeCopy"),funct:mxUtils.bind(this,function(){this.hideDialog();var D=new LocalFile(this,C.fallbackFileData,this.defaultFilename,
-!0);this.fileLoaded(D)})}),this.handleError(C,mxResources.get("errorLoadingFile"),c,!0,null,null,!0))}else v();return q};EditorUi.prototype.getHashValueForPages=function(c,d){var k=0,m=new mxGraphModel,q=new mxCodec;null!=d&&(d.byteCount=0,d.attrCount=0,d.eltCount=0,d.nodeCount=0);for(var v=0;v<c.length;v++){this.updatePageRoot(c[v]);var A=c[v].node.cloneNode(!1);A.removeAttribute("name");m.root=c[v].root;var C=q.encode(m);this.editor.graph.saveViewState(c[v].viewState,C,!0);C.removeAttribute("pageWidth");
-C.removeAttribute("pageHeight");A.appendChild(C);null!=d&&(d.eltCount+=A.getElementsByTagName("*").length,d.nodeCount+=A.getElementsByTagName("mxCell").length);k=(k<<5)-k+this.hashValue(A,function(D,J,F,T){return!T||"mxGeometry"!=D.nodeName&&"mxPoint"!=D.nodeName||"x"!=J&&"y"!=J&&"width"!=J&&"height"!=J?T&&"mxCell"==D.nodeName&&"previous"==J?null:F:Math.round(F)},d)<<0}return k};EditorUi.prototype.hashValue=function(c,d,k){var m=0;if(null!=c&&"object"===typeof c&&"number"===typeof c.nodeType&&"string"===
+A||"min"==A)A+=Editor.isDarkMode()?"-dark":"-light";EditorUi.logEvent({category:c.getMode().toUpperCase()+"-OPEN-FILE-"+c.getHash(),action:"size_"+c.getSize(),label:"autosave_"+(this.editor.autosave?"on":"off")+"_theme_"+A})}EditorUi.debug("File.opened",[c]);"1"==urlParams.viewerOnlyMsg&&this.showAlert(mxResources.get("viewerOnlyMsg"));if(this.editor.editable&&this.mode==c.getMode()&&c.getMode()!=App.MODE_DEVICE&&null!=c.getMode())try{this.addRecent({id:c.getHash(),title:c.getTitle(),mode:c.getMode()})}catch(B){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+
+1),mxSettings.save()}catch(B){}}catch(B){this.fileLoadedError=B;if(null!=c)try{c.close()}catch(D){}c=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=m?this.fileLoaded(m)||v():v()});d?c():(null!=B.fallbackFileData&&(B.alternateAction={label:mxResources.get("makeCopy"),funct:mxUtils.bind(this,function(){this.hideDialog();var D=new LocalFile(this,B.fallbackFileData,this.defaultFilename,
+!0);this.fileLoaded(D)})}),this.handleError(B,mxResources.get("errorLoadingFile"),c,!0,null,null,!0))}else v();return q};EditorUi.prototype.getHashValueForPages=function(c,d){var k=0,m=new mxGraphModel,q=new mxCodec;null!=d&&(d.byteCount=0,d.attrCount=0,d.eltCount=0,d.nodeCount=0);for(var v=0;v<c.length;v++){this.updatePageRoot(c[v]);var A=c[v].node.cloneNode(!1);A.removeAttribute("name");m.root=c[v].root;var B=q.encode(m);this.editor.graph.saveViewState(c[v].viewState,B,!0);B.removeAttribute("pageWidth");
+B.removeAttribute("pageHeight");A.appendChild(B);null!=d&&(d.eltCount+=A.getElementsByTagName("*").length,d.nodeCount+=A.getElementsByTagName("mxCell").length);k=(k<<5)-k+this.hashValue(A,function(D,J,F,T){return!T||"mxGeometry"!=D.nodeName&&"mxPoint"!=D.nodeName||"x"!=J&&"y"!=J&&"width"!=J&&"height"!=J?T&&"mxCell"==D.nodeName&&"previous"==J?null:F:Math.round(F)},d)<<0}return k};EditorUi.prototype.hashValue=function(c,d,k){var m=0;if(null!=c&&"object"===typeof c&&"number"===typeof c.nodeType&&"string"===
typeof c.nodeName&&"function"===typeof c.getAttribute){null!=c.nodeName&&(m^=this.hashValue(c.nodeName,d,k));if(null!=c.attributes){null!=k&&(k.attrCount+=c.attributes.length);for(var q=0;q<c.attributes.length;q++){var v=c.attributes[q].name,A=null!=d?d(c,v,c.attributes[q].value,!0):c.attributes[q].value;null!=A&&(m^=this.hashValue(v,d,k)+this.hashValue(A,d,k))}}if(null!=c.childNodes)for(q=0;q<c.childNodes.length;q++)m=(m<<5)-m+this.hashValue(c.childNodes[q],d,k)<<0}else if(null!=c&&"function"!==
typeof c){c=String(c);d=0;null!=k&&(k.byteCount+=c.length);for(q=0;q<c.length;q++)d=(d<<5)-d+c.charCodeAt(q)<<0;m^=d}return m};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(c,d,k,m,q,v,A){};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(c){if(null==c||"<mxfile"==c.substring(0,7))c=this.emptyLibraryXml;this.loadLibrary(new StorageLibrary(this,c,".scratchpad"))})):this.closeLibrary(this.scratchpad))};EditorUi.prototype.createLibraryDataFromImages=function(c){if(!Editor.defaultCompressed)for(var d=0;d<c.length;d++)null!=c[d].xml&&"<"!=c[d].xml.charAt(0)&&(c[d].xml=mxUtils.trim(Graph.decompress(c[d].xml)));d=mxUtils.createXmlDocument();var k=d.createElement("mxlibrary");mxUtils.setTextContent(k,
@@ -13312,224 +13318,224 @@ function(c,d){var k=this.sidebar.getEntryContainer();if(!this.sidebar.appendCust
this.libraryLoaded(c,m,k.documentElement.getAttribute("title"),d,k.documentElement.getAttribute("tags"))}else throw{message:mxResources.get("notALibraryFile")};};EditorUi.prototype.getLibraryStorageHint=function(c){return""};EditorUi.prototype.showSidebar=function(){null!=this.sidebarWindow?this.sidebarWindow.window.setVisible(!0):this.toggleShapesPanel(!0)};EditorUi.prototype.showSearchWindow=function(c,d){var k=c?"findReplace":"find",m=k+"Window";if(null==this[m]){var q="min"==Editor.currentTheme||
"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme,v=c?q?330:300:240;this[m]=new FindWindow(this,document.body.offsetWidth-(v+20),100,v,c?q?304:288:180,c);this[m].window.addListener("show",function(){this.fireEvent(new mxEventObject(k))});this[m].window.addListener("hide",function(){this.fireEvent(new mxEventObject(k))});this[m].window.setVisible(!0)}else null==d&&this[m].window.setVisible(!this[m].window.isVisible());null!=d&&(this[m].doSearch(d),this[m].window.setVisible(!0))};EditorUi.prototype.libraryLoaded=
function(c,d,k,m,q){if(null!=this.sidebar){c.constructor!=LocalLibrary&&mxSettings.addCustomLibrary(c.getHash());var v=null;if(c.constructor!=StorageLibrary||".scratchpad"!=c.title){null==this.openLibraries&&(this.openLibraries=[]);for(var A=0;A<this.openLibraries.length;A++)if(this.openLibraries[A].file.getHash()==c.getHash()){mxUtils.remove(this.openLibraries[A],this.openLibraries);break}v={file:c,images:d,title:k,expand:m};this.openLibraries.push(v)}else this.scratchpad=c;A=this.sidebar.palettes[c.getHash()];
-A=null!=A?A[A.length-1].nextSibling:null;this.removeLibrarySidebar(c.getHash());var C=null,D=mxUtils.bind(this,function(g,t){0==g.length&&c.isEditable()?(null==C&&(C=document.createElement("div"),C.className="geDropTarget",mxUtils.write(C,mxResources.get("dragElementsHere"))),t.appendChild(C)):this.addLibraryEntries(g,t)});null!=this.sidebar&&null!=d&&(this.sidebar.setCurrentSearchEntryLibrary(c.getHash(),c.getHash()),this.sidebar.addEntries(d,q),this.sidebar.setCurrentSearchEntryLibrary());null==
+A=null!=A?A[A.length-1].nextSibling:null;this.removeLibrarySidebar(c.getHash());var B=null,D=mxUtils.bind(this,function(g,t){0==g.length&&c.isEditable()?(null==B&&(B=document.createElement("div"),B.className="geDropTarget",mxUtils.write(B,mxResources.get("dragElementsHere"))),t.appendChild(B)):this.addLibraryEntries(g,t)});null!=this.sidebar&&null!=d&&(this.sidebar.setCurrentSearchEntryLibrary(c.getHash(),c.getHash()),this.sidebar.addEntries(d,q),this.sidebar.setCurrentSearchEntryLibrary());null==
k&&(k=c.getTitle(),null!=k&&/(\.xml)$/i.test(k)&&(k=k.substring(0,k.lastIndexOf("."))));var J=this.sidebar.addPalette(c.getHash(),k,null!=m?m:!0,mxUtils.bind(this,function(g){D(d,g)}));null!=v&&(v.div=J);this.repositionLibrary(A,"L.scratchpad"!=c.getHash());m=J.parentNode.previousSibling;k=m.getAttribute("title");null!=k&&0<k.length&&".scratchpad"!=c.title&&m.setAttribute("title",this.getLibraryStorageHint(c)+"\n"+k);var F=document.createElement("div");F.style.backgroundColor="inherit";m.style.position=
"relative";var T=document.createElement("img");T.className="geLibraryButton";T.setAttribute("src",Editor.crossImage);T.setAttribute("title",mxResources.get("close"));var W=null;if(".scratchpad"!=c.title||this.closableScratchpad)F.appendChild(T),mxEvent.addListener(T,"click",mxUtils.bind(this,function(g){if(!mxEvent.isConsumed(g)){var t=mxUtils.bind(this,function(){null!=v&&mxUtils.remove(v,this.openLibraries);this.closeLibrary(c)});null!=W?this.confirm(mxResources.get("allChangesLost"),null,t,mxResources.get("cancel"),
mxResources.get("discardChanges")):t();mxEvent.consume(g)}}));if(c.isEditable()){var p=this.editor.graph,u=null;k=mxUtils.bind(this,function(g){this.showLibraryDialog(c.getTitle(),J,d,c,c.getMode());mxEvent.consume(g)});var G=mxUtils.bind(this,function(g){c.setModified(!0);c.isAutosave()?(null!=u&&null!=u.parentNode&&u.parentNode.removeChild(u),u=T.cloneNode(!1),u.setAttribute("src",Editor.spinImage),u.setAttribute("title",mxResources.get("saving")),u.style.cursor="default",u.style.marginRight="2px",
u.style.marginTop="-2px",F.insertBefore(u,F.firstChild),this.saveLibrary(c.getTitle(),d,c,c.getMode(),!0,!0,function(){null!=u&&null!=u.parentNode&&u.parentNode.removeChild(u)})):null==W&&(W=T.cloneNode(!1),W.setAttribute("src",Editor.saveImage),W.setAttribute("title",mxResources.get("save")),F.insertBefore(W,F.firstChild),mxEvent.addListener(W,"click",mxUtils.bind(this,function(t){this.saveLibrary(c.getTitle(),d,c,c.getMode(),c.constructor==LocalLibrary,!0,function(){null==W||c.isModified()||(W.parentNode.removeChild(W),
-W=null)});mxEvent.consume(t)})))}),I=mxUtils.bind(this,function(g,t,B,K){g=p.cloneCells(mxUtils.sortCells(p.model.getTopmostCells(g)));for(var Q=0;Q<g.length;Q++){var S=p.getCellGeometry(g[Q]);null!=S&&S.translate(-t.x,-t.y)}J.appendChild(this.sidebar.createVertexTemplateFromCells(g,t.width,t.height,K||"",!0,null,!1));g=mxUtils.getXml(this.editor.graph.encodeCells(g));Editor.defaultCompressed&&(g=Graph.compress(g));t={xml:g,w:t.width,h:t.height};null!=K&&(t.title=K);d.push(t);G(B);null!=C&&null!=
-C.parentNode&&0<d.length&&(C.parentNode.removeChild(C),C=null)}),H=mxUtils.bind(this,function(g){if(p.isSelectionEmpty())p.getRubberband().isActive()?(p.getRubberband().execute(g),p.getRubberband().reset()):null!=g&&mxEvent.getSource(g).classList.contains("geLibraryButton")&&this.showError(mxResources.get("error"),mxResources.get("nothingIsSelected"),mxResources.get("ok"));else{var t=p.getSelectionCells(),B=p.view.getBounds(t);if(null!=B&&0<B.width&&0<B.height){var K=p.view.scale;B.x/=K;B.y/=K;B.width/=
-K;B.height/=K;B.x-=p.view.translate.x;B.y-=p.view.translate.y;I(t,B)}else this.showError(mxResources.get("error"),mxResources.get("invalidSel"),mxResources.get("ok"))}mxEvent.consume(g)});mxEvent.addGestureListeners(J,function(){},mxUtils.bind(this,function(g){p.isMouseDown&&null!=p.panningManager&&null!=p.graphHandler.first&&(p.graphHandler.suspend(),null!=p.graphHandler.hint&&(p.graphHandler.hint.style.visibility="hidden"),J.style.backgroundColor="light-dark(#fefefe, #000000)",J.style.cursor="copy",
+W=null)});mxEvent.consume(t)})))}),I=mxUtils.bind(this,function(g,t,C,K){g=p.cloneCells(mxUtils.sortCells(p.model.getTopmostCells(g)));for(var Q=0;Q<g.length;Q++){var S=p.getCellGeometry(g[Q]);null!=S&&S.translate(-t.x,-t.y)}J.appendChild(this.sidebar.createVertexTemplateFromCells(g,t.width,t.height,K||"",!0,null,!1));g=mxUtils.getXml(this.editor.graph.encodeCells(g));Editor.defaultCompressed&&(g=Graph.compress(g));t={xml:g,w:t.width,h:t.height};null!=K&&(t.title=K);d.push(t);G(C);null!=B&&null!=
+B.parentNode&&0<d.length&&(B.parentNode.removeChild(B),B=null)}),H=mxUtils.bind(this,function(g){if(p.isSelectionEmpty())p.getRubberband().isActive()?(p.getRubberband().execute(g),p.getRubberband().reset()):null!=g&&mxEvent.getSource(g).classList.contains("geLibraryButton")&&this.showError(mxResources.get("error"),mxResources.get("nothingIsSelected"),mxResources.get("ok"));else{var t=p.getSelectionCells(),C=p.view.getBounds(t);if(null!=C&&0<C.width&&0<C.height){var K=p.view.scale;C.x/=K;C.y/=K;C.width/=
+K;C.height/=K;C.x-=p.view.translate.x;C.y-=p.view.translate.y;I(t,C)}else this.showError(mxResources.get("error"),mxResources.get("invalidSel"),mxResources.get("ok"))}mxEvent.consume(g)});mxEvent.addGestureListeners(J,function(){},mxUtils.bind(this,function(g){p.isMouseDown&&null!=p.panningManager&&null!=p.graphHandler.first&&(p.graphHandler.suspend(),null!=p.graphHandler.hint&&(p.graphHandler.hint.style.visibility="hidden"),J.style.backgroundColor="light-dark(#fefefe, #000000)",J.style.cursor="copy",
p.panningManager.stop(),p.autoScroll=!1,mxEvent.consume(g))}),mxUtils.bind(this,function(g){p.isMouseDown&&null!=p.panningManager&&null!=p.graphHandler&&(J.style.backgroundColor="",J.style.cursor="default",this.sidebar.showTooltips=!0,p.panningManager.stop(),p.graphHandler.reset(),p.isMouseDown=!1,p.autoScroll=!0,H(g),mxEvent.consume(g))}));mxEvent.addListener(J,"mouseleave",mxUtils.bind(this,function(g){p.isMouseDown&&null!=p.graphHandler.first&&(p.graphHandler.resume(),null!=p.graphHandler.hint&&
(p.graphHandler.hint.style.visibility="visible"),J.style.backgroundColor="",J.style.cursor="",p.autoScroll=!0)}));Graph.fileSupport&&(mxEvent.addListener(J,"dragover",mxUtils.bind(this,function(g){J.style.backgroundColor="light-dark(#fefefe, #000000)";g.dataTransfer.dropEffect="copy";J.style.cursor="copy";this.sidebar.hideTooltip();g.stopPropagation();g.preventDefault()})),mxEvent.addListener(J,"drop",mxUtils.bind(this,function(g){J.style.cursor="";J.style.backgroundColor="";0<g.dataTransfer.files.length&&
-this.importFiles(g.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(t,B,K,Q,S,U,N,P,V){if(null!=t&&"image/"==B.substring(0,6))t="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(t),t=[new mxCell("",new mxGeometry(0,0,S,U),t)],t[0].vertex=!0,I(t,new mxRectangle(0,0,S,U),g,mxEvent.isAltDown(g)?null:N.substring(0,N.lastIndexOf(".")).replace(/_/g," ")),null!=C&&null!=C.parentNode&&0<d.length&&(C.parentNode.removeChild(C),
-C=null);else{var Y=!1,X=mxUtils.bind(this,function(Z,aa){null!=Z&&"application/pdf"==aa&&(aa=Editor.extractGraphModelFromPdf(Z),null!=aa&&0<aa.length&&(Z=aa));if(null!=Z)if(Z=mxUtils.parseXml(Z),"mxlibrary"==Z.documentElement.nodeName)try{var ea=JSON.parse(mxUtils.getTextContent(Z.documentElement));D(ea,J);d=d.concat(ea);G(g);this.spinner.stop();Y=!0}catch(la){}else if("mxfile"==Z.documentElement.nodeName)try{var ha=Z.documentElement.getElementsByTagName("diagram");for(ea=0;ea<ha.length;ea++){var ba=
-this.stringToCells(Editor.getDiagramNodeXml(ha[ea])),ia=this.editor.graph.getBoundingBoxFromGeometry(ba);null!=ia&&I(ba,new mxRectangle(0,0,ia.width,ia.height),g)}Y=!0}catch(la){null!=window.console&&console.log("error in drop handler:",la)}Y||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));null!=C&&null!=C.parentNode&&0<d.length&&(C.parentNode.removeChild(C),C=null)});null!=V&&null!=N&&EditorUi.isVisioFilename(N)?this.importVisio(V,function(Z){X(Z,"text/xml")},
-null,N):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(t,N)&&null!=V?this.isExternalDataComms()?this.parseFile(V,mxUtils.bind(this,function(Z){4==Z.readyState&&(this.spinner.stop(),200<=Z.status&&299>=Z.status?X(Z.responseText,"text/xml"):this.handleError({message:mxResources.get(413==Z.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):X(t,B)}}));g.stopPropagation();
+this.importFiles(g.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(t,C,K,Q,S,U,N,P,V){if(null!=t&&"image/"==C.substring(0,6))t="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(t),t=[new mxCell("",new mxGeometry(0,0,S,U),t)],t[0].vertex=!0,I(t,new mxRectangle(0,0,S,U),g,mxEvent.isAltDown(g)?null:N.substring(0,N.lastIndexOf(".")).replace(/_/g," ")),null!=B&&null!=B.parentNode&&0<d.length&&(B.parentNode.removeChild(B),
+B=null);else{var Y=!1,X=mxUtils.bind(this,function(Z,aa){null!=Z&&"application/pdf"==aa&&(aa=Editor.extractGraphModelFromPdf(Z),null!=aa&&0<aa.length&&(Z=aa));if(null!=Z)if(Z=mxUtils.parseXml(Z),"mxlibrary"==Z.documentElement.nodeName)try{var ea=JSON.parse(mxUtils.getTextContent(Z.documentElement));D(ea,J);d=d.concat(ea);G(g);this.spinner.stop();Y=!0}catch(la){}else if("mxfile"==Z.documentElement.nodeName)try{var ha=Z.documentElement.getElementsByTagName("diagram");for(ea=0;ea<ha.length;ea++){var ba=
+this.stringToCells(Editor.getDiagramNodeXml(ha[ea])),ia=this.editor.graph.getBoundingBoxFromGeometry(ba);null!=ia&&I(ba,new mxRectangle(0,0,ia.width,ia.height),g)}Y=!0}catch(la){null!=window.console&&console.log("error in drop handler:",la)}Y||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));null!=B&&null!=B.parentNode&&0<d.length&&(B.parentNode.removeChild(B),B=null)});null!=V&&null!=N&&EditorUi.isVisioFilename(N)?this.importVisio(V,function(Z){X(Z,"text/xml")},
+null,N):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(t,N)&&null!=V?this.isExternalDataComms()?this.parseFile(V,mxUtils.bind(this,function(Z){4==Z.readyState&&(this.spinner.stop(),200<=Z.status&&299>=Z.status?X(Z.responseText,"text/xml"):this.handleError({message:mxResources.get(413==Z.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):X(t,C)}}));g.stopPropagation();
g.preventDefault()})),mxEvent.addListener(J,"dragleave",function(g){J.style.cursor="";J.style.backgroundColor="";g.stopPropagation();g.preventDefault()}));T=T.cloneNode(!1);T.setAttribute("src",Editor.editImage);T.setAttribute("title",mxResources.get("edit"));F.insertBefore(T,F.firstChild);mxEvent.addListener(T,"click",k);k=T.cloneNode(!1);k.setAttribute("src",Editor.plusImage);k.setAttribute("title",mxResources.get("add"));F.insertBefore(k,F.firstChild);mxEvent.addListener(k,"click",H);".scratchpad"==
c.title&&(this.addSelectionToScratchpad=H);this.isOffline()||".scratchpad"!=c.title||null==EditorUi.scratchpadHelpLink||(k=this.createHelpIcon(EditorUi.scratchpadHelpLink,!0),k.className="geLibraryButton",F.insertBefore(k,F.firstChild))}m.appendChild(F);this.editor.fireEvent(new mxEventObject("libraryLoaded"))}};EditorUi.prototype.addLibraryEntries=function(c,d){for(var k=0;k<c.length;k++)try{var m=c[k],q=m.data;if(null!=q){q="data:"==q.substring(0,5)?this.convertDataUri(q):q;var v="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";
-"fixed"==m.aspect&&(v+="aspect=fixed;");v=v+"image="+q+";";null!=m.style&&(v+=m.style);d.appendChild(this.sidebar.createVertexTemplate(v,m.w,m.h,"",m.title||"",!1,null,!0))}else if(null!=m.xml){var A=this.stringToCells("<"==m.xml.charAt(0)?m.xml:Graph.decompress(m.xml)),C=0==A.length?mxResources.get("drawingEmpty"):null!=m.title?m.title:"";d.appendChild(this.sidebar.createVertexTemplateFromCells(A,m.w,m.h,C,!0,null,!0))}}catch(D){C=null!=D.message?mxResources.get("error")+": "+D.message:String(D),
-v=this.sidebar.createVertexTemplateFromCells(null,m.w,m.h,C,!0,null,!0),d.appendChild(v)}};EditorUi.prototype.getResource=function(c){return null!=c?c[mxLanguage]||c.main:null};"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64);EditorUi.initTheme=function(){"sketch"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD||(Editor.configurationKey=".sketch-configuration",Editor.settingsKey=".sketch-config")};EditorUi.initTheme();EditorUi.prototype.showImageDialog=
-function(c,d,k,m,q,v,A){c=new ImageDialog(this,c,d,k,m,q,v,A);this.showDialog(c.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);c.init()};EditorUi.prototype.showLocalStorageDialog=function(c,d,k,m,q,v){var A=localStorage.getItem(d);c=new TextareaDialog(this,c,null!=A?JSON.stringify(JSON.parse(A),null,2):"",mxUtils.bind(this,function(C){if(null!=C)try{if(null!=v&&v(C),C==A)this.hideDialog();else{if(0<C.length){var D=JSON.parse(C);localStorage.setItem(d,JSON.stringify(D))}else localStorage.removeItem(d);
+"fixed"==m.aspect&&(v+="aspect=fixed;");v=v+"image="+q+";";null!=m.style&&(v+=m.style);d.appendChild(this.sidebar.createVertexTemplate(v,m.w,m.h,"",m.title||"",!1,null,!0))}else if(null!=m.xml){var A=this.stringToCells("<"==m.xml.charAt(0)?m.xml:Graph.decompress(m.xml)),B=0==A.length?mxResources.get("drawingEmpty"):null!=m.title?m.title:"";d.appendChild(this.sidebar.createVertexTemplateFromCells(A,m.w,m.h,B,!0,null,!0))}}catch(D){B=null!=D.message?mxResources.get("error")+": "+D.message:String(D),
+v=this.sidebar.createVertexTemplateFromCells(null,m.w,m.h,B,!0,null,!0),d.appendChild(v)}};EditorUi.prototype.getResource=function(c){return null!=c?c[mxLanguage]||c.main:null};"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64);EditorUi.initTheme=function(){"sketch"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD||(Editor.configurationKey=".sketch-configuration",Editor.settingsKey=".sketch-config")};EditorUi.initTheme();EditorUi.prototype.showImageDialog=
+function(c,d,k,m,q,v,A){c=new ImageDialog(this,c,d,k,m,q,v,A);this.showDialog(c.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);c.init()};EditorUi.prototype.showLocalStorageDialog=function(c,d,k,m,q,v){var A=localStorage.getItem(d);c=new TextareaDialog(this,c,null!=A?JSON.stringify(JSON.parse(A),null,2):"",mxUtils.bind(this,function(B){if(null!=B)try{if(null!=v&&v(B),B==A)this.hideDialog();else{if(0<B.length){var D=JSON.parse(B);localStorage.setItem(d,JSON.stringify(D))}else localStorage.removeItem(d);
this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(J){this.handleError(J)}}),null,mxResources.get("close"),null,null,null,!0,null,null,q,k,m);this.showDialog(c.container,660,480,!0,!1,null,null,null,new mxRectangle(0,0,null!=k&&2<k.length?500:440,280));c.init()};EditorUi.prototype.showConfigurationEditorDialog=function(c,d,k,m,q,v){function A(N,P){var V=document.createElement("div");V.style.padding="4px 16px";V.style.cursor="pointer";V.style.fontSize="13px";V.style.borderBottom=
-P?"2px solid #29b6f2":"2px solid transparent";V.style.fontWeight=P?"bold":"normal";V.style.color=P?"":"#888";V.style.userSelect="none";mxUtils.write(V,N);return V}function C(N){if(N!==W){if("json"===N)null!=T&&(K.value=JSON.stringify(T,null,2)),H.style.display="none",B.style.display="",G.style.borderBottomColor="#29b6f2",G.style.fontWeight="bold",G.style.color="",u.style.borderBottomColor="transparent",u.style.fontWeight="normal",u.style.color="#888",K.focus();else{try{var P=JSON.parse(K.value);T=
-P;null!=g.contentWindow&&g.contentWindow.postMessage({type:"setConfig",config:P},"*")}catch(V){}H.style.display="";B.style.display="none";u.style.borderBottomColor="#29b6f2";u.style.fontWeight="bold";u.style.color="";G.style.borderBottomColor="transparent";G.style.fontWeight="normal";G.style.color="#888"}W=N}}var D=this,J=localStorage.getItem(d),F={};try{null!=J&&(F=JSON.parse(J))}catch(N){}var T=F,W="editor";c=document.createElement("div");c.style.position="absolute";c.style.top="20px";c.style.bottom=
+P?"2px solid #29b6f2":"2px solid transparent";V.style.fontWeight=P?"bold":"normal";V.style.color=P?"":"#888";V.style.userSelect="none";mxUtils.write(V,N);return V}function B(N){if(N!==W){if("json"===N)null!=T&&(K.value=JSON.stringify(T,null,2)),H.style.display="none",C.style.display="",G.style.borderBottomColor="#29b6f2",G.style.fontWeight="bold",G.style.color="",u.style.borderBottomColor="transparent",u.style.fontWeight="normal",u.style.color="#888",K.focus();else{try{var P=JSON.parse(K.value);T=
+P;null!=g.contentWindow&&g.contentWindow.postMessage({type:"setConfig",config:P},"*")}catch(V){}H.style.display="";C.style.display="none";u.style.borderBottomColor="#29b6f2";u.style.fontWeight="bold";u.style.color="";G.style.borderBottomColor="transparent";G.style.fontWeight="normal";G.style.color="#888"}W=N}}var D=this,J=localStorage.getItem(d),F={};try{null!=J&&(F=JSON.parse(J))}catch(N){}var T=F,W="editor";c=document.createElement("div");c.style.position="absolute";c.style.top="20px";c.style.bottom=
"20px";c.style.left="20px";c.style.right="20px";var p=document.createElement("div");p.style.position="absolute";p.style.left="0";p.style.right="0";p.style.top="0";p.style.height="28px";p.style.display="flex";p.style.alignItems="end";p.style.borderBottom="1px solid #d0d0d0";var u=A(mxResources.get("editor",null,"Editor"),!0),G=A("JSON",!1);p.appendChild(u);p.appendChild(G);if(null!=m){var I=document.createElement("div");I.style.marginLeft="auto";I.style.display="flex";I.style.alignItems="center";I.style.paddingRight=
"4px";I.style.paddingBottom="2px";I.appendChild(m);p.appendChild(I)}c.appendChild(p);var H=document.createElement("div");H.style.position="absolute";H.style.left="0";H.style.right="0";H.style.top="30px";H.style.bottom="50px";var g=document.createElement("iframe");g.style.width="100%";g.style.height="100%";g.style.border="none";g.style.borderRadius="4px";m=window.DRAWIO_BASE_URL||"";0<m.length&&"/"===m.charAt(m.length-1)&&(m=m.substring(0,m.length-1));p={};try{var t=D.editor.graph;null!=t.currentVertexStyle&&
-(p.currentVertexStyle=t.currentVertexStyle);null!=t.currentEdgeStyle&&(p.currentEdgeStyle=t.currentEdgeStyle)}catch(N){}g.src=m+"/config-editor.html#"+encodeURIComponent(JSON.stringify(p));H.appendChild(g);var B=document.createElement("div");B.style.position="absolute";B.style.left="0";B.style.right="0";B.style.top="30px";B.style.bottom="50px";B.style.display="none";var K=document.createElement("textarea");K.setAttribute("wrap","off");K.setAttribute("spellcheck","false");K.setAttribute("autocorrect",
-"off");K.setAttribute("autocomplete","off");K.setAttribute("autocapitalize","off");K.style.resize="none";K.style.outline="none";K.style.boxSizing="border-box";K.style.width="100%";K.style.height="100%";try{K.value=null!=J?JSON.stringify(JSON.parse(J),null,2):""}catch(N){K.value=J||""}B.appendChild(K);c.appendChild(H);c.appendChild(B);mxEvent.addListener(u,"click",function(){C("editor")});mxEvent.addListener(G,"click",function(){C("json")});var Q=function(N){null!=g.contentWindow&&N.source===g.contentWindow&&
+(p.currentVertexStyle=t.currentVertexStyle);null!=t.currentEdgeStyle&&(p.currentEdgeStyle=t.currentEdgeStyle)}catch(N){}g.src=m+"/config-editor.html#"+encodeURIComponent(JSON.stringify(p));H.appendChild(g);var C=document.createElement("div");C.style.position="absolute";C.style.left="0";C.style.right="0";C.style.top="30px";C.style.bottom="50px";C.style.display="none";var K=document.createElement("textarea");K.setAttribute("wrap","off");K.setAttribute("spellcheck","false");K.setAttribute("autocorrect",
+"off");K.setAttribute("autocomplete","off");K.setAttribute("autocapitalize","off");K.style.resize="none";K.style.outline="none";K.style.boxSizing="border-box";K.style.width="100%";K.style.height="100%";try{K.value=null!=J?JSON.stringify(JSON.parse(J),null,2):""}catch(N){K.value=J||""}C.appendChild(K);c.appendChild(H);c.appendChild(C);mxEvent.addListener(u,"click",function(){B("editor")});mxEvent.addListener(G,"click",function(){B("json")});var Q=function(N){null!=g.contentWindow&&N.source===g.contentWindow&&
null!=N.data&&("configChanged"===N.data.type?T=N.data.config:"ready"===N.data.type&&(g.contentWindow.postMessage({type:"setConfig",config:F},"*"),null!=Editor.isDarkMode&&Editor.isDarkMode()&&g.contentWindow.postMessage({type:"setDarkMode",dark:!0},"*"),D.isHighContrast()&&g.contentWindow.postMessage({type:"setHighContrast",highContrast:!0},"*")))};window.addEventListener("message",Q);var S=document.createElement("div");S.style.position="absolute";S.style.left="0";S.style.right="0";S.style.bottom=
"0";S.style.height="46px";S.style.display="flex";S.style.whiteSpace="nowrap";S.style.alignItems="center";S.style.justifyContent="end";S.style.paddingTop="10px";S.style.paddingBottom="10px";S.style.boxSizing="border-box";null==q||D.isOffline()||S.appendChild(D.createHelpIcon(q));if(null!=k)for(q=0;q<k.length;q++)(function(N,P,V){N=mxUtils.button(N,function(Y){"editor"===W&&null!=T&&(K.value=JSON.stringify(T,null,2));P(Y,K)});null!=V&&N.setAttribute("title",V);N.className="geBtn";S.appendChild(N)})(k[q][0],
k[q][1],k[q][2]);q=mxUtils.button(mxResources.get("close"),function(){D.hideDialog()});q.setAttribute("title","Escape");q.className="geBtn";var U=mxUtils.button(mxResources.get("apply"),function(){var N="editor"===W?null!=T&&0<Object.keys(T).length?JSON.stringify(T,null,2):"":K.value;try{if(null!=v&&v(N),N==J)D.hideDialog();else{if(0<N.length){var P=JSON.parse(N);localStorage.setItem(d,JSON.stringify(P))}else localStorage.removeItem(d);D.hideDialog();D.alert(mxResources.get("restartForChangeRequired"))}}catch(V){D.handleError(V)}});
U.className="geBtn gePrimaryBtn";D.editor.cancelFirst?(S.appendChild(q),S.appendChild(U)):(S.appendChild(U),S.appendChild(q));c.appendChild(S);mxEvent.addListener(c,"keydown",function(N){13===N.keyCode&&mxEvent.isControlDown(N)&&U.click()});D.showDialog(c,800,600,!0,!1,function(){window.removeEventListener("message",Q)},null,null,new mxRectangle(0,0,null!=k&&2<k.length?500:440,400));K.scrollTop=0};EditorUi.prototype.showBackgroundImageDialog=function(c,d,k,m){c=null!=c?c:mxUtils.bind(this,function(q,
-v,A,C){v||(q=new ChangePageSetup(this,m?A:null,q),q.ignoreColor=!m,null!=C&&m&&(q.shadowVisible=C),this.editor.graph.model.execute(q))});c=new BackgroundImageDialog(this,c,d,k,m);this.showDialog(c.container,400,m?240:220,!0,!0);c.init()};EditorUi.prototype.showLibraryDialog=function(c,d,k,m,q){c=new LibraryDialog(this,c,d,k,m,q);this.showDialog(c.container,640,440,!0,!1,mxUtils.bind(this,function(v){v&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));c.init()};var n=EditorUi.prototype.createFormat;
-EditorUi.prototype.createFormat=function(c){var d=n.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(k){this.editor.graph.isSelectionEmpty()&&d.refresh()}));return d};EditorUi.prototype.handleError=function(c,d,k,m,q,v,A){var C=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},D=null!=c&&null!=c.error?c.error:c;if(null!=c&&("1"==urlParams.test||null!=c.stack)&&null!=c.message)try{A||EditorUi.logError("Caught: "+(""==c.message&&
-null!=c.name)?c.name:c.message,c.filename,c.lineNumber,c.columnNumber,c,"INFO"),"1"!=urlParams.test&&!A||null==window.console||console.error("EditorUi.handleError:",c)}catch(W){}if(null!=D||null!=d){A=mxUtils.htmlEntities(mxResources.get("unknownError"),!1);var J=mxResources.get("ok"),F=null;d=null!=d?d:mxResources.get("error");if(null!=D){null!=D.retry&&(J=mxResources.get("cancel"),F=function(){C();D.retry()});if(404==D.code||404==D.status||403==D.code){A=403==D.code?null!=D.message?mxUtils.htmlEntities(D.message,
+v,A,B){v||(q=new ChangePageSetup(this,m?A:null,q),q.ignoreColor=!m,null!=B&&m&&(q.shadowVisible=B),this.editor.graph.model.execute(q))});c=new BackgroundImageDialog(this,c,d,k,m);this.showDialog(c.container,400,m?240:220,!0,!0);c.init()};EditorUi.prototype.showLibraryDialog=function(c,d,k,m,q){c=new LibraryDialog(this,c,d,k,m,q);this.showDialog(c.container,640,440,!0,!1,mxUtils.bind(this,function(v){v&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));c.init()};var n=EditorUi.prototype.createFormat;
+EditorUi.prototype.createFormat=function(c){var d=n.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(k){this.editor.graph.isSelectionEmpty()&&d.refresh()}));return d};EditorUi.prototype.handleError=function(c,d,k,m,q,v,A){var B=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},D=null!=c&&null!=c.error?c.error:c;if(null!=c&&("1"==urlParams.test||null!=c.stack)&&null!=c.message)try{A||EditorUi.logError("Caught: "+(""==c.message&&
+null!=c.name)?c.name:c.message,c.filename,c.lineNumber,c.columnNumber,c,"INFO"),"1"!=urlParams.test&&!A||null==window.console||console.error("EditorUi.handleError:",c)}catch(W){}if(null!=D||null!=d){A=mxUtils.htmlEntities(mxResources.get("unknownError"),!1);var J=mxResources.get("ok"),F=null;d=null!=d?d:mxResources.get("error");if(null!=D){null!=D.retry&&(J=mxResources.get("cancel"),F=function(){B();D.retry()});if(404==D.code||404==D.status||403==D.code){A=403==D.code?null!=D.message?mxUtils.htmlEntities(D.message,
!1):mxUtils.htmlEntities(mxResources.get("accessDenied"),!1):null!=q?q:mxUtils.htmlEntities(mxResources.get("fileNotFoundOrDenied")+(null!=this.drive&&null!=this.drive.user?" ("+this.drive.user.email+")":""),!1);var T=null!=q?null:null!=v?v: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!=c&&null!=c.error&&(null!=c.error.errors&&0<c.error.errors.length&&"fileAccess"==c.error.errors[0].reason||null!=c.error.data&&
0<c.error.data.length&&"fileAccess"==c.error.data[0].reason)||404==D.code||404==D.status)){T="#U"==T.substring(0,2)?T.substring(45,T.lastIndexOf("%26ex")):T.substring(2);this.showError(d,A,mxResources.get("tryOpeningViaThisPage"),mxUtils.bind(this,function(){this.editor.graph.openLink("https://drive.google.com/open?id="+T);null!=m&&m()}),F,mxResources.get("changeUser"),mxUtils.bind(this,function(){function W(){I.innerText="";for(var H=0;H<p.length;H++){var g=document.createElement("option");mxUtils.write(g,
p[H].displayName);g.value=H;I.appendChild(g);g=document.createElement("option");g.innerHTML="&nbsp;&nbsp;&nbsp;";mxUtils.write(g,"<"+p[H].email+">");g.setAttribute("disabled","disabled");I.appendChild(g)}g=document.createElement("option");mxUtils.write(g,mxResources.get("addAccount"));g.value=p.length;I.appendChild(g)}var p=this.drive.getUsersList(),u=document.createElement("div"),G=document.createElement("div");G.style.marginBottom="6px";mxUtils.write(G,mxResources.get("changeUser")+": ");u.appendChild(G);
var I=document.createElement("select");I.style.width="100%";W();mxEvent.addListener(I,"change",mxUtils.bind(this,function(){var H=I.value,g=p.length!=H;g&&this.drive.setUser(p[H]);this.drive.authorize(g,mxUtils.bind(this,function(){g||(p=this.drive.getUsersList(),W())}),mxUtils.bind(this,function(t){this.handleError(t)}),!0)}));u.appendChild(I);u=new CustomDialog(this,u,mxUtils.bind(this,function(){this.loadFile(window.location.hash.substr(1),!0)}));this.showDialog(u.container,300,100,!0,!0)}),mxResources.get("cancel"),
mxUtils.bind(this,function(){this.hideDialog();null!=k&&k()}),520,150);return}}null!=D.message?A=""==D.message&&null!=D.name?mxUtils.htmlEntities(D.name,!1):mxUtils.htmlEntities(D.message,!1):null!=D.response&&null!=D.response.error?A=mxUtils.htmlEntities(D.response.error,!1):"undefined"!==typeof window.App&&(D.code==App.ERROR_TIMEOUT?A=mxUtils.htmlEntities(mxResources.get("timeout"),!1):D.code==App.ERROR_BUSY?A=mxUtils.htmlEntities(mxResources.get("busy"),!1):"string"===typeof D&&0<D.length&&(A=
mxUtils.htmlEntities(D,!1)))}q=c=null;null!=D&&null!=D.helpLink?(c=mxResources.get("help"),q=mxUtils.bind(this,function(){return this.editor.graph.openLink(D.helpLink)})):null!=D&&null!=D.ownerEmail?(c=mxResources.get("contactOwner"),A+=mxUtils.htmlEntities(" ("+c+": "+D.ownerEmail+")",!1),q=mxUtils.bind(this,function(){return this.openLink("mailto:"+mxUtils.htmlEntities(D.ownerEmail))})):null!=D&&null!=D.alternateAction&&(c=D.alternateAction.label,q=D.alternateAction.funct);this.showError(d,A,J,
-k,F,null,null,c,q,null,null,null,m?k:null)}else null!=k&&k()};EditorUi.prototype.alert=function(c,d,k){c=new ErrorDialog(this,null,c,mxResources.get("ok"),d);this.showDialog(c.container,k||340,100,!0,!1);c.init()};EditorUi.prototype.confirm=function(c,d,k,m,q,v){c=null!=c?c:"";var A=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},C=Math.min(220,28*Math.ceil(Math.max(1,c.length)/50));c=new ConfirmDialog(this,c,function(){A();null!=d&&d()},function(){A();null!=k&&k()},
-m,q,null,null,null,null,C);this.showDialog(c.container,340,46+C,!0,v);c.init()};EditorUi.prototype.showBanner=function(c,d,k,m,q,v,A,C,D){v=!1;if(!(this.bannerShowing||this["hideBanner"+c]||isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings["close"+c])){A=null!=A?A:"translate(-50%,120%)";C=null!=C?C:"translate(-50%,0%)";var J=document.createElement("div");J.className="geBtn gePrimaryBtn geBanner"+(q?" geSmallBanner":"");J.style.zIndex=mxPopupMenu.prototype.zIndex;mxUtils.setPrefixedStyle(J.style,
+k,F,null,null,c,q,null,null,null,m?k:null)}else null!=k&&k()};EditorUi.prototype.alert=function(c,d,k){c=new ErrorDialog(this,null,c,mxResources.get("ok"),d);this.showDialog(c.container,k||340,100,!0,!1);c.init()};EditorUi.prototype.confirm=function(c,d,k,m,q,v){c=null!=c?c:"";var A=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},B=Math.min(220,28*Math.ceil(Math.max(1,c.length)/50));c=new ConfirmDialog(this,c,function(){A();null!=d&&d()},function(){A();null!=k&&k()},
+m,q,null,null,null,null,B);this.showDialog(c.container,340,46+B,!0,v);c.init()};EditorUi.prototype.showBanner=function(c,d,k,m,q,v,A,B,D){v=!1;if(!(this.bannerShowing||this["hideBanner"+c]||isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings["close"+c])){A=null!=A?A:"translate(-50%,120%)";B=null!=B?B:"translate(-50%,0%)";var J=document.createElement("div");J.className="geBtn gePrimaryBtn geBanner"+(q?" geSmallBanner":"");J.style.zIndex=mxPopupMenu.prototype.zIndex;mxUtils.setPrefixedStyle(J.style,
"transform",A);mxUtils.setPrefixedStyle(J.style,"transition","all 1000ms ease");null!=D&&mxUtils.setPrefixedStyle(J.style,"transform-origin",D);D=D=document.createElement("img");D.setAttribute("src",Editor.crossImage);D.setAttribute("title",mxResources.get(m?"doNotShowAgain":"close"));D.setAttribute("border","0");q||(v=document.createElement("img"),v.setAttribute("src",IMAGE_PATH+"/logo.png"),v.setAttribute("border","0"),v.setAttribute("align","absmiddle"),v.style.cssText="margin-top:-4px;margin-left:8px;margin-right:12px;width:26px;height:26px;",
J.appendChild(v),D.style.cssText=(q?"right:6px;top:9px;":"right:10px;top:12px;")+"position:absolute;filter:invert(1);padding:6px;margin:-6px;cursor:default;",J.appendChild(D));mxUtils.write(J,d);document.body.appendChild(J);this.bannerShowing=!0;q&&(D.className="geLibraryButton",J.appendChild(D));d=document.createElement("div");d.style.cssText="display:flex;align-items:center;justify-content:center;padding-top:6px;font-size:11px;text-align:center;font-weight:normal;";var F=document.createElement("input");
F.setAttribute("type","checkbox");F.setAttribute("id","geDoNotShowAgainCheckbox");F.style.marginRight="6px";if(!m){d.appendChild(F);var T=document.createElement("label");T.setAttribute("for","geDoNotShowAgainCheckbox");mxUtils.write(T,mxResources.get("doNotShowAgain"));d.appendChild(T);J.style.paddingBottom=q?"16px":"30px";J.appendChild(d)}var W=mxUtils.bind(this,function(){null!=J.parentNode&&(J.parentNode.removeChild(J),this.bannerShowing=!1,F.checked||m)&&(this["hideBanner"+c]=!0,isLocalStorage&&
null!=mxSettings.settings&&(mxSettings.settings["close"+c]=Date.now(),mxSettings.save()))});null!=D&&mxEvent.addListener(D,"click",mxUtils.bind(this,function(u){mxEvent.consume(u);W()}));var p=mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(J.style,"transform",A);window.setTimeout(mxUtils.bind(this,function(){W()}),1E3)});mxEvent.addListener(J,"click",mxUtils.bind(this,function(u){var G=mxEvent.getSource(u);G!=F&&G!=T?(null!=k&&k(),W(),mxEvent.consume(u)):p()}));window.setTimeout(mxUtils.bind(this,
-function(){mxUtils.setPrefixedStyle(J.style,"transform",C)}),500);window.setTimeout(p,q?5E3:3E4);v=!0}return v};EditorUi.prototype.setCurrentFile=function(c){null!=c&&(c.opened=new Date);this.currentFile=c};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.createImageDataUri=function(c,d,k,m){c=c.toDataURL("image/"+k);if(null!=c&&6<c.length)null!=d&&(c=Editor.writeGraphModelToPng(c,"tEXt","mxfile",encodeURIComponent(d))),0<m&&(c=Editor.writeGraphModelToPng(c,
+function(){mxUtils.setPrefixedStyle(J.style,"transform",B)}),500);window.setTimeout(p,q?5E3:3E4);v=!0}return v};EditorUi.prototype.setCurrentFile=function(c){null!=c&&(c.opened=new Date);this.currentFile=c};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.createImageDataUri=function(c,d,k,m){c=c.toDataURL("image/"+k);if(null!=c&&6<c.length)null!=d&&(c=Editor.writeGraphModelToPng(c,"tEXt","mxfile",encodeURIComponent(d))),0<m&&(c=Editor.writeGraphModelToPng(c,
"pHYs","dpi",m));else throw{message:mxResources.get("unknownError")};return c};EditorUi.prototype.saveCanvas=function(c,d,k,m,q){var v="jpeg"==k?"jpg":k;m=this.getBaseFilename(m)+(null!=d?".drawio":"")+"."+v;c=this.createImageDataUri(c,d,k,q);this.saveData(m,v,c.substring(c.lastIndexOf(",")+1),"image/"+k,!0)};EditorUi.prototype.showAnimatedGifExportDialog=function(){var c=document.createElement("div");c.style.whiteSpace="nowrap";var d=document.createElement("h3");mxUtils.write(d,mxResources.get("formatAnimatedGif",
null,"Animated GIF"));d.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";c.appendChild(d);d=document.createElement("div");d.className="geDialogSection";var k=document.createElement("div");k.className="geDialogFormRow";var m=document.createElement("span");m.className="geDialogFormLabel";mxUtils.write(m,mxResources.get("speed",null,"Speed")+":");k.appendChild(m);var q=document.createElement("select"),v=[{label:mxResources.get("slow",null,"Slow"),value:8},{label:mxResources.get("medium",
-null,"Medium"),value:15},{label:mxResources.get("fast",null,"Fast"),value:24}];for(m=0;m<v.length;m++){var A=document.createElement("option");mxUtils.write(A,v[m].label);A.setAttribute("value",v[m].value);15==v[m].value&&A.setAttribute("selected","selected");q.appendChild(A)}k.appendChild(q);d.appendChild(k);k=document.createElement("div");k.className="geDialogFormRow";m=document.createElement("span");m.className="geDialogFormLabel";mxUtils.write(m,mxResources.get("zoom")+":");k.appendChild(m);var C=
-document.createElement("input");C.setAttribute("type","text");C.value="100%";k.appendChild(C);d.appendChild(k);k=document.createElement("div");k.className="geDialogFormRow";m=document.createElement("span");m.className="geDialogFormLabel";mxUtils.write(m,mxResources.get("borderWidth",null,"Border Width")+":");k.appendChild(m);var D=document.createElement("input");D.setAttribute("type","text");D.value="0";k.appendChild(D);d.appendChild(k);k=document.createElement("div");k.className="geDialogFormRow";
+null,"Medium"),value:15},{label:mxResources.get("fast",null,"Fast"),value:24}];for(m=0;m<v.length;m++){var A=document.createElement("option");mxUtils.write(A,v[m].label);A.setAttribute("value",v[m].value);15==v[m].value&&A.setAttribute("selected","selected");q.appendChild(A)}k.appendChild(q);d.appendChild(k);k=document.createElement("div");k.className="geDialogFormRow";m=document.createElement("span");m.className="geDialogFormLabel";mxUtils.write(m,mxResources.get("zoom")+":");k.appendChild(m);var B=
+document.createElement("input");B.setAttribute("type","text");B.value="100%";k.appendChild(B);d.appendChild(k);k=document.createElement("div");k.className="geDialogFormRow";m=document.createElement("span");m.className="geDialogFormLabel";mxUtils.write(m,mxResources.get("borderWidth",null,"Border Width")+":");k.appendChild(m);var D=document.createElement("input");D.setAttribute("type","text");D.value="0";k.appendChild(D);d.appendChild(k);k=document.createElement("div");k.className="geDialogFormRow";
m=document.createElement("span");m.className="geDialogFormLabel";mxUtils.write(m,mxResources.get("loops",null,"Loops")+":");k.appendChild(m);var J=document.createElement("select");v=[{label:mxResources.get("forever",null,"Forever"),value:0},{label:"1",value:1},{label:"3",value:3},{label:"5",value:5}];for(m=0;m<v.length;m++)A=document.createElement("option"),mxUtils.write(A,v[m].label),A.setAttribute("value",v[m].value),0==v[m].value&&A.setAttribute("selected","selected"),J.appendChild(A);k.appendChild(J);
-d.appendChild(k);c.appendChild(d);d=document.createElement("div");d.className="geDialogSection";var F=this.addCheckbox(d,mxResources.get("transparentBackground",null,"Transparent Background"),!1);c.appendChild(d);c=new CustomDialog(this,c,mxUtils.bind(this,function(){var T=parseInt(C.value);if(isNaN(T)||0>=T)T=100;this.exportAnimatedGif({fps:parseInt(q.value),scale:T/100,border:parseInt(D.value)||0,repeat:parseInt(J.value),transparent:F.checked,background:F.checked?null:null!=this.editor.graph.background&&
+d.appendChild(k);c.appendChild(d);d=document.createElement("div");d.className="geDialogSection";var F=this.addCheckbox(d,mxResources.get("transparentBackground",null,"Transparent Background"),!1);c.appendChild(d);c=new CustomDialog(this,c,mxUtils.bind(this,function(){var T=parseInt(B.value);if(isNaN(T)||0>=T)T=100;this.exportAnimatedGif({fps:parseInt(q.value),scale:T/100,border:parseInt(D.value)||0,repeat:parseInt(J.value),transparent:F.checked,background:F.checked?null:null!=this.editor.graph.background&&
this.editor.graph.background!=mxConstants.NONE?this.editor.graph.background:"#ffffff"})}),null,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram");this.showDialog(c.container,360,null,!0,!0,null,null,null,null,!0)};EditorUi.prototype.exportAnimatedGif=function(c){if(this.spinner.spin(document.body,mxResources.get("exporting")))try{(new AnimatedGifExport(this)).doExport(c,mxUtils.bind(this,function(d){this.spinner.stop();if(null!=d){var k=this.getBaseFilename()+".gif";if("function"===
typeof navigator.msSaveBlob)navigator.msSaveBlob(d,k);else{var m=document.createElement("a");m.href=URL.createObjectURL(d);m.download=k;document.body.appendChild(m);m.click();setTimeout(function(){document.body.removeChild(m);URL.revokeObjectURL(m.href)},0)}}}),mxUtils.bind(this,function(d){this.spinner.stop();this.handleError(d)}))}catch(d){this.spinner.stop(),this.handleError(d)}};EditorUi.prototype.isLocalFileSave=function(){return"remote"!=urlParams.save&&"undefined"!==typeof window.Blob&&"undefined"!==
typeof window.URL||this.isOfflineApp()||mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(c,d){c=new TextareaDialog(this,c,d,null,null,mxResources.get("close"));this.showDialog(c.container,620,460,!0,!0,null,null,null,null,!0);c.init();document.execCommand("selectall",!1,null)};EditorUi.prototype.doSaveLocalFile=function(c,d,k,m,q,v){"text/xml"!=k||/(\.drawio)$/i.test(d)||/(\.xml)$/i.test(d)||/(\.svg)$/i.test(d)||/(\.html)$/i.test(d)||(d=d+"."+(null!=v?v:"drawio"));if(mxClient.IS_IOS&&this.isOffline())navigator.standalone||
-null==k||"image/"!=k.substring(0,6)?this.showTextDialog(d+":",c):this.openInNewWindow(c,k,m);else{var A=document.createElement("a");v=(null==navigator.userAgent||0>navigator.userAgent.indexOf("PaleMoon/"))&&"undefined"!==typeof A.download;if(mxClient.IS_GC&&null!=navigator.userAgent){var C=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);v=65==(C?parseInt(C[2],10):!1)?!1:v}if(v||this.isOffline()){A.href=URL.createObjectURL(m?this.base64ToBlob(c,k):new Blob([c],{type:k}));v?A.download=d:A.setAttribute("target",
+null==k||"image/"!=k.substring(0,6)?this.showTextDialog(d+":",c):this.openInNewWindow(c,k,m);else{var A=document.createElement("a");v=(null==navigator.userAgent||0>navigator.userAgent.indexOf("PaleMoon/"))&&"undefined"!==typeof A.download;if(mxClient.IS_GC&&null!=navigator.userAgent){var B=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);v=65==(B?parseInt(B[2],10):!1)?!1:v}if(v||this.isOffline()){A.href=URL.createObjectURL(m?this.base64ToBlob(c,k):new Blob([c],{type:k}));v?A.download=d:A.setAttribute("target",
"_blank");document.body.appendChild(A);try{window.setTimeout(function(){URL.revokeObjectURL(A.href)},2E4),A.click(),A.parentNode.removeChild(A)}catch(D){}}else this.createEchoRequest(c,d,k,m,q).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(c,d,k,m,q,v){c="xml="+encodeURIComponent(c);return new mxXmlRequest(SAVE_URL,c+(null!=k?"&mime="+k:"")+(null!=q?"&format="+q:"")+(null!=v?"&base64="+v:"")+(null!=d?"&filename="+encodeURIComponent(d):"")+(m?"&binary=1":""))};EditorUi.prototype.saveLocalFile=
-function(c,d,k,m,q,v,A,C,D){v=null!=v?v:!1;A=null!=A?A:"vsdx"!=q&&(!mxClient.IS_IOS||!navigator.standalone);var J=mxUtils.bind(this,function(T,W,p,u){try{if("_blank"==W)if(null!=k&&"image/"==k.substring(0,6))this.openInNewWindow(c,k,m);else if(null!=k&&"text/html"==k.substring(0,9)){var G=new EmbedDialog(this,c);this.showDialog(G.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));G.init()}else{var I=window.open("about:blank");null==I?mxUtils.popup(c,!0):(I.document.write("<pre>"+mxUtils.htmlEntities(c,
-!1)+"</pre>"),I.document.close())}else if(W==App.MODE_DEVICE||"download"==W)this.doSaveLocalFile(c,T,k,m,null,C);else if(null!=T&&0<T.length){var H=mxUtils.bind(this,function(g){try{this.exportFile(c,T,k,m,W,g)}catch(t){this.handleError(t)}});null!=u?H(u):this.pickFolder(W,H)}}catch(g){this.handleError(g)}});q=[];v||q.push(App.MODE_BROWSER);A||q.push("_blank");var F=new SaveDialog(this,d,mxUtils.bind(this,function(T,W,p){J(T.value,W,T,p);this.hideDialog(null,null,F.container)}),q,c,k,m,D);this.showDialog(F.container,
+function(c,d,k,m,q,v,A,B,D){v=null!=v?v:!1;A=null!=A?A:"vsdx"!=q&&(!mxClient.IS_IOS||!navigator.standalone);var J=mxUtils.bind(this,function(T,W,p,u){try{if("_blank"==W)if(null!=k&&"image/"==k.substring(0,6))this.openInNewWindow(c,k,m);else if(null!=k&&"text/html"==k.substring(0,9)){var G=new EmbedDialog(this,c);this.showDialog(G.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));G.init()}else{var I=window.open("about:blank");null==I?mxUtils.popup(c,!0):(I.document.write("<pre>"+mxUtils.htmlEntities(c,
+!1)+"</pre>"),I.document.close())}else if(W==App.MODE_DEVICE||"download"==W)this.doSaveLocalFile(c,T,k,m,null,B);else if(null!=T&&0<T.length){var H=mxUtils.bind(this,function(g){try{this.exportFile(c,T,k,m,W,g)}catch(t){this.handleError(t)}});null!=u?H(u):this.pickFolder(W,H)}}catch(g){this.handleError(g)}});q=[];v||q.push(App.MODE_BROWSER);A||q.push("_blank");var F=new SaveDialog(this,d,mxUtils.bind(this,function(T,W,p){J(T.value,W,T,p);this.hideDialog(null,null,F.container)}),q,c,k,m,D);this.showDialog(F.container,
420,110,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));F.init()};EditorUi.prototype.openInNewWindow=function(c,d,k){var m=window.open("about:blank");if(null==m||null==m.document)mxUtils.popup(c,!0);else{var q="background: light-dark(rgb(255, 255, 255), rgb(18, 18, 18))";if("image/svg+xml"==d){var v=mxUtils.parseXml(c).documentElement.style.backgroundColor;""!=v&&(q="background: "+v+";")}q='<html><head><meta charset="UTF-8"></head><body style="color-scheme: light dark; '+q+'">';"image/svg+xml"!=
d||mxClient.IS_SVG?"image/svg+xml"!=d||k?(v=k?c:btoa(unescape(encodeURIComponent(c))),m.document.write(q+'<img style="max-width:100%;" src="data:'+d+";base64,"+v+'"/></body></html>')):m.document.write(q+c+"</body></html>"):m.document.write(q+"<pre>"+mxUtils.htmlEntities(c,!1)+"</pre></body></html>");m.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(c){if(null!=urlParams.tags){var d=null;try{var k=urlParams.tags;try{k=decodeURIComponent(k)}catch(C){}d=JSON.parse(k)}catch(C){}if(null!=d){var m=this.editor.graph,q=mxUtils.bind(this,function(){var C=null!=this.currentPage?this.currentPage.getId():0;C=d[C];m.hiddenTags=null!=C&&0<C.length?C:[];m.refresh()});this.editor.addListener("fileLoaded",mxUtils.bind(this,function(){q();m.isLightboxView()&&
-this.lightboxFit();this.chromelessResize&&this.chromelessResize()}));this.editor.addListener("pageSelected",q)}this.tagsDialog=this.tagsComponent=null;var v=c(mxUtils.bind(this,function(C){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.style.maxHeight=
+/.*\.diagrams\.net$/.test(window.location.hostname)};EditorUi.prototype.addChromelessToolbarItems=function(c){if(null!=urlParams.tags){var d=null;try{var k=urlParams.tags;try{k=decodeURIComponent(k)}catch(B){}d=JSON.parse(k)}catch(B){}if(null!=d){var m=this.editor.graph,q=mxUtils.bind(this,function(){var B=null!=this.currentPage?this.currentPage.getId():0;B=d[B];m.hiddenTags=null!=B&&0<B.length?B:[];m.refresh()});this.editor.addListener("fileLoaded",mxUtils.bind(this,function(){q();m.isLightboxView()&&
+this.lightboxFit();this.chromelessResize&&this.chromelessResize()}));this.editor.addListener("pageSelected",q)}this.tagsDialog=this.tagsComponent=null;var v=c(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.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,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),
this.tagsDialog=null;else{this.tagsDialog=this.tagsComponent.div;mxEvent.addListener(this.tagsDialog,"mouseleave",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null)}));var D=v.getBoundingClientRect();this.tagsDialog.style.left=D.left+"px";this.tagsDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";D=mxUtils.getCurrentStyle(this.editor.graph.container);this.tagsDialog.style.zIndex=
-D.zIndex;document.body.appendChild(this.tagsDialog);this.tagsComponent.refresh();this.editor.fireEvent(new mxEventObject("tagsDialogShown"))}mxEvent.consume(C)}),Editor.tagsImage,mxResources.get("tags"));this.editor.graph.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var C=this.editor.graph.getAllTags();v.style.display=0<C.length?"":"none"}))}f.apply(this,arguments);this.editor.addListener("tagsDialogShown",mxUtils.bind(this,function(){null!=this.layersDialog&&(this.layersDialog.parentNode.removeChild(this.layersDialog),
+D.zIndex;document.body.appendChild(this.tagsDialog);this.tagsComponent.refresh();this.editor.fireEvent(new mxEventObject("tagsDialogShown"))}mxEvent.consume(B)}),Editor.tagsImage,mxResources.get("tags"));this.editor.graph.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var B=this.editor.graph.getAllTags();v.style.display=0<B.length?"":"none"}))}f.apply(this,arguments);this.editor.addListener("tagsDialogShown",mxUtils.bind(this,function(){null!=this.layersDialog&&(this.layersDialog.parentNode.removeChild(this.layersDialog),
this.layersDialog=null)}));this.editor.addListener("layersDialogShown",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null)}));this.editor.addListener("pageSelected",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null);null!=this.layersDialog&&(this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null)}));mxEvent.addListener(this.editor.graph.container,
-"click",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null);null!=this.layersDialog&&(this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null)}));if(this.editor.isExportToCanvas()&&this.isChromelessImageExportEnabled()&&"1"!=urlParams.noExport){this.exportDialog=null;var A=c(mxUtils.bind(this,function(C){var D=mxUtils.bind(this,function(){mxEvent.removeListener(this.editor.graph.container,"click",
+"click",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null);null!=this.layersDialog&&(this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null)}));if(this.editor.isExportToCanvas()&&this.isChromelessImageExportEnabled()&&"1"!=urlParams.noExport){this.exportDialog=null;var A=c(mxUtils.bind(this,function(B){var D=mxUtils.bind(this,function(){mxEvent.removeListener(this.editor.graph.container,"click",
D);null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null)});if(null!=this.exportDialog)D.apply(this);else{this.exportDialog=document.createElement("div");var J=A.getBoundingClientRect();mxUtils.setPrefixedStyle(this.exportDialog.style,"borderRadius","5px");this.exportDialog.style.position="fixed";this.exportDialog.style.textAlign="center";this.exportDialog.style.fontFamily=Editor.defaultHtmlFont;this.exportDialog.style.backgroundColor="#000000";
this.exportDialog.style.width="50px";this.exportDialog.style.height="50px";this.exportDialog.style.padding="4px 2px 4px 2px";this.exportDialog.style.color="#ffffff";mxUtils.setOpacity(this.exportDialog,80);this.exportDialog.style.left=J.left+"px";this.exportDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";J=mxUtils.getCurrentStyle(this.editor.graph.container);this.exportDialog.style.zIndex=J.zIndex;var F=new Spinner({lines:8,length:6,width:5,
radius:6,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"28px",zIndex:2E9});F.spin(this.exportDialog);document.body.appendChild(this.exportDialog);mxEvent.addListener(this.editor.graph.container,"click",D);this.editor.exportToCanvas(mxUtils.bind(this,function(T){F.stop();this.exportDialog.style.width="auto";this.exportDialog.style.height="auto";this.exportDialog.style.padding="10px";var W=this.createImageDataUri(T,null,"png");T=document.createElement("img");
T.style.maxWidth="140px";T.style.maxHeight="140px";T.style.cursor="pointer";T.style.backgroundColor="white";T.setAttribute("title",mxResources.get("openInNewWindow"));T.setAttribute("border","0");T.setAttribute("src",W);this.exportDialog.appendChild(T);mxEvent.addListener(T,"click",mxUtils.bind(this,function(){this.openInNewWindow(W.substring(W.indexOf(",")+1),"image/png",!0);D.apply(this,arguments)}))}),null,this.thumbImageCache,null,mxUtils.bind(this,function(T){F.stop();null!=this.exportDialog&&
-null!=this.exportDialog.parentNode&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);this.handleError(T)}),null,null,null,null,null,null,null,Editor.defaultBorder)}mxEvent.consume(C)}),Editor.cameraImage,mxResources.get("export"))}};EditorUi.prototype.saveData=function(c,d,k,m,q,v){if("1"==urlParams.embed&&"json"==urlParams.proto&&this.embedExportProtocol){v=this.embedMessageSource||window.opener||window.parent;var A=this.createLoadMessage("export");A.format=d;
-A.filename=c;A.data=q?"data:"+m+";base64,"+k:k;A.xml=this.getFileData(!0);v.postMessage(JSON.stringify(A),"*")}else this.isLocalFileSave()?this.saveLocalFile(k,c,m,q,d,v):this.saveRequest(c,d,mxUtils.bind(this,function(C,D){return this.createEchoRequest(k,C,m,q,d,D)}),k,q,m)};EditorUi.prototype.saveRequest=function(c,d,k,m,q,v,A){A=null!=A?A:!mxClient.IS_IOS||!navigator.standalone;var C=mxUtils.bind(this,function(J,F,T,W){if("_blank"==F||null!=J&&0<J.length){var p=k("_blank"==F?null:J,F==App.MODE_DEVICE||
+null!=this.exportDialog.parentNode&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);this.handleError(T)}),null,null,null,null,null,null,null,Editor.defaultBorder)}mxEvent.consume(B)}),Editor.cameraImage,mxResources.get("export"))}};EditorUi.prototype.saveData=function(c,d,k,m,q,v){if("1"==urlParams.embed&&"json"==urlParams.proto&&this.embedExportProtocol){v=this.embedMessageSource||window.opener||window.parent;var A=this.createLoadMessage("export");A.format=d;
+A.filename=c;A.data=q?"data:"+m+";base64,"+k:k;A.xml=this.getFileData(!0);v.postMessage(JSON.stringify(A),"*")}else this.isLocalFileSave()?this.saveLocalFile(k,c,m,q,d,v):this.saveRequest(c,d,mxUtils.bind(this,function(B,D){return this.createEchoRequest(k,B,m,q,d,D)}),k,q,m)};EditorUi.prototype.saveRequest=function(c,d,k,m,q,v,A){A=null!=A?A:!mxClient.IS_IOS||!navigator.standalone;var B=mxUtils.bind(this,function(J,F,T,W){if("_blank"==F||null!=J&&0<J.length){var p=k("_blank"==F?null:J,F==App.MODE_DEVICE||
"download"==F||null==F||"_blank"==F?"0":"1");null!=p&&(F==App.MODE_DEVICE||"download"==F||"_blank"==F?p.simulate(document,"_blank"):(T=mxUtils.bind(this,function(u){v=null!=v?v:"pdf"==d?"application/pdf":"image/"+d;if(null!=m)try{this.exportFile(m,J,v,!0,F,u)}catch(G){this.handleError(G)}else this.spinner.spin(document.body,mxResources.get("saving"))&&p.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=p.getStatus()&&299>=p.getStatus())try{this.exportFile(p.getText(),J,v,!0,F,u)}catch(G){this.handleError(G)}else this.handleError({message:mxResources.get("errorSavingFile")})}),
-mxUtils.bind(this,function(G){this.spinner.stop();this.handleError(G)}))}),null!=W?T(W):this.pickFolder(F,T)))}});q=[App.MODE_BROWSER];A||q.push("_blank");var D=new SaveDialog(this,c,mxUtils.bind(this,function(J,F,T){C(J.value,F,J,T);this.hideDialog(null,null,D.container)}),q,null,"application/pdf");this.showDialog(D.container,420,110,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));D.init()};EditorUi.prototype.isServices=function(c){return 1!=c};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};
-EditorUi.prototype.exportFile=function(c,d,k,m,q,v){};EditorUi.prototype.getServiceForName=function(c){return null};EditorUi.prototype.getTitleForService=function(c){return mxResources.get(c)};EditorUi.prototype.pickFolder=function(c,d,k){d(null)};EditorUi.prototype.exportSvg=function(c,d,k,m,q,v,A,C,D,J,F,T,W,p){if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(X){Editor.addRetryToError(X,mxUtils.bind(this,function(){this.exportSvg(c,d,k,m,q,v,A,C,D,J,F,T,
+mxUtils.bind(this,function(G){this.spinner.stop();this.handleError(G)}))}),null!=W?T(W):this.pickFolder(F,T)))}});q=[App.MODE_BROWSER];A||q.push("_blank");var D=new SaveDialog(this,c,mxUtils.bind(this,function(J,F,T){B(J.value,F,J,T);this.hideDialog(null,null,D.container)}),q,null,"application/pdf");this.showDialog(D.container,420,110,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));D.init()};EditorUi.prototype.isServices=function(c){return 1!=c};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};
+EditorUi.prototype.exportFile=function(c,d,k,m,q,v){};EditorUi.prototype.getServiceForName=function(c){return null};EditorUi.prototype.getTitleForService=function(c){return mxResources.get(c)};EditorUi.prototype.pickFolder=function(c,d,k){d(null)};EditorUi.prototype.exportSvg=function(c,d,k,m,q,v,A,B,D,J,F,T,W,p){if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(X){Editor.addRetryToError(X,mxUtils.bind(this,function(){this.exportSvg(c,d,k,m,q,v,A,B,D,J,F,T,
W,p)}));this.handleError(X)})))try{var u=this.editor.graph.isSelectionEmpty();k=null!=k?k:u;var G=d?null:this.editor.graph.background;G==mxConstants.NONE&&(G=null);null==G&&0==d&&(G=this.editor.graph.shapeBackgroundColor);var I=this.editor.graph.addForeignObjectWarning;Editor.foreignObjectImages&&(this.editor.graph.addForeignObjectWarning=function(){});var H=mxUtils.lightDarkColorSupported,g=mxUtils.preferDarkColor;if("light"==F||"dark"==F)mxUtils.lightDarkColorSupported=!1,mxUtils.preferDarkColor=
-"dark"==F;var t=Graph.addFont,B={};Graph.addFont=function(X,Z,aa,ea){t.call(this,X,Z,aa,B)};var K=this.editor.graph.createSvgImageExport(q),Q=K.drawCellState;K.drawCellState=function(X,Z){null!=X&&Graph.processFontStyle(X.style);Q.apply(this,arguments)};var S=this.editor.graph.getSvg(G,c,A,C,null,k,null,K,"blank"==J?"_blank":"self"==J?"_top":null,null,!W,F,T);mxUtils.lightDarkColorSupported=H;mxUtils.preferDarkColor=g;this.editor.graph.addForeignObjectWarning=I;m&&this.editor.graph.addSvgShadow(S);
+"dark"==F;var t=Graph.addFont,C={};Graph.addFont=function(X,Z,aa,ea){t.call(this,X,Z,aa,C)};var K=this.editor.graph.createSvgImageExport(q),Q=K.drawCellState;K.drawCellState=function(X,Z){null!=X&&Graph.processFontStyle(X.style);Q.apply(this,arguments)};var S=this.editor.graph.getSvg(G,c,A,B,null,k,null,K,"blank"==J?"_blank":"self"==J?"_top":null,null,!W,F,T);mxUtils.lightDarkColorSupported=H;mxUtils.preferDarkColor=g;this.editor.graph.addForeignObjectWarning=I;m&&this.editor.graph.addSvgShadow(S);
var U=this.getBaseFilename()+(q?".drawio":"")+".svg";p=null!=p?p:mxUtils.bind(this,function(X){this.isLocalFileSave()||X.length<=MAX_REQUEST_SIZE?this.saveData(U,"svg",X,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(X)}))});var N=mxUtils.bind(this,function(X){this.spinner.stop();q&&X.setAttribute("content",this.getFileData(!0,null,null,null,k,D,null,null,null,null,null,c,A));p(Graph.xmlDeclaration+
-"\n"+(q?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(X))});this.editor.graph.mathEnabled&&this.editor.addMathCss(S);var P=mxUtils.bind(this,function(X){Editor.replaceSvgDataUris&&v&&EditorUi.embedSvgImages(X);Editor.foreignObjectImages&&W?this.replaceAlternateContent(X,F,N):N(X)}),V=Graph.customFontElements;Graph.customFontElements=B;var Y=mxUtils.bind(this,function(X){Graph.customFontElements=V;Graph.addFont=t;v&&!this.isOffline()&&Editor.canvasSupported?(null==this.thumbImageCache&&
+"\n"+(q?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(X))});this.editor.graph.mathEnabled&&this.editor.addMathCss(S);var P=mxUtils.bind(this,function(X){Editor.replaceSvgDataUris&&v&&EditorUi.embedSvgImages(X);Editor.foreignObjectImages&&W?this.replaceAlternateContent(X,F,N):N(X)}),V=Graph.customFontElements;Graph.customFontElements=C;var Y=mxUtils.bind(this,function(X){Graph.customFontElements=V;Graph.addFont=t;v&&!this.isOffline()&&Editor.canvasSupported?(null==this.thumbImageCache&&
(this.thumbImageCache={}),this.editor.convertImages(X,P,this.thumbImageCache)):P(X)});W?this.embedFonts(S,Y):(this.editor.addFontCss(S),Y(S))}catch(X){this.handleError(X)}};EditorUi.prototype.replaceAlternateContent=function(c,d,k){function m(T,W,p,u,G){var I=mxUtils.createElementNs(c.ownerDocument,mxConstants.NS_SVG,"image");I.setAttribute("x",W);I.setAttribute("y",p+.5);I.setAttribute("width",u.width);I.setAttribute("height",u.height);null==I.setAttributeNS?I.setAttribute("xlink:href",G):I.setAttributeNS(mxConstants.NS_XLINK,
-"xlink:href",G);T.replaceChild(I,T.lastChild);C()}function q(){if(A<F.length)F[A++](q)}var v="";d=c.getElementsByTagName("style");for(var A=0;A<d.length;A++)v+=d[A].innerHTML;d=c.getElementsByTagName("switch");counter=d.length;var C=mxUtils.bind(this,function(){counter--;0==counter&&k(c)}),D={},J={},F=[];for(A=0;A<d.length;A++)mxUtils.bind(this,function(T){var W=T.getElementsByTagName("div");if(0<W.length)try{var p=W[0].cloneNode(!0),u=parseInt(p.style.marginLeft),G=parseInt(p.style.paddingTop),I=
-p.getElementsByTagName("div")[1],H=W=!1,g=p.style.alignItems,t=p.style.justifyContent;if(null!=p.style.writingMode){var B=p.style.writingMode;H="vertical-"==B.substring(0,9);W="-rl"==B.substring(B.length-3)}var K=!H&&"1px"==p.style.width||H&&"1px"==p.style.height;if(!H&&"1px"==p.style.height||H&&"1px"==p.style.width)p.style.alignItems=H&&W?"unsafe flex-end":"unsafe flex-start";K&&(p.style.justifyContent="unsafe flex-start");p.style.paddingTop="";p.style.marginLeft="";var Q=p.outerHTML,S=D[Q];null==
-S&&(p.style.position="absolute",p.style.visibility="hidden",document.body.appendChild(p),B=1,B="1px"==p.style.width?I.offsetWidth:parseInt(p.style.width),K=1,K="1px"==p.style.height?I.offsetHeight:parseInt(p.style.height),document.body.removeChild(p),S=new mxRectangle(u,G,B,K),D[Q]=S);"1px"==p.style.height&&("unsafe center"==g?G-=S.height/2:"unsafe flex-end"==g&&(G-=S.height));if("1px"==p.style.width)if(!H&&"unsafe center"==t||H&&"unsafe center"==g)u-=S.width/2;else if(!H&&"unsafe flex-end"==t||H&&
-(!W&&"unsafe flex-end"==g||W&&"unsafe flex-start"==g))u-=S.width;S=new mxRectangle(u,G,S.width,S.height+parseInt(I.style.fontSize)/4);F.push(mxUtils.bind(this,function(U){var N=J[Q];null==N?Graph.htmlToPng(Q,S.width,S.height,mxUtils.bind(this,function(P){m(T,u,G,S,P);J[Q]=P;U()}),v):(m(T,u,G,S,N),U())}))}catch(U){C()}else C()})(d[A]);0==counter&&k(c);A=0;q()};EditorUi.prototype.addRadiobox=function(c,d,k,m,q,v,A){return this.addCheckbox(c,k,m,q,v,A,!0,d)};EditorUi.prototype.addCheckbox=function(c,
-d,k,m,q,v,A,C,D){v=null!=v?v:!0;var J=document.createElement("input");J.style.marginRight="8px";J.setAttribute("type",A?"radio":"checkbox");A="geCheckbox-"+Editor.guid();J.id=A;null!=C&&J.setAttribute("name",C);k&&(J.setAttribute("checked","checked"),J.defaultChecked=!0);m&&J.setAttribute("disabled","disabled");v&&(D?(q=document.createElement("div"),q.className="geDialogCheckRow",q.appendChild(J),k=document.createElement("label"),mxUtils.write(k,d),k.setAttribute("for",A),q.appendChild(k),c.appendChild(q),
+"xlink:href",G);T.replaceChild(I,T.lastChild);B()}function q(){if(A<F.length)F[A++](q)}var v="";d=c.getElementsByTagName("style");for(var A=0;A<d.length;A++)v+=d[A].innerHTML;d=c.getElementsByTagName("switch");counter=d.length;var B=mxUtils.bind(this,function(){counter--;0==counter&&k(c)}),D={},J={},F=[];for(A=0;A<d.length;A++)mxUtils.bind(this,function(T){var W=T.getElementsByTagName("div");if(0<W.length)try{var p=W[0].cloneNode(!0),u=parseInt(p.style.marginLeft),G=parseInt(p.style.paddingTop),I=
+p.getElementsByTagName("div")[1],H=W=!1,g=p.style.alignItems,t=p.style.justifyContent;if(null!=p.style.writingMode){var C=p.style.writingMode;H="vertical-"==C.substring(0,9);W="-rl"==C.substring(C.length-3)}var K=!H&&"1px"==p.style.width||H&&"1px"==p.style.height;if(!H&&"1px"==p.style.height||H&&"1px"==p.style.width)p.style.alignItems=H&&W?"unsafe flex-end":"unsafe flex-start";K&&(p.style.justifyContent="unsafe flex-start");p.style.paddingTop="";p.style.marginLeft="";var Q=p.outerHTML,S=D[Q];null==
+S&&(p.style.position="absolute",p.style.visibility="hidden",document.body.appendChild(p),C=1,C="1px"==p.style.width?I.offsetWidth:parseInt(p.style.width),K=1,K="1px"==p.style.height?I.offsetHeight:parseInt(p.style.height),document.body.removeChild(p),S=new mxRectangle(u,G,C,K),D[Q]=S);"1px"==p.style.height&&("unsafe center"==g?G-=S.height/2:"unsafe flex-end"==g&&(G-=S.height));if("1px"==p.style.width)if(!H&&"unsafe center"==t||H&&"unsafe center"==g)u-=S.width/2;else if(!H&&"unsafe flex-end"==t||H&&
+(!W&&"unsafe flex-end"==g||W&&"unsafe flex-start"==g))u-=S.width;S=new mxRectangle(u,G,S.width,S.height+parseInt(I.style.fontSize)/4);F.push(mxUtils.bind(this,function(U){var N=J[Q];null==N?Graph.htmlToPng(Q,S.width,S.height,mxUtils.bind(this,function(P){m(T,u,G,S,P);J[Q]=P;U()}),v):(m(T,u,G,S,N),U())}))}catch(U){B()}else B()})(d[A]);0==counter&&k(c);A=0;q()};EditorUi.prototype.addRadiobox=function(c,d,k,m,q,v,A){return this.addCheckbox(c,k,m,q,v,A,!0,d)};EditorUi.prototype.addCheckbox=function(c,
+d,k,m,q,v,A,B,D){v=null!=v?v:!0;var J=document.createElement("input");J.style.marginRight="8px";J.setAttribute("type",A?"radio":"checkbox");A="geCheckbox-"+Editor.guid();J.id=A;null!=B&&J.setAttribute("name",B);k&&(J.setAttribute("checked","checked"),J.defaultChecked=!0);m&&J.setAttribute("disabled","disabled");v&&(D?(q=document.createElement("div"),q.className="geDialogCheckRow",q.appendChild(J),k=document.createElement("label"),mxUtils.write(k,d),k.setAttribute("for",A),q.appendChild(k),c.appendChild(q),
J.checkRow=q):(J.style.marginTop="16px",c.appendChild(J),k=document.createElement("label"),mxUtils.write(k,d),k.setAttribute("for",A),c.appendChild(k),q||mxUtils.br(c)));return J};EditorUi.prototype.addEditButton=function(c,d){var k=document.createElement("div");k.className="geDialogCheckRow";k.style.paddingLeft="24px";var m=this.addCheckbox(k,mxResources.get("edit")+":",!0,null,!0);m.style.marginTop="0px";m.indent="24px";var q=this.getCurrentFile(),v="";null!=q&&q.getMode()!=App.MODE_DEVICE&&q.getMode()!=
-App.MODE_BROWSER&&(v=window.location.href);var A=document.createElement("select");A.style.maxWidth="200px";A.style.width="auto";A.style.marginLeft="8px";A.style.marginRight="10px";A.className="geBtn";q=document.createElement("option");q.setAttribute("value","blank");mxUtils.write(q,mxResources.get("makeCopy"));A.appendChild(q);var C=document.createElement("option");C.setAttribute("value","custom");mxUtils.write(C,mxResources.get("custom")+"...");A.appendChild(C);k.appendChild(A);c.appendChild(k);
-mxEvent.addListener(A,"change",mxUtils.bind(this,function(){if("custom"==A.value){var D=new FilenameDialog(this,v,mxResources.get("ok"),function(J){null!=J?(v=J,C.setAttribute("title",J)):(A.value="blank",C.removeAttribute("title"))},mxResources.get("url"),null,null,null,null,function(){A.value="blank"});this.showDialog(D.container,300,80,!0,!1);D.init()}}));mxEvent.addListener(m,"change",mxUtils.bind(this,function(){m.checked&&(null==d||d.checked)?A.removeAttribute("disabled"):A.setAttribute("disabled",
+App.MODE_BROWSER&&(v=window.location.href);var A=document.createElement("select");A.style.maxWidth="200px";A.style.width="auto";A.style.marginLeft="8px";A.style.marginRight="10px";A.className="geBtn";q=document.createElement("option");q.setAttribute("value","blank");mxUtils.write(q,mxResources.get("makeCopy"));A.appendChild(q);var B=document.createElement("option");B.setAttribute("value","custom");mxUtils.write(B,mxResources.get("custom")+"...");A.appendChild(B);k.appendChild(A);c.appendChild(k);
+mxEvent.addListener(A,"change",mxUtils.bind(this,function(){if("custom"==A.value){var D=new FilenameDialog(this,v,mxResources.get("ok"),function(J){null!=J?(v=J,B.setAttribute("title",J)):(A.value="blank",B.removeAttribute("title"))},mxResources.get("url"),null,null,null,null,function(){A.value="blank"});this.showDialog(D.container,300,80,!0,!1);D.init()}}));mxEvent.addListener(m,"change",mxUtils.bind(this,function(){m.checked&&(null==d||d.checked)?A.removeAttribute("disabled"):A.setAttribute("disabled",
"disabled")}));return{getLink:function(){return m.checked?"blank"===A.value?"_blank":v:null},getEditInput:function(){return m},getEditSelect:function(){return A},getEditRow:function(){return k}}};EditorUi.prototype.addLinkSection=function(c,d){function k(){var D=document.createElement("div");D.style.width="100%";D.style.height="100%";D.style.boxSizing="border-box";null!=A&&A!=mxConstants.NONE?(D.style.border="1px solid black",D.style.backgroundColor=A):(D.style.backgroundPosition="center center",
-D.style.backgroundRepeat="no-repeat",D.style.backgroundImage="url('"+Dialog.prototype.closeImage+"')");C.innerText="";C.appendChild(D)}var m=document.createElement("div");m.className="geDialogFormRow";var q=document.createElement("span");q.className="geDialogFormLabel";mxUtils.write(q,mxResources.get("links")+":");m.appendChild(q);var v=document.createElement("select");v.style.width="100px";v.style.padding="0px";v.style.marginRight="10px";v.className="geBtn";q=document.createElement("option");q.setAttribute("value",
+D.style.backgroundRepeat="no-repeat",D.style.backgroundImage="url('"+Dialog.prototype.closeImage+"')");B.innerText="";B.appendChild(D)}var m=document.createElement("div");m.className="geDialogFormRow";var q=document.createElement("span");q.className="geDialogFormLabel";mxUtils.write(q,mxResources.get("links")+":");m.appendChild(q);var v=document.createElement("select");v.style.width="100px";v.style.padding="0px";v.style.marginRight="10px";v.className="geBtn";q=document.createElement("option");q.setAttribute("value",
"auto");mxUtils.write(q,mxResources.get("automatic"));v.appendChild(q);q=document.createElement("option");q.setAttribute("value","blank");mxUtils.write(q,mxResources.get("openInNewWindow"));v.appendChild(q);q=document.createElement("option");q.setAttribute("value","self");mxUtils.write(q,mxResources.get("openInThisWindow"));v.appendChild(q);d&&(d=document.createElement("option"),d.setAttribute("value","frame"),mxUtils.write(d,mxResources.get("openInThisWindow")+" ("+mxResources.get("iframe")+")"),
-v.appendChild(d));m.appendChild(v);d=document.createElement("span");mxUtils.write(d,mxResources.get("borderColor")+":");m.appendChild(d);var A="#0000ff",C=null;C=mxUtils.button("",mxUtils.bind(this,function(D){this.pickColor(A||"none",function(J){A=J;k()});mxEvent.consume(D)}));k();C.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";C.style.marginLeft="4px";C.style.height="22px";C.style.width="22px";C.style.position="relative";C.style.top="1px";C.className="geColorBtn";m.appendChild(C);c.appendChild(m);
+v.appendChild(d));m.appendChild(v);d=document.createElement("span");mxUtils.write(d,mxResources.get("borderColor")+":");m.appendChild(d);var A="#0000ff",B=null;B=mxUtils.button("",mxUtils.bind(this,function(D){this.pickColor(A||"none",function(J){A=J;k()});mxEvent.consume(D)}));k();B.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";B.style.marginLeft="4px";B.style.height="22px";B.style.width="22px";B.style.position="relative";B.style.top="1px";B.className="geColorBtn";m.appendChild(B);c.appendChild(m);
return{getColor:function(){return A},getTarget:function(){return v.value},focus:function(){v.focus()}}};EditorUi.prototype.createUrlParameters=function(c,d,k,m,q,v){v=null!=v?v:[];k&&(v.push("lightbox=1"),"auto"!=c&&v.push("target="+c),null!=d&&d!=mxConstants.NONE&&v.push("highlight="+("#"==d.charAt(0)?d.substring(1):d)),null!=m&&0<m.length&&v.push("edit="+encodeURIComponent(m)),q&&v.push("layers=1"),this.editor.graph.foldingEnabled&&v.push("nav=1"));return v};EditorUi.prototype.createLink=function(c,
-d,k,m,q,v,A,C,D,J,F,T,W){var p=this.getCurrentFile();D=this.createUrlParameters(c,d,m,q,v,D);c=!0;null!=A?k="#U"+encodeURIComponent(A):C||null==p||""==p.getHash()?k="#R"+encodeURIComponent(k?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(k="#"+p.getHash(),c=!1);c&&null!=p&&null!=p.getTitle()&&p.getTitle()!=this.defaultFilename&&D.push("title="+encodeURIComponent(p.getTitle()));J&&1<k.length&&(D.push("open="+k.substring(1)),
-k="");F&&null!=this.currentPage&&D.push("page-id="+this.currentPage.getId());T&&D.push("transparent=1");null!=W&&D.push("dark="+W);return(m&&(null!=A||null!=p&&p.getMode()!=App.MODE_GITHUB&&p.getMode()!=App.MODE_GITLAB)?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<D.length?"?"+D.join("&"):"")+k};EditorUi.prototype.createHtml=function(c,d,k,m,q,v,A,C,D,J,F,T,W,p){this.getBasenames();
-var u={};""!=q&&q!=mxConstants.NONE&&(u.highlight=q);"auto"!==m&&(u.target=m);J||(u.lightbox=!1);u.nav=this.editor.graph.foldingEnabled;k=parseInt(k);isNaN(k)||100==k||(u.zoom=k/100);k=[];A&&(k.push("pages"),u.resize=!0,null!=this.pages&&null!=this.currentPage&&(u.page=mxUtils.indexOf(this.pages,this.currentPage)));d&&(k.push("zoom"),u.resize=!0);C&&k.push("layers");D&&(k.push("tags"),p&&(d=this.getHiddenTagsMap(),null!=d&&(u.hiddenTags=d)));null!=W&&(u["dark-mode"]=W);0<k.length&&(J&&k.push("lightbox"),
+d,k,m,q,v,A,B,D,J,F,T,W){var p=this.getCurrentFile();D=this.createUrlParameters(c,d,m,q,v,D);c=!0;null!=A?k="#U"+encodeURIComponent(A):B||null==p||""==p.getHash()?k="#R"+encodeURIComponent(k?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(k="#"+p.getHash(),c=!1);c&&null!=p&&null!=p.getTitle()&&p.getTitle()!=this.defaultFilename&&D.push("title="+encodeURIComponent(p.getTitle()));J&&1<k.length&&(D.push("open="+k.substring(1)),
+k="");F&&null!=this.currentPage&&D.push("page-id="+this.currentPage.getId());T&&D.push("transparent=1");null!=W&&D.push("dark="+W);return(m&&(null!=A||null!=p&&p.getMode()!=App.MODE_GITHUB&&p.getMode()!=App.MODE_GITLAB)?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<D.length?"?"+D.join("&"):"")+k};EditorUi.prototype.createHtml=function(c,d,k,m,q,v,A,B,D,J,F,T,W,p){this.getBasenames();
+var u={};""!=q&&q!=mxConstants.NONE&&(u.highlight=q);"auto"!==m&&(u.target=m);J||(u.lightbox=!1);u.nav=this.editor.graph.foldingEnabled;k=parseInt(k);isNaN(k)||100==k||(u.zoom=k/100);k=[];A&&(k.push("pages"),u.resize=!0,null!=this.pages&&null!=this.currentPage&&(u.page=mxUtils.indexOf(this.pages,this.currentPage)));d&&(k.push("zoom"),u.resize=!0);B&&k.push("layers");D&&(k.push("tags"),p&&(d=this.getHiddenTagsMap(),null!=d&&(u.hiddenTags=d)));null!=W&&(u["dark-mode"]=W);0<k.length&&(J&&k.push("lightbox"),
u.toolbar=k.join(" "));null!=F&&0<F.length&&(u.edit=F);null!=c?u.url=c:u.xml=this.getFileData(!0,null,null,null,null,!A);v='<div class="mxgraph" style="'+(v?"max-width:100%;":"")+(""!=k?"border:1px solid transparent;":"")+'" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(u))+'"></div>';c=null!=c?"&fetch="+encodeURIComponent(c):"";T(v,'<script type="text/javascript" src="'+(0<c.length?("1"==urlParams.dev?"https://test.draw.io/embed2.js?dev=1":EditorUi.lightboxHost+"/embed2.js?")+c:"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(c,d,k,m){var q=document.createElement("div");q.style.whiteSpace="nowrap";var v=document.createElement("h3");mxUtils.write(v,mxResources.get("html"));v.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";q.appendChild(v);var A=document.createElement("div");A.style.cssText=
-"border-bottom:1px solid lightGray;padding-bottom:8px;margin-bottom:12px;";var C=document.createElement("input");C.style.cssText="margin-right:8px;margin-top:8px;margin-bottom:8px;";C.setAttribute("value","url");C.setAttribute("type","radio");C.setAttribute("name","type-embedhtmldialog");v=C.cloneNode(!0);v.setAttribute("value","copy");A.appendChild(v);var D=document.createElement("span");mxUtils.write(D,mxResources.get("includeCopyOfMyDiagram"));A.appendChild(D);mxUtils.br(A);A.appendChild(C);D=
+"border-bottom:1px solid lightGray;padding-bottom:8px;margin-bottom:12px;";var B=document.createElement("input");B.style.cssText="margin-right:8px;margin-top:8px;margin-bottom:8px;";B.setAttribute("value","url");B.setAttribute("type","radio");B.setAttribute("name","type-embedhtmldialog");v=B.cloneNode(!0);v.setAttribute("value","copy");A.appendChild(v);var D=document.createElement("span");mxUtils.write(D,mxResources.get("includeCopyOfMyDiagram"));A.appendChild(D);mxUtils.br(A);A.appendChild(B);D=
document.createElement("span");mxUtils.write(D,mxResources.get("publicDiagramUrl"));A.appendChild(D);var J=this.getCurrentFile();null==k&&null!=J&&J.constructor==window.DriveFile&&(D=document.createElement("a"),D.style.paddingLeft="12px",D.style.color="gray",D.style.cursor="pointer",mxUtils.write(D,mxResources.get("share")),A.appendChild(D),mxEvent.addListener(D,"click",mxUtils.bind(this,function(){this.hideDialog();this.drive.showPermissions(J.getId(),J)})));v.setAttribute("checked","checked");null==
-k&&C.setAttribute("disabled","disabled");q.appendChild(A);A=document.createElement("div");A.className="geDialogSection";var F=this.addLinkSection(A),T=document.createElement("select");T.style.maxWidth="260px";D=document.createElement("option");D.setAttribute("value","light");mxUtils.write(D,mxResources.get("light"));T.appendChild(D);D=document.createElement("option");D.setAttribute("value","dark");mxUtils.write(D,mxResources.get("dark"));T.appendChild(D);D=document.createElement("option");D.setAttribute("value",
+k&&B.setAttribute("disabled","disabled");q.appendChild(A);A=document.createElement("div");A.className="geDialogSection";var F=this.addLinkSection(A),T=document.createElement("select");T.style.maxWidth="260px";D=document.createElement("option");D.setAttribute("value","light");mxUtils.write(D,mxResources.get("light"));T.appendChild(D);D=document.createElement("option");D.setAttribute("value","dark");mxUtils.write(D,mxResources.get("dark"));T.appendChild(D);D=document.createElement("option");D.setAttribute("value",
"auto");mxUtils.write(D,mxResources.get("automatic"));D.setAttribute("selected","selected");T.appendChild(D);D=document.createElement("div");D.className="geDialogFormRow";var W=document.createElement("span");W.className="geDialogFormLabel";mxUtils.write(W,mxResources.get("appearance")+":");D.appendChild(W);D.appendChild(T);A.appendChild(D);D=document.createElement("div");D.className="geDialogCheckRow";var p=document.createElement("input");p.setAttribute("type","checkbox");p.setAttribute("checked",
"checked");p.defaultChecked=!0;p.style.marginRight="8px";D.appendChild(p);W=document.createElement("label");mxUtils.write(W,mxResources.get("zoom")+":");D.appendChild(W);var u=document.createElement("input");u.setAttribute("type","text");u.style.width="60px";u.style.marginLeft="4px";u.value="100%";D.appendChild(u);A.appendChild(D);var G=this.addCheckbox(A,mxResources.get("fit"),!0,null,null,null,null,null,!0);D=null!=this.pages&&1<this.pages.length;var I=this.addCheckbox(A,mxResources.get("allPages"),
-D,!D,null,null,null,null,!0),H=this.addCheckbox(A,mxResources.get("layers"),!0,null,null,null,null,null,!0),g=this.addCheckbox(A,mxResources.get("tags"),!0,null,null,null,null,null,!0),t=this.addCheckbox(A,mxResources.get("useCurrentSettings"),!0,null,null,null,null,null,!0);t.checkRow.style.paddingLeft="24px";var B=this.addCheckbox(A,mxResources.get("lightbox"),!0,null,null,null,null,null,!0);mxEvent.addListener(g,"change",function(){g.checked?t.removeAttribute("disabled"):t.setAttribute("disabled",
-"disabled")});var K=null;if(EditorUi.enableHtmlEditOption){K=this.addEditButton(A,B);var Q=K.getEditInput();mxEvent.addListener(B,"change",function(){B.checked?Q.removeAttribute("disabled"):Q.setAttribute("disabled","disabled");Q.checked&&B.checked?K.getEditSelect().removeAttribute("disabled"):K.getEditSelect().setAttribute("disabled","disabled")})}q.appendChild(A);c=new CustomDialog(this,q,mxUtils.bind(this,function(){m(C.checked?k:null,p.checked,u.value,F.getTarget(),F.getColor(),G.checked,I.checked,
-H.checked,g.checked,B.checked,null!=K?K.getLink():null,null!=T?T.value:null,g.checked&&t.checked)}),null,c,d);this.showDialog(c.container,360,null,!0,!0);v.focus()};EditorUi.prototype.showPublishLinkDialog=function(c,d,k,m,q,v,A,C,D,J,F,T){var W=document.createElement("div");W.style.whiteSpace="nowrap";var p=document.createElement("h3");mxUtils.write(p,c||mxResources.get("publish"));p.style.width="100%";p.style.textAlign="center";p.style.marginTop="0px";p.style.marginBottom="10px";W.appendChild(p);
-var u=document.createElement("select");u.className="geBtn";u.style.marginBottom="8px";u.style.marginLeft="0px";u.style.width="100%";u.style.boxSizing="border-box";if(null==C||""==C.getHash())q=null!=q?q:"https://www.drawio.com/doc/faq/publish-diagram-as-link",c=document.createElement("option"),mxUtils.write(c,mxResources.get("makeCopy")),c.setAttribute("value","copy"),u.appendChild(c);c=document.createElement("option");mxUtils.write(c,mxResources.get("authorizationRequired"));c.setAttribute("value",
-"auth");u.appendChild(c);null!=C&&""!=C.getHash()||c.setAttribute("disabled","disabled");C=document.createElement("option");C.setAttribute("value","public");u.appendChild(C);null!=A?(mxUtils.write(C,mxResources.get("publicDiagramUrl")),C.setAttribute("title",A),u.value="public"):(mxUtils.write(C,mxResources.get("publicDiagramUrl")+" ("+mxResources.get("diagramIsNotPublic")+")"),C.setAttribute("disabled","disabled"));W.appendChild(u);mxUtils.br(W);u.focus();A=document.createElement("div");A.className=
-"geDialogSection";var G=null,I=null;if(null!=d||null!=k)d=document.createElement("div"),d.className="geDialogInlineFields",C=document.createElement("div"),C.className="geDialogInlineField",c=document.createElement("label"),mxUtils.write(c,mxResources.get("width")+":"),C.appendChild(c),G=document.createElement("input"),G.setAttribute("type","text"),G.value="100%",C.appendChild(G),d.appendChild(C),C=document.createElement("div"),C.className="geDialogInlineField",c=document.createElement("label"),mxUtils.write(c,
-mxResources.get("height")+":"),C.appendChild(c),I=document.createElement("input"),I.setAttribute("type","text"),I.value=k+"px",C.appendChild(I),d.appendChild(C),A.appendChild(d);var H=this.addLinkSection(A,m),g=J?this.addCheckbox(A,mxResources.get("transparentBackground"),!1,null,null,null,null,null,!0):null,t=document.createElement("select");t.className="geBtn";k=document.createElement("option");mxUtils.write(k,mxResources.get("allPages"));k.setAttribute("value","allPages");t.appendChild(k);k=document.createElement("option");
-mxUtils.write(k,mxResources.get("currentPage"));k.setAttribute("value","currentPage");t.appendChild(k);var B=null;null!=this.pages&&null!=this.currentPage&&0<this.getPageIndex(this.currentPage)&&(k=null!=this.currentPage?this.currentPage.getName():"",16<k.length&&(k=k.substring(0,16)+"..."),T&&(T=document.createElement("div"),T.className="geDialogFormRow",J=document.createElement("span"),J.className="geDialogFormLabel",mxUtils.write(J,mxResources.get("pages")+":"),T.appendChild(J),T.appendChild(t),
-A.appendChild(T)),B=this.addCheckbox(A,mxResources.get("selectedPage")+": "+k,null,null,null,null,null,null,!0));var K=document.createElement("select");K.style.maxWidth="260px";T=document.createElement("option");T.setAttribute("value","0");mxUtils.write(T,mxResources.get("light"));K.appendChild(T);T=document.createElement("option");T.setAttribute("value","1");mxUtils.write(T,mxResources.get("dark"));K.appendChild(T);T=document.createElement("option");T.setAttribute("value","auto");mxUtils.write(T,
-mxResources.get("automatic"));T.setAttribute("selected","selected");K.appendChild(T);F&&(F=document.createElement("div"),F.className="geDialogFormRow",T=document.createElement("span"),T.className="geDialogFormLabel",mxUtils.write(T,mxResources.get("appearance")+":"),F.appendChild(T),F.appendChild(K),A.appendChild(F));var Q=this.addCheckbox(A,mxResources.get("lightbox"),!0,null,null,!m,null,null,!0),S=this.addEditButton(A,Q),U=S.getEditInput();m&&(null!=Q.checkRow&&(Q.checkRow.style.display="none"),
-dy-=20);var N=this.addCheckbox(A,mxResources.get("layers"),!0,null,null,null,null,null,!0);N.checkRow.style.paddingLeft="24px";var P=this.addCheckbox(A,mxResources.get("tags"),!0,null,null,null,null,null,!0);P.checkRow.style.paddingLeft="24px";var V=this.addCheckbox(A,mxResources.get("useCurrentSettings"),!0,null,null,null,null,null,!0);V.checkRow.style.paddingLeft="48px";W.appendChild(A);mxEvent.addListener(P,"change",function(){P.checked?V.removeAttribute("disabled"):V.setAttribute("disabled","disabled")});
+D,!D,null,null,null,null,!0),H=this.addCheckbox(A,mxResources.get("layers"),!0,null,null,null,null,null,!0),g=this.addCheckbox(A,mxResources.get("tags"),!0,null,null,null,null,null,!0),t=this.addCheckbox(A,mxResources.get("useCurrentSettings"),!0,null,null,null,null,null,!0);t.checkRow.style.paddingLeft="24px";var C=this.addCheckbox(A,mxResources.get("lightbox"),!0,null,null,null,null,null,!0);mxEvent.addListener(g,"change",function(){g.checked?t.removeAttribute("disabled"):t.setAttribute("disabled",
+"disabled")});var K=null;if(EditorUi.enableHtmlEditOption){K=this.addEditButton(A,C);var Q=K.getEditInput();mxEvent.addListener(C,"change",function(){C.checked?Q.removeAttribute("disabled"):Q.setAttribute("disabled","disabled");Q.checked&&C.checked?K.getEditSelect().removeAttribute("disabled"):K.getEditSelect().setAttribute("disabled","disabled")})}q.appendChild(A);c=new CustomDialog(this,q,mxUtils.bind(this,function(){m(B.checked?k:null,p.checked,u.value,F.getTarget(),F.getColor(),G.checked,I.checked,
+H.checked,g.checked,C.checked,null!=K?K.getLink():null,null!=T?T.value:null,g.checked&&t.checked)}),null,c,d);this.showDialog(c.container,360,null,!0,!0);v.focus()};EditorUi.prototype.showPublishLinkDialog=function(c,d,k,m,q,v,A,B,D,J,F,T){var W=document.createElement("div");W.style.whiteSpace="nowrap";var p=document.createElement("h3");mxUtils.write(p,c||mxResources.get("publish"));p.style.width="100%";p.style.textAlign="center";p.style.marginTop="0px";p.style.marginBottom="10px";W.appendChild(p);
+var u=document.createElement("select");u.className="geBtn";u.style.marginBottom="8px";u.style.marginLeft="0px";u.style.width="100%";u.style.boxSizing="border-box";if(null==B||""==B.getHash())q=null!=q?q:"https://www.drawio.com/doc/faq/publish-diagram-as-link",c=document.createElement("option"),mxUtils.write(c,mxResources.get("makeCopy")),c.setAttribute("value","copy"),u.appendChild(c);c=document.createElement("option");mxUtils.write(c,mxResources.get("authorizationRequired"));c.setAttribute("value",
+"auth");u.appendChild(c);null!=B&&""!=B.getHash()||c.setAttribute("disabled","disabled");B=document.createElement("option");B.setAttribute("value","public");u.appendChild(B);null!=A?(mxUtils.write(B,mxResources.get("publicDiagramUrl")),B.setAttribute("title",A),u.value="public"):(mxUtils.write(B,mxResources.get("publicDiagramUrl")+" ("+mxResources.get("diagramIsNotPublic")+")"),B.setAttribute("disabled","disabled"));W.appendChild(u);mxUtils.br(W);u.focus();A=document.createElement("div");A.className=
+"geDialogSection";var G=null,I=null;if(null!=d||null!=k)d=document.createElement("div"),d.className="geDialogInlineFields",B=document.createElement("div"),B.className="geDialogInlineField",c=document.createElement("label"),mxUtils.write(c,mxResources.get("width")+":"),B.appendChild(c),G=document.createElement("input"),G.setAttribute("type","text"),G.value="100%",B.appendChild(G),d.appendChild(B),B=document.createElement("div"),B.className="geDialogInlineField",c=document.createElement("label"),mxUtils.write(c,
+mxResources.get("height")+":"),B.appendChild(c),I=document.createElement("input"),I.setAttribute("type","text"),I.value=k+"px",B.appendChild(I),d.appendChild(B),A.appendChild(d);var H=this.addLinkSection(A,m),g=J?this.addCheckbox(A,mxResources.get("transparentBackground"),!1,null,null,null,null,null,!0):null,t=document.createElement("select");t.className="geBtn";k=document.createElement("option");mxUtils.write(k,mxResources.get("allPages"));k.setAttribute("value","allPages");t.appendChild(k);k=document.createElement("option");
+mxUtils.write(k,mxResources.get("currentPage"));k.setAttribute("value","currentPage");t.appendChild(k);var C=null;null!=this.pages&&null!=this.currentPage&&0<this.getPageIndex(this.currentPage)&&(k=null!=this.currentPage?this.currentPage.getName():"",16<k.length&&(k=k.substring(0,16)+"..."),T&&(T=document.createElement("div"),T.className="geDialogFormRow",J=document.createElement("span"),J.className="geDialogFormLabel",mxUtils.write(J,mxResources.get("pages")+":"),T.appendChild(J),T.appendChild(t),
+A.appendChild(T)),C=this.addCheckbox(A,mxResources.get("selectedPage")+": "+k,null,null,null,null,null,null,!0));var K=document.createElement("select");K.style.maxWidth="260px";T=document.createElement("option");T.setAttribute("value","0");mxUtils.write(T,mxResources.get("light"));K.appendChild(T);T=document.createElement("option");T.setAttribute("value","1");mxUtils.write(T,mxResources.get("dark"));K.appendChild(T);T=document.createElement("option");T.setAttribute("value","auto");mxUtils.write(T,
+mxResources.get("automatic"));T.setAttribute("selected","selected");K.appendChild(T);F&&(F=document.createElement("div"),F.className="geDialogFormRow",T=document.createElement("span"),T.className="geDialogFormLabel",mxUtils.write(T,mxResources.get("appearance")+":"),F.appendChild(T),F.appendChild(K),A.appendChild(F));var Q=this.addCheckbox(A,mxResources.get("lightbox"),!0,null,null,!m,null,null,!0),S=this.addEditButton(A,Q),U=S.getEditInput();m&&null!=Q.checkRow&&(Q.checkRow.style.display="none");
+var N=this.addCheckbox(A,mxResources.get("layers"),!0,null,null,null,null,null,!0);N.checkRow.style.paddingLeft="24px";var P=this.addCheckbox(A,mxResources.get("tags"),!0,null,null,null,null,null,!0);P.checkRow.style.paddingLeft="24px";var V=this.addCheckbox(A,mxResources.get("useCurrentSettings"),!0,null,null,null,null,null,!0);V.checkRow.style.paddingLeft="48px";W.appendChild(A);mxEvent.addListener(P,"change",function(){P.checked?V.removeAttribute("disabled"):V.setAttribute("disabled","disabled")});
mxEvent.addListener(Q,"change",function(){Q.checked?(N.removeAttribute("disabled"),U.removeAttribute("disabled"),P.removeAttribute("disabled"),P.checked&&V.removeAttribute("disabled")):(N.setAttribute("disabled","disabled"),U.setAttribute("disabled","disabled"),P.setAttribute("disabled","disabled"),V.setAttribute("disabled","disabled"));U.checked&&Q.checked?S.getEditSelect().removeAttribute("disabled"):S.getEditSelect().setAttribute("disabled","disabled")});m=new CustomDialog(this,W,mxUtils.bind(this,
-function(){D(H.getTarget(),H.getColor(),null==B?!1:B.checked,Q.checked,S.getLink(),N.checked,null!=G?G.value:null,null!=I?I.value:null,P.checked,u.value,null!=g?g.checked:!1,K.value,"allPages"==t.value,P.checked&&V.checked)}),null,mxResources.get("create"),q,v);this.showDialog(m.container,360,null,!0,!0);null!=G?(G.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?G.select():document.execCommand("selectAll",!1,null)):null==u.parentNode;H.focus()};EditorUi.prototype.showRemoteExportDialog=
-function(c,d,k,m,q){var v=document.createElement("div");v.style.whiteSpace="nowrap";var A=document.createElement("h3");mxUtils.write(A,mxResources.get("image"));A.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";v.appendChild(A);if(q){q=document.createElement("div");q.className="geDialogSection";A=document.createElement("div");A.className="geDialogFormRow";var C=document.createElement("span");C.className="geDialogFormLabel";mxUtils.write(C,mxResources.get("zoom")+":");
-A.appendChild(C);var D=document.createElement("input");D.setAttribute("type","text");D.value=this.lastExportZoom||"100%";A.appendChild(D);q.appendChild(A);A=document.createElement("div");A.className="geDialogFormRow";C=document.createElement("span");C.className="geDialogFormLabel";mxUtils.write(C,mxResources.get("borderWidth")+":");A.appendChild(C);var J=document.createElement("input");J.setAttribute("type","text");J.value=this.lastExportBorder||"0";A.appendChild(J);q.appendChild(A);v.appendChild(q)}q=
+function(){D(H.getTarget(),H.getColor(),null==C?!1:C.checked,Q.checked,S.getLink(),N.checked,null!=G?G.value:null,null!=I?I.value:null,P.checked,u.value,null!=g?g.checked:!1,K.value,"allPages"==t.value,P.checked&&V.checked)}),null,mxResources.get("create"),q,v);this.showDialog(m.container,360,null,!0,!0);null!=G?(G.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?G.select():document.execCommand("selectAll",!1,null)):null==u.parentNode;H.focus()};EditorUi.prototype.showRemoteExportDialog=
+function(c,d,k,m,q){var v=document.createElement("div");v.style.whiteSpace="nowrap";var A=document.createElement("h3");mxUtils.write(A,mxResources.get("image"));A.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";v.appendChild(A);if(q){q=document.createElement("div");q.className="geDialogSection";A=document.createElement("div");A.className="geDialogFormRow";var B=document.createElement("span");B.className="geDialogFormLabel";mxUtils.write(B,mxResources.get("zoom")+":");
+A.appendChild(B);var D=document.createElement("input");D.setAttribute("type","text");D.value=this.lastExportZoom||"100%";A.appendChild(D);q.appendChild(A);A=document.createElement("div");A.className="geDialogFormRow";B=document.createElement("span");B.className="geDialogFormLabel";mxUtils.write(B,mxResources.get("borderWidth")+":");A.appendChild(B);var J=document.createElement("input");J.setAttribute("type","text");J.value=this.lastExportBorder||"0";A.appendChild(J);q.appendChild(A);v.appendChild(q)}q=
document.createElement("div");q.className="geDialogSection";var F=this.addCheckbox(q,mxResources.get("selectionOnly"),!1,this.editor.graph.isSelectionEmpty()),T=m?null:this.addCheckbox(q,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram);A=this.editor.graph;var W=m?null:this.addCheckbox(q,mxResources.get("transparentBackground"),A.background==mxConstants.NONE||null==A.background);v.appendChild(q);c=new CustomDialog(this,v,mxUtils.bind(this,function(){var p=parseInt(D.value)/100||
-1,u=parseInt(J.value)||0;k(!F.checked,null!=T?T.checked:!1,null!=W?W.checked:!1,p,u)}),null,c,d);this.showDialog(c.container,340,null,!0,!0)};EditorUi.prototype.showExportDialog=function(c,d,k,m,q,v,A,C,D){A=null!=A?A:Editor.defaultIncludeDiagram;var J=document.createElement("div");J.style.whiteSpace="nowrap";var F=this.editor.graph,T=document.createElement("h3");mxUtils.write(T,c);T.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";J.appendChild(T);c=document.createElement("div");
+1,u=parseInt(J.value)||0;k(!F.checked,null!=T?T.checked:!1,null!=W?W.checked:!1,p,u)}),null,c,d);this.showDialog(c.container,340,null,!0,!0)};EditorUi.prototype.showExportDialog=function(c,d,k,m,q,v,A,B,D){A=null!=A?A:Editor.defaultIncludeDiagram;var J=document.createElement("div");J.style.whiteSpace="nowrap";var F=this.editor.graph,T=document.createElement("h3");mxUtils.write(T,c);T.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";J.appendChild(T);c=document.createElement("div");
c.className="geDialogSection";T=document.createElement("div");T.className="geDialogFormRow";var W=document.createElement("span");W.className="geDialogFormLabel";mxUtils.write(W,mxResources.get("zoom")+":");T.appendChild(W);var p=document.createElement("input");p.setAttribute("type","text");p.value=this.lastExportZoom||"100%";T.appendChild(p);c.appendChild(T);T=document.createElement("div");T.className="geDialogFormRow";W=document.createElement("span");W.className="geDialogFormLabel";mxUtils.write(W,
mxResources.get("borderWidth")+":");T.appendChild(W);var u=document.createElement("input");u.setAttribute("type","text");u.value=this.lastExportBorder||"0";T.appendChild(u);c.appendChild(T);J.appendChild(c);c=document.createElement("div");c.className="geDialogSection";var G=this.addCheckbox(c,mxResources.get("selectionOnly"),!1,F.isSelectionEmpty()),I=document.createElement("input");I.setAttribute("disabled","disabled");I.setAttribute("type","checkbox");var H=document.createElement("select");H.style.marginLeft=
"8px";T=["selectionOnly","diagram","page"];for(W=0;W<T.length;W++)if(!F.isSelectionEmpty()||"selectionOnly"!=T[W]){var g=document.createElement("option");mxUtils.write(g,mxResources.get(T[W]));g.setAttribute("value",T[W]);H.appendChild(g)}D?(v=document.createElement("div"),v.className="geDialogFormRow",T=document.createElement("span"),T.className="geDialogFormLabel",mxUtils.write(T,mxResources.get("size")+":"),v.appendChild(T),H.style.marginLeft="0",v.appendChild(H),c.appendChild(v),mxEvent.addListener(H,
"change",function(){"selectionOnly"==H.value&&(G.checked=!0)})):v&&(v=document.createElement("div"),v.className="geDialogCheckRow",v.style.marginTop="8px",v.appendChild(I),T=document.createElement("label"),mxUtils.write(T,mxResources.get("crop")),v.appendChild(T),c.appendChild(v),mxEvent.addListener(G,"change",function(){G.checked?I.removeAttribute("disabled"):I.setAttribute("disabled","disabled")}));F.isSelectionEmpty()?D&&(G.style.display="none",G.nextSibling.style.display="none",G.nextSibling.nextSibling.style.display=
-"none"):(H.value="diagram",I.setAttribute("checked","checked"),I.defaultChecked=!0,mxEvent.addListener(G,"change",function(){H.value=G.checked?"selectionOnly":"diagram"}));var t=this.addCheckbox(c,mxResources.get("transparentBackground"),!1,null,null,"jpeg"!=C&&"webp"!=C),B=document.createElement("select");B.style.maxWidth="260px";D=document.createElement("option");D.setAttribute("value","light");mxUtils.write(D,mxResources.get("light"));B.appendChild(D);v=document.createElement("option");v.setAttribute("value",
-"dark");mxUtils.write(v,mxResources.get("dark"));B.appendChild(v);"svg"==C&&mxUtils.lightDarkColorSupported?(v=document.createElement("option"),v.setAttribute("value","auto"),mxUtils.write(v,mxResources.get("automatic")),v.setAttribute("selected","selected"),B.appendChild(v)):Editor.isDarkMode()?v.setAttribute("selected","selected"):D.setAttribute("selected","selected");D=document.createElement("div");D.className="geDialogFormRow";v=document.createElement("span");v.className="geDialogFormLabel";mxUtils.write(v,
-mxResources.get("appearance")+":");D.appendChild(v);D.appendChild(B);c.appendChild(D);var K=this.addCheckbox(c,mxResources.get("shadow"),F.shadowVisible),Q=null;if("png"==C||"jpeg"==C||"webp"==C)Q=this.addCheckbox(c,mxResources.get("grid"),!1,this.isOffline()||!Editor.canvasSupported,!1,!0);J.appendChild(c);F=document.createElement("div");F.className="geDialogSection";D=!1;c=null!=this.pages?this.pages.length:1;var S=this.addCheckbox(F,mxResources.get("includeCopyOfMyDiagram")+(1<c?":":""),A,null,
-null,"jpeg"!=C&&"webp"!=C,null,null,!0);"jpeg"!=C&&"webp"!=C&&(D=!0);var U=document.createElement("select");U.style.maxWidth="260px";if("png"==C||"svg"==C)A=function(){S.checked?U.removeAttribute("disabled"):U.setAttribute("disabled","disabled")},v=document.createElement("option"),v.setAttribute("value","allPages"),mxUtils.write(v,mxResources.get("allPages")),U.appendChild(v),v=document.createElement("option"),v.setAttribute("value","currentPage"),mxUtils.write(v,mxResources.get("currentPage")),U.appendChild(v),
+"none"):(H.value="diagram",I.setAttribute("checked","checked"),I.defaultChecked=!0,mxEvent.addListener(G,"change",function(){H.value=G.checked?"selectionOnly":"diagram"}));var t=this.addCheckbox(c,mxResources.get("transparentBackground"),!1,null,null,"jpeg"!=B&&"webp"!=B),C=document.createElement("select");C.style.maxWidth="260px";D=document.createElement("option");D.setAttribute("value","light");mxUtils.write(D,mxResources.get("light"));C.appendChild(D);v=document.createElement("option");v.setAttribute("value",
+"dark");mxUtils.write(v,mxResources.get("dark"));C.appendChild(v);"svg"==B&&mxUtils.lightDarkColorSupported?(v=document.createElement("option"),v.setAttribute("value","auto"),mxUtils.write(v,mxResources.get("automatic")),v.setAttribute("selected","selected"),C.appendChild(v)):Editor.isDarkMode()?v.setAttribute("selected","selected"):D.setAttribute("selected","selected");D=document.createElement("div");D.className="geDialogFormRow";v=document.createElement("span");v.className="geDialogFormLabel";mxUtils.write(v,
+mxResources.get("appearance")+":");D.appendChild(v);D.appendChild(C);c.appendChild(D);var K=this.addCheckbox(c,mxResources.get("shadow"),F.shadowVisible),Q=null;if("png"==B||"jpeg"==B||"webp"==B)Q=this.addCheckbox(c,mxResources.get("grid"),!1,this.isOffline()||!Editor.canvasSupported,!1,!0);J.appendChild(c);F=document.createElement("div");F.className="geDialogSection";D=!1;c=null!=this.pages?this.pages.length:1;var S=this.addCheckbox(F,mxResources.get("includeCopyOfMyDiagram")+(1<c?":":""),A,null,
+null,"jpeg"!=B&&"webp"!=B,null,null,!0);"jpeg"!=B&&"webp"!=B&&(D=!0);var U=document.createElement("select");U.style.maxWidth="260px";if("png"==B||"svg"==B)A=function(){S.checked?U.removeAttribute("disabled"):U.setAttribute("disabled","disabled")},v=document.createElement("option"),v.setAttribute("value","allPages"),mxUtils.write(v,mxResources.get("allPages")),U.appendChild(v),v=document.createElement("option"),v.setAttribute("value","currentPage"),mxUtils.write(v,mxResources.get("currentPage")),U.appendChild(v),
1<c&&(c=document.createElement("div"),c.style.paddingLeft="24px",c.appendChild(U),F.appendChild(c)),null!=this.lastEmbedInclude&&(U.value=this.lastEmbedInclude),mxEvent.addListener(S,"change",A),A();var N=document.createElement("input");N.setAttribute("type","checkbox");N.id="geCheckbox-"+Editor.guid();var P=document.createElement("input");P.setAttribute("type","checkbox");P.id="geCheckbox-"+Editor.guid();d&&(N.checked=null!=this.lastEmbedImages?this.lastEmbedImages:!0,D=document.createElement("div"),
D.className="geDialogCheckRow",D.appendChild(N),A=document.createElement("label"),mxUtils.write(A,mxResources.get("embedImages")),A.setAttribute("for",N.id),D.appendChild(A),F.appendChild(D),P.checked=null!=this.lastEmbedFonts?this.lastEmbedImages:!0,D=document.createElement("div"),D.className="geDialogCheckRow",D.appendChild(P),A=document.createElement("label"),mxUtils.write(A,mxResources.get("embedFonts")),A.setAttribute("for",P.id),D.appendChild(A),F.appendChild(D),D=!0);var V=document.createElement("select");
V.style.maxWidth="260px";v=document.createElement("option");v.setAttribute("value","auto");mxUtils.write(v,mxResources.get("automatic"));V.appendChild(v);A=document.createElement("option");A.setAttribute("value","blank");mxUtils.write(A,mxResources.get("openInNewWindow"));V.appendChild(A);A=document.createElement("option");A.setAttribute("value","self");mxUtils.write(A,mxResources.get("openInThisWindow"));V.appendChild(A);A=document.createElement("div");mxUtils.write(A,mxResources.get("LinksLost"));
-A.style.margin="7px";A.style.display="none";"svg"==C&&(D=document.createElement("div"),D.className="geDialogFormRow",c=document.createElement("span"),c.className="geDialogFormLabel",mxUtils.write(c,mxResources.get("links")+":"),D.appendChild(c),D.appendChild(V),F.appendChild(D),F.appendChild(A),D=!0);D&&J.appendChild(F);k=new CustomDialog(this,J,mxUtils.bind(this,function(){this.lastExportBorder=u.value;this.lastExportZoom=p.value;this.lastEmbedImages=N.checked;this.lastEmbedFonts=P.checked;this.lastEmbedInclude=
-U.value;q(p.value,t.checked,!G.checked,K.checked,S.checked,N.checked&&d,u.value,I.checked,("png"==C||"svg"==C)&&"currentPage"==U.value,V.value,null!=Q?Q.checked:null,null!=B?B.value:null,H.value,P.checked)}),null,k,m);this.showDialog(k.container,360,null,!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(c,d,k,m,q){var v=document.createElement("div"),
-A=this.editor.graph;if(null!=d){var C=document.createElement("h3");mxUtils.write(C,d);C.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";v.appendChild(C)}d=document.createElement("div");d.className="geDialogSection";var D=this.addCheckbox(d,mxResources.get("fit"),!0,null,null,null,null,null,!0),J=this.addCheckbox(d,mxResources.get("shadow"),A.shadowVisible&&m,!m,null,null,null,null,!0),F=this.addCheckbox(d,k,!1,null,null,null,null,null,!0),T=this.addCheckbox(d,mxResources.get("lightbox"),
+A.style.margin="7px";A.style.display="none";"svg"==B&&(D=document.createElement("div"),D.className="geDialogFormRow",c=document.createElement("span"),c.className="geDialogFormLabel",mxUtils.write(c,mxResources.get("links")+":"),D.appendChild(c),D.appendChild(V),F.appendChild(D),F.appendChild(A),D=!0);D&&J.appendChild(F);k=new CustomDialog(this,J,mxUtils.bind(this,function(){this.lastExportBorder=u.value;this.lastExportZoom=p.value;this.lastEmbedImages=N.checked;this.lastEmbedFonts=P.checked;this.lastEmbedInclude=
+U.value;q(p.value,t.checked,!G.checked,K.checked,S.checked,N.checked&&d,u.value,I.checked,("png"==B||"svg"==B)&&"currentPage"==U.value,V.value,null!=Q?Q.checked:null,null!=C?C.value:null,H.value,P.checked)}),null,k,m);this.showDialog(k.container,360,null,!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(c,d,k,m,q){var v=document.createElement("div"),
+A=this.editor.graph;if(null!=d){var B=document.createElement("h3");mxUtils.write(B,d);B.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";v.appendChild(B)}d=document.createElement("div");d.className="geDialogSection";var D=this.addCheckbox(d,mxResources.get("fit"),!0,null,null,null,null,null,!0),J=this.addCheckbox(d,mxResources.get("shadow"),A.shadowVisible&&m,!m,null,null,null,null,!0),F=this.addCheckbox(d,k,!1,null,null,null,null,null,!0),T=this.addCheckbox(d,mxResources.get("lightbox"),
!0,null,null,null,null,null,!0),W=this.addEditButton(d,T),p=W.getEditInput(),u=1<A.model.getChildCount(A.model.getRoot()),G=this.addCheckbox(d,mxResources.get("layers"),u,!u,null,null,null,null,!0);G.checkRow.style.paddingLeft="24px";v.appendChild(d);mxEvent.addListener(T,"change",function(){T.checked?(u&&G.removeAttribute("disabled"),p.removeAttribute("disabled")):(G.setAttribute("disabled","disabled"),p.setAttribute("disabled","disabled"));p.checked&&T.checked?W.getEditSelect().removeAttribute("disabled"):
-W.getEditSelect().setAttribute("disabled","disabled")});k=new CustomDialog(this,v,mxUtils.bind(this,function(){c(D.checked,J.checked,F.checked,T.checked,W.getLink(),G.checked)}),null,mxResources.get("embed"),q);this.showDialog(k.container,280,null,!0,!0)};EditorUi.prototype.createEmbedImage=function(c,d,k,m,q,v,A,C){function D(p){var u=" ",G="";m&&(u=" 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('"+
+W.getEditSelect().setAttribute("disabled","disabled")});k=new CustomDialog(this,v,mxUtils.bind(this,function(){c(D.checked,J.checked,F.checked,T.checked,W.getLink(),G.checked)}),null,mxResources.get("embed"),q);this.showDialog(k.container,280,null,!0,!0)};EditorUi.prototype.createEmbedImage=function(c,d,k,m,q,v,A,B){function D(p){var u=" ",G="";m&&(u=" 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!=F?"&page="+F:"")+(q?"&edit=_blank":"")+(v?"&layers=1":"")+"');}})(this);\"",G+="cursor:pointer;");c&&(G+="max-width:100%;");var I="";k&&(I=' width="'+Math.round(J.width)+'" height="'+Math.round(J.height)+'"');A('<img src="'+p+'"'+I+(""!=G?' style="'+G+'"':"")+u+"/>")}var J=this.editor.graph.getGraphBounds(),F=this.getSelectedPageIndex();if(this.editor.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(p){var u=m?this.getFileData(!0):
-null;p=this.createImageDataUri(p,u,"png");D(p)}),null,null,null,mxUtils.bind(this,function(p){C({message:mxResources.get("unknownError")})}),null,!0,k?2:1,null,d,null,null,Editor.defaultBorder);else if(d=this.getFileData(!0),J.width*J.height<=MAX_AREA&&d.length<=MAX_REQUEST_SIZE){var T="";k&&(T="&w="+Math.round(2*J.width)+"&h="+Math.round(2*J.height));var W=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(m?"1":"0")+T+"&xml="+encodeURIComponent(d));W.send(mxUtils.bind(this,function(){200<=
-W.getStatus()&&299>=W.getStatus()?D("data:image/png;base64,"+W.getText()):C({message:mxResources.get("unknownError")})}))}else C({message:mxResources.get("drawingTooLarge")})};EditorUi.prototype.createEmbedSvg=function(c,d,k,m,q,v,A){var C=this.editor.graph.getSvg(null,null,null,null,null,null,null,null,null,null,!k,"auto"),D=C.getElementsByTagName("a");if(null!=D)for(var J=0;J<D.length;J++){var F=D[J].getAttribute("href");null!=F&&"#"==F.charAt(0)&&"_blank"==D[J].getAttribute("target")&&D[J].removeAttribute("target")}m&&
-C.setAttribute("content",this.getFileData(!0));d&&this.editor.graph.addSvgShadow(C);if(k){var T=" ",W="";m&&(T="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"+(q?"&edit=_blank":"")+(v?"&layers=1":
-"")+"');}})(this);\"",W+="cursor:pointer;");c&&(W+="max-width:100%;");this.editor.convertImages(C,mxUtils.bind(this,function(p){A('<img src="'+Editor.createSvgDataUri(mxUtils.getXml(p))+'"'+(""!=W?' style="'+W+'"':"")+T+"/>")}))}else W="",m&&(d=this.getSelectedPageIndex(),C.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!=d?"&page="+d:"")+(q?"&edit=_blank":"")+(v?"&layers=1":"")+"');}}})(this);"),W+="cursor:pointer;"),c&&(c=parseInt(C.getAttribute("width")),q=parseInt(C.getAttribute("height")),C.setAttribute("viewBox","-0.5 -0.5 "+c+" "+q),W+="max-width:100%;max-height:"+q+"px;",C.removeAttribute("height")),""!=W&&C.setAttribute("style",W),this.editor.addFontCss(C),this.editor.graph.mathEnabled&&this.editor.addMathCss(C),A(mxUtils.getXml(C))};EditorUi.prototype.timeSince=function(c){c=
+null;p=this.createImageDataUri(p,u,"png");D(p)}),null,null,null,mxUtils.bind(this,function(p){B({message:mxResources.get("unknownError")})}),null,!0,k?2:1,null,d,null,null,Editor.defaultBorder);else if(d=this.getFileData(!0),J.width*J.height<=MAX_AREA&&d.length<=MAX_REQUEST_SIZE){var T="";k&&(T="&w="+Math.round(2*J.width)+"&h="+Math.round(2*J.height));var W=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(m?"1":"0")+T+"&xml="+encodeURIComponent(d));W.send(mxUtils.bind(this,function(){200<=
+W.getStatus()&&299>=W.getStatus()?D("data:image/png;base64,"+W.getText()):B({message:mxResources.get("unknownError")})}))}else B({message:mxResources.get("drawingTooLarge")})};EditorUi.prototype.createEmbedSvg=function(c,d,k,m,q,v,A){var B=this.editor.graph.getSvg(null,null,null,null,null,null,null,null,null,null,!k,"auto"),D=B.getElementsByTagName("a");if(null!=D)for(var J=0;J<D.length;J++){var F=D[J].getAttribute("href");null!=F&&"#"==F.charAt(0)&&"_blank"==D[J].getAttribute("target")&&D[J].removeAttribute("target")}m&&
+B.setAttribute("content",this.getFileData(!0));d&&this.editor.graph.addSvgShadow(B);if(k){var T=" ",W="";m&&(T="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"+(q?"&edit=_blank":"")+(v?"&layers=1":
+"")+"');}})(this);\"",W+="cursor:pointer;");c&&(W+="max-width:100%;");this.editor.convertImages(B,mxUtils.bind(this,function(p){A('<img src="'+Editor.createSvgDataUri(mxUtils.getXml(p))+'"'+(""!=W?' style="'+W+'"':"")+T+"/>")}))}else W="",m&&(d=this.getSelectedPageIndex(),B.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!=d?"&page="+d:"")+(q?"&edit=_blank":"")+(v?"&layers=1":"")+"');}}})(this);"),W+="cursor:pointer;"),c&&(c=parseInt(B.getAttribute("width")),q=parseInt(B.getAttribute("height")),B.setAttribute("viewBox","-0.5 -0.5 "+c+" "+q),W+="max-width:100%;max-height:"+q+"px;",B.removeAttribute("height")),""!=W&&B.setAttribute("style",W),this.editor.addFontCss(B),this.editor.graph.mathEnabled&&this.editor.addMathCss(B),A(mxUtils.getXml(B))};EditorUi.prototype.timeSince=function(c){c=
Math.floor((new Date-c)/1E3);var d=Math.floor(c/31536E3);if(1<d)return d+" "+mxResources.get("years");d=Math.floor(c/2592E3);if(1<d)return d+" "+mxResources.get("months");d=Math.floor(c/86400);if(1<d)return d+" "+mxResources.get("days");d=Math.floor(c/3600);if(1<d)return d+" "+mxResources.get("hours");d=Math.floor(c/60);return 1<d?d+" "+mxResources.get("minutes"):1==d?d+" "+mxResources.get("minute"):null};EditorUi.prototype.decodeNodeIntoGraph=function(c,d){if(null!=c){var k=null;if("diagram"==c.nodeName)k=
c;else if("mxfile"==c.nodeName){var m=c.getElementsByTagName("diagram");if(0<m.length){k=m[0];var q=d.getGlobalVariable;d.getGlobalVariable=function(v){return"page"==v?k.getAttribute("name")||mxResources.get("pageWithNumber",[1]):"pagenumber"==v?1:q.apply(this,arguments)}}}null!=k&&(c=Editor.parseDiagramNode(k))}m=this.editor.graph;try{this.editor.graph=d,this.editor.setGraphXml(c)}catch(v){}finally{this.editor.graph=m}return c};EditorUi.prototype.getSvgFileProperties=function(c){return this.getPngFileProperties(c)};
EditorUi.prototype.getPngFileProperties=function(c){var d=1,k=0;if(null!=c){if(c.hasAttribute("scale")){var m=parseFloat(c.getAttribute("scale"));!isNaN(m)&&0<m&&(d=m)}c.hasAttribute("border")&&(m=parseInt(c.getAttribute("border")),!isNaN(m)&&0<m&&(k=m))}return{scale:d,border:k}};EditorUi.prototype.getEmbeddedPng=function(c,d,k,m,q){try{var v=this.editor.graph,A=null;if(null!=k&&0<k.length)v=this.createTemporaryGraph(v.getStylesheet()),document.body.appendChild(v.container),this.decodeNodeIntoGraph(this.editor.extractGraphModel(mxUtils.parseXml(k).documentElement,
-!0),v),A=k;else if(null!=this.pages&&this.currentPage!=this.pages[0]){v=this.createTemporaryGraph(v.getStylesheet());var C=v.getGlobalVariable;v.setBackgroundImage=this.editor.graph.setBackgroundImage;var D=this.pages[0];this.currentPage==D?v.setBackgroundImage(this.editor.graph.backgroundImage):null!=D.viewState&&null!=D.viewState&&v.setBackgroundImage(D.viewState.backgroundImage);v.getGlobalVariable=function(J){return"page"==J?D.getName():"pagenumber"==J?1:C.apply(this,arguments)};document.body.appendChild(v.container);
+!0),v),A=k;else if(null!=this.pages&&this.currentPage!=this.pages[0]){v=this.createTemporaryGraph(v.getStylesheet());var B=v.getGlobalVariable;v.setBackgroundImage=this.editor.graph.setBackgroundImage;var D=this.pages[0];this.currentPage==D?v.setBackgroundImage(this.editor.graph.backgroundImage):null!=D.viewState&&null!=D.viewState&&v.setBackgroundImage(D.viewState.backgroundImage);v.getGlobalVariable=function(J){return"page"==J?D.getName():"pagenumber"==J?1:B.apply(this,arguments)};document.body.appendChild(v.container);
v.model.setRoot(D.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(J){try{null==A&&(A=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var F=J.toDataURL("image/png");F=Editor.writeGraphModelToPng(F,"tEXt","mxfile",encodeURIComponent(A));c(F.substring(F.lastIndexOf(",")+1));v!=this.editor.graph&&v.container.parentNode.removeChild(v.container)}catch(T){null!=d&&d(T)}}),null,null,null,mxUtils.bind(this,function(J){null!=d&&d(J)}),null,null,m,null,v.shadowVisible,null,v,q,null,
-null,null,"diagram",null)}catch(J){null!=d&&d(J)}};EditorUi.prototype.getEmbeddedSvg=function(c,d,k,m,q,v,A,C,D,J,F,T,W){C=null!=C?C:!0;F=null!=F?F:0;A=null!=D?D:d.background;A==mxConstants.NONE&&(A=null);null==A&&"none"==d.getAdaptiveColors()&&(A="#ffffff");D=this.editor.graph.createSvgImageExport(null!=c);v=d.getSvg(A,J,F,null,null,v,null,D,null,d.shadowVisible||T,null,W,"diagram");(d.shadowVisible||T)&&d.addSvgShadow(v,null,null,0==F);null!=c&&v.setAttribute("content",c);null!=k&&v.setAttribute("resource",
-k);var p=mxUtils.bind(this,function(u){u=(m?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(u);null!=q&&q(u);return u});d.mathEnabled&&this.editor.addMathCss(v);if(null!=q)this.embedFonts(v,mxUtils.bind(this,function(u){C?this.editor.convertImages(u,mxUtils.bind(this,function(G){p(G)})):p(u)}));else return p(v)};EditorUi.prototype.embedFonts=function(c,d){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&&this.editor.addFontCss(c,
-this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(k){try{null!=k&&this.editor.addFontCss(c,k),d(c)}catch(m){d(c)}}))}catch(k){d(c)}}))};EditorUi.prototype.exportImage=function(c,d,k,m,q,v,A,C,D,J,F,T,W){D=null!=D?D:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(u){Editor.addRetryToError(u,mxUtils.bind(this,function(){this.exportImage(c,d,k,m,q,v,A,C,D,J,F,T,W)}));this.handleError(u)}))){var p=this.editor.graph.isSelectionEmpty();
-k=null!=k?k:p;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,function(u){this.spinner.stop();try{this.saveCanvas(u,q?this.getFileData(!0,null,null,null,k,C,null,null,null,null,null,c,v):null,D,null==this.pages||0==this.pages.length,F)}catch(G){this.handleError(G)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(u){this.spinner.stop();this.handleError(u)}),null,k,c||1,d,m,null,null,v,A,J,T,W)}catch(u){this.spinner.stop(),this.handleError(u)}}};
+null,null,"diagram",null)}catch(J){null!=d&&d(J)}};EditorUi.prototype.getEmbeddedSvg=function(c,d,k,m,q,v,A,B,D,J,F,T,W){B=null!=B?B:!0;F=null!=F?F:0;A=null!=D?D:d.background;A==mxConstants.NONE&&(A=null);null==A&&"none"==d.getAdaptiveColors()&&(A="#ffffff");D=this.editor.graph.createSvgImageExport(null!=c);v=d.getSvg(A,J,F,null,null,v,null,D,null,d.shadowVisible||T,null,W,"diagram");(d.shadowVisible||T)&&d.addSvgShadow(v,null,null,0==F);null!=c&&v.setAttribute("content",c);null!=k&&v.setAttribute("resource",
+k);var p=mxUtils.bind(this,function(u){u=(m?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(u);null!=q&&q(u);return u});d.mathEnabled&&this.editor.addMathCss(v);if(null!=q)this.embedFonts(v,mxUtils.bind(this,function(u){B?this.editor.convertImages(u,mxUtils.bind(this,function(G){p(G)})):p(u)}));else return p(v)};EditorUi.prototype.embedFonts=function(c,d){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&&this.editor.addFontCss(c,
+this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(k){try{null!=k&&this.editor.addFontCss(c,k),d(c)}catch(m){d(c)}}))}catch(k){d(c)}}))};EditorUi.prototype.exportImage=function(c,d,k,m,q,v,A,B,D,J,F,T,W){D=null!=D?D:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(u){Editor.addRetryToError(u,mxUtils.bind(this,function(){this.exportImage(c,d,k,m,q,v,A,B,D,J,F,T,W)}));this.handleError(u)}))){var p=this.editor.graph.isSelectionEmpty();
+k=null!=k?k:p;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,function(u){this.spinner.stop();try{this.saveCanvas(u,q?this.getFileData(!0,null,null,null,k,B,null,null,null,null,null,c,v):null,D,null==this.pages||0==this.pages.length,F)}catch(G){this.handleError(G)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(u){this.spinner.stop();this.handleError(u)}),null,k,c||1,d,m,null,null,v,A,J,T,W)}catch(u){this.spinner.stop(),this.handleError(u)}}};
EditorUi.prototype.isCorsEnabledForUrl=function(c){return this.editor.isCorsEnabledForUrl(c)};EditorUi.prototype.addLocalPagesToMapping=function(c){c=null!=c?c:{};if(null!=this.pages)for(var d=0;d<this.pages.length;d++)c[this.pages[d].getId()]=this.pages[d].getId();return c};EditorUi.prototype.importXml=function(c,d,k,m,q,v,A){EditorUi.debug("EditorUi.importXml",[this],"xml",[c],"dx",[d],"dy",[k],"crop",[m],"noErrorHandling",[q],"addNewPage",[v],"applyDefaultStyles",[A]);d=null!=d?d:0;k=null!=k?k:
-0;var C=[];try{if(null!=c&&0<c.length){var D=null!=this.pages?this.pages.length:0,J=this.isDiagramEmpty(),F=this.currentPage,T=this.editor.graph;T.model.beginUpdate();try{var W=mxUtils.parseXml(c);c={};var p=this.editor.extractGraphModel(W.documentElement,null!=this.pages);if(null!=p&&"mxfile"==p.nodeName&&null!=this.pages){var u=p.getElementsByTagName("diagram");if(0<u.length){W=[];var G=0;if(1==u.length&&!v){if(null!=this.currentPage&&(c[u[0].getAttribute("id")]=this.currentPage.getId(),this.isBlankFile())){var I=
+0;var B=[];try{if(null!=c&&0<c.length){var D=null!=this.pages?this.pages.length:0,J=this.isDiagramEmpty(),F=this.currentPage,T=this.editor.graph;T.model.beginUpdate();try{var W=mxUtils.parseXml(c);c={};var p=this.editor.extractGraphModel(W.documentElement,null!=this.pages);if(null!=p&&"mxfile"==p.nodeName&&null!=this.pages){var u=p.getElementsByTagName("diagram");if(0<u.length){W=[];var G=0;if(1==u.length&&!v){if(null!=this.currentPage&&(c[u[0].getAttribute("id")]=this.currentPage.getId(),this.isBlankFile())){var I=
u[0].getAttribute("name");null!=I&&""!=I&&this.editor.graph.model.execute(new RenamePage(this,this.currentPage,I))}p=Editor.parseDiagramNode(u[0]);m=!1;G=1}for(;G<u.length;G++){var H=u[G].getAttribute("id");u[G].removeAttribute("id");var g=this.updatePageRoot(new DiagramPage(u[G]));c[H]=u[G].getAttribute("id");var t=this.pages.length;null==g.getName()&&g.setName(mxResources.get("pageWithNumber",[t+1]));T.model.execute(new ChangePage(this,g,g,t,0<G));W.push(g)}this.updatePageLinks(c,W)}}if(null!=p&&
-"mxGraphModel"===p.nodeName){C=T.importGraphModel(p,d,k,m);if(null!=C)for(this.addLocalPagesToMapping(c),G=0;G<C.length;G++)this.updatePageLinksForCell(c,C[G]);var B=T.parseBackgroundImage(p.getAttribute("backgroundImage"));if(null!=B&&null!=B.originalSrc&&this.updateBackgroundPageLink(c,B)){var K=new ChangePageSetup(this,null,B);K.ignoreColor=!0;T.model.execute(K)}}A&&T.pasteCellStyles(T.includeDescendants(C),T.defaultVertexStyle,T.defaultEdgeStyle);!v&&F!=this.currentPage&&null!=this.pages&&1<this.pages.length&&
-J&&1==D&&this.removePage(F)}finally{T.model.endUpdate()}}}catch(Q){if(q)throw Q;this.handleError(Q)}return C};EditorUi.prototype.updatePageLinks=function(c,d){for(var k=0;k<d.length;k++)this.updatePageLinksForCell(c,d[k].root),d[k]!=this.currentPage&&(d[k].needsUpdate=!0),null!=d[k].viewState&&this.updateBackgroundPageLink(c,d[k].viewState.backgroundImage)&&(d[k]==this.currentPage&&this.editor.graph.setViewState(d[k].viewState,!0),d[k].needsUpdate=!0)};EditorUi.prototype.updateBackgroundPageLink=
+"mxGraphModel"===p.nodeName){B=T.importGraphModel(p,d,k,m);if(null!=B)for(this.addLocalPagesToMapping(c),G=0;G<B.length;G++)this.updatePageLinksForCell(c,B[G]);var C=T.parseBackgroundImage(p.getAttribute("backgroundImage"));if(null!=C&&null!=C.originalSrc&&this.updateBackgroundPageLink(c,C)){var K=new ChangePageSetup(this,null,C);K.ignoreColor=!0;T.model.execute(K)}}A&&T.pasteCellStyles(T.includeDescendants(B),T.defaultVertexStyle,T.defaultEdgeStyle);!v&&F!=this.currentPage&&null!=this.pages&&1<this.pages.length&&
+J&&1==D&&this.removePage(F)}finally{T.model.endUpdate()}}}catch(Q){if(q)throw Q;this.handleError(Q)}return B};EditorUi.prototype.updatePageLinks=function(c,d){for(var k=0;k<d.length;k++)this.updatePageLinksForCell(c,d[k].root),d[k]!=this.currentPage&&(d[k].needsUpdate=!0),null!=d[k].viewState&&this.updateBackgroundPageLink(c,d[k].viewState.backgroundImage)&&(d[k]==this.currentPage&&this.editor.graph.setViewState(d[k].viewState,!0),d[k].needsUpdate=!0)};EditorUi.prototype.updateBackgroundPageLink=
function(c,d){var k=!1;try{if(null!=d&&Graph.isPageLink(d.originalSrc)){var m=c[d.originalSrc.substring(d.originalSrc.indexOf(",")+1)];null!=m&&(d.originalSrc="data:page/id,"+m,k=!0)}}catch(q){}return k};EditorUi.prototype.updatePageLinksForCell=function(c,d){var k=document.createElement("div"),m=this.editor.graph,q=m.getLinkForCell(d);null!=q&&m.setLinkForCell(d,this.updatePageLink(c,q));if(m.isHtmlLabel(d)){k.innerHTML=Graph.sanitizeHtml(m.getLabel(d));for(var v=k.getElementsByTagName("a"),A=!1,
-C=0;C<v.length;C++)q=v[C].getAttribute("href"),null!=q&&(v[C].setAttribute("href",this.updatePageLink(c,q)),A=!0);A&&m.labelChanged(d,k.innerHTML)}for(C=0;C<m.model.getChildCount(d);C++)this.updatePageLinksForCell(c,m.model.getChildAt(d,C))};EditorUi.prototype.updatePageLink=function(c,d){if(Graph.isPageLink(d)){var k=c[d.substring(d.indexOf(",")+1)];d=null!=k?"data:page/id,"+k:null}else if("data:action/json,"==d.substring(0,17))try{var m=JSON.parse(d.substring(17));if(null!=m.actions){for(var q=
-0;q<m.actions.length;q++){var v=m.actions[q];if(null!=v.open&&Graph.isPageLink(v.open)){var A=v.open.substring(v.open.indexOf(",")+1);k=c[A];null!=k?v.open="data:page/id,"+k:null==this.getPageById(A)&&delete v.open}}d="data:action/json,"+JSON.stringify(m)}}catch(C){}return d};EditorUi.prototype.isRemoteVisioFormat=function(c){return/(\.v(sd|dx))($|\?)/i.test(c)||/(\.vs(s|x))($|\?)/i.test(c)};EditorUi.prototype.importVisio=function(c,d,k,m,q){var v=mxUtils.bind(this,function(A){this.loadingExtensions=
-!1;null!=k?k(A):this.handleError(A)});this.createTimeout(null,mxUtils.bind(this,function(A){m=null!=m?m:c.name;var C=mxUtils.bind(this,function(J){A.clear()&&v(J)}),D=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(this.doImportVisio){var J=this.isRemoteVisioFormat(m);try{var F=m.lastIndexOf(".");if(0<=F&&F<m.length)m.substring(F+1).toUpperCase();else{var T=m.lastIndexOf("/");0<=T&&T<m.length&&(m=m.substring(T+1))}}catch(p){}if(J)if(null==VSS_CONVERT_URL||this.isOffline())/(\.vss|\.vsx)$/i.test(m)?
-C({message:mxResources.get("tryVssDraw",["https://vss.draw.io"])}):C({message:"draw.io"!=this.getServiceName()?mxResources.get("vsdNoConfig"):mxResources.get("serviceUnavailableOrBlocked")});else{J=new FormData;J.append("file1",c,m);var W=new XMLHttpRequest;W.open("POST",VSS_CONVERT_URL+(/(\.vss|\.vsx)$/.test(m)?"?stencil=1":""));W.responseType="blob";this.addRemoteServiceSecurityCheck(W);null!=q&&W.setRequestHeader("x-convert-custom",q);W.onreadystatechange=mxUtils.bind(this,function(){if(4==W.readyState&&
-A.clear())if(200<=W.status&&299>=W.status)try{var p=W.response;if("text/xml"==p.type){var u=new FileReader;u.onload=mxUtils.bind(this,function(G){try{d(G.target.result)}catch(I){C({message:mxResources.get("errorLoadingFile")})}});u.readAsText(p)}else this.doImportVisio(p,d,C,m)}catch(G){C(G)}else try{""==W.responseType||"text"==W.responseType?C({message:W.responseText}):(u=new FileReader,u.onload=function(){try{C({message:JSON.parse(u.result).Message})}catch(G){null!=u.result&&0<u.result.length?C({message:u.result}):
-C(G)}},u.readAsText(W.response))}catch(G){C({})}});W.send(J)}else if(A.clear())try{this.doImportVisio(c,d,C,m)}catch(p){C(p)}}else C({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?D():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",D,null,null,null,C))}),v)};EditorUi.prototype.importGraphML=function(c,d,k){var m=mxUtils.bind(this,function(q){this.loadingExtensions=!1;null!=k?k(q):this.handleError(q)});
-this.createTimeout(null,mxUtils.bind(this,function(q){var v=mxUtils.bind(this,function(C){q.clear()&&m(C)}),A=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(q.clear())if(this.doImportGraphML)try{this.doImportGraphML(c,d,m)}catch(C){v(C)}else v({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportGraphML||this.loadingExtensions||this.isOffline(!0)?A():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",A,null,null,null,v))}),m)};EditorUi.prototype.exportVisio=
+B=0;B<v.length;B++)q=v[B].getAttribute("href"),null!=q&&(v[B].setAttribute("href",this.updatePageLink(c,q)),A=!0);A&&m.labelChanged(d,k.innerHTML)}for(B=0;B<m.model.getChildCount(d);B++)this.updatePageLinksForCell(c,m.model.getChildAt(d,B))};EditorUi.prototype.updatePageLink=function(c,d){if(Graph.isPageLink(d)){var k=c[d.substring(d.indexOf(",")+1)];d=null!=k?"data:page/id,"+k:null}else if("data:action/json,"==d.substring(0,17))try{var m=JSON.parse(d.substring(17));if(null!=m.actions){for(var q=
+0;q<m.actions.length;q++){var v=m.actions[q];if(null!=v.open&&Graph.isPageLink(v.open)){var A=v.open.substring(v.open.indexOf(",")+1);k=c[A];null!=k?v.open="data:page/id,"+k:null==this.getPageById(A)&&delete v.open}}d="data:action/json,"+JSON.stringify(m)}}catch(B){}return d};EditorUi.prototype.isRemoteVisioFormat=function(c){return/(\.v(sd|dx))($|\?)/i.test(c)||/(\.vs(s|x))($|\?)/i.test(c)};EditorUi.prototype.importVisio=function(c,d,k,m,q){var v=mxUtils.bind(this,function(A){this.loadingExtensions=
+!1;null!=k?k(A):this.handleError(A)});this.createTimeout(null,mxUtils.bind(this,function(A){m=null!=m?m:c.name;var B=mxUtils.bind(this,function(J){A.clear()&&v(J)}),D=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(this.doImportVisio){var J=this.isRemoteVisioFormat(m);try{var F=m.lastIndexOf(".");if(0<=F&&F<m.length)m.substring(F+1).toUpperCase();else{var T=m.lastIndexOf("/");0<=T&&T<m.length&&(m=m.substring(T+1))}}catch(p){}if(J)if(null==VSS_CONVERT_URL||this.isOffline())/(\.vss|\.vsx)$/i.test(m)?
+B({message:mxResources.get("tryVssDraw",["https://vss.draw.io"])}):B({message:"draw.io"!=this.getServiceName()?mxResources.get("vsdNoConfig"):mxResources.get("serviceUnavailableOrBlocked")});else{J=new FormData;J.append("file1",c,m);var W=new XMLHttpRequest;W.open("POST",VSS_CONVERT_URL+(/(\.vss|\.vsx)$/.test(m)?"?stencil=1":""));W.responseType="blob";this.addRemoteServiceSecurityCheck(W);null!=q&&W.setRequestHeader("x-convert-custom",q);W.onreadystatechange=mxUtils.bind(this,function(){if(4==W.readyState&&
+A.clear())if(200<=W.status&&299>=W.status)try{var p=W.response;if("text/xml"==p.type){var u=new FileReader;u.onload=mxUtils.bind(this,function(G){try{d(G.target.result)}catch(I){B({message:mxResources.get("errorLoadingFile")})}});u.readAsText(p)}else this.doImportVisio(p,d,B,m)}catch(G){B(G)}else try{""==W.responseType||"text"==W.responseType?B({message:W.responseText}):(u=new FileReader,u.onload=function(){try{B({message:JSON.parse(u.result).Message})}catch(G){null!=u.result&&0<u.result.length?B({message:u.result}):
+B(G)}},u.readAsText(W.response))}catch(G){B({})}});W.send(J)}else if(A.clear())try{this.doImportVisio(c,d,B,m)}catch(p){B(p)}}else B({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?D():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",D,null,null,null,B))}),v)};EditorUi.prototype.importGraphML=function(c,d,k){var m=mxUtils.bind(this,function(q){this.loadingExtensions=!1;null!=k?k(q):this.handleError(q)});
+this.createTimeout(null,mxUtils.bind(this,function(q){var v=mxUtils.bind(this,function(B){q.clear()&&m(B)}),A=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(q.clear())if(this.doImportGraphML)try{this.doImportGraphML(c,d,m)}catch(B){v(B)}else v({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportGraphML||this.loadingExtensions||this.isOffline(!0)?A():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",A,null,null,null,v))}),m)};EditorUi.prototype.exportVisio=
function(c){if(this.spinner.spin(document.body,mxResources.get("loading"))){var d=mxUtils.bind(this,function(k){this.loadingExtensions=!1;this.handleError(k)});this.vsdxExportEnabled()?this.createTimeout(null,mxUtils.bind(this,function(k){var m=mxUtils.bind(this,function(v){k.clear()&&d(v)}),q=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(k.clear())if("undefined"!==typeof VsdxExport)try{this.spinner.stop(),(new VsdxExport(this)).exportCurrentDiagrams(c)||m({message:mxResources.get("unknownError")})}catch(v){m(v)}else m({message:mxResources.get("serviceUnavailableOrBlocked")})});
-"undefined"!==typeof VsdxExport||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(q,0):(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",q,null,null,null,m))}),d):d({message:mxResources.get("serviceUnavailableOrBlocked")})}};EditorUi.prototype.convertLucidChart=function(c,d,k){var m=mxUtils.bind(this,function(q){this.loadingExtensions=!1;null!=k?k(q):this.handleError(q)});this.createTimeout(null,mxUtils.bind(this,function(q){var v=mxUtils.bind(this,function(C){q.clear()&&
-m(C)}),A=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(q.clear())if("undefined"!==typeof window.LucidImporter)try{var C=JSON.parse(c);d(LucidImporter.importState(C));try{if(null!=window.console&&"1"==urlParams.test){var D=[(new Date).toISOString(),"convertLucidChart",C];null!=C.state&&D.push(JSON.parse(C.state));if(null!=C.svgThumbs)for(var J=0;J<C.svgThumbs.length;J++)D.push(Editor.createSvgDataUri(C.svgThumbs[J]));null!=C.thumb&&D.push(C.thumb);console.log.apply(console,D)}}catch(F){}}catch(F){null!=
+"undefined"!==typeof VsdxExport||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(q,0):(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",q,null,null,null,m))}),d):d({message:mxResources.get("serviceUnavailableOrBlocked")})}};EditorUi.prototype.convertLucidChart=function(c,d,k){var m=mxUtils.bind(this,function(q){this.loadingExtensions=!1;null!=k?k(q):this.handleError(q)});this.createTimeout(null,mxUtils.bind(this,function(q){var v=mxUtils.bind(this,function(B){q.clear()&&
+m(B)}),A=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(q.clear())if("undefined"!==typeof window.LucidImporter)try{var B=JSON.parse(c);d(LucidImporter.importState(B));try{if(null!=window.console&&"1"==urlParams.test){var D=[(new Date).toISOString(),"convertLucidChart",B];null!=B.state&&D.push(JSON.parse(B.state));if(null!=B.svgThumbs)for(var J=0;J<B.svgThumbs.length;J++)D.push(Editor.createSvgDataUri(B.svgThumbs[J]));null!=B.thumb&&D.push(B.thumb);console.log.apply(console,D)}}catch(F){}}catch(F){null!=
window.console&&console.error(F),v(F)}else v({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof window.LucidImporter||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(A,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",
A,null,null,null,v)},null,null,null,v)},null,null,null,v)},null,null,null,v)},null,null,null,v):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",A,null,null,null,v))}),m)};EditorUi.prototype.createMermaidXml=function(c,d,k,m,q,v){var A=new Graph(document.createElement("div"));k=A.insertVertex(null,null,null,0,0,m,q,"shape=image;noLabel=1;verticalAlign=top;imageAspect=1;image="+k+";");A.setAttributeForCell(k,"mermaidData",JSON.stringify({data:c,config:d},null,2));null!=v&&A.setAttributeForCell(k,
"templatePrompt",v);c=(new mxCodec).encode(A.getModel());return mxUtils.getXml(c)};EditorUi.prototype.getSvgForXml=function(c){var d=null,k=this.createTemporaryGraph(this.editor.graph.getStylesheet());try{document.body.appendChild(k.container),(new mxCodec(mxUtils.parseXml(c))).decode(mxUtils.parseXml(c).documentElement,k.getModel()),d=k.getSvg(null,null,null,null,null,null,null,null,null,null,null,null,null,null,!0,!0)}finally{document.body.removeChild(k.container)}return d};EditorUi.prototype.generateOpenAiMermaidDiagram=
-function(c,d,k,m,q){var v=0,A=mxUtils.bind(this,function(){this.createTimeout(this.editor.generateTimeout,mxUtils.bind(this,function(C){var D="";if(null!=this.drive&&null!=this.drive.getUser()){var J=this.drive.getUser();null!=J.email&&0<J.email.indexOf("@")&&(D=J.email.substring(J.email.indexOf("@")+1))}var F={prompt:c,driveDomain:D,options:null!=q?q:{}};EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram",[this],"enableParser",m,"data",[F],"url",["https://www.draw.io/generate/v3"]);var T=Date.now();
-D=new mxXmlRequest("https://www.draw.io/generate/v3",JSON.stringify(F),"POST");var W=mxUtils.bind(this,function(u){C.clear()&&(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram",[this],"data",[F],"error",[u],"time",Date.now()-T+" ms"),k(u))}),p=mxUtils.bind(this,function(u){3>v++?C.clear()&&A():W(u)});D.send(mxUtils.bind(this,function(u){if(C.isAlive())if(200<=u.getStatus()&&299>=u.getStatus())this.tryAndHandle(mxUtils.bind(this,function(){var I=u.getText();try{I=JSON.parse(I),result=I.result}catch(H){result=
-I}EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram",[this],"data",[F],"response",[I],"time",Date.now()-T+" ms");m?"<"==result.charAt(0)?C.clear()&&(I=Editor.extractGraphModelFromText(result),d(null!=I&&3==I.length?I[1]:result)):this.parseMermaidDiagram(result,null,mxUtils.bind(this,function(H){this.tryAndHandle(mxUtils.bind(this,function(){C.clear()&&d(H)}),W)}),W,p,!0):this.generateMermaidImage(result,null,mxUtils.bind(this,function(H,g,t){this.tryAndHandle(mxUtils.bind(this,function(){C.clear()&&
+function(c,d,k,m,q){var v=0,A=mxUtils.bind(this,function(){this.createTimeout(this.editor.generateTimeout,mxUtils.bind(this,function(B){var D="";if(null!=this.drive&&null!=this.drive.getUser()){var J=this.drive.getUser();null!=J.email&&0<J.email.indexOf("@")&&(D=J.email.substring(J.email.indexOf("@")+1))}var F={prompt:c,driveDomain:D,options:null!=q?q:{}};EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram",[this],"enableParser",m,"data",[F],"url",["https://www.draw.io/generate/v3"]);var T=Date.now();
+D=new mxXmlRequest("https://www.draw.io/generate/v3",JSON.stringify(F),"POST");var W=mxUtils.bind(this,function(u){B.clear()&&(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram",[this],"data",[F],"error",[u],"time",Date.now()-T+" ms"),k(u))}),p=mxUtils.bind(this,function(u){3>v++?B.clear()&&A():W(u)});D.send(mxUtils.bind(this,function(u){if(B.isAlive())if(200<=u.getStatus()&&299>=u.getStatus())this.tryAndHandle(mxUtils.bind(this,function(){var I=u.getText();try{I=JSON.parse(I),result=I.result}catch(H){result=
+I}EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram",[this],"data",[F],"response",[I],"time",Date.now()-T+" ms");m?"<"==result.charAt(0)?B.clear()&&(I=Editor.extractGraphModelFromText(result),d(null!=I&&3==I.length?I[1]:result)):this.parseMermaidDiagram(result,null,mxUtils.bind(this,function(H){this.tryAndHandle(mxUtils.bind(this,function(){B.clear()&&d(H)}),W)}),W,p,!0):this.generateMermaidImage(result,null,mxUtils.bind(this,function(H,g,t){this.tryAndHandle(mxUtils.bind(this,function(){B.clear()&&
d(result,H,g,t)}),W)}),W,p)}),W,!0);else{var G={message:mxResources.get("error")+" "+u.getStatus()};try{G=JSON.parse(u.getText()),null!=G.error&&(G.message=G.error)}catch(I){}W(G)}}),W)}),k)});A()};EditorUi.prototype.extractMermaidDeclaration=function(c){c=mxUtils.trim(c);"o\n\n"==c.substring(0,3)&&(c=c.substring(3));var d=c.split("```");d=1<d.length?d:c.split("<pre>");d=1<d.length?d:c.split("~~~");d=1<d.length?d:c.split("(Begins)");for(var k=mxUtils.trim(1>=d.length?c:d[1]),m=k.split("\n"),q=0;q<
m.length&&("mermaid"==m[q]||0==m[q].trim().length||"%%"==m[q].substring(0,2));)q++;k=[];for(var v=q;v<m.length;v++){var A=mxUtils.trim(m[v]);if("%%"!=A.substring(0,2)&&"classDef "!=A.substring(0,9))k.push(m[v]);else if("mermaid"==A)break}m=k;k=mxUtils.trim(m.join("\n"));v=1<m.length?m[0]:null;null!=v&&(A=v.indexOf("-"),0<A&&v.substring(0,A));v=m[0].split(" ")[0].replace(/:$/,"");A=v.indexOf("-");0<A&&(v=v.substring(0,A));EditorUi.debug("EditorUi.extractMermaidDeclaration","value",[c],"text",[k],"type",
[v],"startLine",q,"lines",m,"tokens",d);0>mxUtils.indexOf(EditorUi.mermaidDiagramTypes,v)&&(k=null);return k};EditorUi.prototype.isSupportedMermaidDiagramType=function(c){return"graph"==c||"flowchart"==c||"sequencediagram"==c||"classdiagram"==c||"statediagram-v2"==c||"statediagram"==c||"erdiagram"==c||"requirementdiagram"==c||"gitgraph"==c||"mindmap"==c||"journey"==c};EditorUi.prototype.getMermaidDiagramType=function(c){c=c.split("\n");for(var d=0;d<c.length&&(0==c[d].trim().length||"%%"==c[d].substring(0,
-2));)d++;if("---"==c[d].trim()){do d++;while(d<c.length&&"---"!=c[d].trim());d++}c=c[d].trim().toLowerCase();d=c.indexOf(" ");return c.substring(0,0<d?d:c.length)};EditorUi.prototype.parseMermaidDiagram=function(c,d,k,m,q,v){var A=!1;v&&"undefined"!==typeof mxMermaidToDrawio&&this.isSupportedMermaidDiagramType(this.getMermaidDiagramType(c))&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(C){A||C==this.emptyDiagramXml||(A=!0,k(C))}));this.generateMermaidImage(c,d,mxUtils.bind(this,function(C,
-D,J){A||(A=!0,k(this.createMermaidXml(c,d,C,D,J)))}),m,q)};EditorUi.prototype.loadMermaid=function(c,d){var k=mxUtils.bind(this,function(q){this.loadingMermaid=!1;d(q)}),m=mxUtils.bind(this,function(){try{this.loadingMermaid=!1,c()}catch(q){k(q)}});"undefined"!==typeof mermaid||this.loadingMermaid||this.isOffline(!0)?window.setTimeout(m,0):(this.loadingMermaid=!0,"1"==urlParams.dev?mxscript("js/mermaid/mermaid.min.js",m,null,null,null,k):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",m,
-null,null,null,k))};EditorUi.prototype.mermaidSvgToDataUri=function(c,d,k,m){try{c=c.replace(/xlink:href/g,"href").replace(/<br>/g,"<br/>");var q=mxUtils.parseXml(c).getElementsByTagName("svg");if(0<q.length&&"error"!=q[0].getAttribute("aria-roledescription")){var v=parseFloat(q[0].getAttribute("width")),A=parseFloat(q[0].getAttribute("height"));if(isNaN(v)||isNaN(A))try{var C=q[0].getAttribute("viewBox").split(/\s+/);v=parseFloat(C[2]);A=parseFloat(C[3])}catch(D){v=v||100,A=A||100}d(this.convertDataUri(Editor.createSvgDataUri(c)),
+2));)d++;if("---"==c[d].trim()){do d++;while(d<c.length&&"---"!=c[d].trim());d++}c=c[d].trim().toLowerCase();d=c.indexOf(" ");return c.substring(0,0<d?d:c.length)};EditorUi.prototype.parseMermaidDiagram=function(c,d,k,m,q,v){var A=!1;v&&"undefined"!==typeof mxMermaidToDrawio&&this.isSupportedMermaidDiagramType(this.getMermaidDiagramType(c))&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(B){A||B==this.emptyDiagramXml||(A=!0,k(B))}));this.generateMermaidImage(c,d,mxUtils.bind(this,function(B,
+D,J){A||(A=!0,k(this.createMermaidXml(c,d,B,D,J)))}),m,q)};EditorUi.prototype.loadMermaid=function(c,d){var k=mxUtils.bind(this,function(q){this.loadingMermaid=!1;d(q)}),m=mxUtils.bind(this,function(){try{this.loadingMermaid=!1,c()}catch(q){k(q)}});"undefined"!==typeof mermaid||this.loadingMermaid||this.isOffline(!0)?window.setTimeout(m,0):(this.loadingMermaid=!0,"1"==urlParams.dev?mxscript("js/mermaid/mermaid.min.js",m,null,null,null,k):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",m,
+null,null,null,k))};EditorUi.prototype.mermaidSvgToDataUri=function(c,d,k,m){try{c=c.replace(/xlink:href/g,"href").replace(/<br>/g,"<br/>");var q=mxUtils.parseXml(c).getElementsByTagName("svg");if(0<q.length&&"error"!=q[0].getAttribute("aria-roledescription")){var v=parseFloat(q[0].getAttribute("width")),A=parseFloat(q[0].getAttribute("height"));if(isNaN(v)||isNaN(A))try{var B=q[0].getAttribute("viewBox").split(/\s+/);v=parseFloat(B[2]);A=parseFloat(B[3])}catch(D){v=v||100,A=A||100}d(this.convertDataUri(Editor.createSvgDataUri(c)),
v,A)}else null!=m?m():k({message:mxResources.get("invalidInput")})}catch(D){k(D)}};EditorUi.prototype.getMermaidConfig=function(c,d){d=null!=d?d:mxUtils.clone(EditorUi.defaultMermaidConfig);d.securityLevel="strict";d.startOnLoad=!1;d.maxTextSize=9E5;"undefined"!==typeof mxMermaidToDrawio&&d.flowchart&&0<=c.indexOf("$$")&&(d.flowchart.htmlLabels=!0,mxMermaidToDrawio.htmlLabels=!0);Editor.isDarkMode()&&(d.theme="dark");return d};EditorUi.prototype.generateMermaidImage=function(c,d,k,m,q){var v=mxUtils.bind(this,
function(A){null!=m?m(A):this.handleError(A)});this.loadMermaid(mxUtils.bind(this,function(){try{mermaid.mermaidAPI.initialize(this.getMermaidConfig(c,d)),mermaid.mermaidAPI.render("geMermaidOutput-"+(new Date).getTime(),c).then(mxUtils.bind(this,function(A){this.mermaidSvgToDataUri(A.svg,k,m,q)})).catch(mxUtils.bind(this,function(A){this.removeMermaidErrors();A=Error(A.toString()+"\n\n"+c);"undefined"!==typeof mxMermaidToDrawio&&mxMermaidToDrawio.resetListeners();null!=q?q(A):v(A)}))}catch(A){v(A)}}),
-v)};EditorUi.prototype.removeMermaidErrors=function(){for(var c=document.querySelectorAll('div[id*="dgeMermaidOutput-"]'),d=0;d<c.length;d++)null!=c[d].parentNode&&c[d].parentNode.removeChild(c[d])};EditorUi.prototype.generatePlantUmlImage=function(c,d,k,m){function q(C,D,J){c1=C>>2;c2=(C&3)<<4|D>>4;c3=(D&15)<<2|J>>6;c4=J&63;r="";r+=v(c1&63);r+=v(c2&63);r+=v(c3&63);return r+=v(c4&63)}function v(C){if(10>C)return String.fromCharCode(48+C);C-=10;if(26>C)return String.fromCharCode(65+C);C-=26;if(26>
-C)return String.fromCharCode(97+C);C-=26;return 0==C?"-":1==C?"_":"?"}var A=new XMLHttpRequest;A.open("GET",("txt"==d?PLANT_URL+"/txt/":"png"==d?PLANT_URL+"/png/":PLANT_URL+"/svg/")+function(C){r="";for(i=0;i<C.length;i+=3)r=i+2==C.length?r+q(C.charCodeAt(i),C.charCodeAt(i+1),0):i+1==C.length?r+q(C.charCodeAt(i),0,0):r+q(C.charCodeAt(i),C.charCodeAt(i+1),C.charCodeAt(i+2));return r}(Graph.arrayBufferToString(pako.deflateRaw(c))),!0);"txt"!=d&&(A.responseType="blob");A.onload=function(C){if(200<=this.status&&
-300>this.status)if("txt"==d)k(this.response);else{var D=new FileReader;D.readAsDataURL(this.response);D.onloadend=function(J){var F=new Image;F.onload=function(){try{var T=F.width,W=F.height;if(0==T&&0==W){var p=D.result,u=p.indexOf(","),G=decodeURIComponent(escape(atob(p.substring(u+1)))),I=mxUtils.parseXml(G).getElementsByTagName("svg");0<I.length&&(T=parseFloat(I[0].getAttribute("width")),W=parseFloat(I[0].getAttribute("height")))}k(D.result,T,W)}catch(H){m(H)}};F.src=D.result};D.onerror=function(J){m(J)}}else m(C)};
-A.onerror=function(C){m(C)};A.send()};EditorUi.prototype.insertAsPreText=function(c,d,k){var m=this.editor.graph,q=null;m.getModel().beginUpdate();try{q=m.insertVertex(null,null,"<pre>"+c+"</pre>",d,k,1,1,"text;html=1;align=left;verticalAlign=top;"),m.updateCellSize(q,!0)}finally{m.getModel().endUpdate()}return q};EditorUi.prototype.insertTextAt=function(c,d,k,m,q,v,A,C){v=null!=v?v:!0;A=null!=A?A:!0;if(null!=c)if(Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c))this.isOffline()?
+v)};EditorUi.prototype.removeMermaidErrors=function(){for(var c=document.querySelectorAll('div[id*="dgeMermaidOutput-"]'),d=0;d<c.length;d++)null!=c[d].parentNode&&c[d].parentNode.removeChild(c[d])};EditorUi.prototype.generatePlantUmlImage=function(c,d,k,m){function q(B,D,J){c1=B>>2;c2=(B&3)<<4|D>>4;c3=(D&15)<<2|J>>6;c4=J&63;r="";r+=v(c1&63);r+=v(c2&63);r+=v(c3&63);return r+=v(c4&63)}function v(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 A=new XMLHttpRequest;A.open("GET",("txt"==d?PLANT_URL+"/txt/":"png"==d?PLANT_URL+"/png/":PLANT_URL+"/svg/")+function(B){r="";for(i=0;i<B.length;i+=3)r=i+2==B.length?r+q(B.charCodeAt(i),B.charCodeAt(i+1),0):i+1==B.length?r+q(B.charCodeAt(i),0,0):r+q(B.charCodeAt(i),B.charCodeAt(i+1),B.charCodeAt(i+2));return r}(Graph.arrayBufferToString(pako.deflateRaw(c))),!0);"txt"!=d&&(A.responseType="blob");A.onload=function(B){if(200<=this.status&&
+300>this.status)if("txt"==d)k(this.response);else{var D=new FileReader;D.readAsDataURL(this.response);D.onloadend=function(J){var F=new Image;F.onload=function(){try{var T=F.width,W=F.height;if(0==T&&0==W){var p=D.result,u=p.indexOf(","),G=decodeURIComponent(escape(atob(p.substring(u+1)))),I=mxUtils.parseXml(G).getElementsByTagName("svg");0<I.length&&(T=parseFloat(I[0].getAttribute("width")),W=parseFloat(I[0].getAttribute("height")))}k(D.result,T,W)}catch(H){m(H)}};F.src=D.result};D.onerror=function(J){m(J)}}else m(B)};
+A.onerror=function(B){m(B)};A.send()};EditorUi.prototype.insertAsPreText=function(c,d,k){var m=this.editor.graph,q=null;m.getModel().beginUpdate();try{q=m.insertVertex(null,null,"<pre>"+c+"</pre>",d,k,1,1,"text;html=1;align=left;verticalAlign=top;"),m.updateCellSize(q,!0)}finally{m.getModel().endUpdate()}return q};EditorUi.prototype.insertTextAt=function(c,d,k,m,q,v,A,B){v=null!=v?v:!0;A=null!=A?A:!0;if(null!=c)if(Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c))this.isOffline()?
this.showError(mxResources.get("error"),mxResources.get("notInOffline")):this.parseFileData(c.replace(/\s+/g," "),mxUtils.bind(this,function(W){4==W.readyState&&200<=W.status&&299>=W.status&&this.editor.graph.setSelectionCells(this.insertTextAt(W.responseText,d,k,!0))}));else if("data:"==c.substring(0,5)||!this.isOffline()&&(q||/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c))){var D=this.editor.graph;if("data:application/pdf;base64,"==c.substring(0,28)){var J=Editor.extractGraphModelFromPdf(c);if(null!=
-J&&0<J.length)return this.importXml(J,d,k,v,!0,C)}if(Editor.isPngDataUrl(c)&&(J=Editor.extractGraphModelFromPng(c),null!=J&&0<J.length))return this.importXml(J,d,k,v,!0,C);if("data:image/svg+xml;"==c.substring(0,19))try{J=null;"data:image/svg+xml;base64,"==c.substring(0,26)?(J=c.substring(c.indexOf(",")+1),J=window.atob&&!mxClient.IS_SF?atob(J):Base64.decode(J,!0)):J=decodeURIComponent(c.substring(c.indexOf(",")+1));var F=this.importXml(J,d,k,v,!0,C);if(0<F.length)return F}catch(W){}this.loadImage(c,
+J&&0<J.length)return this.importXml(J,d,k,v,!0,B)}if(Editor.isPngDataUrl(c)&&(J=Editor.extractGraphModelFromPng(c),null!=J&&0<J.length))return this.importXml(J,d,k,v,!0,B);if("data:image/svg+xml;"==c.substring(0,19))try{J=null;"data:image/svg+xml;base64,"==c.substring(0,26)?(J=c.substring(c.indexOf(",")+1),J=window.atob&&!mxClient.IS_SF?atob(J):Base64.decode(J,!0)):J=decodeURIComponent(c.substring(c.indexOf(",")+1));var F=this.importXml(J,d,k,v,!0,B);if(0<F.length)return F}catch(W){}this.loadImage(c,
mxUtils.bind(this,function(W){if("data:"==c.substring(0,5))this.resizeImage(W,Editor.stripImageMetadata(c,Editor.removeImageMetadata),mxUtils.bind(this,function(G,I,H){D.setSelectionCell(D.insertVertex(null,null,"",D.snap(d),D.snap(k),I,H,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+this.convertDataUri(G)+";"))}),A,this.maxImageSize);else{var p=Math.min(1,Math.min(this.maxImageSize/W.width,this.maxImageSize/W.height)),
u=Math.round(W.width*p);W=Math.round(W.height*p);D.setSelectionCell(D.insertVertex(null,null,"",D.snap(d),D.snap(k),u,W,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+c+";"))}}),mxUtils.bind(this,function(){var W=null;D.getModel().beginUpdate();try{W=D.insertVertex(D.getDefaultParent(),null,c,D.snap(d),D.snap(k),1,1,"text;"+(m?"html=1;":"")),D.updateCellSize(W),D.fireEvent(new mxEventObject("textInserted","cells",[W]))}finally{D.getModel().endUpdate()}D.setSelectionCell(W)}))}else{c=
-Graph.zapGremlins(mxUtils.trim(c));if(this.isCompatibleString(c))return this.importXml(c,d,k,v,null,C);if(0<c.length)if(this.isLucidChartData(c))this.convertLucidChart(c,mxUtils.bind(this,function(W){this.editor.graph.setSelectionCells(this.importXml(W,d,k,v,null,C))}),mxUtils.bind(this,function(W){this.handleError(W)}));else{D=this.editor.graph;q=null;D.getModel().beginUpdate();try{q=D.insertVertex(D.getDefaultParent(),null,"",D.snap(d),D.snap(k),1,1,"text;whiteSpace=wrap;"+(m?"html=1;":""));D.fireEvent(new mxEventObject("textInserted",
+Graph.zapGremlins(mxUtils.trim(c));if(this.isCompatibleString(c))return this.importXml(c,d,k,v,null,B);if(0<c.length)if(this.isLucidChartData(c))this.convertLucidChart(c,mxUtils.bind(this,function(W){this.editor.graph.setSelectionCells(this.importXml(W,d,k,v,null,B))}),mxUtils.bind(this,function(W){this.handleError(W)}));else{D=this.editor.graph;q=null;D.getModel().beginUpdate();try{q=D.insertVertex(D.getDefaultParent(),null,"",D.snap(d),D.snap(k),1,1,"text;whiteSpace=wrap;"+(m?"html=1;":""));D.fireEvent(new mxEventObject("textInserted",
"cells",[q]));m&&(c=D.sanitizeHtml(c));c.length>this.maxTextBytes&&(c=c.substring(0,this.maxTextBytes)+"...");q.value=c;D.updateCellSize(q);if(0<this.maxTextWidth&&q.geometry.width>this.maxTextWidth){var T=D.getPreferredSizeForCell(q,this.maxTextWidth);q.geometry.width=T.width;q.geometry.height=T.height}Graph.isLink(q.value)&&D.setLinkForCell(q,q.value);q.geometry.width+=D.gridSize;q.geometry.height+=D.gridSize}finally{D.getModel().endUpdate()}return[q]}}return[]};EditorUi.prototype.formatFileSize=
function(c){var d=-1;do c/=1024,d++;while(1024<c);return Math.max(c,.1).toFixed(1)+" kB; MB; GB; TB;PB;EB;ZB;YB".split(";")[d]};EditorUi.prototype.convertDataUri=function(c){if("data:"==c.substring(0,5)){var d=c.indexOf(";");0<d&&(c=c.substring(0,d)+c.substring(c.indexOf(",",d+1)))}return c};EditorUi.prototype.isRemoteFileFormat=function(c,d){return/("contentType":\s*"application\/gliffy\+json")/.test(c)};EditorUi.prototype.isLucidChartData=function(c){return null!=c&&('{"state":"{\\"Properties\\":'==
c.substring(0,26)||'{"Properties":'==c.substring(0,14))};EditorUi.prototype.importLocalFile=function(c,d){if(c&&Graph.fileSupport){if(null==this.importFileInputElt){var k=document.createElement("input");k.setAttribute("type","file");mxEvent.addListener(k,"change",mxUtils.bind(this,function(){null!=k.files&&(this.importFiles(k.files,null,null,this.maxImageSize),k.type="",k.type="file",k.value="")}));k.style.display="none";document.body.appendChild(k);this.importFileInputElt=k}this.importFileInputElt.click()}else{window.openNew=
-!1;window.openKey="import";window.listBrowserFiles=mxUtils.bind(this,function(A,C){StorageFile.listFiles(this,"F",A,C)});window.openBrowserFile=mxUtils.bind(this,function(A,C,D){StorageFile.getFileContent(this,A,C,D)});window.deleteBrowserFile=mxUtils.bind(this,function(A,C,D){StorageFile.deleteFile(this,A,C,D)});if(!d){var m=Editor.useLocalStorage;Editor.useLocalStorage=!c}window.openFile=new OpenFile(mxUtils.bind(this,function(A){this.hideDialog(A)}));window.openFile.setConsumer(mxUtils.bind(this,
-function(A,C){null!=C&&Graph.fileSupport&&/(\.v(dx|sdx?))($|\?)/i.test(C)?(A=new Blob([A],{type:"application/octet-stream"}),this.importVisio(A,mxUtils.bind(this,function(D){this.importXml(D,0,0,!0)}),null,C)):this.editor.graph.setSelectionCells(this.importXml(A,0,0,!0))}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:360,Editor.useLocalStorage?480:220,!0,!0,function(){window.openFile=null});if(!d){var q=this.dialog,v=q.close;this.dialog.close=mxUtils.bind(this,function(A){Editor.useLocalStorage=
-m;v.apply(q,arguments);A&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()})}}};EditorUi.prototype.importZipFile=function(c,d,k){var m=this,q=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?JSZip.loadAsync(c).then(function(v){if(mxUtils.isEmptyObject(v.files))k();else{var A=0,C,D=!1;v.forEach(function(J,F){J=F.name.toLowerCase();"diagram/diagram.xml"==J?(D=!0,F.async("string").then(function(T){0==T.indexOf("<mxfile ")?d(T):k()})):0==J.indexOf("versions/")&&
-(J=parseInt(J.substr(9)),J>A&&(A=J,C=F))});0<A?C.async("string").then(function(J){(new XMLHttpRequest).upload&&m.isRemoteFileFormat(J,c.name)?m.isOffline()?m.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,k):m.parseFileData(J,mxUtils.bind(this,function(F){4==F.readyState&&(200<=F.status&&299>=F.status?d(F.responseText):k())}),c.name):k()}):D||k()}},function(v){k(v)}):k()});"undefined"!==typeof JSZip||this.loadingExtensions||this.isOffline(!0)?q():(this.loadingExtensions=!0,
-mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",q,null,null,null,k))};EditorUi.prototype.importFile=function(c,d,k,m,q,v,A,C,D,J,F,T){J=null!=J?J:!0;var W=!1,p=null,u=mxUtils.bind(this,function(G){var I=null;null!=G&&"<mxlibrary"==G.substring(0,10)?(this.loadLibrary(new LocalLibrary(this,G,A)),this.showSidebar()):I=this.importXml(G,k,m,J,null,null!=T?mxEvent.isControlDown(T):null);null!=C&&C(I)});"image"==d.substring(0,5)?(D=!1,"image/png"==d.substring(0,9)&&(F=F?null:this.extractGraphModelFromPng(c),
+!1;window.openKey="import";window.listBrowserFiles=mxUtils.bind(this,function(A,B){StorageFile.listFiles(this,"F",A,B)});window.openBrowserFile=mxUtils.bind(this,function(A,B,D){StorageFile.getFileContent(this,A,B,D)});window.deleteBrowserFile=mxUtils.bind(this,function(A,B,D){StorageFile.deleteFile(this,A,B,D)});if(!d){var m=Editor.useLocalStorage;Editor.useLocalStorage=!c}window.openFile=new OpenFile(mxUtils.bind(this,function(A){this.hideDialog(A)}));window.openFile.setConsumer(mxUtils.bind(this,
+function(A,B){null!=B&&Graph.fileSupport&&/(\.v(dx|sdx?))($|\?)/i.test(B)?(A=new Blob([A],{type:"application/octet-stream"}),this.importVisio(A,mxUtils.bind(this,function(D){this.importXml(D,0,0,!0)}),null,B)):this.editor.graph.setSelectionCells(this.importXml(A,0,0,!0))}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:360,Editor.useLocalStorage?480:220,!0,!0,function(){window.openFile=null});if(!d){var q=this.dialog,v=q.close;this.dialog.close=mxUtils.bind(this,function(A){Editor.useLocalStorage=
+m;v.apply(q,arguments);A&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()})}}};EditorUi.prototype.importZipFile=function(c,d,k){var m=this,q=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?JSZip.loadAsync(c).then(function(v){if(mxUtils.isEmptyObject(v.files))k();else{var A=0,B,D=!1;v.forEach(function(J,F){J=F.name.toLowerCase();"diagram/diagram.xml"==J?(D=!0,F.async("string").then(function(T){0==T.indexOf("<mxfile ")?d(T):k()})):0==J.indexOf("versions/")&&
+(J=parseInt(J.substr(9)),J>A&&(A=J,B=F))});0<A?B.async("string").then(function(J){(new XMLHttpRequest).upload&&m.isRemoteFileFormat(J,c.name)?m.isOffline()?m.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,k):m.parseFileData(J,mxUtils.bind(this,function(F){4==F.readyState&&(200<=F.status&&299>=F.status?d(F.responseText):k())}),c.name):k()}):D||k()}},function(v){k(v)}):k()});"undefined"!==typeof JSZip||this.loadingExtensions||this.isOffline(!0)?q():(this.loadingExtensions=!0,
+mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",q,null,null,null,k))};EditorUi.prototype.importFile=function(c,d,k,m,q,v,A,B,D,J,F,T){J=null!=J?J:!0;var W=!1,p=null,u=mxUtils.bind(this,function(G){var I=null;null!=G&&"<mxlibrary"==G.substring(0,10)?(this.loadLibrary(new LocalLibrary(this,G,A)),this.showSidebar()):I=this.importXml(G,k,m,J,null,null!=T?mxEvent.isControlDown(T):null);null!=B&&B(I)});"image"==d.substring(0,5)?(D=!1,"image/png"==d.substring(0,9)&&(F=F?null:this.extractGraphModelFromPng(c),
null!=F&&0<F.length&&(p=this.importXml(F,k,m,J,null,null!=T?mxEvent.isControlDown(T):null),D=!0)),D||(D=this.editor.graph,F=c.indexOf(";"),0<F&&(c=c.substring(0,F)+c.substring(c.indexOf(",",F+1))),J&&D.isGridEnabled()&&(k=D.snap(k),m=D.snap(m)),F="shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;","image/svg"==d.substring(0,9)&&(F+="editableCssRules=.*;"),p=[D.insertVertex(null,null,"",k,m,q,v,F+"image="+c+";")])):/(\.*<graphml )/.test(c)?
-(W=!0,this.importGraphML(c,u)):null!=D&&null!=A&&EditorUi.isVisioFilename(A)?(W=!0,this.importVisio(D,u)):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,A)?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):(W=!0,d=mxUtils.bind(this,function(G){4==G.readyState&&(200<=G.status&&299>=G.status?u(G.responseText):null!=C&&(C(null),this.showError(mxResources.get("error"),413==G.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))))}),
-null!=c?this.parseFileData(c,d,A):this.parseFile(D,d,A)):0==c.indexOf("PK")&&null!=D?(W=!0,this.importZipFile(D,u,mxUtils.bind(this,function(){p=this.insertTextAt(this.validateFileData(c),k,m,!0,null,J);C(p)}))):/(\.v(sd|dx))($|\?)/i.test(A)||/(\.vs(s|x))($|\?)/i.test(A)||(p=this.insertTextAt(this.validateFileData(c),k,m,!0,null,J,null,null!=T?mxEvent.isControlDown(T):null));W||null==C||C(p);return p};EditorUi.prototype.importFiles=function(c,d,k,m,q,v,A,C,D,J,F,T,W){m=null!=m?m:this.maxImageSize;
+(W=!0,this.importGraphML(c,u)):null!=D&&null!=A&&EditorUi.isVisioFilename(A)?(W=!0,this.importVisio(D,u)):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,A)?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):(W=!0,d=mxUtils.bind(this,function(G){4==G.readyState&&(200<=G.status&&299>=G.status?u(G.responseText):null!=B&&(B(null),this.showError(mxResources.get("error"),413==G.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))))}),
+null!=c?this.parseFileData(c,d,A):this.parseFile(D,d,A)):0==c.indexOf("PK")&&null!=D?(W=!0,this.importZipFile(D,u,mxUtils.bind(this,function(){p=this.insertTextAt(this.validateFileData(c),k,m,!0,null,J);B(p)}))):/(\.v(sd|dx))($|\?)/i.test(A)||/(\.vs(s|x))($|\?)/i.test(A)||(p=this.insertTextAt(this.validateFileData(c),k,m,!0,null,J,null,null!=T?mxEvent.isControlDown(T):null));W||null==B||B(p);return p};EditorUi.prototype.importFiles=function(c,d,k,m,q,v,A,B,D,J,F,T,W){m=null!=m?m:this.maxImageSize;
J=null!=J?J:this.maxImageBytes;var p=null!=d&&null!=k,u=!0;d=null!=d?d:0;k=null!=k?k:0;var G=!1;if(!mxClient.IS_CHROMEAPP&&null!=c)for(var I=F||this.resampleThreshold,H=0;H<c.length;H++)if("image/svg"!==c[H].type.substring(0,9)&&"image/"===c[H].type.substring(0,6)&&c[H].size>I){G=!0;break}EditorUi.debug("EditorUi.importFiles",[this],"files",[c],"x",[d],"y",[k],"maxSize",[m],"maxBytes",[J],"resampleThreshold",[this.resampleThreshold],"largeImages",[G],"crop",[p],"resizeImages",[u],"ignoreEmbeddedXml",
-[T],"evt",[W]);var g=mxUtils.bind(this,function(){var t=this.editor.graph,B=t.gridSize;q=null!=q?q:mxUtils.bind(this,function(V,Y,X,Z,aa,ea,ha,ba,ia){try{if(null!=V&&"<mxlibrary"==V.substring(0,10))return this.spinner.stop(),this.loadLibrary(new LocalLibrary(this,V,ha)),this.showSidebar(),null;this.isCompatibleString(V)&&1==c.length&&null!=W&&"drop"==W.type&&this.isBlankFile()&&!this.canUndo()&&(p=!1,Z=X=0);return this.importFile(V,Y,X,Z,aa,ea,ha,ba,ia,p,T,W)}catch(la){return this.handleError(la),
-null}});v=null!=v?v:mxUtils.bind(this,function(V){t.setSelectionCells(V)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var K=this.currentPage,Q=c.length,S=Q,U=[],N=mxUtils.bind(this,function(V,Y){U[V]=Y;if(0==--S){this.spinner.stop();if(null!=C)C(U);else{var X=[];t.getModel().beginUpdate();try{for(V=0;V<U.length;V++){var Z=U[V]();null!=Z&&(X=X.concat(Z))}}finally{t.getModel().endUpdate()}}K!=this.currentPage&&window.setTimeout(mxUtils.bind(this,function(){this.actions.get("resetView").funct()}),
+[T],"evt",[W]);var g=mxUtils.bind(this,function(){var t=this.editor.graph,C=t.gridSize;q=null!=q?q:mxUtils.bind(this,function(V,Y,X,Z,aa,ea,ha,ba,ia){try{if(null!=V&&"<mxlibrary"==V.substring(0,10))return this.spinner.stop(),this.loadLibrary(new LocalLibrary(this,V,ha)),this.showSidebar(),null;this.isCompatibleString(V)&&1==c.length&&null!=W&&"drop"==W.type&&this.isBlankFile()&&!this.canUndo()&&(p=!1,Z=X=0);return this.importFile(V,Y,X,Z,aa,ea,ha,ba,ia,p,T,W)}catch(la){return this.handleError(la),
+null}});v=null!=v?v:mxUtils.bind(this,function(V){t.setSelectionCells(V)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var K=this.currentPage,Q=c.length,S=Q,U=[],N=mxUtils.bind(this,function(V,Y){U[V]=Y;if(0==--S){this.spinner.stop();if(null!=B)B(U);else{var X=[];t.getModel().beginUpdate();try{for(V=0;V<U.length;V++){var Z=U[V]();null!=Z&&(X=X.concat(Z))}}finally{t.getModel().endUpdate()}}K!=this.currentPage&&window.setTimeout(mxUtils.bind(this,function(){this.actions.get("resetView").funct()}),
0);v(X)}}),P=0;P<Q;P++)mxUtils.bind(this,function(V){var Y=c[V];if(null!=Y){var X=new FileReader;X.onload=mxUtils.bind(this,function(Z){if(null==A||A(Y))try{if("image/"==Y.type.substring(0,6))if("image/svg"==Y.type.substring(0,9)){var aa=Graph.clipSvgDataUri(Z.target.result),ea=aa.indexOf(","),ha=decodeURIComponent(escape(atob(aa.substring(ea+1)))),ba=mxUtils.parseXml(ha),ia=ba.getElementsByTagName("svg");if(0<ia.length){var la=ia[0],ka=T?null:la.getAttribute("content");null!=ka&&"<"!=ka.charAt(0)&&
"%"!=ka.charAt(0)&&(ka=unescape(window.atob?atob(ka):Base64.decode(ka,!0)));null!=ka&&"%"==ka.charAt(0)&&(ka=decodeURIComponent(ka));null==ka||"<mxfile "!==ka.substring(0,8)&&"<mxGraphModel>"!==ka.substring(0,14)&&"<mxGraphModel "!==ka.substring(0,14)?N(V,mxUtils.bind(this,function(){try{if(null!=ba){var sa=ba.getElementsByTagName("svg");if(0<sa.length){var ja=sa[0],wa=ja.getAttribute("width"),va=ja.getAttribute("height");wa=null!=wa&&"%"!=wa.charAt(wa.length-1)?parseFloat(wa):NaN;va=null!=va&&"%"!=
-va.charAt(va.length-1)?parseFloat(va):NaN;var ya=ja.getAttribute("viewBox");if(null==ya||0==ya.length)ja.setAttribute("viewBox","0 0 "+wa+" "+va);else if(isNaN(wa)||isNaN(va)){var Aa=ya.split(" ");3<Aa.length&&(wa=parseFloat(Aa[2]),va=parseFloat(Aa[3]))}aa=Editor.createSvgDataUri(mxUtils.getXml(ja));var ma=Math.min(1,Math.min(m/Math.max(1,wa)),m/Math.max(1,va)),Ea=q(aa,Y.type,d+V*B,k+V*B,Math.max(1,Math.round(wa*ma)),Math.max(1,Math.round(va*ma)),Y.name);if(null!=Ea&&(isNaN(wa)||isNaN(va))){var xa=
+va.charAt(va.length-1)?parseFloat(va):NaN;var ya=ja.getAttribute("viewBox");if(null==ya||0==ya.length)ja.setAttribute("viewBox","0 0 "+wa+" "+va);else if(isNaN(wa)||isNaN(va)){var Aa=ya.split(" ");3<Aa.length&&(wa=parseFloat(Aa[2]),va=parseFloat(Aa[3]))}aa=Editor.createSvgDataUri(mxUtils.getXml(ja));var ma=Math.min(1,Math.min(m/Math.max(1,wa)),m/Math.max(1,va)),Ea=q(aa,Y.type,d+V*C,k+V*C,Math.max(1,Math.round(wa*ma)),Math.max(1,Math.round(va*ma)),Y.name);if(null!=Ea&&(isNaN(wa)||isNaN(va))){var xa=
new Image;xa.onload=mxUtils.bind(this,function(){wa=Math.max(1,xa.width);va=Math.max(1,xa.height);Ea[0].geometry.width=wa;Ea[0].geometry.height=va;ja.setAttribute("viewBox","0 0 "+wa+" "+va);aa=Editor.createSvgDataUri(mxUtils.getXml(ja));var fa=aa.indexOf(";");0<fa&&(aa=aa.substring(0,fa)+aa.substring(aa.indexOf(",",fa+1)));t.setCellStyles("image",aa,[Ea[0]])});xa.src=Editor.createSvgDataUri(mxUtils.getXml(ja))}return Ea}}}catch(fa){}return null})):N(V,mxUtils.bind(this,function(){return q(ka,"text/xml",
-d+V*B,k+V*B,0,0,Y.name)}))}else N(V,mxUtils.bind(this,function(){return null}))}else{ea=!1;if("image/png"==Y.type){var pa=T?null:this.extractGraphModelFromPng(Z.target.result);if(null!=pa&&0<pa.length){var Ba=new Image;Ba.src=Z.target.result;N(V,mxUtils.bind(this,function(){return q(pa,"text/xml",d+V*B,k+V*B,Ba.width,Ba.height,Y.name)}));ea=!0}}ea||(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(Z.target.result,mxUtils.bind(this,function(sa){this.resizeImage(sa,Editor.stripImageMetadata(Z.target.result,Editor.removeImageMetadata),mxUtils.bind(this,function(ja,wa,va){N(V,mxUtils.bind(this,function(){if(null!=ja&&ja.length<J){var ya=u&&this.isResampleImageSize(Y.size,F)?Math.min(1,Math.min(m/wa,m/va)):1;return q(ja,Y.type,d+V*B,k+V*B,Math.round(wa*ya),
-Math.round(va*ya),Y.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),u,m,F,Y.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else aa=Z.target.result,q(aa,Y.type,d+V*B,k+V*B,240,160,Y.name,function(sa){N(V,function(){return sa})},Y)}catch(sa){N(V,mxUtils.bind(this,function(){return null})),null!=window.console&&console.error(sa,Y)}else N(V,mxUtils.bind(this,function(){return null}))});EditorUi.isVisioFilename(Y.name)?
-q(null,Y.type,d+V*B,k+V*B,240,160,Y.name,function(Z){N(V,function(){return Z})},Y):"image"==Y.type.substring(0,5)||"application/pdf"==Y.type?X.readAsDataURL(Y):X.readAsText(Y)}})(P)});if(G){G=[];for(H=0;H<c.length;H++)G.push(c[H]);c=G;this.confirmImageResize(function(t){u=t;g()},D)}else g()};EditorUi.prototype.isBlankFile=function(){return null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=
+d+V*C,k+V*C,0,0,Y.name)}))}else N(V,mxUtils.bind(this,function(){return null}))}else{ea=!1;if("image/png"==Y.type){var pa=T?null:this.extractGraphModelFromPng(Z.target.result);if(null!=pa&&0<pa.length){var Ba=new Image;Ba.src=Z.target.result;N(V,mxUtils.bind(this,function(){return q(pa,"text/xml",d+V*C,k+V*C,Ba.width,Ba.height,Y.name)}));ea=!0}}ea||(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(Z.target.result,mxUtils.bind(this,function(sa){this.resizeImage(sa,Editor.stripImageMetadata(Z.target.result,Editor.removeImageMetadata),mxUtils.bind(this,function(ja,wa,va){N(V,mxUtils.bind(this,function(){if(null!=ja&&ja.length<J){var ya=u&&this.isResampleImageSize(Y.size,F)?Math.min(1,Math.min(m/wa,m/va)):1;return q(ja,Y.type,d+V*C,k+V*C,Math.round(wa*ya),
+Math.round(va*ya),Y.name)}this.handleError({message:mxResources.get("imageTooBig")});return null}))}),u,m,F,Y.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else aa=Z.target.result,q(aa,Y.type,d+V*C,k+V*C,240,160,Y.name,function(sa){N(V,function(){return sa})},Y)}catch(sa){N(V,mxUtils.bind(this,function(){return null})),null!=window.console&&console.error(sa,Y)}else N(V,mxUtils.bind(this,function(){return null}))});EditorUi.isVisioFilename(Y.name)?
+q(null,Y.type,d+V*C,k+V*C,240,160,Y.name,function(Z){N(V,function(){return Z})},Y):"image"==Y.type.substring(0,5)||"application/pdf"==Y.type?X.readAsDataURL(Y):X.readAsText(Y)}})(P)});if(G){G=[];for(H=0;H<c.length;H++)G.push(c[H]);c=G;this.confirmImageResize(function(t){u=t;g()},D)}else g()};EditorUi.prototype.isBlankFile=function(){return null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=
function(c,d){d=null!=d?d:!1;var k=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},m=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,q=function(v,A){if(v||d)mxSettings.setResizeImages(v?A:null),mxSettings.save();k();c(A)};null==m||d?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(v){q(v,!0)},function(v){q(v,!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?226:200,!0,!0):q(!1,m)};EditorUi.prototype.parseFile=function(c,d,k){k=null!=k?k:c.name;var m=new FileReader;m.onload=mxUtils.bind(this,function(){this.parseFileData(m.result,d,k)});m.readAsText(c)};EditorUi.prototype.parseFileData=function(c,d,k){var m=new XMLHttpRequest;m.open("POST",OPEN_URL);m.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
-m.onreadystatechange=function(){d(m)};m.send("format=xml&filename="+encodeURIComponent(k)+"&data="+encodeURIComponent(c));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(q){}};EditorUi.prototype.isResampleImageSize=function(c,d){d=null!=d?d:this.resampleThreshold;return c>d};EditorUi.prototype.resizeImage=function(c,d,k,m,q,v,A){q=null!=q?q:this.maxImageSize;var C=Math.max(1,c.width),D=Math.max(1,c.height),J=d;if(m&&this.isResampleImageSize(null!=A?A:d.length,
-v))try{var F=Math.max(C/q,D/q);if(1<F){var T=Math.round(C/F),W=Math.round(D/F),p=document.createElement("canvas");p.width=T;p.height=W;p.getContext("2d").drawImage(c,0,0,T,W);var u=p.toDataURL();if(u.length<d.length){var G=document.createElement("canvas");G.width=T;G.height=W;var I=G.toDataURL();u!==I&&(d=u,C=T,D=W)}}}catch(H){}m&&J!=d&&q>this.maxImageSize/2&&d.length>this.maxImageBytes?this.resizeImage(c,d,k,m,q/1.5,v,A):k(d,C,D)};EditorUi.prototype.extractGraphModelFromPng=function(c){return Editor.extractGraphModelFromPng(c)};
+m.onreadystatechange=function(){d(m)};m.send("format=xml&filename="+encodeURIComponent(k)+"&data="+encodeURIComponent(c));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(q){}};EditorUi.prototype.isResampleImageSize=function(c,d){d=null!=d?d:this.resampleThreshold;return c>d};EditorUi.prototype.resizeImage=function(c,d,k,m,q,v,A){q=null!=q?q:this.maxImageSize;var B=Math.max(1,c.width),D=Math.max(1,c.height),J=d;if(m&&this.isResampleImageSize(null!=A?A:d.length,
+v))try{var F=Math.max(B/q,D/q);if(1<F){var T=Math.round(B/F),W=Math.round(D/F),p=document.createElement("canvas");p.width=T;p.height=W;p.getContext("2d").drawImage(c,0,0,T,W);var u=p.toDataURL();if(u.length<d.length){var G=document.createElement("canvas");G.width=T;G.height=W;var I=G.toDataURL();u!==I&&(d=u,B=T,D=W)}}}catch(H){}m&&J!=d&&q>this.maxImageSize/2&&d.length>this.maxImageBytes?this.resizeImage(c,d,k,m,q/1.5,v,A):k(d,B,D)};EditorUi.prototype.extractGraphModelFromPng=function(c){return Editor.extractGraphModelFromPng(c)};
EditorUi.prototype.loadImage=function(c,d,k){try{var m=new Image;m.onload=function(){m.width=0<m.width?m.width:120;m.height=0<m.height?m.height:120;d(m)};null!=k&&(m.onerror=k);m.src=c}catch(q){if(null!=k)k(q);else throw q;}};EditorUi.prototype.getDefaultSketchMode=function(){var c="1"==urlParams.sketch;return"0"!=(null!=urlParams.rough?urlParams.rough:c)};var x=EditorUi.prototype.createUi;EditorUi.prototype.createUi=function(){Editor.isSettingsEnabled()&&(null!=mxSettings.settings.sidebarTitles&&
(Sidebar.prototype.sidebarTitles=mxSettings.settings.sidebarTitles),this.formatWidth=mxSettings.getFormatWidth());this.formatEnabled||(this.formatWidth=0);this.sidebarEnabled||(this.hsplitPosition=0);x.apply(this,arguments);Editor.isSettingsEnabled()&&this.doSetSketchMode(null!=mxSettings.settings.sketchMode&&null==urlParams.rough&&null==urlParams.sketch?mxSettings.settings.sketchMode:this.getDefaultSketchMode())};var z=EditorUi.prototype.init;EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=
mxStencilRegistry.allowEval&&!this.isOfflineApp();var c=this,d=this.editor.graph,k=d.isEnabled;d.isEnabled=function(){return k.apply(this,arguments)&&!c.isLocked()};d.showLinkIcons=Editor.showLinkIcons;d.showTooltipIcons=Editor.showTooltipIcons;var m=this;d.editTooltip=function(N){null!=N&&m.actions.get("editTooltip").funct()};d.getLinkOverlayTooltip=function(N){if(Graph.isPageLink(N)&&null!=m.pages){var P=N.substring(N.indexOf(",")+1);P=m.getPageById(P);if(null!=P)return P.getName()||mxResources.get("pageWithNumber",
@@ -13539,7 +13545,7 @@ Y.format,function(Z,aa,ea){c.spinner.stop();d.getModel().beginUpdate();try{if("t
[ha],!1));d.setAttributeForCell(N,"mermaidData",JSON.stringify({data:X,config:Y.config},null,2))}finally{d.getModel().endUpdate()}},function(Z){c.handleError(Z)})});c.showDialog(P.container,640,420,!0,!0,null,null,null,new mxRectangle(0,0,320,280));P.init()};var q=d.cellEditor.startEditing;d.cellEditor.startEditing=function(N,P){try{var V=this.graph.getAttributeForCell(N,"plantUmlData");if(null!=V)this.editPlantUmlData(N,P,V);else if(V=this.graph.getAttributeForCell(N,"mermaidData"),null!=V&&window.isMermaidEnabled)this.editMermaidData(N,
P,V);else{var Y=d.getCellStyle(N);"1"==mxUtils.getValue(Y,"metaEdit","0")?c.showDataDialog(N):q.apply(this,arguments)}}catch(X){c.handleError(X)}};d.getLinkTitle=function(N){return c.getLinkTitle(N)};d.customLinkClicked=function(N,P){var V=!1;try{var Y=this.getGraphBounds();c.handleCustomLink(N,P);V=!0;c.chromelessResize&&!Y.equals(this.getGraphBounds())&&(c.chromelessResize(),this.scrollCellToVisible(P))}catch(X){c.handleError(X)}return V};var v=d.parseBackgroundImage;d.parseBackgroundImage=function(N){var P=
v.apply(this,arguments);null!=P&&null!=P.src&&Graph.isPageLink(P.src)&&(P={originalSrc:P.src});return P};var A=d.setBackgroundImage;d.setBackgroundImage=function(N){null!=N&&null!=N.originalSrc&&(N=c.createImageForPageLink(N.originalSrc,c.currentPage,this));A.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,function(){d.refreshBackgroundImage()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(){d.refreshBackgroundImage()}));this.editor.addListener("pagesPatched",
-mxUtils.bind(this,function(N,P){N=null!=d.backgroundImage?d.backgroundImage.originalSrc:null;if(null!=N){var V=N.indexOf(",");if(0<V)for(N=N.substring(V+1),P=P.getProperty("patches"),V=0;V<P.length;V++)if(null!=P[V][EditorUi.DIFF_UPDATE]&&null!=P[V][EditorUi.DIFF_UPDATE][N]||null!=P[V][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(P[V][EditorUi.DIFF_REMOVE],N)){d.refreshBackgroundImage();break}}}));var C=d.getBackgroundImageObject;d.getBackgroundImageObject=function(N,P,V){var Y=C.apply(this,arguments);
+mxUtils.bind(this,function(N,P){N=null!=d.backgroundImage?d.backgroundImage.originalSrc:null;if(null!=N){var V=N.indexOf(",");if(0<V)for(N=N.substring(V+1),P=P.getProperty("patches"),V=0;V<P.length;V++)if(null!=P[V][EditorUi.DIFF_UPDATE]&&null!=P[V][EditorUi.DIFF_UPDATE][N]||null!=P[V][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(P[V][EditorUi.DIFF_REMOVE],N)){d.refreshBackgroundImage();break}}}));var B=d.getBackgroundImageObject;d.getBackgroundImageObject=function(N,P,V){var Y=B.apply(this,arguments);
null!=Y&&null!=Y.originalSrc&&(Y=P?c.createImageForPageLink(Y.originalSrc,V,null,!0):{src:Y.originalSrc});return Y};this.isOffline()||"undefined"===typeof window.EditDataDialog||(EditDataDialog.placeholderHelpLink="https://www.drawio.com/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 D=c.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(N){N=
null!=N?N:"";"1"==urlParams.dev&&(N+=(0<N.length?"&":"?")+"dev=1");"1"==urlParams.test&&(N+=(0<N.length?"&":"?")+"test=1");return D.apply(this,arguments)};var J=d.addClickHandler;d.addClickHandler=function(N,P,V){var Y=P;P=function(X,Z,aa){if(null==Z){var ea=mxEvent.getSource(X);"a"==ea.nodeName.toLowerCase()&&(Z=ea.getAttribute("href"))}null!=Z&&d.isCustomLink(Z)&&(mxEvent.isTouchEvent(X)||!mxEvent.isPopupTrigger(X))&&d.customLinkClicked(Z,aa)&&mxEvent.consume(X);null!=Y&&Y(X,Z,aa)};J.call(this,
N,P,V)};z.apply(this,arguments);this.editor.graph.addSvgShadow(d.view.canvas.ownerSVGElement,null,!0);if(null!=this.menus){var F=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(N,P,V){d.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(N,["zoomIn","zoomOut","-"],null,V);if(Editor.passiveScroll&&null!=V){var Y=mxUtils.convertPoint(d.container,mxEvent.getClientX(V),mxEvent.getClientY(V));d._contextMenuPoint=new mxPoint(d.snap(Y.x/d.view.scale-d.view.translate.x),
@@ -13557,7 +13563,7 @@ arguments);else{if(!d.isEnabled()||null!=N&&d.isCellLocked(N.cell))d.customLinkC
this.useInternalClipboard||this.installNativeClipboardHandler();this.spinner=null!=this.spinner?this.spinner:this.createSpinner(null,null,24);Graph.fileSupport&&d.addListener(mxEvent.EDITING_STARTED,mxUtils.bind(this,function(N){var P=d.cellEditor.text2,V=null;null!=P&&(mxEvent.addListener(P,"dragleave",function(Y){null!=V&&(V.parentNode.removeChild(V),V=null);Y.stopPropagation();Y.preventDefault()}),mxEvent.addListener(P,"dragover",mxUtils.bind(this,function(Y){null==V&&(V=this.highlightElement(P));
Y.stopPropagation();Y.preventDefault()})),mxEvent.addListener(P,"drop",mxUtils.bind(this,function(Y){null!=V&&(V.parentNode.removeChild(V),V=null);if(0<Y.dataTransfer.files.length)this.importFiles(Y.dataTransfer.files,0,0,this.maxImageSize,function(Z,aa,ea,ha,ba,ia){d.insertImage(Z,ba,ia)},function(){},function(Z){return"image/"==Z.type.substring(0,6)},function(Z){for(var aa=0;aa<Z.length;aa++)Z[aa]()},mxEvent.isControlDown(Y));else if(0<=mxUtils.indexOf(Y.dataTransfer.types,"text/uri-list")){var X=
Y.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(X)?this.loadImage(decodeURIComponent(X),mxUtils.bind(this,function(Z){var aa=Math.max(1,Z.width);Z=Math.max(1,Z.height);var ea=this.maxImageSize;ea=Math.min(1,Math.min(ea/Math.max(1,aa)),ea/Math.max(1,Z));d.insertImage(decodeURIComponent(X),aa*ea,Z*ea)})):document.execCommand("insertHTML",!1,Y.dataTransfer.getData("text/plain"))}else 0<=mxUtils.indexOf(Y.dataTransfer.types,"text/html")?document.execCommand("insertHTML",
-!1,Y.dataTransfer.getData("text/html")):0<=mxUtils.indexOf(Y.dataTransfer.types,"text/plain")&&document.execCommand("insertHTML",!1,Y.dataTransfer.getData("text/plain"));Y.stopPropagation();Y.preventDefault()})))}));if(Editor.isSettingsEnabled()){t=this.editor.graph.view;var B=mxSettings.getUnit();t.setUnit(B);Editor.pageSizeUnit=B==mxConstants.METERS?mxConstants.MILLIMETERS:B;t.addListener("unitChanged",function(N,P){N=P.getProperty("unit");mxSettings.setUnit(N);mxSettings.save();Editor.pageSizeUnit=
+!1,Y.dataTransfer.getData("text/html")):0<=mxUtils.indexOf(Y.dataTransfer.types,"text/plain")&&document.execCommand("insertHTML",!1,Y.dataTransfer.getData("text/plain"));Y.stopPropagation();Y.preventDefault()})))}));if(Editor.isSettingsEnabled()){t=this.editor.graph.view;var C=mxSettings.getUnit();t.setUnit(C);Editor.pageSizeUnit=C==mxConstants.METERS?mxConstants.MILLIMETERS:C;t.addListener("unitChanged",function(N,P){N=P.getProperty("unit");mxSettings.setUnit(N);mxSettings.save();Editor.pageSizeUnit=
N==mxConstants.METERS?mxConstants.MILLIMETERS:N});this.ruler=!Editor.canvasSupported||9==document.documentMode||"1"!=urlParams.ruler&&!mxSettings.isRulerOn()||this.editor.isChromelessView()&&!this.editor.editable?null:new mxDualRuler(this,t.unit);this.refresh()}if("1"==urlParams.styledev){t=document.getElementById("geFooter");null!=t&&(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)})),t.appendChild(this.styleInput),this.editor.graph.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(N,P){0<this.editor.graph.getSelectionCount()?(N=this.editor.graph.getSelectionCell(),
N=this.editor.graph.getModel().getStyle(N),this.styleInput.value=N||"",this.styleInput.style.visibility="visible"):this.styleInput.style.visibility="hidden"})));var K=this.isSelectionAllowed;this.isSelectionAllowed=function(N){return mxEvent.getSource(N)==this.styleInput?!0:K.apply(this,arguments)}}t=document.getElementById("geInfo");null!=t&&t.parentNode.removeChild(t);if(Graph.fileSupport&&(!this.editor.chromeless||this.editor.editable)){var Q=null;mxEvent.addListener(d.container,"dragleave",function(N){d.isEnabled()&&
@@ -13569,24 +13575,24 @@ ba&&null!=ha&&ha.length>this.resampleThreshold?this.confirmImageResize(function(
ea+";"))}),mxUtils.bind(this,function(ka){d.setSelectionCells(this.insertTextAt(ea,Z,aa,!0))})):0<=mxUtils.indexOf(N.dataTransfer.types,"text/plain")&&d.setSelectionCells(this.insertTextAt(N.dataTransfer.getData("text/plain"),Z,aa,!0))}}N.stopPropagation();N.preventDefault()}),!1)}this.initPages();"1"==urlParams.embed&&this.initializeEmbedMode();this.addListener("currentThemeChanged",mxUtils.bind(this,function(){null!=this.sidebar&&this.sidebar.updateEntries();this.updateButtonContainer();this.updateDocumentTitle();
this.refresh(!0)}));this.addListener("realtimeStateChanged",mxUtils.bind(this,function(){this.updateButtonContainer(!0)}));this.addListener("darkModeChanged",function(){mxClient.IS_SF&&d.view.validateBackground()});d.addListener("enabledChanged",mxUtils.bind(this,function(){d.isEnabled()||this.hideShapePicker();this.refresh()}));c=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==c.embedViewport)mxUtils.fit(this.div);else{var N=parseInt(this.div.offsetLeft),P=parseInt(this.div.offsetWidth),
V=c.embedViewport.x+c.embedViewport.width,Y=parseInt(this.div.offsetTop),X=parseInt(this.div.offsetHeight),Z=c.embedViewport.y+c.embedViewport.height;this.div.style.left=Math.max(c.embedViewport.x,Math.min(N,V-P))+"px";this.div.style.top=Math.max(c.embedViewport.y,Math.min(Y,Z-X))+"px";this.div.style.height=Math.min(c.embedViewport.height,parseInt(this.div.style.height))+"px";this.div.style.width=Math.min(c.embedViewport.width,parseInt(this.div.style.width))+"px"}};var S=mxWindow.prototype.setLocation;
-mxWindow.prototype.setLocation=function(N,P){S.call(this,N,P);c.hideCurrentMenu()};var U=mxWindow.prototype.setSize;mxWindow.prototype.setSize=function(N,P){U.call(this,N,P);c.hideCurrentMenu()};if(!this.editor.chromeless||this.editor.editable){t=Editor.currentTheme;if("simple"==t||"sketch"==t)this.doSetCurrentTheme(t,!0),"1"==urlParams.embedInline?this.initializeInlineEmbedMode():(B=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,B<Editor.smallScreenWidth&&(this.formatWidth=
-0),"simple"==t&&B<Editor.smallScreenWidth-240&&(this.hsplitPosition=0),"simple"==t&&(this.lastWindowWidth=B)),this.fireEvent(new mxEventObject("themeInitialized"));"kennedy"==t&&(B=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,B<Editor.smallScreenWidth&&(this.formatWidth=0),B<Editor.smallScreenWidth-240&&(this.hsplitPosition=0),this.lastWindowWidth=B)}t=!1;if(null!=urlParams.dark)t=urlParams.dark;else if(!this.editor.chromeless||this.editor.editable)t="dark"==
+mxWindow.prototype.setLocation=function(N,P){S.call(this,N,P);c.hideCurrentMenu()};var U=mxWindow.prototype.setSize;mxWindow.prototype.setSize=function(N,P){U.call(this,N,P);c.hideCurrentMenu()};if(!this.editor.chromeless||this.editor.editable){t=Editor.currentTheme;if("simple"==t||"sketch"==t)this.doSetCurrentTheme(t,!0),"1"==urlParams.embedInline?this.initializeInlineEmbedMode():(C=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,C<Editor.smallScreenWidth&&(this.formatWidth=
+0),"simple"==t&&C<Editor.smallScreenWidth-240&&(this.hsplitPosition=0),"simple"==t&&(this.lastWindowWidth=C)),this.fireEvent(new mxEventObject("themeInitialized"));"kennedy"==t&&(C=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,C<Editor.smallScreenWidth&&(this.formatWidth=0),C<Editor.smallScreenWidth-240&&(this.hsplitPosition=0),this.lastWindowWidth=C)}t=!1;if(null!=urlParams.dark)t=urlParams.dark;else if(!this.editor.chromeless||this.editor.editable)t="dark"==
Editor.currentTheme,!Editor.isSettingsEnabled()||"1"==urlParams.embed||t&&"auto"!=mxSettings.settings.darkMode||(t=mxSettings.settings.darkMode);"auto"==t&&this.isAutoDarkModeSupported()&&(t=window.matchMedia("(prefers-color-scheme: dark)").matches);this.setDarkMode("string"===typeof t?"1"==t:t);if(this.isAutoDarkModeSupported())try{window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",mxUtils.bind(this,function(N){this.isAutoDarkMode()&&this.setDarkMode(N.matches)}))}catch(N){this.actions.get("autoMode").setEnabled(!1)}"1"==
urlParams["high-contrast"]?this.setHighContrast(!0):Editor.isSettingsEnabled()&&!this.editor.graph.isLightboxView()&&null!=mxSettings.settings.highContrast?this.setHighContrast(mxSettings.settings.highContrast):null!=window.matchMedia&&window.matchMedia("(prefers-contrast: more)").matches&&this.setHighContrast(!0);Editor.isSettingsEnabled()&&(null!=mxSettings.settings.pages&&this.setTabContainerVisible(mxSettings.settings.pages),null!=mxSettings.settings.compactMode&&this.isDefaultTheme(Editor.currentTheme)&&
this.setCompactMode(mxSettings.settings.compactMode));this.installSettings();this.addListener("enableAnimationsChanged",mxUtils.bind(this,function(N,P){d.enableFlowAnimation=Editor.enableAnimations;d.refresh()}));d.enableFlowAnimation=Editor.enableAnimations;screen.width<=Editor.smallScreenWidth&&(this.formatWidth=0);"1"==urlParams.prefetchFonts&&c.editor.loadFonts();"atlas"==Editor.currentTheme&&document.body.classList.add("geAtlas")};var y=EditorUi.prototype.windowResized;EditorUi.prototype.windowResized=
function(){if("simple"==Editor.currentTheme||"kennedy"==Editor.currentTheme){var c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,d=Editor.smallScreenWidth;null!=this.lastWindowWidth&&this.lastWindowWidth>=d&&c<d?this.isFormatPanelVisible()&&this.toggleFormatPanel(!1):null!=this.lastWindowWidth&&this.lastWindowWidth<d&&c>=d&&(this.isFormatPanelVisible()||this.toggleFormatPanel(!0));d=Editor.smallScreenWidth-160;null!=this.lastWindowWidth&&this.lastWindowWidth>=
d&&c<d?this.isShapesPanelVisible()&&this.toggleShapesPanel(!1,!0):null!=this.lastWindowWidth&&this.lastWindowWidth<d&&c>=d&&!this.isShapesPanelVisible()&&this.sidebarEnabled&&this.toggleShapesPanel(!0,!0);this.lastWindowWidth=c}y.apply(this,arguments);null!=this.updateFullscreenState&&this.updateFullscreenState()};EditorUi.prototype.initializeInlineEmbedMode=function(){var c=this.sketchFooterMenuElt,d=this.sketchMainMenuElt,k=this.sketchPickerMenuElt,m=this.editor.graph;k.style.transform="";mxEvent.addGestureListeners(this.diagramContainer.parentNode,
mxUtils.bind(this,function(J){mxEvent.getSource(J)==this.diagramContainer.parentNode&&(this.embedExitPoint=new mxPoint(mxEvent.getClientX(J),mxEvent.getClientY(J)),this.sendEmbeddedSvgExport())}));document.body.style.cursor="text";var q=document.createElement("div");q.style.position="absolute";q.style.width="10px";q.style.height="10px";q.style.borderRadius="5px";q.style.border="1px solid gray";q.style.background="#ffffff";q.style.cursor="row-resize";this.diagramContainer.parentNode.appendChild(q);
-this.bottomResizer=q;var v=null,A=null,C=null,D=null;mxEvent.addGestureListeners(q,mxUtils.bind(this,function(J){D=parseInt(this.diagramContainer.style.height);A=mxEvent.getClientY(J);m.popupMenuHandler.hideMenu();mxEvent.consume(J)}));q=q.cloneNode(!1);q.style.cursor="col-resize";this.diagramContainer.parentNode.appendChild(q);this.rightResizer=q;mxEvent.addGestureListeners(q,mxUtils.bind(this,function(J){C=parseInt(this.diagramContainer.style.width);v=mxEvent.getClientX(J);m.popupMenuHandler.hideMenu();
-mxEvent.consume(J)}));mxEvent.addGestureListeners(document.body,null,mxUtils.bind(this,function(J){var F=!1;null!=v&&(this.diagramContainer.style.width=Math.max(20,C+mxEvent.getClientX(J)-v)+"px",F=!0);null!=A&&(this.diagramContainer.style.height=Math.max(20,D+mxEvent.getClientY(J)-A)+"px",F=!0);F&&((this.embedMessageSource||window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:Editor.inlineFullscreen,rect:this.diagramContainer.getBoundingClientRect()}),"*"),this.inlineSizeChanged(),
+this.bottomResizer=q;var v=null,A=null,B=null,D=null;mxEvent.addGestureListeners(q,mxUtils.bind(this,function(J){D=parseInt(this.diagramContainer.style.height);A=mxEvent.getClientY(J);m.popupMenuHandler.hideMenu();mxEvent.consume(J)}));q=q.cloneNode(!1);q.style.cursor="col-resize";this.diagramContainer.parentNode.appendChild(q);this.rightResizer=q;mxEvent.addGestureListeners(q,mxUtils.bind(this,function(J){B=parseInt(this.diagramContainer.style.width);v=mxEvent.getClientX(J);m.popupMenuHandler.hideMenu();
+mxEvent.consume(J)}));mxEvent.addGestureListeners(document.body,null,mxUtils.bind(this,function(J){var F=!1;null!=v&&(this.diagramContainer.style.width=Math.max(20,B+mxEvent.getClientX(J)-v)+"px",F=!0);null!=A&&(this.diagramContainer.style.height=Math.max(20,D+mxEvent.getClientY(J)-A)+"px",F=!0);F&&((this.embedMessageSource||window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:Editor.inlineFullscreen,rect:this.diagramContainer.getBoundingClientRect()}),"*"),this.inlineSizeChanged(),
this.refresh())}),function(J){null==v&&null==A||mxEvent.consume(J);A=v=null});document.body.style.backgroundColor="transparent";this.diagramContainer.style.borderRadius="4px";this.bottomResizer.style.visibility="hidden";this.rightResizer.style.visibility="hidden";this.sketchMenubarElt.style.display="none";d.style.visibility="hidden";c.style.visibility="hidden";k.style.display="none";this.addListener("editInlineStart",mxUtils.bind(this,function(J){this.inlineSizeChanged();Editor.passiveScroll?this.hideWindows():
this.fitWindows()}));this.addListener("editInlineStop",mxUtils.bind(this,function(J){this.diagramContainer.style.width="10px";this.diagramContainer.style.height="10px";this.diagramContainer.style.border="";this.bottomResizer.style.visibility="hidden";this.rightResizer.style.visibility="hidden";d.style.visibility="hidden";c.style.visibility="hidden";k.style.display="none"}));this.windowResized=mxUtils.bind(this,function(){});this.inlineSizeChanged()};EditorUi.prototype.installNativeClipboardHandler=
function(){function c(){window.setTimeout(function(){k.innerHTML="&nbsp;";k.focus();document.execCommand("selectAll",!1,null)},0)}var d=this.editor.graph,k=document.createElement("div");k.setAttribute("autocomplete","off");k.setAttribute("autocorrect","off");k.setAttribute("autocapitalize","off");k.setAttribute("spellcheck","false");k.style.textRendering="optimizeSpeed";k.style.fontFamily="monospace";k.style.wordBreak="break-all";k.style.background="transparent";k.style.color="transparent";k.style.position=
"absolute";k.style.whiteSpace="nowrap";k.style.overflow="hidden";k.style.display="block";k.style.fontSize="1";k.style.zIndex="-1";k.style.resize="none";k.style.outline="none";k.style.width="1px";k.style.height="1px";mxUtils.setOpacity(k,0);k.contentEditable=!0;k.innerHTML="&nbsp;";var m=!1;this.keyHandler.bindControlKey(88,null);this.keyHandler.bindControlKey(67,null);this.keyHandler.bindControlKey(86,null);mxEvent.addListener(document,"keydown",mxUtils.bind(this,function(v){var A=mxEvent.getSource(v);
null==d.container||!d.isEnabled()||d.isMouseDown||d.isEditing()||null!=this.dialog||"INPUT"==A.nodeName||"TEXTAREA"==A.nodeName&&A!==this.typingShim||"true"==A.contentEditable||224!=v.keyCode&&(mxClient.IS_MAC||17!=v.keyCode)&&(!mxClient.IS_MAC||91!=v.keyCode&&93!=v.keyCode)||m||(k.style.left=d.container.scrollLeft+10+"px",k.style.top=d.container.scrollTop+10+"px",v=d.container.scrollLeft,A=d.container.scrollTop,d.container.appendChild(k),m=!0,k.focus(),document.execCommand("selectAll",!1,null),d.container.scrollLeft=
v,d.container.scrollTop=A)}));mxEvent.addListener(document,"keyup",mxUtils.bind(this,function(v){var A=v.keyCode;window.setTimeout(mxUtils.bind(this,function(){!m||224!=A&&17!=A&&91!=A&&93!=A||(m=!1,d.isEditing()||null!=this.dialog||null==d.container||d.container.focus(),k.parentNode.removeChild(k),null==this.dialog&&mxUtils.clearSelection())}),0)}));mxEvent.addListener(k,"copy",mxUtils.bind(this,function(v){if(d.isEnabled())try{mxClipboard.copy(d),this.copyCells(k),c()}catch(A){this.handleError(A)}}));
-mxEvent.addListener(k,"cut",mxUtils.bind(this,function(v){if(d.isEnabled())try{mxClipboard.copy(d),this.copyCells(k,!0),c()}catch(A){this.handleError(A)}}));mxEvent.addListener(k,"paste",mxUtils.bind(this,function(v){if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent()))try{if(k.innerHTML="&nbsp;",k.focus(),null!=v.clipboardData&&(Graph.removePasteFormatting(k.firstChild),this.pasteCells(v,k,!0,!0)),!mxEvent.isConsumed(v)){var A=d.container.scrollLeft,C=d.container.scrollTop;window.setTimeout(mxUtils.bind(this,
-function(){try{d.container.scrollLeft=A,d.container.scrollTop=C,Graph.removePasteFormatting(k.firstChild),this.pasteCells(v,k,!1,!0)}catch(D){this.handleError(D)}}),0)}}catch(D){this.handleError(D)}}),!0);var q=this.isSelectionAllowed;this.isSelectionAllowed=function(v){return mxEvent.getSource(v)==k?!0:q.apply(this,arguments)}};EditorUi.prototype.setCurrentTheme=function(c,d){mxSettings.setUi(c);(d=this.doSetCurrentTheme(c)||d)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=
+mxEvent.addListener(k,"cut",mxUtils.bind(this,function(v){if(d.isEnabled())try{mxClipboard.copy(d),this.copyCells(k,!0),c()}catch(A){this.handleError(A)}}));mxEvent.addListener(k,"paste",mxUtils.bind(this,function(v){if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent()))try{if(k.innerHTML="&nbsp;",k.focus(),null!=v.clipboardData&&(Graph.removePasteFormatting(k.firstChild),this.pasteCells(v,k,!0,!0)),!mxEvent.isConsumed(v)){var A=d.container.scrollLeft,B=d.container.scrollTop;window.setTimeout(mxUtils.bind(this,
+function(){try{d.container.scrollLeft=A,d.container.scrollTop=B,Graph.removePasteFormatting(k.firstChild),this.pasteCells(v,k,!1,!0)}catch(D){this.handleError(D)}}),0)}}catch(D){this.handleError(D)}}),!0);var q=this.isSelectionAllowed;this.isSelectionAllowed=function(v){return mxEvent.getSource(v)==k?!0:q.apply(this,arguments)}};EditorUi.prototype.setCurrentTheme=function(c,d){mxSettings.setUi(c);(d=this.doSetCurrentTheme(c)||d)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=
function(c){return""==c||"dark"==c||"default"==c||"kennedy"==c||null==c};EditorUi.prototype.doSetCurrentTheme=function(c,d){if(null==c||""==c)c=App.isSimpleThemePreferred()?"simple":"kennedy";var k="simple"==Editor.currentTheme&&this.isDefaultTheme(c)||this.isDefaultTheme(Editor.currentTheme)&&"simple"==c||c==Editor.currentTheme;if(k||d)d=this.saveScrollState(),this.editor.graph.stopEditing(!1),Editor.currentTheme=c,this.switchTheme(c),this.fireEvent(new mxEventObject("currentThemeChanged")),this.editor.fireEvent(new mxEventObject("statusChanged")),
this.restoreScrollState(d);return k};EditorUi.prototype.saveScrollState=function(c){var d=this.editor.graph.view.translate,k=this.diagramContainer.scrollLeft,m=this.diagramContainer.scrollTop;null!=this.embedViewport&&(Editor.inlineFullscreen?(k-=this.embedViewport.x,m-=this.embedViewport.y):(k+=this.embedViewport.x,m+=this.embedViewport.y));d={x:k,y:m,tx:d.x,ty:d.y};c&&(d.boundingRect=this.diagramContainer.getBoundingClientRect());return d};EditorUi.prototype.restoreScrollState=function(c){var d=
this.editor.graph.view.scale,k=this.editor.graph.view.translate;if(null!=c.boundingRect){var m=this.diagramContainer.getBoundingClientRect();c.x-=c.boundingRect.x-m.x;c.y-=c.boundingRect.y-m.y}this.diagramContainer.scrollLeft=c.x+(k.x-c.tx)*d;this.diagramContainer.scrollTop=c.y+(k.y-c.ty)*d};EditorUi.prototype.installStatusMinimizer=function(c){c=null!=c?c:this.statusContainer.parentNode;var d=!1;mxEvent.addListener(c,"mouseenter",mxUtils.bind(this,function(){"sketch"==Editor.currentTheme&&""!=this.editor.getStatus()&&
@@ -13598,17 +13604,17 @@ c.length;d++)null!=c[d]&&c[d].window.setVisible(!1)};EditorUi.prototype.destroyW
null);null!=this.actions.layersWindow&&(this.actions.layersWindow.destroy(),this.actions.layersWindow=null);null!=this.menus&&(null!=this.menus.chatWindow&&(this.menus.chatWindow.destroy(),this.menus.chatWindow=null),null!=this.menus.tagsWindow&&(this.menus.tagsWindow.destroy(),this.menus.tagsWindow=null),null!=this.menus.findWindow&&(this.menus.findWindow.destroy(),this.menus.findWindow=null),null!=this.menus.findReplaceWindow&&(this.menus.findReplaceWindow.destroy(),this.menus.findReplaceWindow=
null),null!=this.menus.commentsWindow&&(this.menus.commentsWindow.destroy(),this.menus.commentsWindow=null));null!=this.dockManager&&(this.dockManager.destroy(),this.dockManager=null);null!=this._dockResizeListener&&(mxEvent.removeListener(window,"resize",this._dockResizeListener),this._dockResizeListener=null)};EditorUi.prototype.createDockManager=function(){this.dockManager={windows:[],threshold:16,previewElement:null,getDockZone:function(c,d,k){var m=this.threshold,q=c<=m;c=c+k.offsetWidth>=(window.innerWidth||
document.documentElement.clientWidth||document.body.clientWidth)-m;var v=d<=m;d=d+k.offsetHeight>=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-m;return q&&v?"top-left":c&&v?"top-right":q&&d?"bottom-left":c&&d?"bottom-right":q?"left":c?"right":v?"top":d?"bottom":null},dock:function(c,d){var k=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,m=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,
-q=parseInt(c.div.style.width),v=parseInt(c.div.style.height),A=c.getX(),C=c.getY();c.dockState=d;c.div.classList.add("mxWindowDocked");var D=0<=d.indexOf("right"),J=0<=d.indexOf("bottom");0<=d.indexOf("left")?A=0:0<=d.indexOf("right")&&(A=k-q);0<=d.indexOf("top")?C=0:0<=d.indexOf("bottom")&&(C=m-v);D||(D=A+q/2>k/2);J||(J=C+v/2>m/2);c._dockAnchorRight=D;c._dockAnchorBottom=J;c._dockOffsetX=D?k-A-q:A;c._dockOffsetY=J?m-C-v:C;this.windows.push(c);this.pinToEdge(c);c.fireEvent(new mxEventObject(mxEvent.DOCK,
+q=parseInt(c.div.style.width),v=parseInt(c.div.style.height),A=c.getX(),B=c.getY();c.dockState=d;c.div.classList.add("mxWindowDocked");var D=0<=d.indexOf("right"),J=0<=d.indexOf("bottom");0<=d.indexOf("left")?A=0:0<=d.indexOf("right")&&(A=k-q);0<=d.indexOf("top")?B=0:0<=d.indexOf("bottom")&&(B=m-v);D||(D=A+q/2>k/2);J||(J=B+v/2>m/2);c._dockAnchorRight=D;c._dockAnchorBottom=J;c._dockOffsetX=D?k-A-q:A;c._dockOffsetY=J?m-B-v:B;this.windows.push(c);this.pinToEdge(c);c.fireEvent(new mxEventObject(mxEvent.DOCK,
"side",d))},undock:function(c){var d=c.dockState;if(null!=d){for(var k=0;k<this.windows.length;k++)if(this.windows[k]===c){this.windows.splice(k,1);break}c.div.classList.remove("mxWindowDocked");c.dockState=null;c._dockAnchorRight=null;c._dockAnchorBottom=null;c._dockOffsetX=null;c._dockOffsetY=null;c.fireEvent(new mxEventObject(mxEvent.UNDOCK,"side",d))}},pinToEdge:function(c){var d=c.dockState;if(null!=d){var k=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,m=
-window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,q=parseInt(c.div.style.width),v=parseInt(c.div.style.height);var A=c._dockAnchorRight?k-q-(c._dockOffsetX||0):c._dockOffsetX||0;var C=c._dockAnchorBottom?m-v-(c._dockOffsetY||0):c._dockOffsetY||0;0<=d.indexOf("left")?A=0:0<=d.indexOf("right")&&(A=k-q);0<=d.indexOf("top")?C=0:0<=d.indexOf("bottom")&&(C=m-v);A=Math.max(0,Math.min(A,k-q));C=Math.max(0,Math.min(C,m-v));c._relayouting=!0;mxWindow.prototype.setLocation.call(c,
-A,C);c._relayouting=!1}},layoutAll:function(){for(var c=0;c<this.windows.length;c++)this.pinToEdge(this.windows[c])},showPreview:function(c,d){null==this.previewElement&&(this.previewElement=document.createElement("div"),this.previewElement.className="geDockPreview",document.body.appendChild(this.previewElement));var k=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,m=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,q=this.previewElement,
-v=d.div.offsetWidth,A=d.div.offsetHeight,C=d.getX();d=d.getY();0<=c.indexOf("left")?C=0:0<=c.indexOf("right")&&(C=k-v);0<=c.indexOf("top")?d=0:0<=c.indexOf("bottom")&&(d=m-A);C=Math.max(0,Math.min(C,k-v));d=Math.max(0,Math.min(d,m-A));q.style.display="block";q.style.left=C+"px";q.style.top=d+"px";q.style.width=v+"px";q.style.height=A+"px"},hidePreview:function(){null!=this.previewElement&&(this.previewElement.style.display="none")},removeWindow:function(c){for(var d=0;d<this.windows.length;d++)if(this.windows[d]===
+window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,q=parseInt(c.div.style.width),v=parseInt(c.div.style.height);var A=c._dockAnchorRight?k-q-(c._dockOffsetX||0):c._dockOffsetX||0;var B=c._dockAnchorBottom?m-v-(c._dockOffsetY||0):c._dockOffsetY||0;0<=d.indexOf("left")?A=0:0<=d.indexOf("right")&&(A=k-q);0<=d.indexOf("top")?B=0:0<=d.indexOf("bottom")&&(B=m-v);A=Math.max(0,Math.min(A,k-q));B=Math.max(0,Math.min(B,m-v));c._relayouting=!0;mxWindow.prototype.setLocation.call(c,
+A,B);c._relayouting=!1}},layoutAll:function(){for(var c=0;c<this.windows.length;c++)this.pinToEdge(this.windows[c])},showPreview:function(c,d){null==this.previewElement&&(this.previewElement=document.createElement("div"),this.previewElement.className="geDockPreview",document.body.appendChild(this.previewElement));var k=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,m=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,q=this.previewElement,
+v=d.div.offsetWidth,A=d.div.offsetHeight,B=d.getX();d=d.getY();0<=c.indexOf("left")?B=0:0<=c.indexOf("right")&&(B=k-v);0<=c.indexOf("top")?d=0:0<=c.indexOf("bottom")&&(d=m-A);B=Math.max(0,Math.min(B,k-v));d=Math.max(0,Math.min(d,m-A));q.style.display="block";q.style.left=B+"px";q.style.top=d+"px";q.style.width=v+"px";q.style.height=A+"px"},hidePreview:function(){null!=this.previewElement&&(this.previewElement.style.display="none")},removeWindow:function(c){for(var d=0;d<this.windows.length;d++)if(this.windows[d]===
c){this.windows.splice(d,1);break}},destroy:function(){null!=this.previewElement&&null!=this.previewElement.parentNode&&(this.previewElement.parentNode.removeChild(this.previewElement),this.previewElement=null)}};this._dockResizeListener=mxUtils.bind(this,function(){null!=this.dockManager&&this.dockManager.layoutAll()});mxEvent.addListener(window,"resize",this._dockResizeListener)};var E=EditorUi.prototype.installResizeHandler;EditorUi.prototype.installResizeHandler=function(c,d,k){E.apply(this,arguments);
-if(EditorUi.windowed&&Editor.enableWindowDocking){var m=c.window;null==this.dockManager&&this.createDockManager();var q=this.dockManager,v=!1,A=null,C=m.setLocation;m.setLocation=function(F,T){(null==this.dockState||this._undocking||this._relayouting)&&C.call(this,F,T)};var D=m.setSize;m.setSize=function(F,T){if(null!=this.dockState){mxWindow.prototype.setSize.call(this,F,T);F=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;T=window.innerHeight||document.documentElement.clientHeight||
+if(EditorUi.windowed&&Editor.enableWindowDocking){var m=c.window;null==this.dockManager&&this.createDockManager();var q=this.dockManager,v=!1,A=null,B=m.setLocation;m.setLocation=function(F,T){(null==this.dockState||this._undocking||this._relayouting)&&B.call(this,F,T)};var D=m.setSize;m.setSize=function(F,T){if(null!=this.dockState){mxWindow.prototype.setSize.call(this,F,T);F=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;T=window.innerHeight||document.documentElement.clientHeight||
document.body.clientHeight;var W=parseInt(this.div.style.width),p=parseInt(this.div.style.height),u=this.getX(),G=this.getY();this._dockOffsetX=this._dockAnchorRight?F-u-W:u;this._dockOffsetY=this._dockAnchorBottom?T-G-p:G;q.pinToEdge(this)}else D.call(this,F,T)};m.addListener(mxEvent.MOVE_START,function(F,T){v=!0;A=null;null!=m.dockState&&(m._undocking=!0,q.undock(m),m._undocking=!1)});m.addListener(mxEvent.MOVE,function(F,T){v&&(F=q.getDockZone(m.getX(),m.getY(),m.div),F!=A&&(A=F,null!=F?q.showPreview(F,
m):q.hidePreview()))});m.addListener(mxEvent.MOVE_END,function(F,T){v=!1;q.hidePreview();null!=A&&q.dock(m,A);A=null});m.addListener(mxEvent.DOCK,function(F,T){if(null!=m.resize){F=T.getProperty("side");var W=0<=F.indexOf("right"),p=0<=F.indexOf("bottom");if(W||p){F=m.resize;F.parentNode.removeChild(F);m.resize=null;F=document.createElement("img");F.style.position="absolute";F.style.zIndex="2";F.setAttribute("src",mxWindow.prototype.resizeImage);W?F.style.left="0px":F.style.right="0px";p?F.style.top=
-"0px":F.style.bottom="0px";F.style.cursor=W!=p?"nesw-resize":"nwse-resize";var u=null,G=null,I=null,H=null,g=function(B){if(null!=u&&null!=G){var K=mxEvent.getClientX(B)-u,Q=mxEvent.getClientY(B)-G;m.setSize(W?I-K:I+K,p?H-Q:H+Q);m.fireEvent(new mxEventObject(mxEvent.RESIZE,"event",B));mxEvent.consume(B)}},t=function(B){null!=u&&null!=G&&(G=u=null,mxEvent.removeGestureListeners(document,null,g,t),m.fireEvent(new mxEventObject(mxEvent.RESIZE_END,"event",B)),mxEvent.consume(B))};mxEvent.addGestureListeners(F,
-function(B){m.activate();u=mxEvent.getClientX(B);G=mxEvent.getClientY(B);I=m.div.offsetWidth;H=m.div.offsetHeight;mxEvent.addGestureListeners(document,null,g,t);m.fireEvent(new mxEventObject(mxEvent.RESIZE_START,"event",B));mxEvent.consume(B)},g,t);m.div.appendChild(F);m.resize=F;m._dockResize=!0}}});m.addListener(mxEvent.UNDOCK,function(F,T){m._dockResize&&(null!=m.resize&&(m.resize.parentNode.removeChild(m.resize),m.resize=null),m.setResizable(!0),m._dockResize=!1)});m.addListener(mxEvent.NORMALIZE,
+"0px":F.style.bottom="0px";F.style.cursor=W!=p?"nesw-resize":"nwse-resize";var u=null,G=null,I=null,H=null,g=function(C){if(null!=u&&null!=G){var K=mxEvent.getClientX(C)-u,Q=mxEvent.getClientY(C)-G;m.setSize(W?I-K:I+K,p?H-Q:H+Q);m.fireEvent(new mxEventObject(mxEvent.RESIZE,"event",C));mxEvent.consume(C)}},t=function(C){null!=u&&null!=G&&(G=u=null,mxEvent.removeGestureListeners(document,null,g,t),m.fireEvent(new mxEventObject(mxEvent.RESIZE_END,"event",C)),mxEvent.consume(C))};mxEvent.addGestureListeners(F,
+function(C){m.activate();u=mxEvent.getClientX(C);G=mxEvent.getClientY(C);I=m.div.offsetWidth;H=m.div.offsetHeight;mxEvent.addGestureListeners(document,null,g,t);m.fireEvent(new mxEventObject(mxEvent.RESIZE_START,"event",C));mxEvent.consume(C)},g,t);m.div.appendChild(F);m.resize=F;m._dockResize=!0}}});m.addListener(mxEvent.UNDOCK,function(F,T){m._dockResize&&(null!=m.resize&&(m.resize.parentNode.removeChild(m.resize),m.resize=null),m.setResizable(!0),m._dockResize=!1)});m.addListener(mxEvent.NORMALIZE,
function(F,T){null!=m.dockState&&q.pinToEdge(m)});m.addListener(mxEvent.MAXIMIZE,function(F,T){null!=m.dockState&&(m._undocking=!0,q.undock(m),m._undocking=!1)});m.addListener(mxEvent.SHOW,function(F,T){null!=m.dockState&&q.pinToEdge(m)});var J=c.destroy;c.destroy=function(){q.removeWindow(m);J.apply(this,arguments)}}};EditorUi.prototype.switchThemeConstants=function(c){var d=this.editor.graph;d.defaultEdgeLength=Graph.prototype.defaultEdgeLength;d.defaultGridEnabled=Graph.prototype.defaultGridEnabled;
d.defaultPageVisible=Graph.prototype.defaultPageVisible;null!=this.menus&&(this.menus.autoPopup="simple"!=c&&"sketch"!=c);if("simple"==c||"sketch"==c){Editor.fitWindowBorders=new mxRectangle(60,30,30,30);if(null==Editor.config||null==Editor.config.defaultEdgeLength)d.defaultEdgeLength=120;null==urlParams.grid&&(d.defaultGridEnabled=!1);null==urlParams.pv&&(d.defaultPageVisible=!1)}else Editor.fitWindowBorders=null};EditorUi.prototype.isPageMenuVisible=function(){return null!=this.pages&&("0"!=urlParams.pages||
1<this.pages.length||Editor.pagesVisible)};EditorUi.prototype.switchCssForTheme=function(c){};EditorUi.prototype.createMainMenuForTheme=function(c){};EditorUi.prototype.createFooterMenuForTheme=function(c){};EditorUi.prototype.createPickerMenuForTheme=function(c){};EditorUi.prototype.getNetworkStatus=function(){var c=null;if(this.isOffline(!0))c=mxResources.get("offline");else{var d=this.getCurrentFile();null!=d&&(d.invalidChecksum?c=mxResources.get("error")+": "+mxResources.get("checksum"):null==
@@ -13623,7 +13629,7 @@ this.formatEnabled?window.setTimeout(mxUtils.bind(this,mxUtils.bind(this,functio
this.formatWindow;null!=d?d.window.setVisible(null!=c?c:!this.isFormatPanelVisible()):M.apply(this,arguments)};EditorUi.prototype.toggleShapesPanel=function(c,d){if(this.isShapesPanelVisible()!=c){var k=EditorUi.prototype.hsplitPosition;0==k&&(k=Math.min(this.diagramContainer.clientWidth,this.defaultSidebarWidth));var m=this.hsplitPosition,q=mxUtils.bind(this,function(){this.hsplitPosition=v;this.refresh();d||(this.diagramContainer.scrollLeft-=m-this.hsplitPosition)}),v=c?k:0,A=Editor.transitionDelay;
mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==v?"translateX(0)":"translateX(-100%)");0!=v&&q();window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==v?"translateX(-100%)":"translateX(0)");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition","transform "+A+"s ease-in-out");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin","top left");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,
"transition",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin",null);0==v&&q();this.fireEvent(new mxEventObject("shapesPanelChanged"))}),1E3*A)}),0)}};EditorUi.prototype.isShapesPanelVisible=function(){return 0<this.hsplitPosition};var L=EditorUi.prototype.isFormatPanelVisible;EditorUi.prototype.isFormatPanelVisible=function(){var c=this.formatWindow;return null!=c?c.window.isVisible():L.apply(this,
-arguments)};EditorUi.prototype.createShapesPanel=function(c){var d=mxUtils.bind(this,function(A,C){var D=this.menus.get(A);A=this.createMenuElement(C,mxUtils.bind(this,function(){D.funct.apply(this,arguments)}));A.setAttribute("title",C);A.style.cssText="position:absolute;border-style:solid;bottom:0px;margin:0;border-radius:0;border-width:1px 0 0 0;";A.className="geButton";c.parentNode.appendChild(A);return A});if(Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries))if(null!=
+arguments)};EditorUi.prototype.createShapesPanel=function(c){var d=mxUtils.bind(this,function(A,B){var D=this.menus.get(A);A=this.createMenuElement(B,mxUtils.bind(this,function(){D.funct.apply(this,arguments)}));A.setAttribute("title",B);A.style.cssText="position:absolute;border-style:solid;bottom:0px;margin:0;border-radius:0;border-width:1px 0 0 0;";A.className="geButton";c.parentNode.appendChild(A);return A});if(Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries))if(null!=
this.actions.get("newLibrary"))d=document.createElement("div"),d.style.cssText="position:absolute;border-style:solid;bottom:0px;margin:0;border-radius:0;border-width:1px 0 0 0;",d.className="geButton",d.style.left="0px",d.style.right="50%",mxUtils.write(d,mxResources.get("newLibrary")),c.appendChild(d),mxEvent.addListener(d,"click",this.actions.get("newLibrary").funct),d=d.cloneNode(!1),d.style.left="50%",d.style.right="0px",mxUtils.write(d,mxResources.get("openLibrary")),c.appendChild(d),mxEvent.addListener(d,
"click",this.actions.get("openLibrary").funct);else{var k=d("newLibrary","");k.style.left="0px";k.style.right="50%";var m=document.createElement("span");k.appendChild(m);var q=d("openLibraryFrom","");q.style.borderLeftWidth="1px";q.style.left="50%";q.style.right="0px";var v=document.createElement("span");q.appendChild(v);this.dependsOnLanguage(mxUtils.bind(this,function(){m.innerHTML="";mxUtils.write(m,mxResources.get("newLibrary"));k.setAttribute("title",mxResources.get("newLibrary"));v.innerHTML=
"";mxUtils.write(v,mxResources.get("openLibraryFrom"));q.setAttribute("title",mxResources.get("openLibraryFrom"))}))}c.appendChild(this.sidebar.container);c.style.overflow="hidden"};EditorUi.prototype.createShapesWindow=function(){if(null==this.sidebarWindow){var c=Math.min(this.diagramContainer.parentNode.clientWidth-10,218),d="1"==urlParams.embedInline?650:Math.min(this.diagramContainer.parentNode.clientHeight,650),k="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme;this.sidebarWindow=
@@ -13653,45 +13659,45 @@ mxUtils.bind(this,function(d,k){mxSettings.setCustomFonts(this.menus.customFonts
mxUtils.bind(this,function(d,k){mxSettings.setPageFormat(c.pageFormat);mxSettings.save()}));c.view.defaultDarkGridColor=mxSettings.getGridColor(!0);c.view.defaultGridColor=mxSettings.getGridColor(!1);c.view.gridColor="light-dark("+c.view.defaultGridColor+", "+c.view.defaultDarkGridColor+")";this.addListener("gridColorChanged",mxUtils.bind(this,function(d,k){mxSettings.setGridColor(c.view.defaultGridColor,!1);mxSettings.setGridColor(c.view.defaultDarkGridColor,!0);mxSettings.save()}));if(mxClient.IS_CHROMEAPP||
EditorUi.isElectronApp)this.editor.addListener("autosaveChanged",mxUtils.bind(this,function(d,k){mxSettings.setAutosave(this.editor.autosave);mxSettings.save()})),this.editor.autosave=mxSettings.getAutosave();if(!this.editor.chromeless||this.editor.editable)null!=mxSettings.settings.enableAnimations&&(Editor.enableAnimations=mxSettings.settings.enableAnimations),this.addListener("enableAnimationsChanged",mxUtils.bind(this,function(d,k){mxSettings.settings.enableAnimations=Editor.enableAnimations;
mxSettings.save()}));null!=this.sidebar&&(null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes?(this.sidebar.searchShapes(decodeURIComponent(urlParams["search-shapes"])),this.sidebar.showEntries("search")):(this.sidebar.showPalette("search",mxSettings.settings.search),this.editor.chromeless&&!this.editor.editable||!(mxSettings.settings.isNew||8>=parseInt(mxSettings.settings.version||0))||(this.toggleScratchpad(),mxSettings.save())));this.addListener("formatWidthChanged",function(){mxSettings.setFormatWidth(this.formatWidth);
-mxSettings.save()})}};EditorUi.prototype.writeImageToClipboard=function(c,d,k,m,q,v){m=null!=m?m:"image/png";var A=null==d||null==k?'<img src="'+c+'">':'<img src="'+c+'" width="'+d+'" height="'+k+'">',C={"text/html":new Blob([A],{type:"text/html"})};null!=ClipboardItem.supports&&ClipboardItem.supports(m)&&(C[m]=this.base64ToBlob(c.substring(c.indexOf(",")+1),m));var D=new ClipboardItem(C);navigator.clipboard.write([D]).then(q)["catch"](v);EditorUi.debug("EditorUi.writeImageToClipboard",[this],"dataUrl",
-[c],"w",d,"h",k,"type",m,"html",[A],"data",[C],"item",[D])};EditorUi.prototype.writeHtmlToClipboard=function(c,d){navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([Editor.convertHtmlToText(c)],{type:"text/plain"}),"text/html":new Blob([c],{type:"text/html"})})])["catch"](d)};EditorUi.prototype.writeTextToClipboard=function(c,d,k){navigator.clipboard.writeText(c)["catch"](d).then(function(){null!=k&&k()})};EditorUi.prototype.copySvg=function(c,d,k){try{if(null!=navigator.clipboard&&
-"function"===typeof window.ClipboardItem){var m=this.editor.graph.getSvg(null,k,null,null,null,null,null,null,null,null,null,null,null,0<c.length?c:null);null!=d&&m.setAttribute("content",d);var q=Editor.createSvgDataUri(mxUtils.getXml(m)),v=parseInt(m.getAttribute("width")),A=parseInt(m.getAttribute("height"));this.writeImageToClipboard(q,v,A,"image/svg+xml",null,mxUtils.bind(this,function(C){this.handleError(C)}))}}catch(C){this.handleError(C)}};EditorUi.prototype.copyImage=function(c,d,k){try{k=
-null!=k?k:4,null!=navigator.clipboard&&"function"===typeof window.ClipboardItem&&this.spinner.spin(document.body,mxResources.get("exporting"))&&this.editor.exportToCanvas(mxUtils.bind(this,function(m,q){try{this.spinner.stop();var v=this.createImageDataUri(m,d,"png"),A=Math.round(parseInt(q.getAttribute("width"))/k),C=Math.round(parseInt(q.getAttribute("height"))/k);EditorUi.debug("EditorUi.copyImage",[this],"cells",[c],"xml",[d],"scale",[k]);this.writeImageToClipboard(v,A,C,"image/png",null,mxUtils.bind(this,
+mxSettings.save()})}};EditorUi.prototype.writeImageToClipboard=function(c,d,k,m,q,v){m=null!=m?m:"image/png";var A=null==d||null==k?'<img src="'+c+'">':'<img src="'+c+'" width="'+d+'" height="'+k+'">',B={"text/html":new Blob([A],{type:"text/html"})};null!=ClipboardItem.supports&&ClipboardItem.supports(m)&&(B[m]=this.base64ToBlob(c.substring(c.indexOf(",")+1),m));var D=new ClipboardItem(B);navigator.clipboard.write([D]).then(q)["catch"](v);EditorUi.debug("EditorUi.writeImageToClipboard",[this],"dataUrl",
+[c],"w",d,"h",k,"type",m,"html",[A],"data",[B],"item",[D])};EditorUi.prototype.writeHtmlToClipboard=function(c,d){navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([Editor.convertHtmlToText(c)],{type:"text/plain"}),"text/html":new Blob([c],{type:"text/html"})})])["catch"](d)};EditorUi.prototype.writeTextToClipboard=function(c,d,k){navigator.clipboard.writeText(c)["catch"](d).then(function(){null!=k&&k()})};EditorUi.prototype.copySvg=function(c,d,k){try{if(null!=navigator.clipboard&&
+"function"===typeof window.ClipboardItem){var m=this.editor.graph.getSvg(null,k,null,null,null,null,null,null,null,null,null,null,null,0<c.length?c:null);null!=d&&m.setAttribute("content",d);var q=Editor.createSvgDataUri(mxUtils.getXml(m)),v=parseInt(m.getAttribute("width")),A=parseInt(m.getAttribute("height"));this.writeImageToClipboard(q,v,A,"image/svg+xml",null,mxUtils.bind(this,function(B){this.handleError(B)}))}}catch(B){this.handleError(B)}};EditorUi.prototype.copyImage=function(c,d,k){try{k=
+null!=k?k:4,null!=navigator.clipboard&&"function"===typeof window.ClipboardItem&&this.spinner.spin(document.body,mxResources.get("exporting"))&&this.editor.exportToCanvas(mxUtils.bind(this,function(m,q){try{this.spinner.stop();var v=this.createImageDataUri(m,d,"png"),A=Math.round(parseInt(q.getAttribute("width"))/k),B=Math.round(parseInt(q.getAttribute("height"))/k);EditorUi.debug("EditorUi.copyImage",[this],"cells",[c],"xml",[d],"scale",[k]);this.writeImageToClipboard(v,A,B,"image/png",null,mxUtils.bind(this,
function(){if(this.isLocalFileSave()){var D=this.getBaseFilename(!1)+(null!=d?".drawio":"")+".png";this.saveLocalFile(v.substring(v.lastIndexOf(",")+1),D,"image/png",!0,"png",null,null,null,"copy")}else this.handleError(e)}))}catch(D){this.handleError(D)}}),null,null,null,mxUtils.bind(this,function(m){this.spinner.stop();this.handleError(m)}),null,null,k,null==this.editor.graph.background||this.editor.graph.background==mxConstants.NONE,null,null,null,10,null,null,!1,null,0<c.length?c:null)}catch(m){this.handleError(m)}};
EditorUi.prototype.copyCells=function(c,d){var k=this.editor.graph;if(k.isSelectionEmpty())c.innerText="";else{var m=mxUtils.sortCells(k.model.getTopmostCells(k.getSelectionCells())),q=mxUtils.getXml(k.encodeCells(m));mxUtils.setTextContent(c,encodeURIComponent(q));d?(k.removeCells(m,!1),k.lastPasteXml=null):(k.lastPasteXml=q,k.pasteCounter=0);c.focus();document.execCommand("selectAll",!1,null)}};EditorUi.prototype.copyXml=function(){var c=null;if(Editor.enableNativeClipboard){var d=this.editor.graph;
-d.isSelectionEmpty()||(c=mxUtils.sortCells(d.getExportableCells(d.model.getTopmostCells(d.getSelectionCells()))),d=mxUtils.getXml(d.encodeCells(c)),navigator.clipboard.writeText(d))}return c};EditorUi.prototype.pasteXml=function(c,d,k,m,q,v){EditorUi.debug("EditorUi.pasteXml",[this],"xml",[c],"pasteAsLabel",[d],"compat",[k],"evt",[m],"html",[q],"pt",[v]);q=null!=q?q:!0;var A=this.editor.graph,C=null!=v?v:Editor.pasteAtMousePointer&&A.isMouseInsertPoint()?A.getInsertPoint():null;v=null;A.lastPasteXml==
-c?null==C&&A.pasteCounter++:(A.lastPasteXml=c,A.pasteCounter=0);var D=A.pasteCounter*A.gridSize;if(k||this.isCompatibleString(c)){A.model.beginUpdate();try{if(v=this.importXml(c,D,D),null!=C){var J=A.getBoundingBoxFromGeometry(v,!0);if(null!=J){var F=Math.round(A.snap(C.x)),T=Math.round(A.snap(C.y));A.cellsMoved(v,F-J.x,T-J.y)}}}finally{A.model.endUpdate()}A.setSelectionCells(v)}else if(d&&1==A.getSelectionCount()){d=A.getStartEditingCell(A.getSelectionCell(),m);if(/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c)&&
-"image"==A.getCurrentCellStyle(d)[mxConstants.STYLE_SHAPE])A.setCellStyles(mxConstants.STYLE_IMAGE,c,[d]);else{A.model.beginUpdate();try{A.labelChanged(d,c),Graph.isLink(c)&&A.setLinkForCell(d,c)}finally{A.model.endUpdate()}}A.setSelectionCell(d)}else C=null!=C?C:A.getInsertPoint(),A.isMouseInsertPoint()&&(D=0,A.lastPasteXml==c&&0<A.pasteCounter&&A.pasteCounter--),v=this.insertTextAt(c,C.x+D,C.y+D,q),A.setSelectionCells(v);A.isSelectionEmpty()||(A.scrollCellToVisible(A.getSelectionCell()),null!=this.hoverIcons&&
-this.hoverIcons.update(A.view.getState(A.getSelectionCell())));return v};EditorUi.prototype.pasteCells=function(c,d,k,m){if(!mxEvent.isConsumed(c)){var q=c.clipboardData,v=this.editor.graph,A=!1,C=d;if(k&&null!=q&&q.getData){var D=q.getData("text/plain"),J=!1;if(null!=D&&0<D.length&&"%3CmxGraphModel%3E"==D.substring(0,18))try{var F=decodeURIComponent(D);this.isCompatibleString(F)&&(J=!0,D=F)}catch(H){}J=J?null:q.getData("text/html");null!=J&&0<J.length?(C=this.parseHtmlData(J),A="text/plain"!=C.getAttribute("data-type")):
-null!=D&&0<D.length&&(C=document.createElement("div"),mxUtils.setTextContent(C,J))}D=C.getElementsByTagName("span");if(null!=D&&0<D.length&&"application/vnd.lucid.chart.objects"===D[0].getAttribute("data-lucid-type"))k=D[0].getAttribute("data-lucid-content"),null!=k&&0<k.length&&(this.convertLucidChart(k,mxUtils.bind(this,function(H){var g=this.editor.graph;g.lastPasteXml==H?g.pasteCounter++:(g.lastPasteXml=H,g.pasteCounter=0);var t=g.pasteCounter*g.gridSize;g.setSelectionCells(this.importXml(H,t,
-t));g.scrollCellToVisible(g.getSelectionCell())}),mxUtils.bind(this,function(H){this.handleError(H)})),mxEvent.consume(c));else{var T=!1,W="";W=A?null!=C.textContent&&"<mxfile"==C.textContent.substring(0,7)&&"</mxfile>"==C.textContent.substring(C.textContent.length-9)||"<mxGraphModel"==C.textContent.substring(0,13)&&"</mxGraphModel>"==C.textContent.substring(C.textContent.length-15)?C.textContent.replace(/\u00a0/g," "):C.innerHTML:mxUtils.trim(null==C.innerText?mxUtils.getTextContent(C):C.innerText);
-try{var p=W.lastIndexOf("%3E");0<=p&&p<W.length-3&&(W=W.substring(0,p+3))}catch(H){}try{D=C.getElementsByTagName("span"),(F=null!=D&&0<D.length?mxUtils.trim(decodeURIComponent(D[0].textContent)):decodeURIComponent(W))&&(this.isCompatibleString(F)||0==F.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":'))&&(T=!0,W=F)}catch(H){}F=null;try{if(!T&&""==C.textContent)for(p=0;p<q.items.length;p++){var u=q.items[p];if("file"===u.kind){F=u.getAsFile();break}}}catch(H){}EditorUi.debug("EditorUi.pasteCells",
-[this],"evt",[c],"realElt",[d.outerHTML],"elt",[C.outerHTML],"useEvent",k,"pasteAsLabel",m,"xml",[W],"compat",T,"asHtml",A,"data",q,"items",[q.items.length],"files",[q.files.length],"types",[JSON.stringify(q.types)],"blob",[F]);try{if(T||null==F)if(null!=W&&0<W.length){if(0==W.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":')){var I=mxUtils.bind(this,function(){try{W=(new MiroImporter).importMiroJson(JSON.parse(W)),this.pasteXml(W,m,T,c)}catch(H){console.log("Miro import error:",H)}});
+d.isSelectionEmpty()||(c=mxUtils.sortCells(d.getExportableCells(d.model.getTopmostCells(d.getSelectionCells()))),d=mxUtils.getXml(d.encodeCells(c)),navigator.clipboard.writeText(d))}return c};EditorUi.prototype.pasteXml=function(c,d,k,m,q,v){EditorUi.debug("EditorUi.pasteXml",[this],"xml",[c],"pasteAsLabel",[d],"compat",[k],"evt",[m],"html",[q],"pt",[v]);q=null!=q?q:!0;var A=this.editor.graph,B=null!=v?v:Editor.pasteAtMousePointer&&A.isMouseInsertPoint()?A.getInsertPoint():null;v=null;A.lastPasteXml==
+c?null==B&&A.pasteCounter++:(A.lastPasteXml=c,A.pasteCounter=0);var D=A.pasteCounter*A.gridSize;if(k||this.isCompatibleString(c)){A.model.beginUpdate();try{if(v=this.importXml(c,D,D),null!=B){var J=A.getBoundingBoxFromGeometry(v,!0);if(null!=J){var F=Math.round(A.snap(B.x)),T=Math.round(A.snap(B.y));A.cellsMoved(v,F-J.x,T-J.y)}}}finally{A.model.endUpdate()}A.setSelectionCells(v)}else if(d&&1==A.getSelectionCount()){d=A.getStartEditingCell(A.getSelectionCell(),m);if(/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c)&&
+"image"==A.getCurrentCellStyle(d)[mxConstants.STYLE_SHAPE])A.setCellStyles(mxConstants.STYLE_IMAGE,c,[d]);else{A.model.beginUpdate();try{A.labelChanged(d,c),Graph.isLink(c)&&A.setLinkForCell(d,c)}finally{A.model.endUpdate()}}A.setSelectionCell(d)}else B=null!=B?B:A.getInsertPoint(),A.isMouseInsertPoint()&&(D=0,A.lastPasteXml==c&&0<A.pasteCounter&&A.pasteCounter--),v=this.insertTextAt(c,B.x+D,B.y+D,q),A.setSelectionCells(v);A.isSelectionEmpty()||(A.scrollCellToVisible(A.getSelectionCell()),null!=this.hoverIcons&&
+this.hoverIcons.update(A.view.getState(A.getSelectionCell())));return v};EditorUi.prototype.pasteCells=function(c,d,k,m){if(!mxEvent.isConsumed(c)){var q=c.clipboardData,v=this.editor.graph,A=!1,B=d;if(k&&null!=q&&q.getData){var D=q.getData("text/plain"),J=!1;if(null!=D&&0<D.length&&"%3CmxGraphModel%3E"==D.substring(0,18))try{var F=decodeURIComponent(D);this.isCompatibleString(F)&&(J=!0,D=F)}catch(H){}J=J?null:q.getData("text/html");null!=J&&0<J.length?(B=this.parseHtmlData(J),A="text/plain"!=B.getAttribute("data-type")):
+null!=D&&0<D.length&&(B=document.createElement("div"),mxUtils.setTextContent(B,J))}D=B.getElementsByTagName("span");if(null!=D&&0<D.length&&"application/vnd.lucid.chart.objects"===D[0].getAttribute("data-lucid-type"))k=D[0].getAttribute("data-lucid-content"),null!=k&&0<k.length&&(this.convertLucidChart(k,mxUtils.bind(this,function(H){var g=this.editor.graph;g.lastPasteXml==H?g.pasteCounter++:(g.lastPasteXml=H,g.pasteCounter=0);var t=g.pasteCounter*g.gridSize;g.setSelectionCells(this.importXml(H,t,
+t));g.scrollCellToVisible(g.getSelectionCell())}),mxUtils.bind(this,function(H){this.handleError(H)})),mxEvent.consume(c));else{var T=!1,W="";W=A?null!=B.textContent&&"<mxfile"==B.textContent.substring(0,7)&&"</mxfile>"==B.textContent.substring(B.textContent.length-9)||"<mxGraphModel"==B.textContent.substring(0,13)&&"</mxGraphModel>"==B.textContent.substring(B.textContent.length-15)?B.textContent.replace(/\u00a0/g," "):B.innerHTML:mxUtils.trim(null==B.innerText?mxUtils.getTextContent(B):B.innerText);
+try{var p=W.lastIndexOf("%3E");0<=p&&p<W.length-3&&(W=W.substring(0,p+3))}catch(H){}try{D=B.getElementsByTagName("span"),(F=null!=D&&0<D.length?mxUtils.trim(decodeURIComponent(D[0].textContent)):decodeURIComponent(W))&&(this.isCompatibleString(F)||0==F.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":'))&&(T=!0,W=F)}catch(H){}F=null;try{if(!T&&""==B.textContent)for(p=0;p<q.items.length;p++){var u=q.items[p];if("file"===u.kind){F=u.getAsFile();break}}}catch(H){}EditorUi.debug("EditorUi.pasteCells",
+[this],"evt",[c],"realElt",[d.outerHTML],"elt",[B.outerHTML],"useEvent",k,"pasteAsLabel",m,"xml",[W],"compat",T,"asHtml",A,"data",q,"items",[q.items.length],"files",[q.files.length],"types",[JSON.stringify(q.types)],"blob",[F]);try{if(T||null==F)if(null!=W&&0<W.length){if(0==W.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":')){var I=mxUtils.bind(this,function(){try{W=(new MiroImporter).importMiroJson(JSON.parse(W)),this.pasteXml(W,m,T,c)}catch(H){console.log("Miro import error:",H)}});
"undefined"===typeof MiroImporter?mxscript("js/diagramly/miro/MiroImporter.js",I):I()}else this.pasteXml(W,m,T,c,A);mxEvent.consume(c)}else k||(v.lastPasteXml=null,v.pasteCounter=0);else{var G=v.getInsertPoint();this.importFiles([F],G.x,G.y,this.maxImageSize);mxEvent.consume(c)}}catch(H){this.handleError(H)}}}d.innerHTML="&nbsp;"};EditorUi.prototype.pasteFromClipboard=function(c){var d=this.editor.graph;null==c&&Editor.pasteAtMousePointer&&d.isMouseInsertPoint()&&(c=d.getInsertPoint());if(d.isEnabled()&&
!d.isCellLocked(d.getDefaultParent()))try{Editor.enableNativeClipboard?this.readGraphModelFromClipboard(mxUtils.bind(this,function(k,m,q,v,A){if(null!=k){d.getModel().beginUpdate();try{this.pasteXml(k,!0,null,null,null,c)}finally{d.getModel().endUpdate()}}else k=null!=m?m:null!=q?q:v,null!=k?(c=null!=c?c:d.getInsertPoint(),this.importFiles([k],c.x,c.y,this.maxImageSize)):this.pasteFromLocalClipboard(c)})):this.pasteFromLocalClipboard(c)}catch(k){}};EditorUi.prototype.pasteFromLocalClipboard=function(c){var d=
this.editor.graph;d.getModel().beginUpdate();try{d.moveCellsTo(mxClipboard.paste(d),c)}finally{d.getModel().endUpdate()}};EditorUi.prototype.installImagePasteHandler=function(){var c=this.editor.graph;c.container.addEventListener("paste",mxUtils.bind(this,function(d){for(var k=null!=d.clipboardData?d.clipboardData:d.originalEvent.clipboardData,m=!1,q=null,v=0;v<k.types.length;v++)if("text/"===k.types[v].substring(0,5)){m=!0;break}for(v=0;v<k.items.length;v++){var A=k.items[v];if("file"===A.kind){q=
-A.getAsFile();break}}EditorUi.debug("EditorUi.imagePasteHandler",[this],"evt",[d],"data",[k],"items",[k.items.length],"files",[k.files.length],"types",[JSON.stringify(k.types)],"containsText",m,"file",[q],"editing",c.isEditing());var C=mxUtils.bind(this,function(){try{if(!m&&null!=q){if(c.isEditing())this.importFiles([q],0,0,this.maxImageSize,function(J,F,T,W,p,u){c.insertImage(J,p,u)},function(){},function(J){return"image/"==J.type.substring(0,6)},function(J){for(var F=0;F<J.length;F++)J[F]()});
-else{var D=this.editor.graph.getInsertPoint();this.importFiles([q],D.x,D.y,this.maxImageSize)}mxEvent.consume(d)}}catch(J){}});if(!mxEvent.isConsumed(d)&&!m)if(Editor.enableNativeClipboard)navigator.clipboard.read().then(mxUtils.bind(this,function(D){this.readTypeFromClipboardData(D,"image/svg+xml",mxUtils.bind(this,function(J){if(null!=J){J=new Blob([J],{type:"image/svg+xml"});var F=this.editor.graph.getInsertPoint();this.importFiles([J],F.x,F.y,this.maxImageSize)}else C()}),"image")}))["catch"](C);
-else C()}),!1)};EditorUi.prototype.readGraphModelFromClipboard=function(c){navigator.clipboard.read().then(mxUtils.bind(this,function(d){try{EditorUi.debug("EditorUi.readGraphModelFromClipboard",[this],"data",d,"types",null!=d&&0<d.length?[JSON.stringify(d[0].types)]:[]),this.readGraphModelFromHtmlClipboardData(d,mxUtils.bind(this,function(k,m){null!=k?c(k):this.readGraphModelFromImageClipboardData(d,mxUtils.bind(this,function(q,v,A){null!=q?c(q):this.readTypeFromClipboardData(d,"text/plain",mxUtils.bind(this,
-function(C){c(C,v,A,m,d)}))}))}))}catch(k){c(null)}}))["catch"](function(){c(null)})};EditorUi.prototype.readGraphModelFromHtmlClipboardData=function(c,d){this.readTypeFromClipboardData(c,"text/html",mxUtils.bind(this,function(k){var m=null,q=null;try{var v=this.parseHtmlData(k);if(null!=v){m="text/plain"!=v.getAttribute("data-type")?v.innerHTML:mxUtils.trim(null==v.innerText?mxUtils.getTextContent(v):v.innerText);try{var A=m.lastIndexOf("%3E");0<=A&&A<m.length-3&&(m=m.substring(0,A+3))}catch(J){}try{null==
-m&&(k=null,""==v.textContent&&1==v.children.length&&"IMG"==v.firstChild.nodeName&&(k=v.firstChild.getAttribute("src")),null!=k&&0<k.length&&("data:image/png;base64,"==k.substring(0,22)?q=this.base64ToBlob(k.substring(k.indexOf(",")+1),"image/png"):"data:image/svg+xml;base64,"==k.substring(0,26)&&(q=this.base64ToBlob(k.substring(k.indexOf(",")+1),"image/svg+xml"))))}catch(J){}try{var C=v.getElementsByTagName("span"),D=null!=C&&0<C.length?mxUtils.trim(decodeURIComponent(C[0].textContent)):decodeURIComponent(m);
+A.getAsFile();break}}EditorUi.debug("EditorUi.imagePasteHandler",[this],"evt",[d],"data",[k],"items",[k.items.length],"files",[k.files.length],"types",[JSON.stringify(k.types)],"containsText",m,"file",[q],"editing",c.isEditing());var B=mxUtils.bind(this,function(){try{if(!m&&null!=q){if(c.isEditing())this.importFiles([q],0,0,this.maxImageSize,function(J,F,T,W,p,u){c.insertImage(J,p,u)},function(){},function(J){return"image/"==J.type.substring(0,6)},function(J){for(var F=0;F<J.length;F++)J[F]()});
+else{var D=this.editor.graph.getInsertPoint();this.importFiles([q],D.x,D.y,this.maxImageSize)}mxEvent.consume(d)}}catch(J){}});if(!mxEvent.isConsumed(d)&&!m)if(Editor.enableNativeClipboard)navigator.clipboard.read().then(mxUtils.bind(this,function(D){this.readTypeFromClipboardData(D,"image/svg+xml",mxUtils.bind(this,function(J){if(null!=J){J=new Blob([J],{type:"image/svg+xml"});var F=this.editor.graph.getInsertPoint();this.importFiles([J],F.x,F.y,this.maxImageSize)}else B()}),"image")}))["catch"](B);
+else B()}),!1)};EditorUi.prototype.readGraphModelFromClipboard=function(c){navigator.clipboard.read().then(mxUtils.bind(this,function(d){try{EditorUi.debug("EditorUi.readGraphModelFromClipboard",[this],"data",d,"types",null!=d&&0<d.length?[JSON.stringify(d[0].types)]:[]),this.readGraphModelFromHtmlClipboardData(d,mxUtils.bind(this,function(k,m){null!=k?c(k):this.readGraphModelFromImageClipboardData(d,mxUtils.bind(this,function(q,v,A){null!=q?c(q):this.readTypeFromClipboardData(d,"text/plain",mxUtils.bind(this,
+function(B){c(B,v,A,m,d)}))}))}))}catch(k){c(null)}}))["catch"](function(){c(null)})};EditorUi.prototype.readGraphModelFromHtmlClipboardData=function(c,d){this.readTypeFromClipboardData(c,"text/html",mxUtils.bind(this,function(k){var m=null,q=null;try{var v=this.parseHtmlData(k);if(null!=v){m="text/plain"!=v.getAttribute("data-type")?v.innerHTML:mxUtils.trim(null==v.innerText?mxUtils.getTextContent(v):v.innerText);try{var A=m.lastIndexOf("%3E");0<=A&&A<m.length-3&&(m=m.substring(0,A+3))}catch(J){}try{null==
+m&&(k=null,""==v.textContent&&1==v.children.length&&"IMG"==v.firstChild.nodeName&&(k=v.firstChild.getAttribute("src")),null!=k&&0<k.length&&("data:image/png;base64,"==k.substring(0,22)?q=this.base64ToBlob(k.substring(k.indexOf(",")+1),"image/png"):"data:image/svg+xml;base64,"==k.substring(0,26)&&(q=this.base64ToBlob(k.substring(k.indexOf(",")+1),"image/svg+xml"))))}catch(J){}try{var B=v.getElementsByTagName("span"),D=null!=B&&0<B.length?mxUtils.trim(decodeURIComponent(B[0].textContent)):decodeURIComponent(m);
this.isCompatibleString(D)&&(m=D)}catch(J){}}}catch(J){}d(this.isCompatibleString(m)?m:null,q)}))};EditorUi.prototype.readGraphModelFromImageClipboardData=function(c,d){this.readTypeFromClipboardData(c,"image/svg+xml",mxUtils.bind(this,function(k,m){var q=null;try{null!=k&&(q=mxUtils.parseXml(k).documentElement.getAttribute("content"))}catch(v){}this.isCompatibleString(q)?d(q):this.readTypeFromClipboardData(c,"image/png",mxUtils.bind(this,function(v,A){q=Editor.extractGraphModelFromPng("data:image/png;base64,"+
-v);this.isCompatibleString(q)?d(q):d(null,m,A)}))}))};EditorUi.prototype.readTypeFromClipboardData=function(c,d,k){var m=!1;if(null!=c&&0<c.length)for(var q=0;q<c.length&&!m;q++)(function(v){0<=mxUtils.indexOf(v.types,d)&&(m=!0,v.getType(d).then(mxUtils.bind(this,function(A){if("image/png"==d)A.arrayBuffer().then(function(C){k(btoa(Graph.arrayBufferToString(C)),A)})["catch"](function(){k(null)});else A.text().then(mxUtils.bind(this,function(C){EditorUi.debug("EditorUi.readTypeFromClipboardData",[this],
-"data",[c],"type",[d],"result",[C]);k(C,A)}))["catch"](function(){k(null)})}))["catch"](function(){k(null)}))})(c[q]);m||k()};EditorUi.prototype.parseHtmlData=function(c){var d=null;if(null!=c&&0<c.length){var k="<meta "==c.substring(0,6);d=document.createElement("div");d.innerHTML=(k?'<meta charset="utf-8">':"")+Graph.sanitizeHtml(c);asHtml=!0;k=d.getElementsByTagName("style");if(null!=k)for(;0<k.length;)k[0].parentNode.removeChild(k[0]);if(null!=d.firstChild&&d.firstChild.nodeType==mxConstants.NODETYPE_ELEMENT&&
+v);this.isCompatibleString(q)?d(q):d(null,m,A)}))}))};EditorUi.prototype.readTypeFromClipboardData=function(c,d,k){var m=!1;if(null!=c&&0<c.length)for(var q=0;q<c.length&&!m;q++)(function(v){0<=mxUtils.indexOf(v.types,d)&&(m=!0,v.getType(d).then(mxUtils.bind(this,function(A){if("image/png"==d)A.arrayBuffer().then(function(B){k(btoa(Graph.arrayBufferToString(B)),A)})["catch"](function(){k(null)});else A.text().then(mxUtils.bind(this,function(B){EditorUi.debug("EditorUi.readTypeFromClipboardData",[this],
+"data",[c],"type",[d],"result",[B]);k(B,A)}))["catch"](function(){k(null)})}))["catch"](function(){k(null)}))})(c[q]);m||k()};EditorUi.prototype.parseHtmlData=function(c){var d=null;if(null!=c&&0<c.length){var k="<meta "==c.substring(0,6);d=document.createElement("div");d.innerHTML=(k?'<meta charset="utf-8">':"")+Graph.sanitizeHtml(c);asHtml=!0;k=d.getElementsByTagName("style");if(null!=k)for(;0<k.length;)k[0].parentNode.removeChild(k[0]);if(null!=d.firstChild&&d.firstChild.nodeType==mxConstants.NODETYPE_ELEMENT&&
null!=d.firstChild.nextSibling&&d.firstChild.nextSibling.nodeType==mxConstants.NODETYPE_ELEMENT&&"META"==d.firstChild.nodeName&&"A"==d.firstChild.nextSibling.nodeName&&null==d.firstChild.nextSibling.nextSibling){var m=null==d.firstChild.nextSibling.innerText?mxUtils.getTextContent(d.firstChild.nextSibling):d.firstChild.nextSibling.innerText;m==d.firstChild.nextSibling.getAttribute("href")&&(mxUtils.setTextContent(d,m),asHtml=!1)}if(""==d.textContent&&(k=d.getElementsByTagName("img"),1==k.length&&
(m=k[0].getAttribute("src"),k=null,null!=m))){if(Editor.isPngDataUrl(m)){var q=Editor.extractGraphModelFromPng(m);null!=q&&0<q.length&&(k=q)}else if("data:image/svg+xml;base64,"==m.substring(0,26)){img=this.base64ToBlob(m.substring(m.indexOf(",")+1),"image/svg+xml");m=Graph.getSvgFromDataUri(m);try{q=mxUtils.parseXml(m).documentElement.getAttribute("content"),this.isCompatibleString(q)&&(k=q)}catch(v){}}null!=k&&(mxUtils.setTextContent(d,k),asHtml=!1)}asHtml?Graph.removePasteFormatting(d):d.setAttribute("data-type",
-"text/plain")}EditorUi.debug("EditorUi.parseHtmlData",[this],"data",[c],"elt",[d],"asHtml",asHtml);return d};EditorUi.prototype.showPrintDialog=function(c,d,k){this.showDialog((new PrintDialog(this,c,d,k)).container,360,null,!0,!0)};EditorUi.prototype.print=function(c,d){var k=this.editor,m=k.graph,q=this.getPageIndex(this.currentPage),v=null!=q?q+1:1,A=mxUtils.bind(this,function(H,g,t,B){var K=H.useCssTransforms,Q=H.currentTranslate,S=H.currentScale,U=H.view.translate,N=H.view.scale;H.useCssTransforms&&
+"text/plain")}EditorUi.debug("EditorUi.parseHtmlData",[this],"data",[c],"elt",[d],"asHtml",asHtml);return d};EditorUi.prototype.showPrintDialog=function(c,d,k){this.showDialog((new PrintDialog(this,c,d,k)).container,360,null,!0,!0)};EditorUi.prototype.print=function(c,d){var k=this.editor,m=k.graph,q=this.getPageIndex(this.currentPage),v=null!=q?q+1:1,A=mxUtils.bind(this,function(H,g,t,C){var K=H.useCssTransforms,Q=H.currentTranslate,S=H.currentScale,U=H.view.translate,N=H.view.scale;H.useCssTransforms&&
(H.useCssTransforms=!1,H.currentTranslate=new mxPoint(0,0),H.currentScale=1,H.view.translate=new mxPoint(0,0),H.view.scale=1);var P=H.getGraphBounds(),V=0,Y=0,X=mxRectangle.fromRectangle(H.pageFormat),Z=d.fit||d.crop||!H.pageVisible,aa=d.scale;X.width=Math.ceil(X.width*H.pageScale);X.height=Math.ceil(X.height*H.pageScale);var ea=1;if(d.fit){ea=d.sheetsAcross;var ha=d.sheetsDown;isNaN(aa)||(X.width=Math.ceil(X.width*aa),X.height=Math.ceil(X.height*aa));ea=Math.min(X.height*ha/(P.height/H.view.scale),
-X.width*ea/(P.width/H.view.scale))}else ea=isNaN(aa)?1:aa;ea*=1;!Z&&H.pageVisible?(aa=H.getPageLayout(),V-=aa.x*X.width,Y-=aa.y*X.height):Z=!0;d.crop&&(d.selection&&(P=m.getBoundingBox(m.getSelectionCells())),X.width=(P.width+1)*ea/H.view.scale,X.height=(P.height+1)*ea/H.view.scale);X.width=Math.ceil(1*X.width);X.height=Math.ceil(1*X.height);B=null!=B?"page/id,"+B:null;if(null==g){g=PrintDialog.createPrintPreview(H,ea,null,0,V,Y,Z);g.title=this.getBaseFilename(!0);g.pageSelector=!1;g.mathEnabled=
+X.width*ea/(P.width/H.view.scale))}else ea=isNaN(aa)?1:aa;ea*=1;!Z&&H.pageVisible?(aa=H.getPageLayout(),V-=aa.x*X.width,Y-=aa.y*X.height):Z=!0;d.crop&&(d.selection&&(P=m.getBoundingBox(m.getSelectionCells())),X.width=(P.width+1)*ea/H.view.scale,X.height=(P.height+1)*ea/H.view.scale);X.width=Math.ceil(1*X.width);X.height=Math.ceil(1*X.height);C=null!=C?"page/id,"+C:null;if(null==g){g=PrintDialog.createPrintPreview(H,ea,null,0,V,Y,Z);g.title=this.getBaseFilename(!0);g.pageSelector=!1;g.mathEnabled=
!1;V=d.border;isNaN(V)||(g.pageMargin=V);var ba=g.writeHead;g.writeHead=function(ka,pa){pa=null!=pa?pa:"";d.shadows||(pa+='g[style*="filter: drop-shadow("] {\n filter: none !important;{\n}\n');mxClient.IS_GC&&(pa+="@media print {\n .MathJax svg { shape-rendering: crispEdges; }\n}\n");null!=k.fontCss&&(pa+=k.fontCss);ba.apply(this,arguments);for(var Ba=H.getCustomFonts(),sa=0;sa<Ba.length;sa++){var ja=Ba[sa].name,wa=Ba[sa].url;Graph.isCssFontUrl(wa)?ka.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Graph.rewriteGoogleFontUrl(wa))+
'" charset="UTF-8" type="text/css">'):(ka.writeln('<style type="text/css">'),ka.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(ja)+'";\nsrc: url("'+mxUtils.htmlEntities(wa)+'");\n}'),ka.writeln("</style>"))}};if(Editor.replaceSvgDataUris){var ia=g.drawBackgroundImage;g.drawBackgroundImage=function(ka){ia.apply(this,arguments);null!=ka.node&&(EditorUi.embedSvgImages(ka.node),m.disableSvgLinks(ka.node,function(pa){pa.setAttribute("href","javascript:void(0)")}))}}var la=g.addGraphFragment;
g.addGraphFragment=function(ka,pa,Ba,sa,ja,wa){la.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:ja.classList.add("geDisableMathJax");if(this.graph.shadowVisible)for(var va=ja.getElementsByTagName("svg"),ya=0;ya<va.length;ya++)H.addSvgShadow(va[ya])};d.grid&&(g.gridSize=H.gridSize,g.gridSteps=H.view.gridSteps,g.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:H.view.gridColor);g.isCellVisible=d.selection?function(ka){return H.isCellSelected(ka)&&
-H.isCellVisible(ka)}:function(ka){return H.isCellVisible(ka)};g.open(null,null,t,!0,B,X,d.selection?H.getSelectionCells():null)}else{P=H.background;if(null==P||""==P||P==mxConstants.NONE)P="#ffffff";g.backgroundColor=P;g.autoOrigin=Z;d.grid&&(g.gridSize=H.gridSize,g.gridSteps=H.view.gridSteps,g.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:H.view.gridColor);g.isCellVisible=d.selection?function(ka){return H.isCellSelected(ka)&&H.isCellVisible(ka)}:function(ka){return H.isCellVisible(ka)};
-g.appendGraph(H,ea,V,Y,t,!0,B,X,d.selection?H.getSelectionCells():null);t=H.getCustomFonts();if(null!=g.wnd)for(X=0;X<t.length;X++)V=t[X].name,Y=t[X].url,Graph.isCssFontUrl(Y)?g.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Y)+'" charset="UTF-8" type="text/css">'):(g.wnd.document.writeln('<style type="text/css">'),g.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(V)+'";\nsrc: url("'+mxUtils.htmlEntities(Y)+'");\n}'),g.wnd.document.writeln("</style>"))}K&&
-(H.useCssTransforms=K,H.currentTranslate=Q,H.currentScale=S,H.view.translate=U,H.view.scale=N);return g}),C=d.pagesFrom,D=d.pagesTo,J=!d.allPages;q=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(this,d);else{J&&(J=d.selection||C==v&&D==v);if(!J&&null!=this.pages&&this.pages.length){J=0;v=this.pages.length-1;d.allPages||(J=parseInt(C)-1,v=parseInt(D)-1);for(var F=J;F<=v;F++){var T=this.pages[F];C=T==this.currentPage?m:null;if(null==C){C=this.createTemporaryGraph(m.stylesheet);C.shapeForegroundColor=
-m.shapeForegroundColor;C.shapeBackgroundColor=m.shapeBackgroundColor;D=!0;var W=J=!1,p=null,u=null;null==T.viewState&&null==T.root&&this.updatePageRoot(T);null!=T.viewState&&(D=T.viewState.pageVisible,J=T.viewState.mathEnabled,W=T.viewState.shadowVisible,p=T.viewState.background,u=T.viewState.backgroundImage,C.pageFormat=T.viewState.pageFormat,C.gridSize=T.viewState.gridSize,C.hiddenTags=T.viewState.hiddenTags||[]);null!=u&&null!=u.originalSrc&&(u=this.createImageForPageLink(u.originalSrc,T));C.background=
-p;C.backgroundImage=null!=u?new mxImage(u.src,u.width,u.height,u.x,u.y):null;C.pageVisible=D;C.mathEnabled=J;C.shadowVisible=W;var G=C.getGraphBounds;C.getGraphBounds=function(){var H=G.apply(this,arguments),g=this.backgroundImage;if(null!=g&&null!=g.width&&null!=g.height){var t=this.view.translate,B=this.view.scale;H=mxRectangle.fromRectangle(H);H.add(new mxRectangle((t.x+g.x)*B,(t.y+g.y)*B,g.width*B,g.height*B))}return H};var I=C.getGlobalVariable;C.getGlobalVariable=function(H){return"page"==H?
-T.getName():"pagenumber"==H?F+1:"pagecount"==H?null!=this.pages?this.pages.length:1:I.apply(this,arguments)};document.body.appendChild(C.container);this.updatePageRoot(T);C.model.setRoot(T.root)}q=A(C,q,F!=v,T.getId());C!=m&&C.container.parentNode.removeChild(C.container)}}else q=A(m);if(null==q||null==q.wnd)this.handleError({message:mxResources.get("errorUpdatingPreview")});else{q.mathEnabled&&(A=q.wnd.document,c||(q.wnd.IMMEDIATE_PRINT=!0),A.writeln('<script type="text/javascript" src="js/math-print.js">\x3c/script>'));
+H.isCellVisible(ka)}:function(ka){return H.isCellVisible(ka)};g.open(null,null,t,!0,C,X,d.selection?H.getSelectionCells():null)}else{P=H.background;if(null==P||""==P||P==mxConstants.NONE)P="#ffffff";g.backgroundColor=P;g.autoOrigin=Z;d.grid&&(g.gridSize=H.gridSize,g.gridSteps=H.view.gridSteps,g.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:H.view.gridColor);g.isCellVisible=d.selection?function(ka){return H.isCellSelected(ka)&&H.isCellVisible(ka)}:function(ka){return H.isCellVisible(ka)};
+g.appendGraph(H,ea,V,Y,t,!0,C,X,d.selection?H.getSelectionCells():null);t=H.getCustomFonts();if(null!=g.wnd)for(X=0;X<t.length;X++)V=t[X].name,Y=t[X].url,Graph.isCssFontUrl(Y)?g.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Y)+'" charset="UTF-8" type="text/css">'):(g.wnd.document.writeln('<style type="text/css">'),g.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(V)+'";\nsrc: url("'+mxUtils.htmlEntities(Y)+'");\n}'),g.wnd.document.writeln("</style>"))}K&&
+(H.useCssTransforms=K,H.currentTranslate=Q,H.currentScale=S,H.view.translate=U,H.view.scale=N);return g}),B=d.pagesFrom,D=d.pagesTo,J=!d.allPages;q=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(this,d);else{J&&(J=d.selection||B==v&&D==v);if(!J&&null!=this.pages&&this.pages.length){J=0;v=this.pages.length-1;d.allPages||(J=parseInt(B)-1,v=parseInt(D)-1);for(var F=J;F<=v;F++){var T=this.pages[F];B=T==this.currentPage?m:null;if(null==B){B=this.createTemporaryGraph(m.stylesheet);B.shapeForegroundColor=
+m.shapeForegroundColor;B.shapeBackgroundColor=m.shapeBackgroundColor;D=!0;var W=J=!1,p=null,u=null;null==T.viewState&&null==T.root&&this.updatePageRoot(T);null!=T.viewState&&(D=T.viewState.pageVisible,J=T.viewState.mathEnabled,W=T.viewState.shadowVisible,p=T.viewState.background,u=T.viewState.backgroundImage,B.pageFormat=T.viewState.pageFormat,B.gridSize=T.viewState.gridSize,B.hiddenTags=T.viewState.hiddenTags||[]);null!=u&&null!=u.originalSrc&&(u=this.createImageForPageLink(u.originalSrc,T));B.background=
+p;B.backgroundImage=null!=u?new mxImage(u.src,u.width,u.height,u.x,u.y):null;B.pageVisible=D;B.mathEnabled=J;B.shadowVisible=W;var G=B.getGraphBounds;B.getGraphBounds=function(){var H=G.apply(this,arguments),g=this.backgroundImage;if(null!=g&&null!=g.width&&null!=g.height){var t=this.view.translate,C=this.view.scale;H=mxRectangle.fromRectangle(H);H.add(new mxRectangle((t.x+g.x)*C,(t.y+g.y)*C,g.width*C,g.height*C))}return H};var I=B.getGlobalVariable;B.getGlobalVariable=function(H){return"page"==H?
+T.getName():"pagenumber"==H?F+1:"pagecount"==H?null!=this.pages?this.pages.length:1:I.apply(this,arguments)};document.body.appendChild(B.container);this.updatePageRoot(T);B.model.setRoot(T.root)}q=A(B,q,F!=v,T.getId());B!=m&&B.container.parentNode.removeChild(B.container)}}else q=A(m);if(null==q||null==q.wnd)this.handleError({message:mxResources.get("errorUpdatingPreview")});else{q.mathEnabled&&(A=q.wnd.document,c||(q.wnd.IMMEDIATE_PRINT=!0),A.writeln('<script type="text/javascript" src="js/math-print.js">\x3c/script>'));
q.closeDocument();if(Editor.expandPatternsForPrint&&null!=q.wnd)for(A=q.wnd.document.getElementsByTagName("svg"),F=0;F<A.length;F++)Editor.expandSvgPatterns(A[F]);Graph.rewritePageLinks(q.wnd.document,!0);q.mathEnabled||c||PrintDialog.printPreview(q)}return q}};EditorUi.prototype.addFileDropHandler=function(c){if(Graph.fileSupport)for(var d=null,k=0;k<c.length;k++)mxEvent.addListener(c[k],"dragleave",function(m){null!=d&&(d.parentNode.removeChild(d),d=null);m.stopPropagation();m.preventDefault()}),
mxEvent.addListener(c[k],"dragover",mxUtils.bind(this,function(m){(this.editor.graph.isEnabled()||"1"!=urlParams.embed)&&null==d&&(d=this.highlightElement());m.stopPropagation();m.preventDefault()})),mxEvent.addListener(c[k],"drop",mxUtils.bind(this,function(m){null!=d&&(d.parentNode.removeChild(d),d=null);if(this.editor.graph.isEnabled()||"1"!=urlParams.embed)if(0<m.dataTransfer.files.length)this.hideDialog(),"1"==urlParams.embed?this.importFiles(m.dataTransfer.files,0,0,this.maxImageSize,null,null,
null,null,!mxEvent.isControlDown(m)&&!mxEvent.isShiftDown(m)):this.openFiles(m.dataTransfer.files,!0);else{var q=this.extractGraphModelFromEvent(m);if(null==q){var v=null!=m.dataTransfer?m.dataTransfer:m.clipboardData;null!=v&&(10==document.documentMode||11==document.documentMode?q=v.getData("Text"):(q=null,q=0<=mxUtils.indexOf(v.types,"text/uri-list")?m.dataTransfer.getData("text/uri-list"):0<=mxUtils.indexOf(v.types,"text/html")?v.getData("text/html"):null,null!=q&&0<q.length?(v=document.createElement("div"),
@@ -13699,19 +13705,19 @@ v.innerHTML=Graph.sanitizeHtml(q),v=v.getElementsByTagName("img"),0<v.length&&(q
function(A){200<=A.getStatus()&&299>=A.getStatus()?this.openLocalFile(A.getText(),null,!0):this.showError(mxResources.get("error"),413==A.getStatus()?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))})):/^https?:\/\//.test(q)&&(null==this.getCurrentFile()?window.location.hash="#U"+encodeURIComponent(q):window.geOpenWindow((mxClient.IS_CHROMEAPP?EditorUi.drawHost+"/":"https://"+location.host+"/")+window.location.search+"#U"+encodeURIComponent(q)))))}else this.openLocalFile(q,null,
!0)}m.stopPropagation();m.preventDefault()}))};EditorUi.prototype.highlightElement=function(c){var d=0,k=0;if(null==c){var m=document.body;var q=document.documentElement;var v=(m.clientWidth||q.clientWidth)-3;m=Math.max(m.clientHeight||0,q.clientHeight)-3}else m=c.getBoundingClientRect(),d=m.top,k=m.left,v=m.width,m=m.height;q=document.createElement("div");q.style.zIndex=mxPopupMenu.prototype.zIndex+2;q.style.border="3px dotted rgb(254, 137, 12)";q.style.pointerEvents="none";q.style.position="absolute";
q.style.top=d+"px";q.style.left=k+"px";q.style.width=Math.max(0,v-3)+"px";q.style.height=Math.max(0,m-3)+"px";null!=c&&c.parentNode==this.editor.graph.container?this.editor.graph.container.appendChild(q):document.body.appendChild(q);return q};EditorUi.prototype.stringToCells=function(c){c=mxUtils.parseXml(c);var d=this.editor.extractGraphModel(c.documentElement);c=[];if(null!=d){var k=new mxCodec(d.ownerDocument),m=new mxGraphModel;k.decode(d,m);d=m.getChildAt(m.getRoot(),0);for(k=0;k<m.getChildCount(d);k++)c.push(m.getChildAt(d,
-k))}return c};EditorUi.prototype.openFileHandle=function(c,d,k,m,q,v,A){if(null!=d&&0<d.length){if(!Editor.useCanvasForExport&&/(\.png)$/i.test(d)||/(\.pdf)$/i.test(d))d=d.substring(0,d.length-4),/(\.drawio)$/i.test(d)||(d+=".drawio");var C=mxUtils.bind(this,function(J){d=0<=d.lastIndexOf(".")?d.substring(0,d.lastIndexOf("."))+".drawio":d+".drawio";if("<mxlibrary"==J.substring(0,10)){null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,m);
-try{this.loadLibrary(new LocalLibrary(this,J,d)),this.showSidebar()}catch(F){this.handleError(F,mxResources.get("errorLoadingFile"))}}else this.openLocalFile(J,d,m,null,null,null,A)});if(EditorUi.isVisioFilename(d))this.importVisio(k,mxUtils.bind(this,function(J){this.spinner.stop();C(J)}));else if(/(\.*<graphml )/.test(c))this.importGraphML(c,mxUtils.bind(this,function(J){this.spinner.stop();C(J)}));else if(Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,d))this.isOffline()?
-(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):this.parseFile(k,mxUtils.bind(this,function(J){4==J.readyState&&(this.spinner.stop(),200<=J.status&&299>=J.status?C(J.responseText):this.handleError({message:mxResources.get(413==J.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))}));else if(this.isLucidChartData(c))/(\.json)$/i.test(d)&&(d=d.substring(0,d.length-5)+".drawio"),this.convertLucidChart(c,mxUtils.bind(this,
+k))}return c};EditorUi.prototype.openFileHandle=function(c,d,k,m,q,v,A){if(null!=d&&0<d.length){if(!Editor.useCanvasForExport&&/(\.png)$/i.test(d)||/(\.pdf)$/i.test(d))d=d.substring(0,d.length-4),/(\.drawio)$/i.test(d)||(d+=".drawio");var B=mxUtils.bind(this,function(J){d=0<=d.lastIndexOf(".")?d.substring(0,d.lastIndexOf("."))+".drawio":d+".drawio";if("<mxlibrary"==J.substring(0,10)){null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,m);
+try{this.loadLibrary(new LocalLibrary(this,J,d)),this.showSidebar()}catch(F){this.handleError(F,mxResources.get("errorLoadingFile"))}}else this.openLocalFile(J,d,m,null,null,null,A)});if(EditorUi.isVisioFilename(d))this.importVisio(k,mxUtils.bind(this,function(J){this.spinner.stop();B(J)}));else if(/(\.*<graphml )/.test(c))this.importGraphML(c,mxUtils.bind(this,function(J){this.spinner.stop();B(J)}));else if(Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,d))this.isOffline()?
+(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):this.parseFile(k,mxUtils.bind(this,function(J){4==J.readyState&&(this.spinner.stop(),200<=J.status&&299>=J.status?B(J.responseText):this.handleError({message:mxResources.get(413==J.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))}));else if(this.isLucidChartData(c))/(\.json)$/i.test(d)&&(d=d.substring(0,d.length-5)+".drawio"),this.convertLucidChart(c,mxUtils.bind(this,
function(J){this.spinner.stop();this.openLocalFile(J,d,m,null,null,null,A)}),mxUtils.bind(this,function(J){this.spinner.stop();this.handleError(J)}));else if("<mxlibrary"==c.substring(0,10)){this.spinner.stop();null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,m);try{this.loadLibrary(new LocalLibrary(this,c,k.name)),this.showSidebar()}catch(J){this.handleError(J,mxResources.get("errorLoadingFile"))}}else if(0==c.indexOf("PK"))this.importZipFile(k,
-mxUtils.bind(this,function(J){this.spinner.stop();C(J)}),mxUtils.bind(this,function(){this.spinner.stop();this.openLocalFile(c,d,m,null,null,null,A)}));else{if("image/png"==k.type.substring(0,9))c=this.extractGraphModelFromPng(c);else if("application/pdf"==k.type){var D=Editor.extractGraphModelFromPdf(c);null!=D&&(q=null,m=!0,c=D)}this.spinner.stop();this.openLocalFile(c,d,m,q,null!=q?k:null,v,A)}}};EditorUi.prototype.openFiles=function(c,d,k){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var m=
-0;m<c.length;m++)mxUtils.bind(this,function(q){var v=new FileReader;v.onload=mxUtils.bind(this,function(A){try{this.openFileHandle(A.target.result,q.name,q,d,null,null,k)}catch(C){this.handleError(C)}});v.onerror=mxUtils.bind(this,function(A){this.spinner.stop();this.handleError(A);window.openFile=null});"image"!==q.type.substring(0,5)&&"application/pdf"!==q.type||"image/svg"===q.type.substring(0,9)?v.readAsText(q):v.readAsDataURL(q)})(c[m])};EditorUi.prototype.openLocalFile=function(c,d,k,m,q,v,
-A){var C=this.getCurrentFile(),D=mxUtils.bind(this,function(){window.openFile=null;if(null==d&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var F=mxUtils.parseXml(c);null!=F&&(this.editor.setGraphXml(F.documentElement),this.editor.graph.selectAll())}else this.fileLoaded(new LocalFile(this,c,d||this.defaultFilename,k,m,q,v));null!=A&&A()});if(null!=c&&0<c.length)if(null==C||!C.isModified()&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=m||this.isDiagramEmpty()))D();else if((mxClient.IS_CHROMEAPP||
-EditorUi.isElectronApp)&&null!=C&&C.isModified())this.confirm(mxResources.get("allChangesLost"),null,D,mxResources.get("cancel"),mxResources.get("discardChanges"));else{window.openFile=new OpenFile(function(){window.openFile=null});window.openFile.setData(c,d,k);var J=mxUtils.bind(this,function(){null!=C&&C.isModified()?this.confirm(mxResources.get("allChangesLost"),null,D,mxResources.get("cancel"),mxResources.get("discardChanges")):D()});"1"==urlParams.openInSameWin||navigator.standalone?J():this.showDialog((new PopupDialog(this,
-this.getUrl(),null,J)).container,340,140,!0,!0)}else throw Error(mxResources.get("notADiagramFile"));};EditorUi.prototype.getBasenames=function(){var c={};if(null!=this.pages)for(var d=0;d<this.pages.length;d++)this.updatePageRoot(this.pages[d]),this.addBasenamesForCell(this.pages[d].root,c);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),c);d=[];for(var k in c)d.push(k);return d};EditorUi.prototype.addBasenamesForCell=function(c,d){function k(A){if(null!=A){var C=A.lastIndexOf(".");
-0<C&&(A=A.substring(C+1,A.length));null==d[A]&&(d[A]=!0)}}var m=this.editor.graph,q=m.getCellStyle(c);k(mxStencilRegistry.getBasenameForStencil(q[mxConstants.STYLE_SHAPE]));m.model.isEdge(c)&&(k(mxMarker.getPackageForType(q[mxConstants.STYLE_STARTARROW])),k(mxMarker.getPackageForType(q[mxConstants.STYLE_ENDARROW])));q=m.model.getChildCount(c);for(var v=0;v<q;v++)this.addBasenamesForCell(m.model.getChildAt(c,v),d)};EditorUi.prototype.setGraphEnabled=function(c){this.diagramContainer.style.visibility=
+mxUtils.bind(this,function(J){this.spinner.stop();B(J)}),mxUtils.bind(this,function(){this.spinner.stop();this.openLocalFile(c,d,m,null,null,null,A)}));else{if("image/png"==k.type.substring(0,9))c=this.extractGraphModelFromPng(c);else if("application/pdf"==k.type){var D=Editor.extractGraphModelFromPdf(c);null!=D&&(q=null,m=!0,c=D)}this.spinner.stop();this.openLocalFile(c,d,m,q,null!=q?k:null,v,A)}}};EditorUi.prototype.openFiles=function(c,d,k){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var m=
+0;m<c.length;m++)mxUtils.bind(this,function(q){var v=new FileReader;v.onload=mxUtils.bind(this,function(A){try{this.openFileHandle(A.target.result,q.name,q,d,null,null,k)}catch(B){this.handleError(B)}});v.onerror=mxUtils.bind(this,function(A){this.spinner.stop();this.handleError(A);window.openFile=null});"image"!==q.type.substring(0,5)&&"application/pdf"!==q.type||"image/svg"===q.type.substring(0,9)?v.readAsText(q):v.readAsDataURL(q)})(c[m])};EditorUi.prototype.openLocalFile=function(c,d,k,m,q,v,
+A){var B=this.getCurrentFile(),D=mxUtils.bind(this,function(){window.openFile=null;if(null==d&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var F=mxUtils.parseXml(c);null!=F&&(this.editor.setGraphXml(F.documentElement),this.editor.graph.selectAll())}else this.fileLoaded(new LocalFile(this,c,d||this.defaultFilename,k,m,q,v));null!=A&&A()});if(null!=c&&0<c.length)if(null==B||!B.isModified()&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=m||this.isDiagramEmpty()))D();else if((mxClient.IS_CHROMEAPP||
+EditorUi.isElectronApp)&&null!=B&&B.isModified())this.confirm(mxResources.get("allChangesLost"),null,D,mxResources.get("cancel"),mxResources.get("discardChanges"));else{window.openFile=new OpenFile(function(){window.openFile=null});window.openFile.setData(c,d,k);var J=mxUtils.bind(this,function(){null!=B&&B.isModified()?this.confirm(mxResources.get("allChangesLost"),null,D,mxResources.get("cancel"),mxResources.get("discardChanges")):D()});"1"==urlParams.openInSameWin||navigator.standalone?J():this.showDialog((new PopupDialog(this,
+this.getUrl(),null,J)).container,340,140,!0,!0)}else throw Error(mxResources.get("notADiagramFile"));};EditorUi.prototype.getBasenames=function(){var c={};if(null!=this.pages)for(var d=0;d<this.pages.length;d++)this.updatePageRoot(this.pages[d]),this.addBasenamesForCell(this.pages[d].root,c);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),c);d=[];for(var k in c)d.push(k);return d};EditorUi.prototype.addBasenamesForCell=function(c,d){function k(A){if(null!=A){var B=A.lastIndexOf(".");
+0<B&&(A=A.substring(B+1,A.length));null==d[A]&&(d[A]=!0)}}var m=this.editor.graph,q=m.getCellStyle(c);k(mxStencilRegistry.getBasenameForStencil(q[mxConstants.STYLE_SHAPE]));m.model.isEdge(c)&&(k(mxMarker.getPackageForType(q[mxConstants.STYLE_STARTARROW])),k(mxMarker.getPackageForType(q[mxConstants.STYLE_ENDARROW])));q=m.model.getChildCount(c);for(var v=0;v<q;v++)this.addBasenamesForCell(m.model.getChildAt(c,v),d)};EditorUi.prototype.setGraphEnabled=function(c){this.diagramContainer.style.visibility=
c?"":"hidden";this.formatContainer.style.visibility=this.diagramContainer.style.visibility;this.sidebarContainer.style.display=c?"":"none";this.hsplit.style.display=this.sidebarContainer.style.display;this.editor.graph.setEnabled(c);null!=this.tabContainer&&(this.tabContainer.style.visibility=this.diagramContainer.style.visibility);c||this.hideWindows();this.editor.graph.sizeDidChange();this.resetScrollbars()};EditorUi.prototype.initializeEmbedMode=function(){this.setGraphEnabled(!1);if((this.embedMessageSource||
window.opener||window.parent)!=window&&("1"!=urlParams.spin||this.spinner.spin(document.body,mxResources.get("loading")))){var c=!1;this.installMessageHandler(mxUtils.bind(this,function(d,k,m,q){c||(c=!0,this.spinner.stop(),this.addEmbedButtons(),this.setGraphEnabled(!0));if(null==d||0==d.length)d=this.emptyDiagramXml;this.setCurrentFile(new EmbedFile(this,d,{}));this.mode=App.MODE_EMBED;this.setFileData(d);Editor.fitDiagramOnLoad&&this.initialFitDiagram();if(q)try{var v=this.editor.graph;v.setGridEnabled(!1);
-v.pageVisible=!1;var A=v.model.cells,C;for(C in A){var D=A[C];null!=D&&null!=D.style&&(D.style+=";sketch=1;"+(-1==D.style.indexOf("fontFamily=")||-1<D.style.indexOf("fontFamily=Helvetica;")?"fontFamily=Architects Daughter;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter;":""))}}catch(J){console.log(J)}this.editor.isChromelessView()?this.editor.graph.isLightboxView()&&this.lightboxFit():this.showLayersDialog();this.chromelessResize&&this.chromelessResize();this.editor.undoManager.clear();
+v.pageVisible=!1;var A=v.model.cells,B;for(B in A){var D=A[B];null!=D&&null!=D.style&&(D.style+=";sketch=1;"+(-1==D.style.indexOf("fontFamily=")||-1<D.style.indexOf("fontFamily=Helvetica;")?"fontFamily=Architects Daughter;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter;":""))}}catch(J){console.log(J)}this.editor.isChromelessView()?this.editor.graph.isLightboxView()&&this.lightboxFit():this.showLayersDialog();this.chromelessResize&&this.chromelessResize();this.editor.undoManager.clear();
this.editor.modified=null!=m?m:!1;this.updateUi();window.self===window.top||this.noAutoFocus||window.focus();null!=this.format&&this.format.refresh()}))}};EditorUi.prototype.showLayersDialog=function(){1<this.editor.graph.getModel().getChildCount(this.editor.graph.getModel().getRoot())&&(null==this.actions.layersWindow?this.actions.get("layers").funct():this.actions.layersWindow.window.setVisible(!0))};EditorUi.prototype.getPublicUrl=function(c,d){null!=c?this.spinner.spin(document.body,mxResources.get("loading"))&&
c.getPublicUrl(mxUtils.bind(this,function(k){this.spinner.stop();d(k)})):d(null)};EditorUi.prototype.createLoadMessage=function(c){var d=this.editor.graph,k=d.getGraphBounds(),m=d.view.scale,q=d.view.translate;return{event:c,pageVisible:d.pageVisible,translate:q,bounds:k,currentPage:this.getSelectedPageIndex(),scale:m,page:d.view.getBackgroundPageBounds(),modelBounds:{x:k.x/m-q.x,y:k.y/m-q.y,width:k.width/m,height:k.height/m},containerSize:{width:d.container.clientWidth,height:d.container.clientHeight,
offsetWidth:d.container.offsetWidth,offsetHeight:d.container.offsetHeight}}};EditorUi.prototype.sendEmbeddedSvgExport=function(c){try{var d=this.editor.graph;d.isEditing()&&d.stopEditing(!d.isInvokesStopCellEditing());var k=this.embedMessageSource||window.opener||window.parent;if(this.editor.modified){var m=d.background;if(null==m||m==mxConstants.NONE)m=this.embedExportBackground;this.getEmbeddedSvg(this.getFileData(!0,null,null,null,null,null,null,null,null,!1),d,null,!0,mxUtils.bind(this,function(q){k.postMessage(JSON.stringify({event:"export",
@@ -13719,24 +13725,24 @@ point:this.embedExitPoint,exit:null!=c?!c:!0,data:Editor.createSvgDataUri(q)}),"
this.handleError(q)}};EditorUi.prototype.installMessageHandler=function(c){var d=null,k=!1,m=!1,q=null,v=null,A=mxUtils.bind(this,function(J,F){this.editor.modified&&"0"!=urlParams.modified?null!=urlParams.modified&&this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(urlParams.modified)))})):this.clearStatus()});this.editor.graph.model.addListener(mxEvent.CHANGE,A);mxEvent.addListener(window,"message",mxUtils.bind(this,function(J){if(J.source==
(this.embedMessageSource||window.opener||window.parent)){var F=J.data,T=null,W=mxUtils.bind(this,function(fa){if(null!=fa&&"function"===typeof fa.charAt&&"<"!=fa.charAt(0))try{Editor.isPngDataUrl(fa)?fa=Editor.extractGraphModelFromPng(fa):"data:image/svg+xml;base64,"==fa.substring(0,26)?fa=atob(fa.substring(26)):"data:image/svg+xml;utf8,"==fa.substring(0,24)&&(fa=fa.substring(24)),null!=fa&&(""==fa.trim()?fa=null:"%"==fa.charAt(0)?fa=decodeURIComponent(fa):"<"!=fa.charAt(0)&&(fa=Graph.decompress(fa)))}catch(ua){}return fa});
if("json"==urlParams.proto){var p=!1;try{F=JSON.parse(F),EditorUi.debug("EditorUi.installMessageHandler",[this],"evt",[J],"data",[F])}catch(fa){F=null}try{var u=F;if(null==F)return;if("dialog"==F.action){this.showError(null!=F.titleKey?mxResources.get(F.titleKey):F.title,null!=F.messageKey?mxResources.get(F.messageKey):mxUtils.htmlEntities(F.message),null!=F.buttonKey?mxResources.get(F.buttonKey):F.button);null!=F.modified&&(this.editor.modified=F.modified);return}if("layout"==F.action){this.executeLayouts(this.editor.graph.createLayouts(F.layouts));
-return}if("prompt"==F.action){this.spinner.stop();var G=new FilenameDialog(this,F.defaultValue||"",null!=F.okKey?mxResources.get(F.okKey):F.ok,function(fa){null!=fa?C.postMessage(JSON.stringify({event:"prompt",value:fa,message:F}),"*"):C.postMessage(JSON.stringify({event:"prompt-cancel",message:F}),"*")},null!=F.titleKey?mxResources.get(F.titleKey):F.title,null,null,null,null,function(){C.postMessage(JSON.stringify({event:"prompt-cancel",message:F}),"*")});this.showDialog(G.container,300,80,!0,!1);
-G.init();return}if("draft"==F.action){var I=W(F.xml);this.spinner.stop();G=new DraftDialog(this,mxResources.get("draftFound",[F.name||this.defaultFilename]),I,mxUtils.bind(this,function(){this.hideDialog();C.postMessage(JSON.stringify({event:"draft",result:"edit",message:F}),"*")}),mxUtils.bind(this,function(){this.hideDialog();C.postMessage(JSON.stringify({event:"draft",result:"discard",message:F}),"*")}),F.editKey?mxResources.get(F.editKey):null,F.discardKey?mxResources.get(F.discardKey):null,F.ignore?
-mxUtils.bind(this,function(){this.hideDialog();C.postMessage(JSON.stringify({event:"draft",result:"ignore",message:F}),"*")}):null);this.showDialog(G.container,640,480,!0,!1,mxUtils.bind(this,function(fa){fa&&this.actions.get("exit").funct()}));try{G.init()}catch(fa){C.postMessage(JSON.stringify({event:"draft",error:fa.toString(),message:F}),"*")}return}if("template"==F.action){this.spinner.stop();var H=1==F.enableRecent,g=1==F.enableSearch,t=1==F.enableCustomTemp;G=new NewDialog(this,!1,F.templatesOnly?
-!1:null!=F.callback,mxUtils.bind(this,function(fa,ua,Da,ra){fa=fa||this.emptyDiagramXml;null!=F.callback?C.postMessage(JSON.stringify({event:"template",xml:fa,blank:fa==this.emptyDiagramXml,name:ua,tempUrl:Da,libs:ra,builtIn:!0,message:F}),"*"):(c(fa,J,fa!=this.emptyDiagramXml,F.toSketch),this.editor.modified||this.clearStatus())}),null,null,null,null,null,null,null,H?mxUtils.bind(this,function(fa){this.remoteInvoke("getRecentDiagrams",[null],null,fa,function(){fa(null,"Network Error!")})}):null,
-g?mxUtils.bind(this,function(fa,ua){this.remoteInvoke("searchDiagrams",[fa,null],null,ua,function(){ua(null,"Network Error!")})}):null,mxUtils.bind(this,function(fa,ua,Da){C.postMessage(JSON.stringify({event:"template",docUrl:fa,info:ua,name:Da}),"*")}),null,null,t?mxUtils.bind(this,function(fa){this.remoteInvoke("getCustomTemplates",null,null,fa,function(){fa({},0)})}):null,1==F.withoutType,null,F.templatesOnly);this.showDialog(G.container,620,460,!0,!1,mxUtils.bind(this,function(fa){null!=this.sidebar&&
-this.sidebar.hideTooltip();fa&&!F.noExitOnCancel&&this.actions.get("exit").funct()}));G.init();return}if("textContent"==F.action){var B=this.getDiagramTextContent();C.postMessage(JSON.stringify({event:"textContent",data:B,message:F}),"*");return}if("status"==F.action){this.updateStatus(mxUtils.bind(this,function(){null!=F.messageKey?this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(F.messageKey))):null!=F.message&&this.editor.setStatus(mxUtils.htmlEntities(F.message))}));null!=F.modified&&
+return}if("prompt"==F.action){this.spinner.stop();var G=new FilenameDialog(this,F.defaultValue||"",null!=F.okKey?mxResources.get(F.okKey):F.ok,function(fa){null!=fa?B.postMessage(JSON.stringify({event:"prompt",value:fa,message:F}),"*"):B.postMessage(JSON.stringify({event:"prompt-cancel",message:F}),"*")},null!=F.titleKey?mxResources.get(F.titleKey):F.title,null,null,null,null,function(){B.postMessage(JSON.stringify({event:"prompt-cancel",message:F}),"*")});this.showDialog(G.container,300,80,!0,!1);
+G.init();return}if("draft"==F.action){var I=W(F.xml);this.spinner.stop();G=new DraftDialog(this,mxResources.get("draftFound",[F.name||this.defaultFilename]),I,mxUtils.bind(this,function(){this.hideDialog();B.postMessage(JSON.stringify({event:"draft",result:"edit",message:F}),"*")}),mxUtils.bind(this,function(){this.hideDialog();B.postMessage(JSON.stringify({event:"draft",result:"discard",message:F}),"*")}),F.editKey?mxResources.get(F.editKey):null,F.discardKey?mxResources.get(F.discardKey):null,F.ignore?
+mxUtils.bind(this,function(){this.hideDialog();B.postMessage(JSON.stringify({event:"draft",result:"ignore",message:F}),"*")}):null);this.showDialog(G.container,640,480,!0,!1,mxUtils.bind(this,function(fa){fa&&this.actions.get("exit").funct()}));try{G.init()}catch(fa){B.postMessage(JSON.stringify({event:"draft",error:fa.toString(),message:F}),"*")}return}if("template"==F.action){this.spinner.stop();var H=1==F.enableRecent,g=1==F.enableSearch,t=1==F.enableCustomTemp;G=new NewDialog(this,!1,F.templatesOnly?
+!1:null!=F.callback,mxUtils.bind(this,function(fa,ua,Da,ra){fa=fa||this.emptyDiagramXml;null!=F.callback?B.postMessage(JSON.stringify({event:"template",xml:fa,blank:fa==this.emptyDiagramXml,name:ua,tempUrl:Da,libs:ra,builtIn:!0,message:F}),"*"):(c(fa,J,fa!=this.emptyDiagramXml,F.toSketch),this.editor.modified||this.clearStatus())}),null,null,null,null,null,null,null,H?mxUtils.bind(this,function(fa){this.remoteInvoke("getRecentDiagrams",[null],null,fa,function(){fa(null,"Network Error!")})}):null,
+g?mxUtils.bind(this,function(fa,ua){this.remoteInvoke("searchDiagrams",[fa,null],null,ua,function(){ua(null,"Network Error!")})}):null,mxUtils.bind(this,function(fa,ua,Da){B.postMessage(JSON.stringify({event:"template",docUrl:fa,info:ua,name:Da}),"*")}),null,null,t?mxUtils.bind(this,function(fa){this.remoteInvoke("getCustomTemplates",null,null,fa,function(){fa({},0)})}):null,1==F.withoutType,null,F.templatesOnly);this.showDialog(G.container,620,460,!0,!1,mxUtils.bind(this,function(fa){null!=this.sidebar&&
+this.sidebar.hideTooltip();fa&&!F.noExitOnCancel&&this.actions.get("exit").funct()}));G.init();return}if("textContent"==F.action){var C=this.getDiagramTextContent();B.postMessage(JSON.stringify({event:"textContent",data:C,message:F}),"*");return}if("status"==F.action){this.updateStatus(mxUtils.bind(this,function(){null!=F.messageKey?this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(F.messageKey))):null!=F.message&&this.editor.setStatus(mxUtils.htmlEntities(F.message))}));null!=F.modified&&
(this.editor.modified=F.modified);return}if("spinner"==F.action){var K=null!=F.messageKey?mxResources.get(F.messageKey):F.message;null==F.show||F.show?this.spinner.spin(document.body,K):this.spinner.stop();return}if("exit"==F.action){this.actions.get("exit").funct();return}if("viewport"==F.action){if(null!=F.viewport){var Q=this.editor.graph,S=Q.view.translate.x,U=Q.view.translate.y;this.embedViewport=F.viewport;Q.refresh();this.diagramContainer.scrollTop-=(U-Q.view.translate.y)*Q.view.scale;this.diagramContainer.scrollLeft-=
(S-Q.view.translate.x)*Q.view.scale;this.fireEvent(new mxEventObject("embedViewportChanged"))}return}if("invokeAction"==F.action){var N=this.actions.get(F.actionName);null!=N&&N.funct();return}if("resetEditor"==F.action){Q=this.editor.graph;Q.isEditing()&&Q.stopEditing(!1);this.hideCurrentMenu();Q.popupMenuHandler.hideMenu();Q.clearSelection();return}if("fit"==F.action){Q=this.editor.graph;var P=Q.maxFitScale;Q.maxFitScale=null!=F.maxScale?F.maxScale:1;Q.fit(null!=F.border?F.border:16,null,null,null,
-null,!0);Q.maxFitScale=P;K=this.createLoadMessage("fit");K.message=F;C.postMessage(JSON.stringify(K),"*");return}if("fullscreenChanged"==F.action){var V=null;try{var Y=this.diagramContainer.getAttribute("data-scrollState");null!=Y&&(this.diagramContainer.removeAttribute("data-scrollState"),V=JSON.parse(Y))}catch(fa){}Editor.inlineFullscreen=F.value;this.fireEvent(new mxEventObject("inlineFullscreenChanged"));null!=V&&this.restoreScrollState(V);return}if("snapshot"==F.action){this.sendEmbeddedSvgExport(!0);
+null,!0);Q.maxFitScale=P;K=this.createLoadMessage("fit");K.message=F;B.postMessage(JSON.stringify(K),"*");return}if("fullscreenChanged"==F.action){var V=null;try{var Y=this.diagramContainer.getAttribute("data-scrollState");null!=Y&&(this.diagramContainer.removeAttribute("data-scrollState"),V=JSON.parse(Y))}catch(fa){}Editor.inlineFullscreen=F.value;this.fireEvent(new mxEventObject("inlineFullscreenChanged"));null!=V&&this.restoreScrollState(V);return}if("snapshot"==F.action){this.sendEmbeddedSvgExport(!0);
return}if("export"==F.action){if("png"==F.format||"xmlpng"==F.format){if(null==F.spin&&null==F.spinKey||this.spinner.spin(document.body,null!=F.spinKey?mxResources.get(F.spinKey):F.spin)){var X=null!=F.xml?F.xml:this.getFileData(!0);this.editor.graph.setEnabled(!1);Q=this.editor.graph;var Z=mxUtils.bind(this,function(fa,ua){if(F.withSvg)F.withSvg=!1,this.getEmbeddedSvg(X,this.editor.graph,null,!0,function(ra){Z(fa,ra)},null,null,F.embedImages,this.editor.graph.background,F.scale,F.border,F.shadow,
-"auto");else{this.editor.graph.setEnabled(!0);this.spinner.stop();var Da=this.createLoadMessage("export");Da.format=F.format;Da.message=u;Da.data=fa;Da.svg=ua;Da.xml=X;C.postMessage(JSON.stringify(Da),"*")}}),aa=mxUtils.bind(this,function(fa){null==fa&&(fa=Editor.blankImage);"xmlpng"==F.format&&(fa=Editor.writeGraphModelToPng(fa,"tEXt","mxfile",encodeURIComponent(X)));Q!=this.editor.graph&&Q.container.parentNode.removeChild(Q.container);Z(fa)}),ea=F.pageId||(null!=this.pages?F.currentPage?this.currentPage.getId():
+"auto");else{this.editor.graph.setEnabled(!0);this.spinner.stop();var Da=this.createLoadMessage("export");Da.format=F.format;Da.message=u;Da.data=fa;Da.svg=ua;Da.xml=X;B.postMessage(JSON.stringify(Da),"*")}}),aa=mxUtils.bind(this,function(fa){null==fa&&(fa=Editor.blankImage);"xmlpng"==F.format&&(fa=Editor.writeGraphModelToPng(fa,"tEXt","mxfile",encodeURIComponent(X)));Q!=this.editor.graph&&Q.container.parentNode.removeChild(Q.container);Z(fa)}),ea=F.pageId||(null!=this.pages?F.currentPage?this.currentPage.getId():
this.pages[0].getId():null);if(this.editor.isExportToCanvas()){var ha=mxUtils.bind(this,function(){if(null!=this.pages&&this.currentPage.getId()!=ea){var fa=Q.getGlobalVariable;Q=this.createTemporaryGraph(Q.getStylesheet());for(var ua,Da=0;Da<this.pages.length;Da++)if(this.pages[Da].getId()==ea){ua=this.updatePageRoot(this.pages[Da]);break}null==ua&&(ua=this.currentPage);Q.getGlobalVariable=function(oa){return"page"==oa?ua.getName():"pagenumber"==oa?1:fa.apply(this,arguments)};document.body.appendChild(Q.container);
Q.model.setRoot(ua.root)}if(null!=F.layerIds){var ra=Q.model,ca=ra.getChildCells(ra.getRoot()),da={};for(Da=0;Da<F.layerIds.length;Da++)da[F.layerIds[Da]]=!0;for(Da=0;Da<ca.length;Da++)ra.setVisible(ca[Da],da[ca[Da].id]||!1)}Da=null;F.keepTheme&&(Da=Editor.isDarkMode()?"dark":"light");this.editor.exportToCanvas(mxUtils.bind(this,function(oa){aa(oa.toDataURL("image/png"))}),F.width,null,F.background,mxUtils.bind(this,function(){aa(null)}),null,null,F.scale,F.transparent,F.shadow,null,Q,F.border,null,
F.grid,Da,F.size)});null!=F.xml&&0<F.xml.length&&(k=!0,this.setFileData(X),k=!1);ha()}else(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==F.format?"1":"0")+(null!=ea?"&pageId="+ea:"")+(null!=F.layerIds&&0<F.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:F.layerIds})):"")+(null!=F.scale?"&scale="+F.scale:"")+"&base64=1&xml="+encodeURIComponent(X))).send(mxUtils.bind(this,function(fa){200<=fa.getStatus()&&299>=fa.getStatus()?Z("data:image/png;base64,"+fa.getText()):
aa(null)}),mxUtils.bind(this,function(){aa(null)}))}}else if(ha=mxUtils.bind(this,function(){var fa=this.createLoadMessage("export");fa.message=F;if("html2"==F.format||"html"==F.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length)){var ua=this.getXmlFileData();fa.xml=mxUtils.getXml(ua);fa.data=this.getFileData(null,null,!0,null,null,null,ua);fa.format=F.format}else if("html"==F.format)ua=this.editor.getGraphXml(),fa.data=this.getHtml(ua,this.editor.graph),fa.xml=mxUtils.getXml(ua),
-fa.format=F.format;else{if("xml"==F.format)fa.xml=this.getFileData(!0),fa.format=F.format,C.postMessage(JSON.stringify(fa),"*");else{mxSvgCanvas2D.prototype.foAltText=null;ua=null!=F.background?F.background:this.editor.graph.background;ua==mxConstants.NONE&&(ua=null);fa.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!1);fa.format="svg";var Da=mxUtils.bind(this,function(ca){this.editor.graph.setEnabled(!0);this.spinner.stop();fa.data=F.asText?ca:Editor.createSvgDataUri(ca);C.postMessage(JSON.stringify(fa),
+fa.format=F.format;else{if("xml"==F.format)fa.xml=this.getFileData(!0),fa.format=F.format,B.postMessage(JSON.stringify(fa),"*");else{mxSvgCanvas2D.prototype.foAltText=null;ua=null!=F.background?F.background:this.editor.graph.background;ua==mxConstants.NONE&&(ua=null);fa.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!1);fa.format="svg";var Da=mxUtils.bind(this,function(ca){this.editor.graph.setEnabled(!0);this.spinner.stop();fa.data=F.asText?ca:Editor.createSvgDataUri(ca);B.postMessage(JSON.stringify(fa),
"*")}),ra="auto";F.keepTheme&&(ra=Editor.isDarkMode()?"dark":"light");null!=F.theme&&(ra=F.theme);if("xmlsvg"==F.format){if(null==F.spin&&null==F.spinKey||this.spinner.spin(document.body,null!=F.spinKey?mxResources.get(F.spinKey):F.spin)){ra=null;if(this.isAutoDarkMode()||Editor.isDarkMode())ra="auto";null!=F.theme&&(ra=F.theme);this.getEmbeddedSvg(fa.xml,this.editor.graph,null,!0,Da,null,null,F.embedImages,ua,F.scale,F.border,F.shadow,ra)}}else if(null==F.spin&&null==F.spinKey||this.spinner.spin(document.body,
-null!=F.spinKey?mxResources.get(F.spinKey):F.spin))this.editor.graph.setEnabled(!1),ua=this.editor.graph.getSvg(ua,F.scale,F.border,null,null,null,null,null,null,this.editor.graph.shadowVisible||F.shadow,null,ra),(this.editor.graph.shadowVisible||F.shadow)&&this.editor.graph.addSvgShadow(ua),this.embedFonts(ua,mxUtils.bind(this,function(ca){F.embedImages||null==F.embedImages?this.editor.convertImages(ca,mxUtils.bind(this,function(da){Da(mxUtils.getXml(da))})):Da(mxUtils.getXml(ca))}))}return}C.postMessage(JSON.stringify(fa),
+null!=F.spinKey?mxResources.get(F.spinKey):F.spin))this.editor.graph.setEnabled(!1),ua=this.editor.graph.getSvg(ua,F.scale,F.border,null,null,null,null,null,null,this.editor.graph.shadowVisible||F.shadow,null,ra),(this.editor.graph.shadowVisible||F.shadow)&&this.editor.graph.addSvgShadow(ua),this.embedFonts(ua,mxUtils.bind(this,function(ca){F.embedImages||null==F.embedImages?this.editor.convertImages(ca,mxUtils.bind(this,function(da){Da(mxUtils.getXml(da))})):Da(mxUtils.getXml(ca))}))}return}B.postMessage(JSON.stringify(fa),
"*")}),null!=F.xml&&0<F.xml.length){if(this.editor.graph.mathEnabled){var ba=Editor.onMathJaxDone;Editor.onMathJaxDone=function(){ba.apply(this,arguments);ha()}}k=!0;this.setFileData(F.xml);k=!1;this.editor.graph.mathEnabled||ha()}else ha();return}if("load"==F.action){p=F.toSketch;m=1==F.autosave;this.embedDiffSync=null!=F.diffSync&&!1!==F.diffSync;this.embedDiffSyncPatchOnly="object"===typeof F.diffSync&&null!=F.diffSync&&1==F.diffSync.patchOnly;this.embedExportProtocol=1==F.exportProtocol;var ia=
F.sourceMetadata||null;this.hideDialog();null!=F.modified&&null==urlParams.modified&&(urlParams.modified=F.modified);null!=F.saveAndExit&&null==urlParams.saveAndExit&&(urlParams.saveAndExit=F.saveAndExit);if("1"==urlParams.saveAndExit||"1"==urlParams.publishClose)if(this.actions.get("save").shortcut=null,!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(83,!0,"saveAndExit"),"1"!=urlParams.noSaveBtn&&(this.actions.get("save").shortcut=Editor.ctrlKey+"+"+Editor.shiftKey+"+S",
this.keyHandler.bindAction(83,!0,"save",!0));null!=F.noSaveBtn&&null==urlParams.noSaveBtn&&(urlParams.noSaveBtn=F.noSaveBtn);if(null!=F.rough){var la=Editor.sketchMode;this.doSetSketchMode(F.rough);la!=Editor.sketchMode&&this.fireEvent(new mxEventObject("sketchModeChanged"))}null!=F.dark&&this.setDarkMode(F.dark);null!=F.border&&(this.embedExportBorder=F.border);null!=F.theme&&(this.embedExportTheme=F.theme);null!=F.background&&(this.embedExportBackground=F.background);null!=F.viewport&&(this.embedViewport=
@@ -13746,17 +13752,17 @@ this.editor.graph,ua=fa.maxFitScale;fa.maxFitScale=ja;fa.fit(sa,null,null,null,n
ua.getGraphBounds().width<this.minInlineWidth){var Da=ua.container.scrollTop;this.resetScrollbars();ua.container.scrollTop=Da}ua.maxFitScale=fa;ua.container.scrollTop-=Ba;ua.container.scrollLeft-=Ba;window.setTimeout(mxUtils.bind(this,function(){this.fireEvent(new mxEventObject("editInlineStart","data",[F]));ua.container.focus();null!=this.formatWindow&&null!=this.formatWindow.window&&this.formatWindow.window.isVisible()&&(this.formatWindow.window.div.style.top=ua.container.style.top);var ra=ua.getGraphBounds();
ua.container.clientWidth>ra.width+2*Ba&&(ua.container.scrollLeft=ra.x+(ra.width+Ba-ua.container.clientWidth)/2)}),10)})}null!=F.noExitBtn&&null==urlParams.noExitBtn&&(urlParams.noExitBtn=F.noExitBtn);null!=F.title&&null!=this.buttonContainer&&this.setEmbedTitle(F.title);try{F.libs&&this.sidebar.showEntries(F.libs)}catch(fa){}if(null!=F.xmlpng)F=this.extractGraphModelFromPng(F.xmlpng);else if(null!=F.descriptor){if(F=F.descriptor,"mermaid"==F.format){window.isMermaidEnabled?this.parseMermaidDiagram(F.data,
null,mxUtils.bind(this,function(fa){c(fa,J,null,p);fa=this.createLoadMessage("load");fa.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!0);fa.message=u;(this.embedMessageSource||window.opener||window.parent).postMessage(JSON.stringify(fa),"*");if(null!=ia&&null!=ia.key&&null!=ia.value){fa=this.editor.graph;var ua=fa.getModel().getRoot();if(null!=ua){fa.getModel().beginUpdate();try{fa.setAttributeForCell(ua,ia.key,ia.value)}finally{fa.getModel().endUpdate()}}}}),mxUtils.bind(this,
-function(fa){this.handleError(fa)}),null,!0):this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile"));return}}else F=F.xml}else{if("merge"==F.action){var Aa=this.getCurrentFile();null!=Aa&&(I=W(F.xml),null!=I&&""!=I&&Aa.mergeFile(new LocalFile(this,I),mxUtils.bind(this,function(){this.embedDiffSync&&(v=this.clonePages(this.pages),q=Ea());C.postMessage(JSON.stringify({event:"merge",message:F}),"*")}),function(fa){C.postMessage(JSON.stringify({event:"merge",
-message:F,error:fa}),"*")}))}else if("patch"==F.action){if(Aa=this.getCurrentFile(),null!=Aa&&null!=F.patch)try{k=!0,Aa.patch([F.patch]),this.embedDiffSync&&null!=v&&(v=this.applyPatches(v,[F.patch])),q=Ea(),k=!1,Y={event:"patch",message:F},V=this.getHashValueForPages(this.pages),Y.checksum=V,null!=F.checksum&&F.checksum!=V&&(Y.checksumMismatch=!0),C.postMessage(JSON.stringify(Y),"*")}catch(fa){k=!1,C.postMessage(JSON.stringify({event:"patch",message:F,error:fa.message||fa.toString()}),"*")}}else if("getDiff"==
-F.action){K={event:"getDiff",message:F};if(this.embedDiffSync&&null!=v){var ma=this.clonePages(this.pages);K.patch=this.diffPages(v,ma);K.checksum=this.getHashValueForPages(ma)}else K.xml=Ea();C.postMessage(JSON.stringify(K),"*")}else"resetDiff"==F.action?this.embedDiffSync&&(null!=F.xml?(I=W(F.xml),Aa=this.getCurrentFile(),null!=I&&""!=I&&null!=Aa&&Aa.mergeFile(new LocalFile(this,I),mxUtils.bind(this,function(){v=this.clonePages(this.pages);q=Ea();C.postMessage(JSON.stringify({event:"resetDiff",
-message:F,checksum:this.getHashValueForPages(this.pages)}),"*")}),function(fa){C.postMessage(JSON.stringify({event:"resetDiff",message:F,error:fa}),"*")})):(v=this.clonePages(this.pages),q=Ea(),C.postMessage(JSON.stringify({event:"resetDiff",message:F,checksum:this.getHashValueForPages(this.pages)}),"*"))):"remoteInvokeReady"==F.action?this.handleRemoteInvokeReady(C):"remoteInvoke"==F.action?this.handleRemoteInvoke(F,J.origin):"remoteInvokeResponse"==F.action?this.handleRemoteInvokeResponse(F):C.postMessage(JSON.stringify({error:"unknownMessage",
+function(fa){this.handleError(fa)}),null,!0):this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile"));return}}else F=F.xml}else{if("merge"==F.action){var Aa=this.getCurrentFile();null!=Aa&&(I=W(F.xml),null!=I&&""!=I&&Aa.mergeFile(new LocalFile(this,I),mxUtils.bind(this,function(){this.embedDiffSync&&(v=this.clonePages(this.pages),q=Ea());B.postMessage(JSON.stringify({event:"merge",message:F}),"*")}),function(fa){B.postMessage(JSON.stringify({event:"merge",
+message:F,error:fa}),"*")}))}else if("patch"==F.action){if(Aa=this.getCurrentFile(),null!=Aa&&null!=F.patch)try{k=!0,Aa.patch([F.patch]),this.embedDiffSync&&null!=v&&(v=this.applyPatches(v,[F.patch])),q=Ea(),k=!1,Y={event:"patch",message:F},V=this.getHashValueForPages(this.pages),Y.checksum=V,null!=F.checksum&&F.checksum!=V&&(Y.checksumMismatch=!0),B.postMessage(JSON.stringify(Y),"*")}catch(fa){k=!1,B.postMessage(JSON.stringify({event:"patch",message:F,error:fa.message||fa.toString()}),"*")}}else if("getDiff"==
+F.action){K={event:"getDiff",message:F};if(this.embedDiffSync&&null!=v){var ma=this.clonePages(this.pages);K.patch=this.diffPages(v,ma);K.checksum=this.getHashValueForPages(ma)}else K.xml=Ea();B.postMessage(JSON.stringify(K),"*")}else"resetDiff"==F.action?this.embedDiffSync&&(null!=F.xml?(I=W(F.xml),Aa=this.getCurrentFile(),null!=I&&""!=I&&null!=Aa&&Aa.mergeFile(new LocalFile(this,I),mxUtils.bind(this,function(){v=this.clonePages(this.pages);q=Ea();B.postMessage(JSON.stringify({event:"resetDiff",
+message:F,checksum:this.getHashValueForPages(this.pages)}),"*")}),function(fa){B.postMessage(JSON.stringify({event:"resetDiff",message:F,error:fa}),"*")})):(v=this.clonePages(this.pages),q=Ea(),B.postMessage(JSON.stringify({event:"resetDiff",message:F,checksum:this.getHashValueForPages(this.pages)}),"*"))):"remoteInvokeReady"==F.action?this.handleRemoteInvokeReady(B):"remoteInvoke"==F.action?this.handleRemoteInvoke(F,J.origin):"remoteInvokeResponse"==F.action?this.handleRemoteInvokeResponse(F):B.postMessage(JSON.stringify({error:"unknownMessage",
data:JSON.stringify(F)}),"*");return}}catch(fa){this.handleError(fa)}}var Ea=mxUtils.bind(this,function(){return"0"!=urlParams.pages||null!=this.pages&&1<this.pages.length?this.getFileData(!0):mxUtils.getXml(this.editor.getGraphXml())}),xa=mxUtils.bind(this,function(fa,ua){k=!0;try{c(fa,ua,null,p)}catch(Da){this.handleError(Da)}k=!1;null!=urlParams.modified&&this.clearStatus();q=Ea();this.embedDiffSync&&(v=this.clonePages(this.pages));m&&null==d&&(d=mxUtils.bind(this,function(Da,ra){Da=Ea();if(Da!=
q&&!k){ra=this.createLoadMessage("autosave");ra.message=u;if(this.embedDiffSync&&null!=v){var ca=this.clonePages(this.pages),da=this.diffPages(v,ca);mxUtils.isEmptyObject(da)?ra.xml=Da:(ra.patch=da,ra.checksum=this.getHashValueForPages(ca),this.embedDiffSyncPatchOnly||(ra.xml=Da));v=ca}else ra.xml=Da;(this.embedMessageSource||window.opener||window.parent).postMessage(JSON.stringify(ra),"*")}q=Da}),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));null!=T&&T();if("1"==urlParams.returnbounds||"json"==urlParams.proto)ua=
-this.createLoadMessage("load"),ua.xml=fa,this.embedDiffSync&&null!=this.pages&&(ua.checksum=this.getHashValueForPages(this.pages)),C.postMessage(JSON.stringify(ua),"*")});null!=F&&"function"===typeof F.substring&&"data:application/vnd.visio;base64,"==F.substring(0,34)?(W="0M8R4KGxGuE"==F.substring(34,45)?"raw.vsd":"raw.vsdx",this.importVisio(this.base64ToBlob(F.substring(F.indexOf(",")+1)),function(fa){xa(fa,J)},mxUtils.bind(this,function(fa){this.handleError(fa)}),W)):null!=F&&"function"===typeof F.substring&&
+this.createLoadMessage("load"),ua.xml=fa,this.embedDiffSync&&null!=this.pages&&(ua.checksum=this.getHashValueForPages(this.pages)),B.postMessage(JSON.stringify(ua),"*")});null!=F&&"function"===typeof F.substring&&"data:application/vnd.visio;base64,"==F.substring(0,34)?(W="0M8R4KGxGuE"==F.substring(34,45)?"raw.vsd":"raw.vsdx",this.importVisio(this.base64ToBlob(F.substring(F.indexOf(",")+1)),function(fa){xa(fa,J)},mxUtils.bind(this,function(fa){this.handleError(fa)}),W)):null!=F&&"function"===typeof F.substring&&
(new XMLHttpRequest).upload&&this.isRemoteFileFormat(F,"")?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):this.parseFileData(F,mxUtils.bind(this,function(fa){4==fa.readyState&&(200<=fa.status&&299>=fa.status&&"<mxGraphModel"==fa.responseText.substring(0,13)?xa(fa.responseText,J):this.handleError({message:413==fa.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError")}))}),""):null!=F&&"function"===typeof F.substring&&this.isLucidChartData(F)?
-this.convertLucidChart(F,mxUtils.bind(this,function(fa){xa(fa)}),mxUtils.bind(this,function(fa){this.handleError(fa)})):null==F||"object"!==typeof F||null==F.format||null==F.data&&null==F.url?(F=W(F),xa(F,J)):this.loadDescriptor(F,mxUtils.bind(this,function(fa){xa(Ea(),J)}),mxUtils.bind(this,function(fa){this.handleError(fa,mxResources.get("errorLoadingFile"))}))}}));var C=this.embedMessageSource||window.opener||window.parent;A="json"==urlParams.proto?JSON.stringify({event:"init"}):urlParams.ready||
-"ready";C.postMessage(A,"*");if("json"==urlParams.proto){var D=this.editor.graph.openLink;this.editor.graph.openLink=function(J,F,T){D.apply(this,arguments);C.postMessage(JSON.stringify({event:"openLink",href:J,target:F,allowOpener:T}),"*")}}};EditorUi.prototype.createEmbedButton=function(c,d,k,m){var q=document.createElement("button");q.className="geEmbedBtn geBtn";q.setAttribute("title",c+(null!=k?" ("+k+")":""));mxUtils.write(q,c);m&&q.classList.add("gePrimaryBtn");mxEvent.addListener(q,"click",
+this.convertLucidChart(F,mxUtils.bind(this,function(fa){xa(fa)}),mxUtils.bind(this,function(fa){this.handleError(fa)})):null==F||"object"!==typeof F||null==F.format||null==F.data&&null==F.url?(F=W(F),xa(F,J)):this.loadDescriptor(F,mxUtils.bind(this,function(fa){xa(Ea(),J)}),mxUtils.bind(this,function(fa){this.handleError(fa,mxResources.get("errorLoadingFile"))}))}}));var B=this.embedMessageSource||window.opener||window.parent;A="json"==urlParams.proto?JSON.stringify({event:"init"}):urlParams.ready||
+"ready";B.postMessage(A,"*");if("json"==urlParams.proto){var D=this.editor.graph.openLink;this.editor.graph.openLink=function(J,F,T){D.apply(this,arguments);B.postMessage(JSON.stringify({event:"openLink",href:J,target:F,allowOpener:T}),"*")}}};EditorUi.prototype.createEmbedButton=function(c,d,k,m){var q=document.createElement("button");q.className="geEmbedBtn geBtn";q.setAttribute("title",c+(null!=k?" ("+k+")":""));mxUtils.write(q,c);m&&q.classList.add("gePrimaryBtn");mxEvent.addListener(q,"click",
d);return q};EditorUi.prototype.setEmbedTitle=function(c){c=this.createStatusDiv(c);null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode.removeChild(this.embedFilenameSpan);"kennedy"==Editor.currentTheme||"atlas"==Editor.currentTheme?this.menubarContainer.appendChild(c):this.buttonContainer.appendChild(c);this.embedFilenameSpan=c};EditorUi.prototype.addEmbedButtons=function(){this.dependsOnLanguage(mxUtils.bind(this,function(){var c=null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode==
this.buttonContainer;this.buttonContainer.innerText="";c&&this.buttonContainer.appendChild(this.embedFilenameSpan);this.commentsSupported()&&null!=this.commentButton&&this.buttonContainer.appendChild(this.commentButton);"1"==urlParams.noSaveBtn?"0"!=urlParams.saveAndExit&&this.buttonContainer.appendChild(this.createEmbedButton("1"==urlParams.publishClose?mxResources.get("publish"):mxResources.get("saveAndExit"),this.actions.get("saveAndExit").funct,Editor.ctrlKey+"+S",!0)):(this.buttonContainer.appendChild(this.createEmbedButton(mxResources.get("save"),
mxUtils.bind(this,function(){this.actions.get("save").funct(!1)}),"1"==urlParams.saveAndExit?Editor.ctrlKey+"+"+Editor.shiftKey+"+S":Editor.ctrlKey+"+S",!0)),"1"==urlParams.saveAndExit&&this.buttonContainer.appendChild(this.createEmbedButton(mxResources.get("saveAndExit"),this.actions.get("saveAndExit").funct,Editor.ctrlKey+"+S")));"1"!=urlParams.noExitBtn&&this.buttonContainer.appendChild(this.createEmbedButton("1"==urlParams.publishClose?mxResources.get("close"):mxResources.get("exit"),this.actions.get("exit").funct))}))};
@@ -13764,21 +13770,21 @@ EditorUi.prototype.showImportCsvDialog=function(){null==this.importCsvDialog&&(t
function(){var d=new TextareaDialog(this,mxResources.get("layout"),c,mxUtils.bind(this,function(k){if(0<k.length)try{var m=JSON.parse(k);this.executeLayouts(this.editor.graph.createLayouts(m));this.customLayoutConfig=m;this.hideDialog()}catch(q){this.handleError(q)}}),null,null,null,null,mxUtils.bind(this,function(k,m){var q=mxUtils.button(mxResources.get("copy"),mxUtils.bind(this,function(){try{var v=m.value;m.value=JSON.stringify(JSON.parse(v));m.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?
m.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");this.alert(mxResources.get("copiedToClipboard"));m.value=v}catch(A){this.handleError(A)}}));q.setAttribute("title","copy");q.className="geBtn";k.appendChild(q)}),!0,null,null,"https://www.drawio.com/doc/faq/apply-layouts");this.showDialog(d.container,620,460,!0,!0);d.init()}))};EditorUi.prototype.loadOrgChartLayouts=function(c,d){this.createTimeout(null,mxUtils.bind(this,function(k){var m=mxUtils.bind(this,function(){this.loadingOrgChart=
!1;k.clear()&&(Graph.layoutNames.push("mxOrgChartLayout"),this.spinner.stop(),c())}),q=mxUtils.bind(this,function(v){this.loadingOrgChart=!1;k.clear()&&this.handleError(v)});if("undefined"!==typeof mxOrgChartLayout||this.loadingOrgChart||this.isOffline(!0))m();else if(d||this.spinner.spin(document.body,mxResources.get("loading")))this.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",m,null,null,null,q)},null,null,null,q)},null,null,null,q)},null,null,null,q):mxscript(window.DRAWIO_SERVER_URL+"js/orgchart.min.js",m,null,null,null,q)}),onerror)};EditorUi.prototype.importCsv=function(c,d,k,m){this.loadOrgChartLayouts(mxUtils.bind(this,function(){this.doImportCsv(c,d,k)}),m)};EditorUi.prototype.doImportCsv=function(c,d,k){try{var m=c.split("\n"),q=[],v=[],A=[],C={};if(0<m.length){var D={};k=null!=k?k:this.editor.graph;var J=null,
-F=null,T=null,W=null,p=null,u=null,G=null,I="whiteSpace=wrap;html=1;",H=null,g=null,t="",B="auto",K="auto",Q=!1,S=null,U=null,N=40,P=40,V=100,Y=0,X=mxUtils.bind(this,function(){null!=d?d(na):(k.setSelectionCells(na),k.scrollCellToVisible(k.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),0)}),Z=k.getFreeInsertPoint(),aa=Z.x,ea=Z.y;Z=ea;var ha=null,ba="auto";g=null;for(var ia=[],la=null,ka=null,pa=0;pa<m.length&&"#"==m[pa].charAt(0);){c=
+function(){mxscript("js/orgchart/mxOrgChartLayout.js",m,null,null,null,q)},null,null,null,q)},null,null,null,q)},null,null,null,q):mxscript(window.DRAWIO_SERVER_URL+"js/orgchart.min.js",m,null,null,null,q)}),onerror)};EditorUi.prototype.importCsv=function(c,d,k,m){this.loadOrgChartLayouts(mxUtils.bind(this,function(){this.doImportCsv(c,d,k)}),m)};EditorUi.prototype.doImportCsv=function(c,d,k){try{var m=c.split("\n"),q=[],v=[],A=[],B={};if(0<m.length){var D={};k=null!=k?k:this.editor.graph;var J=null,
+F=null,T=null,W=null,p=null,u=null,G=null,I="whiteSpace=wrap;html=1;",H=null,g=null,t="",C="auto",K="auto",Q=!1,S=null,U=null,N=40,P=40,V=100,Y=0,X=mxUtils.bind(this,function(){null!=d?d(na):(k.setSelectionCells(na),k.scrollCellToVisible(k.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),0)}),Z=k.getFreeInsertPoint(),aa=Z.x,ea=Z.y;Z=ea;var ha=null,ba="auto";g=null;for(var ia=[],la=null,ka=null,pa=0;pa<m.length&&"#"==m[pa].charAt(0);){c=
m[pa].replace(/\r$/,"");for(pa++;pa<m.length&&"\\"==c.charAt(c.length-1)&&"#"==m[pa].charAt(0);)c=c.substring(0,c.length-1)+mxUtils.trim(m[pa].substring(1)),pa++;if("#"!=c.charAt(1)){var Ba=c.indexOf(":");if(0<Ba){var sa=mxUtils.trim(c.substring(1,Ba)),ja=mxUtils.trim(c.substring(Ba+1));"label"==sa?ha=Graph.sanitizeHtml(ja):"labelname"==sa&&0<ja.length&&"-"!=ja?p=ja:"labels"==sa&&0<ja.length&&"-"!=ja?G=JSON.parse(ja):"style"==sa?F=ja:"parentstyle"==sa?I=ja:"unknownStyle"==sa&&"-"!=ja?u=ja:"stylename"==
-sa&&0<ja.length&&"-"!=ja?W=ja:"styles"==sa&&0<ja.length&&"-"!=ja?T=JSON.parse(ja):"vars"==sa&&0<ja.length&&"-"!=ja?J=JSON.parse(ja):"identity"==sa&&0<ja.length&&"-"!=ja?H=ja:"parent"==sa&&0<ja.length&&"-"!=ja?g=ja:"namespace"==sa&&0<ja.length&&"-"!=ja?t=ja:"width"==sa?B=ja:"height"==sa?K=ja:"collapsed"==sa&&"-"!=ja?Q="true"==ja:"left"==sa&&0<ja.length?S=ja:"top"==sa&&0<ja.length?U=ja:"ignore"==sa?ka=ja.split(","):"connect"==sa?ia.push(JSON.parse(ja)):"link"==sa?la=ja:"padding"==sa?Y=parseFloat(ja):
+sa&&0<ja.length&&"-"!=ja?W=ja:"styles"==sa&&0<ja.length&&"-"!=ja?T=JSON.parse(ja):"vars"==sa&&0<ja.length&&"-"!=ja?J=JSON.parse(ja):"identity"==sa&&0<ja.length&&"-"!=ja?H=ja:"parent"==sa&&0<ja.length&&"-"!=ja?g=ja:"namespace"==sa&&0<ja.length&&"-"!=ja?t=ja:"width"==sa?C=ja:"height"==sa?K=ja:"collapsed"==sa&&"-"!=ja?Q="true"==ja:"left"==sa&&0<ja.length?S=ja:"top"==sa&&0<ja.length?U=ja:"ignore"==sa?ka=ja.split(","):"connect"==sa?ia.push(JSON.parse(ja)):"link"==sa?la=ja:"padding"==sa?Y=parseFloat(ja):
"edgespacing"==sa?N=parseFloat(ja):"nodespacing"==sa?P=parseFloat(ja):"levelspacing"==sa?V=parseFloat(ja):"layout"==sa&&(ba=ja)}}}if(null==m[pa])throw Error(mxResources.get("invalidOrMissingFile"));var wa=this.editor.csvToArray(m[pa].replace(/\r$/,""));Ba=c=null;sa=[];for(ja=0;ja<wa.length;ja++)H==wa[ja]&&(c=ja),g==wa[ja]&&(Ba=ja),sa.push(mxUtils.trim(wa[ja]).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,""));null==ha&&(ha="%"+sa[0]+"%");if(null!=ia)for(var va=0;va<ia.length;va++)null==
D[ia[va].to]&&(D[ia[va].to]={});H=[];for(ja=pa+1;ja<m.length;ja++){var ya=this.editor.csvToArray(m[ja].replace(/\r$/,""));if(null==ya){var Aa=40<m[ja].length?m[ja].substring(0,40)+"...":m[ja];throw Error(Aa+" ("+ja+"):\n"+mxResources.get("containsValidationErrors"));}0<ya.length&&H.push(ya)}k.model.beginUpdate();try{for(ja=0;ja<H.length;ja++){ya=H[ja];var ma=null,Ea=null!=c?t+ya[c]:null;m=!1;null!=Ea&&(ma=k.model.getCell(Ea),m=null==ma||0<=mxUtils.indexOf(q,ma));var xa=new mxCell(ha,new mxGeometry(aa,
Z,0,0),F||"whiteSpace=wrap;html=1;");xa.collapsed=Q;xa.vertex=!0;xa.id=Ea;null==ma||m||k.model.setCollapsed(ma,Q);for(var fa=0;fa<ya.length;fa++)k.setAttributeForCell(xa,sa[fa],ya[fa]),null==ma||m||k.setAttributeForCell(ma,sa[fa],ya[fa]);if(null!=p&&null!=G){var ua=G[xa.getAttribute(p)];null!=ua&&(k.labelChanged(xa,ua),null==ma||m||k.cellLabelChanged(ma,ua))}if(null!=W&&null!=T){var Da=T[xa.getAttribute(W)];null!=Da&&(xa.style=Da)}k.setAttributeForCell(xa,"placeholders","1");xa.style=k.replacePlaceholders(xa,
xa.style,J);null==ma||m?k.fireEvent(new mxEventObject("cellsInserted","cells",[xa])):(k.model.setStyle(ma,xa.style),0>mxUtils.indexOf(A,ma)&&A.push(ma),k.fireEvent(new mxEventObject("cellsInserted","cells",[ma])));m=null!=ma;ma=xa;if(!m)for(va=0;va<ia.length;va++)D[ia[va].to][ma.getAttribute(ia[va].to)]=ma;null!=la&&"link"!=la&&(k.setLinkForCell(ma,ma.getAttribute(la)),k.setAttributeForCell(ma,la,null));var ra=k.getPreferredSizeForCell(ma);g=null!=Ba?k.model.getCell(t+ya[Ba]):null;if(ma.vertex){Aa=
-null!=g?0:aa;pa=null!=g?0:ea;null!=S&&null!=ma.getAttribute(S)&&(ma.geometry.x=Aa+parseFloat(ma.getAttribute(S)));null!=U&&null!=ma.getAttribute(U)&&(ma.geometry.y=pa+parseFloat(ma.getAttribute(U)));var ca="@"==B.charAt(0)?ma.getAttribute(B.substring(1)):null;ma.geometry.width=null!=ca&&"auto"!=ca?parseFloat(ma.getAttribute(B.substring(1))):"auto"==B||"auto"==ca?ra.width+Y:parseFloat(B);var da="@"==K.charAt(0)?ma.getAttribute(K.substring(1)):null;ma.geometry.height=null!=da&&"auto"!=da&&"width"!=
-K?parseFloat(da):"auto"==K||"auto"==da?ra.height+Y:"width"==K?ma.geometry.width:parseFloat(K);Z+=ma.geometry.height+P}m?(null==C[Ea]&&(C[Ea]=[]),C[Ea].push(ma)):(q.push(ma),null!=g?(g.style=k.replacePlaceholders(g,I,J),k.addCell(ma,g),v.push(g)):A.push(k.addCell(ma)))}for(ja=0;ja<v.length;ja++)ca="@"==B.charAt(0)?v[ja].getAttribute(B.substring(1)):null,da="@"==K.charAt(0)?v[ja].getAttribute(K.substring(1)):null,"auto"!=B&&"auto"!=ca||"auto"!=K&&"auto"!=da||k.updateGroupBounds([v[ja]],Y,!0);var oa=
+null!=g?0:aa;pa=null!=g?0:ea;null!=S&&null!=ma.getAttribute(S)&&(ma.geometry.x=Aa+parseFloat(ma.getAttribute(S)));null!=U&&null!=ma.getAttribute(U)&&(ma.geometry.y=pa+parseFloat(ma.getAttribute(U)));var ca="@"==C.charAt(0)?ma.getAttribute(C.substring(1)):null;ma.geometry.width=null!=ca&&"auto"!=ca?parseFloat(ma.getAttribute(C.substring(1))):"auto"==C||"auto"==ca?ra.width+Y:parseFloat(C);var da="@"==K.charAt(0)?ma.getAttribute(K.substring(1)):null;ma.geometry.height=null!=da&&"auto"!=da&&"width"!=
+K?parseFloat(da):"auto"==K||"auto"==da?ra.height+Y:"width"==K?ma.geometry.width:parseFloat(K);Z+=ma.geometry.height+P}m?(null==B[Ea]&&(B[Ea]=[]),B[Ea].push(ma)):(q.push(ma),null!=g?(g.style=k.replacePlaceholders(g,I,J),k.addCell(ma,g),v.push(g)):A.push(k.addCell(ma)))}for(ja=0;ja<v.length;ja++)ca="@"==C.charAt(0)?v[ja].getAttribute(C.substring(1)):null,da="@"==K.charAt(0)?v[ja].getAttribute(K.substring(1)):null,"auto"!=C&&"auto"!=ca||"auto"!=K&&"auto"!=da||k.updateGroupBounds([v[ja]],Y,!0);var oa=
A.slice(),na=A.slice();for(va=0;va<ia.length;va++){var ta=ia[va];for(ja=0;ja<q.length;ja++){ma=q[ja];var qa=mxUtils.bind(this,function(Sa,eb,Pa){var Ta=eb.getAttribute(Pa.from);if(null!=Ta&&""!=Ta){Ta=Ta.split(",");for(var lb=0;lb<Ta.length;lb++){var Xa=D[Pa.to][Ta[lb]];if(null==Xa&&null!=u){Xa=new mxCell(Ta[lb],new mxGeometry(aa,ea,0,0),u);Xa.style=k.replacePlaceholders(eb,Xa.style,J);var ab=k.getPreferredSizeForCell(Xa);Xa.geometry.width=ab.width+Y;Xa.geometry.height=ab.height+Y;D[Pa.to][Ta[lb]]=
Xa;Xa.vertex=!0;Xa.id=Ta[lb];A.push(k.addCell(Xa))}if(null!=Xa){ab=Pa.label;null!=Pa.fromlabel&&(ab=(eb.getAttribute(Pa.fromlabel)||"")+(ab||""));null!=Pa.sourcelabel&&(ab=k.replacePlaceholders(eb,Pa.sourcelabel,J)+(ab||""));null!=Pa.tolabel&&(ab=(ab||"")+(Xa.getAttribute(Pa.tolabel)||""));null!=Pa.targetlabel&&(ab=(ab||"")+k.replacePlaceholders(Xa,Pa.targetlabel,J));var mb="target"==Pa.placeholders==!Pa.invert?Xa:Sa;mb=null!=Pa.style?k.replacePlaceholders(mb,Pa.style,J):k.createCurrentEdgeStyle();
ab=k.insertEdge(null,null,ab||"",Pa.invert?Xa:Sa,Pa.invert?Sa:Xa,mb);if(null!=Pa.labels)for(mb=0;mb<Pa.labels.length;mb++){var Va=Pa.labels[mb],gb=new mxCell(Va.label||mb,new mxGeometry(null!=Va.x?Va.x:0,null!=Va.y?Va.y:0,0,0),"resizable=0;html=1;");gb.vertex=!0;gb.connectable=!1;gb.geometry.relative=!0;null!=Va.placeholders&&(gb.value=k.replacePlaceholders("target"==Va.placeholders==!Pa.invert?Xa:Sa,gb.value,J));if(null!=Va.dx||null!=Va.dy)gb.geometry.offset=new mxPoint(null!=Va.dx?Va.dx:0,null!=
-Va.dy?Va.dy:0);ab.insert(gb)}if(null!=Pa.data)for(var hb in Pa.data)k.setAttributeForCell(ab,hb,Pa.data[hb]);na.push(ab);mxUtils.remove(Pa.invert?Sa:Xa,oa)}}}});qa(ma,ma,ta);if(null!=C[ma.id])for(fa=0;fa<C[ma.id].length;fa++)qa(ma,C[ma.id][fa],ta)}}if(null!=ka)for(ja=0;ja<q.length;ja++)for(ma=q[ja],fa=0;fa<ka.length;fa++)k.setAttributeForCell(ma,mxUtils.trim(ka[fa]),null);if(0<A.length){var za=new mxParallelEdgeLayout(k);za.spacing=N;za.checkOverlap=!0;var Ka=function(){0<za.spacing&&za.execute(k.getDefaultParent());
-for(var Sa=0;Sa<A.length;Sa++){var eb=k.getCellGeometry(A[Sa]);eb.x=Math.round(k.snap(eb.x));eb.y=Math.round(k.snap(eb.y));"auto"==B&&(eb.width=Math.round(k.snap(eb.width)));"auto"==K&&(eb.height=Math.round(k.snap(eb.height)))}};if("["==ba.charAt(0)){var Na=X;k.view.validate();this.executeLayouts(k.createLayouts(JSON.parse(ba)),function(){Ka();Na()});X=null}else if("circle"==ba){var La=new mxCircleLayout(k);La.disableEdgeStyle=!1;La.resetEdges=!1;var Za=La.isVertexIgnored;La.isVertexIgnored=function(Sa){return Za.apply(this,
+Va.dy?Va.dy:0);ab.insert(gb)}if(null!=Pa.data)for(var hb in Pa.data)k.setAttributeForCell(ab,hb,Pa.data[hb]);na.push(ab);mxUtils.remove(Pa.invert?Sa:Xa,oa)}}}});qa(ma,ma,ta);if(null!=B[ma.id])for(fa=0;fa<B[ma.id].length;fa++)qa(ma,B[ma.id][fa],ta)}}if(null!=ka)for(ja=0;ja<q.length;ja++)for(ma=q[ja],fa=0;fa<ka.length;fa++)k.setAttributeForCell(ma,mxUtils.trim(ka[fa]),null);if(0<A.length){var za=new mxParallelEdgeLayout(k);za.spacing=N;za.checkOverlap=!0;var Ka=function(){0<za.spacing&&za.execute(k.getDefaultParent());
+for(var Sa=0;Sa<A.length;Sa++){var eb=k.getCellGeometry(A[Sa]);eb.x=Math.round(k.snap(eb.x));eb.y=Math.round(k.snap(eb.y));"auto"==C&&(eb.width=Math.round(k.snap(eb.width)));"auto"==K&&(eb.height=Math.round(k.snap(eb.height)))}};if("["==ba.charAt(0)){var Na=X;k.view.validate();this.executeLayouts(k.createLayouts(JSON.parse(ba)),function(){Ka();Na()});X=null}else if("circle"==ba){var La=new mxCircleLayout(k);La.disableEdgeStyle=!1;La.resetEdges=!1;var Za=La.isVertexIgnored;La.isVertexIgnored=function(Sa){return Za.apply(this,
arguments)||0>mxUtils.indexOf(A,Sa)};this.executeLayout(function(){La.execute(k.getDefaultParent());Ka()},!0,X);X=null}else if("horizontaltree"==ba||"verticaltree"==ba||"auto"==ba&&na.length==2*A.length-1&&1==oa.length){k.view.validate();var Ra=new mxCompactTreeLayout(k,"horizontaltree"==ba);Ra.levelDistance=P;Ra.edgeRouting=!1;Ra.resetEdges=!1;Ra.sortEdges=!0;this.executeLayout(function(){Ra.execute(k.getDefaultParent(),0<oa.length?oa[0]:null)},!0,X);X=null}else if("horizontalflow"==ba||"verticalflow"==
ba||"auto"==ba&&1==oa.length){k.view.validate();var Ua=new mxHierarchicalLayout(k,"horizontalflow"==ba?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);Ua.intraCellSpacing=P;Ua.parallelEdgeSpacing=N;Ua.interRankCellSpacing=V;Ua.disableEdgeStyle=!1;this.executeLayout(function(){Ua.execute(k.getDefaultParent(),na);k.moveCells(na,aa,ea)},!0,X);X=null}else if("orgchart"==ba){k.view.validate();var cb=new mxOrgChartLayout(k,2,V,P),fb=cb.isVertexIgnored;cb.isVertexIgnored=function(Sa){return fb.apply(this,
arguments)||0>mxUtils.indexOf(A,Sa)};this.executeLayout(function(){cb.execute(k.getDefaultParent());Ka()},!0,X);X=null}else if("organic"==ba||"auto"==ba&&na.length>A.length){k.view.validate();var bb=new mxFastOrganicLayout(k);bb.forceConstant=3*P;bb.disableEdgeStyle=!1;bb.resetEdges=!1;var rb=bb.isVertexIgnored;bb.isVertexIgnored=function(Sa){return rb.apply(this,arguments)||0>mxUtils.indexOf(A,Sa)};this.executeLayout(function(){bb.execute(k.getDefaultParent());Ka()},!0,X);X=null}}this.hideDialog()}finally{k.model.endUpdate()}null!=
@@ -13794,54 +13800,54 @@ k.image&&0<k.cells.length);this.actions.get("pageSetup").setEnabled(m);this.acti
this.actions.get("createShape").setEnabled(m);this.actions.get("createRevision").setEnabled(m);this.actions.get("moveToFolder").setEnabled(null!=d);this.actions.get("makeCopy").setEnabled(null!=d&&!d.isRestricted());this.actions.get("editDiagram").setEnabled(m&&(null==d||!d.isRestricted()));this.actions.get("publishLink").setEnabled(null!=d&&!d.isRestricted());this.actions.get("removeFormat").setEnabled(c.isEnabled()&&!c.isSelectionEmpty()&&!c.isEditing());this.actions.get("tags").setEnabled("none"!=
this.diagramContainer.style.display);this.actions.get("layers").setEnabled("none"!=this.diagramContainer.style.display);this.actions.get("outline").setEnabled("none"!=this.diagramContainer.style.display);this.actions.get("rename").setEnabled(null!=d&&d.isRenamable()||"1"==urlParams.embed);this.actions.get("close").setEnabled(null!=d);this.actions.get("properties").setEnabled(null!=d);this.menus.get("publish").setEnabled(null!=d&&!d.isRestricted());d=this.actions.get("findReplace");d.setEnabled("none"!=
this.diagramContainer.style.display);d.label=mxResources.get("find")+(c.isEnabled()?"/"+mxResources.get("replace"):"");c=c.view.getState(c.getSelectionCell());this.actions.get("editShape").setEnabled(m&&null!=c&&null!=c.shape&&null!=c.shape.stencil)};var R=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);R.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=
-!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=function(c,d,k,m,q,v,A,C){var D=c.editor.graph;if("xml"==k)c.hideDialog(),c.saveData(d,"xml",mxUtils.getXml(c.editor.getGraphXml()),"text/xml");else if("svg"==k)c.hideDialog(),c.saveData(d,"svg",mxUtils.getXml(D.getSvg(m,q,v)),"image/svg+xml");else{var J=c.getFileData(!0,null,null,null,null,!0),F=D.getGraphBounds(),T=Math.floor(F.width*q/D.view.scale),W=Math.floor(F.height*q/D.view.scale);if(J.length<=MAX_REQUEST_SIZE&&T*W<MAX_AREA)if(c.hideDialog(),
-"png"!=k&&"jpg"!=k&&"jpeg"!=k||!c.editor.isExportToCanvas()){var p={globalVars:D.getExportVariables()};C&&(p.grid={size:D.gridSize,steps:D.view.gridSteps,color:D.view.gridColor});c.saveRequest(d,k,function(u,G){return new mxXmlRequest(EXPORT_URL,"format="+k+"&base64="+(G||"0")+(null!=u?"&filename="+encodeURIComponent(u):"")+"&extras="+encodeURIComponent(JSON.stringify(p))+(0<A?"&dpi="+A:"")+"&bg="+(null!=m?m:"none")+"&w="+T+"&h="+W+"&border="+v+"&xml="+encodeURIComponent(J))})}else"png"==k?c.exportImage(q,
-null==m||"none"==m,!0,!1,!1,v,!0,!1,null,C,A):c.exportImage(q,!1,!0,!1,!1,v,!0,!1,"jpeg",C);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);var c=this.editor.graph,d="";if(null!=this.pages)for(var k=0;k<this.pages.length;k++){var m=c;this.currentPage!=this.pages[k]&&(m=this.createTemporaryGraph(c.getStylesheet()),this.updatePageRoot(this.pages[k]),m.model.setRoot(this.pages[k].root));d+=this.pages[k].getName()+
+!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=function(c,d,k,m,q,v,A,B){var D=c.editor.graph;if("xml"==k)c.hideDialog(),c.saveData(d,"xml",mxUtils.getXml(c.editor.getGraphXml()),"text/xml");else if("svg"==k)c.hideDialog(),c.saveData(d,"svg",mxUtils.getXml(D.getSvg(m,q,v)),"image/svg+xml");else{var J=c.getFileData(!0,null,null,null,null,!0),F=D.getGraphBounds(),T=Math.floor(F.width*q/D.view.scale),W=Math.floor(F.height*q/D.view.scale);if(J.length<=MAX_REQUEST_SIZE&&T*W<MAX_AREA)if(c.hideDialog(),
+"png"!=k&&"jpg"!=k&&"jpeg"!=k||!c.editor.isExportToCanvas()){var p={globalVars:D.getExportVariables()};B&&(p.grid={size:D.gridSize,steps:D.view.gridSteps,color:D.view.gridColor});c.saveRequest(d,k,function(u,G){return new mxXmlRequest(EXPORT_URL,"format="+k+"&base64="+(G||"0")+(null!=u?"&filename="+encodeURIComponent(u):"")+"&extras="+encodeURIComponent(JSON.stringify(p))+(0<A?"&dpi="+A:"")+"&bg="+(null!=m?m:"none")+"&w="+T+"&h="+W+"&border="+v+"&xml="+encodeURIComponent(J))})}else"png"==k?c.exportImage(q,
+null==m||"none"==m,!0,!1,!1,v,!0,!1,null,B,A):c.exportImage(q,!1,!0,!1,!1,v,!0,!1,"jpeg",B);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);var c=this.editor.graph,d="";if(null!=this.pages)for(var k=0;k<this.pages.length;k++){var m=c;this.currentPage!=this.pages[k]&&(m=this.createTemporaryGraph(c.getStylesheet()),this.updatePageRoot(this.pages[k]),m.model.setRoot(this.pages[k].root));d+=this.pages[k].getName()+
" "+m.getIndexableText()+" "}else d=c.getIndexableText();this.editor.graph.setEnabled(!0);return d};EditorUi.prototype.showRemotelyStoredLibrary=function(c){var d={},k=document.createElement("div");k.style.whiteSpace="nowrap";var m=document.createElement("h3");mxUtils.write(m,mxUtils.htmlEntities(c));m.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";k.appendChild(m);var q=document.createElement("div");q.style.cssText="border:1px solid lightGray;overflow: auto;height:300px";
-q.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+IMAGE_PATH+'/spin.gif"></div>';var v={};try{var A=mxSettings.getCustomLibraries();for(c=0;c<A.length;c++){var C=A[c];if("R"==C.substring(0,1)){var D=JSON.parse(decodeURIComponent(C.substring(1)));v[D[0]]={id:D[0],title:D[1],downloadUrl:D[2]}}}}catch(J){}this.remoteInvoke("getCustomLibraries",null,null,function(J){q.innerText="";if(0==J.length)q.innerHTML='<div style="text-align:center;padding-top:20px;color:gray;">'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+
+q.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+IMAGE_PATH+'/spin.gif"></div>';var v={};try{var A=mxSettings.getCustomLibraries();for(c=0;c<A.length;c++){var B=A[c];if("R"==B.substring(0,1)){var D=JSON.parse(decodeURIComponent(B.substring(1)));v[D[0]]={id:D[0],title:D[1],downloadUrl:D[2]}}}}catch(J){}this.remoteInvoke("getCustomLibraries",null,null,function(J){q.innerText="";if(0==J.length)q.innerHTML='<div style="text-align:center;padding-top:20px;color:gray;">'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+
"</div>";else for(var F=0;F<J.length;F++){var T=J[F];v[T.id]&&(d[T.id]=T);var W=this.addCheckbox(q,T.title,v[T.id]);(function(p,u){mxEvent.addListener(u,"change",function(){this.checked?d[p.id]=p:delete d[p.id]})})(T,W)}},mxUtils.bind(this,function(J){q.innerText="";var F=document.createElement("div");F.style.padding="8px";F.style.textAlign="center";mxUtils.write(F,mxResources.get("error")+": ");mxUtils.write(F,null!=J&&null!=J.message?J.message:mxResources.get("unknownError"));q.appendChild(F)}));
k.appendChild(q);k=new CustomDialog(this,k,mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"));var J=0,F;for(F in d)null==v[F]&&(J++,mxUtils.bind(this,function(T){this.remoteInvoke("getFileContent",[T.downloadUrl],null,mxUtils.bind(this,function(W){J--;0==J&&this.spinner.stop();try{this.loadLibrary(new RemoteLibrary(this,W,T)),this.showSidebar()}catch(p){this.handleError(p,mxResources.get("errorLoadingFile"))}}),mxUtils.bind(this,function(){J--;0==J&&this.spinner.stop();
this.handleError(null,mxResources.get("errorLoadingFile"))}))})(d[F]));for(F in v)d[F]||this.closeLibrary(new RemoteLibrary(this,null,v[F]));0==J&&this.spinner.stop()}),null,null,"https://www.drawio.com/doc/faq/custom-libraries-confluence-cloud");this.showDialog(k.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(c){this.remoteWin=c;for(var d=0;d<this.remoteInvokeQueue.length;d++)c.postMessage(this.remoteInvokeQueue[d],"*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(c){var d=c.msgMarkers,k=this.remoteInvokeCallbacks[d.callbackId];if(null==k)throw Error("No callback for "+
-(null!=d?d.callbackId:"null"));c.error?k.error&&k.error(c.error.errResp):k.callback&&k.callback.apply(this,c.resp);this.remoteInvokeCallbacks[d.callbackId]=null};EditorUi.prototype.remoteInvoke=function(c,d,k,m,q){var v=!0,A=window.setTimeout(mxUtils.bind(this,function(){v=!1;q({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.timeout),C=mxUtils.bind(this,function(){window.clearTimeout(A);v&&m.apply(this,arguments)}),D=mxUtils.bind(this,function(){window.clearTimeout(A);v&&q.apply(this,
-arguments)});k=k||{};k.callbackId=this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:C,error:D});c=JSON.stringify({event:"remoteInvoke",funtionName:c,functionArgs:d,msgMarkers:k});null!=this.remoteWin?this.remoteWin.postMessage(c,"*"):this.remoteInvokeQueue.push(c)};EditorUi.prototype.handleRemoteInvoke=function(c,d){var k=mxUtils.bind(this,function(J,F){var T={event:"remoteInvokeResponse",msgMarkers:c.msgMarkers};null!=F?T.error={errResp:F}:null!=J&&(T.resp=J);this.remoteWin.postMessage(JSON.stringify(T),
-"*")});try{var m=c.funtionName,q=this.remoteInvokableFns[m];if(null!=q&&"function"===typeof this[m]){if(q.allowedDomains){for(var v=!1,A=0;A<q.allowedDomains.length;A++)if(d=="https://"+q.allowedDomains[A]){v=!0;break}if(!v){k(null,"Invalid Call: "+m+" is not allowed.");return}}var C=c.functionArgs;Array.isArray(C)||(C=[]);if(q.isAsync)C.push(function(){k(Array.prototype.slice.apply(arguments))}),C.push(function(J){k(null,J||"Unkown Error")}),this[m].apply(this,C);else{var D=this[m].apply(this,C);
+(null!=d?d.callbackId:"null"));c.error?k.error&&k.error(c.error.errResp):k.callback&&k.callback.apply(this,c.resp);this.remoteInvokeCallbacks[d.callbackId]=null};EditorUi.prototype.remoteInvoke=function(c,d,k,m,q){var v=!0,A=window.setTimeout(mxUtils.bind(this,function(){v=!1;q({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.timeout),B=mxUtils.bind(this,function(){window.clearTimeout(A);v&&m.apply(this,arguments)}),D=mxUtils.bind(this,function(){window.clearTimeout(A);v&&q.apply(this,
+arguments)});k=k||{};k.callbackId=this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:B,error:D});c=JSON.stringify({event:"remoteInvoke",funtionName:c,functionArgs:d,msgMarkers:k});null!=this.remoteWin?this.remoteWin.postMessage(c,"*"):this.remoteInvokeQueue.push(c)};EditorUi.prototype.handleRemoteInvoke=function(c,d){var k=mxUtils.bind(this,function(J,F){var T={event:"remoteInvokeResponse",msgMarkers:c.msgMarkers};null!=F?T.error={errResp:F}:null!=J&&(T.resp=J);this.remoteWin.postMessage(JSON.stringify(T),
+"*")});try{var m=c.funtionName,q=this.remoteInvokableFns[m];if(null!=q&&"function"===typeof this[m]){if(q.allowedDomains){for(var v=!1,A=0;A<q.allowedDomains.length;A++)if(d=="https://"+q.allowedDomains[A]){v=!0;break}if(!v){k(null,"Invalid Call: "+m+" is not allowed.");return}}var B=c.functionArgs;Array.isArray(B)||(B=[]);if(q.isAsync)B.push(function(){k(Array.prototype.slice.apply(arguments))}),B.push(function(J){k(null,J||"Unkown Error")}),this[m].apply(this,B);else{var D=this[m].apply(this,B);
k([D])}}else k(null,"Invalid Call: "+m+" is not found.")}catch(J){k(null,"Invalid Call: An error occurred, "+J.message)}};EditorUi.prototype.openDatabase=function(c,d){if(null==this.database){var k=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB;if(null!=k)try{var m=k.open("database",2);m.onupgradeneeded=function(q){try{var v=m.result;1>q.oldVersion&&v.createObjectStore("objects",{keyPath:"key"});2>q.oldVersion&&(v.createObjectStore("files",{keyPath:"title"}),v.createObjectStore("filesInfo",
-{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(A){null!=d&&d(A)}};m.onsuccess=mxUtils.bind(this,function(q){try{var v=m.result;this.database=v;EditorUi.migrateStorageFiles&&(StorageFile.migrate(v),EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(A){if((!A||"1"==urlParams.forceMigration)&&"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,J=!1,F,T=0,W=mxUtils.bind(this,function(){J=!0;this.setDatabaseItem(".drawioMigrated3",!0);C.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),p=mxUtils.bind(this,function(){T++;u()}),u=mxUtils.bind(this,function(){try{if(T>=F.length)W();else{var I=F[T];StorageFile.getFileContent(this,
-I,mxUtils.bind(this,function(H){null==H||".scratchpad"==I&&H==this.emptyLibraryXml?C.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFile",functionArgs:[I]}),"*"):p()}),p)}}catch(H){console.log(H)}}),G=mxUtils.bind(this,function(I){try{this.setDatabaseItem(null,[{title:I.title,size:I.data.length,lastModified:Date.now(),type:I.isLib?"L":"F"},{title:I.title,data:I.data}],p,p,["filesInfo","files"])}catch(H){console.log(H)}});A=mxUtils.bind(this,function(I){try{if(I.source==
-C.contentWindow){var H={};try{H=JSON.parse(I.data)}catch(g){}"init"==H.event?(C.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),"*"),C.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFileNames"}),"*")):"remoteInvokeResponse"!=H.event||J||(D?null!=H.resp&&0<H.resp.length&&null!=H.resp[0]?(F=H.resp[0],D=!1,u()):W():null!=H.resp&&0<H.resp.length&&null!=H.resp[0]?G(H.resp[0]):p())}}catch(g){console.log(g)}});window.addEventListener("message",
+{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(A){null!=d&&d(A)}};m.onsuccess=mxUtils.bind(this,function(q){try{var v=m.result;this.database=v;EditorUi.migrateStorageFiles&&(StorageFile.migrate(v),EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(A){if((!A||"1"==urlParams.forceMigration)&&"1"==urlParams.forceMigration){var B=document.createElement("iframe");
+B.style.display="none";B.setAttribute("src","https://www.draw.io?embed=1&proto=json&forceMigration="+urlParams.forceMigration);document.body.appendChild(B);var D=!0,J=!1,F,T=0,W=mxUtils.bind(this,function(){J=!0;this.setDatabaseItem(".drawioMigrated3",!0);B.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),p=mxUtils.bind(this,function(){T++;u()}),u=mxUtils.bind(this,function(){try{if(T>=F.length)W();else{var I=F[T];StorageFile.getFileContent(this,
+I,mxUtils.bind(this,function(H){null==H||".scratchpad"==I&&H==this.emptyLibraryXml?B.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFile",functionArgs:[I]}),"*"):p()}),p)}}catch(H){console.log(H)}}),G=mxUtils.bind(this,function(I){try{this.setDatabaseItem(null,[{title:I.title,size:I.data.length,lastModified:Date.now(),type:I.isLib?"L":"F"},{title:I.title,data:I.data}],p,p,["filesInfo","files"])}catch(H){console.log(H)}});A=mxUtils.bind(this,function(I){try{if(I.source==
+B.contentWindow){var H={};try{H=JSON.parse(I.data)}catch(g){}"init"==H.event?(B.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),"*"),B.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFileNames"}),"*")):"remoteInvokeResponse"!=H.event||J||(D?null!=H.resp&&0<H.resp.length&&null!=H.resp[0]?(F=H.resp[0],D=!1,u()):W():null!=H.resp&&0<H.resp.length&&null!=H.resp[0]?G(H.resp[0]):p())}}catch(g){console.log(g)}});window.addEventListener("message",
A)}})));c(v);v.onversionchange=function(){v.close()}}catch(A){null!=d?d(A):null!=window.console&&console.warn(A)}});m.onerror=d;m.onblocked=function(){}}catch(q){null!=d?d(q):null!=window.console&&console.error(q)}else null!=d&&d(Error("IndexedDB not supported"))}else c(this.database)};EditorUi.prototype.setDatabaseItem=function(c,d,k,m,q){this.openDatabase(mxUtils.bind(this,function(v){try{q=q||"objects";Array.isArray(q)||(q=[q],c=[c],d=[d]);var A=v.transaction(q,"readwrite");A.oncomplete=k;A.onerror=
-m;for(v=0;v<q.length;v++)A.objectStore(q[v]).put(null!=c&&null!=c[v]?{key:c[v],data:d[v]}:d[v])}catch(C){null!=m&&m(C)}}),m)};EditorUi.prototype.removeDatabaseItem=function(c,d,k,m){this.openDatabase(mxUtils.bind(this,function(q){try{m=m||"objects";Array.isArray(m)||(m=[m],c=[c]);var v=q.transaction(m,"readwrite");v.oncomplete=d;v.onerror=k;for(q=0;q<m.length;q++)v.objectStore(m[q]).delete(c[q])}catch(A){null!=k&&k(A)}}),k)};EditorUi.prototype.getDatabaseItem=function(c,d,k,m){this.openDatabase(mxUtils.bind(this,
+m;for(v=0;v<q.length;v++)A.objectStore(q[v]).put(null!=c&&null!=c[v]?{key:c[v],data:d[v]}:d[v])}catch(B){null!=m&&m(B)}}),m)};EditorUi.prototype.removeDatabaseItem=function(c,d,k,m){this.openDatabase(mxUtils.bind(this,function(q){try{m=m||"objects";Array.isArray(m)||(m=[m],c=[c]);var v=q.transaction(m,"readwrite");v.oncomplete=d;v.onerror=k;for(q=0;q<m.length;q++)v.objectStore(m[q]).delete(c[q])}catch(A){null!=k&&k(A)}}),k)};EditorUi.prototype.getDatabaseItem=function(c,d,k,m){this.openDatabase(mxUtils.bind(this,
function(q){try{m=m||"objects";var v=q.transaction([m],"readonly").objectStore(m).get(c);v.onsuccess=function(){d(v.result)};v.onerror=k}catch(A){null!=k&&k(A)}}),k)};EditorUi.prototype.getDatabaseItems=function(c,d,k){this.openDatabase(mxUtils.bind(this,function(m){try{k=k||"objects";var q=m.transaction([k],"readonly").objectStore(k).openCursor(IDBKeyRange.lowerBound(0)),v=[];q.onsuccess=function(A){null==A.target.result?c(v):(v.push(A.target.result.value),A.target.result.continue())};q.onerror=
d}catch(A){null!=d&&d(A)}}),d)};EditorUi.prototype.getDatabaseItemKeys=function(c,d,k){this.openDatabase(mxUtils.bind(this,function(m){try{k=k||"objects";var q=m.transaction([k],"readonly").objectStore(k).getAllKeys();q.onsuccess=function(){c(q.result)};q.onerror=d}catch(v){null!=d&&d(v)}}),d)};EditorUi.prototype.commentsSupported=function(){var c=this.getCurrentFile();return null!=c?c.commentsSupported():!1};EditorUi.prototype.commentsRefreshNeeded=function(){var c=this.getCurrentFile();return null!=
c?c.commentsRefreshNeeded():!0};EditorUi.prototype.commentsSaveNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsSaveNeeded():!1};EditorUi.prototype.getComments=function(c,d){var k=this.getCurrentFile();null!=k?k.getComments(c,d):c([])};EditorUi.prototype.addComment=function(c,d,k){var m=this.getCurrentFile();null!=m?m.addComment(c,d,k):d(Date.now())};EditorUi.prototype.canReplyToReplies=function(){var c=this.getCurrentFile();return null!=c?c.canReplyToReplies():!0};EditorUi.prototype.canComment=
function(){var c=this.getCurrentFile();return null!=c?c.canComment():!0};EditorUi.prototype.newComment=function(c,d){var k=this.getCurrentFile();return null!=k?k.newComment(c,d):new DrawioComment(this,null,c,Date.now(),Date.now(),!1,d)};EditorUi.prototype.isRevisionHistorySupported=function(){var c=this.getCurrentFile();return null!=c&&c.isRevisionHistorySupported()};EditorUi.prototype.getRevisions=function(c,d){var k=this.getCurrentFile();null!=k&&k.getRevisions?k.getRevisions(c,d):d({message:mxResources.get("unknownError")})};
-EditorUi.prototype.isRevisionHistoryEnabled=function(){var c=this.getCurrentFile();return null!=c&&(c.constructor==DriveFile&&c.isEditable()||c.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.vsdxExportEnabled=function(){return"atlassian"==this.getServiceName()};EditorUi.prototype.addRemoteServiceSecurityCheck=function(c){c.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(c,d,k,m,q,v,A,C){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");
-return this.editor.loadUrl(c,d,k,m,q,v,A,C)};EditorUi.prototype.loadFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(c)};EditorUi.prototype.createSvgDataUri=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(c)};EditorUi.prototype.embedCssFonts=function(c,d){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(c,d)};EditorUi.prototype.embedExtFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");
-return this.editor.embedExtFonts(c)};EditorUi.prototype.exportToCanvas=function(c,d,k,m,q,v,A,C,D,J,F,T,W,p,u,G){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(c,d,k,m,q,v,A,C,D,J,F,T,W,p,u,G)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(c,d,k,m){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");
+EditorUi.prototype.isRevisionHistoryEnabled=function(){var c=this.getCurrentFile();return null!=c&&(c.constructor==DriveFile&&c.isEditable()||c.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.vsdxExportEnabled=function(){return"atlassian"==this.getServiceName()};EditorUi.prototype.addRemoteServiceSecurityCheck=function(c){c.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(c,d,k,m,q,v,A,B){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");
+return this.editor.loadUrl(c,d,k,m,q,v,A,B)};EditorUi.prototype.loadFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(c)};EditorUi.prototype.createSvgDataUri=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");return Editor.createSvgDataUri(c)};EditorUi.prototype.embedCssFonts=function(c,d){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(c,d)};EditorUi.prototype.embedExtFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");
+return this.editor.embedExtFonts(c)};EditorUi.prototype.exportToCanvas=function(c,d,k,m,q,v,A,B,D,J,F,T,W,p,u,G){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(c,d,k,m,q,v,A,B,D,J,F,T,W,p,u,G)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(c,d,k,m){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");
return this.editor.convertImages(c,d,k,m)};EditorUi.prototype.convertImageToDataUri=function(c,d){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(c,d)};EditorUi.prototype.base64Encode=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: base64Encode");return Editor.base64Encode(c)};EditorUi.prototype.updateCRC=function(c,d,k,m){EditorUi.logEvent("SHOULD NOT BE CALLED: updateCRC");return Editor.updateCRC(c,d,k,m)};EditorUi.prototype.crc32=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");
return Editor.crc32(c)};EditorUi.prototype.writeGraphModelToPng=function(c,d,k,m,q){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");return Editor.writeGraphModelToPng(c,d,k,m,q)};EditorUi.prototype.getLocalStorageFileNames=function(){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;for(var c=[],d=0;d<localStorage.length;d++){var k=localStorage.key(d),m=localStorage.getItem(k);if(0<k.length&&(".scratchpad"==k||"."!=k.charAt(0))&&0<m.length){var q=
"<mxfile "===m.substring(0,8)||"<?xml"===m.substring(0,5)||"\x3c!--[if IE]>"===m.substring(0,12);m="<mxlibrary>"===m.substring(0,11);(q||m)&&c.push(k)}}return c};EditorUi.prototype.getLocalStorageFile=function(c){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;var d=localStorage.getItem(c);return{title:c,data:d,isLib:"<mxlibrary>"===d.substring(0,11)}};EditorUi.prototype.setMigratedFlag=function(){localStorage.setItem(".localStorageMigrated","1")}})();
-var CommentsWindow=function(b,l,n,f,x,z){function y(){for(var u=A.getElementsByTagName("div"),G=0,I=0;I<u.length;I++)"none"!=u[I].style.display&&u[I].parentNode==A&&G++;C.style.display=0==G?"block":"none"}function E(u,G,I,H){function g(){G.removeChild(K);G.removeChild(Q);B.style.display="block";t.style.display="block"}m={div:G,comment:u,saveCallback:I,deleteOnCancel:H};var t=G.querySelector(".geCommentTxt"),B=G.querySelector(".geCommentActionsList"),K=document.createElement("textarea");K.className=
+var CommentsWindow=function(b,l,n,f,x,z){function y(){for(var u=A.getElementsByTagName("div"),G=0,I=0;I<u.length;I++)"none"!=u[I].style.display&&u[I].parentNode==A&&G++;B.style.display=0==G?"block":"none"}function E(u,G,I,H){function g(){G.removeChild(K);G.removeChild(Q);C.style.display="block";t.style.display="block"}m={div:G,comment:u,saveCallback:I,deleteOnCancel:H};var t=G.querySelector(".geCommentTxt"),C=G.querySelector(".geCommentActionsList"),K=document.createElement("textarea");K.className=
"geCommentEditTxtArea";K.style.minHeight=t.offsetHeight+"px";K.value=u.content;G.insertBefore(K,t);var Q=document.createElement("div");Q.className="geCommentEditBtns";var S=mxUtils.button(mxResources.get("cancel"),function(){H?(G.parentNode.removeChild(G),y()):g();m=null});S.className="geCommentEditBtn";Q.appendChild(S);var U=mxUtils.button(mxResources.get("save"),function(){t.innerText="";u.content=K.value;mxUtils.write(t,u.content);g();I(u);m=null});mxEvent.addListener(K,"keydown",mxUtils.bind(this,
-function(N){mxEvent.isConsumed(N)||((mxEvent.isControlDown(N)||mxClient.IS_MAC&&mxEvent.isMetaDown(N))&&13==N.keyCode?(U.click(),mxEvent.consume(N)):27==N.keyCode&&(S.click(),mxEvent.consume(N)))}));U.focus();U.className="geCommentEditBtn gePrimaryBtn";Q.appendChild(U);G.insertBefore(Q,t);B.style.display="none";t.style.display="none";K.focus()}function M(u,G){G.innerText="";u=new Date(u.modifiedDate);var I=b.timeSince(u);null==I&&(I=mxResources.get("lessThanAMinute"));mxUtils.write(G,mxResources.get("timeAgo",
+function(N){mxEvent.isConsumed(N)||((mxEvent.isControlDown(N)||mxClient.IS_MAC&&mxEvent.isMetaDown(N))&&13==N.keyCode?(U.click(),mxEvent.consume(N)):27==N.keyCode&&(S.click(),mxEvent.consume(N)))}));U.focus();U.className="geCommentEditBtn gePrimaryBtn";Q.appendChild(U);G.insertBefore(Q,t);C.style.display="none";t.style.display="none";K.focus()}function M(u,G){G.innerText="";u=new Date(u.modifiedDate);var I=b.timeSince(u);null==I&&(I=mxResources.get("lessThanAMinute"));mxUtils.write(G,mxResources.get("timeAgo",
[I],"{1} ago"));G.setAttribute("title",u.toLocaleDateString()+" "+u.toLocaleTimeString())}function L(u){var G=document.createElement("img");G.className="geCommentBusyImg";G.src=IMAGE_PATH+"/spin.gif";u.appendChild(G);u.busyImg=G}function O(u){u.style.border="1px solid red";u.busyImg.parentNode==u&&u.removeChild(u.busyImg)}function R(u){u.style.border="";u.busyImg.parentNode==u&&u.removeChild(u.busyImg)}function c(u,G,I,H,g){function t(V,Y,X){var Z=document.createElement("li");Z.className="geCommentAction";
-var aa=document.createElement("a");aa.className="geCommentActionLnk";mxUtils.write(aa,V);Z.appendChild(aa);mxEvent.addListener(aa,"click",function(ea){Y(ea,u);ea.preventDefault();mxEvent.consume(ea)});P.appendChild(Z);X&&(Z.style.display="none")}function B(){function V(Z){Y.push(X);if(null!=Z.replies)for(var aa=0;aa<Z.replies.length;aa++)X=X.nextSibling,V(Z.replies[aa])}var Y=[],X=Q;V(u);return{pdiv:X,replies:Y}}function K(V,Y,X,Z,aa){function ea(){L(la);u.addReply(ia,function(ka){ia.id=ka;u.replies.push(ia);
-R(la);X&&X()},function(ka){ha();O(la);b.handleError(ka,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},Z,aa)}function ha(){E(ia,la,function(ka){ea()},!0)}var ba=B().pdiv,ia=b.newComment(V,b.getCurrentUser());ia.pCommentId=u.id;null==u.replies&&(u.replies=[]);var la=c(ia,u.replies,ba,H+1);Y?ha():ea()}if(g||!u.isResolved){C.style.display="none";var Q=document.createElement("div");Q.className="geCommentContainer";Q.setAttribute("data-commentId",u.id);Q.style.marginLeft=20*H+
+var aa=document.createElement("a");aa.className="geCommentActionLnk";mxUtils.write(aa,V);Z.appendChild(aa);mxEvent.addListener(aa,"click",function(ea){Y(ea,u);ea.preventDefault();mxEvent.consume(ea)});P.appendChild(Z);X&&(Z.style.display="none")}function C(){function V(Z){Y.push(X);if(null!=Z.replies)for(var aa=0;aa<Z.replies.length;aa++)X=X.nextSibling,V(Z.replies[aa])}var Y=[],X=Q;V(u);return{pdiv:X,replies:Y}}function K(V,Y,X,Z,aa){function ea(){L(la);u.addReply(ia,function(ka){ia.id=ka;u.replies.push(ia);
+R(la);X&&X()},function(ka){ha();O(la);b.handleError(ka,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},Z,aa)}function ha(){E(ia,la,function(ka){ea()},!0)}var ba=C().pdiv,ia=b.newComment(V,b.getCurrentUser());ia.pCommentId=u.id;null==u.replies&&(u.replies=[]);var la=c(ia,u.replies,ba,H+1);Y?ha():ea()}if(g||!u.isResolved){B.style.display="none";var Q=document.createElement("div");Q.className="geCommentContainer";Q.setAttribute("data-commentId",u.id);Q.style.marginLeft=20*H+
5+"px";u.isResolved&&(q.style.opacity="0.7");var S=document.createElement("div");S.className="geCommentHeader";var U=document.createElement("img");U.className="geCommentUserImg";U.src=null!=u.user&&null!=u.user.pictureUrl?u.user.pictureUrl:Editor.userImage;S.appendChild(U);U=document.createElement("div");U.className="geCommentHeaderTxt";S.appendChild(U);var N=document.createElement("div");N.className="geCommentUsername";mxUtils.write(N,null!=u.user?u.user.displayName:mxResources.get("unknownUser"));
U.appendChild(N);N=document.createElement("div");N.className="geCommentDate";N.setAttribute("data-commentId",u.id);M(u,N);U.appendChild(N);Q.appendChild(S);S=document.createElement("div");S.className="geCommentTxt";mxUtils.write(S,u.content||"");Q.appendChild(S);u.isLocked&&(Q.style.opacity="0.5");S=document.createElement("div");S.className="geCommentActions";var P=document.createElement("ul");P.className="geCommentActionsList";S.appendChild(P);d||u.isLocked||0!=H&&!k||t(mxResources.get("reply"),
function(){K("",!0)},u.isResolved);U=b.getCurrentUser();null==U||null==u.user||U.id!=u.user.id||d||u.isLocked||(t(mxResources.get("edit"),function(){function V(){E(u,Q,function(){L(Q);u.editComment(u.content,function(){R(Q)},function(Y){O(Q);V();b.handleError(Y,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})}V()},u.isResolved),t(mxResources.get("delete"),function(){b.confirm(mxResources.get("areYouSure"),function(){L(Q);u.deleteComment(function(V){if(!0===V){V=Q.querySelector(".geCommentTxt");
-V.innerText="";mxUtils.write(V,mxResources.get("msgDeleted"));var Y=Q.querySelectorAll(".geCommentAction");for(V=0;V<Y.length;V++)Y[V].parentNode.removeChild(Y[V]);R(Q);Q.style.opacity="0.5"}else{Y=B(u).replies;for(V=0;V<Y.length;V++)A.removeChild(Y[V]);for(V=0;V<G.length;V++)if(G[V]==u){G.splice(V,1);break}C.style.display=0==A.getElementsByTagName("div").length?"block":"none"}},function(V){O(Q);b.handleError(V,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},u.isResolved));
-d||u.isLocked||0!=H||t(u.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(V){function Y(){var X=V.target;X.innerText="";u.isResolved=!u.isResolved;mxUtils.write(X,u.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var Z=u.isResolved?"none":"",aa=B(u).replies,ea="light-dark("+(u.isResolved?"ghostWhite":"white")+", transparent)",ha=0;ha<aa.length;ha++){aa[ha].style.backgroundColor=ea;for(var ba=aa[ha].querySelectorAll(".geCommentAction"),ia=0;ia<ba.length;ia++)ba[ia]!=
+V.innerText="";mxUtils.write(V,mxResources.get("msgDeleted"));var Y=Q.querySelectorAll(".geCommentAction");for(V=0;V<Y.length;V++)Y[V].parentNode.removeChild(Y[V]);R(Q);Q.style.opacity="0.5"}else{Y=C(u).replies;for(V=0;V<Y.length;V++)A.removeChild(Y[V]);for(V=0;V<G.length;V++)if(G[V]==u){G.splice(V,1);break}B.style.display=0==A.getElementsByTagName("div").length?"block":"none"}},function(V){O(Q);b.handleError(V,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},u.isResolved));
+d||u.isLocked||0!=H||t(u.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(V){function Y(){var X=V.target;X.innerText="";u.isResolved=!u.isResolved;mxUtils.write(X,u.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var Z=u.isResolved?"none":"",aa=C(u).replies,ea="light-dark("+(u.isResolved?"ghostWhite":"white")+", transparent)",ha=0;ha<aa.length;ha++){aa[ha].style.backgroundColor=ea;for(var ba=aa[ha].querySelectorAll(".geCommentAction"),ia=0;ia<ba.length;ia++)ba[ia]!=
X.parentNode&&(ba[ia].style.display=Z);T||(aa[ha].style.display="none")}y()}u.isResolved?K(mxResources.get("reOpened")+": ",!0,Y,!1,!0):K(mxResources.get("markedAsResolved"),!1,Y,!0)});Q.appendChild(S);null!=I?A.insertBefore(Q,I.nextSibling):A.appendChild(Q);for(I=0;null!=u.replies&&I<u.replies.length;I++)S=u.replies[I],S.isResolved=u.isResolved,c(S,u.replies,null,H+1,g);null!=m&&(m.comment.id==u.id?(g=u.content,u.content=m.comment.content,E(u,Q,m.saveCallback,m.deleteOnCancel),u.content=g):null==
-m.comment.id&&m.comment.pCommentId==u.id&&(A.appendChild(m.div),E(m.comment,m.div,m.saveCallback,m.deleteOnCancel)));return Q}}var d=!b.canComment(),k=b.canReplyToReplies(),m=null,q=document.createElement("div");q.className="geCommentsWin";var v=EditorUi.compactUi?"26px":"30px",A=document.createElement("div");A.className="geCommentsList";A.style.bottom=parseInt(v)+7+"px";q.appendChild(A);var C=document.createElement("span");C.style.cssText="display:none;padding-top:10px;text-align:center;";mxUtils.write(C,
+m.comment.id&&m.comment.pCommentId==u.id&&(A.appendChild(m.div),E(m.comment,m.div,m.saveCallback,m.deleteOnCancel)));return Q}}var d=!b.canComment(),k=b.canReplyToReplies(),m=null,q=document.createElement("div");q.className="geCommentsWin";var v=EditorUi.compactUi?"26px":"30px",A=document.createElement("div");A.className="geCommentsList";A.style.bottom=parseInt(v)+7+"px";q.appendChild(A);var B=document.createElement("span");B.style.cssText="display:none;padding-top:10px;text-align:center;";mxUtils.write(B,
mxResources.get("noCommentsFound"));var D=document.createElement("div");D.className="geToolbarContainer geCommentsToolbar";D.style.height=v;D.style.padding="3px 4px 4px 4px";v=document.createElement("a");v.className="geButton";if(!d){var J=v.cloneNode();J.style.backgroundImage="url("+Editor.plusImage+")";J.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(J,"click",function(u){function G(){E(I,H,function(g){L(H);b.addComment(g,function(t){g.id=t;W.push(g);R(H)},function(t){O(H);
G();b.handleError(t,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})},!0)}var I=b.newComment("",b.getCurrentUser()),H=c(I,W,null,0);G();u.preventDefault();mxEvent.consume(u)});D.appendChild(J)}var F=v.cloneNode();F.style.backgroundImage="url("+Editor.checkImage+")";F.setAttribute("title",mxResources.get("showResolved"));var T=!1;mxEvent.addListener(F,"click",function(u){(T=!T)?F.classList.add("geActiveItem"):F.classList.remove("geActiveItem");p();u.preventDefault();mxEvent.consume(u)});
D.appendChild(F);b.commentsRefreshNeeded()&&(J=v.cloneNode(),J.style.backgroundImage="url("+Editor.refreshImage+")",J.setAttribute("title",mxResources.get("refresh")),mxEvent.addListener(J,"click",function(u){p();u.preventDefault();mxEvent.consume(u)}),D.appendChild(J));b.commentsSaveNeeded()&&(v=v.cloneNode(),v.innerHTML='<img src="'+IMAGE_PATH+'/save.png" style="width: 20px; padding: 2px;">',v.setAttribute("title",mxResources.get("save")),v.className="geButton geAdaptiveAsset",mxEvent.addListener(v,
"click",function(u){z();u.preventDefault();mxEvent.consume(u)}),D.appendChild(v));q.appendChild(D);var W=[],p=mxUtils.bind(this,function(){this.hasError=!1;if(null!=m)try{m.div=m.div.cloneNode(!0);var u=m.div.querySelector(".geCommentEditTxtArea"),G=m.div.querySelector(".geCommentEditBtns");m.comment.content=u.value;u.parentNode.removeChild(u);G.parentNode.removeChild(G)}catch(I){b.handleError(I)}A.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH+'/spin.gif" valign="middle"> '+
-mxUtils.htmlEntities(mxResources.get("loading"))+"...</div>";k=b.canReplyToReplies();b.commentsSupported()?b.getComments(function(I){function H(g){if(null!=g){g.sort(function(B,K){return new Date(B.modifiedDate)-new Date(K.modifiedDate)});for(var t=0;t<g.length;t++)H(g[t].replies)}}I.sort(function(g,t){return new Date(g.modifiedDate)-new Date(t.modifiedDate)});A.innerText="";A.appendChild(C);C.style.display="block";W=I;for(I=0;I<W.length;I++)H(W[I].replies),c(W[I],W,null,0,T);null!=m&&null==m.comment.id&&
-null==m.comment.pCommentId&&(A.appendChild(m.div),E(m.comment,m.div,m.saveCallback,m.deleteOnCancel))},mxUtils.bind(this,function(I){A.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(I&&I.message?": "+I.message:""));this.hasError=!0})):A.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))});p();this.refreshComments=p;D=mxUtils.bind(this,function(){function u(t){var B=I[t.id];if(null!=B)for(M(t,B),B=0;null!=t.replies&&B<t.replies.length;B++)u(t.replies[B])}if(this.window.isVisible()){for(var G=
+mxUtils.htmlEntities(mxResources.get("loading"))+"...</div>";k=b.canReplyToReplies();b.commentsSupported()?b.getComments(function(I){function H(g){if(null!=g){g.sort(function(C,K){return new Date(C.modifiedDate)-new Date(K.modifiedDate)});for(var t=0;t<g.length;t++)H(g[t].replies)}}I.sort(function(g,t){return new Date(g.modifiedDate)-new Date(t.modifiedDate)});A.innerText="";A.appendChild(B);B.style.display="block";W=I;for(I=0;I<W.length;I++)H(W[I].replies),c(W[I],W,null,0,T);null!=m&&null==m.comment.id&&
+null==m.comment.pCommentId&&(A.appendChild(m.div),E(m.comment,m.div,m.saveCallback,m.deleteOnCancel))},mxUtils.bind(this,function(I){A.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(I&&I.message?": "+I.message:""));this.hasError=!0})):A.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))});p();this.refreshComments=p;D=mxUtils.bind(this,function(){function u(t){var C=I[t.id];if(null!=C)for(M(t,C),C=0;null!=t.replies&&C<t.replies.length;C++)u(t.replies[C])}if(this.window.isVisible()){for(var G=
A.querySelectorAll(".geCommentDate"),I={},H=0;H<G.length;H++){var g=G[H];I[g.getAttribute("data-commentId")]=g}for(H=0;H<W.length;H++)u(W[H])}});setInterval(D,6E4);this.refreshCommentsTime=D;this.window=new mxWindow(mxResources.get("comments"),q,l,n,f,x,!0,!0);this.window.minimumSize=new mxRectangle(0,0,260,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()}));b.installResizeHandler(this,!0)},ConfirmDialog=function(b,l,n,f,x,z,y,E,M,L,O){var R=document.createElement("div");R.style.textAlign="center";O=null!=O?O:44;var c=document.createElement("div");c.style.padding="6px";c.style.overflow="auto";c.style.maxHeight=O+"px";c.style.lineHeight="1.2em";mxUtils.write(c,l);R.appendChild(c);null!=L&&(c=document.createElement("div"),c.style.padding="6px 0 6px 0",l=document.createElement("img"),l.setAttribute("src",L),c.appendChild(l),
R.appendChild(c));L=document.createElement("div");L.style.textAlign="center";L.style.whiteSpace="nowrap";var d=document.createElement("input");d.setAttribute("type","checkbox");z=mxUtils.button(z||mxResources.get("cancel"),function(){b.hideDialog();null!=f&&f(d.checked)});z.className="geBtn";null!=E&&(z.innerHTML=E+"<br>"+z.innerHTML,z.style.display="inline-block",z.style.paddingBottom="8px",z.style.paddingTop="8px",z.style.height="auto",z.style.width="40%");b.editor.cancelFirst&&L.appendChild(z);
@@ -13851,8 +13857,8 @@ HeadlessEditorUi.prototype.addTrees=function(){};HeadlessEditorUi.prototype.onBe
EditorUi.prototype.cellProperties={id:!0,value:!0,xmlValue:!0,vertex:!0,edge:!0,visible:!0,collapsed:!0,connectable:!0,parent:!0,children:!0,previous:!0,source:!0,target:!0,edges:!0,geometry:!0,style:!0,overlays:!0,mxObjectId:!0,mxTransient:!0};EditorUi.prototype.codec=new mxCodec;EditorUi.prototype.applyPatches=function(b,l,n,f,x){if(null!=l)for(var z=0;z<l.length;z++)null!=l[z]&&(b=this.patchPages(b,l[z],n,f,x));return b};
EditorUi.prototype.patchFileNode=function(b){var l=!1;if(null!=this.fileNode&&null!=b)for(var n=0;n<b.length;n++)if(null!=b[n]&&null!=b[n][EditorUi.DIFF_FILE])for(var f in b[n][EditorUi.DIFF_FILE])l=b[n][EditorUi.DIFF_FILE][f],null!=l?this.fileNode.setAttribute(f,l):this.fileNode.removeAttribute(f),l=!0;return l};
EditorUi.prototype.patchPages=function(b,l,n,f,x){var z={},y=[],E={},M={},L={},O={};if(null!=f&&null!=f[EditorUi.DIFF_UPDATE])for(var R in f[EditorUi.DIFF_UPDATE])z[R]=f[EditorUi.DIFF_UPDATE][R];if(null!=l[EditorUi.DIFF_REMOVE])for(f=0;f<l[EditorUi.DIFF_REMOVE].length;f++)M[l[EditorUi.DIFF_REMOVE][f]]=!0;if(null!=l[EditorUi.DIFF_INSERT])for(f=0;f<l[EditorUi.DIFF_INSERT].length;f++)E[l[EditorUi.DIFF_INSERT][f].previous]=l[EditorUi.DIFF_INSERT][f];if(null!=l[EditorUi.DIFF_UPDATE])for(R in l[EditorUi.DIFF_UPDATE])f=
-l[EditorUi.DIFF_UPDATE][R],null!=f.previous&&(O[f.previous]=R);if(null!=b){var c="";for(f=0;f<b.length;f++){var d=b[f].getId();L[d]=b[f];null!=O[c]||M[d]||null!=l[EditorUi.DIFF_UPDATE]&&null!=l[EditorUi.DIFF_UPDATE][d]&&null!=l[EditorUi.DIFF_UPDATE][d].previous||(O[c]=d);c=d}}var k={},m=mxUtils.bind(this,function(v){var A=null!=v?v.getId():"";if(null!=v&&!k[A]){k[A]=!0;y.push(v);var C=null!=l[EditorUi.DIFF_UPDATE]?l[EditorUi.DIFF_UPDATE][A]:null;null!=C&&(this.updatePageRoot(v),null!=C.name&&v.setName(C.name),
-null!=C.view&&this.patchViewState(v,C.view),null!=C.cells&&this.patchPage(v,C.cells,z[v.getId()],x),!n||null==C.cells&&null==C.view||(v.needsUpdate=!0))}v=O[A];null!=v&&(delete O[A],m(L[v]));v=E[A];null!=v&&(delete E[A],q(v))}),q=mxUtils.bind(this,function(v){v=mxUtils.parseXml(v.data).documentElement;v=new DiagramPage(v);this.updatePageRoot(v);var A=L[v.getId()];null==A?m(v):(this.patchPage(A,this.diffPages([A],[v]),z[A.getId()],x),n&&(A.needsUpdate=!0))});m();for(R in O)m(L[O[R]]),delete O[R];for(R in E)q(E[R]),
+l[EditorUi.DIFF_UPDATE][R],null!=f.previous&&(O[f.previous]=R);if(null!=b){var c="";for(f=0;f<b.length;f++){var d=b[f].getId();L[d]=b[f];null!=O[c]||M[d]||null!=l[EditorUi.DIFF_UPDATE]&&null!=l[EditorUi.DIFF_UPDATE][d]&&null!=l[EditorUi.DIFF_UPDATE][d].previous||(O[c]=d);c=d}}var k={},m=mxUtils.bind(this,function(v){var A=null!=v?v.getId():"";if(null!=v&&!k[A]){k[A]=!0;y.push(v);var B=null!=l[EditorUi.DIFF_UPDATE]?l[EditorUi.DIFF_UPDATE][A]:null;null!=B&&(this.updatePageRoot(v),null!=B.name&&v.setName(B.name),
+null!=B.view&&this.patchViewState(v,B.view),null!=B.cells&&this.patchPage(v,B.cells,z[v.getId()],x),!n||null==B.cells&&null==B.view||(v.needsUpdate=!0))}v=O[A];null!=v&&(delete O[A],m(L[v]));v=E[A];null!=v&&(delete E[A],q(v))}),q=mxUtils.bind(this,function(v){v=mxUtils.parseXml(v.data).documentElement;v=new DiagramPage(v);this.updatePageRoot(v);var A=L[v.getId()];null==A?m(v):(this.patchPage(A,this.diffPages([A],[v]),z[A.getId()],x),n&&(A.needsUpdate=!0))});m();for(R in O)m(L[O[R]]),delete O[R];for(R in E)q(E[R]),
delete E[R];return y};EditorUi.prototype.patchViewState=function(b,l){if(null!=b.viewState&&null!=l){b==this.currentPage&&(b.viewState=this.editor.graph.getViewState());for(var n in l)try{this.patchViewStateProperty(b,l,n)}catch(f){}b==this.currentPage&&this.editor.graph.setViewState(b.viewState,!0)}};EditorUi.prototype.patchViewStateProperty=function(b,l,n){b.viewState[n]=JSON.parse(l[n])};
EditorUi.prototype.createParentLookup=function(b,l){function n(L){var O=f[L];null==O&&(O={inserted:[],moved:{}},f[L]=O);return O}var f={};if(null!=l[EditorUi.DIFF_INSERT])for(var x=0;x<l[EditorUi.DIFF_INSERT].length;x++){var z=l[EditorUi.DIFF_INSERT][x],y=null!=z.parent?z.parent:"",E=null!=z.previous?z.previous:"";n(y).inserted[E]=z}if(null!=l[EditorUi.DIFF_UPDATE])for(var M in l[EditorUi.DIFF_UPDATE])z=l[EditorUi.DIFF_UPDATE][M],null!=z.previous&&(y=z.parent,null==y&&(x=b.getCell(M),null!=x&&(x=
b.getParent(x),null!=x&&(y=x.getId()))),null!=y&&(n(y).moved[z.previous]=M));return f};
@@ -13962,8 +13968,8 @@ DrawioFileSync.prototype.updateDescriptor=function(b){this.file.setDescriptor(b)
DrawioFileSync.prototype.catchup=function(b,l,n,f,x){if(null!=b&&(null==f||!f())){var z=this.file.getCurrentRevisionId(),y=this.file.getDescriptorRevisionId(b);EditorUi.debug("DrawioFileSync.catchup",[this],"desc",[b],"from",z,"to",y,"immediate",x,"valid",this.isValidState());if(z==y)this.file.patchDescriptor(this.file.getDescriptor(),b),"1"==urlParams.test&&EditorUi.debug("DrawioFileSync.catchup",[this],"up to date","cleanup",this.cleanupThread,"checksum",this.ui.getHashValueForPages(this.ui.pages)),
document.hidden||"1"!=urlParams.test||"1"!=urlParams.checksum||null!=this.cleanupThread||this.testChecksum(),null!=l&&l(!0);else if(this.isValidState()){var E=this.file.getDescriptorChecksum(b),M=this.file.getDescriptorSecret(b);if(null!=E&&E==this.ui.getHashValueForPages(this.ui.pages))this.fastForward(b),null!=l&&l(!0);else if(Editor.enableRealtimeCache&&null!=M&&"1"!=urlParams.lockdown){var L=0,O=!1,R=mxUtils.bind(this,function(){if(null==f||!f())if(z!=this.file.getCurrentRevisionId())null!=l&&
l(!0);else if(this.isValidState()){this.scheduleCleanup(!0);var c=!0,d=window.setTimeout(mxUtils.bind(this,function(){c=!1;this.reload(l,n,f,null,x)}),this.ui.timeout);mxUtils.get(EditorUi.cacheUrl+"?id="+encodeURIComponent(this.channelId)+"&from="+encodeURIComponent(z)+"&to="+encodeURIComponent(y)+(null!=M?"&secret="+encodeURIComponent(M):""),mxUtils.bind(this,function(k){this.file.stats.bytesReceived+=k.getText().length;window.clearTimeout(d);if(c&&(null==f||!f()))if(z!=this.file.getCurrentRevisionId())null!=
-l&&l(!0);else if(this.isValidState()){var m=null,q=[];EditorUi.debug("DrawioFileSync.doCatchup",[this],"request",[k],"status",k.getStatus(),"cacheReadyRetryCount",L,"maxCacheReadyRetries",this.maxCacheReadyRetries);if(200<=k.getStatus()&&299>=k.getStatus()&&0<k.getText().length)try{var v=JSON.parse(k.getText());if(null!=v&&0<v.length)for(var A=0;A<v.length;A++){var C=this.stringToObject(v[A]);if(C.v>DrawioFileSync.PROTOCOL){O=!0;q=[];break}else if(C.v===DrawioFileSync.PROTOCOL&&null!=C.d)m=C.d.checksum,
-q.push(C.d.patch);else{O=!0;q=[];break}}EditorUi.debug("DrawioFileSync.doCatchup",[this],"response",[v],"status",O?"failed":"ok","temp",q,"checksum",m)}catch(D){q=[],null!=window.console&&"1"==urlParams.test&&console.log(D)}try{0<q.length?(this.file.stats.cacheHits++,this.merge(q,m,b,l,n,f,x)):L<=this.maxCacheReadyRetries-1&&!O&&401!=k.getStatus()&&503!=k.getStatus()&&410!=k.getStatus()?(L++,this.file.stats.cacheMiss++,window.setTimeout(R,(L+1)*this.cacheReadyDelay)):(this.file.stats.cacheFail++,
+l&&l(!0);else if(this.isValidState()){var m=null,q=[];EditorUi.debug("DrawioFileSync.doCatchup",[this],"request",[k],"status",k.getStatus(),"cacheReadyRetryCount",L,"maxCacheReadyRetries",this.maxCacheReadyRetries);if(200<=k.getStatus()&&299>=k.getStatus()&&0<k.getText().length)try{var v=JSON.parse(k.getText());if(null!=v&&0<v.length)for(var A=0;A<v.length;A++){var B=this.stringToObject(v[A]);if(B.v>DrawioFileSync.PROTOCOL){O=!0;q=[];break}else if(B.v===DrawioFileSync.PROTOCOL&&null!=B.d)m=B.d.checksum,
+q.push(B.d.patch);else{O=!0;q=[];break}}EditorUi.debug("DrawioFileSync.doCatchup",[this],"response",[v],"status",O?"failed":"ok","temp",q,"checksum",m)}catch(D){q=[],null!=window.console&&"1"==urlParams.test&&console.log(D)}try{0<q.length?(this.file.stats.cacheHits++,this.merge(q,m,b,l,n,f,x)):L<=this.maxCacheReadyRetries-1&&!O&&401!=k.getStatus()&&503!=k.getStatus()&&410!=k.getStatus()?(L++,this.file.stats.cacheMiss++,window.setTimeout(R,(L+1)*this.cacheReadyDelay)):(this.file.stats.cacheFail++,
this.reload(l,n,f,null,x))}catch(D){null!=n&&n(D)}}else null!=n&&n()}),n)}else null!=n&&n()});window.setTimeout(R,this.cacheReadyDelay)}else this.reload(l,n,f,null,x)}else null!=n&&n()}};DrawioFileSync.prototype.reload=function(b,l,n,f,x){EditorUi.debug("DrawioFileSync.reload",[this],"immediate",x);this.file.updateFile(mxUtils.bind(this,function(){this.lastModified=this.file.getLastModifiedDate();this.updateStatus();this.start();null!=b&&b()}),mxUtils.bind(this,function(z){null!=l&&l(z)}),n,f,x)};
DrawioFileSync.prototype.descriptorChanged=function(b){this.lastModified=this.file.getLastModifiedDate();if(null!=this.channelId){var l=this.objectToString(this.createMessage({a:"desc",m:this.lastModified.getTime()})),n=this.file.getCurrentRevisionId(),f=this.objectToString({});mxUtils.post(EditorUi.cacheUrl,this.getIdParameters()+"&from="+encodeURIComponent(b)+"&to="+encodeURIComponent(n)+"&msg="+encodeURIComponent(l)+"&data="+encodeURIComponent(f));this.file.stats.bytesSent+=f.length;this.file.stats.msgSent++;
EditorUi.debug("DrawioFileSync.descriptorChanged",[this],"from",b,"to",n)}this.updateStatus()};DrawioFileSync.prototype.objectToString=function(b){b=Graph.compress(JSON.stringify(b));null!=this.key&&"undefined"!==typeof CryptoJS&&(b=CryptoJS.AES.encrypt(b,this.key).toString());return b};DrawioFileSync.prototype.stringToObject=function(b){null!=this.key&&"undefined"!==typeof CryptoJS&&(b=CryptoJS.AES.decrypt(b,this.key).toString(CryptoJS.enc.Utf8));return JSON.parse(Graph.decompress(b))};
@@ -14056,7 +14062,7 @@ App.prototype.updateDocumentTitle=function(){var b=this.editor.appName,l=this.ge
App.prototype.getThumbnail=function(b,l,n){n=null!=n?n:0;var f=!1;try{var x=!0,z=window.setTimeout(mxUtils.bind(this,function(){x=!1;l(null)}),this.timeout),y=mxUtils.bind(this,function(W){window.clearTimeout(z);x&&l(W)});null==this.thumbImageCache&&(this.thumbImageCache={});var E=this.editor.graph,M=E.backgroundImage;if(null!=this.pages&&this.currentPage!=this.pages[0]){var L=E.getGlobalVariable;E=this.createTemporaryGraph(E.getStylesheet());E.setBackgroundImage=this.editor.graph.setBackgroundImage;
var O=this.pages[0];this.currentPage==O?E.setBackgroundImage(M):null!=O.viewState&&null!=O.viewState&&(M=O.viewState.backgroundImage,E.setBackgroundImage(M));E.getGlobalVariable=function(W){return"page"==W?O.getName():"pagenumber"==W?1:L.apply(this,arguments)};E.getGlobalVariable=L;document.body.appendChild(E.container);E.model.setRoot(O.root)}if(mxClient.IS_CHROMEAPP||Editor.useCanvasForExport)this.editor.exportToCanvas(mxUtils.bind(this,function(W){try{E!=this.editor.graph&&null!=E.container.parentNode&&
E.container.parentNode.removeChild(E.container)}catch(p){W=null}y(W)}),b,this.thumbImageCache,"#ffffff",function(){y()},null,null,null,null,null,null,E,n,null,null,null,"diagram",null),f=!0;else if(Editor.canvasSupported&&null!=this.getCurrentFile()){var R=document.createElement("canvas"),c=E.getGraphBounds(),d=E.view.translate,k=E.view.scale;null!=M&&(c=mxRectangle.fromRectangle(c),c.add(new mxRectangle((d.x+M.x)*k,(d.y+M.y)*k,M.width*k,M.height*k)));var m=b/c.width;m=Math.min(1,Math.min(3*b/(4*
-c.height),m));var q=Math.floor(c.x),v=Math.floor(c.y);R.setAttribute("width",Math.ceil(m*(c.width+4)));R.setAttribute("height",Math.ceil(m*(c.height+4)));var A=R.getContext("2d");A.scale(m,m);A.translate(-q,-v);var C=E.background;if(null==C||""==C||C==mxConstants.NONE)C="#ffffff";A.save();A.fillStyle=C;A.fillRect(q,v,Math.ceil(c.width+4),Math.ceil(c.height+4));A.restore();if(null!=M){var D=new Image;D.src=M.src;A.drawImage(D,M.x*m,M.y*m,M.width*m,M.height*m)}var J=new mxJsCanvas(R),F=new mxAsyncCanvas(this.thumbImageCache);
+c.height),m));var q=Math.floor(c.x),v=Math.floor(c.y);R.setAttribute("width",Math.ceil(m*(c.width+4)));R.setAttribute("height",Math.ceil(m*(c.height+4)));var A=R.getContext("2d");A.scale(m,m);A.translate(-q,-v);var B=E.background;if(null==B||""==B||B==mxConstants.NONE)B="#ffffff";A.save();A.fillStyle=B;A.fillRect(q,v,Math.ceil(c.width+4),Math.ceil(c.height+4));A.restore();if(null!=M){var D=new Image;D.src=M.src;A.drawImage(D,M.x*m,M.y*m,M.width*m,M.height*m)}var J=new mxJsCanvas(R),F=new mxAsyncCanvas(this.thumbImageCache);
J.images=this.thumbImageCache.images;var T=new mxImageExport;T.drawShape=function(W,p){W.shape instanceof mxShape&&W.shape.checkBounds()&&(p.save(),p.translate(.5,.5),W.shape.paint(p),p.translate(-.5,-.5),p.restore())};T.drawText=function(W,p){};T.drawState(E.getView().getState(E.model.root),F);F.finish(mxUtils.bind(this,function(){try{T.drawState(E.getView().getState(E.model.root),J),E!=this.editor.graph&&null!=E.container.parentNode&&E.container.parentNode.removeChild(E.container)}catch(W){R=null}y(R)}));
f=!0}}catch(W){f=!1,null!=E&&E!=this.editor.graph&&null!=E.container.parentNode&&E.container.parentNode.removeChild(E.container)}f||window.clearTimeout(z);return f};
(function(){var b=EditorUi.prototype.setMode;App.prototype.setMode=function(l,n){b.apply(this,arguments);null!=this.mode&&(Editor.useLocalStorage=this.mode==App.MODE_BROWSER);if(null!=this.appIcon){var f=this.getCurrentFile();l=null!=f?f.getMode():l;null==this.updateTitleListener&&(this.updateTitleListener=mxUtils.bind(this,function(){l==App.MODE_GOOGLE?this.appIcon.setAttribute("title",mxResources.get("openIt",[mxResources.get("googleDrive")])):l==App.MODE_DROPBOX?this.appIcon.setAttribute("title",
@@ -14087,9 +14093,10 @@ y?2:6<y?4:3;E=new CreateDialog(this,E,mxUtils.bind(this,function(L,O){if(null==O
["window.opener."+f]));}catch(y){this.handleError(y,mxResources.get("errorLoadingFile"))}else this.loadTemplate(f,function(y){z(y)},mxUtils.bind(this,function(y){this.handleError(y,mxResources.get("errorLoadingFile"),x)}))}else(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.state&&null!=this.stateArg&&"open"==this.stateArg.action?null!=this.stateArg.ids&&(window.history&&window.history.replaceState&&window.history.replaceState(null,null,window.location.pathname+this.getSearch(["state",
"splash"])),window.location.hash="G"+this.stateArg.ids[0]):(null==window.location.hash||1>=window.location.hash.length)&&null!=this.drive&&null!=this.stateArg&&"create"==this.stateArg.action?(window.history&&window.history.replaceState&&window.history.replaceState(null,null,window.location.pathname+this.getSearch(["state"])),this.setMode(App.MODE_GOOGLE),"0"==urlParams.splash?this.createFile(null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename):this.actions.get("new").funct()):
(null!=urlParams.open&&window.history&&window.history.replaceState&&(window.history.replaceState(null,null,window.location.pathname+this.getSearch(["open","sketch"])),window.location.hash=urlParams.open),n())}}catch(y){this.handleError(y)}};
-App.prototype.executeCreateObject=function(b,l){try{EditorUi.debug("App.executeCreateObject",[this],"value",[b]);var n=mxUtils.bind(this,function(z){this.spinner.stop();this.createFile(null!=b.filename?b.filename:this.defaultFilename,z,null,null,mxUtils.bind(this,function(){null!=urlParams.pv&&this.setPageVisible("1"==urlParams.pv);null!=urlParams.grid&&this.editor.graph.setGridEnabled("1"==urlParams.grid);this.initialFitDiagram(1.2);null!=l&&l();b.type="xml";b.compressed=!0;b.data=Graph.compress(z);
-window.location.hash="create="+encodeURIComponent(JSON.stringify(b))}),!0,null,!0)}),f=b.data;b.compressed&&(f=Graph.decompress(f));if("mermaid"==b.type)if(window.isMermaidEnabled)this.parseMermaidDiagram(f,null,mxUtils.bind(this,function(z){n(z)}),mxUtils.bind(this,function(z){this.handleError(z)}),null,!0);else throw Error(mxResources.get("serviceUnavailableOrBlocked"));else if("generate"==b.type&&this.spinner.spin(document.body,mxResources.get("generate")+" '"+f+"'"))this.generateOpenAiMermaidDiagram(f,
-function(z){n(z)},mxUtils.bind(this,function(z){this.handleError(z,mxResources.get("errorLoadingFile"))}),!0,{complexity:"high"});else if("csv"==b.type){var x=this.createTemporaryGraph(this.editor.graph.getStylesheet());this.importCsv(f,mxUtils.bind(this,function(){var z=new mxCodec;n(mxUtils.getXml(z.encode(x.getModel())))}),x,!0)}else if("xml"==b.type)n(f);else throw Error(mxResources.get("invalidCallFnNotFound",[b.type]));}catch(z){this.handleError(z,mxResources.get("errorLoadingFile"))}};
+App.prototype.executeCreateObject=function(b,l){try{EditorUi.debug("App.executeCreateObject",[this],"value",[b]);var n=mxUtils.bind(this,function(z){this.spinner.stop();this.createFile(null!=b.filename?b.filename:this.defaultFilename,z,null,null,mxUtils.bind(this,function(){null!=urlParams.pv&&this.setPageVisible("1"==urlParams.pv);null!=urlParams.grid&&this.editor.graph.setGridEnabled("1"==urlParams.grid);this.initialFitDiagram(1.2);if("pop"==b.effect){var y=this.editor.graph,E=y.model.getDescendants(y.model.getRoot()),
+M=y.getNodesForCells(E);Graph.setOpacityForNodes(M,0);window.setTimeout(mxUtils.bind(this,function(){var L=y.createPopAnimations(E,!0);y.executeAnimations(L)}),200)}null!=l&&l();b.type="xml";b.compressed=!0;b.data=Graph.compress(z);window.location.hash="create="+encodeURIComponent(JSON.stringify(b))}),!0,null,!0)}),f=b.data;b.compressed&&(f=Graph.decompress(f));if("mermaid"==b.type)if(window.isMermaidEnabled)this.parseMermaidDiagram(f,null,mxUtils.bind(this,function(z){n(z)}),mxUtils.bind(this,function(z){this.handleError(z)}),
+null,!0);else throw Error(mxResources.get("serviceUnavailableOrBlocked"));else if("generate"==b.type&&this.spinner.spin(document.body,mxResources.get("generate")+" '"+f+"'"))this.generateOpenAiMermaidDiagram(f,function(z){n(z)},mxUtils.bind(this,function(z){this.handleError(z,mxResources.get("errorLoadingFile"))}),!0,{complexity:"high"});else if("csv"==b.type){var x=this.createTemporaryGraph(this.editor.graph.getStylesheet());this.importCsv(f,mxUtils.bind(this,function(){var z=new mxCodec;n(mxUtils.getXml(z.encode(x.getModel())))}),
+x,!0)}else if("xml"==b.type)n(f);else throw Error(mxResources.get("invalidCallFnNotFound",[b.type]));}catch(z){this.handleError(z,mxResources.get("errorLoadingFile"))}};
App.prototype.openGenerateDialog=function(b){null==this.chatWindow?(this.chatWindow=new ChatWindow(this,224,104,360,480),this.chatWindow.window.addListener("show",mxUtils.bind(this,function(){this.fireEvent(new mxEventObject("chat"))})),this.chatWindow.window.addListener("hide",function(){this.fireEvent(new mxEventObject("chat"))}),this.chatWindow.window.setVisible(!0),this.fireEvent(new mxEventObject("chat"))):this.chatWindow.window.setVisible(!0);null!=b&&this.chatWindow.generate(b)};
App.prototype.openTemplateDialog=function(b){var l=this.editor.graph;l.isEnabled()&&!l.isCellLocked(l.getDefaultParent())&&(b=new NewDialog(this,null,!1,mxUtils.bind(this,function(n){this.hideDialog();if(null!=n){var f=this.editor.graph.getFreeInsertPoint(!0);l.setSelectionCells(this.importXml(n,Math.max(f.x,20),Math.max(f.y,20),!0,null,null,!0));l.scrollCellToVisible(l.getSelectionCell())}}),null,null,null,null,null,null,null,null,null,null,!1,mxResources.get("insert"),null,null,b),this.showDialog(b.container,
620,460,!0,!0,mxUtils.bind(this,function(){this.sidebar.hideTooltip()})),b.init())};App.prototype.loadDraft=function(b,l){this.createFile(this.defaultFilename,b,null,null,mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,function(){var n=this.getCurrentFile();null!=n&&(n.fileChanged(),null!=l&&l())}),0)}),null,null,!0)};
@@ -14148,12 +14155,12 @@ null!=f&&f();else if("S"==b.charAt(0))this.spinner.stop(),this.alert("[Deprecati
[this],"evt",[q]);if(q.source==O)try{"create"==q.data.action&&null!=q.data.data&&(mxEvent.removeListener(window,"message",R),this.executeCreateObject(q.data.data))}catch(v){c=null}});mxEvent.addListener(window,"message",R);O.postMessage(JSON.stringify({event:"ready"}),"*")}else this.executeCreateObject(L)}else if("R"==b.charAt(0)){this.spinner.stop();var c=decodeURIComponent(b.substring(1));"<"!=c.charAt(0)&&(c=Graph.decompress(c));L=new LocalFile(this,c,null!=urlParams.title?decodeURIComponent(urlParams.title):
this.defaultFilename,!0);L.getHash=function(){return b};this.fileLoaded(L);null!=f&&f()}else if("E"==b.charAt(0))null==this.getCurrentFile()?this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile")):this.remoteInvoke("getDraftFileContent",null,null,mxUtils.bind(this,function(q,v){this.spinner.stop();this.fileLoaded(new EmbedFile(this,q,v));null!=f&&f()}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},
mxResources.get("errorLoadingFile"))}));else if("U"==b.charAt(0)){var d=decodeURIComponent(b.substring(1)),k=mxUtils.bind(this,function(){if("https://drive.google.com/uc?id="!=d.substring(0,31)||null==this.drive&&"function"!==typeof window.DriveClient)return!1;this.hideDialog();var q=mxUtils.bind(this,function(){this.spinner.stop();if(null!=this.drive){var v=d.substring(31,d.lastIndexOf("&ex"));this.loadFile("G"+v,l,null,mxUtils.bind(this,function(){var A=this.getCurrentFile();null!=A&&this.editor.chromeless&&
-!this.editor.editable&&(A.getHash=function(){return"G"+v},window.location.hash="#"+A.getHash());null!=f&&f()}));return!0}return!1});!q()&&this.spinner.spin(document.body,mxResources.get("loading"))&&this.addListener("clientLoaded",q);return!0});this.loadTemplate(d,mxUtils.bind(this,function(q){this.spinner.stop();if(null!=q&&0<q.length){var v=this.defaultFilename;if(null==urlParams.title&&"1"!=urlParams.notitle){var A=d,C=d.lastIndexOf("."),D=A.lastIndexOf("/");C>D&&0<D&&(A=A.substring(D+1,C),C=d.substring(C),
-Editor.useCanvasForExport||".png"!=C||(C=".drawio"),".svg"===C||".xml"===C||".html"===C||".png"===C||".drawio"===C)&&(v=A+C)}q=new LocalFile(this,q,null!=urlParams.title?decodeURIComponent(urlParams.title):v,!0);q.getHash=function(){return b};this.fileLoaded(q,!0)?null!=f&&f():k()||this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"))}else k()||this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"))}),mxUtils.bind(this,
+!this.editor.editable&&(A.getHash=function(){return"G"+v},window.location.hash="#"+A.getHash());null!=f&&f()}));return!0}return!1});!q()&&this.spinner.spin(document.body,mxResources.get("loading"))&&this.addListener("clientLoaded",q);return!0});this.loadTemplate(d,mxUtils.bind(this,function(q){this.spinner.stop();if(null!=q&&0<q.length){var v=this.defaultFilename;if(null==urlParams.title&&"1"!=urlParams.notitle){var A=d,B=d.lastIndexOf("."),D=A.lastIndexOf("/");B>D&&0<D&&(A=A.substring(D+1,B),B=d.substring(B),
+Editor.useCanvasForExport||".png"!=B||(B=".drawio"),".svg"===B||".xml"===B||".html"===B||".png"===B||".drawio"===B)&&(v=A+B)}q=new LocalFile(this,q,null!=urlParams.title?decodeURIComponent(urlParams.title):v,!0);q.getHash=function(){return b};this.fileLoaded(q,!0)?null!=f&&f():k()||this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"))}else k()||this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"))}),mxUtils.bind(this,
function(){k()||(this.spinner.stop(),this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile")))}),null!=urlParams["template-filename"]?decodeURIComponent(urlParams["template-filename"]):null)}else{var m=this.getModeForChar(b.charAt(0));mxUtils.bind(this,function(){var q=this.getServiceForName(m);if(null==q)this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var A=this.getCurrentFile();
-window.location.hash=null!=A?A.getHash():""}));else{var v=b.charAt(0);b=decodeURIComponent(b.substring(1));q.getFile(b,mxUtils.bind(this,function(A){this.spinner.stop();this.fileLoaded(A);var C=this.getCurrentFile();if(null==C)window.location.hash="",this.showSplash();else if(this.editor.chromeless&&!this.editor.editable){C.getHash=function(){return v+b};A="#"+C.getHash();try{var D=this.getHashObject();null==D||mxUtils.isEmptyObject(D)||(A=A+"#"+encodeURIComponent(JSON.stringify(D)))}catch(J){}window.location.replace(A)}else A==
-C&&null==A.getMode()&&this.updateStatus(mxUtils.bind(this,function(){var J=mxResources.get("copyCreated");this.editor.setStatus('<div title="'+J+'" class="geStatusAlert">'+J+"</div>")}));null!=f&&f()}),mxUtils.bind(this,function(A){null!=window.console&&null!=A&&console.log("error in loadFile:",b,A);var C=mxUtils.bind(this,function(){var D=this.getCurrentFile();null==D?(window.location.hash="",this.showSplash()):window.location.hash="#"+D.getHash()});null==A||"AbortError"!=A.name?this.handleError(A,
-null!=A?mxResources.get("errorLoadingFile"):null,C,null,null,"#"+v+b):C()}))}})()}}),y=this.getCurrentFile(),E=mxUtils.bind(this,function(){x||null==y||!y.isModified()?z():this.confirm(mxResources.get("allChangesLost"),mxUtils.bind(this,function(){null!=y&&(window.location.hash=y.getHash())}),z,mxResources.get("cancel"),mxResources.get("discardChanges"))});null==b||0==b.length||null==l&&null!=y&&!y.isModified()&&this.isBlankFile()?E():null==y||l?E():this.showDialog((new PopupDialog(this,this.getUrl()+
+window.location.hash=null!=A?A.getHash():""}));else{var v=b.charAt(0);b=decodeURIComponent(b.substring(1));q.getFile(b,mxUtils.bind(this,function(A){this.spinner.stop();this.fileLoaded(A);var B=this.getCurrentFile();if(null==B)window.location.hash="",this.showSplash();else if(this.editor.chromeless&&!this.editor.editable){B.getHash=function(){return v+b};A="#"+B.getHash();try{var D=this.getHashObject();null==D||mxUtils.isEmptyObject(D)||(A=A+"#"+encodeURIComponent(JSON.stringify(D)))}catch(J){}window.location.replace(A)}else A==
+B&&null==A.getMode()&&this.updateStatus(mxUtils.bind(this,function(){var J=mxResources.get("copyCreated");this.editor.setStatus('<div title="'+J+'" class="geStatusAlert">'+J+"</div>")}));null!=f&&f()}),mxUtils.bind(this,function(A){null!=window.console&&null!=A&&console.log("error in loadFile:",b,A);var B=mxUtils.bind(this,function(){var D=this.getCurrentFile();null==D?(window.location.hash="",this.showSplash()):window.location.hash="#"+D.getHash()});null==A||"AbortError"!=A.name?this.handleError(A,
+null!=A?mxResources.get("errorLoadingFile"):null,B,null,null,"#"+v+b):B()}))}})()}}),y=this.getCurrentFile(),E=mxUtils.bind(this,function(){x||null==y||!y.isModified()?z():this.confirm(mxResources.get("allChangesLost"),mxUtils.bind(this,function(){null!=y&&(window.location.hash=y.getHash())}),z,mxResources.get("cancel"),mxResources.get("discardChanges"))});null==b||0==b.length||null==l&&null!=y&&!y.isModified()&&this.isBlankFile()?E():null==y||l?E():this.showDialog((new PopupDialog(this,this.getUrl()+
"#"+b,null,E)).container,340,140,!0,!0)};
App.prototype.getLibraryStorageHint=function(b){var l=b.getTitle();b.constructor!=LocalLibrary&&(l+="\n"+b.getHash());b.constructor==DriveLibrary?l+=" ("+mxResources.get("googleDrive")+")":b.constructor==GitHubLibrary?l+=" ("+mxResources.get("github")+")":b.constructor==TrelloLibrary?l+=" ("+mxResources.get("trello")+")":b.constructor==DropboxLibrary?l+=" ("+mxResources.get("dropbox")+")":b.constructor==OneDriveLibrary?l+=" ("+mxResources.get("oneDrive")+")":b.constructor==StorageLibrary?l+=" ("+
mxResources.get("browser")+")":b.constructor==LocalLibrary&&(l+=" ("+mxResources.get("device")+")");return l};App.prototype.restoreLibraries=function(){function b(n){for(var f=0;f<n.length;f++)""!=n[f]&&0>mxUtils.indexOf(l,n[f])&&l.push(n[f])}var l=[];b(mxSettings.getCustomLibraries());b((urlParams.clibs||"").split(";"));this.loadLibraries(l)};
@@ -14234,7 +14241,7 @@ App.prototype.getCurrentUser=function(){var b=null;null!=this.drive&&null!=this.
Editor.prototype.resetGraph=function(){editorResetGraph.apply(this,arguments);null==this.graph.defaultPageFormat&&(this.graph.pageFormat=mxSettings.getPageFormat())};(function(){var b=mxPopupMenu.prototype.showMenu;mxPopupMenu.prototype.showMenu=function(){this.div.style.overflowY="auto";this.div.style.overflowX="hidden";this.div.style.maxHeight=Math.max(document.body.clientHeight,document.documentElement.clientHeight)-(EditorUi.isElectronApp?50:10)+"px";b.apply(this,arguments)};Menus.prototype.createHelpLink=function(n){return this.editorUi.createHelpIcon(n)};Menus.prototype.addLinkToItem=function(n,f){null!=n&&n.firstChild.nextSibling.appendChild(this.createHelpLink(f))};
Menus.prototype.removeCustomFont=function(n,f){for(var x=0;x<this.customFonts.length;x++)if(this.customFonts[x].name==n&&this.customFonts[x].url==f){this.customFonts.splice(x,1);this.editorUi.fireEvent(new mxEventObject("customFontsChanged","customFonts",this.customFonts));break}};Menus.prototype.containsFont=function(n,f){for(var x=0;x<this.customFonts.length;x++)if(this.customFonts[x].name==n&&this.customFonts[x].url==f)return!0;for(x=0;x<this.defaultFonts.length;x++){var z=this.defaultFonts[x];
if("string"!==typeof z&&z.fontFamily==n&&z.fontUrl==f||"string"===typeof z&&z==n&&null==f)return!0}return!1};Menus.prototype.addCustomFont=function(n,f){null==n||this.containsFont(n,f)||(this.customFonts.push({name:n,url:f}),this.editorUi.fireEvent(new mxEventObject("customFontsChanged","customFonts",this.customFonts)))};var l=Menus.prototype.init;Menus.prototype.init=function(){function n(p,u,G){f.editor.isExportToCanvas()?f.showExportDialog(mxResources.get("image"),!1,mxResources.get("export"),
-"https://www.drawio.com/doc/faq/export-diagram",mxUtils.bind(this,function(I,H,g,t,B,K,Q,S,U,N,P,V,Y){var X=parseInt(I);!isNaN(X)&&0<X&&(f.exportImage(X/100,H&&"png"==p,g,t,B&&"png"==p,Q,!S,U,p,P,null,V,Y),null!=G&&G(I,H,g,t,B,K,Q,S,U,N,P,V,Y))}),!0,u,p,!0):f.isOffline()||mxClient.IS_IOS&&navigator.standalone||f.showRemoteExportDialog(mxResources.get("export"),null,mxUtils.bind(this,function(I,H,g,t,B){f.downloadFile(H&&"png"==p?"xmlpng":p,null,null,I,null,null,g,t,B)}),!1,!0)}l.apply(this,arguments);
+"https://www.drawio.com/doc/faq/export-diagram",mxUtils.bind(this,function(I,H,g,t,C,K,Q,S,U,N,P,V,Y){var X=parseInt(I);!isNaN(X)&&0<X&&(f.exportImage(X/100,H&&"png"==p,g,t,C&&"png"==p,Q,!S,U,p,P,null,V,Y),null!=G&&G(I,H,g,t,C,K,Q,S,U,N,P,V,Y))}),!0,u,p,!0):f.isOffline()||mxClient.IS_IOS&&navigator.standalone||f.showRemoteExportDialog(mxResources.get("export"),null,mxUtils.bind(this,function(I,H,g,t,C){f.downloadFile(H&&"png"==p?"xmlpng":p,null,null,I,null,null,g,t,C)}),!1,!0)}l.apply(this,arguments);
var f=this.editorUi,x=f.editor.graph,z=mxUtils.bind(x,x.isEnabled);"1"==urlParams.noFileMenu&&(this.defaultMenuItems=this.defaultMenuItems.filter(function(p){return"file"!=p}));f.actions.addAction("new...",function(){var p=f.isOffline(),u=new NewDialog(f,p,!(f.mode==App.MODE_DEVICE&&"chooseFileSystemEntries"in window));f.showDialog(u.container,p?350:620,p?70:460,!0,!0,function(G){null!=f.sidebar&&f.sidebar.hideTooltip();G&&null==f.getCurrentFile()&&f.showSplash()});u.init()});f.actions.put("insertTemplate",
new Action("template...",function(){f.openTemplateDialog()})).isEnabled=z;var y=f.actions.addAction("shareCursor",function(){f.setShareCursorPosition(!f.isShareCursorPosition())});y.setToggleAction(!0);y.setSelectedCallback(function(){return f.isShareCursorPosition()});y=f.actions.addAction("showRemoteCursors",function(){f.setShowRemoteCursors(!f.isShowRemoteCursors())});y.setToggleAction(!0);y.setSelectedCallback(function(){return f.isShowRemoteCursors()});y=f.actions.addAction("points",function(){f.editor.graph.view.setUnit(mxConstants.POINTS)});
y.setToggleAction(!0);y.setSelectedCallback(function(){return f.editor.graph.view.unit==mxConstants.POINTS});y=f.actions.addAction("inches",function(){f.editor.graph.view.setUnit(mxConstants.INCHES)});y.setToggleAction(!0);y.setSelectedCallback(function(){return f.editor.graph.view.unit==mxConstants.INCHES});y=f.actions.addAction("millimeters",function(){f.editor.graph.view.setUnit(mxConstants.MILLIMETERS)});y.setToggleAction(!0);y.setSelectedCallback(function(){return f.editor.graph.view.unit==mxConstants.MILLIMETERS});
@@ -14245,8 +14252,8 @@ new Action("light",function(p){f.setAndPersistDarkMode(!1)}));y.setToggleAction(
f.actions.addAction("properties...",function(){f.getPublicUrl(f.getCurrentFile(),function(p){p=new FilePropertiesDialog(f,p);f.showDialog(p.container,340,200,!0,!0);p.init()})}).isEnabled=z;window.mxFreehand&&(y=f.actions.put("insertFreehand",new Action("freehand",function(){x.isEnabled()&&(null==f.freehandWindow&&(f.freehandWindow=new FreehandWindow(f,document.body.offsetWidth-420,102,180,126,!0)),x.freehand.isDrawing()?x.freehand.stopDrawing():x.freehand.startDrawing(),f.freehandWindow.window.setVisible(x.freehand.isDrawing()))},
null,null,"X")),y.isEnabled=function(){return z()},y.setToggleAction(!0),y.setSelectedCallback(function(){return null!=f.freehandWindow&&f.freehandWindow.window.isVisible()}));f.actions.put("exportXml",new Action("formatXml...",function(){var p=document.createElement("div");p.style.whiteSpace="nowrap";var u=null==f.pages||1>=f.pages.length,G=document.createElement("h3");mxUtils.write(G,mxResources.get("formatXml"));G.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";p.appendChild(G);
G=document.createElement("div");G.className="geDialogSection";var I=f.addCheckbox(G,mxResources.get("selectionOnly"),!1,x.isSelectionEmpty()),H=f.addCheckbox(G,mxResources.get("compressed"),Editor.defaultCompressed),g=f.addCheckbox(G,mxResources.get("allPages"),!u,u);p.appendChild(G);mxEvent.addListener(I,"change",function(){I.checked?g.setAttribute("disabled","disabled"):g.removeAttribute("disabled")});p=new CustomDialog(f,p,mxUtils.bind(this,function(){f.downloadFile("xml",!H.checked,null,!I.checked,
-u||!g.checked)}),null,mxResources.get("export"));f.showDialog(p.container,300,200,!0,!0)}));Editor.enableExportUrl&&f.actions.put("exportUrl",new Action("url...",function(){f.showPublishLinkDialog(mxResources.get("url"),null,null,null,null,null,null,null,function(p,u,G,I,H,g,t,B,K,Q,S,U,N,P){t=[];I&&K&&(K=P?f.getHiddenTagsMap():null,t.push("tags="+encodeURIComponent(JSON.stringify(K||{}))));p=new EmbedDialog(f,f.createLink(p,u,N,I,H,g,null,!0,t,null,G,null,U));f.showDialog(p.container,450,270,!0,
-!0,null,!1,null,new mxRectangle(0,0,400,250));p.init()},null,!0,!0)}));f.actions.put("exportHtml",new Action("formatHtmlEmbedded...",function(){f.getPublicUrl(f.getCurrentFile(),function(p){f.showHtmlDialog(mxResources.get("export"),null,p,function(u,G,I,H,g,t,B,K,Q,S,U,N,P){f.createHtml(u,G,I,H,g,t,B,K,Q,S,U,mxUtils.bind(this,function(V,Y){var X=f.getBaseFilename(B);V='\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n<!DOCTYPE html>\n<html>\n<head>\n<title>'+
+u||!g.checked)}),null,mxResources.get("export"));f.showDialog(p.container,300,200,!0,!0)}));Editor.enableExportUrl&&f.actions.put("exportUrl",new Action("url...",function(){f.showPublishLinkDialog(mxResources.get("url"),null,null,null,null,null,null,null,function(p,u,G,I,H,g,t,C,K,Q,S,U,N,P){t=[];I&&K&&(K=P?f.getHiddenTagsMap():null,t.push("tags="+encodeURIComponent(JSON.stringify(K||{}))));p=new EmbedDialog(f,f.createLink(p,u,N,I,H,g,null,!0,t,null,G,null,U));f.showDialog(p.container,450,270,!0,
+!0,null,!1,null,new mxRectangle(0,0,400,250));p.init()},null,!0,!0)}));f.actions.put("exportHtml",new Action("formatHtmlEmbedded...",function(){f.getPublicUrl(f.getCurrentFile(),function(p){f.showHtmlDialog(mxResources.get("export"),null,p,function(u,G,I,H,g,t,C,K,Q,S,U,N,P){f.createHtml(u,G,I,H,g,t,C,K,Q,S,U,mxUtils.bind(this,function(V,Y){var X=f.getBaseFilename(C);V='\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n<!DOCTYPE html>\n<html>\n<head>\n<title>'+
mxUtils.htmlEntities(X)+'</title>\n<meta charset="utf-8"/>\n</head>\n<body>'+V+"\n"+Y+"\n</body>\n</html>";f.saveData(X+(".drawio"==X.substring(X.lenth-7)?"":".drawio")+".html","html",V,"text/html")}),N,P)})})}));f.actions.put("exportPdf",new Action("formatPdf...",function(){f.showPrintDialog(mxResources.get("formatPdf"),EditorUi.isElectronApp||!f.isOffline()&&!f.printPdfExport?mxUtils.bind(this,function(p,u){p=null!=f.pages?f.pages.length:1;var G=null==f.pages||1>=f.pages.length,I=f.getPageIndex(f.currentPage);
I=null!=I?I+1:1;f.downloadFile("pdf",null,null,!u.selection,G||!u.allPages&&u.pagesFrom==I&&u.pagesTo==I,!u.crop,u.transparent,u.scale,null,u.grid,u.includeCopy,u.allPages||u.pagesFrom==I&&u.pagesTo==I?null:{from:Math.max(0,Math.min(p-1,u.pagesFrom-1)),to:Math.max(0,Math.min(p-1,u.pagesTo-1))},u.border,u.fit,u.sheetsAcross,u.sheetsDown,u.shadows)}):null,mxResources.get("export"))}));f.actions.addAction("open...",function(){f.pickFile()});f.actions.addAction("close",function(){function p(){null!=u&&
u.removeDraft();f.fileLoaded(new LocalFile(f,f.emptyDiagramXml,null,!0))}var u=f.getCurrentFile();null!=u&&u.isModified()?f.confirm(mxResources.get("allChangesLost"),null,p,mxResources.get("cancel"),mxResources.get("discardChanges")):p()});f.actions.addAction("editShape...",mxUtils.bind(this,function(){if(1==x.getSelectionCount()){var p=x.getSelectionCell(),u=x.view.getState(p);null!=u&&null!=u.shape&&null!=u.shape.stencil&&(p=new EditShapeDialog(f,p,mxResources.get("editShape")),f.showDialog(p.container,
@@ -14258,7 +14265,7 @@ new ChangePageSetup(f);p.ignoreColor=!0;p.ignoreImage=!0;p.adaptiveColors="auto"
function(){var p=new ChangePageSetup(f);p.ignoreColor=!0;p.ignoreImage=!0;p.adaptiveColors="none";x.model.execute(p)}));y.setToggleAction(!0);y.setSelectedCallback(function(){return"none"==x.adaptiveColors});this.put("adaptiveColors",new Menu(mxUtils.bind(this,function(p,u){this.addMenuItems(p,["defaultAdaptiveColors","-","automaticAdaptiveColors","simpleAdaptiveColors","noAdaptiveColors"],u)})));isLocalStorage&&(y=f.actions.addAction("showStartScreen",function(){mxSettings.setShowStartScreen(!mxSettings.getShowStartScreen());
urlParams.splash=mxSettings.getShowStartScreen()?"1":"0";mxSettings.save()}),y.setToggleAction(!0),y.setSelectedCallback(function(){return mxSettings.getShowStartScreen()}));var E=f.actions.addAction("autosave",function(){f.editor.setAutosave(!f.editor.autosave)});E.setToggleAction(!0);E.setSelectedCallback(function(){return E.isEnabled()&&f.editor.autosave});f.actions.addAction("editGeometry...",function(){for(var p=x.getSelectionCells(),u=[],G=0;G<p.length;G++)x.getModel().isVertex(p[G])&&u.push(p[G]);
0<u.length&&(p=new EditGeometryDialog(f,u),f.showDialog(p.container,200,270,!0,!0),p.init())},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+M");f.actions.addAction("copyStyle",function(){if(x.isEnabled()&&1==x.getSelectionCount()){var p=x.getSelectionCell(),u=x.getCellStyle(p,!1);f.copiedStyle={};var G=[],I=[],H;for(H in u)G.push(u[H]),I.push(H);x.copyCellStyles([p],I,G,f.copiedStyle,f.copiedStyle,null,null,null,!0)}},null,null,Editor.altKey+"+C");f.actions.addAction("pasteStyle",function(){x.isEnabled()&&
-!x.isSelectionEmpty()&&null!=f.copiedStyle&&x.pasteCellStyles(x.includeDescendants(x.getSelectionCells()),f.copiedStyle,f.copiedStyle,!0)},null,null,Editor.altKey+"+V");f.actions.put("exportSvg",new Action("formatSvg...",function(){f.showExportDialog(mxResources.get("formatSvg"),!0,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram",mxUtils.bind(this,function(p,u,G,I,H,g,t,B,K,Q,S,U,N,P){p=parseInt(p);f.lastExportSvgEditable=H;!isNaN(p)&&0<p&&f.exportSvg(p/100,u,G,I,H,g,t,!B,
+!x.isSelectionEmpty()&&null!=f.copiedStyle&&x.pasteCellStyles(x.includeDescendants(x.getSelectionCells()),f.copiedStyle,f.copiedStyle,!0)},null,null,Editor.altKey+"+V");f.actions.put("exportSvg",new Action("formatSvg...",function(){f.showExportDialog(mxResources.get("formatSvg"),!0,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram",mxUtils.bind(this,function(p,u,G,I,H,g,t,C,K,Q,S,U,N,P){p=parseInt(p);f.lastExportSvgEditable=H;!isNaN(p)&&0<p&&f.exportSvg(p/100,u,G,I,H,g,t,!C,
K,Q,U,N,P)}),!0,f.lastExportSvgEditable,"svg",!0)}));f.actions.put("exportPng",new Action("formatPng...",function(){n("png",f.lastExportPngEditable,function(p,u,G,I,H){f.lastExportPngEditable=H})}));f.actions.put("exportJpg",new Action("formatJpg...",function(){n("jpeg")}));f.actions.put("exportWebp",new Action("formatWebp...",function(){n("webp")}));f.actions.put("exportAnimatedGif",new Action(mxResources.get("formatAnimatedGif",null,"Animated GIF")+"...",function(){f.showAnimatedGifExportDialog()}));
y=f.actions.addAction("copyAsImage",mxUtils.bind(this,function(){var p=mxUtils.sortCells(x.model.getTopmostCells(x.getSelectionCells()));f.copyImage(p)}),null,null,Editor.ctrlKey+"+"+Editor.altKey+"+X");y.visible=Editor.enableNativeClipboard&&f.editor.isExportToCanvas();y=f.actions.addAction("copyAsSvg",mxUtils.bind(this,function(){var p=mxUtils.sortCells(x.model.getTopmostCells(x.getSelectionCells()));f.copySvg(p)}),null,null,Editor.ctrlKey+"+"+Editor.altKey+"+"+Editor.shiftKey+"+X");y.visible=Editor.enableNativeClipboard&&
f.editor.isExportToCanvas();y=f.actions.put("shadowVisible",new Action("shadow",function(){x.setShadowVisible(!x.shadowVisible)}));y.setToggleAction(!0);y.setSelectedCallback(function(){return x.shadowVisible});f.actions.put("about",new Action("v"+EditorUi.VERSION,function(p,u){mxEvent.isShiftDown(u)&&(EditorUi.isElectronApp||f.isOwnGDriveDomain())&&("1"==urlParams.test?(EditorUi.debug("Debug output disabled"),urlParams.test="0"):(urlParams.test="1",EditorUi.debug("Debug output enabled")))}));f.actions.addAction("support...",
@@ -14271,15 +14278,15 @@ function(){var p=null==f.pages||1>=f.pages.length;if(p)f.exportVisio();else{var
null,mxResources.get("export"));f.showDialog(p.container,300,146,!0,!0)}});y.getTitle=function(){return mxResources.get("formatVsdx")+" (beta)..."};f.actions.put("exportVsdx",y);isLocalStorage&&null!=localStorage&&"1"!=urlParams.embed&&f.actions.addAction("configuration...",function(){var p=document.createElement("input");p.setAttribute("type","checkbox");p.style.marginRight="8px";p.checked=mxSettings.getShowStartScreen();p.defaultChecked=p.checked;if(Editor.isSettingsEnabled()&&("sketch"==Editor.currentTheme||
"simple"==Editor.currentTheme||"min"==Editor.currentTheme)){var u=document.createElement("span");u.style.display="flex";u.style.alignItems="center";u.style.cssFloat="right";u.style.cursor="pointer";u.style.userSelect="none";u.style.marginTop="-3px";u.appendChild(p);mxUtils.write(u,mxResources.get("showStartScreen"));mxEvent.addListener(u,"click",function(I){mxEvent.getSource(I)!=p&&(p.checked=!p.checked)});header=u}u=[[mxResources.get("reset"),function(){f.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.configurationKey),
f.hideDialog(),f.alert(mxResources.get("restartForChangeRequired"))}catch(I){f.handleError(I)}})}]];if(!f.isOfflineApp()&&isLocalStorage&&f.mode!=App.MODE_ATLAS){var G=f.actions.get("plugins");null==G||"sketch"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||u.push([mxResources.get("plugins"),G.funct])}EditorUi.isElectronApp||u.push([mxResources.get("link"),function(I,H){if(0<H.value.length)try{var g=JSON.parse(H.value),t=window.location.protocol+"//"+window.location.host+
-"/"+f.getSearch()+"#_CONFIG_"+Graph.compress(JSON.stringify(g)),B=new EmbedDialog(f,t);f.showDialog(B.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));B.init()}catch(K){f.handleError(K)}else f.handleError({message:mxResources.get("invalidInput")})}]);"atlassian"!=f.getServiceName()&&"1"!=urlParams.embed&&u.push([mxResources.get("preferences"),function(){f.showLocalStorageDialog(mxResources.get("preferences")+":",Editor.settingsKey,[[mxResources.get("reset"),function(){f.confirm(mxResources.get("areYouSure"),
+"/"+f.getSearch()+"#_CONFIG_"+Graph.compress(JSON.stringify(g)),C=new EmbedDialog(f,t);f.showDialog(C.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));C.init()}catch(K){f.handleError(K)}else f.handleError({message:mxResources.get("invalidInput")})}]);"atlassian"!=f.getServiceName()&&"1"!=urlParams.embed&&u.push([mxResources.get("preferences"),function(){f.showLocalStorageDialog(mxResources.get("preferences")+":",Editor.settingsKey,[[mxResources.get("reset"),function(){f.confirm(mxResources.get("areYouSure"),
function(){try{localStorage.removeItem(Editor.settingsKey),localStorage.removeItem(".drawio-config"),f.hideDialog(),f.alert(mxResources.get("restartForChangeRequired"))}catch(I){f.handleError(I)}})}]])}]);f.showConfigurationEditorDialog(mxResources.get("configuration")+":",Editor.configurationKey,u,p.parentNode,"https://www.drawio.com/doc/faq/configure-diagram-editor",function(){null!=p.parentNode&&(mxSettings.setShowStartScreen(p.checked),mxSettings.save())})});(mxClient.IS_CHROMEAPP||isLocalStorage)&&
-this.put("language",new Menu(mxUtils.bind(this,function(p,u){var G=mxLanguage;null==urlParams.lang&&isLocalStorage&&(G=mxSettings.settings.language);var I=mxUtils.bind(this,function(g){var t=""==g?mxResources.get("automatic"):mxLanguageMap[g],B=null;""!=t&&(B=p.addItem(t,null,mxUtils.bind(this,function(){f.setAndPersistLanguage(g)}),u),(g==G||""==g&&null==G)&&p.addCheckmark(B,Editor.checkmarkImage));return B});I("");p.addSeparator(u);for(var H in mxLanguageMap)I(H)})));f.customLayoutConfig=[{layout:"mxHierarchicalLayout",
+this.put("language",new Menu(mxUtils.bind(this,function(p,u){var G=mxLanguage;null==urlParams.lang&&isLocalStorage&&(G=mxSettings.settings.language);var I=mxUtils.bind(this,function(g){var t=""==g?mxResources.get("automatic"):mxLanguageMap[g],C=null;""!=t&&(C=p.addItem(t,null,mxUtils.bind(this,function(){f.setAndPersistLanguage(g)}),u),(g==G||""==g&&null==G)&&p.addCheckmark(C,Editor.checkmarkImage));return C});I("");p.addSeparator(u);for(var H in mxLanguageMap)I(H)})));f.customLayoutConfig=[{layout:"mxHierarchicalLayout",
config:{orientation:"west",intraCellSpacing:30,interRankCellSpacing:100,interHierarchySpacing:60,parallelEdgeSpacing:10}}];f.actions.addAction("runLayout",function(){f.showCustomLayoutDialog(JSON.stringify(f.customLayoutConfig,null,2))});f.actions.put("adaptiveColors",new Action("adaptiveColors",function(p){null==f.adaptiveColorsWindow&&(f.adaptiveColorsWindow=new AdaptiveColorsWindow(f,document.body.offsetWidth-520,80,200,160));f.adaptiveColorsWindow.window.setVisible(!0)}));y=this.get("viewZoom");
var M=y.funct;y.funct=mxUtils.bind(this,function(p,u){M.apply(this,arguments);"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||this.addMenuItems(p,["-","outline","fullscreen"],u)});y=this.get("layout");var L=y.funct;y.funct=function(p,u){L.apply(this,arguments);p.addItem(mxResources.get("orgChart"),null,function(){var G=null,I=20,H=20,g=function(){"undefined"!==typeof mxOrgChartLayout&&null!=G&&f.tryAndHandle(mxUtils.bind(this,function(){var P=f.editor.graph,V=new mxOrgChartLayout(P,G,I,
-H),Y=P.getDefaultParent();1<P.model.getChildCount(P.getSelectionCell())&&(Y=P.getSelectionCell());V.execute(Y)}))},t=document.createElement("div"),B=document.createElement("div");B.style.marginTop="6px";B.style.display="inline-block";B.style.width="180px";mxUtils.write(B,mxResources.get("orgChartType")+": ");t.appendChild(B);var K=document.createElement("select");K.style.width="160px";K.style.boxSizing="border-box";B=[mxResources.get("linear"),mxResources.get("hanger2"),mxResources.get("hanger4"),
-mxResources.get("fishbone1"),mxResources.get("fishbone2"),mxResources.get("1ColumnLeft"),mxResources.get("1ColumnRight"),mxResources.get("smart")];for(var Q=0;Q<B.length;Q++){var S=document.createElement("option");mxUtils.write(S,B[Q]);S.value=Q;2==Q&&S.setAttribute("selected","selected");K.appendChild(S)}mxEvent.addListener(K,"change",function(){G=K.value});t.appendChild(K);B=document.createElement("div");B.style.marginTop="6px";B.style.display="inline-block";B.style.width="180px";mxUtils.write(B,
-mxResources.get("parentChildSpacing")+": ");t.appendChild(B);var U=document.createElement("input");U.type="number";U.value=I;U.style.width="160px";U.style.boxSizing="border-box";t.appendChild(U);mxEvent.addListener(U,"change",function(){I=U.value});B=document.createElement("div");B.style.marginTop="6px";B.style.display="inline-block";B.style.width="180px";mxUtils.write(B,mxResources.get("siblingSpacing")+": ");t.appendChild(B);var N=document.createElement("input");N.type="number";N.value=H;N.style.width=
-"160px";N.style.boxSizing="border-box";t.appendChild(N);mxEvent.addListener(N,"change",function(){H=N.value});B=mxUtils.button(mxResources.get("custom")+"...",function(){var P=[{layout:"mxOrgChartLayout",config:{branchOptimizer:parseInt(K.value),parentChildSpacing:parseInt(U.value),siblingSpacing:parseInt(N.value)}}];f.hideDialog();f.showCustomLayoutDialog(JSON.stringify(P,null,2))});B.className="geBtn";t=new CustomDialog(f,t,function(){null==G&&(G=2);f.loadOrgChartLayouts(g)},null,null,null,B);f.showDialog(t.container,
+H),Y=P.getDefaultParent();1<P.model.getChildCount(P.getSelectionCell())&&(Y=P.getSelectionCell());V.execute(Y)}))},t=document.createElement("div"),C=document.createElement("div");C.style.marginTop="6px";C.style.display="inline-block";C.style.width="180px";mxUtils.write(C,mxResources.get("orgChartType")+": ");t.appendChild(C);var K=document.createElement("select");K.style.width="160px";K.style.boxSizing="border-box";C=[mxResources.get("linear"),mxResources.get("hanger2"),mxResources.get("hanger4"),
+mxResources.get("fishbone1"),mxResources.get("fishbone2"),mxResources.get("1ColumnLeft"),mxResources.get("1ColumnRight"),mxResources.get("smart")];for(var Q=0;Q<C.length;Q++){var S=document.createElement("option");mxUtils.write(S,C[Q]);S.value=Q;2==Q&&S.setAttribute("selected","selected");K.appendChild(S)}mxEvent.addListener(K,"change",function(){G=K.value});t.appendChild(K);C=document.createElement("div");C.style.marginTop="6px";C.style.display="inline-block";C.style.width="180px";mxUtils.write(C,
+mxResources.get("parentChildSpacing")+": ");t.appendChild(C);var U=document.createElement("input");U.type="number";U.value=I;U.style.width="160px";U.style.boxSizing="border-box";t.appendChild(U);mxEvent.addListener(U,"change",function(){I=U.value});C=document.createElement("div");C.style.marginTop="6px";C.style.display="inline-block";C.style.width="180px";mxUtils.write(C,mxResources.get("siblingSpacing")+": ");t.appendChild(C);var N=document.createElement("input");N.type="number";N.value=H;N.style.width=
+"160px";N.style.boxSizing="border-box";t.appendChild(N);mxEvent.addListener(N,"change",function(){H=N.value});C=mxUtils.button(mxResources.get("custom")+"...",function(){var P=[{layout:"mxOrgChartLayout",config:{branchOptimizer:parseInt(K.value),parentChildSpacing:parseInt(U.value),siblingSpacing:parseInt(N.value)}}];f.hideDialog();f.showCustomLayoutDialog(JSON.stringify(P,null,2))});C.className="geBtn";t=new CustomDialog(f,t,function(){null==G&&(G=2);f.loadOrgChartLayouts(g)},null,null,null,C);f.showDialog(t.container,
355,140,!0,!0)},u,null,z());p.addSeparator(u);p.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){f.tryAndHandle(mxUtils.bind(this,function(){var G=new mxParallelEdgeLayout(x);G.checkOverlap=!0;f.prompt(mxResources.get("spacing"),G.spacing,mxUtils.bind(this,function(I){f.tryAndHandle(mxUtils.bind(this,function(){G.spacing=I;f.executeLayout(function(){G.execute(x.getDefaultParent(),x.isSelectionEmpty()?null:x.getSelectionCells())},!1)}))}))}))}),u);p.addSeparator(u);f.menus.addMenuItem(p,
"runLayout",u,null,null,mxResources.get("custom")+"...")};this.put("help",new Menu(mxUtils.bind(this,function(p,u){if(mxClient.IS_CHROMEAPP||!f.isOffline()&&!navigator.standalone){var G=p.addItem(mxResources.get("search")+":",null,null,u,null,null,!1);G.style.cursor="default";var I=document.createElement("input");I.setAttribute("type","text");I.setAttribute("size","25");I.style.borderWidth="1px";I.style.marginLeft="8px";mxEvent.addListener(I,"keydown",mxUtils.bind(this,function(H){var g=mxUtils.trim(I.value);
13==H.keyCode&&0<g.length?(this.editorUi.searchHelp(g),I.value="",window.setTimeout(mxUtils.bind(this,function(){this.editorUi.hideCurrentMenu()}),0)):27==H.keyCode&&(I.value="")}));G.firstChild.nextSibling.appendChild(I);mxEvent.addGestureListeners(I,function(H){document.activeElement!=I&&I.focus();mxEvent.consume(H)},function(H){mxEvent.consume(H)},function(H){mxEvent.consume(H)});window.setTimeout(function(){I.focus()},0);EditorUi.isElectronApp?(f.actions.addAction("website...",function(){f.openLink("https://www.drawio.com")}),
@@ -14288,11 +14295,11 @@ f.actions.addAction("check4Updates",function(){f.checkForUpdates()}),f.actions.p
0<u.length?u:null,Graph.translateDiagram=!0,x.refresh())}),mxResources.get("languageCode"),null,null,"https://www.drawio.com/blog/translate-diagrams");f.showDialog(p.container,340,80,!0,!0);p.init()});this.put("diagramLanguage",new Menu(mxUtils.bind(this,function(p,u){this.addMenuItems(p,["languageCode","-"],u);u=p.addItem(mxResources.get("disabled"),null,function(){Graph.translateDiagram=!1;x.refresh()},u);Graph.translateDiagram||p.addCheckmark(u,Editor.checkmarkImage)})));if("1"==urlParams.test){mxResources.parse("testDevelop=Develop");
mxResources.parse("showBoundingBox=Show bounding box");mxResources.parse("createSidebarEntry=Create Sidebar Entry");mxResources.parse("testCheckFile=Check File");mxResources.parse("testDiff=Diff/Sync");mxResources.parse("testChecksum=Checksum");mxResources.parse("testCheckPages=Check Pages");mxResources.parse("testFixPages=Fix Pages");mxResources.parse("testInspect=Inspect");mxResources.parse("testShowConsole=Show Console");mxResources.parse("testXmlImageExport=XML Image Export");mxResources.parse("testOptimize=Remove Inline Images");
mxResources.parse("testPerformance=Performance");f.actions.addAction("createSidebarEntry",mxUtils.bind(this,function(){if(!x.isSelectionEmpty()){var p=x.cloneCells(x.getSelectionCells()),u=x.getBoundingBoxFromGeometry(p,!0);p=x.moveCells(p,-u.x,-u.y);f.showTextDialog("Create Sidebar Entry","this.addDataEntry('tag1 tag2', "+u.width+", "+u.height+", 'The Title', '"+Graph.compress(mxUtils.getXml(x.encodeCells(p)))+"'),")}}));f.actions.addAction("showBoundingBox",mxUtils.bind(this,function(){function p(t){return null==
-t||null==t.boundingBox||!isNaN(t.boundingBox.x)&&!isNaN(t.boundingBox.y)&&!isNaN(t.boundingBox.width)&&!isNaN(t.boundingBox.height)}var u=x.isSelectionEmpty()?x.getGraphBounds():x.getBoundingBox(x.getSelectionCells()),G=x.view.translate,I=x.view.scale;x.insertVertex(x.getDefaultParent(),null,"",u.x/I-G.x,u.y/I-G.y,u.width/I,u.height/I,"fillColor=none;strokeColor=red;");var H=0,g=0;x.view.states.visit(function(t,B){t=!0;p(B.shape)||(console.log("invalid shape",B.cell.id,B.shape),t=!1);p(B.text)||(console.log("invalid text",
-B.cell.id,B.text),t=!1);t||H++;g++});console.log("states checked",g,"invalid",H)}));f.actions.addAction("testCheckFile",mxUtils.bind(this,function(){var p=null!=f.pages&&null!=f.getCurrentFile()?f.getCurrentFile().getAnonymizedXmlForPages(f.pages):"";p=new TextareaDialog(f,"Paste Data:",p,function(u){if(0<u.length)try{var G=function(B){function K(aa){if(null==Z[aa]){if(Z[aa]=!0,null!=U[aa]){for(;0<U[aa].length;){var ea=U[aa].pop();K(ea)}delete U[aa]}}else mxLog.debug(Q+": Visited: "+aa)}var Q=B.parentNode.id,
-S=B.childNodes;B={};for(var U={},N=null,P={},V=0;V<S.length;V++){var Y=S[V];if(null!=Y.id&&0<Y.id.length)if(null==B[Y.id]){B[Y.id]=Y.id;var X=Y.getAttribute("parent");null==X?null!=N?mxLog.debug(Q+": Multiple roots: "+Y.id):N=Y.id:(null==U[X]&&(U[X]=[]),U[X].push(Y.id))}else P[Y.id]=Y.id}S=Object.keys(P);0<S.length?(S=Q+": "+S.length+" Duplicates: "+S.join(", "),mxLog.debug(S+" (see console)")):mxLog.debug(Q+": Checked");var Z={};null==N?mxLog.debug(Q+": No root"):(K(N),Object.keys(Z).length!=Object.keys(B).length&&
-(mxLog.debug(Q+": Invalid tree: (see console)"),console.log(Q+": Invalid tree",U)))};"<"!=u.charAt(0)&&(u=Graph.decompress(u),mxLog.debug("See console for uncompressed XML"),console.log("xml",u));var I=mxUtils.parseXml(u),H=f.getPagesForNode(I.documentElement,"mxGraphModel");if(null!=H&&0<H.length)try{var g=f.getHashValueForPages(H);mxLog.debug("Checksum: ",g)}catch(B){mxLog.debug("Error: ",B.message)}else mxLog.debug("No pages found for checksum");var t=I.getElementsByTagName("root");for(u=0;u<t.length;u++)G(t[u]);
-mxLog.show()}catch(B){f.handleError(B),null!=window.console&&console.error(B)}});f.showDialog(p.container,620,460,!0,!0);p.init()}));var O=null;f.actions.addAction("testDiff",mxUtils.bind(this,function(){if(null!=f.pages){var p=new TextareaDialog(f,"Diff/Sync:","",function(u){var G=f.getCurrentFile();if(0<u.length&&null!=G)try{var I=JSON.parse(u);G.patch([I],null,!0,!0);f.hideDialog()}catch(H){f.handleError(H)}},null,"Close",null,null,null,!0,null,"Patch",null,[["Snapshot",function(u,G){O=f.getPagesForXml(f.getFileData(!0));
+t||null==t.boundingBox||!isNaN(t.boundingBox.x)&&!isNaN(t.boundingBox.y)&&!isNaN(t.boundingBox.width)&&!isNaN(t.boundingBox.height)}var u=x.isSelectionEmpty()?x.getGraphBounds():x.getBoundingBox(x.getSelectionCells()),G=x.view.translate,I=x.view.scale;x.insertVertex(x.getDefaultParent(),null,"",u.x/I-G.x,u.y/I-G.y,u.width/I,u.height/I,"fillColor=none;strokeColor=red;");var H=0,g=0;x.view.states.visit(function(t,C){t=!0;p(C.shape)||(console.log("invalid shape",C.cell.id,C.shape),t=!1);p(C.text)||(console.log("invalid text",
+C.cell.id,C.text),t=!1);t||H++;g++});console.log("states checked",g,"invalid",H)}));f.actions.addAction("testCheckFile",mxUtils.bind(this,function(){var p=null!=f.pages&&null!=f.getCurrentFile()?f.getCurrentFile().getAnonymizedXmlForPages(f.pages):"";p=new TextareaDialog(f,"Paste Data:",p,function(u){if(0<u.length)try{var G=function(C){function K(aa){if(null==Z[aa]){if(Z[aa]=!0,null!=U[aa]){for(;0<U[aa].length;){var ea=U[aa].pop();K(ea)}delete U[aa]}}else mxLog.debug(Q+": Visited: "+aa)}var Q=C.parentNode.id,
+S=C.childNodes;C={};for(var U={},N=null,P={},V=0;V<S.length;V++){var Y=S[V];if(null!=Y.id&&0<Y.id.length)if(null==C[Y.id]){C[Y.id]=Y.id;var X=Y.getAttribute("parent");null==X?null!=N?mxLog.debug(Q+": Multiple roots: "+Y.id):N=Y.id:(null==U[X]&&(U[X]=[]),U[X].push(Y.id))}else P[Y.id]=Y.id}S=Object.keys(P);0<S.length?(S=Q+": "+S.length+" Duplicates: "+S.join(", "),mxLog.debug(S+" (see console)")):mxLog.debug(Q+": Checked");var Z={};null==N?mxLog.debug(Q+": No root"):(K(N),Object.keys(Z).length!=Object.keys(C).length&&
+(mxLog.debug(Q+": Invalid tree: (see console)"),console.log(Q+": Invalid tree",U)))};"<"!=u.charAt(0)&&(u=Graph.decompress(u),mxLog.debug("See console for uncompressed XML"),console.log("xml",u));var I=mxUtils.parseXml(u),H=f.getPagesForNode(I.documentElement,"mxGraphModel");if(null!=H&&0<H.length)try{var g=f.getHashValueForPages(H);mxLog.debug("Checksum: ",g)}catch(C){mxLog.debug("Error: ",C.message)}else mxLog.debug("No pages found for checksum");var t=I.getElementsByTagName("root");for(u=0;u<t.length;u++)G(t[u]);
+mxLog.show()}catch(C){f.handleError(C),null!=window.console&&console.error(C)}});f.showDialog(p.container,620,460,!0,!0);p.init()}));var O=null;f.actions.addAction("testDiff",mxUtils.bind(this,function(){if(null!=f.pages){var p=new TextareaDialog(f,"Diff/Sync:","",function(u){var G=f.getCurrentFile();if(0<u.length&&null!=G)try{var I=JSON.parse(u);G.patch([I],null,!0,!0);f.hideDialog()}catch(H){f.handleError(H)}},null,"Close",null,null,null,!0,null,"Patch",null,[["Snapshot",function(u,G){O=f.getPagesForXml(f.getFileData(!0));
p.textarea.value="Snapshot updated "+(new Date).toLocaleString()+" Checksum "+f.getHashValueForPages(O)}],["Diff",function(u,G){try{p.textarea.value=JSON.stringify(f.diffPages(O,f.pages),null,2)}catch(I){f.handleError(I)}}]]);null==O?(O=f.getPagesForXml(f.getFileData(!0)),p.textarea.value="Snapshot created "+(new Date).toLocaleString()+" Checksum "+f.getHashValueForPages(O)):p.textarea.value=JSON.stringify(f.diffPages(O,f.pages),null,2);f.showDialog(p.container,620,460,!0,!0);p.init()}else f.alert("No pages")}));
f.actions.addAction("testChecksum",mxUtils.bind(this,function(){var p=f.getCurrentFile();null!=f.pages&&null!=p?f.spinner.spin(document.body,mxResources.get("loading"))&&p.getLatestVersion(function(u){f.spinner.stop();var G=f.getHashValueForPages(f.pages),I=p.getCurrentRevisionId(),H=f.getHashValueForPages(u.getShadowPages()),g=u.getDescriptorChecksum(u.getDescriptor()),t=u.getCurrentRevisionId();console.log("Local File",[p],"modified",p.isModified(),"checksum",G);console.log("Remote File",[u],"rev",
t==I,"desc",g==H,"checksum",H);f.alert("Checksums "+(H==G?"match":"no not match"))},function(u){console.log("Error getLatestVersion",u);f.handleError(u)}):console.log("Checksum: no file or pages")}));f.actions.addAction("testCheckPages",mxUtils.bind(this,function(){var p=f.getCurrentFile();console.log("editorUi",f,"file",p);if(null!=p&&p.isRealtime()){console.log("Checksum ownPages",f.getHashValueForPages(p.ownPages));console.log("Checksum theirPages",f.getHashValueForPages(p.theirPages));console.log("diff ownPages/theirPages",
@@ -14300,25 +14307,25 @@ f.diffPages(p.ownPages,p.theirPages));var u=p.getShadowPages();null!=u&&(console
p.sync.snapshot)),console.log("diff theirPages/snapshot",f.diffPages(p.theirPages,p.sync.snapshot)),null!=f.pages&&console.log("diff snapshot/actualPages",f.diffPages(p.sync.snapshot,f.pages)));null!=f.pages&&(console.log("diff ownPages/actualPages",f.diffPages(p.ownPages,f.pages)),console.log("diff theirPages/actualPages",f.diffPages(p.theirPages,f.pages)))}null!=p&&console.log("Shadow pages",[f.getXmlForPages(p.getShadowPages())]);null!=f.pages&&console.log("Checksum actualPages",f.getHashValueForPages(f.pages))}));
f.actions.addAction("testFixPages",mxUtils.bind(this,function(){console.log("editorUi",f);var p=f.getCurrentFile();null!=p&&p.isRealtime()&&null!=p.shadowPages&&(console.log("patching actualPages to shadowPages",p.patch([f.diffPages(p.shadowPages,f.pages)])),p.ownPages=f.clonePages(f.pages),p.theirPages=f.clonePages(f.pages),p.shadowPages=f.clonePages(f.pages),null!=p.sync&&(p.sync.snapshot=f.clonePages(f.pages)))}));f.actions.addAction("testOptimize",mxUtils.bind(this,function(){x.model.beginUpdate();
try{var p=x.model.cells,u=0,G=[],I=[],H;for(H in p){var g=p[H],t=x.getCurrentCellStyle(g)[mxConstants.STYLE_IMAGE];null!=t&&"data:"==t.substring(0,5)&&(null==G[t]&&(G[t]=(G[t]||0)+1,u++),I.push(g))}x.setCellStyles(mxConstants.STYLE_IMAGE,null,I);console.log("Removed",u,"image(s) from",I.length,"cell(s): ",[I,G])}finally{x.model.endUpdate()}}));f.actions.addAction("testInspect",mxUtils.bind(this,function(){console.log(f,x.getModel())}));f.actions.addAction("testXmlImageExport",mxUtils.bind(this,function(){var p=
-new mxImageExport,u=x.getGraphBounds(),G=x.view.scale,I=mxUtils.createXmlDocument(),H=I.createElement("output");I.appendChild(H);I=new mxXmlCanvas2D(H);I.translate(Math.floor((1-u.x)/G),Math.floor((1-u.y)/G));I.scale(1/G);var g=0,t=I.save;I.save=function(){g++;t.apply(this,arguments)};var B=I.restore;I.restore=function(){g--;B.apply(this,arguments)};var K=p.drawShape;p.drawShape=function(Q){mxLog.debug("entering shape",Q,g);K.apply(this,arguments);mxLog.debug("leaving shape",Q,g)};p.drawState(x.getView().getState(x.model.root),
+new mxImageExport,u=x.getGraphBounds(),G=x.view.scale,I=mxUtils.createXmlDocument(),H=I.createElement("output");I.appendChild(H);I=new mxXmlCanvas2D(H);I.translate(Math.floor((1-u.x)/G),Math.floor((1-u.y)/G));I.scale(1/G);var g=0,t=I.save;I.save=function(){g++;t.apply(this,arguments)};var C=I.restore;I.restore=function(){g--;C.apply(this,arguments)};var K=p.drawShape;p.drawShape=function(Q){mxLog.debug("entering shape",Q,g);K.apply(this,arguments);mxLog.debug("leaving shape",Q,g)};p.drawState(x.getView().getState(x.model.root),
I);mxLog.show();mxLog.debug(mxUtils.getXml(H));mxLog.debug("stateCounter",g)}));f.actions.addAction("testShowConsole",function(){mxLog.isVisible()?mxLog.window.fit():mxLog.show();mxLog.window.div.style.zIndex=mxPopupMenu.prototype.zIndex-2});var R=null,c=null,d=null,k=null,m=null,q=null,v=null,A=null;f.actions.addAction("testPerformance",mxUtils.bind(this,function(){null!=R?(x.view.revalidate=R,R=null):(R=x.view.revalidate,x.view.revalidate=function(){var p=Date.now(),u=R.apply(this,arguments);EditorUi.debug("[Performance] mxGraphView.revalidate",
[this],"time",Date.now()-p+" ms","args",arguments);return u});null!=c?(f.selectPage=c,c=null):(c=f.selectPage,f.selectPage=function(){var p=Date.now(),u=c.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.selectPage",[this],"time",Date.now()-p+" ms","args",arguments);return u});null!=d?(f.diffPages=d,d=null):(d=f.diffPages,f.diffPages=function(){var p=Date.now(),u=d.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.diffPages",[this],"time",Date.now()-p+" ms","args",arguments);
return u});null!=k?(f.patchPages=k,k=null):(k=f.patchPages,f.patchPages=function(){var p=Date.now(),u=k.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.patchPages",[this],"time",Date.now()-p+" ms","args",arguments);return u});null!=m?(f.clonePages=m,m=null):(m=f.clonePages,f.clonePages=function(){var p=Date.now(),u=m.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.clonePages",[this],"time",Date.now()-p+" ms","args",arguments);return u});null!=v?(f.getHashValueForPages=v,
v=null):(v=f.getHashValueForPages,f.getHashValueForPages=function(){var p=Date.now(),u=v.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getHashValueForPages",[this],"time",Date.now()-p+" ms","args",arguments);return u});null!=A?(f.resolveCrossReferences=A,A=null):(A=f.resolveCrossReferences,f.resolveCrossReferences=function(){var p=Date.now(),u=A.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.resolveCrossReferences",[this],"time",Date.now()-p+" ms","args",arguments);return u});
null!=q?(f.getFileData=q,q=null):(q=f.getFileData,f.getFileData=function(){var p=Date.now(),u=q.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getFileData",[this],"time",Date.now()-p+" ms","args",arguments);return u});EditorUi.debug("[Performance]",null!=R?"Enabled":"Disabled")}));this.put("testDevelop",new Menu(mxUtils.bind(this,function(p,u){this.addMenuItems(p,"createSidebarEntry showBoundingBox - testCheckPages testChecksum testFixPages - testCheckFile testDiff - testInspect testOptimize - testXmlImageExport -".split(" "),
-u);var G=p.addItem(mxResources.get("testPerformance"),null,function(){f.actions.get("testPerformance").funct()},u);null!=R&&p.addCheckmark(G,Editor.checkmarkImage);this.addMenuItems(p,["-","testShowConsole"],u)})))}f.actions.put("shapes",new Action("moreShapes...",function(p){mxClient.IS_CHROMEAPP||!f.isOffline()?f.showDialog((new MoreShapesDialog(f,!0)).container,640,isLocalStorage?mxClient.IS_IOS?480:460:440,!0,!0):f.showDialog((new MoreShapesDialog(f,!1)).container,360,isLocalStorage?mxClient.IS_IOS?
+u);var G=p.addItem(mxResources.get("testPerformance"),null,function(){f.actions.get("testPerformance").funct()},u);null!=R&&p.addCheckmark(G,Editor.checkmarkImage);this.addMenuItems(p,["-","testShowConsole"],u)})))}f.actions.put("shapes",new Action("moreShapes...",function(p){mxClient.IS_CHROMEAPP||!f.isOffline()?f.showDialog((new MoreShapesDialog(f,!0)).container,680,isLocalStorage?mxClient.IS_IOS?500:480:460,!0,!0):f.showDialog((new MoreShapesDialog(f,!1)).container,360,isLocalStorage?mxClient.IS_IOS?
300:280:260,!0,!0)}));f.actions.put("createShape",new Action("shape...",function(p){x.isEnabled()&&(p=new mxCell("",new mxGeometry(0,0,120,120),f.defaultCustomShapeStyle),p.vertex=!0,p=new EditShapeDialog(f,p,mxResources.get("editShape")),f.showDialog(p.container,640,480,!0,!1,null,null,null,new mxRectangle(0,0,300,200)),p.init())})).isEnabled=z;f.isOffline()||("1"!=urlParams.embed&&(f.actions.put("embedNotion",new Action("notion...",function(){var p=document.createElement("div");p.style.position=
"absolute";p.style.bottom="30px";p.style.textAlign="center";p.style.width="100%";p.style.left="0px";var u=document.createElement("a");u.setAttribute("href","javascript:void(0);");u.setAttribute("target","_blank");u.style.cursor="pointer";mxUtils.write(u,mxResources.get("getNotionChromeExtension"));p.appendChild(u);mxUtils.setPrefixedStyle(u.style,"transition","all 1s ease");mxUtils.setOpacity(u,0);window.setTimeout(function(){mxUtils.setOpacity(u,100)},300);mxEvent.addListener(u,"click",function(G){f.openLink("https://chrome.google.com/webstore/detail/drawio-for-notion/plhaalebpkihaccllnkdaokdoeaokmle");
-mxEvent.consume(G)});f.getPublicUrl(f.getCurrentFile(),function(G){f.showPublishLinkDialog(mxResources.get("notion"),null,null,!0,"https://www.drawio.com/blog/drawio-notion",p,G,f.getCurrentFile(),function(I,H,g,t,B,K,Q,S,U,N,P,V,Y,X){Q=["border=0"];U&&(U=X?f.getHiddenTagsMap():null,Q.push("tags="+encodeURIComponent(JSON.stringify(U||{}))));I=new EmbedDialog(f,f.createLink(I,H,!0,t,B,K,"public"==N?G:null,null,Q,null,g,null,V));f.showDialog(I.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,
-0,400,250));I.init()},null,!0)})})),f.actions.addAction("microsoftOffice...",function(){f.openLink("https://office.draw.io")})),f.actions.put("embedHtml",new Action("html...",function(){f.getPublicUrl(f.getCurrentFile(),function(p){f.showHtmlDialog(mxResources.get("create"),"https://www.drawio.com/doc/faq/embed-html-options",p,function(u,G,I,H,g,t,B,K,Q,S,U,N){f.createHtml(u,G,I,H,g,t,B,K,Q,S,U,mxUtils.bind(this,function(P,V){var Y=new EmbedDialog(f,"\x3c!-- "+f.editor.appName+" diagram --\x3e\n"+
+mxEvent.consume(G)});f.getPublicUrl(f.getCurrentFile(),function(G){f.showPublishLinkDialog(mxResources.get("notion"),null,null,!0,"https://www.drawio.com/blog/drawio-notion",p,G,f.getCurrentFile(),function(I,H,g,t,C,K,Q,S,U,N,P,V,Y,X){Q=["border=0"];U&&(U=X?f.getHiddenTagsMap():null,Q.push("tags="+encodeURIComponent(JSON.stringify(U||{}))));I=new EmbedDialog(f,f.createLink(I,H,!0,t,C,K,"public"==N?G:null,null,Q,null,g,null,V));f.showDialog(I.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,
+0,400,250));I.init()},null,!0)})})),f.actions.addAction("microsoftOffice...",function(){f.openLink("https://office.draw.io")})),f.actions.put("embedHtml",new Action("html...",function(){f.getPublicUrl(f.getCurrentFile(),function(p){f.showHtmlDialog(mxResources.get("create"),"https://www.drawio.com/doc/faq/embed-html-options",p,function(u,G,I,H,g,t,C,K,Q,S,U,N){f.createHtml(u,G,I,H,g,t,C,K,Q,S,U,mxUtils.bind(this,function(P,V){var Y=new EmbedDialog(f,"\x3c!-- "+f.editor.appName+" diagram --\x3e\n"+
P+"\n"+V+"\n",null,null,function(){try{var X=window.open();if(null!=X&&null!=X.document){var Z=X.document;"CSS1Compat"===document.compatMode&&Z.writeln("<!DOCTYPE html>");Z.writeln("<html>");Z.writeln("<head><title>"+encodeURIComponent(mxResources.get("preview"))+'</title><meta charset="utf-8"></head>');Z.writeln("<body>");Z.writeln(P);var aa=mxClient.IS_EDGE;aa&&Z.writeln(V);Z.writeln("</body>");Z.writeln("</html>");Z.close();if(!aa){var ea=X.document.createElement("div");ea.marginLeft="26px";ea.marginTop=
"26px";mxUtils.write(ea,mxResources.get("updatingDocument"));var ha=X.document.createElement("img");ha.setAttribute("src",window.location.protocol+"//"+window.location.hostname+"/"+IMAGE_PATH+"/spin.gif");ha.style.marginLeft="6px";ea.appendChild(ha);X.document.body.insertBefore(ea,X.document.body.firstChild);window.setTimeout(function(){var ba=document.createElement("script");ba.type="text/javascript";ba.src=/<script.*?src="(.*?)"/.exec(V)[1];Z.body.appendChild(ba);ea.parentNode.removeChild(ea)},
20)}}else f.handleError({message:mxResources.get("errorUpdatingPreview")})}catch(ba){f.handleError(ba)}});f.showDialog(Y.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));Y.init()}),N)})})})),f.actions.put("liveImage",new Action("Live image...",function(){var p=f.getCurrentFile();null!=p&&f.getPublicUrl(p,function(u){null!=u?(u=new EmbedDialog(f,'<img src="'+(p.constructor!=DriveFile?u:"https://drive.google.com/uc?id="+p.getId())+'"/>'),f.showDialog(u.container,450,270,!0,!0,null,
!1,null,new mxRectangle(0,0,400,250)),u.init()):f.handleError({message:mxResources.get("invalidPublicUrl")})})})),f.actions.put("embedImage",new Action("image...",function(){f.showEmbedImageDialog(function(p,u,G,I,H,g){f.spinner.spin(document.body,mxResources.get("loading"))&&f.createEmbedImage(p,u,G,I,H,g,function(t){f.spinner.stop();t=new EmbedDialog(f,t);f.showDialog(t.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));t.init()},function(t){f.spinner.stop();f.handleError(t)})},
mxResources.get("image"),mxResources.get("retina"),f.editor.isExportToCanvas())})),f.actions.put("embedSvg",new Action("formatSvg...",function(){f.showEmbedImageDialog(function(p,u,G,I,H,g){f.spinner.spin(document.body,mxResources.get("loading"))&&f.createEmbedSvg(p,u,G,I,H,g,function(t){f.spinner.stop();t=new EmbedDialog(f,t);f.showDialog(t.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));t.init()},function(t){f.spinner.stop();f.handleError(t)})},mxResources.get("formatSvg"),mxResources.get("image"),
-!0,"https://www.drawio.com/doc/faq/embed-svg.html")})),f.actions.put("embedIframe",new Action("iframe...",function(){f.getPublicUrl(f.getCurrentFile(),function(p){var u=x.getGraphBounds();f.showPublishLinkDialog(mxResources.get("iframe"),"100%",Math.ceil(Math.max(100,u.height/x.view.scale))+2,null,null,null,p,f.getCurrentFile(),function(G,I,H,g,t,B,K,Q,S,U,N,P,V,Y){V=[];S&&(S=Y?f.getHiddenTagsMap():null,V.push("tags="+encodeURIComponent(JSON.stringify(S||{}))));G=new EmbedDialog(f,'<iframe frameborder="0" style="width:'+
-K+";height:"+Q+';" src="'+f.createLink(G,I,!0,g,t,B,"public"==U?p:null,null,V,null,H,N,P)+'"'+(N?' allowtransparency="true"':"")+"></iframe>");f.showDialog(G.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));G.init()},!0,!0)})})));f.actions.put("publishLink",new Action("link...",function(){f.getPublicUrl(f.getCurrentFile(),function(p){f.showPublishLinkDialog(null,null,null,null,null,null,p,f.getCurrentFile(),function(u,G,I,H,g,t,B,K,Q,S,U,N,P,V){B=[];H&&Q&&(Q=V?f.getHiddenTagsMap():
-null,B.push("tags="+encodeURIComponent(JSON.stringify(Q||{}))));u=new EmbedDialog(f,f.createLink(u,G,!0,H,g,t,"public"==S?p:null,null,B,null,I,null,N));f.showDialog(u.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));u.init()},null,!0)})},null,null,null,!f.isOffline()));if(isLocalStorage||mxClient.IS_CHROMEAPP)y=f.actions.addAction("scratchpad",function(){f.toggleScratchpad()}),y.setToggleAction(!0),y.setSelectedCallback(function(){return null!=f.scratchpad}),"0"!=urlParams.plugins&&
+!0,"https://www.drawio.com/doc/faq/embed-svg.html")})),f.actions.put("embedIframe",new Action("iframe...",function(){f.getPublicUrl(f.getCurrentFile(),function(p){var u=x.getGraphBounds();f.showPublishLinkDialog(mxResources.get("iframe"),"100%",Math.ceil(Math.max(100,u.height/x.view.scale))+2,null,null,null,p,f.getCurrentFile(),function(G,I,H,g,t,C,K,Q,S,U,N,P,V,Y){V=[];S&&(S=Y?f.getHiddenTagsMap():null,V.push("tags="+encodeURIComponent(JSON.stringify(S||{}))));G=new EmbedDialog(f,'<iframe frameborder="0" style="width:'+
+K+";height:"+Q+';" src="'+f.createLink(G,I,!0,g,t,C,"public"==U?p:null,null,V,null,H,N,P)+'"'+(N?' allowtransparency="true"':"")+"></iframe>");f.showDialog(G.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));G.init()},!0,!0)})})));f.actions.put("publishLink",new Action("link...",function(){f.getPublicUrl(f.getCurrentFile(),function(p){f.showPublishLinkDialog(null,null,null,null,null,null,p,f.getCurrentFile(),function(u,G,I,H,g,t,C,K,Q,S,U,N,P,V){C=[];H&&Q&&(Q=V?f.getHiddenTagsMap():
+null,C.push("tags="+encodeURIComponent(JSON.stringify(Q||{}))));u=new EmbedDialog(f,f.createLink(u,G,!0,H,g,t,"public"==S?p:null,null,C,null,I,null,N));f.showDialog(u.container,450,270,!0,!0,null,!1,null,new mxRectangle(0,0,400,250));u.init()},null,!0)})},null,null,null,!f.isOffline()));if(isLocalStorage||mxClient.IS_CHROMEAPP)y=f.actions.addAction("scratchpad",function(){f.toggleScratchpad()}),y.setToggleAction(!0),y.setSelectedCallback(function(){return null!=f.scratchpad}),"0"!=urlParams.plugins&&
f.actions.addAction("plugins...",function(){f.showDialog((new PluginsDialog(f)).container,380,240,!0,!1)});window.matchMedia&&null!=document.getElementById("high-contrast-stylesheet")&&(y=f.actions.addAction("highContrast",function(){f.setAndPersistHighContrast(!f.isHighContrast())}),y.setToggleAction(!0),y.setSelectedCallback(function(){return f.isHighContrast()}));y=f.actions.addAction("search",function(){if(null!=f.sidebar){var p=f.sidebar.isEntryVisible("search");f.sidebar.showPalette("search",
!p);Editor.isSettingsEnabled()&&(mxSettings.settings.search=!p,mxSettings.save())}});y.label=mxResources.get("searchShapes");y.setToggleAction(!0);y.setSelectedCallback(function(){return null!=f.sidebar&&f.sidebar.isEntryVisible("search")});f.actions.get("clearDefaultStyle").funct=function(p){x.isEnabled()&&(f.clearDefaultStyle(),Editor.sketchMode&&f.setSketchMode(!1))};"1"==urlParams.embed&&(f.actions.get("saveAs").setEnabled(!1),f.actions.get("save").funct=function(p){x.isEditing()&&x.stopEditing();
var u="0"!=urlParams.pages||null!=f.pages&&1<f.pages.length?f.getFileData(!0):mxUtils.getXml(f.editor.getGraphXml());if("json"==urlParams.proto){var G=f.createLoadMessage("save");G.xml=u;!0!==p||"1"!=urlParams.saveAndExit&&"1"!=urlParams.publishClose||(G.exit=!0);u=JSON.stringify(G)}(window.opener||window.parent).postMessage(u,"*");"0"!=urlParams.modified&&"1"!=urlParams.keepmodified&&(f.editor.modified=!1,f.clearStatus());p=f.getCurrentFile();null==p||p.constructor==EmbedFile||p.constructor==LocalFile&&
@@ -14326,17 +14333,17 @@ null==p.mode||f.saveFile()},f.actions.addAction("saveAndExit",function(){"1"==ur
"";(window.opener||window.parent).postMessage(u,"*")};f.editor.modified?f.confirm(mxResources.get("allChangesLost"),null,p,mxResources.get("cancel"),mxResources.get("discardChanges")):p()}},null,null,"1"==urlParams.embedInline?"Escape":null));this.put("exportAs",new Menu(mxUtils.bind(this,function(p,u){f.editor.isExportToCanvas()?(this.addMenuItems(p,["exportPng"],u),Editor.jpgSupported&&this.addMenuItems(p,["exportJpg"],u),Editor.webpSupported&&this.addMenuItems(p,["exportWebp"],u)):f.isOffline()||
mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(p,["exportPng","exportJpg"],u);f.editor.isExportToCanvas()&&this.addMenuItems(p,["exportAnimatedGif"],u);this.addMenuItems(p,["exportSvg","-"],u);f.isOffline()||f.printPdfExport?this.addMenuItems(p,["exportPdf"],u):f.isOffline()||mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(p,["exportPdf"],u);!f.vsdxExportEnabled()||"undefined"===typeof VsdxExport&&f.isOffline()||this.addMenuItems(p,["exportVsdx"],u);var G=["-","exportHtml","exportXml"];
Editor.enableExportUrl&&G.push("exportUrl");this.addMenuItems(p,G,u);f.isOffline()||(p.addSeparator(u),this.addMenuItem(p,"export",u).firstChild.nextSibling.innerHTML=mxResources.get("advanced")+"...");mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"min"!=Editor.currentTheme||f.isOffline()||this.addMenuItems(p,["publishLink"],u);f.mode==App.MODE_ATLAS||"1"==urlParams.extAuth||"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||f.isOffline()||(p.addSeparator(u),
-f.menus.addSubmenu("embed",p,u))})));this.put("importFrom",new Menu(mxUtils.bind(this,function(p,u){function G(g){g.pickFile(function(t){f.spinner.spin(document.body,mxResources.get("loading"))&&g.getFile(t,function(B){var K="data:image/"==B.getData().substring(0,11)?H(B.getTitle()):"text/xml";/\.svg$/i.test(B.getTitle())&&!f.editor.isDataSvg(B.getData())&&(B.setData(Editor.createSvgDataUri(B.getData())),K="image/svg+xml");I(B.getData(),K,B.getTitle())},function(B){f.handleError(B,null!=B?mxResources.get("errorLoadingFile"):
-null)},g==f.drive)},!0)}var I=mxUtils.bind(this,function(g,t,B){var K=x.view,Q=x.getGraphBounds(),S=x.snap(Math.ceil(Math.max(0,Q.x/K.scale-K.translate.x)+4*x.gridSize)),U=x.snap(Math.ceil(Math.max(0,(Q.y+Q.height)/K.scale-K.translate.y)+4*x.gridSize));"data:image/"==g.substring(0,11)?f.loadImage(g,mxUtils.bind(this,function(N){var P=!0,V=mxUtils.bind(this,function(){f.resizeImage(N,g,mxUtils.bind(this,function(Y,X,Z){Y=P?Math.min(1,Math.min(f.maxImageSize/X,f.maxImageSize/Z)):1;f.importFile(g,t,
-S,U,Math.round(X*Y),Math.round(Z*Y),B,function(aa){f.spinner.stop();x.setSelectionCells(aa);x.scrollCellToVisible(x.getSelectionCell())})}),P)});g.length>f.resampleThreshold?f.confirmImageResize(function(Y){P=Y;V()}):V()}),mxUtils.bind(this,function(){f.handleError({message:mxResources.get("cannotOpenFile")})})):f.importFile(g,t,S,U,0,0,B,function(N){f.spinner.stop();x.setSelectionCells(N);x.scrollCellToVisible(x.getSelectionCell())})}),H=mxUtils.bind(this,function(g){var t="text/xml";/\.png$/i.test(g)?
+f.menus.addSubmenu("embed",p,u))})));this.put("importFrom",new Menu(mxUtils.bind(this,function(p,u){function G(g){g.pickFile(function(t){f.spinner.spin(document.body,mxResources.get("loading"))&&g.getFile(t,function(C){var K="data:image/"==C.getData().substring(0,11)?H(C.getTitle()):"text/xml";/\.svg$/i.test(C.getTitle())&&!f.editor.isDataSvg(C.getData())&&(C.setData(Editor.createSvgDataUri(C.getData())),K="image/svg+xml");I(C.getData(),K,C.getTitle())},function(C){f.handleError(C,null!=C?mxResources.get("errorLoadingFile"):
+null)},g==f.drive)},!0)}var I=mxUtils.bind(this,function(g,t,C){var K=x.view,Q=x.getGraphBounds(),S=x.snap(Math.ceil(Math.max(0,Q.x/K.scale-K.translate.x)+4*x.gridSize)),U=x.snap(Math.ceil(Math.max(0,(Q.y+Q.height)/K.scale-K.translate.y)+4*x.gridSize));"data:image/"==g.substring(0,11)?f.loadImage(g,mxUtils.bind(this,function(N){var P=!0,V=mxUtils.bind(this,function(){f.resizeImage(N,g,mxUtils.bind(this,function(Y,X,Z){Y=P?Math.min(1,Math.min(f.maxImageSize/X,f.maxImageSize/Z)):1;f.importFile(g,t,
+S,U,Math.round(X*Y),Math.round(Z*Y),C,function(aa){f.spinner.stop();x.setSelectionCells(aa);x.scrollCellToVisible(x.getSelectionCell())})}),P)});g.length>f.resampleThreshold?f.confirmImageResize(function(Y){P=Y;V()}):V()}),mxUtils.bind(this,function(){f.handleError({message:mxResources.get("cannotOpenFile")})})):f.importFile(g,t,S,U,0,0,C,function(N){f.spinner.stop();x.setSelectionCells(N);x.scrollCellToVisible(x.getSelectionCell())})}),H=mxUtils.bind(this,function(g){var t="text/xml";/\.png$/i.test(g)?
t="image/png":/\.jpe?g$/i.test(g)?t="image/jpg":/\.gif$/i.test(g)?t="image/gif":/\.pdf$/i.test(g)&&(t="application/pdf");return t});"undefined"!=typeof google&&"undefined"!=typeof google.picker&&(null!=f.drive?p.addItem(mxResources.get("googleDrive")+"...",null,function(){G(f.drive)},u):f.isModeEnabled(App.MODE_GOOGLE)&&p.addItem(mxResources.get("googleDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},u,null,!1));f.isModeReady(App.MODE_ONEDRIVE)?p.addItem(mxResources.get("oneDrive")+
"...",null,function(){G(f.oneDrive)},u):f.isModeEnabled(App.MODE_ONEDRIVE)&&p.addItem(mxResources.get("oneDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},u,null,!1);f.isModeReady(App.MODE_DROPBOX)?p.addItem(mxResources.get("dropbox")+"...",null,function(){G(f.dropbox)},u):f.isModeEnabled(App.MODE_DROPBOX)&&p.addItem(mxResources.get("dropbox")+" ("+mxResources.get("loading")+"...)",null,function(){},u,null,!1);p.addSeparator(u);f.isModeReady(App.MODE_GITHUB)&&p.addItem(mxResources.get("github")+
"...",null,function(){G(f.gitHub)},u);f.isModeReady(App.MODE_GITLAB)&&p.addItem(mxResources.get("gitlab")+"...",null,function(){G(f.gitLab)},u);f.isModeReady(App.MODE_TRELLO)?p.addItem(mxResources.get("trello")+"...",null,function(){G(f.trello)},u):f.isModeEnabled(App.MODE_TRELLO)&&p.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+"...)",null,function(){},u,null,!1);p.addSeparator(u);isLocalStorage&&"0"!=urlParams.browser&&p.addItem(mxResources.get("browser")+"...",null,function(){f.importLocalFile(!1)},
-u);"1"!=urlParams.noDevice&&p.addItem(mxResources.get("device")+"...",null,function(){f.importLocalFile(!0)},u);f.isOffline()||(p.addSeparator(u),p.addItem(mxResources.get("url")+"...",null,function(){var g=new FilenameDialog(f,"",mxResources.get("import"),function(t){if(null!=t&&0<t.length&&f.spinner.spin(document.body,mxResources.get("loading"))){var B=/(\.png)($|\?)/i.test(t)?"image/png":"text/xml";f.editor.loadUrl(PROXY_URL+"?url="+encodeURIComponent(t),function(K){I(K,B,t)},function(){f.spinner.stop();
-f.handleError(null,mxResources.get("errorLoadingFile"))},"image/png"==B)}},mxResources.get("url"));f.showDialog(g.container,300,80,!0,!0);g.init()},u))}))).isEnabled=z;this.put("dynamicAppearance",new Menu(mxUtils.bind(this,function(p,u){var G=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;"simple"==Editor.currentTheme&&(750>G&&this.addSubmenu("viewZoom",p,u,mxResources.get("zoom")),460>G&&f.isPageMenuVisible()&&this.addSubmenu("pages",p,u),320>G&&this.addSubmenu("insert",
+u);"1"!=urlParams.noDevice&&p.addItem(mxResources.get("device")+"...",null,function(){f.importLocalFile(!0)},u);f.isOffline()||(p.addSeparator(u),p.addItem(mxResources.get("url")+"...",null,function(){var g=new FilenameDialog(f,"",mxResources.get("import"),function(t){if(null!=t&&0<t.length&&f.spinner.spin(document.body,mxResources.get("loading"))){var C=/(\.png)($|\?)/i.test(t)?"image/png":"text/xml";f.editor.loadUrl(PROXY_URL+"?url="+encodeURIComponent(t),function(K){I(K,C,t)},function(){f.spinner.stop();
+f.handleError(null,mxResources.get("errorLoadingFile"))},"image/png"==C)}},mxResources.get("url"));f.showDialog(g.container,300,80,!0,!0);g.init()},u))}))).isEnabled=z;this.put("dynamicAppearance",new Menu(mxUtils.bind(this,function(p,u){var G=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;"simple"==Editor.currentTheme&&(750>G&&this.addSubmenu("viewZoom",p,u,mxResources.get("zoom")),460>G&&f.isPageMenuVisible()&&this.addSubmenu("pages",p,u),320>G&&this.addSubmenu("insert",
p,u),360>G&&"1"!=urlParams.embed&&"draw.io"==f.getServiceName()&&this.addSubmenu("share",p,u))})));this.put("appearance",new Menu(mxUtils.bind(this,function(p,u){if(f.isAutoDarkModeSupported()){var G=f.menus.addMenuItem(p,"autoMode",u);null!=G&&G.setAttribute("title",mxResources.get("automatic")+" ("+mxResources.get(Editor.isDarkMode()?"dark":"light")+")")}this.addMenuItems(p,["lightMode","darkMode","-"],u);G=f.menus.addMenuItem(p,"highContrast",u);(!f.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&
f.menus.addLinkToItem(G,"https://github.com/jgraph/drawio/issues/4296")})));f.actions.addAction("addToScratchpad",function(p){x.isSelectionEmpty()||null==f.addSelectionToScratchpad||f.addSelectionToScratchpad(p)});f.actions.addAction("accounts...",function(){f.toggleUserPanel();f.userPanel.style.right="10px";f.userPanel.style.top="10px"});this.put("theme",new Menu(mxUtils.bind(this,function(p,u){var G="1"==urlParams.sketch?"sketch":mxSettings.getUi(),I=p.addItem(mxResources.get("automatic"),null,
-function(){f.setCurrentTheme("")},u),H=p.addItem(mxResources.get("classic"),null,function(){f.setCurrentTheme("kennedy")},u),g=!1;if("kennedy"==G||"dark"==G)p.addCheckmark(H,Editor.checkmarkImage),g=!0;for(var t=0;t<Editor.themes.length;t++)mxUtils.bind(this,function(B){H=p.addItem(mxResources.get("min"==B?"minimal":B),null,function(){f.setCurrentTheme(B)},u);G==B&&(p.addCheckmark(H,Editor.checkmarkImage),g=!0);"simple"==B&&p.addSeparator(u)})(Editor.themes[t]);g||p.addCheckmark(I,Editor.checkmarkImage)})));
+function(){f.setCurrentTheme("")},u),H=p.addItem(mxResources.get("classic"),null,function(){f.setCurrentTheme("kennedy")},u),g=!1;if("kennedy"==G||"dark"==G)p.addCheckmark(H,Editor.checkmarkImage),g=!0;for(var t=0;t<Editor.themes.length;t++)mxUtils.bind(this,function(C){H=p.addItem(mxResources.get("min"==C?"minimal":C),null,function(){f.setCurrentTheme(C)},u);G==C&&(p.addCheckmark(H,Editor.checkmarkImage),g=!0);"simple"==C&&p.addSeparator(u)})(Editor.themes[t]);g||p.addCheckmark(I,Editor.checkmarkImage)})));
y=this.editorUi.actions.addAction("rename...",mxUtils.bind(this,function(){var p=this.editorUi.getCurrentFile();if(null!=p)if(p.constructor==LocalFile&&null!=p.fileHandle)f.showSaveFilePicker(mxUtils.bind(f,function(G,I){p.invalidFileHandle=null;p.fileHandle=G;p.title=I.name;p.desc=I;f.save(I.name)}),null,f.createFileSystemOptions(p.getTitle()));else{var u=null!=p.getTitle()?p.getTitle():this.editorUi.defaultFilename;u=new FilenameDialog(this.editorUi,u,mxResources.get("rename"),mxUtils.bind(this,
function(G){null!=G&&0<G.length&&null!=p&&G!=p.getTitle()&&this.editorUi.spinner.spin(document.body,mxResources.get("renaming"))&&p.rename(G,mxUtils.bind(this,function(I){this.editorUi.spinner.stop()}),mxUtils.bind(this,function(I){this.editorUi.handleError(I,null!=I?mxResources.get("errorRenamingFile"):null)}))}),p.constructor==DriveFile||p.constructor==StorageFile?mxResources.get("diagramName"):null,function(G){if(null!=G&&0<G.length)return!0;f.showError(mxResources.get("error"),mxResources.get("invalidName"),
mxResources.get("ok"));return!1},null,FilenameDialog.filenameHelpLink,null,null,f.editor.fileExtensions);this.editorUi.showDialog(u.container,340,100,!0,!0);u.init()}}));y.isEnabled=function(){return this.enabled&&z.apply(this,arguments)};y.visible="1"!=urlParams.embed;f.actions.addAction("makeCopy...",mxUtils.bind(this,function(){var p=f.getCurrentFile();if(null!=p){var u=f.getCopyFilename(p);p.constructor==DriveFile?(u=new SaveDialog(f,u,mxUtils.bind(this,function(G,I,H){f.hideDialog();p.copyFile(mxUtils.bind(this,
@@ -14346,13 +14353,13 @@ mxResources.get("moving"))&&p.move(H,mxUtils.bind(this,function(g){f.spinner.sto
new Action("presentationMode...",function(){var p=null!=f.getCurrentFile()?f.getCurrentFile().getTitle():null;f.editor.editAsNew(f.getFileData(!0),p,!0,null!=f.currentPage?f.currentPage.getId():null)}));this.editorUi.actions.addAction("share...",mxUtils.bind(this,function(){try{var p=f.getCurrentFile();null!=p&&p.share()}catch(u){f.handleError(u)}})).isEnabled=z;this.put("embed",new Menu(mxUtils.bind(this,function(p,u){var G=f.getCurrentFile();null==G||G.getMode()!=App.MODE_GOOGLE&&G.getMode()!=App.MODE_GITHUB||
!/(\.png)$/i.test(G.getTitle())||this.addMenuItems(p,["liveImage","-"],u);this.addMenuItems(p,["embedImage","embedSvg","-","embedHtml"],u);navigator.standalone||f.isOffline()||this.addMenuItems(p,["embedIframe"],u);this.addMenuItems(p,["-","microsoftOffice","-","embedNotion"],u)})));y=function(p){var u=mxResources.get(p)+"...";f.actions.put(p,new Action(u,function(G){if("fromText"==p||"formatSql"==p||"plantUml"==p||"mermaid"==p){var I=new ParseDialog(f,u,p);f.showDialog(I.container,640,420,!0,!1,
null,null,null,new mxRectangle(0,0,440,280))}else I=new CreateGraphDialog(f,u,p),f.showDialog(I.container,620,420,!0,!1,function(H,g){if(g)return f.confirm(mxResources.get("areYouSure"),function(){f.hideDialog()}),!1;null!=I.graph&&(null!=I.graph.container.parentNode&&I.graph.container.parentNode.removeChild(I.graph.container),I.graph.destroy(),I.graph=null)});I.init()})).isEnabled=z};y("mermaid");y("horizontalFlow");y("verticalFlow");y("horizontalTree");y("verticalTree");y("radialTree");y("organic");
-y("circle");y("fromText");y("formatSql");("https://plant-aws.diagrams.net"!=window.PLANT_URL||EditorUi.enablePlantUml&&!f.isOffline())&&y("plantUml");var C=function(p){x.getModel().beginUpdate();try{p=x.addCell(p),x.fireEvent(new mxEventObject("cellsInserted","cells",[p])),x.model.isVertex(p)&&x.isAutoSizeCell(p)&&x.updateCellSize(p)}finally{x.getModel().endUpdate()}x.scrollCellToVisible(p);x.setSelectionCell(p);x.container.focus();x.editAfterInsert&&x.startEditing(p);window.setTimeout(function(){null!=
-f.hoverIcons&&f.hoverIcons.update(x.view.getState(p))},0);return p},D=function(p,u,G,I,H){p=new mxCell(p,new mxGeometry(0,0,u,G),I);p.vertex=!0;null==H&&(H=x.getCenterInsertPoint(x.getBoundingBoxFromGeometry([p],!0)));p.geometry.x=H.x;p.geometry.y=H.y;return C(p)};f.actions.put("insertText",new Action("text",function(p){x.isEnabled()&&!x.isCellLocked(x.getDefaultParent())&&x.startEditingAtCell(D("Text",60,30,x.appendFontSize(Editor.defaultTextStyle,x.vertexFontSize),null==p||mxEvent.isControlDown(p)||
+y("circle");y("fromText");y("formatSql");("https://plant-aws.diagrams.net"!=window.PLANT_URL||EditorUi.enablePlantUml&&!f.isOffline())&&y("plantUml");var B=function(p){x.getModel().beginUpdate();try{p=x.addCell(p),x.fireEvent(new mxEventObject("cellsInserted","cells",[p])),x.model.isVertex(p)&&x.isAutoSizeCell(p)&&x.updateCellSize(p)}finally{x.getModel().endUpdate()}x.scrollCellToVisible(p);x.setSelectionCell(p);x.container.focus();x.editAfterInsert&&x.startEditing(p);window.setTimeout(function(){null!=
+f.hoverIcons&&f.hoverIcons.update(x.view.getState(p))},0);return p},D=function(p,u,G,I,H){p=new mxCell(p,new mxGeometry(0,0,u,G),I);p.vertex=!0;null==H&&(H=x.getCenterInsertPoint(x.getBoundingBoxFromGeometry([p],!0)));p.geometry.x=H.x;p.geometry.y=H.y;return B(p)};f.actions.put("insertText",new Action("text",function(p){x.isEnabled()&&!x.isCellLocked(x.getDefaultParent())&&x.startEditingAtCell(D("Text",60,30,x.appendFontSize(Editor.defaultTextStyle,x.vertexFontSize),null==p||mxEvent.isControlDown(p)||
mxEvent.isMetaDown(p)||!x.isMouseInsertPoint()?null:x.getInsertPoint()))},null,null,"A")).isEnabled=z;f.actions.put("insertRectangle",new Action("rectangle",function(p){x.isEnabled()&&!x.isCellLocked(x.getDefaultParent())&&D("",120,60,"whiteSpace=wrap;html=1;",null==p||mxEvent.isControlDown(p)||mxEvent.isMetaDown(p)||!x.isMouseInsertPoint()?null:x.getInsertPoint())},null,null,"D")).isEnabled=z;f.actions.put("insertNote",new Action("note",function(p){x.isEnabled()&&!x.isCellLocked(x.getDefaultParent())&&
D("",160,160,Editor.defaultNoteStyle,null==p||mxEvent.isControlDown(p)||mxEvent.isMetaDown(p)||!x.isMouseInsertPoint()?null:x.getInsertPoint())},null,null,"S")).isEnabled=z;f.actions.put("insertEllipse",new Action("ellipse",function(p){x.isEnabled()&&!x.isCellLocked(x.getDefaultParent())&&D("",80,80,"ellipse;whiteSpace=wrap;html=1;",null==p||mxEvent.isControlDown(p)||mxEvent.isMetaDown(p)||!x.isMouseInsertPoint()?null:x.getInsertPoint())},null,null,"F")).isEnabled=z;f.actions.put("insertRhombus",
new Action("rhombus",function(p){x.isEnabled()&&!x.isCellLocked(x.getDefaultParent())&&D("",80,80,"rhombus;whiteSpace=wrap;html=1;",null==p||mxEvent.isControlDown(p)||mxEvent.isMetaDown(p)||!x.isMouseInsertPoint()?null:x.getInsertPoint())},null,null,"R")).isEnabled=z;f.actions.put("insertEdge",new Action("line",function(p){if(x.isEnabled()&&!x.isCellLocked(x.getDefaultParent())){var u=x.defaultEdgeLength;p=null==p||mxEvent.isControlDown(p)||mxEvent.isMetaDown(p)||!x.isMouseInsertPoint()?null:x.getInsertPoint();
-null==p&&(p=x.getCenterInsertPoint(x.getBoundingBoxFromGeometry([G],!0)));var G=new mxCell("",new mxGeometry(0,0,u,0),"edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;");G.geometry.setTerminalPoint(p,!0);G.geometry.setTerminalPoint(new mxPoint(p.x+G.geometry.width,p.y),!1);G.geometry.points=[];G.geometry.relative=!0;G.edge=!0;C(G)}},null,null,"C")).isEnabled=z;f.actions.put("insertPolygon",new Action("polygon...",function(p){if(x.isEnabled()&&!x.isCellLocked(x.getDefaultParent())){var u=new PolygonDialog(f,
-null,function(G){G=new mxCell("",new mxGeometry(0,0,80,80),G);G.vertex=!0;var I=null==p||mxEvent.isControlDown(p)||mxEvent.isMetaDown(p)||!x.isMouseInsertPoint()?null:x.getInsertPoint();null==I&&(I=x.getCenterInsertPoint(x.getBoundingBoxFromGeometry([G],!0)));G.geometry.x=I.x;G.geometry.y=I.y;return C(G)});f.showDialog(u.container,680,540,!0,!0,function(){u.destroy()},null,null,new mxRectangle(0,0,740,600));u.init()}})).isEnabled=z;y=f.actions.put("toggleShapes",new Action("shapes",function(){null!=
+null==p&&(p=x.getCenterInsertPoint(x.getBoundingBoxFromGeometry([G],!0)));var G=new mxCell("",new mxGeometry(0,0,u,0),"edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;");G.geometry.setTerminalPoint(p,!0);G.geometry.setTerminalPoint(new mxPoint(p.x+G.geometry.width,p.y),!1);G.geometry.points=[];G.geometry.relative=!0;G.edge=!0;B(G)}},null,null,"C")).isEnabled=z;f.actions.put("insertPolygon",new Action("polygon...",function(p){if(x.isEnabled()&&!x.isCellLocked(x.getDefaultParent())){var u=new PolygonDialog(f,
+null,function(G){G=new mxCell("",new mxGeometry(0,0,80,80),G);G.vertex=!0;var I=null==p||mxEvent.isControlDown(p)||mxEvent.isMetaDown(p)||!x.isMouseInsertPoint()?null:x.getInsertPoint();null==I&&(I=x.getCenterInsertPoint(x.getBoundingBoxFromGeometry([G],!0)));G.geometry.x=I.x;G.geometry.y=I.y;return B(G)});f.showDialog(u.container,680,540,!0,!0,function(){u.destroy()},null,null,new mxRectangle(0,0,740,600));u.init()}})).isEnabled=z;y=f.actions.put("toggleShapes",new Action("shapes",function(){null!=
f.sidebarWindow?f.sidebarWindow.window.setVisible(!f.sidebarWindow.window.isVisible()):f.toggleShapesPanel(!f.isShapesPanelVisible())},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+K"));y.setToggleAction(!0);y.setSelectedCallback(mxUtils.bind(this,function(){return null!=f.sidebarWindow&&f.sidebarWindow.window.isVisible()||null==f.sidebarWindow&&0<f.hsplitPosition}));f.actions.put("showShapePicker",new Action(mxResources.get("shapes")+"...",function(){var p=x._contextMenuScreenPoint;f.showShapePicker(null!=
p?p.x:x.container.clientWidth/2,null!=p?p.y:x.container.clientHeight/2)}));this.put("insert",new Menu(mxUtils.bind(this,function(p,u){Editor.passiveScroll?(f.menus.addMenuItems(p,["showShapePicker"],u),f.menus.addSubmenu("table",p,u),p.addSeparator(u),f.menus.addMenuItems(p,"insertRectangle insertEllipse insertRhombus - insertEdge insertNote - insertText insertLink - insertImage createShape insertPolygon -".split(" "),u),f.insertTemplateEnabled&&!f.isOffline()&&f.menus.addMenuItems(p,["insertTemplate"],
u),f.menus.addMenuItems(p,["-","insertFreehand","generate","-"],u),f.menus.addSubmenu("layout",p,u),f.menus.addSubmenu("insertAdvanced",p,u,mxResources.get("advanced"))):"sketch"==Editor.currentTheme?(f.menus.addMenuItems(p,["toggleShapes"],u),f.menus.addSubmenu("table",p,u),p.addSeparator(u),f.menus.addMenuItems(p,"insertText insertLink - insertImage createShape insertPolygon -".split(" "),u),f.insertTemplateEnabled&&!f.isOffline()&&f.menus.addMenuItems(p,["insertTemplate"],u),window.isMermaidEnabled&&
@@ -14408,10 +14415,10 @@ null!=G&&G.isRevisionHistorySupported()&&f.menus.addMenuItems(p,["revisionHistor
EditorUi.isElectronApp||null==G||G.constructor==LocalFile&&null==G.fileHandle||(p.addSeparator(u),I=this.addMenuItem(p,"synchronize",u),(!f.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&this.addLinkToItem(I,"https://www.drawio.com/doc/faq/synchronize")),this.addMenuItems(p,["-","save","saveAs","-"],u),mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=f.getServiceName()||f.isOfflineApp()||null==G||this.addMenuItems(p,["share","-"],u),null!=G&&G.isRenamable()&&this.addMenuItems(p,
["rename"],u),f.isOfflineApp()?this.addMenuItems(p,["upload"],u):(this.addMenuItems(p,["makeCopy"],u),null!=G&&(G.constructor==OneDriveFile&&this.addMenuItems(p,["moveToFolder"],u),null!=G.getFolderUrl()&&f.menus.addMenuItems(p,["openFolder"],u)))),p.addSeparator(u),this.addSubmenu("importFrom",p,u),this.addSubmenu("exportAs",p,u),f.isOffline()||(p.addSeparator(u),this.addSubmenu("embed",p,u),this.addSubmenu("publish",p,u)),p.addSeparator(u),this.addSubmenu("newLibrary",p,u),this.addSubmenu("openLibraryFrom",
p,u),f.isRevisionHistorySupported()&&this.addMenuItems(p,["-","revisionHistory"],u),null!=G&&null!=f.fileNode&&"1"!=urlParams.embedInline&&(I=null!=G.getTitle()?G.getTitle():f.defaultFilename,(G.constructor==DriveFile&&null!=G.sync&&G.sync.isConnected()||!/(\.html)$/i.test(I))&&this.addMenuItems(p,["-","properties"])),this.addMenuItems(p,["-","pageSetup"],u),mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(p,["print"],u),this.addMenuItems(p,["-","close"])})));this.put("fontFamily",new Menu(mxUtils.bind(this,
-function(p,u){function G(S){var U=encodeURIComponent(S.name)+(null==S.url?"":"@"+encodeURIComponent(S.url));if(!H[U]){for(var N=S.name,P=0;null!=K[N.toLowerCase()];)N=S.name+" ("+ ++P+")";null==B[U]&&(Q.push({name:S.name,url:S.url,label:N,title:S.url}),K[N.toLowerCase()]=S,B[U]=S)}}for(var I=mxUtils.bind(this,function(S,U,N,P,V){var Y=f.editor.graph,X=this.styleChange(p,null!=P?P:S,[mxConstants.STYLE_FONTFAMILY,"fontSource","FType"],[S,null!=U?encodeURIComponent(U):null,null],null,u,function(){Y.setFont(S,
+function(p,u){function G(S){var U=encodeURIComponent(S.name)+(null==S.url?"":"@"+encodeURIComponent(S.url));if(!H[U]){for(var N=S.name,P=0;null!=K[N.toLowerCase()];)N=S.name+" ("+ ++P+")";null==C[U]&&(Q.push({name:S.name,url:S.url,label:N,title:S.url}),K[N.toLowerCase()]=S,C[U]=S)}}for(var I=mxUtils.bind(this,function(S,U,N,P,V){var Y=f.editor.graph,X=this.styleChange(p,null!=P?P:S,[mxConstants.STYLE_FONTFAMILY,"fontSource","FType"],[S,null!=U?encodeURIComponent(U):null,null],null,u,function(){Y.setFont(S,
U);f.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTFAMILY,"fontSource","FType"],"values",[S,null!=U?encodeURIComponent(U):null,null],"cells",[Y.cellEditor.getEditingCell()]))},function(){Y.updateLabelElements(Y.getSelectionCells(),function(Z){Z.removeAttribute("face");Z.style.fontFamily=null;"PRE"==Z.nodeName&&Y.replaceElement(Z,"div")})});N&&(N=document.createElement("img"),N.className="geAdaptiveAsset",N.setAttribute("src",Editor.crossImage),N.setAttribute("title",mxResources.get("delete")),
N.setAttribute("valign","absmiddle"),N.setAttribute("border","0"),N.style.position="relative",N.style.top="2px",N.style.width="14px",N.style.cursor="default",N.style.margin="0 3px",X.firstChild.nextSibling.nextSibling.appendChild(N),mxEvent.addListener(N,mxClient.IS_POINTER?"pointerup":"mouseup",mxUtils.bind(this,function(Z){this.removeCustomFont(S,U);this.editorUi.hideCurrentMenu();mxEvent.consume(Z)})));Graph.addFont(S,U);X.firstChild.nextSibling.style.fontFamily=S;V=null!=P?P:S;null!=U&&(V+=" ("+
-U+")");X.setAttribute("title",V)}),H={},g=0;g<this.defaultFonts.length;g++){var t=this.defaultFonts[g];"string"===typeof t?I(t):null!=t.fontFamily&&null!=t.fontUrl&&(H[encodeURIComponent(t.fontFamily)+"@"+encodeURIComponent(t.fontUrl)]=!0,I(t.fontFamily,t.fontUrl))}p.addSeparator(u);var B={},K={},Q=[];for(g=0;g<this.customFonts.length;g++)G(this.customFonts[g]);Q.sort(function(S,U){return S.label<U.label?-1:S.label>U.label?1:0});if(0<Q.length){for(g=0;g<Q.length;g++)I(Q[g].name,Q[g].url,!0,Q[g].label);
+U+")");X.setAttribute("title",V)}),H={},g=0;g<this.defaultFonts.length;g++){var t=this.defaultFonts[g];"string"===typeof t?I(t):null!=t.fontFamily&&null!=t.fontUrl&&(H[encodeURIComponent(t.fontFamily)+"@"+encodeURIComponent(t.fontUrl)]=!0,I(t.fontFamily,t.fontUrl))}p.addSeparator(u);var C={},K={},Q=[];for(g=0;g<this.customFonts.length;g++)G(this.customFonts[g]);Q.sort(function(S,U){return S.label<U.label?-1:S.label>U.label?1:0});if(0<Q.length){for(g=0;g<Q.length;g++)I(Q[g].name,Q[g].url,!0,Q[g].label);
p.addSeparator(u)}p.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFonts=[];f.fireEvent(new mxEventObject("customFontsChanged"))}),u);p.addSeparator(u);p.addItem(mxResources.get("custom")+"...",null,mxUtils.bind(this,function(){var S=this.editorUi.editor.graph,U=S.getStylesheet().getDefaultVertexStyle()[mxConstants.STYLE_FONTFAMILY],N="s",P=null;if(S.isEditing()){var V=S.getSelectedEditingElement();if(null!=V){var Y=mxUtils.getCurrentStyle(V);if(null!=Y){U=mxUtils.getCssFontFamily(Y.fontFamily);
Y=S.getView().getState(S.cellEditor.getEditingCell());P=null!=Y?Y.style.fontSource:null;for(null!=P&&(P=decodeURIComponent(P));null!=V&&V!=S.cellEditor.textarea;){if(V.nodeType==mxConstants.NODETYPE_ELEMENT)if(null!=V.getAttribute("data-font-src")){P=V.getAttribute("data-font-src");break}else if(V.getAttribute("face")==U){P=null;break}V=V.parentNode}null!=P&&(Graph.isGoogleFontUrl(P)?(P=null,N="g"):N="w")}}}else Y=S.getView().getState(S.getSelectionCell()),null!=Y&&(U=Y.style[mxConstants.STYLE_FONTFAMILY]||
U,V=Y.style.fontSource,null!=V&&(V=decodeURIComponent(V),Graph.isGoogleFontUrl(V)?N="g":(N="w",P=V)));null!=P&&P.substring(0,PROXY_URL.length)==PROXY_URL&&(P=decodeURIComponent(P.substr((PROXY_URL+"?url=").length)));var X=null;document.activeElement==S.cellEditor.textarea&&(X=S.cellEditor.saveSelection());U=new FontDialog(this.editorUi,U,P,N,mxUtils.bind(this,function(Z,aa,ea){null!=X&&(S.cellEditor.restoreSelection(X),X=null);if(null!=Z&&0<Z.length)if(this.addCustomFont(Z,aa),S.isEditing())S.setFont(Z,
@@ -14488,30 +14495,30 @@ EditorUi.prototype.createPageMenu=function(b,l){return mxUtils.bind(this,functio
[];this.traverse(x,!0,mxUtils.bind(this,function(E,M){var L=null!=M&&this.isTreeEdge(M);L&&z.push(M);E==x||null!=M&&!L||z.push(E);return(null==M||L)&&(E==x||!this.model.isCollapsed(E))}));this.model.setCollapsed(x,f);for(var y=0;y<z.length;y++)this.model.setVisible(z[y],!f)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(f){return!this.isEdgeIgnored(f)};Graph.prototype.getTreeEdges=function(f,x,z,y,E,M){return this.model.filterCells(this.getEdges(f,x,z,y,E,M),mxUtils.bind(this,
function(L){return this.isTreeEdge(L)}))};Graph.prototype.getIncomingTreeEdges=function(f,x){return this.getTreeEdges(f,x,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(f,x){return this.getTreeEdges(f,x,!1,!0,!1)};var l=EditorUi.prototype.init;EditorUi.prototype.init=function(){l.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function f(H){return m.isVertex(H)&&z(H)}function x(H){var g=!1;null!=H&&(g="1"==
k.getCurrentCellStyle(H).treeMoving);return g}function z(H){var g=!1;null!=H&&(H=m.getParent(H),g=k.view.getState(H),g="tree"==(null!=g?g.style:k.getCellStyle(H)).containerType);return g}function y(H){var g=!1;null!=H&&(H=m.getParent(H),g=k.view.getState(H),k.view.getState(H),g=null!=(null!=g?g.style:k.getCellStyle(H)).childLayout);return g}function E(H){H=k.view.getState(H);if(null!=H){var g=k.getIncomingTreeEdges(H.cell);if(0<g.length&&(g=k.view.getState(g[0]),null!=g&&(g=g.absolutePoints,null!=
-g&&0<g.length&&(g=g[g.length-1],null!=g)))){if(g.y==H.y&&Math.abs(g.x-H.getCenterX())<H.width/2)return mxConstants.DIRECTION_SOUTH;if(g.y==H.y+H.height&&Math.abs(g.x-H.getCenterX())<H.width/2)return mxConstants.DIRECTION_NORTH;if(g.x>H.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function M(H,g){g=null!=g?g:!0;k.model.beginUpdate();try{var t=k.model.getParent(H),B=k.getIncomingTreeEdges(H),K=k.cloneCells([B[0],H]);k.model.setTerminal(K[0],k.model.getTerminal(B[0],
+g&&0<g.length&&(g=g[g.length-1],null!=g)))){if(g.y==H.y&&Math.abs(g.x-H.getCenterX())<H.width/2)return mxConstants.DIRECTION_SOUTH;if(g.y==H.y+H.height&&Math.abs(g.x-H.getCenterX())<H.width/2)return mxConstants.DIRECTION_NORTH;if(g.x>H.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function M(H,g){g=null!=g?g:!0;k.model.beginUpdate();try{var t=k.model.getParent(H),C=k.getIncomingTreeEdges(H),K=k.cloneCells([C[0],H]);k.model.setTerminal(K[0],k.model.getTerminal(C[0],
!0),!0);var Q=E(H),S=t.geometry;Q==mxConstants.DIRECTION_SOUTH||Q==mxConstants.DIRECTION_NORTH?K[1].geometry.x+=g?H.geometry.width+10:-K[1].geometry.width-10:K[1].geometry.y+=g?H.geometry.height+10:-K[1].geometry.height-10;k.view.currentRoot!=t&&(K[1].geometry.x-=S.x,K[1].geometry.y-=S.y);var U=k.view.getState(H),N=k.view.scale;if(null!=U){var P=mxRectangle.fromRectangle(U);Q==mxConstants.DIRECTION_SOUTH||Q==mxConstants.DIRECTION_NORTH?P.x+=(g?H.geometry.width+10:-K[1].geometry.width-10)*N:P.y+=(g?
-H.geometry.height+10:-K[1].geometry.height-10)*N;var V=k.getOutgoingTreeEdges(k.model.getTerminal(B[0],!0));if(null!=V){for(var Y=Q==mxConstants.DIRECTION_SOUTH||Q==mxConstants.DIRECTION_NORTH,X=S=B=0;X<V.length;X++){var Z=k.model.getTerminal(V[X],!1);if(Q==E(Z)){var aa=k.view.getState(Z);Z!=H&&null!=aa&&(Y&&g!=aa.getCenterX()<U.getCenterX()||!Y&&g!=aa.getCenterY()<U.getCenterY())&&mxUtils.intersects(P,aa)&&(B=10+Math.max(B,(Math.min(P.x+P.width,aa.x+aa.width)-Math.max(P.x,aa.x))/N),S=10+Math.max(S,
-(Math.min(P.y+P.height,aa.y+aa.height)-Math.max(P.y,aa.y))/N))}}Y?S=0:B=0;for(X=0;X<V.length;X++)if(Z=k.model.getTerminal(V[X],!1),Q==E(Z)&&(aa=k.view.getState(Z),Z!=H&&null!=aa&&(Y&&g!=aa.getCenterX()<U.getCenterX()||!Y&&g!=aa.getCenterY()<U.getCenterY()))){var ea=[];k.traverse(aa.cell,!0,function(ha,ba){var ia=null!=ba&&k.isTreeEdge(ba);ia&&ea.push(ba);(null==ba||ia)&&ea.push(ha);return null==ba||ia});k.moveCells(ea,(g?1:-1)*B,(g?1:-1)*S)}}}return k.addCells(K,t)}finally{k.model.endUpdate()}}function L(H){k.model.beginUpdate();
-try{var g=E(H),t=k.getIncomingTreeEdges(H),B=k.cloneCells([t[0],H]);k.model.setTerminal(t[0],B[1],!1);k.model.setTerminal(B[0],B[1],!0);k.model.setTerminal(B[0],H,!1);var K=k.model.getParent(H),Q=K.geometry,S=[];k.view.currentRoot!=K&&(B[1].geometry.x-=Q.x,B[1].geometry.y-=Q.y);k.traverse(H,!0,function(P,V){var Y=null!=V&&k.isTreeEdge(V);Y&&S.push(V);(null==V||Y)&&S.push(P);return null==V||Y});var U=H.geometry.width+40,N=H.geometry.height+40;g==mxConstants.DIRECTION_SOUTH?U=0:g==mxConstants.DIRECTION_NORTH?
-(U=0,N=-N):g==mxConstants.DIRECTION_WEST?(U=-U,N=0):g==mxConstants.DIRECTION_EAST&&(N=0);k.moveCells(S,U,N);return k.addCells(B,K)}finally{k.model.endUpdate()}}function O(H,g){k.model.beginUpdate();try{var t=k.model.getParent(H),B=k.getIncomingTreeEdges(H),K=E(H);0==B.length&&(B=[k.createEdge(t,null,"",null,null,k.createCurrentEdgeStyle())],K=g);var Q=k.cloneCells([B[0],H]);k.model.setTerminal(Q[0],H,!0);null==k.model.getTerminal(Q[0],!1)&&(k.model.setTerminal(Q[0],Q[1],!1),k.applyNewEdgeStyle(Q[1],
-[Q[0]],K));B=k.getOutgoingTreeEdges(H);var S=t.geometry;g=[];k.view.currentRoot==t&&(S=new mxRectangle);for(var U=0;U<B.length;U++){var N=k.model.getTerminal(B[U],!1);null!=N&&g.push(N)}var P=k.view.getBounds(g),V=k.view.translate,Y=k.view.scale;K==mxConstants.DIRECTION_SOUTH?(Q[1].geometry.x=null==P?H.geometry.x+(H.geometry.width-Q[1].geometry.width)/2:(P.x+P.width)/Y-V.x-S.x+10,Q[1].geometry.y+=Q[1].geometry.height-S.y+40):K==mxConstants.DIRECTION_NORTH?(Q[1].geometry.x=null==P?H.geometry.x+(H.geometry.width-
-Q[1].geometry.width)/2:(P.x+P.width)/Y-V.x+-S.x+10,Q[1].geometry.y-=Q[1].geometry.height+S.y+40):(Q[1].geometry.x=K==mxConstants.DIRECTION_WEST?Q[1].geometry.x-(Q[1].geometry.width+S.x+40):Q[1].geometry.x+(Q[1].geometry.width-S.x+40),Q[1].geometry.y=null==P?H.geometry.y+(H.geometry.height-Q[1].geometry.height)/2:(P.y+P.height)/Y-V.y+-S.y+10);return k.addCells(Q,t)}finally{k.model.endUpdate()}}function R(H,g,t){H=k.getOutgoingTreeEdges(H);t=k.view.getState(t);var B=[];if(null!=t&&null!=H){for(var K=
-0;K<H.length;K++){var Q=k.view.getState(k.model.getTerminal(H[K],!1));null!=Q&&(!g&&Math.min(Q.x+Q.width,t.x+t.width)>=Math.max(Q.x,t.x)||g&&Math.min(Q.y+Q.height,t.y+t.height)>=Math.max(Q.y,t.y))&&B.push(Q)}B.sort(function(S,U){return g?S.x+S.width-U.x-U.width:S.y+S.height-U.y-U.height})}return B}function c(H,g){var t=E(H),B=g==mxConstants.DIRECTION_EAST||g==mxConstants.DIRECTION_WEST;(t==mxConstants.DIRECTION_EAST||t==mxConstants.DIRECTION_WEST)==B&&t!=g?d.actions.get("selectParent").funct():t==
-g?(g=k.getOutgoingTreeEdges(H),null!=g&&0<g.length&&k.setSelectionCell(k.model.getTerminal(g[0],!1))):(t=k.getIncomingTreeEdges(H),null!=t&&0<t.length&&(B=R(k.model.getTerminal(t[0],!0),B,H),H=k.view.getState(H),null!=H&&(H=mxUtils.indexOf(B,H),0<=H&&(H+=g==mxConstants.DIRECTION_NORTH||g==mxConstants.DIRECTION_WEST?-1:1,0<=H&&H<=B.length-1&&k.setSelectionCell(B[H].cell)))))}var d=this,k=d.editor.graph,m=k.getModel(),q=d.menus.createPopupMenu;d.menus.createPopupMenu=function(H,g,t){q.apply(this,arguments);
-if(1==k.getSelectionCount()){g=k.getSelectionCell();var B=k.getOutgoingTreeEdges(g);H.addSeparator();0<B.length&&(f(k.getSelectionCell())&&this.addMenuItems(H,["selectChildren"],null,t),this.addMenuItems(H,["selectDescendants"],null,t));f(k.getSelectionCell())?(H.addSeparator(),0<k.getIncomingTreeEdges(g).length&&this.addMenuItems(H,["selectSiblings","selectParent"],null,t)):0<k.model.getEdgeCount(g)&&this.addMenuItems(H,["selectConnections"],null,t)}};d.actions.addAction("selectChildren",function(H){if(k.isEnabled()&&
-1==k.getSelectionCount()){var g=k.getSelectionCell();H=mxEvent.isControlDown(H)?null:k.getOutgoingTreeEdges(g);if(null!=H&&0<H.length){g=[];for(var t=0;t<H.length;t++)g.push(k.model.getTerminal(H[t],!1));k.setSelectionCells(g)}else k.setSelectionCells(k.model.getChildren(g))}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+C");d.actions.addAction("selectDescendants",function(H){var g=k.getSelectionCell();if(k.isEnabled()&&null!=g){var t=[];mxEvent.isControlDown(H)||k.traverse(g,!0,function(B,K){var Q=
-null!=K&&k.isTreeEdge(K);Q&&mxEvent.isControlDown(H)&&t.push(K);(null==K||Q)&&t.push(B);return null==K||Q});if(0==t.length||1==t.length&&t[0]==g)t=k.model.getDescendants(g);k.setSelectionCells(t)}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+X");d.actions.addAction("selectParent",function(H){var g=k.getSelectionCell();k.isEnabled()&&null!=g&&(H=mxEvent.isControlDown(H)?null:k.getIncomingTreeEdges(g),null!=H&&0<H.length?k.setSelectionCell(k.model.getTerminal(H[0],!0)):k.selectParentCell())},null,
-null,Editor.altKey+"+"+Editor.shiftKey+"+P");d.actions.addAction("selectSiblings",function(H){if(k.isEnabled()&&1==k.getSelectionCount()){var g=k.getSelectionCell(),t=mxEvent.isControlDown(H)?null:k.getIncomingTreeEdges(g);H=[];if(null!=t&&0<t.length&&(t=k.getOutgoingTreeEdges(k.model.getTerminal(t[0],!0)),null!=t))for(var B=0;B<t.length;B++)H.push(k.model.getTerminal(t[B],!1));0==H.length&&(H=k.model.getChildren(k.model.getParent(g)));k.setSelectionCells(H)}},null,null,Editor.altKey+"+"+Editor.shiftKey+
-"+S");var v=k.removeCells;k.removeCells=function(H,g){g=null!=g?g:!0;null==H&&(H=this.getDeletableCells(this.getSelectionCells()));g&&(H=this.getDeletableCells(this.addAllEdges(H)));for(var t=[],B=0;B<H.length;B++){var K=H[B];m.isEdge(K)&&z(K)&&(t.push(K),K=m.getTerminal(K,!1));if(f(K)){var Q=[];k.traverse(K,!0,function(S,U){var N=null!=U&&k.isTreeEdge(U);N&&Q.push(U);(null==U||N)&&Q.push(S);return null==U||N});0<Q.length&&(t=t.concat(Q),K=k.getIncomingTreeEdges(H[B]),H=H.concat(K))}else null!=K&&
-t.push(H[B])}H=t;return v.apply(this,arguments)};d.hoverIcons.getStateAt=function(H,g,t){return f(H.cell)?null:this.graph.view.getState(this.graph.getCellAt(g,t))};var A=k.duplicateCells;k.duplicateCells=function(H,g){H=null!=H?H:this.getSelectionCells();for(var t=H.slice(0),B=0;B<t.length;B++){var K=k.view.getState(t[B]);if(null!=K&&f(K.cell)){var Q=k.getIncomingTreeEdges(K.cell);for(K=0;K<Q.length;K++)mxUtils.remove(Q[K],H)}}this.model.beginUpdate();try{var S=A.call(this,H,g);if(S.length==H.length)for(B=
-0;B<H.length;B++)if(f(H[B])){var U=k.getIncomingTreeEdges(S[B]);Q=k.getIncomingTreeEdges(H[B]);if(0==U.length&&0<Q.length){var N=this.cloneCell(Q[0]);this.addEdge(N,k.getDefaultParent(),this.model.getTerminal(Q[0],!0),S[B])}}}finally{this.model.endUpdate()}return S};var C=k.moveCells;k.moveCells=function(H,g,t,B,K,Q,S){for(var U=null,N=[],P=0;P<H.length;P++)(x(H[P])||f(H[P]))&&!y(H[P])&&this.isCellCollapsed(H[P])?N=N.concat(this.getSubtree(H[P])):N.push(H[P]);H=mxUtils.removeDuplicates(N);this.model.beginUpdate();
+H.geometry.height+10:-K[1].geometry.height-10)*N;var V=k.getOutgoingTreeEdges(k.model.getTerminal(C[0],!0));if(null!=V){for(var Y=Q==mxConstants.DIRECTION_SOUTH||Q==mxConstants.DIRECTION_NORTH,X=S=C=0;X<V.length;X++){var Z=k.model.getTerminal(V[X],!1);if(Q==E(Z)){var aa=k.view.getState(Z);Z!=H&&null!=aa&&(Y&&g!=aa.getCenterX()<U.getCenterX()||!Y&&g!=aa.getCenterY()<U.getCenterY())&&mxUtils.intersects(P,aa)&&(C=10+Math.max(C,(Math.min(P.x+P.width,aa.x+aa.width)-Math.max(P.x,aa.x))/N),S=10+Math.max(S,
+(Math.min(P.y+P.height,aa.y+aa.height)-Math.max(P.y,aa.y))/N))}}Y?S=0:C=0;for(X=0;X<V.length;X++)if(Z=k.model.getTerminal(V[X],!1),Q==E(Z)&&(aa=k.view.getState(Z),Z!=H&&null!=aa&&(Y&&g!=aa.getCenterX()<U.getCenterX()||!Y&&g!=aa.getCenterY()<U.getCenterY()))){var ea=[];k.traverse(aa.cell,!0,function(ha,ba){var ia=null!=ba&&k.isTreeEdge(ba);ia&&ea.push(ba);(null==ba||ia)&&ea.push(ha);return null==ba||ia});k.moveCells(ea,(g?1:-1)*C,(g?1:-1)*S)}}}return k.addCells(K,t)}finally{k.model.endUpdate()}}function L(H){k.model.beginUpdate();
+try{var g=E(H),t=k.getIncomingTreeEdges(H),C=k.cloneCells([t[0],H]);k.model.setTerminal(t[0],C[1],!1);k.model.setTerminal(C[0],C[1],!0);k.model.setTerminal(C[0],H,!1);var K=k.model.getParent(H),Q=K.geometry,S=[];k.view.currentRoot!=K&&(C[1].geometry.x-=Q.x,C[1].geometry.y-=Q.y);k.traverse(H,!0,function(P,V){var Y=null!=V&&k.isTreeEdge(V);Y&&S.push(V);(null==V||Y)&&S.push(P);return null==V||Y});var U=H.geometry.width+40,N=H.geometry.height+40;g==mxConstants.DIRECTION_SOUTH?U=0:g==mxConstants.DIRECTION_NORTH?
+(U=0,N=-N):g==mxConstants.DIRECTION_WEST?(U=-U,N=0):g==mxConstants.DIRECTION_EAST&&(N=0);k.moveCells(S,U,N);return k.addCells(C,K)}finally{k.model.endUpdate()}}function O(H,g){k.model.beginUpdate();try{var t=k.model.getParent(H),C=k.getIncomingTreeEdges(H),K=E(H);0==C.length&&(C=[k.createEdge(t,null,"",null,null,k.createCurrentEdgeStyle())],K=g);var Q=k.cloneCells([C[0],H]);k.model.setTerminal(Q[0],H,!0);null==k.model.getTerminal(Q[0],!1)&&(k.model.setTerminal(Q[0],Q[1],!1),k.applyNewEdgeStyle(Q[1],
+[Q[0]],K));C=k.getOutgoingTreeEdges(H);var S=t.geometry;g=[];k.view.currentRoot==t&&(S=new mxRectangle);for(var U=0;U<C.length;U++){var N=k.model.getTerminal(C[U],!1);null!=N&&g.push(N)}var P=k.view.getBounds(g),V=k.view.translate,Y=k.view.scale;K==mxConstants.DIRECTION_SOUTH?(Q[1].geometry.x=null==P?H.geometry.x+(H.geometry.width-Q[1].geometry.width)/2:(P.x+P.width)/Y-V.x-S.x+10,Q[1].geometry.y+=Q[1].geometry.height-S.y+40):K==mxConstants.DIRECTION_NORTH?(Q[1].geometry.x=null==P?H.geometry.x+(H.geometry.width-
+Q[1].geometry.width)/2:(P.x+P.width)/Y-V.x+-S.x+10,Q[1].geometry.y-=Q[1].geometry.height+S.y+40):(Q[1].geometry.x=K==mxConstants.DIRECTION_WEST?Q[1].geometry.x-(Q[1].geometry.width+S.x+40):Q[1].geometry.x+(Q[1].geometry.width-S.x+40),Q[1].geometry.y=null==P?H.geometry.y+(H.geometry.height-Q[1].geometry.height)/2:(P.y+P.height)/Y-V.y+-S.y+10);return k.addCells(Q,t)}finally{k.model.endUpdate()}}function R(H,g,t){H=k.getOutgoingTreeEdges(H);t=k.view.getState(t);var C=[];if(null!=t&&null!=H){for(var K=
+0;K<H.length;K++){var Q=k.view.getState(k.model.getTerminal(H[K],!1));null!=Q&&(!g&&Math.min(Q.x+Q.width,t.x+t.width)>=Math.max(Q.x,t.x)||g&&Math.min(Q.y+Q.height,t.y+t.height)>=Math.max(Q.y,t.y))&&C.push(Q)}C.sort(function(S,U){return g?S.x+S.width-U.x-U.width:S.y+S.height-U.y-U.height})}return C}function c(H,g){var t=E(H),C=g==mxConstants.DIRECTION_EAST||g==mxConstants.DIRECTION_WEST;(t==mxConstants.DIRECTION_EAST||t==mxConstants.DIRECTION_WEST)==C&&t!=g?d.actions.get("selectParent").funct():t==
+g?(g=k.getOutgoingTreeEdges(H),null!=g&&0<g.length&&k.setSelectionCell(k.model.getTerminal(g[0],!1))):(t=k.getIncomingTreeEdges(H),null!=t&&0<t.length&&(C=R(k.model.getTerminal(t[0],!0),C,H),H=k.view.getState(H),null!=H&&(H=mxUtils.indexOf(C,H),0<=H&&(H+=g==mxConstants.DIRECTION_NORTH||g==mxConstants.DIRECTION_WEST?-1:1,0<=H&&H<=C.length-1&&k.setSelectionCell(C[H].cell)))))}var d=this,k=d.editor.graph,m=k.getModel(),q=d.menus.createPopupMenu;d.menus.createPopupMenu=function(H,g,t){q.apply(this,arguments);
+if(1==k.getSelectionCount()){g=k.getSelectionCell();var C=k.getOutgoingTreeEdges(g);H.addSeparator();0<C.length&&(f(k.getSelectionCell())&&this.addMenuItems(H,["selectChildren"],null,t),this.addMenuItems(H,["selectDescendants"],null,t));f(k.getSelectionCell())?(H.addSeparator(),0<k.getIncomingTreeEdges(g).length&&this.addMenuItems(H,["selectSiblings","selectParent"],null,t)):0<k.model.getEdgeCount(g)&&this.addMenuItems(H,["selectConnections"],null,t)}};d.actions.addAction("selectChildren",function(H){if(k.isEnabled()&&
+1==k.getSelectionCount()){var g=k.getSelectionCell();H=mxEvent.isControlDown(H)?null:k.getOutgoingTreeEdges(g);if(null!=H&&0<H.length){g=[];for(var t=0;t<H.length;t++)g.push(k.model.getTerminal(H[t],!1));k.setSelectionCells(g)}else k.setSelectionCells(k.model.getChildren(g))}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+C");d.actions.addAction("selectDescendants",function(H){var g=k.getSelectionCell();if(k.isEnabled()&&null!=g){var t=[];mxEvent.isControlDown(H)||k.traverse(g,!0,function(C,K){var Q=
+null!=K&&k.isTreeEdge(K);Q&&mxEvent.isControlDown(H)&&t.push(K);(null==K||Q)&&t.push(C);return null==K||Q});if(0==t.length||1==t.length&&t[0]==g)t=k.model.getDescendants(g);k.setSelectionCells(t)}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+X");d.actions.addAction("selectParent",function(H){var g=k.getSelectionCell();k.isEnabled()&&null!=g&&(H=mxEvent.isControlDown(H)?null:k.getIncomingTreeEdges(g),null!=H&&0<H.length?k.setSelectionCell(k.model.getTerminal(H[0],!0)):k.selectParentCell())},null,
+null,Editor.altKey+"+"+Editor.shiftKey+"+P");d.actions.addAction("selectSiblings",function(H){if(k.isEnabled()&&1==k.getSelectionCount()){var g=k.getSelectionCell(),t=mxEvent.isControlDown(H)?null:k.getIncomingTreeEdges(g);H=[];if(null!=t&&0<t.length&&(t=k.getOutgoingTreeEdges(k.model.getTerminal(t[0],!0)),null!=t))for(var C=0;C<t.length;C++)H.push(k.model.getTerminal(t[C],!1));0==H.length&&(H=k.model.getChildren(k.model.getParent(g)));k.setSelectionCells(H)}},null,null,Editor.altKey+"+"+Editor.shiftKey+
+"+S");var v=k.removeCells;k.removeCells=function(H,g){g=null!=g?g:!0;null==H&&(H=this.getDeletableCells(this.getSelectionCells()));g&&(H=this.getDeletableCells(this.addAllEdges(H)));for(var t=[],C=0;C<H.length;C++){var K=H[C];m.isEdge(K)&&z(K)&&(t.push(K),K=m.getTerminal(K,!1));if(f(K)){var Q=[];k.traverse(K,!0,function(S,U){var N=null!=U&&k.isTreeEdge(U);N&&Q.push(U);(null==U||N)&&Q.push(S);return null==U||N});0<Q.length&&(t=t.concat(Q),K=k.getIncomingTreeEdges(H[C]),H=H.concat(K))}else null!=K&&
+t.push(H[C])}H=t;return v.apply(this,arguments)};d.hoverIcons.getStateAt=function(H,g,t){return f(H.cell)?null:this.graph.view.getState(this.graph.getCellAt(g,t))};var A=k.duplicateCells;k.duplicateCells=function(H,g){H=null!=H?H:this.getSelectionCells();for(var t=H.slice(0),C=0;C<t.length;C++){var K=k.view.getState(t[C]);if(null!=K&&f(K.cell)){var Q=k.getIncomingTreeEdges(K.cell);for(K=0;K<Q.length;K++)mxUtils.remove(Q[K],H)}}this.model.beginUpdate();try{var S=A.call(this,H,g);if(S.length==H.length)for(C=
+0;C<H.length;C++)if(f(H[C])){var U=k.getIncomingTreeEdges(S[C]);Q=k.getIncomingTreeEdges(H[C]);if(0==U.length&&0<Q.length){var N=this.cloneCell(Q[0]);this.addEdge(N,k.getDefaultParent(),this.model.getTerminal(Q[0],!0),S[C])}}}finally{this.model.endUpdate()}return S};var B=k.moveCells;k.moveCells=function(H,g,t,C,K,Q,S){for(var U=null,N=[],P=0;P<H.length;P++)(x(H[P])||f(H[P]))&&!y(H[P])&&this.isCellCollapsed(H[P])?N=N.concat(this.getSubtree(H[P])):N.push(H[P]);H=mxUtils.removeDuplicates(N);this.model.beginUpdate();
try{N=K;var V=this.getCurrentCellStyle(K);if(null!=H&&f(K)&&"1"==mxUtils.getValue(V,"treeFolding","0")){for(P=0;P<H.length;P++)if(f(H[P])||k.model.isEdge(H[P])&&null==k.model.getTerminal(H[P],!0)){K=k.model.getParent(H[P]);break}if(null!=N&&K!=N&&null!=this.view.getState(H[0])){var Y=k.getIncomingTreeEdges(H[0]);if(0<Y.length){var X=k.view.getState(k.model.getTerminal(Y[0],!0));if(null!=X){var Z=k.view.getState(N);null!=Z&&(g=(Z.getCenterX()-X.getCenterX())/k.view.scale,t=(Z.getCenterY()-X.getCenterY())/
-k.view.scale)}}}}U=C.apply(this,arguments);if(null!=U&&null!=H&&U.length==H.length)for(P=0;P<U.length;P++)if(this.model.isEdge(U[P]))f(N)&&0>mxUtils.indexOf(U,this.model.getTerminal(U[P],!0))&&this.model.setTerminal(U[P],N,!0);else if(f(H[P])&&(Y=k.getIncomingTreeEdges(H[P]),0<Y.length))if(!B)f(N)&&0>mxUtils.indexOf(H,this.model.getTerminal(Y[0],!0))&&this.model.setTerminal(Y[0],N,!0);else if(0==k.getIncomingTreeEdges(U[P]).length){V=N;if(null==V||V==k.model.getParent(H[P]))V=k.model.getTerminal(Y[0],
-!0);B=this.cloneCell(Y[0]);this.addEdge(B,k.getDefaultParent(),V,U[P])}}finally{this.model.endUpdate()}return U};if(null!=d.sidebar){var D=d.sidebar.dropAndConnect;d.sidebar.dropAndConnect=function(H,g,t,B){var K=k.model,Q=null;K.beginUpdate();try{if(Q=D.apply(this,arguments),f(H))for(var S=0;S<Q.length;S++)if(K.isEdge(Q[S])&&null==K.getTerminal(Q[S],!0)){K.setTerminal(Q[S],H,!0);var U=k.getCellGeometry(Q[S]);U.points=null;null!=U.getTerminalPoint(!0)&&U.setTerminalPoint(null,!0)}}finally{K.endUpdate()}return Q}}var J=
+k.view.scale)}}}}U=B.apply(this,arguments);if(null!=U&&null!=H&&U.length==H.length)for(P=0;P<U.length;P++)if(this.model.isEdge(U[P]))f(N)&&0>mxUtils.indexOf(U,this.model.getTerminal(U[P],!0))&&this.model.setTerminal(U[P],N,!0);else if(f(H[P])&&(Y=k.getIncomingTreeEdges(H[P]),0<Y.length))if(!C)f(N)&&0>mxUtils.indexOf(H,this.model.getTerminal(Y[0],!0))&&this.model.setTerminal(Y[0],N,!0);else if(0==k.getIncomingTreeEdges(U[P]).length){V=N;if(null==V||V==k.model.getParent(H[P]))V=k.model.getTerminal(Y[0],
+!0);C=this.cloneCell(Y[0]);this.addEdge(C,k.getDefaultParent(),V,U[P])}}finally{this.model.endUpdate()}return U};if(null!=d.sidebar){var D=d.sidebar.dropAndConnect;d.sidebar.dropAndConnect=function(H,g,t,C){var K=k.model,Q=null;K.beginUpdate();try{if(Q=D.apply(this,arguments),f(H))for(var S=0;S<Q.length;S++)if(K.isEdge(Q[S])&&null==K.getTerminal(Q[S],!0)){K.setTerminal(Q[S],H,!0);var U=k.getCellGeometry(Q[S]);U.points=null;null!=U.getTerminalPoint(!0)&&U.setTerminalPoint(null,!0)}}finally{K.endUpdate()}return Q}}var J=
{67:d.actions.get("selectChildren"),88:d.actions.get("selectDescendants"),80:d.actions.get("selectParent"),83:d.actions.get("selectSiblings")},F={67:d.actions.get("copyStyle"),86:d.actions.get("pasteStyle")},T=d.onKeyDown;d.onKeyDown=function(H){try{var g=k.getSelectionCell();if(k.isEnabled()&&!k.isEditing()&&null!=g){var t=mxEvent.isAltDown(H)&&mxEvent.isShiftDown(H)?J[H.keyCode]:mxEvent.isAltDown(H)?F[H.keyCode]:null;null!=t?(t.funct(H),mxEvent.consume(H)):f(g)&&(t=null,0<k.getIncomingTreeEdges(g).length&&
(9==H.which?t=mxEvent.isShiftDown(H)?L(g):O(g):13==H.which&&(t=M(g,!mxEvent.isShiftDown(H)))),null!=t&&0<t.length?(1==t.length&&k.model.isEdge(t[0])?k.setSelectionCell(k.model.getTerminal(t[0],!1)):k.setSelectionCell(t[t.length-1]),null!=d.hoverIcons&&d.hoverIcons.update(k.view.getState(g)),k.startEditingAtCell(g),mxEvent.consume(H)):37==H.keyCode?(c(g,mxConstants.DIRECTION_WEST),mxEvent.consume(H)):38==H.keyCode?(c(g,mxConstants.DIRECTION_NORTH),mxEvent.consume(H)):39==H.keyCode?(c(g,mxConstants.DIRECTION_EAST),
-mxEvent.consume(H)):40==H.keyCode&&(c(g,mxConstants.DIRECTION_SOUTH),mxEvent.consume(H)))}}catch(B){d.handleError(B)}mxEvent.isConsumed(H)||T.apply(this,arguments)};var W=k.connectVertex;k.connectVertex=function(H,g,t,B,K,Q,S){var U=k.getIncomingTreeEdges(H);if(f(H)){var N=E(H),P=N==mxConstants.DIRECTION_EAST||N==mxConstants.DIRECTION_WEST,V=g==mxConstants.DIRECTION_EAST||g==mxConstants.DIRECTION_WEST;return N==g||0==U.length?O(H,g):P==V?L(H):M(H,g!=mxConstants.DIRECTION_NORTH&&g!=mxConstants.DIRECTION_WEST)}return W.apply(this,
-arguments)};k.getSubtree=function(H){var g=[H];!x(H)&&!f(H)||y(H)||k.traverse(H,!0,function(t,B){var K=null!=B&&k.isTreeEdge(B);K&&0>mxUtils.indexOf(g,B)&&g.push(B);(null==B||K)&&0>mxUtils.indexOf(g,t)&&g.push(t);return null==B||K});return g};var p=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){p.apply(this,arguments);(x(this.state.cell)||f(this.state.cell))&&!y(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&!this.graph.isCellCollapsed(this.state.cell)?
+mxEvent.consume(H)):40==H.keyCode&&(c(g,mxConstants.DIRECTION_SOUTH),mxEvent.consume(H)))}}catch(C){d.handleError(C)}mxEvent.isConsumed(H)||T.apply(this,arguments)};var W=k.connectVertex;k.connectVertex=function(H,g,t,C,K,Q,S){var U=k.getIncomingTreeEdges(H);if(f(H)){var N=E(H),P=N==mxConstants.DIRECTION_EAST||N==mxConstants.DIRECTION_WEST,V=g==mxConstants.DIRECTION_EAST||g==mxConstants.DIRECTION_WEST;return N==g||0==U.length?O(H,g):P==V?L(H):M(H,g!=mxConstants.DIRECTION_NORTH&&g!=mxConstants.DIRECTION_WEST)}return W.apply(this,
+arguments)};k.getSubtree=function(H){var g=[H];!x(H)&&!f(H)||y(H)||k.traverse(H,!0,function(t,C){var K=null!=C&&k.isTreeEdge(C);K&&0>mxUtils.indexOf(g,C)&&g.push(C);(null==C||K)&&0>mxUtils.indexOf(g,t)&&g.push(t);return null==C||K});return g};var p=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){p.apply(this,arguments);(x(this.state.cell)||f(this.state.cell))&&!y(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&!this.graph.isCellCollapsed(this.state.cell)?
null==this.moveHandle&&(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),this.redrawMoveHandle(),mxEvent.addGestureListeners(this.moveHandle,mxUtils.bind(this,function(H){this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(H),mxEvent.getClientY(H),
this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=mxEvent.isMouseEvent(H);this.graph.isMouseDown=!0;d.hoverIcons.reset();mxEvent.consume(H)}))):null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)};var u=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){u.apply(this,arguments);this.redrawMoveHandle()};mxVertexHandler.prototype.redrawMoveHandle=function(){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 G=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(H){G.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.display=H?"":"none")};var I=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(H,g){I.apply(this,
@@ -14545,54 +14552,54 @@ function(L){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=L?
arguments);if(L){var O=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;1E3<=O&&null!=this.sidebarWindow&&this.sidebarEnabled&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&1E3<=O&&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(){};EditorUi.prototype.installFormatToolbar=
function(L){var O=this.editor.graph,R=document.createElement("div");R.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%;";O.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(c,d){0<O.getSelectionCount()?(L.appendChild(R),R.innerHTML="Selected: "+O.getSelectionCount()):null!=R.parentNode&&R.parentNode.removeChild(R)}))};var E=!1;EditorUi.prototype.initFormatWindow=
function(){if(!E&&null!=this.formatWindow){E=!0;var L=this.formatWindow.window.toggleMinimized,O=240;this.formatWindow.window.toggleMinimized=function(){L.apply(this,arguments);this.minimized?(O=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+O-140+"px"):(this.div.style.width=O+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-O+140)+"px");this.fit()};
-mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(R){mxEvent.getSource(R)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var M=EditorUi.prototype.init;EditorUi.prototype.init=function(){function L(B,K,Q){var S=k.menus.get(B);K=v.addMenu(mxResources.get(B),mxUtils.bind(this,function(){S.funct.apply(this,arguments)}));K.className="geButton";K.setAttribute("title",mxResources.get(B));k.menus.menuCreated(S,K,"geButton");null!=Q&&
-(K.style.backgroundImage="url("+Q+")",K.innerText="");return K}function O(B,K,Q,S,U,N){var P=document.createElement("a");P.className="geButton";q.appendChild(P);null!=N?P.style.backgroundImage="url("+N+")":mxUtils.write(P,B);mxEvent.addListener(P,"click",function(V){"disabled"!=P.getAttribute("disabled")&&K(V);mxEvent.consume(V)});mxEvent.preventDefault(P);null!=S&&P.setAttribute("title",S);null!=U&&(B=function(){U.isEnabled()?P.removeAttribute("disabled"):P.setAttribute("disabled","disabled")},U.addListener("stateChanged",
-B),m.addListener("enabledChanged",B),B());return P}function R(B,K,Q){K=document.createElement("div");K.className="geButtonGroup";for(Q=0;Q<B.length;Q++)null!=B[Q]&&K.appendChild(B[Q]);q.appendChild(K);return K}function c(){n=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var B=0;"1"==urlParams.embed&&null!=k.buttonContainer&&(B=k.buttonContainer.offsetWidth||300);q.innerHTML="";var K=n<1E3+B,Q=L("diagram",null,K?Editor.menuImage:null);R([Q,O(mxResources.get("shapes"),
+mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(R){mxEvent.getSource(R)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var M=EditorUi.prototype.init;EditorUi.prototype.init=function(){function L(C,K,Q){var S=k.menus.get(C);K=v.addMenu(mxResources.get(C),mxUtils.bind(this,function(){S.funct.apply(this,arguments)}));K.className="geButton";K.setAttribute("title",mxResources.get(C));k.menus.menuCreated(S,K,"geButton");null!=Q&&
+(K.style.backgroundImage="url("+Q+")",K.innerText="");return K}function O(C,K,Q,S,U,N){var P=document.createElement("a");P.className="geButton";q.appendChild(P);null!=N?P.style.backgroundImage="url("+N+")":mxUtils.write(P,C);mxEvent.addListener(P,"click",function(V){"disabled"!=P.getAttribute("disabled")&&K(V);mxEvent.consume(V)});mxEvent.preventDefault(P);null!=S&&P.setAttribute("title",S);null!=U&&(C=function(){U.isEnabled()?P.removeAttribute("disabled"):P.setAttribute("disabled","disabled")},U.addListener("stateChanged",
+C),m.addListener("enabledChanged",C),C());return P}function R(C,K,Q){K=document.createElement("div");K.className="geButtonGroup";for(Q=0;Q<C.length;Q++)null!=C[Q]&&K.appendChild(C[Q]);q.appendChild(K);return K}function c(){n=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var C=0;"1"==urlParams.embed&&null!=k.buttonContainer&&(C=k.buttonContainer.offsetWidth||300);q.innerHTML="";var K=n<1E3+C,Q=L("diagram",null,K?Editor.menuImage:null);R([Q,O(mxResources.get("shapes"),
k.actions.get("toggleShapes").funct,null,mxResources.get("shapes"),k.actions.get("image"),K?Editor.shapesImage:null),O(mxResources.get("format"),k.actions.get("format").funct,null,mxResources.get("format")+" ("+k.actions.get("format").shortcut+")",k.actions.get("image"),K?Editor.formatImage:null)]);Q=L("insert",!0,K?F:null);R([Q,O(mxResources.get("delete"),k.actions.get("delete").funct,null,mxResources.get("delete"),k.actions.get("delete"),K?Editor.trashImage:null)]);m.isEnabled()||Q.setAttribute("disabled",
-"disabled");H.setAttribute("title",mxResources.get("undo")+" ("+G.shortcut+")");g.setAttribute("title",mxResources.get("redo")+" ("+I.shortcut+")");t.setAttribute("title",mxResources.get("fit")+" ("+Editor.ctrlKey+"+H)");n>=411+B&&(R([H,g]),n>=520+B&&R([t,n>=640+B?O("",p.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +)",p,Editor.zoomInImage):null,n>=640+B?O("",u.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",u,Editor.zoomOutImage):null]));q.appendChild(k.statusContainer);
+"disabled");H.setAttribute("title",mxResources.get("undo")+" ("+G.shortcut+")");g.setAttribute("title",mxResources.get("redo")+" ("+I.shortcut+")");t.setAttribute("title",mxResources.get("fit")+" ("+Editor.ctrlKey+"+H)");n>=411+C&&(R([H,g]),n>=520+C&&R([t,n>=640+C?O("",p.funct,!0,mxResources.get("zoomIn")+" ("+Editor.ctrlKey+" +)",p,Editor.zoomInImage):null,n>=640+C?O("",u.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",u,Editor.zoomOutImage):null]));q.appendChild(k.statusContainer);
q.appendChild(k.buttonContainer)}M.apply(this,arguments);var d=mxUtils.isAncestorNode(document.body,this.container)?this.container:this.editor.graph.container;null!=d&&(d.classList.add("geSimple"),d.classList.add("geMinimal"),d.classList.remove("geClassic"));this.sidebar=this.createSidebar(this.sidebarContainer);"0"!=urlParams.sidebar&&(1E3<=n||null!=urlParams.clibs||null!=urlParams.libs||null!=urlParams["search-shapes"])&&(l(this,!0),null!=this.sidebar&&null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes&&
-(this.sidebar.searchShapes(urlParams["search-shapes"]),this.sidebar.showEntries("search")));this.formatEnabled&&EditorUi.windowed&&1E3<=n&&(b(this,!0),this.formatWindow.window.setVisible(!0));var k=this,m=k.editor.graph;k.toolbar=this.createToolbar(k.createDiv("geToolbar"));var q=document.createElement("div");q.className="geMenubarContainer";var v=new Menubar(k,q),A=k.hideCurrentMenu;k.hideCurrentMenu=function(){A.apply(this,arguments);this.editor.graph.popupMenuHandler.hideMenu()};var C=k.descriptorChanged;
-k.descriptorChanged=function(){C.apply(this,arguments);var B=k.getCurrentFile();if(null!=B&&null!=B.getTitle()){var K=B.getMode();"google"==K?K="googleDrive":"github"==K?K="gitHub":"gitlab"==K?K="gitLab":"onedrive"==K&&(K="oneDrive");K=mxResources.get(K);q.setAttribute("title",B.getTitle()+(null!=K?" ("+K+")":""))}else q.removeAttribute("title")};k.setStatusText(k.editor.getStatus());q.appendChild(k.statusContainer);k.buttonContainer=this.createButtonContainer();q.appendChild(k.buttonContainer);k.menubarContainer=
-k.buttonContainer;k.tabContainer=this.createTabContainer();var D=this.createZoomInput(!0),J=k.updateTabContainer;k.updateTabContainer=function(){J.apply(this,arguments);k.tabContainer.appendChild(D)};var F=Editor.addBoxImage;if(null!=k.hoverIcons){var T=k.hoverIcons.update;k.hoverIcons.update=function(){m.freehand.isDrawing()||T.apply(this,arguments)}}if(null!=m.freehand){var W=m.freehand.createStyle;m.freehand.createStyle=function(B){return W.apply(this,arguments)+"sketch=0;"}}k.editor.addListener("statusChanged",
-mxUtils.bind(this,function(){k.setStatusText(k.editor.getStatus())}));k.setStatusText(k.editor.getStatus());var p=k.actions.get("zoomIn"),u=k.actions.get("zoomOut");d=k.actions.get("resetView");var G=k.actions.get("undo"),I=k.actions.get("redo"),H=O("",G.funct,null,"",G,Editor.undoImage),g=O("",I.funct,null,"",I,Editor.redoImage),t=O("",function(B){mxEvent.isAltDown(B)?(k.hideCurrentMenu(),k.actions.get("customZoom").funct()):(k.hideCurrentMenu(),k.actions.get("smartFit").funct());mxEvent.consume(B)},
+(this.sidebar.searchShapes(urlParams["search-shapes"]),this.sidebar.showEntries("search")));this.formatEnabled&&EditorUi.windowed&&1E3<=n&&(b(this,!0),this.formatWindow.window.setVisible(!0));var k=this,m=k.editor.graph;k.toolbar=this.createToolbar(k.createDiv("geToolbar"));var q=document.createElement("div");q.className="geMenubarContainer";var v=new Menubar(k,q),A=k.hideCurrentMenu;k.hideCurrentMenu=function(){A.apply(this,arguments);this.editor.graph.popupMenuHandler.hideMenu()};var B=k.descriptorChanged;
+k.descriptorChanged=function(){B.apply(this,arguments);var C=k.getCurrentFile();if(null!=C&&null!=C.getTitle()){var K=C.getMode();"google"==K?K="googleDrive":"github"==K?K="gitHub":"gitlab"==K?K="gitLab":"onedrive"==K&&(K="oneDrive");K=mxResources.get(K);q.setAttribute("title",C.getTitle()+(null!=K?" ("+K+")":""))}else q.removeAttribute("title")};k.setStatusText(k.editor.getStatus());q.appendChild(k.statusContainer);k.buttonContainer=this.createButtonContainer();q.appendChild(k.buttonContainer);k.menubarContainer=
+k.buttonContainer;k.tabContainer=this.createTabContainer();var D=this.createZoomInput(!0),J=k.updateTabContainer;k.updateTabContainer=function(){J.apply(this,arguments);k.tabContainer.appendChild(D)};var F=Editor.addBoxImage;if(null!=k.hoverIcons){var T=k.hoverIcons.update;k.hoverIcons.update=function(){m.freehand.isDrawing()||T.apply(this,arguments)}}if(null!=m.freehand){var W=m.freehand.createStyle;m.freehand.createStyle=function(C){return W.apply(this,arguments)+"sketch=0;"}}k.editor.addListener("statusChanged",
+mxUtils.bind(this,function(){k.setStatusText(k.editor.getStatus())}));k.setStatusText(k.editor.getStatus());var p=k.actions.get("zoomIn"),u=k.actions.get("zoomOut");d=k.actions.get("resetView");var G=k.actions.get("undo"),I=k.actions.get("redo"),H=O("",G.funct,null,"",G,Editor.undoImage),g=O("",I.funct,null,"",I,Editor.redoImage),t=O("",function(C){mxEvent.isAltDown(C)?(k.hideCurrentMenu(),k.actions.get("customZoom").funct()):(k.hideCurrentMenu(),k.actions.get("smartFit").funct());mxEvent.consume(C)},
!0,"",d,Editor.zoomFitImage);k.actions.get("toggleShapes").funct=mxUtils.bind(this,function(){l(k,null)});k.container.appendChild(k.tabContainer);k.container.appendChild(q);k.updateTabContainer();this.formatEnabled&&!EditorUi.windowed&&1E3<=n&&b(this,!0);c();k.addListener("lockedChanged",c);k.addListener("languageChanged",c);k.editor.graph.addListener("enabledChanged",c);mxEvent.addListener(window,"resize",function(){c();null!=k.sidebarWindow&&k.sidebarWindow.window.fit();null!=k.formatWindow&&k.formatWindow.window.fit();
null!=k.actions.outlineWindow&&k.actions.outlineWindow.window.fit();null!=k.actions.layersWindow&&k.actions.layersWindow.window.fit();null!=k.menus.chatWindow&&k.menus.chatWindow.window.fit();null!=k.menus.tagsWindow&&k.menus.tagsWindow.window.fit();null!=k.menus.findWindow&&k.menus.findWindow.window.fit();null!=k.menus.findReplaceWindow&&k.menus.findReplaceWindow.window.fit()})}}};
(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var l=EditorUi.initTheme;EditorUi.initTheme=function(){l.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();(function(){var b=mxGuide.prototype.move;mxGuide.prototype.move=function(f,x,z,y){var E=x.y,M=x.x,L=!1,O=!1;if(null!=this.states&&null!=f&&null!=x){var R=this,c=new mxCellState,d=this.graph.getView().scale,k=Math.max(2,this.getGuideTolerance()/2);c.x=f.x+M;c.y=f.y+E;c.width=f.width;c.height=f.height;for(var m=[],q=[],v=0;v<this.states.length;v++){var A=this.states[v];A instanceof mxCellState&&(y||!this.graph.isCellSelected(A.cell))&&((c.x>=A.x&&c.x<=A.x+A.width||A.x>=c.x&&A.x<=c.x+c.width)&&(c.y>
-A.y+A.height+4||c.y+c.height+4<A.y)?m.push(A):(c.y>=A.y&&c.y<=A.y+A.height||A.y>=c.y&&A.y<=c.y+c.height)&&(c.x>A.x+A.width+4||c.x+c.width+4<A.x)&&q.push(A))}var C=0,D=0,J=A=0,F=0,T=0,W=0,p=0,u=5*d;if(1<m.length){m.push(c);m.sort(function(g,t){return g.y-t.y});var G=!1;v=c==m[0];d=c==m[m.length-1];if(!v&&!d)for(v=1;v<m.length-1;v++)if(c==m[v]){d=m[v-1];v=m[v+1];A=D=J=(v.y-d.y-d.height-c.height)/2;break}for(v=0;v<m.length-1;v++){d=m[v];var I=m[v+1],H=c==d||c==I;I=I.y-d.y-d.height;G|=c==d;if(0==D&&0==
-C)D=I,C=1;else if(Math.abs(D-I)<=(H||1==v&&G?k:0))C+=1;else if(1<C&&G){m=m.slice(0,v+1);break}else if(3<=m.length-v&&!G)C=0,A=D=0!=J?J:0,m.splice(0,0==v?1:v),v=-1;else break;0!=A||H||(D=A=I)}3==m.length&&m[1]==c&&(A=0)}if(1<q.length){q.push(c);q.sort(function(g,t){return g.x-t.x});G=!1;v=c==q[0];d=c==q[q.length-1];if(!v&&!d)for(v=1;v<q.length-1;v++)if(c==q[v]){d=q[v-1];v=q[v+1];W=T=p=(v.x-d.x-d.width-c.width)/2;break}for(v=0;v<q.length-1;v++){d=q[v];I=q[v+1];H=c==d||c==I;I=I.x-d.x-d.width;G|=c==d;
-if(0==T&&0==F)T=I,F=1;else if(Math.abs(T-I)<=(H||1==v&&G?k:0))F+=1;else if(1<F&&G){q=q.slice(0,v+1);break}else if(3<=q.length-v&&!G)F=0,W=T=0!=p?p:0,q.splice(0,0==v?1:v),v=-1;else break;0!=W||H||(T=W=I)}3==q.length&&q[1]==c&&(W=0)}k=function(g,t,B,K){var Q=[];if(K){K=u;var S=0}else K=0,S=u;Q.push(new mxPoint(g.x-K,g.y-S));Q.push(new mxPoint(g.x+K,g.y+S));Q.push(g);Q.push(t);Q.push(new mxPoint(t.x-K,t.y-S));Q.push(new mxPoint(t.x+K,t.y+S));if(null!=B)return B.points=Q,B;g=new mxPolyline(Q,mxConstants.GUIDE_COLOR,
+A.y+A.height+4||c.y+c.height+4<A.y)?m.push(A):(c.y>=A.y&&c.y<=A.y+A.height||A.y>=c.y&&A.y<=c.y+c.height)&&(c.x>A.x+A.width+4||c.x+c.width+4<A.x)&&q.push(A))}var B=0,D=0,J=A=0,F=0,T=0,W=0,p=0,u=5*d;if(1<m.length){m.push(c);m.sort(function(g,t){return g.y-t.y});var G=!1;v=c==m[0];d=c==m[m.length-1];if(!v&&!d)for(v=1;v<m.length-1;v++)if(c==m[v]){d=m[v-1];v=m[v+1];A=D=J=(v.y-d.y-d.height-c.height)/2;break}for(v=0;v<m.length-1;v++){d=m[v];var I=m[v+1],H=c==d||c==I;I=I.y-d.y-d.height;G|=c==d;if(0==D&&0==
+B)D=I,B=1;else if(Math.abs(D-I)<=(H||1==v&&G?k:0))B+=1;else if(1<B&&G){m=m.slice(0,v+1);break}else if(3<=m.length-v&&!G)B=0,A=D=0!=J?J:0,m.splice(0,0==v?1:v),v=-1;else break;0!=A||H||(D=A=I)}3==m.length&&m[1]==c&&(A=0)}if(1<q.length){q.push(c);q.sort(function(g,t){return g.x-t.x});G=!1;v=c==q[0];d=c==q[q.length-1];if(!v&&!d)for(v=1;v<q.length-1;v++)if(c==q[v]){d=q[v-1];v=q[v+1];W=T=p=(v.x-d.x-d.width-c.width)/2;break}for(v=0;v<q.length-1;v++){d=q[v];I=q[v+1];H=c==d||c==I;I=I.x-d.x-d.width;G|=c==d;
+if(0==T&&0==F)T=I,F=1;else if(Math.abs(T-I)<=(H||1==v&&G?k:0))F+=1;else if(1<F&&G){q=q.slice(0,v+1);break}else if(3<=q.length-v&&!G)F=0,W=T=0!=p?p:0,q.splice(0,0==v?1:v),v=-1;else break;0!=W||H||(T=W=I)}3==q.length&&q[1]==c&&(W=0)}k=function(g,t,C,K){var Q=[];if(K){K=u;var S=0}else K=0,S=u;Q.push(new mxPoint(g.x-K,g.y-S));Q.push(new mxPoint(g.x+K,g.y+S));Q.push(g);Q.push(t);Q.push(new mxPoint(t.x-K,t.y-S));Q.push(new mxPoint(t.x+K,t.y+S));if(null!=C)return C.points=Q,C;g=new mxPolyline(Q,mxConstants.GUIDE_COLOR,
mxConstants.GUIDE_STROKEWIDTH);g.dialect=mxConstants.DIALECT_SVG;g.pointerEvents=!1;g.init(R.graph.getView().getOverlayPane());return g};T=function(g,t){if(g&&null!=R.guidesArrHor)for(g=0;g<R.guidesArrHor.length;g++)R.guidesArrHor[g].node.style.visibility="hidden";if(t&&null!=R.guidesArrVer)for(g=0;g<R.guidesArrVer.length;g++)R.guidesArrVer[g].node.style.visibility="hidden"};if(1<F&&F==q.length-1){F=[];p=R.guidesArrHor;L=[];M=0;v=q[0]==c?1:0;G=q[v].y+q[v].height;if(0<W)for(v=0;v<q.length-1;v++)d=
q[v],I=q[v+1],c==d?(M=I.x-d.width-W,L.push(new mxPoint(M+d.width+u,G)),L.push(new mxPoint(I.x-u,G))):c==I?(L.push(new mxPoint(d.x+d.width+u,G)),M=d.x+d.width+W,L.push(new mxPoint(M-u,G))):(L.push(new mxPoint(d.x+d.width+u,G)),L.push(new mxPoint(I.x-u,G)));else d=q[0],v=q[2],M=d.x+d.width+(v.x-d.x-d.width-c.width)/2,L.push(new mxPoint(d.x+d.width+u,G)),L.push(new mxPoint(M-u,G)),L.push(new mxPoint(M+c.width+u,G)),L.push(new mxPoint(v.x-u,G));for(v=0;v<L.length;v+=2)q=L[v],W=L[v+1],q=k(q,W,null!=p?
-p[v/2]:null),q.node.style.visibility="visible",q.redraw(),F.push(q);for(v=L.length/2;null!=p&&v<p.length;v++)p[v].destroy();R.guidesArrHor=F;M-=f.x;L=!0}else T(!0);if(1<C&&C==m.length-1){F=[];p=R.guidesArrVer;O=[];E=0;v=m[0]==c?1:0;C=m[v].x+m[v].width;if(0<A)for(v=0;v<m.length-1;v++)d=m[v],I=m[v+1],c==d?(E=I.y-d.height-A,O.push(new mxPoint(C,E+d.height+u)),O.push(new mxPoint(C,I.y-u))):c==I?(O.push(new mxPoint(C,d.y+d.height+u)),E=d.y+d.height+A,O.push(new mxPoint(C,E-u))):(O.push(new mxPoint(C,d.y+
-d.height+u)),O.push(new mxPoint(C,I.y-u)));else d=m[0],v=m[2],E=d.y+d.height+(v.y-d.y-d.height-c.height)/2,O.push(new mxPoint(C,d.y+d.height+u)),O.push(new mxPoint(C,E-u)),O.push(new mxPoint(C,E+c.height+u)),O.push(new mxPoint(C,v.y-u));for(v=0;v<O.length;v+=2)q=O[v],W=O[v+1],q=k(q,W,null!=p?p[v/2]:null,!0),q.node.style.visibility="visible",q.redraw(),F.push(q);for(v=O.length/2;null!=p&&v<p.length;v++)p[v].destroy();R.guidesArrVer=F;E-=f.y;O=!0}else T(!1,!0)}if(L||O)return c=new mxPoint(M,E),m=b.call(this,
+p[v/2]:null),q.node.style.visibility="visible",q.redraw(),F.push(q);for(v=L.length/2;null!=p&&v<p.length;v++)p[v].destroy();R.guidesArrHor=F;M-=f.x;L=!0}else T(!0);if(1<B&&B==m.length-1){F=[];p=R.guidesArrVer;O=[];E=0;v=m[0]==c?1:0;B=m[v].x+m[v].width;if(0<A)for(v=0;v<m.length-1;v++)d=m[v],I=m[v+1],c==d?(E=I.y-d.height-A,O.push(new mxPoint(B,E+d.height+u)),O.push(new mxPoint(B,I.y-u))):c==I?(O.push(new mxPoint(B,d.y+d.height+u)),E=d.y+d.height+A,O.push(new mxPoint(B,E-u))):(O.push(new mxPoint(B,d.y+
+d.height+u)),O.push(new mxPoint(B,I.y-u)));else d=m[0],v=m[2],E=d.y+d.height+(v.y-d.y-d.height-c.height)/2,O.push(new mxPoint(B,d.y+d.height+u)),O.push(new mxPoint(B,E-u)),O.push(new mxPoint(B,E+c.height+u)),O.push(new mxPoint(B,v.y-u));for(v=0;v<O.length;v+=2)q=O[v],W=O[v+1],q=k(q,W,null!=p?p[v/2]:null,!0),q.node.style.visibility="visible",q.redraw(),F.push(q);for(v=O.length/2;null!=p&&v<p.length;v++)p[v].destroy();R.guidesArrVer=F;E-=f.y;O=!0}else T(!1,!0)}if(L||O)return c=new mxPoint(M,E),m=b.call(this,
f,c,z,y),L&&!O?c.y=m.y:O&&!L&&(c.x=m.x),m.y!=c.y&&null!=this.guideY&&null!=this.guideY.node&&(this.guideY.node.style.visibility="hidden"),m.x!=c.x&&null!=this.guideX&&null!=this.guideX.node&&(this.guideX.node.style.visibility="hidden"),c;T(!0,!0);return b.apply(this,arguments)};var l=mxGuide.prototype.setVisible;mxGuide.prototype.setVisible=function(f){l.call(this,f);var x=this.guidesArrVer,z=this.guidesArrHor;if(null!=x)for(var y=0;y<x.length;y++)x[y].node.style.visibility=f?"visible":"hidden";if(null!=
-z)for(y=0;y<z.length;y++)z[y].node.style.visibility=f?"visible":"hidden"};var n=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){n.call(this);var f=this.guidesArrVer,x=this.guidesArrHor;if(null!=f){for(var z=0;z<f.length;z++)f[z].destroy();this.guidesArrVer=null}if(null!=x){for(z=0;z<x.length;z++)x[z].destroy();this.guidesArrHor=null}}})();function mxRuler(b,l,n,f){function x(){var C=b.getDiagramContainerOffset(),D=b.diagramContainer;R.style.top=D.offsetTop-C.y+"px";R.style.left=D.offsetLeft-C.x+"px";R.style.width=(n?0:D.offsetWidth)+M+"px";R.style.height=(n?D.offsetHeight:0)+M+"px"}function z(C,D,J){if(null!=y)return C;var F;return function(){var T=this,W=arguments,p=J&&!F;clearTimeout(F);F=setTimeout(function(){F=null;J||C.apply(T,W)},D);p&&C.apply(T,W)}}var y=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||
+z)for(y=0;y<z.length;y++)z[y].node.style.visibility=f?"visible":"hidden"};var n=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){n.call(this);var f=this.guidesArrVer,x=this.guidesArrHor;if(null!=f){for(var z=0;z<f.length;z++)f[z].destroy();this.guidesArrVer=null}if(null!=x){for(z=0;z<x.length;z++)x[z].destroy();this.guidesArrHor=null}}})();function mxRuler(b,l,n,f){function x(){var B=b.getDiagramContainerOffset(),D=b.diagramContainer;R.style.top=D.offsetTop-B.y+"px";R.style.left=D.offsetLeft-B.x+"px";R.style.width=(n?0:D.offsetWidth)+M+"px";R.style.height=(n?D.offsetHeight:0)+M+"px"}function z(B,D,J){if(null!=y)return B;var F;return function(){var T=this,W=arguments,p=J&&!F;clearTimeout(F);F=setTimeout(function(){F=null;J||B.apply(T,W)},D);p&&B.apply(T,W)}}var y=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||
window.msRequestAnimationFrame,E=window.cancelAnimationFrame||window.mozCancelAnimationFrame,M=this.RULER_THICKNESS,L=this;this.unit=l;var O=Editor.isDarkMode()?{bkgClr:"#202020",outBkgClr:"#1B1D1E",cornerClr:"#1B1D1E",strokeClr:"#505759",fontClr:"#BBBBBB",guideClr:"#0088cf"}:{bkgClr:"#ffffff",outBkgClr:"#f1f3f4",cornerClr:"#f1f3f4",strokeClr:"#dadce0",fontClr:"#BBBBBB",guideClr:"#0000BB"},R=document.createElement("div");R.className="geRuler";R.style.position="fixed";this.updateStyle=mxUtils.bind(this,
-function(){O=Editor.isDarkMode()?{outBkgClr:"#1B1D1E",cornerClr:"#1B1D1E",strokeClr:"#505759",fontClr:"#BBBBBB",guideClr:"#0088cf"}:{outBkgClr:"#f1f3f4",cornerClr:"#f1f3f4",strokeClr:"#dadce0",fontClr:"#BBBBBB",guideClr:"#0000BB"};R.style[n?"borderRight":"borderBottom"]="0.5px solid "+O.strokeClr;R.style.borderLeft="0.5px solid "+O.strokeClr});this.updateStyle();b.diagramContainer.appendChild(R);mxEvent.disableContextMenu(R);this.editorUiRefresh=b.refresh;b.refresh=function(C){L.editorUiRefresh.apply(b,
-arguments);x()};x();var c=document.createElement("canvas");c.width=R.offsetWidth;c.height=R.offsetHeight;R.style.overflow="hidden";c.style.position="relative";R.appendChild(c);var d=c.getContext("2d");this.ui=b;var k=b.editor.graph;this.graph=k;this.container=R;this.canvas=c;var m=function(C,D,J,F,T){C=Math.round(C);D=Math.round(D);J=Math.round(J);F=Math.round(F);d.beginPath();d.moveTo(C+.5,D+.5);d.lineTo(J+.5,F+.5);d.stroke();T&&(n?(d.save(),d.translate(C,D),d.rotate(-Math.PI/2),d.fillText(T,0,0),
-d.restore()):d.fillText(T,C,D))},q=function(){d.clearRect(0,0,c.width,c.height);d.beginPath();d.lineWidth=.7;d.strokeStyle=O.strokeClr;d.setLineDash([]);d.font="9px Arial";d.textAlign="center";var C=k.view.scale,D=k.view.getBackgroundPageBounds(),J=k.view.translate,F=k.pageVisible;J=F?M+(n?D.y-k.container.scrollTop:D.x-k.container.scrollLeft):M+(n?J.y*C-k.container.scrollTop:J.x*C-k.container.scrollLeft);var T=0;F&&(T=k.getPageLayout(),T=n?T.y*k.pageFormat.height:T.x*k.pageFormat.width);var W;switch(L.unit){case mxConstants.POINTS:var p=
-W=10;var u=[3,5,5,5,5,10,5,5,5,5];break;case mxConstants.MILLIMETERS:W=10;p=mxConstants.PIXELS_PER_MM;u=[5,3,3,3,3,6,3,3,3,3];break;case mxConstants.METERS:W=20;p=mxConstants.PIXELS_PER_MM;u=[5,3,3,3,3,6,3,3,3,3,10,3,3,3,3,6,3,3,3,3];break;case mxConstants.INCHES:W=.5>=C||4<=C?8:16,p=mxConstants.PIXELS_PER_INCH/W,u=[5,3,5,3,7,3,5,3,7,3,5,3,7,3,5,3]}var G=p;2<=C?G=p/(2*Math.floor(C/2)):.5>=C&&(G=p*Math.floor(1/C/2)*(L.unit==mxConstants.MILLIMETERS?2:1));p=null;D=F?Math.min(J+(n?D.height:D.width),n?
-c.height:c.width):n?c.height:c.width;if(F)if(d.fillStyle=O.outBkgClr,n){var I=J-M;0<I&&d.fillRect(0,M,M,I);D<c.height&&d.fillRect(0,D,M,c.height)}else I=J-M,0<I&&d.fillRect(M,0,I,M),D<c.width&&d.fillRect(D,0,c.width,M);d.fillStyle=O.fontClr;for(F=F?J:J%(G*C);F<=D;F+=G*C)if(I=Math.round((F-J)/C/G),!(F<M||I==p)){p=I;var H=null;0==I%W&&(H=L.formatText(T+I*G)+"");n?m(M-u[Math.abs(I)%W],F,M,F,H):m(F,M-u[Math.abs(I)%W],F,M,H)}d.lineWidth=1;m(n?0:M,n?M:0,M,M);d.fillStyle=O.cornerClr;d.fillRect(0,0,M,M)},
-v=-1,A=function(){null!=y?(null!=E&&E(v),v=y(q)):q()};this.drawRuler=A;this.sizeListener=l=z(function(){var C=k.container;n?(C=C.offsetHeight+M,c.height!=C&&(c.height=C,R.style.height=C+"px",A())):(C=C.offsetWidth+M,c.width!=C&&(c.width=C,R.style.width=C+"px",A()))},10);this.pageListener=function(){A()};this.scrollListener=f=z(function(){var C=n?k.container.scrollTop:k.container.scrollLeft;L.lastScroll!=C&&(L.lastScroll=C,A())},10);this.unitListener=function(C,D){L.setUnit(D.getProperty("unit"))};
-k.addListener(mxEvent.SIZE,l);k.container.addEventListener("scroll",f);k.view.addListener("unitChanged",this.unitListener);b.addListener("pageViewChanged",this.pageListener);b.addListener("pageScaleChanged",this.pageListener);b.addListener("pageFormatChanged",this.pageListener);this.setStyle=function(C){O=C;R.style.background=O.bkgClr;q()};this.origGuideMove=mxGuide.prototype.move;mxGuide.prototype.move=function(C,D,J,F){if(n&&4<C.height||!n&&4<C.width){if(null!=L.guidePart)try{d.putImageData(L.guidePart.imgData1,
-L.guidePart.x1,L.guidePart.y1),d.putImageData(L.guidePart.imgData2,L.guidePart.x2,L.guidePart.y2),d.putImageData(L.guidePart.imgData3,L.guidePart.x3,L.guidePart.y3)}catch(K){}var T=L.origGuideMove.apply(this,arguments);try{d.lineWidth=.5;d.strokeStyle=O.guideClr;d.setLineDash([2]);if(n){var W=C.y+T.y+M-this.graph.container.scrollTop;var p=0;var u=W+C.height/2;var G=M/2;var I=W+C.height;var H=0;var g=d.getImageData(p,W-1,M,3);m(p,W,M,W);W--;var t=d.getImageData(G,u-1,M,3);m(G,u,M,u);u--;var B=d.getImageData(H,
-I-1,M,3);m(H,I,M,I);I--}else W=0,p=C.x+T.x+M-this.graph.container.scrollLeft,u=M/2,G=p+C.width/2,I=0,H=p+C.width,g=d.getImageData(p-1,W,3,M),m(p,W,p,M),p--,t=d.getImageData(G-1,u,3,M),m(G,u,G,M),G--,B=d.getImageData(H-1,I,3,M),m(H,I,H,M),H--;if(null==L.guidePart||L.guidePart.x1!=p||L.guidePart.y1!=W)L.guidePart={imgData1:g,x1:p,y1:W,imgData2:t,x2:G,y2:u,imgData3:B,x3:H,y3:I}}catch(K){}}else T=L.origGuideMove.apply(this,arguments);return T};this.origGuideDestroy=mxGuide.prototype.destroy;mxGuide.prototype.destroy=
-function(){var C=L.origGuideDestroy.apply(this,arguments);if(null!=L.guidePart)try{d.putImageData(L.guidePart.imgData1,L.guidePart.x1,L.guidePart.y1),d.putImageData(L.guidePart.imgData2,L.guidePart.x2,L.guidePart.y2),d.putImageData(L.guidePart.imgData3,L.guidePart.x3,L.guidePart.y3),L.guidePart=null}catch(D){}return C}}mxRuler.prototype.RULER_THICKNESS=14;mxRuler.prototype.unit=mxConstants.POINTS;mxRuler.prototype.setUnit=function(b){this.unit=b;this.drawRuler()};
+function(){O=Editor.isDarkMode()?{outBkgClr:"#1B1D1E",cornerClr:"#1B1D1E",strokeClr:"#505759",fontClr:"#BBBBBB",guideClr:"#0088cf"}:{outBkgClr:"#f1f3f4",cornerClr:"#f1f3f4",strokeClr:"#dadce0",fontClr:"#BBBBBB",guideClr:"#0000BB"};R.style[n?"borderRight":"borderBottom"]="0.5px solid "+O.strokeClr;R.style.borderLeft="0.5px solid "+O.strokeClr});this.updateStyle();b.diagramContainer.appendChild(R);mxEvent.disableContextMenu(R);this.editorUiRefresh=b.refresh;b.refresh=function(B){L.editorUiRefresh.apply(b,
+arguments);x()};x();var c=document.createElement("canvas");c.width=R.offsetWidth;c.height=R.offsetHeight;R.style.overflow="hidden";c.style.position="relative";R.appendChild(c);var d=c.getContext("2d");this.ui=b;var k=b.editor.graph;this.graph=k;this.container=R;this.canvas=c;var m=function(B,D,J,F,T){B=Math.round(B);D=Math.round(D);J=Math.round(J);F=Math.round(F);d.beginPath();d.moveTo(B+.5,D+.5);d.lineTo(J+.5,F+.5);d.stroke();T&&(n?(d.save(),d.translate(B,D),d.rotate(-Math.PI/2),d.fillText(T,0,0),
+d.restore()):d.fillText(T,B,D))},q=function(){d.clearRect(0,0,c.width,c.height);d.beginPath();d.lineWidth=.7;d.strokeStyle=O.strokeClr;d.setLineDash([]);d.font="9px Arial";d.textAlign="center";var B=k.view.scale,D=k.view.getBackgroundPageBounds(),J=k.view.translate,F=k.pageVisible;J=F?M+(n?D.y-k.container.scrollTop:D.x-k.container.scrollLeft):M+(n?J.y*B-k.container.scrollTop:J.x*B-k.container.scrollLeft);var T=0;F&&(T=k.getPageLayout(),T=n?T.y*k.pageFormat.height:T.x*k.pageFormat.width);var W;switch(L.unit){case mxConstants.POINTS:var p=
+W=10;var u=[3,5,5,5,5,10,5,5,5,5];break;case mxConstants.MILLIMETERS:W=10;p=mxConstants.PIXELS_PER_MM;u=[5,3,3,3,3,6,3,3,3,3];break;case mxConstants.METERS:W=20;p=mxConstants.PIXELS_PER_MM;u=[5,3,3,3,3,6,3,3,3,3,10,3,3,3,3,6,3,3,3,3];break;case mxConstants.INCHES:W=.5>=B||4<=B?8:16,p=mxConstants.PIXELS_PER_INCH/W,u=[5,3,5,3,7,3,5,3,7,3,5,3,7,3,5,3]}var G=p;2<=B?G=p/(2*Math.floor(B/2)):.5>=B&&(G=p*Math.floor(1/B/2)*(L.unit==mxConstants.MILLIMETERS?2:1));p=null;D=F?Math.min(J+(n?D.height:D.width),n?
+c.height:c.width):n?c.height:c.width;if(F)if(d.fillStyle=O.outBkgClr,n){var I=J-M;0<I&&d.fillRect(0,M,M,I);D<c.height&&d.fillRect(0,D,M,c.height)}else I=J-M,0<I&&d.fillRect(M,0,I,M),D<c.width&&d.fillRect(D,0,c.width,M);d.fillStyle=O.fontClr;for(F=F?J:J%(G*B);F<=D;F+=G*B)if(I=Math.round((F-J)/B/G),!(F<M||I==p)){p=I;var H=null;0==I%W&&(H=L.formatText(T+I*G)+"");n?m(M-u[Math.abs(I)%W],F,M,F,H):m(F,M-u[Math.abs(I)%W],F,M,H)}d.lineWidth=1;m(n?0:M,n?M:0,M,M);d.fillStyle=O.cornerClr;d.fillRect(0,0,M,M)},
+v=-1,A=function(){null!=y?(null!=E&&E(v),v=y(q)):q()};this.drawRuler=A;this.sizeListener=l=z(function(){var B=k.container;n?(B=B.offsetHeight+M,c.height!=B&&(c.height=B,R.style.height=B+"px",A())):(B=B.offsetWidth+M,c.width!=B&&(c.width=B,R.style.width=B+"px",A()))},10);this.pageListener=function(){A()};this.scrollListener=f=z(function(){var B=n?k.container.scrollTop:k.container.scrollLeft;L.lastScroll!=B&&(L.lastScroll=B,A())},10);this.unitListener=function(B,D){L.setUnit(D.getProperty("unit"))};
+k.addListener(mxEvent.SIZE,l);k.container.addEventListener("scroll",f);k.view.addListener("unitChanged",this.unitListener);b.addListener("pageViewChanged",this.pageListener);b.addListener("pageScaleChanged",this.pageListener);b.addListener("pageFormatChanged",this.pageListener);this.setStyle=function(B){O=B;R.style.background=O.bkgClr;q()};this.origGuideMove=mxGuide.prototype.move;mxGuide.prototype.move=function(B,D,J,F){if(n&&4<B.height||!n&&4<B.width){if(null!=L.guidePart)try{d.putImageData(L.guidePart.imgData1,
+L.guidePart.x1,L.guidePart.y1),d.putImageData(L.guidePart.imgData2,L.guidePart.x2,L.guidePart.y2),d.putImageData(L.guidePart.imgData3,L.guidePart.x3,L.guidePart.y3)}catch(K){}var T=L.origGuideMove.apply(this,arguments);try{d.lineWidth=.5;d.strokeStyle=O.guideClr;d.setLineDash([2]);if(n){var W=B.y+T.y+M-this.graph.container.scrollTop;var p=0;var u=W+B.height/2;var G=M/2;var I=W+B.height;var H=0;var g=d.getImageData(p,W-1,M,3);m(p,W,M,W);W--;var t=d.getImageData(G,u-1,M,3);m(G,u,M,u);u--;var C=d.getImageData(H,
+I-1,M,3);m(H,I,M,I);I--}else W=0,p=B.x+T.x+M-this.graph.container.scrollLeft,u=M/2,G=p+B.width/2,I=0,H=p+B.width,g=d.getImageData(p-1,W,3,M),m(p,W,p,M),p--,t=d.getImageData(G-1,u,3,M),m(G,u,G,M),G--,C=d.getImageData(H-1,I,3,M),m(H,I,H,M),H--;if(null==L.guidePart||L.guidePart.x1!=p||L.guidePart.y1!=W)L.guidePart={imgData1:g,x1:p,y1:W,imgData2:t,x2:G,y2:u,imgData3:C,x3:H,y3:I}}catch(K){}}else T=L.origGuideMove.apply(this,arguments);return T};this.origGuideDestroy=mxGuide.prototype.destroy;mxGuide.prototype.destroy=
+function(){var B=L.origGuideDestroy.apply(this,arguments);if(null!=L.guidePart)try{d.putImageData(L.guidePart.imgData1,L.guidePart.x1,L.guidePart.y1),d.putImageData(L.guidePart.imgData2,L.guidePart.x2,L.guidePart.y2),d.putImageData(L.guidePart.imgData3,L.guidePart.x3,L.guidePart.y3),L.guidePart=null}catch(D){}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(this.unitListener);this.ui.removeListener(this.pageListener);null!=this.container&&this.container.parentNode.removeChild(this.container)};
function mxDualRuler(b,l){var n=new mxPoint(mxRuler.prototype.RULER_THICKNESS,mxRuler.prototype.RULER_THICKNESS);this.editorUiGetDiagContOffset=b.getDiagramContainerOffset;b.getDiagramContainerOffset=function(){return n};this.editorUiRefresh=b.refresh;this.ui=b;this.origGuideMove=mxGuide.prototype.move;this.origGuideDestroy=mxGuide.prototype.destroy;this.vRuler=new mxRuler(b,l,!0);this.hRuler=new mxRuler(b,l,!1,!0);l=mxUtils.bind(this,function(f){var x=!1;mxEvent.addGestureListeners(f,mxUtils.bind(this,
function(z){x=null!=b.currentMenu;mxEvent.consume(z)}),null,mxUtils.bind(this,function(z){if(b.editor.graph.isEnabled()&&!b.editor.graph.isMouseDown&&(mxEvent.isTouchEvent(z)||mxEvent.isPopupTrigger(z))){b.editor.graph.popupMenuHandler.hideMenu();b.hideCurrentMenu();if(!mxEvent.isTouchEvent(z)||!x){var y=new mxPopupMenu(mxUtils.bind(this,function(L,O){b.menus.addMenuItems(L,["points","inches","millimeters","meters"],O)}));y.smartSeparators=!0;y.showDisabled=!0;y.autoExpand=!0;y.hideMenu=mxUtils.bind(this,
function(){mxPopupMenu.prototype.hideMenu.apply(y,arguments);b.resetCurrentMenu();y.destroy()});var E=mxEvent.getClientX(z),M=mxEvent.getClientY(z);y.popup(E,M,null,z);b.setCurrentMenu(y,f)}mxEvent.consume(z)}}))});l(this.hRuler.container);l(this.vRuler.container);this.vRuler.drawRuler();this.hRuler.drawRuler()}mxDualRuler.prototype.updateStyle=function(){this.vRuler.updateStyle();this.hRuler.updateStyle();this.vRuler.drawRuler();this.hRuler.drawRuler()};
-mxDualRuler.prototype.setUnit=function(b){this.vRuler.setUnit(b);this.hRuler.setUnit(b)};mxDualRuler.prototype.setStyle=function(b){this.vRuler.setStyle(b);this.hRuler.setStyle(b)};mxDualRuler.prototype.destroy=function(){this.vRuler.destroy();this.hRuler.destroy();this.ui.refresh=this.editorUiRefresh;mxGuide.prototype.move=this.origGuideMove;mxGuide.prototype.destroy=this.origGuideDestroy;this.ui.getDiagramContainerOffset=this.editorUiGetDiagContOffset};function mxFreehand(b){var l=null!=b.view&&null!=b.view.canvas?b.view.canvas.ownerSVGElement:null;if(null!=b.container&&null!=l){b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){this.stopDrawing()}));var n=mxFreehand.prototype.MILD_SMOOTHING,f=null,x=[],z,y=[],E,M=!1,L=!0,O=!0,R=!0,c=!0,d=[],k=!1,m=!1,q=!1,v="default",A={size:5,thinning:.5,smoothing:.5,streamline:.5,start:{taper:0,cap:!0},end:{taper:0,cap:!0}},C=!0;this.setClosedPath=function(u){M=u};this.setAutoClose=function(u){L=u};this.setAutoInsert=
-function(u){O=u};this.setAutoScroll=function(u){R=u};this.setOpenFill=function(u){c=u};this.setStopClickEnabled=function(u){m=u};this.setSelectInserted=function(u){q=u};this.setSmoothing=function(u){n=u};this.getSmoothing=function(){return n};this.setPerfectFreehandMode=function(u){C=u};this.isPerfectFreehandMode=function(){return C};this.setBrushSize=function(u){A.size=u};this.getBrushSize=function(){return A.size};var D=function(u){k=u;b.getRubberband().setEnabled(!u);b.graphHandler.setSelectEnabled(!u);
+mxDualRuler.prototype.setUnit=function(b){this.vRuler.setUnit(b);this.hRuler.setUnit(b)};mxDualRuler.prototype.setStyle=function(b){this.vRuler.setStyle(b);this.hRuler.setStyle(b)};mxDualRuler.prototype.destroy=function(){this.vRuler.destroy();this.hRuler.destroy();this.ui.refresh=this.editorUiRefresh;mxGuide.prototype.move=this.origGuideMove;mxGuide.prototype.destroy=this.origGuideDestroy;this.ui.getDiagramContainerOffset=this.editorUiGetDiagContOffset};function mxFreehand(b){var l=null!=b.view&&null!=b.view.canvas?b.view.canvas.ownerSVGElement:null;if(null!=b.container&&null!=l){b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){this.stopDrawing()}));var n=mxFreehand.prototype.MILD_SMOOTHING,f=null,x=[],z,y=[],E,M=!1,L=!0,O=!0,R=!0,c=!0,d=[],k=!1,m=!1,q=!1,v="default",A={size:5,thinning:.5,smoothing:.5,streamline:.5,start:{taper:0,cap:!0},end:{taper:0,cap:!0}},B=!0;this.setClosedPath=function(u){M=u};this.setAutoClose=function(u){L=u};this.setAutoInsert=
+function(u){O=u};this.setAutoScroll=function(u){R=u};this.setOpenFill=function(u){c=u};this.setStopClickEnabled=function(u){m=u};this.setSelectInserted=function(u){q=u};this.setSmoothing=function(u){n=u};this.getSmoothing=function(){return n};this.setPerfectFreehandMode=function(u){B=u};this.isPerfectFreehandMode=function(){return B};this.setBrushSize=function(u){A.size=u};this.getBrushSize=function(){return A.size};var D=function(u){k=u;b.getRubberband().setEnabled(!u);b.graphHandler.setSelectEnabled(!u);
b.graphHandler.setMoveEnabled(!u);b.panningHandler.setPinchEnabled(!u);u?b.container.classList.add("geFreehandMode"):b.container.classList.remove("geFreehandMode");b.fireEvent(new mxEventObject("freehandStateChanged"))};this.startDrawing=function(){D(!0)};this.isDrawing=function(){return k};this.isActive=function(){return null!=f};var J=mxUtils.bind(this,function(u){if(f){var G=E.length,I=m&&0<y.length&&null!=E&&2>E.length;I||y.push.apply(y,E);E=[];y.push(null);x.push(f);f=null;(I||O)&&this.stopDrawing();
-O&&(!I||2<=G)&&this.startDrawing();mxEvent.consume(u)}}),F=new mxCell;F.edge=!0;this.getStrokeColor=function(u){var G=null!=v?v:mxUtils.getValue(b.currentVertexStyle,mxConstants.STYLE_STROKECOLOR,mxUtils.getValue(b.getCurrentCellStyle(F),mxConstants.STYLE_STROKECOLOR,"#000"));"default"!=G||u||(G=b.shapeForegroundColor);return G};this.setStrokeColor=function(u){v=u};this.createStyle=function(u){var G=";fillColor=none;";C&&(G=";lineShape=1;");G+="strokeColor="+this.getStrokeColor(!0)+";";return mxConstants.STYLE_SHAPE+
-"="+u+G};this.stopDrawing=function(){if(0<x.length){if(C){for(var u=[],G=0;G<y.length;G++)null!=y[G]&&u.push([y[G].x,y[G].y]);u=PerfectFreehand.getStroke(u,A);y=[];for(G=0;G<u.length;G++)y.push({x:u[G][0],y:u[G][1]});y.push(null)}u=y[0].x;var I=y[0].x,H=y[0].y,g=y[0].y;for(G=1;G<y.length;G++)null!=y[G]&&(u=Math.max(u,y[G].x),I=Math.min(I,y[G].x),H=Math.max(H,y[G].y),g=Math.min(g,y[G].y));u-=I;H-=g;if(0<u&&0<H){var t=100/u,B=100/H;y.map(function(N){if(null==N)return N;N.x=(N.x-I)*t;N.y=(N.y-g)*B;return N});
+O&&(!I||2<=G)&&this.startDrawing();mxEvent.consume(u)}}),F=new mxCell;F.edge=!0;this.getStrokeColor=function(u){var G=null!=v?v:mxUtils.getValue(b.currentVertexStyle,mxConstants.STYLE_STROKECOLOR,mxUtils.getValue(b.getCurrentCellStyle(F),mxConstants.STYLE_STROKECOLOR,"#000"));"default"!=G||u||(G=b.shapeForegroundColor);return G};this.setStrokeColor=function(u){v=u};this.createStyle=function(u){var G=";fillColor=none;";B&&(G=";lineShape=1;");G+="strokeColor="+this.getStrokeColor(!0)+";";return mxConstants.STYLE_SHAPE+
+"="+u+G};this.stopDrawing=function(){if(0<x.length){if(B){for(var u=[],G=0;G<y.length;G++)null!=y[G]&&u.push([y[G].x,y[G].y]);u=PerfectFreehand.getStroke(u,A);y=[];for(G=0;G<u.length;G++)y.push({x:u[G][0],y:u[G][1]});y.push(null)}u=y[0].x;var I=y[0].x,H=y[0].y,g=y[0].y;for(G=1;G<y.length;G++)null!=y[G]&&(u=Math.max(u,y[G].x),I=Math.min(I,y[G].x),H=Math.max(H,y[G].y),g=Math.min(g,y[G].y));u-=I;H-=g;if(0<u&&0<H){var t=100/u,C=100/H;y.map(function(N){if(null==N)return N;N.x=(N.x-I)*t;N.y=(N.y-g)*C;return N});
var K='<shape strokewidth="inherit"><foreground>',Q=0;for(G=0;G<y.length;G++){var S=y[G];if(null==S){S=!1;Q=y[Q];var U=y[G-1];!M&&L&&(S=Q.x-U.x,U=Q.y-U.y,S=Math.sqrt(S*S+U*U)<=b.tolerance);if(M||S)K+='<line x="'+Q.x.toFixed(2)+'" y="'+Q.y.toFixed(2)+'"/>';K+="</path>"+(c||M||S?"<fillstroke/>":"<stroke/>");Q=G+1}else K=G==Q?K+('<path><move x="'+S.x.toFixed(2)+'" y="'+S.y.toFixed(2)+'"/>'):K+('<line x="'+S.x.toFixed(2)+'" y="'+S.y.toFixed(2)+'"/>')}K+="</foreground></shape>";if(b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())){G=
this.createStyle("stencil("+Graph.compress(K)+")");K=b.view.scale;Q=b.view.translate;G=new mxCell("",new mxGeometry(I/K-Q.x,g/K-Q.y,u/K,H/K),G);G.vertex=1;b.model.beginUpdate();try{G=b.addCell(G),b.fireEvent(new mxEventObject("cellsInserted","cells",[G])),b.fireEvent(new mxEventObject("freehandInserted","cell",G))}finally{b.model.endUpdate()}q&&b.setSelectionCells([G])}}for(G=0;G<x.length;G++)x[G].parentNode.removeChild(x[G]);f=null;x=[];y=[]}D(!1)};b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,
function(u,G){k&&G.getProperty("event").consume()}));b.addListener(mxEvent.GESTURE,mxUtils.bind(this,function(u,G){k&&mxEvent.consume(G.getProperty("event"))}));b.addMouseListener({mouseDown:mxUtils.bind(this,function(u,G){if(b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())&&(u=G.getEvent(),k&&!mxEvent.isPopupTrigger(u)&&!mxEvent.isMiddleMouseButton(u)&&!mxEvent.isMultiTouchEvent(u))){var I=parseFloat(b.currentVertexStyle[mxConstants.STYLE_STROKEWIDTH]||1);I=Math.max(1,I*b.view.scale);var H=this.getStrokeColor();
-f=document.createElementNS("http://www.w3.org/2000/svg","path");f.setAttribute("fill",C?H:"none");f.setAttribute("pointer-events","none");f.setAttribute("stroke",H);f.setAttribute("stroke-width",I);"1"==b.currentVertexStyle[mxConstants.STYLE_DASHED]&&(H=b.currentVertexStyle[mxConstants.STYLE_DASH_PATTERN]||"3 3",H=H.split(" ").map(function(g){return parseFloat(g)*I}).join(" "),f.setAttribute("stroke-dasharray",H));d=[];u=T(u);W(u);z="M"+u.x+" "+u.y;y.push(u);E=[];f.setAttribute("d",C?PerfectFreehand.getSvgPathFromStroke([[u.x,
-u.y]],A):z);l.appendChild(f);G.consume()}}),mouseMove:mxUtils.bind(this,function(u,G){if(null!=f&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())){u=G.getEvent();u=T(u);W(u);var I=p(0);if(I)if(y.push(I),C){var H=[];for(I=0;I<y.length;I++)H.push([y[I].x,y[I].y]);E=[];for(var g=2;g<d.length;g+=2)I=p(g),H.push([I.x,I.y]),E.push(I);f.setAttribute("d",PerfectFreehand.getSvgPathFromStroke(H,A))}else{z+=" L"+I.x+" "+I.y;H="";E=[];for(g=2;g<d.length;g+=2)I=p(g),H+=" L"+I.x+" "+I.y,E.push(I);f.setAttribute("d",
+f=document.createElementNS("http://www.w3.org/2000/svg","path");f.setAttribute("fill",B?H:"none");f.setAttribute("pointer-events","none");f.setAttribute("stroke",H);f.setAttribute("stroke-width",I);"1"==b.currentVertexStyle[mxConstants.STYLE_DASHED]&&(H=b.currentVertexStyle[mxConstants.STYLE_DASH_PATTERN]||"3 3",H=H.split(" ").map(function(g){return parseFloat(g)*I}).join(" "),f.setAttribute("stroke-dasharray",H));d=[];u=T(u);W(u);z="M"+u.x+" "+u.y;y.push(u);E=[];f.setAttribute("d",B?PerfectFreehand.getSvgPathFromStroke([[u.x,
+u.y]],A):z);l.appendChild(f);G.consume()}}),mouseMove:mxUtils.bind(this,function(u,G){if(null!=f&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())){u=G.getEvent();u=T(u);W(u);var I=p(0);if(I)if(y.push(I),B){var H=[];for(I=0;I<y.length;I++)H.push([y[I].x,y[I].y]);E=[];for(var g=2;g<d.length;g+=2)I=p(g),H.push([I.x,I.y]),E.push(I);f.setAttribute("d",PerfectFreehand.getSvgPathFromStroke(H,A))}else{z+=" L"+I.x+" "+I.y;H="";E=[];for(g=2;g<d.length;g+=2)I=p(g),H+=" L"+I.x+" "+I.y,E.push(I);f.setAttribute("d",
z+H)}R&&(I=b.view.translate,b.scrollRectToVisible((new mxRectangle(u.x-I.x,u.y-I.y)).grow(20)));G.consume()}}),mouseUp:mxUtils.bind(this,function(u,G){null!=f&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())&&(J(G.getEvent()),G.consume())})});var T=function(u){return mxUtils.convertPoint(b.container,mxEvent.getClientX(u),mxEvent.getClientY(u))},W=function(u){for(d.push(u);d.length>n;)d.shift()},p=function(u){var G=d.length;if(1===G%2||G>=n){var I=0,H=0,g,t=0;for(g=u;g<G;g++)t++,u=d[g],I+=u.x,
H+=u.y;return{x:I/t,y:H/t}}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;DrawioUser=function(b,l,n,f,x){this.id=b;this.email=l;this.displayName=n;this.pictureUrl=f;this.locale=x};DrawioComment=function(b,l,n,f,x,z,y){this.file=b;this.id=l;this.content=n;this.modifiedDate=f;this.createdDate=x;this.isResolved=z;this.user=y;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,l,n,f,x){l()};DrawioComment.prototype.editComment=function(b,l,n){l()};DrawioComment.prototype.deleteComment=function(b,l){b()};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"];function GifEncoder(b,l){this.width=b;this.height=l;this.delay=100;this.repeat=0;this.transparent=!1;this.dispose=2;this.out=[];this.frameCount=0;this.started=!1}GifEncoder.prototype.setDelay=function(b){this.delay=Math.max(10,Math.round(b))};GifEncoder.prototype.setRepeat=function(b){this.repeat=b};GifEncoder.prototype.setTransparent=function(b){this.transparent=b};
@@ -14612,7 +14619,7 @@ return new Uint8Array(R)};function AnimatedGifExport(b){this.editorUi=b}
AnimatedGifExport.prototype.doExport=function(b,l,n){var f=this.editorUi.editor.graph,x=this.editorUi.editor;b=b||{};var z=b.fps||15,y=b.scale||1,E=b.border||0,M=b.transparent||!1,L=null!=b.repeat?b.repeat:0,O=M?null:null!=b.background&&b.background!=mxConstants.NONE?b.background:"#ffffff",R=b.theme||null;try{var c=f.getSvg(O,y,E,!0,null,!0,null,null,null,f.shadowVisible,null,R),d=AnimatedGifExport.findAnimatedPaths(c);if(0==d.length)null!=n&&n(Error(mxResources.get("noAnimationsInDiagram")));else{var k=
b.duration||AnimatedGifExport.detectDuration(d)||1E3,m=Math.max(2,Math.round(z*k/1E3));AnimatedGifExport.removeAnimationCss(c,d);x.convertImages(c,mxUtils.bind(this,function(q){try{this.renderFrames(q,d,m,z,y,M,L,O,R,l,n)}catch(v){null!=n&&n(v)}}),null,x.createImageUrlConverter())}}catch(q){null!=n&&n(q)}};
AnimatedGifExport.prototype.renderFrames=function(b,l,n,f,x,z,y,E,M,L,O){var R=parseInt(b.getAttribute("width")),c=parseInt(b.getAttribute("height"));if(isNaN(R)||isNaN(c)||0>=R||0>=c)null!=O&&O(Error("Invalid SVG dimensions"));else{var d=this.editorUi.editor.getMaxCanvasScale(R,c,1);1>d&&(R=Math.ceil(R*d),c=Math.ceil(c*d));var k=new GifEncoder(R,c);k.setDelay(Math.round(1E3/f));k.setRepeat(y);k.setTransparent(z);var m=0,q=mxUtils.bind(this,function(){if(m>=n)try{var v=k.finish();L(v)}catch(F){null!=
-O&&O(F)}else{v=1<n?m/n:0;for(var A=0;A<l.length;A++){var C=l[A];if("alternate"===C.direction||"alternate-reverse"===C.direction){var D=.5>v?2*v:2*(1-v);D="alternate"===C.direction?C.dashSum*(1-D):C.dashSum*D}else D="reverse"===C.direction?C.dashSum*v:C.dashSum*(1-v);C.node.style.strokeDashoffset=D}v=Editor.createSvgDataUri(mxUtils.getXml(b));var J=new Image;J.onload=function(){try{var F=document.createElement("canvas");F.width=R;F.height=c;var T=F.getContext("2d");null!=E&&(T.fillStyle=E,T.fillRect(0,
+O&&O(F)}else{v=1<n?m/n:0;for(var A=0;A<l.length;A++){var B=l[A];if("alternate"===B.direction||"alternate-reverse"===B.direction){var D=.5>v?2*v:2*(1-v);D="alternate"===B.direction?B.dashSum*(1-D):B.dashSum*D}else D="reverse"===B.direction?B.dashSum*v:B.dashSum*(1-v);B.node.style.strokeDashoffset=D}v=Editor.createSvgDataUri(mxUtils.getXml(b));var J=new Image;J.onload=function(){try{var F=document.createElement("canvas");F.width=R;F.height=c;var T=F.getContext("2d");null!=E&&(T.fillStyle=E,T.fillRect(0,
0,R,c));1>d&&T.scale(d,d);T.drawImage(J,0,0);k.addFrame(F);m++;setTimeout(q,0)}catch(W){null!=O&&O(W)}};J.onerror=function(){null!=O&&O(Error("Failed to render SVG frame"))};J.src=v}});q()}};
AnimatedGifExport.findAnimatedPaths=function(b){var l=[];b=b.getElementsByTagName("path");for(var n=0;n<b.length;n++){var f=b[n],x=f.style.animation||f.getAttribute("style");if(null!=x&&0<=x.indexOf("ge-flow-animation")){var z=parseFloat(f.style.strokeDashoffset);isNaN(z)&&(z=parseFloat(f.getAttribute("stroke-dashoffset")));if(!isNaN(z)&&0<z){var y="normal";"string"===typeof x&&(0<=x.indexOf("alternate-reverse")?y="alternate-reverse":0<=x.indexOf("alternate")?y="alternate":0<=x.indexOf("reverse")&&
(y="reverse"));var E=500;x="string"===typeof x?x.match(/(\d+)ms/):null;null!=x&&(E=parseInt(x[1]));l.push({node:f,dashSum:z,duration:E,direction:y})}}}return l};AnimatedGifExport.detectDuration=function(b){for(var l=0,n=0;n<b.length;n++)b[n].duration>l&&(l=b[n].duration);return l};
diff --git a/src/main/webapp/js/viewer-static.min.js b/src/main/webapp/js/viewer-static.min.js
index c7dfdf96b..ecd30f9ad 100644
--- a/src/main/webapp/js/viewer-static.min.js
+++ b/src/main/webapp/js/viewer-static.min.js
@@ -31,7 +31,7 @@ b),-1!==c&&c===b&&(window.DRAWIO_LOG_URL="https://log.draw.io"))}})();"1"==urlPa
"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);"function"!==typeof window.structuredClone&&(window.structuredClone=function(a){return a});window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use","foreignObject"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,HTML_INTEGRATION_POINTS:{foreignobject:!0},ADD_ATTR:["target","content","pointer-events","requiredFeatures"]};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:"29.6.7",IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),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.")&&
+window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"29.6.10",IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),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:-1<navigator.userAgent.toLowerCase().indexOf("firefox"),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]"!==document.createElementNS("http://www.w3.org/2000/svg","foreignObject").toString()||0<=navigator.userAgent.indexOf("Opera/"),IS_WIN:0<navigator.appVersion.indexOf("Win"),IS_MAC:0<navigator.appVersion.indexOf("Mac"),IS_CHROMEOS:/\bCrOS\b/.test(navigator.appVersion),
@@ -1289,8 +1289,8 @@ mxGraph.prototype.moveCells=function(a,b,c,d,e,f,g){b=null!=b?b:0;c=null!=c?c:0;
!0);if(d)for(m=0;m<a.length;m++)q=this.getCellGeometry(a[m]),r=this.model.getParent(k[m]),null!=q&&q.relative&&this.model.isEdge(r)&&this.model.contains(r)&&this.model.add(r,a[m])}this.fireEvent(new mxEventObject(mxEvent.MOVE_CELLS,"cells",a,"dx",b,"dy",c,"clone",d,"target",e,"event",f))}finally{this.model.endUpdate()}}return a};
mxGraph.prototype.cellsMoved=function(a,b,c,d,e,f){if(null!=a&&(0!=b||0!=c)){f=null!=f?f:!1;this.model.beginUpdate();try{d&&this.disconnectGraph(a);for(var g=0;g<a.length;g++)this.translateCell(a[g],b,c),f&&this.isExtendParent(a[g])?this.extendParent(a[g]):e&&this.constrainChild(a[g]),this.isContractParentsOnMove()&&this.isContractParent(a[g])&&this.contractParent(a[g]);this.resetEdgesOnMove&&this.resetEdges(a);this.fireEvent(new mxEventObject(mxEvent.CELLS_MOVED,"cells",a,"dx",b,"dy",c,"disconnect",
d))}finally{this.model.endUpdate()}}};
-mxGraph.prototype.translateCell=function(a,b,c){var d=this.model.getGeometry(a);if(null!=d){b=parseFloat(b);c=parseFloat(c);d=d.clone();d.translate(b,c,this.model.isEdge(a));d.relative||!this.model.isVertex(a)||this.isAllowNegativeCoordinates()||(d.x=Math.max(0,parseFloat(d.x)),d.y=Math.max(0,parseFloat(d.y)));if(d.relative&&!this.model.isEdge(a)){var e=this.model.getParent(a),f=0;this.model.isVertex(e)&&(e=this.getCurrentCellStyle(e),f=mxUtils.getValue(e,mxConstants.STYLE_ROTATION,0));0!=f&&(f=mxUtils.toRadians(-f),
-e=Math.cos(f),f=Math.sin(f),c=mxUtils.getRotatedPoint(new mxPoint(b,c),e,f,new mxPoint(0,0)),b=c.x,c=c.y);null==d.offset?d.offset=new mxPoint(Math.round(b),Math.round(c)):(d.offset.x=Math.round(parseFloat(d.offset.x+b)),d.offset.y=Math.round(parseFloat(d.offset.y+c)))}this.model.setGeometry(a,d)}};
+mxGraph.prototype.translateCell=function(a,b,c){var d=this.model.getGeometry(a);if(null!=d&&"function"===typeof d.translate){b=parseFloat(b);c=parseFloat(c);d=d.clone();d.translate(b,c,this.model.isEdge(a));d.relative||!this.model.isVertex(a)||this.isAllowNegativeCoordinates()||(d.x=Math.max(0,parseFloat(d.x)),d.y=Math.max(0,parseFloat(d.y)));if(d.relative&&!this.model.isEdge(a)){var e=this.model.getParent(a),f=0;this.model.isVertex(e)&&(e=this.getCurrentCellStyle(e),f=mxUtils.getValue(e,mxConstants.STYLE_ROTATION,
+0));0!=f&&(f=mxUtils.toRadians(-f),e=Math.cos(f),f=Math.sin(f),c=mxUtils.getRotatedPoint(new mxPoint(b,c),e,f,new mxPoint(0,0)),b=c.x,c=c.y);null==d.offset?d.offset=new mxPoint(Math.round(b),Math.round(c)):(d.offset.x=Math.round(parseFloat(d.offset.x+b)),d.offset.y=Math.round(parseFloat(d.offset.y+c)))}this.model.setGeometry(a,d)}};
mxGraph.prototype.getCellContainmentArea=function(a){if(null!=a&&!this.model.isEdge(a)){var b=this.model.getParent(a);if(null!=b&&b!=this.getDefaultParent()){var c=this.model.getGeometry(b);if(null!=c){var d=a=0,e=c.width;c=c.height;if(this.isSwimlane(b)){var f=this.getStartSize(b),g=this.getCurrentCellStyle(b);b=mxUtils.getValue(g,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST);var k=1==mxUtils.getValue(g,mxConstants.STYLE_FLIPH,0);g=1==mxUtils.getValue(g,mxConstants.STYLE_FLIPV,0);if(b==
mxConstants.DIRECTION_SOUTH||b==mxConstants.DIRECTION_NORTH){var l=f.width;f.width=f.height;f.height=l}if(b==mxConstants.DIRECTION_EAST&&!g||b==mxConstants.DIRECTION_NORTH&&!k||b==mxConstants.DIRECTION_WEST&&g||b==mxConstants.DIRECTION_SOUTH&&k)a=f.width,d=f.height;e-=f.width;c-=f.height}return new mxRectangle(a,d,e,c)}}}return null};mxGraph.prototype.getMaximumGraphBounds=function(){return this.maximumGraphBounds};
mxGraph.prototype.constrainChild=function(a,b){if(null!=a&&(b=this.getCellGeometry(a),null!=b&&(this.isConstrainRelativeChildren()||!b.relative))){var c=this.model.getParent(a);this.getCellGeometry(c);var d=this.getMaximumGraphBounds();null!=d&&(c=this.getBoundingBoxFromGeometry([c],!1),null!=c&&(d=mxRectangle.fromRectangle(d),d.x-=c.x,d.y-=c.y));if(this.isConstrainChild(a)&&(c=this.getCellContainmentArea(a),null!=c)){var e=this.getOverlap(a);0<e&&(c=mxRectangle.fromRectangle(c),c.x-=c.width*e,c.y-=
@@ -1923,7 +1923,7 @@ var mxStylesheetCodec=mxCodecRegistry.register(function(){var a=new mxObjectCode
function(b,c){b=typeof c;"function"==b?c=mxStyleRegistry.getName(c):"object"==b&&(c=null);return c};a.decode=function(b,c,d){d=d||new this.template.constructor;var e=c.getAttribute("id");null!=e&&(b.objects[e]=d);for(c=c.firstChild;null!=c;){if(!this.processInclude(b,c,d)&&"add"==c.nodeName&&(e=c.getAttribute("as"),null!=e)){var f=c.getAttribute("extend"),g=null!=f?mxUtils.clone(d.styles[f]):null;null==g&&(null!=f&&mxLog.warn("mxStylesheetCodec.decode: stylesheet "+f+" not found to extend"),g={});
for(f=c.firstChild;null!=f;){if(f.nodeType==mxConstants.NODETYPE_ELEMENT){var k=f.getAttribute("as");if("add"==f.nodeName){var l=mxUtils.getTextContent(f);null!=l&&0<l.length&&mxStylesheetCodec.allowEval?l=mxUtils.eval(l):(l=f.getAttribute("value"),mxUtils.isNumeric(l)&&(l=parseFloat(l)));null!=l&&(g[k]=l)}else"remove"==f.nodeName&&delete g[k]}f=f.nextSibling}d.putCellStyle(e,g)}c=c.nextSibling}return d};return a}());mxStylesheetCodec.allowEval=!1;
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(b){return b.raw=b};$jscomp.createTemplateTagFirstArgWithRaw=function(b,d){b.raw=d;return b};$jscomp.arrayIteratorImpl=function(b){var d=0;return function(){return d<b.length?{done:!1,value:b[d++]}:{done:!0}}};$jscomp.arrayIterator=function(b){return{next:$jscomp.arrayIteratorImpl(b)}};$jscomp.makeIterator=function(b){var d="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];return d?d.call(b):$jscomp.arrayIterator(b)};
-Editor=function(b,d,m,n,v){mxEventSource.call(this);this.chromeless=null!=b?b:this.chromeless;this.initStencilRegistry();this.graph=n||this.createGraph(d,m);this.editable=null!=v?v:!b;this.undoManager=this.createUndoManager();this.status="";this.getOrCreateFilename=function(){return this.filename||mxResources.get("drawing",[Editor.pageCounter])+".xml"};this.getFilename=function(){return this.filename};this.setStatus=function(p,z){this.status=p;this.statusFunction=z;this.fireEvent(new mxEventObject("statusChanged"))};
+Editor=function(b,d,m,n,u){mxEventSource.call(this);this.chromeless=null!=b?b:this.chromeless;this.initStencilRegistry();this.graph=n||this.createGraph(d,m);this.editable=null!=u?u:!b;this.undoManager=this.createUndoManager();this.status="";this.getOrCreateFilename=function(){return this.filename||mxResources.get("drawing",[Editor.pageCounter])+".xml"};this.getFilename=function(){return this.filename};this.setStatus=function(p,z){this.status=p;this.statusFunction=z;this.fireEvent(new mxEventObject("statusChanged"))};
this.getStatus=function(){return this.status};this.graphChangeListener=function(p,z){p=null!=z?z.getProperty("edit"):null;null!=p&&p.ignoreEdit||this.setModified(!0)};this.graph.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.graphChangeListener.apply(this,arguments)}));this.graph.resetViewOnRootChange=!1;this.init()};mxConstants.POINTS=1;mxConstants.MILLIMETERS=2;mxConstants.INCHES=3;mxConstants.METERS=4;mxConstants.PIXELS_PER_MM=3.937;mxConstants.PIXELS_PER_INCH=100;
Editor.pageCounter=0;(function(){try{for(var b=window;null!=b.opener&&"undefined"!==typeof b.opener.Editor&&!isNaN(b.opener.Editor.pageCounter)&&b.opener!=b;)b=b.opener;null!=b&&(b.Editor.pageCounter++,Editor.pageCounter=b.Editor.pageCounter)}catch(d){}})();Editor.defaultHtmlFont='-apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", system-ui, ui-sans-serif, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"';Editor.useLocalStorage="undefined"!=typeof Storage&&mxClient.IS_IOS;
Editor.smallScreenWidth=1024;Editor.helpImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDc4LTI0MHEyMSAwIDM1LjUtMTQuNVQ1MjgtMjkwcTAtMjEtMTQuNS0zNS41VDQ3OC0zNDBxLTIxIDAtMzUuNSAxNC41VDQyOC0yOTBxMCAyMSAxNC41IDM1LjVUNDc4LTI0MFptLTM2LTE1NGg3NHEwLTMzIDcuNS01MnQ0Mi41LTUycTI2LTI2IDQxLTQ5LjV0MTUtNTYuNXEwLTU2LTQxLTg2dC05Ny0zMHEtNTcgMC05Mi41IDMwVDM0Mi02MThsNjYgMjZxNS0xOCAyMi41LTM5dDUzLjUtMjFxMzIgMCA0OCAxNy41dDE2IDM4LjVxMCAyMC0xMiAzNy41VDUwNi01MjZxLTQ0IDM5LTU0IDU5dC0xMCA3M1ptMzggMzE0cS04MyAwLTE1Ni0zMS41VDE5Ny0xOTdxLTU0LTU0LTg1LjUtMTI3VDgwLTQ4MHEwLTgzIDMxLjUtMTU2VDE5Ny03NjNxNTQtNTQgMTI3LTg1LjVUNDgwLTg4MHE4MyAwIDE1NiAzMS41VDc2My03NjNxNTQgNTQgODUuNSAxMjdUODgwLTQ4MHEwIDgzLTMxLjUgMTU2VDc2My0xOTdxLTU0IDU0LTEyNyA4NS41VDQ4MC04MFptMC04MHExMzQgMCAyMjctOTN0OTMtMjI3cTAtMTM0LTkzLTIyN3QtMjI3LTkzcS0xMzQgMC0yMjcgOTN0LTkzIDIyN3EwIDEzNCA5MyAyMjd0MjI3IDkzWm0wLTMyMFoiLz48L3N2Zz4=";
@@ -2000,24 +2000,24 @@ Editor.fillStyles=[{val:"auto",dispName:"Auto"},{val:"hatch",dispName:"Hatch"},{
Editor.popupsAllowed=null!=window.urlParams?"1"!=urlParams.noDevice:!0;Editor.simpleLabels=!1;Editor.optimizeHtmlLabels=!1;Editor.enableNativeClipboard=window==window.top&&null!=navigator.clipboard&&null!=navigator.clipboard.read;Editor.sketchMode=!1;Editor.darkMode=!1;Editor.currentTheme=uiTheme;Editor.darkColor="#121212";Editor.darkColorVar="--ge-dark-color";Editor.fontSizeUnit="px";Editor.transitionDelay=.1;Editor.pageSizeUnit=mxConstants.INCHES;Editor.removeImageMetadata=!0;
Editor.showConnectHandle=!1;Editor.enableInlineToolbar=!0;Editor.isDarkMode=function(){return Editor.darkMode};Editor.isPngDataUrl=function(b){return null!=b&&"data:image/png;"==b.substring(0,15)};Editor.isJpgDataUrl=function(b){return null!=b&&("data:image/jpg;"==b.substring(0,15)||"data:image/jpeg;"==b.substring(0,16))};
Editor.isPngData=function(b){return 8<b.length&&137==b.charCodeAt(0)&&80==b.charCodeAt(1)&&78==b.charCodeAt(2)&&71==b.charCodeAt(3)&&13==b.charCodeAt(4)&&10==b.charCodeAt(5)&&26==b.charCodeAt(6)&&10==b.charCodeAt(7)};Editor.isJpgData=function(b){return 2<b.length&&255==b.charCodeAt(0)&&216==b.charCodeAt(1)};
-Editor.stripImageMetadata=function(b,d){if(null!=b&&d&&(Editor.isJpgDataUrl(b)||Editor.isPngDataUrl(b))){d=b.indexOf(",")+1;var m=b.substring(d),n=window.atob&&!mxClient.IS_SF?atob(m):Base64.decode(m,!0),v=new ArrayBuffer(n.length),p=new Uint8Array(v);for(m=0;m<n.length;m++)p[m]=n.charCodeAt(m);p=null;Editor.isJpgData(n)?p=Editor.stripJpgMetadata(v):Editor.isPngData(n)&&(p=Editor.stripPngMetadata(v));if(null!=p){n="";for(m=0;m<p.length;m++)n+=String.fromCharCode(p[m]);b=b.substring(0,d)+btoa(n)}}return b};
-Editor.stripJpgMetadata=function(b){var d=new DataView(b),m=[];m.push(new Uint8Array(b,0,2));for(var n=2;n<b.byteLength-1;){var v=d.getUint16(n);if(65498===v){m.push(new Uint8Array(b,n));break}if(65488<=v&&65497>=v)m.push(new Uint8Array(b,n,2)),n+=2;else{var p=d.getUint16(n+2),z=65506===v;65505===v||z||m.push(new Uint8Array(b,n,2+p));n+=2+p}}b=m.reduce(function(G,U){return G+U.length},0);b=new Uint8Array(b);d=0;m=$jscomp.makeIterator(m);for(n=m.next();!n.done;n=m.next())n=n.value,b.set(n,d),d+=n.length;
+Editor.stripImageMetadata=function(b,d){if(null!=b&&d&&(Editor.isJpgDataUrl(b)||Editor.isPngDataUrl(b))){d=b.indexOf(",")+1;var m=b.substring(d),n=window.atob&&!mxClient.IS_SF?atob(m):Base64.decode(m,!0),u=new ArrayBuffer(n.length),p=new Uint8Array(u);for(m=0;m<n.length;m++)p[m]=n.charCodeAt(m);p=null;Editor.isJpgData(n)?p=Editor.stripJpgMetadata(u):Editor.isPngData(n)&&(p=Editor.stripPngMetadata(u));if(null!=p){n="";for(m=0;m<p.length;m++)n+=String.fromCharCode(p[m]);b=b.substring(0,d)+btoa(n)}}return b};
+Editor.stripJpgMetadata=function(b){var d=new DataView(b),m=[];m.push(new Uint8Array(b,0,2));for(var n=2;n<b.byteLength-1;){var u=d.getUint16(n);if(65498===u){m.push(new Uint8Array(b,n));break}if(65488<=u&&65497>=u)m.push(new Uint8Array(b,n,2)),n+=2;else{var p=d.getUint16(n+2),z=65506===u;65505===u||z||m.push(new Uint8Array(b,n,2+p));n+=2+p}}b=m.reduce(function(G,U){return G+U.length},0);b=new Uint8Array(b);d=0;m=$jscomp.makeIterator(m);for(n=m.next();!n.done;n=m.next())n=n.value,b.set(n,d),d+=n.length;
return b};
-Editor.stripPngMetadata=function(b){var d=new DataView(b),m=new Set("eXIf tEXt iTXt zTXt iCCP tIME".split(" ")),n=[];n.push(new Uint8Array(b,0,8));for(var v=8;v<b.byteLength;){var p=d.getUint32(v),z=String.fromCharCode(d.getUint8(v+4),d.getUint8(v+5),d.getUint8(v+6),d.getUint8(v+7));p=8+p+4;m.has(z)||n.push(new Uint8Array(b,v,p));v+=p;if("IEND"===z)break}b=n.reduce(function(G,U){return G+U.length},0);b=new Uint8Array(b);d=0;n=$jscomp.makeIterator(n);for(m=n.next();!m.done;m=n.next())m=m.value,b.set(m,
+Editor.stripPngMetadata=function(b){var d=new DataView(b),m=new Set("eXIf tEXt iTXt zTXt iCCP tIME".split(" ")),n=[];n.push(new Uint8Array(b,0,8));for(var u=8;u<b.byteLength;){var p=d.getUint32(u),z=String.fromCharCode(d.getUint8(u+4),d.getUint8(u+5),d.getUint8(u+6),d.getUint8(u+7));p=8+p+4;m.has(z)||n.push(new Uint8Array(b,u,p));u+=p;if("IEND"===z)break}b=n.reduce(function(G,U){return G+U.length},0);b=new Uint8Array(b);d=0;n=$jscomp.makeIterator(n);for(m=n.next();!m.done;m=n.next())m=m.value,b.set(m,
d),d+=m.length;return b};Editor.convertHtmlToText=function(b){if(null!=b){var d=document.createElement("div");d.innerHTML=Graph.sanitizeHtml(b);return mxUtils.extractTextWithWhitespace(d.childNodes)}return null};
-Editor.extractGraphModelFromText=function(b){function d(p){var z=p.indexOf("```");0<=z&&(p=p.substring(p,0,z+6));return p}function m(p){var z=p.lastIndexOf("```");0<=z&&(p=p.substring(z+3));return p}var n=b.indexOf("<mxGraphModel "),v=b.indexOf("</mxGraphModel>");0>n&&(n=b.indexOf("<mxGraphModel>"));return 0<=n&&v>n?[mxUtils.trim(d(b.substring(0,n))),b.substring(n,v+15),mxUtils.trim(m(b.substring(v+15)))]:[b,"",""]};
-Editor.extractGraphModelFromPng=function(b){var d=null;try{var m=b.substring(b.indexOf(",")+1),n=window.atob&&!mxClient.IS_SF?atob(m):Base64.decode(m,!0);EditorUi.parsePng(n,mxUtils.bind(this,function(v,p,z){v=n.substring(v+8,v+8+z);"zTXt"==p?(z=v.indexOf(String.fromCharCode(0)),"mxGraphModel"==v.substring(0,z)&&(v=pako.inflateRaw(Graph.stringToArrayBuffer(v.substring(z+2)),{to:"string"}).replace(/\+/g," "),null!=v&&0<v.length&&(d=v))):"tEXt"==p&&(v=v.split(String.fromCharCode(0)),1<v.length&&("mxGraphModel"==
-v[0]||"mxfile"==v[0])&&(d=v[1]));if(null!=d||"IDAT"==p)return!0}))}catch(v){}null!=d&&"%"==d.charAt(0)&&(d=decodeURIComponent(d));null!=d&&"%"==d.charAt(0)&&(d=decodeURIComponent(d));return d};Editor.getLabelForStylename=function(b){var d=b.match(/^([A-Za-z]*)(\d*)$/);null!=d&&1<d.length&&(b=mxUtils.trim(d[1].replace(/([a-z])([A-Z])/g,"$1 $2").replace(/\b\w/g,function(m){return m.toUpperCase()}).replace(/Color[s]?/g,"")),b=mxUtils.trim(b+(0<d[2].length?" ("+d[2]+")":"")));return b};
-Editor.soundex=function(b){if(null==b||0==b.length)return"";var d=[],m=1;d[0]=b[0].toUpperCase();for(var n=1,v=b.length;n<v;n++){var p=b[n].toUpperCase().charCodeAt(0)-65;if(0<=p&&25>=p&&"0"!="01230120022455012603010202"[p]&&("01230120022455012603010202"[p]!=d[m-1]&&(d[m]="01230120022455012603010202"[p],m++),3<m))break}if(3>=m)for(;3>=m;)d[m]="0",m++;return d.join("")};
+Editor.extractGraphModelFromText=function(b){function d(p){var z=p.indexOf("```");0<=z&&(p=p.substring(p,0,z+6));return p}function m(p){var z=p.lastIndexOf("```");0<=z&&(p=p.substring(z+3));return p}var n=b.indexOf("<mxGraphModel "),u=b.indexOf("</mxGraphModel>");0>n&&(n=b.indexOf("<mxGraphModel>"));return 0<=n&&u>n?[mxUtils.trim(d(b.substring(0,n))),b.substring(n,u+15),mxUtils.trim(m(b.substring(u+15)))]:[b,"",""]};
+Editor.extractGraphModelFromPng=function(b){var d=null;try{var m=b.substring(b.indexOf(",")+1),n=window.atob&&!mxClient.IS_SF?atob(m):Base64.decode(m,!0);EditorUi.parsePng(n,mxUtils.bind(this,function(u,p,z){u=n.substring(u+8,u+8+z);"zTXt"==p?(z=u.indexOf(String.fromCharCode(0)),"mxGraphModel"==u.substring(0,z)&&(u=pako.inflateRaw(Graph.stringToArrayBuffer(u.substring(z+2)),{to:"string"}).replace(/\+/g," "),null!=u&&0<u.length&&(d=u))):"tEXt"==p&&(u=u.split(String.fromCharCode(0)),1<u.length&&("mxGraphModel"==
+u[0]||"mxfile"==u[0])&&(d=u[1]));if(null!=d||"IDAT"==p)return!0}))}catch(u){}null!=d&&"%"==d.charAt(0)&&(d=decodeURIComponent(d));null!=d&&"%"==d.charAt(0)&&(d=decodeURIComponent(d));return d};Editor.getLabelForStylename=function(b){var d=b.match(/^([A-Za-z]*)(\d*)$/);null!=d&&1<d.length&&(b=mxUtils.trim(d[1].replace(/([a-z])([A-Z])/g,"$1 $2").replace(/\b\w/g,function(m){return m.toUpperCase()}).replace(/Color[s]?/g,"")),b=mxUtils.trim(b+(0<d[2].length?" ("+d[2]+")":"")));return b};
+Editor.soundex=function(b){if(null==b||0==b.length)return"";var d=[],m=1;d[0]=b[0].toUpperCase();for(var n=1,u=b.length;n<u;n++){var p=b[n].toUpperCase().charCodeAt(0)-65;if(0<=p&&25>=p&&"0"!="01230120022455012603010202"[p]&&("01230120022455012603010202"[p]!=d[m-1]&&(d[m]="01230120022455012603010202"[p],m++),3<m))break}if(3>=m)for(;3>=m;)d[m]="0",m++;return d.join("")};
Editor.selectFilename=function(b){var d=b.value.lastIndexOf(".");if(0<d){var m=b.value.substring(d+1);"drawio"!=m&&0<=mxUtils.indexOf(["png","svg","html","xml","pdf"],m)&&(m=b.value.lastIndexOf(".drawio.",d),0<m&&(d=m))}d=0<d?d:b.value.length;Editor.selectSubstring(b,0,d)};
Editor.selectSubstring=function(b,d,m){b.focus();"undefined"!=typeof b.selectionStart?(b.selectionStart=d,b.selectionEnd=m):document.selection&&document.selection.createRange&&(b.select(),b=document.selection.createRange(),b.collapse(!0),b.moveEnd("character",m),b.moveStart("character",d),b.select())};
Editor.toUnit=function(b,d){return d==mxConstants.INCHES?Math.round(100*b/mxConstants.PIXELS_PER_INCH)/100:d==mxConstants.MILLIMETERS?Math.round(100*b/mxConstants.PIXELS_PER_MM)/100:d==mxConstants.METERS?Math.round(1E3*b/(1E3*mxConstants.PIXELS_PER_MM))/1E3:Math.round(b)};
Editor.fromUnit=function(b,d){return d==mxConstants.INCHES?Math.round(b*mxConstants.PIXELS_PER_INCH):d==mxConstants.MILLIMETERS?Math.round(b*mxConstants.PIXELS_PER_MM):d==mxConstants.METERS?Math.round(b*mxConstants.PIXELS_PER_MM*1E3):Math.round(b)};mxUtils.extend(Editor,mxEventSource);Editor.prototype.originalNoForeignObject=mxClient.NO_FO;
Editor.prototype.transparentImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhMAAwAIAAAP///wAAACH5BAEAAAAALAAAAAAwADAAAAIxhI+py+0Po5y02ouz3rz7D4biSJbmiabqyrbuC8fyTNf2jef6zvf+DwwKh8Si8egpAAA7":IMAGE_PATH+"/transparent.gif";Editor.prototype.extendCanvas=!0;Editor.prototype.chromeless=!1;Editor.prototype.cancelFirst=!0;Editor.prototype.enabled=!0;Editor.prototype.filename=null;Editor.prototype.modified=!1;Editor.prototype.autosave=!0;Editor.prototype.appName=document.title;
Editor.prototype.editBlankUrl=window.location.origin+window.location.pathname;Editor.prototype.defaultGraphOverflow="hidden";Editor.prototype.init=function(){};Editor.prototype.isChromelessView=function(){return this.chromeless};Editor.prototype.setAutosave=function(b){this.autosave=b;this.fireEvent(new mxEventObject("autosaveChanged"))};Editor.prototype.getEditBlankUrl=function(b){return this.editBlankUrl+b};
-Editor.prototype.editAsNew=function(b,d,m,n){d=null!=d?"?title="+encodeURIComponent(d):"";m?d+=(0<d.length?"&":"?")+"lightbox=1":null!=urlParams.ui&&(d+=(0<d.length?"&":"?")+"ui="+urlParams.ui);null!=n&&(d+=(0<d.length?"&":"?")+"page-id="+n);if(navigator.standalone||"undefined"===typeof window.postMessage)this.graph.openLink(this.getEditBlankUrl(d)+"#R"+encodeURIComponent(b));else{var v=null,p=mxUtils.bind(this,function(G){"ready"==G.data&&G.source==v&&(mxEvent.removeListener(window,"message",p),
-v.postMessage(b,"*"))});m=d.substring(1).split("&");n={client:1};for(d=0;d<m.length;d++){var z=m[d].split("=");n[z[0]]=z[1]||""}mxEvent.addListener(window,"message",p);v=this.graph.openLink(this.getEditBlankUrl("")+"#P"+encodeURIComponent(JSON.stringify(n)),null,!0)}};
-Editor.prototype.createGraph=function(b,d){b=new Graph(null,d,null,null,b);b.transparentBackground=!1;var m=b.isCssTransformsSupported,n=this;b.isCssTransformsSupported=function(){return m.apply(this,arguments)&&(!n.chromeless||!mxClient.IS_SF)};this.chromeless||(b.isBlankLink=function(v){return!this.isExternalProtocol(v)});return b};
+Editor.prototype.editAsNew=function(b,d,m,n){d=null!=d?"?title="+encodeURIComponent(d):"";m?d+=(0<d.length?"&":"?")+"lightbox=1":null!=urlParams.ui&&(d+=(0<d.length?"&":"?")+"ui="+urlParams.ui);null!=n&&(d+=(0<d.length?"&":"?")+"page-id="+n);if(navigator.standalone||"undefined"===typeof window.postMessage)this.graph.openLink(this.getEditBlankUrl(d)+"#R"+encodeURIComponent(b));else{var u=null,p=mxUtils.bind(this,function(G){"ready"==G.data&&G.source==u&&(mxEvent.removeListener(window,"message",p),
+u.postMessage(b,"*"))});m=d.substring(1).split("&");n={client:1};for(d=0;d<m.length;d++){var z=m[d].split("=");n[z[0]]=z[1]||""}mxEvent.addListener(window,"message",p);u=this.graph.openLink(this.getEditBlankUrl("")+"#P"+encodeURIComponent(JSON.stringify(n)),null,!0)}};
+Editor.prototype.createGraph=function(b,d){b=new Graph(null,d,null,null,b);b.transparentBackground=!1;var m=b.isCssTransformsSupported,n=this;b.isCssTransformsSupported=function(){return m.apply(this,arguments)&&(!n.chromeless||!mxClient.IS_SF)};this.chromeless||(b.isBlankLink=function(u){return!this.isExternalProtocol(u)});return b};
Editor.prototype.resetGraph=function(){this.graph.gridEnabled=this.graph.defaultGridEnabled&&(!this.isChromelessView()||"1"==urlParams.grid);this.graph.graphHandler.guidesEnabled=!0;this.graph.setTooltips(!0);this.graph.setConnectable(this.graph.defaultConnectable);this.graph.connectionArrowsEnabled=this.graph.defaultConnectionArrowsEnabled;this.graph.foldingEnabled=this.graph.defaultFoldingEnabled;this.graph.scrollbars=this.graph.defaultScrollbars;this.graph.pageVisible=this.graph.defaultPageVisible;
this.graph.pageBreaksVisible=this.graph.pageVisible;this.graph.preferPageSize=this.graph.pageBreaksVisible;this.graph.background=null;this.graph.pageScale=mxGraph.prototype.pageScale;this.graph.pageFormat=mxGraph.prototype.pageFormat;this.graph.currentScale=1;this.graph.currentTranslate.x=0;this.graph.currentTranslate.y=0;this.updateGraphComponents();this.graph.view.setScale(1)};
Editor.prototype.readGraphState=function(b){this.savedGraphState={};if(Editor.preserveViewState){var d=b.getAttribute("dx"),m=b.getAttribute("dy");null!=d&&(this.savedGraphState.dx=d);null!=m&&(this.savedGraphState.dy=m)}d=b.getAttribute("grid");if(null==d||""==d)d=this.graph.defaultGridEnabled?"1":"0";null!=urlParams.grid&&(this.savedGraphState.grid=d);this.graph.gridEnabled=(null!=urlParams.grid?"0"!=urlParams.grid:"0"!=d)&&(!this.isChromelessView()||"1"==urlParams.grid);this.graph.gridSize=parseFloat(b.getAttribute("gridSize"))||
@@ -2031,62 +2031,62 @@ Editor.prototype.getGraphXml=function(b){if(null!=b?b:1){var d=new mxCodec(mxUti
this.graph.view.translate.x)/100),b.setAttribute("dy",Math.round(100*this.graph.view.translate.y)/100);b.setAttribute("grid",null!=d.grid?d.grid:this.graph.isGridEnabled()?"1":"0");b.setAttribute("gridSize",this.graph.gridSize);b.setAttribute("guides",this.graph.graphHandler.guidesEnabled?"1":"0");b.setAttribute("tooltips",this.graph.tooltipHandler.isEnabled()?"1":"0");b.setAttribute("connect",null!=d.connect?d.connect:this.graph.connectionHandler.isEnabled()?"1":"0");b.setAttribute("arrows",null!=
d.arrows?d.arrows:this.graph.connectionArrowsEnabled?"1":"0");b.setAttribute("fold",null!=d.fold?d.fold:this.graph.foldingEnabled?"1":"0");b.setAttribute("page",null!=d.page?d.page:this.graph.pageVisible?"1":"0");b.setAttribute("pageScale",this.graph.pageScale);b.setAttribute("pageWidth",this.graph.pageFormat.width);b.setAttribute("pageHeight",this.graph.pageFormat.height);null!=this.graph.background&&b.setAttribute("background",this.graph.background);return b};
Editor.prototype.updateGraphComponents=function(){var b=this.graph;null!=b.container&&(b.view.validateBackground(),b.container.style.overflow=b.scrollbars?"auto":this.defaultGraphOverflow,this.fireEvent(new mxEventObject("updateGraphComponents")))};Editor.prototype.setModified=function(b){this.modified=b};Editor.prototype.setFilename=function(b){this.filename=b};
-Editor.prototype.createUndoManager=function(){var b=this.graph,d=new mxUndoManager;this.undoListener=function(n,v){d.undoableEditHappened(v.getProperty("edit"))};var m=mxUtils.bind(this,function(n,v){this.undoListener.apply(this,arguments)});b.getModel().addListener(mxEvent.UNDO,m);b.getView().addListener(mxEvent.UNDO,m);m=function(n,v){n=v.getProperty("edit").changes;n=b.getSelectionCellsForChanges(n);v=!1;if(0<n.length){for(var p=[],z=0;z<n.length;z++)null!=b.view.getState(n[z])&&(p.push(n[z]),
-v||(b.scrollCellToVisible(n[z]),v=!0));b.setSelectionCells(p)}};d.addListener(mxEvent.UNDO,m);d.addListener(mxEvent.REDO,m);return d};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()};
+Editor.prototype.createUndoManager=function(){var b=this.graph,d=new mxUndoManager;this.undoListener=function(n,u){d.undoableEditHappened(u.getProperty("edit"))};var m=mxUtils.bind(this,function(n,u){this.undoListener.apply(this,arguments)});b.getModel().addListener(mxEvent.UNDO,m);b.getView().addListener(mxEvent.UNDO,m);m=function(n,u){n=u.getProperty("edit").changes;n=b.getSelectionCellsForChanges(n);u=!1;if(0<n.length){for(var p=[],z=0;z<n.length;z++)null!=b.view.getState(n[z])&&(p.push(n[z]),
+u||(b.scrollCellToVisible(n[z]),u=!0));b.setSelectionCells(p)}};d.addListener(mxEvent.UNDO,m);d.addListener(mxEvent.REDO,m);return d};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,d,m,n,v,p,z,G,U,E,R){this.editorUi=b;null==this.bg&&(this.bg=b.createDiv("geBackground"));v&&document.body.appendChild(this.bg);v=b.createDiv(U?"geTransDialog":"geDialog");v.style.width=m+48+"px";null!=n&&(v.style.height=n+48+"px");"1"!=urlParams.embedInline||Editor.inlineFullscreen||null==b.embedViewport||(v.style.left=b.embedViewport.x+b.embedViewport.width/2+"px",v.style.top=b.embedViewport.y+b.embedViewport.height/2+"px");v.appendChild(d);document.body.appendChild(v);null==n&&
-(v.style.height=d.scrollHeight+48+"px");if(p&&(d=document.createElement("div"),d.className="geButton",d.setAttribute("title",mxResources.get("close")),d.style.backgroundImage="url("+Editor.crossImage+")",d.style.position="absolute",d.style.top="0px",d.style.right="0px",mxEvent.addListener(d,"click",mxUtils.bind(this,function(){b.hideDialog(!0)})),v.appendChild(d),!R)){var N=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(c){N=!0}),null,mxUtils.bind(this,function(c){N&&(b.hideDialog(!0),
-N=!1)}))}this.onDialogClose=z;this.container=v;null!=E&&this.addResizeHandler(E);b.editor.fireEvent(new mxEventObject("showDialog"))}Dialog.prototype.noColorImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkEzRDlBMUUwODYxMTExRTFCMzA4RDdDMjJBMEMxRDM3IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkEzRDlBMUUxODYxMTExRTFCMzA4RDdDMjJBMEMxRDM3Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QTNEOUExREU4NjExMTFFMUIzMDhEN0MyMkEwQzFEMzciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QTNEOUExREY4NjExMTFFMUIzMDhEN0MyMkEwQzFEMzciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5xh3fmAAAABlBMVEX////MzMw46qqDAAAAGElEQVR42mJggAJGKGAYIIGBth8KAAIMAEUQAIElnLuQAAAAAElFTkSuQmCC";
+function Dialog(b,d,m,n,u,p,z,G,U,E,R){this.editorUi=b;null==this.bg&&(this.bg=b.createDiv("geBackground"));u&&document.body.appendChild(this.bg);u=b.createDiv(U?"geTransDialog":"geDialog");u.style.width=m+48+"px";null!=n&&(u.style.height=n+48+"px");"1"!=urlParams.embedInline||Editor.inlineFullscreen||null==b.embedViewport||(u.style.left=b.embedViewport.x+b.embedViewport.width/2+"px",u.style.top=b.embedViewport.y+b.embedViewport.height/2+"px");u.appendChild(d);document.body.appendChild(u);null==n&&
+(u.style.height=d.scrollHeight+48+"px");if(p&&(d=document.createElement("div"),d.className="geButton",d.setAttribute("title",mxResources.get("close")),d.style.backgroundImage="url("+Editor.crossImage+")",d.style.position="absolute",d.style.top="0px",d.style.right="0px",mxEvent.addListener(d,"click",mxUtils.bind(this,function(){b.hideDialog(!0)})),u.appendChild(d),!R)){var N=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(c){N=!0}),null,mxUtils.bind(this,function(c){N&&(b.hideDialog(!0),
+N=!1)}))}this.onDialogClose=z;this.container=u;null!=E&&this.addResizeHandler(E);b.editor.fireEvent(new mxEventObject("showDialog"))}Dialog.prototype.noColorImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkEzRDlBMUUwODYxMTExRTFCMzA4RDdDMjJBMEMxRDM3IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkEzRDlBMUUxODYxMTExRTFCMzA4RDdDMjJBMEMxRDM3Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QTNEOUExREU4NjExMTFFMUIzMDhEN0MyMkEwQzFEMzciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QTNEOUExREY4NjExMTFFMUIzMDhEN0MyMkEwQzFEMzciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5xh3fmAAAABlBMVEX////MzMw46qqDAAAAGElEQVR42mJggAJGKGAYIIGBth8KAAIMAEUQAIElnLuQAAAAAElFTkSuQmCC";
Dialog.prototype.closeImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJAQMAAADaX5RTAAAABlBMVEV7mr3///+wksspAAAAAnRSTlP/AOW3MEoAAAAdSURBVAgdY9jXwCDDwNDRwHCwgeExmASygSL7GgB12QiqNHZZIwAAAABJRU5ErkJggg==";Dialog.prototype.clearImage="data:image/gif;base64,R0lGODlhDQAKAIABAMDAwP///yH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjAgNjEuMTM0Nzc3LCAyMDEwLzAyLzEyLTE3OjMyOjAwICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IFdpbmRvd3MiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OUIzOEM1NzI4NjEyMTFFMUEzMkNDMUE3NjZERDE2QjIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OUIzOEM1NzM4NjEyMTFFMUEzMkNDMUE3NjZERDE2QjIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo5QjM4QzU3MDg2MTIxMUUxQTMyQ0MxQTc2NkREMTZCMiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo5QjM4QzU3MTg2MTIxMUUxQTMyQ0MxQTc2NkREMTZCMiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAEAAAEALAAAAAANAAoAAAIXTGCJebD9jEOTqRlttXdrB32PJ2ncyRQAOw==";
Dialog.prototype.getDocumentSize=function(){return mxUtils.getDocumentSize()};Dialog.prototype.getPosition=function(b,d){return new mxPoint(b,d)};
-Dialog.prototype.addResizeHandler=function(b){var d=document.createElement("img");d.setAttribute("src",mxWindow.prototype.resizeImage);d.style.cursor="nwse-resize";d.style.position="absolute";d.style.bottom="0px";d.style.right="0px";d.style.zIndex="2";var m=null,n=null,v=null,p=null,z=mxUtils.bind(this,function(E){m=mxEvent.getClientX(E);n=mxEvent.getClientY(E);v=parseInt(this.container.style.width);p=parseInt(this.container.style.height);mxEvent.addGestureListeners(document,null,G,U);mxEvent.consume(E)}),
-G=mxUtils.bind(this,function(E){if(null!=m&&null!=n){var R=mxEvent.getClientX(E)-m,N=mxEvent.getClientY(E)-n;this.container.style.width=Math.max(b.width,v+2*R)+"px";this.container.style.height=Math.max(b.height,p+2*N)+"px";mxEvent.consume(E)}}),U=mxUtils.bind(this,function(E){null!=m&&null!=n&&(n=m=null,mxEvent.removeGestureListeners(document,null,G,U),mxEvent.consume(E))});mxEvent.addGestureListeners(d,z,G,U);this.container.appendChild(d)};
+Dialog.prototype.addResizeHandler=function(b){var d=document.createElement("img");d.setAttribute("src",mxWindow.prototype.resizeImage);d.style.cursor="nwse-resize";d.style.position="absolute";d.style.bottom="0px";d.style.right="0px";d.style.zIndex="2";var m=null,n=null,u=null,p=null,z=mxUtils.bind(this,function(E){m=mxEvent.getClientX(E);n=mxEvent.getClientY(E);u=parseInt(this.container.style.width);p=parseInt(this.container.style.height);mxEvent.addGestureListeners(document,null,G,U);mxEvent.consume(E)}),
+G=mxUtils.bind(this,function(E){if(null!=m&&null!=n){var R=mxEvent.getClientX(E)-m,N=mxEvent.getClientY(E)-n;this.container.style.width=Math.max(b.width,u+2*R)+"px";this.container.style.height=Math.max(b.height,p+2*N)+"px";mxEvent.consume(E)}}),U=mxUtils.bind(this,function(E){null!=m&&null!=n&&(n=m=null,mxEvent.removeGestureListeners(document,null,G,U),mxEvent.consume(E))});mxEvent.addGestureListeners(d,z,G,U);this.container.appendChild(d)};
Dialog.prototype.close=function(b,d){if(null!=this.onDialogClose){if(0==this.onDialogClose(b,d))return!1;this.onDialogClose=null}null!=this.dialogImg&&null!=this.dialogImg.parentNode&&(this.dialogImg.parentNode.removeChild(this.dialogImg),this.dialogImg=null);null!=this.bg&&null!=this.bg.parentNode&&this.bg.parentNode.removeChild(this.bg);null!=this.editorUi.embedViewport?this.editorUi.removeListener(this.resizeListener):mxEvent.removeListener(window,"resize",this.resizeListener);null!=this.container.parentNode&&
this.container.parentNode.removeChild(this.container)};
-var ErrorDialog=function(b,d,m,n,v,p,z,G,U,E,R){U=null!=U?U:!0;var N=document.createElement("div");N.style.textAlign="center";N.style.flexDirection="column";N.style.maxHeight="100%";N.style.display="flex";if(null!=d){var c=document.createElement("div");c.style.padding="0px";c.style.margin="0px";c.style.fontSize="14px";c.style.fontWeight="600";c.style.paddingBottom="12px";c.style.marginBottom="10px";c.style.borderBottom="1px solid light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1))";c.style.whiteSpace=
+var ErrorDialog=function(b,d,m,n,u,p,z,G,U,E,R){U=null!=U?U:!0;var N=document.createElement("div");N.style.textAlign="center";N.style.flexDirection="column";N.style.maxHeight="100%";N.style.display="flex";if(null!=d){var c=document.createElement("div");c.style.padding="0px";c.style.margin="0px";c.style.fontSize="14px";c.style.fontWeight="600";c.style.paddingBottom="12px";c.style.marginBottom="10px";c.style.borderBottom="1px solid light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1))";c.style.whiteSpace=
"nowrap";c.style.textOverflow="ellipsis";c.style.overflow="hidden";c.style.flexShrink="0";mxUtils.write(c,d);c.setAttribute("title",d);N.appendChild(c)}d=document.createElement("div");d.style.lineHeight="1.2em";d.style.padding="6px";d.style.flexGrow="1";d.style.overflowY="auto";"string"===typeof m&&(m=m.replace(/\n/g,"<br/>"));d.innerHTML=Graph.sanitizeHtml(m);N.appendChild(d);m=document.createElement("div");m.style.marginTop="12px";m.style.textAlign="center";null!=p&&(d=mxUtils.button(mxResources.get("tryAgain"),
-function(){b.hideDialog();p()}),d.className="geBtn",m.appendChild(d),m.style.textAlign="center");null!=E&&(E=mxUtils.button(E,function(){null!=R&&R()}),E.className="geBtn",m.appendChild(E));var g=mxUtils.button(n,function(){U&&b.hideDialog();null!=v&&v()});g.className="geBtn";m.appendChild(g);null!=z&&(n=mxUtils.button(z,function(){U&&b.hideDialog();null!=G&&G()}),n.className="geBtn gePrimaryBtn",m.appendChild(n));this.init=function(){g.focus()};N.appendChild(m);this.container=N},PrintDialog=function(b,
+function(){b.hideDialog();p()}),d.className="geBtn",m.appendChild(d),m.style.textAlign="center");null!=E&&(E=mxUtils.button(E,function(){null!=R&&R()}),E.className="geBtn",m.appendChild(E));var g=mxUtils.button(n,function(){U&&b.hideDialog();null!=u&&u()});g.className="geBtn";m.appendChild(g);null!=z&&(n=mxUtils.button(z,function(){U&&b.hideDialog();null!=G&&G()}),n.className="geBtn gePrimaryBtn",m.appendChild(n));this.init=function(){g.focus()};N.appendChild(m);this.container=N},PrintDialog=function(b,
d,m,n){this.create(b,d,m,n)};
PrintDialog.prototype.create=function(b){function d(g){var k=z.checked||E.checked,q=parseInt(N.value)/100;isNaN(q)&&(q=1,N.value="100%");mxClient.IS_SF&&(q*=.75);var A=m.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,D=1/m.pageScale;if(k){var H=z.checked?1:parseInt(R.value);isNaN(H)||(D=mxUtils.getScaleForPageCount(H,m,A))}var K=H=0;A=mxRectangle.fromRectangle(A);A.width=Math.ceil(A.width*q);A.height=Math.ceil(A.height*q);D*=q;!k&&m.pageVisible?(q=m.getPageLayout(),H-=q.x*A.width,K-=q.y*A.height):
-k=!0;k=PrintDialog.createPrintPreview(m,D,A,0,H,K,k);k.open();g&&PrintDialog.printPreview(k)}var m=b.editor.graph,n=document.createElement("table");n.style.width="100%";n.style.height="100%";var v=document.createElement("tbody");var p=document.createElement("tr");var z=document.createElement("input");z.setAttribute("type","checkbox");var G=document.createElement("td");G.setAttribute("colspan","2");G.style.fontSize="10pt";G.appendChild(z);var U=document.createElement("span");mxUtils.write(U," "+mxResources.get("fitPage"));
-G.appendChild(U);mxEvent.addListener(U,"click",function(g){z.checked=!z.checked;E.checked=!z.checked;mxEvent.consume(g)});mxEvent.addListener(z,"change",function(){E.checked=!z.checked});p.appendChild(G);v.appendChild(p);p=p.cloneNode(!1);var E=document.createElement("input");E.setAttribute("type","checkbox");G=document.createElement("td");G.style.fontSize="10pt";G.appendChild(E);U=document.createElement("span");mxUtils.write(U," "+mxResources.get("posterPrint")+":");G.appendChild(U);mxEvent.addListener(U,
-"click",function(g){E.checked=!E.checked;z.checked=!E.checked;mxEvent.consume(g)});p.appendChild(G);var R=document.createElement("input");R.setAttribute("value","1");R.setAttribute("type","number");R.setAttribute("min","1");R.setAttribute("size","4");R.setAttribute("disabled","disabled");R.style.width="50px";G=document.createElement("td");G.style.fontSize="10pt";G.appendChild(R);mxUtils.write(G," "+mxResources.get("pages")+" (max)");p.appendChild(G);v.appendChild(p);mxEvent.addListener(E,"change",
-function(){E.checked?R.removeAttribute("disabled"):R.setAttribute("disabled","disabled");z.checked=!E.checked});p=p.cloneNode(!1);G=document.createElement("td");mxUtils.write(G,mxResources.get("pageScale")+":");p.appendChild(G);G=document.createElement("td");var N=document.createElement("input");N.setAttribute("value","100 %");N.setAttribute("size","5");N.style.width="50px";G.appendChild(N);p.appendChild(G);v.appendChild(p);p=document.createElement("tr");G=document.createElement("td");G.colSpan=2;
+k=!0;k=PrintDialog.createPrintPreview(m,D,A,0,H,K,k);k.open();g&&PrintDialog.printPreview(k)}var m=b.editor.graph,n=document.createElement("table");n.style.width="100%";n.style.height="100%";var u=document.createElement("tbody");var p=document.createElement("tr");var z=document.createElement("input");z.setAttribute("type","checkbox");var G=document.createElement("td");G.setAttribute("colspan","2");G.style.fontSize="10pt";G.appendChild(z);var U=document.createElement("span");mxUtils.write(U," "+mxResources.get("fitPage"));
+G.appendChild(U);mxEvent.addListener(U,"click",function(g){z.checked=!z.checked;E.checked=!z.checked;mxEvent.consume(g)});mxEvent.addListener(z,"change",function(){E.checked=!z.checked});p.appendChild(G);u.appendChild(p);p=p.cloneNode(!1);var E=document.createElement("input");E.setAttribute("type","checkbox");G=document.createElement("td");G.style.fontSize="10pt";G.appendChild(E);U=document.createElement("span");mxUtils.write(U," "+mxResources.get("posterPrint")+":");G.appendChild(U);mxEvent.addListener(U,
+"click",function(g){E.checked=!E.checked;z.checked=!E.checked;mxEvent.consume(g)});p.appendChild(G);var R=document.createElement("input");R.setAttribute("value","1");R.setAttribute("type","number");R.setAttribute("min","1");R.setAttribute("size","4");R.setAttribute("disabled","disabled");R.style.width="50px";G=document.createElement("td");G.style.fontSize="10pt";G.appendChild(R);mxUtils.write(G," "+mxResources.get("pages")+" (max)");p.appendChild(G);u.appendChild(p);mxEvent.addListener(E,"change",
+function(){E.checked?R.removeAttribute("disabled"):R.setAttribute("disabled","disabled");z.checked=!E.checked});p=p.cloneNode(!1);G=document.createElement("td");mxUtils.write(G,mxResources.get("pageScale")+":");p.appendChild(G);G=document.createElement("td");var N=document.createElement("input");N.setAttribute("value","100 %");N.setAttribute("size","5");N.style.width="50px";G.appendChild(N);p.appendChild(G);u.appendChild(p);p=document.createElement("tr");G=document.createElement("td");G.colSpan=2;
G.style.paddingTop="30px";G.setAttribute("align","right");U=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});U.className="geBtn";b.editor.cancelFirst&&G.appendChild(U);if(PrintDialog.previewEnabled){var c=mxUtils.button(mxResources.get("preview"),function(){b.hideDialog();d(!1)});c.className="geBtn";G.appendChild(c)}c=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){b.hideDialog();d(!0)});c.className="geBtn gePrimaryBtn";G.appendChild(c);b.editor.cancelFirst||
-G.appendChild(U);p.appendChild(G);v.appendChild(p);n.appendChild(v);p=document.createElement("div");p.style.paddingBottom="20px";p.appendChild(n);this.container=p};PrintDialog.printPreview=function(b){try{null!=b.wnd&&window.setTimeout(function(){b.wnd.focus();b.wnd.print();b.wnd.close()},500)}catch(d){}};
-PrintDialog.createPrintPreview=function(b,d,m,n,v,p,z){d=new mxPrintPreview(b,d,m,n,v,p);d.title=mxResources.get("preview");d.addPageCss=!mxClient.IS_SF;d.printBackgroundImage=!0;d.autoOrigin=z;z=b.background;if(null==z||""==z||z==mxConstants.NONE)z="#ffffff";d.backgroundColor=z;var G=d.isTextLabel;d.isTextLabel=function(E){return"geHint"==!E.className&&G.apply(this,arguments)};var U=d.getLinkForCellState;d.getLinkForCellState=function(E){return b.getAbsoluteUrl(U.apply(this,arguments))};return d};
+G.appendChild(U);p.appendChild(G);u.appendChild(p);n.appendChild(u);p=document.createElement("div");p.style.paddingBottom="20px";p.appendChild(n);this.container=p};PrintDialog.printPreview=function(b){try{null!=b.wnd&&window.setTimeout(function(){b.wnd.focus();b.wnd.print();b.wnd.close()},500)}catch(d){}};
+PrintDialog.createPrintPreview=function(b,d,m,n,u,p,z){d=new mxPrintPreview(b,d,m,n,u,p);d.title=mxResources.get("preview");d.addPageCss=!mxClient.IS_SF;d.printBackgroundImage=!0;d.autoOrigin=z;z=b.background;if(null==z||""==z||z==mxConstants.NONE)z="#ffffff";d.backgroundColor=z;var G=d.isTextLabel;d.isTextLabel=function(E){return"geHint"==!E.className&&G.apply(this,arguments)};var U=d.getLinkForCellState;d.getLinkForCellState=function(E){return b.getAbsoluteUrl(U.apply(this,arguments))};return d};
PrintDialog.previewEnabled=!0;
-var PageSetupDialog=function(b){function d(){var q=N;null!=q&&null!=q.originalSrc&&(q=b.createImageForPageLink(q.originalSrc,null));null!=q&&null!=q.src?(R.style.backgroundImage="url("+q.src+")",R.style.display="inline-block"):(R.style.backgroundImage="",R.style.display="none");R.style.backgroundColor="";null!=c&&c!=mxConstants.NONE&&(R.style.backgroundColor=c,R.style.display="inline-block")}var m=b.editor.graph,n=document.createElement("table");n.style.width="100%";n.style.height="100%";var v=document.createElement("tbody");
-var p=document.createElement("tr");var z=document.createElement("td");z.style.verticalAlign="top";z.style.fontSize="10pt";mxUtils.write(z,mxResources.get("paperSize")+":");p.appendChild(z);z=document.createElement("td");z.style.verticalAlign="top";z.style.fontSize="10pt";var G=PageSetupDialog.addPageFormatPanel(z,"pagesetupdialog",m.pageFormat);p.appendChild(z);v.appendChild(p);p=document.createElement("tr");z=document.createElement("td");mxUtils.write(z,mxResources.get("gridSize")+":");p.appendChild(z);
-z=document.createElement("td");z.style.whiteSpace="nowrap";var U=document.createElement("input");U.setAttribute("type","number");U.setAttribute("min","0");U.style.width="40px";U.style.marginLeft="6px";U.value=m.getGridSize();z.appendChild(U);mxEvent.addListener(U,"change",function(){var q=parseInt(U.value);U.value=Math.max(1,isNaN(q)?m.getGridSize():q)});p.appendChild(z);v.appendChild(p);p=document.createElement("tr");z=document.createElement("td");mxUtils.write(z,mxResources.get("background")+":");
+var PageSetupDialog=function(b){function d(){var q=N;null!=q&&null!=q.originalSrc&&(q=b.createImageForPageLink(q.originalSrc,null));null!=q&&null!=q.src?(R.style.backgroundImage="url("+q.src+")",R.style.display="inline-block"):(R.style.backgroundImage="",R.style.display="none");R.style.backgroundColor="";null!=c&&c!=mxConstants.NONE&&(R.style.backgroundColor=c,R.style.display="inline-block")}var m=b.editor.graph,n=document.createElement("table");n.style.width="100%";n.style.height="100%";var u=document.createElement("tbody");
+var p=document.createElement("tr");var z=document.createElement("td");z.style.verticalAlign="top";z.style.fontSize="10pt";mxUtils.write(z,mxResources.get("paperSize")+":");p.appendChild(z);z=document.createElement("td");z.style.verticalAlign="top";z.style.fontSize="10pt";var G=PageSetupDialog.addPageFormatPanel(z,"pagesetupdialog",m.pageFormat);p.appendChild(z);u.appendChild(p);p=document.createElement("tr");z=document.createElement("td");mxUtils.write(z,mxResources.get("gridSize")+":");p.appendChild(z);
+z=document.createElement("td");z.style.whiteSpace="nowrap";var U=document.createElement("input");U.setAttribute("type","number");U.setAttribute("min","0");U.style.width="40px";U.style.marginLeft="6px";U.value=m.getGridSize();z.appendChild(U);mxEvent.addListener(U,"change",function(){var q=parseInt(U.value);U.value=Math.max(1,isNaN(q)?m.getGridSize():q)});p.appendChild(z);u.appendChild(p);p=document.createElement("tr");z=document.createElement("td");mxUtils.write(z,mxResources.get("background")+":");
p.appendChild(z);z=document.createElement("td");var E=document.createElement("button");E.className="geBtn";E.style.margin="0px";mxUtils.write(E,mxResources.get("change")+"...");var R=document.createElement("div");R.style.display="inline-block";R.style.verticalAlign="middle";R.style.backgroundPosition="center center";R.style.backgroundRepeat="no-repeat";R.style.backgroundSize="contain";R.style.border="1px solid lightGray";R.style.borderRadius="4px";R.style.marginRight="14px";R.style.height="32px";
-R.style.width="64px";R.style.cursor="pointer";R.style.padding="4px";var N=m.backgroundImage,c=m.background,g=m.shadowVisible,k=function(q){b.showBackgroundImageDialog(function(A,D,H,K){D||(null!=A&&null!=A.src&&Graph.isPageLink(A.src)&&(A={originalSrc:A.src}),N=A,g=K);c=H;d()},N,c,!0);mxEvent.consume(q)};mxEvent.addListener(E,"click",k);mxEvent.addListener(R,"click",k);d();z.appendChild(R);z.appendChild(E);p.appendChild(z);v.appendChild(p);p=document.createElement("tr");z=document.createElement("td");
+R.style.width="64px";R.style.cursor="pointer";R.style.padding="4px";var N=m.backgroundImage,c=m.background,g=m.shadowVisible,k=function(q){b.showBackgroundImageDialog(function(A,D,H,K){D||(null!=A&&null!=A.src&&Graph.isPageLink(A.src)&&(A={originalSrc:A.src}),N=A,g=K);c=H;d()},N,c,!0);mxEvent.consume(q)};mxEvent.addListener(E,"click",k);mxEvent.addListener(R,"click",k);d();z.appendChild(R);z.appendChild(E);p.appendChild(z);u.appendChild(p);p=document.createElement("tr");z=document.createElement("td");
z.colSpan=2;z.style.paddingTop="16px";z.setAttribute("align","right");E=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});E.className="geBtn";b.editor.cancelFirst&&z.appendChild(E);k=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();var q=parseInt(U.value);isNaN(q)||m.gridSize===q||m.setGridSize(q);q=new ChangePageSetup(b,c,N,G.get());q.ignoreColor=m.background==c;q.ignoreImage=(null!=m.backgroundImage?m.backgroundImage.src:null)===(null!=N?N.src:null);null!=g&&
-(q.shadowVisible=g);m.pageFormat.width==q.previousFormat.width&&m.pageFormat.height==q.previousFormat.height&&q.ignoreColor&&q.ignoreImage&&q.shadowVisible==m.shadowVisible||m.model.execute(q)});k.className="geBtn gePrimaryBtn";z.appendChild(k);b.editor.cancelFirst||z.appendChild(E);p.appendChild(z);v.appendChild(p);n.appendChild(v);this.container=n};
-PageSetupDialog.addPageFormatPanel=function(b,d,m,n){d="format-"+d;var v=document.createElement("input");v.setAttribute("name",d);v.setAttribute("type","radio");v.setAttribute("value","portrait");var p=document.createElement("input");p.setAttribute("name",d);p.setAttribute("type","radio");p.setAttribute("value","landscape");var z=document.createElement("select");z.style.position="relative";z.style.marginBottom="4px";z.style.borderRadius="4px";z.style.borderWidth="1px";z.style.borderStyle="solid";
-z.style.boxSizing="border-box";z.style.padding="2px";z.style.width="210px";var G=document.createElement("div");G.style.whiteSpace="nowrap";G.style.marginLeft="4px";G.style.width="210px";G.style.height="24px";v.style.marginRight="6px";G.appendChild(v);d=document.createElement("span");d.style.maxWidth="100px";mxUtils.write(d,mxResources.get("portrait"));G.appendChild(d);p.style.marginLeft="10px";p.style.marginRight="6px";G.appendChild(p);var U=document.createElement("span");U.style.width="100px";mxUtils.write(U,
+(q.shadowVisible=g);m.pageFormat.width==q.previousFormat.width&&m.pageFormat.height==q.previousFormat.height&&q.ignoreColor&&q.ignoreImage&&q.shadowVisible==m.shadowVisible||m.model.execute(q)});k.className="geBtn gePrimaryBtn";z.appendChild(k);b.editor.cancelFirst||z.appendChild(E);p.appendChild(z);u.appendChild(p);n.appendChild(u);this.container=n};
+PageSetupDialog.addPageFormatPanel=function(b,d,m,n){d="format-"+d;var u=document.createElement("input");u.setAttribute("name",d);u.setAttribute("type","radio");u.setAttribute("value","portrait");var p=document.createElement("input");p.setAttribute("name",d);p.setAttribute("type","radio");p.setAttribute("value","landscape");var z=document.createElement("select");z.style.position="relative";z.style.marginBottom="4px";z.style.borderRadius="4px";z.style.borderWidth="1px";z.style.borderStyle="solid";
+z.style.boxSizing="border-box";z.style.padding="2px";z.style.width="210px";var G=document.createElement("div");G.style.whiteSpace="nowrap";G.style.marginLeft="4px";G.style.width="210px";G.style.height="24px";u.style.marginRight="6px";G.appendChild(u);d=document.createElement("span");d.style.maxWidth="100px";mxUtils.write(d,mxResources.get("portrait"));G.appendChild(d);p.style.marginLeft="10px";p.style.marginRight="6px";G.appendChild(p);var U=document.createElement("span");U.style.width="100px";mxUtils.write(U,
mxResources.get("landscape"));G.appendChild(U);var E=document.createElement("div");E.style.whiteSpace="nowrap";E.style.fontSize="12px";E.style.width="210px";E.style.height="24px";var R=document.createElement("input");R.setAttribute("size","6");R.setAttribute("title",mxResources.get("width"));R.style.textAlign="right";E.appendChild(R);mxUtils.write(E," x ");var N=document.createElement("input");N.setAttribute("size","6");N.setAttribute("title",mxResources.get("height"));N.style.textAlign="right";E.appendChild(N);
var c=document.createElement("select");c.style.marginLeft="4px";c.style.boxSizing="border-box";for(var g=[{label:mxResources.get("points"),unit:mxConstants.POINTS},{label:mxResources.get("inches"),unit:mxConstants.INCHES},{label:mxResources.get("millimeters"),unit:mxConstants.MILLIMETERS}],k=0;k<g.length;k++){var q=document.createElement("option");q.setAttribute("value",g[k].unit);mxUtils.write(q,g[k].label);c.appendChild(q)}c.value=Editor.pageSizeUnit;E.appendChild(c);G.style.display="none";E.style.display=
"none";var A={},D=PageSetupDialog.getFormats();for(k=0;k<D.length;k++)g=D[k],A[g.key]=g,q=document.createElement("option"),q.setAttribute("value",g.key),mxUtils.write(q,g.title),z.appendChild(q);var H=function(){z.value="custom";for(var P=0;P<D.length;P++){var W=D[P];null!=W.format&&("a4"==W.key?826==m.width?(m=mxRectangle.fromRectangle(m),m.width=827):826==m.height&&(m=mxRectangle.fromRectangle(m),m.height=827):"a5"==W.key&&(584==m.width?(m=mxRectangle.fromRectangle(m),m.width=583):584==m.height&&
-(m=mxRectangle.fromRectangle(m),m.height=583)),m.width==W.format.width&&m.height==W.format.height?(z.value=W.key,v.setAttribute("checked","checked"),v.defaultChecked=!0,v.checked=!0,p.removeAttribute("checked"),p.defaultChecked=!1,p.checked=!1,detected=!0):m.width==W.format.height&&m.height==W.format.width&&(z.value=W.key,v.removeAttribute("checked"),v.defaultChecked=!1,v.checked=!1,p.setAttribute("checked","checked"),p.defaultChecked=!0,detected=p.checked=!0))}"custom"==z.value?(R.value=Editor.toUnit(m.width,
-c.value),N.value=Editor.toUnit(m.height,c.value),v.setAttribute("checked","checked"),z.value="custom",G.style.display="none",E.style.display=""):(G.style.display="",E.style.display="none")};H();b.appendChild(z);mxUtils.br(b);b.appendChild(G);b.appendChild(E);var K=function(P,W){P=A[z.value];null!=P.format?(R.value=Editor.toUnit(p.checked?P.format.height:P.format.width,c.value),N.value=Editor.toUnit(p.checked?P.format.width:P.format.height,c.value),E.style.display="none",G.style.display=""):(G.style.display=
-"none",E.style.display="");P=parseFloat(R.value);if(isNaN(P)||0>=P)R.value=Editor.toUnit(m.width,c.value);P=parseFloat(N.value);if(isNaN(P)||0>=P)N.value=Editor.toUnit(m.height,c.value);P=new mxRectangle(0,0,Math.floor(Editor.fromUnit(parseFloat(R.value),c.value)),Math.floor(Editor.fromUnit(parseFloat(N.value),c.value)));W||P.width==m.width&&P.height==m.height||(m=P,null!=n&&n(m))};mxEvent.addListener(d,"click",function(P){v.checked=!0;K(P);mxEvent.consume(P)});mxEvent.addListener(U,"click",function(P){p.checked=
-!0;K(P);mxEvent.consume(P)});mxEvent.addListener(R,"blur",K);mxEvent.addListener(R,"click",K);mxEvent.addListener(N,"blur",K);mxEvent.addListener(N,"click",K);mxEvent.addListener(p,"change",K);mxEvent.addListener(v,"change",K);mxEvent.addListener(z,"change",function(P){K(P,"custom"==z.value);mxEvent.consume(P)});mxEvent.addListener(c,"change",function(P){R.value=Editor.toUnit(Editor.fromUnit(R.value,Editor.pageSizeUnit),c.value);N.value=Editor.toUnit(Editor.fromUnit(N.value,Editor.pageSizeUnit),c.value);
+(m=mxRectangle.fromRectangle(m),m.height=583)),m.width==W.format.width&&m.height==W.format.height?(z.value=W.key,u.setAttribute("checked","checked"),u.defaultChecked=!0,u.checked=!0,p.removeAttribute("checked"),p.defaultChecked=!1,p.checked=!1,detected=!0):m.width==W.format.height&&m.height==W.format.width&&(z.value=W.key,u.removeAttribute("checked"),u.defaultChecked=!1,u.checked=!1,p.setAttribute("checked","checked"),p.defaultChecked=!0,detected=p.checked=!0))}"custom"==z.value?(R.value=Editor.toUnit(m.width,
+c.value),N.value=Editor.toUnit(m.height,c.value),u.setAttribute("checked","checked"),z.value="custom",G.style.display="none",E.style.display=""):(G.style.display="",E.style.display="none")};H();b.appendChild(z);mxUtils.br(b);b.appendChild(G);b.appendChild(E);var K=function(P,W){P=A[z.value];null!=P.format?(R.value=Editor.toUnit(p.checked?P.format.height:P.format.width,c.value),N.value=Editor.toUnit(p.checked?P.format.width:P.format.height,c.value),E.style.display="none",G.style.display=""):(G.style.display=
+"none",E.style.display="");P=parseFloat(R.value);if(isNaN(P)||0>=P)R.value=Editor.toUnit(m.width,c.value);P=parseFloat(N.value);if(isNaN(P)||0>=P)N.value=Editor.toUnit(m.height,c.value);P=new mxRectangle(0,0,Math.floor(Editor.fromUnit(parseFloat(R.value),c.value)),Math.floor(Editor.fromUnit(parseFloat(N.value),c.value)));W||P.width==m.width&&P.height==m.height||(m=P,null!=n&&n(m))};mxEvent.addListener(d,"click",function(P){u.checked=!0;K(P);mxEvent.consume(P)});mxEvent.addListener(U,"click",function(P){p.checked=
+!0;K(P);mxEvent.consume(P)});mxEvent.addListener(R,"blur",K);mxEvent.addListener(R,"click",K);mxEvent.addListener(N,"blur",K);mxEvent.addListener(N,"click",K);mxEvent.addListener(p,"change",K);mxEvent.addListener(u,"change",K);mxEvent.addListener(z,"change",function(P){K(P,"custom"==z.value);mxEvent.consume(P)});mxEvent.addListener(c,"change",function(P){R.value=Editor.toUnit(Editor.fromUnit(R.value,Editor.pageSizeUnit),c.value);N.value=Editor.toUnit(Editor.fromUnit(N.value,Editor.pageSizeUnit),c.value);
Editor.pageSizeUnit=c.value;K(P,!0);mxEvent.consume(P)});K(null,!0);return{set:function(P){m=P;H(null,null,!0)},get:function(){return m},widthInput:R,heightInput:N}};
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,d,m,n,v,p,z,G,U,E,R){U=null!=U?U:!0;var N=document.createElement("div"),c=document.createElement("div");c.style.width="100%";c.style.display="grid";c.style.gap="5px 8px";c.style.gridAutoColumns="auto 1fr";c.style.boxSizing="border-box";c.style.padding="3px";var g=document.createElement("div");g.style.display="inline-flex";g.style.alignItems="center";g.style.justifyContent="flex-end";g.style.minWidth="0";var k=document.createElement("div");k.style.display="inline-block";
-k.style.textOverflow="ellipsis";k.style.whiteSpace="nowrap";k.style.overflow="hidden";k.style.fontSize="10pt";k.style.padding="2px 0";k.setAttribute("title",v||mxResources.get("filename"));mxUtils.write(k,(v||mxResources.get("filename"))+":");g.appendChild(k);c.appendChild(g);var q=document.createElement("input");q.setAttribute("value",d||"");q.style.flexGrow="1";var A=mxUtils.button(m,function(){if(null==p||p(q.value))U&&b.hideDialog(),n(q.value)});A.className="geBtn gePrimaryBtn";this.init=function(){if(null!=
-v||null==z)if(null!=R?Editor.selectFilename(q):(q.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?q.select():document.execCommand("selectAll",!1,null)),Graph.fileSupport){var D=c.parentNode;if(null!=D){var H=null;mxEvent.addListener(D,"dragleave",function(K){null!=H&&(H.style.backgroundColor="",H=null);K.stopPropagation();K.preventDefault()});mxEvent.addListener(D,"dragover",mxUtils.bind(this,function(K){null==H&&(H=q,H.style.backgroundColor="#ebf2f9");K.stopPropagation();K.preventDefault()}));
-mxEvent.addListener(D,"drop",mxUtils.bind(this,function(K){null!=H&&(H.style.backgroundColor="",H=null);0<=mxUtils.indexOf(K.dataTransfer.types,"text/uri-list")&&(q.value=decodeURIComponent(K.dataTransfer.getData("text/uri-list")),A.click());K.stopPropagation();K.preventDefault()}))}}};g=document.createElement("div");g.style.display="inline-flex";g.style.alignItems="center";g.style.gap="4px";g.style.whiteSpace="nowrap";g.appendChild(q);c.appendChild(g);null==v&&null!=z||null==R||null==b.editor.diagramFileTypes||
+var FilenameDialog=function(b,d,m,n,u,p,z,G,U,E,R){U=null!=U?U:!0;var N=document.createElement("div"),c=document.createElement("div");c.style.width="100%";c.style.display="grid";c.style.gap="5px 8px";c.style.gridAutoColumns="auto 1fr";c.style.boxSizing="border-box";c.style.padding="3px";var g=document.createElement("div");g.style.display="inline-flex";g.style.alignItems="center";g.style.justifyContent="flex-end";g.style.minWidth="0";var k=document.createElement("div");k.style.display="inline-block";
+k.style.textOverflow="ellipsis";k.style.whiteSpace="nowrap";k.style.overflow="hidden";k.style.fontSize="10pt";k.style.padding="2px 0";k.setAttribute("title",u||mxResources.get("filename"));mxUtils.write(k,(u||mxResources.get("filename"))+":");g.appendChild(k);c.appendChild(g);var q=document.createElement("input");q.setAttribute("value",d||"");q.style.flexGrow="1";var A=mxUtils.button(m,function(){if(null==p||p(q.value))U&&b.hideDialog(),n(q.value)});A.className="geBtn gePrimaryBtn";this.init=function(){if(null!=
+u||null==z)if(null!=R?Editor.selectFilename(q):(q.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?q.select():document.execCommand("selectAll",!1,null)),Graph.fileSupport){var D=c.parentNode;if(null!=D){var H=null;mxEvent.addListener(D,"dragleave",function(K){null!=H&&(H.style.backgroundColor="",H=null);K.stopPropagation();K.preventDefault()});mxEvent.addListener(D,"dragover",mxUtils.bind(this,function(K){null==H&&(H=q,H.style.backgroundColor="#ebf2f9");K.stopPropagation();K.preventDefault()}));
+mxEvent.addListener(D,"drop",mxUtils.bind(this,function(K){null!=H&&(H.style.backgroundColor="",H=null);0<=mxUtils.indexOf(K.dataTransfer.types,"text/uri-list")&&(q.value=decodeURIComponent(K.dataTransfer.getData("text/uri-list")),A.click());K.stopPropagation();K.preventDefault()}))}}};g=document.createElement("div");g.style.display="inline-flex";g.style.alignItems="center";g.style.gap="4px";g.style.whiteSpace="nowrap";g.appendChild(q);c.appendChild(g);null==u&&null!=z||null==R||null==b.editor.diagramFileTypes||
(g=document.createElement("div"),g.style.display="inline-flex",g.style.alignItems="center",g.style.textOverflow="ellipsis",g.style.justifyContent="flex-end",g.style.fontSize="10pt",mxUtils.write(g,mxResources.get("type")+":"),c.appendChild(g),g=document.createElement("div"),g.style.display="inline-flex",g.style.alignItems="center",g.style.whiteSpace="nowrap",c.appendChild(g),d=FilenameDialog.createFileTypes(b,q,b.editor.diagramFileTypes),d.style.width="100%",g.appendChild(d));null!=z&&c.appendChild(z);
row=document.createElement("div");row.style.gridColumn="1 / span 2";row.style.paddingTop=null!=R?"6px":"14px";row.style.whiteSpace="nowrap";row.style.display="inline-flex";row.style.alignItems="center";row.style.justifyContent="flex-end";row.setAttribute("align","right");g=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();null!=E&&E()});g.className="geBtn";null==G||b.isOffline()||row.appendChild(b.createHelpIcon(G));b.editor.cancelFirst&&row.appendChild(g);mxEvent.addListener(q,"keypress",
function(D){13==D.keyCode&&A.click()});row.appendChild(A);b.editor.cancelFirst||row.appendChild(g);c.appendChild(row);N.appendChild(c);this.container=N};FilenameDialog.filenameHelpLink=null;
-FilenameDialog.createFileTypes=function(b,d,m){var n=document.createElement("select");for(b=0;b<m.length;b++){var v=document.createElement("option");v.setAttribute("value",b);mxUtils.write(v,mxResources.get(m[b].description)+" (."+m[b].extension+")");n.appendChild(v)}mxEvent.addListener(n,"change",function(p){p=m[n.value].extension;var z=d.value.lastIndexOf(".drawio.");z=0<z?z:d.value.lastIndexOf(".");"drawio"!=p&&(p="drawio."+p);d.value=0<z?d.value.substring(0,z+1)+p:d.value+"."+p;"createEvent"in
+FilenameDialog.createFileTypes=function(b,d,m){var n=document.createElement("select");for(b=0;b<m.length;b++){var u=document.createElement("option");u.setAttribute("value",b);mxUtils.write(u,mxResources.get(m[b].description)+" (."+m[b].extension+")");n.appendChild(u)}mxEvent.addListener(n,"change",function(p){p=m[n.value].extension;var z=d.value.lastIndexOf(".drawio.");z=0<z?z:d.value.lastIndexOf(".");"drawio"!=p&&(p="drawio."+p);d.value=0<z?d.value.substring(0,z+1)+p:d.value+"."+p;"createEvent"in
document?(p=document.createEvent("HTMLEvents"),p.initEvent("change",!1,!0),d.dispatchEvent(p)):d.fireEvent("onchange")});b=function(p){p=d.value.toLowerCase();for(var z=0,G=0;G<m.length;G++){var U=m[G].extension,E=null;"drawio"!=U&&(E=U,U=".drawio."+U);if(p.substring(p.length-U.length-1)=="."+U||null!=E&&p.substring(p.length-E.length-1)=="."+E){z=G;break}}n.value=z};mxEvent.addListener(d,"change",b);mxEvent.addListener(d,"keyup",b);b();if(null!=Editor.defaultFileType&&"0"==n.value)for(b=0;b<m.length;b++)if(m[b].extension==
-Editor.defaultFileType){n.value=b;b=m[b].extension;v=d.value.lastIndexOf(".drawio.");v=0<v?v:d.value.lastIndexOf(".");"drawio"!=b&&(b="drawio."+b);d.value=0<v?d.value.substring(0,v+1)+b:d.value+"."+b;break}return n};
-var WrapperWindow=function(b,d,m,n,v,p,z,G){G=null!=G?G:document.createElement("div");this.window=new mxWindow(d,G,m,n,v,p,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);b.installResizeHandler(this,!0);z(G)};
+Editor.defaultFileType){n.value=b;b=m[b].extension;u=d.value.lastIndexOf(".drawio.");u=0<u?u:d.value.lastIndexOf(".");"drawio"!=b&&(b="drawio."+b);d.value=0<u?d.value.substring(0,u+1)+b:d.value+"."+b;break}return n};
+var WrapperWindow=function(b,d,m,n,u,p,z,G){G=null!=G?G:document.createElement("div");this.window=new mxWindow(d,G,m,n,u,p,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);b.installResizeHandler(this,!0);z(G)};
(function(){mxGraphView.prototype.validateBackgroundPage=function(){var z=this.graph;if(null!=z.container&&!z.transparentBackground){if(z.pageVisible){var G=this.getBackgroundPageBounds();if(null==this.backgroundPageShape){for(var U=z.container.firstChild;null!=U&&U.nodeType!=mxConstants.NODETYPE_ELEMENT;)U=U.nextSibling;null!=U&&(this.backgroundPageShape=this.createBackgroundPageShape(G),this.backgroundPageShape.scale=1,this.backgroundPageShape.isShadow=!0,this.backgroundPageShape.dialect=mxConstants.DIALECT_STRICTHTML,
this.backgroundPageShape.init(z.container),U.style.position="absolute",z.container.insertBefore(this.backgroundPageShape.node,U),this.backgroundPageShape.redraw(),this.backgroundPageShape.node.className="geBackgroundPage",mxEvent.addListener(this.backgroundPageShape.node,"dblclick",mxUtils.bind(this,function(E){z.dblClick(E)})),mxEvent.addGestureListeners(this.backgroundPageShape.node,mxUtils.bind(this,function(E){z.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(E))}),mxUtils.bind(this,function(E){null!=
z.tooltipHandler&&z.tooltipHandler.isHideOnHover()&&z.tooltipHandler.hide();z.isMouseDown&&!mxEvent.isConsumed(E)&&z.fireMouseEvent(mxEvent.MOUSE_MOVE,new mxMouseEvent(E))}),mxUtils.bind(this,function(E){z.fireMouseEvent(mxEvent.MOUSE_UP,new mxMouseEvent(E))})))}else this.backgroundPageShape.scale=1,this.backgroundPageShape.bounds=G,this.backgroundPageShape.redraw()}else null!=this.backgroundPageShape&&(this.backgroundPageShape.destroy(),this.backgroundPageShape=null);this.validateBackgroundStyles()}};
@@ -2102,91 +2102,91 @@ Math.round(g.y+(W+1)*k.height)),new mxPoint(Math.round(D),Math.round(g.y+(W+1)*k
z(this.verticalPageBreaks)};var d=mxGraphHandler.prototype.shouldRemoveCellsFromParent;mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(z,G,U){for(var E=0;E<G.length;E++){if(this.graph.isTableCell(G[E])||this.graph.isTableRow(G[E]))return!1;if(this.graph.getModel().isVertex(G[E])){var R=this.graph.getCellGeometry(G[E]);if(null!=R&&R.relative)return!1}}return d.apply(this,arguments)};var m=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var z=
m.apply(this,arguments);z.intersects=mxUtils.bind(this,function(G,U){return this.isConnecting()?!0:mxCellMarker.prototype.intersects.apply(z,arguments)});return z};mxGraphView.prototype.createBackgroundPageShape=function(z){return new mxRectangleShape(z,"#ffffff",this.graph.defaultPageBorderColor)};mxGraphView.prototype.getBackgroundPageBounds=function(){var z=this.getGraphBounds(),G=0<z.width?z.x/this.scale-this.translate.x:0,U=0<z.height?z.y/this.scale-this.translate.y:0,E=this.graph.pageFormat,
R=this.graph.pageScale,N=E.width*R;E=E.height*R;R=Math.floor(Math.min(0,G)/N);var c=Math.floor(Math.min(0,U)/E);return new mxRectangle(this.scale*(this.translate.x+R*N),this.scale*(this.translate.y+c*E),this.scale*(Math.ceil(Math.max(1,G+z.width/this.scale)/N)-R)*N,this.scale*(Math.ceil(Math.max(1,U+z.height/this.scale)/E)-c)*E)};var n=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(z,G){n.apply(this,arguments);this.dialect==mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape||
-this.useScrollbarsForPanning&&mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft=z+"px",this.view.backgroundPageShape.node.style.marginTop=G+"px")};var v=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(z,G,U,E,R,N){var c=v.apply(this,arguments);null==N||N||mxEvent.addListener(c,"mousedown",function(g){mxEvent.consume(g)});return c};var p=mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=
+this.useScrollbarsForPanning&&mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft=z+"px",this.view.backgroundPageShape.node.style.marginTop=G+"px")};var u=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(z,G,U,E,R,N){var c=u.apply(this,arguments);null==N||N||mxEvent.addListener(c,"mousedown",function(g){mxEvent.consume(g)});return c};var p=mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=
function(z,G,U){var E=this.graph.model.getParent(z);if(G){var R=this.graph.model.isEdge(z)?null:this.graph.getCellGeometry(z);R=!this.graph.model.isEdge(E)&&!this.graph.isSiblingSelected(z)&&(null!=R&&R.relative||!this.graph.isContainer(E)||this.graph.isPart(z))}else if(R=p.apply(this,arguments),this.graph.isTableCell(z)||this.graph.isTableRow(z))R=E,this.graph.isTable(R)||(R=this.graph.model.getParent(R)),R=!this.graph.selectionCellsHandler.isHandled(R)||this.graph.isCellSelected(R)&&this.graph.isToggleEvent(U.getEvent())||
-this.graph.isCellSelected(z)&&!this.graph.isToggleEvent(U.getEvent())||this.graph.isTableCell(z)&&this.graph.isCellSelected(E);return R};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(z){z=z.getCell();for(var G=this.graph.getModel(),U=G.getParent(z),E=this.graph.view.getState(U),R=this.graph.isCellSelected(z);null!=E&&(G.isVertex(U)||G.isEdge(U));){var N=this.graph.isCellSelected(U);R=R||N;if(N||!R&&(this.graph.isTableCell(z)||this.graph.isTableRow(z)))z=U;U=G.getParent(U)}return z}})();EditorUi=function(b,d,m){mxEventSource.call(this);this.destroyFunctions=[];this.editor=b||new Editor;this.container=d||document.body;var n=this,v=this.editor.graph;v.lightbox=m;var p=v.getGraphBounds;v.getGraphBounds=function(){var L=p.apply(this,arguments),T=this.backgroundImage;if(null!=T&&null!=T.width&&null!=T.height){var Y=this.view.translate,aa=this.view.scale;L=mxRectangle.fromRectangle(L);L.add(new mxRectangle((Y.x+T.x)*aa,(Y.y+T.y)*aa,T.width*aa,T.height*aa))}return L};v.useCssTransforms&&
-(this.lazyZoomDelay=0);this.selectionStateListener=mxUtils.bind(this,function(L,T){this.clearSelectionState()});v.getSelectionModel().addListener(mxEvent.CHANGE,this.selectionStateListener);v.getModel().addListener(mxEvent.CHANGE,this.selectionStateListener);v.addListener(mxEvent.EDITING_STARTED,this.selectionStateListener);v.addListener(mxEvent.EDITING_STOPPED,this.selectionStateListener);v.getView().addListener("unitChanged",this.selectionStateListener);if(this.editor.chromeless&&!this.editor.editable){v.isEnabled=
-function(){return!1};v.panningHandler.isForcePanningEvent=function(L){for(var T=L.getSource();null!=T&&T!=v.container;){if("foreignObject"===T.nodeName||"text"===T.nodeName)return!1;T=T.parentNode}return!mxEvent.isPopupTrigger(L.getEvent())};var z=v.panningHandler.start;v.panningHandler.start=function(){z.apply(this,arguments);mxUtils.clearSelection()}}this.actions=new Actions(this);this.menus=this.createMenus();if(!v.standalone){var G=!1,U=!1;this.setDefaultStyle=function(L){try{v.getModel().isEdge(L)?
-U=v.pasteEdgeStyle=!1:G=!1;var T=v.getCellStyle(L,!1),Y=[],aa=[],S;for(S in T)Y.push(T[S]),aa.push(S);v.getModel().isEdge(L)?v.currentEdgeStyle={}:v.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",aa,"values",Y,"cells",[L],"force",!0));v.getModel().isEdge(L)?U=v.pasteEdgeStyle=!0:G=!0}catch(Z){this.handleError(Z)}};this.clearDefaultStyle=function(){v.currentEdgeStyle=mxUtils.clone(v.defaultEdgeStyle);v.currentVertexStyle=mxUtils.clone(v.defaultVertexStyle);G=U=v.pasteEdgeStyle=
-!1;this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",[]))};v.addListener("cellsInserted",function(L,T){v.pasteCellStyles(v.includeDescendants(T.getProperty("cells")))});v.addListener("textInserted",function(L,T){v.pasteCellStyles(T.getProperty("cells"))});this.createDivs();this.createUi();this.refresh();var E=mxUtils.bind(this,function(L){null==L&&(L=window.event);return v.isEditing()||null!=L&&this.isSelectionAllowed(L)});this.container!=document.body||this.editor.chromeless&&
+this.graph.isCellSelected(z)&&!this.graph.isToggleEvent(U.getEvent())||this.graph.isTableCell(z)&&this.graph.isCellSelected(E);return R};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(z){z=z.getCell();for(var G=this.graph.getModel(),U=G.getParent(z),E=this.graph.view.getState(U),R=this.graph.isCellSelected(z);null!=E&&(G.isVertex(U)||G.isEdge(U));){var N=this.graph.isCellSelected(U);R=R||N;if(N||!R&&(this.graph.isTableCell(z)||this.graph.isTableRow(z)))z=U;U=G.getParent(U)}return z}})();EditorUi=function(b,d,m){mxEventSource.call(this);this.destroyFunctions=[];this.editor=b||new Editor;this.container=d||document.body;var n=this,u=this.editor.graph;u.lightbox=m;var p=u.getGraphBounds;u.getGraphBounds=function(){var L=p.apply(this,arguments),T=this.backgroundImage;if(null!=T&&null!=T.width&&null!=T.height){var Y=this.view.translate,aa=this.view.scale;L=mxRectangle.fromRectangle(L);L.add(new mxRectangle((Y.x+T.x)*aa,(Y.y+T.y)*aa,T.width*aa,T.height*aa))}return L};u.useCssTransforms&&
+(this.lazyZoomDelay=0);this.selectionStateListener=mxUtils.bind(this,function(L,T){this.clearSelectionState()});u.getSelectionModel().addListener(mxEvent.CHANGE,this.selectionStateListener);u.getModel().addListener(mxEvent.CHANGE,this.selectionStateListener);u.addListener(mxEvent.EDITING_STARTED,this.selectionStateListener);u.addListener(mxEvent.EDITING_STOPPED,this.selectionStateListener);u.getView().addListener("unitChanged",this.selectionStateListener);if(this.editor.chromeless&&!this.editor.editable){u.isEnabled=
+function(){return!1};u.panningHandler.isForcePanningEvent=function(L){for(var T=L.getSource();null!=T&&T!=u.container;){if("foreignObject"===T.nodeName||"text"===T.nodeName)return!1;T=T.parentNode}return!mxEvent.isPopupTrigger(L.getEvent())};var z=u.panningHandler.start;u.panningHandler.start=function(){z.apply(this,arguments);mxUtils.clearSelection()}}this.actions=new Actions(this);this.menus=this.createMenus();if(!u.standalone){var G=!1,U=!1;this.setDefaultStyle=function(L){try{u.getModel().isEdge(L)?
+U=u.pasteEdgeStyle=!1:G=!1;var T=u.getCellStyle(L,!1),Y=[],aa=[],S;for(S in T)Y.push(T[S]),aa.push(S);u.getModel().isEdge(L)?u.currentEdgeStyle={}:u.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",aa,"values",Y,"cells",[L],"force",!0));u.getModel().isEdge(L)?U=u.pasteEdgeStyle=!0:G=!0}catch(Z){this.handleError(Z)}};this.clearDefaultStyle=function(){u.currentEdgeStyle=mxUtils.clone(u.defaultEdgeStyle);u.currentVertexStyle=mxUtils.clone(u.defaultVertexStyle);G=U=u.pasteEdgeStyle=
+!1;this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",[]))};u.addListener("cellsInserted",function(L,T){u.pasteCellStyles(u.includeDescendants(T.getProperty("cells")))});u.addListener("textInserted",function(L,T){u.pasteCellStyles(T.getProperty("cells"))});this.createDivs();this.createUi();this.refresh();var E=mxUtils.bind(this,function(L){null==L&&(L=window.event);return u.isEditing()||null!=L&&this.isSelectionAllowed(L)});this.container!=document.body||this.editor.chromeless&&
!this.editor.editable||(this.menubarContainer.onselectstart=E,this.menubarContainer.onmousedown=E,this.toolbarContainer.onselectstart=E,this.toolbarContainer.onmousedown=E,this.diagramContainer.onselectstart=E,this.diagramContainer.onmousedown=E,this.sidebarContainer.onselectstart=E,this.sidebarContainer.onmousedown=E,this.formatContainer.onselectstart=E,this.formatContainer.onmousedown=E,null!=this.tabContainer&&(this.tabContainer.onselectstart=E),mxClient.IS_IOS&&(d=function(){var L=null;if(/iP(hone|od|ad)/.test(navigator.platform)){var T=
navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);try{L=[parseInt(T[1],10),parseInt(T[2],10),parseInt(T[3]||0,10)]}catch(Y){}}return L}(),null!=d&&16<=d[0]&&(mxUtils.setPrefixedStyle(this.menubarContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.diagramContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.sidebarContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.formatContainer.style,"userSelect","none"),null!=this.tabContainer&&mxUtils.setPrefixedStyle(this.tabContainer.style,
-"userSelect","none"))));!this.editor.chromeless||this.editor.editable?this.diagramContainer.oncontextmenu=function(L){if(null!=L){var T=mxEvent.getSource(L);if("A"==T.nodeName)for(;null!=T;){if("geHint"==T.className)return!0;T=T.parentNode}}return E(L)}:v.panningHandler.usePopupTrigger=!1;v.init(this.diagramContainer);mxClient.IS_SVG&&null!=v.view.getDrawPane()&&(d=v.view.getDrawPane().ownerSVGElement,null!=d&&(d.style.position="absolute"));this.hoverIcons=this.createHoverIcons();this.inlineToolbar=
-Editor.enableInlineToolbar?this.createInlineToolbar():null;this.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(L,T){null!=this.hoverIcons&&this.hoverIcons.reset();null!=this.inlineToolbar&&this.inlineToolbar.hide()}));this.editor.graph.addListener("zoomPreviewComplete",mxUtils.bind(this,function(L,T){null!=this.inlineToolbar&&this.inlineToolbar.updateSelection()}));if(null!=v.graphHandler){var R=v.graphHandler.start;v.graphHandler.start=function(L){null!=n.hoverIcons&&n.hoverIcons.reset();
-null!=n.inlineToolbar&&null!=L&&n.inlineToolbar.hide();R.apply(this,arguments)};var N=v.graphHandler.mouseUp;v.graphHandler.mouseUp=function(){N.apply(this,arguments);null!=n.inlineToolbar&&n.inlineToolbar.updateSelection()}}var c=mxVertexHandler.prototype.start;mxVertexHandler.prototype.start=function(){null!=n.inlineToolbar&&n.inlineToolbar.hide();c.apply(this,arguments)};var g=mxVertexHandler.prototype.mouseUp;mxVertexHandler.prototype.mouseUp=function(){g.apply(this,arguments);null!=n.inlineToolbar&&
+"userSelect","none"))));!this.editor.chromeless||this.editor.editable?this.diagramContainer.oncontextmenu=function(L){if(null!=L){var T=mxEvent.getSource(L);if("A"==T.nodeName)for(;null!=T;){if("geHint"==T.className)return!0;T=T.parentNode}}return E(L)}:u.panningHandler.usePopupTrigger=!1;u.init(this.diagramContainer);mxClient.IS_SVG&&null!=u.view.getDrawPane()&&(d=u.view.getDrawPane().ownerSVGElement,null!=d&&(d.style.position="absolute"));this.hoverIcons=this.createHoverIcons();this.inlineToolbar=
+Editor.enableInlineToolbar?this.createInlineToolbar():null;this.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(L,T){null!=this.hoverIcons&&this.hoverIcons.reset();null!=this.inlineToolbar&&this.inlineToolbar.hide()}));this.editor.graph.addListener("zoomPreviewComplete",mxUtils.bind(this,function(L,T){null!=this.inlineToolbar&&this.inlineToolbar.updateSelection()}));if(null!=u.graphHandler){var R=u.graphHandler.start;u.graphHandler.start=function(L){null!=n.hoverIcons&&n.hoverIcons.reset();
+null!=n.inlineToolbar&&null!=L&&n.inlineToolbar.hide();R.apply(this,arguments)};var N=u.graphHandler.mouseUp;u.graphHandler.mouseUp=function(){N.apply(this,arguments);null!=n.inlineToolbar&&n.inlineToolbar.updateSelection()}}var c=mxVertexHandler.prototype.start;mxVertexHandler.prototype.start=function(){null!=n.inlineToolbar&&n.inlineToolbar.hide();c.apply(this,arguments)};var g=mxVertexHandler.prototype.mouseUp;mxVertexHandler.prototype.mouseUp=function(){g.apply(this,arguments);null!=n.inlineToolbar&&
n.inlineToolbar.updateSelection()};var k=mxEdgeHandler.prototype.start;mxEdgeHandler.prototype.start=function(){null!=n.inlineToolbar&&n.inlineToolbar.hide();k.apply(this,arguments)};var q=mxEdgeHandler.prototype.mouseUp;mxEdgeHandler.prototype.mouseUp=function(){q.apply(this,arguments);null!=n.inlineToolbar&&n.inlineToolbar.updateSelection()};mxEvent.addListener(this.diagramContainer,"mousemove",mxUtils.bind(this,function(L){var T=mxUtils.getOffset(this.diagramContainer);0<mxEvent.getClientX(L)-
-T.x-this.diagramContainer.clientWidth||0<mxEvent.getClientY(L)-T.y-this.diagramContainer.clientHeight?this.diagramContainer.setAttribute("title",mxResources.get("panTooltip")):this.diagramContainer.removeAttribute("title")}));var A=this.hoverIcons.isResetEvent;this.hoverIcons.isResetEvent=function(L,T){return n.isSpaceDown()||A.apply(this,arguments)};this.keydownHandler=mxUtils.bind(this,function(L){if(Editor.passiveScroll){var T=mxEvent.getSource(L);if(T!=v.container&&!v.container.contains(T)&&!v.isEditing())return}16==
-L.which?this.shiftDown=!0:32!=L.which||v.isEditing()?mxEvent.isConsumed(L)||27!=L.keyCode||this.hideDialog(null,!0):(this.spaceDown=!0,this.hoverIcons.reset(),v.container.style.cursor="move",v.isEditing()||mxEvent.consume(L))});mxEvent.addListener(document,"keydown",this.keydownHandler);this.keyupHandler=mxUtils.bind(this,function(L){v.container.style.cursor="";this.shiftDown=this.spaceDown=!1});mxEvent.addListener(document,"keyup",this.keyupHandler);var D=v.panningHandler.isForcePanningEvent;v.panningHandler.isForcePanningEvent=
-function(L){return null!=v.freehand&&v.freehand.isActive()?!1:D.apply(this,arguments)||n.isSpaceDown()||mxEvent.isMouseEvent(L.getEvent())&&(this.usePopupTrigger||!mxEvent.isPopupTrigger(L.getEvent()))&&(!mxEvent.isControlDown(L.getEvent())&&mxEvent.isRightMouseButton(L.getEvent())||mxEvent.isMiddleMouseButton(L.getEvent()))};var H=v.cellEditor.isStopEditingEvent;v.cellEditor.isStopEditingEvent=function(L){return H.apply(this,arguments)||13==L.keyCode&&(!mxClient.IS_SF&&mxEvent.isControlDown(L)||
-mxClient.IS_MAC&&mxEvent.isMetaDown(L)||mxClient.IS_SF&&mxEvent.isShiftDown(L))};var K=v.isZoomWheelEvent;v.isZoomWheelEvent=function(){return n.isSpaceDown()||K.apply(this,arguments)};var P=mxUtils.bind(this,function(){if(null!=this.toolbar)for(var L=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,T=this.toolbar.container.firstChild;null!=T;){var Y=T.getAttribute("data-min-width");null!=Y&&parseInt(Y)>L?T.style.display="none":T.style.display="";T=T.nextSibling}}),
-W=!1,M=null,ca=null,fa=null,ha=mxUtils.bind(this,function(){if(null!=this.toolbar&&W!=v.cellEditor.isContentEditing()){for(var L=this.toolbar.container.firstChild,T=[];null!=L;){var Y=L.nextSibling;L.parentNode.removeChild(L);T.push(L);L=Y}L=this.toolbar.fontMenu;Y=this.toolbar.sizeMenu;if(null==fa)this.toolbar.createTextToolbar();else{for(var aa=0;aa<fa.length;aa++)this.toolbar.container.appendChild(fa[aa]);this.toolbar.fontMenu=M;this.toolbar.sizeMenu=ca}W=v.cellEditor.isContentEditing();M=L;ca=
-Y;fa=T;P()}});this.addListener("languageChanged",mxUtils.bind(this,function(){this.destroyWindows(!0);this.descriptorChanged();this.updateStatusAgain();ha()}));this.addListener("currentThemeChanged",P);mxEvent.addListener(window,"resize",P);P();v.isTouchPopupMenuEnabled=function(){return null==n.dialog};var ea=v.cellEditor.startEditing;v.cellEditor.startEditing=function(){ea.apply(this,arguments);ha();if(v.cellEditor.isContentEditing()){var L=!1,T=function(){L||(L=!0,window.setTimeout(function(){var Y=
-v.getSelectedEditingElement();null!=Y&&(Y=mxUtils.getCurrentStyle(Y),null!=Y&&null!=n.toolbar&&(n.toolbar.setFontName(mxUtils.getCssFontFamily(Y.fontFamily)),n.toolbar.setFontSize(parseInt(Y.fontSize))));L=!1},0))};mxEvent.addListener(v.cellEditor.textarea,"input",T);mxEvent.addListener(v.cellEditor.textarea,"touchend",T);mxEvent.addListener(v.cellEditor.textarea,"mouseup",T);mxEvent.addListener(v.cellEditor.textarea,"keyup",T);T()}};var ka=v.cellEditor.stopEditing;v.cellEditor.stopEditing=function(L,
-T){try{ka.apply(this,arguments),ha()}catch(Y){n.handleError(Y)}};v.container.setAttribute("tabindex","0");v.container.style.cursor="default";if(window.self===window.top&&null!=v.container.parentNode)try{v.container.focus()}catch(L){}var pa=v.fireMouseEvent;v.fireMouseEvent=function(L,T,Y){try{L==mxEvent.MOUSE_DOWN&&this.container.focus(),pa.apply(this,arguments)}catch(aa){n.handleError(aa)}};var ba=v.foldCells;v.foldCells=function(L,T,Y,aa,S){try{ba.apply(this,arguments)}catch(Z){n.handleError(Z)}};
-v.popupMenuHandler.autoExpand=!0;null!=this.menus&&(v.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(L,T,Y){this.menus.createPopupMenu(L,T,Y)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(L){v.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(b);this.getKeyHandler=function(){return keyHandler};v.connectionHandler.addListener(mxEvent.CONNECT,function(L,T){var Y=[T.getProperty("cell")];T.getProperty("terminalInserted")&&(Y.push(T.getProperty("terminal")),
-window.setTimeout(function(){null!=n.hoverIcons&&n.hoverIcons.update(v.view.getState(Y[Y.length-1]))},0));v.pasteCellStyles(Y)});var l=null,x=null;b=mxUtils.bind(this,function(){if(null!=this.toolbar){var L=this.getSelectionState();if(v.isEnabled()&&0<L.edges.length){if(null!=this.toolbar.edgeStyleMenu){var T=this.getImageForEdgeStyle(L.style);1==L.edges.length&&"arrow"==L.style[mxConstants.STYLE_SHAPE]&&(T=Format.straightImage.src);this.toolbar.edgeStyleMenu.style.backgroundImage="url("+T+")"}null!=
-this.toolbar.edgeShapeMenu&&(this.toolbar.edgeShapeMenu.style.backgroundImage="url("+this.getImageForEdgeShape(L.style)+")")}else null!=this.toolbar.edgeStyleMenu&&(this.toolbar.edgeStyleMenu.style.backgroundImage="url("+l+")"),null!=this.toolbar.edgeShapeMenu&&(this.toolbar.edgeShapeMenu.style.backgroundImage="url("+x+")")}});v.selectionModel.addListener(mxEvent.CHANGE,b);v.getModel().addListener(mxEvent.CHANGE,b);this.addListener("styleChanged",mxUtils.bind(this,function(L,T){L=T.getProperty("force");
-(this.updateDefaultStyle||L)&&v.copyCellStyles(T.getProperty("cells"),T.getProperty("keys"),T.getProperty("values"),v.currentVertexStyle,v.currentEdgeStyle,G,U);null!=this.toolbar&&(this.toolbar.setFontName(v.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(v.currentVertexStyle.fontSize||Menus.prototype.defaultFontSize),T=this.getSelectionState(),null!=this.toolbar.edgeStyleMenu&&(l=this.getImageForEdgeStyle(v.currentEdgeStyle),0==T.edges.length&&(this.toolbar.edgeStyleMenu.style.backgroundImage=
-"url("+l+")")),null!=this.toolbar.edgeShapeMenu&&(x=this.getImageForEdgeShape(v.currentEdgeStyle),0==T.edges.length&&(this.toolbar.edgeShapeMenu.style.backgroundImage="url("+x+")")))}));null!=this.toolbar&&(b=mxUtils.bind(this,function(){var L=v.currentVertexStyle.fontFamily||"Helvetica",T=String(v.currentVertexStyle.fontSize||"12"),Y=v.getView().getState(v.getSelectionCell());null!=Y&&(L=Y.style[mxConstants.STYLE_FONTFAMILY]||L,T=Y.style[mxConstants.STYLE_FONTSIZE]||T,10<L.length&&(L=L.substring(0,
-8)+"..."));this.toolbar.setFontName(L);this.toolbar.setFontSize(T)}),v.getSelectionModel().addListener(mxEvent.CHANGE,b),v.getModel().addListener(mxEvent.CHANGE,b));v.addListener(mxEvent.CELLS_ADDED,function(L,T){L=T.getProperty("cells");T=T.getProperty("parent");null!=T&&v.getModel().isLayer(T)&&!v.isCellVisible(T)&&null!=L&&0<L.length&&v.getModel().setVisible(T,!0)});Graph.selectParentLayer&&v.selectionModel.addListener(mxEvent.CHANGE,function(){if(v.isEnabled()&&!v.isSelectionEmpty()){var L=v.getLayerForCells(v.getSelectionCells());
-null!=L&&v.setDefaultParent(L)}});this.gestureHandler=mxUtils.bind(this,function(L){this.isHideCurrentMenuEvent(L)&&this.hideCurrentMenu()});mxEvent.addGestureListeners(document,this.gestureHandler);var J=null;this.resizeHandler=mxUtils.bind(this,function(){null!=J&&window.clearTimeout(J);J=window.setTimeout(mxUtils.bind(this,function(){J=null;this.windowResized()}),100)});mxEvent.addListener(window,"resize",this.resizeHandler);this.orientationChangeHandler=mxUtils.bind(this,function(){this.refresh()});
-mxEvent.addListener(window,"orientationchange",this.orientationChangeHandler);mxClient.IS_IOS&&!window.navigator.standalone&&"undefined"!==typeof Menus&&(this.scrollHandler=mxUtils.bind(this,function(){window.scrollTo(0,0)}),mxEvent.addListener(window,"scroll",this.scrollHandler));this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.resetScrollbars()}));this.addListener("gridEnabledChanged",mxUtils.bind(this,function(){v.view.validateBackground()}));this.addListener("backgroundColorChanged",
-mxUtils.bind(this,function(){v.view.validateBackground()}));v.addListener("gridSizeChanged",mxUtils.bind(this,function(){v.isGridEnabled()&&v.view.validateBackground()}));this.editor.resetGraph()}this.init();v.standalone||this.open()};EditorUi.compactUi=!0;
-EditorUi.parsePng=function(b,d,m){function n(G,U){var E=p;p+=U;return G.substring(E,p)}function v(G){G=n(G,4);return G.charCodeAt(3)+(G.charCodeAt(2)<<8)+(G.charCodeAt(1)<<16)+(G.charCodeAt(0)<<24)}var p=0;if(n(b,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=m&&m();else if(n(b,4),"IHDR"!=n(b,4))null!=m&&m();else{n(b,17);do{m=v(b);var z=n(b,4);if(null!=d&&d(p-8,z,m))break;value=n(b,m);n(b,4);if("IEND"==z)break}while(m)}};mxUtils.extend(EditorUi,mxEventSource);
-EditorUi.prototype.splitSize=mxClient.IS_TOUCH||mxClient.IS_POINTER?12:8;EditorUi.prototype.formatEnabled=!0;EditorUi.prototype.formatWidth=240;EditorUi.prototype.defaultSidebarWidth=Math.min(screen.width/2,"large"!=urlParams["sidebar-entries"]?220:230);EditorUi.prototype.hsplitPosition=screen.width<=Editor.smallScreenWidth?0:EditorUi.prototype.defaultSidebarWidth;EditorUi.prototype.allowAnimation=!0;EditorUi.prototype.lightboxMaxFitScale=2;EditorUi.prototype.lightboxVerticalDivider=4;
+T.x-this.diagramContainer.clientWidth||0<mxEvent.getClientY(L)-T.y-this.diagramContainer.clientHeight?this.diagramContainer.setAttribute("title",mxResources.get("panTooltip")):this.diagramContainer.removeAttribute("title")}));var A=this.hoverIcons.isResetEvent;this.hoverIcons.isResetEvent=function(L,T){return n.isSpaceDown()||A.apply(this,arguments)};this.keydownHandler=mxUtils.bind(this,function(L){if(Editor.passiveScroll){var T=mxEvent.getSource(L);if(T!=u.container&&!u.container.contains(T)&&!u.isEditing())return}16==
+L.which?this.shiftDown=!0:32!=L.which||u.isEditing()?mxEvent.isConsumed(L)||27!=L.keyCode||this.hideDialog(null,!0):(T=mxEvent.getSource(L),"INPUT"==T.nodeName||"TEXTAREA"==T.nodeName||"SELECT"==T.nodeName||T.isContentEditable||(this.spaceDown=!0,this.hoverIcons.reset(),u.container.style.cursor="move",mxEvent.consume(L)))});mxEvent.addListener(document,"keydown",this.keydownHandler);this.keyupHandler=mxUtils.bind(this,function(L){u.container.style.cursor="";this.shiftDown=this.spaceDown=!1});mxEvent.addListener(document,
+"keyup",this.keyupHandler);var D=u.panningHandler.isForcePanningEvent;u.panningHandler.isForcePanningEvent=function(L){return null!=u.freehand&&u.freehand.isActive()?!1:D.apply(this,arguments)||n.isSpaceDown()||mxEvent.isMouseEvent(L.getEvent())&&(this.usePopupTrigger||!mxEvent.isPopupTrigger(L.getEvent()))&&(!mxEvent.isControlDown(L.getEvent())&&mxEvent.isRightMouseButton(L.getEvent())||mxEvent.isMiddleMouseButton(L.getEvent()))};var H=u.cellEditor.isStopEditingEvent;u.cellEditor.isStopEditingEvent=
+function(L){return H.apply(this,arguments)||13==L.keyCode&&(!mxClient.IS_SF&&mxEvent.isControlDown(L)||mxClient.IS_MAC&&mxEvent.isMetaDown(L)||mxClient.IS_SF&&mxEvent.isShiftDown(L))};var K=u.isZoomWheelEvent;u.isZoomWheelEvent=function(){return n.isSpaceDown()||K.apply(this,arguments)};var P=mxUtils.bind(this,function(){if(null!=this.toolbar)for(var L=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,T=this.toolbar.container.firstChild;null!=T;){var Y=T.getAttribute("data-min-width");
+null!=Y&&parseInt(Y)>L?T.style.display="none":T.style.display="";T=T.nextSibling}}),W=!1,M=null,ca=null,fa=null,ha=mxUtils.bind(this,function(){if(null!=this.toolbar&&W!=u.cellEditor.isContentEditing()){for(var L=this.toolbar.container.firstChild,T=[];null!=L;){var Y=L.nextSibling;L.parentNode.removeChild(L);T.push(L);L=Y}L=this.toolbar.fontMenu;Y=this.toolbar.sizeMenu;if(null==fa)this.toolbar.createTextToolbar();else{for(var aa=0;aa<fa.length;aa++)this.toolbar.container.appendChild(fa[aa]);this.toolbar.fontMenu=
+M;this.toolbar.sizeMenu=ca}W=u.cellEditor.isContentEditing();M=L;ca=Y;fa=T;P()}});this.addListener("languageChanged",mxUtils.bind(this,function(){this.destroyWindows(!0);this.descriptorChanged();this.updateStatusAgain();ha()}));this.addListener("currentThemeChanged",P);mxEvent.addListener(window,"resize",P);P();u.isTouchPopupMenuEnabled=function(){return null==n.dialog};var ea=u.cellEditor.startEditing;u.cellEditor.startEditing=function(){ea.apply(this,arguments);ha();if(u.cellEditor.isContentEditing()){var L=
+!1,T=function(){L||(L=!0,window.setTimeout(function(){var Y=u.getSelectedEditingElement();null!=Y&&(Y=mxUtils.getCurrentStyle(Y),null!=Y&&null!=n.toolbar&&(n.toolbar.setFontName(mxUtils.getCssFontFamily(Y.fontFamily)),n.toolbar.setFontSize(parseInt(Y.fontSize))));L=!1},0))};mxEvent.addListener(u.cellEditor.textarea,"input",T);mxEvent.addListener(u.cellEditor.textarea,"touchend",T);mxEvent.addListener(u.cellEditor.textarea,"mouseup",T);mxEvent.addListener(u.cellEditor.textarea,"keyup",T);T()}};var ka=
+u.cellEditor.stopEditing;u.cellEditor.stopEditing=function(L,T){try{ka.apply(this,arguments),ha()}catch(Y){n.handleError(Y)}};u.container.setAttribute("tabindex","0");u.container.style.cursor="default";if(window.self===window.top&&null!=u.container.parentNode)try{u.container.focus()}catch(L){}var pa=u.fireMouseEvent;u.fireMouseEvent=function(L,T,Y){try{L==mxEvent.MOUSE_DOWN&&this.container.focus(),pa.apply(this,arguments)}catch(aa){n.handleError(aa)}};var ba=u.foldCells;u.foldCells=function(L,T,Y,
+aa,S){try{ba.apply(this,arguments)}catch(Z){n.handleError(Z)}};u.popupMenuHandler.autoExpand=!0;null!=this.menus&&(u.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(L,T,Y){this.menus.createPopupMenu(L,T,Y)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(L){u.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(b);this.getKeyHandler=function(){return keyHandler};u.connectionHandler.addListener(mxEvent.CONNECT,function(L,T){var Y=[T.getProperty("cell")];
+T.getProperty("terminalInserted")&&(Y.push(T.getProperty("terminal")),window.setTimeout(function(){null!=n.hoverIcons&&n.hoverIcons.update(u.view.getState(Y[Y.length-1]))},0));u.pasteCellStyles(Y)});var l=null,x=null;b=mxUtils.bind(this,function(){if(null!=this.toolbar){var L=this.getSelectionState();if(u.isEnabled()&&0<L.edges.length){if(null!=this.toolbar.edgeStyleMenu){var T=this.getImageForEdgeStyle(L.style);1==L.edges.length&&"arrow"==L.style[mxConstants.STYLE_SHAPE]&&(T=Format.straightImage.src);
+this.toolbar.edgeStyleMenu.style.backgroundImage="url("+T+")"}null!=this.toolbar.edgeShapeMenu&&(this.toolbar.edgeShapeMenu.style.backgroundImage="url("+this.getImageForEdgeShape(L.style)+")")}else null!=this.toolbar.edgeStyleMenu&&(this.toolbar.edgeStyleMenu.style.backgroundImage="url("+l+")"),null!=this.toolbar.edgeShapeMenu&&(this.toolbar.edgeShapeMenu.style.backgroundImage="url("+x+")")}});u.selectionModel.addListener(mxEvent.CHANGE,b);u.getModel().addListener(mxEvent.CHANGE,b);this.addListener("styleChanged",
+mxUtils.bind(this,function(L,T){L=T.getProperty("force");(this.updateDefaultStyle||L)&&u.copyCellStyles(T.getProperty("cells"),T.getProperty("keys"),T.getProperty("values"),u.currentVertexStyle,u.currentEdgeStyle,G,U);null!=this.toolbar&&(this.toolbar.setFontName(u.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(u.currentVertexStyle.fontSize||Menus.prototype.defaultFontSize),T=this.getSelectionState(),null!=this.toolbar.edgeStyleMenu&&(l=this.getImageForEdgeStyle(u.currentEdgeStyle),
+0==T.edges.length&&(this.toolbar.edgeStyleMenu.style.backgroundImage="url("+l+")")),null!=this.toolbar.edgeShapeMenu&&(x=this.getImageForEdgeShape(u.currentEdgeStyle),0==T.edges.length&&(this.toolbar.edgeShapeMenu.style.backgroundImage="url("+x+")")))}));null!=this.toolbar&&(b=mxUtils.bind(this,function(){var L=u.currentVertexStyle.fontFamily||"Helvetica",T=String(u.currentVertexStyle.fontSize||"12"),Y=u.getView().getState(u.getSelectionCell());null!=Y&&(L=Y.style[mxConstants.STYLE_FONTFAMILY]||L,
+T=Y.style[mxConstants.STYLE_FONTSIZE]||T,10<L.length&&(L=L.substring(0,8)+"..."));this.toolbar.setFontName(L);this.toolbar.setFontSize(T)}),u.getSelectionModel().addListener(mxEvent.CHANGE,b),u.getModel().addListener(mxEvent.CHANGE,b));u.addListener(mxEvent.CELLS_ADDED,function(L,T){L=T.getProperty("cells");T=T.getProperty("parent");null!=T&&u.getModel().isLayer(T)&&!u.isCellVisible(T)&&null!=L&&0<L.length&&u.getModel().setVisible(T,!0)});Graph.selectParentLayer&&u.selectionModel.addListener(mxEvent.CHANGE,
+function(){if(u.isEnabled()&&!u.isSelectionEmpty()){var L=u.getLayerForCells(u.getSelectionCells());null!=L&&u.setDefaultParent(L)}});this.gestureHandler=mxUtils.bind(this,function(L){this.isHideCurrentMenuEvent(L)&&this.hideCurrentMenu()});mxEvent.addGestureListeners(document,this.gestureHandler);var J=null;this.resizeHandler=mxUtils.bind(this,function(){null!=J&&window.clearTimeout(J);J=window.setTimeout(mxUtils.bind(this,function(){J=null;this.windowResized()}),100)});mxEvent.addListener(window,
+"resize",this.resizeHandler);this.orientationChangeHandler=mxUtils.bind(this,function(){this.refresh()});mxEvent.addListener(window,"orientationchange",this.orientationChangeHandler);mxClient.IS_IOS&&!window.navigator.standalone&&"undefined"!==typeof Menus&&(this.scrollHandler=mxUtils.bind(this,function(){window.scrollTo(0,0)}),mxEvent.addListener(window,"scroll",this.scrollHandler));this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.resetScrollbars()}));this.addListener("gridEnabledChanged",
+mxUtils.bind(this,function(){u.view.validateBackground()}));this.addListener("backgroundColorChanged",mxUtils.bind(this,function(){u.view.validateBackground()}));u.addListener("gridSizeChanged",mxUtils.bind(this,function(){u.isGridEnabled()&&u.view.validateBackground()}));this.editor.resetGraph()}this.init();u.standalone||this.open()};EditorUi.compactUi=!0;
+EditorUi.parsePng=function(b,d,m){function n(G,U){var E=p;p+=U;return G.substring(E,p)}function u(G){G=n(G,4);return G.charCodeAt(3)+(G.charCodeAt(2)<<8)+(G.charCodeAt(1)<<16)+(G.charCodeAt(0)<<24)}var p=0;if(n(b,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=m&&m();else if(n(b,4),"IHDR"!=n(b,4))null!=m&&m();else{n(b,17);do{m=u(b);var z=n(b,4);if(null!=d&&d(p-8,z,m))break;value=n(b,m);n(b,4);if("IEND"==z)break}while(m)}};mxUtils.extend(EditorUi,mxEventSource);
+EditorUi.prototype.splitSize=mxClient.IS_TOUCH||mxClient.IS_POINTER?12:8;EditorUi.prototype.formatEnabled=!0;EditorUi.prototype.formatWidth=240;EditorUi.prototype.defaultSidebarWidth=Math.min(screen.width/2,"large"!=urlParams["sidebar-entries"]?232:242);EditorUi.prototype.hsplitPosition=screen.width<=Editor.smallScreenWidth?0:EditorUi.prototype.defaultSidebarWidth;EditorUi.prototype.allowAnimation=!0;EditorUi.prototype.lightboxMaxFitScale=2;EditorUi.prototype.lightboxVerticalDivider=4;
EditorUi.prototype.hsplitClickEnabled=!1;EditorUi.prototype.updateDefaultStyle=!1;EditorUi.prototype.spaceDown=!1;EditorUi.prototype.shiftDown=!1;
EditorUi.prototype.init=function(){var b=this.editor.graph;if(!b.standalone){"0"!=urlParams["shape-picker"]&&this.installShapePicker();mxEvent.addListener(b.container,"scroll",mxUtils.bind(this,function(){b.tooltipHandler.hide();null!=b.connectionHandler&&null!=b.connectionHandler.constraintHandler&&b.connectionHandler.constraintHandler.reset()}));b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){b.tooltipHandler.hide();var n=b.getRubberband();null!=n&&n.cancel()}));mxEvent.addListener(b.container,
"keydown",mxUtils.bind(this,function(n){this.onKeyDown(n);this.onKeyPress(n)}));this.installTypingShim();this.addUndoListener();this.addBeforeUnloadListener();b.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.updateActionStates()}));b.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.updateActionStates()}));var d=b.setDefaultParent,m=this;this.editor.graph.setDefaultParent=function(){d.apply(this,arguments);m.updateActionStates()};b.showLinkDialog=
mxUtils.bind(m,m.showLinkDialog);b.editLink=m.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,d=b.getSelectionCells(),m=this.initSelectionState(),n=!0,v=0;v<d.length;v++){var p=b.getCurrentCellStyle(d[v]);"0"!=mxUtils.getValue(p,mxConstants.STYLE_EDITABLE,"1")&&(this.updateSelectionStateForCell(m,d[v],d,n),n=!1)}this.updateSelectionStateForTableCells(m);if(Editor.enableCustomProperties){m.customProperties={};b=m.vertices;d=m.edges;for(v=0;v<b.length;v++)this.findCommonProperties(b[v],m.customProperties,0==v,m);
-for(v=0;v<d.length;v++)this.findCommonProperties(d[v],m.customProperties,0==b.length&&0==v,m)}return m};
-EditorUi.prototype.findCommonProperties=function(b,d,m,n){n=mxUtils.bind(this,function(E){if(null!=E)if(m)for(var R=0;R<E.length;R++)d[E[R].name]=E[R];else for(var N in d)if(null!=N){var c=!1;for(R=0;R<E.length;R++)if(E[R].name==N&&E[R].type==d[N].type){c=!0;break}c||delete d[N]}});var v=this.editor.graph,p=v.view.getState(b);if(null!=p&&null!=p.shape){if(!p.shape.commonCustomPropAdded){p.shape.commonCustomPropAdded=!0;p.shape.customProperties=p.shape.customProperties||[];if(null!=p.shape&&null!=
-p.shape.stencil&&null!=p.shape.stencil.desc){var z=p.shape.stencil,G=[],U=mxUtils.bind(this,function(E){E=z.desc.getElementsByTagName(E);for(var R=[],N=0;N<E.length;N++){var c=E[N].getAttribute("color");if(!mxUtils.isValidColor(c)&&!G[c]&&"fill"!=c&&"stroke"!=c&&"font"!=c){G[c]=!0;var g=E[N].getAttribute("name");g=null!=g?g:Editor.getLabelForStylename(c);var k=E[N].getAttribute("default"),q=z.getDefaultColorValue(E[N],v),A=k;k==mxConstants.NONE&&(k="default");R.push({name:c,type:"color",primary:"false"!=
+EditorUi.prototype.createSelectionState=function(){for(var b=this.editor.graph,d=b.getSelectionCells(),m=this.initSelectionState(),n=!0,u=0;u<d.length;u++){var p=b.getCurrentCellStyle(d[u]);"0"!=mxUtils.getValue(p,mxConstants.STYLE_EDITABLE,"1")&&(this.updateSelectionStateForCell(m,d[u],d,n),n=!1)}this.updateSelectionStateForTableCells(m);if(Editor.enableCustomProperties){m.customProperties={};b=m.vertices;d=m.edges;for(u=0;u<b.length;u++)this.findCommonProperties(b[u],m.customProperties,0==u,m);
+for(u=0;u<d.length;u++)this.findCommonProperties(d[u],m.customProperties,0==b.length&&0==u,m)}return m};
+EditorUi.prototype.findCommonProperties=function(b,d,m,n){n=mxUtils.bind(this,function(E){if(null!=E)if(m)for(var R=0;R<E.length;R++)d[E[R].name]=E[R];else for(var N in d)if(null!=N){var c=!1;for(R=0;R<E.length;R++)if(E[R].name==N&&E[R].type==d[N].type){c=!0;break}c||delete d[N]}});var u=this.editor.graph,p=u.view.getState(b);if(null!=p&&null!=p.shape){if(!p.shape.commonCustomPropAdded){p.shape.commonCustomPropAdded=!0;p.shape.customProperties=p.shape.customProperties||[];if(null!=p.shape&&null!=
+p.shape.stencil&&null!=p.shape.stencil.desc){var z=p.shape.stencil,G=[],U=mxUtils.bind(this,function(E){E=z.desc.getElementsByTagName(E);for(var R=[],N=0;N<E.length;N++){var c=E[N].getAttribute("color");if(!mxUtils.isValidColor(c)&&!G[c]&&"fill"!=c&&"stroke"!=c&&"font"!=c){G[c]=!0;var g=E[N].getAttribute("name");g=null!=g?g:Editor.getLabelForStylename(c);var k=E[N].getAttribute("default"),q=z.getDefaultColorValue(E[N],u),A=k;k==mxConstants.NONE&&(k="default");R.push({name:c,type:"color",primary:"false"!=
E[N].getAttribute("primary"),defVal:k,defaultColor:q,undefinedColor:A,dispName:g})}}return R});Array.prototype.push.apply(p.shape.customProperties,U("fillcolor"));Array.prototype.push.apply(p.shape.customProperties,U("strokecolor"));Array.prototype.push.apply(p.shape.customProperties,U("fontcolor"))}p.cell.vertex?Array.prototype.push.apply(p.shape.customProperties,Editor.commonVertexProperties):Array.prototype.push.apply(p.shape.customProperties,Editor.commonEdgeProperties)}n(p.shape.customProperties)}b=
b.getAttribute("customProperties");if(null!=b)try{n(JSON.parse(b))}catch(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,html:!0,rounded:!0,autoSize:!1,image:!1,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){var d=mxUtils.sortCells(b.cells),m=this.editor.graph.model,n=m.getParent(d[0]),v=m.getParent(n);if(null!=n&&null!=v){for(var p=n.getIndex(d[0]),z=v.getIndex(n),G=null,U=1,E=1,R=0,N=z<v.getChildCount()-1?m.getChildAt(m.getChildAt(v,z+1),p):null;R<d.length-1;){var c=d[++R];null==N||N!=c||null!=G&&U!=G||(G=U,U=0,E++,n=m.getParent(N),N=z+E<v.getChildCount()?m.getChildAt(m.getChildAt(v,z+E),p):null);var g=this.editor.graph.view.getState(c);
+EditorUi.prototype.updateSelectionStateForTableCells=function(b){if(1<b.cells.length&&b.cell){var d=mxUtils.sortCells(b.cells),m=this.editor.graph.model,n=m.getParent(d[0]),u=m.getParent(n);if(null!=n&&null!=u){for(var p=n.getIndex(d[0]),z=u.getIndex(n),G=null,U=1,E=1,R=0,N=z<u.getChildCount()-1?m.getChildAt(m.getChildAt(u,z+1),p):null;R<d.length-1;){var c=d[++R];null==N||N!=c||null!=G&&U!=G||(G=U,U=0,E++,n=m.getParent(N),N=z+E<u.getChildCount()?m.getChildAt(m.getChildAt(u,z+E),p):null);var g=this.editor.graph.view.getState(c);
if(c==m.getChildAt(n,p+U)&&null!=g&&1==mxUtils.getValue(g.style,"colspan",1)&&1==mxUtils.getValue(g.style,"rowspan",1))U++;else break}R==E*U-1&&(b.mergeCell=d[0],b.colspan=U,b.rowspan=E)}}};EditorUi.prototype.windowResized=function(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.editor.graph.sizeDidChange()}),0)};
-EditorUi.prototype.createTimeout=function(b,d,m){var n=!0,v=null,p=mxUtils.bind(this,function(G){v.clear()&&(n=!1,G=null!=G?G:{code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.createTimeout(b,d,m)})},null!=m?m(G):this.handleError(G))}),z=window.setTimeout(p,null!=b?b:this.timeout);v={clear:function(){window.clearTimeout(z);return n},isAlive:function(){return n}};null!=d&&this.tryAndHandle(mxUtils.bind(this,function(){d(v)}),p);return v};
+EditorUi.prototype.createTimeout=function(b,d,m){var n=!0,u=null,p=mxUtils.bind(this,function(G){u.clear()&&(n=!1,G=null!=G?G:{code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.createTimeout(b,d,m)})},null!=m?m(G):this.handleError(G))}),z=window.setTimeout(p,null!=b?b:this.timeout);u={clear:function(){window.clearTimeout(z);return n},isAlive:function(){return n}};null!=d&&this.tryAndHandle(mxUtils.bind(this,function(){d(u)}),p);return u};
EditorUi.prototype.tryAndHandle=function(b,d){try{b()}catch(m){null!=d?d(m):this.handleError(m)}};
-EditorUi.prototype.removeUserDefinedDarkColors=function(b,d,m){var n=this.editor.graph;b=null!=b?b:n.getSelectionCells();var v=Graph.colorStyles,p=document.createElement("div");n.model.beginUpdate();try{for(var z=0;z<b.length;z++)if(n.model.isEdge(b[z])||n.model.isVertex(b[z])){var G=n.getCellStyle(b[z],!1);if(null!=G)for(var U=0;U<v.length;U++)try{var E=G[v[U]];if(mxUtils.isLightDarkColor(E)){var R=mxUtils.getLightDarkColor(E);n.setCellStyles(v[U],R.light,[b[z]])}}catch(c){}d&&n.isHtmlLabel(b[z])&&
+EditorUi.prototype.removeUserDefinedDarkColors=function(b,d,m){var n=this.editor.graph;b=null!=b?b:n.getSelectionCells();var u=Graph.colorStyles,p=document.createElement("div");n.model.beginUpdate();try{for(var z=0;z<b.length;z++)if(n.model.isEdge(b[z])||n.model.isVertex(b[z])){var G=n.getCellStyle(b[z],!1);if(null!=G)for(var U=0;U<u.length;U++)try{var E=G[u[U]];if(mxUtils.isLightDarkColor(E)){var R=mxUtils.getLightDarkColor(E);n.setCellStyles(u[U],R.light,[b[z]])}}catch(c){}d&&n.isHtmlLabel(b[z])&&
"0"!=mxUtils.getValue(G,"html","0")&&(p.innerHTML=Graph.sanitizeHtml(n.getLabel(b[z])),Graph.addLightDarkColors(p,null,null,function(c,g,k){return mxUtils.isLightDarkColor(k)?(k=mxUtils.getLightDarkColor(k),c.style.setProperty(g,k.light),!0):!1})&&n.cellLabelChanged(b[z],p.innerHTML))}if(m&&mxUtils.isLightDarkColor(n.background)){R=mxUtils.getLightDarkColor(n.background);var N=new ChangePageSetup(this,R.light);N.ignoreImage=!0;n.model.execute(N)}}finally{n.model.endUpdate()}return b};
EditorUi.prototype.updateSelectionStateForCell=function(b,d,m,n){m=this.editor.graph;b.cells.push(d);if(m.getModel().isVertex(d)){b.connections=0<m.model.getEdgeCount(d);b.unlocked=b.unlocked&&!m.isCellLocked(d);b.resizable=b.resizable&&m.isCellResizable(d);b.rotatable=b.rotatable&&m.isCellRotatable(d);b.movable=b.movable&&m.isCellMovable(d)&&!m.isTableRow(d)&&!m.isTableCell(d);b.swimlane=b.swimlane||m.isSwimlane(d);b.table=b.table||m.isTable(d);b.cell=b.cell||m.isTableCell(d);b.row=b.row||m.isTableRow(d);
-b.vertices.push(d);var v=m.getCellGeometry(d);if(null!=v&&(0<v.width?null==b.width?b.width=v.width:b.width!=v.width&&(b.width=""):b.containsLabel=!0,0<v.height?null==b.height?b.height=v.height:b.height!=v.height&&(b.height=""):b.containsLabel=!0,!v.relative||null!=v.offset)){var p=v.relative?v.offset.x:v.x;v=v.relative?v.offset.y:v.y;null==b.x?b.x=p:b.x!=p&&(b.x="");null==b.y?b.y=v:b.y!=v&&(b.y="")}}else m.getModel().isEdge(d)&&(b.edges.push(d),b.connections=!0,b.resizable=!1,b.rotatable=!1,b.movable=
+b.vertices.push(d);var u=m.getCellGeometry(d);if(null!=u&&(0<u.width?null==b.width?b.width=u.width:b.width!=u.width&&(b.width=""):b.containsLabel=!0,0<u.height?null==b.height?b.height=u.height:b.height!=u.height&&(b.height=""):b.containsLabel=!0,!u.relative||null!=u.offset)){var p=u.relative?u.offset.x:u.x;u=u.relative?u.offset.y:u.y;null==b.x?b.x=p:b.x!=p&&(b.x="");null==b.y?b.y=u:b.y!=u&&(b.y="")}}else m.getModel().isEdge(d)&&(b.edges.push(d),b.connections=!0,b.resizable=!1,b.rotatable=!1,b.movable=
!1);p=m.view.getState(d);null!=p&&(b.html=b.html&&m.isHtmlLabel(d),b.autoSize=b.autoSize||m.isAutoSizeState(p),b.glass=b.glass&&m.isGlassState(p),b.rounded=b.rounded&&m.isRoundedState(p),b.lineJumps=b.lineJumps&&m.isLineJumpState(p),b.image=b.image||m.isImageState(p),b.shadow=b.shadow&&m.isShadowState(p),b.fill=b.fill&&m.isFillState(p),b.gradient=b.fill&&m.isGradientState(p),b.stroke=b.stroke&&m.isStrokeState(p),d=mxUtils.getValue(p.style,mxConstants.STYLE_SHAPE,null),b.containsImage=b.containsImage||
"image"==d,m.mergeStyle(p.style,b.style,n))};
EditorUi.prototype.installShapePicker=function(){var b=this.editor.graph,d=this;b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(E,R){"mouseDown"==R.getProperty("eventName")&&d.hideShapePicker()}));var m=mxUtils.bind(this,function(){d.hideShapePicker(!0)});b.addListener("wheel",m);b.addListener(mxEvent.ESCAPE,m);b.view.addListener(mxEvent.SCALE,m);b.view.addListener(mxEvent.SCALE_AND_TRANSLATE,m);b.getSelectionModel().addListener(mxEvent.CHANGE,m);var n=b.popupMenuHandler.isMenuShowing;
-b.popupMenuHandler.isMenuShowing=function(){return n.apply(this,arguments)||null!=d.shapePicker||null!=d.currentMenu};var v=b.dblClick;b.dblClick=function(E,R){if(this.isEnabled())if(null!=R||null==d.sidebar||mxEvent.isShiftDown(E)||b.isCellLocked(b.getDefaultParent()))v.apply(this,arguments);else{var N=mxUtils.convertPoint(this.container,mxEvent.getClientX(E),mxEvent.getClientY(E));mxEvent.consume(E);window.setTimeout(mxUtils.bind(this,function(){d.showShapePicker(N.x,N.y)}),30)}};if(null!=this.hoverIcons){this.hoverIcons.addListener("reset",
+b.popupMenuHandler.isMenuShowing=function(){return n.apply(this,arguments)||null!=d.shapePicker||null!=d.currentMenu};var u=b.dblClick;b.dblClick=function(E,R){if(this.isEnabled())if(null!=R||null==d.sidebar||mxEvent.isShiftDown(E)||b.isCellLocked(b.getDefaultParent()))u.apply(this,arguments);else{var N=mxUtils.convertPoint(this.container,mxEvent.getClientX(E),mxEvent.getClientY(E));mxEvent.consume(E);window.setTimeout(mxUtils.bind(this,function(){d.showShapePicker(N.x,N.y)}),30)}};if(null!=this.hoverIcons){this.hoverIcons.addListener("reset",
mxUtils.bind(this,function(){null!=this.hoverIcons.shapePickerHoverDiv&&(this.hoverIcons.shapePickerHoverDiv=null,d.hideShapePicker(!0))}));var p=this.hoverIcons.drag;this.hoverIcons.drag=function(){d.hideShapePicker();p.apply(this,arguments)};var z=this.hoverIcons.execute;this.hoverIcons.execute=function(E,R,N){var c=N.getEvent();this.graph.isCloneEvent(c)||mxEvent.isShiftDown(c)?z.apply(this,arguments):this.graph.connectVertex(E.cell,R,this.graph.defaultEdgeLength,c,null,null,mxUtils.bind(this,
function(g,k,q){var A=b.getCompositeParent(E.cell);g=b.getCellGeometry(A);for(N.consume();null!=A&&b.model.isVertex(A)&&null!=g&&g.relative;)cell=A,A=b.model.getParent(cell),g=b.getCellGeometry(A);window.setTimeout(mxUtils.bind(this,function(){this.shapePickerHoverDiv=d.showShapePicker(N.getGraphX(),N.getGraphY(),A,mxUtils.bind(this,function(D){q(D);null!=d.hoverIcons&&d.hoverIcons.update(b.view.getState(D))}),R)}),30)}),mxUtils.bind(this,function(g){this.graph.selectCellsForConnectVertex(g,c,this)}))};
var G=null;this.hoverIcons.addListener("focus",mxUtils.bind(this,function(E,R){null!=G&&window.clearTimeout(G);G=window.setTimeout(mxUtils.bind(this,function(){var N=R.getProperty("arrow"),c=R.getProperty("direction"),g=R.getProperty("event");N=N.getBoundingClientRect();var k=mxUtils.getOffset(b.container),q=b.container.scrollLeft+N.x-k.x;k=b.container.scrollTop+N.y-k.y;var A=b.getCompositeParent(null!=this.hoverIcons.currentState?this.hoverIcons.currentState.cell:null),D=d.showShapePicker(q,k,A,
mxUtils.bind(this,function(H){null!=H&&b.connectVertex(A,c,b.defaultEdgeLength,g,!0,!1,function(K,P,W){W(H);null!=d.hoverIcons&&d.hoverIcons.update(b.view.getState(H))},function(K){b.selectCellsForConnectVertex(K)},g,this.hoverIcons)}),c,!0);null!=D&&(this.centerShapePicker(D,N,q,k,c),this.hoverIcons.shapePickerHoverDiv=D,mxUtils.setOpacity(D,30),mxEvent.addListener(D,"mouseenter",function(){mxUtils.setOpacity(D,100)}),mxEvent.addListener(D,"mouseleave",function(){d.hideShapePicker()}))}),Editor.shapePickerHoverDelay)}));
this.hoverIcons.addListener("blur",mxUtils.bind(this,function(E,R){null!=G&&window.clearTimeout(G)}))}var U=!1;b.addMouseListener({mouseDown:mxUtils.bind(this,function(E,R){U=!1}),mouseMove:mxUtils.bind(this,function(E,R){null!=b.connectHandleClickState&&null!=b.connectionHandler&&null!=b.connectionHandler.shape&&(U=!0)}),mouseUp:mxUtils.bind(this,function(E,R){E=b.connectHandleClickState;b.connectHandleClickState=null;if(null!=E&&!U){var N=R.getEvent();if(!b.isCloneEvent(N)&&!mxEvent.isShiftDown(N)){for(var c=
mxConstants.DIRECTION_EAST,g=b.getCompositeParent(E.cell),k=b.getCellGeometry(g);null!=g&&b.model.isVertex(g)&&null!=k&&k.relative;)g=b.model.getParent(g),k=b.getCellGeometry(g);b.connectVertex(E.cell,c,b.defaultEdgeLength,N,null,!0,mxUtils.bind(this,function(q,A,D){R.consume();window.setTimeout(mxUtils.bind(this,function(){d.showShapePicker(R.getGraphX(),R.getGraphY(),g,mxUtils.bind(this,function(H){D(H);null!=d.hoverIcons&&d.hoverIcons.update(b.view.getState(H))}),c)}),30)}),mxUtils.bind(this,function(q){b.selectCellsForConnectVertex(q,
-N)}))}}U=!1})})};EditorUi.prototype.centerShapePicker=function(b,d,m,n,v){if(v==mxConstants.DIRECTION_EAST||v==mxConstants.DIRECTION_WEST)b.style.width="40px";var p=b.getBoundingClientRect();v==mxConstants.DIRECTION_NORTH?(m-=p.width/2-10,n-=p.height+6):v==mxConstants.DIRECTION_SOUTH?(m-=p.width/2-10,n+=d.height+6):v==mxConstants.DIRECTION_WEST?(m-=p.width+6,n-=p.height/2-10):v==mxConstants.DIRECTION_EAST&&(m+=d.width+6,n-=p.height/2-10);b.style.left=m+"px";b.style.top=n+"px"};
-EditorUi.prototype.showShapePicker=function(b,d,m,n,v,p,z,G,U){var E=null;this.editor.graph.freehand.isDrawing()||(G=G||null==m,E=this.createShapePicker(b,d,m,n,v,mxUtils.bind(this,function(){this.hideShapePicker()}),this.getCellsForShapePicker(m,p,G),p,z,G,U),null!=E&&(null==this.hoverIcons||p||this.hoverIcons.reset(),b=this.editor.graph,b.popupMenuHandler.hideMenu(),b.tooltipHandler.hideTooltip(),this.hideCurrentMenu(),this.hideShapePicker(),this.shapePickerCallback=n,this.shapePicker=E));return E};
-EditorUi.prototype.createShapePicker=function(b,d,m,n,v,p,z,G,U,E,R){R=null!=R?R:!0;var N=this.editor.graph,c=null;U=null!=U?U:function(q){q=q[0];var A=0,D=0,H=q.geometry;null!=H&&(N.model.isEdge(q)&&(q=H.getTerminalPoint(!1),H=new mxRectangle(0,0,q.x,q.y)),A=H.width/2,D=H.height/2);return new mxPoint(N.snap(Math.round(b/N.view.scale)-N.view.translate.x-A),N.snap(Math.round(d/N.view.scale)-N.view.translate.y-D))};if(null!=z&&0<z.length){var g=this;N=this.editor.graph;c=document.createElement("div");
-v=N.view.getState(m);var k=null==m||null!=v&&N.isTransparentState(v)?null:N.copyStyle(m);c.className="geShapePicker";c.setAttribute("title",mxResources.get("sidebarTooltip"));c.style.left=Math.round(b)+"px";c.style.top=Math.round(d)+"px";mxClient.IS_POINTER&&(c.style.touchAction="none");G||mxUtils.setPrefixedStyle(c.style,"transform","translate(-22px,-22px)");N.container.appendChild(c);v=mxUtils.bind(this,function(q){var A=document.createElement("a");c.appendChild(A);var D=q.shapePickerKeepStyle;
+N)}))}}U=!1})})};EditorUi.prototype.centerShapePicker=function(b,d,m,n,u){if(u==mxConstants.DIRECTION_EAST||u==mxConstants.DIRECTION_WEST)b.style.width="40px";var p=b.getBoundingClientRect();u==mxConstants.DIRECTION_NORTH?(m-=p.width/2-10,n-=p.height+6):u==mxConstants.DIRECTION_SOUTH?(m-=p.width/2-10,n+=d.height+6):u==mxConstants.DIRECTION_WEST?(m-=p.width+6,n-=p.height/2-10):u==mxConstants.DIRECTION_EAST&&(m+=d.width+6,n-=p.height/2-10);b.style.left=m+"px";b.style.top=n+"px"};
+EditorUi.prototype.showShapePicker=function(b,d,m,n,u,p,z,G,U){var E=null;this.editor.graph.freehand.isDrawing()||(G=G||null==m,E=this.createShapePicker(b,d,m,n,u,mxUtils.bind(this,function(){this.hideShapePicker()}),this.getCellsForShapePicker(m,p,G),p,z,G,U),null!=E&&(null==this.hoverIcons||p||this.hoverIcons.reset(),b=this.editor.graph,b.popupMenuHandler.hideMenu(),b.tooltipHandler.hideTooltip(),this.hideCurrentMenu(),this.hideShapePicker(),this.shapePickerCallback=n,this.shapePicker=E));return E};
+EditorUi.prototype.createShapePicker=function(b,d,m,n,u,p,z,G,U,E,R){R=null!=R?R:!0;var N=this.editor.graph,c=null;U=null!=U?U:function(q){q=q[0];var A=0,D=0,H=q.geometry;null!=H&&(N.model.isEdge(q)&&(q=H.getTerminalPoint(!1),H=new mxRectangle(0,0,q.x,q.y)),A=H.width/2,D=H.height/2);return new mxPoint(N.snap(Math.round(b/N.view.scale)-N.view.translate.x-A),N.snap(Math.round(d/N.view.scale)-N.view.translate.y-D))};if(null!=z&&0<z.length){var g=this;N=this.editor.graph;c=document.createElement("div");
+u=N.view.getState(m);var k=null==m||null!=u&&N.isTransparentState(u)?null:N.copyStyle(m);c.className="geShapePicker";c.setAttribute("title",mxResources.get("sidebarTooltip"));c.style.left=Math.round(b)+"px";c.style.top=Math.round(d)+"px";mxClient.IS_POINTER&&(c.style.touchAction="none");G||mxUtils.setPrefixedStyle(c.style,"transform","translate(-22px,-22px)");N.container.appendChild(c);u=mxUtils.bind(this,function(q){var A=document.createElement("a");c.appendChild(A);var D=q.shapePickerKeepStyle;
delete q.shapePickerKeepStyle;D||(null!=k&&"1"!=urlParams.sketch?this.sidebar.graph.pasteStyle(k,[q]):this.sidebar.graph.pasteCellStyles([q],N.currentVertexStyle,N.currentEdgeStyle));D=q.geometry;N.model.isEdge(q)&&(D=D.getTerminalPoint(!1),D=new mxRectangle(0,0,D.x,D.y));null!=D&&(D=this.sidebar.createVertexTemplateFromCells([q],D.width,D.height,"",!0,!1,null,!0,mxUtils.bind(this,function(H){if(!mxEvent.isAltDown(H)||1!=N.getSelectionCount()){if(!mxEvent.isShiftDown(H)||null==m&&N.isSelectionEmpty()){var K=
N.cloneCell(q);if(null!=n)n(K);else{var P=U([K]);N.model.isEdge(K)?K.geometry.translate(P.x,P.y):(K.geometry.x=P.x,K.geometry.y=P.y);N.model.beginUpdate();try{N.addCell(K),N.model.isVertex(K)&&N.isAutoSizeCell(K)&&N.updateCellSize(K)}finally{N.model.endUpdate()}N.setSelectionCell(K);N.scrollCellToVisible(K);R&&N.startEditing(K);null!=g.hoverIcons&&g.hoverIcons.update(N.view.getState(K))}}else K=N.getEditableCells(null!=m?[m]:N.getSelectionCells()),N.updateShapes(q,K);null!=p&&p(H);mxEvent.consume(H)}}),
-25,25,null,null,m),D.style.display="flex",D.style.alignItems="center",D.style.justifyContent="center",A.appendChild(D))});for(E=0;E<(G?Math.min(z.length,4):z.length);E++)v(z[E]);z=c.offsetTop+c.clientHeight-(N.container.scrollTop+N.container.offsetHeight);0<z&&(c.style.top=Math.max(N.container.scrollTop+22,d-z)+"px");z=c.offsetLeft+c.clientWidth-(N.container.scrollLeft+N.container.offsetWidth);0<z&&(c.style.left=Math.max(N.container.scrollLeft+22,b-z)+"px")}return c};
+25,25,null,null,m),D.style.display="flex",D.style.alignItems="center",D.style.justifyContent="center",A.appendChild(D))});for(E=0;E<(G?Math.min(z.length,4):z.length);E++)u(z[E]);z=c.offsetTop+c.clientHeight-(N.container.scrollTop+N.container.offsetHeight);0<z&&(c.style.top=Math.max(N.container.scrollTop+22,d-z)+"px");z=c.offsetLeft+c.clientWidth-(N.container.scrollLeft+N.container.offsetWidth);0<z&&(c.style.left=Math.max(N.container.scrollLeft+22,b-z)+"px")}return c};
EditorUi.prototype.defaultShapePickerEntries=null;
-EditorUi.prototype.getCellsForShapePicker=function(b,d,m){var n=this.editor.graph,v=mxUtils.bind(this,function(N,c,g,k){return n.createVertex(null,null,k||"",0,0,c||120,g||60,N,!1)});d=mxUtils.bind(this,function(N,c,g){N=new mxCell(g||"",new mxGeometry(0,0,n.defaultEdgeLength+20,0),N);N.geometry.setTerminalPoint(new mxPoint(0,0),!0);N.geometry.setTerminalPoint(new mxPoint(N.geometry.width,null!=c?c:0),!1);N.geometry.points=null!=c?[new mxPoint(N.geometry.width/2,c)]:[];N.geometry.relative=!0;N.edge=
+EditorUi.prototype.getCellsForShapePicker=function(b,d,m){var n=this.editor.graph,u=mxUtils.bind(this,function(N,c,g,k){return n.createVertex(null,null,k||"",0,0,c||120,g||60,N,!1)});d=mxUtils.bind(this,function(N,c,g){N=new mxCell(g||"",new mxGeometry(0,0,n.defaultEdgeLength+20,0),N);N.geometry.setTerminalPoint(new mxPoint(0,0),!0);N.geometry.setTerminalPoint(new mxPoint(N.geometry.width,null!=c?c:0),!1);N.geometry.points=null!=c?[new mxPoint(N.geometry.width/2,c)]:[];N.geometry.relative=!0;N.edge=
!0;return N});if(null!=b)try{b=n.cloneCell(b),n.model.isVertex(b)&&null!=b.geometry&&(b.geometry.x=0,b.geometry.y=0)}catch(N){b=null}if(null!=this.defaultShapePickerEntries){for(var p=[],z=[],G=function(N){if(null!=N&&"object"===typeof N){var c=mxUtils.createXmlDocument().createElement("UserObject"),g;for(g in N)N.hasOwnProperty(g)&&c.setAttribute(g,N[g]);null==c.getAttribute("label")&&c.setAttribute("label","");return c}return N},U=0;U<this.defaultShapePickerEntries.length;U++){var E=this.defaultShapePickerEntries[U];
-if(null!=E.style){var R=G(E.value);E.edge?z.push(d(E.style,E.y,R)):(R=v(E.style,E.width,E.height,R),E.keepStyle&&(R.shapePickerKeepStyle=!0),p.push(R))}}null!=b&&(p[0]=b);b=p;m&&(b=b.concat(z));return b}null==b&&(b=v(n.appendFontSize(Editor.defaultTextStyle,n.vertexFontSize),60,30,"Text"));b=[b,v("whiteSpace=wrap;html=1;"),v("ellipse;whiteSpace=wrap;html=1;",80,80),v("rhombus;whiteSpace=wrap;html=1;",80,80),v("rounded=1;whiteSpace=wrap;html=1;"),v("shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;"),
-v("shape=trapezoid;perimeter=trapezoidPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,60),v("shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;fixedSize=1;",120,80),v("shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,80),v("shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;"),v("triangle;whiteSpace=wrap;html=1;",60,80),v("shape=document;whiteSpace=wrap;html=1;boundedLbl=1;",120,80),v("shape=tape;whiteSpace=wrap;html=1;",120,100),v("ellipse;shape=cloud;whiteSpace=wrap;html=1;",
-120,80),v("shape=singleArrow;whiteSpace=wrap;html=1;arrowWidth=0.4;arrowSize=0.4;",80,60),v("shape=waypoint;sketch=0;size=6;pointerEvents=1;points=[];fillColor=none;resizable=0;rotatable=0;perimeter=centerPerimeter;snapToPoint=1;",20,20)];m&&(b=b.concat([d("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;"),d("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;endArrow=classic;startArrow=classic;endSize=8;startSize=8;"),d("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;shape=flexArrow;rounded=1;startSize=8;endSize=8;"),
+if(null!=E.style){var R=G(E.value);E.edge?z.push(d(E.style,E.y,R)):(R=u(E.style,E.width,E.height,R),E.keepStyle&&(R.shapePickerKeepStyle=!0),p.push(R))}}null!=b&&(p[0]=b);b=p;m&&(b=b.concat(z));return b}null==b&&(b=u(n.appendFontSize(Editor.defaultTextStyle,n.vertexFontSize),60,30,"Text"));b=[b,u("whiteSpace=wrap;html=1;"),u("ellipse;whiteSpace=wrap;html=1;",80,80),u("rhombus;whiteSpace=wrap;html=1;",80,80),u("rounded=1;whiteSpace=wrap;html=1;"),u("shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;"),
+u("shape=trapezoid;perimeter=trapezoidPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,60),u("shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;fixedSize=1;",120,80),u("shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,80),u("shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;"),u("triangle;whiteSpace=wrap;html=1;",60,80),u("shape=document;whiteSpace=wrap;html=1;boundedLbl=1;",120,80),u("shape=tape;whiteSpace=wrap;html=1;",120,100),u("ellipse;shape=cloud;whiteSpace=wrap;html=1;",
+120,80),u("shape=singleArrow;whiteSpace=wrap;html=1;arrowWidth=0.4;arrowSize=0.4;",80,60),u("shape=waypoint;sketch=0;size=6;pointerEvents=1;points=[];fillColor=none;resizable=0;rotatable=0;perimeter=centerPerimeter;snapToPoint=1;",20,20)];m&&(b=b.concat([d("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;"),d("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;endArrow=classic;startArrow=classic;endSize=8;startSize=8;"),d("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;shape=flexArrow;rounded=1;startSize=8;endSize=8;"),
d("edgeStyle=segmentEdgeStyle;endArrow=classic;html=1;curved=0;rounded=0;endSize=8;startSize=8;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;",this.editor.graph.defaultEdgeLength/2)]));return b};EditorUi.prototype.isShapePickerVisible=function(b){return null!=this.shapePicker};
EditorUi.prototype.hideShapePicker=function(b){null!=this.shapePicker&&(this.shapePicker.parentNode.removeChild(this.shapePicker),this.shapePicker=null,null!=this.hoverIcons&&null!=this.hoverIcons.shapePickerHoverDiv&&(this.hoverIcons.shapePickerHoverDiv=null),b||null==this.shapePickerCallback||this.shapePickerCallback(),this.shapePickerCallback=null)};EditorUi.prototype.isSpaceDown=function(){return this.spaceDown};EditorUi.prototype.isShiftDown=function(){return this.shiftDown};
-EditorUi.prototype.onKeyDown=function(b){var d=this.editor.graph;if(9==b.which&&d.isEnabled()&&!mxEvent.isControlDown(b)){if(d.isEditing())if(mxEvent.isAltDown(b))d.stopEditing(!1);else try{var m=d.cellEditor.isContentEditing()&&d.cellEditor.isTextSelected();if(window.getSelection&&d.cellEditor.isContentEditing()&&!m){var n=window.getSelection(),v=0<n.rangeCount?n.getRangeAt(0).commonAncestorContainer:null;m=null!=v&&("LI"==v.nodeName||null!=v.parentNode&&"LI"==v.parentNode.nodeName)}m?document.execCommand(mxEvent.isShiftDown(b)?
+EditorUi.prototype.onKeyDown=function(b){var d=this.editor.graph;if(9==b.which&&d.isEnabled()&&!mxEvent.isControlDown(b)){if(d.isEditing())if(mxEvent.isAltDown(b))d.stopEditing(!1);else try{var m=d.cellEditor.isContentEditing()&&d.cellEditor.isTextSelected();if(window.getSelection&&d.cellEditor.isContentEditing()&&!m){var n=window.getSelection(),u=0<n.rangeCount?n.getRangeAt(0).commonAncestorContainer:null;m=null!=u&&("LI"==u.nodeName||null!=u.parentNode&&"LI"==u.parentNode.nodeName)}m?document.execCommand(mxEvent.isShiftDown(b)?
"outdent":"indent",!1,null):mxEvent.isShiftDown(b)?d.stopEditing(!1):d.cellEditor.insertTab(d.cellEditor.isContentEditing()?null:4)}catch(p){}else mxEvent.isAltDown(b)?d.selectParentCell():d.selectCell(!mxEvent.isShiftDown(b));mxEvent.consume(b)}};
EditorUi.prototype.onKeyPress=function(b){var d=this.editor.graph;null!=this.typingShim&&mxEvent.getSource(b)===this.typingShim||!this.isImmediateEditingEvent(b)||d.isEditing()||d.isSelectionEmpty()||mxEvent.isAltDown(b)||mxEvent.isControlDown(b)||mxEvent.isMetaDown(b)||(null==b.key||1!==b.key.length)&&229!==b.keyCode||null!=this.keyHandler&&null!=this.keyHandler.getFunction(b)||(d.escape(),d.cellEditor.editByTyping=!0,d.startEditing())};
EditorUi.prototype.installTypingShim=function(){var b=this.editor.graph,d=document.createElement("textarea");d.setAttribute("autocomplete","off");d.setAttribute("autocorrect","off");d.setAttribute("autocapitalize","off");d.setAttribute("spellcheck","false");(mxClient.IS_ANDROID||mxClient.IS_IOS||"ontouchstart"in document.documentElement&&1<navigator.maxTouchPoints)&&d.setAttribute("inputmode","none");d.tabIndex=-1;d.className="mxTypingShim";d.style.cssText="position:absolute;overflow:hidden;resize:none;outline:none;border:none;padding:0;margin:0;z-index:1;width:4px;height:1em;opacity:0;pointer-events:none;";
this.typingShim=d;var m=!1,n=mxUtils.bind(this,function(){if(!m&&0<d.value.length){var p=d.value;d.value="";this.hideTypingShim();b.escape();b.cellEditor.editByTyping=!0;b.startEditing(null,p)}});mxEvent.addListener(d,"compositionstart",function(){m=!0});mxEvent.addListener(d,"compositionend",function(){m=!1;n()});mxEvent.addListener(d,"input",function(){n()});mxEvent.addListener(d,"keydown",mxUtils.bind(this,function(p){229!==p.keyCode&&(mxEvent.isControlDown(p)||mxEvent.isMetaDown(p)||(null==p.key||
1!==p.key.length||mxEvent.isAltDown(p)?p.preventDefault():null!=this.keyHandler&&null!=this.keyHandler.getFunction(p)&&p.preventDefault()))}));b.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.updateTypingShim();window.setTimeout(mxUtils.bind(this,function(){this.updateTypingShim()}),0)}));b.addListener(mxEvent.EDITING_STARTED,mxUtils.bind(this,function(){this.hideTypingShim()}));b.addListener(mxEvent.EDITING_STOPPED,mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,
-function(){this.updateTypingShim()}),0)}));if(null==b.container.tabIndex||0>b.container.tabIndex)b.container.tabIndex=-1;mxEvent.addListener(b.container,"focus",mxUtils.bind(this,function(){this.updateTypingShim()}));var v=b.cellEditor.focusContainer;b.cellEditor.focusContainer=mxUtils.bind(this,function(){b.isSelectionEmpty()||b.isEditing()?v.apply(b.cellEditor):this.updateTypingShim()})};
+function(){this.updateTypingShim()}),0)}));if(null==b.container.tabIndex||0>b.container.tabIndex)b.container.tabIndex=-1;mxEvent.addListener(b.container,"focus",mxUtils.bind(this,function(){this.updateTypingShim()}));var u=b.cellEditor.focusContainer;b.cellEditor.focusContainer=mxUtils.bind(this,function(){b.isSelectionEmpty()||b.isEditing()?u.apply(b.cellEditor):this.updateTypingShim()})};
EditorUi.prototype.updateTypingShim=function(){var b=this.editor.graph;b.isEditing()||b.isSelectionEmpty()||!b.isEnabled()||b.isCellLocked(b.getSelectionCell())?this.hideTypingShim():this.showTypingShim()};
EditorUi.prototype.showTypingShim=function(){var b=this.editor.graph,d=this.typingShim;if(null!=d&&!b.isEditing()){var m=b.getSelectionCell();m=b.getView().getState(m);null!=m&&(d.style.left=Math.round(m.x)+"px",d.style.top=Math.round(m.y)+"px",d.parentNode!==b.container&&b.container.appendChild(d),d.value="",m=document.activeElement,(null==m||m===document.body||m===b.container||b.container.contains(m))&&d.focus({preventScroll:!0}))}};
-EditorUi.prototype.hideTypingShim=function(){var b=this.typingShim;null!=b&&null!=b.parentNode&&b.parentNode.removeChild(b)};EditorUi.prototype.isImmediateEditingEvent=function(b){return!0};EditorUi.prototype.updateCssForMarker=function(b,d,m,n,v){m=this.getImageForMarker(n,v,m);b.innerHTML="";null==m?b.innerHTML=mxUtils.htmlEntities(mxResources.get("none")):(n=document.createElement("img"),n.setAttribute("src",m),"end"==d&&mxUtils.setPrefixedStyle(n.style,"transform","scaleX(-1)"),b.appendChild(n))};
+EditorUi.prototype.hideTypingShim=function(){var b=this.typingShim;null!=b&&null!=b.parentNode&&b.parentNode.removeChild(b)};EditorUi.prototype.isImmediateEditingEvent=function(b){return!0};EditorUi.prototype.updateCssForMarker=function(b,d,m,n,u){m=this.getImageForMarker(n,u,m);b.innerHTML="";null==m?b.innerHTML=mxUtils.htmlEntities(mxResources.get("none")):(n=document.createElement("img"),n.setAttribute("src",m),"end"==d&&mxUtils.setPrefixedStyle(n.style,"transform","scaleX(-1)"),b.appendChild(n))};
EditorUi.prototype.getImageForMarker=function(b,d,m){return"flexArrow"==m?null!=b&&b!=mxConstants.NONE?Format.blockMarkerImage.src:null:b==mxConstants.ARROW_CLASSIC?"1"!=d?Format.classicMarkerImage.src:Format.classicFilledMarkerImage.src:b==mxConstants.ARROW_CLASSIC_THIN?"1"!=d?Format.classicThinMarkerImage.src:Format.openThinFilledMarkerImage.src:b==mxConstants.ARROW_OPEN?Format.openFilledMarkerImage.src:b==mxConstants.ARROW_OPEN_THIN?Format.openThinFilledMarkerImage.src:b==mxConstants.ARROW_BLOCK?
"1"!=d?Format.blockMarkerImage.src:Format.blockFilledMarkerImage.src:b==mxConstants.ARROW_BLOCK_THIN?"1"!=d?Format.blockThinMarkerImage.src:Format.blockThinFilledMarkerImage.src:b==mxConstants.ARROW_OVAL?"1"!=d?Format.ovalMarkerImage.src:Format.ovalFilledMarkerImage.src:b==mxConstants.ARROW_DIAMOND?"1"!=d?Format.diamondMarkerImage.src:Format.diamondFilledMarkerImage.src:b==mxConstants.ARROW_DIAMOND_THIN?"1"!=d?Format.diamondThinMarkerImage.src:Format.diamondThinFilledMarkerImage.src:"doubleBlock"==
b?"1"!=d?Format.doubleBlockMarkerImage.src:Format.doubleBlockFilledMarkerImage.src:"box"==b?Format.boxMarkerImage.src:"halfCircle"==b?Format.halfCircleMarkerImage.src:"openAsync"==b?Format.openAsyncFilledMarkerImage.src:"async"==b?"1"!=d?Format.asyncMarkerImage.src:Format.asyncFilledMarkerImage.src:"dash"==b?Format.dashMarkerImage.src:"baseDash"==b?Format.baseDashMarkerImage.src:"cross"==b?Format.crossMarkerImage.src:"circle"==b?Format.circleMarkerImage.src:"circlePlus"==b?Format.circlePlusMarkerImage.src:
@@ -2197,16 +2197,16 @@ null)?Format.verticalElbowImage.src:Format.horizontalElbowImage.src:"isometricEd
EditorUi.prototype.updatePasteActionStates=function(){var b=this.editor.graph,d=this.actions.get("paste"),m=this.actions.get("pasteHere");d.setEnabled(this.editor.graph.cellEditor.isContentEditing()||(null!=navigator.clipboard||!mxClipboard.isEmpty())&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent()));m.setEnabled(d.isEnabled())};
EditorUi.prototype.initClipboard=function(){var b=this,d=mxClipboard.cut;mxClipboard.cut=function(p){p.cellEditor.isContentEditing()?document.execCommand("cut",!1,null):d.apply(this,arguments);b.updatePasteActionStates()};mxClipboard.copy=function(p){var z=null;if(p.cellEditor.isContentEditing())document.execCommand("copy",!1,null);else{z=z||p.getSelectionCells();z=p.getExportableCells(p.model.getTopmostCells(z));for(var G={},U=p.createCellLookup(z),E=p.cloneCells(z,null,G),R=new mxGraphModel,N=R.getChildAt(R.getRoot(),
0),c=0;c<E.length;c++){R.add(N,E[c]);var g=p.view.getState(z[c]);if(null!=g){var k=p.getCellGeometry(E[c]);null!=k&&k.relative&&!R.isEdge(z[c])&&null==U[mxObjectIdentity.get(R.getParent(z[c]))]&&(k.offset=null,k.relative=!1,k.x=g.x/g.view.scale-g.view.translate.x,k.y=g.y/g.view.scale-g.view.translate.y)}}p.updateCustomLinks(p.createCellMapping(G,U),E);mxClipboard.insertCount=1;mxClipboard.setCells(E)}b.updatePasteActionStates();return z};var m=mxClipboard.paste;mxClipboard.paste=function(p){var z=
-null;p.cellEditor.isContentEditing()?document.execCommand("paste",!1,null):z=m.apply(this,arguments);b.updatePasteActionStates();return z};var n=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){n.apply(this,arguments);b.updatePasteActionStates()};var v=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(p,z){v.apply(this,arguments);b.updatePasteActionStates()};this.updatePasteActionStates()};
+null;p.cellEditor.isContentEditing()?document.execCommand("paste",!1,null):z=m.apply(this,arguments);b.updatePasteActionStates();return z};var n=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){n.apply(this,arguments);b.updatePasteActionStates()};var u=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(p,z){u.apply(this,arguments);b.updatePasteActionStates()};this.updatePasteActionStates()};
EditorUi.prototype.lazyZoomDelay=20;EditorUi.prototype.wheelZoomDelay=500;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 aa=this.graph.getPageLayout(),S=this.graph.getPageSize();return new mxRectangle(this.scale*(this.translate.x+aa.x*S.width),this.scale*(this.translate.y+aa.y*S.height),this.scale*aa.width*
S.width,this.scale*aa.height*S.height)};b.getPreferredPageSize=function(aa,S,Z){aa=this.getPageLayout();S=this.getPageSize();return new mxRectangle(0,0,aa.width*S.width,aa.height*S.height)};var d=null,m=this;if(this.editor.isChromelessView()){this.chromelessResize=d=mxUtils.bind(this,function(aa,S,Z,da){if(null!=b.container&&!b.isViewer()){Z=null!=Z?Z:0;da=null!=da?da:0;var ma=b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds(),na=mxUtils.hasScrollbars(b.container),ra=b.view.translate,
ta=b.view.scale,Aa=mxRectangle.fromRectangle(ma);Aa.x=Aa.x/ta-ra.x;Aa.y=Aa.y/ta-ra.y;Aa.width/=ta;Aa.height/=ta;ra=b.container.scrollTop;var Ca=b.container.scrollLeft,xa=8<=document.documentMode?20:14;if(8==document.documentMode||9==document.documentMode)xa+=3;var Ea=b.container.offsetWidth-xa;xa=b.container.offsetHeight-xa;aa=aa?Math.max(.3,Math.min(S||1,Ea/Aa.width)):ta;S=(Ea-aa*Aa.width)/2/aa;var Ua=0==this.lightboxVerticalDivider?0:(xa-aa*Aa.height)/this.lightboxVerticalDivider/aa;na&&(S=Math.max(S,
0),Ua=Math.max(Ua,0));if(na||ma.width<Ea||ma.height<xa)b.view.scaleAndTranslate(aa,Math.floor(S-Aa.x),Math.floor(Ua-Aa.y)),b.container.scrollTop=ra*aa/ta,b.container.scrollLeft=Ca*aa/ta;else if(0!=Z||0!=da)ma=b.view.translate,b.view.setTranslate(Math.floor(ma.x+Z/ta),Math.floor(ma.y+da/ta))}});this.chromelessWindowResize=mxUtils.bind(this,function(){this.chromelessResize(!1)});var n=mxUtils.bind(this,function(){this.chromelessWindowResize(!1)});mxEvent.addListener(window,"resize",n);this.destroyFunctions.push(function(){mxEvent.removeListener(window,
-"resize",n)});this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.chromelessResize(!0)}));this.actions.get("zoomIn").funct=mxUtils.bind(this,function(aa){b.zoomIn();this.chromelessResize(!1)});this.actions.get("zoomOut").funct=mxUtils.bind(this,function(aa){b.zoomOut();this.chromelessResize(!1)});if("0"!=urlParams.toolbar){var v=JSON.parse(decodeURIComponent(urlParams["toolbar-config"]||"{}"));this.chromelessToolbar=document.createElement("div");this.chromelessToolbar.style.position=
+"resize",n)});this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.chromelessResize(!0)}));this.actions.get("zoomIn").funct=mxUtils.bind(this,function(aa){b.zoomIn();this.chromelessResize(!1)});this.actions.get("zoomOut").funct=mxUtils.bind(this,function(aa){b.zoomOut();this.chromelessResize(!1)});if("0"!=urlParams.toolbar){var u=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%";this.chromelessToolbar.style.backgroundColor="#000000";mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"borderRadius","16px");mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transition","opacity 600ms ease-in-out");var p=
mxUtils.bind(this,function(){var aa=mxUtils.getCurrentStyle(b.container);b.isViewer()?this.chromelessToolbar.style.top="0":this.chromelessToolbar.style.bottom=(null!=aa?parseInt(aa["margin-bottom"]||0):0)+(null!=this.tabContainer?20+parseInt(this.tabContainer.style.height):20)+"px"});this.editor.addListener("resetGraphView",p);p();var z=0;p=mxUtils.bind(this,function(aa,S,Z){z++;var da=document.createElement("span");da.style.paddingLeft="8px";da.style.paddingRight="8px";da.style.cursor="pointer";
-mxEvent.addListener(da,"click",aa);null!=Z&&da.setAttribute("title",Z);aa=document.createElement("img");aa.setAttribute("border","0");aa.setAttribute("src",S);aa.style.width="36px";aa.style.filter="invert(100%)";da.appendChild(aa);this.chromelessToolbar.appendChild(da);return da});if(null!=v.backBtn){var G=Graph.sanitizeLink(v.backBtn.url);null!=G&&p(mxUtils.bind(this,function(aa){window.location.href=G;mxEvent.consume(aa)}),Editor.backImage,mxResources.get("back",null,"Back"))}if(this.isPagesEnabled()){var U=
+mxEvent.addListener(da,"click",aa);null!=Z&&da.setAttribute("title",Z);aa=document.createElement("img");aa.setAttribute("border","0");aa.setAttribute("src",S);aa.style.width="36px";aa.style.filter="invert(100%)";da.appendChild(aa);this.chromelessToolbar.appendChild(da);return da});if(null!=u.backBtn){var G=Graph.sanitizeLink(u.backBtn.url);null!=G&&p(mxUtils.bind(this,function(aa){window.location.href=G;mxEvent.consume(aa)}),Editor.backImage,mxResources.get("back",null,"Back"))}if(this.isPagesEnabled()){var U=
p(mxUtils.bind(this,function(aa){this.actions.get("previousPage").funct();mxEvent.consume(aa)}),Editor.chevronLeftImage,mxResources.get("previousPage")),E=document.createElement("div");E.style.fontFamily=Editor.defaultHtmlFont;E.style.display="inline-block";E.style.verticalAlign="top";E.style.fontWeight="bold";E.style.marginTop="8px";E.style.fontSize="14px";E.style.cursor="default";E.style.color="#ffffff";this.chromelessToolbar.appendChild(E);var R=p(mxUtils.bind(this,function(aa){this.actions.get("nextPage").funct();
mxEvent.consume(aa)}),Editor.chevronRightImage,mxResources.get("nextPage")),N=mxUtils.bind(this,function(){if(null!=this.pages&&1<this.pages.length&&null!=this.currentPage){E.innerText="";var aa=mxUtils.indexOf(this.pages,this.currentPage);mxUtils.write(E,aa+1+" / "+this.pages.length);E.setAttribute("title",mxResources.get("currentPage")+": "+this.currentPage.getName());U.setAttribute("title",mxResources.get("previousPage")+": "+this.pages[mxUtils.mod(aa-1,this.pages.length)].getName());R.setAttribute("title",
mxResources.get("nextPage")+": "+this.pages[mxUtils.mod(aa+1,this.pages.length)].getName())}});U.style.paddingLeft="0px";U.style.paddingRight="4px";R.style.paddingLeft="4px";R.style.paddingRight="0px";var c=mxUtils.bind(this,function(){null!=this.pages&&1<this.pages.length&&null!=this.currentPage?(R.style.display="",U.style.display="",E.style.display="inline-block"):(R.style.display="none",U.style.display="none",E.style.display="none");N()});if(null!=this.menus){var g=this.menus.get("pages");null!=
@@ -2217,8 +2217,8 @@ null;var H=p(mxUtils.bind(this,function(aa){if(null!=this.layersDialog)this.laye
"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=S.left+"px";this.layersDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";this.layersDialog.style.backgroundColor="#000000";this.layersDialog.style.color="#ffffff";mxUtils.setOpacity(this.layersDialog,80);
S=mxUtils.getCurrentStyle(this.editor.graph.container);this.layersDialog.style.zIndex=S.zIndex;document.body.appendChild(this.layersDialog);this.editor.fireEvent(new mxEventObject("layersDialogShown"))}mxEvent.consume(aa)}),Editor.layersImage,mxResources.get("layers")),K=b.getModel();K.addListener(mxEvent.CHANGE,function(){H.style.display=1<K.getChildCount(K.root)?"":"none"})}("1"!=urlParams.openInSameWin||navigator.standalone)&&this.addChromelessToolbarItems(p);null==this.editor.editButtonLink&&
null==this.editor.editButtonFunc||p(mxUtils.bind(this,function(aa){if(null!=this.editor.editButtonFunc)this.editor.editButtonFunc();else if("_blank"==this.editor.editButtonLink){var S=null!=this.currentPage?this.currentPage.getId():null;this.editor.editAsNew(this.getEditBlankXml(),null,null,S)}else b.openLink(this.editor.editButtonLink,"editWindow");mxEvent.consume(aa)}),Editor.editImage,mxResources.get("edit"));if(null!=this.lightboxToolbarActions)for(c=0;c<this.lightboxToolbarActions.length;c++){var P=
-this.lightboxToolbarActions[c];P.elem=p(P.fn,P.icon,P.tooltip)}if(null!=v.refreshBtn){var W=null==v.refreshBtn.url?null:Graph.sanitizeLink(v.refreshBtn.url);p(mxUtils.bind(this,function(aa){null!=W?window.location.href=W:window.location.reload();mxEvent.consume(aa)}),Editor.refreshImage,mxResources.get("refresh",null,"Refresh"))}null!=v.fullscreenBtn&&window.self!==window.top&&p(mxUtils.bind(this,function(aa){v.fullscreenBtn.url?b.openLink(v.fullscreenBtn.url):b.openLink(window.location.href);mxEvent.consume(aa)}),
-Editor.fullscreenImage,mxResources.get("openInNewWindow",null,"Open in New Window"));!v.noCloseBtn&&(v.closeBtn&&window.self===window.top||b.lightbox&&("1"==urlParams.close||this.container!=document.body))&&p(mxUtils.bind(this,function(aa){"1"==urlParams.close||v.closeBtn?window.close():(this.destroy(),mxEvent.consume(aa))}),Editor.closeImage,mxResources.get("close")+" (Escape)");this.chromelessToolbar.style.display="none";b.isViewer()||mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transform",
+this.lightboxToolbarActions[c];P.elem=p(P.fn,P.icon,P.tooltip)}if(null!=u.refreshBtn){var W=null==u.refreshBtn.url?null:Graph.sanitizeLink(u.refreshBtn.url);p(mxUtils.bind(this,function(aa){null!=W?window.location.href=W:window.location.reload();mxEvent.consume(aa)}),Editor.refreshImage,mxResources.get("refresh",null,"Refresh"))}null!=u.fullscreenBtn&&window.self!==window.top&&p(mxUtils.bind(this,function(aa){u.fullscreenBtn.url?b.openLink(u.fullscreenBtn.url):b.openLink(window.location.href);mxEvent.consume(aa)}),
+Editor.fullscreenImage,mxResources.get("openInNewWindow",null,"Open in New Window"));!u.noCloseBtn&&(u.closeBtn&&window.self===window.top||b.lightbox&&("1"==urlParams.close||this.container!=document.body))&&p(mxUtils.bind(this,function(aa){"1"==urlParams.close||u.closeBtn?window.close():(this.destroy(),mxEvent.consume(aa))}),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(aa){mxEvent.isTouchEvent(aa)||(mxEvent.isShiftDown(aa)||D(30),A())}));mxEvent.addListener(this.chromelessToolbar,mxClient.IS_POINTER?"pointermove":"mousemove",function(aa){mxEvent.consume(aa)});mxEvent.addListener(this.chromelessToolbar,"mouseenter",mxUtils.bind(this,function(aa){b.tooltipHandler.resetTimer();b.tooltipHandler.hideTooltip();
mxEvent.isShiftDown(aa)?A():D(100)}));mxEvent.addListener(this.chromelessToolbar,"mousemove",mxUtils.bind(this,function(aa){mxEvent.isShiftDown(aa)?A():D(100);mxEvent.consume(aa)}));mxEvent.addListener(this.chromelessToolbar,"mouseleave",mxUtils.bind(this,function(aa){mxEvent.isTouchEvent(aa)||D(30)}));var M=b.getTolerance();b.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(aa,S){this.startX=S.getGraphX();this.startY=S.getGraphY();this.scrollLeft=b.container.scrollLeft;
this.scrollTop=b.container.scrollTop},mouseMove:function(aa,S){},mouseUp:function(aa,S){mxEvent.isTouchEvent(S.getEvent())&&Math.abs(this.scrollLeft-b.container.scrollLeft)<M&&Math.abs(this.scrollTop-b.container.scrollTop)<M&&Math.abs(this.startX-S.getGraphX())<M&&Math.abs(this.startY-S.getGraphY())<M&&(0<parseFloat(m.chromelessToolbar.style.opacity||0)?A():D(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var ca=b.view.validate,fa=new mxPoint,ha=!1,
@@ -2245,7 +2245,7 @@ EditorUi.prototype.toggleFormatPanel=function(b){b=null!=b?b:0==this.formatWidth
EditorUi.prototype.isDiagramEmpty=function(){var b=this.editor.graph.getModel();return 1==b.getChildCount(b.root)&&0==b.getChildCount(b.getChildAt(b.root,0))};EditorUi.prototype.isSelectionAllowed=function(b){return"SELECT"==mxEvent.getSource(b).nodeName||"INPUT"==mxEvent.getSource(b).nodeName};EditorUi.prototype.addBeforeUnloadListener=function(){window.onbeforeunload=mxUtils.bind(this,function(){if(!this.editor.isChromelessView())return this.onBeforeUnload()})};
EditorUi.prototype.onBeforeUnload=function(){if(this.editor.modified)return mxResources.get("allChangesLost")};
EditorUi.prototype.open=function(){try{null!=window.opener&&null!=window.opener.openFile&&window.opener.openFile.setConsumer(mxUtils.bind(this,function(b,d){try{var m=mxUtils.parseXml(b);this.editor.setGraphXml(m.documentElement);this.editor.setModified(!1);this.editor.undoManager.clear();null!=d&&(this.editor.setFilename(d),this.updateDocumentTitle())}catch(n){mxUtils.alert(mxResources.get("invalidOrMissingFile")+": "+n.message)}}))}catch(b){}this.editor.graph.view.validate();this.editor.graph.sizeDidChange();
-this.editor.fireEvent(new mxEventObject("resetGraphView"))};EditorUi.prototype.showPrintDialog=function(b,d){this.showDialog((new PrintDialog(this,b,d)).container,300,180,!0,!0)};EditorUi.prototype.showPopupMenu=function(b,d,m,n){this.editor.graph.popupMenuHandler.hideMenu();var v=new mxPopupMenu(b);v.smartSeparators=!0;v.showDisabled=!0;v.autoExpand=!0;v.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(v,arguments);v.destroy()});v.popup(d,m,null,n);this.setCurrentMenu(v)};
+this.editor.fireEvent(new mxEventObject("resetGraphView"))};EditorUi.prototype.showPrintDialog=function(b,d){this.showDialog((new PrintDialog(this,b,d)).container,300,180,!0,!0)};EditorUi.prototype.showPopupMenu=function(b,d,m,n){this.editor.graph.popupMenuHandler.hideMenu();var u=new mxPopupMenu(b);u.smartSeparators=!0;u.showDisabled=!0;u.autoExpand=!0;u.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(u,arguments);u.destroy()});u.popup(d,m,null,n);this.setCurrentMenu(u)};
EditorUi.prototype.isHideCurrentMenuEvent=function(b){b=mxEvent.getSource(b);if(null!=this.currentMenu){if(b==this.currentMenu.div)return!1;for(var d=this.currentMenu.activeRow;null!=d;){if(b==d.div)return!1;d=d.activeRow}return!0}return!1};EditorUi.prototype.setCurrentMenu=function(b,d){this.currentMenuElt=d;this.currentMenu=b;this.hideShapePicker()};EditorUi.prototype.resetCurrentMenu=function(){this.currentMenu=this.currentMenuElt=null};
EditorUi.prototype.hideCurrentMenu=function(){null!=this.currentMenu&&(this.currentMenu.hideMenu(),this.resetCurrentMenu())};EditorUi.prototype.updateDocumentTitle=function(){var b=this.editor.getOrCreateFilename();null!=this.editor.appName&&(b+=" - "+this.editor.appName);document.title=b};EditorUi.prototype.createHoverIcons=function(){return new HoverIcons(this.editor.graph)};EditorUi.prototype.createInlineToolbar=function(){return new InlineToolbar(this)};
EditorUi.prototype.redo=function(){try{this.editor.graph.isEditing()?document.execCommand("redo",!1,null):this.editor.undoManager.redo()}catch(b){}};EditorUi.prototype.undo=function(){try{var b=this.editor.graph;if(b.isEditing()){var d=b.cellEditor.textarea.innerHTML;document.execCommand("undo",!1,null);d==b.cellEditor.textarea.innerHTML&&(b.stopEditing(!0),this.editor.undoManager.undo())}else this.editor.undoManager.undo()}catch(m){}};
@@ -2253,25 +2253,25 @@ EditorUi.prototype.canRedo=function(){return this.editor.graph.isEditing()||this
EditorUi.prototype.getEditBlankXml=function(){return mxUtils.getXml(this.editor.getGraphXml())};EditorUi.prototype.getUrl=function(b){b=null!=b?b:window.location.pathname;var d=0<b.indexOf("?")?1:0,m;for(m in urlParams)b=0==d?b+"?":b+"&",b+=m+"="+urlParams[m],d++;return b};
EditorUi.prototype.setScrollbars=function(b){var d=this.editor.graph,m=d.container.style.overflow;d.scrollbars=b;this.editor.updateGraphComponents();m!=d.container.style.overflow&&(d.container.scrollTop=0,d.container.scrollLeft=0,d.view.scaleAndTranslate(1,0,0),this.resetScrollbars());this.fireEvent(new mxEventObject("scrollbarsChanged"))};
EditorUi.prototype.initialFitDiagram=function(b){var d=null!=urlParams.border?parseInt(urlParams.border):10;d=new mxRectangle(d,d,d,d);this.fitDiagramOrPages(null!=b?b:1,d,!0)};EditorUi.prototype.fitDiagramOrPages=function(b,d,m){var n=this.editor.graph;n.pageVisible&&n.isSelectionEmpty()&&!m?n.fitPages(b):this.fitDiagramToWindow(b,d,m)};
-EditorUi.prototype.fitDiagramToWindow=function(b,d,m){var n=this.editor.graph,v=n.isSelectionEmpty()?mxRectangle.fromRectangle(n.getGraphBounds()):n.getBoundingBox(n.getSelectionCells()),p=n.view.translate,z=n.view.scale;v.x=v.x/z-p.x;v.y=v.y/z-p.y;v.width/=z;v.height/=z;null!=n.backgroundImage&&v.add(new mxRectangle(0,0,n.backgroundImage.width,n.backgroundImage.height));0==v.width||0==v.height?(n.zoomTo(1),this.resetScrollbars()):(d=null!=d?d:Editor.fitWindowBorders,null!=d&&(v.x-=d.x,v.y-=d.y,v.width+=
-d.width+d.x,v.height+=d.height+d.y),n.fitWindow(v,null,b,m,m))};EditorUi.prototype.hasScrollbars=function(){return this.editor.graph.scrollbars};
+EditorUi.prototype.fitDiagramToWindow=function(b,d,m){var n=this.editor.graph,u=n.isSelectionEmpty()?mxRectangle.fromRectangle(n.getGraphBounds()):n.getBoundingBox(n.getSelectionCells()),p=n.view.translate,z=n.view.scale;u.x=u.x/z-p.x;u.y=u.y/z-p.y;u.width/=z;u.height/=z;null!=n.backgroundImage&&u.add(new mxRectangle(0,0,n.backgroundImage.width,n.backgroundImage.height));0==u.width||0==u.height?(n.zoomTo(1),this.resetScrollbars()):(d=null!=d?d:Editor.fitWindowBorders,null!=d&&(u.x-=d.x,u.y-=d.y,u.width+=
+d.width+d.x,u.height+=d.height+d.y),n.fitWindow(u,null,b,m,m))};EditorUi.prototype.hasScrollbars=function(){return this.editor.graph.scrollbars};
EditorUi.prototype.resetScrollbars=function(){var b=this.editor.graph,d=b.container;if(!this.editor.extendCanvas)d.scrollTop=0,d.scrollLeft=0,mxUtils.hasScrollbars(d)||b.view.setTranslate(0,0);else if(!this.editor.isChromelessView())if(mxUtils.hasScrollbars(d))if(b.pageVisible){var m=b.getPagePadding();d.scrollTop=Math.floor(m.y);d.scrollLeft=Math.floor(Math.min(m.x,(d.scrollWidth-d.clientWidth)/2));m=b.getGraphBounds();0<m.width&&0<m.height&&(m.x>d.scrollLeft+.9*d.clientWidth&&(d.scrollLeft=Math.min(m.x+
m.width-d.clientWidth,m.x-10)),m.y>d.scrollTop+.9*d.clientHeight&&(d.scrollTop=Math.min(m.y+m.height-d.clientHeight,m.y-10)))}else if(m=b.getGraphBounds(),0==m.width&&0==m.height)d.scrollLeft=(d.scrollWidth-d.clientWidth)/2,d.scrollTop=(d.scrollHeight-d.clientHeight)/2;else{var n=Math.max(m.height,b.scrollTileSize.height*b.view.scale);d.scrollLeft=Math.floor(Math.max(0,m.x-Math.max(0,(d.clientWidth-Math.max(m.width,b.scrollTileSize.width*b.view.scale))/2)));d.scrollTop=Math.floor(Math.max(0,m.y-Math.max(20,
-(d.clientHeight-n)/4)))}else{m=mxRectangle.fromRectangle(b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds());n=b.view.translate;var v=b.view.scale;m.x=m.x/v-n.x;m.y=m.y/v-n.y;m.width/=v;m.height/=v;n=b.pageVisible?0:Math.max(0,(d.clientHeight-m.height)/4);"1"==urlParams.embedInline?b.view.setTranslate(Math.floor(-m.x+2),Math.floor(n-m.y+1)):b.view.setTranslate(Math.floor(Math.max(0,(d.clientWidth-m.width)/2)-m.x+2),Math.floor(n-m.y+1))}};
-EditorUi.prototype.setPageVisible=function(b){var d=this.editor.graph,m=mxUtils.hasScrollbars(d.container),n=0,v=0;m&&(n=d.view.translate.x*d.view.scale-d.container.scrollLeft,v=d.view.translate.y*d.view.scale-d.container.scrollTop);d.pageVisible=b;d.pageBreaksVisible=b;d.preferPageSize=b;d.view.validateBackground();if(m){var p=d.getSelectionCells();d.clearSelection();d.setSelectionCells(p)}d.sizeDidChange();m&&(d.container.scrollLeft=d.view.translate.x*d.view.scale-n,d.container.scrollTop=d.view.translate.y*
-d.view.scale-v);d.defaultPageVisible=b;this.fireEvent(new mxEventObject("pageViewChanged"))};
-EditorUi.prototype.installResizeHandler=function(b,d,m){d&&(b.window.setSize=function(v,p){if(!this.minimized){var z=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;v=Math.min(v,(window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth)-this.getX());p=Math.min(p,z-this.getY())}mxWindow.prototype.setSize.apply(this,arguments)});b.window.setLocation=function(v,p){var z=window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth,
-G=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight,U=parseInt(this.div.style.width),E=parseInt(this.div.style.height);v=Math.max(0,Math.min(v,z-U));p=Math.max(0,Math.min(p,G-E));this.getX()==v&&this.getY()==p||mxWindow.prototype.setLocation.apply(this,arguments);d&&!this.minimized&&this.setSize(U,E)};var n=mxUtils.bind(this,function(){var v=b.window.getX(),p=b.window.getY();b.window.setLocation(v,p)});mxEvent.addListener(window,"resize",n);b.destroy=function(){mxEvent.removeListener(window,
-"resize",n);b.window.destroy();null!=m&&m()}};function ChangeGridColor(b,d){this.ui=b;this.color=d}ChangeGridColor.prototype.execute=function(){var b=this.ui.editor.graph.view.gridColor;this.ui.setGridColor(this.color);this.color=b};function ChangePageSetup(b,d,m,n,v){this.ui=b;this.previousColor=this.color=d;this.previousImage=this.image=m;this.previousFormat=this.format=n;this.previousPageScale=this.pageScale=v;this.ignoreImage=this.ignoreColor=!1}
+(d.clientHeight-n)/4)))}else{m=mxRectangle.fromRectangle(b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds());n=b.view.translate;var u=b.view.scale;m.x=m.x/u-n.x;m.y=m.y/u-n.y;m.width/=u;m.height/=u;n=b.pageVisible?0:Math.max(0,(d.clientHeight-m.height)/4);"1"==urlParams.embedInline?b.view.setTranslate(Math.floor(-m.x+2),Math.floor(n-m.y+1)):b.view.setTranslate(Math.floor(Math.max(0,(d.clientWidth-m.width)/2)-m.x+2),Math.floor(n-m.y+1))}};
+EditorUi.prototype.setPageVisible=function(b){var d=this.editor.graph,m=mxUtils.hasScrollbars(d.container),n=0,u=0;m&&(n=d.view.translate.x*d.view.scale-d.container.scrollLeft,u=d.view.translate.y*d.view.scale-d.container.scrollTop);d.pageVisible=b;d.pageBreaksVisible=b;d.preferPageSize=b;d.view.validateBackground();if(m){var p=d.getSelectionCells();d.clearSelection();d.setSelectionCells(p)}d.sizeDidChange();m&&(d.container.scrollLeft=d.view.translate.x*d.view.scale-n,d.container.scrollTop=d.view.translate.y*
+d.view.scale-u);d.defaultPageVisible=b;this.fireEvent(new mxEventObject("pageViewChanged"))};
+EditorUi.prototype.installResizeHandler=function(b,d,m){d&&(b.window.setSize=function(u,p){if(!this.minimized){var z=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;u=Math.min(u,(window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth)-this.getX());p=Math.min(p,z-this.getY())}mxWindow.prototype.setSize.apply(this,arguments)});b.window.setLocation=function(u,p){var z=window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth,
+G=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight,U=parseInt(this.div.style.width),E=parseInt(this.div.style.height);u=Math.max(0,Math.min(u,z-U));p=Math.max(0,Math.min(p,G-E));this.getX()==u&&this.getY()==p||mxWindow.prototype.setLocation.apply(this,arguments);d&&!this.minimized&&this.setSize(U,E)};var n=mxUtils.bind(this,function(){var u=b.window.getX(),p=b.window.getY();b.window.setLocation(u,p)});mxEvent.addListener(window,"resize",n);b.destroy=function(){mxEvent.removeListener(window,
+"resize",n);b.window.destroy();null!=m&&m()}};function ChangeGridColor(b,d){this.ui=b;this.color=d}ChangeGridColor.prototype.execute=function(){var b=this.ui.editor.graph.view.gridColor;this.ui.setGridColor(this.color);this.color=b};function ChangePageSetup(b,d,m,n,u){this.ui=b;this.previousColor=this.color=d;this.previousImage=this.image=m;this.previousFormat=this.format=n;this.previousPageScale=this.pageScale=u;this.ignoreImage=this.ignoreColor=!1}
ChangePageSetup.prototype.execute=function(){var b=this.ui.editor.graph;if(!this.ignoreColor){this.color=this.previousColor;var d=b.background;this.ui.setBackgroundColor(this.previousColor);this.previousColor=d}if(!this.ignoreImage){this.image=this.previousImage;d=b.backgroundImage;var m=this.previousImage;null!=m&&Graph.isPageLink(m.src)&&(m=this.ui.createImageForPageLink(m.src,this.ui.currentPage));this.ui.setBackgroundImage(m);this.previousImage=d}null!=this.previousFormat&&(this.format=this.previousFormat,
d=b.pageFormat,this.previousFormat.width!=d.width||this.previousFormat.height!=d.height)&&(this.ui.setPageFormat(this.previousFormat),this.previousFormat=d);null!=this.foldingEnabled&&this.foldingEnabled!=this.ui.editor.graph.foldingEnabled&&(this.ui.setFoldingEnabled(this.foldingEnabled),this.foldingEnabled=!this.foldingEnabled);null!=this.previousPageScale&&(b=this.ui.editor.graph.pageScale,this.previousPageScale!=b&&(this.ui.setPageScale(this.previousPageScale),this.previousPageScale=b))};
EditorUi.prototype.setBackgroundColor=function(b){this.editor.graph.background=b;this.editor.graph.view.validateBackground();this.fireEvent(new mxEventObject("backgroundColorChanged"))};EditorUi.prototype.setFoldingEnabled=function(b){this.editor.graph.foldingEnabled=b;this.editor.graph.view.revalidate();this.fireEvent(new mxEventObject("foldingEnabledChanged"))};
EditorUi.prototype.setPageFormat=function(b,d){d=null!=d?d:"1"==urlParams.sketch;this.editor.graph.pageFormat=b;d||(this.editor.graph.pageVisible?(this.editor.graph.view.validateBackground(),this.editor.graph.sizeDidChange()):this.actions.get("pageView").funct());this.fireEvent(new mxEventObject("pageFormatChanged"))};
EditorUi.prototype.setPageScale=function(b){this.editor.graph.pageScale=b;this.editor.graph.pageVisible?(this.editor.graph.view.validateBackground(),this.editor.graph.sizeDidChange()):this.actions.get("pageView").funct();this.fireEvent(new mxEventObject("pageScaleChanged"))};
EditorUi.prototype.setGridColor=function(b,d){d=null!=d?d:Editor.isDarkMode();var m=this.editor.graph;d?m.view.defaultDarkGridColor=b:m.view.defaultGridColor=b;m.view.gridColor="light-dark("+m.view.defaultGridColor+", "+m.view.defaultDarkGridColor+")";m.view.validateBackground();this.fireEvent(new mxEventObject("gridColorChanged"))};
-EditorUi.prototype.addUndoListener=function(){var b=this.editor.undoManager,d=mxUtils.bind(this,function(){this.updateActionStates()});b.addListener(mxEvent.ADD,d);b.addListener(mxEvent.UNDO,d);b.addListener(mxEvent.REDO,d);b.addListener(mxEvent.CLEAR,d);var m=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){m.apply(this,arguments);d()};var n=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(v,p){n.apply(this,arguments);
+EditorUi.prototype.addUndoListener=function(){var b=this.editor.undoManager,d=mxUtils.bind(this,function(){this.updateActionStates()});b.addListener(mxEvent.ADD,d);b.addListener(mxEvent.UNDO,d);b.addListener(mxEvent.REDO,d);b.addListener(mxEvent.CLEAR,d);var m=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){m.apply(this,arguments);d()};var n=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(u,p){n.apply(this,arguments);
d()};d()};
-EditorUi.prototype.updateActionStates=function(){for(var b=this.editor.graph,d=this.getSelectionState(),m=b.isEnabled()&&!b.isCellLocked(b.getDefaultParent()),n=!this.editor.chromeless||this.editor.editable,v="cut copy bold italic underline delete duplicate editStyle editTooltip editLink backgroundColor borderColor edit toFront toBack solid dashed pasteSize dotted fillColor gradientColor shadow fontColor formattedText rounded toggleRounded strokeColor sharp snapToGrid".split(" "),p=0;p<v.length;p++)this.actions.get(v[p]).setEnabled(0<
+EditorUi.prototype.updateActionStates=function(){for(var b=this.editor.graph,d=this.getSelectionState(),m=b.isEnabled()&&!b.isCellLocked(b.getDefaultParent()),n=!this.editor.chromeless||this.editor.editable,u="cut copy bold italic underline delete duplicate editStyle editTooltip editLink backgroundColor borderColor edit toFront toBack solid dashed pasteSize dotted fillColor gradientColor shadow fontColor formattedText rounded toggleRounded strokeColor sharp snapToGrid".split(" "),p=0;p<u.length;p++)this.actions.get(u[p]).setEnabled(0<
d.cells.length);this.actions.get("grid").setEnabled(n);this.actions.get("undo").setEnabled(this.canUndo()&&n);this.actions.get("redo").setEnabled(this.canRedo()&&n);this.actions.get("swap").setEnabled(2==d.cells.length&&2==d.vertices.length);this.actions.get("pasteSize").setEnabled(null!=this.copiedSize&&0<d.vertices.length);this.actions.get("pasteData").setEnabled(null!=this.copiedValue&&0<d.cells.length);this.actions.get("setAsDefaultStyle").setEnabled(1==b.getSelectionCount());this.actions.get("lockUnlock").setEnabled(!b.isSelectionEmpty());
this.actions.get("bringForward").setEnabled(1==d.cells.length);this.actions.get("sendBackward").setEnabled(1==d.cells.length);this.actions.get("rotation").setEnabled(1==d.vertices.length);this.actions.get("wordWrap").setEnabled(1==d.vertices.length);this.actions.get("autosize").setEnabled(0<d.vertices.length);this.actions.get("copySize").setEnabled(1==d.vertices.length);this.actions.get("clearWaypoints").setEnabled(d.connections);this.actions.get("clearAnchors").setEnabled(d.connections);this.actions.get("curved").setEnabled(0<
d.edges.length);this.actions.get("turn").setEnabled(0<d.cells.length);this.actions.get("group").setEnabled(1<d.cells.length||1==d.vertices.length&&0==b.model.getChildCount(d.cells[0])&&!b.isContainer(d.vertices[0]));this.actions.get("ungroup").setEnabled(!d.row&&!d.cell&&!d.table&&0<d.vertices.length&&(b.isContainer(d.vertices[0])||0<b.getModel().getChildCount(d.vertices[0])));this.actions.get("removeFromGroup").setEnabled(1==d.cells.length&&b.getModel().isVertex(b.getModel().getParent(d.cells[0])));
@@ -2284,72 +2284,72 @@ EditorUi.prototype.createSidebarContainer=function(){var b=document.createElemen
EditorUi.prototype.createUi=function(){this.statusContainer=this.createStatusContainer();this.menubar=this.editor.chromeless?null:this.menus.createMenubar(this.createDiv("geMenubar"));null!=this.menubar&&this.menubarContainer.appendChild(this.menubar.container);null!=this.menubar&&(this.editor.addListener("statusChanged",mxUtils.bind(this,function(){this.setStatusText(this.editor.getStatus())})),this.setStatusText(this.editor.getStatus()),this.menubar.container.appendChild(this.statusContainer),this.container.appendChild(this.menubarContainer));
this.sidebar=this.editor.chromeless?null:this.createSidebar(this.sidebarContainer);null!=this.sidebar&&this.container.appendChild(this.sidebarContainer);this.format=this.editor.chromeless?null:this.createFormat(this.formatContainer);null!=this.format&&this.container.appendChild(this.formatContainer);this.container.appendChild(this.diagramContainer);null!=this.container&&null!=this.tabContainer&&this.container.appendChild(this.tabContainer);this.toolbar=this.editor.chromeless?null:this.createToolbar(this.createDiv("geToolbar"));
null!=this.toolbar&&(this.toolbarContainer.appendChild(this.toolbar.container),this.container.appendChild(this.toolbarContainer));null!=this.sidebar&&(this.container.appendChild(this.hsplit),this.addSplitHandler(this.hsplit,!0,0,mxUtils.bind(this,function(b){this.hsplitPosition=b;this.refresh()})))};
-EditorUi.prototype.createStatusContainer=function(){var b=document.createElement("a");b.className="geStatus";mxEvent.addListener(b,"click",mxUtils.bind(this,function(d){var m=mxEvent.getSource(d);if(m!=b)for(;m.parentNode!=b;)m=m.parentNode;if("A"!=m.nodeName){var n=m.getAttribute("data-action");if("statusFunction"==n&&null!=this.editor.statusFunction)this.editor.statusFunction();else if(null!=n)m=this.actions.get(n),null!=m&&m.funct();else{n=m.getAttribute("data-title");var v=m.getAttribute("data-message");
-null!=n&&null!=v?this.showError(n,v):(m=m.getAttribute("data-link"),null!=m&&this.editor.graph.openLink(m))}mxEvent.consume(d)}}));return b};
+EditorUi.prototype.createStatusContainer=function(){var b=document.createElement("a");b.className="geStatus";mxEvent.addListener(b,"click",mxUtils.bind(this,function(d){var m=mxEvent.getSource(d);if(m!=b)for(;m.parentNode!=b;)m=m.parentNode;if("A"!=m.nodeName){var n=m.getAttribute("data-action");if("statusFunction"==n&&null!=this.editor.statusFunction)this.editor.statusFunction();else if(null!=n)m=this.actions.get(n),null!=m&&m.funct();else{n=m.getAttribute("data-title");var u=m.getAttribute("data-message");
+null!=n&&null!=u?this.showError(n,u):(m=m.getAttribute("data-link"),null!=m&&this.editor.graph.openLink(m))}mxEvent.consume(d)}}));return b};
EditorUi.prototype.setStatusText=function(b){this.statusContainer.innerHTML=Graph.sanitizeHtml(b);0==this.statusContainer.getElementsByTagName("div").length&&null!=b&&0<b.length&&(this.statusContainer.innerText="",b=this.createStatusDiv(b),this.statusContainer.appendChild(b));b=this.statusContainer.querySelectorAll('[data-effect="fade"]');if(null!=b)for(var d=0;d<b.length;d++)(function(m){mxUtils.setOpacity(m,0);mxUtils.setPrefixedStyle(m.style,"transform","scaleX(0)");mxUtils.setPrefixedStyle(m.style,
"transition","all 0.2s ease");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(m,100);mxUtils.setPrefixedStyle(m.style,"transform","scaleX(1)");mxUtils.setPrefixedStyle(m.style,"transition","all 1s ease");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(m.style,"transform","scaleX(0)");mxUtils.setOpacity(m,0);window.setTimeout(mxUtils.bind(this,function(){null!=m.parentNode&&m.parentNode.removeChild(m)}),1E3)}),Editor.updateStatusInterval/2)}),0)})(b[d])};
EditorUi.prototype.clearStatus=function(){this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus("")}))};EditorUi.prototype.updateStatus=function(b){null!=b&&b();this.lastStatusUpdate=b};EditorUi.prototype.updateStatusAgain=function(){null!=this.lastStatusUpdate&&this.lastStatusUpdate()};EditorUi.prototype.createStatusDiv=function(b){var d=document.createElement("div");d.className="geStatusDiv";d.setAttribute("title",b);d.innerText=b;return d};
EditorUi.prototype.createToolbar=function(b){return new Toolbar(this,b)};EditorUi.prototype.createSidebar=function(b){return new Sidebar(this,b)};EditorUi.prototype.createFormat=function(b){return new Format(this,b)};EditorUi.prototype.createDiv=function(b){var d=document.createElement("div");d.className=b;return d};
-EditorUi.prototype.addSplitHandler=function(b,d,m,n){function v(N){if(null!=z){var c=new mxPoint(mxEvent.getClientX(N),mxEvent.getClientY(N));n(Math.max(0,G+(d?c.x-z.x:z.y-c.y)-m));mxEvent.consume(N);G!=R()&&(U=!0,E=null)}}function p(N){v(N);z=G=null}var z=null,G=null,U=!0,E=null;mxClient.IS_POINTER&&(b.style.touchAction="none");var R=mxUtils.bind(this,function(){var N=parseInt(d?b.offsetLeft:b.offsetTop);d||(N+=m);return N});mxEvent.addGestureListeners(b,function(N){z=new mxPoint(mxEvent.getClientX(N),
-mxEvent.getClientY(N));G=R();U=!1;mxEvent.consume(N)});mxEvent.addListener(b,"click",mxUtils.bind(this,function(N){if(!U&&this.hsplitClickEnabled){var c=null!=E?E-m:0;E=R();n(c);mxEvent.consume(N)}}));mxEvent.addGestureListeners(document,null,v,p);this.destroyFunctions.push(function(){mxEvent.removeGestureListeners(document,null,v,p)})};
-EditorUi.prototype.prompt=function(b,d,m,n){b=new FilenameDialog(this,d,mxResources.get("apply"),function(v){m(n?v:parseFloat(v))},b);this.showDialog(b.container,300,80,!0,!0);b.init()};
-EditorUi.prototype.handleError=function(b,d,m,n,v){b=null!=b&&null!=b.error?b.error:b;if(null!=b||null!=d){v=mxUtils.htmlEntities(mxResources.get("unknownError"));var p=mxResources.get("ok");d=null!=d?d:mxResources.get("error");null!=b&&null!=b.message&&(v=mxUtils.htmlEntities(b.message));this.showError(d,v,p,m,null,null,null,null,null,null,null,null,n?m:null)}else null!=m&&m()};
-EditorUi.prototype.showError=function(b,d,m,n,v,p,z,G,U,E,R,N,c){b=new ErrorDialog(this,b,d,m||mxResources.get("ok"),n,v,p,z,N,G,U);d=Math.ceil(null!=d?d.length/50:1);this.showDialog(b.container,E||340,R||100+20*d,!0,!1,c);b.init()};EditorUi.prototype.showDialog=function(b,d,m,n,v,p,z,G,U,E){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,b,d,m,n,v,p,z,G,U,E);this.dialogs.push(this.dialog)};
-EditorUi.prototype.hideDialog=function(b,d,m){var n=null;if(null!=this.dialogs&&0<this.dialogs.length)for(var v=this.dialogs.length-1;0<=v;v--)if(!this.dialogs[v].closing){n=this.dialogs[v];break}null==n||null!=m&&m!=this.dialog.container.firstChild||(n.closing=!0,0==n.close(b,d)?delete n.closing:(delete n.closing,b=mxUtils.lastIndexOf(this.dialogs,n),0<=b&&this.dialogs.splice(b,1),this.dialog=0<this.dialogs.length?this.dialogs[this.dialogs.length-1]:null,this.editor.fireEvent(new mxEventObject("hideDialog",
+EditorUi.prototype.addSplitHandler=function(b,d,m,n){function u(N){if(null!=z){var c=new mxPoint(mxEvent.getClientX(N),mxEvent.getClientY(N));n(Math.max(0,G+(d?c.x-z.x:z.y-c.y)-m));mxEvent.consume(N);G!=R()&&(U=!0,E=null)}}function p(N){u(N);z=G=null}var z=null,G=null,U=!0,E=null;mxClient.IS_POINTER&&(b.style.touchAction="none");var R=mxUtils.bind(this,function(){var N=parseInt(d?b.offsetLeft:b.offsetTop);d||(N+=m);return N});mxEvent.addGestureListeners(b,function(N){z=new mxPoint(mxEvent.getClientX(N),
+mxEvent.getClientY(N));G=R();U=!1;mxEvent.consume(N)});mxEvent.addListener(b,"click",mxUtils.bind(this,function(N){if(!U&&this.hsplitClickEnabled){var c=null!=E?E-m:0;E=R();n(c);mxEvent.consume(N)}}));mxEvent.addGestureListeners(document,null,u,p);this.destroyFunctions.push(function(){mxEvent.removeGestureListeners(document,null,u,p)})};
+EditorUi.prototype.prompt=function(b,d,m,n){b=new FilenameDialog(this,d,mxResources.get("apply"),function(u){m(n?u:parseFloat(u))},b);this.showDialog(b.container,300,80,!0,!0);b.init()};
+EditorUi.prototype.handleError=function(b,d,m,n,u){b=null!=b&&null!=b.error?b.error:b;if(null!=b||null!=d){u=mxUtils.htmlEntities(mxResources.get("unknownError"));var p=mxResources.get("ok");d=null!=d?d:mxResources.get("error");null!=b&&null!=b.message&&(u=mxUtils.htmlEntities(b.message));this.showError(d,u,p,m,null,null,null,null,null,null,null,null,n?m:null)}else null!=m&&m()};
+EditorUi.prototype.showError=function(b,d,m,n,u,p,z,G,U,E,R,N,c){b=new ErrorDialog(this,b,d,m||mxResources.get("ok"),n,u,p,z,N,G,U);d=Math.ceil(null!=d?d.length/50:1);this.showDialog(b.container,E||340,R||100+20*d,!0,!1,c);b.init()};EditorUi.prototype.showDialog=function(b,d,m,n,u,p,z,G,U,E){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,b,d,m,n,u,p,z,G,U,E);this.dialogs.push(this.dialog)};
+EditorUi.prototype.hideDialog=function(b,d,m){var n=null;if(null!=this.dialogs&&0<this.dialogs.length)for(var u=this.dialogs.length-1;0<=u;u--)if(!this.dialogs[u].closing){n=this.dialogs[u];break}null==n||null!=m&&m!=this.dialog.container.firstChild||(n.closing=!0,0==n.close(b,d)?delete n.closing:(delete n.closing,b=mxUtils.lastIndexOf(this.dialogs,n),0<=b&&this.dialogs.splice(b,1),this.dialog=0<this.dialogs.length?this.dialogs[this.dialogs.length-1]:null,this.editor.fireEvent(new mxEventObject("hideDialog",
"dialog",n)),null==this.dialog&&null!=this.editor.graph.container&&"hidden"!=this.editor.graph.container.style.visibility&&window.setTimeout(mxUtils.bind(this,function(){null==this.editor||null!=this.dialogs&&0!=this.dialogs.length||(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 d=b.getSelectionCells(),m=new mxDictionary,n=[],v=0;v<d.length;v++){var p=b.isTableCell(d[v])?b.model.getParent(d[v]):d[v];null==p||m.get(p)||(m.put(p,!0),n.push(p))}b.setSelectionCells(b.duplicateCells(n,!1))}catch(z){this.handleError(z)}};
-EditorUi.prototype.pickColor=function(b,d,m,n,v){var p=this.editor.graph,z=p.cellEditor.saveSelection(),G=(v?240:290)+17*(Math.ceil(ColorDialog.prototype.presetColors.length/12)+Math.ceil(ColorDialog.prototype.defaultColors.length/12));b=new ColorDialog(this,b,function(U){p.cellEditor.restoreSelection(z);d(U)},function(){p.cellEditor.restoreSelection(z)},m,n,v);this.showDialog(b.container,230,G,!0,!1);b.init()};
+EditorUi.prototype.ctrlEnter=function(){var b=this.editor.graph;if(b.isEnabled())try{for(var d=b.getSelectionCells(),m=new mxDictionary,n=[],u=0;u<d.length;u++){var p=b.isTableCell(d[u])?b.model.getParent(d[u]):d[u];null==p||m.get(p)||(m.put(p,!0),n.push(p))}b.setSelectionCells(b.duplicateCells(n,!1))}catch(z){this.handleError(z)}};
+EditorUi.prototype.pickColor=function(b,d,m,n,u){var p=this.editor.graph,z=p.cellEditor.saveSelection(),G=(u?240:290)+17*(Math.ceil(ColorDialog.prototype.presetColors.length/12)+Math.ceil(ColorDialog.prototype.defaultColors.length/12));b=new ColorDialog(this,b,function(U){p.cellEditor.restoreSelection(z);d(U)},function(){p.cellEditor.restoreSelection(z)},m,n,u);this.showDialog(b.container,230,G,!0,!1);b.init()};
EditorUi.prototype.openFile=function(){window.openFile=new OpenFile(mxUtils.bind(this,function(b){this.hideDialog(b)}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:320,Editor.useLocalStorage?480:220,!0,!0,function(){window.openFile=null})};
-EditorUi.prototype.base64ToBlob=function(b,d){d=d||"";b=atob(b);for(var m=b.length,n=Math.ceil(m/1024),v=Array(n),p=0;p<n;++p){for(var z=1024*p,G=Math.min(z+1024,m),U=Array(G-z),E=0;z<G;++E,++z)U[E]=b[z].charCodeAt(0);v[p]=new Uint8Array(U)}return new Blob(v,{type:d})};
-EditorUi.prototype.extractGraphModelFromHtml=function(b){var d=null;try{var m=b.indexOf("&lt;mxGraphModel ");if(0<=m){var n=b.lastIndexOf("&lt;/mxGraphModel&gt;");n>m&&(d=b.substring(m,n+21).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}}catch(v){}return d};
+EditorUi.prototype.base64ToBlob=function(b,d){d=d||"";b=atob(b);for(var m=b.length,n=Math.ceil(m/1024),u=Array(n),p=0;p<n;++p){for(var z=1024*p,G=Math.min(z+1024,m),U=Array(G-z),E=0;z<G;++E,++z)U[E]=b[z].charCodeAt(0);u[p]=new Uint8Array(U)}return new Blob(u,{type:d})};
+EditorUi.prototype.extractGraphModelFromHtml=function(b){var d=null;try{var m=b.indexOf("&lt;mxGraphModel ");if(0<=m){var n=b.lastIndexOf("&lt;/mxGraphModel&gt;");n>m&&(d=b.substring(m,n+21).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}}catch(u){}return d};
EditorUi.prototype.extractGraphModelFromEvent=function(b){var d=null,m=null;null!=b&&(b=null!=b.dataTransfer?b.dataTransfer:b.clipboardData,null!=b&&(m=0<=mxUtils.indexOf(b.types,"text/html")?b.getData("text/html"):null,0<=mxUtils.indexOf(b.types,"text/plain")&&(null==m||0==m.length)&&(m=b.getData("text/plain")),null!=m&&(m=Graph.zapGremlins(mxUtils.trim(m)),b=this.extractGraphModelFromHtml(m),null!=b&&(m=b))));null!=m&&this.isCompatibleString(m)&&(d=m);return d};
EditorUi.prototype.isCompatibleString=function(b){return!1};EditorUi.prototype.saveFile=function(b){b||null==this.editor.filename?(b=new FilenameDialog(this,this.editor.getOrCreateFilename(),mxResources.get("save"),mxUtils.bind(this,function(d){this.save(d)}),null,mxUtils.bind(this,function(d){if(null!=d&&0<d.length)return!0;mxUtils.confirm(mxResources.get("invalidName"));return!1})),this.showDialog(b.container,340,96,!0,!0),b.init()):this.save(this.editor.getOrCreateFilename())};
EditorUi.prototype.save=function(b){if(null!=b){this.editor.graph.isEditing()&&this.editor.graph.stopEditing();var d=mxUtils.getXml(this.editor.getGraphXml());try{if(Editor.useLocalStorage){if(null!=localStorage.getItem(b)&&!mxUtils.confirm(mxResources.get("replaceIt",[b])))return;localStorage.setItem(b,d);this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus(mxUtils.htmlEntities(mxResources.get("saved"))+" "+new Date)}))}else if(d.length<MAX_REQUEST_SIZE)(new mxXmlRequest(SAVE_URL,
"filename="+encodeURIComponent(b)+"&xml="+encodeURIComponent(d))).simulate(document,"_blank");else{mxUtils.alert(mxResources.get("drawingTooLarge"));mxUtils.popup(d);return}this.editor.setModified(!1);this.editor.setFilename(b);this.updateDocumentTitle()}catch(m){this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus(mxUtils.htmlEntities(mxResources.get("errorSavingFile")))}))}}};
EditorUi.prototype.executeLayouts=function(b,d){this.executeLayout(mxUtils.bind(this,function(){var m=new mxCompositeLayout(this.editor.graph,b),n=this.editor.graph.getSelectionCells();m.execute(this.editor.graph.getDefaultParent(),0==n.length?null:n)}),!0,d)};
-EditorUi.prototype.executeLayout=function(b,d,m){var n=this.editor.graph;n.getModel().beginUpdate();try{b()}catch(v){throw v;}finally{this.allowAnimation&&d&&n.isEnabled()?(b=new mxMorphing(n),b.addListener(mxEvent.DONE,mxUtils.bind(this,function(){n.getModel().endUpdate();null!=m&&m()})),b.startAnimation()):(n.getModel().endUpdate(),null!=m&&m())}};
-EditorUi.prototype.showImageDialog=function(b,d,m,n){n=this.editor.graph.cellEditor;var v=n.saveSelection(),p=mxUtils.prompt(b,d);n.restoreSelection(v);if(null!=p&&0<p.length){var z=new Image;z.onload=function(){m(p,z.width,z.height)};z.onerror=function(){m(null);mxUtils.alert(mxResources.get("fileNotFound"))};z.src=p}else m(null)};EditorUi.prototype.showLinkDialog=function(b,d,m){b=new LinkDialog(this,b,d,m);this.showDialog(b.container,420,90,!0,!0);b.init()};
+EditorUi.prototype.executeLayout=function(b,d,m){var n=this.editor.graph;n.getModel().beginUpdate();try{b()}catch(u){throw u;}finally{this.allowAnimation&&d&&n.isEnabled()?(b=new mxMorphing(n),b.addListener(mxEvent.DONE,mxUtils.bind(this,function(){n.getModel().endUpdate();null!=m&&m()})),b.startAnimation()):(n.getModel().endUpdate(),null!=m&&m())}};
+EditorUi.prototype.showImageDialog=function(b,d,m,n){n=this.editor.graph.cellEditor;var u=n.saveSelection(),p=mxUtils.prompt(b,d);n.restoreSelection(u);if(null!=p&&0<p.length){var z=new Image;z.onload=function(){m(p,z.width,z.height)};z.onerror=function(){m(null);mxUtils.alert(mxResources.get("fileNotFound"))};z.src=p}else m(null)};EditorUi.prototype.showLinkDialog=function(b,d,m){b=new LinkDialog(this,b,d,m);this.showDialog(b.container,420,90,!0,!0);b.init()};
EditorUi.prototype.showDataDialog=function(b){null!=b&&"undefined"!==typeof window.EditDataDialog&&(b=new EditDataDialog(this,b),this.showDialog(b.container,480,420,!0,!1,null,!1,null,new mxRectangle(0,0,440,220)),b.init())};
EditorUi.prototype.showBackgroundImageDialog=function(b,d){b=null!=b?b:mxUtils.bind(this,function(n){n=new ChangePageSetup(this,null,n);n.ignoreColor=!0;this.editor.graph.model.execute(n)});var m=mxUtils.prompt(mxResources.get("backgroundImage"),null!=d?d.src:"");null!=m&&0<m.length?(d=new Image,d.onload=function(){b(new mxImage(m,d.width,d.height),!1)},d.onerror=function(){b(null,!0);mxUtils.alert(mxResources.get("fileNotFound"))},d.src=m):b(null)};
EditorUi.prototype.setBackgroundImage=function(b){this.editor.graph.setBackgroundImage(b);this.editor.graph.view.validateBackgroundImage();this.fireEvent(new mxEventObject("backgroundImageChanged"))};EditorUi.prototype.confirm=function(b,d,m){mxUtils.confirm(b)?null!=d&&d():null!=m&&m()};EditorUi.prototype.createOutline=function(b){var d=new mxOutline(this.editor.graph);mxEvent.addListener(window,"resize",function(){d.update(!1)});return d};
EditorUi.prototype.altShiftActions={65:"connectionArrows",82:"clearWaypoints",76:"editLink",79:"connectionPoints",81:"editConnectionPoints",84:"editTooltip",86:"pasteSize",70:"copySize",66:"copyData",69:"pasteData"};EditorUi.prototype.ctrlAltShiftActions={70:"bringForward",66:"sendBackward",88:"copyAsSvg"};EditorUi.prototype.ctrlAltActions={88:"copyAsImage"};
EditorUi.prototype.createKeyHandler=function(b){function d(N,c,g){if(!n.isSelectionEmpty()&&n.isEnabled()){c=null!=c?c:1;var k=n.getCompositeParents(n.getSelectionCells()),q=0<k.length?k[0]:null;if(null!=q)if(g){n.getModel().beginUpdate();try{for(q=0;q<k.length;q++)if(n.getModel().isVertex(k[q])&&n.isCellResizable(k[q])){var A=n.getCellGeometry(k[q]);null!=A&&(A=A.clone(),37==N?A.width=Math.max(0,A.width-c):38==N?A.height=Math.max(0,A.height-c):39==N?A.width+=c:40==N&&(A.height+=c),n.getModel().setGeometry(k[q],
A))}}finally{n.getModel().endUpdate()}}else{A=n.model.getParent(q);var D=n.getView().scale;g=null;1==n.getSelectionCount()&&n.model.isVertex(q)&&null!=n.layoutManager&&!n.isCellLocked(q)&&(g=n.layoutManager.getLayout(A));if(null!=g&&g.constructor==mxStackLayout)c=A.getIndex(q),37==N||38==N?n.model.add(A,q,Math.max(0,c-1)):(39==N||40==N)&&n.model.add(A,q,Math.min(n.model.getChildCount(A),c+1));else{var H=n.graphHandler;null!=H&&(null==H.first&&H.start(q,0,0,n.getMovableCells(k)),null!=H.first&&(q=
-k=0,37==N?k=-c:38==N?q=-c:39==N?k=c:40==N&&(q=c),H.currentDx+=k*D,H.currentDy+=q*D,H.checkPreview(),H.updatePreview()),null!=z&&window.clearTimeout(z),z=window.setTimeout(function(){if(null!=H.first){var K=H.roundLength(H.currentDx/D),P=H.roundLength(H.currentDy/D);H.moveCells(H.cells,K,P);H.reset()}},400))}}}}var m=this,n=this.editor.graph,v=new mxKeyHandler(n),p=v.isEventIgnored;v.isEventIgnored=function(N){return 188==N.keyCode&&this.isControlDown(N)&&!this.graph.cellEditor.isContentEditing()?
+k=0,37==N?k=-c:38==N?q=-c:39==N?k=c:40==N&&(q=c),H.currentDx+=k*D,H.currentDy+=q*D,H.checkPreview(),H.updatePreview()),null!=z&&window.clearTimeout(z),z=window.setTimeout(function(){if(null!=H.first){var K=H.roundLength(H.currentDx/D),P=H.roundLength(H.currentDy/D);H.moveCells(H.cells,K,P);H.reset()}},400))}}}}var m=this,n=this.editor.graph,u=new mxKeyHandler(n),p=u.isEventIgnored;u.isEventIgnored=function(N){return 188==N.keyCode&&this.isControlDown(N)&&!this.graph.cellEditor.isContentEditing()?
!0:!(mxEvent.isShiftDown(N)&&9==N.keyCode)&&(!this.isControlDown(N)||mxEvent.isShiftDown(N)||90!=N.keyCode&&89!=N.keyCode&&188!=N.keyCode&&190!=N.keyCode&&85!=N.keyCode&&83!=N.keyCode)&&(66!=N.keyCode&&73!=N.keyCode||!this.isControlDown(N)||this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&(109!=N.keyCode&&107!=N.keyCode||!this.isControlDown(N)&&!mxEvent.isShiftDown(N)||!this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&p.apply(this,arguments)};
-v.isEnabledForEvent=function(N){return!mxEvent.isConsumed(N)&&this.isGraphEvent(N)&&this.isEnabled()&&(null==m.dialogs||0==m.dialogs.length)};v.isControlDown=function(N){return mxEvent.isControlDown(N)||mxClient.IS_MAC&&N.metaKey};var z=null,G={37:mxConstants.DIRECTION_WEST,38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},U=v.getFunction;mxKeyHandler.prototype.getFunction=function(N){if(n.isEnabled()){var c=null;mxEvent.isShiftDown(N)&&this.isControlDown(N)&&
+u.isEnabledForEvent=function(N){return!mxEvent.isConsumed(N)&&this.isGraphEvent(N)&&this.isEnabled()&&(null==m.dialogs||0==m.dialogs.length)};u.isControlDown=function(N){return mxEvent.isControlDown(N)||mxClient.IS_MAC&&N.metaKey};var z=null,G={37:mxConstants.DIRECTION_WEST,38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},U=u.getFunction;mxKeyHandler.prototype.getFunction=function(N){if(n.isEnabled()){var c=null;mxEvent.isShiftDown(N)&&this.isControlDown(N)&&
mxEvent.isAltDown(N)?c=m.actions.get(m.ctrlAltShiftActions[N.keyCode]):mxEvent.isShiftDown(N)&&mxEvent.isAltDown(N)?c=m.actions.get(m.altShiftActions[N.keyCode]):this.isControlDown(N)&&mxEvent.isAltDown(N)&&(c=m.actions.get(m.ctrlAltActions[N.keyCode]));if(null!=c)return c.funct;if("/"==N.key&&!this.isControlDown(N)&&!mxEvent.isAltDown(N))return function(){var g=document.getElementById("geOmniSearch");null!=g&&30<g.clientWidth&&g.focus()};if(null!=G[N.keyCode]&&!n.isSelectionEmpty())if(!this.isControlDown(N)&&
mxEvent.isShiftDown(N)&&mxEvent.isAltDown(N)){if(n.model.isVertex(n.getSelectionCell()))return function(){var g=n.connectVertex(n.getSelectionCell(),G[N.keyCode],n.defaultEdgeLength,N,!0);null!=g&&0<g.length&&(1==g.length&&n.model.isEdge(g[0])?n.setSelectionCell(n.model.getTerminal(g[0],!1)):n.setSelectionCell(g[g.length-1]),n.scrollCellToVisible(n.getSelectionCell()),null!=m.hoverIcons&&m.hoverIcons.update(n.view.getState(n.getSelectionCell())))}}else return this.isControlDown(N)?function(){d(N.keyCode,
-mxEvent.isShiftDown(N)?n.gridSize:null,!0)}:function(){d(N.keyCode,mxEvent.isShiftDown(N)?n.gridSize:null)}}return U.apply(this,arguments)};v.bindAction=mxUtils.bind(this,function(N,c,g,k){var q=this.actions.get(g);null!=q&&(g=function(){q.isEnabled()&&q.funct.apply(this,arguments)},c?k?v.bindControlShiftKey(N,g):v.bindControlKey(N,g):k?v.bindShiftKey(N,g):v.bindKey(N,g))});var E=this,R=v.escape;v.escape=function(N){R.apply(this,arguments)};v.enter=function(){};v.bindControlShiftKey(36,function(){n.exitGroup()});
-v.bindControlShiftKey(35,function(){n.enterGroup()});v.bindShiftKey(36,function(){n.home()});v.bindKey(35,function(){n.refresh()});v.bindAction(80,!0,"print");v.bindAction(107,!0,"zoomIn");v.bindAction(109,!0,"zoomOut");v.bindAction(61,!0,"zoomIn");v.bindAction(187,!0,"zoomIn");v.bindAction(222,!0,"zoomIn");v.bindAction(173,!0,"zoomOut");v.bindAction(189,!0,"zoomOut");if(!this.editor.chromeless||this.editor.editable)v.bindAction(79,!0,"outline",!0),v.bindControlKey(36,function(){n.isEnabled()&&n.foldCells(!0)}),
-v.bindControlKey(35,function(){n.isEnabled()&&n.foldCells(!1)}),v.bindControlKey(13,function(){E.ctrlEnter()}),v.bindAction(8,!1,"delete"),v.bindAction(8,!0,"deleteAll"),v.bindAction(8,!1,"deleteLabels",!0),v.bindAction(46,!1,"delete"),v.bindAction(46,!0,"deleteAll"),v.bindAction(46,!1,"deleteLabels",!0),v.bindAction(36,!1,"resetView"),v.bindAction(72,!0,"fitWindow",!0),v.bindAction(74,!0,"fitPage"),v.bindAction(74,!0,"fitTwoPages",!0),v.bindAction(48,!0,"customZoom"),v.bindAction(82,!0,"turn"),v.bindAction(82,
-!0,"clearDefaultStyle",!0),v.bindAction(83,!0,"save"),v.bindAction(83,!0,"saveAs",!0),v.bindAction(65,!0,"selectAll"),v.bindAction(65,!0,"selectNone",!0),"1"!=urlParams.dev&&v.bindAction(73,!0,"selectVertices",!0),v.bindAction(69,!0,"selectEdges",!0),v.bindAction(69,!0,"editStyle"),v.bindAction(66,!0,"bold"),v.bindAction(66,!0,"toBack",!0),v.bindAction(70,!0,"toFront",!0),v.bindAction(68,!0,"duplicate"),v.bindAction(68,!0,"setAsDefaultStyle",!0),v.bindAction(90,!0,"undo"),v.bindAction(90,!0,"redo",
-!0),v.bindAction(89,!0,"redo"),v.bindAction(89,!0,"autosize",!0),v.bindAction(88,!0,"cut"),v.bindAction(67,!0,"copy"),v.bindAction(86,!0,"paste"),v.bindAction(71,!0,"group"),v.bindAction(77,!0,"editData"),v.bindAction(71,!0,"grid",!0),v.bindAction(73,!0,"italic"),v.bindAction(76,!0,"lockUnlock"),v.bindAction(76,!0,"layers",!0),v.bindAction(80,!0,"format",!0),v.bindAction(85,!0,"underline"),v.bindAction(85,!0,"ungroup",!0),v.bindAction(109,!0,"decreaseFontSize",!0),v.bindAction(107,!0,"increaseFontSize",
-!0),v.bindAction(219,!0,"decreaseFontSize",!0),v.bindAction(221,!0,"increaseFontSize",!0),v.bindAction(190,!0,"superscript"),v.bindAction(188,!0,"subscript"),v.bindAction(13,!1,"keyPressEnter"),v.bindKey(113,function(){n.isEnabled()&&n.startEditingAtCell()});return v};EditorUi.prototype.createMenuElement=function(b,d,m){var n=document.createElement("a");this.addMenuHandler(n,d,m);mxUtils.write(n,b);n.className="geItem";return n};
-EditorUi.prototype.addMenuHandler=function(b,d,m,n){if(null!=d){var v=null,p=!0,z=mxUtils.bind(this,function(G){null!=m&&m(G);if(!mxEvent.isConsumed(G)&&p&&(null==b.enabled||b.enabled)){this.editor.graph.popupMenuHandler.hideMenu();var U=new mxPopupMenu(d);U.smartSeparators=!0;U.showDisabled=!0;U.autoExpand=!0;U.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(U,arguments);this.resetCurrentMenu();v=null;U.destroy()});this.menus.autoPopup||null==this.currentMenu||this.hideCurrentMenu();
-var E=mxUtils.getOffset(b);U.popup(E.x,E.y+b.offsetHeight,null,G);this.setCurrentMenu(U,b);v=U}n||mxEvent.consume(G)});mxEvent.addListener(b,"mousemove",mxUtils.bind(this,function(G){if(this.menus.autoPopup&&null!=this.currentMenu&&this.currentMenuElt!=b&&null!=this.currentMenuElt){var U=this.currentMenuElt;this.hideCurrentMenu();U.parentNode==b.parentNode&&"INPUT"!=b.nodeName&&z(G)}}));mxEvent.addListener(b,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(G){!this.menus.autoPopup&&
-null!=this.currentMenu&&this.currentMenuElt!=b&&mxEvent.isMouseEvent(G)&&this.hideCurrentMenu();p=null==this.currentMenu;"INPUT"!=mxEvent.getSource(G).nodeName?G.preventDefault():G.stopPropagation()}));mxEvent.addListener(b,"click",mxUtils.bind(this,function(G){z(G);p=!0}));n&&(mxEvent.addListener(b,"focus",mxUtils.bind(this,function(G){z(G);p=!0})),mxEvent.addListener(b,"blur",mxUtils.bind(this,function(G){this.currentMenu==v&&this.hideCurrentMenu()})),mxEvent.addListener(b,"keyup",mxUtils.bind(this,
+mxEvent.isShiftDown(N)?n.gridSize:null,!0)}:function(){d(N.keyCode,mxEvent.isShiftDown(N)?n.gridSize:null)}}return U.apply(this,arguments)};u.bindAction=mxUtils.bind(this,function(N,c,g,k){var q=this.actions.get(g);null!=q&&(g=function(){q.isEnabled()&&q.funct.apply(this,arguments)},c?k?u.bindControlShiftKey(N,g):u.bindControlKey(N,g):k?u.bindShiftKey(N,g):u.bindKey(N,g))});var E=this,R=u.escape;u.escape=function(N){R.apply(this,arguments)};u.enter=function(){};u.bindControlShiftKey(36,function(){n.exitGroup()});
+u.bindControlShiftKey(35,function(){n.enterGroup()});u.bindShiftKey(36,function(){n.home()});u.bindKey(35,function(){n.refresh()});u.bindAction(80,!0,"print");u.bindAction(107,!0,"zoomIn");u.bindAction(109,!0,"zoomOut");u.bindAction(61,!0,"zoomIn");u.bindAction(187,!0,"zoomIn");u.bindAction(222,!0,"zoomIn");u.bindAction(173,!0,"zoomOut");u.bindAction(189,!0,"zoomOut");if(!this.editor.chromeless||this.editor.editable)u.bindAction(79,!0,"outline",!0),u.bindControlKey(36,function(){n.isEnabled()&&n.foldCells(!0)}),
+u.bindControlKey(35,function(){n.isEnabled()&&n.foldCells(!1)}),u.bindControlKey(13,function(){E.ctrlEnter()}),u.bindAction(8,!1,"delete"),u.bindAction(8,!0,"deleteAll"),u.bindAction(8,!1,"deleteLabels",!0),u.bindAction(46,!1,"delete"),u.bindAction(46,!0,"deleteAll"),u.bindAction(46,!1,"deleteLabels",!0),u.bindAction(36,!1,"resetView"),u.bindAction(72,!0,"fitWindow",!0),u.bindAction(74,!0,"fitPage"),u.bindAction(74,!0,"fitTwoPages",!0),u.bindAction(48,!0,"customZoom"),u.bindAction(82,!0,"turn"),u.bindAction(82,
+!0,"clearDefaultStyle",!0),u.bindAction(83,!0,"save"),u.bindAction(83,!0,"saveAs",!0),u.bindAction(65,!0,"selectAll"),u.bindAction(65,!0,"selectNone",!0),"1"!=urlParams.dev&&u.bindAction(73,!0,"selectVertices",!0),u.bindAction(69,!0,"selectEdges",!0),u.bindAction(69,!0,"editStyle"),u.bindAction(66,!0,"bold"),u.bindAction(66,!0,"toBack",!0),u.bindAction(70,!0,"toFront",!0),u.bindAction(68,!0,"duplicate"),u.bindAction(68,!0,"setAsDefaultStyle",!0),u.bindAction(90,!0,"undo"),u.bindAction(90,!0,"redo",
+!0),u.bindAction(89,!0,"redo"),u.bindAction(89,!0,"autosize",!0),u.bindAction(88,!0,"cut"),u.bindAction(67,!0,"copy"),u.bindAction(86,!0,"paste"),u.bindAction(71,!0,"group"),u.bindAction(77,!0,"editData"),u.bindAction(71,!0,"grid",!0),u.bindAction(73,!0,"italic"),u.bindAction(76,!0,"lockUnlock"),u.bindAction(76,!0,"layers",!0),u.bindAction(80,!0,"format",!0),u.bindAction(85,!0,"underline"),u.bindAction(85,!0,"ungroup",!0),u.bindAction(109,!0,"decreaseFontSize",!0),u.bindAction(107,!0,"increaseFontSize",
+!0),u.bindAction(219,!0,"decreaseFontSize",!0),u.bindAction(221,!0,"increaseFontSize",!0),u.bindAction(190,!0,"superscript"),u.bindAction(188,!0,"subscript"),u.bindAction(13,!1,"keyPressEnter"),u.bindKey(113,function(){n.isEnabled()&&n.startEditingAtCell()});return u};EditorUi.prototype.createMenuElement=function(b,d,m){var n=document.createElement("a");this.addMenuHandler(n,d,m);mxUtils.write(n,b);n.className="geItem";return n};
+EditorUi.prototype.addMenuHandler=function(b,d,m,n){if(null!=d){var u=null,p=!0,z=mxUtils.bind(this,function(G){null!=m&&m(G);if(!mxEvent.isConsumed(G)&&p&&(null==b.enabled||b.enabled)){this.editor.graph.popupMenuHandler.hideMenu();var U=new mxPopupMenu(d);U.smartSeparators=!0;U.showDisabled=!0;U.autoExpand=!0;U.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(U,arguments);this.resetCurrentMenu();u=null;U.destroy()});this.menus.autoPopup||null==this.currentMenu||this.hideCurrentMenu();
+var E=mxUtils.getOffset(b);U.popup(E.x,E.y+b.offsetHeight,null,G);this.setCurrentMenu(U,b);u=U}n||mxEvent.consume(G)});mxEvent.addListener(b,"mousemove",mxUtils.bind(this,function(G){if(this.menus.autoPopup&&null!=this.currentMenu&&this.currentMenuElt!=b&&null!=this.currentMenuElt){var U=this.currentMenuElt;this.hideCurrentMenu();U.parentNode==b.parentNode&&"INPUT"!=b.nodeName&&z(G)}}));mxEvent.addListener(b,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(G){!this.menus.autoPopup&&
+null!=this.currentMenu&&this.currentMenuElt!=b&&mxEvent.isMouseEvent(G)&&this.hideCurrentMenu();p=null==this.currentMenu;"INPUT"!=mxEvent.getSource(G).nodeName?G.preventDefault():G.stopPropagation()}));mxEvent.addListener(b,"click",mxUtils.bind(this,function(G){z(G);p=!0}));n&&(mxEvent.addListener(b,"focus",mxUtils.bind(this,function(G){z(G);p=!0})),mxEvent.addListener(b,"blur",mxUtils.bind(this,function(G){this.currentMenu==u&&this.hideCurrentMenu()})),mxEvent.addListener(b,"keyup",mxUtils.bind(this,
function(G){this.hideCurrentMenu();13!=G.keyCode&&27!=G.keyCode&&(z(G),p=!0)})))}};
-EditorUi.prototype.addShapePicker=function(b,d){var m=this.editor.graph;mxEvent.addListener(b,"click",mxUtils.bind(this,function(n){if(this.isShapePickerVisible())this.hideShapePicker();else{var v=mxUtils.getOffset(b);Editor.inlineFullscreen||null==this.embedViewport?d?(v.x-=this.diagramContainer.offsetLeft+30,v.y=b.offsetHeight-2):(v.x+=16+b.offsetHeight+this.sketchPickerMenuElt.offsetWidth/2,v.y+=20):(v.x=0,v.y=b.offsetTop);this.showShapePicker(Math.max(this.diagramContainer.scrollLeft+Math.max(24,
-v.x)),this.diagramContainer.scrollTop+v.y,null,null,null,null,mxUtils.bind(this,function(p){return m.getCenterInsertPoint(m.getBoundingBoxFromGeometry(p,!0))}),d,!1)}mxEvent.consume(n)}))};
+EditorUi.prototype.addShapePicker=function(b,d){var m=this.editor.graph;mxEvent.addListener(b,"click",mxUtils.bind(this,function(n){if(this.isShapePickerVisible())this.hideShapePicker();else{var u=mxUtils.getOffset(b);Editor.inlineFullscreen||null==this.embedViewport?d?(u.x-=this.diagramContainer.offsetLeft+30,u.y=b.offsetHeight-2):(u.x+=16+b.offsetHeight+this.sketchPickerMenuElt.offsetWidth/2,u.y+=20):(u.x=0,u.y=b.offsetTop);this.showShapePicker(Math.max(this.diagramContainer.scrollLeft+Math.max(24,
+u.x)),this.diagramContainer.scrollTop+u.y,null,null,null,null,mxUtils.bind(this,function(p){return m.getCenterInsertPoint(m.getBoundingBoxFromGeometry(p,!0))}),d,!1)}mxEvent.consume(n)}))};
EditorUi.prototype.createZoomInput=function(b){var d=document.createElement("input");d.className="geButton geZoomInput";d.style.backgroundImage="url("+Editor.thinExpandImage+")";d.setAttribute("type","text");d.setAttribute("value","100%");var m=this.menus.get("viewZoom");this.dependsOnLanguage(mxUtils.bind(this,function(){d.setAttribute("title",mxResources.get("zoom")+" (Alt+Mousewheel)")}));(b||mxClient.IS_TOUCH)&&d.setAttribute("readonly","true");var n=!1;mxEvent.addGestureListeners(d,mxUtils.bind(this,
-function(v){n=!1;mxClient.IS_TOUCH||mxEvent.getSource(v)!=d||document.activeElement==d||(d.focus(),mxClient.IS_GC||mxClient.IS_FF?d.select():document.execCommand("selectAll",!1,null),n=!0)}),mxUtils.bind(this,function(v){mxEvent.getSource(v)==d&&n&&mxEvent.consume(v)}),mxUtils.bind(this,function(v){n&&(mxEvent.consume(v),n=!1)}));this.addMenuHandler(d,m.funct);mxUtils.bind(this,function(v){mxEvent.addListener(v,"click",mxUtils.bind(this,function(z){mxEvent.isAltDown(z)?(this.hideCurrentMenu(),this.actions.get("customZoom").funct(),
+function(u){n=!1;mxClient.IS_TOUCH||mxEvent.getSource(u)!=d||document.activeElement==d||(d.focus(),mxClient.IS_GC||mxClient.IS_FF?d.select():document.execCommand("selectAll",!1,null),n=!0)}),mxUtils.bind(this,function(u){mxEvent.getSource(u)==d&&n&&mxEvent.consume(u)}),mxUtils.bind(this,function(u){n&&(mxEvent.consume(u),n=!1)}));this.addMenuHandler(d,m.funct);mxUtils.bind(this,function(u){mxEvent.addListener(u,"click",mxUtils.bind(this,function(z){mxEvent.isAltDown(z)?(this.hideCurrentMenu(),this.actions.get("customZoom").funct(),
mxEvent.consume(z)):mxEvent.isShiftDown(z)&&(this.hideCurrentMenu(),this.actions.get("smartFit").funct(),mxEvent.consume(z))}));var p=mxUtils.bind(this,function(z,G,U){d.value=Math.round(100*this.editor.graph.view.scale*(null!=U?U:1))+"%";document.activeElement==d&&this.editor.graph.container.focus()});mxEvent.addListener(d,"keydown",mxUtils.bind(this,function(z){if(27==z.keyCode||13==z.keyCode||9==z.keyCode)27==z.keyCode||isNaN(parseInt(d.value))?p():this.editor.graph.zoomTo(parseInt(d.value)/100),
this.hideCurrentMenu(),mxEvent.consume(z)}));this.editor.graph.view.addListener(mxEvent.EVENT_SCALE,p);this.editor.addListener("resetGraphView",p);this.editor.addListener("pageSelected",p);mxEvent.addListener(d,"blur",p);this.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(z,G){p(z,G,G.getProperty("factor"))}))})(d);return d};
EditorUi.prototype.createHelpIcon=function(b,d){d=document.createElement("img");d.setAttribute("src",Editor.helpImage);d.setAttribute("title",mxResources.get("help")+" ("+b+")");d.className="geHelpIcon";mxEvent.addGestureListeners(d,mxUtils.bind(this,function(m){this.hideCurrentMenu();this.openLink(b);mxEvent.consume(m)}));return d};
EditorUi.prototype.destroy=function(){var b=this.editor.graph;null!=b&&null!=this.selectionStateListener&&(b.getSelectionModel().removeListener(this.selectionStateListener),b.getModel().removeListener(this.selectionStateListener),b.getView().removeListener(this.selectionStateListener),b.removeListener(this.selectionStateListener),this.selectionStateListener=null);null!=this.inlineToolbar&&(this.inlineToolbar.destroy(),this.inlineToolbar=null);null!=this.editor&&(this.editor.destroy(),this.editor=
null);null!=this.menubar&&(this.menubar.destroy(),this.menubar=null);null!=this.toolbar&&(this.toolbar.destroy(),this.toolbar=null);null!=this.sidebar&&(this.sidebar.destroy(),this.sidebar=null);null!=this.keyHandler&&(this.keyHandler.destroy(),this.keyHandler=null);null!=this.keydownHandler&&(mxEvent.removeListener(document,"keydown",this.keydownHandler),this.keydownHandler=null);null!=this.keyupHandler&&(mxEvent.removeListener(document,"keyup",this.keyupHandler),this.keyupHandler=null);null!=this.resizeHandler&&
(mxEvent.removeListener(window,"resize",this.resizeHandler),this.resizeHandler=null);null!=this.gestureHandler&&(mxEvent.removeGestureListeners(document,this.gestureHandler),this.gestureHandler=null);null!=this.orientationChangeHandler&&(mxEvent.removeListener(window,"orientationchange",this.orientationChangeHandler),this.orientationChangeHandler=null);null!=this.scrollHandler&&(mxEvent.removeListener(window,"scroll",this.scrollHandler),this.scrollHandler=null);if(null!=this.destroyFunctions){for(b=
-0;b<this.destroyFunctions.length;b++)this.destroyFunctions[b]();this.destroyFunctions=null}var d=[this.menubarContainer,this.toolbarContainer,this.sidebarContainer,this.formatContainer,this.diagramContainer,this.hsplit,this.chromelessToolbar,this.layersDialog];for(b=0;b<d.length;b++)null!=d[b]&&null!=d[b].parentNode&&d[b].parentNode.removeChild(d[b])};(function(){var b=[["nbsp","160"],["shy","173"]],d=mxUtils.parseXml;mxUtils.parseXml=function(n){for(var v=0;v<b.length;v++)n=n.replace(new RegExp("&"+b[v][0]+";","g"),"&#"+b[v][1]+";");return d(n)};var m=mxUtils.getSizeForString;mxUtils.getSizeForString=function(n,v,p,z){return m(Graph.sanitizeHtml(n),v,p,z)}})();
+0;b<this.destroyFunctions.length;b++)this.destroyFunctions[b]();this.destroyFunctions=null}var d=[this.menubarContainer,this.toolbarContainer,this.sidebarContainer,this.formatContainer,this.diagramContainer,this.hsplit,this.chromelessToolbar,this.layersDialog];for(b=0;b<d.length;b++)null!=d[b]&&null!=d[b].parentNode&&d[b].parentNode.removeChild(d[b])};(function(){var b=[["nbsp","160"],["shy","173"]],d=mxUtils.parseXml;mxUtils.parseXml=function(n){for(var u=0;u<b.length;u++)n=n.replace(new RegExp("&"+b[u][0]+";","g"),"&#"+b[u][1]+";");return d(n)};var m=mxUtils.getSizeForString;mxUtils.getSizeForString=function(n,u,p,z){return m(Graph.sanitizeHtml(n),u,p,z)}})();
Date.prototype.toISOString||function(){function b(d){d=String(d);1===d.length&&(d="0"+d);return d}Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+b(this.getUTCMonth()+1)+"-"+b(this.getUTCDate())+"T"+b(this.getUTCHours())+":"+b(this.getUTCMinutes())+":"+b(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1E3).toFixed(3)).slice(2,5)+"Z"}}();Date.now||(Date.now=function(){return(new Date).getTime()});
-Uint8Array.from||(Uint8Array.from=function(){var b=Object.prototype.toString,d=function(n){return"function"===typeof n||"[object Function]"===b.call(n)},m=Math.pow(2,53)-1;return function(n){var v=Object(n);if(null==n)throw new TypeError("Array.from requires an array-like object - not null or undefined");var p=1<arguments.length?arguments[1]:void 0,z;if("undefined"!==typeof p){if(!d(p))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(z=
-arguments[2])}var G=Number(v.length);G=isNaN(G)?0:0!==G&&isFinite(G)?(0<G?1:-1)*Math.floor(Math.abs(G)):G;G=Math.min(Math.max(G,0),m);for(var U=d(this)?Object(new this(G)):Array(G),E=0,R;E<G;)R=v[E],U[E]=p?"undefined"===typeof z?p(R,E):p.call(z,R,E):R,E+=1;U.length=G;return U}}());mxConstants.SHADOW_OPACITY=.25;mxConstants.SHADOWCOLOR="#000000";mxConstants.VML_SHADOWCOLOR="#d0d0d0";mxCodec.allowlist="mxStylesheet Array mxGraphModel mxCell mxGeometry mxRectangle mxPoint mxChildChange mxRootChange mxTerminalChange mxValueChange mxStyleChange mxGeometryChange mxCollapseChange mxVisibleChange mxCellAttributeChange".split(" ");
+Uint8Array.from||(Uint8Array.from=function(){var b=Object.prototype.toString,d=function(n){return"function"===typeof n||"[object Function]"===b.call(n)},m=Math.pow(2,53)-1;return function(n){var u=Object(n);if(null==n)throw new TypeError("Array.from requires an array-like object - not null or undefined");var p=1<arguments.length?arguments[1]:void 0,z;if("undefined"!==typeof p){if(!d(p))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(z=
+arguments[2])}var G=Number(u.length);G=isNaN(G)?0:0!==G&&isFinite(G)?(0<G?1:-1)*Math.floor(Math.abs(G)):G;G=Math.min(Math.max(G,0),m);for(var U=d(this)?Object(new this(G)):Array(G),E=0,R;E<G;)R=u[E],U[E]=p?"undefined"===typeof z?p(R,E):p.call(z,R,E):R,E+=1;U.length=G;return U}}());mxConstants.SHADOW_OPACITY=.25;mxConstants.SHADOWCOLOR="#000000";mxConstants.VML_SHADOWCOLOR="#d0d0d0";mxCodec.allowlist="mxStylesheet Array mxGraphModel mxCell mxGeometry mxRectangle mxPoint mxChildChange mxRootChange mxTerminalChange mxValueChange mxStyleChange mxGeometryChange mxCollapseChange mxVisibleChange mxCellAttributeChange".split(" ");
mxGraph.prototype.pageBreakColor="#c0c0c0";mxGraph.prototype.pageScale=1;(function(){try{if(null!=navigator&&null!=navigator.language){var b=navigator.language.toLowerCase();mxGraph.prototype.pageFormat="en-us"===b||"en-ca"===b||"es-mx"===b?mxConstants.PAGE_FORMAT_LETTER_PORTRAIT:mxConstants.PAGE_FORMAT_A4_PORTRAIT}}catch(d){}})();mxText.prototype.baseSpacingTop=5;mxText.prototype.baseSpacingBottom=1;mxGraphModel.prototype.ignoreRelativeEdgeParent=!1;mxGraphView.prototype.gridImage="data:image/gif;base64,R0lGODlhCgAKAJEAAAAAAP///8zMzP///yH5BAEAAAMALAAAAAAKAAoAAAIJ1I6py+0Po2wFADs=";
mxGraphView.prototype.gridSteps=4;mxGraphView.prototype.minGridSize=4;mxGraphView.prototype.defaultGridColor="#d0d0d0";mxGraphView.prototype.defaultDarkGridColor="#424242";mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultGridColor;mxGraphView.prototype.unit=mxConstants.POINTS;mxGraphView.prototype.setUnit=function(b){this.unit!=b&&(this.unit=b,this.graph.refresh(),this.fireEvent(new mxEventObject("unitChanged","unit",b)))};mxSvgCanvas2D.prototype.foAltText="[Not supported by viewer]";
mxShape.prototype.getConstraints=function(b,d,m){return null};mxImageShape.prototype.getImageDataUri=function(){var b=String(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),this.clippedImage=b;b=this.clippedSvg}return b};
-(function(){var b=mxStencil.prototype.parseColor;mxStencil.prototype.parseColor=function(d,m,n,v,p){return"default"==v&&null!=p?"fillcolor"==n.nodeName?p.shapeBackgroundColor:p.shapeForegroundColor:b.apply(this,arguments)}})();(function(){var b=mxResources.get;mxResources.get=function(d,m,n){null==n&&(n=d);return b.apply(this,[d,m,n])}})();
-(function(){var b=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(d,m,n,v,p,z,G,U){var E=b.apply(this,arguments);if(null!=m){var R=E.getElementsByTagName("img");0<R.length&&(R[0].className="geButton")}return E}})();
-Graph=function(b,d,m,n,v,p){mxGraph.call(this,b,d,m,n);this.themes=v||this.defaultThemes;this.currentEdgeStyle=mxUtils.clone(this.defaultEdgeStyle);this.currentVertexStyle=mxUtils.clone(this.defaultVertexStyle);this.standalone=null!=p?p:!1;b=this.baseUrl;d=b.indexOf("//");this.domainPathUrl=this.domainUrl="";0<d&&(d=b.indexOf("/",d+2),0<d&&(this.domainUrl=b.substring(0,d)),d=b.lastIndexOf("/"),0<d&&(this.domainPathUrl=b.substring(0,d+1)));this.isHtmlLabel=function(l){l=this.getCurrentCellStyle(l);
+(function(){var b=mxStencil.prototype.parseColor;mxStencil.prototype.parseColor=function(d,m,n,u,p){return"default"==u&&null!=p?"fillcolor"==n.nodeName?p.shapeBackgroundColor:p.shapeForegroundColor:b.apply(this,arguments)}})();(function(){var b=mxResources.get;mxResources.get=function(d,m,n){null==n&&(n=d);return b.apply(this,[d,m,n])}})();
+(function(){var b=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(d,m,n,u,p,z,G,U){var E=b.apply(this,arguments);if(null!=m){var R=E.getElementsByTagName("img");0<R.length&&(R[0].className="geButton")}return E}})();
+Graph=function(b,d,m,n,u,p){mxGraph.call(this,b,d,m,n);this.themes=u||this.defaultThemes;this.currentEdgeStyle=mxUtils.clone(this.defaultEdgeStyle);this.currentVertexStyle=mxUtils.clone(this.defaultVertexStyle);this.standalone=null!=p?p:!1;b=this.baseUrl;d=b.indexOf("//");this.domainPathUrl=this.domainUrl="";0<d&&(d=b.indexOf("/",d+2),0<d&&(this.domainUrl=b.substring(0,d)),d=b.lastIndexOf("/"),0<d&&(this.domainPathUrl=b.substring(0,d+1)));this.isHtmlLabel=function(l){l=this.getCurrentCellStyle(l);
return null!=l?"1"==l.html||"wrap"==l[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var z=null,G=null,U=null,E=null,R=!1,N=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(l,x){if("mouseDown"==x.getProperty("eventName")&&this.isEnabled()){l=x.getProperty("event");var J=l.getState();x=this.view.scale;if(!mxEvent.isAltDown(l.getEvent())&&null!=J&&(N=this.isCellSelected(J.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(l.getEvent()))){var L=this.selectionCellsHandler.getHandler(J.cell);
if(null==L||null==L.getHandleForEvent(l)){var T=new mxRectangle(l.getGraphX()-1,l.getGraphY()-1),Y=mxEvent.isTouchEvent(l.getEvent())?mxShape.prototype.svgStrokeTolerance-1:(mxShape.prototype.svgStrokeTolerance+2)/2;L=Y+2;T.grow(Y);if(this.isTableCell(J.cell)&&this.isCellMovable(J.cell)&&!this.isCellSelected(J.cell)&&!(mxUtils.contains(J,l.getGraphX()-L,l.getGraphY()-L)&&mxUtils.contains(J,l.getGraphX()-L,l.getGraphY()+L)&&mxUtils.contains(J,l.getGraphX()+L,l.getGraphY()+L)&&mxUtils.contains(J,l.getGraphX()+
L,l.getGraphY()-L))){var aa=this.model.getParent(J.cell);L=this.model.getParent(aa);if(!this.isCellSelected(L)){Y*=x;var S=2*Y;if(this.model.getChildAt(L,0)!=aa&&mxUtils.intersects(T,new mxRectangle(J.x,J.y-Y,J.width,S))||this.model.getChildAt(aa,0)!=J.cell&&mxUtils.intersects(T,new mxRectangle(J.x-Y,J.y,S,J.height))||mxUtils.intersects(T,new mxRectangle(J.x,J.y+J.height-Y,J.width,S))||mxUtils.intersects(T,new mxRectangle(J.x+J.width-Y,J.y,S,J.height)))aa=this.selectionCellsHandler.isHandled(L),this.selectCellForEvent(L,
@@ -2388,24 +2388,24 @@ Graph.cellStyles=mxUtils.addItems(mxUtils.addItems(mxUtils.addItems("rounded sha
Graph.edgeStyles),Graph.cellStyleGroups);Graph.layoutNames="mxHierarchicalLayout mxCircleLayout mxCompactTreeLayout mxEdgeLabelLayout mxFastOrganicLayout mxParallelEdgeLayout mxPartitionLayout mxRadialTreeLayout mxStackLayout".split(" ");Graph.backupStyleAttribute="data-mx-given-colors";Graph.newColorPlaceholder="rgba(0, 0, 0, 0)";Graph.newBackgroundPlaceholder="rgb(0, 0, 0)";Graph.defaultAdaptiveColors=window.mxIsElectron||"0"==urlParams.contrast?"simple":"auto";
Graph.getDefaultAdaptiveColorsKey=function(){return"auto"==Graph.defaultAdaptiveColors?"automatic":Graph.defaultAdaptiveColors};
Graph.createOffscreenGraph=function(b){var d=new Graph(document.createElement("div"));d.stylesheet.styles=mxUtils.clone(b.styles);d.resetViewOnRootChange=!1;d.setConnectable(!1);d.gridEnabled=!1;d.autoScroll=!1;d.setTooltips(!1);d.setEnabled(!1);d.container.style.visibility="hidden";d.container.style.position="absolute";d.container.style.overflow="hidden";d.container.style.height="1px";d.container.style.width="1px";return d};
-Graph.createSvgImage=function(b,d,m,n,v){m=unescape(encodeURIComponent(Graph.svgDoctype+'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+b+'px" height="'+d+'px" '+(null!=n&&null!=v?'viewBox="0 0 '+n+" "+v+'" ':"")+'version="1.1" style="color-scheme: light dark;">'+m+"</svg>"));return new mxImage("data:image/svg+xml;base64,"+(window.btoa?btoa(m):Base64.encode(m,!0)),b,d)};
+Graph.createSvgImage=function(b,d,m,n,u){m=unescape(encodeURIComponent(Graph.svgDoctype+'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+b+'px" height="'+d+'px" '+(null!=n&&null!=u?'viewBox="0 0 '+n+" "+u+'" ':"")+'version="1.1" style="color-scheme: light dark;">'+m+"</svg>"));return new mxImage("data:image/svg+xml;base64,"+(window.btoa?btoa(m):Base64.encode(m,!0)),b,d)};
Graph.getSvgFromDataUri=function(b){return null!=b&&"data:image/svg"==b.substring(0,14)?Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+decodeURIComponent(escape(atob(b.substring(b.indexOf(",")+1)))):null};
-Graph.createSvgNode=function(b,d,m,n,v){var p=mxUtils.createXmlDocument(),z=null!=p.createElementNS?p.createElementNS(mxConstants.NS_SVG,"svg"):p.createElement("svg");null!=v&&z.setAttribute("style","background: "+v.light+"; background-color: "+v.cssText+";");null==p.createElementNS?(z.setAttribute("xmlns",mxConstants.NS_SVG),z.setAttribute("xmlns:xlink",mxConstants.NS_XLINK)):z.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",mxConstants.NS_XLINK);z.setAttribute("version","1.1");z.setAttribute("width",
+Graph.createSvgNode=function(b,d,m,n,u){var p=mxUtils.createXmlDocument(),z=null!=p.createElementNS?p.createElementNS(mxConstants.NS_SVG,"svg"):p.createElement("svg");null!=u&&z.setAttribute("style","background: "+u.light+"; background-color: "+u.cssText+";");null==p.createElementNS?(z.setAttribute("xmlns",mxConstants.NS_SVG),z.setAttribute("xmlns:xlink",mxConstants.NS_XLINK)):z.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",mxConstants.NS_XLINK);z.setAttribute("version","1.1");z.setAttribute("width",
m+"px");z.setAttribute("height",n+"px");z.setAttribute("viewBox",b+" "+d+" "+m+" "+n);p.appendChild(z);return z};
-Graph.htmlToPng=function(b,d,m,n,v,p){v=null!=v?v:"";p=null!=p?p:Editor.htmlRasterScale;var z=document.createElement("canvas");z.width=d*p;z.height=m*p;var G=document.createElement("img");G.onload=mxUtils.bind(this,function(){try{var E=z.getContext("2d");E.scale(p,p);E.drawImage(G,0,0);n(z.toDataURL())}catch(R){n(null)}});var U=mxUtils.createXmlDocument();U=null!=U.createElementNS?U.createElementNS(mxConstants.NS_SVG,"svg"):U.createElement("svg");b=(new mxSvgCanvas2D(U)).convertHtml(b);G.onerror=
-function(E){n(null)};G.src="data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="'+d+'" height="'+m+'">'+(""!=v?'<defs xmlns="http://www.w3.org/2000/svg"><style type="text/css">'+v+"</style></defs>":"")+'<foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml">'+b+"</div></foreignObject></svg>")};
-Graph.addLightDarkColors=function(b,d,m,n){function v(c,g,k){return null!=n?n(c,g,k):mxUtils.isValidColor(k)?(null==z&&null!=d&&(z={}),null!=z&&(z[g]=c.style.getPropertyValue(g)),k=mxUtils.getLightDarkColor(k,null,null,m),c.style.setProperty(g,k.cssText),!0):!1}for(var p=b.getElementsByTagName("*"),z=null,G=!1,U=0;U<p.length;U++)if(p[U]!=b&&null!=p[U].style){z=null;for(var E=0;E<p[U].style.length;E++){var R=p[U].style.item(E),N=p[U].style.getPropertyValue(R);G=v(p[U],R,N)||G}"FONT"==p[U].nodeName&&
-""==p[U].style.getPropertyValue("color")&&(N=p[U].getAttribute("color"),G=v(p[U],"color",N)||G);null!=d&&null!=z&&p[U].setAttribute(d,JSON.stringify(z))}return G};Graph.removeLightDarkColors=function(b,d){b=b.getElementsByTagName("*");for(var m=!1,n=0;n<b.length;n++)try{var v=b[n].getAttribute(d);if(null!=v){b[n].removeAttribute(d);var p=JSON.parse(v),z;for(z in p){var G=p[z];""==G?(b[n].style[z]=null,""==b[n].getAttribute("style")&&b[n].removeAttribute("style")):b[n].style[z]=G;m=!0}}}catch(U){}return m};
-Graph.getGivenColor=function(b,d){var m=null;if(b.nodeType==mxConstants.NODETYPE_ELEMENT){try{var n=b.getAttribute(Graph.backupStyleAttribute);if(null!=n){var v=JSON.parse(n);null!=v&&null!=v[d]&&("color"==d&&"FONT"==b.nodeName&&""==v[d]&&null!=b.getAttribute("color")?m=b.getAttribute("color"):""!=v[d]&&(m=v[d]))}}catch(p){}null==m&&""!=b.style[d]&&(m=b.style[d])}return m};
-Graph.setTextColor=function(b,d,m){for(var n=m?Graph.newColorPlaceholder:Graph.newBackgroundPlaceholder,v=m?"color":"background-color",p=b.getElementsByTagName("*"),z=[],G=0;G<p.length;G++)z.push({node:p[G],value:p[G].style[v]});document.execCommand(m?"forecolor":"backcolor",!1,n);b=b.getElementsByTagName("*");for(G=0;G<b.length;G++){if(G<z.length&&z[G].node==b[G]&&z[G].value!=b[G].style[v]&&""==b[G].style[v])try{if(p=b[G].getAttribute(Graph.backupStyleAttribute),null!=p){var U=JSON.parse(p);U[v]=
-"";b[G].setAttribute(Graph.backupStyleAttribute,JSON.stringify(U))}}catch(E){}if(m&&b[G].getAttribute("color")==n||b[G].style[v]==n){m&&b[G].getAttribute("color")==n&&b[G].removeAttribute("color");b[G].style[v]=d!=mxConstants.NONE?mxUtils.getLightDarkColor(d).cssText:null;try{p=b[G].getAttribute(Graph.backupStyleAttribute),U=null!=p?JSON.parse(p):{},U[v]=d!=mxConstants.NONE?d:"",b[G].setAttribute(Graph.backupStyleAttribute,JSON.stringify(U))}catch(E){}if(m&&mxClient.IS_FF){d=b[G];m=d.firstChild;if(null!=
-m&&"A"==m.nodeName&&null==m.nextSibling&&null!=m.firstChild){d.parentNode.insertBefore(m,d);for(n=m.firstChild;null!=n;)v=n.nextSibling,d.appendChild(n),n=v;m.appendChild(d)}break}}}};Graph.zapGremlins=function(b){return mxUtils.zapGremlins(b)};Graph.stringToBytes=function(b){for(var d=Array(b.length),m=0;m<b.length;m++)d[m]=b.charCodeAt(m);return d};Graph.bytesToString=function(b){for(var d=Array(b.length),m=0;m<b.length;m++)d[m]=String.fromCharCode(b[m]);return d.join("")};
+Graph.htmlToPng=function(b,d,m,n,u,p){u=null!=u?u:"";p=null!=p?p:Editor.htmlRasterScale;var z=document.createElement("canvas");z.width=d*p;z.height=m*p;var G=document.createElement("img");G.onload=mxUtils.bind(this,function(){try{var E=z.getContext("2d");E.scale(p,p);E.drawImage(G,0,0);n(z.toDataURL())}catch(R){n(null)}});var U=mxUtils.createXmlDocument();U=null!=U.createElementNS?U.createElementNS(mxConstants.NS_SVG,"svg"):U.createElement("svg");b=(new mxSvgCanvas2D(U)).convertHtml(b);G.onerror=
+function(E){n(null)};G.src="data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="'+d+'" height="'+m+'">'+(""!=u?'<defs xmlns="http://www.w3.org/2000/svg"><style type="text/css">'+u+"</style></defs>":"")+'<foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml">'+b+"</div></foreignObject></svg>")};
+Graph.addLightDarkColors=function(b,d,m,n){function u(c,g,k){return null!=n?n(c,g,k):mxUtils.isValidColor(k)?(null==z&&null!=d&&(z={}),null!=z&&(z[g]=c.style.getPropertyValue(g)),k=mxUtils.getLightDarkColor(k,null,null,m),c.style.setProperty(g,k.cssText),!0):!1}for(var p=b.getElementsByTagName("*"),z=null,G=!1,U=0;U<p.length;U++)if(p[U]!=b&&null!=p[U].style){z=null;for(var E=0;E<p[U].style.length;E++){var R=p[U].style.item(E),N=p[U].style.getPropertyValue(R);G=u(p[U],R,N)||G}"FONT"==p[U].nodeName&&
+""==p[U].style.getPropertyValue("color")&&(N=p[U].getAttribute("color"),G=u(p[U],"color",N)||G);null!=d&&null!=z&&p[U].setAttribute(d,JSON.stringify(z))}return G};Graph.removeLightDarkColors=function(b,d){b=b.getElementsByTagName("*");for(var m=!1,n=0;n<b.length;n++)try{var u=b[n].getAttribute(d);if(null!=u){b[n].removeAttribute(d);var p=JSON.parse(u),z;for(z in p){var G=p[z];""==G?(b[n].style[z]=null,""==b[n].getAttribute("style")&&b[n].removeAttribute("style")):b[n].style[z]=G;m=!0}}}catch(U){}return m};
+Graph.getGivenColor=function(b,d){var m=null;if(b.nodeType==mxConstants.NODETYPE_ELEMENT){try{var n=b.getAttribute(Graph.backupStyleAttribute);if(null!=n){var u=JSON.parse(n);null!=u&&null!=u[d]&&("color"==d&&"FONT"==b.nodeName&&""==u[d]&&null!=b.getAttribute("color")?m=b.getAttribute("color"):""!=u[d]&&(m=u[d]))}}catch(p){}null==m&&""!=b.style[d]&&(m=b.style[d])}return m};
+Graph.setTextColor=function(b,d,m){for(var n=m?Graph.newColorPlaceholder:Graph.newBackgroundPlaceholder,u=m?"color":"background-color",p=b.getElementsByTagName("*"),z=[],G=0;G<p.length;G++)z.push({node:p[G],value:p[G].style[u]});document.execCommand(m?"forecolor":"backcolor",!1,n);b=b.getElementsByTagName("*");for(G=0;G<b.length;G++){if(G<z.length&&z[G].node==b[G]&&z[G].value!=b[G].style[u]&&""==b[G].style[u])try{if(p=b[G].getAttribute(Graph.backupStyleAttribute),null!=p){var U=JSON.parse(p);U[u]=
+"";b[G].setAttribute(Graph.backupStyleAttribute,JSON.stringify(U))}}catch(E){}if(m&&b[G].getAttribute("color")==n||b[G].style[u]==n){m&&b[G].getAttribute("color")==n&&b[G].removeAttribute("color");b[G].style[u]=d!=mxConstants.NONE?mxUtils.getLightDarkColor(d).cssText:null;try{p=b[G].getAttribute(Graph.backupStyleAttribute),U=null!=p?JSON.parse(p):{},U[u]=d!=mxConstants.NONE?d:"",b[G].setAttribute(Graph.backupStyleAttribute,JSON.stringify(U))}catch(E){}if(m&&mxClient.IS_FF){d=b[G];m=d.firstChild;if(null!=
+m&&"A"==m.nodeName&&null==m.nextSibling&&null!=m.firstChild){d.parentNode.insertBefore(m,d);for(n=m.firstChild;null!=n;)u=n.nextSibling,d.appendChild(n),n=u;m.appendChild(d)}break}}}};Graph.zapGremlins=function(b){return mxUtils.zapGremlins(b)};Graph.stringToBytes=function(b){for(var d=Array(b.length),m=0;m<b.length;m++)d[m]=b.charCodeAt(m);return d};Graph.bytesToString=function(b){for(var d=Array(b.length),m=0;m<b.length;m++)d[m]=String.fromCharCode(b[m]);return d.join("")};
Graph.base64EncodeUnicode=function(b){return btoa(encodeURIComponent(b).replace(/%([0-9A-F]{2})/g,function(d,m){return String.fromCharCode(parseInt(m,16))}))};Graph.base64DecodeUnicode=function(b){return decodeURIComponent(Array.prototype.map.call(atob(b),function(d){return"%"+("00"+d.charCodeAt(0).toString(16)).slice(-2)}).join(""))};Graph.compressNode=function(b,d){b=mxUtils.getXml(b);return Graph.compress(d?b:Graph.zapGremlins(b))};
Graph.arrayBufferToString=function(b){var d="";b=new Uint8Array(b);for(var m=b.byteLength,n=0;n<m;n++)d+=String.fromCharCode(b[n]);return d};Graph.stringToArrayBuffer=function(b){return Uint8Array.from(b,function(d){return d.charCodeAt(0)})};
-Graph.arrayBufferIndexOfString=function(b,d,m){var n=d.charCodeAt(0),v=1,p=-1;for(m=m||0;m<b.byteLength;m++)if(b[m]==n){p=m;break}for(m=p+1;-1<p&&m<b.byteLength&&m<p+d.length-1;m++){if(b[m]!=d.charCodeAt(v))return Graph.arrayBufferIndexOfString(b,d,p+1);v++}return v==d.length-1?p:-1};Graph.compress=function(b,d){if(null==b||0==b.length||"undefined"===typeof pako)return b;b=d?pako.deflate(encodeURIComponent(b)):pako.deflateRaw(encodeURIComponent(b));return btoa(Graph.arrayBufferToString(new Uint8Array(b)))};
+Graph.arrayBufferIndexOfString=function(b,d,m){var n=d.charCodeAt(0),u=1,p=-1;for(m=m||0;m<b.byteLength;m++)if(b[m]==n){p=m;break}for(m=p+1;-1<p&&m<b.byteLength&&m<p+d.length-1;m++){if(b[m]!=d.charCodeAt(u))return Graph.arrayBufferIndexOfString(b,d,p+1);u++}return u==d.length-1?p:-1};Graph.compress=function(b,d){if(null==b||0==b.length||"undefined"===typeof pako)return b;b=d?pako.deflate(encodeURIComponent(b)):pako.deflateRaw(encodeURIComponent(b));return btoa(Graph.arrayBufferToString(new Uint8Array(b)))};
Graph.decompress=function(b,d,m){if(null==b||0==b.length||"undefined"===typeof pako)return b;b=Graph.stringToArrayBuffer(atob(b));d=decodeURIComponent(d?pako.inflate(b,{to:"string"}):pako.inflateRaw(b,{to:"string"}));return m?d:Graph.zapGremlins(d)};
-Graph.fadeNodes=function(b,d,m,n,v){v=null!=v?v:1E3;Graph.setTransitionForNodes(b,null);Graph.setOpacityForNodes(b,d);window.setTimeout(function(){Graph.setTransitionForNodes(b,"all "+v+"ms ease-in-out");Graph.setOpacityForNodes(b,m);window.setTimeout(function(){Graph.setTransitionForNodes(b,null);null!=n&&n()},v)},0)};
-Graph.exploreFromCell=function(b,d,m){pageSize=null!=m&&null!=m.pageSize?m.pageSize:8;minSize=null!=m&&null!=m.minSize?m.minSize:180;(function(n,v){function p(N){N.view.states.visit(function(c,g){null!=g.shape&&N.model.isEdge(N.model.getParent(g.cell))?g.shape.node.parentNode.appendChild(g.shape.node):null!=g.text&&N.model.isEdge(g.cell)&&g.text.node.parentNode.appendChild(g.text.node)})}function z(N,c){if(N.getModel().isVertex(c)){var g=N.container.offsetWidth/2,k=N.container.offsetHeight/2;N.rootCell=
+Graph.fadeNodes=function(b,d,m,n,u){u=null!=u?u:1E3;Graph.setTransitionForNodes(b,null);Graph.setOpacityForNodes(b,d);window.setTimeout(function(){Graph.setTransitionForNodes(b,"all "+u+"ms ease-in-out");Graph.setOpacityForNodes(b,m);window.setTimeout(function(){Graph.setTransitionForNodes(b,null);null!=n&&n()},u)},0)};
+Graph.exploreFromCell=function(b,d,m){pageSize=null!=m&&null!=m.pageSize?m.pageSize:8;minSize=null!=m&&null!=m.minSize?m.minSize:180;(function(n,u){function p(N){N.view.states.visit(function(c,g){null!=g.shape&&N.model.isEdge(N.model.getParent(g.cell))?g.shape.node.parentNode.appendChild(g.shape.node):null!=g.text&&N.model.isEdge(g.cell)&&g.text.node.parentNode.appendChild(g.text.node)})}function z(N,c){if(N.getModel().isVertex(c)){var g=N.container.offsetWidth/2,k=N.container.offsetHeight/2;N.rootCell=
c.referenceCell||c;N.getModel().beginUpdate();try{pageSize=null!=m&&null!=m.pageSize?m.pageSize:8+Math.max(0,Math.floor(Math.min(N.container.offsetWidth-800/120,N.container.offsetHeight-600)/30));for(var q=c.referenceCell||c,A=n.model.getCell(q.sourceCellId),D=n.getEdges(A,null,!0,!0,!1,!0),H=[],K=0;K<D.length;K++)null!=D[K].getTerminal(!0)&&null!=D[K].getTerminal(!1)&&n.isCellVisible(D[K])&&!n.isEdgeIgnored(D[K])&&n.isCellVisible(D[K].getTerminal(!0))&&n.isCellVisible(D[K].getTerminal(!1))&&n.isCellVisible(n.getLayerForCell(D[K]))&&
H.push(D[K]);H=D=H;if(null!=c.startIndex||0<pageSize&&D.length>pageSize){var P=c.startIndex||0;H=D.slice(Math.max(0,P),Math.min(D.length,P+pageSize))}H=n.getOpposites(H,A).concat(H);var W=N.cloneCells(H);for(K=0;K<H.length;K++)if(W[K].sourceCellId=H[K].id,N.model.isEdge(W[K]))for(W[K].geometry.x=0,W[K].geometry.y=0,W[K].geometry.points=null,W[K].setStyle(W[K].getStyle()+";curved=1;noEdgeStyle=1;entryX=none;entryY=none;exitX=none;exitY=none;labelBackgroundColor=#ffffffe0;textOpacity=100;"),W[K].setTerminal(q,
null==W[K].getTerminal(!0)),A=0;A<W[K].getChildCount();A++){var M=W[K].getChildAt(A);null!=M.geometry&&M.geometry.relative&&(M.setStyle(M.getStyle()+";labelBackgroundColor=#ffffffe0;textOpacity=100;"),M.geometry.offset=new mxPoint(0,0),M.geometry.y=0,M.geometry.x=.5>M.geometry.x?-.8:.5<M.geometry.x?.8:0)}if(0<c.startIndex){var ca=N.createVertex(null,null,mxResources.get("previousPage")+" ("+Math.ceil((c.startIndex||0)/pageSize)+"/"+Math.ceil(D.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");
@@ -2414,30 +2414,30 @@ ca.referenceCell=q;ca.startIndex=Math.max(0,(c.startIndex||0)-pageSize);W.splice
c.length,ba=2*Math.PI/pa,l=Math.max(minSize,Math.min(N.container.offsetWidth/2-40,N.container.offsetHeight/2-80));for(g=0;g<pa;g++)ka=N.getModel().getGeometry(c[g]),null!=ka&&(ka=ka.clone(),ka.x+=l*Math.sin(g*ba),ka.y+=l*Math.cos(g*ba),N.getModel().setGeometry(c[g],ka))}finally{N.getModel().endUpdate()}}}var G=document.createElement("div");G.style.position="absolute";G.style.display="block";G.style.overflow="auto";G.style.width="100%";G.style.height="100%";G.style.left="0px";G.style.top="0px";G.style.zIndex=
2;G.style.background=n.background==mxConstants.NONE||null==n.background?"light-dark(#ffffff,"+Editor.darkColor+")":n.background;var U=document.createElement("img");U.setAttribute("src",Editor.closeBlackImage);U.style.position="absolute";U.style.cursor="pointer";U.style.right="10px";U.style.top="10px";G.appendChild(U);var E=document.createElement("div");E.style.position="absolute";E.style.cursor="pointer";E.style.right="38px";E.style.top="14px";E.style.textAlign="right";E.style.verticalAlign="top";
mxUtils.write(E,mxResources.get("close"));G.appendChild(E);document.body.appendChild(G);var R=function(N){27==N.keyCode&&U.click()};mxEvent.addListener(document,"keydown",R);(function(N){var c=new Graph(N);c.keepEdgesInBackground=!0;c.isCellResizable=function(){return!1};c.isCellRotatable=function(){return!1};c.getCursorForCell=function(H){return this.model.isVertex(H)?"pointer":null};c.getFoldingImage=function(){return null};var g=function(){mxEvent.removeListener(document,"keydown",R);N.parentNode.removeChild(N);
-n.scrollCellToVisible(v)};mxEvent.addListener(U,"click",g);mxEvent.addListener(E,"click",g);c.setEnabled(!1);var k=c.click;c.click=function(H){var K=H.getCell(),P=null!=K?null!=K.referenceCell?K.referenceCell:K:null;null!=K&&0<c.getEdges(P).length?z(c,K):k.apply(this,arguments)};g=c.container.offsetWidth/2;var q=c.container.offsetHeight/3;c.model.beginUpdate();var A=c.importCells([v])[0];A.sourceCellId=v.id;A.geometry.x=g-A.geometry.width/2;A.geometry.y=q-A.geometry.height/2;c.model.endUpdate();var D=
+n.scrollCellToVisible(u)};mxEvent.addListener(U,"click",g);mxEvent.addListener(E,"click",g);c.setEnabled(!1);var k=c.click;c.click=function(H){var K=H.getCell(),P=null!=K?null!=K.referenceCell?K.referenceCell:K:null;null!=K&&0<c.getEdges(P).length?z(c,K):k.apply(this,arguments)};g=c.container.offsetWidth/2;var q=c.container.offsetHeight/3;c.model.beginUpdate();var A=c.importCells([u])[0];A.sourceCellId=u.id;A.geometry.x=g-A.geometry.width/2;A.geometry.y=q-A.geometry.height/2;c.model.endUpdate();var D=
!1;c.getModel().addListener(mxEvent.CHANGE,function(H,K){D||(H=K.getProperty("edit").changes,mxText.prototype.enableBoundingBox=!1,c.labelsVisible=!1,D=!0,mxEffects.animateChanges(c,H,function(){var P=new mxParallelEdgeLayout(c);P.spacing=60;var W=P.layout;P.layout=function(M){P.spacing=Math.min(60,Math.max(30,60-5*M.length));W.apply(this,arguments)};P.execute(c.getDefaultParent());mxText.prototype.enableBoundingBox=!0;c.labelsVisible=!0;c.tooltipHandler.hide();c.refresh();p(c);D=!1}))});z(c,A)})(G)})(b,
d)};Graph.removeKeys=function(b,d){for(var m in b)d(m)&&delete b[m]};Graph.setTransitionForNodes=function(b,d){for(var m=0;m<b.length;m++)mxUtils.setPrefixedStyle(b[m].style,"transition",d)};Graph.setOpacityForNodes=function(b,d){for(var m=0;m<b.length;m++)b[m].style.opacity=d};
Graph.removePasteFormatting=function(b,d){for(;null!=b;){null!=b.firstChild&&Graph.removePasteFormatting(b.firstChild,!0);var m=b.nextSibling;if(b.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=b.style){"#000000"==b.style.color&&(b.style.color="");if("SPAN"==b.nodeName&&"Apple-tab-span"==b.className){var n=Graph.createTabNode(4);b.parentNode.replaceChild(n,b);b=n}if("P"==b.nodeName&&"p1"==b.className){for(;null!=b.firstChild;)b.parentNode.insertBefore(b.firstChild,b);null!=m&&"P"==m.nodeName&&"p1"==
m.className&&b.parentNode.insertBefore(b.ownerDocument.createElement("br"),b);b.parentNode.removeChild(b)}!d&&null!=b.innerHTML&&0<=b.innerHTML.indexOf("\t")&&(n=Graph.createTabNode(4),b.innerHTML=b.innerHTML.replace(/\t/g,n.outerHTML))}b=m}};Graph.createTabNode=function(b){var d="\t";if(null!=b)for(d="";0<b;)d+=" ",b--;b=document.createElement("span");b.style.whiteSpace="pre";b.appendChild(document.createTextNode(d));return b};Graph.sanitizeHtml=function(b,d){return Graph.domPurify(b,!1)};
-Graph.stylesCompatible=function(b,d){var m=function(n){if(null==n)return"";n=n.split(";");for(var v=[],p=0;p<n.length;p++){var z=n[p].trim();if(0<z.length){var G=z.indexOf(":");if(0<G){var U=z.substring(0,G).trim().toLowerCase();z=z.substring(G+1).trim().toLowerCase();"initial"!=z&&"inherit"!=z&&"unset"!=z&&v.push(U+":"+z)}}}v.sort();return v.join(";")};return m(b)==m(d)};
+Graph.stylesCompatible=function(b,d){var m=function(n){if(null==n)return"";n=n.split(";");for(var u=[],p=0;p<n.length;p++){var z=n[p].trim();if(0<z.length){var G=z.indexOf(":");if(0<G){var U=z.substring(0,G).trim().toLowerCase();z=z.substring(G+1).trim().toLowerCase();"initial"!=z&&"inherit"!=z&&"unset"!=z&&u.push(U+":"+z)}}}u.sort();return u.join(";")};return m(b)==m(d)};
Graph.optimizeHtml=function(b){if(null==b||0==b.length)return b;var d=document.createElement("div");d.innerHTML=b;Graph.optimizeNode(d);return d.innerHTML};
Graph.optimizeNode=function(b){if(null!=b){for(var d=b.firstChild;null!=d;){var m=d.nextSibling;1==d.nodeType&&Graph.optimizeNode(d);d=m}for(d=b.firstChild;null!=d;){m=d.nextSibling;if(!(1!=d.nodeType||"FONT"!=d.nodeName||d.hasAttribute("color")||d.hasAttribute("face")||d.hasAttribute("size")||d.hasAttribute("style"))){for(;null!=d.firstChild;)b.insertBefore(d.firstChild,d);b.removeChild(d)}d=m}for(d=b.firstChild;null!=d;)if(m=d.nextSibling,1==d.nodeType&&null!=m&&1==m.nodeType&&"SPAN"==d.nodeName&&
"SPAN"==m.nodeName&&Graph.stylesCompatible(d.getAttribute("style"),m.getAttribute("style"))){for(;null!=m.firstChild;)d.appendChild(m.firstChild);m.parentNode.removeChild(m);d.normalize()}else d=m;for(d=b.firstChild;null!=d;){m=d.nextSibling;if(1==d.nodeType&&"SPAN"==d.nodeName){var n=d.getAttribute("style");if((null==n||0==n.trim().length)&&1>=d.attributes.length){for(;null!=d.firstChild;)b.insertBefore(d.firstChild,d);b.removeChild(d)}else if("SPAN"==b.nodeName&&Graph.stylesCompatible(n,b.getAttribute("style"))&&
1==d.attributes.length){for(;null!=d.firstChild;)b.insertBefore(d.firstChild,d);b.removeChild(d)}}d=m}b.normalize()}};Graph.sanitizeLink=function(b){if(null==b)return null;var d=document.createElement("a");d.setAttribute("href",b);Graph.sanitizeNode(d);return d.getAttribute("href")};Graph.sanitizeNode=function(b){return Graph.domPurify(b,!0)};
-Graph.isStyleAllowed=function(b){b=b.replace(/\\([0-9a-fA-F]{1,6})\s?/g,function(v,p){return String.fromCharCode(parseInt(p,16))}).replace(/\\(.)/g,"$1");for(var d=/url\s*\(\s*(['"]?)(.*?)\1\s*\)/gi,m;null!==(m=d.exec(b));){var n=m[2].trim();m=!/^([a-z][a-z0-9+.-]*:|\/\/)/i.test(n);n=n.toLowerCase().startsWith("data:");if(!m&&!n)return!1}return/@import/i.test(b)?!1:!0};
+Graph.isStyleAllowed=function(b){b=b.replace(/\\([0-9a-fA-F]{1,6})\s?/g,function(u,p){return String.fromCharCode(parseInt(p,16))}).replace(/\\(.)/g,"$1");for(var d=/url\s*\(\s*(['"]?)(.*?)\1\s*\)/gi,m;null!==(m=d.exec(b));){var n=m[2].trim();m=!/^([a-z][a-z0-9+.-]*:|\/\/)/i.test(n);n=n.toLowerCase().startsWith("data:");if(!m&&!n)return!1}return/@import/i.test(b)?!1:!0};
DOMPurify.addHook("afterSanitizeAttributes",function(b){"use"==b.nodeName&&(null!=b.getAttribute("xlink:href")&&!b.getAttribute("xlink:href").startsWith("#")||null!=b.getAttribute("href")&&!b.getAttribute("href").startsWith("#"))?b.remove():"style"==b.nodeName.toLowerCase()&&(Graph.isStyleAllowed(b.textContent)||b.remove())});DOMPurify.addHook("uponSanitizeAttribute",function(b,d){"style"!=d.attrName||Graph.isStyleAllowed(d.attrValue)||(d.keepAttr=!1)});
Graph.domPurify=function(b,d){window.DOM_PURIFY_CONFIG.IN_PLACE=d;return DOMPurify.sanitize(b,window.DOM_PURIFY_CONFIG)};
-Graph.clipSvgDataUri=function(b){if(null!=b&&"data:image/svg+xml;base64,"==b.substring(0,26))try{var d=document.createElement("div");d.style.position="absolute";d.style.visibility="hidden";var m=decodeURIComponent(escape(atob(b.substring(26)))),n=m.indexOf("<svg");if(0<=n){d.innerHTML=Graph.sanitizeHtml(m.substring(n));var v=d.getElementsByTagName("svg");if(0<v.length){document.body.appendChild(d);try{n=m=1;var p=v[0].getAttribute("width"),z=v[0].getAttribute("height");p=null!=p&&"%"!=p.charAt(p.length-
-1)?parseFloat(p):NaN;z=null!=z&&"%"!=z.charAt(z.length-1)?parseFloat(z):NaN;var G=v[0].getAttribute("viewBox");if(null!=G&&!isNaN(p)&&!isNaN(z)){var U=G.split(" ");4<=G.length&&(m=parseFloat(U[2])/p,n=parseFloat(U[3])/z)}var E=v[0].getBBox();if(0<E.width&&0<E.height){G=0;var R=v[0].querySelectorAll("[stroke-width]");for(U=0;U<R.length;U++)G=Math.max(G,parseFloat(R[U].getAttribute("stroke-width")));var N=new mxRectangle(E.x,E.y,E.width,E.height);N.grow(G/2);!isNaN(p)&&!isNaN(z)&&0>N.x&&0>N.y&&N.width>
-p&&N.height>z?d.getElementsByTagName("svg")[0].setAttribute("viewBox","0 0 "+p+" "+z):(d.getElementsByTagName("svg")[0].setAttribute("viewBox",N.x+" "+N.y+" "+N.width+" "+N.height),d.getElementsByTagName("svg")[0].setAttribute("width",N.width/m),d.getElementsByTagName("svg")[0].setAttribute("height",N.height/n))}}catch(c){}finally{document.body.removeChild(d)}b=Editor.createSvgDataUri(mxUtils.getXml(v[0]))}}}catch(c){}return b};
+Graph.clipSvgDataUri=function(b){if(null!=b&&"data:image/svg+xml;base64,"==b.substring(0,26))try{var d=document.createElement("div");d.style.position="absolute";d.style.visibility="hidden";var m=decodeURIComponent(escape(atob(b.substring(26)))),n=m.indexOf("<svg");if(0<=n){d.innerHTML=Graph.sanitizeHtml(m.substring(n));var u=d.getElementsByTagName("svg");if(0<u.length){document.body.appendChild(d);try{n=m=1;var p=u[0].getAttribute("width"),z=u[0].getAttribute("height");p=null!=p&&"%"!=p.charAt(p.length-
+1)?parseFloat(p):NaN;z=null!=z&&"%"!=z.charAt(z.length-1)?parseFloat(z):NaN;var G=u[0].getAttribute("viewBox");if(null!=G&&!isNaN(p)&&!isNaN(z)){var U=G.split(" ");4<=G.length&&(m=parseFloat(U[2])/p,n=parseFloat(U[3])/z)}var E=u[0].getBBox();if(0<E.width&&0<E.height){G=0;var R=u[0].querySelectorAll("[stroke-width]");for(U=0;U<R.length;U++)G=Math.max(G,parseFloat(R[U].getAttribute("stroke-width")));var N=new mxRectangle(E.x,E.y,E.width,E.height);N.grow(G/2);!isNaN(p)&&!isNaN(z)&&0>N.x&&0>N.y&&N.width>
+p&&N.height>z?d.getElementsByTagName("svg")[0].setAttribute("viewBox","0 0 "+p+" "+z):(d.getElementsByTagName("svg")[0].setAttribute("viewBox",N.x+" "+N.y+" "+N.width+" "+N.height),d.getElementsByTagName("svg")[0].setAttribute("width",N.width/m),d.getElementsByTagName("svg")[0].setAttribute("height",N.height/n))}}catch(c){}finally{document.body.removeChild(d)}b=Editor.createSvgDataUri(mxUtils.getXml(u[0]))}}}catch(c){}return b};
Graph.createRemoveIcon=function(b,d){var m=document.createElement("img");m.setAttribute("src",Dialog.prototype.clearImage);m.setAttribute("title",b);m.setAttribute("width","13");m.setAttribute("height","10");m.style.marginLeft="4px";m.style.marginBottom="-1px";m.style.cursor="pointer";mxEvent.addListener(m,"click",d);return m};Graph.isPageLink=function(b){return null!=b&&"data:page/id,"==b.substring(0,13)};
-Graph.rewritePageLinks=function(b,d){function m(v,p){var z=v.getAttribute(p);if(null!=z){Graph.isPageLink(z)&&(z="#"+z.substring(z.indexOf(":")+1));var G=p;d&&"xlink:href"==p&&(v.removeAttribute(p),G="href");v.setAttribute(G,z)}}b=b.getElementsByTagName("a");if(null!=b)for(var n=0;n<b.length;n++)m(b[n],"href"),m(b[n],"xlink:href")};Graph.isLink=function(b){return null!=b&&b.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g)};
+Graph.rewritePageLinks=function(b,d){function m(u,p){var z=u.getAttribute(p);if(null!=z){Graph.isPageLink(z)&&(z="#"+z.substring(z.indexOf(":")+1));var G=p;d&&"xlink:href"==p&&(u.removeAttribute(p),G="href");u.setAttribute(G,z)}}b=b.getElementsByTagName("a");if(null!=b)for(var n=0;n<b.length;n++)m(b[n],"href"),m(b[n],"xlink:href")};Graph.isLink=function(b){return null!=b&&b.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g)};
mxUtils.extend(Graph,mxGraph);Graph.prototype.minFitScale=null;Graph.prototype.maxFitScale=null;Graph.prototype.linkPolicy="frame"==urlParams.target?"blank":urlParams.target||"auto";Graph.prototype.linkTarget="frame"==urlParams.target?"_self":"_blank";Graph.prototype.defaultExportLinkTarget=null;Graph.prototype.linkRelation="nofollow noopener noreferrer";Graph.prototype.defaultScrollbars=!0;Graph.prototype.defaultPageVisible=!0;Graph.prototype.defaultGridEnabled="0"!=urlParams.grid;
Graph.prototype.defaultConnectionArrowsEnabled=!0;Graph.prototype.defaultConnectable=!0;Graph.prototype.defaultFoldingEnabled=!0;Graph.prototype.lightbox=!1;Graph.prototype.diagramBackgroundColor="#f0f0f0";Graph.prototype.enableDiagramBackground=!1;Graph.prototype.defaultPageBackgroundColor="1"==urlParams.embedInline?"transparent":"light-dark(#ffffff, "+Editor.darkColor+")";Graph.prototype.defaultPageBorderColor="light-dark(#ffffff, #000000)";Graph.prototype.shapeForegroundColor="light-dark(#000000, #ffffff)";
Graph.prototype.shapeBackgroundColor="light-dark(#ffffff, var("+Editor.darkColorVar+", "+Editor.darkColor+"))";Graph.prototype.scrollTileSize=new mxRectangle(0,0,400,400);Graph.prototype.transparentBackground=!0;Graph.prototype.selectParentAfterDelete=!1;Graph.prototype.defaultEdgeLength=80;Graph.prototype.immediateHandling=!0;Graph.prototype.connectionArrowsEnabled=!0;Graph.prototype.placeholderPattern=RegExp("%(date{.*}|[^%{}\"'=;]+)%","g");
Graph.prototype.absoluteUrlPattern=RegExp("^(?:[a-z]+:)?//","i");Graph.prototype.defaultThemeName="default";Graph.prototype.defaultThemes={};Graph.prototype.baseUrl=null!=urlParams.base?mxUtils.removeJavascriptProtocol(decodeURIComponent(urlParams.base)):(window!=window.top?document.referrer:document.location.toString()).split("#")[0];Graph.prototype.editAfterInsert=!1;Graph.prototype.builtInProperties=["label","tooltip","placeholders","placeholder"];Graph.prototype.standalone=!1;
Graph.prototype.enableFlowAnimation=!1;Graph.prototype.roundableShapes="label rectangle internalStorage corner parallelogram swimlane triangle trapezoid ext step tee process link rhombus offPageConnector loopLimit hexagon manualInput card curlyBracket singleArrow callout doubleArrow flexArrow umlLifeline".split(" ");Graph.prototype.vertexFontSize=null;Graph.prototype.edgeFontSize=null;Graph.prototype.adaptiveColors="auto";
-Graph.prototype.init=function(b){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(m,n){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var v=m.view.graph.tolerance,p=!0,z=null,G=mxUtils.bind(this,function(R){p=!0;z=new mxPoint(mxEvent.getClientX(R),mxEvent.getClientY(R))}),U=mxUtils.bind(this,function(R){p=p&&null!=z&&Math.abs(z.x-mxEvent.getClientX(R))<v&&Math.abs(z.y-mxEvent.getClientY(R))<v}),E=mxUtils.bind(this,function(R){if(p)for(var N=mxEvent.getSource(R);null!=
+Graph.prototype.init=function(b){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(m,n){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var u=m.view.graph.tolerance,p=!0,z=null,G=mxUtils.bind(this,function(R){p=!0;z=new mxPoint(mxEvent.getClientX(R),mxEvent.getClientY(R))}),U=mxUtils.bind(this,function(R){p=p&&null!=z&&Math.abs(z.x-mxEvent.getClientX(R))<u&&Math.abs(z.y-mxEvent.getClientY(R))<u}),E=mxUtils.bind(this,function(R){if(p)for(var N=mxEvent.getSource(R);null!=
N&&N!=n.node;){if("a"==N.nodeName.toLowerCase()){m.view.graph.labelLinkClicked(m,N,R);break}N=N.parentNode}});mxEvent.addGestureListeners(n.node,G,U,E);mxEvent.addListener(n.node,"click",function(R){mxEvent.consume(R)})};if(null!=this.tooltipHandler){var d=this.tooltipHandler.init;this.tooltipHandler.init=function(){d.apply(this,arguments);null!=this.div&&mxEvent.addListener(this.div,"click",mxUtils.bind(this,function(m){var n=mxEvent.getSource(m);"A"==n.nodeName&&(n=n.getAttribute("href"),null!=
n&&this.graph.isCustomLink(n)&&(mxEvent.isTouchEvent(m)||!mxEvent.isPopupTrigger(m))&&this.graph.customLinkClicked(n)&&mxEvent.consume(m))}))}}this.initLayoutManager()};
(function(){Graph.prototype.useCssTransforms=!1;Graph.prototype.currentScale=1;Graph.prototype.currentTranslate=new mxPoint(0,0);Graph.prototype.pasteEdgeStyle=!1;Graph.prototype.isFillState=function(z){var G=mxUtils.getValue(z.style,mxConstants.STYLE_SHAPE,null);return!this.isSpecialColor(z.style[mxConstants.STYLE_FILLCOLOR])&&"1"!=mxUtils.getValue(z.style,"lineShape",null)&&"mxgraph.basic.arc"!=G&&(this.model.isVertex(z.cell)||"arrow"==G||"pipe"==G||"wire"==G||"filledEdge"==G||"flexArrow"==G||"mxgraph.arrows2.wedgeArrow"==
@@ -2462,10 +2462,10 @@ function(z){z=this.strokeWidth;this.graph.useCssTransforms&&(z/=this.graph.curre
mxGraphView.prototype.validate=function(z){this.graph.useCssTransforms&&(this.graph.currentScale=this.scale,this.graph.currentTranslate.x=this.translate.x,this.graph.currentTranslate.y=this.translate.y,this.scale=1,this.translate.x=0,this.translate.y=0);d.apply(this,arguments);this.graph.useCssTransforms&&(this.graph.updateCssTransform(),this.scale=this.graph.currentScale,this.translate.x=this.graph.currentTranslate.x,this.translate.y=this.graph.currentTranslate.y)};var m=mxGraph.prototype.getCellsForGroup;
Graph.prototype.getCellsForGroup=function(z){z=m.apply(this,arguments);for(var G=[],U=0;U<z.length;U++)this.isTableRow(z[U])||this.isTableCell(z[U])||G.push(z[U]);return G};var n=mxGraph.prototype.getCellsForUngroup;Graph.prototype.getCellsForUngroup=function(z){z=n.apply(this,arguments);for(var G=[],U=0;U<z.length;U++)this.isTable(z[U])||this.isTableRow(z[U])||this.isTableCell(z[U])||G.push(z[U]);return G};Graph.prototype.updateCssTransform=function(){var z=this.view.getDrawPane();if(null!=z)if(z=
z.parentNode,this.useCssTransforms){var G=z.getAttribute("transform");z.setAttribute("transformOrigin","0 0");var U=Math.round(100*this.currentScale)/100;z.setAttribute("transform","scale("+U+","+U+")translate("+Math.round(100*this.currentTranslate.x)/100+","+Math.round(100*this.currentTranslate.y)/100+")");G!=z.getAttribute("transform")&&this.fireEvent(new mxEventObject("cssTransformChanged"),"transform",z.getAttribute("transform"))}else z.removeAttribute("transformOrigin"),z.removeAttribute("transform")};
-var v=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){var z=this.graph.useCssTransforms,G=this.scale,U=this.translate;z&&(this.scale=this.graph.currentScale,this.translate=this.graph.currentTranslate);v.apply(this,arguments);z&&(this.scale=G,this.translate=U)};var p=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(z,G,U){var E=this.useCssTransforms,R=this.view.scale,N=this.view.translate;E&&(this.view.scale=1,this.view.translate=
+var u=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){var z=this.graph.useCssTransforms,G=this.scale,U=this.translate;z&&(this.scale=this.graph.currentScale,this.translate=this.graph.currentTranslate);u.apply(this,arguments);z&&(this.scale=G,this.translate=U)};var p=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(z,G,U){var E=this.useCssTransforms,R=this.view.scale,N=this.view.translate;E&&(this.view.scale=1,this.view.translate=
new mxPoint(0,0),this.useCssTransforms=!1);p.apply(this,arguments);E&&(this.view.scale=R,this.view.translate=N,this.useCssTransforms=!0)}})();Graph.prototype.isLightboxView=function(){return this.lightbox};Graph.prototype.isViewer=function(){return!1};
Graph.prototype.labelLinkClicked=function(b,d,m){var n=d.getAttribute("href");n!=Graph.sanitizeLink(n)&&Graph.sanitizeNode(d);if(null!=n&&!this.isCustomLink(n)&&(mxEvent.isLeftMouseButton(m)&&!mxEvent.isPopupTrigger(m)||mxEvent.isTouchEvent(m))){if(!this.isEnabled()||this.isCellLocked(b.cell))b=this.isBlankLink(n)?this.linkTarget:"_top",this.openLink(this.getAbsoluteUrl(n),b);mxEvent.consume(m)}};
-Graph.prototype.openLink=function(b,d,m){var n=window;try{if(b=Graph.sanitizeLink(b),null!=b)if("_self"==d&&window!=window.top)window.location.href=b;else if(b.substring(0,this.baseUrl.length)!=this.baseUrl||"#"!=b.charAt(this.baseUrl.length)||"_top"!=d||window!=window.top||navigator.standalone)n=window.open(b,null!=d?d:"_blank",m?null:"noopener,noreferrer"),null==n||m||(n.opener=null);else{var v=b.split("#")[1];window.location.hash=="#"+v&&(window.location.hash="");window.location.hash=v}}catch(p){}return n};
+Graph.prototype.openLink=function(b,d,m){var n=window;try{if(b=Graph.sanitizeLink(b),null!=b)if("_self"==d&&window!=window.top)window.location.href=b;else if(b.substring(0,this.baseUrl.length)!=this.baseUrl||"#"!=b.charAt(this.baseUrl.length)||"_top"!=d||window!=window.top||navigator.standalone)n=window.open(b,null!=d?d:"_blank",m?null:"noopener,noreferrer"),null==n||m||(n.opener=null);else{var u=b.split("#")[1];window.location.hash=="#"+u&&(window.location.hash="");window.location.hash=u}}catch(p){}return n};
Graph.prototype.getLinkTitle=function(b){return b.substring(b.lastIndexOf("/")+1)};Graph.prototype.isCustomLink=function(b){return"data:"==b.substring(0,5)};Graph.prototype.customLinkClicked=function(b,d){return!1};Graph.prototype.isExternalProtocol=function(b){return"mailto:"===b.substring(0,7)};Graph.prototype.isBlankLink=function(b){return!this.isExternalProtocol(b)&&("blank"===this.linkPolicy||"self"!==this.linkPolicy&&!this.isRelativeUrl(b)&&b.substring(0,this.domainUrl.length)!==this.domainUrl)};
Graph.prototype.isRelativeUrl=function(b){return null!=b&&!this.absoluteUrlPattern.test(b)&&"data:"!==b.substring(0,5)&&!this.isExternalProtocol(b)};Graph.prototype.getAbsoluteUrl=function(b){null!=b&&this.isRelativeUrl(b)&&(b="#"==b.charAt(0)?this.baseUrl+b:"/"==b.charAt(0)?this.domainUrl+b:this.domainPathUrl+b);return b};
Graph.prototype.initLayoutManager=function(){this.layoutManager=new mxLayoutManager(this);this.layoutManager.hasLayout=function(b){return null!=this.graph.getCellStyle(b).childLayout};this.layoutManager.getLayout=function(b,d){var m=this.graph.model.getParent(b);if(!this.graph.isCellCollapsed(b)&&(d!=mxEvent.BEGIN_UPDATE||this.hasLayout(m,d))){b=this.graph.getCellStyle(b);if("stackLayout"==b.childLayout)return d=new mxStackLayout(this.graph,!0),d.resizeParentMax="1"==mxUtils.getValue(b,"resizeParentMax",
@@ -2474,16 +2474,20 @@ b.childLayout)return d=new mxCompactTreeLayout(this.graph),d.horizontal="1"==mxU
"flowOrientation",mxConstants.DIRECTION_EAST)),d.resizeParent="1"==mxUtils.getValue(b,"resizeParent","1"),d.parentBorder=mxUtils.getValue(b,"parentPadding",20),d.maintainParentLocation=!0,d.intraCellSpacing=mxUtils.getValue(b,"intraCellSpacing",mxHierarchicalLayout.prototype.intraCellSpacing),d.interRankCellSpacing=mxUtils.getValue(b,"interRankCellSpacing",mxHierarchicalLayout.prototype.interRankCellSpacing),d.interHierarchySpacing=mxUtils.getValue(b,"interHierarchySpacing",mxHierarchicalLayout.prototype.interHierarchySpacing),
d.parallelEdgeSpacing=mxUtils.getValue(b,"parallelEdgeSpacing",mxHierarchicalLayout.prototype.parallelEdgeSpacing),d;if("circleLayout"==b.childLayout)return new mxCircleLayout(this.graph);if("organicLayout"==b.childLayout)return new mxFastOrganicLayout(this.graph);if("tableLayout"==b.childLayout)return new TableLayout(this.graph);if(null!=b.childLayout&&"["==String(b.childLayout).charAt(0))try{return new mxCompositeLayout(this.graph,this.graph.createLayouts(JSON.parse(b.childLayout)))}catch(n){null!=
window.console&&console.error(n)}}return null}};
-Graph.prototype.createLayouts=function(b){for(var d=[],m=0;m<b.length;m++)if(0<=mxUtils.indexOf(Graph.layoutNames,b[m].layout)){var n="mxOrgChartLayout"==b[m].layout&&null!=b[m].config?new window[b[m].layout](this,b[m].config.branchOptimizer):new window[b[m].layout](this);if(null!=b[m].config)for(var v in b[m].config)if("mxOrgChartLayout"!=b[m].layout||"branchOptimizer"!=v)n[v]=b[m].config[v];d.push(n)}else throw Error(mxResources.get("invalidCallFnNotFound",[b[m].layout]));return d};
-Graph.prototype.getDataForCells=function(b,d){for(var m=[],n=0;n<b.length;n++){var v={};v.id=b[n].id;var p=null!=b[n].value?b[n].value.attributes:null;this.isReplacePlaceholders(b[n])&&d&&(v.value=this.getLabel(b[n]));if(null!=p)for(var z=0;z<p.length;z++)v[p[z].nodeName]=p[z].nodeValue;else v.label=this.convertValueToString(b[n]);m.push(v)}return m};
-Graph.prototype.getNodesForCells=function(b){for(var d=[],m=0;m<b.length;m++){var n=this.view.getState(b[m]);if(null!=n){for(var v=this.cellRenderer.getShapesForState(n),p=0;p<v.length;p++)null!=v[p]&&null!=v[p].node&&d.push(v[p].node);null!=n.control&&null!=n.control.node&&d.push(n.control.node)}}return d};
-Graph.prototype.createWipeAnimations=function(b,d){for(var m=[],n=0;n<b.length;n++){var v=this.view.getState(b[n]);null!=v&&null!=v.shape&&(this.model.isEdge(v.cell)&&null!=v.absolutePoints&&1<v.absolutePoints.length?m.push(this.createEdgeWipeAnimation(v,d)):this.model.isVertex(v.cell)&&null!=v.shape.bounds&&m.push(this.createVertexWipeAnimation(v,d)))}return m};
-Graph.prototype.createEdgeWipeAnimation=function(b,d){var m=b.absolutePoints.slice(),n=b.segments,v=b.length,p=m.length;return{execute:mxUtils.bind(this,function(z,G){if(null!=b.shape){var U=[m[0]];G=z/G;d||(G=1-G);for(var E=v*G,R=1;R<p;R++)if(E<=n[R-1]){U.push(new mxPoint(m[R-1].x+(m[R].x-m[R-1].x)*E/n[R-1],m[R-1].y+(m[R].y-m[R-1].y)*E/n[R-1]));break}else E-=n[R-1],U.push(m[R]);b.shape.points=U;b.shape.redraw();0==z&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1);null!=b.text&&null!=
+Graph.prototype.createLayouts=function(b){for(var d=[],m=0;m<b.length;m++)if(0<=mxUtils.indexOf(Graph.layoutNames,b[m].layout)){var n="mxOrgChartLayout"==b[m].layout&&null!=b[m].config?new window[b[m].layout](this,b[m].config.branchOptimizer):new window[b[m].layout](this);if(null!=b[m].config)for(var u in b[m].config)if("mxOrgChartLayout"!=b[m].layout||"branchOptimizer"!=u)n[u]=b[m].config[u];d.push(n)}else throw Error(mxResources.get("invalidCallFnNotFound",[b[m].layout]));return d};
+Graph.prototype.getDataForCells=function(b,d){for(var m=[],n=0;n<b.length;n++){var u={};u.id=b[n].id;var p=null!=b[n].value?b[n].value.attributes:null;this.isReplacePlaceholders(b[n])&&d&&(u.value=this.getLabel(b[n]));if(null!=p)for(var z=0;z<p.length;z++)u[p[z].nodeName]=p[z].nodeValue;else u.label=this.convertValueToString(b[n]);m.push(u)}return m};
+Graph.prototype.getNodesForCells=function(b){for(var d=[],m=0;m<b.length;m++){var n=this.view.getState(b[m]);if(null!=n){for(var u=this.cellRenderer.getShapesForState(n),p=0;p<u.length;p++)null!=u[p]&&null!=u[p].node&&d.push(u[p].node);null!=n.control&&null!=n.control.node&&d.push(n.control.node)}}return d};
+Graph.prototype.createWipeAnimations=function(b,d){for(var m=[],n=0;n<b.length;n++){var u=this.view.getState(b[n]);null!=u&&null!=u.shape&&(this.model.isEdge(u.cell)&&null!=u.absolutePoints&&1<u.absolutePoints.length?m.push(this.createEdgeWipeAnimation(u,d)):this.model.isVertex(u.cell)&&null!=u.shape.bounds&&m.push(this.createVertexWipeAnimation(u,d)))}return m};
+Graph.prototype.createEdgeWipeAnimation=function(b,d){var m=b.absolutePoints.slice(),n=b.segments,u=b.length,p=m.length;return{execute:mxUtils.bind(this,function(z,G){if(null!=b.shape){var U=[m[0]];G=z/G;d||(G=1-G);for(var E=u*G,R=1;R<p;R++)if(E<=n[R-1]){U.push(new mxPoint(m[R-1].x+(m[R].x-m[R-1].x)*E/n[R-1],m[R-1].y+(m[R].y-m[R-1].y)*E/n[R-1]));break}else E-=n[R-1],U.push(m[R]);b.shape.points=U;b.shape.redraw();0==z&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1);null!=b.text&&null!=
b.text.node&&(b.text.node.style.opacity=G)}}),stop:mxUtils.bind(this,function(){null!=b.shape&&(b.shape.points=m,b.shape.redraw(),null!=b.text&&null!=b.text.node&&(b.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),d?1:0))})}};
-Graph.prototype.createVertexWipeAnimation=function(b,d){var m=new mxRectangle.fromRectangle(b.shape.bounds);return{execute:mxUtils.bind(this,function(n,v){null!=b.shape&&(v=n/v,d||(v=1-v),b.shape.bounds=new mxRectangle(m.x,m.y,m.width*v,m.height),b.shape.redraw(),0==n&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1),null!=b.text&&null!=b.text.node&&(b.text.node.style.opacity=v))}),stop:mxUtils.bind(this,function(){null!=b.shape&&(b.shape.bounds=m,b.shape.redraw(),null!=b.text&&null!=b.text.node&&
-(b.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),d?1:0))})}};Graph.prototype.executeAnimations=function(b,d,m,n){m=null!=m?m:30;n=null!=n?n:30;var v=null,p=0,z=mxUtils.bind(this,function(){if(p==m||this.stoppingCustomActions){window.clearInterval(v);for(var G=0;G<b.length;G++)b[G].stop();null!=d&&d()}else for(G=0;G<b.length;G++)b[G].execute(p,m);p++});v=window.setInterval(z,n);z()};
-Graph.prototype.executeAnimationsStepped=function(b,d,m,n){d=null!=d?d:30;var v=0,p=mxUtils.bind(this,function(){if(v<=d){for(var z=0;z<b.length;z++)b[z].execute(v,d);m(v,d,function(){v++;p()})}else{for(z=0;z<b.length;z++)b[z].stop();null!=n&&n()}});p()};Graph.prototype.getPageSize=function(){return this.pageVisible&&null!=this.pageFormat?new mxRectangle(0,0,this.pageFormat.width*this.pageScale,this.pageFormat.height*this.pageScale):this.scrollTileSize};
-Graph.prototype.getPageLayout=function(b,d,m){b=null!=b?b:this.getGraphBounds();d=null!=d?d:this.view.translate;m=null!=m?m:this.view.scale;var n=this.getPageSize();if(0==b.width||0==b.height)return new mxRectangle(0,0,1,1);var v=Math.floor(Math.ceil(b.x/m-d.x)/n.width),p=Math.floor(Math.ceil(b.y/m-d.y)/n.height);return new mxRectangle(v,p,Math.ceil((Math.floor((b.x+b.width)/m)-d.x)/n.width)-v,Math.ceil((Math.floor((b.y+b.height)/m)-d.y)/n.height)-p)};
+Graph.prototype.createVertexWipeAnimation=function(b,d){var m=new mxRectangle.fromRectangle(b.shape.bounds);return{execute:mxUtils.bind(this,function(n,u){null!=b.shape&&(u=n/u,d||(u=1-u),b.shape.bounds=new mxRectangle(m.x,m.y,m.width*u,m.height),b.shape.redraw(),0==n&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1),null!=b.text&&null!=b.text.node&&(b.text.node.style.opacity=u))}),stop:mxUtils.bind(this,function(){null!=b.shape&&(b.shape.bounds=m,b.shape.redraw(),null!=b.text&&null!=b.text.node&&
+(b.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),d?1:0))})}};
+Graph.prototype.createVertexPopAnimation=function(b,d){var m=new mxRectangle.fromRectangle(b.shape.bounds),n=m.getCenterX(),u=m.getCenterY();return{execute:mxUtils.bind(this,function(p,z){if(null!=b.shape){z=p/z;d||(z=1-z);var G=1-Math.exp(-5*z)*Math.cos(5*Math.PI*z);b.shape.bounds=new mxRectangle(n-m.width*G/2,u-m.height*G/2,m.width*G,m.height*G);b.shape.redraw();0==p&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1);null!=b.text&&null!=b.text.node&&(b.text.node.style.opacity=Math.min(1,
+3*z))}}),stop:mxUtils.bind(this,function(){null!=b.shape&&(b.shape.bounds=m,b.shape.redraw(),null!=b.text&&null!=b.text.node&&(b.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),d?1:0))})}};
+Graph.prototype.createPopAnimations=function(b,d){for(var m=[],n=0;n<b.length;n++){var u=this.view.getState(b[n]);null!=u&&null!=u.shape&&(this.model.isEdge(u.cell)&&null!=u.absolutePoints&&1<u.absolutePoints.length?m.push(this.createEdgeWipeAnimation(u,d)):this.model.isVertex(u.cell)&&null!=u.shape.bounds&&m.push(this.createVertexPopAnimation(u,d)))}return m};
+Graph.prototype.executeAnimations=function(b,d,m,n){m=null!=m?m:30;n=null!=n?n:30;var u=null,p=0,z=mxUtils.bind(this,function(){if(p==m||this.stoppingCustomActions){window.clearInterval(u);for(var G=0;G<b.length;G++)b[G].stop();null!=d&&d()}else for(G=0;G<b.length;G++)b[G].execute(p,m);p++});u=window.setInterval(z,n);z()};
+Graph.prototype.executeAnimationsStepped=function(b,d,m,n){d=null!=d?d:30;var u=0,p=mxUtils.bind(this,function(){if(u<=d){for(var z=0;z<b.length;z++)b[z].execute(u,d);m(u,d,function(){u++;p()})}else{for(z=0;z<b.length;z++)b[z].stop();null!=n&&n()}});p()};Graph.prototype.getPageSize=function(){return this.pageVisible&&null!=this.pageFormat?new mxRectangle(0,0,this.pageFormat.width*this.pageScale,this.pageFormat.height*this.pageScale):this.scrollTileSize};
+Graph.prototype.getPageLayout=function(b,d,m){b=null!=b?b:this.getGraphBounds();d=null!=d?d:this.view.translate;m=null!=m?m:this.view.scale;var n=this.getPageSize();if(0==b.width||0==b.height)return new mxRectangle(0,0,1,1);var u=Math.floor(Math.ceil(b.x/m-d.x)/n.width),p=Math.floor(Math.ceil(b.y/m-d.y)/n.height);return new mxRectangle(u,p,Math.ceil((Math.floor((b.x+b.width)/m)-d.x)/n.width)-u,Math.ceil((Math.floor((b.y+b.height)/m)-d.y)/n.height)-p)};
Graph.prototype.getDefaultTranslate=function(b){var d=this.getPagePadding(),m=this.getPageSize();return new mxPoint(d.x-b.x*m.width,d.y-b.y*m.height)};Graph.prototype.updateMinimumSize=function(){var b=this.getPageLayout(),d=this.getPagePadding(),m=this.getPageSize(),n=Math.ceil(2*d.x+b.width*m.width);b=Math.ceil(2*d.y+b.height*m.height);if(null==this.minimumGraphSize||this.minimumGraphSize.width!=n||this.minimumGraphSize.height!=b)this.minimumGraphSize=new mxRectangle(0,0,n,b)};
Graph.prototype.sanitizeHtml=function(b,d){return Graph.sanitizeHtml(b,d)};Graph.prototype.updatePlaceholders=function(){var b=!1,d;for(d in this.model.cells){var m=this.model.cells[d];this.isReplacePlaceholders(m)&&(this.view.invalidate(m,!1,!1),b=!0)}b&&this.view.validate()};Graph.prototype.isReplacePlaceholders=function(b){return null!=b.value&&"object"==typeof b.value&&"1"==b.value.getAttribute("placeholders")};
Graph.prototype.isZoomWheelEvent=function(b){return Graph.zoomWheel&&!mxEvent.isShiftDown(b)&&!mxEvent.isMetaDown(b)&&!mxEvent.isAltDown(b)&&(!mxEvent.isControlDown(b)||mxClient.IS_MAC)||!Graph.zoomWheel&&(mxEvent.isAltDown(b)||mxEvent.isControlDown(b))};Graph.prototype.isScrollWheelEvent=function(b){return!this.isZoomWheelEvent(b)};Graph.prototype.isTransparentClickEvent=function(b){return mxEvent.isAltDown(b)||mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(b)};
@@ -2492,34 +2496,34 @@ Graph.prototype.isSplitTarget=function(b,d,m){return!this.model.isEdge(d[0])&&!m
Graph.prototype.isLabelMovable=function(b){var d=this.getCurrentCellStyle(b);return!this.isCellLocked(b)&&(this.model.isEdge(b)&&this.edgeLabelsMovable||this.model.isVertex(b)&&(this.vertexLabelsMovable||"1"==mxUtils.getValue(d,"labelMovable","0")))};Graph.prototype.setGridSize=function(b){this.gridSize=b;this.fireEvent(new mxEventObject("gridSizeChanged"))};Graph.prototype.setDefaultParent=function(b){this.defaultParent=b;this.fireEvent(new mxEventObject("defaultParentChanged"))};
Graph.prototype.getClickableLinkForCell=function(b){do{var d=this.getLinkForCell(b);if(null!=d)return d;b=this.model.getParent(b)}while(null!=b);return null};Graph.prototype.getGlobalVariable=function(b){var d=null;"date"==b?d=(new Date).toLocaleDateString():"time"==b?d=(new Date).toLocaleTimeString():"timestamp"==b?d=(new Date).toLocaleString():"date{"==b.substring(0,5)&&(b=b.substring(5,b.length-1),d=this.formatDate(new Date,b));return d};
Graph.prototype.formatDate=function(b,d,m){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 n=this.dateFormatCache,v=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,p=/[^-+\dA-Z]/g,z=function(D,H){D=String(D);for(H=H||2;D.length<H;)D="0"+D;return D};1!=arguments.length||"[object String]"!=Object.prototype.toString.call(b)||
+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 n=this.dateFormatCache,u=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,p=/[^-+\dA-Z]/g,z=function(D,H){D=String(D);for(H=H||2;D.length<H;)D="0"+D;return D};1!=arguments.length||"[object String]"!=Object.prototype.toString.call(b)||
/\d/.test(b)||(d=b,b=void 0);b=b?new Date(b):new Date;if(isNaN(b))throw SyntaxError("invalid date");d=String(n.masks[d]||d||n.masks["default"]);"UTC:"==d.slice(0,4)&&(d=d.slice(4),m=!0);var G=m?"getUTC":"get",U=b[G+"Date"](),E=b[G+"Day"](),R=b[G+"Month"](),N=b[G+"FullYear"](),c=b[G+"Hours"](),g=b[G+"Minutes"](),k=b[G+"Seconds"]();G=b[G+"Milliseconds"]();var q=m?0:b.getTimezoneOffset(),A={d:U,dd:z(U),ddd:n.i18n.dayNames[E],dddd:n.i18n.dayNames[E+7],m:R+1,mm:z(R+1),mmm:n.i18n.monthNames[R],mmmm:n.i18n.monthNames[R+
-12],yy:String(N).slice(2),yyyy:N,h:c%12||12,hh:z(c%12||12),H:c,HH:z(c),M:g,MM:z(g),s:k,ss:z(k),l:z(G,3),L:z(99<G?Math.round(G/10):G),t:12>c?"a":"p",tt:12>c?"am":"pm",T:12>c?"A":"P",TT:12>c?"AM":"PM",Z:m?"UTC":(String(b).match(v)||[""]).pop().replace(p,""),o:(0<q?"-":"+")+z(100*Math.floor(Math.abs(q)/60)+Math.abs(q)%60,4),S:["th","st","nd","rd"][3<U%10?0:(10!=U%100-U%10)*U%10]};return d.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(D){return D in A?A[D]:D.slice(1,
+12],yy:String(N).slice(2),yyyy:N,h:c%12||12,hh:z(c%12||12),H:c,HH:z(c),M:g,MM:z(g),s:k,ss:z(k),l:z(G,3),L:z(99<G?Math.round(G/10):G),t:12>c?"a":"p",tt:12>c?"am":"pm",T:12>c?"A":"P",TT:12>c?"AM":"PM",Z:m?"UTC":(String(b).match(u)||[""]).pop().replace(p,""),o:(0<q?"-":"+")+z(100*Math.floor(Math.abs(q)/60)+Math.abs(q)%60,4),S:["th","st","nd","rd"][3<U%10?0:(10!=U%100-U%10)*U%10]};return d.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(D){return D in A?A[D]:D.slice(1,
D.length-1)})};Graph.prototype.getLayerForCell=function(b){for(;null!=b&&!this.model.isLayer(b);)b=this.model.getParent(b);return b};Graph.prototype.getLayerForCells=function(b){var d=null;if(0<b.length){d=this.getLayerForCell(b[0]);for(var m=1;m<b.length;m++)if(!this.model.isAncestor(d,b[m])){d=null;break}}return d};
-Graph.prototype.createLayersDialog=function(b,d){var m=document.createElement("div");m.style.position="absolute";for(var n=this.getModel(),v=n.getChildCount(n.root),p=0;p<v;p++)mxUtils.bind(this,function(z){function G(){n.isVisible(z)?(R.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(E,75)):(R.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(E,25))}var U=this.convertValueToString(z)||mxResources.get("background")||"Background",E=document.createElement("div");E.style.overflow=
+Graph.prototype.createLayersDialog=function(b,d){var m=document.createElement("div");m.style.position="absolute";for(var n=this.getModel(),u=n.getChildCount(n.root),p=0;p<u;p++)mxUtils.bind(this,function(z){function G(){n.isVisible(z)?(R.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(E,75)):(R.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(E,25))}var U=this.convertValueToString(z)||mxResources.get("background")||"Background",E=document.createElement("div");E.style.overflow=
"hidden";E.style.textOverflow="ellipsis";E.style.padding="2px";E.style.whiteSpace="nowrap";E.style.cursor="pointer";E.setAttribute("title",mxResources.get(n.isVisible(z)?"hideIt":"show",[U]));var R=document.createElement("img");R.setAttribute("draggable","false");R.setAttribute("align","absmiddle");R.setAttribute("border","0");R.style.position="relative";R.style.width="16px";R.style.padding="0px 6px 0 4px";d&&(R.style.filter="invert(100%)",R.style.top="-2px");E.appendChild(R);mxUtils.write(E,U);m.appendChild(E);
mxEvent.addListener(E,"click",function(){n.setVisible(z,!n.isVisible(z));G();null!=b&&b(z)});G()})(n.getChildAt(n.root,p));return m};
-Graph.prototype.replacePlaceholders=function(b,d,m,n){n=[];if(null!=d){for(var v,p=0;v=this.placeholderPattern.exec(d);){var z=v[0];if(2<z.length&&"%label%"!=z&&"%tooltip%"!=z){var G=null;if(v.index>p&&"%"==d.charAt(v.index-1))G=z.substring(1);else{var U=z.substring(1,z.length-1),E={mm:mxConstants.MILLIMETERS,"in":mxConstants.INCHES,m:mxConstants.METERS,current:this.view.unit};if("id"==U)G=b.id;else if("width"===U.substring(0,5)&&this.model.isVertex(b)){var R=this.getCellGeometry(b);null!=R&&(G=R.width,
+Graph.prototype.replacePlaceholders=function(b,d,m,n){n=[];if(null!=d){for(var u,p=0;u=this.placeholderPattern.exec(d);){var z=u[0];if(2<z.length&&"%label%"!=z&&"%tooltip%"!=z){var G=null;if(u.index>p&&"%"==d.charAt(u.index-1))G=z.substring(1);else{var U=z.substring(1,z.length-1),E={mm:mxConstants.MILLIMETERS,"in":mxConstants.INCHES,m:mxConstants.METERS,current:this.view.unit};if("id"==U)G=b.id;else if("width"===U.substring(0,5)&&this.model.isVertex(b)){var R=this.getCellGeometry(b);null!=R&&(G=R.width,
5<U.length&&(G=Editor.toUnit(G,E[U.substring(6)])))}else if("height"==U.substring(0,6)&&this.model.isVertex(b))R=this.getCellGeometry(b),null!=R&&(G=R.height,6<U.length&&(G=Editor.toUnit(G,E[U.substring(7)])));else if("length"==U.substring(0,6)){for(R=b;null!=R&&!this.model.isEdge(R);)R=this.model.getParent(R);R=this.view.getState(R);null!=R&&(G=Math.round(R.length/this.view.scale),6<U.length&&(G=Editor.toUnit(G,E[U.substring(7)])))}else if(0>U.indexOf("{"))for(E=b;null==G&&null!=E;)null!=E.value&&
"object"==typeof E.value&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(G=E.getAttribute(U+"_"+Graph.diagramLanguage)),null==G&&(G=E.hasAttribute(U)?null!=E.getAttribute(U)?E.getAttribute(U):"":null)),E=this.model.getParent(E);null==G&&("pagecount"==U.substring(0,9)&&9<U.length||"pagenumber"==U.substring(0,10)&&10<U.length?(E=U.match(/(pagecount|pagenumber)[\s]*([+-])[\s]*(\d+)/),null!=E&&(G=this.getGlobalVariable(E[1]),3<E.length&&(R=parseInt(E[3]),G+="+"==E[2]?R:-R))):G=this.getGlobalVariable(U));
-null==G&&null!=m&&(G=m[U])}n.push(d.substring(p,v.index)+(null!=G?G:z));p=v.index+z.length}}n.push(d.substring(p))}return n.join("")};Graph.prototype.restoreSelection=function(b){if(null!=b&&0<b.length){for(var d=[],m=0;m<b.length;m++){var n=this.model.getCell(b[m].id);null!=n&&d.push(n)}this.setSelectionCells(d)}else this.clearSelection()};
+null==G&&null!=m&&(G=m[U])}n.push(d.substring(p,u.index)+(null!=G?G:z));p=u.index+z.length}}n.push(d.substring(p))}return n.join("")};Graph.prototype.restoreSelection=function(b){if(null!=b&&0<b.length){for(var d=[],m=0;m<b.length;m++){var n=this.model.getCell(b[m].id);null!=n&&d.push(n)}this.setSelectionCells(d)}else this.clearSelection()};
Graph.prototype.selectCellForEvent=function(b,d){mxEvent.isShiftDown(d)&&!this.isSelectionEmpty()&&this.selectTableRange(this.getSelectionCell(),b)||mxGraph.prototype.selectCellForEvent.apply(this,arguments)};
-Graph.prototype.selectTableRange=function(b,d){var m=!1;if(this.isTableCell(b)&&this.isTableCell(d)){var n=this.model.getParent(b),v=this.model.getParent(n),p=this.model.getParent(d);if(v==this.model.getParent(p)){b=n.getIndex(b);n=v.getIndex(n);var z=p.getIndex(d),G=v.getIndex(p);p=Math.max(n,G);d=Math.min(b,z);b=Math.max(b,z);z=[];for(n=Math.min(n,G);n<=p;n++){G=this.model.getChildAt(v,n);for(var U=d;U<=b;U++)z.push(this.model.getChildAt(G,U))}0<z.length&&(1<z.length||1<this.getSelectionCount()||
+Graph.prototype.selectTableRange=function(b,d){var m=!1;if(this.isTableCell(b)&&this.isTableCell(d)){var n=this.model.getParent(b),u=this.model.getParent(n),p=this.model.getParent(d);if(u==this.model.getParent(p)){b=n.getIndex(b);n=u.getIndex(n);var z=p.getIndex(d),G=u.getIndex(p);p=Math.max(n,G);d=Math.min(b,z);b=Math.max(b,z);z=[];for(n=Math.min(n,G);n<=p;n++){G=this.model.getChildAt(u,n);for(var U=d;U<=b;U++)z.push(this.model.getChildAt(G,U))}0<z.length&&(1<z.length||1<this.getSelectionCount()||
!this.isCellSelected(z[0]))&&(this.setSelectionCells(z),m=!0)}}return m};
-Graph.prototype.snapCellsToGrid=function(b,d){this.getModel().beginUpdate();try{for(var m=0;m<b.length;m++){var n=b[m],v=this.getCellGeometry(n);if(null!=v){v=v.clone();if(this.getModel().isVertex(n))v.x=Math.round(v.x/d)*d,v.y=Math.round(v.y/d)*d,v.width=Math.round(v.width/d)*d,v.height=Math.round(v.height/d)*d;else if(this.getModel().isEdge(n)&&null!=v.points)for(var p=0;p<v.points.length;p++)v.points[p].x=Math.round(v.points[p].x/d)*d,v.points[p].y=Math.round(v.points[p].y/d)*d;this.getModel().setGeometry(n,
-v)}}}finally{this.getModel().endUpdate()}};Graph.prototype.removeChildCells=function(b){this.model.beginUpdate();try{for(var d=this.model.getChildCount(b);0<=d;d--)this.model.remove(this.model.getChildAt(b,d))}finally{this.model.endUpdate()}};
-Graph.prototype.updateShapes=function(b,d,m){this.model.beginUpdate();try{var n=this.model.getStyle(b),v=m?this.stylesheet.getCellStyle(n,{},!1):null;null!=v&&null==v[mxConstants.STYLE_SHAPE]&&(this.model.isVertex(b)?v[mxConstants.STYLE_SHAPE]=this.stylesheet.getDefaultVertexStyle()[mxConstants.STYLE_SHAPE]:this.model.isEdge(b)&&(v[mxConstants.STYLE_SHAPE]=this.stylesheet.getDefaultEdgeStyle()[mxConstants.STYLE_SHAPE]));for(var p=0;p<d.length;p++){if(this.model.isVertex(b)&&this.model.isVertex(d[p])||
-this.model.isEdge(b)&&this.model.isEdge(d[p]))if(m){var z=this.model.getStyle(d[p]);if(null!=z){var G=z.split(";");0<G.length&&0>G[0].indexOf("=")&&(G=G.slice(1));this.model.setStyle(d[p],G.join(";"))}this.setCellStyles(mxConstants.STYLE_PERIMETER,null,[d[p]]);this.setCellStyles("points",null,[d[p]]);this.pasteStyle(v,[d[p]],null,!0)}else v=this.copyStyle(d[p]),this.model.setStyle(d[p],n),this.pasteStyle(v,[d[p]]);"1"==mxUtils.getValue(this.getCellStyle(d[p],!1),"composite","0")&&this.removeChildCells(d[p])}}finally{this.model.endUpdate()}};
+Graph.prototype.snapCellsToGrid=function(b,d){this.getModel().beginUpdate();try{for(var m=0;m<b.length;m++){var n=b[m],u=this.getCellGeometry(n);if(null!=u){u=u.clone();if(this.getModel().isVertex(n))u.x=Math.round(u.x/d)*d,u.y=Math.round(u.y/d)*d,u.width=Math.round(u.width/d)*d,u.height=Math.round(u.height/d)*d;else if(this.getModel().isEdge(n)&&null!=u.points)for(var p=0;p<u.points.length;p++)u.points[p].x=Math.round(u.points[p].x/d)*d,u.points[p].y=Math.round(u.points[p].y/d)*d;this.getModel().setGeometry(n,
+u)}}}finally{this.getModel().endUpdate()}};Graph.prototype.removeChildCells=function(b){this.model.beginUpdate();try{for(var d=this.model.getChildCount(b);0<=d;d--)this.model.remove(this.model.getChildAt(b,d))}finally{this.model.endUpdate()}};
+Graph.prototype.updateShapes=function(b,d,m){this.model.beginUpdate();try{var n=this.model.getStyle(b),u=m?this.stylesheet.getCellStyle(n,{},!1):null;null!=u&&null==u[mxConstants.STYLE_SHAPE]&&(this.model.isVertex(b)?u[mxConstants.STYLE_SHAPE]=this.stylesheet.getDefaultVertexStyle()[mxConstants.STYLE_SHAPE]:this.model.isEdge(b)&&(u[mxConstants.STYLE_SHAPE]=this.stylesheet.getDefaultEdgeStyle()[mxConstants.STYLE_SHAPE]));for(var p=0;p<d.length;p++){if(this.model.isVertex(b)&&this.model.isVertex(d[p])||
+this.model.isEdge(b)&&this.model.isEdge(d[p]))if(m){var z=this.model.getStyle(d[p]);if(null!=z){var G=z.split(";");0<G.length&&0>G[0].indexOf("=")&&(G=G.slice(1));this.model.setStyle(d[p],G.join(";"))}this.setCellStyles(mxConstants.STYLE_PERIMETER,null,[d[p]]);this.setCellStyles("points",null,[d[p]]);this.pasteStyle(u,[d[p]],null,!0)}else u=this.copyStyle(d[p]),this.model.setStyle(d[p],n),this.pasteStyle(u,[d[p]]);"1"==mxUtils.getValue(this.getCellStyle(d[p],!1),"composite","0")&&this.removeChildCells(d[p])}}finally{this.model.endUpdate()}};
Graph.prototype.selectCellsForConnectVertex=function(b,d,m){2==b.length&&this.model.isVertex(b[1])?(this.setSelectionCell(b[1]),this.scrollCellToVisible(b[1]),null!=m&&(mxEvent.isTouchEvent(d)?m.update(m.getState(this.view.getState(b[1]))):m.reset())):this.setSelectionCells(b)};Graph.prototype.isCloneConnectSource=function(b){var d=null;null!=this.layoutManager&&(d=this.layoutManager.getLayout(this.model.getParent(b)));return this.isTableRow(b)||this.isTableCell(b)||null!=d&&d.constructor==mxStackLayout};
Graph.prototype.insertEdgeBeforeCell=function(b,d){for(var m=d;null!=m.parent&&null!=m.geometry&&m.geometry.relative&&m.parent!=b.parent;)m=this.model.getParent(m);null!=m&&null!=m.parent&&m.parent==b.parent&&(d=m.parent.getIndex(m),this.model.add(m.parent,b,d))};
-Graph.prototype.connectVertex=function(b,d,m,n,v,p,z,G){p=p?p:!1;if(b.geometry.relative&&this.model.isEdge(b.parent))return[];for(;b.geometry.relative&&this.model.isVertex(b.parent);)b=b.parent;var U=this.isCloneConnectSource(b),E=U?b:this.getCompositeParent(b),R=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(E.geometry.x,E.geometry.y);d==mxConstants.DIRECTION_NORTH?(R.x+=E.geometry.width/2,R.y-=m):d==
+Graph.prototype.connectVertex=function(b,d,m,n,u,p,z,G){p=p?p:!1;if(b.geometry.relative&&this.model.isEdge(b.parent))return[];for(;b.geometry.relative&&this.model.isVertex(b.parent);)b=b.parent;var U=this.isCloneConnectSource(b),E=U?b:this.getCompositeParent(b),R=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(E.geometry.x,E.geometry.y);d==mxConstants.DIRECTION_NORTH?(R.x+=E.geometry.width/2,R.y-=m):d==
mxConstants.DIRECTION_SOUTH?(R.x+=E.geometry.width/2,R.y+=E.geometry.height+m):(R.x=d==mxConstants.DIRECTION_WEST?R.x-m:R.x+(E.geometry.width+m),R.y+=E.geometry.height/2);var N=this.view.getState(this.model.getParent(b));m=this.view.scale;var c=this.view.translate;E=c.x*m;c=c.y*m;null!=N&&this.model.isVertex(N.cell)&&(E=N.x,c=N.y);this.model.isVertex(b.parent)&&b.geometry.relative&&(R.x+=b.parent.geometry.x,R.y+=b.parent.geometry.y);p=p?null:(new mxRectangle(E+R.x*m,c+R.y*m)).grow(40*m);p=null!=p?
this.getCells(0,0,0,0,null,null,p,null,!0):null;N=this.view.getState(b);var g=null,k=null;if(null!=p){p=p.reverse();for(var q=0;q<p.length;q++)if(!this.isCellLocked(p[q])&&!this.model.isEdge(p[q])&&p[q]!=b)if(!this.model.isAncestor(b,p[q])&&this.isContainer(p[q])&&(null==g||p[q]==this.model.getParent(b)))g=p[q];else if(null==k&&this.isCellConnectable(p[q])&&!this.model.isAncestor(p[q],b)&&!this.isSwimlane(p[q])){var A=this.view.getState(p[q]);null==N||null==A||mxUtils.intersects(N,A)||(k=p[q])}}var D=
-!mxEvent.isShiftDown(n)||mxEvent.isControlDown(n)||v;D&&("1"!=urlParams.sketch||v)&&(d==mxConstants.DIRECTION_NORTH?R.y-=b.geometry.height/2:d==mxConstants.DIRECTION_SOUTH?R.y+=b.geometry.height/2:R.x=d==mxConstants.DIRECTION_WEST?R.x-b.geometry.width/2:R.x+b.geometry.width/2);var H=[],K=k;k=g;v=mxUtils.bind(this,function(P){if(null==z||null!=P||null==k&&U){this.model.beginUpdate();try{if(null==K&&D){var W=this.getAbsoluteParent(null!=P?P:b);W=U?b:this.getCompositeParent(W);K=null!=P?P:this.duplicateCells([W],
+!mxEvent.isShiftDown(n)||mxEvent.isControlDown(n)||u;D&&("1"!=urlParams.sketch||u)&&(d==mxConstants.DIRECTION_NORTH?R.y-=b.geometry.height/2:d==mxConstants.DIRECTION_SOUTH?R.y+=b.geometry.height/2:R.x=d==mxConstants.DIRECTION_WEST?R.x-b.geometry.width/2:R.x+b.geometry.width/2);var H=[],K=k;k=g;u=mxUtils.bind(this,function(P){if(null==z||null!=P||null==k&&U){this.model.beginUpdate();try{if(null==K&&D){var W=this.getAbsoluteParent(null!=P?P:b);W=U?b:this.getCompositeParent(W);K=null!=P?P:this.duplicateCells([W],
!1)[0];null!=P&&this.addCells([K],this.model.getParent(b),null,null,null,!0);var M=this.getCellGeometry(K);null!=M&&(null!=P&&"1"==urlParams.sketch&&(d==mxConstants.DIRECTION_NORTH?R.y-=M.height/2:d==mxConstants.DIRECTION_SOUTH?R.y+=M.height/2:R.x=d==mxConstants.DIRECTION_WEST?R.x-M.width/2:R.x+M.width/2),M.x=R.x-M.width/2,M.y=R.y-M.height/2);null!=g?(this.addCells([K],g,null,null,null,!0),k=null):D&&!U&&this.addCells([K],this.getDefaultParent(),null,null,null,!0)}var ca=mxEvent.isControlDown(n)&&
mxEvent.isShiftDown(n)&&D||null==k&&U?null:this.insertEdge(this.model.getParent(b),null,"",b,K,this.createCurrentEdgeStyle());null!=ca&&(H.push(ca),this.applyNewEdgeStyle(b,[ca],d),this.connectionHandler.insertBeforeSource&&this.insertEdgeBeforeCell(ca,b));if(null==k&&null!=K&&null!=b.parent&&U&&d==mxConstants.DIRECTION_WEST){var fa=b.parent.getIndex(b);this.model.add(b.parent,K,fa)}null==k&&null!=K&&H.push(K);null==K&&null!=ca&&ca.geometry.setTerminalPoint(R,!1);null!=ca&&this.fireEvent(new mxEventObject("cellsInserted",
-"cells",[ca]))}finally{this.model.endUpdate()}}if(null!=G)G(H);else return H});if(null==z||null!=K||!D||null==k&&U)return v(K);z(E+R.x*m,c+R.y*m,v)};
-Graph.prototype.getIndexableText=function(b){b=null!=b?b:this.model.getDescendants(this.model.root);for(var d=document.createElement("div"),m=[],n,v=0;v<b.length;v++)if(n=b[v],this.model.isVertex(n)||this.model.isEdge(n))this.isHtmlLabel(n)?(d.innerHTML=Graph.sanitizeHtml(this.getLabel(n)),n=mxUtils.extractTextWithWhitespace([d])):n=this.getLabel(n),n=mxUtils.trim(n.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")),0<n.length&&m.push(n);return m.join(" ")};
+"cells",[ca]))}finally{this.model.endUpdate()}}if(null!=G)G(H);else return H});if(null==z||null!=K||!D||null==k&&U)return u(K);z(E+R.x*m,c+R.y*m,u)};
+Graph.prototype.getIndexableText=function(b){b=null!=b?b:this.model.getDescendants(this.model.root);for(var d=document.createElement("div"),m=[],n,u=0;u<b.length;u++)if(n=b[u],this.model.isVertex(n)||this.model.isEdge(n))this.isHtmlLabel(n)?(d.innerHTML=Graph.sanitizeHtml(this.getLabel(n)),n=mxUtils.extractTextWithWhitespace([d])):n=this.getLabel(n),n=mxUtils.trim(n.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")),0<n.length&&m.push(n);return m.join(" ")};
Graph.prototype.convertValueToString=function(b){var d=this.model.getValue(b);if(null!=d&&"object"==typeof d){var m=null;if(this.isReplacePlaceholders(b)&&null!=b.getAttribute("placeholder")){d=b.getAttribute("placeholder");for(var n=b;null==m&&null!=n;)null!=n.value&&"object"==typeof n.value&&(m=n.hasAttribute(d)?null!=n.getAttribute(d)?n.getAttribute(d):"":null),n=this.model.getParent(n)}else m=null,Graph.translateDiagram&&null!=Graph.diagramLanguage&&(m=d.getAttribute("label_"+Graph.diagramLanguage)),
null==m&&(m=d.getAttribute("label")||"");return m||""}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,d){return null!=b.value&&"object"==typeof b.value?(b=b.value.getAttribute("link"),d||(b=mxUtils.removeJavascriptProtocol(b)),b):null};
Graph.prototype.getLinkTargetForCell=function(b){return null!=b.value&&"object"==typeof b.value?b.value.getAttribute("linkTarget"):null};Graph.prototype.postProcessCellStyle=function(b,d){return this.updateHorizontalStyle(b,this.replaceDefaultColors(b,mxGraph.prototype.postProcessCellStyle.apply(this,arguments)))};
@@ -2529,25 +2533,25 @@ mxConstants.STYLE_IMAGE_BACKGROUND,b);this.replaceDefaultColor(d,mxConstants.STY
Graph.prototype.getDefaultColor=function(b,d,m){d="default"+d.charAt(0).toUpperCase()+d.substring(1);"invert"==b[d]&&(b=mxUtils.getLightDarkColor(m),m="light-dark("+b.dark+", "+b.light+")");return m};
Graph.prototype.setAdaptiveColors=function(b){this.adaptiveColors="default"==b?null:b;"1"==urlParams.embedInline?null!=this.container&&(this.container.style.colorScheme="none"==this.getAdaptiveColors()?"light":""):(b=this.view.getDrawPane().ownerSVGElement,null!=b&&(b.style.colorScheme="none"==this.getAdaptiveColors()?"light":""))};Graph.prototype.getAdaptiveColors=function(){return null!=this.adaptiveColors?this.adaptiveColors:Graph.defaultAdaptiveColors};
Graph.prototype.updateAlternateBounds=function(b,d,m){if(null!=b&&null!=d&&null!=this.layoutManager&&null!=d.alternateBounds){var n=this.layoutManager.getLayout(this.model.getParent(b));null!=n&&n.constructor==mxStackLayout&&(n.horizontal?d.alternateBounds.height=0:d.alternateBounds.width=0)}mxGraph.prototype.updateAlternateBounds.apply(this,arguments)};
-Graph.prototype.moveCellsTo=function(b,d){if(null!=b&&null!=d){for(var m=!0,n=0;n<b.length&&m;n++)m=m&&this.model.isEdge(b[n]);n=null;if(1==b.length&&m){var v=this.getCellGeometry(b[0]);null!=v&&(n=v.getTerminalPoint(!0))}n=null!=n?n:this.getBoundingBoxFromGeometry(b,m);null!=n&&(m=Math.round(this.snap(d.x)),d=Math.round(this.snap(d.y)),this.cellsMoved(b,m-n.x,d-n.y))}};Graph.prototype.isMoveCellsEvent=function(b,d){return mxEvent.isShiftDown(b)||"1"==mxUtils.getValue(d.style,"moveCells","0")};
-Graph.prototype.foldCells=function(b,d,m,n,v){d=null!=d?d:!1;null==m&&(m=this.getFoldableCells(this.getSelectionCells(),b));if(null!=m){this.model.beginUpdate();try{mxGraph.prototype.foldCells.apply(this,arguments);for(var p=0;p<m.length;p++){var z=this.view.getState(m[p]),G=this.getCellGeometry(m[p]);if(null!=z&&null!=G&&("1"!=mxUtils.getValue(z.style,"expandToFront","0")||this.isCellCollapsed(m[p])||this.orderCells(!1,[m[p]]),null!=this.layoutManager)){var U=0,E=0;if(G.alternateBounds)U=G.width-
-G.alternateBounds.width,E=G.height-G.alternateBounds.height;else{var R=this.useCssTransforms?1:this.view.scale;U=Math.round(G.width-z.width/R);E=Math.round(G.height-z.height/R)}if(0!=E||0!=U){var N=this.model.getParent(m[p]),c=this.layoutManager.getLayout(N);null==c?null!=v&&this.isMoveCellsEvent(v,z)&&this.moveSiblings(z,N,U,E):null!=v&&mxEvent.isAltDown(v)||c.constructor!=mxStackLayout||c.resizeLast||this.resizeParentStacks(N,c,U,E)}}}}finally{this.model.endUpdate()}this.isEnabled()&&this.setSelectionCells(m)}};
-Graph.prototype.moveSiblings=function(b,d,m,n){this.model.beginUpdate();try{var v=this.getCellsBeyond(b.x,b.y,d,!0,!0);for(d=0;d<v.length;d++)if(v[d]!=b.cell){var p=this.view.getState(v[d]),z=this.getCellGeometry(v[d]);null!=p&&null!=z&&(z=z.clone(),z.translate(Math.round(m*Math.max(0,Math.min(1,(p.x-b.x)/b.width))),Math.round(n*Math.max(0,Math.min(1,(p.y-b.y)/b.height)))),this.model.setGeometry(v[d],z))}}finally{this.model.endUpdate()}};
-Graph.prototype.resizeParentStacks=function(b,d,m,n){if(null!=this.layoutManager&&null!=d&&d.constructor==mxStackLayout&&!d.resizeLast){this.model.beginUpdate();try{for(var v=d.horizontal;null!=b&&null!=d&&d.constructor==mxStackLayout&&d.horizontal==v&&!d.resizeLast;){var p=this.getCellGeometry(b),z=this.view.getState(b);null!=z&&null!=p&&(p=p.clone(),d.horizontal?p.width+=m+Math.min(0,z.width/this.view.scale-p.width):p.height+=n+Math.min(0,z.height/this.view.scale-p.height),this.model.setGeometry(b,
+Graph.prototype.moveCellsTo=function(b,d){if(null!=b&&null!=d){for(var m=!0,n=0;n<b.length&&m;n++)m=m&&this.model.isEdge(b[n]);n=null;if(1==b.length&&m){var u=this.getCellGeometry(b[0]);null!=u&&(n=u.getTerminalPoint(!0))}n=null!=n?n:this.getBoundingBoxFromGeometry(b,m);null!=n&&(m=Math.round(this.snap(d.x)),d=Math.round(this.snap(d.y)),this.cellsMoved(b,m-n.x,d-n.y))}};Graph.prototype.isMoveCellsEvent=function(b,d){return mxEvent.isShiftDown(b)||"1"==mxUtils.getValue(d.style,"moveCells","0")};
+Graph.prototype.foldCells=function(b,d,m,n,u){d=null!=d?d:!1;null==m&&(m=this.getFoldableCells(this.getSelectionCells(),b));if(null!=m){this.model.beginUpdate();try{mxGraph.prototype.foldCells.apply(this,arguments);for(var p=0;p<m.length;p++){var z=this.view.getState(m[p]),G=this.getCellGeometry(m[p]);if(null!=z&&null!=G&&("1"!=mxUtils.getValue(z.style,"expandToFront","0")||this.isCellCollapsed(m[p])||this.orderCells(!1,[m[p]]),null!=this.layoutManager)){var U=0,E=0;if(G.alternateBounds)U=G.width-
+G.alternateBounds.width,E=G.height-G.alternateBounds.height;else{var R=this.useCssTransforms?1:this.view.scale;U=Math.round(G.width-z.width/R);E=Math.round(G.height-z.height/R)}if(0!=E||0!=U){var N=this.model.getParent(m[p]),c=this.layoutManager.getLayout(N);null==c?null!=u&&this.isMoveCellsEvent(u,z)&&this.moveSiblings(z,N,U,E):null!=u&&mxEvent.isAltDown(u)||c.constructor!=mxStackLayout||c.resizeLast||this.resizeParentStacks(N,c,U,E)}}}}finally{this.model.endUpdate()}this.isEnabled()&&this.setSelectionCells(m)}};
+Graph.prototype.moveSiblings=function(b,d,m,n){this.model.beginUpdate();try{var u=this.getCellsBeyond(b.x,b.y,d,!0,!0);for(d=0;d<u.length;d++)if(u[d]!=b.cell){var p=this.view.getState(u[d]),z=this.getCellGeometry(u[d]);null!=p&&null!=z&&(z=z.clone(),z.translate(Math.round(m*Math.max(0,Math.min(1,(p.x-b.x)/b.width))),Math.round(n*Math.max(0,Math.min(1,(p.y-b.y)/b.height)))),this.model.setGeometry(u[d],z))}}finally{this.model.endUpdate()}};
+Graph.prototype.resizeParentStacks=function(b,d,m,n){if(null!=this.layoutManager&&null!=d&&d.constructor==mxStackLayout&&!d.resizeLast){this.model.beginUpdate();try{for(var u=d.horizontal;null!=b&&null!=d&&d.constructor==mxStackLayout&&d.horizontal==u&&!d.resizeLast;){var p=this.getCellGeometry(b),z=this.view.getState(b);null!=z&&null!=p&&(p=p.clone(),d.horizontal?p.width+=m+Math.min(0,z.width/this.view.scale-p.width):p.height+=n+Math.min(0,z.height/this.view.scale-p.height),this.model.setGeometry(b,
p));b=this.model.getParent(b);d=this.layoutManager.getLayout(b)}}finally{this.model.endUpdate()}}};Graph.prototype.isContainer=function(b){var d=this.getCurrentCellStyle(b);return this.isSwimlane(b)?"0"!=d.container:"1"==d.container};Graph.prototype.isCellConnectable=function(b){var d=this.getCurrentCellStyle(b);return!this.isCellLocked(this.getLayerForCell(b))&&(null!=d.connectable?"0"!=d.connectable:mxGraph.prototype.isCellConnectable.apply(this,arguments))};
Graph.prototype.isLabelMovable=function(b){var d=this.getCurrentCellStyle(b);return null!=d.movableLabel?"0"!=d.movableLabel:mxGraph.prototype.isLabelMovable.apply(this,arguments)};Graph.prototype.selectAll=function(b){b=b||this.getDefaultParent();this.isCellLocked(b)||mxGraph.prototype.selectAll.apply(this,arguments)};Graph.prototype.selectCells=function(b,d,m){m=m||this.getDefaultParent();this.isCellLocked(m)||mxGraph.prototype.selectCells.apply(this,arguments)};
Graph.prototype.getSwimlaneAt=function(b,d,m){var n=mxGraph.prototype.getSwimlaneAt.apply(this,arguments);this.isCellLocked(n)&&(n=null);return n};Graph.prototype.isCellFoldable=function(b){var d=this.getCurrentCellStyle(b);return this.foldingEnabled&&"0"!=mxUtils.getValue(d,mxConstants.STYLE_RESIZABLE,"1")&&("1"==d.treeFolding||!this.isCellLocked(b)&&(this.isContainer(b)&&"0"!=d.collapsible||!this.isContainer(b)&&"1"==d.collapsible))};
Graph.prototype.reset=function(){this.isEditing()&&this.stopEditing(!0);this.escape();this.isSelectionEmpty()||this.clearSelection()};Graph.prototype.zoom=function(b,d){b=Math.max(.01,Math.min(this.view.scale*b,160))/this.view.scale;mxGraph.prototype.zoom.apply(this,arguments)};Graph.prototype.zoomIn=function(){.15>this.view.scale?this.zoom((this.view.scale+.01)/this.view.scale):this.zoom(Math.round(this.view.scale*this.zoomFactor*20)/20/this.view.scale)};
Graph.prototype.zoomOut=function(){.15>=this.view.scale?this.zoom((this.view.scale-.01)/this.view.scale):this.zoom(Math.round(1/this.zoomFactor*this.view.scale*20)/20/this.view.scale)};
-Graph.prototype.fitPages=function(b,d){var m=1;null==b&&(m=this.getPageLayout(),b=m.width,m=m.height);var n=this.pageScale,v=this.pageFormat,p=this.container.clientHeight-10;b=(this.container.clientWidth-10)/(b*v.width)/n;this.zoomTo(Math.floor(20*(d?b:Math.min(b,p/(m*v.height)/n)))/20);mxUtils.hasScrollbars(this.container)&&(b=this.getPagePadding(),this.container.scrollLeft=Math.min(b.x*this.view.scale,(this.container.scrollWidth-this.container.clientWidth)/2),d||(this.container.scrollTop=Math.min(b.y*
+Graph.prototype.fitPages=function(b,d){var m=1;null==b&&(m=this.getPageLayout(),b=m.width,m=m.height);var n=this.pageScale,u=this.pageFormat,p=this.container.clientHeight-10;b=(this.container.clientWidth-10)/(b*u.width)/n;this.zoomTo(Math.floor(20*(d?b:Math.min(b,p/(m*u.height)/n)))/20);mxUtils.hasScrollbars(this.container)&&(b=this.getPagePadding(),this.container.scrollLeft=Math.min(b.x*this.view.scale,(this.container.scrollWidth-this.container.clientWidth)/2),d||(this.container.scrollTop=Math.min(b.y*
this.view.scale,(this.container.scrollHeight-this.container.clientHeight)/2)))};
-Graph.prototype.fitWindow=function(b,d,m,n,v){d=null!=d?d:10;var p=this.container.clientWidth-d,z=this.container.clientHeight-d,G=Math.floor(20*Math.min(p/b.width,z/b.height))/20;null!=m&&(G=Math.min(G,m));if(!n||G<m)this.zoomTo(G,null,null,mxUtils.hasScrollbars(this.container)),mxUtils.hasScrollbars(this.container)&&(m=this.view.translate,this.container.scrollLeft=(b.x+m.x)*this.view.scale-Math.max((p-b.width*this.view.scale)/2+d/2,0),this.container.scrollTop=(b.y+m.y)*this.view.scale-Math.max((z-
-b.height*this.view.scale)/2+d/2,0),v&&this.pageVisible&&(b=this.view.getBackgroundPageBounds(),d=this.container.clientWidth,v=this.container.clientHeight,b.width<=d&&(this.container.scrollLeft=b.x+b.width/2-d/2),b.height<=v&&(this.container.scrollTop=b.y+b.height/2-v/2)))};
+Graph.prototype.fitWindow=function(b,d,m,n,u){d=null!=d?d:10;var p=this.container.clientWidth-d,z=this.container.clientHeight-d,G=Math.floor(20*Math.min(p/b.width,z/b.height))/20;null!=m&&(G=Math.min(G,m));if(!n||G<m)this.zoomTo(G,null,null,mxUtils.hasScrollbars(this.container)),mxUtils.hasScrollbars(this.container)&&(m=this.view.translate,this.container.scrollLeft=(b.x+m.x)*this.view.scale-Math.max((p-b.width*this.view.scale)/2+d/2,0),this.container.scrollTop=(b.y+m.y)*this.view.scale-Math.max((z-
+b.height*this.view.scale)/2+d/2,0),u&&this.pageVisible&&(b=this.view.getBackgroundPageBounds(),d=this.container.clientWidth,u=this.container.clientHeight,b.width<=d&&(this.container.scrollLeft=b.x+b.width/2-d/2),b.height<=u&&(this.container.scrollTop=b.y+b.height/2-u/2)))};
Graph.prototype.convertValueToTooltip=function(b){var d=null;mxUtils.isNode(b.value)&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(d=b.value.getAttribute("tooltip_"+Graph.diagramLanguage)),null==d&&(d=b.value.getAttribute("tooltip")),null!=d&&(null!=d&&this.isReplacePlaceholders(b)&&(d=this.replacePlaceholders(b,d)),d=Graph.sanitizeHtml(d)));return d};
-Graph.prototype.getTooltipForCell=function(b){var d="";if(mxUtils.isNode(b.value)&&(d=this.convertValueToTooltip(b),null==d)){var m=this.builtInProperties;b=b.value.attributes;var n=[];d="";this.isEnabled()&&(m.push("linkTarget"),m.push("link"));for(var v=0;v<b.length;v++)(Graph.translateDiagram&&"label"==b[v].nodeName||0>mxUtils.indexOf(m,b[v].nodeName))&&0<b[v].nodeValue.length&&n.push({name:b[v].nodeName,value:b[v].nodeValue});n.sort(function(p,z){return p.name<z.name?-1:p.name>z.name?1:0});for(v=
-0;v<n.length;v++)"link"==n[v].name&&this.isCustomLink(n[v].value)||(d+=("link"!=n[v].name?"<b>"+mxUtils.htmlEntities(n[v].name)+":</b> ":"")+mxUtils.htmlEntities(n[v].value)+"\n");0<d.length&&(d=d.substring(0,d.length-1),mxClient.IS_SVG&&(d='<div style="max-width:360px;text-overflow:ellipsis;overflow:hidden;">'+d+"</div>"))}return d};
-Graph.prototype.addFlowAnimationToNode=function(b,d,m,n){if(null!=b&&null!=n){var v=b.getAttribute("stroke-dasharray");if(""==v||null==v){var p=String(mxUtils.getValue(d,mxConstants.STYLE_DASH_PATTERN,"8")).split(" ");v=1==mxUtils.getValue(d,mxConstants.STYLE_FIX_DASH,!1)||null==d.dashPattern?1:mxUtils.getNumber(d,mxConstants.STYLE_STROKEWIDTH,1);if(0<p.length)for(var z=0;z<p.length;z++)p[z]=Math.round(Number(p[z])*m*v*100)/100;b.setAttribute("stroke-dasharray",p.join(" "))}else p=v.split(" ");if(0<
-p.length){for(z=v=0;z<p.length;z++){var G=parseFloat(p[z]);isNaN(G)||(v+=parseFloat(p[z]))}0!=p.length%2&&(v*=2);m=Math.round(v/m/16*parseInt(mxUtils.getValue(d,"flowAnimationDuration",500)));p=mxUtils.getValue(d,"flowAnimationTimingFunction","linear");d=mxUtils.getValue(d,"flowAnimationDirection","normal");b.style.animation=n+" "+m+"ms "+mxUtils.htmlEntities(p)+" infinite "+mxUtils.htmlEntities(d);b.style.strokeDashoffset=v}}};
+Graph.prototype.getTooltipForCell=function(b){var d="";if(mxUtils.isNode(b.value)&&(d=this.convertValueToTooltip(b),null==d)){var m=this.builtInProperties;b=b.value.attributes;var n=[];d="";this.isEnabled()&&(m.push("linkTarget"),m.push("link"));for(var u=0;u<b.length;u++)(Graph.translateDiagram&&"label"==b[u].nodeName||0>mxUtils.indexOf(m,b[u].nodeName))&&0<b[u].nodeValue.length&&n.push({name:b[u].nodeName,value:b[u].nodeValue});n.sort(function(p,z){return p.name<z.name?-1:p.name>z.name?1:0});for(u=
+0;u<n.length;u++)"link"==n[u].name&&this.isCustomLink(n[u].value)||(d+=("link"!=n[u].name?"<b>"+mxUtils.htmlEntities(n[u].name)+":</b> ":"")+mxUtils.htmlEntities(n[u].value)+"\n");0<d.length&&(d=d.substring(0,d.length-1),mxClient.IS_SVG&&(d='<div style="max-width:360px;text-overflow:ellipsis;overflow:hidden;">'+d+"</div>"))}return d};
+Graph.prototype.addFlowAnimationToNode=function(b,d,m,n){if(null!=b&&null!=n){var u=b.getAttribute("stroke-dasharray");if(""==u||null==u){var p=String(mxUtils.getValue(d,mxConstants.STYLE_DASH_PATTERN,"8")).split(" ");u=1==mxUtils.getValue(d,mxConstants.STYLE_FIX_DASH,!1)||null==d.dashPattern?1:mxUtils.getNumber(d,mxConstants.STYLE_STROKEWIDTH,1);if(0<p.length)for(var z=0;z<p.length;z++)p[z]=Math.round(Number(p[z])*m*u*100)/100;b.setAttribute("stroke-dasharray",p.join(" "))}else p=u.split(" ");if(0<
+p.length){for(z=u=0;z<p.length;z++){var G=parseFloat(p[z]);isNaN(G)||(u+=parseFloat(p[z]))}0!=p.length%2&&(u*=2);m=Math.round(u/m/16*parseInt(mxUtils.getValue(d,"flowAnimationDuration",500)));p=mxUtils.getValue(d,"flowAnimationTimingFunction","linear");d=mxUtils.getValue(d,"flowAnimationDirection","normal");b.style.animation=n+" "+m+"ms "+mxUtils.htmlEntities(p)+" infinite "+mxUtils.htmlEntities(d);b.style.strokeDashoffset=u}}};
Graph.prototype.addFlowAnimationStyle=function(){var b=document.getElementsByTagName("head")[0];if(null!=b&&null==this.flowAnimationId){this.flowAnimationId="ge-flow-animation-"+Editor.guid();var d=document.createElement("style");d.innerHTML=this.createFlowAnimationCss(this.flowAnimationId);b.appendChild(d)}return this.flowAnimationId};Graph.prototype.createFlowAnimationCss=function(b){return"@keyframes "+b+" {\n to {\n stroke-dashoffset: 0;\n }\n}"};Graph.prototype.stringToBytes=function(b){return Graph.stringToBytes(b)};
Graph.prototype.bytesToString=function(b){return Graph.bytesToString(b)};Graph.prototype.compressNode=function(b){return Graph.compressNode(b)};Graph.prototype.compress=function(b,d){return Graph.compress(b,d)};Graph.prototype.decompress=function(b,d){return Graph.decompress(b,d)};Graph.prototype.zapGremlins=function(b){return Graph.zapGremlins(b)};HoverIcons=function(b){mxEventSource.call(this);this.graph=b;this.init()};mxUtils.extend(HoverIcons,mxEventSource);HoverIcons.prototype.arrowSpacing=2;
HoverIcons.prototype.updateDelay=500;HoverIcons.prototype.activationDelay=140;HoverIcons.prototype.currentState=null;HoverIcons.prototype.activeArrow=null;HoverIcons.prototype.inactiveOpacity=15;HoverIcons.prototype.cssCursor="copy";HoverIcons.prototype.checkCollisions=!0;HoverIcons.prototype.arrowFill="#29b6f2";HoverIcons.prototype.triangleUp=Graph.createSvgImage(18,28,'<path d="m 6 26 L 12 26 L 12 12 L 18 12 L 9 1 L 1 12 L 6 12 z" stroke="#fff" fill="'+HoverIcons.prototype.arrowFill+'"/>');
@@ -2562,21 +2566,21 @@ mxEvent.getSource(m)==this.graph.container&&this.setDisplay("none")}));this.grap
n){d=!1;m=n.getEvent();this.isResetEvent(m)?this.reset():this.isActive()||(n=this.getState(n.getState()),null==n&&mxEvent.isTouchEvent(m)||this.update(n));this.setDisplay("none")}),mouseMove:mxUtils.bind(this,function(m,n){m=n.getEvent();this.isResetEvent(m)?this.reset():this.graph.isMouseDown||mxEvent.isTouchEvent(m)||this.update(this.getState(n.getState()),n.getGraphX(),n.getGraphY());null!=this.graph.connectionHandler&&null!=this.graph.connectionHandler.shape&&(d=!0)}),mouseUp:mxUtils.bind(this,
function(m,n){m=n.getEvent();mxUtils.convertPoint(this.graph.container,mxEvent.getClientX(m),mxEvent.getClientY(m));this.isResetEvent(m)?this.reset():this.isActive()&&!d&&null!=this.mouseDownPoint?this.click(this.currentState,this.getDirection(),n):this.isActive()?1==this.graph.getSelectionCount()&&this.graph.model.isEdge(this.graph.getSelectionCell())?this.reset():this.update(this.getState(this.graph.view.getState(this.graph.getCellAt(n.getGraphX(),n.getGraphY())))):mxEvent.isTouchEvent(m)||null!=
this.bbox&&mxUtils.contains(this.bbox,n.getGraphX(),n.getGraphY())?(this.setDisplay(""),this.repaint()):mxEvent.isTouchEvent(m)||this.reset();d=!1;this.resetActiveArrow()})})};HoverIcons.prototype.isResetEvent=function(b,d){return mxEvent.isAltDown(b)||null==this.activeArrow&&mxEvent.isShiftDown(b)||mxEvent.isPopupTrigger(b)&&!this.graph.isCloneEvent(b)};
-HoverIcons.prototype.createArrow=function(b,d,m){var n=null;n=mxUtils.createImage(b.src);n.style.width=b.width+"px";n.style.height=b.height+"px";n.style.padding=this.tolerance+"px";null!=d&&n.setAttribute("title",d);n.style.position="absolute";n.style.cursor=this.cssCursor;mxEvent.addGestureListeners(n,mxUtils.bind(this,function(v){null==this.currentState||this.isResetEvent(v)||(this.mouseDownPoint=mxUtils.convertPoint(this.graph.container,mxEvent.getClientX(v),mxEvent.getClientY(v)),this.drag(v,
-this.mouseDownPoint.x,this.mouseDownPoint.y),this.activeArrow=n,this.setDisplay("none"),mxEvent.consume(v))}));mxEvent.redirectMouseEvents(n,this.graph,this.currentState);mxEvent.addListener(n,"mouseenter",mxUtils.bind(this,function(v){mxEvent.isMouseEvent(v)&&(null!=this.activeArrow&&this.activeArrow!=n&&mxUtils.setOpacity(this.activeArrow,this.inactiveOpacity),this.graph.connectionHandler.constraintHandler.reset(),mxUtils.setOpacity(n,100),this.activeArrow=n,this.fireEvent(new mxEventObject("focus",
-"arrow",n,"direction",m,"event",v)))}));mxEvent.addListener(n,"mouseleave",mxUtils.bind(this,function(v){mxEvent.isMouseEvent(v)&&this.fireEvent(new mxEventObject("blur","arrow",n,"direction",m,"event",v));this.graph.isMouseDown||this.resetActiveArrow()}));return n};HoverIcons.prototype.resetActiveArrow=function(){null!=this.activeArrow&&(mxUtils.setOpacity(this.activeArrow,this.inactiveOpacity),this.activeArrow=null)};
+HoverIcons.prototype.createArrow=function(b,d,m){var n=null;n=mxUtils.createImage(b.src);n.style.width=b.width+"px";n.style.height=b.height+"px";n.style.padding=this.tolerance+"px";null!=d&&n.setAttribute("title",d);n.style.position="absolute";n.style.cursor=this.cssCursor;mxEvent.addGestureListeners(n,mxUtils.bind(this,function(u){null==this.currentState||this.isResetEvent(u)||(this.mouseDownPoint=mxUtils.convertPoint(this.graph.container,mxEvent.getClientX(u),mxEvent.getClientY(u)),this.drag(u,
+this.mouseDownPoint.x,this.mouseDownPoint.y),this.activeArrow=n,this.setDisplay("none"),mxEvent.consume(u))}));mxEvent.redirectMouseEvents(n,this.graph,this.currentState);mxEvent.addListener(n,"mouseenter",mxUtils.bind(this,function(u){mxEvent.isMouseEvent(u)&&(null!=this.activeArrow&&this.activeArrow!=n&&mxUtils.setOpacity(this.activeArrow,this.inactiveOpacity),this.graph.connectionHandler.constraintHandler.reset(),mxUtils.setOpacity(n,100),this.activeArrow=n,this.fireEvent(new mxEventObject("focus",
+"arrow",n,"direction",m,"event",u)))}));mxEvent.addListener(n,"mouseleave",mxUtils.bind(this,function(u){mxEvent.isMouseEvent(u)&&this.fireEvent(new mxEventObject("blur","arrow",n,"direction",m,"event",u));this.graph.isMouseDown||this.resetActiveArrow()}));return n};HoverIcons.prototype.resetActiveArrow=function(){null!=this.activeArrow&&(mxUtils.setOpacity(this.activeArrow,this.inactiveOpacity),this.activeArrow=null)};
HoverIcons.prototype.getDirection=function(){var b=mxConstants.DIRECTION_EAST;this.activeArrow==this.arrowUp?b=mxConstants.DIRECTION_NORTH:this.activeArrow==this.arrowDown?b=mxConstants.DIRECTION_SOUTH:this.activeArrow==this.arrowLeft&&(b=mxConstants.DIRECTION_WEST);return b};HoverIcons.prototype.visitNodes=function(b){for(var d=0;d<this.elts.length;d++)null!=this.elts[d]&&b(this.elts[d])};HoverIcons.prototype.removeNodes=function(){this.visitNodes(function(b){null!=b.parentNode&&b.parentNode.removeChild(b)})};
HoverIcons.prototype.setDisplay=function(b){this.visitNodes(function(d){d.style.display=b})};HoverIcons.prototype.isActive=function(){return null!=this.activeArrow&&null!=this.currentState};
HoverIcons.prototype.drag=function(b,d,m){this.graph.popupMenuHandler.hideMenu();this.graph.stopEditing(!1);null!=this.currentState&&(this.graph.connectionHandler.start(this.currentState,d,m),this.graph.isMouseTrigger=mxEvent.isMouseEvent(b),this.graph.isMouseDown=!0,d=this.graph.selectionCellsHandler.getHandler(this.currentState.cell),null!=d&&d.setHandlesVisible(!1),d=this.graph.connectionHandler.edgeState,null!=b&&mxEvent.isShiftDown(b)&&mxEvent.isControlDown(b)&&null!=d&&"orthogonalEdgeStyle"===
mxUtils.getValue(d.style,mxConstants.STYLE_EDGE,null)&&(b=this.getDirection(),d.cell.style=mxUtils.setStyle(d.cell.style,"sourcePortConstraint",b),d.style.sourcePortConstraint=b))};HoverIcons.prototype.getStateAt=function(b,d,m){return this.graph.view.getState(this.graph.getCellAt(d,m))};
-HoverIcons.prototype.click=function(b,d,m){var n=m.getEvent(),v=m.getGraphX(),p=m.getGraphY();v=this.getStateAt(b,v,p);null==v||!this.graph.model.isEdge(v.cell)||this.graph.isCloneEvent(n)||v.getVisibleTerminalState(!0)!=b&&v.getVisibleTerminalState(!1)!=b?null!=b&&this.execute(b,d,m):(this.graph.setSelectionCell(v.cell),this.reset());m.consume()};
+HoverIcons.prototype.click=function(b,d,m){var n=m.getEvent(),u=m.getGraphX(),p=m.getGraphY();u=this.getStateAt(b,u,p);null==u||!this.graph.model.isEdge(u.cell)||this.graph.isCloneEvent(n)||u.getVisibleTerminalState(!0)!=b&&u.getVisibleTerminalState(!1)!=b?null!=b&&this.execute(b,d,m):(this.graph.setSelectionCell(u.cell),this.reset());m.consume()};
HoverIcons.prototype.execute=function(b,d,m){m=m.getEvent();this.graph.selectCellsForConnectVertex(this.graph.connectVertex(b.cell,d,this.graph.defaultEdgeLength,m,this.graph.isCloneEvent(m),this.graph.isCloneEvent(m)),m,this)};HoverIcons.prototype.reset=function(b){null!=b&&!b||null==this.updateThread||window.clearTimeout(this.updateThread);this.activeArrow=this.currentState=this.mouseDownPoint=null;this.removeNodes();this.bbox=null;this.fireEvent(new mxEventObject("reset"))};
HoverIcons.prototype.repaint=function(){this.bbox=null;if(null!=this.currentState){this.currentState=this.getState(this.currentState);if(null!=this.currentState&&this.graph.model.isVertex(this.currentState.cell)&&this.graph.isCellConnectable(this.currentState.cell)){var b=mxRectangle.fromRectangle(this.currentState);null!=this.currentState.shape&&null!=this.currentState.shape.boundingBox&&(b=mxRectangle.fromRectangle(this.currentState.shape.boundingBox));b.grow(this.graph.tolerance);b.grow(this.arrowSpacing);
var d=this.graph.selectionCellsHandler.getHandler(this.currentState.cell);this.graph.isTableRow(this.currentState.cell)&&(d=this.graph.selectionCellsHandler.getHandler(this.graph.model.getParent(this.currentState.cell)));var m=null;null!=d&&(b.x-=d.horizontalOffset/2,b.y-=d.verticalOffset/2,b.width+=d.horizontalOffset,b.height+=d.verticalOffset,null!=d.rotationShape&&null!=d.rotationShape.node&&"hidden"!=d.rotationShape.node.style.visibility&&"none"!=d.rotationShape.node.style.display&&null!=d.rotationShape.boundingBox&&
(m=d.rotationShape.boundingBox));d=mxUtils.bind(this,function(G,U,E){if(null!=m){var R=new mxRectangle(U,E,G.clientWidth,G.clientHeight);mxUtils.intersects(R,m)&&(G==this.arrowUp?E-=R.y+R.height-m.y:G==this.arrowRight?U+=m.x+m.width-R.x:G==this.arrowDown?E+=m.y+m.height-R.y:G==this.arrowLeft&&(U-=R.x+R.width-m.x))}G.style.left=U+"px";G.style.top=E+"px";mxUtils.setOpacity(G,this.inactiveOpacity)});d(this.arrowUp,Math.round(this.currentState.getCenterX()-this.triangleUp.width/2-this.tolerance),Math.round(b.y-
this.triangleUp.height-this.tolerance));d(this.arrowRight,Math.round(b.x+b.width-this.tolerance),Math.round(this.currentState.getCenterY()-this.triangleRight.height/2-this.tolerance));d(this.arrowDown,parseInt(this.arrowUp.style.left),Math.round(b.y+b.height-this.tolerance));d(this.arrowLeft,Math.round(b.x-this.triangleLeft.width-this.tolerance),parseInt(this.arrowRight.style.top));if(this.checkCollisions){d=this.graph.getCellAt(b.x+b.width+this.triangleRight.width/2,this.currentState.getCenterY());
-var n=this.graph.getCellAt(b.x-this.triangleLeft.width/2,this.currentState.getCenterY()),v=this.graph.getCellAt(this.currentState.getCenterX(),b.y-this.triangleUp.height/2);b=this.graph.getCellAt(this.currentState.getCenterX(),b.y+b.height+this.triangleDown.height/2);null!=d&&d==n&&n==v&&v==b&&(b=v=n=d=null);var p=this.graph.getCellGeometry(this.currentState.cell),z=mxUtils.bind(this,function(G,U){var E=this.graph.model.isVertex(G)&&this.graph.getCellGeometry(G);null==G||this.graph.model.isAncestor(G,
-this.currentState.cell)||this.graph.isSwimlane(G)||!(null==E||null==p||E.height<3*p.height&&E.width<3*p.width)?U.style.visibility="visible":U.style.visibility="hidden"});z(d,this.arrowRight);z(n,this.arrowLeft);z(v,this.arrowUp);z(b,this.arrowDown)}else this.arrowLeft.style.visibility="visible",this.arrowRight.style.visibility="visible",this.arrowUp.style.visibility="visible",this.arrowDown.style.visibility="visible";this.graph.tooltipHandler.isEnabled()?(this.arrowLeft.setAttribute("title",mxResources.get("plusTooltip")),
+var n=this.graph.getCellAt(b.x-this.triangleLeft.width/2,this.currentState.getCenterY()),u=this.graph.getCellAt(this.currentState.getCenterX(),b.y-this.triangleUp.height/2);b=this.graph.getCellAt(this.currentState.getCenterX(),b.y+b.height+this.triangleDown.height/2);null!=d&&d==n&&n==u&&u==b&&(b=u=n=d=null);var p=this.graph.getCellGeometry(this.currentState.cell),z=mxUtils.bind(this,function(G,U){var E=this.graph.model.isVertex(G)&&this.graph.getCellGeometry(G);null==G||this.graph.model.isAncestor(G,
+this.currentState.cell)||this.graph.isSwimlane(G)||!(null==E||null==p||E.height<3*p.height&&E.width<3*p.width)?U.style.visibility="visible":U.style.visibility="hidden"});z(d,this.arrowRight);z(n,this.arrowLeft);z(u,this.arrowUp);z(b,this.arrowDown)}else this.arrowLeft.style.visibility="visible",this.arrowRight.style.visibility="visible",this.arrowUp.style.visibility="visible",this.arrowDown.style.visibility="visible";this.graph.tooltipHandler.isEnabled()?(this.arrowLeft.setAttribute("title",mxResources.get("plusTooltip")),
this.arrowRight.setAttribute("title",mxResources.get("plusTooltip")),this.arrowUp.setAttribute("title",mxResources.get("plusTooltip")),this.arrowDown.setAttribute("title",mxResources.get("plusTooltip"))):(this.arrowLeft.removeAttribute("title"),this.arrowRight.removeAttribute("title"),this.arrowUp.removeAttribute("title"),this.arrowDown.removeAttribute("title"))}else this.reset();null!=this.currentState&&(this.bbox=this.computeBoundingBox(),null!=this.bbox&&this.bbox.grow(10))}};
HoverIcons.prototype.computeBoundingBox=function(){var b=this.graph.model.isEdge(this.currentState.cell)?null:mxRectangle.fromRectangle(this.currentState);this.visitNodes(function(d){null!=d.parentNode&&(d=new mxRectangle(d.offsetLeft,d.offsetTop,d.offsetWidth,d.offsetHeight),null==b?b=d:b.add(d))});return b};
HoverIcons.prototype.getState=function(b){if(null!=b)if(b=b.cell,this.graph.getModel().contains(b)){if(this.graph.getModel().isVertex(b)&&!this.graph.isCellConnectable(b)){var d=this.graph.getModel().getParent(b);this.graph.getModel().isVertex(d)&&this.graph.isCellConnectable(d)&&(b=d)}if(this.graph.isCellLocked(b)||this.graph.model.isEdge(b))b=null;b=this.graph.view.getState(b);null!=b&&null==b.style&&(b=null)}else b=null;return b};
@@ -2591,46 +2595,46 @@ mxEvent.addListener(this.icon,"click",mxUtils.bind(this,function(d){this.graph.i
mxUtils.bind(this,function(){this.hide()});this.graph.selectionModel.addListener(mxEvent.CHANGE,this.selectionHandler);this.graph.model.addListener(mxEvent.CHANGE,this.modelHandler);this.graph.view.addListener(mxEvent.SCALE_AND_TRANSLATE,this.repaintHandler);this.graph.view.addListener(mxEvent.TRANSLATE,this.repaintHandler);this.graph.view.addListener(mxEvent.SCALE,this.repaintHandler);this.graph.view.addListener(mxEvent.DOWN,this.repaintHandler);this.graph.view.addListener(mxEvent.UP,this.repaintHandler);
this.graph.addListener(mxEvent.ROOT,this.repaintHandler);this.graph.addListener(mxEvent.ESCAPE,this.selectionHandler);this.graph.addListener(mxEvent.START_EDITING,this.hideHandler);mxEvent.addListener(this.graph.container,"scroll",this.repaintHandler)};
InlineToolbar.prototype.updateSelection=function(){var b=this.graph.getSelectionCells(),d=null;1==b.length&&this.graph.model.isEdge(b[0])&&this.graph.isEnabled()&&!this.graph.isCellLocked(b[0])&&(d=this.graph.view.getState(b[0]));null!=d?(this.currentState=d,this.show()):(this.currentState=null,this.hide())};
-InlineToolbar.prototype.getEdgeMidpoint=function(b){b=b.absolutePoints;if(null==b||2>b.length)return null;for(var d=0,m=[],n=1;n<b.length;n++)if(null!=b[n]&&null!=b[n-1]){var v=b[n].x-b[n-1].x,p=b[n].y-b[n-1].y;v=Math.sqrt(v*v+p*p);m.push(v);d+=v}else m.push(0);d/=2;for(n=v=0;n<m.length;n++){if(v+m[n]>=d){d-=v;m=0<m[n]?d/m[n]:0;d=b[n];n=b[n+1];if(null!=d&&null!=n)return new mxPoint(d.x+(n.x-d.x)*m,d.y+(n.y-d.y)*m);break}v+=m[n]}n=b[0];b=b[b.length-1];return null!=n&&null!=b?new mxPoint((n.x+b.x)/
+InlineToolbar.prototype.getEdgeMidpoint=function(b){b=b.absolutePoints;if(null==b||2>b.length)return null;for(var d=0,m=[],n=1;n<b.length;n++)if(null!=b[n]&&null!=b[n-1]){var u=b[n].x-b[n-1].x,p=b[n].y-b[n-1].y;u=Math.sqrt(u*u+p*p);m.push(u);d+=u}else m.push(0);d/=2;for(n=u=0;n<m.length;n++){if(u+m[n]>=d){d-=u;m=0<m[n]?d/m[n]:0;d=b[n];n=b[n+1];if(null!=d&&null!=n)return new mxPoint(d.x+(n.x-d.x)*m,d.y+(n.y-d.y)*m);break}u+=m[n]}n=b[0];b=b[b.length-1];return null!=n&&null!=b?new mxPoint((n.x+b.x)/
2,(n.y+b.y)/2):null};InlineToolbar.prototype.show=function(){this.updateIcons();this.toolbar.style.display="block";this.repaint()};InlineToolbar.prototype.hide=function(){this.toolbar.style.display="none"};InlineToolbar.prototype.supportsCurvedBend=function(b){b=mxUtils.getValue(b,mxConstants.STYLE_SHAPE,null);return null==b||"connector"==b||"filledEdge"==b||"wire"==b||"pipe"==b};
InlineToolbar.prototype.updateIcons=function(){if(null!=this.currentState){var b=this.graph.getCurrentCellStyle(this.currentState.cell),d=this.editorUi.getImageForEdgeStyle(b);"arrow"==b[mxConstants.STYLE_SHAPE]&&(d=Format.straightImage.src);this.icon.style.backgroundImage="url("+d+")";d=this.graph.view.getState(this.currentState.cell);d=this.supportsCurvedBend(b)||null!=d&&this.graph.isRoundedState(d);this.bendSep.style.display=d?"inline-block":"none";this.bendIcon.style.display=d?"inline-block":
"none";d&&("1"==mxUtils.getValue(b,mxConstants.STYLE_CURVED,null)?this.bendIcon.style.backgroundImage="url("+Format.curvedBendImage.src+")":"1"==mxUtils.getValue(b,mxConstants.STYLE_ROUNDED,null)?this.bendIcon.style.backgroundImage="url("+Format.roundedBendImage.src+")":this.bendIcon.style.backgroundImage="url("+Format.sharpBendImage.src+")")}};
-InlineToolbar.prototype.segmentIntersectsRect=function(b,d,m,n,v,p,z,G){m-=b;n-=d;n=[-m,m,-n,n];b=[b-v,v+z-b,d-p,p+G-d];d=0;v=1;for(p=0;4>p;p++)if(0==n[p]){if(0>b[p])return!1}else if(z=b[p]/n[p],0>n[p]?d=Math.max(d,z):v=Math.min(v,z),d>v)return!1;return!0};
-InlineToolbar.prototype.repaint=function(){if(null!=this.currentState&&"none"!=this.toolbar.style.display){var b=this.graph.view.getState(this.currentState.cell);if(null!=b){this.currentState=b;this.updateIcons();var d=this.getEdgeMidpoint(b);if(null!=d){var m="none"!=this.bendIcon.style.display?2*this.iconSize+1:this.iconSize,n=this.iconSize,v=d.x-m/2,p=d.y-n-this.offset,z=this.graph.selectionCellsHandler.getHandler(b.cell);if(null!=z){var G=(z.bends||[]).concat(z.virtualBends||[]);z=mxUtils.bind(this,
+InlineToolbar.prototype.segmentIntersectsRect=function(b,d,m,n,u,p,z,G){m-=b;n-=d;n=[-m,m,-n,n];b=[b-u,u+z-b,d-p,p+G-d];d=0;u=1;for(p=0;4>p;p++)if(0==n[p]){if(0>b[p])return!1}else if(z=b[p]/n[p],0>n[p]?d=Math.max(d,z):u=Math.min(u,z),d>u)return!1;return!0};
+InlineToolbar.prototype.repaint=function(){if(null!=this.currentState&&"none"!=this.toolbar.style.display){var b=this.graph.view.getState(this.currentState.cell);if(null!=b){this.currentState=b;this.updateIcons();var d=this.getEdgeMidpoint(b);if(null!=d){var m="none"!=this.bendIcon.style.display?2*this.iconSize+1:this.iconSize,n=this.iconSize,u=d.x-m/2,p=d.y-n-this.offset,z=this.graph.selectionCellsHandler.getHandler(b.cell);if(null!=z){var G=(z.bends||[]).concat(z.virtualBends||[]);z=mxUtils.bind(this,
function(c,g){c=new mxRectangle(Math.round(c)-8,Math.round(g)-8,m+16,n+16);for(g=0;g<G.length;g++)if(null!=G[g]&&null!=G[g].bounds&&"hidden"!==G[g].node.style.visibility&&mxUtils.intersects(c,G[g].bounds))return!0;var k=b.absolutePoints;if(null!=k)for(g=1;g<k.length;g++)if(null!=k[g]&&null!=k[g-1]&&this.segmentIntersectsRect(k[g-1].x,k[g-1].y,k[g].x,k[g].y,c.x,c.y,c.width,c.height))return!0;if(null!=b.text&&null!=b.text.boundingBox&&mxUtils.intersects(c,b.text.boundingBox))return!0;k=this.graph.getModel();
-var q=k.getChildCount(b.cell);for(g=0;g<q;g++){var A=this.graph.view.getState(k.getChildAt(b.cell,g));if(null!=A&&(null!=A.shape&&null!=A.shape.boundingBox&&mxUtils.intersects(c,A.shape.boundingBox)||null!=A.text&&null!=A.text.boundingBox&&mxUtils.intersects(c,A.text.boundingBox)))return!0}return!1});if(z(v,p)){var U=d.y+this.offset,E=!1;z(v,U)||(p=U,E=!0);if(!E){U=d.y-n/2;var R=d.x-m-this.offset,N=d.x+this.offset;z(R,U)?z(N,U)||(v=N,p=U,E=!0):(v=R,p=U,E=!0)}if(!E)for(U=d.y-n/2,E=this.offset+8;100>
-E;E+=8)if(!z(v,d.y-n-E)){p=d.y-n-E;break}else if(!z(v,d.y+E)){p=d.y+E;break}else if(!z(d.x-m-E,U)){v=d.x-m-E;p=U;break}else if(!z(d.x+E,U)){v=d.x+E;p=U;break}}}this.toolbar.style.left=Math.round(v)+"px";this.toolbar.style.top=Math.round(p)+"px"}}}};InlineToolbar.prototype.showMenu=function(b){var d=this.editorUi;d.hideCurrentMenu();d.showPopupMenu(mxUtils.bind(this,function(m,n){d.menus.addMenu("line",m,n)}),mxEvent.getClientX(b),mxEvent.getClientY(b),b)};
-InlineToolbar.prototype.showBendMenu=function(b){var d=this.editorUi;d.hideCurrentMenu();d.showPopupMenu(mxUtils.bind(this,function(m,n){var v=d.menus,p=[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED];Format.processMenuIcon(v.edgeStyleChange(m,"",p,["0","0"],null,n,!1,Format.sharpBendImage.src)).setAttribute("title",mxResources.get("sharp"));Format.processMenuIcon(v.edgeStyleChange(m,"",p,["1","0"],null,n,!1,Format.roundedBendImage.src)).setAttribute("title",mxResources.get("rounded"));if(null!=
-this.currentState){var z=this.graph.getCurrentCellStyle(this.currentState.cell);this.supportsCurvedBend(z)&&Format.processMenuIcon(v.edgeStyleChange(m,"",p,["0","1"],null,n,!1,Format.curvedBendImage.src)).setAttribute("title",mxResources.get("curved"))}}),mxEvent.getClientX(b),mxEvent.getClientY(b),b)};
+var q=k.getChildCount(b.cell);for(g=0;g<q;g++){var A=this.graph.view.getState(k.getChildAt(b.cell,g));if(null!=A&&(null!=A.shape&&null!=A.shape.boundingBox&&mxUtils.intersects(c,A.shape.boundingBox)||null!=A.text&&null!=A.text.boundingBox&&mxUtils.intersects(c,A.text.boundingBox)))return!0}return!1});if(z(u,p)){var U=d.y+this.offset,E=!1;z(u,U)||(p=U,E=!0);if(!E){U=d.y-n/2;var R=d.x-m-this.offset,N=d.x+this.offset;z(R,U)?z(N,U)||(u=N,p=U,E=!0):(u=R,p=U,E=!0)}if(!E)for(U=d.y-n/2,E=this.offset+8;100>
+E;E+=8)if(!z(u,d.y-n-E)){p=d.y-n-E;break}else if(!z(u,d.y+E)){p=d.y+E;break}else if(!z(d.x-m-E,U)){u=d.x-m-E;p=U;break}else if(!z(d.x+E,U)){u=d.x+E;p=U;break}}}this.toolbar.style.left=Math.round(u)+"px";this.toolbar.style.top=Math.round(p)+"px"}}}};InlineToolbar.prototype.showMenu=function(b){var d=this.editorUi;d.hideCurrentMenu();d.showPopupMenu(mxUtils.bind(this,function(m,n){d.menus.addMenu("line",m,n)}),mxEvent.getClientX(b),mxEvent.getClientY(b),b)};
+InlineToolbar.prototype.showBendMenu=function(b){var d=this.editorUi;d.hideCurrentMenu();d.showPopupMenu(mxUtils.bind(this,function(m,n){var u=d.menus,p=[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED];Format.processMenuIcon(u.edgeStyleChange(m,"",p,["0","0"],null,n,!1,Format.sharpBendImage.src)).setAttribute("title",mxResources.get("sharp"));Format.processMenuIcon(u.edgeStyleChange(m,"",p,["1","0"],null,n,!1,Format.roundedBendImage.src)).setAttribute("title",mxResources.get("rounded"));if(null!=
+this.currentState){var z=this.graph.getCurrentCellStyle(this.currentState.cell);this.supportsCurvedBend(z)&&Format.processMenuIcon(u.edgeStyleChange(m,"",p,["0","1"],null,n,!1,Format.curvedBendImage.src)).setAttribute("title",mxResources.get("curved"))}}),mxEvent.getClientX(b),mxEvent.getClientY(b),b)};
InlineToolbar.prototype.destroy=function(){this.graph.selectionModel.removeListener(this.selectionHandler);this.graph.model.removeListener(this.modelHandler);this.graph.view.removeListener(this.repaintHandler);this.graph.removeListener(this.selectionHandler);this.graph.removeListener(this.repaintHandler);this.graph.removeListener(this.hideHandler);mxEvent.removeListener(this.graph.container,"scroll",this.repaintHandler);null!=this.toolbar.parentNode&&this.toolbar.parentNode.removeChild(this.toolbar)};
-Graph.prototype.removeTextStyleForCell=function(b,d){var m=this.getCurrentCellStyle(b),n=!1;this.getModel().beginUpdate();try{if("1"==mxUtils.getValue(m,"html","0")){var v=this.convertValueToString(b);"0"!=mxUtils.getValue(m,"nl2Br","1")&&(v=v.replace(/\n/g,"").replace(/<br\s*.?>/g,"\n"));v=Editor.convertHtmlToText(v);this.cellLabelChanged(b,v);n=!0}d&&(this.setCellStyles("fontSource",null,[b]),this.setCellStyles(mxConstants.STYLE_FONTFAMILY,null,[b]),this.setCellStyles(mxConstants.STYLE_FONTSIZE,
-null,[b]),this.setCellStyles(mxConstants.STYLE_FONTSTYLE,null,[b]),this.setCellStyles(mxConstants.STYLE_FONTCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BORDERCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null,[b]))}finally{this.getModel().endUpdate()}return n};Graph.prototype.createParent=function(b,d,m,n,v){b=this.cloneCell(b);for(var p=0;p<m;p++){var z=this.cloneCell(d),G=this.getCellGeometry(z);null!=G&&(G.x+=p*n,G.y+=p*v);b.insert(z)}return b};
-Graph.prototype.createTable=function(b,d,m,n,v,p,z,G,U){m=null!=m?m:60;n=null!=n?n:40;p=null!=p?p:30;G=null!=G?G:"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;strokeColor=inherit;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;fixedHeader=1;";U=null!=U?U:"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;fillColor=none;top=0;left=0;bottom=0;right=0;pointerEvents=1;";
-return this.createParent(this.createVertex(null,null,null!=v?v:"",0,0,d*m,b*n+(null!=v?p:0),null!=z?z:"shape=table;startSize="+(null!=v?p:"0")+";container=1;collapsible=0;childLayout=tableLayout;fixedHeader=1;"),this.createParent(this.createVertex(null,null,"",0,0,d*m,n,G),this.createVertex(null,null,"",0,0,m,n,U),d,m,0),b,0,n)};
-Graph.prototype.setTableValues=function(b,d,m){for(var n=this.model.getChildCells(b,!0),v=0;v<n.length;v++)if(null!=m&&(n[v].value=m[v]),null!=d)for(var p=this.model.getChildCells(n[v],!0),z=0;z<p.length;z++)null!=d[v][z]&&(p[z].value=d[v][z]);return b};
-Graph.prototype.createCrossFunctionalSwimlane=function(b,d,m,n,v,p,z,G,U){m=null!=m?m:120;n=null!=n?n:120;z=null!=z?z:"shape=tableRow;horizontal=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;strokeColor=inherit;bottom=0;right=0;dropTarget=0;fontStyle=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;startSize=40;fixedHeader=1;collapsible=0;recursiveResize=0;expand=0;";G=null!=G?G:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;strokeColor=inherit;connectable=0;fillColor=none;startSize=40;collapsible=0;recursiveResize=0;expand=0;";
-U=null!=U?U:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;connectable=0;strokeColor=inherit;fillColor=none;startSize=0;collapsible=0;recursiveResize=0;expand=0;";v=this.createVertex(null,null,null!=v?v:"",0,0,d*m,b*n,null!=p?p:"shape=table;childLayout=tableLayout;fixedHeader=1;"+(null==v?"startSize=0;fillColor=none;":"startSize=40;")+"collapsible=0;recursiveResize=0;expand=0;");p=mxUtils.getValue(this.getCellStyle(v),mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE);v.geometry.width+=
-p;v.geometry.height+=p;z=this.createVertex(null,null,"",0,p,d*m+p,n,z);v.insert(this.createParent(z,this.createVertex(null,null,"",p,0,m,n,G),d,m,0));return 1<b?(z.geometry.y=n+p,this.createParent(v,this.createParent(z,this.createVertex(null,null,"",p,0,m,n,U),d,m,0),b-1,0,n)):v};
-Graph.prototype.visitTableCells=function(b,d){var m=null,n=this.model.getChildCells(b,!0);b=this.getActualStartSize(b,!0);for(var v=0;v<n.length;v++){for(var p=this.getActualStartSize(n[v],!0),z=this.model.getChildCells(n[v],!0),G=this.getCellStyle(n[v],!0),U=null,E=[],R=0;R<z.length;R++){var N=this.getCellGeometry(z[R]),c={cell:z[R],rospan:1,colspan:1,row:v,col:R,geo:N};N=null!=N.alternateBounds?N.alternateBounds:N;c.point=new mxPoint(N.width+(null!=U?U.point.x:b.x+p.x),N.height+(null!=m&&null!=
+Graph.prototype.removeTextStyleForCell=function(b,d){var m=this.getCurrentCellStyle(b),n=!1;this.getModel().beginUpdate();try{if("1"==mxUtils.getValue(m,"html","0")){var u=this.convertValueToString(b);"0"!=mxUtils.getValue(m,"nl2Br","1")&&(u=u.replace(/\n/g,"").replace(/<br\s*.?>/g,"\n"));u=Editor.convertHtmlToText(u);this.cellLabelChanged(b,u);n=!0}d&&(this.setCellStyles("fontSource",null,[b]),this.setCellStyles(mxConstants.STYLE_FONTFAMILY,null,[b]),this.setCellStyles(mxConstants.STYLE_FONTSIZE,
+null,[b]),this.setCellStyles(mxConstants.STYLE_FONTSTYLE,null,[b]),this.setCellStyles(mxConstants.STYLE_FONTCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BORDERCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null,[b]))}finally{this.getModel().endUpdate()}return n};Graph.prototype.createParent=function(b,d,m,n,u){b=this.cloneCell(b);for(var p=0;p<m;p++){var z=this.cloneCell(d),G=this.getCellGeometry(z);null!=G&&(G.x+=p*n,G.y+=p*u);b.insert(z)}return b};
+Graph.prototype.createTable=function(b,d,m,n,u,p,z,G,U){m=null!=m?m:60;n=null!=n?n:40;p=null!=p?p:30;G=null!=G?G:"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;strokeColor=inherit;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;fixedHeader=1;";U=null!=U?U:"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;fillColor=none;top=0;left=0;bottom=0;right=0;pointerEvents=1;";
+return this.createParent(this.createVertex(null,null,null!=u?u:"",0,0,d*m,b*n+(null!=u?p:0),null!=z?z:"shape=table;startSize="+(null!=u?p:"0")+";container=1;collapsible=0;childLayout=tableLayout;fixedHeader=1;"),this.createParent(this.createVertex(null,null,"",0,0,d*m,n,G),this.createVertex(null,null,"",0,0,m,n,U),d,m,0),b,0,n)};
+Graph.prototype.setTableValues=function(b,d,m){for(var n=this.model.getChildCells(b,!0),u=0;u<n.length;u++)if(null!=m&&(n[u].value=m[u]),null!=d)for(var p=this.model.getChildCells(n[u],!0),z=0;z<p.length;z++)null!=d[u][z]&&(p[z].value=d[u][z]);return b};
+Graph.prototype.createCrossFunctionalSwimlane=function(b,d,m,n,u,p,z,G,U){m=null!=m?m:120;n=null!=n?n:120;z=null!=z?z:"shape=tableRow;horizontal=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;strokeColor=inherit;bottom=0;right=0;dropTarget=0;fontStyle=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;startSize=40;fixedHeader=1;collapsible=0;recursiveResize=0;expand=0;";G=null!=G?G:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;strokeColor=inherit;connectable=0;fillColor=none;startSize=40;collapsible=0;recursiveResize=0;expand=0;";
+U=null!=U?U:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;connectable=0;strokeColor=inherit;fillColor=none;startSize=0;collapsible=0;recursiveResize=0;expand=0;";u=this.createVertex(null,null,null!=u?u:"",0,0,d*m,b*n,null!=p?p:"shape=table;childLayout=tableLayout;fixedHeader=1;"+(null==u?"startSize=0;fillColor=none;":"startSize=40;")+"collapsible=0;recursiveResize=0;expand=0;");p=mxUtils.getValue(this.getCellStyle(u),mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE);u.geometry.width+=
+p;u.geometry.height+=p;z=this.createVertex(null,null,"",0,p,d*m+p,n,z);u.insert(this.createParent(z,this.createVertex(null,null,"",p,0,m,n,G),d,m,0));return 1<b?(z.geometry.y=n+p,this.createParent(u,this.createParent(z,this.createVertex(null,null,"",p,0,m,n,U),d,m,0),b-1,0,n)):u};
+Graph.prototype.visitTableCells=function(b,d){var m=null,n=this.model.getChildCells(b,!0);b=this.getActualStartSize(b,!0);for(var u=0;u<n.length;u++){for(var p=this.getActualStartSize(n[u],!0),z=this.model.getChildCells(n[u],!0),G=this.getCellStyle(n[u],!0),U=null,E=[],R=0;R<z.length;R++){var N=this.getCellGeometry(z[R]),c={cell:z[R],rospan:1,colspan:1,row:u,col:R,geo:N};N=null!=N.alternateBounds?N.alternateBounds:N;c.point=new mxPoint(N.width+(null!=U?U.point.x:b.x+p.x),N.height+(null!=m&&null!=
m[0]?m[0].point.y:b.y+p.y));c.actual=c;null!=m&&null!=m[R]&&1<m[R].rowspan?(c.rowspan=m[R].rowspan-1,c.colspan=m[R].colspan,c.actual=m[R].actual):null!=U&&1<U.colspan?(c.rowspan=U.rowspan,c.colspan=U.colspan-1,c.actual=U.actual):(U=this.getCurrentCellStyle(z[R],!0),null!=U&&(c.rowspan=parseInt(U.rowspan||1),c.colspan=parseInt(U.colspan||1)));U=1==mxUtils.getValue(G,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(G,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;d(c,z.length,
-n.length,b.x+(U?p.x:0),b.y+(U?p.y:0));E.push(c);U=c}m=E}};Graph.prototype.getTableLines=function(b,d,m){var n=[],v=[];(d||m)&&this.visitTableCells(b,mxUtils.bind(this,function(p,z,G,U,E){d&&p.row<G-1&&(null==n[p.row]&&(n[p.row]=[new mxPoint(U,p.point.y)]),1<p.rowspan&&n[p.row].push(null),n[p.row].push(p.point));m&&p.col<z-1&&(null==v[p.col]&&(v[p.col]=[new mxPoint(p.point.x,E)]),1<p.colspan&&v[p.col].push(null),v[p.col].push(p.point))}));return n.concat(v)};
+n.length,b.x+(U?p.x:0),b.y+(U?p.y:0));E.push(c);U=c}m=E}};Graph.prototype.getTableLines=function(b,d,m){var n=[],u=[];(d||m)&&this.visitTableCells(b,mxUtils.bind(this,function(p,z,G,U,E){d&&p.row<G-1&&(null==n[p.row]&&(n[p.row]=[new mxPoint(U,p.point.y)]),1<p.rowspan&&n[p.row].push(null),n[p.row].push(p.point));m&&p.col<z-1&&(null==u[p.col]&&(u[p.col]=[new mxPoint(p.point.x,E)]),1<p.colspan&&u[p.col].push(null),u[p.col].push(p.point))}));return n.concat(u)};
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,d,m){m=null!=m?m:!0;var n=this.getModel();n.beginUpdate();try{var v=this.getCellGeometry(b);if(null!=v){v=v.clone();v.height+=d;n.setGeometry(b,v);var p=n.getParent(b),z=n.getChildCells(p,!0);if(!m){var G=mxUtils.indexOf(z,b);if(G<z.length-1){var U=z[G+1],E=this.getCellGeometry(U);null!=E&&(E=E.clone(),E.y+=d,E.height-=d,n.setGeometry(U,E))}}var R=this.getCellGeometry(p);null!=R&&(m||(m=b==z[z.length-1]),m&&(R=R.clone(),R.height+=d,n.setGeometry(p,R)))}}finally{n.endUpdate()}};
-Graph.prototype.setTableColumnWidth=function(b,d,m){m=null!=m?m:!1;var n=this.getModel(),v=n.getParent(b),p=n.getParent(v),z=n.getChildCells(v,!0);b=mxUtils.indexOf(z,b);var G=b==z.length-1;n.beginUpdate();try{for(var U=n.getChildCells(p,!0),E=0;E<U.length;E++){v=U[E];z=n.getChildCells(v,!0);var R=z[b],N=this.getCellGeometry(R);null!=N&&(N=N.clone(),N.width+=d,null!=N.alternateBounds&&(N.alternateBounds.width+=d),n.setGeometry(R,N));b<z.length-1&&(R=z[b+1],N=this.getCellGeometry(R),null!=N&&(N=N.clone(),
+Graph.prototype.setTableRowHeight=function(b,d,m){m=null!=m?m:!0;var n=this.getModel();n.beginUpdate();try{var u=this.getCellGeometry(b);if(null!=u){u=u.clone();u.height+=d;n.setGeometry(b,u);var p=n.getParent(b),z=n.getChildCells(p,!0);if(!m){var G=mxUtils.indexOf(z,b);if(G<z.length-1){var U=z[G+1],E=this.getCellGeometry(U);null!=E&&(E=E.clone(),E.y+=d,E.height-=d,n.setGeometry(U,E))}}var R=this.getCellGeometry(p);null!=R&&(m||(m=b==z[z.length-1]),m&&(R=R.clone(),R.height+=d,n.setGeometry(p,R)))}}finally{n.endUpdate()}};
+Graph.prototype.setTableColumnWidth=function(b,d,m){m=null!=m?m:!1;var n=this.getModel(),u=n.getParent(b),p=n.getParent(u),z=n.getChildCells(u,!0);b=mxUtils.indexOf(z,b);var G=b==z.length-1;n.beginUpdate();try{for(var U=n.getChildCells(p,!0),E=0;E<U.length;E++){u=U[E];z=n.getChildCells(u,!0);var R=z[b],N=this.getCellGeometry(R);null!=N&&(N=N.clone(),N.width+=d,null!=N.alternateBounds&&(N.alternateBounds.width+=d),n.setGeometry(R,N));b<z.length-1&&(R=z[b+1],N=this.getCellGeometry(R),null!=N&&(N=N.clone(),
N.x+=d,m||(N.width-=d,null!=N.alternateBounds&&(N.alternateBounds.width-=d)),n.setGeometry(R,N)))}if(G||m){var c=this.getCellGeometry(p);null!=c&&(c=c.clone(),c.width+=d,n.setGeometry(p,c))}null!=this.layoutManager&&this.layoutManager.executeLayout(p)}finally{n.endUpdate()}};
-Graph.prototype.resizeAllTableRows=function(b,d){var m=this.getModel(),n=m.getChildCells(b,!0);if(0!=n.length){m.beginUpdate();try{for(var v=0;v<n.length;v++){var p=this.getCellGeometry(n[v]);null!=p&&(p=p.clone(),p.y+=d*v,p.height=Math.max(Graph.minTableRowHeight,p.height+d),m.setGeometry(n[v],p))}var z=this.getCellGeometry(b);null!=z&&(z=z.clone(),z.height+=d*n.length,m.setGeometry(b,z));null!=this.layoutManager&&this.layoutManager.executeLayout(b)}finally{m.endUpdate()}}};
-Graph.prototype.resizeAllTableColumns=function(b,d){var m=this.getModel(),n=m.getChildCells(b,!0);if(0!=n.length){m.beginUpdate();try{for(var v=0;v<n.length;v++)for(var p=m.getChildCells(n[v],!0),z=0;z<p.length;z++){var G=this.getCellGeometry(p[z]);null!=G&&(G=G.clone(),G.x+=d*z,G.width=Math.max(Graph.minTableColumnWidth,G.width+d),null!=G.alternateBounds&&(G.alternateBounds.width=Math.max(Graph.minTableColumnWidth,G.alternateBounds.width+d)),m.setGeometry(p[z],G))}var U=this.getCellGeometry(b);if(null!=
+Graph.prototype.resizeAllTableRows=function(b,d){var m=this.getModel(),n=m.getChildCells(b,!0);if(0!=n.length){m.beginUpdate();try{for(var u=0;u<n.length;u++){var p=this.getCellGeometry(n[u]);null!=p&&(p=p.clone(),p.y+=d*u,p.height=Math.max(Graph.minTableRowHeight,p.height+d),m.setGeometry(n[u],p))}var z=this.getCellGeometry(b);null!=z&&(z=z.clone(),z.height+=d*n.length,m.setGeometry(b,z));null!=this.layoutManager&&this.layoutManager.executeLayout(b)}finally{m.endUpdate()}}};
+Graph.prototype.resizeAllTableColumns=function(b,d){var m=this.getModel(),n=m.getChildCells(b,!0);if(0!=n.length){m.beginUpdate();try{for(var u=0;u<n.length;u++)for(var p=m.getChildCells(n[u],!0),z=0;z<p.length;z++){var G=this.getCellGeometry(p[z]);null!=G&&(G=G.clone(),G.x+=d*z,G.width=Math.max(Graph.minTableColumnWidth,G.width+d),null!=G.alternateBounds&&(G.alternateBounds.width=Math.max(Graph.minTableColumnWidth,G.alternateBounds.width+d)),m.setGeometry(p[z],G))}var U=this.getCellGeometry(b);if(null!=
U){var E=m.getChildCells(n[0],!0).length;U=U.clone();U.width+=d*E;m.setGeometry(b,U)}null!=this.layoutManager&&this.layoutManager.executeLayout(b)}finally{m.endUpdate()}}};
-Graph.prototype.distributeRows=function(b){var d=this.getModel(),m=d.getChildCells(b,!0);if(!(2>m.length)){d.beginUpdate();try{for(var n=0,v=0;v<m.length;v++){var p=this.getCellGeometry(m[v]);null!=p&&(n+=p.height)}var z=n/m.length;for(v=n=0;v<m.length;v++)p=this.getCellGeometry(m[v]),null!=p&&(p=p.clone(),0==v&&(n=p.y),p.y=n,p.height=z,d.setGeometry(m[v],p),n+=z);null!=this.layoutManager&&this.layoutManager.executeLayout(b)}finally{d.endUpdate()}}};
-Graph.prototype.distributeColumns=function(b){var d=this.getModel(),m=d.getChildCells(b,!0);if(0!=m.length){var n=d.getChildCells(m[0],!0);if(!(2>n.length)){d.beginUpdate();try{for(var v=0,p=0;p<n.length;p++){var z=this.getCellGeometry(n[p]);null!=z&&(v+=(null!=z.alternateBounds?z.alternateBounds:z).width)}var G=v/n.length;for(p=0;p<m.length;p++){var U=d.getChildCells(m[p],!0);for(v=n=0;v<U.length;v++)z=this.getCellGeometry(U[v]),null!=z&&(z=z.clone(),0==v&&(n=z.x),z.x=n,z.width=G,null!=z.alternateBounds&&
-(z.alternateBounds.width=G),d.setGeometry(U[v],z),n+=G)}null!=this.layoutManager&&this.layoutManager.executeLayout(b)}finally{d.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,d){for(var m=0,n=0;n<b.length;n++)if(!this.isVertexIgnored(b[n])){var v=this.graph.getCellGeometry(b[n]);null!=v&&(m+=d?v.width:v.height)}return m};
-TableLayout.prototype.getRowLayout=function(b,d){var m=this.graph.model.getChildCells(b,!0),n=this.graph.getActualStartSize(b,!0);b=this.getSize(m,!0);d=d-n.x-n.width;var v=[];n=n.x;for(var p=0;p<m.length;p++){var z=this.graph.getCellGeometry(m[p]);null!=z&&(n+=(null!=z.alternateBounds?z.alternateBounds.width:z.width)*d/b,v.push(Math.round(n)))}return v};
-TableLayout.prototype.layoutRow=function(b,d,m,n){var v=this.graph.getModel(),p=v.getChildCells(b,!0);b=this.graph.getActualStartSize(b,!0);var z=b.x,G=0;null!=d&&(d=d.slice(),d.splice(0,0,b.x));for(var U=0;U<p.length;U++){var E=this.graph.getCellGeometry(p[U]);null!=E&&(E=E.clone(),E.y=b.y,E.height=m-b.y-b.height,null!=d?(E.x=d[U],E.width=d[U+1]-E.x,U==p.length-1&&U<d.length-2&&(E.width=n-E.x-b.x-b.width)):(E.x=z,z+=E.width,U==p.length-1?E.width=n-b.x-b.width-G:G+=E.width),E.alternateBounds=new mxRectangle(0,
-0,E.width,E.height),v.setGeometry(p[U],E))}return G};
-TableLayout.prototype.execute=function(b){if(null!=b){var d=this.graph.getActualStartSize(b,!0),m=this.graph.getCellGeometry(b),n=this.graph.getCellStyle(b),v="1"==mxUtils.getValue(n,"resizeLastRow","0"),p="1"==mxUtils.getValue(n,"resizeLast","0");n="1"==mxUtils.getValue(n,"fixedRows","0");var z=this.graph.getModel(),G=0;z.beginUpdate();try{for(var U=m.height-d.y-d.height,E=m.width-d.x-d.width,R=z.getChildCells(b,!0),N=0;N<R.length;N++)z.setVisible(R[N],!0);var c=this.getSize(R,!1);if(0<U&&0<E&&0<
-R.length&&0<c){if(v){var g=this.graph.getCellGeometry(R[R.length-1]);null!=g&&(g=g.clone(),g.height=U-c+g.height,z.setGeometry(R[R.length-1],g))}var k=p?null:this.getRowLayout(R[0],E),q=[],A=d.y;for(N=0;N<R.length;N++)g=this.graph.getCellGeometry(R[N]),null!=g&&(g=g.clone(),g.x=d.x,g.width=E,g.y=Math.round(A),A=v||n?A+g.height:A+g.height/c*U,g.height=Math.round(A)-g.y,z.setGeometry(R[N],g)),G=Math.max(G,this.layoutRow(R[N],k,g.height,E,q));n&&U<c&&(m=m.clone(),m.height=A+d.height,z.setGeometry(b,
+Graph.prototype.distributeRows=function(b){var d=this.getModel(),m=d.getChildCells(b,!0);if(!(2>m.length)){d.beginUpdate();try{for(var n=0,u=0;u<m.length;u++){var p=this.getCellGeometry(m[u]);null!=p&&(n+=p.height)}var z=n/m.length;for(u=n=0;u<m.length;u++)p=this.getCellGeometry(m[u]),null!=p&&(p=p.clone(),0==u&&(n=p.y),p.y=n,p.height=z,d.setGeometry(m[u],p),n+=z);null!=this.layoutManager&&this.layoutManager.executeLayout(b)}finally{d.endUpdate()}}};
+Graph.prototype.distributeColumns=function(b){var d=this.getModel(),m=d.getChildCells(b,!0);if(0!=m.length){var n=d.getChildCells(m[0],!0);if(!(2>n.length)){d.beginUpdate();try{for(var u=0,p=0;p<n.length;p++){var z=this.getCellGeometry(n[p]);null!=z&&(u+=(null!=z.alternateBounds?z.alternateBounds:z).width)}var G=u/n.length;for(p=0;p<m.length;p++){var U=d.getChildCells(m[p],!0);for(u=n=0;u<U.length;u++)z=this.getCellGeometry(U[u]),null!=z&&(z=z.clone(),0==u&&(n=z.x),z.x=n,z.width=G,null!=z.alternateBounds&&
+(z.alternateBounds.width=G),d.setGeometry(U[u],z),n+=G)}null!=this.layoutManager&&this.layoutManager.executeLayout(b)}finally{d.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,d){for(var m=0,n=0;n<b.length;n++)if(!this.isVertexIgnored(b[n])){var u=this.graph.getCellGeometry(b[n]);null!=u&&(m+=d?u.width:u.height)}return m};
+TableLayout.prototype.getRowLayout=function(b,d){var m=this.graph.model.getChildCells(b,!0),n=this.graph.getActualStartSize(b,!0);b=this.getSize(m,!0);d=d-n.x-n.width;var u=[];n=n.x;for(var p=0;p<m.length;p++){var z=this.graph.getCellGeometry(m[p]);null!=z&&(n+=(null!=z.alternateBounds?z.alternateBounds.width:z.width)*d/b,u.push(Math.round(n)))}return u};
+TableLayout.prototype.layoutRow=function(b,d,m,n){var u=this.graph.getModel(),p=u.getChildCells(b,!0);b=this.graph.getActualStartSize(b,!0);var z=b.x,G=0;null!=d&&(d=d.slice(),d.splice(0,0,b.x));for(var U=0;U<p.length;U++){var E=this.graph.getCellGeometry(p[U]);null!=E&&(E=E.clone(),E.y=b.y,E.height=m-b.y-b.height,null!=d?(E.x=d[U],E.width=d[U+1]-E.x,U==p.length-1&&U<d.length-2&&(E.width=n-E.x-b.x-b.width)):(E.x=z,z+=E.width,U==p.length-1?E.width=n-b.x-b.width-G:G+=E.width),E.alternateBounds=new mxRectangle(0,
+0,E.width,E.height),u.setGeometry(p[U],E))}return G};
+TableLayout.prototype.execute=function(b){if(null!=b){var d=this.graph.getActualStartSize(b,!0),m=this.graph.getCellGeometry(b),n=this.graph.getCellStyle(b),u="1"==mxUtils.getValue(n,"resizeLastRow","0"),p="1"==mxUtils.getValue(n,"resizeLast","0");n="1"==mxUtils.getValue(n,"fixedRows","0");var z=this.graph.getModel(),G=0;z.beginUpdate();try{for(var U=m.height-d.y-d.height,E=m.width-d.x-d.width,R=z.getChildCells(b,!0),N=0;N<R.length;N++)z.setVisible(R[N],!0);var c=this.getSize(R,!1);if(0<U&&0<E&&0<
+R.length&&0<c){if(u){var g=this.graph.getCellGeometry(R[R.length-1]);null!=g&&(g=g.clone(),g.height=U-c+g.height,z.setGeometry(R[R.length-1],g))}var k=p?null:this.getRowLayout(R[0],E),q=[],A=d.y;for(N=0;N<R.length;N++)g=this.graph.getCellGeometry(R[N]),null!=g&&(g=g.clone(),g.x=d.x,g.width=E,g.y=Math.round(A),A=u||n?A+g.height:A+g.height/c*U,g.height=Math.round(A)-g.y,z.setGeometry(R[N],g)),G=Math.max(G,this.layoutRow(R[N],k,g.height,E,q));n&&U<c&&(m=m.clone(),m.height=A+d.height,z.setGeometry(b,
m));p&&E<G+Graph.minTableColumnWidth&&(m=m.clone(),m.width=G+d.width+d.x+Graph.minTableColumnWidth,z.setGeometry(b,m));this.graph.visitTableCells(b,mxUtils.bind(this,function(D){z.setVisible(D.cell,D.actual.cell==D.cell);if(D.actual.cell!=D.cell){if(D.actual.row==D.row){var H=null!=D.geo.alternateBounds?D.geo.alternateBounds:D.geo;D.actual.geo.width+=H.width}D.actual.col==D.col&&(H=null!=D.geo.alternateBounds?D.geo.alternateBounds:D.geo,D.actual.geo.height+=H.height)}}))}else for(N=0;N<R.length;N++)z.setVisible(R[N],
!1)}finally{z.endUpdate()}}};
(function(){var b=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){b.apply(this,arguments);this.validEdges=[]};var d=mxGraphView.prototype.validateCellState;mxGraphView.prototype.validateCellState=function(N,c){c=null!=c?c:!0;var g=this.getState(N);null!=g&&c&&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());if(null!=g&&g.invalid){if(this.graph.showLinkIcons){g=
@@ -2638,8 +2642,8 @@ this.graph.getLinkForCell(N);var k=null!=g&&0<g.length,q=!1;if(null!=N.overlays)
1);0==N.overlays.length&&(N.overlays=null)}if(this.graph.showTooltipIcons){g=this.graph.convertValueToTooltip(N);k=null!=g&&0<g.length;q=!1;if(null!=N.overlays)for(g=0;g<N.overlays.length;g++)if(N.overlays[g].isTooltipOverlay){q=!0;break}if(k&&!q)g=this.graph.createTooltipOverlay(N),null!=g&&(null==N.overlays&&(N.overlays=[]),N.overlays.push(g));else if(!k&&q){for(g=N.overlays.length-1;0<=g;g--)N.overlays[g].isTooltipOverlay&&N.overlays.splice(g,1);0==N.overlays.length&&(N.overlays=null)}}else if(null!=
N.overlays){for(g=N.overlays.length-1;0<=g;g--)N.overlays[g].isTooltipOverlay&&N.overlays.splice(g,1);0==N.overlays.length&&(N.overlays=null)}}g=d.apply(this,arguments);null!=g&&c&&this.graph.model.isEdge(g.cell)&&null!=g.style&&1!=g.style[mxConstants.STYLE_CURVED]&&this.validEdges.push(g);return g};mxShape.prototype.isFlowAnimationEnabled=function(){return null!=this.state&&this.state.view.graph.enableFlowAnimation&&this.state.view.graph.model.isEdge(this.state.cell)&&"1"==mxUtils.getValue(this.state.style,
"flowAnimation","0")};mxShape.prototype.getFlowAnimationPath=function(N){var c=null!=this.node?this.node.getElementsByTagName("path"):null;if(null!=c)for(var g=null,k=0;k<c.length;k++)if("hidden"!=c[k].getAttribute("visibility")){if(!(null!=g&&g!=c[k].getAttribute("d")||null!=N&&0!=--N))return c[k]}else null==g&&(g=c[k].getAttribute("d"));return null};mxShape.prototype.addFlowAnimationToShape=function(){null!=this.state&&this.state.view.graph.addFlowAnimationToNode(this.getFlowAnimationPath(),this.state.style,
-this.state.view.scale,this.state.view.graph.addFlowAnimationStyle())};var m=mxShape.prototype.paint;mxShape.prototype.paint=function(N){m.apply(this,arguments);this.isFlowAnimationEnabled()&&this.addFlowAnimationToShape()};var n=mxShape.prototype.createSvgCanvas;mxShape.prototype.createSvgCanvas=function(N){N=n.apply(this,arguments);null!=this.state&&(N.adaptiveColors=this.state.view.graph.getAdaptiveColors());return N};var v=mxCellRenderer.prototype.isShapeInvalid;mxCellRenderer.prototype.isShapeInvalid=
-function(N,c){return v.apply(this,arguments)||null!=N.routedPoints&&null!=c.routedPoints&&!mxUtils.equalPoints(c.routedPoints,N.routedPoints)};var p=mxGraphView.prototype.updateCellState;mxGraphView.prototype.updateCellState=function(N){p.apply(this,arguments);this.graph.model.isEdge(N.cell)&&1!=N.style[mxConstants.STYLE_CURVED]&&this.updateLineJumps(N)};mxGraphView.prototype.updateLineJumps=function(N){var c=N.absolutePoints;if(Graph.lineJumpsEnabled){var g=null!=N.routedPoints,k=null;if(null!=c&&
+this.state.view.scale,this.state.view.graph.addFlowAnimationStyle())};var m=mxShape.prototype.paint;mxShape.prototype.paint=function(N){m.apply(this,arguments);this.isFlowAnimationEnabled()&&this.addFlowAnimationToShape()};var n=mxShape.prototype.createSvgCanvas;mxShape.prototype.createSvgCanvas=function(N){N=n.apply(this,arguments);null!=this.state&&(N.adaptiveColors=this.state.view.graph.getAdaptiveColors());return N};var u=mxCellRenderer.prototype.isShapeInvalid;mxCellRenderer.prototype.isShapeInvalid=
+function(N,c){return u.apply(this,arguments)||null!=N.routedPoints&&null!=c.routedPoints&&!mxUtils.equalPoints(c.routedPoints,N.routedPoints)};var p=mxGraphView.prototype.updateCellState;mxGraphView.prototype.updateCellState=function(N){p.apply(this,arguments);this.graph.model.isEdge(N.cell)&&1!=N.style[mxConstants.STYLE_CURVED]&&this.updateLineJumps(N)};mxGraphView.prototype.updateLineJumps=function(N){var c=N.absolutePoints;if(Graph.lineJumpsEnabled){var g=null!=N.routedPoints,k=null;if(null!=c&&
null!=this.validEdges&&"none"!==mxUtils.getValue(N.style,"jumpStyle","none")){var q=function(ba,l,x){var J=new mxPoint(l,x);J.type=ba;k.push(J);J=null!=N.routedPoints?N.routedPoints[k.length-1]:null;return null==J||J.type!=ba||J.x!=l||J.y!=x},A=.5*this.scale;g=!1;k=[];for(var D=0;D<c.length-1;D++){for(var H=c[D+1],K=c[D],P=[],W=c[D+2];D<c.length-2&&mxUtils.ptSegDistSq(K.x,K.y,W.x,W.y,H.x,H.y)<1*this.scale*this.scale;)H=W,D++,W=c[D+2];g=q(0,K.x,K.y)||g;for(var M=0;M<this.validEdges.length;M++){var ca=
this.validEdges[M],fa=ca.absolutePoints;if(null!=fa&&mxUtils.intersects(N,ca)&&"1"!=ca.style.noJump){var ha=null;for(ca=0;ca<fa.length-1;ca++){var ea=fa[ca+1],ka=fa[ca];for(W=fa[ca+2];ca<fa.length-2&&mxUtils.ptSegDistSq(ka.x,ka.y,W.x,W.y,ea.x,ea.y)<1*this.scale*this.scale;)ea=W,ca++,W=fa[ca+2];var pa=mxUtils.intersection(K.x,K.y,H.x,H.y,ka.x,ka.y,ea.x,ea.y);if(null!=pa&&(Math.abs(pa.x-K.x)>A||Math.abs(pa.y-K.y)>A)&&(Math.abs(pa.x-H.x)>A||Math.abs(pa.y-H.y)>A)&&(null==ha||mxUtils.ptLineDist(K.x,K.y,
H.x,H.y,ha.x,ha.y)>A||mxUtils.ptLineDist(K.x,K.y,H.x,H.y,ka.x,ka.y)>A)&&(null==W||mxUtils.ptLineDist(K.x,K.y,H.x,H.y,W.x,W.y)>A||mxUtils.ptLineDist(K.x,K.y,H.x,H.y,ea.x,ea.y)>A)){W=pa.x-K.x;ha=pa.y-K.y;pa={distSq:W*W+ha*ha,x:pa.x,y:pa.y};for(W=0;W<P.length;W++)if(P[W].distSq>pa.distSq){P.splice(W,0,pa);pa=null;break}null==pa||0!=P.length&&P[P.length-1].x===pa.x&&P[P.length-1].y===pa.y||P.push(pa)}ha=ka}}}for(ca=0;ca<P.length;ca++)g=q(1,P[ca].x,P[ca].y)||g}pa=c[c.length-1];g=q(0,pa.x,pa.y)||g}N.routedPoints=
@@ -2652,18 +2656,18 @@ mxGraphView.prototype.updateFloatingTerminalPoint=function(N,c,g,k){if(null==c||
N[A]);if(null!=D){var H=(D.x-q.x)*(D.x-q.x)+(D.y-q.y)*(D.y-q.y);if(null==k||H<k)g=D,k=H}}null!=g&&(q=g)}return q};var E=mxStencil.prototype.evaluateTextAttribute;mxStencil.prototype.evaluateTextAttribute=function(N,c,g){var k=E.apply(this,arguments);"1"==N.getAttribute("placeholders")&&null!=g.state&&(k=g.state.view.graph.replacePlaceholders(g.state.cell,k));return k};var R=mxCellRenderer.prototype.createShape;mxCellRenderer.prototype.createShape=function(N){if(null!=N.style&&"undefined"!==typeof pako){var c=
mxUtils.getValue(N.style,mxConstants.STYLE_SHAPE,null);if(null!=c&&"string"===typeof c&&"stencil("==c.substring(0,8))try{var g=c.substring(8,c.length-1),k=mxUtils.parseXml(Graph.decompress(g));return new mxShape(new mxStencil(k.documentElement))}catch(q){null!=window.console&&console.log("Error in shape: "+q)}}return R.apply(this,arguments)}})();mxStencilRegistry.libraries={};mxStencilRegistry.dynamicLoading=!0;mxStencilRegistry.allowEval=!0;mxStencilRegistry.packages=[];
mxStencilRegistry.filesLoaded={};mxStencilRegistry.isFileLoaded=function(b){return!mxClient.IS_FF&&mxStencilRegistry.filesLoaded[b]};mxStencilRegistry.setFileLoaded=function(b){mxStencilRegistry.filesLoaded[b]=!0};
-mxStencilRegistry.getStencil=function(b){var d=mxStencilRegistry.stencils[b];if(null==d&&null==mxCellRenderer.defaultShapes[b]&&mxStencilRegistry.dynamicLoading){var m=mxStencilRegistry.getBasenameForStencil(b);if(null!=m){d=mxStencilRegistry.libraries[m];if(null!=d){if(null==mxStencilRegistry.packages[m]){for(var n=0;n<d.length;n++){var v=d[n];if(!mxStencilRegistry.isFileLoaded(v))if(mxStencilRegistry.setFileLoaded(v),".xml"==v.toLowerCase().substring(v.length-4,v.length))mxStencilRegistry.loadStencilSet(v,
-null);else if(".js"==v.toLowerCase().substring(v.length-3,v.length))try{if(mxStencilRegistry.allowEval){var p=mxUtils.load(v);null!=p&&200<=p.getStatus()&&299>=p.getStatus()&&eval.call(window,p.getText())}}catch(z){null!=window.console&&console.log("error in getStencil:",b,m,d,v,z)}}mxStencilRegistry.packages[m]=1}}else m=m.replace("_-_","_"),mxStencilRegistry.loadStencilSet(STENCIL_PATH+"/"+m+".xml",null);d=mxStencilRegistry.stencils[b]}}return d};
+mxStencilRegistry.getStencil=function(b){var d=mxStencilRegistry.stencils[b];if(null==d&&null==mxCellRenderer.defaultShapes[b]&&mxStencilRegistry.dynamicLoading){var m=mxStencilRegistry.getBasenameForStencil(b);if(null!=m){d=mxStencilRegistry.libraries[m];if(null!=d){if(null==mxStencilRegistry.packages[m]){for(var n=0;n<d.length;n++){var u=d[n];if(!mxStencilRegistry.isFileLoaded(u))if(mxStencilRegistry.setFileLoaded(u),".xml"==u.toLowerCase().substring(u.length-4,u.length))mxStencilRegistry.loadStencilSet(u,
+null);else if(".js"==u.toLowerCase().substring(u.length-3,u.length))try{if(mxStencilRegistry.allowEval){var p=mxUtils.load(u);null!=p&&200<=p.getStatus()&&299>=p.getStatus()&&eval.call(window,p.getText())}}catch(z){null!=window.console&&console.log("error in getStencil:",b,m,d,u,z)}}mxStencilRegistry.packages[m]=1}}else m=m.replace("_-_","_"),mxStencilRegistry.loadStencilSet(STENCIL_PATH+"/"+m+".xml",null);d=mxStencilRegistry.stencils[b]}}return d};
mxStencilRegistry.getBasenameForStencil=function(b){var d=null;if(null!=b&&"string"===typeof b&&(b=b.split("."),0<b.length&&"mxgraph"==b[0])){d=b[1];for(var m=2;m<b.length-1;m++)d+="/"+b[m]}return d};
-mxStencilRegistry.loadStencilSet=function(b,d,m,n){var v=mxStencilRegistry.packages[b];if(null!=m&&m||null==v){var p=!1;if(null==v)try{if(n){mxStencilRegistry.loadStencil(b,mxUtils.bind(this,function(z){null!=z&&null!=z.documentElement&&(mxStencilRegistry.packages[b]=z,p=!0,mxStencilRegistry.parseStencilSet(z.documentElement,d,p))}));return}v=mxStencilRegistry.loadStencil(b);mxStencilRegistry.packages[b]=v;p=!0}catch(z){null!=window.console&&console.log("error in loadStencilSet:",b,z)}null!=v&&null!=
-v.documentElement&&mxStencilRegistry.parseStencilSet(v.documentElement,d,p)}};mxStencilRegistry.loadStencil=function(b,d){if(null!=d)mxUtils.get(b,mxUtils.bind(this,function(m){d(200<=m.getStatus()&&299>=m.getStatus()?m.getXml():null)}),mxUtils.bind(this,function(m){d(null)}));else return mxUtils.load(b).getXml()};mxStencilRegistry.parseStencilSets=function(b){for(var d=0;d<b.length;d++)mxStencilRegistry.parseStencilSet(mxUtils.parseXml(b[d]).documentElement)};
-mxStencilRegistry.parseStencilSet=function(b,d,m){if("stencils"==b.nodeName)for(var n=b.firstChild;null!=n;)"shapes"==n.nodeName&&mxStencilRegistry.parseStencilSet(n,d,m),n=n.nextSibling;else{m=null!=m?m:!0;n=b.firstChild;var v="";b=b.getAttribute("name");for(null!=b&&(v=b+".");null!=n;){if(n.nodeType==mxConstants.NODETYPE_ELEMENT&&(b=n.getAttribute("name"),null!=b)){v=v.toLowerCase();var p=b.replace(/ /g,"_");m&&mxStencilRegistry.addStencil(v+p.toLowerCase(),new mxStencil(n));if(null!=d){var z=n.getAttribute("w"),
-G=n.getAttribute("h");z=null==z?80:parseInt(z,10);G=null==G?80:parseInt(G,10);d(v,p,b,z,G)}}n=n.nextSibling}}};
+mxStencilRegistry.loadStencilSet=function(b,d,m,n){var u=mxStencilRegistry.packages[b];if(null!=m&&m||null==u){var p=!1;if(null==u)try{if(n){mxStencilRegistry.loadStencil(b,mxUtils.bind(this,function(z){null!=z&&null!=z.documentElement&&(mxStencilRegistry.packages[b]=z,p=!0,mxStencilRegistry.parseStencilSet(z.documentElement,d,p))}));return}u=mxStencilRegistry.loadStencil(b);mxStencilRegistry.packages[b]=u;p=!0}catch(z){null!=window.console&&console.log("error in loadStencilSet:",b,z)}null!=u&&null!=
+u.documentElement&&mxStencilRegistry.parseStencilSet(u.documentElement,d,p)}};mxStencilRegistry.loadStencil=function(b,d){if(null!=d)mxUtils.get(b,mxUtils.bind(this,function(m){d(200<=m.getStatus()&&299>=m.getStatus()?m.getXml():null)}),mxUtils.bind(this,function(m){d(null)}));else return mxUtils.load(b).getXml()};mxStencilRegistry.parseStencilSets=function(b){for(var d=0;d<b.length;d++)mxStencilRegistry.parseStencilSet(mxUtils.parseXml(b[d]).documentElement)};
+mxStencilRegistry.parseStencilSet=function(b,d,m){if("stencils"==b.nodeName)for(var n=b.firstChild;null!=n;)"shapes"==n.nodeName&&mxStencilRegistry.parseStencilSet(n,d,m),n=n.nextSibling;else{m=null!=m?m:!0;n=b.firstChild;var u="";b=b.getAttribute("name");for(null!=b&&(u=b+".");null!=n;){if(n.nodeType==mxConstants.NODETYPE_ELEMENT&&(b=n.getAttribute("name"),null!=b)){u=u.toLowerCase();var p=b.replace(/ /g,"_");m&&mxStencilRegistry.addStencil(u+p.toLowerCase(),new mxStencil(n));if(null!=d){var z=n.getAttribute("w"),
+G=n.getAttribute("h");z=null==z?80:parseInt(z,10);G=null==G?80:parseInt(G,10);d(u,p,b,z,G)}}n=n.nextSibling}}};
"undefined"!==typeof mxVertexHandler&&function(){function b(){var y=document.createElement("div");y.className="geHint";y.style.whiteSpace="nowrap";y.style.position="absolute";return y}function d(y,Q){switch(Q){case mxConstants.POINTS:return y;case mxConstants.MILLIMETERS:return(y/mxConstants.PIXELS_PER_MM).toFixed(1);case mxConstants.METERS:return(y/(1E3*mxConstants.PIXELS_PER_MM)).toFixed(4);case mxConstants.INCHES:return(y/mxConstants.PIXELS_PER_INCH).toFixed(3)}}mxConstants.HANDLE_FILLCOLOR="#29b6f2";
mxConstants.HANDLE_STROKECOLOR="#0088cf";mxConstants.VERTEX_SELECTION_COLOR="#00a8ff";mxConstants.OUTLINE_COLOR="#00a8ff";mxConstants.OUTLINE_HANDLE_FILLCOLOR="#99ccff";mxConstants.OUTLINE_HANDLE_STROKECOLOR="#00a8ff";mxConstants.CONNECT_HANDLE_FILLCOLOR="#cee7ff";mxConstants.EDGE_SELECTION_COLOR="#00a8ff";mxConstants.DEFAULT_VALID_COLOR="#00a8ff";mxConstants.LABEL_HANDLE_FILLCOLOR="#cee7ff";mxConstants.GUIDE_COLOR="#0088cf";mxConstants.HIGHLIGHT_STROKEWIDTH=5;mxConstants.HIGHLIGHT_OPACITY=50;mxConstants.HIGHLIGHT_SIZE=
5;mxWindow.prototype.closeImage=Graph.createSvgImage(18,10,'<path d="M 5 1 L 13 9 M 13 1 L 5 9" stroke="#707070" stroke-width="2"/>').src;mxWindow.prototype.minimizeImage=Graph.createSvgImage(14,10,'<path d="M 3 7 L 7 3 L 11 7" stroke="#707070" stroke-width="2" fill="none"/>').src;mxWindow.prototype.normalizeImage=Graph.createSvgImage(14,10,'<path d="M 3 3 L 7 7 L 11 3" stroke="#707070" stroke-width="2" fill="none"/>').src;mxWindow.prototype.resizeImage=Graph.createSvgImage(10,10,'<path d="Z" stroke="#C0C0C0" stroke-width="1" fill="none"/>').src;
mxEdgeHandler.prototype.snapToTerminals=!0;mxGraphHandler.prototype.guidesEnabled=!0;mxGraphHandler.prototype.removeEmptyParents=!0;mxRubberband.prototype.fadeOut=!0;mxGuide.prototype.isEnabledForEvent=function(y){return!mxEvent.isAltDown(y)||mxEvent.isShiftDown(y)};var m=mxGraphLayout.prototype.isVertexIgnored;mxGraphLayout.prototype.isVertexIgnored=function(y){return m.apply(this,arguments)||this.graph.isTableRow(y)||this.graph.isTableCell(y)};var n=mxGraphLayout.prototype.isEdgeIgnored;mxGraphLayout.prototype.isEdgeIgnored=
-function(y){return n.apply(this,arguments)||this.graph.isEdgeIgnored(y)};var v=mxConnectionHandler.prototype.isCreateTarget;mxConnectionHandler.prototype.isCreateTarget=function(y){return this.graph.isCloneEvent(y)!=v.apply(this,arguments)};mxConstraintHandler.prototype.createHighlightShape=function(){var y=new mxEllipse(null,this.highlightColor,this.highlightColor,0);y.opacity=mxConstants.HIGHLIGHT_OPACITY;return y};mxConnectionHandler.prototype.livePreview=!0;mxConnectionHandler.prototype.cursor=
+function(y){return n.apply(this,arguments)||this.graph.isEdgeIgnored(y)};var u=mxConnectionHandler.prototype.isCreateTarget;mxConnectionHandler.prototype.isCreateTarget=function(y){return this.graph.isCloneEvent(y)!=u.apply(this,arguments)};mxConstraintHandler.prototype.createHighlightShape=function(){var y=new mxEllipse(null,this.highlightColor,this.highlightColor,0);y.opacity=mxConstants.HIGHLIGHT_OPACITY;return y};mxConnectionHandler.prototype.livePreview=!0;mxConnectionHandler.prototype.cursor=
"crosshair";mxConnectionHandler.prototype.createEdgeState=function(y){y=this.graph.createCurrentEdgeStyle();y=this.graph.createEdge(null,null,null,null,null,y);y=new mxCellState(this.graph.view,y,this.graph.getCellStyle(y));for(var Q in this.graph.currentEdgeStyle)y.style[Q]=this.graph.currentEdgeStyle[Q];if(null!=this.previous){var V=this.previous.style.newEdgeStyle;if(null!=V)try{var X=JSON.parse(V);for(Q in X)y.style[Q]=X[Q]}catch(ia){}}y.style=this.graph.postProcessCellStyle(y.cell,y.style);return y};
var p=mxConnectionHandler.prototype.createShape;mxConnectionHandler.prototype.createShape=function(){var y=p.apply(this,arguments);y.isDashed="1"==this.graph.currentEdgeStyle[mxConstants.STYLE_DASHED];return y};mxConnectionHandler.prototype.updatePreview=function(y){};var z=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var y=z.apply(this,arguments),Q=y.getCell;y.getCell=mxUtils.bind(this,function(V){var X=Q.apply(this,arguments);this.error=null;return X});
return y};Graph.prototype.defaultVertexStyle={};Graph.prototype.defaultEdgeStyle={edgeStyle:"orthogonalEdgeStyle",rounded:"0",jettySize:"auto",orthogonalLoop:"1"};Graph.prototype.createCurrentEdgeStyle=function(){for(var y="edgeStyle="+(this.currentEdgeStyle.edgeStyle||"none")+";",Q="shape curved rounded comic sketch fillWeight hachureGap hachureAngle jiggle disableMultiStroke disableMultiStrokeFill fillStyle curveFitting simplification comicStyle jumpStyle jumpSize".split(" "),V=0;V<Q.length;V++)null!=
@@ -2738,11 +2742,11 @@ y.getTitleForCellState=mxUtils.bind(this,function(V,X){return Editor.convertHtml
!0);gb=this.useCssTransforms;var lb=this.enableFlowAnimation;this.enableFlowAnimation=!1;gb&&(this.useCssTransforms=!1,this.view.revalidate(),this.sizeDidChange());try{Q=null!=Q?Q:1;V=null!=V?V:0;la=null!=la?la:!0;qa=null!=qa?qa:!0;ya=null!=ya?ya:!1;ua=null!=ua?ua:this.defaultExportLinkTarget;var jb="page"==Za?this.view.getBackgroundPageBounds():la&&null==ab||X||"diagram"==Za?this.getGraphBounds():this.getBoundingBox(this.getSelectionCells()),Ra=this.backgroundImage,kb=this.view.translate,qb=this.view.scale;
"diagram"==Za&&null!=Ra&&null!=Ra.width&&null!=Ra.height&&(jb=mxRectangle.fromRectangle(jb),jb.add(new mxRectangle((kb.x+Ra.x)*qb,(kb.y+Ra.y)*qb,Ra.width*qb,Ra.height*qb)));if(null==jb)throw Error(mxResources.get("drawingEmpty"));X=Q/qb;var pb=Math.max(1,Math.ceil(jb.width*X)+2*V)+(ya&&0==V?5:0),rb=Math.max(1,Math.ceil(jb.height*X)+2*V)+(ya&&0==V?5:0),ub=mxUtils.getLightDarkColor(y),sb=Graph.createSvgNode(0,0,pb,rb,ub),tb=sb.ownerDocument;if(null!=y){var vb=mxUtils.createElementNs(tb,mxConstants.NS_SVG,
"rect");vb.setAttribute("fill",ub.light);vb.style.fill=ub.cssText;vb.setAttribute("width","100%");vb.setAttribute("height","100%");vb.setAttribute("x","0");vb.setAttribute("y","0");sb.appendChild(vb)}var Ab=mxUtils.createElementNs(tb,mxConstants.NS_SVG,"g");sb.appendChild(Ab);var wb=this.createSvgCanvas(Ab);wb.translate(Math.floor(V/Q-jb.x/qb),Math.floor(V/Q-jb.y/qb));wb.idPrefix="drawio-svg-"+Editor.guid();var zb=document.createElement("div"),xb=wb.getAlternateText;wb.getAlternateText=function(ob,
-Bb,f,t,B,u,C,F,I,ja,O,va,oa){if(null!=u&&0<this.state.fontSize)try{mxUtils.isNode(u)?u=u.innerText:(zb.innerHTML=u,u=mxUtils.extractTextWithWhitespace(zb.childNodes));for(var bb=Math.ceil(2*t/this.state.fontSize),mb=[],hb=0,Ga=0;(0==bb||hb<bb)&&Ga<u.length;){var La=u.charCodeAt(Ga);if(10==La||13==La){if(0<hb)break}else mb.push(u.charAt(Ga)),255>La&&hb++;Ga++}mb.length<u.length&&1<u.length-mb.length&&(u=mxUtils.trim(mb.join(""))+"...");return u}catch(Ja){return xb.apply(this,arguments)}else return xb.apply(this,
+Bb,f,t,B,v,C,F,I,ja,O,va,oa){if(null!=v&&0<this.state.fontSize)try{mxUtils.isNode(v)?v=v.innerText:(zb.innerHTML=v,v=mxUtils.extractTextWithWhitespace(zb.childNodes));for(var bb=Math.ceil(2*t/this.state.fontSize),mb=[],hb=0,Ga=0;(0==bb||hb<bb)&&Ga<v.length;){var La=v.charCodeAt(Ga);if(10==La||13==La){if(0<hb)break}else mb.push(v.charAt(Ga)),255>La&&hb++;Ga++}mb.length<v.length&&1<v.length-mb.length&&(v=mxUtils.trim(mb.join(""))+"...");return v}catch(Ja){return xb.apply(this,arguments)}else return xb.apply(this,
arguments)};if(null!=Ra&&null!=Ra.width&&null!=Ra.height){y=qb/Q;var nb=new mxRectangle((Ra.x+kb.x)*y,(Ra.y+kb.y)*y,Ra.width*y,Ra.height*y);mxUtils.intersects(jb,nb)&&wb.image(Ra.x+kb.x,Ra.y+kb.y,Ra.width,Ra.height,Ra.src,!0)}wb.scale(X);wb.textEnabled=qa;wa=null!=wa?wa:this.createSvgImageExport();var Cb=wa.getLinkForCellState;wa.getLinkForCellState=function(ob,Bb){var f=ob.view.graph.getAbsoluteUrl(Cb.apply(this,arguments));return null==f||ob.view.graph.isCustomLink(f)?null:f};wa.getLinkTargetForCellState=
function(ob,Bb){return ob.view.graph.getLinkTargetForCell(ob.cell)};var Fb=wa.drawCellState,yb=null,Db=mxUtils.bind(this,function(){if(null==yb){yb="ge-flow-animation-"+Editor.guid();var ob=null!=tb.createElementNS?tb.createElementNS(mxConstants.NS_SVG,"style"):tb.createElement("style");ob.innerHTML=this.createFlowAnimationCss(yb);tb.getElementsByTagName("defs")[0].appendChild(ob)}return yb});wa.drawCellState=function(ob,Bb){for(var f=ob.view.graph,t=null!=ab?ab.get(ob.cell):f.isCellSelected(ob.cell),
-B=f.model.getParent(ob.cell);!(la&&null==ab||t)&&null!=B;)t=null!=ab?ab.get(B):f.isCellSelected(B),B=f.model.getParent(B);if(null!=ob.shape)try{var u=ob.shape.isFlowAnimationEnabled,C=ob.shape.addFlowAnimationToShape;ob.shape.isFlowAnimationEnabled=function(){return lb&&f.model.isEdge(ob.cell)&&"1"==mxUtils.getValue(ob.style,"flowAnimation","0")};ob.shape.addFlowAnimationToShape=function(){f.addFlowAnimationToNode(this.getFlowAnimationPath(),ob.style,Q,Db())};if(la&&null==ab||t)f.view.redrawEnumerationState(ob),
-Fb.apply(this,arguments),this.doDrawShape(ob.secondLabel,Bb)}finally{ob.shape.isFlowAnimationEnabled=u,ob.shape.addFlowAnimationToShape=C}};var Eb=null!=this.view.currentRoot?this.view.currentRoot:this.model.root;wa.drawState(this.getView().getState(Eb),wb);this.addForeignObjectWarning(wb,sb);fb?this.disableSvgLinks(sb):this.updateSvgLinks(sb,ua,!0);return sb}finally{this.enableFlowAnimation=lb,gb&&(this.useCssTransforms=!0,this.view.revalidate(),this.sizeDidChange())}};Graph.prototype.addForeignObjectWarning=
+B=f.model.getParent(ob.cell);!(la&&null==ab||t)&&null!=B;)t=null!=ab?ab.get(B):f.isCellSelected(B),B=f.model.getParent(B);if(null!=ob.shape)try{var v=ob.shape.isFlowAnimationEnabled,C=ob.shape.addFlowAnimationToShape;ob.shape.isFlowAnimationEnabled=function(){return lb&&f.model.isEdge(ob.cell)&&"1"==mxUtils.getValue(ob.style,"flowAnimation","0")};ob.shape.addFlowAnimationToShape=function(){f.addFlowAnimationToNode(this.getFlowAnimationPath(),ob.style,Q,Db())};if(la&&null==ab||t)f.view.redrawEnumerationState(ob),
+Fb.apply(this,arguments),this.doDrawShape(ob.secondLabel,Bb)}finally{ob.shape.isFlowAnimationEnabled=v,ob.shape.addFlowAnimationToShape=C}};var Eb=null!=this.view.currentRoot?this.view.currentRoot:this.model.root;wa.drawState(this.getView().getState(Eb),wb);this.addForeignObjectWarning(wb,sb);fb?this.disableSvgLinks(sb):this.updateSvgLinks(sb,ua,!0);return sb}finally{this.enableFlowAnimation=lb,gb&&(this.useCssTransforms=!0,this.view.revalidate(),this.sizeDidChange())}};Graph.prototype.addForeignObjectWarning=
function(y,Q){if("0"!=urlParams["svg-warning"]&&0<Q.getElementsByTagName("foreignObject").length){var V=y.createElement("switch"),X=y.createElement("g");X.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility");var ia=y.createElement("a");ia.setAttribute("transform","translate(0,-5)");null==ia.setAttributeNS||Q.ownerDocument!=document&&null==document.documentMode?(ia.setAttribute("xlink:href",Graph.foreignObjectWarningLink),ia.setAttribute("target","_blank")):(ia.setAttributeNS(mxConstants.NS_XLINK,
"xlink:href",Graph.foreignObjectWarningLink),ia.setAttributeNS(mxConstants.NS_XLINK,"target","_blank"));y=y.createElement("text");y.setAttribute("text-anchor","middle");y.setAttribute("font-size","10px");y.setAttribute("x","50%");y.setAttribute("y","100%");mxUtils.write(y,Graph.foreignObjectWarningText);V.appendChild(X);ia.appendChild(y);V.appendChild(ia);Q.appendChild(V)}};Graph.prototype.disableSvgLinks=function(y,Q){y=y.getElementsByTagName("a");for(var V=0;V<y.length;V++){var X=y[V].getAttribute("href");
null==X&&(X=y[V].getAttribute("xlink:href"));null!=X&&(y[V].style.pointerEvents="none",y[V].setAttribute("href",""));Q&&Q(y[V])}};Graph.prototype.updateSvgLinks=function(y,Q,V){y=y.getElementsByTagName("a");for(var X=0;X<y.length;X++)if(null==y[X].getAttribute("target")){var ia=y[X].getAttribute("href");null==ia&&(ia=y[X].getAttribute("xlink:href"));null!=ia&&(null!=Q&&/^https?:\/\//.test(ia)?y[X].setAttribute("target",Q):V&&this.isCustomLink(ia)&&y[X].setAttribute("href","javascript:void(0);"))}};
@@ -2878,254 +2882,254 @@ y=mxUtils.getRotatedPoint(this.getConnectHandlePosition(),y,Q,V),this.moveSizerT
this.state.text.boundingBox:null,null==V&&(V=this.state),V=V.y+V.height,null!=Q&&(V=Math.max(V,Q.y+Q.height)),this.linkHint.style.left=y.x+y.width/2+"px",this.linkHint.style.top=Math.round(V+this.verticalOffset/2+Editor.hintOffset)+"px",this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":"")};var sa=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(){sa.apply(this,arguments);this.destroyMoveHandles();this.destroyCornerHandles();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 Fa=mxEdgeHandler.prototype.redrawHandles;mxEdgeHandler.prototype.redrawHandles=function(){if(null!=this.marker&&(Fa.apply(this),
null!=this.state&&null!=this.linkHint)){var y=this.state;null!=this.state.text&&null!=this.state.text.bounds&&(y=new mxRectangle(y.x,y.y,y.width,y.height),y.add(this.state.text.bounds));this.linkHint.style.left=y.x+y.width/2+"px";this.linkHint.style.top=Math.round(y.y+y.height+Editor.hintOffset)+"px";this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":""}};var Qa=mxEdgeHandler.prototype.reset;mxEdgeHandler.prototype.reset=function(){Qa.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility=
-"")};var Ta=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){Ta.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(f,t,B){mxShape.call(this);this.line=f;this.stroke=t;this.strokewidth=null!=B?B:1;this.updateBoundsFromLine()}function d(){mxSwimlane.call(this)}function m(){mxSwimlane.call(this)}function n(){mxCylinder.call(this)}function v(){mxConnector.call(this)}function p(){mxCylinder.call(this)}function z(){mxActor.call(this)}function G(){mxCylinder.call(this)}function U(){mxCylinder.call(this)}function E(){mxCylinder.call(this)}function R(){mxCylinder.call(this)}function N(){mxShape.call(this)}
-function c(){mxShape.call(this)}function g(f,t,B,u){mxShape.call(this);this.bounds=f;this.fill=t;this.stroke=B;this.strokewidth=null!=u?u:1}function k(){mxActor.call(this)}function q(){mxCylinder.call(this)}function A(){mxCylinder.call(this)}function D(){mxActor.call(this)}function H(){mxActor.call(this)}function K(){mxActor.call(this)}function P(){mxActor.call(this)}function W(){mxActor.call(this)}function M(){mxActor.call(this)}function ca(){mxActor.call(this)}function fa(f,t){this.canvas=f;this.canvas.setLineJoin("round");
+"")};var Ta=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){Ta.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(f,t,B){mxShape.call(this);this.line=f;this.stroke=t;this.strokewidth=null!=B?B:1;this.updateBoundsFromLine()}function d(){mxSwimlane.call(this)}function m(){mxSwimlane.call(this)}function n(){mxCylinder.call(this)}function u(){mxConnector.call(this)}function p(){mxCylinder.call(this)}function z(){mxActor.call(this)}function G(){mxCylinder.call(this)}function U(){mxCylinder.call(this)}function E(){mxCylinder.call(this)}function R(){mxCylinder.call(this)}function N(){mxShape.call(this)}
+function c(){mxShape.call(this)}function g(f,t,B,v){mxShape.call(this);this.bounds=f;this.fill=t;this.stroke=B;this.strokewidth=null!=v?v:1}function k(){mxActor.call(this)}function q(){mxCylinder.call(this)}function A(){mxCylinder.call(this)}function D(){mxActor.call(this)}function H(){mxActor.call(this)}function K(){mxActor.call(this)}function P(){mxActor.call(this)}function W(){mxActor.call(this)}function M(){mxActor.call(this)}function ca(){mxActor.call(this)}function fa(f,t){this.canvas=f;this.canvas.setLineJoin("round");
this.canvas.setLineCap("round");this.defaultVariation=t;this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,fa.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,fa.prototype.moveTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,fa.prototype.close);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,fa.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=
mxUtils.bind(this,fa.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,fa.prototype.arcTo)}function ha(){mxRectangleShape.call(this)}function ea(){mxRectangleShape.call(this)}function ka(){mxActor.call(this)}function pa(){mxActor.call(this)}function ba(){mxActor.call(this)}function l(){mxRectangleShape.call(this)}function x(){mxRectangleShape.call(this)}function J(){mxCylinder.call(this)}function L(){mxShape.call(this)}function T(){mxShape.call(this)}function Y(){mxEllipse.call(this)}
function aa(){mxShape.call(this)}function S(){mxShape.call(this)}function Z(){mxRectangleShape.call(this)}function da(){mxShape.call(this)}function ma(){mxShape.call(this)}function na(){mxShape.call(this)}function ra(){mxShape.call(this)}function ta(){mxShape.call(this)}function Aa(){mxCylinder.call(this)}function Ca(){mxCylinder.call(this)}function xa(){mxRectangleShape.call(this)}function Ea(){mxDoubleEllipse.call(this)}function Ua(){mxDoubleEllipse.call(this)}function Da(){mxArrowConnector.call(this);
this.spacing=0}function Ha(){mxArrowConnector.call(this);this.spacing=0}function $a(){mxActor.call(this)}function Ka(){mxRectangleShape.call(this)}function za(){mxActor.call(this)}function Sa(){mxActor.call(this)}function Oa(){mxActor.call(this)}function Ma(){mxActor.call(this)}function Na(){mxActor.call(this)}function Ba(){mxActor.call(this)}function Ya(){mxActor.call(this)}function Pa(){mxActor.call(this)}function sa(){mxActor.call(this)}function Fa(){mxActor.call(this)}function Qa(){mxEllipse.call(this)}
-function Ta(){mxEllipse.call(this)}function y(){mxEllipse.call(this)}function Q(){mxRhombus.call(this)}function V(){mxEllipse.call(this)}function X(){mxEllipse.call(this)}function ia(){mxEllipse.call(this)}function la(){mxEllipse.call(this)}function qa(){mxActor.call(this)}function wa(){mxActor.call(this)}function ua(){mxActor.call(this)}function ya(f,t,B,u){mxShape.call(this);this.bounds=f;this.fill=t;this.stroke=B;this.strokewidth=null!=u?u:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=
-!0;this.indent=2;this.rectOutline="single"}function Va(){mxConnector.call(this)}function Wa(){mxConnector.call(this)}function Za(){mxActor.call(this)}function gb(f,t,B,u,C,F,I,ja,O,va){I+=O;var oa=u.clone();u.x-=C*(2*I+O);u.y-=F*(2*I+O);C*=I+O;F*=I+O;return function(){f.ellipse(oa.x-C-I,oa.y-F-I,2*I,2*I);va?f.fillAndStroke():f.stroke()}}mxUtils.extend(b,mxShape);b.prototype.updateBoundsFromLine=function(){var f=null;if(null!=this.line)for(var t=0;t<this.line.length;t++){var B=this.line[t];null!=B&&
-(B=new mxRectangle(B.x,B.y,this.strokewidth,this.strokewidth),null==f?f=B:f.add(B))}this.bounds=null!=f?f:new mxRectangle};b.prototype.paintVertexShape=function(f,t,B,u,C){this.paintTableLine(f,this.line,0,0)};b.prototype.paintTableLine=function(f,t,B,u){if(null!=t){var C=null;f.begin();for(var F=0;F<t.length;F++){var I=t[F];null!=I&&(null==C?f.moveTo(I.x+B,I.y+u):null!=C&&f.lineTo(I.x+B,I.y+u));C=I}f.end();f.stroke()}};b.prototype.intersectsRectangle=function(f){var t=!1;if(mxShape.prototype.intersectsRectangle.apply(this,
-arguments)&&null!=this.line)for(var B=null,u=0;u<this.line.length&&!t;u++){var C=this.line[u];null!=C&&null!=B&&(t=mxUtils.rectangleIntersectsSegment(f,B,C));B=C}return t};mxCellRenderer.registerShape("tableLine",b);mxUtils.extend(d,mxSwimlane);d.prototype.fixedHeaderDefault=!1;d.prototype.paintVertexShape=function(f,t,B,u,C){var F=null!=this.state?this.state.view.graph.isCellCollapsed(this.state.cell):!1,I=this.isHorizontal(),ja=this.getTitleSize(),O=mxUtils.getValue(this.style,mxConstants.STYLE_FIXED_HEADER,
-this.fixedHeaderDefault);0==ja&&!O||this.outline?ia.prototype.paintVertexShape.apply(this,arguments):(mxSwimlane.prototype.paintVertexShape.apply(this,arguments),f.translate(-t,-B));F||this.outline||!(I&&ja<C||!I&&ja<u)||this.paintForeground(f,t,B,u,C)};d.prototype.paintForeground=function(f,t,B,u,C){if(null!=this.state){var F=this.flipH,I=this.flipV;if(this.direction==mxConstants.DIRECTION_NORTH||this.direction==mxConstants.DIRECTION_SOUTH){var ja=F;F=I;I=ja}f.rotate(-this.getShapeRotation(),F,I,
-t+u/2,B+C/2);s=this.scale;t=this.bounds.x/s;B=this.bounds.y/s;u=this.bounds.width/s;C=this.bounds.height/s;this.paintTableForeground(f,t,B,u,C)}};d.prototype.paintTableForeground=function(f,t,B,u,C){u=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(C=0;C<u.length;C++)b.prototype.paintTableLine(f,u[C],t,B)};d.prototype.configurePointerEvents=function(f){0==this.getTitleSize()?f.pointerEvents=
-!1:mxSwimlane.prototype.configurePointerEvents.apply(this,arguments)};mxCellRenderer.registerShape("table",d);mxUtils.extend(m,d);m.prototype.paintForeground=function(){};mxCellRenderer.registerShape("tableRow",m);mxUtils.extend(n,mxCylinder);n.prototype.size=20;n.prototype.darkOpacity=0;n.prototype.darkOpacity2=0;n.prototype.paintVertexShape=function(f,t,B,u,C){var F=Math.max(0,Math.min(u,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),I=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,
-"darkOpacity",this.darkOpacity)))),ja=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity2",this.darkOpacity2))));f.translate(t,B);f.begin();f.moveTo(0,0);f.lineTo(u-F,0);f.lineTo(u,F);f.lineTo(u,C);f.lineTo(F,C);f.lineTo(0,C-F);f.lineTo(0,0);f.close();f.end();f.fillAndStroke();this.outline||(f.setShadow(!1),0!=I&&(f.setFillAlpha(Math.abs(I)),f.setFillColor(0>I?"#FFFFFF":"#000000"),f.begin(),f.moveTo(0,0),f.lineTo(u-F,0),f.lineTo(u,F),f.lineTo(F,F),f.close(),f.fill()),0!=ja&&
-(f.setFillAlpha(Math.abs(ja)),f.setFillColor(0>ja?"#FFFFFF":"#000000"),f.begin(),f.moveTo(0,0),f.lineTo(F,F),f.lineTo(F,C),f.lineTo(0,C-F),f.close(),f.fill()),f.begin(),f.moveTo(F,C),f.lineTo(F,F),f.lineTo(0,0),f.moveTo(F,F),f.lineTo(u,F),f.end(),f.stroke())};n.prototype.getLabelMargins=function(f){return mxUtils.getValue(this.style,"boundedLbl",!1)?(f=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(f,f,0,0)):null};mxCellRenderer.registerShape("cube",n);var ib=
-Math.tan(mxUtils.toRadians(30)),fb=(.5-ib)/2;mxCellRenderer.registerShape("isoRectangle",z);mxUtils.extend(v,mxConnector);v.prototype.paintEdgeShape=function(f,t){var B=this.createMarker(f,t,!0),u=this.createMarker(f,t,!1);f.setDashed(!1);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);null!=this.isDashed&&f.setDashed(this.isDashed,null!=this.style?1==mxUtils.getValue(this.style,mxConstants.STYLE_FIX_DASH,!1):!1);f.setShadow(!1);f.setStrokeColor(this.fill);mxPolyline.prototype.paintEdgeShape.apply(this,
-arguments);f.setStrokeColor(this.stroke);f.setFillColor(this.stroke);f.setDashed(!1);null!=B&&B();null!=u&&u()};mxCellRenderer.registerShape("wire",v);mxUtils.extend(p,mxCylinder);p.prototype.size=6;p.prototype.paintVertexShape=function(f,t,B,u,C){f.setFillColor(this.stroke);var F=Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size))-2)+2*this.strokewidth;f.ellipse(t+.5*(u-F),B+.5*(C-F),F,F);f.fill();f.setFillColor(mxConstants.NONE);f.rect(t,B,u,C);f.fill()};mxCellRenderer.registerShape("waypoint",
-p);mxUtils.extend(z,mxActor);z.prototype.size=20;z.prototype.redrawPath=function(f,t,B,u,C){t=Math.min(u,C/ib);f.translate((u-t)/2,(C-t)/2+t/4);f.moveTo(0,.25*t);f.lineTo(.5*t,t*fb);f.lineTo(t,.25*t);f.lineTo(.5*t,(.5-fb)*t);f.lineTo(0,.25*t);f.close();f.end()};mxCellRenderer.registerShape("isoRectangle",z);mxUtils.extend(G,mxCylinder);G.prototype.size=20;G.prototype.redrawPath=function(f,t,B,u,C,F){t=Math.min(u,C/(.5+ib));F?(f.moveTo(0,.25*t),f.lineTo(.5*t,(.5-fb)*t),f.lineTo(t,.25*t),f.moveTo(.5*
-t,(.5-fb)*t),f.lineTo(.5*t,(1-fb)*t)):(f.translate((u-t)/2,(C-t)/2),f.moveTo(0,.25*t),f.lineTo(.5*t,t*fb),f.lineTo(t,.25*t),f.lineTo(t,.75*t),f.lineTo(.5*t,(1-fb)*t),f.lineTo(0,.75*t),f.close());f.end()};mxCellRenderer.registerShape("isoCube",G);mxUtils.extend(U,mxCylinder);U.prototype.redrawPath=function(f,t,B,u,C,F){t=Math.min(C/2,Math.round(C/8)+this.strokewidth-1);if(F&&null!=this.fill||!F&&null==this.fill)f.moveTo(0,t),f.curveTo(0,2*t,u,2*t,u,t),F||(f.stroke(),f.begin()),f.translate(0,t/2),f.moveTo(0,
-t),f.curveTo(0,2*t,u,2*t,u,t),F||(f.stroke(),f.begin()),f.translate(0,t/2),f.moveTo(0,t),f.curveTo(0,2*t,u,2*t,u,t),F||(f.stroke(),f.begin()),f.translate(0,-t);F||(f.moveTo(0,t),f.curveTo(0,-t/3,u,-t/3,u,t),f.lineTo(u,C-t),f.curveTo(u,C+t/3,0,C+t/3,0,C-t),f.close())};U.prototype.getLabelMargins=function(f){return new mxRectangle(0,2.5*Math.min(f.height/2,Math.round(f.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",U);mxUtils.extend(E,mxCylinder);E.prototype.size=30;E.prototype.darkOpacity=
-0;E.prototype.paintVertexShape=function(f,t,B,u,C){var F=Math.max(0,Math.min(u,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),I=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));f.translate(t,B);f.begin();f.moveTo(0,0);f.lineTo(u-F,0);f.lineTo(u,F);f.lineTo(u,C);f.lineTo(0,C);f.lineTo(0,0);f.close();f.end();f.fillAndStroke();this.outline||(f.setShadow(!1),0!=I&&(f.setFillAlpha(Math.abs(I)),f.setFillColor(0>I?"#FFFFFF":"#000000"),
-f.begin(),f.moveTo(u-F,0),f.lineTo(u-F,F),f.lineTo(u,F),f.close(),f.fill()),f.begin(),f.moveTo(u-F,0),f.lineTo(u-F,F),f.lineTo(u,F),f.end(),f.stroke())};mxCellRenderer.registerShape("note",E);mxUtils.extend(R,E);mxCellRenderer.registerShape("note2",R);R.prototype.getLabelMargins=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(f.height*this.scale,t*this.scale),0,0)}return null};mxUtils.extend(N,mxShape);N.prototype.isoAngle=
-15;N.prototype.paintVertexShape=function(f,t,B,u,C){var F=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;F=Math.min(u*Math.tan(F),.5*C);f.translate(t,B);f.begin();f.moveTo(.5*u,0);f.lineTo(u,F);f.lineTo(u,C-F);f.lineTo(.5*u,C);f.lineTo(0,C-F);f.lineTo(0,F);f.close();f.fillAndStroke();f.setShadow(!1);f.begin();f.moveTo(0,F);f.lineTo(.5*u,2*F);f.lineTo(u,F);f.moveTo(.5*u,2*F);f.lineTo(.5*u,C);f.stroke()};mxCellRenderer.registerShape("isoCube2",
-N);mxUtils.extend(c,mxShape);c.prototype.size=15;c.prototype.paintVertexShape=function(f,t,B,u,C){var F=Math.max(0,Math.min(.5*C,parseFloat(mxUtils.getValue(this.style,"size",this.size))));f.translate(t,B);0==F?(f.rect(0,0,u,C),f.fillAndStroke()):(f.begin(),f.moveTo(0,F),f.arcTo(.5*u,F,0,0,1,.5*u,0),f.arcTo(.5*u,F,0,0,1,u,F),f.lineTo(u,C-F),f.arcTo(.5*u,F,0,0,1,.5*u,C),f.arcTo(.5*u,F,0,0,1,0,C-F),f.close(),f.fillAndStroke(),f.setShadow(!1),f.begin(),f.moveTo(u,F),f.arcTo(.5*u,F,0,0,1,.5*u,2*F),f.arcTo(.5*
-u,F,0,0,1,0,F),f.stroke())};mxCellRenderer.registerShape("cylinder2",c);mxUtils.extend(g,mxCylinder);g.prototype.size=15;g.prototype.paintVertexShape=function(f,t,B,u,C){var F=Math.max(0,Math.min(.5*C,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),I=mxUtils.getValue(this.style,"lid",!0);f.translate(t,B);0==F?(f.rect(0,0,u,C),f.fillAndStroke()):(f.begin(),I?(f.moveTo(0,F),f.arcTo(.5*u,F,0,0,1,.5*u,0),f.arcTo(.5*u,F,0,0,1,u,F)):(f.moveTo(0,0),f.arcTo(.5*u,F,0,0,0,.5*u,F),f.arcTo(.5*u,F,
-0,0,0,u,0)),f.lineTo(u,C-F),f.arcTo(.5*u,F,0,0,1,.5*u,C),f.arcTo(.5*u,F,0,0,1,0,C-F),f.close(),f.fillAndStroke(),f.setShadow(!1),I&&(f.begin(),f.moveTo(u,F),f.arcTo(.5*u,F,0,0,1,.5*u,2*F),f.arcTo(.5*u,F,0,0,1,0,F),f.stroke()))};mxCellRenderer.registerShape("cylinder3",g);mxUtils.extend(k,mxActor);k.prototype.redrawPath=function(f,t,B,u,C){f.moveTo(0,0);f.quadTo(u/2,.5*C,u,0);f.quadTo(.5*u,C/2,u,C);f.quadTo(u/2,.5*C,0,C);f.quadTo(.5*u,C/2,0,0);f.end()};mxCellRenderer.registerShape("switch",k);mxUtils.extend(q,
-mxCylinder);q.prototype.tabWidth=60;q.prototype.tabHeight=20;q.prototype.tabPosition="right";q.prototype.arcSize=.1;q.prototype.isRoundable=function(){return!0};q.prototype.paintVertexShape=function(f,t,B,u,C){f.translate(t,B);t=Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth))));B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));var F=mxUtils.getValue(this.style,"tabPosition",this.tabPosition),I=mxUtils.getValue(this.style,
-"rounded",!1),ja=mxUtils.getValue(this.style,"absoluteArcSize",!1),O=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));ja||(O*=Math.min(u,C));O=Math.min(O,.5*u,.5*(C-B));t=Math.max(t,O);t=Math.min(u-O,t);I||(O=0);f.begin();"left"==F?(f.moveTo(Math.max(O,0),B),f.lineTo(Math.max(O,0),0),f.lineTo(t,0),f.lineTo(t,B)):(f.moveTo(u-t,B),f.lineTo(u-t,0),f.lineTo(u-Math.max(O,0),0),f.lineTo(u-Math.max(O,0),B));I?(f.moveTo(0,O+B),f.arcTo(O,O,0,0,1,O,B),f.lineTo(u-O,B),f.arcTo(O,O,0,0,1,u,O+B),
-f.lineTo(u,C-O),f.arcTo(O,O,0,0,1,u-O,C),f.lineTo(O,C),f.arcTo(O,O,0,0,1,0,C-O)):(f.moveTo(0,B),f.lineTo(u,B),f.lineTo(u,C),f.lineTo(0,C));f.close();f.fillAndStroke();f.setShadow(!1);"triangle"==mxUtils.getValue(this.style,"folderSymbol",null)&&(f.begin(),f.moveTo(u-30,B+20),f.lineTo(u-20,B+10),f.lineTo(u-10,B+20),f.close(),f.stroke())};mxCellRenderer.registerShape("folder",q);q.prototype.getLabelMargins=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=mxUtils.getValue(this.style,
-"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var B=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;t=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var u=mxUtils.getValue(this.style,"rounded",!1),C=mxUtils.getValue(this.style,"absoluteArcSize",!1),F=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));C||(F*=Math.min(f.width,f.height));F=Math.min(F,.5*f.width,.5*(f.height-t));u||(F=0);return"left"==mxUtils.getValue(this.style,"tabPosition",
-this.tabPosition)?new mxRectangle(F,0,Math.min(f.width,f.width-B),Math.min(f.height,f.height-t)):new mxRectangle(Math.min(f.width,f.width-B),0,F,Math.min(f.height,f.height-t))}return new mxRectangle(0,Math.min(f.height,t),0,0)}return null};mxUtils.extend(A,mxCylinder);A.prototype.arcSize=.1;A.prototype.paintVertexShape=function(f,t,B,u,C){f.translate(t,B);var F=mxUtils.getValue(this.style,"rounded",!1),I=mxUtils.getValue(this.style,"absoluteArcSize",!1);t=parseFloat(mxUtils.getValue(this.style,"arcSize",
-this.arcSize));B=mxUtils.getValue(this.style,"umlStateConnection",null);I||(t*=Math.min(u,C));t=Math.min(t,.5*u,.5*C);F||(t=0);F=0;null!=B&&(F=10);f.begin();f.moveTo(F,t);f.arcTo(t,t,0,0,1,F+t,0);f.lineTo(u-t,0);f.arcTo(t,t,0,0,1,u,t);f.lineTo(u,C-t);f.arcTo(t,t,0,0,1,u-t,C);f.lineTo(F+t,C);f.arcTo(t,t,0,0,1,F,C-t);f.close();f.fillAndStroke();f.setShadow(!1);"collapseState"==mxUtils.getValue(this.style,"umlStateSymbol",null)&&(f.roundrect(u-40,C-20,10,10,3,3),f.stroke(),f.roundrect(u-20,C-20,10,10,
-3,3),f.stroke(),f.begin(),f.moveTo(u-30,C-15),f.lineTo(u-20,C-15),f.stroke());"connPointRefEntry"==B?(f.ellipse(0,.5*C-10,20,20),f.fillAndStroke()):"connPointRefExit"==B&&(f.ellipse(0,.5*C-10,20,20),f.fillAndStroke(),f.begin(),f.moveTo(5,.5*C-5),f.lineTo(15,.5*C+5),f.moveTo(15,.5*C-5),f.lineTo(5,.5*C+5),f.stroke())};A.prototype.getLabelMargins=function(f){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",A);mxUtils.extend(D,mxActor);D.prototype.size=30;D.prototype.isRoundable=function(){return!0};D.prototype.redrawPath=function(f,t,B,u,C){t=Math.max(0,Math.min(u,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(t,0),new mxPoint(u,0),new mxPoint(u,C),new mxPoint(0,C),new mxPoint(0,t)],this.isRounded,B,!0);f.end()};
-mxCellRenderer.registerShape("card",D);mxUtils.extend(H,mxActor);H.prototype.size=.4;H.prototype.redrawPath=function(f,t,B,u,C){t=C*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));f.moveTo(0,t/2);f.quadTo(u/4,1.4*t,u/2,t/2);f.quadTo(3*u/4,t*(1-1.4),u,t/2);f.lineTo(u,C-t/2);f.quadTo(3*u/4,C-1.4*t,u/2,C-t/2);f.quadTo(u/4,C-t*(1-1.4),0,C-t/2);f.lineTo(0,t/2);f.close();f.end()};H.prototype.getLabelBounds=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=
-mxUtils.getValue(this.style,"size",this.size),B=f.width,u=f.height;if(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)return t*=u,new mxRectangle(f.x,f.y+t,B,u-2*t);t*=B;return new mxRectangle(f.x+t,f.y,B-2*t,u)}return f};mxCellRenderer.registerShape("tape",H);mxUtils.extend(K,mxActor);K.prototype.size=.3;K.prototype.getLabelMargins=function(f){return mxUtils.getValue(this.style,"boundedLbl",!1)?new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,
-"size",this.size))*f.height):null};K.prototype.redrawPath=function(f,t,B,u,C){t=C*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));f.moveTo(0,0);f.lineTo(u,0);f.lineTo(u,C-t/2);f.quadTo(3*u/4,C-1.4*t,u/2,C-t/2);f.quadTo(u/4,C-t*(1-1.4),0,C-t/2);f.lineTo(0,t/2);f.close();f.end()};mxCellRenderer.registerShape("document",K);var ab=mxCylinder.prototype.getCylinderSize;mxCylinder.prototype.getCylinderSize=function(f,t,B,u){var C=mxUtils.getValue(this.style,"size");return null!=
-C?u*Math.max(0,Math.min(1,C)):ab.apply(this,arguments)};mxCylinder.prototype.getLabelMargins=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=2*mxUtils.getValue(this.style,"size",.15);return new mxRectangle(0,Math.min(this.maxHeight*this.scale,f.height*t),0,0)}return null};g.prototype.getLabelMargins=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=mxUtils.getValue(this.style,"size",15);mxUtils.getValue(this.style,"lid",!0)||(t/=2);return new mxRectangle(0,Math.min(f.height*
-this.scale,2*t*this.scale),0,Math.max(0,.3*t*this.scale))}return null};q.prototype.getLabelMargins=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var B=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;t=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var u=mxUtils.getValue(this.style,"rounded",!1),C=mxUtils.getValue(this.style,"absoluteArcSize",!1),F=parseFloat(mxUtils.getValue(this.style,
-"arcSize",this.arcSize));C||(F*=Math.min(f.width,f.height));F=Math.min(F,.5*f.width,.5*(f.height-t));u||(F=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(F,0,Math.min(f.width,f.width-B),Math.min(f.height,f.height-t)):new mxRectangle(Math.min(f.width,f.width-B),0,F,Math.min(f.height,f.height-t))}return new mxRectangle(0,Math.min(f.height,t),0,0)}return null};A.prototype.getLabelMargins=function(f){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=
-mxUtils.getValue(this.style,"umlStateConnection",null)?new mxRectangle(10*this.scale,0,0,0):null};R.prototype.getLabelMargins=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(f.height*this.scale,t*this.scale),0,Math.max(0,t*this.scale))}return null};mxUtils.extend(P,mxActor);P.prototype.size=.2;P.prototype.fixedSize=20;P.prototype.isRoundable=function(){return!0};P.prototype.redrawPath=function(f,t,B,u,C){t=
-"0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,C),new mxPoint(t,0),new mxPoint(u,0),new mxPoint(u-t,C)],this.isRounded,B,!0);f.end()};mxCellRenderer.registerShape("parallelogram",P);mxUtils.extend(W,mxActor);W.prototype.size=
-.2;W.prototype.fixedSize=20;W.prototype.isRoundable=function(){return!0};W.prototype.redrawPath=function(f,t,B,u,C){t="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*u,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):u*Math.max(0,Math.min(.5,parseFloat(mxUtils.getValue(this.style,"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,C),new mxPoint(t,0),new mxPoint(u-t,0),new mxPoint(u,
-C)],this.isRounded,B,!0)};mxCellRenderer.registerShape("trapezoid",W);mxUtils.extend(M,mxActor);M.prototype.size=.5;M.prototype.redrawPath=function(f,t,B,u,C){f.setFillColor(null);t=u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(u,0),new mxPoint(t,0),new mxPoint(t,C/2),new mxPoint(0,C/2),new mxPoint(t,C/2),new mxPoint(t,C),new mxPoint(u,C)],this.isRounded,
-B,!1);f.end()};mxCellRenderer.registerShape("curlyBracket",M);mxUtils.extend(ca,mxActor);ca.prototype.redrawPath=function(f,t,B,u,C){f.setStrokeWidth(1);f.setFillColor(this.stroke);t=u/5;f.rect(0,0,t,C);f.fillAndStroke();f.rect(2*t,0,t,C);f.fillAndStroke();f.rect(4*t,0,t,C);f.fillAndStroke()};mxCellRenderer.registerShape("parallelMarker",ca);fa.prototype.moveTo=function(f,t){this.originalMoveTo.apply(this.canvas,arguments);this.lastX=f;this.lastY=t;this.firstX=f;this.firstY=t};fa.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)};fa.prototype.quadTo=function(f,t,B,u){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=B;this.lastY=u};fa.prototype.curveTo=function(f,t,B,u,C,F){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=C;this.lastY=F};fa.prototype.arcTo=function(f,t,B,u,C,F,I){this.originalArcTo.apply(this.canvas,arguments);
-this.lastX=F;this.lastY=I};fa.prototype.lineTo=function(f,t){if(null!=this.lastX&&null!=this.lastY){var B=function(oa){return"number"===typeof oa?oa?0>oa?-1:1:oa===oa?0:NaN:NaN},u=Math.abs(f-this.lastX),C=Math.abs(t-this.lastY),F=Math.sqrt(u*u+C*C);if(2>F){this.originalLineTo.apply(this.canvas,arguments);this.lastX=f;this.lastY=t;return}var I=Math.round(F/10),ja=this.defaultVariation;5>I&&(I=5,ja/=3);var O=B(f-this.lastX)*u/I;B=B(t-this.lastY)*C/I;u/=F;C/=F;for(F=0;F<I;F++){var va=(Math.random()-
-.5)*ja;this.originalLineTo.call(this.canvas,O*F+this.lastX-va*C,B*F+this.lastY-va*u)}this.originalLineTo.call(this.canvas,f,t)}else this.originalLineTo.apply(this.canvas,arguments);this.lastX=f;this.lastY=t};fa.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};var lb=mxShape.prototype.beforePaint;
+function Ta(){mxEllipse.call(this)}function y(){mxEllipse.call(this)}function Q(){mxRhombus.call(this)}function V(){mxEllipse.call(this)}function X(){mxEllipse.call(this)}function ia(){mxEllipse.call(this)}function la(){mxEllipse.call(this)}function qa(){mxActor.call(this)}function wa(){mxActor.call(this)}function ua(){mxActor.call(this)}function ya(f,t,B,v){mxShape.call(this);this.bounds=f;this.fill=t;this.stroke=B;this.strokewidth=null!=v?v:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=
+!0;this.indent=2;this.rectOutline="single"}function Va(){mxConnector.call(this)}function Wa(){mxConnector.call(this)}function Za(){mxActor.call(this)}function gb(f,t,B,v,C,F,I,ja,O,va){I+=O;var oa=v.clone();v.x-=C*(2*I+O);v.y-=F*(2*I+O);C*=I+O;F*=I+O;return function(){f.ellipse(oa.x-C-I,oa.y-F-I,2*I,2*I);va?f.fillAndStroke():f.stroke()}}mxUtils.extend(b,mxShape);b.prototype.updateBoundsFromLine=function(){var f=null;if(null!=this.line)for(var t=0;t<this.line.length;t++){var B=this.line[t];null!=B&&
+(B=new mxRectangle(B.x,B.y,this.strokewidth,this.strokewidth),null==f?f=B:f.add(B))}this.bounds=null!=f?f:new mxRectangle};b.prototype.paintVertexShape=function(f,t,B,v,C){this.paintTableLine(f,this.line,0,0)};b.prototype.paintTableLine=function(f,t,B,v){if(null!=t){var C=null;f.begin();for(var F=0;F<t.length;F++){var I=t[F];null!=I&&(null==C?f.moveTo(I.x+B,I.y+v):null!=C&&f.lineTo(I.x+B,I.y+v));C=I}f.end();f.stroke()}};b.prototype.intersectsRectangle=function(f){var t=!1;if(mxShape.prototype.intersectsRectangle.apply(this,
+arguments)&&null!=this.line)for(var B=null,v=0;v<this.line.length&&!t;v++){var C=this.line[v];null!=C&&null!=B&&(t=mxUtils.rectangleIntersectsSegment(f,B,C));B=C}return t};mxCellRenderer.registerShape("tableLine",b);mxUtils.extend(d,mxSwimlane);d.prototype.fixedHeaderDefault=!1;d.prototype.paintVertexShape=function(f,t,B,v,C){var F=null!=this.state?this.state.view.graph.isCellCollapsed(this.state.cell):!1,I=this.isHorizontal(),ja=this.getTitleSize(),O=mxUtils.getValue(this.style,mxConstants.STYLE_FIXED_HEADER,
+this.fixedHeaderDefault);0==ja&&!O||this.outline?ia.prototype.paintVertexShape.apply(this,arguments):(mxSwimlane.prototype.paintVertexShape.apply(this,arguments),f.translate(-t,-B));F||this.outline||!(I&&ja<C||!I&&ja<v)||this.paintForeground(f,t,B,v,C)};d.prototype.paintForeground=function(f,t,B,v,C){if(null!=this.state){var F=this.flipH,I=this.flipV;if(this.direction==mxConstants.DIRECTION_NORTH||this.direction==mxConstants.DIRECTION_SOUTH){var ja=F;F=I;I=ja}f.rotate(-this.getShapeRotation(),F,I,
+t+v/2,B+C/2);s=this.scale;t=this.bounds.x/s;B=this.bounds.y/s;v=this.bounds.width/s;C=this.bounds.height/s;this.paintTableForeground(f,t,B,v,C)}};d.prototype.paintTableForeground=function(f,t,B,v,C){v=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(C=0;C<v.length;C++)b.prototype.paintTableLine(f,v[C],t,B)};d.prototype.configurePointerEvents=function(f){0==this.getTitleSize()?f.pointerEvents=
+!1:mxSwimlane.prototype.configurePointerEvents.apply(this,arguments)};mxCellRenderer.registerShape("table",d);mxUtils.extend(m,d);m.prototype.paintForeground=function(){};mxCellRenderer.registerShape("tableRow",m);mxUtils.extend(n,mxCylinder);n.prototype.size=20;n.prototype.darkOpacity=0;n.prototype.darkOpacity2=0;n.prototype.paintVertexShape=function(f,t,B,v,C){var F=Math.max(0,Math.min(v,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),I=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,
+"darkOpacity",this.darkOpacity)))),ja=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity2",this.darkOpacity2))));f.translate(t,B);f.begin();f.moveTo(0,0);f.lineTo(v-F,0);f.lineTo(v,F);f.lineTo(v,C);f.lineTo(F,C);f.lineTo(0,C-F);f.lineTo(0,0);f.close();f.end();f.fillAndStroke();this.outline||(f.setShadow(!1),0!=I&&(f.setFillAlpha(Math.abs(I)),f.setFillColor(0>I?"#FFFFFF":"#000000"),f.begin(),f.moveTo(0,0),f.lineTo(v-F,0),f.lineTo(v,F),f.lineTo(F,F),f.close(),f.fill()),0!=ja&&
+(f.setFillAlpha(Math.abs(ja)),f.setFillColor(0>ja?"#FFFFFF":"#000000"),f.begin(),f.moveTo(0,0),f.lineTo(F,F),f.lineTo(F,C),f.lineTo(0,C-F),f.close(),f.fill()),f.begin(),f.moveTo(F,C),f.lineTo(F,F),f.lineTo(0,0),f.moveTo(F,F),f.lineTo(v,F),f.end(),f.stroke())};n.prototype.getLabelMargins=function(f){return mxUtils.getValue(this.style,"boundedLbl",!1)?(f=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(f,f,0,0)):null};mxCellRenderer.registerShape("cube",n);var ib=
+Math.tan(mxUtils.toRadians(30)),fb=(.5-ib)/2;mxCellRenderer.registerShape("isoRectangle",z);mxUtils.extend(u,mxConnector);u.prototype.paintEdgeShape=function(f,t){var B=this.createMarker(f,t,!0),v=this.createMarker(f,t,!1);f.setDashed(!1);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);null!=this.isDashed&&f.setDashed(this.isDashed,null!=this.style?1==mxUtils.getValue(this.style,mxConstants.STYLE_FIX_DASH,!1):!1);f.setShadow(!1);f.setStrokeColor(this.fill);mxPolyline.prototype.paintEdgeShape.apply(this,
+arguments);f.setStrokeColor(this.stroke);f.setFillColor(this.stroke);f.setDashed(!1);null!=B&&B();null!=v&&v()};mxCellRenderer.registerShape("wire",u);mxUtils.extend(p,mxCylinder);p.prototype.size=6;p.prototype.paintVertexShape=function(f,t,B,v,C){f.setFillColor(this.stroke);var F=Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size))-2)+2*this.strokewidth;f.ellipse(t+.5*(v-F),B+.5*(C-F),F,F);f.fill();f.setFillColor(mxConstants.NONE);f.rect(t,B,v,C);f.fill()};mxCellRenderer.registerShape("waypoint",
+p);mxUtils.extend(z,mxActor);z.prototype.size=20;z.prototype.redrawPath=function(f,t,B,v,C){t=Math.min(v,C/ib);f.translate((v-t)/2,(C-t)/2+t/4);f.moveTo(0,.25*t);f.lineTo(.5*t,t*fb);f.lineTo(t,.25*t);f.lineTo(.5*t,(.5-fb)*t);f.lineTo(0,.25*t);f.close();f.end()};mxCellRenderer.registerShape("isoRectangle",z);mxUtils.extend(G,mxCylinder);G.prototype.size=20;G.prototype.redrawPath=function(f,t,B,v,C,F){t=Math.min(v,C/(.5+ib));F?(f.moveTo(0,.25*t),f.lineTo(.5*t,(.5-fb)*t),f.lineTo(t,.25*t),f.moveTo(.5*
+t,(.5-fb)*t),f.lineTo(.5*t,(1-fb)*t)):(f.translate((v-t)/2,(C-t)/2),f.moveTo(0,.25*t),f.lineTo(.5*t,t*fb),f.lineTo(t,.25*t),f.lineTo(t,.75*t),f.lineTo(.5*t,(1-fb)*t),f.lineTo(0,.75*t),f.close());f.end()};mxCellRenderer.registerShape("isoCube",G);mxUtils.extend(U,mxCylinder);U.prototype.redrawPath=function(f,t,B,v,C,F){t=Math.min(C/2,Math.round(C/8)+this.strokewidth-1);if(F&&null!=this.fill||!F&&null==this.fill)f.moveTo(0,t),f.curveTo(0,2*t,v,2*t,v,t),F||(f.stroke(),f.begin()),f.translate(0,t/2),f.moveTo(0,
+t),f.curveTo(0,2*t,v,2*t,v,t),F||(f.stroke(),f.begin()),f.translate(0,t/2),f.moveTo(0,t),f.curveTo(0,2*t,v,2*t,v,t),F||(f.stroke(),f.begin()),f.translate(0,-t);F||(f.moveTo(0,t),f.curveTo(0,-t/3,v,-t/3,v,t),f.lineTo(v,C-t),f.curveTo(v,C+t/3,0,C+t/3,0,C-t),f.close())};U.prototype.getLabelMargins=function(f){return new mxRectangle(0,2.5*Math.min(f.height/2,Math.round(f.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",U);mxUtils.extend(E,mxCylinder);E.prototype.size=30;E.prototype.darkOpacity=
+0;E.prototype.paintVertexShape=function(f,t,B,v,C){var F=Math.max(0,Math.min(v,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),I=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));f.translate(t,B);f.begin();f.moveTo(0,0);f.lineTo(v-F,0);f.lineTo(v,F);f.lineTo(v,C);f.lineTo(0,C);f.lineTo(0,0);f.close();f.end();f.fillAndStroke();this.outline||(f.setShadow(!1),0!=I&&(f.setFillAlpha(Math.abs(I)),f.setFillColor(0>I?"#FFFFFF":"#000000"),
+f.begin(),f.moveTo(v-F,0),f.lineTo(v-F,F),f.lineTo(v,F),f.close(),f.fill()),f.begin(),f.moveTo(v-F,0),f.lineTo(v-F,F),f.lineTo(v,F),f.end(),f.stroke())};mxCellRenderer.registerShape("note",E);mxUtils.extend(R,E);mxCellRenderer.registerShape("note2",R);R.prototype.getLabelMargins=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(f.height*this.scale,t*this.scale),0,0)}return null};mxUtils.extend(N,mxShape);N.prototype.isoAngle=
+15;N.prototype.paintVertexShape=function(f,t,B,v,C){var F=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;F=Math.min(v*Math.tan(F),.5*C);f.translate(t,B);f.begin();f.moveTo(.5*v,0);f.lineTo(v,F);f.lineTo(v,C-F);f.lineTo(.5*v,C);f.lineTo(0,C-F);f.lineTo(0,F);f.close();f.fillAndStroke();f.setShadow(!1);f.begin();f.moveTo(0,F);f.lineTo(.5*v,2*F);f.lineTo(v,F);f.moveTo(.5*v,2*F);f.lineTo(.5*v,C);f.stroke()};mxCellRenderer.registerShape("isoCube2",
+N);mxUtils.extend(c,mxShape);c.prototype.size=15;c.prototype.paintVertexShape=function(f,t,B,v,C){var F=Math.max(0,Math.min(.5*C,parseFloat(mxUtils.getValue(this.style,"size",this.size))));f.translate(t,B);0==F?(f.rect(0,0,v,C),f.fillAndStroke()):(f.begin(),f.moveTo(0,F),f.arcTo(.5*v,F,0,0,1,.5*v,0),f.arcTo(.5*v,F,0,0,1,v,F),f.lineTo(v,C-F),f.arcTo(.5*v,F,0,0,1,.5*v,C),f.arcTo(.5*v,F,0,0,1,0,C-F),f.close(),f.fillAndStroke(),f.setShadow(!1),f.begin(),f.moveTo(v,F),f.arcTo(.5*v,F,0,0,1,.5*v,2*F),f.arcTo(.5*
+v,F,0,0,1,0,F),f.stroke())};mxCellRenderer.registerShape("cylinder2",c);mxUtils.extend(g,mxCylinder);g.prototype.size=15;g.prototype.paintVertexShape=function(f,t,B,v,C){var F=Math.max(0,Math.min(.5*C,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),I=mxUtils.getValue(this.style,"lid",!0);f.translate(t,B);0==F?(f.rect(0,0,v,C),f.fillAndStroke()):(f.begin(),I?(f.moveTo(0,F),f.arcTo(.5*v,F,0,0,1,.5*v,0),f.arcTo(.5*v,F,0,0,1,v,F)):(f.moveTo(0,0),f.arcTo(.5*v,F,0,0,0,.5*v,F),f.arcTo(.5*v,F,
+0,0,0,v,0)),f.lineTo(v,C-F),f.arcTo(.5*v,F,0,0,1,.5*v,C),f.arcTo(.5*v,F,0,0,1,0,C-F),f.close(),f.fillAndStroke(),f.setShadow(!1),I&&(f.begin(),f.moveTo(v,F),f.arcTo(.5*v,F,0,0,1,.5*v,2*F),f.arcTo(.5*v,F,0,0,1,0,F),f.stroke()))};mxCellRenderer.registerShape("cylinder3",g);mxUtils.extend(k,mxActor);k.prototype.redrawPath=function(f,t,B,v,C){f.moveTo(0,0);f.quadTo(v/2,.5*C,v,0);f.quadTo(.5*v,C/2,v,C);f.quadTo(v/2,.5*C,0,C);f.quadTo(.5*v,C/2,0,0);f.end()};mxCellRenderer.registerShape("switch",k);mxUtils.extend(q,
+mxCylinder);q.prototype.tabWidth=60;q.prototype.tabHeight=20;q.prototype.tabPosition="right";q.prototype.arcSize=.1;q.prototype.isRoundable=function(){return!0};q.prototype.paintVertexShape=function(f,t,B,v,C){f.translate(t,B);t=Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth))));B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));var F=mxUtils.getValue(this.style,"tabPosition",this.tabPosition),I=mxUtils.getValue(this.style,
+"rounded",!1),ja=mxUtils.getValue(this.style,"absoluteArcSize",!1),O=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));ja||(O*=Math.min(v,C));O=Math.min(O,.5*v,.5*(C-B));t=Math.max(t,O);t=Math.min(v-O,t);I||(O=0);f.begin();"left"==F?(f.moveTo(Math.max(O,0),B),f.lineTo(Math.max(O,0),0),f.lineTo(t,0),f.lineTo(t,B)):(f.moveTo(v-t,B),f.lineTo(v-t,0),f.lineTo(v-Math.max(O,0),0),f.lineTo(v-Math.max(O,0),B));I?(f.moveTo(0,O+B),f.arcTo(O,O,0,0,1,O,B),f.lineTo(v-O,B),f.arcTo(O,O,0,0,1,v,O+B),
+f.lineTo(v,C-O),f.arcTo(O,O,0,0,1,v-O,C),f.lineTo(O,C),f.arcTo(O,O,0,0,1,0,C-O)):(f.moveTo(0,B),f.lineTo(v,B),f.lineTo(v,C),f.lineTo(0,C));f.close();f.fillAndStroke();f.setShadow(!1);"triangle"==mxUtils.getValue(this.style,"folderSymbol",null)&&(f.begin(),f.moveTo(v-30,B+20),f.lineTo(v-20,B+10),f.lineTo(v-10,B+20),f.close(),f.stroke())};mxCellRenderer.registerShape("folder",q);q.prototype.getLabelMargins=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=mxUtils.getValue(this.style,
+"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var B=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;t=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var v=mxUtils.getValue(this.style,"rounded",!1),C=mxUtils.getValue(this.style,"absoluteArcSize",!1),F=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));C||(F*=Math.min(f.width,f.height));F=Math.min(F,.5*f.width,.5*(f.height-t));v||(F=0);return"left"==mxUtils.getValue(this.style,"tabPosition",
+this.tabPosition)?new mxRectangle(F,0,Math.min(f.width,f.width-B),Math.min(f.height,f.height-t)):new mxRectangle(Math.min(f.width,f.width-B),0,F,Math.min(f.height,f.height-t))}return new mxRectangle(0,Math.min(f.height,t),0,0)}return null};mxUtils.extend(A,mxCylinder);A.prototype.arcSize=.1;A.prototype.paintVertexShape=function(f,t,B,v,C){f.translate(t,B);var F=mxUtils.getValue(this.style,"rounded",!1),I=mxUtils.getValue(this.style,"absoluteArcSize",!1);t=parseFloat(mxUtils.getValue(this.style,"arcSize",
+this.arcSize));B=mxUtils.getValue(this.style,"umlStateConnection",null);I||(t*=Math.min(v,C));t=Math.min(t,.5*v,.5*C);F||(t=0);F=0;null!=B&&(F=10);f.begin();f.moveTo(F,t);f.arcTo(t,t,0,0,1,F+t,0);f.lineTo(v-t,0);f.arcTo(t,t,0,0,1,v,t);f.lineTo(v,C-t);f.arcTo(t,t,0,0,1,v-t,C);f.lineTo(F+t,C);f.arcTo(t,t,0,0,1,F,C-t);f.close();f.fillAndStroke();f.setShadow(!1);"collapseState"==mxUtils.getValue(this.style,"umlStateSymbol",null)&&(f.roundrect(v-40,C-20,10,10,3,3),f.stroke(),f.roundrect(v-20,C-20,10,10,
+3,3),f.stroke(),f.begin(),f.moveTo(v-30,C-15),f.lineTo(v-20,C-15),f.stroke());"connPointRefEntry"==B?(f.ellipse(0,.5*C-10,20,20),f.fillAndStroke()):"connPointRefExit"==B&&(f.ellipse(0,.5*C-10,20,20),f.fillAndStroke(),f.begin(),f.moveTo(5,.5*C-5),f.lineTo(15,.5*C+5),f.moveTo(15,.5*C-5),f.lineTo(5,.5*C+5),f.stroke())};A.prototype.getLabelMargins=function(f){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",A);mxUtils.extend(D,mxActor);D.prototype.size=30;D.prototype.isRoundable=function(){return!0};D.prototype.redrawPath=function(f,t,B,v,C){t=Math.max(0,Math.min(v,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(t,0),new mxPoint(v,0),new mxPoint(v,C),new mxPoint(0,C),new mxPoint(0,t)],this.isRounded,B,!0);f.end()};
+mxCellRenderer.registerShape("card",D);mxUtils.extend(H,mxActor);H.prototype.size=.4;H.prototype.redrawPath=function(f,t,B,v,C){t=C*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));f.moveTo(0,t/2);f.quadTo(v/4,1.4*t,v/2,t/2);f.quadTo(3*v/4,t*(1-1.4),v,t/2);f.lineTo(v,C-t/2);f.quadTo(3*v/4,C-1.4*t,v/2,C-t/2);f.quadTo(v/4,C-t*(1-1.4),0,C-t/2);f.lineTo(0,t/2);f.close();f.end()};H.prototype.getLabelBounds=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=
+mxUtils.getValue(this.style,"size",this.size),B=f.width,v=f.height;if(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)return t*=v,new mxRectangle(f.x,f.y+t,B,v-2*t);t*=B;return new mxRectangle(f.x+t,f.y,B-2*t,v)}return f};mxCellRenderer.registerShape("tape",H);mxUtils.extend(K,mxActor);K.prototype.size=.3;K.prototype.getLabelMargins=function(f){return mxUtils.getValue(this.style,"boundedLbl",!1)?new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,
+"size",this.size))*f.height):null};K.prototype.redrawPath=function(f,t,B,v,C){t=C*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));f.moveTo(0,0);f.lineTo(v,0);f.lineTo(v,C-t/2);f.quadTo(3*v/4,C-1.4*t,v/2,C-t/2);f.quadTo(v/4,C-t*(1-1.4),0,C-t/2);f.lineTo(0,t/2);f.close();f.end()};mxCellRenderer.registerShape("document",K);var ab=mxCylinder.prototype.getCylinderSize;mxCylinder.prototype.getCylinderSize=function(f,t,B,v){var C=mxUtils.getValue(this.style,"size");return null!=
+C?v*Math.max(0,Math.min(1,C)):ab.apply(this,arguments)};mxCylinder.prototype.getLabelMargins=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=2*mxUtils.getValue(this.style,"size",.15);return new mxRectangle(0,Math.min(this.maxHeight*this.scale,f.height*t),0,0)}return null};g.prototype.getLabelMargins=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=mxUtils.getValue(this.style,"size",15);mxUtils.getValue(this.style,"lid",!0)||(t/=2);return new mxRectangle(0,Math.min(f.height*
+this.scale,2*t*this.scale),0,Math.max(0,.3*t*this.scale))}return null};q.prototype.getLabelMargins=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var B=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;t=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var v=mxUtils.getValue(this.style,"rounded",!1),C=mxUtils.getValue(this.style,"absoluteArcSize",!1),F=parseFloat(mxUtils.getValue(this.style,
+"arcSize",this.arcSize));C||(F*=Math.min(f.width,f.height));F=Math.min(F,.5*f.width,.5*(f.height-t));v||(F=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(F,0,Math.min(f.width,f.width-B),Math.min(f.height,f.height-t)):new mxRectangle(Math.min(f.width,f.width-B),0,F,Math.min(f.height,f.height-t))}return new mxRectangle(0,Math.min(f.height,t),0,0)}return null};A.prototype.getLabelMargins=function(f){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=
+mxUtils.getValue(this.style,"umlStateConnection",null)?new mxRectangle(10*this.scale,0,0,0):null};R.prototype.getLabelMargins=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(f.height*this.scale,t*this.scale),0,Math.max(0,t*this.scale))}return null};mxUtils.extend(P,mxActor);P.prototype.size=.2;P.prototype.fixedSize=20;P.prototype.isRoundable=function(){return!0};P.prototype.redrawPath=function(f,t,B,v,C){t=
+"0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,C),new mxPoint(t,0),new mxPoint(v,0),new mxPoint(v-t,C)],this.isRounded,B,!0);f.end()};mxCellRenderer.registerShape("parallelogram",P);mxUtils.extend(W,mxActor);W.prototype.size=
+.2;W.prototype.fixedSize=20;W.prototype.isRoundable=function(){return!0};W.prototype.redrawPath=function(f,t,B,v,C){t="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*v,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):v*Math.max(0,Math.min(.5,parseFloat(mxUtils.getValue(this.style,"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,C),new mxPoint(t,0),new mxPoint(v-t,0),new mxPoint(v,
+C)],this.isRounded,B,!0)};mxCellRenderer.registerShape("trapezoid",W);mxUtils.extend(M,mxActor);M.prototype.size=.5;M.prototype.redrawPath=function(f,t,B,v,C){f.setFillColor(null);t=v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(v,0),new mxPoint(t,0),new mxPoint(t,C/2),new mxPoint(0,C/2),new mxPoint(t,C/2),new mxPoint(t,C),new mxPoint(v,C)],this.isRounded,
+B,!1);f.end()};mxCellRenderer.registerShape("curlyBracket",M);mxUtils.extend(ca,mxActor);ca.prototype.redrawPath=function(f,t,B,v,C){f.setStrokeWidth(1);f.setFillColor(this.stroke);t=v/5;f.rect(0,0,t,C);f.fillAndStroke();f.rect(2*t,0,t,C);f.fillAndStroke();f.rect(4*t,0,t,C);f.fillAndStroke()};mxCellRenderer.registerShape("parallelMarker",ca);fa.prototype.moveTo=function(f,t){this.originalMoveTo.apply(this.canvas,arguments);this.lastX=f;this.lastY=t;this.firstX=f;this.firstY=t};fa.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)};fa.prototype.quadTo=function(f,t,B,v){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=B;this.lastY=v};fa.prototype.curveTo=function(f,t,B,v,C,F){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=C;this.lastY=F};fa.prototype.arcTo=function(f,t,B,v,C,F,I){this.originalArcTo.apply(this.canvas,arguments);
+this.lastX=F;this.lastY=I};fa.prototype.lineTo=function(f,t){if(null!=this.lastX&&null!=this.lastY){var B=function(oa){return"number"===typeof oa?oa?0>oa?-1:1:oa===oa?0:NaN:NaN},v=Math.abs(f-this.lastX),C=Math.abs(t-this.lastY),F=Math.sqrt(v*v+C*C);if(2>F){this.originalLineTo.apply(this.canvas,arguments);this.lastX=f;this.lastY=t;return}var I=Math.round(F/10),ja=this.defaultVariation;5>I&&(I=5,ja/=3);var O=B(f-this.lastX)*v/I;B=B(t-this.lastY)*C/I;v/=F;C/=F;for(F=0;F<I;F++){var va=(Math.random()-
+.5)*ja;this.originalLineTo.call(this.canvas,O*F+this.lastX-va*C,B*F+this.lastY-va*v)}this.originalLineTo.call(this.canvas,f,t)}else this.originalLineTo.apply(this.canvas,arguments);this.lastX=f;this.lastY=t};fa.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};var lb=mxShape.prototype.beforePaint;
mxShape.prototype.beforePaint=function(f){lb.apply(this,arguments);null==f.handJiggle&&(f.handJiggle=this.createHandJiggle(f))};var jb=mxShape.prototype.afterPaint;mxShape.prototype.afterPaint=function(f){jb.apply(this,arguments);null!=f.handJiggle&&(f.handJiggle.destroy(),delete f.handJiggle)};mxShape.prototype.createComicCanvas=function(f){return new fa(f,mxUtils.getValue(this.style,"jiggle",Editor.sketchDefaultJiggle))};mxShape.prototype.createHandJiggle=function(f){return this.outline||null==
-this.style||"0"==mxUtils.getValue(this.style,"comic","0")?null:this.createComicCanvas(f)};var Ra=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"))&&Ra.apply(this,arguments)};var kb=mxRectangleShape.prototype.paintBackground;mxRectangleShape.prototype.paintBackground=function(f,t,B,u,C){if(null==f.handJiggle||
-f.handJiggle.constructor!=fa)kb.apply(this,arguments);else{var F=!0;null!=this.style&&(F="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(F||null!=this.fill&&this.fill!=mxConstants.NONE||null!=this.stroke&&this.stroke!=mxConstants.NONE)F||null!=this.fill&&this.fill!=mxConstants.NONE||(f.pointerEvents=!1),f.begin(),this.isRounded?("1"==mxUtils.getValue(this.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?F=Math.min(u/2,Math.min(C/2,mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,
-mxConstants.LINE_ARCSIZE)/2)):(F=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,F=Math.min(u*F,C*F)),f.moveTo(t+F,B),f.lineTo(t+u-F,B),f.quadTo(t+u,B,t+u,B+F),f.lineTo(t+u,B+C-F),f.quadTo(t+u,B+C,t+u-F,B+C),f.lineTo(t+F,B+C),f.quadTo(t,B+C,t,B+C-F),f.lineTo(t,B+F),f.quadTo(t,B,t+F,B)):(f.moveTo(t,B),f.lineTo(t+u,B),f.lineTo(t+u,B+C),f.lineTo(t,B+C),f.lineTo(t,B)),f.close(),f.end(),f.fillAndStroke()}};mxUtils.extend(ha,mxRectangleShape);ha.prototype.size=
-.1;ha.prototype.fixedSize=!1;ha.prototype.isHtmlAllowed=function(){return!1};ha.prototype.getLabelBounds=function(f){if(mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,!0)==(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)){var t=f.width,B=f.height;f=new mxRectangle(f.x,f.y,t,B);var u=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),C=parseFloat(mxUtils.getValue(this.style,"size",this.size));u?C=Math.max(0,Math.min(t,
-C*this.scale)):(C=t*Math.max(0,Math.min(1,C)),this.isRounded&&(u=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,C=Math.max(C,Math.min(t*u,B*u))));f.x+=Math.round(C);f.width-=Math.round(2*C);return f}return f};ha.prototype.paintForeground=function(f,t,B,u,C){var F=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),I=parseFloat(mxUtils.getValue(this.style,"size",this.size));I=F?Math.max(0,Math.min(u,I)):u*Math.max(0,Math.min(1,I));this.isRounded&&
-(F=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,I=Math.max(I,Math.min(u*F,C*F)));I=Math.round(I);f.begin();f.moveTo(t+I,B);f.lineTo(t+I,B+C);f.moveTo(t+u-I,B);f.lineTo(t+u-I,B+C);f.end();f.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("process",ha);mxCellRenderer.registerShape("process2",ha);mxUtils.extend(ea,mxRectangleShape);ea.prototype.paintBackground=function(f,t,B,u,C){f.setFillColor(mxConstants.NONE);
-f.rect(t,B,u,C);f.fill()};ea.prototype.paintForeground=function(f,t,B,u,C){};mxCellRenderer.registerShape("transparent",ea);mxUtils.extend(ka,mxHexagon);ka.prototype.size=30;ka.prototype.position=.5;ka.prototype.position2=.5;ka.prototype.base=20;ka.prototype.getLabelMargins=function(){return new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale)};ka.prototype.isRoundable=function(){return!0};ka.prototype.redrawPath=function(f,t,B,u,C){t=mxUtils.getValue(this.style,
-mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))));var F=u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position",this.position)))),I=u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2)))),ja=Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(f,[new mxPoint(0,0),new mxPoint(u,0),new mxPoint(u,C-B),new mxPoint(Math.min(u,
-F+ja),C-B),new mxPoint(I,C),new mxPoint(Math.max(0,F),C-B),new mxPoint(0,C-B)],this.isRounded,t,!0,[4])};mxCellRenderer.registerShape("callout",ka);mxUtils.extend(pa,mxActor);pa.prototype.size=.2;pa.prototype.fixedSize=20;pa.prototype.isRoundable=function(){return!0};pa.prototype.redrawPath=function(f,t,B,u,C){t="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,
-"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,0),new mxPoint(u-t,0),new mxPoint(u,C/2),new mxPoint(u-t,C),new mxPoint(0,C),new mxPoint(t,C/2)],this.isRounded,B,!0);f.end()};mxCellRenderer.registerShape("step",pa);mxUtils.extend(ba,mxHexagon);ba.prototype.size=.25;ba.prototype.fixedSize=20;ba.prototype.isRoundable=function(){return!0};ba.prototype.redrawPath=function(f,t,B,u,C){t="0"!=mxUtils.getValue(this.style,
-"fixedSize","0")?Math.max(0,Math.min(.5*u,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(t,0),new mxPoint(u-t,0),new mxPoint(u,.5*C),new mxPoint(u-t,C),new mxPoint(t,C),new mxPoint(0,.5*C)],this.isRounded,B,!0)};mxCellRenderer.registerShape("hexagon",ba);mxUtils.extend(l,mxRectangleShape);
-l.prototype.isHtmlAllowed=function(){return!1};l.prototype.paintForeground=function(f,t,B,u,C){var F=Math.min(u/5,C/5)+1;f.begin();f.moveTo(t+u/2,B+F);f.lineTo(t+u/2,B+C-F);f.moveTo(t+F,B+C/2);f.lineTo(t+u-F,B+C/2);f.end();f.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("plus",l);var qb=mxRhombus.prototype.paintVertexShape;mxRhombus.prototype.getLabelBounds=function(f){if(1==this.style["double"]){var t=(2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||
-0))*this.scale;return new mxRectangle(f.x+t,f.y+t,f.width-2*t,f.height-2*t)}return f};mxRhombus.prototype.paintVertexShape=function(f,t,B,u,C){qb.apply(this,arguments);if(!this.outline&&1==this.style["double"]){var F=2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);t+=F;B+=F;u-=2*F;C-=2*F;0<u&&0<C&&(f.setShadow(!1),qb.apply(this,[f,t,B,u,C]))}};mxUtils.extend(x,mxRectangleShape);x.prototype.isHtmlAllowed=function(){return!1};x.prototype.getLabelBounds=function(f){if(1==
-this.style["double"]){var t=(Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(f.x+t,f.y+t,f.width-2*t,f.height-2*t)}return f};x.prototype.paintForeground=function(f,t,B,u,C){if(null!=this.style){if(!this.outline&&1==this.style["double"]){var F=Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);t+=F;B+=F;u-=2*F;C-=2*F;0<u&&0<C&&mxRectangleShape.prototype.paintBackground.apply(this,arguments)}f.setDashed(!1);
-F=0;do{var I=mxCellRenderer.defaultShapes[this.style["symbol"+F]];if(null!=I){var ja=this.style["symbol"+F+"Align"],O=this.style["symbol"+F+"VerticalAlign"],va=this.style["symbol"+F+"Width"],oa=this.style["symbol"+F+"Height"],bb=this.style["symbol"+F+"Spacing"]||0,mb=this.style["symbol"+F+"VSpacing"]||bb,hb=this.style["symbol"+F+"ArcSpacing"];null!=hb&&(hb*=this.getArcSize(u+this.strokewidth,C+this.strokewidth),bb+=hb,mb+=hb);hb=t;var Ga=B;hb=ja==mxConstants.ALIGN_CENTER?hb+(u-va)/2:ja==mxConstants.ALIGN_RIGHT?
-hb+(u-va-bb):hb+bb;Ga=O==mxConstants.ALIGN_MIDDLE?Ga+(C-oa)/2:O==mxConstants.ALIGN_BOTTOM?Ga+(C-oa-mb):Ga+mb;f.save();ja=new I;ja.style=this.style;I.prototype.paintVertexShape.call(ja,f,hb,Ga,va,oa);f.restore()}F++}while(null!=I)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("ext",x);mxUtils.extend(J,mxCylinder);J.prototype.redrawPath=function(f,t,B,u,C,F){F?(f.moveTo(0,0),f.lineTo(u/2,C/2),f.lineTo(u,0),f.end()):(f.moveTo(0,0),f.lineTo(u,0),f.lineTo(u,
-C),f.lineTo(0,C),f.close())};mxCellRenderer.registerShape("message",J);mxUtils.extend(L,mxShape);L.prototype.paintBackground=function(f,t,B,u,C){f.translate(t,B);f.ellipse(u/4,0,u/2,C/4);f.fillAndStroke();f.begin();f.moveTo(u/2,C/4);f.lineTo(u/2,2*C/3);f.moveTo(u/2,C/3);f.lineTo(0,C/3);f.moveTo(u/2,C/3);f.lineTo(u,C/3);f.moveTo(u/2,2*C/3);f.lineTo(0,C);f.moveTo(u/2,2*C/3);f.lineTo(u,C);f.end();f.stroke()};mxCellRenderer.registerShape("umlActor",L);mxUtils.extend(T,mxShape);T.prototype.getLabelMargins=
-function(f){return new mxRectangle(f.width/6,0,0,0)};T.prototype.paintBackground=function(f,t,B,u,C){f.translate(t,B);f.begin();f.moveTo(0,C/4);f.lineTo(0,3*C/4);f.end();f.stroke();f.begin();f.moveTo(0,C/2);f.lineTo(u/6,C/2);f.end();f.stroke();f.ellipse(u/6,0,5*u/6,C);f.fillAndStroke()};mxCellRenderer.registerShape("umlBoundary",T);mxUtils.extend(Y,mxEllipse);Y.prototype.paintVertexShape=function(f,t,B,u,C){mxEllipse.prototype.paintVertexShape.apply(this,arguments);f.begin();f.moveTo(t+u/8,B+C);f.lineTo(t+
-7*u/8,B+C);f.end();f.stroke()};mxCellRenderer.registerShape("umlEntity",Y);mxUtils.extend(aa,mxShape);aa.prototype.paintVertexShape=function(f,t,B,u,C){f.translate(t,B);f.begin();f.moveTo(u,0);f.lineTo(0,C);f.moveTo(0,0);f.lineTo(u,C);f.end();f.stroke()};mxCellRenderer.registerShape("umlDestroy",aa);mxUtils.extend(S,mxShape);S.prototype.getLabelBounds=function(f){return new mxRectangle(f.x,f.y+f.height/8,f.width,7*f.height/8)};S.prototype.paintBackground=function(f,t,B,u,C){f.translate(t,B);f.begin();
-f.moveTo(3*u/8,C/8*1.1);f.lineTo(5*u/8,0);f.end();f.stroke();f.ellipse(0,C/8,u,7*C/8);f.fillAndStroke()};S.prototype.paintForeground=function(f,t,B,u,C){f.begin();f.moveTo(3*u/8,C/8*1.1);f.lineTo(5*u/8,C/4);f.end();f.stroke()};mxCellRenderer.registerShape("umlControl",S);mxUtils.extend(Z,mxRectangleShape);Z.prototype.size=40;Z.prototype.isHtmlAllowed=function(){return!1};Z.prototype.getLabelBounds=function(f){var t=Math.max(0,Math.min(f.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*
-this.scale));return new mxRectangle(f.x,f.y,f.width,t)};Z.prototype.paintBackground=function(f,t,B,u,C){var F=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),I=mxUtils.getValue(this.style,"participant");null==I||null==this.state?mxRectangleShape.prototype.paintBackground.call(this,f,t,B,u,F):(I=this.state.view.graph.cellRenderer.getShape(I),null!=I&&I!=Z&&(I=new I,I.apply(this.state),f.save(),I.paintVertexShape(f,t,B,u,F),f.restore()));F<C&&(f.setDashed("1"==mxUtils.getValue(this.style,
-"lifelineDashed","1")),f.begin(),f.moveTo(t+u/2,B+F),f.lineTo(t+u/2,B+C),f.end(),f.stroke())};Z.prototype.paintForeground=function(f,t,B,u,C){var F=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))));mxRectangleShape.prototype.paintForeground.call(this,f,t,B,u,Math.min(C,F))};mxCellRenderer.registerShape("umlLifeline",Z);mxUtils.extend(da,mxShape);da.prototype.width=60;da.prototype.height=30;da.prototype.corner=10;da.prototype.configurePointerEvents=function(f){var t=
+this.style||"0"==mxUtils.getValue(this.style,"comic","0")?null:this.createComicCanvas(f)};var Ra=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"))&&Ra.apply(this,arguments)};var kb=mxRectangleShape.prototype.paintBackground;mxRectangleShape.prototype.paintBackground=function(f,t,B,v,C){if(null==f.handJiggle||
+f.handJiggle.constructor!=fa)kb.apply(this,arguments);else{var F=!0;null!=this.style&&(F="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(F||null!=this.fill&&this.fill!=mxConstants.NONE||null!=this.stroke&&this.stroke!=mxConstants.NONE)F||null!=this.fill&&this.fill!=mxConstants.NONE||(f.pointerEvents=!1),f.begin(),this.isRounded?("1"==mxUtils.getValue(this.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?F=Math.min(v/2,Math.min(C/2,mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,
+mxConstants.LINE_ARCSIZE)/2)):(F=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,F=Math.min(v*F,C*F)),f.moveTo(t+F,B),f.lineTo(t+v-F,B),f.quadTo(t+v,B,t+v,B+F),f.lineTo(t+v,B+C-F),f.quadTo(t+v,B+C,t+v-F,B+C),f.lineTo(t+F,B+C),f.quadTo(t,B+C,t,B+C-F),f.lineTo(t,B+F),f.quadTo(t,B,t+F,B)):(f.moveTo(t,B),f.lineTo(t+v,B),f.lineTo(t+v,B+C),f.lineTo(t,B+C),f.lineTo(t,B)),f.close(),f.end(),f.fillAndStroke()}};mxUtils.extend(ha,mxRectangleShape);ha.prototype.size=
+.1;ha.prototype.fixedSize=!1;ha.prototype.isHtmlAllowed=function(){return!1};ha.prototype.getLabelBounds=function(f){if(mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,!0)==(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)){var t=f.width,B=f.height;f=new mxRectangle(f.x,f.y,t,B);var v=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),C=parseFloat(mxUtils.getValue(this.style,"size",this.size));v?C=Math.max(0,Math.min(t,
+C*this.scale)):(C=t*Math.max(0,Math.min(1,C)),this.isRounded&&(v=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,C=Math.max(C,Math.min(t*v,B*v))));f.x+=Math.round(C);f.width-=Math.round(2*C);return f}return f};ha.prototype.paintForeground=function(f,t,B,v,C){var F=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),I=parseFloat(mxUtils.getValue(this.style,"size",this.size));I=F?Math.max(0,Math.min(v,I)):v*Math.max(0,Math.min(1,I));this.isRounded&&
+(F=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,I=Math.max(I,Math.min(v*F,C*F)));I=Math.round(I);f.begin();f.moveTo(t+I,B);f.lineTo(t+I,B+C);f.moveTo(t+v-I,B);f.lineTo(t+v-I,B+C);f.end();f.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("process",ha);mxCellRenderer.registerShape("process2",ha);mxUtils.extend(ea,mxRectangleShape);ea.prototype.paintBackground=function(f,t,B,v,C){f.setFillColor(mxConstants.NONE);
+f.rect(t,B,v,C);f.fill()};ea.prototype.paintForeground=function(f,t,B,v,C){};mxCellRenderer.registerShape("transparent",ea);mxUtils.extend(ka,mxHexagon);ka.prototype.size=30;ka.prototype.position=.5;ka.prototype.position2=.5;ka.prototype.base=20;ka.prototype.getLabelMargins=function(){return new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale)};ka.prototype.isRoundable=function(){return!0};ka.prototype.redrawPath=function(f,t,B,v,C){t=mxUtils.getValue(this.style,
+mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))));var F=v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position",this.position)))),I=v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2)))),ja=Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(f,[new mxPoint(0,0),new mxPoint(v,0),new mxPoint(v,C-B),new mxPoint(Math.min(v,
+F+ja),C-B),new mxPoint(I,C),new mxPoint(Math.max(0,F),C-B),new mxPoint(0,C-B)],this.isRounded,t,!0,[4])};mxCellRenderer.registerShape("callout",ka);mxUtils.extend(pa,mxActor);pa.prototype.size=.2;pa.prototype.fixedSize=20;pa.prototype.isRoundable=function(){return!0};pa.prototype.redrawPath=function(f,t,B,v,C){t="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,
+"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,0),new mxPoint(v-t,0),new mxPoint(v,C/2),new mxPoint(v-t,C),new mxPoint(0,C),new mxPoint(t,C/2)],this.isRounded,B,!0);f.end()};mxCellRenderer.registerShape("step",pa);mxUtils.extend(ba,mxHexagon);ba.prototype.size=.25;ba.prototype.fixedSize=20;ba.prototype.isRoundable=function(){return!0};ba.prototype.redrawPath=function(f,t,B,v,C){t="0"!=mxUtils.getValue(this.style,
+"fixedSize","0")?Math.max(0,Math.min(.5*v,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(t,0),new mxPoint(v-t,0),new mxPoint(v,.5*C),new mxPoint(v-t,C),new mxPoint(t,C),new mxPoint(0,.5*C)],this.isRounded,B,!0)};mxCellRenderer.registerShape("hexagon",ba);mxUtils.extend(l,mxRectangleShape);
+l.prototype.isHtmlAllowed=function(){return!1};l.prototype.paintForeground=function(f,t,B,v,C){var F=Math.min(v/5,C/5)+1;f.begin();f.moveTo(t+v/2,B+F);f.lineTo(t+v/2,B+C-F);f.moveTo(t+F,B+C/2);f.lineTo(t+v-F,B+C/2);f.end();f.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("plus",l);var qb=mxRhombus.prototype.paintVertexShape;mxRhombus.prototype.getLabelBounds=function(f){if(1==this.style["double"]){var t=(2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||
+0))*this.scale;return new mxRectangle(f.x+t,f.y+t,f.width-2*t,f.height-2*t)}return f};mxRhombus.prototype.paintVertexShape=function(f,t,B,v,C){qb.apply(this,arguments);if(!this.outline&&1==this.style["double"]){var F=2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);t+=F;B+=F;v-=2*F;C-=2*F;0<v&&0<C&&(f.setShadow(!1),qb.apply(this,[f,t,B,v,C]))}};mxUtils.extend(x,mxRectangleShape);x.prototype.isHtmlAllowed=function(){return!1};x.prototype.getLabelBounds=function(f){if(1==
+this.style["double"]){var t=(Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(f.x+t,f.y+t,f.width-2*t,f.height-2*t)}return f};x.prototype.paintForeground=function(f,t,B,v,C){if(null!=this.style){if(!this.outline&&1==this.style["double"]){var F=Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);t+=F;B+=F;v-=2*F;C-=2*F;0<v&&0<C&&mxRectangleShape.prototype.paintBackground.apply(this,arguments)}f.setDashed(!1);
+F=0;do{var I=mxCellRenderer.defaultShapes[this.style["symbol"+F]];if(null!=I){var ja=this.style["symbol"+F+"Align"],O=this.style["symbol"+F+"VerticalAlign"],va=this.style["symbol"+F+"Width"],oa=this.style["symbol"+F+"Height"],bb=this.style["symbol"+F+"Spacing"]||0,mb=this.style["symbol"+F+"VSpacing"]||bb,hb=this.style["symbol"+F+"ArcSpacing"];null!=hb&&(hb*=this.getArcSize(v+this.strokewidth,C+this.strokewidth),bb+=hb,mb+=hb);hb=t;var Ga=B;hb=ja==mxConstants.ALIGN_CENTER?hb+(v-va)/2:ja==mxConstants.ALIGN_RIGHT?
+hb+(v-va-bb):hb+bb;Ga=O==mxConstants.ALIGN_MIDDLE?Ga+(C-oa)/2:O==mxConstants.ALIGN_BOTTOM?Ga+(C-oa-mb):Ga+mb;f.save();ja=new I;ja.style=this.style;I.prototype.paintVertexShape.call(ja,f,hb,Ga,va,oa);f.restore()}F++}while(null!=I)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("ext",x);mxUtils.extend(J,mxCylinder);J.prototype.redrawPath=function(f,t,B,v,C,F){F?(f.moveTo(0,0),f.lineTo(v/2,C/2),f.lineTo(v,0),f.end()):(f.moveTo(0,0),f.lineTo(v,0),f.lineTo(v,
+C),f.lineTo(0,C),f.close())};mxCellRenderer.registerShape("message",J);mxUtils.extend(L,mxShape);L.prototype.paintBackground=function(f,t,B,v,C){f.translate(t,B);f.ellipse(v/4,0,v/2,C/4);f.fillAndStroke();f.begin();f.moveTo(v/2,C/4);f.lineTo(v/2,2*C/3);f.moveTo(v/2,C/3);f.lineTo(0,C/3);f.moveTo(v/2,C/3);f.lineTo(v,C/3);f.moveTo(v/2,2*C/3);f.lineTo(0,C);f.moveTo(v/2,2*C/3);f.lineTo(v,C);f.end();f.stroke()};mxCellRenderer.registerShape("umlActor",L);mxUtils.extend(T,mxShape);T.prototype.getLabelMargins=
+function(f){return new mxRectangle(f.width/6,0,0,0)};T.prototype.paintBackground=function(f,t,B,v,C){f.translate(t,B);f.begin();f.moveTo(0,C/4);f.lineTo(0,3*C/4);f.end();f.stroke();f.begin();f.moveTo(0,C/2);f.lineTo(v/6,C/2);f.end();f.stroke();f.ellipse(v/6,0,5*v/6,C);f.fillAndStroke()};mxCellRenderer.registerShape("umlBoundary",T);mxUtils.extend(Y,mxEllipse);Y.prototype.paintVertexShape=function(f,t,B,v,C){mxEllipse.prototype.paintVertexShape.apply(this,arguments);f.begin();f.moveTo(t+v/8,B+C);f.lineTo(t+
+7*v/8,B+C);f.end();f.stroke()};mxCellRenderer.registerShape("umlEntity",Y);mxUtils.extend(aa,mxShape);aa.prototype.paintVertexShape=function(f,t,B,v,C){f.translate(t,B);f.begin();f.moveTo(v,0);f.lineTo(0,C);f.moveTo(0,0);f.lineTo(v,C);f.end();f.stroke()};mxCellRenderer.registerShape("umlDestroy",aa);mxUtils.extend(S,mxShape);S.prototype.getLabelBounds=function(f){return new mxRectangle(f.x,f.y+f.height/8,f.width,7*f.height/8)};S.prototype.paintBackground=function(f,t,B,v,C){f.translate(t,B);f.begin();
+f.moveTo(3*v/8,C/8*1.1);f.lineTo(5*v/8,0);f.end();f.stroke();f.ellipse(0,C/8,v,7*C/8);f.fillAndStroke()};S.prototype.paintForeground=function(f,t,B,v,C){f.begin();f.moveTo(3*v/8,C/8*1.1);f.lineTo(5*v/8,C/4);f.end();f.stroke()};mxCellRenderer.registerShape("umlControl",S);mxUtils.extend(Z,mxRectangleShape);Z.prototype.size=40;Z.prototype.isHtmlAllowed=function(){return!1};Z.prototype.getLabelBounds=function(f){var t=Math.max(0,Math.min(f.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*
+this.scale));return new mxRectangle(f.x,f.y,f.width,t)};Z.prototype.paintBackground=function(f,t,B,v,C){var F=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),I=mxUtils.getValue(this.style,"participant");null==I||null==this.state?mxRectangleShape.prototype.paintBackground.call(this,f,t,B,v,F):(I=this.state.view.graph.cellRenderer.getShape(I),null!=I&&I!=Z&&(I=new I,I.apply(this.state),f.save(),I.paintVertexShape(f,t,B,v,F),f.restore()));F<C&&(f.setDashed("1"==mxUtils.getValue(this.style,
+"lifelineDashed","1")),f.begin(),f.moveTo(t+v/2,B+F),f.lineTo(t+v/2,B+C),f.end(),f.stroke())};Z.prototype.paintForeground=function(f,t,B,v,C){var F=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))));mxRectangleShape.prototype.paintForeground.call(this,f,t,B,v,Math.min(C,F))};mxCellRenderer.registerShape("umlLifeline",Z);mxUtils.extend(da,mxShape);da.prototype.width=60;da.prototype.height=30;da.prototype.corner=10;da.prototype.configurePointerEvents=function(f){var t=
mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);null==this.style||null!=t&&t!=mxConstants.NONE&&0!=this.opacity&&0!=this.fillOpacity||"0"!=mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||(f.pointerEvents=!1)};da.prototype.getLabelMargins=function(f){return new mxRectangle(0,0,f.width-parseFloat(mxUtils.getValue(this.style,"width",this.width)*this.scale),f.height-parseFloat(mxUtils.getValue(this.style,"height",this.height)*this.scale))};da.prototype.paintBackground=
-function(f,t,B,u,C){var F=this.corner,I=Math.min(u,Math.max(F,parseFloat(mxUtils.getValue(this.style,"width",this.width)))),ja=Math.min(C,Math.max(1.5*F,parseFloat(mxUtils.getValue(this.style,"height",this.height)))),O=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);O!=mxConstants.NONE&&(f.setFillColor(O),f.rect(t,B,u,C),f.fill());null!=this.fill&&this.fill!=mxConstants.NONE&&this.gradient&&this.gradient!=mxConstants.NONE?(this.getGradientBounds(f,t,B,u,C),f.setGradient(this.fill,
-this.gradient,t,B,u,C,this.gradientDirection)):f.setFillColor(this.fill);f.pointerEvents=!0;f.begin();f.moveTo(t,B);f.lineTo(t+I,B);f.lineTo(t+I,B+Math.max(0,ja-1.5*F));f.lineTo(t+Math.max(0,I-F),B+ja);f.lineTo(t,B+ja);f.close();f.fillAndStroke();this.configurePointerEvents(f);f.begin();f.moveTo(t+I,B);f.lineTo(t+u,B);f.lineTo(t+u,B+C);f.lineTo(t,B+C);f.lineTo(t,B+ja);f.stroke()};mxCellRenderer.registerShape("umlFrame",da);mxPerimeter.CenterPerimeter=function(f,t,B,u){return new mxPoint(f.getCenterX(),
-f.getCenterY())};mxStyleRegistry.putValue("centerPerimeter",mxPerimeter.CenterPerimeter);mxPerimeter.LifelinePerimeter=function(f,t,B,u){u=Z.prototype.size;null!=t&&(u=mxUtils.getValue(t.style,"size",u)*t.view.scale);t=parseFloat(t.style[mxConstants.STYLE_STROKEWIDTH]||1)*t.view.scale/2-1;B.x<f.getCenterX()&&(t=-1*(t+1));return new mxPoint(f.getCenterX()+t,Math.min(f.y+f.height,Math.max(f.y+u,B.y)))};mxStyleRegistry.putValue("lifelinePerimeter",mxPerimeter.LifelinePerimeter);mxPerimeter.OrthogonalPerimeter=
-function(f,t,B,u){u=!0;return mxPerimeter.RectanglePerimeter.apply(this,arguments)};mxStyleRegistry.putValue("orthogonalPerimeter",mxPerimeter.OrthogonalPerimeter);mxPerimeter.BackbonePerimeter=function(f,t,B,u){u=parseFloat(t.style[mxConstants.STYLE_STROKEWIDTH]||1)*t.view.scale/2-1;null!=t.style.backboneSize&&(u+=parseFloat(t.style.backboneSize)*t.view.scale/2-1);if("south"==t.style[mxConstants.STYLE_DIRECTION]||"north"==t.style[mxConstants.STYLE_DIRECTION])return B.x<f.getCenterX()&&(u=-1*(u+1)),
-new mxPoint(f.getCenterX()+u,Math.min(f.y+f.height,Math.max(f.y,B.y)));B.y<f.getCenterY()&&(u=-1*(u+1));return new mxPoint(Math.min(f.x+f.width,Math.max(f.x,B.x)),f.getCenterY()+u)};mxStyleRegistry.putValue("backbonePerimeter",mxPerimeter.BackbonePerimeter);mxPerimeter.CalloutPerimeter=function(f,t,B,u){return mxPerimeter.RectanglePerimeter(mxUtils.getDirectedBounds(f,new mxRectangle(0,0,0,Math.max(0,Math.min(f.height,parseFloat(mxUtils.getValue(t.style,"size",ka.prototype.size))*t.view.scale))),
-t.style),t,B,u)};mxStyleRegistry.putValue("calloutPerimeter",mxPerimeter.CalloutPerimeter);mxPerimeter.ParallelogramPerimeter=function(f,t,B,u){var C="0"!=mxUtils.getValue(t.style,"fixedSize","0"),F=C?P.prototype.fixedSize:P.prototype.size;null!=t&&(F=mxUtils.getValue(t.style,"size",F));C&&(F*=t.view.scale);var I=f.x,ja=f.y,O=f.width,va=f.height;t=null!=t?mxUtils.getValue(t.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;t==mxConstants.DIRECTION_NORTH||t==
-mxConstants.DIRECTION_SOUTH?(C=C?Math.max(0,Math.min(va,F)):va*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I,ja),new mxPoint(I+O,ja+C),new mxPoint(I+O,ja+va),new mxPoint(I,ja+va-C),new mxPoint(I,ja)]):(C=C?Math.max(0,Math.min(.5*O,F)):O*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I+C,ja),new mxPoint(I+O,ja),new mxPoint(I+O-C,ja+va),new mxPoint(I,ja+va),new mxPoint(I+C,ja)]);va=f.getCenterX();f=f.getCenterY();f=new mxPoint(va,f);u&&(B.x<I||B.x>I+O?f.y=B.y:f.x=B.x);return mxUtils.getPerimeterPoint(ja,f,
-B)};mxStyleRegistry.putValue("parallelogramPerimeter",mxPerimeter.ParallelogramPerimeter);mxPerimeter.TrapezoidPerimeter=function(f,t,B,u){var C="0"!=mxUtils.getValue(t.style,"fixedSize","0"),F=C?W.prototype.fixedSize:W.prototype.size;null!=t&&(F=mxUtils.getValue(t.style,"size",F));C&&(F*=t.view.scale);var I=f.x,ja=f.y,O=f.width,va=f.height;t=null!=t?mxUtils.getValue(t.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;t==mxConstants.DIRECTION_EAST?(C=C?Math.max(0,
+function(f,t,B,v,C){var F=this.corner,I=Math.min(v,Math.max(F,parseFloat(mxUtils.getValue(this.style,"width",this.width)))),ja=Math.min(C,Math.max(1.5*F,parseFloat(mxUtils.getValue(this.style,"height",this.height)))),O=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);O!=mxConstants.NONE&&(f.setFillColor(O),f.rect(t,B,v,C),f.fill());null!=this.fill&&this.fill!=mxConstants.NONE&&this.gradient&&this.gradient!=mxConstants.NONE?(this.getGradientBounds(f,t,B,v,C),f.setGradient(this.fill,
+this.gradient,t,B,v,C,this.gradientDirection)):f.setFillColor(this.fill);f.pointerEvents=!0;f.begin();f.moveTo(t,B);f.lineTo(t+I,B);f.lineTo(t+I,B+Math.max(0,ja-1.5*F));f.lineTo(t+Math.max(0,I-F),B+ja);f.lineTo(t,B+ja);f.close();f.fillAndStroke();this.configurePointerEvents(f);f.begin();f.moveTo(t+I,B);f.lineTo(t+v,B);f.lineTo(t+v,B+C);f.lineTo(t,B+C);f.lineTo(t,B+ja);f.stroke()};mxCellRenderer.registerShape("umlFrame",da);mxPerimeter.CenterPerimeter=function(f,t,B,v){return new mxPoint(f.getCenterX(),
+f.getCenterY())};mxStyleRegistry.putValue("centerPerimeter",mxPerimeter.CenterPerimeter);mxPerimeter.LifelinePerimeter=function(f,t,B,v){v=Z.prototype.size;null!=t&&(v=mxUtils.getValue(t.style,"size",v)*t.view.scale);t=parseFloat(t.style[mxConstants.STYLE_STROKEWIDTH]||1)*t.view.scale/2-1;B.x<f.getCenterX()&&(t=-1*(t+1));return new mxPoint(f.getCenterX()+t,Math.min(f.y+f.height,Math.max(f.y+v,B.y)))};mxStyleRegistry.putValue("lifelinePerimeter",mxPerimeter.LifelinePerimeter);mxPerimeter.OrthogonalPerimeter=
+function(f,t,B,v){v=!0;return mxPerimeter.RectanglePerimeter.apply(this,arguments)};mxStyleRegistry.putValue("orthogonalPerimeter",mxPerimeter.OrthogonalPerimeter);mxPerimeter.BackbonePerimeter=function(f,t,B,v){v=parseFloat(t.style[mxConstants.STYLE_STROKEWIDTH]||1)*t.view.scale/2-1;null!=t.style.backboneSize&&(v+=parseFloat(t.style.backboneSize)*t.view.scale/2-1);if("south"==t.style[mxConstants.STYLE_DIRECTION]||"north"==t.style[mxConstants.STYLE_DIRECTION])return B.x<f.getCenterX()&&(v=-1*(v+1)),
+new mxPoint(f.getCenterX()+v,Math.min(f.y+f.height,Math.max(f.y,B.y)));B.y<f.getCenterY()&&(v=-1*(v+1));return new mxPoint(Math.min(f.x+f.width,Math.max(f.x,B.x)),f.getCenterY()+v)};mxStyleRegistry.putValue("backbonePerimeter",mxPerimeter.BackbonePerimeter);mxPerimeter.CalloutPerimeter=function(f,t,B,v){return mxPerimeter.RectanglePerimeter(mxUtils.getDirectedBounds(f,new mxRectangle(0,0,0,Math.max(0,Math.min(f.height,parseFloat(mxUtils.getValue(t.style,"size",ka.prototype.size))*t.view.scale))),
+t.style),t,B,v)};mxStyleRegistry.putValue("calloutPerimeter",mxPerimeter.CalloutPerimeter);mxPerimeter.ParallelogramPerimeter=function(f,t,B,v){var C="0"!=mxUtils.getValue(t.style,"fixedSize","0"),F=C?P.prototype.fixedSize:P.prototype.size;null!=t&&(F=mxUtils.getValue(t.style,"size",F));C&&(F*=t.view.scale);var I=f.x,ja=f.y,O=f.width,va=f.height;t=null!=t?mxUtils.getValue(t.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;t==mxConstants.DIRECTION_NORTH||t==
+mxConstants.DIRECTION_SOUTH?(C=C?Math.max(0,Math.min(va,F)):va*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I,ja),new mxPoint(I+O,ja+C),new mxPoint(I+O,ja+va),new mxPoint(I,ja+va-C),new mxPoint(I,ja)]):(C=C?Math.max(0,Math.min(.5*O,F)):O*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I+C,ja),new mxPoint(I+O,ja),new mxPoint(I+O-C,ja+va),new mxPoint(I,ja+va),new mxPoint(I+C,ja)]);va=f.getCenterX();f=f.getCenterY();f=new mxPoint(va,f);v&&(B.x<I||B.x>I+O?f.y=B.y:f.x=B.x);return mxUtils.getPerimeterPoint(ja,f,
+B)};mxStyleRegistry.putValue("parallelogramPerimeter",mxPerimeter.ParallelogramPerimeter);mxPerimeter.TrapezoidPerimeter=function(f,t,B,v){var C="0"!=mxUtils.getValue(t.style,"fixedSize","0"),F=C?W.prototype.fixedSize:W.prototype.size;null!=t&&(F=mxUtils.getValue(t.style,"size",F));C&&(F*=t.view.scale);var I=f.x,ja=f.y,O=f.width,va=f.height;t=null!=t?mxUtils.getValue(t.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;t==mxConstants.DIRECTION_EAST?(C=C?Math.max(0,
Math.min(.5*O,F)):O*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I+C,ja),new mxPoint(I+O-C,ja),new mxPoint(I+O,ja+va),new mxPoint(I,ja+va),new mxPoint(I+C,ja)]):t==mxConstants.DIRECTION_WEST?(C=C?Math.max(0,Math.min(O,F)):O*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I,ja),new mxPoint(I+O,ja),new mxPoint(I+O-C,ja+va),new mxPoint(I+C,ja+va),new mxPoint(I,ja)]):t==mxConstants.DIRECTION_NORTH?(C=C?Math.max(0,Math.min(va,F)):va*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I,ja+C),new mxPoint(I+O,ja),new mxPoint(I+
-O,ja+va),new mxPoint(I,ja+va-C),new mxPoint(I,ja+C)]):(C=C?Math.max(0,Math.min(va,F)):va*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I,ja),new mxPoint(I+O,ja+C),new mxPoint(I+O,ja+va-C),new mxPoint(I,ja+va),new mxPoint(I,ja)]);va=f.getCenterX();f=f.getCenterY();f=new mxPoint(va,f);u&&(B.x<I||B.x>I+O?f.y=B.y:f.x=B.x);return mxUtils.getPerimeterPoint(ja,f,B)};mxStyleRegistry.putValue("trapezoidPerimeter",mxPerimeter.TrapezoidPerimeter);mxPerimeter.StepPerimeter=function(f,t,B,u){var C="0"!=mxUtils.getValue(t.style,
+O,ja+va),new mxPoint(I,ja+va-C),new mxPoint(I,ja+C)]):(C=C?Math.max(0,Math.min(va,F)):va*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I,ja),new mxPoint(I+O,ja+C),new mxPoint(I+O,ja+va-C),new mxPoint(I,ja+va),new mxPoint(I,ja)]);va=f.getCenterX();f=f.getCenterY();f=new mxPoint(va,f);v&&(B.x<I||B.x>I+O?f.y=B.y:f.x=B.x);return mxUtils.getPerimeterPoint(ja,f,B)};mxStyleRegistry.putValue("trapezoidPerimeter",mxPerimeter.TrapezoidPerimeter);mxPerimeter.StepPerimeter=function(f,t,B,v){var C="0"!=mxUtils.getValue(t.style,
"fixedSize","0"),F=C?pa.prototype.fixedSize:pa.prototype.size;null!=t&&(F=mxUtils.getValue(t.style,"size",F));C&&(F*=t.view.scale);var I=f.x,ja=f.y,O=f.width,va=f.height,oa=f.getCenterX();f=f.getCenterY();t=null!=t?mxUtils.getValue(t.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;t==mxConstants.DIRECTION_EAST?(C=C?Math.max(0,Math.min(O,F)):O*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I,ja),new mxPoint(I+O-C,ja),new mxPoint(I+O,f),new mxPoint(I+O-C,ja+va),new mxPoint(I,
ja+va),new mxPoint(I+C,f),new mxPoint(I,ja)]):t==mxConstants.DIRECTION_WEST?(C=C?Math.max(0,Math.min(O,F)):O*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I+C,ja),new mxPoint(I+O,ja),new mxPoint(I+O-C,f),new mxPoint(I+O,ja+va),new mxPoint(I+C,ja+va),new mxPoint(I,f),new mxPoint(I+C,ja)]):t==mxConstants.DIRECTION_NORTH?(C=C?Math.max(0,Math.min(va,F)):va*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I,ja+C),new mxPoint(oa,ja),new mxPoint(I+O,ja+C),new mxPoint(I+O,ja+va),new mxPoint(oa,ja+va-C),new mxPoint(I,
-ja+va),new mxPoint(I,ja+C)]):(C=C?Math.max(0,Math.min(va,F)):va*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I,ja),new mxPoint(oa,ja+C),new mxPoint(I+O,ja),new mxPoint(I+O,ja+va-C),new mxPoint(oa,ja+va),new mxPoint(I,ja+va-C),new mxPoint(I,ja)]);oa=new mxPoint(oa,f);u&&(B.x<I||B.x>I+O?oa.y=B.y:oa.x=B.x);return mxUtils.getPerimeterPoint(ja,oa,B)};mxStyleRegistry.putValue("stepPerimeter",mxPerimeter.StepPerimeter);mxPerimeter.HexagonPerimeter2=function(f,t,B,u){var C="0"!=mxUtils.getValue(t.style,"fixedSize",
+ja+va),new mxPoint(I,ja+C)]):(C=C?Math.max(0,Math.min(va,F)):va*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I,ja),new mxPoint(oa,ja+C),new mxPoint(I+O,ja),new mxPoint(I+O,ja+va-C),new mxPoint(oa,ja+va),new mxPoint(I,ja+va-C),new mxPoint(I,ja)]);oa=new mxPoint(oa,f);v&&(B.x<I||B.x>I+O?oa.y=B.y:oa.x=B.x);return mxUtils.getPerimeterPoint(ja,oa,B)};mxStyleRegistry.putValue("stepPerimeter",mxPerimeter.StepPerimeter);mxPerimeter.HexagonPerimeter2=function(f,t,B,v){var C="0"!=mxUtils.getValue(t.style,"fixedSize",
"0"),F=C?ba.prototype.fixedSize:ba.prototype.size;null!=t&&(F=mxUtils.getValue(t.style,"size",F));C&&(F*=t.view.scale);var I=f.x,ja=f.y,O=f.width,va=f.height,oa=f.getCenterX();f=f.getCenterY();t=null!=t?mxUtils.getValue(t.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;t==mxConstants.DIRECTION_NORTH||t==mxConstants.DIRECTION_SOUTH?(C=C?Math.max(0,Math.min(va,F)):va*Math.max(0,Math.min(1,F)),ja=[new mxPoint(oa,ja),new mxPoint(I+O,ja+C),new mxPoint(I+O,ja+va-
-C),new mxPoint(oa,ja+va),new mxPoint(I,ja+va-C),new mxPoint(I,ja+C),new mxPoint(oa,ja)]):(C=C?Math.max(0,Math.min(O,F)):O*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I+C,ja),new mxPoint(I+O-C,ja),new mxPoint(I+O,f),new mxPoint(I+O-C,ja+va),new mxPoint(I+C,ja+va),new mxPoint(I,f),new mxPoint(I+C,ja)]);oa=new mxPoint(oa,f);u&&(B.x<I||B.x>I+O?oa.y=B.y:oa.x=B.x);return mxUtils.getPerimeterPoint(ja,oa,B)};mxStyleRegistry.putValue("hexagonPerimeter2",mxPerimeter.HexagonPerimeter2);mxUtils.extend(ma,mxShape);
-ma.prototype.size=10;ma.prototype.paintBackground=function(f,t,B,u,C){var F=parseFloat(mxUtils.getValue(this.style,"size",this.size));f.translate(t,B);f.ellipse((u-F)/2,0,F,F);f.fillAndStroke();f.begin();f.moveTo(u/2,F);f.lineTo(u/2,C);f.end();f.stroke()};mxCellRenderer.registerShape("lollipop",ma);mxUtils.extend(na,mxShape);na.prototype.size=10;na.prototype.inset=2;na.prototype.paintBackground=function(f,t,B,u,C){var F=parseFloat(mxUtils.getValue(this.style,"size",this.size)),I=parseFloat(mxUtils.getValue(this.style,
-"inset",this.inset))+this.strokewidth;f.translate(t,B);f.begin();f.moveTo(u/2,F+I);f.lineTo(u/2,C);f.end();f.stroke();f.begin();f.moveTo((u-F)/2-I,F/2);f.quadTo((u-F)/2-I,F+I,u/2,F+I);f.quadTo((u+F)/2+I,F+I,(u+F)/2+I,F/2);f.end();f.stroke()};mxCellRenderer.registerShape("requires",na);mxUtils.extend(ra,mxShape);ra.prototype.paintBackground=function(f,t,B,u,C){f.translate(t,B);f.begin();f.moveTo(0,0);f.quadTo(u,0,u,C/2);f.quadTo(u,C,0,C);f.end();f.stroke()};mxCellRenderer.registerShape("requiredInterface",
-ra);mxUtils.extend(ta,mxShape);ta.prototype.inset=2;ta.prototype.paintBackground=function(f,t,B,u,C){var F=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;f.translate(t,B);f.ellipse(0,F,u-2*F,C-2*F);f.fillAndStroke();f.begin();f.moveTo(u/2,0);f.quadTo(u,0,u,C/2);f.quadTo(u,C,u/2,C);f.end();f.stroke()};mxCellRenderer.registerShape("providedRequiredInterface",ta);mxUtils.extend(Aa,mxCylinder);Aa.prototype.jettyWidth=20;Aa.prototype.jettyHeight=10;Aa.prototype.redrawPath=
-function(f,t,B,u,C,F){var I=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));t=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));B=I/2;I=B+I/2;var ja=Math.min(t,C-t),O=Math.min(ja+2*t,C-t);F?(f.moveTo(B,ja),f.lineTo(I,ja),f.lineTo(I,ja+t),f.lineTo(B,ja+t),f.moveTo(B,O),f.lineTo(I,O),f.lineTo(I,O+t),f.lineTo(B,O+t)):(f.moveTo(B,0),f.lineTo(u,0),f.lineTo(u,C),f.lineTo(B,C),f.lineTo(B,O+t),f.lineTo(0,O+t),f.lineTo(0,O),f.lineTo(B,O),f.lineTo(B,ja+t),f.lineTo(0,
-ja+t),f.lineTo(0,ja),f.lineTo(B,ja),f.close());f.end()};mxCellRenderer.registerShape("module",Aa);mxUtils.extend(Ca,mxCylinder);Ca.prototype.jettyWidth=32;Ca.prototype.jettyHeight=12;Ca.prototype.redrawPath=function(f,t,B,u,C,F){var I=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));t=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));B=I/2;I=B+I/2;var ja=.3*C-t/2,O=.7*C-t/2;F?(f.moveTo(B,ja),f.lineTo(I,ja),f.lineTo(I,ja+t),f.lineTo(B,ja+t),f.moveTo(B,O),
-f.lineTo(I,O),f.lineTo(I,O+t),f.lineTo(B,O+t)):(f.moveTo(B,0),f.lineTo(u,0),f.lineTo(u,C),f.lineTo(B,C),f.lineTo(B,O+t),f.lineTo(0,O+t),f.lineTo(0,O),f.lineTo(B,O),f.lineTo(B,ja+t),f.lineTo(0,ja+t),f.lineTo(0,ja),f.lineTo(B,ja),f.close());f.end()};mxCellRenderer.registerShape("component",Ca);mxUtils.extend(xa,mxRectangleShape);xa.prototype.paintForeground=function(f,t,B,u,C){var F=u/2,I=C/2,ja=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;f.begin();this.addPoints(f,
-[new mxPoint(t+F,B),new mxPoint(t+u,B+I),new mxPoint(t+F,B+C),new mxPoint(t,B+I)],this.isRounded,ja,!0);f.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",xa);mxUtils.extend(Ea,mxDoubleEllipse);Ea.prototype.outerStroke=!0;Ea.prototype.paintVertexShape=function(f,t,B,u,C){var F=Math.min(4,Math.min(u/5,C/5));0<u&&0<C&&(f.ellipse(t+F,B+F,u-2*F,C-2*F),f.fillAndStroke());f.setShadow(!1);this.outerStroke&&(f.ellipse(t,B,u,C),f.stroke())};
+C),new mxPoint(oa,ja+va),new mxPoint(I,ja+va-C),new mxPoint(I,ja+C),new mxPoint(oa,ja)]):(C=C?Math.max(0,Math.min(O,F)):O*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I+C,ja),new mxPoint(I+O-C,ja),new mxPoint(I+O,f),new mxPoint(I+O-C,ja+va),new mxPoint(I+C,ja+va),new mxPoint(I,f),new mxPoint(I+C,ja)]);oa=new mxPoint(oa,f);v&&(B.x<I||B.x>I+O?oa.y=B.y:oa.x=B.x);return mxUtils.getPerimeterPoint(ja,oa,B)};mxStyleRegistry.putValue("hexagonPerimeter2",mxPerimeter.HexagonPerimeter2);mxUtils.extend(ma,mxShape);
+ma.prototype.size=10;ma.prototype.paintBackground=function(f,t,B,v,C){var F=parseFloat(mxUtils.getValue(this.style,"size",this.size));f.translate(t,B);f.ellipse((v-F)/2,0,F,F);f.fillAndStroke();f.begin();f.moveTo(v/2,F);f.lineTo(v/2,C);f.end();f.stroke()};mxCellRenderer.registerShape("lollipop",ma);mxUtils.extend(na,mxShape);na.prototype.size=10;na.prototype.inset=2;na.prototype.paintBackground=function(f,t,B,v,C){var F=parseFloat(mxUtils.getValue(this.style,"size",this.size)),I=parseFloat(mxUtils.getValue(this.style,
+"inset",this.inset))+this.strokewidth;f.translate(t,B);f.begin();f.moveTo(v/2,F+I);f.lineTo(v/2,C);f.end();f.stroke();f.begin();f.moveTo((v-F)/2-I,F/2);f.quadTo((v-F)/2-I,F+I,v/2,F+I);f.quadTo((v+F)/2+I,F+I,(v+F)/2+I,F/2);f.end();f.stroke()};mxCellRenderer.registerShape("requires",na);mxUtils.extend(ra,mxShape);ra.prototype.paintBackground=function(f,t,B,v,C){f.translate(t,B);f.begin();f.moveTo(0,0);f.quadTo(v,0,v,C/2);f.quadTo(v,C,0,C);f.end();f.stroke()};mxCellRenderer.registerShape("requiredInterface",
+ra);mxUtils.extend(ta,mxShape);ta.prototype.inset=2;ta.prototype.paintBackground=function(f,t,B,v,C){var F=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;f.translate(t,B);f.ellipse(0,F,v-2*F,C-2*F);f.fillAndStroke();f.begin();f.moveTo(v/2,0);f.quadTo(v,0,v,C/2);f.quadTo(v,C,v/2,C);f.end();f.stroke()};mxCellRenderer.registerShape("providedRequiredInterface",ta);mxUtils.extend(Aa,mxCylinder);Aa.prototype.jettyWidth=20;Aa.prototype.jettyHeight=10;Aa.prototype.redrawPath=
+function(f,t,B,v,C,F){var I=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));t=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));B=I/2;I=B+I/2;var ja=Math.min(t,C-t),O=Math.min(ja+2*t,C-t);F?(f.moveTo(B,ja),f.lineTo(I,ja),f.lineTo(I,ja+t),f.lineTo(B,ja+t),f.moveTo(B,O),f.lineTo(I,O),f.lineTo(I,O+t),f.lineTo(B,O+t)):(f.moveTo(B,0),f.lineTo(v,0),f.lineTo(v,C),f.lineTo(B,C),f.lineTo(B,O+t),f.lineTo(0,O+t),f.lineTo(0,O),f.lineTo(B,O),f.lineTo(B,ja+t),f.lineTo(0,
+ja+t),f.lineTo(0,ja),f.lineTo(B,ja),f.close());f.end()};mxCellRenderer.registerShape("module",Aa);mxUtils.extend(Ca,mxCylinder);Ca.prototype.jettyWidth=32;Ca.prototype.jettyHeight=12;Ca.prototype.redrawPath=function(f,t,B,v,C,F){var I=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));t=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));B=I/2;I=B+I/2;var ja=.3*C-t/2,O=.7*C-t/2;F?(f.moveTo(B,ja),f.lineTo(I,ja),f.lineTo(I,ja+t),f.lineTo(B,ja+t),f.moveTo(B,O),
+f.lineTo(I,O),f.lineTo(I,O+t),f.lineTo(B,O+t)):(f.moveTo(B,0),f.lineTo(v,0),f.lineTo(v,C),f.lineTo(B,C),f.lineTo(B,O+t),f.lineTo(0,O+t),f.lineTo(0,O),f.lineTo(B,O),f.lineTo(B,ja+t),f.lineTo(0,ja+t),f.lineTo(0,ja),f.lineTo(B,ja),f.close());f.end()};mxCellRenderer.registerShape("component",Ca);mxUtils.extend(xa,mxRectangleShape);xa.prototype.paintForeground=function(f,t,B,v,C){var F=v/2,I=C/2,ja=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;f.begin();this.addPoints(f,
+[new mxPoint(t+F,B),new mxPoint(t+v,B+I),new mxPoint(t+F,B+C),new mxPoint(t,B+I)],this.isRounded,ja,!0);f.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",xa);mxUtils.extend(Ea,mxDoubleEllipse);Ea.prototype.outerStroke=!0;Ea.prototype.paintVertexShape=function(f,t,B,v,C){var F=Math.min(4,Math.min(v/5,C/5));0<v&&0<C&&(f.ellipse(t+F,B+F,v-2*F,C-2*F),f.fillAndStroke());f.setShadow(!1);this.outerStroke&&(f.ellipse(t,B,v,C),f.stroke())};
mxCellRenderer.registerShape("endState",Ea);mxUtils.extend(Ua,Ea);Ua.prototype.outerStroke=!1;mxCellRenderer.registerShape("startState",Ua);mxUtils.extend(Da,mxArrowConnector);Da.prototype.defaultWidth=4;Da.prototype.isOpenEnded=function(){return!0};Da.prototype.getEdgeWidth=function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,this.strokewidth-1)};Da.prototype.isArrowRounded=function(){return this.isRounded};mxCellRenderer.registerShape("link",Da);mxUtils.extend(Ha,
mxArrowConnector);Ha.prototype.defaultWidth=10;Ha.prototype.defaultArrowWidth=20;Ha.prototype.getStartArrowWidth=function(){return this.getEdgeWidth()+mxUtils.getNumber(this.style,"startWidth",this.defaultArrowWidth)};Ha.prototype.getEndArrowWidth=function(){return this.getEdgeWidth()+mxUtils.getNumber(this.style,"endWidth",this.defaultArrowWidth)};Ha.prototype.getEdgeWidth=function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,this.strokewidth-1)};mxCellRenderer.registerShape("flexArrow",
-Ha);mxUtils.extend($a,mxActor);$a.prototype.size=30;$a.prototype.isRoundable=function(){return!0};$a.prototype.redrawPath=function(f,t,B,u,C){t=Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size)));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,C),new mxPoint(0,t),new mxPoint(u,0),new mxPoint(u,C)],this.isRounded,B,!0);f.end()};mxCellRenderer.registerShape("manualInput",$a);mxUtils.extend(Ka,mxRectangleShape);Ka.prototype.dx=
-20;Ka.prototype.dy=20;Ka.prototype.isHtmlAllowed=function(){return!1};Ka.prototype.paintForeground=function(f,t,B,u,C){mxRectangleShape.prototype.paintForeground.apply(this,arguments);var F=0;if(this.isRounded){var I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100;F=Math.max(F,Math.min(u*I,C*I))}I=Math.max(F,Math.min(u,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));F=Math.max(F,Math.min(C,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));
-f.begin();f.moveTo(t,B+F);f.lineTo(t+u,B+F);f.end();f.stroke();f.begin();f.moveTo(t+I,B);f.lineTo(t+I,B+C);f.end();f.stroke()};mxCellRenderer.registerShape("internalStorage",Ka);mxUtils.extend(za,mxActor);za.prototype.dx=20;za.prototype.dy=20;za.prototype.isRoundable=function(){return!0};za.prototype.redrawPath=function(f,t,B,u,C){t=Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,
-"size",this.size));var F=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,0),new mxPoint(u,0),new mxPoint(u,B),new mxPoint(t,B),new mxPoint(t,C),new mxPoint(0,C)],this.isRounded,F,!0);f.end()};mxCellRenderer.registerShape("corner",za);mxUtils.extend(Sa,mxActor);Sa.prototype.redrawPath=function(f,t,B,u,C){f.moveTo(0,0);f.lineTo(0,C);f.end();f.moveTo(u,0);f.lineTo(u,C);f.end();f.moveTo(0,C/2);f.lineTo(u,C/2);f.end()};mxCellRenderer.registerShape("crossbar",
-Sa);mxUtils.extend(Oa,mxActor);Oa.prototype.dx=20;Oa.prototype.dy=20;Oa.prototype.isRoundable=function(){return!0};Oa.prototype.redrawPath=function(f,t,B,u,C){t=Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var F=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,0),new mxPoint(u,
-0),new mxPoint(u,B),new mxPoint((u+t)/2,B),new mxPoint((u+t)/2,C),new mxPoint((u-t)/2,C),new mxPoint((u-t)/2,B),new mxPoint(0,B)],this.isRounded,F,!0);f.end()};mxCellRenderer.registerShape("tee",Oa);mxUtils.extend(Ma,mxActor);Ma.prototype.arrowWidth=.3;Ma.prototype.arrowSize=.2;Ma.prototype.isRoundable=function(){return!0};Ma.prototype.redrawPath=function(f,t,B,u,C){var F=C*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth))));t=u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,
-"arrowSize",this.arrowSize))));B=(C-F)/2;F=B+F;var I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,B),new mxPoint(u-t,B),new mxPoint(u-t,0),new mxPoint(u,C/2),new mxPoint(u-t,C),new mxPoint(u-t,F),new mxPoint(0,F)],this.isRounded,I,!0);f.end()};mxCellRenderer.registerShape("singleArrow",Ma);mxUtils.extend(Na,mxActor);Na.prototype.isRoundable=function(){return!0};Na.prototype.redrawPath=function(f,t,B,u,C){var F=C*Math.max(0,Math.min(1,
-parseFloat(mxUtils.getValue(this.style,"arrowWidth",Ma.prototype.arrowWidth))));t=u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",Ma.prototype.arrowSize))));B=(C-F)/2;F=B+F;var I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,C/2),new mxPoint(t,0),new mxPoint(t,B),new mxPoint(u-t,B),new mxPoint(u-t,0),new mxPoint(u,C/2),new mxPoint(u-t,C),new mxPoint(u-t,F),new mxPoint(t,F),new mxPoint(t,C)],this.isRounded,
-I,!0);f.end()};mxCellRenderer.registerShape("doubleArrow",Na);mxUtils.extend(Ba,mxActor);Ba.prototype.size=.1;Ba.prototype.fixedSize=20;Ba.prototype.redrawPath=function(f,t,B,u,C){t="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));f.moveTo(t,0);f.lineTo(u,0);f.quadTo(u-2*t,C/2,u,C);f.lineTo(t,C);f.quadTo(t-2*t,C/2,t,0);f.close();
-f.end()};mxCellRenderer.registerShape("dataStorage",Ba);mxUtils.extend(Ya,mxActor);Ya.prototype.redrawPath=function(f,t,B,u,C){f.moveTo(0,0);f.quadTo(u,0,u,C/2);f.quadTo(u,C,0,C);f.close();f.end()};mxCellRenderer.registerShape("or",Ya);mxUtils.extend(Pa,mxActor);Pa.prototype.redrawPath=function(f,t,B,u,C){f.moveTo(0,0);f.quadTo(u,0,u,C/2);f.quadTo(u,C,0,C);f.quadTo(u/2,C/2,0,0);f.close();f.end()};mxCellRenderer.registerShape("xor",Pa);mxUtils.extend(sa,mxActor);sa.prototype.size=20;sa.prototype.isRoundable=
-function(){return!0};sa.prototype.redrawPath=function(f,t,B,u,C){t=Math.min(u/2,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(t,0),new mxPoint(u-t,0),new mxPoint(u,.8*t),new mxPoint(u,C),new mxPoint(0,C),new mxPoint(0,.8*t)],this.isRounded,B,!0);f.end()};mxCellRenderer.registerShape("loopLimit",sa);mxUtils.extend(Fa,mxActor);Fa.prototype.size=.375;Fa.prototype.isRoundable=
-function(){return!0};Fa.prototype.redrawPath=function(f,t,B,u,C){t=C*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,0),new mxPoint(u,0),new mxPoint(u,C-t),new mxPoint(u/2,C),new mxPoint(0,C-t)],this.isRounded,B,!0);f.end()};mxCellRenderer.registerShape("offPageConnector",Fa);mxUtils.extend(Qa,mxEllipse);Qa.prototype.paintVertexShape=function(f,t,B,
-u,C){mxEllipse.prototype.paintVertexShape.apply(this,arguments);f.begin();f.moveTo(t+u/2,B+C);f.lineTo(t+u,B+C);f.end();f.stroke()};mxCellRenderer.registerShape("tapeData",Qa);mxUtils.extend(Ta,mxEllipse);Ta.prototype.paintVertexShape=function(f,t,B,u,C){mxEllipse.prototype.paintVertexShape.apply(this,arguments);f.setShadow(!1);f.begin();f.moveTo(t,B+C/2);f.lineTo(t+u,B+C/2);f.end();f.stroke();f.begin();f.moveTo(t+u/2,B);f.lineTo(t+u/2,B+C);f.end();f.stroke()};mxCellRenderer.registerShape("orEllipse",
-Ta);mxUtils.extend(y,mxEllipse);y.prototype.paintVertexShape=function(f,t,B,u,C){mxEllipse.prototype.paintVertexShape.apply(this,arguments);f.setShadow(!1);f.begin();f.moveTo(t+.145*u,B+.145*C);f.lineTo(t+.855*u,B+.855*C);f.end();f.stroke();f.begin();f.moveTo(t+.855*u,B+.145*C);f.lineTo(t+.145*u,B+.855*C);f.end();f.stroke()};mxCellRenderer.registerShape("sumEllipse",y);mxUtils.extend(Q,mxRhombus);Q.prototype.paintVertexShape=function(f,t,B,u,C){mxRhombus.prototype.paintVertexShape.apply(this,arguments);
-f.setShadow(!1);f.begin();f.moveTo(t,B+C/2);f.lineTo(t+u,B+C/2);f.end();f.stroke()};mxCellRenderer.registerShape("sortShape",Q);mxUtils.extend(V,mxEllipse);V.prototype.paintVertexShape=function(f,t,B,u,C){f.begin();f.moveTo(t,B);f.lineTo(t+u,B);f.lineTo(t+u/2,B+C/2);f.close();f.fillAndStroke();f.begin();f.moveTo(t,B+C);f.lineTo(t+u,B+C);f.lineTo(t+u/2,B+C/2);f.close();f.fillAndStroke()};mxCellRenderer.registerShape("collate",V);mxUtils.extend(X,mxEllipse);X.prototype.paintVertexShape=function(f,t,
-B,u,C){var F=f.state.strokeWidth/2,I=10+2*F,ja=B+C-I/2;f.begin();f.moveTo(t,B);f.lineTo(t,B+C);f.moveTo(t+F,ja);f.lineTo(t+F+I,ja-I/2);f.moveTo(t+F,ja);f.lineTo(t+F+I,ja+I/2);f.moveTo(t+F,ja);f.lineTo(t+u-F,ja);f.moveTo(t+u,B);f.lineTo(t+u,B+C);f.moveTo(t+u-F,ja);f.lineTo(t+u-I-F,ja-I/2);f.moveTo(t+u-F,ja);f.lineTo(t+u-I-F,ja+I/2);f.end();f.stroke()};mxCellRenderer.registerShape("dimension",X);mxUtils.extend(ia,mxEllipse);ia.prototype.drawHidden=!0;ia.prototype.paintVertexShape=function(f,t,B,u,C){this.outline||
-f.setStrokeColor(null);if(null!=this.style){var F=f.pointerEvents,I=null!=this.fill&&this.fill!=mxConstants.NONE;"1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||I||(f.pointerEvents=!1);var ja="1"==mxUtils.getValue(this.style,"top","1"),O="1"==mxUtils.getValue(this.style,"left","1"),va="1"==mxUtils.getValue(this.style,"right","1"),oa="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||I||this.outline||ja||va||oa||O?(f.rect(t,B,u,C),f.fill(),f.pointerEvents=F,f.setStrokeColor(this.stroke),
-f.setLineCap("square"),f.begin(),f.moveTo(t,B),this.outline||ja?f.lineTo(t+u,B):f.moveTo(t+u,B),this.outline||va?f.lineTo(t+u,B+C):f.moveTo(t+u,B+C),this.outline||oa?f.lineTo(t,B+C):f.moveTo(t,B+C),(this.outline||O)&&f.lineTo(t,B),f.end(),f.stroke(),f.setLineCap("flat")):f.setStrokeColor(this.stroke)}};mxCellRenderer.registerShape("partialRectangle",ia);mxUtils.extend(la,mxEllipse);la.prototype.paintVertexShape=function(f,t,B,u,C){mxEllipse.prototype.paintVertexShape.apply(this,arguments);f.setShadow(!1);
-f.begin();"vertical"==mxUtils.getValue(this.style,"line")?(f.moveTo(t+u/2,B),f.lineTo(t+u/2,B+C)):(f.moveTo(t,B+C/2),f.lineTo(t+u,B+C/2));f.end();f.stroke()};mxCellRenderer.registerShape("lineEllipse",la);mxUtils.extend(qa,mxActor);qa.prototype.redrawPath=function(f,t,B,u,C){t=Math.min(u,C/2);f.moveTo(0,0);f.lineTo(u-t,0);f.quadTo(u,0,u,C/2);f.quadTo(u,C,u-t,C);f.lineTo(0,C);f.close();f.end()};mxCellRenderer.registerShape("delay",qa);mxUtils.extend(wa,mxActor);wa.prototype.size=.2;wa.prototype.redrawPath=
-function(f,t,B,u,C){t=Math.min(C,u);var F=Math.max(0,Math.min(t,t*parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=(C-F)/2;B=t+F;var I=(u-F)/2;F=I+F;f.moveTo(0,t);f.lineTo(I,t);f.lineTo(I,0);f.lineTo(F,0);f.lineTo(F,t);f.lineTo(u,t);f.lineTo(u,B);f.lineTo(F,B);f.lineTo(F,C);f.lineTo(I,C);f.lineTo(I,B);f.lineTo(0,B);f.close();f.end()};mxCellRenderer.registerShape("cross",wa);mxUtils.extend(ua,mxActor);ua.prototype.size=.25;ua.prototype.redrawPath=function(f,t,B,u,C){t=Math.min(u,C/2);
-B=Math.min(u-t,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*u);f.moveTo(0,C/2);f.lineTo(B,0);f.lineTo(u-t,0);f.quadTo(u,0,u,C/2);f.quadTo(u,C,u-t,C);f.lineTo(B,C);f.close();f.end()};mxCellRenderer.registerShape("display",ua);mxUtils.extend(ya,mxActor);ya.prototype.cst={RECT2:"mxgraph.basic.rect"};ya.prototype.customProperties=[{name:"rectStyle",dispName:"Style",type:"enum",defVal:"square",enumList:[{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",
+Ha);mxUtils.extend($a,mxActor);$a.prototype.size=30;$a.prototype.isRoundable=function(){return!0};$a.prototype.redrawPath=function(f,t,B,v,C){t=Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size)));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,C),new mxPoint(0,t),new mxPoint(v,0),new mxPoint(v,C)],this.isRounded,B,!0);f.end()};mxCellRenderer.registerShape("manualInput",$a);mxUtils.extend(Ka,mxRectangleShape);Ka.prototype.dx=
+20;Ka.prototype.dy=20;Ka.prototype.isHtmlAllowed=function(){return!1};Ka.prototype.paintForeground=function(f,t,B,v,C){mxRectangleShape.prototype.paintForeground.apply(this,arguments);var F=0;if(this.isRounded){var I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100;F=Math.max(F,Math.min(v*I,C*I))}I=Math.max(F,Math.min(v,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));F=Math.max(F,Math.min(C,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));
+f.begin();f.moveTo(t,B+F);f.lineTo(t+v,B+F);f.end();f.stroke();f.begin();f.moveTo(t+I,B);f.lineTo(t+I,B+C);f.end();f.stroke()};mxCellRenderer.registerShape("internalStorage",Ka);mxUtils.extend(za,mxActor);za.prototype.dx=20;za.prototype.dy=20;za.prototype.isRoundable=function(){return!0};za.prototype.redrawPath=function(f,t,B,v,C){t=Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,
+"size",this.size));var F=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,0),new mxPoint(v,0),new mxPoint(v,B),new mxPoint(t,B),new mxPoint(t,C),new mxPoint(0,C)],this.isRounded,F,!0);f.end()};mxCellRenderer.registerShape("corner",za);mxUtils.extend(Sa,mxActor);Sa.prototype.redrawPath=function(f,t,B,v,C){f.moveTo(0,0);f.lineTo(0,C);f.end();f.moveTo(v,0);f.lineTo(v,C);f.end();f.moveTo(0,C/2);f.lineTo(v,C/2);f.end()};mxCellRenderer.registerShape("crossbar",
+Sa);mxUtils.extend(Oa,mxActor);Oa.prototype.dx=20;Oa.prototype.dy=20;Oa.prototype.isRoundable=function(){return!0};Oa.prototype.redrawPath=function(f,t,B,v,C){t=Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var F=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,0),new mxPoint(v,
+0),new mxPoint(v,B),new mxPoint((v+t)/2,B),new mxPoint((v+t)/2,C),new mxPoint((v-t)/2,C),new mxPoint((v-t)/2,B),new mxPoint(0,B)],this.isRounded,F,!0);f.end()};mxCellRenderer.registerShape("tee",Oa);mxUtils.extend(Ma,mxActor);Ma.prototype.arrowWidth=.3;Ma.prototype.arrowSize=.2;Ma.prototype.isRoundable=function(){return!0};Ma.prototype.redrawPath=function(f,t,B,v,C){var F=C*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth))));t=v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,
+"arrowSize",this.arrowSize))));B=(C-F)/2;F=B+F;var I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,B),new mxPoint(v-t,B),new mxPoint(v-t,0),new mxPoint(v,C/2),new mxPoint(v-t,C),new mxPoint(v-t,F),new mxPoint(0,F)],this.isRounded,I,!0);f.end()};mxCellRenderer.registerShape("singleArrow",Ma);mxUtils.extend(Na,mxActor);Na.prototype.isRoundable=function(){return!0};Na.prototype.redrawPath=function(f,t,B,v,C){var F=C*Math.max(0,Math.min(1,
+parseFloat(mxUtils.getValue(this.style,"arrowWidth",Ma.prototype.arrowWidth))));t=v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",Ma.prototype.arrowSize))));B=(C-F)/2;F=B+F;var I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,C/2),new mxPoint(t,0),new mxPoint(t,B),new mxPoint(v-t,B),new mxPoint(v-t,0),new mxPoint(v,C/2),new mxPoint(v-t,C),new mxPoint(v-t,F),new mxPoint(t,F),new mxPoint(t,C)],this.isRounded,
+I,!0);f.end()};mxCellRenderer.registerShape("doubleArrow",Na);mxUtils.extend(Ba,mxActor);Ba.prototype.size=.1;Ba.prototype.fixedSize=20;Ba.prototype.redrawPath=function(f,t,B,v,C){t="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));f.moveTo(t,0);f.lineTo(v,0);f.quadTo(v-2*t,C/2,v,C);f.lineTo(t,C);f.quadTo(t-2*t,C/2,t,0);f.close();
+f.end()};mxCellRenderer.registerShape("dataStorage",Ba);mxUtils.extend(Ya,mxActor);Ya.prototype.redrawPath=function(f,t,B,v,C){f.moveTo(0,0);f.quadTo(v,0,v,C/2);f.quadTo(v,C,0,C);f.close();f.end()};mxCellRenderer.registerShape("or",Ya);mxUtils.extend(Pa,mxActor);Pa.prototype.redrawPath=function(f,t,B,v,C){f.moveTo(0,0);f.quadTo(v,0,v,C/2);f.quadTo(v,C,0,C);f.quadTo(v/2,C/2,0,0);f.close();f.end()};mxCellRenderer.registerShape("xor",Pa);mxUtils.extend(sa,mxActor);sa.prototype.size=20;sa.prototype.isRoundable=
+function(){return!0};sa.prototype.redrawPath=function(f,t,B,v,C){t=Math.min(v/2,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(t,0),new mxPoint(v-t,0),new mxPoint(v,.8*t),new mxPoint(v,C),new mxPoint(0,C),new mxPoint(0,.8*t)],this.isRounded,B,!0);f.end()};mxCellRenderer.registerShape("loopLimit",sa);mxUtils.extend(Fa,mxActor);Fa.prototype.size=.375;Fa.prototype.isRoundable=
+function(){return!0};Fa.prototype.redrawPath=function(f,t,B,v,C){t=C*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,0),new mxPoint(v,0),new mxPoint(v,C-t),new mxPoint(v/2,C),new mxPoint(0,C-t)],this.isRounded,B,!0);f.end()};mxCellRenderer.registerShape("offPageConnector",Fa);mxUtils.extend(Qa,mxEllipse);Qa.prototype.paintVertexShape=function(f,t,B,
+v,C){mxEllipse.prototype.paintVertexShape.apply(this,arguments);f.begin();f.moveTo(t+v/2,B+C);f.lineTo(t+v,B+C);f.end();f.stroke()};mxCellRenderer.registerShape("tapeData",Qa);mxUtils.extend(Ta,mxEllipse);Ta.prototype.paintVertexShape=function(f,t,B,v,C){mxEllipse.prototype.paintVertexShape.apply(this,arguments);f.setShadow(!1);f.begin();f.moveTo(t,B+C/2);f.lineTo(t+v,B+C/2);f.end();f.stroke();f.begin();f.moveTo(t+v/2,B);f.lineTo(t+v/2,B+C);f.end();f.stroke()};mxCellRenderer.registerShape("orEllipse",
+Ta);mxUtils.extend(y,mxEllipse);y.prototype.paintVertexShape=function(f,t,B,v,C){mxEllipse.prototype.paintVertexShape.apply(this,arguments);f.setShadow(!1);f.begin();f.moveTo(t+.145*v,B+.145*C);f.lineTo(t+.855*v,B+.855*C);f.end();f.stroke();f.begin();f.moveTo(t+.855*v,B+.145*C);f.lineTo(t+.145*v,B+.855*C);f.end();f.stroke()};mxCellRenderer.registerShape("sumEllipse",y);mxUtils.extend(Q,mxRhombus);Q.prototype.paintVertexShape=function(f,t,B,v,C){mxRhombus.prototype.paintVertexShape.apply(this,arguments);
+f.setShadow(!1);f.begin();f.moveTo(t,B+C/2);f.lineTo(t+v,B+C/2);f.end();f.stroke()};mxCellRenderer.registerShape("sortShape",Q);mxUtils.extend(V,mxEllipse);V.prototype.paintVertexShape=function(f,t,B,v,C){f.begin();f.moveTo(t,B);f.lineTo(t+v,B);f.lineTo(t+v/2,B+C/2);f.close();f.fillAndStroke();f.begin();f.moveTo(t,B+C);f.lineTo(t+v,B+C);f.lineTo(t+v/2,B+C/2);f.close();f.fillAndStroke()};mxCellRenderer.registerShape("collate",V);mxUtils.extend(X,mxEllipse);X.prototype.paintVertexShape=function(f,t,
+B,v,C){var F=f.state.strokeWidth/2,I=10+2*F,ja=B+C-I/2;f.begin();f.moveTo(t,B);f.lineTo(t,B+C);f.moveTo(t+F,ja);f.lineTo(t+F+I,ja-I/2);f.moveTo(t+F,ja);f.lineTo(t+F+I,ja+I/2);f.moveTo(t+F,ja);f.lineTo(t+v-F,ja);f.moveTo(t+v,B);f.lineTo(t+v,B+C);f.moveTo(t+v-F,ja);f.lineTo(t+v-I-F,ja-I/2);f.moveTo(t+v-F,ja);f.lineTo(t+v-I-F,ja+I/2);f.end();f.stroke()};mxCellRenderer.registerShape("dimension",X);mxUtils.extend(ia,mxEllipse);ia.prototype.drawHidden=!0;ia.prototype.paintVertexShape=function(f,t,B,v,C){this.outline||
+f.setStrokeColor(null);if(null!=this.style){var F=f.pointerEvents,I=null!=this.fill&&this.fill!=mxConstants.NONE;"1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||I||(f.pointerEvents=!1);var ja="1"==mxUtils.getValue(this.style,"top","1"),O="1"==mxUtils.getValue(this.style,"left","1"),va="1"==mxUtils.getValue(this.style,"right","1"),oa="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||I||this.outline||ja||va||oa||O?(f.rect(t,B,v,C),f.fill(),f.pointerEvents=F,f.setStrokeColor(this.stroke),
+f.setLineCap("square"),f.begin(),f.moveTo(t,B),this.outline||ja?f.lineTo(t+v,B):f.moveTo(t+v,B),this.outline||va?f.lineTo(t+v,B+C):f.moveTo(t+v,B+C),this.outline||oa?f.lineTo(t,B+C):f.moveTo(t,B+C),(this.outline||O)&&f.lineTo(t,B),f.end(),f.stroke(),f.setLineCap("flat")):f.setStrokeColor(this.stroke)}};mxCellRenderer.registerShape("partialRectangle",ia);mxUtils.extend(la,mxEllipse);la.prototype.paintVertexShape=function(f,t,B,v,C){mxEllipse.prototype.paintVertexShape.apply(this,arguments);f.setShadow(!1);
+f.begin();"vertical"==mxUtils.getValue(this.style,"line")?(f.moveTo(t+v/2,B),f.lineTo(t+v/2,B+C)):(f.moveTo(t,B+C/2),f.lineTo(t+v,B+C/2));f.end();f.stroke()};mxCellRenderer.registerShape("lineEllipse",la);mxUtils.extend(qa,mxActor);qa.prototype.redrawPath=function(f,t,B,v,C){t=Math.min(v,C/2);f.moveTo(0,0);f.lineTo(v-t,0);f.quadTo(v,0,v,C/2);f.quadTo(v,C,v-t,C);f.lineTo(0,C);f.close();f.end()};mxCellRenderer.registerShape("delay",qa);mxUtils.extend(wa,mxActor);wa.prototype.size=.2;wa.prototype.redrawPath=
+function(f,t,B,v,C){t=Math.min(C,v);var F=Math.max(0,Math.min(t,t*parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=(C-F)/2;B=t+F;var I=(v-F)/2;F=I+F;f.moveTo(0,t);f.lineTo(I,t);f.lineTo(I,0);f.lineTo(F,0);f.lineTo(F,t);f.lineTo(v,t);f.lineTo(v,B);f.lineTo(F,B);f.lineTo(F,C);f.lineTo(I,C);f.lineTo(I,B);f.lineTo(0,B);f.close();f.end()};mxCellRenderer.registerShape("cross",wa);mxUtils.extend(ua,mxActor);ua.prototype.size=.25;ua.prototype.redrawPath=function(f,t,B,v,C){t=Math.min(v,C/2);
+B=Math.min(v-t,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*v);f.moveTo(0,C/2);f.lineTo(B,0);f.lineTo(v-t,0);f.quadTo(v,0,v,C/2);f.quadTo(v,C,v-t,C);f.lineTo(B,C);f.close();f.end()};mxCellRenderer.registerShape("display",ua);mxUtils.extend(ya,mxActor);ya.prototype.cst={RECT2:"mxgraph.basic.rect"};ya.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"}]}];ya.prototype.paintVertexShape=function(f,t,B,u,C){f.translate(t,B);this.strictDrawShape(f,0,0,u,C)};ya.prototype.strictDrawShape=function(f,t,B,u,C,F){var I=F&&F.rectStyle?F.rectStyle:mxUtils.getValue(this.style,"rectStyle",this.rectStyle),ja=F&&F.absoluteCornerSize?F.absoluteCornerSize:mxUtils.getValue(this.style,
-"absoluteCornerSize",this.absoluteCornerSize),O=F&&F.size?F.size:Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),va=F&&F.rectOutline?F.rectOutline:mxUtils.getValue(this.style,"rectOutline",this.rectOutline),oa=F&&F.indent?F.indent:Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"indent",this.indent)))),bb=F&&F.dashed?F.dashed:mxUtils.getValue(this.style,"dashed",!1),mb=F&&F.dashPattern?F.dashPattern:mxUtils.getValue(this.style,"dashPattern",null),hb=
+dispName:"Default"},{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]}];ya.prototype.paintVertexShape=function(f,t,B,v,C){f.translate(t,B);this.strictDrawShape(f,0,0,v,C)};ya.prototype.strictDrawShape=function(f,t,B,v,C,F){var I=F&&F.rectStyle?F.rectStyle:mxUtils.getValue(this.style,"rectStyle",this.rectStyle),ja=F&&F.absoluteCornerSize?F.absoluteCornerSize:mxUtils.getValue(this.style,
+"absoluteCornerSize",this.absoluteCornerSize),O=F&&F.size?F.size:Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),va=F&&F.rectOutline?F.rectOutline:mxUtils.getValue(this.style,"rectOutline",this.rectOutline),oa=F&&F.indent?F.indent:Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"indent",this.indent)))),bb=F&&F.dashed?F.dashed:mxUtils.getValue(this.style,"dashed",!1),mb=F&&F.dashPattern?F.dashPattern:mxUtils.getValue(this.style,"dashPattern",null),hb=
F&&F.relIndent?F.relIndent:Math.max(0,Math.min(50,oa)),Ga=F&&F.top?F.top:mxUtils.getValue(this.style,"top",!0),La=F&&F.right?F.right:mxUtils.getValue(this.style,"right",!0),Ja=F&&F.bottom?F.bottom:mxUtils.getValue(this.style,"bottom",!0),Ia=F&&F.left?F.left:mxUtils.getValue(this.style,"left",!0),Xa=F&&F.topLeftStyle?F.topLeftStyle:mxUtils.getValue(this.style,"topLeftStyle","default"),cb=F&&F.topRightStyle?F.topRightStyle:mxUtils.getValue(this.style,"topRightStyle","default"),db=F&&F.bottomRightStyle?
F.bottomRightStyle:mxUtils.getValue(this.style,"bottomRightStyle","default"),eb=F&&F.bottomLeftStyle?F.bottomLeftStyle:mxUtils.getValue(this.style,"bottomLeftStyle","default"),Ib=F&&F.fillColor?F.fillColor:mxUtils.getValue(this.style,"fillColor","#ffffff");F&&F.strokeColor||mxUtils.getValue(this.style,"strokeColor","#000000");var Jb=F&&F.strokeWidth?F.strokeWidth:mxUtils.getValue(this.style,"strokeWidth","1"),Gb=F&&F.fillColor2?F.fillColor2:mxUtils.getValue(this.style,"fillColor2","none"),Hb=F&&F.gradientColor2?
-F.gradientColor2:mxUtils.getValue(this.style,"gradientColor2","none"),Kb=F&&F.gradientDirection2?F.gradientDirection2:mxUtils.getValue(this.style,"gradientDirection2","south"),Lb=F&&F.opacity?F.opacity:mxUtils.getValue(this.style,"opacity","100"),Mb=Math.max(0,Math.min(50,O));F=ya.prototype;f.setDashed(bb);mb&&""!=mb&&f.setDashPattern(mb);f.setStrokeWidth(Jb);O=Math.min(.5*C,.5*u,O);ja||(O=Mb*Math.min(u,C)/100);O=Math.min(O,.5*Math.min(u,C));ja||(oa=Math.min(hb*Math.min(u,C)/100));oa=Math.min(oa,
-.5*Math.min(u,C)-O);(Ga||La||Ja||Ia)&&"frame"!=va&&(f.begin(),Ga?F.moveNW(f,t,B,u,C,I,Xa,O,Ia):f.moveTo(0,0),Ga&&F.paintNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),La&&F.paintNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),Ja&&F.paintSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,u,C,I,eb,O,Ia),Ia&&F.paintSW(f,t,B,u,C,I,eb,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),f.close(),f.fill(),f.setShadow(!1),f.setFillColor(Gb),bb=ja=Lb,"none"==Gb&&(ja=0),"none"==Hb&&(bb=0),f.setGradient(Gb,
-Hb,0,0,u,C,Kb,ja,bb),f.begin(),Ga?F.moveNWInner(f,t,B,u,C,I,Xa,O,oa,Ga,Ia):f.moveTo(oa,0),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia),Ia&&Ja&&F.paintSWInner(f,t,B,u,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja),Ja&&La&&F.paintSEInner(f,t,B,u,C,I,db,O,oa),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La),La&&Ga&&F.paintNEInner(f,t,B,u,C,I,cb,O,oa),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga),Ga&&Ia&&F.paintNWInner(f,t,B,u,C,I,Xa,O,oa),f.fill(),"none"==Ib&&(f.begin(),F.paintFolds(f,t,B,u,C,
-I,Xa,cb,db,eb,O,Ga,La,Ja,Ia),f.stroke()));Ga||La||Ja||!Ia?Ga||La||!Ja||Ia?!Ga&&!La&&Ja&&Ia?"frame"!=va?(f.begin(),F.moveSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,u,C,I,eb,O,Ia),F.paintSW(f,t,B,u,C,I,eb,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),"double"==va&&(F.moveNWInner(f,t,B,u,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia),F.paintSWInner(f,t,B,u,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja)),f.stroke()):(f.begin(),F.moveSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,
-u,C,I,eb,O,Ia),F.paintSW(f,t,B,u,C,I,eb,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),F.lineNWInner(f,t,B,u,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia),F.paintSWInner(f,t,B,u,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja),f.close(),f.fillAndStroke()):Ga||!La||Ja||Ia?!Ga&&La&&!Ja&&Ia?"frame"!=va?(f.begin(),F.moveSW(f,t,B,u,C,I,Xa,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),"double"==va&&(F.moveNWInner(f,t,B,u,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia)),f.stroke(),
-f.begin(),F.moveNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),"double"==va&&(F.moveSEInner(f,t,B,u,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La)),f.stroke()):(f.begin(),F.moveSW(f,t,B,u,C,I,Xa,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),F.lineNWInner(f,t,B,u,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia),f.close(),f.fillAndStroke(),f.begin(),F.moveNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),F.lineSEInner(f,t,B,u,C,I,db,O,oa,Ja),F.paintRightInner(f,
-t,B,u,C,I,cb,O,oa,Ga,La),f.close(),f.fillAndStroke()):!Ga&&La&&Ja&&!Ia?"frame"!=va?(f.begin(),F.moveNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),F.paintSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,u,C,I,eb,O,Ia),"double"==va&&(F.moveSWInner(f,t,B,u,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,u,C,I,db,O,oa),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La)),f.stroke()):(f.begin(),F.moveNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),F.paintSE(f,
-t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,u,C,I,eb,O,Ia),F.lineSWInner(f,t,B,u,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,u,C,I,db,O,oa),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La),f.close(),f.fillAndStroke()):!Ga&&La&&Ja&&Ia?"frame"!=va?(f.begin(),F.moveNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),F.paintSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,u,C,I,eb,O,Ia),F.paintSW(f,t,B,u,C,I,eb,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),"double"==va&&(F.moveNWInner(f,
-t,B,u,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia),F.paintSWInner(f,t,B,u,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,u,C,I,db,O,oa),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La)),f.stroke()):(f.begin(),F.moveNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),F.paintSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,u,C,I,eb,O,Ia),F.paintSW(f,t,B,u,C,I,eb,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),F.lineNWInner(f,t,B,u,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,
-t,B,u,C,I,eb,O,oa,Ja,Ia),F.paintSWInner(f,t,B,u,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,u,C,I,db,O,oa),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La),f.close(),f.fillAndStroke()):!Ga||La||Ja||Ia?Ga&&!La&&!Ja&&Ia?"frame"!=va?(f.begin(),F.moveSW(f,t,B,u,C,I,eb,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),F.paintNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),"double"==va&&(F.moveNEInner(f,t,B,u,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,
-t,B,u,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia)),f.stroke()):(f.begin(),F.moveSW(f,t,B,u,C,I,eb,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),F.paintNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),F.lineNEInner(f,t,B,u,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,t,B,u,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia),f.close(),f.fillAndStroke()):Ga&&!La&&Ja&&!Ia?"frame"!=va?(f.begin(),F.moveNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,
-La),"double"==va&&(F.moveNEInner(f,t,B,u,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga)),f.stroke(),f.begin(),F.moveSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,u,C,I,eb,O,Ia),"double"==va&&(F.moveSWInner(f,t,B,u,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja)),f.stroke()):(f.begin(),F.moveNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),F.lineNEInner(f,t,B,u,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga),f.close(),f.fillAndStroke(),f.begin(),F.moveSE(f,
-t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,u,C,I,eb,O,Ia),F.lineSWInner(f,t,B,u,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja),f.close(),f.fillAndStroke()):Ga&&!La&&Ja&&Ia?"frame"!=va?(f.begin(),F.moveSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,u,C,I,eb,O,Ia),F.paintSW(f,t,B,u,C,I,eb,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),F.paintNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),"double"==va&&(F.moveNEInner(f,t,B,u,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,
-t,B,u,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia),F.paintSWInner(f,t,B,u,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja)),f.stroke()):(f.begin(),F.moveSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,u,C,I,eb,O,Ia),F.paintSW(f,t,B,u,C,I,eb,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),F.paintNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),F.lineNEInner(f,t,B,u,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,t,B,u,C,I,Xa,O,oa),F.paintLeftInner(f,t,
-B,u,C,I,eb,O,oa,Ja,Ia),F.paintSWInner(f,t,B,u,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja),f.close(),f.fillAndStroke()):Ga&&La&&!Ja&&!Ia?"frame"!=va?(f.begin(),F.moveNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),F.paintNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),"double"==va&&(F.moveSEInner(f,t,B,u,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,u,C,I,cb,O,oa),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga)),f.stroke()):(f.begin(),
-F.moveNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),F.paintNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),F.lineSEInner(f,t,B,u,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,u,C,I,cb,O,oa),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga),f.close(),f.fillAndStroke()):Ga&&La&&!Ja&&Ia?"frame"!=va?(f.begin(),F.moveSW(f,t,B,u,C,I,eb,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),F.paintNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),F.paintNE(f,t,B,u,
-C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),"double"==va&&(F.moveSEInner(f,t,B,u,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,u,C,I,cb,O,oa),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,t,B,u,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia)),f.stroke()):(f.begin(),F.moveSW(f,t,B,u,C,I,eb,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),F.paintNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),F.paintNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,
-B,u,C,I,db,O,Ja),F.lineSEInner(f,t,B,u,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,u,C,I,cb,O,oa),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,t,B,u,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia),f.close(),f.fillAndStroke()):Ga&&La&&Ja&&!Ia?"frame"!=va?(f.begin(),F.moveNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),F.paintNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),F.paintSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,
-t,B,u,C,I,eb,O,Ia),"double"==va&&(F.moveSWInner(f,t,B,u,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,u,C,I,db,O,oa),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,u,C,I,cb,O,oa),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga)),f.stroke()):(f.begin(),F.moveNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),F.paintNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),F.paintSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,u,C,I,eb,O,Ia),F.lineSWInner(f,
-t,B,u,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,u,C,I,db,O,oa),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,u,C,I,cb,O,oa),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga),f.close(),f.fillAndStroke()):Ga&&La&&Ja&&Ia&&("frame"!=va?(f.begin(),F.moveNW(f,t,B,u,C,I,Xa,O,Ia),F.paintNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),F.paintNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),F.paintSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,
-t,B,u,C,I,eb,O,Ia),F.paintSW(f,t,B,u,C,I,eb,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),f.close(),"double"==va&&(F.moveSWInner(f,t,B,u,C,I,eb,O,oa,Ia),F.paintSWInner(f,t,B,u,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,u,C,I,db,O,oa),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,u,C,I,cb,O,oa),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,t,B,u,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia),f.close()),f.stroke()):(f.begin(),
-F.moveNW(f,t,B,u,C,I,Xa,O,Ia),F.paintNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),F.paintNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),F.paintSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,u,C,I,eb,O,Ia),F.paintSW(f,t,B,u,C,I,eb,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),f.close(),F.moveSWInner(f,t,B,u,C,I,eb,O,oa,Ia),F.paintSWInner(f,t,B,u,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,u,C,I,db,O,oa),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La),
-F.paintNEInner(f,t,B,u,C,I,cb,O,oa),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,t,B,u,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia),f.close(),f.fillAndStroke())):"frame"!=va?(f.begin(),F.moveNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),"double"==va&&(F.moveNEInner(f,t,B,u,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga)),f.stroke()):(f.begin(),F.moveNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),F.lineNEInner(f,t,B,u,C,I,cb,O,oa,La),F.paintTopInner(f,
-t,B,u,C,I,Xa,O,oa,Ia,Ga),f.close(),f.fillAndStroke()):"frame"!=va?(f.begin(),F.moveNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),"double"==va&&(F.moveSEInner(f,t,B,u,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La)),f.stroke()):(f.begin(),F.moveNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),F.lineSEInner(f,t,B,u,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La),f.close(),f.fillAndStroke()):"frame"!=va?(f.begin(),F.moveSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,
-t,B,u,C,I,eb,O,Ia),"double"==va&&(F.moveSWInner(f,t,B,u,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja)),f.stroke()):(f.begin(),F.moveSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,u,C,I,eb,O,Ia),F.lineSWInner(f,t,B,u,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja),f.close(),f.fillAndStroke()):"frame"!=va?(f.begin(),F.moveSW(f,t,B,u,C,I,Xa,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),"double"==va&&(F.moveNWInner(f,t,B,u,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,
-Ia)),f.stroke()):(f.begin(),F.moveSW(f,t,B,u,C,I,Xa,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),F.lineNWInner(f,t,B,u,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia),f.close(),f.fillAndStroke());f.begin();F.paintFolds(f,t,B,u,C,I,Xa,cb,db,eb,O,Ga,La,Ja,Ia);f.stroke()};ya.prototype.moveNW=function(f,t,B,u,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.moveTo(0,0):f.moveTo(0,ja)};ya.prototype.moveNE=function(f,t,B,u,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.moveTo(u,
-0):f.moveTo(u-ja,0)};ya.prototype.moveSE=function(f,t,B,u,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.moveTo(u,C):f.moveTo(u,C-ja)};ya.prototype.moveSW=function(f,t,B,u,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.moveTo(0,C):f.moveTo(ja,C)};ya.prototype.paintNW=function(f,t,B,u,C,F,I,ja,O){if(O)if("rounded"==I||"default"==I&&"rounded"==F||"invRound"==I||"default"==I&&"invRound"==F){t=0;if("rounded"==I||"default"==I&&"rounded"==F)t=1;f.arcTo(ja,ja,0,0,t,ja,0)}else("snip"==
-I||"default"==I&&"snip"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(ja,0);else f.lineTo(0,0)};ya.prototype.paintTop=function(f,t,B,u,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.lineTo(u,0):f.lineTo(u-ja,0)};ya.prototype.paintNE=function(f,t,B,u,C,F,I,ja,O){if(O)if("rounded"==I||"default"==I&&"rounded"==F||"invRound"==I||"default"==I&&"invRound"==F){t=0;if("rounded"==I||"default"==I&&"rounded"==F)t=1;f.arcTo(ja,ja,0,0,t,u,ja)}else("snip"==I||"default"==I&&"snip"==F||"fold"==I||"default"==
-I&&"fold"==F)&&f.lineTo(u,ja);else f.lineTo(u,0)};ya.prototype.paintRight=function(f,t,B,u,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.lineTo(u,C):f.lineTo(u,C-ja)};ya.prototype.paintLeft=function(f,t,B,u,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.lineTo(0,0):f.lineTo(0,ja)};ya.prototype.paintSE=function(f,t,B,u,C,F,I,ja,O){if(O)if("rounded"==I||"default"==I&&"rounded"==F||"invRound"==I||"default"==I&&"invRound"==F){t=0;if("rounded"==I||"default"==I&&"rounded"==F)t=1;f.arcTo(ja,
-ja,0,0,t,u-ja,C)}else("snip"==I||"default"==I&&"snip"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(u-ja,C);else f.lineTo(u,C)};ya.prototype.paintBottom=function(f,t,B,u,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.lineTo(0,C):f.lineTo(ja,C)};ya.prototype.paintSW=function(f,t,B,u,C,F,I,ja,O){if(O)if("rounded"==I||"default"==I&&"rounded"==F||"invRound"==I||"default"==I&&"invRound"==F){t=0;if("rounded"==I||"default"==I&&"rounded"==F)t=1;f.arcTo(ja,ja,0,0,t,0,C-ja)}else("snip"==I||"default"==
-I&&"snip"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(0,C-ja);else f.lineTo(0,C)};ya.prototype.paintNWInner=function(f,t,B,u,C,F,I,ja,O){if("rounded"==I||"default"==I&&"rounded"==F)f.arcTo(ja-.5*O,ja-.5*O,0,0,0,O,.5*O+ja);else if("invRound"==I||"default"==I&&"invRound"==F)f.arcTo(ja+O,ja+O,0,0,1,O,O+ja);else if("snip"==I||"default"==I&&"snip"==F)f.lineTo(O,.5*O+ja);else if("fold"==I||"default"==I&&"fold"==F)f.lineTo(O+ja,O+ja),f.lineTo(O,O+ja)};ya.prototype.paintTopInner=function(f,t,B,u,C,
-F,I,ja,O,va,oa){va||oa?!va&&oa?f.lineTo(0,O):va&&!oa?f.lineTo(O,0):va?"square"==I||"default"==I&&"square"==F?f.lineTo(O,O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(ja+.5*O,O):f.lineTo(ja+O,O):f.lineTo(0,O):f.lineTo(0,0)};ya.prototype.paintNEInner=function(f,t,B,u,C,F,I,ja,O){if("rounded"==I||"default"==I&&"rounded"==F)f.arcTo(ja-.5*O,ja-.5*O,0,0,0,u-ja-.5*O,O);else if("invRound"==I||"default"==I&&"invRound"==F)f.arcTo(ja+O,ja+O,0,0,1,u-ja-O,O);else if("snip"==
-I||"default"==I&&"snip"==F)f.lineTo(u-ja-.5*O,O);else if("fold"==I||"default"==I&&"fold"==F)f.lineTo(u-ja-O,ja+O),f.lineTo(u-ja-O,O)};ya.prototype.paintRightInner=function(f,t,B,u,C,F,I,ja,O,va,oa){va||oa?!va&&oa?f.lineTo(u-O,0):va&&!oa?f.lineTo(u,O):va?"square"==I||"default"==I&&"square"==F?f.lineTo(u-O,O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(u-O,ja+.5*O):f.lineTo(u-O,ja+O):f.lineTo(u-O,0):f.lineTo(u,0)};ya.prototype.paintLeftInner=function(f,t,B,
-u,C,F,I,ja,O,va,oa){va||oa?!va&&oa?f.lineTo(O,C):va&&!oa?f.lineTo(0,C-O):va?"square"==I||"default"==I&&"square"==F?f.lineTo(O,C-O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(O,C-ja-.5*O):f.lineTo(O,C-ja-O):f.lineTo(O,C):f.lineTo(0,C)};ya.prototype.paintSEInner=function(f,t,B,u,C,F,I,ja,O){if("rounded"==I||"default"==I&&"rounded"==F)f.arcTo(ja-.5*O,ja-.5*O,0,0,0,u-O,C-ja-.5*O);else if("invRound"==I||"default"==I&&"invRound"==F)f.arcTo(ja+O,ja+O,0,0,1,u-O,
-C-ja-O);else if("snip"==I||"default"==I&&"snip"==F)f.lineTo(u-O,C-ja-.5*O);else if("fold"==I||"default"==I&&"fold"==F)f.lineTo(u-ja-O,C-ja-O),f.lineTo(u-O,C-ja-O)};ya.prototype.paintBottomInner=function(f,t,B,u,C,F,I,ja,O,va,oa){va||oa?!va&&oa?f.lineTo(u,C-O):va&&!oa?f.lineTo(u-O,C):"square"==I||"default"==I&&"square"==F||!va?f.lineTo(u-O,C-O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(u-ja-.5*O,C-O):f.lineTo(u-ja-O,C-O):f.lineTo(u,C)};ya.prototype.paintSWInner=
-function(f,t,B,u,C,F,I,ja,O,va){if(!va)f.lineTo(O,C);else if("square"==I||"default"==I&&"square"==F)f.lineTo(O,C-O);else if("rounded"==I||"default"==I&&"rounded"==F)f.arcTo(ja-.5*O,ja-.5*O,0,0,0,ja+.5*O,C-O);else if("invRound"==I||"default"==I&&"invRound"==F)f.arcTo(ja+O,ja+O,0,0,1,ja+O,C-O);else if("snip"==I||"default"==I&&"snip"==F)f.lineTo(ja+.5*O,C-O);else if("fold"==I||"default"==I&&"fold"==F)f.lineTo(O+ja,C-ja-O),f.lineTo(O+ja,C-O)};ya.prototype.moveSWInner=function(f,t,B,u,C,F,I,ja,O,va){va?
-"square"==I||"default"==I&&"square"==F?f.moveTo(O,C-O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.moveTo(O,C-ja-.5*O):("invRound"==I||"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.moveTo(O,C-ja-O):f.moveTo(0,C-O)};ya.prototype.lineSWInner=function(f,t,B,u,C,F,I,ja,O,va){va?"square"==I||"default"==I&&"square"==F?f.lineTo(O,C-O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(O,C-ja-.5*O):("invRound"==I||
-"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(O,C-ja-O):f.lineTo(0,C-O)};ya.prototype.moveSEInner=function(f,t,B,u,C,F,I,ja,O,va){va?"square"==I||"default"==I&&"square"==F?f.moveTo(u-O,C-O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.moveTo(u-O,C-ja-.5*O):("invRound"==I||"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.moveTo(u-O,C-ja-O):f.moveTo(u-O,C)};ya.prototype.lineSEInner=function(f,t,B,u,C,F,I,ja,O,va){va?"square"==
-I||"default"==I&&"square"==F?f.lineTo(u-O,C-O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(u-O,C-ja-.5*O):("invRound"==I||"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(u-O,C-ja-O):f.lineTo(u-O,C)};ya.prototype.moveNEInner=function(f,t,B,u,C,F,I,ja,O,va){va?"square"==I||"default"==I&&"square"==F||va?f.moveTo(u-O,O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.moveTo(u-O,ja+.5*O):("invRound"==I||
-"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.moveTo(u-O,ja+O):f.moveTo(u,O)};ya.prototype.lineNEInner=function(f,t,B,u,C,F,I,ja,O,va){va?"square"==I||"default"==I&&"square"==F||va?f.lineTo(u-O,O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(u-O,ja+.5*O):("invRound"==I||"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(u-O,ja+O):f.lineTo(u,O)};ya.prototype.moveNWInner=function(f,t,B,u,C,F,I,ja,O,va,oa){va||oa?
-!va&&oa?f.moveTo(O,0):va&&!oa?f.moveTo(0,O):"square"==I||"default"==I&&"square"==F?f.moveTo(O,O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.moveTo(O,ja+.5*O):("invRound"==I||"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.moveTo(O,ja+O):f.moveTo(0,0)};ya.prototype.lineNWInner=function(f,t,B,u,C,F,I,ja,O,va,oa){va||oa?!va&&oa?f.lineTo(O,0):va&&!oa?f.lineTo(0,O):"square"==I||"default"==I&&"square"==F?f.lineTo(O,O):"rounded"==I||"default"==I&&"rounded"==
-F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(O,ja+.5*O):("invRound"==I||"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(O,ja+O):f.lineTo(0,0)};ya.prototype.paintFolds=function(f,t,B,u,C,F,I,ja,O,va,oa,bb,mb,hb,Ga){if("fold"==F||"fold"==I||"fold"==ja||"fold"==O||"fold"==va)("fold"==I||"default"==I&&"fold"==F)&&bb&&Ga&&(f.moveTo(0,oa),f.lineTo(oa,oa),f.lineTo(oa,0)),("fold"==ja||"default"==ja&&"fold"==F)&&bb&&mb&&(f.moveTo(u-oa,0),f.lineTo(u-oa,oa),f.lineTo(u,oa)),("fold"==
-O||"default"==O&&"fold"==F)&&hb&&mb&&(f.moveTo(u-oa,C),f.lineTo(u-oa,C-oa),f.lineTo(u,C-oa)),("fold"==va||"default"==va&&"fold"==F)&&hb&&Ga&&(f.moveTo(0,C-oa),f.lineTo(oa,C-oa),f.lineTo(oa,C))};mxCellRenderer.registerShape(ya.prototype.cst.RECT2,ya);ya.prototype.constraints=null;mxUtils.extend(Va,mxConnector);Va.prototype.origPaintEdgeShape=Va.prototype.paintEdgeShape;Va.prototype.paintEdgeShape=function(f,t){for(var B=[],u=0;u<t.length;u++)B.push(mxUtils.clone(t[u]));u=f.state.dashed;var C=f.state.fixDash;
-Va.prototype.origPaintEdgeShape.apply(this,[f,B]);3<=f.state.strokeWidth&&(B=mxUtils.getValue(this.style,"fillColor",null),null!=B&&(f.setStrokeColor(B),f.setStrokeWidth(f.state.strokeWidth-2),f.setDashed(u,C),Va.prototype.origPaintEdgeShape.apply(this,[f,t])))};mxCellRenderer.registerShape("filledEdge",Va);mxUtils.extend(Wa,mxConnector);Wa.prototype.defaultWidth=4;Wa.prototype.getEdgeWidth=function(){return Math.max(0,mxUtils.getNumber(this.style,"width",this.defaultWidth))};Wa.prototype.getFlowAnimationPath=
-function(){return mxShape.prototype.getFlowAnimationPath.call(this,2)};Wa.prototype.origPaintEdgeShape=Wa.prototype.paintEdgeShape;Wa.prototype.paintEdgeShape=function(f,t){for(var B=[],u=0;u<t.length;u++)B.push(mxUtils.clone(t[u]));u=f.state.dashed;var C=f.state.fixDash,F=this.getEdgeWidth();f.setStrokeWidth(F+2*this.strokewidth);f.setDashed(!1);Wa.prototype.origPaintEdgeShape.apply(this,[f,B]);B=mxUtils.getValue(this.style,"fillColor",null);null!=B&&(f.setStrokeWidth(F),f.setStrokeColor(B),f.setDashed(u,
-C),Wa.prototype.origPaintEdgeShape.apply(this,[f,t]))};mxCellRenderer.registerShape("pipe",Wa);mxUtils.extend(Za,mxRectangleShape);Za.prototype.size=10;Za.prototype.isRoundable=function(){return!0};Za.prototype.paintVertexShape=function(f,t,B,u,C){f.translate(t,B);t=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,null);null!=t&&t!=mxConstants.NONE&&(f.setStrokeColor("none"),f.begin(),f.rect(0,0,u,C),f.fillAndStroke(),f.setStrokeColor(this.stroke));var F=Math.max(5,parseFloat(mxUtils.getValue(this.style,
-"size",this.size)));t=C/2;B=this.strokewidth;B=this.isRounded?B/2:B;C-=B;F=Math.max(1,Math.round(u/F)-1);var I=u/(F+1),ja=I/2;f.begin();f.moveTo(0,t);if(this.isRounded){f.curveTo(.4*ja,t-.4*(t-B),.6*ja,B,ja,B);for(var O=0;O<F;O++){var va=ja+O*I,oa=va+I,bb=0==O%2?C:B;f.curveTo(va+.4*I,0==O%2?B:C,oa-.4*I,bb,oa,bb)}C=0==F%2?B:C;f.curveTo(ja+F*I+.4*ja,C,u-.4*ja,t-(C==B?1:-1)*(t-B)*.4,u,t)}else{f.lineTo(ja,B);for(O=0;O<F;O++)oa=ja+(O+1)*I,bb=0==O%2?C:B,f.lineTo(oa,bb);f.lineTo(u,t)}f.stroke()};mxCellRenderer.registerShape("zigzag",
-Za);"undefined"!==typeof StyleFormatPanel&&function(){var f=StyleFormatPanel.prototype.getCustomColors;StyleFormatPanel.prototype.getCustomColors=function(){var t=this.editorUi.getSelectionState(),B=f.apply(this,arguments);"umlFrame"==t.style.shape&&B.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return B}}();mxMarker.addMarker("dash",function(f,t,B,u,C,F,I,ja,O,va){var oa=C*(I+O+1),bb=F*(I+O+1);return function(){f.begin();f.moveTo(u.x-oa/2-bb/2,u.y-bb/
-2+oa/2);f.lineTo(u.x+bb/2-3*oa/2,u.y-3*bb/2-oa/2);f.stroke()}});mxMarker.addMarker("box",function(f,t,B,u,C,F,I,ja,O,va){var oa=C*(I+O+1),bb=F*(I+O+1),mb=u.x+oa/2,hb=u.y+bb/2;u.x-=oa;u.y-=bb;return function(){f.begin();f.moveTo(mb-oa/2-bb/2,hb-bb/2+oa/2);f.lineTo(mb-oa/2+bb/2,hb-bb/2-oa/2);f.lineTo(mb+bb/2-3*oa/2,hb-3*bb/2-oa/2);f.lineTo(mb-bb/2-3*oa/2,hb-3*bb/2+oa/2);f.close();va?f.fillAndStroke():f.stroke()}});mxMarker.addMarker("cross",function(f,t,B,u,C,F,I,ja,O,va){var oa=C*(I+O+1),bb=F*(I+O+
-1);return function(){f.begin();f.moveTo(u.x-oa/2-bb/2,u.y-bb/2+oa/2);f.lineTo(u.x+bb/2-3*oa/2,u.y-3*bb/2-oa/2);f.moveTo(u.x-oa/2+bb/2,u.y-bb/2-oa/2);f.lineTo(u.x-bb/2-3*oa/2,u.y-3*bb/2+oa/2);f.stroke()}});mxMarker.addMarker("circle",gb);mxMarker.addMarker("circlePlus",function(f,t,B,u,C,F,I,ja,O,va){var oa=u.clone(),bb=gb.apply(this,arguments),mb=C*(I+2*O),hb=F*(I+2*O);return function(){bb.apply(this,arguments);f.begin();f.moveTo(oa.x-C*O,oa.y-F*O);f.lineTo(oa.x-2*mb+C*O,oa.y-2*hb+F*O);f.moveTo(oa.x-
-mb-hb+F*O,oa.y-hb+mb-C*O);f.lineTo(oa.x+hb-mb-F*O,oa.y-hb-mb+C*O);f.stroke()}});mxMarker.addMarker("halfCircle",function(f,t,B,u,C,F,I,ja,O,va){var oa=C*(I+O+1),bb=F*(I+O+1),mb=u.clone();u.x-=oa;u.y-=bb;return function(){f.begin();f.moveTo(mb.x-bb,mb.y+oa);f.quadTo(u.x-bb,u.y+oa,u.x,u.y);f.quadTo(u.x+bb,u.y-oa,mb.x+bb,mb.y-oa);f.stroke()}});mxMarker.addMarker("async",function(f,t,B,u,C,F,I,ja,O,va){t=C*O*1.118;B=F*O*1.118;C*=I+O;F*=I+O;var oa=u.clone();oa.x-=t;oa.y-=B;u.x+=-C-t;u.y+=-F-B;return function(){f.begin();
-f.moveTo(oa.x,oa.y);ja?f.lineTo(oa.x-C-F/2,oa.y-F+C/2):f.lineTo(oa.x+F/2-C,oa.y-F-C/2);f.lineTo(oa.x-C,oa.y-F);f.close();va?f.fillAndStroke():f.stroke()}});mxMarker.addMarker("openAsync",function(f){f=null!=f?f:2;return function(t,B,u,C,F,I,ja,O,va,oa){F*=ja+va;I*=ja+va;var bb=C.clone();return function(){t.begin();t.moveTo(bb.x,bb.y);O?t.lineTo(bb.x-F-I/f,bb.y-I+F/f):t.lineTo(bb.x+I/f-F,bb.y-I-F/f);t.stroke()}}}(2));if("undefined"!==typeof mxVertexHandler){var pb=function(f,t,B){return rb(f,["width"],
-t,function(u,C,F,I,ja){ja=f.shape.getEdgeWidth()*f.view.scale+B;return new mxPoint(I.x+C*u/4+F*ja/2,I.y+F*u/4-C*ja/2)},function(u,C,F,I,ja,O){u=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ja.x,ja.y,O.x,O.y));f.style.width=Math.round(2*u)/f.view.scale-B})},rb=function(f,t,B,u,C){return nb(f,t,function(F){var I=f.absolutePoints;if(null!=I&&0<I.length){var ja=I.length-1;F=f.view.translate;var O=f.view.scale,va=B?I[0]:I[ja];I=B?I[1]:I[ja-1];ja=I.x-va.x;var oa=I.y-va.y,bb=Math.sqrt(ja*ja+oa*oa);va=u.call(this,
-bb,ja/bb,oa/bb,va,I);return new mxPoint(va.x/O-F.x,va.y/O-F.y)}return null},function(F,I,ja){var O=f.absolutePoints,va=O.length-1;F=f.view.translate;var oa=f.view.scale,bb=B?O[0]:O[va];O=B?O[1]:O[va-1];va=O.x-bb.x;var mb=O.y-bb.y,hb=Math.sqrt(va*va+mb*mb);I.x=(I.x+F.x)*oa;I.y=(I.y+F.y)*oa;C.call(this,hb,va/hb,mb/hb,bb,O,I,ja)})},ub=function(f,t){return function(B){return[rb(B,["startWidth"],!0,function(u,C,F,I,ja){ja=mxUtils.getNumber(B.style,"startWidth",f)*B.view.scale+t;return new mxPoint(I.x+
-C*u/4+F*ja/2,I.y+F*u/4-C*ja/2)},function(u,C,F,I,ja,O){u=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ja.x,ja.y,O.x,O.y));B.style.startWidth=Math.round(2*u)/B.view.scale-t})]}},sb=function(f){return function(t){return[nb(t,["arrowWidth","arrowSize"],function(B){var u=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"arrowWidth",Ma.prototype.arrowWidth))),C=Math.max(0,Math.min(f,mxUtils.getValue(this.state.style,"arrowSize",Ma.prototype.arrowSize)));return new mxPoint(B.x+(1-C)*B.width,B.y+(1-u)*B.height/
-2)},function(B,u){this.state.style.arrowWidth=Math.max(0,Math.min(1,Math.abs(B.y+B.height/2-u.y)/B.height*2));this.state.style.arrowSize=Math.max(0,Math.min(f,(B.x+B.width-u.x)/B.width))})]}},tb=function(f){return function(t){return[nb(t,["size"],function(B){var u=Math.max(0,Math.min(.5*B.height,parseFloat(mxUtils.getValue(this.state.style,"size",f))));return new mxPoint(B.x,B.y+u)},function(B,u){this.state.style.size=Math.max(0,u.y-B.y)},!0)]}},vb=function(f,t,B){return function(u){var C=[nb(u,["size"],
-function(F){var I=Math.max(0,Math.min(F.width,Math.min(F.height,parseFloat(mxUtils.getValue(this.state.style,"size",t)))))*f;return new mxPoint(F.x+I,F.y+I)},function(F,I){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(F.width,I.x-F.x),Math.min(F.height,I.y-F.y)))/f)},!1)];B&&mxUtils.getValue(u.style,mxConstants.STYLE_ROUNDED,!1)&&C.push(xb(u));return C}},Ab=function(f,t,B,u,C){B=null!=B?B:.5;return function(F){var I=[nb(F,["size"],function(ja){var O=null!=C?"0"!=mxUtils.getValue(this.state.style,
-"fixedSize","0"):null,va=parseFloat(mxUtils.getValue(this.state.style,"size",O?C:f));return new mxPoint(ja.x+Math.max(0,Math.min(.5*ja.width,va*(O?1:ja.width))),ja.getCenterY())},function(ja,O,va){ja=null!=C&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?O.x-ja.x:Math.max(0,Math.min(B,(O.x-ja.x)/ja.width));this.state.style.size=ja},!1,u)];t&&mxUtils.getValue(F.style,mxConstants.STYLE_ROUNDED,!1)&&I.push(xb(F));return I}},wb=function(f,t,B){f=null!=f?f:.5;return function(u){var C=[nb(u,["size"],
-function(F){var I=null!=B?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,ja=Math.max(0,parseFloat(mxUtils.getValue(this.state.style,"size",I?B:t)));return new mxPoint(F.x+Math.min(.75*F.width*f,ja*(I?.75:.75*F.width)),F.y+F.height/4)},function(F,I){F=null!=B&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?I.x-F.x:Math.max(0,Math.min(f,(I.x-F.x)/F.width*.75));this.state.style.size=F},!1,!0)];mxUtils.getValue(u.style,mxConstants.STYLE_ROUNDED,!1)&&C.push(xb(u));return C}},zb=
-function(){return function(f){var t=[];mxUtils.getValue(f.style,mxConstants.STYLE_ROUNDED,!1)&&t.push(xb(f));return t}},xb=function(f,t){return nb(f,[mxConstants.STYLE_ARCSIZE],function(B){var u=null!=t?t:B.height/8;if("1"==mxUtils.getValue(f.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)){var C=mxUtils.getValue(f.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;return new mxPoint(B.x+B.width-Math.min(B.width/2,C),B.y+u)}C=Math.max(0,parseFloat(mxUtils.getValue(f.style,mxConstants.STYLE_ARCSIZE,
-100*mxConstants.RECTANGLE_ROUNDING_FACTOR)))/100;return new mxPoint(B.x+B.width-Math.min(Math.max(B.width/2,B.height/2),Math.min(B.width,B.height)*C),B.y+u)},function(B,u,C){"1"==mxUtils.getValue(f.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.max(0,Math.min(B.width,2*(B.x+B.width-u.x)))):this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.min(50,Math.max(0,100*(B.width-u.x+B.x)/Math.min(B.width,B.height))))})},nb=function(f,t,B,u,
-C,F,I){var ja=new mxHandle(f,null,mxVertexHandler.prototype.secondaryHandleImage);ja.execute=function(va){for(var oa=0;oa<t.length;oa++)this.copyStyle(t[oa]);I&&I(va)};ja.getPosition=B;ja.setPosition=u;ja.ignoreGrid=null!=C?C:!0;if(F){var O=ja.positionChanged;ja.positionChanged=function(){O.apply(this,arguments);f.view.invalidate(this.state.cell);f.view.validate()}}return ja},Cb={link:function(f){return[pb(f,!0,10),pb(f,!1,10)]},pipe:function(f){return[pb(f,!0,10),pb(f,!1,10)]},flexArrow:function(f){var t=
-f.view.graph.gridSize/f.view.scale,B=[];mxUtils.getValue(f.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE&&(B.push(rb(f,["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!0,function(u,C,F,I,ja){u=(f.shape.getEdgeWidth()-f.shape.strokewidth)*f.view.scale;ja=3*mxUtils.getNumber(f.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*f.view.scale;return new mxPoint(I.x+C*(ja+f.shape.strokewidth*f.view.scale)+F*u/2,I.y+F*(ja+f.shape.strokewidth*f.view.scale)-
-C*u/2)},function(u,C,F,I,ja,O,va){u=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ja.x,ja.y,O.x,O.y));C=mxUtils.ptLineDist(I.x,I.y,I.x+F,I.y-C,O.x,O.y);f.style[mxConstants.STYLE_STARTSIZE]=Math.round(100*(C-f.shape.strokewidth)/3)/100/f.view.scale;f.style.width=Math.round(2*u)/f.view.scale;if(mxEvent.isShiftDown(va.getEvent())||mxEvent.isControlDown(va.getEvent()))f.style[mxConstants.STYLE_ENDSIZE]=f.style[mxConstants.STYLE_STARTSIZE];mxEvent.isAltDown(va.getEvent())||Math.abs(parseFloat(f.style[mxConstants.STYLE_STARTSIZE])-
-parseFloat(f.style[mxConstants.STYLE_ENDSIZE]))<t/6&&(f.style[mxConstants.STYLE_STARTSIZE]=f.style[mxConstants.STYLE_ENDSIZE])})),B.push(rb(f,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!0,function(u,C,F,I,ja){u=(f.shape.getStartArrowWidth()-f.shape.strokewidth)*f.view.scale;ja=3*mxUtils.getNumber(f.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*f.view.scale;return new mxPoint(I.x+C*(ja+f.shape.strokewidth*f.view.scale)+F*u/2,I.y+F*(ja+f.shape.strokewidth*
-f.view.scale)-C*u/2)},function(u,C,F,I,ja,O,va){u=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ja.x,ja.y,O.x,O.y));C=mxUtils.ptLineDist(I.x,I.y,I.x+F,I.y-C,O.x,O.y);f.style[mxConstants.STYLE_STARTSIZE]=Math.round(100*(C-f.shape.strokewidth)/3)/100/f.view.scale;f.style.startWidth=Math.max(0,Math.round(2*u)-f.shape.getEdgeWidth())/f.view.scale;if(mxEvent.isShiftDown(va.getEvent())||mxEvent.isControlDown(va.getEvent()))f.style[mxConstants.STYLE_ENDSIZE]=f.style[mxConstants.STYLE_STARTSIZE],f.style.endWidth=
+F.gradientColor2:mxUtils.getValue(this.style,"gradientColor2","none"),Kb=F&&F.gradientDirection2?F.gradientDirection2:mxUtils.getValue(this.style,"gradientDirection2","south"),Lb=F&&F.opacity?F.opacity:mxUtils.getValue(this.style,"opacity","100"),Mb=Math.max(0,Math.min(50,O));F=ya.prototype;f.setDashed(bb);mb&&""!=mb&&f.setDashPattern(mb);f.setStrokeWidth(Jb);O=Math.min(.5*C,.5*v,O);ja||(O=Mb*Math.min(v,C)/100);O=Math.min(O,.5*Math.min(v,C));ja||(oa=Math.min(hb*Math.min(v,C)/100));oa=Math.min(oa,
+.5*Math.min(v,C)-O);(Ga||La||Ja||Ia)&&"frame"!=va&&(f.begin(),Ga?F.moveNW(f,t,B,v,C,I,Xa,O,Ia):f.moveTo(0,0),Ga&&F.paintNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),La&&F.paintNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),Ja&&F.paintSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,v,C,I,eb,O,Ia),Ia&&F.paintSW(f,t,B,v,C,I,eb,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),f.close(),f.fill(),f.setShadow(!1),f.setFillColor(Gb),bb=ja=Lb,"none"==Gb&&(ja=0),"none"==Hb&&(bb=0),f.setGradient(Gb,
+Hb,0,0,v,C,Kb,ja,bb),f.begin(),Ga?F.moveNWInner(f,t,B,v,C,I,Xa,O,oa,Ga,Ia):f.moveTo(oa,0),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia),Ia&&Ja&&F.paintSWInner(f,t,B,v,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja),Ja&&La&&F.paintSEInner(f,t,B,v,C,I,db,O,oa),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La),La&&Ga&&F.paintNEInner(f,t,B,v,C,I,cb,O,oa),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga),Ga&&Ia&&F.paintNWInner(f,t,B,v,C,I,Xa,O,oa),f.fill(),"none"==Ib&&(f.begin(),F.paintFolds(f,t,B,v,C,
+I,Xa,cb,db,eb,O,Ga,La,Ja,Ia),f.stroke()));Ga||La||Ja||!Ia?Ga||La||!Ja||Ia?!Ga&&!La&&Ja&&Ia?"frame"!=va?(f.begin(),F.moveSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,v,C,I,eb,O,Ia),F.paintSW(f,t,B,v,C,I,eb,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),"double"==va&&(F.moveNWInner(f,t,B,v,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia),F.paintSWInner(f,t,B,v,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja)),f.stroke()):(f.begin(),F.moveSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,
+v,C,I,eb,O,Ia),F.paintSW(f,t,B,v,C,I,eb,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),F.lineNWInner(f,t,B,v,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia),F.paintSWInner(f,t,B,v,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja),f.close(),f.fillAndStroke()):Ga||!La||Ja||Ia?!Ga&&La&&!Ja&&Ia?"frame"!=va?(f.begin(),F.moveSW(f,t,B,v,C,I,Xa,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),"double"==va&&(F.moveNWInner(f,t,B,v,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia)),f.stroke(),
+f.begin(),F.moveNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),"double"==va&&(F.moveSEInner(f,t,B,v,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La)),f.stroke()):(f.begin(),F.moveSW(f,t,B,v,C,I,Xa,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),F.lineNWInner(f,t,B,v,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia),f.close(),f.fillAndStroke(),f.begin(),F.moveNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),F.lineSEInner(f,t,B,v,C,I,db,O,oa,Ja),F.paintRightInner(f,
+t,B,v,C,I,cb,O,oa,Ga,La),f.close(),f.fillAndStroke()):!Ga&&La&&Ja&&!Ia?"frame"!=va?(f.begin(),F.moveNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),F.paintSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,v,C,I,eb,O,Ia),"double"==va&&(F.moveSWInner(f,t,B,v,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,v,C,I,db,O,oa),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La)),f.stroke()):(f.begin(),F.moveNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),F.paintSE(f,
+t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,v,C,I,eb,O,Ia),F.lineSWInner(f,t,B,v,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,v,C,I,db,O,oa),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La),f.close(),f.fillAndStroke()):!Ga&&La&&Ja&&Ia?"frame"!=va?(f.begin(),F.moveNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),F.paintSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,v,C,I,eb,O,Ia),F.paintSW(f,t,B,v,C,I,eb,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),"double"==va&&(F.moveNWInner(f,
+t,B,v,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia),F.paintSWInner(f,t,B,v,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,v,C,I,db,O,oa),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La)),f.stroke()):(f.begin(),F.moveNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),F.paintSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,v,C,I,eb,O,Ia),F.paintSW(f,t,B,v,C,I,eb,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),F.lineNWInner(f,t,B,v,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,
+t,B,v,C,I,eb,O,oa,Ja,Ia),F.paintSWInner(f,t,B,v,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,v,C,I,db,O,oa),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La),f.close(),f.fillAndStroke()):!Ga||La||Ja||Ia?Ga&&!La&&!Ja&&Ia?"frame"!=va?(f.begin(),F.moveSW(f,t,B,v,C,I,eb,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),F.paintNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),"double"==va&&(F.moveNEInner(f,t,B,v,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,
+t,B,v,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia)),f.stroke()):(f.begin(),F.moveSW(f,t,B,v,C,I,eb,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),F.paintNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),F.lineNEInner(f,t,B,v,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,t,B,v,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia),f.close(),f.fillAndStroke()):Ga&&!La&&Ja&&!Ia?"frame"!=va?(f.begin(),F.moveNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,
+La),"double"==va&&(F.moveNEInner(f,t,B,v,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga)),f.stroke(),f.begin(),F.moveSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,v,C,I,eb,O,Ia),"double"==va&&(F.moveSWInner(f,t,B,v,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja)),f.stroke()):(f.begin(),F.moveNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),F.lineNEInner(f,t,B,v,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga),f.close(),f.fillAndStroke(),f.begin(),F.moveSE(f,
+t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,v,C,I,eb,O,Ia),F.lineSWInner(f,t,B,v,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja),f.close(),f.fillAndStroke()):Ga&&!La&&Ja&&Ia?"frame"!=va?(f.begin(),F.moveSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,v,C,I,eb,O,Ia),F.paintSW(f,t,B,v,C,I,eb,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),F.paintNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),"double"==va&&(F.moveNEInner(f,t,B,v,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,
+t,B,v,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia),F.paintSWInner(f,t,B,v,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja)),f.stroke()):(f.begin(),F.moveSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,v,C,I,eb,O,Ia),F.paintSW(f,t,B,v,C,I,eb,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),F.paintNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),F.lineNEInner(f,t,B,v,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,t,B,v,C,I,Xa,O,oa),F.paintLeftInner(f,t,
+B,v,C,I,eb,O,oa,Ja,Ia),F.paintSWInner(f,t,B,v,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja),f.close(),f.fillAndStroke()):Ga&&La&&!Ja&&!Ia?"frame"!=va?(f.begin(),F.moveNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),F.paintNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),"double"==va&&(F.moveSEInner(f,t,B,v,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,v,C,I,cb,O,oa),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga)),f.stroke()):(f.begin(),
+F.moveNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),F.paintNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),F.lineSEInner(f,t,B,v,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,v,C,I,cb,O,oa),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga),f.close(),f.fillAndStroke()):Ga&&La&&!Ja&&Ia?"frame"!=va?(f.begin(),F.moveSW(f,t,B,v,C,I,eb,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),F.paintNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),F.paintNE(f,t,B,v,
+C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),"double"==va&&(F.moveSEInner(f,t,B,v,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,v,C,I,cb,O,oa),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,t,B,v,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia)),f.stroke()):(f.begin(),F.moveSW(f,t,B,v,C,I,eb,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),F.paintNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),F.paintNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,
+B,v,C,I,db,O,Ja),F.lineSEInner(f,t,B,v,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,v,C,I,cb,O,oa),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,t,B,v,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia),f.close(),f.fillAndStroke()):Ga&&La&&Ja&&!Ia?"frame"!=va?(f.begin(),F.moveNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),F.paintNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),F.paintSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,
+t,B,v,C,I,eb,O,Ia),"double"==va&&(F.moveSWInner(f,t,B,v,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,v,C,I,db,O,oa),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,v,C,I,cb,O,oa),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga)),f.stroke()):(f.begin(),F.moveNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),F.paintNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),F.paintSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,v,C,I,eb,O,Ia),F.lineSWInner(f,
+t,B,v,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,v,C,I,db,O,oa),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,v,C,I,cb,O,oa),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga),f.close(),f.fillAndStroke()):Ga&&La&&Ja&&Ia&&("frame"!=va?(f.begin(),F.moveNW(f,t,B,v,C,I,Xa,O,Ia),F.paintNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),F.paintNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),F.paintSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,
+t,B,v,C,I,eb,O,Ia),F.paintSW(f,t,B,v,C,I,eb,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),f.close(),"double"==va&&(F.moveSWInner(f,t,B,v,C,I,eb,O,oa,Ia),F.paintSWInner(f,t,B,v,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,v,C,I,db,O,oa),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,v,C,I,cb,O,oa),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,t,B,v,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia),f.close()),f.stroke()):(f.begin(),
+F.moveNW(f,t,B,v,C,I,Xa,O,Ia),F.paintNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),F.paintNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),F.paintSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,v,C,I,eb,O,Ia),F.paintSW(f,t,B,v,C,I,eb,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),f.close(),F.moveSWInner(f,t,B,v,C,I,eb,O,oa,Ia),F.paintSWInner(f,t,B,v,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,v,C,I,db,O,oa),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La),
+F.paintNEInner(f,t,B,v,C,I,cb,O,oa),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,t,B,v,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia),f.close(),f.fillAndStroke())):"frame"!=va?(f.begin(),F.moveNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),"double"==va&&(F.moveNEInner(f,t,B,v,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga)),f.stroke()):(f.begin(),F.moveNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),F.lineNEInner(f,t,B,v,C,I,cb,O,oa,La),F.paintTopInner(f,
+t,B,v,C,I,Xa,O,oa,Ia,Ga),f.close(),f.fillAndStroke()):"frame"!=va?(f.begin(),F.moveNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),"double"==va&&(F.moveSEInner(f,t,B,v,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La)),f.stroke()):(f.begin(),F.moveNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),F.lineSEInner(f,t,B,v,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La),f.close(),f.fillAndStroke()):"frame"!=va?(f.begin(),F.moveSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,
+t,B,v,C,I,eb,O,Ia),"double"==va&&(F.moveSWInner(f,t,B,v,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja)),f.stroke()):(f.begin(),F.moveSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,v,C,I,eb,O,Ia),F.lineSWInner(f,t,B,v,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja),f.close(),f.fillAndStroke()):"frame"!=va?(f.begin(),F.moveSW(f,t,B,v,C,I,Xa,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),"double"==va&&(F.moveNWInner(f,t,B,v,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,
+Ia)),f.stroke()):(f.begin(),F.moveSW(f,t,B,v,C,I,Xa,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),F.lineNWInner(f,t,B,v,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia),f.close(),f.fillAndStroke());f.begin();F.paintFolds(f,t,B,v,C,I,Xa,cb,db,eb,O,Ga,La,Ja,Ia);f.stroke()};ya.prototype.moveNW=function(f,t,B,v,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.moveTo(0,0):f.moveTo(0,ja)};ya.prototype.moveNE=function(f,t,B,v,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.moveTo(v,
+0):f.moveTo(v-ja,0)};ya.prototype.moveSE=function(f,t,B,v,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.moveTo(v,C):f.moveTo(v,C-ja)};ya.prototype.moveSW=function(f,t,B,v,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.moveTo(0,C):f.moveTo(ja,C)};ya.prototype.paintNW=function(f,t,B,v,C,F,I,ja,O){if(O)if("rounded"==I||"default"==I&&"rounded"==F||"invRound"==I||"default"==I&&"invRound"==F){t=0;if("rounded"==I||"default"==I&&"rounded"==F)t=1;f.arcTo(ja,ja,0,0,t,ja,0)}else("snip"==
+I||"default"==I&&"snip"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(ja,0);else f.lineTo(0,0)};ya.prototype.paintTop=function(f,t,B,v,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.lineTo(v,0):f.lineTo(v-ja,0)};ya.prototype.paintNE=function(f,t,B,v,C,F,I,ja,O){if(O)if("rounded"==I||"default"==I&&"rounded"==F||"invRound"==I||"default"==I&&"invRound"==F){t=0;if("rounded"==I||"default"==I&&"rounded"==F)t=1;f.arcTo(ja,ja,0,0,t,v,ja)}else("snip"==I||"default"==I&&"snip"==F||"fold"==I||"default"==
+I&&"fold"==F)&&f.lineTo(v,ja);else f.lineTo(v,0)};ya.prototype.paintRight=function(f,t,B,v,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.lineTo(v,C):f.lineTo(v,C-ja)};ya.prototype.paintLeft=function(f,t,B,v,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.lineTo(0,0):f.lineTo(0,ja)};ya.prototype.paintSE=function(f,t,B,v,C,F,I,ja,O){if(O)if("rounded"==I||"default"==I&&"rounded"==F||"invRound"==I||"default"==I&&"invRound"==F){t=0;if("rounded"==I||"default"==I&&"rounded"==F)t=1;f.arcTo(ja,
+ja,0,0,t,v-ja,C)}else("snip"==I||"default"==I&&"snip"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(v-ja,C);else f.lineTo(v,C)};ya.prototype.paintBottom=function(f,t,B,v,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.lineTo(0,C):f.lineTo(ja,C)};ya.prototype.paintSW=function(f,t,B,v,C,F,I,ja,O){if(O)if("rounded"==I||"default"==I&&"rounded"==F||"invRound"==I||"default"==I&&"invRound"==F){t=0;if("rounded"==I||"default"==I&&"rounded"==F)t=1;f.arcTo(ja,ja,0,0,t,0,C-ja)}else("snip"==I||"default"==
+I&&"snip"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(0,C-ja);else f.lineTo(0,C)};ya.prototype.paintNWInner=function(f,t,B,v,C,F,I,ja,O){if("rounded"==I||"default"==I&&"rounded"==F)f.arcTo(ja-.5*O,ja-.5*O,0,0,0,O,.5*O+ja);else if("invRound"==I||"default"==I&&"invRound"==F)f.arcTo(ja+O,ja+O,0,0,1,O,O+ja);else if("snip"==I||"default"==I&&"snip"==F)f.lineTo(O,.5*O+ja);else if("fold"==I||"default"==I&&"fold"==F)f.lineTo(O+ja,O+ja),f.lineTo(O,O+ja)};ya.prototype.paintTopInner=function(f,t,B,v,C,
+F,I,ja,O,va,oa){va||oa?!va&&oa?f.lineTo(0,O):va&&!oa?f.lineTo(O,0):va?"square"==I||"default"==I&&"square"==F?f.lineTo(O,O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(ja+.5*O,O):f.lineTo(ja+O,O):f.lineTo(0,O):f.lineTo(0,0)};ya.prototype.paintNEInner=function(f,t,B,v,C,F,I,ja,O){if("rounded"==I||"default"==I&&"rounded"==F)f.arcTo(ja-.5*O,ja-.5*O,0,0,0,v-ja-.5*O,O);else if("invRound"==I||"default"==I&&"invRound"==F)f.arcTo(ja+O,ja+O,0,0,1,v-ja-O,O);else if("snip"==
+I||"default"==I&&"snip"==F)f.lineTo(v-ja-.5*O,O);else if("fold"==I||"default"==I&&"fold"==F)f.lineTo(v-ja-O,ja+O),f.lineTo(v-ja-O,O)};ya.prototype.paintRightInner=function(f,t,B,v,C,F,I,ja,O,va,oa){va||oa?!va&&oa?f.lineTo(v-O,0):va&&!oa?f.lineTo(v,O):va?"square"==I||"default"==I&&"square"==F?f.lineTo(v-O,O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(v-O,ja+.5*O):f.lineTo(v-O,ja+O):f.lineTo(v-O,0):f.lineTo(v,0)};ya.prototype.paintLeftInner=function(f,t,B,
+v,C,F,I,ja,O,va,oa){va||oa?!va&&oa?f.lineTo(O,C):va&&!oa?f.lineTo(0,C-O):va?"square"==I||"default"==I&&"square"==F?f.lineTo(O,C-O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(O,C-ja-.5*O):f.lineTo(O,C-ja-O):f.lineTo(O,C):f.lineTo(0,C)};ya.prototype.paintSEInner=function(f,t,B,v,C,F,I,ja,O){if("rounded"==I||"default"==I&&"rounded"==F)f.arcTo(ja-.5*O,ja-.5*O,0,0,0,v-O,C-ja-.5*O);else if("invRound"==I||"default"==I&&"invRound"==F)f.arcTo(ja+O,ja+O,0,0,1,v-O,
+C-ja-O);else if("snip"==I||"default"==I&&"snip"==F)f.lineTo(v-O,C-ja-.5*O);else if("fold"==I||"default"==I&&"fold"==F)f.lineTo(v-ja-O,C-ja-O),f.lineTo(v-O,C-ja-O)};ya.prototype.paintBottomInner=function(f,t,B,v,C,F,I,ja,O,va,oa){va||oa?!va&&oa?f.lineTo(v,C-O):va&&!oa?f.lineTo(v-O,C):"square"==I||"default"==I&&"square"==F||!va?f.lineTo(v-O,C-O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(v-ja-.5*O,C-O):f.lineTo(v-ja-O,C-O):f.lineTo(v,C)};ya.prototype.paintSWInner=
+function(f,t,B,v,C,F,I,ja,O,va){if(!va)f.lineTo(O,C);else if("square"==I||"default"==I&&"square"==F)f.lineTo(O,C-O);else if("rounded"==I||"default"==I&&"rounded"==F)f.arcTo(ja-.5*O,ja-.5*O,0,0,0,ja+.5*O,C-O);else if("invRound"==I||"default"==I&&"invRound"==F)f.arcTo(ja+O,ja+O,0,0,1,ja+O,C-O);else if("snip"==I||"default"==I&&"snip"==F)f.lineTo(ja+.5*O,C-O);else if("fold"==I||"default"==I&&"fold"==F)f.lineTo(O+ja,C-ja-O),f.lineTo(O+ja,C-O)};ya.prototype.moveSWInner=function(f,t,B,v,C,F,I,ja,O,va){va?
+"square"==I||"default"==I&&"square"==F?f.moveTo(O,C-O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.moveTo(O,C-ja-.5*O):("invRound"==I||"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.moveTo(O,C-ja-O):f.moveTo(0,C-O)};ya.prototype.lineSWInner=function(f,t,B,v,C,F,I,ja,O,va){va?"square"==I||"default"==I&&"square"==F?f.lineTo(O,C-O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(O,C-ja-.5*O):("invRound"==I||
+"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(O,C-ja-O):f.lineTo(0,C-O)};ya.prototype.moveSEInner=function(f,t,B,v,C,F,I,ja,O,va){va?"square"==I||"default"==I&&"square"==F?f.moveTo(v-O,C-O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.moveTo(v-O,C-ja-.5*O):("invRound"==I||"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.moveTo(v-O,C-ja-O):f.moveTo(v-O,C)};ya.prototype.lineSEInner=function(f,t,B,v,C,F,I,ja,O,va){va?"square"==
+I||"default"==I&&"square"==F?f.lineTo(v-O,C-O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(v-O,C-ja-.5*O):("invRound"==I||"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(v-O,C-ja-O):f.lineTo(v-O,C)};ya.prototype.moveNEInner=function(f,t,B,v,C,F,I,ja,O,va){va?"square"==I||"default"==I&&"square"==F||va?f.moveTo(v-O,O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.moveTo(v-O,ja+.5*O):("invRound"==I||
+"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.moveTo(v-O,ja+O):f.moveTo(v,O)};ya.prototype.lineNEInner=function(f,t,B,v,C,F,I,ja,O,va){va?"square"==I||"default"==I&&"square"==F||va?f.lineTo(v-O,O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(v-O,ja+.5*O):("invRound"==I||"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(v-O,ja+O):f.lineTo(v,O)};ya.prototype.moveNWInner=function(f,t,B,v,C,F,I,ja,O,va,oa){va||oa?
+!va&&oa?f.moveTo(O,0):va&&!oa?f.moveTo(0,O):"square"==I||"default"==I&&"square"==F?f.moveTo(O,O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.moveTo(O,ja+.5*O):("invRound"==I||"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.moveTo(O,ja+O):f.moveTo(0,0)};ya.prototype.lineNWInner=function(f,t,B,v,C,F,I,ja,O,va,oa){va||oa?!va&&oa?f.lineTo(O,0):va&&!oa?f.lineTo(0,O):"square"==I||"default"==I&&"square"==F?f.lineTo(O,O):"rounded"==I||"default"==I&&"rounded"==
+F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(O,ja+.5*O):("invRound"==I||"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(O,ja+O):f.lineTo(0,0)};ya.prototype.paintFolds=function(f,t,B,v,C,F,I,ja,O,va,oa,bb,mb,hb,Ga){if("fold"==F||"fold"==I||"fold"==ja||"fold"==O||"fold"==va)("fold"==I||"default"==I&&"fold"==F)&&bb&&Ga&&(f.moveTo(0,oa),f.lineTo(oa,oa),f.lineTo(oa,0)),("fold"==ja||"default"==ja&&"fold"==F)&&bb&&mb&&(f.moveTo(v-oa,0),f.lineTo(v-oa,oa),f.lineTo(v,oa)),("fold"==
+O||"default"==O&&"fold"==F)&&hb&&mb&&(f.moveTo(v-oa,C),f.lineTo(v-oa,C-oa),f.lineTo(v,C-oa)),("fold"==va||"default"==va&&"fold"==F)&&hb&&Ga&&(f.moveTo(0,C-oa),f.lineTo(oa,C-oa),f.lineTo(oa,C))};mxCellRenderer.registerShape(ya.prototype.cst.RECT2,ya);ya.prototype.constraints=null;mxUtils.extend(Va,mxConnector);Va.prototype.origPaintEdgeShape=Va.prototype.paintEdgeShape;Va.prototype.paintEdgeShape=function(f,t){for(var B=[],v=0;v<t.length;v++)B.push(mxUtils.clone(t[v]));v=f.state.dashed;var C=f.state.fixDash;
+Va.prototype.origPaintEdgeShape.apply(this,[f,B]);3<=f.state.strokeWidth&&(B=mxUtils.getValue(this.style,"fillColor",null),null!=B&&(f.setStrokeColor(B),f.setStrokeWidth(f.state.strokeWidth-2),f.setDashed(v,C),Va.prototype.origPaintEdgeShape.apply(this,[f,t])))};mxCellRenderer.registerShape("filledEdge",Va);mxUtils.extend(Wa,mxConnector);Wa.prototype.defaultWidth=4;Wa.prototype.getEdgeWidth=function(){return Math.max(0,mxUtils.getNumber(this.style,"width",this.defaultWidth))};Wa.prototype.getFlowAnimationPath=
+function(){return mxShape.prototype.getFlowAnimationPath.call(this,2)};Wa.prototype.origPaintEdgeShape=Wa.prototype.paintEdgeShape;Wa.prototype.paintEdgeShape=function(f,t){for(var B=[],v=0;v<t.length;v++)B.push(mxUtils.clone(t[v]));v=f.state.dashed;var C=f.state.fixDash,F=this.getEdgeWidth();f.setStrokeWidth(F+2*this.strokewidth);f.setDashed(!1);Wa.prototype.origPaintEdgeShape.apply(this,[f,B]);B=mxUtils.getValue(this.style,"fillColor",null);null!=B&&(f.setStrokeWidth(F),f.setStrokeColor(B),f.setDashed(v,
+C),Wa.prototype.origPaintEdgeShape.apply(this,[f,t]))};mxCellRenderer.registerShape("pipe",Wa);mxUtils.extend(Za,mxRectangleShape);Za.prototype.size=10;Za.prototype.isRoundable=function(){return!0};Za.prototype.paintVertexShape=function(f,t,B,v,C){f.translate(t,B);t=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,null);null!=t&&t!=mxConstants.NONE&&(f.setStrokeColor("none"),f.begin(),f.rect(0,0,v,C),f.fillAndStroke(),f.setStrokeColor(this.stroke));var F=Math.max(5,parseFloat(mxUtils.getValue(this.style,
+"size",this.size)));t=C/2;B=this.strokewidth;B=this.isRounded?B/2:B;C-=B;F=Math.max(1,Math.round(v/F)-1);var I=v/(F+1),ja=I/2;f.begin();f.moveTo(0,t);if(this.isRounded){f.curveTo(.4*ja,t-.4*(t-B),.6*ja,B,ja,B);for(var O=0;O<F;O++){var va=ja+O*I,oa=va+I,bb=0==O%2?C:B;f.curveTo(va+.4*I,0==O%2?B:C,oa-.4*I,bb,oa,bb)}C=0==F%2?B:C;f.curveTo(ja+F*I+.4*ja,C,v-.4*ja,t-(C==B?1:-1)*(t-B)*.4,v,t)}else{f.lineTo(ja,B);for(O=0;O<F;O++)oa=ja+(O+1)*I,bb=0==O%2?C:B,f.lineTo(oa,bb);f.lineTo(v,t)}f.stroke()};mxCellRenderer.registerShape("zigzag",
+Za);"undefined"!==typeof StyleFormatPanel&&function(){var f=StyleFormatPanel.prototype.getCustomColors;StyleFormatPanel.prototype.getCustomColors=function(){var t=this.editorUi.getSelectionState(),B=f.apply(this,arguments);"umlFrame"==t.style.shape&&B.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return B}}();mxMarker.addMarker("dash",function(f,t,B,v,C,F,I,ja,O,va){var oa=C*(I+O+1),bb=F*(I+O+1);return function(){f.begin();f.moveTo(v.x-oa/2-bb/2,v.y-bb/
+2+oa/2);f.lineTo(v.x+bb/2-3*oa/2,v.y-3*bb/2-oa/2);f.stroke()}});mxMarker.addMarker("box",function(f,t,B,v,C,F,I,ja,O,va){var oa=C*(I+O+1),bb=F*(I+O+1),mb=v.x+oa/2,hb=v.y+bb/2;v.x-=oa;v.y-=bb;return function(){f.begin();f.moveTo(mb-oa/2-bb/2,hb-bb/2+oa/2);f.lineTo(mb-oa/2+bb/2,hb-bb/2-oa/2);f.lineTo(mb+bb/2-3*oa/2,hb-3*bb/2-oa/2);f.lineTo(mb-bb/2-3*oa/2,hb-3*bb/2+oa/2);f.close();va?f.fillAndStroke():f.stroke()}});mxMarker.addMarker("cross",function(f,t,B,v,C,F,I,ja,O,va){var oa=C*(I+O+1),bb=F*(I+O+
+1);return function(){f.begin();f.moveTo(v.x-oa/2-bb/2,v.y-bb/2+oa/2);f.lineTo(v.x+bb/2-3*oa/2,v.y-3*bb/2-oa/2);f.moveTo(v.x-oa/2+bb/2,v.y-bb/2-oa/2);f.lineTo(v.x-bb/2-3*oa/2,v.y-3*bb/2+oa/2);f.stroke()}});mxMarker.addMarker("circle",gb);mxMarker.addMarker("circlePlus",function(f,t,B,v,C,F,I,ja,O,va){var oa=v.clone(),bb=gb.apply(this,arguments),mb=C*(I+2*O),hb=F*(I+2*O);return function(){bb.apply(this,arguments);f.begin();f.moveTo(oa.x-C*O,oa.y-F*O);f.lineTo(oa.x-2*mb+C*O,oa.y-2*hb+F*O);f.moveTo(oa.x-
+mb-hb+F*O,oa.y-hb+mb-C*O);f.lineTo(oa.x+hb-mb-F*O,oa.y-hb-mb+C*O);f.stroke()}});mxMarker.addMarker("halfCircle",function(f,t,B,v,C,F,I,ja,O,va){var oa=C*(I+O+1),bb=F*(I+O+1),mb=v.clone();v.x-=oa;v.y-=bb;return function(){f.begin();f.moveTo(mb.x-bb,mb.y+oa);f.quadTo(v.x-bb,v.y+oa,v.x,v.y);f.quadTo(v.x+bb,v.y-oa,mb.x+bb,mb.y-oa);f.stroke()}});mxMarker.addMarker("async",function(f,t,B,v,C,F,I,ja,O,va){t=C*O*1.118;B=F*O*1.118;C*=I+O;F*=I+O;var oa=v.clone();oa.x-=t;oa.y-=B;v.x+=-C-t;v.y+=-F-B;return function(){f.begin();
+f.moveTo(oa.x,oa.y);ja?f.lineTo(oa.x-C-F/2,oa.y-F+C/2):f.lineTo(oa.x+F/2-C,oa.y-F-C/2);f.lineTo(oa.x-C,oa.y-F);f.close();va?f.fillAndStroke():f.stroke()}});mxMarker.addMarker("openAsync",function(f){f=null!=f?f:2;return function(t,B,v,C,F,I,ja,O,va,oa){F*=ja+va;I*=ja+va;var bb=C.clone();return function(){t.begin();t.moveTo(bb.x,bb.y);O?t.lineTo(bb.x-F-I/f,bb.y-I+F/f):t.lineTo(bb.x+I/f-F,bb.y-I-F/f);t.stroke()}}}(2));if("undefined"!==typeof mxVertexHandler){var pb=function(f,t,B){return rb(f,["width"],
+t,function(v,C,F,I,ja){ja=f.shape.getEdgeWidth()*f.view.scale+B;return new mxPoint(I.x+C*v/4+F*ja/2,I.y+F*v/4-C*ja/2)},function(v,C,F,I,ja,O){v=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ja.x,ja.y,O.x,O.y));f.style.width=Math.round(2*v)/f.view.scale-B})},rb=function(f,t,B,v,C){return nb(f,t,function(F){var I=f.absolutePoints;if(null!=I&&0<I.length){var ja=I.length-1;F=f.view.translate;var O=f.view.scale,va=B?I[0]:I[ja];I=B?I[1]:I[ja-1];ja=I.x-va.x;var oa=I.y-va.y,bb=Math.sqrt(ja*ja+oa*oa);va=v.call(this,
+bb,ja/bb,oa/bb,va,I);return new mxPoint(va.x/O-F.x,va.y/O-F.y)}return null},function(F,I,ja){var O=f.absolutePoints,va=O.length-1;F=f.view.translate;var oa=f.view.scale,bb=B?O[0]:O[va];O=B?O[1]:O[va-1];va=O.x-bb.x;var mb=O.y-bb.y,hb=Math.sqrt(va*va+mb*mb);I.x=(I.x+F.x)*oa;I.y=(I.y+F.y)*oa;C.call(this,hb,va/hb,mb/hb,bb,O,I,ja)})},ub=function(f,t){return function(B){return[rb(B,["startWidth"],!0,function(v,C,F,I,ja){ja=mxUtils.getNumber(B.style,"startWidth",f)*B.view.scale+t;return new mxPoint(I.x+
+C*v/4+F*ja/2,I.y+F*v/4-C*ja/2)},function(v,C,F,I,ja,O){v=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ja.x,ja.y,O.x,O.y));B.style.startWidth=Math.round(2*v)/B.view.scale-t})]}},sb=function(f){return function(t){return[nb(t,["arrowWidth","arrowSize"],function(B){var v=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"arrowWidth",Ma.prototype.arrowWidth))),C=Math.max(0,Math.min(f,mxUtils.getValue(this.state.style,"arrowSize",Ma.prototype.arrowSize)));return new mxPoint(B.x+(1-C)*B.width,B.y+(1-v)*B.height/
+2)},function(B,v){this.state.style.arrowWidth=Math.max(0,Math.min(1,Math.abs(B.y+B.height/2-v.y)/B.height*2));this.state.style.arrowSize=Math.max(0,Math.min(f,(B.x+B.width-v.x)/B.width))})]}},tb=function(f){return function(t){return[nb(t,["size"],function(B){var v=Math.max(0,Math.min(.5*B.height,parseFloat(mxUtils.getValue(this.state.style,"size",f))));return new mxPoint(B.x,B.y+v)},function(B,v){this.state.style.size=Math.max(0,v.y-B.y)},!0)]}},vb=function(f,t,B){return function(v){var C=[nb(v,["size"],
+function(F){var I=Math.max(0,Math.min(F.width,Math.min(F.height,parseFloat(mxUtils.getValue(this.state.style,"size",t)))))*f;return new mxPoint(F.x+I,F.y+I)},function(F,I){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(F.width,I.x-F.x),Math.min(F.height,I.y-F.y)))/f)},!1)];B&&mxUtils.getValue(v.style,mxConstants.STYLE_ROUNDED,!1)&&C.push(xb(v));return C}},Ab=function(f,t,B,v,C){B=null!=B?B:.5;return function(F){var I=[nb(F,["size"],function(ja){var O=null!=C?"0"!=mxUtils.getValue(this.state.style,
+"fixedSize","0"):null,va=parseFloat(mxUtils.getValue(this.state.style,"size",O?C:f));return new mxPoint(ja.x+Math.max(0,Math.min(.5*ja.width,va*(O?1:ja.width))),ja.getCenterY())},function(ja,O,va){ja=null!=C&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?O.x-ja.x:Math.max(0,Math.min(B,(O.x-ja.x)/ja.width));this.state.style.size=ja},!1,v)];t&&mxUtils.getValue(F.style,mxConstants.STYLE_ROUNDED,!1)&&I.push(xb(F));return I}},wb=function(f,t,B){f=null!=f?f:.5;return function(v){var C=[nb(v,["size"],
+function(F){var I=null!=B?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,ja=Math.max(0,parseFloat(mxUtils.getValue(this.state.style,"size",I?B:t)));return new mxPoint(F.x+Math.min(.75*F.width*f,ja*(I?.75:.75*F.width)),F.y+F.height/4)},function(F,I){F=null!=B&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?I.x-F.x:Math.max(0,Math.min(f,(I.x-F.x)/F.width*.75));this.state.style.size=F},!1,!0)];mxUtils.getValue(v.style,mxConstants.STYLE_ROUNDED,!1)&&C.push(xb(v));return C}},zb=
+function(){return function(f){var t=[];mxUtils.getValue(f.style,mxConstants.STYLE_ROUNDED,!1)&&t.push(xb(f));return t}},xb=function(f,t){return nb(f,[mxConstants.STYLE_ARCSIZE],function(B){var v=null!=t?t:B.height/8;if("1"==mxUtils.getValue(f.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)){var C=mxUtils.getValue(f.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;return new mxPoint(B.x+B.width-Math.min(B.width/2,C),B.y+v)}C=Math.max(0,parseFloat(mxUtils.getValue(f.style,mxConstants.STYLE_ARCSIZE,
+100*mxConstants.RECTANGLE_ROUNDING_FACTOR)))/100;return new mxPoint(B.x+B.width-Math.min(Math.max(B.width/2,B.height/2),Math.min(B.width,B.height)*C),B.y+v)},function(B,v,C){"1"==mxUtils.getValue(f.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.max(0,Math.min(B.width,2*(B.x+B.width-v.x)))):this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.min(50,Math.max(0,100*(B.width-v.x+B.x)/Math.min(B.width,B.height))))})},nb=function(f,t,B,v,
+C,F,I){var ja=new mxHandle(f,null,mxVertexHandler.prototype.secondaryHandleImage);ja.execute=function(va){for(var oa=0;oa<t.length;oa++)this.copyStyle(t[oa]);I&&I(va)};ja.getPosition=B;ja.setPosition=v;ja.ignoreGrid=null!=C?C:!0;if(F){var O=ja.positionChanged;ja.positionChanged=function(){O.apply(this,arguments);f.view.invalidate(this.state.cell);f.view.validate()}}return ja},Cb={link:function(f){return[pb(f,!0,10),pb(f,!1,10)]},pipe:function(f){return[pb(f,!0,10),pb(f,!1,10)]},flexArrow:function(f){var t=
+f.view.graph.gridSize/f.view.scale,B=[];mxUtils.getValue(f.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE&&(B.push(rb(f,["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!0,function(v,C,F,I,ja){v=(f.shape.getEdgeWidth()-f.shape.strokewidth)*f.view.scale;ja=3*mxUtils.getNumber(f.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*f.view.scale;return new mxPoint(I.x+C*(ja+f.shape.strokewidth*f.view.scale)+F*v/2,I.y+F*(ja+f.shape.strokewidth*f.view.scale)-
+C*v/2)},function(v,C,F,I,ja,O,va){v=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ja.x,ja.y,O.x,O.y));C=mxUtils.ptLineDist(I.x,I.y,I.x+F,I.y-C,O.x,O.y);f.style[mxConstants.STYLE_STARTSIZE]=Math.round(100*(C-f.shape.strokewidth)/3)/100/f.view.scale;f.style.width=Math.round(2*v)/f.view.scale;if(mxEvent.isShiftDown(va.getEvent())||mxEvent.isControlDown(va.getEvent()))f.style[mxConstants.STYLE_ENDSIZE]=f.style[mxConstants.STYLE_STARTSIZE];mxEvent.isAltDown(va.getEvent())||Math.abs(parseFloat(f.style[mxConstants.STYLE_STARTSIZE])-
+parseFloat(f.style[mxConstants.STYLE_ENDSIZE]))<t/6&&(f.style[mxConstants.STYLE_STARTSIZE]=f.style[mxConstants.STYLE_ENDSIZE])})),B.push(rb(f,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!0,function(v,C,F,I,ja){v=(f.shape.getStartArrowWidth()-f.shape.strokewidth)*f.view.scale;ja=3*mxUtils.getNumber(f.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*f.view.scale;return new mxPoint(I.x+C*(ja+f.shape.strokewidth*f.view.scale)+F*v/2,I.y+F*(ja+f.shape.strokewidth*
+f.view.scale)-C*v/2)},function(v,C,F,I,ja,O,va){v=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ja.x,ja.y,O.x,O.y));C=mxUtils.ptLineDist(I.x,I.y,I.x+F,I.y-C,O.x,O.y);f.style[mxConstants.STYLE_STARTSIZE]=Math.round(100*(C-f.shape.strokewidth)/3)/100/f.view.scale;f.style.startWidth=Math.max(0,Math.round(2*v)-f.shape.getEdgeWidth())/f.view.scale;if(mxEvent.isShiftDown(va.getEvent())||mxEvent.isControlDown(va.getEvent()))f.style[mxConstants.STYLE_ENDSIZE]=f.style[mxConstants.STYLE_STARTSIZE],f.style.endWidth=
f.style.startWidth;mxEvent.isAltDown(va.getEvent())||(Math.abs(parseFloat(f.style[mxConstants.STYLE_STARTSIZE])-parseFloat(f.style[mxConstants.STYLE_ENDSIZE]))<t/6&&(f.style[mxConstants.STYLE_STARTSIZE]=f.style[mxConstants.STYLE_ENDSIZE]),Math.abs(parseFloat(f.style.startWidth)-parseFloat(f.style.endWidth))<t&&(f.style.startWidth=f.style.endWidth))})));mxUtils.getValue(f.style,mxConstants.STYLE_ENDARROW,mxConstants.NONE)!=mxConstants.NONE&&(B.push(rb(f,["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],
-!1,function(u,C,F,I,ja){u=(f.shape.getEdgeWidth()-f.shape.strokewidth)*f.view.scale;ja=3*mxUtils.getNumber(f.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*f.view.scale;return new mxPoint(I.x+C*(ja+f.shape.strokewidth*f.view.scale)-F*u/2,I.y+F*(ja+f.shape.strokewidth*f.view.scale)+C*u/2)},function(u,C,F,I,ja,O,va){u=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ja.x,ja.y,O.x,O.y));C=mxUtils.ptLineDist(I.x,I.y,I.x+F,I.y-C,O.x,O.y);f.style[mxConstants.STYLE_ENDSIZE]=Math.round(100*(C-f.shape.strokewidth)/
-3)/100/f.view.scale;f.style.width=Math.round(2*u)/f.view.scale;if(mxEvent.isShiftDown(va.getEvent())||mxEvent.isControlDown(va.getEvent()))f.style[mxConstants.STYLE_STARTSIZE]=f.style[mxConstants.STYLE_ENDSIZE];mxEvent.isAltDown(va.getEvent())||Math.abs(parseFloat(f.style[mxConstants.STYLE_ENDSIZE])-parseFloat(f.style[mxConstants.STYLE_STARTSIZE]))<t/6&&(f.style[mxConstants.STYLE_ENDSIZE]=f.style[mxConstants.STYLE_STARTSIZE])})),B.push(rb(f,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],
-!1,function(u,C,F,I,ja){u=(f.shape.getEndArrowWidth()-f.shape.strokewidth)*f.view.scale;ja=3*mxUtils.getNumber(f.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*f.view.scale;return new mxPoint(I.x+C*(ja+f.shape.strokewidth*f.view.scale)-F*u/2,I.y+F*(ja+f.shape.strokewidth*f.view.scale)+C*u/2)},function(u,C,F,I,ja,O,va){u=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ja.x,ja.y,O.x,O.y));C=mxUtils.ptLineDist(I.x,I.y,I.x+F,I.y-C,O.x,O.y);f.style[mxConstants.STYLE_ENDSIZE]=Math.round(100*(C-f.shape.strokewidth)/
-3)/100/f.view.scale;f.style.endWidth=Math.max(0,Math.round(2*u)-f.shape.getEdgeWidth())/f.view.scale;if(mxEvent.isShiftDown(va.getEvent())||mxEvent.isControlDown(va.getEvent()))f.style[mxConstants.STYLE_STARTSIZE]=f.style[mxConstants.STYLE_ENDSIZE],f.style.startWidth=f.style.endWidth;mxEvent.isAltDown(va.getEvent())||(Math.abs(parseFloat(f.style[mxConstants.STYLE_ENDSIZE])-parseFloat(f.style[mxConstants.STYLE_STARTSIZE]))<t/6&&(f.style[mxConstants.STYLE_ENDSIZE]=f.style[mxConstants.STYLE_STARTSIZE]),
-Math.abs(parseFloat(f.style.endWidth)-parseFloat(f.style.startWidth))<t&&(f.style.endWidth=f.style.startWidth))})));return B},swimlane:function(f){var t=[];if(mxUtils.getValue(f.style,mxConstants.STYLE_ROUNDED)){var B=parseFloat(mxUtils.getValue(f.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));t.push(xb(f,B/2))}t.push(nb(f,[mxConstants.STYLE_STARTSIZE],function(u){var C=parseFloat(mxUtils.getValue(f.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));return 1==mxUtils.getValue(f.style,
-mxConstants.STYLE_HORIZONTAL,1)?new mxPoint(u.getCenterX(),u.y+Math.max(0,Math.min(u.height,C))):new mxPoint(u.x+Math.max(0,Math.min(u.width,C)),u.getCenterY())},function(u,C){f.style[mxConstants.STYLE_STARTSIZE]=1==mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,1)?Math.round(Math.max(0,Math.min(u.height,C.y-u.y))):Math.round(Math.max(0,Math.min(u.width,C.x-u.x)))},!1,null,function(u){var C=f.view.graph;if(!mxEvent.isShiftDown(u.getEvent())&&!mxEvent.isControlDown(u.getEvent())&&(C.isTableRow(f.cell)||
-C.isTableCell(f.cell))){u=C.getSwimlaneDirection(f.style);var F=C.model.getParent(f.cell);F=C.model.getChildCells(F,!0);for(var I=[],ja=0;ja<F.length;ja++)F[ja]!=f.cell&&C.isSwimlane(F[ja])&&C.getSwimlaneDirection(C.getCurrentCellStyle(F[ja]))==u&&I.push(F[ja]);C.setCellStyles(mxConstants.STYLE_STARTSIZE,f.style[mxConstants.STYLE_STARTSIZE],I)}}));return t},label:zb(),ext:zb(),rectangle:zb(),triangle:zb(),rhombus:zb(),umlLifeline:function(f){return[nb(f,["size"],function(t){var B=Math.max(0,Math.min(t.height,
-parseFloat(mxUtils.getValue(this.state.style,"size",Z.prototype.size))));return new mxPoint(t.getCenterX(),t.y+B)},function(t,B){this.state.style.size=Math.round(Math.max(0,Math.min(t.height,B.y-t.y)))},!1)]},umlFrame:function(f){return[nb(f,["width","height"],function(t){var B=Math.max(da.prototype.corner,Math.min(t.width,mxUtils.getValue(this.state.style,"width",da.prototype.width))),u=Math.max(1.5*da.prototype.corner,Math.min(t.height,mxUtils.getValue(this.state.style,"height",da.prototype.height)));
-return new mxPoint(t.x+B,t.y+u)},function(t,B){this.state.style.width=Math.round(Math.max(da.prototype.corner,Math.min(t.width,B.x-t.x)));this.state.style.height=Math.round(Math.max(1.5*da.prototype.corner,Math.min(t.height,B.y-t.y)))},!1)]},process:function(f){var t=[nb(f,["size"],function(B){var u="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),C=parseFloat(mxUtils.getValue(this.state.style,"size",ha.prototype.size));return u?new mxPoint(B.x+C,B.y+B.height/4):new mxPoint(B.x+B.width*C,B.y+
-B.height/4)},function(B,u){B="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(.5*B.width,u.x-B.x)):Math.max(0,Math.min(.5,(u.x-B.x)/B.width));this.state.style.size=B},!1)];mxUtils.getValue(f.style,mxConstants.STYLE_ROUNDED,!1)&&t.push(xb(f));return t},cross:function(f){return[nb(f,["size"],function(t){var B=Math.min(t.width,t.height);B=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"size",wa.prototype.size)))*B/2;return new mxPoint(t.getCenterX()-B,t.getCenterY()-
-B)},function(t,B){var u=Math.min(t.width,t.height);this.state.style.size=Math.max(0,Math.min(1,Math.min(Math.max(0,t.getCenterY()-B.y)/u*2,Math.max(0,t.getCenterX()-B.x)/u*2)))})]},note:function(f){return[nb(f,["size"],function(t){var B=Math.max(0,Math.min(t.width,Math.min(t.height,parseFloat(mxUtils.getValue(this.state.style,"size",E.prototype.size)))));return new mxPoint(t.x+t.width-B,t.y+B)},function(t,B){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(t.width,t.x+t.width-B.x),Math.min(t.height,
-B.y-t.y))))})]},note2:function(f){return[nb(f,["size"],function(t){var B=Math.max(0,Math.min(t.width,Math.min(t.height,parseFloat(mxUtils.getValue(this.state.style,"size",R.prototype.size)))));return new mxPoint(t.x+t.width-B,t.y+B)},function(t,B){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(t.width,t.x+t.width-B.x),Math.min(t.height,B.y-t.y))))})]},manualInput:function(f){var t=[nb(f,["size"],function(B){var u=Math.max(0,Math.min(B.height,mxUtils.getValue(this.state.style,"size",
-$a.prototype.size)));return new mxPoint(B.x+B.width/4,B.y+3*u/4)},function(B,u){this.state.style.size=Math.round(Math.max(0,Math.min(B.height,4*(u.y-B.y)/3)))},!1)];mxUtils.getValue(f.style,mxConstants.STYLE_ROUNDED,!1)&&t.push(xb(f));return t},dataStorage:function(f){return[nb(f,["size"],function(t){var B="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),u=parseFloat(mxUtils.getValue(this.state.style,"size",B?Ba.prototype.fixedSize:Ba.prototype.size));return new mxPoint(t.x+t.width-u*(B?1:
-t.width),t.getCenterY())},function(t,B){t="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(t.width,t.x+t.width-B.x)):Math.max(0,Math.min(1,(t.x+t.width-B.x)/t.width));this.state.style.size=t},!1)]},callout:function(f){var t=[nb(f,["size","position"],function(B){var u=Math.max(0,Math.min(B.height,mxUtils.getValue(this.state.style,"size",ka.prototype.size))),C=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",ka.prototype.position)));mxUtils.getValue(this.state.style,
-"base",ka.prototype.base);return new mxPoint(B.x+C*B.width,B.y+B.height-u)},function(B,u){mxUtils.getValue(this.state.style,"base",ka.prototype.base);this.state.style.size=Math.round(Math.max(0,Math.min(B.height,B.y+B.height-u.y)));this.state.style.position=Math.round(100*Math.max(0,Math.min(1,(u.x-B.x)/B.width)))/100},!1),nb(f,["position2"],function(B){var u=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position2",ka.prototype.position2)));return new mxPoint(B.x+u*B.width,B.y+B.height)},
-function(B,u){this.state.style.position2=Math.round(100*Math.max(0,Math.min(1,(u.x-B.x)/B.width)))/100},!1),nb(f,["base"],function(B){var u=Math.max(0,Math.min(B.height,mxUtils.getValue(this.state.style,"size",ka.prototype.size))),C=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",ka.prototype.position))),F=Math.max(0,Math.min(B.width,mxUtils.getValue(this.state.style,"base",ka.prototype.base)));return new mxPoint(B.x+Math.min(B.width,C*B.width+F),B.y+B.height-u)},function(B,u){var C=
-Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",ka.prototype.position)));this.state.style.base=Math.round(Math.max(0,Math.min(B.width,u.x-B.x-C*B.width)))},!1)];mxUtils.getValue(f.style,mxConstants.STYLE_ROUNDED,!1)&&t.push(xb(f));return t},internalStorage:function(f){var t=[nb(f,["dx","dy"],function(B){var u=Math.max(0,Math.min(B.width,mxUtils.getValue(this.state.style,"dx",Ka.prototype.dx))),C=Math.max(0,Math.min(B.height,mxUtils.getValue(this.state.style,"dy",Ka.prototype.dy)));
-return new mxPoint(B.x+u,B.y+C)},function(B,u){this.state.style.dx=Math.round(Math.max(0,Math.min(B.width,u.x-B.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(B.height,u.y-B.y)))},!1)];mxUtils.getValue(f.style,mxConstants.STYLE_ROUNDED,!1)&&t.push(xb(f));return t},module:function(f){return[nb(f,["jettyWidth","jettyHeight"],function(t){var B=Math.max(0,Math.min(t.width,mxUtils.getValue(this.state.style,"jettyWidth",Aa.prototype.jettyWidth))),u=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,
-"jettyHeight",Aa.prototype.jettyHeight)));return new mxPoint(t.x+B/2,t.y+2*u)},function(t,B){this.state.style.jettyWidth=Math.round(2*Math.max(0,Math.min(t.width,B.x-t.x)));this.state.style.jettyHeight=Math.round(Math.max(0,Math.min(t.height,B.y-t.y))/2)})]},corner:function(f){return[nb(f,["dx","dy"],function(t){var B=Math.max(0,Math.min(t.width,mxUtils.getValue(this.state.style,"dx",za.prototype.dx))),u=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,"dy",za.prototype.dy)));return new mxPoint(t.x+
-B,t.y+u)},function(t,B){this.state.style.dx=Math.round(Math.max(0,Math.min(t.width,B.x-t.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(t.height,B.y-t.y)))},!1)]},tee:function(f){return[nb(f,["dx","dy"],function(t){var B=Math.max(0,Math.min(t.width,mxUtils.getValue(this.state.style,"dx",Oa.prototype.dx))),u=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,"dy",Oa.prototype.dy)));return new mxPoint(t.x+(t.width+B)/2,t.y+u)},function(t,B){this.state.style.dx=Math.round(Math.max(0,
-2*Math.min(t.width/2,B.x-t.x-t.width/2)));this.state.style.dy=Math.round(Math.max(0,Math.min(t.height,B.y-t.y)))},!1)]},singleArrow:sb(1),doubleArrow:sb(.5),"mxgraph.arrows2.wedgeArrow":ub(20,20),"mxgraph.arrows2.wedgeArrowDashed":ub(20,20),"mxgraph.arrows2.wedgeArrowDashed2":ub(20,20),folder:function(f){return[nb(f,["tabWidth","tabHeight"],function(t){var B=Math.max(0,Math.min(t.width,mxUtils.getValue(this.state.style,"tabWidth",q.prototype.tabWidth))),u=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,
-"tabHeight",q.prototype.tabHeight)));mxUtils.getValue(this.state.style,"tabPosition",q.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(B=t.width-B);return new mxPoint(t.x+B,t.y+u)},function(t,B){var u=Math.max(0,Math.min(t.width,B.x-t.x));mxUtils.getValue(this.state.style,"tabPosition",q.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(u=t.width-u);this.state.style.tabWidth=Math.round(u);this.state.style.tabHeight=Math.round(Math.max(0,Math.min(t.height,B.y-t.y)))},!1)]},document:function(f){return[nb(f,
+!1,function(v,C,F,I,ja){v=(f.shape.getEdgeWidth()-f.shape.strokewidth)*f.view.scale;ja=3*mxUtils.getNumber(f.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*f.view.scale;return new mxPoint(I.x+C*(ja+f.shape.strokewidth*f.view.scale)-F*v/2,I.y+F*(ja+f.shape.strokewidth*f.view.scale)+C*v/2)},function(v,C,F,I,ja,O,va){v=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ja.x,ja.y,O.x,O.y));C=mxUtils.ptLineDist(I.x,I.y,I.x+F,I.y-C,O.x,O.y);f.style[mxConstants.STYLE_ENDSIZE]=Math.round(100*(C-f.shape.strokewidth)/
+3)/100/f.view.scale;f.style.width=Math.round(2*v)/f.view.scale;if(mxEvent.isShiftDown(va.getEvent())||mxEvent.isControlDown(va.getEvent()))f.style[mxConstants.STYLE_STARTSIZE]=f.style[mxConstants.STYLE_ENDSIZE];mxEvent.isAltDown(va.getEvent())||Math.abs(parseFloat(f.style[mxConstants.STYLE_ENDSIZE])-parseFloat(f.style[mxConstants.STYLE_STARTSIZE]))<t/6&&(f.style[mxConstants.STYLE_ENDSIZE]=f.style[mxConstants.STYLE_STARTSIZE])})),B.push(rb(f,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],
+!1,function(v,C,F,I,ja){v=(f.shape.getEndArrowWidth()-f.shape.strokewidth)*f.view.scale;ja=3*mxUtils.getNumber(f.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*f.view.scale;return new mxPoint(I.x+C*(ja+f.shape.strokewidth*f.view.scale)-F*v/2,I.y+F*(ja+f.shape.strokewidth*f.view.scale)+C*v/2)},function(v,C,F,I,ja,O,va){v=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ja.x,ja.y,O.x,O.y));C=mxUtils.ptLineDist(I.x,I.y,I.x+F,I.y-C,O.x,O.y);f.style[mxConstants.STYLE_ENDSIZE]=Math.round(100*(C-f.shape.strokewidth)/
+3)/100/f.view.scale;f.style.endWidth=Math.max(0,Math.round(2*v)-f.shape.getEdgeWidth())/f.view.scale;if(mxEvent.isShiftDown(va.getEvent())||mxEvent.isControlDown(va.getEvent()))f.style[mxConstants.STYLE_STARTSIZE]=f.style[mxConstants.STYLE_ENDSIZE],f.style.startWidth=f.style.endWidth;mxEvent.isAltDown(va.getEvent())||(Math.abs(parseFloat(f.style[mxConstants.STYLE_ENDSIZE])-parseFloat(f.style[mxConstants.STYLE_STARTSIZE]))<t/6&&(f.style[mxConstants.STYLE_ENDSIZE]=f.style[mxConstants.STYLE_STARTSIZE]),
+Math.abs(parseFloat(f.style.endWidth)-parseFloat(f.style.startWidth))<t&&(f.style.endWidth=f.style.startWidth))})));return B},swimlane:function(f){var t=[];if(mxUtils.getValue(f.style,mxConstants.STYLE_ROUNDED)){var B=parseFloat(mxUtils.getValue(f.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));t.push(xb(f,B/2))}t.push(nb(f,[mxConstants.STYLE_STARTSIZE],function(v){var C=parseFloat(mxUtils.getValue(f.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));return 1==mxUtils.getValue(f.style,
+mxConstants.STYLE_HORIZONTAL,1)?new mxPoint(v.getCenterX(),v.y+Math.max(0,Math.min(v.height,C))):new mxPoint(v.x+Math.max(0,Math.min(v.width,C)),v.getCenterY())},function(v,C){f.style[mxConstants.STYLE_STARTSIZE]=1==mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,1)?Math.round(Math.max(0,Math.min(v.height,C.y-v.y))):Math.round(Math.max(0,Math.min(v.width,C.x-v.x)))},!1,null,function(v){var C=f.view.graph;if(!mxEvent.isShiftDown(v.getEvent())&&!mxEvent.isControlDown(v.getEvent())&&(C.isTableRow(f.cell)||
+C.isTableCell(f.cell))){v=C.getSwimlaneDirection(f.style);var F=C.model.getParent(f.cell);F=C.model.getChildCells(F,!0);for(var I=[],ja=0;ja<F.length;ja++)F[ja]!=f.cell&&C.isSwimlane(F[ja])&&C.getSwimlaneDirection(C.getCurrentCellStyle(F[ja]))==v&&I.push(F[ja]);C.setCellStyles(mxConstants.STYLE_STARTSIZE,f.style[mxConstants.STYLE_STARTSIZE],I)}}));return t},label:zb(),ext:zb(),rectangle:zb(),triangle:zb(),rhombus:zb(),umlLifeline:function(f){return[nb(f,["size"],function(t){var B=Math.max(0,Math.min(t.height,
+parseFloat(mxUtils.getValue(this.state.style,"size",Z.prototype.size))));return new mxPoint(t.getCenterX(),t.y+B)},function(t,B){this.state.style.size=Math.round(Math.max(0,Math.min(t.height,B.y-t.y)))},!1)]},umlFrame:function(f){return[nb(f,["width","height"],function(t){var B=Math.max(da.prototype.corner,Math.min(t.width,mxUtils.getValue(this.state.style,"width",da.prototype.width))),v=Math.max(1.5*da.prototype.corner,Math.min(t.height,mxUtils.getValue(this.state.style,"height",da.prototype.height)));
+return new mxPoint(t.x+B,t.y+v)},function(t,B){this.state.style.width=Math.round(Math.max(da.prototype.corner,Math.min(t.width,B.x-t.x)));this.state.style.height=Math.round(Math.max(1.5*da.prototype.corner,Math.min(t.height,B.y-t.y)))},!1)]},process:function(f){var t=[nb(f,["size"],function(B){var v="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),C=parseFloat(mxUtils.getValue(this.state.style,"size",ha.prototype.size));return v?new mxPoint(B.x+C,B.y+B.height/4):new mxPoint(B.x+B.width*C,B.y+
+B.height/4)},function(B,v){B="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(.5*B.width,v.x-B.x)):Math.max(0,Math.min(.5,(v.x-B.x)/B.width));this.state.style.size=B},!1)];mxUtils.getValue(f.style,mxConstants.STYLE_ROUNDED,!1)&&t.push(xb(f));return t},cross:function(f){return[nb(f,["size"],function(t){var B=Math.min(t.width,t.height);B=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"size",wa.prototype.size)))*B/2;return new mxPoint(t.getCenterX()-B,t.getCenterY()-
+B)},function(t,B){var v=Math.min(t.width,t.height);this.state.style.size=Math.max(0,Math.min(1,Math.min(Math.max(0,t.getCenterY()-B.y)/v*2,Math.max(0,t.getCenterX()-B.x)/v*2)))})]},note:function(f){return[nb(f,["size"],function(t){var B=Math.max(0,Math.min(t.width,Math.min(t.height,parseFloat(mxUtils.getValue(this.state.style,"size",E.prototype.size)))));return new mxPoint(t.x+t.width-B,t.y+B)},function(t,B){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(t.width,t.x+t.width-B.x),Math.min(t.height,
+B.y-t.y))))})]},note2:function(f){return[nb(f,["size"],function(t){var B=Math.max(0,Math.min(t.width,Math.min(t.height,parseFloat(mxUtils.getValue(this.state.style,"size",R.prototype.size)))));return new mxPoint(t.x+t.width-B,t.y+B)},function(t,B){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(t.width,t.x+t.width-B.x),Math.min(t.height,B.y-t.y))))})]},manualInput:function(f){var t=[nb(f,["size"],function(B){var v=Math.max(0,Math.min(B.height,mxUtils.getValue(this.state.style,"size",
+$a.prototype.size)));return new mxPoint(B.x+B.width/4,B.y+3*v/4)},function(B,v){this.state.style.size=Math.round(Math.max(0,Math.min(B.height,4*(v.y-B.y)/3)))},!1)];mxUtils.getValue(f.style,mxConstants.STYLE_ROUNDED,!1)&&t.push(xb(f));return t},dataStorage:function(f){return[nb(f,["size"],function(t){var B="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),v=parseFloat(mxUtils.getValue(this.state.style,"size",B?Ba.prototype.fixedSize:Ba.prototype.size));return new mxPoint(t.x+t.width-v*(B?1:
+t.width),t.getCenterY())},function(t,B){t="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(t.width,t.x+t.width-B.x)):Math.max(0,Math.min(1,(t.x+t.width-B.x)/t.width));this.state.style.size=t},!1)]},callout:function(f){var t=[nb(f,["size","position"],function(B){var v=Math.max(0,Math.min(B.height,mxUtils.getValue(this.state.style,"size",ka.prototype.size))),C=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",ka.prototype.position)));mxUtils.getValue(this.state.style,
+"base",ka.prototype.base);return new mxPoint(B.x+C*B.width,B.y+B.height-v)},function(B,v){mxUtils.getValue(this.state.style,"base",ka.prototype.base);this.state.style.size=Math.round(Math.max(0,Math.min(B.height,B.y+B.height-v.y)));this.state.style.position=Math.round(100*Math.max(0,Math.min(1,(v.x-B.x)/B.width)))/100},!1),nb(f,["position2"],function(B){var v=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position2",ka.prototype.position2)));return new mxPoint(B.x+v*B.width,B.y+B.height)},
+function(B,v){this.state.style.position2=Math.round(100*Math.max(0,Math.min(1,(v.x-B.x)/B.width)))/100},!1),nb(f,["base"],function(B){var v=Math.max(0,Math.min(B.height,mxUtils.getValue(this.state.style,"size",ka.prototype.size))),C=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",ka.prototype.position))),F=Math.max(0,Math.min(B.width,mxUtils.getValue(this.state.style,"base",ka.prototype.base)));return new mxPoint(B.x+Math.min(B.width,C*B.width+F),B.y+B.height-v)},function(B,v){var C=
+Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",ka.prototype.position)));this.state.style.base=Math.round(Math.max(0,Math.min(B.width,v.x-B.x-C*B.width)))},!1)];mxUtils.getValue(f.style,mxConstants.STYLE_ROUNDED,!1)&&t.push(xb(f));return t},internalStorage:function(f){var t=[nb(f,["dx","dy"],function(B){var v=Math.max(0,Math.min(B.width,mxUtils.getValue(this.state.style,"dx",Ka.prototype.dx))),C=Math.max(0,Math.min(B.height,mxUtils.getValue(this.state.style,"dy",Ka.prototype.dy)));
+return new mxPoint(B.x+v,B.y+C)},function(B,v){this.state.style.dx=Math.round(Math.max(0,Math.min(B.width,v.x-B.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(B.height,v.y-B.y)))},!1)];mxUtils.getValue(f.style,mxConstants.STYLE_ROUNDED,!1)&&t.push(xb(f));return t},module:function(f){return[nb(f,["jettyWidth","jettyHeight"],function(t){var B=Math.max(0,Math.min(t.width,mxUtils.getValue(this.state.style,"jettyWidth",Aa.prototype.jettyWidth))),v=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,
+"jettyHeight",Aa.prototype.jettyHeight)));return new mxPoint(t.x+B/2,t.y+2*v)},function(t,B){this.state.style.jettyWidth=Math.round(2*Math.max(0,Math.min(t.width,B.x-t.x)));this.state.style.jettyHeight=Math.round(Math.max(0,Math.min(t.height,B.y-t.y))/2)})]},corner:function(f){return[nb(f,["dx","dy"],function(t){var B=Math.max(0,Math.min(t.width,mxUtils.getValue(this.state.style,"dx",za.prototype.dx))),v=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,"dy",za.prototype.dy)));return new mxPoint(t.x+
+B,t.y+v)},function(t,B){this.state.style.dx=Math.round(Math.max(0,Math.min(t.width,B.x-t.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(t.height,B.y-t.y)))},!1)]},tee:function(f){return[nb(f,["dx","dy"],function(t){var B=Math.max(0,Math.min(t.width,mxUtils.getValue(this.state.style,"dx",Oa.prototype.dx))),v=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,"dy",Oa.prototype.dy)));return new mxPoint(t.x+(t.width+B)/2,t.y+v)},function(t,B){this.state.style.dx=Math.round(Math.max(0,
+2*Math.min(t.width/2,B.x-t.x-t.width/2)));this.state.style.dy=Math.round(Math.max(0,Math.min(t.height,B.y-t.y)))},!1)]},singleArrow:sb(1),doubleArrow:sb(.5),"mxgraph.arrows2.wedgeArrow":ub(20,20),"mxgraph.arrows2.wedgeArrowDashed":ub(20,20),"mxgraph.arrows2.wedgeArrowDashed2":ub(20,20),folder:function(f){return[nb(f,["tabWidth","tabHeight"],function(t){var B=Math.max(0,Math.min(t.width,mxUtils.getValue(this.state.style,"tabWidth",q.prototype.tabWidth))),v=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,
+"tabHeight",q.prototype.tabHeight)));mxUtils.getValue(this.state.style,"tabPosition",q.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(B=t.width-B);return new mxPoint(t.x+B,t.y+v)},function(t,B){var v=Math.max(0,Math.min(t.width,B.x-t.x));mxUtils.getValue(this.state.style,"tabPosition",q.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(v=t.width-v);this.state.style.tabWidth=Math.round(v);this.state.style.tabHeight=Math.round(Math.max(0,Math.min(t.height,B.y-t.y)))},!1)]},document:function(f){return[nb(f,
["size"],function(t){var B=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",K.prototype.size))));return new mxPoint(t.x+3*t.width/4,t.y+(1-B)*t.height)},function(t,B){this.state.style.size=Math.max(0,Math.min(1,(t.y+t.height-B.y)/t.height))},!1)]},tape:function(f){return[nb(f,["size"],function(t){var B=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",H.prototype.size))));return new mxPoint(t.getCenterX(),t.y+B*t.height/2)},function(t,B){this.state.style.size=
Math.max(0,Math.min(1,(B.y-t.y)/t.height*2))},!1)]},isoCube2:function(f){return[nb(f,["isoAngle"],function(t){var B=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.state.style,"isoAngle",N.isoAngle))))*Math.PI/200;return new mxPoint(t.x,t.y+Math.min(t.width*Math.tan(B),.5*t.height))},function(t,B){this.state.style.isoAngle=Math.max(0,50*(B.y-t.y)/t.height)},!0)]},cylinder2:tb(c.prototype.size),cylinder3:tb(g.prototype.size),offPageConnector:function(f){return[nb(f,["size"],function(t){var B=
-Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",Fa.prototype.size))));return new mxPoint(t.getCenterX(),t.y+(1-B)*t.height)},function(t,B){this.state.style.size=Math.max(0,Math.min(1,(t.y+t.height-B.y)/t.height))},!1)]},"mxgraph.basic.rect":function(f){var t=[Graph.createHandle(f,["size"],function(B){var u=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+u,B.y+u)},function(B,u){this.state.style.size=
-Math.round(100*Math.max(0,Math.min(B.height/2,B.width/2,u.x-B.x)))/100})];f=Graph.createHandle(f,["indent"],function(B){var u=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+u*B.height/200)},function(B,u){this.state.style.indent=Math.round(100*Math.max(0,Math.min(100,200*(u.y-B.y)/B.height)))/100});t.push(f);return t},step:Ab(pa.prototype.size,!0,null,!0,pa.prototype.fixedSize),hexagon:Ab(ba.prototype.size,!0,.5,!0,
+Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",Fa.prototype.size))));return new mxPoint(t.getCenterX(),t.y+(1-B)*t.height)},function(t,B){this.state.style.size=Math.max(0,Math.min(1,(t.y+t.height-B.y)/t.height))},!1)]},"mxgraph.basic.rect":function(f){var t=[Graph.createHandle(f,["size"],function(B){var v=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+v,B.y+v)},function(B,v){this.state.style.size=
+Math.round(100*Math.max(0,Math.min(B.height/2,B.width/2,v.x-B.x)))/100})];f=Graph.createHandle(f,["indent"],function(B){var v=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+v*B.height/200)},function(B,v){this.state.style.indent=Math.round(100*Math.max(0,Math.min(100,200*(v.y-B.y)/B.height)))/100});t.push(f);return t},step:Ab(pa.prototype.size,!0,null,!0,pa.prototype.fixedSize),hexagon:Ab(ba.prototype.size,!0,.5,!0,
ba.prototype.fixedSize),curlyBracket:Ab(M.prototype.size,!1),display:Ab(ua.prototype.size,!1),cube:vb(1,n.prototype.size,!1),card:vb(.5,D.prototype.size,!0),loopLimit:vb(.5,sa.prototype.size,!0),trapezoid:wb(.5,W.prototype.size,W.prototype.fixedSize),parallelogram:wb(1,P.prototype.size,P.prototype.fixedSize),zigzag:function(f){return[nb(f,["size"],function(t){var B=Math.max(5,parseFloat(mxUtils.getValue(this.state.style,"size",Za.prototype.size)));return new mxPoint(t.x+3*B,t.y)},function(t,B){this.state.style.size=
Math.max(5,Math.round((B.x-t.x)/3))},!1)]}};Graph.createHandle=nb;Graph.handleFactory=Cb;var Fb=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){var f=Fb.apply(this,arguments);if(this.graph.isCellRotatable(this.state.cell)){var t=this.state.style.shape;null==mxCellRenderer.defaultShapes[t]&&null==mxStencilRegistry.getStencil(t)?t=mxConstants.SHAPE_RECTANGLE:this.state.view.graph.isSwimlane(this.state.cell)&&(t=mxConstants.SHAPE_SWIMLANE);t=Cb[t];
null==t&&null!=this.state.shape&&this.state.shape.isRoundable()&&(t=Cb[mxConstants.SHAPE_RECTANGLE]);null!=t&&(t=t(this.state),null!=t&&(f=null==f?t:f.concat(t)))}return f};mxEdgeHandler.prototype.createCustomHandles=function(){var f=this.state.style.shape;null==mxCellRenderer.defaultShapes[f]&&null==mxStencilRegistry.getStencil(f)&&(f=mxConstants.SHAPE_CONNECTOR);f=Cb[f];return null!=f?f(this.state):null}}else Graph.createHandle=function(){},Graph.handleFactory={};var yb=new mxPoint(1,0),Db=new mxPoint(1,
-0),Eb=mxUtils.toRadians(-30);yb=mxUtils.getRotatedPoint(yb,Math.cos(Eb),Math.sin(Eb));var ob=mxUtils.toRadians(-150);Db=mxUtils.getRotatedPoint(Db,Math.cos(ob),Math.sin(ob));mxEdgeStyle.IsometricConnector=function(f,t,B,u,C){var F=f.view;u=null!=u&&0<u.length?u[0]:null;var I=f.absolutePoints,ja=I[0];I=I[I.length-1];null!=u&&(u=F.transformControlPoint(f,u));null==ja&&null!=t&&(ja=new mxPoint(t.getCenterX(),t.getCenterY()));null==I&&null!=B&&(I=new mxPoint(B.getCenterX(),B.getCenterY()));var O=yb.x,
-va=yb.y,oa=Db.x,bb=Db.y,mb="horizontal"==mxUtils.getValue(f.style,"elbow","horizontal");if(null!=I&&null!=ja){f=function(Ga,La,Ja){Ga-=hb.x;var Ia=La-hb.y;La=(bb*Ga-oa*Ia)/(O*bb-va*oa);Ga=(va*Ga-O*Ia)/(va*oa-O*bb);mb?(Ja&&(hb=new mxPoint(hb.x+O*La,hb.y+va*La),C.push(hb)),hb=new mxPoint(hb.x+oa*Ga,hb.y+bb*Ga)):(Ja&&(hb=new mxPoint(hb.x+oa*Ga,hb.y+bb*Ga),C.push(hb)),hb=new mxPoint(hb.x+O*La,hb.y+va*La));C.push(hb)};var hb=ja;null==u&&(u=new mxPoint(ja.x+(I.x-ja.x)/2,ja.y+(I.y-ja.y)/2));f(u.x,u.y,!0);
-f(I.x,I.y,!1)}};mxStyleRegistry.putValue("isometricEdgeStyle",mxEdgeStyle.IsometricConnector);var Bb=Graph.prototype.createEdgeHandler;Graph.prototype.createEdgeHandler=function(f,t){if(t==mxEdgeStyle.IsometricConnector){var B=new mxElbowEdgeHandler(f);B.snapToTerminals=!1;return B}return Bb.apply(this,arguments)};z.prototype.constraints=[];G.prototype.getConstraints=function(f,t,B){f=[];var u=Math.tan(mxUtils.toRadians(30)),C=(.5-u)/2;u=Math.min(t,B/(.5+u));t=(t-u)/2;B=(B-u)/2;f.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,t,B+.25*u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t+.5*u,B+u*C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t+u,B+.25*u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t+u,B+.75*u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t+.5*u,B+(1-C)*u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,B+.75*u));return f};N.prototype.getConstraints=function(f,t,B){f=[];var u=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,
-"isoAngle",this.isoAngle))))*Math.PI/200;u=Math.min(t*Math.tan(u),.5*B);f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,u));f.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,B-u));f.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,B-u));f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,0,u));return f};ka.prototype.getConstraints=function(f,t,B){f=[];mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE);var u=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size))));parseFloat(mxUtils.getValue(this.style,"position",this.position));var C=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2))));parseFloat(mxUtils.getValue(this.style,"base",this.base));f.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1));f.push(new mxConnectionConstraint(new mxPoint(.25,0),!1));f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));f.push(new mxConnectionConstraint(new mxPoint(.75,0),!1));f.push(new mxConnectionConstraint(new mxPoint(1,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,.5*(B-u)));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,B-u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,
-B-u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(B-u)));t>=2*u&&f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return f};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,
+0),Eb=mxUtils.toRadians(-30);yb=mxUtils.getRotatedPoint(yb,Math.cos(Eb),Math.sin(Eb));var ob=mxUtils.toRadians(-150);Db=mxUtils.getRotatedPoint(Db,Math.cos(ob),Math.sin(ob));mxEdgeStyle.IsometricConnector=function(f,t,B,v,C){var F=f.view;v=null!=v&&0<v.length?v[0]:null;var I=f.absolutePoints,ja=I[0];I=I[I.length-1];null!=v&&(v=F.transformControlPoint(f,v));null==ja&&null!=t&&(ja=new mxPoint(t.getCenterX(),t.getCenterY()));null==I&&null!=B&&(I=new mxPoint(B.getCenterX(),B.getCenterY()));var O=yb.x,
+va=yb.y,oa=Db.x,bb=Db.y,mb="horizontal"==mxUtils.getValue(f.style,"elbow","horizontal");if(null!=I&&null!=ja){f=function(Ga,La,Ja){Ga-=hb.x;var Ia=La-hb.y;La=(bb*Ga-oa*Ia)/(O*bb-va*oa);Ga=(va*Ga-O*Ia)/(va*oa-O*bb);mb?(Ja&&(hb=new mxPoint(hb.x+O*La,hb.y+va*La),C.push(hb)),hb=new mxPoint(hb.x+oa*Ga,hb.y+bb*Ga)):(Ja&&(hb=new mxPoint(hb.x+oa*Ga,hb.y+bb*Ga),C.push(hb)),hb=new mxPoint(hb.x+O*La,hb.y+va*La));C.push(hb)};var hb=ja;null==v&&(v=new mxPoint(ja.x+(I.x-ja.x)/2,ja.y+(I.y-ja.y)/2));f(v.x,v.y,!0);
+f(I.x,I.y,!1)}};mxStyleRegistry.putValue("isometricEdgeStyle",mxEdgeStyle.IsometricConnector);var Bb=Graph.prototype.createEdgeHandler;Graph.prototype.createEdgeHandler=function(f,t){if(t==mxEdgeStyle.IsometricConnector){var B=new mxElbowEdgeHandler(f);B.snapToTerminals=!1;return B}return Bb.apply(this,arguments)};z.prototype.constraints=[];G.prototype.getConstraints=function(f,t,B){f=[];var v=Math.tan(mxUtils.toRadians(30)),C=(.5-v)/2;v=Math.min(t,B/(.5+v));t=(t-v)/2;B=(B-v)/2;f.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,t,B+.25*v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t+.5*v,B+v*C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t+v,B+.25*v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t+v,B+.75*v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t+.5*v,B+(1-C)*v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,B+.75*v));return f};N.prototype.getConstraints=function(f,t,B){f=[];var v=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,
+"isoAngle",this.isoAngle))))*Math.PI/200;v=Math.min(t*Math.tan(v),.5*B);f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,v));f.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,B-v));f.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,B-v));f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,0,v));return f};ka.prototype.getConstraints=function(f,t,B){f=[];mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE);var v=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size))));parseFloat(mxUtils.getValue(this.style,"position",this.position));var C=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2))));parseFloat(mxUtils.getValue(this.style,"base",this.base));f.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1));f.push(new mxConnectionConstraint(new mxPoint(.25,0),!1));f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));f.push(new mxConnectionConstraint(new mxPoint(.75,0),!1));f.push(new mxConnectionConstraint(new mxPoint(1,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,.5*(B-v)));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,B-v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,
+B-v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(B-v)));t>=2*v&&f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return f};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))];ia.prototype.constraints=mxRectangleShape.prototype.constraints;mxImageShape.prototype.constraints=mxRectangleShape.prototype.constraints;mxSwimlane.prototype.constraints=
-mxRectangleShape.prototype.constraints;l.prototype.constraints=mxRectangleShape.prototype.constraints;mxLabel.prototype.constraints=mxRectangleShape.prototype.constraints;E.prototype.getConstraints=function(f,t,B){f=[];var u=Math.max(0,Math.min(t,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-u),0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,
-null,t-u,0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-.5*u,.5*u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,.5*(B+u)));f.push(new mxConnectionConstraint(new mxPoint(1,1),!1));f.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));f.push(new mxConnectionConstraint(new mxPoint(0,1),!1));f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));t>=2*u&&f.push(new mxConnectionConstraint(new mxPoint(.5,
-0),!1));return f};D.prototype.getConstraints=function(f,t,B){f=[];var u=Math.max(0,Math.min(t,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));f.push(new mxConnectionConstraint(new mxPoint(1,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+u),0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,u,0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*u,.5*u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,u));f.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,0,.5*(B+u)));f.push(new mxConnectionConstraint(new mxPoint(0,1),!1));f.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));f.push(new mxConnectionConstraint(new mxPoint(1,1),!1));f.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));t>=2*u&&f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return f};n.prototype.getConstraints=function(f,t,B){f=[];var u=Math.max(0,Math.min(t,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));f.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-u),0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-u,0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-.5*u,.5*u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,.5*(B+u)));f.push(new mxConnectionConstraint(new mxPoint(1,1),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+u),B));f.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,u,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*u,B-.5*u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,B-u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(B-u)));return f};g.prototype.getConstraints=function(f,t,B){f=[];t=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size))));f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(.5,
+mxRectangleShape.prototype.constraints;l.prototype.constraints=mxRectangleShape.prototype.constraints;mxLabel.prototype.constraints=mxRectangleShape.prototype.constraints;E.prototype.getConstraints=function(f,t,B){f=[];var v=Math.max(0,Math.min(t,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-v),0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,
+null,t-v,0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-.5*v,.5*v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,.5*(B+v)));f.push(new mxConnectionConstraint(new mxPoint(1,1),!1));f.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));f.push(new mxConnectionConstraint(new mxPoint(0,1),!1));f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));t>=2*v&&f.push(new mxConnectionConstraint(new mxPoint(.5,
+0),!1));return f};D.prototype.getConstraints=function(f,t,B){f=[];var v=Math.max(0,Math.min(t,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));f.push(new mxConnectionConstraint(new mxPoint(1,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+v),0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,v,0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*v,.5*v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,v));f.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,0,.5*(B+v)));f.push(new mxConnectionConstraint(new mxPoint(0,1),!1));f.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));f.push(new mxConnectionConstraint(new mxPoint(1,1),!1));f.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));t>=2*v&&f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return f};n.prototype.getConstraints=function(f,t,B){f=[];var v=Math.max(0,Math.min(t,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));f.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-v),0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-v,0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-.5*v,.5*v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,.5*(B+v)));f.push(new mxConnectionConstraint(new mxPoint(1,1),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+v),B));f.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,v,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*v,B-.5*v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,B-v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(B-v)));return f};g.prototype.getConstraints=function(f,t,B){f=[];t=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size))));f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(.5,
1),!1));f.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,t));f.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,t));f.push(new mxConnectionConstraint(new mxPoint(1,1),!1,null,0,-t));f.push(new mxConnectionConstraint(new mxPoint(0,1),!1,null,0,-t));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,t+.5*(.5*B-t)));f.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,t+.5*(.5*B-t)));f.push(new mxConnectionConstraint(new mxPoint(1,
-0),!1,null,0,B-t-.5*(.5*B-t)));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,B-t-.5*(.5*B-t)));f.push(new mxConnectionConstraint(new mxPoint(.145,0),!1,null,0,.29*t));f.push(new mxConnectionConstraint(new mxPoint(.855,0),!1,null,0,.29*t));f.push(new mxConnectionConstraint(new mxPoint(.855,1),!1,null,0,.29*-t));f.push(new mxConnectionConstraint(new mxPoint(.145,1),!1,null,0,.29*-t));return f};q.prototype.getConstraints=function(f,t,B){f=[];var u=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,
-"tabWidth",this.tabWidth)))),C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?(f.push(new mxConnectionConstraint(new mxPoint(0,0),!1)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*u,0)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,u,0)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,u,C)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,
-.5*(t+u),C))):(f.push(new mxConnectionConstraint(new mxPoint(1,0),!1)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-.5*u,0)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-u,0)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-u,C)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-u),C)));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,.25*(B-C)+C));f.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,0,B-t-.5*(.5*B-t)));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,B-t-.5*(.5*B-t)));f.push(new mxConnectionConstraint(new mxPoint(.145,0),!1,null,0,.29*t));f.push(new mxConnectionConstraint(new mxPoint(.855,0),!1,null,0,.29*t));f.push(new mxConnectionConstraint(new mxPoint(.855,1),!1,null,0,.29*-t));f.push(new mxConnectionConstraint(new mxPoint(.145,1),!1,null,0,.29*-t));return f};q.prototype.getConstraints=function(f,t,B){f=[];var v=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,
+"tabWidth",this.tabWidth)))),C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?(f.push(new mxConnectionConstraint(new mxPoint(0,0),!1)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*v,0)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,v,0)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,v,C)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,
+.5*(t+v),C))):(f.push(new mxConnectionConstraint(new mxPoint(1,0),!1)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-.5*v,0)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-v,0)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-v,C)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-v),C)));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,.25*(B-C)+C));f.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,t,.5*(B-C)+C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,.75*(B-C)+C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.25*(B-C)+C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(B-C)+C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.75*(B-C)+C));f.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,0,B));f.push(new mxConnectionConstraint(new mxPoint(.25,1),!1));f.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));f.push(new mxConnectionConstraint(new mxPoint(.75,1),!1));return f};Ka.prototype.constraints=mxRectangleShape.prototype.constraints;Ba.prototype.constraints=mxRectangleShape.prototype.constraints;Qa.prototype.constraints=mxEllipse.prototype.constraints;Ta.prototype.constraints=mxEllipse.prototype.constraints;y.prototype.constraints=mxEllipse.prototype.constraints;la.prototype.constraints=
-mxEllipse.prototype.constraints;$a.prototype.constraints=mxRectangleShape.prototype.constraints;qa.prototype.constraints=mxRectangleShape.prototype.constraints;ua.prototype.getConstraints=function(f,t,B){f=[];var u=Math.min(t,B/2),C=Math.min(t-u,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*t);f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,
-.5*(C+t-u),0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-u,0));f.push(new mxConnectionConstraint(new mxPoint(1,.5),!1,null));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-u,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(C+t-u),B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,B));return f};Aa.prototype.getConstraints=function(f,t,B){t=parseFloat(mxUtils.getValue(f,"jettyWidth",Aa.prototype.jettyWidth))/2;f=parseFloat(mxUtils.getValue(f,
-"jettyHeight",Aa.prototype.jettyHeight));var u=[new mxConnectionConstraint(new mxPoint(0,0),!1,null,t),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,
-t),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(B-.5*f,1.5*f)),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(B-.5*f,3.5*f))];B>5*f&&u.push(new mxConnectionConstraint(new mxPoint(0,.75),!1,null,t));B>8*f&&u.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null,t));B>
-15*f&&u.push(new mxConnectionConstraint(new mxPoint(0,.25),!1,null,t));return u};sa.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,
+mxEllipse.prototype.constraints;$a.prototype.constraints=mxRectangleShape.prototype.constraints;qa.prototype.constraints=mxRectangleShape.prototype.constraints;ua.prototype.getConstraints=function(f,t,B){f=[];var v=Math.min(t,B/2),C=Math.min(t-v,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*t);f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,
+.5*(C+t-v),0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-v,0));f.push(new mxConnectionConstraint(new mxPoint(1,.5),!1,null));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-v,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(C+t-v),B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,B));return f};Aa.prototype.getConstraints=function(f,t,B){t=parseFloat(mxUtils.getValue(f,"jettyWidth",Aa.prototype.jettyWidth))/2;f=parseFloat(mxUtils.getValue(f,
+"jettyHeight",Aa.prototype.jettyHeight));var v=[new mxConnectionConstraint(new mxPoint(0,0),!1,null,t),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,
+t),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(B-.5*f,1.5*f)),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(B-.5*f,3.5*f))];B>5*f&&v.push(new mxConnectionConstraint(new mxPoint(0,.75),!1,null,t));B>8*f&&v.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null,t));B>
+15*f&&v.push(new mxConnectionConstraint(new mxPoint(0,.25),!1,null,t));return v};sa.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)];L.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)];Ca.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,
@@ -3137,25 +3141,25 @@ t),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(
[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)];P.prototype.constraints=mxRectangleShape.prototype.constraints;W.prototype.constraints=mxRectangleShape.prototype.constraints;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(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(f,t,B){f=[];var u=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"dx",this.dx)))),C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,
-"dy",this.dy))));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1));f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));f.push(new mxConnectionConstraint(new mxPoint(1,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,.5*C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.75*t+.25*u,C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+u),C));f.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,.5*(t+u),.5*(B+C)));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+u),B));f.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-u),B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-u),.5*(B+C)));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-u),C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.25*t-.25*u,C));f.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,0,C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*C));return f};za.prototype.getConstraints=function(f,t,B){f=[];var u=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"dx",this.dx)))),C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1));f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));f.push(new mxConnectionConstraint(new mxPoint(1,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,t,.5*C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+u),C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,u,C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,u,.5*(B+C)));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,u,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*u,B));f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,
+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(f,t,B){f=[];var v=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"dx",this.dx)))),C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,
+"dy",this.dy))));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1));f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));f.push(new mxConnectionConstraint(new mxPoint(1,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,.5*C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.75*t+.25*v,C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+v),C));f.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,.5*(t+v),.5*(B+C)));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+v),B));f.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-v),B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-v),.5*(B+C)));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-v),C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.25*t-.25*v,C));f.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,0,C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*C));return f};za.prototype.getConstraints=function(f,t,B){f=[];var v=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"dx",this.dx)))),C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1));f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));f.push(new mxConnectionConstraint(new mxPoint(1,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,t,.5*C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+v),C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,v,C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,v,.5*(B+C)));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,v,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*v,B));f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,
1),!1));return f};Sa.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)];Ma.prototype.getConstraints=
-function(f,t,B){f=[];var u=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth)))),C=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",this.arrowSize))));u=(B-u)/2;f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-C),u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-C,0));f.push(new mxConnectionConstraint(new mxPoint(1,
-.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-C,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-C),B-u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,B-u));return f};Na.prototype.getConstraints=function(f,t,B){f=[];var u=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",Ma.prototype.arrowWidth)))),C=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",Ma.prototype.arrowSize))));u=(B-u)/2;f.push(new mxConnectionConstraint(new mxPoint(0,
-.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*t,u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-C,0));f.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-C,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*t,B-u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,B));return f};wa.prototype.getConstraints=
-function(f,t,B){f=[];var u=Math.min(B,t),C=Math.max(0,Math.min(u,u*parseFloat(mxUtils.getValue(this.style,"size",this.size))));u=(B-C)/2;var F=u+C,I=(t-C)/2;C=I+C;f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,.5*u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,0));f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,.5*u));f.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,C,u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,B-.5*u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,B));f.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,B-.5*u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,F));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+C),u));f.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,t,u));f.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,F));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+C),F));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,F));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*I,u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,u));f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,0,F));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*I,F));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,u));return f};Z.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,
+function(f,t,B){f=[];var v=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth)))),C=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",this.arrowSize))));v=(B-v)/2;f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-C),v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-C,0));f.push(new mxConnectionConstraint(new mxPoint(1,
+.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-C,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-C),B-v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,B-v));return f};Na.prototype.getConstraints=function(f,t,B){f=[];var v=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",Ma.prototype.arrowWidth)))),C=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",Ma.prototype.arrowSize))));v=(B-v)/2;f.push(new mxConnectionConstraint(new mxPoint(0,
+.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*t,v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-C,0));f.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-C,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*t,B-v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,B));return f};wa.prototype.getConstraints=
+function(f,t,B){f=[];var v=Math.min(B,t),C=Math.max(0,Math.min(v,v*parseFloat(mxUtils.getValue(this.style,"size",this.size))));v=(B-C)/2;var F=v+C,I=(t-C)/2;C=I+C;f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,.5*v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,0));f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,.5*v));f.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,C,v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,B-.5*v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,B));f.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,B-.5*v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,F));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+C),v));f.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,t,v));f.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,F));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+C),F));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,F));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*I,v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,v));f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,0,F));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*I,F));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,v));return f};Z.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)];Pa.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)];ra.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];ta.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(E){p.escape();E=p.deleteCells(p.getDeletableCells(p.getSelectionCells()),E);null!=E&&p.setSelectionCells(E)}function d(){if(!p.isSelectionEmpty()){p.getModel().beginUpdate();try{for(var E=p.getSelectionCells(),R=0;R<E.length;R++)p.cellLabelChanged(E[R],"")}finally{p.getModel().endUpdate()}}}function m(E,R,N,c,g){g.getModel().beginUpdate();try{var k=g.getCellGeometry(E);null!=k&&N&&c&&(N/=c,k=k.clone(),1<N?k.height=k.width/N:k.width=k.height*N,g.getModel().setGeometry(E,
-k));g.setCellStyles(mxConstants.STYLE_CLIP_PATH,R,[E]);g.setCellStyles(mxConstants.STYLE_ASPECT,"fixed",[E])}finally{g.getModel().endUpdate()}}var n=this.editorUi,v=n.editor,p=v.graph,z=function(){return Action.prototype.isEnabled.apply(this,arguments)&&p.isEnabled()};this.addAction("new...",function(){p.openLink(n.getUrl())});this.addAction("open...",function(){window.openNew=!0;window.openKey="open";n.openFile()});var G=new Action("smartFit",function(){if(n.chromelessResize)p.isLightboxView()?(1==
+k));g.setCellStyles(mxConstants.STYLE_CLIP_PATH,R,[E]);g.setCellStyles(mxConstants.STYLE_ASPECT,"fixed",[E])}finally{g.getModel().endUpdate()}}var n=this.editorUi,u=n.editor,p=u.graph,z=function(){return Action.prototype.isEnabled.apply(this,arguments)&&p.isEnabled()};this.addAction("new...",function(){p.openLink(n.getUrl())});this.addAction("open...",function(){window.openNew=!0;window.openKey="open";n.openFile()});var G=new Action("smartFit",function(){if(n.chromelessResize)p.isLightboxView()?(1==
p.view.scale?n.lightboxFit():p.zoomTo(1),n.chromelessResize(!1)):n.chromelessResize(!0);else{p.popupMenuHandler.hideMenu();var E=p.view.scale,R=p.container.scrollLeft,N=p.container.scrollTop,c=p.view.translate.x,g=p.view.translate.y;n.actions.get("resetView").funct();1E-5>Math.abs(E-p.view.scale)&&5>Math.abs(R-p.container.scrollLeft)&&5>Math.abs(N-p.container.scrollTop)&&c==p.view.translate.x&&g==p.view.translate.y&&n.actions.get("fitWindow").funct()}},null,null,"Enter");G.getTitle=function(){return mxResources.get("fitWindow")+
-" / "+mxResources.get("resetView")};this.put("smartFit",G);this.addAction("keyPressEnter",function(){p.isSelectionEmpty()?n.actions.get("smartFit").funct():p.isEnabled()&&p.startEditingAtCell()});this.addAction("import...",function(){window.openNew=!1;window.openKey="import";window.openFile=new OpenFile(mxUtils.bind(this,function(){n.hideDialog()}));window.openFile.setConsumer(mxUtils.bind(this,function(E,R){try{var N=mxUtils.parseXml(E);v.graph.setSelectionCells(v.graph.importGraphModel(N.documentElement))}catch(c){mxUtils.alert(mxResources.get("invalidOrMissingFile")+
+" / "+mxResources.get("resetView")};this.put("smartFit",G);this.addAction("keyPressEnter",function(){p.isSelectionEmpty()?n.actions.get("smartFit").funct():p.isEnabled()&&p.startEditingAtCell()});this.addAction("import...",function(){window.openNew=!1;window.openKey="import";window.openFile=new OpenFile(mxUtils.bind(this,function(){n.hideDialog()}));window.openFile.setConsumer(mxUtils.bind(this,function(E,R){try{var N=mxUtils.parseXml(E);u.graph.setSelectionCells(u.graph.importGraphModel(N.documentElement))}catch(c){mxUtils.alert(mxResources.get("invalidOrMissingFile")+
": "+c.message)}}));n.showDialog((new OpenDialog(this)).container,320,220,!0,!0,function(){window.openFile=null})}).isEnabled=z;this.addAction("save",function(){n.saveFile(!1)},null,null,Editor.ctrlKey+"+S").isEnabled=z;this.addAction("saveAs...",function(){n.saveFile(!0)},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+S");this.addAction("export...",function(){n.showDialog((new ExportDialog(n)).container,360,396,!0,!0)});this.addAction("editDiagram...",function(){var E=new EditDiagramDialog(n);n.showDialog(E.container,
620,420,!0,!1,null,null,null,new mxRectangle(0,0,440,280));E.init()}).isEnabled=z;this.addAction("pageSetup...",function(){n.showDialog((new PageSetupDialog(n)).container,320,240,!0,!0)}).isEnabled=z;this.addAction("print...",function(){n.showPrintDialog()},null,"",Editor.ctrlKey+"+P");this.addAction("preview",function(){mxUtils.show(p,null,10,10)});this.addAction("undo",function(){n.undo()},null,"",Editor.ctrlKey+"+Z");this.addAction("redo",function(){n.redo()},null,"",mxClient.IS_WIN?Editor.ctrlKey+
"+Y":Editor.ctrlKey+"+"+Editor.shiftKey+"+Z");this.addAction("cut",function(){var E=null;try{E=n.copyXml(),null!=E&&p.removeCells(E,!1)}catch(R){}try{null==E&&mxClipboard.cut(p)}catch(R){n.handleError(R)}},null,"",Editor.ctrlKey+"+X");this.addAction("copy",function(){try{n.copyXml()}catch(E){}try{mxClipboard.copy(p)}catch(E){n.handleError(E)}},null,"",Editor.ctrlKey+"+C");this.addAction("paste",function(){n.pasteFromClipboard()},!1,"",Editor.ctrlKey+"+V");this.addAction("pasteHere",function(E){n.pasteFromClipboard(p.popupMenuHandler.getTriggerPoint())});
@@ -3203,7 +3207,7 @@ this.addAction("sharp",function(){p.getModel().beginUpdate();try{p.setCellStyles
null);n.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],"values",[N,"0"],"cells",p.getSelectionCells()))}finally{p.getModel().endUpdate()}}});this.addAction("curved",function(){p.getModel().beginUpdate();try{p.setCellStyles(mxConstants.STYLE_ROUNDED,"0"),p.setCellStyles(mxConstants.STYLE_CURVED,"1"),n.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],"values",["0","1"],"cells",p.getSelectionCells()))}finally{p.getModel().endUpdate()}});
this.addAction("collapsible",function(){var E=p.view.getState(p.getSelectionCell()),R="1";null!=E&&null!=p.getFoldingImage(E)&&(R="0");p.setCellStyles("collapsible",R);n.fireEvent(new mxEventObject("styleChanged","keys",["collapsible"],"values",[R],"cells",p.getSelectionCells()))});this.addAction("editStyle...",mxUtils.bind(this,function(){var E=p.getEditableCells(p.getSelectionCells());if(null!=E&&0<E.length){var R=p.getModel();R=new TextareaDialog(this.editorUi,mxResources.get("editStyle")+":",
R.getStyle(E[0])||"",function(N){null!=N&&p.setCellStyle(mxUtils.trim(N),E)},null,null,400,220);this.editorUi.showDialog(R.container,420,300,!0,!0);R.init()}}),null,null,Editor.ctrlKey+"+E");this.addAction("setAsDefaultStyle",function(){p.isEnabled()&&!p.isSelectionEmpty()&&n.setDefaultStyle(p.getSelectionCell())},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+D");this.addAction("clearDefaultStyle",function(){p.isEnabled()&&n.clearDefaultStyle()},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+R");
-this.addAction("addWaypoint",function(){var E=p.getSelectionCell();if(null!=E&&p.getModel().isEdge(E)){var R=v.graph.selectionCellsHandler.getHandler(E);if(R instanceof mxEdgeHandler){var N=0,c=0;E=p.getModel().getParent(E);for(var g=p.getCellGeometry(E);p.getModel().isVertex(E)&&null!=g;)N+=g.x,c+=g.y,E=p.getModel().getParent(E),g=p.getCellGeometry(E);E=p.popupMenuHandler.getTriggerPoint();N=Math.round(p.snap(E.x-N));c=Math.round(p.snap(E.y-c));R.addPointAt(R.state,N,c)}}});this.addAction("removeWaypoint",
+this.addAction("addWaypoint",function(){var E=p.getSelectionCell();if(null!=E&&p.getModel().isEdge(E)){var R=u.graph.selectionCellsHandler.getHandler(E);if(R instanceof mxEdgeHandler){var N=0,c=0;E=p.getModel().getParent(E);for(var g=p.getCellGeometry(E);p.getModel().isVertex(E)&&null!=g;)N+=g.x,c+=g.y,E=p.getModel().getParent(E),g=p.getCellGeometry(E);E=p.popupMenuHandler.getTriggerPoint();N=Math.round(p.snap(E.x-N));c=Math.round(p.snap(E.y-c));R.addPointAt(R.state,N,c)}}});this.addAction("removeWaypoint",
function(){var E=n.actions.get("removeWaypoint");null!=E.handler&&E.handler.removePoint(E.handler.state,E.index)});this.addAction("clearAnchors",function(){var E=p.getSelectionCells();if(null!=E){E=p.getEditableCells(p.addAllEdges(E));p.getModel().beginUpdate();try{for(var R=0;R<E.length;R++){var N=E[R];p.getModel().isEdge(N)&&(p.setCellStyles(mxConstants.STYLE_EXIT_X,null,[N]),p.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[N]),p.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[N]),p.setCellStyles(mxConstants.STYLE_ENTRY_Y,
null,[N]))}}finally{p.getModel().endUpdate()}}});this.addAction("clearWaypoints",function(){var E=p.getSelectionCells();if(null!=E){E=p.getEditableCells(p.addAllEdges(E));p.getModel().beginUpdate();try{for(var R=0;R<E.length;R++){var N=E[R];if(p.getModel().isEdge(N)){var c=p.getCellGeometry(N);null!=c&&(c=c.clone(),c.points=null,c.x=0,c.y=0,c.offset=null,p.getModel().setGeometry(N,c))}}}finally{p.getModel().endUpdate()}}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+R");G=this.addAction("subscript",
mxUtils.bind(this,function(){p.cellEditor.isContentEditing()&&document.execCommand("subscript",!1,null)}),null,null,Editor.ctrlKey+"+,");G=this.addAction("superscript",mxUtils.bind(this,function(){p.cellEditor.isContentEditing()&&document.execCommand("superscript",!1,null)}),null,null,Editor.ctrlKey+"+.");G=this.addAction("decreaseFontSize",mxUtils.bind(this,function(){if(!p.isSelectionEmpty()){var E=p.getCurrentCellStyle(p.getSelectionCell());E=mxUtils.getValue(E,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);
@@ -3217,45 +3221,45 @@ n.fireEvent(new mxEventObject("layers")),this.layersWindow.init()):this.layersWi
function(){return n.isFormatPanelVisible()}));G=this.addAction("outline",mxUtils.bind(this,function(){null==this.outlineWindow?(this.outlineWindow=new OutlineWindow(n,document.body.offsetWidth-260,100,180,180),this.outlineWindow.window.addListener("show",mxUtils.bind(this,function(){n.fireEvent(new mxEventObject("outline"))})),this.outlineWindow.window.addListener("hide",function(){n.fireEvent(new mxEventObject("outline"))}),this.outlineWindow.window.setVisible(!0),n.fireEvent(new mxEventObject("outline"))):
this.outlineWindow.window.setVisible(!this.outlineWindow.window.isVisible())}),null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+O");G.setToggleAction(!0);G.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.outlineWindow&&this.outlineWindow.window.isVisible()}));this.addAction("editPolygon...",function(){var E=p.getSelectionCell();if(p.isEnabled()&&null!=E){var R=p.view.getState(E);if(null!=R&&"mxgraph.basic.polygon"===mxUtils.getValue(R.style,mxConstants.STYLE_SHAPE)){var N=new PolygonDialog(n,
E);n.showDialog(N.container,680,540,!0,!0,function(){N.destroy()},null,null,new mxRectangle(0,0,740,600));N.init()}}}).isEnabled=z;this.addAction("editConnectionPoints...",function(){var E=p.getSelectionCell();if(p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())&&null!=E&&null!=E.geometry){var R=new ConnectionPointsDialog(n,E);n.showDialog(R.container,400,450,!0,!1,function(){R.destroy()},null,null,new mxRectangle(0,0,450,500));R.init()}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+Q").isEnabled=
-z};Actions.prototype.addAction=function(b,d,m,n,v,p){var z=b;"..."==z.substring(z.length-3)&&(z=z.substring(0,z.length-3));return this.put(z,new Action(b,d,m,n,v,p))};Actions.prototype.put=function(b,d){return this.actions[b]=d};Actions.prototype.get=function(b){return this.actions[b]};function Action(b,d,m,n,v,p){mxEventSource.call(this);this.label=b;this.funct=this.createFunction(d);this.enabled=null!=m?m:!0;this.iconCls=n;this.shortcut=v;this.visible=null!=p?p:!0}mxUtils.extend(Action,mxEventSource);
+z};Actions.prototype.addAction=function(b,d,m,n,u,p){var z=b;"..."==z.substring(z.length-3)&&(z=z.substring(0,z.length-3));return this.put(z,new Action(b,d,m,n,u,p))};Actions.prototype.put=function(b,d){return this.actions[b]=d};Actions.prototype.get=function(b){return this.actions[b]};function Action(b,d,m,n,u,p){mxEventSource.call(this);this.label=b;this.funct=this.createFunction(d);this.enabled=null!=m?m:!0;this.iconCls=n;this.shortcut=u;this.visible=null!=p?p:!0}mxUtils.extend(Action,mxEventSource);
Action.prototype.getTitle=function(){var b=this.label;"..."==b.substring(b.length-3)?(b=b.substring(0,b.length-3),b=mxResources.get(b)+"..."):b=mxResources.get(b);return b};Action.prototype.createFunction=function(b){return b};Action.prototype.setEnabled=function(b){this.enabled!=b&&(this.enabled=b,this.fireEvent(new mxEventObject("stateChanged","attribute","enabled")))};Action.prototype.isEnabled=function(){return this.enabled};
Action.prototype.setVisible=function(b){this.visible!=b&&(this.visible=b,this.fireEvent(new mxEventObject("stateChanged","attribute","visible")))};Action.prototype.isVisible=function(){return this.visible};Action.prototype.setToggleAction=function(b){this.toggleAction=b};Action.prototype.setSelectedCallback=function(b){this.selectedCallback=b};Action.prototype.isSelected=function(){return this.selectedCallback()};DrawioFile=function(b,d){mxEventSource.call(this);this.ui=b;this.setData(d||"");this.initialData=this.getData();this.created=(new Date).getTime();this.stats={opened:0,merged:0,fileMerged:0,fileReloaded:0,conflicts:0,timeouts:0,saved:0,closed:0,destroyed:0,joined:0,checksumErrors:0,bytesSent:0,bytesReceived:0,msgSent:0,msgReceived:0,cacheHits:0,cacheMiss:0,cacheFail:0}};DrawioFile.SYNC=urlParams.sync||"auto";DrawioFile.LAST_WRITE_WINS=!0;DrawioFile.RESTRICT_EXPORT=!1;mxUtils.extend(DrawioFile,mxEventSource);
DrawioFile.prototype.allChangesSavedKey="allChangesSaved";DrawioFile.prototype.savingSpinnerKey="saving";DrawioFile.prototype.savingStatusKey="saving";DrawioFile.prototype.autosaveDelay=1500;DrawioFile.prototype.maxAutosaveDelay=3E4;DrawioFile.prototype.optimisticSyncDelay=300;DrawioFile.prototype.autosaveThread=null;DrawioFile.prototype.lastAutosave=null;DrawioFile.prototype.lastSaved=null;DrawioFile.prototype.lastChanged=null;DrawioFile.prototype.opened=null;DrawioFile.prototype.modified=!1;
DrawioFile.prototype.shadowModified=!1;DrawioFile.prototype.data=null;DrawioFile.prototype.shadowPages=null;DrawioFile.prototype.changeListenerEnabled=!0;DrawioFile.prototype.lastAutosaveRevision=null;DrawioFile.prototype.maxAutosaveRevisionDelay=3E5;DrawioFile.prototype.inConflictState=!1;DrawioFile.prototype.invalidChecksum=!1;DrawioFile.prototype.ageStart=null;DrawioFile.prototype.getSize=function(){return null!=this.data?this.data.length:0};
DrawioFile.prototype.getShadowPages=function(){if(null==this.shadowPages&&(this.shadowPages=this.ui.getPagesForXml(this.initialData),void 0===this.shadowVars)){this.shadowVars=null;try{var b=mxUtils.parseXml(this.initialData).documentElement;null!=b&&"mxfile"==b.nodeName&&(this.shadowVars=b.getAttribute("vars"))}catch(d){}}return this.shadowPages};
DrawioFile.prototype.setShadowPages=function(b,d){this.shadowPages=b;this.shadowVars=void 0!==d?d:null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):null};DrawioFile.prototype.getShadowVars=function(){this.getShadowPages();return void 0!==this.shadowVars?this.shadowVars:null};
-DrawioFile.prototype.synchronizeFile=function(b,d,m){EditorUi.debug("DrawioFile.synchronizeFile",[this],"latestFile",[m],"savingFile",this.savingFile);if(this.savingFile)null!=d&&d({message:mxResources.get("busy")});else{var n=!0,v=window.setTimeout(mxUtils.bind(this,function(){n=!1;null!=d&&d({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.synchronizeFile(b,d)})})}),this.ui.timeout),p=mxUtils.bind(this,function(G){n&&(window.clearTimeout(v),null!=
-d&&d(G))}),z=mxUtils.bind(this,function(){return!n});null!=this.sync?this.sync.fileChanged(mxUtils.bind(this,function(G){n&&(window.clearTimeout(v),this.sync.cleanup(b,d,G))}),p,z):this.updateFile(mxUtils.bind(this,function(){n&&(window.clearTimeout(v),null!=b&&b())}),p,z,null,null,m)}};
-DrawioFile.prototype.updateFile=function(b,d,m,n,v,p){if(null==m||!m())if(EditorUi.debug("DrawioFile.updateFile",[this],"immediate",v,"invalidChecksum",this.invalidChecksum,"latestFile",[p]),this.ui.getCurrentFile()!=this||this.invalidChecksum)null!=d&&d();else{var z=mxUtils.bind(this,function(G){try{null!=m&&m()||(EditorUi.debug("DrawioFile.updateFile",[this],"invalidChecksum",this.invalidChecksum,"latestFile",[G]),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=d&&d():null!=G?this.mergeFile(G,
-b,d,n,v):this.reloadFile(b,d))}catch(U){null!=d&&d(U)}});null!=p?z(p):this.getLatestVersion(z,d)}};
-DrawioFile.prototype.mergeFile=function(b,d,m,n,v){try{var p=b.getShadowPages();if(null!=p&&0<p.length){var z=this.getShadowPages(),G=[this.ui.diffPages(null!=n?n:z,p)];n=null;try{var U=mxUtils.parseXml(b.initialData).documentElement;null!=U&&"mxfile"==U.nodeName&&(n=U.getAttribute("vars"))}catch(D){}n!=this.getShadowVars()&&(G[0][EditorUi.DIFF_FILE]={vars:n});var E=this.ignorePatches(G);if(E)this.inConflictState=this.invalidChecksum=!1,this.setDescriptor(b.getDescriptor()),this.descriptorChanged(),
+DrawioFile.prototype.synchronizeFile=function(b,d,m){EditorUi.debug("DrawioFile.synchronizeFile",[this],"latestFile",[m],"savingFile",this.savingFile);if(this.savingFile)null!=d&&d({message:mxResources.get("busy")});else{var n=!0,u=window.setTimeout(mxUtils.bind(this,function(){n=!1;null!=d&&d({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.synchronizeFile(b,d)})})}),this.ui.timeout),p=mxUtils.bind(this,function(G){n&&(window.clearTimeout(u),null!=
+d&&d(G))}),z=mxUtils.bind(this,function(){return!n});null!=this.sync?this.sync.fileChanged(mxUtils.bind(this,function(G){n&&(window.clearTimeout(u),this.sync.cleanup(b,d,G))}),p,z):this.updateFile(mxUtils.bind(this,function(){n&&(window.clearTimeout(u),null!=b&&b())}),p,z,null,null,m)}};
+DrawioFile.prototype.updateFile=function(b,d,m,n,u,p){if(null==m||!m())if(EditorUi.debug("DrawioFile.updateFile",[this],"immediate",u,"invalidChecksum",this.invalidChecksum,"latestFile",[p]),this.ui.getCurrentFile()!=this||this.invalidChecksum)null!=d&&d();else{var z=mxUtils.bind(this,function(G){try{null!=m&&m()||(EditorUi.debug("DrawioFile.updateFile",[this],"invalidChecksum",this.invalidChecksum,"latestFile",[G]),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=d&&d():null!=G?this.mergeFile(G,
+b,d,n,u):this.reloadFile(b,d))}catch(U){null!=d&&d(U)}});null!=p?z(p):this.getLatestVersion(z,d)}};
+DrawioFile.prototype.mergeFile=function(b,d,m,n,u){try{var p=b.getShadowPages();if(null!=p&&0<p.length){var z=this.getShadowPages(),G=[this.ui.diffPages(null!=n?n:z,p)];n=null;try{var U=mxUtils.parseXml(b.initialData).documentElement;null!=U&&"mxfile"==U.nodeName&&(n=U.getAttribute("vars"))}catch(D){}n!=this.getShadowVars()&&(G[0][EditorUi.DIFF_FILE]={vars:n});var E=this.ignorePatches(G);if(E)this.inConflictState=this.invalidChecksum=!1,this.setDescriptor(b.getDescriptor()),this.descriptorChanged(),
EditorUi.debug("File.mergeFile",[this],"file",[b],"ignored",E),null!=d&&d();else try{this.stats.fileMerged++;null!=this.sync&&this.sync.sendLocalChanges();var R=this.isModified()?this.ui.diffPages(z,this.isRealtime()?this.ownPages:this.ui.pages):null,N=this.ui.patchPages(this.ui.clonePages(z),G[0]),c=this.ui.getHashValueForPages(N,{}),g=this.ui.getHashValueForPages(p,{});EditorUi.debug("File.mergeFile",[this],"file",[b],"ui",this.ui.pages,"shadow",z,"pages",p,"patched",N,"patches",G,"changes",R,"checksum",
-c,"current",g,"valid",c==g,"from",this.getCurrentRevisionId(),"to",b.getCurrentRevisionId(),"modified",this.isModified(),"immediate",v);if(null!=c&&c!=g)this.checksumError(m,G,null,null,"mergeFile",c,g,b.getCurrentRevisionId());else{this.setShadowPages(p,n);if(null!=this.sync){var k=this.sync.patchRealtime(G,DrawioFile.LAST_WRITE_WINS?R:null,null,v);null==k||mxUtils.isEmptyObject(k)||G.push(k)}this.patch(G,DrawioFile.LAST_WRITE_WINS?R:null);this.inConflictState=this.invalidChecksum=!1;this.setDescriptor(b.getDescriptor());
+c,"current",g,"valid",c==g,"from",this.getCurrentRevisionId(),"to",b.getCurrentRevisionId(),"modified",this.isModified(),"immediate",u);if(null!=c&&c!=g)this.checksumError(m,G,null,null,"mergeFile",c,g,b.getCurrentRevisionId());else{this.setShadowPages(p,n);if(null!=this.sync){var k=this.sync.patchRealtime(G,DrawioFile.LAST_WRITE_WINS?R:null,null,u);null==k||mxUtils.isEmptyObject(k)||G.push(k)}this.patch(G,DrawioFile.LAST_WRITE_WINS?R:null);this.inConflictState=this.invalidChecksum=!1;this.setDescriptor(b.getDescriptor());
this.descriptorChanged();null!=d&&d()}}catch(D){this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=m&&m(D);try{var q=this.getCurrentUser(),A=null!=q?q.id:"unknown";EditorUi.logError("Error in mergeFile",null,this.getMode()+"."+this.getId(),A,D)}catch(H){}}}else throw Error(mxResources.get("notADiagramFile"));}catch(D){null!=m&&m(D)}};
-DrawioFile.prototype.getAnonymizedXmlForPages=function(b){var d=new mxCodec(mxUtils.createXmlDocument()),m=d.document.createElement("mxfile");if(null!=b)for(var n=0;n<b.length;n++){var v=d.encode(new mxGraphModel(b[n].root));"1"!=urlParams.dev&&(v=this.ui.anonymizeNode(v,!0));v.setAttribute("id",b[n].getId());b[n].viewState&&this.ui.editor.graph.saveViewState(b[n].viewState,v,!0);m.appendChild(v)}return mxUtils.getPrettyXml(m)};
+DrawioFile.prototype.getAnonymizedXmlForPages=function(b){var d=new mxCodec(mxUtils.createXmlDocument()),m=d.document.createElement("mxfile");if(null!=b)for(var n=0;n<b.length;n++){var u=d.encode(new mxGraphModel(b[n].root));"1"!=urlParams.dev&&(u=this.ui.anonymizeNode(u,!0));u.setAttribute("id",b[n].getId());b[n].viewState&&this.ui.editor.graph.saveViewState(b[n].viewState,u,!0);m.appendChild(u)}return mxUtils.getPrettyXml(m)};
DrawioFile.prototype.compressReportData=function(b,d,m){d=null!=d?d:1E4;null!=m&&null!=b&&b.length>m?b=b.substring(0,m)+"[...]":null!=b&&b.length>d&&(b=Graph.compress(b)+"\n");return b};
-DrawioFile.prototype.checksumError=function(b,d,m,n,v,p,z,G){this.stats.checksumErrors++;this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=b&&b();try{var U=this.getCurrentUser(),E=null!=U?U.id:"unknown",R=""!=this.getId()?this.getId():"("+this.ui.hashValue(this.getTitle())+")",N=JSON.stringify(d).length,c=null;if(null!=d&&1E3>N){b=[];for(m=0;m<d.length;m++)b.push(this.ui.anonymizePatch(d[m]));c=JSON.stringify(b);c=null!=c&&1E3>
+DrawioFile.prototype.checksumError=function(b,d,m,n,u,p,z,G){this.stats.checksumErrors++;this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=b&&b();try{var U=this.getCurrentUser(),E=null!=U?U.id:"unknown",R=""!=this.getId()?this.getId():"("+this.ui.hashValue(this.getTitle())+")",N=JSON.stringify(d).length,c=null;if(null!=d&&1E3>N){b=[];for(m=0;m<d.length;m++)b.push(this.ui.anonymizePatch(d[m]));c=JSON.stringify(b);c=null!=c&&1E3>
c.length?Graph.compress(c):null}this.getLatestVersion(mxUtils.bind(this,function(g){try{var k=null!=c?"report":"error",q=this.ui.getHashValueForPages(g.getShadowPages()),A="unknown",D="unknown",H="unknown";try{var K=null!=g.initialData&&0<g.initialData.length?mxUtils.parseXml(g.initialData).documentElement:null;null!=K&&(null!=K.getAttribute("version")&&(A=K.getAttribute("version")),null!=K.getAttribute("agent")&&(D=K.getAttribute("agent")),null!=K.getAttribute("type")&&(H=K.getAttribute("type")))}catch(P){}EditorUi.logError("Checksum "+
-k+" in "+v,null,this.getMode()+"."+R,"user_"+E+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+N+"-patches_"+d.length+(null!=c?"-json_"+c:"")+"-size_"+this.getSize()+(null!=p?"-expected_"+p:"")+(null!=z?"-current_"+z:"")+(null!=G?"-rev_"+this.ui.hashValue(G):"")+(null!=q?"-latest_"+q:"")+"-latestRev_"+this.ui.hashValue(g.getCurrentRevisionId())+("-latestVersion_"+A)+("-latestAgent_"+D)+("-latestType_"+H));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+R,action:v,label:"user_"+
+k+" in "+u,null,this.getMode()+"."+R,"user_"+E+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+N+"-patches_"+d.length+(null!=c?"-json_"+c:"")+"-size_"+this.getSize()+(null!=p?"-expected_"+p:"")+(null!=z?"-current_"+z:"")+(null!=G?"-rev_"+this.ui.hashValue(G):"")+(null!=q?"-latest_"+q:"")+"-latestRev_"+this.ui.hashValue(g.getCurrentRevisionId())+("-latestVersion_"+A)+("-latestAgent_"+D)+("-latestType_"+H));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+R,action:u,label:"user_"+
E+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+N+"-patches_"+d.length+"-size_"+this.getSize()})}catch(P){}}),function(){})}catch(g){}};
-DrawioFile.prototype.sendErrorReport=function(b,d,m,n){try{var v=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),p=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),z=this.getCurrentUser(),G=null!=z?this.ui.hashValue(z.id):"unknown",U=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",E=this.getTitle(),R=E.lastIndexOf(".");z="xml";0<R&&(z=E.substring(R));var N=null!=m?m.stack:Error().stack;EditorUi.sendReport(b+" "+(new Date).toISOString()+
+DrawioFile.prototype.sendErrorReport=function(b,d,m,n){try{var u=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),p=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),z=this.getCurrentUser(),G=null!=z?this.ui.hashValue(z.id):"unknown",U=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",E=this.getTitle(),R=E.lastIndexOf(".");z="xml";0<R&&(z=E.substring(R));var N=null!=m?m.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()+" ("+z+")\nUser="+G+U+"\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!=d?"\n\n"+d:
-"")+(null!=m?"\n\nError: "+m.message:"")+"\n\nStack:\n"+N+"\n\nShadow:\n"+v+"\n\nData:\n"+p,n)}catch(c){}};
-DrawioFile.prototype.reloadFile=function(b,d){try{this.stats.fileReloaded++;var m=this.ui.diffPages(this.getShadowPages(),this.isRealtime()?this.ownPages:this.ui.pages),n=this.ui.editor.graph,v=n.getSelectionCells(),p=n.getViewState(),z=this.ui.currentPage;this.getLatestVersion(mxUtils.bind(this,function(G){EditorUi.debug("DrawioFile.reloadFile",[this],"modified",this.isModified(),"rev",this.getCurrentRevisionId(),"changes",[m],"viewState",[p],"latestFile",G);null!=G?(this.ui.replaceFileData(G.getData(),
-[m]),this.ui.restoreViewState(z,p,v),this.setDescriptor(G.getDescriptor()),this.descriptorChanged(),null!=b&&b()):(this.ui.spinner.stop(),this.ui.loadFile(this.getHash(),!0,null,mxUtils.bind(this,function(){if(null==this.ui.fileLoadedError){var U=this.ui.getCurrentFile();null!=U&&(U.stats=this.stats,U.patch([m]),U.fileChanged());this.ui.restoreViewState(z,p,v);null!=b&&b()}else null!=d&&d(this.ui.fileLoadedError)}),!0))}),d)}catch(G){null!=d&&d(G)}};
+"")+(null!=m?"\n\nError: "+m.message:"")+"\n\nStack:\n"+N+"\n\nShadow:\n"+u+"\n\nData:\n"+p,n)}catch(c){}};
+DrawioFile.prototype.reloadFile=function(b,d){try{this.stats.fileReloaded++;var m=this.ui.diffPages(this.getShadowPages(),this.isRealtime()?this.ownPages:this.ui.pages),n=this.ui.editor.graph,u=n.getSelectionCells(),p=n.getViewState(),z=this.ui.currentPage;this.getLatestVersion(mxUtils.bind(this,function(G){EditorUi.debug("DrawioFile.reloadFile",[this],"modified",this.isModified(),"rev",this.getCurrentRevisionId(),"changes",[m],"viewState",[p],"latestFile",G);null!=G?(this.ui.replaceFileData(G.getData(),
+[m]),this.ui.restoreViewState(z,p,u),this.setDescriptor(G.getDescriptor()),this.descriptorChanged(),null!=b&&b()):(this.ui.spinner.stop(),this.ui.loadFile(this.getHash(),!0,null,mxUtils.bind(this,function(){if(null==this.ui.fileLoadedError){var U=this.ui.getCurrentFile();null!=U&&(U.stats=this.stats,U.patch([m]),U.fileChanged());this.ui.restoreViewState(z,p,u);null!=b&&b()}else null!=d&&d(this.ui.fileLoadedError)}),!0))}),d)}catch(G){null!=d&&d(G)}};
DrawioFile.prototype.copyFile=function(b,d){this.ui.editor.editAsNew(this.ui.getFileData(!0),this.ui.getCopyFilename(this))};DrawioFile.prototype.ignorePatches=function(b){var d=!0;if(null!=b)for(var m=0;m<b.length&&d;m++)d=d&&mxUtils.isEmptyObject(b[m]);return d};
-DrawioFile.prototype.patch=function(b,d,m,n){if(null!=b){var v=this.ui.editor.undoManager,p=v.history.slice(),z=v.indexOfNextAdd,G=this.ui.editor.graph;G.container.style.visibility="hidden";var U=this.changeListenerEnabled;this.changeListenerEnabled=m;var E=G.foldingEnabled,R=G.mathEnabled,N=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):null;this.ui.patchFileNode(b);var c=G.cellRenderer.redraw;G.cellRenderer.redraw=function(H){H.view.graph.isEditing(H.cell)&&(H.view.graph.scrollCellToVisible(H.cell),
+DrawioFile.prototype.patch=function(b,d,m,n){if(null!=b){var u=this.ui.editor.undoManager,p=u.history.slice(),z=u.indexOfNextAdd,G=this.ui.editor.graph;G.container.style.visibility="hidden";var U=this.changeListenerEnabled;this.changeListenerEnabled=m;var E=G.foldingEnabled,R=G.mathEnabled,N=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):null;this.ui.patchFileNode(b);var c=G.cellRenderer.redraw;G.cellRenderer.redraw=function(H){H.view.graph.isEditing(H.cell)&&(H.view.graph.scrollCellToVisible(H.cell),
H.view.graph.cellEditor.resize());c.apply(this,arguments)};G.model.beginUpdate();try{if(m){for(var g=this.ui.pages.slice(),k=this.ui.currentPage,q=this.ui.applyPatches(this.ui.pages,b,!0,d,this.isModified()),A=0;A<q.length;A++){var D=mxUtils.indexOf(this.ui.pages,q[A]);0>D?this.ui.insertPage(q[A],Math.min(A,this.ui.pages.length)):this.ui.movePage(D,A)}for(A=0;A<g.length;A++)0>mxUtils.indexOf(q,g[A])&&this.ui.removePage(g[A]);0<=mxUtils.indexOf(this.ui.pages,k)&&this.ui.selectPage(k,!0)}else this.ui.pages=
-this.ui.applyPatches(this.ui.pages,b,!0,d,this.isModified());0==this.ui.pages.length&&this.ui.pages.push(this.ui.createPage());0>mxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0);G.checkDefaultParent()}finally{G.container.style.visibility="",G.model.endUpdate(),G.cellRenderer.redraw=c,this.changeListenerEnabled=U,m||(v.history=p,v.indexOfNextAdd=z,v.fireEvent(new mxEventObject(mxEvent.CLEAR))),v=N!=(null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):
-null),(p=null==this.ui.currentPage||this.ui.currentPage.needsUpdate)&&R!=G.mathEnabled?(this.ui.editor.updateGraphComponents(),G.refresh()):v?G.refresh():p&&(E!=G.foldingEnabled?G.view.revalidate():G.view.validate(),G.sizeDidChange()),null!=this.sync&&this.isRealtime()&&!n&&(this.sync.snapshot=this.ui.clonePages(this.ui.pages),this.sync.snapshotVars=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):null),this.ui.editor.fireEvent(new mxEventObject("pagesPatched","patches",b))}EditorUi.debug("DrawioFile.patch",
+this.ui.applyPatches(this.ui.pages,b,!0,d,this.isModified());0==this.ui.pages.length&&this.ui.pages.push(this.ui.createPage());0>mxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0);G.checkDefaultParent()}finally{G.container.style.visibility="",G.model.endUpdate(),G.cellRenderer.redraw=c,this.changeListenerEnabled=U,m||(u.history=p,u.indexOfNextAdd=z,u.fireEvent(new mxEventObject(mxEvent.CLEAR))),u=N!=(null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):
+null),(p=null==this.ui.currentPage||this.ui.currentPage.needsUpdate)&&R!=G.mathEnabled?(this.ui.editor.updateGraphComponents(),G.refresh()):u?G.refresh():p&&(E!=G.foldingEnabled?G.view.revalidate():G.view.validate(),G.sizeDidChange()),null!=this.sync&&this.isRealtime()&&!n&&(this.sync.snapshot=this.ui.clonePages(this.ui.pages),this.sync.snapshotVars=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):null),this.ui.editor.fireEvent(new mxEventObject("pagesPatched","patches",b))}EditorUi.debug("DrawioFile.patch",
[this],"patches",b,"resolver",d,"undoable",m)}return b};
-DrawioFile.prototype.save=function(b,d,m,n,v,p){try{if(EditorUi.debug("DrawioFile.save",[this],"revision",b,"unloading",n,"overwrite",v,"manual",p,"saving",this.savingFile,"editable",this.isEditable(),"invalidChecksum",this.invalidChecksum),this.isEditable())if(!v&&this.invalidChecksum)if(null!=m)m({message:mxResources.get("checksum")});else throw Error(mxResources.get("checksum"));else this.updateFileData(),this.clearAutosave(),null!=d&&d();else if(null!=m)m({message:mxResources.get("readOnly")});
+DrawioFile.prototype.save=function(b,d,m,n,u,p){try{if(EditorUi.debug("DrawioFile.save",[this],"revision",b,"unloading",n,"overwrite",u,"manual",p,"saving",this.savingFile,"editable",this.isEditable(),"invalidChecksum",this.invalidChecksum),this.isEditable())if(!u&&this.invalidChecksum)if(null!=m)m({message:mxResources.get("checksum")});else throw Error(mxResources.get("checksum"));else this.updateFileData(),this.clearAutosave(),null!=d&&d();else if(null!=m)m({message:mxResources.get("readOnly")});
else throw Error(mxResources.get("readOnly"));}catch(z){if(null!=m)m(z);else throw z;}};DrawioFile.prototype.createData=function(){var b=this.ui.pages;if(this.isRealtime()&&(this.ui.pages=this.ownPages,null!=this.ui.currentPage)){var d=this.ui.getPageById(this.ui.currentPage.getId(),this.ownPages);null!=d&&(d.viewState=this.ui.editor.graph.getViewState(),d.needsUpdate=!0)}d=this.ui.getFileData(null,null,null,null,null,null,null,null,this,!this.isCompressed());this.ui.pages=b;return d};
DrawioFile.prototype.updateFileData=function(){null!=this.sync&&this.sync.sendLocalChanges();this.setData(this.createData());null!=this.sync&&this.sync.fileDataUpdated()};DrawioFile.prototype.isCompressedStorage=function(){return Editor.defaultCompressed};DrawioFile.prototype.isCompressed=function(){var b=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("compressed"):null;return null!=b?"false"!=b:this.isCompressedStorage()&&Editor.compressXml};
DrawioFile.prototype.setLocked=function(b){this.ui.fileNode.setAttribute("locked",b?"true":"false");this.ui.fireEvent(new mxEventObject("lockedChanged"));this.fileChanged();b&&this.ui.editor.graph.clearSelection()};DrawioFile.prototype.isLocked=function(){var b=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("locked"):null;return null!=b?"true"==b:!1};DrawioFile.prototype.saveAs=function(b,d,m){};DrawioFile.prototype.saveFile=function(b,d,m,n){};DrawioFile.prototype.getFileUrl=function(){return null};
DrawioFile.prototype.getFolderUrl=function(b){return null};DrawioFile.prototype.getPublicUrl=function(b){b(null)};DrawioFile.prototype.isRestricted=function(){return DrawioFile.RESTRICT_EXPORT};DrawioFile.prototype.isModified=function(){return this.modified};DrawioFile.prototype.getShadowModified=function(){return this.shadowModified};DrawioFile.prototype.setShadowModified=function(b){this.shadowModified=b};DrawioFile.prototype.setModified=function(b){this.shadowModified=this.modified=b};
DrawioFile.prototype.isAutosaveOptional=function(){return!1};DrawioFile.prototype.isAutosave=function(){return!this.inConflictState&&this.ui.editor.autosave};DrawioFile.prototype.isRenamable=function(){return!1};DrawioFile.prototype.rename=function(b,d,m){};DrawioFile.prototype.isMovable=function(){return!1};DrawioFile.prototype.isTrashed=function(){return!1};DrawioFile.prototype.move=function(b,d,m){};
-DrawioFile.prototype.share=function(){null!=this.ui.drive?this.ui.confirm(mxResources.get("saveItToGoogleDriveToCollaborate",[this.getTitle()]),mxUtils.bind(this,function(){this.ui.pickFolder(App.MODE_GOOGLE,mxUtils.bind(this,function(b){var d=this.ui.editor.graph,m=d.getSelectionCells(),n=d.getViewState(),v=this.ui.currentPage;this.ui.createFile(this.getTitle(),this.ui.getFileData(null,null,null,null,null,null,null,null,this),null,App.MODE_GOOGLE,null,!0,b,null,null,mxUtils.bind(this,function(){this.ui.restoreViewState(v,
+DrawioFile.prototype.share=function(){null!=this.ui.drive?this.ui.confirm(mxResources.get("saveItToGoogleDriveToCollaborate",[this.getTitle()]),mxUtils.bind(this,function(){this.ui.pickFolder(App.MODE_GOOGLE,mxUtils.bind(this,function(b){var d=this.ui.editor.graph,m=d.getSelectionCells(),n=d.getViewState(),u=this.ui.currentPage;this.ui.createFile(this.getTitle(),this.ui.getFileData(null,null,null,null,null,null,null,null,this),null,App.MODE_GOOGLE,null,!0,b,null,null,mxUtils.bind(this,function(){this.ui.restoreViewState(u,
n,m);this.ui.actions.get("share").funct()}))}))}),null,mxResources.get("saveToGoogleDrive",null,"Save to Google Drive"),mxResources.get("cancel")):this.ui.alert(mxResources.get("sharingAvailable"),null,380)};DrawioFile.prototype.getHash=function(){return""};DrawioFile.prototype.getId=function(){return""};DrawioFile.prototype.isEditable=function(){return!this.ui.editor.isChromelessView()||this.ui.editor.editable};DrawioFile.prototype.getUi=function(){return this.ui};DrawioFile.prototype.getTitle=function(){return""};
DrawioFile.prototype.setData=function(b){this.data=b;EditorUi.debug("DrawioFile.setData",[this],"data",[b])};DrawioFile.prototype.getData=function(){return this.data};DrawioFile.prototype.removeExtFonts=function(b){for(var d=0;null!=b&&d<b.length;d++){var m=b[d];null!=m.id&&0==m.id.indexOf("extFont_")&&m.parentNode.removeChild(m)}};
DrawioFile.prototype.open=function(){this.stats.opened++;var b=this.getData();null!=b&&(this.ui.setFileData(b,this),this.isModified()||this.setShadowPages(this.ui.clonePages(this.ui.pages)));this.installListeners();this.isSyncSupported()&&this.startSync();EditorUi.debug("DrawioFile.open",[this])};DrawioFile.prototype.isPolling=function(){return!1};DrawioFile.prototype.getPollingInterval=function(){return 1E4};DrawioFile.prototype.isSyncSupported=function(){return!1};
@@ -3282,32 +3286,32 @@ DrawioFile.prototype.showRefreshDialog=function(b,d,m){null==m&&(m=mxResources.g
function(){null!=b&&b();this.ui.alert(mxResources.get("copyCreated"))}),d)}),null,mxResources.get("merge"),mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get("updatingDocument"))&&this.reloadFile(mxUtils.bind(this,function(){this.ui.spinner.stop();null!=b&&b()}),mxUtils.bind(this,function(){this.ui.spinner.stop();null!=d&&d()}))}),mxResources.get("cancel"),mxUtils.bind(this,function(){this.ui.hideDialog()}),380,130))};
DrawioFile.prototype.showCopyDialog=function(b,d,m){this.invalidChecksum=this.inConflictState=!1;this.addUnsavedStatus();this.ui.showError(mxResources.get("externalChanges"),mxResources.get("fileChangedOverwriteDialog"),mxResources.get("makeCopy"),mxUtils.bind(this,function(){this.copyFile(b,d)}),null,mxResources.get("overwrite"),m,mxResources.get("cancel"),mxUtils.bind(this,function(){this.ui.hideDialog()}),380,150)};
DrawioFile.prototype.showConflictDialog=function(b,d){this.ui.showError(mxResources.get("externalChanges"),mxResources.get("fileChangedSyncDialog"),mxResources.get("overwrite"),b,null,mxResources.get("merge"),d,mxResources.get("cancel"),mxUtils.bind(this,function(){this.ui.hideDialog();this.handleFileError(null,!1)}),380,130)};
-DrawioFile.prototype.redirectToNewApp=function(b,d){this.ui.spinner.stop();if(!this.redirectDialogShowing){this.redirectDialogShowing=!0;var m=window.location.protocol+"//"+window.location.host+"/"+this.ui.getSearch("create title mode url drive splash state".split(" "))+"#"+this.getHash(),n=mxResources.get("redirectToNewApp");null!=d&&(n+=" ("+d+")");d=mxUtils.bind(this,function(){var v=mxUtils.bind(this,function(){this.redirectDialogShowing=!1;window.location.href==m?window.location.reload():window.location.href=
-m});null==b&&this.isModified()?this.ui.confirm(mxResources.get("allChangesLost"),mxUtils.bind(this,function(){this.redirectDialogShowing=!1}),v,mxResources.get("cancel"),mxResources.get("discardChanges")):v()});null!=b?this.isModified()?this.ui.confirm(n,mxUtils.bind(this,function(){this.redirectDialogShowing=!1;b()}),d,mxResources.get("cancel"),mxResources.get("discardChanges")):this.ui.confirm(n,d,mxUtils.bind(this,function(){this.redirectDialogShowing=!1;b()})):this.ui.alert(mxResources.get("redirectToNewApp"),
+DrawioFile.prototype.redirectToNewApp=function(b,d){this.ui.spinner.stop();if(!this.redirectDialogShowing){this.redirectDialogShowing=!0;var m=window.location.protocol+"//"+window.location.host+"/"+this.ui.getSearch("create title mode url drive splash state".split(" "))+"#"+this.getHash(),n=mxResources.get("redirectToNewApp");null!=d&&(n+=" ("+d+")");d=mxUtils.bind(this,function(){var u=mxUtils.bind(this,function(){this.redirectDialogShowing=!1;window.location.href==m?window.location.reload():window.location.href=
+m});null==b&&this.isModified()?this.ui.confirm(mxResources.get("allChangesLost"),mxUtils.bind(this,function(){this.redirectDialogShowing=!1}),u,mxResources.get("cancel"),mxResources.get("discardChanges")):u()});null!=b?this.isModified()?this.ui.confirm(n,mxUtils.bind(this,function(){this.redirectDialogShowing=!1;b()}),d,mxResources.get("cancel"),mxResources.get("discardChanges")):this.ui.confirm(n,d,mxUtils.bind(this,function(){this.redirectDialogShowing=!1;b()})):this.ui.alert(mxResources.get("redirectToNewApp"),
d)}};
DrawioFile.prototype.handleFileSuccess=function(b){this.ui.spinner.stop();this.ui.getCurrentFile()==this&&(EditorUi.debug("DrawioFile.handleFileSuccess",[this],"saved",b,"modified",this.isModified(),"remoteFileChanged",null==this.sync?"n/a":this.sync.remoteFileChanged),this.isModified()?this.fileChanged():b?(this.isTrashed()?this.ui.updateStatus(mxUtils.bind(this,function(){this.addAllSavedStatus(mxUtils.htmlEntities(mxResources.get(this.allChangesSavedKey))+" ("+mxUtils.htmlEntities(mxResources.get("fileMovedToTrash"))+")")})):
this.ui.updateStatus(mxUtils.bind(this,function(){this.addAllSavedStatus()})),null!=this.sync&&(this.sync.resetUpdateStatusThread(),this.sync.remoteFileChanged&&(this.sync.remoteFileChanged=!1,this.sync.fileChangedNotify()))):this.ui.clearStatus())};
DrawioFile.prototype.handleFileError=function(b,d){this.ui.spinner.stop();this.ui.getCurrentFile()==this&&(this.inConflictState?this.handleConflictError(b,d):(this.isModified()&&this.addUnsavedStatus(b),d?this.ui.handleError(b,null!=b?mxResources.get("errorSavingFile"):null):this.isModified()||this.ui.updateStatus(mxUtils.bind(this,function(){var m=this.getErrorMessage(b);null!=m&&60<m.length&&(m=m.substring(0,60)+"...");this.ui.editor.setStatus('<div class="geStatusAlert">'+mxUtils.htmlEntities(mxResources.get("error"))+
(null!=m?" ("+mxUtils.htmlEntities(m)+")":"")+"</div>")}))))};
-DrawioFile.prototype.handleConflictError=function(b,d){var m=mxUtils.bind(this,function(){this.handleFileSuccess(!0)}),n=mxUtils.bind(this,function(z){this.handleFileError(z,!0)}),v=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&(this.ui.clearStatus(),this.save(!0,m,n,null,!0,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage))}),p=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get("updatingDocument"))&&
-this.synchronizeFile(mxUtils.bind(this,function(){this.ui.spinner.stop();this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&this.save(!0,m,n,null,null,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage)}),n)});"none"==DrawioFile.SYNC?this.showCopyDialog(m,n,v):this.invalidChecksum&&d?this.showRefreshDialog(m,n,this.getErrorMessage(b)):d?this.showConflictDialog(v,p):this.addConflictStatus(this.getErrorMessage(b),mxUtils.bind(this,function(){this.ui.editor.setStatus(mxUtils.htmlEntities(mxResources.get("updatingDocument")));
+DrawioFile.prototype.handleConflictError=function(b,d){var m=mxUtils.bind(this,function(){this.handleFileSuccess(!0)}),n=mxUtils.bind(this,function(z){this.handleFileError(z,!0)}),u=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&(this.ui.clearStatus(),this.save(!0,m,n,null,!0,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage))}),p=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get("updatingDocument"))&&
+this.synchronizeFile(mxUtils.bind(this,function(){this.ui.spinner.stop();this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&this.save(!0,m,n,null,null,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage)}),n)});"none"==DrawioFile.SYNC?this.showCopyDialog(m,n,u):this.invalidChecksum&&d?this.showRefreshDialog(m,n,this.getErrorMessage(b)):d?this.showConflictDialog(u,p):this.addConflictStatus(this.getErrorMessage(b),mxUtils.bind(this,function(){this.ui.editor.setStatus(mxUtils.htmlEntities(mxResources.get("updatingDocument")));
this.synchronizeFile(m,n)}))};DrawioFile.prototype.getErrorMessage=function(b){var d=null!=b?null!=b.error?b.error.message:b.message:null;null==d&&null!=b&&b.code==App.ERROR_TIMEOUT?d=mxResources.get("timeout"):"0"==d&&(d=mxResources.get("noResponse"));return d};DrawioFile.prototype.isOverdue=function(){return null!=this.ageStart&&Date.now()-this.ageStart.getTime()>=this.ui.warnInterval};
-DrawioFile.prototype.compressionChanged=function(b){var d=null!=this.ownPages?this.ownPages:this.ui.pages;if(null!=d)for(var m=0;m<d.length;m++){var n=d[m].node;if(null!=n&&(null==this.ui.currentPage||this.ui.currentPage.getId()!=d[m].getId())){var v=n.getElementsByTagName("mxGraphModel");v=0<v.length?v[0]:null;var p=Graph.decompress(mxUtils.getNodeValue(n));b?0==p.length&&null!=v&&(EditorUi.removeChildNodes(n),mxUtils.setTextContent(n,Graph.compressNode(v)),EditorUi.debug("DrawioFile.compressionChanged",
-[this],"Page "+m+" compressed")):0<p.length&&null==v&&(EditorUi.removeChildNodes(n),n.appendChild(mxUtils.parseXml(p).documentElement),EditorUi.debug("DrawioFile.compressionChanged",[this],"Page "+m+" decompressed"))}}};DrawioFile.prototype.fileReplaced=function(b){this.inConflictState=this.invalidChecksum=!1;null!=b&&this.patch(b);null!=this.sync&&this.sync.initRealtime();EditorUi.debug("DrawioFile.fileReplaced",[this],"patches",b)};
+DrawioFile.prototype.compressionChanged=function(b){var d=null!=this.ownPages?this.ownPages:this.ui.pages;if(null!=d)for(var m=0;m<d.length;m++){var n=d[m].node;if(null!=n&&(null==this.ui.currentPage||this.ui.currentPage.getId()!=d[m].getId())){var u=n.getElementsByTagName("mxGraphModel");u=0<u.length?u[0]:null;var p=Graph.decompress(mxUtils.getNodeValue(n));b?0==p.length&&null!=u&&(EditorUi.removeChildNodes(n),mxUtils.setTextContent(n,Graph.compressNode(u)),EditorUi.debug("DrawioFile.compressionChanged",
+[this],"Page "+m+" compressed")):0<p.length&&null==u&&(EditorUi.removeChildNodes(n),n.appendChild(mxUtils.parseXml(p).documentElement),EditorUi.debug("DrawioFile.compressionChanged",[this],"Page "+m+" decompressed"))}}};DrawioFile.prototype.fileReplaced=function(b){this.inConflictState=this.invalidChecksum=!1;null!=b&&this.patch(b);null!=this.sync&&this.sync.initRealtime();EditorUi.debug("DrawioFile.fileReplaced",[this],"patches",b)};
DrawioFile.prototype.fileChanged=function(b){b=null!=b?b:!0;this.lastChanged=new Date;this.setModified(!0);EditorUi.debug("DrawioFile.fileChanged",[this],"autosaveDelay",this.autosaveDelay,"autosave",this.isAutosave(),"saving",this.savingFile);this.isAutosave()?(null!=this.savingStatusKey&&this.ui.updateStatus(mxUtils.bind(this,function(){this.addAllSavedStatus(mxUtils.htmlEntities(mxResources.get(this.savingStatusKey))+"...")})),this.ui.scheduleSanityCheck(),null==this.ageStart&&(this.ageStart=new Date),
this.autosave(this.autosaveDelay,this.maxAutosaveDelay,mxUtils.bind(this,function(d){this.ui.stopSanityCheck();null==this.autosaveThread?(this.handleFileSuccess(!0),this.ageStart=null):this.isModified()&&(this.ui.scheduleSanityCheck(),this.ageStart=this.lastChanged)}),mxUtils.bind(this,function(d){this.handleFileError(d)}))):(this.ageStart=null,this.isAutosaveOptional()&&this.ui.editor.autosave||this.inConflictState||this.addUnsavedStatus());null!=this.sync&&b&&this.sync.localFileChanged()};
DrawioFile.prototype.createSecret=function(b){var d=Editor.guid(32);Editor.enableRealtimeCache&&null!=this.sync&&!this.isOptimisticSync()?this.sync.createToken(d,mxUtils.bind(this,function(m){EditorUi.debug("DrawioFile.createSecret",[this],"secret",d,"token",m);b(d,m)}),mxUtils.bind(this,function(){b(d)})):b(d)};DrawioFile.prototype.fileSaving=function(){null!=this.sync&&this.sync.fileSaving()};
-DrawioFile.prototype.fileSaved=function(b,d,m,n,v,p,z){this.lastSaved=new Date;this.ageStart=null;this.stats.saved++;try{this.invalidChecksum=this.inConflictState=!1;p=null!=p?p:this.ui.getPagesForXml(b);try{null==this.sync||this.isOptimisticSync()?(this.setShadowPages(p),null!=this.sync&&(this.sync.lastModified=this.getLastModifiedDate(),this.sync.resetUpdateStatusThread(),this.isRealtime()&&this.sync.scheduleCleanup()),null!=m&&m()):this.sync.fileSaved(p,d,m,n,v,z)}catch(E){this.invalidChecksum=
+DrawioFile.prototype.fileSaved=function(b,d,m,n,u,p,z){this.lastSaved=new Date;this.ageStart=null;this.stats.saved++;try{this.invalidChecksum=this.inConflictState=!1;p=null!=p?p:this.ui.getPagesForXml(b);try{null==this.sync||this.isOptimisticSync()?(this.setShadowPages(p),null!=this.sync&&(this.sync.lastModified=this.getLastModifiedDate(),this.sync.resetUpdateStatusThread(),this.isRealtime()&&this.sync.scheduleCleanup()),null!=m&&m()):this.sync.fileSaved(p,d,m,n,u,z)}catch(E){this.invalidChecksum=
this.inConflictState=!0;this.descriptorChanged();null!=n&&n(E);try{var G=this.getCurrentUser(),U=null!=G?G.id:"unknown";EditorUi.logError("Error in fileSaved",null,this.getMode()+"."+this.getId(),U,E)}catch(R){}}EditorUi.debug("DrawioFile.fileSaved",[this],"savedData",[b],"desc",[d],"inConflictState",this.inConflictState,"invalidChecksum",this.invalidChecksum)}catch(E){this.descriptorChanged(),null!=n&&n(E)}};
-DrawioFile.prototype.autosave=function(b,d,m,n){null==this.lastAutosave&&(this.lastAutosave=Date.now());var v=Date.now()-this.lastAutosave<d?b:0;this.clearAutosave();var p=window.setTimeout(mxUtils.bind(this,function(){try{if(this.lastAutosave=null,this.autosaveThread==p&&(this.autosaveThread=null),EditorUi.debug("DrawioFile.autosave",[this],"thread",p,"modified",this.isModified(),"now",this.isAutosaveNow(),"saving",this.savingFile),this.isModified()&&this.isAutosaveNow()){var z=this.isAutosaveRevision();
-z&&(this.lastAutosaveRevision=(new Date).getTime());this.save(z,mxUtils.bind(this,function(G){this.autosaveCompleted();null!=m&&m(G)}),mxUtils.bind(this,function(G){null!=n&&n(G)}))}else this.isModified()||this.ui.clearStatus(),null!=m&&m(null)}catch(G){null!=n&&n(G)}}),v);this.autosaveThread=p;EditorUi.debug("DrawioFile.autosave",[this],"thread",p,"delay",b,"maxDelay",d,"actualDelay",v,"lastAutosave",this.lastAutosave,"saving",this.savingFile)};DrawioFile.prototype.isAutosaveNow=function(){return!0};
+DrawioFile.prototype.autosave=function(b,d,m,n){null==this.lastAutosave&&(this.lastAutosave=Date.now());var u=Date.now()-this.lastAutosave<d?b:0;this.clearAutosave();var p=window.setTimeout(mxUtils.bind(this,function(){try{if(this.lastAutosave=null,this.autosaveThread==p&&(this.autosaveThread=null),EditorUi.debug("DrawioFile.autosave",[this],"thread",p,"modified",this.isModified(),"now",this.isAutosaveNow(),"saving",this.savingFile),this.isModified()&&this.isAutosaveNow()){var z=this.isAutosaveRevision();
+z&&(this.lastAutosaveRevision=(new Date).getTime());this.save(z,mxUtils.bind(this,function(G){this.autosaveCompleted();null!=m&&m(G)}),mxUtils.bind(this,function(G){null!=n&&n(G)}))}else this.isModified()||this.ui.clearStatus(),null!=m&&m(null)}catch(G){null!=n&&n(G)}}),u);this.autosaveThread=p;EditorUi.debug("DrawioFile.autosave",[this],"thread",p,"delay",b,"maxDelay",d,"actualDelay",u,"lastAutosave",this.lastAutosave,"saving",this.savingFile)};DrawioFile.prototype.isAutosaveNow=function(){return!0};
DrawioFile.prototype.autosaveCompleted=function(){};DrawioFile.prototype.clearAutosave=function(){null!=this.autosaveThread&&(window.clearTimeout(this.autosaveThread),this.autosaveThread=null)};DrawioFile.prototype.isAutosaveRevision=function(){var b=(new Date).getTime();return null==this.lastAutosaveRevision||b-this.lastAutosaveRevision>this.maxAutosaveRevisionDelay};DrawioFile.prototype.descriptorChanged=function(){this.fireEvent(new mxEventObject("descriptorChanged"))};
DrawioFile.prototype.contentChanged=function(){this.fireEvent(new mxEventObject("contentChanged"))};DrawioFile.prototype.close=function(b){try{this.isAutosave()&&this.isModified()&&(this.updateFileData(),this.save(this.isAutosaveRevision(),null,null,b))}catch(d){}this.stats.closed++;this.destroy()};DrawioFile.prototype.hasSameExtension=function(b,d){if(null!=b&&null!=d){var m=b.lastIndexOf(".");b=0<m?b.substring(m):"";m=d.lastIndexOf(".");return b===(0<m?d.substring(m):"")}return b==d};
DrawioFile.prototype.removeListeners=function(){null!=this.changeListener&&(this.ui.editor.graph.model.removeListener(this.changeListener),this.ui.editor.graph.removeListener(this.changeListener),this.ui.removeListener(this.changeListener),this.changeListener=null)};DrawioFile.prototype.destroy=function(){this.clearAutosave();this.removeListeners();this.stats.destroyed++;null!=this.sync&&(this.sync.destroy(),this.sync=null)};DrawioFile.prototype.commentsSupported=function(){return!1};
-DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,d){b([])};DrawioFile.prototype.addComment=function(b,d,m){d(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,d){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,d)};LocalFile=function(b,d,m,n,v,p,z){DrawioFile.call(this,b,d);this.title=m;this.mode=n?null:App.MODE_DEVICE;this.fileHandle=v;this.desc=p;this.editable=z};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};
-LocalFile.prototype.getTitle=function(){return this.title};LocalFile.prototype.isRenamable=function(){return!0};LocalFile.prototype.isEditable=function(){return DrawioFile.prototype.isEditable.apply(this,arguments)&&(null==this.editable||this.editable)};LocalFile.prototype.setEditable=function(b){this.editable=b;this.descriptorChanged()};LocalFile.prototype.save=function(b,d,m,n,v){this.saveAs(this.title,d,m,n,v)};LocalFile.prototype.saveAs=function(b,d,m,n,v){this.saveFile(b,!1,d,m,null,n,v)};
+DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,d){b([])};DrawioFile.prototype.addComment=function(b,d,m){d(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,d){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,d)};LocalFile=function(b,d,m,n,u,p,z){DrawioFile.call(this,b,d);this.title=m;this.mode=n?null:App.MODE_DEVICE;this.fileHandle=u;this.desc=p;this.editable=z};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};
+LocalFile.prototype.getTitle=function(){return this.title};LocalFile.prototype.isRenamable=function(){return!0};LocalFile.prototype.isEditable=function(){return DrawioFile.prototype.isEditable.apply(this,arguments)&&(null==this.editable||this.editable)};LocalFile.prototype.setEditable=function(b){this.editable=b;this.descriptorChanged()};LocalFile.prototype.save=function(b,d,m,n,u){this.saveAs(this.title,d,m,n,u)};LocalFile.prototype.saveAs=function(b,d,m,n,u){this.saveFile(b,!1,d,m,null,n,u)};
LocalFile.prototype.getDescriptor=function(){return this.desc};LocalFile.prototype.setDescriptor=function(b){this.desc=b};LocalFile.prototype.getLatestVersion=function(b,d){null==this.fileHandle?null!=d&&d({message:mxResources.get("cannotOpenFile")}):this.ui.loadFileSystemEntry(this.fileHandle,b,d)};
-LocalFile.prototype.saveFile=function(b,d,m,n,v,p,z){b!=this.title&&(this.editable=this.desc=this.fileHandle=null);this.title=b;v||this.updateFileData();var G=Editor.useCanvasForExport&&/(\.png)$/i.test(this.getTitle());this.setShadowModified(!1);var U=this.getData(),E=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.contentChanged();null!=m&&m()}),R=mxUtils.bind(this,function(N){if(null!=this.fileHandle){if(!this.savingFile){this.savingFileTime=new Date;this.savingFile=
+LocalFile.prototype.saveFile=function(b,d,m,n,u,p,z){b!=this.title&&(this.editable=this.desc=this.fileHandle=null);this.title=b;u||this.updateFileData();var G=Editor.useCanvasForExport&&/(\.png)$/i.test(this.getTitle());this.setShadowModified(!1);var U=this.getData(),E=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.contentChanged();null!=m&&m()}),R=mxUtils.bind(this,function(N){if(null!=this.fileHandle){if(!this.savingFile){this.savingFileTime=new Date;this.savingFile=
!0;var c=mxUtils.bind(this,function(k){this.savingFile=!1;null!=n&&n({error:k})});this.saveDraft(U);this.fileHandle.createWritable().then(mxUtils.bind(this,function(k){this.fileHandle.getFile().then(mxUtils.bind(this,function(q){this.invalidFileHandle=null;EditorUi.debug("LocalFile.saveFile",[this],"desc",[this.desc],"newDesc",[q],"conflict",this.desc.lastModified!=q.lastModified);z||this.desc.lastModified==q.lastModified?k.write(G?this.ui.base64ToBlob(N,"image/png"):N).then(mxUtils.bind(this,function(){k.close().then(mxUtils.bind(this,
function(){this.fileHandle.getFile().then(mxUtils.bind(this,function(A){try{var D=this.desc;this.savingFile=!1;this.desc=A;this.fileSaved(U,D,E,c);this.removeDraft()}catch(H){c(H)}}),c)}),c)}),c):(this.inConflictState=!0,c())}),mxUtils.bind(this,function(q){this.invalidFileHandle=!0;c(q)}))}),c)}}else{if(this.ui.isOfflineApp()||this.ui.isLocalFileSave())this.ui.doSaveLocalFile(N,b,G?"image/png":"text/xml",G);else if(N.length<MAX_REQUEST_SIZE){var g=b.lastIndexOf(".");g=0<g?b.substring(g+1):"xml";
(new mxXmlRequest(SAVE_URL,"format="+g+"&xml="+encodeURIComponent(N)+"&filename="+encodeURIComponent(b)+(G?"&binary=1":""))).simulate(document,"_blank")}else this.ui.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(N)}));E()}});G?(d=this.ui.getPngFileProperties(this.ui.fileNode),this.ui.getEmbeddedPng(mxUtils.bind(this,function(N){R(N)}),n,this.ui.getCurrentFile()!=this?U:null,d.scale,d.border)):R(U)};
@@ -3495,7 +3499,7 @@ x,J){var L=mxClient.IS_FF?8192:16384;return Math.min(J,Math.min(L/l,L/x))};Edito
"antialiased");Da.style.setProperty("-moz-osx-font-smoothing","grayscale");var Ha=new Image;Ha.onload=mxUtils.bind(this,function(){try{var Ka=function(){mxClient.IS_SF?window.setTimeout(function(){Ma.drawImage(Ha,0,0);l(za,Da)},0):(Ma.drawImage(Ha,0,0),l(za,Da))},za=document.createElement("canvas"),Sa=parseInt(Da.getAttribute("width")),Oa=parseInt(Da.getAttribute("height"));S=null!=S?S:1;null!=x&&(S=Y?Math.min(1,Math.min(3*x/(4*Oa),x/Sa)):x/Sa);S=this.getMaxCanvasScale(Sa,Oa,S);Sa=Math.ceil(S*Sa);
Oa=Math.ceil(S*Oa);za.setAttribute("width",Sa);za.setAttribute("height",Oa);var Ma=za.getContext("2d");if(null!=Ua){var Na=mxUtils.getLightDarkColor(Ua);Ma.beginPath();Ma.rect(0,0,Sa,Oa);Ma.fillStyle="dark"==Ca&&"none"!=na.getAdaptiveColors()?Na.dark:Na.light;Ma.fill()}1!=S&&Ma.scale(S,S);if(Aa){var Ba=na.view,Ya=Ba.scale;Ba.scale=1;var Pa=btoa(unescape(encodeURIComponent(Ba.createSvgGrid(Ba.gridColor))));Ba.scale=Ya;Pa="data:image/svg+xml;base64,"+Pa;var sa=na.gridSize*Ba.gridSteps*S,Fa=na.getGraphBounds(),
Qa=Ba.translate.x*Ya,Ta=Ba.translate.y*Ya,y=Qa+(Fa.x-Qa)/Ya-ra,Q=Ta+(Fa.y-Ta)/Ya-ra,V=new Image;V.onload=function(){try{for(var X=-Math.round(sa-mxUtils.mod((Qa-y)*S,sa)),ia=-Math.round(sa-mxUtils.mod((Ta-Q)*S,sa));X<Sa;X+=sa)for(var la=ia;la<Oa;la+=sa)Ma.drawImage(V,X/S,la/S);Ka()}catch(qa){null!=T&&T(qa)}};V.onerror=function(X){null!=T&&T(X)};V.src=Pa}else Ka()}catch(X){null!=T&&T(X)}});Ha.onerror=function(Ka){null!=T&&T(Ka)};da&&this.graph.addSvgShadow(Da);this.graph.mathEnabled&&this.addMathCss(Da);
-var $a=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(Da,this.resolvedFontCss),Ha.src=Editor.createSvgDataUri(mxUtils.getXml(Da))}catch(Ka){null!=T&&T(Ka)}});this.embedExtFonts(mxUtils.bind(this,function(Ka){try{null!=Ka&&this.addFontCss(Da,Ka),this.loadFonts($a)}catch(za){null!=T&&T(za)}}))}catch(Ka){null!=T&&T(Ka)}}),J,ma)}catch(Da){null!=T&&T(Da)}};Editor.crcTable=[];for(var v=0;256>v;v++)for(var p=v,z=0;8>z;z++)p=1==(p&1)?3988292384^p>>>1:p>>>1,Editor.crcTable[v]=
+var $a=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(Da,this.resolvedFontCss),Ha.src=Editor.createSvgDataUri(mxUtils.getXml(Da))}catch(Ka){null!=T&&T(Ka)}});this.embedExtFonts(mxUtils.bind(this,function(Ka){try{null!=Ka&&this.addFontCss(Da,Ka),this.loadFonts($a)}catch(za){null!=T&&T(za)}}))}catch(Ka){null!=T&&T(Ka)}}),J,ma)}catch(Da){null!=T&&T(Da)}};Editor.crcTable=[];for(var u=0;256>u;u++)for(var p=u,z=0;8>z;z++)p=1==(p&1)?3988292384^p>>>1:p>>>1,Editor.crcTable[u]=
p;Editor.updateCRC=function(l,x,J,L){for(var T=0;T<L;T++)l=Editor.crcTable[(l^x.charCodeAt(J+T))&255]^l>>>8;return l};Editor.crc32=function(l){for(var x=-1,J=0;J<l.length;J++)x=x>>>8^Editor.crcTable[(x^l.charCodeAt(J))&255];return(x^-1)>>>0};Editor.writeGraphModelToPng=function(l,x,J,L,T){function Y(ma,na){var ra=Z;Z+=na;return ma.substring(ra,Z)}function aa(ma){ma=Y(ma,4);return ma.charCodeAt(3)+(ma.charCodeAt(2)<<8)+(ma.charCodeAt(1)<<16)+(ma.charCodeAt(0)<<24)}function S(ma){return String.fromCharCode(ma>>
24&255,ma>>16&255,ma>>8&255,ma&255)}l=l.substring(l.indexOf(",")+1);l=window.atob?atob(l):Base64.decode(l,!0);var Z=0;if(Y(l,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=T&&T();else if(Y(l,4),"IHDR"!=Y(l,4))null!=T&&T();else{Y(l,17);T=l.substring(0,Z);do{var da=aa(l);if("IDAT"==Y(l,4)){T=l.substring(0,Z-8);"pHYs"==x&&"dpi"==J?(J=Math.round(L/.0254),J=S(J)+S(J)+String.fromCharCode(1)):J=J+String.fromCharCode(0)+("zTXt"==x?String.fromCharCode(0):"")+L;L=4294967295;L=Editor.updateCRC(L,
x,0,4);L=Editor.updateCRC(L,J,0,J.length);T+=S(J.length)+x+J+S(L^4294967295);T+=l.substring(Z-8,l.length);break}T+=l.substring(Z-8,Z-4+da);Y(l,da);Y(l,4)}while(da);return"data:image/png;base64,"+(window.btoa?btoa(T):Base64.encode(T,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var G=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(l,x){G.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};
@@ -3593,62 +3597,62 @@ l,x.value=L,x.scale=J,x.redraw())}};var fa=Graph.prototype.refresh;Graph.prototy
Graph.prototype.handleCustomLink=function(l,x){"data:action/json,"==l.substring(0,17)&&(l=JSON.parse(l.substring(17)),null!=l.actions&&this.executeCustomActions(l.actions,null,x))};Graph.prototype.executeCustomActions=function(l,x,J){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 L=!1,T=0,Y=0,aa=mxUtils.bind(this,function(){L||(L=!0,this.model.beginUpdate())}),S=mxUtils.bind(this,function(){L&&(L=!1,this.model.endUpdate())}),Z=mxUtils.bind(this,function(){0<T&&T--;0==T&&da()}),da=mxUtils.bind(this,function(){if(Y<l.length){var ma=this.stoppingCustomActions,na=l[Y++],ra=[];if(null!=na.open)if(S(),this.isCustomLink(na.open)){if(!this.customLinkClicked(na.open,J))return}else this.openLink(na.open);null==na.wait||ma||(this.pendingExecuteNextAction=
mxUtils.bind(this,function(){this.pendingWaitThread=this.pendingExecuteNextAction=null;Z()}),T++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,""!=na.wait?parseInt(na.wait):1E3),S());null!=na.opacity&&null!=na.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(na.opacity,!0)),na.opacity.value);null!=na.fadeIn&&(T++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(na.fadeIn,!0)),0,1,Z,ma?0:na.fadeIn.delay));null!=na.fadeOut&&(T++,
-Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(na.fadeOut,!0)),1,0,Z,ma?0:na.fadeOut.delay));null!=na.wipeIn&&(ra=ra.concat(this.createWipeAnimations(this.getCellsForAction(na.wipeIn,!0),!0)));null!=na.wipeOut&&(ra=ra.concat(this.createWipeAnimations(this.getCellsForAction(na.wipeOut,!0),!1)));null!=na.toggle&&(aa(),this.toggleCells(this.getCellsForAction(na.toggle,!0)));if(null!=na.show){aa();var ta=this.getCellsForAction(na.show,!0);Graph.setOpacityForNodes(this.getNodesForCells(ta),
-1);this.setCellsVisible(ta,!0)}null!=na.hide&&(aa(),ta=this.getCellsForAction(na.hide,!0),Graph.setOpacityForNodes(this.getNodesForCells(ta),0),this.setCellsVisible(ta,!1));null!=na.toggleStyle&&null!=na.toggleStyle.key&&(aa(),this.toggleCellStyles(na.toggleStyle.key,null!=na.toggleStyle.defaultValue?na.toggleStyle.defaultValue:"0",this.getCellsForAction(na.toggleStyle,!0)));null!=na.style&&null!=na.style.key&&(aa(),this.setCellStyles(na.style.key,na.style.value,this.getCellsForAction(na.style,!0)));
-ta=[];null!=na.select&&this.isEnabled()&&(ta=this.getCellsForAction(na.select),this.setSelectionCells(ta));null!=na.highlight&&(ta=this.getCellsForAction(na.highlight),this.highlightCells(ta,na.highlight.color,na.highlight.duration,na.highlight.opacity));null!=na.scroll&&(ta=this.getCellsForAction(na.scroll));null!=na.viewbox&&this.fitWindow(na.viewbox,na.viewbox.border);0<ta.length&&this.scrollCellToVisible(ta[0]);null!=J&&null!=na.explore&&Graph.exploreFromCell(this,J,na.explore);if(null!=na.tags){if(null!=
-na.tags.toggle){var Aa=na.tags.toggle;0==Aa.length&&(Aa=this.getAllTags());for(ta=0;ta<Aa.length;ta++)this.toggleHiddenTag(Aa[ta])}Aa=null;null!=na.tags.hidden&&(null==Aa&&(Aa=[]),Aa=Aa.concat(na.tags.hidden));if(null!=na.tags.visible){null==Aa&&(Aa=[]);var Ca=this.getAllTags();for(ta=0;ta<Ca.length;ta++)0>mxUtils.indexOf(na.tags.visible,Ca[ta])&&0>mxUtils.indexOf(Aa,Ca[ta])&&Aa.push(Ca[ta])}null!=Aa&&this.setHiddenTags(Aa);this.refresh()}0<ra.length&&(T++,this.executeAnimations(ra,Z,ma?1:na.steps,
-ma?0:na.delay));0==T?da():S()}else this.stoppingCustomActions=this.executingCustomActions=!1,S(),null!=x&&x()});da()}};Graph.prototype.doUpdateCustomLinksForCell=function(l,x){var J=this.getLinkForCell(x);null!=J&&"data:action/json,"==J.substring(0,17)&&this.setLinkForCell(x,this.updateCustomLink(l,J));if(this.isHtmlLabel(x)){var L=document.createElement("div");L.innerHTML=Graph.sanitizeHtml(this.getLabel(x));for(var T=L.getElementsByTagName("a"),Y=!1,aa=0;aa<T.length;aa++)J=T[aa].getAttribute("href"),
-null!=J&&"data:action/json,"==J.substring(0,17)&&(T[aa].setAttribute("href",this.updateCustomLink(l,J)),Y=!0);Y&&this.labelChanged(x,L.innerHTML)}};Graph.prototype.updateCustomLink=function(l,x){if("data:action/json,"==x.substring(0,17))try{var J=JSON.parse(x.substring(17));null!=J.actions&&(this.updateCustomLinkActions(l,J.actions),x="data:action/json,"+JSON.stringify(J))}catch(L){}return x};Graph.prototype.updateCustomLinkActions=function(l,x){for(var J=0;J<x.length;J++){var L=x[J],T;for(T in L)this.updateCustomLinkAction(l,
-L[T],"cells"),this.updateCustomLinkAction(l,L[T],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(l,x,J){if(null!=x&&null!=x[J]){for(var L=[],T=0;T<x[J].length;T++)if("*"==x[J][T])L.push(x[J][T]);else{var Y=l[x[J][T]];null!=Y?""!=Y&&L.push(Y):L.push(x[J][T])}x[J]=L}};Graph.prototype.getCellsForAction=function(l,x){x=this.getCellsById(l.cells).concat(this.getCellsForTags(l.tags,null,x));if(null!=l.excludeCells){for(var J=[],L=0;L<x.length;L++)0>l.excludeCells.indexOf(x[L].id)&&J.push(x[L]);
-x=J}return x};Graph.prototype.getCellsById=function(l){var x=[];if(null!=l)for(var J=0;J<l.length;J++)if("*"==l[J]){var L=this.model.getRoot();x=x.concat(this.model.filterDescendants(function(Y){return Y!=L},L))}else{var T=this.model.getCell(l[J]);null!=T&&x.push(T)}return x};var ea=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(l){return ea.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(l))};Graph.prototype.setHiddenTags=function(l){this.hiddenTags=l;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};
-Graph.prototype.toggleHiddenTag=function(l){var x=mxUtils.indexOf(this.hiddenTags,l);0>x?this.hiddenTags.push(l):0<=x&&this.hiddenTags.splice(x,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.isAllTagsHidden=function(l){if(null==l||0==l.length||0==this.hiddenTags.length)return!1;l=l.split(" ");if(l.length>this.hiddenTags.length)return!1;for(var x=0;x<l.length;x++)if(0>mxUtils.indexOf(this.hiddenTags,l[x]))return!1;return!0};Graph.prototype.getCellsForTags=function(l,x,J,
-L){var T=[];if(null!=l){x=null!=x?x:this.model.getDescendants(this.model.getRoot());for(var Y=0,aa={},S=0;S<l.length;S++)0<l[S].length&&(aa[l[S]]=!0,Y++);for(S=0;S<x.length;S++)if(J&&this.model.getParent(x[S])==this.model.root||this.model.isVertex(x[S])||this.model.isEdge(x[S])){var Z=this.getTagsForCell(x[S]),da=!1;if(0<Z.length&&(Z=Z.split(" "),Z.length>=l.length)){for(var ma=da=0;ma<Z.length&&da<Y;ma++)null!=aa[Z[ma]]&&da++;da=da==Y}da&&(1!=L||this.isCellVisible(x[S]))&&T.push(x[S])}}return T};
-Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(l){for(var x=null,J=[],L=0;L<l.length;L++){var T=this.getTagsForCell(l[L]);J=[];if(0<T.length){T=T.split(" ");for(var Y={},aa=0;aa<T.length;aa++)if(null==x||null!=x[T[aa]])Y[T[aa]]=!0,J.push(T[aa]);x=Y}else return[]}return J};Graph.prototype.getTagsForCells=function(l){for(var x=[],J={},L=0;L<l.length;L++){var T=this.getTagsForCell(l[L]);
-if(0<T.length){T=T.split(" ");for(var Y=0;Y<T.length;Y++)null==J[T[Y]]&&(J[T[Y]]=!0,x.push(T[Y]))}}return x};Graph.prototype.getTagsForCell=function(l){return this.getAttributeForCell(l,"tags","")};Graph.prototype.addTagsForCells=function(l,x){if(0<l.length&&0<x.length){this.model.beginUpdate();try{for(var J=0;J<l.length;J++){for(var L=this.getTagsForCell(l[J]),T=L.split(" "),Y=!1,aa=0;aa<x.length;aa++){var S=mxUtils.trim(x[aa]);""!=S&&0>mxUtils.indexOf(T,S)&&(L=0<L.length?L+" "+S:S,Y=!0)}Y&&this.setAttributeForCell(l[J],
-"tags",L)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(l,x){if(0<l.length&&0<x.length){this.model.beginUpdate();try{for(var J=0;J<l.length;J++){var L=this.getTagsForCell(l[J]);if(0<L.length){for(var T=L.split(" "),Y=!1,aa=0;aa<x.length;aa++){var S=mxUtils.indexOf(T,x[aa]);0<=S&&(T.splice(S,1),Y=!0)}Y&&this.setAttributeForCell(l[J],"tags",T.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=function(l){this.model.beginUpdate();try{for(var x=
-0;x<l.length;x++)this.model.setVisible(l[x],!this.model.isVisible(l[x]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(l,x){this.model.beginUpdate();try{for(var J=0;J<l.length;J++)this.model.setVisible(l[J],x)}finally{this.model.endUpdate()}};Graph.prototype.highlightCells=function(l,x,J,L){for(var T=0;T<l.length;T++)this.highlightCell(l[T],x,J,L)};Graph.prototype.highlightCell=function(l,x,J,L,T){x=null!=x?x:mxConstants.DEFAULT_VALID_COLOR;J=null!=J?J:1E3;l=this.view.getState(l);
-var Y=null;null!=l&&(T=null!=T?T:4,T=Math.max(T+1,mxUtils.getValue(l.style,mxConstants.STYLE_STROKEWIDTH,1)+T),Y=new mxCellHighlight(this,x,T,!1),null!=L&&(Y.opacity=L),Y.highlight(l),window.setTimeout(function(){null!=Y.shape&&(mxUtils.setPrefixedStyle(Y.shape.node.style,"transition","all 1200ms ease-in-out"),Y.shape.node.style.opacity=0);window.setTimeout(function(){Y.destroy()},1200)},J));return Y};Graph.prototype.addSvgShadow=function(l,x,J,L){L=null!=L?L:!0;var T=Math.ceil(this.svgShadowSize*
-this.svgShadowBlur);null!=J&&J||(x=null!=x?x:l.getElementsByTagName("g")[0],null!=x&&(this.updateShadowFilter(x,!0),!isNaN(parseInt(l.getAttribute("width")))&&L&&(l.setAttribute("width",parseInt(l.getAttribute("width"))+T),l.setAttribute("height",parseInt(l.getAttribute("height"))+T),x=l.getAttribute("viewBox"),null!=x&&0<x.length&&(x=x.split(" "),3<x.length&&(w=parseFloat(x[2])+T,h=parseFloat(x[3])+T,l.setAttribute("viewBox",x[0]+" "+x[1]+" "+w+" "+h))))));return T};Graph.prototype.updateShadowFilter=
-function(l,x){mxClient.IS_SF||(x?(x=mxUtils.getLightDarkColor(this.svgShadowColor,this.svgShadowOpacity),l.style.filter="drop-shadow("+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowBlur)/100+"px "+x.cssText+")"):l.style.filter="")};Graph.prototype.setShadowVisible=function(l,x){x=null!=x?x:!0;this.shadowVisible=l;this.updateShadowFilter(this.view.getDrawPane(),this.shadowVisible);x&&this.fireEvent(new mxEventObject("shadowVisibleChanged"))};
-Graph.prototype.checkDefaultParent=function(){null==this.defaultParent||this.model.contains(this.defaultParent)||(this.setDefaultParent(null),this.selectUnlockedLayer())};Graph.prototype.selectUnlockedLayer=function(){if(null==this.defaultParent){var l=this.model.getChildCount(this.model.root),x=0;do var J=this.model.getChildAt(this.model.root,x);while(x++<l&&"1"==mxUtils.getValue(this.getCellStyle(J),"locked","0"));null!=J&&this.setDefaultParent(J)}};mxStencilRegistry.libraries.mockup=[SHAPES_PATH+
-"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries.arrows2=[SHAPES_PATH+"/mxArrows.js"];mxStencilRegistry.libraries.atlassian=[STENCIL_PATH+"/atlassian.xml",SHAPES_PATH+"/mxAtlassian.js"];mxStencilRegistry.libraries.bpmn=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.bpmn2=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.c4=[SHAPES_PATH+"/mxC4.js"];mxStencilRegistry.libraries.cisco19=
-[SHAPES_PATH+"/mxCisco19.js",STENCIL_PATH+"/cisco19.xml"];mxStencilRegistry.libraries.cisco_safe=[SHAPES_PATH+"/mxCiscoSafe.js",STENCIL_PATH+"/cisco_safe/architecture.xml",STENCIL_PATH+"/cisco_safe/business_icons.xml",STENCIL_PATH+"/cisco_safe/capability.xml",STENCIL_PATH+"/cisco_safe/design.xml",STENCIL_PATH+"/cisco_safe/iot_things_icons.xml",STENCIL_PATH+"/cisco_safe/people_places_things_icons.xml",STENCIL_PATH+"/cisco_safe/security_icons.xml",STENCIL_PATH+"/cisco_safe/technology_icons.xml",STENCIL_PATH+
-"/cisco_safe/threat.xml"];mxStencilRegistry.libraries.dfd=[SHAPES_PATH+"/mxDFD.js"];mxStencilRegistry.libraries.er=[SHAPES_PATH+"/er/mxER.js"];mxStencilRegistry.libraries.kubernetes=[SHAPES_PATH+"/mxKubernetes.js",STENCIL_PATH+"/kubernetes.xml",STENCIL_PATH+"/kubernetes2.xml"];mxStencilRegistry.libraries.flowchart=[SHAPES_PATH+"/mxFlowchart.js",STENCIL_PATH+"/flowchart.xml"];mxStencilRegistry.libraries.ios=[SHAPES_PATH+"/mockup/mxMockupiOS.js"];mxStencilRegistry.libraries.rackGeneral=[SHAPES_PATH+
-"/rack/mxRack.js",STENCIL_PATH+"/rack/general.xml"];mxStencilRegistry.libraries.rackF5=[STENCIL_PATH+"/rack/f5.xml"];mxStencilRegistry.libraries.lean_mapping=[SHAPES_PATH+"/mxLeanMap.js",STENCIL_PATH+"/lean_mapping.xml"];mxStencilRegistry.libraries.basic=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/basic.xml"];mxStencilRegistry.libraries.ios7icons=[STENCIL_PATH+"/ios7/icons.xml"];mxStencilRegistry.libraries.ios7ui=[SHAPES_PATH+"/ios7/mxIOS7Ui.js",STENCIL_PATH+"/ios7/misc.xml"];mxStencilRegistry.libraries.android=
-[SHAPES_PATH+"/mxAndroid.js",STENCIL_PATH+"/android/android.xml"];mxStencilRegistry.libraries["electrical/abstract"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/abstract.xml"];mxStencilRegistry.libraries["electrical/logic_gates"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/logic_gates.xml"];mxStencilRegistry.libraries["electrical/miscellaneous"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/miscellaneous.xml"];mxStencilRegistry.libraries["electrical/signal_sources"]=
-[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/signal_sources.xml"];mxStencilRegistry.libraries["electrical/electro-mechanical"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/electro-mechanical.xml"];mxStencilRegistry.libraries["electrical/transmission"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/transmission.xml"];mxStencilRegistry.libraries.infographic=[SHAPES_PATH+"/mxInfographic.js"];mxStencilRegistry.libraries["mockup/buttons"]=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];
-mxStencilRegistry.libraries["mockup/containers"]=[SHAPES_PATH+"/mockup/mxMockupContainers.js"];mxStencilRegistry.libraries["mockup/forms"]=[SHAPES_PATH+"/mockup/mxMockupForms.js"];mxStencilRegistry.libraries["mockup/graphics"]=[SHAPES_PATH+"/mockup/mxMockupGraphics.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[SHAPES_PATH+"/mockup/mxMockupMarkup.js"];mxStencilRegistry.libraries["mockup/misc"]=[SHAPES_PATH+"/mockup/mxMockupMisc.js",STENCIL_PATH+"/mockup/misc.xml"];
-mxStencilRegistry.libraries["mockup/navigation"]=[SHAPES_PATH+"/mockup/mxMockupNavigation.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/text"]=[SHAPES_PATH+"/mockup/mxMockupText.js"];mxStencilRegistry.libraries.floorplan=[SHAPES_PATH+"/mxFloorplan.js",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.ibmcloud=[STENCIL_PATH+"/ibm_cloud.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.networks2=[SHAPES_PATH+"/mxNetworks2.js",STENCIL_PATH+"/networks2.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"];mxStencilRegistry.libraries.salesforce=[STENCIL_PATH+"/salesforce.xml"];mxStencilRegistry.libraries.sap=[SHAPES_PATH+"/mxSAP.js",STENCIL_PATH+"/sap.xml"];mxStencilRegistry.libraries.emoji=[SHAPES_PATH+"/emoji/mxEmoji.js"];mxMarker.getPackageForType=function(l){var x=null;null!=l&&0<l.length&&("ER"==l.substring(0,
-2)?x="mxgraph.er":"sysML"==l.substring(0,5)&&(x="mxgraph.sysml"));return x};var ka=mxMarker.createMarker;mxMarker.createMarker=function(l,x,J,L,T,Y,aa,S,Z,da){if(null!=J&&null==mxMarker.markers[J]){var ma=this.getPackageForType(J);null!=ma&&mxStencilRegistry.getStencil(ma)}return ka.apply(this,arguments)};var pa=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(l,x,J,L,T,Y){"1"==mxUtils.getValue(x.style,"lineShape",null)&&l.setFillColor(mxUtils.getValue(x.style,mxConstants.STYLE_STROKECOLOR,
-this.stroke));return pa.apply(this,arguments)};PrintDialog.prototype.create=function(l,x,J,L){function T(){Ca.value=Math.max(1,Math.min(ma,Math.max(parseInt(Ca.value),parseInt(Aa.value))));Aa.value=Math.max(1,Math.min(ma,Math.min(parseInt(Ca.value),parseInt(Aa.value))))}function Y(ia){l.lastPrintPagesRadioChecked=ta.checked;l.lastPrintSelectionOnlyChecked=Ea.checked;l.lastPrintCropRadioChecked=Da.checked;l.lastPrintFitRadioChecked=Ha.checked;ta.checked&&Aa.value<Ca.value?(l.lastPrintPagesFromInput=
-Aa.value,l.lastPrintPagesToInput=Ca.value):(l.lastPrintPagesFromInput=null,l.lastPrintPagesToInput=null);Fa.value=Math.max(1,Math.min(1600,parseInt(Fa.value)))+"%";l.lastPrintZoom=Fa.value;l.lastPrintBorder=sa.value;l.lastPrintGrid=Qa.checked;l.lastPrintTransparent=y.checked;l.lastPrintInclude=Q.checked;l.lastPrintSheetsAcross=Ya.value;l.lastPrintSheetsDown=Pa.value;var la={};la.border=parseInt(sa.value);la.scale=parseInt(Fa.value)/100;la.grid=Qa.checked;la.shadows=Ta.checked;la.transparent=y.checked;
-la.includeCopy=Q.checked;la.sheetsAcross=parseInt(Ya.value);la.sheetsDown=parseInt(Pa.value);la.pagesFrom=parseInt(Aa.value);la.pagesTo=parseInt(Ca.value);la.allPages=na.checked;la.selection=Ea.checked;la.pageView=Ua.checked;la.crop=Da.checked;la.fit=Ha.checked;return null!=J?J(!ia,la):l.print(!ia,la)}var aa=l.editor.graph,S=document.createElement("div"),Z=document.createElement("h3");Z.style.width="100%";Z.style.textAlign="center";Z.style.marginTop="0px";Z.style.marginBottom="10px";mxUtils.write(Z,
-x||mxResources.get("print"));S.appendChild(Z);var da=1,ma=1;Z=document.createElement("div");Z.className="geDialogSection";Z.style.whiteSpace="nowrap";var na=document.createElement("input");na.style.marginRight="8px";na.setAttribute("type","radio");na.setAttribute("name","pages-printdialog");var ra=document.createElement("div");ra.className="geDialogCheckRow";ra.appendChild(na);x=document.createElement("span");mxUtils.write(x,mxResources.get("allPages"));mxEvent.addListener(x,"click",function(){na.checked=
-!0});ra.appendChild(x);Z.appendChild(ra);var ta=document.createElement("input");ta.style.marginRight="8px";ta.setAttribute("type","radio");ta.setAttribute("name","pages-printdialog");ra=document.createElement("div");ra.className="geDialogCheckRow";ra.appendChild(ta);x=document.createElement("span");mxUtils.write(x,mxResources.get("pages")+":");ra.appendChild(x);mxEvent.addListener(x,"click",function(){ta.checked=!0});var Aa=document.createElement("input");Aa.style.margin="0 4px";Aa.setAttribute("value",
-"1");Aa.setAttribute("type","number");Aa.setAttribute("min","1");Aa.style.width="40px";ra.appendChild(Aa);x=document.createElement("span");mxUtils.write(x,mxResources.get("to"));ra.appendChild(x);var Ca=Aa.cloneNode(!0);ra.appendChild(Ca);mxEvent.addListener(Aa,"focus",function(){ta.checked=!0});mxEvent.addListener(Ca,"focus",function(){ta.checked=!0});mxEvent.addListener(Aa,"change",T);mxEvent.addListener(Ca,"change",T);if(null!=l.pages&&(ma=l.pages.length,null!=l.currentPage))for(var xa=0;xa<ma;xa++)if(l.currentPage==
-l.pages[xa]){da=xa+1;break}null!=l.lastPrintPagesFromInput&&null!=l.lastPrintPagesToInput?(Aa.value=Math.min(ma,Math.max(1,l.lastPrintPagesFromInput)),Ca.value=Math.min(ma,Math.max(1,l.lastPrintPagesToInput))):(Aa.value=da,Ca.value=da);Aa.setAttribute("max",ma);Ca.setAttribute("max",ma);xa=mxUtils.button(mxResources.get("currentPage"),function(ia){Aa.value=da;Ca.value=da;ta.checked=!0});xa.setAttribute("title",mxResources.get("currentPage"));xa.style.marginLeft="4px";xa.style.maxWidth="100px";xa.style.overflow=
-"hidden";xa.style.textOverflow="ellipsis";xa.style.whiteSpace="nowrap";ra.appendChild(xa);Z.appendChild(ra);1<ma&&S.appendChild(Z);ra=document.createElement("div");ra.className="geDialogCheckRow";var Ea=document.createElement("input");Ea.setAttribute("name","pages-printdialog");Ea.setAttribute("type",1==ma?"checkbox":"radio");Ea.style.marginRight="8px";aa.isSelectionEmpty()&&Ea.setAttribute("disabled","disabled");aa.isEnabled()&&(ra.appendChild(Ea),x=document.createElement("span"),mxUtils.write(x,
-mxResources.get("selectionOnly")),ra.appendChild(x));aa.isEnabled()&&Z.appendChild(ra);!l.isPagesEnabled()||l.lastPrintPagesRadioChecked?ta.checked=!0:!aa.isSelectionEmpty()&&l.lastPrintSelectionOnlyChecked?Ea.checked=!0:na.checked=!0;aa.isSelectionEmpty()||mxEvent.addListener(x,"click",function(){Ea.checked=!Ea.checked});aa=document.createElement("div");aa.className="geDialogSection";Z=document.createElement("div");Z.className="geDialogCheckRow";var Ua=document.createElement("input");Ua.style.marginRight=
-"8px";Ua.setAttribute("type","radio");Ua.setAttribute("name","printSize");Z.appendChild(Ua);x=document.createElement("span");mxUtils.write(x,mxResources.get("pageView"));Z.appendChild(x);mxEvent.addListener(Z,"click",function(){Ua.checked=!0});aa.appendChild(Z);Z=document.createElement("div");Z.className="geDialogCheckRow";var Da=document.createElement("input");Da.style.marginRight="8px";Da.setAttribute("type","radio");Da.setAttribute("name","printSize");Z.appendChild(Da);x=document.createElement("span");
-mxUtils.write(x,mxResources.get("crop"));Z.appendChild(x);mxEvent.addListener(Z,"click",function(){Da.checked=!0});aa.appendChild(Z);Z=document.createElement("div");Z.className="geDialogCheckRow";Z.style.alignItems="flex-start";var Ha=document.createElement("input");Ha.style.marginTop="4px";Ha.setAttribute("type","radio");Ha.setAttribute("name","printSize");Z.appendChild(Ha);ra=document.createElement("table");ra.style.display="inline-block";ra.style.borderSpacing="0";xa=document.createElement("tbody");
-var $a=document.createElement("tr"),Ka=$a.cloneNode(!0),za=document.createElement("td"),Sa=za.cloneNode(!0),Oa=za.cloneNode(!0),Ma=za.cloneNode(!0),Na=za.cloneNode(!0),Ba=za.cloneNode(!0);za.style.textAlign="right";Ma.style.textAlign="right";mxUtils.write(za,mxResources.get("fitTo"));mxEvent.addListener(Z,"click",function(ia){mxEvent.getSource(ia)!=Ha&&(Ha.checked=!Ha.checked)});var Ya=document.createElement("input");Ya.style.margin="0 2px";Ya.style.boxSizing="border-box";Ya.setAttribute("value",
-l.lastPrintSheetsAcross||"1");Ya.setAttribute("min","1");Ya.setAttribute("type","number");Ya.style.width="40px";Sa.appendChild(Ya);x=document.createElement("span");mxUtils.write(x,mxResources.get("fitToSheetsAcross"));Oa.appendChild(x);mxUtils.write(Ma,mxResources.get("fitToBy"));var Pa=Ya.cloneNode(!0);Pa.setAttribute("value",l.lastPrintSheetsDown||"1");Na.appendChild(Pa);mxEvent.addListener(Ya,"click",function(ia){Ha.checked=!0;mxEvent.consume(ia)});mxEvent.addListener(Pa,"click",function(ia){Ha.checked=
-!0;mxEvent.consume(ia)});l.lastPrintCropRadioChecked?Da.checked=!0:l.lastPrintFitRadioChecked?Ha.checked=!0:Ua.checked=!0;x=document.createElement("span");mxUtils.write(x,mxResources.get("fitToSheetsDown"));Ba.appendChild(x);$a.appendChild(za);$a.appendChild(Sa);$a.appendChild(Oa);Ka.appendChild(Ma);Ka.appendChild(Na);Ka.appendChild(Ba);xa.appendChild($a);xa.appendChild(Ka);ra.appendChild(xa);Z.appendChild(ra);aa.appendChild(Z);S.appendChild(aa);aa=document.createElement("div");aa.className="geDialogSection";
-x=document.createElement("div");x.className="geDialogFormRow";Z=document.createElement("label");Z.className="geDialogFormLabel";mxUtils.write(Z,mxResources.get("borderWidth"));x.appendChild(Z);var sa=document.createElement("input");sa.setAttribute("type","number");sa.setAttribute("min","0");sa.style.width="40px";sa.value=null!=l.lastPrintBorder?l.lastPrintBorder:mxPrintPreview.prototype.pageMargin;x.appendChild(sa);Z=document.createElement("label");Z.style.marginLeft="12px";Z.style.marginRight="4px";
-mxUtils.write(Z,mxResources.get("zoom"));x.appendChild(Z);var Fa=document.createElement("input");Fa.style.width="60px";Fa.value=null!=l.lastPrintZoom?l.lastPrintZoom:"100%";x.appendChild(Fa);aa.appendChild(x);Z=document.createElement("div");Z.className="geDialogCheckRow";var Qa=document.createElement("input");Qa.setAttribute("type","checkbox");Qa.style.marginRight="8px";Qa.checked=null!=l.lastPrintGrid?l.lastPrintGrid:!1;Z.appendChild(Qa);x=document.createElement("span");mxUtils.write(x,mxResources.get("grid"));
-Z.appendChild(x);mxEvent.addListener(x,"click",function(ia){Qa.checked=!0;mxEvent.consume(ia)});aa.appendChild(Z);Z=document.createElement("div");Z.className="geDialogCheckRow";var Ta=document.createElement("input");Ta.setAttribute("type","checkbox");Ta.style.marginRight="8px";Ta.checked=null!=l.lastPrintShadow?l.lastPrintShadow:!1;Z.appendChild(Ta);x=document.createElement("span");mxUtils.write(x,mxResources.get("shadows"));Z.appendChild(x);l.isOffline()&&!mxClient.IS_CHROMEAPP||x.appendChild(l.createHelpIcon("https://github.com/jgraph/drawio/discussions/5136"));
-mxEvent.addListener(x,"click",function(ia){"IMG"!=mxEvent.getSource(ia).nodeName&&(Ta.checked=!0,mxEvent.consume(ia))});Editor.enableShadowOption||(Z.style.display="none");aa.appendChild(Z);var y=document.createElement("input");y.setAttribute("type","checkbox");y.style.marginRight="8px";y.checked=null!=l.lastPrintTransparent?l.lastPrintTransparent:!1;null!=J&&(Z=document.createElement("div"),Z.className="geDialogCheckRow",Z.appendChild(y),x=document.createElement("span"),mxUtils.write(x,mxResources.get("transparentBackground")),
-Z.appendChild(x),mxEvent.addListener(x,"click",function(ia){y.checked=!0;mxEvent.consume(ia)}),aa.appendChild(Z));var Q=document.createElement("input");Q.setAttribute("type","checkbox");Q.style.marginRight="8px";Q.checked=null!=l.lastPrintInclude?l.lastPrintInclude:Editor.defaultIncludeDiagram;null==J||mxClient.IS_CHROMEAPP||"draw.io"!=l.getServiceName()||(Z=document.createElement("div"),Z.className="geDialogCheckRow",Z.appendChild(Q),x=document.createElement("span"),mxUtils.write(x,mxResources.get("includeCopyOfMyDiagram")),
-Z.appendChild(x),mxEvent.addListener(x,"click",function(ia){Q.checked=!0;mxEvent.consume(ia)}),aa.appendChild(Z));S.appendChild(aa);x=document.createElement("div");x.style.marginTop="16px";x.style.textAlign="right";x.style.whiteSpace="nowrap";l.isOffline()&&!mxClient.IS_CHROMEAPP||null!=J||x.appendChild(l.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));aa=mxUtils.button(mxResources.get("cancel"),function(){l.hideDialog()});aa.className="geBtn";l.editor.cancelFirst&&x.appendChild(aa);
-PrintDialog.previewEnabled&&null==J&&(Z=mxUtils.button(mxResources.get("preview"),function(){try{l.hideDialog(),Y(!1)}catch(ia){l.handleError(ia)}}),Z.className="geBtn",x.appendChild(Z));L=null!=L?L:null!=J?"export":PrintDialog.previewEnabled?"print":"ok";L=mxUtils.button(mxResources.get(L),function(){try{l.hideDialog(),Y(!0)}catch(ia){l.handleError(ia)}});L.className="geBtn gePrimaryBtn";x.appendChild(L);l.editor.cancelFirst||x.appendChild(aa);S.appendChild(x);if(l.editor.isChromelessView()){var V=
-function(){Editor.isDarkMode()?(S.classList.add("geDarkMode"),S.style.colorScheme="dark"):(S.classList.remove("geDarkMode"),S.style.colorScheme="light")};l.addListener("darkModeChanged",V);V();var X=function(ia,la){ia=la.getProperty("dialog");S.parentNode==ia.container&&(l.editor.removeListener(X),l.removeListener(V))};l.editor.addListener("hideDialog",X)}this.container=S};var ba=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 l=this.image;null!=l&&null!=l.src&&Graph.isPageLink(l.src)&&(l={originalSrc:l.src});this.page.viewState.backgroundImage=l}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.adaptiveColors&&(this.page.viewState.adaptiveColors=this.adaptiveColors);null!=
-this.shadowVisible&&(this.page.viewState.shadowVisible=this.shadowVisible)}}else ba.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.adaptiveColors&&this.adaptiveColors!=this.ui.editor.graph.adaptiveColors&&(l=this.ui.editor.graph.adaptiveColors,this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=l?l:"default"),null!=this.shadowVisible&&this.shadowVisible!=
-this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)}})();(function(){EditorUi.VERSION="29.6.7";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;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)||/.*\.cdn\.prod\.atlassian-dev\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&
+Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(na.fadeOut,!0)),1,0,Z,ma?0:na.fadeOut.delay));null!=na.wipeIn&&(ra=ra.concat(this.createWipeAnimations(this.getCellsForAction(na.wipeIn,!0),!0)));null!=na.wipeOut&&(ra=ra.concat(this.createWipeAnimations(this.getCellsForAction(na.wipeOut,!0),!1)));null!=na.popIn&&(ra=ra.concat(this.createPopAnimations(this.getCellsForAction(na.popIn,!0),!0)));null!=na.popOut&&(ra=ra.concat(this.createPopAnimations(this.getCellsForAction(na.popOut,!0),!1)));
+null!=na.toggle&&(aa(),this.toggleCells(this.getCellsForAction(na.toggle,!0)));if(null!=na.show){aa();var ta=this.getCellsForAction(na.show,!0);Graph.setOpacityForNodes(this.getNodesForCells(ta),1);this.setCellsVisible(ta,!0)}null!=na.hide&&(aa(),ta=this.getCellsForAction(na.hide,!0),Graph.setOpacityForNodes(this.getNodesForCells(ta),0),this.setCellsVisible(ta,!1));null!=na.toggleStyle&&null!=na.toggleStyle.key&&(aa(),this.toggleCellStyles(na.toggleStyle.key,null!=na.toggleStyle.defaultValue?na.toggleStyle.defaultValue:
+"0",this.getCellsForAction(na.toggleStyle,!0)));null!=na.style&&null!=na.style.key&&(aa(),this.setCellStyles(na.style.key,na.style.value,this.getCellsForAction(na.style,!0)));ta=[];null!=na.select&&this.isEnabled()&&(ta=this.getCellsForAction(na.select),this.setSelectionCells(ta));null!=na.highlight&&(ta=this.getCellsForAction(na.highlight),this.highlightCells(ta,na.highlight.color,na.highlight.duration,na.highlight.opacity));null!=na.scroll&&(ta=this.getCellsForAction(na.scroll));null!=na.viewbox&&
+this.fitWindow(na.viewbox,na.viewbox.border);0<ta.length&&this.scrollCellToVisible(ta[0]);null!=J&&null!=na.explore&&Graph.exploreFromCell(this,J,na.explore);if(null!=na.tags){if(null!=na.tags.toggle){var Aa=na.tags.toggle;0==Aa.length&&(Aa=this.getAllTags());for(ta=0;ta<Aa.length;ta++)this.toggleHiddenTag(Aa[ta])}Aa=null;null!=na.tags.hidden&&(null==Aa&&(Aa=[]),Aa=Aa.concat(na.tags.hidden));if(null!=na.tags.visible){null==Aa&&(Aa=[]);var Ca=this.getAllTags();for(ta=0;ta<Ca.length;ta++)0>mxUtils.indexOf(na.tags.visible,
+Ca[ta])&&0>mxUtils.indexOf(Aa,Ca[ta])&&Aa.push(Ca[ta])}null!=Aa&&this.setHiddenTags(Aa);this.refresh()}0<ra.length&&(T++,this.executeAnimations(ra,Z,ma?1:na.steps,ma?0:na.delay));0==T?da():S()}else this.stoppingCustomActions=this.executingCustomActions=!1,S(),null!=x&&x()});da()}};Graph.prototype.doUpdateCustomLinksForCell=function(l,x){var J=this.getLinkForCell(x);null!=J&&"data:action/json,"==J.substring(0,17)&&this.setLinkForCell(x,this.updateCustomLink(l,J));if(this.isHtmlLabel(x)){var L=document.createElement("div");
+L.innerHTML=Graph.sanitizeHtml(this.getLabel(x));for(var T=L.getElementsByTagName("a"),Y=!1,aa=0;aa<T.length;aa++)J=T[aa].getAttribute("href"),null!=J&&"data:action/json,"==J.substring(0,17)&&(T[aa].setAttribute("href",this.updateCustomLink(l,J)),Y=!0);Y&&this.labelChanged(x,L.innerHTML)}};Graph.prototype.updateCustomLink=function(l,x){if("data:action/json,"==x.substring(0,17))try{var J=JSON.parse(x.substring(17));null!=J.actions&&(this.updateCustomLinkActions(l,J.actions),x="data:action/json,"+JSON.stringify(J))}catch(L){}return x};
+Graph.prototype.updateCustomLinkActions=function(l,x){for(var J=0;J<x.length;J++){var L=x[J],T;for(T in L)this.updateCustomLinkAction(l,L[T],"cells"),this.updateCustomLinkAction(l,L[T],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(l,x,J){if(null!=x&&null!=x[J]){for(var L=[],T=0;T<x[J].length;T++)if("*"==x[J][T])L.push(x[J][T]);else{var Y=l[x[J][T]];null!=Y?""!=Y&&L.push(Y):L.push(x[J][T])}x[J]=L}};Graph.prototype.getCellsForAction=function(l,x){x=this.getCellsById(l.cells).concat(this.getCellsForTags(l.tags,
+null,x));if(null!=l.excludeCells){for(var J=[],L=0;L<x.length;L++)0>l.excludeCells.indexOf(x[L].id)&&J.push(x[L]);x=J}return x};Graph.prototype.getCellsById=function(l){var x=[];if(null!=l)for(var J=0;J<l.length;J++)if("*"==l[J]){var L=this.model.getRoot();x=x.concat(this.model.filterDescendants(function(Y){return Y!=L},L))}else{var T=this.model.getCell(l[J]);null!=T&&x.push(T)}return x};var ea=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(l){return ea.apply(this,arguments)&&
+!this.isAllTagsHidden(this.getTagsForCell(l))};Graph.prototype.setHiddenTags=function(l){this.hiddenTags=l;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(l){var x=mxUtils.indexOf(this.hiddenTags,l);0>x?this.hiddenTags.push(l):0<=x&&this.hiddenTags.splice(x,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.isAllTagsHidden=function(l){if(null==l||0==l.length||0==this.hiddenTags.length)return!1;l=l.split(" ");if(l.length>this.hiddenTags.length)return!1;
+for(var x=0;x<l.length;x++)if(0>mxUtils.indexOf(this.hiddenTags,l[x]))return!1;return!0};Graph.prototype.getCellsForTags=function(l,x,J,L){var T=[];if(null!=l){x=null!=x?x:this.model.getDescendants(this.model.getRoot());for(var Y=0,aa={},S=0;S<l.length;S++)0<l[S].length&&(aa[l[S]]=!0,Y++);for(S=0;S<x.length;S++)if(J&&this.model.getParent(x[S])==this.model.root||this.model.isVertex(x[S])||this.model.isEdge(x[S])){var Z=this.getTagsForCell(x[S]),da=!1;if(0<Z.length&&(Z=Z.split(" "),Z.length>=l.length)){for(var ma=
+da=0;ma<Z.length&&da<Y;ma++)null!=aa[Z[ma]]&&da++;da=da==Y}da&&(1!=L||this.isCellVisible(x[S]))&&T.push(x[S])}}return T};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(l){for(var x=null,J=[],L=0;L<l.length;L++){var T=this.getTagsForCell(l[L]);J=[];if(0<T.length){T=T.split(" ");for(var Y={},aa=0;aa<T.length;aa++)if(null==x||null!=x[T[aa]])Y[T[aa]]=!0,J.push(T[aa]);x=Y}else return[]}return J};
+Graph.prototype.getTagsForCells=function(l){for(var x=[],J={},L=0;L<l.length;L++){var T=this.getTagsForCell(l[L]);if(0<T.length){T=T.split(" ");for(var Y=0;Y<T.length;Y++)null==J[T[Y]]&&(J[T[Y]]=!0,x.push(T[Y]))}}return x};Graph.prototype.getTagsForCell=function(l){return this.getAttributeForCell(l,"tags","")};Graph.prototype.addTagsForCells=function(l,x){if(0<l.length&&0<x.length){this.model.beginUpdate();try{for(var J=0;J<l.length;J++){for(var L=this.getTagsForCell(l[J]),T=L.split(" "),Y=!1,aa=
+0;aa<x.length;aa++){var S=mxUtils.trim(x[aa]);""!=S&&0>mxUtils.indexOf(T,S)&&(L=0<L.length?L+" "+S:S,Y=!0)}Y&&this.setAttributeForCell(l[J],"tags",L)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(l,x){if(0<l.length&&0<x.length){this.model.beginUpdate();try{for(var J=0;J<l.length;J++){var L=this.getTagsForCell(l[J]);if(0<L.length){for(var T=L.split(" "),Y=!1,aa=0;aa<x.length;aa++){var S=mxUtils.indexOf(T,x[aa]);0<=S&&(T.splice(S,1),Y=!0)}Y&&this.setAttributeForCell(l[J],
+"tags",T.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=function(l){this.model.beginUpdate();try{for(var x=0;x<l.length;x++)this.model.setVisible(l[x],!this.model.isVisible(l[x]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(l,x){this.model.beginUpdate();try{for(var J=0;J<l.length;J++)this.model.setVisible(l[J],x)}finally{this.model.endUpdate()}};Graph.prototype.highlightCells=function(l,x,J,L){for(var T=0;T<l.length;T++)this.highlightCell(l[T],
+x,J,L)};Graph.prototype.highlightCell=function(l,x,J,L,T){x=null!=x?x:mxConstants.DEFAULT_VALID_COLOR;J=null!=J?J:1E3;l=this.view.getState(l);var Y=null;null!=l&&(T=null!=T?T:4,T=Math.max(T+1,mxUtils.getValue(l.style,mxConstants.STYLE_STROKEWIDTH,1)+T),Y=new mxCellHighlight(this,x,T,!1),null!=L&&(Y.opacity=L),Y.highlight(l),window.setTimeout(function(){null!=Y.shape&&(mxUtils.setPrefixedStyle(Y.shape.node.style,"transition","all 1200ms ease-in-out"),Y.shape.node.style.opacity=0);window.setTimeout(function(){Y.destroy()},
+1200)},J));return Y};Graph.prototype.addSvgShadow=function(l,x,J,L){L=null!=L?L:!0;var T=Math.ceil(this.svgShadowSize*this.svgShadowBlur);null!=J&&J||(x=null!=x?x:l.getElementsByTagName("g")[0],null!=x&&(this.updateShadowFilter(x,!0),!isNaN(parseInt(l.getAttribute("width")))&&L&&(l.setAttribute("width",parseInt(l.getAttribute("width"))+T),l.setAttribute("height",parseInt(l.getAttribute("height"))+T),x=l.getAttribute("viewBox"),null!=x&&0<x.length&&(x=x.split(" "),3<x.length&&(w=parseFloat(x[2])+T,
+h=parseFloat(x[3])+T,l.setAttribute("viewBox",x[0]+" "+x[1]+" "+w+" "+h))))));return T};Graph.prototype.updateShadowFilter=function(l,x){mxClient.IS_SF||(x?(x=mxUtils.getLightDarkColor(this.svgShadowColor,this.svgShadowOpacity),l.style.filter="drop-shadow("+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowBlur)/100+"px "+x.cssText+")"):l.style.filter="")};Graph.prototype.setShadowVisible=function(l,x){x=null!=x?x:!0;this.shadowVisible=
+l;this.updateShadowFilter(this.view.getDrawPane(),this.shadowVisible);x&&this.fireEvent(new mxEventObject("shadowVisibleChanged"))};Graph.prototype.checkDefaultParent=function(){null==this.defaultParent||this.model.contains(this.defaultParent)||(this.setDefaultParent(null),this.selectUnlockedLayer())};Graph.prototype.selectUnlockedLayer=function(){if(null==this.defaultParent){var l=this.model.getChildCount(this.model.root),x=0;do var J=this.model.getChildAt(this.model.root,x);while(x++<l&&"1"==mxUtils.getValue(this.getCellStyle(J),
+"locked","0"));null!=J&&this.setDefaultParent(J)}};mxStencilRegistry.libraries.mockup=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries.arrows2=[SHAPES_PATH+"/mxArrows.js"];mxStencilRegistry.libraries.atlassian=[STENCIL_PATH+"/atlassian.xml",SHAPES_PATH+"/mxAtlassian.js"];mxStencilRegistry.libraries.bpmn=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.bpmn2=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",
+SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.c4=[SHAPES_PATH+"/mxC4.js"];mxStencilRegistry.libraries.cisco19=[SHAPES_PATH+"/mxCisco19.js",STENCIL_PATH+"/cisco19.xml"];mxStencilRegistry.libraries.cisco_safe=[SHAPES_PATH+"/mxCiscoSafe.js",STENCIL_PATH+"/cisco_safe/architecture.xml",STENCIL_PATH+"/cisco_safe/business_icons.xml",STENCIL_PATH+"/cisco_safe/capability.xml",STENCIL_PATH+"/cisco_safe/design.xml",STENCIL_PATH+"/cisco_safe/iot_things_icons.xml",STENCIL_PATH+"/cisco_safe/people_places_things_icons.xml",
+STENCIL_PATH+"/cisco_safe/security_icons.xml",STENCIL_PATH+"/cisco_safe/technology_icons.xml",STENCIL_PATH+"/cisco_safe/threat.xml"];mxStencilRegistry.libraries.dfd=[SHAPES_PATH+"/mxDFD.js"];mxStencilRegistry.libraries.er=[SHAPES_PATH+"/er/mxER.js"];mxStencilRegistry.libraries.kubernetes=[SHAPES_PATH+"/mxKubernetes.js",STENCIL_PATH+"/kubernetes.xml",STENCIL_PATH+"/kubernetes2.xml"];mxStencilRegistry.libraries.flowchart=[SHAPES_PATH+"/mxFlowchart.js",STENCIL_PATH+"/flowchart.xml"];mxStencilRegistry.libraries.ios=
+[SHAPES_PATH+"/mockup/mxMockupiOS.js"];mxStencilRegistry.libraries.rackGeneral=[SHAPES_PATH+"/rack/mxRack.js",STENCIL_PATH+"/rack/general.xml"];mxStencilRegistry.libraries.rackF5=[STENCIL_PATH+"/rack/f5.xml"];mxStencilRegistry.libraries.lean_mapping=[SHAPES_PATH+"/mxLeanMap.js",STENCIL_PATH+"/lean_mapping.xml"];mxStencilRegistry.libraries.basic=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/basic.xml"];mxStencilRegistry.libraries.ios7icons=[STENCIL_PATH+"/ios7/icons.xml"];mxStencilRegistry.libraries.ios7ui=
+[SHAPES_PATH+"/ios7/mxIOS7Ui.js",STENCIL_PATH+"/ios7/misc.xml"];mxStencilRegistry.libraries.android=[SHAPES_PATH+"/mxAndroid.js",STENCIL_PATH+"/android/android.xml"];mxStencilRegistry.libraries["electrical/abstract"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/abstract.xml"];mxStencilRegistry.libraries["electrical/logic_gates"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/logic_gates.xml"];mxStencilRegistry.libraries["electrical/miscellaneous"]=[SHAPES_PATH+"/mxElectrical.js",
+STENCIL_PATH+"/electrical/miscellaneous.xml"];mxStencilRegistry.libraries["electrical/signal_sources"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/signal_sources.xml"];mxStencilRegistry.libraries["electrical/electro-mechanical"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/electro-mechanical.xml"];mxStencilRegistry.libraries["electrical/transmission"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/transmission.xml"];mxStencilRegistry.libraries.infographic=[SHAPES_PATH+
+"/mxInfographic.js"];mxStencilRegistry.libraries["mockup/buttons"]=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries["mockup/containers"]=[SHAPES_PATH+"/mockup/mxMockupContainers.js"];mxStencilRegistry.libraries["mockup/forms"]=[SHAPES_PATH+"/mockup/mxMockupForms.js"];mxStencilRegistry.libraries["mockup/graphics"]=[SHAPES_PATH+"/mockup/mxMockupGraphics.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[SHAPES_PATH+"/mockup/mxMockupMarkup.js"];mxStencilRegistry.libraries["mockup/misc"]=
+[SHAPES_PATH+"/mockup/mxMockupMisc.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/navigation"]=[SHAPES_PATH+"/mockup/mxMockupNavigation.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/text"]=[SHAPES_PATH+"/mockup/mxMockupText.js"];mxStencilRegistry.libraries.floorplan=[SHAPES_PATH+"/mxFloorplan.js",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.ibmcloud=[STENCIL_PATH+"/ibm_cloud.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.networks2=[SHAPES_PATH+"/mxNetworks2.js",STENCIL_PATH+"/networks2.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"];mxStencilRegistry.libraries.salesforce=[STENCIL_PATH+"/salesforce.xml"];mxStencilRegistry.libraries.sap=[SHAPES_PATH+"/mxSAP.js",STENCIL_PATH+"/sap.xml"];mxStencilRegistry.libraries.emoji=[SHAPES_PATH+"/emoji/mxEmoji.js"];mxMarker.getPackageForType=
+function(l){var x=null;null!=l&&0<l.length&&("ER"==l.substring(0,2)?x="mxgraph.er":"sysML"==l.substring(0,5)&&(x="mxgraph.sysml"));return x};var ka=mxMarker.createMarker;mxMarker.createMarker=function(l,x,J,L,T,Y,aa,S,Z,da){if(null!=J&&null==mxMarker.markers[J]){var ma=this.getPackageForType(J);null!=ma&&mxStencilRegistry.getStencil(ma)}return ka.apply(this,arguments)};var pa=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(l,x,J,L,T,Y){"1"==mxUtils.getValue(x.style,"lineShape",
+null)&&l.setFillColor(mxUtils.getValue(x.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return pa.apply(this,arguments)};PrintDialog.prototype.create=function(l,x,J,L){function T(){Ca.value=Math.max(1,Math.min(ma,Math.max(parseInt(Ca.value),parseInt(Aa.value))));Aa.value=Math.max(1,Math.min(ma,Math.min(parseInt(Ca.value),parseInt(Aa.value))))}function Y(ia){l.lastPrintPagesRadioChecked=ta.checked;l.lastPrintSelectionOnlyChecked=Ea.checked;l.lastPrintCropRadioChecked=Da.checked;l.lastPrintFitRadioChecked=
+Ha.checked;ta.checked&&Aa.value<Ca.value?(l.lastPrintPagesFromInput=Aa.value,l.lastPrintPagesToInput=Ca.value):(l.lastPrintPagesFromInput=null,l.lastPrintPagesToInput=null);Fa.value=Math.max(1,Math.min(1600,parseInt(Fa.value)))+"%";l.lastPrintZoom=Fa.value;l.lastPrintBorder=sa.value;l.lastPrintGrid=Qa.checked;l.lastPrintTransparent=y.checked;l.lastPrintInclude=Q.checked;l.lastPrintSheetsAcross=Ya.value;l.lastPrintSheetsDown=Pa.value;var la={};la.border=parseInt(sa.value);la.scale=parseInt(Fa.value)/
+100;la.grid=Qa.checked;la.shadows=Ta.checked;la.transparent=y.checked;la.includeCopy=Q.checked;la.sheetsAcross=parseInt(Ya.value);la.sheetsDown=parseInt(Pa.value);la.pagesFrom=parseInt(Aa.value);la.pagesTo=parseInt(Ca.value);la.allPages=na.checked;la.selection=Ea.checked;la.pageView=Ua.checked;la.crop=Da.checked;la.fit=Ha.checked;return null!=J?J(!ia,la):l.print(!ia,la)}var aa=l.editor.graph,S=document.createElement("div"),Z=document.createElement("h3");Z.style.width="100%";Z.style.textAlign="center";
+Z.style.marginTop="0px";Z.style.marginBottom="10px";mxUtils.write(Z,x||mxResources.get("print"));S.appendChild(Z);var da=1,ma=1;Z=document.createElement("div");Z.className="geDialogSection";Z.style.whiteSpace="nowrap";var na=document.createElement("input");na.style.marginRight="8px";na.setAttribute("type","radio");na.setAttribute("name","pages-printdialog");var ra=document.createElement("div");ra.className="geDialogCheckRow";ra.appendChild(na);x=document.createElement("span");mxUtils.write(x,mxResources.get("allPages"));
+mxEvent.addListener(x,"click",function(){na.checked=!0});ra.appendChild(x);Z.appendChild(ra);var ta=document.createElement("input");ta.style.marginRight="8px";ta.setAttribute("type","radio");ta.setAttribute("name","pages-printdialog");ra=document.createElement("div");ra.className="geDialogCheckRow";ra.appendChild(ta);x=document.createElement("span");mxUtils.write(x,mxResources.get("pages")+":");ra.appendChild(x);mxEvent.addListener(x,"click",function(){ta.checked=!0});var Aa=document.createElement("input");
+Aa.style.margin="0 4px";Aa.setAttribute("value","1");Aa.setAttribute("type","number");Aa.setAttribute("min","1");Aa.style.width="40px";ra.appendChild(Aa);x=document.createElement("span");mxUtils.write(x,mxResources.get("to"));ra.appendChild(x);var Ca=Aa.cloneNode(!0);ra.appendChild(Ca);mxEvent.addListener(Aa,"focus",function(){ta.checked=!0});mxEvent.addListener(Ca,"focus",function(){ta.checked=!0});mxEvent.addListener(Aa,"change",T);mxEvent.addListener(Ca,"change",T);if(null!=l.pages&&(ma=l.pages.length,
+null!=l.currentPage))for(var xa=0;xa<ma;xa++)if(l.currentPage==l.pages[xa]){da=xa+1;break}null!=l.lastPrintPagesFromInput&&null!=l.lastPrintPagesToInput?(Aa.value=Math.min(ma,Math.max(1,l.lastPrintPagesFromInput)),Ca.value=Math.min(ma,Math.max(1,l.lastPrintPagesToInput))):(Aa.value=da,Ca.value=da);Aa.setAttribute("max",ma);Ca.setAttribute("max",ma);xa=mxUtils.button(mxResources.get("currentPage"),function(ia){Aa.value=da;Ca.value=da;ta.checked=!0});xa.setAttribute("title",mxResources.get("currentPage"));
+xa.style.marginLeft="4px";xa.style.maxWidth="100px";xa.style.overflow="hidden";xa.style.textOverflow="ellipsis";xa.style.whiteSpace="nowrap";ra.appendChild(xa);Z.appendChild(ra);1<ma&&S.appendChild(Z);ra=document.createElement("div");ra.className="geDialogCheckRow";var Ea=document.createElement("input");Ea.setAttribute("name","pages-printdialog");Ea.setAttribute("type",1==ma?"checkbox":"radio");Ea.style.marginRight="8px";aa.isSelectionEmpty()&&Ea.setAttribute("disabled","disabled");aa.isEnabled()&&
+(ra.appendChild(Ea),x=document.createElement("span"),mxUtils.write(x,mxResources.get("selectionOnly")),ra.appendChild(x));aa.isEnabled()&&(1<ma?Z.appendChild(ra):(Z=document.createElement("div"),Z.className="geDialogSection",Z.appendChild(ra),S.appendChild(Z)));!l.isPagesEnabled()||l.lastPrintPagesRadioChecked?ta.checked=!0:!aa.isSelectionEmpty()&&l.lastPrintSelectionOnlyChecked?Ea.checked=!0:na.checked=!0;aa.isSelectionEmpty()||mxEvent.addListener(x,"click",function(){Ea.checked=!Ea.checked});aa=
+document.createElement("div");aa.className="geDialogSection";Z=document.createElement("div");Z.className="geDialogCheckRow";var Ua=document.createElement("input");Ua.style.marginRight="8px";Ua.setAttribute("type","radio");Ua.setAttribute("name","printSize");Z.appendChild(Ua);x=document.createElement("span");mxUtils.write(x,mxResources.get("pageView"));Z.appendChild(x);mxEvent.addListener(Z,"click",function(){Ua.checked=!0});aa.appendChild(Z);Z=document.createElement("div");Z.className="geDialogCheckRow";
+var Da=document.createElement("input");Da.style.marginRight="8px";Da.setAttribute("type","radio");Da.setAttribute("name","printSize");Z.appendChild(Da);x=document.createElement("span");mxUtils.write(x,mxResources.get("crop"));Z.appendChild(x);mxEvent.addListener(Z,"click",function(){Da.checked=!0});aa.appendChild(Z);Z=document.createElement("div");Z.className="geDialogCheckRow";Z.style.alignItems="flex-start";var Ha=document.createElement("input");Ha.style.marginTop="4px";Ha.setAttribute("type","radio");
+Ha.setAttribute("name","printSize");Z.appendChild(Ha);ra=document.createElement("table");ra.style.display="inline-block";ra.style.borderSpacing="0";xa=document.createElement("tbody");var $a=document.createElement("tr"),Ka=$a.cloneNode(!0),za=document.createElement("td"),Sa=za.cloneNode(!0),Oa=za.cloneNode(!0),Ma=za.cloneNode(!0),Na=za.cloneNode(!0),Ba=za.cloneNode(!0);za.style.textAlign="right";Ma.style.textAlign="right";mxUtils.write(za,mxResources.get("fitTo"));mxEvent.addListener(Z,"click",function(ia){mxEvent.getSource(ia)!=
+Ha&&(Ha.checked=!Ha.checked)});var Ya=document.createElement("input");Ya.style.margin="0 2px";Ya.style.boxSizing="border-box";Ya.setAttribute("value",l.lastPrintSheetsAcross||"1");Ya.setAttribute("min","1");Ya.setAttribute("type","number");Ya.style.width="40px";Sa.appendChild(Ya);x=document.createElement("span");mxUtils.write(x,mxResources.get("fitToSheetsAcross"));Oa.appendChild(x);mxUtils.write(Ma,mxResources.get("fitToBy"));var Pa=Ya.cloneNode(!0);Pa.setAttribute("value",l.lastPrintSheetsDown||
+"1");Na.appendChild(Pa);mxEvent.addListener(Ya,"click",function(ia){Ha.checked=!0;mxEvent.consume(ia)});mxEvent.addListener(Pa,"click",function(ia){Ha.checked=!0;mxEvent.consume(ia)});l.lastPrintCropRadioChecked?Da.checked=!0:l.lastPrintFitRadioChecked?Ha.checked=!0:Ua.checked=!0;x=document.createElement("span");mxUtils.write(x,mxResources.get("fitToSheetsDown"));Ba.appendChild(x);$a.appendChild(za);$a.appendChild(Sa);$a.appendChild(Oa);Ka.appendChild(Ma);Ka.appendChild(Na);Ka.appendChild(Ba);xa.appendChild($a);
+xa.appendChild(Ka);ra.appendChild(xa);Z.appendChild(ra);aa.appendChild(Z);S.appendChild(aa);aa=document.createElement("div");aa.className="geDialogSection";x=document.createElement("div");x.className="geDialogFormRow";Z=document.createElement("label");Z.className="geDialogFormLabel";mxUtils.write(Z,mxResources.get("borderWidth"));x.appendChild(Z);var sa=document.createElement("input");sa.setAttribute("type","number");sa.setAttribute("min","0");sa.style.width="40px";sa.value=null!=l.lastPrintBorder?
+l.lastPrintBorder:mxPrintPreview.prototype.pageMargin;x.appendChild(sa);Z=document.createElement("label");Z.style.marginLeft="12px";Z.style.marginRight="4px";mxUtils.write(Z,mxResources.get("zoom"));x.appendChild(Z);var Fa=document.createElement("input");Fa.style.width="60px";Fa.value=null!=l.lastPrintZoom?l.lastPrintZoom:"100%";x.appendChild(Fa);aa.appendChild(x);Z=document.createElement("div");Z.className="geDialogCheckRow";var Qa=document.createElement("input");Qa.setAttribute("type","checkbox");
+Qa.style.marginRight="8px";Qa.checked=null!=l.lastPrintGrid?l.lastPrintGrid:!1;Z.appendChild(Qa);x=document.createElement("span");mxUtils.write(x,mxResources.get("grid"));Z.appendChild(x);mxEvent.addListener(x,"click",function(ia){Qa.checked=!0;mxEvent.consume(ia)});aa.appendChild(Z);Z=document.createElement("div");Z.className="geDialogCheckRow";var Ta=document.createElement("input");Ta.setAttribute("type","checkbox");Ta.style.marginRight="8px";Ta.checked=null!=l.lastPrintShadow?l.lastPrintShadow:
+!1;Z.appendChild(Ta);x=document.createElement("span");mxUtils.write(x,mxResources.get("shadows"));Z.appendChild(x);l.isOffline()&&!mxClient.IS_CHROMEAPP||x.appendChild(l.createHelpIcon("https://github.com/jgraph/drawio/discussions/5136"));mxEvent.addListener(x,"click",function(ia){"IMG"!=mxEvent.getSource(ia).nodeName&&(Ta.checked=!0,mxEvent.consume(ia))});Editor.enableShadowOption||(Z.style.display="none");aa.appendChild(Z);var y=document.createElement("input");y.setAttribute("type","checkbox");
+y.style.marginRight="8px";y.checked=null!=l.lastPrintTransparent?l.lastPrintTransparent:!1;null!=J&&(Z=document.createElement("div"),Z.className="geDialogCheckRow",Z.appendChild(y),x=document.createElement("span"),mxUtils.write(x,mxResources.get("transparentBackground")),Z.appendChild(x),mxEvent.addListener(x,"click",function(ia){y.checked=!0;mxEvent.consume(ia)}),aa.appendChild(Z));var Q=document.createElement("input");Q.setAttribute("type","checkbox");Q.style.marginRight="8px";Q.checked=null!=l.lastPrintInclude?
+l.lastPrintInclude:Editor.defaultIncludeDiagram;null==J||mxClient.IS_CHROMEAPP||"draw.io"!=l.getServiceName()||(Z=document.createElement("div"),Z.className="geDialogCheckRow",Z.appendChild(Q),x=document.createElement("span"),mxUtils.write(x,mxResources.get("includeCopyOfMyDiagram")),Z.appendChild(x),mxEvent.addListener(x,"click",function(ia){Q.checked=!0;mxEvent.consume(ia)}),aa.appendChild(Z));S.appendChild(aa);x=document.createElement("div");x.style.marginTop="16px";x.style.textAlign="right";x.style.whiteSpace=
+"nowrap";l.isOffline()&&!mxClient.IS_CHROMEAPP||null!=J||x.appendChild(l.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));aa=mxUtils.button(mxResources.get("cancel"),function(){l.hideDialog()});aa.className="geBtn";l.editor.cancelFirst&&x.appendChild(aa);PrintDialog.previewEnabled&&null==J&&(Z=mxUtils.button(mxResources.get("preview"),function(){try{l.hideDialog(),Y(!1)}catch(ia){l.handleError(ia)}}),Z.className="geBtn",x.appendChild(Z));L=null!=L?L:null!=J?"export":PrintDialog.previewEnabled?
+"print":"ok";L=mxUtils.button(mxResources.get(L),function(){try{l.hideDialog(),Y(!0)}catch(ia){l.handleError(ia)}});L.className="geBtn gePrimaryBtn";x.appendChild(L);l.editor.cancelFirst||x.appendChild(aa);S.appendChild(x);if(l.editor.isChromelessView()){var V=function(){Editor.isDarkMode()?(S.classList.add("geDarkMode"),S.style.colorScheme="dark"):(S.classList.remove("geDarkMode"),S.style.colorScheme="light")};l.addListener("darkModeChanged",V);V();var X=function(ia,la){ia=la.getProperty("dialog");
+S.parentNode==ia.container&&(l.editor.removeListener(X),l.removeListener(V))};l.editor.addListener("hideDialog",X)}this.container=S};var ba=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 l=this.image;null!=l&&null!=l.src&&Graph.isPageLink(l.src)&&(l={originalSrc:l.src});
+this.page.viewState.backgroundImage=l}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.adaptiveColors&&(this.page.viewState.adaptiveColors=this.adaptiveColors);null!=this.shadowVisible&&(this.page.viewState.shadowVisible=this.shadowVisible)}}else ba.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),
+null!=this.adaptiveColors&&this.adaptiveColors!=this.ui.editor.graph.adaptiveColors&&(l=this.ui.editor.graph.adaptiveColors,this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=l?l:"default"),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)}})();(function(){EditorUi.VERSION="29.6.10";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;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)||/.*\.cdn\.prod\.atlassian-dev\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&
"support.draw.io"!=window.location.hostname&&"test.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=window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.enablePlantUml=EditorUi.enableLogging||
"1"==urlParams.dev;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.drawio.com/doc/faq/scratchpad";EditorUi.enableHtmlEditOption=!0;EditorUi.mermaidDiagramTypes=
"flowchart classDiagram sequenceDiagram stateDiagram mindmap graph erDiagram requirementDiagram journey gantt pie gitGraph".split(" ");EditorUi.defaultMermaidConfig={theme:"neutral",arrowMarkerAbsolute:!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:{useWidth:1E3,useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,
@@ -3858,8 +3862,8 @@ c.setAttribute("value","copy"),ea.appendChild(c);c=document.createElement("optio
x.className="geBtn";k=document.createElement("option");mxUtils.write(k,mxResources.get("allPages"));k.setAttribute("value","allPages");x.appendChild(k);k=document.createElement("option");mxUtils.write(k,mxResources.get("currentPage"));k.setAttribute("value","currentPage");x.appendChild(k);var J=null;null!=this.pages&&null!=this.currentPage&&0<this.getPageIndex(this.currentPage)&&(k=null!=this.currentPage?this.currentPage.getName():"",16<k.length&&(k=k.substring(0,16)+"..."),ca&&(ca=document.createElement("div"),
ca.className="geDialogFormRow",W=document.createElement("span"),W.className="geDialogFormLabel",mxUtils.write(W,mxResources.get("pages")+":"),ca.appendChild(W),ca.appendChild(x),H.appendChild(ca)),J=this.addCheckbox(H,mxResources.get("selectedPage")+": "+k,null,null,null,null,null,null,!0));var L=document.createElement("select");L.style.maxWidth="260px";ca=document.createElement("option");ca.setAttribute("value","0");mxUtils.write(ca,mxResources.get("light"));L.appendChild(ca);ca=document.createElement("option");
ca.setAttribute("value","1");mxUtils.write(ca,mxResources.get("dark"));L.appendChild(ca);ca=document.createElement("option");ca.setAttribute("value","auto");mxUtils.write(ca,mxResources.get("automatic"));ca.setAttribute("selected","selected");L.appendChild(ca);M&&(M=document.createElement("div"),M.className="geDialogFormRow",ca=document.createElement("span"),ca.className="geDialogFormLabel",mxUtils.write(ca,mxResources.get("appearance")+":"),M.appendChild(ca),M.appendChild(L),H.appendChild(M));var T=
-this.addCheckbox(H,mxResources.get("lightbox"),!0,null,null,!q,null,null,!0),Y=this.addEditButton(H,T),aa=Y.getEditInput();q&&(null!=T.checkRow&&(T.checkRow.style.display="none"),dy-=20);var S=this.addCheckbox(H,mxResources.get("layers"),!0,null,null,null,null,null,!0);S.checkRow.style.paddingLeft="24px";var Z=this.addCheckbox(H,mxResources.get("tags"),!0,null,null,null,null,null,!0);Z.checkRow.style.paddingLeft="24px";var da=this.addCheckbox(H,mxResources.get("useCurrentSettings"),!0,null,null,null,
-null,null,!0);da.checkRow.style.paddingLeft="48px";fa.appendChild(H);mxEvent.addListener(Z,"change",function(){Z.checked?da.removeAttribute("disabled"):da.setAttribute("disabled","disabled")});mxEvent.addListener(T,"change",function(){T.checked?(S.removeAttribute("disabled"),aa.removeAttribute("disabled"),Z.removeAttribute("disabled"),Z.checked&&da.removeAttribute("disabled")):(S.setAttribute("disabled","disabled"),aa.setAttribute("disabled","disabled"),Z.setAttribute("disabled","disabled"),da.setAttribute("disabled",
+this.addCheckbox(H,mxResources.get("lightbox"),!0,null,null,!q,null,null,!0),Y=this.addEditButton(H,T),aa=Y.getEditInput();q&&null!=T.checkRow&&(T.checkRow.style.display="none");var S=this.addCheckbox(H,mxResources.get("layers"),!0,null,null,null,null,null,!0);S.checkRow.style.paddingLeft="24px";var Z=this.addCheckbox(H,mxResources.get("tags"),!0,null,null,null,null,null,!0);Z.checkRow.style.paddingLeft="24px";var da=this.addCheckbox(H,mxResources.get("useCurrentSettings"),!0,null,null,null,null,
+null,!0);da.checkRow.style.paddingLeft="48px";fa.appendChild(H);mxEvent.addListener(Z,"change",function(){Z.checked?da.removeAttribute("disabled"):da.setAttribute("disabled","disabled")});mxEvent.addListener(T,"change",function(){T.checked?(S.removeAttribute("disabled"),aa.removeAttribute("disabled"),Z.removeAttribute("disabled"),Z.checked&&da.removeAttribute("disabled")):(S.setAttribute("disabled","disabled"),aa.setAttribute("disabled","disabled"),Z.setAttribute("disabled","disabled"),da.setAttribute("disabled",
"disabled"));aa.checked&&T.checked?Y.getEditSelect().removeAttribute("disabled"):Y.getEditSelect().setAttribute("disabled","disabled")});q=new CustomDialog(this,fa,mxUtils.bind(this,function(){P(ba.getTarget(),ba.getColor(),null==J?!1:J.checked,T.checked,Y.getLink(),S.checked,null!=ka?ka.value:null,null!=pa?pa.value:null,Z.checked,ea.value,null!=l?l.checked:!1,L.value,"allPages"==x.value,Z.checked&&da.checked)}),null,mxResources.get("create"),A,D);this.showDialog(q.container,360,null,!0,!0);null!=
ka?(ka.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?ka.select():document.execCommand("selectAll",!1,null)):null==ea.parentNode;ba.focus()};EditorUi.prototype.showRemoteExportDialog=function(c,g,k,q,A){var D=document.createElement("div");D.style.whiteSpace="nowrap";var H=document.createElement("h3");mxUtils.write(H,mxResources.get("image"));H.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";D.appendChild(H);if(A){A=document.createElement("div");A.className=
"geDialogSection";H=document.createElement("div");H.className="geDialogFormRow";var K=document.createElement("span");K.className="geDialogFormLabel";mxUtils.write(K,mxResources.get("zoom")+":");H.appendChild(K);var P=document.createElement("input");P.setAttribute("type","text");P.value=this.lastExportZoom||"100%";H.appendChild(P);A.appendChild(H);H=document.createElement("div");H.className="geDialogFormRow";K=document.createElement("span");K.className="geDialogFormLabel";mxUtils.write(K,mxResources.get("borderWidth")+
@@ -3963,8 +3967,8 @@ this.spinner.pause():function(){},q=isLocalStorage||mxClient.IS_CHROMEAPP?mxSett
isLocalStorage||mxClient.IS_CHROMEAPP)).container,340,isLocalStorage||mxClient.IS_CHROMEAPP?226:200,!0,!0):A(!1,q)};EditorUi.prototype.parseFile=function(c,g,k){k=null!=k?k:c.name;var q=new FileReader;q.onload=mxUtils.bind(this,function(){this.parseFileData(q.result,g,k)});q.readAsText(c)};EditorUi.prototype.parseFileData=function(c,g,k){var q=new XMLHttpRequest;q.open("POST",OPEN_URL);q.setRequestHeader("Content-Type","application/x-www-form-urlencoded");q.onreadystatechange=function(){g(q)};q.send("format=xml&filename="+
encodeURIComponent(k)+"&data="+encodeURIComponent(c));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(A){}};EditorUi.prototype.isResampleImageSize=function(c,g){g=null!=g?g:this.resampleThreshold;return c>g};EditorUi.prototype.resizeImage=function(c,g,k,q,A,D,H){A=null!=A?A:this.maxImageSize;var K=Math.max(1,c.width),P=Math.max(1,c.height),W=g;if(q&&this.isResampleImageSize(null!=H?H:g.length,D))try{var M=Math.max(K/A,P/A);if(1<M){var ca=Math.round(K/M),fa=Math.round(P/
M),ha=document.createElement("canvas");ha.width=ca;ha.height=fa;ha.getContext("2d").drawImage(c,0,0,ca,fa);var ea=ha.toDataURL();if(ea.length<g.length){var ka=document.createElement("canvas");ka.width=ca;ka.height=fa;var pa=ka.toDataURL();ea!==pa&&(g=ea,K=ca,P=fa)}}}catch(ba){}q&&W!=g&&A>this.maxImageSize/2&&g.length>this.maxImageBytes?this.resizeImage(c,g,k,q,A/1.5,D,H):k(g,K,P)};EditorUi.prototype.extractGraphModelFromPng=function(c){return Editor.extractGraphModelFromPng(c)};EditorUi.prototype.loadImage=
-function(c,g,k){try{var q=new Image;q.onload=function(){q.width=0<q.width?q.width:120;q.height=0<q.height?q.height:120;g(q)};null!=k&&(q.onerror=k);q.src=c}catch(A){if(null!=k)k(A);else throw A;}};EditorUi.prototype.getDefaultSketchMode=function(){var c="1"==urlParams.sketch;return"0"!=(null!=urlParams.rough?urlParams.rough:c)};var v=EditorUi.prototype.createUi;EditorUi.prototype.createUi=function(){Editor.isSettingsEnabled()&&(null!=mxSettings.settings.sidebarTitles&&(Sidebar.prototype.sidebarTitles=
-mxSettings.settings.sidebarTitles),this.formatWidth=mxSettings.getFormatWidth());this.formatEnabled||(this.formatWidth=0);this.sidebarEnabled||(this.hsplitPosition=0);v.apply(this,arguments);Editor.isSettingsEnabled()&&this.doSetSketchMode(null!=mxSettings.settings.sketchMode&&null==urlParams.rough&&null==urlParams.sketch?mxSettings.settings.sketchMode:this.getDefaultSketchMode())};var p=EditorUi.prototype.init;EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=mxStencilRegistry.allowEval&&
+function(c,g,k){try{var q=new Image;q.onload=function(){q.width=0<q.width?q.width:120;q.height=0<q.height?q.height:120;g(q)};null!=k&&(q.onerror=k);q.src=c}catch(A){if(null!=k)k(A);else throw A;}};EditorUi.prototype.getDefaultSketchMode=function(){var c="1"==urlParams.sketch;return"0"!=(null!=urlParams.rough?urlParams.rough:c)};var u=EditorUi.prototype.createUi;EditorUi.prototype.createUi=function(){Editor.isSettingsEnabled()&&(null!=mxSettings.settings.sidebarTitles&&(Sidebar.prototype.sidebarTitles=
+mxSettings.settings.sidebarTitles),this.formatWidth=mxSettings.getFormatWidth());this.formatEnabled||(this.formatWidth=0);this.sidebarEnabled||(this.hsplitPosition=0);u.apply(this,arguments);Editor.isSettingsEnabled()&&this.doSetSketchMode(null!=mxSettings.settings.sketchMode&&null==urlParams.rough&&null==urlParams.sketch?mxSettings.settings.sketchMode:this.getDefaultSketchMode())};var p=EditorUi.prototype.init;EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=mxStencilRegistry.allowEval&&
!this.isOfflineApp();var c=this,g=this.editor.graph,k=g.isEnabled;g.isEnabled=function(){return k.apply(this,arguments)&&!c.isLocked()};g.showLinkIcons=Editor.showLinkIcons;g.showTooltipIcons=Editor.showTooltipIcons;var q=this;g.editTooltip=function(S){null!=S&&q.actions.get("editTooltip").funct()};g.getLinkOverlayTooltip=function(S){if(Graph.isPageLink(S)&&null!=q.pages){var Z=S.substring(S.indexOf(",")+1);Z=q.getPageById(Z);if(null!=Z)return Z.getName()||mxResources.get("pageWithNumber",[mxUtils.indexOf(q.pages,
Z)+1])}return S};Graph.touchStyle&&(g.panningHandler.isPanningTrigger=function(S){var Z=S.getEvent();return null==S.getState()&&!mxEvent.isMouseEvent(Z)&&!g.freehand.isDrawing()||mxEvent.isPopupTrigger(Z)&&(null==S.getState()||mxEvent.isControlDown(Z)||mxEvent.isShiftDown(Z))});g.cellEditor.editPlantUmlData=function(S,Z,da){var ma=JSON.parse(da);Z=new SimpleTextareaDialog(c,ma.data,function(na){null!=na&&c.spinner.spin(document.body,mxResources.get("inserting"))&&c.generatePlantUmlImage(na,ma.format,
function(ra,ta,Aa){c.spinner.stop();g.getModel().beginUpdate();try{if("txt"==ma.format)g.labelChanged(S,"<pre>"+ra+"</pre>"),g.updateCellSize(S,!0);else{g.setCellStyles("image",c.convertDataUri(ra),[S]);var Ca=g.model.getGeometry(S);null!=Ca&&(Ca=Ca.clone(),Ca.width=ta,Ca.height=Aa,g.cellsResized([S],[Ca],!1))}g.setAttributeForCell(S,"plantUmlData",JSON.stringify({data:na,format:ma.format}))}finally{g.getModel().endUpdate()}},function(ra){c.handleError(ra)})});c.showDialog(Z.container,640,420,!0,
@@ -4258,7 +4262,7 @@ EditorUi.prototype.exportToCanvas=function(c,g,k,q,A,D,H,K,P,W,M,ca,fa,ha,ea,ka)
g,k,q)};EditorUi.prototype.convertImageToDataUri=function(c,g){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(c,g)};EditorUi.prototype.base64Encode=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: base64Encode");return Editor.base64Encode(c)};EditorUi.prototype.updateCRC=function(c,g,k,q){EditorUi.logEvent("SHOULD NOT BE CALLED: updateCRC");return Editor.updateCRC(c,g,k,q)};EditorUi.prototype.crc32=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");
return Editor.crc32(c)};EditorUi.prototype.writeGraphModelToPng=function(c,g,k,q,A){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");return Editor.writeGraphModelToPng(c,g,k,q,A)};EditorUi.prototype.getLocalStorageFileNames=function(){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;for(var c=[],g=0;g<localStorage.length;g++){var k=localStorage.key(g),q=localStorage.getItem(k);if(0<k.length&&(".scratchpad"==k||"."!=k.charAt(0))&&0<q.length){var A=
"<mxfile "===q.substring(0,8)||"<?xml"===q.substring(0,5)||"\x3c!--[if IE]>"===q.substring(0,12);q="<mxlibrary>"===q.substring(0,11);(A||q)&&c.push(k)}}return c};EditorUi.prototype.getLocalStorageFile=function(c){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;var g=localStorage.getItem(c);return{title:c,data:g,isLib:"<mxlibrary>"===g.substring(0,11)}};EditorUi.prototype.setMigratedFlag=function(){localStorage.setItem(".localStorageMigrated","1")}})();
-var CommentsWindow=function(b,d,m,n,v,p){function z(){for(var ea=H.getElementsByTagName("div"),ka=0,pa=0;pa<ea.length;pa++)"none"!=ea[pa].style.display&&ea[pa].parentNode==H&&ka++;K.style.display=0==ka?"block":"none"}function G(ea,ka,pa,ba){function l(){ka.removeChild(L);ka.removeChild(T);J.style.display="block";x.style.display="block"}q={div:ka,comment:ea,saveCallback:pa,deleteOnCancel:ba};var x=ka.querySelector(".geCommentTxt"),J=ka.querySelector(".geCommentActionsList"),L=document.createElement("textarea");
+var CommentsWindow=function(b,d,m,n,u,p){function z(){for(var ea=H.getElementsByTagName("div"),ka=0,pa=0;pa<ea.length;pa++)"none"!=ea[pa].style.display&&ea[pa].parentNode==H&&ka++;K.style.display=0==ka?"block":"none"}function G(ea,ka,pa,ba){function l(){ka.removeChild(L);ka.removeChild(T);J.style.display="block";x.style.display="block"}q={div:ka,comment:ea,saveCallback:pa,deleteOnCancel:ba};var x=ka.querySelector(".geCommentTxt"),J=ka.querySelector(".geCommentActionsList"),L=document.createElement("textarea");
L.className="geCommentEditTxtArea";L.style.minHeight=x.offsetHeight+"px";L.value=ea.content;ka.insertBefore(L,x);var T=document.createElement("div");T.className="geCommentEditBtns";var Y=mxUtils.button(mxResources.get("cancel"),function(){ba?(ka.parentNode.removeChild(ka),z()):l();q=null});Y.className="geCommentEditBtn";T.appendChild(Y);var aa=mxUtils.button(mxResources.get("save"),function(){x.innerText="";ea.content=L.value;mxUtils.write(x,ea.content);l();pa(ea);q=null});mxEvent.addListener(L,"keydown",
mxUtils.bind(this,function(S){mxEvent.isConsumed(S)||((mxEvent.isControlDown(S)||mxClient.IS_MAC&&mxEvent.isMetaDown(S))&&13==S.keyCode?(aa.click(),mxEvent.consume(S)):27==S.keyCode&&(Y.click(),mxEvent.consume(S)))}));aa.focus();aa.className="geCommentEditBtn gePrimaryBtn";T.appendChild(aa);ka.insertBefore(T,x);J.style.display="none";x.style.display="none";L.focus()}function U(ea,ka){ka.innerText="";ea=new Date(ea.modifiedDate);var pa=b.timeSince(ea);null==pa&&(pa=mxResources.get("lessThanAMinute"));
mxUtils.write(ka,mxResources.get("timeAgo",[pa],"{1} ago"));ka.setAttribute("title",ea.toLocaleDateString()+" "+ea.toLocaleTimeString())}function E(ea){var ka=document.createElement("img");ka.className="geCommentBusyImg";ka.src=IMAGE_PATH+"/spin.gif";ea.appendChild(ka);ea.busyImg=ka}function R(ea){ea.style.border="1px solid red";ea.busyImg.parentNode==ea&&ea.removeChild(ea.busyImg)}function N(ea){ea.style.border="";ea.busyImg.parentNode==ea&&ea.removeChild(ea.busyImg)}function c(ea,ka,pa,ba,l){function x(da,
@@ -4278,38 +4282,38 @@ P.appendChild(W));b.commentsSaveNeeded()&&(D=D.cloneNode(),D.innerHTML='<img src
ka=q.div.querySelector(".geCommentEditBtns");q.comment.content=ea.value;ea.parentNode.removeChild(ea);ka.parentNode.removeChild(ka)}catch(pa){b.handleError(pa)}H.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH+'/spin.gif" valign="middle"> '+mxUtils.htmlEntities(mxResources.get("loading"))+"...</div>";k=b.canReplyToReplies();b.commentsSupported()?b.getComments(function(pa){function ba(l){if(null!=l){l.sort(function(J,L){return new Date(J.modifiedDate)-new Date(L.modifiedDate)});
for(var x=0;x<l.length;x++)ba(l[x].replies)}}pa.sort(function(l,x){return new Date(l.modifiedDate)-new Date(x.modifiedDate)});H.innerText="";H.appendChild(K);K.style.display="block";fa=pa;for(pa=0;pa<fa.length;pa++)ba(fa[pa].replies),c(fa[pa],fa,null,0,ca);null!=q&&null==q.comment.id&&null==q.comment.pCommentId&&(H.appendChild(q.div),G(q.comment,q.div,q.saveCallback,q.deleteOnCancel))},mxUtils.bind(this,function(pa){H.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(pa&&pa.message?": "+pa.message:
""));this.hasError=!0})):H.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))});ha();this.refreshComments=ha;P=mxUtils.bind(this,function(){function ea(x){var J=pa[x.id];if(null!=J)for(U(x,J),J=0;null!=x.replies&&J<x.replies.length;J++)ea(x.replies[J])}if(this.window.isVisible()){for(var ka=H.querySelectorAll(".geCommentDate"),pa={},ba=0;ba<ka.length;ba++){var l=ka[ba];pa[l.getAttribute("data-commentId")]=l}for(ba=0;ba<fa.length;ba++)ea(fa[ba])}});setInterval(P,6E4);this.refreshCommentsTime=
-P;this.window=new mxWindow(mxResources.get("comments"),A,d,m,n,v,!0,!0);this.window.minimumSize=new mxRectangle(0,0,260,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()}));b.installResizeHandler(this,!0)},ConfirmDialog=function(b,d,m,n,v,p,z,G,U,E,R){var N=document.createElement("div");N.style.textAlign="center";R=
+P;this.window=new mxWindow(mxResources.get("comments"),A,d,m,n,u,!0,!0);this.window.minimumSize=new mxRectangle(0,0,260,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()}));b.installResizeHandler(this,!0)},ConfirmDialog=function(b,d,m,n,u,p,z,G,U,E,R){var N=document.createElement("div");N.style.textAlign="center";R=
null!=R?R:44;var c=document.createElement("div");c.style.padding="6px";c.style.overflow="auto";c.style.maxHeight=R+"px";c.style.lineHeight="1.2em";mxUtils.write(c,d);N.appendChild(c);null!=E&&(c=document.createElement("div"),c.style.padding="6px 0 6px 0",d=document.createElement("img"),d.setAttribute("src",E),c.appendChild(d),N.appendChild(c));E=document.createElement("div");E.style.textAlign="center";E.style.whiteSpace="nowrap";var g=document.createElement("input");g.setAttribute("type","checkbox");
-p=mxUtils.button(p||mxResources.get("cancel"),function(){b.hideDialog();null!=n&&n(g.checked)});p.className="geBtn";null!=G&&(p.innerHTML=G+"<br>"+p.innerHTML,p.style.display="inline-block",p.style.paddingBottom="8px",p.style.paddingTop="8px",p.style.height="auto",p.style.width="40%");b.editor.cancelFirst&&E.appendChild(p);var k=mxUtils.button(v||mxResources.get("ok"),function(){b.hideDialog();null!=m&&m(g.checked)});E.appendChild(k);null!=z?(k.innerHTML=z+"<br>"+k.innerHTML+"<br>",k.style.display=
-"inline-block",k.style.paddingBottom="8px",k.style.paddingTop="8px",k.style.height="auto",k.className="geBtn",k.style.width="40%"):k.className="geBtn gePrimaryBtn";b.editor.cancelFirst||E.appendChild(p);N.appendChild(E);U?(E.style.marginTop="10px",c=document.createElement("p"),c.style.marginTop="20px",c.style.marginBottom="0px",c.appendChild(g),v=document.createElement("span"),mxUtils.write(v," "+mxResources.get("rememberThisSetting")),c.appendChild(v),N.appendChild(c),mxEvent.addListener(v,"click",
+p=mxUtils.button(p||mxResources.get("cancel"),function(){b.hideDialog();null!=n&&n(g.checked)});p.className="geBtn";null!=G&&(p.innerHTML=G+"<br>"+p.innerHTML,p.style.display="inline-block",p.style.paddingBottom="8px",p.style.paddingTop="8px",p.style.height="auto",p.style.width="40%");b.editor.cancelFirst&&E.appendChild(p);var k=mxUtils.button(u||mxResources.get("ok"),function(){b.hideDialog();null!=m&&m(g.checked)});E.appendChild(k);null!=z?(k.innerHTML=z+"<br>"+k.innerHTML+"<br>",k.style.display=
+"inline-block",k.style.paddingBottom="8px",k.style.paddingTop="8px",k.style.height="auto",k.className="geBtn",k.style.width="40%"):k.className="geBtn gePrimaryBtn";b.editor.cancelFirst||E.appendChild(p);N.appendChild(E);U?(E.style.marginTop="10px",c=document.createElement("p"),c.style.marginTop="20px",c.style.marginBottom="0px",c.appendChild(g),u=document.createElement("span"),mxUtils.write(u," "+mxResources.get("rememberThisSetting")),c.appendChild(u),N.appendChild(c),mxEvent.addListener(u,"click",
function(q){g.checked=!g.checked;mxEvent.consume(q)})):E.style.marginTop="12px";this.init=function(){k.focus()};this.container=N},HeadlessEditorUi=function(){EditorUi.call(this,new Editor(!0),document.createElement("div"),!0)};mxUtils.extend(HeadlessEditorUi,EditorUi);HeadlessEditorUi.prototype.createUi=function(){};HeadlessEditorUi.prototype.addTrees=function(){};HeadlessEditorUi.prototype.onBeforeUnload=function(){};HeadlessEditorUi.prototype.updateActionStates=function(){};function DiagramPage(b,d){this.node=b;null!=d?this.node.setAttribute("id",d):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.diagramModified=!1;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)};DiagramPage.prototype.setDiagramModified=function(b){this.diagramModified=b};DiagramPage.prototype.isDiagramModified=function(){return this.diagramModified};function RenamePage(b,d,m){this.ui=b;this.page=d;this.previous=this.name=m}
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,d,m){this.ui=b;this.oldIndex=d;this.newIndex=m}
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,d,m){this.ui=b;this.previousPage=this.page=d;null!=d&&(this.ui.updatePageRoot(d),null!=m&&(d.viewState=m))}
SelectPage.prototype.execute=function(){var b=mxUtils.indexOf(this.ui.pages,this.previousPage);if(null!=this.page&&0<=b){b=this.ui.currentPage;var d=this.ui.editor,m=d.graph;b.isDiagramModified()&&(b.setDiagramModified(!1),EditorUi.removeChildNodes(b.node),b.node.appendChild(d.getGraphXml(!0)));b.viewState=m.getViewState();b.root=m.model.root;null!=b.model&&b.model.rootChanged(b.root);m.view.clear(b.root,!0);m.clearSelection();this.ui.currentPage=this.previousPage;this.previousPage=b;b=this.ui.currentPage;
-m.model.prefix=Editor.guid()+"-";m.model.rootChanged(b.root);m.setViewState(b.viewState);m.gridEnabled=m.gridEnabled&&(!this.ui.editor.isChromelessView()||"1"==urlParams.grid);d.graph.fireEvent(new mxEventObject(mxEvent.ROOT));d.fireEvent(new mxEventObject("pageSelected","change",this))}};function ChangePage(b,d,m,n,v){SelectPage.call(this,b,m);this.relatedPage=d;this.index=n;this.previousIndex=null;this.noSelect=v}mxUtils.extend(ChangePage,SelectPage);
+m.model.prefix=Editor.guid()+"-";m.model.rootChanged(b.root);m.setViewState(b.viewState);m.gridEnabled=m.gridEnabled&&(!this.ui.editor.isChromelessView()||"1"==urlParams.grid);d.graph.fireEvent(new mxEventObject(mxEvent.ROOT));d.fireEvent(new mxEventObject("pageSelected","change",this))}};function ChangePage(b,d,m,n,u){SelectPage.call(this,b,m);this.relatedPage=d;this.index=n;this.previousIndex=null;this.noSelect=u}mxUtils.extend(ChangePage,SelectPage);
ChangePage.prototype.execute=function(){this.ui.editor.fireEvent(new mxEventObject("beforePageChange","change",this));this.previousIndex=this.index;if(null==this.index){var b=mxUtils.indexOf(this.ui.pages,this.relatedPage);this.ui.pages.splice(b,1);this.index=b}else this.ui.pages.splice(this.index,0,this.relatedPage),this.index=null;this.noSelect||SelectPage.prototype.execute.apply(this,arguments)};function ReplaceDiagram(b,d){this.ui=b;this.data=d}
ReplaceDiagram.prototype.execute=function(){var b=this.ui.editor.graph,d=this.ui.editor.getGraphXml();this.ui.editor.readGraphState(this.data);this.ui.editor.updateGraphComponents();var m=new mxCodec(this.data.ownerDocument),n=new mxGraphModel;m.decode(this.data,n);this.data=d;this.ui.currentPage&&(this.ui.currentPage.viewState=b.getViewState(),this.ui.currentPage.root=n.root,null!=this.ui.currentPage.model&&this.ui.currentPage.model.rootChanged(this.ui.currentPage.model.root));b.view.clear(b.model.root,
!0);b.model.rootChanged(n.root);b.fireEvent(new mxEventObject(mxEvent.ROOT))};EditorUi.prototype.tabContainerVisible=!0;EditorUi.prototype.setTabContainerVisible=function(b,d){Editor.isSettingsEnabled()&&d&&(mxSettings.settings.pages=b,mxSettings.save());this.tabContainerVisible=b;this.updateTabContainer()};EditorUi.prototype.isTabContainerVisible=function(){return this.tabContainerVisible};EditorUi.prototype.getSelectedPageIndex=function(){return this.getPageIndex(this.currentPage)};
EditorUi.prototype.getPageIndex=function(b){var d=null;if(null!=this.pages&&null!=b)for(var m=0;m<this.pages.length;m++)if(this.pages[m]==b){d=m;break}return d};EditorUi.prototype.getPageById=function(b,d){d=null!=d?d:this.pages;if(null!=d)for(var m=0;m<d.length;m++)if(d[m].getId()==b)return d[m];return null};
-EditorUi.prototype.createImageForPageLink=function(b,d,m,n){var v=b.indexOf(","),p=null;0<v&&(v=this.getPageById(b.substring(v+1)),null!=v&&v!=d&&(p=this.getImageForPage(v,d,m,n),p.originalSrc=b));null==p&&(p={originalSrc:b});return p};
+EditorUi.prototype.createImageForPageLink=function(b,d,m,n){var u=b.indexOf(","),p=null;0<u&&(u=this.getPageById(b.substring(u+1)),null!=u&&u!=d&&(p=this.getImageForPage(u,d,m,n),p.originalSrc=b));null==p&&(p={originalSrc:b});return p};
EditorUi.prototype.pageSelected=function(){var b=this.editor.graph,d=this.currentPage;null!=d&&(b.tooltipHandler.hide(),null==d.viewState||null==d.viewState.scrollTop||null==d.viewState.scrollLeft?(b.selectUnlockedLayer(),this.resetScrollbars(),b.isLightboxView()?this.lightboxFit():Editor.fitDiagramOnPage&&this.initialFitDiagram(),null!=this.chromelessResize&&(b.container.scrollleft=0,b.container.scrollTop=0,this.chromelessResize())):b.setScrollbarPositions(d.viewState,b.view.translate.x,b.view.translate.y),
this.updateTabContainer(),this.scrollToPage())};
-EditorUi.prototype.getImageForPage=function(b,d,m,n){m=null!=m?m:this.editor.graph;var v=m.getGlobalVariable;m=this.createTemporaryGraph(m.getStylesheet());var p=this.getPageIndex(null!=d?d:this.currentPage);m.getGlobalVariable=function(G){return"pagenumber"==G?p+1:"page"==G&&null!=d?d.getName():v.apply(this,arguments)};document.body.appendChild(m.container);this.updatePageRoot(b);m.setAdaptiveColors(b.viewState.adaptiveColors);m.model.setRoot(b.root);b=Graph.foreignObjectWarningText;Graph.foreignObjectWarningText=
+EditorUi.prototype.getImageForPage=function(b,d,m,n){m=null!=m?m:this.editor.graph;var u=m.getGlobalVariable;m=this.createTemporaryGraph(m.getStylesheet());var p=this.getPageIndex(null!=d?d:this.currentPage);m.getGlobalVariable=function(G){return"pagenumber"==G?p+1:"page"==G&&null!=d?d.getName():u.apply(this,arguments)};document.body.appendChild(m.container);this.updatePageRoot(b);m.setAdaptiveColors(b.viewState.adaptiveColors);m.model.setRoot(b.root);b=Graph.foreignObjectWarningText;Graph.foreignObjectWarningText=
"";n=m.getSvg(null,null,null,null,null,null,null,null,null,null,n,null,null,null,!0,!0);var z=m.getGraphBounds();document.body.removeChild(m.container);Graph.foreignObjectWarningText=b;return new mxImage(Editor.createSvgDataUri(mxUtils.getXml(n)),z.width,z.height,z.x,z.y)};
EditorUi.prototype.initPages=function(){if(!this.editor.graph.standalone){this.actions.addAction("previousPage",mxUtils.bind(this,function(){this.selectNextPage(!1)}));this.actions.addAction("nextPage",mxUtils.bind(this,function(){this.selectNextPage(!0)}));this.isPagesEnabled()&&(this.keyHandler.bindAction(33,!0,"previousPage",!0),this.keyHandler.bindAction(34,!0,"nextPage",!0));var b=this.editor.graph,d=b.view.validateBackground;b.view.validateBackground=mxUtils.bind(this,function(){d.apply(b.view,
-arguments);null!=b.view.backgroundImage&&EditorUi.embedSvgImages(b.view.backgroundImage.node)});this.editor.graph.model.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(z,G){z=G.getProperty("edit").changes;for(G=0;G<z.length;G++)if(z[G]instanceof RenamePage||z[G]instanceof ChangePage||z[G]instanceof mxRootChange){this.updateTabContainer();break}null==this.currentPage||1==z.length&&z[0]instanceof SelectPage||this.currentPage.setDiagramModified(!0)}));var m=b.sizeDidChange,n=null,v=this;b.sizeDidChange=
-function(){var z=m.apply(this,arguments);null!=v.currentPage&&n!=v.currentPage&&(n=v.currentPage,v.pageSelected());return z};b.addListener(mxEvent.ROOT,mxUtils.bind(this,function(){b.checkDefaultParent()}));var p=mxUtils.bind(this,function(){this.updateDocumentTitle();this.updateTabContainer()});this.addListener("currentThemeChanged",p);this.editor.addListener("pagesPatched",p);this.editor.addListener("pageRenamed",p);this.editor.addListener("pageMoved",p);this.editor.addListener("fileLoaded",p);
+arguments);null!=b.view.backgroundImage&&EditorUi.embedSvgImages(b.view.backgroundImage.node)});this.editor.graph.model.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(z,G){z=G.getProperty("edit").changes;for(G=0;G<z.length;G++)if(z[G]instanceof RenamePage||z[G]instanceof ChangePage||z[G]instanceof mxRootChange){this.updateTabContainer();break}null==this.currentPage||1==z.length&&z[0]instanceof SelectPage||this.currentPage.setDiagramModified(!0)}));var m=b.sizeDidChange,n=null,u=this;b.sizeDidChange=
+function(){var z=m.apply(this,arguments);null!=u.currentPage&&n!=u.currentPage&&(n=u.currentPage,u.pageSelected());return z};b.addListener(mxEvent.ROOT,mxUtils.bind(this,function(){b.checkDefaultParent()}));var p=mxUtils.bind(this,function(){this.updateDocumentTitle();this.updateTabContainer()});this.addListener("currentThemeChanged",p);this.editor.addListener("pagesPatched",p);this.editor.addListener("pageRenamed",p);this.editor.addListener("pageMoved",p);this.editor.addListener("fileLoaded",p);
this.editor.addListener("pageSelected",mxUtils.bind(this,function(z,G){this.scrollToPage();this.updateHashObject();this.updateTabContainer();this.updateDocumentTitle()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(z,G){this.scrollToPage();this.updateHashObject()}));mxEvent.addListener(window,"resize",mxUtils.bind(this,function(){this.checkTabScrollerOverflow()}));this.addListener("languageChanged",mxUtils.bind(this,function(){this.updateTabContainer()}))}};
EditorUi.prototype.scrollToPage=function(b,d){var m=null!=b?this.getPageIndex(b):this.getSelectedPageIndex(),n=null!=b?b:this.currentPage;null!=m&&null!=this.tabScroller&&this.tabScroller.children.length>m&&null!=this.tabScroller.children[m]&&(n!=this.lastScrollPage||d)&&(this.tabScroller.children[m].scrollIntoView({block:"nearest",inline:null!=b?"nearest":"center"}),this.tabScroller.children[m].className="geTab gePageTab geActivePage",this.lastScrollPage=n)};
EditorUi.prototype.restoreViewState=function(b,d,m){b=null!=b?this.getPageById(b.getId()):null;var n=this.editor.graph;null!=b&&null!=this.currentPage&&null!=this.pages&&(b!=this.currentPage?this.selectPage(b,!0,d):(n.setViewState(d),this.editor.updateGraphComponents(),n.view.revalidate(),n.sizeDidChange()),n.container.scrollLeft=n.view.translate.x*n.view.scale+d.scrollLeft,n.container.scrollTop=n.view.translate.y*n.view.scale+d.scrollTop,n.restoreSelection(m))};
-Graph.prototype.createViewState=function(b){var d=b.getAttribute("page"),m=parseFloat(b.getAttribute("pageScale")),n=parseFloat(b.getAttribute("pageWidth")),v=parseFloat(b.getAttribute("pageHeight")),p=b.getAttribute("background"),z=this.parseBackgroundImage(b.getAttribute("backgroundImage")),G=b.getAttribute("extFonts");if(G)try{G=G.split("|").map(function(U){U=U.split("^");return{name:U[0],url:U[1]}})}catch(U){console.log("ExtFonts format error: "+U.message)}return{gridEnabled:"0"!=b.getAttribute("grid"),
+Graph.prototype.createViewState=function(b){var d=b.getAttribute("page"),m=parseFloat(b.getAttribute("pageScale")),n=parseFloat(b.getAttribute("pageWidth")),u=parseFloat(b.getAttribute("pageHeight")),p=b.getAttribute("background"),z=this.parseBackgroundImage(b.getAttribute("backgroundImage")),G=b.getAttribute("extFonts");if(G)try{G=G.split("|").map(function(U){U=U.split("^");return{name:U[0],url:U[1]}})}catch(U){console.log("ExtFonts format error: "+U.message)}return{gridEnabled:"0"!=b.getAttribute("grid"),
gridSize:parseFloat(b.getAttribute("gridSize"))||mxGraph.prototype.gridSize,guidesEnabled:"0"!=b.getAttribute("guides"),foldingEnabled:function(){var U=b.getAttribute("fold");return null==U||null!=Editor.config&&null!=Editor.config.defaultFoldingEnabled?Graph.prototype.defaultFoldingEnabled:"0"!=U}(),shadowVisible:"1"==b.getAttribute("shadow"),pageVisible:this.isLightboxView()?!1:null!=d?"0"!=d:this.defaultPageVisible,background:null!=p&&0<p.length?p:null,backgroundImage:z,pageScale:isNaN(m)?mxGraph.prototype.pageScale:
-m,pageFormat:isNaN(n)||isNaN(v)?"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:mxSettings.getPageFormat():new mxRectangle(0,0,n,v),tooltips:"0"!=b.getAttribute("tooltips"),connect:function(){var U=b.getAttribute("connect");return null==U||null!=Editor.config&&null!=Editor.config.defaultConnectable?Graph.prototype.defaultConnectable:"0"!=U}(),arrows:function(){var U=b.getAttribute("arrows");return null==U||null!=Editor.config&&null!=Editor.config.defaultConnectionArrowsEnabled?
+m,pageFormat:isNaN(n)||isNaN(u)?"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:mxSettings.getPageFormat():new mxRectangle(0,0,n,u),tooltips:"0"!=b.getAttribute("tooltips"),connect:function(){var U=b.getAttribute("connect");return null==U||null!=Editor.config&&null!=Editor.config.defaultConnectable?Graph.prototype.defaultConnectable:"0"!=U}(),arrows:function(){var U=b.getAttribute("arrows");return null==U||null!=Editor.config&&null!=Editor.config.defaultConnectionArrowsEnabled?
Graph.prototype.defaultConnectionArrowsEnabled:"0"!=U}(),mathEnabled:"1"==b.getAttribute("math"),adaptiveColors:b.getAttribute("adaptiveColors"),selectionCells:null,defaultParent:null,scrollbars:this.defaultScrollbars,scale:1,hiddenTags:[],extFonts:G||[]}};
-Graph.prototype.saveViewState=function(b,d,m,n,v){m||(d.setAttribute("grid",(null==b?this.defaultGridEnabled:b.gridEnabled)?"1":"0"),d.setAttribute("page",(null==b?this.defaultPageVisible:b.pageVisible)?"1":"0"),d.setAttribute("gridSize",null!=b?b.gridSize:mxGraph.prototype.gridSize),d.setAttribute("guides",null==b||b.guidesEnabled?"1":"0"),d.setAttribute("tooltips",null==b||b.tooltips?"1":"0"),d.setAttribute("connect",null==b||b.connect?"1":"0"),d.setAttribute("arrows",null==b||b.arrows?"1":"0"),
+Graph.prototype.saveViewState=function(b,d,m,n,u){m||(d.setAttribute("grid",(null==b?this.defaultGridEnabled:b.gridEnabled)?"1":"0"),d.setAttribute("page",(null==b?this.defaultPageVisible:b.pageVisible)?"1":"0"),d.setAttribute("gridSize",null!=b?b.gridSize:mxGraph.prototype.gridSize),d.setAttribute("guides",null==b||b.guidesEnabled?"1":"0"),d.setAttribute("tooltips",null==b||b.tooltips?"1":"0"),d.setAttribute("connect",null==b||b.connect?"1":"0"),d.setAttribute("arrows",null==b||b.arrows?"1":"0"),
d.setAttribute("fold",null==b||b.foldingEnabled?"1":"0"));d.setAttribute("pageScale",null!=b&&null!=b.pageScale?b.pageScale:mxGraph.prototype.pageScale);m=null!=b?b.pageFormat:"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:mxSettings.getPageFormat();null!=m&&(d.setAttribute("pageWidth",m.width),d.setAttribute("pageHeight",m.height));null!=b&&(null!=b.background&&d.setAttribute("background",b.background),n=this.getBackgroundImageObject(b.backgroundImage,
-n,v),null!=n&&d.setAttribute("backgroundImage",JSON.stringify(n)));d.setAttribute("math",(null==b?this.defaultMathEnabled:b.mathEnabled)?"1":"0");d.setAttribute("shadow",null!=b&&b.shadowVisible?"1":"0");null==b||null==b.adaptiveColors?d.removeAttribute("adaptiveColors"):d.setAttribute("adaptiveColors",b.adaptiveColors);null!=b&&null!=b.extFonts&&0<b.extFonts.length&&d.setAttribute("extFonts",b.extFonts.map(function(p){return p.name+"^"+p.url}).join("|"))};
+n,u),null!=n&&d.setAttribute("backgroundImage",JSON.stringify(n)));d.setAttribute("math",(null==b?this.defaultMathEnabled:b.mathEnabled)?"1":"0");d.setAttribute("shadow",null!=b&&b.shadowVisible?"1":"0");null==b||null==b.adaptiveColors?d.removeAttribute("adaptiveColors"):d.setAttribute("adaptiveColors",b.adaptiveColors);null!=b&&null!=b.extFonts&&0<b.extFonts.length&&d.setAttribute("extFonts",b.extFonts.map(function(p){return p.name+"^"+p.url}).join("|"))};
Graph.prototype.getViewState=function(){return{defaultParent:this.defaultParent,currentRoot:this.view.currentRoot,gridEnabled:this.gridEnabled,gridSize:this.gridSize,guidesEnabled:this.graphHandler.guidesEnabled,foldingEnabled:this.foldingEnabled,shadowVisible:this.shadowVisible,scrollbars:this.scrollbars,pageVisible:this.pageVisible,background:this.background,backgroundImage:this.backgroundImage,pageScale:this.pageScale,pageFormat:this.pageFormat,tooltips:this.tooltipHandler.isEnabled(),connect:this.connectionHandler.isEnabled(),
arrows:this.connectionArrowsEnabled,scale:this.view.scale,scrollLeft:this.container.scrollLeft-this.view.translate.x*this.view.scale,scrollTop:this.container.scrollTop-this.view.translate.y*this.view.scale,translate:this.view.translate.clone(),lastPasteXml:this.lastPasteXml,pasteCounter:this.pasteCounter,mathEnabled:this.mathEnabled,adaptiveColors:this.adaptiveColors,hiddenTags:this.hiddenTags,extFonts:this.extFonts}};
Graph.prototype.setViewState=function(b,d){if(null!=b){this.lastPasteXml=b.lastPasteXml;this.pasteCounter=b.pasteCounter||0;this.mathEnabled=b.mathEnabled;this.adaptiveColors=b.adaptiveColors;this.gridEnabled=null!=urlParams.grid?"0"!=urlParams.grid:b.gridEnabled;this.gridSize=b.gridSize;this.graphHandler.guidesEnabled=b.guidesEnabled;this.foldingEnabled=b.foldingEnabled;this.setShadowVisible(b.shadowVisible,!1);this.scrollbars=b.scrollbars;this.pageVisible=!this.isViewer()&&(null!=urlParams.pv?"0"!=
@@ -4318,42 +4322,42 @@ n.parentNode.removeChild(n)}for(d=0;d<this.extFonts.length;d++)this.addExtFont(t
this.defaultGridEnabled,this.gridSize=mxGraph.prototype.gridSize,this.pageScale=mxGraph.prototype.pageScale,this.pageFormat="undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:mxSettings.getPageFormat(),this.pageVisible=this.defaultPageVisible,this.backgroundImage=this.background=null,this.scrollbars=this.defaultScrollbars,this.graphHandler.guidesEnabled=!0,this.foldingEnabled=this.defaultFoldingEnabled,this.setShadowVisible(!1,!1),this.defaultParent=null,this.setTooltips(!0),
this.setConnectable(this.defaultConnectable),this.lastPasteXml=null,this.pasteCounter=0,this.mathEnabled=this.defaultMathEnabled,this.adaptiveColors=null,this.connectionArrowsEnabled=this.defaultConnectionArrowsEnabled,this.hiddenTags=[],this.extFonts=[];this.setAdaptiveColors(this.adaptiveColors);this.preferPageSize=this.pageBreaksVisible=this.pageVisible;this.fireEvent(new mxEventObject("viewStateChanged","state",b))};
Graph.prototype.setScrollbarPositions=function(b,d,m){null!=b&&null!=b.scrollLeft&&null!=b.scrollTop&&(this.container.scrollLeft=d*this.view.scale+b.scrollLeft,this.container.scrollTop=m*this.view.scale+b.scrollTop)};
-Graph.prototype.addExtFont=function(b,d,m){if(b&&d){var n="extFont_"+b;if(null==document.getElementById(n))if(0==d.indexOf(Editor.GOOGLE_FONTS))mxClient.link("stylesheet",d,null,n);else{document.getElementsByTagName("head");var v=document.createElement("style");v.appendChild(document.createTextNode('@font-face {\n\tfont-family: "'+b+'";\n\tsrc: url("'+d+'");\n}'));v.setAttribute("id",n);document.getElementsByTagName("head")[0].appendChild(v)}if(!m){null==this.extFonts&&(this.extFonts=[]);m=this.extFonts;
-n=!0;for(v=0;v<m.length;v++)if(m[v].name==b){n=!1;break}n&&this.extFonts.push({name:b,url:d})}}};
+Graph.prototype.addExtFont=function(b,d,m){if(b&&d){var n="extFont_"+b;if(null==document.getElementById(n))if(0==d.indexOf(Editor.GOOGLE_FONTS))mxClient.link("stylesheet",d,null,n);else{document.getElementsByTagName("head");var u=document.createElement("style");u.appendChild(document.createTextNode('@font-face {\n\tfont-family: "'+b+'";\n\tsrc: url("'+d+'");\n}'));u.setAttribute("id",n);document.getElementsByTagName("head")[0].appendChild(u)}if(!m){null==this.extFonts&&(this.extFonts=[]);m=this.extFonts;
+n=!0;for(u=0;u<m.length;u++)if(m[u].name==b){n=!1;break}n&&this.extFonts.push({name:b,url:d})}}};
EditorUi.prototype.updatePageRoot=function(b,d){if(null==b.root){d=this.editor.extractGraphModel(b.node,null,d);var m=Editor.extractParserError(d);if(m)throw Error(m);null!=d?(b.graphModelNode=d,b.viewState=this.editor.graph.createViewState(d),m=new mxCodec(d.ownerDocument),b.root=m.decode(d).root):(b.root=this.editor.graph.model.createRoot(),b.root.setId("0"),b.root.children[0].setId("1"),b.needsUpdate=!0)}else if(null==b.viewState){if(null==b.graphModelNode){d=this.editor.extractGraphModel(b.node);
if(m=Editor.extractParserError(d))throw Error(m);null!=d&&(b.graphModelNode=d)}null!=b.graphModelNode&&(b.viewState=this.editor.graph.createViewState(b.graphModelNode))}if(null==b.root.children||0==b.root.children.length)d=new mxCell,d.setId("1"),b.root.insert(d),b.needsUpdate=!0;return b};EditorUi.prototype.getDiagramSnapshot=function(){return{node:this.editor.getGraphXml(),page:this.currentPage}};
-EditorUi.prototype.updateDiagramData=function(b,d){if(null==this.getPageIndex(b.page))this.insertPage(null,null,d);else{var m=new mxCodec(b.node.ownerDocument),n=new mxGraphModel;m.decode(b.node,n);m=new mxCodec(d.ownerDocument);var v=new mxGraphModel;m.decode(d,v);this.selectPage(b.page);d=this.diffCells(n.root,v.root);this.patchPage(b.page,d,null,!0)}};EditorUi.prototype.replaceDiagramData=function(b){this.editor.graph.model.execute(new ReplaceDiagram(this,mxUtils.parseXml(b).documentElement))};
-EditorUi.prototype.selectPage=function(b,d,m){try{if(b!=this.currentPage){var n=this.editor.graph;n.isEditing()&&n.stopEditing(!1);d=null!=d?d:!1;n.isMouseDown=!1;n.reset();var v=n.model.createUndoableEdit();v.ignoreEdit=!0;var p=new SelectPage(this,b,m);p.execute();v.add(p);v.notify();d||n.model.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",v))}}catch(z){this.handleError(z)}};
+EditorUi.prototype.updateDiagramData=function(b,d){if(null==this.getPageIndex(b.page))this.insertPage(null,null,d);else{var m=new mxCodec(b.node.ownerDocument),n=new mxGraphModel;m.decode(b.node,n);m=new mxCodec(d.ownerDocument);var u=new mxGraphModel;m.decode(d,u);this.selectPage(b.page);d=this.diffCells(n.root,u.root);this.patchPage(b.page,d,null,!0)}};EditorUi.prototype.replaceDiagramData=function(b){this.editor.graph.model.execute(new ReplaceDiagram(this,mxUtils.parseXml(b).documentElement))};
+EditorUi.prototype.selectPage=function(b,d,m){try{if(b!=this.currentPage){var n=this.editor.graph;n.isEditing()&&n.stopEditing(!1);d=null!=d?d:!1;n.isMouseDown=!1;n.reset();var u=n.model.createUndoableEdit();u.ignoreEdit=!0;var p=new SelectPage(this,b,m);p.execute();u.add(p);u.notify();d||n.model.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",u))}}catch(z){this.handleError(z)}};
EditorUi.prototype.selectNextPage=function(b){var d=this.currentPage;null!=d&&null!=this.pages&&(d=mxUtils.indexOf(this.pages,d),b?this.selectPage(this.pages[mxUtils.mod(d+1,this.pages.length)]):b||this.selectPage(this.pages[mxUtils.mod(d-1,this.pages.length)]))};
EditorUi.prototype.insertPage=function(b,d,m){this.editor.graph.isEnabled()&&(this.editor.graph.isEditing()&&this.editor.graph.stopEditing(!1),b=null!=b?b:this.createPage(null,this.createPageId(),m),d=null!=d?d:this.pages.length,d=new ChangePage(this,b,b,d),this.editor.graph.model.execute(d));return b};EditorUi.prototype.createPageId=function(){do var b=Editor.guid();while(null!=this.getPageById(b));return b};
EditorUi.prototype.createPage=function(b,d,m){d=new DiagramPage((null!=this.fileNode?this.fileNode.ownerDocument:document).createElement("diagram"),d);d.setName(null!=b?b:this.createPageName());this.initDiagramNode(d,m);return d};EditorUi.prototype.createPageName=function(){for(var b={},d=0;d<this.pages.length;d++){var m=this.pages[d].getName();null!=m&&0<m.length&&(b[m]=m)}d=this.pages.length;do m=mxResources.get("pageWithNumber",[++d]);while(null!=b[m]);return m};
-EditorUi.prototype.removePage=function(b){try{var d=this.editor.graph,m=mxUtils.indexOf(this.pages,b);if(d.isEnabled()&&0<=m){this.editor.graph.isEditing()&&this.editor.graph.stopEditing(!1);d.model.beginUpdate();try{var n=this.currentPage;n==b&&1<this.pages.length?(m==this.pages.length-1?m--:m++,n=this.pages[m]):1>=this.pages.length&&(n=this.insertPage(),d.model.execute(new RenamePage(this,n,mxResources.get("pageWithNumber",[1]))));d.model.execute(new ChangePage(this,b,n))}finally{d.model.endUpdate()}}}catch(v){this.handleError(v)}return b};
-EditorUi.prototype.duplicatePage=function(b,d){var m=null;try{var n=this.editor.graph;if(n.isEnabled()){n.isEditing()&&n.stopEditing();var v=b.node.cloneNode(!1);v.removeAttribute("id");var p={},z=n.createCellLookup([n.model.root]);m=new DiagramPage(v);m.root=n.cloneCell(n.model.root,null,p);var G=new mxGraphModel;G.prefix=Editor.guid()+"-";G.setRoot(m.root);n.updateCustomLinks(n.createCellMapping(p,z),[m.root]);m.viewState=b==this.currentPage?n.getViewState():b.viewState;this.initDiagramNode(m);
+EditorUi.prototype.removePage=function(b){try{var d=this.editor.graph,m=mxUtils.indexOf(this.pages,b);if(d.isEnabled()&&0<=m){this.editor.graph.isEditing()&&this.editor.graph.stopEditing(!1);d.model.beginUpdate();try{var n=this.currentPage;n==b&&1<this.pages.length?(m==this.pages.length-1?m--:m++,n=this.pages[m]):1>=this.pages.length&&(n=this.insertPage(),d.model.execute(new RenamePage(this,n,mxResources.get("pageWithNumber",[1]))));d.model.execute(new ChangePage(this,b,n))}finally{d.model.endUpdate()}}}catch(u){this.handleError(u)}return b};
+EditorUi.prototype.duplicatePage=function(b,d){var m=null;try{var n=this.editor.graph;if(n.isEnabled()){n.isEditing()&&n.stopEditing();var u=b.node.cloneNode(!1);u.removeAttribute("id");var p={},z=n.createCellLookup([n.model.root]);m=new DiagramPage(u);m.root=n.cloneCell(n.model.root,null,p);var G=new mxGraphModel;G.prefix=Editor.guid()+"-";G.setRoot(m.root);n.updateCustomLinks(n.createCellMapping(p,z),[m.root]);m.viewState=b==this.currentPage?n.getViewState():b.viewState;this.initDiagramNode(m);
m.viewState.scale=1;delete m.viewState.scrollLeft;delete m.viewState.scrollTop;delete m.viewState.currentRoot;delete m.viewState.defaultParent;m.setName(d);m=this.insertPage(m,mxUtils.indexOf(this.pages,b)+1)}}catch(U){this.handleError(U)}return m};EditorUi.prototype.initDiagramNode=function(b,d){null==d&&(d=(new mxCodec(mxUtils.createXmlDocument())).encode(new mxGraphModel(b.root)));this.editor.graph.saveViewState(b.viewState,d);EditorUi.removeChildNodes(b.node);b.node.appendChild(d)};
-EditorUi.prototype.clonePages=function(b){for(var d=[],m=[],n=0;n<b.length;n++)try{m.push(this.clonePage(b[n]))}catch(v){d.push(mxResources.get("pageWithNumber",[n+1])+": "+v.toString())}if(0<d.length){b=Error(d.join("\n"));try{0<m.length&&(b.fallbackFileData=this.getXmlForPages(m))}catch(v){}throw b;}return m};
+EditorUi.prototype.clonePages=function(b){for(var d=[],m=[],n=0;n<b.length;n++)try{m.push(this.clonePage(b[n]))}catch(u){d.push(mxResources.get("pageWithNumber",[n+1])+": "+u.toString())}if(0<d.length){b=Error(d.join("\n"));try{0<m.length&&(b.fallbackFileData=this.getXmlForPages(m))}catch(u){}throw b;}return m};
EditorUi.prototype.clonePage=function(b){this.updatePageRoot(b);var d=new DiagramPage(b.node.cloneNode(!0)),m=b==this.currentPage?this.editor.graph.getViewState():b.viewState;d.viewState=mxUtils.clone(m,EditorUi.transientViewStateProperties);d.root=this.editor.graph.model.cloneCell(b.root,null,!0);d.diagramModified=b.diagramModified;return d};
EditorUi.prototype.renamePage=function(b){if(this.editor.graph.isEnabled()){var d=new FilenameDialog(this,b.getName(),mxResources.get("rename"),mxUtils.bind(this,function(m){null!=m&&0<m.length&&this.editor.graph.model.execute(new RenamePage(this,b,m))}),mxResources.get("rename"));this.showDialog(d.container,300,80,!0,!0);d.init()}return b};EditorUi.prototype.movePage=function(b,d){this.editor.graph.model.execute(new MovePage(this,b,d))};
EditorUi.prototype.createTabContainer=function(){var b=document.createElement("div");b.className="geTabContainer geTabItem";return b};
-EditorUi.prototype.updateTabContainer=function(){if(null!=this.tabContainer&&!this.isTabContainerVisible())this.tabContainer.style.display="none";else if(null!=this.tabContainer&&null!=this.pages){this.tabContainer.style.display="";var b=this.editor.graph,d=document.createElement("div");d.className="geTabScroller";for(var m=null,n=null,v=0;v<this.pages.length;v++)mxUtils.bind(this,function(z,G){G.setAttribute("draggable","true");G.className="geTab gePageTab";mxEvent.addListener(G,"dragstart",mxUtils.bind(this,
+EditorUi.prototype.updateTabContainer=function(){if(null!=this.tabContainer&&!this.isTabContainerVisible())this.tabContainer.style.display="none";else if(null!=this.tabContainer&&null!=this.pages){this.tabContainer.style.display="";var b=this.editor.graph,d=document.createElement("div");d.className="geTabScroller";for(var m=null,n=null,u=0;u<this.pages.length;u++)mxUtils.bind(this,function(z,G){G.setAttribute("draggable","true");G.className="geTab gePageTab";mxEvent.addListener(G,"dragstart",mxUtils.bind(this,
function(U){b.isEnabled()?(mxClient.IS_FF&&U.dataTransfer.setData("Text","<diagram/>"),m=z):mxEvent.consume(U)}));mxEvent.addListener(G,"dragend",mxUtils.bind(this,function(U){m=null;U.stopPropagation();U.preventDefault()}));mxEvent.addListener(G,"dragover",mxUtils.bind(this,function(U){null!=m&&(U.dataTransfer.dropEffect="move");U.stopPropagation();U.preventDefault()}));mxEvent.addListener(G,"drop",mxUtils.bind(this,function(U){null!=m&&z!=m&&this.movePage(m,z);U.stopPropagation();U.preventDefault()}));
-this.pages[z]==this.currentPage&&(n=G);d.appendChild(G)})(v,this.createTabForPage(this.pages[v],v+1));v=null!=this.tabScroller?this.tabScroller.scrollLeft:0;this.tabContainer.innerText="";this.isPageInsertTabVisible()&&this.tabContainer.appendChild(this.createPageInsertTab());"simple"!=Editor.currentTheme&&(this.pageMenuTab=this.createPageMenuTab(),this.tabContainer.appendChild(this.pageMenuTab));this.tabContainer.appendChild(d);this.leftScrollTab=this.createLeftScrollTab();this.tabContainer.appendChild(this.leftScrollTab);
-this.rightScrollTab=this.createRightScrollTab();this.tabContainer.appendChild(this.rightScrollTab);this.tabScroller=d;this.tabScroller.scrollLeft=v;this.checkTabScrollerOverflow();mxEvent.addListener(this.tabScroller,"scroll",mxUtils.bind(this,function(z){this.checkTabScrollerOverflow()}));var p=document.createElement("a");p.href="https://github.com/jgraph/drawio";p.target="_blank";p.style.cssText="margin-left:auto;display:flex;align-items:center;padding:0 8px;opacity:0.5;flex-shrink:0";v=document.createElement("img");
-v.src=IMAGE_PATH+(Editor.isDarkMode()?"/github-logo-white.svg":"/github-logo.svg");v.style.cssText="width:18px;height:18px";v.setAttribute("title","jgraph/drawio");p.appendChild(v);mxEvent.addListener(p,"mouseenter",function(){p.style.opacity="1"});mxEvent.addListener(p,"mouseleave",function(){p.style.opacity="0.5"});this.tabContainer.appendChild(p);null!=n&&(n.classList.add("geActivePage"),n.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}))}};
+this.pages[z]==this.currentPage&&(n=G);d.appendChild(G)})(u,this.createTabForPage(this.pages[u],u+1));u=null!=this.tabScroller?this.tabScroller.scrollLeft:0;this.tabContainer.innerText="";this.isPageInsertTabVisible()&&this.tabContainer.appendChild(this.createPageInsertTab());"simple"!=Editor.currentTheme&&(this.pageMenuTab=this.createPageMenuTab(),this.tabContainer.appendChild(this.pageMenuTab));this.tabContainer.appendChild(d);this.leftScrollTab=this.createLeftScrollTab();this.tabContainer.appendChild(this.leftScrollTab);
+this.rightScrollTab=this.createRightScrollTab();this.tabContainer.appendChild(this.rightScrollTab);this.tabScroller=d;this.tabScroller.scrollLeft=u;this.checkTabScrollerOverflow();mxEvent.addListener(this.tabScroller,"scroll",mxUtils.bind(this,function(z){this.checkTabScrollerOverflow()}));var p=document.createElement("a");p.href="https://github.com/jgraph/drawio";p.target="_blank";p.style.cssText="margin-left:auto;display:flex;align-items:center;padding:0 8px;opacity:0.5;flex-shrink:0";u=document.createElement("img");
+u.src=IMAGE_PATH+(Editor.isDarkMode()?"/github-logo-white.svg":"/github-logo.svg");u.style.cssText="width:18px;height:18px";u.setAttribute("title","jgraph/drawio");p.appendChild(u);mxEvent.addListener(p,"mouseenter",function(){p.style.opacity="1"});mxEvent.addListener(p,"mouseleave",function(){p.style.opacity="0.5"});this.tabContainer.appendChild(p);null!=n&&(n.classList.add("geActivePage"),n.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}))}};
EditorUi.prototype.checkTabScrollerOverflow=function(){null!=this.tabScroller&&null!=this.tabContainer&&2<this.tabContainer.children.length&&(this.tabScroller.scrollWidth>this.tabScroller.offsetWidth?(this.leftScrollTab.style.display="",this.rightScrollTab.style.display="",0==this.tabScroller.scrollLeft?this.leftScrollTab.classList.add("mxDisabled"):this.leftScrollTab.classList.remove("mxDisabled"),Math.ceil(this.tabScroller.scrollLeft)+this.tabScroller.offsetWidth>=this.tabScroller.scrollWidth?this.rightScrollTab.classList.add("mxDisabled"):
this.rightScrollTab.classList.remove("mxDisabled")):(this.leftScrollTab.style.display="none",this.rightScrollTab.style.display="none"))};EditorUi.prototype.isPageInsertTabVisible=function(){return 1==urlParams.embed||null!=this.getCurrentFile()&&this.getCurrentFile().isEditable()};
EditorUi.prototype.createTab=function(){var b=document.createElement("div");b.className="geTab";mxEvent.addListener(b,"click",mxUtils.bind(this,function(d){b.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})}));return b};EditorUi.prototype.getShortPageName=function(b){var d=null;null!=b&&(d=b.getName(),null!=d&&36<d.length&&(d=d.substring(0,34)+"..."));return d};
EditorUi.prototype.createControlTab=function(b,d,m){var n=this.createTab();n.className="geTab geControlTab";null!=b&&n.setAttribute("title",b);b=document.createElement("div");b.className="geButton";b.style.backgroundImage="url("+d+")";n.appendChild(b);mxEvent.addListener(n,"click",m);return n};EditorUi.prototype.createPageInsertTab=function(){return this.createControlTab(mxResources.get("insertPage"),Editor.plusImage,mxUtils.bind(this,function(b){try{this.insertPage()}catch(d){this.handleError(d)}mxEvent.consume(b)}))};
EditorUi.prototype.createLeftScrollTab=function(){return this.createControlTab(null,Editor.chevronLeftImage,mxUtils.bind(this,function(b){var d=Math.max(60,this.tabScroller.clientWidth/2);null!=this.tabScroller.scrollBy?this.tabScroller.scrollBy({left:-d,top:0,behavior:"smooth"}):this.tabScroller.scrollLeft-=d;mxEvent.consume(b)}))};
EditorUi.prototype.createRightScrollTab=function(){return this.createControlTab(null,Editor.chevronRightImage,mxUtils.bind(this,function(b){var d=Math.max(60,this.tabScroller.clientWidth/2);null!=this.tabScroller.scrollBy?this.tabScroller.scrollBy({left:d,top:0,behavior:"smooth"}):this.tabScroller.scrollLeft+=d;mxEvent.consume(b)}))};
-EditorUi.prototype.createPageMenuTab=function(){return this.createControlTab(mxResources.get("pages"),Editor.menuImage,mxUtils.bind(this,function(b){this.editor.graph.popupMenuHandler.hideMenu();var d=new mxPopupMenu(mxUtils.bind(this,function(v,p){this.menus.get("pages").funct(v,p)}));d.smartSeparators=!0;d.showDisabled=!0;d.autoExpand=!0;d.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(d,arguments);d.destroy()});var m=mxEvent.getClientX(b),n=mxEvent.getClientY(b);d.popup(m,
-n,null,b);this.setCurrentMenu(d);mxEvent.consume(b)}))};EditorUi.prototype.createTabForPage=function(b,d){var m=this.createTab(),n=b.getName()||mxResources.get("untitled"),v=b.getId();m.setAttribute("title",n+(null!=v?" ("+v+")":"")+" ["+d+"]");d=document.createElement("span");d.style.maxWidth="160px";d.style.textOverflow="ellipsis";d.style.overflow="hidden";mxUtils.write(d,n);m.appendChild(d);this.addTabListeners(b,m);return m};
-EditorUi.prototype.addTabListeners=function(b,d){mxEvent.disableContextMenu(d);var m=this.editor.graph;mxEvent.addListener(d,"dblclick",mxUtils.bind(this,function(U){this.renamePage(b);mxEvent.consume(U)}));var n=document.createElement("div");n.style.backgroundImage="url("+Editor.thinExpandImage+")";n.className="geButton";d.appendChild(n);var v=!1,p=!1,z=mxUtils.bind(this,function(U){v=null!=this.currentMenu;p=b==this.currentPage;this.scrollToPage(b);m.isMouseDown||p||this.selectPage(b)}),G=mxUtils.bind(this,
-function(U){if(!m.isMouseDown&&(p&&(mxEvent.isTouchEvent(U)||mxEvent.getSource(U)==n)||mxEvent.isPopupTrigger(U))&&(m.popupMenuHandler.hideMenu(),this.hideCurrentMenu(),!mxEvent.isTouchEvent(U)||!v)){var E=new mxPopupMenu(this.createPageMenu(b));E.smartSeparators=!0;E.showDisabled=!0;E.autoExpand=!0;E.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(E,arguments);this.resetCurrentMenu();E.destroy()});var R=mxEvent.getClientX(U),N=mxEvent.getClientY(U);E.popup(R,N,null,U);
+EditorUi.prototype.createPageMenuTab=function(){return this.createControlTab(mxResources.get("pages"),Editor.menuImage,mxUtils.bind(this,function(b){this.editor.graph.popupMenuHandler.hideMenu();var d=new mxPopupMenu(mxUtils.bind(this,function(u,p){this.menus.get("pages").funct(u,p)}));d.smartSeparators=!0;d.showDisabled=!0;d.autoExpand=!0;d.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(d,arguments);d.destroy()});var m=mxEvent.getClientX(b),n=mxEvent.getClientY(b);d.popup(m,
+n,null,b);this.setCurrentMenu(d);mxEvent.consume(b)}))};EditorUi.prototype.createTabForPage=function(b,d){var m=this.createTab(),n=b.getName()||mxResources.get("untitled"),u=b.getId();m.setAttribute("title",n+(null!=u?" ("+u+")":"")+" ["+d+"]");d=document.createElement("span");d.style.maxWidth="160px";d.style.textOverflow="ellipsis";d.style.overflow="hidden";mxUtils.write(d,n);m.appendChild(d);this.addTabListeners(b,m);return m};
+EditorUi.prototype.addTabListeners=function(b,d){mxEvent.disableContextMenu(d);var m=this.editor.graph;mxEvent.addListener(d,"dblclick",mxUtils.bind(this,function(U){this.renamePage(b);mxEvent.consume(U)}));var n=document.createElement("div");n.style.backgroundImage="url("+Editor.thinExpandImage+")";n.className="geButton";d.appendChild(n);var u=!1,p=!1,z=mxUtils.bind(this,function(U){u=null!=this.currentMenu;p=b==this.currentPage;this.scrollToPage(b);m.isMouseDown||p||this.selectPage(b)}),G=mxUtils.bind(this,
+function(U){if(!m.isMouseDown&&(p&&(mxEvent.isTouchEvent(U)||mxEvent.getSource(U)==n)||mxEvent.isPopupTrigger(U))&&(m.popupMenuHandler.hideMenu(),this.hideCurrentMenu(),!mxEvent.isTouchEvent(U)||!u)){var E=new mxPopupMenu(this.createPageMenu(b));E.smartSeparators=!0;E.showDisabled=!0;E.autoExpand=!0;E.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(E,arguments);this.resetCurrentMenu();E.destroy()});var R=mxEvent.getClientX(U),N=mxEvent.getClientY(U);E.popup(R,N,null,U);
this.setCurrentMenu(E,d)}mxEvent.consume(U)});mxEvent.addGestureListeners(n,z,null,G);mxEvent.addGestureListeners(d,z,null,G)};
EditorUi.prototype.createPageMenu=function(b,d){return mxUtils.bind(this,function(m,n){1!=urlParams.embed&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=this.getServiceName()||navigator.standalone||m.addItem(mxResources.get("openInNewWindow"),null,mxUtils.bind(this,function(){this.editor.editAsNew(this.getFileData(!0,null,null,null,!0,!0))}),n));this.editor.graph.isEnabled()&&(m.addItem(mxResources.get("duplicate"),null,mxUtils.bind(this,function(){this.duplicatePage(b,mxResources.get("copyOf",
-[b.getName()]))}),n),m.addSeparator(n),this.currentPage==b&&1<this.pages.length&&this.menus.addSubmenu("movePage",m,n,mxResources.get("move")),m.addItem(mxResources.get("delete"),null,mxUtils.bind(this,function(){this.removePage(b)}),n),m.addItem(mxResources.get("rename")+"...",null,mxUtils.bind(this,function(){this.renamePage(b,d)}),n))})};(function(){var b=Graph.prototype.foldCells;Graph.prototype.foldCells=function(n,v,p,z,G){v=null!=v?v:!1;null==p&&(p=this.getFoldableCells(this.getSelectionCells(),n));this.stopEditing();this.model.beginUpdate();try{for(var U=p.slice(),E=0;E<p.length;E++)"1"==mxUtils.getValue(this.getCurrentCellStyle(p[E]),"treeFolding","0")&&this.foldTreeCell(n,p[E]);p=U;p=b.apply(this,arguments)}finally{this.model.endUpdate()}return p};Graph.prototype.foldTreeCell=function(n,v){this.model.beginUpdate();try{var p=
-[];this.traverse(v,!0,mxUtils.bind(this,function(G,U){var E=null!=U&&this.isTreeEdge(U);E&&p.push(U);G==v||null!=U&&!E||p.push(G);return(null==U||E)&&(G==v||!this.model.isCollapsed(G))}));this.model.setCollapsed(v,n);for(var z=0;z<p.length;z++)this.model.setVisible(p[z],!n)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(n){return!this.isEdgeIgnored(n)};Graph.prototype.getTreeEdges=function(n,v,p,z,G,U){return this.model.filterCells(this.getEdges(n,v,p,z,G,U),mxUtils.bind(this,
-function(E){return this.isTreeEdge(E)}))};Graph.prototype.getIncomingTreeEdges=function(n,v){return this.getTreeEdges(n,v,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(n,v){return this.getTreeEdges(n,v,!1,!0,!1)};var d=EditorUi.prototype.init;EditorUi.prototype.init=function(){d.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function n(ba){return q.isVertex(ba)&&p(ba)}function v(ba){var l=!1;null!=ba&&
+[b.getName()]))}),n),m.addSeparator(n),this.currentPage==b&&1<this.pages.length&&this.menus.addSubmenu("movePage",m,n,mxResources.get("move")),m.addItem(mxResources.get("delete"),null,mxUtils.bind(this,function(){this.removePage(b)}),n),m.addItem(mxResources.get("rename")+"...",null,mxUtils.bind(this,function(){this.renamePage(b,d)}),n))})};(function(){var b=Graph.prototype.foldCells;Graph.prototype.foldCells=function(n,u,p,z,G){u=null!=u?u:!1;null==p&&(p=this.getFoldableCells(this.getSelectionCells(),n));this.stopEditing();this.model.beginUpdate();try{for(var U=p.slice(),E=0;E<p.length;E++)"1"==mxUtils.getValue(this.getCurrentCellStyle(p[E]),"treeFolding","0")&&this.foldTreeCell(n,p[E]);p=U;p=b.apply(this,arguments)}finally{this.model.endUpdate()}return p};Graph.prototype.foldTreeCell=function(n,u){this.model.beginUpdate();try{var p=
+[];this.traverse(u,!0,mxUtils.bind(this,function(G,U){var E=null!=U&&this.isTreeEdge(U);E&&p.push(U);G==u||null!=U&&!E||p.push(G);return(null==U||E)&&(G==u||!this.model.isCollapsed(G))}));this.model.setCollapsed(u,n);for(var z=0;z<p.length;z++)this.model.setVisible(p[z],!n)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(n){return!this.isEdgeIgnored(n)};Graph.prototype.getTreeEdges=function(n,u,p,z,G,U){return this.model.filterCells(this.getEdges(n,u,p,z,G,U),mxUtils.bind(this,
+function(E){return this.isTreeEdge(E)}))};Graph.prototype.getIncomingTreeEdges=function(n,u){return this.getTreeEdges(n,u,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(n,u){return this.getTreeEdges(n,u,!1,!0,!1)};var d=EditorUi.prototype.init;EditorUi.prototype.init=function(){d.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function n(ba){return q.isVertex(ba)&&p(ba)}function u(ba){var l=!1;null!=ba&&
(l="1"==k.getCurrentCellStyle(ba).treeMoving);return l}function p(ba){var l=!1;null!=ba&&(ba=q.getParent(ba),l=k.view.getState(ba),l="tree"==(null!=l?l.style:k.getCellStyle(ba)).containerType);return l}function z(ba){var l=!1;null!=ba&&(ba=q.getParent(ba),l=k.view.getState(ba),k.view.getState(ba),l=null!=(null!=l?l.style:k.getCellStyle(ba)).childLayout);return l}function G(ba){ba=k.view.getState(ba);if(null!=ba){var l=k.getIncomingTreeEdges(ba.cell);if(0<l.length&&(l=k.view.getState(l[0]),null!=l&&
(l=l.absolutePoints,null!=l&&0<l.length&&(l=l[l.length-1],null!=l)))){if(l.y==ba.y&&Math.abs(l.x-ba.getCenterX())<ba.width/2)return mxConstants.DIRECTION_SOUTH;if(l.y==ba.y+ba.height&&Math.abs(l.x-ba.getCenterX())<ba.width/2)return mxConstants.DIRECTION_NORTH;if(l.x>ba.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function U(ba,l){l=null!=l?l:!0;k.model.beginUpdate();try{var x=k.model.getParent(ba),J=k.getIncomingTreeEdges(ba),L=k.cloneCells([J[0],ba]);k.model.setTerminal(L[0],
k.model.getTerminal(J[0],!0),!0);var T=G(ba),Y=x.geometry;T==mxConstants.DIRECTION_SOUTH||T==mxConstants.DIRECTION_NORTH?L[1].geometry.x+=l?ba.geometry.width+10:-L[1].geometry.width-10:L[1].geometry.y+=l?ba.geometry.height+10:-L[1].geometry.height-10;k.view.currentRoot!=x&&(L[1].geometry.x-=Y.x,L[1].geometry.y-=Y.y);var aa=k.view.getState(ba),S=k.view.scale;if(null!=aa){var Z=mxRectangle.fromRectangle(aa);T==mxConstants.DIRECTION_SOUTH||T==mxConstants.DIRECTION_NORTH?Z.x+=(l?ba.geometry.width+10:
@@ -4372,18 +4376,18 @@ function(ba){var l=k.getSelectionCell();k.isEnabled()&&null!=l&&(ba=mxEvent.isCo
!0)),null!=x))for(var J=0;J<x.length;J++)ba.push(k.model.getTerminal(x[J],!1));0==ba.length&&(ba=k.model.getChildren(k.model.getParent(l)));k.setSelectionCells(ba)}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+S");var D=k.removeCells;k.removeCells=function(ba,l){l=null!=l?l:!0;null==ba&&(ba=this.getDeletableCells(this.getSelectionCells()));l&&(ba=this.getDeletableCells(this.addAllEdges(ba)));for(var x=[],J=0;J<ba.length;J++){var L=ba[J];q.isEdge(L)&&p(L)&&(x.push(L),L=q.getTerminal(L,!1));if(n(L)){var T=
[];k.traverse(L,!0,function(Y,aa){var S=null!=aa&&k.isTreeEdge(aa);S&&T.push(aa);(null==aa||S)&&T.push(Y);return null==aa||S});0<T.length&&(x=x.concat(T),L=k.getIncomingTreeEdges(ba[J]),ba=ba.concat(L))}else null!=L&&x.push(ba[J])}ba=x;return D.apply(this,arguments)};g.hoverIcons.getStateAt=function(ba,l,x){return n(ba.cell)?null:this.graph.view.getState(this.graph.getCellAt(l,x))};var H=k.duplicateCells;k.duplicateCells=function(ba,l){ba=null!=ba?ba:this.getSelectionCells();for(var x=ba.slice(0),
J=0;J<x.length;J++){var L=k.view.getState(x[J]);if(null!=L&&n(L.cell)){var T=k.getIncomingTreeEdges(L.cell);for(L=0;L<T.length;L++)mxUtils.remove(T[L],ba)}}this.model.beginUpdate();try{var Y=H.call(this,ba,l);if(Y.length==ba.length)for(J=0;J<ba.length;J++)if(n(ba[J])){var aa=k.getIncomingTreeEdges(Y[J]);T=k.getIncomingTreeEdges(ba[J]);if(0==aa.length&&0<T.length){var S=this.cloneCell(T[0]);this.addEdge(S,k.getDefaultParent(),this.model.getTerminal(T[0],!0),Y[J])}}}finally{this.model.endUpdate()}return Y};
-var K=k.moveCells;k.moveCells=function(ba,l,x,J,L,T,Y){for(var aa=null,S=[],Z=0;Z<ba.length;Z++)(v(ba[Z])||n(ba[Z]))&&!z(ba[Z])&&this.isCellCollapsed(ba[Z])?S=S.concat(this.getSubtree(ba[Z])):S.push(ba[Z]);ba=mxUtils.removeDuplicates(S);this.model.beginUpdate();try{S=L;var da=this.getCurrentCellStyle(L);if(null!=ba&&n(L)&&"1"==mxUtils.getValue(da,"treeFolding","0")){for(Z=0;Z<ba.length;Z++)if(n(ba[Z])||k.model.isEdge(ba[Z])&&null==k.model.getTerminal(ba[Z],!0)){L=k.model.getParent(ba[Z]);break}if(null!=
+var K=k.moveCells;k.moveCells=function(ba,l,x,J,L,T,Y){for(var aa=null,S=[],Z=0;Z<ba.length;Z++)(u(ba[Z])||n(ba[Z]))&&!z(ba[Z])&&this.isCellCollapsed(ba[Z])?S=S.concat(this.getSubtree(ba[Z])):S.push(ba[Z]);ba=mxUtils.removeDuplicates(S);this.model.beginUpdate();try{S=L;var da=this.getCurrentCellStyle(L);if(null!=ba&&n(L)&&"1"==mxUtils.getValue(da,"treeFolding","0")){for(Z=0;Z<ba.length;Z++)if(n(ba[Z])||k.model.isEdge(ba[Z])&&null==k.model.getTerminal(ba[Z],!0)){L=k.model.getParent(ba[Z]);break}if(null!=
S&&L!=S&&null!=this.view.getState(ba[0])){var ma=k.getIncomingTreeEdges(ba[0]);if(0<ma.length){var na=k.view.getState(k.model.getTerminal(ma[0],!0));if(null!=na){var ra=k.view.getState(S);null!=ra&&(l=(ra.getCenterX()-na.getCenterX())/k.view.scale,x=(ra.getCenterY()-na.getCenterY())/k.view.scale)}}}}aa=K.apply(this,arguments);if(null!=aa&&null!=ba&&aa.length==ba.length)for(Z=0;Z<aa.length;Z++)if(this.model.isEdge(aa[Z]))n(S)&&0>mxUtils.indexOf(aa,this.model.getTerminal(aa[Z],!0))&&this.model.setTerminal(aa[Z],
S,!0);else if(n(ba[Z])&&(ma=k.getIncomingTreeEdges(ba[Z]),0<ma.length))if(!J)n(S)&&0>mxUtils.indexOf(ba,this.model.getTerminal(ma[0],!0))&&this.model.setTerminal(ma[0],S,!0);else if(0==k.getIncomingTreeEdges(aa[Z]).length){da=S;if(null==da||da==k.model.getParent(ba[Z]))da=k.model.getTerminal(ma[0],!0);J=this.cloneCell(ma[0]);this.addEdge(J,k.getDefaultParent(),da,aa[Z])}}finally{this.model.endUpdate()}return aa};if(null!=g.sidebar){var P=g.sidebar.dropAndConnect;g.sidebar.dropAndConnect=function(ba,
l,x,J){var L=k.model,T=null;L.beginUpdate();try{if(T=P.apply(this,arguments),n(ba))for(var Y=0;Y<T.length;Y++)if(L.isEdge(T[Y])&&null==L.getTerminal(T[Y],!0)){L.setTerminal(T[Y],ba,!0);var aa=k.getCellGeometry(T[Y]);aa.points=null;null!=aa.getTerminalPoint(!0)&&aa.setTerminalPoint(null,!0)}}finally{L.endUpdate()}return T}}var W={67:g.actions.get("selectChildren"),88:g.actions.get("selectDescendants"),80:g.actions.get("selectParent"),83:g.actions.get("selectSiblings")},M={67:g.actions.get("copyStyle"),
86:g.actions.get("pasteStyle")},ca=g.onKeyDown;g.onKeyDown=function(ba){try{var l=k.getSelectionCell();if(k.isEnabled()&&!k.isEditing()&&null!=l){var x=mxEvent.isAltDown(ba)&&mxEvent.isShiftDown(ba)?W[ba.keyCode]:mxEvent.isAltDown(ba)?M[ba.keyCode]:null;null!=x?(x.funct(ba),mxEvent.consume(ba)):n(l)&&(x=null,0<k.getIncomingTreeEdges(l).length&&(9==ba.which?x=mxEvent.isShiftDown(ba)?E(l):R(l):13==ba.which&&(x=U(l,!mxEvent.isShiftDown(ba)))),null!=x&&0<x.length?(1==x.length&&k.model.isEdge(x[0])?k.setSelectionCell(k.model.getTerminal(x[0],
!1)):k.setSelectionCell(x[x.length-1]),null!=g.hoverIcons&&g.hoverIcons.update(k.view.getState(l)),k.startEditingAtCell(l),mxEvent.consume(ba)):37==ba.keyCode?(c(l,mxConstants.DIRECTION_WEST),mxEvent.consume(ba)):38==ba.keyCode?(c(l,mxConstants.DIRECTION_NORTH),mxEvent.consume(ba)):39==ba.keyCode?(c(l,mxConstants.DIRECTION_EAST),mxEvent.consume(ba)):40==ba.keyCode&&(c(l,mxConstants.DIRECTION_SOUTH),mxEvent.consume(ba)))}}catch(J){g.handleError(J)}mxEvent.isConsumed(ba)||ca.apply(this,arguments)};
-var fa=k.connectVertex;k.connectVertex=function(ba,l,x,J,L,T,Y){var aa=k.getIncomingTreeEdges(ba);if(n(ba)){var S=G(ba),Z=S==mxConstants.DIRECTION_EAST||S==mxConstants.DIRECTION_WEST,da=l==mxConstants.DIRECTION_EAST||l==mxConstants.DIRECTION_WEST;return S==l||0==aa.length?R(ba,l):Z==da?E(ba):U(ba,l!=mxConstants.DIRECTION_NORTH&&l!=mxConstants.DIRECTION_WEST)}return fa.apply(this,arguments)};k.getSubtree=function(ba){var l=[ba];!v(ba)&&!n(ba)||z(ba)||k.traverse(ba,!0,function(x,J){var L=null!=J&&k.isTreeEdge(J);
-L&&0>mxUtils.indexOf(l,J)&&l.push(J);(null==J||L)&&0>mxUtils.indexOf(l,x)&&l.push(x);return null==J||L});return l};var ha=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){ha.apply(this,arguments);(v(this.state.cell)||n(this.state.cell))&&!z(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&!this.graph.isCellCollapsed(this.state.cell)?null==this.moveHandle&&(this.moveHandle=mxUtils.createImage(Editor.moveImage),this.moveHandle.setAttribute("title",
+var fa=k.connectVertex;k.connectVertex=function(ba,l,x,J,L,T,Y){var aa=k.getIncomingTreeEdges(ba);if(n(ba)){var S=G(ba),Z=S==mxConstants.DIRECTION_EAST||S==mxConstants.DIRECTION_WEST,da=l==mxConstants.DIRECTION_EAST||l==mxConstants.DIRECTION_WEST;return S==l||0==aa.length?R(ba,l):Z==da?E(ba):U(ba,l!=mxConstants.DIRECTION_NORTH&&l!=mxConstants.DIRECTION_WEST)}return fa.apply(this,arguments)};k.getSubtree=function(ba){var l=[ba];!u(ba)&&!n(ba)||z(ba)||k.traverse(ba,!0,function(x,J){var L=null!=J&&k.isTreeEdge(J);
+L&&0>mxUtils.indexOf(l,J)&&l.push(J);(null==J||L)&&0>mxUtils.indexOf(l,x)&&l.push(x);return null==J||L});return l};var ha=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){ha.apply(this,arguments);(u(this.state.cell)||n(this.state.cell))&&!z(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&!this.graph.isCellCollapsed(this.state.cell)?null==this.moveHandle&&(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),this.redrawMoveHandle(),mxEvent.addGestureListeners(this.moveHandle,mxUtils.bind(this,function(ba){this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(ba),mxEvent.getClientY(ba),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=
mxEvent.isMouseEvent(ba);this.graph.isMouseDown=!0;g.hoverIcons.reset();mxEvent.consume(ba)}))):null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)};var ea=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){ea.apply(this,arguments);this.redrawMoveHandle()};mxVertexHandler.prototype.redrawMoveHandle=function(){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 ka=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(ba){ka.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.display=ba?"":"none")};var pa=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(ba,l){pa.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),
-this.moveHandle=null)}};if("undefined"!==typeof Sidebar){var m=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var n=m.apply(this,arguments),v=this.graph,p=this;return n.concat([this.addEntry("tree container",function(){var z=new mxCell("Tree Container",new mxGeometry(0,0,400,320),"swimlane;startSize=20;horizontal=1;containerType=tree;");z.vertex=!0;var G=new mxCell("Parent",new mxGeometry(140,60,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');
+this.moveHandle=null)}};if("undefined"!==typeof Sidebar){var m=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var n=m.apply(this,arguments),u=this.graph,p=this;return n.concat([this.addEntry("tree container",function(){var z=new mxCell("Tree Container",new mxGeometry(0,0,400,320),"swimlane;startSize=20;horizontal=1;containerType=tree;");z.vertex=!0;var G=new mxCell("Parent",new mxGeometry(140,60,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');
G.vertex=!0;var U=new mxCell("Child",new mxGeometry(140,140,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');U.vertex=!0;var E=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");E.geometry.relative=!0;E.edge=!0;G.insertEdge(E,!0);U.insertEdge(E,!1);z.insert(E);z.insert(G);z.insert(U);
return p.createVertexTemplateFromCells([z],z.geometry.width,z.geometry.height,z.value)}),this.addEntry("tree mindmap mindmaps central idea branch topic",function(){var z=new mxCell("Mindmap",new mxGeometry(0,0,420,126),"swimlane;startSize=20;horizontal=1;containerType=tree;");z.vertex=!0;var G=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,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
G.vertex=!0;var U=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,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');U.vertex=!0;var E=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");
@@ -4395,9 +4399,9 @@ z.vertex=!0;return p.createVertexTemplateFromCells([z],z.geometry.width,z.geomet
z.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");G.geometry.setTerminalPoint(new mxPoint(-40,40),!0);G.geometry.relative=!0;G.edge=!0;z.insertEdge(G,!1);return p.createVertexTemplateFromCells([z,G],z.geometry.width,z.geometry.height,z.value)}),this.addEntry("tree mindmap mindmaps sub topic",function(){var z=new mxCell("Sub Topic",new mxGeometry(0,0,80,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,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');z.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");
G.geometry.setTerminalPoint(new mxPoint(-40,40),!0);G.geometry.relative=!0;G.edge=!0;z.insertEdge(G,!1);return p.createVertexTemplateFromCells([z,G],z.geometry.width,z.geometry.height,z.value)}),this.addEntry("tree orgchart organization division",function(){var z=new mxCell("Orgchart",new mxGeometry(0,0,280,220),'swimlane;startSize=20;horizontal=1;containerType=tree;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');z.vertex=!0;var G=new mxCell("Organization",new mxGeometry(80,
-40,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');v.setAttributeForCell(G,"treeRoot","1");G.vertex=!0;var U=new mxCell("Division",new mxGeometry(20,140,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');U.vertex=!0;var E=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");
+40,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');u.setAttributeForCell(G,"treeRoot","1");G.vertex=!0;var U=new mxCell("Division",new mxGeometry(20,140,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');U.vertex=!0;var E=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");
E.geometry.relative=!0;E.edge=!0;G.insertEdge(E,!0);U.insertEdge(E,!1);var R=new mxCell("Division",new mxGeometry(160,140,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');R.vertex=!0;var N=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");N.geometry.relative=
-!0;N.edge=!0;G.insertEdge(N,!0);R.insertEdge(N,!1);z.insert(E);z.insert(N);z.insert(G);z.insert(U);z.insert(R);return p.createVertexTemplateFromCells([z],z.geometry.width,z.geometry.height,z.value)}),this.addEntry("tree root",function(){var z=new mxCell("Organization",new mxGeometry(0,0,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');v.setAttributeForCell(z,"treeRoot","1");z.vertex=!0;return p.createVertexTemplateFromCells([z],
+!0;N.edge=!0;G.insertEdge(N,!0);R.insertEdge(N,!1);z.insert(E);z.insert(N);z.insert(G);z.insert(U);z.insert(R);return p.createVertexTemplateFromCells([z],z.geometry.width,z.geometry.height,z.value)}),this.addEntry("tree root",function(){var z=new mxCell("Organization",new mxGeometry(0,0,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');u.setAttributeForCell(z,"treeRoot","1");z.vertex=!0;return p.createVertexTemplateFromCells([z],
z.geometry.width,z.geometry.height,z.value)}),this.addEntry("tree division",function(){var z=new mxCell("Division",new mxGeometry(20,40,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');z.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");
G.geometry.setTerminalPoint(new mxPoint(0,0),!0);G.geometry.relative=!0;G.edge=!0;z.insertEdge(G,!1);return p.createVertexTemplateFromCells([z,G],z.geometry.width,z.geometry.height,z.value)}),this.addEntry("tree sub sections",function(){var z=new mxCell("Sub Section",new mxGeometry(0,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");z.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;targetPortConstraint=eastwest;sourcePortConstraint=northsouth;curved=0;rounded=0;");
G.geometry.setTerminalPoint(new mxPoint(110,-40),!0);G.geometry.relative=!0;G.edge=!0;z.insertEdge(G,!1);var U=new mxCell("Sub Section",new mxGeometry(120,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");U.vertex=!0;var E=new mxCell("",new mxGeometry(0,0,0,0),G.style);E.geometry.setTerminalPoint(new mxPoint(110,-40),!0);E.geometry.relative=!0;E.edge=!0;U.insertEdge(E,!1);return p.createVertexTemplateFromCells([G,E,z,U],220,60,"Sub Sections")})])}}})();Editor.themes.push("min");EditorUi.windowed="0"!=urlParams.windows;
@@ -4408,7 +4412,7 @@ E.sidebarWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){E.s
"none",E.sidebarElt.style.width="210px",E.sidebarElt.style.borderRight="1px solid gray"),R=E.diagramContainer.parentNode,null!=E.sidebarElt.parentNode?(E.sidebarElt.parentNode.removeChild(E.sidebarElt),R.style.left="0px"):(R.parentNode.appendChild(E.sidebarElt),R.style.left=E.sidebarElt.style.width)}if("1"==urlParams.lightbox||"0"==urlParams.chrome||"undefined"===typeof window.Format||"undefined"===typeof window.Menus)window.uiTheme=null;else{var m=0;try{m=window.innerWidth||document.documentElement.clientWidth||
document.body.clientWidth}catch(E){}Menus.prototype.autoPopup=!1;mxConstraintHandler.prototype.pointImage=Graph.createSvgImage(5,5,'<path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke-width="2" style="stroke-opacity:0.4" stroke="#ffffff"/><path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke="#29b6f2"/>');mxOutline.prototype.sizerImage=null;mxConstants.VERTEX_SELECTION_COLOR="#C0C0C0";mxConstants.EDGE_SELECTION_COLOR="#C0C0C0";mxConstants.CONNECT_HANDLE_FILLCOLOR="#cee7ff";mxConstants.DEFAULT_VALID_COLOR="#29b6f2";mxConstants.GUIDE_COLOR=
"#C0C0C0";mxConstants.OUTLINE_COLOR="#29b6f2";mxConstants.OUTLINE_HANDLE_FILLCOLOR="#29b6f2";mxConstants.OUTLINE_HANDLE_STROKECOLOR="#fff";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowSize="0.6";Graph.prototype.svgShadowBlur="1.2";mxRubberband.prototype.defaultOpacity=50;HoverIcons.prototype.inactiveOpacity=25;EditorUi.prototype.closableScratchpad=!1;Graph.prototype.editAfterInsert=!mxClient.IS_IOS&&!mxClient.IS_ANDROID;Editor.prototype.isChromelessView=
-function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var n=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){n.apply(this,arguments);this.menus.get("save").setEnabled(null!=this.getCurrentFile()||"1"==urlParams.embed)};var v=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(E,R){null!=R.shortcut&&900>m&&!mxClient.IS_IOS?E.firstChild.nextSibling.setAttribute("title",R.shortcut):v.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=
+function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var n=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){n.apply(this,arguments);this.menus.get("save").setEnabled(null!=this.getCurrentFile()||"1"==urlParams.embed)};var u=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(E,R){null!=R.shortcut&&900>m&&!mxClient.IS_IOS?E.firstChild.nextSibling.setAttribute("title",R.shortcut):u.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=
function(E){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=E?E:!this.formatWindow.window.isVisible()):b(this)};EditorUi.prototype.isFormatPanelVisible=function(){return null!=this.formatWindow&&this.formatWindow.window.isVisible()||null==this.formatWindow&&0<this.formatWidth};var p=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows();p.apply(this,arguments)};var z=EditorUi.prototype.setGraphEnabled;EditorUi.prototype.setGraphEnabled=function(E){z.apply(this,
arguments);if(E){var R=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;1E3<=R&&null!=this.sidebarWindow&&this.sidebarEnabled&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&1E3<=R&&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(){};EditorUi.prototype.installFormatToolbar=
function(E){var R=this.editor.graph,N=document.createElement("div");N.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%;";R.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(c,g){0<R.getSelectionCount()?(E.appendChild(N),N.innerHTML="Selected: "+R.getSelectionCount()):null!=N.parentNode&&N.parentNode.removeChild(N)}))};var G=!1;EditorUi.prototype.initFormatWindow=
@@ -4425,7 +4429,7 @@ this.createButtonContainer();A.appendChild(k.buttonContainer);k.menubarContainer
function(J){return fa.apply(this,arguments)+"sketch=0;"}}k.editor.addListener("statusChanged",mxUtils.bind(this,function(){k.setStatusText(k.editor.getStatus())}));k.setStatusText(k.editor.getStatus());var ha=k.actions.get("zoomIn"),ea=k.actions.get("zoomOut");g=k.actions.get("resetView");var ka=k.actions.get("undo"),pa=k.actions.get("redo"),ba=R("",ka.funct,null,"",ka,Editor.undoImage),l=R("",pa.funct,null,"",pa,Editor.redoImage),x=R("",function(J){mxEvent.isAltDown(J)?(k.hideCurrentMenu(),k.actions.get("customZoom").funct()):
(k.hideCurrentMenu(),k.actions.get("smartFit").funct());mxEvent.consume(J)},!0,"",g,Editor.zoomFitImage);k.actions.get("toggleShapes").funct=mxUtils.bind(this,function(){d(k,null)});k.container.appendChild(k.tabContainer);k.container.appendChild(A);k.updateTabContainer();this.formatEnabled&&!EditorUi.windowed&&1E3<=m&&b(this,!0);c();k.addListener("lockedChanged",c);k.addListener("languageChanged",c);k.editor.graph.addListener("enabledChanged",c);mxEvent.addListener(window,"resize",function(){c();
null!=k.sidebarWindow&&k.sidebarWindow.window.fit();null!=k.formatWindow&&k.formatWindow.window.fit();null!=k.actions.outlineWindow&&k.actions.outlineWindow.window.fit();null!=k.actions.layersWindow&&k.actions.layersWindow.window.fit();null!=k.menus.chatWindow&&k.menus.chatWindow.window.fit();null!=k.menus.tagsWindow&&k.menus.tagsWindow.window.fit();null!=k.menus.findWindow&&k.menus.findWindow.window.fit();null!=k.menus.findReplaceWindow&&k.menus.findReplaceWindow.window.fit()})}}};
-(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var d=EditorUi.initTheme;EditorUi.initTheme=function(){d.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();DrawioComment=function(b,d,m,n,v,p,z){this.file=b;this.id=d;this.content=m;this.modifiedDate=n;this.createdDate=v;this.isResolved=p;this.user=z;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,d,m,n,v){d()};DrawioComment.prototype.editComment=function(b,d,m){d()};DrawioComment.prototype.deleteComment=function(b,d){b()};DrawioUser=function(b,d,m,n,v){this.id=b;this.email=d;this.displayName=m;this.pictureUrl=n;this.locale=v};mxResources.parse('about=About\naboutDrawio=About draw.io\naccessDenied=Access Denied\naccounts=Accounts\naction=Action\nactualSize=Actual Size\nadaptiveColors=Adaptive Colors\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\naddToScratchpad=Add to Scratchpad\naddWaypoint=Add Waypoint\nadjustTo=Adjust to\nadvanced=Advanced\nsmartTemplate=Smart Template\nalign=Align\nalignment=Alignment\nallChangesLost=All changes will be lost!\nallPages=All Pages\nallProjects=All Projects\nallSelectedObjectsInThisLayer=All selected objects are in this layer\nallSpaces=All Spaces\nallTags=All Tags\nanchor=Anchor\nandroid=Android\nangle=Angle\nanimations=Animations\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\nappearance=Appearance\napply=Apply\narchiMate21=ArchiMate 2.1\narrange=Arrange\narrow=Arrow\narrows=Arrows\naskMeAnything=Ask me anything\nasNew=As New\natlas=Atlas\nauthor=Author\nauthorizationRequired=Authorization required\nauthorizeThisAppIn=Authorize this app in {1}:\nauthorize=Authorize\nauthorizing=Authorizing\nautomatic=Automatic\nautosave=Autosave\nautosizeText=Automatic Font Size\nautosize=Autosize\nattachments=Attachments\naws=AWS\naws3d=AWS 3D\nazure=Azure\nback=Back\nbackground=Background\nbackgroundColor=Background Color\nbackgroundImage=Background Image\nbasic=Basic\nbeta=beta\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\nclosePath=Close Path\nuserJoined={1} has joined\nuserLeft={1} has left\nchatWindowTitle=Chat\nchooseAnOption=Choose an option\nclickToAdd=Click on canvas to add points\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\ncurrentLayer=Current Layer\ndark=Dark\ndiagramLanguage=Diagram Language\ndiagramType=Diagram type\ndiagramXmlDesc=XML File\ndiagramHtmlDesc=HTML File\ndiagramPngDesc=Editable Bitmap Image\ndiagramSvgDesc=Editable Vector Image\ndidYouMeanToExportToPdf=Did you mean to export to PDF?\ndisabled=Disabled\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\nrealtimeCollaboration=Real-Time Collaboration\ncollaborate=Collaborate\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\ncopyDiagramToClipboard=Copy diagram to clipboard\ncopyOf=Copy of {1}\ncopyOfDrawing=Copy of Drawing\ncopySelectionToClipboard=Copy selection to clipboard\ncopySize=Copy Size\ncopyStyle=Copy Style\ncreate=Create\ncreateDiagram=Create Diagram\ncreateBlankDiagram=Create Blank Diagram\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\ndeleteAll=Delete all\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\ndescribeYourDiagram=Describe your diagram\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\neditPolygon=Edit Polygon\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\nexplore=Explore\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\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\nfindInDiagram=Find in Diagram\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\nflowAnimation=Flow Animation\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\nformatAnimatedGif=Animated GIF\nformatPanel=Format Panel\nformatted=Formatted\nformattedText=Formatted Text\nformatPng=PNG\nformatGif=GIF\nformatJpg=JPEG\nformatPdf=PDF\nformatSql=SQL\nformatSvg=SVG\nformatHtmlEmbedded=HTML\nformatVsdx=VSDX\nformatWebp=WebP\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\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\nhighContrast=High Contrast\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\ninsertDiagramFromClipboard=Insert diagram from clipboard\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://www.drawio.com/doc/faq/license-drawio-confluence-jira-cloud">page</a>.\ninvalidInput=Invalid input\ninvalidName=Invalid name\ninvalidOrMissingFile=Invalid or missing file\ninvalidPublicUrl=Invalid public URL\ninvertSelection=Invert Selection\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.\nlight=Light\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\nlanguageCode=Language Code\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\nlock=Lock\nlocked=Locked\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\nmaximize=Maximize\nmerge=Merge\nmermaid=Mermaid\nmicrosoftOffice=Microsoft Office\nmicrosoftExcel=Microsoft Excel\nmicrosoftPowerPoint=Microsoft PowerPoint\nmicrosoftWord=Microsoft Word\nmiddle=Middle\nminimal=Minimal\nminimize=Minimize\nmisc=Misc\nmockups=Mockups\nmodern=Modern\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}\nmyDrive=My Drive\nmyFiles=My Files\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\nnoAnimationsInDiagram=No animations found in diagram\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\npageTabs=Page Tabs\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).\npolygon=Polygon\nportrait=Portrait\nposition=Position\nposterPrint=Poster Print\npreferences=Preferences\npreview=Preview\npreviousPage=Previous Page\npresentationMode=Presentation Mode\nprint=Print\nprocEng=Proc. Eng.\nproject=Project\npriority=Priority\nprocessForHiringNewEmployee=Process for hiring a new employee\npromptOnly=Prompt Only\npromptWithDiagram=Prompt with Diagram\npromptWithSelection=Prompt with Selection\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\nrequirementDiagram=Requirement Diagram\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\nsearchShapesInOpenLibraries=Search Shapes in Open Libraries\nselectAll=Select All\nselectionOnly=Selection Only\nselectCard=Select Card\nselectEdges=Select Edges\nselectedPage=Selected Page\nselectFile=Select File\nselectFolder=Select Folder\nselectFont=Select Font\nselection=Selection\nselectNone=Select None\nselectObjectsInLayer=Select Objects in Layer\nselectTemplate=Select Template\nselectVertices=Select Vertices\nsendBackward=Send Backward\nsendMessage=Send\nsendYourFeedback=Send your feedback\nsequenceDiagram=Sequence Diagram\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\nsettings=Settings\nshadow=Shadow\nshadows=Shadows\nshape=Shape\nshapes=Shapes\nshare=Share\nshareCursor=Share Mouse Cursor\nshareLink=Link for shared editing\nsharingAvailable=Sharing available for Google Drive and OneDrive files.\nsaveItToGoogleDriveToCollaborate=You\'ll need to save "{1}" to Google Drive before you can collaborate.\nsaveToGoogleDrive=Save to Google Drive\nsharp=Sharp\nshow=Show\nshowRemoteCursors=Show Remote Mouse Cursors\nshowStartScreen=Show Start Screen\nsidebarTooltip=Click or drag and drop shapes. 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\nsmoothing=Smoothing\nsnapToGrid=Snap to Grid\nsolid=Solid\nsourceSpacing=Source Spacing\nsouth=South\nsoftware=Software\nspace=Space\nspacing=Spacing\nspecialLink=Special Link\nstateDiagram=State Diagram\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\nswap=Swap\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\ntypeSlashToSearch=Type / to search\numl=UML\nunassigned=Unassigned\nunderline=Underline\nundo=Undo\nungroup=Ungroup\nunlock=Unlock\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\nunknownUser=Unknown user\nupdateDiagramFromClipboard=Update diagram from clipboard\nupdateExistingDrawing=Update existing drawing\nupdateFile=Update {1}\nupdatingDocument=Updating Document. Please wait...\nupdatingPreview=Updating Preview. Please wait...\nupdatingSelection=Updating Selection. Please wait...\nupload=Upload\nurl=URL\nuseBlackAndWhite=Use black and white\nuseCurrentSettings=Use current settings\nuseOffline=Use Offline\nuserDefined=User-defined\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}\nwarning=Warning\nwaypoints=Waypoints\nwest=West\nwhere=Where\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\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\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\ncreateODFile=Create OneDrive File\npickGDriveFile=Pick Google Drive File\ncreateGDriveFile=Create Google Drive File\npickDeviceFile=Pick Device File\nvsdNoConfig="vsdurl" is not configured\ntryVssDraw=Try importing the file at {1}\nruler=Ruler\nunits=Units\npoints=Points\ninches=Inches\nmillimeters=Millimeters\nminTwoPoints=At least 2 points required\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\ncopyAsText=Copy as Text\ncopyAsSvg=Copy as SVG\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?\nconfFileTooBigErr=File 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\neditConnectionPoints=Edit Connection Points\nnotInOffline=Not supported while offline\nnotInDesktop=Not supported in Desktop App\nconfConfigSpaceArchived=draw.io Configuration space (DRAWIOCONFIG) is archived. Please restore it first.\nconfACleanOldVerStarted=Cleaning old diagram draft versions started\nconfACleanOldVerDone=Cleaning old diagram draft versions finished\nconfACleaningFile=Cleaning diagram draft "{1}" old versions\nconfAFileCleaned=Cleaning diagram draft "{1}" done\nconfAFileCleanFailed=Cleaning diagram draft "{1}" failed\nconfACleanOnly=Clean Diagram Drafts Only\nbrush=Brush\nopenDevTools=Open Developer Tools\nautoBkp=Automatic Backup\nconfAIgnoreCollectErr=Ignore collecting current pages errors\ndrafts=Drafts\ndraftSaveInt=Draft save interval [sec] (0 to disable)\npluginsDisabled=External plugins disabled.\nextExpNotConfigured=External image service is not configured\npathFilename=Path/Filename\nconfAHugeInstances=Very Large Instances\nconfAHugeInstancesDesc=If this instance includes 100,000+ pages, it is faster to request the current instance pages list from Atlassian. Please contact our support for more details.\nchoosePageIDsFile=Choose current page IDs csv file\nchooseDrawioPsgesFile=Choose pages with draw.io diagrams csv file\nprivate=Private\ndiagramTooLarge=The diagram is too large, please reduce its size and try again.\nselectAdminUsers=Select Admin Users\nxyzTeam={1} Team\naddTeamTitle=Adding a new draw.io Team\naddTeamInst1=To create a new draw.io Team, you need to create a new Atlassian group with "drawio-" prefix (e.g, a group named "drawio-marketing").\naddTeamInst2=Then, configure which team member can edit/add configuration, templates, and libraries from this page.\ndrawioTeams=draw.io Teams\nmembers=Members\nadminEditors=Admins/Editors\nallowAll=Allow all\nnoTeams=No teams found\nerrorLoadingTeams=Error Loading Teams\nnoTeamMembers=No team members found\nerrLoadTMembers=Error loading team members\nerrCreateTeamPage=Error creating team "{1}" page in "draw.io Configuration" space, please check you have the required permissions.\ngotoConfigPage=Please create the space from draw.io "Configuration" page.\nnoAdminsSelected=No admins/editors selected\nerrCreateConfigFile=Error creating "configuration.json" file, please check you have the required permissions.\nerrSetPageRestr=Error setting page restrictions\nnotAdmin4Team=You are not an admin for this team\nconfigUpdated=Configuration updated, restart the editor if you want to work with last configuration.\noutOfDateRevisionAlert=You are editing a historical revision of the diagram, please review the revision and open it to replace the latest version. Or close and overwrite/merge later.\nconfAErrFaqs=There are {1} error(s), the following instructions may help fixing most of the cases. (Please download the log for future references)\nconfA403ErrFaq=There are ({1}) 403 error(s). The current users must have add (write) permissions on all pages and attachments. Even admins sometimes are not allowed to write to some pages via page restrictions\nconfA404ErrFaq=There are ({1}) 404 error(s). The attachment/page is not found. This is due to improper migration or the diagram file (an attachment of the page) is deleted.\nconfA500ErrFaq=There are ({1}) 500 error(s). An internal server error in Confluence Cloud. Such errors are due to overloading the server and usually fixed by retrying the process.\nconfAOtherErrFaq=There are ({1}) other error(s). Please check the error description. If the description is not clear, please contact our support.\nconfAReplaceBaseUrl=Replace Base URL in diagram links when no page ID mapping is found\ndrawSvgPrev=draw.io SVG preview\ngoogleFonts=Google Fonts\ndiagDupl=Duplicate Diagram Detected\ndiagDuplMsg=This diagram is used in multiple places, which can result in unexpected results when edited. We\'ve created an independent copy. Please open the editor again.\ndiagDuplNoEditMsg=This diagram is used in multiple places. Please edit it within its own page.\nconfCloudMigConfirm=Warning: This process will edit many pages and diagrams, so it is recommended to stop the Synchrony service during the process. Do you want to proceed?\nconfCloudMigNotice=In the Cloud instance, please add linkAdjustments to draw.io configuration as follows {1}. Without this configuration, links in diagrams pointing to Confluence pages will not work.\nconfALogsPageDesc=This page contains logs of draw.io long running services as attachments\nconfEditOnlyInPageEditor=Can only be edited within Confluence page editor\nconfEvalWarn=Evaluation License - Not for production use\notherUsersEditing=Other user(s) are editing this diagram\nfirstTimeGD=First time to access this file?\ndrawioGDAppNotInstalled=draw.io Google Drive app is not installed, please install it first\nConfDC415Error=Saving drafts is blocked. If you have "Attachment Checker for Confluence" app, please update to the latest version.\nremove=Remove\nselectPgLyr=Select Page and Layers\nerrGenPreview=There was an error generating a diagram preview. Please consult technical support.\nattAccessErr=Diagram attachment access error: cannot display diagram\nwidthIntOrFixed=Width must be a valid integer or of value \'fixed\'\ndupDisabledPgLyrSlct=Diagram duplication is disabled when page and layers are selected\ncantDupPickDiffName=Could not duplicate diagram. Please choose a different name.\nownPgAccessDupErr=Owning page access restriction: cannot duplicate diagram.\ncantDupTryLater=Could not duplicate diagram. Please try again later.\ncantEditLnkd=Cannot edit linked diagram\ndiagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Would you like to open the owning page for edit?\ndiagInTemps=draw.io diagrams in templates\ndiagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.\nconfDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.\nconfConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.\ntryCurPageOnErr=Try finding the diagram attachment on the macro page when the linked page fails\nconfAExtSrvcNoSupported=Embedded diagrams from external services or urls are not supported.\ngliffyVersionPinning=Import Gliffy pinned version instead of the latest version\nconfEmbedUpload=For a better editing experience, please use the regular draw.io macro to insert a blank diagram, then from (File menu → Import From → Device...) select the file you want to upload and embed.\nconfPublishErr=Another update conflicted with your publish, please try the operation again\nconfACacheMapping=Cache page IDs mapping\nconfARemImpPages=Remember imported pages\ndelCachedData=Delete Cached Data\nk15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?\ndrawioUninstalled=draw.io has been uninstalled, the editor will now close\nconfAttachmentArchived=Diagram belongs to an archived page and cannot be loaded. Restore the page (ID: {1}) to load it.\nconfDiagramMacroDowngrade=The diagram is saved but the page macro cannot be updated as the diagraam revision in the macro is newer. Please edit the diagram from Confluence page editor.\nDCSave500Error=Another Confluence operation interrupted saving, retry #{1}\nconfAppNotInstalled=draw.io diagrams Confluence App is not installed.\nplsInstallAppInConf=Please install/connect this App in Confluence to be able to access the diagrams (in addition to draw.io Confluen app)\nm365=Microsoft 365\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;
+(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var d=EditorUi.initTheme;EditorUi.initTheme=function(){d.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();DrawioComment=function(b,d,m,n,u,p,z){this.file=b;this.id=d;this.content=m;this.modifiedDate=n;this.createdDate=u;this.isResolved=p;this.user=z;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,d,m,n,u){d()};DrawioComment.prototype.editComment=function(b,d,m){d()};DrawioComment.prototype.deleteComment=function(b,d){b()};DrawioUser=function(b,d,m,n,u){this.id=b;this.email=d;this.displayName=m;this.pictureUrl=n;this.locale=u};mxResources.parse('about=About\naboutDrawio=About draw.io\naccessDenied=Access Denied\naccounts=Accounts\naction=Action\nactualSize=Actual Size\nadaptiveColors=Adaptive Colors\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\naddToScratchpad=Add to Scratchpad\naddWaypoint=Add Waypoint\nadjustTo=Adjust to\nadvanced=Advanced\nsmartTemplate=Smart Template\nalign=Align\nalignment=Alignment\nallChangesLost=All changes will be lost!\nallPages=All Pages\nallProjects=All Projects\nallSelectedObjectsInThisLayer=All selected objects are in this layer\nallSpaces=All Spaces\nallTags=All Tags\nanchor=Anchor\nandroid=Android\nangle=Angle\nanimations=Animations\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\nappearance=Appearance\napply=Apply\narchiMate21=ArchiMate 2.1\narrange=Arrange\narrow=Arrow\narrows=Arrows\naskMeAnything=Ask me anything\nasNew=As New\natlas=Atlas\nauthor=Author\nauthorizationRequired=Authorization required\nauthorizeThisAppIn=Authorize this app in {1}:\nauthorize=Authorize\nauthorizing=Authorizing\nautomatic=Automatic\nautosave=Autosave\nautosizeText=Automatic Font Size\nautosize=Autosize\nattachments=Attachments\naws=AWS\naws3d=AWS 3D\nazure=Azure\nback=Back\nbackground=Background\nbackgroundColor=Background Color\nbackgroundImage=Background Image\nbasic=Basic\nbeta=beta\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\nclosePath=Close Path\nuserJoined={1} has joined\nuserLeft={1} has left\nchatWindowTitle=Chat\nchooseAnOption=Choose an option\nclickToAdd=Click on canvas to add points\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\ncurrentLayer=Current Layer\ndark=Dark\ndiagramLanguage=Diagram Language\ndiagramType=Diagram type\ndiagramXmlDesc=XML File\ndiagramHtmlDesc=HTML File\ndiagramPngDesc=Editable Bitmap Image\ndiagramSvgDesc=Editable Vector Image\ndidYouMeanToExportToPdf=Did you mean to export to PDF?\ndisabled=Disabled\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\nrealtimeCollaboration=Real-Time Collaboration\ncollaborate=Collaborate\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\ncopyDiagramToClipboard=Copy diagram to clipboard\ncopyOf=Copy of {1}\ncopyOfDrawing=Copy of Drawing\ncopySelectionToClipboard=Copy selection to clipboard\ncopySize=Copy Size\ncopyStyle=Copy Style\ncreate=Create\ncreateDiagram=Create Diagram\ncreateBlankDiagram=Create Blank Diagram\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\ndeleteAll=Delete all\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\ndescribeYourDiagram=Describe your diagram\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\neditPolygon=Edit Polygon\neditShape=Edit Shape\neditStyle=Edit Style\neditText=Edit Text\neditTooltip=Edit Tooltip\nglass=Glass\ngoogleImages=Google Images\nimageSearch=Image Search\neip=EIP\neffects=Effects\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\nexplore=Explore\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\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\nfindInDiagram=Find in Diagram\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\nflowAnimation=Flow Animation\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\nformatAnimatedGif=Animated GIF\nformatPanel=Format Panel\nformatted=Formatted\nformattedText=Formatted Text\nformatPng=PNG\nformatGif=GIF\nformatJpg=JPEG\nformatPdf=PDF\nformatSql=SQL\nformatSvg=SVG\nformatHtmlEmbedded=HTML\nformatVsdx=VSDX\nformatWebp=WebP\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\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\nhighContrast=High Contrast\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\ninsertDiagramFromClipboard=Insert diagram from clipboard\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://www.drawio.com/doc/faq/license-drawio-confluence-jira-cloud">page</a>.\ninvalidInput=Invalid input\ninvalidName=Invalid name\ninvalidOrMissingFile=Invalid or missing file\ninvalidPublicUrl=Invalid public URL\ninvertSelection=Invert Selection\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.\nlight=Light\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\nlanguageCode=Language Code\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\nlock=Lock\nlocked=Locked\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\nmaximize=Maximize\nmerge=Merge\nmermaid=Mermaid\nmicrosoftOffice=Microsoft Office\nmicrosoftExcel=Microsoft Excel\nmicrosoftPowerPoint=Microsoft PowerPoint\nmicrosoftWord=Microsoft Word\nmiddle=Middle\nminimal=Minimal\nminimize=Minimize\nmisc=Misc\nmockups=Mockups\nmodern=Modern\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}\nmyDrive=My Drive\nmyFiles=My Files\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\nnoAnimationsInDiagram=No animations found in diagram\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\npageTabs=Page Tabs\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).\npolygon=Polygon\nportrait=Portrait\nposition=Position\nposterPrint=Poster Print\npreferences=Preferences\npreview=Preview\npreviousPage=Previous Page\npresentationMode=Presentation Mode\nprint=Print\nprocEng=Proc. Eng.\nproject=Project\npriority=Priority\nprocessForHiringNewEmployee=Process for hiring a new employee\npromptOnly=Prompt Only\npromptWithDiagram=Prompt with Diagram\npromptWithSelection=Prompt with Selection\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\nrequirementDiagram=Requirement Diagram\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\nsearchShapesInOpenLibraries=Search Shapes in Open Libraries\nselectAll=Select All\nselectionOnly=Selection Only\nselectCard=Select Card\nselectEdges=Select Edges\nselectedPage=Selected Page\nselectFile=Select File\nselectFolder=Select Folder\nselectFont=Select Font\nselection=Selection\nselectNone=Select None\nselectObjectsInLayer=Select Objects in Layer\nselectTemplate=Select Template\nselectVertices=Select Vertices\nsendBackward=Send Backward\nsendMessage=Send\nsendYourFeedback=Send your feedback\nsequenceDiagram=Sequence Diagram\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\nsettings=Settings\nshadow=Shadow\nshadows=Shadows\nshape=Shape\nshapes=Shapes\nshare=Share\nshareCursor=Share Mouse Cursor\nshareLink=Link for shared editing\nsharingAvailable=Sharing available for Google Drive and OneDrive files.\nsaveItToGoogleDriveToCollaborate=You\'ll need to save "{1}" to Google Drive before you can collaborate.\nsaveToGoogleDrive=Save to Google Drive\nsharp=Sharp\nshow=Show\nshowRemoteCursors=Show Remote Mouse Cursors\nshowStartScreen=Show Start Screen\nsidebarTooltip=Click or drag and drop shapes. 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\nsmoothing=Smoothing\nsnapToGrid=Snap to Grid\nsolid=Solid\nsourceSpacing=Source Spacing\nsouth=South\nsoftware=Software\nspace=Space\nspacing=Spacing\nspecialLink=Special Link\nstateDiagram=State Diagram\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\nswap=Swap\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\ntypeSlashToSearch=Type / to search\numl=UML\nunassigned=Unassigned\nunderline=Underline\nundo=Undo\nungroup=Ungroup\nunlock=Unlock\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\nunknownUser=Unknown user\nupdateDiagramFromClipboard=Update diagram from clipboard\nupdateExistingDrawing=Update existing drawing\nupdateFile=Update {1}\nupdatingDocument=Updating Document. Please wait...\nupdatingPreview=Updating Preview. Please wait...\nupdatingSelection=Updating Selection. Please wait...\nupload=Upload\nurl=URL\nuseBlackAndWhite=Use black and white\nuseCurrentSettings=Use current settings\nuseOffline=Use Offline\nuserDefined=User-defined\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}\nwarning=Warning\nwaypoints=Waypoints\nwest=West\nwhere=Where\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\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\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\ncreateODFile=Create OneDrive File\npickGDriveFile=Pick Google Drive File\ncreateGDriveFile=Create Google Drive File\npickDeviceFile=Pick Device File\nvsdNoConfig="vsdurl" is not configured\ntryVssDraw=Try importing the file at {1}\nruler=Ruler\nunits=Units\npoints=Points\ninches=Inches\nmillimeters=Millimeters\nminTwoPoints=At least 2 points required\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\ncopyAsText=Copy as Text\ncopyAsSvg=Copy as SVG\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?\nconfFileTooBigErr=File 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\neditConnectionPoints=Edit Connection Points\nnotInOffline=Not supported while offline\nnotInDesktop=Not supported in Desktop App\nconfConfigSpaceArchived=draw.io Configuration space (DRAWIOCONFIG) is archived. Please restore it first.\nconfACleanOldVerStarted=Cleaning old diagram draft versions started\nconfACleanOldVerDone=Cleaning old diagram draft versions finished\nconfACleaningFile=Cleaning diagram draft "{1}" old versions\nconfAFileCleaned=Cleaning diagram draft "{1}" done\nconfAFileCleanFailed=Cleaning diagram draft "{1}" failed\nconfACleanOnly=Clean Diagram Drafts Only\nbrush=Brush\nopenDevTools=Open Developer Tools\nautoBkp=Automatic Backup\nconfAIgnoreCollectErr=Ignore collecting current pages errors\ndrafts=Drafts\ndraftSaveInt=Draft save interval [sec] (0 to disable)\npluginsDisabled=External plugins disabled.\nextExpNotConfigured=External image service is not configured\npathFilename=Path/Filename\nconfAHugeInstances=Very Large Instances\nconfAHugeInstancesDesc=If this instance includes 100,000+ pages, it is faster to request the current instance pages list from Atlassian. Please contact our support for more details.\nchoosePageIDsFile=Choose current page IDs csv file\nchooseDrawioPsgesFile=Choose pages with draw.io diagrams csv file\nprivate=Private\ndiagramTooLarge=The diagram is too large, please reduce its size and try again.\nselectAdminUsers=Select Admin Users\nxyzTeam={1} Team\naddTeamTitle=Adding a new draw.io Team\naddTeamInst1=To create a new draw.io Team, you need to create a new Atlassian group with "drawio-" prefix (e.g, a group named "drawio-marketing").\naddTeamInst2=Then, configure which team member can edit/add configuration, templates, and libraries from this page.\ndrawioTeams=draw.io Teams\nmembers=Members\nadminEditors=Admins/Editors\nallowAll=Allow all\nnoTeams=No teams found\nerrorLoadingTeams=Error Loading Teams\nnoTeamMembers=No team members found\nerrLoadTMembers=Error loading team members\nerrCreateTeamPage=Error creating team "{1}" page in "draw.io Configuration" space, please check you have the required permissions.\ngotoConfigPage=Please create the space from draw.io "Configuration" page.\nnoAdminsSelected=No admins/editors selected\nerrCreateConfigFile=Error creating "configuration.json" file, please check you have the required permissions.\nerrSetPageRestr=Error setting page restrictions\nnotAdmin4Team=You are not an admin for this team\nconfigUpdated=Configuration updated, restart the editor if you want to work with last configuration.\noutOfDateRevisionAlert=You are editing a historical revision of the diagram, please review the revision and open it to replace the latest version. Or close and overwrite/merge later.\nconfAErrFaqs=There are {1} error(s), the following instructions may help fixing most of the cases. (Please download the log for future references)\nconfA403ErrFaq=There are ({1}) 403 error(s). The current users must have add (write) permissions on all pages and attachments. Even admins sometimes are not allowed to write to some pages via page restrictions\nconfA404ErrFaq=There are ({1}) 404 error(s). The attachment/page is not found. This is due to improper migration or the diagram file (an attachment of the page) is deleted.\nconfA500ErrFaq=There are ({1}) 500 error(s). An internal server error in Confluence Cloud. Such errors are due to overloading the server and usually fixed by retrying the process.\nconfAOtherErrFaq=There are ({1}) other error(s). Please check the error description. If the description is not clear, please contact our support.\nconfAReplaceBaseUrl=Replace Base URL in diagram links when no page ID mapping is found\ndrawSvgPrev=draw.io SVG preview\ngoogleFonts=Google Fonts\ndiagDupl=Duplicate Diagram Detected\ndiagDuplMsg=This diagram is used in multiple places, which can result in unexpected results when edited. We\'ve created an independent copy. Please open the editor again.\ndiagDuplNoEditMsg=This diagram is used in multiple places. Please edit it within its own page.\nconfCloudMigConfirm=Warning: This process will edit many pages and diagrams, so it is recommended to stop the Synchrony service during the process. Do you want to proceed?\nconfCloudMigNotice=In the Cloud instance, please add linkAdjustments to draw.io configuration as follows {1}. Without this configuration, links in diagrams pointing to Confluence pages will not work.\nconfALogsPageDesc=This page contains logs of draw.io long running services as attachments\nconfEditOnlyInPageEditor=Can only be edited within Confluence page editor\nconfEvalWarn=Evaluation License - Not for production use\notherUsersEditing=Other user(s) are editing this diagram\nfirstTimeGD=First time to access this file?\ndrawioGDAppNotInstalled=draw.io Google Drive app is not installed, please install it first\nConfDC415Error=Saving drafts is blocked. If you have "Attachment Checker for Confluence" app, please update to the latest version.\nremove=Remove\nselectPgLyr=Select Page and Layers\nerrGenPreview=There was an error generating a diagram preview. Please consult technical support.\nattAccessErr=Diagram attachment access error: cannot display diagram\nwidthIntOrFixed=Width must be a valid integer or of value \'fixed\'\ndupDisabledPgLyrSlct=Diagram duplication is disabled when page and layers are selected\ncantDupPickDiffName=Could not duplicate diagram. Please choose a different name.\nownPgAccessDupErr=Owning page access restriction: cannot duplicate diagram.\ncantDupTryLater=Could not duplicate diagram. Please try again later.\ncantEditLnkd=Cannot edit linked diagram\ndiagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Would you like to open the owning page for edit?\ndiagInTemps=draw.io diagrams in templates\ndiagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.\nconfDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.\nconfConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.\ntryCurPageOnErr=Try finding the diagram attachment on the macro page when the linked page fails\nconfAExtSrvcNoSupported=Embedded diagrams from external services or urls are not supported.\ngliffyVersionPinning=Import Gliffy pinned version instead of the latest version\nconfEmbedUpload=For a better editing experience, please use the regular draw.io macro to insert a blank diagram, then from (File menu → Import From → Device...) select the file you want to upload and embed.\nconfPublishErr=Another update conflicted with your publish, please try the operation again\nconfACacheMapping=Cache page IDs mapping\nconfARemImpPages=Remember imported pages\ndelCachedData=Delete Cached Data\nk15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?\ndrawioUninstalled=draw.io has been uninstalled, the editor will now close\nconfAttachmentArchived=Diagram belongs to an archived page and cannot be loaded. Restore the page (ID: {1}) to load it.\nconfDiagramMacroDowngrade=The diagram is saved but the page macro cannot be updated as the diagraam revision in the macro is newer. Please edit the diagram from Confluence page editor.\nDCSave500Error=Another Confluence operation interrupted saving, retry #{1}\nconfAppNotInstalled=draw.io diagrams Confluence App is not installed.\nplsInstallAppInConf=Please install/connect this App in Confluence to be able to access the diagrams (in addition to draw.io Confluen app)\nm365=Microsoft 365\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"];Editor.currentTheme="";window.uiTheme="";GraphViewer=function(b,d,m){this.init(b,d,m)};mxUtils.extend(GraphViewer,mxEventSource);GraphViewer.prototype.editBlankUrl="1"==urlParams.dev?"https://test.draw.io/":"https://app.diagrams.net/";GraphViewer.prototype.imageBaseUrl=window.DRAWIO_BASE_URL+"/";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.darkMode=null;
GraphViewer.prototype.showLinkIcons=!1;GraphViewer.prototype.showTooltipIcons=!1;
@@ -4433,20 +4437,20 @@ GraphViewer.prototype.init=function(b,d,m){GraphViewer.initCss();this.graphConfi
null!=this.graphConfig["allow-zoom-in"]?this.graphConfig["allow-zoom-in"]:this.allowZoomIn;this.forceCenter=null!=this.graphConfig.forceCenter?this.graphConfig.forceCenter:this.forceCenter;this.hCenterOnly=null!=this.graphConfig.hCenterOnly?this.graphConfig.hCenterOnly:this.hCenterOnly;this.center=null!=this.graphConfig.center?this.graphConfig.center:this.center||this.forceCenter;this.checkVisibleState=null!=this.graphConfig["check-visible-state"]?this.graphConfig["check-visible-state"]:this.checkVisibleState;
this.darkMode=null!=this.graphConfig["dark-mode"]?this.graphConfig["dark-mode"]:this.darkMode;this.showLinkIcons=null!=this.graphConfig["show-link-icons"]?this.graphConfig["show-link-icons"]:this.showLinkIcons;this.showTooltipIcons=null!=this.graphConfig["show-tooltip-icons"]?this.graphConfig["show-tooltip-icons"]:this.showTooltipIcons;this.toolbarItems=null!=this.graphConfig.toolbar?this.graphConfig.toolbar.split(" "):[];this.zoomEnabled=0<=mxUtils.indexOf(this.toolbarItems,"zoom");this.layersEnabled=
0<=mxUtils.indexOf(this.toolbarItems,"layers");this.tagsEnabled=0<=mxUtils.indexOf(this.toolbarItems,"tags");this.lightboxEnabled=0<=mxUtils.indexOf(this.toolbarItems,"lightbox");this.lightboxClickEnabled=0!=this.graphConfig.lightbox;this.initialOverflow=document.body.style.overflow;this.initialWidth=null!=b?b.style.width:null;this.widthIsEmpty=null!=this.initialWidth?""==this.initialWidth:!0;this.currentPage=parseInt(this.graphConfig.page)||0;this.responsive=(null!=this.graphConfig.responsive?this.graphConfig.responsive:
-this.responsive)&&!this.zoomEnabled&&!mxClient.NO_FO&&!mxClient.IS_SF;this.pageId=this.graphConfig.pageId;this.editor=null;var n=this;"inline"==this.graphConfig["toolbar-position"]&&(this.minHeight+=this.toolbarHeight);if(null!=d&&(this.xmlDocument=d.ownerDocument,this.xmlNode=d,this.xml=mxUtils.getXml(d),null!=b)){var v=mxUtils.bind(this,function(){this.graph=new Graph(b);this.graph.enableFlowAnimation=!0;this.installDarkModeListener();if(this.responsive&&this.graph.dialect==mxConstants.DIALECT_SVG){var G=
+this.responsive)&&!this.zoomEnabled&&!mxClient.NO_FO&&!mxClient.IS_SF;this.pageId=this.graphConfig.pageId;this.editor=null;var n=this;"inline"==this.graphConfig["toolbar-position"]&&(this.minHeight+=this.toolbarHeight);if(null!=d&&(this.xmlDocument=d.ownerDocument,this.xmlNode=d,this.xml=mxUtils.getXml(d),null!=b)){var u=mxUtils.bind(this,function(){this.graph=new Graph(b);this.graph.enableFlowAnimation=!0;this.installDarkModeListener();if(this.responsive&&this.graph.dialect==mxConstants.DIALECT_SVG){var G=
this.graph.view.getDrawPane().ownerSVGElement,U=0;null!=this.graphConfig.border?U=this.graphConfig.border:""==b.style.padding&&(U=8);0<U&&(b.style.padding=U+"px",b.style.boxSizing="border-box");G.style.forcedColorAdjust="none";G.style.boxSizing="border-box";G.style.overflow="visible";this.graph.fit=function(){};var E=parseFloat(this.graphConfig["responsive-max-scale"]),R=parseFloat(b.style.maxWidth);this.graph.sizeDidChange=function(){var M=this.view.graphBounds,ca=this.view.translate;G.setAttribute("viewBox",
M.x+ca.x-this.panDx+" "+(M.y+ca.y-this.panDy)+" "+(M.width+1)+" "+(M.height+1));this.container.style.backgroundColor=G.style.backgroundColor;isNaN(E)||(ca=Math.round((M.width+1)*E+2*U),ca=isNaN(R)?ca:Math.min(ca,R),this.container.style.maxWidth=ca+"px");this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",M))}}this.graphConfig.move&&(this.graph.isMoveCellsEvent=function(M){return!0});this.lightboxClickEnabled&&(b.style.cursor="pointer");this.editor=new Editor(!0,null,null,this.graph);this.editor.editBlankUrl=
this.editBlankUrl;this.graph.lightbox=!0;this.graph.centerZoom=!1;this.graph.autoExtend=!1;this.graph.autoScroll=!1;this.graph.showLinkIcons=this.showLinkIcons;this.graph.showTooltipIcons=this.showTooltipIcons;this.graph.setEnabled(!1);1==this.graphConfig["toolbar-nohide"]&&(this.editor.defaultGraphOverflow="visible");var N=this.editor.extractGraphModel(this.xmlNode,!0);if(null!=N&&N!=d)try{this.xml=mxUtils.getXml(N),this.xmlNode=N,this.xmlDocument=N.ownerDocument}catch(M){}this.graph.getImageFromBundles=
function(M){return n.getImageUrl(M)};this.graph.addSvgShadow(this.graph.view.canvas.ownerSVGElement,null,!0);if("mxfile"==this.xmlNode.nodeName){var c=this.xmlNode.getElementsByTagName("diagram");if(0<c.length){if(null!=this.pageId)for(N=0;N<c.length;N++)if(this.pageId==c[N].getAttribute("id")){this.currentPage=N;break}var g=this.graph.getGlobalVariable,k=null;try{var q=n.xmlNode.getAttribute("vars");null!=q&&0<q.length&&(k=JSON.parse(q))}catch(M){}this.graph.getGlobalVariable=function(M){var ca=
-c[n.currentPage];if("page"==M)return ca.getAttribute("name")||"Page-"+(n.currentPage+1);if("pagenumber"==M)return n.currentPage+1;if("pagecount"==M)return c.length;ca=g.apply(this,arguments);null==ca&&null!=k&&(ca=k[M]);return ca}}}this.diagrams=[];var A=null;this.selectPage=function(M){if(!this.handlingResize){if(this.tagsEnabled&&null!=this.graphConfig.hiddenTags){var ca=this.diagrams[this.currentPage].getAttribute("id");this.graphConfig.hiddenTags[ca]=0<this.graph.hiddenTags.length?this.graph.hiddenTags.slice():
-null}this.currentPage=mxUtils.mod(M,this.diagrams.length);this.tagsEnabled&&null!=this.graphConfig.hiddenTags&&(M=this.diagrams[this.currentPage].getAttribute("id"),M=this.graphConfig.hiddenTags[M],this.graph.hiddenTags=null!=M&&0<M.length?M:[]);this.updateGraphXml(Editor.parseDiagramNode(this.diagrams[this.currentPage]))}};this.selectPageById=function(M){M=this.getIndexById(M);var ca=0<=M;ca&&this.selectPage(M);return ca};q=mxUtils.bind(this,function(){if(null==this.xmlNode||"mxfile"!=this.xmlNode.nodeName)this.diagrams=
-[];this.xmlNode!=A&&(this.diagrams=this.xmlNode.getElementsByTagName("diagram"),A=this.xmlNode)});var D=this.graph.setBackgroundImage;this.graph.setBackgroundImage=function(M){if(null!=M&&Graph.isPageLink(M.src)){var ca=M.src,fa=ca.indexOf(",");0<fa&&(fa=n.getIndexById(ca.substring(fa+1)),0<=fa&&(M=n.getImageForGraphModel(Editor.parseDiagramNode(n.diagrams[fa])),M.originalSrc=ca))}D.apply(this,arguments)};var H=this.graph.getGraphBounds;this.graph.getGraphBounds=function(M){var ca=H.apply(this,arguments);
-M=this.backgroundImage;if(null!=M){var fa=this.view.translate,ha=this.view.scale;ca=mxRectangle.fromRectangle(ca);ca.add(new mxRectangle((fa.x+M.x)*ha,(fa.y+M.y)*ha,M.width*ha,M.height*ha))}return ca};this.addListener("xmlNodeChanged",q);q();urlParams.page=n.currentPage;q=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;q=this.setLayersVisible();if(this.tagsEnabled&&null!=
-this.graphConfig.hiddenTags&&null!=this.diagrams&&null!=this.diagrams[this.currentPage]){var K=this.diagrams[this.currentPage].getAttribute("id"),P=this.graphConfig.hiddenTags[K];null!=P&&0<P.length&&(this.graph.hiddenTags=P)}this.fireEvent(new mxEventObject("graphInitialized"));this.responsive||(this.graph.border=null!=this.graphConfig.border?this.graphConfig.border:8);this.installBackgroundColorHandler();GraphViewer.viewerInitialized(this)}finally{this.graph.getModel().endUpdate()}this.responsive||
+c[n.currentPage];if("page"==M)return ca.getAttribute("name")||"Page-"+(n.currentPage+1);if("pagenumber"==M)return n.currentPage+1;if("pagecount"==M)return c.length;ca=g.apply(this,arguments);null==ca&&null!=k&&(ca=k[M]);return ca}}}this.diagrams=[];var A=null;this.selectPage=function(M){if(!this.handlingResize){if(this.tagsEnabled&&null!=this.graphConfig.hiddenTags&&null!=this.diagrams[this.currentPage]){var ca=this.diagrams[this.currentPage].getAttribute("id");this.graphConfig.hiddenTags[ca]=0<this.graph.hiddenTags.length?
+this.graph.hiddenTags.slice():null}this.currentPage=mxUtils.mod(M,this.diagrams.length);this.tagsEnabled&&null!=this.graphConfig.hiddenTags&&null!=this.diagrams[this.currentPage]&&(M=this.diagrams[this.currentPage].getAttribute("id"),M=this.graphConfig.hiddenTags[M],this.graph.hiddenTags=null!=M&&0<M.length?M:[]);this.updateGraphXml(Editor.parseDiagramNode(this.diagrams[this.currentPage]))}};this.selectPageById=function(M){M=this.getIndexById(M);var ca=0<=M;ca&&this.selectPage(M);return ca};q=mxUtils.bind(this,
+function(){if(null==this.xmlNode||"mxfile"!=this.xmlNode.nodeName)this.diagrams=[];this.xmlNode!=A&&(this.diagrams=this.xmlNode.getElementsByTagName("diagram"),A=this.xmlNode)});var D=this.graph.setBackgroundImage;this.graph.setBackgroundImage=function(M){if(null!=M&&Graph.isPageLink(M.src)){var ca=M.src,fa=ca.indexOf(",");0<fa&&(fa=n.getIndexById(ca.substring(fa+1)),0<=fa&&(M=n.getImageForGraphModel(Editor.parseDiagramNode(n.diagrams[fa])),M.originalSrc=ca))}D.apply(this,arguments)};var H=this.graph.getGraphBounds;
+this.graph.getGraphBounds=function(M){var ca=H.apply(this,arguments);M=this.backgroundImage;if(null!=M){var fa=this.view.translate,ha=this.view.scale;ca=mxRectangle.fromRectangle(ca);ca.add(new mxRectangle((fa.x+M.x)*ha,(fa.y+M.y)*ha,M.width*ha,M.height*ha))}return ca};this.addListener("xmlNodeChanged",q);q();urlParams.page=n.currentPage;q=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;q=this.setLayersVisible();if(this.tagsEnabled&&null!=this.graphConfig.hiddenTags&&null!=this.diagrams&&null!=this.diagrams[this.currentPage]){var K=this.diagrams[this.currentPage].getAttribute("id"),P=this.graphConfig.hiddenTags[K];null!=P&&0<P.length&&(this.graph.hiddenTags=P)}this.fireEvent(new mxEventObject("graphInitialized"));this.responsive||(this.graph.border=null!=this.graphConfig.border?this.graphConfig.border:8);this.installBackgroundColorHandler();GraphViewer.viewerInitialized(this)}finally{this.graph.getModel().endUpdate()}this.responsive||
(this.graph.panningHandler.isForcePanningEvent=function(M){return!mxEvent.isPopupTrigger(M.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.titleTooltip||
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.initialViewState={translate:this.graph.view.translate.clone(),scale:this.graph.view.scale};null!=q&&this.setLayersVisible(q);this.graph.customLinkClicked=function(M,ca){try{if(Graph.isPageLink(M)){var fa=M.indexOf(",");n.selectPageById(M.substring(fa+1))||alert(mxResources.get("pageNotFound")||"Page not found")}else{var ha=
this.getGraphBounds();this.handleCustomLink(M,ca);ha.equals(this.getGraphBounds())||n.crop()}}catch(ea){alert(ea.message)}return!0};var W=this.graph.foldTreeCell;this.graph.foldTreeCell=mxUtils.bind(this,function(){this.treeCellFolded=!0;return W.apply(this.graph,arguments)});this.fireEvent(new mxEventObject("render"))});m=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(this.checkVisibleState&&0==b.offsetWidth&&null==this.getAncestorDetails(b)&&"undefined"!==
-typeof m){var p=this.getObservableParent(b),z=new m(mxUtils.bind(this,function(G){0<b.offsetWidth&&(z.disconnect(),v())}));z.observe(p,{attributes:!0})}else v()}};
+typeof m){var p=this.getObservableParent(b),z=new m(mxUtils.bind(this,function(G){0<b.offsetWidth&&(z.disconnect(),u())}));z.observe(p,{attributes:!0})}else u()}};
GraphViewer.prototype.installBackgroundColorHandler=function(){var b=this.graph;if(null!=b){null!=GraphViewer.shapeBackgroundColor&&(b.shapeBackgroundColor=GraphViewer.shapeBackgroundColor);b.defaultPageBackgroundColor="transparent";b.diagramBackgroundColor="transparent";b.transparentBackground=!1;var d=b.background,m=mxUtils.bind(this,function(n){"none"==b.getAdaptiveColors()&&null==d&&(this.isDarkMode()?b.background="#ffffff":b.background=null,n&&b.view.validateBackground())});this.addListener("graphChanged",
function(){d=b.background;m(!0)});this.addListener("darkModeChanged",function(){m(!0)});m(!1)}};GraphViewer.prototype.installDarkModeListener=function(){null!=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",mxUtils.bind(this,function(){this.darkModeChanged();this.fireEvent(new mxEventObject("darkModeChanged"))}));this.darkModeChanged()};
GraphViewer.prototype.darkModeChanged=function(){if(null!=this.graph){var b=this.graph.container,d=this.isDarkMode();d?b.classList.add("geDarkMode"):b.classList.remove("geDarkMode");b.style.colorScheme=d?"dark":"light"}};GraphViewer.prototype.getAncestorDetails=function(b){for(;null!=b;){if("DETAILS"==b.nodeName)return b;b=b.parentNode}return null};
@@ -4454,23 +4458,23 @@ GraphViewer.prototype.getObservableParent=function(b){for(b=b.parentNode;b!=docu
GraphViewer.prototype.getImageForGraphModel=function(b){var d=Graph.createOffscreenGraph(this.graph.getStylesheet());d.getGlobalVariable=this.graph.getGlobalVariable;document.body.appendChild(d.container);b=(new mxCodec(b.ownerDocument)).decode(b).root;d.model.setRoot(b);b=d.getSvg();var m=d.getGraphBounds();document.body.removeChild(d.container);return new mxImage(Editor.createSvgDataUri(mxUtils.getXml(b)),m.width,m.height,m.x,m.y)};
GraphViewer.prototype.getIndexById=function(b){if(null!=this.diagrams)for(var d=0;d<this.diagrams.length;d++)if(this.diagrams[d].getAttribute("id")==b)return d;return-1};GraphViewer.prototype.setXmlNode=function(b){b=this.editor.extractGraphModel(b,!0);this.xmlDocument=b.ownerDocument;this.xml=mxUtils.getXml(b);this.xmlNode=b;this.updateGraphXml(b);this.fireEvent(new mxEventObject("xmlNodeChanged"))};
GraphViewer.prototype.setFileNode=function(b){null==this.xmlNode&&(this.xmlDocument=b.ownerDocument,this.xml=mxUtils.getXml(b),this.xmlNode=b);this.setGraphXml(b)};GraphViewer.prototype.updateGraphXml=function(b){this.setGraphXml(b);this.fireEvent(new mxEventObject("graphChanged"))};
-GraphViewer.prototype.setLayersVisible=function(b){var d=!0;if(!this.autoOrigin){var m=[],n=this.graph.getModel();n.beginUpdate();try{for(var v=0;v<n.getChildCount(n.root);v++){var p=n.getChildAt(n.root,v);d=d&&n.isVisible(p);m.push(n.isVisible(p));n.setVisible(p,null!=b?b[v]:!0)}}finally{n.endUpdate()}}return d?null:m};
+GraphViewer.prototype.setLayersVisible=function(b){var d=!0;if(!this.autoOrigin){var m=[],n=this.graph.getModel();n.beginUpdate();try{for(var u=0;u<n.getChildCount(n.root);u++){var p=n.getChildAt(n.root,u);d=d&&n.isVisible(p);m.push(n.isVisible(p));n.setVisible(p,null!=b?b[u]:!0)}}finally{n.endUpdate()}}return d?null:m};
GraphViewer.prototype.setGraphXml=function(b){if(null!=this.graph){this.graph.view.translate=new mxPoint;this.graph.view.scale=1;var d=null;this.graph.getModel().beginUpdate();try{this.graph.getModel().clear(),this.editor.setGraphXml(b),d=this.setLayersVisible(!0)}finally{this.graph.getModel().endUpdate()}this.responsive||(this.widthIsEmpty?(this.graph.container.style.width="",this.graph.container.style.height=""):this.graph.container.style.width=this.initialWidth,this.positionGraph());this.graph.initialViewState=
{translate:this.graph.view.translate.clone(),scale:this.graph.view.scale};d&&this.setLayersVisible(d)}};GraphViewer.prototype.isDarkMode=function(){return"dark"==this.darkMode||"auto"==this.darkMode&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches};
GraphViewer.prototype.addSizeHandler=function(){var b=this.graph.container,d=this.graph.getGraphBounds(),m=!1;b.style.overflow=1!=this.graphConfig["toolbar-nohide"]?"hidden":"visible";var n=mxUtils.bind(this,function(){if(!m){m=!0;var G=this.graph.getGraphBounds();b.style.overflow=1!=this.graphConfig["toolbar-nohide"]?G.width+2*this.graph.border>b.offsetWidth-2?"auto":"hidden":"visible";if(null!=this.toolbar&&1!=this.graphConfig["toolbar-nohide"]){G=b.getBoundingClientRect();var U=mxUtils.getScrollOrigin(document.body);
U="relative"===document.body.style.position?document.body.getBoundingClientRect():{left:-U.x,top:-U.y};G={left:G.left-U.left,top:G.top-U.top,bottom:G.bottom-U.top,right:G.right-U.left};this.toolbar.style.left=G.left+"px";"bottom"==this.graphConfig["toolbar-position"]?this.toolbar.style.top=G.bottom-1+"px":"inline"!=this.graphConfig["toolbar-position"]?(this.toolbar.style.width=Math.max(this.minToolbarWidth,b.offsetWidth)+"px",this.toolbar.style.top=G.top+1+"px"):this.toolbar.style.top=G.top+"px"}else null!=
-this.toolbar&&(this.toolbar.style.width=Math.max(this.minToolbarWidth,b.offsetWidth)+"px");this.treeCellFolded&&(this.treeCellFolded=!1,this.positionGraph(this.graph.view.translate),this.graph.initialViewState.translate=this.graph.view.translate.clone());m=!1}}),v=null;this.handlingResize=!1;this.fitGraph=mxUtils.bind(this,function(G){var U=b.offsetWidth;U==v||this.handlingResize||(this.handlingResize=!0,"auto"==b.style.overflow&&(b.style.overflow="hidden"),this.graph.maxFitScale=null!=G?G:this.graphConfig.zoom||
-(this.allowZoomIn?null:1),this.graph.fit(null,null,null,null,null,!0),(this.center||0==this.graphConfig.resize&&""!=b.style.height)&&this.graph.center(!0,this.hCenterOnly?!1:!0),this.graph.maxFitScale=null,(0!=this.graphConfig.resize||""==b.style.height||this.hCenterOnly)&&this.updateContainerHeight(b,Math.max(this.minHeight,this.graph.getGraphBounds().height+2*this.graph.border+1)),this.graph.initialViewState={translate:this.graph.view.translate.clone(),scale:this.graph.view.scale},v=U,window.setTimeout(mxUtils.bind(this,
+this.toolbar&&(this.toolbar.style.width=Math.max(this.minToolbarWidth,b.offsetWidth)+"px");this.treeCellFolded&&(this.treeCellFolded=!1,this.positionGraph(this.graph.view.translate),this.graph.initialViewState.translate=this.graph.view.translate.clone());m=!1}}),u=null;this.handlingResize=!1;this.fitGraph=mxUtils.bind(this,function(G){var U=b.offsetWidth;U==u||this.handlingResize||(this.handlingResize=!0,"auto"==b.style.overflow&&(b.style.overflow="hidden"),this.graph.maxFitScale=null!=G?G:this.graphConfig.zoom||
+(this.allowZoomIn?null:1),this.graph.fit(null,null,null,null,null,!0),(this.center||0==this.graphConfig.resize&&""!=b.style.height)&&this.graph.center(!0,this.hCenterOnly?!1:!0),this.graph.maxFitScale=null,(0!=this.graphConfig.resize||""==b.style.height||this.hCenterOnly)&&this.updateContainerHeight(b,Math.max(this.minHeight,this.graph.getGraphBounds().height+2*this.graph.border+1)),this.graph.initialViewState={translate:this.graph.view.translate.clone(),scale:this.graph.view.scale},u=U,window.setTimeout(mxUtils.bind(this,
function(){this.handlingResize=!1}),0))});GraphViewer.useResizeSensor&&(9>=document.documentMode?(mxEvent.addListener(window,"resize",n),this.graph.addListener("size",n)):new ResizeSensor(this.graph.container,n));if(this.graphConfig.resize||(this.zoomEnabled||!this.autoFit)&&0!=this.graphConfig.resize)this.graph.minimumContainerSize=new mxRectangle(0,0,this.minWidth,this.minHeight),this.graph.resizeContainer=!0;else if(!this.widthIsEmpty||""!=b.style.height&&this.autoFit||this.updateContainerWidth(b,
-d.width+2*this.graph.border),0==this.graphConfig.resize&&""!=b.style.height||this.updateContainerHeight(b,Math.max(this.minHeight,d.height+2*this.graph.border+1)),!this.zoomEnabled&&this.autoFit){var p=v=null;n=mxUtils.bind(this,function(){window.clearTimeout(p);this.handlingResize||(p=window.setTimeout(mxUtils.bind(this,this.fitGraph),100))});GraphViewer.useResizeSensor&&(9>=document.documentMode?mxEvent.addListener(window,"resize",n):new ResizeSensor(this.graph.container,n))}else 9>=document.documentMode||
+d.width+2*this.graph.border),0==this.graphConfig.resize&&""!=b.style.height||this.updateContainerHeight(b,Math.max(this.minHeight,d.height+2*this.graph.border+1)),!this.zoomEnabled&&this.autoFit){var p=u=null;n=mxUtils.bind(this,function(){window.clearTimeout(p);this.handlingResize||(p=window.setTimeout(mxUtils.bind(this,this.fitGraph),100))});GraphViewer.useResizeSensor&&(9>=document.documentMode?mxEvent.addListener(window,"resize",n):new ResizeSensor(this.graph.container,n))}else 9>=document.documentMode||
this.graph.addListener("size",n);var z=mxUtils.bind(this,function(G){var U=b.style.minWidth;this.widthIsEmpty&&(b.style.minWidth="100%");var E=null!=this.graphConfig["max-height"]?this.graphConfig["max-height"]:""!=b.style.height&&this.autoFit?b.offsetHeight:void 0;0<b.offsetWidth&&null==G&&this.allowZoomOut&&(this.allowZoomIn||d.width+2*this.graph.border>b.offsetWidth||d.height+2*this.graph.border>E)?(G=null,null!=E&&d.height+2*this.graph.border>E-2&&(G=(E-2*this.graph.border-2)/d.height),this.fitGraph(G)):
-this.widthIsEmpty||null!=G||0!=this.graphConfig.resize||""==b.style.height?(G=null!=G?G:new mxPoint,this.graph.view.setTranslate(Math.floor(this.graph.border-d.x/this.graph.view.scale)+G.x,Math.floor(this.graph.border-d.y/this.graph.view.scale)+G.y),v=b.offsetWidth):this.graph.center((!this.widthIsEmpty||d.width<this.minWidth)&&1!=this.graphConfig.resize);b.style.minWidth=U});8==document.documentMode?window.setTimeout(z,0):z();this.positionGraph=function(G){d=this.graph.getGraphBounds();v=null;z(G)}};
+this.widthIsEmpty||null!=G||0!=this.graphConfig.resize||""==b.style.height?(G=null!=G?G:new mxPoint,this.graph.view.setTranslate(Math.floor(this.graph.border-d.x/this.graph.view.scale)+G.x,Math.floor(this.graph.border-d.y/this.graph.view.scale)+G.y),u=b.offsetWidth):this.graph.center((!this.widthIsEmpty||d.width<this.minWidth)&&1!=this.graphConfig.resize);b.style.minWidth=U});8==document.documentMode?window.setTimeout(z,0):z();this.positionGraph=function(G){d=this.graph.getGraphBounds();u=null;z(G)}};
GraphViewer.prototype.crop=function(){var b=this.graph,d=b.getGraphBounds(),m=b.border,n=b.view.scale;b.view.setTranslate(null!=d.x?Math.floor(b.view.translate.x-d.x/n+m):m,null!=d.y?Math.floor(b.view.translate.y-d.y/n+m):m)};GraphViewer.prototype.updateContainerWidth=function(b,d){b.style.width=d+"px"};GraphViewer.prototype.updateContainerHeight=function(b,d){if(this.forceCenter||this.zoomEnabled||!this.autoFit||"BackCompat"==document.compatMode||8==document.documentMode)b.style.height=d+"px"};
-GraphViewer.prototype.showLayers=function(b,d){var m=this.graphConfig.layers;m=null!=m&&0<m.length?m.split(" "):[];var n=this.graphConfig.layerIds,v=null!=n&&0<n.length,p=!1;if(0<m.length||v||null!=d){d=null!=d?d.getModel():null;b=b.getModel();b.beginUpdate();try{var z=b.getChildCount(b.root);if(null==d){d=!1;p={};if(v)for(var G=0;G<n.length;G++){var U=b.getCell(n[G]);null!=U&&(d=!0,p[U.id]=!0)}else for(G=0;G<m.length;G++)U=b.getChildAt(b.root,parseInt(m[G])),null!=U&&(d=!0,p[U.id]=!0);for(G=0;d&&
+GraphViewer.prototype.showLayers=function(b,d){var m=this.graphConfig.layers;m=null!=m&&0<m.length?m.split(" "):[];var n=this.graphConfig.layerIds,u=null!=n&&0<n.length,p=!1;if(0<m.length||u||null!=d){d=null!=d?d.getModel():null;b=b.getModel();b.beginUpdate();try{var z=b.getChildCount(b.root);if(null==d){d=!1;p={};if(u)for(var G=0;G<n.length;G++){var U=b.getCell(n[G]);null!=U&&(d=!0,p[U.id]=!0)}else for(G=0;G<m.length;G++)U=b.getChildAt(b.root,parseInt(m[G])),null!=U&&(d=!0,p[U.id]=!0);for(G=0;d&&
G<z;G++)U=b.getChildAt(b.root,G),b.setVisible(U,p[U.id]||!1)}else for(G=0;G<z;G++)b.setVisible(b.getChildAt(b.root,G),d.isVisible(d.getChildAt(d.root,G)))}finally{b.endUpdate()}p=!0}return p};
GraphViewer.prototype.addToolbar=function(){var b=this.graph.container;"bottom"==this.graphConfig["toolbar-position"]?b.style.marginBottom=this.toolbarHeight+"px":"inline"!=this.graphConfig["toolbar-position"]&&(b.style.marginTop=this.toolbarHeight+"px");var d=b.ownerDocument.createElement("div");d.style.display="flex";d.style.alignItems="center";d.style.position="absolute";d.style.overflow="hidden";d.style.boxSizing="border-box";d.style.whiteSpace="nowrap";d.style.textAlign="left";d.style.zIndex=
this.toolbarZIndex;d.style.backgroundColor="light-dark(#eeeeee, "+GraphViewer.darkBackgroundColor+")";d.style.height=this.toolbarHeight+"px";var m=mxUtils.bind(this,function(){this.isDarkMode()?(d.classList.add("geDarkMode"),d.style.colorScheme="dark"):(d.classList.remove("geDarkMode"),d.style.colorScheme="light")});this.addListener("darkModeChanged",m);this.toolbar=d;m();if("inline"==this.graphConfig["toolbar-position"]){mxUtils.setPrefixedStyle(d.style,"transition","opacity 100ms ease-in-out");
-mxUtils.setOpacity(d,30);var n=null,v=null,p=mxUtils.bind(this,function(fa){null!=n&&(window.clearTimeout(n),fadeThead=null);null!=v&&(window.clearTimeout(v),fadeThead2=null);n=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(d,0);n=null;v=window.setTimeout(mxUtils.bind(this,function(){d.style.display="none";v=null}),100)}),fa||200)}),z=mxUtils.bind(this,function(fa){null!=n&&(window.clearTimeout(n),fadeThead=null);null!=v&&(window.clearTimeout(v),fadeThead2=null);d.style.display=
+mxUtils.setOpacity(d,30);var n=null,u=null,p=mxUtils.bind(this,function(fa){null!=n&&(window.clearTimeout(n),fadeThead=null);null!=u&&(window.clearTimeout(u),fadeThead2=null);n=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(d,0);n=null;u=window.setTimeout(mxUtils.bind(this,function(){d.style.display="none";u=null}),100)}),fa||200)}),z=mxUtils.bind(this,function(fa){null!=n&&(window.clearTimeout(n),fadeThead=null);null!=u&&(window.clearTimeout(u),fadeThead2=null);d.style.display=
"flex";mxUtils.setOpacity(d,fa||30)});mxEvent.addListener(this.graph.container,mxClient.IS_POINTER?"pointermove":"mousemove",mxUtils.bind(this,function(fa){mxEvent.isTouchEvent(fa)||(z(30),p())}));mxEvent.addListener(d,mxClient.IS_POINTER?"pointermove":"mousemove",function(fa){mxEvent.consume(fa)});mxEvent.addListener(d,"mouseenter",mxUtils.bind(this,function(fa){z(100)}));mxEvent.addListener(d,"mousemove",mxUtils.bind(this,function(fa){z(100);mxEvent.consume(fa)}));mxEvent.addListener(d,"mouseleave",
mxUtils.bind(this,function(fa){mxEvent.isTouchEvent(fa)||z(30)}));var G=this.graph,U=G.getTolerance();G.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(fa,ha){this.startX=ha.getGraphX();this.startY=ha.getGraphY();this.scrollLeft=G.container.scrollLeft;this.scrollTop=G.container.scrollTop},mouseMove:function(fa,ha){},mouseUp:function(fa,ha){mxEvent.isTouchEvent(ha.getEvent())&&Math.abs(this.scrollLeft-G.container.scrollLeft)<U&&Math.abs(this.scrollTop-G.container.scrollTop)<
U&&Math.abs(this.startX-ha.getGraphX())<U&&Math.abs(this.startY-ha.getGraphY())<U&&(0<parseFloat(d.style.opacity||0)?p():z(30))}})}m=this.toolbarItems;for(var E=0,R=mxUtils.bind(this,function(fa,ha,ea,ka){fa=this.createToolbarButton(fa,ha,ea,ka);d.appendChild(fa);E++;return fa}),N=this.graph.getModel(),c=null,g=null,k=null,q=null,A=0;A<m.length;A++){var D=m[A];if("pages"==D){q=b.ownerDocument.createElement("div");q.style.display="inline-flex";q.style.position="relative";q.style.alignItems="center";
@@ -4490,27 +4494,27 @@ this.graphConfig.titleTooltip||this.graphConfig.title),mxUtils.write(m,this.grap
ha="relative"===document.body.style.position?document.body.getBoundingClientRect():{left:-ha.x,top:-ha.y};fa={left:fa.left-ha.left,top:fa.top-ha.top,bottom:fa.bottom-ha.top,right:fa.right-ha.left};d.style.left=fa.left+"px";"bottom"==this.graphConfig["toolbar-position"]?d.style.top=fa.bottom-1+"px":"inline"!=this.graphConfig["toolbar-position"]?(d.style.marginTop=-this.toolbarHeight+"px",d.style.top=fa.top+1+"px"):d.style.top=fa.top+"px";"1px solid transparent"==M&&(b.style.border="1px solid #d0d0d0");
document.body.appendChild(d);var ea=mxUtils.bind(this,function(){null!=d.parentNode&&d.parentNode.removeChild(d);null!=k&&(k.parentNode.removeChild(k),k=null);null!=c&&(c.parentNode.removeChild(c),c=null);b.style.border=M});mxEvent.addListener(document,"mousemove",function(ka){for(ka=mxEvent.getSource(ka);null!=ka;){if(ka==b||ka==d||ka==c||ka==k)return;ka=ka.parentNode}ea()});mxEvent.addListener(document.body,"mouseleave",function(ka){ea()})}else d.style.top=-this.toolbarHeight+"px",b.appendChild(d)});
1!=this.graphConfig["toolbar-nohide"]?mxEvent.addListener(b,"mouseenter",ca):ca();this.responsive&&"undefined"!==typeof ResizeObserver&&(new ResizeObserver(function(){null!=d.parentNode&&ca()})).observe(b)};
-GraphViewer.prototype.createToolbarButton=function(b,d,m,n){var v=document.createElement("div");v.style.borderRight="1px solid #d0d0d0";v.style.display="inline-flex";v.style.alignItems="center";v.style.padding="6px";mxEvent.addListener(v,"click",b);null!=m&&v.setAttribute("title",m);b=document.createElement("img");b.setAttribute("border","0");b.setAttribute("src",d);b.style.width="18px";b.className="geAdaptiveAsset";null==n||n?(mxEvent.addListener(v,"mouseenter",function(){v.style.backgroundColor=
-"light-dark(#dddddd,#333333)"}),mxEvent.addListener(v,"mouseleave",function(){v.style.backgroundColor="transparent"}),mxUtils.setOpacity(b,60),v.style.cursor="pointer"):mxUtils.setOpacity(v,30);v.appendChild(b);return v};
+GraphViewer.prototype.createToolbarButton=function(b,d,m,n){var u=document.createElement("div");u.style.borderRight="1px solid #d0d0d0";u.style.display="inline-flex";u.style.alignItems="center";u.style.padding="6px";mxEvent.addListener(u,"click",b);null!=m&&u.setAttribute("title",m);b=document.createElement("img");b.setAttribute("border","0");b.setAttribute("src",d);b.style.width="18px";b.className="geAdaptiveAsset";null==n||n?(mxEvent.addListener(u,"mouseenter",function(){u.style.backgroundColor=
+"light-dark(#dddddd,#333333)"}),mxEvent.addListener(u,"mouseleave",function(){u.style.backgroundColor="transparent"}),mxUtils.setOpacity(b,60),u.style.cursor="pointer"):mxUtils.setOpacity(u,30);u.appendChild(b);return u};
GraphViewer.prototype.disableButton=function(b,d){var m=this.graphConfig["toolbar-buttons"]?this.graphConfig["toolbar-buttons"][b]:null;null!=m&&(mxUtils.setOpacity(m.elem,30),mxEvent.removeListener(m.elem,"click",m.handler),mxEvent.addListener(m.elem,"mouseenter",function(){m.elem.style.backgroundColor="#eee"}),d&&m.elem.setAttribute("title",d))};
-GraphViewer.prototype.addClickHandler=function(b,d){b.linkPolicy=this.graphConfig.target||b.linkPolicy;b.addClickHandler(this.graphConfig.highlight,mxUtils.bind(this,function(m,n,v){if(null==n)for(var p=mxEvent.getSource(m);p!=b.container&&null!=p&&null==n;)"a"==p.nodeName.toLowerCase()&&(n=p.getAttribute("href")),p=p.parentNode;null!=d?null==n||b.isCustomLink(n)?mxEvent.consume(m):b.isExternalProtocol(n)||b.isBlankLink(n)||window.setTimeout(function(){d.destroy()},0):null!=n&&null==d&&b.isCustomLink(n)&&
-(mxEvent.isTouchEvent(m)||!mxEvent.isPopupTrigger(m))&&b.customLinkClicked(n,v)&&(mxUtils.clearSelection(),mxEvent.consume(m))}),mxUtils.bind(this,function(m){if(null==d&&this.lightboxClickEnabled&&(!mxEvent.isTouchEvent(m)||0==this.toolbarItems.length))try{this.showLightbox()}catch(n){alert(n.message)}}))};
-GraphViewer.prototype.showLightbox=function(b,d,m){if("open"==this.graphConfig.lightbox||window.self!==window.top)if(null==this.lightboxWindow||this.lightboxWindow.closed){b=null!=b?b:null!=this.graphConfig.editable?this.graphConfig.editable:!0;m={client:1,target:null!=m?m:"blank"};b&&(m.edit=this.graphConfig.edit||"_blank");if(null!=d?d:1)m.close=1;this.layersEnabled&&(m.layers=1);this.tagsEnabled&&(b=this.diagrams[this.currentPage].getAttribute("id"),null==this.graphConfig.hiddenTags&&(this.graphConfig.hiddenTags=
-{}),this.graphConfig.hiddenTags[b]=0<this.graph.hiddenTags.length?this.graph.hiddenTags.slice():null,m.tags=this.graphConfig.hiddenTags);null!=this.graphConfig&&0!=this.graphConfig.nav&&(m.nav=1);null!=this.graphConfig&&null!=this.graphConfig.highlight&&(m.highlight=this.graphConfig.highlight.substring(1));null!=this.currentPage&&0<this.currentPage&&(m.page=this.currentPage);"undefined"!==typeof window.postMessage&&(null==document.documentMode||10<=document.documentMode)?null==this.lightboxWindow&&
-mxEvent.addListener(window,"message",mxUtils.bind(this,function(n){"ready"==n.data&&n.source==this.lightboxWindow&&this.lightboxWindow.postMessage(this.xml,"*")})):m.data=encodeURIComponent(this.xml);"1"==urlParams.dev&&(m.dev="1");this.lightboxWindow=window.open(("1"!=urlParams.dev?EditorUi.lightboxHost:"https://test.draw.io")+"/#P"+encodeURIComponent(JSON.stringify(m)))}else this.lightboxWindow.focus();else this.showLocalLightbox()};
+GraphViewer.prototype.addClickHandler=function(b,d){b.linkPolicy=this.graphConfig.target||b.linkPolicy;b.addClickHandler(this.graphConfig.highlight,mxUtils.bind(this,function(m,n,u){if(null==n)for(var p=mxEvent.getSource(m);p!=b.container&&null!=p&&null==n;)"a"==p.nodeName.toLowerCase()&&(n=p.getAttribute("href")),p=p.parentNode;null!=d?null==n||b.isCustomLink(n)?mxEvent.consume(m):b.isExternalProtocol(n)||b.isBlankLink(n)||window.setTimeout(function(){d.destroy()},0):null!=n&&null==d&&b.isCustomLink(n)&&
+(mxEvent.isTouchEvent(m)||!mxEvent.isPopupTrigger(m))&&b.customLinkClicked(n,u)&&(mxUtils.clearSelection(),mxEvent.consume(m))}),mxUtils.bind(this,function(m){if(null==d&&this.lightboxClickEnabled&&(!mxEvent.isTouchEvent(m)||0==this.toolbarItems.length))try{this.showLightbox()}catch(n){alert(n.message)}}))};
+GraphViewer.prototype.showLightbox=function(b,d,m){if("open"==this.graphConfig.lightbox||window.self!==window.top)if(null==this.lightboxWindow||this.lightboxWindow.closed){b=null!=b?b:null!=this.graphConfig.editable?this.graphConfig.editable:!0;m={client:1,target:null!=m?m:"blank"};b&&(m.edit=this.graphConfig.edit||"_blank");if(null!=d?d:1)m.close=1;this.layersEnabled&&(m.layers=1);this.tagsEnabled&&null!=this.diagrams&&null!=this.diagrams[this.currentPage]&&(b=this.diagrams[this.currentPage].getAttribute("id"),
+null==this.graphConfig.hiddenTags&&(this.graphConfig.hiddenTags={}),this.graphConfig.hiddenTags[b]=0<this.graph.hiddenTags.length?this.graph.hiddenTags.slice():null,m.tags=this.graphConfig.hiddenTags);null!=this.graphConfig&&0!=this.graphConfig.nav&&(m.nav=1);null!=this.graphConfig&&null!=this.graphConfig.highlight&&(m.highlight=this.graphConfig.highlight.substring(1));null!=this.currentPage&&0<this.currentPage&&(m.page=this.currentPage);"undefined"!==typeof window.postMessage&&(null==document.documentMode||
+10<=document.documentMode)?null==this.lightboxWindow&&mxEvent.addListener(window,"message",mxUtils.bind(this,function(n){"ready"==n.data&&n.source==this.lightboxWindow&&this.lightboxWindow.postMessage(this.xml,"*")})):m.data=encodeURIComponent(this.xml);"1"==urlParams.dev&&(m.dev="1");this.lightboxWindow=window.open(("1"!=urlParams.dev?EditorUi.lightboxHost:"https://test.draw.io")+"/#P"+encodeURIComponent(JSON.stringify(m)))}else this.lightboxWindow.focus();else this.showLocalLightbox()};
GraphViewer.prototype.showLocalLightbox=function(b){var d=document.createElement("div");d.style.position="fixed";d.style.top="0";d.style.left="0";d.style.bottom="0";d.style.right="0";d.style.zIndex=this.lightboxZIndex;d.style.backgroundColor="#000000";mxUtils.setOpacity(d,70);document.body.appendChild(d);var m=document.createElement("img");m.setAttribute("border","0");m.setAttribute("src",Editor.closeBlackImage);m.style.position="fixed";m.style.top="32px";m.style.right="32px";m.style.cursor="pointer";
m.className="geAdaptiveAsset";var n=mxUtils.bind(this,function(){z.setDarkMode(this.isDarkMode())});mxEvent.addListener(m,"click",mxUtils.bind(this,function(){this.removeListener("darkModeChanged",n);z.destroy()}));urlParams.pages="1";urlParams.page=this.currentPage;urlParams["page-id"]=this.graphConfig.pageId;urlParams["layer-ids"]=null!=this.graphConfig.layerIds&&0<this.graphConfig.layerIds.length?this.graphConfig.layerIds.join(" "):null;urlParams.nav=0!=this.graphConfig.nav?"1":"0";urlParams.layers=
-this.layersEnabled?"1":"0";urlParams.dark=this.isDarkMode()?"1":"0";if(this.tagsEnabled){var v=this.diagrams[this.currentPage].getAttribute("id");null==this.graphConfig.hiddenTags&&(this.graphConfig.hiddenTags={});this.graphConfig.hiddenTags[v]=0<this.graph.hiddenTags.length?this.graph.hiddenTags.slice():null;urlParams.tags=JSON.stringify(this.graphConfig.hiddenTags)}if(null!=b)try{var p=JSON.parse(decodeURIComponent(urlParams["toolbar-config"]||"{}"));p.noCloseBtn=!0;urlParams["toolbar-config"]=
-encodeURIComponent(JSON.stringify(p))}catch(k){}if(null==document.documentMode||10<=document.documentMode)Editor.prototype.editButtonLink=this.graphConfig.edit,Editor.prototype.editButtonFunc=this.graphConfig.editFunc;EditorUi.prototype.updateActionStates=function(){};EditorUi.prototype.addBeforeUnloadListener=function(){};EditorUi.prototype.addChromelessClickHandler=function(){};var z=new EditorUi(new Editor(!0),document.createElement("div"),!0);this.addListener("darkModeChanged",n);z.editor.editBlankUrl=
-this.editBlankUrl;z.refresh=function(){};var G=mxUtils.bind(this,function(k){27==k.keyCode&&z.destroy()}),U=this.initialOverflow,E=z.destroy;z.destroy=function(){null==b&&(mxEvent.removeListener(document.documentElement,"keydown",G),document.body.removeChild(d),document.body.removeChild(m),document.body.style.overflow=U,GraphViewer.resizeSensorEnabled=!0,E.apply(this,arguments))};var R=z.editor.graph,N=R.container;N.style.overflow="hidden";N.style.inset="0";this.lightboxChrome&&null==b?(N.style.border=
-"1px solid #c0c0c0",N.style.margin="40px",mxEvent.addListener(document.documentElement,"keydown",G)):(d.style.display="none",m.style.display="none");var c=this;R.getImageFromBundles=function(k){return c.getImageUrl(k)};var g=z.createTemporaryGraph;z.createTemporaryGraph=function(){var k=g.apply(this,arguments);k.getImageFromBundles=function(q){return c.getImageUrl(q)};return k};this.graphConfig.move&&(R.isMoveCellsEvent=function(k){return!0});mxUtils.setPrefixedStyle(N.style,"border-radius","4px");
-N.style.position="fixed";GraphViewer.resizeSensorEnabled=!1;document.body.style.overflow="hidden";this.addClickHandler(R,z);window.setTimeout(mxUtils.bind(this,function(){try{mxEvent.addListener(d,"click",function(){z.destroy()});N.style.outline="none";N.style.zIndex=this.lightboxZIndex;m.style.zIndex=this.lightboxZIndex;null!=b?(b.innerHTML="",b.appendChild(N)):(document.body.appendChild(N),document.body.appendChild(m));z.setFileData(this.xml);if(this.tagsEnabled&&null!=this.graphConfig.hiddenTags&&
-null!=z.currentPage){var k=z.currentPage.getId(),q=this.graphConfig.hiddenTags[k];R.hiddenTags=null!=q&&0<q.length?q:[];R.refresh()}mxUtils.setPrefixedStyle(N.style,"transform","rotateY(0deg)");z.chromelessToolbar.style.bottom="60px";z.chromelessToolbar.style.zIndex=this.lightboxZIndex;(b||document.body).appendChild(z.chromelessToolbar);z.getEditBlankXml=mxUtils.bind(this,function(){return this.xml});this.showLayers(R,this.graph);z.lightboxFit();z.chromelessResize()}catch(A){z.handleError(A,null,
-function(){z.destroy()})}}),0);return z};Dialog.prototype.getDocumentSize=function(){return new mxRectangle(0,0,Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0))};
+this.layersEnabled?"1":"0";urlParams.dark=this.isDarkMode()?"1":"0";if(this.tagsEnabled&&null!=this.diagrams&&null!=this.diagrams[this.currentPage]){var u=this.diagrams[this.currentPage].getAttribute("id");null==this.graphConfig.hiddenTags&&(this.graphConfig.hiddenTags={});this.graphConfig.hiddenTags[u]=0<this.graph.hiddenTags.length?this.graph.hiddenTags.slice():null;urlParams.tags=JSON.stringify(this.graphConfig.hiddenTags)}if(null!=b)try{var p=JSON.parse(decodeURIComponent(urlParams["toolbar-config"]||
+"{}"));p.noCloseBtn=!0;urlParams["toolbar-config"]=encodeURIComponent(JSON.stringify(p))}catch(k){}if(null==document.documentMode||10<=document.documentMode)Editor.prototype.editButtonLink=this.graphConfig.edit,Editor.prototype.editButtonFunc=this.graphConfig.editFunc;EditorUi.prototype.updateActionStates=function(){};EditorUi.prototype.addBeforeUnloadListener=function(){};EditorUi.prototype.addChromelessClickHandler=function(){};var z=new EditorUi(new Editor(!0),document.createElement("div"),!0);
+this.addListener("darkModeChanged",n);z.editor.editBlankUrl=this.editBlankUrl;z.refresh=function(){};var G=mxUtils.bind(this,function(k){27==k.keyCode&&z.destroy()}),U=this.initialOverflow,E=z.destroy;z.destroy=function(){null==b&&(mxEvent.removeListener(document.documentElement,"keydown",G),document.body.removeChild(d),document.body.removeChild(m),document.body.style.overflow=U,GraphViewer.resizeSensorEnabled=!0,E.apply(this,arguments))};var R=z.editor.graph,N=R.container;N.style.overflow="hidden";
+N.style.inset="0";this.lightboxChrome&&null==b?(N.style.border="1px solid #c0c0c0",N.style.margin="40px",mxEvent.addListener(document.documentElement,"keydown",G)):(d.style.display="none",m.style.display="none");var c=this;R.getImageFromBundles=function(k){return c.getImageUrl(k)};var g=z.createTemporaryGraph;z.createTemporaryGraph=function(){var k=g.apply(this,arguments);k.getImageFromBundles=function(q){return c.getImageUrl(q)};return k};this.graphConfig.move&&(R.isMoveCellsEvent=function(k){return!0});
+mxUtils.setPrefixedStyle(N.style,"border-radius","4px");N.style.position="fixed";GraphViewer.resizeSensorEnabled=!1;document.body.style.overflow="hidden";this.addClickHandler(R,z);window.setTimeout(mxUtils.bind(this,function(){try{mxEvent.addListener(d,"click",function(){z.destroy()});N.style.outline="none";N.style.zIndex=this.lightboxZIndex;m.style.zIndex=this.lightboxZIndex;null!=b?(b.innerHTML="",b.appendChild(N)):(document.body.appendChild(N),document.body.appendChild(m));z.setFileData(this.xml);
+if(this.tagsEnabled&&null!=this.graphConfig.hiddenTags&&null!=z.currentPage){var k=z.currentPage.getId(),q=this.graphConfig.hiddenTags[k];R.hiddenTags=null!=q&&0<q.length?q:[];R.refresh()}mxUtils.setPrefixedStyle(N.style,"transform","rotateY(0deg)");z.chromelessToolbar.style.bottom="60px";z.chromelessToolbar.style.zIndex=this.lightboxZIndex;(b||document.body).appendChild(z.chromelessToolbar);z.getEditBlankXml=mxUtils.bind(this,function(){return this.xml});this.showLayers(R,this.graph);z.lightboxFit();
+z.chromelessResize()}catch(A){z.handleError(A,null,function(){z.destroy()})}}),0);return z};Dialog.prototype.getDocumentSize=function(){return new mxRectangle(0,0,Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0))};
GraphViewer.prototype.updateTitle=function(b,d){b=b||"";this.showTitleAsTooltip&&null!=this.graph&&null!=this.graph.container&&this.graph.container.setAttribute("title",d||b);null!=this.filename&&(this.filename.innerText="",mxUtils.write(this.filename,b),this.filename.setAttribute("title",d||b))};
GraphViewer.processElements=function(b){mxUtils.forEach(GraphViewer.getElementsByClassName(b||"mxgraph"),function(d){try{d.innerText="",GraphViewer.createViewerForElement(d)}catch(m){d.innerText=m.message,null!=window.console&&console.error(m)}})};
-GraphViewer.getElementsByClassName=function(b){if(document.getElementsByClassName){var d=document.getElementsByClassName(b);b=[];for(var m=0;m<d.length;m++)b.push(d[m]);return b}var n=document.getElementsByTagName("*");d=[];for(m=0;m<n.length;m++){var v=n[m].className;null!=v&&0<v.length&&(v=v.split(" "),0<=mxUtils.indexOf(v,b)&&d.push(n[m]))}return d};
-GraphViewer.createViewerForElement=function(b,d){var m=b.getAttribute("data-mxgraph");if(null!=m){var n=JSON.parse(m),v=function(p){p=mxUtils.parseXml(p);p=new GraphViewer(b,p.documentElement,n);null!=d&&d(p)};null!=n.url?GraphViewer.getUrl(n.url,function(p){v(p)}):v(n.xml)}};
+GraphViewer.getElementsByClassName=function(b){if(document.getElementsByClassName){var d=document.getElementsByClassName(b);b=[];for(var m=0;m<d.length;m++)b.push(d[m]);return b}var n=document.getElementsByTagName("*");d=[];for(m=0;m<n.length;m++){var u=n[m].className;null!=u&&0<u.length&&(u=u.split(" "),0<=mxUtils.indexOf(u,b)&&d.push(n[m]))}return d};
+GraphViewer.createViewerForElement=function(b,d){var m=b.getAttribute("data-mxgraph");if(null!=m){var n=JSON.parse(m),u=function(p){p=mxUtils.parseXml(p);p=new GraphViewer(b,p.documentElement,n);null!=d&&d(p)};null!=n.url?GraphViewer.getUrl(n.url,function(p){u(p)}):u(n.xml)}};
GraphViewer.blockedAncestorFrames=function(){try{if(window.location.ancestorOrigins&&window.location.hostname&&window.location.ancestorOrigins.length&&0<window.location.ancestorOrigins.length){var b=window.location.hostname;b&&1<b.length&&"/"==b.charAt(b.length-1)&&(b=b.substring(0,b.length-1));for(var d="",m=0;m<window.location.ancestorOrigins.length;m++)if(d+=" -> "+window.location.ancestorOrigins[m],d.endsWith("dan6v7pm1f1a1.cloudfront.net")||d.endsWith("confluence-cloud-excalidraw-ll3likebca-uc.a.run.app"))return!0;
(b.endsWith("ac.draw.io")||b.endsWith("aj.draw.io"))&&1==window.location.ancestorOrigins.length&&window.location.ancestorOrigins[0]&&window.location.ancestorOrigins[0].endsWith(".atlassian.net")}}catch(n){}return!1};GraphViewer.darkBackgroundColor=Editor.darkColor;GraphViewer.cssFontFamily=Editor.defaultHtmlFont;GraphViewer.shapeBackgroundColor=null;GraphViewer.viewerInitialized=function(b){};
GraphViewer.initCss=function(){try{null==GraphViewer.styleElement&&(GraphViewer.styleElement=document.createElement("style"),GraphViewer.styleElement.setAttribute("type","text/css"),GraphViewer.styleElement.innerHTML=GraphViewer.getCss(),GraphViewer.blockedAncestorFrames()||document.getElementsByTagName("head")[0].appendChild(GraphViewer.styleElement))}catch(b){}};
@@ -4520,8 +4524,8 @@ GraphViewer.getCss=function(){return[".geDarkMode img {\n filter: invert(1);\
"\t z-index: "+(GraphViewer.prototype.lightboxZIndex+2)+";","}\n.geBackground {"," background-color: light-dark(#ffffff, "+GraphViewer.darkBackgroundColor+");","\t position: fixed;\n left: 0px;\n top: 0px;\n right: 0px;\n bottom: 0px;\n opacity: 0.9;","\t z-index: "+(GraphViewer.prototype.lightboxZIndex+1)+";","}\n.geDialogTitle {\n box-sizing: border-box;\n white-space: nowrap;"," background: light-dark(#f1f3f4, "+GraphViewer.darkBackgroundColor+");"," border-bottom: 1px solid rgb(192, 192, 192);\n font-size: 15px;\n font-weight: bold;\n text-align: center;\n color: rgb(35, 86, 149);\n}\n.geDialogFooter {",
" background: light-dark(#f1f3f4, "+GraphViewer.darkBackgroundColor+");"," white-space: nowrap;\n text-align: right;\n box-sizing: border-box;\n border-top: 1px solid #e5e5e5;\n color: darkGray;\n}\n.geHelpIcon {\n width: 16px;\n margin: 0 4px;\n vertical-align: text-bottom;\n}\n.geBtn, .mxWindow .geBtn {\n background-color: light-dark(#eeeeee, #1b1d1e);\n border: 1px solid light-dark(#d8d8d8, #333333);\n color: light-dark(#3f3f3f, #c0c0c0);\n font-size: 13px;\n font-weight: 500;\n border-radius: 4px;\n height: 30px;\n margin: 0 0 0 8px;\n min-width: 72px;\n outline: 0;\n padding: 0 8px;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n.geBtn:hover:not(.gePrimaryBtn), .geBtn:focus {\n border: 1px solid light-dark(#c6c6c6, #333333);\n background: light-dark(#dadada, #333333);\n}\n.geBtn:disabled {\n opacity: .5;\n}\n.gePrimaryBtn {\n background: linear-gradient(light-dark(#4d90fe, #003555) 0px, light-dark(#4787ed, #003555) 100%);\n border: 1px solid light-dark(#3079ed, transparent);\n color: light-dark(#ffffff, #c0c0c0);\n}\n.gePrimaryBtn:hover:not([disabled]) {\n background: linear-gradient(light-dark(#4d90fe, #004a77) 0px, light-dark(#357ae8, #004a77) 100%);\n border: 1px solid light-dark(#2f5bb7, transparent);\n}\n.geBtn:disabled {\n opacity: .5;\n}"].join("\n")};
GraphViewer.cachedUrls={};GraphViewer.getUrl=function(b,d,m){if(null!=GraphViewer.cachedUrls[b])d(GraphViewer.cachedUrls[b]);else{var n=null!=navigator.userAgent&&0<navigator.userAgent.indexOf("MSIE 9")?new XDomainRequest:new XMLHttpRequest;n.open("GET",b);n.onload=function(){d(null!=n.getText?n.getText():n.responseText)};n.onerror=m;n.send()}};GraphViewer.resizeSensorEnabled=!0;GraphViewer.useResizeObserver=!0;GraphViewer.useResizeSensor=!0;
-(function(){var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(m){return window.setTimeout(m,20)},d=function(m,n){function v(){this.q=[];this.add=function(q){this.q.push(q)};var g,k;this.call=function(){g=0;for(k=this.q.length;g<k;g++)this.q[g].call()}}function p(g,k){return g.currentStyle?g.currentStyle[k]:window.getComputedStyle?window.getComputedStyle(g,null).getPropertyValue(k):g.style[k]}function z(g,k){if(!g.resizedAttached)g.resizedAttached=
-new v,g.resizedAttached.add(k);else if(g.resizedAttached){g.resizedAttached.add(k);return}g.resizeSensor=document.createElement("div");g.resizeSensor.className="resize-sensor";g.resizeSensor.style.cssText="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;";g.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>';
+(function(){var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(m){return window.setTimeout(m,20)},d=function(m,n){function u(){this.q=[];this.add=function(q){this.q.push(q)};var g,k;this.call=function(){g=0;for(k=this.q.length;g<k;g++)this.q[g].call()}}function p(g,k){return g.currentStyle?g.currentStyle[k]:window.getComputedStyle?window.getComputedStyle(g,null).getPropertyValue(k):g.style[k]}function z(g,k){if(!g.resizedAttached)g.resizedAttached=
+new u,g.resizedAttached.add(k);else if(g.resizedAttached){g.resizedAttached.add(k);return}g.resizeSensor=document.createElement("div");g.resizeSensor.className="resize-sensor";g.resizeSensor.style.cssText="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;";g.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>';
g.appendChild(g.resizeSensor);"static"==p(g,"position")&&(g.style.position="relative");var q=g.resizeSensor.childNodes[0],A=q.childNodes[0],D=g.resizeSensor.childNodes[1],H=function(){A.style.width="100000px";A.style.height="100000px";q.scrollLeft=1E5;q.scrollTop=1E5;D.scrollLeft=1E5;D.scrollTop=1E5};H();var K=!1,P=function(){g.resizedAttached&&(K&&(g.resizedAttached.call(),K=!1),b(P))};b(P);var W,M,ca,fa;k=function(){if((ca=g.offsetWidth)!=W||(fa=g.offsetHeight)!=M)K=!0,W=ca,M=fa;H()};var ha=function(ea,
ka,pa){ea.attachEvent?ea.attachEvent("on"+ka,pa):ea.addEventListener(ka,pa)};ha(q,"scroll",k);ha(D,"scroll",k)}var G=function(){GraphViewer.resizeSensorEnabled&&n()};if(GraphViewer.useResizeObserver&&"undefined"!==typeof ResizeObserver){var U=null,E=!1;(new ResizeObserver(function(){E||(null!=U&&window.clearTimeout(U),U=window.setTimeout(function(){E=!0;G();U=null;E=!1},200))})).observe(m)}else{var R=Object.prototype.toString.call(m),N="[object Array]"===R||"[object NodeList]"===R||"[object HTMLCollection]"===
R||"undefined"!==typeof jQuery&&m instanceof jQuery||"undefined"!==typeof Elements&&m instanceof Elements;if(N){R=0;for(var c=m.length;R<c;R++)z(m[R],G)}else z(m,G);this.detach=function(){if(N)for(var g=0,k=m.length;g<k;g++)d.detach(m[g]);else d.detach(m)}}};d.detach=function(m){m.resizeSensor&&(m.removeChild(m.resizeSensor),delete m.resizeSensor,delete m.resizedAttached)};window.ResizeSensor=d})();
diff --git a/src/main/webapp/js/viewer.min.js b/src/main/webapp/js/viewer.min.js
index a8695cef7..d94ec9247 100644
--- a/src/main/webapp/js/viewer.min.js
+++ b/src/main/webapp/js/viewer.min.js
@@ -31,7 +31,7 @@ b),-1!==c&&c===b&&(window.DRAWIO_LOG_URL="https://log.draw.io"))}})();"1"==urlPa
"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);"function"!==typeof window.structuredClone&&(window.structuredClone=function(a){return a});window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use","foreignObject"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,HTML_INTEGRATION_POINTS:{foreignobject:!0},ADD_ATTR:["target","content","pointer-events","requiredFeatures"]};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:"29.6.7",IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),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.")&&
+window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"29.6.10",IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),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:-1<navigator.userAgent.toLowerCase().indexOf("firefox"),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]"!==document.createElementNS("http://www.w3.org/2000/svg","foreignObject").toString()||0<=navigator.userAgent.indexOf("Opera/"),IS_WIN:0<navigator.appVersion.indexOf("Win"),IS_MAC:0<navigator.appVersion.indexOf("Mac"),IS_CHROMEOS:/\bCrOS\b/.test(navigator.appVersion),
@@ -1289,8 +1289,8 @@ mxGraph.prototype.moveCells=function(a,b,c,d,e,f,g){b=null!=b?b:0;c=null!=c?c:0;
!0);if(d)for(m=0;m<a.length;m++)q=this.getCellGeometry(a[m]),r=this.model.getParent(k[m]),null!=q&&q.relative&&this.model.isEdge(r)&&this.model.contains(r)&&this.model.add(r,a[m])}this.fireEvent(new mxEventObject(mxEvent.MOVE_CELLS,"cells",a,"dx",b,"dy",c,"clone",d,"target",e,"event",f))}finally{this.model.endUpdate()}}return a};
mxGraph.prototype.cellsMoved=function(a,b,c,d,e,f){if(null!=a&&(0!=b||0!=c)){f=null!=f?f:!1;this.model.beginUpdate();try{d&&this.disconnectGraph(a);for(var g=0;g<a.length;g++)this.translateCell(a[g],b,c),f&&this.isExtendParent(a[g])?this.extendParent(a[g]):e&&this.constrainChild(a[g]),this.isContractParentsOnMove()&&this.isContractParent(a[g])&&this.contractParent(a[g]);this.resetEdgesOnMove&&this.resetEdges(a);this.fireEvent(new mxEventObject(mxEvent.CELLS_MOVED,"cells",a,"dx",b,"dy",c,"disconnect",
d))}finally{this.model.endUpdate()}}};
-mxGraph.prototype.translateCell=function(a,b,c){var d=this.model.getGeometry(a);if(null!=d){b=parseFloat(b);c=parseFloat(c);d=d.clone();d.translate(b,c,this.model.isEdge(a));d.relative||!this.model.isVertex(a)||this.isAllowNegativeCoordinates()||(d.x=Math.max(0,parseFloat(d.x)),d.y=Math.max(0,parseFloat(d.y)));if(d.relative&&!this.model.isEdge(a)){var e=this.model.getParent(a),f=0;this.model.isVertex(e)&&(e=this.getCurrentCellStyle(e),f=mxUtils.getValue(e,mxConstants.STYLE_ROTATION,0));0!=f&&(f=mxUtils.toRadians(-f),
-e=Math.cos(f),f=Math.sin(f),c=mxUtils.getRotatedPoint(new mxPoint(b,c),e,f,new mxPoint(0,0)),b=c.x,c=c.y);null==d.offset?d.offset=new mxPoint(Math.round(b),Math.round(c)):(d.offset.x=Math.round(parseFloat(d.offset.x+b)),d.offset.y=Math.round(parseFloat(d.offset.y+c)))}this.model.setGeometry(a,d)}};
+mxGraph.prototype.translateCell=function(a,b,c){var d=this.model.getGeometry(a);if(null!=d&&"function"===typeof d.translate){b=parseFloat(b);c=parseFloat(c);d=d.clone();d.translate(b,c,this.model.isEdge(a));d.relative||!this.model.isVertex(a)||this.isAllowNegativeCoordinates()||(d.x=Math.max(0,parseFloat(d.x)),d.y=Math.max(0,parseFloat(d.y)));if(d.relative&&!this.model.isEdge(a)){var e=this.model.getParent(a),f=0;this.model.isVertex(e)&&(e=this.getCurrentCellStyle(e),f=mxUtils.getValue(e,mxConstants.STYLE_ROTATION,
+0));0!=f&&(f=mxUtils.toRadians(-f),e=Math.cos(f),f=Math.sin(f),c=mxUtils.getRotatedPoint(new mxPoint(b,c),e,f,new mxPoint(0,0)),b=c.x,c=c.y);null==d.offset?d.offset=new mxPoint(Math.round(b),Math.round(c)):(d.offset.x=Math.round(parseFloat(d.offset.x+b)),d.offset.y=Math.round(parseFloat(d.offset.y+c)))}this.model.setGeometry(a,d)}};
mxGraph.prototype.getCellContainmentArea=function(a){if(null!=a&&!this.model.isEdge(a)){var b=this.model.getParent(a);if(null!=b&&b!=this.getDefaultParent()){var c=this.model.getGeometry(b);if(null!=c){var d=a=0,e=c.width;c=c.height;if(this.isSwimlane(b)){var f=this.getStartSize(b),g=this.getCurrentCellStyle(b);b=mxUtils.getValue(g,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST);var k=1==mxUtils.getValue(g,mxConstants.STYLE_FLIPH,0);g=1==mxUtils.getValue(g,mxConstants.STYLE_FLIPV,0);if(b==
mxConstants.DIRECTION_SOUTH||b==mxConstants.DIRECTION_NORTH){var l=f.width;f.width=f.height;f.height=l}if(b==mxConstants.DIRECTION_EAST&&!g||b==mxConstants.DIRECTION_NORTH&&!k||b==mxConstants.DIRECTION_WEST&&g||b==mxConstants.DIRECTION_SOUTH&&k)a=f.width,d=f.height;e-=f.width;c-=f.height}return new mxRectangle(a,d,e,c)}}}return null};mxGraph.prototype.getMaximumGraphBounds=function(){return this.maximumGraphBounds};
mxGraph.prototype.constrainChild=function(a,b){if(null!=a&&(b=this.getCellGeometry(a),null!=b&&(this.isConstrainRelativeChildren()||!b.relative))){var c=this.model.getParent(a);this.getCellGeometry(c);var d=this.getMaximumGraphBounds();null!=d&&(c=this.getBoundingBoxFromGeometry([c],!1),null!=c&&(d=mxRectangle.fromRectangle(d),d.x-=c.x,d.y-=c.y));if(this.isConstrainChild(a)&&(c=this.getCellContainmentArea(a),null!=c)){var e=this.getOverlap(a);0<e&&(c=mxRectangle.fromRectangle(c),c.x-=c.width*e,c.y-=
@@ -1923,7 +1923,7 @@ var mxStylesheetCodec=mxCodecRegistry.register(function(){var a=new mxObjectCode
function(b,c){b=typeof c;"function"==b?c=mxStyleRegistry.getName(c):"object"==b&&(c=null);return c};a.decode=function(b,c,d){d=d||new this.template.constructor;var e=c.getAttribute("id");null!=e&&(b.objects[e]=d);for(c=c.firstChild;null!=c;){if(!this.processInclude(b,c,d)&&"add"==c.nodeName&&(e=c.getAttribute("as"),null!=e)){var f=c.getAttribute("extend"),g=null!=f?mxUtils.clone(d.styles[f]):null;null==g&&(null!=f&&mxLog.warn("mxStylesheetCodec.decode: stylesheet "+f+" not found to extend"),g={});
for(f=c.firstChild;null!=f;){if(f.nodeType==mxConstants.NODETYPE_ELEMENT){var k=f.getAttribute("as");if("add"==f.nodeName){var l=mxUtils.getTextContent(f);null!=l&&0<l.length&&mxStylesheetCodec.allowEval?l=mxUtils.eval(l):(l=f.getAttribute("value"),mxUtils.isNumeric(l)&&(l=parseFloat(l)));null!=l&&(g[k]=l)}else"remove"==f.nodeName&&delete g[k]}f=f.nextSibling}d.putCellStyle(e,g)}c=c.nextSibling}return d};return a}());mxStylesheetCodec.allowEval=!1;
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(b){return b.raw=b};$jscomp.createTemplateTagFirstArgWithRaw=function(b,d){b.raw=d;return b};$jscomp.arrayIteratorImpl=function(b){var d=0;return function(){return d<b.length?{done:!1,value:b[d++]}:{done:!0}}};$jscomp.arrayIterator=function(b){return{next:$jscomp.arrayIteratorImpl(b)}};$jscomp.makeIterator=function(b){var d="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];return d?d.call(b):$jscomp.arrayIterator(b)};
-Editor=function(b,d,m,n,v){mxEventSource.call(this);this.chromeless=null!=b?b:this.chromeless;this.initStencilRegistry();this.graph=n||this.createGraph(d,m);this.editable=null!=v?v:!b;this.undoManager=this.createUndoManager();this.status="";this.getOrCreateFilename=function(){return this.filename||mxResources.get("drawing",[Editor.pageCounter])+".xml"};this.getFilename=function(){return this.filename};this.setStatus=function(p,z){this.status=p;this.statusFunction=z;this.fireEvent(new mxEventObject("statusChanged"))};
+Editor=function(b,d,m,n,u){mxEventSource.call(this);this.chromeless=null!=b?b:this.chromeless;this.initStencilRegistry();this.graph=n||this.createGraph(d,m);this.editable=null!=u?u:!b;this.undoManager=this.createUndoManager();this.status="";this.getOrCreateFilename=function(){return this.filename||mxResources.get("drawing",[Editor.pageCounter])+".xml"};this.getFilename=function(){return this.filename};this.setStatus=function(p,z){this.status=p;this.statusFunction=z;this.fireEvent(new mxEventObject("statusChanged"))};
this.getStatus=function(){return this.status};this.graphChangeListener=function(p,z){p=null!=z?z.getProperty("edit"):null;null!=p&&p.ignoreEdit||this.setModified(!0)};this.graph.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.graphChangeListener.apply(this,arguments)}));this.graph.resetViewOnRootChange=!1;this.init()};mxConstants.POINTS=1;mxConstants.MILLIMETERS=2;mxConstants.INCHES=3;mxConstants.METERS=4;mxConstants.PIXELS_PER_MM=3.937;mxConstants.PIXELS_PER_INCH=100;
Editor.pageCounter=0;(function(){try{for(var b=window;null!=b.opener&&"undefined"!==typeof b.opener.Editor&&!isNaN(b.opener.Editor.pageCounter)&&b.opener!=b;)b=b.opener;null!=b&&(b.Editor.pageCounter++,Editor.pageCounter=b.Editor.pageCounter)}catch(d){}})();Editor.defaultHtmlFont='-apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", system-ui, ui-sans-serif, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"';Editor.useLocalStorage="undefined"!=typeof Storage&&mxClient.IS_IOS;
Editor.smallScreenWidth=1024;Editor.helpImage="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDc4LTI0MHEyMSAwIDM1LjUtMTQuNVQ1MjgtMjkwcTAtMjEtMTQuNS0zNS41VDQ3OC0zNDBxLTIxIDAtMzUuNSAxNC41VDQyOC0yOTBxMCAyMSAxNC41IDM1LjVUNDc4LTI0MFptLTM2LTE1NGg3NHEwLTMzIDcuNS01MnQ0Mi41LTUycTI2LTI2IDQxLTQ5LjV0MTUtNTYuNXEwLTU2LTQxLTg2dC05Ny0zMHEtNTcgMC05Mi41IDMwVDM0Mi02MThsNjYgMjZxNS0xOCAyMi41LTM5dDUzLjUtMjFxMzIgMCA0OCAxNy41dDE2IDM4LjVxMCAyMC0xMiAzNy41VDUwNi01MjZxLTQ0IDM5LTU0IDU5dC0xMCA3M1ptMzggMzE0cS04MyAwLTE1Ni0zMS41VDE5Ny0xOTdxLTU0LTU0LTg1LjUtMTI3VDgwLTQ4MHEwLTgzIDMxLjUtMTU2VDE5Ny03NjNxNTQtNTQgMTI3LTg1LjVUNDgwLTg4MHE4MyAwIDE1NiAzMS41VDc2My03NjNxNTQgNTQgODUuNSAxMjdUODgwLTQ4MHEwIDgzLTMxLjUgMTU2VDc2My0xOTdxLTU0IDU0LTEyNyA4NS41VDQ4MC04MFptMC04MHExMzQgMCAyMjctOTN0OTMtMjI3cTAtMTM0LTkzLTIyN3QtMjI3LTkzcS0xMzQgMC0yMjcgOTN0LTkzIDIyN3EwIDEzNCA5MyAyMjd0MjI3IDkzWm0wLTMyMFoiLz48L3N2Zz4=";
@@ -2000,24 +2000,24 @@ Editor.fillStyles=[{val:"auto",dispName:"Auto"},{val:"hatch",dispName:"Hatch"},{
Editor.popupsAllowed=null!=window.urlParams?"1"!=urlParams.noDevice:!0;Editor.simpleLabels=!1;Editor.optimizeHtmlLabels=!1;Editor.enableNativeClipboard=window==window.top&&null!=navigator.clipboard&&null!=navigator.clipboard.read;Editor.sketchMode=!1;Editor.darkMode=!1;Editor.currentTheme=uiTheme;Editor.darkColor="#121212";Editor.darkColorVar="--ge-dark-color";Editor.fontSizeUnit="px";Editor.transitionDelay=.1;Editor.pageSizeUnit=mxConstants.INCHES;Editor.removeImageMetadata=!0;
Editor.showConnectHandle=!1;Editor.enableInlineToolbar=!0;Editor.isDarkMode=function(){return Editor.darkMode};Editor.isPngDataUrl=function(b){return null!=b&&"data:image/png;"==b.substring(0,15)};Editor.isJpgDataUrl=function(b){return null!=b&&("data:image/jpg;"==b.substring(0,15)||"data:image/jpeg;"==b.substring(0,16))};
Editor.isPngData=function(b){return 8<b.length&&137==b.charCodeAt(0)&&80==b.charCodeAt(1)&&78==b.charCodeAt(2)&&71==b.charCodeAt(3)&&13==b.charCodeAt(4)&&10==b.charCodeAt(5)&&26==b.charCodeAt(6)&&10==b.charCodeAt(7)};Editor.isJpgData=function(b){return 2<b.length&&255==b.charCodeAt(0)&&216==b.charCodeAt(1)};
-Editor.stripImageMetadata=function(b,d){if(null!=b&&d&&(Editor.isJpgDataUrl(b)||Editor.isPngDataUrl(b))){d=b.indexOf(",")+1;var m=b.substring(d),n=window.atob&&!mxClient.IS_SF?atob(m):Base64.decode(m,!0),v=new ArrayBuffer(n.length),p=new Uint8Array(v);for(m=0;m<n.length;m++)p[m]=n.charCodeAt(m);p=null;Editor.isJpgData(n)?p=Editor.stripJpgMetadata(v):Editor.isPngData(n)&&(p=Editor.stripPngMetadata(v));if(null!=p){n="";for(m=0;m<p.length;m++)n+=String.fromCharCode(p[m]);b=b.substring(0,d)+btoa(n)}}return b};
-Editor.stripJpgMetadata=function(b){var d=new DataView(b),m=[];m.push(new Uint8Array(b,0,2));for(var n=2;n<b.byteLength-1;){var v=d.getUint16(n);if(65498===v){m.push(new Uint8Array(b,n));break}if(65488<=v&&65497>=v)m.push(new Uint8Array(b,n,2)),n+=2;else{var p=d.getUint16(n+2),z=65506===v;65505===v||z||m.push(new Uint8Array(b,n,2+p));n+=2+p}}b=m.reduce(function(G,U){return G+U.length},0);b=new Uint8Array(b);d=0;m=$jscomp.makeIterator(m);for(n=m.next();!n.done;n=m.next())n=n.value,b.set(n,d),d+=n.length;
+Editor.stripImageMetadata=function(b,d){if(null!=b&&d&&(Editor.isJpgDataUrl(b)||Editor.isPngDataUrl(b))){d=b.indexOf(",")+1;var m=b.substring(d),n=window.atob&&!mxClient.IS_SF?atob(m):Base64.decode(m,!0),u=new ArrayBuffer(n.length),p=new Uint8Array(u);for(m=0;m<n.length;m++)p[m]=n.charCodeAt(m);p=null;Editor.isJpgData(n)?p=Editor.stripJpgMetadata(u):Editor.isPngData(n)&&(p=Editor.stripPngMetadata(u));if(null!=p){n="";for(m=0;m<p.length;m++)n+=String.fromCharCode(p[m]);b=b.substring(0,d)+btoa(n)}}return b};
+Editor.stripJpgMetadata=function(b){var d=new DataView(b),m=[];m.push(new Uint8Array(b,0,2));for(var n=2;n<b.byteLength-1;){var u=d.getUint16(n);if(65498===u){m.push(new Uint8Array(b,n));break}if(65488<=u&&65497>=u)m.push(new Uint8Array(b,n,2)),n+=2;else{var p=d.getUint16(n+2),z=65506===u;65505===u||z||m.push(new Uint8Array(b,n,2+p));n+=2+p}}b=m.reduce(function(G,U){return G+U.length},0);b=new Uint8Array(b);d=0;m=$jscomp.makeIterator(m);for(n=m.next();!n.done;n=m.next())n=n.value,b.set(n,d),d+=n.length;
return b};
-Editor.stripPngMetadata=function(b){var d=new DataView(b),m=new Set("eXIf tEXt iTXt zTXt iCCP tIME".split(" ")),n=[];n.push(new Uint8Array(b,0,8));for(var v=8;v<b.byteLength;){var p=d.getUint32(v),z=String.fromCharCode(d.getUint8(v+4),d.getUint8(v+5),d.getUint8(v+6),d.getUint8(v+7));p=8+p+4;m.has(z)||n.push(new Uint8Array(b,v,p));v+=p;if("IEND"===z)break}b=n.reduce(function(G,U){return G+U.length},0);b=new Uint8Array(b);d=0;n=$jscomp.makeIterator(n);for(m=n.next();!m.done;m=n.next())m=m.value,b.set(m,
+Editor.stripPngMetadata=function(b){var d=new DataView(b),m=new Set("eXIf tEXt iTXt zTXt iCCP tIME".split(" ")),n=[];n.push(new Uint8Array(b,0,8));for(var u=8;u<b.byteLength;){var p=d.getUint32(u),z=String.fromCharCode(d.getUint8(u+4),d.getUint8(u+5),d.getUint8(u+6),d.getUint8(u+7));p=8+p+4;m.has(z)||n.push(new Uint8Array(b,u,p));u+=p;if("IEND"===z)break}b=n.reduce(function(G,U){return G+U.length},0);b=new Uint8Array(b);d=0;n=$jscomp.makeIterator(n);for(m=n.next();!m.done;m=n.next())m=m.value,b.set(m,
d),d+=m.length;return b};Editor.convertHtmlToText=function(b){if(null!=b){var d=document.createElement("div");d.innerHTML=Graph.sanitizeHtml(b);return mxUtils.extractTextWithWhitespace(d.childNodes)}return null};
-Editor.extractGraphModelFromText=function(b){function d(p){var z=p.indexOf("```");0<=z&&(p=p.substring(p,0,z+6));return p}function m(p){var z=p.lastIndexOf("```");0<=z&&(p=p.substring(z+3));return p}var n=b.indexOf("<mxGraphModel "),v=b.indexOf("</mxGraphModel>");0>n&&(n=b.indexOf("<mxGraphModel>"));return 0<=n&&v>n?[mxUtils.trim(d(b.substring(0,n))),b.substring(n,v+15),mxUtils.trim(m(b.substring(v+15)))]:[b,"",""]};
-Editor.extractGraphModelFromPng=function(b){var d=null;try{var m=b.substring(b.indexOf(",")+1),n=window.atob&&!mxClient.IS_SF?atob(m):Base64.decode(m,!0);EditorUi.parsePng(n,mxUtils.bind(this,function(v,p,z){v=n.substring(v+8,v+8+z);"zTXt"==p?(z=v.indexOf(String.fromCharCode(0)),"mxGraphModel"==v.substring(0,z)&&(v=pako.inflateRaw(Graph.stringToArrayBuffer(v.substring(z+2)),{to:"string"}).replace(/\+/g," "),null!=v&&0<v.length&&(d=v))):"tEXt"==p&&(v=v.split(String.fromCharCode(0)),1<v.length&&("mxGraphModel"==
-v[0]||"mxfile"==v[0])&&(d=v[1]));if(null!=d||"IDAT"==p)return!0}))}catch(v){}null!=d&&"%"==d.charAt(0)&&(d=decodeURIComponent(d));null!=d&&"%"==d.charAt(0)&&(d=decodeURIComponent(d));return d};Editor.getLabelForStylename=function(b){var d=b.match(/^([A-Za-z]*)(\d*)$/);null!=d&&1<d.length&&(b=mxUtils.trim(d[1].replace(/([a-z])([A-Z])/g,"$1 $2").replace(/\b\w/g,function(m){return m.toUpperCase()}).replace(/Color[s]?/g,"")),b=mxUtils.trim(b+(0<d[2].length?" ("+d[2]+")":"")));return b};
-Editor.soundex=function(b){if(null==b||0==b.length)return"";var d=[],m=1;d[0]=b[0].toUpperCase();for(var n=1,v=b.length;n<v;n++){var p=b[n].toUpperCase().charCodeAt(0)-65;if(0<=p&&25>=p&&"0"!="01230120022455012603010202"[p]&&("01230120022455012603010202"[p]!=d[m-1]&&(d[m]="01230120022455012603010202"[p],m++),3<m))break}if(3>=m)for(;3>=m;)d[m]="0",m++;return d.join("")};
+Editor.extractGraphModelFromText=function(b){function d(p){var z=p.indexOf("```");0<=z&&(p=p.substring(p,0,z+6));return p}function m(p){var z=p.lastIndexOf("```");0<=z&&(p=p.substring(z+3));return p}var n=b.indexOf("<mxGraphModel "),u=b.indexOf("</mxGraphModel>");0>n&&(n=b.indexOf("<mxGraphModel>"));return 0<=n&&u>n?[mxUtils.trim(d(b.substring(0,n))),b.substring(n,u+15),mxUtils.trim(m(b.substring(u+15)))]:[b,"",""]};
+Editor.extractGraphModelFromPng=function(b){var d=null;try{var m=b.substring(b.indexOf(",")+1),n=window.atob&&!mxClient.IS_SF?atob(m):Base64.decode(m,!0);EditorUi.parsePng(n,mxUtils.bind(this,function(u,p,z){u=n.substring(u+8,u+8+z);"zTXt"==p?(z=u.indexOf(String.fromCharCode(0)),"mxGraphModel"==u.substring(0,z)&&(u=pako.inflateRaw(Graph.stringToArrayBuffer(u.substring(z+2)),{to:"string"}).replace(/\+/g," "),null!=u&&0<u.length&&(d=u))):"tEXt"==p&&(u=u.split(String.fromCharCode(0)),1<u.length&&("mxGraphModel"==
+u[0]||"mxfile"==u[0])&&(d=u[1]));if(null!=d||"IDAT"==p)return!0}))}catch(u){}null!=d&&"%"==d.charAt(0)&&(d=decodeURIComponent(d));null!=d&&"%"==d.charAt(0)&&(d=decodeURIComponent(d));return d};Editor.getLabelForStylename=function(b){var d=b.match(/^([A-Za-z]*)(\d*)$/);null!=d&&1<d.length&&(b=mxUtils.trim(d[1].replace(/([a-z])([A-Z])/g,"$1 $2").replace(/\b\w/g,function(m){return m.toUpperCase()}).replace(/Color[s]?/g,"")),b=mxUtils.trim(b+(0<d[2].length?" ("+d[2]+")":"")));return b};
+Editor.soundex=function(b){if(null==b||0==b.length)return"";var d=[],m=1;d[0]=b[0].toUpperCase();for(var n=1,u=b.length;n<u;n++){var p=b[n].toUpperCase().charCodeAt(0)-65;if(0<=p&&25>=p&&"0"!="01230120022455012603010202"[p]&&("01230120022455012603010202"[p]!=d[m-1]&&(d[m]="01230120022455012603010202"[p],m++),3<m))break}if(3>=m)for(;3>=m;)d[m]="0",m++;return d.join("")};
Editor.selectFilename=function(b){var d=b.value.lastIndexOf(".");if(0<d){var m=b.value.substring(d+1);"drawio"!=m&&0<=mxUtils.indexOf(["png","svg","html","xml","pdf"],m)&&(m=b.value.lastIndexOf(".drawio.",d),0<m&&(d=m))}d=0<d?d:b.value.length;Editor.selectSubstring(b,0,d)};
Editor.selectSubstring=function(b,d,m){b.focus();"undefined"!=typeof b.selectionStart?(b.selectionStart=d,b.selectionEnd=m):document.selection&&document.selection.createRange&&(b.select(),b=document.selection.createRange(),b.collapse(!0),b.moveEnd("character",m),b.moveStart("character",d),b.select())};
Editor.toUnit=function(b,d){return d==mxConstants.INCHES?Math.round(100*b/mxConstants.PIXELS_PER_INCH)/100:d==mxConstants.MILLIMETERS?Math.round(100*b/mxConstants.PIXELS_PER_MM)/100:d==mxConstants.METERS?Math.round(1E3*b/(1E3*mxConstants.PIXELS_PER_MM))/1E3:Math.round(b)};
Editor.fromUnit=function(b,d){return d==mxConstants.INCHES?Math.round(b*mxConstants.PIXELS_PER_INCH):d==mxConstants.MILLIMETERS?Math.round(b*mxConstants.PIXELS_PER_MM):d==mxConstants.METERS?Math.round(b*mxConstants.PIXELS_PER_MM*1E3):Math.round(b)};mxUtils.extend(Editor,mxEventSource);Editor.prototype.originalNoForeignObject=mxClient.NO_FO;
Editor.prototype.transparentImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhMAAwAIAAAP///wAAACH5BAEAAAAALAAAAAAwADAAAAIxhI+py+0Po5y02ouz3rz7D4biSJbmiabqyrbuC8fyTNf2jef6zvf+DwwKh8Si8egpAAA7":IMAGE_PATH+"/transparent.gif";Editor.prototype.extendCanvas=!0;Editor.prototype.chromeless=!1;Editor.prototype.cancelFirst=!0;Editor.prototype.enabled=!0;Editor.prototype.filename=null;Editor.prototype.modified=!1;Editor.prototype.autosave=!0;Editor.prototype.appName=document.title;
Editor.prototype.editBlankUrl=window.location.origin+window.location.pathname;Editor.prototype.defaultGraphOverflow="hidden";Editor.prototype.init=function(){};Editor.prototype.isChromelessView=function(){return this.chromeless};Editor.prototype.setAutosave=function(b){this.autosave=b;this.fireEvent(new mxEventObject("autosaveChanged"))};Editor.prototype.getEditBlankUrl=function(b){return this.editBlankUrl+b};
-Editor.prototype.editAsNew=function(b,d,m,n){d=null!=d?"?title="+encodeURIComponent(d):"";m?d+=(0<d.length?"&":"?")+"lightbox=1":null!=urlParams.ui&&(d+=(0<d.length?"&":"?")+"ui="+urlParams.ui);null!=n&&(d+=(0<d.length?"&":"?")+"page-id="+n);if(navigator.standalone||"undefined"===typeof window.postMessage)this.graph.openLink(this.getEditBlankUrl(d)+"#R"+encodeURIComponent(b));else{var v=null,p=mxUtils.bind(this,function(G){"ready"==G.data&&G.source==v&&(mxEvent.removeListener(window,"message",p),
-v.postMessage(b,"*"))});m=d.substring(1).split("&");n={client:1};for(d=0;d<m.length;d++){var z=m[d].split("=");n[z[0]]=z[1]||""}mxEvent.addListener(window,"message",p);v=this.graph.openLink(this.getEditBlankUrl("")+"#P"+encodeURIComponent(JSON.stringify(n)),null,!0)}};
-Editor.prototype.createGraph=function(b,d){b=new Graph(null,d,null,null,b);b.transparentBackground=!1;var m=b.isCssTransformsSupported,n=this;b.isCssTransformsSupported=function(){return m.apply(this,arguments)&&(!n.chromeless||!mxClient.IS_SF)};this.chromeless||(b.isBlankLink=function(v){return!this.isExternalProtocol(v)});return b};
+Editor.prototype.editAsNew=function(b,d,m,n){d=null!=d?"?title="+encodeURIComponent(d):"";m?d+=(0<d.length?"&":"?")+"lightbox=1":null!=urlParams.ui&&(d+=(0<d.length?"&":"?")+"ui="+urlParams.ui);null!=n&&(d+=(0<d.length?"&":"?")+"page-id="+n);if(navigator.standalone||"undefined"===typeof window.postMessage)this.graph.openLink(this.getEditBlankUrl(d)+"#R"+encodeURIComponent(b));else{var u=null,p=mxUtils.bind(this,function(G){"ready"==G.data&&G.source==u&&(mxEvent.removeListener(window,"message",p),
+u.postMessage(b,"*"))});m=d.substring(1).split("&");n={client:1};for(d=0;d<m.length;d++){var z=m[d].split("=");n[z[0]]=z[1]||""}mxEvent.addListener(window,"message",p);u=this.graph.openLink(this.getEditBlankUrl("")+"#P"+encodeURIComponent(JSON.stringify(n)),null,!0)}};
+Editor.prototype.createGraph=function(b,d){b=new Graph(null,d,null,null,b);b.transparentBackground=!1;var m=b.isCssTransformsSupported,n=this;b.isCssTransformsSupported=function(){return m.apply(this,arguments)&&(!n.chromeless||!mxClient.IS_SF)};this.chromeless||(b.isBlankLink=function(u){return!this.isExternalProtocol(u)});return b};
Editor.prototype.resetGraph=function(){this.graph.gridEnabled=this.graph.defaultGridEnabled&&(!this.isChromelessView()||"1"==urlParams.grid);this.graph.graphHandler.guidesEnabled=!0;this.graph.setTooltips(!0);this.graph.setConnectable(this.graph.defaultConnectable);this.graph.connectionArrowsEnabled=this.graph.defaultConnectionArrowsEnabled;this.graph.foldingEnabled=this.graph.defaultFoldingEnabled;this.graph.scrollbars=this.graph.defaultScrollbars;this.graph.pageVisible=this.graph.defaultPageVisible;
this.graph.pageBreaksVisible=this.graph.pageVisible;this.graph.preferPageSize=this.graph.pageBreaksVisible;this.graph.background=null;this.graph.pageScale=mxGraph.prototype.pageScale;this.graph.pageFormat=mxGraph.prototype.pageFormat;this.graph.currentScale=1;this.graph.currentTranslate.x=0;this.graph.currentTranslate.y=0;this.updateGraphComponents();this.graph.view.setScale(1)};
Editor.prototype.readGraphState=function(b){this.savedGraphState={};if(Editor.preserveViewState){var d=b.getAttribute("dx"),m=b.getAttribute("dy");null!=d&&(this.savedGraphState.dx=d);null!=m&&(this.savedGraphState.dy=m)}d=b.getAttribute("grid");if(null==d||""==d)d=this.graph.defaultGridEnabled?"1":"0";null!=urlParams.grid&&(this.savedGraphState.grid=d);this.graph.gridEnabled=(null!=urlParams.grid?"0"!=urlParams.grid:"0"!=d)&&(!this.isChromelessView()||"1"==urlParams.grid);this.graph.gridSize=parseFloat(b.getAttribute("gridSize"))||
@@ -2031,62 +2031,62 @@ Editor.prototype.getGraphXml=function(b){if(null!=b?b:1){var d=new mxCodec(mxUti
this.graph.view.translate.x)/100),b.setAttribute("dy",Math.round(100*this.graph.view.translate.y)/100);b.setAttribute("grid",null!=d.grid?d.grid:this.graph.isGridEnabled()?"1":"0");b.setAttribute("gridSize",this.graph.gridSize);b.setAttribute("guides",this.graph.graphHandler.guidesEnabled?"1":"0");b.setAttribute("tooltips",this.graph.tooltipHandler.isEnabled()?"1":"0");b.setAttribute("connect",null!=d.connect?d.connect:this.graph.connectionHandler.isEnabled()?"1":"0");b.setAttribute("arrows",null!=
d.arrows?d.arrows:this.graph.connectionArrowsEnabled?"1":"0");b.setAttribute("fold",null!=d.fold?d.fold:this.graph.foldingEnabled?"1":"0");b.setAttribute("page",null!=d.page?d.page:this.graph.pageVisible?"1":"0");b.setAttribute("pageScale",this.graph.pageScale);b.setAttribute("pageWidth",this.graph.pageFormat.width);b.setAttribute("pageHeight",this.graph.pageFormat.height);null!=this.graph.background&&b.setAttribute("background",this.graph.background);return b};
Editor.prototype.updateGraphComponents=function(){var b=this.graph;null!=b.container&&(b.view.validateBackground(),b.container.style.overflow=b.scrollbars?"auto":this.defaultGraphOverflow,this.fireEvent(new mxEventObject("updateGraphComponents")))};Editor.prototype.setModified=function(b){this.modified=b};Editor.prototype.setFilename=function(b){this.filename=b};
-Editor.prototype.createUndoManager=function(){var b=this.graph,d=new mxUndoManager;this.undoListener=function(n,v){d.undoableEditHappened(v.getProperty("edit"))};var m=mxUtils.bind(this,function(n,v){this.undoListener.apply(this,arguments)});b.getModel().addListener(mxEvent.UNDO,m);b.getView().addListener(mxEvent.UNDO,m);m=function(n,v){n=v.getProperty("edit").changes;n=b.getSelectionCellsForChanges(n);v=!1;if(0<n.length){for(var p=[],z=0;z<n.length;z++)null!=b.view.getState(n[z])&&(p.push(n[z]),
-v||(b.scrollCellToVisible(n[z]),v=!0));b.setSelectionCells(p)}};d.addListener(mxEvent.UNDO,m);d.addListener(mxEvent.REDO,m);return d};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()};
+Editor.prototype.createUndoManager=function(){var b=this.graph,d=new mxUndoManager;this.undoListener=function(n,u){d.undoableEditHappened(u.getProperty("edit"))};var m=mxUtils.bind(this,function(n,u){this.undoListener.apply(this,arguments)});b.getModel().addListener(mxEvent.UNDO,m);b.getView().addListener(mxEvent.UNDO,m);m=function(n,u){n=u.getProperty("edit").changes;n=b.getSelectionCellsForChanges(n);u=!1;if(0<n.length){for(var p=[],z=0;z<n.length;z++)null!=b.view.getState(n[z])&&(p.push(n[z]),
+u||(b.scrollCellToVisible(n[z]),u=!0));b.setSelectionCells(p)}};d.addListener(mxEvent.UNDO,m);d.addListener(mxEvent.REDO,m);return d};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,d,m,n,v,p,z,G,U,E,R){this.editorUi=b;null==this.bg&&(this.bg=b.createDiv("geBackground"));v&&document.body.appendChild(this.bg);v=b.createDiv(U?"geTransDialog":"geDialog");v.style.width=m+48+"px";null!=n&&(v.style.height=n+48+"px");"1"!=urlParams.embedInline||Editor.inlineFullscreen||null==b.embedViewport||(v.style.left=b.embedViewport.x+b.embedViewport.width/2+"px",v.style.top=b.embedViewport.y+b.embedViewport.height/2+"px");v.appendChild(d);document.body.appendChild(v);null==n&&
-(v.style.height=d.scrollHeight+48+"px");if(p&&(d=document.createElement("div"),d.className="geButton",d.setAttribute("title",mxResources.get("close")),d.style.backgroundImage="url("+Editor.crossImage+")",d.style.position="absolute",d.style.top="0px",d.style.right="0px",mxEvent.addListener(d,"click",mxUtils.bind(this,function(){b.hideDialog(!0)})),v.appendChild(d),!R)){var N=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(c){N=!0}),null,mxUtils.bind(this,function(c){N&&(b.hideDialog(!0),
-N=!1)}))}this.onDialogClose=z;this.container=v;null!=E&&this.addResizeHandler(E);b.editor.fireEvent(new mxEventObject("showDialog"))}Dialog.prototype.noColorImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkEzRDlBMUUwODYxMTExRTFCMzA4RDdDMjJBMEMxRDM3IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkEzRDlBMUUxODYxMTExRTFCMzA4RDdDMjJBMEMxRDM3Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QTNEOUExREU4NjExMTFFMUIzMDhEN0MyMkEwQzFEMzciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QTNEOUExREY4NjExMTFFMUIzMDhEN0MyMkEwQzFEMzciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5xh3fmAAAABlBMVEX////MzMw46qqDAAAAGElEQVR42mJggAJGKGAYIIGBth8KAAIMAEUQAIElnLuQAAAAAElFTkSuQmCC";
+function Dialog(b,d,m,n,u,p,z,G,U,E,R){this.editorUi=b;null==this.bg&&(this.bg=b.createDiv("geBackground"));u&&document.body.appendChild(this.bg);u=b.createDiv(U?"geTransDialog":"geDialog");u.style.width=m+48+"px";null!=n&&(u.style.height=n+48+"px");"1"!=urlParams.embedInline||Editor.inlineFullscreen||null==b.embedViewport||(u.style.left=b.embedViewport.x+b.embedViewport.width/2+"px",u.style.top=b.embedViewport.y+b.embedViewport.height/2+"px");u.appendChild(d);document.body.appendChild(u);null==n&&
+(u.style.height=d.scrollHeight+48+"px");if(p&&(d=document.createElement("div"),d.className="geButton",d.setAttribute("title",mxResources.get("close")),d.style.backgroundImage="url("+Editor.crossImage+")",d.style.position="absolute",d.style.top="0px",d.style.right="0px",mxEvent.addListener(d,"click",mxUtils.bind(this,function(){b.hideDialog(!0)})),u.appendChild(d),!R)){var N=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(c){N=!0}),null,mxUtils.bind(this,function(c){N&&(b.hideDialog(!0),
+N=!1)}))}this.onDialogClose=z;this.container=u;null!=E&&this.addResizeHandler(E);b.editor.fireEvent(new mxEventObject("showDialog"))}Dialog.prototype.noColorImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkEzRDlBMUUwODYxMTExRTFCMzA4RDdDMjJBMEMxRDM3IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkEzRDlBMUUxODYxMTExRTFCMzA4RDdDMjJBMEMxRDM3Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QTNEOUExREU4NjExMTFFMUIzMDhEN0MyMkEwQzFEMzciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QTNEOUExREY4NjExMTFFMUIzMDhEN0MyMkEwQzFEMzciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5xh3fmAAAABlBMVEX////MzMw46qqDAAAAGElEQVR42mJggAJGKGAYIIGBth8KAAIMAEUQAIElnLuQAAAAAElFTkSuQmCC";
Dialog.prototype.closeImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJAQMAAADaX5RTAAAABlBMVEV7mr3///+wksspAAAAAnRSTlP/AOW3MEoAAAAdSURBVAgdY9jXwCDDwNDRwHCwgeExmASygSL7GgB12QiqNHZZIwAAAABJRU5ErkJggg==";Dialog.prototype.clearImage="data:image/gif;base64,R0lGODlhDQAKAIABAMDAwP///yH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjAgNjEuMTM0Nzc3LCAyMDEwLzAyLzEyLTE3OjMyOjAwICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IFdpbmRvd3MiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OUIzOEM1NzI4NjEyMTFFMUEzMkNDMUE3NjZERDE2QjIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OUIzOEM1NzM4NjEyMTFFMUEzMkNDMUE3NjZERDE2QjIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo5QjM4QzU3MDg2MTIxMUUxQTMyQ0MxQTc2NkREMTZCMiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo5QjM4QzU3MTg2MTIxMUUxQTMyQ0MxQTc2NkREMTZCMiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAEAAAEALAAAAAANAAoAAAIXTGCJebD9jEOTqRlttXdrB32PJ2ncyRQAOw==";
Dialog.prototype.getDocumentSize=function(){return mxUtils.getDocumentSize()};Dialog.prototype.getPosition=function(b,d){return new mxPoint(b,d)};
-Dialog.prototype.addResizeHandler=function(b){var d=document.createElement("img");d.setAttribute("src",mxWindow.prototype.resizeImage);d.style.cursor="nwse-resize";d.style.position="absolute";d.style.bottom="0px";d.style.right="0px";d.style.zIndex="2";var m=null,n=null,v=null,p=null,z=mxUtils.bind(this,function(E){m=mxEvent.getClientX(E);n=mxEvent.getClientY(E);v=parseInt(this.container.style.width);p=parseInt(this.container.style.height);mxEvent.addGestureListeners(document,null,G,U);mxEvent.consume(E)}),
-G=mxUtils.bind(this,function(E){if(null!=m&&null!=n){var R=mxEvent.getClientX(E)-m,N=mxEvent.getClientY(E)-n;this.container.style.width=Math.max(b.width,v+2*R)+"px";this.container.style.height=Math.max(b.height,p+2*N)+"px";mxEvent.consume(E)}}),U=mxUtils.bind(this,function(E){null!=m&&null!=n&&(n=m=null,mxEvent.removeGestureListeners(document,null,G,U),mxEvent.consume(E))});mxEvent.addGestureListeners(d,z,G,U);this.container.appendChild(d)};
+Dialog.prototype.addResizeHandler=function(b){var d=document.createElement("img");d.setAttribute("src",mxWindow.prototype.resizeImage);d.style.cursor="nwse-resize";d.style.position="absolute";d.style.bottom="0px";d.style.right="0px";d.style.zIndex="2";var m=null,n=null,u=null,p=null,z=mxUtils.bind(this,function(E){m=mxEvent.getClientX(E);n=mxEvent.getClientY(E);u=parseInt(this.container.style.width);p=parseInt(this.container.style.height);mxEvent.addGestureListeners(document,null,G,U);mxEvent.consume(E)}),
+G=mxUtils.bind(this,function(E){if(null!=m&&null!=n){var R=mxEvent.getClientX(E)-m,N=mxEvent.getClientY(E)-n;this.container.style.width=Math.max(b.width,u+2*R)+"px";this.container.style.height=Math.max(b.height,p+2*N)+"px";mxEvent.consume(E)}}),U=mxUtils.bind(this,function(E){null!=m&&null!=n&&(n=m=null,mxEvent.removeGestureListeners(document,null,G,U),mxEvent.consume(E))});mxEvent.addGestureListeners(d,z,G,U);this.container.appendChild(d)};
Dialog.prototype.close=function(b,d){if(null!=this.onDialogClose){if(0==this.onDialogClose(b,d))return!1;this.onDialogClose=null}null!=this.dialogImg&&null!=this.dialogImg.parentNode&&(this.dialogImg.parentNode.removeChild(this.dialogImg),this.dialogImg=null);null!=this.bg&&null!=this.bg.parentNode&&this.bg.parentNode.removeChild(this.bg);null!=this.editorUi.embedViewport?this.editorUi.removeListener(this.resizeListener):mxEvent.removeListener(window,"resize",this.resizeListener);null!=this.container.parentNode&&
this.container.parentNode.removeChild(this.container)};
-var ErrorDialog=function(b,d,m,n,v,p,z,G,U,E,R){U=null!=U?U:!0;var N=document.createElement("div");N.style.textAlign="center";N.style.flexDirection="column";N.style.maxHeight="100%";N.style.display="flex";if(null!=d){var c=document.createElement("div");c.style.padding="0px";c.style.margin="0px";c.style.fontSize="14px";c.style.fontWeight="600";c.style.paddingBottom="12px";c.style.marginBottom="10px";c.style.borderBottom="1px solid light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1))";c.style.whiteSpace=
+var ErrorDialog=function(b,d,m,n,u,p,z,G,U,E,R){U=null!=U?U:!0;var N=document.createElement("div");N.style.textAlign="center";N.style.flexDirection="column";N.style.maxHeight="100%";N.style.display="flex";if(null!=d){var c=document.createElement("div");c.style.padding="0px";c.style.margin="0px";c.style.fontSize="14px";c.style.fontWeight="600";c.style.paddingBottom="12px";c.style.marginBottom="10px";c.style.borderBottom="1px solid light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1))";c.style.whiteSpace=
"nowrap";c.style.textOverflow="ellipsis";c.style.overflow="hidden";c.style.flexShrink="0";mxUtils.write(c,d);c.setAttribute("title",d);N.appendChild(c)}d=document.createElement("div");d.style.lineHeight="1.2em";d.style.padding="6px";d.style.flexGrow="1";d.style.overflowY="auto";"string"===typeof m&&(m=m.replace(/\n/g,"<br/>"));d.innerHTML=Graph.sanitizeHtml(m);N.appendChild(d);m=document.createElement("div");m.style.marginTop="12px";m.style.textAlign="center";null!=p&&(d=mxUtils.button(mxResources.get("tryAgain"),
-function(){b.hideDialog();p()}),d.className="geBtn",m.appendChild(d),m.style.textAlign="center");null!=E&&(E=mxUtils.button(E,function(){null!=R&&R()}),E.className="geBtn",m.appendChild(E));var g=mxUtils.button(n,function(){U&&b.hideDialog();null!=v&&v()});g.className="geBtn";m.appendChild(g);null!=z&&(n=mxUtils.button(z,function(){U&&b.hideDialog();null!=G&&G()}),n.className="geBtn gePrimaryBtn",m.appendChild(n));this.init=function(){g.focus()};N.appendChild(m);this.container=N},PrintDialog=function(b,
+function(){b.hideDialog();p()}),d.className="geBtn",m.appendChild(d),m.style.textAlign="center");null!=E&&(E=mxUtils.button(E,function(){null!=R&&R()}),E.className="geBtn",m.appendChild(E));var g=mxUtils.button(n,function(){U&&b.hideDialog();null!=u&&u()});g.className="geBtn";m.appendChild(g);null!=z&&(n=mxUtils.button(z,function(){U&&b.hideDialog();null!=G&&G()}),n.className="geBtn gePrimaryBtn",m.appendChild(n));this.init=function(){g.focus()};N.appendChild(m);this.container=N},PrintDialog=function(b,
d,m,n){this.create(b,d,m,n)};
PrintDialog.prototype.create=function(b){function d(g){var k=z.checked||E.checked,q=parseInt(N.value)/100;isNaN(q)&&(q=1,N.value="100%");mxClient.IS_SF&&(q*=.75);var A=m.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,D=1/m.pageScale;if(k){var H=z.checked?1:parseInt(R.value);isNaN(H)||(D=mxUtils.getScaleForPageCount(H,m,A))}var K=H=0;A=mxRectangle.fromRectangle(A);A.width=Math.ceil(A.width*q);A.height=Math.ceil(A.height*q);D*=q;!k&&m.pageVisible?(q=m.getPageLayout(),H-=q.x*A.width,K-=q.y*A.height):
-k=!0;k=PrintDialog.createPrintPreview(m,D,A,0,H,K,k);k.open();g&&PrintDialog.printPreview(k)}var m=b.editor.graph,n=document.createElement("table");n.style.width="100%";n.style.height="100%";var v=document.createElement("tbody");var p=document.createElement("tr");var z=document.createElement("input");z.setAttribute("type","checkbox");var G=document.createElement("td");G.setAttribute("colspan","2");G.style.fontSize="10pt";G.appendChild(z);var U=document.createElement("span");mxUtils.write(U," "+mxResources.get("fitPage"));
-G.appendChild(U);mxEvent.addListener(U,"click",function(g){z.checked=!z.checked;E.checked=!z.checked;mxEvent.consume(g)});mxEvent.addListener(z,"change",function(){E.checked=!z.checked});p.appendChild(G);v.appendChild(p);p=p.cloneNode(!1);var E=document.createElement("input");E.setAttribute("type","checkbox");G=document.createElement("td");G.style.fontSize="10pt";G.appendChild(E);U=document.createElement("span");mxUtils.write(U," "+mxResources.get("posterPrint")+":");G.appendChild(U);mxEvent.addListener(U,
-"click",function(g){E.checked=!E.checked;z.checked=!E.checked;mxEvent.consume(g)});p.appendChild(G);var R=document.createElement("input");R.setAttribute("value","1");R.setAttribute("type","number");R.setAttribute("min","1");R.setAttribute("size","4");R.setAttribute("disabled","disabled");R.style.width="50px";G=document.createElement("td");G.style.fontSize="10pt";G.appendChild(R);mxUtils.write(G," "+mxResources.get("pages")+" (max)");p.appendChild(G);v.appendChild(p);mxEvent.addListener(E,"change",
-function(){E.checked?R.removeAttribute("disabled"):R.setAttribute("disabled","disabled");z.checked=!E.checked});p=p.cloneNode(!1);G=document.createElement("td");mxUtils.write(G,mxResources.get("pageScale")+":");p.appendChild(G);G=document.createElement("td");var N=document.createElement("input");N.setAttribute("value","100 %");N.setAttribute("size","5");N.style.width="50px";G.appendChild(N);p.appendChild(G);v.appendChild(p);p=document.createElement("tr");G=document.createElement("td");G.colSpan=2;
+k=!0;k=PrintDialog.createPrintPreview(m,D,A,0,H,K,k);k.open();g&&PrintDialog.printPreview(k)}var m=b.editor.graph,n=document.createElement("table");n.style.width="100%";n.style.height="100%";var u=document.createElement("tbody");var p=document.createElement("tr");var z=document.createElement("input");z.setAttribute("type","checkbox");var G=document.createElement("td");G.setAttribute("colspan","2");G.style.fontSize="10pt";G.appendChild(z);var U=document.createElement("span");mxUtils.write(U," "+mxResources.get("fitPage"));
+G.appendChild(U);mxEvent.addListener(U,"click",function(g){z.checked=!z.checked;E.checked=!z.checked;mxEvent.consume(g)});mxEvent.addListener(z,"change",function(){E.checked=!z.checked});p.appendChild(G);u.appendChild(p);p=p.cloneNode(!1);var E=document.createElement("input");E.setAttribute("type","checkbox");G=document.createElement("td");G.style.fontSize="10pt";G.appendChild(E);U=document.createElement("span");mxUtils.write(U," "+mxResources.get("posterPrint")+":");G.appendChild(U);mxEvent.addListener(U,
+"click",function(g){E.checked=!E.checked;z.checked=!E.checked;mxEvent.consume(g)});p.appendChild(G);var R=document.createElement("input");R.setAttribute("value","1");R.setAttribute("type","number");R.setAttribute("min","1");R.setAttribute("size","4");R.setAttribute("disabled","disabled");R.style.width="50px";G=document.createElement("td");G.style.fontSize="10pt";G.appendChild(R);mxUtils.write(G," "+mxResources.get("pages")+" (max)");p.appendChild(G);u.appendChild(p);mxEvent.addListener(E,"change",
+function(){E.checked?R.removeAttribute("disabled"):R.setAttribute("disabled","disabled");z.checked=!E.checked});p=p.cloneNode(!1);G=document.createElement("td");mxUtils.write(G,mxResources.get("pageScale")+":");p.appendChild(G);G=document.createElement("td");var N=document.createElement("input");N.setAttribute("value","100 %");N.setAttribute("size","5");N.style.width="50px";G.appendChild(N);p.appendChild(G);u.appendChild(p);p=document.createElement("tr");G=document.createElement("td");G.colSpan=2;
G.style.paddingTop="30px";G.setAttribute("align","right");U=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});U.className="geBtn";b.editor.cancelFirst&&G.appendChild(U);if(PrintDialog.previewEnabled){var c=mxUtils.button(mxResources.get("preview"),function(){b.hideDialog();d(!1)});c.className="geBtn";G.appendChild(c)}c=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){b.hideDialog();d(!0)});c.className="geBtn gePrimaryBtn";G.appendChild(c);b.editor.cancelFirst||
-G.appendChild(U);p.appendChild(G);v.appendChild(p);n.appendChild(v);p=document.createElement("div");p.style.paddingBottom="20px";p.appendChild(n);this.container=p};PrintDialog.printPreview=function(b){try{null!=b.wnd&&window.setTimeout(function(){b.wnd.focus();b.wnd.print();b.wnd.close()},500)}catch(d){}};
-PrintDialog.createPrintPreview=function(b,d,m,n,v,p,z){d=new mxPrintPreview(b,d,m,n,v,p);d.title=mxResources.get("preview");d.addPageCss=!mxClient.IS_SF;d.printBackgroundImage=!0;d.autoOrigin=z;z=b.background;if(null==z||""==z||z==mxConstants.NONE)z="#ffffff";d.backgroundColor=z;var G=d.isTextLabel;d.isTextLabel=function(E){return"geHint"==!E.className&&G.apply(this,arguments)};var U=d.getLinkForCellState;d.getLinkForCellState=function(E){return b.getAbsoluteUrl(U.apply(this,arguments))};return d};
+G.appendChild(U);p.appendChild(G);u.appendChild(p);n.appendChild(u);p=document.createElement("div");p.style.paddingBottom="20px";p.appendChild(n);this.container=p};PrintDialog.printPreview=function(b){try{null!=b.wnd&&window.setTimeout(function(){b.wnd.focus();b.wnd.print();b.wnd.close()},500)}catch(d){}};
+PrintDialog.createPrintPreview=function(b,d,m,n,u,p,z){d=new mxPrintPreview(b,d,m,n,u,p);d.title=mxResources.get("preview");d.addPageCss=!mxClient.IS_SF;d.printBackgroundImage=!0;d.autoOrigin=z;z=b.background;if(null==z||""==z||z==mxConstants.NONE)z="#ffffff";d.backgroundColor=z;var G=d.isTextLabel;d.isTextLabel=function(E){return"geHint"==!E.className&&G.apply(this,arguments)};var U=d.getLinkForCellState;d.getLinkForCellState=function(E){return b.getAbsoluteUrl(U.apply(this,arguments))};return d};
PrintDialog.previewEnabled=!0;
-var PageSetupDialog=function(b){function d(){var q=N;null!=q&&null!=q.originalSrc&&(q=b.createImageForPageLink(q.originalSrc,null));null!=q&&null!=q.src?(R.style.backgroundImage="url("+q.src+")",R.style.display="inline-block"):(R.style.backgroundImage="",R.style.display="none");R.style.backgroundColor="";null!=c&&c!=mxConstants.NONE&&(R.style.backgroundColor=c,R.style.display="inline-block")}var m=b.editor.graph,n=document.createElement("table");n.style.width="100%";n.style.height="100%";var v=document.createElement("tbody");
-var p=document.createElement("tr");var z=document.createElement("td");z.style.verticalAlign="top";z.style.fontSize="10pt";mxUtils.write(z,mxResources.get("paperSize")+":");p.appendChild(z);z=document.createElement("td");z.style.verticalAlign="top";z.style.fontSize="10pt";var G=PageSetupDialog.addPageFormatPanel(z,"pagesetupdialog",m.pageFormat);p.appendChild(z);v.appendChild(p);p=document.createElement("tr");z=document.createElement("td");mxUtils.write(z,mxResources.get("gridSize")+":");p.appendChild(z);
-z=document.createElement("td");z.style.whiteSpace="nowrap";var U=document.createElement("input");U.setAttribute("type","number");U.setAttribute("min","0");U.style.width="40px";U.style.marginLeft="6px";U.value=m.getGridSize();z.appendChild(U);mxEvent.addListener(U,"change",function(){var q=parseInt(U.value);U.value=Math.max(1,isNaN(q)?m.getGridSize():q)});p.appendChild(z);v.appendChild(p);p=document.createElement("tr");z=document.createElement("td");mxUtils.write(z,mxResources.get("background")+":");
+var PageSetupDialog=function(b){function d(){var q=N;null!=q&&null!=q.originalSrc&&(q=b.createImageForPageLink(q.originalSrc,null));null!=q&&null!=q.src?(R.style.backgroundImage="url("+q.src+")",R.style.display="inline-block"):(R.style.backgroundImage="",R.style.display="none");R.style.backgroundColor="";null!=c&&c!=mxConstants.NONE&&(R.style.backgroundColor=c,R.style.display="inline-block")}var m=b.editor.graph,n=document.createElement("table");n.style.width="100%";n.style.height="100%";var u=document.createElement("tbody");
+var p=document.createElement("tr");var z=document.createElement("td");z.style.verticalAlign="top";z.style.fontSize="10pt";mxUtils.write(z,mxResources.get("paperSize")+":");p.appendChild(z);z=document.createElement("td");z.style.verticalAlign="top";z.style.fontSize="10pt";var G=PageSetupDialog.addPageFormatPanel(z,"pagesetupdialog",m.pageFormat);p.appendChild(z);u.appendChild(p);p=document.createElement("tr");z=document.createElement("td");mxUtils.write(z,mxResources.get("gridSize")+":");p.appendChild(z);
+z=document.createElement("td");z.style.whiteSpace="nowrap";var U=document.createElement("input");U.setAttribute("type","number");U.setAttribute("min","0");U.style.width="40px";U.style.marginLeft="6px";U.value=m.getGridSize();z.appendChild(U);mxEvent.addListener(U,"change",function(){var q=parseInt(U.value);U.value=Math.max(1,isNaN(q)?m.getGridSize():q)});p.appendChild(z);u.appendChild(p);p=document.createElement("tr");z=document.createElement("td");mxUtils.write(z,mxResources.get("background")+":");
p.appendChild(z);z=document.createElement("td");var E=document.createElement("button");E.className="geBtn";E.style.margin="0px";mxUtils.write(E,mxResources.get("change")+"...");var R=document.createElement("div");R.style.display="inline-block";R.style.verticalAlign="middle";R.style.backgroundPosition="center center";R.style.backgroundRepeat="no-repeat";R.style.backgroundSize="contain";R.style.border="1px solid lightGray";R.style.borderRadius="4px";R.style.marginRight="14px";R.style.height="32px";
-R.style.width="64px";R.style.cursor="pointer";R.style.padding="4px";var N=m.backgroundImage,c=m.background,g=m.shadowVisible,k=function(q){b.showBackgroundImageDialog(function(A,D,H,K){D||(null!=A&&null!=A.src&&Graph.isPageLink(A.src)&&(A={originalSrc:A.src}),N=A,g=K);c=H;d()},N,c,!0);mxEvent.consume(q)};mxEvent.addListener(E,"click",k);mxEvent.addListener(R,"click",k);d();z.appendChild(R);z.appendChild(E);p.appendChild(z);v.appendChild(p);p=document.createElement("tr");z=document.createElement("td");
+R.style.width="64px";R.style.cursor="pointer";R.style.padding="4px";var N=m.backgroundImage,c=m.background,g=m.shadowVisible,k=function(q){b.showBackgroundImageDialog(function(A,D,H,K){D||(null!=A&&null!=A.src&&Graph.isPageLink(A.src)&&(A={originalSrc:A.src}),N=A,g=K);c=H;d()},N,c,!0);mxEvent.consume(q)};mxEvent.addListener(E,"click",k);mxEvent.addListener(R,"click",k);d();z.appendChild(R);z.appendChild(E);p.appendChild(z);u.appendChild(p);p=document.createElement("tr");z=document.createElement("td");
z.colSpan=2;z.style.paddingTop="16px";z.setAttribute("align","right");E=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});E.className="geBtn";b.editor.cancelFirst&&z.appendChild(E);k=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();var q=parseInt(U.value);isNaN(q)||m.gridSize===q||m.setGridSize(q);q=new ChangePageSetup(b,c,N,G.get());q.ignoreColor=m.background==c;q.ignoreImage=(null!=m.backgroundImage?m.backgroundImage.src:null)===(null!=N?N.src:null);null!=g&&
-(q.shadowVisible=g);m.pageFormat.width==q.previousFormat.width&&m.pageFormat.height==q.previousFormat.height&&q.ignoreColor&&q.ignoreImage&&q.shadowVisible==m.shadowVisible||m.model.execute(q)});k.className="geBtn gePrimaryBtn";z.appendChild(k);b.editor.cancelFirst||z.appendChild(E);p.appendChild(z);v.appendChild(p);n.appendChild(v);this.container=n};
-PageSetupDialog.addPageFormatPanel=function(b,d,m,n){d="format-"+d;var v=document.createElement("input");v.setAttribute("name",d);v.setAttribute("type","radio");v.setAttribute("value","portrait");var p=document.createElement("input");p.setAttribute("name",d);p.setAttribute("type","radio");p.setAttribute("value","landscape");var z=document.createElement("select");z.style.position="relative";z.style.marginBottom="4px";z.style.borderRadius="4px";z.style.borderWidth="1px";z.style.borderStyle="solid";
-z.style.boxSizing="border-box";z.style.padding="2px";z.style.width="210px";var G=document.createElement("div");G.style.whiteSpace="nowrap";G.style.marginLeft="4px";G.style.width="210px";G.style.height="24px";v.style.marginRight="6px";G.appendChild(v);d=document.createElement("span");d.style.maxWidth="100px";mxUtils.write(d,mxResources.get("portrait"));G.appendChild(d);p.style.marginLeft="10px";p.style.marginRight="6px";G.appendChild(p);var U=document.createElement("span");U.style.width="100px";mxUtils.write(U,
+(q.shadowVisible=g);m.pageFormat.width==q.previousFormat.width&&m.pageFormat.height==q.previousFormat.height&&q.ignoreColor&&q.ignoreImage&&q.shadowVisible==m.shadowVisible||m.model.execute(q)});k.className="geBtn gePrimaryBtn";z.appendChild(k);b.editor.cancelFirst||z.appendChild(E);p.appendChild(z);u.appendChild(p);n.appendChild(u);this.container=n};
+PageSetupDialog.addPageFormatPanel=function(b,d,m,n){d="format-"+d;var u=document.createElement("input");u.setAttribute("name",d);u.setAttribute("type","radio");u.setAttribute("value","portrait");var p=document.createElement("input");p.setAttribute("name",d);p.setAttribute("type","radio");p.setAttribute("value","landscape");var z=document.createElement("select");z.style.position="relative";z.style.marginBottom="4px";z.style.borderRadius="4px";z.style.borderWidth="1px";z.style.borderStyle="solid";
+z.style.boxSizing="border-box";z.style.padding="2px";z.style.width="210px";var G=document.createElement("div");G.style.whiteSpace="nowrap";G.style.marginLeft="4px";G.style.width="210px";G.style.height="24px";u.style.marginRight="6px";G.appendChild(u);d=document.createElement("span");d.style.maxWidth="100px";mxUtils.write(d,mxResources.get("portrait"));G.appendChild(d);p.style.marginLeft="10px";p.style.marginRight="6px";G.appendChild(p);var U=document.createElement("span");U.style.width="100px";mxUtils.write(U,
mxResources.get("landscape"));G.appendChild(U);var E=document.createElement("div");E.style.whiteSpace="nowrap";E.style.fontSize="12px";E.style.width="210px";E.style.height="24px";var R=document.createElement("input");R.setAttribute("size","6");R.setAttribute("title",mxResources.get("width"));R.style.textAlign="right";E.appendChild(R);mxUtils.write(E," x ");var N=document.createElement("input");N.setAttribute("size","6");N.setAttribute("title",mxResources.get("height"));N.style.textAlign="right";E.appendChild(N);
var c=document.createElement("select");c.style.marginLeft="4px";c.style.boxSizing="border-box";for(var g=[{label:mxResources.get("points"),unit:mxConstants.POINTS},{label:mxResources.get("inches"),unit:mxConstants.INCHES},{label:mxResources.get("millimeters"),unit:mxConstants.MILLIMETERS}],k=0;k<g.length;k++){var q=document.createElement("option");q.setAttribute("value",g[k].unit);mxUtils.write(q,g[k].label);c.appendChild(q)}c.value=Editor.pageSizeUnit;E.appendChild(c);G.style.display="none";E.style.display=
"none";var A={},D=PageSetupDialog.getFormats();for(k=0;k<D.length;k++)g=D[k],A[g.key]=g,q=document.createElement("option"),q.setAttribute("value",g.key),mxUtils.write(q,g.title),z.appendChild(q);var H=function(){z.value="custom";for(var P=0;P<D.length;P++){var W=D[P];null!=W.format&&("a4"==W.key?826==m.width?(m=mxRectangle.fromRectangle(m),m.width=827):826==m.height&&(m=mxRectangle.fromRectangle(m),m.height=827):"a5"==W.key&&(584==m.width?(m=mxRectangle.fromRectangle(m),m.width=583):584==m.height&&
-(m=mxRectangle.fromRectangle(m),m.height=583)),m.width==W.format.width&&m.height==W.format.height?(z.value=W.key,v.setAttribute("checked","checked"),v.defaultChecked=!0,v.checked=!0,p.removeAttribute("checked"),p.defaultChecked=!1,p.checked=!1,detected=!0):m.width==W.format.height&&m.height==W.format.width&&(z.value=W.key,v.removeAttribute("checked"),v.defaultChecked=!1,v.checked=!1,p.setAttribute("checked","checked"),p.defaultChecked=!0,detected=p.checked=!0))}"custom"==z.value?(R.value=Editor.toUnit(m.width,
-c.value),N.value=Editor.toUnit(m.height,c.value),v.setAttribute("checked","checked"),z.value="custom",G.style.display="none",E.style.display=""):(G.style.display="",E.style.display="none")};H();b.appendChild(z);mxUtils.br(b);b.appendChild(G);b.appendChild(E);var K=function(P,W){P=A[z.value];null!=P.format?(R.value=Editor.toUnit(p.checked?P.format.height:P.format.width,c.value),N.value=Editor.toUnit(p.checked?P.format.width:P.format.height,c.value),E.style.display="none",G.style.display=""):(G.style.display=
-"none",E.style.display="");P=parseFloat(R.value);if(isNaN(P)||0>=P)R.value=Editor.toUnit(m.width,c.value);P=parseFloat(N.value);if(isNaN(P)||0>=P)N.value=Editor.toUnit(m.height,c.value);P=new mxRectangle(0,0,Math.floor(Editor.fromUnit(parseFloat(R.value),c.value)),Math.floor(Editor.fromUnit(parseFloat(N.value),c.value)));W||P.width==m.width&&P.height==m.height||(m=P,null!=n&&n(m))};mxEvent.addListener(d,"click",function(P){v.checked=!0;K(P);mxEvent.consume(P)});mxEvent.addListener(U,"click",function(P){p.checked=
-!0;K(P);mxEvent.consume(P)});mxEvent.addListener(R,"blur",K);mxEvent.addListener(R,"click",K);mxEvent.addListener(N,"blur",K);mxEvent.addListener(N,"click",K);mxEvent.addListener(p,"change",K);mxEvent.addListener(v,"change",K);mxEvent.addListener(z,"change",function(P){K(P,"custom"==z.value);mxEvent.consume(P)});mxEvent.addListener(c,"change",function(P){R.value=Editor.toUnit(Editor.fromUnit(R.value,Editor.pageSizeUnit),c.value);N.value=Editor.toUnit(Editor.fromUnit(N.value,Editor.pageSizeUnit),c.value);
+(m=mxRectangle.fromRectangle(m),m.height=583)),m.width==W.format.width&&m.height==W.format.height?(z.value=W.key,u.setAttribute("checked","checked"),u.defaultChecked=!0,u.checked=!0,p.removeAttribute("checked"),p.defaultChecked=!1,p.checked=!1,detected=!0):m.width==W.format.height&&m.height==W.format.width&&(z.value=W.key,u.removeAttribute("checked"),u.defaultChecked=!1,u.checked=!1,p.setAttribute("checked","checked"),p.defaultChecked=!0,detected=p.checked=!0))}"custom"==z.value?(R.value=Editor.toUnit(m.width,
+c.value),N.value=Editor.toUnit(m.height,c.value),u.setAttribute("checked","checked"),z.value="custom",G.style.display="none",E.style.display=""):(G.style.display="",E.style.display="none")};H();b.appendChild(z);mxUtils.br(b);b.appendChild(G);b.appendChild(E);var K=function(P,W){P=A[z.value];null!=P.format?(R.value=Editor.toUnit(p.checked?P.format.height:P.format.width,c.value),N.value=Editor.toUnit(p.checked?P.format.width:P.format.height,c.value),E.style.display="none",G.style.display=""):(G.style.display=
+"none",E.style.display="");P=parseFloat(R.value);if(isNaN(P)||0>=P)R.value=Editor.toUnit(m.width,c.value);P=parseFloat(N.value);if(isNaN(P)||0>=P)N.value=Editor.toUnit(m.height,c.value);P=new mxRectangle(0,0,Math.floor(Editor.fromUnit(parseFloat(R.value),c.value)),Math.floor(Editor.fromUnit(parseFloat(N.value),c.value)));W||P.width==m.width&&P.height==m.height||(m=P,null!=n&&n(m))};mxEvent.addListener(d,"click",function(P){u.checked=!0;K(P);mxEvent.consume(P)});mxEvent.addListener(U,"click",function(P){p.checked=
+!0;K(P);mxEvent.consume(P)});mxEvent.addListener(R,"blur",K);mxEvent.addListener(R,"click",K);mxEvent.addListener(N,"blur",K);mxEvent.addListener(N,"click",K);mxEvent.addListener(p,"change",K);mxEvent.addListener(u,"change",K);mxEvent.addListener(z,"change",function(P){K(P,"custom"==z.value);mxEvent.consume(P)});mxEvent.addListener(c,"change",function(P){R.value=Editor.toUnit(Editor.fromUnit(R.value,Editor.pageSizeUnit),c.value);N.value=Editor.toUnit(Editor.fromUnit(N.value,Editor.pageSizeUnit),c.value);
Editor.pageSizeUnit=c.value;K(P,!0);mxEvent.consume(P)});K(null,!0);return{set:function(P){m=P;H(null,null,!0)},get:function(){return m},widthInput:R,heightInput:N}};
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,d,m,n,v,p,z,G,U,E,R){U=null!=U?U:!0;var N=document.createElement("div"),c=document.createElement("div");c.style.width="100%";c.style.display="grid";c.style.gap="5px 8px";c.style.gridAutoColumns="auto 1fr";c.style.boxSizing="border-box";c.style.padding="3px";var g=document.createElement("div");g.style.display="inline-flex";g.style.alignItems="center";g.style.justifyContent="flex-end";g.style.minWidth="0";var k=document.createElement("div");k.style.display="inline-block";
-k.style.textOverflow="ellipsis";k.style.whiteSpace="nowrap";k.style.overflow="hidden";k.style.fontSize="10pt";k.style.padding="2px 0";k.setAttribute("title",v||mxResources.get("filename"));mxUtils.write(k,(v||mxResources.get("filename"))+":");g.appendChild(k);c.appendChild(g);var q=document.createElement("input");q.setAttribute("value",d||"");q.style.flexGrow="1";var A=mxUtils.button(m,function(){if(null==p||p(q.value))U&&b.hideDialog(),n(q.value)});A.className="geBtn gePrimaryBtn";this.init=function(){if(null!=
-v||null==z)if(null!=R?Editor.selectFilename(q):(q.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?q.select():document.execCommand("selectAll",!1,null)),Graph.fileSupport){var D=c.parentNode;if(null!=D){var H=null;mxEvent.addListener(D,"dragleave",function(K){null!=H&&(H.style.backgroundColor="",H=null);K.stopPropagation();K.preventDefault()});mxEvent.addListener(D,"dragover",mxUtils.bind(this,function(K){null==H&&(H=q,H.style.backgroundColor="#ebf2f9");K.stopPropagation();K.preventDefault()}));
-mxEvent.addListener(D,"drop",mxUtils.bind(this,function(K){null!=H&&(H.style.backgroundColor="",H=null);0<=mxUtils.indexOf(K.dataTransfer.types,"text/uri-list")&&(q.value=decodeURIComponent(K.dataTransfer.getData("text/uri-list")),A.click());K.stopPropagation();K.preventDefault()}))}}};g=document.createElement("div");g.style.display="inline-flex";g.style.alignItems="center";g.style.gap="4px";g.style.whiteSpace="nowrap";g.appendChild(q);c.appendChild(g);null==v&&null!=z||null==R||null==b.editor.diagramFileTypes||
+var FilenameDialog=function(b,d,m,n,u,p,z,G,U,E,R){U=null!=U?U:!0;var N=document.createElement("div"),c=document.createElement("div");c.style.width="100%";c.style.display="grid";c.style.gap="5px 8px";c.style.gridAutoColumns="auto 1fr";c.style.boxSizing="border-box";c.style.padding="3px";var g=document.createElement("div");g.style.display="inline-flex";g.style.alignItems="center";g.style.justifyContent="flex-end";g.style.minWidth="0";var k=document.createElement("div");k.style.display="inline-block";
+k.style.textOverflow="ellipsis";k.style.whiteSpace="nowrap";k.style.overflow="hidden";k.style.fontSize="10pt";k.style.padding="2px 0";k.setAttribute("title",u||mxResources.get("filename"));mxUtils.write(k,(u||mxResources.get("filename"))+":");g.appendChild(k);c.appendChild(g);var q=document.createElement("input");q.setAttribute("value",d||"");q.style.flexGrow="1";var A=mxUtils.button(m,function(){if(null==p||p(q.value))U&&b.hideDialog(),n(q.value)});A.className="geBtn gePrimaryBtn";this.init=function(){if(null!=
+u||null==z)if(null!=R?Editor.selectFilename(q):(q.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?q.select():document.execCommand("selectAll",!1,null)),Graph.fileSupport){var D=c.parentNode;if(null!=D){var H=null;mxEvent.addListener(D,"dragleave",function(K){null!=H&&(H.style.backgroundColor="",H=null);K.stopPropagation();K.preventDefault()});mxEvent.addListener(D,"dragover",mxUtils.bind(this,function(K){null==H&&(H=q,H.style.backgroundColor="#ebf2f9");K.stopPropagation();K.preventDefault()}));
+mxEvent.addListener(D,"drop",mxUtils.bind(this,function(K){null!=H&&(H.style.backgroundColor="",H=null);0<=mxUtils.indexOf(K.dataTransfer.types,"text/uri-list")&&(q.value=decodeURIComponent(K.dataTransfer.getData("text/uri-list")),A.click());K.stopPropagation();K.preventDefault()}))}}};g=document.createElement("div");g.style.display="inline-flex";g.style.alignItems="center";g.style.gap="4px";g.style.whiteSpace="nowrap";g.appendChild(q);c.appendChild(g);null==u&&null!=z||null==R||null==b.editor.diagramFileTypes||
(g=document.createElement("div"),g.style.display="inline-flex",g.style.alignItems="center",g.style.textOverflow="ellipsis",g.style.justifyContent="flex-end",g.style.fontSize="10pt",mxUtils.write(g,mxResources.get("type")+":"),c.appendChild(g),g=document.createElement("div"),g.style.display="inline-flex",g.style.alignItems="center",g.style.whiteSpace="nowrap",c.appendChild(g),d=FilenameDialog.createFileTypes(b,q,b.editor.diagramFileTypes),d.style.width="100%",g.appendChild(d));null!=z&&c.appendChild(z);
row=document.createElement("div");row.style.gridColumn="1 / span 2";row.style.paddingTop=null!=R?"6px":"14px";row.style.whiteSpace="nowrap";row.style.display="inline-flex";row.style.alignItems="center";row.style.justifyContent="flex-end";row.setAttribute("align","right");g=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();null!=E&&E()});g.className="geBtn";null==G||b.isOffline()||row.appendChild(b.createHelpIcon(G));b.editor.cancelFirst&&row.appendChild(g);mxEvent.addListener(q,"keypress",
function(D){13==D.keyCode&&A.click()});row.appendChild(A);b.editor.cancelFirst||row.appendChild(g);c.appendChild(row);N.appendChild(c);this.container=N};FilenameDialog.filenameHelpLink=null;
-FilenameDialog.createFileTypes=function(b,d,m){var n=document.createElement("select");for(b=0;b<m.length;b++){var v=document.createElement("option");v.setAttribute("value",b);mxUtils.write(v,mxResources.get(m[b].description)+" (."+m[b].extension+")");n.appendChild(v)}mxEvent.addListener(n,"change",function(p){p=m[n.value].extension;var z=d.value.lastIndexOf(".drawio.");z=0<z?z:d.value.lastIndexOf(".");"drawio"!=p&&(p="drawio."+p);d.value=0<z?d.value.substring(0,z+1)+p:d.value+"."+p;"createEvent"in
+FilenameDialog.createFileTypes=function(b,d,m){var n=document.createElement("select");for(b=0;b<m.length;b++){var u=document.createElement("option");u.setAttribute("value",b);mxUtils.write(u,mxResources.get(m[b].description)+" (."+m[b].extension+")");n.appendChild(u)}mxEvent.addListener(n,"change",function(p){p=m[n.value].extension;var z=d.value.lastIndexOf(".drawio.");z=0<z?z:d.value.lastIndexOf(".");"drawio"!=p&&(p="drawio."+p);d.value=0<z?d.value.substring(0,z+1)+p:d.value+"."+p;"createEvent"in
document?(p=document.createEvent("HTMLEvents"),p.initEvent("change",!1,!0),d.dispatchEvent(p)):d.fireEvent("onchange")});b=function(p){p=d.value.toLowerCase();for(var z=0,G=0;G<m.length;G++){var U=m[G].extension,E=null;"drawio"!=U&&(E=U,U=".drawio."+U);if(p.substring(p.length-U.length-1)=="."+U||null!=E&&p.substring(p.length-E.length-1)=="."+E){z=G;break}}n.value=z};mxEvent.addListener(d,"change",b);mxEvent.addListener(d,"keyup",b);b();if(null!=Editor.defaultFileType&&"0"==n.value)for(b=0;b<m.length;b++)if(m[b].extension==
-Editor.defaultFileType){n.value=b;b=m[b].extension;v=d.value.lastIndexOf(".drawio.");v=0<v?v:d.value.lastIndexOf(".");"drawio"!=b&&(b="drawio."+b);d.value=0<v?d.value.substring(0,v+1)+b:d.value+"."+b;break}return n};
-var WrapperWindow=function(b,d,m,n,v,p,z,G){G=null!=G?G:document.createElement("div");this.window=new mxWindow(d,G,m,n,v,p,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);b.installResizeHandler(this,!0);z(G)};
+Editor.defaultFileType){n.value=b;b=m[b].extension;u=d.value.lastIndexOf(".drawio.");u=0<u?u:d.value.lastIndexOf(".");"drawio"!=b&&(b="drawio."+b);d.value=0<u?d.value.substring(0,u+1)+b:d.value+"."+b;break}return n};
+var WrapperWindow=function(b,d,m,n,u,p,z,G){G=null!=G?G:document.createElement("div");this.window=new mxWindow(d,G,m,n,u,p,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);b.installResizeHandler(this,!0);z(G)};
(function(){mxGraphView.prototype.validateBackgroundPage=function(){var z=this.graph;if(null!=z.container&&!z.transparentBackground){if(z.pageVisible){var G=this.getBackgroundPageBounds();if(null==this.backgroundPageShape){for(var U=z.container.firstChild;null!=U&&U.nodeType!=mxConstants.NODETYPE_ELEMENT;)U=U.nextSibling;null!=U&&(this.backgroundPageShape=this.createBackgroundPageShape(G),this.backgroundPageShape.scale=1,this.backgroundPageShape.isShadow=!0,this.backgroundPageShape.dialect=mxConstants.DIALECT_STRICTHTML,
this.backgroundPageShape.init(z.container),U.style.position="absolute",z.container.insertBefore(this.backgroundPageShape.node,U),this.backgroundPageShape.redraw(),this.backgroundPageShape.node.className="geBackgroundPage",mxEvent.addListener(this.backgroundPageShape.node,"dblclick",mxUtils.bind(this,function(E){z.dblClick(E)})),mxEvent.addGestureListeners(this.backgroundPageShape.node,mxUtils.bind(this,function(E){z.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(E))}),mxUtils.bind(this,function(E){null!=
z.tooltipHandler&&z.tooltipHandler.isHideOnHover()&&z.tooltipHandler.hide();z.isMouseDown&&!mxEvent.isConsumed(E)&&z.fireMouseEvent(mxEvent.MOUSE_MOVE,new mxMouseEvent(E))}),mxUtils.bind(this,function(E){z.fireMouseEvent(mxEvent.MOUSE_UP,new mxMouseEvent(E))})))}else this.backgroundPageShape.scale=1,this.backgroundPageShape.bounds=G,this.backgroundPageShape.redraw()}else null!=this.backgroundPageShape&&(this.backgroundPageShape.destroy(),this.backgroundPageShape=null);this.validateBackgroundStyles()}};
@@ -2102,91 +2102,91 @@ Math.round(g.y+(W+1)*k.height)),new mxPoint(Math.round(D),Math.round(g.y+(W+1)*k
z(this.verticalPageBreaks)};var d=mxGraphHandler.prototype.shouldRemoveCellsFromParent;mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(z,G,U){for(var E=0;E<G.length;E++){if(this.graph.isTableCell(G[E])||this.graph.isTableRow(G[E]))return!1;if(this.graph.getModel().isVertex(G[E])){var R=this.graph.getCellGeometry(G[E]);if(null!=R&&R.relative)return!1}}return d.apply(this,arguments)};var m=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var z=
m.apply(this,arguments);z.intersects=mxUtils.bind(this,function(G,U){return this.isConnecting()?!0:mxCellMarker.prototype.intersects.apply(z,arguments)});return z};mxGraphView.prototype.createBackgroundPageShape=function(z){return new mxRectangleShape(z,"#ffffff",this.graph.defaultPageBorderColor)};mxGraphView.prototype.getBackgroundPageBounds=function(){var z=this.getGraphBounds(),G=0<z.width?z.x/this.scale-this.translate.x:0,U=0<z.height?z.y/this.scale-this.translate.y:0,E=this.graph.pageFormat,
R=this.graph.pageScale,N=E.width*R;E=E.height*R;R=Math.floor(Math.min(0,G)/N);var c=Math.floor(Math.min(0,U)/E);return new mxRectangle(this.scale*(this.translate.x+R*N),this.scale*(this.translate.y+c*E),this.scale*(Math.ceil(Math.max(1,G+z.width/this.scale)/N)-R)*N,this.scale*(Math.ceil(Math.max(1,U+z.height/this.scale)/E)-c)*E)};var n=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(z,G){n.apply(this,arguments);this.dialect==mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape||
-this.useScrollbarsForPanning&&mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft=z+"px",this.view.backgroundPageShape.node.style.marginTop=G+"px")};var v=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(z,G,U,E,R,N){var c=v.apply(this,arguments);null==N||N||mxEvent.addListener(c,"mousedown",function(g){mxEvent.consume(g)});return c};var p=mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=
+this.useScrollbarsForPanning&&mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft=z+"px",this.view.backgroundPageShape.node.style.marginTop=G+"px")};var u=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(z,G,U,E,R,N){var c=u.apply(this,arguments);null==N||N||mxEvent.addListener(c,"mousedown",function(g){mxEvent.consume(g)});return c};var p=mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=
function(z,G,U){var E=this.graph.model.getParent(z);if(G){var R=this.graph.model.isEdge(z)?null:this.graph.getCellGeometry(z);R=!this.graph.model.isEdge(E)&&!this.graph.isSiblingSelected(z)&&(null!=R&&R.relative||!this.graph.isContainer(E)||this.graph.isPart(z))}else if(R=p.apply(this,arguments),this.graph.isTableCell(z)||this.graph.isTableRow(z))R=E,this.graph.isTable(R)||(R=this.graph.model.getParent(R)),R=!this.graph.selectionCellsHandler.isHandled(R)||this.graph.isCellSelected(R)&&this.graph.isToggleEvent(U.getEvent())||
-this.graph.isCellSelected(z)&&!this.graph.isToggleEvent(U.getEvent())||this.graph.isTableCell(z)&&this.graph.isCellSelected(E);return R};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(z){z=z.getCell();for(var G=this.graph.getModel(),U=G.getParent(z),E=this.graph.view.getState(U),R=this.graph.isCellSelected(z);null!=E&&(G.isVertex(U)||G.isEdge(U));){var N=this.graph.isCellSelected(U);R=R||N;if(N||!R&&(this.graph.isTableCell(z)||this.graph.isTableRow(z)))z=U;U=G.getParent(U)}return z}})();EditorUi=function(b,d,m){mxEventSource.call(this);this.destroyFunctions=[];this.editor=b||new Editor;this.container=d||document.body;var n=this,v=this.editor.graph;v.lightbox=m;var p=v.getGraphBounds;v.getGraphBounds=function(){var L=p.apply(this,arguments),T=this.backgroundImage;if(null!=T&&null!=T.width&&null!=T.height){var Y=this.view.translate,aa=this.view.scale;L=mxRectangle.fromRectangle(L);L.add(new mxRectangle((Y.x+T.x)*aa,(Y.y+T.y)*aa,T.width*aa,T.height*aa))}return L};v.useCssTransforms&&
-(this.lazyZoomDelay=0);this.selectionStateListener=mxUtils.bind(this,function(L,T){this.clearSelectionState()});v.getSelectionModel().addListener(mxEvent.CHANGE,this.selectionStateListener);v.getModel().addListener(mxEvent.CHANGE,this.selectionStateListener);v.addListener(mxEvent.EDITING_STARTED,this.selectionStateListener);v.addListener(mxEvent.EDITING_STOPPED,this.selectionStateListener);v.getView().addListener("unitChanged",this.selectionStateListener);if(this.editor.chromeless&&!this.editor.editable){v.isEnabled=
-function(){return!1};v.panningHandler.isForcePanningEvent=function(L){for(var T=L.getSource();null!=T&&T!=v.container;){if("foreignObject"===T.nodeName||"text"===T.nodeName)return!1;T=T.parentNode}return!mxEvent.isPopupTrigger(L.getEvent())};var z=v.panningHandler.start;v.panningHandler.start=function(){z.apply(this,arguments);mxUtils.clearSelection()}}this.actions=new Actions(this);this.menus=this.createMenus();if(!v.standalone){var G=!1,U=!1;this.setDefaultStyle=function(L){try{v.getModel().isEdge(L)?
-U=v.pasteEdgeStyle=!1:G=!1;var T=v.getCellStyle(L,!1),Y=[],aa=[],S;for(S in T)Y.push(T[S]),aa.push(S);v.getModel().isEdge(L)?v.currentEdgeStyle={}:v.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",aa,"values",Y,"cells",[L],"force",!0));v.getModel().isEdge(L)?U=v.pasteEdgeStyle=!0:G=!0}catch(Z){this.handleError(Z)}};this.clearDefaultStyle=function(){v.currentEdgeStyle=mxUtils.clone(v.defaultEdgeStyle);v.currentVertexStyle=mxUtils.clone(v.defaultVertexStyle);G=U=v.pasteEdgeStyle=
-!1;this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",[]))};v.addListener("cellsInserted",function(L,T){v.pasteCellStyles(v.includeDescendants(T.getProperty("cells")))});v.addListener("textInserted",function(L,T){v.pasteCellStyles(T.getProperty("cells"))});this.createDivs();this.createUi();this.refresh();var E=mxUtils.bind(this,function(L){null==L&&(L=window.event);return v.isEditing()||null!=L&&this.isSelectionAllowed(L)});this.container!=document.body||this.editor.chromeless&&
+this.graph.isCellSelected(z)&&!this.graph.isToggleEvent(U.getEvent())||this.graph.isTableCell(z)&&this.graph.isCellSelected(E);return R};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(z){z=z.getCell();for(var G=this.graph.getModel(),U=G.getParent(z),E=this.graph.view.getState(U),R=this.graph.isCellSelected(z);null!=E&&(G.isVertex(U)||G.isEdge(U));){var N=this.graph.isCellSelected(U);R=R||N;if(N||!R&&(this.graph.isTableCell(z)||this.graph.isTableRow(z)))z=U;U=G.getParent(U)}return z}})();EditorUi=function(b,d,m){mxEventSource.call(this);this.destroyFunctions=[];this.editor=b||new Editor;this.container=d||document.body;var n=this,u=this.editor.graph;u.lightbox=m;var p=u.getGraphBounds;u.getGraphBounds=function(){var L=p.apply(this,arguments),T=this.backgroundImage;if(null!=T&&null!=T.width&&null!=T.height){var Y=this.view.translate,aa=this.view.scale;L=mxRectangle.fromRectangle(L);L.add(new mxRectangle((Y.x+T.x)*aa,(Y.y+T.y)*aa,T.width*aa,T.height*aa))}return L};u.useCssTransforms&&
+(this.lazyZoomDelay=0);this.selectionStateListener=mxUtils.bind(this,function(L,T){this.clearSelectionState()});u.getSelectionModel().addListener(mxEvent.CHANGE,this.selectionStateListener);u.getModel().addListener(mxEvent.CHANGE,this.selectionStateListener);u.addListener(mxEvent.EDITING_STARTED,this.selectionStateListener);u.addListener(mxEvent.EDITING_STOPPED,this.selectionStateListener);u.getView().addListener("unitChanged",this.selectionStateListener);if(this.editor.chromeless&&!this.editor.editable){u.isEnabled=
+function(){return!1};u.panningHandler.isForcePanningEvent=function(L){for(var T=L.getSource();null!=T&&T!=u.container;){if("foreignObject"===T.nodeName||"text"===T.nodeName)return!1;T=T.parentNode}return!mxEvent.isPopupTrigger(L.getEvent())};var z=u.panningHandler.start;u.panningHandler.start=function(){z.apply(this,arguments);mxUtils.clearSelection()}}this.actions=new Actions(this);this.menus=this.createMenus();if(!u.standalone){var G=!1,U=!1;this.setDefaultStyle=function(L){try{u.getModel().isEdge(L)?
+U=u.pasteEdgeStyle=!1:G=!1;var T=u.getCellStyle(L,!1),Y=[],aa=[],S;for(S in T)Y.push(T[S]),aa.push(S);u.getModel().isEdge(L)?u.currentEdgeStyle={}:u.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",aa,"values",Y,"cells",[L],"force",!0));u.getModel().isEdge(L)?U=u.pasteEdgeStyle=!0:G=!0}catch(Z){this.handleError(Z)}};this.clearDefaultStyle=function(){u.currentEdgeStyle=mxUtils.clone(u.defaultEdgeStyle);u.currentVertexStyle=mxUtils.clone(u.defaultVertexStyle);G=U=u.pasteEdgeStyle=
+!1;this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",[]))};u.addListener("cellsInserted",function(L,T){u.pasteCellStyles(u.includeDescendants(T.getProperty("cells")))});u.addListener("textInserted",function(L,T){u.pasteCellStyles(T.getProperty("cells"))});this.createDivs();this.createUi();this.refresh();var E=mxUtils.bind(this,function(L){null==L&&(L=window.event);return u.isEditing()||null!=L&&this.isSelectionAllowed(L)});this.container!=document.body||this.editor.chromeless&&
!this.editor.editable||(this.menubarContainer.onselectstart=E,this.menubarContainer.onmousedown=E,this.toolbarContainer.onselectstart=E,this.toolbarContainer.onmousedown=E,this.diagramContainer.onselectstart=E,this.diagramContainer.onmousedown=E,this.sidebarContainer.onselectstart=E,this.sidebarContainer.onmousedown=E,this.formatContainer.onselectstart=E,this.formatContainer.onmousedown=E,null!=this.tabContainer&&(this.tabContainer.onselectstart=E),mxClient.IS_IOS&&(d=function(){var L=null;if(/iP(hone|od|ad)/.test(navigator.platform)){var T=
navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);try{L=[parseInt(T[1],10),parseInt(T[2],10),parseInt(T[3]||0,10)]}catch(Y){}}return L}(),null!=d&&16<=d[0]&&(mxUtils.setPrefixedStyle(this.menubarContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.diagramContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.sidebarContainer.style,"userSelect","none"),mxUtils.setPrefixedStyle(this.formatContainer.style,"userSelect","none"),null!=this.tabContainer&&mxUtils.setPrefixedStyle(this.tabContainer.style,
-"userSelect","none"))));!this.editor.chromeless||this.editor.editable?this.diagramContainer.oncontextmenu=function(L){if(null!=L){var T=mxEvent.getSource(L);if("A"==T.nodeName)for(;null!=T;){if("geHint"==T.className)return!0;T=T.parentNode}}return E(L)}:v.panningHandler.usePopupTrigger=!1;v.init(this.diagramContainer);mxClient.IS_SVG&&null!=v.view.getDrawPane()&&(d=v.view.getDrawPane().ownerSVGElement,null!=d&&(d.style.position="absolute"));this.hoverIcons=this.createHoverIcons();this.inlineToolbar=
-Editor.enableInlineToolbar?this.createInlineToolbar():null;this.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(L,T){null!=this.hoverIcons&&this.hoverIcons.reset();null!=this.inlineToolbar&&this.inlineToolbar.hide()}));this.editor.graph.addListener("zoomPreviewComplete",mxUtils.bind(this,function(L,T){null!=this.inlineToolbar&&this.inlineToolbar.updateSelection()}));if(null!=v.graphHandler){var R=v.graphHandler.start;v.graphHandler.start=function(L){null!=n.hoverIcons&&n.hoverIcons.reset();
-null!=n.inlineToolbar&&null!=L&&n.inlineToolbar.hide();R.apply(this,arguments)};var N=v.graphHandler.mouseUp;v.graphHandler.mouseUp=function(){N.apply(this,arguments);null!=n.inlineToolbar&&n.inlineToolbar.updateSelection()}}var c=mxVertexHandler.prototype.start;mxVertexHandler.prototype.start=function(){null!=n.inlineToolbar&&n.inlineToolbar.hide();c.apply(this,arguments)};var g=mxVertexHandler.prototype.mouseUp;mxVertexHandler.prototype.mouseUp=function(){g.apply(this,arguments);null!=n.inlineToolbar&&
+"userSelect","none"))));!this.editor.chromeless||this.editor.editable?this.diagramContainer.oncontextmenu=function(L){if(null!=L){var T=mxEvent.getSource(L);if("A"==T.nodeName)for(;null!=T;){if("geHint"==T.className)return!0;T=T.parentNode}}return E(L)}:u.panningHandler.usePopupTrigger=!1;u.init(this.diagramContainer);mxClient.IS_SVG&&null!=u.view.getDrawPane()&&(d=u.view.getDrawPane().ownerSVGElement,null!=d&&(d.style.position="absolute"));this.hoverIcons=this.createHoverIcons();this.inlineToolbar=
+Editor.enableInlineToolbar?this.createInlineToolbar():null;this.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(L,T){null!=this.hoverIcons&&this.hoverIcons.reset();null!=this.inlineToolbar&&this.inlineToolbar.hide()}));this.editor.graph.addListener("zoomPreviewComplete",mxUtils.bind(this,function(L,T){null!=this.inlineToolbar&&this.inlineToolbar.updateSelection()}));if(null!=u.graphHandler){var R=u.graphHandler.start;u.graphHandler.start=function(L){null!=n.hoverIcons&&n.hoverIcons.reset();
+null!=n.inlineToolbar&&null!=L&&n.inlineToolbar.hide();R.apply(this,arguments)};var N=u.graphHandler.mouseUp;u.graphHandler.mouseUp=function(){N.apply(this,arguments);null!=n.inlineToolbar&&n.inlineToolbar.updateSelection()}}var c=mxVertexHandler.prototype.start;mxVertexHandler.prototype.start=function(){null!=n.inlineToolbar&&n.inlineToolbar.hide();c.apply(this,arguments)};var g=mxVertexHandler.prototype.mouseUp;mxVertexHandler.prototype.mouseUp=function(){g.apply(this,arguments);null!=n.inlineToolbar&&
n.inlineToolbar.updateSelection()};var k=mxEdgeHandler.prototype.start;mxEdgeHandler.prototype.start=function(){null!=n.inlineToolbar&&n.inlineToolbar.hide();k.apply(this,arguments)};var q=mxEdgeHandler.prototype.mouseUp;mxEdgeHandler.prototype.mouseUp=function(){q.apply(this,arguments);null!=n.inlineToolbar&&n.inlineToolbar.updateSelection()};mxEvent.addListener(this.diagramContainer,"mousemove",mxUtils.bind(this,function(L){var T=mxUtils.getOffset(this.diagramContainer);0<mxEvent.getClientX(L)-
-T.x-this.diagramContainer.clientWidth||0<mxEvent.getClientY(L)-T.y-this.diagramContainer.clientHeight?this.diagramContainer.setAttribute("title",mxResources.get("panTooltip")):this.diagramContainer.removeAttribute("title")}));var A=this.hoverIcons.isResetEvent;this.hoverIcons.isResetEvent=function(L,T){return n.isSpaceDown()||A.apply(this,arguments)};this.keydownHandler=mxUtils.bind(this,function(L){if(Editor.passiveScroll){var T=mxEvent.getSource(L);if(T!=v.container&&!v.container.contains(T)&&!v.isEditing())return}16==
-L.which?this.shiftDown=!0:32!=L.which||v.isEditing()?mxEvent.isConsumed(L)||27!=L.keyCode||this.hideDialog(null,!0):(this.spaceDown=!0,this.hoverIcons.reset(),v.container.style.cursor="move",v.isEditing()||mxEvent.consume(L))});mxEvent.addListener(document,"keydown",this.keydownHandler);this.keyupHandler=mxUtils.bind(this,function(L){v.container.style.cursor="";this.shiftDown=this.spaceDown=!1});mxEvent.addListener(document,"keyup",this.keyupHandler);var D=v.panningHandler.isForcePanningEvent;v.panningHandler.isForcePanningEvent=
-function(L){return null!=v.freehand&&v.freehand.isActive()?!1:D.apply(this,arguments)||n.isSpaceDown()||mxEvent.isMouseEvent(L.getEvent())&&(this.usePopupTrigger||!mxEvent.isPopupTrigger(L.getEvent()))&&(!mxEvent.isControlDown(L.getEvent())&&mxEvent.isRightMouseButton(L.getEvent())||mxEvent.isMiddleMouseButton(L.getEvent()))};var H=v.cellEditor.isStopEditingEvent;v.cellEditor.isStopEditingEvent=function(L){return H.apply(this,arguments)||13==L.keyCode&&(!mxClient.IS_SF&&mxEvent.isControlDown(L)||
-mxClient.IS_MAC&&mxEvent.isMetaDown(L)||mxClient.IS_SF&&mxEvent.isShiftDown(L))};var K=v.isZoomWheelEvent;v.isZoomWheelEvent=function(){return n.isSpaceDown()||K.apply(this,arguments)};var P=mxUtils.bind(this,function(){if(null!=this.toolbar)for(var L=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,T=this.toolbar.container.firstChild;null!=T;){var Y=T.getAttribute("data-min-width");null!=Y&&parseInt(Y)>L?T.style.display="none":T.style.display="";T=T.nextSibling}}),
-W=!1,M=null,ca=null,fa=null,ha=mxUtils.bind(this,function(){if(null!=this.toolbar&&W!=v.cellEditor.isContentEditing()){for(var L=this.toolbar.container.firstChild,T=[];null!=L;){var Y=L.nextSibling;L.parentNode.removeChild(L);T.push(L);L=Y}L=this.toolbar.fontMenu;Y=this.toolbar.sizeMenu;if(null==fa)this.toolbar.createTextToolbar();else{for(var aa=0;aa<fa.length;aa++)this.toolbar.container.appendChild(fa[aa]);this.toolbar.fontMenu=M;this.toolbar.sizeMenu=ca}W=v.cellEditor.isContentEditing();M=L;ca=
-Y;fa=T;P()}});this.addListener("languageChanged",mxUtils.bind(this,function(){this.destroyWindows(!0);this.descriptorChanged();this.updateStatusAgain();ha()}));this.addListener("currentThemeChanged",P);mxEvent.addListener(window,"resize",P);P();v.isTouchPopupMenuEnabled=function(){return null==n.dialog};var ea=v.cellEditor.startEditing;v.cellEditor.startEditing=function(){ea.apply(this,arguments);ha();if(v.cellEditor.isContentEditing()){var L=!1,T=function(){L||(L=!0,window.setTimeout(function(){var Y=
-v.getSelectedEditingElement();null!=Y&&(Y=mxUtils.getCurrentStyle(Y),null!=Y&&null!=n.toolbar&&(n.toolbar.setFontName(mxUtils.getCssFontFamily(Y.fontFamily)),n.toolbar.setFontSize(parseInt(Y.fontSize))));L=!1},0))};mxEvent.addListener(v.cellEditor.textarea,"input",T);mxEvent.addListener(v.cellEditor.textarea,"touchend",T);mxEvent.addListener(v.cellEditor.textarea,"mouseup",T);mxEvent.addListener(v.cellEditor.textarea,"keyup",T);T()}};var ka=v.cellEditor.stopEditing;v.cellEditor.stopEditing=function(L,
-T){try{ka.apply(this,arguments),ha()}catch(Y){n.handleError(Y)}};v.container.setAttribute("tabindex","0");v.container.style.cursor="default";if(window.self===window.top&&null!=v.container.parentNode)try{v.container.focus()}catch(L){}var pa=v.fireMouseEvent;v.fireMouseEvent=function(L,T,Y){try{L==mxEvent.MOUSE_DOWN&&this.container.focus(),pa.apply(this,arguments)}catch(aa){n.handleError(aa)}};var ba=v.foldCells;v.foldCells=function(L,T,Y,aa,S){try{ba.apply(this,arguments)}catch(Z){n.handleError(Z)}};
-v.popupMenuHandler.autoExpand=!0;null!=this.menus&&(v.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(L,T,Y){this.menus.createPopupMenu(L,T,Y)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(L){v.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(b);this.getKeyHandler=function(){return keyHandler};v.connectionHandler.addListener(mxEvent.CONNECT,function(L,T){var Y=[T.getProperty("cell")];T.getProperty("terminalInserted")&&(Y.push(T.getProperty("terminal")),
-window.setTimeout(function(){null!=n.hoverIcons&&n.hoverIcons.update(v.view.getState(Y[Y.length-1]))},0));v.pasteCellStyles(Y)});var l=null,x=null;b=mxUtils.bind(this,function(){if(null!=this.toolbar){var L=this.getSelectionState();if(v.isEnabled()&&0<L.edges.length){if(null!=this.toolbar.edgeStyleMenu){var T=this.getImageForEdgeStyle(L.style);1==L.edges.length&&"arrow"==L.style[mxConstants.STYLE_SHAPE]&&(T=Format.straightImage.src);this.toolbar.edgeStyleMenu.style.backgroundImage="url("+T+")"}null!=
-this.toolbar.edgeShapeMenu&&(this.toolbar.edgeShapeMenu.style.backgroundImage="url("+this.getImageForEdgeShape(L.style)+")")}else null!=this.toolbar.edgeStyleMenu&&(this.toolbar.edgeStyleMenu.style.backgroundImage="url("+l+")"),null!=this.toolbar.edgeShapeMenu&&(this.toolbar.edgeShapeMenu.style.backgroundImage="url("+x+")")}});v.selectionModel.addListener(mxEvent.CHANGE,b);v.getModel().addListener(mxEvent.CHANGE,b);this.addListener("styleChanged",mxUtils.bind(this,function(L,T){L=T.getProperty("force");
-(this.updateDefaultStyle||L)&&v.copyCellStyles(T.getProperty("cells"),T.getProperty("keys"),T.getProperty("values"),v.currentVertexStyle,v.currentEdgeStyle,G,U);null!=this.toolbar&&(this.toolbar.setFontName(v.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(v.currentVertexStyle.fontSize||Menus.prototype.defaultFontSize),T=this.getSelectionState(),null!=this.toolbar.edgeStyleMenu&&(l=this.getImageForEdgeStyle(v.currentEdgeStyle),0==T.edges.length&&(this.toolbar.edgeStyleMenu.style.backgroundImage=
-"url("+l+")")),null!=this.toolbar.edgeShapeMenu&&(x=this.getImageForEdgeShape(v.currentEdgeStyle),0==T.edges.length&&(this.toolbar.edgeShapeMenu.style.backgroundImage="url("+x+")")))}));null!=this.toolbar&&(b=mxUtils.bind(this,function(){var L=v.currentVertexStyle.fontFamily||"Helvetica",T=String(v.currentVertexStyle.fontSize||"12"),Y=v.getView().getState(v.getSelectionCell());null!=Y&&(L=Y.style[mxConstants.STYLE_FONTFAMILY]||L,T=Y.style[mxConstants.STYLE_FONTSIZE]||T,10<L.length&&(L=L.substring(0,
-8)+"..."));this.toolbar.setFontName(L);this.toolbar.setFontSize(T)}),v.getSelectionModel().addListener(mxEvent.CHANGE,b),v.getModel().addListener(mxEvent.CHANGE,b));v.addListener(mxEvent.CELLS_ADDED,function(L,T){L=T.getProperty("cells");T=T.getProperty("parent");null!=T&&v.getModel().isLayer(T)&&!v.isCellVisible(T)&&null!=L&&0<L.length&&v.getModel().setVisible(T,!0)});Graph.selectParentLayer&&v.selectionModel.addListener(mxEvent.CHANGE,function(){if(v.isEnabled()&&!v.isSelectionEmpty()){var L=v.getLayerForCells(v.getSelectionCells());
-null!=L&&v.setDefaultParent(L)}});this.gestureHandler=mxUtils.bind(this,function(L){this.isHideCurrentMenuEvent(L)&&this.hideCurrentMenu()});mxEvent.addGestureListeners(document,this.gestureHandler);var J=null;this.resizeHandler=mxUtils.bind(this,function(){null!=J&&window.clearTimeout(J);J=window.setTimeout(mxUtils.bind(this,function(){J=null;this.windowResized()}),100)});mxEvent.addListener(window,"resize",this.resizeHandler);this.orientationChangeHandler=mxUtils.bind(this,function(){this.refresh()});
-mxEvent.addListener(window,"orientationchange",this.orientationChangeHandler);mxClient.IS_IOS&&!window.navigator.standalone&&"undefined"!==typeof Menus&&(this.scrollHandler=mxUtils.bind(this,function(){window.scrollTo(0,0)}),mxEvent.addListener(window,"scroll",this.scrollHandler));this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.resetScrollbars()}));this.addListener("gridEnabledChanged",mxUtils.bind(this,function(){v.view.validateBackground()}));this.addListener("backgroundColorChanged",
-mxUtils.bind(this,function(){v.view.validateBackground()}));v.addListener("gridSizeChanged",mxUtils.bind(this,function(){v.isGridEnabled()&&v.view.validateBackground()}));this.editor.resetGraph()}this.init();v.standalone||this.open()};EditorUi.compactUi=!0;
-EditorUi.parsePng=function(b,d,m){function n(G,U){var E=p;p+=U;return G.substring(E,p)}function v(G){G=n(G,4);return G.charCodeAt(3)+(G.charCodeAt(2)<<8)+(G.charCodeAt(1)<<16)+(G.charCodeAt(0)<<24)}var p=0;if(n(b,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=m&&m();else if(n(b,4),"IHDR"!=n(b,4))null!=m&&m();else{n(b,17);do{m=v(b);var z=n(b,4);if(null!=d&&d(p-8,z,m))break;value=n(b,m);n(b,4);if("IEND"==z)break}while(m)}};mxUtils.extend(EditorUi,mxEventSource);
-EditorUi.prototype.splitSize=mxClient.IS_TOUCH||mxClient.IS_POINTER?12:8;EditorUi.prototype.formatEnabled=!0;EditorUi.prototype.formatWidth=240;EditorUi.prototype.defaultSidebarWidth=Math.min(screen.width/2,"large"!=urlParams["sidebar-entries"]?220:230);EditorUi.prototype.hsplitPosition=screen.width<=Editor.smallScreenWidth?0:EditorUi.prototype.defaultSidebarWidth;EditorUi.prototype.allowAnimation=!0;EditorUi.prototype.lightboxMaxFitScale=2;EditorUi.prototype.lightboxVerticalDivider=4;
+T.x-this.diagramContainer.clientWidth||0<mxEvent.getClientY(L)-T.y-this.diagramContainer.clientHeight?this.diagramContainer.setAttribute("title",mxResources.get("panTooltip")):this.diagramContainer.removeAttribute("title")}));var A=this.hoverIcons.isResetEvent;this.hoverIcons.isResetEvent=function(L,T){return n.isSpaceDown()||A.apply(this,arguments)};this.keydownHandler=mxUtils.bind(this,function(L){if(Editor.passiveScroll){var T=mxEvent.getSource(L);if(T!=u.container&&!u.container.contains(T)&&!u.isEditing())return}16==
+L.which?this.shiftDown=!0:32!=L.which||u.isEditing()?mxEvent.isConsumed(L)||27!=L.keyCode||this.hideDialog(null,!0):(T=mxEvent.getSource(L),"INPUT"==T.nodeName||"TEXTAREA"==T.nodeName||"SELECT"==T.nodeName||T.isContentEditable||(this.spaceDown=!0,this.hoverIcons.reset(),u.container.style.cursor="move",mxEvent.consume(L)))});mxEvent.addListener(document,"keydown",this.keydownHandler);this.keyupHandler=mxUtils.bind(this,function(L){u.container.style.cursor="";this.shiftDown=this.spaceDown=!1});mxEvent.addListener(document,
+"keyup",this.keyupHandler);var D=u.panningHandler.isForcePanningEvent;u.panningHandler.isForcePanningEvent=function(L){return null!=u.freehand&&u.freehand.isActive()?!1:D.apply(this,arguments)||n.isSpaceDown()||mxEvent.isMouseEvent(L.getEvent())&&(this.usePopupTrigger||!mxEvent.isPopupTrigger(L.getEvent()))&&(!mxEvent.isControlDown(L.getEvent())&&mxEvent.isRightMouseButton(L.getEvent())||mxEvent.isMiddleMouseButton(L.getEvent()))};var H=u.cellEditor.isStopEditingEvent;u.cellEditor.isStopEditingEvent=
+function(L){return H.apply(this,arguments)||13==L.keyCode&&(!mxClient.IS_SF&&mxEvent.isControlDown(L)||mxClient.IS_MAC&&mxEvent.isMetaDown(L)||mxClient.IS_SF&&mxEvent.isShiftDown(L))};var K=u.isZoomWheelEvent;u.isZoomWheelEvent=function(){return n.isSpaceDown()||K.apply(this,arguments)};var P=mxUtils.bind(this,function(){if(null!=this.toolbar)for(var L=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,T=this.toolbar.container.firstChild;null!=T;){var Y=T.getAttribute("data-min-width");
+null!=Y&&parseInt(Y)>L?T.style.display="none":T.style.display="";T=T.nextSibling}}),W=!1,M=null,ca=null,fa=null,ha=mxUtils.bind(this,function(){if(null!=this.toolbar&&W!=u.cellEditor.isContentEditing()){for(var L=this.toolbar.container.firstChild,T=[];null!=L;){var Y=L.nextSibling;L.parentNode.removeChild(L);T.push(L);L=Y}L=this.toolbar.fontMenu;Y=this.toolbar.sizeMenu;if(null==fa)this.toolbar.createTextToolbar();else{for(var aa=0;aa<fa.length;aa++)this.toolbar.container.appendChild(fa[aa]);this.toolbar.fontMenu=
+M;this.toolbar.sizeMenu=ca}W=u.cellEditor.isContentEditing();M=L;ca=Y;fa=T;P()}});this.addListener("languageChanged",mxUtils.bind(this,function(){this.destroyWindows(!0);this.descriptorChanged();this.updateStatusAgain();ha()}));this.addListener("currentThemeChanged",P);mxEvent.addListener(window,"resize",P);P();u.isTouchPopupMenuEnabled=function(){return null==n.dialog};var ea=u.cellEditor.startEditing;u.cellEditor.startEditing=function(){ea.apply(this,arguments);ha();if(u.cellEditor.isContentEditing()){var L=
+!1,T=function(){L||(L=!0,window.setTimeout(function(){var Y=u.getSelectedEditingElement();null!=Y&&(Y=mxUtils.getCurrentStyle(Y),null!=Y&&null!=n.toolbar&&(n.toolbar.setFontName(mxUtils.getCssFontFamily(Y.fontFamily)),n.toolbar.setFontSize(parseInt(Y.fontSize))));L=!1},0))};mxEvent.addListener(u.cellEditor.textarea,"input",T);mxEvent.addListener(u.cellEditor.textarea,"touchend",T);mxEvent.addListener(u.cellEditor.textarea,"mouseup",T);mxEvent.addListener(u.cellEditor.textarea,"keyup",T);T()}};var ka=
+u.cellEditor.stopEditing;u.cellEditor.stopEditing=function(L,T){try{ka.apply(this,arguments),ha()}catch(Y){n.handleError(Y)}};u.container.setAttribute("tabindex","0");u.container.style.cursor="default";if(window.self===window.top&&null!=u.container.parentNode)try{u.container.focus()}catch(L){}var pa=u.fireMouseEvent;u.fireMouseEvent=function(L,T,Y){try{L==mxEvent.MOUSE_DOWN&&this.container.focus(),pa.apply(this,arguments)}catch(aa){n.handleError(aa)}};var ba=u.foldCells;u.foldCells=function(L,T,Y,
+aa,S){try{ba.apply(this,arguments)}catch(Z){n.handleError(Z)}};u.popupMenuHandler.autoExpand=!0;null!=this.menus&&(u.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(L,T,Y){this.menus.createPopupMenu(L,T,Y)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(L){u.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(b);this.getKeyHandler=function(){return keyHandler};u.connectionHandler.addListener(mxEvent.CONNECT,function(L,T){var Y=[T.getProperty("cell")];
+T.getProperty("terminalInserted")&&(Y.push(T.getProperty("terminal")),window.setTimeout(function(){null!=n.hoverIcons&&n.hoverIcons.update(u.view.getState(Y[Y.length-1]))},0));u.pasteCellStyles(Y)});var l=null,x=null;b=mxUtils.bind(this,function(){if(null!=this.toolbar){var L=this.getSelectionState();if(u.isEnabled()&&0<L.edges.length){if(null!=this.toolbar.edgeStyleMenu){var T=this.getImageForEdgeStyle(L.style);1==L.edges.length&&"arrow"==L.style[mxConstants.STYLE_SHAPE]&&(T=Format.straightImage.src);
+this.toolbar.edgeStyleMenu.style.backgroundImage="url("+T+")"}null!=this.toolbar.edgeShapeMenu&&(this.toolbar.edgeShapeMenu.style.backgroundImage="url("+this.getImageForEdgeShape(L.style)+")")}else null!=this.toolbar.edgeStyleMenu&&(this.toolbar.edgeStyleMenu.style.backgroundImage="url("+l+")"),null!=this.toolbar.edgeShapeMenu&&(this.toolbar.edgeShapeMenu.style.backgroundImage="url("+x+")")}});u.selectionModel.addListener(mxEvent.CHANGE,b);u.getModel().addListener(mxEvent.CHANGE,b);this.addListener("styleChanged",
+mxUtils.bind(this,function(L,T){L=T.getProperty("force");(this.updateDefaultStyle||L)&&u.copyCellStyles(T.getProperty("cells"),T.getProperty("keys"),T.getProperty("values"),u.currentVertexStyle,u.currentEdgeStyle,G,U);null!=this.toolbar&&(this.toolbar.setFontName(u.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(u.currentVertexStyle.fontSize||Menus.prototype.defaultFontSize),T=this.getSelectionState(),null!=this.toolbar.edgeStyleMenu&&(l=this.getImageForEdgeStyle(u.currentEdgeStyle),
+0==T.edges.length&&(this.toolbar.edgeStyleMenu.style.backgroundImage="url("+l+")")),null!=this.toolbar.edgeShapeMenu&&(x=this.getImageForEdgeShape(u.currentEdgeStyle),0==T.edges.length&&(this.toolbar.edgeShapeMenu.style.backgroundImage="url("+x+")")))}));null!=this.toolbar&&(b=mxUtils.bind(this,function(){var L=u.currentVertexStyle.fontFamily||"Helvetica",T=String(u.currentVertexStyle.fontSize||"12"),Y=u.getView().getState(u.getSelectionCell());null!=Y&&(L=Y.style[mxConstants.STYLE_FONTFAMILY]||L,
+T=Y.style[mxConstants.STYLE_FONTSIZE]||T,10<L.length&&(L=L.substring(0,8)+"..."));this.toolbar.setFontName(L);this.toolbar.setFontSize(T)}),u.getSelectionModel().addListener(mxEvent.CHANGE,b),u.getModel().addListener(mxEvent.CHANGE,b));u.addListener(mxEvent.CELLS_ADDED,function(L,T){L=T.getProperty("cells");T=T.getProperty("parent");null!=T&&u.getModel().isLayer(T)&&!u.isCellVisible(T)&&null!=L&&0<L.length&&u.getModel().setVisible(T,!0)});Graph.selectParentLayer&&u.selectionModel.addListener(mxEvent.CHANGE,
+function(){if(u.isEnabled()&&!u.isSelectionEmpty()){var L=u.getLayerForCells(u.getSelectionCells());null!=L&&u.setDefaultParent(L)}});this.gestureHandler=mxUtils.bind(this,function(L){this.isHideCurrentMenuEvent(L)&&this.hideCurrentMenu()});mxEvent.addGestureListeners(document,this.gestureHandler);var J=null;this.resizeHandler=mxUtils.bind(this,function(){null!=J&&window.clearTimeout(J);J=window.setTimeout(mxUtils.bind(this,function(){J=null;this.windowResized()}),100)});mxEvent.addListener(window,
+"resize",this.resizeHandler);this.orientationChangeHandler=mxUtils.bind(this,function(){this.refresh()});mxEvent.addListener(window,"orientationchange",this.orientationChangeHandler);mxClient.IS_IOS&&!window.navigator.standalone&&"undefined"!==typeof Menus&&(this.scrollHandler=mxUtils.bind(this,function(){window.scrollTo(0,0)}),mxEvent.addListener(window,"scroll",this.scrollHandler));this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.resetScrollbars()}));this.addListener("gridEnabledChanged",
+mxUtils.bind(this,function(){u.view.validateBackground()}));this.addListener("backgroundColorChanged",mxUtils.bind(this,function(){u.view.validateBackground()}));u.addListener("gridSizeChanged",mxUtils.bind(this,function(){u.isGridEnabled()&&u.view.validateBackground()}));this.editor.resetGraph()}this.init();u.standalone||this.open()};EditorUi.compactUi=!0;
+EditorUi.parsePng=function(b,d,m){function n(G,U){var E=p;p+=U;return G.substring(E,p)}function u(G){G=n(G,4);return G.charCodeAt(3)+(G.charCodeAt(2)<<8)+(G.charCodeAt(1)<<16)+(G.charCodeAt(0)<<24)}var p=0;if(n(b,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=m&&m();else if(n(b,4),"IHDR"!=n(b,4))null!=m&&m();else{n(b,17);do{m=u(b);var z=n(b,4);if(null!=d&&d(p-8,z,m))break;value=n(b,m);n(b,4);if("IEND"==z)break}while(m)}};mxUtils.extend(EditorUi,mxEventSource);
+EditorUi.prototype.splitSize=mxClient.IS_TOUCH||mxClient.IS_POINTER?12:8;EditorUi.prototype.formatEnabled=!0;EditorUi.prototype.formatWidth=240;EditorUi.prototype.defaultSidebarWidth=Math.min(screen.width/2,"large"!=urlParams["sidebar-entries"]?232:242);EditorUi.prototype.hsplitPosition=screen.width<=Editor.smallScreenWidth?0:EditorUi.prototype.defaultSidebarWidth;EditorUi.prototype.allowAnimation=!0;EditorUi.prototype.lightboxMaxFitScale=2;EditorUi.prototype.lightboxVerticalDivider=4;
EditorUi.prototype.hsplitClickEnabled=!1;EditorUi.prototype.updateDefaultStyle=!1;EditorUi.prototype.spaceDown=!1;EditorUi.prototype.shiftDown=!1;
EditorUi.prototype.init=function(){var b=this.editor.graph;if(!b.standalone){"0"!=urlParams["shape-picker"]&&this.installShapePicker();mxEvent.addListener(b.container,"scroll",mxUtils.bind(this,function(){b.tooltipHandler.hide();null!=b.connectionHandler&&null!=b.connectionHandler.constraintHandler&&b.connectionHandler.constraintHandler.reset()}));b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){b.tooltipHandler.hide();var n=b.getRubberband();null!=n&&n.cancel()}));mxEvent.addListener(b.container,
"keydown",mxUtils.bind(this,function(n){this.onKeyDown(n);this.onKeyPress(n)}));this.installTypingShim();this.addUndoListener();this.addBeforeUnloadListener();b.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.updateActionStates()}));b.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.updateActionStates()}));var d=b.setDefaultParent,m=this;this.editor.graph.setDefaultParent=function(){d.apply(this,arguments);m.updateActionStates()};b.showLinkDialog=
mxUtils.bind(m,m.showLinkDialog);b.editLink=m.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,d=b.getSelectionCells(),m=this.initSelectionState(),n=!0,v=0;v<d.length;v++){var p=b.getCurrentCellStyle(d[v]);"0"!=mxUtils.getValue(p,mxConstants.STYLE_EDITABLE,"1")&&(this.updateSelectionStateForCell(m,d[v],d,n),n=!1)}this.updateSelectionStateForTableCells(m);if(Editor.enableCustomProperties){m.customProperties={};b=m.vertices;d=m.edges;for(v=0;v<b.length;v++)this.findCommonProperties(b[v],m.customProperties,0==v,m);
-for(v=0;v<d.length;v++)this.findCommonProperties(d[v],m.customProperties,0==b.length&&0==v,m)}return m};
-EditorUi.prototype.findCommonProperties=function(b,d,m,n){n=mxUtils.bind(this,function(E){if(null!=E)if(m)for(var R=0;R<E.length;R++)d[E[R].name]=E[R];else for(var N in d)if(null!=N){var c=!1;for(R=0;R<E.length;R++)if(E[R].name==N&&E[R].type==d[N].type){c=!0;break}c||delete d[N]}});var v=this.editor.graph,p=v.view.getState(b);if(null!=p&&null!=p.shape){if(!p.shape.commonCustomPropAdded){p.shape.commonCustomPropAdded=!0;p.shape.customProperties=p.shape.customProperties||[];if(null!=p.shape&&null!=
-p.shape.stencil&&null!=p.shape.stencil.desc){var z=p.shape.stencil,G=[],U=mxUtils.bind(this,function(E){E=z.desc.getElementsByTagName(E);for(var R=[],N=0;N<E.length;N++){var c=E[N].getAttribute("color");if(!mxUtils.isValidColor(c)&&!G[c]&&"fill"!=c&&"stroke"!=c&&"font"!=c){G[c]=!0;var g=E[N].getAttribute("name");g=null!=g?g:Editor.getLabelForStylename(c);var k=E[N].getAttribute("default"),q=z.getDefaultColorValue(E[N],v),A=k;k==mxConstants.NONE&&(k="default");R.push({name:c,type:"color",primary:"false"!=
+EditorUi.prototype.createSelectionState=function(){for(var b=this.editor.graph,d=b.getSelectionCells(),m=this.initSelectionState(),n=!0,u=0;u<d.length;u++){var p=b.getCurrentCellStyle(d[u]);"0"!=mxUtils.getValue(p,mxConstants.STYLE_EDITABLE,"1")&&(this.updateSelectionStateForCell(m,d[u],d,n),n=!1)}this.updateSelectionStateForTableCells(m);if(Editor.enableCustomProperties){m.customProperties={};b=m.vertices;d=m.edges;for(u=0;u<b.length;u++)this.findCommonProperties(b[u],m.customProperties,0==u,m);
+for(u=0;u<d.length;u++)this.findCommonProperties(d[u],m.customProperties,0==b.length&&0==u,m)}return m};
+EditorUi.prototype.findCommonProperties=function(b,d,m,n){n=mxUtils.bind(this,function(E){if(null!=E)if(m)for(var R=0;R<E.length;R++)d[E[R].name]=E[R];else for(var N in d)if(null!=N){var c=!1;for(R=0;R<E.length;R++)if(E[R].name==N&&E[R].type==d[N].type){c=!0;break}c||delete d[N]}});var u=this.editor.graph,p=u.view.getState(b);if(null!=p&&null!=p.shape){if(!p.shape.commonCustomPropAdded){p.shape.commonCustomPropAdded=!0;p.shape.customProperties=p.shape.customProperties||[];if(null!=p.shape&&null!=
+p.shape.stencil&&null!=p.shape.stencil.desc){var z=p.shape.stencil,G=[],U=mxUtils.bind(this,function(E){E=z.desc.getElementsByTagName(E);for(var R=[],N=0;N<E.length;N++){var c=E[N].getAttribute("color");if(!mxUtils.isValidColor(c)&&!G[c]&&"fill"!=c&&"stroke"!=c&&"font"!=c){G[c]=!0;var g=E[N].getAttribute("name");g=null!=g?g:Editor.getLabelForStylename(c);var k=E[N].getAttribute("default"),q=z.getDefaultColorValue(E[N],u),A=k;k==mxConstants.NONE&&(k="default");R.push({name:c,type:"color",primary:"false"!=
E[N].getAttribute("primary"),defVal:k,defaultColor:q,undefinedColor:A,dispName:g})}}return R});Array.prototype.push.apply(p.shape.customProperties,U("fillcolor"));Array.prototype.push.apply(p.shape.customProperties,U("strokecolor"));Array.prototype.push.apply(p.shape.customProperties,U("fontcolor"))}p.cell.vertex?Array.prototype.push.apply(p.shape.customProperties,Editor.commonVertexProperties):Array.prototype.push.apply(p.shape.customProperties,Editor.commonEdgeProperties)}n(p.shape.customProperties)}b=
b.getAttribute("customProperties");if(null!=b)try{n(JSON.parse(b))}catch(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,html:!0,rounded:!0,autoSize:!1,image:!1,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){var d=mxUtils.sortCells(b.cells),m=this.editor.graph.model,n=m.getParent(d[0]),v=m.getParent(n);if(null!=n&&null!=v){for(var p=n.getIndex(d[0]),z=v.getIndex(n),G=null,U=1,E=1,R=0,N=z<v.getChildCount()-1?m.getChildAt(m.getChildAt(v,z+1),p):null;R<d.length-1;){var c=d[++R];null==N||N!=c||null!=G&&U!=G||(G=U,U=0,E++,n=m.getParent(N),N=z+E<v.getChildCount()?m.getChildAt(m.getChildAt(v,z+E),p):null);var g=this.editor.graph.view.getState(c);
+EditorUi.prototype.updateSelectionStateForTableCells=function(b){if(1<b.cells.length&&b.cell){var d=mxUtils.sortCells(b.cells),m=this.editor.graph.model,n=m.getParent(d[0]),u=m.getParent(n);if(null!=n&&null!=u){for(var p=n.getIndex(d[0]),z=u.getIndex(n),G=null,U=1,E=1,R=0,N=z<u.getChildCount()-1?m.getChildAt(m.getChildAt(u,z+1),p):null;R<d.length-1;){var c=d[++R];null==N||N!=c||null!=G&&U!=G||(G=U,U=0,E++,n=m.getParent(N),N=z+E<u.getChildCount()?m.getChildAt(m.getChildAt(u,z+E),p):null);var g=this.editor.graph.view.getState(c);
if(c==m.getChildAt(n,p+U)&&null!=g&&1==mxUtils.getValue(g.style,"colspan",1)&&1==mxUtils.getValue(g.style,"rowspan",1))U++;else break}R==E*U-1&&(b.mergeCell=d[0],b.colspan=U,b.rowspan=E)}}};EditorUi.prototype.windowResized=function(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.editor.graph.sizeDidChange()}),0)};
-EditorUi.prototype.createTimeout=function(b,d,m){var n=!0,v=null,p=mxUtils.bind(this,function(G){v.clear()&&(n=!1,G=null!=G?G:{code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.createTimeout(b,d,m)})},null!=m?m(G):this.handleError(G))}),z=window.setTimeout(p,null!=b?b:this.timeout);v={clear:function(){window.clearTimeout(z);return n},isAlive:function(){return n}};null!=d&&this.tryAndHandle(mxUtils.bind(this,function(){d(v)}),p);return v};
+EditorUi.prototype.createTimeout=function(b,d,m){var n=!0,u=null,p=mxUtils.bind(this,function(G){u.clear()&&(n=!1,G=null!=G?G:{code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.createTimeout(b,d,m)})},null!=m?m(G):this.handleError(G))}),z=window.setTimeout(p,null!=b?b:this.timeout);u={clear:function(){window.clearTimeout(z);return n},isAlive:function(){return n}};null!=d&&this.tryAndHandle(mxUtils.bind(this,function(){d(u)}),p);return u};
EditorUi.prototype.tryAndHandle=function(b,d){try{b()}catch(m){null!=d?d(m):this.handleError(m)}};
-EditorUi.prototype.removeUserDefinedDarkColors=function(b,d,m){var n=this.editor.graph;b=null!=b?b:n.getSelectionCells();var v=Graph.colorStyles,p=document.createElement("div");n.model.beginUpdate();try{for(var z=0;z<b.length;z++)if(n.model.isEdge(b[z])||n.model.isVertex(b[z])){var G=n.getCellStyle(b[z],!1);if(null!=G)for(var U=0;U<v.length;U++)try{var E=G[v[U]];if(mxUtils.isLightDarkColor(E)){var R=mxUtils.getLightDarkColor(E);n.setCellStyles(v[U],R.light,[b[z]])}}catch(c){}d&&n.isHtmlLabel(b[z])&&
+EditorUi.prototype.removeUserDefinedDarkColors=function(b,d,m){var n=this.editor.graph;b=null!=b?b:n.getSelectionCells();var u=Graph.colorStyles,p=document.createElement("div");n.model.beginUpdate();try{for(var z=0;z<b.length;z++)if(n.model.isEdge(b[z])||n.model.isVertex(b[z])){var G=n.getCellStyle(b[z],!1);if(null!=G)for(var U=0;U<u.length;U++)try{var E=G[u[U]];if(mxUtils.isLightDarkColor(E)){var R=mxUtils.getLightDarkColor(E);n.setCellStyles(u[U],R.light,[b[z]])}}catch(c){}d&&n.isHtmlLabel(b[z])&&
"0"!=mxUtils.getValue(G,"html","0")&&(p.innerHTML=Graph.sanitizeHtml(n.getLabel(b[z])),Graph.addLightDarkColors(p,null,null,function(c,g,k){return mxUtils.isLightDarkColor(k)?(k=mxUtils.getLightDarkColor(k),c.style.setProperty(g,k.light),!0):!1})&&n.cellLabelChanged(b[z],p.innerHTML))}if(m&&mxUtils.isLightDarkColor(n.background)){R=mxUtils.getLightDarkColor(n.background);var N=new ChangePageSetup(this,R.light);N.ignoreImage=!0;n.model.execute(N)}}finally{n.model.endUpdate()}return b};
EditorUi.prototype.updateSelectionStateForCell=function(b,d,m,n){m=this.editor.graph;b.cells.push(d);if(m.getModel().isVertex(d)){b.connections=0<m.model.getEdgeCount(d);b.unlocked=b.unlocked&&!m.isCellLocked(d);b.resizable=b.resizable&&m.isCellResizable(d);b.rotatable=b.rotatable&&m.isCellRotatable(d);b.movable=b.movable&&m.isCellMovable(d)&&!m.isTableRow(d)&&!m.isTableCell(d);b.swimlane=b.swimlane||m.isSwimlane(d);b.table=b.table||m.isTable(d);b.cell=b.cell||m.isTableCell(d);b.row=b.row||m.isTableRow(d);
-b.vertices.push(d);var v=m.getCellGeometry(d);if(null!=v&&(0<v.width?null==b.width?b.width=v.width:b.width!=v.width&&(b.width=""):b.containsLabel=!0,0<v.height?null==b.height?b.height=v.height:b.height!=v.height&&(b.height=""):b.containsLabel=!0,!v.relative||null!=v.offset)){var p=v.relative?v.offset.x:v.x;v=v.relative?v.offset.y:v.y;null==b.x?b.x=p:b.x!=p&&(b.x="");null==b.y?b.y=v:b.y!=v&&(b.y="")}}else m.getModel().isEdge(d)&&(b.edges.push(d),b.connections=!0,b.resizable=!1,b.rotatable=!1,b.movable=
+b.vertices.push(d);var u=m.getCellGeometry(d);if(null!=u&&(0<u.width?null==b.width?b.width=u.width:b.width!=u.width&&(b.width=""):b.containsLabel=!0,0<u.height?null==b.height?b.height=u.height:b.height!=u.height&&(b.height=""):b.containsLabel=!0,!u.relative||null!=u.offset)){var p=u.relative?u.offset.x:u.x;u=u.relative?u.offset.y:u.y;null==b.x?b.x=p:b.x!=p&&(b.x="");null==b.y?b.y=u:b.y!=u&&(b.y="")}}else m.getModel().isEdge(d)&&(b.edges.push(d),b.connections=!0,b.resizable=!1,b.rotatable=!1,b.movable=
!1);p=m.view.getState(d);null!=p&&(b.html=b.html&&m.isHtmlLabel(d),b.autoSize=b.autoSize||m.isAutoSizeState(p),b.glass=b.glass&&m.isGlassState(p),b.rounded=b.rounded&&m.isRoundedState(p),b.lineJumps=b.lineJumps&&m.isLineJumpState(p),b.image=b.image||m.isImageState(p),b.shadow=b.shadow&&m.isShadowState(p),b.fill=b.fill&&m.isFillState(p),b.gradient=b.fill&&m.isGradientState(p),b.stroke=b.stroke&&m.isStrokeState(p),d=mxUtils.getValue(p.style,mxConstants.STYLE_SHAPE,null),b.containsImage=b.containsImage||
"image"==d,m.mergeStyle(p.style,b.style,n))};
EditorUi.prototype.installShapePicker=function(){var b=this.editor.graph,d=this;b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(E,R){"mouseDown"==R.getProperty("eventName")&&d.hideShapePicker()}));var m=mxUtils.bind(this,function(){d.hideShapePicker(!0)});b.addListener("wheel",m);b.addListener(mxEvent.ESCAPE,m);b.view.addListener(mxEvent.SCALE,m);b.view.addListener(mxEvent.SCALE_AND_TRANSLATE,m);b.getSelectionModel().addListener(mxEvent.CHANGE,m);var n=b.popupMenuHandler.isMenuShowing;
-b.popupMenuHandler.isMenuShowing=function(){return n.apply(this,arguments)||null!=d.shapePicker||null!=d.currentMenu};var v=b.dblClick;b.dblClick=function(E,R){if(this.isEnabled())if(null!=R||null==d.sidebar||mxEvent.isShiftDown(E)||b.isCellLocked(b.getDefaultParent()))v.apply(this,arguments);else{var N=mxUtils.convertPoint(this.container,mxEvent.getClientX(E),mxEvent.getClientY(E));mxEvent.consume(E);window.setTimeout(mxUtils.bind(this,function(){d.showShapePicker(N.x,N.y)}),30)}};if(null!=this.hoverIcons){this.hoverIcons.addListener("reset",
+b.popupMenuHandler.isMenuShowing=function(){return n.apply(this,arguments)||null!=d.shapePicker||null!=d.currentMenu};var u=b.dblClick;b.dblClick=function(E,R){if(this.isEnabled())if(null!=R||null==d.sidebar||mxEvent.isShiftDown(E)||b.isCellLocked(b.getDefaultParent()))u.apply(this,arguments);else{var N=mxUtils.convertPoint(this.container,mxEvent.getClientX(E),mxEvent.getClientY(E));mxEvent.consume(E);window.setTimeout(mxUtils.bind(this,function(){d.showShapePicker(N.x,N.y)}),30)}};if(null!=this.hoverIcons){this.hoverIcons.addListener("reset",
mxUtils.bind(this,function(){null!=this.hoverIcons.shapePickerHoverDiv&&(this.hoverIcons.shapePickerHoverDiv=null,d.hideShapePicker(!0))}));var p=this.hoverIcons.drag;this.hoverIcons.drag=function(){d.hideShapePicker();p.apply(this,arguments)};var z=this.hoverIcons.execute;this.hoverIcons.execute=function(E,R,N){var c=N.getEvent();this.graph.isCloneEvent(c)||mxEvent.isShiftDown(c)?z.apply(this,arguments):this.graph.connectVertex(E.cell,R,this.graph.defaultEdgeLength,c,null,null,mxUtils.bind(this,
function(g,k,q){var A=b.getCompositeParent(E.cell);g=b.getCellGeometry(A);for(N.consume();null!=A&&b.model.isVertex(A)&&null!=g&&g.relative;)cell=A,A=b.model.getParent(cell),g=b.getCellGeometry(A);window.setTimeout(mxUtils.bind(this,function(){this.shapePickerHoverDiv=d.showShapePicker(N.getGraphX(),N.getGraphY(),A,mxUtils.bind(this,function(D){q(D);null!=d.hoverIcons&&d.hoverIcons.update(b.view.getState(D))}),R)}),30)}),mxUtils.bind(this,function(g){this.graph.selectCellsForConnectVertex(g,c,this)}))};
var G=null;this.hoverIcons.addListener("focus",mxUtils.bind(this,function(E,R){null!=G&&window.clearTimeout(G);G=window.setTimeout(mxUtils.bind(this,function(){var N=R.getProperty("arrow"),c=R.getProperty("direction"),g=R.getProperty("event");N=N.getBoundingClientRect();var k=mxUtils.getOffset(b.container),q=b.container.scrollLeft+N.x-k.x;k=b.container.scrollTop+N.y-k.y;var A=b.getCompositeParent(null!=this.hoverIcons.currentState?this.hoverIcons.currentState.cell:null),D=d.showShapePicker(q,k,A,
mxUtils.bind(this,function(H){null!=H&&b.connectVertex(A,c,b.defaultEdgeLength,g,!0,!1,function(K,P,W){W(H);null!=d.hoverIcons&&d.hoverIcons.update(b.view.getState(H))},function(K){b.selectCellsForConnectVertex(K)},g,this.hoverIcons)}),c,!0);null!=D&&(this.centerShapePicker(D,N,q,k,c),this.hoverIcons.shapePickerHoverDiv=D,mxUtils.setOpacity(D,30),mxEvent.addListener(D,"mouseenter",function(){mxUtils.setOpacity(D,100)}),mxEvent.addListener(D,"mouseleave",function(){d.hideShapePicker()}))}),Editor.shapePickerHoverDelay)}));
this.hoverIcons.addListener("blur",mxUtils.bind(this,function(E,R){null!=G&&window.clearTimeout(G)}))}var U=!1;b.addMouseListener({mouseDown:mxUtils.bind(this,function(E,R){U=!1}),mouseMove:mxUtils.bind(this,function(E,R){null!=b.connectHandleClickState&&null!=b.connectionHandler&&null!=b.connectionHandler.shape&&(U=!0)}),mouseUp:mxUtils.bind(this,function(E,R){E=b.connectHandleClickState;b.connectHandleClickState=null;if(null!=E&&!U){var N=R.getEvent();if(!b.isCloneEvent(N)&&!mxEvent.isShiftDown(N)){for(var c=
mxConstants.DIRECTION_EAST,g=b.getCompositeParent(E.cell),k=b.getCellGeometry(g);null!=g&&b.model.isVertex(g)&&null!=k&&k.relative;)g=b.model.getParent(g),k=b.getCellGeometry(g);b.connectVertex(E.cell,c,b.defaultEdgeLength,N,null,!0,mxUtils.bind(this,function(q,A,D){R.consume();window.setTimeout(mxUtils.bind(this,function(){d.showShapePicker(R.getGraphX(),R.getGraphY(),g,mxUtils.bind(this,function(H){D(H);null!=d.hoverIcons&&d.hoverIcons.update(b.view.getState(H))}),c)}),30)}),mxUtils.bind(this,function(q){b.selectCellsForConnectVertex(q,
-N)}))}}U=!1})})};EditorUi.prototype.centerShapePicker=function(b,d,m,n,v){if(v==mxConstants.DIRECTION_EAST||v==mxConstants.DIRECTION_WEST)b.style.width="40px";var p=b.getBoundingClientRect();v==mxConstants.DIRECTION_NORTH?(m-=p.width/2-10,n-=p.height+6):v==mxConstants.DIRECTION_SOUTH?(m-=p.width/2-10,n+=d.height+6):v==mxConstants.DIRECTION_WEST?(m-=p.width+6,n-=p.height/2-10):v==mxConstants.DIRECTION_EAST&&(m+=d.width+6,n-=p.height/2-10);b.style.left=m+"px";b.style.top=n+"px"};
-EditorUi.prototype.showShapePicker=function(b,d,m,n,v,p,z,G,U){var E=null;this.editor.graph.freehand.isDrawing()||(G=G||null==m,E=this.createShapePicker(b,d,m,n,v,mxUtils.bind(this,function(){this.hideShapePicker()}),this.getCellsForShapePicker(m,p,G),p,z,G,U),null!=E&&(null==this.hoverIcons||p||this.hoverIcons.reset(),b=this.editor.graph,b.popupMenuHandler.hideMenu(),b.tooltipHandler.hideTooltip(),this.hideCurrentMenu(),this.hideShapePicker(),this.shapePickerCallback=n,this.shapePicker=E));return E};
-EditorUi.prototype.createShapePicker=function(b,d,m,n,v,p,z,G,U,E,R){R=null!=R?R:!0;var N=this.editor.graph,c=null;U=null!=U?U:function(q){q=q[0];var A=0,D=0,H=q.geometry;null!=H&&(N.model.isEdge(q)&&(q=H.getTerminalPoint(!1),H=new mxRectangle(0,0,q.x,q.y)),A=H.width/2,D=H.height/2);return new mxPoint(N.snap(Math.round(b/N.view.scale)-N.view.translate.x-A),N.snap(Math.round(d/N.view.scale)-N.view.translate.y-D))};if(null!=z&&0<z.length){var g=this;N=this.editor.graph;c=document.createElement("div");
-v=N.view.getState(m);var k=null==m||null!=v&&N.isTransparentState(v)?null:N.copyStyle(m);c.className="geShapePicker";c.setAttribute("title",mxResources.get("sidebarTooltip"));c.style.left=Math.round(b)+"px";c.style.top=Math.round(d)+"px";mxClient.IS_POINTER&&(c.style.touchAction="none");G||mxUtils.setPrefixedStyle(c.style,"transform","translate(-22px,-22px)");N.container.appendChild(c);v=mxUtils.bind(this,function(q){var A=document.createElement("a");c.appendChild(A);var D=q.shapePickerKeepStyle;
+N)}))}}U=!1})})};EditorUi.prototype.centerShapePicker=function(b,d,m,n,u){if(u==mxConstants.DIRECTION_EAST||u==mxConstants.DIRECTION_WEST)b.style.width="40px";var p=b.getBoundingClientRect();u==mxConstants.DIRECTION_NORTH?(m-=p.width/2-10,n-=p.height+6):u==mxConstants.DIRECTION_SOUTH?(m-=p.width/2-10,n+=d.height+6):u==mxConstants.DIRECTION_WEST?(m-=p.width+6,n-=p.height/2-10):u==mxConstants.DIRECTION_EAST&&(m+=d.width+6,n-=p.height/2-10);b.style.left=m+"px";b.style.top=n+"px"};
+EditorUi.prototype.showShapePicker=function(b,d,m,n,u,p,z,G,U){var E=null;this.editor.graph.freehand.isDrawing()||(G=G||null==m,E=this.createShapePicker(b,d,m,n,u,mxUtils.bind(this,function(){this.hideShapePicker()}),this.getCellsForShapePicker(m,p,G),p,z,G,U),null!=E&&(null==this.hoverIcons||p||this.hoverIcons.reset(),b=this.editor.graph,b.popupMenuHandler.hideMenu(),b.tooltipHandler.hideTooltip(),this.hideCurrentMenu(),this.hideShapePicker(),this.shapePickerCallback=n,this.shapePicker=E));return E};
+EditorUi.prototype.createShapePicker=function(b,d,m,n,u,p,z,G,U,E,R){R=null!=R?R:!0;var N=this.editor.graph,c=null;U=null!=U?U:function(q){q=q[0];var A=0,D=0,H=q.geometry;null!=H&&(N.model.isEdge(q)&&(q=H.getTerminalPoint(!1),H=new mxRectangle(0,0,q.x,q.y)),A=H.width/2,D=H.height/2);return new mxPoint(N.snap(Math.round(b/N.view.scale)-N.view.translate.x-A),N.snap(Math.round(d/N.view.scale)-N.view.translate.y-D))};if(null!=z&&0<z.length){var g=this;N=this.editor.graph;c=document.createElement("div");
+u=N.view.getState(m);var k=null==m||null!=u&&N.isTransparentState(u)?null:N.copyStyle(m);c.className="geShapePicker";c.setAttribute("title",mxResources.get("sidebarTooltip"));c.style.left=Math.round(b)+"px";c.style.top=Math.round(d)+"px";mxClient.IS_POINTER&&(c.style.touchAction="none");G||mxUtils.setPrefixedStyle(c.style,"transform","translate(-22px,-22px)");N.container.appendChild(c);u=mxUtils.bind(this,function(q){var A=document.createElement("a");c.appendChild(A);var D=q.shapePickerKeepStyle;
delete q.shapePickerKeepStyle;D||(null!=k&&"1"!=urlParams.sketch?this.sidebar.graph.pasteStyle(k,[q]):this.sidebar.graph.pasteCellStyles([q],N.currentVertexStyle,N.currentEdgeStyle));D=q.geometry;N.model.isEdge(q)&&(D=D.getTerminalPoint(!1),D=new mxRectangle(0,0,D.x,D.y));null!=D&&(D=this.sidebar.createVertexTemplateFromCells([q],D.width,D.height,"",!0,!1,null,!0,mxUtils.bind(this,function(H){if(!mxEvent.isAltDown(H)||1!=N.getSelectionCount()){if(!mxEvent.isShiftDown(H)||null==m&&N.isSelectionEmpty()){var K=
N.cloneCell(q);if(null!=n)n(K);else{var P=U([K]);N.model.isEdge(K)?K.geometry.translate(P.x,P.y):(K.geometry.x=P.x,K.geometry.y=P.y);N.model.beginUpdate();try{N.addCell(K),N.model.isVertex(K)&&N.isAutoSizeCell(K)&&N.updateCellSize(K)}finally{N.model.endUpdate()}N.setSelectionCell(K);N.scrollCellToVisible(K);R&&N.startEditing(K);null!=g.hoverIcons&&g.hoverIcons.update(N.view.getState(K))}}else K=N.getEditableCells(null!=m?[m]:N.getSelectionCells()),N.updateShapes(q,K);null!=p&&p(H);mxEvent.consume(H)}}),
-25,25,null,null,m),D.style.display="flex",D.style.alignItems="center",D.style.justifyContent="center",A.appendChild(D))});for(E=0;E<(G?Math.min(z.length,4):z.length);E++)v(z[E]);z=c.offsetTop+c.clientHeight-(N.container.scrollTop+N.container.offsetHeight);0<z&&(c.style.top=Math.max(N.container.scrollTop+22,d-z)+"px");z=c.offsetLeft+c.clientWidth-(N.container.scrollLeft+N.container.offsetWidth);0<z&&(c.style.left=Math.max(N.container.scrollLeft+22,b-z)+"px")}return c};
+25,25,null,null,m),D.style.display="flex",D.style.alignItems="center",D.style.justifyContent="center",A.appendChild(D))});for(E=0;E<(G?Math.min(z.length,4):z.length);E++)u(z[E]);z=c.offsetTop+c.clientHeight-(N.container.scrollTop+N.container.offsetHeight);0<z&&(c.style.top=Math.max(N.container.scrollTop+22,d-z)+"px");z=c.offsetLeft+c.clientWidth-(N.container.scrollLeft+N.container.offsetWidth);0<z&&(c.style.left=Math.max(N.container.scrollLeft+22,b-z)+"px")}return c};
EditorUi.prototype.defaultShapePickerEntries=null;
-EditorUi.prototype.getCellsForShapePicker=function(b,d,m){var n=this.editor.graph,v=mxUtils.bind(this,function(N,c,g,k){return n.createVertex(null,null,k||"",0,0,c||120,g||60,N,!1)});d=mxUtils.bind(this,function(N,c,g){N=new mxCell(g||"",new mxGeometry(0,0,n.defaultEdgeLength+20,0),N);N.geometry.setTerminalPoint(new mxPoint(0,0),!0);N.geometry.setTerminalPoint(new mxPoint(N.geometry.width,null!=c?c:0),!1);N.geometry.points=null!=c?[new mxPoint(N.geometry.width/2,c)]:[];N.geometry.relative=!0;N.edge=
+EditorUi.prototype.getCellsForShapePicker=function(b,d,m){var n=this.editor.graph,u=mxUtils.bind(this,function(N,c,g,k){return n.createVertex(null,null,k||"",0,0,c||120,g||60,N,!1)});d=mxUtils.bind(this,function(N,c,g){N=new mxCell(g||"",new mxGeometry(0,0,n.defaultEdgeLength+20,0),N);N.geometry.setTerminalPoint(new mxPoint(0,0),!0);N.geometry.setTerminalPoint(new mxPoint(N.geometry.width,null!=c?c:0),!1);N.geometry.points=null!=c?[new mxPoint(N.geometry.width/2,c)]:[];N.geometry.relative=!0;N.edge=
!0;return N});if(null!=b)try{b=n.cloneCell(b),n.model.isVertex(b)&&null!=b.geometry&&(b.geometry.x=0,b.geometry.y=0)}catch(N){b=null}if(null!=this.defaultShapePickerEntries){for(var p=[],z=[],G=function(N){if(null!=N&&"object"===typeof N){var c=mxUtils.createXmlDocument().createElement("UserObject"),g;for(g in N)N.hasOwnProperty(g)&&c.setAttribute(g,N[g]);null==c.getAttribute("label")&&c.setAttribute("label","");return c}return N},U=0;U<this.defaultShapePickerEntries.length;U++){var E=this.defaultShapePickerEntries[U];
-if(null!=E.style){var R=G(E.value);E.edge?z.push(d(E.style,E.y,R)):(R=v(E.style,E.width,E.height,R),E.keepStyle&&(R.shapePickerKeepStyle=!0),p.push(R))}}null!=b&&(p[0]=b);b=p;m&&(b=b.concat(z));return b}null==b&&(b=v(n.appendFontSize(Editor.defaultTextStyle,n.vertexFontSize),60,30,"Text"));b=[b,v("whiteSpace=wrap;html=1;"),v("ellipse;whiteSpace=wrap;html=1;",80,80),v("rhombus;whiteSpace=wrap;html=1;",80,80),v("rounded=1;whiteSpace=wrap;html=1;"),v("shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;"),
-v("shape=trapezoid;perimeter=trapezoidPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,60),v("shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;fixedSize=1;",120,80),v("shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,80),v("shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;"),v("triangle;whiteSpace=wrap;html=1;",60,80),v("shape=document;whiteSpace=wrap;html=1;boundedLbl=1;",120,80),v("shape=tape;whiteSpace=wrap;html=1;",120,100),v("ellipse;shape=cloud;whiteSpace=wrap;html=1;",
-120,80),v("shape=singleArrow;whiteSpace=wrap;html=1;arrowWidth=0.4;arrowSize=0.4;",80,60),v("shape=waypoint;sketch=0;size=6;pointerEvents=1;points=[];fillColor=none;resizable=0;rotatable=0;perimeter=centerPerimeter;snapToPoint=1;",20,20)];m&&(b=b.concat([d("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;"),d("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;endArrow=classic;startArrow=classic;endSize=8;startSize=8;"),d("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;shape=flexArrow;rounded=1;startSize=8;endSize=8;"),
+if(null!=E.style){var R=G(E.value);E.edge?z.push(d(E.style,E.y,R)):(R=u(E.style,E.width,E.height,R),E.keepStyle&&(R.shapePickerKeepStyle=!0),p.push(R))}}null!=b&&(p[0]=b);b=p;m&&(b=b.concat(z));return b}null==b&&(b=u(n.appendFontSize(Editor.defaultTextStyle,n.vertexFontSize),60,30,"Text"));b=[b,u("whiteSpace=wrap;html=1;"),u("ellipse;whiteSpace=wrap;html=1;",80,80),u("rhombus;whiteSpace=wrap;html=1;",80,80),u("rounded=1;whiteSpace=wrap;html=1;"),u("shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;"),
+u("shape=trapezoid;perimeter=trapezoidPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,60),u("shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;fixedSize=1;",120,80),u("shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,80),u("shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;"),u("triangle;whiteSpace=wrap;html=1;",60,80),u("shape=document;whiteSpace=wrap;html=1;boundedLbl=1;",120,80),u("shape=tape;whiteSpace=wrap;html=1;",120,100),u("ellipse;shape=cloud;whiteSpace=wrap;html=1;",
+120,80),u("shape=singleArrow;whiteSpace=wrap;html=1;arrowWidth=0.4;arrowSize=0.4;",80,60),u("shape=waypoint;sketch=0;size=6;pointerEvents=1;points=[];fillColor=none;resizable=0;rotatable=0;perimeter=centerPerimeter;snapToPoint=1;",20,20)];m&&(b=b.concat([d("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;"),d("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;endArrow=classic;startArrow=classic;endSize=8;startSize=8;"),d("edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;shape=flexArrow;rounded=1;startSize=8;endSize=8;"),
d("edgeStyle=segmentEdgeStyle;endArrow=classic;html=1;curved=0;rounded=0;endSize=8;startSize=8;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;",this.editor.graph.defaultEdgeLength/2)]));return b};EditorUi.prototype.isShapePickerVisible=function(b){return null!=this.shapePicker};
EditorUi.prototype.hideShapePicker=function(b){null!=this.shapePicker&&(this.shapePicker.parentNode.removeChild(this.shapePicker),this.shapePicker=null,null!=this.hoverIcons&&null!=this.hoverIcons.shapePickerHoverDiv&&(this.hoverIcons.shapePickerHoverDiv=null),b||null==this.shapePickerCallback||this.shapePickerCallback(),this.shapePickerCallback=null)};EditorUi.prototype.isSpaceDown=function(){return this.spaceDown};EditorUi.prototype.isShiftDown=function(){return this.shiftDown};
-EditorUi.prototype.onKeyDown=function(b){var d=this.editor.graph;if(9==b.which&&d.isEnabled()&&!mxEvent.isControlDown(b)){if(d.isEditing())if(mxEvent.isAltDown(b))d.stopEditing(!1);else try{var m=d.cellEditor.isContentEditing()&&d.cellEditor.isTextSelected();if(window.getSelection&&d.cellEditor.isContentEditing()&&!m){var n=window.getSelection(),v=0<n.rangeCount?n.getRangeAt(0).commonAncestorContainer:null;m=null!=v&&("LI"==v.nodeName||null!=v.parentNode&&"LI"==v.parentNode.nodeName)}m?document.execCommand(mxEvent.isShiftDown(b)?
+EditorUi.prototype.onKeyDown=function(b){var d=this.editor.graph;if(9==b.which&&d.isEnabled()&&!mxEvent.isControlDown(b)){if(d.isEditing())if(mxEvent.isAltDown(b))d.stopEditing(!1);else try{var m=d.cellEditor.isContentEditing()&&d.cellEditor.isTextSelected();if(window.getSelection&&d.cellEditor.isContentEditing()&&!m){var n=window.getSelection(),u=0<n.rangeCount?n.getRangeAt(0).commonAncestorContainer:null;m=null!=u&&("LI"==u.nodeName||null!=u.parentNode&&"LI"==u.parentNode.nodeName)}m?document.execCommand(mxEvent.isShiftDown(b)?
"outdent":"indent",!1,null):mxEvent.isShiftDown(b)?d.stopEditing(!1):d.cellEditor.insertTab(d.cellEditor.isContentEditing()?null:4)}catch(p){}else mxEvent.isAltDown(b)?d.selectParentCell():d.selectCell(!mxEvent.isShiftDown(b));mxEvent.consume(b)}};
EditorUi.prototype.onKeyPress=function(b){var d=this.editor.graph;null!=this.typingShim&&mxEvent.getSource(b)===this.typingShim||!this.isImmediateEditingEvent(b)||d.isEditing()||d.isSelectionEmpty()||mxEvent.isAltDown(b)||mxEvent.isControlDown(b)||mxEvent.isMetaDown(b)||(null==b.key||1!==b.key.length)&&229!==b.keyCode||null!=this.keyHandler&&null!=this.keyHandler.getFunction(b)||(d.escape(),d.cellEditor.editByTyping=!0,d.startEditing())};
EditorUi.prototype.installTypingShim=function(){var b=this.editor.graph,d=document.createElement("textarea");d.setAttribute("autocomplete","off");d.setAttribute("autocorrect","off");d.setAttribute("autocapitalize","off");d.setAttribute("spellcheck","false");(mxClient.IS_ANDROID||mxClient.IS_IOS||"ontouchstart"in document.documentElement&&1<navigator.maxTouchPoints)&&d.setAttribute("inputmode","none");d.tabIndex=-1;d.className="mxTypingShim";d.style.cssText="position:absolute;overflow:hidden;resize:none;outline:none;border:none;padding:0;margin:0;z-index:1;width:4px;height:1em;opacity:0;pointer-events:none;";
this.typingShim=d;var m=!1,n=mxUtils.bind(this,function(){if(!m&&0<d.value.length){var p=d.value;d.value="";this.hideTypingShim();b.escape();b.cellEditor.editByTyping=!0;b.startEditing(null,p)}});mxEvent.addListener(d,"compositionstart",function(){m=!0});mxEvent.addListener(d,"compositionend",function(){m=!1;n()});mxEvent.addListener(d,"input",function(){n()});mxEvent.addListener(d,"keydown",mxUtils.bind(this,function(p){229!==p.keyCode&&(mxEvent.isControlDown(p)||mxEvent.isMetaDown(p)||(null==p.key||
1!==p.key.length||mxEvent.isAltDown(p)?p.preventDefault():null!=this.keyHandler&&null!=this.keyHandler.getFunction(p)&&p.preventDefault()))}));b.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.updateTypingShim();window.setTimeout(mxUtils.bind(this,function(){this.updateTypingShim()}),0)}));b.addListener(mxEvent.EDITING_STARTED,mxUtils.bind(this,function(){this.hideTypingShim()}));b.addListener(mxEvent.EDITING_STOPPED,mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,
-function(){this.updateTypingShim()}),0)}));if(null==b.container.tabIndex||0>b.container.tabIndex)b.container.tabIndex=-1;mxEvent.addListener(b.container,"focus",mxUtils.bind(this,function(){this.updateTypingShim()}));var v=b.cellEditor.focusContainer;b.cellEditor.focusContainer=mxUtils.bind(this,function(){b.isSelectionEmpty()||b.isEditing()?v.apply(b.cellEditor):this.updateTypingShim()})};
+function(){this.updateTypingShim()}),0)}));if(null==b.container.tabIndex||0>b.container.tabIndex)b.container.tabIndex=-1;mxEvent.addListener(b.container,"focus",mxUtils.bind(this,function(){this.updateTypingShim()}));var u=b.cellEditor.focusContainer;b.cellEditor.focusContainer=mxUtils.bind(this,function(){b.isSelectionEmpty()||b.isEditing()?u.apply(b.cellEditor):this.updateTypingShim()})};
EditorUi.prototype.updateTypingShim=function(){var b=this.editor.graph;b.isEditing()||b.isSelectionEmpty()||!b.isEnabled()||b.isCellLocked(b.getSelectionCell())?this.hideTypingShim():this.showTypingShim()};
EditorUi.prototype.showTypingShim=function(){var b=this.editor.graph,d=this.typingShim;if(null!=d&&!b.isEditing()){var m=b.getSelectionCell();m=b.getView().getState(m);null!=m&&(d.style.left=Math.round(m.x)+"px",d.style.top=Math.round(m.y)+"px",d.parentNode!==b.container&&b.container.appendChild(d),d.value="",m=document.activeElement,(null==m||m===document.body||m===b.container||b.container.contains(m))&&d.focus({preventScroll:!0}))}};
-EditorUi.prototype.hideTypingShim=function(){var b=this.typingShim;null!=b&&null!=b.parentNode&&b.parentNode.removeChild(b)};EditorUi.prototype.isImmediateEditingEvent=function(b){return!0};EditorUi.prototype.updateCssForMarker=function(b,d,m,n,v){m=this.getImageForMarker(n,v,m);b.innerHTML="";null==m?b.innerHTML=mxUtils.htmlEntities(mxResources.get("none")):(n=document.createElement("img"),n.setAttribute("src",m),"end"==d&&mxUtils.setPrefixedStyle(n.style,"transform","scaleX(-1)"),b.appendChild(n))};
+EditorUi.prototype.hideTypingShim=function(){var b=this.typingShim;null!=b&&null!=b.parentNode&&b.parentNode.removeChild(b)};EditorUi.prototype.isImmediateEditingEvent=function(b){return!0};EditorUi.prototype.updateCssForMarker=function(b,d,m,n,u){m=this.getImageForMarker(n,u,m);b.innerHTML="";null==m?b.innerHTML=mxUtils.htmlEntities(mxResources.get("none")):(n=document.createElement("img"),n.setAttribute("src",m),"end"==d&&mxUtils.setPrefixedStyle(n.style,"transform","scaleX(-1)"),b.appendChild(n))};
EditorUi.prototype.getImageForMarker=function(b,d,m){return"flexArrow"==m?null!=b&&b!=mxConstants.NONE?Format.blockMarkerImage.src:null:b==mxConstants.ARROW_CLASSIC?"1"!=d?Format.classicMarkerImage.src:Format.classicFilledMarkerImage.src:b==mxConstants.ARROW_CLASSIC_THIN?"1"!=d?Format.classicThinMarkerImage.src:Format.openThinFilledMarkerImage.src:b==mxConstants.ARROW_OPEN?Format.openFilledMarkerImage.src:b==mxConstants.ARROW_OPEN_THIN?Format.openThinFilledMarkerImage.src:b==mxConstants.ARROW_BLOCK?
"1"!=d?Format.blockMarkerImage.src:Format.blockFilledMarkerImage.src:b==mxConstants.ARROW_BLOCK_THIN?"1"!=d?Format.blockThinMarkerImage.src:Format.blockThinFilledMarkerImage.src:b==mxConstants.ARROW_OVAL?"1"!=d?Format.ovalMarkerImage.src:Format.ovalFilledMarkerImage.src:b==mxConstants.ARROW_DIAMOND?"1"!=d?Format.diamondMarkerImage.src:Format.diamondFilledMarkerImage.src:b==mxConstants.ARROW_DIAMOND_THIN?"1"!=d?Format.diamondThinMarkerImage.src:Format.diamondThinFilledMarkerImage.src:"doubleBlock"==
b?"1"!=d?Format.doubleBlockMarkerImage.src:Format.doubleBlockFilledMarkerImage.src:"box"==b?Format.boxMarkerImage.src:"halfCircle"==b?Format.halfCircleMarkerImage.src:"openAsync"==b?Format.openAsyncFilledMarkerImage.src:"async"==b?"1"!=d?Format.asyncMarkerImage.src:Format.asyncFilledMarkerImage.src:"dash"==b?Format.dashMarkerImage.src:"baseDash"==b?Format.baseDashMarkerImage.src:"cross"==b?Format.crossMarkerImage.src:"circle"==b?Format.circleMarkerImage.src:"circlePlus"==b?Format.circlePlusMarkerImage.src:
@@ -2197,16 +2197,16 @@ null)?Format.verticalElbowImage.src:Format.horizontalElbowImage.src:"isometricEd
EditorUi.prototype.updatePasteActionStates=function(){var b=this.editor.graph,d=this.actions.get("paste"),m=this.actions.get("pasteHere");d.setEnabled(this.editor.graph.cellEditor.isContentEditing()||(null!=navigator.clipboard||!mxClipboard.isEmpty())&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent()));m.setEnabled(d.isEnabled())};
EditorUi.prototype.initClipboard=function(){var b=this,d=mxClipboard.cut;mxClipboard.cut=function(p){p.cellEditor.isContentEditing()?document.execCommand("cut",!1,null):d.apply(this,arguments);b.updatePasteActionStates()};mxClipboard.copy=function(p){var z=null;if(p.cellEditor.isContentEditing())document.execCommand("copy",!1,null);else{z=z||p.getSelectionCells();z=p.getExportableCells(p.model.getTopmostCells(z));for(var G={},U=p.createCellLookup(z),E=p.cloneCells(z,null,G),R=new mxGraphModel,N=R.getChildAt(R.getRoot(),
0),c=0;c<E.length;c++){R.add(N,E[c]);var g=p.view.getState(z[c]);if(null!=g){var k=p.getCellGeometry(E[c]);null!=k&&k.relative&&!R.isEdge(z[c])&&null==U[mxObjectIdentity.get(R.getParent(z[c]))]&&(k.offset=null,k.relative=!1,k.x=g.x/g.view.scale-g.view.translate.x,k.y=g.y/g.view.scale-g.view.translate.y)}}p.updateCustomLinks(p.createCellMapping(G,U),E);mxClipboard.insertCount=1;mxClipboard.setCells(E)}b.updatePasteActionStates();return z};var m=mxClipboard.paste;mxClipboard.paste=function(p){var z=
-null;p.cellEditor.isContentEditing()?document.execCommand("paste",!1,null):z=m.apply(this,arguments);b.updatePasteActionStates();return z};var n=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){n.apply(this,arguments);b.updatePasteActionStates()};var v=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(p,z){v.apply(this,arguments);b.updatePasteActionStates()};this.updatePasteActionStates()};
+null;p.cellEditor.isContentEditing()?document.execCommand("paste",!1,null):z=m.apply(this,arguments);b.updatePasteActionStates();return z};var n=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){n.apply(this,arguments);b.updatePasteActionStates()};var u=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(p,z){u.apply(this,arguments);b.updatePasteActionStates()};this.updatePasteActionStates()};
EditorUi.prototype.lazyZoomDelay=20;EditorUi.prototype.wheelZoomDelay=500;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 aa=this.graph.getPageLayout(),S=this.graph.getPageSize();return new mxRectangle(this.scale*(this.translate.x+aa.x*S.width),this.scale*(this.translate.y+aa.y*S.height),this.scale*aa.width*
S.width,this.scale*aa.height*S.height)};b.getPreferredPageSize=function(aa,S,Z){aa=this.getPageLayout();S=this.getPageSize();return new mxRectangle(0,0,aa.width*S.width,aa.height*S.height)};var d=null,m=this;if(this.editor.isChromelessView()){this.chromelessResize=d=mxUtils.bind(this,function(aa,S,Z,da){if(null!=b.container&&!b.isViewer()){Z=null!=Z?Z:0;da=null!=da?da:0;var ma=b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds(),na=mxUtils.hasScrollbars(b.container),ra=b.view.translate,
ta=b.view.scale,Aa=mxRectangle.fromRectangle(ma);Aa.x=Aa.x/ta-ra.x;Aa.y=Aa.y/ta-ra.y;Aa.width/=ta;Aa.height/=ta;ra=b.container.scrollTop;var Ca=b.container.scrollLeft,xa=8<=document.documentMode?20:14;if(8==document.documentMode||9==document.documentMode)xa+=3;var Ea=b.container.offsetWidth-xa;xa=b.container.offsetHeight-xa;aa=aa?Math.max(.3,Math.min(S||1,Ea/Aa.width)):ta;S=(Ea-aa*Aa.width)/2/aa;var Ua=0==this.lightboxVerticalDivider?0:(xa-aa*Aa.height)/this.lightboxVerticalDivider/aa;na&&(S=Math.max(S,
0),Ua=Math.max(Ua,0));if(na||ma.width<Ea||ma.height<xa)b.view.scaleAndTranslate(aa,Math.floor(S-Aa.x),Math.floor(Ua-Aa.y)),b.container.scrollTop=ra*aa/ta,b.container.scrollLeft=Ca*aa/ta;else if(0!=Z||0!=da)ma=b.view.translate,b.view.setTranslate(Math.floor(ma.x+Z/ta),Math.floor(ma.y+da/ta))}});this.chromelessWindowResize=mxUtils.bind(this,function(){this.chromelessResize(!1)});var n=mxUtils.bind(this,function(){this.chromelessWindowResize(!1)});mxEvent.addListener(window,"resize",n);this.destroyFunctions.push(function(){mxEvent.removeListener(window,
-"resize",n)});this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.chromelessResize(!0)}));this.actions.get("zoomIn").funct=mxUtils.bind(this,function(aa){b.zoomIn();this.chromelessResize(!1)});this.actions.get("zoomOut").funct=mxUtils.bind(this,function(aa){b.zoomOut();this.chromelessResize(!1)});if("0"!=urlParams.toolbar){var v=JSON.parse(decodeURIComponent(urlParams["toolbar-config"]||"{}"));this.chromelessToolbar=document.createElement("div");this.chromelessToolbar.style.position=
+"resize",n)});this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.chromelessResize(!0)}));this.actions.get("zoomIn").funct=mxUtils.bind(this,function(aa){b.zoomIn();this.chromelessResize(!1)});this.actions.get("zoomOut").funct=mxUtils.bind(this,function(aa){b.zoomOut();this.chromelessResize(!1)});if("0"!=urlParams.toolbar){var u=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%";this.chromelessToolbar.style.backgroundColor="#000000";mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"borderRadius","16px");mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transition","opacity 600ms ease-in-out");var p=
mxUtils.bind(this,function(){var aa=mxUtils.getCurrentStyle(b.container);b.isViewer()?this.chromelessToolbar.style.top="0":this.chromelessToolbar.style.bottom=(null!=aa?parseInt(aa["margin-bottom"]||0):0)+(null!=this.tabContainer?20+parseInt(this.tabContainer.style.height):20)+"px"});this.editor.addListener("resetGraphView",p);p();var z=0;p=mxUtils.bind(this,function(aa,S,Z){z++;var da=document.createElement("span");da.style.paddingLeft="8px";da.style.paddingRight="8px";da.style.cursor="pointer";
-mxEvent.addListener(da,"click",aa);null!=Z&&da.setAttribute("title",Z);aa=document.createElement("img");aa.setAttribute("border","0");aa.setAttribute("src",S);aa.style.width="36px";aa.style.filter="invert(100%)";da.appendChild(aa);this.chromelessToolbar.appendChild(da);return da});if(null!=v.backBtn){var G=Graph.sanitizeLink(v.backBtn.url);null!=G&&p(mxUtils.bind(this,function(aa){window.location.href=G;mxEvent.consume(aa)}),Editor.backImage,mxResources.get("back",null,"Back"))}if(this.isPagesEnabled()){var U=
+mxEvent.addListener(da,"click",aa);null!=Z&&da.setAttribute("title",Z);aa=document.createElement("img");aa.setAttribute("border","0");aa.setAttribute("src",S);aa.style.width="36px";aa.style.filter="invert(100%)";da.appendChild(aa);this.chromelessToolbar.appendChild(da);return da});if(null!=u.backBtn){var G=Graph.sanitizeLink(u.backBtn.url);null!=G&&p(mxUtils.bind(this,function(aa){window.location.href=G;mxEvent.consume(aa)}),Editor.backImage,mxResources.get("back",null,"Back"))}if(this.isPagesEnabled()){var U=
p(mxUtils.bind(this,function(aa){this.actions.get("previousPage").funct();mxEvent.consume(aa)}),Editor.chevronLeftImage,mxResources.get("previousPage")),E=document.createElement("div");E.style.fontFamily=Editor.defaultHtmlFont;E.style.display="inline-block";E.style.verticalAlign="top";E.style.fontWeight="bold";E.style.marginTop="8px";E.style.fontSize="14px";E.style.cursor="default";E.style.color="#ffffff";this.chromelessToolbar.appendChild(E);var R=p(mxUtils.bind(this,function(aa){this.actions.get("nextPage").funct();
mxEvent.consume(aa)}),Editor.chevronRightImage,mxResources.get("nextPage")),N=mxUtils.bind(this,function(){if(null!=this.pages&&1<this.pages.length&&null!=this.currentPage){E.innerText="";var aa=mxUtils.indexOf(this.pages,this.currentPage);mxUtils.write(E,aa+1+" / "+this.pages.length);E.setAttribute("title",mxResources.get("currentPage")+": "+this.currentPage.getName());U.setAttribute("title",mxResources.get("previousPage")+": "+this.pages[mxUtils.mod(aa-1,this.pages.length)].getName());R.setAttribute("title",
mxResources.get("nextPage")+": "+this.pages[mxUtils.mod(aa+1,this.pages.length)].getName())}});U.style.paddingLeft="0px";U.style.paddingRight="4px";R.style.paddingLeft="4px";R.style.paddingRight="0px";var c=mxUtils.bind(this,function(){null!=this.pages&&1<this.pages.length&&null!=this.currentPage?(R.style.display="",U.style.display="",E.style.display="inline-block"):(R.style.display="none",U.style.display="none",E.style.display="none");N()});if(null!=this.menus){var g=this.menus.get("pages");null!=
@@ -2217,8 +2217,8 @@ null;var H=p(mxUtils.bind(this,function(aa){if(null!=this.layersDialog)this.laye
"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=S.left+"px";this.layersDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";this.layersDialog.style.backgroundColor="#000000";this.layersDialog.style.color="#ffffff";mxUtils.setOpacity(this.layersDialog,80);
S=mxUtils.getCurrentStyle(this.editor.graph.container);this.layersDialog.style.zIndex=S.zIndex;document.body.appendChild(this.layersDialog);this.editor.fireEvent(new mxEventObject("layersDialogShown"))}mxEvent.consume(aa)}),Editor.layersImage,mxResources.get("layers")),K=b.getModel();K.addListener(mxEvent.CHANGE,function(){H.style.display=1<K.getChildCount(K.root)?"":"none"})}("1"!=urlParams.openInSameWin||navigator.standalone)&&this.addChromelessToolbarItems(p);null==this.editor.editButtonLink&&
null==this.editor.editButtonFunc||p(mxUtils.bind(this,function(aa){if(null!=this.editor.editButtonFunc)this.editor.editButtonFunc();else if("_blank"==this.editor.editButtonLink){var S=null!=this.currentPage?this.currentPage.getId():null;this.editor.editAsNew(this.getEditBlankXml(),null,null,S)}else b.openLink(this.editor.editButtonLink,"editWindow");mxEvent.consume(aa)}),Editor.editImage,mxResources.get("edit"));if(null!=this.lightboxToolbarActions)for(c=0;c<this.lightboxToolbarActions.length;c++){var P=
-this.lightboxToolbarActions[c];P.elem=p(P.fn,P.icon,P.tooltip)}if(null!=v.refreshBtn){var W=null==v.refreshBtn.url?null:Graph.sanitizeLink(v.refreshBtn.url);p(mxUtils.bind(this,function(aa){null!=W?window.location.href=W:window.location.reload();mxEvent.consume(aa)}),Editor.refreshImage,mxResources.get("refresh",null,"Refresh"))}null!=v.fullscreenBtn&&window.self!==window.top&&p(mxUtils.bind(this,function(aa){v.fullscreenBtn.url?b.openLink(v.fullscreenBtn.url):b.openLink(window.location.href);mxEvent.consume(aa)}),
-Editor.fullscreenImage,mxResources.get("openInNewWindow",null,"Open in New Window"));!v.noCloseBtn&&(v.closeBtn&&window.self===window.top||b.lightbox&&("1"==urlParams.close||this.container!=document.body))&&p(mxUtils.bind(this,function(aa){"1"==urlParams.close||v.closeBtn?window.close():(this.destroy(),mxEvent.consume(aa))}),Editor.closeImage,mxResources.get("close")+" (Escape)");this.chromelessToolbar.style.display="none";b.isViewer()||mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transform",
+this.lightboxToolbarActions[c];P.elem=p(P.fn,P.icon,P.tooltip)}if(null!=u.refreshBtn){var W=null==u.refreshBtn.url?null:Graph.sanitizeLink(u.refreshBtn.url);p(mxUtils.bind(this,function(aa){null!=W?window.location.href=W:window.location.reload();mxEvent.consume(aa)}),Editor.refreshImage,mxResources.get("refresh",null,"Refresh"))}null!=u.fullscreenBtn&&window.self!==window.top&&p(mxUtils.bind(this,function(aa){u.fullscreenBtn.url?b.openLink(u.fullscreenBtn.url):b.openLink(window.location.href);mxEvent.consume(aa)}),
+Editor.fullscreenImage,mxResources.get("openInNewWindow",null,"Open in New Window"));!u.noCloseBtn&&(u.closeBtn&&window.self===window.top||b.lightbox&&("1"==urlParams.close||this.container!=document.body))&&p(mxUtils.bind(this,function(aa){"1"==urlParams.close||u.closeBtn?window.close():(this.destroy(),mxEvent.consume(aa))}),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(aa){mxEvent.isTouchEvent(aa)||(mxEvent.isShiftDown(aa)||D(30),A())}));mxEvent.addListener(this.chromelessToolbar,mxClient.IS_POINTER?"pointermove":"mousemove",function(aa){mxEvent.consume(aa)});mxEvent.addListener(this.chromelessToolbar,"mouseenter",mxUtils.bind(this,function(aa){b.tooltipHandler.resetTimer();b.tooltipHandler.hideTooltip();
mxEvent.isShiftDown(aa)?A():D(100)}));mxEvent.addListener(this.chromelessToolbar,"mousemove",mxUtils.bind(this,function(aa){mxEvent.isShiftDown(aa)?A():D(100);mxEvent.consume(aa)}));mxEvent.addListener(this.chromelessToolbar,"mouseleave",mxUtils.bind(this,function(aa){mxEvent.isTouchEvent(aa)||D(30)}));var M=b.getTolerance();b.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(aa,S){this.startX=S.getGraphX();this.startY=S.getGraphY();this.scrollLeft=b.container.scrollLeft;
this.scrollTop=b.container.scrollTop},mouseMove:function(aa,S){},mouseUp:function(aa,S){mxEvent.isTouchEvent(S.getEvent())&&Math.abs(this.scrollLeft-b.container.scrollLeft)<M&&Math.abs(this.scrollTop-b.container.scrollTop)<M&&Math.abs(this.startX-S.getGraphX())<M&&Math.abs(this.startY-S.getGraphY())<M&&(0<parseFloat(m.chromelessToolbar.style.opacity||0)?A():D(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var ca=b.view.validate,fa=new mxPoint,ha=!1,
@@ -2245,7 +2245,7 @@ EditorUi.prototype.toggleFormatPanel=function(b){b=null!=b?b:0==this.formatWidth
EditorUi.prototype.isDiagramEmpty=function(){var b=this.editor.graph.getModel();return 1==b.getChildCount(b.root)&&0==b.getChildCount(b.getChildAt(b.root,0))};EditorUi.prototype.isSelectionAllowed=function(b){return"SELECT"==mxEvent.getSource(b).nodeName||"INPUT"==mxEvent.getSource(b).nodeName};EditorUi.prototype.addBeforeUnloadListener=function(){window.onbeforeunload=mxUtils.bind(this,function(){if(!this.editor.isChromelessView())return this.onBeforeUnload()})};
EditorUi.prototype.onBeforeUnload=function(){if(this.editor.modified)return mxResources.get("allChangesLost")};
EditorUi.prototype.open=function(){try{null!=window.opener&&null!=window.opener.openFile&&window.opener.openFile.setConsumer(mxUtils.bind(this,function(b,d){try{var m=mxUtils.parseXml(b);this.editor.setGraphXml(m.documentElement);this.editor.setModified(!1);this.editor.undoManager.clear();null!=d&&(this.editor.setFilename(d),this.updateDocumentTitle())}catch(n){mxUtils.alert(mxResources.get("invalidOrMissingFile")+": "+n.message)}}))}catch(b){}this.editor.graph.view.validate();this.editor.graph.sizeDidChange();
-this.editor.fireEvent(new mxEventObject("resetGraphView"))};EditorUi.prototype.showPrintDialog=function(b,d){this.showDialog((new PrintDialog(this,b,d)).container,300,180,!0,!0)};EditorUi.prototype.showPopupMenu=function(b,d,m,n){this.editor.graph.popupMenuHandler.hideMenu();var v=new mxPopupMenu(b);v.smartSeparators=!0;v.showDisabled=!0;v.autoExpand=!0;v.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(v,arguments);v.destroy()});v.popup(d,m,null,n);this.setCurrentMenu(v)};
+this.editor.fireEvent(new mxEventObject("resetGraphView"))};EditorUi.prototype.showPrintDialog=function(b,d){this.showDialog((new PrintDialog(this,b,d)).container,300,180,!0,!0)};EditorUi.prototype.showPopupMenu=function(b,d,m,n){this.editor.graph.popupMenuHandler.hideMenu();var u=new mxPopupMenu(b);u.smartSeparators=!0;u.showDisabled=!0;u.autoExpand=!0;u.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(u,arguments);u.destroy()});u.popup(d,m,null,n);this.setCurrentMenu(u)};
EditorUi.prototype.isHideCurrentMenuEvent=function(b){b=mxEvent.getSource(b);if(null!=this.currentMenu){if(b==this.currentMenu.div)return!1;for(var d=this.currentMenu.activeRow;null!=d;){if(b==d.div)return!1;d=d.activeRow}return!0}return!1};EditorUi.prototype.setCurrentMenu=function(b,d){this.currentMenuElt=d;this.currentMenu=b;this.hideShapePicker()};EditorUi.prototype.resetCurrentMenu=function(){this.currentMenu=this.currentMenuElt=null};
EditorUi.prototype.hideCurrentMenu=function(){null!=this.currentMenu&&(this.currentMenu.hideMenu(),this.resetCurrentMenu())};EditorUi.prototype.updateDocumentTitle=function(){var b=this.editor.getOrCreateFilename();null!=this.editor.appName&&(b+=" - "+this.editor.appName);document.title=b};EditorUi.prototype.createHoverIcons=function(){return new HoverIcons(this.editor.graph)};EditorUi.prototype.createInlineToolbar=function(){return new InlineToolbar(this)};
EditorUi.prototype.redo=function(){try{this.editor.graph.isEditing()?document.execCommand("redo",!1,null):this.editor.undoManager.redo()}catch(b){}};EditorUi.prototype.undo=function(){try{var b=this.editor.graph;if(b.isEditing()){var d=b.cellEditor.textarea.innerHTML;document.execCommand("undo",!1,null);d==b.cellEditor.textarea.innerHTML&&(b.stopEditing(!0),this.editor.undoManager.undo())}else this.editor.undoManager.undo()}catch(m){}};
@@ -2253,25 +2253,25 @@ EditorUi.prototype.canRedo=function(){return this.editor.graph.isEditing()||this
EditorUi.prototype.getEditBlankXml=function(){return mxUtils.getXml(this.editor.getGraphXml())};EditorUi.prototype.getUrl=function(b){b=null!=b?b:window.location.pathname;var d=0<b.indexOf("?")?1:0,m;for(m in urlParams)b=0==d?b+"?":b+"&",b+=m+"="+urlParams[m],d++;return b};
EditorUi.prototype.setScrollbars=function(b){var d=this.editor.graph,m=d.container.style.overflow;d.scrollbars=b;this.editor.updateGraphComponents();m!=d.container.style.overflow&&(d.container.scrollTop=0,d.container.scrollLeft=0,d.view.scaleAndTranslate(1,0,0),this.resetScrollbars());this.fireEvent(new mxEventObject("scrollbarsChanged"))};
EditorUi.prototype.initialFitDiagram=function(b){var d=null!=urlParams.border?parseInt(urlParams.border):10;d=new mxRectangle(d,d,d,d);this.fitDiagramOrPages(null!=b?b:1,d,!0)};EditorUi.prototype.fitDiagramOrPages=function(b,d,m){var n=this.editor.graph;n.pageVisible&&n.isSelectionEmpty()&&!m?n.fitPages(b):this.fitDiagramToWindow(b,d,m)};
-EditorUi.prototype.fitDiagramToWindow=function(b,d,m){var n=this.editor.graph,v=n.isSelectionEmpty()?mxRectangle.fromRectangle(n.getGraphBounds()):n.getBoundingBox(n.getSelectionCells()),p=n.view.translate,z=n.view.scale;v.x=v.x/z-p.x;v.y=v.y/z-p.y;v.width/=z;v.height/=z;null!=n.backgroundImage&&v.add(new mxRectangle(0,0,n.backgroundImage.width,n.backgroundImage.height));0==v.width||0==v.height?(n.zoomTo(1),this.resetScrollbars()):(d=null!=d?d:Editor.fitWindowBorders,null!=d&&(v.x-=d.x,v.y-=d.y,v.width+=
-d.width+d.x,v.height+=d.height+d.y),n.fitWindow(v,null,b,m,m))};EditorUi.prototype.hasScrollbars=function(){return this.editor.graph.scrollbars};
+EditorUi.prototype.fitDiagramToWindow=function(b,d,m){var n=this.editor.graph,u=n.isSelectionEmpty()?mxRectangle.fromRectangle(n.getGraphBounds()):n.getBoundingBox(n.getSelectionCells()),p=n.view.translate,z=n.view.scale;u.x=u.x/z-p.x;u.y=u.y/z-p.y;u.width/=z;u.height/=z;null!=n.backgroundImage&&u.add(new mxRectangle(0,0,n.backgroundImage.width,n.backgroundImage.height));0==u.width||0==u.height?(n.zoomTo(1),this.resetScrollbars()):(d=null!=d?d:Editor.fitWindowBorders,null!=d&&(u.x-=d.x,u.y-=d.y,u.width+=
+d.width+d.x,u.height+=d.height+d.y),n.fitWindow(u,null,b,m,m))};EditorUi.prototype.hasScrollbars=function(){return this.editor.graph.scrollbars};
EditorUi.prototype.resetScrollbars=function(){var b=this.editor.graph,d=b.container;if(!this.editor.extendCanvas)d.scrollTop=0,d.scrollLeft=0,mxUtils.hasScrollbars(d)||b.view.setTranslate(0,0);else if(!this.editor.isChromelessView())if(mxUtils.hasScrollbars(d))if(b.pageVisible){var m=b.getPagePadding();d.scrollTop=Math.floor(m.y);d.scrollLeft=Math.floor(Math.min(m.x,(d.scrollWidth-d.clientWidth)/2));m=b.getGraphBounds();0<m.width&&0<m.height&&(m.x>d.scrollLeft+.9*d.clientWidth&&(d.scrollLeft=Math.min(m.x+
m.width-d.clientWidth,m.x-10)),m.y>d.scrollTop+.9*d.clientHeight&&(d.scrollTop=Math.min(m.y+m.height-d.clientHeight,m.y-10)))}else if(m=b.getGraphBounds(),0==m.width&&0==m.height)d.scrollLeft=(d.scrollWidth-d.clientWidth)/2,d.scrollTop=(d.scrollHeight-d.clientHeight)/2;else{var n=Math.max(m.height,b.scrollTileSize.height*b.view.scale);d.scrollLeft=Math.floor(Math.max(0,m.x-Math.max(0,(d.clientWidth-Math.max(m.width,b.scrollTileSize.width*b.view.scale))/2)));d.scrollTop=Math.floor(Math.max(0,m.y-Math.max(20,
-(d.clientHeight-n)/4)))}else{m=mxRectangle.fromRectangle(b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds());n=b.view.translate;var v=b.view.scale;m.x=m.x/v-n.x;m.y=m.y/v-n.y;m.width/=v;m.height/=v;n=b.pageVisible?0:Math.max(0,(d.clientHeight-m.height)/4);"1"==urlParams.embedInline?b.view.setTranslate(Math.floor(-m.x+2),Math.floor(n-m.y+1)):b.view.setTranslate(Math.floor(Math.max(0,(d.clientWidth-m.width)/2)-m.x+2),Math.floor(n-m.y+1))}};
-EditorUi.prototype.setPageVisible=function(b){var d=this.editor.graph,m=mxUtils.hasScrollbars(d.container),n=0,v=0;m&&(n=d.view.translate.x*d.view.scale-d.container.scrollLeft,v=d.view.translate.y*d.view.scale-d.container.scrollTop);d.pageVisible=b;d.pageBreaksVisible=b;d.preferPageSize=b;d.view.validateBackground();if(m){var p=d.getSelectionCells();d.clearSelection();d.setSelectionCells(p)}d.sizeDidChange();m&&(d.container.scrollLeft=d.view.translate.x*d.view.scale-n,d.container.scrollTop=d.view.translate.y*
-d.view.scale-v);d.defaultPageVisible=b;this.fireEvent(new mxEventObject("pageViewChanged"))};
-EditorUi.prototype.installResizeHandler=function(b,d,m){d&&(b.window.setSize=function(v,p){if(!this.minimized){var z=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;v=Math.min(v,(window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth)-this.getX());p=Math.min(p,z-this.getY())}mxWindow.prototype.setSize.apply(this,arguments)});b.window.setLocation=function(v,p){var z=window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth,
-G=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight,U=parseInt(this.div.style.width),E=parseInt(this.div.style.height);v=Math.max(0,Math.min(v,z-U));p=Math.max(0,Math.min(p,G-E));this.getX()==v&&this.getY()==p||mxWindow.prototype.setLocation.apply(this,arguments);d&&!this.minimized&&this.setSize(U,E)};var n=mxUtils.bind(this,function(){var v=b.window.getX(),p=b.window.getY();b.window.setLocation(v,p)});mxEvent.addListener(window,"resize",n);b.destroy=function(){mxEvent.removeListener(window,
-"resize",n);b.window.destroy();null!=m&&m()}};function ChangeGridColor(b,d){this.ui=b;this.color=d}ChangeGridColor.prototype.execute=function(){var b=this.ui.editor.graph.view.gridColor;this.ui.setGridColor(this.color);this.color=b};function ChangePageSetup(b,d,m,n,v){this.ui=b;this.previousColor=this.color=d;this.previousImage=this.image=m;this.previousFormat=this.format=n;this.previousPageScale=this.pageScale=v;this.ignoreImage=this.ignoreColor=!1}
+(d.clientHeight-n)/4)))}else{m=mxRectangle.fromRectangle(b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds());n=b.view.translate;var u=b.view.scale;m.x=m.x/u-n.x;m.y=m.y/u-n.y;m.width/=u;m.height/=u;n=b.pageVisible?0:Math.max(0,(d.clientHeight-m.height)/4);"1"==urlParams.embedInline?b.view.setTranslate(Math.floor(-m.x+2),Math.floor(n-m.y+1)):b.view.setTranslate(Math.floor(Math.max(0,(d.clientWidth-m.width)/2)-m.x+2),Math.floor(n-m.y+1))}};
+EditorUi.prototype.setPageVisible=function(b){var d=this.editor.graph,m=mxUtils.hasScrollbars(d.container),n=0,u=0;m&&(n=d.view.translate.x*d.view.scale-d.container.scrollLeft,u=d.view.translate.y*d.view.scale-d.container.scrollTop);d.pageVisible=b;d.pageBreaksVisible=b;d.preferPageSize=b;d.view.validateBackground();if(m){var p=d.getSelectionCells();d.clearSelection();d.setSelectionCells(p)}d.sizeDidChange();m&&(d.container.scrollLeft=d.view.translate.x*d.view.scale-n,d.container.scrollTop=d.view.translate.y*
+d.view.scale-u);d.defaultPageVisible=b;this.fireEvent(new mxEventObject("pageViewChanged"))};
+EditorUi.prototype.installResizeHandler=function(b,d,m){d&&(b.window.setSize=function(u,p){if(!this.minimized){var z=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;u=Math.min(u,(window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth)-this.getX());p=Math.min(p,z-this.getY())}mxWindow.prototype.setSize.apply(this,arguments)});b.window.setLocation=function(u,p){var z=window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth,
+G=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight,U=parseInt(this.div.style.width),E=parseInt(this.div.style.height);u=Math.max(0,Math.min(u,z-U));p=Math.max(0,Math.min(p,G-E));this.getX()==u&&this.getY()==p||mxWindow.prototype.setLocation.apply(this,arguments);d&&!this.minimized&&this.setSize(U,E)};var n=mxUtils.bind(this,function(){var u=b.window.getX(),p=b.window.getY();b.window.setLocation(u,p)});mxEvent.addListener(window,"resize",n);b.destroy=function(){mxEvent.removeListener(window,
+"resize",n);b.window.destroy();null!=m&&m()}};function ChangeGridColor(b,d){this.ui=b;this.color=d}ChangeGridColor.prototype.execute=function(){var b=this.ui.editor.graph.view.gridColor;this.ui.setGridColor(this.color);this.color=b};function ChangePageSetup(b,d,m,n,u){this.ui=b;this.previousColor=this.color=d;this.previousImage=this.image=m;this.previousFormat=this.format=n;this.previousPageScale=this.pageScale=u;this.ignoreImage=this.ignoreColor=!1}
ChangePageSetup.prototype.execute=function(){var b=this.ui.editor.graph;if(!this.ignoreColor){this.color=this.previousColor;var d=b.background;this.ui.setBackgroundColor(this.previousColor);this.previousColor=d}if(!this.ignoreImage){this.image=this.previousImage;d=b.backgroundImage;var m=this.previousImage;null!=m&&Graph.isPageLink(m.src)&&(m=this.ui.createImageForPageLink(m.src,this.ui.currentPage));this.ui.setBackgroundImage(m);this.previousImage=d}null!=this.previousFormat&&(this.format=this.previousFormat,
d=b.pageFormat,this.previousFormat.width!=d.width||this.previousFormat.height!=d.height)&&(this.ui.setPageFormat(this.previousFormat),this.previousFormat=d);null!=this.foldingEnabled&&this.foldingEnabled!=this.ui.editor.graph.foldingEnabled&&(this.ui.setFoldingEnabled(this.foldingEnabled),this.foldingEnabled=!this.foldingEnabled);null!=this.previousPageScale&&(b=this.ui.editor.graph.pageScale,this.previousPageScale!=b&&(this.ui.setPageScale(this.previousPageScale),this.previousPageScale=b))};
EditorUi.prototype.setBackgroundColor=function(b){this.editor.graph.background=b;this.editor.graph.view.validateBackground();this.fireEvent(new mxEventObject("backgroundColorChanged"))};EditorUi.prototype.setFoldingEnabled=function(b){this.editor.graph.foldingEnabled=b;this.editor.graph.view.revalidate();this.fireEvent(new mxEventObject("foldingEnabledChanged"))};
EditorUi.prototype.setPageFormat=function(b,d){d=null!=d?d:"1"==urlParams.sketch;this.editor.graph.pageFormat=b;d||(this.editor.graph.pageVisible?(this.editor.graph.view.validateBackground(),this.editor.graph.sizeDidChange()):this.actions.get("pageView").funct());this.fireEvent(new mxEventObject("pageFormatChanged"))};
EditorUi.prototype.setPageScale=function(b){this.editor.graph.pageScale=b;this.editor.graph.pageVisible?(this.editor.graph.view.validateBackground(),this.editor.graph.sizeDidChange()):this.actions.get("pageView").funct();this.fireEvent(new mxEventObject("pageScaleChanged"))};
EditorUi.prototype.setGridColor=function(b,d){d=null!=d?d:Editor.isDarkMode();var m=this.editor.graph;d?m.view.defaultDarkGridColor=b:m.view.defaultGridColor=b;m.view.gridColor="light-dark("+m.view.defaultGridColor+", "+m.view.defaultDarkGridColor+")";m.view.validateBackground();this.fireEvent(new mxEventObject("gridColorChanged"))};
-EditorUi.prototype.addUndoListener=function(){var b=this.editor.undoManager,d=mxUtils.bind(this,function(){this.updateActionStates()});b.addListener(mxEvent.ADD,d);b.addListener(mxEvent.UNDO,d);b.addListener(mxEvent.REDO,d);b.addListener(mxEvent.CLEAR,d);var m=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){m.apply(this,arguments);d()};var n=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(v,p){n.apply(this,arguments);
+EditorUi.prototype.addUndoListener=function(){var b=this.editor.undoManager,d=mxUtils.bind(this,function(){this.updateActionStates()});b.addListener(mxEvent.ADD,d);b.addListener(mxEvent.UNDO,d);b.addListener(mxEvent.REDO,d);b.addListener(mxEvent.CLEAR,d);var m=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){m.apply(this,arguments);d()};var n=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(u,p){n.apply(this,arguments);
d()};d()};
-EditorUi.prototype.updateActionStates=function(){for(var b=this.editor.graph,d=this.getSelectionState(),m=b.isEnabled()&&!b.isCellLocked(b.getDefaultParent()),n=!this.editor.chromeless||this.editor.editable,v="cut copy bold italic underline delete duplicate editStyle editTooltip editLink backgroundColor borderColor edit toFront toBack solid dashed pasteSize dotted fillColor gradientColor shadow fontColor formattedText rounded toggleRounded strokeColor sharp snapToGrid".split(" "),p=0;p<v.length;p++)this.actions.get(v[p]).setEnabled(0<
+EditorUi.prototype.updateActionStates=function(){for(var b=this.editor.graph,d=this.getSelectionState(),m=b.isEnabled()&&!b.isCellLocked(b.getDefaultParent()),n=!this.editor.chromeless||this.editor.editable,u="cut copy bold italic underline delete duplicate editStyle editTooltip editLink backgroundColor borderColor edit toFront toBack solid dashed pasteSize dotted fillColor gradientColor shadow fontColor formattedText rounded toggleRounded strokeColor sharp snapToGrid".split(" "),p=0;p<u.length;p++)this.actions.get(u[p]).setEnabled(0<
d.cells.length);this.actions.get("grid").setEnabled(n);this.actions.get("undo").setEnabled(this.canUndo()&&n);this.actions.get("redo").setEnabled(this.canRedo()&&n);this.actions.get("swap").setEnabled(2==d.cells.length&&2==d.vertices.length);this.actions.get("pasteSize").setEnabled(null!=this.copiedSize&&0<d.vertices.length);this.actions.get("pasteData").setEnabled(null!=this.copiedValue&&0<d.cells.length);this.actions.get("setAsDefaultStyle").setEnabled(1==b.getSelectionCount());this.actions.get("lockUnlock").setEnabled(!b.isSelectionEmpty());
this.actions.get("bringForward").setEnabled(1==d.cells.length);this.actions.get("sendBackward").setEnabled(1==d.cells.length);this.actions.get("rotation").setEnabled(1==d.vertices.length);this.actions.get("wordWrap").setEnabled(1==d.vertices.length);this.actions.get("autosize").setEnabled(0<d.vertices.length);this.actions.get("copySize").setEnabled(1==d.vertices.length);this.actions.get("clearWaypoints").setEnabled(d.connections);this.actions.get("clearAnchors").setEnabled(d.connections);this.actions.get("curved").setEnabled(0<
d.edges.length);this.actions.get("turn").setEnabled(0<d.cells.length);this.actions.get("group").setEnabled(1<d.cells.length||1==d.vertices.length&&0==b.model.getChildCount(d.cells[0])&&!b.isContainer(d.vertices[0]));this.actions.get("ungroup").setEnabled(!d.row&&!d.cell&&!d.table&&0<d.vertices.length&&(b.isContainer(d.vertices[0])||0<b.getModel().getChildCount(d.vertices[0])));this.actions.get("removeFromGroup").setEnabled(1==d.cells.length&&b.getModel().isVertex(b.getModel().getParent(d.cells[0])));
@@ -2284,72 +2284,72 @@ EditorUi.prototype.createSidebarContainer=function(){var b=document.createElemen
EditorUi.prototype.createUi=function(){this.statusContainer=this.createStatusContainer();this.menubar=this.editor.chromeless?null:this.menus.createMenubar(this.createDiv("geMenubar"));null!=this.menubar&&this.menubarContainer.appendChild(this.menubar.container);null!=this.menubar&&(this.editor.addListener("statusChanged",mxUtils.bind(this,function(){this.setStatusText(this.editor.getStatus())})),this.setStatusText(this.editor.getStatus()),this.menubar.container.appendChild(this.statusContainer),this.container.appendChild(this.menubarContainer));
this.sidebar=this.editor.chromeless?null:this.createSidebar(this.sidebarContainer);null!=this.sidebar&&this.container.appendChild(this.sidebarContainer);this.format=this.editor.chromeless?null:this.createFormat(this.formatContainer);null!=this.format&&this.container.appendChild(this.formatContainer);this.container.appendChild(this.diagramContainer);null!=this.container&&null!=this.tabContainer&&this.container.appendChild(this.tabContainer);this.toolbar=this.editor.chromeless?null:this.createToolbar(this.createDiv("geToolbar"));
null!=this.toolbar&&(this.toolbarContainer.appendChild(this.toolbar.container),this.container.appendChild(this.toolbarContainer));null!=this.sidebar&&(this.container.appendChild(this.hsplit),this.addSplitHandler(this.hsplit,!0,0,mxUtils.bind(this,function(b){this.hsplitPosition=b;this.refresh()})))};
-EditorUi.prototype.createStatusContainer=function(){var b=document.createElement("a");b.className="geStatus";mxEvent.addListener(b,"click",mxUtils.bind(this,function(d){var m=mxEvent.getSource(d);if(m!=b)for(;m.parentNode!=b;)m=m.parentNode;if("A"!=m.nodeName){var n=m.getAttribute("data-action");if("statusFunction"==n&&null!=this.editor.statusFunction)this.editor.statusFunction();else if(null!=n)m=this.actions.get(n),null!=m&&m.funct();else{n=m.getAttribute("data-title");var v=m.getAttribute("data-message");
-null!=n&&null!=v?this.showError(n,v):(m=m.getAttribute("data-link"),null!=m&&this.editor.graph.openLink(m))}mxEvent.consume(d)}}));return b};
+EditorUi.prototype.createStatusContainer=function(){var b=document.createElement("a");b.className="geStatus";mxEvent.addListener(b,"click",mxUtils.bind(this,function(d){var m=mxEvent.getSource(d);if(m!=b)for(;m.parentNode!=b;)m=m.parentNode;if("A"!=m.nodeName){var n=m.getAttribute("data-action");if("statusFunction"==n&&null!=this.editor.statusFunction)this.editor.statusFunction();else if(null!=n)m=this.actions.get(n),null!=m&&m.funct();else{n=m.getAttribute("data-title");var u=m.getAttribute("data-message");
+null!=n&&null!=u?this.showError(n,u):(m=m.getAttribute("data-link"),null!=m&&this.editor.graph.openLink(m))}mxEvent.consume(d)}}));return b};
EditorUi.prototype.setStatusText=function(b){this.statusContainer.innerHTML=Graph.sanitizeHtml(b);0==this.statusContainer.getElementsByTagName("div").length&&null!=b&&0<b.length&&(this.statusContainer.innerText="",b=this.createStatusDiv(b),this.statusContainer.appendChild(b));b=this.statusContainer.querySelectorAll('[data-effect="fade"]');if(null!=b)for(var d=0;d<b.length;d++)(function(m){mxUtils.setOpacity(m,0);mxUtils.setPrefixedStyle(m.style,"transform","scaleX(0)");mxUtils.setPrefixedStyle(m.style,
"transition","all 0.2s ease");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(m,100);mxUtils.setPrefixedStyle(m.style,"transform","scaleX(1)");mxUtils.setPrefixedStyle(m.style,"transition","all 1s ease");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(m.style,"transform","scaleX(0)");mxUtils.setOpacity(m,0);window.setTimeout(mxUtils.bind(this,function(){null!=m.parentNode&&m.parentNode.removeChild(m)}),1E3)}),Editor.updateStatusInterval/2)}),0)})(b[d])};
EditorUi.prototype.clearStatus=function(){this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus("")}))};EditorUi.prototype.updateStatus=function(b){null!=b&&b();this.lastStatusUpdate=b};EditorUi.prototype.updateStatusAgain=function(){null!=this.lastStatusUpdate&&this.lastStatusUpdate()};EditorUi.prototype.createStatusDiv=function(b){var d=document.createElement("div");d.className="geStatusDiv";d.setAttribute("title",b);d.innerText=b;return d};
EditorUi.prototype.createToolbar=function(b){return new Toolbar(this,b)};EditorUi.prototype.createSidebar=function(b){return new Sidebar(this,b)};EditorUi.prototype.createFormat=function(b){return new Format(this,b)};EditorUi.prototype.createDiv=function(b){var d=document.createElement("div");d.className=b;return d};
-EditorUi.prototype.addSplitHandler=function(b,d,m,n){function v(N){if(null!=z){var c=new mxPoint(mxEvent.getClientX(N),mxEvent.getClientY(N));n(Math.max(0,G+(d?c.x-z.x:z.y-c.y)-m));mxEvent.consume(N);G!=R()&&(U=!0,E=null)}}function p(N){v(N);z=G=null}var z=null,G=null,U=!0,E=null;mxClient.IS_POINTER&&(b.style.touchAction="none");var R=mxUtils.bind(this,function(){var N=parseInt(d?b.offsetLeft:b.offsetTop);d||(N+=m);return N});mxEvent.addGestureListeners(b,function(N){z=new mxPoint(mxEvent.getClientX(N),
-mxEvent.getClientY(N));G=R();U=!1;mxEvent.consume(N)});mxEvent.addListener(b,"click",mxUtils.bind(this,function(N){if(!U&&this.hsplitClickEnabled){var c=null!=E?E-m:0;E=R();n(c);mxEvent.consume(N)}}));mxEvent.addGestureListeners(document,null,v,p);this.destroyFunctions.push(function(){mxEvent.removeGestureListeners(document,null,v,p)})};
-EditorUi.prototype.prompt=function(b,d,m,n){b=new FilenameDialog(this,d,mxResources.get("apply"),function(v){m(n?v:parseFloat(v))},b);this.showDialog(b.container,300,80,!0,!0);b.init()};
-EditorUi.prototype.handleError=function(b,d,m,n,v){b=null!=b&&null!=b.error?b.error:b;if(null!=b||null!=d){v=mxUtils.htmlEntities(mxResources.get("unknownError"));var p=mxResources.get("ok");d=null!=d?d:mxResources.get("error");null!=b&&null!=b.message&&(v=mxUtils.htmlEntities(b.message));this.showError(d,v,p,m,null,null,null,null,null,null,null,null,n?m:null)}else null!=m&&m()};
-EditorUi.prototype.showError=function(b,d,m,n,v,p,z,G,U,E,R,N,c){b=new ErrorDialog(this,b,d,m||mxResources.get("ok"),n,v,p,z,N,G,U);d=Math.ceil(null!=d?d.length/50:1);this.showDialog(b.container,E||340,R||100+20*d,!0,!1,c);b.init()};EditorUi.prototype.showDialog=function(b,d,m,n,v,p,z,G,U,E){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,b,d,m,n,v,p,z,G,U,E);this.dialogs.push(this.dialog)};
-EditorUi.prototype.hideDialog=function(b,d,m){var n=null;if(null!=this.dialogs&&0<this.dialogs.length)for(var v=this.dialogs.length-1;0<=v;v--)if(!this.dialogs[v].closing){n=this.dialogs[v];break}null==n||null!=m&&m!=this.dialog.container.firstChild||(n.closing=!0,0==n.close(b,d)?delete n.closing:(delete n.closing,b=mxUtils.lastIndexOf(this.dialogs,n),0<=b&&this.dialogs.splice(b,1),this.dialog=0<this.dialogs.length?this.dialogs[this.dialogs.length-1]:null,this.editor.fireEvent(new mxEventObject("hideDialog",
+EditorUi.prototype.addSplitHandler=function(b,d,m,n){function u(N){if(null!=z){var c=new mxPoint(mxEvent.getClientX(N),mxEvent.getClientY(N));n(Math.max(0,G+(d?c.x-z.x:z.y-c.y)-m));mxEvent.consume(N);G!=R()&&(U=!0,E=null)}}function p(N){u(N);z=G=null}var z=null,G=null,U=!0,E=null;mxClient.IS_POINTER&&(b.style.touchAction="none");var R=mxUtils.bind(this,function(){var N=parseInt(d?b.offsetLeft:b.offsetTop);d||(N+=m);return N});mxEvent.addGestureListeners(b,function(N){z=new mxPoint(mxEvent.getClientX(N),
+mxEvent.getClientY(N));G=R();U=!1;mxEvent.consume(N)});mxEvent.addListener(b,"click",mxUtils.bind(this,function(N){if(!U&&this.hsplitClickEnabled){var c=null!=E?E-m:0;E=R();n(c);mxEvent.consume(N)}}));mxEvent.addGestureListeners(document,null,u,p);this.destroyFunctions.push(function(){mxEvent.removeGestureListeners(document,null,u,p)})};
+EditorUi.prototype.prompt=function(b,d,m,n){b=new FilenameDialog(this,d,mxResources.get("apply"),function(u){m(n?u:parseFloat(u))},b);this.showDialog(b.container,300,80,!0,!0);b.init()};
+EditorUi.prototype.handleError=function(b,d,m,n,u){b=null!=b&&null!=b.error?b.error:b;if(null!=b||null!=d){u=mxUtils.htmlEntities(mxResources.get("unknownError"));var p=mxResources.get("ok");d=null!=d?d:mxResources.get("error");null!=b&&null!=b.message&&(u=mxUtils.htmlEntities(b.message));this.showError(d,u,p,m,null,null,null,null,null,null,null,null,n?m:null)}else null!=m&&m()};
+EditorUi.prototype.showError=function(b,d,m,n,u,p,z,G,U,E,R,N,c){b=new ErrorDialog(this,b,d,m||mxResources.get("ok"),n,u,p,z,N,G,U);d=Math.ceil(null!=d?d.length/50:1);this.showDialog(b.container,E||340,R||100+20*d,!0,!1,c);b.init()};EditorUi.prototype.showDialog=function(b,d,m,n,u,p,z,G,U,E){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,b,d,m,n,u,p,z,G,U,E);this.dialogs.push(this.dialog)};
+EditorUi.prototype.hideDialog=function(b,d,m){var n=null;if(null!=this.dialogs&&0<this.dialogs.length)for(var u=this.dialogs.length-1;0<=u;u--)if(!this.dialogs[u].closing){n=this.dialogs[u];break}null==n||null!=m&&m!=this.dialog.container.firstChild||(n.closing=!0,0==n.close(b,d)?delete n.closing:(delete n.closing,b=mxUtils.lastIndexOf(this.dialogs,n),0<=b&&this.dialogs.splice(b,1),this.dialog=0<this.dialogs.length?this.dialogs[this.dialogs.length-1]:null,this.editor.fireEvent(new mxEventObject("hideDialog",
"dialog",n)),null==this.dialog&&null!=this.editor.graph.container&&"hidden"!=this.editor.graph.container.style.visibility&&window.setTimeout(mxUtils.bind(this,function(){null==this.editor||null!=this.dialogs&&0!=this.dialogs.length||(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 d=b.getSelectionCells(),m=new mxDictionary,n=[],v=0;v<d.length;v++){var p=b.isTableCell(d[v])?b.model.getParent(d[v]):d[v];null==p||m.get(p)||(m.put(p,!0),n.push(p))}b.setSelectionCells(b.duplicateCells(n,!1))}catch(z){this.handleError(z)}};
-EditorUi.prototype.pickColor=function(b,d,m,n,v){var p=this.editor.graph,z=p.cellEditor.saveSelection(),G=(v?240:290)+17*(Math.ceil(ColorDialog.prototype.presetColors.length/12)+Math.ceil(ColorDialog.prototype.defaultColors.length/12));b=new ColorDialog(this,b,function(U){p.cellEditor.restoreSelection(z);d(U)},function(){p.cellEditor.restoreSelection(z)},m,n,v);this.showDialog(b.container,230,G,!0,!1);b.init()};
+EditorUi.prototype.ctrlEnter=function(){var b=this.editor.graph;if(b.isEnabled())try{for(var d=b.getSelectionCells(),m=new mxDictionary,n=[],u=0;u<d.length;u++){var p=b.isTableCell(d[u])?b.model.getParent(d[u]):d[u];null==p||m.get(p)||(m.put(p,!0),n.push(p))}b.setSelectionCells(b.duplicateCells(n,!1))}catch(z){this.handleError(z)}};
+EditorUi.prototype.pickColor=function(b,d,m,n,u){var p=this.editor.graph,z=p.cellEditor.saveSelection(),G=(u?240:290)+17*(Math.ceil(ColorDialog.prototype.presetColors.length/12)+Math.ceil(ColorDialog.prototype.defaultColors.length/12));b=new ColorDialog(this,b,function(U){p.cellEditor.restoreSelection(z);d(U)},function(){p.cellEditor.restoreSelection(z)},m,n,u);this.showDialog(b.container,230,G,!0,!1);b.init()};
EditorUi.prototype.openFile=function(){window.openFile=new OpenFile(mxUtils.bind(this,function(b){this.hideDialog(b)}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:320,Editor.useLocalStorage?480:220,!0,!0,function(){window.openFile=null})};
-EditorUi.prototype.base64ToBlob=function(b,d){d=d||"";b=atob(b);for(var m=b.length,n=Math.ceil(m/1024),v=Array(n),p=0;p<n;++p){for(var z=1024*p,G=Math.min(z+1024,m),U=Array(G-z),E=0;z<G;++E,++z)U[E]=b[z].charCodeAt(0);v[p]=new Uint8Array(U)}return new Blob(v,{type:d})};
-EditorUi.prototype.extractGraphModelFromHtml=function(b){var d=null;try{var m=b.indexOf("&lt;mxGraphModel ");if(0<=m){var n=b.lastIndexOf("&lt;/mxGraphModel&gt;");n>m&&(d=b.substring(m,n+21).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}}catch(v){}return d};
+EditorUi.prototype.base64ToBlob=function(b,d){d=d||"";b=atob(b);for(var m=b.length,n=Math.ceil(m/1024),u=Array(n),p=0;p<n;++p){for(var z=1024*p,G=Math.min(z+1024,m),U=Array(G-z),E=0;z<G;++E,++z)U[E]=b[z].charCodeAt(0);u[p]=new Uint8Array(U)}return new Blob(u,{type:d})};
+EditorUi.prototype.extractGraphModelFromHtml=function(b){var d=null;try{var m=b.indexOf("&lt;mxGraphModel ");if(0<=m){var n=b.lastIndexOf("&lt;/mxGraphModel&gt;");n>m&&(d=b.substring(m,n+21).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}}catch(u){}return d};
EditorUi.prototype.extractGraphModelFromEvent=function(b){var d=null,m=null;null!=b&&(b=null!=b.dataTransfer?b.dataTransfer:b.clipboardData,null!=b&&(m=0<=mxUtils.indexOf(b.types,"text/html")?b.getData("text/html"):null,0<=mxUtils.indexOf(b.types,"text/plain")&&(null==m||0==m.length)&&(m=b.getData("text/plain")),null!=m&&(m=Graph.zapGremlins(mxUtils.trim(m)),b=this.extractGraphModelFromHtml(m),null!=b&&(m=b))));null!=m&&this.isCompatibleString(m)&&(d=m);return d};
EditorUi.prototype.isCompatibleString=function(b){return!1};EditorUi.prototype.saveFile=function(b){b||null==this.editor.filename?(b=new FilenameDialog(this,this.editor.getOrCreateFilename(),mxResources.get("save"),mxUtils.bind(this,function(d){this.save(d)}),null,mxUtils.bind(this,function(d){if(null!=d&&0<d.length)return!0;mxUtils.confirm(mxResources.get("invalidName"));return!1})),this.showDialog(b.container,340,96,!0,!0),b.init()):this.save(this.editor.getOrCreateFilename())};
EditorUi.prototype.save=function(b){if(null!=b){this.editor.graph.isEditing()&&this.editor.graph.stopEditing();var d=mxUtils.getXml(this.editor.getGraphXml());try{if(Editor.useLocalStorage){if(null!=localStorage.getItem(b)&&!mxUtils.confirm(mxResources.get("replaceIt",[b])))return;localStorage.setItem(b,d);this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus(mxUtils.htmlEntities(mxResources.get("saved"))+" "+new Date)}))}else if(d.length<MAX_REQUEST_SIZE)(new mxXmlRequest(SAVE_URL,
"filename="+encodeURIComponent(b)+"&xml="+encodeURIComponent(d))).simulate(document,"_blank");else{mxUtils.alert(mxResources.get("drawingTooLarge"));mxUtils.popup(d);return}this.editor.setModified(!1);this.editor.setFilename(b);this.updateDocumentTitle()}catch(m){this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus(mxUtils.htmlEntities(mxResources.get("errorSavingFile")))}))}}};
EditorUi.prototype.executeLayouts=function(b,d){this.executeLayout(mxUtils.bind(this,function(){var m=new mxCompositeLayout(this.editor.graph,b),n=this.editor.graph.getSelectionCells();m.execute(this.editor.graph.getDefaultParent(),0==n.length?null:n)}),!0,d)};
-EditorUi.prototype.executeLayout=function(b,d,m){var n=this.editor.graph;n.getModel().beginUpdate();try{b()}catch(v){throw v;}finally{this.allowAnimation&&d&&n.isEnabled()?(b=new mxMorphing(n),b.addListener(mxEvent.DONE,mxUtils.bind(this,function(){n.getModel().endUpdate();null!=m&&m()})),b.startAnimation()):(n.getModel().endUpdate(),null!=m&&m())}};
-EditorUi.prototype.showImageDialog=function(b,d,m,n){n=this.editor.graph.cellEditor;var v=n.saveSelection(),p=mxUtils.prompt(b,d);n.restoreSelection(v);if(null!=p&&0<p.length){var z=new Image;z.onload=function(){m(p,z.width,z.height)};z.onerror=function(){m(null);mxUtils.alert(mxResources.get("fileNotFound"))};z.src=p}else m(null)};EditorUi.prototype.showLinkDialog=function(b,d,m){b=new LinkDialog(this,b,d,m);this.showDialog(b.container,420,90,!0,!0);b.init()};
+EditorUi.prototype.executeLayout=function(b,d,m){var n=this.editor.graph;n.getModel().beginUpdate();try{b()}catch(u){throw u;}finally{this.allowAnimation&&d&&n.isEnabled()?(b=new mxMorphing(n),b.addListener(mxEvent.DONE,mxUtils.bind(this,function(){n.getModel().endUpdate();null!=m&&m()})),b.startAnimation()):(n.getModel().endUpdate(),null!=m&&m())}};
+EditorUi.prototype.showImageDialog=function(b,d,m,n){n=this.editor.graph.cellEditor;var u=n.saveSelection(),p=mxUtils.prompt(b,d);n.restoreSelection(u);if(null!=p&&0<p.length){var z=new Image;z.onload=function(){m(p,z.width,z.height)};z.onerror=function(){m(null);mxUtils.alert(mxResources.get("fileNotFound"))};z.src=p}else m(null)};EditorUi.prototype.showLinkDialog=function(b,d,m){b=new LinkDialog(this,b,d,m);this.showDialog(b.container,420,90,!0,!0);b.init()};
EditorUi.prototype.showDataDialog=function(b){null!=b&&"undefined"!==typeof window.EditDataDialog&&(b=new EditDataDialog(this,b),this.showDialog(b.container,480,420,!0,!1,null,!1,null,new mxRectangle(0,0,440,220)),b.init())};
EditorUi.prototype.showBackgroundImageDialog=function(b,d){b=null!=b?b:mxUtils.bind(this,function(n){n=new ChangePageSetup(this,null,n);n.ignoreColor=!0;this.editor.graph.model.execute(n)});var m=mxUtils.prompt(mxResources.get("backgroundImage"),null!=d?d.src:"");null!=m&&0<m.length?(d=new Image,d.onload=function(){b(new mxImage(m,d.width,d.height),!1)},d.onerror=function(){b(null,!0);mxUtils.alert(mxResources.get("fileNotFound"))},d.src=m):b(null)};
EditorUi.prototype.setBackgroundImage=function(b){this.editor.graph.setBackgroundImage(b);this.editor.graph.view.validateBackgroundImage();this.fireEvent(new mxEventObject("backgroundImageChanged"))};EditorUi.prototype.confirm=function(b,d,m){mxUtils.confirm(b)?null!=d&&d():null!=m&&m()};EditorUi.prototype.createOutline=function(b){var d=new mxOutline(this.editor.graph);mxEvent.addListener(window,"resize",function(){d.update(!1)});return d};
EditorUi.prototype.altShiftActions={65:"connectionArrows",82:"clearWaypoints",76:"editLink",79:"connectionPoints",81:"editConnectionPoints",84:"editTooltip",86:"pasteSize",70:"copySize",66:"copyData",69:"pasteData"};EditorUi.prototype.ctrlAltShiftActions={70:"bringForward",66:"sendBackward",88:"copyAsSvg"};EditorUi.prototype.ctrlAltActions={88:"copyAsImage"};
EditorUi.prototype.createKeyHandler=function(b){function d(N,c,g){if(!n.isSelectionEmpty()&&n.isEnabled()){c=null!=c?c:1;var k=n.getCompositeParents(n.getSelectionCells()),q=0<k.length?k[0]:null;if(null!=q)if(g){n.getModel().beginUpdate();try{for(q=0;q<k.length;q++)if(n.getModel().isVertex(k[q])&&n.isCellResizable(k[q])){var A=n.getCellGeometry(k[q]);null!=A&&(A=A.clone(),37==N?A.width=Math.max(0,A.width-c):38==N?A.height=Math.max(0,A.height-c):39==N?A.width+=c:40==N&&(A.height+=c),n.getModel().setGeometry(k[q],
A))}}finally{n.getModel().endUpdate()}}else{A=n.model.getParent(q);var D=n.getView().scale;g=null;1==n.getSelectionCount()&&n.model.isVertex(q)&&null!=n.layoutManager&&!n.isCellLocked(q)&&(g=n.layoutManager.getLayout(A));if(null!=g&&g.constructor==mxStackLayout)c=A.getIndex(q),37==N||38==N?n.model.add(A,q,Math.max(0,c-1)):(39==N||40==N)&&n.model.add(A,q,Math.min(n.model.getChildCount(A),c+1));else{var H=n.graphHandler;null!=H&&(null==H.first&&H.start(q,0,0,n.getMovableCells(k)),null!=H.first&&(q=
-k=0,37==N?k=-c:38==N?q=-c:39==N?k=c:40==N&&(q=c),H.currentDx+=k*D,H.currentDy+=q*D,H.checkPreview(),H.updatePreview()),null!=z&&window.clearTimeout(z),z=window.setTimeout(function(){if(null!=H.first){var K=H.roundLength(H.currentDx/D),P=H.roundLength(H.currentDy/D);H.moveCells(H.cells,K,P);H.reset()}},400))}}}}var m=this,n=this.editor.graph,v=new mxKeyHandler(n),p=v.isEventIgnored;v.isEventIgnored=function(N){return 188==N.keyCode&&this.isControlDown(N)&&!this.graph.cellEditor.isContentEditing()?
+k=0,37==N?k=-c:38==N?q=-c:39==N?k=c:40==N&&(q=c),H.currentDx+=k*D,H.currentDy+=q*D,H.checkPreview(),H.updatePreview()),null!=z&&window.clearTimeout(z),z=window.setTimeout(function(){if(null!=H.first){var K=H.roundLength(H.currentDx/D),P=H.roundLength(H.currentDy/D);H.moveCells(H.cells,K,P);H.reset()}},400))}}}}var m=this,n=this.editor.graph,u=new mxKeyHandler(n),p=u.isEventIgnored;u.isEventIgnored=function(N){return 188==N.keyCode&&this.isControlDown(N)&&!this.graph.cellEditor.isContentEditing()?
!0:!(mxEvent.isShiftDown(N)&&9==N.keyCode)&&(!this.isControlDown(N)||mxEvent.isShiftDown(N)||90!=N.keyCode&&89!=N.keyCode&&188!=N.keyCode&&190!=N.keyCode&&85!=N.keyCode&&83!=N.keyCode)&&(66!=N.keyCode&&73!=N.keyCode||!this.isControlDown(N)||this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&(109!=N.keyCode&&107!=N.keyCode||!this.isControlDown(N)&&!mxEvent.isShiftDown(N)||!this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&p.apply(this,arguments)};
-v.isEnabledForEvent=function(N){return!mxEvent.isConsumed(N)&&this.isGraphEvent(N)&&this.isEnabled()&&(null==m.dialogs||0==m.dialogs.length)};v.isControlDown=function(N){return mxEvent.isControlDown(N)||mxClient.IS_MAC&&N.metaKey};var z=null,G={37:mxConstants.DIRECTION_WEST,38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},U=v.getFunction;mxKeyHandler.prototype.getFunction=function(N){if(n.isEnabled()){var c=null;mxEvent.isShiftDown(N)&&this.isControlDown(N)&&
+u.isEnabledForEvent=function(N){return!mxEvent.isConsumed(N)&&this.isGraphEvent(N)&&this.isEnabled()&&(null==m.dialogs||0==m.dialogs.length)};u.isControlDown=function(N){return mxEvent.isControlDown(N)||mxClient.IS_MAC&&N.metaKey};var z=null,G={37:mxConstants.DIRECTION_WEST,38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},U=u.getFunction;mxKeyHandler.prototype.getFunction=function(N){if(n.isEnabled()){var c=null;mxEvent.isShiftDown(N)&&this.isControlDown(N)&&
mxEvent.isAltDown(N)?c=m.actions.get(m.ctrlAltShiftActions[N.keyCode]):mxEvent.isShiftDown(N)&&mxEvent.isAltDown(N)?c=m.actions.get(m.altShiftActions[N.keyCode]):this.isControlDown(N)&&mxEvent.isAltDown(N)&&(c=m.actions.get(m.ctrlAltActions[N.keyCode]));if(null!=c)return c.funct;if("/"==N.key&&!this.isControlDown(N)&&!mxEvent.isAltDown(N))return function(){var g=document.getElementById("geOmniSearch");null!=g&&30<g.clientWidth&&g.focus()};if(null!=G[N.keyCode]&&!n.isSelectionEmpty())if(!this.isControlDown(N)&&
mxEvent.isShiftDown(N)&&mxEvent.isAltDown(N)){if(n.model.isVertex(n.getSelectionCell()))return function(){var g=n.connectVertex(n.getSelectionCell(),G[N.keyCode],n.defaultEdgeLength,N,!0);null!=g&&0<g.length&&(1==g.length&&n.model.isEdge(g[0])?n.setSelectionCell(n.model.getTerminal(g[0],!1)):n.setSelectionCell(g[g.length-1]),n.scrollCellToVisible(n.getSelectionCell()),null!=m.hoverIcons&&m.hoverIcons.update(n.view.getState(n.getSelectionCell())))}}else return this.isControlDown(N)?function(){d(N.keyCode,
-mxEvent.isShiftDown(N)?n.gridSize:null,!0)}:function(){d(N.keyCode,mxEvent.isShiftDown(N)?n.gridSize:null)}}return U.apply(this,arguments)};v.bindAction=mxUtils.bind(this,function(N,c,g,k){var q=this.actions.get(g);null!=q&&(g=function(){q.isEnabled()&&q.funct.apply(this,arguments)},c?k?v.bindControlShiftKey(N,g):v.bindControlKey(N,g):k?v.bindShiftKey(N,g):v.bindKey(N,g))});var E=this,R=v.escape;v.escape=function(N){R.apply(this,arguments)};v.enter=function(){};v.bindControlShiftKey(36,function(){n.exitGroup()});
-v.bindControlShiftKey(35,function(){n.enterGroup()});v.bindShiftKey(36,function(){n.home()});v.bindKey(35,function(){n.refresh()});v.bindAction(80,!0,"print");v.bindAction(107,!0,"zoomIn");v.bindAction(109,!0,"zoomOut");v.bindAction(61,!0,"zoomIn");v.bindAction(187,!0,"zoomIn");v.bindAction(222,!0,"zoomIn");v.bindAction(173,!0,"zoomOut");v.bindAction(189,!0,"zoomOut");if(!this.editor.chromeless||this.editor.editable)v.bindAction(79,!0,"outline",!0),v.bindControlKey(36,function(){n.isEnabled()&&n.foldCells(!0)}),
-v.bindControlKey(35,function(){n.isEnabled()&&n.foldCells(!1)}),v.bindControlKey(13,function(){E.ctrlEnter()}),v.bindAction(8,!1,"delete"),v.bindAction(8,!0,"deleteAll"),v.bindAction(8,!1,"deleteLabels",!0),v.bindAction(46,!1,"delete"),v.bindAction(46,!0,"deleteAll"),v.bindAction(46,!1,"deleteLabels",!0),v.bindAction(36,!1,"resetView"),v.bindAction(72,!0,"fitWindow",!0),v.bindAction(74,!0,"fitPage"),v.bindAction(74,!0,"fitTwoPages",!0),v.bindAction(48,!0,"customZoom"),v.bindAction(82,!0,"turn"),v.bindAction(82,
-!0,"clearDefaultStyle",!0),v.bindAction(83,!0,"save"),v.bindAction(83,!0,"saveAs",!0),v.bindAction(65,!0,"selectAll"),v.bindAction(65,!0,"selectNone",!0),"1"!=urlParams.dev&&v.bindAction(73,!0,"selectVertices",!0),v.bindAction(69,!0,"selectEdges",!0),v.bindAction(69,!0,"editStyle"),v.bindAction(66,!0,"bold"),v.bindAction(66,!0,"toBack",!0),v.bindAction(70,!0,"toFront",!0),v.bindAction(68,!0,"duplicate"),v.bindAction(68,!0,"setAsDefaultStyle",!0),v.bindAction(90,!0,"undo"),v.bindAction(90,!0,"redo",
-!0),v.bindAction(89,!0,"redo"),v.bindAction(89,!0,"autosize",!0),v.bindAction(88,!0,"cut"),v.bindAction(67,!0,"copy"),v.bindAction(86,!0,"paste"),v.bindAction(71,!0,"group"),v.bindAction(77,!0,"editData"),v.bindAction(71,!0,"grid",!0),v.bindAction(73,!0,"italic"),v.bindAction(76,!0,"lockUnlock"),v.bindAction(76,!0,"layers",!0),v.bindAction(80,!0,"format",!0),v.bindAction(85,!0,"underline"),v.bindAction(85,!0,"ungroup",!0),v.bindAction(109,!0,"decreaseFontSize",!0),v.bindAction(107,!0,"increaseFontSize",
-!0),v.bindAction(219,!0,"decreaseFontSize",!0),v.bindAction(221,!0,"increaseFontSize",!0),v.bindAction(190,!0,"superscript"),v.bindAction(188,!0,"subscript"),v.bindAction(13,!1,"keyPressEnter"),v.bindKey(113,function(){n.isEnabled()&&n.startEditingAtCell()});return v};EditorUi.prototype.createMenuElement=function(b,d,m){var n=document.createElement("a");this.addMenuHandler(n,d,m);mxUtils.write(n,b);n.className="geItem";return n};
-EditorUi.prototype.addMenuHandler=function(b,d,m,n){if(null!=d){var v=null,p=!0,z=mxUtils.bind(this,function(G){null!=m&&m(G);if(!mxEvent.isConsumed(G)&&p&&(null==b.enabled||b.enabled)){this.editor.graph.popupMenuHandler.hideMenu();var U=new mxPopupMenu(d);U.smartSeparators=!0;U.showDisabled=!0;U.autoExpand=!0;U.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(U,arguments);this.resetCurrentMenu();v=null;U.destroy()});this.menus.autoPopup||null==this.currentMenu||this.hideCurrentMenu();
-var E=mxUtils.getOffset(b);U.popup(E.x,E.y+b.offsetHeight,null,G);this.setCurrentMenu(U,b);v=U}n||mxEvent.consume(G)});mxEvent.addListener(b,"mousemove",mxUtils.bind(this,function(G){if(this.menus.autoPopup&&null!=this.currentMenu&&this.currentMenuElt!=b&&null!=this.currentMenuElt){var U=this.currentMenuElt;this.hideCurrentMenu();U.parentNode==b.parentNode&&"INPUT"!=b.nodeName&&z(G)}}));mxEvent.addListener(b,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(G){!this.menus.autoPopup&&
-null!=this.currentMenu&&this.currentMenuElt!=b&&mxEvent.isMouseEvent(G)&&this.hideCurrentMenu();p=null==this.currentMenu;"INPUT"!=mxEvent.getSource(G).nodeName?G.preventDefault():G.stopPropagation()}));mxEvent.addListener(b,"click",mxUtils.bind(this,function(G){z(G);p=!0}));n&&(mxEvent.addListener(b,"focus",mxUtils.bind(this,function(G){z(G);p=!0})),mxEvent.addListener(b,"blur",mxUtils.bind(this,function(G){this.currentMenu==v&&this.hideCurrentMenu()})),mxEvent.addListener(b,"keyup",mxUtils.bind(this,
+mxEvent.isShiftDown(N)?n.gridSize:null,!0)}:function(){d(N.keyCode,mxEvent.isShiftDown(N)?n.gridSize:null)}}return U.apply(this,arguments)};u.bindAction=mxUtils.bind(this,function(N,c,g,k){var q=this.actions.get(g);null!=q&&(g=function(){q.isEnabled()&&q.funct.apply(this,arguments)},c?k?u.bindControlShiftKey(N,g):u.bindControlKey(N,g):k?u.bindShiftKey(N,g):u.bindKey(N,g))});var E=this,R=u.escape;u.escape=function(N){R.apply(this,arguments)};u.enter=function(){};u.bindControlShiftKey(36,function(){n.exitGroup()});
+u.bindControlShiftKey(35,function(){n.enterGroup()});u.bindShiftKey(36,function(){n.home()});u.bindKey(35,function(){n.refresh()});u.bindAction(80,!0,"print");u.bindAction(107,!0,"zoomIn");u.bindAction(109,!0,"zoomOut");u.bindAction(61,!0,"zoomIn");u.bindAction(187,!0,"zoomIn");u.bindAction(222,!0,"zoomIn");u.bindAction(173,!0,"zoomOut");u.bindAction(189,!0,"zoomOut");if(!this.editor.chromeless||this.editor.editable)u.bindAction(79,!0,"outline",!0),u.bindControlKey(36,function(){n.isEnabled()&&n.foldCells(!0)}),
+u.bindControlKey(35,function(){n.isEnabled()&&n.foldCells(!1)}),u.bindControlKey(13,function(){E.ctrlEnter()}),u.bindAction(8,!1,"delete"),u.bindAction(8,!0,"deleteAll"),u.bindAction(8,!1,"deleteLabels",!0),u.bindAction(46,!1,"delete"),u.bindAction(46,!0,"deleteAll"),u.bindAction(46,!1,"deleteLabels",!0),u.bindAction(36,!1,"resetView"),u.bindAction(72,!0,"fitWindow",!0),u.bindAction(74,!0,"fitPage"),u.bindAction(74,!0,"fitTwoPages",!0),u.bindAction(48,!0,"customZoom"),u.bindAction(82,!0,"turn"),u.bindAction(82,
+!0,"clearDefaultStyle",!0),u.bindAction(83,!0,"save"),u.bindAction(83,!0,"saveAs",!0),u.bindAction(65,!0,"selectAll"),u.bindAction(65,!0,"selectNone",!0),"1"!=urlParams.dev&&u.bindAction(73,!0,"selectVertices",!0),u.bindAction(69,!0,"selectEdges",!0),u.bindAction(69,!0,"editStyle"),u.bindAction(66,!0,"bold"),u.bindAction(66,!0,"toBack",!0),u.bindAction(70,!0,"toFront",!0),u.bindAction(68,!0,"duplicate"),u.bindAction(68,!0,"setAsDefaultStyle",!0),u.bindAction(90,!0,"undo"),u.bindAction(90,!0,"redo",
+!0),u.bindAction(89,!0,"redo"),u.bindAction(89,!0,"autosize",!0),u.bindAction(88,!0,"cut"),u.bindAction(67,!0,"copy"),u.bindAction(86,!0,"paste"),u.bindAction(71,!0,"group"),u.bindAction(77,!0,"editData"),u.bindAction(71,!0,"grid",!0),u.bindAction(73,!0,"italic"),u.bindAction(76,!0,"lockUnlock"),u.bindAction(76,!0,"layers",!0),u.bindAction(80,!0,"format",!0),u.bindAction(85,!0,"underline"),u.bindAction(85,!0,"ungroup",!0),u.bindAction(109,!0,"decreaseFontSize",!0),u.bindAction(107,!0,"increaseFontSize",
+!0),u.bindAction(219,!0,"decreaseFontSize",!0),u.bindAction(221,!0,"increaseFontSize",!0),u.bindAction(190,!0,"superscript"),u.bindAction(188,!0,"subscript"),u.bindAction(13,!1,"keyPressEnter"),u.bindKey(113,function(){n.isEnabled()&&n.startEditingAtCell()});return u};EditorUi.prototype.createMenuElement=function(b,d,m){var n=document.createElement("a");this.addMenuHandler(n,d,m);mxUtils.write(n,b);n.className="geItem";return n};
+EditorUi.prototype.addMenuHandler=function(b,d,m,n){if(null!=d){var u=null,p=!0,z=mxUtils.bind(this,function(G){null!=m&&m(G);if(!mxEvent.isConsumed(G)&&p&&(null==b.enabled||b.enabled)){this.editor.graph.popupMenuHandler.hideMenu();var U=new mxPopupMenu(d);U.smartSeparators=!0;U.showDisabled=!0;U.autoExpand=!0;U.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(U,arguments);this.resetCurrentMenu();u=null;U.destroy()});this.menus.autoPopup||null==this.currentMenu||this.hideCurrentMenu();
+var E=mxUtils.getOffset(b);U.popup(E.x,E.y+b.offsetHeight,null,G);this.setCurrentMenu(U,b);u=U}n||mxEvent.consume(G)});mxEvent.addListener(b,"mousemove",mxUtils.bind(this,function(G){if(this.menus.autoPopup&&null!=this.currentMenu&&this.currentMenuElt!=b&&null!=this.currentMenuElt){var U=this.currentMenuElt;this.hideCurrentMenu();U.parentNode==b.parentNode&&"INPUT"!=b.nodeName&&z(G)}}));mxEvent.addListener(b,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(G){!this.menus.autoPopup&&
+null!=this.currentMenu&&this.currentMenuElt!=b&&mxEvent.isMouseEvent(G)&&this.hideCurrentMenu();p=null==this.currentMenu;"INPUT"!=mxEvent.getSource(G).nodeName?G.preventDefault():G.stopPropagation()}));mxEvent.addListener(b,"click",mxUtils.bind(this,function(G){z(G);p=!0}));n&&(mxEvent.addListener(b,"focus",mxUtils.bind(this,function(G){z(G);p=!0})),mxEvent.addListener(b,"blur",mxUtils.bind(this,function(G){this.currentMenu==u&&this.hideCurrentMenu()})),mxEvent.addListener(b,"keyup",mxUtils.bind(this,
function(G){this.hideCurrentMenu();13!=G.keyCode&&27!=G.keyCode&&(z(G),p=!0)})))}};
-EditorUi.prototype.addShapePicker=function(b,d){var m=this.editor.graph;mxEvent.addListener(b,"click",mxUtils.bind(this,function(n){if(this.isShapePickerVisible())this.hideShapePicker();else{var v=mxUtils.getOffset(b);Editor.inlineFullscreen||null==this.embedViewport?d?(v.x-=this.diagramContainer.offsetLeft+30,v.y=b.offsetHeight-2):(v.x+=16+b.offsetHeight+this.sketchPickerMenuElt.offsetWidth/2,v.y+=20):(v.x=0,v.y=b.offsetTop);this.showShapePicker(Math.max(this.diagramContainer.scrollLeft+Math.max(24,
-v.x)),this.diagramContainer.scrollTop+v.y,null,null,null,null,mxUtils.bind(this,function(p){return m.getCenterInsertPoint(m.getBoundingBoxFromGeometry(p,!0))}),d,!1)}mxEvent.consume(n)}))};
+EditorUi.prototype.addShapePicker=function(b,d){var m=this.editor.graph;mxEvent.addListener(b,"click",mxUtils.bind(this,function(n){if(this.isShapePickerVisible())this.hideShapePicker();else{var u=mxUtils.getOffset(b);Editor.inlineFullscreen||null==this.embedViewport?d?(u.x-=this.diagramContainer.offsetLeft+30,u.y=b.offsetHeight-2):(u.x+=16+b.offsetHeight+this.sketchPickerMenuElt.offsetWidth/2,u.y+=20):(u.x=0,u.y=b.offsetTop);this.showShapePicker(Math.max(this.diagramContainer.scrollLeft+Math.max(24,
+u.x)),this.diagramContainer.scrollTop+u.y,null,null,null,null,mxUtils.bind(this,function(p){return m.getCenterInsertPoint(m.getBoundingBoxFromGeometry(p,!0))}),d,!1)}mxEvent.consume(n)}))};
EditorUi.prototype.createZoomInput=function(b){var d=document.createElement("input");d.className="geButton geZoomInput";d.style.backgroundImage="url("+Editor.thinExpandImage+")";d.setAttribute("type","text");d.setAttribute("value","100%");var m=this.menus.get("viewZoom");this.dependsOnLanguage(mxUtils.bind(this,function(){d.setAttribute("title",mxResources.get("zoom")+" (Alt+Mousewheel)")}));(b||mxClient.IS_TOUCH)&&d.setAttribute("readonly","true");var n=!1;mxEvent.addGestureListeners(d,mxUtils.bind(this,
-function(v){n=!1;mxClient.IS_TOUCH||mxEvent.getSource(v)!=d||document.activeElement==d||(d.focus(),mxClient.IS_GC||mxClient.IS_FF?d.select():document.execCommand("selectAll",!1,null),n=!0)}),mxUtils.bind(this,function(v){mxEvent.getSource(v)==d&&n&&mxEvent.consume(v)}),mxUtils.bind(this,function(v){n&&(mxEvent.consume(v),n=!1)}));this.addMenuHandler(d,m.funct);mxUtils.bind(this,function(v){mxEvent.addListener(v,"click",mxUtils.bind(this,function(z){mxEvent.isAltDown(z)?(this.hideCurrentMenu(),this.actions.get("customZoom").funct(),
+function(u){n=!1;mxClient.IS_TOUCH||mxEvent.getSource(u)!=d||document.activeElement==d||(d.focus(),mxClient.IS_GC||mxClient.IS_FF?d.select():document.execCommand("selectAll",!1,null),n=!0)}),mxUtils.bind(this,function(u){mxEvent.getSource(u)==d&&n&&mxEvent.consume(u)}),mxUtils.bind(this,function(u){n&&(mxEvent.consume(u),n=!1)}));this.addMenuHandler(d,m.funct);mxUtils.bind(this,function(u){mxEvent.addListener(u,"click",mxUtils.bind(this,function(z){mxEvent.isAltDown(z)?(this.hideCurrentMenu(),this.actions.get("customZoom").funct(),
mxEvent.consume(z)):mxEvent.isShiftDown(z)&&(this.hideCurrentMenu(),this.actions.get("smartFit").funct(),mxEvent.consume(z))}));var p=mxUtils.bind(this,function(z,G,U){d.value=Math.round(100*this.editor.graph.view.scale*(null!=U?U:1))+"%";document.activeElement==d&&this.editor.graph.container.focus()});mxEvent.addListener(d,"keydown",mxUtils.bind(this,function(z){if(27==z.keyCode||13==z.keyCode||9==z.keyCode)27==z.keyCode||isNaN(parseInt(d.value))?p():this.editor.graph.zoomTo(parseInt(d.value)/100),
this.hideCurrentMenu(),mxEvent.consume(z)}));this.editor.graph.view.addListener(mxEvent.EVENT_SCALE,p);this.editor.addListener("resetGraphView",p);this.editor.addListener("pageSelected",p);mxEvent.addListener(d,"blur",p);this.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(z,G){p(z,G,G.getProperty("factor"))}))})(d);return d};
EditorUi.prototype.createHelpIcon=function(b,d){d=document.createElement("img");d.setAttribute("src",Editor.helpImage);d.setAttribute("title",mxResources.get("help")+" ("+b+")");d.className="geHelpIcon";mxEvent.addGestureListeners(d,mxUtils.bind(this,function(m){this.hideCurrentMenu();this.openLink(b);mxEvent.consume(m)}));return d};
EditorUi.prototype.destroy=function(){var b=this.editor.graph;null!=b&&null!=this.selectionStateListener&&(b.getSelectionModel().removeListener(this.selectionStateListener),b.getModel().removeListener(this.selectionStateListener),b.getView().removeListener(this.selectionStateListener),b.removeListener(this.selectionStateListener),this.selectionStateListener=null);null!=this.inlineToolbar&&(this.inlineToolbar.destroy(),this.inlineToolbar=null);null!=this.editor&&(this.editor.destroy(),this.editor=
null);null!=this.menubar&&(this.menubar.destroy(),this.menubar=null);null!=this.toolbar&&(this.toolbar.destroy(),this.toolbar=null);null!=this.sidebar&&(this.sidebar.destroy(),this.sidebar=null);null!=this.keyHandler&&(this.keyHandler.destroy(),this.keyHandler=null);null!=this.keydownHandler&&(mxEvent.removeListener(document,"keydown",this.keydownHandler),this.keydownHandler=null);null!=this.keyupHandler&&(mxEvent.removeListener(document,"keyup",this.keyupHandler),this.keyupHandler=null);null!=this.resizeHandler&&
(mxEvent.removeListener(window,"resize",this.resizeHandler),this.resizeHandler=null);null!=this.gestureHandler&&(mxEvent.removeGestureListeners(document,this.gestureHandler),this.gestureHandler=null);null!=this.orientationChangeHandler&&(mxEvent.removeListener(window,"orientationchange",this.orientationChangeHandler),this.orientationChangeHandler=null);null!=this.scrollHandler&&(mxEvent.removeListener(window,"scroll",this.scrollHandler),this.scrollHandler=null);if(null!=this.destroyFunctions){for(b=
-0;b<this.destroyFunctions.length;b++)this.destroyFunctions[b]();this.destroyFunctions=null}var d=[this.menubarContainer,this.toolbarContainer,this.sidebarContainer,this.formatContainer,this.diagramContainer,this.hsplit,this.chromelessToolbar,this.layersDialog];for(b=0;b<d.length;b++)null!=d[b]&&null!=d[b].parentNode&&d[b].parentNode.removeChild(d[b])};(function(){var b=[["nbsp","160"],["shy","173"]],d=mxUtils.parseXml;mxUtils.parseXml=function(n){for(var v=0;v<b.length;v++)n=n.replace(new RegExp("&"+b[v][0]+";","g"),"&#"+b[v][1]+";");return d(n)};var m=mxUtils.getSizeForString;mxUtils.getSizeForString=function(n,v,p,z){return m(Graph.sanitizeHtml(n),v,p,z)}})();
+0;b<this.destroyFunctions.length;b++)this.destroyFunctions[b]();this.destroyFunctions=null}var d=[this.menubarContainer,this.toolbarContainer,this.sidebarContainer,this.formatContainer,this.diagramContainer,this.hsplit,this.chromelessToolbar,this.layersDialog];for(b=0;b<d.length;b++)null!=d[b]&&null!=d[b].parentNode&&d[b].parentNode.removeChild(d[b])};(function(){var b=[["nbsp","160"],["shy","173"]],d=mxUtils.parseXml;mxUtils.parseXml=function(n){for(var u=0;u<b.length;u++)n=n.replace(new RegExp("&"+b[u][0]+";","g"),"&#"+b[u][1]+";");return d(n)};var m=mxUtils.getSizeForString;mxUtils.getSizeForString=function(n,u,p,z){return m(Graph.sanitizeHtml(n),u,p,z)}})();
Date.prototype.toISOString||function(){function b(d){d=String(d);1===d.length&&(d="0"+d);return d}Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+b(this.getUTCMonth()+1)+"-"+b(this.getUTCDate())+"T"+b(this.getUTCHours())+":"+b(this.getUTCMinutes())+":"+b(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1E3).toFixed(3)).slice(2,5)+"Z"}}();Date.now||(Date.now=function(){return(new Date).getTime()});
-Uint8Array.from||(Uint8Array.from=function(){var b=Object.prototype.toString,d=function(n){return"function"===typeof n||"[object Function]"===b.call(n)},m=Math.pow(2,53)-1;return function(n){var v=Object(n);if(null==n)throw new TypeError("Array.from requires an array-like object - not null or undefined");var p=1<arguments.length?arguments[1]:void 0,z;if("undefined"!==typeof p){if(!d(p))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(z=
-arguments[2])}var G=Number(v.length);G=isNaN(G)?0:0!==G&&isFinite(G)?(0<G?1:-1)*Math.floor(Math.abs(G)):G;G=Math.min(Math.max(G,0),m);for(var U=d(this)?Object(new this(G)):Array(G),E=0,R;E<G;)R=v[E],U[E]=p?"undefined"===typeof z?p(R,E):p.call(z,R,E):R,E+=1;U.length=G;return U}}());mxConstants.SHADOW_OPACITY=.25;mxConstants.SHADOWCOLOR="#000000";mxConstants.VML_SHADOWCOLOR="#d0d0d0";mxCodec.allowlist="mxStylesheet Array mxGraphModel mxCell mxGeometry mxRectangle mxPoint mxChildChange mxRootChange mxTerminalChange mxValueChange mxStyleChange mxGeometryChange mxCollapseChange mxVisibleChange mxCellAttributeChange".split(" ");
+Uint8Array.from||(Uint8Array.from=function(){var b=Object.prototype.toString,d=function(n){return"function"===typeof n||"[object Function]"===b.call(n)},m=Math.pow(2,53)-1;return function(n){var u=Object(n);if(null==n)throw new TypeError("Array.from requires an array-like object - not null or undefined");var p=1<arguments.length?arguments[1]:void 0,z;if("undefined"!==typeof p){if(!d(p))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(z=
+arguments[2])}var G=Number(u.length);G=isNaN(G)?0:0!==G&&isFinite(G)?(0<G?1:-1)*Math.floor(Math.abs(G)):G;G=Math.min(Math.max(G,0),m);for(var U=d(this)?Object(new this(G)):Array(G),E=0,R;E<G;)R=u[E],U[E]=p?"undefined"===typeof z?p(R,E):p.call(z,R,E):R,E+=1;U.length=G;return U}}());mxConstants.SHADOW_OPACITY=.25;mxConstants.SHADOWCOLOR="#000000";mxConstants.VML_SHADOWCOLOR="#d0d0d0";mxCodec.allowlist="mxStylesheet Array mxGraphModel mxCell mxGeometry mxRectangle mxPoint mxChildChange mxRootChange mxTerminalChange mxValueChange mxStyleChange mxGeometryChange mxCollapseChange mxVisibleChange mxCellAttributeChange".split(" ");
mxGraph.prototype.pageBreakColor="#c0c0c0";mxGraph.prototype.pageScale=1;(function(){try{if(null!=navigator&&null!=navigator.language){var b=navigator.language.toLowerCase();mxGraph.prototype.pageFormat="en-us"===b||"en-ca"===b||"es-mx"===b?mxConstants.PAGE_FORMAT_LETTER_PORTRAIT:mxConstants.PAGE_FORMAT_A4_PORTRAIT}}catch(d){}})();mxText.prototype.baseSpacingTop=5;mxText.prototype.baseSpacingBottom=1;mxGraphModel.prototype.ignoreRelativeEdgeParent=!1;mxGraphView.prototype.gridImage="data:image/gif;base64,R0lGODlhCgAKAJEAAAAAAP///8zMzP///yH5BAEAAAMALAAAAAAKAAoAAAIJ1I6py+0Po2wFADs=";
mxGraphView.prototype.gridSteps=4;mxGraphView.prototype.minGridSize=4;mxGraphView.prototype.defaultGridColor="#d0d0d0";mxGraphView.prototype.defaultDarkGridColor="#424242";mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultGridColor;mxGraphView.prototype.unit=mxConstants.POINTS;mxGraphView.prototype.setUnit=function(b){this.unit!=b&&(this.unit=b,this.graph.refresh(),this.fireEvent(new mxEventObject("unitChanged","unit",b)))};mxSvgCanvas2D.prototype.foAltText="[Not supported by viewer]";
mxShape.prototype.getConstraints=function(b,d,m){return null};mxImageShape.prototype.getImageDataUri=function(){var b=String(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),this.clippedImage=b;b=this.clippedSvg}return b};
-(function(){var b=mxStencil.prototype.parseColor;mxStencil.prototype.parseColor=function(d,m,n,v,p){return"default"==v&&null!=p?"fillcolor"==n.nodeName?p.shapeBackgroundColor:p.shapeForegroundColor:b.apply(this,arguments)}})();(function(){var b=mxResources.get;mxResources.get=function(d,m,n){null==n&&(n=d);return b.apply(this,[d,m,n])}})();
-(function(){var b=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(d,m,n,v,p,z,G,U){var E=b.apply(this,arguments);if(null!=m){var R=E.getElementsByTagName("img");0<R.length&&(R[0].className="geButton")}return E}})();
-Graph=function(b,d,m,n,v,p){mxGraph.call(this,b,d,m,n);this.themes=v||this.defaultThemes;this.currentEdgeStyle=mxUtils.clone(this.defaultEdgeStyle);this.currentVertexStyle=mxUtils.clone(this.defaultVertexStyle);this.standalone=null!=p?p:!1;b=this.baseUrl;d=b.indexOf("//");this.domainPathUrl=this.domainUrl="";0<d&&(d=b.indexOf("/",d+2),0<d&&(this.domainUrl=b.substring(0,d)),d=b.lastIndexOf("/"),0<d&&(this.domainPathUrl=b.substring(0,d+1)));this.isHtmlLabel=function(l){l=this.getCurrentCellStyle(l);
+(function(){var b=mxStencil.prototype.parseColor;mxStencil.prototype.parseColor=function(d,m,n,u,p){return"default"==u&&null!=p?"fillcolor"==n.nodeName?p.shapeBackgroundColor:p.shapeForegroundColor:b.apply(this,arguments)}})();(function(){var b=mxResources.get;mxResources.get=function(d,m,n){null==n&&(n=d);return b.apply(this,[d,m,n])}})();
+(function(){var b=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(d,m,n,u,p,z,G,U){var E=b.apply(this,arguments);if(null!=m){var R=E.getElementsByTagName("img");0<R.length&&(R[0].className="geButton")}return E}})();
+Graph=function(b,d,m,n,u,p){mxGraph.call(this,b,d,m,n);this.themes=u||this.defaultThemes;this.currentEdgeStyle=mxUtils.clone(this.defaultEdgeStyle);this.currentVertexStyle=mxUtils.clone(this.defaultVertexStyle);this.standalone=null!=p?p:!1;b=this.baseUrl;d=b.indexOf("//");this.domainPathUrl=this.domainUrl="";0<d&&(d=b.indexOf("/",d+2),0<d&&(this.domainUrl=b.substring(0,d)),d=b.lastIndexOf("/"),0<d&&(this.domainPathUrl=b.substring(0,d+1)));this.isHtmlLabel=function(l){l=this.getCurrentCellStyle(l);
return null!=l?"1"==l.html||"wrap"==l[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var z=null,G=null,U=null,E=null,R=!1,N=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(l,x){if("mouseDown"==x.getProperty("eventName")&&this.isEnabled()){l=x.getProperty("event");var J=l.getState();x=this.view.scale;if(!mxEvent.isAltDown(l.getEvent())&&null!=J&&(N=this.isCellSelected(J.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(l.getEvent()))){var L=this.selectionCellsHandler.getHandler(J.cell);
if(null==L||null==L.getHandleForEvent(l)){var T=new mxRectangle(l.getGraphX()-1,l.getGraphY()-1),Y=mxEvent.isTouchEvent(l.getEvent())?mxShape.prototype.svgStrokeTolerance-1:(mxShape.prototype.svgStrokeTolerance+2)/2;L=Y+2;T.grow(Y);if(this.isTableCell(J.cell)&&this.isCellMovable(J.cell)&&!this.isCellSelected(J.cell)&&!(mxUtils.contains(J,l.getGraphX()-L,l.getGraphY()-L)&&mxUtils.contains(J,l.getGraphX()-L,l.getGraphY()+L)&&mxUtils.contains(J,l.getGraphX()+L,l.getGraphY()+L)&&mxUtils.contains(J,l.getGraphX()+
L,l.getGraphY()-L))){var aa=this.model.getParent(J.cell);L=this.model.getParent(aa);if(!this.isCellSelected(L)){Y*=x;var S=2*Y;if(this.model.getChildAt(L,0)!=aa&&mxUtils.intersects(T,new mxRectangle(J.x,J.y-Y,J.width,S))||this.model.getChildAt(aa,0)!=J.cell&&mxUtils.intersects(T,new mxRectangle(J.x-Y,J.y,S,J.height))||mxUtils.intersects(T,new mxRectangle(J.x,J.y+J.height-Y,J.width,S))||mxUtils.intersects(T,new mxRectangle(J.x+J.width-Y,J.y,S,J.height)))aa=this.selectionCellsHandler.isHandled(L),this.selectCellForEvent(L,
@@ -2388,24 +2388,24 @@ Graph.cellStyles=mxUtils.addItems(mxUtils.addItems(mxUtils.addItems("rounded sha
Graph.edgeStyles),Graph.cellStyleGroups);Graph.layoutNames="mxHierarchicalLayout mxCircleLayout mxCompactTreeLayout mxEdgeLabelLayout mxFastOrganicLayout mxParallelEdgeLayout mxPartitionLayout mxRadialTreeLayout mxStackLayout".split(" ");Graph.backupStyleAttribute="data-mx-given-colors";Graph.newColorPlaceholder="rgba(0, 0, 0, 0)";Graph.newBackgroundPlaceholder="rgb(0, 0, 0)";Graph.defaultAdaptiveColors=window.mxIsElectron||"0"==urlParams.contrast?"simple":"auto";
Graph.getDefaultAdaptiveColorsKey=function(){return"auto"==Graph.defaultAdaptiveColors?"automatic":Graph.defaultAdaptiveColors};
Graph.createOffscreenGraph=function(b){var d=new Graph(document.createElement("div"));d.stylesheet.styles=mxUtils.clone(b.styles);d.resetViewOnRootChange=!1;d.setConnectable(!1);d.gridEnabled=!1;d.autoScroll=!1;d.setTooltips(!1);d.setEnabled(!1);d.container.style.visibility="hidden";d.container.style.position="absolute";d.container.style.overflow="hidden";d.container.style.height="1px";d.container.style.width="1px";return d};
-Graph.createSvgImage=function(b,d,m,n,v){m=unescape(encodeURIComponent(Graph.svgDoctype+'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+b+'px" height="'+d+'px" '+(null!=n&&null!=v?'viewBox="0 0 '+n+" "+v+'" ':"")+'version="1.1" style="color-scheme: light dark;">'+m+"</svg>"));return new mxImage("data:image/svg+xml;base64,"+(window.btoa?btoa(m):Base64.encode(m,!0)),b,d)};
+Graph.createSvgImage=function(b,d,m,n,u){m=unescape(encodeURIComponent(Graph.svgDoctype+'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+b+'px" height="'+d+'px" '+(null!=n&&null!=u?'viewBox="0 0 '+n+" "+u+'" ':"")+'version="1.1" style="color-scheme: light dark;">'+m+"</svg>"));return new mxImage("data:image/svg+xml;base64,"+(window.btoa?btoa(m):Base64.encode(m,!0)),b,d)};
Graph.getSvgFromDataUri=function(b){return null!=b&&"data:image/svg"==b.substring(0,14)?Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+decodeURIComponent(escape(atob(b.substring(b.indexOf(",")+1)))):null};
-Graph.createSvgNode=function(b,d,m,n,v){var p=mxUtils.createXmlDocument(),z=null!=p.createElementNS?p.createElementNS(mxConstants.NS_SVG,"svg"):p.createElement("svg");null!=v&&z.setAttribute("style","background: "+v.light+"; background-color: "+v.cssText+";");null==p.createElementNS?(z.setAttribute("xmlns",mxConstants.NS_SVG),z.setAttribute("xmlns:xlink",mxConstants.NS_XLINK)):z.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",mxConstants.NS_XLINK);z.setAttribute("version","1.1");z.setAttribute("width",
+Graph.createSvgNode=function(b,d,m,n,u){var p=mxUtils.createXmlDocument(),z=null!=p.createElementNS?p.createElementNS(mxConstants.NS_SVG,"svg"):p.createElement("svg");null!=u&&z.setAttribute("style","background: "+u.light+"; background-color: "+u.cssText+";");null==p.createElementNS?(z.setAttribute("xmlns",mxConstants.NS_SVG),z.setAttribute("xmlns:xlink",mxConstants.NS_XLINK)):z.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",mxConstants.NS_XLINK);z.setAttribute("version","1.1");z.setAttribute("width",
m+"px");z.setAttribute("height",n+"px");z.setAttribute("viewBox",b+" "+d+" "+m+" "+n);p.appendChild(z);return z};
-Graph.htmlToPng=function(b,d,m,n,v,p){v=null!=v?v:"";p=null!=p?p:Editor.htmlRasterScale;var z=document.createElement("canvas");z.width=d*p;z.height=m*p;var G=document.createElement("img");G.onload=mxUtils.bind(this,function(){try{var E=z.getContext("2d");E.scale(p,p);E.drawImage(G,0,0);n(z.toDataURL())}catch(R){n(null)}});var U=mxUtils.createXmlDocument();U=null!=U.createElementNS?U.createElementNS(mxConstants.NS_SVG,"svg"):U.createElement("svg");b=(new mxSvgCanvas2D(U)).convertHtml(b);G.onerror=
-function(E){n(null)};G.src="data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="'+d+'" height="'+m+'">'+(""!=v?'<defs xmlns="http://www.w3.org/2000/svg"><style type="text/css">'+v+"</style></defs>":"")+'<foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml">'+b+"</div></foreignObject></svg>")};
-Graph.addLightDarkColors=function(b,d,m,n){function v(c,g,k){return null!=n?n(c,g,k):mxUtils.isValidColor(k)?(null==z&&null!=d&&(z={}),null!=z&&(z[g]=c.style.getPropertyValue(g)),k=mxUtils.getLightDarkColor(k,null,null,m),c.style.setProperty(g,k.cssText),!0):!1}for(var p=b.getElementsByTagName("*"),z=null,G=!1,U=0;U<p.length;U++)if(p[U]!=b&&null!=p[U].style){z=null;for(var E=0;E<p[U].style.length;E++){var R=p[U].style.item(E),N=p[U].style.getPropertyValue(R);G=v(p[U],R,N)||G}"FONT"==p[U].nodeName&&
-""==p[U].style.getPropertyValue("color")&&(N=p[U].getAttribute("color"),G=v(p[U],"color",N)||G);null!=d&&null!=z&&p[U].setAttribute(d,JSON.stringify(z))}return G};Graph.removeLightDarkColors=function(b,d){b=b.getElementsByTagName("*");for(var m=!1,n=0;n<b.length;n++)try{var v=b[n].getAttribute(d);if(null!=v){b[n].removeAttribute(d);var p=JSON.parse(v),z;for(z in p){var G=p[z];""==G?(b[n].style[z]=null,""==b[n].getAttribute("style")&&b[n].removeAttribute("style")):b[n].style[z]=G;m=!0}}}catch(U){}return m};
-Graph.getGivenColor=function(b,d){var m=null;if(b.nodeType==mxConstants.NODETYPE_ELEMENT){try{var n=b.getAttribute(Graph.backupStyleAttribute);if(null!=n){var v=JSON.parse(n);null!=v&&null!=v[d]&&("color"==d&&"FONT"==b.nodeName&&""==v[d]&&null!=b.getAttribute("color")?m=b.getAttribute("color"):""!=v[d]&&(m=v[d]))}}catch(p){}null==m&&""!=b.style[d]&&(m=b.style[d])}return m};
-Graph.setTextColor=function(b,d,m){for(var n=m?Graph.newColorPlaceholder:Graph.newBackgroundPlaceholder,v=m?"color":"background-color",p=b.getElementsByTagName("*"),z=[],G=0;G<p.length;G++)z.push({node:p[G],value:p[G].style[v]});document.execCommand(m?"forecolor":"backcolor",!1,n);b=b.getElementsByTagName("*");for(G=0;G<b.length;G++){if(G<z.length&&z[G].node==b[G]&&z[G].value!=b[G].style[v]&&""==b[G].style[v])try{if(p=b[G].getAttribute(Graph.backupStyleAttribute),null!=p){var U=JSON.parse(p);U[v]=
-"";b[G].setAttribute(Graph.backupStyleAttribute,JSON.stringify(U))}}catch(E){}if(m&&b[G].getAttribute("color")==n||b[G].style[v]==n){m&&b[G].getAttribute("color")==n&&b[G].removeAttribute("color");b[G].style[v]=d!=mxConstants.NONE?mxUtils.getLightDarkColor(d).cssText:null;try{p=b[G].getAttribute(Graph.backupStyleAttribute),U=null!=p?JSON.parse(p):{},U[v]=d!=mxConstants.NONE?d:"",b[G].setAttribute(Graph.backupStyleAttribute,JSON.stringify(U))}catch(E){}if(m&&mxClient.IS_FF){d=b[G];m=d.firstChild;if(null!=
-m&&"A"==m.nodeName&&null==m.nextSibling&&null!=m.firstChild){d.parentNode.insertBefore(m,d);for(n=m.firstChild;null!=n;)v=n.nextSibling,d.appendChild(n),n=v;m.appendChild(d)}break}}}};Graph.zapGremlins=function(b){return mxUtils.zapGremlins(b)};Graph.stringToBytes=function(b){for(var d=Array(b.length),m=0;m<b.length;m++)d[m]=b.charCodeAt(m);return d};Graph.bytesToString=function(b){for(var d=Array(b.length),m=0;m<b.length;m++)d[m]=String.fromCharCode(b[m]);return d.join("")};
+Graph.htmlToPng=function(b,d,m,n,u,p){u=null!=u?u:"";p=null!=p?p:Editor.htmlRasterScale;var z=document.createElement("canvas");z.width=d*p;z.height=m*p;var G=document.createElement("img");G.onload=mxUtils.bind(this,function(){try{var E=z.getContext("2d");E.scale(p,p);E.drawImage(G,0,0);n(z.toDataURL())}catch(R){n(null)}});var U=mxUtils.createXmlDocument();U=null!=U.createElementNS?U.createElementNS(mxConstants.NS_SVG,"svg"):U.createElement("svg");b=(new mxSvgCanvas2D(U)).convertHtml(b);G.onerror=
+function(E){n(null)};G.src="data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="'+d+'" height="'+m+'">'+(""!=u?'<defs xmlns="http://www.w3.org/2000/svg"><style type="text/css">'+u+"</style></defs>":"")+'<foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml">'+b+"</div></foreignObject></svg>")};
+Graph.addLightDarkColors=function(b,d,m,n){function u(c,g,k){return null!=n?n(c,g,k):mxUtils.isValidColor(k)?(null==z&&null!=d&&(z={}),null!=z&&(z[g]=c.style.getPropertyValue(g)),k=mxUtils.getLightDarkColor(k,null,null,m),c.style.setProperty(g,k.cssText),!0):!1}for(var p=b.getElementsByTagName("*"),z=null,G=!1,U=0;U<p.length;U++)if(p[U]!=b&&null!=p[U].style){z=null;for(var E=0;E<p[U].style.length;E++){var R=p[U].style.item(E),N=p[U].style.getPropertyValue(R);G=u(p[U],R,N)||G}"FONT"==p[U].nodeName&&
+""==p[U].style.getPropertyValue("color")&&(N=p[U].getAttribute("color"),G=u(p[U],"color",N)||G);null!=d&&null!=z&&p[U].setAttribute(d,JSON.stringify(z))}return G};Graph.removeLightDarkColors=function(b,d){b=b.getElementsByTagName("*");for(var m=!1,n=0;n<b.length;n++)try{var u=b[n].getAttribute(d);if(null!=u){b[n].removeAttribute(d);var p=JSON.parse(u),z;for(z in p){var G=p[z];""==G?(b[n].style[z]=null,""==b[n].getAttribute("style")&&b[n].removeAttribute("style")):b[n].style[z]=G;m=!0}}}catch(U){}return m};
+Graph.getGivenColor=function(b,d){var m=null;if(b.nodeType==mxConstants.NODETYPE_ELEMENT){try{var n=b.getAttribute(Graph.backupStyleAttribute);if(null!=n){var u=JSON.parse(n);null!=u&&null!=u[d]&&("color"==d&&"FONT"==b.nodeName&&""==u[d]&&null!=b.getAttribute("color")?m=b.getAttribute("color"):""!=u[d]&&(m=u[d]))}}catch(p){}null==m&&""!=b.style[d]&&(m=b.style[d])}return m};
+Graph.setTextColor=function(b,d,m){for(var n=m?Graph.newColorPlaceholder:Graph.newBackgroundPlaceholder,u=m?"color":"background-color",p=b.getElementsByTagName("*"),z=[],G=0;G<p.length;G++)z.push({node:p[G],value:p[G].style[u]});document.execCommand(m?"forecolor":"backcolor",!1,n);b=b.getElementsByTagName("*");for(G=0;G<b.length;G++){if(G<z.length&&z[G].node==b[G]&&z[G].value!=b[G].style[u]&&""==b[G].style[u])try{if(p=b[G].getAttribute(Graph.backupStyleAttribute),null!=p){var U=JSON.parse(p);U[u]=
+"";b[G].setAttribute(Graph.backupStyleAttribute,JSON.stringify(U))}}catch(E){}if(m&&b[G].getAttribute("color")==n||b[G].style[u]==n){m&&b[G].getAttribute("color")==n&&b[G].removeAttribute("color");b[G].style[u]=d!=mxConstants.NONE?mxUtils.getLightDarkColor(d).cssText:null;try{p=b[G].getAttribute(Graph.backupStyleAttribute),U=null!=p?JSON.parse(p):{},U[u]=d!=mxConstants.NONE?d:"",b[G].setAttribute(Graph.backupStyleAttribute,JSON.stringify(U))}catch(E){}if(m&&mxClient.IS_FF){d=b[G];m=d.firstChild;if(null!=
+m&&"A"==m.nodeName&&null==m.nextSibling&&null!=m.firstChild){d.parentNode.insertBefore(m,d);for(n=m.firstChild;null!=n;)u=n.nextSibling,d.appendChild(n),n=u;m.appendChild(d)}break}}}};Graph.zapGremlins=function(b){return mxUtils.zapGremlins(b)};Graph.stringToBytes=function(b){for(var d=Array(b.length),m=0;m<b.length;m++)d[m]=b.charCodeAt(m);return d};Graph.bytesToString=function(b){for(var d=Array(b.length),m=0;m<b.length;m++)d[m]=String.fromCharCode(b[m]);return d.join("")};
Graph.base64EncodeUnicode=function(b){return btoa(encodeURIComponent(b).replace(/%([0-9A-F]{2})/g,function(d,m){return String.fromCharCode(parseInt(m,16))}))};Graph.base64DecodeUnicode=function(b){return decodeURIComponent(Array.prototype.map.call(atob(b),function(d){return"%"+("00"+d.charCodeAt(0).toString(16)).slice(-2)}).join(""))};Graph.compressNode=function(b,d){b=mxUtils.getXml(b);return Graph.compress(d?b:Graph.zapGremlins(b))};
Graph.arrayBufferToString=function(b){var d="";b=new Uint8Array(b);for(var m=b.byteLength,n=0;n<m;n++)d+=String.fromCharCode(b[n]);return d};Graph.stringToArrayBuffer=function(b){return Uint8Array.from(b,function(d){return d.charCodeAt(0)})};
-Graph.arrayBufferIndexOfString=function(b,d,m){var n=d.charCodeAt(0),v=1,p=-1;for(m=m||0;m<b.byteLength;m++)if(b[m]==n){p=m;break}for(m=p+1;-1<p&&m<b.byteLength&&m<p+d.length-1;m++){if(b[m]!=d.charCodeAt(v))return Graph.arrayBufferIndexOfString(b,d,p+1);v++}return v==d.length-1?p:-1};Graph.compress=function(b,d){if(null==b||0==b.length||"undefined"===typeof pako)return b;b=d?pako.deflate(encodeURIComponent(b)):pako.deflateRaw(encodeURIComponent(b));return btoa(Graph.arrayBufferToString(new Uint8Array(b)))};
+Graph.arrayBufferIndexOfString=function(b,d,m){var n=d.charCodeAt(0),u=1,p=-1;for(m=m||0;m<b.byteLength;m++)if(b[m]==n){p=m;break}for(m=p+1;-1<p&&m<b.byteLength&&m<p+d.length-1;m++){if(b[m]!=d.charCodeAt(u))return Graph.arrayBufferIndexOfString(b,d,p+1);u++}return u==d.length-1?p:-1};Graph.compress=function(b,d){if(null==b||0==b.length||"undefined"===typeof pako)return b;b=d?pako.deflate(encodeURIComponent(b)):pako.deflateRaw(encodeURIComponent(b));return btoa(Graph.arrayBufferToString(new Uint8Array(b)))};
Graph.decompress=function(b,d,m){if(null==b||0==b.length||"undefined"===typeof pako)return b;b=Graph.stringToArrayBuffer(atob(b));d=decodeURIComponent(d?pako.inflate(b,{to:"string"}):pako.inflateRaw(b,{to:"string"}));return m?d:Graph.zapGremlins(d)};
-Graph.fadeNodes=function(b,d,m,n,v){v=null!=v?v:1E3;Graph.setTransitionForNodes(b,null);Graph.setOpacityForNodes(b,d);window.setTimeout(function(){Graph.setTransitionForNodes(b,"all "+v+"ms ease-in-out");Graph.setOpacityForNodes(b,m);window.setTimeout(function(){Graph.setTransitionForNodes(b,null);null!=n&&n()},v)},0)};
-Graph.exploreFromCell=function(b,d,m){pageSize=null!=m&&null!=m.pageSize?m.pageSize:8;minSize=null!=m&&null!=m.minSize?m.minSize:180;(function(n,v){function p(N){N.view.states.visit(function(c,g){null!=g.shape&&N.model.isEdge(N.model.getParent(g.cell))?g.shape.node.parentNode.appendChild(g.shape.node):null!=g.text&&N.model.isEdge(g.cell)&&g.text.node.parentNode.appendChild(g.text.node)})}function z(N,c){if(N.getModel().isVertex(c)){var g=N.container.offsetWidth/2,k=N.container.offsetHeight/2;N.rootCell=
+Graph.fadeNodes=function(b,d,m,n,u){u=null!=u?u:1E3;Graph.setTransitionForNodes(b,null);Graph.setOpacityForNodes(b,d);window.setTimeout(function(){Graph.setTransitionForNodes(b,"all "+u+"ms ease-in-out");Graph.setOpacityForNodes(b,m);window.setTimeout(function(){Graph.setTransitionForNodes(b,null);null!=n&&n()},u)},0)};
+Graph.exploreFromCell=function(b,d,m){pageSize=null!=m&&null!=m.pageSize?m.pageSize:8;minSize=null!=m&&null!=m.minSize?m.minSize:180;(function(n,u){function p(N){N.view.states.visit(function(c,g){null!=g.shape&&N.model.isEdge(N.model.getParent(g.cell))?g.shape.node.parentNode.appendChild(g.shape.node):null!=g.text&&N.model.isEdge(g.cell)&&g.text.node.parentNode.appendChild(g.text.node)})}function z(N,c){if(N.getModel().isVertex(c)){var g=N.container.offsetWidth/2,k=N.container.offsetHeight/2;N.rootCell=
c.referenceCell||c;N.getModel().beginUpdate();try{pageSize=null!=m&&null!=m.pageSize?m.pageSize:8+Math.max(0,Math.floor(Math.min(N.container.offsetWidth-800/120,N.container.offsetHeight-600)/30));for(var q=c.referenceCell||c,A=n.model.getCell(q.sourceCellId),D=n.getEdges(A,null,!0,!0,!1,!0),H=[],K=0;K<D.length;K++)null!=D[K].getTerminal(!0)&&null!=D[K].getTerminal(!1)&&n.isCellVisible(D[K])&&!n.isEdgeIgnored(D[K])&&n.isCellVisible(D[K].getTerminal(!0))&&n.isCellVisible(D[K].getTerminal(!1))&&n.isCellVisible(n.getLayerForCell(D[K]))&&
H.push(D[K]);H=D=H;if(null!=c.startIndex||0<pageSize&&D.length>pageSize){var P=c.startIndex||0;H=D.slice(Math.max(0,P),Math.min(D.length,P+pageSize))}H=n.getOpposites(H,A).concat(H);var W=N.cloneCells(H);for(K=0;K<H.length;K++)if(W[K].sourceCellId=H[K].id,N.model.isEdge(W[K]))for(W[K].geometry.x=0,W[K].geometry.y=0,W[K].geometry.points=null,W[K].setStyle(W[K].getStyle()+";curved=1;noEdgeStyle=1;entryX=none;entryY=none;exitX=none;exitY=none;labelBackgroundColor=#ffffffe0;textOpacity=100;"),W[K].setTerminal(q,
null==W[K].getTerminal(!0)),A=0;A<W[K].getChildCount();A++){var M=W[K].getChildAt(A);null!=M.geometry&&M.geometry.relative&&(M.setStyle(M.getStyle()+";labelBackgroundColor=#ffffffe0;textOpacity=100;"),M.geometry.offset=new mxPoint(0,0),M.geometry.y=0,M.geometry.x=.5>M.geometry.x?-.8:.5<M.geometry.x?.8:0)}if(0<c.startIndex){var ca=N.createVertex(null,null,mxResources.get("previousPage")+" ("+Math.ceil((c.startIndex||0)/pageSize)+"/"+Math.ceil(D.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");
@@ -2414,30 +2414,30 @@ ca.referenceCell=q;ca.startIndex=Math.max(0,(c.startIndex||0)-pageSize);W.splice
c.length,ba=2*Math.PI/pa,l=Math.max(minSize,Math.min(N.container.offsetWidth/2-40,N.container.offsetHeight/2-80));for(g=0;g<pa;g++)ka=N.getModel().getGeometry(c[g]),null!=ka&&(ka=ka.clone(),ka.x+=l*Math.sin(g*ba),ka.y+=l*Math.cos(g*ba),N.getModel().setGeometry(c[g],ka))}finally{N.getModel().endUpdate()}}}var G=document.createElement("div");G.style.position="absolute";G.style.display="block";G.style.overflow="auto";G.style.width="100%";G.style.height="100%";G.style.left="0px";G.style.top="0px";G.style.zIndex=
2;G.style.background=n.background==mxConstants.NONE||null==n.background?"light-dark(#ffffff,"+Editor.darkColor+")":n.background;var U=document.createElement("img");U.setAttribute("src",Editor.closeBlackImage);U.style.position="absolute";U.style.cursor="pointer";U.style.right="10px";U.style.top="10px";G.appendChild(U);var E=document.createElement("div");E.style.position="absolute";E.style.cursor="pointer";E.style.right="38px";E.style.top="14px";E.style.textAlign="right";E.style.verticalAlign="top";
mxUtils.write(E,mxResources.get("close"));G.appendChild(E);document.body.appendChild(G);var R=function(N){27==N.keyCode&&U.click()};mxEvent.addListener(document,"keydown",R);(function(N){var c=new Graph(N);c.keepEdgesInBackground=!0;c.isCellResizable=function(){return!1};c.isCellRotatable=function(){return!1};c.getCursorForCell=function(H){return this.model.isVertex(H)?"pointer":null};c.getFoldingImage=function(){return null};var g=function(){mxEvent.removeListener(document,"keydown",R);N.parentNode.removeChild(N);
-n.scrollCellToVisible(v)};mxEvent.addListener(U,"click",g);mxEvent.addListener(E,"click",g);c.setEnabled(!1);var k=c.click;c.click=function(H){var K=H.getCell(),P=null!=K?null!=K.referenceCell?K.referenceCell:K:null;null!=K&&0<c.getEdges(P).length?z(c,K):k.apply(this,arguments)};g=c.container.offsetWidth/2;var q=c.container.offsetHeight/3;c.model.beginUpdate();var A=c.importCells([v])[0];A.sourceCellId=v.id;A.geometry.x=g-A.geometry.width/2;A.geometry.y=q-A.geometry.height/2;c.model.endUpdate();var D=
+n.scrollCellToVisible(u)};mxEvent.addListener(U,"click",g);mxEvent.addListener(E,"click",g);c.setEnabled(!1);var k=c.click;c.click=function(H){var K=H.getCell(),P=null!=K?null!=K.referenceCell?K.referenceCell:K:null;null!=K&&0<c.getEdges(P).length?z(c,K):k.apply(this,arguments)};g=c.container.offsetWidth/2;var q=c.container.offsetHeight/3;c.model.beginUpdate();var A=c.importCells([u])[0];A.sourceCellId=u.id;A.geometry.x=g-A.geometry.width/2;A.geometry.y=q-A.geometry.height/2;c.model.endUpdate();var D=
!1;c.getModel().addListener(mxEvent.CHANGE,function(H,K){D||(H=K.getProperty("edit").changes,mxText.prototype.enableBoundingBox=!1,c.labelsVisible=!1,D=!0,mxEffects.animateChanges(c,H,function(){var P=new mxParallelEdgeLayout(c);P.spacing=60;var W=P.layout;P.layout=function(M){P.spacing=Math.min(60,Math.max(30,60-5*M.length));W.apply(this,arguments)};P.execute(c.getDefaultParent());mxText.prototype.enableBoundingBox=!0;c.labelsVisible=!0;c.tooltipHandler.hide();c.refresh();p(c);D=!1}))});z(c,A)})(G)})(b,
d)};Graph.removeKeys=function(b,d){for(var m in b)d(m)&&delete b[m]};Graph.setTransitionForNodes=function(b,d){for(var m=0;m<b.length;m++)mxUtils.setPrefixedStyle(b[m].style,"transition",d)};Graph.setOpacityForNodes=function(b,d){for(var m=0;m<b.length;m++)b[m].style.opacity=d};
Graph.removePasteFormatting=function(b,d){for(;null!=b;){null!=b.firstChild&&Graph.removePasteFormatting(b.firstChild,!0);var m=b.nextSibling;if(b.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=b.style){"#000000"==b.style.color&&(b.style.color="");if("SPAN"==b.nodeName&&"Apple-tab-span"==b.className){var n=Graph.createTabNode(4);b.parentNode.replaceChild(n,b);b=n}if("P"==b.nodeName&&"p1"==b.className){for(;null!=b.firstChild;)b.parentNode.insertBefore(b.firstChild,b);null!=m&&"P"==m.nodeName&&"p1"==
m.className&&b.parentNode.insertBefore(b.ownerDocument.createElement("br"),b);b.parentNode.removeChild(b)}!d&&null!=b.innerHTML&&0<=b.innerHTML.indexOf("\t")&&(n=Graph.createTabNode(4),b.innerHTML=b.innerHTML.replace(/\t/g,n.outerHTML))}b=m}};Graph.createTabNode=function(b){var d="\t";if(null!=b)for(d="";0<b;)d+=" ",b--;b=document.createElement("span");b.style.whiteSpace="pre";b.appendChild(document.createTextNode(d));return b};Graph.sanitizeHtml=function(b,d){return Graph.domPurify(b,!1)};
-Graph.stylesCompatible=function(b,d){var m=function(n){if(null==n)return"";n=n.split(";");for(var v=[],p=0;p<n.length;p++){var z=n[p].trim();if(0<z.length){var G=z.indexOf(":");if(0<G){var U=z.substring(0,G).trim().toLowerCase();z=z.substring(G+1).trim().toLowerCase();"initial"!=z&&"inherit"!=z&&"unset"!=z&&v.push(U+":"+z)}}}v.sort();return v.join(";")};return m(b)==m(d)};
+Graph.stylesCompatible=function(b,d){var m=function(n){if(null==n)return"";n=n.split(";");for(var u=[],p=0;p<n.length;p++){var z=n[p].trim();if(0<z.length){var G=z.indexOf(":");if(0<G){var U=z.substring(0,G).trim().toLowerCase();z=z.substring(G+1).trim().toLowerCase();"initial"!=z&&"inherit"!=z&&"unset"!=z&&u.push(U+":"+z)}}}u.sort();return u.join(";")};return m(b)==m(d)};
Graph.optimizeHtml=function(b){if(null==b||0==b.length)return b;var d=document.createElement("div");d.innerHTML=b;Graph.optimizeNode(d);return d.innerHTML};
Graph.optimizeNode=function(b){if(null!=b){for(var d=b.firstChild;null!=d;){var m=d.nextSibling;1==d.nodeType&&Graph.optimizeNode(d);d=m}for(d=b.firstChild;null!=d;){m=d.nextSibling;if(!(1!=d.nodeType||"FONT"!=d.nodeName||d.hasAttribute("color")||d.hasAttribute("face")||d.hasAttribute("size")||d.hasAttribute("style"))){for(;null!=d.firstChild;)b.insertBefore(d.firstChild,d);b.removeChild(d)}d=m}for(d=b.firstChild;null!=d;)if(m=d.nextSibling,1==d.nodeType&&null!=m&&1==m.nodeType&&"SPAN"==d.nodeName&&
"SPAN"==m.nodeName&&Graph.stylesCompatible(d.getAttribute("style"),m.getAttribute("style"))){for(;null!=m.firstChild;)d.appendChild(m.firstChild);m.parentNode.removeChild(m);d.normalize()}else d=m;for(d=b.firstChild;null!=d;){m=d.nextSibling;if(1==d.nodeType&&"SPAN"==d.nodeName){var n=d.getAttribute("style");if((null==n||0==n.trim().length)&&1>=d.attributes.length){for(;null!=d.firstChild;)b.insertBefore(d.firstChild,d);b.removeChild(d)}else if("SPAN"==b.nodeName&&Graph.stylesCompatible(n,b.getAttribute("style"))&&
1==d.attributes.length){for(;null!=d.firstChild;)b.insertBefore(d.firstChild,d);b.removeChild(d)}}d=m}b.normalize()}};Graph.sanitizeLink=function(b){if(null==b)return null;var d=document.createElement("a");d.setAttribute("href",b);Graph.sanitizeNode(d);return d.getAttribute("href")};Graph.sanitizeNode=function(b){return Graph.domPurify(b,!0)};
-Graph.isStyleAllowed=function(b){b=b.replace(/\\([0-9a-fA-F]{1,6})\s?/g,function(v,p){return String.fromCharCode(parseInt(p,16))}).replace(/\\(.)/g,"$1");for(var d=/url\s*\(\s*(['"]?)(.*?)\1\s*\)/gi,m;null!==(m=d.exec(b));){var n=m[2].trim();m=!/^([a-z][a-z0-9+.-]*:|\/\/)/i.test(n);n=n.toLowerCase().startsWith("data:");if(!m&&!n)return!1}return/@import/i.test(b)?!1:!0};
+Graph.isStyleAllowed=function(b){b=b.replace(/\\([0-9a-fA-F]{1,6})\s?/g,function(u,p){return String.fromCharCode(parseInt(p,16))}).replace(/\\(.)/g,"$1");for(var d=/url\s*\(\s*(['"]?)(.*?)\1\s*\)/gi,m;null!==(m=d.exec(b));){var n=m[2].trim();m=!/^([a-z][a-z0-9+.-]*:|\/\/)/i.test(n);n=n.toLowerCase().startsWith("data:");if(!m&&!n)return!1}return/@import/i.test(b)?!1:!0};
DOMPurify.addHook("afterSanitizeAttributes",function(b){"use"==b.nodeName&&(null!=b.getAttribute("xlink:href")&&!b.getAttribute("xlink:href").startsWith("#")||null!=b.getAttribute("href")&&!b.getAttribute("href").startsWith("#"))?b.remove():"style"==b.nodeName.toLowerCase()&&(Graph.isStyleAllowed(b.textContent)||b.remove())});DOMPurify.addHook("uponSanitizeAttribute",function(b,d){"style"!=d.attrName||Graph.isStyleAllowed(d.attrValue)||(d.keepAttr=!1)});
Graph.domPurify=function(b,d){window.DOM_PURIFY_CONFIG.IN_PLACE=d;return DOMPurify.sanitize(b,window.DOM_PURIFY_CONFIG)};
-Graph.clipSvgDataUri=function(b){if(null!=b&&"data:image/svg+xml;base64,"==b.substring(0,26))try{var d=document.createElement("div");d.style.position="absolute";d.style.visibility="hidden";var m=decodeURIComponent(escape(atob(b.substring(26)))),n=m.indexOf("<svg");if(0<=n){d.innerHTML=Graph.sanitizeHtml(m.substring(n));var v=d.getElementsByTagName("svg");if(0<v.length){document.body.appendChild(d);try{n=m=1;var p=v[0].getAttribute("width"),z=v[0].getAttribute("height");p=null!=p&&"%"!=p.charAt(p.length-
-1)?parseFloat(p):NaN;z=null!=z&&"%"!=z.charAt(z.length-1)?parseFloat(z):NaN;var G=v[0].getAttribute("viewBox");if(null!=G&&!isNaN(p)&&!isNaN(z)){var U=G.split(" ");4<=G.length&&(m=parseFloat(U[2])/p,n=parseFloat(U[3])/z)}var E=v[0].getBBox();if(0<E.width&&0<E.height){G=0;var R=v[0].querySelectorAll("[stroke-width]");for(U=0;U<R.length;U++)G=Math.max(G,parseFloat(R[U].getAttribute("stroke-width")));var N=new mxRectangle(E.x,E.y,E.width,E.height);N.grow(G/2);!isNaN(p)&&!isNaN(z)&&0>N.x&&0>N.y&&N.width>
-p&&N.height>z?d.getElementsByTagName("svg")[0].setAttribute("viewBox","0 0 "+p+" "+z):(d.getElementsByTagName("svg")[0].setAttribute("viewBox",N.x+" "+N.y+" "+N.width+" "+N.height),d.getElementsByTagName("svg")[0].setAttribute("width",N.width/m),d.getElementsByTagName("svg")[0].setAttribute("height",N.height/n))}}catch(c){}finally{document.body.removeChild(d)}b=Editor.createSvgDataUri(mxUtils.getXml(v[0]))}}}catch(c){}return b};
+Graph.clipSvgDataUri=function(b){if(null!=b&&"data:image/svg+xml;base64,"==b.substring(0,26))try{var d=document.createElement("div");d.style.position="absolute";d.style.visibility="hidden";var m=decodeURIComponent(escape(atob(b.substring(26)))),n=m.indexOf("<svg");if(0<=n){d.innerHTML=Graph.sanitizeHtml(m.substring(n));var u=d.getElementsByTagName("svg");if(0<u.length){document.body.appendChild(d);try{n=m=1;var p=u[0].getAttribute("width"),z=u[0].getAttribute("height");p=null!=p&&"%"!=p.charAt(p.length-
+1)?parseFloat(p):NaN;z=null!=z&&"%"!=z.charAt(z.length-1)?parseFloat(z):NaN;var G=u[0].getAttribute("viewBox");if(null!=G&&!isNaN(p)&&!isNaN(z)){var U=G.split(" ");4<=G.length&&(m=parseFloat(U[2])/p,n=parseFloat(U[3])/z)}var E=u[0].getBBox();if(0<E.width&&0<E.height){G=0;var R=u[0].querySelectorAll("[stroke-width]");for(U=0;U<R.length;U++)G=Math.max(G,parseFloat(R[U].getAttribute("stroke-width")));var N=new mxRectangle(E.x,E.y,E.width,E.height);N.grow(G/2);!isNaN(p)&&!isNaN(z)&&0>N.x&&0>N.y&&N.width>
+p&&N.height>z?d.getElementsByTagName("svg")[0].setAttribute("viewBox","0 0 "+p+" "+z):(d.getElementsByTagName("svg")[0].setAttribute("viewBox",N.x+" "+N.y+" "+N.width+" "+N.height),d.getElementsByTagName("svg")[0].setAttribute("width",N.width/m),d.getElementsByTagName("svg")[0].setAttribute("height",N.height/n))}}catch(c){}finally{document.body.removeChild(d)}b=Editor.createSvgDataUri(mxUtils.getXml(u[0]))}}}catch(c){}return b};
Graph.createRemoveIcon=function(b,d){var m=document.createElement("img");m.setAttribute("src",Dialog.prototype.clearImage);m.setAttribute("title",b);m.setAttribute("width","13");m.setAttribute("height","10");m.style.marginLeft="4px";m.style.marginBottom="-1px";m.style.cursor="pointer";mxEvent.addListener(m,"click",d);return m};Graph.isPageLink=function(b){return null!=b&&"data:page/id,"==b.substring(0,13)};
-Graph.rewritePageLinks=function(b,d){function m(v,p){var z=v.getAttribute(p);if(null!=z){Graph.isPageLink(z)&&(z="#"+z.substring(z.indexOf(":")+1));var G=p;d&&"xlink:href"==p&&(v.removeAttribute(p),G="href");v.setAttribute(G,z)}}b=b.getElementsByTagName("a");if(null!=b)for(var n=0;n<b.length;n++)m(b[n],"href"),m(b[n],"xlink:href")};Graph.isLink=function(b){return null!=b&&b.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g)};
+Graph.rewritePageLinks=function(b,d){function m(u,p){var z=u.getAttribute(p);if(null!=z){Graph.isPageLink(z)&&(z="#"+z.substring(z.indexOf(":")+1));var G=p;d&&"xlink:href"==p&&(u.removeAttribute(p),G="href");u.setAttribute(G,z)}}b=b.getElementsByTagName("a");if(null!=b)for(var n=0;n<b.length;n++)m(b[n],"href"),m(b[n],"xlink:href")};Graph.isLink=function(b){return null!=b&&b.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g)};
mxUtils.extend(Graph,mxGraph);Graph.prototype.minFitScale=null;Graph.prototype.maxFitScale=null;Graph.prototype.linkPolicy="frame"==urlParams.target?"blank":urlParams.target||"auto";Graph.prototype.linkTarget="frame"==urlParams.target?"_self":"_blank";Graph.prototype.defaultExportLinkTarget=null;Graph.prototype.linkRelation="nofollow noopener noreferrer";Graph.prototype.defaultScrollbars=!0;Graph.prototype.defaultPageVisible=!0;Graph.prototype.defaultGridEnabled="0"!=urlParams.grid;
Graph.prototype.defaultConnectionArrowsEnabled=!0;Graph.prototype.defaultConnectable=!0;Graph.prototype.defaultFoldingEnabled=!0;Graph.prototype.lightbox=!1;Graph.prototype.diagramBackgroundColor="#f0f0f0";Graph.prototype.enableDiagramBackground=!1;Graph.prototype.defaultPageBackgroundColor="1"==urlParams.embedInline?"transparent":"light-dark(#ffffff, "+Editor.darkColor+")";Graph.prototype.defaultPageBorderColor="light-dark(#ffffff, #000000)";Graph.prototype.shapeForegroundColor="light-dark(#000000, #ffffff)";
Graph.prototype.shapeBackgroundColor="light-dark(#ffffff, var("+Editor.darkColorVar+", "+Editor.darkColor+"))";Graph.prototype.scrollTileSize=new mxRectangle(0,0,400,400);Graph.prototype.transparentBackground=!0;Graph.prototype.selectParentAfterDelete=!1;Graph.prototype.defaultEdgeLength=80;Graph.prototype.immediateHandling=!0;Graph.prototype.connectionArrowsEnabled=!0;Graph.prototype.placeholderPattern=RegExp("%(date{.*}|[^%{}\"'=;]+)%","g");
Graph.prototype.absoluteUrlPattern=RegExp("^(?:[a-z]+:)?//","i");Graph.prototype.defaultThemeName="default";Graph.prototype.defaultThemes={};Graph.prototype.baseUrl=null!=urlParams.base?mxUtils.removeJavascriptProtocol(decodeURIComponent(urlParams.base)):(window!=window.top?document.referrer:document.location.toString()).split("#")[0];Graph.prototype.editAfterInsert=!1;Graph.prototype.builtInProperties=["label","tooltip","placeholders","placeholder"];Graph.prototype.standalone=!1;
Graph.prototype.enableFlowAnimation=!1;Graph.prototype.roundableShapes="label rectangle internalStorage corner parallelogram swimlane triangle trapezoid ext step tee process link rhombus offPageConnector loopLimit hexagon manualInput card curlyBracket singleArrow callout doubleArrow flexArrow umlLifeline".split(" ");Graph.prototype.vertexFontSize=null;Graph.prototype.edgeFontSize=null;Graph.prototype.adaptiveColors="auto";
-Graph.prototype.init=function(b){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(m,n){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var v=m.view.graph.tolerance,p=!0,z=null,G=mxUtils.bind(this,function(R){p=!0;z=new mxPoint(mxEvent.getClientX(R),mxEvent.getClientY(R))}),U=mxUtils.bind(this,function(R){p=p&&null!=z&&Math.abs(z.x-mxEvent.getClientX(R))<v&&Math.abs(z.y-mxEvent.getClientY(R))<v}),E=mxUtils.bind(this,function(R){if(p)for(var N=mxEvent.getSource(R);null!=
+Graph.prototype.init=function(b){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(m,n){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var u=m.view.graph.tolerance,p=!0,z=null,G=mxUtils.bind(this,function(R){p=!0;z=new mxPoint(mxEvent.getClientX(R),mxEvent.getClientY(R))}),U=mxUtils.bind(this,function(R){p=p&&null!=z&&Math.abs(z.x-mxEvent.getClientX(R))<u&&Math.abs(z.y-mxEvent.getClientY(R))<u}),E=mxUtils.bind(this,function(R){if(p)for(var N=mxEvent.getSource(R);null!=
N&&N!=n.node;){if("a"==N.nodeName.toLowerCase()){m.view.graph.labelLinkClicked(m,N,R);break}N=N.parentNode}});mxEvent.addGestureListeners(n.node,G,U,E);mxEvent.addListener(n.node,"click",function(R){mxEvent.consume(R)})};if(null!=this.tooltipHandler){var d=this.tooltipHandler.init;this.tooltipHandler.init=function(){d.apply(this,arguments);null!=this.div&&mxEvent.addListener(this.div,"click",mxUtils.bind(this,function(m){var n=mxEvent.getSource(m);"A"==n.nodeName&&(n=n.getAttribute("href"),null!=
n&&this.graph.isCustomLink(n)&&(mxEvent.isTouchEvent(m)||!mxEvent.isPopupTrigger(m))&&this.graph.customLinkClicked(n)&&mxEvent.consume(m))}))}}this.initLayoutManager()};
(function(){Graph.prototype.useCssTransforms=!1;Graph.prototype.currentScale=1;Graph.prototype.currentTranslate=new mxPoint(0,0);Graph.prototype.pasteEdgeStyle=!1;Graph.prototype.isFillState=function(z){var G=mxUtils.getValue(z.style,mxConstants.STYLE_SHAPE,null);return!this.isSpecialColor(z.style[mxConstants.STYLE_FILLCOLOR])&&"1"!=mxUtils.getValue(z.style,"lineShape",null)&&"mxgraph.basic.arc"!=G&&(this.model.isVertex(z.cell)||"arrow"==G||"pipe"==G||"wire"==G||"filledEdge"==G||"flexArrow"==G||"mxgraph.arrows2.wedgeArrow"==
@@ -2462,10 +2462,10 @@ function(z){z=this.strokeWidth;this.graph.useCssTransforms&&(z/=this.graph.curre
mxGraphView.prototype.validate=function(z){this.graph.useCssTransforms&&(this.graph.currentScale=this.scale,this.graph.currentTranslate.x=this.translate.x,this.graph.currentTranslate.y=this.translate.y,this.scale=1,this.translate.x=0,this.translate.y=0);d.apply(this,arguments);this.graph.useCssTransforms&&(this.graph.updateCssTransform(),this.scale=this.graph.currentScale,this.translate.x=this.graph.currentTranslate.x,this.translate.y=this.graph.currentTranslate.y)};var m=mxGraph.prototype.getCellsForGroup;
Graph.prototype.getCellsForGroup=function(z){z=m.apply(this,arguments);for(var G=[],U=0;U<z.length;U++)this.isTableRow(z[U])||this.isTableCell(z[U])||G.push(z[U]);return G};var n=mxGraph.prototype.getCellsForUngroup;Graph.prototype.getCellsForUngroup=function(z){z=n.apply(this,arguments);for(var G=[],U=0;U<z.length;U++)this.isTable(z[U])||this.isTableRow(z[U])||this.isTableCell(z[U])||G.push(z[U]);return G};Graph.prototype.updateCssTransform=function(){var z=this.view.getDrawPane();if(null!=z)if(z=
z.parentNode,this.useCssTransforms){var G=z.getAttribute("transform");z.setAttribute("transformOrigin","0 0");var U=Math.round(100*this.currentScale)/100;z.setAttribute("transform","scale("+U+","+U+")translate("+Math.round(100*this.currentTranslate.x)/100+","+Math.round(100*this.currentTranslate.y)/100+")");G!=z.getAttribute("transform")&&this.fireEvent(new mxEventObject("cssTransformChanged"),"transform",z.getAttribute("transform"))}else z.removeAttribute("transformOrigin"),z.removeAttribute("transform")};
-var v=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){var z=this.graph.useCssTransforms,G=this.scale,U=this.translate;z&&(this.scale=this.graph.currentScale,this.translate=this.graph.currentTranslate);v.apply(this,arguments);z&&(this.scale=G,this.translate=U)};var p=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(z,G,U){var E=this.useCssTransforms,R=this.view.scale,N=this.view.translate;E&&(this.view.scale=1,this.view.translate=
+var u=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){var z=this.graph.useCssTransforms,G=this.scale,U=this.translate;z&&(this.scale=this.graph.currentScale,this.translate=this.graph.currentTranslate);u.apply(this,arguments);z&&(this.scale=G,this.translate=U)};var p=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(z,G,U){var E=this.useCssTransforms,R=this.view.scale,N=this.view.translate;E&&(this.view.scale=1,this.view.translate=
new mxPoint(0,0),this.useCssTransforms=!1);p.apply(this,arguments);E&&(this.view.scale=R,this.view.translate=N,this.useCssTransforms=!0)}})();Graph.prototype.isLightboxView=function(){return this.lightbox};Graph.prototype.isViewer=function(){return!1};
Graph.prototype.labelLinkClicked=function(b,d,m){var n=d.getAttribute("href");n!=Graph.sanitizeLink(n)&&Graph.sanitizeNode(d);if(null!=n&&!this.isCustomLink(n)&&(mxEvent.isLeftMouseButton(m)&&!mxEvent.isPopupTrigger(m)||mxEvent.isTouchEvent(m))){if(!this.isEnabled()||this.isCellLocked(b.cell))b=this.isBlankLink(n)?this.linkTarget:"_top",this.openLink(this.getAbsoluteUrl(n),b);mxEvent.consume(m)}};
-Graph.prototype.openLink=function(b,d,m){var n=window;try{if(b=Graph.sanitizeLink(b),null!=b)if("_self"==d&&window!=window.top)window.location.href=b;else if(b.substring(0,this.baseUrl.length)!=this.baseUrl||"#"!=b.charAt(this.baseUrl.length)||"_top"!=d||window!=window.top||navigator.standalone)n=window.open(b,null!=d?d:"_blank",m?null:"noopener,noreferrer"),null==n||m||(n.opener=null);else{var v=b.split("#")[1];window.location.hash=="#"+v&&(window.location.hash="");window.location.hash=v}}catch(p){}return n};
+Graph.prototype.openLink=function(b,d,m){var n=window;try{if(b=Graph.sanitizeLink(b),null!=b)if("_self"==d&&window!=window.top)window.location.href=b;else if(b.substring(0,this.baseUrl.length)!=this.baseUrl||"#"!=b.charAt(this.baseUrl.length)||"_top"!=d||window!=window.top||navigator.standalone)n=window.open(b,null!=d?d:"_blank",m?null:"noopener,noreferrer"),null==n||m||(n.opener=null);else{var u=b.split("#")[1];window.location.hash=="#"+u&&(window.location.hash="");window.location.hash=u}}catch(p){}return n};
Graph.prototype.getLinkTitle=function(b){return b.substring(b.lastIndexOf("/")+1)};Graph.prototype.isCustomLink=function(b){return"data:"==b.substring(0,5)};Graph.prototype.customLinkClicked=function(b,d){return!1};Graph.prototype.isExternalProtocol=function(b){return"mailto:"===b.substring(0,7)};Graph.prototype.isBlankLink=function(b){return!this.isExternalProtocol(b)&&("blank"===this.linkPolicy||"self"!==this.linkPolicy&&!this.isRelativeUrl(b)&&b.substring(0,this.domainUrl.length)!==this.domainUrl)};
Graph.prototype.isRelativeUrl=function(b){return null!=b&&!this.absoluteUrlPattern.test(b)&&"data:"!==b.substring(0,5)&&!this.isExternalProtocol(b)};Graph.prototype.getAbsoluteUrl=function(b){null!=b&&this.isRelativeUrl(b)&&(b="#"==b.charAt(0)?this.baseUrl+b:"/"==b.charAt(0)?this.domainUrl+b:this.domainPathUrl+b);return b};
Graph.prototype.initLayoutManager=function(){this.layoutManager=new mxLayoutManager(this);this.layoutManager.hasLayout=function(b){return null!=this.graph.getCellStyle(b).childLayout};this.layoutManager.getLayout=function(b,d){var m=this.graph.model.getParent(b);if(!this.graph.isCellCollapsed(b)&&(d!=mxEvent.BEGIN_UPDATE||this.hasLayout(m,d))){b=this.graph.getCellStyle(b);if("stackLayout"==b.childLayout)return d=new mxStackLayout(this.graph,!0),d.resizeParentMax="1"==mxUtils.getValue(b,"resizeParentMax",
@@ -2474,16 +2474,20 @@ b.childLayout)return d=new mxCompactTreeLayout(this.graph),d.horizontal="1"==mxU
"flowOrientation",mxConstants.DIRECTION_EAST)),d.resizeParent="1"==mxUtils.getValue(b,"resizeParent","1"),d.parentBorder=mxUtils.getValue(b,"parentPadding",20),d.maintainParentLocation=!0,d.intraCellSpacing=mxUtils.getValue(b,"intraCellSpacing",mxHierarchicalLayout.prototype.intraCellSpacing),d.interRankCellSpacing=mxUtils.getValue(b,"interRankCellSpacing",mxHierarchicalLayout.prototype.interRankCellSpacing),d.interHierarchySpacing=mxUtils.getValue(b,"interHierarchySpacing",mxHierarchicalLayout.prototype.interHierarchySpacing),
d.parallelEdgeSpacing=mxUtils.getValue(b,"parallelEdgeSpacing",mxHierarchicalLayout.prototype.parallelEdgeSpacing),d;if("circleLayout"==b.childLayout)return new mxCircleLayout(this.graph);if("organicLayout"==b.childLayout)return new mxFastOrganicLayout(this.graph);if("tableLayout"==b.childLayout)return new TableLayout(this.graph);if(null!=b.childLayout&&"["==String(b.childLayout).charAt(0))try{return new mxCompositeLayout(this.graph,this.graph.createLayouts(JSON.parse(b.childLayout)))}catch(n){null!=
window.console&&console.error(n)}}return null}};
-Graph.prototype.createLayouts=function(b){for(var d=[],m=0;m<b.length;m++)if(0<=mxUtils.indexOf(Graph.layoutNames,b[m].layout)){var n="mxOrgChartLayout"==b[m].layout&&null!=b[m].config?new window[b[m].layout](this,b[m].config.branchOptimizer):new window[b[m].layout](this);if(null!=b[m].config)for(var v in b[m].config)if("mxOrgChartLayout"!=b[m].layout||"branchOptimizer"!=v)n[v]=b[m].config[v];d.push(n)}else throw Error(mxResources.get("invalidCallFnNotFound",[b[m].layout]));return d};
-Graph.prototype.getDataForCells=function(b,d){for(var m=[],n=0;n<b.length;n++){var v={};v.id=b[n].id;var p=null!=b[n].value?b[n].value.attributes:null;this.isReplacePlaceholders(b[n])&&d&&(v.value=this.getLabel(b[n]));if(null!=p)for(var z=0;z<p.length;z++)v[p[z].nodeName]=p[z].nodeValue;else v.label=this.convertValueToString(b[n]);m.push(v)}return m};
-Graph.prototype.getNodesForCells=function(b){for(var d=[],m=0;m<b.length;m++){var n=this.view.getState(b[m]);if(null!=n){for(var v=this.cellRenderer.getShapesForState(n),p=0;p<v.length;p++)null!=v[p]&&null!=v[p].node&&d.push(v[p].node);null!=n.control&&null!=n.control.node&&d.push(n.control.node)}}return d};
-Graph.prototype.createWipeAnimations=function(b,d){for(var m=[],n=0;n<b.length;n++){var v=this.view.getState(b[n]);null!=v&&null!=v.shape&&(this.model.isEdge(v.cell)&&null!=v.absolutePoints&&1<v.absolutePoints.length?m.push(this.createEdgeWipeAnimation(v,d)):this.model.isVertex(v.cell)&&null!=v.shape.bounds&&m.push(this.createVertexWipeAnimation(v,d)))}return m};
-Graph.prototype.createEdgeWipeAnimation=function(b,d){var m=b.absolutePoints.slice(),n=b.segments,v=b.length,p=m.length;return{execute:mxUtils.bind(this,function(z,G){if(null!=b.shape){var U=[m[0]];G=z/G;d||(G=1-G);for(var E=v*G,R=1;R<p;R++)if(E<=n[R-1]){U.push(new mxPoint(m[R-1].x+(m[R].x-m[R-1].x)*E/n[R-1],m[R-1].y+(m[R].y-m[R-1].y)*E/n[R-1]));break}else E-=n[R-1],U.push(m[R]);b.shape.points=U;b.shape.redraw();0==z&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1);null!=b.text&&null!=
+Graph.prototype.createLayouts=function(b){for(var d=[],m=0;m<b.length;m++)if(0<=mxUtils.indexOf(Graph.layoutNames,b[m].layout)){var n="mxOrgChartLayout"==b[m].layout&&null!=b[m].config?new window[b[m].layout](this,b[m].config.branchOptimizer):new window[b[m].layout](this);if(null!=b[m].config)for(var u in b[m].config)if("mxOrgChartLayout"!=b[m].layout||"branchOptimizer"!=u)n[u]=b[m].config[u];d.push(n)}else throw Error(mxResources.get("invalidCallFnNotFound",[b[m].layout]));return d};
+Graph.prototype.getDataForCells=function(b,d){for(var m=[],n=0;n<b.length;n++){var u={};u.id=b[n].id;var p=null!=b[n].value?b[n].value.attributes:null;this.isReplacePlaceholders(b[n])&&d&&(u.value=this.getLabel(b[n]));if(null!=p)for(var z=0;z<p.length;z++)u[p[z].nodeName]=p[z].nodeValue;else u.label=this.convertValueToString(b[n]);m.push(u)}return m};
+Graph.prototype.getNodesForCells=function(b){for(var d=[],m=0;m<b.length;m++){var n=this.view.getState(b[m]);if(null!=n){for(var u=this.cellRenderer.getShapesForState(n),p=0;p<u.length;p++)null!=u[p]&&null!=u[p].node&&d.push(u[p].node);null!=n.control&&null!=n.control.node&&d.push(n.control.node)}}return d};
+Graph.prototype.createWipeAnimations=function(b,d){for(var m=[],n=0;n<b.length;n++){var u=this.view.getState(b[n]);null!=u&&null!=u.shape&&(this.model.isEdge(u.cell)&&null!=u.absolutePoints&&1<u.absolutePoints.length?m.push(this.createEdgeWipeAnimation(u,d)):this.model.isVertex(u.cell)&&null!=u.shape.bounds&&m.push(this.createVertexWipeAnimation(u,d)))}return m};
+Graph.prototype.createEdgeWipeAnimation=function(b,d){var m=b.absolutePoints.slice(),n=b.segments,u=b.length,p=m.length;return{execute:mxUtils.bind(this,function(z,G){if(null!=b.shape){var U=[m[0]];G=z/G;d||(G=1-G);for(var E=u*G,R=1;R<p;R++)if(E<=n[R-1]){U.push(new mxPoint(m[R-1].x+(m[R].x-m[R-1].x)*E/n[R-1],m[R-1].y+(m[R].y-m[R-1].y)*E/n[R-1]));break}else E-=n[R-1],U.push(m[R]);b.shape.points=U;b.shape.redraw();0==z&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1);null!=b.text&&null!=
b.text.node&&(b.text.node.style.opacity=G)}}),stop:mxUtils.bind(this,function(){null!=b.shape&&(b.shape.points=m,b.shape.redraw(),null!=b.text&&null!=b.text.node&&(b.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),d?1:0))})}};
-Graph.prototype.createVertexWipeAnimation=function(b,d){var m=new mxRectangle.fromRectangle(b.shape.bounds);return{execute:mxUtils.bind(this,function(n,v){null!=b.shape&&(v=n/v,d||(v=1-v),b.shape.bounds=new mxRectangle(m.x,m.y,m.width*v,m.height),b.shape.redraw(),0==n&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1),null!=b.text&&null!=b.text.node&&(b.text.node.style.opacity=v))}),stop:mxUtils.bind(this,function(){null!=b.shape&&(b.shape.bounds=m,b.shape.redraw(),null!=b.text&&null!=b.text.node&&
-(b.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),d?1:0))})}};Graph.prototype.executeAnimations=function(b,d,m,n){m=null!=m?m:30;n=null!=n?n:30;var v=null,p=0,z=mxUtils.bind(this,function(){if(p==m||this.stoppingCustomActions){window.clearInterval(v);for(var G=0;G<b.length;G++)b[G].stop();null!=d&&d()}else for(G=0;G<b.length;G++)b[G].execute(p,m);p++});v=window.setInterval(z,n);z()};
-Graph.prototype.executeAnimationsStepped=function(b,d,m,n){d=null!=d?d:30;var v=0,p=mxUtils.bind(this,function(){if(v<=d){for(var z=0;z<b.length;z++)b[z].execute(v,d);m(v,d,function(){v++;p()})}else{for(z=0;z<b.length;z++)b[z].stop();null!=n&&n()}});p()};Graph.prototype.getPageSize=function(){return this.pageVisible&&null!=this.pageFormat?new mxRectangle(0,0,this.pageFormat.width*this.pageScale,this.pageFormat.height*this.pageScale):this.scrollTileSize};
-Graph.prototype.getPageLayout=function(b,d,m){b=null!=b?b:this.getGraphBounds();d=null!=d?d:this.view.translate;m=null!=m?m:this.view.scale;var n=this.getPageSize();if(0==b.width||0==b.height)return new mxRectangle(0,0,1,1);var v=Math.floor(Math.ceil(b.x/m-d.x)/n.width),p=Math.floor(Math.ceil(b.y/m-d.y)/n.height);return new mxRectangle(v,p,Math.ceil((Math.floor((b.x+b.width)/m)-d.x)/n.width)-v,Math.ceil((Math.floor((b.y+b.height)/m)-d.y)/n.height)-p)};
+Graph.prototype.createVertexWipeAnimation=function(b,d){var m=new mxRectangle.fromRectangle(b.shape.bounds);return{execute:mxUtils.bind(this,function(n,u){null!=b.shape&&(u=n/u,d||(u=1-u),b.shape.bounds=new mxRectangle(m.x,m.y,m.width*u,m.height),b.shape.redraw(),0==n&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1),null!=b.text&&null!=b.text.node&&(b.text.node.style.opacity=u))}),stop:mxUtils.bind(this,function(){null!=b.shape&&(b.shape.bounds=m,b.shape.redraw(),null!=b.text&&null!=b.text.node&&
+(b.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),d?1:0))})}};
+Graph.prototype.createVertexPopAnimation=function(b,d){var m=new mxRectangle.fromRectangle(b.shape.bounds),n=m.getCenterX(),u=m.getCenterY();return{execute:mxUtils.bind(this,function(p,z){if(null!=b.shape){z=p/z;d||(z=1-z);var G=1-Math.exp(-5*z)*Math.cos(5*Math.PI*z);b.shape.bounds=new mxRectangle(n-m.width*G/2,u-m.height*G/2,m.width*G,m.height*G);b.shape.redraw();0==p&&Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),1);null!=b.text&&null!=b.text.node&&(b.text.node.style.opacity=Math.min(1,
+3*z))}}),stop:mxUtils.bind(this,function(){null!=b.shape&&(b.shape.bounds=m,b.shape.redraw(),null!=b.text&&null!=b.text.node&&(b.text.node.style.opacity=""),Graph.setOpacityForNodes(this.getNodesForCells([b.cell]),d?1:0))})}};
+Graph.prototype.createPopAnimations=function(b,d){for(var m=[],n=0;n<b.length;n++){var u=this.view.getState(b[n]);null!=u&&null!=u.shape&&(this.model.isEdge(u.cell)&&null!=u.absolutePoints&&1<u.absolutePoints.length?m.push(this.createEdgeWipeAnimation(u,d)):this.model.isVertex(u.cell)&&null!=u.shape.bounds&&m.push(this.createVertexPopAnimation(u,d)))}return m};
+Graph.prototype.executeAnimations=function(b,d,m,n){m=null!=m?m:30;n=null!=n?n:30;var u=null,p=0,z=mxUtils.bind(this,function(){if(p==m||this.stoppingCustomActions){window.clearInterval(u);for(var G=0;G<b.length;G++)b[G].stop();null!=d&&d()}else for(G=0;G<b.length;G++)b[G].execute(p,m);p++});u=window.setInterval(z,n);z()};
+Graph.prototype.executeAnimationsStepped=function(b,d,m,n){d=null!=d?d:30;var u=0,p=mxUtils.bind(this,function(){if(u<=d){for(var z=0;z<b.length;z++)b[z].execute(u,d);m(u,d,function(){u++;p()})}else{for(z=0;z<b.length;z++)b[z].stop();null!=n&&n()}});p()};Graph.prototype.getPageSize=function(){return this.pageVisible&&null!=this.pageFormat?new mxRectangle(0,0,this.pageFormat.width*this.pageScale,this.pageFormat.height*this.pageScale):this.scrollTileSize};
+Graph.prototype.getPageLayout=function(b,d,m){b=null!=b?b:this.getGraphBounds();d=null!=d?d:this.view.translate;m=null!=m?m:this.view.scale;var n=this.getPageSize();if(0==b.width||0==b.height)return new mxRectangle(0,0,1,1);var u=Math.floor(Math.ceil(b.x/m-d.x)/n.width),p=Math.floor(Math.ceil(b.y/m-d.y)/n.height);return new mxRectangle(u,p,Math.ceil((Math.floor((b.x+b.width)/m)-d.x)/n.width)-u,Math.ceil((Math.floor((b.y+b.height)/m)-d.y)/n.height)-p)};
Graph.prototype.getDefaultTranslate=function(b){var d=this.getPagePadding(),m=this.getPageSize();return new mxPoint(d.x-b.x*m.width,d.y-b.y*m.height)};Graph.prototype.updateMinimumSize=function(){var b=this.getPageLayout(),d=this.getPagePadding(),m=this.getPageSize(),n=Math.ceil(2*d.x+b.width*m.width);b=Math.ceil(2*d.y+b.height*m.height);if(null==this.minimumGraphSize||this.minimumGraphSize.width!=n||this.minimumGraphSize.height!=b)this.minimumGraphSize=new mxRectangle(0,0,n,b)};
Graph.prototype.sanitizeHtml=function(b,d){return Graph.sanitizeHtml(b,d)};Graph.prototype.updatePlaceholders=function(){var b=!1,d;for(d in this.model.cells){var m=this.model.cells[d];this.isReplacePlaceholders(m)&&(this.view.invalidate(m,!1,!1),b=!0)}b&&this.view.validate()};Graph.prototype.isReplacePlaceholders=function(b){return null!=b.value&&"object"==typeof b.value&&"1"==b.value.getAttribute("placeholders")};
Graph.prototype.isZoomWheelEvent=function(b){return Graph.zoomWheel&&!mxEvent.isShiftDown(b)&&!mxEvent.isMetaDown(b)&&!mxEvent.isAltDown(b)&&(!mxEvent.isControlDown(b)||mxClient.IS_MAC)||!Graph.zoomWheel&&(mxEvent.isAltDown(b)||mxEvent.isControlDown(b))};Graph.prototype.isScrollWheelEvent=function(b){return!this.isZoomWheelEvent(b)};Graph.prototype.isTransparentClickEvent=function(b){return mxEvent.isAltDown(b)||mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(b)};
@@ -2492,34 +2496,34 @@ Graph.prototype.isSplitTarget=function(b,d,m){return!this.model.isEdge(d[0])&&!m
Graph.prototype.isLabelMovable=function(b){var d=this.getCurrentCellStyle(b);return!this.isCellLocked(b)&&(this.model.isEdge(b)&&this.edgeLabelsMovable||this.model.isVertex(b)&&(this.vertexLabelsMovable||"1"==mxUtils.getValue(d,"labelMovable","0")))};Graph.prototype.setGridSize=function(b){this.gridSize=b;this.fireEvent(new mxEventObject("gridSizeChanged"))};Graph.prototype.setDefaultParent=function(b){this.defaultParent=b;this.fireEvent(new mxEventObject("defaultParentChanged"))};
Graph.prototype.getClickableLinkForCell=function(b){do{var d=this.getLinkForCell(b);if(null!=d)return d;b=this.model.getParent(b)}while(null!=b);return null};Graph.prototype.getGlobalVariable=function(b){var d=null;"date"==b?d=(new Date).toLocaleDateString():"time"==b?d=(new Date).toLocaleTimeString():"timestamp"==b?d=(new Date).toLocaleString():"date{"==b.substring(0,5)&&(b=b.substring(5,b.length-1),d=this.formatDate(new Date,b));return d};
Graph.prototype.formatDate=function(b,d,m){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 n=this.dateFormatCache,v=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,p=/[^-+\dA-Z]/g,z=function(D,H){D=String(D);for(H=H||2;D.length<H;)D="0"+D;return D};1!=arguments.length||"[object String]"!=Object.prototype.toString.call(b)||
+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 n=this.dateFormatCache,u=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,p=/[^-+\dA-Z]/g,z=function(D,H){D=String(D);for(H=H||2;D.length<H;)D="0"+D;return D};1!=arguments.length||"[object String]"!=Object.prototype.toString.call(b)||
/\d/.test(b)||(d=b,b=void 0);b=b?new Date(b):new Date;if(isNaN(b))throw SyntaxError("invalid date");d=String(n.masks[d]||d||n.masks["default"]);"UTC:"==d.slice(0,4)&&(d=d.slice(4),m=!0);var G=m?"getUTC":"get",U=b[G+"Date"](),E=b[G+"Day"](),R=b[G+"Month"](),N=b[G+"FullYear"](),c=b[G+"Hours"](),g=b[G+"Minutes"](),k=b[G+"Seconds"]();G=b[G+"Milliseconds"]();var q=m?0:b.getTimezoneOffset(),A={d:U,dd:z(U),ddd:n.i18n.dayNames[E],dddd:n.i18n.dayNames[E+7],m:R+1,mm:z(R+1),mmm:n.i18n.monthNames[R],mmmm:n.i18n.monthNames[R+
-12],yy:String(N).slice(2),yyyy:N,h:c%12||12,hh:z(c%12||12),H:c,HH:z(c),M:g,MM:z(g),s:k,ss:z(k),l:z(G,3),L:z(99<G?Math.round(G/10):G),t:12>c?"a":"p",tt:12>c?"am":"pm",T:12>c?"A":"P",TT:12>c?"AM":"PM",Z:m?"UTC":(String(b).match(v)||[""]).pop().replace(p,""),o:(0<q?"-":"+")+z(100*Math.floor(Math.abs(q)/60)+Math.abs(q)%60,4),S:["th","st","nd","rd"][3<U%10?0:(10!=U%100-U%10)*U%10]};return d.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(D){return D in A?A[D]:D.slice(1,
+12],yy:String(N).slice(2),yyyy:N,h:c%12||12,hh:z(c%12||12),H:c,HH:z(c),M:g,MM:z(g),s:k,ss:z(k),l:z(G,3),L:z(99<G?Math.round(G/10):G),t:12>c?"a":"p",tt:12>c?"am":"pm",T:12>c?"A":"P",TT:12>c?"AM":"PM",Z:m?"UTC":(String(b).match(u)||[""]).pop().replace(p,""),o:(0<q?"-":"+")+z(100*Math.floor(Math.abs(q)/60)+Math.abs(q)%60,4),S:["th","st","nd","rd"][3<U%10?0:(10!=U%100-U%10)*U%10]};return d.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(D){return D in A?A[D]:D.slice(1,
D.length-1)})};Graph.prototype.getLayerForCell=function(b){for(;null!=b&&!this.model.isLayer(b);)b=this.model.getParent(b);return b};Graph.prototype.getLayerForCells=function(b){var d=null;if(0<b.length){d=this.getLayerForCell(b[0]);for(var m=1;m<b.length;m++)if(!this.model.isAncestor(d,b[m])){d=null;break}}return d};
-Graph.prototype.createLayersDialog=function(b,d){var m=document.createElement("div");m.style.position="absolute";for(var n=this.getModel(),v=n.getChildCount(n.root),p=0;p<v;p++)mxUtils.bind(this,function(z){function G(){n.isVisible(z)?(R.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(E,75)):(R.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(E,25))}var U=this.convertValueToString(z)||mxResources.get("background")||"Background",E=document.createElement("div");E.style.overflow=
+Graph.prototype.createLayersDialog=function(b,d){var m=document.createElement("div");m.style.position="absolute";for(var n=this.getModel(),u=n.getChildCount(n.root),p=0;p<u;p++)mxUtils.bind(this,function(z){function G(){n.isVisible(z)?(R.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(E,75)):(R.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(E,25))}var U=this.convertValueToString(z)||mxResources.get("background")||"Background",E=document.createElement("div");E.style.overflow=
"hidden";E.style.textOverflow="ellipsis";E.style.padding="2px";E.style.whiteSpace="nowrap";E.style.cursor="pointer";E.setAttribute("title",mxResources.get(n.isVisible(z)?"hideIt":"show",[U]));var R=document.createElement("img");R.setAttribute("draggable","false");R.setAttribute("align","absmiddle");R.setAttribute("border","0");R.style.position="relative";R.style.width="16px";R.style.padding="0px 6px 0 4px";d&&(R.style.filter="invert(100%)",R.style.top="-2px");E.appendChild(R);mxUtils.write(E,U);m.appendChild(E);
mxEvent.addListener(E,"click",function(){n.setVisible(z,!n.isVisible(z));G();null!=b&&b(z)});G()})(n.getChildAt(n.root,p));return m};
-Graph.prototype.replacePlaceholders=function(b,d,m,n){n=[];if(null!=d){for(var v,p=0;v=this.placeholderPattern.exec(d);){var z=v[0];if(2<z.length&&"%label%"!=z&&"%tooltip%"!=z){var G=null;if(v.index>p&&"%"==d.charAt(v.index-1))G=z.substring(1);else{var U=z.substring(1,z.length-1),E={mm:mxConstants.MILLIMETERS,"in":mxConstants.INCHES,m:mxConstants.METERS,current:this.view.unit};if("id"==U)G=b.id;else if("width"===U.substring(0,5)&&this.model.isVertex(b)){var R=this.getCellGeometry(b);null!=R&&(G=R.width,
+Graph.prototype.replacePlaceholders=function(b,d,m,n){n=[];if(null!=d){for(var u,p=0;u=this.placeholderPattern.exec(d);){var z=u[0];if(2<z.length&&"%label%"!=z&&"%tooltip%"!=z){var G=null;if(u.index>p&&"%"==d.charAt(u.index-1))G=z.substring(1);else{var U=z.substring(1,z.length-1),E={mm:mxConstants.MILLIMETERS,"in":mxConstants.INCHES,m:mxConstants.METERS,current:this.view.unit};if("id"==U)G=b.id;else if("width"===U.substring(0,5)&&this.model.isVertex(b)){var R=this.getCellGeometry(b);null!=R&&(G=R.width,
5<U.length&&(G=Editor.toUnit(G,E[U.substring(6)])))}else if("height"==U.substring(0,6)&&this.model.isVertex(b))R=this.getCellGeometry(b),null!=R&&(G=R.height,6<U.length&&(G=Editor.toUnit(G,E[U.substring(7)])));else if("length"==U.substring(0,6)){for(R=b;null!=R&&!this.model.isEdge(R);)R=this.model.getParent(R);R=this.view.getState(R);null!=R&&(G=Math.round(R.length/this.view.scale),6<U.length&&(G=Editor.toUnit(G,E[U.substring(7)])))}else if(0>U.indexOf("{"))for(E=b;null==G&&null!=E;)null!=E.value&&
"object"==typeof E.value&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(G=E.getAttribute(U+"_"+Graph.diagramLanguage)),null==G&&(G=E.hasAttribute(U)?null!=E.getAttribute(U)?E.getAttribute(U):"":null)),E=this.model.getParent(E);null==G&&("pagecount"==U.substring(0,9)&&9<U.length||"pagenumber"==U.substring(0,10)&&10<U.length?(E=U.match(/(pagecount|pagenumber)[\s]*([+-])[\s]*(\d+)/),null!=E&&(G=this.getGlobalVariable(E[1]),3<E.length&&(R=parseInt(E[3]),G+="+"==E[2]?R:-R))):G=this.getGlobalVariable(U));
-null==G&&null!=m&&(G=m[U])}n.push(d.substring(p,v.index)+(null!=G?G:z));p=v.index+z.length}}n.push(d.substring(p))}return n.join("")};Graph.prototype.restoreSelection=function(b){if(null!=b&&0<b.length){for(var d=[],m=0;m<b.length;m++){var n=this.model.getCell(b[m].id);null!=n&&d.push(n)}this.setSelectionCells(d)}else this.clearSelection()};
+null==G&&null!=m&&(G=m[U])}n.push(d.substring(p,u.index)+(null!=G?G:z));p=u.index+z.length}}n.push(d.substring(p))}return n.join("")};Graph.prototype.restoreSelection=function(b){if(null!=b&&0<b.length){for(var d=[],m=0;m<b.length;m++){var n=this.model.getCell(b[m].id);null!=n&&d.push(n)}this.setSelectionCells(d)}else this.clearSelection()};
Graph.prototype.selectCellForEvent=function(b,d){mxEvent.isShiftDown(d)&&!this.isSelectionEmpty()&&this.selectTableRange(this.getSelectionCell(),b)||mxGraph.prototype.selectCellForEvent.apply(this,arguments)};
-Graph.prototype.selectTableRange=function(b,d){var m=!1;if(this.isTableCell(b)&&this.isTableCell(d)){var n=this.model.getParent(b),v=this.model.getParent(n),p=this.model.getParent(d);if(v==this.model.getParent(p)){b=n.getIndex(b);n=v.getIndex(n);var z=p.getIndex(d),G=v.getIndex(p);p=Math.max(n,G);d=Math.min(b,z);b=Math.max(b,z);z=[];for(n=Math.min(n,G);n<=p;n++){G=this.model.getChildAt(v,n);for(var U=d;U<=b;U++)z.push(this.model.getChildAt(G,U))}0<z.length&&(1<z.length||1<this.getSelectionCount()||
+Graph.prototype.selectTableRange=function(b,d){var m=!1;if(this.isTableCell(b)&&this.isTableCell(d)){var n=this.model.getParent(b),u=this.model.getParent(n),p=this.model.getParent(d);if(u==this.model.getParent(p)){b=n.getIndex(b);n=u.getIndex(n);var z=p.getIndex(d),G=u.getIndex(p);p=Math.max(n,G);d=Math.min(b,z);b=Math.max(b,z);z=[];for(n=Math.min(n,G);n<=p;n++){G=this.model.getChildAt(u,n);for(var U=d;U<=b;U++)z.push(this.model.getChildAt(G,U))}0<z.length&&(1<z.length||1<this.getSelectionCount()||
!this.isCellSelected(z[0]))&&(this.setSelectionCells(z),m=!0)}}return m};
-Graph.prototype.snapCellsToGrid=function(b,d){this.getModel().beginUpdate();try{for(var m=0;m<b.length;m++){var n=b[m],v=this.getCellGeometry(n);if(null!=v){v=v.clone();if(this.getModel().isVertex(n))v.x=Math.round(v.x/d)*d,v.y=Math.round(v.y/d)*d,v.width=Math.round(v.width/d)*d,v.height=Math.round(v.height/d)*d;else if(this.getModel().isEdge(n)&&null!=v.points)for(var p=0;p<v.points.length;p++)v.points[p].x=Math.round(v.points[p].x/d)*d,v.points[p].y=Math.round(v.points[p].y/d)*d;this.getModel().setGeometry(n,
-v)}}}finally{this.getModel().endUpdate()}};Graph.prototype.removeChildCells=function(b){this.model.beginUpdate();try{for(var d=this.model.getChildCount(b);0<=d;d--)this.model.remove(this.model.getChildAt(b,d))}finally{this.model.endUpdate()}};
-Graph.prototype.updateShapes=function(b,d,m){this.model.beginUpdate();try{var n=this.model.getStyle(b),v=m?this.stylesheet.getCellStyle(n,{},!1):null;null!=v&&null==v[mxConstants.STYLE_SHAPE]&&(this.model.isVertex(b)?v[mxConstants.STYLE_SHAPE]=this.stylesheet.getDefaultVertexStyle()[mxConstants.STYLE_SHAPE]:this.model.isEdge(b)&&(v[mxConstants.STYLE_SHAPE]=this.stylesheet.getDefaultEdgeStyle()[mxConstants.STYLE_SHAPE]));for(var p=0;p<d.length;p++){if(this.model.isVertex(b)&&this.model.isVertex(d[p])||
-this.model.isEdge(b)&&this.model.isEdge(d[p]))if(m){var z=this.model.getStyle(d[p]);if(null!=z){var G=z.split(";");0<G.length&&0>G[0].indexOf("=")&&(G=G.slice(1));this.model.setStyle(d[p],G.join(";"))}this.setCellStyles(mxConstants.STYLE_PERIMETER,null,[d[p]]);this.setCellStyles("points",null,[d[p]]);this.pasteStyle(v,[d[p]],null,!0)}else v=this.copyStyle(d[p]),this.model.setStyle(d[p],n),this.pasteStyle(v,[d[p]]);"1"==mxUtils.getValue(this.getCellStyle(d[p],!1),"composite","0")&&this.removeChildCells(d[p])}}finally{this.model.endUpdate()}};
+Graph.prototype.snapCellsToGrid=function(b,d){this.getModel().beginUpdate();try{for(var m=0;m<b.length;m++){var n=b[m],u=this.getCellGeometry(n);if(null!=u){u=u.clone();if(this.getModel().isVertex(n))u.x=Math.round(u.x/d)*d,u.y=Math.round(u.y/d)*d,u.width=Math.round(u.width/d)*d,u.height=Math.round(u.height/d)*d;else if(this.getModel().isEdge(n)&&null!=u.points)for(var p=0;p<u.points.length;p++)u.points[p].x=Math.round(u.points[p].x/d)*d,u.points[p].y=Math.round(u.points[p].y/d)*d;this.getModel().setGeometry(n,
+u)}}}finally{this.getModel().endUpdate()}};Graph.prototype.removeChildCells=function(b){this.model.beginUpdate();try{for(var d=this.model.getChildCount(b);0<=d;d--)this.model.remove(this.model.getChildAt(b,d))}finally{this.model.endUpdate()}};
+Graph.prototype.updateShapes=function(b,d,m){this.model.beginUpdate();try{var n=this.model.getStyle(b),u=m?this.stylesheet.getCellStyle(n,{},!1):null;null!=u&&null==u[mxConstants.STYLE_SHAPE]&&(this.model.isVertex(b)?u[mxConstants.STYLE_SHAPE]=this.stylesheet.getDefaultVertexStyle()[mxConstants.STYLE_SHAPE]:this.model.isEdge(b)&&(u[mxConstants.STYLE_SHAPE]=this.stylesheet.getDefaultEdgeStyle()[mxConstants.STYLE_SHAPE]));for(var p=0;p<d.length;p++){if(this.model.isVertex(b)&&this.model.isVertex(d[p])||
+this.model.isEdge(b)&&this.model.isEdge(d[p]))if(m){var z=this.model.getStyle(d[p]);if(null!=z){var G=z.split(";");0<G.length&&0>G[0].indexOf("=")&&(G=G.slice(1));this.model.setStyle(d[p],G.join(";"))}this.setCellStyles(mxConstants.STYLE_PERIMETER,null,[d[p]]);this.setCellStyles("points",null,[d[p]]);this.pasteStyle(u,[d[p]],null,!0)}else u=this.copyStyle(d[p]),this.model.setStyle(d[p],n),this.pasteStyle(u,[d[p]]);"1"==mxUtils.getValue(this.getCellStyle(d[p],!1),"composite","0")&&this.removeChildCells(d[p])}}finally{this.model.endUpdate()}};
Graph.prototype.selectCellsForConnectVertex=function(b,d,m){2==b.length&&this.model.isVertex(b[1])?(this.setSelectionCell(b[1]),this.scrollCellToVisible(b[1]),null!=m&&(mxEvent.isTouchEvent(d)?m.update(m.getState(this.view.getState(b[1]))):m.reset())):this.setSelectionCells(b)};Graph.prototype.isCloneConnectSource=function(b){var d=null;null!=this.layoutManager&&(d=this.layoutManager.getLayout(this.model.getParent(b)));return this.isTableRow(b)||this.isTableCell(b)||null!=d&&d.constructor==mxStackLayout};
Graph.prototype.insertEdgeBeforeCell=function(b,d){for(var m=d;null!=m.parent&&null!=m.geometry&&m.geometry.relative&&m.parent!=b.parent;)m=this.model.getParent(m);null!=m&&null!=m.parent&&m.parent==b.parent&&(d=m.parent.getIndex(m),this.model.add(m.parent,b,d))};
-Graph.prototype.connectVertex=function(b,d,m,n,v,p,z,G){p=p?p:!1;if(b.geometry.relative&&this.model.isEdge(b.parent))return[];for(;b.geometry.relative&&this.model.isVertex(b.parent);)b=b.parent;var U=this.isCloneConnectSource(b),E=U?b:this.getCompositeParent(b),R=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(E.geometry.x,E.geometry.y);d==mxConstants.DIRECTION_NORTH?(R.x+=E.geometry.width/2,R.y-=m):d==
+Graph.prototype.connectVertex=function(b,d,m,n,u,p,z,G){p=p?p:!1;if(b.geometry.relative&&this.model.isEdge(b.parent))return[];for(;b.geometry.relative&&this.model.isVertex(b.parent);)b=b.parent;var U=this.isCloneConnectSource(b),E=U?b:this.getCompositeParent(b),R=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(E.geometry.x,E.geometry.y);d==mxConstants.DIRECTION_NORTH?(R.x+=E.geometry.width/2,R.y-=m):d==
mxConstants.DIRECTION_SOUTH?(R.x+=E.geometry.width/2,R.y+=E.geometry.height+m):(R.x=d==mxConstants.DIRECTION_WEST?R.x-m:R.x+(E.geometry.width+m),R.y+=E.geometry.height/2);var N=this.view.getState(this.model.getParent(b));m=this.view.scale;var c=this.view.translate;E=c.x*m;c=c.y*m;null!=N&&this.model.isVertex(N.cell)&&(E=N.x,c=N.y);this.model.isVertex(b.parent)&&b.geometry.relative&&(R.x+=b.parent.geometry.x,R.y+=b.parent.geometry.y);p=p?null:(new mxRectangle(E+R.x*m,c+R.y*m)).grow(40*m);p=null!=p?
this.getCells(0,0,0,0,null,null,p,null,!0):null;N=this.view.getState(b);var g=null,k=null;if(null!=p){p=p.reverse();for(var q=0;q<p.length;q++)if(!this.isCellLocked(p[q])&&!this.model.isEdge(p[q])&&p[q]!=b)if(!this.model.isAncestor(b,p[q])&&this.isContainer(p[q])&&(null==g||p[q]==this.model.getParent(b)))g=p[q];else if(null==k&&this.isCellConnectable(p[q])&&!this.model.isAncestor(p[q],b)&&!this.isSwimlane(p[q])){var A=this.view.getState(p[q]);null==N||null==A||mxUtils.intersects(N,A)||(k=p[q])}}var D=
-!mxEvent.isShiftDown(n)||mxEvent.isControlDown(n)||v;D&&("1"!=urlParams.sketch||v)&&(d==mxConstants.DIRECTION_NORTH?R.y-=b.geometry.height/2:d==mxConstants.DIRECTION_SOUTH?R.y+=b.geometry.height/2:R.x=d==mxConstants.DIRECTION_WEST?R.x-b.geometry.width/2:R.x+b.geometry.width/2);var H=[],K=k;k=g;v=mxUtils.bind(this,function(P){if(null==z||null!=P||null==k&&U){this.model.beginUpdate();try{if(null==K&&D){var W=this.getAbsoluteParent(null!=P?P:b);W=U?b:this.getCompositeParent(W);K=null!=P?P:this.duplicateCells([W],
+!mxEvent.isShiftDown(n)||mxEvent.isControlDown(n)||u;D&&("1"!=urlParams.sketch||u)&&(d==mxConstants.DIRECTION_NORTH?R.y-=b.geometry.height/2:d==mxConstants.DIRECTION_SOUTH?R.y+=b.geometry.height/2:R.x=d==mxConstants.DIRECTION_WEST?R.x-b.geometry.width/2:R.x+b.geometry.width/2);var H=[],K=k;k=g;u=mxUtils.bind(this,function(P){if(null==z||null!=P||null==k&&U){this.model.beginUpdate();try{if(null==K&&D){var W=this.getAbsoluteParent(null!=P?P:b);W=U?b:this.getCompositeParent(W);K=null!=P?P:this.duplicateCells([W],
!1)[0];null!=P&&this.addCells([K],this.model.getParent(b),null,null,null,!0);var M=this.getCellGeometry(K);null!=M&&(null!=P&&"1"==urlParams.sketch&&(d==mxConstants.DIRECTION_NORTH?R.y-=M.height/2:d==mxConstants.DIRECTION_SOUTH?R.y+=M.height/2:R.x=d==mxConstants.DIRECTION_WEST?R.x-M.width/2:R.x+M.width/2),M.x=R.x-M.width/2,M.y=R.y-M.height/2);null!=g?(this.addCells([K],g,null,null,null,!0),k=null):D&&!U&&this.addCells([K],this.getDefaultParent(),null,null,null,!0)}var ca=mxEvent.isControlDown(n)&&
mxEvent.isShiftDown(n)&&D||null==k&&U?null:this.insertEdge(this.model.getParent(b),null,"",b,K,this.createCurrentEdgeStyle());null!=ca&&(H.push(ca),this.applyNewEdgeStyle(b,[ca],d),this.connectionHandler.insertBeforeSource&&this.insertEdgeBeforeCell(ca,b));if(null==k&&null!=K&&null!=b.parent&&U&&d==mxConstants.DIRECTION_WEST){var fa=b.parent.getIndex(b);this.model.add(b.parent,K,fa)}null==k&&null!=K&&H.push(K);null==K&&null!=ca&&ca.geometry.setTerminalPoint(R,!1);null!=ca&&this.fireEvent(new mxEventObject("cellsInserted",
-"cells",[ca]))}finally{this.model.endUpdate()}}if(null!=G)G(H);else return H});if(null==z||null!=K||!D||null==k&&U)return v(K);z(E+R.x*m,c+R.y*m,v)};
-Graph.prototype.getIndexableText=function(b){b=null!=b?b:this.model.getDescendants(this.model.root);for(var d=document.createElement("div"),m=[],n,v=0;v<b.length;v++)if(n=b[v],this.model.isVertex(n)||this.model.isEdge(n))this.isHtmlLabel(n)?(d.innerHTML=Graph.sanitizeHtml(this.getLabel(n)),n=mxUtils.extractTextWithWhitespace([d])):n=this.getLabel(n),n=mxUtils.trim(n.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")),0<n.length&&m.push(n);return m.join(" ")};
+"cells",[ca]))}finally{this.model.endUpdate()}}if(null!=G)G(H);else return H});if(null==z||null!=K||!D||null==k&&U)return u(K);z(E+R.x*m,c+R.y*m,u)};
+Graph.prototype.getIndexableText=function(b){b=null!=b?b:this.model.getDescendants(this.model.root);for(var d=document.createElement("div"),m=[],n,u=0;u<b.length;u++)if(n=b[u],this.model.isVertex(n)||this.model.isEdge(n))this.isHtmlLabel(n)?(d.innerHTML=Graph.sanitizeHtml(this.getLabel(n)),n=mxUtils.extractTextWithWhitespace([d])):n=this.getLabel(n),n=mxUtils.trim(n.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")),0<n.length&&m.push(n);return m.join(" ")};
Graph.prototype.convertValueToString=function(b){var d=this.model.getValue(b);if(null!=d&&"object"==typeof d){var m=null;if(this.isReplacePlaceholders(b)&&null!=b.getAttribute("placeholder")){d=b.getAttribute("placeholder");for(var n=b;null==m&&null!=n;)null!=n.value&&"object"==typeof n.value&&(m=n.hasAttribute(d)?null!=n.getAttribute(d)?n.getAttribute(d):"":null),n=this.model.getParent(n)}else m=null,Graph.translateDiagram&&null!=Graph.diagramLanguage&&(m=d.getAttribute("label_"+Graph.diagramLanguage)),
null==m&&(m=d.getAttribute("label")||"");return m||""}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,d){return null!=b.value&&"object"==typeof b.value?(b=b.value.getAttribute("link"),d||(b=mxUtils.removeJavascriptProtocol(b)),b):null};
Graph.prototype.getLinkTargetForCell=function(b){return null!=b.value&&"object"==typeof b.value?b.value.getAttribute("linkTarget"):null};Graph.prototype.postProcessCellStyle=function(b,d){return this.updateHorizontalStyle(b,this.replaceDefaultColors(b,mxGraph.prototype.postProcessCellStyle.apply(this,arguments)))};
@@ -2529,25 +2533,25 @@ mxConstants.STYLE_IMAGE_BACKGROUND,b);this.replaceDefaultColor(d,mxConstants.STY
Graph.prototype.getDefaultColor=function(b,d,m){d="default"+d.charAt(0).toUpperCase()+d.substring(1);"invert"==b[d]&&(b=mxUtils.getLightDarkColor(m),m="light-dark("+b.dark+", "+b.light+")");return m};
Graph.prototype.setAdaptiveColors=function(b){this.adaptiveColors="default"==b?null:b;"1"==urlParams.embedInline?null!=this.container&&(this.container.style.colorScheme="none"==this.getAdaptiveColors()?"light":""):(b=this.view.getDrawPane().ownerSVGElement,null!=b&&(b.style.colorScheme="none"==this.getAdaptiveColors()?"light":""))};Graph.prototype.getAdaptiveColors=function(){return null!=this.adaptiveColors?this.adaptiveColors:Graph.defaultAdaptiveColors};
Graph.prototype.updateAlternateBounds=function(b,d,m){if(null!=b&&null!=d&&null!=this.layoutManager&&null!=d.alternateBounds){var n=this.layoutManager.getLayout(this.model.getParent(b));null!=n&&n.constructor==mxStackLayout&&(n.horizontal?d.alternateBounds.height=0:d.alternateBounds.width=0)}mxGraph.prototype.updateAlternateBounds.apply(this,arguments)};
-Graph.prototype.moveCellsTo=function(b,d){if(null!=b&&null!=d){for(var m=!0,n=0;n<b.length&&m;n++)m=m&&this.model.isEdge(b[n]);n=null;if(1==b.length&&m){var v=this.getCellGeometry(b[0]);null!=v&&(n=v.getTerminalPoint(!0))}n=null!=n?n:this.getBoundingBoxFromGeometry(b,m);null!=n&&(m=Math.round(this.snap(d.x)),d=Math.round(this.snap(d.y)),this.cellsMoved(b,m-n.x,d-n.y))}};Graph.prototype.isMoveCellsEvent=function(b,d){return mxEvent.isShiftDown(b)||"1"==mxUtils.getValue(d.style,"moveCells","0")};
-Graph.prototype.foldCells=function(b,d,m,n,v){d=null!=d?d:!1;null==m&&(m=this.getFoldableCells(this.getSelectionCells(),b));if(null!=m){this.model.beginUpdate();try{mxGraph.prototype.foldCells.apply(this,arguments);for(var p=0;p<m.length;p++){var z=this.view.getState(m[p]),G=this.getCellGeometry(m[p]);if(null!=z&&null!=G&&("1"!=mxUtils.getValue(z.style,"expandToFront","0")||this.isCellCollapsed(m[p])||this.orderCells(!1,[m[p]]),null!=this.layoutManager)){var U=0,E=0;if(G.alternateBounds)U=G.width-
-G.alternateBounds.width,E=G.height-G.alternateBounds.height;else{var R=this.useCssTransforms?1:this.view.scale;U=Math.round(G.width-z.width/R);E=Math.round(G.height-z.height/R)}if(0!=E||0!=U){var N=this.model.getParent(m[p]),c=this.layoutManager.getLayout(N);null==c?null!=v&&this.isMoveCellsEvent(v,z)&&this.moveSiblings(z,N,U,E):null!=v&&mxEvent.isAltDown(v)||c.constructor!=mxStackLayout||c.resizeLast||this.resizeParentStacks(N,c,U,E)}}}}finally{this.model.endUpdate()}this.isEnabled()&&this.setSelectionCells(m)}};
-Graph.prototype.moveSiblings=function(b,d,m,n){this.model.beginUpdate();try{var v=this.getCellsBeyond(b.x,b.y,d,!0,!0);for(d=0;d<v.length;d++)if(v[d]!=b.cell){var p=this.view.getState(v[d]),z=this.getCellGeometry(v[d]);null!=p&&null!=z&&(z=z.clone(),z.translate(Math.round(m*Math.max(0,Math.min(1,(p.x-b.x)/b.width))),Math.round(n*Math.max(0,Math.min(1,(p.y-b.y)/b.height)))),this.model.setGeometry(v[d],z))}}finally{this.model.endUpdate()}};
-Graph.prototype.resizeParentStacks=function(b,d,m,n){if(null!=this.layoutManager&&null!=d&&d.constructor==mxStackLayout&&!d.resizeLast){this.model.beginUpdate();try{for(var v=d.horizontal;null!=b&&null!=d&&d.constructor==mxStackLayout&&d.horizontal==v&&!d.resizeLast;){var p=this.getCellGeometry(b),z=this.view.getState(b);null!=z&&null!=p&&(p=p.clone(),d.horizontal?p.width+=m+Math.min(0,z.width/this.view.scale-p.width):p.height+=n+Math.min(0,z.height/this.view.scale-p.height),this.model.setGeometry(b,
+Graph.prototype.moveCellsTo=function(b,d){if(null!=b&&null!=d){for(var m=!0,n=0;n<b.length&&m;n++)m=m&&this.model.isEdge(b[n]);n=null;if(1==b.length&&m){var u=this.getCellGeometry(b[0]);null!=u&&(n=u.getTerminalPoint(!0))}n=null!=n?n:this.getBoundingBoxFromGeometry(b,m);null!=n&&(m=Math.round(this.snap(d.x)),d=Math.round(this.snap(d.y)),this.cellsMoved(b,m-n.x,d-n.y))}};Graph.prototype.isMoveCellsEvent=function(b,d){return mxEvent.isShiftDown(b)||"1"==mxUtils.getValue(d.style,"moveCells","0")};
+Graph.prototype.foldCells=function(b,d,m,n,u){d=null!=d?d:!1;null==m&&(m=this.getFoldableCells(this.getSelectionCells(),b));if(null!=m){this.model.beginUpdate();try{mxGraph.prototype.foldCells.apply(this,arguments);for(var p=0;p<m.length;p++){var z=this.view.getState(m[p]),G=this.getCellGeometry(m[p]);if(null!=z&&null!=G&&("1"!=mxUtils.getValue(z.style,"expandToFront","0")||this.isCellCollapsed(m[p])||this.orderCells(!1,[m[p]]),null!=this.layoutManager)){var U=0,E=0;if(G.alternateBounds)U=G.width-
+G.alternateBounds.width,E=G.height-G.alternateBounds.height;else{var R=this.useCssTransforms?1:this.view.scale;U=Math.round(G.width-z.width/R);E=Math.round(G.height-z.height/R)}if(0!=E||0!=U){var N=this.model.getParent(m[p]),c=this.layoutManager.getLayout(N);null==c?null!=u&&this.isMoveCellsEvent(u,z)&&this.moveSiblings(z,N,U,E):null!=u&&mxEvent.isAltDown(u)||c.constructor!=mxStackLayout||c.resizeLast||this.resizeParentStacks(N,c,U,E)}}}}finally{this.model.endUpdate()}this.isEnabled()&&this.setSelectionCells(m)}};
+Graph.prototype.moveSiblings=function(b,d,m,n){this.model.beginUpdate();try{var u=this.getCellsBeyond(b.x,b.y,d,!0,!0);for(d=0;d<u.length;d++)if(u[d]!=b.cell){var p=this.view.getState(u[d]),z=this.getCellGeometry(u[d]);null!=p&&null!=z&&(z=z.clone(),z.translate(Math.round(m*Math.max(0,Math.min(1,(p.x-b.x)/b.width))),Math.round(n*Math.max(0,Math.min(1,(p.y-b.y)/b.height)))),this.model.setGeometry(u[d],z))}}finally{this.model.endUpdate()}};
+Graph.prototype.resizeParentStacks=function(b,d,m,n){if(null!=this.layoutManager&&null!=d&&d.constructor==mxStackLayout&&!d.resizeLast){this.model.beginUpdate();try{for(var u=d.horizontal;null!=b&&null!=d&&d.constructor==mxStackLayout&&d.horizontal==u&&!d.resizeLast;){var p=this.getCellGeometry(b),z=this.view.getState(b);null!=z&&null!=p&&(p=p.clone(),d.horizontal?p.width+=m+Math.min(0,z.width/this.view.scale-p.width):p.height+=n+Math.min(0,z.height/this.view.scale-p.height),this.model.setGeometry(b,
p));b=this.model.getParent(b);d=this.layoutManager.getLayout(b)}}finally{this.model.endUpdate()}}};Graph.prototype.isContainer=function(b){var d=this.getCurrentCellStyle(b);return this.isSwimlane(b)?"0"!=d.container:"1"==d.container};Graph.prototype.isCellConnectable=function(b){var d=this.getCurrentCellStyle(b);return!this.isCellLocked(this.getLayerForCell(b))&&(null!=d.connectable?"0"!=d.connectable:mxGraph.prototype.isCellConnectable.apply(this,arguments))};
Graph.prototype.isLabelMovable=function(b){var d=this.getCurrentCellStyle(b);return null!=d.movableLabel?"0"!=d.movableLabel:mxGraph.prototype.isLabelMovable.apply(this,arguments)};Graph.prototype.selectAll=function(b){b=b||this.getDefaultParent();this.isCellLocked(b)||mxGraph.prototype.selectAll.apply(this,arguments)};Graph.prototype.selectCells=function(b,d,m){m=m||this.getDefaultParent();this.isCellLocked(m)||mxGraph.prototype.selectCells.apply(this,arguments)};
Graph.prototype.getSwimlaneAt=function(b,d,m){var n=mxGraph.prototype.getSwimlaneAt.apply(this,arguments);this.isCellLocked(n)&&(n=null);return n};Graph.prototype.isCellFoldable=function(b){var d=this.getCurrentCellStyle(b);return this.foldingEnabled&&"0"!=mxUtils.getValue(d,mxConstants.STYLE_RESIZABLE,"1")&&("1"==d.treeFolding||!this.isCellLocked(b)&&(this.isContainer(b)&&"0"!=d.collapsible||!this.isContainer(b)&&"1"==d.collapsible))};
Graph.prototype.reset=function(){this.isEditing()&&this.stopEditing(!0);this.escape();this.isSelectionEmpty()||this.clearSelection()};Graph.prototype.zoom=function(b,d){b=Math.max(.01,Math.min(this.view.scale*b,160))/this.view.scale;mxGraph.prototype.zoom.apply(this,arguments)};Graph.prototype.zoomIn=function(){.15>this.view.scale?this.zoom((this.view.scale+.01)/this.view.scale):this.zoom(Math.round(this.view.scale*this.zoomFactor*20)/20/this.view.scale)};
Graph.prototype.zoomOut=function(){.15>=this.view.scale?this.zoom((this.view.scale-.01)/this.view.scale):this.zoom(Math.round(1/this.zoomFactor*this.view.scale*20)/20/this.view.scale)};
-Graph.prototype.fitPages=function(b,d){var m=1;null==b&&(m=this.getPageLayout(),b=m.width,m=m.height);var n=this.pageScale,v=this.pageFormat,p=this.container.clientHeight-10;b=(this.container.clientWidth-10)/(b*v.width)/n;this.zoomTo(Math.floor(20*(d?b:Math.min(b,p/(m*v.height)/n)))/20);mxUtils.hasScrollbars(this.container)&&(b=this.getPagePadding(),this.container.scrollLeft=Math.min(b.x*this.view.scale,(this.container.scrollWidth-this.container.clientWidth)/2),d||(this.container.scrollTop=Math.min(b.y*
+Graph.prototype.fitPages=function(b,d){var m=1;null==b&&(m=this.getPageLayout(),b=m.width,m=m.height);var n=this.pageScale,u=this.pageFormat,p=this.container.clientHeight-10;b=(this.container.clientWidth-10)/(b*u.width)/n;this.zoomTo(Math.floor(20*(d?b:Math.min(b,p/(m*u.height)/n)))/20);mxUtils.hasScrollbars(this.container)&&(b=this.getPagePadding(),this.container.scrollLeft=Math.min(b.x*this.view.scale,(this.container.scrollWidth-this.container.clientWidth)/2),d||(this.container.scrollTop=Math.min(b.y*
this.view.scale,(this.container.scrollHeight-this.container.clientHeight)/2)))};
-Graph.prototype.fitWindow=function(b,d,m,n,v){d=null!=d?d:10;var p=this.container.clientWidth-d,z=this.container.clientHeight-d,G=Math.floor(20*Math.min(p/b.width,z/b.height))/20;null!=m&&(G=Math.min(G,m));if(!n||G<m)this.zoomTo(G,null,null,mxUtils.hasScrollbars(this.container)),mxUtils.hasScrollbars(this.container)&&(m=this.view.translate,this.container.scrollLeft=(b.x+m.x)*this.view.scale-Math.max((p-b.width*this.view.scale)/2+d/2,0),this.container.scrollTop=(b.y+m.y)*this.view.scale-Math.max((z-
-b.height*this.view.scale)/2+d/2,0),v&&this.pageVisible&&(b=this.view.getBackgroundPageBounds(),d=this.container.clientWidth,v=this.container.clientHeight,b.width<=d&&(this.container.scrollLeft=b.x+b.width/2-d/2),b.height<=v&&(this.container.scrollTop=b.y+b.height/2-v/2)))};
+Graph.prototype.fitWindow=function(b,d,m,n,u){d=null!=d?d:10;var p=this.container.clientWidth-d,z=this.container.clientHeight-d,G=Math.floor(20*Math.min(p/b.width,z/b.height))/20;null!=m&&(G=Math.min(G,m));if(!n||G<m)this.zoomTo(G,null,null,mxUtils.hasScrollbars(this.container)),mxUtils.hasScrollbars(this.container)&&(m=this.view.translate,this.container.scrollLeft=(b.x+m.x)*this.view.scale-Math.max((p-b.width*this.view.scale)/2+d/2,0),this.container.scrollTop=(b.y+m.y)*this.view.scale-Math.max((z-
+b.height*this.view.scale)/2+d/2,0),u&&this.pageVisible&&(b=this.view.getBackgroundPageBounds(),d=this.container.clientWidth,u=this.container.clientHeight,b.width<=d&&(this.container.scrollLeft=b.x+b.width/2-d/2),b.height<=u&&(this.container.scrollTop=b.y+b.height/2-u/2)))};
Graph.prototype.convertValueToTooltip=function(b){var d=null;mxUtils.isNode(b.value)&&(Graph.translateDiagram&&null!=Graph.diagramLanguage&&(d=b.value.getAttribute("tooltip_"+Graph.diagramLanguage)),null==d&&(d=b.value.getAttribute("tooltip")),null!=d&&(null!=d&&this.isReplacePlaceholders(b)&&(d=this.replacePlaceholders(b,d)),d=Graph.sanitizeHtml(d)));return d};
-Graph.prototype.getTooltipForCell=function(b){var d="";if(mxUtils.isNode(b.value)&&(d=this.convertValueToTooltip(b),null==d)){var m=this.builtInProperties;b=b.value.attributes;var n=[];d="";this.isEnabled()&&(m.push("linkTarget"),m.push("link"));for(var v=0;v<b.length;v++)(Graph.translateDiagram&&"label"==b[v].nodeName||0>mxUtils.indexOf(m,b[v].nodeName))&&0<b[v].nodeValue.length&&n.push({name:b[v].nodeName,value:b[v].nodeValue});n.sort(function(p,z){return p.name<z.name?-1:p.name>z.name?1:0});for(v=
-0;v<n.length;v++)"link"==n[v].name&&this.isCustomLink(n[v].value)||(d+=("link"!=n[v].name?"<b>"+mxUtils.htmlEntities(n[v].name)+":</b> ":"")+mxUtils.htmlEntities(n[v].value)+"\n");0<d.length&&(d=d.substring(0,d.length-1),mxClient.IS_SVG&&(d='<div style="max-width:360px;text-overflow:ellipsis;overflow:hidden;">'+d+"</div>"))}return d};
-Graph.prototype.addFlowAnimationToNode=function(b,d,m,n){if(null!=b&&null!=n){var v=b.getAttribute("stroke-dasharray");if(""==v||null==v){var p=String(mxUtils.getValue(d,mxConstants.STYLE_DASH_PATTERN,"8")).split(" ");v=1==mxUtils.getValue(d,mxConstants.STYLE_FIX_DASH,!1)||null==d.dashPattern?1:mxUtils.getNumber(d,mxConstants.STYLE_STROKEWIDTH,1);if(0<p.length)for(var z=0;z<p.length;z++)p[z]=Math.round(Number(p[z])*m*v*100)/100;b.setAttribute("stroke-dasharray",p.join(" "))}else p=v.split(" ");if(0<
-p.length){for(z=v=0;z<p.length;z++){var G=parseFloat(p[z]);isNaN(G)||(v+=parseFloat(p[z]))}0!=p.length%2&&(v*=2);m=Math.round(v/m/16*parseInt(mxUtils.getValue(d,"flowAnimationDuration",500)));p=mxUtils.getValue(d,"flowAnimationTimingFunction","linear");d=mxUtils.getValue(d,"flowAnimationDirection","normal");b.style.animation=n+" "+m+"ms "+mxUtils.htmlEntities(p)+" infinite "+mxUtils.htmlEntities(d);b.style.strokeDashoffset=v}}};
+Graph.prototype.getTooltipForCell=function(b){var d="";if(mxUtils.isNode(b.value)&&(d=this.convertValueToTooltip(b),null==d)){var m=this.builtInProperties;b=b.value.attributes;var n=[];d="";this.isEnabled()&&(m.push("linkTarget"),m.push("link"));for(var u=0;u<b.length;u++)(Graph.translateDiagram&&"label"==b[u].nodeName||0>mxUtils.indexOf(m,b[u].nodeName))&&0<b[u].nodeValue.length&&n.push({name:b[u].nodeName,value:b[u].nodeValue});n.sort(function(p,z){return p.name<z.name?-1:p.name>z.name?1:0});for(u=
+0;u<n.length;u++)"link"==n[u].name&&this.isCustomLink(n[u].value)||(d+=("link"!=n[u].name?"<b>"+mxUtils.htmlEntities(n[u].name)+":</b> ":"")+mxUtils.htmlEntities(n[u].value)+"\n");0<d.length&&(d=d.substring(0,d.length-1),mxClient.IS_SVG&&(d='<div style="max-width:360px;text-overflow:ellipsis;overflow:hidden;">'+d+"</div>"))}return d};
+Graph.prototype.addFlowAnimationToNode=function(b,d,m,n){if(null!=b&&null!=n){var u=b.getAttribute("stroke-dasharray");if(""==u||null==u){var p=String(mxUtils.getValue(d,mxConstants.STYLE_DASH_PATTERN,"8")).split(" ");u=1==mxUtils.getValue(d,mxConstants.STYLE_FIX_DASH,!1)||null==d.dashPattern?1:mxUtils.getNumber(d,mxConstants.STYLE_STROKEWIDTH,1);if(0<p.length)for(var z=0;z<p.length;z++)p[z]=Math.round(Number(p[z])*m*u*100)/100;b.setAttribute("stroke-dasharray",p.join(" "))}else p=u.split(" ");if(0<
+p.length){for(z=u=0;z<p.length;z++){var G=parseFloat(p[z]);isNaN(G)||(u+=parseFloat(p[z]))}0!=p.length%2&&(u*=2);m=Math.round(u/m/16*parseInt(mxUtils.getValue(d,"flowAnimationDuration",500)));p=mxUtils.getValue(d,"flowAnimationTimingFunction","linear");d=mxUtils.getValue(d,"flowAnimationDirection","normal");b.style.animation=n+" "+m+"ms "+mxUtils.htmlEntities(p)+" infinite "+mxUtils.htmlEntities(d);b.style.strokeDashoffset=u}}};
Graph.prototype.addFlowAnimationStyle=function(){var b=document.getElementsByTagName("head")[0];if(null!=b&&null==this.flowAnimationId){this.flowAnimationId="ge-flow-animation-"+Editor.guid();var d=document.createElement("style");d.innerHTML=this.createFlowAnimationCss(this.flowAnimationId);b.appendChild(d)}return this.flowAnimationId};Graph.prototype.createFlowAnimationCss=function(b){return"@keyframes "+b+" {\n to {\n stroke-dashoffset: 0;\n }\n}"};Graph.prototype.stringToBytes=function(b){return Graph.stringToBytes(b)};
Graph.prototype.bytesToString=function(b){return Graph.bytesToString(b)};Graph.prototype.compressNode=function(b){return Graph.compressNode(b)};Graph.prototype.compress=function(b,d){return Graph.compress(b,d)};Graph.prototype.decompress=function(b,d){return Graph.decompress(b,d)};Graph.prototype.zapGremlins=function(b){return Graph.zapGremlins(b)};HoverIcons=function(b){mxEventSource.call(this);this.graph=b;this.init()};mxUtils.extend(HoverIcons,mxEventSource);HoverIcons.prototype.arrowSpacing=2;
HoverIcons.prototype.updateDelay=500;HoverIcons.prototype.activationDelay=140;HoverIcons.prototype.currentState=null;HoverIcons.prototype.activeArrow=null;HoverIcons.prototype.inactiveOpacity=15;HoverIcons.prototype.cssCursor="copy";HoverIcons.prototype.checkCollisions=!0;HoverIcons.prototype.arrowFill="#29b6f2";HoverIcons.prototype.triangleUp=Graph.createSvgImage(18,28,'<path d="m 6 26 L 12 26 L 12 12 L 18 12 L 9 1 L 1 12 L 6 12 z" stroke="#fff" fill="'+HoverIcons.prototype.arrowFill+'"/>');
@@ -2562,21 +2566,21 @@ mxEvent.getSource(m)==this.graph.container&&this.setDisplay("none")}));this.grap
n){d=!1;m=n.getEvent();this.isResetEvent(m)?this.reset():this.isActive()||(n=this.getState(n.getState()),null==n&&mxEvent.isTouchEvent(m)||this.update(n));this.setDisplay("none")}),mouseMove:mxUtils.bind(this,function(m,n){m=n.getEvent();this.isResetEvent(m)?this.reset():this.graph.isMouseDown||mxEvent.isTouchEvent(m)||this.update(this.getState(n.getState()),n.getGraphX(),n.getGraphY());null!=this.graph.connectionHandler&&null!=this.graph.connectionHandler.shape&&(d=!0)}),mouseUp:mxUtils.bind(this,
function(m,n){m=n.getEvent();mxUtils.convertPoint(this.graph.container,mxEvent.getClientX(m),mxEvent.getClientY(m));this.isResetEvent(m)?this.reset():this.isActive()&&!d&&null!=this.mouseDownPoint?this.click(this.currentState,this.getDirection(),n):this.isActive()?1==this.graph.getSelectionCount()&&this.graph.model.isEdge(this.graph.getSelectionCell())?this.reset():this.update(this.getState(this.graph.view.getState(this.graph.getCellAt(n.getGraphX(),n.getGraphY())))):mxEvent.isTouchEvent(m)||null!=
this.bbox&&mxUtils.contains(this.bbox,n.getGraphX(),n.getGraphY())?(this.setDisplay(""),this.repaint()):mxEvent.isTouchEvent(m)||this.reset();d=!1;this.resetActiveArrow()})})};HoverIcons.prototype.isResetEvent=function(b,d){return mxEvent.isAltDown(b)||null==this.activeArrow&&mxEvent.isShiftDown(b)||mxEvent.isPopupTrigger(b)&&!this.graph.isCloneEvent(b)};
-HoverIcons.prototype.createArrow=function(b,d,m){var n=null;n=mxUtils.createImage(b.src);n.style.width=b.width+"px";n.style.height=b.height+"px";n.style.padding=this.tolerance+"px";null!=d&&n.setAttribute("title",d);n.style.position="absolute";n.style.cursor=this.cssCursor;mxEvent.addGestureListeners(n,mxUtils.bind(this,function(v){null==this.currentState||this.isResetEvent(v)||(this.mouseDownPoint=mxUtils.convertPoint(this.graph.container,mxEvent.getClientX(v),mxEvent.getClientY(v)),this.drag(v,
-this.mouseDownPoint.x,this.mouseDownPoint.y),this.activeArrow=n,this.setDisplay("none"),mxEvent.consume(v))}));mxEvent.redirectMouseEvents(n,this.graph,this.currentState);mxEvent.addListener(n,"mouseenter",mxUtils.bind(this,function(v){mxEvent.isMouseEvent(v)&&(null!=this.activeArrow&&this.activeArrow!=n&&mxUtils.setOpacity(this.activeArrow,this.inactiveOpacity),this.graph.connectionHandler.constraintHandler.reset(),mxUtils.setOpacity(n,100),this.activeArrow=n,this.fireEvent(new mxEventObject("focus",
-"arrow",n,"direction",m,"event",v)))}));mxEvent.addListener(n,"mouseleave",mxUtils.bind(this,function(v){mxEvent.isMouseEvent(v)&&this.fireEvent(new mxEventObject("blur","arrow",n,"direction",m,"event",v));this.graph.isMouseDown||this.resetActiveArrow()}));return n};HoverIcons.prototype.resetActiveArrow=function(){null!=this.activeArrow&&(mxUtils.setOpacity(this.activeArrow,this.inactiveOpacity),this.activeArrow=null)};
+HoverIcons.prototype.createArrow=function(b,d,m){var n=null;n=mxUtils.createImage(b.src);n.style.width=b.width+"px";n.style.height=b.height+"px";n.style.padding=this.tolerance+"px";null!=d&&n.setAttribute("title",d);n.style.position="absolute";n.style.cursor=this.cssCursor;mxEvent.addGestureListeners(n,mxUtils.bind(this,function(u){null==this.currentState||this.isResetEvent(u)||(this.mouseDownPoint=mxUtils.convertPoint(this.graph.container,mxEvent.getClientX(u),mxEvent.getClientY(u)),this.drag(u,
+this.mouseDownPoint.x,this.mouseDownPoint.y),this.activeArrow=n,this.setDisplay("none"),mxEvent.consume(u))}));mxEvent.redirectMouseEvents(n,this.graph,this.currentState);mxEvent.addListener(n,"mouseenter",mxUtils.bind(this,function(u){mxEvent.isMouseEvent(u)&&(null!=this.activeArrow&&this.activeArrow!=n&&mxUtils.setOpacity(this.activeArrow,this.inactiveOpacity),this.graph.connectionHandler.constraintHandler.reset(),mxUtils.setOpacity(n,100),this.activeArrow=n,this.fireEvent(new mxEventObject("focus",
+"arrow",n,"direction",m,"event",u)))}));mxEvent.addListener(n,"mouseleave",mxUtils.bind(this,function(u){mxEvent.isMouseEvent(u)&&this.fireEvent(new mxEventObject("blur","arrow",n,"direction",m,"event",u));this.graph.isMouseDown||this.resetActiveArrow()}));return n};HoverIcons.prototype.resetActiveArrow=function(){null!=this.activeArrow&&(mxUtils.setOpacity(this.activeArrow,this.inactiveOpacity),this.activeArrow=null)};
HoverIcons.prototype.getDirection=function(){var b=mxConstants.DIRECTION_EAST;this.activeArrow==this.arrowUp?b=mxConstants.DIRECTION_NORTH:this.activeArrow==this.arrowDown?b=mxConstants.DIRECTION_SOUTH:this.activeArrow==this.arrowLeft&&(b=mxConstants.DIRECTION_WEST);return b};HoverIcons.prototype.visitNodes=function(b){for(var d=0;d<this.elts.length;d++)null!=this.elts[d]&&b(this.elts[d])};HoverIcons.prototype.removeNodes=function(){this.visitNodes(function(b){null!=b.parentNode&&b.parentNode.removeChild(b)})};
HoverIcons.prototype.setDisplay=function(b){this.visitNodes(function(d){d.style.display=b})};HoverIcons.prototype.isActive=function(){return null!=this.activeArrow&&null!=this.currentState};
HoverIcons.prototype.drag=function(b,d,m){this.graph.popupMenuHandler.hideMenu();this.graph.stopEditing(!1);null!=this.currentState&&(this.graph.connectionHandler.start(this.currentState,d,m),this.graph.isMouseTrigger=mxEvent.isMouseEvent(b),this.graph.isMouseDown=!0,d=this.graph.selectionCellsHandler.getHandler(this.currentState.cell),null!=d&&d.setHandlesVisible(!1),d=this.graph.connectionHandler.edgeState,null!=b&&mxEvent.isShiftDown(b)&&mxEvent.isControlDown(b)&&null!=d&&"orthogonalEdgeStyle"===
mxUtils.getValue(d.style,mxConstants.STYLE_EDGE,null)&&(b=this.getDirection(),d.cell.style=mxUtils.setStyle(d.cell.style,"sourcePortConstraint",b),d.style.sourcePortConstraint=b))};HoverIcons.prototype.getStateAt=function(b,d,m){return this.graph.view.getState(this.graph.getCellAt(d,m))};
-HoverIcons.prototype.click=function(b,d,m){var n=m.getEvent(),v=m.getGraphX(),p=m.getGraphY();v=this.getStateAt(b,v,p);null==v||!this.graph.model.isEdge(v.cell)||this.graph.isCloneEvent(n)||v.getVisibleTerminalState(!0)!=b&&v.getVisibleTerminalState(!1)!=b?null!=b&&this.execute(b,d,m):(this.graph.setSelectionCell(v.cell),this.reset());m.consume()};
+HoverIcons.prototype.click=function(b,d,m){var n=m.getEvent(),u=m.getGraphX(),p=m.getGraphY();u=this.getStateAt(b,u,p);null==u||!this.graph.model.isEdge(u.cell)||this.graph.isCloneEvent(n)||u.getVisibleTerminalState(!0)!=b&&u.getVisibleTerminalState(!1)!=b?null!=b&&this.execute(b,d,m):(this.graph.setSelectionCell(u.cell),this.reset());m.consume()};
HoverIcons.prototype.execute=function(b,d,m){m=m.getEvent();this.graph.selectCellsForConnectVertex(this.graph.connectVertex(b.cell,d,this.graph.defaultEdgeLength,m,this.graph.isCloneEvent(m),this.graph.isCloneEvent(m)),m,this)};HoverIcons.prototype.reset=function(b){null!=b&&!b||null==this.updateThread||window.clearTimeout(this.updateThread);this.activeArrow=this.currentState=this.mouseDownPoint=null;this.removeNodes();this.bbox=null;this.fireEvent(new mxEventObject("reset"))};
HoverIcons.prototype.repaint=function(){this.bbox=null;if(null!=this.currentState){this.currentState=this.getState(this.currentState);if(null!=this.currentState&&this.graph.model.isVertex(this.currentState.cell)&&this.graph.isCellConnectable(this.currentState.cell)){var b=mxRectangle.fromRectangle(this.currentState);null!=this.currentState.shape&&null!=this.currentState.shape.boundingBox&&(b=mxRectangle.fromRectangle(this.currentState.shape.boundingBox));b.grow(this.graph.tolerance);b.grow(this.arrowSpacing);
var d=this.graph.selectionCellsHandler.getHandler(this.currentState.cell);this.graph.isTableRow(this.currentState.cell)&&(d=this.graph.selectionCellsHandler.getHandler(this.graph.model.getParent(this.currentState.cell)));var m=null;null!=d&&(b.x-=d.horizontalOffset/2,b.y-=d.verticalOffset/2,b.width+=d.horizontalOffset,b.height+=d.verticalOffset,null!=d.rotationShape&&null!=d.rotationShape.node&&"hidden"!=d.rotationShape.node.style.visibility&&"none"!=d.rotationShape.node.style.display&&null!=d.rotationShape.boundingBox&&
(m=d.rotationShape.boundingBox));d=mxUtils.bind(this,function(G,U,E){if(null!=m){var R=new mxRectangle(U,E,G.clientWidth,G.clientHeight);mxUtils.intersects(R,m)&&(G==this.arrowUp?E-=R.y+R.height-m.y:G==this.arrowRight?U+=m.x+m.width-R.x:G==this.arrowDown?E+=m.y+m.height-R.y:G==this.arrowLeft&&(U-=R.x+R.width-m.x))}G.style.left=U+"px";G.style.top=E+"px";mxUtils.setOpacity(G,this.inactiveOpacity)});d(this.arrowUp,Math.round(this.currentState.getCenterX()-this.triangleUp.width/2-this.tolerance),Math.round(b.y-
this.triangleUp.height-this.tolerance));d(this.arrowRight,Math.round(b.x+b.width-this.tolerance),Math.round(this.currentState.getCenterY()-this.triangleRight.height/2-this.tolerance));d(this.arrowDown,parseInt(this.arrowUp.style.left),Math.round(b.y+b.height-this.tolerance));d(this.arrowLeft,Math.round(b.x-this.triangleLeft.width-this.tolerance),parseInt(this.arrowRight.style.top));if(this.checkCollisions){d=this.graph.getCellAt(b.x+b.width+this.triangleRight.width/2,this.currentState.getCenterY());
-var n=this.graph.getCellAt(b.x-this.triangleLeft.width/2,this.currentState.getCenterY()),v=this.graph.getCellAt(this.currentState.getCenterX(),b.y-this.triangleUp.height/2);b=this.graph.getCellAt(this.currentState.getCenterX(),b.y+b.height+this.triangleDown.height/2);null!=d&&d==n&&n==v&&v==b&&(b=v=n=d=null);var p=this.graph.getCellGeometry(this.currentState.cell),z=mxUtils.bind(this,function(G,U){var E=this.graph.model.isVertex(G)&&this.graph.getCellGeometry(G);null==G||this.graph.model.isAncestor(G,
-this.currentState.cell)||this.graph.isSwimlane(G)||!(null==E||null==p||E.height<3*p.height&&E.width<3*p.width)?U.style.visibility="visible":U.style.visibility="hidden"});z(d,this.arrowRight);z(n,this.arrowLeft);z(v,this.arrowUp);z(b,this.arrowDown)}else this.arrowLeft.style.visibility="visible",this.arrowRight.style.visibility="visible",this.arrowUp.style.visibility="visible",this.arrowDown.style.visibility="visible";this.graph.tooltipHandler.isEnabled()?(this.arrowLeft.setAttribute("title",mxResources.get("plusTooltip")),
+var n=this.graph.getCellAt(b.x-this.triangleLeft.width/2,this.currentState.getCenterY()),u=this.graph.getCellAt(this.currentState.getCenterX(),b.y-this.triangleUp.height/2);b=this.graph.getCellAt(this.currentState.getCenterX(),b.y+b.height+this.triangleDown.height/2);null!=d&&d==n&&n==u&&u==b&&(b=u=n=d=null);var p=this.graph.getCellGeometry(this.currentState.cell),z=mxUtils.bind(this,function(G,U){var E=this.graph.model.isVertex(G)&&this.graph.getCellGeometry(G);null==G||this.graph.model.isAncestor(G,
+this.currentState.cell)||this.graph.isSwimlane(G)||!(null==E||null==p||E.height<3*p.height&&E.width<3*p.width)?U.style.visibility="visible":U.style.visibility="hidden"});z(d,this.arrowRight);z(n,this.arrowLeft);z(u,this.arrowUp);z(b,this.arrowDown)}else this.arrowLeft.style.visibility="visible",this.arrowRight.style.visibility="visible",this.arrowUp.style.visibility="visible",this.arrowDown.style.visibility="visible";this.graph.tooltipHandler.isEnabled()?(this.arrowLeft.setAttribute("title",mxResources.get("plusTooltip")),
this.arrowRight.setAttribute("title",mxResources.get("plusTooltip")),this.arrowUp.setAttribute("title",mxResources.get("plusTooltip")),this.arrowDown.setAttribute("title",mxResources.get("plusTooltip"))):(this.arrowLeft.removeAttribute("title"),this.arrowRight.removeAttribute("title"),this.arrowUp.removeAttribute("title"),this.arrowDown.removeAttribute("title"))}else this.reset();null!=this.currentState&&(this.bbox=this.computeBoundingBox(),null!=this.bbox&&this.bbox.grow(10))}};
HoverIcons.prototype.computeBoundingBox=function(){var b=this.graph.model.isEdge(this.currentState.cell)?null:mxRectangle.fromRectangle(this.currentState);this.visitNodes(function(d){null!=d.parentNode&&(d=new mxRectangle(d.offsetLeft,d.offsetTop,d.offsetWidth,d.offsetHeight),null==b?b=d:b.add(d))});return b};
HoverIcons.prototype.getState=function(b){if(null!=b)if(b=b.cell,this.graph.getModel().contains(b)){if(this.graph.getModel().isVertex(b)&&!this.graph.isCellConnectable(b)){var d=this.graph.getModel().getParent(b);this.graph.getModel().isVertex(d)&&this.graph.isCellConnectable(d)&&(b=d)}if(this.graph.isCellLocked(b)||this.graph.model.isEdge(b))b=null;b=this.graph.view.getState(b);null!=b&&null==b.style&&(b=null)}else b=null;return b};
@@ -2591,46 +2595,46 @@ mxEvent.addListener(this.icon,"click",mxUtils.bind(this,function(d){this.graph.i
mxUtils.bind(this,function(){this.hide()});this.graph.selectionModel.addListener(mxEvent.CHANGE,this.selectionHandler);this.graph.model.addListener(mxEvent.CHANGE,this.modelHandler);this.graph.view.addListener(mxEvent.SCALE_AND_TRANSLATE,this.repaintHandler);this.graph.view.addListener(mxEvent.TRANSLATE,this.repaintHandler);this.graph.view.addListener(mxEvent.SCALE,this.repaintHandler);this.graph.view.addListener(mxEvent.DOWN,this.repaintHandler);this.graph.view.addListener(mxEvent.UP,this.repaintHandler);
this.graph.addListener(mxEvent.ROOT,this.repaintHandler);this.graph.addListener(mxEvent.ESCAPE,this.selectionHandler);this.graph.addListener(mxEvent.START_EDITING,this.hideHandler);mxEvent.addListener(this.graph.container,"scroll",this.repaintHandler)};
InlineToolbar.prototype.updateSelection=function(){var b=this.graph.getSelectionCells(),d=null;1==b.length&&this.graph.model.isEdge(b[0])&&this.graph.isEnabled()&&!this.graph.isCellLocked(b[0])&&(d=this.graph.view.getState(b[0]));null!=d?(this.currentState=d,this.show()):(this.currentState=null,this.hide())};
-InlineToolbar.prototype.getEdgeMidpoint=function(b){b=b.absolutePoints;if(null==b||2>b.length)return null;for(var d=0,m=[],n=1;n<b.length;n++)if(null!=b[n]&&null!=b[n-1]){var v=b[n].x-b[n-1].x,p=b[n].y-b[n-1].y;v=Math.sqrt(v*v+p*p);m.push(v);d+=v}else m.push(0);d/=2;for(n=v=0;n<m.length;n++){if(v+m[n]>=d){d-=v;m=0<m[n]?d/m[n]:0;d=b[n];n=b[n+1];if(null!=d&&null!=n)return new mxPoint(d.x+(n.x-d.x)*m,d.y+(n.y-d.y)*m);break}v+=m[n]}n=b[0];b=b[b.length-1];return null!=n&&null!=b?new mxPoint((n.x+b.x)/
+InlineToolbar.prototype.getEdgeMidpoint=function(b){b=b.absolutePoints;if(null==b||2>b.length)return null;for(var d=0,m=[],n=1;n<b.length;n++)if(null!=b[n]&&null!=b[n-1]){var u=b[n].x-b[n-1].x,p=b[n].y-b[n-1].y;u=Math.sqrt(u*u+p*p);m.push(u);d+=u}else m.push(0);d/=2;for(n=u=0;n<m.length;n++){if(u+m[n]>=d){d-=u;m=0<m[n]?d/m[n]:0;d=b[n];n=b[n+1];if(null!=d&&null!=n)return new mxPoint(d.x+(n.x-d.x)*m,d.y+(n.y-d.y)*m);break}u+=m[n]}n=b[0];b=b[b.length-1];return null!=n&&null!=b?new mxPoint((n.x+b.x)/
2,(n.y+b.y)/2):null};InlineToolbar.prototype.show=function(){this.updateIcons();this.toolbar.style.display="block";this.repaint()};InlineToolbar.prototype.hide=function(){this.toolbar.style.display="none"};InlineToolbar.prototype.supportsCurvedBend=function(b){b=mxUtils.getValue(b,mxConstants.STYLE_SHAPE,null);return null==b||"connector"==b||"filledEdge"==b||"wire"==b||"pipe"==b};
InlineToolbar.prototype.updateIcons=function(){if(null!=this.currentState){var b=this.graph.getCurrentCellStyle(this.currentState.cell),d=this.editorUi.getImageForEdgeStyle(b);"arrow"==b[mxConstants.STYLE_SHAPE]&&(d=Format.straightImage.src);this.icon.style.backgroundImage="url("+d+")";d=this.graph.view.getState(this.currentState.cell);d=this.supportsCurvedBend(b)||null!=d&&this.graph.isRoundedState(d);this.bendSep.style.display=d?"inline-block":"none";this.bendIcon.style.display=d?"inline-block":
"none";d&&("1"==mxUtils.getValue(b,mxConstants.STYLE_CURVED,null)?this.bendIcon.style.backgroundImage="url("+Format.curvedBendImage.src+")":"1"==mxUtils.getValue(b,mxConstants.STYLE_ROUNDED,null)?this.bendIcon.style.backgroundImage="url("+Format.roundedBendImage.src+")":this.bendIcon.style.backgroundImage="url("+Format.sharpBendImage.src+")")}};
-InlineToolbar.prototype.segmentIntersectsRect=function(b,d,m,n,v,p,z,G){m-=b;n-=d;n=[-m,m,-n,n];b=[b-v,v+z-b,d-p,p+G-d];d=0;v=1;for(p=0;4>p;p++)if(0==n[p]){if(0>b[p])return!1}else if(z=b[p]/n[p],0>n[p]?d=Math.max(d,z):v=Math.min(v,z),d>v)return!1;return!0};
-InlineToolbar.prototype.repaint=function(){if(null!=this.currentState&&"none"!=this.toolbar.style.display){var b=this.graph.view.getState(this.currentState.cell);if(null!=b){this.currentState=b;this.updateIcons();var d=this.getEdgeMidpoint(b);if(null!=d){var m="none"!=this.bendIcon.style.display?2*this.iconSize+1:this.iconSize,n=this.iconSize,v=d.x-m/2,p=d.y-n-this.offset,z=this.graph.selectionCellsHandler.getHandler(b.cell);if(null!=z){var G=(z.bends||[]).concat(z.virtualBends||[]);z=mxUtils.bind(this,
+InlineToolbar.prototype.segmentIntersectsRect=function(b,d,m,n,u,p,z,G){m-=b;n-=d;n=[-m,m,-n,n];b=[b-u,u+z-b,d-p,p+G-d];d=0;u=1;for(p=0;4>p;p++)if(0==n[p]){if(0>b[p])return!1}else if(z=b[p]/n[p],0>n[p]?d=Math.max(d,z):u=Math.min(u,z),d>u)return!1;return!0};
+InlineToolbar.prototype.repaint=function(){if(null!=this.currentState&&"none"!=this.toolbar.style.display){var b=this.graph.view.getState(this.currentState.cell);if(null!=b){this.currentState=b;this.updateIcons();var d=this.getEdgeMidpoint(b);if(null!=d){var m="none"!=this.bendIcon.style.display?2*this.iconSize+1:this.iconSize,n=this.iconSize,u=d.x-m/2,p=d.y-n-this.offset,z=this.graph.selectionCellsHandler.getHandler(b.cell);if(null!=z){var G=(z.bends||[]).concat(z.virtualBends||[]);z=mxUtils.bind(this,
function(c,g){c=new mxRectangle(Math.round(c)-8,Math.round(g)-8,m+16,n+16);for(g=0;g<G.length;g++)if(null!=G[g]&&null!=G[g].bounds&&"hidden"!==G[g].node.style.visibility&&mxUtils.intersects(c,G[g].bounds))return!0;var k=b.absolutePoints;if(null!=k)for(g=1;g<k.length;g++)if(null!=k[g]&&null!=k[g-1]&&this.segmentIntersectsRect(k[g-1].x,k[g-1].y,k[g].x,k[g].y,c.x,c.y,c.width,c.height))return!0;if(null!=b.text&&null!=b.text.boundingBox&&mxUtils.intersects(c,b.text.boundingBox))return!0;k=this.graph.getModel();
-var q=k.getChildCount(b.cell);for(g=0;g<q;g++){var A=this.graph.view.getState(k.getChildAt(b.cell,g));if(null!=A&&(null!=A.shape&&null!=A.shape.boundingBox&&mxUtils.intersects(c,A.shape.boundingBox)||null!=A.text&&null!=A.text.boundingBox&&mxUtils.intersects(c,A.text.boundingBox)))return!0}return!1});if(z(v,p)){var U=d.y+this.offset,E=!1;z(v,U)||(p=U,E=!0);if(!E){U=d.y-n/2;var R=d.x-m-this.offset,N=d.x+this.offset;z(R,U)?z(N,U)||(v=N,p=U,E=!0):(v=R,p=U,E=!0)}if(!E)for(U=d.y-n/2,E=this.offset+8;100>
-E;E+=8)if(!z(v,d.y-n-E)){p=d.y-n-E;break}else if(!z(v,d.y+E)){p=d.y+E;break}else if(!z(d.x-m-E,U)){v=d.x-m-E;p=U;break}else if(!z(d.x+E,U)){v=d.x+E;p=U;break}}}this.toolbar.style.left=Math.round(v)+"px";this.toolbar.style.top=Math.round(p)+"px"}}}};InlineToolbar.prototype.showMenu=function(b){var d=this.editorUi;d.hideCurrentMenu();d.showPopupMenu(mxUtils.bind(this,function(m,n){d.menus.addMenu("line",m,n)}),mxEvent.getClientX(b),mxEvent.getClientY(b),b)};
-InlineToolbar.prototype.showBendMenu=function(b){var d=this.editorUi;d.hideCurrentMenu();d.showPopupMenu(mxUtils.bind(this,function(m,n){var v=d.menus,p=[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED];Format.processMenuIcon(v.edgeStyleChange(m,"",p,["0","0"],null,n,!1,Format.sharpBendImage.src)).setAttribute("title",mxResources.get("sharp"));Format.processMenuIcon(v.edgeStyleChange(m,"",p,["1","0"],null,n,!1,Format.roundedBendImage.src)).setAttribute("title",mxResources.get("rounded"));if(null!=
-this.currentState){var z=this.graph.getCurrentCellStyle(this.currentState.cell);this.supportsCurvedBend(z)&&Format.processMenuIcon(v.edgeStyleChange(m,"",p,["0","1"],null,n,!1,Format.curvedBendImage.src)).setAttribute("title",mxResources.get("curved"))}}),mxEvent.getClientX(b),mxEvent.getClientY(b),b)};
+var q=k.getChildCount(b.cell);for(g=0;g<q;g++){var A=this.graph.view.getState(k.getChildAt(b.cell,g));if(null!=A&&(null!=A.shape&&null!=A.shape.boundingBox&&mxUtils.intersects(c,A.shape.boundingBox)||null!=A.text&&null!=A.text.boundingBox&&mxUtils.intersects(c,A.text.boundingBox)))return!0}return!1});if(z(u,p)){var U=d.y+this.offset,E=!1;z(u,U)||(p=U,E=!0);if(!E){U=d.y-n/2;var R=d.x-m-this.offset,N=d.x+this.offset;z(R,U)?z(N,U)||(u=N,p=U,E=!0):(u=R,p=U,E=!0)}if(!E)for(U=d.y-n/2,E=this.offset+8;100>
+E;E+=8)if(!z(u,d.y-n-E)){p=d.y-n-E;break}else if(!z(u,d.y+E)){p=d.y+E;break}else if(!z(d.x-m-E,U)){u=d.x-m-E;p=U;break}else if(!z(d.x+E,U)){u=d.x+E;p=U;break}}}this.toolbar.style.left=Math.round(u)+"px";this.toolbar.style.top=Math.round(p)+"px"}}}};InlineToolbar.prototype.showMenu=function(b){var d=this.editorUi;d.hideCurrentMenu();d.showPopupMenu(mxUtils.bind(this,function(m,n){d.menus.addMenu("line",m,n)}),mxEvent.getClientX(b),mxEvent.getClientY(b),b)};
+InlineToolbar.prototype.showBendMenu=function(b){var d=this.editorUi;d.hideCurrentMenu();d.showPopupMenu(mxUtils.bind(this,function(m,n){var u=d.menus,p=[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED];Format.processMenuIcon(u.edgeStyleChange(m,"",p,["0","0"],null,n,!1,Format.sharpBendImage.src)).setAttribute("title",mxResources.get("sharp"));Format.processMenuIcon(u.edgeStyleChange(m,"",p,["1","0"],null,n,!1,Format.roundedBendImage.src)).setAttribute("title",mxResources.get("rounded"));if(null!=
+this.currentState){var z=this.graph.getCurrentCellStyle(this.currentState.cell);this.supportsCurvedBend(z)&&Format.processMenuIcon(u.edgeStyleChange(m,"",p,["0","1"],null,n,!1,Format.curvedBendImage.src)).setAttribute("title",mxResources.get("curved"))}}),mxEvent.getClientX(b),mxEvent.getClientY(b),b)};
InlineToolbar.prototype.destroy=function(){this.graph.selectionModel.removeListener(this.selectionHandler);this.graph.model.removeListener(this.modelHandler);this.graph.view.removeListener(this.repaintHandler);this.graph.removeListener(this.selectionHandler);this.graph.removeListener(this.repaintHandler);this.graph.removeListener(this.hideHandler);mxEvent.removeListener(this.graph.container,"scroll",this.repaintHandler);null!=this.toolbar.parentNode&&this.toolbar.parentNode.removeChild(this.toolbar)};
-Graph.prototype.removeTextStyleForCell=function(b,d){var m=this.getCurrentCellStyle(b),n=!1;this.getModel().beginUpdate();try{if("1"==mxUtils.getValue(m,"html","0")){var v=this.convertValueToString(b);"0"!=mxUtils.getValue(m,"nl2Br","1")&&(v=v.replace(/\n/g,"").replace(/<br\s*.?>/g,"\n"));v=Editor.convertHtmlToText(v);this.cellLabelChanged(b,v);n=!0}d&&(this.setCellStyles("fontSource",null,[b]),this.setCellStyles(mxConstants.STYLE_FONTFAMILY,null,[b]),this.setCellStyles(mxConstants.STYLE_FONTSIZE,
-null,[b]),this.setCellStyles(mxConstants.STYLE_FONTSTYLE,null,[b]),this.setCellStyles(mxConstants.STYLE_FONTCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BORDERCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null,[b]))}finally{this.getModel().endUpdate()}return n};Graph.prototype.createParent=function(b,d,m,n,v){b=this.cloneCell(b);for(var p=0;p<m;p++){var z=this.cloneCell(d),G=this.getCellGeometry(z);null!=G&&(G.x+=p*n,G.y+=p*v);b.insert(z)}return b};
-Graph.prototype.createTable=function(b,d,m,n,v,p,z,G,U){m=null!=m?m:60;n=null!=n?n:40;p=null!=p?p:30;G=null!=G?G:"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;strokeColor=inherit;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;fixedHeader=1;";U=null!=U?U:"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;fillColor=none;top=0;left=0;bottom=0;right=0;pointerEvents=1;";
-return this.createParent(this.createVertex(null,null,null!=v?v:"",0,0,d*m,b*n+(null!=v?p:0),null!=z?z:"shape=table;startSize="+(null!=v?p:"0")+";container=1;collapsible=0;childLayout=tableLayout;fixedHeader=1;"),this.createParent(this.createVertex(null,null,"",0,0,d*m,n,G),this.createVertex(null,null,"",0,0,m,n,U),d,m,0),b,0,n)};
-Graph.prototype.setTableValues=function(b,d,m){for(var n=this.model.getChildCells(b,!0),v=0;v<n.length;v++)if(null!=m&&(n[v].value=m[v]),null!=d)for(var p=this.model.getChildCells(n[v],!0),z=0;z<p.length;z++)null!=d[v][z]&&(p[z].value=d[v][z]);return b};
-Graph.prototype.createCrossFunctionalSwimlane=function(b,d,m,n,v,p,z,G,U){m=null!=m?m:120;n=null!=n?n:120;z=null!=z?z:"shape=tableRow;horizontal=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;strokeColor=inherit;bottom=0;right=0;dropTarget=0;fontStyle=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;startSize=40;fixedHeader=1;collapsible=0;recursiveResize=0;expand=0;";G=null!=G?G:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;strokeColor=inherit;connectable=0;fillColor=none;startSize=40;collapsible=0;recursiveResize=0;expand=0;";
-U=null!=U?U:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;connectable=0;strokeColor=inherit;fillColor=none;startSize=0;collapsible=0;recursiveResize=0;expand=0;";v=this.createVertex(null,null,null!=v?v:"",0,0,d*m,b*n,null!=p?p:"shape=table;childLayout=tableLayout;fixedHeader=1;"+(null==v?"startSize=0;fillColor=none;":"startSize=40;")+"collapsible=0;recursiveResize=0;expand=0;");p=mxUtils.getValue(this.getCellStyle(v),mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE);v.geometry.width+=
-p;v.geometry.height+=p;z=this.createVertex(null,null,"",0,p,d*m+p,n,z);v.insert(this.createParent(z,this.createVertex(null,null,"",p,0,m,n,G),d,m,0));return 1<b?(z.geometry.y=n+p,this.createParent(v,this.createParent(z,this.createVertex(null,null,"",p,0,m,n,U),d,m,0),b-1,0,n)):v};
-Graph.prototype.visitTableCells=function(b,d){var m=null,n=this.model.getChildCells(b,!0);b=this.getActualStartSize(b,!0);for(var v=0;v<n.length;v++){for(var p=this.getActualStartSize(n[v],!0),z=this.model.getChildCells(n[v],!0),G=this.getCellStyle(n[v],!0),U=null,E=[],R=0;R<z.length;R++){var N=this.getCellGeometry(z[R]),c={cell:z[R],rospan:1,colspan:1,row:v,col:R,geo:N};N=null!=N.alternateBounds?N.alternateBounds:N;c.point=new mxPoint(N.width+(null!=U?U.point.x:b.x+p.x),N.height+(null!=m&&null!=
+Graph.prototype.removeTextStyleForCell=function(b,d){var m=this.getCurrentCellStyle(b),n=!1;this.getModel().beginUpdate();try{if("1"==mxUtils.getValue(m,"html","0")){var u=this.convertValueToString(b);"0"!=mxUtils.getValue(m,"nl2Br","1")&&(u=u.replace(/\n/g,"").replace(/<br\s*.?>/g,"\n"));u=Editor.convertHtmlToText(u);this.cellLabelChanged(b,u);n=!0}d&&(this.setCellStyles("fontSource",null,[b]),this.setCellStyles(mxConstants.STYLE_FONTFAMILY,null,[b]),this.setCellStyles(mxConstants.STYLE_FONTSIZE,
+null,[b]),this.setCellStyles(mxConstants.STYLE_FONTSTYLE,null,[b]),this.setCellStyles(mxConstants.STYLE_FONTCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BORDERCOLOR,null,[b]),this.setCellStyles(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null,[b]))}finally{this.getModel().endUpdate()}return n};Graph.prototype.createParent=function(b,d,m,n,u){b=this.cloneCell(b);for(var p=0;p<m;p++){var z=this.cloneCell(d),G=this.getCellGeometry(z);null!=G&&(G.x+=p*n,G.y+=p*u);b.insert(z)}return b};
+Graph.prototype.createTable=function(b,d,m,n,u,p,z,G,U){m=null!=m?m:60;n=null!=n?n:40;p=null!=p?p:30;G=null!=G?G:"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;strokeColor=inherit;top=0;left=0;bottom=0;right=0;collapsible=0;dropTarget=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;fixedHeader=1;";U=null!=U?U:"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;strokeColor=inherit;overflow=hidden;fillColor=none;top=0;left=0;bottom=0;right=0;pointerEvents=1;";
+return this.createParent(this.createVertex(null,null,null!=u?u:"",0,0,d*m,b*n+(null!=u?p:0),null!=z?z:"shape=table;startSize="+(null!=u?p:"0")+";container=1;collapsible=0;childLayout=tableLayout;fixedHeader=1;"),this.createParent(this.createVertex(null,null,"",0,0,d*m,n,G),this.createVertex(null,null,"",0,0,m,n,U),d,m,0),b,0,n)};
+Graph.prototype.setTableValues=function(b,d,m){for(var n=this.model.getChildCells(b,!0),u=0;u<n.length;u++)if(null!=m&&(n[u].value=m[u]),null!=d)for(var p=this.model.getChildCells(n[u],!0),z=0;z<p.length;z++)null!=d[u][z]&&(p[z].value=d[u][z]);return b};
+Graph.prototype.createCrossFunctionalSwimlane=function(b,d,m,n,u,p,z,G,U){m=null!=m?m:120;n=null!=n?n:120;z=null!=z?z:"shape=tableRow;horizontal=0;swimlaneHead=0;swimlaneBody=0;top=0;left=0;strokeColor=inherit;bottom=0;right=0;dropTarget=0;fontStyle=0;fillColor=none;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;startSize=40;fixedHeader=1;collapsible=0;recursiveResize=0;expand=0;";G=null!=G?G:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;strokeColor=inherit;connectable=0;fillColor=none;startSize=40;collapsible=0;recursiveResize=0;expand=0;";
+U=null!=U?U:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;connectable=0;strokeColor=inherit;fillColor=none;startSize=0;collapsible=0;recursiveResize=0;expand=0;";u=this.createVertex(null,null,null!=u?u:"",0,0,d*m,b*n,null!=p?p:"shape=table;childLayout=tableLayout;fixedHeader=1;"+(null==u?"startSize=0;fillColor=none;":"startSize=40;")+"collapsible=0;recursiveResize=0;expand=0;");p=mxUtils.getValue(this.getCellStyle(u),mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE);u.geometry.width+=
+p;u.geometry.height+=p;z=this.createVertex(null,null,"",0,p,d*m+p,n,z);u.insert(this.createParent(z,this.createVertex(null,null,"",p,0,m,n,G),d,m,0));return 1<b?(z.geometry.y=n+p,this.createParent(u,this.createParent(z,this.createVertex(null,null,"",p,0,m,n,U),d,m,0),b-1,0,n)):u};
+Graph.prototype.visitTableCells=function(b,d){var m=null,n=this.model.getChildCells(b,!0);b=this.getActualStartSize(b,!0);for(var u=0;u<n.length;u++){for(var p=this.getActualStartSize(n[u],!0),z=this.model.getChildCells(n[u],!0),G=this.getCellStyle(n[u],!0),U=null,E=[],R=0;R<z.length;R++){var N=this.getCellGeometry(z[R]),c={cell:z[R],rospan:1,colspan:1,row:u,col:R,geo:N};N=null!=N.alternateBounds?N.alternateBounds:N;c.point=new mxPoint(N.width+(null!=U?U.point.x:b.x+p.x),N.height+(null!=m&&null!=
m[0]?m[0].point.y:b.y+p.y));c.actual=c;null!=m&&null!=m[R]&&1<m[R].rowspan?(c.rowspan=m[R].rowspan-1,c.colspan=m[R].colspan,c.actual=m[R].actual):null!=U&&1<U.colspan?(c.rowspan=U.rowspan,c.colspan=U.colspan-1,c.actual=U.actual):(U=this.getCurrentCellStyle(z[R],!0),null!=U&&(c.rowspan=parseInt(U.rowspan||1),c.colspan=parseInt(U.colspan||1)));U=1==mxUtils.getValue(G,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(G,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;d(c,z.length,
-n.length,b.x+(U?p.x:0),b.y+(U?p.y:0));E.push(c);U=c}m=E}};Graph.prototype.getTableLines=function(b,d,m){var n=[],v=[];(d||m)&&this.visitTableCells(b,mxUtils.bind(this,function(p,z,G,U,E){d&&p.row<G-1&&(null==n[p.row]&&(n[p.row]=[new mxPoint(U,p.point.y)]),1<p.rowspan&&n[p.row].push(null),n[p.row].push(p.point));m&&p.col<z-1&&(null==v[p.col]&&(v[p.col]=[new mxPoint(p.point.x,E)]),1<p.colspan&&v[p.col].push(null),v[p.col].push(p.point))}));return n.concat(v)};
+n.length,b.x+(U?p.x:0),b.y+(U?p.y:0));E.push(c);U=c}m=E}};Graph.prototype.getTableLines=function(b,d,m){var n=[],u=[];(d||m)&&this.visitTableCells(b,mxUtils.bind(this,function(p,z,G,U,E){d&&p.row<G-1&&(null==n[p.row]&&(n[p.row]=[new mxPoint(U,p.point.y)]),1<p.rowspan&&n[p.row].push(null),n[p.row].push(p.point));m&&p.col<z-1&&(null==u[p.col]&&(u[p.col]=[new mxPoint(p.point.x,E)]),1<p.colspan&&u[p.col].push(null),u[p.col].push(p.point))}));return n.concat(u)};
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,d,m){m=null!=m?m:!0;var n=this.getModel();n.beginUpdate();try{var v=this.getCellGeometry(b);if(null!=v){v=v.clone();v.height+=d;n.setGeometry(b,v);var p=n.getParent(b),z=n.getChildCells(p,!0);if(!m){var G=mxUtils.indexOf(z,b);if(G<z.length-1){var U=z[G+1],E=this.getCellGeometry(U);null!=E&&(E=E.clone(),E.y+=d,E.height-=d,n.setGeometry(U,E))}}var R=this.getCellGeometry(p);null!=R&&(m||(m=b==z[z.length-1]),m&&(R=R.clone(),R.height+=d,n.setGeometry(p,R)))}}finally{n.endUpdate()}};
-Graph.prototype.setTableColumnWidth=function(b,d,m){m=null!=m?m:!1;var n=this.getModel(),v=n.getParent(b),p=n.getParent(v),z=n.getChildCells(v,!0);b=mxUtils.indexOf(z,b);var G=b==z.length-1;n.beginUpdate();try{for(var U=n.getChildCells(p,!0),E=0;E<U.length;E++){v=U[E];z=n.getChildCells(v,!0);var R=z[b],N=this.getCellGeometry(R);null!=N&&(N=N.clone(),N.width+=d,null!=N.alternateBounds&&(N.alternateBounds.width+=d),n.setGeometry(R,N));b<z.length-1&&(R=z[b+1],N=this.getCellGeometry(R),null!=N&&(N=N.clone(),
+Graph.prototype.setTableRowHeight=function(b,d,m){m=null!=m?m:!0;var n=this.getModel();n.beginUpdate();try{var u=this.getCellGeometry(b);if(null!=u){u=u.clone();u.height+=d;n.setGeometry(b,u);var p=n.getParent(b),z=n.getChildCells(p,!0);if(!m){var G=mxUtils.indexOf(z,b);if(G<z.length-1){var U=z[G+1],E=this.getCellGeometry(U);null!=E&&(E=E.clone(),E.y+=d,E.height-=d,n.setGeometry(U,E))}}var R=this.getCellGeometry(p);null!=R&&(m||(m=b==z[z.length-1]),m&&(R=R.clone(),R.height+=d,n.setGeometry(p,R)))}}finally{n.endUpdate()}};
+Graph.prototype.setTableColumnWidth=function(b,d,m){m=null!=m?m:!1;var n=this.getModel(),u=n.getParent(b),p=n.getParent(u),z=n.getChildCells(u,!0);b=mxUtils.indexOf(z,b);var G=b==z.length-1;n.beginUpdate();try{for(var U=n.getChildCells(p,!0),E=0;E<U.length;E++){u=U[E];z=n.getChildCells(u,!0);var R=z[b],N=this.getCellGeometry(R);null!=N&&(N=N.clone(),N.width+=d,null!=N.alternateBounds&&(N.alternateBounds.width+=d),n.setGeometry(R,N));b<z.length-1&&(R=z[b+1],N=this.getCellGeometry(R),null!=N&&(N=N.clone(),
N.x+=d,m||(N.width-=d,null!=N.alternateBounds&&(N.alternateBounds.width-=d)),n.setGeometry(R,N)))}if(G||m){var c=this.getCellGeometry(p);null!=c&&(c=c.clone(),c.width+=d,n.setGeometry(p,c))}null!=this.layoutManager&&this.layoutManager.executeLayout(p)}finally{n.endUpdate()}};
-Graph.prototype.resizeAllTableRows=function(b,d){var m=this.getModel(),n=m.getChildCells(b,!0);if(0!=n.length){m.beginUpdate();try{for(var v=0;v<n.length;v++){var p=this.getCellGeometry(n[v]);null!=p&&(p=p.clone(),p.y+=d*v,p.height=Math.max(Graph.minTableRowHeight,p.height+d),m.setGeometry(n[v],p))}var z=this.getCellGeometry(b);null!=z&&(z=z.clone(),z.height+=d*n.length,m.setGeometry(b,z));null!=this.layoutManager&&this.layoutManager.executeLayout(b)}finally{m.endUpdate()}}};
-Graph.prototype.resizeAllTableColumns=function(b,d){var m=this.getModel(),n=m.getChildCells(b,!0);if(0!=n.length){m.beginUpdate();try{for(var v=0;v<n.length;v++)for(var p=m.getChildCells(n[v],!0),z=0;z<p.length;z++){var G=this.getCellGeometry(p[z]);null!=G&&(G=G.clone(),G.x+=d*z,G.width=Math.max(Graph.minTableColumnWidth,G.width+d),null!=G.alternateBounds&&(G.alternateBounds.width=Math.max(Graph.minTableColumnWidth,G.alternateBounds.width+d)),m.setGeometry(p[z],G))}var U=this.getCellGeometry(b);if(null!=
+Graph.prototype.resizeAllTableRows=function(b,d){var m=this.getModel(),n=m.getChildCells(b,!0);if(0!=n.length){m.beginUpdate();try{for(var u=0;u<n.length;u++){var p=this.getCellGeometry(n[u]);null!=p&&(p=p.clone(),p.y+=d*u,p.height=Math.max(Graph.minTableRowHeight,p.height+d),m.setGeometry(n[u],p))}var z=this.getCellGeometry(b);null!=z&&(z=z.clone(),z.height+=d*n.length,m.setGeometry(b,z));null!=this.layoutManager&&this.layoutManager.executeLayout(b)}finally{m.endUpdate()}}};
+Graph.prototype.resizeAllTableColumns=function(b,d){var m=this.getModel(),n=m.getChildCells(b,!0);if(0!=n.length){m.beginUpdate();try{for(var u=0;u<n.length;u++)for(var p=m.getChildCells(n[u],!0),z=0;z<p.length;z++){var G=this.getCellGeometry(p[z]);null!=G&&(G=G.clone(),G.x+=d*z,G.width=Math.max(Graph.minTableColumnWidth,G.width+d),null!=G.alternateBounds&&(G.alternateBounds.width=Math.max(Graph.minTableColumnWidth,G.alternateBounds.width+d)),m.setGeometry(p[z],G))}var U=this.getCellGeometry(b);if(null!=
U){var E=m.getChildCells(n[0],!0).length;U=U.clone();U.width+=d*E;m.setGeometry(b,U)}null!=this.layoutManager&&this.layoutManager.executeLayout(b)}finally{m.endUpdate()}}};
-Graph.prototype.distributeRows=function(b){var d=this.getModel(),m=d.getChildCells(b,!0);if(!(2>m.length)){d.beginUpdate();try{for(var n=0,v=0;v<m.length;v++){var p=this.getCellGeometry(m[v]);null!=p&&(n+=p.height)}var z=n/m.length;for(v=n=0;v<m.length;v++)p=this.getCellGeometry(m[v]),null!=p&&(p=p.clone(),0==v&&(n=p.y),p.y=n,p.height=z,d.setGeometry(m[v],p),n+=z);null!=this.layoutManager&&this.layoutManager.executeLayout(b)}finally{d.endUpdate()}}};
-Graph.prototype.distributeColumns=function(b){var d=this.getModel(),m=d.getChildCells(b,!0);if(0!=m.length){var n=d.getChildCells(m[0],!0);if(!(2>n.length)){d.beginUpdate();try{for(var v=0,p=0;p<n.length;p++){var z=this.getCellGeometry(n[p]);null!=z&&(v+=(null!=z.alternateBounds?z.alternateBounds:z).width)}var G=v/n.length;for(p=0;p<m.length;p++){var U=d.getChildCells(m[p],!0);for(v=n=0;v<U.length;v++)z=this.getCellGeometry(U[v]),null!=z&&(z=z.clone(),0==v&&(n=z.x),z.x=n,z.width=G,null!=z.alternateBounds&&
-(z.alternateBounds.width=G),d.setGeometry(U[v],z),n+=G)}null!=this.layoutManager&&this.layoutManager.executeLayout(b)}finally{d.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,d){for(var m=0,n=0;n<b.length;n++)if(!this.isVertexIgnored(b[n])){var v=this.graph.getCellGeometry(b[n]);null!=v&&(m+=d?v.width:v.height)}return m};
-TableLayout.prototype.getRowLayout=function(b,d){var m=this.graph.model.getChildCells(b,!0),n=this.graph.getActualStartSize(b,!0);b=this.getSize(m,!0);d=d-n.x-n.width;var v=[];n=n.x;for(var p=0;p<m.length;p++){var z=this.graph.getCellGeometry(m[p]);null!=z&&(n+=(null!=z.alternateBounds?z.alternateBounds.width:z.width)*d/b,v.push(Math.round(n)))}return v};
-TableLayout.prototype.layoutRow=function(b,d,m,n){var v=this.graph.getModel(),p=v.getChildCells(b,!0);b=this.graph.getActualStartSize(b,!0);var z=b.x,G=0;null!=d&&(d=d.slice(),d.splice(0,0,b.x));for(var U=0;U<p.length;U++){var E=this.graph.getCellGeometry(p[U]);null!=E&&(E=E.clone(),E.y=b.y,E.height=m-b.y-b.height,null!=d?(E.x=d[U],E.width=d[U+1]-E.x,U==p.length-1&&U<d.length-2&&(E.width=n-E.x-b.x-b.width)):(E.x=z,z+=E.width,U==p.length-1?E.width=n-b.x-b.width-G:G+=E.width),E.alternateBounds=new mxRectangle(0,
-0,E.width,E.height),v.setGeometry(p[U],E))}return G};
-TableLayout.prototype.execute=function(b){if(null!=b){var d=this.graph.getActualStartSize(b,!0),m=this.graph.getCellGeometry(b),n=this.graph.getCellStyle(b),v="1"==mxUtils.getValue(n,"resizeLastRow","0"),p="1"==mxUtils.getValue(n,"resizeLast","0");n="1"==mxUtils.getValue(n,"fixedRows","0");var z=this.graph.getModel(),G=0;z.beginUpdate();try{for(var U=m.height-d.y-d.height,E=m.width-d.x-d.width,R=z.getChildCells(b,!0),N=0;N<R.length;N++)z.setVisible(R[N],!0);var c=this.getSize(R,!1);if(0<U&&0<E&&0<
-R.length&&0<c){if(v){var g=this.graph.getCellGeometry(R[R.length-1]);null!=g&&(g=g.clone(),g.height=U-c+g.height,z.setGeometry(R[R.length-1],g))}var k=p?null:this.getRowLayout(R[0],E),q=[],A=d.y;for(N=0;N<R.length;N++)g=this.graph.getCellGeometry(R[N]),null!=g&&(g=g.clone(),g.x=d.x,g.width=E,g.y=Math.round(A),A=v||n?A+g.height:A+g.height/c*U,g.height=Math.round(A)-g.y,z.setGeometry(R[N],g)),G=Math.max(G,this.layoutRow(R[N],k,g.height,E,q));n&&U<c&&(m=m.clone(),m.height=A+d.height,z.setGeometry(b,
+Graph.prototype.distributeRows=function(b){var d=this.getModel(),m=d.getChildCells(b,!0);if(!(2>m.length)){d.beginUpdate();try{for(var n=0,u=0;u<m.length;u++){var p=this.getCellGeometry(m[u]);null!=p&&(n+=p.height)}var z=n/m.length;for(u=n=0;u<m.length;u++)p=this.getCellGeometry(m[u]),null!=p&&(p=p.clone(),0==u&&(n=p.y),p.y=n,p.height=z,d.setGeometry(m[u],p),n+=z);null!=this.layoutManager&&this.layoutManager.executeLayout(b)}finally{d.endUpdate()}}};
+Graph.prototype.distributeColumns=function(b){var d=this.getModel(),m=d.getChildCells(b,!0);if(0!=m.length){var n=d.getChildCells(m[0],!0);if(!(2>n.length)){d.beginUpdate();try{for(var u=0,p=0;p<n.length;p++){var z=this.getCellGeometry(n[p]);null!=z&&(u+=(null!=z.alternateBounds?z.alternateBounds:z).width)}var G=u/n.length;for(p=0;p<m.length;p++){var U=d.getChildCells(m[p],!0);for(u=n=0;u<U.length;u++)z=this.getCellGeometry(U[u]),null!=z&&(z=z.clone(),0==u&&(n=z.x),z.x=n,z.width=G,null!=z.alternateBounds&&
+(z.alternateBounds.width=G),d.setGeometry(U[u],z),n+=G)}null!=this.layoutManager&&this.layoutManager.executeLayout(b)}finally{d.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,d){for(var m=0,n=0;n<b.length;n++)if(!this.isVertexIgnored(b[n])){var u=this.graph.getCellGeometry(b[n]);null!=u&&(m+=d?u.width:u.height)}return m};
+TableLayout.prototype.getRowLayout=function(b,d){var m=this.graph.model.getChildCells(b,!0),n=this.graph.getActualStartSize(b,!0);b=this.getSize(m,!0);d=d-n.x-n.width;var u=[];n=n.x;for(var p=0;p<m.length;p++){var z=this.graph.getCellGeometry(m[p]);null!=z&&(n+=(null!=z.alternateBounds?z.alternateBounds.width:z.width)*d/b,u.push(Math.round(n)))}return u};
+TableLayout.prototype.layoutRow=function(b,d,m,n){var u=this.graph.getModel(),p=u.getChildCells(b,!0);b=this.graph.getActualStartSize(b,!0);var z=b.x,G=0;null!=d&&(d=d.slice(),d.splice(0,0,b.x));for(var U=0;U<p.length;U++){var E=this.graph.getCellGeometry(p[U]);null!=E&&(E=E.clone(),E.y=b.y,E.height=m-b.y-b.height,null!=d?(E.x=d[U],E.width=d[U+1]-E.x,U==p.length-1&&U<d.length-2&&(E.width=n-E.x-b.x-b.width)):(E.x=z,z+=E.width,U==p.length-1?E.width=n-b.x-b.width-G:G+=E.width),E.alternateBounds=new mxRectangle(0,
+0,E.width,E.height),u.setGeometry(p[U],E))}return G};
+TableLayout.prototype.execute=function(b){if(null!=b){var d=this.graph.getActualStartSize(b,!0),m=this.graph.getCellGeometry(b),n=this.graph.getCellStyle(b),u="1"==mxUtils.getValue(n,"resizeLastRow","0"),p="1"==mxUtils.getValue(n,"resizeLast","0");n="1"==mxUtils.getValue(n,"fixedRows","0");var z=this.graph.getModel(),G=0;z.beginUpdate();try{for(var U=m.height-d.y-d.height,E=m.width-d.x-d.width,R=z.getChildCells(b,!0),N=0;N<R.length;N++)z.setVisible(R[N],!0);var c=this.getSize(R,!1);if(0<U&&0<E&&0<
+R.length&&0<c){if(u){var g=this.graph.getCellGeometry(R[R.length-1]);null!=g&&(g=g.clone(),g.height=U-c+g.height,z.setGeometry(R[R.length-1],g))}var k=p?null:this.getRowLayout(R[0],E),q=[],A=d.y;for(N=0;N<R.length;N++)g=this.graph.getCellGeometry(R[N]),null!=g&&(g=g.clone(),g.x=d.x,g.width=E,g.y=Math.round(A),A=u||n?A+g.height:A+g.height/c*U,g.height=Math.round(A)-g.y,z.setGeometry(R[N],g)),G=Math.max(G,this.layoutRow(R[N],k,g.height,E,q));n&&U<c&&(m=m.clone(),m.height=A+d.height,z.setGeometry(b,
m));p&&E<G+Graph.minTableColumnWidth&&(m=m.clone(),m.width=G+d.width+d.x+Graph.minTableColumnWidth,z.setGeometry(b,m));this.graph.visitTableCells(b,mxUtils.bind(this,function(D){z.setVisible(D.cell,D.actual.cell==D.cell);if(D.actual.cell!=D.cell){if(D.actual.row==D.row){var H=null!=D.geo.alternateBounds?D.geo.alternateBounds:D.geo;D.actual.geo.width+=H.width}D.actual.col==D.col&&(H=null!=D.geo.alternateBounds?D.geo.alternateBounds:D.geo,D.actual.geo.height+=H.height)}}))}else for(N=0;N<R.length;N++)z.setVisible(R[N],
!1)}finally{z.endUpdate()}}};
(function(){var b=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){b.apply(this,arguments);this.validEdges=[]};var d=mxGraphView.prototype.validateCellState;mxGraphView.prototype.validateCellState=function(N,c){c=null!=c?c:!0;var g=this.getState(N);null!=g&&c&&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());if(null!=g&&g.invalid){if(this.graph.showLinkIcons){g=
@@ -2638,8 +2642,8 @@ this.graph.getLinkForCell(N);var k=null!=g&&0<g.length,q=!1;if(null!=N.overlays)
1);0==N.overlays.length&&(N.overlays=null)}if(this.graph.showTooltipIcons){g=this.graph.convertValueToTooltip(N);k=null!=g&&0<g.length;q=!1;if(null!=N.overlays)for(g=0;g<N.overlays.length;g++)if(N.overlays[g].isTooltipOverlay){q=!0;break}if(k&&!q)g=this.graph.createTooltipOverlay(N),null!=g&&(null==N.overlays&&(N.overlays=[]),N.overlays.push(g));else if(!k&&q){for(g=N.overlays.length-1;0<=g;g--)N.overlays[g].isTooltipOverlay&&N.overlays.splice(g,1);0==N.overlays.length&&(N.overlays=null)}}else if(null!=
N.overlays){for(g=N.overlays.length-1;0<=g;g--)N.overlays[g].isTooltipOverlay&&N.overlays.splice(g,1);0==N.overlays.length&&(N.overlays=null)}}g=d.apply(this,arguments);null!=g&&c&&this.graph.model.isEdge(g.cell)&&null!=g.style&&1!=g.style[mxConstants.STYLE_CURVED]&&this.validEdges.push(g);return g};mxShape.prototype.isFlowAnimationEnabled=function(){return null!=this.state&&this.state.view.graph.enableFlowAnimation&&this.state.view.graph.model.isEdge(this.state.cell)&&"1"==mxUtils.getValue(this.state.style,
"flowAnimation","0")};mxShape.prototype.getFlowAnimationPath=function(N){var c=null!=this.node?this.node.getElementsByTagName("path"):null;if(null!=c)for(var g=null,k=0;k<c.length;k++)if("hidden"!=c[k].getAttribute("visibility")){if(!(null!=g&&g!=c[k].getAttribute("d")||null!=N&&0!=--N))return c[k]}else null==g&&(g=c[k].getAttribute("d"));return null};mxShape.prototype.addFlowAnimationToShape=function(){null!=this.state&&this.state.view.graph.addFlowAnimationToNode(this.getFlowAnimationPath(),this.state.style,
-this.state.view.scale,this.state.view.graph.addFlowAnimationStyle())};var m=mxShape.prototype.paint;mxShape.prototype.paint=function(N){m.apply(this,arguments);this.isFlowAnimationEnabled()&&this.addFlowAnimationToShape()};var n=mxShape.prototype.createSvgCanvas;mxShape.prototype.createSvgCanvas=function(N){N=n.apply(this,arguments);null!=this.state&&(N.adaptiveColors=this.state.view.graph.getAdaptiveColors());return N};var v=mxCellRenderer.prototype.isShapeInvalid;mxCellRenderer.prototype.isShapeInvalid=
-function(N,c){return v.apply(this,arguments)||null!=N.routedPoints&&null!=c.routedPoints&&!mxUtils.equalPoints(c.routedPoints,N.routedPoints)};var p=mxGraphView.prototype.updateCellState;mxGraphView.prototype.updateCellState=function(N){p.apply(this,arguments);this.graph.model.isEdge(N.cell)&&1!=N.style[mxConstants.STYLE_CURVED]&&this.updateLineJumps(N)};mxGraphView.prototype.updateLineJumps=function(N){var c=N.absolutePoints;if(Graph.lineJumpsEnabled){var g=null!=N.routedPoints,k=null;if(null!=c&&
+this.state.view.scale,this.state.view.graph.addFlowAnimationStyle())};var m=mxShape.prototype.paint;mxShape.prototype.paint=function(N){m.apply(this,arguments);this.isFlowAnimationEnabled()&&this.addFlowAnimationToShape()};var n=mxShape.prototype.createSvgCanvas;mxShape.prototype.createSvgCanvas=function(N){N=n.apply(this,arguments);null!=this.state&&(N.adaptiveColors=this.state.view.graph.getAdaptiveColors());return N};var u=mxCellRenderer.prototype.isShapeInvalid;mxCellRenderer.prototype.isShapeInvalid=
+function(N,c){return u.apply(this,arguments)||null!=N.routedPoints&&null!=c.routedPoints&&!mxUtils.equalPoints(c.routedPoints,N.routedPoints)};var p=mxGraphView.prototype.updateCellState;mxGraphView.prototype.updateCellState=function(N){p.apply(this,arguments);this.graph.model.isEdge(N.cell)&&1!=N.style[mxConstants.STYLE_CURVED]&&this.updateLineJumps(N)};mxGraphView.prototype.updateLineJumps=function(N){var c=N.absolutePoints;if(Graph.lineJumpsEnabled){var g=null!=N.routedPoints,k=null;if(null!=c&&
null!=this.validEdges&&"none"!==mxUtils.getValue(N.style,"jumpStyle","none")){var q=function(ba,l,x){var J=new mxPoint(l,x);J.type=ba;k.push(J);J=null!=N.routedPoints?N.routedPoints[k.length-1]:null;return null==J||J.type!=ba||J.x!=l||J.y!=x},A=.5*this.scale;g=!1;k=[];for(var D=0;D<c.length-1;D++){for(var H=c[D+1],K=c[D],P=[],W=c[D+2];D<c.length-2&&mxUtils.ptSegDistSq(K.x,K.y,W.x,W.y,H.x,H.y)<1*this.scale*this.scale;)H=W,D++,W=c[D+2];g=q(0,K.x,K.y)||g;for(var M=0;M<this.validEdges.length;M++){var ca=
this.validEdges[M],fa=ca.absolutePoints;if(null!=fa&&mxUtils.intersects(N,ca)&&"1"!=ca.style.noJump){var ha=null;for(ca=0;ca<fa.length-1;ca++){var ea=fa[ca+1],ka=fa[ca];for(W=fa[ca+2];ca<fa.length-2&&mxUtils.ptSegDistSq(ka.x,ka.y,W.x,W.y,ea.x,ea.y)<1*this.scale*this.scale;)ea=W,ca++,W=fa[ca+2];var pa=mxUtils.intersection(K.x,K.y,H.x,H.y,ka.x,ka.y,ea.x,ea.y);if(null!=pa&&(Math.abs(pa.x-K.x)>A||Math.abs(pa.y-K.y)>A)&&(Math.abs(pa.x-H.x)>A||Math.abs(pa.y-H.y)>A)&&(null==ha||mxUtils.ptLineDist(K.x,K.y,
H.x,H.y,ha.x,ha.y)>A||mxUtils.ptLineDist(K.x,K.y,H.x,H.y,ka.x,ka.y)>A)&&(null==W||mxUtils.ptLineDist(K.x,K.y,H.x,H.y,W.x,W.y)>A||mxUtils.ptLineDist(K.x,K.y,H.x,H.y,ea.x,ea.y)>A)){W=pa.x-K.x;ha=pa.y-K.y;pa={distSq:W*W+ha*ha,x:pa.x,y:pa.y};for(W=0;W<P.length;W++)if(P[W].distSq>pa.distSq){P.splice(W,0,pa);pa=null;break}null==pa||0!=P.length&&P[P.length-1].x===pa.x&&P[P.length-1].y===pa.y||P.push(pa)}ha=ka}}}for(ca=0;ca<P.length;ca++)g=q(1,P[ca].x,P[ca].y)||g}pa=c[c.length-1];g=q(0,pa.x,pa.y)||g}N.routedPoints=
@@ -2652,18 +2656,18 @@ mxGraphView.prototype.updateFloatingTerminalPoint=function(N,c,g,k){if(null==c||
N[A]);if(null!=D){var H=(D.x-q.x)*(D.x-q.x)+(D.y-q.y)*(D.y-q.y);if(null==k||H<k)g=D,k=H}}null!=g&&(q=g)}return q};var E=mxStencil.prototype.evaluateTextAttribute;mxStencil.prototype.evaluateTextAttribute=function(N,c,g){var k=E.apply(this,arguments);"1"==N.getAttribute("placeholders")&&null!=g.state&&(k=g.state.view.graph.replacePlaceholders(g.state.cell,k));return k};var R=mxCellRenderer.prototype.createShape;mxCellRenderer.prototype.createShape=function(N){if(null!=N.style&&"undefined"!==typeof pako){var c=
mxUtils.getValue(N.style,mxConstants.STYLE_SHAPE,null);if(null!=c&&"string"===typeof c&&"stencil("==c.substring(0,8))try{var g=c.substring(8,c.length-1),k=mxUtils.parseXml(Graph.decompress(g));return new mxShape(new mxStencil(k.documentElement))}catch(q){null!=window.console&&console.log("Error in shape: "+q)}}return R.apply(this,arguments)}})();mxStencilRegistry.libraries={};mxStencilRegistry.dynamicLoading=!0;mxStencilRegistry.allowEval=!0;mxStencilRegistry.packages=[];
mxStencilRegistry.filesLoaded={};mxStencilRegistry.isFileLoaded=function(b){return!mxClient.IS_FF&&mxStencilRegistry.filesLoaded[b]};mxStencilRegistry.setFileLoaded=function(b){mxStencilRegistry.filesLoaded[b]=!0};
-mxStencilRegistry.getStencil=function(b){var d=mxStencilRegistry.stencils[b];if(null==d&&null==mxCellRenderer.defaultShapes[b]&&mxStencilRegistry.dynamicLoading){var m=mxStencilRegistry.getBasenameForStencil(b);if(null!=m){d=mxStencilRegistry.libraries[m];if(null!=d){if(null==mxStencilRegistry.packages[m]){for(var n=0;n<d.length;n++){var v=d[n];if(!mxStencilRegistry.isFileLoaded(v))if(mxStencilRegistry.setFileLoaded(v),".xml"==v.toLowerCase().substring(v.length-4,v.length))mxStencilRegistry.loadStencilSet(v,
-null);else if(".js"==v.toLowerCase().substring(v.length-3,v.length))try{if(mxStencilRegistry.allowEval){var p=mxUtils.load(v);null!=p&&200<=p.getStatus()&&299>=p.getStatus()&&eval.call(window,p.getText())}}catch(z){null!=window.console&&console.log("error in getStencil:",b,m,d,v,z)}}mxStencilRegistry.packages[m]=1}}else m=m.replace("_-_","_"),mxStencilRegistry.loadStencilSet(STENCIL_PATH+"/"+m+".xml",null);d=mxStencilRegistry.stencils[b]}}return d};
+mxStencilRegistry.getStencil=function(b){var d=mxStencilRegistry.stencils[b];if(null==d&&null==mxCellRenderer.defaultShapes[b]&&mxStencilRegistry.dynamicLoading){var m=mxStencilRegistry.getBasenameForStencil(b);if(null!=m){d=mxStencilRegistry.libraries[m];if(null!=d){if(null==mxStencilRegistry.packages[m]){for(var n=0;n<d.length;n++){var u=d[n];if(!mxStencilRegistry.isFileLoaded(u))if(mxStencilRegistry.setFileLoaded(u),".xml"==u.toLowerCase().substring(u.length-4,u.length))mxStencilRegistry.loadStencilSet(u,
+null);else if(".js"==u.toLowerCase().substring(u.length-3,u.length))try{if(mxStencilRegistry.allowEval){var p=mxUtils.load(u);null!=p&&200<=p.getStatus()&&299>=p.getStatus()&&eval.call(window,p.getText())}}catch(z){null!=window.console&&console.log("error in getStencil:",b,m,d,u,z)}}mxStencilRegistry.packages[m]=1}}else m=m.replace("_-_","_"),mxStencilRegistry.loadStencilSet(STENCIL_PATH+"/"+m+".xml",null);d=mxStencilRegistry.stencils[b]}}return d};
mxStencilRegistry.getBasenameForStencil=function(b){var d=null;if(null!=b&&"string"===typeof b&&(b=b.split("."),0<b.length&&"mxgraph"==b[0])){d=b[1];for(var m=2;m<b.length-1;m++)d+="/"+b[m]}return d};
-mxStencilRegistry.loadStencilSet=function(b,d,m,n){var v=mxStencilRegistry.packages[b];if(null!=m&&m||null==v){var p=!1;if(null==v)try{if(n){mxStencilRegistry.loadStencil(b,mxUtils.bind(this,function(z){null!=z&&null!=z.documentElement&&(mxStencilRegistry.packages[b]=z,p=!0,mxStencilRegistry.parseStencilSet(z.documentElement,d,p))}));return}v=mxStencilRegistry.loadStencil(b);mxStencilRegistry.packages[b]=v;p=!0}catch(z){null!=window.console&&console.log("error in loadStencilSet:",b,z)}null!=v&&null!=
-v.documentElement&&mxStencilRegistry.parseStencilSet(v.documentElement,d,p)}};mxStencilRegistry.loadStencil=function(b,d){if(null!=d)mxUtils.get(b,mxUtils.bind(this,function(m){d(200<=m.getStatus()&&299>=m.getStatus()?m.getXml():null)}),mxUtils.bind(this,function(m){d(null)}));else return mxUtils.load(b).getXml()};mxStencilRegistry.parseStencilSets=function(b){for(var d=0;d<b.length;d++)mxStencilRegistry.parseStencilSet(mxUtils.parseXml(b[d]).documentElement)};
-mxStencilRegistry.parseStencilSet=function(b,d,m){if("stencils"==b.nodeName)for(var n=b.firstChild;null!=n;)"shapes"==n.nodeName&&mxStencilRegistry.parseStencilSet(n,d,m),n=n.nextSibling;else{m=null!=m?m:!0;n=b.firstChild;var v="";b=b.getAttribute("name");for(null!=b&&(v=b+".");null!=n;){if(n.nodeType==mxConstants.NODETYPE_ELEMENT&&(b=n.getAttribute("name"),null!=b)){v=v.toLowerCase();var p=b.replace(/ /g,"_");m&&mxStencilRegistry.addStencil(v+p.toLowerCase(),new mxStencil(n));if(null!=d){var z=n.getAttribute("w"),
-G=n.getAttribute("h");z=null==z?80:parseInt(z,10);G=null==G?80:parseInt(G,10);d(v,p,b,z,G)}}n=n.nextSibling}}};
+mxStencilRegistry.loadStencilSet=function(b,d,m,n){var u=mxStencilRegistry.packages[b];if(null!=m&&m||null==u){var p=!1;if(null==u)try{if(n){mxStencilRegistry.loadStencil(b,mxUtils.bind(this,function(z){null!=z&&null!=z.documentElement&&(mxStencilRegistry.packages[b]=z,p=!0,mxStencilRegistry.parseStencilSet(z.documentElement,d,p))}));return}u=mxStencilRegistry.loadStencil(b);mxStencilRegistry.packages[b]=u;p=!0}catch(z){null!=window.console&&console.log("error in loadStencilSet:",b,z)}null!=u&&null!=
+u.documentElement&&mxStencilRegistry.parseStencilSet(u.documentElement,d,p)}};mxStencilRegistry.loadStencil=function(b,d){if(null!=d)mxUtils.get(b,mxUtils.bind(this,function(m){d(200<=m.getStatus()&&299>=m.getStatus()?m.getXml():null)}),mxUtils.bind(this,function(m){d(null)}));else return mxUtils.load(b).getXml()};mxStencilRegistry.parseStencilSets=function(b){for(var d=0;d<b.length;d++)mxStencilRegistry.parseStencilSet(mxUtils.parseXml(b[d]).documentElement)};
+mxStencilRegistry.parseStencilSet=function(b,d,m){if("stencils"==b.nodeName)for(var n=b.firstChild;null!=n;)"shapes"==n.nodeName&&mxStencilRegistry.parseStencilSet(n,d,m),n=n.nextSibling;else{m=null!=m?m:!0;n=b.firstChild;var u="";b=b.getAttribute("name");for(null!=b&&(u=b+".");null!=n;){if(n.nodeType==mxConstants.NODETYPE_ELEMENT&&(b=n.getAttribute("name"),null!=b)){u=u.toLowerCase();var p=b.replace(/ /g,"_");m&&mxStencilRegistry.addStencil(u+p.toLowerCase(),new mxStencil(n));if(null!=d){var z=n.getAttribute("w"),
+G=n.getAttribute("h");z=null==z?80:parseInt(z,10);G=null==G?80:parseInt(G,10);d(u,p,b,z,G)}}n=n.nextSibling}}};
"undefined"!==typeof mxVertexHandler&&function(){function b(){var y=document.createElement("div");y.className="geHint";y.style.whiteSpace="nowrap";y.style.position="absolute";return y}function d(y,Q){switch(Q){case mxConstants.POINTS:return y;case mxConstants.MILLIMETERS:return(y/mxConstants.PIXELS_PER_MM).toFixed(1);case mxConstants.METERS:return(y/(1E3*mxConstants.PIXELS_PER_MM)).toFixed(4);case mxConstants.INCHES:return(y/mxConstants.PIXELS_PER_INCH).toFixed(3)}}mxConstants.HANDLE_FILLCOLOR="#29b6f2";
mxConstants.HANDLE_STROKECOLOR="#0088cf";mxConstants.VERTEX_SELECTION_COLOR="#00a8ff";mxConstants.OUTLINE_COLOR="#00a8ff";mxConstants.OUTLINE_HANDLE_FILLCOLOR="#99ccff";mxConstants.OUTLINE_HANDLE_STROKECOLOR="#00a8ff";mxConstants.CONNECT_HANDLE_FILLCOLOR="#cee7ff";mxConstants.EDGE_SELECTION_COLOR="#00a8ff";mxConstants.DEFAULT_VALID_COLOR="#00a8ff";mxConstants.LABEL_HANDLE_FILLCOLOR="#cee7ff";mxConstants.GUIDE_COLOR="#0088cf";mxConstants.HIGHLIGHT_STROKEWIDTH=5;mxConstants.HIGHLIGHT_OPACITY=50;mxConstants.HIGHLIGHT_SIZE=
5;mxWindow.prototype.closeImage=Graph.createSvgImage(18,10,'<path d="M 5 1 L 13 9 M 13 1 L 5 9" stroke="#707070" stroke-width="2"/>').src;mxWindow.prototype.minimizeImage=Graph.createSvgImage(14,10,'<path d="M 3 7 L 7 3 L 11 7" stroke="#707070" stroke-width="2" fill="none"/>').src;mxWindow.prototype.normalizeImage=Graph.createSvgImage(14,10,'<path d="M 3 3 L 7 7 L 11 3" stroke="#707070" stroke-width="2" fill="none"/>').src;mxWindow.prototype.resizeImage=Graph.createSvgImage(10,10,'<path d="Z" stroke="#C0C0C0" stroke-width="1" fill="none"/>').src;
mxEdgeHandler.prototype.snapToTerminals=!0;mxGraphHandler.prototype.guidesEnabled=!0;mxGraphHandler.prototype.removeEmptyParents=!0;mxRubberband.prototype.fadeOut=!0;mxGuide.prototype.isEnabledForEvent=function(y){return!mxEvent.isAltDown(y)||mxEvent.isShiftDown(y)};var m=mxGraphLayout.prototype.isVertexIgnored;mxGraphLayout.prototype.isVertexIgnored=function(y){return m.apply(this,arguments)||this.graph.isTableRow(y)||this.graph.isTableCell(y)};var n=mxGraphLayout.prototype.isEdgeIgnored;mxGraphLayout.prototype.isEdgeIgnored=
-function(y){return n.apply(this,arguments)||this.graph.isEdgeIgnored(y)};var v=mxConnectionHandler.prototype.isCreateTarget;mxConnectionHandler.prototype.isCreateTarget=function(y){return this.graph.isCloneEvent(y)!=v.apply(this,arguments)};mxConstraintHandler.prototype.createHighlightShape=function(){var y=new mxEllipse(null,this.highlightColor,this.highlightColor,0);y.opacity=mxConstants.HIGHLIGHT_OPACITY;return y};mxConnectionHandler.prototype.livePreview=!0;mxConnectionHandler.prototype.cursor=
+function(y){return n.apply(this,arguments)||this.graph.isEdgeIgnored(y)};var u=mxConnectionHandler.prototype.isCreateTarget;mxConnectionHandler.prototype.isCreateTarget=function(y){return this.graph.isCloneEvent(y)!=u.apply(this,arguments)};mxConstraintHandler.prototype.createHighlightShape=function(){var y=new mxEllipse(null,this.highlightColor,this.highlightColor,0);y.opacity=mxConstants.HIGHLIGHT_OPACITY;return y};mxConnectionHandler.prototype.livePreview=!0;mxConnectionHandler.prototype.cursor=
"crosshair";mxConnectionHandler.prototype.createEdgeState=function(y){y=this.graph.createCurrentEdgeStyle();y=this.graph.createEdge(null,null,null,null,null,y);y=new mxCellState(this.graph.view,y,this.graph.getCellStyle(y));for(var Q in this.graph.currentEdgeStyle)y.style[Q]=this.graph.currentEdgeStyle[Q];if(null!=this.previous){var V=this.previous.style.newEdgeStyle;if(null!=V)try{var X=JSON.parse(V);for(Q in X)y.style[Q]=X[Q]}catch(ia){}}y.style=this.graph.postProcessCellStyle(y.cell,y.style);return y};
var p=mxConnectionHandler.prototype.createShape;mxConnectionHandler.prototype.createShape=function(){var y=p.apply(this,arguments);y.isDashed="1"==this.graph.currentEdgeStyle[mxConstants.STYLE_DASHED];return y};mxConnectionHandler.prototype.updatePreview=function(y){};var z=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var y=z.apply(this,arguments),Q=y.getCell;y.getCell=mxUtils.bind(this,function(V){var X=Q.apply(this,arguments);this.error=null;return X});
return y};Graph.prototype.defaultVertexStyle={};Graph.prototype.defaultEdgeStyle={edgeStyle:"orthogonalEdgeStyle",rounded:"0",jettySize:"auto",orthogonalLoop:"1"};Graph.prototype.createCurrentEdgeStyle=function(){for(var y="edgeStyle="+(this.currentEdgeStyle.edgeStyle||"none")+";",Q="shape curved rounded comic sketch fillWeight hachureGap hachureAngle jiggle disableMultiStroke disableMultiStrokeFill fillStyle curveFitting simplification comicStyle jumpStyle jumpSize".split(" "),V=0;V<Q.length;V++)null!=
@@ -2738,11 +2742,11 @@ y.getTitleForCellState=mxUtils.bind(this,function(V,X){return Editor.convertHtml
!0);gb=this.useCssTransforms;var lb=this.enableFlowAnimation;this.enableFlowAnimation=!1;gb&&(this.useCssTransforms=!1,this.view.revalidate(),this.sizeDidChange());try{Q=null!=Q?Q:1;V=null!=V?V:0;la=null!=la?la:!0;qa=null!=qa?qa:!0;ya=null!=ya?ya:!1;ua=null!=ua?ua:this.defaultExportLinkTarget;var jb="page"==Za?this.view.getBackgroundPageBounds():la&&null==ab||X||"diagram"==Za?this.getGraphBounds():this.getBoundingBox(this.getSelectionCells()),Ra=this.backgroundImage,kb=this.view.translate,qb=this.view.scale;
"diagram"==Za&&null!=Ra&&null!=Ra.width&&null!=Ra.height&&(jb=mxRectangle.fromRectangle(jb),jb.add(new mxRectangle((kb.x+Ra.x)*qb,(kb.y+Ra.y)*qb,Ra.width*qb,Ra.height*qb)));if(null==jb)throw Error(mxResources.get("drawingEmpty"));X=Q/qb;var pb=Math.max(1,Math.ceil(jb.width*X)+2*V)+(ya&&0==V?5:0),rb=Math.max(1,Math.ceil(jb.height*X)+2*V)+(ya&&0==V?5:0),ub=mxUtils.getLightDarkColor(y),sb=Graph.createSvgNode(0,0,pb,rb,ub),tb=sb.ownerDocument;if(null!=y){var vb=mxUtils.createElementNs(tb,mxConstants.NS_SVG,
"rect");vb.setAttribute("fill",ub.light);vb.style.fill=ub.cssText;vb.setAttribute("width","100%");vb.setAttribute("height","100%");vb.setAttribute("x","0");vb.setAttribute("y","0");sb.appendChild(vb)}var Ab=mxUtils.createElementNs(tb,mxConstants.NS_SVG,"g");sb.appendChild(Ab);var wb=this.createSvgCanvas(Ab);wb.translate(Math.floor(V/Q-jb.x/qb),Math.floor(V/Q-jb.y/qb));wb.idPrefix="drawio-svg-"+Editor.guid();var zb=document.createElement("div"),xb=wb.getAlternateText;wb.getAlternateText=function(ob,
-Bb,f,t,B,u,C,F,I,ja,O,va,oa){if(null!=u&&0<this.state.fontSize)try{mxUtils.isNode(u)?u=u.innerText:(zb.innerHTML=u,u=mxUtils.extractTextWithWhitespace(zb.childNodes));for(var bb=Math.ceil(2*t/this.state.fontSize),mb=[],hb=0,Ga=0;(0==bb||hb<bb)&&Ga<u.length;){var La=u.charCodeAt(Ga);if(10==La||13==La){if(0<hb)break}else mb.push(u.charAt(Ga)),255>La&&hb++;Ga++}mb.length<u.length&&1<u.length-mb.length&&(u=mxUtils.trim(mb.join(""))+"...");return u}catch(Ja){return xb.apply(this,arguments)}else return xb.apply(this,
+Bb,f,t,B,v,C,F,I,ja,O,va,oa){if(null!=v&&0<this.state.fontSize)try{mxUtils.isNode(v)?v=v.innerText:(zb.innerHTML=v,v=mxUtils.extractTextWithWhitespace(zb.childNodes));for(var bb=Math.ceil(2*t/this.state.fontSize),mb=[],hb=0,Ga=0;(0==bb||hb<bb)&&Ga<v.length;){var La=v.charCodeAt(Ga);if(10==La||13==La){if(0<hb)break}else mb.push(v.charAt(Ga)),255>La&&hb++;Ga++}mb.length<v.length&&1<v.length-mb.length&&(v=mxUtils.trim(mb.join(""))+"...");return v}catch(Ja){return xb.apply(this,arguments)}else return xb.apply(this,
arguments)};if(null!=Ra&&null!=Ra.width&&null!=Ra.height){y=qb/Q;var nb=new mxRectangle((Ra.x+kb.x)*y,(Ra.y+kb.y)*y,Ra.width*y,Ra.height*y);mxUtils.intersects(jb,nb)&&wb.image(Ra.x+kb.x,Ra.y+kb.y,Ra.width,Ra.height,Ra.src,!0)}wb.scale(X);wb.textEnabled=qa;wa=null!=wa?wa:this.createSvgImageExport();var Cb=wa.getLinkForCellState;wa.getLinkForCellState=function(ob,Bb){var f=ob.view.graph.getAbsoluteUrl(Cb.apply(this,arguments));return null==f||ob.view.graph.isCustomLink(f)?null:f};wa.getLinkTargetForCellState=
function(ob,Bb){return ob.view.graph.getLinkTargetForCell(ob.cell)};var Fb=wa.drawCellState,yb=null,Db=mxUtils.bind(this,function(){if(null==yb){yb="ge-flow-animation-"+Editor.guid();var ob=null!=tb.createElementNS?tb.createElementNS(mxConstants.NS_SVG,"style"):tb.createElement("style");ob.innerHTML=this.createFlowAnimationCss(yb);tb.getElementsByTagName("defs")[0].appendChild(ob)}return yb});wa.drawCellState=function(ob,Bb){for(var f=ob.view.graph,t=null!=ab?ab.get(ob.cell):f.isCellSelected(ob.cell),
-B=f.model.getParent(ob.cell);!(la&&null==ab||t)&&null!=B;)t=null!=ab?ab.get(B):f.isCellSelected(B),B=f.model.getParent(B);if(null!=ob.shape)try{var u=ob.shape.isFlowAnimationEnabled,C=ob.shape.addFlowAnimationToShape;ob.shape.isFlowAnimationEnabled=function(){return lb&&f.model.isEdge(ob.cell)&&"1"==mxUtils.getValue(ob.style,"flowAnimation","0")};ob.shape.addFlowAnimationToShape=function(){f.addFlowAnimationToNode(this.getFlowAnimationPath(),ob.style,Q,Db())};if(la&&null==ab||t)f.view.redrawEnumerationState(ob),
-Fb.apply(this,arguments),this.doDrawShape(ob.secondLabel,Bb)}finally{ob.shape.isFlowAnimationEnabled=u,ob.shape.addFlowAnimationToShape=C}};var Eb=null!=this.view.currentRoot?this.view.currentRoot:this.model.root;wa.drawState(this.getView().getState(Eb),wb);this.addForeignObjectWarning(wb,sb);fb?this.disableSvgLinks(sb):this.updateSvgLinks(sb,ua,!0);return sb}finally{this.enableFlowAnimation=lb,gb&&(this.useCssTransforms=!0,this.view.revalidate(),this.sizeDidChange())}};Graph.prototype.addForeignObjectWarning=
+B=f.model.getParent(ob.cell);!(la&&null==ab||t)&&null!=B;)t=null!=ab?ab.get(B):f.isCellSelected(B),B=f.model.getParent(B);if(null!=ob.shape)try{var v=ob.shape.isFlowAnimationEnabled,C=ob.shape.addFlowAnimationToShape;ob.shape.isFlowAnimationEnabled=function(){return lb&&f.model.isEdge(ob.cell)&&"1"==mxUtils.getValue(ob.style,"flowAnimation","0")};ob.shape.addFlowAnimationToShape=function(){f.addFlowAnimationToNode(this.getFlowAnimationPath(),ob.style,Q,Db())};if(la&&null==ab||t)f.view.redrawEnumerationState(ob),
+Fb.apply(this,arguments),this.doDrawShape(ob.secondLabel,Bb)}finally{ob.shape.isFlowAnimationEnabled=v,ob.shape.addFlowAnimationToShape=C}};var Eb=null!=this.view.currentRoot?this.view.currentRoot:this.model.root;wa.drawState(this.getView().getState(Eb),wb);this.addForeignObjectWarning(wb,sb);fb?this.disableSvgLinks(sb):this.updateSvgLinks(sb,ua,!0);return sb}finally{this.enableFlowAnimation=lb,gb&&(this.useCssTransforms=!0,this.view.revalidate(),this.sizeDidChange())}};Graph.prototype.addForeignObjectWarning=
function(y,Q){if("0"!=urlParams["svg-warning"]&&0<Q.getElementsByTagName("foreignObject").length){var V=y.createElement("switch"),X=y.createElement("g");X.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility");var ia=y.createElement("a");ia.setAttribute("transform","translate(0,-5)");null==ia.setAttributeNS||Q.ownerDocument!=document&&null==document.documentMode?(ia.setAttribute("xlink:href",Graph.foreignObjectWarningLink),ia.setAttribute("target","_blank")):(ia.setAttributeNS(mxConstants.NS_XLINK,
"xlink:href",Graph.foreignObjectWarningLink),ia.setAttributeNS(mxConstants.NS_XLINK,"target","_blank"));y=y.createElement("text");y.setAttribute("text-anchor","middle");y.setAttribute("font-size","10px");y.setAttribute("x","50%");y.setAttribute("y","100%");mxUtils.write(y,Graph.foreignObjectWarningText);V.appendChild(X);ia.appendChild(y);V.appendChild(ia);Q.appendChild(V)}};Graph.prototype.disableSvgLinks=function(y,Q){y=y.getElementsByTagName("a");for(var V=0;V<y.length;V++){var X=y[V].getAttribute("href");
null==X&&(X=y[V].getAttribute("xlink:href"));null!=X&&(y[V].style.pointerEvents="none",y[V].setAttribute("href",""));Q&&Q(y[V])}};Graph.prototype.updateSvgLinks=function(y,Q,V){y=y.getElementsByTagName("a");for(var X=0;X<y.length;X++)if(null==y[X].getAttribute("target")){var ia=y[X].getAttribute("href");null==ia&&(ia=y[X].getAttribute("xlink:href"));null!=ia&&(null!=Q&&/^https?:\/\//.test(ia)?y[X].setAttribute("target",Q):V&&this.isCustomLink(ia)&&y[X].setAttribute("href","javascript:void(0);"))}};
@@ -2878,254 +2882,254 @@ y=mxUtils.getRotatedPoint(this.getConnectHandlePosition(),y,Q,V),this.moveSizerT
this.state.text.boundingBox:null,null==V&&(V=this.state),V=V.y+V.height,null!=Q&&(V=Math.max(V,Q.y+Q.height)),this.linkHint.style.left=y.x+y.width/2+"px",this.linkHint.style.top=Math.round(V+this.verticalOffset/2+Editor.hintOffset)+"px",this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":"")};var sa=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(){sa.apply(this,arguments);this.destroyMoveHandles();this.destroyCornerHandles();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 Fa=mxEdgeHandler.prototype.redrawHandles;mxEdgeHandler.prototype.redrawHandles=function(){if(null!=this.marker&&(Fa.apply(this),
null!=this.state&&null!=this.linkHint)){var y=this.state;null!=this.state.text&&null!=this.state.text.bounds&&(y=new mxRectangle(y.x,y.y,y.width,y.height),y.add(this.state.text.bounds));this.linkHint.style.left=y.x+y.width/2+"px";this.linkHint.style.top=Math.round(y.y+y.height+Editor.hintOffset)+"px";this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":""}};var Qa=mxEdgeHandler.prototype.reset;mxEdgeHandler.prototype.reset=function(){Qa.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility=
-"")};var Ta=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){Ta.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(f,t,B){mxShape.call(this);this.line=f;this.stroke=t;this.strokewidth=null!=B?B:1;this.updateBoundsFromLine()}function d(){mxSwimlane.call(this)}function m(){mxSwimlane.call(this)}function n(){mxCylinder.call(this)}function v(){mxConnector.call(this)}function p(){mxCylinder.call(this)}function z(){mxActor.call(this)}function G(){mxCylinder.call(this)}function U(){mxCylinder.call(this)}function E(){mxCylinder.call(this)}function R(){mxCylinder.call(this)}function N(){mxShape.call(this)}
-function c(){mxShape.call(this)}function g(f,t,B,u){mxShape.call(this);this.bounds=f;this.fill=t;this.stroke=B;this.strokewidth=null!=u?u:1}function k(){mxActor.call(this)}function q(){mxCylinder.call(this)}function A(){mxCylinder.call(this)}function D(){mxActor.call(this)}function H(){mxActor.call(this)}function K(){mxActor.call(this)}function P(){mxActor.call(this)}function W(){mxActor.call(this)}function M(){mxActor.call(this)}function ca(){mxActor.call(this)}function fa(f,t){this.canvas=f;this.canvas.setLineJoin("round");
+"")};var Ta=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){Ta.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(f,t,B){mxShape.call(this);this.line=f;this.stroke=t;this.strokewidth=null!=B?B:1;this.updateBoundsFromLine()}function d(){mxSwimlane.call(this)}function m(){mxSwimlane.call(this)}function n(){mxCylinder.call(this)}function u(){mxConnector.call(this)}function p(){mxCylinder.call(this)}function z(){mxActor.call(this)}function G(){mxCylinder.call(this)}function U(){mxCylinder.call(this)}function E(){mxCylinder.call(this)}function R(){mxCylinder.call(this)}function N(){mxShape.call(this)}
+function c(){mxShape.call(this)}function g(f,t,B,v){mxShape.call(this);this.bounds=f;this.fill=t;this.stroke=B;this.strokewidth=null!=v?v:1}function k(){mxActor.call(this)}function q(){mxCylinder.call(this)}function A(){mxCylinder.call(this)}function D(){mxActor.call(this)}function H(){mxActor.call(this)}function K(){mxActor.call(this)}function P(){mxActor.call(this)}function W(){mxActor.call(this)}function M(){mxActor.call(this)}function ca(){mxActor.call(this)}function fa(f,t){this.canvas=f;this.canvas.setLineJoin("round");
this.canvas.setLineCap("round");this.defaultVariation=t;this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,fa.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,fa.prototype.moveTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,fa.prototype.close);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,fa.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=
mxUtils.bind(this,fa.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,fa.prototype.arcTo)}function ha(){mxRectangleShape.call(this)}function ea(){mxRectangleShape.call(this)}function ka(){mxActor.call(this)}function pa(){mxActor.call(this)}function ba(){mxActor.call(this)}function l(){mxRectangleShape.call(this)}function x(){mxRectangleShape.call(this)}function J(){mxCylinder.call(this)}function L(){mxShape.call(this)}function T(){mxShape.call(this)}function Y(){mxEllipse.call(this)}
function aa(){mxShape.call(this)}function S(){mxShape.call(this)}function Z(){mxRectangleShape.call(this)}function da(){mxShape.call(this)}function ma(){mxShape.call(this)}function na(){mxShape.call(this)}function ra(){mxShape.call(this)}function ta(){mxShape.call(this)}function Aa(){mxCylinder.call(this)}function Ca(){mxCylinder.call(this)}function xa(){mxRectangleShape.call(this)}function Ea(){mxDoubleEllipse.call(this)}function Ua(){mxDoubleEllipse.call(this)}function Da(){mxArrowConnector.call(this);
this.spacing=0}function Ha(){mxArrowConnector.call(this);this.spacing=0}function $a(){mxActor.call(this)}function Ka(){mxRectangleShape.call(this)}function za(){mxActor.call(this)}function Sa(){mxActor.call(this)}function Oa(){mxActor.call(this)}function Ma(){mxActor.call(this)}function Na(){mxActor.call(this)}function Ba(){mxActor.call(this)}function Ya(){mxActor.call(this)}function Pa(){mxActor.call(this)}function sa(){mxActor.call(this)}function Fa(){mxActor.call(this)}function Qa(){mxEllipse.call(this)}
-function Ta(){mxEllipse.call(this)}function y(){mxEllipse.call(this)}function Q(){mxRhombus.call(this)}function V(){mxEllipse.call(this)}function X(){mxEllipse.call(this)}function ia(){mxEllipse.call(this)}function la(){mxEllipse.call(this)}function qa(){mxActor.call(this)}function wa(){mxActor.call(this)}function ua(){mxActor.call(this)}function ya(f,t,B,u){mxShape.call(this);this.bounds=f;this.fill=t;this.stroke=B;this.strokewidth=null!=u?u:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=
-!0;this.indent=2;this.rectOutline="single"}function Va(){mxConnector.call(this)}function Wa(){mxConnector.call(this)}function Za(){mxActor.call(this)}function gb(f,t,B,u,C,F,I,ja,O,va){I+=O;var oa=u.clone();u.x-=C*(2*I+O);u.y-=F*(2*I+O);C*=I+O;F*=I+O;return function(){f.ellipse(oa.x-C-I,oa.y-F-I,2*I,2*I);va?f.fillAndStroke():f.stroke()}}mxUtils.extend(b,mxShape);b.prototype.updateBoundsFromLine=function(){var f=null;if(null!=this.line)for(var t=0;t<this.line.length;t++){var B=this.line[t];null!=B&&
-(B=new mxRectangle(B.x,B.y,this.strokewidth,this.strokewidth),null==f?f=B:f.add(B))}this.bounds=null!=f?f:new mxRectangle};b.prototype.paintVertexShape=function(f,t,B,u,C){this.paintTableLine(f,this.line,0,0)};b.prototype.paintTableLine=function(f,t,B,u){if(null!=t){var C=null;f.begin();for(var F=0;F<t.length;F++){var I=t[F];null!=I&&(null==C?f.moveTo(I.x+B,I.y+u):null!=C&&f.lineTo(I.x+B,I.y+u));C=I}f.end();f.stroke()}};b.prototype.intersectsRectangle=function(f){var t=!1;if(mxShape.prototype.intersectsRectangle.apply(this,
-arguments)&&null!=this.line)for(var B=null,u=0;u<this.line.length&&!t;u++){var C=this.line[u];null!=C&&null!=B&&(t=mxUtils.rectangleIntersectsSegment(f,B,C));B=C}return t};mxCellRenderer.registerShape("tableLine",b);mxUtils.extend(d,mxSwimlane);d.prototype.fixedHeaderDefault=!1;d.prototype.paintVertexShape=function(f,t,B,u,C){var F=null!=this.state?this.state.view.graph.isCellCollapsed(this.state.cell):!1,I=this.isHorizontal(),ja=this.getTitleSize(),O=mxUtils.getValue(this.style,mxConstants.STYLE_FIXED_HEADER,
-this.fixedHeaderDefault);0==ja&&!O||this.outline?ia.prototype.paintVertexShape.apply(this,arguments):(mxSwimlane.prototype.paintVertexShape.apply(this,arguments),f.translate(-t,-B));F||this.outline||!(I&&ja<C||!I&&ja<u)||this.paintForeground(f,t,B,u,C)};d.prototype.paintForeground=function(f,t,B,u,C){if(null!=this.state){var F=this.flipH,I=this.flipV;if(this.direction==mxConstants.DIRECTION_NORTH||this.direction==mxConstants.DIRECTION_SOUTH){var ja=F;F=I;I=ja}f.rotate(-this.getShapeRotation(),F,I,
-t+u/2,B+C/2);s=this.scale;t=this.bounds.x/s;B=this.bounds.y/s;u=this.bounds.width/s;C=this.bounds.height/s;this.paintTableForeground(f,t,B,u,C)}};d.prototype.paintTableForeground=function(f,t,B,u,C){u=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(C=0;C<u.length;C++)b.prototype.paintTableLine(f,u[C],t,B)};d.prototype.configurePointerEvents=function(f){0==this.getTitleSize()?f.pointerEvents=
-!1:mxSwimlane.prototype.configurePointerEvents.apply(this,arguments)};mxCellRenderer.registerShape("table",d);mxUtils.extend(m,d);m.prototype.paintForeground=function(){};mxCellRenderer.registerShape("tableRow",m);mxUtils.extend(n,mxCylinder);n.prototype.size=20;n.prototype.darkOpacity=0;n.prototype.darkOpacity2=0;n.prototype.paintVertexShape=function(f,t,B,u,C){var F=Math.max(0,Math.min(u,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),I=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,
-"darkOpacity",this.darkOpacity)))),ja=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity2",this.darkOpacity2))));f.translate(t,B);f.begin();f.moveTo(0,0);f.lineTo(u-F,0);f.lineTo(u,F);f.lineTo(u,C);f.lineTo(F,C);f.lineTo(0,C-F);f.lineTo(0,0);f.close();f.end();f.fillAndStroke();this.outline||(f.setShadow(!1),0!=I&&(f.setFillAlpha(Math.abs(I)),f.setFillColor(0>I?"#FFFFFF":"#000000"),f.begin(),f.moveTo(0,0),f.lineTo(u-F,0),f.lineTo(u,F),f.lineTo(F,F),f.close(),f.fill()),0!=ja&&
-(f.setFillAlpha(Math.abs(ja)),f.setFillColor(0>ja?"#FFFFFF":"#000000"),f.begin(),f.moveTo(0,0),f.lineTo(F,F),f.lineTo(F,C),f.lineTo(0,C-F),f.close(),f.fill()),f.begin(),f.moveTo(F,C),f.lineTo(F,F),f.lineTo(0,0),f.moveTo(F,F),f.lineTo(u,F),f.end(),f.stroke())};n.prototype.getLabelMargins=function(f){return mxUtils.getValue(this.style,"boundedLbl",!1)?(f=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(f,f,0,0)):null};mxCellRenderer.registerShape("cube",n);var ib=
-Math.tan(mxUtils.toRadians(30)),fb=(.5-ib)/2;mxCellRenderer.registerShape("isoRectangle",z);mxUtils.extend(v,mxConnector);v.prototype.paintEdgeShape=function(f,t){var B=this.createMarker(f,t,!0),u=this.createMarker(f,t,!1);f.setDashed(!1);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);null!=this.isDashed&&f.setDashed(this.isDashed,null!=this.style?1==mxUtils.getValue(this.style,mxConstants.STYLE_FIX_DASH,!1):!1);f.setShadow(!1);f.setStrokeColor(this.fill);mxPolyline.prototype.paintEdgeShape.apply(this,
-arguments);f.setStrokeColor(this.stroke);f.setFillColor(this.stroke);f.setDashed(!1);null!=B&&B();null!=u&&u()};mxCellRenderer.registerShape("wire",v);mxUtils.extend(p,mxCylinder);p.prototype.size=6;p.prototype.paintVertexShape=function(f,t,B,u,C){f.setFillColor(this.stroke);var F=Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size))-2)+2*this.strokewidth;f.ellipse(t+.5*(u-F),B+.5*(C-F),F,F);f.fill();f.setFillColor(mxConstants.NONE);f.rect(t,B,u,C);f.fill()};mxCellRenderer.registerShape("waypoint",
-p);mxUtils.extend(z,mxActor);z.prototype.size=20;z.prototype.redrawPath=function(f,t,B,u,C){t=Math.min(u,C/ib);f.translate((u-t)/2,(C-t)/2+t/4);f.moveTo(0,.25*t);f.lineTo(.5*t,t*fb);f.lineTo(t,.25*t);f.lineTo(.5*t,(.5-fb)*t);f.lineTo(0,.25*t);f.close();f.end()};mxCellRenderer.registerShape("isoRectangle",z);mxUtils.extend(G,mxCylinder);G.prototype.size=20;G.prototype.redrawPath=function(f,t,B,u,C,F){t=Math.min(u,C/(.5+ib));F?(f.moveTo(0,.25*t),f.lineTo(.5*t,(.5-fb)*t),f.lineTo(t,.25*t),f.moveTo(.5*
-t,(.5-fb)*t),f.lineTo(.5*t,(1-fb)*t)):(f.translate((u-t)/2,(C-t)/2),f.moveTo(0,.25*t),f.lineTo(.5*t,t*fb),f.lineTo(t,.25*t),f.lineTo(t,.75*t),f.lineTo(.5*t,(1-fb)*t),f.lineTo(0,.75*t),f.close());f.end()};mxCellRenderer.registerShape("isoCube",G);mxUtils.extend(U,mxCylinder);U.prototype.redrawPath=function(f,t,B,u,C,F){t=Math.min(C/2,Math.round(C/8)+this.strokewidth-1);if(F&&null!=this.fill||!F&&null==this.fill)f.moveTo(0,t),f.curveTo(0,2*t,u,2*t,u,t),F||(f.stroke(),f.begin()),f.translate(0,t/2),f.moveTo(0,
-t),f.curveTo(0,2*t,u,2*t,u,t),F||(f.stroke(),f.begin()),f.translate(0,t/2),f.moveTo(0,t),f.curveTo(0,2*t,u,2*t,u,t),F||(f.stroke(),f.begin()),f.translate(0,-t);F||(f.moveTo(0,t),f.curveTo(0,-t/3,u,-t/3,u,t),f.lineTo(u,C-t),f.curveTo(u,C+t/3,0,C+t/3,0,C-t),f.close())};U.prototype.getLabelMargins=function(f){return new mxRectangle(0,2.5*Math.min(f.height/2,Math.round(f.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",U);mxUtils.extend(E,mxCylinder);E.prototype.size=30;E.prototype.darkOpacity=
-0;E.prototype.paintVertexShape=function(f,t,B,u,C){var F=Math.max(0,Math.min(u,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),I=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));f.translate(t,B);f.begin();f.moveTo(0,0);f.lineTo(u-F,0);f.lineTo(u,F);f.lineTo(u,C);f.lineTo(0,C);f.lineTo(0,0);f.close();f.end();f.fillAndStroke();this.outline||(f.setShadow(!1),0!=I&&(f.setFillAlpha(Math.abs(I)),f.setFillColor(0>I?"#FFFFFF":"#000000"),
-f.begin(),f.moveTo(u-F,0),f.lineTo(u-F,F),f.lineTo(u,F),f.close(),f.fill()),f.begin(),f.moveTo(u-F,0),f.lineTo(u-F,F),f.lineTo(u,F),f.end(),f.stroke())};mxCellRenderer.registerShape("note",E);mxUtils.extend(R,E);mxCellRenderer.registerShape("note2",R);R.prototype.getLabelMargins=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(f.height*this.scale,t*this.scale),0,0)}return null};mxUtils.extend(N,mxShape);N.prototype.isoAngle=
-15;N.prototype.paintVertexShape=function(f,t,B,u,C){var F=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;F=Math.min(u*Math.tan(F),.5*C);f.translate(t,B);f.begin();f.moveTo(.5*u,0);f.lineTo(u,F);f.lineTo(u,C-F);f.lineTo(.5*u,C);f.lineTo(0,C-F);f.lineTo(0,F);f.close();f.fillAndStroke();f.setShadow(!1);f.begin();f.moveTo(0,F);f.lineTo(.5*u,2*F);f.lineTo(u,F);f.moveTo(.5*u,2*F);f.lineTo(.5*u,C);f.stroke()};mxCellRenderer.registerShape("isoCube2",
-N);mxUtils.extend(c,mxShape);c.prototype.size=15;c.prototype.paintVertexShape=function(f,t,B,u,C){var F=Math.max(0,Math.min(.5*C,parseFloat(mxUtils.getValue(this.style,"size",this.size))));f.translate(t,B);0==F?(f.rect(0,0,u,C),f.fillAndStroke()):(f.begin(),f.moveTo(0,F),f.arcTo(.5*u,F,0,0,1,.5*u,0),f.arcTo(.5*u,F,0,0,1,u,F),f.lineTo(u,C-F),f.arcTo(.5*u,F,0,0,1,.5*u,C),f.arcTo(.5*u,F,0,0,1,0,C-F),f.close(),f.fillAndStroke(),f.setShadow(!1),f.begin(),f.moveTo(u,F),f.arcTo(.5*u,F,0,0,1,.5*u,2*F),f.arcTo(.5*
-u,F,0,0,1,0,F),f.stroke())};mxCellRenderer.registerShape("cylinder2",c);mxUtils.extend(g,mxCylinder);g.prototype.size=15;g.prototype.paintVertexShape=function(f,t,B,u,C){var F=Math.max(0,Math.min(.5*C,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),I=mxUtils.getValue(this.style,"lid",!0);f.translate(t,B);0==F?(f.rect(0,0,u,C),f.fillAndStroke()):(f.begin(),I?(f.moveTo(0,F),f.arcTo(.5*u,F,0,0,1,.5*u,0),f.arcTo(.5*u,F,0,0,1,u,F)):(f.moveTo(0,0),f.arcTo(.5*u,F,0,0,0,.5*u,F),f.arcTo(.5*u,F,
-0,0,0,u,0)),f.lineTo(u,C-F),f.arcTo(.5*u,F,0,0,1,.5*u,C),f.arcTo(.5*u,F,0,0,1,0,C-F),f.close(),f.fillAndStroke(),f.setShadow(!1),I&&(f.begin(),f.moveTo(u,F),f.arcTo(.5*u,F,0,0,1,.5*u,2*F),f.arcTo(.5*u,F,0,0,1,0,F),f.stroke()))};mxCellRenderer.registerShape("cylinder3",g);mxUtils.extend(k,mxActor);k.prototype.redrawPath=function(f,t,B,u,C){f.moveTo(0,0);f.quadTo(u/2,.5*C,u,0);f.quadTo(.5*u,C/2,u,C);f.quadTo(u/2,.5*C,0,C);f.quadTo(.5*u,C/2,0,0);f.end()};mxCellRenderer.registerShape("switch",k);mxUtils.extend(q,
-mxCylinder);q.prototype.tabWidth=60;q.prototype.tabHeight=20;q.prototype.tabPosition="right";q.prototype.arcSize=.1;q.prototype.isRoundable=function(){return!0};q.prototype.paintVertexShape=function(f,t,B,u,C){f.translate(t,B);t=Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth))));B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));var F=mxUtils.getValue(this.style,"tabPosition",this.tabPosition),I=mxUtils.getValue(this.style,
-"rounded",!1),ja=mxUtils.getValue(this.style,"absoluteArcSize",!1),O=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));ja||(O*=Math.min(u,C));O=Math.min(O,.5*u,.5*(C-B));t=Math.max(t,O);t=Math.min(u-O,t);I||(O=0);f.begin();"left"==F?(f.moveTo(Math.max(O,0),B),f.lineTo(Math.max(O,0),0),f.lineTo(t,0),f.lineTo(t,B)):(f.moveTo(u-t,B),f.lineTo(u-t,0),f.lineTo(u-Math.max(O,0),0),f.lineTo(u-Math.max(O,0),B));I?(f.moveTo(0,O+B),f.arcTo(O,O,0,0,1,O,B),f.lineTo(u-O,B),f.arcTo(O,O,0,0,1,u,O+B),
-f.lineTo(u,C-O),f.arcTo(O,O,0,0,1,u-O,C),f.lineTo(O,C),f.arcTo(O,O,0,0,1,0,C-O)):(f.moveTo(0,B),f.lineTo(u,B),f.lineTo(u,C),f.lineTo(0,C));f.close();f.fillAndStroke();f.setShadow(!1);"triangle"==mxUtils.getValue(this.style,"folderSymbol",null)&&(f.begin(),f.moveTo(u-30,B+20),f.lineTo(u-20,B+10),f.lineTo(u-10,B+20),f.close(),f.stroke())};mxCellRenderer.registerShape("folder",q);q.prototype.getLabelMargins=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=mxUtils.getValue(this.style,
-"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var B=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;t=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var u=mxUtils.getValue(this.style,"rounded",!1),C=mxUtils.getValue(this.style,"absoluteArcSize",!1),F=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));C||(F*=Math.min(f.width,f.height));F=Math.min(F,.5*f.width,.5*(f.height-t));u||(F=0);return"left"==mxUtils.getValue(this.style,"tabPosition",
-this.tabPosition)?new mxRectangle(F,0,Math.min(f.width,f.width-B),Math.min(f.height,f.height-t)):new mxRectangle(Math.min(f.width,f.width-B),0,F,Math.min(f.height,f.height-t))}return new mxRectangle(0,Math.min(f.height,t),0,0)}return null};mxUtils.extend(A,mxCylinder);A.prototype.arcSize=.1;A.prototype.paintVertexShape=function(f,t,B,u,C){f.translate(t,B);var F=mxUtils.getValue(this.style,"rounded",!1),I=mxUtils.getValue(this.style,"absoluteArcSize",!1);t=parseFloat(mxUtils.getValue(this.style,"arcSize",
-this.arcSize));B=mxUtils.getValue(this.style,"umlStateConnection",null);I||(t*=Math.min(u,C));t=Math.min(t,.5*u,.5*C);F||(t=0);F=0;null!=B&&(F=10);f.begin();f.moveTo(F,t);f.arcTo(t,t,0,0,1,F+t,0);f.lineTo(u-t,0);f.arcTo(t,t,0,0,1,u,t);f.lineTo(u,C-t);f.arcTo(t,t,0,0,1,u-t,C);f.lineTo(F+t,C);f.arcTo(t,t,0,0,1,F,C-t);f.close();f.fillAndStroke();f.setShadow(!1);"collapseState"==mxUtils.getValue(this.style,"umlStateSymbol",null)&&(f.roundrect(u-40,C-20,10,10,3,3),f.stroke(),f.roundrect(u-20,C-20,10,10,
-3,3),f.stroke(),f.begin(),f.moveTo(u-30,C-15),f.lineTo(u-20,C-15),f.stroke());"connPointRefEntry"==B?(f.ellipse(0,.5*C-10,20,20),f.fillAndStroke()):"connPointRefExit"==B&&(f.ellipse(0,.5*C-10,20,20),f.fillAndStroke(),f.begin(),f.moveTo(5,.5*C-5),f.lineTo(15,.5*C+5),f.moveTo(15,.5*C-5),f.lineTo(5,.5*C+5),f.stroke())};A.prototype.getLabelMargins=function(f){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",A);mxUtils.extend(D,mxActor);D.prototype.size=30;D.prototype.isRoundable=function(){return!0};D.prototype.redrawPath=function(f,t,B,u,C){t=Math.max(0,Math.min(u,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(t,0),new mxPoint(u,0),new mxPoint(u,C),new mxPoint(0,C),new mxPoint(0,t)],this.isRounded,B,!0);f.end()};
-mxCellRenderer.registerShape("card",D);mxUtils.extend(H,mxActor);H.prototype.size=.4;H.prototype.redrawPath=function(f,t,B,u,C){t=C*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));f.moveTo(0,t/2);f.quadTo(u/4,1.4*t,u/2,t/2);f.quadTo(3*u/4,t*(1-1.4),u,t/2);f.lineTo(u,C-t/2);f.quadTo(3*u/4,C-1.4*t,u/2,C-t/2);f.quadTo(u/4,C-t*(1-1.4),0,C-t/2);f.lineTo(0,t/2);f.close();f.end()};H.prototype.getLabelBounds=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=
-mxUtils.getValue(this.style,"size",this.size),B=f.width,u=f.height;if(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)return t*=u,new mxRectangle(f.x,f.y+t,B,u-2*t);t*=B;return new mxRectangle(f.x+t,f.y,B-2*t,u)}return f};mxCellRenderer.registerShape("tape",H);mxUtils.extend(K,mxActor);K.prototype.size=.3;K.prototype.getLabelMargins=function(f){return mxUtils.getValue(this.style,"boundedLbl",!1)?new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,
-"size",this.size))*f.height):null};K.prototype.redrawPath=function(f,t,B,u,C){t=C*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));f.moveTo(0,0);f.lineTo(u,0);f.lineTo(u,C-t/2);f.quadTo(3*u/4,C-1.4*t,u/2,C-t/2);f.quadTo(u/4,C-t*(1-1.4),0,C-t/2);f.lineTo(0,t/2);f.close();f.end()};mxCellRenderer.registerShape("document",K);var ab=mxCylinder.prototype.getCylinderSize;mxCylinder.prototype.getCylinderSize=function(f,t,B,u){var C=mxUtils.getValue(this.style,"size");return null!=
-C?u*Math.max(0,Math.min(1,C)):ab.apply(this,arguments)};mxCylinder.prototype.getLabelMargins=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=2*mxUtils.getValue(this.style,"size",.15);return new mxRectangle(0,Math.min(this.maxHeight*this.scale,f.height*t),0,0)}return null};g.prototype.getLabelMargins=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=mxUtils.getValue(this.style,"size",15);mxUtils.getValue(this.style,"lid",!0)||(t/=2);return new mxRectangle(0,Math.min(f.height*
-this.scale,2*t*this.scale),0,Math.max(0,.3*t*this.scale))}return null};q.prototype.getLabelMargins=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var B=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;t=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var u=mxUtils.getValue(this.style,"rounded",!1),C=mxUtils.getValue(this.style,"absoluteArcSize",!1),F=parseFloat(mxUtils.getValue(this.style,
-"arcSize",this.arcSize));C||(F*=Math.min(f.width,f.height));F=Math.min(F,.5*f.width,.5*(f.height-t));u||(F=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(F,0,Math.min(f.width,f.width-B),Math.min(f.height,f.height-t)):new mxRectangle(Math.min(f.width,f.width-B),0,F,Math.min(f.height,f.height-t))}return new mxRectangle(0,Math.min(f.height,t),0,0)}return null};A.prototype.getLabelMargins=function(f){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=
-mxUtils.getValue(this.style,"umlStateConnection",null)?new mxRectangle(10*this.scale,0,0,0):null};R.prototype.getLabelMargins=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(f.height*this.scale,t*this.scale),0,Math.max(0,t*this.scale))}return null};mxUtils.extend(P,mxActor);P.prototype.size=.2;P.prototype.fixedSize=20;P.prototype.isRoundable=function(){return!0};P.prototype.redrawPath=function(f,t,B,u,C){t=
-"0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,C),new mxPoint(t,0),new mxPoint(u,0),new mxPoint(u-t,C)],this.isRounded,B,!0);f.end()};mxCellRenderer.registerShape("parallelogram",P);mxUtils.extend(W,mxActor);W.prototype.size=
-.2;W.prototype.fixedSize=20;W.prototype.isRoundable=function(){return!0};W.prototype.redrawPath=function(f,t,B,u,C){t="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*u,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):u*Math.max(0,Math.min(.5,parseFloat(mxUtils.getValue(this.style,"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,C),new mxPoint(t,0),new mxPoint(u-t,0),new mxPoint(u,
-C)],this.isRounded,B,!0)};mxCellRenderer.registerShape("trapezoid",W);mxUtils.extend(M,mxActor);M.prototype.size=.5;M.prototype.redrawPath=function(f,t,B,u,C){f.setFillColor(null);t=u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(u,0),new mxPoint(t,0),new mxPoint(t,C/2),new mxPoint(0,C/2),new mxPoint(t,C/2),new mxPoint(t,C),new mxPoint(u,C)],this.isRounded,
-B,!1);f.end()};mxCellRenderer.registerShape("curlyBracket",M);mxUtils.extend(ca,mxActor);ca.prototype.redrawPath=function(f,t,B,u,C){f.setStrokeWidth(1);f.setFillColor(this.stroke);t=u/5;f.rect(0,0,t,C);f.fillAndStroke();f.rect(2*t,0,t,C);f.fillAndStroke();f.rect(4*t,0,t,C);f.fillAndStroke()};mxCellRenderer.registerShape("parallelMarker",ca);fa.prototype.moveTo=function(f,t){this.originalMoveTo.apply(this.canvas,arguments);this.lastX=f;this.lastY=t;this.firstX=f;this.firstY=t};fa.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)};fa.prototype.quadTo=function(f,t,B,u){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=B;this.lastY=u};fa.prototype.curveTo=function(f,t,B,u,C,F){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=C;this.lastY=F};fa.prototype.arcTo=function(f,t,B,u,C,F,I){this.originalArcTo.apply(this.canvas,arguments);
-this.lastX=F;this.lastY=I};fa.prototype.lineTo=function(f,t){if(null!=this.lastX&&null!=this.lastY){var B=function(oa){return"number"===typeof oa?oa?0>oa?-1:1:oa===oa?0:NaN:NaN},u=Math.abs(f-this.lastX),C=Math.abs(t-this.lastY),F=Math.sqrt(u*u+C*C);if(2>F){this.originalLineTo.apply(this.canvas,arguments);this.lastX=f;this.lastY=t;return}var I=Math.round(F/10),ja=this.defaultVariation;5>I&&(I=5,ja/=3);var O=B(f-this.lastX)*u/I;B=B(t-this.lastY)*C/I;u/=F;C/=F;for(F=0;F<I;F++){var va=(Math.random()-
-.5)*ja;this.originalLineTo.call(this.canvas,O*F+this.lastX-va*C,B*F+this.lastY-va*u)}this.originalLineTo.call(this.canvas,f,t)}else this.originalLineTo.apply(this.canvas,arguments);this.lastX=f;this.lastY=t};fa.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};var lb=mxShape.prototype.beforePaint;
+function Ta(){mxEllipse.call(this)}function y(){mxEllipse.call(this)}function Q(){mxRhombus.call(this)}function V(){mxEllipse.call(this)}function X(){mxEllipse.call(this)}function ia(){mxEllipse.call(this)}function la(){mxEllipse.call(this)}function qa(){mxActor.call(this)}function wa(){mxActor.call(this)}function ua(){mxActor.call(this)}function ya(f,t,B,v){mxShape.call(this);this.bounds=f;this.fill=t;this.stroke=B;this.strokewidth=null!=v?v:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=
+!0;this.indent=2;this.rectOutline="single"}function Va(){mxConnector.call(this)}function Wa(){mxConnector.call(this)}function Za(){mxActor.call(this)}function gb(f,t,B,v,C,F,I,ja,O,va){I+=O;var oa=v.clone();v.x-=C*(2*I+O);v.y-=F*(2*I+O);C*=I+O;F*=I+O;return function(){f.ellipse(oa.x-C-I,oa.y-F-I,2*I,2*I);va?f.fillAndStroke():f.stroke()}}mxUtils.extend(b,mxShape);b.prototype.updateBoundsFromLine=function(){var f=null;if(null!=this.line)for(var t=0;t<this.line.length;t++){var B=this.line[t];null!=B&&
+(B=new mxRectangle(B.x,B.y,this.strokewidth,this.strokewidth),null==f?f=B:f.add(B))}this.bounds=null!=f?f:new mxRectangle};b.prototype.paintVertexShape=function(f,t,B,v,C){this.paintTableLine(f,this.line,0,0)};b.prototype.paintTableLine=function(f,t,B,v){if(null!=t){var C=null;f.begin();for(var F=0;F<t.length;F++){var I=t[F];null!=I&&(null==C?f.moveTo(I.x+B,I.y+v):null!=C&&f.lineTo(I.x+B,I.y+v));C=I}f.end();f.stroke()}};b.prototype.intersectsRectangle=function(f){var t=!1;if(mxShape.prototype.intersectsRectangle.apply(this,
+arguments)&&null!=this.line)for(var B=null,v=0;v<this.line.length&&!t;v++){var C=this.line[v];null!=C&&null!=B&&(t=mxUtils.rectangleIntersectsSegment(f,B,C));B=C}return t};mxCellRenderer.registerShape("tableLine",b);mxUtils.extend(d,mxSwimlane);d.prototype.fixedHeaderDefault=!1;d.prototype.paintVertexShape=function(f,t,B,v,C){var F=null!=this.state?this.state.view.graph.isCellCollapsed(this.state.cell):!1,I=this.isHorizontal(),ja=this.getTitleSize(),O=mxUtils.getValue(this.style,mxConstants.STYLE_FIXED_HEADER,
+this.fixedHeaderDefault);0==ja&&!O||this.outline?ia.prototype.paintVertexShape.apply(this,arguments):(mxSwimlane.prototype.paintVertexShape.apply(this,arguments),f.translate(-t,-B));F||this.outline||!(I&&ja<C||!I&&ja<v)||this.paintForeground(f,t,B,v,C)};d.prototype.paintForeground=function(f,t,B,v,C){if(null!=this.state){var F=this.flipH,I=this.flipV;if(this.direction==mxConstants.DIRECTION_NORTH||this.direction==mxConstants.DIRECTION_SOUTH){var ja=F;F=I;I=ja}f.rotate(-this.getShapeRotation(),F,I,
+t+v/2,B+C/2);s=this.scale;t=this.bounds.x/s;B=this.bounds.y/s;v=this.bounds.width/s;C=this.bounds.height/s;this.paintTableForeground(f,t,B,v,C)}};d.prototype.paintTableForeground=function(f,t,B,v,C){v=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(C=0;C<v.length;C++)b.prototype.paintTableLine(f,v[C],t,B)};d.prototype.configurePointerEvents=function(f){0==this.getTitleSize()?f.pointerEvents=
+!1:mxSwimlane.prototype.configurePointerEvents.apply(this,arguments)};mxCellRenderer.registerShape("table",d);mxUtils.extend(m,d);m.prototype.paintForeground=function(){};mxCellRenderer.registerShape("tableRow",m);mxUtils.extend(n,mxCylinder);n.prototype.size=20;n.prototype.darkOpacity=0;n.prototype.darkOpacity2=0;n.prototype.paintVertexShape=function(f,t,B,v,C){var F=Math.max(0,Math.min(v,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),I=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,
+"darkOpacity",this.darkOpacity)))),ja=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity2",this.darkOpacity2))));f.translate(t,B);f.begin();f.moveTo(0,0);f.lineTo(v-F,0);f.lineTo(v,F);f.lineTo(v,C);f.lineTo(F,C);f.lineTo(0,C-F);f.lineTo(0,0);f.close();f.end();f.fillAndStroke();this.outline||(f.setShadow(!1),0!=I&&(f.setFillAlpha(Math.abs(I)),f.setFillColor(0>I?"#FFFFFF":"#000000"),f.begin(),f.moveTo(0,0),f.lineTo(v-F,0),f.lineTo(v,F),f.lineTo(F,F),f.close(),f.fill()),0!=ja&&
+(f.setFillAlpha(Math.abs(ja)),f.setFillColor(0>ja?"#FFFFFF":"#000000"),f.begin(),f.moveTo(0,0),f.lineTo(F,F),f.lineTo(F,C),f.lineTo(0,C-F),f.close(),f.fill()),f.begin(),f.moveTo(F,C),f.lineTo(F,F),f.lineTo(0,0),f.moveTo(F,F),f.lineTo(v,F),f.end(),f.stroke())};n.prototype.getLabelMargins=function(f){return mxUtils.getValue(this.style,"boundedLbl",!1)?(f=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(f,f,0,0)):null};mxCellRenderer.registerShape("cube",n);var ib=
+Math.tan(mxUtils.toRadians(30)),fb=(.5-ib)/2;mxCellRenderer.registerShape("isoRectangle",z);mxUtils.extend(u,mxConnector);u.prototype.paintEdgeShape=function(f,t){var B=this.createMarker(f,t,!0),v=this.createMarker(f,t,!1);f.setDashed(!1);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);null!=this.isDashed&&f.setDashed(this.isDashed,null!=this.style?1==mxUtils.getValue(this.style,mxConstants.STYLE_FIX_DASH,!1):!1);f.setShadow(!1);f.setStrokeColor(this.fill);mxPolyline.prototype.paintEdgeShape.apply(this,
+arguments);f.setStrokeColor(this.stroke);f.setFillColor(this.stroke);f.setDashed(!1);null!=B&&B();null!=v&&v()};mxCellRenderer.registerShape("wire",u);mxUtils.extend(p,mxCylinder);p.prototype.size=6;p.prototype.paintVertexShape=function(f,t,B,v,C){f.setFillColor(this.stroke);var F=Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size))-2)+2*this.strokewidth;f.ellipse(t+.5*(v-F),B+.5*(C-F),F,F);f.fill();f.setFillColor(mxConstants.NONE);f.rect(t,B,v,C);f.fill()};mxCellRenderer.registerShape("waypoint",
+p);mxUtils.extend(z,mxActor);z.prototype.size=20;z.prototype.redrawPath=function(f,t,B,v,C){t=Math.min(v,C/ib);f.translate((v-t)/2,(C-t)/2+t/4);f.moveTo(0,.25*t);f.lineTo(.5*t,t*fb);f.lineTo(t,.25*t);f.lineTo(.5*t,(.5-fb)*t);f.lineTo(0,.25*t);f.close();f.end()};mxCellRenderer.registerShape("isoRectangle",z);mxUtils.extend(G,mxCylinder);G.prototype.size=20;G.prototype.redrawPath=function(f,t,B,v,C,F){t=Math.min(v,C/(.5+ib));F?(f.moveTo(0,.25*t),f.lineTo(.5*t,(.5-fb)*t),f.lineTo(t,.25*t),f.moveTo(.5*
+t,(.5-fb)*t),f.lineTo(.5*t,(1-fb)*t)):(f.translate((v-t)/2,(C-t)/2),f.moveTo(0,.25*t),f.lineTo(.5*t,t*fb),f.lineTo(t,.25*t),f.lineTo(t,.75*t),f.lineTo(.5*t,(1-fb)*t),f.lineTo(0,.75*t),f.close());f.end()};mxCellRenderer.registerShape("isoCube",G);mxUtils.extend(U,mxCylinder);U.prototype.redrawPath=function(f,t,B,v,C,F){t=Math.min(C/2,Math.round(C/8)+this.strokewidth-1);if(F&&null!=this.fill||!F&&null==this.fill)f.moveTo(0,t),f.curveTo(0,2*t,v,2*t,v,t),F||(f.stroke(),f.begin()),f.translate(0,t/2),f.moveTo(0,
+t),f.curveTo(0,2*t,v,2*t,v,t),F||(f.stroke(),f.begin()),f.translate(0,t/2),f.moveTo(0,t),f.curveTo(0,2*t,v,2*t,v,t),F||(f.stroke(),f.begin()),f.translate(0,-t);F||(f.moveTo(0,t),f.curveTo(0,-t/3,v,-t/3,v,t),f.lineTo(v,C-t),f.curveTo(v,C+t/3,0,C+t/3,0,C-t),f.close())};U.prototype.getLabelMargins=function(f){return new mxRectangle(0,2.5*Math.min(f.height/2,Math.round(f.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",U);mxUtils.extend(E,mxCylinder);E.prototype.size=30;E.prototype.darkOpacity=
+0;E.prototype.paintVertexShape=function(f,t,B,v,C){var F=Math.max(0,Math.min(v,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),I=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));f.translate(t,B);f.begin();f.moveTo(0,0);f.lineTo(v-F,0);f.lineTo(v,F);f.lineTo(v,C);f.lineTo(0,C);f.lineTo(0,0);f.close();f.end();f.fillAndStroke();this.outline||(f.setShadow(!1),0!=I&&(f.setFillAlpha(Math.abs(I)),f.setFillColor(0>I?"#FFFFFF":"#000000"),
+f.begin(),f.moveTo(v-F,0),f.lineTo(v-F,F),f.lineTo(v,F),f.close(),f.fill()),f.begin(),f.moveTo(v-F,0),f.lineTo(v-F,F),f.lineTo(v,F),f.end(),f.stroke())};mxCellRenderer.registerShape("note",E);mxUtils.extend(R,E);mxCellRenderer.registerShape("note2",R);R.prototype.getLabelMargins=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(f.height*this.scale,t*this.scale),0,0)}return null};mxUtils.extend(N,mxShape);N.prototype.isoAngle=
+15;N.prototype.paintVertexShape=function(f,t,B,v,C){var F=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;F=Math.min(v*Math.tan(F),.5*C);f.translate(t,B);f.begin();f.moveTo(.5*v,0);f.lineTo(v,F);f.lineTo(v,C-F);f.lineTo(.5*v,C);f.lineTo(0,C-F);f.lineTo(0,F);f.close();f.fillAndStroke();f.setShadow(!1);f.begin();f.moveTo(0,F);f.lineTo(.5*v,2*F);f.lineTo(v,F);f.moveTo(.5*v,2*F);f.lineTo(.5*v,C);f.stroke()};mxCellRenderer.registerShape("isoCube2",
+N);mxUtils.extend(c,mxShape);c.prototype.size=15;c.prototype.paintVertexShape=function(f,t,B,v,C){var F=Math.max(0,Math.min(.5*C,parseFloat(mxUtils.getValue(this.style,"size",this.size))));f.translate(t,B);0==F?(f.rect(0,0,v,C),f.fillAndStroke()):(f.begin(),f.moveTo(0,F),f.arcTo(.5*v,F,0,0,1,.5*v,0),f.arcTo(.5*v,F,0,0,1,v,F),f.lineTo(v,C-F),f.arcTo(.5*v,F,0,0,1,.5*v,C),f.arcTo(.5*v,F,0,0,1,0,C-F),f.close(),f.fillAndStroke(),f.setShadow(!1),f.begin(),f.moveTo(v,F),f.arcTo(.5*v,F,0,0,1,.5*v,2*F),f.arcTo(.5*
+v,F,0,0,1,0,F),f.stroke())};mxCellRenderer.registerShape("cylinder2",c);mxUtils.extend(g,mxCylinder);g.prototype.size=15;g.prototype.paintVertexShape=function(f,t,B,v,C){var F=Math.max(0,Math.min(.5*C,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),I=mxUtils.getValue(this.style,"lid",!0);f.translate(t,B);0==F?(f.rect(0,0,v,C),f.fillAndStroke()):(f.begin(),I?(f.moveTo(0,F),f.arcTo(.5*v,F,0,0,1,.5*v,0),f.arcTo(.5*v,F,0,0,1,v,F)):(f.moveTo(0,0),f.arcTo(.5*v,F,0,0,0,.5*v,F),f.arcTo(.5*v,F,
+0,0,0,v,0)),f.lineTo(v,C-F),f.arcTo(.5*v,F,0,0,1,.5*v,C),f.arcTo(.5*v,F,0,0,1,0,C-F),f.close(),f.fillAndStroke(),f.setShadow(!1),I&&(f.begin(),f.moveTo(v,F),f.arcTo(.5*v,F,0,0,1,.5*v,2*F),f.arcTo(.5*v,F,0,0,1,0,F),f.stroke()))};mxCellRenderer.registerShape("cylinder3",g);mxUtils.extend(k,mxActor);k.prototype.redrawPath=function(f,t,B,v,C){f.moveTo(0,0);f.quadTo(v/2,.5*C,v,0);f.quadTo(.5*v,C/2,v,C);f.quadTo(v/2,.5*C,0,C);f.quadTo(.5*v,C/2,0,0);f.end()};mxCellRenderer.registerShape("switch",k);mxUtils.extend(q,
+mxCylinder);q.prototype.tabWidth=60;q.prototype.tabHeight=20;q.prototype.tabPosition="right";q.prototype.arcSize=.1;q.prototype.isRoundable=function(){return!0};q.prototype.paintVertexShape=function(f,t,B,v,C){f.translate(t,B);t=Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth))));B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));var F=mxUtils.getValue(this.style,"tabPosition",this.tabPosition),I=mxUtils.getValue(this.style,
+"rounded",!1),ja=mxUtils.getValue(this.style,"absoluteArcSize",!1),O=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));ja||(O*=Math.min(v,C));O=Math.min(O,.5*v,.5*(C-B));t=Math.max(t,O);t=Math.min(v-O,t);I||(O=0);f.begin();"left"==F?(f.moveTo(Math.max(O,0),B),f.lineTo(Math.max(O,0),0),f.lineTo(t,0),f.lineTo(t,B)):(f.moveTo(v-t,B),f.lineTo(v-t,0),f.lineTo(v-Math.max(O,0),0),f.lineTo(v-Math.max(O,0),B));I?(f.moveTo(0,O+B),f.arcTo(O,O,0,0,1,O,B),f.lineTo(v-O,B),f.arcTo(O,O,0,0,1,v,O+B),
+f.lineTo(v,C-O),f.arcTo(O,O,0,0,1,v-O,C),f.lineTo(O,C),f.arcTo(O,O,0,0,1,0,C-O)):(f.moveTo(0,B),f.lineTo(v,B),f.lineTo(v,C),f.lineTo(0,C));f.close();f.fillAndStroke();f.setShadow(!1);"triangle"==mxUtils.getValue(this.style,"folderSymbol",null)&&(f.begin(),f.moveTo(v-30,B+20),f.lineTo(v-20,B+10),f.lineTo(v-10,B+20),f.close(),f.stroke())};mxCellRenderer.registerShape("folder",q);q.prototype.getLabelMargins=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=mxUtils.getValue(this.style,
+"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var B=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;t=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var v=mxUtils.getValue(this.style,"rounded",!1),C=mxUtils.getValue(this.style,"absoluteArcSize",!1),F=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));C||(F*=Math.min(f.width,f.height));F=Math.min(F,.5*f.width,.5*(f.height-t));v||(F=0);return"left"==mxUtils.getValue(this.style,"tabPosition",
+this.tabPosition)?new mxRectangle(F,0,Math.min(f.width,f.width-B),Math.min(f.height,f.height-t)):new mxRectangle(Math.min(f.width,f.width-B),0,F,Math.min(f.height,f.height-t))}return new mxRectangle(0,Math.min(f.height,t),0,0)}return null};mxUtils.extend(A,mxCylinder);A.prototype.arcSize=.1;A.prototype.paintVertexShape=function(f,t,B,v,C){f.translate(t,B);var F=mxUtils.getValue(this.style,"rounded",!1),I=mxUtils.getValue(this.style,"absoluteArcSize",!1);t=parseFloat(mxUtils.getValue(this.style,"arcSize",
+this.arcSize));B=mxUtils.getValue(this.style,"umlStateConnection",null);I||(t*=Math.min(v,C));t=Math.min(t,.5*v,.5*C);F||(t=0);F=0;null!=B&&(F=10);f.begin();f.moveTo(F,t);f.arcTo(t,t,0,0,1,F+t,0);f.lineTo(v-t,0);f.arcTo(t,t,0,0,1,v,t);f.lineTo(v,C-t);f.arcTo(t,t,0,0,1,v-t,C);f.lineTo(F+t,C);f.arcTo(t,t,0,0,1,F,C-t);f.close();f.fillAndStroke();f.setShadow(!1);"collapseState"==mxUtils.getValue(this.style,"umlStateSymbol",null)&&(f.roundrect(v-40,C-20,10,10,3,3),f.stroke(),f.roundrect(v-20,C-20,10,10,
+3,3),f.stroke(),f.begin(),f.moveTo(v-30,C-15),f.lineTo(v-20,C-15),f.stroke());"connPointRefEntry"==B?(f.ellipse(0,.5*C-10,20,20),f.fillAndStroke()):"connPointRefExit"==B&&(f.ellipse(0,.5*C-10,20,20),f.fillAndStroke(),f.begin(),f.moveTo(5,.5*C-5),f.lineTo(15,.5*C+5),f.moveTo(15,.5*C-5),f.lineTo(5,.5*C+5),f.stroke())};A.prototype.getLabelMargins=function(f){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",A);mxUtils.extend(D,mxActor);D.prototype.size=30;D.prototype.isRoundable=function(){return!0};D.prototype.redrawPath=function(f,t,B,v,C){t=Math.max(0,Math.min(v,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(t,0),new mxPoint(v,0),new mxPoint(v,C),new mxPoint(0,C),new mxPoint(0,t)],this.isRounded,B,!0);f.end()};
+mxCellRenderer.registerShape("card",D);mxUtils.extend(H,mxActor);H.prototype.size=.4;H.prototype.redrawPath=function(f,t,B,v,C){t=C*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));f.moveTo(0,t/2);f.quadTo(v/4,1.4*t,v/2,t/2);f.quadTo(3*v/4,t*(1-1.4),v,t/2);f.lineTo(v,C-t/2);f.quadTo(3*v/4,C-1.4*t,v/2,C-t/2);f.quadTo(v/4,C-t*(1-1.4),0,C-t/2);f.lineTo(0,t/2);f.close();f.end()};H.prototype.getLabelBounds=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=
+mxUtils.getValue(this.style,"size",this.size),B=f.width,v=f.height;if(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)return t*=v,new mxRectangle(f.x,f.y+t,B,v-2*t);t*=B;return new mxRectangle(f.x+t,f.y,B-2*t,v)}return f};mxCellRenderer.registerShape("tape",H);mxUtils.extend(K,mxActor);K.prototype.size=.3;K.prototype.getLabelMargins=function(f){return mxUtils.getValue(this.style,"boundedLbl",!1)?new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,
+"size",this.size))*f.height):null};K.prototype.redrawPath=function(f,t,B,v,C){t=C*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));f.moveTo(0,0);f.lineTo(v,0);f.lineTo(v,C-t/2);f.quadTo(3*v/4,C-1.4*t,v/2,C-t/2);f.quadTo(v/4,C-t*(1-1.4),0,C-t/2);f.lineTo(0,t/2);f.close();f.end()};mxCellRenderer.registerShape("document",K);var ab=mxCylinder.prototype.getCylinderSize;mxCylinder.prototype.getCylinderSize=function(f,t,B,v){var C=mxUtils.getValue(this.style,"size");return null!=
+C?v*Math.max(0,Math.min(1,C)):ab.apply(this,arguments)};mxCylinder.prototype.getLabelMargins=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=2*mxUtils.getValue(this.style,"size",.15);return new mxRectangle(0,Math.min(this.maxHeight*this.scale,f.height*t),0,0)}return null};g.prototype.getLabelMargins=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=mxUtils.getValue(this.style,"size",15);mxUtils.getValue(this.style,"lid",!0)||(t/=2);return new mxRectangle(0,Math.min(f.height*
+this.scale,2*t*this.scale),0,Math.max(0,.3*t*this.scale))}return null};q.prototype.getLabelMargins=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var B=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;t=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var v=mxUtils.getValue(this.style,"rounded",!1),C=mxUtils.getValue(this.style,"absoluteArcSize",!1),F=parseFloat(mxUtils.getValue(this.style,
+"arcSize",this.arcSize));C||(F*=Math.min(f.width,f.height));F=Math.min(F,.5*f.width,.5*(f.height-t));v||(F=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(F,0,Math.min(f.width,f.width-B),Math.min(f.height,f.height-t)):new mxRectangle(Math.min(f.width,f.width-B),0,F,Math.min(f.height,f.height-t))}return new mxRectangle(0,Math.min(f.height,t),0,0)}return null};A.prototype.getLabelMargins=function(f){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=
+mxUtils.getValue(this.style,"umlStateConnection",null)?new mxRectangle(10*this.scale,0,0,0):null};R.prototype.getLabelMargins=function(f){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var t=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(f.height*this.scale,t*this.scale),0,Math.max(0,t*this.scale))}return null};mxUtils.extend(P,mxActor);P.prototype.size=.2;P.prototype.fixedSize=20;P.prototype.isRoundable=function(){return!0};P.prototype.redrawPath=function(f,t,B,v,C){t=
+"0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,C),new mxPoint(t,0),new mxPoint(v,0),new mxPoint(v-t,C)],this.isRounded,B,!0);f.end()};mxCellRenderer.registerShape("parallelogram",P);mxUtils.extend(W,mxActor);W.prototype.size=
+.2;W.prototype.fixedSize=20;W.prototype.isRoundable=function(){return!0};W.prototype.redrawPath=function(f,t,B,v,C){t="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*v,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):v*Math.max(0,Math.min(.5,parseFloat(mxUtils.getValue(this.style,"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,C),new mxPoint(t,0),new mxPoint(v-t,0),new mxPoint(v,
+C)],this.isRounded,B,!0)};mxCellRenderer.registerShape("trapezoid",W);mxUtils.extend(M,mxActor);M.prototype.size=.5;M.prototype.redrawPath=function(f,t,B,v,C){f.setFillColor(null);t=v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(v,0),new mxPoint(t,0),new mxPoint(t,C/2),new mxPoint(0,C/2),new mxPoint(t,C/2),new mxPoint(t,C),new mxPoint(v,C)],this.isRounded,
+B,!1);f.end()};mxCellRenderer.registerShape("curlyBracket",M);mxUtils.extend(ca,mxActor);ca.prototype.redrawPath=function(f,t,B,v,C){f.setStrokeWidth(1);f.setFillColor(this.stroke);t=v/5;f.rect(0,0,t,C);f.fillAndStroke();f.rect(2*t,0,t,C);f.fillAndStroke();f.rect(4*t,0,t,C);f.fillAndStroke()};mxCellRenderer.registerShape("parallelMarker",ca);fa.prototype.moveTo=function(f,t){this.originalMoveTo.apply(this.canvas,arguments);this.lastX=f;this.lastY=t;this.firstX=f;this.firstY=t};fa.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)};fa.prototype.quadTo=function(f,t,B,v){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=B;this.lastY=v};fa.prototype.curveTo=function(f,t,B,v,C,F){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=C;this.lastY=F};fa.prototype.arcTo=function(f,t,B,v,C,F,I){this.originalArcTo.apply(this.canvas,arguments);
+this.lastX=F;this.lastY=I};fa.prototype.lineTo=function(f,t){if(null!=this.lastX&&null!=this.lastY){var B=function(oa){return"number"===typeof oa?oa?0>oa?-1:1:oa===oa?0:NaN:NaN},v=Math.abs(f-this.lastX),C=Math.abs(t-this.lastY),F=Math.sqrt(v*v+C*C);if(2>F){this.originalLineTo.apply(this.canvas,arguments);this.lastX=f;this.lastY=t;return}var I=Math.round(F/10),ja=this.defaultVariation;5>I&&(I=5,ja/=3);var O=B(f-this.lastX)*v/I;B=B(t-this.lastY)*C/I;v/=F;C/=F;for(F=0;F<I;F++){var va=(Math.random()-
+.5)*ja;this.originalLineTo.call(this.canvas,O*F+this.lastX-va*C,B*F+this.lastY-va*v)}this.originalLineTo.call(this.canvas,f,t)}else this.originalLineTo.apply(this.canvas,arguments);this.lastX=f;this.lastY=t};fa.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};var lb=mxShape.prototype.beforePaint;
mxShape.prototype.beforePaint=function(f){lb.apply(this,arguments);null==f.handJiggle&&(f.handJiggle=this.createHandJiggle(f))};var jb=mxShape.prototype.afterPaint;mxShape.prototype.afterPaint=function(f){jb.apply(this,arguments);null!=f.handJiggle&&(f.handJiggle.destroy(),delete f.handJiggle)};mxShape.prototype.createComicCanvas=function(f){return new fa(f,mxUtils.getValue(this.style,"jiggle",Editor.sketchDefaultJiggle))};mxShape.prototype.createHandJiggle=function(f){return this.outline||null==
-this.style||"0"==mxUtils.getValue(this.style,"comic","0")?null:this.createComicCanvas(f)};var Ra=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"))&&Ra.apply(this,arguments)};var kb=mxRectangleShape.prototype.paintBackground;mxRectangleShape.prototype.paintBackground=function(f,t,B,u,C){if(null==f.handJiggle||
-f.handJiggle.constructor!=fa)kb.apply(this,arguments);else{var F=!0;null!=this.style&&(F="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(F||null!=this.fill&&this.fill!=mxConstants.NONE||null!=this.stroke&&this.stroke!=mxConstants.NONE)F||null!=this.fill&&this.fill!=mxConstants.NONE||(f.pointerEvents=!1),f.begin(),this.isRounded?("1"==mxUtils.getValue(this.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?F=Math.min(u/2,Math.min(C/2,mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,
-mxConstants.LINE_ARCSIZE)/2)):(F=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,F=Math.min(u*F,C*F)),f.moveTo(t+F,B),f.lineTo(t+u-F,B),f.quadTo(t+u,B,t+u,B+F),f.lineTo(t+u,B+C-F),f.quadTo(t+u,B+C,t+u-F,B+C),f.lineTo(t+F,B+C),f.quadTo(t,B+C,t,B+C-F),f.lineTo(t,B+F),f.quadTo(t,B,t+F,B)):(f.moveTo(t,B),f.lineTo(t+u,B),f.lineTo(t+u,B+C),f.lineTo(t,B+C),f.lineTo(t,B)),f.close(),f.end(),f.fillAndStroke()}};mxUtils.extend(ha,mxRectangleShape);ha.prototype.size=
-.1;ha.prototype.fixedSize=!1;ha.prototype.isHtmlAllowed=function(){return!1};ha.prototype.getLabelBounds=function(f){if(mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,!0)==(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)){var t=f.width,B=f.height;f=new mxRectangle(f.x,f.y,t,B);var u=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),C=parseFloat(mxUtils.getValue(this.style,"size",this.size));u?C=Math.max(0,Math.min(t,
-C*this.scale)):(C=t*Math.max(0,Math.min(1,C)),this.isRounded&&(u=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,C=Math.max(C,Math.min(t*u,B*u))));f.x+=Math.round(C);f.width-=Math.round(2*C);return f}return f};ha.prototype.paintForeground=function(f,t,B,u,C){var F=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),I=parseFloat(mxUtils.getValue(this.style,"size",this.size));I=F?Math.max(0,Math.min(u,I)):u*Math.max(0,Math.min(1,I));this.isRounded&&
-(F=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,I=Math.max(I,Math.min(u*F,C*F)));I=Math.round(I);f.begin();f.moveTo(t+I,B);f.lineTo(t+I,B+C);f.moveTo(t+u-I,B);f.lineTo(t+u-I,B+C);f.end();f.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("process",ha);mxCellRenderer.registerShape("process2",ha);mxUtils.extend(ea,mxRectangleShape);ea.prototype.paintBackground=function(f,t,B,u,C){f.setFillColor(mxConstants.NONE);
-f.rect(t,B,u,C);f.fill()};ea.prototype.paintForeground=function(f,t,B,u,C){};mxCellRenderer.registerShape("transparent",ea);mxUtils.extend(ka,mxHexagon);ka.prototype.size=30;ka.prototype.position=.5;ka.prototype.position2=.5;ka.prototype.base=20;ka.prototype.getLabelMargins=function(){return new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale)};ka.prototype.isRoundable=function(){return!0};ka.prototype.redrawPath=function(f,t,B,u,C){t=mxUtils.getValue(this.style,
-mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))));var F=u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position",this.position)))),I=u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2)))),ja=Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(f,[new mxPoint(0,0),new mxPoint(u,0),new mxPoint(u,C-B),new mxPoint(Math.min(u,
-F+ja),C-B),new mxPoint(I,C),new mxPoint(Math.max(0,F),C-B),new mxPoint(0,C-B)],this.isRounded,t,!0,[4])};mxCellRenderer.registerShape("callout",ka);mxUtils.extend(pa,mxActor);pa.prototype.size=.2;pa.prototype.fixedSize=20;pa.prototype.isRoundable=function(){return!0};pa.prototype.redrawPath=function(f,t,B,u,C){t="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,
-"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,0),new mxPoint(u-t,0),new mxPoint(u,C/2),new mxPoint(u-t,C),new mxPoint(0,C),new mxPoint(t,C/2)],this.isRounded,B,!0);f.end()};mxCellRenderer.registerShape("step",pa);mxUtils.extend(ba,mxHexagon);ba.prototype.size=.25;ba.prototype.fixedSize=20;ba.prototype.isRoundable=function(){return!0};ba.prototype.redrawPath=function(f,t,B,u,C){t="0"!=mxUtils.getValue(this.style,
-"fixedSize","0")?Math.max(0,Math.min(.5*u,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(t,0),new mxPoint(u-t,0),new mxPoint(u,.5*C),new mxPoint(u-t,C),new mxPoint(t,C),new mxPoint(0,.5*C)],this.isRounded,B,!0)};mxCellRenderer.registerShape("hexagon",ba);mxUtils.extend(l,mxRectangleShape);
-l.prototype.isHtmlAllowed=function(){return!1};l.prototype.paintForeground=function(f,t,B,u,C){var F=Math.min(u/5,C/5)+1;f.begin();f.moveTo(t+u/2,B+F);f.lineTo(t+u/2,B+C-F);f.moveTo(t+F,B+C/2);f.lineTo(t+u-F,B+C/2);f.end();f.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("plus",l);var qb=mxRhombus.prototype.paintVertexShape;mxRhombus.prototype.getLabelBounds=function(f){if(1==this.style["double"]){var t=(2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||
-0))*this.scale;return new mxRectangle(f.x+t,f.y+t,f.width-2*t,f.height-2*t)}return f};mxRhombus.prototype.paintVertexShape=function(f,t,B,u,C){qb.apply(this,arguments);if(!this.outline&&1==this.style["double"]){var F=2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);t+=F;B+=F;u-=2*F;C-=2*F;0<u&&0<C&&(f.setShadow(!1),qb.apply(this,[f,t,B,u,C]))}};mxUtils.extend(x,mxRectangleShape);x.prototype.isHtmlAllowed=function(){return!1};x.prototype.getLabelBounds=function(f){if(1==
-this.style["double"]){var t=(Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(f.x+t,f.y+t,f.width-2*t,f.height-2*t)}return f};x.prototype.paintForeground=function(f,t,B,u,C){if(null!=this.style){if(!this.outline&&1==this.style["double"]){var F=Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);t+=F;B+=F;u-=2*F;C-=2*F;0<u&&0<C&&mxRectangleShape.prototype.paintBackground.apply(this,arguments)}f.setDashed(!1);
-F=0;do{var I=mxCellRenderer.defaultShapes[this.style["symbol"+F]];if(null!=I){var ja=this.style["symbol"+F+"Align"],O=this.style["symbol"+F+"VerticalAlign"],va=this.style["symbol"+F+"Width"],oa=this.style["symbol"+F+"Height"],bb=this.style["symbol"+F+"Spacing"]||0,mb=this.style["symbol"+F+"VSpacing"]||bb,hb=this.style["symbol"+F+"ArcSpacing"];null!=hb&&(hb*=this.getArcSize(u+this.strokewidth,C+this.strokewidth),bb+=hb,mb+=hb);hb=t;var Ga=B;hb=ja==mxConstants.ALIGN_CENTER?hb+(u-va)/2:ja==mxConstants.ALIGN_RIGHT?
-hb+(u-va-bb):hb+bb;Ga=O==mxConstants.ALIGN_MIDDLE?Ga+(C-oa)/2:O==mxConstants.ALIGN_BOTTOM?Ga+(C-oa-mb):Ga+mb;f.save();ja=new I;ja.style=this.style;I.prototype.paintVertexShape.call(ja,f,hb,Ga,va,oa);f.restore()}F++}while(null!=I)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("ext",x);mxUtils.extend(J,mxCylinder);J.prototype.redrawPath=function(f,t,B,u,C,F){F?(f.moveTo(0,0),f.lineTo(u/2,C/2),f.lineTo(u,0),f.end()):(f.moveTo(0,0),f.lineTo(u,0),f.lineTo(u,
-C),f.lineTo(0,C),f.close())};mxCellRenderer.registerShape("message",J);mxUtils.extend(L,mxShape);L.prototype.paintBackground=function(f,t,B,u,C){f.translate(t,B);f.ellipse(u/4,0,u/2,C/4);f.fillAndStroke();f.begin();f.moveTo(u/2,C/4);f.lineTo(u/2,2*C/3);f.moveTo(u/2,C/3);f.lineTo(0,C/3);f.moveTo(u/2,C/3);f.lineTo(u,C/3);f.moveTo(u/2,2*C/3);f.lineTo(0,C);f.moveTo(u/2,2*C/3);f.lineTo(u,C);f.end();f.stroke()};mxCellRenderer.registerShape("umlActor",L);mxUtils.extend(T,mxShape);T.prototype.getLabelMargins=
-function(f){return new mxRectangle(f.width/6,0,0,0)};T.prototype.paintBackground=function(f,t,B,u,C){f.translate(t,B);f.begin();f.moveTo(0,C/4);f.lineTo(0,3*C/4);f.end();f.stroke();f.begin();f.moveTo(0,C/2);f.lineTo(u/6,C/2);f.end();f.stroke();f.ellipse(u/6,0,5*u/6,C);f.fillAndStroke()};mxCellRenderer.registerShape("umlBoundary",T);mxUtils.extend(Y,mxEllipse);Y.prototype.paintVertexShape=function(f,t,B,u,C){mxEllipse.prototype.paintVertexShape.apply(this,arguments);f.begin();f.moveTo(t+u/8,B+C);f.lineTo(t+
-7*u/8,B+C);f.end();f.stroke()};mxCellRenderer.registerShape("umlEntity",Y);mxUtils.extend(aa,mxShape);aa.prototype.paintVertexShape=function(f,t,B,u,C){f.translate(t,B);f.begin();f.moveTo(u,0);f.lineTo(0,C);f.moveTo(0,0);f.lineTo(u,C);f.end();f.stroke()};mxCellRenderer.registerShape("umlDestroy",aa);mxUtils.extend(S,mxShape);S.prototype.getLabelBounds=function(f){return new mxRectangle(f.x,f.y+f.height/8,f.width,7*f.height/8)};S.prototype.paintBackground=function(f,t,B,u,C){f.translate(t,B);f.begin();
-f.moveTo(3*u/8,C/8*1.1);f.lineTo(5*u/8,0);f.end();f.stroke();f.ellipse(0,C/8,u,7*C/8);f.fillAndStroke()};S.prototype.paintForeground=function(f,t,B,u,C){f.begin();f.moveTo(3*u/8,C/8*1.1);f.lineTo(5*u/8,C/4);f.end();f.stroke()};mxCellRenderer.registerShape("umlControl",S);mxUtils.extend(Z,mxRectangleShape);Z.prototype.size=40;Z.prototype.isHtmlAllowed=function(){return!1};Z.prototype.getLabelBounds=function(f){var t=Math.max(0,Math.min(f.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*
-this.scale));return new mxRectangle(f.x,f.y,f.width,t)};Z.prototype.paintBackground=function(f,t,B,u,C){var F=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),I=mxUtils.getValue(this.style,"participant");null==I||null==this.state?mxRectangleShape.prototype.paintBackground.call(this,f,t,B,u,F):(I=this.state.view.graph.cellRenderer.getShape(I),null!=I&&I!=Z&&(I=new I,I.apply(this.state),f.save(),I.paintVertexShape(f,t,B,u,F),f.restore()));F<C&&(f.setDashed("1"==mxUtils.getValue(this.style,
-"lifelineDashed","1")),f.begin(),f.moveTo(t+u/2,B+F),f.lineTo(t+u/2,B+C),f.end(),f.stroke())};Z.prototype.paintForeground=function(f,t,B,u,C){var F=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))));mxRectangleShape.prototype.paintForeground.call(this,f,t,B,u,Math.min(C,F))};mxCellRenderer.registerShape("umlLifeline",Z);mxUtils.extend(da,mxShape);da.prototype.width=60;da.prototype.height=30;da.prototype.corner=10;da.prototype.configurePointerEvents=function(f){var t=
+this.style||"0"==mxUtils.getValue(this.style,"comic","0")?null:this.createComicCanvas(f)};var Ra=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"))&&Ra.apply(this,arguments)};var kb=mxRectangleShape.prototype.paintBackground;mxRectangleShape.prototype.paintBackground=function(f,t,B,v,C){if(null==f.handJiggle||
+f.handJiggle.constructor!=fa)kb.apply(this,arguments);else{var F=!0;null!=this.style&&(F="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(F||null!=this.fill&&this.fill!=mxConstants.NONE||null!=this.stroke&&this.stroke!=mxConstants.NONE)F||null!=this.fill&&this.fill!=mxConstants.NONE||(f.pointerEvents=!1),f.begin(),this.isRounded?("1"==mxUtils.getValue(this.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?F=Math.min(v/2,Math.min(C/2,mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,
+mxConstants.LINE_ARCSIZE)/2)):(F=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,F=Math.min(v*F,C*F)),f.moveTo(t+F,B),f.lineTo(t+v-F,B),f.quadTo(t+v,B,t+v,B+F),f.lineTo(t+v,B+C-F),f.quadTo(t+v,B+C,t+v-F,B+C),f.lineTo(t+F,B+C),f.quadTo(t,B+C,t,B+C-F),f.lineTo(t,B+F),f.quadTo(t,B,t+F,B)):(f.moveTo(t,B),f.lineTo(t+v,B),f.lineTo(t+v,B+C),f.lineTo(t,B+C),f.lineTo(t,B)),f.close(),f.end(),f.fillAndStroke()}};mxUtils.extend(ha,mxRectangleShape);ha.prototype.size=
+.1;ha.prototype.fixedSize=!1;ha.prototype.isHtmlAllowed=function(){return!1};ha.prototype.getLabelBounds=function(f){if(mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,!0)==(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)){var t=f.width,B=f.height;f=new mxRectangle(f.x,f.y,t,B);var v=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),C=parseFloat(mxUtils.getValue(this.style,"size",this.size));v?C=Math.max(0,Math.min(t,
+C*this.scale)):(C=t*Math.max(0,Math.min(1,C)),this.isRounded&&(v=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,C=Math.max(C,Math.min(t*v,B*v))));f.x+=Math.round(C);f.width-=Math.round(2*C);return f}return f};ha.prototype.paintForeground=function(f,t,B,v,C){var F=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),I=parseFloat(mxUtils.getValue(this.style,"size",this.size));I=F?Math.max(0,Math.min(v,I)):v*Math.max(0,Math.min(1,I));this.isRounded&&
+(F=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,I=Math.max(I,Math.min(v*F,C*F)));I=Math.round(I);f.begin();f.moveTo(t+I,B);f.lineTo(t+I,B+C);f.moveTo(t+v-I,B);f.lineTo(t+v-I,B+C);f.end();f.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("process",ha);mxCellRenderer.registerShape("process2",ha);mxUtils.extend(ea,mxRectangleShape);ea.prototype.paintBackground=function(f,t,B,v,C){f.setFillColor(mxConstants.NONE);
+f.rect(t,B,v,C);f.fill()};ea.prototype.paintForeground=function(f,t,B,v,C){};mxCellRenderer.registerShape("transparent",ea);mxUtils.extend(ka,mxHexagon);ka.prototype.size=30;ka.prototype.position=.5;ka.prototype.position2=.5;ka.prototype.base=20;ka.prototype.getLabelMargins=function(){return new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale)};ka.prototype.isRoundable=function(){return!0};ka.prototype.redrawPath=function(f,t,B,v,C){t=mxUtils.getValue(this.style,
+mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))));var F=v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position",this.position)))),I=v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2)))),ja=Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(f,[new mxPoint(0,0),new mxPoint(v,0),new mxPoint(v,C-B),new mxPoint(Math.min(v,
+F+ja),C-B),new mxPoint(I,C),new mxPoint(Math.max(0,F),C-B),new mxPoint(0,C-B)],this.isRounded,t,!0,[4])};mxCellRenderer.registerShape("callout",ka);mxUtils.extend(pa,mxActor);pa.prototype.size=.2;pa.prototype.fixedSize=20;pa.prototype.isRoundable=function(){return!0};pa.prototype.redrawPath=function(f,t,B,v,C){t="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,
+"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,0),new mxPoint(v-t,0),new mxPoint(v,C/2),new mxPoint(v-t,C),new mxPoint(0,C),new mxPoint(t,C/2)],this.isRounded,B,!0);f.end()};mxCellRenderer.registerShape("step",pa);mxUtils.extend(ba,mxHexagon);ba.prototype.size=.25;ba.prototype.fixedSize=20;ba.prototype.isRoundable=function(){return!0};ba.prototype.redrawPath=function(f,t,B,v,C){t="0"!=mxUtils.getValue(this.style,
+"fixedSize","0")?Math.max(0,Math.min(.5*v,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(t,0),new mxPoint(v-t,0),new mxPoint(v,.5*C),new mxPoint(v-t,C),new mxPoint(t,C),new mxPoint(0,.5*C)],this.isRounded,B,!0)};mxCellRenderer.registerShape("hexagon",ba);mxUtils.extend(l,mxRectangleShape);
+l.prototype.isHtmlAllowed=function(){return!1};l.prototype.paintForeground=function(f,t,B,v,C){var F=Math.min(v/5,C/5)+1;f.begin();f.moveTo(t+v/2,B+F);f.lineTo(t+v/2,B+C-F);f.moveTo(t+F,B+C/2);f.lineTo(t+v-F,B+C/2);f.end();f.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("plus",l);var qb=mxRhombus.prototype.paintVertexShape;mxRhombus.prototype.getLabelBounds=function(f){if(1==this.style["double"]){var t=(2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||
+0))*this.scale;return new mxRectangle(f.x+t,f.y+t,f.width-2*t,f.height-2*t)}return f};mxRhombus.prototype.paintVertexShape=function(f,t,B,v,C){qb.apply(this,arguments);if(!this.outline&&1==this.style["double"]){var F=2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);t+=F;B+=F;v-=2*F;C-=2*F;0<v&&0<C&&(f.setShadow(!1),qb.apply(this,[f,t,B,v,C]))}};mxUtils.extend(x,mxRectangleShape);x.prototype.isHtmlAllowed=function(){return!1};x.prototype.getLabelBounds=function(f){if(1==
+this.style["double"]){var t=(Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(f.x+t,f.y+t,f.width-2*t,f.height-2*t)}return f};x.prototype.paintForeground=function(f,t,B,v,C){if(null!=this.style){if(!this.outline&&1==this.style["double"]){var F=Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);t+=F;B+=F;v-=2*F;C-=2*F;0<v&&0<C&&mxRectangleShape.prototype.paintBackground.apply(this,arguments)}f.setDashed(!1);
+F=0;do{var I=mxCellRenderer.defaultShapes[this.style["symbol"+F]];if(null!=I){var ja=this.style["symbol"+F+"Align"],O=this.style["symbol"+F+"VerticalAlign"],va=this.style["symbol"+F+"Width"],oa=this.style["symbol"+F+"Height"],bb=this.style["symbol"+F+"Spacing"]||0,mb=this.style["symbol"+F+"VSpacing"]||bb,hb=this.style["symbol"+F+"ArcSpacing"];null!=hb&&(hb*=this.getArcSize(v+this.strokewidth,C+this.strokewidth),bb+=hb,mb+=hb);hb=t;var Ga=B;hb=ja==mxConstants.ALIGN_CENTER?hb+(v-va)/2:ja==mxConstants.ALIGN_RIGHT?
+hb+(v-va-bb):hb+bb;Ga=O==mxConstants.ALIGN_MIDDLE?Ga+(C-oa)/2:O==mxConstants.ALIGN_BOTTOM?Ga+(C-oa-mb):Ga+mb;f.save();ja=new I;ja.style=this.style;I.prototype.paintVertexShape.call(ja,f,hb,Ga,va,oa);f.restore()}F++}while(null!=I)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("ext",x);mxUtils.extend(J,mxCylinder);J.prototype.redrawPath=function(f,t,B,v,C,F){F?(f.moveTo(0,0),f.lineTo(v/2,C/2),f.lineTo(v,0),f.end()):(f.moveTo(0,0),f.lineTo(v,0),f.lineTo(v,
+C),f.lineTo(0,C),f.close())};mxCellRenderer.registerShape("message",J);mxUtils.extend(L,mxShape);L.prototype.paintBackground=function(f,t,B,v,C){f.translate(t,B);f.ellipse(v/4,0,v/2,C/4);f.fillAndStroke();f.begin();f.moveTo(v/2,C/4);f.lineTo(v/2,2*C/3);f.moveTo(v/2,C/3);f.lineTo(0,C/3);f.moveTo(v/2,C/3);f.lineTo(v,C/3);f.moveTo(v/2,2*C/3);f.lineTo(0,C);f.moveTo(v/2,2*C/3);f.lineTo(v,C);f.end();f.stroke()};mxCellRenderer.registerShape("umlActor",L);mxUtils.extend(T,mxShape);T.prototype.getLabelMargins=
+function(f){return new mxRectangle(f.width/6,0,0,0)};T.prototype.paintBackground=function(f,t,B,v,C){f.translate(t,B);f.begin();f.moveTo(0,C/4);f.lineTo(0,3*C/4);f.end();f.stroke();f.begin();f.moveTo(0,C/2);f.lineTo(v/6,C/2);f.end();f.stroke();f.ellipse(v/6,0,5*v/6,C);f.fillAndStroke()};mxCellRenderer.registerShape("umlBoundary",T);mxUtils.extend(Y,mxEllipse);Y.prototype.paintVertexShape=function(f,t,B,v,C){mxEllipse.prototype.paintVertexShape.apply(this,arguments);f.begin();f.moveTo(t+v/8,B+C);f.lineTo(t+
+7*v/8,B+C);f.end();f.stroke()};mxCellRenderer.registerShape("umlEntity",Y);mxUtils.extend(aa,mxShape);aa.prototype.paintVertexShape=function(f,t,B,v,C){f.translate(t,B);f.begin();f.moveTo(v,0);f.lineTo(0,C);f.moveTo(0,0);f.lineTo(v,C);f.end();f.stroke()};mxCellRenderer.registerShape("umlDestroy",aa);mxUtils.extend(S,mxShape);S.prototype.getLabelBounds=function(f){return new mxRectangle(f.x,f.y+f.height/8,f.width,7*f.height/8)};S.prototype.paintBackground=function(f,t,B,v,C){f.translate(t,B);f.begin();
+f.moveTo(3*v/8,C/8*1.1);f.lineTo(5*v/8,0);f.end();f.stroke();f.ellipse(0,C/8,v,7*C/8);f.fillAndStroke()};S.prototype.paintForeground=function(f,t,B,v,C){f.begin();f.moveTo(3*v/8,C/8*1.1);f.lineTo(5*v/8,C/4);f.end();f.stroke()};mxCellRenderer.registerShape("umlControl",S);mxUtils.extend(Z,mxRectangleShape);Z.prototype.size=40;Z.prototype.isHtmlAllowed=function(){return!1};Z.prototype.getLabelBounds=function(f){var t=Math.max(0,Math.min(f.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*
+this.scale));return new mxRectangle(f.x,f.y,f.width,t)};Z.prototype.paintBackground=function(f,t,B,v,C){var F=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),I=mxUtils.getValue(this.style,"participant");null==I||null==this.state?mxRectangleShape.prototype.paintBackground.call(this,f,t,B,v,F):(I=this.state.view.graph.cellRenderer.getShape(I),null!=I&&I!=Z&&(I=new I,I.apply(this.state),f.save(),I.paintVertexShape(f,t,B,v,F),f.restore()));F<C&&(f.setDashed("1"==mxUtils.getValue(this.style,
+"lifelineDashed","1")),f.begin(),f.moveTo(t+v/2,B+F),f.lineTo(t+v/2,B+C),f.end(),f.stroke())};Z.prototype.paintForeground=function(f,t,B,v,C){var F=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))));mxRectangleShape.prototype.paintForeground.call(this,f,t,B,v,Math.min(C,F))};mxCellRenderer.registerShape("umlLifeline",Z);mxUtils.extend(da,mxShape);da.prototype.width=60;da.prototype.height=30;da.prototype.corner=10;da.prototype.configurePointerEvents=function(f){var t=
mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);null==this.style||null!=t&&t!=mxConstants.NONE&&0!=this.opacity&&0!=this.fillOpacity||"0"!=mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||(f.pointerEvents=!1)};da.prototype.getLabelMargins=function(f){return new mxRectangle(0,0,f.width-parseFloat(mxUtils.getValue(this.style,"width",this.width)*this.scale),f.height-parseFloat(mxUtils.getValue(this.style,"height",this.height)*this.scale))};da.prototype.paintBackground=
-function(f,t,B,u,C){var F=this.corner,I=Math.min(u,Math.max(F,parseFloat(mxUtils.getValue(this.style,"width",this.width)))),ja=Math.min(C,Math.max(1.5*F,parseFloat(mxUtils.getValue(this.style,"height",this.height)))),O=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);O!=mxConstants.NONE&&(f.setFillColor(O),f.rect(t,B,u,C),f.fill());null!=this.fill&&this.fill!=mxConstants.NONE&&this.gradient&&this.gradient!=mxConstants.NONE?(this.getGradientBounds(f,t,B,u,C),f.setGradient(this.fill,
-this.gradient,t,B,u,C,this.gradientDirection)):f.setFillColor(this.fill);f.pointerEvents=!0;f.begin();f.moveTo(t,B);f.lineTo(t+I,B);f.lineTo(t+I,B+Math.max(0,ja-1.5*F));f.lineTo(t+Math.max(0,I-F),B+ja);f.lineTo(t,B+ja);f.close();f.fillAndStroke();this.configurePointerEvents(f);f.begin();f.moveTo(t+I,B);f.lineTo(t+u,B);f.lineTo(t+u,B+C);f.lineTo(t,B+C);f.lineTo(t,B+ja);f.stroke()};mxCellRenderer.registerShape("umlFrame",da);mxPerimeter.CenterPerimeter=function(f,t,B,u){return new mxPoint(f.getCenterX(),
-f.getCenterY())};mxStyleRegistry.putValue("centerPerimeter",mxPerimeter.CenterPerimeter);mxPerimeter.LifelinePerimeter=function(f,t,B,u){u=Z.prototype.size;null!=t&&(u=mxUtils.getValue(t.style,"size",u)*t.view.scale);t=parseFloat(t.style[mxConstants.STYLE_STROKEWIDTH]||1)*t.view.scale/2-1;B.x<f.getCenterX()&&(t=-1*(t+1));return new mxPoint(f.getCenterX()+t,Math.min(f.y+f.height,Math.max(f.y+u,B.y)))};mxStyleRegistry.putValue("lifelinePerimeter",mxPerimeter.LifelinePerimeter);mxPerimeter.OrthogonalPerimeter=
-function(f,t,B,u){u=!0;return mxPerimeter.RectanglePerimeter.apply(this,arguments)};mxStyleRegistry.putValue("orthogonalPerimeter",mxPerimeter.OrthogonalPerimeter);mxPerimeter.BackbonePerimeter=function(f,t,B,u){u=parseFloat(t.style[mxConstants.STYLE_STROKEWIDTH]||1)*t.view.scale/2-1;null!=t.style.backboneSize&&(u+=parseFloat(t.style.backboneSize)*t.view.scale/2-1);if("south"==t.style[mxConstants.STYLE_DIRECTION]||"north"==t.style[mxConstants.STYLE_DIRECTION])return B.x<f.getCenterX()&&(u=-1*(u+1)),
-new mxPoint(f.getCenterX()+u,Math.min(f.y+f.height,Math.max(f.y,B.y)));B.y<f.getCenterY()&&(u=-1*(u+1));return new mxPoint(Math.min(f.x+f.width,Math.max(f.x,B.x)),f.getCenterY()+u)};mxStyleRegistry.putValue("backbonePerimeter",mxPerimeter.BackbonePerimeter);mxPerimeter.CalloutPerimeter=function(f,t,B,u){return mxPerimeter.RectanglePerimeter(mxUtils.getDirectedBounds(f,new mxRectangle(0,0,0,Math.max(0,Math.min(f.height,parseFloat(mxUtils.getValue(t.style,"size",ka.prototype.size))*t.view.scale))),
-t.style),t,B,u)};mxStyleRegistry.putValue("calloutPerimeter",mxPerimeter.CalloutPerimeter);mxPerimeter.ParallelogramPerimeter=function(f,t,B,u){var C="0"!=mxUtils.getValue(t.style,"fixedSize","0"),F=C?P.prototype.fixedSize:P.prototype.size;null!=t&&(F=mxUtils.getValue(t.style,"size",F));C&&(F*=t.view.scale);var I=f.x,ja=f.y,O=f.width,va=f.height;t=null!=t?mxUtils.getValue(t.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;t==mxConstants.DIRECTION_NORTH||t==
-mxConstants.DIRECTION_SOUTH?(C=C?Math.max(0,Math.min(va,F)):va*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I,ja),new mxPoint(I+O,ja+C),new mxPoint(I+O,ja+va),new mxPoint(I,ja+va-C),new mxPoint(I,ja)]):(C=C?Math.max(0,Math.min(.5*O,F)):O*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I+C,ja),new mxPoint(I+O,ja),new mxPoint(I+O-C,ja+va),new mxPoint(I,ja+va),new mxPoint(I+C,ja)]);va=f.getCenterX();f=f.getCenterY();f=new mxPoint(va,f);u&&(B.x<I||B.x>I+O?f.y=B.y:f.x=B.x);return mxUtils.getPerimeterPoint(ja,f,
-B)};mxStyleRegistry.putValue("parallelogramPerimeter",mxPerimeter.ParallelogramPerimeter);mxPerimeter.TrapezoidPerimeter=function(f,t,B,u){var C="0"!=mxUtils.getValue(t.style,"fixedSize","0"),F=C?W.prototype.fixedSize:W.prototype.size;null!=t&&(F=mxUtils.getValue(t.style,"size",F));C&&(F*=t.view.scale);var I=f.x,ja=f.y,O=f.width,va=f.height;t=null!=t?mxUtils.getValue(t.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;t==mxConstants.DIRECTION_EAST?(C=C?Math.max(0,
+function(f,t,B,v,C){var F=this.corner,I=Math.min(v,Math.max(F,parseFloat(mxUtils.getValue(this.style,"width",this.width)))),ja=Math.min(C,Math.max(1.5*F,parseFloat(mxUtils.getValue(this.style,"height",this.height)))),O=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);O!=mxConstants.NONE&&(f.setFillColor(O),f.rect(t,B,v,C),f.fill());null!=this.fill&&this.fill!=mxConstants.NONE&&this.gradient&&this.gradient!=mxConstants.NONE?(this.getGradientBounds(f,t,B,v,C),f.setGradient(this.fill,
+this.gradient,t,B,v,C,this.gradientDirection)):f.setFillColor(this.fill);f.pointerEvents=!0;f.begin();f.moveTo(t,B);f.lineTo(t+I,B);f.lineTo(t+I,B+Math.max(0,ja-1.5*F));f.lineTo(t+Math.max(0,I-F),B+ja);f.lineTo(t,B+ja);f.close();f.fillAndStroke();this.configurePointerEvents(f);f.begin();f.moveTo(t+I,B);f.lineTo(t+v,B);f.lineTo(t+v,B+C);f.lineTo(t,B+C);f.lineTo(t,B+ja);f.stroke()};mxCellRenderer.registerShape("umlFrame",da);mxPerimeter.CenterPerimeter=function(f,t,B,v){return new mxPoint(f.getCenterX(),
+f.getCenterY())};mxStyleRegistry.putValue("centerPerimeter",mxPerimeter.CenterPerimeter);mxPerimeter.LifelinePerimeter=function(f,t,B,v){v=Z.prototype.size;null!=t&&(v=mxUtils.getValue(t.style,"size",v)*t.view.scale);t=parseFloat(t.style[mxConstants.STYLE_STROKEWIDTH]||1)*t.view.scale/2-1;B.x<f.getCenterX()&&(t=-1*(t+1));return new mxPoint(f.getCenterX()+t,Math.min(f.y+f.height,Math.max(f.y+v,B.y)))};mxStyleRegistry.putValue("lifelinePerimeter",mxPerimeter.LifelinePerimeter);mxPerimeter.OrthogonalPerimeter=
+function(f,t,B,v){v=!0;return mxPerimeter.RectanglePerimeter.apply(this,arguments)};mxStyleRegistry.putValue("orthogonalPerimeter",mxPerimeter.OrthogonalPerimeter);mxPerimeter.BackbonePerimeter=function(f,t,B,v){v=parseFloat(t.style[mxConstants.STYLE_STROKEWIDTH]||1)*t.view.scale/2-1;null!=t.style.backboneSize&&(v+=parseFloat(t.style.backboneSize)*t.view.scale/2-1);if("south"==t.style[mxConstants.STYLE_DIRECTION]||"north"==t.style[mxConstants.STYLE_DIRECTION])return B.x<f.getCenterX()&&(v=-1*(v+1)),
+new mxPoint(f.getCenterX()+v,Math.min(f.y+f.height,Math.max(f.y,B.y)));B.y<f.getCenterY()&&(v=-1*(v+1));return new mxPoint(Math.min(f.x+f.width,Math.max(f.x,B.x)),f.getCenterY()+v)};mxStyleRegistry.putValue("backbonePerimeter",mxPerimeter.BackbonePerimeter);mxPerimeter.CalloutPerimeter=function(f,t,B,v){return mxPerimeter.RectanglePerimeter(mxUtils.getDirectedBounds(f,new mxRectangle(0,0,0,Math.max(0,Math.min(f.height,parseFloat(mxUtils.getValue(t.style,"size",ka.prototype.size))*t.view.scale))),
+t.style),t,B,v)};mxStyleRegistry.putValue("calloutPerimeter",mxPerimeter.CalloutPerimeter);mxPerimeter.ParallelogramPerimeter=function(f,t,B,v){var C="0"!=mxUtils.getValue(t.style,"fixedSize","0"),F=C?P.prototype.fixedSize:P.prototype.size;null!=t&&(F=mxUtils.getValue(t.style,"size",F));C&&(F*=t.view.scale);var I=f.x,ja=f.y,O=f.width,va=f.height;t=null!=t?mxUtils.getValue(t.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;t==mxConstants.DIRECTION_NORTH||t==
+mxConstants.DIRECTION_SOUTH?(C=C?Math.max(0,Math.min(va,F)):va*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I,ja),new mxPoint(I+O,ja+C),new mxPoint(I+O,ja+va),new mxPoint(I,ja+va-C),new mxPoint(I,ja)]):(C=C?Math.max(0,Math.min(.5*O,F)):O*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I+C,ja),new mxPoint(I+O,ja),new mxPoint(I+O-C,ja+va),new mxPoint(I,ja+va),new mxPoint(I+C,ja)]);va=f.getCenterX();f=f.getCenterY();f=new mxPoint(va,f);v&&(B.x<I||B.x>I+O?f.y=B.y:f.x=B.x);return mxUtils.getPerimeterPoint(ja,f,
+B)};mxStyleRegistry.putValue("parallelogramPerimeter",mxPerimeter.ParallelogramPerimeter);mxPerimeter.TrapezoidPerimeter=function(f,t,B,v){var C="0"!=mxUtils.getValue(t.style,"fixedSize","0"),F=C?W.prototype.fixedSize:W.prototype.size;null!=t&&(F=mxUtils.getValue(t.style,"size",F));C&&(F*=t.view.scale);var I=f.x,ja=f.y,O=f.width,va=f.height;t=null!=t?mxUtils.getValue(t.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;t==mxConstants.DIRECTION_EAST?(C=C?Math.max(0,
Math.min(.5*O,F)):O*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I+C,ja),new mxPoint(I+O-C,ja),new mxPoint(I+O,ja+va),new mxPoint(I,ja+va),new mxPoint(I+C,ja)]):t==mxConstants.DIRECTION_WEST?(C=C?Math.max(0,Math.min(O,F)):O*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I,ja),new mxPoint(I+O,ja),new mxPoint(I+O-C,ja+va),new mxPoint(I+C,ja+va),new mxPoint(I,ja)]):t==mxConstants.DIRECTION_NORTH?(C=C?Math.max(0,Math.min(va,F)):va*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I,ja+C),new mxPoint(I+O,ja),new mxPoint(I+
-O,ja+va),new mxPoint(I,ja+va-C),new mxPoint(I,ja+C)]):(C=C?Math.max(0,Math.min(va,F)):va*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I,ja),new mxPoint(I+O,ja+C),new mxPoint(I+O,ja+va-C),new mxPoint(I,ja+va),new mxPoint(I,ja)]);va=f.getCenterX();f=f.getCenterY();f=new mxPoint(va,f);u&&(B.x<I||B.x>I+O?f.y=B.y:f.x=B.x);return mxUtils.getPerimeterPoint(ja,f,B)};mxStyleRegistry.putValue("trapezoidPerimeter",mxPerimeter.TrapezoidPerimeter);mxPerimeter.StepPerimeter=function(f,t,B,u){var C="0"!=mxUtils.getValue(t.style,
+O,ja+va),new mxPoint(I,ja+va-C),new mxPoint(I,ja+C)]):(C=C?Math.max(0,Math.min(va,F)):va*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I,ja),new mxPoint(I+O,ja+C),new mxPoint(I+O,ja+va-C),new mxPoint(I,ja+va),new mxPoint(I,ja)]);va=f.getCenterX();f=f.getCenterY();f=new mxPoint(va,f);v&&(B.x<I||B.x>I+O?f.y=B.y:f.x=B.x);return mxUtils.getPerimeterPoint(ja,f,B)};mxStyleRegistry.putValue("trapezoidPerimeter",mxPerimeter.TrapezoidPerimeter);mxPerimeter.StepPerimeter=function(f,t,B,v){var C="0"!=mxUtils.getValue(t.style,
"fixedSize","0"),F=C?pa.prototype.fixedSize:pa.prototype.size;null!=t&&(F=mxUtils.getValue(t.style,"size",F));C&&(F*=t.view.scale);var I=f.x,ja=f.y,O=f.width,va=f.height,oa=f.getCenterX();f=f.getCenterY();t=null!=t?mxUtils.getValue(t.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;t==mxConstants.DIRECTION_EAST?(C=C?Math.max(0,Math.min(O,F)):O*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I,ja),new mxPoint(I+O-C,ja),new mxPoint(I+O,f),new mxPoint(I+O-C,ja+va),new mxPoint(I,
ja+va),new mxPoint(I+C,f),new mxPoint(I,ja)]):t==mxConstants.DIRECTION_WEST?(C=C?Math.max(0,Math.min(O,F)):O*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I+C,ja),new mxPoint(I+O,ja),new mxPoint(I+O-C,f),new mxPoint(I+O,ja+va),new mxPoint(I+C,ja+va),new mxPoint(I,f),new mxPoint(I+C,ja)]):t==mxConstants.DIRECTION_NORTH?(C=C?Math.max(0,Math.min(va,F)):va*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I,ja+C),new mxPoint(oa,ja),new mxPoint(I+O,ja+C),new mxPoint(I+O,ja+va),new mxPoint(oa,ja+va-C),new mxPoint(I,
-ja+va),new mxPoint(I,ja+C)]):(C=C?Math.max(0,Math.min(va,F)):va*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I,ja),new mxPoint(oa,ja+C),new mxPoint(I+O,ja),new mxPoint(I+O,ja+va-C),new mxPoint(oa,ja+va),new mxPoint(I,ja+va-C),new mxPoint(I,ja)]);oa=new mxPoint(oa,f);u&&(B.x<I||B.x>I+O?oa.y=B.y:oa.x=B.x);return mxUtils.getPerimeterPoint(ja,oa,B)};mxStyleRegistry.putValue("stepPerimeter",mxPerimeter.StepPerimeter);mxPerimeter.HexagonPerimeter2=function(f,t,B,u){var C="0"!=mxUtils.getValue(t.style,"fixedSize",
+ja+va),new mxPoint(I,ja+C)]):(C=C?Math.max(0,Math.min(va,F)):va*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I,ja),new mxPoint(oa,ja+C),new mxPoint(I+O,ja),new mxPoint(I+O,ja+va-C),new mxPoint(oa,ja+va),new mxPoint(I,ja+va-C),new mxPoint(I,ja)]);oa=new mxPoint(oa,f);v&&(B.x<I||B.x>I+O?oa.y=B.y:oa.x=B.x);return mxUtils.getPerimeterPoint(ja,oa,B)};mxStyleRegistry.putValue("stepPerimeter",mxPerimeter.StepPerimeter);mxPerimeter.HexagonPerimeter2=function(f,t,B,v){var C="0"!=mxUtils.getValue(t.style,"fixedSize",
"0"),F=C?ba.prototype.fixedSize:ba.prototype.size;null!=t&&(F=mxUtils.getValue(t.style,"size",F));C&&(F*=t.view.scale);var I=f.x,ja=f.y,O=f.width,va=f.height,oa=f.getCenterX();f=f.getCenterY();t=null!=t?mxUtils.getValue(t.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;t==mxConstants.DIRECTION_NORTH||t==mxConstants.DIRECTION_SOUTH?(C=C?Math.max(0,Math.min(va,F)):va*Math.max(0,Math.min(1,F)),ja=[new mxPoint(oa,ja),new mxPoint(I+O,ja+C),new mxPoint(I+O,ja+va-
-C),new mxPoint(oa,ja+va),new mxPoint(I,ja+va-C),new mxPoint(I,ja+C),new mxPoint(oa,ja)]):(C=C?Math.max(0,Math.min(O,F)):O*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I+C,ja),new mxPoint(I+O-C,ja),new mxPoint(I+O,f),new mxPoint(I+O-C,ja+va),new mxPoint(I+C,ja+va),new mxPoint(I,f),new mxPoint(I+C,ja)]);oa=new mxPoint(oa,f);u&&(B.x<I||B.x>I+O?oa.y=B.y:oa.x=B.x);return mxUtils.getPerimeterPoint(ja,oa,B)};mxStyleRegistry.putValue("hexagonPerimeter2",mxPerimeter.HexagonPerimeter2);mxUtils.extend(ma,mxShape);
-ma.prototype.size=10;ma.prototype.paintBackground=function(f,t,B,u,C){var F=parseFloat(mxUtils.getValue(this.style,"size",this.size));f.translate(t,B);f.ellipse((u-F)/2,0,F,F);f.fillAndStroke();f.begin();f.moveTo(u/2,F);f.lineTo(u/2,C);f.end();f.stroke()};mxCellRenderer.registerShape("lollipop",ma);mxUtils.extend(na,mxShape);na.prototype.size=10;na.prototype.inset=2;na.prototype.paintBackground=function(f,t,B,u,C){var F=parseFloat(mxUtils.getValue(this.style,"size",this.size)),I=parseFloat(mxUtils.getValue(this.style,
-"inset",this.inset))+this.strokewidth;f.translate(t,B);f.begin();f.moveTo(u/2,F+I);f.lineTo(u/2,C);f.end();f.stroke();f.begin();f.moveTo((u-F)/2-I,F/2);f.quadTo((u-F)/2-I,F+I,u/2,F+I);f.quadTo((u+F)/2+I,F+I,(u+F)/2+I,F/2);f.end();f.stroke()};mxCellRenderer.registerShape("requires",na);mxUtils.extend(ra,mxShape);ra.prototype.paintBackground=function(f,t,B,u,C){f.translate(t,B);f.begin();f.moveTo(0,0);f.quadTo(u,0,u,C/2);f.quadTo(u,C,0,C);f.end();f.stroke()};mxCellRenderer.registerShape("requiredInterface",
-ra);mxUtils.extend(ta,mxShape);ta.prototype.inset=2;ta.prototype.paintBackground=function(f,t,B,u,C){var F=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;f.translate(t,B);f.ellipse(0,F,u-2*F,C-2*F);f.fillAndStroke();f.begin();f.moveTo(u/2,0);f.quadTo(u,0,u,C/2);f.quadTo(u,C,u/2,C);f.end();f.stroke()};mxCellRenderer.registerShape("providedRequiredInterface",ta);mxUtils.extend(Aa,mxCylinder);Aa.prototype.jettyWidth=20;Aa.prototype.jettyHeight=10;Aa.prototype.redrawPath=
-function(f,t,B,u,C,F){var I=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));t=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));B=I/2;I=B+I/2;var ja=Math.min(t,C-t),O=Math.min(ja+2*t,C-t);F?(f.moveTo(B,ja),f.lineTo(I,ja),f.lineTo(I,ja+t),f.lineTo(B,ja+t),f.moveTo(B,O),f.lineTo(I,O),f.lineTo(I,O+t),f.lineTo(B,O+t)):(f.moveTo(B,0),f.lineTo(u,0),f.lineTo(u,C),f.lineTo(B,C),f.lineTo(B,O+t),f.lineTo(0,O+t),f.lineTo(0,O),f.lineTo(B,O),f.lineTo(B,ja+t),f.lineTo(0,
-ja+t),f.lineTo(0,ja),f.lineTo(B,ja),f.close());f.end()};mxCellRenderer.registerShape("module",Aa);mxUtils.extend(Ca,mxCylinder);Ca.prototype.jettyWidth=32;Ca.prototype.jettyHeight=12;Ca.prototype.redrawPath=function(f,t,B,u,C,F){var I=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));t=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));B=I/2;I=B+I/2;var ja=.3*C-t/2,O=.7*C-t/2;F?(f.moveTo(B,ja),f.lineTo(I,ja),f.lineTo(I,ja+t),f.lineTo(B,ja+t),f.moveTo(B,O),
-f.lineTo(I,O),f.lineTo(I,O+t),f.lineTo(B,O+t)):(f.moveTo(B,0),f.lineTo(u,0),f.lineTo(u,C),f.lineTo(B,C),f.lineTo(B,O+t),f.lineTo(0,O+t),f.lineTo(0,O),f.lineTo(B,O),f.lineTo(B,ja+t),f.lineTo(0,ja+t),f.lineTo(0,ja),f.lineTo(B,ja),f.close());f.end()};mxCellRenderer.registerShape("component",Ca);mxUtils.extend(xa,mxRectangleShape);xa.prototype.paintForeground=function(f,t,B,u,C){var F=u/2,I=C/2,ja=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;f.begin();this.addPoints(f,
-[new mxPoint(t+F,B),new mxPoint(t+u,B+I),new mxPoint(t+F,B+C),new mxPoint(t,B+I)],this.isRounded,ja,!0);f.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",xa);mxUtils.extend(Ea,mxDoubleEllipse);Ea.prototype.outerStroke=!0;Ea.prototype.paintVertexShape=function(f,t,B,u,C){var F=Math.min(4,Math.min(u/5,C/5));0<u&&0<C&&(f.ellipse(t+F,B+F,u-2*F,C-2*F),f.fillAndStroke());f.setShadow(!1);this.outerStroke&&(f.ellipse(t,B,u,C),f.stroke())};
+C),new mxPoint(oa,ja+va),new mxPoint(I,ja+va-C),new mxPoint(I,ja+C),new mxPoint(oa,ja)]):(C=C?Math.max(0,Math.min(O,F)):O*Math.max(0,Math.min(1,F)),ja=[new mxPoint(I+C,ja),new mxPoint(I+O-C,ja),new mxPoint(I+O,f),new mxPoint(I+O-C,ja+va),new mxPoint(I+C,ja+va),new mxPoint(I,f),new mxPoint(I+C,ja)]);oa=new mxPoint(oa,f);v&&(B.x<I||B.x>I+O?oa.y=B.y:oa.x=B.x);return mxUtils.getPerimeterPoint(ja,oa,B)};mxStyleRegistry.putValue("hexagonPerimeter2",mxPerimeter.HexagonPerimeter2);mxUtils.extend(ma,mxShape);
+ma.prototype.size=10;ma.prototype.paintBackground=function(f,t,B,v,C){var F=parseFloat(mxUtils.getValue(this.style,"size",this.size));f.translate(t,B);f.ellipse((v-F)/2,0,F,F);f.fillAndStroke();f.begin();f.moveTo(v/2,F);f.lineTo(v/2,C);f.end();f.stroke()};mxCellRenderer.registerShape("lollipop",ma);mxUtils.extend(na,mxShape);na.prototype.size=10;na.prototype.inset=2;na.prototype.paintBackground=function(f,t,B,v,C){var F=parseFloat(mxUtils.getValue(this.style,"size",this.size)),I=parseFloat(mxUtils.getValue(this.style,
+"inset",this.inset))+this.strokewidth;f.translate(t,B);f.begin();f.moveTo(v/2,F+I);f.lineTo(v/2,C);f.end();f.stroke();f.begin();f.moveTo((v-F)/2-I,F/2);f.quadTo((v-F)/2-I,F+I,v/2,F+I);f.quadTo((v+F)/2+I,F+I,(v+F)/2+I,F/2);f.end();f.stroke()};mxCellRenderer.registerShape("requires",na);mxUtils.extend(ra,mxShape);ra.prototype.paintBackground=function(f,t,B,v,C){f.translate(t,B);f.begin();f.moveTo(0,0);f.quadTo(v,0,v,C/2);f.quadTo(v,C,0,C);f.end();f.stroke()};mxCellRenderer.registerShape("requiredInterface",
+ra);mxUtils.extend(ta,mxShape);ta.prototype.inset=2;ta.prototype.paintBackground=function(f,t,B,v,C){var F=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;f.translate(t,B);f.ellipse(0,F,v-2*F,C-2*F);f.fillAndStroke();f.begin();f.moveTo(v/2,0);f.quadTo(v,0,v,C/2);f.quadTo(v,C,v/2,C);f.end();f.stroke()};mxCellRenderer.registerShape("providedRequiredInterface",ta);mxUtils.extend(Aa,mxCylinder);Aa.prototype.jettyWidth=20;Aa.prototype.jettyHeight=10;Aa.prototype.redrawPath=
+function(f,t,B,v,C,F){var I=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));t=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));B=I/2;I=B+I/2;var ja=Math.min(t,C-t),O=Math.min(ja+2*t,C-t);F?(f.moveTo(B,ja),f.lineTo(I,ja),f.lineTo(I,ja+t),f.lineTo(B,ja+t),f.moveTo(B,O),f.lineTo(I,O),f.lineTo(I,O+t),f.lineTo(B,O+t)):(f.moveTo(B,0),f.lineTo(v,0),f.lineTo(v,C),f.lineTo(B,C),f.lineTo(B,O+t),f.lineTo(0,O+t),f.lineTo(0,O),f.lineTo(B,O),f.lineTo(B,ja+t),f.lineTo(0,
+ja+t),f.lineTo(0,ja),f.lineTo(B,ja),f.close());f.end()};mxCellRenderer.registerShape("module",Aa);mxUtils.extend(Ca,mxCylinder);Ca.prototype.jettyWidth=32;Ca.prototype.jettyHeight=12;Ca.prototype.redrawPath=function(f,t,B,v,C,F){var I=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));t=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));B=I/2;I=B+I/2;var ja=.3*C-t/2,O=.7*C-t/2;F?(f.moveTo(B,ja),f.lineTo(I,ja),f.lineTo(I,ja+t),f.lineTo(B,ja+t),f.moveTo(B,O),
+f.lineTo(I,O),f.lineTo(I,O+t),f.lineTo(B,O+t)):(f.moveTo(B,0),f.lineTo(v,0),f.lineTo(v,C),f.lineTo(B,C),f.lineTo(B,O+t),f.lineTo(0,O+t),f.lineTo(0,O),f.lineTo(B,O),f.lineTo(B,ja+t),f.lineTo(0,ja+t),f.lineTo(0,ja),f.lineTo(B,ja),f.close());f.end()};mxCellRenderer.registerShape("component",Ca);mxUtils.extend(xa,mxRectangleShape);xa.prototype.paintForeground=function(f,t,B,v,C){var F=v/2,I=C/2,ja=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;f.begin();this.addPoints(f,
+[new mxPoint(t+F,B),new mxPoint(t+v,B+I),new mxPoint(t+F,B+C),new mxPoint(t,B+I)],this.isRounded,ja,!0);f.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",xa);mxUtils.extend(Ea,mxDoubleEllipse);Ea.prototype.outerStroke=!0;Ea.prototype.paintVertexShape=function(f,t,B,v,C){var F=Math.min(4,Math.min(v/5,C/5));0<v&&0<C&&(f.ellipse(t+F,B+F,v-2*F,C-2*F),f.fillAndStroke());f.setShadow(!1);this.outerStroke&&(f.ellipse(t,B,v,C),f.stroke())};
mxCellRenderer.registerShape("endState",Ea);mxUtils.extend(Ua,Ea);Ua.prototype.outerStroke=!1;mxCellRenderer.registerShape("startState",Ua);mxUtils.extend(Da,mxArrowConnector);Da.prototype.defaultWidth=4;Da.prototype.isOpenEnded=function(){return!0};Da.prototype.getEdgeWidth=function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,this.strokewidth-1)};Da.prototype.isArrowRounded=function(){return this.isRounded};mxCellRenderer.registerShape("link",Da);mxUtils.extend(Ha,
mxArrowConnector);Ha.prototype.defaultWidth=10;Ha.prototype.defaultArrowWidth=20;Ha.prototype.getStartArrowWidth=function(){return this.getEdgeWidth()+mxUtils.getNumber(this.style,"startWidth",this.defaultArrowWidth)};Ha.prototype.getEndArrowWidth=function(){return this.getEdgeWidth()+mxUtils.getNumber(this.style,"endWidth",this.defaultArrowWidth)};Ha.prototype.getEdgeWidth=function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,this.strokewidth-1)};mxCellRenderer.registerShape("flexArrow",
-Ha);mxUtils.extend($a,mxActor);$a.prototype.size=30;$a.prototype.isRoundable=function(){return!0};$a.prototype.redrawPath=function(f,t,B,u,C){t=Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size)));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,C),new mxPoint(0,t),new mxPoint(u,0),new mxPoint(u,C)],this.isRounded,B,!0);f.end()};mxCellRenderer.registerShape("manualInput",$a);mxUtils.extend(Ka,mxRectangleShape);Ka.prototype.dx=
-20;Ka.prototype.dy=20;Ka.prototype.isHtmlAllowed=function(){return!1};Ka.prototype.paintForeground=function(f,t,B,u,C){mxRectangleShape.prototype.paintForeground.apply(this,arguments);var F=0;if(this.isRounded){var I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100;F=Math.max(F,Math.min(u*I,C*I))}I=Math.max(F,Math.min(u,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));F=Math.max(F,Math.min(C,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));
-f.begin();f.moveTo(t,B+F);f.lineTo(t+u,B+F);f.end();f.stroke();f.begin();f.moveTo(t+I,B);f.lineTo(t+I,B+C);f.end();f.stroke()};mxCellRenderer.registerShape("internalStorage",Ka);mxUtils.extend(za,mxActor);za.prototype.dx=20;za.prototype.dy=20;za.prototype.isRoundable=function(){return!0};za.prototype.redrawPath=function(f,t,B,u,C){t=Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,
-"size",this.size));var F=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,0),new mxPoint(u,0),new mxPoint(u,B),new mxPoint(t,B),new mxPoint(t,C),new mxPoint(0,C)],this.isRounded,F,!0);f.end()};mxCellRenderer.registerShape("corner",za);mxUtils.extend(Sa,mxActor);Sa.prototype.redrawPath=function(f,t,B,u,C){f.moveTo(0,0);f.lineTo(0,C);f.end();f.moveTo(u,0);f.lineTo(u,C);f.end();f.moveTo(0,C/2);f.lineTo(u,C/2);f.end()};mxCellRenderer.registerShape("crossbar",
-Sa);mxUtils.extend(Oa,mxActor);Oa.prototype.dx=20;Oa.prototype.dy=20;Oa.prototype.isRoundable=function(){return!0};Oa.prototype.redrawPath=function(f,t,B,u,C){t=Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var F=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,0),new mxPoint(u,
-0),new mxPoint(u,B),new mxPoint((u+t)/2,B),new mxPoint((u+t)/2,C),new mxPoint((u-t)/2,C),new mxPoint((u-t)/2,B),new mxPoint(0,B)],this.isRounded,F,!0);f.end()};mxCellRenderer.registerShape("tee",Oa);mxUtils.extend(Ma,mxActor);Ma.prototype.arrowWidth=.3;Ma.prototype.arrowSize=.2;Ma.prototype.isRoundable=function(){return!0};Ma.prototype.redrawPath=function(f,t,B,u,C){var F=C*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth))));t=u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,
-"arrowSize",this.arrowSize))));B=(C-F)/2;F=B+F;var I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,B),new mxPoint(u-t,B),new mxPoint(u-t,0),new mxPoint(u,C/2),new mxPoint(u-t,C),new mxPoint(u-t,F),new mxPoint(0,F)],this.isRounded,I,!0);f.end()};mxCellRenderer.registerShape("singleArrow",Ma);mxUtils.extend(Na,mxActor);Na.prototype.isRoundable=function(){return!0};Na.prototype.redrawPath=function(f,t,B,u,C){var F=C*Math.max(0,Math.min(1,
-parseFloat(mxUtils.getValue(this.style,"arrowWidth",Ma.prototype.arrowWidth))));t=u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",Ma.prototype.arrowSize))));B=(C-F)/2;F=B+F;var I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,C/2),new mxPoint(t,0),new mxPoint(t,B),new mxPoint(u-t,B),new mxPoint(u-t,0),new mxPoint(u,C/2),new mxPoint(u-t,C),new mxPoint(u-t,F),new mxPoint(t,F),new mxPoint(t,C)],this.isRounded,
-I,!0);f.end()};mxCellRenderer.registerShape("doubleArrow",Na);mxUtils.extend(Ba,mxActor);Ba.prototype.size=.1;Ba.prototype.fixedSize=20;Ba.prototype.redrawPath=function(f,t,B,u,C){t="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):u*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));f.moveTo(t,0);f.lineTo(u,0);f.quadTo(u-2*t,C/2,u,C);f.lineTo(t,C);f.quadTo(t-2*t,C/2,t,0);f.close();
-f.end()};mxCellRenderer.registerShape("dataStorage",Ba);mxUtils.extend(Ya,mxActor);Ya.prototype.redrawPath=function(f,t,B,u,C){f.moveTo(0,0);f.quadTo(u,0,u,C/2);f.quadTo(u,C,0,C);f.close();f.end()};mxCellRenderer.registerShape("or",Ya);mxUtils.extend(Pa,mxActor);Pa.prototype.redrawPath=function(f,t,B,u,C){f.moveTo(0,0);f.quadTo(u,0,u,C/2);f.quadTo(u,C,0,C);f.quadTo(u/2,C/2,0,0);f.close();f.end()};mxCellRenderer.registerShape("xor",Pa);mxUtils.extend(sa,mxActor);sa.prototype.size=20;sa.prototype.isRoundable=
-function(){return!0};sa.prototype.redrawPath=function(f,t,B,u,C){t=Math.min(u/2,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(t,0),new mxPoint(u-t,0),new mxPoint(u,.8*t),new mxPoint(u,C),new mxPoint(0,C),new mxPoint(0,.8*t)],this.isRounded,B,!0);f.end()};mxCellRenderer.registerShape("loopLimit",sa);mxUtils.extend(Fa,mxActor);Fa.prototype.size=.375;Fa.prototype.isRoundable=
-function(){return!0};Fa.prototype.redrawPath=function(f,t,B,u,C){t=C*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,0),new mxPoint(u,0),new mxPoint(u,C-t),new mxPoint(u/2,C),new mxPoint(0,C-t)],this.isRounded,B,!0);f.end()};mxCellRenderer.registerShape("offPageConnector",Fa);mxUtils.extend(Qa,mxEllipse);Qa.prototype.paintVertexShape=function(f,t,B,
-u,C){mxEllipse.prototype.paintVertexShape.apply(this,arguments);f.begin();f.moveTo(t+u/2,B+C);f.lineTo(t+u,B+C);f.end();f.stroke()};mxCellRenderer.registerShape("tapeData",Qa);mxUtils.extend(Ta,mxEllipse);Ta.prototype.paintVertexShape=function(f,t,B,u,C){mxEllipse.prototype.paintVertexShape.apply(this,arguments);f.setShadow(!1);f.begin();f.moveTo(t,B+C/2);f.lineTo(t+u,B+C/2);f.end();f.stroke();f.begin();f.moveTo(t+u/2,B);f.lineTo(t+u/2,B+C);f.end();f.stroke()};mxCellRenderer.registerShape("orEllipse",
-Ta);mxUtils.extend(y,mxEllipse);y.prototype.paintVertexShape=function(f,t,B,u,C){mxEllipse.prototype.paintVertexShape.apply(this,arguments);f.setShadow(!1);f.begin();f.moveTo(t+.145*u,B+.145*C);f.lineTo(t+.855*u,B+.855*C);f.end();f.stroke();f.begin();f.moveTo(t+.855*u,B+.145*C);f.lineTo(t+.145*u,B+.855*C);f.end();f.stroke()};mxCellRenderer.registerShape("sumEllipse",y);mxUtils.extend(Q,mxRhombus);Q.prototype.paintVertexShape=function(f,t,B,u,C){mxRhombus.prototype.paintVertexShape.apply(this,arguments);
-f.setShadow(!1);f.begin();f.moveTo(t,B+C/2);f.lineTo(t+u,B+C/2);f.end();f.stroke()};mxCellRenderer.registerShape("sortShape",Q);mxUtils.extend(V,mxEllipse);V.prototype.paintVertexShape=function(f,t,B,u,C){f.begin();f.moveTo(t,B);f.lineTo(t+u,B);f.lineTo(t+u/2,B+C/2);f.close();f.fillAndStroke();f.begin();f.moveTo(t,B+C);f.lineTo(t+u,B+C);f.lineTo(t+u/2,B+C/2);f.close();f.fillAndStroke()};mxCellRenderer.registerShape("collate",V);mxUtils.extend(X,mxEllipse);X.prototype.paintVertexShape=function(f,t,
-B,u,C){var F=f.state.strokeWidth/2,I=10+2*F,ja=B+C-I/2;f.begin();f.moveTo(t,B);f.lineTo(t,B+C);f.moveTo(t+F,ja);f.lineTo(t+F+I,ja-I/2);f.moveTo(t+F,ja);f.lineTo(t+F+I,ja+I/2);f.moveTo(t+F,ja);f.lineTo(t+u-F,ja);f.moveTo(t+u,B);f.lineTo(t+u,B+C);f.moveTo(t+u-F,ja);f.lineTo(t+u-I-F,ja-I/2);f.moveTo(t+u-F,ja);f.lineTo(t+u-I-F,ja+I/2);f.end();f.stroke()};mxCellRenderer.registerShape("dimension",X);mxUtils.extend(ia,mxEllipse);ia.prototype.drawHidden=!0;ia.prototype.paintVertexShape=function(f,t,B,u,C){this.outline||
-f.setStrokeColor(null);if(null!=this.style){var F=f.pointerEvents,I=null!=this.fill&&this.fill!=mxConstants.NONE;"1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||I||(f.pointerEvents=!1);var ja="1"==mxUtils.getValue(this.style,"top","1"),O="1"==mxUtils.getValue(this.style,"left","1"),va="1"==mxUtils.getValue(this.style,"right","1"),oa="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||I||this.outline||ja||va||oa||O?(f.rect(t,B,u,C),f.fill(),f.pointerEvents=F,f.setStrokeColor(this.stroke),
-f.setLineCap("square"),f.begin(),f.moveTo(t,B),this.outline||ja?f.lineTo(t+u,B):f.moveTo(t+u,B),this.outline||va?f.lineTo(t+u,B+C):f.moveTo(t+u,B+C),this.outline||oa?f.lineTo(t,B+C):f.moveTo(t,B+C),(this.outline||O)&&f.lineTo(t,B),f.end(),f.stroke(),f.setLineCap("flat")):f.setStrokeColor(this.stroke)}};mxCellRenderer.registerShape("partialRectangle",ia);mxUtils.extend(la,mxEllipse);la.prototype.paintVertexShape=function(f,t,B,u,C){mxEllipse.prototype.paintVertexShape.apply(this,arguments);f.setShadow(!1);
-f.begin();"vertical"==mxUtils.getValue(this.style,"line")?(f.moveTo(t+u/2,B),f.lineTo(t+u/2,B+C)):(f.moveTo(t,B+C/2),f.lineTo(t+u,B+C/2));f.end();f.stroke()};mxCellRenderer.registerShape("lineEllipse",la);mxUtils.extend(qa,mxActor);qa.prototype.redrawPath=function(f,t,B,u,C){t=Math.min(u,C/2);f.moveTo(0,0);f.lineTo(u-t,0);f.quadTo(u,0,u,C/2);f.quadTo(u,C,u-t,C);f.lineTo(0,C);f.close();f.end()};mxCellRenderer.registerShape("delay",qa);mxUtils.extend(wa,mxActor);wa.prototype.size=.2;wa.prototype.redrawPath=
-function(f,t,B,u,C){t=Math.min(C,u);var F=Math.max(0,Math.min(t,t*parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=(C-F)/2;B=t+F;var I=(u-F)/2;F=I+F;f.moveTo(0,t);f.lineTo(I,t);f.lineTo(I,0);f.lineTo(F,0);f.lineTo(F,t);f.lineTo(u,t);f.lineTo(u,B);f.lineTo(F,B);f.lineTo(F,C);f.lineTo(I,C);f.lineTo(I,B);f.lineTo(0,B);f.close();f.end()};mxCellRenderer.registerShape("cross",wa);mxUtils.extend(ua,mxActor);ua.prototype.size=.25;ua.prototype.redrawPath=function(f,t,B,u,C){t=Math.min(u,C/2);
-B=Math.min(u-t,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*u);f.moveTo(0,C/2);f.lineTo(B,0);f.lineTo(u-t,0);f.quadTo(u,0,u,C/2);f.quadTo(u,C,u-t,C);f.lineTo(B,C);f.close();f.end()};mxCellRenderer.registerShape("display",ua);mxUtils.extend(ya,mxActor);ya.prototype.cst={RECT2:"mxgraph.basic.rect"};ya.prototype.customProperties=[{name:"rectStyle",dispName:"Style",type:"enum",defVal:"square",enumList:[{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",
+Ha);mxUtils.extend($a,mxActor);$a.prototype.size=30;$a.prototype.isRoundable=function(){return!0};$a.prototype.redrawPath=function(f,t,B,v,C){t=Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size)));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,C),new mxPoint(0,t),new mxPoint(v,0),new mxPoint(v,C)],this.isRounded,B,!0);f.end()};mxCellRenderer.registerShape("manualInput",$a);mxUtils.extend(Ka,mxRectangleShape);Ka.prototype.dx=
+20;Ka.prototype.dy=20;Ka.prototype.isHtmlAllowed=function(){return!1};Ka.prototype.paintForeground=function(f,t,B,v,C){mxRectangleShape.prototype.paintForeground.apply(this,arguments);var F=0;if(this.isRounded){var I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100;F=Math.max(F,Math.min(v*I,C*I))}I=Math.max(F,Math.min(v,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));F=Math.max(F,Math.min(C,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));
+f.begin();f.moveTo(t,B+F);f.lineTo(t+v,B+F);f.end();f.stroke();f.begin();f.moveTo(t+I,B);f.lineTo(t+I,B+C);f.end();f.stroke()};mxCellRenderer.registerShape("internalStorage",Ka);mxUtils.extend(za,mxActor);za.prototype.dx=20;za.prototype.dy=20;za.prototype.isRoundable=function(){return!0};za.prototype.redrawPath=function(f,t,B,v,C){t=Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,
+"size",this.size));var F=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,0),new mxPoint(v,0),new mxPoint(v,B),new mxPoint(t,B),new mxPoint(t,C),new mxPoint(0,C)],this.isRounded,F,!0);f.end()};mxCellRenderer.registerShape("corner",za);mxUtils.extend(Sa,mxActor);Sa.prototype.redrawPath=function(f,t,B,v,C){f.moveTo(0,0);f.lineTo(0,C);f.end();f.moveTo(v,0);f.lineTo(v,C);f.end();f.moveTo(0,C/2);f.lineTo(v,C/2);f.end()};mxCellRenderer.registerShape("crossbar",
+Sa);mxUtils.extend(Oa,mxActor);Oa.prototype.dx=20;Oa.prototype.dy=20;Oa.prototype.isRoundable=function(){return!0};Oa.prototype.redrawPath=function(f,t,B,v,C){t=Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));B=Math.max(0,Math.min(C,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var F=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,0),new mxPoint(v,
+0),new mxPoint(v,B),new mxPoint((v+t)/2,B),new mxPoint((v+t)/2,C),new mxPoint((v-t)/2,C),new mxPoint((v-t)/2,B),new mxPoint(0,B)],this.isRounded,F,!0);f.end()};mxCellRenderer.registerShape("tee",Oa);mxUtils.extend(Ma,mxActor);Ma.prototype.arrowWidth=.3;Ma.prototype.arrowSize=.2;Ma.prototype.isRoundable=function(){return!0};Ma.prototype.redrawPath=function(f,t,B,v,C){var F=C*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth))));t=v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,
+"arrowSize",this.arrowSize))));B=(C-F)/2;F=B+F;var I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,B),new mxPoint(v-t,B),new mxPoint(v-t,0),new mxPoint(v,C/2),new mxPoint(v-t,C),new mxPoint(v-t,F),new mxPoint(0,F)],this.isRounded,I,!0);f.end()};mxCellRenderer.registerShape("singleArrow",Ma);mxUtils.extend(Na,mxActor);Na.prototype.isRoundable=function(){return!0};Na.prototype.redrawPath=function(f,t,B,v,C){var F=C*Math.max(0,Math.min(1,
+parseFloat(mxUtils.getValue(this.style,"arrowWidth",Ma.prototype.arrowWidth))));t=v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",Ma.prototype.arrowSize))));B=(C-F)/2;F=B+F;var I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,C/2),new mxPoint(t,0),new mxPoint(t,B),new mxPoint(v-t,B),new mxPoint(v-t,0),new mxPoint(v,C/2),new mxPoint(v-t,C),new mxPoint(v-t,F),new mxPoint(t,F),new mxPoint(t,C)],this.isRounded,
+I,!0);f.end()};mxCellRenderer.registerShape("doubleArrow",Na);mxUtils.extend(Ba,mxActor);Ba.prototype.size=.1;Ba.prototype.fixedSize=20;Ba.prototype.redrawPath=function(f,t,B,v,C){t="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):v*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));f.moveTo(t,0);f.lineTo(v,0);f.quadTo(v-2*t,C/2,v,C);f.lineTo(t,C);f.quadTo(t-2*t,C/2,t,0);f.close();
+f.end()};mxCellRenderer.registerShape("dataStorage",Ba);mxUtils.extend(Ya,mxActor);Ya.prototype.redrawPath=function(f,t,B,v,C){f.moveTo(0,0);f.quadTo(v,0,v,C/2);f.quadTo(v,C,0,C);f.close();f.end()};mxCellRenderer.registerShape("or",Ya);mxUtils.extend(Pa,mxActor);Pa.prototype.redrawPath=function(f,t,B,v,C){f.moveTo(0,0);f.quadTo(v,0,v,C/2);f.quadTo(v,C,0,C);f.quadTo(v/2,C/2,0,0);f.close();f.end()};mxCellRenderer.registerShape("xor",Pa);mxUtils.extend(sa,mxActor);sa.prototype.size=20;sa.prototype.isRoundable=
+function(){return!0};sa.prototype.redrawPath=function(f,t,B,v,C){t=Math.min(v/2,Math.min(C,parseFloat(mxUtils.getValue(this.style,"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(t,0),new mxPoint(v-t,0),new mxPoint(v,.8*t),new mxPoint(v,C),new mxPoint(0,C),new mxPoint(0,.8*t)],this.isRounded,B,!0);f.end()};mxCellRenderer.registerShape("loopLimit",sa);mxUtils.extend(Fa,mxActor);Fa.prototype.size=.375;Fa.prototype.isRoundable=
+function(){return!0};Fa.prototype.redrawPath=function(f,t,B,v,C){t=C*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));B=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(f,[new mxPoint(0,0),new mxPoint(v,0),new mxPoint(v,C-t),new mxPoint(v/2,C),new mxPoint(0,C-t)],this.isRounded,B,!0);f.end()};mxCellRenderer.registerShape("offPageConnector",Fa);mxUtils.extend(Qa,mxEllipse);Qa.prototype.paintVertexShape=function(f,t,B,
+v,C){mxEllipse.prototype.paintVertexShape.apply(this,arguments);f.begin();f.moveTo(t+v/2,B+C);f.lineTo(t+v,B+C);f.end();f.stroke()};mxCellRenderer.registerShape("tapeData",Qa);mxUtils.extend(Ta,mxEllipse);Ta.prototype.paintVertexShape=function(f,t,B,v,C){mxEllipse.prototype.paintVertexShape.apply(this,arguments);f.setShadow(!1);f.begin();f.moveTo(t,B+C/2);f.lineTo(t+v,B+C/2);f.end();f.stroke();f.begin();f.moveTo(t+v/2,B);f.lineTo(t+v/2,B+C);f.end();f.stroke()};mxCellRenderer.registerShape("orEllipse",
+Ta);mxUtils.extend(y,mxEllipse);y.prototype.paintVertexShape=function(f,t,B,v,C){mxEllipse.prototype.paintVertexShape.apply(this,arguments);f.setShadow(!1);f.begin();f.moveTo(t+.145*v,B+.145*C);f.lineTo(t+.855*v,B+.855*C);f.end();f.stroke();f.begin();f.moveTo(t+.855*v,B+.145*C);f.lineTo(t+.145*v,B+.855*C);f.end();f.stroke()};mxCellRenderer.registerShape("sumEllipse",y);mxUtils.extend(Q,mxRhombus);Q.prototype.paintVertexShape=function(f,t,B,v,C){mxRhombus.prototype.paintVertexShape.apply(this,arguments);
+f.setShadow(!1);f.begin();f.moveTo(t,B+C/2);f.lineTo(t+v,B+C/2);f.end();f.stroke()};mxCellRenderer.registerShape("sortShape",Q);mxUtils.extend(V,mxEllipse);V.prototype.paintVertexShape=function(f,t,B,v,C){f.begin();f.moveTo(t,B);f.lineTo(t+v,B);f.lineTo(t+v/2,B+C/2);f.close();f.fillAndStroke();f.begin();f.moveTo(t,B+C);f.lineTo(t+v,B+C);f.lineTo(t+v/2,B+C/2);f.close();f.fillAndStroke()};mxCellRenderer.registerShape("collate",V);mxUtils.extend(X,mxEllipse);X.prototype.paintVertexShape=function(f,t,
+B,v,C){var F=f.state.strokeWidth/2,I=10+2*F,ja=B+C-I/2;f.begin();f.moveTo(t,B);f.lineTo(t,B+C);f.moveTo(t+F,ja);f.lineTo(t+F+I,ja-I/2);f.moveTo(t+F,ja);f.lineTo(t+F+I,ja+I/2);f.moveTo(t+F,ja);f.lineTo(t+v-F,ja);f.moveTo(t+v,B);f.lineTo(t+v,B+C);f.moveTo(t+v-F,ja);f.lineTo(t+v-I-F,ja-I/2);f.moveTo(t+v-F,ja);f.lineTo(t+v-I-F,ja+I/2);f.end();f.stroke()};mxCellRenderer.registerShape("dimension",X);mxUtils.extend(ia,mxEllipse);ia.prototype.drawHidden=!0;ia.prototype.paintVertexShape=function(f,t,B,v,C){this.outline||
+f.setStrokeColor(null);if(null!=this.style){var F=f.pointerEvents,I=null!=this.fill&&this.fill!=mxConstants.NONE;"1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||I||(f.pointerEvents=!1);var ja="1"==mxUtils.getValue(this.style,"top","1"),O="1"==mxUtils.getValue(this.style,"left","1"),va="1"==mxUtils.getValue(this.style,"right","1"),oa="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||I||this.outline||ja||va||oa||O?(f.rect(t,B,v,C),f.fill(),f.pointerEvents=F,f.setStrokeColor(this.stroke),
+f.setLineCap("square"),f.begin(),f.moveTo(t,B),this.outline||ja?f.lineTo(t+v,B):f.moveTo(t+v,B),this.outline||va?f.lineTo(t+v,B+C):f.moveTo(t+v,B+C),this.outline||oa?f.lineTo(t,B+C):f.moveTo(t,B+C),(this.outline||O)&&f.lineTo(t,B),f.end(),f.stroke(),f.setLineCap("flat")):f.setStrokeColor(this.stroke)}};mxCellRenderer.registerShape("partialRectangle",ia);mxUtils.extend(la,mxEllipse);la.prototype.paintVertexShape=function(f,t,B,v,C){mxEllipse.prototype.paintVertexShape.apply(this,arguments);f.setShadow(!1);
+f.begin();"vertical"==mxUtils.getValue(this.style,"line")?(f.moveTo(t+v/2,B),f.lineTo(t+v/2,B+C)):(f.moveTo(t,B+C/2),f.lineTo(t+v,B+C/2));f.end();f.stroke()};mxCellRenderer.registerShape("lineEllipse",la);mxUtils.extend(qa,mxActor);qa.prototype.redrawPath=function(f,t,B,v,C){t=Math.min(v,C/2);f.moveTo(0,0);f.lineTo(v-t,0);f.quadTo(v,0,v,C/2);f.quadTo(v,C,v-t,C);f.lineTo(0,C);f.close();f.end()};mxCellRenderer.registerShape("delay",qa);mxUtils.extend(wa,mxActor);wa.prototype.size=.2;wa.prototype.redrawPath=
+function(f,t,B,v,C){t=Math.min(C,v);var F=Math.max(0,Math.min(t,t*parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=(C-F)/2;B=t+F;var I=(v-F)/2;F=I+F;f.moveTo(0,t);f.lineTo(I,t);f.lineTo(I,0);f.lineTo(F,0);f.lineTo(F,t);f.lineTo(v,t);f.lineTo(v,B);f.lineTo(F,B);f.lineTo(F,C);f.lineTo(I,C);f.lineTo(I,B);f.lineTo(0,B);f.close();f.end()};mxCellRenderer.registerShape("cross",wa);mxUtils.extend(ua,mxActor);ua.prototype.size=.25;ua.prototype.redrawPath=function(f,t,B,v,C){t=Math.min(v,C/2);
+B=Math.min(v-t,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*v);f.moveTo(0,C/2);f.lineTo(B,0);f.lineTo(v-t,0);f.quadTo(v,0,v,C/2);f.quadTo(v,C,v-t,C);f.lineTo(B,C);f.close();f.end()};mxCellRenderer.registerShape("display",ua);mxUtils.extend(ya,mxActor);ya.prototype.cst={RECT2:"mxgraph.basic.rect"};ya.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"}]}];ya.prototype.paintVertexShape=function(f,t,B,u,C){f.translate(t,B);this.strictDrawShape(f,0,0,u,C)};ya.prototype.strictDrawShape=function(f,t,B,u,C,F){var I=F&&F.rectStyle?F.rectStyle:mxUtils.getValue(this.style,"rectStyle",this.rectStyle),ja=F&&F.absoluteCornerSize?F.absoluteCornerSize:mxUtils.getValue(this.style,
-"absoluteCornerSize",this.absoluteCornerSize),O=F&&F.size?F.size:Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),va=F&&F.rectOutline?F.rectOutline:mxUtils.getValue(this.style,"rectOutline",this.rectOutline),oa=F&&F.indent?F.indent:Math.max(0,Math.min(u,parseFloat(mxUtils.getValue(this.style,"indent",this.indent)))),bb=F&&F.dashed?F.dashed:mxUtils.getValue(this.style,"dashed",!1),mb=F&&F.dashPattern?F.dashPattern:mxUtils.getValue(this.style,"dashPattern",null),hb=
+dispName:"Default"},{val:"square",dispName:"Square"},{val:"rounded",dispName:"Round"},{val:"snip",dispName:"Snip"},{val:"invRound",dispName:"Inv. Round"},{val:"fold",dispName:"Fold"}]}];ya.prototype.paintVertexShape=function(f,t,B,v,C){f.translate(t,B);this.strictDrawShape(f,0,0,v,C)};ya.prototype.strictDrawShape=function(f,t,B,v,C,F){var I=F&&F.rectStyle?F.rectStyle:mxUtils.getValue(this.style,"rectStyle",this.rectStyle),ja=F&&F.absoluteCornerSize?F.absoluteCornerSize:mxUtils.getValue(this.style,
+"absoluteCornerSize",this.absoluteCornerSize),O=F&&F.size?F.size:Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),va=F&&F.rectOutline?F.rectOutline:mxUtils.getValue(this.style,"rectOutline",this.rectOutline),oa=F&&F.indent?F.indent:Math.max(0,Math.min(v,parseFloat(mxUtils.getValue(this.style,"indent",this.indent)))),bb=F&&F.dashed?F.dashed:mxUtils.getValue(this.style,"dashed",!1),mb=F&&F.dashPattern?F.dashPattern:mxUtils.getValue(this.style,"dashPattern",null),hb=
F&&F.relIndent?F.relIndent:Math.max(0,Math.min(50,oa)),Ga=F&&F.top?F.top:mxUtils.getValue(this.style,"top",!0),La=F&&F.right?F.right:mxUtils.getValue(this.style,"right",!0),Ja=F&&F.bottom?F.bottom:mxUtils.getValue(this.style,"bottom",!0),Ia=F&&F.left?F.left:mxUtils.getValue(this.style,"left",!0),Xa=F&&F.topLeftStyle?F.topLeftStyle:mxUtils.getValue(this.style,"topLeftStyle","default"),cb=F&&F.topRightStyle?F.topRightStyle:mxUtils.getValue(this.style,"topRightStyle","default"),db=F&&F.bottomRightStyle?
F.bottomRightStyle:mxUtils.getValue(this.style,"bottomRightStyle","default"),eb=F&&F.bottomLeftStyle?F.bottomLeftStyle:mxUtils.getValue(this.style,"bottomLeftStyle","default"),Ib=F&&F.fillColor?F.fillColor:mxUtils.getValue(this.style,"fillColor","#ffffff");F&&F.strokeColor||mxUtils.getValue(this.style,"strokeColor","#000000");var Jb=F&&F.strokeWidth?F.strokeWidth:mxUtils.getValue(this.style,"strokeWidth","1"),Gb=F&&F.fillColor2?F.fillColor2:mxUtils.getValue(this.style,"fillColor2","none"),Hb=F&&F.gradientColor2?
-F.gradientColor2:mxUtils.getValue(this.style,"gradientColor2","none"),Kb=F&&F.gradientDirection2?F.gradientDirection2:mxUtils.getValue(this.style,"gradientDirection2","south"),Lb=F&&F.opacity?F.opacity:mxUtils.getValue(this.style,"opacity","100"),Mb=Math.max(0,Math.min(50,O));F=ya.prototype;f.setDashed(bb);mb&&""!=mb&&f.setDashPattern(mb);f.setStrokeWidth(Jb);O=Math.min(.5*C,.5*u,O);ja||(O=Mb*Math.min(u,C)/100);O=Math.min(O,.5*Math.min(u,C));ja||(oa=Math.min(hb*Math.min(u,C)/100));oa=Math.min(oa,
-.5*Math.min(u,C)-O);(Ga||La||Ja||Ia)&&"frame"!=va&&(f.begin(),Ga?F.moveNW(f,t,B,u,C,I,Xa,O,Ia):f.moveTo(0,0),Ga&&F.paintNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),La&&F.paintNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),Ja&&F.paintSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,u,C,I,eb,O,Ia),Ia&&F.paintSW(f,t,B,u,C,I,eb,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),f.close(),f.fill(),f.setShadow(!1),f.setFillColor(Gb),bb=ja=Lb,"none"==Gb&&(ja=0),"none"==Hb&&(bb=0),f.setGradient(Gb,
-Hb,0,0,u,C,Kb,ja,bb),f.begin(),Ga?F.moveNWInner(f,t,B,u,C,I,Xa,O,oa,Ga,Ia):f.moveTo(oa,0),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia),Ia&&Ja&&F.paintSWInner(f,t,B,u,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja),Ja&&La&&F.paintSEInner(f,t,B,u,C,I,db,O,oa),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La),La&&Ga&&F.paintNEInner(f,t,B,u,C,I,cb,O,oa),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga),Ga&&Ia&&F.paintNWInner(f,t,B,u,C,I,Xa,O,oa),f.fill(),"none"==Ib&&(f.begin(),F.paintFolds(f,t,B,u,C,
-I,Xa,cb,db,eb,O,Ga,La,Ja,Ia),f.stroke()));Ga||La||Ja||!Ia?Ga||La||!Ja||Ia?!Ga&&!La&&Ja&&Ia?"frame"!=va?(f.begin(),F.moveSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,u,C,I,eb,O,Ia),F.paintSW(f,t,B,u,C,I,eb,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),"double"==va&&(F.moveNWInner(f,t,B,u,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia),F.paintSWInner(f,t,B,u,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja)),f.stroke()):(f.begin(),F.moveSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,
-u,C,I,eb,O,Ia),F.paintSW(f,t,B,u,C,I,eb,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),F.lineNWInner(f,t,B,u,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia),F.paintSWInner(f,t,B,u,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja),f.close(),f.fillAndStroke()):Ga||!La||Ja||Ia?!Ga&&La&&!Ja&&Ia?"frame"!=va?(f.begin(),F.moveSW(f,t,B,u,C,I,Xa,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),"double"==va&&(F.moveNWInner(f,t,B,u,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia)),f.stroke(),
-f.begin(),F.moveNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),"double"==va&&(F.moveSEInner(f,t,B,u,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La)),f.stroke()):(f.begin(),F.moveSW(f,t,B,u,C,I,Xa,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),F.lineNWInner(f,t,B,u,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia),f.close(),f.fillAndStroke(),f.begin(),F.moveNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),F.lineSEInner(f,t,B,u,C,I,db,O,oa,Ja),F.paintRightInner(f,
-t,B,u,C,I,cb,O,oa,Ga,La),f.close(),f.fillAndStroke()):!Ga&&La&&Ja&&!Ia?"frame"!=va?(f.begin(),F.moveNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),F.paintSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,u,C,I,eb,O,Ia),"double"==va&&(F.moveSWInner(f,t,B,u,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,u,C,I,db,O,oa),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La)),f.stroke()):(f.begin(),F.moveNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),F.paintSE(f,
-t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,u,C,I,eb,O,Ia),F.lineSWInner(f,t,B,u,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,u,C,I,db,O,oa),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La),f.close(),f.fillAndStroke()):!Ga&&La&&Ja&&Ia?"frame"!=va?(f.begin(),F.moveNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),F.paintSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,u,C,I,eb,O,Ia),F.paintSW(f,t,B,u,C,I,eb,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),"double"==va&&(F.moveNWInner(f,
-t,B,u,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia),F.paintSWInner(f,t,B,u,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,u,C,I,db,O,oa),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La)),f.stroke()):(f.begin(),F.moveNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),F.paintSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,u,C,I,eb,O,Ia),F.paintSW(f,t,B,u,C,I,eb,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),F.lineNWInner(f,t,B,u,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,
-t,B,u,C,I,eb,O,oa,Ja,Ia),F.paintSWInner(f,t,B,u,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,u,C,I,db,O,oa),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La),f.close(),f.fillAndStroke()):!Ga||La||Ja||Ia?Ga&&!La&&!Ja&&Ia?"frame"!=va?(f.begin(),F.moveSW(f,t,B,u,C,I,eb,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),F.paintNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),"double"==va&&(F.moveNEInner(f,t,B,u,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,
-t,B,u,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia)),f.stroke()):(f.begin(),F.moveSW(f,t,B,u,C,I,eb,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),F.paintNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),F.lineNEInner(f,t,B,u,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,t,B,u,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia),f.close(),f.fillAndStroke()):Ga&&!La&&Ja&&!Ia?"frame"!=va?(f.begin(),F.moveNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,
-La),"double"==va&&(F.moveNEInner(f,t,B,u,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga)),f.stroke(),f.begin(),F.moveSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,u,C,I,eb,O,Ia),"double"==va&&(F.moveSWInner(f,t,B,u,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja)),f.stroke()):(f.begin(),F.moveNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),F.lineNEInner(f,t,B,u,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga),f.close(),f.fillAndStroke(),f.begin(),F.moveSE(f,
-t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,u,C,I,eb,O,Ia),F.lineSWInner(f,t,B,u,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja),f.close(),f.fillAndStroke()):Ga&&!La&&Ja&&Ia?"frame"!=va?(f.begin(),F.moveSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,u,C,I,eb,O,Ia),F.paintSW(f,t,B,u,C,I,eb,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),F.paintNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),"double"==va&&(F.moveNEInner(f,t,B,u,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,
-t,B,u,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia),F.paintSWInner(f,t,B,u,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja)),f.stroke()):(f.begin(),F.moveSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,u,C,I,eb,O,Ia),F.paintSW(f,t,B,u,C,I,eb,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),F.paintNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),F.lineNEInner(f,t,B,u,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,t,B,u,C,I,Xa,O,oa),F.paintLeftInner(f,t,
-B,u,C,I,eb,O,oa,Ja,Ia),F.paintSWInner(f,t,B,u,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja),f.close(),f.fillAndStroke()):Ga&&La&&!Ja&&!Ia?"frame"!=va?(f.begin(),F.moveNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),F.paintNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),"double"==va&&(F.moveSEInner(f,t,B,u,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,u,C,I,cb,O,oa),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga)),f.stroke()):(f.begin(),
-F.moveNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),F.paintNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),F.lineSEInner(f,t,B,u,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,u,C,I,cb,O,oa),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga),f.close(),f.fillAndStroke()):Ga&&La&&!Ja&&Ia?"frame"!=va?(f.begin(),F.moveSW(f,t,B,u,C,I,eb,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),F.paintNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),F.paintNE(f,t,B,u,
-C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),"double"==va&&(F.moveSEInner(f,t,B,u,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,u,C,I,cb,O,oa),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,t,B,u,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia)),f.stroke()):(f.begin(),F.moveSW(f,t,B,u,C,I,eb,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),F.paintNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),F.paintNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,
-B,u,C,I,db,O,Ja),F.lineSEInner(f,t,B,u,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,u,C,I,cb,O,oa),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,t,B,u,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia),f.close(),f.fillAndStroke()):Ga&&La&&Ja&&!Ia?"frame"!=va?(f.begin(),F.moveNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),F.paintNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),F.paintSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,
-t,B,u,C,I,eb,O,Ia),"double"==va&&(F.moveSWInner(f,t,B,u,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,u,C,I,db,O,oa),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,u,C,I,cb,O,oa),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga)),f.stroke()):(f.begin(),F.moveNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),F.paintNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),F.paintSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,u,C,I,eb,O,Ia),F.lineSWInner(f,
-t,B,u,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,u,C,I,db,O,oa),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,u,C,I,cb,O,oa),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga),f.close(),f.fillAndStroke()):Ga&&La&&Ja&&Ia&&("frame"!=va?(f.begin(),F.moveNW(f,t,B,u,C,I,Xa,O,Ia),F.paintNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),F.paintNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),F.paintSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,
-t,B,u,C,I,eb,O,Ia),F.paintSW(f,t,B,u,C,I,eb,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),f.close(),"double"==va&&(F.moveSWInner(f,t,B,u,C,I,eb,O,oa,Ia),F.paintSWInner(f,t,B,u,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,u,C,I,db,O,oa),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,u,C,I,cb,O,oa),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,t,B,u,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia),f.close()),f.stroke()):(f.begin(),
-F.moveNW(f,t,B,u,C,I,Xa,O,Ia),F.paintNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),F.paintNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),F.paintSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,u,C,I,eb,O,Ia),F.paintSW(f,t,B,u,C,I,eb,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),f.close(),F.moveSWInner(f,t,B,u,C,I,eb,O,oa,Ia),F.paintSWInner(f,t,B,u,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,u,C,I,db,O,oa),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La),
-F.paintNEInner(f,t,B,u,C,I,cb,O,oa),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,t,B,u,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia),f.close(),f.fillAndStroke())):"frame"!=va?(f.begin(),F.moveNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),"double"==va&&(F.moveNEInner(f,t,B,u,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,u,C,I,Xa,O,oa,Ia,Ga)),f.stroke()):(f.begin(),F.moveNW(f,t,B,u,C,I,Xa,O,Ia),F.paintTop(f,t,B,u,C,I,cb,O,La),F.lineNEInner(f,t,B,u,C,I,cb,O,oa,La),F.paintTopInner(f,
-t,B,u,C,I,Xa,O,oa,Ia,Ga),f.close(),f.fillAndStroke()):"frame"!=va?(f.begin(),F.moveNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),"double"==va&&(F.moveSEInner(f,t,B,u,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La)),f.stroke()):(f.begin(),F.moveNE(f,t,B,u,C,I,cb,O,Ga),F.paintRight(f,t,B,u,C,I,db,O,Ja),F.lineSEInner(f,t,B,u,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,u,C,I,cb,O,oa,Ga,La),f.close(),f.fillAndStroke()):"frame"!=va?(f.begin(),F.moveSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,
-t,B,u,C,I,eb,O,Ia),"double"==va&&(F.moveSWInner(f,t,B,u,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja)),f.stroke()):(f.begin(),F.moveSE(f,t,B,u,C,I,db,O,La),F.paintBottom(f,t,B,u,C,I,eb,O,Ia),F.lineSWInner(f,t,B,u,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,u,C,I,db,O,oa,La,Ja),f.close(),f.fillAndStroke()):"frame"!=va?(f.begin(),F.moveSW(f,t,B,u,C,I,Xa,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),"double"==va&&(F.moveNWInner(f,t,B,u,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,
-Ia)),f.stroke()):(f.begin(),F.moveSW(f,t,B,u,C,I,Xa,O,Ja),F.paintLeft(f,t,B,u,C,I,Xa,O,Ga),F.lineNWInner(f,t,B,u,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,u,C,I,eb,O,oa,Ja,Ia),f.close(),f.fillAndStroke());f.begin();F.paintFolds(f,t,B,u,C,I,Xa,cb,db,eb,O,Ga,La,Ja,Ia);f.stroke()};ya.prototype.moveNW=function(f,t,B,u,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.moveTo(0,0):f.moveTo(0,ja)};ya.prototype.moveNE=function(f,t,B,u,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.moveTo(u,
-0):f.moveTo(u-ja,0)};ya.prototype.moveSE=function(f,t,B,u,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.moveTo(u,C):f.moveTo(u,C-ja)};ya.prototype.moveSW=function(f,t,B,u,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.moveTo(0,C):f.moveTo(ja,C)};ya.prototype.paintNW=function(f,t,B,u,C,F,I,ja,O){if(O)if("rounded"==I||"default"==I&&"rounded"==F||"invRound"==I||"default"==I&&"invRound"==F){t=0;if("rounded"==I||"default"==I&&"rounded"==F)t=1;f.arcTo(ja,ja,0,0,t,ja,0)}else("snip"==
-I||"default"==I&&"snip"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(ja,0);else f.lineTo(0,0)};ya.prototype.paintTop=function(f,t,B,u,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.lineTo(u,0):f.lineTo(u-ja,0)};ya.prototype.paintNE=function(f,t,B,u,C,F,I,ja,O){if(O)if("rounded"==I||"default"==I&&"rounded"==F||"invRound"==I||"default"==I&&"invRound"==F){t=0;if("rounded"==I||"default"==I&&"rounded"==F)t=1;f.arcTo(ja,ja,0,0,t,u,ja)}else("snip"==I||"default"==I&&"snip"==F||"fold"==I||"default"==
-I&&"fold"==F)&&f.lineTo(u,ja);else f.lineTo(u,0)};ya.prototype.paintRight=function(f,t,B,u,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.lineTo(u,C):f.lineTo(u,C-ja)};ya.prototype.paintLeft=function(f,t,B,u,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.lineTo(0,0):f.lineTo(0,ja)};ya.prototype.paintSE=function(f,t,B,u,C,F,I,ja,O){if(O)if("rounded"==I||"default"==I&&"rounded"==F||"invRound"==I||"default"==I&&"invRound"==F){t=0;if("rounded"==I||"default"==I&&"rounded"==F)t=1;f.arcTo(ja,
-ja,0,0,t,u-ja,C)}else("snip"==I||"default"==I&&"snip"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(u-ja,C);else f.lineTo(u,C)};ya.prototype.paintBottom=function(f,t,B,u,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.lineTo(0,C):f.lineTo(ja,C)};ya.prototype.paintSW=function(f,t,B,u,C,F,I,ja,O){if(O)if("rounded"==I||"default"==I&&"rounded"==F||"invRound"==I||"default"==I&&"invRound"==F){t=0;if("rounded"==I||"default"==I&&"rounded"==F)t=1;f.arcTo(ja,ja,0,0,t,0,C-ja)}else("snip"==I||"default"==
-I&&"snip"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(0,C-ja);else f.lineTo(0,C)};ya.prototype.paintNWInner=function(f,t,B,u,C,F,I,ja,O){if("rounded"==I||"default"==I&&"rounded"==F)f.arcTo(ja-.5*O,ja-.5*O,0,0,0,O,.5*O+ja);else if("invRound"==I||"default"==I&&"invRound"==F)f.arcTo(ja+O,ja+O,0,0,1,O,O+ja);else if("snip"==I||"default"==I&&"snip"==F)f.lineTo(O,.5*O+ja);else if("fold"==I||"default"==I&&"fold"==F)f.lineTo(O+ja,O+ja),f.lineTo(O,O+ja)};ya.prototype.paintTopInner=function(f,t,B,u,C,
-F,I,ja,O,va,oa){va||oa?!va&&oa?f.lineTo(0,O):va&&!oa?f.lineTo(O,0):va?"square"==I||"default"==I&&"square"==F?f.lineTo(O,O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(ja+.5*O,O):f.lineTo(ja+O,O):f.lineTo(0,O):f.lineTo(0,0)};ya.prototype.paintNEInner=function(f,t,B,u,C,F,I,ja,O){if("rounded"==I||"default"==I&&"rounded"==F)f.arcTo(ja-.5*O,ja-.5*O,0,0,0,u-ja-.5*O,O);else if("invRound"==I||"default"==I&&"invRound"==F)f.arcTo(ja+O,ja+O,0,0,1,u-ja-O,O);else if("snip"==
-I||"default"==I&&"snip"==F)f.lineTo(u-ja-.5*O,O);else if("fold"==I||"default"==I&&"fold"==F)f.lineTo(u-ja-O,ja+O),f.lineTo(u-ja-O,O)};ya.prototype.paintRightInner=function(f,t,B,u,C,F,I,ja,O,va,oa){va||oa?!va&&oa?f.lineTo(u-O,0):va&&!oa?f.lineTo(u,O):va?"square"==I||"default"==I&&"square"==F?f.lineTo(u-O,O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(u-O,ja+.5*O):f.lineTo(u-O,ja+O):f.lineTo(u-O,0):f.lineTo(u,0)};ya.prototype.paintLeftInner=function(f,t,B,
-u,C,F,I,ja,O,va,oa){va||oa?!va&&oa?f.lineTo(O,C):va&&!oa?f.lineTo(0,C-O):va?"square"==I||"default"==I&&"square"==F?f.lineTo(O,C-O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(O,C-ja-.5*O):f.lineTo(O,C-ja-O):f.lineTo(O,C):f.lineTo(0,C)};ya.prototype.paintSEInner=function(f,t,B,u,C,F,I,ja,O){if("rounded"==I||"default"==I&&"rounded"==F)f.arcTo(ja-.5*O,ja-.5*O,0,0,0,u-O,C-ja-.5*O);else if("invRound"==I||"default"==I&&"invRound"==F)f.arcTo(ja+O,ja+O,0,0,1,u-O,
-C-ja-O);else if("snip"==I||"default"==I&&"snip"==F)f.lineTo(u-O,C-ja-.5*O);else if("fold"==I||"default"==I&&"fold"==F)f.lineTo(u-ja-O,C-ja-O),f.lineTo(u-O,C-ja-O)};ya.prototype.paintBottomInner=function(f,t,B,u,C,F,I,ja,O,va,oa){va||oa?!va&&oa?f.lineTo(u,C-O):va&&!oa?f.lineTo(u-O,C):"square"==I||"default"==I&&"square"==F||!va?f.lineTo(u-O,C-O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(u-ja-.5*O,C-O):f.lineTo(u-ja-O,C-O):f.lineTo(u,C)};ya.prototype.paintSWInner=
-function(f,t,B,u,C,F,I,ja,O,va){if(!va)f.lineTo(O,C);else if("square"==I||"default"==I&&"square"==F)f.lineTo(O,C-O);else if("rounded"==I||"default"==I&&"rounded"==F)f.arcTo(ja-.5*O,ja-.5*O,0,0,0,ja+.5*O,C-O);else if("invRound"==I||"default"==I&&"invRound"==F)f.arcTo(ja+O,ja+O,0,0,1,ja+O,C-O);else if("snip"==I||"default"==I&&"snip"==F)f.lineTo(ja+.5*O,C-O);else if("fold"==I||"default"==I&&"fold"==F)f.lineTo(O+ja,C-ja-O),f.lineTo(O+ja,C-O)};ya.prototype.moveSWInner=function(f,t,B,u,C,F,I,ja,O,va){va?
-"square"==I||"default"==I&&"square"==F?f.moveTo(O,C-O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.moveTo(O,C-ja-.5*O):("invRound"==I||"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.moveTo(O,C-ja-O):f.moveTo(0,C-O)};ya.prototype.lineSWInner=function(f,t,B,u,C,F,I,ja,O,va){va?"square"==I||"default"==I&&"square"==F?f.lineTo(O,C-O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(O,C-ja-.5*O):("invRound"==I||
-"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(O,C-ja-O):f.lineTo(0,C-O)};ya.prototype.moveSEInner=function(f,t,B,u,C,F,I,ja,O,va){va?"square"==I||"default"==I&&"square"==F?f.moveTo(u-O,C-O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.moveTo(u-O,C-ja-.5*O):("invRound"==I||"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.moveTo(u-O,C-ja-O):f.moveTo(u-O,C)};ya.prototype.lineSEInner=function(f,t,B,u,C,F,I,ja,O,va){va?"square"==
-I||"default"==I&&"square"==F?f.lineTo(u-O,C-O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(u-O,C-ja-.5*O):("invRound"==I||"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(u-O,C-ja-O):f.lineTo(u-O,C)};ya.prototype.moveNEInner=function(f,t,B,u,C,F,I,ja,O,va){va?"square"==I||"default"==I&&"square"==F||va?f.moveTo(u-O,O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.moveTo(u-O,ja+.5*O):("invRound"==I||
-"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.moveTo(u-O,ja+O):f.moveTo(u,O)};ya.prototype.lineNEInner=function(f,t,B,u,C,F,I,ja,O,va){va?"square"==I||"default"==I&&"square"==F||va?f.lineTo(u-O,O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(u-O,ja+.5*O):("invRound"==I||"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(u-O,ja+O):f.lineTo(u,O)};ya.prototype.moveNWInner=function(f,t,B,u,C,F,I,ja,O,va,oa){va||oa?
-!va&&oa?f.moveTo(O,0):va&&!oa?f.moveTo(0,O):"square"==I||"default"==I&&"square"==F?f.moveTo(O,O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.moveTo(O,ja+.5*O):("invRound"==I||"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.moveTo(O,ja+O):f.moveTo(0,0)};ya.prototype.lineNWInner=function(f,t,B,u,C,F,I,ja,O,va,oa){va||oa?!va&&oa?f.lineTo(O,0):va&&!oa?f.lineTo(0,O):"square"==I||"default"==I&&"square"==F?f.lineTo(O,O):"rounded"==I||"default"==I&&"rounded"==
-F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(O,ja+.5*O):("invRound"==I||"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(O,ja+O):f.lineTo(0,0)};ya.prototype.paintFolds=function(f,t,B,u,C,F,I,ja,O,va,oa,bb,mb,hb,Ga){if("fold"==F||"fold"==I||"fold"==ja||"fold"==O||"fold"==va)("fold"==I||"default"==I&&"fold"==F)&&bb&&Ga&&(f.moveTo(0,oa),f.lineTo(oa,oa),f.lineTo(oa,0)),("fold"==ja||"default"==ja&&"fold"==F)&&bb&&mb&&(f.moveTo(u-oa,0),f.lineTo(u-oa,oa),f.lineTo(u,oa)),("fold"==
-O||"default"==O&&"fold"==F)&&hb&&mb&&(f.moveTo(u-oa,C),f.lineTo(u-oa,C-oa),f.lineTo(u,C-oa)),("fold"==va||"default"==va&&"fold"==F)&&hb&&Ga&&(f.moveTo(0,C-oa),f.lineTo(oa,C-oa),f.lineTo(oa,C))};mxCellRenderer.registerShape(ya.prototype.cst.RECT2,ya);ya.prototype.constraints=null;mxUtils.extend(Va,mxConnector);Va.prototype.origPaintEdgeShape=Va.prototype.paintEdgeShape;Va.prototype.paintEdgeShape=function(f,t){for(var B=[],u=0;u<t.length;u++)B.push(mxUtils.clone(t[u]));u=f.state.dashed;var C=f.state.fixDash;
-Va.prototype.origPaintEdgeShape.apply(this,[f,B]);3<=f.state.strokeWidth&&(B=mxUtils.getValue(this.style,"fillColor",null),null!=B&&(f.setStrokeColor(B),f.setStrokeWidth(f.state.strokeWidth-2),f.setDashed(u,C),Va.prototype.origPaintEdgeShape.apply(this,[f,t])))};mxCellRenderer.registerShape("filledEdge",Va);mxUtils.extend(Wa,mxConnector);Wa.prototype.defaultWidth=4;Wa.prototype.getEdgeWidth=function(){return Math.max(0,mxUtils.getNumber(this.style,"width",this.defaultWidth))};Wa.prototype.getFlowAnimationPath=
-function(){return mxShape.prototype.getFlowAnimationPath.call(this,2)};Wa.prototype.origPaintEdgeShape=Wa.prototype.paintEdgeShape;Wa.prototype.paintEdgeShape=function(f,t){for(var B=[],u=0;u<t.length;u++)B.push(mxUtils.clone(t[u]));u=f.state.dashed;var C=f.state.fixDash,F=this.getEdgeWidth();f.setStrokeWidth(F+2*this.strokewidth);f.setDashed(!1);Wa.prototype.origPaintEdgeShape.apply(this,[f,B]);B=mxUtils.getValue(this.style,"fillColor",null);null!=B&&(f.setStrokeWidth(F),f.setStrokeColor(B),f.setDashed(u,
-C),Wa.prototype.origPaintEdgeShape.apply(this,[f,t]))};mxCellRenderer.registerShape("pipe",Wa);mxUtils.extend(Za,mxRectangleShape);Za.prototype.size=10;Za.prototype.isRoundable=function(){return!0};Za.prototype.paintVertexShape=function(f,t,B,u,C){f.translate(t,B);t=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,null);null!=t&&t!=mxConstants.NONE&&(f.setStrokeColor("none"),f.begin(),f.rect(0,0,u,C),f.fillAndStroke(),f.setStrokeColor(this.stroke));var F=Math.max(5,parseFloat(mxUtils.getValue(this.style,
-"size",this.size)));t=C/2;B=this.strokewidth;B=this.isRounded?B/2:B;C-=B;F=Math.max(1,Math.round(u/F)-1);var I=u/(F+1),ja=I/2;f.begin();f.moveTo(0,t);if(this.isRounded){f.curveTo(.4*ja,t-.4*(t-B),.6*ja,B,ja,B);for(var O=0;O<F;O++){var va=ja+O*I,oa=va+I,bb=0==O%2?C:B;f.curveTo(va+.4*I,0==O%2?B:C,oa-.4*I,bb,oa,bb)}C=0==F%2?B:C;f.curveTo(ja+F*I+.4*ja,C,u-.4*ja,t-(C==B?1:-1)*(t-B)*.4,u,t)}else{f.lineTo(ja,B);for(O=0;O<F;O++)oa=ja+(O+1)*I,bb=0==O%2?C:B,f.lineTo(oa,bb);f.lineTo(u,t)}f.stroke()};mxCellRenderer.registerShape("zigzag",
-Za);"undefined"!==typeof StyleFormatPanel&&function(){var f=StyleFormatPanel.prototype.getCustomColors;StyleFormatPanel.prototype.getCustomColors=function(){var t=this.editorUi.getSelectionState(),B=f.apply(this,arguments);"umlFrame"==t.style.shape&&B.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return B}}();mxMarker.addMarker("dash",function(f,t,B,u,C,F,I,ja,O,va){var oa=C*(I+O+1),bb=F*(I+O+1);return function(){f.begin();f.moveTo(u.x-oa/2-bb/2,u.y-bb/
-2+oa/2);f.lineTo(u.x+bb/2-3*oa/2,u.y-3*bb/2-oa/2);f.stroke()}});mxMarker.addMarker("box",function(f,t,B,u,C,F,I,ja,O,va){var oa=C*(I+O+1),bb=F*(I+O+1),mb=u.x+oa/2,hb=u.y+bb/2;u.x-=oa;u.y-=bb;return function(){f.begin();f.moveTo(mb-oa/2-bb/2,hb-bb/2+oa/2);f.lineTo(mb-oa/2+bb/2,hb-bb/2-oa/2);f.lineTo(mb+bb/2-3*oa/2,hb-3*bb/2-oa/2);f.lineTo(mb-bb/2-3*oa/2,hb-3*bb/2+oa/2);f.close();va?f.fillAndStroke():f.stroke()}});mxMarker.addMarker("cross",function(f,t,B,u,C,F,I,ja,O,va){var oa=C*(I+O+1),bb=F*(I+O+
-1);return function(){f.begin();f.moveTo(u.x-oa/2-bb/2,u.y-bb/2+oa/2);f.lineTo(u.x+bb/2-3*oa/2,u.y-3*bb/2-oa/2);f.moveTo(u.x-oa/2+bb/2,u.y-bb/2-oa/2);f.lineTo(u.x-bb/2-3*oa/2,u.y-3*bb/2+oa/2);f.stroke()}});mxMarker.addMarker("circle",gb);mxMarker.addMarker("circlePlus",function(f,t,B,u,C,F,I,ja,O,va){var oa=u.clone(),bb=gb.apply(this,arguments),mb=C*(I+2*O),hb=F*(I+2*O);return function(){bb.apply(this,arguments);f.begin();f.moveTo(oa.x-C*O,oa.y-F*O);f.lineTo(oa.x-2*mb+C*O,oa.y-2*hb+F*O);f.moveTo(oa.x-
-mb-hb+F*O,oa.y-hb+mb-C*O);f.lineTo(oa.x+hb-mb-F*O,oa.y-hb-mb+C*O);f.stroke()}});mxMarker.addMarker("halfCircle",function(f,t,B,u,C,F,I,ja,O,va){var oa=C*(I+O+1),bb=F*(I+O+1),mb=u.clone();u.x-=oa;u.y-=bb;return function(){f.begin();f.moveTo(mb.x-bb,mb.y+oa);f.quadTo(u.x-bb,u.y+oa,u.x,u.y);f.quadTo(u.x+bb,u.y-oa,mb.x+bb,mb.y-oa);f.stroke()}});mxMarker.addMarker("async",function(f,t,B,u,C,F,I,ja,O,va){t=C*O*1.118;B=F*O*1.118;C*=I+O;F*=I+O;var oa=u.clone();oa.x-=t;oa.y-=B;u.x+=-C-t;u.y+=-F-B;return function(){f.begin();
-f.moveTo(oa.x,oa.y);ja?f.lineTo(oa.x-C-F/2,oa.y-F+C/2):f.lineTo(oa.x+F/2-C,oa.y-F-C/2);f.lineTo(oa.x-C,oa.y-F);f.close();va?f.fillAndStroke():f.stroke()}});mxMarker.addMarker("openAsync",function(f){f=null!=f?f:2;return function(t,B,u,C,F,I,ja,O,va,oa){F*=ja+va;I*=ja+va;var bb=C.clone();return function(){t.begin();t.moveTo(bb.x,bb.y);O?t.lineTo(bb.x-F-I/f,bb.y-I+F/f):t.lineTo(bb.x+I/f-F,bb.y-I-F/f);t.stroke()}}}(2));if("undefined"!==typeof mxVertexHandler){var pb=function(f,t,B){return rb(f,["width"],
-t,function(u,C,F,I,ja){ja=f.shape.getEdgeWidth()*f.view.scale+B;return new mxPoint(I.x+C*u/4+F*ja/2,I.y+F*u/4-C*ja/2)},function(u,C,F,I,ja,O){u=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ja.x,ja.y,O.x,O.y));f.style.width=Math.round(2*u)/f.view.scale-B})},rb=function(f,t,B,u,C){return nb(f,t,function(F){var I=f.absolutePoints;if(null!=I&&0<I.length){var ja=I.length-1;F=f.view.translate;var O=f.view.scale,va=B?I[0]:I[ja];I=B?I[1]:I[ja-1];ja=I.x-va.x;var oa=I.y-va.y,bb=Math.sqrt(ja*ja+oa*oa);va=u.call(this,
-bb,ja/bb,oa/bb,va,I);return new mxPoint(va.x/O-F.x,va.y/O-F.y)}return null},function(F,I,ja){var O=f.absolutePoints,va=O.length-1;F=f.view.translate;var oa=f.view.scale,bb=B?O[0]:O[va];O=B?O[1]:O[va-1];va=O.x-bb.x;var mb=O.y-bb.y,hb=Math.sqrt(va*va+mb*mb);I.x=(I.x+F.x)*oa;I.y=(I.y+F.y)*oa;C.call(this,hb,va/hb,mb/hb,bb,O,I,ja)})},ub=function(f,t){return function(B){return[rb(B,["startWidth"],!0,function(u,C,F,I,ja){ja=mxUtils.getNumber(B.style,"startWidth",f)*B.view.scale+t;return new mxPoint(I.x+
-C*u/4+F*ja/2,I.y+F*u/4-C*ja/2)},function(u,C,F,I,ja,O){u=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ja.x,ja.y,O.x,O.y));B.style.startWidth=Math.round(2*u)/B.view.scale-t})]}},sb=function(f){return function(t){return[nb(t,["arrowWidth","arrowSize"],function(B){var u=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"arrowWidth",Ma.prototype.arrowWidth))),C=Math.max(0,Math.min(f,mxUtils.getValue(this.state.style,"arrowSize",Ma.prototype.arrowSize)));return new mxPoint(B.x+(1-C)*B.width,B.y+(1-u)*B.height/
-2)},function(B,u){this.state.style.arrowWidth=Math.max(0,Math.min(1,Math.abs(B.y+B.height/2-u.y)/B.height*2));this.state.style.arrowSize=Math.max(0,Math.min(f,(B.x+B.width-u.x)/B.width))})]}},tb=function(f){return function(t){return[nb(t,["size"],function(B){var u=Math.max(0,Math.min(.5*B.height,parseFloat(mxUtils.getValue(this.state.style,"size",f))));return new mxPoint(B.x,B.y+u)},function(B,u){this.state.style.size=Math.max(0,u.y-B.y)},!0)]}},vb=function(f,t,B){return function(u){var C=[nb(u,["size"],
-function(F){var I=Math.max(0,Math.min(F.width,Math.min(F.height,parseFloat(mxUtils.getValue(this.state.style,"size",t)))))*f;return new mxPoint(F.x+I,F.y+I)},function(F,I){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(F.width,I.x-F.x),Math.min(F.height,I.y-F.y)))/f)},!1)];B&&mxUtils.getValue(u.style,mxConstants.STYLE_ROUNDED,!1)&&C.push(xb(u));return C}},Ab=function(f,t,B,u,C){B=null!=B?B:.5;return function(F){var I=[nb(F,["size"],function(ja){var O=null!=C?"0"!=mxUtils.getValue(this.state.style,
-"fixedSize","0"):null,va=parseFloat(mxUtils.getValue(this.state.style,"size",O?C:f));return new mxPoint(ja.x+Math.max(0,Math.min(.5*ja.width,va*(O?1:ja.width))),ja.getCenterY())},function(ja,O,va){ja=null!=C&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?O.x-ja.x:Math.max(0,Math.min(B,(O.x-ja.x)/ja.width));this.state.style.size=ja},!1,u)];t&&mxUtils.getValue(F.style,mxConstants.STYLE_ROUNDED,!1)&&I.push(xb(F));return I}},wb=function(f,t,B){f=null!=f?f:.5;return function(u){var C=[nb(u,["size"],
-function(F){var I=null!=B?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,ja=Math.max(0,parseFloat(mxUtils.getValue(this.state.style,"size",I?B:t)));return new mxPoint(F.x+Math.min(.75*F.width*f,ja*(I?.75:.75*F.width)),F.y+F.height/4)},function(F,I){F=null!=B&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?I.x-F.x:Math.max(0,Math.min(f,(I.x-F.x)/F.width*.75));this.state.style.size=F},!1,!0)];mxUtils.getValue(u.style,mxConstants.STYLE_ROUNDED,!1)&&C.push(xb(u));return C}},zb=
-function(){return function(f){var t=[];mxUtils.getValue(f.style,mxConstants.STYLE_ROUNDED,!1)&&t.push(xb(f));return t}},xb=function(f,t){return nb(f,[mxConstants.STYLE_ARCSIZE],function(B){var u=null!=t?t:B.height/8;if("1"==mxUtils.getValue(f.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)){var C=mxUtils.getValue(f.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;return new mxPoint(B.x+B.width-Math.min(B.width/2,C),B.y+u)}C=Math.max(0,parseFloat(mxUtils.getValue(f.style,mxConstants.STYLE_ARCSIZE,
-100*mxConstants.RECTANGLE_ROUNDING_FACTOR)))/100;return new mxPoint(B.x+B.width-Math.min(Math.max(B.width/2,B.height/2),Math.min(B.width,B.height)*C),B.y+u)},function(B,u,C){"1"==mxUtils.getValue(f.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.max(0,Math.min(B.width,2*(B.x+B.width-u.x)))):this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.min(50,Math.max(0,100*(B.width-u.x+B.x)/Math.min(B.width,B.height))))})},nb=function(f,t,B,u,
-C,F,I){var ja=new mxHandle(f,null,mxVertexHandler.prototype.secondaryHandleImage);ja.execute=function(va){for(var oa=0;oa<t.length;oa++)this.copyStyle(t[oa]);I&&I(va)};ja.getPosition=B;ja.setPosition=u;ja.ignoreGrid=null!=C?C:!0;if(F){var O=ja.positionChanged;ja.positionChanged=function(){O.apply(this,arguments);f.view.invalidate(this.state.cell);f.view.validate()}}return ja},Cb={link:function(f){return[pb(f,!0,10),pb(f,!1,10)]},pipe:function(f){return[pb(f,!0,10),pb(f,!1,10)]},flexArrow:function(f){var t=
-f.view.graph.gridSize/f.view.scale,B=[];mxUtils.getValue(f.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE&&(B.push(rb(f,["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!0,function(u,C,F,I,ja){u=(f.shape.getEdgeWidth()-f.shape.strokewidth)*f.view.scale;ja=3*mxUtils.getNumber(f.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*f.view.scale;return new mxPoint(I.x+C*(ja+f.shape.strokewidth*f.view.scale)+F*u/2,I.y+F*(ja+f.shape.strokewidth*f.view.scale)-
-C*u/2)},function(u,C,F,I,ja,O,va){u=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ja.x,ja.y,O.x,O.y));C=mxUtils.ptLineDist(I.x,I.y,I.x+F,I.y-C,O.x,O.y);f.style[mxConstants.STYLE_STARTSIZE]=Math.round(100*(C-f.shape.strokewidth)/3)/100/f.view.scale;f.style.width=Math.round(2*u)/f.view.scale;if(mxEvent.isShiftDown(va.getEvent())||mxEvent.isControlDown(va.getEvent()))f.style[mxConstants.STYLE_ENDSIZE]=f.style[mxConstants.STYLE_STARTSIZE];mxEvent.isAltDown(va.getEvent())||Math.abs(parseFloat(f.style[mxConstants.STYLE_STARTSIZE])-
-parseFloat(f.style[mxConstants.STYLE_ENDSIZE]))<t/6&&(f.style[mxConstants.STYLE_STARTSIZE]=f.style[mxConstants.STYLE_ENDSIZE])})),B.push(rb(f,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!0,function(u,C,F,I,ja){u=(f.shape.getStartArrowWidth()-f.shape.strokewidth)*f.view.scale;ja=3*mxUtils.getNumber(f.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*f.view.scale;return new mxPoint(I.x+C*(ja+f.shape.strokewidth*f.view.scale)+F*u/2,I.y+F*(ja+f.shape.strokewidth*
-f.view.scale)-C*u/2)},function(u,C,F,I,ja,O,va){u=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ja.x,ja.y,O.x,O.y));C=mxUtils.ptLineDist(I.x,I.y,I.x+F,I.y-C,O.x,O.y);f.style[mxConstants.STYLE_STARTSIZE]=Math.round(100*(C-f.shape.strokewidth)/3)/100/f.view.scale;f.style.startWidth=Math.max(0,Math.round(2*u)-f.shape.getEdgeWidth())/f.view.scale;if(mxEvent.isShiftDown(va.getEvent())||mxEvent.isControlDown(va.getEvent()))f.style[mxConstants.STYLE_ENDSIZE]=f.style[mxConstants.STYLE_STARTSIZE],f.style.endWidth=
+F.gradientColor2:mxUtils.getValue(this.style,"gradientColor2","none"),Kb=F&&F.gradientDirection2?F.gradientDirection2:mxUtils.getValue(this.style,"gradientDirection2","south"),Lb=F&&F.opacity?F.opacity:mxUtils.getValue(this.style,"opacity","100"),Mb=Math.max(0,Math.min(50,O));F=ya.prototype;f.setDashed(bb);mb&&""!=mb&&f.setDashPattern(mb);f.setStrokeWidth(Jb);O=Math.min(.5*C,.5*v,O);ja||(O=Mb*Math.min(v,C)/100);O=Math.min(O,.5*Math.min(v,C));ja||(oa=Math.min(hb*Math.min(v,C)/100));oa=Math.min(oa,
+.5*Math.min(v,C)-O);(Ga||La||Ja||Ia)&&"frame"!=va&&(f.begin(),Ga?F.moveNW(f,t,B,v,C,I,Xa,O,Ia):f.moveTo(0,0),Ga&&F.paintNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),La&&F.paintNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),Ja&&F.paintSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,v,C,I,eb,O,Ia),Ia&&F.paintSW(f,t,B,v,C,I,eb,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),f.close(),f.fill(),f.setShadow(!1),f.setFillColor(Gb),bb=ja=Lb,"none"==Gb&&(ja=0),"none"==Hb&&(bb=0),f.setGradient(Gb,
+Hb,0,0,v,C,Kb,ja,bb),f.begin(),Ga?F.moveNWInner(f,t,B,v,C,I,Xa,O,oa,Ga,Ia):f.moveTo(oa,0),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia),Ia&&Ja&&F.paintSWInner(f,t,B,v,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja),Ja&&La&&F.paintSEInner(f,t,B,v,C,I,db,O,oa),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La),La&&Ga&&F.paintNEInner(f,t,B,v,C,I,cb,O,oa),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga),Ga&&Ia&&F.paintNWInner(f,t,B,v,C,I,Xa,O,oa),f.fill(),"none"==Ib&&(f.begin(),F.paintFolds(f,t,B,v,C,
+I,Xa,cb,db,eb,O,Ga,La,Ja,Ia),f.stroke()));Ga||La||Ja||!Ia?Ga||La||!Ja||Ia?!Ga&&!La&&Ja&&Ia?"frame"!=va?(f.begin(),F.moveSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,v,C,I,eb,O,Ia),F.paintSW(f,t,B,v,C,I,eb,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),"double"==va&&(F.moveNWInner(f,t,B,v,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia),F.paintSWInner(f,t,B,v,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja)),f.stroke()):(f.begin(),F.moveSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,
+v,C,I,eb,O,Ia),F.paintSW(f,t,B,v,C,I,eb,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),F.lineNWInner(f,t,B,v,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia),F.paintSWInner(f,t,B,v,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja),f.close(),f.fillAndStroke()):Ga||!La||Ja||Ia?!Ga&&La&&!Ja&&Ia?"frame"!=va?(f.begin(),F.moveSW(f,t,B,v,C,I,Xa,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),"double"==va&&(F.moveNWInner(f,t,B,v,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia)),f.stroke(),
+f.begin(),F.moveNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),"double"==va&&(F.moveSEInner(f,t,B,v,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La)),f.stroke()):(f.begin(),F.moveSW(f,t,B,v,C,I,Xa,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),F.lineNWInner(f,t,B,v,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia),f.close(),f.fillAndStroke(),f.begin(),F.moveNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),F.lineSEInner(f,t,B,v,C,I,db,O,oa,Ja),F.paintRightInner(f,
+t,B,v,C,I,cb,O,oa,Ga,La),f.close(),f.fillAndStroke()):!Ga&&La&&Ja&&!Ia?"frame"!=va?(f.begin(),F.moveNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),F.paintSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,v,C,I,eb,O,Ia),"double"==va&&(F.moveSWInner(f,t,B,v,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,v,C,I,db,O,oa),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La)),f.stroke()):(f.begin(),F.moveNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),F.paintSE(f,
+t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,v,C,I,eb,O,Ia),F.lineSWInner(f,t,B,v,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,v,C,I,db,O,oa),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La),f.close(),f.fillAndStroke()):!Ga&&La&&Ja&&Ia?"frame"!=va?(f.begin(),F.moveNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),F.paintSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,v,C,I,eb,O,Ia),F.paintSW(f,t,B,v,C,I,eb,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),"double"==va&&(F.moveNWInner(f,
+t,B,v,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia),F.paintSWInner(f,t,B,v,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,v,C,I,db,O,oa),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La)),f.stroke()):(f.begin(),F.moveNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),F.paintSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,v,C,I,eb,O,Ia),F.paintSW(f,t,B,v,C,I,eb,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),F.lineNWInner(f,t,B,v,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,
+t,B,v,C,I,eb,O,oa,Ja,Ia),F.paintSWInner(f,t,B,v,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,v,C,I,db,O,oa),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La),f.close(),f.fillAndStroke()):!Ga||La||Ja||Ia?Ga&&!La&&!Ja&&Ia?"frame"!=va?(f.begin(),F.moveSW(f,t,B,v,C,I,eb,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),F.paintNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),"double"==va&&(F.moveNEInner(f,t,B,v,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,
+t,B,v,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia)),f.stroke()):(f.begin(),F.moveSW(f,t,B,v,C,I,eb,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),F.paintNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),F.lineNEInner(f,t,B,v,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,t,B,v,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia),f.close(),f.fillAndStroke()):Ga&&!La&&Ja&&!Ia?"frame"!=va?(f.begin(),F.moveNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,
+La),"double"==va&&(F.moveNEInner(f,t,B,v,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga)),f.stroke(),f.begin(),F.moveSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,v,C,I,eb,O,Ia),"double"==va&&(F.moveSWInner(f,t,B,v,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja)),f.stroke()):(f.begin(),F.moveNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),F.lineNEInner(f,t,B,v,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga),f.close(),f.fillAndStroke(),f.begin(),F.moveSE(f,
+t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,v,C,I,eb,O,Ia),F.lineSWInner(f,t,B,v,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja),f.close(),f.fillAndStroke()):Ga&&!La&&Ja&&Ia?"frame"!=va?(f.begin(),F.moveSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,v,C,I,eb,O,Ia),F.paintSW(f,t,B,v,C,I,eb,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),F.paintNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),"double"==va&&(F.moveNEInner(f,t,B,v,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,
+t,B,v,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia),F.paintSWInner(f,t,B,v,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja)),f.stroke()):(f.begin(),F.moveSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,v,C,I,eb,O,Ia),F.paintSW(f,t,B,v,C,I,eb,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),F.paintNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),F.lineNEInner(f,t,B,v,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,t,B,v,C,I,Xa,O,oa),F.paintLeftInner(f,t,
+B,v,C,I,eb,O,oa,Ja,Ia),F.paintSWInner(f,t,B,v,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja),f.close(),f.fillAndStroke()):Ga&&La&&!Ja&&!Ia?"frame"!=va?(f.begin(),F.moveNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),F.paintNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),"double"==va&&(F.moveSEInner(f,t,B,v,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,v,C,I,cb,O,oa),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga)),f.stroke()):(f.begin(),
+F.moveNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),F.paintNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),F.lineSEInner(f,t,B,v,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,v,C,I,cb,O,oa),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga),f.close(),f.fillAndStroke()):Ga&&La&&!Ja&&Ia?"frame"!=va?(f.begin(),F.moveSW(f,t,B,v,C,I,eb,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),F.paintNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),F.paintNE(f,t,B,v,
+C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),"double"==va&&(F.moveSEInner(f,t,B,v,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,v,C,I,cb,O,oa),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,t,B,v,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia)),f.stroke()):(f.begin(),F.moveSW(f,t,B,v,C,I,eb,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),F.paintNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),F.paintNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,
+B,v,C,I,db,O,Ja),F.lineSEInner(f,t,B,v,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,v,C,I,cb,O,oa),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,t,B,v,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia),f.close(),f.fillAndStroke()):Ga&&La&&Ja&&!Ia?"frame"!=va?(f.begin(),F.moveNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),F.paintNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),F.paintSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,
+t,B,v,C,I,eb,O,Ia),"double"==va&&(F.moveSWInner(f,t,B,v,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,v,C,I,db,O,oa),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,v,C,I,cb,O,oa),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga)),f.stroke()):(f.begin(),F.moveNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),F.paintNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),F.paintSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,v,C,I,eb,O,Ia),F.lineSWInner(f,
+t,B,v,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,v,C,I,db,O,oa),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,v,C,I,cb,O,oa),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga),f.close(),f.fillAndStroke()):Ga&&La&&Ja&&Ia&&("frame"!=va?(f.begin(),F.moveNW(f,t,B,v,C,I,Xa,O,Ia),F.paintNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),F.paintNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),F.paintSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,
+t,B,v,C,I,eb,O,Ia),F.paintSW(f,t,B,v,C,I,eb,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),f.close(),"double"==va&&(F.moveSWInner(f,t,B,v,C,I,eb,O,oa,Ia),F.paintSWInner(f,t,B,v,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,v,C,I,db,O,oa),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La),F.paintNEInner(f,t,B,v,C,I,cb,O,oa),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,t,B,v,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia),f.close()),f.stroke()):(f.begin(),
+F.moveNW(f,t,B,v,C,I,Xa,O,Ia),F.paintNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),F.paintNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),F.paintSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,v,C,I,eb,O,Ia),F.paintSW(f,t,B,v,C,I,eb,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),f.close(),F.moveSWInner(f,t,B,v,C,I,eb,O,oa,Ia),F.paintSWInner(f,t,B,v,C,I,eb,O,oa,Ja),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja),F.paintSEInner(f,t,B,v,C,I,db,O,oa),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La),
+F.paintNEInner(f,t,B,v,C,I,cb,O,oa),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga),F.paintNWInner(f,t,B,v,C,I,Xa,O,oa),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia),f.close(),f.fillAndStroke())):"frame"!=va?(f.begin(),F.moveNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),"double"==va&&(F.moveNEInner(f,t,B,v,C,I,cb,O,oa,La),F.paintTopInner(f,t,B,v,C,I,Xa,O,oa,Ia,Ga)),f.stroke()):(f.begin(),F.moveNW(f,t,B,v,C,I,Xa,O,Ia),F.paintTop(f,t,B,v,C,I,cb,O,La),F.lineNEInner(f,t,B,v,C,I,cb,O,oa,La),F.paintTopInner(f,
+t,B,v,C,I,Xa,O,oa,Ia,Ga),f.close(),f.fillAndStroke()):"frame"!=va?(f.begin(),F.moveNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),"double"==va&&(F.moveSEInner(f,t,B,v,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La)),f.stroke()):(f.begin(),F.moveNE(f,t,B,v,C,I,cb,O,Ga),F.paintRight(f,t,B,v,C,I,db,O,Ja),F.lineSEInner(f,t,B,v,C,I,db,O,oa,Ja),F.paintRightInner(f,t,B,v,C,I,cb,O,oa,Ga,La),f.close(),f.fillAndStroke()):"frame"!=va?(f.begin(),F.moveSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,
+t,B,v,C,I,eb,O,Ia),"double"==va&&(F.moveSWInner(f,t,B,v,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja)),f.stroke()):(f.begin(),F.moveSE(f,t,B,v,C,I,db,O,La),F.paintBottom(f,t,B,v,C,I,eb,O,Ia),F.lineSWInner(f,t,B,v,C,I,eb,O,oa,Ia),F.paintBottomInner(f,t,B,v,C,I,db,O,oa,La,Ja),f.close(),f.fillAndStroke()):"frame"!=va?(f.begin(),F.moveSW(f,t,B,v,C,I,Xa,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),"double"==va&&(F.moveNWInner(f,t,B,v,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,
+Ia)),f.stroke()):(f.begin(),F.moveSW(f,t,B,v,C,I,Xa,O,Ja),F.paintLeft(f,t,B,v,C,I,Xa,O,Ga),F.lineNWInner(f,t,B,v,C,I,Xa,O,oa,Ga,Ia),F.paintLeftInner(f,t,B,v,C,I,eb,O,oa,Ja,Ia),f.close(),f.fillAndStroke());f.begin();F.paintFolds(f,t,B,v,C,I,Xa,cb,db,eb,O,Ga,La,Ja,Ia);f.stroke()};ya.prototype.moveNW=function(f,t,B,v,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.moveTo(0,0):f.moveTo(0,ja)};ya.prototype.moveNE=function(f,t,B,v,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.moveTo(v,
+0):f.moveTo(v-ja,0)};ya.prototype.moveSE=function(f,t,B,v,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.moveTo(v,C):f.moveTo(v,C-ja)};ya.prototype.moveSW=function(f,t,B,v,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.moveTo(0,C):f.moveTo(ja,C)};ya.prototype.paintNW=function(f,t,B,v,C,F,I,ja,O){if(O)if("rounded"==I||"default"==I&&"rounded"==F||"invRound"==I||"default"==I&&"invRound"==F){t=0;if("rounded"==I||"default"==I&&"rounded"==F)t=1;f.arcTo(ja,ja,0,0,t,ja,0)}else("snip"==
+I||"default"==I&&"snip"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(ja,0);else f.lineTo(0,0)};ya.prototype.paintTop=function(f,t,B,v,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.lineTo(v,0):f.lineTo(v-ja,0)};ya.prototype.paintNE=function(f,t,B,v,C,F,I,ja,O){if(O)if("rounded"==I||"default"==I&&"rounded"==F||"invRound"==I||"default"==I&&"invRound"==F){t=0;if("rounded"==I||"default"==I&&"rounded"==F)t=1;f.arcTo(ja,ja,0,0,t,v,ja)}else("snip"==I||"default"==I&&"snip"==F||"fold"==I||"default"==
+I&&"fold"==F)&&f.lineTo(v,ja);else f.lineTo(v,0)};ya.prototype.paintRight=function(f,t,B,v,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.lineTo(v,C):f.lineTo(v,C-ja)};ya.prototype.paintLeft=function(f,t,B,v,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.lineTo(0,0):f.lineTo(0,ja)};ya.prototype.paintSE=function(f,t,B,v,C,F,I,ja,O){if(O)if("rounded"==I||"default"==I&&"rounded"==F||"invRound"==I||"default"==I&&"invRound"==F){t=0;if("rounded"==I||"default"==I&&"rounded"==F)t=1;f.arcTo(ja,
+ja,0,0,t,v-ja,C)}else("snip"==I||"default"==I&&"snip"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(v-ja,C);else f.lineTo(v,C)};ya.prototype.paintBottom=function(f,t,B,v,C,F,I,ja,O){"square"==I||"default"==I&&"square"==F||!O?f.lineTo(0,C):f.lineTo(ja,C)};ya.prototype.paintSW=function(f,t,B,v,C,F,I,ja,O){if(O)if("rounded"==I||"default"==I&&"rounded"==F||"invRound"==I||"default"==I&&"invRound"==F){t=0;if("rounded"==I||"default"==I&&"rounded"==F)t=1;f.arcTo(ja,ja,0,0,t,0,C-ja)}else("snip"==I||"default"==
+I&&"snip"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(0,C-ja);else f.lineTo(0,C)};ya.prototype.paintNWInner=function(f,t,B,v,C,F,I,ja,O){if("rounded"==I||"default"==I&&"rounded"==F)f.arcTo(ja-.5*O,ja-.5*O,0,0,0,O,.5*O+ja);else if("invRound"==I||"default"==I&&"invRound"==F)f.arcTo(ja+O,ja+O,0,0,1,O,O+ja);else if("snip"==I||"default"==I&&"snip"==F)f.lineTo(O,.5*O+ja);else if("fold"==I||"default"==I&&"fold"==F)f.lineTo(O+ja,O+ja),f.lineTo(O,O+ja)};ya.prototype.paintTopInner=function(f,t,B,v,C,
+F,I,ja,O,va,oa){va||oa?!va&&oa?f.lineTo(0,O):va&&!oa?f.lineTo(O,0):va?"square"==I||"default"==I&&"square"==F?f.lineTo(O,O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(ja+.5*O,O):f.lineTo(ja+O,O):f.lineTo(0,O):f.lineTo(0,0)};ya.prototype.paintNEInner=function(f,t,B,v,C,F,I,ja,O){if("rounded"==I||"default"==I&&"rounded"==F)f.arcTo(ja-.5*O,ja-.5*O,0,0,0,v-ja-.5*O,O);else if("invRound"==I||"default"==I&&"invRound"==F)f.arcTo(ja+O,ja+O,0,0,1,v-ja-O,O);else if("snip"==
+I||"default"==I&&"snip"==F)f.lineTo(v-ja-.5*O,O);else if("fold"==I||"default"==I&&"fold"==F)f.lineTo(v-ja-O,ja+O),f.lineTo(v-ja-O,O)};ya.prototype.paintRightInner=function(f,t,B,v,C,F,I,ja,O,va,oa){va||oa?!va&&oa?f.lineTo(v-O,0):va&&!oa?f.lineTo(v,O):va?"square"==I||"default"==I&&"square"==F?f.lineTo(v-O,O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(v-O,ja+.5*O):f.lineTo(v-O,ja+O):f.lineTo(v-O,0):f.lineTo(v,0)};ya.prototype.paintLeftInner=function(f,t,B,
+v,C,F,I,ja,O,va,oa){va||oa?!va&&oa?f.lineTo(O,C):va&&!oa?f.lineTo(0,C-O):va?"square"==I||"default"==I&&"square"==F?f.lineTo(O,C-O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(O,C-ja-.5*O):f.lineTo(O,C-ja-O):f.lineTo(O,C):f.lineTo(0,C)};ya.prototype.paintSEInner=function(f,t,B,v,C,F,I,ja,O){if("rounded"==I||"default"==I&&"rounded"==F)f.arcTo(ja-.5*O,ja-.5*O,0,0,0,v-O,C-ja-.5*O);else if("invRound"==I||"default"==I&&"invRound"==F)f.arcTo(ja+O,ja+O,0,0,1,v-O,
+C-ja-O);else if("snip"==I||"default"==I&&"snip"==F)f.lineTo(v-O,C-ja-.5*O);else if("fold"==I||"default"==I&&"fold"==F)f.lineTo(v-ja-O,C-ja-O),f.lineTo(v-O,C-ja-O)};ya.prototype.paintBottomInner=function(f,t,B,v,C,F,I,ja,O,va,oa){va||oa?!va&&oa?f.lineTo(v,C-O):va&&!oa?f.lineTo(v-O,C):"square"==I||"default"==I&&"square"==F||!va?f.lineTo(v-O,C-O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(v-ja-.5*O,C-O):f.lineTo(v-ja-O,C-O):f.lineTo(v,C)};ya.prototype.paintSWInner=
+function(f,t,B,v,C,F,I,ja,O,va){if(!va)f.lineTo(O,C);else if("square"==I||"default"==I&&"square"==F)f.lineTo(O,C-O);else if("rounded"==I||"default"==I&&"rounded"==F)f.arcTo(ja-.5*O,ja-.5*O,0,0,0,ja+.5*O,C-O);else if("invRound"==I||"default"==I&&"invRound"==F)f.arcTo(ja+O,ja+O,0,0,1,ja+O,C-O);else if("snip"==I||"default"==I&&"snip"==F)f.lineTo(ja+.5*O,C-O);else if("fold"==I||"default"==I&&"fold"==F)f.lineTo(O+ja,C-ja-O),f.lineTo(O+ja,C-O)};ya.prototype.moveSWInner=function(f,t,B,v,C,F,I,ja,O,va){va?
+"square"==I||"default"==I&&"square"==F?f.moveTo(O,C-O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.moveTo(O,C-ja-.5*O):("invRound"==I||"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.moveTo(O,C-ja-O):f.moveTo(0,C-O)};ya.prototype.lineSWInner=function(f,t,B,v,C,F,I,ja,O,va){va?"square"==I||"default"==I&&"square"==F?f.lineTo(O,C-O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(O,C-ja-.5*O):("invRound"==I||
+"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(O,C-ja-O):f.lineTo(0,C-O)};ya.prototype.moveSEInner=function(f,t,B,v,C,F,I,ja,O,va){va?"square"==I||"default"==I&&"square"==F?f.moveTo(v-O,C-O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.moveTo(v-O,C-ja-.5*O):("invRound"==I||"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.moveTo(v-O,C-ja-O):f.moveTo(v-O,C)};ya.prototype.lineSEInner=function(f,t,B,v,C,F,I,ja,O,va){va?"square"==
+I||"default"==I&&"square"==F?f.lineTo(v-O,C-O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(v-O,C-ja-.5*O):("invRound"==I||"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(v-O,C-ja-O):f.lineTo(v-O,C)};ya.prototype.moveNEInner=function(f,t,B,v,C,F,I,ja,O,va){va?"square"==I||"default"==I&&"square"==F||va?f.moveTo(v-O,O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.moveTo(v-O,ja+.5*O):("invRound"==I||
+"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.moveTo(v-O,ja+O):f.moveTo(v,O)};ya.prototype.lineNEInner=function(f,t,B,v,C,F,I,ja,O,va){va?"square"==I||"default"==I&&"square"==F||va?f.lineTo(v-O,O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(v-O,ja+.5*O):("invRound"==I||"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(v-O,ja+O):f.lineTo(v,O)};ya.prototype.moveNWInner=function(f,t,B,v,C,F,I,ja,O,va,oa){va||oa?
+!va&&oa?f.moveTo(O,0):va&&!oa?f.moveTo(0,O):"square"==I||"default"==I&&"square"==F?f.moveTo(O,O):"rounded"==I||"default"==I&&"rounded"==F||"snip"==I||"default"==I&&"snip"==F?f.moveTo(O,ja+.5*O):("invRound"==I||"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.moveTo(O,ja+O):f.moveTo(0,0)};ya.prototype.lineNWInner=function(f,t,B,v,C,F,I,ja,O,va,oa){va||oa?!va&&oa?f.lineTo(O,0):va&&!oa?f.lineTo(0,O):"square"==I||"default"==I&&"square"==F?f.lineTo(O,O):"rounded"==I||"default"==I&&"rounded"==
+F||"snip"==I||"default"==I&&"snip"==F?f.lineTo(O,ja+.5*O):("invRound"==I||"default"==I&&"invRound"==F||"fold"==I||"default"==I&&"fold"==F)&&f.lineTo(O,ja+O):f.lineTo(0,0)};ya.prototype.paintFolds=function(f,t,B,v,C,F,I,ja,O,va,oa,bb,mb,hb,Ga){if("fold"==F||"fold"==I||"fold"==ja||"fold"==O||"fold"==va)("fold"==I||"default"==I&&"fold"==F)&&bb&&Ga&&(f.moveTo(0,oa),f.lineTo(oa,oa),f.lineTo(oa,0)),("fold"==ja||"default"==ja&&"fold"==F)&&bb&&mb&&(f.moveTo(v-oa,0),f.lineTo(v-oa,oa),f.lineTo(v,oa)),("fold"==
+O||"default"==O&&"fold"==F)&&hb&&mb&&(f.moveTo(v-oa,C),f.lineTo(v-oa,C-oa),f.lineTo(v,C-oa)),("fold"==va||"default"==va&&"fold"==F)&&hb&&Ga&&(f.moveTo(0,C-oa),f.lineTo(oa,C-oa),f.lineTo(oa,C))};mxCellRenderer.registerShape(ya.prototype.cst.RECT2,ya);ya.prototype.constraints=null;mxUtils.extend(Va,mxConnector);Va.prototype.origPaintEdgeShape=Va.prototype.paintEdgeShape;Va.prototype.paintEdgeShape=function(f,t){for(var B=[],v=0;v<t.length;v++)B.push(mxUtils.clone(t[v]));v=f.state.dashed;var C=f.state.fixDash;
+Va.prototype.origPaintEdgeShape.apply(this,[f,B]);3<=f.state.strokeWidth&&(B=mxUtils.getValue(this.style,"fillColor",null),null!=B&&(f.setStrokeColor(B),f.setStrokeWidth(f.state.strokeWidth-2),f.setDashed(v,C),Va.prototype.origPaintEdgeShape.apply(this,[f,t])))};mxCellRenderer.registerShape("filledEdge",Va);mxUtils.extend(Wa,mxConnector);Wa.prototype.defaultWidth=4;Wa.prototype.getEdgeWidth=function(){return Math.max(0,mxUtils.getNumber(this.style,"width",this.defaultWidth))};Wa.prototype.getFlowAnimationPath=
+function(){return mxShape.prototype.getFlowAnimationPath.call(this,2)};Wa.prototype.origPaintEdgeShape=Wa.prototype.paintEdgeShape;Wa.prototype.paintEdgeShape=function(f,t){for(var B=[],v=0;v<t.length;v++)B.push(mxUtils.clone(t[v]));v=f.state.dashed;var C=f.state.fixDash,F=this.getEdgeWidth();f.setStrokeWidth(F+2*this.strokewidth);f.setDashed(!1);Wa.prototype.origPaintEdgeShape.apply(this,[f,B]);B=mxUtils.getValue(this.style,"fillColor",null);null!=B&&(f.setStrokeWidth(F),f.setStrokeColor(B),f.setDashed(v,
+C),Wa.prototype.origPaintEdgeShape.apply(this,[f,t]))};mxCellRenderer.registerShape("pipe",Wa);mxUtils.extend(Za,mxRectangleShape);Za.prototype.size=10;Za.prototype.isRoundable=function(){return!0};Za.prototype.paintVertexShape=function(f,t,B,v,C){f.translate(t,B);t=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,null);null!=t&&t!=mxConstants.NONE&&(f.setStrokeColor("none"),f.begin(),f.rect(0,0,v,C),f.fillAndStroke(),f.setStrokeColor(this.stroke));var F=Math.max(5,parseFloat(mxUtils.getValue(this.style,
+"size",this.size)));t=C/2;B=this.strokewidth;B=this.isRounded?B/2:B;C-=B;F=Math.max(1,Math.round(v/F)-1);var I=v/(F+1),ja=I/2;f.begin();f.moveTo(0,t);if(this.isRounded){f.curveTo(.4*ja,t-.4*(t-B),.6*ja,B,ja,B);for(var O=0;O<F;O++){var va=ja+O*I,oa=va+I,bb=0==O%2?C:B;f.curveTo(va+.4*I,0==O%2?B:C,oa-.4*I,bb,oa,bb)}C=0==F%2?B:C;f.curveTo(ja+F*I+.4*ja,C,v-.4*ja,t-(C==B?1:-1)*(t-B)*.4,v,t)}else{f.lineTo(ja,B);for(O=0;O<F;O++)oa=ja+(O+1)*I,bb=0==O%2?C:B,f.lineTo(oa,bb);f.lineTo(v,t)}f.stroke()};mxCellRenderer.registerShape("zigzag",
+Za);"undefined"!==typeof StyleFormatPanel&&function(){var f=StyleFormatPanel.prototype.getCustomColors;StyleFormatPanel.prototype.getCustomColors=function(){var t=this.editorUi.getSelectionState(),B=f.apply(this,arguments);"umlFrame"==t.style.shape&&B.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return B}}();mxMarker.addMarker("dash",function(f,t,B,v,C,F,I,ja,O,va){var oa=C*(I+O+1),bb=F*(I+O+1);return function(){f.begin();f.moveTo(v.x-oa/2-bb/2,v.y-bb/
+2+oa/2);f.lineTo(v.x+bb/2-3*oa/2,v.y-3*bb/2-oa/2);f.stroke()}});mxMarker.addMarker("box",function(f,t,B,v,C,F,I,ja,O,va){var oa=C*(I+O+1),bb=F*(I+O+1),mb=v.x+oa/2,hb=v.y+bb/2;v.x-=oa;v.y-=bb;return function(){f.begin();f.moveTo(mb-oa/2-bb/2,hb-bb/2+oa/2);f.lineTo(mb-oa/2+bb/2,hb-bb/2-oa/2);f.lineTo(mb+bb/2-3*oa/2,hb-3*bb/2-oa/2);f.lineTo(mb-bb/2-3*oa/2,hb-3*bb/2+oa/2);f.close();va?f.fillAndStroke():f.stroke()}});mxMarker.addMarker("cross",function(f,t,B,v,C,F,I,ja,O,va){var oa=C*(I+O+1),bb=F*(I+O+
+1);return function(){f.begin();f.moveTo(v.x-oa/2-bb/2,v.y-bb/2+oa/2);f.lineTo(v.x+bb/2-3*oa/2,v.y-3*bb/2-oa/2);f.moveTo(v.x-oa/2+bb/2,v.y-bb/2-oa/2);f.lineTo(v.x-bb/2-3*oa/2,v.y-3*bb/2+oa/2);f.stroke()}});mxMarker.addMarker("circle",gb);mxMarker.addMarker("circlePlus",function(f,t,B,v,C,F,I,ja,O,va){var oa=v.clone(),bb=gb.apply(this,arguments),mb=C*(I+2*O),hb=F*(I+2*O);return function(){bb.apply(this,arguments);f.begin();f.moveTo(oa.x-C*O,oa.y-F*O);f.lineTo(oa.x-2*mb+C*O,oa.y-2*hb+F*O);f.moveTo(oa.x-
+mb-hb+F*O,oa.y-hb+mb-C*O);f.lineTo(oa.x+hb-mb-F*O,oa.y-hb-mb+C*O);f.stroke()}});mxMarker.addMarker("halfCircle",function(f,t,B,v,C,F,I,ja,O,va){var oa=C*(I+O+1),bb=F*(I+O+1),mb=v.clone();v.x-=oa;v.y-=bb;return function(){f.begin();f.moveTo(mb.x-bb,mb.y+oa);f.quadTo(v.x-bb,v.y+oa,v.x,v.y);f.quadTo(v.x+bb,v.y-oa,mb.x+bb,mb.y-oa);f.stroke()}});mxMarker.addMarker("async",function(f,t,B,v,C,F,I,ja,O,va){t=C*O*1.118;B=F*O*1.118;C*=I+O;F*=I+O;var oa=v.clone();oa.x-=t;oa.y-=B;v.x+=-C-t;v.y+=-F-B;return function(){f.begin();
+f.moveTo(oa.x,oa.y);ja?f.lineTo(oa.x-C-F/2,oa.y-F+C/2):f.lineTo(oa.x+F/2-C,oa.y-F-C/2);f.lineTo(oa.x-C,oa.y-F);f.close();va?f.fillAndStroke():f.stroke()}});mxMarker.addMarker("openAsync",function(f){f=null!=f?f:2;return function(t,B,v,C,F,I,ja,O,va,oa){F*=ja+va;I*=ja+va;var bb=C.clone();return function(){t.begin();t.moveTo(bb.x,bb.y);O?t.lineTo(bb.x-F-I/f,bb.y-I+F/f):t.lineTo(bb.x+I/f-F,bb.y-I-F/f);t.stroke()}}}(2));if("undefined"!==typeof mxVertexHandler){var pb=function(f,t,B){return rb(f,["width"],
+t,function(v,C,F,I,ja){ja=f.shape.getEdgeWidth()*f.view.scale+B;return new mxPoint(I.x+C*v/4+F*ja/2,I.y+F*v/4-C*ja/2)},function(v,C,F,I,ja,O){v=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ja.x,ja.y,O.x,O.y));f.style.width=Math.round(2*v)/f.view.scale-B})},rb=function(f,t,B,v,C){return nb(f,t,function(F){var I=f.absolutePoints;if(null!=I&&0<I.length){var ja=I.length-1;F=f.view.translate;var O=f.view.scale,va=B?I[0]:I[ja];I=B?I[1]:I[ja-1];ja=I.x-va.x;var oa=I.y-va.y,bb=Math.sqrt(ja*ja+oa*oa);va=v.call(this,
+bb,ja/bb,oa/bb,va,I);return new mxPoint(va.x/O-F.x,va.y/O-F.y)}return null},function(F,I,ja){var O=f.absolutePoints,va=O.length-1;F=f.view.translate;var oa=f.view.scale,bb=B?O[0]:O[va];O=B?O[1]:O[va-1];va=O.x-bb.x;var mb=O.y-bb.y,hb=Math.sqrt(va*va+mb*mb);I.x=(I.x+F.x)*oa;I.y=(I.y+F.y)*oa;C.call(this,hb,va/hb,mb/hb,bb,O,I,ja)})},ub=function(f,t){return function(B){return[rb(B,["startWidth"],!0,function(v,C,F,I,ja){ja=mxUtils.getNumber(B.style,"startWidth",f)*B.view.scale+t;return new mxPoint(I.x+
+C*v/4+F*ja/2,I.y+F*v/4-C*ja/2)},function(v,C,F,I,ja,O){v=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ja.x,ja.y,O.x,O.y));B.style.startWidth=Math.round(2*v)/B.view.scale-t})]}},sb=function(f){return function(t){return[nb(t,["arrowWidth","arrowSize"],function(B){var v=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"arrowWidth",Ma.prototype.arrowWidth))),C=Math.max(0,Math.min(f,mxUtils.getValue(this.state.style,"arrowSize",Ma.prototype.arrowSize)));return new mxPoint(B.x+(1-C)*B.width,B.y+(1-v)*B.height/
+2)},function(B,v){this.state.style.arrowWidth=Math.max(0,Math.min(1,Math.abs(B.y+B.height/2-v.y)/B.height*2));this.state.style.arrowSize=Math.max(0,Math.min(f,(B.x+B.width-v.x)/B.width))})]}},tb=function(f){return function(t){return[nb(t,["size"],function(B){var v=Math.max(0,Math.min(.5*B.height,parseFloat(mxUtils.getValue(this.state.style,"size",f))));return new mxPoint(B.x,B.y+v)},function(B,v){this.state.style.size=Math.max(0,v.y-B.y)},!0)]}},vb=function(f,t,B){return function(v){var C=[nb(v,["size"],
+function(F){var I=Math.max(0,Math.min(F.width,Math.min(F.height,parseFloat(mxUtils.getValue(this.state.style,"size",t)))))*f;return new mxPoint(F.x+I,F.y+I)},function(F,I){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(F.width,I.x-F.x),Math.min(F.height,I.y-F.y)))/f)},!1)];B&&mxUtils.getValue(v.style,mxConstants.STYLE_ROUNDED,!1)&&C.push(xb(v));return C}},Ab=function(f,t,B,v,C){B=null!=B?B:.5;return function(F){var I=[nb(F,["size"],function(ja){var O=null!=C?"0"!=mxUtils.getValue(this.state.style,
+"fixedSize","0"):null,va=parseFloat(mxUtils.getValue(this.state.style,"size",O?C:f));return new mxPoint(ja.x+Math.max(0,Math.min(.5*ja.width,va*(O?1:ja.width))),ja.getCenterY())},function(ja,O,va){ja=null!=C&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?O.x-ja.x:Math.max(0,Math.min(B,(O.x-ja.x)/ja.width));this.state.style.size=ja},!1,v)];t&&mxUtils.getValue(F.style,mxConstants.STYLE_ROUNDED,!1)&&I.push(xb(F));return I}},wb=function(f,t,B){f=null!=f?f:.5;return function(v){var C=[nb(v,["size"],
+function(F){var I=null!=B?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,ja=Math.max(0,parseFloat(mxUtils.getValue(this.state.style,"size",I?B:t)));return new mxPoint(F.x+Math.min(.75*F.width*f,ja*(I?.75:.75*F.width)),F.y+F.height/4)},function(F,I){F=null!=B&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?I.x-F.x:Math.max(0,Math.min(f,(I.x-F.x)/F.width*.75));this.state.style.size=F},!1,!0)];mxUtils.getValue(v.style,mxConstants.STYLE_ROUNDED,!1)&&C.push(xb(v));return C}},zb=
+function(){return function(f){var t=[];mxUtils.getValue(f.style,mxConstants.STYLE_ROUNDED,!1)&&t.push(xb(f));return t}},xb=function(f,t){return nb(f,[mxConstants.STYLE_ARCSIZE],function(B){var v=null!=t?t:B.height/8;if("1"==mxUtils.getValue(f.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)){var C=mxUtils.getValue(f.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;return new mxPoint(B.x+B.width-Math.min(B.width/2,C),B.y+v)}C=Math.max(0,parseFloat(mxUtils.getValue(f.style,mxConstants.STYLE_ARCSIZE,
+100*mxConstants.RECTANGLE_ROUNDING_FACTOR)))/100;return new mxPoint(B.x+B.width-Math.min(Math.max(B.width/2,B.height/2),Math.min(B.width,B.height)*C),B.y+v)},function(B,v,C){"1"==mxUtils.getValue(f.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.max(0,Math.min(B.width,2*(B.x+B.width-v.x)))):this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.min(50,Math.max(0,100*(B.width-v.x+B.x)/Math.min(B.width,B.height))))})},nb=function(f,t,B,v,
+C,F,I){var ja=new mxHandle(f,null,mxVertexHandler.prototype.secondaryHandleImage);ja.execute=function(va){for(var oa=0;oa<t.length;oa++)this.copyStyle(t[oa]);I&&I(va)};ja.getPosition=B;ja.setPosition=v;ja.ignoreGrid=null!=C?C:!0;if(F){var O=ja.positionChanged;ja.positionChanged=function(){O.apply(this,arguments);f.view.invalidate(this.state.cell);f.view.validate()}}return ja},Cb={link:function(f){return[pb(f,!0,10),pb(f,!1,10)]},pipe:function(f){return[pb(f,!0,10),pb(f,!1,10)]},flexArrow:function(f){var t=
+f.view.graph.gridSize/f.view.scale,B=[];mxUtils.getValue(f.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE&&(B.push(rb(f,["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!0,function(v,C,F,I,ja){v=(f.shape.getEdgeWidth()-f.shape.strokewidth)*f.view.scale;ja=3*mxUtils.getNumber(f.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*f.view.scale;return new mxPoint(I.x+C*(ja+f.shape.strokewidth*f.view.scale)+F*v/2,I.y+F*(ja+f.shape.strokewidth*f.view.scale)-
+C*v/2)},function(v,C,F,I,ja,O,va){v=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ja.x,ja.y,O.x,O.y));C=mxUtils.ptLineDist(I.x,I.y,I.x+F,I.y-C,O.x,O.y);f.style[mxConstants.STYLE_STARTSIZE]=Math.round(100*(C-f.shape.strokewidth)/3)/100/f.view.scale;f.style.width=Math.round(2*v)/f.view.scale;if(mxEvent.isShiftDown(va.getEvent())||mxEvent.isControlDown(va.getEvent()))f.style[mxConstants.STYLE_ENDSIZE]=f.style[mxConstants.STYLE_STARTSIZE];mxEvent.isAltDown(va.getEvent())||Math.abs(parseFloat(f.style[mxConstants.STYLE_STARTSIZE])-
+parseFloat(f.style[mxConstants.STYLE_ENDSIZE]))<t/6&&(f.style[mxConstants.STYLE_STARTSIZE]=f.style[mxConstants.STYLE_ENDSIZE])})),B.push(rb(f,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!0,function(v,C,F,I,ja){v=(f.shape.getStartArrowWidth()-f.shape.strokewidth)*f.view.scale;ja=3*mxUtils.getNumber(f.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*f.view.scale;return new mxPoint(I.x+C*(ja+f.shape.strokewidth*f.view.scale)+F*v/2,I.y+F*(ja+f.shape.strokewidth*
+f.view.scale)-C*v/2)},function(v,C,F,I,ja,O,va){v=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ja.x,ja.y,O.x,O.y));C=mxUtils.ptLineDist(I.x,I.y,I.x+F,I.y-C,O.x,O.y);f.style[mxConstants.STYLE_STARTSIZE]=Math.round(100*(C-f.shape.strokewidth)/3)/100/f.view.scale;f.style.startWidth=Math.max(0,Math.round(2*v)-f.shape.getEdgeWidth())/f.view.scale;if(mxEvent.isShiftDown(va.getEvent())||mxEvent.isControlDown(va.getEvent()))f.style[mxConstants.STYLE_ENDSIZE]=f.style[mxConstants.STYLE_STARTSIZE],f.style.endWidth=
f.style.startWidth;mxEvent.isAltDown(va.getEvent())||(Math.abs(parseFloat(f.style[mxConstants.STYLE_STARTSIZE])-parseFloat(f.style[mxConstants.STYLE_ENDSIZE]))<t/6&&(f.style[mxConstants.STYLE_STARTSIZE]=f.style[mxConstants.STYLE_ENDSIZE]),Math.abs(parseFloat(f.style.startWidth)-parseFloat(f.style.endWidth))<t&&(f.style.startWidth=f.style.endWidth))})));mxUtils.getValue(f.style,mxConstants.STYLE_ENDARROW,mxConstants.NONE)!=mxConstants.NONE&&(B.push(rb(f,["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],
-!1,function(u,C,F,I,ja){u=(f.shape.getEdgeWidth()-f.shape.strokewidth)*f.view.scale;ja=3*mxUtils.getNumber(f.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*f.view.scale;return new mxPoint(I.x+C*(ja+f.shape.strokewidth*f.view.scale)-F*u/2,I.y+F*(ja+f.shape.strokewidth*f.view.scale)+C*u/2)},function(u,C,F,I,ja,O,va){u=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ja.x,ja.y,O.x,O.y));C=mxUtils.ptLineDist(I.x,I.y,I.x+F,I.y-C,O.x,O.y);f.style[mxConstants.STYLE_ENDSIZE]=Math.round(100*(C-f.shape.strokewidth)/
-3)/100/f.view.scale;f.style.width=Math.round(2*u)/f.view.scale;if(mxEvent.isShiftDown(va.getEvent())||mxEvent.isControlDown(va.getEvent()))f.style[mxConstants.STYLE_STARTSIZE]=f.style[mxConstants.STYLE_ENDSIZE];mxEvent.isAltDown(va.getEvent())||Math.abs(parseFloat(f.style[mxConstants.STYLE_ENDSIZE])-parseFloat(f.style[mxConstants.STYLE_STARTSIZE]))<t/6&&(f.style[mxConstants.STYLE_ENDSIZE]=f.style[mxConstants.STYLE_STARTSIZE])})),B.push(rb(f,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],
-!1,function(u,C,F,I,ja){u=(f.shape.getEndArrowWidth()-f.shape.strokewidth)*f.view.scale;ja=3*mxUtils.getNumber(f.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*f.view.scale;return new mxPoint(I.x+C*(ja+f.shape.strokewidth*f.view.scale)-F*u/2,I.y+F*(ja+f.shape.strokewidth*f.view.scale)+C*u/2)},function(u,C,F,I,ja,O,va){u=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ja.x,ja.y,O.x,O.y));C=mxUtils.ptLineDist(I.x,I.y,I.x+F,I.y-C,O.x,O.y);f.style[mxConstants.STYLE_ENDSIZE]=Math.round(100*(C-f.shape.strokewidth)/
-3)/100/f.view.scale;f.style.endWidth=Math.max(0,Math.round(2*u)-f.shape.getEdgeWidth())/f.view.scale;if(mxEvent.isShiftDown(va.getEvent())||mxEvent.isControlDown(va.getEvent()))f.style[mxConstants.STYLE_STARTSIZE]=f.style[mxConstants.STYLE_ENDSIZE],f.style.startWidth=f.style.endWidth;mxEvent.isAltDown(va.getEvent())||(Math.abs(parseFloat(f.style[mxConstants.STYLE_ENDSIZE])-parseFloat(f.style[mxConstants.STYLE_STARTSIZE]))<t/6&&(f.style[mxConstants.STYLE_ENDSIZE]=f.style[mxConstants.STYLE_STARTSIZE]),
-Math.abs(parseFloat(f.style.endWidth)-parseFloat(f.style.startWidth))<t&&(f.style.endWidth=f.style.startWidth))})));return B},swimlane:function(f){var t=[];if(mxUtils.getValue(f.style,mxConstants.STYLE_ROUNDED)){var B=parseFloat(mxUtils.getValue(f.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));t.push(xb(f,B/2))}t.push(nb(f,[mxConstants.STYLE_STARTSIZE],function(u){var C=parseFloat(mxUtils.getValue(f.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));return 1==mxUtils.getValue(f.style,
-mxConstants.STYLE_HORIZONTAL,1)?new mxPoint(u.getCenterX(),u.y+Math.max(0,Math.min(u.height,C))):new mxPoint(u.x+Math.max(0,Math.min(u.width,C)),u.getCenterY())},function(u,C){f.style[mxConstants.STYLE_STARTSIZE]=1==mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,1)?Math.round(Math.max(0,Math.min(u.height,C.y-u.y))):Math.round(Math.max(0,Math.min(u.width,C.x-u.x)))},!1,null,function(u){var C=f.view.graph;if(!mxEvent.isShiftDown(u.getEvent())&&!mxEvent.isControlDown(u.getEvent())&&(C.isTableRow(f.cell)||
-C.isTableCell(f.cell))){u=C.getSwimlaneDirection(f.style);var F=C.model.getParent(f.cell);F=C.model.getChildCells(F,!0);for(var I=[],ja=0;ja<F.length;ja++)F[ja]!=f.cell&&C.isSwimlane(F[ja])&&C.getSwimlaneDirection(C.getCurrentCellStyle(F[ja]))==u&&I.push(F[ja]);C.setCellStyles(mxConstants.STYLE_STARTSIZE,f.style[mxConstants.STYLE_STARTSIZE],I)}}));return t},label:zb(),ext:zb(),rectangle:zb(),triangle:zb(),rhombus:zb(),umlLifeline:function(f){return[nb(f,["size"],function(t){var B=Math.max(0,Math.min(t.height,
-parseFloat(mxUtils.getValue(this.state.style,"size",Z.prototype.size))));return new mxPoint(t.getCenterX(),t.y+B)},function(t,B){this.state.style.size=Math.round(Math.max(0,Math.min(t.height,B.y-t.y)))},!1)]},umlFrame:function(f){return[nb(f,["width","height"],function(t){var B=Math.max(da.prototype.corner,Math.min(t.width,mxUtils.getValue(this.state.style,"width",da.prototype.width))),u=Math.max(1.5*da.prototype.corner,Math.min(t.height,mxUtils.getValue(this.state.style,"height",da.prototype.height)));
-return new mxPoint(t.x+B,t.y+u)},function(t,B){this.state.style.width=Math.round(Math.max(da.prototype.corner,Math.min(t.width,B.x-t.x)));this.state.style.height=Math.round(Math.max(1.5*da.prototype.corner,Math.min(t.height,B.y-t.y)))},!1)]},process:function(f){var t=[nb(f,["size"],function(B){var u="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),C=parseFloat(mxUtils.getValue(this.state.style,"size",ha.prototype.size));return u?new mxPoint(B.x+C,B.y+B.height/4):new mxPoint(B.x+B.width*C,B.y+
-B.height/4)},function(B,u){B="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(.5*B.width,u.x-B.x)):Math.max(0,Math.min(.5,(u.x-B.x)/B.width));this.state.style.size=B},!1)];mxUtils.getValue(f.style,mxConstants.STYLE_ROUNDED,!1)&&t.push(xb(f));return t},cross:function(f){return[nb(f,["size"],function(t){var B=Math.min(t.width,t.height);B=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"size",wa.prototype.size)))*B/2;return new mxPoint(t.getCenterX()-B,t.getCenterY()-
-B)},function(t,B){var u=Math.min(t.width,t.height);this.state.style.size=Math.max(0,Math.min(1,Math.min(Math.max(0,t.getCenterY()-B.y)/u*2,Math.max(0,t.getCenterX()-B.x)/u*2)))})]},note:function(f){return[nb(f,["size"],function(t){var B=Math.max(0,Math.min(t.width,Math.min(t.height,parseFloat(mxUtils.getValue(this.state.style,"size",E.prototype.size)))));return new mxPoint(t.x+t.width-B,t.y+B)},function(t,B){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(t.width,t.x+t.width-B.x),Math.min(t.height,
-B.y-t.y))))})]},note2:function(f){return[nb(f,["size"],function(t){var B=Math.max(0,Math.min(t.width,Math.min(t.height,parseFloat(mxUtils.getValue(this.state.style,"size",R.prototype.size)))));return new mxPoint(t.x+t.width-B,t.y+B)},function(t,B){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(t.width,t.x+t.width-B.x),Math.min(t.height,B.y-t.y))))})]},manualInput:function(f){var t=[nb(f,["size"],function(B){var u=Math.max(0,Math.min(B.height,mxUtils.getValue(this.state.style,"size",
-$a.prototype.size)));return new mxPoint(B.x+B.width/4,B.y+3*u/4)},function(B,u){this.state.style.size=Math.round(Math.max(0,Math.min(B.height,4*(u.y-B.y)/3)))},!1)];mxUtils.getValue(f.style,mxConstants.STYLE_ROUNDED,!1)&&t.push(xb(f));return t},dataStorage:function(f){return[nb(f,["size"],function(t){var B="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),u=parseFloat(mxUtils.getValue(this.state.style,"size",B?Ba.prototype.fixedSize:Ba.prototype.size));return new mxPoint(t.x+t.width-u*(B?1:
-t.width),t.getCenterY())},function(t,B){t="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(t.width,t.x+t.width-B.x)):Math.max(0,Math.min(1,(t.x+t.width-B.x)/t.width));this.state.style.size=t},!1)]},callout:function(f){var t=[nb(f,["size","position"],function(B){var u=Math.max(0,Math.min(B.height,mxUtils.getValue(this.state.style,"size",ka.prototype.size))),C=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",ka.prototype.position)));mxUtils.getValue(this.state.style,
-"base",ka.prototype.base);return new mxPoint(B.x+C*B.width,B.y+B.height-u)},function(B,u){mxUtils.getValue(this.state.style,"base",ka.prototype.base);this.state.style.size=Math.round(Math.max(0,Math.min(B.height,B.y+B.height-u.y)));this.state.style.position=Math.round(100*Math.max(0,Math.min(1,(u.x-B.x)/B.width)))/100},!1),nb(f,["position2"],function(B){var u=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position2",ka.prototype.position2)));return new mxPoint(B.x+u*B.width,B.y+B.height)},
-function(B,u){this.state.style.position2=Math.round(100*Math.max(0,Math.min(1,(u.x-B.x)/B.width)))/100},!1),nb(f,["base"],function(B){var u=Math.max(0,Math.min(B.height,mxUtils.getValue(this.state.style,"size",ka.prototype.size))),C=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",ka.prototype.position))),F=Math.max(0,Math.min(B.width,mxUtils.getValue(this.state.style,"base",ka.prototype.base)));return new mxPoint(B.x+Math.min(B.width,C*B.width+F),B.y+B.height-u)},function(B,u){var C=
-Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",ka.prototype.position)));this.state.style.base=Math.round(Math.max(0,Math.min(B.width,u.x-B.x-C*B.width)))},!1)];mxUtils.getValue(f.style,mxConstants.STYLE_ROUNDED,!1)&&t.push(xb(f));return t},internalStorage:function(f){var t=[nb(f,["dx","dy"],function(B){var u=Math.max(0,Math.min(B.width,mxUtils.getValue(this.state.style,"dx",Ka.prototype.dx))),C=Math.max(0,Math.min(B.height,mxUtils.getValue(this.state.style,"dy",Ka.prototype.dy)));
-return new mxPoint(B.x+u,B.y+C)},function(B,u){this.state.style.dx=Math.round(Math.max(0,Math.min(B.width,u.x-B.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(B.height,u.y-B.y)))},!1)];mxUtils.getValue(f.style,mxConstants.STYLE_ROUNDED,!1)&&t.push(xb(f));return t},module:function(f){return[nb(f,["jettyWidth","jettyHeight"],function(t){var B=Math.max(0,Math.min(t.width,mxUtils.getValue(this.state.style,"jettyWidth",Aa.prototype.jettyWidth))),u=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,
-"jettyHeight",Aa.prototype.jettyHeight)));return new mxPoint(t.x+B/2,t.y+2*u)},function(t,B){this.state.style.jettyWidth=Math.round(2*Math.max(0,Math.min(t.width,B.x-t.x)));this.state.style.jettyHeight=Math.round(Math.max(0,Math.min(t.height,B.y-t.y))/2)})]},corner:function(f){return[nb(f,["dx","dy"],function(t){var B=Math.max(0,Math.min(t.width,mxUtils.getValue(this.state.style,"dx",za.prototype.dx))),u=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,"dy",za.prototype.dy)));return new mxPoint(t.x+
-B,t.y+u)},function(t,B){this.state.style.dx=Math.round(Math.max(0,Math.min(t.width,B.x-t.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(t.height,B.y-t.y)))},!1)]},tee:function(f){return[nb(f,["dx","dy"],function(t){var B=Math.max(0,Math.min(t.width,mxUtils.getValue(this.state.style,"dx",Oa.prototype.dx))),u=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,"dy",Oa.prototype.dy)));return new mxPoint(t.x+(t.width+B)/2,t.y+u)},function(t,B){this.state.style.dx=Math.round(Math.max(0,
-2*Math.min(t.width/2,B.x-t.x-t.width/2)));this.state.style.dy=Math.round(Math.max(0,Math.min(t.height,B.y-t.y)))},!1)]},singleArrow:sb(1),doubleArrow:sb(.5),"mxgraph.arrows2.wedgeArrow":ub(20,20),"mxgraph.arrows2.wedgeArrowDashed":ub(20,20),"mxgraph.arrows2.wedgeArrowDashed2":ub(20,20),folder:function(f){return[nb(f,["tabWidth","tabHeight"],function(t){var B=Math.max(0,Math.min(t.width,mxUtils.getValue(this.state.style,"tabWidth",q.prototype.tabWidth))),u=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,
-"tabHeight",q.prototype.tabHeight)));mxUtils.getValue(this.state.style,"tabPosition",q.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(B=t.width-B);return new mxPoint(t.x+B,t.y+u)},function(t,B){var u=Math.max(0,Math.min(t.width,B.x-t.x));mxUtils.getValue(this.state.style,"tabPosition",q.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(u=t.width-u);this.state.style.tabWidth=Math.round(u);this.state.style.tabHeight=Math.round(Math.max(0,Math.min(t.height,B.y-t.y)))},!1)]},document:function(f){return[nb(f,
+!1,function(v,C,F,I,ja){v=(f.shape.getEdgeWidth()-f.shape.strokewidth)*f.view.scale;ja=3*mxUtils.getNumber(f.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*f.view.scale;return new mxPoint(I.x+C*(ja+f.shape.strokewidth*f.view.scale)-F*v/2,I.y+F*(ja+f.shape.strokewidth*f.view.scale)+C*v/2)},function(v,C,F,I,ja,O,va){v=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ja.x,ja.y,O.x,O.y));C=mxUtils.ptLineDist(I.x,I.y,I.x+F,I.y-C,O.x,O.y);f.style[mxConstants.STYLE_ENDSIZE]=Math.round(100*(C-f.shape.strokewidth)/
+3)/100/f.view.scale;f.style.width=Math.round(2*v)/f.view.scale;if(mxEvent.isShiftDown(va.getEvent())||mxEvent.isControlDown(va.getEvent()))f.style[mxConstants.STYLE_STARTSIZE]=f.style[mxConstants.STYLE_ENDSIZE];mxEvent.isAltDown(va.getEvent())||Math.abs(parseFloat(f.style[mxConstants.STYLE_ENDSIZE])-parseFloat(f.style[mxConstants.STYLE_STARTSIZE]))<t/6&&(f.style[mxConstants.STYLE_ENDSIZE]=f.style[mxConstants.STYLE_STARTSIZE])})),B.push(rb(f,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],
+!1,function(v,C,F,I,ja){v=(f.shape.getEndArrowWidth()-f.shape.strokewidth)*f.view.scale;ja=3*mxUtils.getNumber(f.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*f.view.scale;return new mxPoint(I.x+C*(ja+f.shape.strokewidth*f.view.scale)-F*v/2,I.y+F*(ja+f.shape.strokewidth*f.view.scale)+C*v/2)},function(v,C,F,I,ja,O,va){v=Math.sqrt(mxUtils.ptSegDistSq(I.x,I.y,ja.x,ja.y,O.x,O.y));C=mxUtils.ptLineDist(I.x,I.y,I.x+F,I.y-C,O.x,O.y);f.style[mxConstants.STYLE_ENDSIZE]=Math.round(100*(C-f.shape.strokewidth)/
+3)/100/f.view.scale;f.style.endWidth=Math.max(0,Math.round(2*v)-f.shape.getEdgeWidth())/f.view.scale;if(mxEvent.isShiftDown(va.getEvent())||mxEvent.isControlDown(va.getEvent()))f.style[mxConstants.STYLE_STARTSIZE]=f.style[mxConstants.STYLE_ENDSIZE],f.style.startWidth=f.style.endWidth;mxEvent.isAltDown(va.getEvent())||(Math.abs(parseFloat(f.style[mxConstants.STYLE_ENDSIZE])-parseFloat(f.style[mxConstants.STYLE_STARTSIZE]))<t/6&&(f.style[mxConstants.STYLE_ENDSIZE]=f.style[mxConstants.STYLE_STARTSIZE]),
+Math.abs(parseFloat(f.style.endWidth)-parseFloat(f.style.startWidth))<t&&(f.style.endWidth=f.style.startWidth))})));return B},swimlane:function(f){var t=[];if(mxUtils.getValue(f.style,mxConstants.STYLE_ROUNDED)){var B=parseFloat(mxUtils.getValue(f.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));t.push(xb(f,B/2))}t.push(nb(f,[mxConstants.STYLE_STARTSIZE],function(v){var C=parseFloat(mxUtils.getValue(f.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));return 1==mxUtils.getValue(f.style,
+mxConstants.STYLE_HORIZONTAL,1)?new mxPoint(v.getCenterX(),v.y+Math.max(0,Math.min(v.height,C))):new mxPoint(v.x+Math.max(0,Math.min(v.width,C)),v.getCenterY())},function(v,C){f.style[mxConstants.STYLE_STARTSIZE]=1==mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,1)?Math.round(Math.max(0,Math.min(v.height,C.y-v.y))):Math.round(Math.max(0,Math.min(v.width,C.x-v.x)))},!1,null,function(v){var C=f.view.graph;if(!mxEvent.isShiftDown(v.getEvent())&&!mxEvent.isControlDown(v.getEvent())&&(C.isTableRow(f.cell)||
+C.isTableCell(f.cell))){v=C.getSwimlaneDirection(f.style);var F=C.model.getParent(f.cell);F=C.model.getChildCells(F,!0);for(var I=[],ja=0;ja<F.length;ja++)F[ja]!=f.cell&&C.isSwimlane(F[ja])&&C.getSwimlaneDirection(C.getCurrentCellStyle(F[ja]))==v&&I.push(F[ja]);C.setCellStyles(mxConstants.STYLE_STARTSIZE,f.style[mxConstants.STYLE_STARTSIZE],I)}}));return t},label:zb(),ext:zb(),rectangle:zb(),triangle:zb(),rhombus:zb(),umlLifeline:function(f){return[nb(f,["size"],function(t){var B=Math.max(0,Math.min(t.height,
+parseFloat(mxUtils.getValue(this.state.style,"size",Z.prototype.size))));return new mxPoint(t.getCenterX(),t.y+B)},function(t,B){this.state.style.size=Math.round(Math.max(0,Math.min(t.height,B.y-t.y)))},!1)]},umlFrame:function(f){return[nb(f,["width","height"],function(t){var B=Math.max(da.prototype.corner,Math.min(t.width,mxUtils.getValue(this.state.style,"width",da.prototype.width))),v=Math.max(1.5*da.prototype.corner,Math.min(t.height,mxUtils.getValue(this.state.style,"height",da.prototype.height)));
+return new mxPoint(t.x+B,t.y+v)},function(t,B){this.state.style.width=Math.round(Math.max(da.prototype.corner,Math.min(t.width,B.x-t.x)));this.state.style.height=Math.round(Math.max(1.5*da.prototype.corner,Math.min(t.height,B.y-t.y)))},!1)]},process:function(f){var t=[nb(f,["size"],function(B){var v="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),C=parseFloat(mxUtils.getValue(this.state.style,"size",ha.prototype.size));return v?new mxPoint(B.x+C,B.y+B.height/4):new mxPoint(B.x+B.width*C,B.y+
+B.height/4)},function(B,v){B="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(.5*B.width,v.x-B.x)):Math.max(0,Math.min(.5,(v.x-B.x)/B.width));this.state.style.size=B},!1)];mxUtils.getValue(f.style,mxConstants.STYLE_ROUNDED,!1)&&t.push(xb(f));return t},cross:function(f){return[nb(f,["size"],function(t){var B=Math.min(t.width,t.height);B=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"size",wa.prototype.size)))*B/2;return new mxPoint(t.getCenterX()-B,t.getCenterY()-
+B)},function(t,B){var v=Math.min(t.width,t.height);this.state.style.size=Math.max(0,Math.min(1,Math.min(Math.max(0,t.getCenterY()-B.y)/v*2,Math.max(0,t.getCenterX()-B.x)/v*2)))})]},note:function(f){return[nb(f,["size"],function(t){var B=Math.max(0,Math.min(t.width,Math.min(t.height,parseFloat(mxUtils.getValue(this.state.style,"size",E.prototype.size)))));return new mxPoint(t.x+t.width-B,t.y+B)},function(t,B){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(t.width,t.x+t.width-B.x),Math.min(t.height,
+B.y-t.y))))})]},note2:function(f){return[nb(f,["size"],function(t){var B=Math.max(0,Math.min(t.width,Math.min(t.height,parseFloat(mxUtils.getValue(this.state.style,"size",R.prototype.size)))));return new mxPoint(t.x+t.width-B,t.y+B)},function(t,B){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(t.width,t.x+t.width-B.x),Math.min(t.height,B.y-t.y))))})]},manualInput:function(f){var t=[nb(f,["size"],function(B){var v=Math.max(0,Math.min(B.height,mxUtils.getValue(this.state.style,"size",
+$a.prototype.size)));return new mxPoint(B.x+B.width/4,B.y+3*v/4)},function(B,v){this.state.style.size=Math.round(Math.max(0,Math.min(B.height,4*(v.y-B.y)/3)))},!1)];mxUtils.getValue(f.style,mxConstants.STYLE_ROUNDED,!1)&&t.push(xb(f));return t},dataStorage:function(f){return[nb(f,["size"],function(t){var B="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),v=parseFloat(mxUtils.getValue(this.state.style,"size",B?Ba.prototype.fixedSize:Ba.prototype.size));return new mxPoint(t.x+t.width-v*(B?1:
+t.width),t.getCenterY())},function(t,B){t="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(t.width,t.x+t.width-B.x)):Math.max(0,Math.min(1,(t.x+t.width-B.x)/t.width));this.state.style.size=t},!1)]},callout:function(f){var t=[nb(f,["size","position"],function(B){var v=Math.max(0,Math.min(B.height,mxUtils.getValue(this.state.style,"size",ka.prototype.size))),C=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",ka.prototype.position)));mxUtils.getValue(this.state.style,
+"base",ka.prototype.base);return new mxPoint(B.x+C*B.width,B.y+B.height-v)},function(B,v){mxUtils.getValue(this.state.style,"base",ka.prototype.base);this.state.style.size=Math.round(Math.max(0,Math.min(B.height,B.y+B.height-v.y)));this.state.style.position=Math.round(100*Math.max(0,Math.min(1,(v.x-B.x)/B.width)))/100},!1),nb(f,["position2"],function(B){var v=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position2",ka.prototype.position2)));return new mxPoint(B.x+v*B.width,B.y+B.height)},
+function(B,v){this.state.style.position2=Math.round(100*Math.max(0,Math.min(1,(v.x-B.x)/B.width)))/100},!1),nb(f,["base"],function(B){var v=Math.max(0,Math.min(B.height,mxUtils.getValue(this.state.style,"size",ka.prototype.size))),C=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",ka.prototype.position))),F=Math.max(0,Math.min(B.width,mxUtils.getValue(this.state.style,"base",ka.prototype.base)));return new mxPoint(B.x+Math.min(B.width,C*B.width+F),B.y+B.height-v)},function(B,v){var C=
+Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",ka.prototype.position)));this.state.style.base=Math.round(Math.max(0,Math.min(B.width,v.x-B.x-C*B.width)))},!1)];mxUtils.getValue(f.style,mxConstants.STYLE_ROUNDED,!1)&&t.push(xb(f));return t},internalStorage:function(f){var t=[nb(f,["dx","dy"],function(B){var v=Math.max(0,Math.min(B.width,mxUtils.getValue(this.state.style,"dx",Ka.prototype.dx))),C=Math.max(0,Math.min(B.height,mxUtils.getValue(this.state.style,"dy",Ka.prototype.dy)));
+return new mxPoint(B.x+v,B.y+C)},function(B,v){this.state.style.dx=Math.round(Math.max(0,Math.min(B.width,v.x-B.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(B.height,v.y-B.y)))},!1)];mxUtils.getValue(f.style,mxConstants.STYLE_ROUNDED,!1)&&t.push(xb(f));return t},module:function(f){return[nb(f,["jettyWidth","jettyHeight"],function(t){var B=Math.max(0,Math.min(t.width,mxUtils.getValue(this.state.style,"jettyWidth",Aa.prototype.jettyWidth))),v=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,
+"jettyHeight",Aa.prototype.jettyHeight)));return new mxPoint(t.x+B/2,t.y+2*v)},function(t,B){this.state.style.jettyWidth=Math.round(2*Math.max(0,Math.min(t.width,B.x-t.x)));this.state.style.jettyHeight=Math.round(Math.max(0,Math.min(t.height,B.y-t.y))/2)})]},corner:function(f){return[nb(f,["dx","dy"],function(t){var B=Math.max(0,Math.min(t.width,mxUtils.getValue(this.state.style,"dx",za.prototype.dx))),v=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,"dy",za.prototype.dy)));return new mxPoint(t.x+
+B,t.y+v)},function(t,B){this.state.style.dx=Math.round(Math.max(0,Math.min(t.width,B.x-t.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(t.height,B.y-t.y)))},!1)]},tee:function(f){return[nb(f,["dx","dy"],function(t){var B=Math.max(0,Math.min(t.width,mxUtils.getValue(this.state.style,"dx",Oa.prototype.dx))),v=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,"dy",Oa.prototype.dy)));return new mxPoint(t.x+(t.width+B)/2,t.y+v)},function(t,B){this.state.style.dx=Math.round(Math.max(0,
+2*Math.min(t.width/2,B.x-t.x-t.width/2)));this.state.style.dy=Math.round(Math.max(0,Math.min(t.height,B.y-t.y)))},!1)]},singleArrow:sb(1),doubleArrow:sb(.5),"mxgraph.arrows2.wedgeArrow":ub(20,20),"mxgraph.arrows2.wedgeArrowDashed":ub(20,20),"mxgraph.arrows2.wedgeArrowDashed2":ub(20,20),folder:function(f){return[nb(f,["tabWidth","tabHeight"],function(t){var B=Math.max(0,Math.min(t.width,mxUtils.getValue(this.state.style,"tabWidth",q.prototype.tabWidth))),v=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,
+"tabHeight",q.prototype.tabHeight)));mxUtils.getValue(this.state.style,"tabPosition",q.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(B=t.width-B);return new mxPoint(t.x+B,t.y+v)},function(t,B){var v=Math.max(0,Math.min(t.width,B.x-t.x));mxUtils.getValue(this.state.style,"tabPosition",q.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(v=t.width-v);this.state.style.tabWidth=Math.round(v);this.state.style.tabHeight=Math.round(Math.max(0,Math.min(t.height,B.y-t.y)))},!1)]},document:function(f){return[nb(f,
["size"],function(t){var B=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",K.prototype.size))));return new mxPoint(t.x+3*t.width/4,t.y+(1-B)*t.height)},function(t,B){this.state.style.size=Math.max(0,Math.min(1,(t.y+t.height-B.y)/t.height))},!1)]},tape:function(f){return[nb(f,["size"],function(t){var B=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",H.prototype.size))));return new mxPoint(t.getCenterX(),t.y+B*t.height/2)},function(t,B){this.state.style.size=
Math.max(0,Math.min(1,(B.y-t.y)/t.height*2))},!1)]},isoCube2:function(f){return[nb(f,["isoAngle"],function(t){var B=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.state.style,"isoAngle",N.isoAngle))))*Math.PI/200;return new mxPoint(t.x,t.y+Math.min(t.width*Math.tan(B),.5*t.height))},function(t,B){this.state.style.isoAngle=Math.max(0,50*(B.y-t.y)/t.height)},!0)]},cylinder2:tb(c.prototype.size),cylinder3:tb(g.prototype.size),offPageConnector:function(f){return[nb(f,["size"],function(t){var B=
-Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",Fa.prototype.size))));return new mxPoint(t.getCenterX(),t.y+(1-B)*t.height)},function(t,B){this.state.style.size=Math.max(0,Math.min(1,(t.y+t.height-B.y)/t.height))},!1)]},"mxgraph.basic.rect":function(f){var t=[Graph.createHandle(f,["size"],function(B){var u=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+u,B.y+u)},function(B,u){this.state.style.size=
-Math.round(100*Math.max(0,Math.min(B.height/2,B.width/2,u.x-B.x)))/100})];f=Graph.createHandle(f,["indent"],function(B){var u=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+u*B.height/200)},function(B,u){this.state.style.indent=Math.round(100*Math.max(0,Math.min(100,200*(u.y-B.y)/B.height)))/100});t.push(f);return t},step:Ab(pa.prototype.size,!0,null,!0,pa.prototype.fixedSize),hexagon:Ab(ba.prototype.size,!0,.5,!0,
+Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",Fa.prototype.size))));return new mxPoint(t.getCenterX(),t.y+(1-B)*t.height)},function(t,B){this.state.style.size=Math.max(0,Math.min(1,(t.y+t.height-B.y)/t.height))},!1)]},"mxgraph.basic.rect":function(f){var t=[Graph.createHandle(f,["size"],function(B){var v=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+v,B.y+v)},function(B,v){this.state.style.size=
+Math.round(100*Math.max(0,Math.min(B.height/2,B.width/2,v.x-B.x)))/100})];f=Graph.createHandle(f,["indent"],function(B){var v=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+v*B.height/200)},function(B,v){this.state.style.indent=Math.round(100*Math.max(0,Math.min(100,200*(v.y-B.y)/B.height)))/100});t.push(f);return t},step:Ab(pa.prototype.size,!0,null,!0,pa.prototype.fixedSize),hexagon:Ab(ba.prototype.size,!0,.5,!0,
ba.prototype.fixedSize),curlyBracket:Ab(M.prototype.size,!1),display:Ab(ua.prototype.size,!1),cube:vb(1,n.prototype.size,!1),card:vb(.5,D.prototype.size,!0),loopLimit:vb(.5,sa.prototype.size,!0),trapezoid:wb(.5,W.prototype.size,W.prototype.fixedSize),parallelogram:wb(1,P.prototype.size,P.prototype.fixedSize),zigzag:function(f){return[nb(f,["size"],function(t){var B=Math.max(5,parseFloat(mxUtils.getValue(this.state.style,"size",Za.prototype.size)));return new mxPoint(t.x+3*B,t.y)},function(t,B){this.state.style.size=
Math.max(5,Math.round((B.x-t.x)/3))},!1)]}};Graph.createHandle=nb;Graph.handleFactory=Cb;var Fb=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){var f=Fb.apply(this,arguments);if(this.graph.isCellRotatable(this.state.cell)){var t=this.state.style.shape;null==mxCellRenderer.defaultShapes[t]&&null==mxStencilRegistry.getStencil(t)?t=mxConstants.SHAPE_RECTANGLE:this.state.view.graph.isSwimlane(this.state.cell)&&(t=mxConstants.SHAPE_SWIMLANE);t=Cb[t];
null==t&&null!=this.state.shape&&this.state.shape.isRoundable()&&(t=Cb[mxConstants.SHAPE_RECTANGLE]);null!=t&&(t=t(this.state),null!=t&&(f=null==f?t:f.concat(t)))}return f};mxEdgeHandler.prototype.createCustomHandles=function(){var f=this.state.style.shape;null==mxCellRenderer.defaultShapes[f]&&null==mxStencilRegistry.getStencil(f)&&(f=mxConstants.SHAPE_CONNECTOR);f=Cb[f];return null!=f?f(this.state):null}}else Graph.createHandle=function(){},Graph.handleFactory={};var yb=new mxPoint(1,0),Db=new mxPoint(1,
-0),Eb=mxUtils.toRadians(-30);yb=mxUtils.getRotatedPoint(yb,Math.cos(Eb),Math.sin(Eb));var ob=mxUtils.toRadians(-150);Db=mxUtils.getRotatedPoint(Db,Math.cos(ob),Math.sin(ob));mxEdgeStyle.IsometricConnector=function(f,t,B,u,C){var F=f.view;u=null!=u&&0<u.length?u[0]:null;var I=f.absolutePoints,ja=I[0];I=I[I.length-1];null!=u&&(u=F.transformControlPoint(f,u));null==ja&&null!=t&&(ja=new mxPoint(t.getCenterX(),t.getCenterY()));null==I&&null!=B&&(I=new mxPoint(B.getCenterX(),B.getCenterY()));var O=yb.x,
-va=yb.y,oa=Db.x,bb=Db.y,mb="horizontal"==mxUtils.getValue(f.style,"elbow","horizontal");if(null!=I&&null!=ja){f=function(Ga,La,Ja){Ga-=hb.x;var Ia=La-hb.y;La=(bb*Ga-oa*Ia)/(O*bb-va*oa);Ga=(va*Ga-O*Ia)/(va*oa-O*bb);mb?(Ja&&(hb=new mxPoint(hb.x+O*La,hb.y+va*La),C.push(hb)),hb=new mxPoint(hb.x+oa*Ga,hb.y+bb*Ga)):(Ja&&(hb=new mxPoint(hb.x+oa*Ga,hb.y+bb*Ga),C.push(hb)),hb=new mxPoint(hb.x+O*La,hb.y+va*La));C.push(hb)};var hb=ja;null==u&&(u=new mxPoint(ja.x+(I.x-ja.x)/2,ja.y+(I.y-ja.y)/2));f(u.x,u.y,!0);
-f(I.x,I.y,!1)}};mxStyleRegistry.putValue("isometricEdgeStyle",mxEdgeStyle.IsometricConnector);var Bb=Graph.prototype.createEdgeHandler;Graph.prototype.createEdgeHandler=function(f,t){if(t==mxEdgeStyle.IsometricConnector){var B=new mxElbowEdgeHandler(f);B.snapToTerminals=!1;return B}return Bb.apply(this,arguments)};z.prototype.constraints=[];G.prototype.getConstraints=function(f,t,B){f=[];var u=Math.tan(mxUtils.toRadians(30)),C=(.5-u)/2;u=Math.min(t,B/(.5+u));t=(t-u)/2;B=(B-u)/2;f.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,t,B+.25*u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t+.5*u,B+u*C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t+u,B+.25*u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t+u,B+.75*u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t+.5*u,B+(1-C)*u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,B+.75*u));return f};N.prototype.getConstraints=function(f,t,B){f=[];var u=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,
-"isoAngle",this.isoAngle))))*Math.PI/200;u=Math.min(t*Math.tan(u),.5*B);f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,u));f.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,B-u));f.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,B-u));f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,0,u));return f};ka.prototype.getConstraints=function(f,t,B){f=[];mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE);var u=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size))));parseFloat(mxUtils.getValue(this.style,"position",this.position));var C=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2))));parseFloat(mxUtils.getValue(this.style,"base",this.base));f.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1));f.push(new mxConnectionConstraint(new mxPoint(.25,0),!1));f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));f.push(new mxConnectionConstraint(new mxPoint(.75,0),!1));f.push(new mxConnectionConstraint(new mxPoint(1,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,.5*(B-u)));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,B-u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,
-B-u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(B-u)));t>=2*u&&f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return f};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,
+0),Eb=mxUtils.toRadians(-30);yb=mxUtils.getRotatedPoint(yb,Math.cos(Eb),Math.sin(Eb));var ob=mxUtils.toRadians(-150);Db=mxUtils.getRotatedPoint(Db,Math.cos(ob),Math.sin(ob));mxEdgeStyle.IsometricConnector=function(f,t,B,v,C){var F=f.view;v=null!=v&&0<v.length?v[0]:null;var I=f.absolutePoints,ja=I[0];I=I[I.length-1];null!=v&&(v=F.transformControlPoint(f,v));null==ja&&null!=t&&(ja=new mxPoint(t.getCenterX(),t.getCenterY()));null==I&&null!=B&&(I=new mxPoint(B.getCenterX(),B.getCenterY()));var O=yb.x,
+va=yb.y,oa=Db.x,bb=Db.y,mb="horizontal"==mxUtils.getValue(f.style,"elbow","horizontal");if(null!=I&&null!=ja){f=function(Ga,La,Ja){Ga-=hb.x;var Ia=La-hb.y;La=(bb*Ga-oa*Ia)/(O*bb-va*oa);Ga=(va*Ga-O*Ia)/(va*oa-O*bb);mb?(Ja&&(hb=new mxPoint(hb.x+O*La,hb.y+va*La),C.push(hb)),hb=new mxPoint(hb.x+oa*Ga,hb.y+bb*Ga)):(Ja&&(hb=new mxPoint(hb.x+oa*Ga,hb.y+bb*Ga),C.push(hb)),hb=new mxPoint(hb.x+O*La,hb.y+va*La));C.push(hb)};var hb=ja;null==v&&(v=new mxPoint(ja.x+(I.x-ja.x)/2,ja.y+(I.y-ja.y)/2));f(v.x,v.y,!0);
+f(I.x,I.y,!1)}};mxStyleRegistry.putValue("isometricEdgeStyle",mxEdgeStyle.IsometricConnector);var Bb=Graph.prototype.createEdgeHandler;Graph.prototype.createEdgeHandler=function(f,t){if(t==mxEdgeStyle.IsometricConnector){var B=new mxElbowEdgeHandler(f);B.snapToTerminals=!1;return B}return Bb.apply(this,arguments)};z.prototype.constraints=[];G.prototype.getConstraints=function(f,t,B){f=[];var v=Math.tan(mxUtils.toRadians(30)),C=(.5-v)/2;v=Math.min(t,B/(.5+v));t=(t-v)/2;B=(B-v)/2;f.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,t,B+.25*v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t+.5*v,B+v*C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t+v,B+.25*v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t+v,B+.75*v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t+.5*v,B+(1-C)*v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,B+.75*v));return f};N.prototype.getConstraints=function(f,t,B){f=[];var v=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,
+"isoAngle",this.isoAngle))))*Math.PI/200;v=Math.min(t*Math.tan(v),.5*B);f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,v));f.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,B-v));f.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,B-v));f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,0,v));return f};ka.prototype.getConstraints=function(f,t,B){f=[];mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE);var v=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size))));parseFloat(mxUtils.getValue(this.style,"position",this.position));var C=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2))));parseFloat(mxUtils.getValue(this.style,"base",this.base));f.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1));f.push(new mxConnectionConstraint(new mxPoint(.25,0),!1));f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));f.push(new mxConnectionConstraint(new mxPoint(.75,0),!1));f.push(new mxConnectionConstraint(new mxPoint(1,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,.5*(B-v)));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,B-v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,
+B-v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(B-v)));t>=2*v&&f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return f};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))];ia.prototype.constraints=mxRectangleShape.prototype.constraints;mxImageShape.prototype.constraints=mxRectangleShape.prototype.constraints;mxSwimlane.prototype.constraints=
-mxRectangleShape.prototype.constraints;l.prototype.constraints=mxRectangleShape.prototype.constraints;mxLabel.prototype.constraints=mxRectangleShape.prototype.constraints;E.prototype.getConstraints=function(f,t,B){f=[];var u=Math.max(0,Math.min(t,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-u),0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,
-null,t-u,0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-.5*u,.5*u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,.5*(B+u)));f.push(new mxConnectionConstraint(new mxPoint(1,1),!1));f.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));f.push(new mxConnectionConstraint(new mxPoint(0,1),!1));f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));t>=2*u&&f.push(new mxConnectionConstraint(new mxPoint(.5,
-0),!1));return f};D.prototype.getConstraints=function(f,t,B){f=[];var u=Math.max(0,Math.min(t,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));f.push(new mxConnectionConstraint(new mxPoint(1,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+u),0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,u,0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*u,.5*u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,u));f.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,0,.5*(B+u)));f.push(new mxConnectionConstraint(new mxPoint(0,1),!1));f.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));f.push(new mxConnectionConstraint(new mxPoint(1,1),!1));f.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));t>=2*u&&f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return f};n.prototype.getConstraints=function(f,t,B){f=[];var u=Math.max(0,Math.min(t,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));f.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-u),0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-u,0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-.5*u,.5*u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,.5*(B+u)));f.push(new mxConnectionConstraint(new mxPoint(1,1),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+u),B));f.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,u,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*u,B-.5*u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,B-u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(B-u)));return f};g.prototype.getConstraints=function(f,t,B){f=[];t=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size))));f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(.5,
+mxRectangleShape.prototype.constraints;l.prototype.constraints=mxRectangleShape.prototype.constraints;mxLabel.prototype.constraints=mxRectangleShape.prototype.constraints;E.prototype.getConstraints=function(f,t,B){f=[];var v=Math.max(0,Math.min(t,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-v),0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,
+null,t-v,0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-.5*v,.5*v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,.5*(B+v)));f.push(new mxConnectionConstraint(new mxPoint(1,1),!1));f.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));f.push(new mxConnectionConstraint(new mxPoint(0,1),!1));f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));t>=2*v&&f.push(new mxConnectionConstraint(new mxPoint(.5,
+0),!1));return f};D.prototype.getConstraints=function(f,t,B){f=[];var v=Math.max(0,Math.min(t,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));f.push(new mxConnectionConstraint(new mxPoint(1,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+v),0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,v,0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*v,.5*v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,v));f.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,0,.5*(B+v)));f.push(new mxConnectionConstraint(new mxPoint(0,1),!1));f.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));f.push(new mxConnectionConstraint(new mxPoint(1,1),!1));f.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));t>=2*v&&f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return f};n.prototype.getConstraints=function(f,t,B){f=[];var v=Math.max(0,Math.min(t,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));f.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-v),0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-v,0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-.5*v,.5*v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,.5*(B+v)));f.push(new mxConnectionConstraint(new mxPoint(1,1),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+v),B));f.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,v,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*v,B-.5*v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,B-v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(B-v)));return f};g.prototype.getConstraints=function(f,t,B){f=[];t=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"size",this.size))));f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(.5,
1),!1));f.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,t));f.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,t));f.push(new mxConnectionConstraint(new mxPoint(1,1),!1,null,0,-t));f.push(new mxConnectionConstraint(new mxPoint(0,1),!1,null,0,-t));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,t+.5*(.5*B-t)));f.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,t+.5*(.5*B-t)));f.push(new mxConnectionConstraint(new mxPoint(1,
-0),!1,null,0,B-t-.5*(.5*B-t)));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,B-t-.5*(.5*B-t)));f.push(new mxConnectionConstraint(new mxPoint(.145,0),!1,null,0,.29*t));f.push(new mxConnectionConstraint(new mxPoint(.855,0),!1,null,0,.29*t));f.push(new mxConnectionConstraint(new mxPoint(.855,1),!1,null,0,.29*-t));f.push(new mxConnectionConstraint(new mxPoint(.145,1),!1,null,0,.29*-t));return f};q.prototype.getConstraints=function(f,t,B){f=[];var u=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,
-"tabWidth",this.tabWidth)))),C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?(f.push(new mxConnectionConstraint(new mxPoint(0,0),!1)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*u,0)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,u,0)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,u,C)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,
-.5*(t+u),C))):(f.push(new mxConnectionConstraint(new mxPoint(1,0),!1)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-.5*u,0)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-u,0)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-u,C)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-u),C)));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,.25*(B-C)+C));f.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,0,B-t-.5*(.5*B-t)));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,B-t-.5*(.5*B-t)));f.push(new mxConnectionConstraint(new mxPoint(.145,0),!1,null,0,.29*t));f.push(new mxConnectionConstraint(new mxPoint(.855,0),!1,null,0,.29*t));f.push(new mxConnectionConstraint(new mxPoint(.855,1),!1,null,0,.29*-t));f.push(new mxConnectionConstraint(new mxPoint(.145,1),!1,null,0,.29*-t));return f};q.prototype.getConstraints=function(f,t,B){f=[];var v=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,
+"tabWidth",this.tabWidth)))),C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?(f.push(new mxConnectionConstraint(new mxPoint(0,0),!1)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*v,0)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,v,0)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,v,C)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,
+.5*(t+v),C))):(f.push(new mxConnectionConstraint(new mxPoint(1,0),!1)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-.5*v,0)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-v,0)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-v,C)),f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-v),C)));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,.25*(B-C)+C));f.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,t,.5*(B-C)+C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,.75*(B-C)+C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.25*(B-C)+C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(B-C)+C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.75*(B-C)+C));f.push(new mxConnectionConstraint(new mxPoint(0,
0),!1,null,0,B));f.push(new mxConnectionConstraint(new mxPoint(.25,1),!1));f.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));f.push(new mxConnectionConstraint(new mxPoint(.75,1),!1));return f};Ka.prototype.constraints=mxRectangleShape.prototype.constraints;Ba.prototype.constraints=mxRectangleShape.prototype.constraints;Qa.prototype.constraints=mxEllipse.prototype.constraints;Ta.prototype.constraints=mxEllipse.prototype.constraints;y.prototype.constraints=mxEllipse.prototype.constraints;la.prototype.constraints=
-mxEllipse.prototype.constraints;$a.prototype.constraints=mxRectangleShape.prototype.constraints;qa.prototype.constraints=mxRectangleShape.prototype.constraints;ua.prototype.getConstraints=function(f,t,B){f=[];var u=Math.min(t,B/2),C=Math.min(t-u,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*t);f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,
-.5*(C+t-u),0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-u,0));f.push(new mxConnectionConstraint(new mxPoint(1,.5),!1,null));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-u,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(C+t-u),B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,B));return f};Aa.prototype.getConstraints=function(f,t,B){t=parseFloat(mxUtils.getValue(f,"jettyWidth",Aa.prototype.jettyWidth))/2;f=parseFloat(mxUtils.getValue(f,
-"jettyHeight",Aa.prototype.jettyHeight));var u=[new mxConnectionConstraint(new mxPoint(0,0),!1,null,t),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,
-t),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(B-.5*f,1.5*f)),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(B-.5*f,3.5*f))];B>5*f&&u.push(new mxConnectionConstraint(new mxPoint(0,.75),!1,null,t));B>8*f&&u.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null,t));B>
-15*f&&u.push(new mxConnectionConstraint(new mxPoint(0,.25),!1,null,t));return u};sa.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,
+mxEllipse.prototype.constraints;$a.prototype.constraints=mxRectangleShape.prototype.constraints;qa.prototype.constraints=mxRectangleShape.prototype.constraints;ua.prototype.getConstraints=function(f,t,B){f=[];var v=Math.min(t,B/2),C=Math.min(t-v,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*t);f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,
+.5*(C+t-v),0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-v,0));f.push(new mxConnectionConstraint(new mxPoint(1,.5),!1,null));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-v,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(C+t-v),B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,B));return f};Aa.prototype.getConstraints=function(f,t,B){t=parseFloat(mxUtils.getValue(f,"jettyWidth",Aa.prototype.jettyWidth))/2;f=parseFloat(mxUtils.getValue(f,
+"jettyHeight",Aa.prototype.jettyHeight));var v=[new mxConnectionConstraint(new mxPoint(0,0),!1,null,t),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,
+t),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(B-.5*f,1.5*f)),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(B-.5*f,3.5*f))];B>5*f&&v.push(new mxConnectionConstraint(new mxPoint(0,.75),!1,null,t));B>8*f&&v.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null,t));B>
+15*f&&v.push(new mxConnectionConstraint(new mxPoint(0,.25),!1,null,t));return v};sa.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)];L.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)];Ca.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,
@@ -3137,25 +3141,25 @@ t),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(
[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)];P.prototype.constraints=mxRectangleShape.prototype.constraints;W.prototype.constraints=mxRectangleShape.prototype.constraints;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(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(f,t,B){f=[];var u=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"dx",this.dx)))),C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,
-"dy",this.dy))));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1));f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));f.push(new mxConnectionConstraint(new mxPoint(1,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,.5*C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.75*t+.25*u,C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+u),C));f.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,.5*(t+u),.5*(B+C)));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+u),B));f.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-u),B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-u),.5*(B+C)));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-u),C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.25*t-.25*u,C));f.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,0,C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*C));return f};za.prototype.getConstraints=function(f,t,B){f=[];var u=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"dx",this.dx)))),C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1));f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));f.push(new mxConnectionConstraint(new mxPoint(1,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,t,.5*C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+u),C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,u,C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,u,.5*(B+C)));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,u,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*u,B));f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,
+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(f,t,B){f=[];var v=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"dx",this.dx)))),C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,
+"dy",this.dy))));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1));f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));f.push(new mxConnectionConstraint(new mxPoint(1,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,.5*C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.75*t+.25*v,C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+v),C));f.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,.5*(t+v),.5*(B+C)));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+v),B));f.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-v),B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-v),.5*(B+C)));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-v),C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.25*t-.25*v,C));f.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,0,C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*C));return f};za.prototype.getConstraints=function(f,t,B){f=[];var v=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"dx",this.dx)))),C=Math.max(0,Math.min(B,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1));f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));f.push(new mxConnectionConstraint(new mxPoint(1,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,t,.5*C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+v),C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,v,C));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,v,.5*(B+C)));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,v,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*v,B));f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,
1),!1));return f};Sa.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)];Ma.prototype.getConstraints=
-function(f,t,B){f=[];var u=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth)))),C=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",this.arrowSize))));u=(B-u)/2;f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-C),u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-C,0));f.push(new mxConnectionConstraint(new mxPoint(1,
-.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-C,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-C),B-u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,B-u));return f};Na.prototype.getConstraints=function(f,t,B){f=[];var u=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",Ma.prototype.arrowWidth)))),C=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",Ma.prototype.arrowSize))));u=(B-u)/2;f.push(new mxConnectionConstraint(new mxPoint(0,
-.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*t,u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-C,0));f.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-C,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*t,B-u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,B));return f};wa.prototype.getConstraints=
-function(f,t,B){f=[];var u=Math.min(B,t),C=Math.max(0,Math.min(u,u*parseFloat(mxUtils.getValue(this.style,"size",this.size))));u=(B-C)/2;var F=u+C,I=(t-C)/2;C=I+C;f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,.5*u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,0));f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,.5*u));f.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,C,u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,B-.5*u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,B));f.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,B-.5*u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,F));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+C),u));f.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,t,u));f.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,F));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+C),F));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,F));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*I,u));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,u));f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,
-0),!1,null,0,F));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*I,F));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,u));return f};Z.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,
+function(f,t,B){f=[];var v=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth)))),C=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",this.arrowSize))));v=(B-v)/2;f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-C),v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-C,0));f.push(new mxConnectionConstraint(new mxPoint(1,
+.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-C,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t-C),B-v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,B-v));return f};Na.prototype.getConstraints=function(f,t,B){f=[];var v=B*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",Ma.prototype.arrowWidth)))),C=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",Ma.prototype.arrowSize))));v=(B-v)/2;f.push(new mxConnectionConstraint(new mxPoint(0,
+.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*t,v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-C,0));f.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-C,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*t,B-v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,B));return f};wa.prototype.getConstraints=
+function(f,t,B){f=[];var v=Math.min(B,t),C=Math.max(0,Math.min(v,v*parseFloat(mxUtils.getValue(this.style,"size",this.size))));v=(B-C)/2;var F=v+C,I=(t-C)/2;C=I+C;f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,.5*v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,0));f.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,0));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,.5*v));f.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,C,v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,B-.5*v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,B));f.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,B));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,B-.5*v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,C,F));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+C),v));f.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,t,v));f.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t,F));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(t+C),F));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,F));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*I,v));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,v));f.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));f.push(new mxConnectionConstraint(new mxPoint(0,
+0),!1,null,0,F));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*I,F));f.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,I,v));return f};Z.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)];Pa.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)];ra.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];ta.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(E){p.escape();E=p.deleteCells(p.getDeletableCells(p.getSelectionCells()),E);null!=E&&p.setSelectionCells(E)}function d(){if(!p.isSelectionEmpty()){p.getModel().beginUpdate();try{for(var E=p.getSelectionCells(),R=0;R<E.length;R++)p.cellLabelChanged(E[R],"")}finally{p.getModel().endUpdate()}}}function m(E,R,N,c,g){g.getModel().beginUpdate();try{var k=g.getCellGeometry(E);null!=k&&N&&c&&(N/=c,k=k.clone(),1<N?k.height=k.width/N:k.width=k.height*N,g.getModel().setGeometry(E,
-k));g.setCellStyles(mxConstants.STYLE_CLIP_PATH,R,[E]);g.setCellStyles(mxConstants.STYLE_ASPECT,"fixed",[E])}finally{g.getModel().endUpdate()}}var n=this.editorUi,v=n.editor,p=v.graph,z=function(){return Action.prototype.isEnabled.apply(this,arguments)&&p.isEnabled()};this.addAction("new...",function(){p.openLink(n.getUrl())});this.addAction("open...",function(){window.openNew=!0;window.openKey="open";n.openFile()});var G=new Action("smartFit",function(){if(n.chromelessResize)p.isLightboxView()?(1==
+k));g.setCellStyles(mxConstants.STYLE_CLIP_PATH,R,[E]);g.setCellStyles(mxConstants.STYLE_ASPECT,"fixed",[E])}finally{g.getModel().endUpdate()}}var n=this.editorUi,u=n.editor,p=u.graph,z=function(){return Action.prototype.isEnabled.apply(this,arguments)&&p.isEnabled()};this.addAction("new...",function(){p.openLink(n.getUrl())});this.addAction("open...",function(){window.openNew=!0;window.openKey="open";n.openFile()});var G=new Action("smartFit",function(){if(n.chromelessResize)p.isLightboxView()?(1==
p.view.scale?n.lightboxFit():p.zoomTo(1),n.chromelessResize(!1)):n.chromelessResize(!0);else{p.popupMenuHandler.hideMenu();var E=p.view.scale,R=p.container.scrollLeft,N=p.container.scrollTop,c=p.view.translate.x,g=p.view.translate.y;n.actions.get("resetView").funct();1E-5>Math.abs(E-p.view.scale)&&5>Math.abs(R-p.container.scrollLeft)&&5>Math.abs(N-p.container.scrollTop)&&c==p.view.translate.x&&g==p.view.translate.y&&n.actions.get("fitWindow").funct()}},null,null,"Enter");G.getTitle=function(){return mxResources.get("fitWindow")+
-" / "+mxResources.get("resetView")};this.put("smartFit",G);this.addAction("keyPressEnter",function(){p.isSelectionEmpty()?n.actions.get("smartFit").funct():p.isEnabled()&&p.startEditingAtCell()});this.addAction("import...",function(){window.openNew=!1;window.openKey="import";window.openFile=new OpenFile(mxUtils.bind(this,function(){n.hideDialog()}));window.openFile.setConsumer(mxUtils.bind(this,function(E,R){try{var N=mxUtils.parseXml(E);v.graph.setSelectionCells(v.graph.importGraphModel(N.documentElement))}catch(c){mxUtils.alert(mxResources.get("invalidOrMissingFile")+
+" / "+mxResources.get("resetView")};this.put("smartFit",G);this.addAction("keyPressEnter",function(){p.isSelectionEmpty()?n.actions.get("smartFit").funct():p.isEnabled()&&p.startEditingAtCell()});this.addAction("import...",function(){window.openNew=!1;window.openKey="import";window.openFile=new OpenFile(mxUtils.bind(this,function(){n.hideDialog()}));window.openFile.setConsumer(mxUtils.bind(this,function(E,R){try{var N=mxUtils.parseXml(E);u.graph.setSelectionCells(u.graph.importGraphModel(N.documentElement))}catch(c){mxUtils.alert(mxResources.get("invalidOrMissingFile")+
": "+c.message)}}));n.showDialog((new OpenDialog(this)).container,320,220,!0,!0,function(){window.openFile=null})}).isEnabled=z;this.addAction("save",function(){n.saveFile(!1)},null,null,Editor.ctrlKey+"+S").isEnabled=z;this.addAction("saveAs...",function(){n.saveFile(!0)},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+S");this.addAction("export...",function(){n.showDialog((new ExportDialog(n)).container,360,396,!0,!0)});this.addAction("editDiagram...",function(){var E=new EditDiagramDialog(n);n.showDialog(E.container,
620,420,!0,!1,null,null,null,new mxRectangle(0,0,440,280));E.init()}).isEnabled=z;this.addAction("pageSetup...",function(){n.showDialog((new PageSetupDialog(n)).container,320,240,!0,!0)}).isEnabled=z;this.addAction("print...",function(){n.showPrintDialog()},null,"",Editor.ctrlKey+"+P");this.addAction("preview",function(){mxUtils.show(p,null,10,10)});this.addAction("undo",function(){n.undo()},null,"",Editor.ctrlKey+"+Z");this.addAction("redo",function(){n.redo()},null,"",mxClient.IS_WIN?Editor.ctrlKey+
"+Y":Editor.ctrlKey+"+"+Editor.shiftKey+"+Z");this.addAction("cut",function(){var E=null;try{E=n.copyXml(),null!=E&&p.removeCells(E,!1)}catch(R){}try{null==E&&mxClipboard.cut(p)}catch(R){n.handleError(R)}},null,"",Editor.ctrlKey+"+X");this.addAction("copy",function(){try{n.copyXml()}catch(E){}try{mxClipboard.copy(p)}catch(E){n.handleError(E)}},null,"",Editor.ctrlKey+"+C");this.addAction("paste",function(){n.pasteFromClipboard()},!1,"",Editor.ctrlKey+"+V");this.addAction("pasteHere",function(E){n.pasteFromClipboard(p.popupMenuHandler.getTriggerPoint())});
@@ -3203,7 +3207,7 @@ this.addAction("sharp",function(){p.getModel().beginUpdate();try{p.setCellStyles
null);n.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],"values",[N,"0"],"cells",p.getSelectionCells()))}finally{p.getModel().endUpdate()}}});this.addAction("curved",function(){p.getModel().beginUpdate();try{p.setCellStyles(mxConstants.STYLE_ROUNDED,"0"),p.setCellStyles(mxConstants.STYLE_CURVED,"1"),n.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],"values",["0","1"],"cells",p.getSelectionCells()))}finally{p.getModel().endUpdate()}});
this.addAction("collapsible",function(){var E=p.view.getState(p.getSelectionCell()),R="1";null!=E&&null!=p.getFoldingImage(E)&&(R="0");p.setCellStyles("collapsible",R);n.fireEvent(new mxEventObject("styleChanged","keys",["collapsible"],"values",[R],"cells",p.getSelectionCells()))});this.addAction("editStyle...",mxUtils.bind(this,function(){var E=p.getEditableCells(p.getSelectionCells());if(null!=E&&0<E.length){var R=p.getModel();R=new TextareaDialog(this.editorUi,mxResources.get("editStyle")+":",
R.getStyle(E[0])||"",function(N){null!=N&&p.setCellStyle(mxUtils.trim(N),E)},null,null,400,220);this.editorUi.showDialog(R.container,420,300,!0,!0);R.init()}}),null,null,Editor.ctrlKey+"+E");this.addAction("setAsDefaultStyle",function(){p.isEnabled()&&!p.isSelectionEmpty()&&n.setDefaultStyle(p.getSelectionCell())},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+D");this.addAction("clearDefaultStyle",function(){p.isEnabled()&&n.clearDefaultStyle()},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+R");
-this.addAction("addWaypoint",function(){var E=p.getSelectionCell();if(null!=E&&p.getModel().isEdge(E)){var R=v.graph.selectionCellsHandler.getHandler(E);if(R instanceof mxEdgeHandler){var N=0,c=0;E=p.getModel().getParent(E);for(var g=p.getCellGeometry(E);p.getModel().isVertex(E)&&null!=g;)N+=g.x,c+=g.y,E=p.getModel().getParent(E),g=p.getCellGeometry(E);E=p.popupMenuHandler.getTriggerPoint();N=Math.round(p.snap(E.x-N));c=Math.round(p.snap(E.y-c));R.addPointAt(R.state,N,c)}}});this.addAction("removeWaypoint",
+this.addAction("addWaypoint",function(){var E=p.getSelectionCell();if(null!=E&&p.getModel().isEdge(E)){var R=u.graph.selectionCellsHandler.getHandler(E);if(R instanceof mxEdgeHandler){var N=0,c=0;E=p.getModel().getParent(E);for(var g=p.getCellGeometry(E);p.getModel().isVertex(E)&&null!=g;)N+=g.x,c+=g.y,E=p.getModel().getParent(E),g=p.getCellGeometry(E);E=p.popupMenuHandler.getTriggerPoint();N=Math.round(p.snap(E.x-N));c=Math.round(p.snap(E.y-c));R.addPointAt(R.state,N,c)}}});this.addAction("removeWaypoint",
function(){var E=n.actions.get("removeWaypoint");null!=E.handler&&E.handler.removePoint(E.handler.state,E.index)});this.addAction("clearAnchors",function(){var E=p.getSelectionCells();if(null!=E){E=p.getEditableCells(p.addAllEdges(E));p.getModel().beginUpdate();try{for(var R=0;R<E.length;R++){var N=E[R];p.getModel().isEdge(N)&&(p.setCellStyles(mxConstants.STYLE_EXIT_X,null,[N]),p.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[N]),p.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[N]),p.setCellStyles(mxConstants.STYLE_ENTRY_Y,
null,[N]))}}finally{p.getModel().endUpdate()}}});this.addAction("clearWaypoints",function(){var E=p.getSelectionCells();if(null!=E){E=p.getEditableCells(p.addAllEdges(E));p.getModel().beginUpdate();try{for(var R=0;R<E.length;R++){var N=E[R];if(p.getModel().isEdge(N)){var c=p.getCellGeometry(N);null!=c&&(c=c.clone(),c.points=null,c.x=0,c.y=0,c.offset=null,p.getModel().setGeometry(N,c))}}}finally{p.getModel().endUpdate()}}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+R");G=this.addAction("subscript",
mxUtils.bind(this,function(){p.cellEditor.isContentEditing()&&document.execCommand("subscript",!1,null)}),null,null,Editor.ctrlKey+"+,");G=this.addAction("superscript",mxUtils.bind(this,function(){p.cellEditor.isContentEditing()&&document.execCommand("superscript",!1,null)}),null,null,Editor.ctrlKey+"+.");G=this.addAction("decreaseFontSize",mxUtils.bind(this,function(){if(!p.isSelectionEmpty()){var E=p.getCurrentCellStyle(p.getSelectionCell());E=mxUtils.getValue(E,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);
@@ -3217,45 +3221,45 @@ n.fireEvent(new mxEventObject("layers")),this.layersWindow.init()):this.layersWi
function(){return n.isFormatPanelVisible()}));G=this.addAction("outline",mxUtils.bind(this,function(){null==this.outlineWindow?(this.outlineWindow=new OutlineWindow(n,document.body.offsetWidth-260,100,180,180),this.outlineWindow.window.addListener("show",mxUtils.bind(this,function(){n.fireEvent(new mxEventObject("outline"))})),this.outlineWindow.window.addListener("hide",function(){n.fireEvent(new mxEventObject("outline"))}),this.outlineWindow.window.setVisible(!0),n.fireEvent(new mxEventObject("outline"))):
this.outlineWindow.window.setVisible(!this.outlineWindow.window.isVisible())}),null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+O");G.setToggleAction(!0);G.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.outlineWindow&&this.outlineWindow.window.isVisible()}));this.addAction("editPolygon...",function(){var E=p.getSelectionCell();if(p.isEnabled()&&null!=E){var R=p.view.getState(E);if(null!=R&&"mxgraph.basic.polygon"===mxUtils.getValue(R.style,mxConstants.STYLE_SHAPE)){var N=new PolygonDialog(n,
E);n.showDialog(N.container,680,540,!0,!0,function(){N.destroy()},null,null,new mxRectangle(0,0,740,600));N.init()}}}).isEnabled=z;this.addAction("editConnectionPoints...",function(){var E=p.getSelectionCell();if(p.isEnabled()&&!p.isCellLocked(p.getDefaultParent())&&null!=E&&null!=E.geometry){var R=new ConnectionPointsDialog(n,E);n.showDialog(R.container,400,450,!0,!1,function(){R.destroy()},null,null,new mxRectangle(0,0,450,500));R.init()}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+Q").isEnabled=
-z};Actions.prototype.addAction=function(b,d,m,n,v,p){var z=b;"..."==z.substring(z.length-3)&&(z=z.substring(0,z.length-3));return this.put(z,new Action(b,d,m,n,v,p))};Actions.prototype.put=function(b,d){return this.actions[b]=d};Actions.prototype.get=function(b){return this.actions[b]};function Action(b,d,m,n,v,p){mxEventSource.call(this);this.label=b;this.funct=this.createFunction(d);this.enabled=null!=m?m:!0;this.iconCls=n;this.shortcut=v;this.visible=null!=p?p:!0}mxUtils.extend(Action,mxEventSource);
+z};Actions.prototype.addAction=function(b,d,m,n,u,p){var z=b;"..."==z.substring(z.length-3)&&(z=z.substring(0,z.length-3));return this.put(z,new Action(b,d,m,n,u,p))};Actions.prototype.put=function(b,d){return this.actions[b]=d};Actions.prototype.get=function(b){return this.actions[b]};function Action(b,d,m,n,u,p){mxEventSource.call(this);this.label=b;this.funct=this.createFunction(d);this.enabled=null!=m?m:!0;this.iconCls=n;this.shortcut=u;this.visible=null!=p?p:!0}mxUtils.extend(Action,mxEventSource);
Action.prototype.getTitle=function(){var b=this.label;"..."==b.substring(b.length-3)?(b=b.substring(0,b.length-3),b=mxResources.get(b)+"..."):b=mxResources.get(b);return b};Action.prototype.createFunction=function(b){return b};Action.prototype.setEnabled=function(b){this.enabled!=b&&(this.enabled=b,this.fireEvent(new mxEventObject("stateChanged","attribute","enabled")))};Action.prototype.isEnabled=function(){return this.enabled};
Action.prototype.setVisible=function(b){this.visible!=b&&(this.visible=b,this.fireEvent(new mxEventObject("stateChanged","attribute","visible")))};Action.prototype.isVisible=function(){return this.visible};Action.prototype.setToggleAction=function(b){this.toggleAction=b};Action.prototype.setSelectedCallback=function(b){this.selectedCallback=b};Action.prototype.isSelected=function(){return this.selectedCallback()};DrawioFile=function(b,d){mxEventSource.call(this);this.ui=b;this.setData(d||"");this.initialData=this.getData();this.created=(new Date).getTime();this.stats={opened:0,merged:0,fileMerged:0,fileReloaded:0,conflicts:0,timeouts:0,saved:0,closed:0,destroyed:0,joined:0,checksumErrors:0,bytesSent:0,bytesReceived:0,msgSent:0,msgReceived:0,cacheHits:0,cacheMiss:0,cacheFail:0}};DrawioFile.SYNC=urlParams.sync||"auto";DrawioFile.LAST_WRITE_WINS=!0;DrawioFile.RESTRICT_EXPORT=!1;mxUtils.extend(DrawioFile,mxEventSource);
DrawioFile.prototype.allChangesSavedKey="allChangesSaved";DrawioFile.prototype.savingSpinnerKey="saving";DrawioFile.prototype.savingStatusKey="saving";DrawioFile.prototype.autosaveDelay=1500;DrawioFile.prototype.maxAutosaveDelay=3E4;DrawioFile.prototype.optimisticSyncDelay=300;DrawioFile.prototype.autosaveThread=null;DrawioFile.prototype.lastAutosave=null;DrawioFile.prototype.lastSaved=null;DrawioFile.prototype.lastChanged=null;DrawioFile.prototype.opened=null;DrawioFile.prototype.modified=!1;
DrawioFile.prototype.shadowModified=!1;DrawioFile.prototype.data=null;DrawioFile.prototype.shadowPages=null;DrawioFile.prototype.changeListenerEnabled=!0;DrawioFile.prototype.lastAutosaveRevision=null;DrawioFile.prototype.maxAutosaveRevisionDelay=3E5;DrawioFile.prototype.inConflictState=!1;DrawioFile.prototype.invalidChecksum=!1;DrawioFile.prototype.ageStart=null;DrawioFile.prototype.getSize=function(){return null!=this.data?this.data.length:0};
DrawioFile.prototype.getShadowPages=function(){if(null==this.shadowPages&&(this.shadowPages=this.ui.getPagesForXml(this.initialData),void 0===this.shadowVars)){this.shadowVars=null;try{var b=mxUtils.parseXml(this.initialData).documentElement;null!=b&&"mxfile"==b.nodeName&&(this.shadowVars=b.getAttribute("vars"))}catch(d){}}return this.shadowPages};
DrawioFile.prototype.setShadowPages=function(b,d){this.shadowPages=b;this.shadowVars=void 0!==d?d:null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):null};DrawioFile.prototype.getShadowVars=function(){this.getShadowPages();return void 0!==this.shadowVars?this.shadowVars:null};
-DrawioFile.prototype.synchronizeFile=function(b,d,m){EditorUi.debug("DrawioFile.synchronizeFile",[this],"latestFile",[m],"savingFile",this.savingFile);if(this.savingFile)null!=d&&d({message:mxResources.get("busy")});else{var n=!0,v=window.setTimeout(mxUtils.bind(this,function(){n=!1;null!=d&&d({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.synchronizeFile(b,d)})})}),this.ui.timeout),p=mxUtils.bind(this,function(G){n&&(window.clearTimeout(v),null!=
-d&&d(G))}),z=mxUtils.bind(this,function(){return!n});null!=this.sync?this.sync.fileChanged(mxUtils.bind(this,function(G){n&&(window.clearTimeout(v),this.sync.cleanup(b,d,G))}),p,z):this.updateFile(mxUtils.bind(this,function(){n&&(window.clearTimeout(v),null!=b&&b())}),p,z,null,null,m)}};
-DrawioFile.prototype.updateFile=function(b,d,m,n,v,p){if(null==m||!m())if(EditorUi.debug("DrawioFile.updateFile",[this],"immediate",v,"invalidChecksum",this.invalidChecksum,"latestFile",[p]),this.ui.getCurrentFile()!=this||this.invalidChecksum)null!=d&&d();else{var z=mxUtils.bind(this,function(G){try{null!=m&&m()||(EditorUi.debug("DrawioFile.updateFile",[this],"invalidChecksum",this.invalidChecksum,"latestFile",[G]),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=d&&d():null!=G?this.mergeFile(G,
-b,d,n,v):this.reloadFile(b,d))}catch(U){null!=d&&d(U)}});null!=p?z(p):this.getLatestVersion(z,d)}};
-DrawioFile.prototype.mergeFile=function(b,d,m,n,v){try{var p=b.getShadowPages();if(null!=p&&0<p.length){var z=this.getShadowPages(),G=[this.ui.diffPages(null!=n?n:z,p)];n=null;try{var U=mxUtils.parseXml(b.initialData).documentElement;null!=U&&"mxfile"==U.nodeName&&(n=U.getAttribute("vars"))}catch(D){}n!=this.getShadowVars()&&(G[0][EditorUi.DIFF_FILE]={vars:n});var E=this.ignorePatches(G);if(E)this.inConflictState=this.invalidChecksum=!1,this.setDescriptor(b.getDescriptor()),this.descriptorChanged(),
+DrawioFile.prototype.synchronizeFile=function(b,d,m){EditorUi.debug("DrawioFile.synchronizeFile",[this],"latestFile",[m],"savingFile",this.savingFile);if(this.savingFile)null!=d&&d({message:mxResources.get("busy")});else{var n=!0,u=window.setTimeout(mxUtils.bind(this,function(){n=!1;null!=d&&d({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.synchronizeFile(b,d)})})}),this.ui.timeout),p=mxUtils.bind(this,function(G){n&&(window.clearTimeout(u),null!=
+d&&d(G))}),z=mxUtils.bind(this,function(){return!n});null!=this.sync?this.sync.fileChanged(mxUtils.bind(this,function(G){n&&(window.clearTimeout(u),this.sync.cleanup(b,d,G))}),p,z):this.updateFile(mxUtils.bind(this,function(){n&&(window.clearTimeout(u),null!=b&&b())}),p,z,null,null,m)}};
+DrawioFile.prototype.updateFile=function(b,d,m,n,u,p){if(null==m||!m())if(EditorUi.debug("DrawioFile.updateFile",[this],"immediate",u,"invalidChecksum",this.invalidChecksum,"latestFile",[p]),this.ui.getCurrentFile()!=this||this.invalidChecksum)null!=d&&d();else{var z=mxUtils.bind(this,function(G){try{null!=m&&m()||(EditorUi.debug("DrawioFile.updateFile",[this],"invalidChecksum",this.invalidChecksum,"latestFile",[G]),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=d&&d():null!=G?this.mergeFile(G,
+b,d,n,u):this.reloadFile(b,d))}catch(U){null!=d&&d(U)}});null!=p?z(p):this.getLatestVersion(z,d)}};
+DrawioFile.prototype.mergeFile=function(b,d,m,n,u){try{var p=b.getShadowPages();if(null!=p&&0<p.length){var z=this.getShadowPages(),G=[this.ui.diffPages(null!=n?n:z,p)];n=null;try{var U=mxUtils.parseXml(b.initialData).documentElement;null!=U&&"mxfile"==U.nodeName&&(n=U.getAttribute("vars"))}catch(D){}n!=this.getShadowVars()&&(G[0][EditorUi.DIFF_FILE]={vars:n});var E=this.ignorePatches(G);if(E)this.inConflictState=this.invalidChecksum=!1,this.setDescriptor(b.getDescriptor()),this.descriptorChanged(),
EditorUi.debug("File.mergeFile",[this],"file",[b],"ignored",E),null!=d&&d();else try{this.stats.fileMerged++;null!=this.sync&&this.sync.sendLocalChanges();var R=this.isModified()?this.ui.diffPages(z,this.isRealtime()?this.ownPages:this.ui.pages):null,N=this.ui.patchPages(this.ui.clonePages(z),G[0]),c=this.ui.getHashValueForPages(N,{}),g=this.ui.getHashValueForPages(p,{});EditorUi.debug("File.mergeFile",[this],"file",[b],"ui",this.ui.pages,"shadow",z,"pages",p,"patched",N,"patches",G,"changes",R,"checksum",
-c,"current",g,"valid",c==g,"from",this.getCurrentRevisionId(),"to",b.getCurrentRevisionId(),"modified",this.isModified(),"immediate",v);if(null!=c&&c!=g)this.checksumError(m,G,null,null,"mergeFile",c,g,b.getCurrentRevisionId());else{this.setShadowPages(p,n);if(null!=this.sync){var k=this.sync.patchRealtime(G,DrawioFile.LAST_WRITE_WINS?R:null,null,v);null==k||mxUtils.isEmptyObject(k)||G.push(k)}this.patch(G,DrawioFile.LAST_WRITE_WINS?R:null);this.inConflictState=this.invalidChecksum=!1;this.setDescriptor(b.getDescriptor());
+c,"current",g,"valid",c==g,"from",this.getCurrentRevisionId(),"to",b.getCurrentRevisionId(),"modified",this.isModified(),"immediate",u);if(null!=c&&c!=g)this.checksumError(m,G,null,null,"mergeFile",c,g,b.getCurrentRevisionId());else{this.setShadowPages(p,n);if(null!=this.sync){var k=this.sync.patchRealtime(G,DrawioFile.LAST_WRITE_WINS?R:null,null,u);null==k||mxUtils.isEmptyObject(k)||G.push(k)}this.patch(G,DrawioFile.LAST_WRITE_WINS?R:null);this.inConflictState=this.invalidChecksum=!1;this.setDescriptor(b.getDescriptor());
this.descriptorChanged();null!=d&&d()}}catch(D){this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=m&&m(D);try{var q=this.getCurrentUser(),A=null!=q?q.id:"unknown";EditorUi.logError("Error in mergeFile",null,this.getMode()+"."+this.getId(),A,D)}catch(H){}}}else throw Error(mxResources.get("notADiagramFile"));}catch(D){null!=m&&m(D)}};
-DrawioFile.prototype.getAnonymizedXmlForPages=function(b){var d=new mxCodec(mxUtils.createXmlDocument()),m=d.document.createElement("mxfile");if(null!=b)for(var n=0;n<b.length;n++){var v=d.encode(new mxGraphModel(b[n].root));"1"!=urlParams.dev&&(v=this.ui.anonymizeNode(v,!0));v.setAttribute("id",b[n].getId());b[n].viewState&&this.ui.editor.graph.saveViewState(b[n].viewState,v,!0);m.appendChild(v)}return mxUtils.getPrettyXml(m)};
+DrawioFile.prototype.getAnonymizedXmlForPages=function(b){var d=new mxCodec(mxUtils.createXmlDocument()),m=d.document.createElement("mxfile");if(null!=b)for(var n=0;n<b.length;n++){var u=d.encode(new mxGraphModel(b[n].root));"1"!=urlParams.dev&&(u=this.ui.anonymizeNode(u,!0));u.setAttribute("id",b[n].getId());b[n].viewState&&this.ui.editor.graph.saveViewState(b[n].viewState,u,!0);m.appendChild(u)}return mxUtils.getPrettyXml(m)};
DrawioFile.prototype.compressReportData=function(b,d,m){d=null!=d?d:1E4;null!=m&&null!=b&&b.length>m?b=b.substring(0,m)+"[...]":null!=b&&b.length>d&&(b=Graph.compress(b)+"\n");return b};
-DrawioFile.prototype.checksumError=function(b,d,m,n,v,p,z,G){this.stats.checksumErrors++;this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=b&&b();try{var U=this.getCurrentUser(),E=null!=U?U.id:"unknown",R=""!=this.getId()?this.getId():"("+this.ui.hashValue(this.getTitle())+")",N=JSON.stringify(d).length,c=null;if(null!=d&&1E3>N){b=[];for(m=0;m<d.length;m++)b.push(this.ui.anonymizePatch(d[m]));c=JSON.stringify(b);c=null!=c&&1E3>
+DrawioFile.prototype.checksumError=function(b,d,m,n,u,p,z,G){this.stats.checksumErrors++;this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=b&&b();try{var U=this.getCurrentUser(),E=null!=U?U.id:"unknown",R=""!=this.getId()?this.getId():"("+this.ui.hashValue(this.getTitle())+")",N=JSON.stringify(d).length,c=null;if(null!=d&&1E3>N){b=[];for(m=0;m<d.length;m++)b.push(this.ui.anonymizePatch(d[m]));c=JSON.stringify(b);c=null!=c&&1E3>
c.length?Graph.compress(c):null}this.getLatestVersion(mxUtils.bind(this,function(g){try{var k=null!=c?"report":"error",q=this.ui.getHashValueForPages(g.getShadowPages()),A="unknown",D="unknown",H="unknown";try{var K=null!=g.initialData&&0<g.initialData.length?mxUtils.parseXml(g.initialData).documentElement:null;null!=K&&(null!=K.getAttribute("version")&&(A=K.getAttribute("version")),null!=K.getAttribute("agent")&&(D=K.getAttribute("agent")),null!=K.getAttribute("type")&&(H=K.getAttribute("type")))}catch(P){}EditorUi.logError("Checksum "+
-k+" in "+v,null,this.getMode()+"."+R,"user_"+E+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+N+"-patches_"+d.length+(null!=c?"-json_"+c:"")+"-size_"+this.getSize()+(null!=p?"-expected_"+p:"")+(null!=z?"-current_"+z:"")+(null!=G?"-rev_"+this.ui.hashValue(G):"")+(null!=q?"-latest_"+q:"")+"-latestRev_"+this.ui.hashValue(g.getCurrentRevisionId())+("-latestVersion_"+A)+("-latestAgent_"+D)+("-latestType_"+H));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+R,action:v,label:"user_"+
+k+" in "+u,null,this.getMode()+"."+R,"user_"+E+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+N+"-patches_"+d.length+(null!=c?"-json_"+c:"")+"-size_"+this.getSize()+(null!=p?"-expected_"+p:"")+(null!=z?"-current_"+z:"")+(null!=G?"-rev_"+this.ui.hashValue(G):"")+(null!=q?"-latest_"+q:"")+"-latestRev_"+this.ui.hashValue(g.getCurrentRevisionId())+("-latestVersion_"+A)+("-latestAgent_"+D)+("-latestType_"+H));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+R,action:u,label:"user_"+
E+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+N+"-patches_"+d.length+"-size_"+this.getSize()})}catch(P){}}),function(){})}catch(g){}};
-DrawioFile.prototype.sendErrorReport=function(b,d,m,n){try{var v=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),p=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),z=this.getCurrentUser(),G=null!=z?this.ui.hashValue(z.id):"unknown",U=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",E=this.getTitle(),R=E.lastIndexOf(".");z="xml";0<R&&(z=E.substring(R));var N=null!=m?m.stack:Error().stack;EditorUi.sendReport(b+" "+(new Date).toISOString()+
+DrawioFile.prototype.sendErrorReport=function(b,d,m,n){try{var u=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),p=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),z=this.getCurrentUser(),G=null!=z?this.ui.hashValue(z.id):"unknown",U=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",E=this.getTitle(),R=E.lastIndexOf(".");z="xml";0<R&&(z=E.substring(R));var N=null!=m?m.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()+" ("+z+")\nUser="+G+U+"\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!=d?"\n\n"+d:
-"")+(null!=m?"\n\nError: "+m.message:"")+"\n\nStack:\n"+N+"\n\nShadow:\n"+v+"\n\nData:\n"+p,n)}catch(c){}};
-DrawioFile.prototype.reloadFile=function(b,d){try{this.stats.fileReloaded++;var m=this.ui.diffPages(this.getShadowPages(),this.isRealtime()?this.ownPages:this.ui.pages),n=this.ui.editor.graph,v=n.getSelectionCells(),p=n.getViewState(),z=this.ui.currentPage;this.getLatestVersion(mxUtils.bind(this,function(G){EditorUi.debug("DrawioFile.reloadFile",[this],"modified",this.isModified(),"rev",this.getCurrentRevisionId(),"changes",[m],"viewState",[p],"latestFile",G);null!=G?(this.ui.replaceFileData(G.getData(),
-[m]),this.ui.restoreViewState(z,p,v),this.setDescriptor(G.getDescriptor()),this.descriptorChanged(),null!=b&&b()):(this.ui.spinner.stop(),this.ui.loadFile(this.getHash(),!0,null,mxUtils.bind(this,function(){if(null==this.ui.fileLoadedError){var U=this.ui.getCurrentFile();null!=U&&(U.stats=this.stats,U.patch([m]),U.fileChanged());this.ui.restoreViewState(z,p,v);null!=b&&b()}else null!=d&&d(this.ui.fileLoadedError)}),!0))}),d)}catch(G){null!=d&&d(G)}};
+"")+(null!=m?"\n\nError: "+m.message:"")+"\n\nStack:\n"+N+"\n\nShadow:\n"+u+"\n\nData:\n"+p,n)}catch(c){}};
+DrawioFile.prototype.reloadFile=function(b,d){try{this.stats.fileReloaded++;var m=this.ui.diffPages(this.getShadowPages(),this.isRealtime()?this.ownPages:this.ui.pages),n=this.ui.editor.graph,u=n.getSelectionCells(),p=n.getViewState(),z=this.ui.currentPage;this.getLatestVersion(mxUtils.bind(this,function(G){EditorUi.debug("DrawioFile.reloadFile",[this],"modified",this.isModified(),"rev",this.getCurrentRevisionId(),"changes",[m],"viewState",[p],"latestFile",G);null!=G?(this.ui.replaceFileData(G.getData(),
+[m]),this.ui.restoreViewState(z,p,u),this.setDescriptor(G.getDescriptor()),this.descriptorChanged(),null!=b&&b()):(this.ui.spinner.stop(),this.ui.loadFile(this.getHash(),!0,null,mxUtils.bind(this,function(){if(null==this.ui.fileLoadedError){var U=this.ui.getCurrentFile();null!=U&&(U.stats=this.stats,U.patch([m]),U.fileChanged());this.ui.restoreViewState(z,p,u);null!=b&&b()}else null!=d&&d(this.ui.fileLoadedError)}),!0))}),d)}catch(G){null!=d&&d(G)}};
DrawioFile.prototype.copyFile=function(b,d){this.ui.editor.editAsNew(this.ui.getFileData(!0),this.ui.getCopyFilename(this))};DrawioFile.prototype.ignorePatches=function(b){var d=!0;if(null!=b)for(var m=0;m<b.length&&d;m++)d=d&&mxUtils.isEmptyObject(b[m]);return d};
-DrawioFile.prototype.patch=function(b,d,m,n){if(null!=b){var v=this.ui.editor.undoManager,p=v.history.slice(),z=v.indexOfNextAdd,G=this.ui.editor.graph;G.container.style.visibility="hidden";var U=this.changeListenerEnabled;this.changeListenerEnabled=m;var E=G.foldingEnabled,R=G.mathEnabled,N=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):null;this.ui.patchFileNode(b);var c=G.cellRenderer.redraw;G.cellRenderer.redraw=function(H){H.view.graph.isEditing(H.cell)&&(H.view.graph.scrollCellToVisible(H.cell),
+DrawioFile.prototype.patch=function(b,d,m,n){if(null!=b){var u=this.ui.editor.undoManager,p=u.history.slice(),z=u.indexOfNextAdd,G=this.ui.editor.graph;G.container.style.visibility="hidden";var U=this.changeListenerEnabled;this.changeListenerEnabled=m;var E=G.foldingEnabled,R=G.mathEnabled,N=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):null;this.ui.patchFileNode(b);var c=G.cellRenderer.redraw;G.cellRenderer.redraw=function(H){H.view.graph.isEditing(H.cell)&&(H.view.graph.scrollCellToVisible(H.cell),
H.view.graph.cellEditor.resize());c.apply(this,arguments)};G.model.beginUpdate();try{if(m){for(var g=this.ui.pages.slice(),k=this.ui.currentPage,q=this.ui.applyPatches(this.ui.pages,b,!0,d,this.isModified()),A=0;A<q.length;A++){var D=mxUtils.indexOf(this.ui.pages,q[A]);0>D?this.ui.insertPage(q[A],Math.min(A,this.ui.pages.length)):this.ui.movePage(D,A)}for(A=0;A<g.length;A++)0>mxUtils.indexOf(q,g[A])&&this.ui.removePage(g[A]);0<=mxUtils.indexOf(this.ui.pages,k)&&this.ui.selectPage(k,!0)}else this.ui.pages=
-this.ui.applyPatches(this.ui.pages,b,!0,d,this.isModified());0==this.ui.pages.length&&this.ui.pages.push(this.ui.createPage());0>mxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0);G.checkDefaultParent()}finally{G.container.style.visibility="",G.model.endUpdate(),G.cellRenderer.redraw=c,this.changeListenerEnabled=U,m||(v.history=p,v.indexOfNextAdd=z,v.fireEvent(new mxEventObject(mxEvent.CLEAR))),v=N!=(null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):
-null),(p=null==this.ui.currentPage||this.ui.currentPage.needsUpdate)&&R!=G.mathEnabled?(this.ui.editor.updateGraphComponents(),G.refresh()):v?G.refresh():p&&(E!=G.foldingEnabled?G.view.revalidate():G.view.validate(),G.sizeDidChange()),null!=this.sync&&this.isRealtime()&&!n&&(this.sync.snapshot=this.ui.clonePages(this.ui.pages),this.sync.snapshotVars=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):null),this.ui.editor.fireEvent(new mxEventObject("pagesPatched","patches",b))}EditorUi.debug("DrawioFile.patch",
+this.ui.applyPatches(this.ui.pages,b,!0,d,this.isModified());0==this.ui.pages.length&&this.ui.pages.push(this.ui.createPage());0>mxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0);G.checkDefaultParent()}finally{G.container.style.visibility="",G.model.endUpdate(),G.cellRenderer.redraw=c,this.changeListenerEnabled=U,m||(u.history=p,u.indexOfNextAdd=z,u.fireEvent(new mxEventObject(mxEvent.CLEAR))),u=N!=(null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):
+null),(p=null==this.ui.currentPage||this.ui.currentPage.needsUpdate)&&R!=G.mathEnabled?(this.ui.editor.updateGraphComponents(),G.refresh()):u?G.refresh():p&&(E!=G.foldingEnabled?G.view.revalidate():G.view.validate(),G.sizeDidChange()),null!=this.sync&&this.isRealtime()&&!n&&(this.sync.snapshot=this.ui.clonePages(this.ui.pages),this.sync.snapshotVars=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("vars"):null),this.ui.editor.fireEvent(new mxEventObject("pagesPatched","patches",b))}EditorUi.debug("DrawioFile.patch",
[this],"patches",b,"resolver",d,"undoable",m)}return b};
-DrawioFile.prototype.save=function(b,d,m,n,v,p){try{if(EditorUi.debug("DrawioFile.save",[this],"revision",b,"unloading",n,"overwrite",v,"manual",p,"saving",this.savingFile,"editable",this.isEditable(),"invalidChecksum",this.invalidChecksum),this.isEditable())if(!v&&this.invalidChecksum)if(null!=m)m({message:mxResources.get("checksum")});else throw Error(mxResources.get("checksum"));else this.updateFileData(),this.clearAutosave(),null!=d&&d();else if(null!=m)m({message:mxResources.get("readOnly")});
+DrawioFile.prototype.save=function(b,d,m,n,u,p){try{if(EditorUi.debug("DrawioFile.save",[this],"revision",b,"unloading",n,"overwrite",u,"manual",p,"saving",this.savingFile,"editable",this.isEditable(),"invalidChecksum",this.invalidChecksum),this.isEditable())if(!u&&this.invalidChecksum)if(null!=m)m({message:mxResources.get("checksum")});else throw Error(mxResources.get("checksum"));else this.updateFileData(),this.clearAutosave(),null!=d&&d();else if(null!=m)m({message:mxResources.get("readOnly")});
else throw Error(mxResources.get("readOnly"));}catch(z){if(null!=m)m(z);else throw z;}};DrawioFile.prototype.createData=function(){var b=this.ui.pages;if(this.isRealtime()&&(this.ui.pages=this.ownPages,null!=this.ui.currentPage)){var d=this.ui.getPageById(this.ui.currentPage.getId(),this.ownPages);null!=d&&(d.viewState=this.ui.editor.graph.getViewState(),d.needsUpdate=!0)}d=this.ui.getFileData(null,null,null,null,null,null,null,null,this,!this.isCompressed());this.ui.pages=b;return d};
DrawioFile.prototype.updateFileData=function(){null!=this.sync&&this.sync.sendLocalChanges();this.setData(this.createData());null!=this.sync&&this.sync.fileDataUpdated()};DrawioFile.prototype.isCompressedStorage=function(){return Editor.defaultCompressed};DrawioFile.prototype.isCompressed=function(){var b=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("compressed"):null;return null!=b?"false"!=b:this.isCompressedStorage()&&Editor.compressXml};
DrawioFile.prototype.setLocked=function(b){this.ui.fileNode.setAttribute("locked",b?"true":"false");this.ui.fireEvent(new mxEventObject("lockedChanged"));this.fileChanged();b&&this.ui.editor.graph.clearSelection()};DrawioFile.prototype.isLocked=function(){var b=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("locked"):null;return null!=b?"true"==b:!1};DrawioFile.prototype.saveAs=function(b,d,m){};DrawioFile.prototype.saveFile=function(b,d,m,n){};DrawioFile.prototype.getFileUrl=function(){return null};
DrawioFile.prototype.getFolderUrl=function(b){return null};DrawioFile.prototype.getPublicUrl=function(b){b(null)};DrawioFile.prototype.isRestricted=function(){return DrawioFile.RESTRICT_EXPORT};DrawioFile.prototype.isModified=function(){return this.modified};DrawioFile.prototype.getShadowModified=function(){return this.shadowModified};DrawioFile.prototype.setShadowModified=function(b){this.shadowModified=b};DrawioFile.prototype.setModified=function(b){this.shadowModified=this.modified=b};
DrawioFile.prototype.isAutosaveOptional=function(){return!1};DrawioFile.prototype.isAutosave=function(){return!this.inConflictState&&this.ui.editor.autosave};DrawioFile.prototype.isRenamable=function(){return!1};DrawioFile.prototype.rename=function(b,d,m){};DrawioFile.prototype.isMovable=function(){return!1};DrawioFile.prototype.isTrashed=function(){return!1};DrawioFile.prototype.move=function(b,d,m){};
-DrawioFile.prototype.share=function(){null!=this.ui.drive?this.ui.confirm(mxResources.get("saveItToGoogleDriveToCollaborate",[this.getTitle()]),mxUtils.bind(this,function(){this.ui.pickFolder(App.MODE_GOOGLE,mxUtils.bind(this,function(b){var d=this.ui.editor.graph,m=d.getSelectionCells(),n=d.getViewState(),v=this.ui.currentPage;this.ui.createFile(this.getTitle(),this.ui.getFileData(null,null,null,null,null,null,null,null,this),null,App.MODE_GOOGLE,null,!0,b,null,null,mxUtils.bind(this,function(){this.ui.restoreViewState(v,
+DrawioFile.prototype.share=function(){null!=this.ui.drive?this.ui.confirm(mxResources.get("saveItToGoogleDriveToCollaborate",[this.getTitle()]),mxUtils.bind(this,function(){this.ui.pickFolder(App.MODE_GOOGLE,mxUtils.bind(this,function(b){var d=this.ui.editor.graph,m=d.getSelectionCells(),n=d.getViewState(),u=this.ui.currentPage;this.ui.createFile(this.getTitle(),this.ui.getFileData(null,null,null,null,null,null,null,null,this),null,App.MODE_GOOGLE,null,!0,b,null,null,mxUtils.bind(this,function(){this.ui.restoreViewState(u,
n,m);this.ui.actions.get("share").funct()}))}))}),null,mxResources.get("saveToGoogleDrive",null,"Save to Google Drive"),mxResources.get("cancel")):this.ui.alert(mxResources.get("sharingAvailable"),null,380)};DrawioFile.prototype.getHash=function(){return""};DrawioFile.prototype.getId=function(){return""};DrawioFile.prototype.isEditable=function(){return!this.ui.editor.isChromelessView()||this.ui.editor.editable};DrawioFile.prototype.getUi=function(){return this.ui};DrawioFile.prototype.getTitle=function(){return""};
DrawioFile.prototype.setData=function(b){this.data=b;EditorUi.debug("DrawioFile.setData",[this],"data",[b])};DrawioFile.prototype.getData=function(){return this.data};DrawioFile.prototype.removeExtFonts=function(b){for(var d=0;null!=b&&d<b.length;d++){var m=b[d];null!=m.id&&0==m.id.indexOf("extFont_")&&m.parentNode.removeChild(m)}};
DrawioFile.prototype.open=function(){this.stats.opened++;var b=this.getData();null!=b&&(this.ui.setFileData(b,this),this.isModified()||this.setShadowPages(this.ui.clonePages(this.ui.pages)));this.installListeners();this.isSyncSupported()&&this.startSync();EditorUi.debug("DrawioFile.open",[this])};DrawioFile.prototype.isPolling=function(){return!1};DrawioFile.prototype.getPollingInterval=function(){return 1E4};DrawioFile.prototype.isSyncSupported=function(){return!1};
@@ -3282,32 +3286,32 @@ DrawioFile.prototype.showRefreshDialog=function(b,d,m){null==m&&(m=mxResources.g
function(){null!=b&&b();this.ui.alert(mxResources.get("copyCreated"))}),d)}),null,mxResources.get("merge"),mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get("updatingDocument"))&&this.reloadFile(mxUtils.bind(this,function(){this.ui.spinner.stop();null!=b&&b()}),mxUtils.bind(this,function(){this.ui.spinner.stop();null!=d&&d()}))}),mxResources.get("cancel"),mxUtils.bind(this,function(){this.ui.hideDialog()}),380,130))};
DrawioFile.prototype.showCopyDialog=function(b,d,m){this.invalidChecksum=this.inConflictState=!1;this.addUnsavedStatus();this.ui.showError(mxResources.get("externalChanges"),mxResources.get("fileChangedOverwriteDialog"),mxResources.get("makeCopy"),mxUtils.bind(this,function(){this.copyFile(b,d)}),null,mxResources.get("overwrite"),m,mxResources.get("cancel"),mxUtils.bind(this,function(){this.ui.hideDialog()}),380,150)};
DrawioFile.prototype.showConflictDialog=function(b,d){this.ui.showError(mxResources.get("externalChanges"),mxResources.get("fileChangedSyncDialog"),mxResources.get("overwrite"),b,null,mxResources.get("merge"),d,mxResources.get("cancel"),mxUtils.bind(this,function(){this.ui.hideDialog();this.handleFileError(null,!1)}),380,130)};
-DrawioFile.prototype.redirectToNewApp=function(b,d){this.ui.spinner.stop();if(!this.redirectDialogShowing){this.redirectDialogShowing=!0;var m=window.location.protocol+"//"+window.location.host+"/"+this.ui.getSearch("create title mode url drive splash state".split(" "))+"#"+this.getHash(),n=mxResources.get("redirectToNewApp");null!=d&&(n+=" ("+d+")");d=mxUtils.bind(this,function(){var v=mxUtils.bind(this,function(){this.redirectDialogShowing=!1;window.location.href==m?window.location.reload():window.location.href=
-m});null==b&&this.isModified()?this.ui.confirm(mxResources.get("allChangesLost"),mxUtils.bind(this,function(){this.redirectDialogShowing=!1}),v,mxResources.get("cancel"),mxResources.get("discardChanges")):v()});null!=b?this.isModified()?this.ui.confirm(n,mxUtils.bind(this,function(){this.redirectDialogShowing=!1;b()}),d,mxResources.get("cancel"),mxResources.get("discardChanges")):this.ui.confirm(n,d,mxUtils.bind(this,function(){this.redirectDialogShowing=!1;b()})):this.ui.alert(mxResources.get("redirectToNewApp"),
+DrawioFile.prototype.redirectToNewApp=function(b,d){this.ui.spinner.stop();if(!this.redirectDialogShowing){this.redirectDialogShowing=!0;var m=window.location.protocol+"//"+window.location.host+"/"+this.ui.getSearch("create title mode url drive splash state".split(" "))+"#"+this.getHash(),n=mxResources.get("redirectToNewApp");null!=d&&(n+=" ("+d+")");d=mxUtils.bind(this,function(){var u=mxUtils.bind(this,function(){this.redirectDialogShowing=!1;window.location.href==m?window.location.reload():window.location.href=
+m});null==b&&this.isModified()?this.ui.confirm(mxResources.get("allChangesLost"),mxUtils.bind(this,function(){this.redirectDialogShowing=!1}),u,mxResources.get("cancel"),mxResources.get("discardChanges")):u()});null!=b?this.isModified()?this.ui.confirm(n,mxUtils.bind(this,function(){this.redirectDialogShowing=!1;b()}),d,mxResources.get("cancel"),mxResources.get("discardChanges")):this.ui.confirm(n,d,mxUtils.bind(this,function(){this.redirectDialogShowing=!1;b()})):this.ui.alert(mxResources.get("redirectToNewApp"),
d)}};
DrawioFile.prototype.handleFileSuccess=function(b){this.ui.spinner.stop();this.ui.getCurrentFile()==this&&(EditorUi.debug("DrawioFile.handleFileSuccess",[this],"saved",b,"modified",this.isModified(),"remoteFileChanged",null==this.sync?"n/a":this.sync.remoteFileChanged),this.isModified()?this.fileChanged():b?(this.isTrashed()?this.ui.updateStatus(mxUtils.bind(this,function(){this.addAllSavedStatus(mxUtils.htmlEntities(mxResources.get(this.allChangesSavedKey))+" ("+mxUtils.htmlEntities(mxResources.get("fileMovedToTrash"))+")")})):
this.ui.updateStatus(mxUtils.bind(this,function(){this.addAllSavedStatus()})),null!=this.sync&&(this.sync.resetUpdateStatusThread(),this.sync.remoteFileChanged&&(this.sync.remoteFileChanged=!1,this.sync.fileChangedNotify()))):this.ui.clearStatus())};
DrawioFile.prototype.handleFileError=function(b,d){this.ui.spinner.stop();this.ui.getCurrentFile()==this&&(this.inConflictState?this.handleConflictError(b,d):(this.isModified()&&this.addUnsavedStatus(b),d?this.ui.handleError(b,null!=b?mxResources.get("errorSavingFile"):null):this.isModified()||this.ui.updateStatus(mxUtils.bind(this,function(){var m=this.getErrorMessage(b);null!=m&&60<m.length&&(m=m.substring(0,60)+"...");this.ui.editor.setStatus('<div class="geStatusAlert">'+mxUtils.htmlEntities(mxResources.get("error"))+
(null!=m?" ("+mxUtils.htmlEntities(m)+")":"")+"</div>")}))))};
-DrawioFile.prototype.handleConflictError=function(b,d){var m=mxUtils.bind(this,function(){this.handleFileSuccess(!0)}),n=mxUtils.bind(this,function(z){this.handleFileError(z,!0)}),v=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&(this.ui.clearStatus(),this.save(!0,m,n,null,!0,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage))}),p=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get("updatingDocument"))&&
-this.synchronizeFile(mxUtils.bind(this,function(){this.ui.spinner.stop();this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&this.save(!0,m,n,null,null,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage)}),n)});"none"==DrawioFile.SYNC?this.showCopyDialog(m,n,v):this.invalidChecksum&&d?this.showRefreshDialog(m,n,this.getErrorMessage(b)):d?this.showConflictDialog(v,p):this.addConflictStatus(this.getErrorMessage(b),mxUtils.bind(this,function(){this.ui.editor.setStatus(mxUtils.htmlEntities(mxResources.get("updatingDocument")));
+DrawioFile.prototype.handleConflictError=function(b,d){var m=mxUtils.bind(this,function(){this.handleFileSuccess(!0)}),n=mxUtils.bind(this,function(z){this.handleFileError(z,!0)}),u=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&(this.ui.clearStatus(),this.save(!0,m,n,null,!0,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage))}),p=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get("updatingDocument"))&&
+this.synchronizeFile(mxUtils.bind(this,function(){this.ui.spinner.stop();this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&this.save(!0,m,n,null,null,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage)}),n)});"none"==DrawioFile.SYNC?this.showCopyDialog(m,n,u):this.invalidChecksum&&d?this.showRefreshDialog(m,n,this.getErrorMessage(b)):d?this.showConflictDialog(u,p):this.addConflictStatus(this.getErrorMessage(b),mxUtils.bind(this,function(){this.ui.editor.setStatus(mxUtils.htmlEntities(mxResources.get("updatingDocument")));
this.synchronizeFile(m,n)}))};DrawioFile.prototype.getErrorMessage=function(b){var d=null!=b?null!=b.error?b.error.message:b.message:null;null==d&&null!=b&&b.code==App.ERROR_TIMEOUT?d=mxResources.get("timeout"):"0"==d&&(d=mxResources.get("noResponse"));return d};DrawioFile.prototype.isOverdue=function(){return null!=this.ageStart&&Date.now()-this.ageStart.getTime()>=this.ui.warnInterval};
-DrawioFile.prototype.compressionChanged=function(b){var d=null!=this.ownPages?this.ownPages:this.ui.pages;if(null!=d)for(var m=0;m<d.length;m++){var n=d[m].node;if(null!=n&&(null==this.ui.currentPage||this.ui.currentPage.getId()!=d[m].getId())){var v=n.getElementsByTagName("mxGraphModel");v=0<v.length?v[0]:null;var p=Graph.decompress(mxUtils.getNodeValue(n));b?0==p.length&&null!=v&&(EditorUi.removeChildNodes(n),mxUtils.setTextContent(n,Graph.compressNode(v)),EditorUi.debug("DrawioFile.compressionChanged",
-[this],"Page "+m+" compressed")):0<p.length&&null==v&&(EditorUi.removeChildNodes(n),n.appendChild(mxUtils.parseXml(p).documentElement),EditorUi.debug("DrawioFile.compressionChanged",[this],"Page "+m+" decompressed"))}}};DrawioFile.prototype.fileReplaced=function(b){this.inConflictState=this.invalidChecksum=!1;null!=b&&this.patch(b);null!=this.sync&&this.sync.initRealtime();EditorUi.debug("DrawioFile.fileReplaced",[this],"patches",b)};
+DrawioFile.prototype.compressionChanged=function(b){var d=null!=this.ownPages?this.ownPages:this.ui.pages;if(null!=d)for(var m=0;m<d.length;m++){var n=d[m].node;if(null!=n&&(null==this.ui.currentPage||this.ui.currentPage.getId()!=d[m].getId())){var u=n.getElementsByTagName("mxGraphModel");u=0<u.length?u[0]:null;var p=Graph.decompress(mxUtils.getNodeValue(n));b?0==p.length&&null!=u&&(EditorUi.removeChildNodes(n),mxUtils.setTextContent(n,Graph.compressNode(u)),EditorUi.debug("DrawioFile.compressionChanged",
+[this],"Page "+m+" compressed")):0<p.length&&null==u&&(EditorUi.removeChildNodes(n),n.appendChild(mxUtils.parseXml(p).documentElement),EditorUi.debug("DrawioFile.compressionChanged",[this],"Page "+m+" decompressed"))}}};DrawioFile.prototype.fileReplaced=function(b){this.inConflictState=this.invalidChecksum=!1;null!=b&&this.patch(b);null!=this.sync&&this.sync.initRealtime();EditorUi.debug("DrawioFile.fileReplaced",[this],"patches",b)};
DrawioFile.prototype.fileChanged=function(b){b=null!=b?b:!0;this.lastChanged=new Date;this.setModified(!0);EditorUi.debug("DrawioFile.fileChanged",[this],"autosaveDelay",this.autosaveDelay,"autosave",this.isAutosave(),"saving",this.savingFile);this.isAutosave()?(null!=this.savingStatusKey&&this.ui.updateStatus(mxUtils.bind(this,function(){this.addAllSavedStatus(mxUtils.htmlEntities(mxResources.get(this.savingStatusKey))+"...")})),this.ui.scheduleSanityCheck(),null==this.ageStart&&(this.ageStart=new Date),
this.autosave(this.autosaveDelay,this.maxAutosaveDelay,mxUtils.bind(this,function(d){this.ui.stopSanityCheck();null==this.autosaveThread?(this.handleFileSuccess(!0),this.ageStart=null):this.isModified()&&(this.ui.scheduleSanityCheck(),this.ageStart=this.lastChanged)}),mxUtils.bind(this,function(d){this.handleFileError(d)}))):(this.ageStart=null,this.isAutosaveOptional()&&this.ui.editor.autosave||this.inConflictState||this.addUnsavedStatus());null!=this.sync&&b&&this.sync.localFileChanged()};
DrawioFile.prototype.createSecret=function(b){var d=Editor.guid(32);Editor.enableRealtimeCache&&null!=this.sync&&!this.isOptimisticSync()?this.sync.createToken(d,mxUtils.bind(this,function(m){EditorUi.debug("DrawioFile.createSecret",[this],"secret",d,"token",m);b(d,m)}),mxUtils.bind(this,function(){b(d)})):b(d)};DrawioFile.prototype.fileSaving=function(){null!=this.sync&&this.sync.fileSaving()};
-DrawioFile.prototype.fileSaved=function(b,d,m,n,v,p,z){this.lastSaved=new Date;this.ageStart=null;this.stats.saved++;try{this.invalidChecksum=this.inConflictState=!1;p=null!=p?p:this.ui.getPagesForXml(b);try{null==this.sync||this.isOptimisticSync()?(this.setShadowPages(p),null!=this.sync&&(this.sync.lastModified=this.getLastModifiedDate(),this.sync.resetUpdateStatusThread(),this.isRealtime()&&this.sync.scheduleCleanup()),null!=m&&m()):this.sync.fileSaved(p,d,m,n,v,z)}catch(E){this.invalidChecksum=
+DrawioFile.prototype.fileSaved=function(b,d,m,n,u,p,z){this.lastSaved=new Date;this.ageStart=null;this.stats.saved++;try{this.invalidChecksum=this.inConflictState=!1;p=null!=p?p:this.ui.getPagesForXml(b);try{null==this.sync||this.isOptimisticSync()?(this.setShadowPages(p),null!=this.sync&&(this.sync.lastModified=this.getLastModifiedDate(),this.sync.resetUpdateStatusThread(),this.isRealtime()&&this.sync.scheduleCleanup()),null!=m&&m()):this.sync.fileSaved(p,d,m,n,u,z)}catch(E){this.invalidChecksum=
this.inConflictState=!0;this.descriptorChanged();null!=n&&n(E);try{var G=this.getCurrentUser(),U=null!=G?G.id:"unknown";EditorUi.logError("Error in fileSaved",null,this.getMode()+"."+this.getId(),U,E)}catch(R){}}EditorUi.debug("DrawioFile.fileSaved",[this],"savedData",[b],"desc",[d],"inConflictState",this.inConflictState,"invalidChecksum",this.invalidChecksum)}catch(E){this.descriptorChanged(),null!=n&&n(E)}};
-DrawioFile.prototype.autosave=function(b,d,m,n){null==this.lastAutosave&&(this.lastAutosave=Date.now());var v=Date.now()-this.lastAutosave<d?b:0;this.clearAutosave();var p=window.setTimeout(mxUtils.bind(this,function(){try{if(this.lastAutosave=null,this.autosaveThread==p&&(this.autosaveThread=null),EditorUi.debug("DrawioFile.autosave",[this],"thread",p,"modified",this.isModified(),"now",this.isAutosaveNow(),"saving",this.savingFile),this.isModified()&&this.isAutosaveNow()){var z=this.isAutosaveRevision();
-z&&(this.lastAutosaveRevision=(new Date).getTime());this.save(z,mxUtils.bind(this,function(G){this.autosaveCompleted();null!=m&&m(G)}),mxUtils.bind(this,function(G){null!=n&&n(G)}))}else this.isModified()||this.ui.clearStatus(),null!=m&&m(null)}catch(G){null!=n&&n(G)}}),v);this.autosaveThread=p;EditorUi.debug("DrawioFile.autosave",[this],"thread",p,"delay",b,"maxDelay",d,"actualDelay",v,"lastAutosave",this.lastAutosave,"saving",this.savingFile)};DrawioFile.prototype.isAutosaveNow=function(){return!0};
+DrawioFile.prototype.autosave=function(b,d,m,n){null==this.lastAutosave&&(this.lastAutosave=Date.now());var u=Date.now()-this.lastAutosave<d?b:0;this.clearAutosave();var p=window.setTimeout(mxUtils.bind(this,function(){try{if(this.lastAutosave=null,this.autosaveThread==p&&(this.autosaveThread=null),EditorUi.debug("DrawioFile.autosave",[this],"thread",p,"modified",this.isModified(),"now",this.isAutosaveNow(),"saving",this.savingFile),this.isModified()&&this.isAutosaveNow()){var z=this.isAutosaveRevision();
+z&&(this.lastAutosaveRevision=(new Date).getTime());this.save(z,mxUtils.bind(this,function(G){this.autosaveCompleted();null!=m&&m(G)}),mxUtils.bind(this,function(G){null!=n&&n(G)}))}else this.isModified()||this.ui.clearStatus(),null!=m&&m(null)}catch(G){null!=n&&n(G)}}),u);this.autosaveThread=p;EditorUi.debug("DrawioFile.autosave",[this],"thread",p,"delay",b,"maxDelay",d,"actualDelay",u,"lastAutosave",this.lastAutosave,"saving",this.savingFile)};DrawioFile.prototype.isAutosaveNow=function(){return!0};
DrawioFile.prototype.autosaveCompleted=function(){};DrawioFile.prototype.clearAutosave=function(){null!=this.autosaveThread&&(window.clearTimeout(this.autosaveThread),this.autosaveThread=null)};DrawioFile.prototype.isAutosaveRevision=function(){var b=(new Date).getTime();return null==this.lastAutosaveRevision||b-this.lastAutosaveRevision>this.maxAutosaveRevisionDelay};DrawioFile.prototype.descriptorChanged=function(){this.fireEvent(new mxEventObject("descriptorChanged"))};
DrawioFile.prototype.contentChanged=function(){this.fireEvent(new mxEventObject("contentChanged"))};DrawioFile.prototype.close=function(b){try{this.isAutosave()&&this.isModified()&&(this.updateFileData(),this.save(this.isAutosaveRevision(),null,null,b))}catch(d){}this.stats.closed++;this.destroy()};DrawioFile.prototype.hasSameExtension=function(b,d){if(null!=b&&null!=d){var m=b.lastIndexOf(".");b=0<m?b.substring(m):"";m=d.lastIndexOf(".");return b===(0<m?d.substring(m):"")}return b==d};
DrawioFile.prototype.removeListeners=function(){null!=this.changeListener&&(this.ui.editor.graph.model.removeListener(this.changeListener),this.ui.editor.graph.removeListener(this.changeListener),this.ui.removeListener(this.changeListener),this.changeListener=null)};DrawioFile.prototype.destroy=function(){this.clearAutosave();this.removeListeners();this.stats.destroyed++;null!=this.sync&&(this.sync.destroy(),this.sync=null)};DrawioFile.prototype.commentsSupported=function(){return!1};
-DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,d){b([])};DrawioFile.prototype.addComment=function(b,d,m){d(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,d){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,d)};LocalFile=function(b,d,m,n,v,p,z){DrawioFile.call(this,b,d);this.title=m;this.mode=n?null:App.MODE_DEVICE;this.fileHandle=v;this.desc=p;this.editable=z};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};
-LocalFile.prototype.getTitle=function(){return this.title};LocalFile.prototype.isRenamable=function(){return!0};LocalFile.prototype.isEditable=function(){return DrawioFile.prototype.isEditable.apply(this,arguments)&&(null==this.editable||this.editable)};LocalFile.prototype.setEditable=function(b){this.editable=b;this.descriptorChanged()};LocalFile.prototype.save=function(b,d,m,n,v){this.saveAs(this.title,d,m,n,v)};LocalFile.prototype.saveAs=function(b,d,m,n,v){this.saveFile(b,!1,d,m,null,n,v)};
+DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,d){b([])};DrawioFile.prototype.addComment=function(b,d,m){d(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,d){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,d)};LocalFile=function(b,d,m,n,u,p,z){DrawioFile.call(this,b,d);this.title=m;this.mode=n?null:App.MODE_DEVICE;this.fileHandle=u;this.desc=p;this.editable=z};mxUtils.extend(LocalFile,DrawioFile);LocalFile.prototype.isAutosave=function(){return null!=this.fileHandle&&!this.invalidFileHandle&&DrawioFile.prototype.isAutosave.apply(this,arguments)};LocalFile.prototype.isAutosaveOptional=function(){return null!=this.fileHandle};LocalFile.prototype.getMode=function(){return this.mode};
+LocalFile.prototype.getTitle=function(){return this.title};LocalFile.prototype.isRenamable=function(){return!0};LocalFile.prototype.isEditable=function(){return DrawioFile.prototype.isEditable.apply(this,arguments)&&(null==this.editable||this.editable)};LocalFile.prototype.setEditable=function(b){this.editable=b;this.descriptorChanged()};LocalFile.prototype.save=function(b,d,m,n,u){this.saveAs(this.title,d,m,n,u)};LocalFile.prototype.saveAs=function(b,d,m,n,u){this.saveFile(b,!1,d,m,null,n,u)};
LocalFile.prototype.getDescriptor=function(){return this.desc};LocalFile.prototype.setDescriptor=function(b){this.desc=b};LocalFile.prototype.getLatestVersion=function(b,d){null==this.fileHandle?null!=d&&d({message:mxResources.get("cannotOpenFile")}):this.ui.loadFileSystemEntry(this.fileHandle,b,d)};
-LocalFile.prototype.saveFile=function(b,d,m,n,v,p,z){b!=this.title&&(this.editable=this.desc=this.fileHandle=null);this.title=b;v||this.updateFileData();var G=Editor.useCanvasForExport&&/(\.png)$/i.test(this.getTitle());this.setShadowModified(!1);var U=this.getData(),E=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.contentChanged();null!=m&&m()}),R=mxUtils.bind(this,function(N){if(null!=this.fileHandle){if(!this.savingFile){this.savingFileTime=new Date;this.savingFile=
+LocalFile.prototype.saveFile=function(b,d,m,n,u,p,z){b!=this.title&&(this.editable=this.desc=this.fileHandle=null);this.title=b;u||this.updateFileData();var G=Editor.useCanvasForExport&&/(\.png)$/i.test(this.getTitle());this.setShadowModified(!1);var U=this.getData(),E=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.contentChanged();null!=m&&m()}),R=mxUtils.bind(this,function(N){if(null!=this.fileHandle){if(!this.savingFile){this.savingFileTime=new Date;this.savingFile=
!0;var c=mxUtils.bind(this,function(k){this.savingFile=!1;null!=n&&n({error:k})});this.saveDraft(U);this.fileHandle.createWritable().then(mxUtils.bind(this,function(k){this.fileHandle.getFile().then(mxUtils.bind(this,function(q){this.invalidFileHandle=null;EditorUi.debug("LocalFile.saveFile",[this],"desc",[this.desc],"newDesc",[q],"conflict",this.desc.lastModified!=q.lastModified);z||this.desc.lastModified==q.lastModified?k.write(G?this.ui.base64ToBlob(N,"image/png"):N).then(mxUtils.bind(this,function(){k.close().then(mxUtils.bind(this,
function(){this.fileHandle.getFile().then(mxUtils.bind(this,function(A){try{var D=this.desc;this.savingFile=!1;this.desc=A;this.fileSaved(U,D,E,c);this.removeDraft()}catch(H){c(H)}}),c)}),c)}),c):(this.inConflictState=!0,c())}),mxUtils.bind(this,function(q){this.invalidFileHandle=!0;c(q)}))}),c)}}else{if(this.ui.isOfflineApp()||this.ui.isLocalFileSave())this.ui.doSaveLocalFile(N,b,G?"image/png":"text/xml",G);else if(N.length<MAX_REQUEST_SIZE){var g=b.lastIndexOf(".");g=0<g?b.substring(g+1):"xml";
(new mxXmlRequest(SAVE_URL,"format="+g+"&xml="+encodeURIComponent(N)+"&filename="+encodeURIComponent(b)+(G?"&binary=1":""))).simulate(document,"_blank")}else this.ui.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(N)}));E()}});G?(d=this.ui.getPngFileProperties(this.ui.fileNode),this.ui.getEmbeddedPng(mxUtils.bind(this,function(N){R(N)}),n,this.ui.getCurrentFile()!=this?U:null,d.scale,d.border)):R(U)};
@@ -3495,7 +3499,7 @@ x,J){var L=mxClient.IS_FF?8192:16384;return Math.min(J,Math.min(L/l,L/x))};Edito
"antialiased");Da.style.setProperty("-moz-osx-font-smoothing","grayscale");var Ha=new Image;Ha.onload=mxUtils.bind(this,function(){try{var Ka=function(){mxClient.IS_SF?window.setTimeout(function(){Ma.drawImage(Ha,0,0);l(za,Da)},0):(Ma.drawImage(Ha,0,0),l(za,Da))},za=document.createElement("canvas"),Sa=parseInt(Da.getAttribute("width")),Oa=parseInt(Da.getAttribute("height"));S=null!=S?S:1;null!=x&&(S=Y?Math.min(1,Math.min(3*x/(4*Oa),x/Sa)):x/Sa);S=this.getMaxCanvasScale(Sa,Oa,S);Sa=Math.ceil(S*Sa);
Oa=Math.ceil(S*Oa);za.setAttribute("width",Sa);za.setAttribute("height",Oa);var Ma=za.getContext("2d");if(null!=Ua){var Na=mxUtils.getLightDarkColor(Ua);Ma.beginPath();Ma.rect(0,0,Sa,Oa);Ma.fillStyle="dark"==Ca&&"none"!=na.getAdaptiveColors()?Na.dark:Na.light;Ma.fill()}1!=S&&Ma.scale(S,S);if(Aa){var Ba=na.view,Ya=Ba.scale;Ba.scale=1;var Pa=btoa(unescape(encodeURIComponent(Ba.createSvgGrid(Ba.gridColor))));Ba.scale=Ya;Pa="data:image/svg+xml;base64,"+Pa;var sa=na.gridSize*Ba.gridSteps*S,Fa=na.getGraphBounds(),
Qa=Ba.translate.x*Ya,Ta=Ba.translate.y*Ya,y=Qa+(Fa.x-Qa)/Ya-ra,Q=Ta+(Fa.y-Ta)/Ya-ra,V=new Image;V.onload=function(){try{for(var X=-Math.round(sa-mxUtils.mod((Qa-y)*S,sa)),ia=-Math.round(sa-mxUtils.mod((Ta-Q)*S,sa));X<Sa;X+=sa)for(var la=ia;la<Oa;la+=sa)Ma.drawImage(V,X/S,la/S);Ka()}catch(qa){null!=T&&T(qa)}};V.onerror=function(X){null!=T&&T(X)};V.src=Pa}else Ka()}catch(X){null!=T&&T(X)}});Ha.onerror=function(Ka){null!=T&&T(Ka)};da&&this.graph.addSvgShadow(Da);this.graph.mathEnabled&&this.addMathCss(Da);
-var $a=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(Da,this.resolvedFontCss),Ha.src=Editor.createSvgDataUri(mxUtils.getXml(Da))}catch(Ka){null!=T&&T(Ka)}});this.embedExtFonts(mxUtils.bind(this,function(Ka){try{null!=Ka&&this.addFontCss(Da,Ka),this.loadFonts($a)}catch(za){null!=T&&T(za)}}))}catch(Ka){null!=T&&T(Ka)}}),J,ma)}catch(Da){null!=T&&T(Da)}};Editor.crcTable=[];for(var v=0;256>v;v++)for(var p=v,z=0;8>z;z++)p=1==(p&1)?3988292384^p>>>1:p>>>1,Editor.crcTable[v]=
+var $a=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(Da,this.resolvedFontCss),Ha.src=Editor.createSvgDataUri(mxUtils.getXml(Da))}catch(Ka){null!=T&&T(Ka)}});this.embedExtFonts(mxUtils.bind(this,function(Ka){try{null!=Ka&&this.addFontCss(Da,Ka),this.loadFonts($a)}catch(za){null!=T&&T(za)}}))}catch(Ka){null!=T&&T(Ka)}}),J,ma)}catch(Da){null!=T&&T(Da)}};Editor.crcTable=[];for(var u=0;256>u;u++)for(var p=u,z=0;8>z;z++)p=1==(p&1)?3988292384^p>>>1:p>>>1,Editor.crcTable[u]=
p;Editor.updateCRC=function(l,x,J,L){for(var T=0;T<L;T++)l=Editor.crcTable[(l^x.charCodeAt(J+T))&255]^l>>>8;return l};Editor.crc32=function(l){for(var x=-1,J=0;J<l.length;J++)x=x>>>8^Editor.crcTable[(x^l.charCodeAt(J))&255];return(x^-1)>>>0};Editor.writeGraphModelToPng=function(l,x,J,L,T){function Y(ma,na){var ra=Z;Z+=na;return ma.substring(ra,Z)}function aa(ma){ma=Y(ma,4);return ma.charCodeAt(3)+(ma.charCodeAt(2)<<8)+(ma.charCodeAt(1)<<16)+(ma.charCodeAt(0)<<24)}function S(ma){return String.fromCharCode(ma>>
24&255,ma>>16&255,ma>>8&255,ma&255)}l=l.substring(l.indexOf(",")+1);l=window.atob?atob(l):Base64.decode(l,!0);var Z=0;if(Y(l,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=T&&T();else if(Y(l,4),"IHDR"!=Y(l,4))null!=T&&T();else{Y(l,17);T=l.substring(0,Z);do{var da=aa(l);if("IDAT"==Y(l,4)){T=l.substring(0,Z-8);"pHYs"==x&&"dpi"==J?(J=Math.round(L/.0254),J=S(J)+S(J)+String.fromCharCode(1)):J=J+String.fromCharCode(0)+("zTXt"==x?String.fromCharCode(0):"")+L;L=4294967295;L=Editor.updateCRC(L,
x,0,4);L=Editor.updateCRC(L,J,0,J.length);T+=S(J.length)+x+J+S(L^4294967295);T+=l.substring(Z-8,l.length);break}T+=l.substring(Z-8,Z-4+da);Y(l,da);Y(l,4)}while(da);return"data:image/png;base64,"+(window.btoa?btoa(T):Base64.encode(T,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var G=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(l,x){G.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};
@@ -3593,62 +3597,62 @@ l,x.value=L,x.scale=J,x.redraw())}};var fa=Graph.prototype.refresh;Graph.prototy
Graph.prototype.handleCustomLink=function(l,x){"data:action/json,"==l.substring(0,17)&&(l=JSON.parse(l.substring(17)),null!=l.actions&&this.executeCustomActions(l.actions,null,x))};Graph.prototype.executeCustomActions=function(l,x,J){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 L=!1,T=0,Y=0,aa=mxUtils.bind(this,function(){L||(L=!0,this.model.beginUpdate())}),S=mxUtils.bind(this,function(){L&&(L=!1,this.model.endUpdate())}),Z=mxUtils.bind(this,function(){0<T&&T--;0==T&&da()}),da=mxUtils.bind(this,function(){if(Y<l.length){var ma=this.stoppingCustomActions,na=l[Y++],ra=[];if(null!=na.open)if(S(),this.isCustomLink(na.open)){if(!this.customLinkClicked(na.open,J))return}else this.openLink(na.open);null==na.wait||ma||(this.pendingExecuteNextAction=
mxUtils.bind(this,function(){this.pendingWaitThread=this.pendingExecuteNextAction=null;Z()}),T++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,""!=na.wait?parseInt(na.wait):1E3),S());null!=na.opacity&&null!=na.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(na.opacity,!0)),na.opacity.value);null!=na.fadeIn&&(T++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(na.fadeIn,!0)),0,1,Z,ma?0:na.fadeIn.delay));null!=na.fadeOut&&(T++,
-Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(na.fadeOut,!0)),1,0,Z,ma?0:na.fadeOut.delay));null!=na.wipeIn&&(ra=ra.concat(this.createWipeAnimations(this.getCellsForAction(na.wipeIn,!0),!0)));null!=na.wipeOut&&(ra=ra.concat(this.createWipeAnimations(this.getCellsForAction(na.wipeOut,!0),!1)));null!=na.toggle&&(aa(),this.toggleCells(this.getCellsForAction(na.toggle,!0)));if(null!=na.show){aa();var ta=this.getCellsForAction(na.show,!0);Graph.setOpacityForNodes(this.getNodesForCells(ta),
-1);this.setCellsVisible(ta,!0)}null!=na.hide&&(aa(),ta=this.getCellsForAction(na.hide,!0),Graph.setOpacityForNodes(this.getNodesForCells(ta),0),this.setCellsVisible(ta,!1));null!=na.toggleStyle&&null!=na.toggleStyle.key&&(aa(),this.toggleCellStyles(na.toggleStyle.key,null!=na.toggleStyle.defaultValue?na.toggleStyle.defaultValue:"0",this.getCellsForAction(na.toggleStyle,!0)));null!=na.style&&null!=na.style.key&&(aa(),this.setCellStyles(na.style.key,na.style.value,this.getCellsForAction(na.style,!0)));
-ta=[];null!=na.select&&this.isEnabled()&&(ta=this.getCellsForAction(na.select),this.setSelectionCells(ta));null!=na.highlight&&(ta=this.getCellsForAction(na.highlight),this.highlightCells(ta,na.highlight.color,na.highlight.duration,na.highlight.opacity));null!=na.scroll&&(ta=this.getCellsForAction(na.scroll));null!=na.viewbox&&this.fitWindow(na.viewbox,na.viewbox.border);0<ta.length&&this.scrollCellToVisible(ta[0]);null!=J&&null!=na.explore&&Graph.exploreFromCell(this,J,na.explore);if(null!=na.tags){if(null!=
-na.tags.toggle){var Aa=na.tags.toggle;0==Aa.length&&(Aa=this.getAllTags());for(ta=0;ta<Aa.length;ta++)this.toggleHiddenTag(Aa[ta])}Aa=null;null!=na.tags.hidden&&(null==Aa&&(Aa=[]),Aa=Aa.concat(na.tags.hidden));if(null!=na.tags.visible){null==Aa&&(Aa=[]);var Ca=this.getAllTags();for(ta=0;ta<Ca.length;ta++)0>mxUtils.indexOf(na.tags.visible,Ca[ta])&&0>mxUtils.indexOf(Aa,Ca[ta])&&Aa.push(Ca[ta])}null!=Aa&&this.setHiddenTags(Aa);this.refresh()}0<ra.length&&(T++,this.executeAnimations(ra,Z,ma?1:na.steps,
-ma?0:na.delay));0==T?da():S()}else this.stoppingCustomActions=this.executingCustomActions=!1,S(),null!=x&&x()});da()}};Graph.prototype.doUpdateCustomLinksForCell=function(l,x){var J=this.getLinkForCell(x);null!=J&&"data:action/json,"==J.substring(0,17)&&this.setLinkForCell(x,this.updateCustomLink(l,J));if(this.isHtmlLabel(x)){var L=document.createElement("div");L.innerHTML=Graph.sanitizeHtml(this.getLabel(x));for(var T=L.getElementsByTagName("a"),Y=!1,aa=0;aa<T.length;aa++)J=T[aa].getAttribute("href"),
-null!=J&&"data:action/json,"==J.substring(0,17)&&(T[aa].setAttribute("href",this.updateCustomLink(l,J)),Y=!0);Y&&this.labelChanged(x,L.innerHTML)}};Graph.prototype.updateCustomLink=function(l,x){if("data:action/json,"==x.substring(0,17))try{var J=JSON.parse(x.substring(17));null!=J.actions&&(this.updateCustomLinkActions(l,J.actions),x="data:action/json,"+JSON.stringify(J))}catch(L){}return x};Graph.prototype.updateCustomLinkActions=function(l,x){for(var J=0;J<x.length;J++){var L=x[J],T;for(T in L)this.updateCustomLinkAction(l,
-L[T],"cells"),this.updateCustomLinkAction(l,L[T],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(l,x,J){if(null!=x&&null!=x[J]){for(var L=[],T=0;T<x[J].length;T++)if("*"==x[J][T])L.push(x[J][T]);else{var Y=l[x[J][T]];null!=Y?""!=Y&&L.push(Y):L.push(x[J][T])}x[J]=L}};Graph.prototype.getCellsForAction=function(l,x){x=this.getCellsById(l.cells).concat(this.getCellsForTags(l.tags,null,x));if(null!=l.excludeCells){for(var J=[],L=0;L<x.length;L++)0>l.excludeCells.indexOf(x[L].id)&&J.push(x[L]);
-x=J}return x};Graph.prototype.getCellsById=function(l){var x=[];if(null!=l)for(var J=0;J<l.length;J++)if("*"==l[J]){var L=this.model.getRoot();x=x.concat(this.model.filterDescendants(function(Y){return Y!=L},L))}else{var T=this.model.getCell(l[J]);null!=T&&x.push(T)}return x};var ea=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(l){return ea.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(l))};Graph.prototype.setHiddenTags=function(l){this.hiddenTags=l;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};
-Graph.prototype.toggleHiddenTag=function(l){var x=mxUtils.indexOf(this.hiddenTags,l);0>x?this.hiddenTags.push(l):0<=x&&this.hiddenTags.splice(x,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.isAllTagsHidden=function(l){if(null==l||0==l.length||0==this.hiddenTags.length)return!1;l=l.split(" ");if(l.length>this.hiddenTags.length)return!1;for(var x=0;x<l.length;x++)if(0>mxUtils.indexOf(this.hiddenTags,l[x]))return!1;return!0};Graph.prototype.getCellsForTags=function(l,x,J,
-L){var T=[];if(null!=l){x=null!=x?x:this.model.getDescendants(this.model.getRoot());for(var Y=0,aa={},S=0;S<l.length;S++)0<l[S].length&&(aa[l[S]]=!0,Y++);for(S=0;S<x.length;S++)if(J&&this.model.getParent(x[S])==this.model.root||this.model.isVertex(x[S])||this.model.isEdge(x[S])){var Z=this.getTagsForCell(x[S]),da=!1;if(0<Z.length&&(Z=Z.split(" "),Z.length>=l.length)){for(var ma=da=0;ma<Z.length&&da<Y;ma++)null!=aa[Z[ma]]&&da++;da=da==Y}da&&(1!=L||this.isCellVisible(x[S]))&&T.push(x[S])}}return T};
-Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(l){for(var x=null,J=[],L=0;L<l.length;L++){var T=this.getTagsForCell(l[L]);J=[];if(0<T.length){T=T.split(" ");for(var Y={},aa=0;aa<T.length;aa++)if(null==x||null!=x[T[aa]])Y[T[aa]]=!0,J.push(T[aa]);x=Y}else return[]}return J};Graph.prototype.getTagsForCells=function(l){for(var x=[],J={},L=0;L<l.length;L++){var T=this.getTagsForCell(l[L]);
-if(0<T.length){T=T.split(" ");for(var Y=0;Y<T.length;Y++)null==J[T[Y]]&&(J[T[Y]]=!0,x.push(T[Y]))}}return x};Graph.prototype.getTagsForCell=function(l){return this.getAttributeForCell(l,"tags","")};Graph.prototype.addTagsForCells=function(l,x){if(0<l.length&&0<x.length){this.model.beginUpdate();try{for(var J=0;J<l.length;J++){for(var L=this.getTagsForCell(l[J]),T=L.split(" "),Y=!1,aa=0;aa<x.length;aa++){var S=mxUtils.trim(x[aa]);""!=S&&0>mxUtils.indexOf(T,S)&&(L=0<L.length?L+" "+S:S,Y=!0)}Y&&this.setAttributeForCell(l[J],
-"tags",L)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(l,x){if(0<l.length&&0<x.length){this.model.beginUpdate();try{for(var J=0;J<l.length;J++){var L=this.getTagsForCell(l[J]);if(0<L.length){for(var T=L.split(" "),Y=!1,aa=0;aa<x.length;aa++){var S=mxUtils.indexOf(T,x[aa]);0<=S&&(T.splice(S,1),Y=!0)}Y&&this.setAttributeForCell(l[J],"tags",T.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=function(l){this.model.beginUpdate();try{for(var x=
-0;x<l.length;x++)this.model.setVisible(l[x],!this.model.isVisible(l[x]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(l,x){this.model.beginUpdate();try{for(var J=0;J<l.length;J++)this.model.setVisible(l[J],x)}finally{this.model.endUpdate()}};Graph.prototype.highlightCells=function(l,x,J,L){for(var T=0;T<l.length;T++)this.highlightCell(l[T],x,J,L)};Graph.prototype.highlightCell=function(l,x,J,L,T){x=null!=x?x:mxConstants.DEFAULT_VALID_COLOR;J=null!=J?J:1E3;l=this.view.getState(l);
-var Y=null;null!=l&&(T=null!=T?T:4,T=Math.max(T+1,mxUtils.getValue(l.style,mxConstants.STYLE_STROKEWIDTH,1)+T),Y=new mxCellHighlight(this,x,T,!1),null!=L&&(Y.opacity=L),Y.highlight(l),window.setTimeout(function(){null!=Y.shape&&(mxUtils.setPrefixedStyle(Y.shape.node.style,"transition","all 1200ms ease-in-out"),Y.shape.node.style.opacity=0);window.setTimeout(function(){Y.destroy()},1200)},J));return Y};Graph.prototype.addSvgShadow=function(l,x,J,L){L=null!=L?L:!0;var T=Math.ceil(this.svgShadowSize*
-this.svgShadowBlur);null!=J&&J||(x=null!=x?x:l.getElementsByTagName("g")[0],null!=x&&(this.updateShadowFilter(x,!0),!isNaN(parseInt(l.getAttribute("width")))&&L&&(l.setAttribute("width",parseInt(l.getAttribute("width"))+T),l.setAttribute("height",parseInt(l.getAttribute("height"))+T),x=l.getAttribute("viewBox"),null!=x&&0<x.length&&(x=x.split(" "),3<x.length&&(w=parseFloat(x[2])+T,h=parseFloat(x[3])+T,l.setAttribute("viewBox",x[0]+" "+x[1]+" "+w+" "+h))))));return T};Graph.prototype.updateShadowFilter=
-function(l,x){mxClient.IS_SF||(x?(x=mxUtils.getLightDarkColor(this.svgShadowColor,this.svgShadowOpacity),l.style.filter="drop-shadow("+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowBlur)/100+"px "+x.cssText+")"):l.style.filter="")};Graph.prototype.setShadowVisible=function(l,x){x=null!=x?x:!0;this.shadowVisible=l;this.updateShadowFilter(this.view.getDrawPane(),this.shadowVisible);x&&this.fireEvent(new mxEventObject("shadowVisibleChanged"))};
-Graph.prototype.checkDefaultParent=function(){null==this.defaultParent||this.model.contains(this.defaultParent)||(this.setDefaultParent(null),this.selectUnlockedLayer())};Graph.prototype.selectUnlockedLayer=function(){if(null==this.defaultParent){var l=this.model.getChildCount(this.model.root),x=0;do var J=this.model.getChildAt(this.model.root,x);while(x++<l&&"1"==mxUtils.getValue(this.getCellStyle(J),"locked","0"));null!=J&&this.setDefaultParent(J)}};mxStencilRegistry.libraries.mockup=[SHAPES_PATH+
-"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries.arrows2=[SHAPES_PATH+"/mxArrows.js"];mxStencilRegistry.libraries.atlassian=[STENCIL_PATH+"/atlassian.xml",SHAPES_PATH+"/mxAtlassian.js"];mxStencilRegistry.libraries.bpmn=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.bpmn2=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.c4=[SHAPES_PATH+"/mxC4.js"];mxStencilRegistry.libraries.cisco19=
-[SHAPES_PATH+"/mxCisco19.js",STENCIL_PATH+"/cisco19.xml"];mxStencilRegistry.libraries.cisco_safe=[SHAPES_PATH+"/mxCiscoSafe.js",STENCIL_PATH+"/cisco_safe/architecture.xml",STENCIL_PATH+"/cisco_safe/business_icons.xml",STENCIL_PATH+"/cisco_safe/capability.xml",STENCIL_PATH+"/cisco_safe/design.xml",STENCIL_PATH+"/cisco_safe/iot_things_icons.xml",STENCIL_PATH+"/cisco_safe/people_places_things_icons.xml",STENCIL_PATH+"/cisco_safe/security_icons.xml",STENCIL_PATH+"/cisco_safe/technology_icons.xml",STENCIL_PATH+
-"/cisco_safe/threat.xml"];mxStencilRegistry.libraries.dfd=[SHAPES_PATH+"/mxDFD.js"];mxStencilRegistry.libraries.er=[SHAPES_PATH+"/er/mxER.js"];mxStencilRegistry.libraries.kubernetes=[SHAPES_PATH+"/mxKubernetes.js",STENCIL_PATH+"/kubernetes.xml",STENCIL_PATH+"/kubernetes2.xml"];mxStencilRegistry.libraries.flowchart=[SHAPES_PATH+"/mxFlowchart.js",STENCIL_PATH+"/flowchart.xml"];mxStencilRegistry.libraries.ios=[SHAPES_PATH+"/mockup/mxMockupiOS.js"];mxStencilRegistry.libraries.rackGeneral=[SHAPES_PATH+
-"/rack/mxRack.js",STENCIL_PATH+"/rack/general.xml"];mxStencilRegistry.libraries.rackF5=[STENCIL_PATH+"/rack/f5.xml"];mxStencilRegistry.libraries.lean_mapping=[SHAPES_PATH+"/mxLeanMap.js",STENCIL_PATH+"/lean_mapping.xml"];mxStencilRegistry.libraries.basic=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/basic.xml"];mxStencilRegistry.libraries.ios7icons=[STENCIL_PATH+"/ios7/icons.xml"];mxStencilRegistry.libraries.ios7ui=[SHAPES_PATH+"/ios7/mxIOS7Ui.js",STENCIL_PATH+"/ios7/misc.xml"];mxStencilRegistry.libraries.android=
-[SHAPES_PATH+"/mxAndroid.js",STENCIL_PATH+"/android/android.xml"];mxStencilRegistry.libraries["electrical/abstract"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/abstract.xml"];mxStencilRegistry.libraries["electrical/logic_gates"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/logic_gates.xml"];mxStencilRegistry.libraries["electrical/miscellaneous"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/miscellaneous.xml"];mxStencilRegistry.libraries["electrical/signal_sources"]=
-[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/signal_sources.xml"];mxStencilRegistry.libraries["electrical/electro-mechanical"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/electro-mechanical.xml"];mxStencilRegistry.libraries["electrical/transmission"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/transmission.xml"];mxStencilRegistry.libraries.infographic=[SHAPES_PATH+"/mxInfographic.js"];mxStencilRegistry.libraries["mockup/buttons"]=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];
-mxStencilRegistry.libraries["mockup/containers"]=[SHAPES_PATH+"/mockup/mxMockupContainers.js"];mxStencilRegistry.libraries["mockup/forms"]=[SHAPES_PATH+"/mockup/mxMockupForms.js"];mxStencilRegistry.libraries["mockup/graphics"]=[SHAPES_PATH+"/mockup/mxMockupGraphics.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[SHAPES_PATH+"/mockup/mxMockupMarkup.js"];mxStencilRegistry.libraries["mockup/misc"]=[SHAPES_PATH+"/mockup/mxMockupMisc.js",STENCIL_PATH+"/mockup/misc.xml"];
-mxStencilRegistry.libraries["mockup/navigation"]=[SHAPES_PATH+"/mockup/mxMockupNavigation.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/text"]=[SHAPES_PATH+"/mockup/mxMockupText.js"];mxStencilRegistry.libraries.floorplan=[SHAPES_PATH+"/mxFloorplan.js",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.ibmcloud=[STENCIL_PATH+"/ibm_cloud.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.networks2=[SHAPES_PATH+"/mxNetworks2.js",STENCIL_PATH+"/networks2.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"];mxStencilRegistry.libraries.salesforce=[STENCIL_PATH+"/salesforce.xml"];mxStencilRegistry.libraries.sap=[SHAPES_PATH+"/mxSAP.js",STENCIL_PATH+"/sap.xml"];mxStencilRegistry.libraries.emoji=[SHAPES_PATH+"/emoji/mxEmoji.js"];mxMarker.getPackageForType=function(l){var x=null;null!=l&&0<l.length&&("ER"==l.substring(0,
-2)?x="mxgraph.er":"sysML"==l.substring(0,5)&&(x="mxgraph.sysml"));return x};var ka=mxMarker.createMarker;mxMarker.createMarker=function(l,x,J,L,T,Y,aa,S,Z,da){if(null!=J&&null==mxMarker.markers[J]){var ma=this.getPackageForType(J);null!=ma&&mxStencilRegistry.getStencil(ma)}return ka.apply(this,arguments)};var pa=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(l,x,J,L,T,Y){"1"==mxUtils.getValue(x.style,"lineShape",null)&&l.setFillColor(mxUtils.getValue(x.style,mxConstants.STYLE_STROKECOLOR,
-this.stroke));return pa.apply(this,arguments)};PrintDialog.prototype.create=function(l,x,J,L){function T(){Ca.value=Math.max(1,Math.min(ma,Math.max(parseInt(Ca.value),parseInt(Aa.value))));Aa.value=Math.max(1,Math.min(ma,Math.min(parseInt(Ca.value),parseInt(Aa.value))))}function Y(ia){l.lastPrintPagesRadioChecked=ta.checked;l.lastPrintSelectionOnlyChecked=Ea.checked;l.lastPrintCropRadioChecked=Da.checked;l.lastPrintFitRadioChecked=Ha.checked;ta.checked&&Aa.value<Ca.value?(l.lastPrintPagesFromInput=
-Aa.value,l.lastPrintPagesToInput=Ca.value):(l.lastPrintPagesFromInput=null,l.lastPrintPagesToInput=null);Fa.value=Math.max(1,Math.min(1600,parseInt(Fa.value)))+"%";l.lastPrintZoom=Fa.value;l.lastPrintBorder=sa.value;l.lastPrintGrid=Qa.checked;l.lastPrintTransparent=y.checked;l.lastPrintInclude=Q.checked;l.lastPrintSheetsAcross=Ya.value;l.lastPrintSheetsDown=Pa.value;var la={};la.border=parseInt(sa.value);la.scale=parseInt(Fa.value)/100;la.grid=Qa.checked;la.shadows=Ta.checked;la.transparent=y.checked;
-la.includeCopy=Q.checked;la.sheetsAcross=parseInt(Ya.value);la.sheetsDown=parseInt(Pa.value);la.pagesFrom=parseInt(Aa.value);la.pagesTo=parseInt(Ca.value);la.allPages=na.checked;la.selection=Ea.checked;la.pageView=Ua.checked;la.crop=Da.checked;la.fit=Ha.checked;return null!=J?J(!ia,la):l.print(!ia,la)}var aa=l.editor.graph,S=document.createElement("div"),Z=document.createElement("h3");Z.style.width="100%";Z.style.textAlign="center";Z.style.marginTop="0px";Z.style.marginBottom="10px";mxUtils.write(Z,
-x||mxResources.get("print"));S.appendChild(Z);var da=1,ma=1;Z=document.createElement("div");Z.className="geDialogSection";Z.style.whiteSpace="nowrap";var na=document.createElement("input");na.style.marginRight="8px";na.setAttribute("type","radio");na.setAttribute("name","pages-printdialog");var ra=document.createElement("div");ra.className="geDialogCheckRow";ra.appendChild(na);x=document.createElement("span");mxUtils.write(x,mxResources.get("allPages"));mxEvent.addListener(x,"click",function(){na.checked=
-!0});ra.appendChild(x);Z.appendChild(ra);var ta=document.createElement("input");ta.style.marginRight="8px";ta.setAttribute("type","radio");ta.setAttribute("name","pages-printdialog");ra=document.createElement("div");ra.className="geDialogCheckRow";ra.appendChild(ta);x=document.createElement("span");mxUtils.write(x,mxResources.get("pages")+":");ra.appendChild(x);mxEvent.addListener(x,"click",function(){ta.checked=!0});var Aa=document.createElement("input");Aa.style.margin="0 4px";Aa.setAttribute("value",
-"1");Aa.setAttribute("type","number");Aa.setAttribute("min","1");Aa.style.width="40px";ra.appendChild(Aa);x=document.createElement("span");mxUtils.write(x,mxResources.get("to"));ra.appendChild(x);var Ca=Aa.cloneNode(!0);ra.appendChild(Ca);mxEvent.addListener(Aa,"focus",function(){ta.checked=!0});mxEvent.addListener(Ca,"focus",function(){ta.checked=!0});mxEvent.addListener(Aa,"change",T);mxEvent.addListener(Ca,"change",T);if(null!=l.pages&&(ma=l.pages.length,null!=l.currentPage))for(var xa=0;xa<ma;xa++)if(l.currentPage==
-l.pages[xa]){da=xa+1;break}null!=l.lastPrintPagesFromInput&&null!=l.lastPrintPagesToInput?(Aa.value=Math.min(ma,Math.max(1,l.lastPrintPagesFromInput)),Ca.value=Math.min(ma,Math.max(1,l.lastPrintPagesToInput))):(Aa.value=da,Ca.value=da);Aa.setAttribute("max",ma);Ca.setAttribute("max",ma);xa=mxUtils.button(mxResources.get("currentPage"),function(ia){Aa.value=da;Ca.value=da;ta.checked=!0});xa.setAttribute("title",mxResources.get("currentPage"));xa.style.marginLeft="4px";xa.style.maxWidth="100px";xa.style.overflow=
-"hidden";xa.style.textOverflow="ellipsis";xa.style.whiteSpace="nowrap";ra.appendChild(xa);Z.appendChild(ra);1<ma&&S.appendChild(Z);ra=document.createElement("div");ra.className="geDialogCheckRow";var Ea=document.createElement("input");Ea.setAttribute("name","pages-printdialog");Ea.setAttribute("type",1==ma?"checkbox":"radio");Ea.style.marginRight="8px";aa.isSelectionEmpty()&&Ea.setAttribute("disabled","disabled");aa.isEnabled()&&(ra.appendChild(Ea),x=document.createElement("span"),mxUtils.write(x,
-mxResources.get("selectionOnly")),ra.appendChild(x));aa.isEnabled()&&Z.appendChild(ra);!l.isPagesEnabled()||l.lastPrintPagesRadioChecked?ta.checked=!0:!aa.isSelectionEmpty()&&l.lastPrintSelectionOnlyChecked?Ea.checked=!0:na.checked=!0;aa.isSelectionEmpty()||mxEvent.addListener(x,"click",function(){Ea.checked=!Ea.checked});aa=document.createElement("div");aa.className="geDialogSection";Z=document.createElement("div");Z.className="geDialogCheckRow";var Ua=document.createElement("input");Ua.style.marginRight=
-"8px";Ua.setAttribute("type","radio");Ua.setAttribute("name","printSize");Z.appendChild(Ua);x=document.createElement("span");mxUtils.write(x,mxResources.get("pageView"));Z.appendChild(x);mxEvent.addListener(Z,"click",function(){Ua.checked=!0});aa.appendChild(Z);Z=document.createElement("div");Z.className="geDialogCheckRow";var Da=document.createElement("input");Da.style.marginRight="8px";Da.setAttribute("type","radio");Da.setAttribute("name","printSize");Z.appendChild(Da);x=document.createElement("span");
-mxUtils.write(x,mxResources.get("crop"));Z.appendChild(x);mxEvent.addListener(Z,"click",function(){Da.checked=!0});aa.appendChild(Z);Z=document.createElement("div");Z.className="geDialogCheckRow";Z.style.alignItems="flex-start";var Ha=document.createElement("input");Ha.style.marginTop="4px";Ha.setAttribute("type","radio");Ha.setAttribute("name","printSize");Z.appendChild(Ha);ra=document.createElement("table");ra.style.display="inline-block";ra.style.borderSpacing="0";xa=document.createElement("tbody");
-var $a=document.createElement("tr"),Ka=$a.cloneNode(!0),za=document.createElement("td"),Sa=za.cloneNode(!0),Oa=za.cloneNode(!0),Ma=za.cloneNode(!0),Na=za.cloneNode(!0),Ba=za.cloneNode(!0);za.style.textAlign="right";Ma.style.textAlign="right";mxUtils.write(za,mxResources.get("fitTo"));mxEvent.addListener(Z,"click",function(ia){mxEvent.getSource(ia)!=Ha&&(Ha.checked=!Ha.checked)});var Ya=document.createElement("input");Ya.style.margin="0 2px";Ya.style.boxSizing="border-box";Ya.setAttribute("value",
-l.lastPrintSheetsAcross||"1");Ya.setAttribute("min","1");Ya.setAttribute("type","number");Ya.style.width="40px";Sa.appendChild(Ya);x=document.createElement("span");mxUtils.write(x,mxResources.get("fitToSheetsAcross"));Oa.appendChild(x);mxUtils.write(Ma,mxResources.get("fitToBy"));var Pa=Ya.cloneNode(!0);Pa.setAttribute("value",l.lastPrintSheetsDown||"1");Na.appendChild(Pa);mxEvent.addListener(Ya,"click",function(ia){Ha.checked=!0;mxEvent.consume(ia)});mxEvent.addListener(Pa,"click",function(ia){Ha.checked=
-!0;mxEvent.consume(ia)});l.lastPrintCropRadioChecked?Da.checked=!0:l.lastPrintFitRadioChecked?Ha.checked=!0:Ua.checked=!0;x=document.createElement("span");mxUtils.write(x,mxResources.get("fitToSheetsDown"));Ba.appendChild(x);$a.appendChild(za);$a.appendChild(Sa);$a.appendChild(Oa);Ka.appendChild(Ma);Ka.appendChild(Na);Ka.appendChild(Ba);xa.appendChild($a);xa.appendChild(Ka);ra.appendChild(xa);Z.appendChild(ra);aa.appendChild(Z);S.appendChild(aa);aa=document.createElement("div");aa.className="geDialogSection";
-x=document.createElement("div");x.className="geDialogFormRow";Z=document.createElement("label");Z.className="geDialogFormLabel";mxUtils.write(Z,mxResources.get("borderWidth"));x.appendChild(Z);var sa=document.createElement("input");sa.setAttribute("type","number");sa.setAttribute("min","0");sa.style.width="40px";sa.value=null!=l.lastPrintBorder?l.lastPrintBorder:mxPrintPreview.prototype.pageMargin;x.appendChild(sa);Z=document.createElement("label");Z.style.marginLeft="12px";Z.style.marginRight="4px";
-mxUtils.write(Z,mxResources.get("zoom"));x.appendChild(Z);var Fa=document.createElement("input");Fa.style.width="60px";Fa.value=null!=l.lastPrintZoom?l.lastPrintZoom:"100%";x.appendChild(Fa);aa.appendChild(x);Z=document.createElement("div");Z.className="geDialogCheckRow";var Qa=document.createElement("input");Qa.setAttribute("type","checkbox");Qa.style.marginRight="8px";Qa.checked=null!=l.lastPrintGrid?l.lastPrintGrid:!1;Z.appendChild(Qa);x=document.createElement("span");mxUtils.write(x,mxResources.get("grid"));
-Z.appendChild(x);mxEvent.addListener(x,"click",function(ia){Qa.checked=!0;mxEvent.consume(ia)});aa.appendChild(Z);Z=document.createElement("div");Z.className="geDialogCheckRow";var Ta=document.createElement("input");Ta.setAttribute("type","checkbox");Ta.style.marginRight="8px";Ta.checked=null!=l.lastPrintShadow?l.lastPrintShadow:!1;Z.appendChild(Ta);x=document.createElement("span");mxUtils.write(x,mxResources.get("shadows"));Z.appendChild(x);l.isOffline()&&!mxClient.IS_CHROMEAPP||x.appendChild(l.createHelpIcon("https://github.com/jgraph/drawio/discussions/5136"));
-mxEvent.addListener(x,"click",function(ia){"IMG"!=mxEvent.getSource(ia).nodeName&&(Ta.checked=!0,mxEvent.consume(ia))});Editor.enableShadowOption||(Z.style.display="none");aa.appendChild(Z);var y=document.createElement("input");y.setAttribute("type","checkbox");y.style.marginRight="8px";y.checked=null!=l.lastPrintTransparent?l.lastPrintTransparent:!1;null!=J&&(Z=document.createElement("div"),Z.className="geDialogCheckRow",Z.appendChild(y),x=document.createElement("span"),mxUtils.write(x,mxResources.get("transparentBackground")),
-Z.appendChild(x),mxEvent.addListener(x,"click",function(ia){y.checked=!0;mxEvent.consume(ia)}),aa.appendChild(Z));var Q=document.createElement("input");Q.setAttribute("type","checkbox");Q.style.marginRight="8px";Q.checked=null!=l.lastPrintInclude?l.lastPrintInclude:Editor.defaultIncludeDiagram;null==J||mxClient.IS_CHROMEAPP||"draw.io"!=l.getServiceName()||(Z=document.createElement("div"),Z.className="geDialogCheckRow",Z.appendChild(Q),x=document.createElement("span"),mxUtils.write(x,mxResources.get("includeCopyOfMyDiagram")),
-Z.appendChild(x),mxEvent.addListener(x,"click",function(ia){Q.checked=!0;mxEvent.consume(ia)}),aa.appendChild(Z));S.appendChild(aa);x=document.createElement("div");x.style.marginTop="16px";x.style.textAlign="right";x.style.whiteSpace="nowrap";l.isOffline()&&!mxClient.IS_CHROMEAPP||null!=J||x.appendChild(l.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));aa=mxUtils.button(mxResources.get("cancel"),function(){l.hideDialog()});aa.className="geBtn";l.editor.cancelFirst&&x.appendChild(aa);
-PrintDialog.previewEnabled&&null==J&&(Z=mxUtils.button(mxResources.get("preview"),function(){try{l.hideDialog(),Y(!1)}catch(ia){l.handleError(ia)}}),Z.className="geBtn",x.appendChild(Z));L=null!=L?L:null!=J?"export":PrintDialog.previewEnabled?"print":"ok";L=mxUtils.button(mxResources.get(L),function(){try{l.hideDialog(),Y(!0)}catch(ia){l.handleError(ia)}});L.className="geBtn gePrimaryBtn";x.appendChild(L);l.editor.cancelFirst||x.appendChild(aa);S.appendChild(x);if(l.editor.isChromelessView()){var V=
-function(){Editor.isDarkMode()?(S.classList.add("geDarkMode"),S.style.colorScheme="dark"):(S.classList.remove("geDarkMode"),S.style.colorScheme="light")};l.addListener("darkModeChanged",V);V();var X=function(ia,la){ia=la.getProperty("dialog");S.parentNode==ia.container&&(l.editor.removeListener(X),l.removeListener(V))};l.editor.addListener("hideDialog",X)}this.container=S};var ba=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 l=this.image;null!=l&&null!=l.src&&Graph.isPageLink(l.src)&&(l={originalSrc:l.src});this.page.viewState.backgroundImage=l}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.adaptiveColors&&(this.page.viewState.adaptiveColors=this.adaptiveColors);null!=
-this.shadowVisible&&(this.page.viewState.shadowVisible=this.shadowVisible)}}else ba.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.adaptiveColors&&this.adaptiveColors!=this.ui.editor.graph.adaptiveColors&&(l=this.ui.editor.graph.adaptiveColors,this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=l?l:"default"),null!=this.shadowVisible&&this.shadowVisible!=
-this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)}})();(function(){EditorUi.VERSION="29.6.7";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;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)||/.*\.cdn\.prod\.atlassian-dev\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&
+Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(na.fadeOut,!0)),1,0,Z,ma?0:na.fadeOut.delay));null!=na.wipeIn&&(ra=ra.concat(this.createWipeAnimations(this.getCellsForAction(na.wipeIn,!0),!0)));null!=na.wipeOut&&(ra=ra.concat(this.createWipeAnimations(this.getCellsForAction(na.wipeOut,!0),!1)));null!=na.popIn&&(ra=ra.concat(this.createPopAnimations(this.getCellsForAction(na.popIn,!0),!0)));null!=na.popOut&&(ra=ra.concat(this.createPopAnimations(this.getCellsForAction(na.popOut,!0),!1)));
+null!=na.toggle&&(aa(),this.toggleCells(this.getCellsForAction(na.toggle,!0)));if(null!=na.show){aa();var ta=this.getCellsForAction(na.show,!0);Graph.setOpacityForNodes(this.getNodesForCells(ta),1);this.setCellsVisible(ta,!0)}null!=na.hide&&(aa(),ta=this.getCellsForAction(na.hide,!0),Graph.setOpacityForNodes(this.getNodesForCells(ta),0),this.setCellsVisible(ta,!1));null!=na.toggleStyle&&null!=na.toggleStyle.key&&(aa(),this.toggleCellStyles(na.toggleStyle.key,null!=na.toggleStyle.defaultValue?na.toggleStyle.defaultValue:
+"0",this.getCellsForAction(na.toggleStyle,!0)));null!=na.style&&null!=na.style.key&&(aa(),this.setCellStyles(na.style.key,na.style.value,this.getCellsForAction(na.style,!0)));ta=[];null!=na.select&&this.isEnabled()&&(ta=this.getCellsForAction(na.select),this.setSelectionCells(ta));null!=na.highlight&&(ta=this.getCellsForAction(na.highlight),this.highlightCells(ta,na.highlight.color,na.highlight.duration,na.highlight.opacity));null!=na.scroll&&(ta=this.getCellsForAction(na.scroll));null!=na.viewbox&&
+this.fitWindow(na.viewbox,na.viewbox.border);0<ta.length&&this.scrollCellToVisible(ta[0]);null!=J&&null!=na.explore&&Graph.exploreFromCell(this,J,na.explore);if(null!=na.tags){if(null!=na.tags.toggle){var Aa=na.tags.toggle;0==Aa.length&&(Aa=this.getAllTags());for(ta=0;ta<Aa.length;ta++)this.toggleHiddenTag(Aa[ta])}Aa=null;null!=na.tags.hidden&&(null==Aa&&(Aa=[]),Aa=Aa.concat(na.tags.hidden));if(null!=na.tags.visible){null==Aa&&(Aa=[]);var Ca=this.getAllTags();for(ta=0;ta<Ca.length;ta++)0>mxUtils.indexOf(na.tags.visible,
+Ca[ta])&&0>mxUtils.indexOf(Aa,Ca[ta])&&Aa.push(Ca[ta])}null!=Aa&&this.setHiddenTags(Aa);this.refresh()}0<ra.length&&(T++,this.executeAnimations(ra,Z,ma?1:na.steps,ma?0:na.delay));0==T?da():S()}else this.stoppingCustomActions=this.executingCustomActions=!1,S(),null!=x&&x()});da()}};Graph.prototype.doUpdateCustomLinksForCell=function(l,x){var J=this.getLinkForCell(x);null!=J&&"data:action/json,"==J.substring(0,17)&&this.setLinkForCell(x,this.updateCustomLink(l,J));if(this.isHtmlLabel(x)){var L=document.createElement("div");
+L.innerHTML=Graph.sanitizeHtml(this.getLabel(x));for(var T=L.getElementsByTagName("a"),Y=!1,aa=0;aa<T.length;aa++)J=T[aa].getAttribute("href"),null!=J&&"data:action/json,"==J.substring(0,17)&&(T[aa].setAttribute("href",this.updateCustomLink(l,J)),Y=!0);Y&&this.labelChanged(x,L.innerHTML)}};Graph.prototype.updateCustomLink=function(l,x){if("data:action/json,"==x.substring(0,17))try{var J=JSON.parse(x.substring(17));null!=J.actions&&(this.updateCustomLinkActions(l,J.actions),x="data:action/json,"+JSON.stringify(J))}catch(L){}return x};
+Graph.prototype.updateCustomLinkActions=function(l,x){for(var J=0;J<x.length;J++){var L=x[J],T;for(T in L)this.updateCustomLinkAction(l,L[T],"cells"),this.updateCustomLinkAction(l,L[T],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(l,x,J){if(null!=x&&null!=x[J]){for(var L=[],T=0;T<x[J].length;T++)if("*"==x[J][T])L.push(x[J][T]);else{var Y=l[x[J][T]];null!=Y?""!=Y&&L.push(Y):L.push(x[J][T])}x[J]=L}};Graph.prototype.getCellsForAction=function(l,x){x=this.getCellsById(l.cells).concat(this.getCellsForTags(l.tags,
+null,x));if(null!=l.excludeCells){for(var J=[],L=0;L<x.length;L++)0>l.excludeCells.indexOf(x[L].id)&&J.push(x[L]);x=J}return x};Graph.prototype.getCellsById=function(l){var x=[];if(null!=l)for(var J=0;J<l.length;J++)if("*"==l[J]){var L=this.model.getRoot();x=x.concat(this.model.filterDescendants(function(Y){return Y!=L},L))}else{var T=this.model.getCell(l[J]);null!=T&&x.push(T)}return x};var ea=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(l){return ea.apply(this,arguments)&&
+!this.isAllTagsHidden(this.getTagsForCell(l))};Graph.prototype.setHiddenTags=function(l){this.hiddenTags=l;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(l){var x=mxUtils.indexOf(this.hiddenTags,l);0>x?this.hiddenTags.push(l):0<=x&&this.hiddenTags.splice(x,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.isAllTagsHidden=function(l){if(null==l||0==l.length||0==this.hiddenTags.length)return!1;l=l.split(" ");if(l.length>this.hiddenTags.length)return!1;
+for(var x=0;x<l.length;x++)if(0>mxUtils.indexOf(this.hiddenTags,l[x]))return!1;return!0};Graph.prototype.getCellsForTags=function(l,x,J,L){var T=[];if(null!=l){x=null!=x?x:this.model.getDescendants(this.model.getRoot());for(var Y=0,aa={},S=0;S<l.length;S++)0<l[S].length&&(aa[l[S]]=!0,Y++);for(S=0;S<x.length;S++)if(J&&this.model.getParent(x[S])==this.model.root||this.model.isVertex(x[S])||this.model.isEdge(x[S])){var Z=this.getTagsForCell(x[S]),da=!1;if(0<Z.length&&(Z=Z.split(" "),Z.length>=l.length)){for(var ma=
+da=0;ma<Z.length&&da<Y;ma++)null!=aa[Z[ma]]&&da++;da=da==Y}da&&(1!=L||this.isCellVisible(x[S]))&&T.push(x[S])}}return T};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(l){for(var x=null,J=[],L=0;L<l.length;L++){var T=this.getTagsForCell(l[L]);J=[];if(0<T.length){T=T.split(" ");for(var Y={},aa=0;aa<T.length;aa++)if(null==x||null!=x[T[aa]])Y[T[aa]]=!0,J.push(T[aa]);x=Y}else return[]}return J};
+Graph.prototype.getTagsForCells=function(l){for(var x=[],J={},L=0;L<l.length;L++){var T=this.getTagsForCell(l[L]);if(0<T.length){T=T.split(" ");for(var Y=0;Y<T.length;Y++)null==J[T[Y]]&&(J[T[Y]]=!0,x.push(T[Y]))}}return x};Graph.prototype.getTagsForCell=function(l){return this.getAttributeForCell(l,"tags","")};Graph.prototype.addTagsForCells=function(l,x){if(0<l.length&&0<x.length){this.model.beginUpdate();try{for(var J=0;J<l.length;J++){for(var L=this.getTagsForCell(l[J]),T=L.split(" "),Y=!1,aa=
+0;aa<x.length;aa++){var S=mxUtils.trim(x[aa]);""!=S&&0>mxUtils.indexOf(T,S)&&(L=0<L.length?L+" "+S:S,Y=!0)}Y&&this.setAttributeForCell(l[J],"tags",L)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(l,x){if(0<l.length&&0<x.length){this.model.beginUpdate();try{for(var J=0;J<l.length;J++){var L=this.getTagsForCell(l[J]);if(0<L.length){for(var T=L.split(" "),Y=!1,aa=0;aa<x.length;aa++){var S=mxUtils.indexOf(T,x[aa]);0<=S&&(T.splice(S,1),Y=!0)}Y&&this.setAttributeForCell(l[J],
+"tags",T.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=function(l){this.model.beginUpdate();try{for(var x=0;x<l.length;x++)this.model.setVisible(l[x],!this.model.isVisible(l[x]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(l,x){this.model.beginUpdate();try{for(var J=0;J<l.length;J++)this.model.setVisible(l[J],x)}finally{this.model.endUpdate()}};Graph.prototype.highlightCells=function(l,x,J,L){for(var T=0;T<l.length;T++)this.highlightCell(l[T],
+x,J,L)};Graph.prototype.highlightCell=function(l,x,J,L,T){x=null!=x?x:mxConstants.DEFAULT_VALID_COLOR;J=null!=J?J:1E3;l=this.view.getState(l);var Y=null;null!=l&&(T=null!=T?T:4,T=Math.max(T+1,mxUtils.getValue(l.style,mxConstants.STYLE_STROKEWIDTH,1)+T),Y=new mxCellHighlight(this,x,T,!1),null!=L&&(Y.opacity=L),Y.highlight(l),window.setTimeout(function(){null!=Y.shape&&(mxUtils.setPrefixedStyle(Y.shape.node.style,"transition","all 1200ms ease-in-out"),Y.shape.node.style.opacity=0);window.setTimeout(function(){Y.destroy()},
+1200)},J));return Y};Graph.prototype.addSvgShadow=function(l,x,J,L){L=null!=L?L:!0;var T=Math.ceil(this.svgShadowSize*this.svgShadowBlur);null!=J&&J||(x=null!=x?x:l.getElementsByTagName("g")[0],null!=x&&(this.updateShadowFilter(x,!0),!isNaN(parseInt(l.getAttribute("width")))&&L&&(l.setAttribute("width",parseInt(l.getAttribute("width"))+T),l.setAttribute("height",parseInt(l.getAttribute("height"))+T),x=l.getAttribute("viewBox"),null!=x&&0<x.length&&(x=x.split(" "),3<x.length&&(w=parseFloat(x[2])+T,
+h=parseFloat(x[3])+T,l.setAttribute("viewBox",x[0]+" "+x[1]+" "+w+" "+h))))));return T};Graph.prototype.updateShadowFilter=function(l,x){mxClient.IS_SF||(x?(x=mxUtils.getLightDarkColor(this.svgShadowColor,this.svgShadowOpacity),l.style.filter="drop-shadow("+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowSize)/100+"px "+Math.round(100*this.svgShadowBlur)/100+"px "+x.cssText+")"):l.style.filter="")};Graph.prototype.setShadowVisible=function(l,x){x=null!=x?x:!0;this.shadowVisible=
+l;this.updateShadowFilter(this.view.getDrawPane(),this.shadowVisible);x&&this.fireEvent(new mxEventObject("shadowVisibleChanged"))};Graph.prototype.checkDefaultParent=function(){null==this.defaultParent||this.model.contains(this.defaultParent)||(this.setDefaultParent(null),this.selectUnlockedLayer())};Graph.prototype.selectUnlockedLayer=function(){if(null==this.defaultParent){var l=this.model.getChildCount(this.model.root),x=0;do var J=this.model.getChildAt(this.model.root,x);while(x++<l&&"1"==mxUtils.getValue(this.getCellStyle(J),
+"locked","0"));null!=J&&this.setDefaultParent(J)}};mxStencilRegistry.libraries.mockup=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries.arrows2=[SHAPES_PATH+"/mxArrows.js"];mxStencilRegistry.libraries.atlassian=[STENCIL_PATH+"/atlassian.xml",SHAPES_PATH+"/mxAtlassian.js"];mxStencilRegistry.libraries.bpmn=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.bpmn2=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bpmn.xml",
+SHAPES_PATH+"/bpmn/mxBpmnShape2.js"];mxStencilRegistry.libraries.c4=[SHAPES_PATH+"/mxC4.js"];mxStencilRegistry.libraries.cisco19=[SHAPES_PATH+"/mxCisco19.js",STENCIL_PATH+"/cisco19.xml"];mxStencilRegistry.libraries.cisco_safe=[SHAPES_PATH+"/mxCiscoSafe.js",STENCIL_PATH+"/cisco_safe/architecture.xml",STENCIL_PATH+"/cisco_safe/business_icons.xml",STENCIL_PATH+"/cisco_safe/capability.xml",STENCIL_PATH+"/cisco_safe/design.xml",STENCIL_PATH+"/cisco_safe/iot_things_icons.xml",STENCIL_PATH+"/cisco_safe/people_places_things_icons.xml",
+STENCIL_PATH+"/cisco_safe/security_icons.xml",STENCIL_PATH+"/cisco_safe/technology_icons.xml",STENCIL_PATH+"/cisco_safe/threat.xml"];mxStencilRegistry.libraries.dfd=[SHAPES_PATH+"/mxDFD.js"];mxStencilRegistry.libraries.er=[SHAPES_PATH+"/er/mxER.js"];mxStencilRegistry.libraries.kubernetes=[SHAPES_PATH+"/mxKubernetes.js",STENCIL_PATH+"/kubernetes.xml",STENCIL_PATH+"/kubernetes2.xml"];mxStencilRegistry.libraries.flowchart=[SHAPES_PATH+"/mxFlowchart.js",STENCIL_PATH+"/flowchart.xml"];mxStencilRegistry.libraries.ios=
+[SHAPES_PATH+"/mockup/mxMockupiOS.js"];mxStencilRegistry.libraries.rackGeneral=[SHAPES_PATH+"/rack/mxRack.js",STENCIL_PATH+"/rack/general.xml"];mxStencilRegistry.libraries.rackF5=[STENCIL_PATH+"/rack/f5.xml"];mxStencilRegistry.libraries.lean_mapping=[SHAPES_PATH+"/mxLeanMap.js",STENCIL_PATH+"/lean_mapping.xml"];mxStencilRegistry.libraries.basic=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/basic.xml"];mxStencilRegistry.libraries.ios7icons=[STENCIL_PATH+"/ios7/icons.xml"];mxStencilRegistry.libraries.ios7ui=
+[SHAPES_PATH+"/ios7/mxIOS7Ui.js",STENCIL_PATH+"/ios7/misc.xml"];mxStencilRegistry.libraries.android=[SHAPES_PATH+"/mxAndroid.js",STENCIL_PATH+"/android/android.xml"];mxStencilRegistry.libraries["electrical/abstract"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/abstract.xml"];mxStencilRegistry.libraries["electrical/logic_gates"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/logic_gates.xml"];mxStencilRegistry.libraries["electrical/miscellaneous"]=[SHAPES_PATH+"/mxElectrical.js",
+STENCIL_PATH+"/electrical/miscellaneous.xml"];mxStencilRegistry.libraries["electrical/signal_sources"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/signal_sources.xml"];mxStencilRegistry.libraries["electrical/electro-mechanical"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/electro-mechanical.xml"];mxStencilRegistry.libraries["electrical/transmission"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/transmission.xml"];mxStencilRegistry.libraries.infographic=[SHAPES_PATH+
+"/mxInfographic.js"];mxStencilRegistry.libraries["mockup/buttons"]=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries["mockup/containers"]=[SHAPES_PATH+"/mockup/mxMockupContainers.js"];mxStencilRegistry.libraries["mockup/forms"]=[SHAPES_PATH+"/mockup/mxMockupForms.js"];mxStencilRegistry.libraries["mockup/graphics"]=[SHAPES_PATH+"/mockup/mxMockupGraphics.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[SHAPES_PATH+"/mockup/mxMockupMarkup.js"];mxStencilRegistry.libraries["mockup/misc"]=
+[SHAPES_PATH+"/mockup/mxMockupMisc.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/navigation"]=[SHAPES_PATH+"/mockup/mxMockupNavigation.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/text"]=[SHAPES_PATH+"/mockup/mxMockupText.js"];mxStencilRegistry.libraries.floorplan=[SHAPES_PATH+"/mxFloorplan.js",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.ibmcloud=[STENCIL_PATH+"/ibm_cloud.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.networks2=[SHAPES_PATH+"/mxNetworks2.js",STENCIL_PATH+"/networks2.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"];mxStencilRegistry.libraries.salesforce=[STENCIL_PATH+"/salesforce.xml"];mxStencilRegistry.libraries.sap=[SHAPES_PATH+"/mxSAP.js",STENCIL_PATH+"/sap.xml"];mxStencilRegistry.libraries.emoji=[SHAPES_PATH+"/emoji/mxEmoji.js"];mxMarker.getPackageForType=
+function(l){var x=null;null!=l&&0<l.length&&("ER"==l.substring(0,2)?x="mxgraph.er":"sysML"==l.substring(0,5)&&(x="mxgraph.sysml"));return x};var ka=mxMarker.createMarker;mxMarker.createMarker=function(l,x,J,L,T,Y,aa,S,Z,da){if(null!=J&&null==mxMarker.markers[J]){var ma=this.getPackageForType(J);null!=ma&&mxStencilRegistry.getStencil(ma)}return ka.apply(this,arguments)};var pa=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(l,x,J,L,T,Y){"1"==mxUtils.getValue(x.style,"lineShape",
+null)&&l.setFillColor(mxUtils.getValue(x.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return pa.apply(this,arguments)};PrintDialog.prototype.create=function(l,x,J,L){function T(){Ca.value=Math.max(1,Math.min(ma,Math.max(parseInt(Ca.value),parseInt(Aa.value))));Aa.value=Math.max(1,Math.min(ma,Math.min(parseInt(Ca.value),parseInt(Aa.value))))}function Y(ia){l.lastPrintPagesRadioChecked=ta.checked;l.lastPrintSelectionOnlyChecked=Ea.checked;l.lastPrintCropRadioChecked=Da.checked;l.lastPrintFitRadioChecked=
+Ha.checked;ta.checked&&Aa.value<Ca.value?(l.lastPrintPagesFromInput=Aa.value,l.lastPrintPagesToInput=Ca.value):(l.lastPrintPagesFromInput=null,l.lastPrintPagesToInput=null);Fa.value=Math.max(1,Math.min(1600,parseInt(Fa.value)))+"%";l.lastPrintZoom=Fa.value;l.lastPrintBorder=sa.value;l.lastPrintGrid=Qa.checked;l.lastPrintTransparent=y.checked;l.lastPrintInclude=Q.checked;l.lastPrintSheetsAcross=Ya.value;l.lastPrintSheetsDown=Pa.value;var la={};la.border=parseInt(sa.value);la.scale=parseInt(Fa.value)/
+100;la.grid=Qa.checked;la.shadows=Ta.checked;la.transparent=y.checked;la.includeCopy=Q.checked;la.sheetsAcross=parseInt(Ya.value);la.sheetsDown=parseInt(Pa.value);la.pagesFrom=parseInt(Aa.value);la.pagesTo=parseInt(Ca.value);la.allPages=na.checked;la.selection=Ea.checked;la.pageView=Ua.checked;la.crop=Da.checked;la.fit=Ha.checked;return null!=J?J(!ia,la):l.print(!ia,la)}var aa=l.editor.graph,S=document.createElement("div"),Z=document.createElement("h3");Z.style.width="100%";Z.style.textAlign="center";
+Z.style.marginTop="0px";Z.style.marginBottom="10px";mxUtils.write(Z,x||mxResources.get("print"));S.appendChild(Z);var da=1,ma=1;Z=document.createElement("div");Z.className="geDialogSection";Z.style.whiteSpace="nowrap";var na=document.createElement("input");na.style.marginRight="8px";na.setAttribute("type","radio");na.setAttribute("name","pages-printdialog");var ra=document.createElement("div");ra.className="geDialogCheckRow";ra.appendChild(na);x=document.createElement("span");mxUtils.write(x,mxResources.get("allPages"));
+mxEvent.addListener(x,"click",function(){na.checked=!0});ra.appendChild(x);Z.appendChild(ra);var ta=document.createElement("input");ta.style.marginRight="8px";ta.setAttribute("type","radio");ta.setAttribute("name","pages-printdialog");ra=document.createElement("div");ra.className="geDialogCheckRow";ra.appendChild(ta);x=document.createElement("span");mxUtils.write(x,mxResources.get("pages")+":");ra.appendChild(x);mxEvent.addListener(x,"click",function(){ta.checked=!0});var Aa=document.createElement("input");
+Aa.style.margin="0 4px";Aa.setAttribute("value","1");Aa.setAttribute("type","number");Aa.setAttribute("min","1");Aa.style.width="40px";ra.appendChild(Aa);x=document.createElement("span");mxUtils.write(x,mxResources.get("to"));ra.appendChild(x);var Ca=Aa.cloneNode(!0);ra.appendChild(Ca);mxEvent.addListener(Aa,"focus",function(){ta.checked=!0});mxEvent.addListener(Ca,"focus",function(){ta.checked=!0});mxEvent.addListener(Aa,"change",T);mxEvent.addListener(Ca,"change",T);if(null!=l.pages&&(ma=l.pages.length,
+null!=l.currentPage))for(var xa=0;xa<ma;xa++)if(l.currentPage==l.pages[xa]){da=xa+1;break}null!=l.lastPrintPagesFromInput&&null!=l.lastPrintPagesToInput?(Aa.value=Math.min(ma,Math.max(1,l.lastPrintPagesFromInput)),Ca.value=Math.min(ma,Math.max(1,l.lastPrintPagesToInput))):(Aa.value=da,Ca.value=da);Aa.setAttribute("max",ma);Ca.setAttribute("max",ma);xa=mxUtils.button(mxResources.get("currentPage"),function(ia){Aa.value=da;Ca.value=da;ta.checked=!0});xa.setAttribute("title",mxResources.get("currentPage"));
+xa.style.marginLeft="4px";xa.style.maxWidth="100px";xa.style.overflow="hidden";xa.style.textOverflow="ellipsis";xa.style.whiteSpace="nowrap";ra.appendChild(xa);Z.appendChild(ra);1<ma&&S.appendChild(Z);ra=document.createElement("div");ra.className="geDialogCheckRow";var Ea=document.createElement("input");Ea.setAttribute("name","pages-printdialog");Ea.setAttribute("type",1==ma?"checkbox":"radio");Ea.style.marginRight="8px";aa.isSelectionEmpty()&&Ea.setAttribute("disabled","disabled");aa.isEnabled()&&
+(ra.appendChild(Ea),x=document.createElement("span"),mxUtils.write(x,mxResources.get("selectionOnly")),ra.appendChild(x));aa.isEnabled()&&(1<ma?Z.appendChild(ra):(Z=document.createElement("div"),Z.className="geDialogSection",Z.appendChild(ra),S.appendChild(Z)));!l.isPagesEnabled()||l.lastPrintPagesRadioChecked?ta.checked=!0:!aa.isSelectionEmpty()&&l.lastPrintSelectionOnlyChecked?Ea.checked=!0:na.checked=!0;aa.isSelectionEmpty()||mxEvent.addListener(x,"click",function(){Ea.checked=!Ea.checked});aa=
+document.createElement("div");aa.className="geDialogSection";Z=document.createElement("div");Z.className="geDialogCheckRow";var Ua=document.createElement("input");Ua.style.marginRight="8px";Ua.setAttribute("type","radio");Ua.setAttribute("name","printSize");Z.appendChild(Ua);x=document.createElement("span");mxUtils.write(x,mxResources.get("pageView"));Z.appendChild(x);mxEvent.addListener(Z,"click",function(){Ua.checked=!0});aa.appendChild(Z);Z=document.createElement("div");Z.className="geDialogCheckRow";
+var Da=document.createElement("input");Da.style.marginRight="8px";Da.setAttribute("type","radio");Da.setAttribute("name","printSize");Z.appendChild(Da);x=document.createElement("span");mxUtils.write(x,mxResources.get("crop"));Z.appendChild(x);mxEvent.addListener(Z,"click",function(){Da.checked=!0});aa.appendChild(Z);Z=document.createElement("div");Z.className="geDialogCheckRow";Z.style.alignItems="flex-start";var Ha=document.createElement("input");Ha.style.marginTop="4px";Ha.setAttribute("type","radio");
+Ha.setAttribute("name","printSize");Z.appendChild(Ha);ra=document.createElement("table");ra.style.display="inline-block";ra.style.borderSpacing="0";xa=document.createElement("tbody");var $a=document.createElement("tr"),Ka=$a.cloneNode(!0),za=document.createElement("td"),Sa=za.cloneNode(!0),Oa=za.cloneNode(!0),Ma=za.cloneNode(!0),Na=za.cloneNode(!0),Ba=za.cloneNode(!0);za.style.textAlign="right";Ma.style.textAlign="right";mxUtils.write(za,mxResources.get("fitTo"));mxEvent.addListener(Z,"click",function(ia){mxEvent.getSource(ia)!=
+Ha&&(Ha.checked=!Ha.checked)});var Ya=document.createElement("input");Ya.style.margin="0 2px";Ya.style.boxSizing="border-box";Ya.setAttribute("value",l.lastPrintSheetsAcross||"1");Ya.setAttribute("min","1");Ya.setAttribute("type","number");Ya.style.width="40px";Sa.appendChild(Ya);x=document.createElement("span");mxUtils.write(x,mxResources.get("fitToSheetsAcross"));Oa.appendChild(x);mxUtils.write(Ma,mxResources.get("fitToBy"));var Pa=Ya.cloneNode(!0);Pa.setAttribute("value",l.lastPrintSheetsDown||
+"1");Na.appendChild(Pa);mxEvent.addListener(Ya,"click",function(ia){Ha.checked=!0;mxEvent.consume(ia)});mxEvent.addListener(Pa,"click",function(ia){Ha.checked=!0;mxEvent.consume(ia)});l.lastPrintCropRadioChecked?Da.checked=!0:l.lastPrintFitRadioChecked?Ha.checked=!0:Ua.checked=!0;x=document.createElement("span");mxUtils.write(x,mxResources.get("fitToSheetsDown"));Ba.appendChild(x);$a.appendChild(za);$a.appendChild(Sa);$a.appendChild(Oa);Ka.appendChild(Ma);Ka.appendChild(Na);Ka.appendChild(Ba);xa.appendChild($a);
+xa.appendChild(Ka);ra.appendChild(xa);Z.appendChild(ra);aa.appendChild(Z);S.appendChild(aa);aa=document.createElement("div");aa.className="geDialogSection";x=document.createElement("div");x.className="geDialogFormRow";Z=document.createElement("label");Z.className="geDialogFormLabel";mxUtils.write(Z,mxResources.get("borderWidth"));x.appendChild(Z);var sa=document.createElement("input");sa.setAttribute("type","number");sa.setAttribute("min","0");sa.style.width="40px";sa.value=null!=l.lastPrintBorder?
+l.lastPrintBorder:mxPrintPreview.prototype.pageMargin;x.appendChild(sa);Z=document.createElement("label");Z.style.marginLeft="12px";Z.style.marginRight="4px";mxUtils.write(Z,mxResources.get("zoom"));x.appendChild(Z);var Fa=document.createElement("input");Fa.style.width="60px";Fa.value=null!=l.lastPrintZoom?l.lastPrintZoom:"100%";x.appendChild(Fa);aa.appendChild(x);Z=document.createElement("div");Z.className="geDialogCheckRow";var Qa=document.createElement("input");Qa.setAttribute("type","checkbox");
+Qa.style.marginRight="8px";Qa.checked=null!=l.lastPrintGrid?l.lastPrintGrid:!1;Z.appendChild(Qa);x=document.createElement("span");mxUtils.write(x,mxResources.get("grid"));Z.appendChild(x);mxEvent.addListener(x,"click",function(ia){Qa.checked=!0;mxEvent.consume(ia)});aa.appendChild(Z);Z=document.createElement("div");Z.className="geDialogCheckRow";var Ta=document.createElement("input");Ta.setAttribute("type","checkbox");Ta.style.marginRight="8px";Ta.checked=null!=l.lastPrintShadow?l.lastPrintShadow:
+!1;Z.appendChild(Ta);x=document.createElement("span");mxUtils.write(x,mxResources.get("shadows"));Z.appendChild(x);l.isOffline()&&!mxClient.IS_CHROMEAPP||x.appendChild(l.createHelpIcon("https://github.com/jgraph/drawio/discussions/5136"));mxEvent.addListener(x,"click",function(ia){"IMG"!=mxEvent.getSource(ia).nodeName&&(Ta.checked=!0,mxEvent.consume(ia))});Editor.enableShadowOption||(Z.style.display="none");aa.appendChild(Z);var y=document.createElement("input");y.setAttribute("type","checkbox");
+y.style.marginRight="8px";y.checked=null!=l.lastPrintTransparent?l.lastPrintTransparent:!1;null!=J&&(Z=document.createElement("div"),Z.className="geDialogCheckRow",Z.appendChild(y),x=document.createElement("span"),mxUtils.write(x,mxResources.get("transparentBackground")),Z.appendChild(x),mxEvent.addListener(x,"click",function(ia){y.checked=!0;mxEvent.consume(ia)}),aa.appendChild(Z));var Q=document.createElement("input");Q.setAttribute("type","checkbox");Q.style.marginRight="8px";Q.checked=null!=l.lastPrintInclude?
+l.lastPrintInclude:Editor.defaultIncludeDiagram;null==J||mxClient.IS_CHROMEAPP||"draw.io"!=l.getServiceName()||(Z=document.createElement("div"),Z.className="geDialogCheckRow",Z.appendChild(Q),x=document.createElement("span"),mxUtils.write(x,mxResources.get("includeCopyOfMyDiagram")),Z.appendChild(x),mxEvent.addListener(x,"click",function(ia){Q.checked=!0;mxEvent.consume(ia)}),aa.appendChild(Z));S.appendChild(aa);x=document.createElement("div");x.style.marginTop="16px";x.style.textAlign="right";x.style.whiteSpace=
+"nowrap";l.isOffline()&&!mxClient.IS_CHROMEAPP||null!=J||x.appendChild(l.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));aa=mxUtils.button(mxResources.get("cancel"),function(){l.hideDialog()});aa.className="geBtn";l.editor.cancelFirst&&x.appendChild(aa);PrintDialog.previewEnabled&&null==J&&(Z=mxUtils.button(mxResources.get("preview"),function(){try{l.hideDialog(),Y(!1)}catch(ia){l.handleError(ia)}}),Z.className="geBtn",x.appendChild(Z));L=null!=L?L:null!=J?"export":PrintDialog.previewEnabled?
+"print":"ok";L=mxUtils.button(mxResources.get(L),function(){try{l.hideDialog(),Y(!0)}catch(ia){l.handleError(ia)}});L.className="geBtn gePrimaryBtn";x.appendChild(L);l.editor.cancelFirst||x.appendChild(aa);S.appendChild(x);if(l.editor.isChromelessView()){var V=function(){Editor.isDarkMode()?(S.classList.add("geDarkMode"),S.style.colorScheme="dark"):(S.classList.remove("geDarkMode"),S.style.colorScheme="light")};l.addListener("darkModeChanged",V);V();var X=function(ia,la){ia=la.getProperty("dialog");
+S.parentNode==ia.container&&(l.editor.removeListener(X),l.removeListener(V))};l.editor.addListener("hideDialog",X)}this.container=S};var ba=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 l=this.image;null!=l&&null!=l.src&&Graph.isPageLink(l.src)&&(l={originalSrc:l.src});
+this.page.viewState.backgroundImage=l}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.adaptiveColors&&(this.page.viewState.adaptiveColors=this.adaptiveColors);null!=this.shadowVisible&&(this.page.viewState.shadowVisible=this.shadowVisible)}}else ba.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),
+null!=this.adaptiveColors&&this.adaptiveColors!=this.ui.editor.graph.adaptiveColors&&(l=this.ui.editor.graph.adaptiveColors,this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=l?l:"default"),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)}})();(function(){EditorUi.VERSION="29.6.10";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;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)||/.*\.cdn\.prod\.atlassian-dev\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&
"support.draw.io"!=window.location.hostname&&"test.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=window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.enablePlantUml=EditorUi.enableLogging||
"1"==urlParams.dev;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.drawio.com/doc/faq/scratchpad";EditorUi.enableHtmlEditOption=!0;EditorUi.mermaidDiagramTypes=
"flowchart classDiagram sequenceDiagram stateDiagram mindmap graph erDiagram requirementDiagram journey gantt pie gitGraph".split(" ");EditorUi.defaultMermaidConfig={theme:"neutral",arrowMarkerAbsolute:!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:{useWidth:1E3,useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,
@@ -3858,8 +3862,8 @@ c.setAttribute("value","copy"),ea.appendChild(c);c=document.createElement("optio
x.className="geBtn";k=document.createElement("option");mxUtils.write(k,mxResources.get("allPages"));k.setAttribute("value","allPages");x.appendChild(k);k=document.createElement("option");mxUtils.write(k,mxResources.get("currentPage"));k.setAttribute("value","currentPage");x.appendChild(k);var J=null;null!=this.pages&&null!=this.currentPage&&0<this.getPageIndex(this.currentPage)&&(k=null!=this.currentPage?this.currentPage.getName():"",16<k.length&&(k=k.substring(0,16)+"..."),ca&&(ca=document.createElement("div"),
ca.className="geDialogFormRow",W=document.createElement("span"),W.className="geDialogFormLabel",mxUtils.write(W,mxResources.get("pages")+":"),ca.appendChild(W),ca.appendChild(x),H.appendChild(ca)),J=this.addCheckbox(H,mxResources.get("selectedPage")+": "+k,null,null,null,null,null,null,!0));var L=document.createElement("select");L.style.maxWidth="260px";ca=document.createElement("option");ca.setAttribute("value","0");mxUtils.write(ca,mxResources.get("light"));L.appendChild(ca);ca=document.createElement("option");
ca.setAttribute("value","1");mxUtils.write(ca,mxResources.get("dark"));L.appendChild(ca);ca=document.createElement("option");ca.setAttribute("value","auto");mxUtils.write(ca,mxResources.get("automatic"));ca.setAttribute("selected","selected");L.appendChild(ca);M&&(M=document.createElement("div"),M.className="geDialogFormRow",ca=document.createElement("span"),ca.className="geDialogFormLabel",mxUtils.write(ca,mxResources.get("appearance")+":"),M.appendChild(ca),M.appendChild(L),H.appendChild(M));var T=
-this.addCheckbox(H,mxResources.get("lightbox"),!0,null,null,!q,null,null,!0),Y=this.addEditButton(H,T),aa=Y.getEditInput();q&&(null!=T.checkRow&&(T.checkRow.style.display="none"),dy-=20);var S=this.addCheckbox(H,mxResources.get("layers"),!0,null,null,null,null,null,!0);S.checkRow.style.paddingLeft="24px";var Z=this.addCheckbox(H,mxResources.get("tags"),!0,null,null,null,null,null,!0);Z.checkRow.style.paddingLeft="24px";var da=this.addCheckbox(H,mxResources.get("useCurrentSettings"),!0,null,null,null,
-null,null,!0);da.checkRow.style.paddingLeft="48px";fa.appendChild(H);mxEvent.addListener(Z,"change",function(){Z.checked?da.removeAttribute("disabled"):da.setAttribute("disabled","disabled")});mxEvent.addListener(T,"change",function(){T.checked?(S.removeAttribute("disabled"),aa.removeAttribute("disabled"),Z.removeAttribute("disabled"),Z.checked&&da.removeAttribute("disabled")):(S.setAttribute("disabled","disabled"),aa.setAttribute("disabled","disabled"),Z.setAttribute("disabled","disabled"),da.setAttribute("disabled",
+this.addCheckbox(H,mxResources.get("lightbox"),!0,null,null,!q,null,null,!0),Y=this.addEditButton(H,T),aa=Y.getEditInput();q&&null!=T.checkRow&&(T.checkRow.style.display="none");var S=this.addCheckbox(H,mxResources.get("layers"),!0,null,null,null,null,null,!0);S.checkRow.style.paddingLeft="24px";var Z=this.addCheckbox(H,mxResources.get("tags"),!0,null,null,null,null,null,!0);Z.checkRow.style.paddingLeft="24px";var da=this.addCheckbox(H,mxResources.get("useCurrentSettings"),!0,null,null,null,null,
+null,!0);da.checkRow.style.paddingLeft="48px";fa.appendChild(H);mxEvent.addListener(Z,"change",function(){Z.checked?da.removeAttribute("disabled"):da.setAttribute("disabled","disabled")});mxEvent.addListener(T,"change",function(){T.checked?(S.removeAttribute("disabled"),aa.removeAttribute("disabled"),Z.removeAttribute("disabled"),Z.checked&&da.removeAttribute("disabled")):(S.setAttribute("disabled","disabled"),aa.setAttribute("disabled","disabled"),Z.setAttribute("disabled","disabled"),da.setAttribute("disabled",
"disabled"));aa.checked&&T.checked?Y.getEditSelect().removeAttribute("disabled"):Y.getEditSelect().setAttribute("disabled","disabled")});q=new CustomDialog(this,fa,mxUtils.bind(this,function(){P(ba.getTarget(),ba.getColor(),null==J?!1:J.checked,T.checked,Y.getLink(),S.checked,null!=ka?ka.value:null,null!=pa?pa.value:null,Z.checked,ea.value,null!=l?l.checked:!1,L.value,"allPages"==x.value,Z.checked&&da.checked)}),null,mxResources.get("create"),A,D);this.showDialog(q.container,360,null,!0,!0);null!=
ka?(ka.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?ka.select():document.execCommand("selectAll",!1,null)):null==ea.parentNode;ba.focus()};EditorUi.prototype.showRemoteExportDialog=function(c,g,k,q,A){var D=document.createElement("div");D.style.whiteSpace="nowrap";var H=document.createElement("h3");mxUtils.write(H,mxResources.get("image"));H.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";D.appendChild(H);if(A){A=document.createElement("div");A.className=
"geDialogSection";H=document.createElement("div");H.className="geDialogFormRow";var K=document.createElement("span");K.className="geDialogFormLabel";mxUtils.write(K,mxResources.get("zoom")+":");H.appendChild(K);var P=document.createElement("input");P.setAttribute("type","text");P.value=this.lastExportZoom||"100%";H.appendChild(P);A.appendChild(H);H=document.createElement("div");H.className="geDialogFormRow";K=document.createElement("span");K.className="geDialogFormLabel";mxUtils.write(K,mxResources.get("borderWidth")+
@@ -3963,8 +3967,8 @@ this.spinner.pause():function(){},q=isLocalStorage||mxClient.IS_CHROMEAPP?mxSett
isLocalStorage||mxClient.IS_CHROMEAPP)).container,340,isLocalStorage||mxClient.IS_CHROMEAPP?226:200,!0,!0):A(!1,q)};EditorUi.prototype.parseFile=function(c,g,k){k=null!=k?k:c.name;var q=new FileReader;q.onload=mxUtils.bind(this,function(){this.parseFileData(q.result,g,k)});q.readAsText(c)};EditorUi.prototype.parseFileData=function(c,g,k){var q=new XMLHttpRequest;q.open("POST",OPEN_URL);q.setRequestHeader("Content-Type","application/x-www-form-urlencoded");q.onreadystatechange=function(){g(q)};q.send("format=xml&filename="+
encodeURIComponent(k)+"&data="+encodeURIComponent(c));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(A){}};EditorUi.prototype.isResampleImageSize=function(c,g){g=null!=g?g:this.resampleThreshold;return c>g};EditorUi.prototype.resizeImage=function(c,g,k,q,A,D,H){A=null!=A?A:this.maxImageSize;var K=Math.max(1,c.width),P=Math.max(1,c.height),W=g;if(q&&this.isResampleImageSize(null!=H?H:g.length,D))try{var M=Math.max(K/A,P/A);if(1<M){var ca=Math.round(K/M),fa=Math.round(P/
M),ha=document.createElement("canvas");ha.width=ca;ha.height=fa;ha.getContext("2d").drawImage(c,0,0,ca,fa);var ea=ha.toDataURL();if(ea.length<g.length){var ka=document.createElement("canvas");ka.width=ca;ka.height=fa;var pa=ka.toDataURL();ea!==pa&&(g=ea,K=ca,P=fa)}}}catch(ba){}q&&W!=g&&A>this.maxImageSize/2&&g.length>this.maxImageBytes?this.resizeImage(c,g,k,q,A/1.5,D,H):k(g,K,P)};EditorUi.prototype.extractGraphModelFromPng=function(c){return Editor.extractGraphModelFromPng(c)};EditorUi.prototype.loadImage=
-function(c,g,k){try{var q=new Image;q.onload=function(){q.width=0<q.width?q.width:120;q.height=0<q.height?q.height:120;g(q)};null!=k&&(q.onerror=k);q.src=c}catch(A){if(null!=k)k(A);else throw A;}};EditorUi.prototype.getDefaultSketchMode=function(){var c="1"==urlParams.sketch;return"0"!=(null!=urlParams.rough?urlParams.rough:c)};var v=EditorUi.prototype.createUi;EditorUi.prototype.createUi=function(){Editor.isSettingsEnabled()&&(null!=mxSettings.settings.sidebarTitles&&(Sidebar.prototype.sidebarTitles=
-mxSettings.settings.sidebarTitles),this.formatWidth=mxSettings.getFormatWidth());this.formatEnabled||(this.formatWidth=0);this.sidebarEnabled||(this.hsplitPosition=0);v.apply(this,arguments);Editor.isSettingsEnabled()&&this.doSetSketchMode(null!=mxSettings.settings.sketchMode&&null==urlParams.rough&&null==urlParams.sketch?mxSettings.settings.sketchMode:this.getDefaultSketchMode())};var p=EditorUi.prototype.init;EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=mxStencilRegistry.allowEval&&
+function(c,g,k){try{var q=new Image;q.onload=function(){q.width=0<q.width?q.width:120;q.height=0<q.height?q.height:120;g(q)};null!=k&&(q.onerror=k);q.src=c}catch(A){if(null!=k)k(A);else throw A;}};EditorUi.prototype.getDefaultSketchMode=function(){var c="1"==urlParams.sketch;return"0"!=(null!=urlParams.rough?urlParams.rough:c)};var u=EditorUi.prototype.createUi;EditorUi.prototype.createUi=function(){Editor.isSettingsEnabled()&&(null!=mxSettings.settings.sidebarTitles&&(Sidebar.prototype.sidebarTitles=
+mxSettings.settings.sidebarTitles),this.formatWidth=mxSettings.getFormatWidth());this.formatEnabled||(this.formatWidth=0);this.sidebarEnabled||(this.hsplitPosition=0);u.apply(this,arguments);Editor.isSettingsEnabled()&&this.doSetSketchMode(null!=mxSettings.settings.sketchMode&&null==urlParams.rough&&null==urlParams.sketch?mxSettings.settings.sketchMode:this.getDefaultSketchMode())};var p=EditorUi.prototype.init;EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=mxStencilRegistry.allowEval&&
!this.isOfflineApp();var c=this,g=this.editor.graph,k=g.isEnabled;g.isEnabled=function(){return k.apply(this,arguments)&&!c.isLocked()};g.showLinkIcons=Editor.showLinkIcons;g.showTooltipIcons=Editor.showTooltipIcons;var q=this;g.editTooltip=function(S){null!=S&&q.actions.get("editTooltip").funct()};g.getLinkOverlayTooltip=function(S){if(Graph.isPageLink(S)&&null!=q.pages){var Z=S.substring(S.indexOf(",")+1);Z=q.getPageById(Z);if(null!=Z)return Z.getName()||mxResources.get("pageWithNumber",[mxUtils.indexOf(q.pages,
Z)+1])}return S};Graph.touchStyle&&(g.panningHandler.isPanningTrigger=function(S){var Z=S.getEvent();return null==S.getState()&&!mxEvent.isMouseEvent(Z)&&!g.freehand.isDrawing()||mxEvent.isPopupTrigger(Z)&&(null==S.getState()||mxEvent.isControlDown(Z)||mxEvent.isShiftDown(Z))});g.cellEditor.editPlantUmlData=function(S,Z,da){var ma=JSON.parse(da);Z=new SimpleTextareaDialog(c,ma.data,function(na){null!=na&&c.spinner.spin(document.body,mxResources.get("inserting"))&&c.generatePlantUmlImage(na,ma.format,
function(ra,ta,Aa){c.spinner.stop();g.getModel().beginUpdate();try{if("txt"==ma.format)g.labelChanged(S,"<pre>"+ra+"</pre>"),g.updateCellSize(S,!0);else{g.setCellStyles("image",c.convertDataUri(ra),[S]);var Ca=g.model.getGeometry(S);null!=Ca&&(Ca=Ca.clone(),Ca.width=ta,Ca.height=Aa,g.cellsResized([S],[Ca],!1))}g.setAttributeForCell(S,"plantUmlData",JSON.stringify({data:na,format:ma.format}))}finally{g.getModel().endUpdate()}},function(ra){c.handleError(ra)})});c.showDialog(Z.container,640,420,!0,
@@ -4258,7 +4262,7 @@ EditorUi.prototype.exportToCanvas=function(c,g,k,q,A,D,H,K,P,W,M,ca,fa,ha,ea,ka)
g,k,q)};EditorUi.prototype.convertImageToDataUri=function(c,g){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(c,g)};EditorUi.prototype.base64Encode=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: base64Encode");return Editor.base64Encode(c)};EditorUi.prototype.updateCRC=function(c,g,k,q){EditorUi.logEvent("SHOULD NOT BE CALLED: updateCRC");return Editor.updateCRC(c,g,k,q)};EditorUi.prototype.crc32=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");
return Editor.crc32(c)};EditorUi.prototype.writeGraphModelToPng=function(c,g,k,q,A){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");return Editor.writeGraphModelToPng(c,g,k,q,A)};EditorUi.prototype.getLocalStorageFileNames=function(){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;for(var c=[],g=0;g<localStorage.length;g++){var k=localStorage.key(g),q=localStorage.getItem(k);if(0<k.length&&(".scratchpad"==k||"."!=k.charAt(0))&&0<q.length){var A=
"<mxfile "===q.substring(0,8)||"<?xml"===q.substring(0,5)||"\x3c!--[if IE]>"===q.substring(0,12);q="<mxlibrary>"===q.substring(0,11);(A||q)&&c.push(k)}}return c};EditorUi.prototype.getLocalStorageFile=function(c){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;var g=localStorage.getItem(c);return{title:c,data:g,isLib:"<mxlibrary>"===g.substring(0,11)}};EditorUi.prototype.setMigratedFlag=function(){localStorage.setItem(".localStorageMigrated","1")}})();
-var CommentsWindow=function(b,d,m,n,v,p){function z(){for(var ea=H.getElementsByTagName("div"),ka=0,pa=0;pa<ea.length;pa++)"none"!=ea[pa].style.display&&ea[pa].parentNode==H&&ka++;K.style.display=0==ka?"block":"none"}function G(ea,ka,pa,ba){function l(){ka.removeChild(L);ka.removeChild(T);J.style.display="block";x.style.display="block"}q={div:ka,comment:ea,saveCallback:pa,deleteOnCancel:ba};var x=ka.querySelector(".geCommentTxt"),J=ka.querySelector(".geCommentActionsList"),L=document.createElement("textarea");
+var CommentsWindow=function(b,d,m,n,u,p){function z(){for(var ea=H.getElementsByTagName("div"),ka=0,pa=0;pa<ea.length;pa++)"none"!=ea[pa].style.display&&ea[pa].parentNode==H&&ka++;K.style.display=0==ka?"block":"none"}function G(ea,ka,pa,ba){function l(){ka.removeChild(L);ka.removeChild(T);J.style.display="block";x.style.display="block"}q={div:ka,comment:ea,saveCallback:pa,deleteOnCancel:ba};var x=ka.querySelector(".geCommentTxt"),J=ka.querySelector(".geCommentActionsList"),L=document.createElement("textarea");
L.className="geCommentEditTxtArea";L.style.minHeight=x.offsetHeight+"px";L.value=ea.content;ka.insertBefore(L,x);var T=document.createElement("div");T.className="geCommentEditBtns";var Y=mxUtils.button(mxResources.get("cancel"),function(){ba?(ka.parentNode.removeChild(ka),z()):l();q=null});Y.className="geCommentEditBtn";T.appendChild(Y);var aa=mxUtils.button(mxResources.get("save"),function(){x.innerText="";ea.content=L.value;mxUtils.write(x,ea.content);l();pa(ea);q=null});mxEvent.addListener(L,"keydown",
mxUtils.bind(this,function(S){mxEvent.isConsumed(S)||((mxEvent.isControlDown(S)||mxClient.IS_MAC&&mxEvent.isMetaDown(S))&&13==S.keyCode?(aa.click(),mxEvent.consume(S)):27==S.keyCode&&(Y.click(),mxEvent.consume(S)))}));aa.focus();aa.className="geCommentEditBtn gePrimaryBtn";T.appendChild(aa);ka.insertBefore(T,x);J.style.display="none";x.style.display="none";L.focus()}function U(ea,ka){ka.innerText="";ea=new Date(ea.modifiedDate);var pa=b.timeSince(ea);null==pa&&(pa=mxResources.get("lessThanAMinute"));
mxUtils.write(ka,mxResources.get("timeAgo",[pa],"{1} ago"));ka.setAttribute("title",ea.toLocaleDateString()+" "+ea.toLocaleTimeString())}function E(ea){var ka=document.createElement("img");ka.className="geCommentBusyImg";ka.src=IMAGE_PATH+"/spin.gif";ea.appendChild(ka);ea.busyImg=ka}function R(ea){ea.style.border="1px solid red";ea.busyImg.parentNode==ea&&ea.removeChild(ea.busyImg)}function N(ea){ea.style.border="";ea.busyImg.parentNode==ea&&ea.removeChild(ea.busyImg)}function c(ea,ka,pa,ba,l){function x(da,
@@ -4278,38 +4282,38 @@ P.appendChild(W));b.commentsSaveNeeded()&&(D=D.cloneNode(),D.innerHTML='<img src
ka=q.div.querySelector(".geCommentEditBtns");q.comment.content=ea.value;ea.parentNode.removeChild(ea);ka.parentNode.removeChild(ka)}catch(pa){b.handleError(pa)}H.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH+'/spin.gif" valign="middle"> '+mxUtils.htmlEntities(mxResources.get("loading"))+"...</div>";k=b.canReplyToReplies();b.commentsSupported()?b.getComments(function(pa){function ba(l){if(null!=l){l.sort(function(J,L){return new Date(J.modifiedDate)-new Date(L.modifiedDate)});
for(var x=0;x<l.length;x++)ba(l[x].replies)}}pa.sort(function(l,x){return new Date(l.modifiedDate)-new Date(x.modifiedDate)});H.innerText="";H.appendChild(K);K.style.display="block";fa=pa;for(pa=0;pa<fa.length;pa++)ba(fa[pa].replies),c(fa[pa],fa,null,0,ca);null!=q&&null==q.comment.id&&null==q.comment.pCommentId&&(H.appendChild(q.div),G(q.comment,q.div,q.saveCallback,q.deleteOnCancel))},mxUtils.bind(this,function(pa){H.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(pa&&pa.message?": "+pa.message:
""));this.hasError=!0})):H.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))});ha();this.refreshComments=ha;P=mxUtils.bind(this,function(){function ea(x){var J=pa[x.id];if(null!=J)for(U(x,J),J=0;null!=x.replies&&J<x.replies.length;J++)ea(x.replies[J])}if(this.window.isVisible()){for(var ka=H.querySelectorAll(".geCommentDate"),pa={},ba=0;ba<ka.length;ba++){var l=ka[ba];pa[l.getAttribute("data-commentId")]=l}for(ba=0;ba<fa.length;ba++)ea(fa[ba])}});setInterval(P,6E4);this.refreshCommentsTime=
-P;this.window=new mxWindow(mxResources.get("comments"),A,d,m,n,v,!0,!0);this.window.minimumSize=new mxRectangle(0,0,260,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()}));b.installResizeHandler(this,!0)},ConfirmDialog=function(b,d,m,n,v,p,z,G,U,E,R){var N=document.createElement("div");N.style.textAlign="center";R=
+P;this.window=new mxWindow(mxResources.get("comments"),A,d,m,n,u,!0,!0);this.window.minimumSize=new mxRectangle(0,0,260,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()}));b.installResizeHandler(this,!0)},ConfirmDialog=function(b,d,m,n,u,p,z,G,U,E,R){var N=document.createElement("div");N.style.textAlign="center";R=
null!=R?R:44;var c=document.createElement("div");c.style.padding="6px";c.style.overflow="auto";c.style.maxHeight=R+"px";c.style.lineHeight="1.2em";mxUtils.write(c,d);N.appendChild(c);null!=E&&(c=document.createElement("div"),c.style.padding="6px 0 6px 0",d=document.createElement("img"),d.setAttribute("src",E),c.appendChild(d),N.appendChild(c));E=document.createElement("div");E.style.textAlign="center";E.style.whiteSpace="nowrap";var g=document.createElement("input");g.setAttribute("type","checkbox");
-p=mxUtils.button(p||mxResources.get("cancel"),function(){b.hideDialog();null!=n&&n(g.checked)});p.className="geBtn";null!=G&&(p.innerHTML=G+"<br>"+p.innerHTML,p.style.display="inline-block",p.style.paddingBottom="8px",p.style.paddingTop="8px",p.style.height="auto",p.style.width="40%");b.editor.cancelFirst&&E.appendChild(p);var k=mxUtils.button(v||mxResources.get("ok"),function(){b.hideDialog();null!=m&&m(g.checked)});E.appendChild(k);null!=z?(k.innerHTML=z+"<br>"+k.innerHTML+"<br>",k.style.display=
-"inline-block",k.style.paddingBottom="8px",k.style.paddingTop="8px",k.style.height="auto",k.className="geBtn",k.style.width="40%"):k.className="geBtn gePrimaryBtn";b.editor.cancelFirst||E.appendChild(p);N.appendChild(E);U?(E.style.marginTop="10px",c=document.createElement("p"),c.style.marginTop="20px",c.style.marginBottom="0px",c.appendChild(g),v=document.createElement("span"),mxUtils.write(v," "+mxResources.get("rememberThisSetting")),c.appendChild(v),N.appendChild(c),mxEvent.addListener(v,"click",
+p=mxUtils.button(p||mxResources.get("cancel"),function(){b.hideDialog();null!=n&&n(g.checked)});p.className="geBtn";null!=G&&(p.innerHTML=G+"<br>"+p.innerHTML,p.style.display="inline-block",p.style.paddingBottom="8px",p.style.paddingTop="8px",p.style.height="auto",p.style.width="40%");b.editor.cancelFirst&&E.appendChild(p);var k=mxUtils.button(u||mxResources.get("ok"),function(){b.hideDialog();null!=m&&m(g.checked)});E.appendChild(k);null!=z?(k.innerHTML=z+"<br>"+k.innerHTML+"<br>",k.style.display=
+"inline-block",k.style.paddingBottom="8px",k.style.paddingTop="8px",k.style.height="auto",k.className="geBtn",k.style.width="40%"):k.className="geBtn gePrimaryBtn";b.editor.cancelFirst||E.appendChild(p);N.appendChild(E);U?(E.style.marginTop="10px",c=document.createElement("p"),c.style.marginTop="20px",c.style.marginBottom="0px",c.appendChild(g),u=document.createElement("span"),mxUtils.write(u," "+mxResources.get("rememberThisSetting")),c.appendChild(u),N.appendChild(c),mxEvent.addListener(u,"click",
function(q){g.checked=!g.checked;mxEvent.consume(q)})):E.style.marginTop="12px";this.init=function(){k.focus()};this.container=N},HeadlessEditorUi=function(){EditorUi.call(this,new Editor(!0),document.createElement("div"),!0)};mxUtils.extend(HeadlessEditorUi,EditorUi);HeadlessEditorUi.prototype.createUi=function(){};HeadlessEditorUi.prototype.addTrees=function(){};HeadlessEditorUi.prototype.onBeforeUnload=function(){};HeadlessEditorUi.prototype.updateActionStates=function(){};function DiagramPage(b,d){this.node=b;null!=d?this.node.setAttribute("id",d):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.diagramModified=!1;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)};DiagramPage.prototype.setDiagramModified=function(b){this.diagramModified=b};DiagramPage.prototype.isDiagramModified=function(){return this.diagramModified};function RenamePage(b,d,m){this.ui=b;this.page=d;this.previous=this.name=m}
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,d,m){this.ui=b;this.oldIndex=d;this.newIndex=m}
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,d,m){this.ui=b;this.previousPage=this.page=d;null!=d&&(this.ui.updatePageRoot(d),null!=m&&(d.viewState=m))}
SelectPage.prototype.execute=function(){var b=mxUtils.indexOf(this.ui.pages,this.previousPage);if(null!=this.page&&0<=b){b=this.ui.currentPage;var d=this.ui.editor,m=d.graph;b.isDiagramModified()&&(b.setDiagramModified(!1),EditorUi.removeChildNodes(b.node),b.node.appendChild(d.getGraphXml(!0)));b.viewState=m.getViewState();b.root=m.model.root;null!=b.model&&b.model.rootChanged(b.root);m.view.clear(b.root,!0);m.clearSelection();this.ui.currentPage=this.previousPage;this.previousPage=b;b=this.ui.currentPage;
-m.model.prefix=Editor.guid()+"-";m.model.rootChanged(b.root);m.setViewState(b.viewState);m.gridEnabled=m.gridEnabled&&(!this.ui.editor.isChromelessView()||"1"==urlParams.grid);d.graph.fireEvent(new mxEventObject(mxEvent.ROOT));d.fireEvent(new mxEventObject("pageSelected","change",this))}};function ChangePage(b,d,m,n,v){SelectPage.call(this,b,m);this.relatedPage=d;this.index=n;this.previousIndex=null;this.noSelect=v}mxUtils.extend(ChangePage,SelectPage);
+m.model.prefix=Editor.guid()+"-";m.model.rootChanged(b.root);m.setViewState(b.viewState);m.gridEnabled=m.gridEnabled&&(!this.ui.editor.isChromelessView()||"1"==urlParams.grid);d.graph.fireEvent(new mxEventObject(mxEvent.ROOT));d.fireEvent(new mxEventObject("pageSelected","change",this))}};function ChangePage(b,d,m,n,u){SelectPage.call(this,b,m);this.relatedPage=d;this.index=n;this.previousIndex=null;this.noSelect=u}mxUtils.extend(ChangePage,SelectPage);
ChangePage.prototype.execute=function(){this.ui.editor.fireEvent(new mxEventObject("beforePageChange","change",this));this.previousIndex=this.index;if(null==this.index){var b=mxUtils.indexOf(this.ui.pages,this.relatedPage);this.ui.pages.splice(b,1);this.index=b}else this.ui.pages.splice(this.index,0,this.relatedPage),this.index=null;this.noSelect||SelectPage.prototype.execute.apply(this,arguments)};function ReplaceDiagram(b,d){this.ui=b;this.data=d}
ReplaceDiagram.prototype.execute=function(){var b=this.ui.editor.graph,d=this.ui.editor.getGraphXml();this.ui.editor.readGraphState(this.data);this.ui.editor.updateGraphComponents();var m=new mxCodec(this.data.ownerDocument),n=new mxGraphModel;m.decode(this.data,n);this.data=d;this.ui.currentPage&&(this.ui.currentPage.viewState=b.getViewState(),this.ui.currentPage.root=n.root,null!=this.ui.currentPage.model&&this.ui.currentPage.model.rootChanged(this.ui.currentPage.model.root));b.view.clear(b.model.root,
!0);b.model.rootChanged(n.root);b.fireEvent(new mxEventObject(mxEvent.ROOT))};EditorUi.prototype.tabContainerVisible=!0;EditorUi.prototype.setTabContainerVisible=function(b,d){Editor.isSettingsEnabled()&&d&&(mxSettings.settings.pages=b,mxSettings.save());this.tabContainerVisible=b;this.updateTabContainer()};EditorUi.prototype.isTabContainerVisible=function(){return this.tabContainerVisible};EditorUi.prototype.getSelectedPageIndex=function(){return this.getPageIndex(this.currentPage)};
EditorUi.prototype.getPageIndex=function(b){var d=null;if(null!=this.pages&&null!=b)for(var m=0;m<this.pages.length;m++)if(this.pages[m]==b){d=m;break}return d};EditorUi.prototype.getPageById=function(b,d){d=null!=d?d:this.pages;if(null!=d)for(var m=0;m<d.length;m++)if(d[m].getId()==b)return d[m];return null};
-EditorUi.prototype.createImageForPageLink=function(b,d,m,n){var v=b.indexOf(","),p=null;0<v&&(v=this.getPageById(b.substring(v+1)),null!=v&&v!=d&&(p=this.getImageForPage(v,d,m,n),p.originalSrc=b));null==p&&(p={originalSrc:b});return p};
+EditorUi.prototype.createImageForPageLink=function(b,d,m,n){var u=b.indexOf(","),p=null;0<u&&(u=this.getPageById(b.substring(u+1)),null!=u&&u!=d&&(p=this.getImageForPage(u,d,m,n),p.originalSrc=b));null==p&&(p={originalSrc:b});return p};
EditorUi.prototype.pageSelected=function(){var b=this.editor.graph,d=this.currentPage;null!=d&&(b.tooltipHandler.hide(),null==d.viewState||null==d.viewState.scrollTop||null==d.viewState.scrollLeft?(b.selectUnlockedLayer(),this.resetScrollbars(),b.isLightboxView()?this.lightboxFit():Editor.fitDiagramOnPage&&this.initialFitDiagram(),null!=this.chromelessResize&&(b.container.scrollleft=0,b.container.scrollTop=0,this.chromelessResize())):b.setScrollbarPositions(d.viewState,b.view.translate.x,b.view.translate.y),
this.updateTabContainer(),this.scrollToPage())};
-EditorUi.prototype.getImageForPage=function(b,d,m,n){m=null!=m?m:this.editor.graph;var v=m.getGlobalVariable;m=this.createTemporaryGraph(m.getStylesheet());var p=this.getPageIndex(null!=d?d:this.currentPage);m.getGlobalVariable=function(G){return"pagenumber"==G?p+1:"page"==G&&null!=d?d.getName():v.apply(this,arguments)};document.body.appendChild(m.container);this.updatePageRoot(b);m.setAdaptiveColors(b.viewState.adaptiveColors);m.model.setRoot(b.root);b=Graph.foreignObjectWarningText;Graph.foreignObjectWarningText=
+EditorUi.prototype.getImageForPage=function(b,d,m,n){m=null!=m?m:this.editor.graph;var u=m.getGlobalVariable;m=this.createTemporaryGraph(m.getStylesheet());var p=this.getPageIndex(null!=d?d:this.currentPage);m.getGlobalVariable=function(G){return"pagenumber"==G?p+1:"page"==G&&null!=d?d.getName():u.apply(this,arguments)};document.body.appendChild(m.container);this.updatePageRoot(b);m.setAdaptiveColors(b.viewState.adaptiveColors);m.model.setRoot(b.root);b=Graph.foreignObjectWarningText;Graph.foreignObjectWarningText=
"";n=m.getSvg(null,null,null,null,null,null,null,null,null,null,n,null,null,null,!0,!0);var z=m.getGraphBounds();document.body.removeChild(m.container);Graph.foreignObjectWarningText=b;return new mxImage(Editor.createSvgDataUri(mxUtils.getXml(n)),z.width,z.height,z.x,z.y)};
EditorUi.prototype.initPages=function(){if(!this.editor.graph.standalone){this.actions.addAction("previousPage",mxUtils.bind(this,function(){this.selectNextPage(!1)}));this.actions.addAction("nextPage",mxUtils.bind(this,function(){this.selectNextPage(!0)}));this.isPagesEnabled()&&(this.keyHandler.bindAction(33,!0,"previousPage",!0),this.keyHandler.bindAction(34,!0,"nextPage",!0));var b=this.editor.graph,d=b.view.validateBackground;b.view.validateBackground=mxUtils.bind(this,function(){d.apply(b.view,
-arguments);null!=b.view.backgroundImage&&EditorUi.embedSvgImages(b.view.backgroundImage.node)});this.editor.graph.model.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(z,G){z=G.getProperty("edit").changes;for(G=0;G<z.length;G++)if(z[G]instanceof RenamePage||z[G]instanceof ChangePage||z[G]instanceof mxRootChange){this.updateTabContainer();break}null==this.currentPage||1==z.length&&z[0]instanceof SelectPage||this.currentPage.setDiagramModified(!0)}));var m=b.sizeDidChange,n=null,v=this;b.sizeDidChange=
-function(){var z=m.apply(this,arguments);null!=v.currentPage&&n!=v.currentPage&&(n=v.currentPage,v.pageSelected());return z};b.addListener(mxEvent.ROOT,mxUtils.bind(this,function(){b.checkDefaultParent()}));var p=mxUtils.bind(this,function(){this.updateDocumentTitle();this.updateTabContainer()});this.addListener("currentThemeChanged",p);this.editor.addListener("pagesPatched",p);this.editor.addListener("pageRenamed",p);this.editor.addListener("pageMoved",p);this.editor.addListener("fileLoaded",p);
+arguments);null!=b.view.backgroundImage&&EditorUi.embedSvgImages(b.view.backgroundImage.node)});this.editor.graph.model.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(z,G){z=G.getProperty("edit").changes;for(G=0;G<z.length;G++)if(z[G]instanceof RenamePage||z[G]instanceof ChangePage||z[G]instanceof mxRootChange){this.updateTabContainer();break}null==this.currentPage||1==z.length&&z[0]instanceof SelectPage||this.currentPage.setDiagramModified(!0)}));var m=b.sizeDidChange,n=null,u=this;b.sizeDidChange=
+function(){var z=m.apply(this,arguments);null!=u.currentPage&&n!=u.currentPage&&(n=u.currentPage,u.pageSelected());return z};b.addListener(mxEvent.ROOT,mxUtils.bind(this,function(){b.checkDefaultParent()}));var p=mxUtils.bind(this,function(){this.updateDocumentTitle();this.updateTabContainer()});this.addListener("currentThemeChanged",p);this.editor.addListener("pagesPatched",p);this.editor.addListener("pageRenamed",p);this.editor.addListener("pageMoved",p);this.editor.addListener("fileLoaded",p);
this.editor.addListener("pageSelected",mxUtils.bind(this,function(z,G){this.scrollToPage();this.updateHashObject();this.updateTabContainer();this.updateDocumentTitle()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(z,G){this.scrollToPage();this.updateHashObject()}));mxEvent.addListener(window,"resize",mxUtils.bind(this,function(){this.checkTabScrollerOverflow()}));this.addListener("languageChanged",mxUtils.bind(this,function(){this.updateTabContainer()}))}};
EditorUi.prototype.scrollToPage=function(b,d){var m=null!=b?this.getPageIndex(b):this.getSelectedPageIndex(),n=null!=b?b:this.currentPage;null!=m&&null!=this.tabScroller&&this.tabScroller.children.length>m&&null!=this.tabScroller.children[m]&&(n!=this.lastScrollPage||d)&&(this.tabScroller.children[m].scrollIntoView({block:"nearest",inline:null!=b?"nearest":"center"}),this.tabScroller.children[m].className="geTab gePageTab geActivePage",this.lastScrollPage=n)};
EditorUi.prototype.restoreViewState=function(b,d,m){b=null!=b?this.getPageById(b.getId()):null;var n=this.editor.graph;null!=b&&null!=this.currentPage&&null!=this.pages&&(b!=this.currentPage?this.selectPage(b,!0,d):(n.setViewState(d),this.editor.updateGraphComponents(),n.view.revalidate(),n.sizeDidChange()),n.container.scrollLeft=n.view.translate.x*n.view.scale+d.scrollLeft,n.container.scrollTop=n.view.translate.y*n.view.scale+d.scrollTop,n.restoreSelection(m))};
-Graph.prototype.createViewState=function(b){var d=b.getAttribute("page"),m=parseFloat(b.getAttribute("pageScale")),n=parseFloat(b.getAttribute("pageWidth")),v=parseFloat(b.getAttribute("pageHeight")),p=b.getAttribute("background"),z=this.parseBackgroundImage(b.getAttribute("backgroundImage")),G=b.getAttribute("extFonts");if(G)try{G=G.split("|").map(function(U){U=U.split("^");return{name:U[0],url:U[1]}})}catch(U){console.log("ExtFonts format error: "+U.message)}return{gridEnabled:"0"!=b.getAttribute("grid"),
+Graph.prototype.createViewState=function(b){var d=b.getAttribute("page"),m=parseFloat(b.getAttribute("pageScale")),n=parseFloat(b.getAttribute("pageWidth")),u=parseFloat(b.getAttribute("pageHeight")),p=b.getAttribute("background"),z=this.parseBackgroundImage(b.getAttribute("backgroundImage")),G=b.getAttribute("extFonts");if(G)try{G=G.split("|").map(function(U){U=U.split("^");return{name:U[0],url:U[1]}})}catch(U){console.log("ExtFonts format error: "+U.message)}return{gridEnabled:"0"!=b.getAttribute("grid"),
gridSize:parseFloat(b.getAttribute("gridSize"))||mxGraph.prototype.gridSize,guidesEnabled:"0"!=b.getAttribute("guides"),foldingEnabled:function(){var U=b.getAttribute("fold");return null==U||null!=Editor.config&&null!=Editor.config.defaultFoldingEnabled?Graph.prototype.defaultFoldingEnabled:"0"!=U}(),shadowVisible:"1"==b.getAttribute("shadow"),pageVisible:this.isLightboxView()?!1:null!=d?"0"!=d:this.defaultPageVisible,background:null!=p&&0<p.length?p:null,backgroundImage:z,pageScale:isNaN(m)?mxGraph.prototype.pageScale:
-m,pageFormat:isNaN(n)||isNaN(v)?"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:mxSettings.getPageFormat():new mxRectangle(0,0,n,v),tooltips:"0"!=b.getAttribute("tooltips"),connect:function(){var U=b.getAttribute("connect");return null==U||null!=Editor.config&&null!=Editor.config.defaultConnectable?Graph.prototype.defaultConnectable:"0"!=U}(),arrows:function(){var U=b.getAttribute("arrows");return null==U||null!=Editor.config&&null!=Editor.config.defaultConnectionArrowsEnabled?
+m,pageFormat:isNaN(n)||isNaN(u)?"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:mxSettings.getPageFormat():new mxRectangle(0,0,n,u),tooltips:"0"!=b.getAttribute("tooltips"),connect:function(){var U=b.getAttribute("connect");return null==U||null!=Editor.config&&null!=Editor.config.defaultConnectable?Graph.prototype.defaultConnectable:"0"!=U}(),arrows:function(){var U=b.getAttribute("arrows");return null==U||null!=Editor.config&&null!=Editor.config.defaultConnectionArrowsEnabled?
Graph.prototype.defaultConnectionArrowsEnabled:"0"!=U}(),mathEnabled:"1"==b.getAttribute("math"),adaptiveColors:b.getAttribute("adaptiveColors"),selectionCells:null,defaultParent:null,scrollbars:this.defaultScrollbars,scale:1,hiddenTags:[],extFonts:G||[]}};
-Graph.prototype.saveViewState=function(b,d,m,n,v){m||(d.setAttribute("grid",(null==b?this.defaultGridEnabled:b.gridEnabled)?"1":"0"),d.setAttribute("page",(null==b?this.defaultPageVisible:b.pageVisible)?"1":"0"),d.setAttribute("gridSize",null!=b?b.gridSize:mxGraph.prototype.gridSize),d.setAttribute("guides",null==b||b.guidesEnabled?"1":"0"),d.setAttribute("tooltips",null==b||b.tooltips?"1":"0"),d.setAttribute("connect",null==b||b.connect?"1":"0"),d.setAttribute("arrows",null==b||b.arrows?"1":"0"),
+Graph.prototype.saveViewState=function(b,d,m,n,u){m||(d.setAttribute("grid",(null==b?this.defaultGridEnabled:b.gridEnabled)?"1":"0"),d.setAttribute("page",(null==b?this.defaultPageVisible:b.pageVisible)?"1":"0"),d.setAttribute("gridSize",null!=b?b.gridSize:mxGraph.prototype.gridSize),d.setAttribute("guides",null==b||b.guidesEnabled?"1":"0"),d.setAttribute("tooltips",null==b||b.tooltips?"1":"0"),d.setAttribute("connect",null==b||b.connect?"1":"0"),d.setAttribute("arrows",null==b||b.arrows?"1":"0"),
d.setAttribute("fold",null==b||b.foldingEnabled?"1":"0"));d.setAttribute("pageScale",null!=b&&null!=b.pageScale?b.pageScale:mxGraph.prototype.pageScale);m=null!=b?b.pageFormat:"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:mxSettings.getPageFormat();null!=m&&(d.setAttribute("pageWidth",m.width),d.setAttribute("pageHeight",m.height));null!=b&&(null!=b.background&&d.setAttribute("background",b.background),n=this.getBackgroundImageObject(b.backgroundImage,
-n,v),null!=n&&d.setAttribute("backgroundImage",JSON.stringify(n)));d.setAttribute("math",(null==b?this.defaultMathEnabled:b.mathEnabled)?"1":"0");d.setAttribute("shadow",null!=b&&b.shadowVisible?"1":"0");null==b||null==b.adaptiveColors?d.removeAttribute("adaptiveColors"):d.setAttribute("adaptiveColors",b.adaptiveColors);null!=b&&null!=b.extFonts&&0<b.extFonts.length&&d.setAttribute("extFonts",b.extFonts.map(function(p){return p.name+"^"+p.url}).join("|"))};
+n,u),null!=n&&d.setAttribute("backgroundImage",JSON.stringify(n)));d.setAttribute("math",(null==b?this.defaultMathEnabled:b.mathEnabled)?"1":"0");d.setAttribute("shadow",null!=b&&b.shadowVisible?"1":"0");null==b||null==b.adaptiveColors?d.removeAttribute("adaptiveColors"):d.setAttribute("adaptiveColors",b.adaptiveColors);null!=b&&null!=b.extFonts&&0<b.extFonts.length&&d.setAttribute("extFonts",b.extFonts.map(function(p){return p.name+"^"+p.url}).join("|"))};
Graph.prototype.getViewState=function(){return{defaultParent:this.defaultParent,currentRoot:this.view.currentRoot,gridEnabled:this.gridEnabled,gridSize:this.gridSize,guidesEnabled:this.graphHandler.guidesEnabled,foldingEnabled:this.foldingEnabled,shadowVisible:this.shadowVisible,scrollbars:this.scrollbars,pageVisible:this.pageVisible,background:this.background,backgroundImage:this.backgroundImage,pageScale:this.pageScale,pageFormat:this.pageFormat,tooltips:this.tooltipHandler.isEnabled(),connect:this.connectionHandler.isEnabled(),
arrows:this.connectionArrowsEnabled,scale:this.view.scale,scrollLeft:this.container.scrollLeft-this.view.translate.x*this.view.scale,scrollTop:this.container.scrollTop-this.view.translate.y*this.view.scale,translate:this.view.translate.clone(),lastPasteXml:this.lastPasteXml,pasteCounter:this.pasteCounter,mathEnabled:this.mathEnabled,adaptiveColors:this.adaptiveColors,hiddenTags:this.hiddenTags,extFonts:this.extFonts}};
Graph.prototype.setViewState=function(b,d){if(null!=b){this.lastPasteXml=b.lastPasteXml;this.pasteCounter=b.pasteCounter||0;this.mathEnabled=b.mathEnabled;this.adaptiveColors=b.adaptiveColors;this.gridEnabled=null!=urlParams.grid?"0"!=urlParams.grid:b.gridEnabled;this.gridSize=b.gridSize;this.graphHandler.guidesEnabled=b.guidesEnabled;this.foldingEnabled=b.foldingEnabled;this.setShadowVisible(b.shadowVisible,!1);this.scrollbars=b.scrollbars;this.pageVisible=!this.isViewer()&&(null!=urlParams.pv?"0"!=
@@ -4318,42 +4322,42 @@ n.parentNode.removeChild(n)}for(d=0;d<this.extFonts.length;d++)this.addExtFont(t
this.defaultGridEnabled,this.gridSize=mxGraph.prototype.gridSize,this.pageScale=mxGraph.prototype.pageScale,this.pageFormat="undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:mxSettings.getPageFormat(),this.pageVisible=this.defaultPageVisible,this.backgroundImage=this.background=null,this.scrollbars=this.defaultScrollbars,this.graphHandler.guidesEnabled=!0,this.foldingEnabled=this.defaultFoldingEnabled,this.setShadowVisible(!1,!1),this.defaultParent=null,this.setTooltips(!0),
this.setConnectable(this.defaultConnectable),this.lastPasteXml=null,this.pasteCounter=0,this.mathEnabled=this.defaultMathEnabled,this.adaptiveColors=null,this.connectionArrowsEnabled=this.defaultConnectionArrowsEnabled,this.hiddenTags=[],this.extFonts=[];this.setAdaptiveColors(this.adaptiveColors);this.preferPageSize=this.pageBreaksVisible=this.pageVisible;this.fireEvent(new mxEventObject("viewStateChanged","state",b))};
Graph.prototype.setScrollbarPositions=function(b,d,m){null!=b&&null!=b.scrollLeft&&null!=b.scrollTop&&(this.container.scrollLeft=d*this.view.scale+b.scrollLeft,this.container.scrollTop=m*this.view.scale+b.scrollTop)};
-Graph.prototype.addExtFont=function(b,d,m){if(b&&d){var n="extFont_"+b;if(null==document.getElementById(n))if(0==d.indexOf(Editor.GOOGLE_FONTS))mxClient.link("stylesheet",d,null,n);else{document.getElementsByTagName("head");var v=document.createElement("style");v.appendChild(document.createTextNode('@font-face {\n\tfont-family: "'+b+'";\n\tsrc: url("'+d+'");\n}'));v.setAttribute("id",n);document.getElementsByTagName("head")[0].appendChild(v)}if(!m){null==this.extFonts&&(this.extFonts=[]);m=this.extFonts;
-n=!0;for(v=0;v<m.length;v++)if(m[v].name==b){n=!1;break}n&&this.extFonts.push({name:b,url:d})}}};
+Graph.prototype.addExtFont=function(b,d,m){if(b&&d){var n="extFont_"+b;if(null==document.getElementById(n))if(0==d.indexOf(Editor.GOOGLE_FONTS))mxClient.link("stylesheet",d,null,n);else{document.getElementsByTagName("head");var u=document.createElement("style");u.appendChild(document.createTextNode('@font-face {\n\tfont-family: "'+b+'";\n\tsrc: url("'+d+'");\n}'));u.setAttribute("id",n);document.getElementsByTagName("head")[0].appendChild(u)}if(!m){null==this.extFonts&&(this.extFonts=[]);m=this.extFonts;
+n=!0;for(u=0;u<m.length;u++)if(m[u].name==b){n=!1;break}n&&this.extFonts.push({name:b,url:d})}}};
EditorUi.prototype.updatePageRoot=function(b,d){if(null==b.root){d=this.editor.extractGraphModel(b.node,null,d);var m=Editor.extractParserError(d);if(m)throw Error(m);null!=d?(b.graphModelNode=d,b.viewState=this.editor.graph.createViewState(d),m=new mxCodec(d.ownerDocument),b.root=m.decode(d).root):(b.root=this.editor.graph.model.createRoot(),b.root.setId("0"),b.root.children[0].setId("1"),b.needsUpdate=!0)}else if(null==b.viewState){if(null==b.graphModelNode){d=this.editor.extractGraphModel(b.node);
if(m=Editor.extractParserError(d))throw Error(m);null!=d&&(b.graphModelNode=d)}null!=b.graphModelNode&&(b.viewState=this.editor.graph.createViewState(b.graphModelNode))}if(null==b.root.children||0==b.root.children.length)d=new mxCell,d.setId("1"),b.root.insert(d),b.needsUpdate=!0;return b};EditorUi.prototype.getDiagramSnapshot=function(){return{node:this.editor.getGraphXml(),page:this.currentPage}};
-EditorUi.prototype.updateDiagramData=function(b,d){if(null==this.getPageIndex(b.page))this.insertPage(null,null,d);else{var m=new mxCodec(b.node.ownerDocument),n=new mxGraphModel;m.decode(b.node,n);m=new mxCodec(d.ownerDocument);var v=new mxGraphModel;m.decode(d,v);this.selectPage(b.page);d=this.diffCells(n.root,v.root);this.patchPage(b.page,d,null,!0)}};EditorUi.prototype.replaceDiagramData=function(b){this.editor.graph.model.execute(new ReplaceDiagram(this,mxUtils.parseXml(b).documentElement))};
-EditorUi.prototype.selectPage=function(b,d,m){try{if(b!=this.currentPage){var n=this.editor.graph;n.isEditing()&&n.stopEditing(!1);d=null!=d?d:!1;n.isMouseDown=!1;n.reset();var v=n.model.createUndoableEdit();v.ignoreEdit=!0;var p=new SelectPage(this,b,m);p.execute();v.add(p);v.notify();d||n.model.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",v))}}catch(z){this.handleError(z)}};
+EditorUi.prototype.updateDiagramData=function(b,d){if(null==this.getPageIndex(b.page))this.insertPage(null,null,d);else{var m=new mxCodec(b.node.ownerDocument),n=new mxGraphModel;m.decode(b.node,n);m=new mxCodec(d.ownerDocument);var u=new mxGraphModel;m.decode(d,u);this.selectPage(b.page);d=this.diffCells(n.root,u.root);this.patchPage(b.page,d,null,!0)}};EditorUi.prototype.replaceDiagramData=function(b){this.editor.graph.model.execute(new ReplaceDiagram(this,mxUtils.parseXml(b).documentElement))};
+EditorUi.prototype.selectPage=function(b,d,m){try{if(b!=this.currentPage){var n=this.editor.graph;n.isEditing()&&n.stopEditing(!1);d=null!=d?d:!1;n.isMouseDown=!1;n.reset();var u=n.model.createUndoableEdit();u.ignoreEdit=!0;var p=new SelectPage(this,b,m);p.execute();u.add(p);u.notify();d||n.model.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",u))}}catch(z){this.handleError(z)}};
EditorUi.prototype.selectNextPage=function(b){var d=this.currentPage;null!=d&&null!=this.pages&&(d=mxUtils.indexOf(this.pages,d),b?this.selectPage(this.pages[mxUtils.mod(d+1,this.pages.length)]):b||this.selectPage(this.pages[mxUtils.mod(d-1,this.pages.length)]))};
EditorUi.prototype.insertPage=function(b,d,m){this.editor.graph.isEnabled()&&(this.editor.graph.isEditing()&&this.editor.graph.stopEditing(!1),b=null!=b?b:this.createPage(null,this.createPageId(),m),d=null!=d?d:this.pages.length,d=new ChangePage(this,b,b,d),this.editor.graph.model.execute(d));return b};EditorUi.prototype.createPageId=function(){do var b=Editor.guid();while(null!=this.getPageById(b));return b};
EditorUi.prototype.createPage=function(b,d,m){d=new DiagramPage((null!=this.fileNode?this.fileNode.ownerDocument:document).createElement("diagram"),d);d.setName(null!=b?b:this.createPageName());this.initDiagramNode(d,m);return d};EditorUi.prototype.createPageName=function(){for(var b={},d=0;d<this.pages.length;d++){var m=this.pages[d].getName();null!=m&&0<m.length&&(b[m]=m)}d=this.pages.length;do m=mxResources.get("pageWithNumber",[++d]);while(null!=b[m]);return m};
-EditorUi.prototype.removePage=function(b){try{var d=this.editor.graph,m=mxUtils.indexOf(this.pages,b);if(d.isEnabled()&&0<=m){this.editor.graph.isEditing()&&this.editor.graph.stopEditing(!1);d.model.beginUpdate();try{var n=this.currentPage;n==b&&1<this.pages.length?(m==this.pages.length-1?m--:m++,n=this.pages[m]):1>=this.pages.length&&(n=this.insertPage(),d.model.execute(new RenamePage(this,n,mxResources.get("pageWithNumber",[1]))));d.model.execute(new ChangePage(this,b,n))}finally{d.model.endUpdate()}}}catch(v){this.handleError(v)}return b};
-EditorUi.prototype.duplicatePage=function(b,d){var m=null;try{var n=this.editor.graph;if(n.isEnabled()){n.isEditing()&&n.stopEditing();var v=b.node.cloneNode(!1);v.removeAttribute("id");var p={},z=n.createCellLookup([n.model.root]);m=new DiagramPage(v);m.root=n.cloneCell(n.model.root,null,p);var G=new mxGraphModel;G.prefix=Editor.guid()+"-";G.setRoot(m.root);n.updateCustomLinks(n.createCellMapping(p,z),[m.root]);m.viewState=b==this.currentPage?n.getViewState():b.viewState;this.initDiagramNode(m);
+EditorUi.prototype.removePage=function(b){try{var d=this.editor.graph,m=mxUtils.indexOf(this.pages,b);if(d.isEnabled()&&0<=m){this.editor.graph.isEditing()&&this.editor.graph.stopEditing(!1);d.model.beginUpdate();try{var n=this.currentPage;n==b&&1<this.pages.length?(m==this.pages.length-1?m--:m++,n=this.pages[m]):1>=this.pages.length&&(n=this.insertPage(),d.model.execute(new RenamePage(this,n,mxResources.get("pageWithNumber",[1]))));d.model.execute(new ChangePage(this,b,n))}finally{d.model.endUpdate()}}}catch(u){this.handleError(u)}return b};
+EditorUi.prototype.duplicatePage=function(b,d){var m=null;try{var n=this.editor.graph;if(n.isEnabled()){n.isEditing()&&n.stopEditing();var u=b.node.cloneNode(!1);u.removeAttribute("id");var p={},z=n.createCellLookup([n.model.root]);m=new DiagramPage(u);m.root=n.cloneCell(n.model.root,null,p);var G=new mxGraphModel;G.prefix=Editor.guid()+"-";G.setRoot(m.root);n.updateCustomLinks(n.createCellMapping(p,z),[m.root]);m.viewState=b==this.currentPage?n.getViewState():b.viewState;this.initDiagramNode(m);
m.viewState.scale=1;delete m.viewState.scrollLeft;delete m.viewState.scrollTop;delete m.viewState.currentRoot;delete m.viewState.defaultParent;m.setName(d);m=this.insertPage(m,mxUtils.indexOf(this.pages,b)+1)}}catch(U){this.handleError(U)}return m};EditorUi.prototype.initDiagramNode=function(b,d){null==d&&(d=(new mxCodec(mxUtils.createXmlDocument())).encode(new mxGraphModel(b.root)));this.editor.graph.saveViewState(b.viewState,d);EditorUi.removeChildNodes(b.node);b.node.appendChild(d)};
-EditorUi.prototype.clonePages=function(b){for(var d=[],m=[],n=0;n<b.length;n++)try{m.push(this.clonePage(b[n]))}catch(v){d.push(mxResources.get("pageWithNumber",[n+1])+": "+v.toString())}if(0<d.length){b=Error(d.join("\n"));try{0<m.length&&(b.fallbackFileData=this.getXmlForPages(m))}catch(v){}throw b;}return m};
+EditorUi.prototype.clonePages=function(b){for(var d=[],m=[],n=0;n<b.length;n++)try{m.push(this.clonePage(b[n]))}catch(u){d.push(mxResources.get("pageWithNumber",[n+1])+": "+u.toString())}if(0<d.length){b=Error(d.join("\n"));try{0<m.length&&(b.fallbackFileData=this.getXmlForPages(m))}catch(u){}throw b;}return m};
EditorUi.prototype.clonePage=function(b){this.updatePageRoot(b);var d=new DiagramPage(b.node.cloneNode(!0)),m=b==this.currentPage?this.editor.graph.getViewState():b.viewState;d.viewState=mxUtils.clone(m,EditorUi.transientViewStateProperties);d.root=this.editor.graph.model.cloneCell(b.root,null,!0);d.diagramModified=b.diagramModified;return d};
EditorUi.prototype.renamePage=function(b){if(this.editor.graph.isEnabled()){var d=new FilenameDialog(this,b.getName(),mxResources.get("rename"),mxUtils.bind(this,function(m){null!=m&&0<m.length&&this.editor.graph.model.execute(new RenamePage(this,b,m))}),mxResources.get("rename"));this.showDialog(d.container,300,80,!0,!0);d.init()}return b};EditorUi.prototype.movePage=function(b,d){this.editor.graph.model.execute(new MovePage(this,b,d))};
EditorUi.prototype.createTabContainer=function(){var b=document.createElement("div");b.className="geTabContainer geTabItem";return b};
-EditorUi.prototype.updateTabContainer=function(){if(null!=this.tabContainer&&!this.isTabContainerVisible())this.tabContainer.style.display="none";else if(null!=this.tabContainer&&null!=this.pages){this.tabContainer.style.display="";var b=this.editor.graph,d=document.createElement("div");d.className="geTabScroller";for(var m=null,n=null,v=0;v<this.pages.length;v++)mxUtils.bind(this,function(z,G){G.setAttribute("draggable","true");G.className="geTab gePageTab";mxEvent.addListener(G,"dragstart",mxUtils.bind(this,
+EditorUi.prototype.updateTabContainer=function(){if(null!=this.tabContainer&&!this.isTabContainerVisible())this.tabContainer.style.display="none";else if(null!=this.tabContainer&&null!=this.pages){this.tabContainer.style.display="";var b=this.editor.graph,d=document.createElement("div");d.className="geTabScroller";for(var m=null,n=null,u=0;u<this.pages.length;u++)mxUtils.bind(this,function(z,G){G.setAttribute("draggable","true");G.className="geTab gePageTab";mxEvent.addListener(G,"dragstart",mxUtils.bind(this,
function(U){b.isEnabled()?(mxClient.IS_FF&&U.dataTransfer.setData("Text","<diagram/>"),m=z):mxEvent.consume(U)}));mxEvent.addListener(G,"dragend",mxUtils.bind(this,function(U){m=null;U.stopPropagation();U.preventDefault()}));mxEvent.addListener(G,"dragover",mxUtils.bind(this,function(U){null!=m&&(U.dataTransfer.dropEffect="move");U.stopPropagation();U.preventDefault()}));mxEvent.addListener(G,"drop",mxUtils.bind(this,function(U){null!=m&&z!=m&&this.movePage(m,z);U.stopPropagation();U.preventDefault()}));
-this.pages[z]==this.currentPage&&(n=G);d.appendChild(G)})(v,this.createTabForPage(this.pages[v],v+1));v=null!=this.tabScroller?this.tabScroller.scrollLeft:0;this.tabContainer.innerText="";this.isPageInsertTabVisible()&&this.tabContainer.appendChild(this.createPageInsertTab());"simple"!=Editor.currentTheme&&(this.pageMenuTab=this.createPageMenuTab(),this.tabContainer.appendChild(this.pageMenuTab));this.tabContainer.appendChild(d);this.leftScrollTab=this.createLeftScrollTab();this.tabContainer.appendChild(this.leftScrollTab);
-this.rightScrollTab=this.createRightScrollTab();this.tabContainer.appendChild(this.rightScrollTab);this.tabScroller=d;this.tabScroller.scrollLeft=v;this.checkTabScrollerOverflow();mxEvent.addListener(this.tabScroller,"scroll",mxUtils.bind(this,function(z){this.checkTabScrollerOverflow()}));var p=document.createElement("a");p.href="https://github.com/jgraph/drawio";p.target="_blank";p.style.cssText="margin-left:auto;display:flex;align-items:center;padding:0 8px;opacity:0.5;flex-shrink:0";v=document.createElement("img");
-v.src=IMAGE_PATH+(Editor.isDarkMode()?"/github-logo-white.svg":"/github-logo.svg");v.style.cssText="width:18px;height:18px";v.setAttribute("title","jgraph/drawio");p.appendChild(v);mxEvent.addListener(p,"mouseenter",function(){p.style.opacity="1"});mxEvent.addListener(p,"mouseleave",function(){p.style.opacity="0.5"});this.tabContainer.appendChild(p);null!=n&&(n.classList.add("geActivePage"),n.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}))}};
+this.pages[z]==this.currentPage&&(n=G);d.appendChild(G)})(u,this.createTabForPage(this.pages[u],u+1));u=null!=this.tabScroller?this.tabScroller.scrollLeft:0;this.tabContainer.innerText="";this.isPageInsertTabVisible()&&this.tabContainer.appendChild(this.createPageInsertTab());"simple"!=Editor.currentTheme&&(this.pageMenuTab=this.createPageMenuTab(),this.tabContainer.appendChild(this.pageMenuTab));this.tabContainer.appendChild(d);this.leftScrollTab=this.createLeftScrollTab();this.tabContainer.appendChild(this.leftScrollTab);
+this.rightScrollTab=this.createRightScrollTab();this.tabContainer.appendChild(this.rightScrollTab);this.tabScroller=d;this.tabScroller.scrollLeft=u;this.checkTabScrollerOverflow();mxEvent.addListener(this.tabScroller,"scroll",mxUtils.bind(this,function(z){this.checkTabScrollerOverflow()}));var p=document.createElement("a");p.href="https://github.com/jgraph/drawio";p.target="_blank";p.style.cssText="margin-left:auto;display:flex;align-items:center;padding:0 8px;opacity:0.5;flex-shrink:0";u=document.createElement("img");
+u.src=IMAGE_PATH+(Editor.isDarkMode()?"/github-logo-white.svg":"/github-logo.svg");u.style.cssText="width:18px;height:18px";u.setAttribute("title","jgraph/drawio");p.appendChild(u);mxEvent.addListener(p,"mouseenter",function(){p.style.opacity="1"});mxEvent.addListener(p,"mouseleave",function(){p.style.opacity="0.5"});this.tabContainer.appendChild(p);null!=n&&(n.classList.add("geActivePage"),n.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}))}};
EditorUi.prototype.checkTabScrollerOverflow=function(){null!=this.tabScroller&&null!=this.tabContainer&&2<this.tabContainer.children.length&&(this.tabScroller.scrollWidth>this.tabScroller.offsetWidth?(this.leftScrollTab.style.display="",this.rightScrollTab.style.display="",0==this.tabScroller.scrollLeft?this.leftScrollTab.classList.add("mxDisabled"):this.leftScrollTab.classList.remove("mxDisabled"),Math.ceil(this.tabScroller.scrollLeft)+this.tabScroller.offsetWidth>=this.tabScroller.scrollWidth?this.rightScrollTab.classList.add("mxDisabled"):
this.rightScrollTab.classList.remove("mxDisabled")):(this.leftScrollTab.style.display="none",this.rightScrollTab.style.display="none"))};EditorUi.prototype.isPageInsertTabVisible=function(){return 1==urlParams.embed||null!=this.getCurrentFile()&&this.getCurrentFile().isEditable()};
EditorUi.prototype.createTab=function(){var b=document.createElement("div");b.className="geTab";mxEvent.addListener(b,"click",mxUtils.bind(this,function(d){b.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})}));return b};EditorUi.prototype.getShortPageName=function(b){var d=null;null!=b&&(d=b.getName(),null!=d&&36<d.length&&(d=d.substring(0,34)+"..."));return d};
EditorUi.prototype.createControlTab=function(b,d,m){var n=this.createTab();n.className="geTab geControlTab";null!=b&&n.setAttribute("title",b);b=document.createElement("div");b.className="geButton";b.style.backgroundImage="url("+d+")";n.appendChild(b);mxEvent.addListener(n,"click",m);return n};EditorUi.prototype.createPageInsertTab=function(){return this.createControlTab(mxResources.get("insertPage"),Editor.plusImage,mxUtils.bind(this,function(b){try{this.insertPage()}catch(d){this.handleError(d)}mxEvent.consume(b)}))};
EditorUi.prototype.createLeftScrollTab=function(){return this.createControlTab(null,Editor.chevronLeftImage,mxUtils.bind(this,function(b){var d=Math.max(60,this.tabScroller.clientWidth/2);null!=this.tabScroller.scrollBy?this.tabScroller.scrollBy({left:-d,top:0,behavior:"smooth"}):this.tabScroller.scrollLeft-=d;mxEvent.consume(b)}))};
EditorUi.prototype.createRightScrollTab=function(){return this.createControlTab(null,Editor.chevronRightImage,mxUtils.bind(this,function(b){var d=Math.max(60,this.tabScroller.clientWidth/2);null!=this.tabScroller.scrollBy?this.tabScroller.scrollBy({left:d,top:0,behavior:"smooth"}):this.tabScroller.scrollLeft+=d;mxEvent.consume(b)}))};
-EditorUi.prototype.createPageMenuTab=function(){return this.createControlTab(mxResources.get("pages"),Editor.menuImage,mxUtils.bind(this,function(b){this.editor.graph.popupMenuHandler.hideMenu();var d=new mxPopupMenu(mxUtils.bind(this,function(v,p){this.menus.get("pages").funct(v,p)}));d.smartSeparators=!0;d.showDisabled=!0;d.autoExpand=!0;d.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(d,arguments);d.destroy()});var m=mxEvent.getClientX(b),n=mxEvent.getClientY(b);d.popup(m,
-n,null,b);this.setCurrentMenu(d);mxEvent.consume(b)}))};EditorUi.prototype.createTabForPage=function(b,d){var m=this.createTab(),n=b.getName()||mxResources.get("untitled"),v=b.getId();m.setAttribute("title",n+(null!=v?" ("+v+")":"")+" ["+d+"]");d=document.createElement("span");d.style.maxWidth="160px";d.style.textOverflow="ellipsis";d.style.overflow="hidden";mxUtils.write(d,n);m.appendChild(d);this.addTabListeners(b,m);return m};
-EditorUi.prototype.addTabListeners=function(b,d){mxEvent.disableContextMenu(d);var m=this.editor.graph;mxEvent.addListener(d,"dblclick",mxUtils.bind(this,function(U){this.renamePage(b);mxEvent.consume(U)}));var n=document.createElement("div");n.style.backgroundImage="url("+Editor.thinExpandImage+")";n.className="geButton";d.appendChild(n);var v=!1,p=!1,z=mxUtils.bind(this,function(U){v=null!=this.currentMenu;p=b==this.currentPage;this.scrollToPage(b);m.isMouseDown||p||this.selectPage(b)}),G=mxUtils.bind(this,
-function(U){if(!m.isMouseDown&&(p&&(mxEvent.isTouchEvent(U)||mxEvent.getSource(U)==n)||mxEvent.isPopupTrigger(U))&&(m.popupMenuHandler.hideMenu(),this.hideCurrentMenu(),!mxEvent.isTouchEvent(U)||!v)){var E=new mxPopupMenu(this.createPageMenu(b));E.smartSeparators=!0;E.showDisabled=!0;E.autoExpand=!0;E.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(E,arguments);this.resetCurrentMenu();E.destroy()});var R=mxEvent.getClientX(U),N=mxEvent.getClientY(U);E.popup(R,N,null,U);
+EditorUi.prototype.createPageMenuTab=function(){return this.createControlTab(mxResources.get("pages"),Editor.menuImage,mxUtils.bind(this,function(b){this.editor.graph.popupMenuHandler.hideMenu();var d=new mxPopupMenu(mxUtils.bind(this,function(u,p){this.menus.get("pages").funct(u,p)}));d.smartSeparators=!0;d.showDisabled=!0;d.autoExpand=!0;d.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(d,arguments);d.destroy()});var m=mxEvent.getClientX(b),n=mxEvent.getClientY(b);d.popup(m,
+n,null,b);this.setCurrentMenu(d);mxEvent.consume(b)}))};EditorUi.prototype.createTabForPage=function(b,d){var m=this.createTab(),n=b.getName()||mxResources.get("untitled"),u=b.getId();m.setAttribute("title",n+(null!=u?" ("+u+")":"")+" ["+d+"]");d=document.createElement("span");d.style.maxWidth="160px";d.style.textOverflow="ellipsis";d.style.overflow="hidden";mxUtils.write(d,n);m.appendChild(d);this.addTabListeners(b,m);return m};
+EditorUi.prototype.addTabListeners=function(b,d){mxEvent.disableContextMenu(d);var m=this.editor.graph;mxEvent.addListener(d,"dblclick",mxUtils.bind(this,function(U){this.renamePage(b);mxEvent.consume(U)}));var n=document.createElement("div");n.style.backgroundImage="url("+Editor.thinExpandImage+")";n.className="geButton";d.appendChild(n);var u=!1,p=!1,z=mxUtils.bind(this,function(U){u=null!=this.currentMenu;p=b==this.currentPage;this.scrollToPage(b);m.isMouseDown||p||this.selectPage(b)}),G=mxUtils.bind(this,
+function(U){if(!m.isMouseDown&&(p&&(mxEvent.isTouchEvent(U)||mxEvent.getSource(U)==n)||mxEvent.isPopupTrigger(U))&&(m.popupMenuHandler.hideMenu(),this.hideCurrentMenu(),!mxEvent.isTouchEvent(U)||!u)){var E=new mxPopupMenu(this.createPageMenu(b));E.smartSeparators=!0;E.showDisabled=!0;E.autoExpand=!0;E.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(E,arguments);this.resetCurrentMenu();E.destroy()});var R=mxEvent.getClientX(U),N=mxEvent.getClientY(U);E.popup(R,N,null,U);
this.setCurrentMenu(E,d)}mxEvent.consume(U)});mxEvent.addGestureListeners(n,z,null,G);mxEvent.addGestureListeners(d,z,null,G)};
EditorUi.prototype.createPageMenu=function(b,d){return mxUtils.bind(this,function(m,n){1!=urlParams.embed&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=this.getServiceName()||navigator.standalone||m.addItem(mxResources.get("openInNewWindow"),null,mxUtils.bind(this,function(){this.editor.editAsNew(this.getFileData(!0,null,null,null,!0,!0))}),n));this.editor.graph.isEnabled()&&(m.addItem(mxResources.get("duplicate"),null,mxUtils.bind(this,function(){this.duplicatePage(b,mxResources.get("copyOf",
-[b.getName()]))}),n),m.addSeparator(n),this.currentPage==b&&1<this.pages.length&&this.menus.addSubmenu("movePage",m,n,mxResources.get("move")),m.addItem(mxResources.get("delete"),null,mxUtils.bind(this,function(){this.removePage(b)}),n),m.addItem(mxResources.get("rename")+"...",null,mxUtils.bind(this,function(){this.renamePage(b,d)}),n))})};(function(){var b=Graph.prototype.foldCells;Graph.prototype.foldCells=function(n,v,p,z,G){v=null!=v?v:!1;null==p&&(p=this.getFoldableCells(this.getSelectionCells(),n));this.stopEditing();this.model.beginUpdate();try{for(var U=p.slice(),E=0;E<p.length;E++)"1"==mxUtils.getValue(this.getCurrentCellStyle(p[E]),"treeFolding","0")&&this.foldTreeCell(n,p[E]);p=U;p=b.apply(this,arguments)}finally{this.model.endUpdate()}return p};Graph.prototype.foldTreeCell=function(n,v){this.model.beginUpdate();try{var p=
-[];this.traverse(v,!0,mxUtils.bind(this,function(G,U){var E=null!=U&&this.isTreeEdge(U);E&&p.push(U);G==v||null!=U&&!E||p.push(G);return(null==U||E)&&(G==v||!this.model.isCollapsed(G))}));this.model.setCollapsed(v,n);for(var z=0;z<p.length;z++)this.model.setVisible(p[z],!n)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(n){return!this.isEdgeIgnored(n)};Graph.prototype.getTreeEdges=function(n,v,p,z,G,U){return this.model.filterCells(this.getEdges(n,v,p,z,G,U),mxUtils.bind(this,
-function(E){return this.isTreeEdge(E)}))};Graph.prototype.getIncomingTreeEdges=function(n,v){return this.getTreeEdges(n,v,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(n,v){return this.getTreeEdges(n,v,!1,!0,!1)};var d=EditorUi.prototype.init;EditorUi.prototype.init=function(){d.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function n(ba){return q.isVertex(ba)&&p(ba)}function v(ba){var l=!1;null!=ba&&
+[b.getName()]))}),n),m.addSeparator(n),this.currentPage==b&&1<this.pages.length&&this.menus.addSubmenu("movePage",m,n,mxResources.get("move")),m.addItem(mxResources.get("delete"),null,mxUtils.bind(this,function(){this.removePage(b)}),n),m.addItem(mxResources.get("rename")+"...",null,mxUtils.bind(this,function(){this.renamePage(b,d)}),n))})};(function(){var b=Graph.prototype.foldCells;Graph.prototype.foldCells=function(n,u,p,z,G){u=null!=u?u:!1;null==p&&(p=this.getFoldableCells(this.getSelectionCells(),n));this.stopEditing();this.model.beginUpdate();try{for(var U=p.slice(),E=0;E<p.length;E++)"1"==mxUtils.getValue(this.getCurrentCellStyle(p[E]),"treeFolding","0")&&this.foldTreeCell(n,p[E]);p=U;p=b.apply(this,arguments)}finally{this.model.endUpdate()}return p};Graph.prototype.foldTreeCell=function(n,u){this.model.beginUpdate();try{var p=
+[];this.traverse(u,!0,mxUtils.bind(this,function(G,U){var E=null!=U&&this.isTreeEdge(U);E&&p.push(U);G==u||null!=U&&!E||p.push(G);return(null==U||E)&&(G==u||!this.model.isCollapsed(G))}));this.model.setCollapsed(u,n);for(var z=0;z<p.length;z++)this.model.setVisible(p[z],!n)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(n){return!this.isEdgeIgnored(n)};Graph.prototype.getTreeEdges=function(n,u,p,z,G,U){return this.model.filterCells(this.getEdges(n,u,p,z,G,U),mxUtils.bind(this,
+function(E){return this.isTreeEdge(E)}))};Graph.prototype.getIncomingTreeEdges=function(n,u){return this.getTreeEdges(n,u,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(n,u){return this.getTreeEdges(n,u,!1,!0,!1)};var d=EditorUi.prototype.init;EditorUi.prototype.init=function(){d.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function n(ba){return q.isVertex(ba)&&p(ba)}function u(ba){var l=!1;null!=ba&&
(l="1"==k.getCurrentCellStyle(ba).treeMoving);return l}function p(ba){var l=!1;null!=ba&&(ba=q.getParent(ba),l=k.view.getState(ba),l="tree"==(null!=l?l.style:k.getCellStyle(ba)).containerType);return l}function z(ba){var l=!1;null!=ba&&(ba=q.getParent(ba),l=k.view.getState(ba),k.view.getState(ba),l=null!=(null!=l?l.style:k.getCellStyle(ba)).childLayout);return l}function G(ba){ba=k.view.getState(ba);if(null!=ba){var l=k.getIncomingTreeEdges(ba.cell);if(0<l.length&&(l=k.view.getState(l[0]),null!=l&&
(l=l.absolutePoints,null!=l&&0<l.length&&(l=l[l.length-1],null!=l)))){if(l.y==ba.y&&Math.abs(l.x-ba.getCenterX())<ba.width/2)return mxConstants.DIRECTION_SOUTH;if(l.y==ba.y+ba.height&&Math.abs(l.x-ba.getCenterX())<ba.width/2)return mxConstants.DIRECTION_NORTH;if(l.x>ba.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function U(ba,l){l=null!=l?l:!0;k.model.beginUpdate();try{var x=k.model.getParent(ba),J=k.getIncomingTreeEdges(ba),L=k.cloneCells([J[0],ba]);k.model.setTerminal(L[0],
k.model.getTerminal(J[0],!0),!0);var T=G(ba),Y=x.geometry;T==mxConstants.DIRECTION_SOUTH||T==mxConstants.DIRECTION_NORTH?L[1].geometry.x+=l?ba.geometry.width+10:-L[1].geometry.width-10:L[1].geometry.y+=l?ba.geometry.height+10:-L[1].geometry.height-10;k.view.currentRoot!=x&&(L[1].geometry.x-=Y.x,L[1].geometry.y-=Y.y);var aa=k.view.getState(ba),S=k.view.scale;if(null!=aa){var Z=mxRectangle.fromRectangle(aa);T==mxConstants.DIRECTION_SOUTH||T==mxConstants.DIRECTION_NORTH?Z.x+=(l?ba.geometry.width+10:
@@ -4372,18 +4376,18 @@ function(ba){var l=k.getSelectionCell();k.isEnabled()&&null!=l&&(ba=mxEvent.isCo
!0)),null!=x))for(var J=0;J<x.length;J++)ba.push(k.model.getTerminal(x[J],!1));0==ba.length&&(ba=k.model.getChildren(k.model.getParent(l)));k.setSelectionCells(ba)}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+S");var D=k.removeCells;k.removeCells=function(ba,l){l=null!=l?l:!0;null==ba&&(ba=this.getDeletableCells(this.getSelectionCells()));l&&(ba=this.getDeletableCells(this.addAllEdges(ba)));for(var x=[],J=0;J<ba.length;J++){var L=ba[J];q.isEdge(L)&&p(L)&&(x.push(L),L=q.getTerminal(L,!1));if(n(L)){var T=
[];k.traverse(L,!0,function(Y,aa){var S=null!=aa&&k.isTreeEdge(aa);S&&T.push(aa);(null==aa||S)&&T.push(Y);return null==aa||S});0<T.length&&(x=x.concat(T),L=k.getIncomingTreeEdges(ba[J]),ba=ba.concat(L))}else null!=L&&x.push(ba[J])}ba=x;return D.apply(this,arguments)};g.hoverIcons.getStateAt=function(ba,l,x){return n(ba.cell)?null:this.graph.view.getState(this.graph.getCellAt(l,x))};var H=k.duplicateCells;k.duplicateCells=function(ba,l){ba=null!=ba?ba:this.getSelectionCells();for(var x=ba.slice(0),
J=0;J<x.length;J++){var L=k.view.getState(x[J]);if(null!=L&&n(L.cell)){var T=k.getIncomingTreeEdges(L.cell);for(L=0;L<T.length;L++)mxUtils.remove(T[L],ba)}}this.model.beginUpdate();try{var Y=H.call(this,ba,l);if(Y.length==ba.length)for(J=0;J<ba.length;J++)if(n(ba[J])){var aa=k.getIncomingTreeEdges(Y[J]);T=k.getIncomingTreeEdges(ba[J]);if(0==aa.length&&0<T.length){var S=this.cloneCell(T[0]);this.addEdge(S,k.getDefaultParent(),this.model.getTerminal(T[0],!0),Y[J])}}}finally{this.model.endUpdate()}return Y};
-var K=k.moveCells;k.moveCells=function(ba,l,x,J,L,T,Y){for(var aa=null,S=[],Z=0;Z<ba.length;Z++)(v(ba[Z])||n(ba[Z]))&&!z(ba[Z])&&this.isCellCollapsed(ba[Z])?S=S.concat(this.getSubtree(ba[Z])):S.push(ba[Z]);ba=mxUtils.removeDuplicates(S);this.model.beginUpdate();try{S=L;var da=this.getCurrentCellStyle(L);if(null!=ba&&n(L)&&"1"==mxUtils.getValue(da,"treeFolding","0")){for(Z=0;Z<ba.length;Z++)if(n(ba[Z])||k.model.isEdge(ba[Z])&&null==k.model.getTerminal(ba[Z],!0)){L=k.model.getParent(ba[Z]);break}if(null!=
+var K=k.moveCells;k.moveCells=function(ba,l,x,J,L,T,Y){for(var aa=null,S=[],Z=0;Z<ba.length;Z++)(u(ba[Z])||n(ba[Z]))&&!z(ba[Z])&&this.isCellCollapsed(ba[Z])?S=S.concat(this.getSubtree(ba[Z])):S.push(ba[Z]);ba=mxUtils.removeDuplicates(S);this.model.beginUpdate();try{S=L;var da=this.getCurrentCellStyle(L);if(null!=ba&&n(L)&&"1"==mxUtils.getValue(da,"treeFolding","0")){for(Z=0;Z<ba.length;Z++)if(n(ba[Z])||k.model.isEdge(ba[Z])&&null==k.model.getTerminal(ba[Z],!0)){L=k.model.getParent(ba[Z]);break}if(null!=
S&&L!=S&&null!=this.view.getState(ba[0])){var ma=k.getIncomingTreeEdges(ba[0]);if(0<ma.length){var na=k.view.getState(k.model.getTerminal(ma[0],!0));if(null!=na){var ra=k.view.getState(S);null!=ra&&(l=(ra.getCenterX()-na.getCenterX())/k.view.scale,x=(ra.getCenterY()-na.getCenterY())/k.view.scale)}}}}aa=K.apply(this,arguments);if(null!=aa&&null!=ba&&aa.length==ba.length)for(Z=0;Z<aa.length;Z++)if(this.model.isEdge(aa[Z]))n(S)&&0>mxUtils.indexOf(aa,this.model.getTerminal(aa[Z],!0))&&this.model.setTerminal(aa[Z],
S,!0);else if(n(ba[Z])&&(ma=k.getIncomingTreeEdges(ba[Z]),0<ma.length))if(!J)n(S)&&0>mxUtils.indexOf(ba,this.model.getTerminal(ma[0],!0))&&this.model.setTerminal(ma[0],S,!0);else if(0==k.getIncomingTreeEdges(aa[Z]).length){da=S;if(null==da||da==k.model.getParent(ba[Z]))da=k.model.getTerminal(ma[0],!0);J=this.cloneCell(ma[0]);this.addEdge(J,k.getDefaultParent(),da,aa[Z])}}finally{this.model.endUpdate()}return aa};if(null!=g.sidebar){var P=g.sidebar.dropAndConnect;g.sidebar.dropAndConnect=function(ba,
l,x,J){var L=k.model,T=null;L.beginUpdate();try{if(T=P.apply(this,arguments),n(ba))for(var Y=0;Y<T.length;Y++)if(L.isEdge(T[Y])&&null==L.getTerminal(T[Y],!0)){L.setTerminal(T[Y],ba,!0);var aa=k.getCellGeometry(T[Y]);aa.points=null;null!=aa.getTerminalPoint(!0)&&aa.setTerminalPoint(null,!0)}}finally{L.endUpdate()}return T}}var W={67:g.actions.get("selectChildren"),88:g.actions.get("selectDescendants"),80:g.actions.get("selectParent"),83:g.actions.get("selectSiblings")},M={67:g.actions.get("copyStyle"),
86:g.actions.get("pasteStyle")},ca=g.onKeyDown;g.onKeyDown=function(ba){try{var l=k.getSelectionCell();if(k.isEnabled()&&!k.isEditing()&&null!=l){var x=mxEvent.isAltDown(ba)&&mxEvent.isShiftDown(ba)?W[ba.keyCode]:mxEvent.isAltDown(ba)?M[ba.keyCode]:null;null!=x?(x.funct(ba),mxEvent.consume(ba)):n(l)&&(x=null,0<k.getIncomingTreeEdges(l).length&&(9==ba.which?x=mxEvent.isShiftDown(ba)?E(l):R(l):13==ba.which&&(x=U(l,!mxEvent.isShiftDown(ba)))),null!=x&&0<x.length?(1==x.length&&k.model.isEdge(x[0])?k.setSelectionCell(k.model.getTerminal(x[0],
!1)):k.setSelectionCell(x[x.length-1]),null!=g.hoverIcons&&g.hoverIcons.update(k.view.getState(l)),k.startEditingAtCell(l),mxEvent.consume(ba)):37==ba.keyCode?(c(l,mxConstants.DIRECTION_WEST),mxEvent.consume(ba)):38==ba.keyCode?(c(l,mxConstants.DIRECTION_NORTH),mxEvent.consume(ba)):39==ba.keyCode?(c(l,mxConstants.DIRECTION_EAST),mxEvent.consume(ba)):40==ba.keyCode&&(c(l,mxConstants.DIRECTION_SOUTH),mxEvent.consume(ba)))}}catch(J){g.handleError(J)}mxEvent.isConsumed(ba)||ca.apply(this,arguments)};
-var fa=k.connectVertex;k.connectVertex=function(ba,l,x,J,L,T,Y){var aa=k.getIncomingTreeEdges(ba);if(n(ba)){var S=G(ba),Z=S==mxConstants.DIRECTION_EAST||S==mxConstants.DIRECTION_WEST,da=l==mxConstants.DIRECTION_EAST||l==mxConstants.DIRECTION_WEST;return S==l||0==aa.length?R(ba,l):Z==da?E(ba):U(ba,l!=mxConstants.DIRECTION_NORTH&&l!=mxConstants.DIRECTION_WEST)}return fa.apply(this,arguments)};k.getSubtree=function(ba){var l=[ba];!v(ba)&&!n(ba)||z(ba)||k.traverse(ba,!0,function(x,J){var L=null!=J&&k.isTreeEdge(J);
-L&&0>mxUtils.indexOf(l,J)&&l.push(J);(null==J||L)&&0>mxUtils.indexOf(l,x)&&l.push(x);return null==J||L});return l};var ha=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){ha.apply(this,arguments);(v(this.state.cell)||n(this.state.cell))&&!z(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&!this.graph.isCellCollapsed(this.state.cell)?null==this.moveHandle&&(this.moveHandle=mxUtils.createImage(Editor.moveImage),this.moveHandle.setAttribute("title",
+var fa=k.connectVertex;k.connectVertex=function(ba,l,x,J,L,T,Y){var aa=k.getIncomingTreeEdges(ba);if(n(ba)){var S=G(ba),Z=S==mxConstants.DIRECTION_EAST||S==mxConstants.DIRECTION_WEST,da=l==mxConstants.DIRECTION_EAST||l==mxConstants.DIRECTION_WEST;return S==l||0==aa.length?R(ba,l):Z==da?E(ba):U(ba,l!=mxConstants.DIRECTION_NORTH&&l!=mxConstants.DIRECTION_WEST)}return fa.apply(this,arguments)};k.getSubtree=function(ba){var l=[ba];!u(ba)&&!n(ba)||z(ba)||k.traverse(ba,!0,function(x,J){var L=null!=J&&k.isTreeEdge(J);
+L&&0>mxUtils.indexOf(l,J)&&l.push(J);(null==J||L)&&0>mxUtils.indexOf(l,x)&&l.push(x);return null==J||L});return l};var ha=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){ha.apply(this,arguments);(u(this.state.cell)||n(this.state.cell))&&!z(this.state.cell)&&0<this.graph.getOutgoingTreeEdges(this.state.cell).length&&!this.graph.isCellCollapsed(this.state.cell)?null==this.moveHandle&&(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),this.redrawMoveHandle(),mxEvent.addGestureListeners(this.moveHandle,mxUtils.bind(this,function(ba){this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(ba),mxEvent.getClientY(ba),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=
mxEvent.isMouseEvent(ba);this.graph.isMouseDown=!0;g.hoverIcons.reset();mxEvent.consume(ba)}))):null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)};var ea=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){ea.apply(this,arguments);this.redrawMoveHandle()};mxVertexHandler.prototype.redrawMoveHandle=function(){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 ka=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(ba){ka.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.display=ba?"":"none")};var pa=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(ba,l){pa.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),
-this.moveHandle=null)}};if("undefined"!==typeof Sidebar){var m=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var n=m.apply(this,arguments),v=this.graph,p=this;return n.concat([this.addEntry("tree container",function(){var z=new mxCell("Tree Container",new mxGeometry(0,0,400,320),"swimlane;startSize=20;horizontal=1;containerType=tree;");z.vertex=!0;var G=new mxCell("Parent",new mxGeometry(140,60,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');
+this.moveHandle=null)}};if("undefined"!==typeof Sidebar){var m=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var n=m.apply(this,arguments),u=this.graph,p=this;return n.concat([this.addEntry("tree container",function(){var z=new mxCell("Tree Container",new mxGeometry(0,0,400,320),"swimlane;startSize=20;horizontal=1;containerType=tree;");z.vertex=!0;var G=new mxCell("Parent",new mxGeometry(140,60,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');
G.vertex=!0;var U=new mxCell("Child",new mxGeometry(140,140,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');U.vertex=!0;var E=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");E.geometry.relative=!0;E.edge=!0;G.insertEdge(E,!0);U.insertEdge(E,!1);z.insert(E);z.insert(G);z.insert(U);
return p.createVertexTemplateFromCells([z],z.geometry.width,z.geometry.height,z.value)}),this.addEntry("tree mindmap mindmaps central idea branch topic",function(){var z=new mxCell("Mindmap",new mxGeometry(0,0,420,126),"swimlane;startSize=20;horizontal=1;containerType=tree;");z.vertex=!0;var G=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,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');
G.vertex=!0;var U=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,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');U.vertex=!0;var E=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");
@@ -4395,9 +4399,9 @@ z.vertex=!0;return p.createVertexTemplateFromCells([z],z.geometry.width,z.geomet
z.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");G.geometry.setTerminalPoint(new mxPoint(-40,40),!0);G.geometry.relative=!0;G.edge=!0;z.insertEdge(G,!1);return p.createVertexTemplateFromCells([z,G],z.geometry.width,z.geometry.height,z.value)}),this.addEntry("tree mindmap mindmaps sub topic",function(){var z=new mxCell("Sub Topic",new mxGeometry(0,0,80,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,"sourcePerimeterSpacing":0,"targetPerimeterSpacing":0};');z.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");
G.geometry.setTerminalPoint(new mxPoint(-40,40),!0);G.geometry.relative=!0;G.edge=!0;z.insertEdge(G,!1);return p.createVertexTemplateFromCells([z,G],z.geometry.width,z.geometry.height,z.value)}),this.addEntry("tree orgchart organization division",function(){var z=new mxCell("Orgchart",new mxGeometry(0,0,280,220),'swimlane;startSize=20;horizontal=1;containerType=tree;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');z.vertex=!0;var G=new mxCell("Organization",new mxGeometry(80,
-40,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');v.setAttributeForCell(G,"treeRoot","1");G.vertex=!0;var U=new mxCell("Division",new mxGeometry(20,140,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');U.vertex=!0;var E=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");
+40,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');u.setAttributeForCell(G,"treeRoot","1");G.vertex=!0;var U=new mxCell("Division",new mxGeometry(20,140,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');U.vertex=!0;var E=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");
E.geometry.relative=!0;E.edge=!0;G.insertEdge(E,!0);U.insertEdge(E,!1);var R=new mxCell("Division",new mxGeometry(160,140,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');R.vertex=!0;var N=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");N.geometry.relative=
-!0;N.edge=!0;G.insertEdge(N,!0);R.insertEdge(N,!1);z.insert(E);z.insert(N);z.insert(G);z.insert(U);z.insert(R);return p.createVertexTemplateFromCells([z],z.geometry.width,z.geometry.height,z.value)}),this.addEntry("tree root",function(){var z=new mxCell("Organization",new mxGeometry(0,0,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');v.setAttributeForCell(z,"treeRoot","1");z.vertex=!0;return p.createVertexTemplateFromCells([z],
+!0;N.edge=!0;G.insertEdge(N,!0);R.insertEdge(N,!1);z.insert(E);z.insert(N);z.insert(G);z.insert(U);z.insert(R);return p.createVertexTemplateFromCells([z],z.geometry.width,z.geometry.height,z.value)}),this.addEntry("tree root",function(){var z=new mxCell("Organization",new mxGeometry(0,0,120,60),'whiteSpace=wrap;html=1;align=center;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');u.setAttributeForCell(z,"treeRoot","1");z.vertex=!0;return p.createVertexTemplateFromCells([z],
z.geometry.width,z.geometry.height,z.value)}),this.addEntry("tree division",function(){var z=new mxCell("Division",new mxGeometry(20,40,100,60),'whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');z.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");
G.geometry.setTerminalPoint(new mxPoint(0,0),!0);G.geometry.relative=!0;G.edge=!0;z.insertEdge(G,!1);return p.createVertexTemplateFromCells([z,G],z.geometry.width,z.geometry.height,z.value)}),this.addEntry("tree sub sections",function(){var z=new mxCell("Sub Section",new mxGeometry(0,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");z.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;targetPortConstraint=eastwest;sourcePortConstraint=northsouth;curved=0;rounded=0;");
G.geometry.setTerminalPoint(new mxPoint(110,-40),!0);G.geometry.relative=!0;G.edge=!0;z.insertEdge(G,!1);var U=new mxCell("Sub Section",new mxGeometry(120,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");U.vertex=!0;var E=new mxCell("",new mxGeometry(0,0,0,0),G.style);E.geometry.setTerminalPoint(new mxPoint(110,-40),!0);E.geometry.relative=!0;E.edge=!0;U.insertEdge(E,!1);return p.createVertexTemplateFromCells([G,E,z,U],220,60,"Sub Sections")})])}}})();Editor.themes.push("min");EditorUi.windowed="0"!=urlParams.windows;
@@ -4408,7 +4412,7 @@ E.sidebarWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){E.s
"none",E.sidebarElt.style.width="210px",E.sidebarElt.style.borderRight="1px solid gray"),R=E.diagramContainer.parentNode,null!=E.sidebarElt.parentNode?(E.sidebarElt.parentNode.removeChild(E.sidebarElt),R.style.left="0px"):(R.parentNode.appendChild(E.sidebarElt),R.style.left=E.sidebarElt.style.width)}if("1"==urlParams.lightbox||"0"==urlParams.chrome||"undefined"===typeof window.Format||"undefined"===typeof window.Menus)window.uiTheme=null;else{var m=0;try{m=window.innerWidth||document.documentElement.clientWidth||
document.body.clientWidth}catch(E){}Menus.prototype.autoPopup=!1;mxConstraintHandler.prototype.pointImage=Graph.createSvgImage(5,5,'<path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke-width="2" style="stroke-opacity:0.4" stroke="#ffffff"/><path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke="#29b6f2"/>');mxOutline.prototype.sizerImage=null;mxConstants.VERTEX_SELECTION_COLOR="#C0C0C0";mxConstants.EDGE_SELECTION_COLOR="#C0C0C0";mxConstants.CONNECT_HANDLE_FILLCOLOR="#cee7ff";mxConstants.DEFAULT_VALID_COLOR="#29b6f2";mxConstants.GUIDE_COLOR=
"#C0C0C0";mxConstants.OUTLINE_COLOR="#29b6f2";mxConstants.OUTLINE_HANDLE_FILLCOLOR="#29b6f2";mxConstants.OUTLINE_HANDLE_STROKECOLOR="#fff";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowSize="0.6";Graph.prototype.svgShadowBlur="1.2";mxRubberband.prototype.defaultOpacity=50;HoverIcons.prototype.inactiveOpacity=25;EditorUi.prototype.closableScratchpad=!1;Graph.prototype.editAfterInsert=!mxClient.IS_IOS&&!mxClient.IS_ANDROID;Editor.prototype.isChromelessView=
-function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var n=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){n.apply(this,arguments);this.menus.get("save").setEnabled(null!=this.getCurrentFile()||"1"==urlParams.embed)};var v=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(E,R){null!=R.shortcut&&900>m&&!mxClient.IS_IOS?E.firstChild.nextSibling.setAttribute("title",R.shortcut):v.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=
+function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var n=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){n.apply(this,arguments);this.menus.get("save").setEnabled(null!=this.getCurrentFile()||"1"==urlParams.embed)};var u=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(E,R){null!=R.shortcut&&900>m&&!mxClient.IS_IOS?E.firstChild.nextSibling.setAttribute("title",R.shortcut):u.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=
function(E){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=E?E:!this.formatWindow.window.isVisible()):b(this)};EditorUi.prototype.isFormatPanelVisible=function(){return null!=this.formatWindow&&this.formatWindow.window.isVisible()||null==this.formatWindow&&0<this.formatWidth};var p=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows();p.apply(this,arguments)};var z=EditorUi.prototype.setGraphEnabled;EditorUi.prototype.setGraphEnabled=function(E){z.apply(this,
arguments);if(E){var R=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;1E3<=R&&null!=this.sidebarWindow&&this.sidebarEnabled&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&1E3<=R&&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(){};EditorUi.prototype.installFormatToolbar=
function(E){var R=this.editor.graph,N=document.createElement("div");N.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%;";R.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(c,g){0<R.getSelectionCount()?(E.appendChild(N),N.innerHTML="Selected: "+R.getSelectionCount()):null!=N.parentNode&&N.parentNode.removeChild(N)}))};var G=!1;EditorUi.prototype.initFormatWindow=
@@ -4425,7 +4429,7 @@ this.createButtonContainer();A.appendChild(k.buttonContainer);k.menubarContainer
function(J){return fa.apply(this,arguments)+"sketch=0;"}}k.editor.addListener("statusChanged",mxUtils.bind(this,function(){k.setStatusText(k.editor.getStatus())}));k.setStatusText(k.editor.getStatus());var ha=k.actions.get("zoomIn"),ea=k.actions.get("zoomOut");g=k.actions.get("resetView");var ka=k.actions.get("undo"),pa=k.actions.get("redo"),ba=R("",ka.funct,null,"",ka,Editor.undoImage),l=R("",pa.funct,null,"",pa,Editor.redoImage),x=R("",function(J){mxEvent.isAltDown(J)?(k.hideCurrentMenu(),k.actions.get("customZoom").funct()):
(k.hideCurrentMenu(),k.actions.get("smartFit").funct());mxEvent.consume(J)},!0,"",g,Editor.zoomFitImage);k.actions.get("toggleShapes").funct=mxUtils.bind(this,function(){d(k,null)});k.container.appendChild(k.tabContainer);k.container.appendChild(A);k.updateTabContainer();this.formatEnabled&&!EditorUi.windowed&&1E3<=m&&b(this,!0);c();k.addListener("lockedChanged",c);k.addListener("languageChanged",c);k.editor.graph.addListener("enabledChanged",c);mxEvent.addListener(window,"resize",function(){c();
null!=k.sidebarWindow&&k.sidebarWindow.window.fit();null!=k.formatWindow&&k.formatWindow.window.fit();null!=k.actions.outlineWindow&&k.actions.outlineWindow.window.fit();null!=k.actions.layersWindow&&k.actions.layersWindow.window.fit();null!=k.menus.chatWindow&&k.menus.chatWindow.window.fit();null!=k.menus.tagsWindow&&k.menus.tagsWindow.window.fit();null!=k.menus.findWindow&&k.menus.findWindow.window.fit();null!=k.menus.findReplaceWindow&&k.menus.findReplaceWindow.window.fit()})}}};
-(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var d=EditorUi.initTheme;EditorUi.initTheme=function(){d.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();DrawioComment=function(b,d,m,n,v,p,z){this.file=b;this.id=d;this.content=m;this.modifiedDate=n;this.createdDate=v;this.isResolved=p;this.user=z;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,d,m,n,v){d()};DrawioComment.prototype.editComment=function(b,d,m){d()};DrawioComment.prototype.deleteComment=function(b,d){b()};DrawioUser=function(b,d,m,n,v){this.id=b;this.email=d;this.displayName=m;this.pictureUrl=n;this.locale=v};mxResources.parse('about=About\naboutDrawio=About draw.io\naccessDenied=Access Denied\naccounts=Accounts\naction=Action\nactualSize=Actual Size\nadaptiveColors=Adaptive Colors\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\naddToScratchpad=Add to Scratchpad\naddWaypoint=Add Waypoint\nadjustTo=Adjust to\nadvanced=Advanced\nsmartTemplate=Smart Template\nalign=Align\nalignment=Alignment\nallChangesLost=All changes will be lost!\nallPages=All Pages\nallProjects=All Projects\nallSelectedObjectsInThisLayer=All selected objects are in this layer\nallSpaces=All Spaces\nallTags=All Tags\nanchor=Anchor\nandroid=Android\nangle=Angle\nanimations=Animations\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\nappearance=Appearance\napply=Apply\narchiMate21=ArchiMate 2.1\narrange=Arrange\narrow=Arrow\narrows=Arrows\naskMeAnything=Ask me anything\nasNew=As New\natlas=Atlas\nauthor=Author\nauthorizationRequired=Authorization required\nauthorizeThisAppIn=Authorize this app in {1}:\nauthorize=Authorize\nauthorizing=Authorizing\nautomatic=Automatic\nautosave=Autosave\nautosizeText=Automatic Font Size\nautosize=Autosize\nattachments=Attachments\naws=AWS\naws3d=AWS 3D\nazure=Azure\nback=Back\nbackground=Background\nbackgroundColor=Background Color\nbackgroundImage=Background Image\nbasic=Basic\nbeta=beta\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\nclosePath=Close Path\nuserJoined={1} has joined\nuserLeft={1} has left\nchatWindowTitle=Chat\nchooseAnOption=Choose an option\nclickToAdd=Click on canvas to add points\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\ncurrentLayer=Current Layer\ndark=Dark\ndiagramLanguage=Diagram Language\ndiagramType=Diagram type\ndiagramXmlDesc=XML File\ndiagramHtmlDesc=HTML File\ndiagramPngDesc=Editable Bitmap Image\ndiagramSvgDesc=Editable Vector Image\ndidYouMeanToExportToPdf=Did you mean to export to PDF?\ndisabled=Disabled\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\nrealtimeCollaboration=Real-Time Collaboration\ncollaborate=Collaborate\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\ncopyDiagramToClipboard=Copy diagram to clipboard\ncopyOf=Copy of {1}\ncopyOfDrawing=Copy of Drawing\ncopySelectionToClipboard=Copy selection to clipboard\ncopySize=Copy Size\ncopyStyle=Copy Style\ncreate=Create\ncreateDiagram=Create Diagram\ncreateBlankDiagram=Create Blank Diagram\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\ndeleteAll=Delete all\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\ndescribeYourDiagram=Describe your diagram\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\neditPolygon=Edit Polygon\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\nexplore=Explore\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\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\nfindInDiagram=Find in Diagram\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\nflowAnimation=Flow Animation\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\nformatAnimatedGif=Animated GIF\nformatPanel=Format Panel\nformatted=Formatted\nformattedText=Formatted Text\nformatPng=PNG\nformatGif=GIF\nformatJpg=JPEG\nformatPdf=PDF\nformatSql=SQL\nformatSvg=SVG\nformatHtmlEmbedded=HTML\nformatVsdx=VSDX\nformatWebp=WebP\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\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\nhighContrast=High Contrast\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\ninsertDiagramFromClipboard=Insert diagram from clipboard\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://www.drawio.com/doc/faq/license-drawio-confluence-jira-cloud">page</a>.\ninvalidInput=Invalid input\ninvalidName=Invalid name\ninvalidOrMissingFile=Invalid or missing file\ninvalidPublicUrl=Invalid public URL\ninvertSelection=Invert Selection\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.\nlight=Light\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\nlanguageCode=Language Code\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\nlock=Lock\nlocked=Locked\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\nmaximize=Maximize\nmerge=Merge\nmermaid=Mermaid\nmicrosoftOffice=Microsoft Office\nmicrosoftExcel=Microsoft Excel\nmicrosoftPowerPoint=Microsoft PowerPoint\nmicrosoftWord=Microsoft Word\nmiddle=Middle\nminimal=Minimal\nminimize=Minimize\nmisc=Misc\nmockups=Mockups\nmodern=Modern\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}\nmyDrive=My Drive\nmyFiles=My Files\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\nnoAnimationsInDiagram=No animations found in diagram\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\npageTabs=Page Tabs\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).\npolygon=Polygon\nportrait=Portrait\nposition=Position\nposterPrint=Poster Print\npreferences=Preferences\npreview=Preview\npreviousPage=Previous Page\npresentationMode=Presentation Mode\nprint=Print\nprocEng=Proc. Eng.\nproject=Project\npriority=Priority\nprocessForHiringNewEmployee=Process for hiring a new employee\npromptOnly=Prompt Only\npromptWithDiagram=Prompt with Diagram\npromptWithSelection=Prompt with Selection\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\nrequirementDiagram=Requirement Diagram\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\nsearchShapesInOpenLibraries=Search Shapes in Open Libraries\nselectAll=Select All\nselectionOnly=Selection Only\nselectCard=Select Card\nselectEdges=Select Edges\nselectedPage=Selected Page\nselectFile=Select File\nselectFolder=Select Folder\nselectFont=Select Font\nselection=Selection\nselectNone=Select None\nselectObjectsInLayer=Select Objects in Layer\nselectTemplate=Select Template\nselectVertices=Select Vertices\nsendBackward=Send Backward\nsendMessage=Send\nsendYourFeedback=Send your feedback\nsequenceDiagram=Sequence Diagram\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\nsettings=Settings\nshadow=Shadow\nshadows=Shadows\nshape=Shape\nshapes=Shapes\nshare=Share\nshareCursor=Share Mouse Cursor\nshareLink=Link for shared editing\nsharingAvailable=Sharing available for Google Drive and OneDrive files.\nsaveItToGoogleDriveToCollaborate=You\'ll need to save "{1}" to Google Drive before you can collaborate.\nsaveToGoogleDrive=Save to Google Drive\nsharp=Sharp\nshow=Show\nshowRemoteCursors=Show Remote Mouse Cursors\nshowStartScreen=Show Start Screen\nsidebarTooltip=Click or drag and drop shapes. 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\nsmoothing=Smoothing\nsnapToGrid=Snap to Grid\nsolid=Solid\nsourceSpacing=Source Spacing\nsouth=South\nsoftware=Software\nspace=Space\nspacing=Spacing\nspecialLink=Special Link\nstateDiagram=State Diagram\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\nswap=Swap\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\ntypeSlashToSearch=Type / to search\numl=UML\nunassigned=Unassigned\nunderline=Underline\nundo=Undo\nungroup=Ungroup\nunlock=Unlock\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\nunknownUser=Unknown user\nupdateDiagramFromClipboard=Update diagram from clipboard\nupdateExistingDrawing=Update existing drawing\nupdateFile=Update {1}\nupdatingDocument=Updating Document. Please wait...\nupdatingPreview=Updating Preview. Please wait...\nupdatingSelection=Updating Selection. Please wait...\nupload=Upload\nurl=URL\nuseBlackAndWhite=Use black and white\nuseCurrentSettings=Use current settings\nuseOffline=Use Offline\nuserDefined=User-defined\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}\nwarning=Warning\nwaypoints=Waypoints\nwest=West\nwhere=Where\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\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\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\ncreateODFile=Create OneDrive File\npickGDriveFile=Pick Google Drive File\ncreateGDriveFile=Create Google Drive File\npickDeviceFile=Pick Device File\nvsdNoConfig="vsdurl" is not configured\ntryVssDraw=Try importing the file at {1}\nruler=Ruler\nunits=Units\npoints=Points\ninches=Inches\nmillimeters=Millimeters\nminTwoPoints=At least 2 points required\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\ncopyAsText=Copy as Text\ncopyAsSvg=Copy as SVG\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?\nconfFileTooBigErr=File 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\neditConnectionPoints=Edit Connection Points\nnotInOffline=Not supported while offline\nnotInDesktop=Not supported in Desktop App\nconfConfigSpaceArchived=draw.io Configuration space (DRAWIOCONFIG) is archived. Please restore it first.\nconfACleanOldVerStarted=Cleaning old diagram draft versions started\nconfACleanOldVerDone=Cleaning old diagram draft versions finished\nconfACleaningFile=Cleaning diagram draft "{1}" old versions\nconfAFileCleaned=Cleaning diagram draft "{1}" done\nconfAFileCleanFailed=Cleaning diagram draft "{1}" failed\nconfACleanOnly=Clean Diagram Drafts Only\nbrush=Brush\nopenDevTools=Open Developer Tools\nautoBkp=Automatic Backup\nconfAIgnoreCollectErr=Ignore collecting current pages errors\ndrafts=Drafts\ndraftSaveInt=Draft save interval [sec] (0 to disable)\npluginsDisabled=External plugins disabled.\nextExpNotConfigured=External image service is not configured\npathFilename=Path/Filename\nconfAHugeInstances=Very Large Instances\nconfAHugeInstancesDesc=If this instance includes 100,000+ pages, it is faster to request the current instance pages list from Atlassian. Please contact our support for more details.\nchoosePageIDsFile=Choose current page IDs csv file\nchooseDrawioPsgesFile=Choose pages with draw.io diagrams csv file\nprivate=Private\ndiagramTooLarge=The diagram is too large, please reduce its size and try again.\nselectAdminUsers=Select Admin Users\nxyzTeam={1} Team\naddTeamTitle=Adding a new draw.io Team\naddTeamInst1=To create a new draw.io Team, you need to create a new Atlassian group with "drawio-" prefix (e.g, a group named "drawio-marketing").\naddTeamInst2=Then, configure which team member can edit/add configuration, templates, and libraries from this page.\ndrawioTeams=draw.io Teams\nmembers=Members\nadminEditors=Admins/Editors\nallowAll=Allow all\nnoTeams=No teams found\nerrorLoadingTeams=Error Loading Teams\nnoTeamMembers=No team members found\nerrLoadTMembers=Error loading team members\nerrCreateTeamPage=Error creating team "{1}" page in "draw.io Configuration" space, please check you have the required permissions.\ngotoConfigPage=Please create the space from draw.io "Configuration" page.\nnoAdminsSelected=No admins/editors selected\nerrCreateConfigFile=Error creating "configuration.json" file, please check you have the required permissions.\nerrSetPageRestr=Error setting page restrictions\nnotAdmin4Team=You are not an admin for this team\nconfigUpdated=Configuration updated, restart the editor if you want to work with last configuration.\noutOfDateRevisionAlert=You are editing a historical revision of the diagram, please review the revision and open it to replace the latest version. Or close and overwrite/merge later.\nconfAErrFaqs=There are {1} error(s), the following instructions may help fixing most of the cases. (Please download the log for future references)\nconfA403ErrFaq=There are ({1}) 403 error(s). The current users must have add (write) permissions on all pages and attachments. Even admins sometimes are not allowed to write to some pages via page restrictions\nconfA404ErrFaq=There are ({1}) 404 error(s). The attachment/page is not found. This is due to improper migration or the diagram file (an attachment of the page) is deleted.\nconfA500ErrFaq=There are ({1}) 500 error(s). An internal server error in Confluence Cloud. Such errors are due to overloading the server and usually fixed by retrying the process.\nconfAOtherErrFaq=There are ({1}) other error(s). Please check the error description. If the description is not clear, please contact our support.\nconfAReplaceBaseUrl=Replace Base URL in diagram links when no page ID mapping is found\ndrawSvgPrev=draw.io SVG preview\ngoogleFonts=Google Fonts\ndiagDupl=Duplicate Diagram Detected\ndiagDuplMsg=This diagram is used in multiple places, which can result in unexpected results when edited. We\'ve created an independent copy. Please open the editor again.\ndiagDuplNoEditMsg=This diagram is used in multiple places. Please edit it within its own page.\nconfCloudMigConfirm=Warning: This process will edit many pages and diagrams, so it is recommended to stop the Synchrony service during the process. Do you want to proceed?\nconfCloudMigNotice=In the Cloud instance, please add linkAdjustments to draw.io configuration as follows {1}. Without this configuration, links in diagrams pointing to Confluence pages will not work.\nconfALogsPageDesc=This page contains logs of draw.io long running services as attachments\nconfEditOnlyInPageEditor=Can only be edited within Confluence page editor\nconfEvalWarn=Evaluation License - Not for production use\notherUsersEditing=Other user(s) are editing this diagram\nfirstTimeGD=First time to access this file?\ndrawioGDAppNotInstalled=draw.io Google Drive app is not installed, please install it first\nConfDC415Error=Saving drafts is blocked. If you have "Attachment Checker for Confluence" app, please update to the latest version.\nremove=Remove\nselectPgLyr=Select Page and Layers\nerrGenPreview=There was an error generating a diagram preview. Please consult technical support.\nattAccessErr=Diagram attachment access error: cannot display diagram\nwidthIntOrFixed=Width must be a valid integer or of value \'fixed\'\ndupDisabledPgLyrSlct=Diagram duplication is disabled when page and layers are selected\ncantDupPickDiffName=Could not duplicate diagram. Please choose a different name.\nownPgAccessDupErr=Owning page access restriction: cannot duplicate diagram.\ncantDupTryLater=Could not duplicate diagram. Please try again later.\ncantEditLnkd=Cannot edit linked diagram\ndiagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Would you like to open the owning page for edit?\ndiagInTemps=draw.io diagrams in templates\ndiagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.\nconfDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.\nconfConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.\ntryCurPageOnErr=Try finding the diagram attachment on the macro page when the linked page fails\nconfAExtSrvcNoSupported=Embedded diagrams from external services or urls are not supported.\ngliffyVersionPinning=Import Gliffy pinned version instead of the latest version\nconfEmbedUpload=For a better editing experience, please use the regular draw.io macro to insert a blank diagram, then from (File menu → Import From → Device...) select the file you want to upload and embed.\nconfPublishErr=Another update conflicted with your publish, please try the operation again\nconfACacheMapping=Cache page IDs mapping\nconfARemImpPages=Remember imported pages\ndelCachedData=Delete Cached Data\nk15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?\ndrawioUninstalled=draw.io has been uninstalled, the editor will now close\nconfAttachmentArchived=Diagram belongs to an archived page and cannot be loaded. Restore the page (ID: {1}) to load it.\nconfDiagramMacroDowngrade=The diagram is saved but the page macro cannot be updated as the diagraam revision in the macro is newer. Please edit the diagram from Confluence page editor.\nDCSave500Error=Another Confluence operation interrupted saving, retry #{1}\nconfAppNotInstalled=draw.io diagrams Confluence App is not installed.\nplsInstallAppInConf=Please install/connect this App in Confluence to be able to access the diagrams (in addition to draw.io Confluen app)\nm365=Microsoft 365\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;
+(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var d=EditorUi.initTheme;EditorUi.initTheme=function(){d.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();DrawioComment=function(b,d,m,n,u,p,z){this.file=b;this.id=d;this.content=m;this.modifiedDate=n;this.createdDate=u;this.isResolved=p;this.user=z;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,d,m,n,u){d()};DrawioComment.prototype.editComment=function(b,d,m){d()};DrawioComment.prototype.deleteComment=function(b,d){b()};DrawioUser=function(b,d,m,n,u){this.id=b;this.email=d;this.displayName=m;this.pictureUrl=n;this.locale=u};mxResources.parse('about=About\naboutDrawio=About draw.io\naccessDenied=Access Denied\naccounts=Accounts\naction=Action\nactualSize=Actual Size\nadaptiveColors=Adaptive Colors\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\naddToScratchpad=Add to Scratchpad\naddWaypoint=Add Waypoint\nadjustTo=Adjust to\nadvanced=Advanced\nsmartTemplate=Smart Template\nalign=Align\nalignment=Alignment\nallChangesLost=All changes will be lost!\nallPages=All Pages\nallProjects=All Projects\nallSelectedObjectsInThisLayer=All selected objects are in this layer\nallSpaces=All Spaces\nallTags=All Tags\nanchor=Anchor\nandroid=Android\nangle=Angle\nanimations=Animations\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\nappearance=Appearance\napply=Apply\narchiMate21=ArchiMate 2.1\narrange=Arrange\narrow=Arrow\narrows=Arrows\naskMeAnything=Ask me anything\nasNew=As New\natlas=Atlas\nauthor=Author\nauthorizationRequired=Authorization required\nauthorizeThisAppIn=Authorize this app in {1}:\nauthorize=Authorize\nauthorizing=Authorizing\nautomatic=Automatic\nautosave=Autosave\nautosizeText=Automatic Font Size\nautosize=Autosize\nattachments=Attachments\naws=AWS\naws3d=AWS 3D\nazure=Azure\nback=Back\nbackground=Background\nbackgroundColor=Background Color\nbackgroundImage=Background Image\nbasic=Basic\nbeta=beta\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\nclosePath=Close Path\nuserJoined={1} has joined\nuserLeft={1} has left\nchatWindowTitle=Chat\nchooseAnOption=Choose an option\nclickToAdd=Click on canvas to add points\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\ncurrentLayer=Current Layer\ndark=Dark\ndiagramLanguage=Diagram Language\ndiagramType=Diagram type\ndiagramXmlDesc=XML File\ndiagramHtmlDesc=HTML File\ndiagramPngDesc=Editable Bitmap Image\ndiagramSvgDesc=Editable Vector Image\ndidYouMeanToExportToPdf=Did you mean to export to PDF?\ndisabled=Disabled\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\nrealtimeCollaboration=Real-Time Collaboration\ncollaborate=Collaborate\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\ncopyDiagramToClipboard=Copy diagram to clipboard\ncopyOf=Copy of {1}\ncopyOfDrawing=Copy of Drawing\ncopySelectionToClipboard=Copy selection to clipboard\ncopySize=Copy Size\ncopyStyle=Copy Style\ncreate=Create\ncreateDiagram=Create Diagram\ncreateBlankDiagram=Create Blank Diagram\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\ndeleteAll=Delete all\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\ndescribeYourDiagram=Describe your diagram\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\neditPolygon=Edit Polygon\neditShape=Edit Shape\neditStyle=Edit Style\neditText=Edit Text\neditTooltip=Edit Tooltip\nglass=Glass\ngoogleImages=Google Images\nimageSearch=Image Search\neip=EIP\neffects=Effects\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\nexplore=Explore\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\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\nfindInDiagram=Find in Diagram\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\nflowAnimation=Flow Animation\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\nformatAnimatedGif=Animated GIF\nformatPanel=Format Panel\nformatted=Formatted\nformattedText=Formatted Text\nformatPng=PNG\nformatGif=GIF\nformatJpg=JPEG\nformatPdf=PDF\nformatSql=SQL\nformatSvg=SVG\nformatHtmlEmbedded=HTML\nformatVsdx=VSDX\nformatWebp=WebP\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\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\nhighContrast=High Contrast\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\ninsertDiagramFromClipboard=Insert diagram from clipboard\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://www.drawio.com/doc/faq/license-drawio-confluence-jira-cloud">page</a>.\ninvalidInput=Invalid input\ninvalidName=Invalid name\ninvalidOrMissingFile=Invalid or missing file\ninvalidPublicUrl=Invalid public URL\ninvertSelection=Invert Selection\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.\nlight=Light\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\nlanguageCode=Language Code\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\nlock=Lock\nlocked=Locked\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\nmaximize=Maximize\nmerge=Merge\nmermaid=Mermaid\nmicrosoftOffice=Microsoft Office\nmicrosoftExcel=Microsoft Excel\nmicrosoftPowerPoint=Microsoft PowerPoint\nmicrosoftWord=Microsoft Word\nmiddle=Middle\nminimal=Minimal\nminimize=Minimize\nmisc=Misc\nmockups=Mockups\nmodern=Modern\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}\nmyDrive=My Drive\nmyFiles=My Files\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\nnoAnimationsInDiagram=No animations found in diagram\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\npageTabs=Page Tabs\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).\npolygon=Polygon\nportrait=Portrait\nposition=Position\nposterPrint=Poster Print\npreferences=Preferences\npreview=Preview\npreviousPage=Previous Page\npresentationMode=Presentation Mode\nprint=Print\nprocEng=Proc. Eng.\nproject=Project\npriority=Priority\nprocessForHiringNewEmployee=Process for hiring a new employee\npromptOnly=Prompt Only\npromptWithDiagram=Prompt with Diagram\npromptWithSelection=Prompt with Selection\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\nrequirementDiagram=Requirement Diagram\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\nsearchShapesInOpenLibraries=Search Shapes in Open Libraries\nselectAll=Select All\nselectionOnly=Selection Only\nselectCard=Select Card\nselectEdges=Select Edges\nselectedPage=Selected Page\nselectFile=Select File\nselectFolder=Select Folder\nselectFont=Select Font\nselection=Selection\nselectNone=Select None\nselectObjectsInLayer=Select Objects in Layer\nselectTemplate=Select Template\nselectVertices=Select Vertices\nsendBackward=Send Backward\nsendMessage=Send\nsendYourFeedback=Send your feedback\nsequenceDiagram=Sequence Diagram\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\nsettings=Settings\nshadow=Shadow\nshadows=Shadows\nshape=Shape\nshapes=Shapes\nshare=Share\nshareCursor=Share Mouse Cursor\nshareLink=Link for shared editing\nsharingAvailable=Sharing available for Google Drive and OneDrive files.\nsaveItToGoogleDriveToCollaborate=You\'ll need to save "{1}" to Google Drive before you can collaborate.\nsaveToGoogleDrive=Save to Google Drive\nsharp=Sharp\nshow=Show\nshowRemoteCursors=Show Remote Mouse Cursors\nshowStartScreen=Show Start Screen\nsidebarTooltip=Click or drag and drop shapes. 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\nsmoothing=Smoothing\nsnapToGrid=Snap to Grid\nsolid=Solid\nsourceSpacing=Source Spacing\nsouth=South\nsoftware=Software\nspace=Space\nspacing=Spacing\nspecialLink=Special Link\nstateDiagram=State Diagram\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\nswap=Swap\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\ntypeSlashToSearch=Type / to search\numl=UML\nunassigned=Unassigned\nunderline=Underline\nundo=Undo\nungroup=Ungroup\nunlock=Unlock\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\nunknownUser=Unknown user\nupdateDiagramFromClipboard=Update diagram from clipboard\nupdateExistingDrawing=Update existing drawing\nupdateFile=Update {1}\nupdatingDocument=Updating Document. Please wait...\nupdatingPreview=Updating Preview. Please wait...\nupdatingSelection=Updating Selection. Please wait...\nupload=Upload\nurl=URL\nuseBlackAndWhite=Use black and white\nuseCurrentSettings=Use current settings\nuseOffline=Use Offline\nuserDefined=User-defined\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}\nwarning=Warning\nwaypoints=Waypoints\nwest=West\nwhere=Where\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\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\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\ncreateODFile=Create OneDrive File\npickGDriveFile=Pick Google Drive File\ncreateGDriveFile=Create Google Drive File\npickDeviceFile=Pick Device File\nvsdNoConfig="vsdurl" is not configured\ntryVssDraw=Try importing the file at {1}\nruler=Ruler\nunits=Units\npoints=Points\ninches=Inches\nmillimeters=Millimeters\nminTwoPoints=At least 2 points required\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\ncopyAsText=Copy as Text\ncopyAsSvg=Copy as SVG\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?\nconfFileTooBigErr=File 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\neditConnectionPoints=Edit Connection Points\nnotInOffline=Not supported while offline\nnotInDesktop=Not supported in Desktop App\nconfConfigSpaceArchived=draw.io Configuration space (DRAWIOCONFIG) is archived. Please restore it first.\nconfACleanOldVerStarted=Cleaning old diagram draft versions started\nconfACleanOldVerDone=Cleaning old diagram draft versions finished\nconfACleaningFile=Cleaning diagram draft "{1}" old versions\nconfAFileCleaned=Cleaning diagram draft "{1}" done\nconfAFileCleanFailed=Cleaning diagram draft "{1}" failed\nconfACleanOnly=Clean Diagram Drafts Only\nbrush=Brush\nopenDevTools=Open Developer Tools\nautoBkp=Automatic Backup\nconfAIgnoreCollectErr=Ignore collecting current pages errors\ndrafts=Drafts\ndraftSaveInt=Draft save interval [sec] (0 to disable)\npluginsDisabled=External plugins disabled.\nextExpNotConfigured=External image service is not configured\npathFilename=Path/Filename\nconfAHugeInstances=Very Large Instances\nconfAHugeInstancesDesc=If this instance includes 100,000+ pages, it is faster to request the current instance pages list from Atlassian. Please contact our support for more details.\nchoosePageIDsFile=Choose current page IDs csv file\nchooseDrawioPsgesFile=Choose pages with draw.io diagrams csv file\nprivate=Private\ndiagramTooLarge=The diagram is too large, please reduce its size and try again.\nselectAdminUsers=Select Admin Users\nxyzTeam={1} Team\naddTeamTitle=Adding a new draw.io Team\naddTeamInst1=To create a new draw.io Team, you need to create a new Atlassian group with "drawio-" prefix (e.g, a group named "drawio-marketing").\naddTeamInst2=Then, configure which team member can edit/add configuration, templates, and libraries from this page.\ndrawioTeams=draw.io Teams\nmembers=Members\nadminEditors=Admins/Editors\nallowAll=Allow all\nnoTeams=No teams found\nerrorLoadingTeams=Error Loading Teams\nnoTeamMembers=No team members found\nerrLoadTMembers=Error loading team members\nerrCreateTeamPage=Error creating team "{1}" page in "draw.io Configuration" space, please check you have the required permissions.\ngotoConfigPage=Please create the space from draw.io "Configuration" page.\nnoAdminsSelected=No admins/editors selected\nerrCreateConfigFile=Error creating "configuration.json" file, please check you have the required permissions.\nerrSetPageRestr=Error setting page restrictions\nnotAdmin4Team=You are not an admin for this team\nconfigUpdated=Configuration updated, restart the editor if you want to work with last configuration.\noutOfDateRevisionAlert=You are editing a historical revision of the diagram, please review the revision and open it to replace the latest version. Or close and overwrite/merge later.\nconfAErrFaqs=There are {1} error(s), the following instructions may help fixing most of the cases. (Please download the log for future references)\nconfA403ErrFaq=There are ({1}) 403 error(s). The current users must have add (write) permissions on all pages and attachments. Even admins sometimes are not allowed to write to some pages via page restrictions\nconfA404ErrFaq=There are ({1}) 404 error(s). The attachment/page is not found. This is due to improper migration or the diagram file (an attachment of the page) is deleted.\nconfA500ErrFaq=There are ({1}) 500 error(s). An internal server error in Confluence Cloud. Such errors are due to overloading the server and usually fixed by retrying the process.\nconfAOtherErrFaq=There are ({1}) other error(s). Please check the error description. If the description is not clear, please contact our support.\nconfAReplaceBaseUrl=Replace Base URL in diagram links when no page ID mapping is found\ndrawSvgPrev=draw.io SVG preview\ngoogleFonts=Google Fonts\ndiagDupl=Duplicate Diagram Detected\ndiagDuplMsg=This diagram is used in multiple places, which can result in unexpected results when edited. We\'ve created an independent copy. Please open the editor again.\ndiagDuplNoEditMsg=This diagram is used in multiple places. Please edit it within its own page.\nconfCloudMigConfirm=Warning: This process will edit many pages and diagrams, so it is recommended to stop the Synchrony service during the process. Do you want to proceed?\nconfCloudMigNotice=In the Cloud instance, please add linkAdjustments to draw.io configuration as follows {1}. Without this configuration, links in diagrams pointing to Confluence pages will not work.\nconfALogsPageDesc=This page contains logs of draw.io long running services as attachments\nconfEditOnlyInPageEditor=Can only be edited within Confluence page editor\nconfEvalWarn=Evaluation License - Not for production use\notherUsersEditing=Other user(s) are editing this diagram\nfirstTimeGD=First time to access this file?\ndrawioGDAppNotInstalled=draw.io Google Drive app is not installed, please install it first\nConfDC415Error=Saving drafts is blocked. If you have "Attachment Checker for Confluence" app, please update to the latest version.\nremove=Remove\nselectPgLyr=Select Page and Layers\nerrGenPreview=There was an error generating a diagram preview. Please consult technical support.\nattAccessErr=Diagram attachment access error: cannot display diagram\nwidthIntOrFixed=Width must be a valid integer or of value \'fixed\'\ndupDisabledPgLyrSlct=Diagram duplication is disabled when page and layers are selected\ncantDupPickDiffName=Could not duplicate diagram. Please choose a different name.\nownPgAccessDupErr=Owning page access restriction: cannot duplicate diagram.\ncantDupTryLater=Could not duplicate diagram. Please try again later.\ncantEditLnkd=Cannot edit linked diagram\ndiagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Would you like to open the owning page for edit?\ndiagInTemps=draw.io diagrams in templates\ndiagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.\nconfDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.\nconfConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.\ntryCurPageOnErr=Try finding the diagram attachment on the macro page when the linked page fails\nconfAExtSrvcNoSupported=Embedded diagrams from external services or urls are not supported.\ngliffyVersionPinning=Import Gliffy pinned version instead of the latest version\nconfEmbedUpload=For a better editing experience, please use the regular draw.io macro to insert a blank diagram, then from (File menu → Import From → Device...) select the file you want to upload and embed.\nconfPublishErr=Another update conflicted with your publish, please try the operation again\nconfACacheMapping=Cache page IDs mapping\nconfARemImpPages=Remember imported pages\ndelCachedData=Delete Cached Data\nk15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?\ndrawioUninstalled=draw.io has been uninstalled, the editor will now close\nconfAttachmentArchived=Diagram belongs to an archived page and cannot be loaded. Restore the page (ID: {1}) to load it.\nconfDiagramMacroDowngrade=The diagram is saved but the page macro cannot be updated as the diagraam revision in the macro is newer. Please edit the diagram from Confluence page editor.\nDCSave500Error=Another Confluence operation interrupted saving, retry #{1}\nconfAppNotInstalled=draw.io diagrams Confluence App is not installed.\nplsInstallAppInConf=Please install/connect this App in Confluence to be able to access the diagrams (in addition to draw.io Confluen app)\nm365=Microsoft 365\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"];Editor.currentTheme="";window.uiTheme="";GraphViewer=function(b,d,m){this.init(b,d,m)};mxUtils.extend(GraphViewer,mxEventSource);GraphViewer.prototype.editBlankUrl="1"==urlParams.dev?"https://test.draw.io/":"https://app.diagrams.net/";GraphViewer.prototype.imageBaseUrl=window.DRAWIO_BASE_URL+"/";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.darkMode=null;
GraphViewer.prototype.showLinkIcons=!1;GraphViewer.prototype.showTooltipIcons=!1;
@@ -4433,20 +4437,20 @@ GraphViewer.prototype.init=function(b,d,m){GraphViewer.initCss();this.graphConfi
null!=this.graphConfig["allow-zoom-in"]?this.graphConfig["allow-zoom-in"]:this.allowZoomIn;this.forceCenter=null!=this.graphConfig.forceCenter?this.graphConfig.forceCenter:this.forceCenter;this.hCenterOnly=null!=this.graphConfig.hCenterOnly?this.graphConfig.hCenterOnly:this.hCenterOnly;this.center=null!=this.graphConfig.center?this.graphConfig.center:this.center||this.forceCenter;this.checkVisibleState=null!=this.graphConfig["check-visible-state"]?this.graphConfig["check-visible-state"]:this.checkVisibleState;
this.darkMode=null!=this.graphConfig["dark-mode"]?this.graphConfig["dark-mode"]:this.darkMode;this.showLinkIcons=null!=this.graphConfig["show-link-icons"]?this.graphConfig["show-link-icons"]:this.showLinkIcons;this.showTooltipIcons=null!=this.graphConfig["show-tooltip-icons"]?this.graphConfig["show-tooltip-icons"]:this.showTooltipIcons;this.toolbarItems=null!=this.graphConfig.toolbar?this.graphConfig.toolbar.split(" "):[];this.zoomEnabled=0<=mxUtils.indexOf(this.toolbarItems,"zoom");this.layersEnabled=
0<=mxUtils.indexOf(this.toolbarItems,"layers");this.tagsEnabled=0<=mxUtils.indexOf(this.toolbarItems,"tags");this.lightboxEnabled=0<=mxUtils.indexOf(this.toolbarItems,"lightbox");this.lightboxClickEnabled=0!=this.graphConfig.lightbox;this.initialOverflow=document.body.style.overflow;this.initialWidth=null!=b?b.style.width:null;this.widthIsEmpty=null!=this.initialWidth?""==this.initialWidth:!0;this.currentPage=parseInt(this.graphConfig.page)||0;this.responsive=(null!=this.graphConfig.responsive?this.graphConfig.responsive:
-this.responsive)&&!this.zoomEnabled&&!mxClient.NO_FO&&!mxClient.IS_SF;this.pageId=this.graphConfig.pageId;this.editor=null;var n=this;"inline"==this.graphConfig["toolbar-position"]&&(this.minHeight+=this.toolbarHeight);if(null!=d&&(this.xmlDocument=d.ownerDocument,this.xmlNode=d,this.xml=mxUtils.getXml(d),null!=b)){var v=mxUtils.bind(this,function(){this.graph=new Graph(b);this.graph.enableFlowAnimation=!0;this.installDarkModeListener();if(this.responsive&&this.graph.dialect==mxConstants.DIALECT_SVG){var G=
+this.responsive)&&!this.zoomEnabled&&!mxClient.NO_FO&&!mxClient.IS_SF;this.pageId=this.graphConfig.pageId;this.editor=null;var n=this;"inline"==this.graphConfig["toolbar-position"]&&(this.minHeight+=this.toolbarHeight);if(null!=d&&(this.xmlDocument=d.ownerDocument,this.xmlNode=d,this.xml=mxUtils.getXml(d),null!=b)){var u=mxUtils.bind(this,function(){this.graph=new Graph(b);this.graph.enableFlowAnimation=!0;this.installDarkModeListener();if(this.responsive&&this.graph.dialect==mxConstants.DIALECT_SVG){var G=
this.graph.view.getDrawPane().ownerSVGElement,U=0;null!=this.graphConfig.border?U=this.graphConfig.border:""==b.style.padding&&(U=8);0<U&&(b.style.padding=U+"px",b.style.boxSizing="border-box");G.style.forcedColorAdjust="none";G.style.boxSizing="border-box";G.style.overflow="visible";this.graph.fit=function(){};var E=parseFloat(this.graphConfig["responsive-max-scale"]),R=parseFloat(b.style.maxWidth);this.graph.sizeDidChange=function(){var M=this.view.graphBounds,ca=this.view.translate;G.setAttribute("viewBox",
M.x+ca.x-this.panDx+" "+(M.y+ca.y-this.panDy)+" "+(M.width+1)+" "+(M.height+1));this.container.style.backgroundColor=G.style.backgroundColor;isNaN(E)||(ca=Math.round((M.width+1)*E+2*U),ca=isNaN(R)?ca:Math.min(ca,R),this.container.style.maxWidth=ca+"px");this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",M))}}this.graphConfig.move&&(this.graph.isMoveCellsEvent=function(M){return!0});this.lightboxClickEnabled&&(b.style.cursor="pointer");this.editor=new Editor(!0,null,null,this.graph);this.editor.editBlankUrl=
this.editBlankUrl;this.graph.lightbox=!0;this.graph.centerZoom=!1;this.graph.autoExtend=!1;this.graph.autoScroll=!1;this.graph.showLinkIcons=this.showLinkIcons;this.graph.showTooltipIcons=this.showTooltipIcons;this.graph.setEnabled(!1);1==this.graphConfig["toolbar-nohide"]&&(this.editor.defaultGraphOverflow="visible");var N=this.editor.extractGraphModel(this.xmlNode,!0);if(null!=N&&N!=d)try{this.xml=mxUtils.getXml(N),this.xmlNode=N,this.xmlDocument=N.ownerDocument}catch(M){}this.graph.getImageFromBundles=
function(M){return n.getImageUrl(M)};this.graph.addSvgShadow(this.graph.view.canvas.ownerSVGElement,null,!0);if("mxfile"==this.xmlNode.nodeName){var c=this.xmlNode.getElementsByTagName("diagram");if(0<c.length){if(null!=this.pageId)for(N=0;N<c.length;N++)if(this.pageId==c[N].getAttribute("id")){this.currentPage=N;break}var g=this.graph.getGlobalVariable,k=null;try{var q=n.xmlNode.getAttribute("vars");null!=q&&0<q.length&&(k=JSON.parse(q))}catch(M){}this.graph.getGlobalVariable=function(M){var ca=
-c[n.currentPage];if("page"==M)return ca.getAttribute("name")||"Page-"+(n.currentPage+1);if("pagenumber"==M)return n.currentPage+1;if("pagecount"==M)return c.length;ca=g.apply(this,arguments);null==ca&&null!=k&&(ca=k[M]);return ca}}}this.diagrams=[];var A=null;this.selectPage=function(M){if(!this.handlingResize){if(this.tagsEnabled&&null!=this.graphConfig.hiddenTags){var ca=this.diagrams[this.currentPage].getAttribute("id");this.graphConfig.hiddenTags[ca]=0<this.graph.hiddenTags.length?this.graph.hiddenTags.slice():
-null}this.currentPage=mxUtils.mod(M,this.diagrams.length);this.tagsEnabled&&null!=this.graphConfig.hiddenTags&&(M=this.diagrams[this.currentPage].getAttribute("id"),M=this.graphConfig.hiddenTags[M],this.graph.hiddenTags=null!=M&&0<M.length?M:[]);this.updateGraphXml(Editor.parseDiagramNode(this.diagrams[this.currentPage]))}};this.selectPageById=function(M){M=this.getIndexById(M);var ca=0<=M;ca&&this.selectPage(M);return ca};q=mxUtils.bind(this,function(){if(null==this.xmlNode||"mxfile"!=this.xmlNode.nodeName)this.diagrams=
-[];this.xmlNode!=A&&(this.diagrams=this.xmlNode.getElementsByTagName("diagram"),A=this.xmlNode)});var D=this.graph.setBackgroundImage;this.graph.setBackgroundImage=function(M){if(null!=M&&Graph.isPageLink(M.src)){var ca=M.src,fa=ca.indexOf(",");0<fa&&(fa=n.getIndexById(ca.substring(fa+1)),0<=fa&&(M=n.getImageForGraphModel(Editor.parseDiagramNode(n.diagrams[fa])),M.originalSrc=ca))}D.apply(this,arguments)};var H=this.graph.getGraphBounds;this.graph.getGraphBounds=function(M){var ca=H.apply(this,arguments);
-M=this.backgroundImage;if(null!=M){var fa=this.view.translate,ha=this.view.scale;ca=mxRectangle.fromRectangle(ca);ca.add(new mxRectangle((fa.x+M.x)*ha,(fa.y+M.y)*ha,M.width*ha,M.height*ha))}return ca};this.addListener("xmlNodeChanged",q);q();urlParams.page=n.currentPage;q=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;q=this.setLayersVisible();if(this.tagsEnabled&&null!=
-this.graphConfig.hiddenTags&&null!=this.diagrams&&null!=this.diagrams[this.currentPage]){var K=this.diagrams[this.currentPage].getAttribute("id"),P=this.graphConfig.hiddenTags[K];null!=P&&0<P.length&&(this.graph.hiddenTags=P)}this.fireEvent(new mxEventObject("graphInitialized"));this.responsive||(this.graph.border=null!=this.graphConfig.border?this.graphConfig.border:8);this.installBackgroundColorHandler();GraphViewer.viewerInitialized(this)}finally{this.graph.getModel().endUpdate()}this.responsive||
+c[n.currentPage];if("page"==M)return ca.getAttribute("name")||"Page-"+(n.currentPage+1);if("pagenumber"==M)return n.currentPage+1;if("pagecount"==M)return c.length;ca=g.apply(this,arguments);null==ca&&null!=k&&(ca=k[M]);return ca}}}this.diagrams=[];var A=null;this.selectPage=function(M){if(!this.handlingResize){if(this.tagsEnabled&&null!=this.graphConfig.hiddenTags&&null!=this.diagrams[this.currentPage]){var ca=this.diagrams[this.currentPage].getAttribute("id");this.graphConfig.hiddenTags[ca]=0<this.graph.hiddenTags.length?
+this.graph.hiddenTags.slice():null}this.currentPage=mxUtils.mod(M,this.diagrams.length);this.tagsEnabled&&null!=this.graphConfig.hiddenTags&&null!=this.diagrams[this.currentPage]&&(M=this.diagrams[this.currentPage].getAttribute("id"),M=this.graphConfig.hiddenTags[M],this.graph.hiddenTags=null!=M&&0<M.length?M:[]);this.updateGraphXml(Editor.parseDiagramNode(this.diagrams[this.currentPage]))}};this.selectPageById=function(M){M=this.getIndexById(M);var ca=0<=M;ca&&this.selectPage(M);return ca};q=mxUtils.bind(this,
+function(){if(null==this.xmlNode||"mxfile"!=this.xmlNode.nodeName)this.diagrams=[];this.xmlNode!=A&&(this.diagrams=this.xmlNode.getElementsByTagName("diagram"),A=this.xmlNode)});var D=this.graph.setBackgroundImage;this.graph.setBackgroundImage=function(M){if(null!=M&&Graph.isPageLink(M.src)){var ca=M.src,fa=ca.indexOf(",");0<fa&&(fa=n.getIndexById(ca.substring(fa+1)),0<=fa&&(M=n.getImageForGraphModel(Editor.parseDiagramNode(n.diagrams[fa])),M.originalSrc=ca))}D.apply(this,arguments)};var H=this.graph.getGraphBounds;
+this.graph.getGraphBounds=function(M){var ca=H.apply(this,arguments);M=this.backgroundImage;if(null!=M){var fa=this.view.translate,ha=this.view.scale;ca=mxRectangle.fromRectangle(ca);ca.add(new mxRectangle((fa.x+M.x)*ha,(fa.y+M.y)*ha,M.width*ha,M.height*ha))}return ca};this.addListener("xmlNodeChanged",q);q();urlParams.page=n.currentPage;q=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;q=this.setLayersVisible();if(this.tagsEnabled&&null!=this.graphConfig.hiddenTags&&null!=this.diagrams&&null!=this.diagrams[this.currentPage]){var K=this.diagrams[this.currentPage].getAttribute("id"),P=this.graphConfig.hiddenTags[K];null!=P&&0<P.length&&(this.graph.hiddenTags=P)}this.fireEvent(new mxEventObject("graphInitialized"));this.responsive||(this.graph.border=null!=this.graphConfig.border?this.graphConfig.border:8);this.installBackgroundColorHandler();GraphViewer.viewerInitialized(this)}finally{this.graph.getModel().endUpdate()}this.responsive||
(this.graph.panningHandler.isForcePanningEvent=function(M){return!mxEvent.isPopupTrigger(M.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.titleTooltip||
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.initialViewState={translate:this.graph.view.translate.clone(),scale:this.graph.view.scale};null!=q&&this.setLayersVisible(q);this.graph.customLinkClicked=function(M,ca){try{if(Graph.isPageLink(M)){var fa=M.indexOf(",");n.selectPageById(M.substring(fa+1))||alert(mxResources.get("pageNotFound")||"Page not found")}else{var ha=
this.getGraphBounds();this.handleCustomLink(M,ca);ha.equals(this.getGraphBounds())||n.crop()}}catch(ea){alert(ea.message)}return!0};var W=this.graph.foldTreeCell;this.graph.foldTreeCell=mxUtils.bind(this,function(){this.treeCellFolded=!0;return W.apply(this.graph,arguments)});this.fireEvent(new mxEventObject("render"))});m=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(this.checkVisibleState&&0==b.offsetWidth&&null==this.getAncestorDetails(b)&&"undefined"!==
-typeof m){var p=this.getObservableParent(b),z=new m(mxUtils.bind(this,function(G){0<b.offsetWidth&&(z.disconnect(),v())}));z.observe(p,{attributes:!0})}else v()}};
+typeof m){var p=this.getObservableParent(b),z=new m(mxUtils.bind(this,function(G){0<b.offsetWidth&&(z.disconnect(),u())}));z.observe(p,{attributes:!0})}else u()}};
GraphViewer.prototype.installBackgroundColorHandler=function(){var b=this.graph;if(null!=b){null!=GraphViewer.shapeBackgroundColor&&(b.shapeBackgroundColor=GraphViewer.shapeBackgroundColor);b.defaultPageBackgroundColor="transparent";b.diagramBackgroundColor="transparent";b.transparentBackground=!1;var d=b.background,m=mxUtils.bind(this,function(n){"none"==b.getAdaptiveColors()&&null==d&&(this.isDarkMode()?b.background="#ffffff":b.background=null,n&&b.view.validateBackground())});this.addListener("graphChanged",
function(){d=b.background;m(!0)});this.addListener("darkModeChanged",function(){m(!0)});m(!1)}};GraphViewer.prototype.installDarkModeListener=function(){null!=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",mxUtils.bind(this,function(){this.darkModeChanged();this.fireEvent(new mxEventObject("darkModeChanged"))}));this.darkModeChanged()};
GraphViewer.prototype.darkModeChanged=function(){if(null!=this.graph){var b=this.graph.container,d=this.isDarkMode();d?b.classList.add("geDarkMode"):b.classList.remove("geDarkMode");b.style.colorScheme=d?"dark":"light"}};GraphViewer.prototype.getAncestorDetails=function(b){for(;null!=b;){if("DETAILS"==b.nodeName)return b;b=b.parentNode}return null};
@@ -4454,23 +4458,23 @@ GraphViewer.prototype.getObservableParent=function(b){for(b=b.parentNode;b!=docu
GraphViewer.prototype.getImageForGraphModel=function(b){var d=Graph.createOffscreenGraph(this.graph.getStylesheet());d.getGlobalVariable=this.graph.getGlobalVariable;document.body.appendChild(d.container);b=(new mxCodec(b.ownerDocument)).decode(b).root;d.model.setRoot(b);b=d.getSvg();var m=d.getGraphBounds();document.body.removeChild(d.container);return new mxImage(Editor.createSvgDataUri(mxUtils.getXml(b)),m.width,m.height,m.x,m.y)};
GraphViewer.prototype.getIndexById=function(b){if(null!=this.diagrams)for(var d=0;d<this.diagrams.length;d++)if(this.diagrams[d].getAttribute("id")==b)return d;return-1};GraphViewer.prototype.setXmlNode=function(b){b=this.editor.extractGraphModel(b,!0);this.xmlDocument=b.ownerDocument;this.xml=mxUtils.getXml(b);this.xmlNode=b;this.updateGraphXml(b);this.fireEvent(new mxEventObject("xmlNodeChanged"))};
GraphViewer.prototype.setFileNode=function(b){null==this.xmlNode&&(this.xmlDocument=b.ownerDocument,this.xml=mxUtils.getXml(b),this.xmlNode=b);this.setGraphXml(b)};GraphViewer.prototype.updateGraphXml=function(b){this.setGraphXml(b);this.fireEvent(new mxEventObject("graphChanged"))};
-GraphViewer.prototype.setLayersVisible=function(b){var d=!0;if(!this.autoOrigin){var m=[],n=this.graph.getModel();n.beginUpdate();try{for(var v=0;v<n.getChildCount(n.root);v++){var p=n.getChildAt(n.root,v);d=d&&n.isVisible(p);m.push(n.isVisible(p));n.setVisible(p,null!=b?b[v]:!0)}}finally{n.endUpdate()}}return d?null:m};
+GraphViewer.prototype.setLayersVisible=function(b){var d=!0;if(!this.autoOrigin){var m=[],n=this.graph.getModel();n.beginUpdate();try{for(var u=0;u<n.getChildCount(n.root);u++){var p=n.getChildAt(n.root,u);d=d&&n.isVisible(p);m.push(n.isVisible(p));n.setVisible(p,null!=b?b[u]:!0)}}finally{n.endUpdate()}}return d?null:m};
GraphViewer.prototype.setGraphXml=function(b){if(null!=this.graph){this.graph.view.translate=new mxPoint;this.graph.view.scale=1;var d=null;this.graph.getModel().beginUpdate();try{this.graph.getModel().clear(),this.editor.setGraphXml(b),d=this.setLayersVisible(!0)}finally{this.graph.getModel().endUpdate()}this.responsive||(this.widthIsEmpty?(this.graph.container.style.width="",this.graph.container.style.height=""):this.graph.container.style.width=this.initialWidth,this.positionGraph());this.graph.initialViewState=
{translate:this.graph.view.translate.clone(),scale:this.graph.view.scale};d&&this.setLayersVisible(d)}};GraphViewer.prototype.isDarkMode=function(){return"dark"==this.darkMode||"auto"==this.darkMode&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches};
GraphViewer.prototype.addSizeHandler=function(){var b=this.graph.container,d=this.graph.getGraphBounds(),m=!1;b.style.overflow=1!=this.graphConfig["toolbar-nohide"]?"hidden":"visible";var n=mxUtils.bind(this,function(){if(!m){m=!0;var G=this.graph.getGraphBounds();b.style.overflow=1!=this.graphConfig["toolbar-nohide"]?G.width+2*this.graph.border>b.offsetWidth-2?"auto":"hidden":"visible";if(null!=this.toolbar&&1!=this.graphConfig["toolbar-nohide"]){G=b.getBoundingClientRect();var U=mxUtils.getScrollOrigin(document.body);
U="relative"===document.body.style.position?document.body.getBoundingClientRect():{left:-U.x,top:-U.y};G={left:G.left-U.left,top:G.top-U.top,bottom:G.bottom-U.top,right:G.right-U.left};this.toolbar.style.left=G.left+"px";"bottom"==this.graphConfig["toolbar-position"]?this.toolbar.style.top=G.bottom-1+"px":"inline"!=this.graphConfig["toolbar-position"]?(this.toolbar.style.width=Math.max(this.minToolbarWidth,b.offsetWidth)+"px",this.toolbar.style.top=G.top+1+"px"):this.toolbar.style.top=G.top+"px"}else null!=
-this.toolbar&&(this.toolbar.style.width=Math.max(this.minToolbarWidth,b.offsetWidth)+"px");this.treeCellFolded&&(this.treeCellFolded=!1,this.positionGraph(this.graph.view.translate),this.graph.initialViewState.translate=this.graph.view.translate.clone());m=!1}}),v=null;this.handlingResize=!1;this.fitGraph=mxUtils.bind(this,function(G){var U=b.offsetWidth;U==v||this.handlingResize||(this.handlingResize=!0,"auto"==b.style.overflow&&(b.style.overflow="hidden"),this.graph.maxFitScale=null!=G?G:this.graphConfig.zoom||
-(this.allowZoomIn?null:1),this.graph.fit(null,null,null,null,null,!0),(this.center||0==this.graphConfig.resize&&""!=b.style.height)&&this.graph.center(!0,this.hCenterOnly?!1:!0),this.graph.maxFitScale=null,(0!=this.graphConfig.resize||""==b.style.height||this.hCenterOnly)&&this.updateContainerHeight(b,Math.max(this.minHeight,this.graph.getGraphBounds().height+2*this.graph.border+1)),this.graph.initialViewState={translate:this.graph.view.translate.clone(),scale:this.graph.view.scale},v=U,window.setTimeout(mxUtils.bind(this,
+this.toolbar&&(this.toolbar.style.width=Math.max(this.minToolbarWidth,b.offsetWidth)+"px");this.treeCellFolded&&(this.treeCellFolded=!1,this.positionGraph(this.graph.view.translate),this.graph.initialViewState.translate=this.graph.view.translate.clone());m=!1}}),u=null;this.handlingResize=!1;this.fitGraph=mxUtils.bind(this,function(G){var U=b.offsetWidth;U==u||this.handlingResize||(this.handlingResize=!0,"auto"==b.style.overflow&&(b.style.overflow="hidden"),this.graph.maxFitScale=null!=G?G:this.graphConfig.zoom||
+(this.allowZoomIn?null:1),this.graph.fit(null,null,null,null,null,!0),(this.center||0==this.graphConfig.resize&&""!=b.style.height)&&this.graph.center(!0,this.hCenterOnly?!1:!0),this.graph.maxFitScale=null,(0!=this.graphConfig.resize||""==b.style.height||this.hCenterOnly)&&this.updateContainerHeight(b,Math.max(this.minHeight,this.graph.getGraphBounds().height+2*this.graph.border+1)),this.graph.initialViewState={translate:this.graph.view.translate.clone(),scale:this.graph.view.scale},u=U,window.setTimeout(mxUtils.bind(this,
function(){this.handlingResize=!1}),0))});GraphViewer.useResizeSensor&&(9>=document.documentMode?(mxEvent.addListener(window,"resize",n),this.graph.addListener("size",n)):new ResizeSensor(this.graph.container,n));if(this.graphConfig.resize||(this.zoomEnabled||!this.autoFit)&&0!=this.graphConfig.resize)this.graph.minimumContainerSize=new mxRectangle(0,0,this.minWidth,this.minHeight),this.graph.resizeContainer=!0;else if(!this.widthIsEmpty||""!=b.style.height&&this.autoFit||this.updateContainerWidth(b,
-d.width+2*this.graph.border),0==this.graphConfig.resize&&""!=b.style.height||this.updateContainerHeight(b,Math.max(this.minHeight,d.height+2*this.graph.border+1)),!this.zoomEnabled&&this.autoFit){var p=v=null;n=mxUtils.bind(this,function(){window.clearTimeout(p);this.handlingResize||(p=window.setTimeout(mxUtils.bind(this,this.fitGraph),100))});GraphViewer.useResizeSensor&&(9>=document.documentMode?mxEvent.addListener(window,"resize",n):new ResizeSensor(this.graph.container,n))}else 9>=document.documentMode||
+d.width+2*this.graph.border),0==this.graphConfig.resize&&""!=b.style.height||this.updateContainerHeight(b,Math.max(this.minHeight,d.height+2*this.graph.border+1)),!this.zoomEnabled&&this.autoFit){var p=u=null;n=mxUtils.bind(this,function(){window.clearTimeout(p);this.handlingResize||(p=window.setTimeout(mxUtils.bind(this,this.fitGraph),100))});GraphViewer.useResizeSensor&&(9>=document.documentMode?mxEvent.addListener(window,"resize",n):new ResizeSensor(this.graph.container,n))}else 9>=document.documentMode||
this.graph.addListener("size",n);var z=mxUtils.bind(this,function(G){var U=b.style.minWidth;this.widthIsEmpty&&(b.style.minWidth="100%");var E=null!=this.graphConfig["max-height"]?this.graphConfig["max-height"]:""!=b.style.height&&this.autoFit?b.offsetHeight:void 0;0<b.offsetWidth&&null==G&&this.allowZoomOut&&(this.allowZoomIn||d.width+2*this.graph.border>b.offsetWidth||d.height+2*this.graph.border>E)?(G=null,null!=E&&d.height+2*this.graph.border>E-2&&(G=(E-2*this.graph.border-2)/d.height),this.fitGraph(G)):
-this.widthIsEmpty||null!=G||0!=this.graphConfig.resize||""==b.style.height?(G=null!=G?G:new mxPoint,this.graph.view.setTranslate(Math.floor(this.graph.border-d.x/this.graph.view.scale)+G.x,Math.floor(this.graph.border-d.y/this.graph.view.scale)+G.y),v=b.offsetWidth):this.graph.center((!this.widthIsEmpty||d.width<this.minWidth)&&1!=this.graphConfig.resize);b.style.minWidth=U});8==document.documentMode?window.setTimeout(z,0):z();this.positionGraph=function(G){d=this.graph.getGraphBounds();v=null;z(G)}};
+this.widthIsEmpty||null!=G||0!=this.graphConfig.resize||""==b.style.height?(G=null!=G?G:new mxPoint,this.graph.view.setTranslate(Math.floor(this.graph.border-d.x/this.graph.view.scale)+G.x,Math.floor(this.graph.border-d.y/this.graph.view.scale)+G.y),u=b.offsetWidth):this.graph.center((!this.widthIsEmpty||d.width<this.minWidth)&&1!=this.graphConfig.resize);b.style.minWidth=U});8==document.documentMode?window.setTimeout(z,0):z();this.positionGraph=function(G){d=this.graph.getGraphBounds();u=null;z(G)}};
GraphViewer.prototype.crop=function(){var b=this.graph,d=b.getGraphBounds(),m=b.border,n=b.view.scale;b.view.setTranslate(null!=d.x?Math.floor(b.view.translate.x-d.x/n+m):m,null!=d.y?Math.floor(b.view.translate.y-d.y/n+m):m)};GraphViewer.prototype.updateContainerWidth=function(b,d){b.style.width=d+"px"};GraphViewer.prototype.updateContainerHeight=function(b,d){if(this.forceCenter||this.zoomEnabled||!this.autoFit||"BackCompat"==document.compatMode||8==document.documentMode)b.style.height=d+"px"};
-GraphViewer.prototype.showLayers=function(b,d){var m=this.graphConfig.layers;m=null!=m&&0<m.length?m.split(" "):[];var n=this.graphConfig.layerIds,v=null!=n&&0<n.length,p=!1;if(0<m.length||v||null!=d){d=null!=d?d.getModel():null;b=b.getModel();b.beginUpdate();try{var z=b.getChildCount(b.root);if(null==d){d=!1;p={};if(v)for(var G=0;G<n.length;G++){var U=b.getCell(n[G]);null!=U&&(d=!0,p[U.id]=!0)}else for(G=0;G<m.length;G++)U=b.getChildAt(b.root,parseInt(m[G])),null!=U&&(d=!0,p[U.id]=!0);for(G=0;d&&
+GraphViewer.prototype.showLayers=function(b,d){var m=this.graphConfig.layers;m=null!=m&&0<m.length?m.split(" "):[];var n=this.graphConfig.layerIds,u=null!=n&&0<n.length,p=!1;if(0<m.length||u||null!=d){d=null!=d?d.getModel():null;b=b.getModel();b.beginUpdate();try{var z=b.getChildCount(b.root);if(null==d){d=!1;p={};if(u)for(var G=0;G<n.length;G++){var U=b.getCell(n[G]);null!=U&&(d=!0,p[U.id]=!0)}else for(G=0;G<m.length;G++)U=b.getChildAt(b.root,parseInt(m[G])),null!=U&&(d=!0,p[U.id]=!0);for(G=0;d&&
G<z;G++)U=b.getChildAt(b.root,G),b.setVisible(U,p[U.id]||!1)}else for(G=0;G<z;G++)b.setVisible(b.getChildAt(b.root,G),d.isVisible(d.getChildAt(d.root,G)))}finally{b.endUpdate()}p=!0}return p};
GraphViewer.prototype.addToolbar=function(){var b=this.graph.container;"bottom"==this.graphConfig["toolbar-position"]?b.style.marginBottom=this.toolbarHeight+"px":"inline"!=this.graphConfig["toolbar-position"]&&(b.style.marginTop=this.toolbarHeight+"px");var d=b.ownerDocument.createElement("div");d.style.display="flex";d.style.alignItems="center";d.style.position="absolute";d.style.overflow="hidden";d.style.boxSizing="border-box";d.style.whiteSpace="nowrap";d.style.textAlign="left";d.style.zIndex=
this.toolbarZIndex;d.style.backgroundColor="light-dark(#eeeeee, "+GraphViewer.darkBackgroundColor+")";d.style.height=this.toolbarHeight+"px";var m=mxUtils.bind(this,function(){this.isDarkMode()?(d.classList.add("geDarkMode"),d.style.colorScheme="dark"):(d.classList.remove("geDarkMode"),d.style.colorScheme="light")});this.addListener("darkModeChanged",m);this.toolbar=d;m();if("inline"==this.graphConfig["toolbar-position"]){mxUtils.setPrefixedStyle(d.style,"transition","opacity 100ms ease-in-out");
-mxUtils.setOpacity(d,30);var n=null,v=null,p=mxUtils.bind(this,function(fa){null!=n&&(window.clearTimeout(n),fadeThead=null);null!=v&&(window.clearTimeout(v),fadeThead2=null);n=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(d,0);n=null;v=window.setTimeout(mxUtils.bind(this,function(){d.style.display="none";v=null}),100)}),fa||200)}),z=mxUtils.bind(this,function(fa){null!=n&&(window.clearTimeout(n),fadeThead=null);null!=v&&(window.clearTimeout(v),fadeThead2=null);d.style.display=
+mxUtils.setOpacity(d,30);var n=null,u=null,p=mxUtils.bind(this,function(fa){null!=n&&(window.clearTimeout(n),fadeThead=null);null!=u&&(window.clearTimeout(u),fadeThead2=null);n=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(d,0);n=null;u=window.setTimeout(mxUtils.bind(this,function(){d.style.display="none";u=null}),100)}),fa||200)}),z=mxUtils.bind(this,function(fa){null!=n&&(window.clearTimeout(n),fadeThead=null);null!=u&&(window.clearTimeout(u),fadeThead2=null);d.style.display=
"flex";mxUtils.setOpacity(d,fa||30)});mxEvent.addListener(this.graph.container,mxClient.IS_POINTER?"pointermove":"mousemove",mxUtils.bind(this,function(fa){mxEvent.isTouchEvent(fa)||(z(30),p())}));mxEvent.addListener(d,mxClient.IS_POINTER?"pointermove":"mousemove",function(fa){mxEvent.consume(fa)});mxEvent.addListener(d,"mouseenter",mxUtils.bind(this,function(fa){z(100)}));mxEvent.addListener(d,"mousemove",mxUtils.bind(this,function(fa){z(100);mxEvent.consume(fa)}));mxEvent.addListener(d,"mouseleave",
mxUtils.bind(this,function(fa){mxEvent.isTouchEvent(fa)||z(30)}));var G=this.graph,U=G.getTolerance();G.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(fa,ha){this.startX=ha.getGraphX();this.startY=ha.getGraphY();this.scrollLeft=G.container.scrollLeft;this.scrollTop=G.container.scrollTop},mouseMove:function(fa,ha){},mouseUp:function(fa,ha){mxEvent.isTouchEvent(ha.getEvent())&&Math.abs(this.scrollLeft-G.container.scrollLeft)<U&&Math.abs(this.scrollTop-G.container.scrollTop)<
U&&Math.abs(this.startX-ha.getGraphX())<U&&Math.abs(this.startY-ha.getGraphY())<U&&(0<parseFloat(d.style.opacity||0)?p():z(30))}})}m=this.toolbarItems;for(var E=0,R=mxUtils.bind(this,function(fa,ha,ea,ka){fa=this.createToolbarButton(fa,ha,ea,ka);d.appendChild(fa);E++;return fa}),N=this.graph.getModel(),c=null,g=null,k=null,q=null,A=0;A<m.length;A++){var D=m[A];if("pages"==D){q=b.ownerDocument.createElement("div");q.style.display="inline-flex";q.style.position="relative";q.style.alignItems="center";
@@ -4490,27 +4494,27 @@ this.graphConfig.titleTooltip||this.graphConfig.title),mxUtils.write(m,this.grap
ha="relative"===document.body.style.position?document.body.getBoundingClientRect():{left:-ha.x,top:-ha.y};fa={left:fa.left-ha.left,top:fa.top-ha.top,bottom:fa.bottom-ha.top,right:fa.right-ha.left};d.style.left=fa.left+"px";"bottom"==this.graphConfig["toolbar-position"]?d.style.top=fa.bottom-1+"px":"inline"!=this.graphConfig["toolbar-position"]?(d.style.marginTop=-this.toolbarHeight+"px",d.style.top=fa.top+1+"px"):d.style.top=fa.top+"px";"1px solid transparent"==M&&(b.style.border="1px solid #d0d0d0");
document.body.appendChild(d);var ea=mxUtils.bind(this,function(){null!=d.parentNode&&d.parentNode.removeChild(d);null!=k&&(k.parentNode.removeChild(k),k=null);null!=c&&(c.parentNode.removeChild(c),c=null);b.style.border=M});mxEvent.addListener(document,"mousemove",function(ka){for(ka=mxEvent.getSource(ka);null!=ka;){if(ka==b||ka==d||ka==c||ka==k)return;ka=ka.parentNode}ea()});mxEvent.addListener(document.body,"mouseleave",function(ka){ea()})}else d.style.top=-this.toolbarHeight+"px",b.appendChild(d)});
1!=this.graphConfig["toolbar-nohide"]?mxEvent.addListener(b,"mouseenter",ca):ca();this.responsive&&"undefined"!==typeof ResizeObserver&&(new ResizeObserver(function(){null!=d.parentNode&&ca()})).observe(b)};
-GraphViewer.prototype.createToolbarButton=function(b,d,m,n){var v=document.createElement("div");v.style.borderRight="1px solid #d0d0d0";v.style.display="inline-flex";v.style.alignItems="center";v.style.padding="6px";mxEvent.addListener(v,"click",b);null!=m&&v.setAttribute("title",m);b=document.createElement("img");b.setAttribute("border","0");b.setAttribute("src",d);b.style.width="18px";b.className="geAdaptiveAsset";null==n||n?(mxEvent.addListener(v,"mouseenter",function(){v.style.backgroundColor=
-"light-dark(#dddddd,#333333)"}),mxEvent.addListener(v,"mouseleave",function(){v.style.backgroundColor="transparent"}),mxUtils.setOpacity(b,60),v.style.cursor="pointer"):mxUtils.setOpacity(v,30);v.appendChild(b);return v};
+GraphViewer.prototype.createToolbarButton=function(b,d,m,n){var u=document.createElement("div");u.style.borderRight="1px solid #d0d0d0";u.style.display="inline-flex";u.style.alignItems="center";u.style.padding="6px";mxEvent.addListener(u,"click",b);null!=m&&u.setAttribute("title",m);b=document.createElement("img");b.setAttribute("border","0");b.setAttribute("src",d);b.style.width="18px";b.className="geAdaptiveAsset";null==n||n?(mxEvent.addListener(u,"mouseenter",function(){u.style.backgroundColor=
+"light-dark(#dddddd,#333333)"}),mxEvent.addListener(u,"mouseleave",function(){u.style.backgroundColor="transparent"}),mxUtils.setOpacity(b,60),u.style.cursor="pointer"):mxUtils.setOpacity(u,30);u.appendChild(b);return u};
GraphViewer.prototype.disableButton=function(b,d){var m=this.graphConfig["toolbar-buttons"]?this.graphConfig["toolbar-buttons"][b]:null;null!=m&&(mxUtils.setOpacity(m.elem,30),mxEvent.removeListener(m.elem,"click",m.handler),mxEvent.addListener(m.elem,"mouseenter",function(){m.elem.style.backgroundColor="#eee"}),d&&m.elem.setAttribute("title",d))};
-GraphViewer.prototype.addClickHandler=function(b,d){b.linkPolicy=this.graphConfig.target||b.linkPolicy;b.addClickHandler(this.graphConfig.highlight,mxUtils.bind(this,function(m,n,v){if(null==n)for(var p=mxEvent.getSource(m);p!=b.container&&null!=p&&null==n;)"a"==p.nodeName.toLowerCase()&&(n=p.getAttribute("href")),p=p.parentNode;null!=d?null==n||b.isCustomLink(n)?mxEvent.consume(m):b.isExternalProtocol(n)||b.isBlankLink(n)||window.setTimeout(function(){d.destroy()},0):null!=n&&null==d&&b.isCustomLink(n)&&
-(mxEvent.isTouchEvent(m)||!mxEvent.isPopupTrigger(m))&&b.customLinkClicked(n,v)&&(mxUtils.clearSelection(),mxEvent.consume(m))}),mxUtils.bind(this,function(m){if(null==d&&this.lightboxClickEnabled&&(!mxEvent.isTouchEvent(m)||0==this.toolbarItems.length))try{this.showLightbox()}catch(n){alert(n.message)}}))};
-GraphViewer.prototype.showLightbox=function(b,d,m){if("open"==this.graphConfig.lightbox||window.self!==window.top)if(null==this.lightboxWindow||this.lightboxWindow.closed){b=null!=b?b:null!=this.graphConfig.editable?this.graphConfig.editable:!0;m={client:1,target:null!=m?m:"blank"};b&&(m.edit=this.graphConfig.edit||"_blank");if(null!=d?d:1)m.close=1;this.layersEnabled&&(m.layers=1);this.tagsEnabled&&(b=this.diagrams[this.currentPage].getAttribute("id"),null==this.graphConfig.hiddenTags&&(this.graphConfig.hiddenTags=
-{}),this.graphConfig.hiddenTags[b]=0<this.graph.hiddenTags.length?this.graph.hiddenTags.slice():null,m.tags=this.graphConfig.hiddenTags);null!=this.graphConfig&&0!=this.graphConfig.nav&&(m.nav=1);null!=this.graphConfig&&null!=this.graphConfig.highlight&&(m.highlight=this.graphConfig.highlight.substring(1));null!=this.currentPage&&0<this.currentPage&&(m.page=this.currentPage);"undefined"!==typeof window.postMessage&&(null==document.documentMode||10<=document.documentMode)?null==this.lightboxWindow&&
-mxEvent.addListener(window,"message",mxUtils.bind(this,function(n){"ready"==n.data&&n.source==this.lightboxWindow&&this.lightboxWindow.postMessage(this.xml,"*")})):m.data=encodeURIComponent(this.xml);"1"==urlParams.dev&&(m.dev="1");this.lightboxWindow=window.open(("1"!=urlParams.dev?EditorUi.lightboxHost:"https://test.draw.io")+"/#P"+encodeURIComponent(JSON.stringify(m)))}else this.lightboxWindow.focus();else this.showLocalLightbox()};
+GraphViewer.prototype.addClickHandler=function(b,d){b.linkPolicy=this.graphConfig.target||b.linkPolicy;b.addClickHandler(this.graphConfig.highlight,mxUtils.bind(this,function(m,n,u){if(null==n)for(var p=mxEvent.getSource(m);p!=b.container&&null!=p&&null==n;)"a"==p.nodeName.toLowerCase()&&(n=p.getAttribute("href")),p=p.parentNode;null!=d?null==n||b.isCustomLink(n)?mxEvent.consume(m):b.isExternalProtocol(n)||b.isBlankLink(n)||window.setTimeout(function(){d.destroy()},0):null!=n&&null==d&&b.isCustomLink(n)&&
+(mxEvent.isTouchEvent(m)||!mxEvent.isPopupTrigger(m))&&b.customLinkClicked(n,u)&&(mxUtils.clearSelection(),mxEvent.consume(m))}),mxUtils.bind(this,function(m){if(null==d&&this.lightboxClickEnabled&&(!mxEvent.isTouchEvent(m)||0==this.toolbarItems.length))try{this.showLightbox()}catch(n){alert(n.message)}}))};
+GraphViewer.prototype.showLightbox=function(b,d,m){if("open"==this.graphConfig.lightbox||window.self!==window.top)if(null==this.lightboxWindow||this.lightboxWindow.closed){b=null!=b?b:null!=this.graphConfig.editable?this.graphConfig.editable:!0;m={client:1,target:null!=m?m:"blank"};b&&(m.edit=this.graphConfig.edit||"_blank");if(null!=d?d:1)m.close=1;this.layersEnabled&&(m.layers=1);this.tagsEnabled&&null!=this.diagrams&&null!=this.diagrams[this.currentPage]&&(b=this.diagrams[this.currentPage].getAttribute("id"),
+null==this.graphConfig.hiddenTags&&(this.graphConfig.hiddenTags={}),this.graphConfig.hiddenTags[b]=0<this.graph.hiddenTags.length?this.graph.hiddenTags.slice():null,m.tags=this.graphConfig.hiddenTags);null!=this.graphConfig&&0!=this.graphConfig.nav&&(m.nav=1);null!=this.graphConfig&&null!=this.graphConfig.highlight&&(m.highlight=this.graphConfig.highlight.substring(1));null!=this.currentPage&&0<this.currentPage&&(m.page=this.currentPage);"undefined"!==typeof window.postMessage&&(null==document.documentMode||
+10<=document.documentMode)?null==this.lightboxWindow&&mxEvent.addListener(window,"message",mxUtils.bind(this,function(n){"ready"==n.data&&n.source==this.lightboxWindow&&this.lightboxWindow.postMessage(this.xml,"*")})):m.data=encodeURIComponent(this.xml);"1"==urlParams.dev&&(m.dev="1");this.lightboxWindow=window.open(("1"!=urlParams.dev?EditorUi.lightboxHost:"https://test.draw.io")+"/#P"+encodeURIComponent(JSON.stringify(m)))}else this.lightboxWindow.focus();else this.showLocalLightbox()};
GraphViewer.prototype.showLocalLightbox=function(b){var d=document.createElement("div");d.style.position="fixed";d.style.top="0";d.style.left="0";d.style.bottom="0";d.style.right="0";d.style.zIndex=this.lightboxZIndex;d.style.backgroundColor="#000000";mxUtils.setOpacity(d,70);document.body.appendChild(d);var m=document.createElement("img");m.setAttribute("border","0");m.setAttribute("src",Editor.closeBlackImage);m.style.position="fixed";m.style.top="32px";m.style.right="32px";m.style.cursor="pointer";
m.className="geAdaptiveAsset";var n=mxUtils.bind(this,function(){z.setDarkMode(this.isDarkMode())});mxEvent.addListener(m,"click",mxUtils.bind(this,function(){this.removeListener("darkModeChanged",n);z.destroy()}));urlParams.pages="1";urlParams.page=this.currentPage;urlParams["page-id"]=this.graphConfig.pageId;urlParams["layer-ids"]=null!=this.graphConfig.layerIds&&0<this.graphConfig.layerIds.length?this.graphConfig.layerIds.join(" "):null;urlParams.nav=0!=this.graphConfig.nav?"1":"0";urlParams.layers=
-this.layersEnabled?"1":"0";urlParams.dark=this.isDarkMode()?"1":"0";if(this.tagsEnabled){var v=this.diagrams[this.currentPage].getAttribute("id");null==this.graphConfig.hiddenTags&&(this.graphConfig.hiddenTags={});this.graphConfig.hiddenTags[v]=0<this.graph.hiddenTags.length?this.graph.hiddenTags.slice():null;urlParams.tags=JSON.stringify(this.graphConfig.hiddenTags)}if(null!=b)try{var p=JSON.parse(decodeURIComponent(urlParams["toolbar-config"]||"{}"));p.noCloseBtn=!0;urlParams["toolbar-config"]=
-encodeURIComponent(JSON.stringify(p))}catch(k){}if(null==document.documentMode||10<=document.documentMode)Editor.prototype.editButtonLink=this.graphConfig.edit,Editor.prototype.editButtonFunc=this.graphConfig.editFunc;EditorUi.prototype.updateActionStates=function(){};EditorUi.prototype.addBeforeUnloadListener=function(){};EditorUi.prototype.addChromelessClickHandler=function(){};var z=new EditorUi(new Editor(!0),document.createElement("div"),!0);this.addListener("darkModeChanged",n);z.editor.editBlankUrl=
-this.editBlankUrl;z.refresh=function(){};var G=mxUtils.bind(this,function(k){27==k.keyCode&&z.destroy()}),U=this.initialOverflow,E=z.destroy;z.destroy=function(){null==b&&(mxEvent.removeListener(document.documentElement,"keydown",G),document.body.removeChild(d),document.body.removeChild(m),document.body.style.overflow=U,GraphViewer.resizeSensorEnabled=!0,E.apply(this,arguments))};var R=z.editor.graph,N=R.container;N.style.overflow="hidden";N.style.inset="0";this.lightboxChrome&&null==b?(N.style.border=
-"1px solid #c0c0c0",N.style.margin="40px",mxEvent.addListener(document.documentElement,"keydown",G)):(d.style.display="none",m.style.display="none");var c=this;R.getImageFromBundles=function(k){return c.getImageUrl(k)};var g=z.createTemporaryGraph;z.createTemporaryGraph=function(){var k=g.apply(this,arguments);k.getImageFromBundles=function(q){return c.getImageUrl(q)};return k};this.graphConfig.move&&(R.isMoveCellsEvent=function(k){return!0});mxUtils.setPrefixedStyle(N.style,"border-radius","4px");
-N.style.position="fixed";GraphViewer.resizeSensorEnabled=!1;document.body.style.overflow="hidden";this.addClickHandler(R,z);window.setTimeout(mxUtils.bind(this,function(){try{mxEvent.addListener(d,"click",function(){z.destroy()});N.style.outline="none";N.style.zIndex=this.lightboxZIndex;m.style.zIndex=this.lightboxZIndex;null!=b?(b.innerHTML="",b.appendChild(N)):(document.body.appendChild(N),document.body.appendChild(m));z.setFileData(this.xml);if(this.tagsEnabled&&null!=this.graphConfig.hiddenTags&&
-null!=z.currentPage){var k=z.currentPage.getId(),q=this.graphConfig.hiddenTags[k];R.hiddenTags=null!=q&&0<q.length?q:[];R.refresh()}mxUtils.setPrefixedStyle(N.style,"transform","rotateY(0deg)");z.chromelessToolbar.style.bottom="60px";z.chromelessToolbar.style.zIndex=this.lightboxZIndex;(b||document.body).appendChild(z.chromelessToolbar);z.getEditBlankXml=mxUtils.bind(this,function(){return this.xml});this.showLayers(R,this.graph);z.lightboxFit();z.chromelessResize()}catch(A){z.handleError(A,null,
-function(){z.destroy()})}}),0);return z};Dialog.prototype.getDocumentSize=function(){return new mxRectangle(0,0,Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0))};
+this.layersEnabled?"1":"0";urlParams.dark=this.isDarkMode()?"1":"0";if(this.tagsEnabled&&null!=this.diagrams&&null!=this.diagrams[this.currentPage]){var u=this.diagrams[this.currentPage].getAttribute("id");null==this.graphConfig.hiddenTags&&(this.graphConfig.hiddenTags={});this.graphConfig.hiddenTags[u]=0<this.graph.hiddenTags.length?this.graph.hiddenTags.slice():null;urlParams.tags=JSON.stringify(this.graphConfig.hiddenTags)}if(null!=b)try{var p=JSON.parse(decodeURIComponent(urlParams["toolbar-config"]||
+"{}"));p.noCloseBtn=!0;urlParams["toolbar-config"]=encodeURIComponent(JSON.stringify(p))}catch(k){}if(null==document.documentMode||10<=document.documentMode)Editor.prototype.editButtonLink=this.graphConfig.edit,Editor.prototype.editButtonFunc=this.graphConfig.editFunc;EditorUi.prototype.updateActionStates=function(){};EditorUi.prototype.addBeforeUnloadListener=function(){};EditorUi.prototype.addChromelessClickHandler=function(){};var z=new EditorUi(new Editor(!0),document.createElement("div"),!0);
+this.addListener("darkModeChanged",n);z.editor.editBlankUrl=this.editBlankUrl;z.refresh=function(){};var G=mxUtils.bind(this,function(k){27==k.keyCode&&z.destroy()}),U=this.initialOverflow,E=z.destroy;z.destroy=function(){null==b&&(mxEvent.removeListener(document.documentElement,"keydown",G),document.body.removeChild(d),document.body.removeChild(m),document.body.style.overflow=U,GraphViewer.resizeSensorEnabled=!0,E.apply(this,arguments))};var R=z.editor.graph,N=R.container;N.style.overflow="hidden";
+N.style.inset="0";this.lightboxChrome&&null==b?(N.style.border="1px solid #c0c0c0",N.style.margin="40px",mxEvent.addListener(document.documentElement,"keydown",G)):(d.style.display="none",m.style.display="none");var c=this;R.getImageFromBundles=function(k){return c.getImageUrl(k)};var g=z.createTemporaryGraph;z.createTemporaryGraph=function(){var k=g.apply(this,arguments);k.getImageFromBundles=function(q){return c.getImageUrl(q)};return k};this.graphConfig.move&&(R.isMoveCellsEvent=function(k){return!0});
+mxUtils.setPrefixedStyle(N.style,"border-radius","4px");N.style.position="fixed";GraphViewer.resizeSensorEnabled=!1;document.body.style.overflow="hidden";this.addClickHandler(R,z);window.setTimeout(mxUtils.bind(this,function(){try{mxEvent.addListener(d,"click",function(){z.destroy()});N.style.outline="none";N.style.zIndex=this.lightboxZIndex;m.style.zIndex=this.lightboxZIndex;null!=b?(b.innerHTML="",b.appendChild(N)):(document.body.appendChild(N),document.body.appendChild(m));z.setFileData(this.xml);
+if(this.tagsEnabled&&null!=this.graphConfig.hiddenTags&&null!=z.currentPage){var k=z.currentPage.getId(),q=this.graphConfig.hiddenTags[k];R.hiddenTags=null!=q&&0<q.length?q:[];R.refresh()}mxUtils.setPrefixedStyle(N.style,"transform","rotateY(0deg)");z.chromelessToolbar.style.bottom="60px";z.chromelessToolbar.style.zIndex=this.lightboxZIndex;(b||document.body).appendChild(z.chromelessToolbar);z.getEditBlankXml=mxUtils.bind(this,function(){return this.xml});this.showLayers(R,this.graph);z.lightboxFit();
+z.chromelessResize()}catch(A){z.handleError(A,null,function(){z.destroy()})}}),0);return z};Dialog.prototype.getDocumentSize=function(){return new mxRectangle(0,0,Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0))};
GraphViewer.prototype.updateTitle=function(b,d){b=b||"";this.showTitleAsTooltip&&null!=this.graph&&null!=this.graph.container&&this.graph.container.setAttribute("title",d||b);null!=this.filename&&(this.filename.innerText="",mxUtils.write(this.filename,b),this.filename.setAttribute("title",d||b))};
GraphViewer.processElements=function(b){mxUtils.forEach(GraphViewer.getElementsByClassName(b||"mxgraph"),function(d){try{d.innerText="",GraphViewer.createViewerForElement(d)}catch(m){d.innerText=m.message,null!=window.console&&console.error(m)}})};
-GraphViewer.getElementsByClassName=function(b){if(document.getElementsByClassName){var d=document.getElementsByClassName(b);b=[];for(var m=0;m<d.length;m++)b.push(d[m]);return b}var n=document.getElementsByTagName("*");d=[];for(m=0;m<n.length;m++){var v=n[m].className;null!=v&&0<v.length&&(v=v.split(" "),0<=mxUtils.indexOf(v,b)&&d.push(n[m]))}return d};
-GraphViewer.createViewerForElement=function(b,d){var m=b.getAttribute("data-mxgraph");if(null!=m){var n=JSON.parse(m),v=function(p){p=mxUtils.parseXml(p);p=new GraphViewer(b,p.documentElement,n);null!=d&&d(p)};null!=n.url?GraphViewer.getUrl(n.url,function(p){v(p)}):v(n.xml)}};
+GraphViewer.getElementsByClassName=function(b){if(document.getElementsByClassName){var d=document.getElementsByClassName(b);b=[];for(var m=0;m<d.length;m++)b.push(d[m]);return b}var n=document.getElementsByTagName("*");d=[];for(m=0;m<n.length;m++){var u=n[m].className;null!=u&&0<u.length&&(u=u.split(" "),0<=mxUtils.indexOf(u,b)&&d.push(n[m]))}return d};
+GraphViewer.createViewerForElement=function(b,d){var m=b.getAttribute("data-mxgraph");if(null!=m){var n=JSON.parse(m),u=function(p){p=mxUtils.parseXml(p);p=new GraphViewer(b,p.documentElement,n);null!=d&&d(p)};null!=n.url?GraphViewer.getUrl(n.url,function(p){u(p)}):u(n.xml)}};
GraphViewer.blockedAncestorFrames=function(){try{if(window.location.ancestorOrigins&&window.location.hostname&&window.location.ancestorOrigins.length&&0<window.location.ancestorOrigins.length){var b=window.location.hostname;b&&1<b.length&&"/"==b.charAt(b.length-1)&&(b=b.substring(0,b.length-1));for(var d="",m=0;m<window.location.ancestorOrigins.length;m++)if(d+=" -> "+window.location.ancestorOrigins[m],d.endsWith("dan6v7pm1f1a1.cloudfront.net")||d.endsWith("confluence-cloud-excalidraw-ll3likebca-uc.a.run.app"))return!0;
(b.endsWith("ac.draw.io")||b.endsWith("aj.draw.io"))&&1==window.location.ancestorOrigins.length&&window.location.ancestorOrigins[0]&&window.location.ancestorOrigins[0].endsWith(".atlassian.net")}}catch(n){}return!1};GraphViewer.darkBackgroundColor=Editor.darkColor;GraphViewer.cssFontFamily=Editor.defaultHtmlFont;GraphViewer.shapeBackgroundColor=null;GraphViewer.viewerInitialized=function(b){};
GraphViewer.initCss=function(){try{null==GraphViewer.styleElement&&(GraphViewer.styleElement=document.createElement("style"),GraphViewer.styleElement.setAttribute("type","text/css"),GraphViewer.styleElement.innerHTML=GraphViewer.getCss(),GraphViewer.blockedAncestorFrames()||document.getElementsByTagName("head")[0].appendChild(GraphViewer.styleElement))}catch(b){}};
@@ -4520,8 +4524,8 @@ GraphViewer.getCss=function(){return[".geDarkMode img {\n filter: invert(1);\
"\t z-index: "+(GraphViewer.prototype.lightboxZIndex+2)+";","}\n.geBackground {"," background-color: light-dark(#ffffff, "+GraphViewer.darkBackgroundColor+");","\t position: fixed;\n left: 0px;\n top: 0px;\n right: 0px;\n bottom: 0px;\n opacity: 0.9;","\t z-index: "+(GraphViewer.prototype.lightboxZIndex+1)+";","}\n.geDialogTitle {\n box-sizing: border-box;\n white-space: nowrap;"," background: light-dark(#f1f3f4, "+GraphViewer.darkBackgroundColor+");"," border-bottom: 1px solid rgb(192, 192, 192);\n font-size: 15px;\n font-weight: bold;\n text-align: center;\n color: rgb(35, 86, 149);\n}\n.geDialogFooter {",
" background: light-dark(#f1f3f4, "+GraphViewer.darkBackgroundColor+");"," white-space: nowrap;\n text-align: right;\n box-sizing: border-box;\n border-top: 1px solid #e5e5e5;\n color: darkGray;\n}\n.geHelpIcon {\n width: 16px;\n margin: 0 4px;\n vertical-align: text-bottom;\n}\n.geBtn, .mxWindow .geBtn {\n background-color: light-dark(#eeeeee, #1b1d1e);\n border: 1px solid light-dark(#d8d8d8, #333333);\n color: light-dark(#3f3f3f, #c0c0c0);\n font-size: 13px;\n font-weight: 500;\n border-radius: 4px;\n height: 30px;\n margin: 0 0 0 8px;\n min-width: 72px;\n outline: 0;\n padding: 0 8px;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n.geBtn:hover:not(.gePrimaryBtn), .geBtn:focus {\n border: 1px solid light-dark(#c6c6c6, #333333);\n background: light-dark(#dadada, #333333);\n}\n.geBtn:disabled {\n opacity: .5;\n}\n.gePrimaryBtn {\n background: linear-gradient(light-dark(#4d90fe, #003555) 0px, light-dark(#4787ed, #003555) 100%);\n border: 1px solid light-dark(#3079ed, transparent);\n color: light-dark(#ffffff, #c0c0c0);\n}\n.gePrimaryBtn:hover:not([disabled]) {\n background: linear-gradient(light-dark(#4d90fe, #004a77) 0px, light-dark(#357ae8, #004a77) 100%);\n border: 1px solid light-dark(#2f5bb7, transparent);\n}\n.geBtn:disabled {\n opacity: .5;\n}"].join("\n")};
GraphViewer.cachedUrls={};GraphViewer.getUrl=function(b,d,m){if(null!=GraphViewer.cachedUrls[b])d(GraphViewer.cachedUrls[b]);else{var n=null!=navigator.userAgent&&0<navigator.userAgent.indexOf("MSIE 9")?new XDomainRequest:new XMLHttpRequest;n.open("GET",b);n.onload=function(){d(null!=n.getText?n.getText():n.responseText)};n.onerror=m;n.send()}};GraphViewer.resizeSensorEnabled=!0;GraphViewer.useResizeObserver=!0;GraphViewer.useResizeSensor=!0;
-(function(){var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(m){return window.setTimeout(m,20)},d=function(m,n){function v(){this.q=[];this.add=function(q){this.q.push(q)};var g,k;this.call=function(){g=0;for(k=this.q.length;g<k;g++)this.q[g].call()}}function p(g,k){return g.currentStyle?g.currentStyle[k]:window.getComputedStyle?window.getComputedStyle(g,null).getPropertyValue(k):g.style[k]}function z(g,k){if(!g.resizedAttached)g.resizedAttached=
-new v,g.resizedAttached.add(k);else if(g.resizedAttached){g.resizedAttached.add(k);return}g.resizeSensor=document.createElement("div");g.resizeSensor.className="resize-sensor";g.resizeSensor.style.cssText="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;";g.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>';
+(function(){var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(m){return window.setTimeout(m,20)},d=function(m,n){function u(){this.q=[];this.add=function(q){this.q.push(q)};var g,k;this.call=function(){g=0;for(k=this.q.length;g<k;g++)this.q[g].call()}}function p(g,k){return g.currentStyle?g.currentStyle[k]:window.getComputedStyle?window.getComputedStyle(g,null).getPropertyValue(k):g.style[k]}function z(g,k){if(!g.resizedAttached)g.resizedAttached=
+new u,g.resizedAttached.add(k);else if(g.resizedAttached){g.resizedAttached.add(k);return}g.resizeSensor=document.createElement("div");g.resizeSensor.className="resize-sensor";g.resizeSensor.style.cssText="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;";g.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>';
g.appendChild(g.resizeSensor);"static"==p(g,"position")&&(g.style.position="relative");var q=g.resizeSensor.childNodes[0],A=q.childNodes[0],D=g.resizeSensor.childNodes[1],H=function(){A.style.width="100000px";A.style.height="100000px";q.scrollLeft=1E5;q.scrollTop=1E5;D.scrollLeft=1E5;D.scrollTop=1E5};H();var K=!1,P=function(){g.resizedAttached&&(K&&(g.resizedAttached.call(),K=!1),b(P))};b(P);var W,M,ca,fa;k=function(){if((ca=g.offsetWidth)!=W||(fa=g.offsetHeight)!=M)K=!0,W=ca,M=fa;H()};var ha=function(ea,
ka,pa){ea.attachEvent?ea.attachEvent("on"+ka,pa):ea.addEventListener(ka,pa)};ha(q,"scroll",k);ha(D,"scroll",k)}var G=function(){GraphViewer.resizeSensorEnabled&&n()};if(GraphViewer.useResizeObserver&&"undefined"!==typeof ResizeObserver){var U=null,E=!1;(new ResizeObserver(function(){E||(null!=U&&window.clearTimeout(U),U=window.setTimeout(function(){E=!0;G();U=null;E=!1},200))})).observe(m)}else{var R=Object.prototype.toString.call(m),N="[object Array]"===R||"[object NodeList]"===R||"[object HTMLCollection]"===
R||"undefined"!==typeof jQuery&&m instanceof jQuery||"undefined"!==typeof Elements&&m instanceof Elements;if(N){R=0;for(var c=m.length;R<c;R++)z(m[R],G)}else z(m,G);this.detach=function(){if(N)for(var g=0,k=m.length;g<k;g++)d.detach(m[g]);else d.detach(m)}}};d.detach=function(m){m.resizeSensor&&(m.removeChild(m.resizeSensor),delete m.resizeSensor,delete m.resizedAttached)};window.ResizeSensor=d})();
diff --git a/src/main/webapp/mxgraph/mxClient.js b/src/main/webapp/mxgraph/mxClient.js
index 31f5c1266..56065f933 100644
--- a/src/main/webapp/mxgraph/mxClient.js
+++ b/src/main/webapp/mxgraph/mxClient.js
@@ -1,4 +1,4 @@
-var mxClient={VERSION:"29.6.7",IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),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.")&&
+var mxClient={VERSION:"29.6.10",IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),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:-1<navigator.userAgent.toLowerCase().indexOf("firefox"),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]"!==document.createElementNS("http://www.w3.org/2000/svg","foreignObject").toString()||0<=navigator.userAgent.indexOf("Opera/"),IS_WIN:0<navigator.appVersion.indexOf("Win"),IS_MAC:0<navigator.appVersion.indexOf("Mac"),IS_CHROMEOS:/\bCrOS\b/.test(navigator.appVersion),
@@ -1256,8 +1256,8 @@ mxGraph.prototype.moveCells=function(a,b,c,d,e,f,g){b=null!=b?b:0;c=null!=c?c:0;
!0);if(d)for(m=0;m<a.length;m++)q=this.getCellGeometry(a[m]),r=this.model.getParent(k[m]),null!=q&&q.relative&&this.model.isEdge(r)&&this.model.contains(r)&&this.model.add(r,a[m])}this.fireEvent(new mxEventObject(mxEvent.MOVE_CELLS,"cells",a,"dx",b,"dy",c,"clone",d,"target",e,"event",f))}finally{this.model.endUpdate()}}return a};
mxGraph.prototype.cellsMoved=function(a,b,c,d,e,f){if(null!=a&&(0!=b||0!=c)){f=null!=f?f:!1;this.model.beginUpdate();try{d&&this.disconnectGraph(a);for(var g=0;g<a.length;g++)this.translateCell(a[g],b,c),f&&this.isExtendParent(a[g])?this.extendParent(a[g]):e&&this.constrainChild(a[g]),this.isContractParentsOnMove()&&this.isContractParent(a[g])&&this.contractParent(a[g]);this.resetEdgesOnMove&&this.resetEdges(a);this.fireEvent(new mxEventObject(mxEvent.CELLS_MOVED,"cells",a,"dx",b,"dy",c,"disconnect",
d))}finally{this.model.endUpdate()}}};
-mxGraph.prototype.translateCell=function(a,b,c){var d=this.model.getGeometry(a);if(null!=d){b=parseFloat(b);c=parseFloat(c);d=d.clone();d.translate(b,c,this.model.isEdge(a));d.relative||!this.model.isVertex(a)||this.isAllowNegativeCoordinates()||(d.x=Math.max(0,parseFloat(d.x)),d.y=Math.max(0,parseFloat(d.y)));if(d.relative&&!this.model.isEdge(a)){var e=this.model.getParent(a),f=0;this.model.isVertex(e)&&(e=this.getCurrentCellStyle(e),f=mxUtils.getValue(e,mxConstants.STYLE_ROTATION,0));0!=f&&(f=mxUtils.toRadians(-f),
-e=Math.cos(f),f=Math.sin(f),c=mxUtils.getRotatedPoint(new mxPoint(b,c),e,f,new mxPoint(0,0)),b=c.x,c=c.y);null==d.offset?d.offset=new mxPoint(Math.round(b),Math.round(c)):(d.offset.x=Math.round(parseFloat(d.offset.x+b)),d.offset.y=Math.round(parseFloat(d.offset.y+c)))}this.model.setGeometry(a,d)}};
+mxGraph.prototype.translateCell=function(a,b,c){var d=this.model.getGeometry(a);if(null!=d&&"function"===typeof d.translate){b=parseFloat(b);c=parseFloat(c);d=d.clone();d.translate(b,c,this.model.isEdge(a));d.relative||!this.model.isVertex(a)||this.isAllowNegativeCoordinates()||(d.x=Math.max(0,parseFloat(d.x)),d.y=Math.max(0,parseFloat(d.y)));if(d.relative&&!this.model.isEdge(a)){var e=this.model.getParent(a),f=0;this.model.isVertex(e)&&(e=this.getCurrentCellStyle(e),f=mxUtils.getValue(e,mxConstants.STYLE_ROTATION,
+0));0!=f&&(f=mxUtils.toRadians(-f),e=Math.cos(f),f=Math.sin(f),c=mxUtils.getRotatedPoint(new mxPoint(b,c),e,f,new mxPoint(0,0)),b=c.x,c=c.y);null==d.offset?d.offset=new mxPoint(Math.round(b),Math.round(c)):(d.offset.x=Math.round(parseFloat(d.offset.x+b)),d.offset.y=Math.round(parseFloat(d.offset.y+c)))}this.model.setGeometry(a,d)}};
mxGraph.prototype.getCellContainmentArea=function(a){if(null!=a&&!this.model.isEdge(a)){var b=this.model.getParent(a);if(null!=b&&b!=this.getDefaultParent()){var c=this.model.getGeometry(b);if(null!=c){var d=a=0,e=c.width;c=c.height;if(this.isSwimlane(b)){var f=this.getStartSize(b),g=this.getCurrentCellStyle(b);b=mxUtils.getValue(g,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST);var k=1==mxUtils.getValue(g,mxConstants.STYLE_FLIPH,0);g=1==mxUtils.getValue(g,mxConstants.STYLE_FLIPV,0);if(b==
mxConstants.DIRECTION_SOUTH||b==mxConstants.DIRECTION_NORTH){var l=f.width;f.width=f.height;f.height=l}if(b==mxConstants.DIRECTION_EAST&&!g||b==mxConstants.DIRECTION_NORTH&&!k||b==mxConstants.DIRECTION_WEST&&g||b==mxConstants.DIRECTION_SOUTH&&k)a=f.width,d=f.height;e-=f.width;c-=f.height}return new mxRectangle(a,d,e,c)}}}return null};mxGraph.prototype.getMaximumGraphBounds=function(){return this.maximumGraphBounds};
mxGraph.prototype.constrainChild=function(a,b){if(null!=a&&(b=this.getCellGeometry(a),null!=b&&(this.isConstrainRelativeChildren()||!b.relative))){var c=this.model.getParent(a);this.getCellGeometry(c);var d=this.getMaximumGraphBounds();null!=d&&(c=this.getBoundingBoxFromGeometry([c],!1),null!=c&&(d=mxRectangle.fromRectangle(d),d.x-=c.x,d.y-=c.y));if(this.isConstrainChild(a)&&(c=this.getCellContainmentArea(a),null!=c)){var e=this.getOverlap(a);0<e&&(c=mxRectangle.fromRectangle(c),c.x-=c.width*e,c.y-=
diff --git a/src/main/webapp/mxgraph/src/view/mxGraph.js b/src/main/webapp/mxgraph/src/view/mxGraph.js
index 9f313991c..3d4c4ad86 100644
--- a/src/main/webapp/mxgraph/src/view/mxGraph.js
+++ b/src/main/webapp/mxgraph/src/view/mxGraph.js
@@ -6594,7 +6594,7 @@ mxGraph.prototype.translateCell = function(cell, dx, dy)
{
var geo = this.model.getGeometry(cell);
- if (geo != null)
+ if (geo != null && typeof geo.translate === 'function')
{
dx = parseFloat(dx);
dy = parseFloat(dy);
diff --git a/src/main/webapp/resources/dia.txt b/src/main/webapp/resources/dia.txt
index 8bbb5b681..8020ac723 100644
--- a/src/main/webapp/resources/dia.txt
+++ b/src/main/webapp/resources/dia.txt
@@ -257,6 +257,7 @@ glass=Glass
googleImages=Google Images
imageSearch=Image Search
eip=EIP
+effects=Effects
embed=Embed
embedFonts=Embed Fonts
embedImages=Embed Images
diff --git a/src/main/webapp/resources/dia_am.txt b/src/main/webapp/resources/dia_am.txt
index ac37a5957..8a4b046d7 100644
--- a/src/main/webapp/resources/dia_am.txt
+++ b/src/main/webapp/resources/dia_am.txt
@@ -258,6 +258,7 @@ glass=መስታወት
googleImages=Google ምስል
imageSearch=ምስል ፈልግ
eip=EIP
+effects=ውጤቶች
embed=አካት
embedFonts=ፎንቶችን አካት
embedImages=ምስሎችን አካት
diff --git a/src/main/webapp/resources/dia_ar.txt b/src/main/webapp/resources/dia_ar.txt
index d22b8261d..e9b81d03c 100644
--- a/src/main/webapp/resources/dia_ar.txt
+++ b/src/main/webapp/resources/dia_ar.txt
@@ -254,6 +254,7 @@ glass=‫زجاجي‬
googleImages=‫صور Google‬
imageSearch=‫بحث Google‬
eip=‫إي آي بي‬
+effects=‫تأثيرات‬
embed=‫تضمين‬
embedFonts=‫تضمين الخطوط‬
embedImages=‫تضمين الصور‬
diff --git a/src/main/webapp/resources/dia_bg.txt b/src/main/webapp/resources/dia_bg.txt
index 4ded2bdc6..7e15d1de4 100644
--- a/src/main/webapp/resources/dia_bg.txt
+++ b/src/main/webapp/resources/dia_bg.txt
@@ -258,6 +258,7 @@ glass=Стъкло
googleImages=Google изображения
imageSearch=Търсене на изображение
eip=EIP
+effects=Ефекти
embed=Вграждане
embedFonts=Вграждане на шрифтове
embedImages=Вграждане на изображения
diff --git a/src/main/webapp/resources/dia_bn.txt b/src/main/webapp/resources/dia_bn.txt
index 5e54c2402..5edeba412 100644
--- a/src/main/webapp/resources/dia_bn.txt
+++ b/src/main/webapp/resources/dia_bn.txt
@@ -258,6 +258,7 @@ glass=গ্লাস
googleImages=গুগল ইমেজ
imageSearch=ছবি অনুসন্ধান
eip=EIP
+effects=প্রভাব
embed=এম্বেড
embedFonts=ফন্ট এম্বেড করুন
embedImages=ছবি এম্বেড করুন
diff --git a/src/main/webapp/resources/dia_bs.txt b/src/main/webapp/resources/dia_bs.txt
index 560bf5b13..ab8b6a868 100644
--- a/src/main/webapp/resources/dia_bs.txt
+++ b/src/main/webapp/resources/dia_bs.txt
@@ -258,6 +258,7 @@ glass=Staklo
googleImages=Google slike
imageSearch=Pretraga slika
eip=EIP
+effects=Efekti
embed=Ugradi
embedFonts=Ugradi fontove
embedImages=Ugradi slike
diff --git a/src/main/webapp/resources/dia_ca.txt b/src/main/webapp/resources/dia_ca.txt
index 5fcbce2cc..ffa390b1b 100644
--- a/src/main/webapp/resources/dia_ca.txt
+++ b/src/main/webapp/resources/dia_ca.txt
@@ -258,6 +258,7 @@ glass=Vidre
googleImages=Google Imatges
imageSearch=Cerca d'imatges
eip=EIP
+effects=Efectes
embed=Incrusta
embedFonts=Incrusta fonts
embedImages=Incrusta imatges
diff --git a/src/main/webapp/resources/dia_cs.txt b/src/main/webapp/resources/dia_cs.txt
index 40deb7b00..5688d5faf 100644
--- a/src/main/webapp/resources/dia_cs.txt
+++ b/src/main/webapp/resources/dia_cs.txt
@@ -258,6 +258,7 @@ glass=Sklo
googleImages=Google Obrázky
imageSearch=Vyhledávání obrázků
eip=EIP
+effects=Efekty
embed=Vložit
embedFonts=Vložit písma
embedImages=Vložit obrázky
diff --git a/src/main/webapp/resources/dia_da.txt b/src/main/webapp/resources/dia_da.txt
index b1c5aefea..ae692966d 100644
--- a/src/main/webapp/resources/dia_da.txt
+++ b/src/main/webapp/resources/dia_da.txt
@@ -258,6 +258,7 @@ glass=Glas
googleImages=Google Billeder
imageSearch=Billedsøgning
eip=EIP
+effects=Effekter
embed=Integrer
embedFonts=Integrer skrifttyper
embedImages=Integrer billeder
diff --git a/src/main/webapp/resources/dia_de.txt b/src/main/webapp/resources/dia_de.txt
index be3ea51fd..a1ccf7358 100644
--- a/src/main/webapp/resources/dia_de.txt
+++ b/src/main/webapp/resources/dia_de.txt
@@ -258,6 +258,7 @@ glass=Glas
googleImages=Google Bilder
imageSearch=Bildersuche
eip=EIP
+effects=Effekte
embed=Einbetten
embedFonts=Schriftarten einbetten
embedImages=Bilder einbetten
diff --git a/src/main/webapp/resources/dia_el.txt b/src/main/webapp/resources/dia_el.txt
index d608b2564..a310ed4c9 100644
--- a/src/main/webapp/resources/dia_el.txt
+++ b/src/main/webapp/resources/dia_el.txt
@@ -258,6 +258,7 @@ glass=Γυαλί
googleImages=Εικόνες Google
imageSearch=Αναζήτηση Εικόνας
eip=EIP
+effects=Εφέ
embed=Ενσωμάτωση
embedFonts=Ενσωμάτωση Γραμματοσειρών
embedImages=Ενσωμάτωση Εικόνων
diff --git a/src/main/webapp/resources/dia_eo.txt b/src/main/webapp/resources/dia_eo.txt
index b6b0ad1df..c9383391d 100644
--- a/src/main/webapp/resources/dia_eo.txt
+++ b/src/main/webapp/resources/dia_eo.txt
@@ -258,6 +258,7 @@ glass=Vitro
googleImages=Google Bildoj
imageSearch=Bildoserĉo
eip=EIP
+effects=Efektoj
embed=Enkorpigi
embedFonts=Enkorpigi tiparojn
embedImages=Enkorpigi bildojn
diff --git a/src/main/webapp/resources/dia_es.txt b/src/main/webapp/resources/dia_es.txt
index 035e168f6..a3628bd91 100644
--- a/src/main/webapp/resources/dia_es.txt
+++ b/src/main/webapp/resources/dia_es.txt
@@ -258,6 +258,7 @@ glass=Vidrio
googleImages=Imágenes de Google
imageSearch=Búsqueda de imágenes
eip=EIP
+effects=Efectos
embed=Insertar
embedFonts=Insertar fuentes
embedImages=Insertar imágenes
diff --git a/src/main/webapp/resources/dia_et.txt b/src/main/webapp/resources/dia_et.txt
index 4453676e8..4d1677832 100644
--- a/src/main/webapp/resources/dia_et.txt
+++ b/src/main/webapp/resources/dia_et.txt
@@ -258,6 +258,7 @@ glass=Klaas
googleImages=Google Pildid
imageSearch=Pildiotsing
eip=EIP
+effects=Efektid
embed=Manusta
embedFonts=Manusta fondid
embedImages=Manusta pildid
diff --git a/src/main/webapp/resources/dia_eu.txt b/src/main/webapp/resources/dia_eu.txt
index 0dd27d3b1..37e00f1f9 100644
--- a/src/main/webapp/resources/dia_eu.txt
+++ b/src/main/webapp/resources/dia_eu.txt
@@ -258,6 +258,7 @@ glass=Beira
googleImages=Google Irudiak
imageSearch=Irudi bilaketa
eip=EIP
+effects=Efektuak
embed=Txertatu
embedFonts=Txertatu letra motak
embedImages=Txertatu irudiak
diff --git a/src/main/webapp/resources/dia_fa.txt b/src/main/webapp/resources/dia_fa.txt
index b9eaadb16..9a4f3dadb 100644
--- a/src/main/webapp/resources/dia_fa.txt
+++ b/src/main/webapp/resources/dia_fa.txt
@@ -258,6 +258,7 @@ glass=‫شیشه‬
googleImages=Google Images
imageSearch=‫جستجوی تصویر‬
eip=EIP
+effects=‫جلوه‌ها‬
embed=‫جاسازی‬
embedFonts=‫جاسازی فونت‌ها‬
embedImages=‫جاسازی تصاویر‬
diff --git a/src/main/webapp/resources/dia_fi.txt b/src/main/webapp/resources/dia_fi.txt
index 2a4d06837..0b8e939e0 100644
--- a/src/main/webapp/resources/dia_fi.txt
+++ b/src/main/webapp/resources/dia_fi.txt
@@ -258,6 +258,7 @@ glass=Lasi
googleImages=Google Kuvat
imageSearch=Kuvahaku
eip=EIP
+effects=Tehosteet
embed=Upota
embedFonts=Upota fontteja
embedImages=Upota kuvia
diff --git a/src/main/webapp/resources/dia_fil.txt b/src/main/webapp/resources/dia_fil.txt
index 6ab17d16e..4ab6d4ce9 100644
--- a/src/main/webapp/resources/dia_fil.txt
+++ b/src/main/webapp/resources/dia_fil.txt
@@ -258,6 +258,7 @@ glass=Salamin
googleImages=Google Images
imageSearch=Paghanap ng Imahe
eip=EIP
+effects=Mga epekto
embed=Ilangkap
embedFonts=Ilangkap ang mga Font
embedImages=Ilangkap ang mga imahe
diff --git a/src/main/webapp/resources/dia_fr.txt b/src/main/webapp/resources/dia_fr.txt
index 2f7817d2a..9a82f1298 100644
--- a/src/main/webapp/resources/dia_fr.txt
+++ b/src/main/webapp/resources/dia_fr.txt
@@ -258,6 +258,7 @@ glass=Verre
googleImages=Google Images
imageSearch=Recherche d'image
eip=EIP
+effects=Effets
embed=Intégrer
embedFonts=Intégrer les polices
embedImages=Intégrer les images
diff --git a/src/main/webapp/resources/dia_gl.txt b/src/main/webapp/resources/dia_gl.txt
index 5e942f955..5144c1932 100644
--- a/src/main/webapp/resources/dia_gl.txt
+++ b/src/main/webapp/resources/dia_gl.txt
@@ -258,6 +258,7 @@ glass=Vidro
googleImages=Imaxes de Google
imageSearch=Procurar imaxes
eip=EIP
+effects=Efectos
embed=Integrar
embedFonts=Integrar tipos de letra
embedImages=Integrar imaxes
diff --git a/src/main/webapp/resources/dia_gu.txt b/src/main/webapp/resources/dia_gu.txt
index 2102a176f..d3784b526 100644
--- a/src/main/webapp/resources/dia_gu.txt
+++ b/src/main/webapp/resources/dia_gu.txt
@@ -258,6 +258,7 @@ glass=કાચ
googleImages=Google છબીઓ
imageSearch=છબી શોધ
eip=EIP
+effects=ઇફેક્ટ્સ
embed=એમ્બેડ
embedFonts=ફોન્ટ્સ એમ્બેડ કરો
embedImages=છબીઓ એમ્બેડ કરો
diff --git a/src/main/webapp/resources/dia_he.txt b/src/main/webapp/resources/dia_he.txt
index 263d4d3a2..7972f302f 100644
--- a/src/main/webapp/resources/dia_he.txt
+++ b/src/main/webapp/resources/dia_he.txt
@@ -254,6 +254,7 @@ glass=‫זכוכית‬
googleImages=‫גוגל תמונות‬
imageSearch=‫חיפוש תמונה‬
eip=EIP
+effects=‫אפקטים‬
embed=‫שבץ‬
embedFonts=‫הטמע גופנים‬
embedImages=‫שבץ תמונות‬
diff --git a/src/main/webapp/resources/dia_hi.txt b/src/main/webapp/resources/dia_hi.txt
index fd40543a8..3c680a2de 100644
--- a/src/main/webapp/resources/dia_hi.txt
+++ b/src/main/webapp/resources/dia_hi.txt
@@ -258,6 +258,7 @@ glass=ग्लास
googleImages=Google छवियाँ
imageSearch=छवि खोज
eip=EIP
+effects=प्रभाव
embed=एम्बेड करें
embedFonts=फ़ॉन्ट एम्बेड करें
embedImages=छवियाँ एम्बेड करें
diff --git a/src/main/webapp/resources/dia_hr.txt b/src/main/webapp/resources/dia_hr.txt
index e00bfc603..01faee768 100644
--- a/src/main/webapp/resources/dia_hr.txt
+++ b/src/main/webapp/resources/dia_hr.txt
@@ -258,6 +258,7 @@ glass=Staklo
googleImages=Google slike
imageSearch=Pretraživanje slika
eip=EIP
+effects=Efekti
embed=Ugradi
embedFonts=Ugradi fontove
embedImages=Ugradi slike
diff --git a/src/main/webapp/resources/dia_hu.txt b/src/main/webapp/resources/dia_hu.txt
index e0685afd7..5d0014cae 100644
--- a/src/main/webapp/resources/dia_hu.txt
+++ b/src/main/webapp/resources/dia_hu.txt
@@ -258,6 +258,7 @@ glass=Üveg
googleImages=Google képek
imageSearch=Képkeresés
eip=EIP
+effects=Effektusok
embed=Beágyaz
embedFonts=Betűkészletek beágyazása
embedImages=Képek beágyazása
diff --git a/src/main/webapp/resources/dia_i18n.txt b/src/main/webapp/resources/dia_i18n.txt
index 2e9fdc105..8405df344 100644
--- a/src/main/webapp/resources/dia_i18n.txt
+++ b/src/main/webapp/resources/dia_i18n.txt
@@ -257,6 +257,7 @@ glass=glass
googleImages=googleImages
imageSearch=imageSearch
eip=eip
+effects=effects
embed=embed
embedFonts=embedFonts
embedImages=embedImages
diff --git a/src/main/webapp/resources/dia_id.txt b/src/main/webapp/resources/dia_id.txt
index ff79eef88..a0cea10f5 100644
--- a/src/main/webapp/resources/dia_id.txt
+++ b/src/main/webapp/resources/dia_id.txt
@@ -258,6 +258,7 @@ glass=Kaca
googleImages=Gambar Google
imageSearch=Pencarian Gambar
eip=EIP
+effects=Efek
embed=Tanamkan
embedFonts=Tanamkan Fonta
embedImages=Tanamkan Gambar
diff --git a/src/main/webapp/resources/dia_it.txt b/src/main/webapp/resources/dia_it.txt
index bfac6aca2..966a7a997 100644
--- a/src/main/webapp/resources/dia_it.txt
+++ b/src/main/webapp/resources/dia_it.txt
@@ -258,6 +258,7 @@ glass=Vetro
googleImages=Google Immagini
imageSearch=Ricerca immagine
eip=EIP
+effects=Effetti
embed=Integra
embedFonts=Integra caratteri
embedImages=Integra immagini
diff --git a/src/main/webapp/resources/dia_ja.txt b/src/main/webapp/resources/dia_ja.txt
index 7a63f8305..488e19fa2 100644
--- a/src/main/webapp/resources/dia_ja.txt
+++ b/src/main/webapp/resources/dia_ja.txt
@@ -258,6 +258,7 @@ glass=ガラス
googleImages=Google画像検索
imageSearch=画像検索
eip=EIP
+effects=効果
embed=埋め込み
embedFonts=フォントを埋め込む
embedImages=画像を埋め込む
diff --git a/src/main/webapp/resources/dia_kl.txt b/src/main/webapp/resources/dia_kl.txt
index b1fa126cc..8be7cfeca 100644
--- a/src/main/webapp/resources/dia_kl.txt
+++ b/src/main/webapp/resources/dia_kl.txt
@@ -258,6 +258,7 @@ glass=Glaasi
googleImages=Google Assiit
imageSearch=Assiit ujarleqqineq
eip=EIP
+effects=Sunniutit
embed=Ilanngullugu
embedFonts=Fontit ilanngukkit
embedImages=Assiit ilanngukkit
diff --git a/src/main/webapp/resources/dia_kn.txt b/src/main/webapp/resources/dia_kn.txt
index c2f0ff90b..5dde9fcd4 100644
--- a/src/main/webapp/resources/dia_kn.txt
+++ b/src/main/webapp/resources/dia_kn.txt
@@ -258,6 +258,7 @@ glass=ಗಾಜು
googleImages=Google ಚಿತ್ರಗಳು
imageSearch=ಚಿತ್ರ ಹುಡುಕಾಟ
eip=EIP
+effects=ಪರಿಣಾಮಗಳು
embed=ಎಂಬೆಡ್
embedFonts=ಫಾಂಟ್‌ಗಳನ್ನು ಎಂಬೆಡ್ ಮಾಡಿ
embedImages=ಚಿತ್ರಗಳನ್ನು ಎಂಬೆಡ್ ಮಾಡಿ
diff --git a/src/main/webapp/resources/dia_ko.txt b/src/main/webapp/resources/dia_ko.txt
index eee82d2fa..5608f576b 100644
--- a/src/main/webapp/resources/dia_ko.txt
+++ b/src/main/webapp/resources/dia_ko.txt
@@ -258,6 +258,7 @@ glass=유리 효과
googleImages=Google 이미지
imageSearch=이미지 검색
eip=EIP
+effects=효과
embed=임베드
embedFonts=글꼴 포함
embedImages=이미지 포함
diff --git a/src/main/webapp/resources/dia_lt.txt b/src/main/webapp/resources/dia_lt.txt
index eae7fab0f..b7e37a276 100644
--- a/src/main/webapp/resources/dia_lt.txt
+++ b/src/main/webapp/resources/dia_lt.txt
@@ -258,6 +258,7 @@ glass=Stiklas
googleImages=Google paveikslėliai
imageSearch=Paveikslėlių paieška
eip=EIP
+effects=Efektai
embed=Įterpti
embedFonts=Įterpti šriftus
embedImages=Įterpti paveikslėlius
diff --git a/src/main/webapp/resources/dia_lv.txt b/src/main/webapp/resources/dia_lv.txt
index 567186ea6..455cd2601 100644
--- a/src/main/webapp/resources/dia_lv.txt
+++ b/src/main/webapp/resources/dia_lv.txt
@@ -258,6 +258,7 @@ glass=Stikls
googleImages=Google attēli
imageSearch=Attēlu meklēšana
eip=EIP
+effects=Efekti
embed=Ievietot
embedFonts=Ievietot fontus
embedImages=Ievietot attēlus
diff --git a/src/main/webapp/resources/dia_ml.txt b/src/main/webapp/resources/dia_ml.txt
index 75b62322e..eb9d54534 100644
--- a/src/main/webapp/resources/dia_ml.txt
+++ b/src/main/webapp/resources/dia_ml.txt
@@ -258,6 +258,7 @@ glass=ഗ്ലാസ്
googleImages=ഗൂഗിൾ ഇമേജസ്
imageSearch=ചിത്ര തിരയൽ
eip=EIP
+effects=ഇഫക്റ്റുകൾ
embed=ഉൾച്ചേർക്കുക
embedFonts=ഫോണ്ടുകൾ ഉൾച്ചേർക്കുക
embedImages=ചിത്രങ്ങൾ ഉൾച്ചേർക്കുക
diff --git a/src/main/webapp/resources/dia_mr.txt b/src/main/webapp/resources/dia_mr.txt
index fc38556e3..2cbb0bbed 100644
--- a/src/main/webapp/resources/dia_mr.txt
+++ b/src/main/webapp/resources/dia_mr.txt
@@ -258,6 +258,7 @@ glass=काच
googleImages=Google प्रतिमा
imageSearch=प्रतिमा शोध
eip=EIP
+effects=प्रभाव
embed=एम्बेड करा
embedFonts=फॉन्ट एम्बेड करा
embedImages=प्रतिमा एम्बेड करा
diff --git a/src/main/webapp/resources/dia_ms.txt b/src/main/webapp/resources/dia_ms.txt
index cdaeac285..63704348b 100644
--- a/src/main/webapp/resources/dia_ms.txt
+++ b/src/main/webapp/resources/dia_ms.txt
@@ -258,6 +258,7 @@ glass=Kaca
googleImages=Imej-imej Google
imageSearch=Carian Imej
eip=EIP
+effects=Kesan
embed=Terbenam
embedFonts=Benamkan Fon
embedImages=Imej Benam
diff --git a/src/main/webapp/resources/dia_my.txt b/src/main/webapp/resources/dia_my.txt
index 64a07f113..255ceaf8f 100644
--- a/src/main/webapp/resources/dia_my.txt
+++ b/src/main/webapp/resources/dia_my.txt
@@ -258,6 +258,7 @@ glass=မှန်
googleImages=Google ပုံများ
imageSearch=ပုံရှာဖွေခြင်း
eip=EIP
+effects=အကျိုးသက်ရောက်မှုများ
embed=မြှုပ်နှံခြင်း
embedFonts=ဖောင့်များ မြှုပ်နှံခြင်း
embedImages=ပုံများ မြှုပ်နှံခြင်း
diff --git a/src/main/webapp/resources/dia_nl.txt b/src/main/webapp/resources/dia_nl.txt
index 3e3c1e69b..9022dfa90 100644
--- a/src/main/webapp/resources/dia_nl.txt
+++ b/src/main/webapp/resources/dia_nl.txt
@@ -257,6 +257,7 @@ glass=Glas
googleImages=Google Afbeeldingen
imageSearch=Afbeelding zoeken
eip=EIP
+effects=Effecten
embed=Insluiten
embedFonts=Lettertypen insluiten
embedImages=Afbeeldingen Insluiten
diff --git a/src/main/webapp/resources/dia_no.txt b/src/main/webapp/resources/dia_no.txt
index a4a62bdf3..23db6fd75 100644
--- a/src/main/webapp/resources/dia_no.txt
+++ b/src/main/webapp/resources/dia_no.txt
@@ -258,6 +258,7 @@ glass=Glass
googleImages=Google Bilder
imageSearch=Bildesøk
eip=EIP
+effects=Effekter
embed=Integrer
embedFonts=Integrer skrifter
embedImages=Integrer bilder
diff --git a/src/main/webapp/resources/dia_pl.txt b/src/main/webapp/resources/dia_pl.txt
index 02de5faba..e3aa9457a 100644
--- a/src/main/webapp/resources/dia_pl.txt
+++ b/src/main/webapp/resources/dia_pl.txt
@@ -258,6 +258,7 @@ glass=Szkło
googleImages=Obrazy Google
imageSearch=Wyszukiwanie obrazów
eip=EIP
+effects=Efekty
embed=Osadź
embedFonts=Osadź czcionki
embedImages=Osadź obrazy
diff --git a/src/main/webapp/resources/dia_pt-br.txt b/src/main/webapp/resources/dia_pt-br.txt
index 1b9aa9225..8d74c7ad0 100644
--- a/src/main/webapp/resources/dia_pt-br.txt
+++ b/src/main/webapp/resources/dia_pt-br.txt
@@ -258,6 +258,7 @@ glass=Vidro
googleImages=Google Imagens
imageSearch=Procurar imagem
eip=EIP
+effects=Efeitos
embed=Incorporar
embedFonts=Incorporar fontes
embedImages=Incorporar imagens
diff --git a/src/main/webapp/resources/dia_pt.txt b/src/main/webapp/resources/dia_pt.txt
index 38913efba..e48578aff 100644
--- a/src/main/webapp/resources/dia_pt.txt
+++ b/src/main/webapp/resources/dia_pt.txt
@@ -258,6 +258,7 @@ glass=Vidro
googleImages=Google Imagens
imageSearch=Procurar imagem
eip=EIP
+effects=Efeitos
embed=Inserir
embedFonts=Incorporar tipos de letra
embedImages=Inserir imagens
diff --git a/src/main/webapp/resources/dia_ro.txt b/src/main/webapp/resources/dia_ro.txt
index 33e717536..c2107e29c 100644
--- a/src/main/webapp/resources/dia_ro.txt
+++ b/src/main/webapp/resources/dia_ro.txt
@@ -258,6 +258,7 @@ glass=Sticlă
googleImages=Imagini Google
imageSearch=Căutare imagini
eip=EIP
+effects=Efecte
embed=Încorporează
embedFonts=Fonturi încorporate
embedImages=Încorporează imagini
diff --git a/src/main/webapp/resources/dia_ru.txt b/src/main/webapp/resources/dia_ru.txt
index 7cd34bfcf..17eeb3aae 100644
--- a/src/main/webapp/resources/dia_ru.txt
+++ b/src/main/webapp/resources/dia_ru.txt
@@ -258,6 +258,7 @@ glass=Стекло
googleImages=Изображения Google
imageSearch=Поиск изображений
eip=EIP
+effects=Эффекты
embed=Встроить
embedFonts=Встроить шрифты
embedImages=Встроить изображения
diff --git a/src/main/webapp/resources/dia_si.txt b/src/main/webapp/resources/dia_si.txt
index 1db1c42e8..4dd8ff92e 100644
--- a/src/main/webapp/resources/dia_si.txt
+++ b/src/main/webapp/resources/dia_si.txt
@@ -258,6 +258,7 @@ glass=වීදුරු
googleImages=Google පින්තූර
imageSearch=පින්තූර සෙවීම
eip=EIP
+effects=ප්‍රයෝග
embed=කාවැද්දීම
embedFonts=අකුරු කාවැද්දීම
embedImages=පින්තූර කාවැද්දීම
diff --git a/src/main/webapp/resources/dia_sk.txt b/src/main/webapp/resources/dia_sk.txt
index fa9996b9b..4bc0673f3 100644
--- a/src/main/webapp/resources/dia_sk.txt
+++ b/src/main/webapp/resources/dia_sk.txt
@@ -258,6 +258,7 @@ glass=Sklo
googleImages=Obrázky Google
imageSearch=Vyhľadávanie obrázkov
eip=EIP
+effects=Efekty
embed=Vložiť
embedFonts=Vložiť písma
embedImages=Vložiť obrázky
diff --git a/src/main/webapp/resources/dia_sl.txt b/src/main/webapp/resources/dia_sl.txt
index fa56921a4..7a5647011 100644
--- a/src/main/webapp/resources/dia_sl.txt
+++ b/src/main/webapp/resources/dia_sl.txt
@@ -258,6 +258,7 @@ glass=Steklo
googleImages=Google Slike
imageSearch=Iskanje slik
eip=EIP
+effects=Učinki
embed=Vdelaj
embedFonts=Vdelaj pisave
embedImages=Vdelaj slike
diff --git a/src/main/webapp/resources/dia_sr.txt b/src/main/webapp/resources/dia_sr.txt
index 1a67c9550..91bfc1252 100644
--- a/src/main/webapp/resources/dia_sr.txt
+++ b/src/main/webapp/resources/dia_sr.txt
@@ -258,6 +258,7 @@ glass=Staklo
googleImages=Google slike
imageSearch=Pretraživač slika
eip=EIP
+effects=Efekti
embed=Ugradi
embedFonts=Ugradi fontove
embedImages=Ugradi slike
diff --git a/src/main/webapp/resources/dia_sv.txt b/src/main/webapp/resources/dia_sv.txt
index a7dcfb050..7290fffa1 100644
--- a/src/main/webapp/resources/dia_sv.txt
+++ b/src/main/webapp/resources/dia_sv.txt
@@ -258,6 +258,7 @@ glass=Glas
googleImages=Google Bilder
imageSearch=Bildsökning
eip=EIP
+effects=Effekter
embed=Bädda in
embedFonts=Bädda in typsnitt
embedImages=Bädda in bilder
diff --git a/src/main/webapp/resources/dia_sw.txt b/src/main/webapp/resources/dia_sw.txt
index dfe32238a..abf441057 100644
--- a/src/main/webapp/resources/dia_sw.txt
+++ b/src/main/webapp/resources/dia_sw.txt
@@ -258,6 +258,7 @@ glass=Kioo
googleImages=Picha za Google
imageSearch=Tafuta Picha
eip=EIP
+effects=Athari
embed=Pachika
embedFonts=Pachika Fonti
embedImages=Pachika Picha
diff --git a/src/main/webapp/resources/dia_ta.txt b/src/main/webapp/resources/dia_ta.txt
index a290c1596..e6f10c292 100644
--- a/src/main/webapp/resources/dia_ta.txt
+++ b/src/main/webapp/resources/dia_ta.txt
@@ -258,6 +258,7 @@ glass=கண்ணாடி
googleImages=கூகிள் படங்கள்
imageSearch=பட தேடல்
eip=EIP
+effects=விளைவுகள்
embed=உட்பொதி
embedFonts=எழுத்துருக்களை உட்பொதி
embedImages=படங்களை உட்பொதிக்கவும்
diff --git a/src/main/webapp/resources/dia_te.txt b/src/main/webapp/resources/dia_te.txt
index 7a5676bf8..97fb2f588 100644
--- a/src/main/webapp/resources/dia_te.txt
+++ b/src/main/webapp/resources/dia_te.txt
@@ -258,6 +258,7 @@ glass=గాజు
googleImages=Google చిత్రాలు
imageSearch=చిత్ర శోధన
eip=EIP
+effects=ప్రభావాలు
embed=పొందుపరచు
embedFonts=ఫాంట్‌లను పొందుపరచు
embedImages=చిత్రాలను పొందుపరచు
diff --git a/src/main/webapp/resources/dia_th.txt b/src/main/webapp/resources/dia_th.txt
index baf543358..e31e10ee1 100644
--- a/src/main/webapp/resources/dia_th.txt
+++ b/src/main/webapp/resources/dia_th.txt
@@ -258,6 +258,7 @@ glass=แก้ว
googleImages=รูปภาพจาก Google
imageSearch=ค้นหารูปภาพ
eip=EIP
+effects=เอฟเฟกต์
embed=ฝังตัว
embedFonts=ฝังแบบอักษร
embedImages=ฝังรูปภาพ
diff --git a/src/main/webapp/resources/dia_tr.txt b/src/main/webapp/resources/dia_tr.txt
index 42c5e08e3..991869d9c 100644
--- a/src/main/webapp/resources/dia_tr.txt
+++ b/src/main/webapp/resources/dia_tr.txt
@@ -258,6 +258,7 @@ glass=Cam
googleImages=Google Görselleri
imageSearch=Resim Arama
eip=EIP
+effects=Efektler
embed=Dahil et
embedFonts=Fontları Dahil Et
embedImages=Görselleri dahil et
diff --git a/src/main/webapp/resources/dia_uk.txt b/src/main/webapp/resources/dia_uk.txt
index a58bb1aa3..8d7cfe160 100644
--- a/src/main/webapp/resources/dia_uk.txt
+++ b/src/main/webapp/resources/dia_uk.txt
@@ -258,6 +258,7 @@ glass=Скло
googleImages=Google Зображення
imageSearch=Пошук зображення
eip=EIP
+effects=Ефекти
embed=Вбудувати
embedFonts=Вбудувати шрифти
embedImages=Вбудувати зображення
diff --git a/src/main/webapp/resources/dia_vi.txt b/src/main/webapp/resources/dia_vi.txt
index 58b2529cd..4fe958705 100644
--- a/src/main/webapp/resources/dia_vi.txt
+++ b/src/main/webapp/resources/dia_vi.txt
@@ -258,6 +258,7 @@ glass=Kính
googleImages=Google Hình ảnh
imageSearch=Tìm kiếm hình ảnh
eip=EIP
+effects=Hiệu ứng
embed=Nhúng
embedFonts=Nhúng phông chữ
embedImages=Nhúng hình ảnh
diff --git a/src/main/webapp/resources/dia_zh-tw.txt b/src/main/webapp/resources/dia_zh-tw.txt
index 41cf64b85..b4089aac4 100644
--- a/src/main/webapp/resources/dia_zh-tw.txt
+++ b/src/main/webapp/resources/dia_zh-tw.txt
@@ -258,6 +258,7 @@ glass=玻璃
googleImages=Google 圖片
imageSearch=圖片搜尋
eip=EIP
+effects=效果
embed=嵌入
embedFonts=嵌入字型
embedImages=嵌入圖片
diff --git a/src/main/webapp/resources/dia_zh.txt b/src/main/webapp/resources/dia_zh.txt
index 34c4dc03d..c3050ebd3 100644
--- a/src/main/webapp/resources/dia_zh.txt
+++ b/src/main/webapp/resources/dia_zh.txt
@@ -258,6 +258,7 @@ glass=玻璃
googleImages=Google 图片
imageSearch=图片搜索
eip=EIP
+effects=效果
embed=嵌入
embedFonts=嵌入字体
embedImages=嵌入图片
diff --git a/src/main/webapp/service-worker.js b/src/main/webapp/service-worker.js
index c46f883eb..939362d88 100644
--- a/src/main/webapp/service-worker.js
+++ b/src/main/webapp/service-worker.js
@@ -1,2 +1,2 @@
-if(!self.define){let e,i={};const s=(s,a)=>(s=new URL(s+".js",a).href,i[s]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=i,document.head.appendChild(e)}else e=s,importScripts(s),i()})).then((()=>{let e=i[s];if(!e)throw new Error(`Module ${s} didn’t register its module`);return e})));self.define=(a,r)=>{const c=e||("document"in self?document.currentScript.src:"")||location.href;if(i[c])return;let o={};const n=e=>s(e,c),d={module:{uri:c},exports:o,require:n};i[c]=Promise.all(a.map((e=>d[e]||n(e)))).then((e=>(r(...e),o)))}}define(["./workbox-acfd85e3"],(function(e){"use strict";self.skipWaiting(),e.precacheAndRoute([{url:"js/bootstrap.js",revision:"5bd9c052196840673b9e60ea966a9ed9"},{url:"js/main.js",revision:"a8d40469d3d72ab4b11059362f3dd825"},{url:"js/app.min.js",revision:"447fd13858ac4617e2ae8a9e6205d4d0"},{url:"js/extensions.min.js",revision:"6404552aac7e9982da238945118a6432"},{url:"js/orgchart.min.js",revision:"619d8c4dab47b81868916df31f55478b"},{url:"js/stencils.min.js",revision:"54eda90e3b255ee094aa7b78cabc117c"},{url:"js/shapes-14-6-5.min.js",revision:"8fb1150deb6262b5582987cb2965979c"},{url:"js/math-print.js",revision:"ad9cf0f2f2b614eac58ea72499c1017f"},{url:"index.html",revision:"9de11c65ec13b24c73ace7042bc529cc"},{url:"open.html",revision:"d71816b3b00e769fc6019fcdd6921662"},{url:"config-editor.html",revision:"47bac62738383fac338cb86a85fa9d22"},{url:"shortcuts.svg",revision:"2381dd779ce6cfee954042a7f784c7e6"},{url:"styles/fonts/ArchitectsDaughter-Regular.ttf",revision:"31c2153c0530e32553b31a49b3d70736"},{url:"styles/grapheditor.css",revision:"cc2e82e0efe967c0a1cd8c21f9d29c0c"},{url:"styles/high-contrast.css",revision:"0c0219b1016c8bd6bbf859cfd53b5058"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"e863f5e6833892f22492211663e3efe9"},{url:"js/viewer-static.min.js",revision:"3d0fd2fe0588688681538a092f72c14e"},{url:"connect/jira/editor-1-3-3.html",revision:"41dc8af9576b47f359cff19fff7a41c2"},{url:"connect/jira/viewerPanel-1-3-12.html",revision:"4836f5e4308abe57830e441518364f23"},{url:"connect/jira/viewerPanel2.html",revision:"0dd1ee1343a46b5c03aedbc587450b84"},{url:"connect/jira/fullScreenViewer-1-3-3.html",revision:"abed474e47c0c41a5ad2366b4828f77a"},{url:"connect/jira/viewerPanel.js",revision:"85011efa68d638da560871ee2ab3a6fe"},{url:"connect/jira/spinner.gif",revision:"7d857ab9d86123e93d74d48e958fe743"},{url:"connect/jira/editor.js",revision:"3dc56c6566abaa7af151a8359e5bb556"},{url:"connect/jira/fullscreen-viewer-init.js",revision:"07043c1ee868dd425f7876da94bbc307"},{url:"connect/jira/fullscreen-viewer.js",revision:"a6be96b8ddc5a25196925713cf34d571"},{url:"plugins/connectJira.js",revision:"d220cad2edf0d6b161505fe12ae3eaa6"},{url:"plugins/cConf-comments.js",revision:"e4a4b5a0fb22393693d3b62968c50644"},{url:"plugins/cConf-1-4-8.js",revision:"47a7156bfb0f2b9e69ff783013aeebf5"},{url:"connect/confluence/connectUtils-1-4-8.js",revision:"c5aade7e4897b03a9ef7b7d6f5577a08"},{url:"connect/new_common/cac.js",revision:"a6db89336e8e59c200e28a2a766d272c"},{url:"connect/gdrive_common/gac.js",revision:"c66fdc50ec87002a502cb0779b73a692"},{url:"connect/onedrive_common/ac.js",revision:"1264ba8705eff0d1337701e5ae962366"},{url:"connect/confluence/viewer-init.js",revision:"c5e51e32ac74414d8d518af83ee2781f"},{url:"connect/confluence/viewer.js",revision:"c12112f0ec92dee98073eaffd4c9bea9"},{url:"connect/confluence/viewer-1-4-42.html",revision:"69c1bca25fd4889bf832e8441c972268"},{url:"connect/confluence/macroEditor-1-4-8.html",revision:"4ad77ae3f08c19eddac932b2fa8c7068"},{url:"connect/confluence/includeDiagram-1-4-8.js",revision:"489bc44e46d6481277c3f2a5d81a2db6"},{url:"connect/confluence/includeDiagram.html",revision:"01b04b3f54f1e2e63fcf1df033d24519"},{url:"connect/confluence/macro-editor.js",revision:"b9000d6c20f30e4068f83bd0b56965ca"},{url:"math4/es5/ui/safe.js",revision:"4c481ca61f35d7b962bae3291b284df1"},{url:"math4/es5/core.js",revision:"7dc7147f9dd09489d9ce0bf754dc0120"},{url:"math4/es5/input/tex/extensions/bbm.js",revision:"03afe2dfbb002b0343e5233dcef24dc2"},{url:"math4/es5/input/tex/extensions/html.js",revision:"c29b1ead29f466db275be422ff612116"},{url:"math4/es5/input/tex/extensions/extpfeil.js",revision:"e8764945ab1fa8d4a8b79124815a5d96"},{url:"math4/es5/input/tex/extensions/action.js",revision:"d2416fc880e154c8cf6a57458cf33131"},{url:"math4/es5/input/tex/extensions/boldsymbol.js",revision:"a3116882e895c077a03d411741dca9d4"},{url:"math4/es5/input/tex/extensions/cases.js",revision:"b9c85b94f49512d54b0aa0e9be082dae"},{url:"math4/es5/input/tex/extensions/colortbl.js",revision:"2399ede386031b0385799df60c43c0d9"},{url:"math4/es5/input/tex/extensions/verb.js",revision:"928837fa27cbb3d364cc08cf1b756f59"},{url:"math4/es5/input/tex/extensions/unicode.js",revision:"bfc7dce797e851dfc54c850102bc81a3"},{url:"math4/es5/input/tex/extensions/cancel.js",revision:"d101be74f309165af176cb2fddcdc878"},{url:"math4/es5/input/tex/extensions/enclose.js",revision:"049c74f77f9ef2c3df3b1e69d66188f8"},{url:"math4/es5/input/tex/extensions/units.js",revision:"c61f22fa8ae966afe4fae2963b92bd2f"},{url:"math4/es5/input/tex/extensions/color.js",revision:"7765044cf33d7d3268c05b904d14fe41"},{url:"math4/es5/input/tex/extensions/mathtools.js",revision:"e996a34e23021c401b08107be6336b8b"},{url:"math4/es5/input/tex/extensions/begingroup.js",revision:"f6ee462375696dbb388cf28c56799c7f"},{url:"math4/es5/input/tex/extensions/braket.js",revision:"b16d2e8ae04742e9e28ab5b67834dd00"},{url:"math4/es5/input/tex/extensions/dsfont.js",revision:"3c9ec642a438d8ee512a7161ba648c9b"},{url:"math4/es5/input/tex/extensions/bbox.js",revision:"725a176e0848a43b7bc12fbef0405777"},{url:"math4/es5/input/tex/extensions/amscd.js",revision:"69c6579db543071516806a310818f836"},{url:"math4/es5/input/tex/extensions/textcomp.js",revision:"45763058bcba03250085c8f3edbba6b6"},{url:"math4/es5/input/tex/extensions/bussproofs.js",revision:"09cd9743e847f27eed667bf2a14c8f3f"},{url:"math4/es5/input/tex/extensions/bboldx.js",revision:"e927b36562d102c9381d1cf6019fc435"},{url:"math4/es5/input/tex/extensions/physics.js",revision:"6064897fff5db81d2d1d1c7c535c488f"},{url:"math4/es5/input/tex/extensions/centernot.js",revision:"12250d76cb9bca8fb7b0bd6c85a53d91"},{url:"math4/es5/input/tex/extensions/gensymb.js",revision:"2ea2fb74d7579cc0f64ec31bc9864b53"},{url:"math4/es5/input/tex/extensions/upgreek.js",revision:"d54eaab30ce82de4a414a67acbf81ffc"},{url:"math4/es5/input/tex/extensions/empheq.js",revision:"20a7efd2d2a2275dfa503bc25a365009"},{url:"math4/es5/input/tex/extensions/mhchem.js",revision:"bf94223fe83d22db894f3268acec4775"},{url:"math4/es5/input/asciimath.js",revision:"fca254c01e6a0deb9ecee1d550a17f71"},{url:"math4/es5/input/tex.js",revision:"8c3fe52f6f9e5b045a8ab62ecebd5b68"},{url:"math4/es5/startup.js",revision:"aac42e2a50811d1c26b37c41b4f365ac"},{url:"math4/es5/output/svg.js",revision:"f1603dbbd7c5453cc508fe262215fc9f"},{url:"math4/es5/fonts/mathjax-bbm-font-extension/svg.js",revision:"18e9f748695ae1628367dcd2d39e4c1d"},{url:"math4/es5/fonts/mathjax-tex-font/svg.js",revision:"1ae8c56b2ac35edc2d14811b551ea366"},{url:"math4/es5/fonts/mathjax-bboldx-font-extension/svg.js",revision:"bc969488528ff218a0c3fbf8da18eca0"},{url:"math4/es5/fonts/mathjax-dsfont-font-extension/svg.js",revision:"acc46c899a237b54112f3c4bab91a0ba"},{url:"math4/es5/fonts/mathjax-mhchem-font-extension/svg.js",revision:"206aed069c09009146e9234e7e37439e"},{url:"resources/dia.txt",revision:"040f50c64a9751a207385fe608699020"},{url:"resources/dia_am.txt",revision:"925024bf22f3fe4378ff96d83bb505c9"},{url:"resources/dia_ar.txt",revision:"a8ad3f5b16da2e1852f93215fbd278dd"},{url:"resources/dia_bg.txt",revision:"ba114971c1536d477ca5369cc0760247"},{url:"resources/dia_bn.txt",revision:"2e0efc4aa64cd09bdfc73ca075efe976"},{url:"resources/dia_bs.txt",revision:"8ed583b8a6ad04917353096e0aa34b60"},{url:"resources/dia_ca.txt",revision:"e193ca65122200ff99ec10ed12ad7a0e"},{url:"resources/dia_cs.txt",revision:"7ad512463c3a5a0aacdda09a49b7eca9"},{url:"resources/dia_da.txt",revision:"4d55e0aeb84448ff25ca195a193121fb"},{url:"resources/dia_de.txt",revision:"7fc7f29bf32eef11613417f52e42a373"},{url:"resources/dia_el.txt",revision:"3eb830fcbb0b45daff3a2e4530e2469f"},{url:"resources/dia_eo.txt",revision:"c6cd441465d4dc4b37fd963d892e22ca"},{url:"resources/dia_es.txt",revision:"247e7e035be1070669e1e55733767ed2"},{url:"resources/dia_et.txt",revision:"e0b00e85fb0b4f3b59f45bb3f59100a9"},{url:"resources/dia_eu.txt",revision:"383ed880bc73f56282cd50739128e350"},{url:"resources/dia_fa.txt",revision:"3525fbf1366c6da20a9a3e1841d58d07"},{url:"resources/dia_fi.txt",revision:"cda4c8fb07aa901f7d31b6ef48cb732f"},{url:"resources/dia_fil.txt",revision:"efff29c3faca9a3b3f509bf9e497c06e"},{url:"resources/dia_fr.txt",revision:"d0c54628fbd73043e33a9e5922f7ae3e"},{url:"resources/dia_gl.txt",revision:"8d7a873b80462f128758e2475127fee4"},{url:"resources/dia_gu.txt",revision:"a9edf9d3dd3bfcacadabef72bae376a7"},{url:"resources/dia_he.txt",revision:"fe7f9e8e9977df06c2caebecb1546fe6"},{url:"resources/dia_hi.txt",revision:"a20873e53d112c2c09710a2009229a72"},{url:"resources/dia_hr.txt",revision:"1be33cb007e2acfbbdaeb94ab5d044c5"},{url:"resources/dia_hu.txt",revision:"f01a87d0722618730770de2327e970c3"},{url:"resources/dia_id.txt",revision:"56a0d599730100cb23129b066a496edb"},{url:"resources/dia_it.txt",revision:"53c00d2455d5a7c2a375e5a3bce66fac"},{url:"resources/dia_ja.txt",revision:"db5b38f5114af8c2cb666e70ef11f4ae"},{url:"resources/dia_kn.txt",revision:"35e3c06f65cc3e5ba78b87248888f5a6"},{url:"resources/dia_ko.txt",revision:"a5f738c51671293baa22ba5a9dd9146e"},{url:"resources/dia_lt.txt",revision:"2a782b19c1d307f43e89b5193c11abab"},{url:"resources/dia_lv.txt",revision:"bc974e235909267bba84b82bc8346cba"},{url:"resources/dia_ml.txt",revision:"92fa7ba165c9f61d534cb3730feec0ac"},{url:"resources/dia_mr.txt",revision:"20e99308047844d82350b14f7cba3e3d"},{url:"resources/dia_ms.txt",revision:"1f5dca3a31e43a2900d2140b09a9d24b"},{url:"resources/dia_my.txt",revision:"4bd6b8940b4bcae7d7c731821e2a7929"},{url:"resources/dia_nl.txt",revision:"de50cbb38ca9803dd9f235ee3240edf9"},{url:"resources/dia_no.txt",revision:"e51f64356695920e7d85ffadf5f0b5ec"},{url:"resources/dia_pl.txt",revision:"bb833b5196aa354f3c857ad88197012d"},{url:"resources/dia_pt-br.txt",revision:"b43ea550c1e5b9f2c495dacc15c2338f"},{url:"resources/dia_pt.txt",revision:"e77de0a7899be48e2baf1f23efeb5c66"},{url:"resources/dia_ro.txt",revision:"561046b328334ee38015bbeff8a3b81e"},{url:"resources/dia_ru.txt",revision:"f0a7e222f7e391ed29942c335ddd017a"},{url:"resources/dia_si.txt",revision:"81551431d1db752ce71520ffbcb39840"},{url:"resources/dia_sk.txt",revision:"ea649f7f47defbb2faff7ed92d45c969"},{url:"resources/dia_sl.txt",revision:"2261559cae42e5682f324be3c8ac2a95"},{url:"resources/dia_sr.txt",revision:"c4f1910c01afdda565f9ecd912998df1"},{url:"resources/dia_sv.txt",revision:"98c4daa97315110dc2491bc59f4de615"},{url:"resources/dia_sw.txt",revision:"40baeca9b69ef189ea4f519e2be350a7"},{url:"resources/dia_ta.txt",revision:"44f4c32cebf257bf49ceb9a9fc0c0345"},{url:"resources/dia_te.txt",revision:"2b039b112c6c2449a5262d531fcc6cc1"},{url:"resources/dia_th.txt",revision:"bb29024372ec2cb5788235704ba3cfc2"},{url:"resources/dia_tr.txt",revision:"e5ebdea0b493e75b584442d865dd69d9"},{url:"resources/dia_uk.txt",revision:"fd2055fcd1f7ed9b5f8a8374e7dcd6df"},{url:"resources/dia_vi.txt",revision:"f9a7544b90651e4ac3c5aaef5157845c"},{url:"resources/dia_zh-tw.txt",revision:"82ff0e8a485bd061de2261283eaa3663"},{url:"resources/dia_zh.txt",revision:"7143de9c070c72f8803bdac5f340498d"},{url:"favicon.ico",revision:"b2bf17349e4b50ce4ba311f079f8bf7d"},{url:"images/manifest.json",revision:"421b4fae5b46499348d194e1f93558c3"},{url:"images/logo.png",revision:"e4e0d092abdb1e668b5ec41a7fe0713c"},{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/logo-flat-small.png",revision:"4b178e59ff499d6dd1894fc498b59877"},{url:"images/apple-touch-icon.png",revision:"732c29e21332a926318a7005d21ec450"},{url:"images/icon-192-maskable.png",revision:"47e006d0ce4a35eb5beaa97f0c2bfed0"},{url:"images/icon-192.png",revision:"d022403d52435d76afec82c4e24a17ef"},{url:"images/icon-512-maskable.png",revision:"cf152feeb01fb21f3148a71a3540266e"},{url:"images/icon-512.png",revision:"a3a0df7e7a385244b74073f81ecc45de"},{url:"images/delete.png",revision:"5f2350f2fd20f1a229637aed32ed8f29"},{url:"images/droptarget.png",revision:"bbf7f563fb6784de1ce96f329519b043"},{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/spin.gif",revision:"487cbb40b9ced439aa1ad914e816d773"},{url:"images/aui-wait.gif",revision:"5a474bcbd8d2f2826f03d10ea44bf60e"},{url:"mxgraph/css/common.css",revision:"8d895dc8387694c128232b13e631be39"}],{ignoreURLParametersMatching:[/.*/]})}));
+if(!self.define){let e,i={};const s=(s,r)=>(s=new URL(s+".js",r).href,i[s]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=i,document.head.appendChild(e)}else e=s,importScripts(s),i()})).then((()=>{let e=i[s];if(!e)throw new Error(`Module ${s} didn’t register its module`);return e})));self.define=(r,a)=>{const c=e||("document"in self?document.currentScript.src:"")||location.href;if(i[c])return;let o={};const n=e=>s(e,c),d={module:{uri:c},exports:o,require:n};i[c]=Promise.all(r.map((e=>d[e]||n(e)))).then((e=>(a(...e),o)))}}define(["./workbox-acfd85e3"],(function(e){"use strict";self.skipWaiting(),e.precacheAndRoute([{url:"js/bootstrap.js",revision:"5bd9c052196840673b9e60ea966a9ed9"},{url:"js/main.js",revision:"a8d40469d3d72ab4b11059362f3dd825"},{url:"js/app.min.js",revision:"0e9cbac73f960fb29e467c6aaa1e36ae"},{url:"js/extensions.min.js",revision:"6404552aac7e9982da238945118a6432"},{url:"js/orgchart.min.js",revision:"619d8c4dab47b81868916df31f55478b"},{url:"js/stencils.min.js",revision:"54eda90e3b255ee094aa7b78cabc117c"},{url:"js/shapes-14-6-5.min.js",revision:"8fb1150deb6262b5582987cb2965979c"},{url:"js/math-print.js",revision:"ad9cf0f2f2b614eac58ea72499c1017f"},{url:"index.html",revision:"9de11c65ec13b24c73ace7042bc529cc"},{url:"open.html",revision:"d71816b3b00e769fc6019fcdd6921662"},{url:"config-editor.html",revision:"47bac62738383fac338cb86a85fa9d22"},{url:"shortcuts.svg",revision:"2381dd779ce6cfee954042a7f784c7e6"},{url:"styles/fonts/ArchitectsDaughter-Regular.ttf",revision:"31c2153c0530e32553b31a49b3d70736"},{url:"styles/grapheditor.css",revision:"850f578e1992a7af3dd98ee66ddce4a7"},{url:"styles/high-contrast.css",revision:"0c0219b1016c8bd6bbf859cfd53b5058"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"e863f5e6833892f22492211663e3efe9"},{url:"js/viewer-static.min.js",revision:"2b64c427f0f91134a3c31e3236db279e"},{url:"connect/jira/editor-1-3-3.html",revision:"41dc8af9576b47f359cff19fff7a41c2"},{url:"connect/jira/viewerPanel-1-3-12.html",revision:"4836f5e4308abe57830e441518364f23"},{url:"connect/jira/viewerPanel2.html",revision:"0dd1ee1343a46b5c03aedbc587450b84"},{url:"connect/jira/fullScreenViewer-1-3-3.html",revision:"abed474e47c0c41a5ad2366b4828f77a"},{url:"connect/jira/viewerPanel.js",revision:"85011efa68d638da560871ee2ab3a6fe"},{url:"connect/jira/spinner.gif",revision:"7d857ab9d86123e93d74d48e958fe743"},{url:"connect/jira/editor.js",revision:"3dc56c6566abaa7af151a8359e5bb556"},{url:"connect/jira/fullscreen-viewer-init.js",revision:"07043c1ee868dd425f7876da94bbc307"},{url:"connect/jira/fullscreen-viewer.js",revision:"a6be96b8ddc5a25196925713cf34d571"},{url:"plugins/connectJira.js",revision:"d220cad2edf0d6b161505fe12ae3eaa6"},{url:"plugins/cConf-comments.js",revision:"e4a4b5a0fb22393693d3b62968c50644"},{url:"plugins/cConf-1-4-8.js",revision:"47a7156bfb0f2b9e69ff783013aeebf5"},{url:"connect/confluence/connectUtils-1-4-8.js",revision:"c5aade7e4897b03a9ef7b7d6f5577a08"},{url:"connect/new_common/cac.js",revision:"a6db89336e8e59c200e28a2a766d272c"},{url:"connect/gdrive_common/gac.js",revision:"c66fdc50ec87002a502cb0779b73a692"},{url:"connect/onedrive_common/ac.js",revision:"1264ba8705eff0d1337701e5ae962366"},{url:"connect/confluence/viewer-init.js",revision:"c5e51e32ac74414d8d518af83ee2781f"},{url:"connect/confluence/viewer.js",revision:"c12112f0ec92dee98073eaffd4c9bea9"},{url:"connect/confluence/viewer-1-4-42.html",revision:"69c1bca25fd4889bf832e8441c972268"},{url:"connect/confluence/macroEditor-1-4-8.html",revision:"4ad77ae3f08c19eddac932b2fa8c7068"},{url:"connect/confluence/includeDiagram-1-4-8.js",revision:"489bc44e46d6481277c3f2a5d81a2db6"},{url:"connect/confluence/includeDiagram.html",revision:"01b04b3f54f1e2e63fcf1df033d24519"},{url:"connect/confluence/macro-editor.js",revision:"b9000d6c20f30e4068f83bd0b56965ca"},{url:"math4/es5/ui/safe.js",revision:"4c481ca61f35d7b962bae3291b284df1"},{url:"math4/es5/core.js",revision:"7dc7147f9dd09489d9ce0bf754dc0120"},{url:"math4/es5/input/tex/extensions/bbm.js",revision:"03afe2dfbb002b0343e5233dcef24dc2"},{url:"math4/es5/input/tex/extensions/html.js",revision:"c29b1ead29f466db275be422ff612116"},{url:"math4/es5/input/tex/extensions/extpfeil.js",revision:"e8764945ab1fa8d4a8b79124815a5d96"},{url:"math4/es5/input/tex/extensions/action.js",revision:"d2416fc880e154c8cf6a57458cf33131"},{url:"math4/es5/input/tex/extensions/boldsymbol.js",revision:"a3116882e895c077a03d411741dca9d4"},{url:"math4/es5/input/tex/extensions/cases.js",revision:"b9c85b94f49512d54b0aa0e9be082dae"},{url:"math4/es5/input/tex/extensions/colortbl.js",revision:"2399ede386031b0385799df60c43c0d9"},{url:"math4/es5/input/tex/extensions/verb.js",revision:"928837fa27cbb3d364cc08cf1b756f59"},{url:"math4/es5/input/tex/extensions/unicode.js",revision:"bfc7dce797e851dfc54c850102bc81a3"},{url:"math4/es5/input/tex/extensions/cancel.js",revision:"d101be74f309165af176cb2fddcdc878"},{url:"math4/es5/input/tex/extensions/enclose.js",revision:"049c74f77f9ef2c3df3b1e69d66188f8"},{url:"math4/es5/input/tex/extensions/units.js",revision:"c61f22fa8ae966afe4fae2963b92bd2f"},{url:"math4/es5/input/tex/extensions/color.js",revision:"7765044cf33d7d3268c05b904d14fe41"},{url:"math4/es5/input/tex/extensions/mathtools.js",revision:"e996a34e23021c401b08107be6336b8b"},{url:"math4/es5/input/tex/extensions/begingroup.js",revision:"f6ee462375696dbb388cf28c56799c7f"},{url:"math4/es5/input/tex/extensions/braket.js",revision:"b16d2e8ae04742e9e28ab5b67834dd00"},{url:"math4/es5/input/tex/extensions/dsfont.js",revision:"3c9ec642a438d8ee512a7161ba648c9b"},{url:"math4/es5/input/tex/extensions/bbox.js",revision:"725a176e0848a43b7bc12fbef0405777"},{url:"math4/es5/input/tex/extensions/amscd.js",revision:"69c6579db543071516806a310818f836"},{url:"math4/es5/input/tex/extensions/textcomp.js",revision:"45763058bcba03250085c8f3edbba6b6"},{url:"math4/es5/input/tex/extensions/bussproofs.js",revision:"09cd9743e847f27eed667bf2a14c8f3f"},{url:"math4/es5/input/tex/extensions/bboldx.js",revision:"e927b36562d102c9381d1cf6019fc435"},{url:"math4/es5/input/tex/extensions/physics.js",revision:"6064897fff5db81d2d1d1c7c535c488f"},{url:"math4/es5/input/tex/extensions/centernot.js",revision:"12250d76cb9bca8fb7b0bd6c85a53d91"},{url:"math4/es5/input/tex/extensions/gensymb.js",revision:"2ea2fb74d7579cc0f64ec31bc9864b53"},{url:"math4/es5/input/tex/extensions/upgreek.js",revision:"d54eaab30ce82de4a414a67acbf81ffc"},{url:"math4/es5/input/tex/extensions/empheq.js",revision:"20a7efd2d2a2275dfa503bc25a365009"},{url:"math4/es5/input/tex/extensions/mhchem.js",revision:"bf94223fe83d22db894f3268acec4775"},{url:"math4/es5/input/asciimath.js",revision:"fca254c01e6a0deb9ecee1d550a17f71"},{url:"math4/es5/input/tex.js",revision:"8c3fe52f6f9e5b045a8ab62ecebd5b68"},{url:"math4/es5/startup.js",revision:"aac42e2a50811d1c26b37c41b4f365ac"},{url:"math4/es5/output/svg.js",revision:"f1603dbbd7c5453cc508fe262215fc9f"},{url:"math4/es5/fonts/mathjax-bbm-font-extension/svg.js",revision:"18e9f748695ae1628367dcd2d39e4c1d"},{url:"math4/es5/fonts/mathjax-tex-font/svg.js",revision:"1ae8c56b2ac35edc2d14811b551ea366"},{url:"math4/es5/fonts/mathjax-bboldx-font-extension/svg.js",revision:"bc969488528ff218a0c3fbf8da18eca0"},{url:"math4/es5/fonts/mathjax-dsfont-font-extension/svg.js",revision:"acc46c899a237b54112f3c4bab91a0ba"},{url:"math4/es5/fonts/mathjax-mhchem-font-extension/svg.js",revision:"206aed069c09009146e9234e7e37439e"},{url:"resources/dia.txt",revision:"d11c0136b9d2a30cd10796d4b3363ecf"},{url:"resources/dia_am.txt",revision:"bb65f698dae5ebb25a0132873c989063"},{url:"resources/dia_ar.txt",revision:"589001cf1a6b48e64a747a55aa2cf134"},{url:"resources/dia_bg.txt",revision:"6155fa4e46098d267cd55542c22bca10"},{url:"resources/dia_bn.txt",revision:"8cc5d592cfd48ceb90665613578ed69d"},{url:"resources/dia_bs.txt",revision:"3d6b088ce6417bfb2f18f642c4e823e1"},{url:"resources/dia_ca.txt",revision:"dadff06ee6684e3122b972085a28e15a"},{url:"resources/dia_cs.txt",revision:"10090b17a54ada9aa78894be82d2c6e2"},{url:"resources/dia_da.txt",revision:"52ff8d0b5b79dd885d80bb4f8176c23f"},{url:"resources/dia_de.txt",revision:"834dff5d630c75a6f5d0a87a954ccb35"},{url:"resources/dia_el.txt",revision:"95c4980229d608972c7df570fd3027c7"},{url:"resources/dia_eo.txt",revision:"6fcff1b91b096b3e0b72bceee09c69fa"},{url:"resources/dia_es.txt",revision:"c75e93b61a0de47222f17964d6c6c083"},{url:"resources/dia_et.txt",revision:"3bf113d9cc9e04921107d5eb6b6e4959"},{url:"resources/dia_eu.txt",revision:"6d5d98711e749129b72f877547097873"},{url:"resources/dia_fa.txt",revision:"f6817090b3c87dff402efba98760c55c"},{url:"resources/dia_fi.txt",revision:"c9da43fb4aa362692dfc28acc91ec789"},{url:"resources/dia_fil.txt",revision:"7cdbfa1219089c1449c9d55fc5dcc2ec"},{url:"resources/dia_fr.txt",revision:"def92e08070f525c877012c112a6d96f"},{url:"resources/dia_gl.txt",revision:"a11684a8b3e10fd12434fa5efb779481"},{url:"resources/dia_gu.txt",revision:"9a74564d008875fa113a4382341a2892"},{url:"resources/dia_he.txt",revision:"402af4b071bf2a2fcf6766c05c5a730a"},{url:"resources/dia_hi.txt",revision:"2201dbb764452bbcb8b88f32a881754f"},{url:"resources/dia_hr.txt",revision:"7482ad5dbb83605b931bbc95bc3d1d42"},{url:"resources/dia_hu.txt",revision:"2009fb561d9cceadbf0f226e2233f85a"},{url:"resources/dia_id.txt",revision:"cd1cd180ac2c360efff5ff4c0986c338"},{url:"resources/dia_it.txt",revision:"94aefd07c8c6f04a39c805e3337afb30"},{url:"resources/dia_ja.txt",revision:"a7f213644fe0e7a860677a21672d0853"},{url:"resources/dia_kn.txt",revision:"9f4686f42201f4f3dc8c2316cab9852b"},{url:"resources/dia_ko.txt",revision:"00138c98ed198f3ccb3856a9afdd5eb6"},{url:"resources/dia_lt.txt",revision:"86ff94c31acefee00bcf8c0593d73ba3"},{url:"resources/dia_lv.txt",revision:"ffe4bae90364c62613034bf4aa69aec7"},{url:"resources/dia_ml.txt",revision:"bd98c0e29eb4c728747ac3953889554c"},{url:"resources/dia_mr.txt",revision:"4458e306d4d2283deb0531cff2ddaa7f"},{url:"resources/dia_ms.txt",revision:"cfc81b176cb2abd2d2b076f18412d13b"},{url:"resources/dia_my.txt",revision:"40d6b6a716494c3fbf765d109fe6cc27"},{url:"resources/dia_nl.txt",revision:"340a8789b6a5ba16a491b296604a05c2"},{url:"resources/dia_no.txt",revision:"73e1c2708887225760264113a2102fd2"},{url:"resources/dia_pl.txt",revision:"7b3d1d53783d06bc79129bad18f7a349"},{url:"resources/dia_pt-br.txt",revision:"1d731cdf063ae85b23cf144d153d1e20"},{url:"resources/dia_pt.txt",revision:"0fdda98f065931af466619ef284ad102"},{url:"resources/dia_ro.txt",revision:"e9135fc8af1f7e2bf594212fa02b0542"},{url:"resources/dia_ru.txt",revision:"ede9d306a21a89311880c942ea8d0aa8"},{url:"resources/dia_si.txt",revision:"a7acf069eb23ad9d108b69ba79a81744"},{url:"resources/dia_sk.txt",revision:"a57c83bad838828035dbf7438a4c51b5"},{url:"resources/dia_sl.txt",revision:"2d2cc16ae714b1d0b2cba54216010711"},{url:"resources/dia_sr.txt",revision:"2786f705be5d73c90c585e02240cea10"},{url:"resources/dia_sv.txt",revision:"6da6bb55e1fe3bccc252be8b3bc1179d"},{url:"resources/dia_sw.txt",revision:"16507643a348d8953cc7ee25546f560c"},{url:"resources/dia_ta.txt",revision:"d406b6ca63f18ac087b7323fd64e471f"},{url:"resources/dia_te.txt",revision:"3a1c35be5562d5c8a8e01676cf59a09c"},{url:"resources/dia_th.txt",revision:"ab095cdb113a773c1d1805637bd777e5"},{url:"resources/dia_tr.txt",revision:"8166bbc0706f8f0dd3891ff3b7e7e01a"},{url:"resources/dia_uk.txt",revision:"bbe51cf4a201e41443dcbee55299ffe5"},{url:"resources/dia_vi.txt",revision:"a4928a3ea5b05401b34b9caa4a8b6100"},{url:"resources/dia_zh-tw.txt",revision:"4ed120ba56103f7a253cdc3cecddc6e7"},{url:"resources/dia_zh.txt",revision:"b080015f62ff4f39ab8d252211da6697"},{url:"favicon.ico",revision:"b2bf17349e4b50ce4ba311f079f8bf7d"},{url:"images/manifest.json",revision:"421b4fae5b46499348d194e1f93558c3"},{url:"images/logo.png",revision:"e4e0d092abdb1e668b5ec41a7fe0713c"},{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/logo-flat-small.png",revision:"4b178e59ff499d6dd1894fc498b59877"},{url:"images/apple-touch-icon.png",revision:"732c29e21332a926318a7005d21ec450"},{url:"images/icon-192-maskable.png",revision:"47e006d0ce4a35eb5beaa97f0c2bfed0"},{url:"images/icon-192.png",revision:"d022403d52435d76afec82c4e24a17ef"},{url:"images/icon-512-maskable.png",revision:"cf152feeb01fb21f3148a71a3540266e"},{url:"images/icon-512.png",revision:"a3a0df7e7a385244b74073f81ecc45de"},{url:"images/delete.png",revision:"5f2350f2fd20f1a229637aed32ed8f29"},{url:"images/droptarget.png",revision:"bbf7f563fb6784de1ce96f329519b043"},{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/spin.gif",revision:"487cbb40b9ced439aa1ad914e816d773"},{url:"images/aui-wait.gif",revision:"5a474bcbd8d2f2826f03d10ea44bf60e"},{url:"mxgraph/css/common.css",revision:"8d895dc8387694c128232b13e631be39"}],{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 f33dd7809..0833d26a5 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":["../../../../../../private/var/folders/w3/8z182_j14fbd1p8pn7nc032h0000gn/T/967898743a63b0cf2f3ba34070e9eda5/service-worker.js"],"sourcesContent":["import {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/Users/davidbenson/.nvm/versions/node/v22.14.0/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.skipWaiting();\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/bootstrap.js\",\n \"revision\": \"5bd9c052196840673b9e60ea966a9ed9\"\n },\n {\n \"url\": \"js/main.js\",\n \"revision\": \"a8d40469d3d72ab4b11059362f3dd825\"\n },\n {\n \"url\": \"js/app.min.js\",\n \"revision\": \"447fd13858ac4617e2ae8a9e6205d4d0\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"6404552aac7e9982da238945118a6432\"\n },\n {\n \"url\": \"js/orgchart.min.js\",\n \"revision\": \"619d8c4dab47b81868916df31f55478b\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"54eda90e3b255ee094aa7b78cabc117c\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"8fb1150deb6262b5582987cb2965979c\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"ad9cf0f2f2b614eac58ea72499c1017f\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"9de11c65ec13b24c73ace7042bc529cc\"\n },\n {\n \"url\": \"open.html\",\n \"revision\": \"d71816b3b00e769fc6019fcdd6921662\"\n },\n {\n \"url\": \"config-editor.html\",\n \"revision\": \"47bac62738383fac338cb86a85fa9d22\"\n },\n {\n \"url\": \"shortcuts.svg\",\n \"revision\": \"2381dd779ce6cfee954042a7f784c7e6\"\n },\n {\n \"url\": \"styles/fonts/ArchitectsDaughter-Regular.ttf\",\n \"revision\": \"31c2153c0530e32553b31a49b3d70736\"\n },\n {\n \"url\": \"styles/grapheditor.css\",\n \"revision\": \"cc2e82e0efe967c0a1cd8c21f9d29c0c\"\n },\n {\n \"url\": \"styles/high-contrast.css\",\n \"revision\": \"0c0219b1016c8bd6bbf859cfd53b5058\"\n },\n {\n \"url\": \"js/dropbox/Dropbox-sdk.min.js\",\n \"revision\": \"4b9842892aa37b156db0a8364b7a83b0\"\n },\n {\n \"url\": \"js/onedrive/OneDrive.js\",\n \"revision\": \"e863f5e6833892f22492211663e3efe9\"\n },\n {\n \"url\": \"js/viewer-static.min.js\",\n \"revision\": \"3d0fd2fe0588688681538a092f72c14e\"\n },\n {\n \"url\": \"connect/jira/editor-1-3-3.html\",\n \"revision\": \"41dc8af9576b47f359cff19fff7a41c2\"\n },\n {\n \"url\": \"connect/jira/viewerPanel-1-3-12.html\",\n \"revision\": \"4836f5e4308abe57830e441518364f23\"\n },\n {\n \"url\": \"connect/jira/viewerPanel2.html\",\n \"revision\": \"0dd1ee1343a46b5c03aedbc587450b84\"\n },\n {\n \"url\": \"connect/jira/fullScreenViewer-1-3-3.html\",\n \"revision\": \"abed474e47c0c41a5ad2366b4828f77a\"\n },\n {\n \"url\": \"connect/jira/viewerPanel.js\",\n \"revision\": \"85011efa68d638da560871ee2ab3a6fe\"\n },\n {\n \"url\": \"connect/jira/spinner.gif\",\n \"revision\": \"7d857ab9d86123e93d74d48e958fe743\"\n },\n {\n \"url\": \"connect/jira/editor.js\",\n \"revision\": \"3dc56c6566abaa7af151a8359e5bb556\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer-init.js\",\n \"revision\": \"07043c1ee868dd425f7876da94bbc307\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer.js\",\n \"revision\": \"a6be96b8ddc5a25196925713cf34d571\"\n },\n {\n \"url\": \"plugins/connectJira.js\",\n \"revision\": \"d220cad2edf0d6b161505fe12ae3eaa6\"\n },\n {\n \"url\": \"plugins/cConf-comments.js\",\n \"revision\": \"e4a4b5a0fb22393693d3b62968c50644\"\n },\n {\n \"url\": \"plugins/cConf-1-4-8.js\",\n \"revision\": \"47a7156bfb0f2b9e69ff783013aeebf5\"\n },\n {\n \"url\": \"connect/confluence/connectUtils-1-4-8.js\",\n \"revision\": \"c5aade7e4897b03a9ef7b7d6f5577a08\"\n },\n {\n \"url\": \"connect/new_common/cac.js\",\n \"revision\": \"a6db89336e8e59c200e28a2a766d272c\"\n },\n {\n \"url\": \"connect/gdrive_common/gac.js\",\n \"revision\": \"c66fdc50ec87002a502cb0779b73a692\"\n },\n {\n \"url\": \"connect/onedrive_common/ac.js\",\n \"revision\": \"1264ba8705eff0d1337701e5ae962366\"\n },\n {\n \"url\": \"connect/confluence/viewer-init.js\",\n \"revision\": \"c5e51e32ac74414d8d518af83ee2781f\"\n },\n {\n \"url\": \"connect/confluence/viewer.js\",\n \"revision\": \"c12112f0ec92dee98073eaffd4c9bea9\"\n },\n {\n \"url\": \"connect/confluence/viewer-1-4-42.html\",\n \"revision\": \"69c1bca25fd4889bf832e8441c972268\"\n },\n {\n \"url\": \"connect/confluence/macroEditor-1-4-8.html\",\n \"revision\": \"4ad77ae3f08c19eddac932b2fa8c7068\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram-1-4-8.js\",\n \"revision\": \"489bc44e46d6481277c3f2a5d81a2db6\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram.html\",\n \"revision\": \"01b04b3f54f1e2e63fcf1df033d24519\"\n },\n {\n \"url\": \"connect/confluence/macro-editor.js\",\n \"revision\": \"b9000d6c20f30e4068f83bd0b56965ca\"\n },\n {\n \"url\": \"math4/es5/ui/safe.js\",\n \"revision\": \"4c481ca61f35d7b962bae3291b284df1\"\n },\n {\n \"url\": \"math4/es5/core.js\",\n \"revision\": \"7dc7147f9dd09489d9ce0bf754dc0120\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/bbm.js\",\n \"revision\": \"03afe2dfbb002b0343e5233dcef24dc2\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/html.js\",\n \"revision\": \"c29b1ead29f466db275be422ff612116\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/extpfeil.js\",\n \"revision\": \"e8764945ab1fa8d4a8b79124815a5d96\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/action.js\",\n \"revision\": \"d2416fc880e154c8cf6a57458cf33131\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/boldsymbol.js\",\n \"revision\": \"a3116882e895c077a03d411741dca9d4\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/cases.js\",\n \"revision\": \"b9c85b94f49512d54b0aa0e9be082dae\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/colortbl.js\",\n \"revision\": \"2399ede386031b0385799df60c43c0d9\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/verb.js\",\n \"revision\": \"928837fa27cbb3d364cc08cf1b756f59\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/unicode.js\",\n \"revision\": \"bfc7dce797e851dfc54c850102bc81a3\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/cancel.js\",\n \"revision\": \"d101be74f309165af176cb2fddcdc878\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/enclose.js\",\n \"revision\": \"049c74f77f9ef2c3df3b1e69d66188f8\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/units.js\",\n \"revision\": \"c61f22fa8ae966afe4fae2963b92bd2f\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/color.js\",\n \"revision\": \"7765044cf33d7d3268c05b904d14fe41\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/mathtools.js\",\n \"revision\": \"e996a34e23021c401b08107be6336b8b\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/begingroup.js\",\n \"revision\": \"f6ee462375696dbb388cf28c56799c7f\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/braket.js\",\n \"revision\": \"b16d2e8ae04742e9e28ab5b67834dd00\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/dsfont.js\",\n \"revision\": \"3c9ec642a438d8ee512a7161ba648c9b\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/bbox.js\",\n \"revision\": \"725a176e0848a43b7bc12fbef0405777\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/amscd.js\",\n \"revision\": \"69c6579db543071516806a310818f836\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/textcomp.js\",\n \"revision\": \"45763058bcba03250085c8f3edbba6b6\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/bussproofs.js\",\n \"revision\": \"09cd9743e847f27eed667bf2a14c8f3f\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/bboldx.js\",\n \"revision\": \"e927b36562d102c9381d1cf6019fc435\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/physics.js\",\n \"revision\": \"6064897fff5db81d2d1d1c7c535c488f\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/centernot.js\",\n \"revision\": \"12250d76cb9bca8fb7b0bd6c85a53d91\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/gensymb.js\",\n \"revision\": \"2ea2fb74d7579cc0f64ec31bc9864b53\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/upgreek.js\",\n \"revision\": \"d54eaab30ce82de4a414a67acbf81ffc\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/empheq.js\",\n \"revision\": \"20a7efd2d2a2275dfa503bc25a365009\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/mhchem.js\",\n \"revision\": \"bf94223fe83d22db894f3268acec4775\"\n },\n {\n \"url\": \"math4/es5/input/asciimath.js\",\n \"revision\": \"fca254c01e6a0deb9ecee1d550a17f71\"\n },\n {\n \"url\": \"math4/es5/input/tex.js\",\n \"revision\": \"8c3fe52f6f9e5b045a8ab62ecebd5b68\"\n },\n {\n \"url\": \"math4/es5/startup.js\",\n \"revision\": \"aac42e2a50811d1c26b37c41b4f365ac\"\n },\n {\n \"url\": \"math4/es5/output/svg.js\",\n \"revision\": \"f1603dbbd7c5453cc508fe262215fc9f\"\n },\n {\n \"url\": \"math4/es5/fonts/mathjax-bbm-font-extension/svg.js\",\n \"revision\": \"18e9f748695ae1628367dcd2d39e4c1d\"\n },\n {\n \"url\": \"math4/es5/fonts/mathjax-tex-font/svg.js\",\n \"revision\": \"1ae8c56b2ac35edc2d14811b551ea366\"\n },\n {\n \"url\": \"math4/es5/fonts/mathjax-bboldx-font-extension/svg.js\",\n \"revision\": \"bc969488528ff218a0c3fbf8da18eca0\"\n },\n {\n \"url\": \"math4/es5/fonts/mathjax-dsfont-font-extension/svg.js\",\n \"revision\": \"acc46c899a237b54112f3c4bab91a0ba\"\n },\n {\n \"url\": \"math4/es5/fonts/mathjax-mhchem-font-extension/svg.js\",\n \"revision\": \"206aed069c09009146e9234e7e37439e\"\n },\n {\n \"url\": \"resources/dia.txt\",\n \"revision\": \"040f50c64a9751a207385fe608699020\"\n },\n {\n \"url\": \"resources/dia_am.txt\",\n \"revision\": \"925024bf22f3fe4378ff96d83bb505c9\"\n },\n {\n \"url\": \"resources/dia_ar.txt\",\n \"revision\": \"a8ad3f5b16da2e1852f93215fbd278dd\"\n },\n {\n \"url\": \"resources/dia_bg.txt\",\n \"revision\": \"ba114971c1536d477ca5369cc0760247\"\n },\n {\n \"url\": \"resources/dia_bn.txt\",\n \"revision\": \"2e0efc4aa64cd09bdfc73ca075efe976\"\n },\n {\n \"url\": \"resources/dia_bs.txt\",\n \"revision\": \"8ed583b8a6ad04917353096e0aa34b60\"\n },\n {\n \"url\": \"resources/dia_ca.txt\",\n \"revision\": \"e193ca65122200ff99ec10ed12ad7a0e\"\n },\n {\n \"url\": \"resources/dia_cs.txt\",\n \"revision\": \"7ad512463c3a5a0aacdda09a49b7eca9\"\n },\n {\n \"url\": \"resources/dia_da.txt\",\n \"revision\": \"4d55e0aeb84448ff25ca195a193121fb\"\n },\n {\n \"url\": \"resources/dia_de.txt\",\n \"revision\": \"7fc7f29bf32eef11613417f52e42a373\"\n },\n {\n \"url\": \"resources/dia_el.txt\",\n \"revision\": \"3eb830fcbb0b45daff3a2e4530e2469f\"\n },\n {\n \"url\": \"resources/dia_eo.txt\",\n \"revision\": \"c6cd441465d4dc4b37fd963d892e22ca\"\n },\n {\n \"url\": \"resources/dia_es.txt\",\n \"revision\": \"247e7e035be1070669e1e55733767ed2\"\n },\n {\n \"url\": \"resources/dia_et.txt\",\n \"revision\": \"e0b00e85fb0b4f3b59f45bb3f59100a9\"\n },\n {\n \"url\": \"resources/dia_eu.txt\",\n \"revision\": \"383ed880bc73f56282cd50739128e350\"\n },\n {\n \"url\": \"resources/dia_fa.txt\",\n \"revision\": \"3525fbf1366c6da20a9a3e1841d58d07\"\n },\n {\n \"url\": \"resources/dia_fi.txt\",\n \"revision\": \"cda4c8fb07aa901f7d31b6ef48cb732f\"\n },\n {\n \"url\": \"resources/dia_fil.txt\",\n \"revision\": \"efff29c3faca9a3b3f509bf9e497c06e\"\n },\n {\n \"url\": \"resources/dia_fr.txt\",\n \"revision\": \"d0c54628fbd73043e33a9e5922f7ae3e\"\n },\n {\n \"url\": \"resources/dia_gl.txt\",\n \"revision\": \"8d7a873b80462f128758e2475127fee4\"\n },\n {\n \"url\": \"resources/dia_gu.txt\",\n \"revision\": \"a9edf9d3dd3bfcacadabef72bae376a7\"\n },\n {\n \"url\": \"resources/dia_he.txt\",\n \"revision\": \"fe7f9e8e9977df06c2caebecb1546fe6\"\n },\n {\n \"url\": \"resources/dia_hi.txt\",\n \"revision\": \"a20873e53d112c2c09710a2009229a72\"\n },\n {\n \"url\": \"resources/dia_hr.txt\",\n \"revision\": \"1be33cb007e2acfbbdaeb94ab5d044c5\"\n },\n {\n \"url\": \"resources/dia_hu.txt\",\n \"revision\": \"f01a87d0722618730770de2327e970c3\"\n },\n {\n \"url\": \"resources/dia_id.txt\",\n \"revision\": \"56a0d599730100cb23129b066a496edb\"\n },\n {\n \"url\": \"resources/dia_it.txt\",\n \"revision\": \"53c00d2455d5a7c2a375e5a3bce66fac\"\n },\n {\n \"url\": \"resources/dia_ja.txt\",\n \"revision\": \"db5b38f5114af8c2cb666e70ef11f4ae\"\n },\n {\n \"url\": \"resources/dia_kn.txt\",\n \"revision\": \"35e3c06f65cc3e5ba78b87248888f5a6\"\n },\n {\n \"url\": \"resources/dia_ko.txt\",\n \"revision\": \"a5f738c51671293baa22ba5a9dd9146e\"\n },\n {\n \"url\": \"resources/dia_lt.txt\",\n \"revision\": \"2a782b19c1d307f43e89b5193c11abab\"\n },\n {\n \"url\": \"resources/dia_lv.txt\",\n \"revision\": \"bc974e235909267bba84b82bc8346cba\"\n },\n {\n \"url\": \"resources/dia_ml.txt\",\n \"revision\": \"92fa7ba165c9f61d534cb3730feec0ac\"\n },\n {\n \"url\": \"resources/dia_mr.txt\",\n \"revision\": \"20e99308047844d82350b14f7cba3e3d\"\n },\n {\n \"url\": \"resources/dia_ms.txt\",\n \"revision\": \"1f5dca3a31e43a2900d2140b09a9d24b\"\n },\n {\n \"url\": \"resources/dia_my.txt\",\n \"revision\": \"4bd6b8940b4bcae7d7c731821e2a7929\"\n },\n {\n \"url\": \"resources/dia_nl.txt\",\n \"revision\": \"de50cbb38ca9803dd9f235ee3240edf9\"\n },\n {\n \"url\": \"resources/dia_no.txt\",\n \"revision\": \"e51f64356695920e7d85ffadf5f0b5ec\"\n },\n {\n \"url\": \"resources/dia_pl.txt\",\n \"revision\": \"bb833b5196aa354f3c857ad88197012d\"\n },\n {\n \"url\": \"resources/dia_pt-br.txt\",\n \"revision\": \"b43ea550c1e5b9f2c495dacc15c2338f\"\n },\n {\n \"url\": \"resources/dia_pt.txt\",\n \"revision\": \"e77de0a7899be48e2baf1f23efeb5c66\"\n },\n {\n \"url\": \"resources/dia_ro.txt\",\n \"revision\": \"561046b328334ee38015bbeff8a3b81e\"\n },\n {\n \"url\": \"resources/dia_ru.txt\",\n \"revision\": \"f0a7e222f7e391ed29942c335ddd017a\"\n },\n {\n \"url\": \"resources/dia_si.txt\",\n \"revision\": \"81551431d1db752ce71520ffbcb39840\"\n },\n {\n \"url\": \"resources/dia_sk.txt\",\n \"revision\": \"ea649f7f47defbb2faff7ed92d45c969\"\n },\n {\n \"url\": \"resources/dia_sl.txt\",\n \"revision\": \"2261559cae42e5682f324be3c8ac2a95\"\n },\n {\n \"url\": \"resources/dia_sr.txt\",\n \"revision\": \"c4f1910c01afdda565f9ecd912998df1\"\n },\n {\n \"url\": \"resources/dia_sv.txt\",\n \"revision\": \"98c4daa97315110dc2491bc59f4de615\"\n },\n {\n \"url\": \"resources/dia_sw.txt\",\n \"revision\": \"40baeca9b69ef189ea4f519e2be350a7\"\n },\n {\n \"url\": \"resources/dia_ta.txt\",\n \"revision\": \"44f4c32cebf257bf49ceb9a9fc0c0345\"\n },\n {\n \"url\": \"resources/dia_te.txt\",\n \"revision\": \"2b039b112c6c2449a5262d531fcc6cc1\"\n },\n {\n \"url\": \"resources/dia_th.txt\",\n \"revision\": \"bb29024372ec2cb5788235704ba3cfc2\"\n },\n {\n \"url\": \"resources/dia_tr.txt\",\n \"revision\": \"e5ebdea0b493e75b584442d865dd69d9\"\n },\n {\n \"url\": \"resources/dia_uk.txt\",\n \"revision\": \"fd2055fcd1f7ed9b5f8a8374e7dcd6df\"\n },\n {\n \"url\": \"resources/dia_vi.txt\",\n \"revision\": \"f9a7544b90651e4ac3c5aaef5157845c\"\n },\n {\n \"url\": \"resources/dia_zh-tw.txt\",\n \"revision\": \"82ff0e8a485bd061de2261283eaa3663\"\n },\n {\n \"url\": \"resources/dia_zh.txt\",\n \"revision\": \"7143de9c070c72f8803bdac5f340498d\"\n },\n {\n \"url\": \"favicon.ico\",\n \"revision\": \"b2bf17349e4b50ce4ba311f079f8bf7d\"\n },\n {\n \"url\": \"images/manifest.json\",\n \"revision\": \"421b4fae5b46499348d194e1f93558c3\"\n },\n {\n \"url\": \"images/logo.png\",\n \"revision\": \"e4e0d092abdb1e668b5ec41a7fe0713c\"\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/logo-flat-small.png\",\n \"revision\": \"4b178e59ff499d6dd1894fc498b59877\"\n },\n {\n \"url\": \"images/apple-touch-icon.png\",\n \"revision\": \"732c29e21332a926318a7005d21ec450\"\n },\n {\n \"url\": \"images/icon-192-maskable.png\",\n \"revision\": \"47e006d0ce4a35eb5beaa97f0c2bfed0\"\n },\n {\n \"url\": \"images/icon-192.png\",\n \"revision\": \"d022403d52435d76afec82c4e24a17ef\"\n },\n {\n \"url\": \"images/icon-512-maskable.png\",\n \"revision\": \"cf152feeb01fb21f3148a71a3540266e\"\n },\n {\n \"url\": \"images/icon-512.png\",\n \"revision\": \"a3a0df7e7a385244b74073f81ecc45de\"\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/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/spin.gif\",\n \"revision\": \"487cbb40b9ced439aa1ad914e816d773\"\n },\n {\n \"url\": \"images/aui-wait.gif\",\n \"revision\": \"5a474bcbd8d2f2826f03d10ea44bf60e\"\n },\n {\n \"url\": \"mxgraph/css/common.css\",\n \"revision\": \"8d895dc8387694c128232b13e631be39\"\n }\n], {\n \"ignoreURLParametersMatching\": [/.*/]\n});\n\n\n\n\n\n\n\n\n"],"names":["self","skipWaiting","workbox_precaching_precacheAndRoute","url","revision","ignoreURLParametersMatching"],"mappings":"0nBAmBAA,KAAKC,cAULC,EAAAA,iBAAoC,CAClC,CACEC,IAAO,kBACPC,SAAY,oCAEd,CACED,IAAO,aACPC,SAAY,oCAEd,CACED,IAAO,gBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,qBACPC,SAAY,oCAEd,CACED,IAAO,qBACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,mBACPC,SAAY,oCAEd,CACED,IAAO,aACPC,SAAY,oCAEd,CACED,IAAO,YACPC,SAAY,oCAEd,CACED,IAAO,qBACPC,SAAY,oCAEd,CACED,IAAO,gBACPC,SAAY,oCAEd,CACED,IAAO,8CACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,oCAEd,CACED,IAAO,2BACPC,SAAY,oCAEd,CACED,IAAO,gCACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,iCACPC,SAAY,oCAEd,CACED,IAAO,uCACPC,SAAY,oCAEd,CACED,IAAO,iCACPC,SAAY,oCAEd,CACED,IAAO,2CACPC,SAAY,oCAEd,CACED,IAAO,8BACPC,SAAY,oCAEd,CACED,IAAO,2BACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,oCAEd,CACED,IAAO,yCACPC,SAAY,oCAEd,CACED,IAAO,oCACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,oCAEd,CACED,IAAO,4BACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,oCAEd,CACED,IAAO,2CACPC,SAAY,oCAEd,CACED,IAAO,4BACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,gCACPC,SAAY,oCAEd,CACED,IAAO,oCACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,wCACPC,SAAY,oCAEd,CACED,IAAO,4CACPC,SAAY,oCAEd,CACED,IAAO,6CACPC,SAAY,oCAEd,CACED,IAAO,yCACPC,SAAY,oCAEd,CACED,IAAO,qCACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,oBACPC,SAAY,oCAEd,CACED,IAAO,wCACPC,SAAY,oCAEd,CACED,IAAO,yCACPC,SAAY,oCAEd,CACED,IAAO,6CACPC,SAAY,oCAEd,CACED,IAAO,2CACPC,SAAY,oCAEd,CACED,IAAO,+CACPC,SAAY,oCAEd,CACED,IAAO,0CACPC,SAAY,oCAEd,CACED,IAAO,6CACPC,SAAY,oCAEd,CACED,IAAO,yCACPC,SAAY,oCAEd,CACED,IAAO,4CACPC,SAAY,oCAEd,CACED,IAAO,2CACPC,SAAY,oCAEd,CACED,IAAO,4CACPC,SAAY,oCAEd,CACED,IAAO,0CACPC,SAAY,oCAEd,CACED,IAAO,0CACPC,SAAY,oCAEd,CACED,IAAO,8CACPC,SAAY,oCAEd,CACED,IAAO,+CACPC,SAAY,oCAEd,CACED,IAAO,2CACPC,SAAY,oCAEd,CACED,IAAO,2CACPC,SAAY,oCAEd,CACED,IAAO,yCACPC,SAAY,oCAEd,CACED,IAAO,0CACPC,SAAY,oCAEd,CACED,IAAO,6CACPC,SAAY,oCAEd,CACED,IAAO,+CACPC,SAAY,oCAEd,CACED,IAAO,2CACPC,SAAY,oCAEd,CACED,IAAO,4CACPC,SAAY,oCAEd,CACED,IAAO,8CACPC,SAAY,oCAEd,CACED,IAAO,4CACPC,SAAY,oCAEd,CACED,IAAO,4CACPC,SAAY,oCAEd,CACED,IAAO,2CACPC,SAAY,oCAEd,CACED,IAAO,2CACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,oDACPC,SAAY,oCAEd,CACED,IAAO,0CACPC,SAAY,oCAEd,CACED,IAAO,uDACPC,SAAY,oCAEd,CACED,IAAO,uDACPC,SAAY,oCAEd,CACED,IAAO,uDACPC,SAAY,oCAEd,CACED,IAAO,oBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,wBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,cACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,kBACPC,SAAY,oCAEd,CACED,IAAO,sBACPC,SAAY,oCAEd,CACED,IAAO,wBACPC,SAAY,oCAEd,CACED,IAAO,2BACPC,SAAY,oCAEd,CACED,IAAO,kCACPC,SAAY,oCAEd,CACED,IAAO,6BACPC,SAAY,oCAEd,CACED,IAAO,8BACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,sBACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,sBACPC,SAAY,oCAEd,CACED,IAAO,oBACPC,SAAY,oCAEd,CACED,IAAO,wBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,2BACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,oCAEd,CACED,IAAO,gCACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,qCACPC,SAAY,oCAEd,CACED,IAAO,gCACPC,SAAY,oCAEd,CACED,IAAO,iCACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,sCACPC,SAAY,oCAEd,CACED,IAAO,6BACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,kBACPC,SAAY,oCAEd,CACED,IAAO,sBACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,qCAEb,CACDC,4BAA+B,CAAC"}
\ No newline at end of file
+{"version":3,"file":"service-worker.js","sources":["../../../../../../private/var/folders/w3/8z182_j14fbd1p8pn7nc032h0000gn/T/10825b215113a777e0a793f7a2263f1d/service-worker.js"],"sourcesContent":["import {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/Users/davidbenson/.nvm/versions/node/v22.14.0/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.skipWaiting();\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/bootstrap.js\",\n \"revision\": \"5bd9c052196840673b9e60ea966a9ed9\"\n },\n {\n \"url\": \"js/main.js\",\n \"revision\": \"a8d40469d3d72ab4b11059362f3dd825\"\n },\n {\n \"url\": \"js/app.min.js\",\n \"revision\": \"0e9cbac73f960fb29e467c6aaa1e36ae\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"6404552aac7e9982da238945118a6432\"\n },\n {\n \"url\": \"js/orgchart.min.js\",\n \"revision\": \"619d8c4dab47b81868916df31f55478b\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"54eda90e3b255ee094aa7b78cabc117c\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"8fb1150deb6262b5582987cb2965979c\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"ad9cf0f2f2b614eac58ea72499c1017f\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"9de11c65ec13b24c73ace7042bc529cc\"\n },\n {\n \"url\": \"open.html\",\n \"revision\": \"d71816b3b00e769fc6019fcdd6921662\"\n },\n {\n \"url\": \"config-editor.html\",\n \"revision\": \"47bac62738383fac338cb86a85fa9d22\"\n },\n {\n \"url\": \"shortcuts.svg\",\n \"revision\": \"2381dd779ce6cfee954042a7f784c7e6\"\n },\n {\n \"url\": \"styles/fonts/ArchitectsDaughter-Regular.ttf\",\n \"revision\": \"31c2153c0530e32553b31a49b3d70736\"\n },\n {\n \"url\": \"styles/grapheditor.css\",\n \"revision\": \"850f578e1992a7af3dd98ee66ddce4a7\"\n },\n {\n \"url\": \"styles/high-contrast.css\",\n \"revision\": \"0c0219b1016c8bd6bbf859cfd53b5058\"\n },\n {\n \"url\": \"js/dropbox/Dropbox-sdk.min.js\",\n \"revision\": \"4b9842892aa37b156db0a8364b7a83b0\"\n },\n {\n \"url\": \"js/onedrive/OneDrive.js\",\n \"revision\": \"e863f5e6833892f22492211663e3efe9\"\n },\n {\n \"url\": \"js/viewer-static.min.js\",\n \"revision\": \"2b64c427f0f91134a3c31e3236db279e\"\n },\n {\n \"url\": \"connect/jira/editor-1-3-3.html\",\n \"revision\": \"41dc8af9576b47f359cff19fff7a41c2\"\n },\n {\n \"url\": \"connect/jira/viewerPanel-1-3-12.html\",\n \"revision\": \"4836f5e4308abe57830e441518364f23\"\n },\n {\n \"url\": \"connect/jira/viewerPanel2.html\",\n \"revision\": \"0dd1ee1343a46b5c03aedbc587450b84\"\n },\n {\n \"url\": \"connect/jira/fullScreenViewer-1-3-3.html\",\n \"revision\": \"abed474e47c0c41a5ad2366b4828f77a\"\n },\n {\n \"url\": \"connect/jira/viewerPanel.js\",\n \"revision\": \"85011efa68d638da560871ee2ab3a6fe\"\n },\n {\n \"url\": \"connect/jira/spinner.gif\",\n \"revision\": \"7d857ab9d86123e93d74d48e958fe743\"\n },\n {\n \"url\": \"connect/jira/editor.js\",\n \"revision\": \"3dc56c6566abaa7af151a8359e5bb556\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer-init.js\",\n \"revision\": \"07043c1ee868dd425f7876da94bbc307\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer.js\",\n \"revision\": \"a6be96b8ddc5a25196925713cf34d571\"\n },\n {\n \"url\": \"plugins/connectJira.js\",\n \"revision\": \"d220cad2edf0d6b161505fe12ae3eaa6\"\n },\n {\n \"url\": \"plugins/cConf-comments.js\",\n \"revision\": \"e4a4b5a0fb22393693d3b62968c50644\"\n },\n {\n \"url\": \"plugins/cConf-1-4-8.js\",\n \"revision\": \"47a7156bfb0f2b9e69ff783013aeebf5\"\n },\n {\n \"url\": \"connect/confluence/connectUtils-1-4-8.js\",\n \"revision\": \"c5aade7e4897b03a9ef7b7d6f5577a08\"\n },\n {\n \"url\": \"connect/new_common/cac.js\",\n \"revision\": \"a6db89336e8e59c200e28a2a766d272c\"\n },\n {\n \"url\": \"connect/gdrive_common/gac.js\",\n \"revision\": \"c66fdc50ec87002a502cb0779b73a692\"\n },\n {\n \"url\": \"connect/onedrive_common/ac.js\",\n \"revision\": \"1264ba8705eff0d1337701e5ae962366\"\n },\n {\n \"url\": \"connect/confluence/viewer-init.js\",\n \"revision\": \"c5e51e32ac74414d8d518af83ee2781f\"\n },\n {\n \"url\": \"connect/confluence/viewer.js\",\n \"revision\": \"c12112f0ec92dee98073eaffd4c9bea9\"\n },\n {\n \"url\": \"connect/confluence/viewer-1-4-42.html\",\n \"revision\": \"69c1bca25fd4889bf832e8441c972268\"\n },\n {\n \"url\": \"connect/confluence/macroEditor-1-4-8.html\",\n \"revision\": \"4ad77ae3f08c19eddac932b2fa8c7068\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram-1-4-8.js\",\n \"revision\": \"489bc44e46d6481277c3f2a5d81a2db6\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram.html\",\n \"revision\": \"01b04b3f54f1e2e63fcf1df033d24519\"\n },\n {\n \"url\": \"connect/confluence/macro-editor.js\",\n \"revision\": \"b9000d6c20f30e4068f83bd0b56965ca\"\n },\n {\n \"url\": \"math4/es5/ui/safe.js\",\n \"revision\": \"4c481ca61f35d7b962bae3291b284df1\"\n },\n {\n \"url\": \"math4/es5/core.js\",\n \"revision\": \"7dc7147f9dd09489d9ce0bf754dc0120\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/bbm.js\",\n \"revision\": \"03afe2dfbb002b0343e5233dcef24dc2\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/html.js\",\n \"revision\": \"c29b1ead29f466db275be422ff612116\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/extpfeil.js\",\n \"revision\": \"e8764945ab1fa8d4a8b79124815a5d96\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/action.js\",\n \"revision\": \"d2416fc880e154c8cf6a57458cf33131\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/boldsymbol.js\",\n \"revision\": \"a3116882e895c077a03d411741dca9d4\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/cases.js\",\n \"revision\": \"b9c85b94f49512d54b0aa0e9be082dae\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/colortbl.js\",\n \"revision\": \"2399ede386031b0385799df60c43c0d9\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/verb.js\",\n \"revision\": \"928837fa27cbb3d364cc08cf1b756f59\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/unicode.js\",\n \"revision\": \"bfc7dce797e851dfc54c850102bc81a3\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/cancel.js\",\n \"revision\": \"d101be74f309165af176cb2fddcdc878\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/enclose.js\",\n \"revision\": \"049c74f77f9ef2c3df3b1e69d66188f8\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/units.js\",\n \"revision\": \"c61f22fa8ae966afe4fae2963b92bd2f\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/color.js\",\n \"revision\": \"7765044cf33d7d3268c05b904d14fe41\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/mathtools.js\",\n \"revision\": \"e996a34e23021c401b08107be6336b8b\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/begingroup.js\",\n \"revision\": \"f6ee462375696dbb388cf28c56799c7f\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/braket.js\",\n \"revision\": \"b16d2e8ae04742e9e28ab5b67834dd00\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/dsfont.js\",\n \"revision\": \"3c9ec642a438d8ee512a7161ba648c9b\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/bbox.js\",\n \"revision\": \"725a176e0848a43b7bc12fbef0405777\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/amscd.js\",\n \"revision\": \"69c6579db543071516806a310818f836\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/textcomp.js\",\n \"revision\": \"45763058bcba03250085c8f3edbba6b6\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/bussproofs.js\",\n \"revision\": \"09cd9743e847f27eed667bf2a14c8f3f\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/bboldx.js\",\n \"revision\": \"e927b36562d102c9381d1cf6019fc435\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/physics.js\",\n \"revision\": \"6064897fff5db81d2d1d1c7c535c488f\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/centernot.js\",\n \"revision\": \"12250d76cb9bca8fb7b0bd6c85a53d91\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/gensymb.js\",\n \"revision\": \"2ea2fb74d7579cc0f64ec31bc9864b53\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/upgreek.js\",\n \"revision\": \"d54eaab30ce82de4a414a67acbf81ffc\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/empheq.js\",\n \"revision\": \"20a7efd2d2a2275dfa503bc25a365009\"\n },\n {\n \"url\": \"math4/es5/input/tex/extensions/mhchem.js\",\n \"revision\": \"bf94223fe83d22db894f3268acec4775\"\n },\n {\n \"url\": \"math4/es5/input/asciimath.js\",\n \"revision\": \"fca254c01e6a0deb9ecee1d550a17f71\"\n },\n {\n \"url\": \"math4/es5/input/tex.js\",\n \"revision\": \"8c3fe52f6f9e5b045a8ab62ecebd5b68\"\n },\n {\n \"url\": \"math4/es5/startup.js\",\n \"revision\": \"aac42e2a50811d1c26b37c41b4f365ac\"\n },\n {\n \"url\": \"math4/es5/output/svg.js\",\n \"revision\": \"f1603dbbd7c5453cc508fe262215fc9f\"\n },\n {\n \"url\": \"math4/es5/fonts/mathjax-bbm-font-extension/svg.js\",\n \"revision\": \"18e9f748695ae1628367dcd2d39e4c1d\"\n },\n {\n \"url\": \"math4/es5/fonts/mathjax-tex-font/svg.js\",\n \"revision\": \"1ae8c56b2ac35edc2d14811b551ea366\"\n },\n {\n \"url\": \"math4/es5/fonts/mathjax-bboldx-font-extension/svg.js\",\n \"revision\": \"bc969488528ff218a0c3fbf8da18eca0\"\n },\n {\n \"url\": \"math4/es5/fonts/mathjax-dsfont-font-extension/svg.js\",\n \"revision\": \"acc46c899a237b54112f3c4bab91a0ba\"\n },\n {\n \"url\": \"math4/es5/fonts/mathjax-mhchem-font-extension/svg.js\",\n \"revision\": \"206aed069c09009146e9234e7e37439e\"\n },\n {\n \"url\": \"resources/dia.txt\",\n \"revision\": \"d11c0136b9d2a30cd10796d4b3363ecf\"\n },\n {\n \"url\": \"resources/dia_am.txt\",\n \"revision\": \"bb65f698dae5ebb25a0132873c989063\"\n },\n {\n \"url\": \"resources/dia_ar.txt\",\n \"revision\": \"589001cf1a6b48e64a747a55aa2cf134\"\n },\n {\n \"url\": \"resources/dia_bg.txt\",\n \"revision\": \"6155fa4e46098d267cd55542c22bca10\"\n },\n {\n \"url\": \"resources/dia_bn.txt\",\n \"revision\": \"8cc5d592cfd48ceb90665613578ed69d\"\n },\n {\n \"url\": \"resources/dia_bs.txt\",\n \"revision\": \"3d6b088ce6417bfb2f18f642c4e823e1\"\n },\n {\n \"url\": \"resources/dia_ca.txt\",\n \"revision\": \"dadff06ee6684e3122b972085a28e15a\"\n },\n {\n \"url\": \"resources/dia_cs.txt\",\n \"revision\": \"10090b17a54ada9aa78894be82d2c6e2\"\n },\n {\n \"url\": \"resources/dia_da.txt\",\n \"revision\": \"52ff8d0b5b79dd885d80bb4f8176c23f\"\n },\n {\n \"url\": \"resources/dia_de.txt\",\n \"revision\": \"834dff5d630c75a6f5d0a87a954ccb35\"\n },\n {\n \"url\": \"resources/dia_el.txt\",\n \"revision\": \"95c4980229d608972c7df570fd3027c7\"\n },\n {\n \"url\": \"resources/dia_eo.txt\",\n \"revision\": \"6fcff1b91b096b3e0b72bceee09c69fa\"\n },\n {\n \"url\": \"resources/dia_es.txt\",\n \"revision\": \"c75e93b61a0de47222f17964d6c6c083\"\n },\n {\n \"url\": \"resources/dia_et.txt\",\n \"revision\": \"3bf113d9cc9e04921107d5eb6b6e4959\"\n },\n {\n \"url\": \"resources/dia_eu.txt\",\n \"revision\": \"6d5d98711e749129b72f877547097873\"\n },\n {\n \"url\": \"resources/dia_fa.txt\",\n \"revision\": \"f6817090b3c87dff402efba98760c55c\"\n },\n {\n \"url\": \"resources/dia_fi.txt\",\n \"revision\": \"c9da43fb4aa362692dfc28acc91ec789\"\n },\n {\n \"url\": \"resources/dia_fil.txt\",\n \"revision\": \"7cdbfa1219089c1449c9d55fc5dcc2ec\"\n },\n {\n \"url\": \"resources/dia_fr.txt\",\n \"revision\": \"def92e08070f525c877012c112a6d96f\"\n },\n {\n \"url\": \"resources/dia_gl.txt\",\n \"revision\": \"a11684a8b3e10fd12434fa5efb779481\"\n },\n {\n \"url\": \"resources/dia_gu.txt\",\n \"revision\": \"9a74564d008875fa113a4382341a2892\"\n },\n {\n \"url\": \"resources/dia_he.txt\",\n \"revision\": \"402af4b071bf2a2fcf6766c05c5a730a\"\n },\n {\n \"url\": \"resources/dia_hi.txt\",\n \"revision\": \"2201dbb764452bbcb8b88f32a881754f\"\n },\n {\n \"url\": \"resources/dia_hr.txt\",\n \"revision\": \"7482ad5dbb83605b931bbc95bc3d1d42\"\n },\n {\n \"url\": \"resources/dia_hu.txt\",\n \"revision\": \"2009fb561d9cceadbf0f226e2233f85a\"\n },\n {\n \"url\": \"resources/dia_id.txt\",\n \"revision\": \"cd1cd180ac2c360efff5ff4c0986c338\"\n },\n {\n \"url\": \"resources/dia_it.txt\",\n \"revision\": \"94aefd07c8c6f04a39c805e3337afb30\"\n },\n {\n \"url\": \"resources/dia_ja.txt\",\n \"revision\": \"a7f213644fe0e7a860677a21672d0853\"\n },\n {\n \"url\": \"resources/dia_kn.txt\",\n \"revision\": \"9f4686f42201f4f3dc8c2316cab9852b\"\n },\n {\n \"url\": \"resources/dia_ko.txt\",\n \"revision\": \"00138c98ed198f3ccb3856a9afdd5eb6\"\n },\n {\n \"url\": \"resources/dia_lt.txt\",\n \"revision\": \"86ff94c31acefee00bcf8c0593d73ba3\"\n },\n {\n \"url\": \"resources/dia_lv.txt\",\n \"revision\": \"ffe4bae90364c62613034bf4aa69aec7\"\n },\n {\n \"url\": \"resources/dia_ml.txt\",\n \"revision\": \"bd98c0e29eb4c728747ac3953889554c\"\n },\n {\n \"url\": \"resources/dia_mr.txt\",\n \"revision\": \"4458e306d4d2283deb0531cff2ddaa7f\"\n },\n {\n \"url\": \"resources/dia_ms.txt\",\n \"revision\": \"cfc81b176cb2abd2d2b076f18412d13b\"\n },\n {\n \"url\": \"resources/dia_my.txt\",\n \"revision\": \"40d6b6a716494c3fbf765d109fe6cc27\"\n },\n {\n \"url\": \"resources/dia_nl.txt\",\n \"revision\": \"340a8789b6a5ba16a491b296604a05c2\"\n },\n {\n \"url\": \"resources/dia_no.txt\",\n \"revision\": \"73e1c2708887225760264113a2102fd2\"\n },\n {\n \"url\": \"resources/dia_pl.txt\",\n \"revision\": \"7b3d1d53783d06bc79129bad18f7a349\"\n },\n {\n \"url\": \"resources/dia_pt-br.txt\",\n \"revision\": \"1d731cdf063ae85b23cf144d153d1e20\"\n },\n {\n \"url\": \"resources/dia_pt.txt\",\n \"revision\": \"0fdda98f065931af466619ef284ad102\"\n },\n {\n \"url\": \"resources/dia_ro.txt\",\n \"revision\": \"e9135fc8af1f7e2bf594212fa02b0542\"\n },\n {\n \"url\": \"resources/dia_ru.txt\",\n \"revision\": \"ede9d306a21a89311880c942ea8d0aa8\"\n },\n {\n \"url\": \"resources/dia_si.txt\",\n \"revision\": \"a7acf069eb23ad9d108b69ba79a81744\"\n },\n {\n \"url\": \"resources/dia_sk.txt\",\n \"revision\": \"a57c83bad838828035dbf7438a4c51b5\"\n },\n {\n \"url\": \"resources/dia_sl.txt\",\n \"revision\": \"2d2cc16ae714b1d0b2cba54216010711\"\n },\n {\n \"url\": \"resources/dia_sr.txt\",\n \"revision\": \"2786f705be5d73c90c585e02240cea10\"\n },\n {\n \"url\": \"resources/dia_sv.txt\",\n \"revision\": \"6da6bb55e1fe3bccc252be8b3bc1179d\"\n },\n {\n \"url\": \"resources/dia_sw.txt\",\n \"revision\": \"16507643a348d8953cc7ee25546f560c\"\n },\n {\n \"url\": \"resources/dia_ta.txt\",\n \"revision\": \"d406b6ca63f18ac087b7323fd64e471f\"\n },\n {\n \"url\": \"resources/dia_te.txt\",\n \"revision\": \"3a1c35be5562d5c8a8e01676cf59a09c\"\n },\n {\n \"url\": \"resources/dia_th.txt\",\n \"revision\": \"ab095cdb113a773c1d1805637bd777e5\"\n },\n {\n \"url\": \"resources/dia_tr.txt\",\n \"revision\": \"8166bbc0706f8f0dd3891ff3b7e7e01a\"\n },\n {\n \"url\": \"resources/dia_uk.txt\",\n \"revision\": \"bbe51cf4a201e41443dcbee55299ffe5\"\n },\n {\n \"url\": \"resources/dia_vi.txt\",\n \"revision\": \"a4928a3ea5b05401b34b9caa4a8b6100\"\n },\n {\n \"url\": \"resources/dia_zh-tw.txt\",\n \"revision\": \"4ed120ba56103f7a253cdc3cecddc6e7\"\n },\n {\n \"url\": \"resources/dia_zh.txt\",\n \"revision\": \"b080015f62ff4f39ab8d252211da6697\"\n },\n {\n \"url\": \"favicon.ico\",\n \"revision\": \"b2bf17349e4b50ce4ba311f079f8bf7d\"\n },\n {\n \"url\": \"images/manifest.json\",\n \"revision\": \"421b4fae5b46499348d194e1f93558c3\"\n },\n {\n \"url\": \"images/logo.png\",\n \"revision\": \"e4e0d092abdb1e668b5ec41a7fe0713c\"\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/logo-flat-small.png\",\n \"revision\": \"4b178e59ff499d6dd1894fc498b59877\"\n },\n {\n \"url\": \"images/apple-touch-icon.png\",\n \"revision\": \"732c29e21332a926318a7005d21ec450\"\n },\n {\n \"url\": \"images/icon-192-maskable.png\",\n \"revision\": \"47e006d0ce4a35eb5beaa97f0c2bfed0\"\n },\n {\n \"url\": \"images/icon-192.png\",\n \"revision\": \"d022403d52435d76afec82c4e24a17ef\"\n },\n {\n \"url\": \"images/icon-512-maskable.png\",\n \"revision\": \"cf152feeb01fb21f3148a71a3540266e\"\n },\n {\n \"url\": \"images/icon-512.png\",\n \"revision\": \"a3a0df7e7a385244b74073f81ecc45de\"\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/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/spin.gif\",\n \"revision\": \"487cbb40b9ced439aa1ad914e816d773\"\n },\n {\n \"url\": \"images/aui-wait.gif\",\n \"revision\": \"5a474bcbd8d2f2826f03d10ea44bf60e\"\n },\n {\n \"url\": \"mxgraph/css/common.css\",\n \"revision\": \"8d895dc8387694c128232b13e631be39\"\n }\n], {\n \"ignoreURLParametersMatching\": [/.*/]\n});\n\n\n\n\n\n\n\n\n"],"names":["self","skipWaiting","workbox_precaching_precacheAndRoute","url","revision","ignoreURLParametersMatching"],"mappings":"0nBAmBAA,KAAKC,cAULC,EAAAA,iBAAoC,CAClC,CACEC,IAAO,kBACPC,SAAY,oCAEd,CACED,IAAO,aACPC,SAAY,oCAEd,CACED,IAAO,gBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,qBACPC,SAAY,oCAEd,CACED,IAAO,qBACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,mBACPC,SAAY,oCAEd,CACED,IAAO,aACPC,SAAY,oCAEd,CACED,IAAO,YACPC,SAAY,oCAEd,CACED,IAAO,qBACPC,SAAY,oCAEd,CACED,IAAO,gBACPC,SAAY,oCAEd,CACED,IAAO,8CACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,oCAEd,CACED,IAAO,2BACPC,SAAY,oCAEd,CACED,IAAO,gCACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,iCACPC,SAAY,oCAEd,CACED,IAAO,uCACPC,SAAY,oCAEd,CACED,IAAO,iCACPC,SAAY,oCAEd,CACED,IAAO,2CACPC,SAAY,oCAEd,CACED,IAAO,8BACPC,SAAY,oCAEd,CACED,IAAO,2BACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,oCAEd,CACED,IAAO,yCACPC,SAAY,oCAEd,CACED,IAAO,oCACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,oCAEd,CACED,IAAO,4BACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,oCAEd,CACED,IAAO,2CACPC,SAAY,oCAEd,CACED,IAAO,4BACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,gCACPC,SAAY,oCAEd,CACED,IAAO,oCACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,wCACPC,SAAY,oCAEd,CACED,IAAO,4CACPC,SAAY,oCAEd,CACED,IAAO,6CACPC,SAAY,oCAEd,CACED,IAAO,yCACPC,SAAY,oCAEd,CACED,IAAO,qCACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,oBACPC,SAAY,oCAEd,CACED,IAAO,wCACPC,SAAY,oCAEd,CACED,IAAO,yCACPC,SAAY,oCAEd,CACED,IAAO,6CACPC,SAAY,oCAEd,CACED,IAAO,2CACPC,SAAY,oCAEd,CACED,IAAO,+CACPC,SAAY,oCAEd,CACED,IAAO,0CACPC,SAAY,oCAEd,CACED,IAAO,6CACPC,SAAY,oCAEd,CACED,IAAO,yCACPC,SAAY,oCAEd,CACED,IAAO,4CACPC,SAAY,oCAEd,CACED,IAAO,2CACPC,SAAY,oCAEd,CACED,IAAO,4CACPC,SAAY,oCAEd,CACED,IAAO,0CACPC,SAAY,oCAEd,CACED,IAAO,0CACPC,SAAY,oCAEd,CACED,IAAO,8CACPC,SAAY,oCAEd,CACED,IAAO,+CACPC,SAAY,oCAEd,CACED,IAAO,2CACPC,SAAY,oCAEd,CACED,IAAO,2CACPC,SAAY,oCAEd,CACED,IAAO,yCACPC,SAAY,oCAEd,CACED,IAAO,0CACPC,SAAY,oCAEd,CACED,IAAO,6CACPC,SAAY,oCAEd,CACED,IAAO,+CACPC,SAAY,oCAEd,CACED,IAAO,2CACPC,SAAY,oCAEd,CACED,IAAO,4CACPC,SAAY,oCAEd,CACED,IAAO,8CACPC,SAAY,oCAEd,CACED,IAAO,4CACPC,SAAY,oCAEd,CACED,IAAO,4CACPC,SAAY,oCAEd,CACED,IAAO,2CACPC,SAAY,oCAEd,CACED,IAAO,2CACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,oDACPC,SAAY,oCAEd,CACED,IAAO,0CACPC,SAAY,oCAEd,CACED,IAAO,uDACPC,SAAY,oCAEd,CACED,IAAO,uDACPC,SAAY,oCAEd,CACED,IAAO,uDACPC,SAAY,oCAEd,CACED,IAAO,oBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,wBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,cACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,kBACPC,SAAY,oCAEd,CACED,IAAO,sBACPC,SAAY,oCAEd,CACED,IAAO,wBACPC,SAAY,oCAEd,CACED,IAAO,2BACPC,SAAY,oCAEd,CACED,IAAO,kCACPC,SAAY,oCAEd,CACED,IAAO,6BACPC,SAAY,oCAEd,CACED,IAAO,8BACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,sBACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,sBACPC,SAAY,oCAEd,CACED,IAAO,oBACPC,SAAY,oCAEd,CACED,IAAO,wBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,2BACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,oCAEd,CACED,IAAO,gCACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,qCACPC,SAAY,oCAEd,CACED,IAAO,gCACPC,SAAY,oCAEd,CACED,IAAO,iCACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,sCACPC,SAAY,oCAEd,CACED,IAAO,6BACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,kBACPC,SAAY,oCAEd,CACED,IAAO,sBACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,qCAEb,CACDC,4BAA+B,CAAC"}
\ No newline at end of file
diff --git a/src/main/webapp/styles/grapheditor.css b/src/main/webapp/styles/grapheditor.css
index 029720eda..f5ce0ee49 100644
--- a/src/main/webapp/styles/grapheditor.css
+++ b/src/main/webapp/styles/grapheditor.css
@@ -418,7 +418,8 @@ div[id*="dgeMermaidOutput-"] {
}
.geFormatContent {
- margin-left: 14px;
+ margin-left: 12px;
+ margin-right: 8px;
}
div.geActivePage {
@@ -1691,9 +1692,14 @@ a.geStatus>div {
}
.geFormatSection {
- padding: 2px 0 6px 0;
+ padding: 8px 0 10px 0;
position: relative;
white-space: nowrap;
+ border-top: 1px solid light-dark(#e0e0e0, #3a3a3a);
+}
+
+.geFormatSection:first-child {
+ border-top: none;
}
.geFormatSection:last-child {
@@ -1704,7 +1710,8 @@ a.geStatus>div {
position: absolute;
text-align: center;
text-overflow: ellipsis;
- height: 22px;
+ height: 24px;
+ border-radius: 4px;
}
.geFormatSection table {
@@ -1732,7 +1739,8 @@ a.geStatus>div {
.geFormatSection input:not([type="checkbox"], [type="radio"]),
.geFormatSection button {
box-sizing: border-box;
- height: 22px;
+ height: 24px;
+ border-radius: 4px;
}
.geFormatSection input:not([type="checkbox"], [type="radio"]) {
@@ -1747,13 +1755,49 @@ a.geStatus>div {
font-weight: bold;
}
+.geCollapsibleTitle {
+ cursor: pointer;
+ -webkit-user-select: none;
+ user-select: none;
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ padding: 6px 0;
+ font-weight: bold;
+ font-size: 12px;
+}
+
+.geCollapsibleTitle::before {
+ content: '';
+ display: inline-block;
+ width: 0;
+ height: 0;
+ border-style: solid;
+ border-width: 4px 0 4px 6px;
+ border-color: transparent transparent transparent light-dark(#5f6368, #9aa0a6);
+ transition: transform 0.15s ease;
+ flex-shrink: 0;
+}
+
+.geCollapsibleTitle.geExpanded::before {
+ transform: rotate(90deg);
+}
+
+.geCollapsibleContent {
+ position: relative;
+}
+
+.geCollapsibleContent.geCollapsed {
+ display: none;
+}
+
.geFormatEntry {
display: flex;
position: relative;
align-items: center;
white-space: nowrap;
overflow: hidden;
- min-height: 24px;
+ min-height: 28px;
}
.geFormatEntry .geColorBtn {
@@ -1766,7 +1810,7 @@ a.geStatus>div {
}
.geFormatEntry input[type="checkbox"] {
- margin: 0 6px 0 0;
+ margin: 0 8px 0 0;
}
.mxWindowPane .geSidebarContainer {
@@ -1851,7 +1895,7 @@ a.geStatus>div {
.geSidebar {
transform-origin: top left;
- padding: 0px 4px 6px 12px;
+ padding: 4px 6px 8px 14px;
overflow: hidden;
white-space: normal;
}
@@ -1870,7 +1914,7 @@ a.geStatus>div {
background-size: 20px;
border-radius: 14px;
padding: 8px 0px 8px 22px;
- margin: 0 4px 2px 4px;
+ margin: 2px 4px 4px 4px;
cursor: default;
white-space: nowrap;
overflow: hidden;
@@ -1894,8 +1938,8 @@ a.geStatus>div {
text-align: center;
font-size: 12px;
opacity: 0.6;
- padding: 4px;
- margin: 4px 4px 4px 0;
+ padding: 6px;
+ margin: 4px 6px 4px 0;
}
.geTitle>div {
@@ -1932,7 +1976,7 @@ a.geStatus>div {
.geShapePicker .geItem {
overflow: hidden;
display: inline-block;
- padding: 1px;
+ padding: 2px;
border-radius: 4px;
transition: transform 100ms ease-out;
opacity: 0.75;
@@ -2154,6 +2198,86 @@ a.geStatus>div {
border-top: light-dark(1px solid rgba(0, 0, 0, 0.1), 1px solid rgba(255, 255, 255, 0.1));
}
+.geMoreShapesSectionHeader {
+ font-size: 11px;
+ font-weight: 600;
+ text-transform: uppercase;
+ letter-spacing: 0.5px;
+ color: light-dark(#6e6e73, #98989d);
+ background-color: light-dark(rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.04));
+ padding: 8px 12px 8px 16px;
+ border-bottom: light-dark(1px solid rgba(0, 0, 0, 0.06), 1px solid rgba(255, 255, 255, 0.06));
+ user-select: none;
+}
+
+.geMoreShapesItem {
+ display: flex;
+ align-items: center;
+ padding: 6px 12px 6px 16px;
+ cursor: pointer;
+ font-size: 13px;
+ line-height: normal;
+ color: light-dark(#1d1d1f, #e0e0e0);
+ transition: background-color 0.1s ease;
+ border-bottom: light-dark(1px solid rgba(0, 0, 0, 0.04), 1px solid rgba(255, 255, 255, 0.03));
+}
+
+.geMoreShapesItem:hover {
+ background-color: light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.07));
+}
+
+.geMoreShapesItem.geMoreShapesItemSelected {
+ background-color: light-dark(#d4e4f7, rgba(10, 132, 255, 0.2));
+}
+
+.geMoreShapesItem.geMoreShapesItemSelected:hover {
+ background-color: light-dark(#c4d8f0, rgba(10, 132, 255, 0.25));
+}
+
+.geMoreShapesItem input[type="checkbox"] {
+ margin: 0 8px 0 0;
+ flex-shrink: 0;
+}
+
+.geMoreShapesItem span {
+ flex: 1;
+ min-width: 0;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+}
+
+.geMoreShapesPreview {
+ border-left: light-dark(1px solid rgba(0, 0, 0, 0.1), 1px solid rgba(255, 255, 255, 0.1));
+}
+
+.geMoreShapesPreview img {
+ background-color: #ffffff;
+}
+
+.geMoreShapesFooterChecks {
+ display: inline-flex;
+ align-items: center;
+ gap: 16px;
+ width: 204px;
+ flex-shrink: 0;
+}
+
+.geMoreShapesFooterCheck {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ font-size: 13px;
+ color: light-dark(#1d1d1f, #e0e0e0);
+ cursor: pointer;
+ user-select: none;
+}
+
+.geMoreShapesFooterCheck input[type="checkbox"] {
+ margin: 0;
+ flex-shrink: 0;
+}
+
.geEditor .geBaseButton {
padding: 10px;
border-radius: 6px;